Symbol: child
crypto/libressl/crypto/bytestring/bs_cbb.c
193
if (cbb->child == NULL || cbb->pending_len_len == 0)
crypto/libressl/crypto/bytestring/bs_cbb.c
198
if (!CBB_flush(cbb->child) || child_start < cbb->offset ||
crypto/libressl/crypto/bytestring/bs_cbb.c
266
cbb->child->base = NULL;
crypto/libressl/crypto/bytestring/bs_cbb.c
267
cbb->child = NULL;
crypto/libressl/crypto/bytestring/bs_cbb.c
278
if (cbb->child == NULL)
crypto/libressl/crypto/bytestring/bs_cbb.c
283
cbb->child->base = NULL;
crypto/libressl/crypto/bytestring/bs_cbb.c
284
cbb->child = NULL;
crypto/libressl/crypto/bytestring/bs_cbb.c
305
cbb->child = out_contents;
crypto/libressl/crypto/bytestring/bs_cbb.c
354
cbb->child = out_contents;
crypto/libressl/crypto/bytestring/bs_cbb.c
435
CBB child;
crypto/libressl/crypto/bytestring/bs_cbb.c
439
if (!CBB_add_asn1(cbb, &child, CBS_ASN1_INTEGER))
crypto/libressl/crypto/bytestring/bs_cbb.c
469
if ((byte & 0x80) && !CBB_add_u8(&child, 0))
crypto/libressl/crypto/bytestring/bs_cbb.c
474
if (!CBB_add_u8(&child, byte))
crypto/libressl/crypto/bytestring/bs_cbb.c
479
if (!started && !CBB_add_u8(&child, 0))
crypto/libressl/crypto/bytestring/bs_cbb.c
87
cbb->child = NULL;
crypto/libressl/crypto/bytestring/bs_cbs.c
547
CBS child;
crypto/libressl/crypto/bytestring/bs_cbs.c
550
if (!CBS_get_optional_asn1(cbs, &child, &present, tag))
crypto/libressl/crypto/bytestring/bs_cbs.c
554
if (!CBS_get_asn1(&child, out, CBS_ASN1_OCTETSTRING) ||
crypto/libressl/crypto/bytestring/bs_cbs.c
555
CBS_len(&child) != 0)
crypto/libressl/crypto/bytestring/bs_cbs.c
570
CBS child;
crypto/libressl/crypto/bytestring/bs_cbs.c
573
if (!CBS_get_optional_asn1(cbs, &child, &present, tag))
crypto/libressl/crypto/bytestring/bs_cbs.c
577
if (!CBS_get_asn1_uint64(&child, out) ||
crypto/libressl/crypto/bytestring/bs_cbs.c
578
CBS_len(&child) != 0)
crypto/libressl/crypto/bytestring/bs_cbs.c
590
CBS child, child2;
crypto/libressl/crypto/bytestring/bs_cbs.c
593
if (!CBS_get_optional_asn1(cbs, &child, &present, tag))
crypto/libressl/crypto/bytestring/bs_cbs.c
599
if (!CBS_get_asn1(&child, &child2, CBS_ASN1_BOOLEAN) ||
crypto/libressl/crypto/bytestring/bs_cbs.c
600
CBS_len(&child2) != 1 || CBS_len(&child) != 0)
crypto/libressl/crypto/bytestring/bytestring.h
380
struct cbb_st *child;
crypto/libressl/crypto/x509/x509_addr.c
1719
addr_contains(IPAddressOrRanges *parent, IPAddressOrRanges *child, int length)
crypto/libressl/crypto/x509/x509_addr.c
1726
if (child == NULL || parent == child)
crypto/libressl/crypto/x509/x509_addr.c
1732
for (c = 0; c < sk_IPAddressOrRange_num(child); c++) {
crypto/libressl/crypto/x509/x509_addr.c
1733
child_aor = sk_IPAddressOrRange_value(child, c);
crypto/libressl/crypto/x509/x509_addr.c
1763
X509v3_addr_subset(IPAddrBlocks *child, IPAddrBlocks *parent)
crypto/libressl/crypto/x509/x509_addr.c
1769
if (child == NULL || child == parent)
crypto/libressl/crypto/x509/x509_addr.c
1774
if (X509v3_addr_inherits(child) || X509v3_addr_inherits(parent))
crypto/libressl/crypto/x509/x509_addr.c
1777
for (i = 0; i < sk_IPAddressFamily_num(child); i++) {
crypto/libressl/crypto/x509/x509_addr.c
1778
child_af = sk_IPAddressFamily_value(child, i);
crypto/libressl/crypto/x509/x509_addr.c
1821
IPAddrBlocks *child = NULL, *parent = NULL;
crypto/libressl/crypto/x509/x509_addr.c
1859
if ((child = sk_IPAddressFamily_dup(ext)) == NULL) {
crypto/libressl/crypto/x509/x509_addr.c
1881
for (i = 0; i < sk_IPAddressFamily_num(child); i++) {
crypto/libressl/crypto/x509/x509_addr.c
1882
child_af = sk_IPAddressFamily_value(child, i);
crypto/libressl/crypto/x509/x509_addr.c
1902
for (i = 0; i < sk_IPAddressFamily_num(child); i++) {
crypto/libressl/crypto/x509/x509_addr.c
1903
child_af = sk_IPAddressFamily_value(child, i);
crypto/libressl/crypto/x509/x509_addr.c
1928
sk_IPAddressFamily_set(child, i, parent_af);
crypto/libressl/crypto/x509/x509_addr.c
1949
sk_IPAddressFamily_set(child, i, parent_af);
crypto/libressl/crypto/x509/x509_addr.c
1976
sk_IPAddressFamily_free(child);
crypto/libressl/crypto/x509/x509_addr.c
1980
sk_IPAddressFamily_free(child);
crypto/libressl/crypto/x509/x509_asid.c
927
asid_contains(ASIdOrRanges *parent, ASIdOrRanges *child)
crypto/libressl/crypto/x509/x509_asid.c
932
if (child == NULL || parent == child)
crypto/libressl/crypto/x509/x509_asid.c
939
for (c = 0; c < sk_ASIdOrRange_num(child); c++) {
crypto/libressl/crypto/x509/x509_asid.c
940
if (!extract_min_max(sk_ASIdOrRange_value(child, c), &c_min,
crypto/libressl/crypto/x509/x509_asid.c
964
X509v3_asid_subset(ASIdentifiers *child, ASIdentifiers *parent)
crypto/libressl/crypto/x509/x509_asid.c
966
if (child == NULL || child == parent)
crypto/libressl/crypto/x509/x509_asid.c
972
if (X509v3_asid_inherits(child) || X509v3_asid_inherits(parent))
crypto/libressl/crypto/x509/x509_asid.c
975
if (child->asnum != NULL) {
crypto/libressl/crypto/x509/x509_asid.c
980
child->asnum->u.asIdsOrRanges))
crypto/libressl/crypto/x509/x509_asid.c
984
if (child->rdi != NULL) {
crypto/libressl/crypto/x509/x509_asid.c
989
child->rdi->u.asIdsOrRanges))
crypto/libressl/crypto/x509/x509_verify.c
530
X509 *child)
crypto/libressl/crypto/x509/x509_verify.c
535
return (ctx->xsc->check_issued(ctx->xsc, child, parent));
crypto/libressl/crypto/x509/x509_verify.c
538
return X509_check_issued(child, parent) != X509_V_OK;
crypto/libressl/crypto/x509/x509_verify.c
542
x509_verify_parent_signature(X509 *parent, X509 *child, int *error)
crypto/libressl/crypto/x509/x509_verify.c
549
if ((cached = x509_issuer_cache_find(parent->hash, child->hash)) >= 0)
crypto/libressl/crypto/x509/x509_verify.c
557
if (X509_verify(child, pkey) <= 0)
crypto/libressl/crypto/x509/x509_verify.c
563
x509_issuer_cache_add(parent->hash, child->hash, ret);
crypto/libressl/ssl/bs_cbb.c
193
if (cbb->child == NULL || cbb->pending_len_len == 0)
crypto/libressl/ssl/bs_cbb.c
198
if (!CBB_flush(cbb->child) || child_start < cbb->offset ||
crypto/libressl/ssl/bs_cbb.c
266
cbb->child->base = NULL;
crypto/libressl/ssl/bs_cbb.c
267
cbb->child = NULL;
crypto/libressl/ssl/bs_cbb.c
278
if (cbb->child == NULL)
crypto/libressl/ssl/bs_cbb.c
283
cbb->child->base = NULL;
crypto/libressl/ssl/bs_cbb.c
284
cbb->child = NULL;
crypto/libressl/ssl/bs_cbb.c
305
cbb->child = out_contents;
crypto/libressl/ssl/bs_cbb.c
354
cbb->child = out_contents;
crypto/libressl/ssl/bs_cbb.c
435
CBB child;
crypto/libressl/ssl/bs_cbb.c
439
if (!CBB_add_asn1(cbb, &child, CBS_ASN1_INTEGER))
crypto/libressl/ssl/bs_cbb.c
469
if ((byte & 0x80) && !CBB_add_u8(&child, 0))
crypto/libressl/ssl/bs_cbb.c
474
if (!CBB_add_u8(&child, byte))
crypto/libressl/ssl/bs_cbb.c
479
if (!started && !CBB_add_u8(&child, 0))
crypto/libressl/ssl/bs_cbb.c
87
cbb->child = NULL;
crypto/libressl/ssl/bs_cbs.c
547
CBS child;
crypto/libressl/ssl/bs_cbs.c
550
if (!CBS_get_optional_asn1(cbs, &child, &present, tag))
crypto/libressl/ssl/bs_cbs.c
554
if (!CBS_get_asn1(&child, out, CBS_ASN1_OCTETSTRING) ||
crypto/libressl/ssl/bs_cbs.c
555
CBS_len(&child) != 0)
crypto/libressl/ssl/bs_cbs.c
570
CBS child;
crypto/libressl/ssl/bs_cbs.c
573
if (!CBS_get_optional_asn1(cbs, &child, &present, tag))
crypto/libressl/ssl/bs_cbs.c
577
if (!CBS_get_asn1_uint64(&child, out) ||
crypto/libressl/ssl/bs_cbs.c
578
CBS_len(&child) != 0)
crypto/libressl/ssl/bs_cbs.c
590
CBS child, child2;
crypto/libressl/ssl/bs_cbs.c
593
if (!CBS_get_optional_asn1(cbs, &child, &present, tag))
crypto/libressl/ssl/bs_cbs.c
599
if (!CBS_get_asn1(&child, &child2, CBS_ASN1_BOOLEAN) ||
crypto/libressl/ssl/bs_cbs.c
600
CBS_len(&child2) != 1 || CBS_len(&child) != 0)
crypto/libressl/ssl/bytestring.h
380
struct cbb_st *child;
crypto/libressl/ssl/tls13_key_schedule.c
174
CBB cbb, child;
crypto/libressl/ssl/tls13_key_schedule.c
181
if (!CBB_add_u8_length_prefixed(&cbb, &child))
crypto/libressl/ssl/tls13_key_schedule.c
183
if (!CBB_add_bytes(&child, tls13_plabel, strlen(tls13_plabel)))
crypto/libressl/ssl/tls13_key_schedule.c
185
if (!CBB_add_bytes(&child, label, label_len))
crypto/libressl/ssl/tls13_key_schedule.c
187
if (!CBB_add_u8_length_prefixed(&cbb, &child))
crypto/libressl/ssl/tls13_key_schedule.c
189
if (!CBB_add_bytes(&child, context->data, context->len))
crypto/openssh/misc.c
2736
int ac, char **av, FILE **child, u_int flags,
crypto/openssh/misc.c
2756
if (child != NULL)
crypto/openssh/misc.c
2757
*child = NULL;
crypto/openssh/misc.c
2768
if (((flags & SSH_SUBPROCESS_STDOUT_CAPTURE) == 0) != (child == NULL)) {
crypto/openssh/misc.c
2895
if (child != NULL)
crypto/openssh/misc.c
2896
*child = f;
crypto/openssh/sshbuf.c
128
sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent)
crypto/openssh/sshbuf.c
132
if ((r = sshbuf_check_sanity(child)) != 0 ||
crypto/openssh/sshbuf.c
135
if (child->parent != NULL && child->parent != parent)
crypto/openssh/sshbuf.c
137
child->parent = parent;
crypto/openssh/sshbuf.c
138
child->parent->refcount++;
crypto/openssh/sshbuf.h
358
int sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent);
crypto/openssh/sshd.c
1063
child = child_register(startup_p[0], *newsock);
crypto/openssh/sshd.c
1064
if ((child->pid = fork()) == 0) {
crypto/openssh/sshd.c
1089
platform_post_fork_parent(child->pid);
crypto/openssh/sshd.c
1090
if (child->pid == -1)
crypto/openssh/sshd.c
1093
debug("Forked child %ld.", (long)child->pid);
crypto/openssh/sshd.c
235
struct early_child *child = NULL;
crypto/openssh/sshd.c
243
child = &(children[i]);
crypto/openssh/sshd.c
246
if (child == NULL) {
crypto/openssh/sshd.c
250
child->pipefd = pipefd;
crypto/openssh/sshd.c
251
child->early = 1;
crypto/openssh/sshd.c
254
addr_sa_to_xaddr(sa, addrlen, &child->addr) == 0)
crypto/openssh/sshd.c
255
child->have_addr = 1;
crypto/openssh/sshd.c
261
xasprintf(&child->id, "connection from %s", raddr);
crypto/openssh/sshd.c
265
xasprintf(&child->id, "connection from %s to %s", laddr, raddr);
crypto/openssh/sshd.c
272
return child;
crypto/openssh/sshd.c
279
child_finish(struct early_child *child)
crypto/openssh/sshd.c
283
if (child->pipefd != -1)
crypto/openssh/sshd.c
284
close(child->pipefd);
crypto/openssh/sshd.c
285
free(child->id);
crypto/openssh/sshd.c
286
memset(child, '\0', sizeof(*child));
crypto/openssh/sshd.c
287
child->pipefd = -1;
crypto/openssh/sshd.c
288
child->pid = -1;
crypto/openssh/sshd.c
298
child_close(struct early_child *child, int force_final, int quiet)
crypto/openssh/sshd.c
302
if (child->pipefd != -1) {
crypto/openssh/sshd.c
303
close(child->pipefd);
crypto/openssh/sshd.c
304
child->pipefd = -1;
crypto/openssh/sshd.c
306
if (child->pid == -1 || force_final)
crypto/openssh/sshd.c
307
child_finish(child);
crypto/openssh/sshd.c
334
child_reap(struct early_child *child)
crypto/openssh/sshd.c
340
if (WIFSIGNALED(child->status)) {
crypto/openssh/sshd.c
345
if ((was_crash = signal_is_crash(WTERMSIG(child->status))))
crypto/openssh/sshd.c
348
"signal %d%s", (long)child->pid, child->id,
crypto/openssh/sshd.c
349
WTERMSIG(child->status), child->early ? " (early)" : "");
crypto/openssh/sshd.c
352
} else if (!WIFEXITED(child->status)) {
crypto/openssh/sshd.c
355
"status=0x%x%s", (long)child->pid, child->id, child->status,
crypto/openssh/sshd.c
356
child->early ? " (early)" : "");
crypto/openssh/sshd.c
359
switch (WEXITSTATUS(child->status)) {
crypto/openssh/sshd.c
362
"normally %s", (long)child->pid, child->id,
crypto/openssh/sshd.c
363
child->early ? " (early)" : "");
crypto/openssh/sshd.c
368
"pid = %ld%s", child->id, (long)child->pid,
crypto/openssh/sshd.c
369
child->early ? " (early)" : "");
crypto/openssh/sshd.c
374
(long)child->pid, child->id,
crypto/openssh/sshd.c
375
child->early ? " (early)" : "");
crypto/openssh/sshd.c
381
(long)child->pid, child->id,
crypto/openssh/sshd.c
382
child->early ? " (early)" : "");
crypto/openssh/sshd.c
387
"with status %d%s", (long)child->pid, child->id,
crypto/openssh/sshd.c
388
WEXITSTATUS(child->status),
crypto/openssh/sshd.c
389
child->early ? " (early)" : "");
crypto/openssh/sshd.c
394
if (child->have_addr)
crypto/openssh/sshd.c
395
srclimit_penalise(&child->addr, penalty_type);
crypto/openssh/sshd.c
397
child->pid = -1;
crypto/openssh/sshd.c
398
child->have_status = 0;
crypto/openssh/sshd.c
399
if (child->pipefd == -1)
crypto/openssh/sshd.c
400
child_finish(child);
crypto/openssh/sshd.c
853
struct early_child *child;
games/fortune/fortune/fortune.c
1015
for (fp = parent->child; choice--; fp = fp->next)
games/fortune/fortune/fortune.c
1025
for (fp = parent->child; (unsigned int)choice >= fp->tbl.str_numstr;
games/fortune/fortune/fortune.c
1126
FILEDESC *child;
games/fortune/fortune/fortune.c
1130
if (fp->child == NULL) {
games/fortune/fortune/fortune.c
1149
for (child = fp->child; child != NULL; child = child->next) {
games/fortune/fortune/fortune.c
1150
get_tbl(child);
games/fortune/fortune/fortune.c
1151
sum_tbl(&fp->tbl, &child->tbl);
games/fortune/fortune/fortune.c
1212
if (list->child != NULL)
games/fortune/fortune/fortune.c
1213
print_list(list->child, lev + 1);
games/fortune/fortune/fortune.c
1291
if (fp->child != NULL) {
games/fortune/fortune/fortune.c
1292
if ((len = maxlen_in_list(fp->child)) > maxlen)
games/fortune/fortune/fortune.c
1318
if (fp->child != NULL) {
games/fortune/fortune/fortune.c
1319
matches_in_list(fp->child);
games/fortune/fortune/fortune.c
601
fp->child = NULL;
games/fortune/fortune/fortune.c
650
if (fp->child != NULL) /* this is a directory, not a file */
games/fortune/fortune/fortune.c
662
fp->child = scene;
games/fortune/fortune/fortune.c
665
scene->child = obscene->child = NULL;
games/fortune/fortune/fortune.c
710
if (add_file(NO_PROB, name, fp->path, &fp->child, &tailp, fp))
games/fortune/fortune/fortune.c
85
struct fd *child, *parent;
games/fortune/fortune/fortune.c
987
if (fp->child != NULL) {
games/hack/hack.pager.c
378
if (child(1)) {
games/hack/hack.pager.c
424
if (child(0)) {
games/hack/hack.pager.c
81
static int child(int);
games/hack/hack.unix.c
503
if (child(1)) {
games/sail/extern.h
318
void child(int);
games/sail/pl_1.c
140
signal(SIGCHLD, child);
games/sail/pl_main.c
86
signal(SIGCHLD, child);
lib/i18n_module/VIQR/citrus_viqr.c
124
mnemonic_list_t child;
lib/i18n_module/VIQR/citrus_viqr.c
152
TAILQ_INIT(&m->child);
lib/i18n_module/VIQR/citrus_viqr.c
168
m0 = mnemonic_list_find(&m->child, ch);
lib/i18n_module/VIQR/citrus_viqr.c
173
TAILQ_INSERT_TAIL(&m->child, m0, entry);
lib/i18n_module/VIQR/citrus_viqr.c
177
m0 = mnemonic_list_find(&m->child, ch);
lib/i18n_module/VIQR/citrus_viqr.c
182
TAILQ_INSERT_TAIL(&m->child, m0, entry);
lib/i18n_module/VIQR/citrus_viqr.c
198
TAILQ_FOREACH(m0, &m->child, entry)
lib/i18n_module/VIQR/citrus_viqr.c
291
m0 = mnemonic_list_find(&m->child, ch);
lib/i18n_module/VIQR/citrus_viqr.c
340
m = mnemonic_list_find(&m->child, psenc->ch[0]);
lib/i18n_module/VIQR/citrus_viqr.c
345
if (mnemonic_list_find(&m->child, ch) == NULL) {
lib/libc/gen/_pthread_stubs.c
294
void (*child)(void))
lib/libc/gen/_pthread_stubs.c
300
cb_child = child;
lib/libc/stdlib/heapsort.c
106
#define SELECT(par_i, child_i, nmemb, par, child, size, k, count, tmp1, tmp2) { \
lib/libc/stdlib/heapsort.c
108
child = base + child_i * size; \
lib/libc/stdlib/heapsort.c
109
if (child_i < nmemb && compar(child, child + size) < 0) { \
lib/libc/stdlib/heapsort.c
110
child += size; \
lib/libc/stdlib/heapsort.c
114
COPY(par, child, count, size, tmp1, tmp2); \
lib/libc/stdlib/heapsort.c
119
child = base + child_i * size; \
lib/libc/stdlib/heapsort.c
122
COPY(child, k, count, size, tmp1, tmp2); \
lib/libc/stdlib/heapsort.c
125
COPY(child, par, count, size, tmp1, tmp2); \
lib/libc/stdlib/heapsort.c
74
#define CREATE(initval, nmemb, par_i, child_i, par, child, size, count, tmp) { \
lib/libc/stdlib/heapsort.c
77
child = base + child_i * size; \
lib/libc/stdlib/heapsort.c
78
if (child_i < nmemb && compar(child, child + size) < 0) { \
lib/libc/stdlib/heapsort.c
79
child += size; \
lib/libc/stdlib/heapsort.c
83
if (compar(child, par) <= 0) \
lib/libc/stdlib/heapsort.c
85
SWAP(par, child, count, size, tmp); \
lib/libdevinfo/devinfo.c
438
int (* fn)(struct devinfo_dev *child, void *arg),
lib/libdevinfo/devinfo.h
111
int (* fn)(struct devinfo_dev *child, void *arg),
lib/libssh/openbsd-compat/sys-tree.h
530
struct type *child, *parent, *old = elm; \
lib/libssh/openbsd-compat/sys-tree.h
533
child = RB_RIGHT(elm, field); \
lib/libssh/openbsd-compat/sys-tree.h
535
child = RB_LEFT(elm, field); \
lib/libssh/openbsd-compat/sys-tree.h
541
child = RB_RIGHT(elm, field); \
lib/libssh/openbsd-compat/sys-tree.h
544
if (child) \
lib/libssh/openbsd-compat/sys-tree.h
545
RB_PARENT(child, field) = parent; \
lib/libssh/openbsd-compat/sys-tree.h
548
RB_LEFT(parent, field) = child; \
lib/libssh/openbsd-compat/sys-tree.h
550
RB_RIGHT(parent, field) = child; \
lib/libssh/openbsd-compat/sys-tree.h
553
RB_ROOT(head) = child; \
lib/libssh/openbsd-compat/sys-tree.h
578
if (child) \
lib/libssh/openbsd-compat/sys-tree.h
579
RB_PARENT(child, field) = parent; \
lib/libssh/openbsd-compat/sys-tree.h
582
RB_LEFT(parent, field) = child; \
lib/libssh/openbsd-compat/sys-tree.h
584
RB_RIGHT(parent, field) = child; \
lib/libssh/openbsd-compat/sys-tree.h
587
RB_ROOT(head) = child; \
lib/libssh/openbsd-compat/sys-tree.h
590
name##_RB_REMOVE_COLOR(head, parent, child); \
lib/libthread_xu/thread/thr_fork.c
118
void (*child)(void))
lib/libthread_xu/thread/thr_fork.c
128
af->child = child;
lib/libthread_xu/thread/thr_fork.c
145
__elf_phdr_match_addr(phdr_info, af->child)) {
lib/libthread_xu/thread/thr_fork.c
243
if (af->child != NULL)
lib/libthread_xu/thread/thr_fork.c
244
af->child();
lib/libthread_xu/thread/thr_fork.c
277
if (af->child != NULL)
lib/libthread_xu/thread/thr_fork.c
278
af->child();
lib/libthread_xu/thread/thr_fork.c
87
void (*child)(void))
lib/libthread_xu/thread/thr_fork.c
99
af->child = child;
lib/libthread_xu/thread/thr_private.h
225
void (*child)(void);
lib/libthread_xu/thread/thr_private.h
679
void (*child)(void));
libexec/dma/local.c
58
pid_t child, waitchild;
libexec/dma/local.c
74
child = fork();
libexec/dma/local.c
75
switch (child) {
libexec/dma/local.c
91
waitchild = waitpid(child, &status, 0);
sbin/fsck/main.c
188
checkfilesys(char *filesys, char *mntpt, long auxdata, int child)
sbin/fsck/main.c
196
if (preen && child)
sbin/fsck/main.c
58
int child);
sbin/fsck_msdosfs/dir.c
1095
for (lostDir = rootDir->child; lostDir; lostDir = lostDir->next) {
sbin/fsck_msdosfs/dir.c
273
if ((nd = d->child) != NULL) {
sbin/fsck_msdosfs/dir.c
274
d->child = 0;
sbin/fsck_msdosfs/dir.c
803
dirent.next = dir->child;
sbin/fsck_msdosfs/dir.c
984
dir->child = d;
sbin/fsck_msdosfs/dosfs.h
113
*child; /* if this is a directory */
sbin/newfs/mkfs.c
169
pid_t child;
sbin/newfs/mkfs.c
173
if ((child = fork()) != 0) {
sbin/newfs/mkfs.c
177
if (child == -1)
sbin/newfs/mkfs.c
182
kill(child, SIGUSR1);
sbin/newfs/mkfs.c
183
while (waitpid(child, &status, 0) != child)
sys/bus/cam/cam_queue.c
376
int child;
sys/bus/cam/cam_queue.c
379
child = new_index;
sys/bus/cam/cam_queue.c
381
while (child != 1) {
sys/bus/cam/cam_queue.c
383
parent = child >> 1;
sys/bus/cam/cam_queue.c
384
if (queue_cmp(queue_array, parent, child) <= 0)
sys/bus/cam/cam_queue.c
386
swap(queue_array, parent, child);
sys/bus/cam/cam_queue.c
387
child = parent;
sys/bus/cam/cam_queue.c
399
int child;
sys/bus/cam/cam_queue.c
403
child = parent << 1;
sys/bus/cam/cam_queue.c
404
for (; child <= num_entries; child = parent << 1) {
sys/bus/cam/cam_queue.c
406
if (child < num_entries) {
sys/bus/cam/cam_queue.c
408
if (queue_cmp(queue_array, child + 1, child) < 0)
sys/bus/cam/cam_queue.c
409
child++;
sys/bus/cam/cam_queue.c
412
if (queue_cmp(queue_array, parent, child) <= 0)
sys/bus/cam/cam_queue.c
414
swap(queue_array, child, parent);
sys/bus/cam/cam_queue.c
415
parent = child;
sys/bus/firewire/firewire.c
424
device_t child;
sys/bus/firewire/firewire.c
428
child = device_add_child(parent, name, unit);
sys/bus/firewire/firewire.c
429
if (child) {
sys/bus/firewire/firewire.c
430
device_set_ivars(child, sc->fc);
sys/bus/firewire/firewire.c
431
device_probe_and_attach(child);
sys/bus/firewire/firewire.c
434
return child;
sys/bus/firewire/fwcrom.c
423
struct crom_chunk *child, int key)
sys/bus/firewire/fwcrom.c
428
STAILQ_INSERT_TAIL(&src->chunk_list, child, link);
sys/bus/firewire/fwcrom.c
436
child->ref_chunk = parent;
sys/bus/firewire/fwcrom.c
437
child->ref_index = index;
sys/bus/firewire/fwcrom.c
438
STAILQ_INSERT_TAIL(&src->chunk_list, child, link);
sys/bus/firewire/fwohci_pci.c
431
device_t child;
sys/bus/firewire/fwohci_pci.c
435
child = device_add_child(parent, name, unit);
sys/bus/firewire/fwohci_pci.c
436
if (child == NULL)
sys/bus/firewire/fwohci_pci.c
437
return (child);
sys/bus/firewire/fwohci_pci.c
439
sc->fc.bdev = child;
sys/bus/firewire/fwohci_pci.c
440
device_set_ivars(child, (void *)&sc->fc);
sys/bus/firewire/fwohci_pci.c
442
err = device_probe_and_attach(child);
sys/bus/firewire/fwohci_pci.c
447
device_delete_child(parent, child);
sys/bus/firewire/fwohci_pci.c
460
return (child);
sys/bus/iicbus/iicbb.c
136
device_t child;
sys/bus/iicbus/iicbb.c
147
child = sc->iicbus;
sys/bus/iicbus/iicbb.c
149
if (child)
sys/bus/iicbus/iicbb.c
150
device_delete_child(dev, child);
sys/bus/iicbus/iicbb.c
156
iicbb_child_detached( device_t dev, device_t child )
sys/bus/iicbus/iicbb.c
160
if (child == sc->iicbus)
sys/bus/isa/isa_common.c
1048
device_t child;
sys/bus/isa/isa_common.c
1050
child = device_add_child(dev, "isa", 0);
sys/bus/isa/isa_common.c
1051
if (child != NULL)
sys/bus/isa/isa_common.c
111
isa_find_memory(device_t child,
sys/bus/isa/isa_common.c
122
bus_delete_resource(child, SYS_RES_MEMORY, i);
sys/bus/isa/isa_common.c
136
bus_set_resource(child, SYS_RES_MEMORY, i,
sys/bus/isa/isa_common.c
138
res[i] = bus_alloc_resource(child,
sys/bus/isa/isa_common.c
162
bus_release_resource(child, SYS_RES_MEMORY,
sys/bus/isa/isa_common.c
175
isa_find_port(device_t child,
sys/bus/isa/isa_common.c
186
bus_delete_resource(child, SYS_RES_IOPORT, i);
sys/bus/isa/isa_common.c
200
bus_set_resource(child, SYS_RES_IOPORT, i,
sys/bus/isa/isa_common.c
202
res[i] = bus_alloc_resource(child,
sys/bus/isa/isa_common.c
226
bus_release_resource(child, SYS_RES_IOPORT,
sys/bus/isa/isa_common.c
262
isa_find_irq(device_t child,
sys/bus/isa/isa_common.c
273
bus_delete_resource(child, SYS_RES_IRQ, i);
sys/bus/isa/isa_common.c
285
bus_set_resource(child, SYS_RES_IRQ, i,
sys/bus/isa/isa_common.c
287
res[i] = bus_alloc_resource(child,
sys/bus/isa/isa_common.c
308
bus_release_resource(child, SYS_RES_IRQ,
sys/bus/isa/isa_common.c
321
isa_find_drq(device_t child,
sys/bus/isa/isa_common.c
332
bus_delete_resource(child, SYS_RES_DRQ, i);
sys/bus/isa/isa_common.c
344
bus_set_resource(child, SYS_RES_DRQ, i,
sys/bus/isa/isa_common.c
346
res[i] = bus_alloc_resource(child,
sys/bus/isa/isa_common.c
367
bus_release_resource(child, SYS_RES_DRQ,
sys/bus/isa/isa_common.c
379
isa_assign_resources(device_t child)
sys/bus/isa/isa_common.c
381
struct isa_device *idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
389
if (!isa_find_memory(child, &ice->ice_config, &config))
sys/bus/isa/isa_common.c
392
if (!isa_find_port(child, &ice->ice_config, &config))
sys/bus/isa/isa_common.c
395
if (!isa_find_irq(child, &ice->ice_config, &config))
sys/bus/isa/isa_common.c
398
if (!isa_find_drq(child, &ice->ice_config, &config))
sys/bus/isa/isa_common.c
416
bus_print_child_header(device_get_parent(child), child);
sys/bus/isa/isa_common.c
419
isa_print_child(device_get_parent(child), child);
sys/bus/isa/isa_common.c
423
device_disable(child);
sys/bus/isa/isa_common.c
455
device_t child = children[i];
sys/bus/isa/isa_common.c
456
struct isa_device *idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
471
device_t child = children[i];
sys/bus/isa/isa_common.c
472
struct isa_device *idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
477
device_probe_and_attach(child);
sys/bus/isa/isa_common.c
486
device_t child = children[i];
sys/bus/isa/isa_common.c
487
struct isa_device* idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
492
if (isa_assign_resources(child)) {
sys/bus/isa/isa_common.c
496
device_probe_and_attach(child);
sys/bus/isa/isa_common.c
505
resource_list_alloc(rl, dev, child,
sys/bus/isa/isa_common.c
524
device_t child;
sys/bus/isa/isa_common.c
532
child = device_add_child_ordered(parent, order, name, unit);
sys/bus/isa/isa_common.c
533
device_set_ivars(child, idev);
sys/bus/isa/isa_common.c
535
return child;
sys/bus/isa/isa_common.c
606
isa_probe_nomatch(device_t dev, device_t child)
sys/bus/isa/isa_common.c
609
bus_print_child_header(dev, child);
sys/bus/isa/isa_common.c
611
isa_print_all_resources(child);
sys/bus/isa/isa_common.c
612
bus_print_child_footer(dev, child);
sys/bus/isa/isa_common.c
794
isa_child_detached(device_t dev, device_t child)
sys/bus/isa/isa_common.c
796
struct isa_device* idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
808
resource_list_alloc(rl, dev, child,
sys/bus/isa/isa_common.c
836
device_t child = children[i];
sys/bus/isa/isa_common.c
837
struct isa_device *idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
841
if (device_get_state(child) != DS_NOTPRESENT)
sys/bus/isa/isa_common.c
843
if (!device_is_enabled(child))
sys/bus/isa/isa_common.c
852
resource_list_release(rl, dev, child,
sys/bus/isa/isa_common.c
859
if (!isa_assign_resources(child))
sys/bus/isa/isa_common.c
862
device_probe_and_attach(child);
sys/bus/isa/isa_common.c
872
resource_list_alloc(rl, dev, child,
sys/bus/isa/isa_common.c
884
isa_set_resource(device_t dev, device_t child, int type, int rid,
sys/bus/isa/isa_common.c
887
struct isa_device* idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
911
isa_get_resource(device_t dev, device_t child, int type, int rid,
sys/bus/isa/isa_common.c
914
struct isa_device* idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
931
isa_delete_resource(device_t dev, device_t child, int type, int rid)
sys/bus/isa/isa_common.c
933
struct isa_device* idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
939
isa_add_config(device_t dev, device_t child,
sys/bus/isa/isa_common.c
942
struct isa_device* idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
962
isa_set_config_callback(device_t dev, device_t child,
sys/bus/isa/isa_common.c
965
struct isa_device* idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
972
isa_pnp_probe(device_t dev, device_t child, struct isa_pnp_id *ids)
sys/bus/isa/isa_common.c
974
struct isa_device* idev = DEVTOISA(child);
sys/bus/isa/isa_common.c
986
device_set_desc(child, ids->ip_desc);
sys/bus/isa/isa_common.h
69
extern struct resource *isa_alloc_resource(device_t bus, device_t child,
sys/bus/isa/isa_common.h
74
extern int isa_release_resource(device_t bus, device_t child,
sys/bus/isa/isa_common.h
77
extern int isa_setup_intr(device_t bus, device_t child,
sys/bus/isa/isa_common.h
81
extern int isa_teardown_intr(device_t bus, device_t child,
sys/bus/isa/isahint.c
41
device_t child;
sys/bus/isa/isahint.c
55
child = BUS_ADD_CHILD(parent, parent, order, name, unit);
sys/bus/isa/isahint.c
56
if (child == 0)
sys/bus/isa/isahint.c
64
bus_set_resource(child, SYS_RES_IOPORT, 0, start, count, -1);
sys/bus/isa/isahint.c
71
bus_set_resource(child, SYS_RES_MEMORY, 0, start, count, -1);
sys/bus/isa/isahint.c
74
bus_set_resource(child, SYS_RES_IRQ, 0, start, 1,
sys/bus/isa/isahint.c
79
bus_set_resource(child, SYS_RES_DRQ, 0, start, 1, -1);
sys/bus/isa/isahint.c
82
device_set_flags(child, t);
sys/bus/isa/isahint.c
85
device_disable(child);
sys/bus/isa/x86_64/isa.c
122
return resource_list_alloc(rl, bus, child, type, rid,
sys/bus/isa/x86_64/isa.c
127
isa_release_resource(device_t bus, device_t child, int type, int rid,
sys/bus/isa/x86_64/isa.c
130
struct isa_device* idev = DEVTOISA(child);
sys/bus/isa/x86_64/isa.c
133
return resource_list_release(rl, bus, child, type, rid, r);
sys/bus/isa/x86_64/isa.c
143
isa_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
sys/bus/isa/x86_64/isa.c
147
return (BUS_SETUP_INTR(device_get_parent(bus), child, r, flags,
sys/bus/isa/x86_64/isa.c
152
isa_teardown_intr(device_t bus, device_t child, struct resource *r,
sys/bus/isa/x86_64/isa.c
155
return (BUS_TEARDOWN_INTR(device_get_parent(bus), child, r, cookie));
sys/bus/isa/x86_64/isa.c
77
isa_alloc_resource(device_t bus, device_t child, int type, int *rid,
sys/bus/isa/x86_64/isa.c
85
int passthrough = (device_get_parent(child) != bus);
sys/bus/isa/x86_64/isa.c
87
struct isa_device* idev = DEVTOISA(child);
sys/bus/mmc/mmc.c
119
static int mmc_child_location_str(device_t dev, device_t child, char *buf,
sys/bus/mmc/mmc.c
123
static int mmc_read_ivar(device_t bus, device_t child, int which,
sys/bus/mmc/mmc.c
130
static int mmc_write_ivar(device_t bus, device_t child, int which,
sys/bus/mmc/mmc.c
1405
device_t child;
sys/bus/mmc/mmc.c
1566
child = device_add_child(sc->dev, NULL, -1);
sys/bus/mmc/mmc.c
1567
device_set_ivars(child, ivar);
sys/bus/mmc/mmc.c
1706
child = device_add_child(sc->dev, NULL, -1);
sys/bus/mmc/mmc.c
1707
device_set_ivars(child, ivar);
sys/bus/mmc/mmc.c
1912
mmc_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/bus/mmc/mmc.c
1914
struct mmc_ivars *ivar = device_get_ivars(child);
sys/bus/mmc/mmc.c
1966
mmc_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
sys/bus/mmc/mmc.c
1985
mmc_child_location_str(device_t dev, device_t child, char *buf,
sys/bus/mmc/mmc.c
1989
ksnprintf(buf, buflen, "rca=0x%04x", mmc_get_rca(child));
sys/bus/pccard/pccard.c
100
static int pccard_set_resource(device_t dev, device_t child, int type,
sys/bus/pccard/pccard.c
1012
pccard_child_pnpinfo_str(device_t bus, device_t child, char *buf,
sys/bus/pccard/pccard.c
1015
struct pccard_ivar *devi = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
102
static int pccard_get_resource(device_t dev, device_t child, int type,
sys/bus/pccard/pccard.c
1029
pccard_read_ivar(device_t bus, device_t child, int which, u_char *result)
sys/bus/pccard/pccard.c
1031
struct pccard_ivar *devi = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
104
static void pccard_delete_resource(device_t dev, device_t child, int type,
sys/bus/pccard/pccard.c
106
static int pccard_set_res_flags(device_t dev, device_t child, int type,
sys/bus/pccard/pccard.c
1079
device_t child;
sys/bus/pccard/pccard.c
108
static int pccard_set_memory_offset(device_t dev, device_t child, int rid,
sys/bus/pccard/pccard.c
1084
child = pf->dev;
sys/bus/pccard/pccard.c
1085
if (device_get_state(child) != DS_NOTPRESENT)
sys/bus/pccard/pccard.c
1088
device_probe_and_attach(child) == 0) {
sys/bus/pccard/pccard.c
110
static void pccard_probe_nomatch(device_t cbdev, device_t child);
sys/bus/pccard/pccard.c
1106
pccard_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/bus/pccard/pccard.c
111
static int pccard_read_ivar(device_t bus, device_t child, int which,
sys/bus/pccard/pccard.c
1111
int passthrough = (device_get_parent(child) != dev);
sys/bus/pccard/pccard.c
1117
return (BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
sys/bus/pccard/pccard.c
1121
dinfo = device_get_ivars(child);
sys/bus/pccard/pccard.c
1146
rman_set_device(rle->res, child);
sys/bus/pccard/pccard.c
1148
BUS_ACTIVATE_RESOURCE(dev, child, type, *rid, rle->res);
sys/bus/pccard/pccard.c
115
device_t child, int type, int *rid, u_long start,
sys/bus/pccard/pccard.c
1156
pccard_release_resource(device_t dev, device_t child, int type, int rid,
sys/bus/pccard/pccard.c
1160
int passthrough = (device_get_parent(child) != dev);
sys/bus/pccard/pccard.c
1164
return BUS_RELEASE_RESOURCE(device_get_parent(dev), child,
sys/bus/pccard/pccard.c
1167
dinfo = device_get_ivars(child);
sys/bus/pccard/pccard.c
117
static int pccard_release_resource(device_t dev, device_t child, int type,
sys/bus/pccard/pccard.c
1185
BUS_DEACTIVATE_RESOURCE(dev, child, type, rid, rle->res);
sys/bus/pccard/pccard.c
121
static int pccard_setup_intr(device_t dev, device_t child,
sys/bus/pccard/pccard.c
1235
pccard_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/bus/pccard/pccard.c
1240
struct pccard_ivar *ivar = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
1246
err = bus_generic_setup_intr(dev, child, irq, flags, pccard_intr,
sys/bus/pccard/pccard.c
125
static int pccard_teardown_intr(device_t dev, device_t child,
sys/bus/pccard/pccard.c
1262
pccard_teardown_intr(device_t dev, device_t child, struct resource *r,
sys/bus/pccard/pccard.c
1266
struct pccard_ivar *ivar = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
1275
ret = bus_generic_teardown_intr(dev, child, r, cookie);
sys/bus/pccard/pccard.c
1286
pccard_activate_resource(device_t brdev, device_t child, int type, int rid,
sys/bus/pccard/pccard.c
1289
struct pccard_ivar *ivar = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
1305
return (bus_generic_activate_resource(brdev, child, type, rid, r));
sys/bus/pccard/pccard.c
1309
pccard_deactivate_resource(device_t brdev, device_t child, int type,
sys/bus/pccard/pccard.c
1313
return (bus_generic_deactivate_resource(brdev, child, type, rid, r));
sys/bus/pccard/pccard.c
183
device_t child;
sys/bus/pccard/pccard.c
256
child = device_add_child(dev, NULL, -1);
sys/bus/pccard/pccard.c
257
device_set_ivars(child, ivar);
sys/bus/pccard/pccard.c
259
pf->dev = child;
sys/bus/pccard/pccard.c
272
pccard_set_default_descr(child) == 0 &&
sys/bus/pccard/pccard.c
273
device_probe_and_attach(child) == 0) {
sys/bus/pccard/pccard.c
859
pccard_print_child(device_t dev, device_t child)
sys/bus/pccard/pccard.c
861
struct pccard_ivar *devi = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
865
retval += bus_print_child_header(dev, child);
sys/bus/pccard/pccard.c
881
retval += bus_print_child_footer(dev, child);
sys/bus/pccard/pccard.c
887
pccard_set_resource(device_t dev, device_t child, int type, int rid,
sys/bus/pccard/pccard.c
890
struct pccard_ivar *devi = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
917
pccard_get_resource(device_t dev, device_t child, int type, int rid,
sys/bus/pccard/pccard.c
920
struct pccard_ivar *devi = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
937
pccard_delete_resource(device_t dev, device_t child, int type, int rid)
sys/bus/pccard/pccard.c
939
struct pccard_ivar *devi = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
945
pccard_set_res_flags(device_t dev, device_t child, int type, int rid,
sys/bus/pccard/pccard.c
948
return (CARD_SET_RES_FLAGS(device_get_parent(dev), child, type,
sys/bus/pccard/pccard.c
953
pccard_set_memory_offset(device_t dev, device_t child, int rid,
sys/bus/pccard/pccard.c
957
return (CARD_SET_MEMORY_OFFSET(device_get_parent(dev), child, rid,
sys/bus/pccard/pccard.c
962
pccard_probe_nomatch(device_t bus, device_t child)
sys/bus/pccard/pccard.c
964
struct pccard_ivar *devi = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
981
pccard_child_location_str(device_t bus, device_t child, char *buf,
sys/bus/pccard/pccard.c
984
struct pccard_ivar *devi = PCCARD_IVAR(child);
sys/bus/pccard/pccard.c
99
static int pccard_print_child(device_t dev, device_t child);
sys/bus/pci/hostb_pci.c
105
pci_hostb_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/bus/pci/hostb_pci.c
113
pci_hostb_release_resource(device_t dev, device_t child, int type, int rid,
sys/bus/pci/hostb_pci.c
123
pci_hostb_read_config(device_t dev, device_t child, int reg, int width)
sys/bus/pci/hostb_pci.c
130
pci_hostb_write_config(device_t dev, device_t child, int reg,
sys/bus/pci/hostb_pci.c
138
pci_hostb_enable_busmaster(device_t dev, device_t child)
sys/bus/pci/hostb_pci.c
142
device_get_nameunit(child));
sys/bus/pci/hostb_pci.c
147
pci_hostb_disable_busmaster(device_t dev, device_t child)
sys/bus/pci/hostb_pci.c
151
device_get_nameunit(child));
sys/bus/pci/hostb_pci.c
156
pci_hostb_enable_io(device_t dev, device_t child, int space)
sys/bus/pci/hostb_pci.c
160
device_get_nameunit(child));
sys/bus/pci/hostb_pci.c
165
pci_hostb_disable_io(device_t dev, device_t child, int space)
sys/bus/pci/hostb_pci.c
169
device_get_nameunit(child));
sys/bus/pci/hostb_pci.c
174
pci_hostb_set_powerstate(device_t dev, device_t child, int state)
sys/bus/pci/hostb_pci.c
178
device_get_nameunit(child));
sys/bus/pci/hostb_pci.c
183
pci_hostb_get_powerstate(device_t dev, device_t child)
sys/bus/pci/hostb_pci.c
187
device_get_nameunit(child));
sys/bus/pci/hostb_pci.c
192
pci_hostb_assign_interrupt(device_t dev, device_t child)
sys/bus/pci/hostb_pci.c
196
device_get_nameunit(child));
sys/bus/pci/hostb_pci.c
201
pci_hostb_find_extcap(device_t dev, device_t child, int capability,
sys/bus/pci/hostb_pci.c
91
pci_hostb_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/bus/pci/hostb_pci.c
98
pci_hostb_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/bus/pci/pci.c
1327
pci_get_vpd_ident_method(device_t dev, device_t child, const char **identptr)
sys/bus/pci/pci.c
1329
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
1344
pci_get_vpd_readonly_method(device_t dev, device_t child, const char *kw,
sys/bus/pci/pci.c
1347
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
1372
pci_find_extcap_method(device_t dev, device_t child, int capability,
sys/bus/pci/pci.c
1375
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
1383
status = pci_read_config(child, PCIR_STATUS, 2);
sys/bus/pci/pci.c
1402
ptr = pci_read_config(child, ptr, 1);
sys/bus/pci/pci.c
1408
if (pci_read_config(child, ptr + PCICAP_ID, 1) == capability) {
sys/bus/pci/pci.c
1413
ptr = pci_read_config(child, ptr + PCICAP_NEXTPTR, 1);
sys/bus/pci/pci.c
1526
pci_alloc_msix_vector_method(device_t dev, device_t child, u_int vector,
sys/bus/pci/pci.c
1529
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
1542
device_printf(child,
sys/bus/pci/pci.c
1551
mv = pci_find_msix_vector(child, rid);
sys/bus/pci/pci.c
1556
error = PCIB_ALLOC_MSIX(device_get_parent(dev), child, &irq, cpuid);
sys/bus/pci/pci.c
1564
device_printf(child, "using IRQ %lu for MSI-X on cpu%d\n",
sys/bus/pci/pci.c
1580
pci_release_msix_vector_method(device_t dev, device_t child, int rid)
sys/bus/pci/pci.c
1582
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
1593
mv = pci_find_msix_vector(child, rid);
sys/bus/pci/pci.c
1610
PCIB_RELEASE_MSIX(device_get_parent(dev), child, irq, cpuid);
sys/bus/pci/pci.c
1626
pci_msix_count_method(device_t dev, device_t child)
sys/bus/pci/pci.c
1628
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
1946
pci_alloc_msi_method(device_t dev, device_t child, int *rid, int count,
sys/bus/pci/pci.c
1949
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
1981
device_printf(child,
sys/bus/pci/pci.c
1993
error = PCIB_ALLOC_MSI(device_get_parent(dev), child, count,
sys/bus/pci/pci.c
2015
device_printf(child, "using IRQ %d on cpu%d for MSI\n",
sys/bus/pci/pci.c
2025
device_printf(child, "using IRQs %d", irqs[0]);
sys/bus/pci/pci.c
2057
pci_write_config(child, cfg->msi.msi_location + PCIR_MSI_CTRL, ctrl, 2);
sys/bus/pci/pci.c
2067
pci_release_msi_method(device_t dev, device_t child)
sys/bus/pci/pci.c
2069
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
2103
pci_write_config(child, msi->msi_location + PCIR_MSI_CTRL,
sys/bus/pci/pci.c
2107
PCIB_RELEASE_MSI(device_get_parent(dev), child, msi->msi_alloc, irqs,
sys/bus/pci/pci.c
2126
pci_msi_count_method(device_t dev, device_t child)
sys/bus/pci/pci.c
2128
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
2170
pci_set_powerstate_method(device_t dev, device_t child, int state)
sys/bus/pci/pci.c
2172
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
2185
oldstate = pci_get_powerstate(child);
sys/bus/pci/pci.c
2208
status = PCI_READ_CONFIG(dev, child, cfg->pp.pp_status, 2)
sys/bus/pci/pci.c
2238
PCI_WRITE_CONFIG(dev, child, cfg->pp.pp_status, status, 2);
sys/bus/pci/pci.c
2245
pci_get_powerstate_method(device_t dev, device_t child)
sys/bus/pci/pci.c
2247
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
2253
status = PCI_READ_CONFIG(dev, child, cfg->pp.pp_status, 2);
sys/bus/pci/pci.c
2283
pci_set_command_bit(device_t dev, device_t child, uint16_t bit)
sys/bus/pci/pci.c
2287
command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
sys/bus/pci/pci.c
2289
PCI_WRITE_CONFIG(dev, child, PCIR_COMMAND, command, 2);
sys/bus/pci/pci.c
2293
pci_clear_command_bit(device_t dev, device_t child, uint16_t bit)
sys/bus/pci/pci.c
2297
command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
sys/bus/pci/pci.c
2299
PCI_WRITE_CONFIG(dev, child, PCIR_COMMAND, command, 2);
sys/bus/pci/pci.c
2303
pci_enable_busmaster_method(device_t dev, device_t child)
sys/bus/pci/pci.c
2305
pci_set_command_bit(dev, child, PCIM_CMD_BUSMASTEREN);
sys/bus/pci/pci.c
2310
pci_disable_busmaster_method(device_t dev, device_t child)
sys/bus/pci/pci.c
2312
pci_clear_command_bit(dev, child, PCIM_CMD_BUSMASTEREN);
sys/bus/pci/pci.c
2317
pci_enable_io_method(device_t dev, device_t child, int space)
sys/bus/pci/pci.c
2338
pci_set_command_bit(dev, child, bit);
sys/bus/pci/pci.c
2340
command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
sys/bus/pci/pci.c
2343
device_printf(child, "failed to enable %s mapping!\n", error);
sys/bus/pci/pci.c
2348
pci_disable_io_method(device_t dev, device_t child, int space)
sys/bus/pci/pci.c
2369
pci_clear_command_bit(dev, child, bit);
sys/bus/pci/pci.c
2370
command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
sys/bus/pci/pci.c
2372
device_printf(child, "failed to disable %s mapping!\n", error);
sys/bus/pci/pci.c
3153
device_t acpi_dev, child, *devlist;
sys/bus/pci/pci.c
3165
child = devlist[i];
sys/bus/pci/pci.c
3166
dinfo = (struct pci_devinfo *) device_get_ivars(child);
sys/bus/pci/pci.c
3167
pci_cfg_save(child, dinfo, 0);
sys/bus/pci/pci.c
3185
child = devlist[i];
sys/bus/pci/pci.c
3186
dinfo = (struct pci_devinfo *) device_get_ivars(child);
sys/bus/pci/pci.c
3187
if (device_is_attached(child) && dinfo->cfg.hdrtype == 0) {
sys/bus/pci/pci.c
3189
ACPI_PWR_FOR_SLEEP(acpi_dev, child, &dstate);
sys/bus/pci/pci.c
3190
pci_set_powerstate(child, dstate);
sys/bus/pci/pci.c
3201
device_t acpi_dev, child, *devlist;
sys/bus/pci/pci.c
3217
child = devlist[i];
sys/bus/pci/pci.c
3218
dinfo = (struct pci_devinfo *) device_get_ivars(child);
sys/bus/pci/pci.c
3219
if (acpi_dev && device_is_attached(child) &&
sys/bus/pci/pci.c
3221
ACPI_PWR_FOR_SLEEP(acpi_dev, child, NULL);
sys/bus/pci/pci.c
3222
pci_set_powerstate(child, PCI_POWERSTATE_D0);
sys/bus/pci/pci.c
3226
pci_cfg_restore(child, dinfo);
sys/bus/pci/pci.c
3252
device_t child;
sys/bus/pci/pci.c
3261
child = devlist[i];
sys/bus/pci/pci.c
3262
if (device_get_state(child) != DS_NOTPRESENT)
sys/bus/pci/pci.c
3264
dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
3270
pci_cfg_restore(child, dinfo);
sys/bus/pci/pci.c
3271
if (device_probe_and_attach(child) != 0)
sys/bus/pci/pci.c
3272
pci_cfg_save(child, dinfo, 1);
sys/bus/pci/pci.c
3278
pci_child_detached(device_t parent __unused, device_t child)
sys/bus/pci/pci.c
3281
pci_cfg_save(child, device_get_ivars(child), 1);
sys/bus/pci/pci.c
3285
pci_setup_intr(device_t dev, device_t child, struct resource *irq, int flags,
sys/bus/pci/pci.c
3292
error = bus_generic_setup_intr(dev, child, irq, flags, intr,
sys/bus/pci/pci.c
3298
if (device_get_parent(child) != dev) {
sys/bus/pci/pci.c
3306
pci_clear_command_bit(dev, child, PCIM_CMD_INTxDIS);
sys/bus/pci/pci.c
3308
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
3326
child, rman_get_start(irq), &addr, &data,
sys/bus/pci/pci.c
3332
pci_enable_msi(child, addr, data);
sys/bus/pci/pci.c
3342
mv = pci_find_msix_vector(child, rid);
sys/bus/pci/pci.c
3349
child, rman_get_start(irq), &addr, &data,
sys/bus/pci/pci.c
3357
pci_setup_msix_vector(child, vector,
sys/bus/pci/pci.c
3359
pci_unmask_msix_vector(child, vector);
sys/bus/pci/pci.c
3367
if (!pci_has_quirk(pci_get_devid(child),
sys/bus/pci/pci.c
3369
pci_set_command_bit(dev, child, PCIM_CMD_INTxDIS);
sys/bus/pci/pci.c
3371
pci_clear_command_bit(dev, child, PCIM_CMD_INTxDIS);
sys/bus/pci/pci.c
3374
(void)bus_generic_teardown_intr(dev, child, irq,
sys/bus/pci/pci.c
3384
pci_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/bus/pci/pci.c
3393
if (device_get_parent(child) != dev)
sys/bus/pci/pci.c
3394
return(bus_generic_teardown_intr(dev, child, irq, cookie));
sys/bus/pci/pci.c
3399
pci_set_command_bit(dev, child, PCIM_CMD_INTxDIS);
sys/bus/pci/pci.c
3401
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
3419
pci_disable_msi(child);
sys/bus/pci/pci.c
3426
mv = pci_find_msix_vector(child, rid);
sys/bus/pci/pci.c
3432
pci_mask_msix_vector(child, PCI_MSIX_RID2VEC(rid));
sys/bus/pci/pci.c
3437
error = bus_generic_teardown_intr(dev, child, irq, cookie);
sys/bus/pci/pci.c
3445
pci_print_child(device_t dev, device_t child)
sys/bus/pci/pci.c
3451
dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
3454
retval += bus_print_child_header(dev, child);
sys/bus/pci/pci.c
3462
retval += kprintf(" at device %d.%d", pci_get_slot(child),
sys/bus/pci/pci.c
3463
pci_get_function(child));
sys/bus/pci/pci.c
3465
retval += bus_print_child_footer(dev, child);
sys/bus/pci/pci.c
3563
pci_probe_nomatch(device_t dev, device_t child)
sys/bus/pci/pci.c
3571
if ((device = pci_describe_device(child)) != NULL) {
sys/bus/pci/pci.c
3582
if (pci_nomatch_tab[i].class == pci_get_class(child)) {
sys/bus/pci/pci.c
3586
pci_get_subclass(child)) {
sys/bus/pci/pci.c
3597
pci_get_vendor(child), pci_get_device(child),
sys/bus/pci/pci.c
3598
pci_get_slot(child), pci_get_function(child));
sys/bus/pci/pci.c
3599
if (pci_get_intpin(child) > 0) {
sys/bus/pci/pci.c
3602
irq = pci_get_irq(child);
sys/bus/pci/pci.c
3608
pci_cfg_save(child, (struct pci_devinfo *)device_get_ivars(child), 1);
sys/bus/pci/pci.c
3739
pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/bus/pci/pci.c
3744
dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
3831
pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/bus/pci/pci.c
3835
dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
3915
pci_alloc_map(device_t dev, device_t child, int type, int *rid,
sys/bus/pci/pci.c
3918
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
3933
map = pci_read_config(child, *rid, 4);
sys/bus/pci/pci.c
3934
pci_write_config(child, *rid, 0xffffffff, 4);
sys/bus/pci/pci.c
3935
testval = pci_read_config(child, *rid, 4);
sys/bus/pci/pci.c
3937
map |= (pci_addr_t)pci_read_config(child, *rid + 4, 4) << 32;
sys/bus/pci/pci.c
3946
pci_write_config(child, *rid, map, 4);
sys/bus/pci/pci.c
3954
device_get_nameunit(child), type, *rid);
sys/bus/pci/pci.c
3963
device_get_nameunit(child), type, *rid);
sys/bus/pci/pci.c
3985
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child, type, rid,
sys/bus/pci/pci.c
3988
device_printf(child,
sys/bus/pci/pci.c
4002
device_printf(child,
sys/bus/pci/pci.c
4007
pci_write_config(child, *rid, map, 4);
sys/bus/pci/pci.c
4009
pci_write_config(child, *rid + 4, map >> 32, 4);
sys/bus/pci/pci.c
4015
pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/bus/pci/pci.c
4018
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
4026
if (device_get_parent(child) == dev) {
sys/bus/pci/pci.c
4043
pci_assign_interrupt(dev, child, 0);
sys/bus/pci/pci.c
4055
if (PCI_ENABLE_IO(dev, child, type))
sys/bus/pci/pci.c
4060
return (pci_alloc_map(dev, child, type, rid,
sys/bus/pci/pci.c
4076
device_printf(child,
sys/bus/pci/pci.c
4081
bus_generic_activate_resource(dev, child, type,
sys/bus/pci/pci.c
4087
return (resource_list_alloc(rl, dev, child, type, rid,
sys/bus/pci/pci.c
4092
pci_delete_resource(device_t dev, device_t child, int type, int rid)
sys/bus/pci/pci.c
4098
if (device_get_parent(child) != dev)
sys/bus/pci/pci.c
4101
dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
4123
pci_write_config(child, rid, 0, 4);
sys/bus/pci/pci.c
4124
BUS_DELETE_RESOURCE(device_get_parent(dev), child, type, rid);
sys/bus/pci/pci.c
4128
pci_get_resource_list (device_t dev, device_t child)
sys/bus/pci/pci.c
4130
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
4139
pci_read_config_method(device_t dev, device_t child, int reg, int width)
sys/bus/pci/pci.c
4141
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
4149
pci_write_config_method(device_t dev, device_t child, int reg,
sys/bus/pci/pci.c
4152
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
4160
pci_child_location_str_method(device_t dev, device_t child, char *buf,
sys/bus/pci/pci.c
4164
ksnprintf(buf, buflen, "slot=%d function=%d", pci_get_slot(child),
sys/bus/pci/pci.c
4165
pci_get_function(child));
sys/bus/pci/pci.c
4170
pci_child_pnpinfo_str_method(device_t dev, device_t child, char *buf,
sys/bus/pci/pci.c
4176
dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
4186
pci_assign_interrupt_method(device_t dev, device_t child)
sys/bus/pci/pci.c
4188
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/bus/pci/pci.c
4191
return (PCIB_ROUTE_INTERRUPT(device_get_parent(dev), child,
sys/bus/pci/pci_pci.c
339
device_t child;
sys/bus/pci/pci_pci.c
344
child = device_add_child(dev, "pci", sc->secbus);
sys/bus/pci/pci_pci.c
345
if (child != NULL)
sys/bus/pci/pci_pci.c
354
pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/bus/pci/pci_pci.c
370
pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/bus/pci/pci_pci.c
389
pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/bus/pci/pci_pci.c
399
name = device_get_nameunit(child);
sys/bus/pci/pci_pci.c
538
return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
sys/bus/pci/pci_private.h
47
int pci_print_child(device_t dev, device_t child);
sys/bus/pci/pci_private.h
48
void pci_probe_nomatch(device_t dev, device_t child);
sys/bus/pci/pci_private.h
49
int pci_read_ivar(device_t dev, device_t child, int which,
sys/bus/pci/pci_private.h
51
int pci_write_ivar(device_t dev, device_t child, int which,
sys/bus/pci/pci_private.h
53
int pci_setup_intr(device_t dev, device_t child,
sys/bus/pci/pci_private.h
57
int pci_teardown_intr(device_t dev, device_t child,
sys/bus/pci/pci_private.h
59
int pci_get_vpd_ident_method(device_t dev, device_t child,
sys/bus/pci/pci_private.h
61
int pci_get_vpd_readonly_method(device_t dev, device_t child,
sys/bus/pci/pci_private.h
63
int pci_set_powerstate_method(device_t dev, device_t child,
sys/bus/pci/pci_private.h
65
int pci_get_powerstate_method(device_t dev, device_t child);
sys/bus/pci/pci_private.h
66
uint32_t pci_read_config_method(device_t dev, device_t child,
sys/bus/pci/pci_private.h
68
void pci_write_config_method(device_t dev, device_t child,
sys/bus/pci/pci_private.h
70
int pci_enable_busmaster_method(device_t dev, device_t child);
sys/bus/pci/pci_private.h
71
int pci_disable_busmaster_method(device_t dev, device_t child);
sys/bus/pci/pci_private.h
72
int pci_enable_io_method(device_t dev, device_t child, int space);
sys/bus/pci/pci_private.h
73
int pci_disable_io_method(device_t dev, device_t child, int space);
sys/bus/pci/pci_private.h
74
int pci_find_extcap_method(device_t dev, device_t child,
sys/bus/pci/pci_private.h
76
int pci_alloc_msi_method(device_t dev, device_t child, int *rid, int count, int cpuid);
sys/bus/pci/pci_private.h
77
int pci_alloc_msix_vector_method(device_t dev, device_t child, u_int vector, int *rid, int cpuid);
sys/bus/pci/pci_private.h
78
int pci_release_msi_method(device_t dev, device_t child);
sys/bus/pci/pci_private.h
79
int pci_release_msix_vector_method(device_t dev, device_t child, int rid);
sys/bus/pci/pci_private.h
80
int pci_msi_count_method(device_t dev, device_t child);
sys/bus/pci/pci_private.h
81
int pci_msix_count_method(device_t dev, device_t child);
sys/bus/pci/pci_private.h
82
struct resource *pci_alloc_resource(device_t dev, device_t child,
sys/bus/pci/pci_private.h
85
void pci_delete_resource(device_t dev, device_t child,
sys/bus/pci/pci_private.h
87
struct resource_list *pci_get_resource_list (device_t dev, device_t child);
sys/bus/pci/pci_private.h
92
int pci_child_location_str_method(device_t cbdev, device_t child,
sys/bus/pci/pci_private.h
94
int pci_child_pnpinfo_str_method(device_t cbdev, device_t child,
sys/bus/pci/pci_private.h
96
int pci_assign_interrupt_method(device_t dev, device_t child);
sys/bus/pci/pcib_private.h
72
int pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result);
sys/bus/pci/pcib_private.h
73
int pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value);
sys/bus/pci/pcib_private.h
74
struct resource *pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/bus/pci/vga_pci.c
387
vga_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/bus/pci/vga_pci.c
394
vga_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/bus/pci/vga_pci.c
401
vga_pci_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/bus/pci/vga_pci.c
411
vga_pci_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/bus/pci/vga_pci.c
432
vga_pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/bus/pci/vga_pci.c
458
vga_pci_release_resource(device_t dev, device_t child, int type, int rid,
sys/bus/pci/vga_pci.c
497
vga_pci_read_config(device_t dev, device_t child, int reg, int width)
sys/bus/pci/vga_pci.c
504
vga_pci_write_config(device_t dev, device_t child, int reg,
sys/bus/pci/vga_pci.c
512
vga_pci_enable_busmaster(device_t dev, device_t child)
sys/bus/pci/vga_pci.c
519
vga_pci_disable_busmaster(device_t dev, device_t child)
sys/bus/pci/vga_pci.c
526
vga_pci_enable_io(device_t dev, device_t child, int space)
sys/bus/pci/vga_pci.c
530
device_get_nameunit(child));
sys/bus/pci/vga_pci.c
535
vga_pci_disable_io(device_t dev, device_t child, int space)
sys/bus/pci/vga_pci.c
539
device_get_nameunit(child));
sys/bus/pci/vga_pci.c
544
vga_pci_get_vpd_ident(device_t dev, device_t child, const char **identptr)
sys/bus/pci/vga_pci.c
551
vga_pci_get_vpd_readonly(device_t dev, device_t child, const char *kw,
sys/bus/pci/vga_pci.c
559
vga_pci_set_powerstate(device_t dev, device_t child, int state)
sys/bus/pci/vga_pci.c
563
device_get_nameunit(child));
sys/bus/pci/vga_pci.c
568
vga_pci_get_powerstate(device_t dev, device_t child)
sys/bus/pci/vga_pci.c
572
device_get_nameunit(child));
sys/bus/pci/vga_pci.c
577
vga_pci_assign_interrupt(device_t dev, device_t child)
sys/bus/pci/vga_pci.c
581
device_get_nameunit(child));
sys/bus/pci/vga_pci.c
586
vga_pci_find_extcap(device_t dev, device_t child, int capability,
sys/bus/pci/vga_pci.c
594
vga_pci_alloc_msi(device_t dev, device_t child, int *rid, int count,
sys/bus/pci/vga_pci.c
605
sc->vga_msi_child = child;
sys/bus/pci/vga_pci.c
610
vga_pci_release_msi(device_t dev, device_t child)
sys/bus/pci/vga_pci.c
616
if (sc->vga_msi_child != child)
sys/bus/pci/vga_pci.c
625
vga_pci_msi_count(device_t dev, device_t child)
sys/bus/pci/vga_pci.c
66
static struct resource *vga_pci_alloc_resource(device_t dev, device_t child,
sys/bus/pci/vga_pci.c
69
static int vga_pci_release_resource(device_t dev, device_t child, int type,
sys/bus/pci/x86_64/legacy.c
138
device_t child;
sys/bus/pci/x86_64/legacy.c
153
child = BUS_ADD_CHILD(dev, dev, 0, "isa", 0);
sys/bus/pci/x86_64/legacy.c
154
if (child == NULL)
sys/bus/pci/x86_64/legacy.c
156
device_probe_and_attach(child);
sys/bus/pci/x86_64/legacy.c
163
legacy_print_child(device_t bus, device_t child)
sys/bus/pci/x86_64/legacy.c
165
struct legacy_device *atdev = DEVTOAT(child);
sys/bus/pci/x86_64/legacy.c
168
retval += bus_print_child_header(bus, child);
sys/bus/pci/x86_64/legacy.c
179
device_t child;
sys/bus/pci/x86_64/legacy.c
187
child = device_add_child_ordered(bus, order, name, unit);
sys/bus/pci/x86_64/legacy.c
188
if (child == NULL) {
sys/bus/pci/x86_64/legacy.c
193
device_set_ivars(child, atdev);
sys/bus/pci/x86_64/legacy.c
195
return (child);
sys/bus/pci/x86_64/legacy.c
199
legacy_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/bus/pci/x86_64/legacy.c
201
struct legacy_device *atdev = DEVTOAT(child);
sys/bus/pci/x86_64/legacy.c
217
legacy_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/bus/pci/x86_64/legacy.c
219
struct legacy_device *atdev = DEVTOAT(child);
sys/bus/pci/x86_64/legacy.c
239
static int cpu_read_ivar(device_t dev, device_t child, int index,
sys/bus/pci/x86_64/legacy.c
243
static struct resource_list *cpu_get_rlist(device_t dev, device_t child);
sys/bus/pci/x86_64/legacy.c
289
device_t child;
sys/bus/pci/x86_64/legacy.c
299
child = BUS_ADD_CHILD(parent, 150, "cpu", i);
sys/bus/pci/x86_64/legacy.c
300
if (child == NULL)
sys/bus/pci/x86_64/legacy.c
309
device_t child;
sys/bus/pci/x86_64/legacy.c
319
child = device_add_child_ordered(bus, order, name, unit);
sys/bus/pci/x86_64/legacy.c
320
if (child != NULL) {
sys/bus/pci/x86_64/legacy.c
321
pc->pc_device = child;
sys/bus/pci/x86_64/legacy.c
322
device_set_ivars(child, cd);
sys/bus/pci/x86_64/legacy.c
325
return (child);
sys/bus/pci/x86_64/legacy.c
329
cpu_get_rlist(device_t dev, device_t child)
sys/bus/pci/x86_64/legacy.c
333
cpdev = device_get_ivars(child);
sys/bus/pci/x86_64/legacy.c
338
cpu_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/bus/pci/x86_64/legacy.c
344
cpdev = device_get_ivars(child);
sys/bus/pci/x86_64/legacyvar.h
48
int legacy_pcib_read_ivar(device_t dev, device_t child, int which,
sys/bus/pci/x86_64/legacyvar.h
52
int legacy_pcib_write_ivar(device_t dev, device_t child, int which,
sys/bus/pci/x86_64/legacyvar.h
54
struct resource *legacy_pcib_alloc_resource(device_t dev, device_t child,
sys/bus/pci/x86_64/pci_bus.c
333
device_t child;
sys/bus/pci/x86_64/pci_bus.c
414
child = BUS_ADD_CHILD(parent, parent, 100 + busnum,
sys/bus/pci/x86_64/pci_bus.c
416
device_set_desc(child, s);
sys/bus/pci/x86_64/pci_bus.c
417
legacy_set_pcibus(child, busnum);
sys/bus/pci/x86_64/pci_bus.c
440
child = BUS_ADD_CHILD(parent, parent, 100, "pcib", 0);
sys/bus/pci/x86_64/pci_bus.c
441
legacy_set_pcibus(child, 0);
sys/bus/pci/x86_64/pci_bus.c
479
legacy_pcib_read_ivar(device_t dev, device_t child, int which,
sys/bus/pci/x86_64/pci_bus.c
495
legacy_pcib_write_ivar(device_t dev, device_t child, int which,
sys/bus/pci/x86_64/pci_bus.c
518
legacy_pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/bus/pci/x86_64/pci_bus.c
537
return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
sys/bus/ppbus/ppbconf.c
100
return child;
sys/bus/ppbus/ppbconf.c
407
ppbus_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
sys/bus/ppbus/ppbconf.c
413
struct ppb_device *ppbdev = (struct ppb_device *)device_get_ivars(child);
sys/bus/ppbus/ppbconf.c
416
if (ppb->ppb_owner != child)
sys/bus/ppbus/ppbconf.c
419
if ((error = BUS_SETUP_INTR(device_get_parent(bus), child, r, flags,
sys/bus/ppbus/ppbconf.c
433
ppbus_teardown_intr(device_t bus, device_t child, struct resource *r, void *ih)
sys/bus/ppbus/ppbconf.c
436
struct ppb_device *ppbdev = (struct ppb_device *)device_get_ivars(child);
sys/bus/ppbus/ppbconf.c
439
if ((ppb->ppb_owner != child) || (ppbdev->intr_cookie != ih) ||
sys/bus/ppbus/ppbconf.c
447
return (BUS_TEARDOWN_INTR(device_get_parent(bus), child, r, ih));
sys/bus/ppbus/ppbconf.c
87
device_t child;
sys/bus/ppbus/ppbconf.c
97
child = device_add_child_ordered(parent, order, name, unit);
sys/bus/ppbus/ppbconf.c
98
device_set_ivars(child, ppbdev);
sys/bus/smbus/smbus.c
146
device_t child;
sys/bus/smbus/smbus.c
149
child = device_add_child_ordered(parent, order, name, unit);
sys/bus/smbus/smbus.c
150
device_probe_and_attach(child);
sys/bus/smbus/smbus.c
152
return child;
sys/bus/u4b/audio/uaudio.c
1060
child = device_add_child(dev, "pcm", -1);
sys/bus/u4b/audio/uaudio.c
1062
if (child == NULL) {
sys/bus/u4b/audio/uaudio.c
1066
device_set_ivars(child, &sc->sc_sndcard_func);
sys/bus/u4b/audio/uaudio.c
914
device_t child;
sys/bus/u4b/controller/usb_controller.c
703
struct usb_device *child;
sys/bus/u4b/controller/usb_controller.c
765
child = usb_alloc_device(bus->bdev, bus, NULL, 0, 0, 1,
sys/bus/u4b/controller/usb_controller.c
767
if (child) {
sys/bus/u4b/controller/usb_controller.c
768
err = usb_probe_and_attach(child,
sys/bus/u4b/usb_hub.c
1557
struct usb_device *child;
sys/bus/u4b/usb_hub.c
1569
child = usb_bus_port_get_device(bus, hub->ports + x);
sys/bus/u4b/usb_hub.c
1571
if (child == NULL) {
sys/bus/u4b/usb_hub.c
1578
usb_free_device(child, 0);
sys/bus/u4b/usb_hub.c
1628
uhub_find_iface_index(struct usb_hub *hub, device_t child,
sys/bus/u4b/usb_hub.c
1647
(iface->subdev == child)) {
sys/bus/u4b/usb_hub.c
1661
uhub_child_location_string(device_t parent, device_t child,
sys/bus/u4b/usb_hub.c
1677
uhub_find_iface_index(hub, child, &res);
sys/bus/u4b/usb_hub.c
1703
uhub_child_pnpinfo_string(device_t parent, device_t child,
sys/bus/u4b/usb_hub.c
1720
uhub_find_iface_index(hub, child, &res);
sys/bus/u4b/usb_hub.c
2684
struct usb_device *child;
sys/bus/u4b/usb_hub.c
2710
child = usb_bus_port_get_device(udev->bus,
sys/bus/u4b/usb_hub.c
2713
if (child == NULL)
sys/bus/u4b/usb_hub.c
2716
if (child->flags.self_suspended)
sys/bus/u4b/usb_hub.c
288
uhub_tt_buffer_reset_async_locked(struct usb_device *child, struct usb_endpoint *ep)
sys/bus/u4b/usb_hub.c
297
if (child == NULL || ep == NULL)
sys/bus/u4b/usb_hub.c
300
udev = child->parent_hs_hub;
sys/bus/u4b/usb_hub.c
301
port = child->hs_port_no;
sys/bus/u4b/usb_hub.c
309
(child->speed != USB_SPEED_LOW &&
sys/bus/u4b/usb_hub.c
310
child->speed != USB_SPEED_FULL) ||
sys/bus/u4b/usb_hub.c
311
(child->flags.usb_mode != USB_MODE_HOST) ||
sys/bus/u4b/usb_hub.c
335
((child->address & 0x7F) << 4) |
sys/bus/u4b/usb_hub.c
415
struct usb_device *child;
sys/bus/u4b/usb_hub.c
432
child = usb_bus_port_get_device(udev->bus, up);
sys/bus/u4b/usb_hub.c
433
if (child != NULL &&
sys/bus/u4b/usb_hub.c
434
child->flags.usb_mode == USB_MODE_HOST &&
sys/bus/u4b/usb_hub.c
435
child->speed == speed)
sys/bus/u4b/usb_hub.c
443
uhub_explore_handle_re_enumerate(struct usb_device *child)
sys/bus/u4b/usb_hub.c
449
if (child->flags.usb_mode != USB_MODE_HOST)
sys/bus/u4b/usb_hub.c
452
do_unlock = usbd_enum_lock(child);
sys/bus/u4b/usb_hub.c
453
switch (child->re_enumerate_wait) {
sys/bus/u4b/usb_hub.c
455
err = usbd_set_config_index(child,
sys/bus/u4b/usb_hub.c
461
if (child->parent_hub == NULL) {
sys/bus/u4b/usb_hub.c
466
err = usbd_req_re_enumerate(child, NULL);
sys/bus/u4b/usb_hub.c
469
err = usbd_set_config_index(child, 0);
sys/bus/u4b/usb_hub.c
471
err = usb_probe_and_attach(child,
sys/bus/u4b/usb_hub.c
474
child->re_enumerate_wait = USB_RE_ENUM_DONE;
sys/bus/u4b/usb_hub.c
479
err = usbd_set_config_index(child,
sys/bus/u4b/usb_hub.c
485
if (child->parent_hub == NULL) {
sys/bus/u4b/usb_hub.c
491
err = usbd_req_clear_port_feature(child->parent_hub,
sys/bus/u4b/usb_hub.c
492
NULL, child->port_no, UHF_PORT_ENABLE);
sys/bus/u4b/usb_hub.c
498
child->re_enumerate_wait = USB_RE_ENUM_DONE;
sys/bus/u4b/usb_hub.c
502
err = usbd_set_config_index(child,
sys/bus/u4b/usb_hub.c
503
child->next_config_index);
sys/bus/u4b/usb_hub.c
508
err = usb_probe_and_attach(child,
sys/bus/u4b/usb_hub.c
511
child->re_enumerate_wait = USB_RE_ENUM_DONE;
sys/bus/u4b/usb_hub.c
515
child->re_enumerate_wait = USB_RE_ENUM_DONE;
sys/bus/u4b/usb_hub.c
519
usbd_enum_unlock(child);
sys/bus/u4b/usb_hub.c
533
struct usb_device *child;
sys/bus/u4b/usb_hub.c
544
child = usb_bus_port_get_device(bus, up);
sys/bus/u4b/usb_hub.c
545
if (child == NULL) {
sys/bus/u4b/usb_hub.c
550
uhub_explore_handle_re_enumerate(child);
sys/bus/u4b/usb_hub.c
554
if (child->driver_added_refcount != refcount) {
sys/bus/u4b/usb_hub.c
555
child->driver_added_refcount = refcount;
sys/bus/u4b/usb_hub.c
556
err = usb_probe_and_attach(child,
sys/bus/u4b/usb_hub.c
564
if (child->flags.usb_mode == USB_MODE_DEVICE)
sys/bus/u4b/usb_hub.c
565
usbd_ctrl_transfer_setup(child);
sys/bus/u4b/usb_hub.c
569
if (child->hub)
sys/bus/u4b/usb_hub.c
570
err = (child->hub->explore) (child);
sys/bus/u4b/usb_hub.c
612
struct usb_device *child;
sys/bus/u4b/usb_hub.c
624
child = usb_bus_port_get_device(udev->bus,
sys/bus/u4b/usb_hub.c
639
if (child != NULL) {
sys/bus/u4b/usb_hub.c
643
usb_free_device(child, 0);
sys/bus/u4b/usb_hub.c
644
child = NULL;
sys/bus/u4b/usb_hub.c
823
child = usb_alloc_device(sc->sc_dev, udev->bus, udev,
sys/bus/u4b/usb_hub.c
825
if (child == NULL) {
sys/bus/u4b/usb_hub.c
832
if (child != NULL) {
sys/bus/u4b/usb_hub.c
836
usb_free_device(child, 0);
sys/bus/u4b/usb_hub.c
837
child = NULL;
sys/bus/u4b/usb_hub.c
885
struct usb_device *child;
sys/bus/u4b/usb_hub.c
893
child = usb_bus_port_get_device(udev->bus,
sys/bus/u4b/usb_hub.c
944
if (child) {
sys/bus/u4b/usb_hub.c
951
usb_dev_resume_peer(child);
sys/bus/u4b/usb_hub.c
952
else if (child->flags.usb_mode == USB_MODE_DEVICE)
sys/bus/u4b/usb_hub.c
953
usb_dev_suspend_peer(child);
sys/dev/acpica/acpi.c
1002
acpi_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/acpica/acpi.c
1006
if ((ad = device_get_ivars(child)) == NULL) {
sys/dev/acpica/acpi.c
1007
device_printf(child, "device has no ivars\n");
sys/dev/acpica/acpi.c
1039
acpi_get_rlist(device_t dev, device_t child)
sys/dev/acpica/acpi.c
1043
ad = device_get_ivars(child);
sys/dev/acpica/acpi.c
110
static int acpi_print_child(device_t bus, device_t child);
sys/dev/acpica/acpi.c
1109
acpi_alloc_resource(device_t bus, device_t child, int type, int *rid,
sys/dev/acpica/acpi.c
111
static void acpi_probe_nomatch(device_t bus, device_t child);
sys/dev/acpica/acpi.c
1113
struct acpi_device *ad = device_get_ivars(child);
sys/dev/acpica/acpi.c
113
static int acpi_read_ivar(device_t dev, device_t child, int index,
sys/dev/acpica/acpi.c
1140
if (bus == device_get_parent(child) && start == 0UL && end == ~0UL) {
sys/dev/acpica/acpi.c
115
static int acpi_write_ivar(device_t dev, device_t child, int index,
sys/dev/acpica/acpi.c
1157
child);
sys/dev/acpica/acpi.c
1159
res = BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type, rid,
sys/dev/acpica/acpi.c
1166
if (bus_activate_resource(child, type, *rid, res) != 0) {
sys/dev/acpica/acpi.c
117
static struct resource_list *acpi_get_rlist(device_t dev, device_t child);
sys/dev/acpica/acpi.c
1173
if (res != NULL && device_get_parent(child) == bus)
sys/dev/acpica/acpi.c
1186
acpi_lookup_irq_resource(child, *rid, res, &ares))) {
sys/dev/acpica/acpi.c
1187
acpi_config_intr(child, &ares);
sys/dev/acpica/acpi.c
119
static struct resource *acpi_alloc_resource(device_t bus, device_t child,
sys/dev/acpica/acpi.c
1200
acpi_release_resource(device_t bus, device_t child, int type, int rid,
sys/dev/acpica/acpi.c
122
static int acpi_release_resource(device_t bus, device_t child, int type,
sys/dev/acpica/acpi.c
1227
ret = bus_deactivate_resource(child, type, rid, r);
sys/dev/acpica/acpi.c
1233
ret = BUS_RELEASE_RESOURCE(device_get_parent(bus), child, type, rid, r);
sys/dev/acpica/acpi.c
124
static void acpi_delete_resource(device_t bus, device_t child, int type,
sys/dev/acpica/acpi.c
1241
acpi_delete_resource(device_t bus, device_t child, int type, int rid)
sys/dev/acpica/acpi.c
1245
rl = acpi_get_rlist(bus, child);
sys/dev/acpica/acpi.c
138
static int acpi_set_powerstate_method(device_t bus, device_t child,
sys/dev/acpica/acpi.c
140
static int acpi_isa_pnp_probe(device_t bus, device_t child,
sys/dev/acpica/acpi.c
144
static void acpi_disable_not_present(device_t child);
sys/dev/acpica/acpi.c
1586
acpi_set_powerstate_method(device_t bus, device_t child, int state)
sys/dev/acpica/acpi.c
1593
h = acpi_get_handle(child);
sys/dev/acpica/acpi.c
1611
acpi_isa_pnp_probe(device_t bus, device_t child, struct isa_pnp_id *ids)
sys/dev/acpica/acpi.c
1626
lid = acpi_isa_get_logicalid(child);
sys/dev/acpica/acpi.c
1627
cid_count = acpi_isa_get_compatid(child, cids, 8);
sys/dev/acpica/acpi.c
1644
device_set_desc(child, ids->ip_desc);
sys/dev/acpica/acpi.c
165
static int acpi_child_location_str_method(device_t acdev, device_t child,
sys/dev/acpica/acpi.c
167
static int acpi_child_pnpinfo_str_method(device_t acdev, device_t child,
sys/dev/acpica/acpi.c
1776
acpi_disable_not_present(device_t child)
sys/dev/acpica/acpi.c
1778
device_disable(child);
sys/dev/acpica/acpi.c
1779
acpi_set_recheck(child, 1);
sys/dev/acpica/acpi.c
1823
device_t bus, child;
sys/dev/acpica/acpi.c
1869
child = BUS_ADD_CHILD(bus, bus, order, NULL, -1);
sys/dev/acpica/acpi.c
1870
if (child == NULL)
sys/dev/acpica/acpi.c
1874
acpi_set_handle(child, handle);
sys/dev/acpica/acpi.c
1875
AcpiAttachData(handle, acpi_fake_objhandler, child);
sys/dev/acpica/acpi.c
1886
if (type == ACPI_TYPE_DEVICE && !acpi_DeviceIsPresent(child)) {
sys/dev/acpica/acpi.c
1897
acpi_disable_not_present(child);
sys/dev/acpica/acpi.c
1908
acpi_parse_resources(child, handle, &acpi_res_parse_set, NULL);
sys/dev/acpica/acpi.c
2833
device_t child;
sys/dev/acpica/acpi.c
2843
child = devlist[i];
sys/dev/acpica/acpi.c
2844
acpi_wake_sysctl_walk(child);
sys/dev/acpica/acpi.c
2845
if (!device_is_attached(child))
sys/dev/acpica/acpi.c
2847
status = AcpiEvaluateObject(acpi_get_handle(child), "_PRW", NULL, NULL);
sys/dev/acpica/acpi.c
2849
SYSCTL_ADD_PROC(device_get_sysctl_ctx(child),
sys/dev/acpica/acpi.c
2850
SYSCTL_CHILDREN(device_get_sysctl_tree(child)), OID_AUTO,
sys/dev/acpica/acpi.c
2851
"wake", CTLTYPE_INT | CTLFLAG_RW, child, 0,
sys/dev/acpica/acpi.c
412
device_t child;
sys/dev/acpica/acpi.c
436
if ((child = BUS_ADD_CHILD(parent, parent, 10, "acpi", 0)) == NULL) {
sys/dev/acpica/acpi.c
765
device_t child, *devlist;
sys/dev/acpica/acpi.c
781
child = devlist[i];
sys/dev/acpica/acpi.c
782
if (!device_is_attached(child))
sys/dev/acpica/acpi.c
790
error = acpi_device_pwr_for_sleep(device_get_parent(child),
sys/dev/acpica/acpi.c
791
child, &pstate);
sys/dev/acpica/acpi.c
793
pci_set_powerstate(child, pstate);
sys/dev/acpica/acpi.c
806
device_t child, *devlist;
sys/dev/acpica/acpi.c
814
child = devlist[i];
sys/dev/acpica/acpi.c
815
handle = acpi_get_handle(child);
sys/dev/acpica/acpi.c
818
if (device_is_attached(child) && acpi_do_powerstate)
sys/dev/acpica/acpi.c
819
pci_set_powerstate(child, PCI_POWERSTATE_D0);
sys/dev/acpica/acpi.c
848
device_t child;
sys/dev/acpica/acpi.c
854
child = device_add_child_ordered(parent, order, name, unit);
sys/dev/acpica/acpi.c
855
if (child != NULL)
sys/dev/acpica/acpi.c
856
device_set_ivars(child, ad);
sys/dev/acpica/acpi.c
859
return (child);
sys/dev/acpica/acpi.c
863
acpi_print_child(device_t bus, device_t child)
sys/dev/acpica/acpi.c
865
struct acpi_device *adev = device_get_ivars(child);
sys/dev/acpica/acpi.c
869
retval += bus_print_child_header(bus, child);
sys/dev/acpica/acpi.c
874
if (device_get_flags(child))
sys/dev/acpica/acpi.c
875
retval += kprintf(" flags %#x", device_get_flags(child));
sys/dev/acpica/acpi.c
876
retval += bus_print_child_footer(bus, child);
sys/dev/acpica/acpi.c
890
acpi_probe_nomatch(device_t bus, device_t child)
sys/dev/acpica/acpi.c
904
device_t child, *devlist;
sys/dev/acpica/acpi.c
910
child = devlist[i];
sys/dev/acpica/acpi.c
911
if (device_get_state(child) == DS_NOTPRESENT) {
sys/dev/acpica/acpi.c
913
if (device_probe_and_attach(child) != 0) {
sys/dev/acpica/acpi.c
923
acpi_child_location_str_method(device_t cbdev, device_t child, char *buf,
sys/dev/acpica/acpi.c
926
struct acpi_device *dinfo = device_get_ivars(child);
sys/dev/acpica/acpi.c
937
acpi_child_pnpinfo_str_method(device_t cbdev, device_t child, char *buf,
sys/dev/acpica/acpi.c
941
struct acpi_device *dinfo = device_get_ivars(child);
sys/dev/acpica/acpi.c
960
acpi_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/acpica/acpi.c
964
if ((ad = device_get_ivars(child)) == NULL) {
sys/dev/acpica/acpi.c
965
device_printf(child, "device has no ivars\n");
sys/dev/acpica/acpi.c
992
*(int *)result = acpi_isa_get_logicalid(child);
sys/dev/acpica/acpi_cpu.c
160
device_t child;
sys/dev/acpica/acpi_cpu.c
235
child = BUS_ADD_CHILD(dev, dev, 0, "cpu_cst", -1);
sys/dev/acpica/acpi_cpu.c
236
if (child == NULL)
sys/dev/acpica/acpi_cpu.c
238
acpi_set_handle(child, handle);
sys/dev/acpica/acpi_cpu.c
239
acpi_set_magic(child, cpu_id);
sys/dev/acpica/acpi_cpu.c
240
sc->cpu_cst = child;
sys/dev/acpica/acpi_cpu.c
242
child = BUS_ADD_CHILD(dev, dev, 0, "cpu_pst", -1);
sys/dev/acpica/acpi_cpu.c
243
if (child == NULL)
sys/dev/acpica/acpi_cpu.c
245
acpi_set_handle(child, handle);
sys/dev/acpica/acpi_cpu.c
246
acpi_set_magic(child, cpu_id);
sys/dev/acpica/acpi_cpu.c
247
sc->cpu_pst = child;
sys/dev/acpica/acpi_cpu.c
262
acpi_cpu_get_rlist(device_t dev, device_t child __unused)
sys/dev/acpica/acpi_cpu.c
268
acpi_cpu_alloc_resource(device_t dev, device_t child __unused,
sys/dev/acpica/acpi_cpu.c
277
acpi_cpu_release_resource(device_t dev, device_t child __unused,
sys/dev/acpica/acpi_ec.c
327
device_t child;
sys/dev/acpica/acpi_ec.c
342
child = BUS_ADD_CHILD(parent, parent, 0, "acpi_ec", ecdt->Uid);
sys/dev/acpica/acpi_ec.c
343
if (child == NULL) {
sys/dev/acpica/acpi_ec.c
351
device_delete_child(parent, child);
sys/dev/acpica/acpi_ec.c
355
acpi_set_handle(child, h);
sys/dev/acpica/acpi_ec.c
358
bus_set_resource(child, SYS_RES_IOPORT, 0, ecdt->Data.Address,
sys/dev/acpica/acpi_ec.c
360
bus_set_resource(child, SYS_RES_IOPORT, 1, ecdt->Control.Address,
sys/dev/acpica/acpi_ec.c
375
acpi_set_private(child, params);
sys/dev/acpica/acpi_ec.c
378
if (device_probe_and_attach(child) != 0)
sys/dev/acpica/acpi_ec.c
379
device_delete_child(parent, child);
sys/dev/acpica/acpi_hpet.c
320
device_t child;
sys/dev/acpica/acpi_hpet.c
337
child = BUS_ADD_CHILD(parent, parent, 0, "acpi_hpet", 0);
sys/dev/acpica/acpi_hpet.c
338
if (child == NULL) {
sys/dev/acpica/acpi_hpet.c
345
acpi_set_magic(child, (uintptr_t)&acpi_hpet_devclass);
sys/dev/acpica/acpi_hpet.c
347
if (bus_set_resource(child, SYS_RES_MEMORY, 0,
sys/dev/acpica/acpi_hpet.c
349
device_printf(child,
sys/dev/acpica/acpi_hpet.c
375
child = BUS_ADD_CHILD(parent, parent, 0, "acpi_hpet", 0);
sys/dev/acpica/acpi_hpet.c
376
if (child == NULL) {
sys/dev/acpica/acpi_hpet.c
382
acpi_set_magic(child, (uintptr_t)&acpi_hpet_devclass);
sys/dev/acpica/acpi_hpet.c
385
if (bus_set_resource(child, SYS_RES_MEMORY, 0,
sys/dev/acpica/acpi_hpet.c
387
device_printf(child, "could not set iomem resources: "
sys/dev/acpica/acpi_isab.c
121
acpi_isab_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/acpica/acpi_isab.c
58
static int acpi_isab_read_ivar(device_t dev, device_t child, int which,
sys/dev/acpica/acpi_pci.c
107
acpi_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/acpica/acpi_pci.c
111
dinfo = device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
120
return (pci_read_ivar(dev, child, which, result));
sys/dev/acpica/acpi_pci.c
124
acpi_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/acpica/acpi_pci.c
128
dinfo = device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
137
return (pci_write_ivar(dev, child, which, value));
sys/dev/acpica/acpi_pci.c
141
acpi_pci_child_location_str_method(device_t cbdev, device_t child, char *buf,
sys/dev/acpica/acpi_pci.c
144
struct acpi_pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
146
pci_child_location_str_method(cbdev, child, buf, buflen);
sys/dev/acpica/acpi_pci.c
159
acpi_pci_set_powerstate_method(device_t dev, device_t child, int state)
sys/dev/acpica/acpi_pci.c
179
old_state = pci_get_powerstate(child);
sys/dev/acpica/acpi_pci.c
181
error = pci_set_powerstate_method(dev, child, state);
sys/dev/acpica/acpi_pci.c
185
h = acpi_get_handle(child);
sys/dev/acpica/acpi_pci.c
193
error = pci_set_powerstate_method(dev, child, state);
sys/dev/acpica/acpi_pci.c
204
device_t child;
sys/dev/acpica/acpi_pci.c
210
child = acpi_get_device(handle);
sys/dev/acpica/acpi_pci.c
211
if (child != NULL) {
sys/dev/acpica/acpi_pci.c
212
if (device_is_alive(child)) {
sys/dev/acpica/acpi_pci.c
219
device_printf(child,
sys/dev/acpica/acpi_pci.c
225
KASSERT(device_get_parent(child) ==
sys/dev/acpica/acpi_pci.c
229
device_delete_child(device_get_parent(child), child);
sys/dev/acpica/acpi_pci.c
325
device_t acpi_dev, child, *devlist;
sys/dev/acpica/acpi_pci.c
336
child = devlist[i];
sys/dev/acpica/acpi_pci.c
337
dinfo = (struct pci_devinfo *)device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
338
pci_cfg_save(child, dinfo, 0);
sys/dev/acpica/acpi_pci.c
358
child = devlist[i];
sys/dev/acpica/acpi_pci.c
359
dinfo = (struct pci_devinfo *)device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
360
if (device_is_attached(child) && dinfo->cfg.hdrtype == 0) {
sys/dev/acpica/acpi_pci.c
362
ACPI_PWR_FOR_SLEEP(acpi_dev, child, &dstate);
sys/dev/acpica/acpi_pci.c
363
pci_set_powerstate(child, dstate);
sys/dev/acpica/acpi_pci.c
375
device_t acpi_dev, child, *devlist;
sys/dev/acpica/acpi_pci.c
390
child = devlist[i];
sys/dev/acpica/acpi_pci.c
391
dinfo = (struct pci_devinfo *) device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
392
if (acpi_dev && device_is_attached(child) &&
sys/dev/acpica/acpi_pci.c
394
ACPI_PWR_FOR_SLEEP(acpi_dev, child, NULL);
sys/dev/acpica/acpi_pci.c
395
pci_set_powerstate(child, PCI_POWERSTATE_D0);
sys/dev/acpica/acpi_pci.c
401
pci_cfg_restore(child, dinfo);
sys/dev/acpica/acpi_pci.c
68
device_t child, char *buf, size_t buflen);
sys/dev/acpica/acpi_pci.c
70
static int acpi_pci_read_ivar(device_t dev, device_t child, int which,
sys/dev/acpica/acpi_pci.c
72
static int acpi_pci_write_ivar(device_t dev, device_t child, int which,
sys/dev/acpica/acpi_pci.c
76
static int acpi_pci_set_powerstate_method(device_t dev, device_t child,
sys/dev/acpica/acpi_pcib.c
113
child = acpi_get_device(handle);
sys/dev/acpica/acpi_pcib.c
114
if (child == NULL)
sys/dev/acpica/acpi_pcib.c
118
error = device_probe_and_attach(child);
sys/dev/acpica/acpi_pcib.c
126
acpi_pci_link_add_reference(child, entry->SourceIndex, pcib,
sys/dev/acpica/acpi_pcib.c
133
device_t child;
sys/dev/acpica/acpi_pcib.c
161
if ((child = device_add_child(dev, "pci", busno)) == NULL) {
sys/dev/acpica/acpi_pcib.c
95
device_t child, pcib;
sys/dev/acpica/acpi_pcib_acpi.c
268
acpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/acpica/acpi_pcib_acpi.c
290
acpi_pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/acpica/acpi_pcib_acpi.c
367
acpi_pcib_acpi_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/dev/acpica/acpi_pcib_acpi.c
389
return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
sys/dev/acpica/acpi_pcib_acpi.c
67
static int acpi_pcib_read_ivar(device_t dev, device_t child,
sys/dev/acpica/acpi_pcib_acpi.c
69
static int acpi_pcib_write_ivar(device_t dev, device_t child,
sys/dev/acpica/acpi_pcib_acpi.c
84
device_t child, int type, int *rid,
sys/dev/acpica/acpi_pcib_pci.c
126
acpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/acpica/acpi_pcib_pci.c
135
return (pcib_read_ivar(dev, child, which, result));
sys/dev/acpica/acpi_pcib_pci.c
61
static int acpi_pcib_read_ivar(device_t dev, device_t child,
sys/dev/acpica/acpivar.h
436
acpi_device_get_parent_softc(device_t child)
sys/dev/acpica/acpivar.h
440
parent = device_get_parent(child);
sys/dev/agp/agp.c
871
device_t *children, child;
sys/dev/agp/agp.c
878
child = NULL;
sys/dev/agp/agp.c
881
child = children[i];
sys/dev/agp/agp.c
886
return child;
sys/dev/apple/fw/apple_fw.c
79
device_t child;
sys/dev/apple/fw/apple_fw.c
88
child = BUS_ADD_CHILD(parent, parent, 0, "apple_fw", -1);
sys/dev/apple/fw/apple_fw.c
89
if (child != NULL)
sys/dev/apple/fw/apple_fw.c
90
acpi_set_magic(child, (uintptr_t)&apple_fw_devclass);
sys/dev/disk/fd/fd.c
669
fdc_read_ivar(device_t dev, device_t child, int which, u_long *result)
sys/dev/disk/fd/fd.c
671
struct fdc_ivars *ivars = device_get_ivars(child);
sys/dev/disk/fd/fd.c
756
device_t child;
sys/dev/disk/fd/fd.c
761
child = device_add_child(dev, name, unit);
sys/dev/disk/fd/fd.c
762
if (child == NULL)
sys/dev/disk/fd/fd.c
764
device_set_ivars(child, ivar);
sys/dev/disk/fd/fd.c
767
device_disable(child);
sys/dev/disk/fd/fd.c
829
fdc_print_child(device_t me, device_t child)
sys/dev/disk/fd/fd.c
833
retval += bus_print_child_header(me, child);
sys/dev/disk/fd/fd.c
835
fdc_get_fdunit(child));
sys/dev/disk/fd/fdc.h
116
int fdc_print_child(device_t me, device_t child);
sys/dev/disk/fd/fdc.h
117
int fdc_read_ivar(device_t dev, device_t child, int which, u_long *result);
sys/dev/disk/nata/ata-all.c
577
device_t child;
sys/dev/disk/nata/ata-all.c
579
if ((child = device_add_child(parent, NULL, unit))) {
sys/dev/disk/nata/ata-all.c
580
device_set_softc(child, atadev);
sys/dev/disk/nata/ata-all.c
581
device_quiet(child);
sys/dev/disk/nata/ata-all.c
582
atadev->dev = child;
sys/dev/disk/nata/ata-all.c
586
return child;
sys/dev/disk/nata/ata-all.c
687
device_t child;
sys/dev/disk/nata/ata-all.c
707
if ((child = ata_add_child(dev, atadev, unit))) {
sys/dev/disk/nata/ata-all.c
709
device_delete_child(dev, child);
sys/dev/disk/nata/ata-pci.c
280
ata_pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/dev/disk/nata/ata-pci.c
284
int unit = ((struct ata_channel *)device_get_softc(child))->unit;
sys/dev/disk/nata/ata-pci.c
320
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
sys/dev/disk/nata/ata-pci.c
331
ata_pci_release_resource(device_t dev, device_t child, int type, int rid,
sys/dev/disk/nata/ata-pci.c
335
int unit = ((struct ata_channel *)device_get_softc(child))->unit;
sys/dev/disk/nata/ata-pci.c
359
return BUS_RELEASE_RESOURCE(device_get_parent(dev), child,
sys/dev/disk/nata/ata-pci.c
369
ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/disk/nata/ata-pci.c
376
return BUS_SETUP_INTR(device_get_parent(dev), child, irq,
sys/dev/disk/nata/ata-pci.c
381
int unit = ((struct ata_channel *)device_get_softc(child))->unit;
sys/dev/disk/nata/ata-pci.c
391
ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/disk/nata/ata-pci.c
397
return BUS_TEARDOWN_INTR(device_get_parent(dev), child, irq, cookie);
sys/dev/disk/nata/ata-pci.c
401
int unit = ((struct ata_channel *)device_get_softc(child))->unit;
sys/dev/disk/nata/ata-pci.h
492
struct resource * ata_pci_alloc_resource(device_t dev, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags, int cpuid);
sys/dev/disk/nata/ata-pci.h
493
int ata_pci_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r);
sys/dev/disk/nata/ata-pci.h
494
int ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq, int flags, driver_intr_t *function, void *argument, void **cookiep);
sys/dev/disk/nata/ata-pci.h
495
int ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq, void *cookie);
sys/dev/disk/nata/atapi-cam.c
152
device_t child;
sys/dev/disk/nata/atapi-cam.c
160
child = device_add_child(parent, "atapicam", -1);
sys/dev/disk/nata/atapi-cam.c
161
if (child == NULL) {
sys/dev/disk/nata/atapi-cam.c
167
scp->atapi_cam_dev.dev = child;
sys/dev/disk/nata/atapi-cam.c
168
device_quiet(child);
sys/dev/disk/nata/atapi-cam.c
169
device_set_softc(child, scp);
sys/dev/disk/nata/atapi-cam.c
922
device_t child = devlist[--devcount];
sys/dev/disk/nata/atapi-cam.c
923
struct atapi_xpt_softc *scp = device_get_softc(child);
sys/dev/disk/nata/atapi-cam.c
925
device_delete_child(device_get_parent(child),child);
sys/dev/disk/sdhci/sdhci.c
1828
sdhci_generic_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/dev/disk/sdhci/sdhci.c
1830
struct sdhci_slot *slot = device_get_ivars(child);
sys/dev/disk/sdhci/sdhci.c
1891
sdhci_generic_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
sys/dev/disk/sdhci/sdhci.c
1893
struct sdhci_slot *slot = device_get_ivars(child);
sys/dev/disk/sdhci/sdhci.h
402
int sdhci_generic_read_ivar(device_t bus, device_t child, int which, uintptr_t *result);
sys/dev/disk/sdhci/sdhci.h
403
int sdhci_generic_write_ivar(device_t bus, device_t child, int which, uintptr_t value);
sys/dev/drm/drm_memory.c
91
for (tmp = iomem_resource.child; tmp; tmp = tmp->sibling) {
sys/dev/drm/i915/i915_perf.c
3385
.child = oa_table,
sys/dev/drm/i915/i915_perf.c
3395
.child = i915_root,
sys/dev/drm/i915/i915_request.c
902
struct dma_fence **child = &fence;
sys/dev/drm/i915/i915_request.c
917
child = array->fences;
sys/dev/drm/i915/i915_request.c
923
fence = *child++;
sys/dev/drm/i915/i915_syncmap.c
224
struct i915_syncmap *child)
sys/dev/drm/i915/i915_syncmap.c
227
__sync_child(p)[idx] = child;
sys/dev/drm/i915/intel_bios.c
1300
struct child_device_config *it, *child = NULL;
sys/dev/drm/i915/intel_bios.c
1328
if (child) {
sys/dev/drm/i915/intel_bios.c
1332
child = it;
sys/dev/drm/i915/intel_bios.c
1337
if (!child)
sys/dev/drm/i915/intel_bios.c
1340
is_dvi = child->device_type & DEVICE_TYPE_TMDS_DVI_SIGNALING;
sys/dev/drm/i915/intel_bios.c
1341
is_dp = child->device_type & DEVICE_TYPE_DISPLAYPORT_OUTPUT;
sys/dev/drm/i915/intel_bios.c
1342
is_crt = child->device_type & DEVICE_TYPE_ANALOG_OUTPUT;
sys/dev/drm/i915/intel_bios.c
1343
is_hdmi = is_dvi && (child->device_type & DEVICE_TYPE_NOT_HDMI_OUTPUT) == 0;
sys/dev/drm/i915/intel_bios.c
1344
is_edp = is_dp && (child->device_type & DEVICE_TYPE_INTERNAL_CONNECTOR);
sys/dev/drm/i915/intel_bios.c
1380
ddc_pin = map_ddc_pin(dev_priv, child->ddc_pin);
sys/dev/drm/i915/intel_bios.c
1392
info->alternate_aux_channel = child->aux_channel;
sys/dev/drm/i915/intel_bios.c
1399
u8 hdmi_level_shift = child->hdmi_level_shifter_value;
sys/dev/drm/i915/intel_bios.c
1409
switch (child->hdmi_max_data_rate) {
sys/dev/drm/i915/intel_bios.c
1411
MISSING_CASE(child->hdmi_max_data_rate);
sys/dev/drm/i915/intel_bios.c
1431
if (bdb_version >= 196 && child->iboost) {
sys/dev/drm/i915/intel_bios.c
1432
info->dp_boost_level = translate_iboost(child->dp_iboost_level);
sys/dev/drm/i915/intel_bios.c
1435
info->hdmi_boost_level = translate_iboost(child->hdmi_iboost_level);
sys/dev/drm/i915/intel_bios.c
1442
switch (child->dp_max_link_rate) {
sys/dev/drm/i915/intel_bios.c
1484
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
1521
expected_size = sizeof(*child);
sys/dev/drm/i915/intel_bios.c
1522
BUILD_BUG_ON(sizeof(*child) < 39);
sys/dev/drm/i915/intel_bios.c
1544
child = child_device_ptr(defs, i);
sys/dev/drm/i915/intel_bios.c
1545
if (!child->device_type)
sys/dev/drm/i915/intel_bios.c
1553
dev_priv->vbt.child_dev = kcalloc(count, sizeof(*child), GFP_KERNEL);
sys/dev/drm/i915/intel_bios.c
1562
child = child_device_ptr(defs, i);
sys/dev/drm/i915/intel_bios.c
1563
if (!child->device_type)
sys/dev/drm/i915/intel_bios.c
1571
memcpy(dev_priv->vbt.child_dev + count, child,
sys/dev/drm/i915/intel_bios.c
1572
min_t(size_t, defs->child_dev_size, sizeof(*child)));
sys/dev/drm/i915/intel_bios.c
1809
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
1819
child = dev_priv->vbt.child_dev + i;
sys/dev/drm/i915/intel_bios.c
1823
switch (child->device_type) {
sys/dev/drm/i915/intel_bios.c
1834
if (child->addin_offset)
sys/dev/drm/i915/intel_bios.c
1851
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
1858
child = dev_priv->vbt.child_dev + i;
sys/dev/drm/i915/intel_bios.c
1864
if (child->device_type != DEVICE_TYPE_INT_LFP &&
sys/dev/drm/i915/intel_bios.c
1865
child->device_type != DEVICE_TYPE_LFP)
sys/dev/drm/i915/intel_bios.c
1868
if (intel_gmbus_is_valid_pin(dev_priv, child->i2c_pin))
sys/dev/drm/i915/intel_bios.c
1869
*i2c_pin = child->i2c_pin;
sys/dev/drm/i915/intel_bios.c
1876
if (child->addin_offset)
sys/dev/drm/i915/intel_bios.c
1900
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
1920
child = dev_priv->vbt.child_dev + i;
sys/dev/drm/i915/intel_bios.c
1922
if ((child->dvo_port == port_mapping[port].dp ||
sys/dev/drm/i915/intel_bios.c
1923
child->dvo_port == port_mapping[port].hdmi) &&
sys/dev/drm/i915/intel_bios.c
1924
(child->device_type & (DEVICE_TYPE_TMDS_DVI_SIGNALING |
sys/dev/drm/i915/intel_bios.c
1941
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
1958
child = dev_priv->vbt.child_dev + i;
sys/dev/drm/i915/intel_bios.c
1960
if (child->dvo_port == port_mapping[port] &&
sys/dev/drm/i915/intel_bios.c
1961
(child->device_type & DEVICE_TYPE_eDP_BITS) ==
sys/dev/drm/i915/intel_bios.c
1969
static bool child_dev_is_dp_dual_mode(const struct child_device_config *child,
sys/dev/drm/i915/intel_bios.c
1989
if ((child->device_type & DEVICE_TYPE_DP_DUAL_MODE_BITS) !=
sys/dev/drm/i915/intel_bios.c
1993
if (child->dvo_port == port_mapping[port].dp)
sys/dev/drm/i915/intel_bios.c
1997
if (child->dvo_port == port_mapping[port].hdmi &&
sys/dev/drm/i915/intel_bios.c
1998
child->aux_channel != 0)
sys/dev/drm/i915/intel_bios.c
2007
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
2011
child = dev_priv->vbt.child_dev + i;
sys/dev/drm/i915/intel_bios.c
2013
if (child_dev_is_dp_dual_mode(child, port))
sys/dev/drm/i915/intel_bios.c
2030
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
2035
child = dev_priv->vbt.child_dev + i;
sys/dev/drm/i915/intel_bios.c
2037
if (!(child->device_type & DEVICE_TYPE_MIPI_OUTPUT))
sys/dev/drm/i915/intel_bios.c
2040
dvo_port = child->dvo_port;
sys/dev/drm/i915/intel_bios.c
2070
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
2077
child = dev_priv->vbt.child_dev + i;
sys/dev/drm/i915/intel_bios.c
2079
if (!child->hpd_invert)
sys/dev/drm/i915/intel_bios.c
2082
switch (child->dvo_port) {
sys/dev/drm/i915/intel_bios.c
2117
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
2124
child = dev_priv->vbt.child_dev + i;
sys/dev/drm/i915/intel_bios.c
2126
if (!child->lspcon)
sys/dev/drm/i915/intel_bios.c
2129
switch (child->dvo_port) {
sys/dev/drm/i915/intel_bios.c
442
const struct child_device_config *child;
sys/dev/drm/i915/intel_bios.c
455
child = dev_priv->vbt.child_dev + i;
sys/dev/drm/i915/intel_bios.c
457
if (child->slave_addr != SLAVE_ADDR1 &&
sys/dev/drm/i915/intel_bios.c
458
child->slave_addr != SLAVE_ADDR2) {
sys/dev/drm/i915/intel_bios.c
465
if (child->dvo_port != DEVICE_PORT_DVOB &&
sys/dev/drm/i915/intel_bios.c
466
child->dvo_port != DEVICE_PORT_DVOC) {
sys/dev/drm/i915/intel_bios.c
473
child->slave_addr,
sys/dev/drm/i915/intel_bios.c
474
(child->dvo_port == DEVICE_PORT_DVOB) ?
sys/dev/drm/i915/intel_bios.c
476
mapping = &dev_priv->vbt.sdvo_mappings[child->dvo_port - 1];
sys/dev/drm/i915/intel_bios.c
478
mapping->dvo_port = child->dvo_port;
sys/dev/drm/i915/intel_bios.c
479
mapping->slave_addr = child->slave_addr;
sys/dev/drm/i915/intel_bios.c
480
mapping->dvo_wiring = child->dvo_wiring;
sys/dev/drm/i915/intel_bios.c
481
mapping->ddc_pin = child->ddc_pin;
sys/dev/drm/i915/intel_bios.c
482
mapping->i2c_pin = child->i2c_pin;
sys/dev/drm/i915/intel_bios.c
494
if (child->slave2_addr) {
sys/dev/misc/amdsbwd/amdsbwd.c
233
device_t child;
sys/dev/misc/amdsbwd/amdsbwd.c
254
child = BUS_ADD_CHILD(parent, parent, ISA_ORDER_SPECULATIVE,
sys/dev/misc/amdsbwd/amdsbwd.c
256
if (child == NULL)
sys/dev/misc/aperf/aperf.c
81
device_t child;
sys/dev/misc/aperf/aperf.c
92
child = device_add_child(parent, "aperf", -1);
sys/dev/misc/aperf/aperf.c
93
if (child == NULL)
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
212
device_t child;
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
231
child = device_add_child(dev, name, unit);
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
232
device_set_ivars(child, kdev);
sys/dev/misc/coremctl/coremctl.c
386
coremctl_pci_read_ivar(device_t dev, device_t child, int which,
sys/dev/misc/coremctl/coremctl.c
393
coremctl_pci_read_config(device_t dev, device_t child, int reg, int width)
sys/dev/misc/coremctl/coremctl.c
399
coremctl_pci_write_config(device_t dev, device_t child, int reg, uint32_t val,
sys/dev/misc/ipmi/ipmi.c
803
struct sysctl_oid_list *child;
sys/dev/misc/ipmi/ipmi.c
817
child = SYSCTL_CHILDREN(tree);
sys/dev/misc/ipmi/ipmi.c
819
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "watchdog_enable",
sys/dev/misc/ipmi/ipmi.c
823
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "watchdog_period",
sys/dev/misc/orm/orm.c
100
isa_set_logicalid(child, ORM_ID);
sys/dev/misc/orm/orm.c
101
isa_set_vendorid(child, ORM_ID);
sys/dev/misc/orm/orm.c
102
sc = device_get_softc(child);
sys/dev/misc/orm/orm.c
105
bus_set_resource(child, SYS_RES_MEMORY, sc->rnum, chunk,
sys/dev/misc/orm/orm.c
108
res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid,
sys/dev/misc/orm/orm.c
111
bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
sys/dev/misc/orm/orm.c
130
bus_release_resource(child, SYS_RES_MEMORY, rid, res);
sys/dev/misc/orm/orm.c
131
bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
sys/dev/misc/orm/orm.c
137
bus_set_resource(child, SYS_RES_MEMORY, sc->rnum, chunk,
sys/dev/misc/orm/orm.c
140
res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0);
sys/dev/misc/orm/orm.c
142
bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
sys/dev/misc/orm/orm.c
156
device_delete_child(parent, child);
sys/dev/misc/orm/orm.c
160
device_set_desc(child, "ISA Option ROM");
sys/dev/misc/orm/orm.c
162
device_set_desc(child, "ISA Option ROMs");
sys/dev/misc/orm/orm.c
81
device_t child;
sys/dev/misc/orm/orm.c
98
child = BUS_ADD_CHILD(parent, parent, ISA_ORDER_SENSITIVE, "orm", -1);
sys/dev/misc/orm/orm.c
99
device_set_driver(child, driver);
sys/dev/misc/ppc/ppc.c
2071
ppc_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
sys/dev/misc/ppc/ppc.c
2094
return (BUS_SETUP_INTR(device_get_parent(bus), child,
sys/dev/misc/ppc/ppc.c
2104
ppc_teardown_intr(device_t bus, device_t child, struct resource *r, void *ih)
sys/dev/misc/ppc/ppc.c
2111
if ((error = BUS_TEARDOWN_INTR(parent, child, r, ih)))
sys/dev/misc/puc/puc.c
605
puc_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/dev/misc/puc/puc.c
613
pdev = device_get_ivars(child);
sys/dev/misc/puc/puc.c
638
puc_release_resource(device_t dev, device_t child, int type, int rid,
sys/dev/misc/puc/puc.c
645
puc_get_resource(device_t dev, device_t child, int type, int rid,
sys/dev/misc/puc/puc.c
652
pdev = device_get_ivars(child);
sys/dev/misc/puc/puc.c
679
puc_setup_intr(device_t dev, device_t child, struct resource *r, int flags,
sys/dev/misc/puc/puc.c
688
if (sc->sc_ports[i].dev == child) {
sys/dev/misc/puc/puc.c
702
puc_teardown_intr(device_t dev, device_t child, struct resource *r,
sys/dev/misc/puc/puc.c
710
if (sc->sc_ports[i].dev == child) {
sys/dev/misc/puc/puc.c
720
puc_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/misc/puc/puc.c
724
pdev = device_get_ivars(child);
sys/dev/misc/syscons/syscons_nexus.c
68
device_t child;
sys/dev/misc/syscons/syscons_nexus.c
80
child = BUS_ADD_CHILD(parent, parent, 0, "sc", u);
sys/dev/misc/syscons/syscons_nexus.c
81
if (child == NULL)
sys/dev/misc/syscons/syscons_nexus.c
83
device_set_flags(child, f);
sys/dev/netif/alc/if_alc.c
1657
struct sysctl_oid_list *child, *parent;
sys/dev/netif/alc/if_alc.c
1663
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->alc_dev));
sys/dev/netif/alc/if_alc.c
1665
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_rx_mod",
sys/dev/netif/alc/if_alc.c
1668
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_tx_mod",
sys/dev/netif/alc/if_alc.c
1696
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "process_limit",
sys/dev/netif/alc/if_alc.c
1715
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats", CTLFLAG_RD,
sys/dev/netif/alc/if_alc.c
1722
child = SYSCTL_CHILDREN(tree);
sys/dev/netif/alc/if_alc.c
1723
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/netif/alc/if_alc.c
1725
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/netif/alc/if_alc.c
1727
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/netif/alc/if_alc.c
1729
ALC_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/netif/alc/if_alc.c
1731
ALC_SYSCTL_STAT_ADD32(ctx, child, "control_frames",
sys/dev/netif/alc/if_alc.c
1733
ALC_SYSCTL_STAT_ADD32(ctx, child, "crc_errs",
sys/dev/netif/alc/if_alc.c
1735
ALC_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/netif/alc/if_alc.c
1737
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/netif/alc/if_alc.c
1739
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_bcast_octets",
sys/dev/netif/alc/if_alc.c
1741
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_mcast_octets",
sys/dev/netif/alc/if_alc.c
1743
ALC_SYSCTL_STAT_ADD32(ctx, child, "runts",
sys/dev/netif/alc/if_alc.c
1745
ALC_SYSCTL_STAT_ADD32(ctx, child, "fragments",
sys/dev/netif/alc/if_alc.c
1747
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/netif/alc/if_alc.c
1749
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/netif/alc/if_alc.c
1751
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/netif/alc/if_alc.c
1753
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/netif/alc/if_alc.c
1755
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/netif/alc/if_alc.c
1757
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/netif/alc/if_alc.c
1759
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max",
sys/dev/netif/alc/if_alc.c
1761
ALC_SYSCTL_STAT_ADD32(ctx, child, "trunc_errs",
sys/dev/netif/alc/if_alc.c
1763
ALC_SYSCTL_STAT_ADD32(ctx, child, "fifo_oflows",
sys/dev/netif/alc/if_alc.c
1765
ALC_SYSCTL_STAT_ADD32(ctx, child, "rrs_errs",
sys/dev/netif/alc/if_alc.c
1767
ALC_SYSCTL_STAT_ADD32(ctx, child, "align_errs",
sys/dev/netif/alc/if_alc.c
1769
ALC_SYSCTL_STAT_ADD32(ctx, child, "filtered",
sys/dev/netif/alc/if_alc.c
1776
child = SYSCTL_CHILDREN(tree);
sys/dev/netif/alc/if_alc.c
1777
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/netif/alc/if_alc.c
1779
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/netif/alc/if_alc.c
1781
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/netif/alc/if_alc.c
1783
ALC_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/netif/alc/if_alc.c
1785
ALC_SYSCTL_STAT_ADD32(ctx, child, "control_frames",
sys/dev/netif/alc/if_alc.c
1787
ALC_SYSCTL_STAT_ADD32(ctx, child, "excess_defers",
sys/dev/netif/alc/if_alc.c
1789
ALC_SYSCTL_STAT_ADD32(ctx, child, "defers",
sys/dev/netif/alc/if_alc.c
1791
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/netif/alc/if_alc.c
1793
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_bcast_octets",
sys/dev/netif/alc/if_alc.c
1795
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_mcast_octets",
sys/dev/netif/alc/if_alc.c
1797
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/netif/alc/if_alc.c
1799
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/netif/alc/if_alc.c
1801
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/netif/alc/if_alc.c
1803
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/netif/alc/if_alc.c
1805
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/netif/alc/if_alc.c
1807
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/netif/alc/if_alc.c
1809
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max",
sys/dev/netif/alc/if_alc.c
1811
ALC_SYSCTL_STAT_ADD32(ctx, child, "single_colls",
sys/dev/netif/alc/if_alc.c
1813
ALC_SYSCTL_STAT_ADD32(ctx, child, "multi_colls",
sys/dev/netif/alc/if_alc.c
1815
ALC_SYSCTL_STAT_ADD32(ctx, child, "late_colls",
sys/dev/netif/alc/if_alc.c
1817
ALC_SYSCTL_STAT_ADD32(ctx, child, "excess_colls",
sys/dev/netif/alc/if_alc.c
1819
ALC_SYSCTL_STAT_ADD32(ctx, child, "underruns",
sys/dev/netif/alc/if_alc.c
1821
ALC_SYSCTL_STAT_ADD32(ctx, child, "desc_underruns",
sys/dev/netif/alc/if_alc.c
1823
ALC_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/netif/alc/if_alc.c
1825
ALC_SYSCTL_STAT_ADD32(ctx, child, "trunc_errs",
sys/dev/netif/ale/if_ale.c
696
struct sysctl_oid_list *child, *parent;
sys/dev/netif/ale/if_ale.c
703
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->ale_dev));
sys/dev/netif/ale/if_ale.c
705
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_rx_mod",
sys/dev/netif/ale/if_ale.c
708
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_tx_mod",
sys/dev/netif/ale/if_ale.c
742
ALE_SYSCTL_STAT_ADD32(ctx, child, "reset_brk_seq",
sys/dev/netif/ale/if_ale.c
746
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats", CTLFLAG_RD,
sys/dev/netif/ale/if_ale.c
753
child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ale/if_ale.c
754
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/netif/ale/if_ale.c
756
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/netif/ale/if_ale.c
758
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/netif/ale/if_ale.c
760
ALE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/netif/ale/if_ale.c
762
ALE_SYSCTL_STAT_ADD32(ctx, child, "control_frames",
sys/dev/netif/ale/if_ale.c
764
ALE_SYSCTL_STAT_ADD32(ctx, child, "crc_errs",
sys/dev/netif/ale/if_ale.c
766
ALE_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/netif/ale/if_ale.c
768
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/netif/ale/if_ale.c
770
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_bcast_octets",
sys/dev/netif/ale/if_ale.c
772
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_mcast_octets",
sys/dev/netif/ale/if_ale.c
774
ALE_SYSCTL_STAT_ADD32(ctx, child, "runts",
sys/dev/netif/ale/if_ale.c
776
ALE_SYSCTL_STAT_ADD32(ctx, child, "fragments",
sys/dev/netif/ale/if_ale.c
778
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/netif/ale/if_ale.c
780
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/netif/ale/if_ale.c
782
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/netif/ale/if_ale.c
784
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/netif/ale/if_ale.c
786
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/netif/ale/if_ale.c
788
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/netif/ale/if_ale.c
790
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max",
sys/dev/netif/ale/if_ale.c
792
ALE_SYSCTL_STAT_ADD32(ctx, child, "trunc_errs",
sys/dev/netif/ale/if_ale.c
794
ALE_SYSCTL_STAT_ADD32(ctx, child, "fifo_oflows",
sys/dev/netif/ale/if_ale.c
796
ALE_SYSCTL_STAT_ADD32(ctx, child, "rrs_errs",
sys/dev/netif/ale/if_ale.c
798
ALE_SYSCTL_STAT_ADD32(ctx, child, "align_errs",
sys/dev/netif/ale/if_ale.c
800
ALE_SYSCTL_STAT_ADD32(ctx, child, "filtered",
sys/dev/netif/ale/if_ale.c
807
child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ale/if_ale.c
808
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/netif/ale/if_ale.c
810
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/netif/ale/if_ale.c
812
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/netif/ale/if_ale.c
814
ALE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/netif/ale/if_ale.c
816
ALE_SYSCTL_STAT_ADD32(ctx, child, "control_frames",
sys/dev/netif/ale/if_ale.c
818
ALE_SYSCTL_STAT_ADD32(ctx, child, "excess_defers",
sys/dev/netif/ale/if_ale.c
820
ALE_SYSCTL_STAT_ADD32(ctx, child, "defers",
sys/dev/netif/ale/if_ale.c
822
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/netif/ale/if_ale.c
824
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_bcast_octets",
sys/dev/netif/ale/if_ale.c
826
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_mcast_octets",
sys/dev/netif/ale/if_ale.c
828
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/netif/ale/if_ale.c
830
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/netif/ale/if_ale.c
832
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/netif/ale/if_ale.c
834
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/netif/ale/if_ale.c
836
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/netif/ale/if_ale.c
838
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/netif/ale/if_ale.c
840
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max",
sys/dev/netif/ale/if_ale.c
842
ALE_SYSCTL_STAT_ADD32(ctx, child, "single_colls",
sys/dev/netif/ale/if_ale.c
844
ALE_SYSCTL_STAT_ADD32(ctx, child, "multi_colls",
sys/dev/netif/ale/if_ale.c
846
ALE_SYSCTL_STAT_ADD32(ctx, child, "late_colls",
sys/dev/netif/ale/if_ale.c
848
ALE_SYSCTL_STAT_ADD32(ctx, child, "excess_colls",
sys/dev/netif/ale/if_ale.c
850
ALE_SYSCTL_STAT_ADD32(ctx, child, "abort",
sys/dev/netif/ale/if_ale.c
852
ALE_SYSCTL_STAT_ADD32(ctx, child, "underruns",
sys/dev/netif/ale/if_ale.c
854
ALE_SYSCTL_STAT_ADD32(ctx, child, "desc_underruns",
sys/dev/netif/ale/if_ale.c
856
ALE_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/netif/ale/if_ale.c
858
ALE_SYSCTL_STAT_ADD32(ctx, child, "trunc_errs",
sys/dev/netif/ath/ath/if_ath_sysctl.c
1034
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1039
child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1042
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, sn, CTLFLAG_RD, &sc->sc_stats.ast_rx_phy[i], 0, "");
sys/dev/netif/ath/ath/if_ath_sysctl.c
1052
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1058
child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1061
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, sn, CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1071
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1079
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1081
child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1085
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_watchdog", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1087
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_hardware", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1089
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_bmiss", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1091
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_bmiss_phantom", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1093
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_bstuck", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1095
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rxorn", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1097
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rxeol", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1099
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_txurn", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1101
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_mib", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1103
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_intrcoal", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1105
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_packets", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1107
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_mgmt", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1109
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_discard", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1111
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_qstop", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1113
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_encap", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1115
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nonode", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1117
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nombuf", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1119
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nomcl", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1121
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_linear", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1123
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nodata", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1125
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_busdma", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1127
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_xretries", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1129
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_fifoerr", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1131
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_filtered", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1133
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_shortretry", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1135
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_longretry", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1137
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_badrate", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1139
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_noack", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1141
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_rts", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1143
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_cts", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1145
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_shortpre", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1147
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_altrate", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1149
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_protect", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1151
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_ctsburst", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1153
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_ctsext", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1155
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_nombuf", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1157
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_busdma", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1159
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_orn", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1161
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_crcerr", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1163
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_fifoerr", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1165
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_badcrypt", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1167
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_badmic", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1169
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_phyerr", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1171
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_tooshort", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1173
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_toobig", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1175
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_packets", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1177
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_mgt", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1179
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_ctl", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1181
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_be_xmit", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1183
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_be_nombuf", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1185
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_per_cal", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1187
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_per_calfail", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1189
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_per_rfgain", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1191
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rate_calls", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1193
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rate_raise", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1195
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rate_drop", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1197
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ant_defswitch", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1199
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ant_txswitch", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1201
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_cabq_xmit", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1203
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_cabq_busy", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1205
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_raw", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1207
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ff_txok", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1209
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ff_txerr", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1211
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ff_rx", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1213
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ff_flush", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1215
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_qfull", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1217
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nobuf", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1219
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tdma_update", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1221
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tdma_timers", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1223
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tdma_tsf", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1225
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tdma_ack", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1227
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_raw_fail", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1229
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nofrag", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1231
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_be_missed", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1233
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ani_cal", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1235
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_agg", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1238
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_halfgi", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1240
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_2040", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1242
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_pre_crc_err", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1244
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_post_crc_err", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1246
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_decrypt_busy_err", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1248
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_hi_rx_chain", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1250
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_htprotect", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1252
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_hitqueueend", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1254
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_timeout", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1256
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_cst", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1258
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_xtxop", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1260
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_timerexpired", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1262
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_desccfgerr", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1264
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_swretries", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1266
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_swretrymax", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1269
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_data_underrun", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1271
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_delim_underrun", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1273
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_aggr_failall", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1276
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_aggr_ok", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1279
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_aggr_fail", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1283
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_intr", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1285
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_intr", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1287
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_mcastq_overflow",
sys/dev/netif/ath/ath/if_ath_sysctl.c
1290
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_keymiss", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1292
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_swfiltered", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1294
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_stbc",
sys/dev/netif/ath/ath/if_ath_sysctl.c
1297
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_stbc",
sys/dev/netif/ath/ath/if_ath_sysctl.c
1300
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_ldpc",
sys/dev/netif/ath/ath/if_ath_sysctl.c
1305
ath_sysctl_stats_attach_rxphyerr(sc, child);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1308
ath_sysctl_stats_attach_intr(sc, child);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1320
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1322
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "hal", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1324
child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
1327
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "debug", CTLFLAG_RW,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1331
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "ar5416_biasadj", CTLFLAG_RW,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1336
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "dma_brt", CTLFLAG_RW,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1341
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "sw_brt", CTLFLAG_RW,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1346
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "swba_backoff", CTLFLAG_RW,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1351
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "force_full_reset", CTLFLAG_RW,
sys/dev/netif/ath/ath/if_ath_sysctl.c
1358
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "serialise_reg_war", CTLFLAG_RW,
sys/dev/netif/ath/ath/if_ath_sysctl.c
788
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
790
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "alq", CTLFLAG_RD,
sys/dev/netif/ath/ath/if_ath_sysctl.c
792
child = SYSCTL_CHILDREN(tree);
sys/dev/netif/ath/ath/if_ath_sysctl.c
794
SYSCTL_ADD_STRING(ctx, child, OID_AUTO, "filename",
sys/dev/netif/bwn/siba/siba_bwn.c
260
siba_bwn_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/dev/netif/bwn/siba/siba_bwn.c
269
siba_bwn_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/dev/netif/bwn/siba/siba_bwn.c
280
siba_bwn_release_resource(device_t dev, device_t child, int type,
sys/dev/netif/bwn/siba/siba_bwn.c
291
siba_bwn_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/netif/bwn/siba/siba_bwn.c
301
siba_bwn_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/netif/bwn/siba/siba_bwn.c
313
siba_bwn_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/netif/bwn/siba/siba_bwn.c
322
siba_bwn_find_cap(device_t dev, device_t child, int capability,
sys/dev/netif/bwn/siba/siba_bwn.c
331
siba_bwn_find_extcap(device_t dev, device_t child, int capability,
sys/dev/netif/bwn/siba/siba_bwn.c
340
siba_bwn_find_htcap(device_t dev, device_t child, int capability,
sys/dev/netif/bwn/siba/siba_bwn.c
350
siba_bwn_alloc_msi(device_t dev, device_t child, int *rid, int count,
sys/dev/netif/bwn/siba/siba_bwn.c
354
siba_bwn_alloc_msi(device_t dev, device_t child, int *count)
sys/dev/netif/bwn/siba/siba_bwn.c
369
ssc->ssc_msi_child = child;
sys/dev/netif/bwn/siba/siba_bwn.c
374
siba_bwn_release_msi(device_t dev, device_t child)
sys/dev/netif/bwn/siba/siba_bwn.c
380
if (ssc->ssc_msi_child != child)
sys/dev/netif/bwn/siba/siba_bwn.c
389
siba_bwn_msi_count(device_t dev, device_t child)
sys/dev/netif/bwn/siba/siba_bwn.c
396
siba_bwn_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/netif/bwn/siba/siba_bwn.c
401
sd = device_get_ivars(child);
sys/dev/netif/bwn/siba/siba_core.c
2332
siba_read_sprom(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/netif/bwn/siba/siba_core.c
2334
struct siba_dev_softc *sd = device_get_ivars(child);
sys/dev/netif/bwn/siba/siba_core.c
2600
siba_write_sprom(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/netif/bwn/siba/siba_core.c
2602
struct siba_dev_softc *sd = device_get_ivars(child);
sys/dev/netif/bwn/siba/siba_core.c
288
device_t child;
sys/dev/netif/bwn/siba/siba_core.c
405
child = device_add_child(siba->siba_dev, NULL, -1);
sys/dev/netif/bwn/siba/siba_core.c
406
if (child == NULL) {
sys/dev/netif/bwn/siba/siba_core.c
411
device_set_ivars(child, sd);
sys/dev/netif/mii_layer/mii.c
129
device_t child = NULL, parent;
sys/dev/netif/mii_layer/mii.c
160
child = device_add_child(dev, NULL, -1);
sys/dev/netif/mii_layer/mii.c
161
device_set_ivars(child, args);
sys/dev/netif/mii_layer/mii.c
163
if (child == NULL)
sys/dev/netif/mii_layer/mii.c
248
mii_phy_probe(device_t dev, device_t *child,
sys/dev/netif/mii_layer/mii.c
254
return mii_probe(dev, child, &args);
sys/dev/netif/mii_layer/mii.c
258
mii_probe(device_t dev, device_t *child, const struct mii_probe_args *args0)
sys/dev/netif/mii_layer/mii.c
266
*child = device_add_child(dev, "miibus", -1);
sys/dev/netif/mii_layer/mii.c
267
device_set_ivars(*child, args);
sys/dev/netif/mii_layer/mii.c
275
device_delete_child(dev, *child);
sys/dev/netif/mii_layer/mii.c
276
*child = NULL;
sys/dev/netif/mii_layer/mii.c
303
struct mii_softc *child;
sys/dev/netif/mii_layer/mii.c
309
for (child = LIST_FIRST(&mii->mii_phys); child != NULL;
sys/dev/netif/mii_layer/mii.c
310
child = LIST_NEXT(child, mii_list)) {
sys/dev/netif/mii_layer/mii.c
311
rv = (*child->mii_service)(child, mii, MII_MEDIACHG);
sys/dev/netif/mii_layer/mii.c
316
child->mii_ticks = 0;
sys/dev/netif/mii_layer/mii.c
328
struct mii_softc *child;
sys/dev/netif/mii_layer/mii.c
330
for (child = LIST_FIRST(&mii->mii_phys); child != NULL;
sys/dev/netif/mii_layer/mii.c
331
child = LIST_NEXT(child, mii_list))
sys/dev/netif/mii_layer/mii.c
332
(*child->mii_service)(child, mii, MII_TICK);
sys/dev/netif/mii_layer/mii.c
341
struct mii_softc *child;
sys/dev/netif/mii_layer/mii.c
346
for (child = LIST_FIRST(&mii->mii_phys); child != NULL;
sys/dev/netif/mii_layer/mii.c
347
child = LIST_NEXT(child, mii_list))
sys/dev/netif/mii_layer/mii.c
348
(*child->mii_service)(child, mii, MII_POLLSTAT);
sys/dev/netif/oce/oce_sysctl.c
100
SYSCTL_ADD_UINT(ctx, child,
sys/dev/netif/oce/oce_sysctl.c
106
SYSCTL_ADD_UINT(ctx, child,
sys/dev/netif/oce/oce_sysctl.c
113
SYSCTL_ADD_UINT(ctx, child,
sys/dev/netif/oce/oce_sysctl.c
119
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "loop_back",
sys/dev/netif/oce/oce_sysctl.c
123
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "fw_upgrade",
sys/dev/netif/oce/oce_sysctl.c
133
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "sfp_vpd_dump",
sys/dev/netif/oce/oce_sysctl.c
136
SYSCTL_ADD_OPAQUE(ctx, child, OID_AUTO, "sfp_vpd_dump_buffer",
sys/dev/netif/oce/oce_sysctl.c
140
stats_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/netif/oce/oce_sysctl.c
74
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/netif/oce/oce_sysctl.c
77
SYSCTL_ADD_STRING(ctx, child,
sys/dev/netif/oce/oce_sysctl.c
84
SYSCTL_ADD_STRING(ctx, child,
sys/dev/netif/oce/oce_sysctl.c
91
SYSCTL_ADD_INT(ctx, child,
sys/dev/netif/sis/if_sis.c
362
device_t child = NULL;
sys/dev/netif/sis/if_sis.c
377
child = *childp;
sys/dev/netif/sis/if_sis.c
386
return(child);
sys/dev/pccard/cardbus/cardbus.c
164
device_t child;
sys/dev/pccard/cardbus/cardbus.c
188
child = device_add_child(cbdev, NULL, -1);
sys/dev/pccard/cardbus/cardbus.c
189
if (child == NULL) {
sys/dev/pccard/cardbus/cardbus.c
194
dinfo->pci.cfg.dev = child;
sys/dev/pccard/cardbus/cardbus.c
196
device_set_ivars(child, dinfo);
sys/dev/pccard/cardbus/cardbus.c
197
if (cardbus_do_cis(cbdev, child) != 0) {
sys/dev/pccard/cardbus/cardbus.c
204
pci_add_resources(brdev, cbdev, child, 1,
sys/dev/pccard/cardbus/cardbus.c
207
if (device_probe_and_attach(child) != 0)
sys/dev/pccard/cardbus/cardbus.c
320
cardbus_read_ivar(device_t cbdev, device_t child, int which, uintptr_t *result)
sys/dev/pccard/cardbus/cardbus.c
324
dinfo = device_get_ivars(child);
sys/dev/pccard/cardbus/cardbus.c
339
return (pci_read_ivar(cbdev, child, which, result));
sys/dev/pccard/cardbus/cardbus.c
345
cardbus_write_ivar(device_t cbdev, device_t child, int which, uintptr_t value)
sys/dev/pccard/cardbus/cardbus.c
347
return(pci_write_ivar(cbdev, child, which, value));
sys/dev/pccard/cardbus/cardbus.c
90
static int cardbus_read_ivar(device_t cbdev, device_t child, int which,
sys/dev/pccard/cardbus/cardbus.c
94
static int cardbus_write_ivar(device_t cbdev, device_t child, int which,
sys/dev/pccard/cardbus/cardbus_cis.c
104
static int cardbus_read_tuple(device_t cbdev, device_t child,
sys/dev/pccard/cardbus/cardbus_cis.c
107
static void cardbus_read_tuple_finish(device_t cbdev, device_t child,
sys/dev/pccard/cardbus/cardbus_cis.c
109
static struct resource *cardbus_read_tuple_init(device_t cbdev, device_t child,
sys/dev/pccard/cardbus/cardbus_cis.c
111
static int decode_tuple(device_t cbdev, device_t child, int tupleid,
sys/dev/pccard/cardbus/cardbus_cis.c
114
static int cardbus_parse_cis(device_t cbdev, device_t child,
sys/dev/pccard/cardbus/cardbus_cis.c
137
decode_tuple_generic(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
160
decode_tuple_linktarget(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
179
decode_tuple_generic(cbdev, child, id, len, tupledata,
sys/dev/pccard/cardbus/cardbus_cis.c
187
decode_tuple_vers_1(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
210
decode_tuple_funcid(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
214
struct cardbus_devinfo *dinfo = device_get_ivars(child);
sys/dev/pccard/cardbus/cardbus_cis.c
236
decode_tuple_manfid(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
240
struct cardbus_devinfo *dinfo = device_get_ivars(child);
sys/dev/pccard/cardbus/cardbus_cis.c
258
decode_tuple_funce(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
262
struct cardbus_devinfo *dinfo = device_get_ivars(child);
sys/dev/pccard/cardbus/cardbus_cis.c
293
decode_tuple_bar(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
297
struct cardbus_devinfo *dinfo = device_get_ivars(child);
sys/dev/pccard/cardbus/cardbus_cis.c
360
pci_write_config(child, bar, 0xffffffff, 4);
sys/dev/pccard/cardbus/cardbus_cis.c
361
pci_bar = pci_read_config(child, bar, 4);
sys/dev/pccard/cardbus/cardbus_cis.c
383
pci_enable_io(child, type);
sys/dev/pccard/cardbus/cardbus_cis.c
388
decode_tuple_unhandled(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
398
decode_tuple_end(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
412
cardbus_read_tuple_conf(device_t cbdev, device_t child, uint32_t start,
sys/dev/pccard/cardbus/cardbus_cis.c
421
e = pci_read_config(child, loc - loc % 4, 4);
sys/dev/pccard/cardbus/cardbus_cis.c
427
e = pci_read_config(child, i, 4);
sys/dev/pccard/cardbus/cardbus_cis.c
460
cardbus_read_tuple(device_t cbdev, device_t child, struct resource *res,
sys/dev/pccard/cardbus/cardbus_cis.c
465
return (cardbus_read_tuple_conf(cbdev, child, start, off,
sys/dev/pccard/cardbus/cardbus_cis.c
474
cardbus_read_tuple_finish(device_t cbdev, device_t child, int rid,
sys/dev/pccard/cardbus/cardbus_cis.c
479
pci_write_config(child, rid, 0, 4);
sys/dev/pccard/cardbus/cardbus_cis.c
480
PCI_DISABLE_IO(cbdev, child, SYS_RES_MEMORY);
sys/dev/pccard/cardbus/cardbus_cis.c
485
cardbus_read_tuple_init(device_t cbdev, device_t child, uint32_t *start,
sys/dev/pccard/cardbus/cardbus_cis.c
511
pci_write_config(child, *rid, CARDBUS_ROM_ADDRMASK, 4);
sys/dev/pccard/cardbus/cardbus_cis.c
521
pci_write_config(child, *rid, 0xffffffff, 4);
sys/dev/pccard/cardbus/cardbus_cis.c
522
testval = pci_read_config(child, *rid, 4);
sys/dev/pccard/cardbus/cardbus_cis.c
545
pci_write_config(child, *rid,
sys/dev/pccard/cardbus/cardbus_cis.c
549
PCI_ENABLE_IO(cbdev, child, SYS_RES_MEMORY);
sys/dev/pccard/cardbus/cardbus_cis.c
60
typedef int (tuple_cb) (device_t cbdev, device_t child, int id, int len,
sys/dev/pccard/cardbus/cardbus_cis.c
630
decode_tuple(device_t cbdev, device_t child, int tupleid, int len,
sys/dev/pccard/cardbus/cardbus_cis.c
637
return (callbacks[i].func(cbdev, child, tupleid, len,
sys/dev/pccard/cardbus/cardbus_cis.c
640
return (callbacks[i].func(cbdev, child, tupleid, len,
sys/dev/pccard/cardbus/cardbus_cis.c
645
cardbus_parse_cis(device_t cbdev, device_t child,
sys/dev/pccard/cardbus/cardbus_cis.c
658
if ((start = pci_read_config(child, CARDBUS_CIS_REG, 4)) == 0) {
sys/dev/pccard/cardbus/cardbus_cis.c
664
res = cardbus_read_tuple_init(cbdev, child, &start, &rid);
sys/dev/pccard/cardbus/cardbus_cis.c
671
if (0 != cardbus_read_tuple(cbdev, child, res, start, &off,
sys/dev/pccard/cardbus/cardbus_cis.c
674
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
681
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
684
expect_linktarget = decode_tuple(cbdev, child, tupleid, len,
sys/dev/pccard/cardbus/cardbus_cis.c
689
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
693
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
698
cardbus_do_cis(device_t cbdev, device_t child)
sys/dev/pccard/cardbus/cardbus_cis.c
70
static int decode_tuple_generic(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
717
ret = cardbus_parse_cis(cbdev, child, init_callbacks);
sys/dev/pccard/cardbus/cardbus_cis.c
73
static int decode_tuple_linktarget(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
76
static int decode_tuple_vers_1(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
79
static int decode_tuple_funcid(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
82
static int decode_tuple_manfid(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
85
static int decode_tuple_funce(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
88
static int decode_tuple_bar(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
91
static int decode_tuple_unhandled(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
94
static int decode_tuple_end(device_t cbdev, device_t child, int id,
sys/dev/pccard/cardbus/cardbus_cis.c
98
static int cardbus_read_tuple_conf(device_t cbdev, device_t child,
sys/dev/pccard/exca/exca.c
574
exca_reset(struct exca_softc *sc, device_t child)
sys/dev/pccard/exca/exca.c
780
exca_activate_resource(struct exca_softc *exca, device_t child, int type,
sys/dev/pccard/exca/exca.c
800
return (BUS_ACTIVATE_RESOURCE(device_get_parent(exca->dev), child,
sys/dev/pccard/exca/exca.c
805
exca_deactivate_resource(struct exca_softc *exca, device_t child, int type,
sys/dev/pccard/exca/exca.c
820
return (BUS_DEACTIVATE_RESOURCE(device_get_parent(exca->dev), child,
sys/dev/pccard/exca/exca.c
826
exca_alloc_resource(struct exca_softc *sc, device_t child, int type, int *rid,
sys/dev/pccard/exca/exca.c
850
device_printf(child, "requested interrupt %ld-%ld,"
sys/dev/pccard/exca/exca.c
859
res = BUS_ALLOC_RESOURCE(up, child, type, rid,
sys/dev/pccard/exca/exca.c
865
if (bus_activate_resource(child, type, *rid, res) != 0) {
sys/dev/pccard/exca/exca.c
866
bus_release_resource(child, type, *rid, res);
sys/dev/pccard/exca/exca.c
875
exca_release_resource(struct exca_softc *sc, device_t child, int type,
sys/dev/pccard/exca/exca.c
881
error = bus_deactivate_resource(child, type, rid, res);
sys/dev/pccard/exca/exca.c
886
return (BUS_RELEASE_RESOURCE(device_get_parent(brdev), child,
sys/dev/pccard/exca/excavar.h
121
void exca_reset(struct exca_softc *, device_t child);
sys/dev/pccard/exca/excavar.h
124
int exca_activate_resource(struct exca_softc *exca, device_t child, int type,
sys/dev/pccard/exca/excavar.h
126
int exca_deactivate_resource(struct exca_softc *exca, device_t child, int type,
sys/dev/pccard/pccbb/pccbb.c
1113
cbb_cardbus_activate_resource(device_t brdev, device_t child, int type,
sys/dev/pccard/pccbb/pccbb.c
1118
ret = BUS_ACTIVATE_RESOURCE(device_get_parent(brdev), child,
sys/dev/pccard/pccbb/pccbb.c
1127
cbb_cardbus_deactivate_resource(device_t brdev, device_t child, int type,
sys/dev/pccard/pccbb/pccbb.c
1132
ret = BUS_DEACTIVATE_RESOURCE(device_get_parent(brdev), child,
sys/dev/pccard/pccbb/pccbb.c
1141
cbb_cardbus_alloc_resource(device_t brdev, device_t child, int type,
sys/dev/pccard/pccbb/pccbb.c
1153
device_printf(child, "requested interrupt %ld-%ld,"
sys/dev/pccard/pccbb/pccbb.c
1183
res = BUS_ALLOC_RESOURCE(device_get_parent(brdev), child, type, rid,
sys/dev/pccard/pccbb/pccbb.c
1191
if (bus_activate_resource(child, type, *rid, res) != 0) {
sys/dev/pccard/pccbb/pccbb.c
1192
bus_release_resource(child, type, *rid, res);
sys/dev/pccard/pccbb/pccbb.c
1200
cbb_cardbus_release_resource(device_t brdev, device_t child, int type,
sys/dev/pccard/pccbb/pccbb.c
1207
error = bus_deactivate_resource(child, type, rid, res);
sys/dev/pccard/pccbb/pccbb.c
1212
return (BUS_RELEASE_RESOURCE(device_get_parent(brdev), child,
sys/dev/pccard/pccbb/pccbb.c
1221
cbb_pcic_power_enable_socket(device_t brdev, device_t child)
sys/dev/pccard/pccbb/pccbb.c
1232
exca_reset(&sc->exca[0], child);
sys/dev/pccard/pccbb/pccbb.c
1238
cbb_pcic_power_disable_socket(device_t brdev, device_t child)
sys/dev/pccard/pccbb/pccbb.c
1261
cbb_power_enable_socket(device_t brdev, device_t child)
sys/dev/pccard/pccbb/pccbb.c
1266
return (cbb_pcic_power_enable_socket(brdev, child));
sys/dev/pccard/pccbb/pccbb.c
1268
return (cbb_cardbus_power_enable_socket(brdev, child));
sys/dev/pccard/pccbb/pccbb.c
1272
cbb_power_disable_socket(device_t brdev, device_t child)
sys/dev/pccard/pccbb/pccbb.c
1276
cbb_pcic_power_disable_socket(brdev, child);
sys/dev/pccard/pccbb/pccbb.c
1278
cbb_cardbus_power_disable_socket(brdev, child);
sys/dev/pccard/pccbb/pccbb.c
1282
cbb_pcic_activate_resource(device_t brdev, device_t child, int type, int rid,
sys/dev/pccard/pccbb/pccbb.c
1286
return (exca_activate_resource(&sc->exca[0], child, type, rid, res));
sys/dev/pccard/pccbb/pccbb.c
1290
cbb_pcic_deactivate_resource(device_t brdev, device_t child, int type,
sys/dev/pccard/pccbb/pccbb.c
1294
return (exca_deactivate_resource(&sc->exca[0], child, type, rid, res));
sys/dev/pccard/pccbb/pccbb.c
1298
cbb_pcic_alloc_resource(device_t brdev, device_t child, int type, int *rid,
sys/dev/pccard/pccbb/pccbb.c
1329
device_printf(child, "requested interrupt %ld-%ld,"
sys/dev/pccard/pccbb/pccbb.c
1339
res = BUS_ALLOC_RESOURCE(device_get_parent(brdev), child, type, rid,
sys/dev/pccard/pccbb/pccbb.c
1345
if (bus_activate_resource(child, type, *rid, res) != 0) {
sys/dev/pccard/pccbb/pccbb.c
1346
bus_release_resource(child, type, *rid, res);
sys/dev/pccard/pccbb/pccbb.c
1355
cbb_pcic_release_resource(device_t brdev, device_t child, int type,
sys/dev/pccard/pccbb/pccbb.c
1362
error = bus_deactivate_resource(child, type, rid, res);
sys/dev/pccard/pccbb/pccbb.c
1367
return (BUS_RELEASE_RESOURCE(device_get_parent(brdev), child,
sys/dev/pccard/pccbb/pccbb.c
1376
cbb_pcic_set_res_flags(device_t brdev, device_t child, int type, int rid,
sys/dev/pccard/pccbb/pccbb.c
1394
cbb_pcic_set_memory_offset(device_t brdev, device_t child, int rid,
sys/dev/pccard/pccbb/pccbb.c
1415
cbb_activate_resource(device_t brdev, device_t child, int type, int rid,
sys/dev/pccard/pccbb/pccbb.c
1421
return (cbb_pcic_activate_resource(brdev, child, type, rid, r));
sys/dev/pccard/pccbb/pccbb.c
1423
return (cbb_cardbus_activate_resource(brdev, child, type, rid,
sys/dev/pccard/pccbb/pccbb.c
1428
cbb_deactivate_resource(device_t brdev, device_t child, int type,
sys/dev/pccard/pccbb/pccbb.c
1434
return (cbb_pcic_deactivate_resource(brdev, child, type,
sys/dev/pccard/pccbb/pccbb.c
1437
return (cbb_cardbus_deactivate_resource(brdev, child, type,
sys/dev/pccard/pccbb/pccbb.c
1442
cbb_alloc_resource(device_t brdev, device_t child, int type, int *rid,
sys/dev/pccard/pccbb/pccbb.c
1448
return (cbb_pcic_alloc_resource(brdev, child, type, rid,
sys/dev/pccard/pccbb/pccbb.c
1451
return (cbb_cardbus_alloc_resource(brdev, child, type, rid,
sys/dev/pccard/pccbb/pccbb.c
1456
cbb_release_resource(device_t brdev, device_t child, int type, int rid,
sys/dev/pccard/pccbb/pccbb.c
1462
return (cbb_pcic_release_resource(brdev, child, type,
sys/dev/pccard/pccbb/pccbb.c
1465
return (cbb_cardbus_release_resource(brdev, child, type,
sys/dev/pccard/pccbb/pccbb.c
1470
cbb_read_ivar(device_t brdev, device_t child, int which, uintptr_t *result)
sys/dev/pccard/pccbb/pccbb.c
1486
cbb_write_ivar(device_t brdev, device_t child, int which, uintptr_t value)
sys/dev/pccard/pccbb/pccbb.c
166
static int cbb_cardbus_activate_resource(device_t brdev, device_t child,
sys/dev/pccard/pccbb/pccbb.c
169
device_t child, int type, int rid, struct resource *res);
sys/dev/pccard/pccbb/pccbb.c
171
device_t child, int type, int *rid, u_long start,
sys/dev/pccard/pccbb/pccbb.c
173
static int cbb_cardbus_release_resource(device_t brdev, device_t child,
sys/dev/pccard/pccbb/pccbb.c
176
device_t child);
sys/dev/pccard/pccbb/pccbb.c
178
device_t child);
sys/dev/pccard/pccbb/pccbb.c
335
cbb_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pccard/pccbb/pccbb.c
355
err = BUS_SETUP_INTR(device_get_parent(dev), child, irq, flags,
sys/dev/pccard/pccbb/pccbb.c
367
cbb_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pccard/pccbb/pccbb.c
375
err = BUS_TEARDOWN_INTR(device_get_parent(dev), child, irq,
sys/dev/pccard/pccbb/pccbb.c
409
cbb_child_detached(device_t brdev, device_t child)
sys/dev/pccard/pccbb/pccbb.c
413
if (child != sc->cbdev && child != sc->exca[0].pccarddev)
sys/dev/pccard/pccbb/pccbb.c
415
device_get_nameunit(child));
sys/dev/pccard/pccbb/pccbb.c
929
cbb_cardbus_power_enable_socket(device_t brdev, device_t child)
sys/dev/pccard/pccbb/pccbb.c
945
cbb_cardbus_power_disable_socket(device_t brdev, device_t child)
sys/dev/pccard/pccbb/pccbbvar.h
116
int cbb_activate_resource(device_t brdev, device_t child,
sys/dev/pccard/pccbb/pccbbvar.h
118
struct resource *cbb_alloc_resource(device_t brdev, device_t child,
sys/dev/pccard/pccbb/pccbbvar.h
121
void cbb_child_detached(device_t brdev, device_t child);
sys/dev/pccard/pccbb/pccbbvar.h
123
int cbb_deactivate_resource(device_t brdev, device_t child,
sys/dev/pccard/pccbb/pccbbvar.h
131
int cbb_pcic_set_memory_offset(device_t brdev, device_t child, int rid,
sys/dev/pccard/pccbb/pccbbvar.h
133
int cbb_pcic_set_res_flags(device_t brdev, device_t child, int type,
sys/dev/pccard/pccbb/pccbbvar.h
136
int cbb_power_enable_socket(device_t brdev, device_t child);
sys/dev/pccard/pccbb/pccbbvar.h
137
void cbb_power_disable_socket(device_t brdev, device_t child);
sys/dev/pccard/pccbb/pccbbvar.h
140
int cbb_read_ivar(device_t brdev, device_t child, int which,
sys/dev/pccard/pccbb/pccbbvar.h
142
int cbb_release_resource(device_t brdev, device_t child,
sys/dev/pccard/pccbb/pccbbvar.h
145
int cbb_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pccard/pccbb/pccbbvar.h
150
int cbb_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pccard/pccbb/pccbbvar.h
154
int cbb_write_ivar(device_t brdev, device_t child, int which,
sys/dev/powermng/amdsmn/amdsmn.c
217
device_t child;
sys/dev/powermng/amdsmn/amdsmn.c
225
child = device_add_child(parent, "amdsmn", -1);
sys/dev/powermng/amdsmn/amdsmn.c
226
if (child == NULL)
sys/dev/powermng/amdtemp/amdtemp.c
311
device_t child;
sys/dev/powermng/amdtemp/amdtemp.c
318
child = device_add_child(parent, "amdtemp", -1);
sys/dev/powermng/amdtemp/amdtemp.c
319
if (child == NULL)
sys/dev/powermng/aps/aps.c
251
device_t child;
sys/dev/powermng/aps/aps.c
253
child = device_find_child(parent, driver->name, -1);
sys/dev/powermng/aps/aps.c
254
if (child != NULL) {
sys/dev/powermng/aps/aps.c
255
if (isa_get_portsize(child) == 0) {
sys/dev/powermng/aps/aps.c
260
} else if (isa_get_port(child) != APS_ADDR_BASE)
sys/dev/powermng/aps/aps.c
264
if (isa_get_portsize(child) == APS_ADDR_SIZE) {
sys/dev/powermng/aps/aps.c
277
child = BUS_ADD_CHILD(parent, parent, ISA_ORDER_PNP,
sys/dev/powermng/aps/aps.c
279
if (child == NULL) {
sys/dev/powermng/aps/aps.c
284
if (bus_set_resource(child, SYS_RES_IOPORT, 0,
sys/dev/powermng/clockmod/clockmod.c
129
device_t child;
sys/dev/powermng/clockmod/clockmod.c
140
child = device_add_child(parent, "clockmod", device_get_unit(parent));
sys/dev/powermng/clockmod/clockmod.c
141
if (child == NULL)
sys/dev/powermng/corecstat/corecstat.c
153
device_t child;
sys/dev/powermng/corecstat/corecstat.c
167
child = device_add_child(parent, "corecstat", -1);
sys/dev/powermng/corecstat/corecstat.c
168
if (child == NULL)
sys/dev/powermng/corepower/corepower.c
119
device_t child;
sys/dev/powermng/corepower/corepower.c
149
child = device_add_child(parent, "corepower", -1);
sys/dev/powermng/corepower/corepower.c
150
if (child == NULL)
sys/dev/powermng/coretemp/coretemp.c
182
device_t child;
sys/dev/powermng/coretemp/coretemp.c
207
child = device_add_child(parent, "coretemp", -1);
sys/dev/powermng/coretemp/coretemp.c
208
if (child == NULL)
sys/dev/powermng/perfbias/perfbias.c
106
child = device_add_child(parent, "perfbias", device_get_unit(parent));
sys/dev/powermng/perfbias/perfbias.c
107
if (child == NULL)
sys/dev/powermng/perfbias/perfbias.c
93
device_t child;
sys/dev/powermng/uguru/uguru.c
677
device_t child;
sys/dev/powermng/uguru/uguru.c
680
child = device_find_child(parent, driver->name, 0);
sys/dev/powermng/uguru/uguru.c
681
if (child == NULL)
sys/dev/powermng/uguru/uguru.c
682
child = BUS_ADD_CHILD(parent, parent, ISA_ORDER_PNP,
sys/dev/powermng/uguru/uguru.c
684
if (bus_set_resource(child, SYS_RES_IOPORT, 0, port, UGURU_IOSIZE, -1))
sys/dev/powermng/wbsio/wbsio.c
103
device_t child[2];
sys/dev/powermng/wbsio/wbsio.c
107
child[i] = device_find_child(parent, driver->name, i);
sys/dev/powermng/wbsio/wbsio.c
108
if (child[i] == NULL) {
sys/dev/powermng/wbsio/wbsio.c
109
child[i] = BUS_ADD_CHILD(parent, parent, ISA_ORDER_PNP,
sys/dev/powermng/wbsio/wbsio.c
111
if (child[i] == NULL) {
sys/dev/powermng/wbsio/wbsio.c
118
if (bus_set_resource(child[i], SYS_RES_IOPORT, 0,
sys/dev/powermng/wbsio/wbsio.c
215
device_t child;
sys/dev/powermng/wbsio/wbsio.c
256
child = BUS_ADD_CHILD(dev, dev, 0, "lm", -1);
sys/dev/powermng/wbsio/wbsio.c
257
if (child == NULL) {
sys/dev/powermng/wbsio/wbsio.c
261
if (bus_set_resource(child, SYS_RES_IOPORT, 0, iobase, 8, -1)) {
sys/dev/powermng/wbsio/wbsio.c
265
return device_probe_and_attach(child);
sys/dev/raid/aac/aac.c
3705
device_t child;
sys/dev/raid/aac/aac.c
3778
child = device_add_child(sc->aac_dev, "aacp", -1);
sys/dev/raid/aac/aac.c
3779
if (child == NULL) {
sys/dev/raid/aac/aac.c
3791
caminf->sim_dev = child;
sys/dev/raid/aac/aac.c
3793
device_set_ivars(child, caminf);
sys/dev/raid/aac/aac.c
3794
device_set_desc(child, "SCSI Passthrough Bus");
sys/dev/raid/aac/aac.c
461
device_t child;
sys/dev/raid/aac/aac.c
475
if ((child = device_add_child(sc->aac_dev, "aacd", -1)) == NULL)
sys/dev/raid/aac/aac.c
478
device_set_ivars(child, co);
sys/dev/raid/aac/aac.c
479
device_set_desc(child, aac_describe_code(aac_container_types,
sys/dev/raid/aac/aac.c
481
co->co_disk = child;
sys/dev/raid/amr/amr.c
189
device_t child;
sys/dev/raid/amr/amr.c
250
child = device_add_child(sc->amr_dev, "amrp", -1);
sys/dev/raid/amr/amr.c
251
sc->amr_pass = child;
sys/dev/raid/amr/amr.c
252
if (child != NULL) {
sys/dev/raid/amr/amr.c
253
device_set_softc(child, sc);
sys/dev/raid/amr/amr.c
254
device_set_desc(child, "SCSI Passthrough Bus");
sys/dev/raid/mfi/mfi.c
1839
device_t child;
sys/dev/raid/mfi/mfi.c
1854
if ((child = device_add_child(sc->mfi_dev, "mfid", -1)) == NULL) {
sys/dev/raid/mfi/mfi.c
1862
device_set_ivars(child, ld_info);
sys/dev/raid/mfi/mfi.c
1863
device_set_desc(child, "MFI Logical Disk");
sys/dev/raid/mfi/mfi.c
1913
device_t child;
sys/dev/raid/mfi/mfi.c
1935
if ((child = device_add_child(sc->mfi_dev, "mfisyspd", -1)) == NULL) {
sys/dev/raid/mfi/mfi.c
1943
device_set_ivars(child, pd_info);
sys/dev/raid/mfi/mfi.c
1944
device_set_desc(child, "MFI System PD");
sys/dev/raid/twe/twe.c
1793
device_t child;
sys/dev/raid/twe/twe.c
1808
if ((child = sc->twe_drive[TWE_AEN_UNIT(aen)].td_disk) != NULL) {
sys/dev/raid/twe/twe.c
1810
device_get_unit(child), msg);
sys/dev/sound/pci/fm801.c
717
fm801_alloc_resource(device_t bus, device_t child, int type, int *rid,
sys/dev/sound/pci/fm801.c
731
fm801_release_resource(device_t bus, device_t child, int type, int rid,
sys/dev/sound/pci/hda/hdaa.c
6731
hdaa_print_child(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdaa.c
6735
(struct hdaa_pcm_devinfo *)device_get_ivars(child);
sys/dev/sound/pci/hda/hdaa.c
6739
retval = bus_print_child_header(dev, child);
sys/dev/sound/pci/hda/hdaa.c
6763
retval += bus_print_child_footer(dev, child);
sys/dev/sound/pci/hda/hdaa.c
6769
hdaa_child_location_str(device_t dev, device_t child, char *buf,
sys/dev/sound/pci/hda/hdaa.c
6774
(struct hdaa_pcm_devinfo *)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
1024
device_t child;
sys/dev/sound/pci/hda/hdac.c
1036
if ((child = sc->codecs[cad].dev) != NULL)
sys/dev/sound/pci/hda/hdac.c
1037
HDAC_UNSOL_INTR(child, resp);
sys/dev/sound/pci/hda/hdac.c
1544
device_t child;
sys/dev/sound/pci/hda/hdac.c
1610
child = device_add_child(sc->dev, "hdacc", -1);
sys/dev/sound/pci/hda/hdac.c
1611
if (child == NULL) {
sys/dev/sound/pci/hda/hdac.c
1616
device_set_ivars(child, (void *)(intptr_t)i);
sys/dev/sound/pci/hda/hdac.c
1617
sc->codecs[i].dev = child;
sys/dev/sound/pci/hda/hdac.c
1763
hdac_get_dma_tag(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdac.c
1771
hdac_print_child(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdac.c
1775
retval = bus_print_child_header(dev, child);
sys/dev/sound/pci/hda/hdac.c
1777
(int)(intptr_t)device_get_ivars(child));
sys/dev/sound/pci/hda/hdac.c
1778
retval += bus_print_child_footer(dev, child);
sys/dev/sound/pci/hda/hdac.c
1784
hdac_child_location_str(device_t dev, device_t child, char *buf,
sys/dev/sound/pci/hda/hdac.c
1789
(int)(intptr_t)device_get_ivars(child));
sys/dev/sound/pci/hda/hdac.c
1794
hdac_child_pnpinfo_str_method(device_t dev, device_t child, char *buf,
sys/dev/sound/pci/hda/hdac.c
1798
nid_t cad = (uintptr_t)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
1808
hdac_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/sound/pci/hda/hdac.c
1811
nid_t cad = (uintptr_t)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
1845
hdac_get_mtx(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdac.c
1853
hdac_codec_command(device_t dev, device_t child, uint32_t verb)
sys/dev/sound/pci/hda/hdac.c
1857
(intptr_t)device_get_ivars(child), verb));
sys/dev/sound/pci/hda/hdac.c
1896
hdac_stream_alloc(device_t dev, device_t child, int dir, int format, int stripe,
sys/dev/sound/pci/hda/hdac.c
1900
nid_t cad = (uintptr_t)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
1940
sc->streams[ss].dev = child;
sys/dev/sound/pci/hda/hdac.c
1956
hdac_stream_free(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdac.c
1959
nid_t cad = (uintptr_t)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
1974
hdac_stream_start(device_t dev, device_t child,
sys/dev/sound/pci/hda/hdac.c
2035
hdac_stream_stop(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdac.c
2060
hdac_stream_reset(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdac.c
2098
hdac_stream_getptr(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdac.c
2112
hdac_unsol_alloc(device_t dev, device_t child, int tag)
sys/dev/sound/pci/hda/hdac.c
2122
hdac_unsol_free(device_t dev, device_t child, int tag)
sys/dev/sound/pci/hda/hdacc.c
489
device_t child;
sys/dev/sound/pci/hda/hdacc.c
528
codec->fgs[n].dev = child = device_add_child(dev, NULL, -1);
sys/dev/sound/pci/hda/hdacc.c
529
if (child == NULL) {
sys/dev/sound/pci/hda/hdacc.c
533
device_set_ivars(child, &codec->fgs[n]);
sys/dev/sound/pci/hda/hdacc.c
553
hdacc_child_location_str(device_t dev, device_t child, char *buf,
sys/dev/sound/pci/hda/hdacc.c
556
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
563
hdacc_child_pnpinfo_str_method(device_t dev, device_t child, char *buf,
sys/dev/sound/pci/hda/hdacc.c
566
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
574
hdacc_print_child(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdacc.c
576
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
579
retval = bus_print_child_header(dev, child);
sys/dev/sound/pci/hda/hdacc.c
581
retval += bus_print_child_footer(dev, child);
sys/dev/sound/pci/hda/hdacc.c
587
hdacc_probe_nomatch(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdacc.c
590
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
592
device_printf(child, "<%s %s Function Group> at nid %d on %s "
sys/dev/sound/pci/hda/hdacc.c
613
hdacc_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/sound/pci/hda/hdacc.c
615
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
635
hdacc_get_mtx(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdacc.c
643
hdacc_codec_command(device_t dev, device_t child, uint32_t verb)
sys/dev/sound/pci/hda/hdacc.c
650
hdacc_stream_alloc(device_t dev, device_t child, int dir, int format,
sys/dev/sound/pci/hda/hdacc.c
659
codec->streams[dir][stream] = child;
sys/dev/sound/pci/hda/hdacc.c
664
hdacc_stream_free(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdacc.c
673
hdacc_stream_start(device_t dev, device_t child,
sys/dev/sound/pci/hda/hdacc.c
682
hdacc_stream_stop(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdacc.c
689
hdacc_stream_reset(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdacc.c
696
hdacc_stream_getptr(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdacc.c
706
device_t child;
sys/dev/sound/pci/hda/hdacc.c
708
if ((child = codec->streams[dir][stream]) != NULL)
sys/dev/sound/pci/hda/hdacc.c
709
HDAC_STREAM_INTR(child, dir, stream);
sys/dev/sound/pci/hda/hdacc.c
713
hdacc_unsol_alloc(device_t dev, device_t child, int wanted)
sys/dev/sound/pci/hda/hdacc.c
722
codec->tags[tag] = child;
sys/dev/sound/pci/hda/hdacc.c
733
hdacc_unsol_free(device_t dev, device_t child, int tag)
sys/dev/sound/pci/hda/hdacc.c
746
device_t child;
sys/dev/sound/pci/hda/hdacc.c
750
if ((child = codec->tags[tag]) != NULL)
sys/dev/sound/pci/hda/hdacc.c
751
HDAC_UNSOL_INTR(child, resp);
sys/dev/sound/pcm/mixer.c
251
u_int32_t parent = SOUND_MIXER_NONE, child = 0;
sys/dev/sound/pcm/mixer.c
280
child = m->child[dev];
sys/dev/sound/pcm/mixer.c
292
} else if (child != 0) {
sys/dev/sound/pcm/mixer.c
294
if (!(child & (1 << i)) || m->parent[i] != dev)
sys/dev/sound/pcm/mixer.c
473
v |= m->child[i];
sys/dev/sound/pcm/mixer.c
560
m->child[m->parent[i]] &= ~(1 << i);
sys/dev/sound/pcm/mixer.c
562
m->child[i] = 0;
sys/dev/sound/pcm/mixer.c
566
m->child[parent] = mask;
sys/dev/sound/pcm/mixer.c
591
return m->child[dev];
sys/dev/sound/pcm/mixer.c
640
m->child[i] = 0;
sys/dev/sound/pcm/mixer.c
66
u_int32_t child[32];
sys/dev/sound/pcm/mixer.c
753
if (m->child[i] != 0)
sys/dev/sound/pcm/mixer.c
754
kprintf(" child=0x%08x", m->child[i]);
sys/dev/video/cxm/cxm.c
1948
device_t child;
sys/dev/video/cxm/cxm.c
1993
child = sc->cxm_iic;
sys/dev/video/cxm/cxm.c
1995
if (child)
sys/dev/video/cxm/cxm.c
1996
device_delete_child(dev, child);
sys/dev/video/cxm/cxm.c
2059
cxm_child_detached(device_t dev, device_t child)
sys/dev/video/cxm/cxm.c
2066
if (child == sc->cxm_iic)
sys/dev/video/cxm/cxm.c
2072
cxm_read_ivar(device_t dev, device_t child, int index, uintptr_t* val)
sys/dev/video/cxm/cxm.c
2101
cxm_write_ivar(device_t dev, device_t child, int index, uintptr_t val)
sys/dev/video/cxm/cxm.c
87
static void cxm_child_detached(device_t dev, device_t child);
sys/dev/video/cxm/cxm_i2c.c
139
device_t child;
sys/dev/video/cxm/cxm_i2c.c
208
child = sc->iicbb;
sys/dev/video/cxm/cxm_i2c.c
210
if (child)
sys/dev/video/cxm/cxm_i2c.c
211
device_delete_child(dev, child);
sys/dev/video/cxm/cxm_i2c.c
224
device_t child;
sys/dev/video/cxm/cxm_i2c.c
240
child = sc->iicbb;
sys/dev/video/cxm/cxm_i2c.c
242
if (child)
sys/dev/video/cxm/cxm_i2c.c
243
device_delete_child(dev, child);
sys/dev/video/cxm/cxm_i2c.c
253
cxm_iic_child_detached(device_t dev, device_t child)
sys/dev/video/cxm/cxm_i2c.c
260
if (child == sc->iicbb)
sys/dev/video/cxm/cxm_i2c.c
64
static void cxm_iic_child_detached(device_t dev, device_t child);
sys/dev/virtual/amazon/ena/ena_sysctl.c
103
struct sysctl_oid_list *child;
sys/dev/virtual/amazon/ena/ena_sysctl.c
118
child = SYSCTL_CHILDREN(tree);
sys/dev/virtual/amazon/ena/ena_sysctl.c
127
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "wd_expired",
sys/dev/virtual/amazon/ena/ena_sysctl.c
130
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "interface_up",
sys/dev/virtual/amazon/ena/ena_sysctl.c
133
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "interface_down",
sys/dev/virtual/amazon/ena/ena_sysctl.c
136
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "admin_q_pause",
sys/dev/virtual/amazon/ena/ena_sysctl.c
143
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO,
sys/dev/virtual/amazon/ena/ena_sysctl.c
225
hw_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "hw_stats",
sys/dev/virtual/amazon/ena/ena_sysctl.c
241
admin_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "admin_stats",
sys/dev/virtual/amazon/ena/ena_sysctl.c
56
struct sysctl_oid_list *child;
sys/dev/virtual/amazon/ena/ena_sysctl.c
62
child = SYSCTL_CHILDREN(tree);
sys/dev/virtual/amazon/ena/ena_sysctl.c
65
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "wd_active",
sys/dev/virtual/amazon/ena/ena_sysctl.c
69
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "keep_alive_timeout",
sys/dev/virtual/amazon/ena/ena_sysctl.c
73
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "missing_tx_timeout",
sys/dev/virtual/amazon/ena/ena_sysctl.c
77
SYSCTL_ADD_U32(ctx, child, OID_AUTO, "missing_tx_max_queues",
sys/dev/virtual/amazon/ena/ena_sysctl.c
81
SYSCTL_ADD_U32(ctx, child, OID_AUTO, "missing_tx_threshold",
sys/dev/virtual/virtio/balloon/virtio_balloon.c
895
struct sysctl_oid_list *child;
sys/dev/virtual/virtio/balloon/virtio_balloon.c
902
child = SYSCTL_CHILDREN(tree);
sys/dev/virtual/virtio/balloon/virtio_balloon.c
904
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "debug_level",
sys/dev/virtual/virtio/balloon/virtio_balloon.c
908
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "desired",
sys/dev/virtual/virtio/balloon/virtio_balloon.c
912
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "current",
sys/dev/virtual/virtio/block/virtio_blk.c
1215
struct sysctl_oid_list *child;
sys/dev/virtual/virtio/block/virtio_blk.c
1220
child = SYSCTL_CHILDREN(tree);
sys/dev/virtual/virtio/block/virtio_blk.c
1222
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "writecache_mode",
sys/dev/virtual/virtio/mmio/virtio_mmio.c
233
device_t child;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
261
if ((child = device_add_child(dev, NULL, -1)) == NULL) {
sys/dev/virtual/virtio/mmio/virtio_mmio.c
268
sc->vtmmio_child_dev = child;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
278
device_t child;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
283
if ((child = sc->vtmmio_child_dev) != NULL) {
sys/dev/virtual/virtio/mmio/virtio_mmio.c
284
error = device_delete_child(dev, child);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
335
vtmmio_child_detached(device_t dev, device_t child)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
345
vtmmio_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
351
if (sc->vtmmio_child_dev != child)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
366
vtmmio_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
372
if (sc->vtmmio_child_dev != child)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
803
device_t dev, child;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
806
child = sc->vtmmio_child_dev;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
808
if (device_is_attached(child) && bootverbose == 0)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
817
device_t dev, child;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
821
child = sc->vtmmio_child_dev;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
823
if (child == NULL)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
826
if (device_get_state(child) != DS_NOTPRESENT)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
830
error = device_probe_and_attach(child);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
831
if (error != 0 || device_get_state(child) == DS_NOTPRESENT) {
sys/dev/virtual/virtio/mmio/virtio_mmio_kenv.c
115
child = BUS_ADD_CHILD(parent, parent, 0, "virtio_mmio",
sys/dev/virtual/virtio/mmio/virtio_mmio_kenv.c
117
if (child == NULL)
sys/dev/virtual/virtio/mmio/virtio_mmio_kenv.c
119
device_set_driver(child, driver);
sys/dev/virtual/virtio/mmio/virtio_mmio_kenv.c
120
bus_set_resource(child, SYS_RES_MEMORY, 0, baseaddr, sz, -1);
sys/dev/virtual/virtio/mmio/virtio_mmio_kenv.c
128
bus_set_resource(child, SYS_RES_IRQ, 0, irq, 1,
sys/dev/virtual/virtio/mmio/virtio_mmio_kenv.c
132
vtmmio_kenv_children[vtmmio_kenv_nchildren++] = child;
sys/dev/virtual/virtio/mmio/virtio_mmio_kenv.c
52
device_t child;
sys/dev/virtual/virtio/net/if_vtnet.c
2783
struct sysctl_oid_list *child;
sys/dev/virtual/virtio/net/if_vtnet.c
2789
child = SYSCTL_CHILDREN(tree);
sys/dev/virtual/virtio/net/if_vtnet.c
2791
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "mbuf_alloc_failed",
sys/dev/virtual/virtio/net/if_vtnet.c
2795
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_frame_too_large",
sys/dev/virtual/virtio/net/if_vtnet.c
2798
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_enq_replacement_failed",
sys/dev/virtual/virtio/net/if_vtnet.c
2801
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_mergeable_failed",
sys/dev/virtual/virtio/net/if_vtnet.c
2804
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_csum_bad_ethtype",
sys/dev/virtual/virtio/net/if_vtnet.c
2808
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_csum_bad_ipproto",
sys/dev/virtual/virtio/net/if_vtnet.c
2811
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_csum_bad_offset",
sys/dev/virtual/virtio/net/if_vtnet.c
2814
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_csum_failed",
sys/dev/virtual/virtio/net/if_vtnet.c
2817
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_csum_offloaded",
sys/dev/virtual/virtio/net/if_vtnet.c
2820
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_task_rescheduled",
sys/dev/virtual/virtio/net/if_vtnet.c
2824
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_csum_bad_ethtype",
sys/dev/virtual/virtio/net/if_vtnet.c
2828
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_tso_bad_ethtype",
sys/dev/virtual/virtio/net/if_vtnet.c
2831
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_defragged",
sys/dev/virtual/virtio/net/if_vtnet.c
2834
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_defrag_failed",
sys/dev/virtual/virtio/net/if_vtnet.c
2837
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_csum_offloaded",
sys/dev/virtual/virtio/net/if_vtnet.c
2840
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_tso_offloaded",
sys/dev/virtual/virtio/net/if_vtnet.c
2843
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_task_rescheduled",
sys/dev/virtual/virtio/pci/virtio_pci.c
1001
if (child == NULL)
sys/dev/virtual/virtio/pci/virtio_pci.c
1004
if (device_get_state(child) != DS_NOTPRESENT)
sys/dev/virtual/virtio/pci/virtio_pci.c
1008
error = device_probe_and_attach(child);
sys/dev/virtual/virtio/pci/virtio_pci.c
1009
if (error != 0 || device_get_state(child) == DS_NOTPRESENT) {
sys/dev/virtual/virtio/pci/virtio_pci.c
249
device_t child;
sys/dev/virtual/virtio/pci/virtio_pci.c
279
if ((child = device_add_child(dev, NULL, -1)) == NULL) {
sys/dev/virtual/virtio/pci/virtio_pci.c
286
sc->vtpci_child_dev = child;
sys/dev/virtual/virtio/pci/virtio_pci.c
296
device_t child;
sys/dev/virtual/virtio/pci/virtio_pci.c
301
if ((child = sc->vtpci_child_dev) != NULL) {
sys/dev/virtual/virtio/pci/virtio_pci.c
302
error = device_delete_child(dev, child);
sys/dev/virtual/virtio/pci/virtio_pci.c
361
vtpci_child_detached(device_t dev, device_t child)
sys/dev/virtual/virtio/pci/virtio_pci.c
372
vtpci_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/virtual/virtio/pci/virtio_pci.c
378
if (sc->vtpci_child_dev != child)
sys/dev/virtual/virtio/pci/virtio_pci.c
393
vtpci_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/virtual/virtio/pci/virtio_pci.c
399
if (sc->vtpci_child_dev != child)
sys/dev/virtual/virtio/pci/virtio_pci.c
981
device_t dev, child;
sys/dev/virtual/virtio/pci/virtio_pci.c
984
child = sc->vtpci_child_dev;
sys/dev/virtual/virtio/pci/virtio_pci.c
986
if (device_is_attached(child) && bootverbose == 0)
sys/dev/virtual/virtio/pci/virtio_pci.c
995
device_t dev, child;
sys/dev/virtual/virtio/pci/virtio_pci.c
999
child = sc->vtpci_child_dev;
sys/dev/virtual/virtio/scsi/virtio_scsi.c
2379
struct sysctl_oid_list *child;
sys/dev/virtual/virtio/scsi/virtio_scsi.c
2385
child = SYSCTL_CHILDREN(tree);
sys/dev/virtual/virtio/scsi/virtio_scsi.c
2387
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "debug_level",
sys/dev/virtual/virtio/scsi/virtio_scsi.c
2391
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "scsi_cmd_timeouts",
sys/dev/virtual/virtio/scsi/virtio_scsi.c
2394
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "dequeue_no_requests",
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3640
struct sysctl_ctx_list *ctx, struct sysctl_oid_list *child)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3652
node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf, CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3700
struct sysctl_ctx_list *ctx, struct sysctl_oid_list *child)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3712
node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf, CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3758
struct sysctl_ctx_list *ctx, struct sysctl_oid_list *child)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3817
struct sysctl_ctx_list *ctx, struct sysctl_oid_list *child)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3822
vmxnet3_setup_txq_sysctl(&sc->vmx_txq[i], ctx, child);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3824
vmxnet3_setup_rxq_sysctl(&sc->vmx_rxq[i], ctx, child);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3826
vmxnet3_setup_debug_sysctl(sc, ctx, child);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3836
struct sysctl_oid_list *child;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3841
child = SYSCTL_CHILDREN(tree);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3843
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "max_ntxqueues", CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3845
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "max_nrxqueues", CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3847
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "ntxqueues", CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3849
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "nrxqueues", CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3853
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "defragged", CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3855
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "defrag_failed", CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3858
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "mgetcl_failed", CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3860
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "mbuf_load_failed", CTLFLAG_RD,
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3863
vmxnet3_setup_queue_sysctl(sc, ctx, child);
sys/kern/kern_exit.c
1468
proc_reparent(struct proc *child, struct proc *parent)
sys/kern/kern_exit.c
1473
while ((opp = child->p_pptr) != parent) {
sys/kern/kern_exit.c
1476
lwkt_gettoken(&child->p_token);
sys/kern/kern_exit.c
1478
if (child->p_pptr != opp) {
sys/kern/kern_exit.c
1480
lwkt_reltoken(&child->p_token);
sys/kern/kern_exit.c
1485
LIST_REMOVE(child, p_sibling);
sys/kern/kern_exit.c
1486
LIST_INSERT_HEAD(&parent->p_children, child, p_sibling);
sys/kern/kern_exit.c
1487
child->p_pptr = parent;
sys/kern/kern_exit.c
1488
child->p_ppid = parent->p_pid;
sys/kern/kern_exit.c
1489
child->p_reaptid = 0;
sys/kern/kern_exit.c
1491
lwkt_reltoken(&child->p_token);
sys/kern/subr_bus.c
1228
device_print_child(device_t dev, device_t child)
sys/kern/subr_bus.c
1232
if (device_is_alive(child))
sys/kern/subr_bus.c
1233
retval += BUS_PRINT_CHILD(dev, child);
sys/kern/subr_bus.c
1235
retval += device_printf(child, " not found\n");
sys/kern/subr_bus.c
1249
device_t child;
sys/kern/subr_bus.c
1255
child = make_device(dev, name, unit);
sys/kern/subr_bus.c
1256
if (child == NULL)
sys/kern/subr_bus.c
1257
return child;
sys/kern/subr_bus.c
1258
child->order = order;
sys/kern/subr_bus.c
1270
TAILQ_INSERT_BEFORE(place, child, link);
sys/kern/subr_bus.c
1276
TAILQ_INSERT_TAIL(&dev->children, child, link);
sys/kern/subr_bus.c
1280
return(child);
sys/kern/subr_bus.c
1284
device_delete_child(device_t dev, device_t child)
sys/kern/subr_bus.c
1289
PDEBUG(("%s from %s", DEVICENAME(child), DEVICENAME(dev)));
sys/kern/subr_bus.c
1292
if ((error = device_detach(child)) != 0)
sys/kern/subr_bus.c
1296
while ( (grandchild = TAILQ_FIRST(&child->children)) ) {
sys/kern/subr_bus.c
1297
error = device_delete_child(child, grandchild);
sys/kern/subr_bus.c
1302
if (child->devclass)
sys/kern/subr_bus.c
1303
devclass_delete_device(child->devclass, child);
sys/kern/subr_bus.c
1304
TAILQ_REMOVE(&dev->children, child, link);
sys/kern/subr_bus.c
1305
TAILQ_REMOVE(&bus_data_devices, child, devlink);
sys/kern/subr_bus.c
1306
kobj_delete((kobj_t)child, M_BUS);
sys/kern/subr_bus.c
1328
device_t child;
sys/kern/subr_bus.c
1335
while ((child = TAILQ_FIRST(&dev->children)) != NULL) {
sys/kern/subr_bus.c
1336
error = device_delete_child(dev, child);
sys/kern/subr_bus.c
1338
PDEBUG(("Failed deleting %s", DEVICENAME(child)));
sys/kern/subr_bus.c
1363
device_t child;
sys/kern/subr_bus.c
1370
child = devclass_get_device(dc, unit);
sys/kern/subr_bus.c
1371
if (child && child->parent == dev)
sys/kern/subr_bus.c
1372
return (child);
sys/kern/subr_bus.c
1375
child = devclass_get_device(dc, unit);
sys/kern/subr_bus.c
1376
if (child && child->parent == dev)
sys/kern/subr_bus.c
1377
return (child);
sys/kern/subr_bus.c
1406
device_probe_child(device_t dev, device_t child)
sys/kern/subr_bus.c
1412
int hasclass = (child->devclass != NULL);
sys/kern/subr_bus.c
1418
if (child->state == DS_ALIVE)
sys/kern/subr_bus.c
1422
for (dl = first_matching_driver(dc, child); dl;
sys/kern/subr_bus.c
1423
dl = next_matching_driver(dc, child, dl)) {
sys/kern/subr_bus.c
1425
device_set_driver(child, dl->driver);
sys/kern/subr_bus.c
1427
device_set_devclass(child, dl->driver->name);
sys/kern/subr_bus.c
1428
result = DEVICE_PROBE(child);
sys/kern/subr_bus.c
1430
device_set_devclass(child, 0);
sys/kern/subr_bus.c
1447
device_set_driver(child, NULL);
sys/kern/subr_bus.c
1474
if (!child->devclass)
sys/kern/subr_bus.c
1475
device_set_devclass(child, best->driver->name);
sys/kern/subr_bus.c
1476
device_set_driver(child, best->driver);
sys/kern/subr_bus.c
1482
DEVICE_PROBE(child);
sys/kern/subr_bus.c
1486
child->state = DS_ALIVE;
sys/kern/subr_bus.c
1494
device_probe_child_gpri(device_t dev, device_t child, u_int gpri)
sys/kern/subr_bus.c
1500
int hasclass = (child->devclass != NULL);
sys/kern/subr_bus.c
1506
if (child->state == DS_ALIVE)
sys/kern/subr_bus.c
1510
for (dl = first_matching_driver(dc, child); dl;
sys/kern/subr_bus.c
1511
dl = next_matching_driver(dc, child, dl)) {
sys/kern/subr_bus.c
1520
device_set_driver(child, dl->driver);
sys/kern/subr_bus.c
1522
device_set_devclass(child, dl->driver->name);
sys/kern/subr_bus.c
1523
result = DEVICE_PROBE(child);
sys/kern/subr_bus.c
1525
device_set_devclass(child, 0);
sys/kern/subr_bus.c
1542
device_set_driver(child, NULL);
sys/kern/subr_bus.c
1569
if (!child->devclass)
sys/kern/subr_bus.c
1570
device_set_devclass(child, best->driver->name);
sys/kern/subr_bus.c
1571
device_set_driver(child, best->driver);
sys/kern/subr_bus.c
1577
DEVICE_PROBE(child);
sys/kern/subr_bus.c
1581
child->state = DS_ALIVE;
sys/kern/subr_bus.c
1598
device_t child;
sys/kern/subr_bus.c
1602
TAILQ_FOREACH(child, &dev->children, link)
sys/kern/subr_bus.c
1608
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
1609
list[count] = child;
sys/kern/subr_bus.c
2674
device_t bus, device_t child,
sys/kern/subr_bus.c
2680
int passthrough = (device_get_parent(child) != bus);
sys/kern/subr_bus.c
2684
return(BUS_ALLOC_RESOURCE(device_get_parent(bus), child,
sys/kern/subr_bus.c
2704
rle->res = BUS_ALLOC_RESOURCE(device_get_parent(bus), child,
sys/kern/subr_bus.c
2722
device_t bus, device_t child,
sys/kern/subr_bus.c
2726
int passthrough = (device_get_parent(child) != bus);
sys/kern/subr_bus.c
2730
return(BUS_RELEASE_RESOURCE(device_get_parent(bus), child,
sys/kern/subr_bus.c
2741
error = BUS_RELEASE_RESOURCE(device_get_parent(bus), child,
sys/kern/subr_bus.c
2845
device_t child;
sys/kern/subr_bus.c
2847
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
2848
device_probe_and_attach(child);
sys/kern/subr_bus.c
2857
device_t child;
sys/kern/subr_bus.c
2859
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
2860
device_probe_and_attach_gpri(child, gpri);
sys/kern/subr_bus.c
2869
device_t child;
sys/kern/subr_bus.c
2875
TAILQ_FOREACH(child, &dev->children, link)
sys/kern/subr_bus.c
2876
if ((error = device_detach(child)) != 0)
sys/kern/subr_bus.c
2885
device_t child;
sys/kern/subr_bus.c
2887
TAILQ_FOREACH(child, &dev->children, link)
sys/kern/subr_bus.c
2888
device_shutdown(child);
sys/kern/subr_bus.c
2897
device_t child, child2;
sys/kern/subr_bus.c
2899
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
2900
error = DEVICE_SUSPEND(child);
sys/kern/subr_bus.c
2903
child2 && child2 != child;
sys/kern/subr_bus.c
2915
device_t child;
sys/kern/subr_bus.c
2917
TAILQ_FOREACH(child, &dev->children, link)
sys/kern/subr_bus.c
2918
DEVICE_RESUME(child);
sys/kern/subr_bus.c
2925
bus_print_child_header(device_t dev, device_t child)
sys/kern/subr_bus.c
2929
if (device_get_desc(child))
sys/kern/subr_bus.c
2930
retval += device_printf(child, "<%s>", device_get_desc(child));
sys/kern/subr_bus.c
2932
retval += kprintf("%s", device_get_nameunit(child));
sys/kern/subr_bus.c
2934
if (child->state != DS_ATTACHED)
sys/kern/subr_bus.c
2943
bus_print_child_footer(device_t dev, device_t child)
sys/kern/subr_bus.c
2949
bus_generic_add_child(device_t dev, device_t child, int order,
sys/kern/subr_bus.c
2953
dev = BUS_ADD_CHILD(dev->parent, child, order, name, unit);
sys/kern/subr_bus.c
2955
dev = device_add_child_ordered(child, order, name, unit);
sys/kern/subr_bus.c
2961
bus_generic_print_child(device_t dev, device_t child)
sys/kern/subr_bus.c
2965
retval += bus_print_child_header(dev, child);
sys/kern/subr_bus.c
2966
retval += bus_print_child_footer(dev, child);
sys/kern/subr_bus.c
2972
bus_generic_read_ivar(device_t dev, device_t child, int index,
sys/kern/subr_bus.c
2978
error = BUS_READ_IVAR(dev->parent, child, index, result);
sys/kern/subr_bus.c
2985
bus_generic_write_ivar(device_t dev, device_t child, int index,
sys/kern/subr_bus.c
2991
error = BUS_WRITE_IVAR(dev->parent, child, index, value);
sys/kern/subr_bus.c
3001
bus_generic_get_resource_list(device_t dev, device_t child)
sys/kern/subr_bus.c
3009
device_t child;
sys/kern/subr_bus.c
3012
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
3013
if (child->state == DS_NOTPRESENT)
sys/kern/subr_bus.c
3014
device_probe_and_attach(child);
sys/kern/subr_bus.c
3019
bus_generic_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/kern/subr_bus.c
3025
return BUS_SETUP_INTR(dev->parent, child, irq, flags,
sys/kern/subr_bus.c
3033
bus_generic_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/kern/subr_bus.c
3038
return(BUS_TEARDOWN_INTR(dev->parent, child, irq, cookie));
sys/kern/subr_bus.c
3044
bus_generic_disable_intr(device_t dev, device_t child, void *cookie)
sys/kern/subr_bus.c
3047
return(BUS_DISABLE_INTR(dev->parent, child, cookie));
sys/kern/subr_bus.c
3053
bus_generic_enable_intr(device_t dev, device_t child, void *cookie)
sys/kern/subr_bus.c
3056
BUS_ENABLE_INTR(dev->parent, child, cookie);
sys/kern/subr_bus.c
3060
bus_generic_config_intr(device_t dev, device_t child, int irq, enum intr_trigger trig,
sys/kern/subr_bus.c
3065
return(BUS_CONFIG_INTR(dev->parent, child, irq, trig, pol));
sys/kern/subr_bus.c
3071
bus_generic_alloc_resource(device_t dev, device_t child, int type, int *rid,
sys/kern/subr_bus.c
3076
return(BUS_ALLOC_RESOURCE(dev->parent, child, type, rid,
sys/kern/subr_bus.c
3083
bus_generic_release_resource(device_t dev, device_t child, int type, int rid,
sys/kern/subr_bus.c
3088
return(BUS_RELEASE_RESOURCE(dev->parent, child, type, rid, r));
sys/kern/subr_bus.c
3094
bus_generic_activate_resource(device_t dev, device_t child, int type, int rid,
sys/kern/subr_bus.c
3099
return(BUS_ACTIVATE_RESOURCE(dev->parent, child, type, rid, r));
sys/kern/subr_bus.c
3105
bus_generic_deactivate_resource(device_t dev, device_t child, int type,
sys/kern/subr_bus.c
3110
return(BUS_DEACTIVATE_RESOURCE(dev->parent, child, type, rid,
sys/kern/subr_bus.c
3117
bus_generic_get_resource(device_t dev, device_t child, int type, int rid,
sys/kern/subr_bus.c
3124
error = BUS_GET_RESOURCE(dev->parent, child, type, rid,
sys/kern/subr_bus.c
3131
bus_generic_set_resource(device_t dev, device_t child, int type, int rid,
sys/kern/subr_bus.c
3138
error = BUS_SET_RESOURCE(dev->parent, child, type, rid,
sys/kern/subr_bus.c
3145
bus_generic_delete_resource(device_t dev, device_t child, int type, int rid)
sys/kern/subr_bus.c
3148
BUS_DELETE_RESOURCE(dev, child, type, rid);
sys/kern/subr_bus.c
3158
bus_generic_get_dma_tag(device_t dev, device_t child)
sys/kern/subr_bus.c
3163
return (BUS_GET_DMA_TAG(dev->parent, child));
sys/kern/subr_bus.c
3168
bus_generic_rl_get_resource(device_t dev, device_t child, int type, int rid,
sys/kern/subr_bus.c
3174
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
3191
bus_generic_rl_set_resource(device_t dev, device_t child, int type, int rid,
sys/kern/subr_bus.c
3196
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
3207
bus_generic_rl_delete_resource(device_t dev, device_t child, int type, int rid)
sys/kern/subr_bus.c
3211
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
3219
bus_generic_rl_release_resource(device_t dev, device_t child, int type,
sys/kern/subr_bus.c
3224
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
3228
return(resource_list_release(rl, dev, child, type, rid, r));
sys/kern/subr_bus.c
3232
bus_generic_rl_alloc_resource(device_t dev, device_t child, int type,
sys/kern/subr_bus.c
3237
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
3241
return(resource_list_alloc(rl, dev, child, type, rid,
sys/kern/subr_bus.c
3246
bus_generic_child_present(device_t bus, device_t child)
sys/kern/subr_bus.c
3428
bus_child_present(device_t child)
sys/kern/subr_bus.c
3430
return (BUS_CHILD_PRESENT(device_get_parent(child), child));
sys/kern/subr_bus.c
3434
bus_child_pnpinfo_str(device_t child, char *buf, size_t buflen)
sys/kern/subr_bus.c
3438
parent = device_get_parent(child);
sys/kern/subr_bus.c
3443
return (BUS_CHILD_PNPINFO_STR(parent, child, buf, buflen));
sys/kern/subr_bus.c
3447
bus_child_location_str(device_t child, char *buf, size_t buflen)
sys/kern/subr_bus.c
3451
parent = device_get_parent(child);
sys/kern/subr_bus.c
3456
return (BUS_CHILD_LOCATION_STR(parent, child, buf, buflen));
sys/kern/subr_bus.c
3477
root_print_child(device_t dev, device_t child)
sys/kern/subr_bus.c
3483
root_setup_intr(device_t dev, device_t child, driver_intr_t *intr, void *arg,
sys/kern/subr_bus.c
3500
root_child_present(device_t dev, device_t child)
sys/kern/subr_bus.c
3709
device_t child;
sys/kern/subr_bus.c
3716
TAILQ_FOREACH(child, &dev->children, link)
sys/kern/subr_bus.c
3717
print_device_tree_short(child, indent+1);
sys/kern/subr_bus.c
3726
device_t child;
sys/kern/subr_bus.c
3733
TAILQ_FOREACH(child, &dev->children, link)
sys/kern/subr_bus.c
3734
print_device_tree(child, indent+1);
sys/kern/usched_dummy.c
444
dummy_exiting(struct lwp *plp, struct proc *child)
sys/kern/usched_dummy.c
71
static void dummy_exiting(struct lwp *plp, struct proc *child);
sys/libprop/prop_array.c
800
void *data, prop_object_t child)
sys/libprop/prop_array.c
806
if (child == NULL)
sys/libprop/prop_array.c
811
if (prop_array_add(array, child) == false) {
sys/libprop/prop_array.c
812
prop_object_release(child);
sys/libprop/prop_array.c
815
prop_object_release(child);
sys/libprop/prop_dictionary.c
1284
struct _prop_object_internalize_context *ctx, void *data, prop_object_t child)
sys/libprop/prop_dictionary.c
1291
if (child == NULL ||
sys/libprop/prop_dictionary.c
1292
prop_dictionary_set(dict, tmpkey, child) == false) {
sys/libprop/prop_dictionary.c
1294
if (child != NULL)
sys/libprop/prop_dictionary.c
1295
prop_object_release(child);
sys/libprop/prop_dictionary.c
1301
prop_object_release(child);
sys/net/dummynet/ip_dummynet.c
318
int child, father, max = h->elements - 1;
sys/net/dummynet/ip_dummynet.c
338
child = HEAP_LEFT(father); /* Left child */
sys/net/dummynet/ip_dummynet.c
339
while (child <= max) { /* Valid entry */
sys/net/dummynet/ip_dummynet.c
340
if (child != max && DN_KEY_LT(h->p[child + 1].key, h->p[child].key))
sys/net/dummynet/ip_dummynet.c
341
child = child + 1; /* Take right child, otherwise left */
sys/net/dummynet/ip_dummynet.c
342
h->p[father] = h->p[child];
sys/net/dummynet/ip_dummynet.c
344
father = child;
sys/net/dummynet/ip_dummynet.c
345
child = HEAP_LEFT(child); /* Left child for next loop */
sys/net/dummynet3/ip_dummynet3.c
337
int child, father, max = h->elements - 1;
sys/net/dummynet3/ip_dummynet3.c
357
child = HEAP_LEFT(father); /* Left child */
sys/net/dummynet3/ip_dummynet3.c
358
while (child <= max) { /* Valid entry */
sys/net/dummynet3/ip_dummynet3.c
359
if (child != max && DN_KEY_LT(h->p[child + 1].key, h->p[child].key))
sys/net/dummynet3/ip_dummynet3.c
360
child = child + 1; /* Take right child, otherwise left */
sys/net/dummynet3/ip_dummynet3.c
361
h->p[father] = h->p[child];
sys/net/dummynet3/ip_dummynet3.c
363
father = child;
sys/net/dummynet3/ip_dummynet3.c
364
child = HEAP_LEFT(child); /* Left child for next loop */
sys/net/pf/pf.c
147
struct pf_anchor *child;
sys/net/pf/pf.c
2520
if ((f->child = RB_MIN(pf_anchor_node, f->parent)) ==
sys/net/pf/pf.c
2525
*rs = &f->child->ruleset;
sys/net/pf/pf.c
2528
f->child = NULL;
sys/net/pf/pf.c
2545
if (f->parent != NULL && f->child != NULL) {
sys/net/pf/pf.c
2546
if (f->child->match ||
sys/net/pf/pf.c
2551
f->child = RB_NEXT(pf_anchor_node, f->parent, f->child);
sys/net/pf/pf.c
2552
if (f->child != NULL) {
sys/net/pf/pf.c
2553
*rs = &f->child->ruleset;
sys/netproto/smb/smb_conn.c
402
smb_co_addchild(struct smb_connobj *parent, struct smb_connobj *child)
sys/netproto/smb/smb_conn.c
405
KASSERT(smb_co_lockstatus(child, curthread) == LK_EXCLUSIVE, ("smb_co_addchild: child not locked"));
sys/netproto/smb/smb_conn.c
408
SLIST_INSERT_HEAD(&parent->co_children, child, co_next);
sys/netproto/smb/smb_conn.c
409
child->co_parent = parent;
sys/platform/pc64/x86_64/nexus.c
234
device_t child;
sys/platform/pc64/x86_64/nexus.c
251
child = BUS_ADD_CHILD(dev, dev, 0, "isa", 0);
sys/platform/pc64/x86_64/nexus.c
252
if (child == NULL)
sys/platform/pc64/x86_64/nexus.c
254
device_probe_and_attach(child);
sys/platform/pc64/x86_64/nexus.c
278
nexus_print_child(device_t bus, device_t child)
sys/platform/pc64/x86_64/nexus.c
280
struct nexus_device *ndev = DEVTONX(child);
sys/platform/pc64/x86_64/nexus.c
283
retval += bus_print_child_header(bus, child);
sys/platform/pc64/x86_64/nexus.c
284
retval += nexus_print_all_resources(child);
sys/platform/pc64/x86_64/nexus.c
296
device_t child;
sys/platform/pc64/x86_64/nexus.c
303
child = device_add_child_ordered(parent, order, name, unit);
sys/platform/pc64/x86_64/nexus.c
306
device_set_ivars(child, ndev);
sys/platform/pc64/x86_64/nexus.c
308
return(child);
sys/platform/pc64/x86_64/nexus.c
312
nexus_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/platform/pc64/x86_64/nexus.c
314
struct nexus_device *ndev = DEVTONX(child);
sys/platform/pc64/x86_64/nexus.c
327
nexus_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/platform/pc64/x86_64/nexus.c
329
struct nexus_device *ndev = DEVTONX(child);
sys/platform/pc64/x86_64/nexus.c
347
nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
sys/platform/pc64/x86_64/nexus.c
350
struct nexus_device *ndev = DEVTONX(child);
sys/platform/pc64/x86_64/nexus.c
398
rv = rman_reserve_resource(rm, start, end, count, flags, child);
sys/platform/pc64/x86_64/nexus.c
411
if (bus_activate_resource(child, type, *rid, rv)) {
sys/platform/pc64/x86_64/nexus.c
421
nexus_activate_resource(device_t bus, device_t child, int type, int rid,
sys/platform/pc64/x86_64/nexus.c
454
nexus_deactivate_resource(device_t bus, device_t child, int type, int rid,
sys/platform/pc64/x86_64/nexus.c
472
nexus_release_resource(device_t bus, device_t child, int type, int rid,
sys/platform/pc64/x86_64/nexus.c
476
int error = bus_deactivate_resource(child, type, rid, r);
sys/platform/pc64/x86_64/nexus.c
498
nexus_setup_intr(device_t bus, device_t child, struct resource *irq,
sys/platform/pc64/x86_64/nexus.c
522
desc = device_get_nameunit(child);
sys/platform/pc64/x86_64/nexus.c
537
nexus_teardown_intr(device_t dev, device_t child, struct resource *r, void *ih)
sys/platform/pc64/x86_64/nexus.c
547
nexus_set_resource(device_t dev, device_t child, int type, int rid,
sys/platform/pc64/x86_64/nexus.c
550
struct nexus_device *ndev = DEVTONX(child);
sys/platform/pc64/x86_64/nexus.c
560
nexus_get_resource(device_t dev, device_t child, int type, int rid, u_long *startp, u_long *countp)
sys/platform/pc64/x86_64/nexus.c
562
struct nexus_device *ndev = DEVTONX(child);
sys/platform/pc64/x86_64/nexus.c
567
device_printf(child, "type %d rid %d startp %p countp %p - got %p\n",
sys/platform/pc64/x86_64/nexus.c
579
nexus_delete_resource(device_t dev, device_t child, int type, int rid)
sys/platform/pc64/x86_64/nexus.c
581
struct nexus_device *ndev = DEVTONX(child);
sys/platform/pc64/x86_64/nexus.c
589
nexus_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/platform/pc64/x86_64/nexus.c
599
nexus_release_msi(device_t dev, device_t child, int count, int *irqs, int cpuid)
sys/platform/pc64/x86_64/nexus.c
607
nexus_map_msi(device_t dev, device_t child, int irq, uint64_t *addr,
sys/platform/pc64/x86_64/nexus.c
616
nexus_alloc_msix(device_t dev, device_t child, int *irq, int cpuid)
sys/platform/pc64/x86_64/nexus.c
625
nexus_release_msix(device_t dev, device_t child, int irq, int cpuid)
sys/sys/bus.h
204
device_t bus, device_t child,
sys/sys/bus.h
213
device_t bus, device_t child,
sys/sys/bus.h
235
int bus_generic_activate_resource(device_t dev, device_t child, int type,
sys/sys/bus.h
238
bus_generic_alloc_resource(device_t bus, device_t child,
sys/sys/bus.h
249
int bus_generic_child_present(device_t dev, device_t child);
sys/sys/bus.h
250
int bus_generic_deactivate_resource(device_t dev, device_t child, int type,
sys/sys/bus.h
253
int bus_generic_disable_intr(device_t dev, device_t child, void *cookie);
sys/sys/bus.h
256
bus_generic_get_dma_tag(device_t dev, device_t child);
sys/sys/bus.h
257
void bus_generic_enable_intr(device_t dev, device_t child, void *cookie);
sys/sys/bus.h
258
int bus_print_child_header(device_t dev, device_t child);
sys/sys/bus.h
259
int bus_print_child_footer(device_t dev, device_t child);
sys/sys/bus.h
260
int bus_generic_print_child(device_t dev, device_t child);
sys/sys/bus.h
266
int bus_generic_read_ivar(device_t dev, device_t child, int which,
sys/sys/bus.h
268
int bus_generic_release_resource(device_t bus, device_t child,
sys/sys/bus.h
270
int bus_generic_get_resource(device_t dev, device_t child, int type,
sys/sys/bus.h
272
int bus_generic_set_resource(device_t dev, device_t child,
sys/sys/bus.h
274
void bus_generic_delete_resource(device_t dev, device_t child,
sys/sys/bus.h
277
int bus_generic_setup_intr(device_t dev, device_t child,
sys/sys/bus.h
282
int bus_generic_teardown_intr(device_t dev, device_t child,
sys/sys/bus.h
284
int bus_generic_write_ivar(device_t dev, device_t child, int which,
sys/sys/bus.h
341
int bus_child_present(device_t child);
sys/sys/bus.h
342
int bus_child_pnpinfo_str(device_t child, char *buf, size_t buflen);
sys/sys/bus.h
343
int bus_child_location_str(device_t child, char *buf, size_t buflen);
sys/sys/bus.h
358
int device_delete_child(device_t dev, device_t child);
sys/sys/bus.h
389
int device_probe_child(device_t dev, device_t child);
sys/sys/bus.h
390
int device_probe_child_gpri(device_t dev, device_t child, u_int gpri);
sys/sys/ptrace.h
81
void proc_reparent (struct proc *child, struct proc *newparent);
sys/sys/systm.h
399
typedef void (*forklist_fn) (struct proc *parent, struct proc *child,
sys/sys/tree.h
587
struct type *child, *parent, *old; \
sys/sys/tree.h
598
child = RB_RIGHT(elm, field); \
sys/sys/tree.h
600
child = RB_LEFT(elm, field); \
sys/sys/tree.h
606
child = RB_RIGHT(elm, field); \
sys/sys/tree.h
609
if (child) \
sys/sys/tree.h
610
RB_PARENT(child, field) = parent; \
sys/sys/tree.h
613
RB_LEFT(parent, field) = child; \
sys/sys/tree.h
615
RB_RIGHT(parent, field) = child; \
sys/sys/tree.h
618
RB_ROOT(head) = child; \
sys/sys/tree.h
643
if (child) \
sys/sys/tree.h
644
RB_PARENT(child, field) = parent; \
sys/sys/tree.h
647
RB_LEFT(parent, field) = child; \
sys/sys/tree.h
649
RB_RIGHT(parent, field) = child; \
sys/sys/tree.h
652
RB_ROOT(head) = child; \
sys/sys/tree.h
655
name##_RB_REMOVE_COLOR(head, parent, child); \
sys/vfs/autofs/autofs.c
252
struct autofs_node *child;
sys/vfs/autofs/autofs.c
255
RB_FOREACH(child, autofs_node_tree, &anp->an_children)
sys/vfs/autofs/autofs.c
256
autofs_node_uncache(child);
sys/vfs/autofs/autofs_vnops.c
200
struct autofs_node *child = NULL;
sys/vfs/autofs/autofs_vnops.c
224
error = autofs_node_find(anp, ncp->nc_name, ncp->nc_nlen, &child);
sys/vfs/autofs/autofs_vnops.c
232
error = autofs_node_vn(child, dvp->v_mount, LK_EXCLUSIVE, &vp);
sys/vfs/autofs/autofs_vnops.c
253
struct autofs_node *child = NULL;
sys/vfs/autofs/autofs_vnops.c
264
error = autofs_node_new(anp, amp, ncp->nc_name, ncp->nc_nlen, &child);
sys/vfs/autofs/autofs_vnops.c
268
error = autofs_node_vn(child, dvp->v_mount, LK_EXCLUSIVE, &vp);
sys/vfs/autofs/autofs_vnops.c
303
struct autofs_node *child;
sys/vfs/autofs/autofs_vnops.c
366
RB_FOREACH(child, autofs_node_tree, &anp->an_children) {
sys/vfs/autofs/autofs_vnops.c
372
reclens += autofs_dirent_reclen(child->an_name);
sys/vfs/autofs/autofs_vnops.c
384
error = autofs_write_dirent(uio, child->an_name, child->an_ino);
sys/vfs/autofs/autofs_vnops.c
385
reclens += autofs_dirent_reclen(child->an_name);
sys/vfs/fuse/fuse_abi.h
771
uint64_t child;
sys/vfs/hammer/hammer_btree.c
2305
hammer_node_t child;
sys/vfs/hammer/hammer_btree.c
2311
child = hammer_get_node(trans, elm->internal.subtree_offset,
sys/vfs/hammer/hammer_btree.c
2314
hammer_modify_node_field(trans, child, parent);
sys/vfs/hammer/hammer_btree.c
2315
child->ondisk->parent = node->node_offset;
sys/vfs/hammer/hammer_btree.c
2316
hammer_modify_node_done(child);
sys/vfs/hammer/hammer_btree.c
2317
hammer_rel_node(child);
sys/vfs/hammer/hammer_btree.c
2409
hammer_node_t child;
sys/vfs/hammer/hammer_btree.c
2430
child = hammer_get_node(cursor->trans,
sys/vfs/hammer/hammer_btree.c
2433
if (child)
sys/vfs/hammer/hammer_btree.c
2434
hammer_rel_node(child);
sys/vfs/hammer/hammer_btree.c
2445
child = hammer_get_node(cursor->trans,
sys/vfs/hammer/hammer_btree.c
2448
if (child) {
sys/vfs/hammer/hammer_btree.c
2449
if (hammer_lock_ex_try(&child->lock) != 0) {
sys/vfs/hammer/hammer_btree.c
2451
cursor->deadlk_node = child;
sys/vfs/hammer/hammer_btree.c
2455
hammer_rel_node(child);
sys/vfs/hammer/hammer_btree.c
2471
item->node = child;
sys/vfs/hammer/hammer_btree.c
2473
item->count = child->ondisk->count;
sys/vfs/hammer2/hammer2_chain.c
1926
static int hammer2_chain_find_cmp(hammer2_chain_t *child, void *data);
sys/vfs/hammer2/hammer2_chain.c
1927
static int hammer2_chain_find_callback(hammer2_chain_t *child, void *data);
sys/vfs/hammer2/hammer2_chain.c
1955
hammer2_chain_find_cmp(hammer2_chain_t *child, void *data)
sys/vfs/hammer2/hammer2_chain.c
1961
child_beg = child->bref.key;
sys/vfs/hammer2/hammer2_chain.c
1962
child_end = child_beg + ((hammer2_key_t)1 << child->bref.keybits) - 1;
sys/vfs/hammer2/hammer2_chain.c
1973
hammer2_chain_find_callback(hammer2_chain_t *child, void *data)
sys/vfs/hammer2/hammer2_chain.c
1983
info->best = child;
sys/vfs/hammer2/hammer2_chain.c
1985
child->bref.key <= info->key_beg) {
sys/vfs/hammer2/hammer2_chain.c
1991
} else if (child->bref.key < best->bref.key) {
sys/vfs/hammer2/hammer2_chain.c
1996
info->best = child;
sys/vfs/hammer2/hammer2_chain.c
1999
} else if (child->bref.key == best->bref.key) {
sys/vfs/hammer2/hammer2_chain.c
2008
info->best = child;
sys/vfs/hammer2/hammer2_chain.c
2018
if (info->key_next > child->bref.key || info->key_next == 0)
sys/vfs/hammer2/hammer2_chain.c
2019
info->key_next = child->bref.key;
sys/vfs/hammer2/hammer2_chain.c
2025
child_end = child->bref.key + ((hammer2_key_t)1 << child->bref.keybits);
sys/vfs/hammer2/hammer2_flush.c
1164
hammer2_flush_recurse(hammer2_chain_t *child, void *data)
sys/vfs/hammer2/hammer2_flush.c
1171
if (child->flags & HAMMER2_CHAIN_MODIFIED)
sys/vfs/hammer2/hammer2_flush.c
1173
if (child->flags & HAMMER2_CHAIN_UPDATE)
sys/vfs/hammer2/hammer2_flush.c
1175
if (child->flags & HAMMER2_CHAIN_ONFLUSH)
sys/vfs/hammer2/hammer2_flush.c
1192
hammer2_chain_ref(child);
sys/vfs/hammer2/hammer2_flush.c
1197
hammer2_chain_lock(child, HAMMER2_RESOLVE_MAYBE);
sys/vfs/hammer2/hammer2_flush.c
1198
if (child->parent != parent) {
sys/vfs/hammer2/hammer2_flush.c
1200
parent, child, child->parent);
sys/vfs/hammer2/hammer2_flush.c
1203
if (child->error) {
sys/vfs/hammer2/hammer2_flush.c
1205
parent, child);
sys/vfs/hammer2/hammer2_flush.c
1206
info->error |= child->error;
sys/vfs/hammer2/hammer2_flush.c
1217
atomic_set_int(&child->flags, HAMMER2_CHAIN_DESTROY);
sys/vfs/hammer2/hammer2_flush.c
1219
if (child->flags & HAMMER2_CHAIN_DESTROY)
sys/vfs/hammer2/hammer2_flush.c
1234
(child->flags & HAMMER2_CHAIN_DESTROY) == 0 &&
sys/vfs/hammer2/hammer2_flush.c
1237
if ((child->bref.key & HAMMER2_DIRHASH_VISIBLE) == 0) {
sys/vfs/hammer2/hammer2_flush.c
1238
if (child->flags & HAMMER2_CHAIN_FLUSH_MASK) {
sys/vfs/hammer2/hammer2_flush.c
1249
if (child->flags & HAMMER2_CHAIN_FLUSH_MASK) {
sys/vfs/hammer2/hammer2_flush.c
1251
if (child->bref.type < 7)
sys/vfs/hammer2/hammer2_flush.c
1252
++info->scan_btype[child->bref.type];
sys/vfs/hammer2/hammer2_flush.c
1255
hammer2_flush_core(info, child, info->flags);
sys/vfs/hammer2/hammer2_flush.c
1263
hammer2_chain_unlock(child);
sys/vfs/hammer2/hammer2_flush.c
1268
parent, child);
sys/vfs/hammer2/hammer2_flush.c
1271
hammer2_chain_drop(child);
sys/vfs/hammer2/hammer2_flush.c
85
static int hammer2_flush_recurse(hammer2_chain_t *child, void *data);
test/illumos/oclo/oclo.c
1306
pid_t child = fork();
test/illumos/oclo/oclo.c
1307
if (child == 0) {
test/illumos/oclo/oclo.c
1319
if (waitid(P_PID, child, &cret, WEXITED) < 0) {
test/illumos/oclo/oclo.c
133
oclo_flags_match(const clo_rtdata_t *rt, bool child)
test/illumos/oclo/oclo.c
135
const char *pass = child ? "post-fork" : "pre-fork";
test/illumos/oclo/oclo.c
136
bool fail = child && (rt->crt_flags & FD_CLOFORK) != 0;
test/stress/t_mlockall.c
36
child();
tools/regression/p1003_1b/fifo.c
128
if ((child = fork()) == 0)
tools/regression/p1003_1b/fifo.c
167
if (*p == child) {
tools/regression/p1003_1b/fifo.c
189
if (sched_setscheduler(child, SCHED_RR, &fifo_param) == -1 ||
tools/regression/p1003_1b/fifo.c
214
if (*p == child) {
tools/regression/p1003_1b/fifo.c
65
static pid_t child;
tools/regression/p1003_1b/fifo.c
68
if (child)
tools/regression/p1003_1b/fifo.c
69
kill(child, SIGHUP);
tools/regression/priv/test.c
106
waitpid(child, NULL, 0);
tools/regression/priv/test.c
118
int child = fork();
tools/regression/priv/test.c
120
if (child == -1) {
tools/regression/priv/test.c
125
if (child) {
tools/regression/priv/test.c
149
waitpid(child, NULL, 0);
tools/regression/priv/test.c
52
int child = fork();
tools/regression/priv/test.c
54
if (child == -1) {
tools/regression/priv/test.c
59
if (child) {
tools/regression/priv/test.c
75
waitpid(child, NULL, 0);
tools/regression/priv/test.c
87
int child = fork();
tools/regression/priv/test.c
89
if (child == -1) {
tools/regression/priv/test.c
94
if (child) {
usr.bin/lockf/lockf.c
129
if ((child = fork()) == -1)
usr.bin/lockf/lockf.c
132
if (child == 0) { /* The child process. */
usr.bin/lockf/lockf.c
145
if (waitpid(child, &status, 0) == -1)
usr.bin/lockf/lockf.c
63
pid_t child;
usr.bin/mail/popen.c
276
static struct child *
usr.bin/mail/popen.c
279
struct child **cpp;
usr.bin/mail/popen.c
281
for (cpp = &child; *cpp != NULL && (*cpp)->pid != pid;
usr.bin/mail/popen.c
285
*cpp = malloc(sizeof(struct child));
usr.bin/mail/popen.c
296
delchild(struct child *cp)
usr.bin/mail/popen.c
298
struct child **cpp;
usr.bin/mail/popen.c
300
for (cpp = &child; *cpp != cp; cpp = &(*cpp)->link)
usr.bin/mail/popen.c
312
struct child *cp;
usr.bin/mail/popen.c
334
struct child *cp = findchild(pid);
usr.bin/mail/popen.c
355
struct child *cp = findchild(pid);
usr.bin/mail/popen.c
55
struct child *link;
usr.bin/mail/popen.c
57
static struct child *child;
usr.bin/mail/popen.c
58
static struct child *findchild(int);
usr.bin/mail/popen.c
59
static void delchild(struct child *);
usr.bin/script/script.c
189
child = fork();
usr.bin/script/script.c
190
if (child < 0) {
usr.bin/script/script.c
194
if (child == 0)
usr.bin/script/script.c
277
if (waitpid(child, &status, 0) == child) {
usr.bin/script/script.c
66
static int child;
usr.sbin/autofs/automountd.c
116
const struct node *child;
usr.sbin/autofs/automountd.c
131
TAILQ_FOREACH(child, &node->n_children, n_next) {
usr.sbin/autofs/automountd.c
132
if (strcmp(child->n_key, "*") == 0) {
usr.sbin/autofs/automountd.c
149
TAILQ_FOREACH(child, &node->n_children, n_next)
usr.sbin/autofs/automountd.c
150
create_subtree(child, incomplete);
usr.sbin/autofs/common.c
228
const struct node *child;
usr.sbin/autofs/common.c
237
TAILQ_FOREACH(child, &o->n_children, n_next)
usr.sbin/autofs/common.c
238
node_duplicate(child, n);
usr.sbin/autofs/common.c
246
struct node *child, *tmp;
usr.sbin/autofs/common.c
250
TAILQ_FOREACH_SAFE(child, &n->n_children, n_next, tmp)
usr.sbin/autofs/common.c
251
node_delete(child);
usr.sbin/autofs/common.c
386
struct node *child;
usr.sbin/autofs/common.c
400
TAILQ_FOREACH(child, &n->n_children, n_next)
usr.sbin/autofs/common.c
401
node_expand_ampersand(child, key);
usr.sbin/autofs/common.c
410
struct node *child, *expanded;
usr.sbin/autofs/common.c
420
TAILQ_FOREACH(child, &n->n_children, n_next)
usr.sbin/autofs/common.c
421
node_expand_wildcard(child, key);
usr.sbin/autofs/common.c
427
struct node *child;
usr.sbin/autofs/common.c
439
TAILQ_FOREACH(child, &n->n_children, n_next) {
usr.sbin/autofs/common.c
440
error = node_expand_defined(child);
usr.sbin/autofs/common.c
477
const struct node *child;
usr.sbin/autofs/common.c
479
TAILQ_FOREACH(child, &n->n_children, n_next) {
usr.sbin/autofs/common.c
480
if (strcmp(child->n_key, "*") == 0)
usr.sbin/autofs/common.c
490
struct node *child, *tmp;
usr.sbin/autofs/common.c
492
TAILQ_FOREACH_SAFE(child, &n->n_children, n_next, tmp) {
usr.sbin/autofs/common.c
493
if (node_is_direct_map(child)) {
usr.sbin/autofs/common.c
505
if (child->n_map == NULL)
usr.sbin/autofs/common.c
510
child->n_map);
usr.sbin/autofs/common.c
513
child->n_map);
usr.sbin/autofs/common.c
515
parse_map(child, child->n_map, NULL, NULL);
usr.sbin/autofs/common.c
607
const struct node *child, *first_child;
usr.sbin/autofs/common.c
643
TAILQ_FOREACH(child, &n->n_children, n_next)
usr.sbin/autofs/common.c
644
node_print_indent(child, cmdline_options, indent + 2);
usr.sbin/autofs/common.c
655
const struct node *child;
usr.sbin/autofs/common.c
657
TAILQ_FOREACH(child, &n->n_children, n_next)
usr.sbin/autofs/common.c
658
node_print_indent(child, cmdline_options, 0);
usr.sbin/autofs/common.c
664
struct node *child, *found;
usr.sbin/autofs/common.c
688
TAILQ_FOREACH(child, &node->n_children, n_next) {
usr.sbin/autofs/common.c
689
found = node_find_x(child, path);
usr.sbin/lpr/lpd/printjob.c
789
if ((child = dofork(pp, DORETURN)) == 0) { /* child */
usr.sbin/lpr/lpd/printjob.c
806
if (child < 0)
usr.sbin/lpr/lpd/printjob.c
809
while ((wpid = wait(&wstatus)) > 0 && wpid != child)
usr.sbin/lpr/lpd/printjob.c
821
child = 0;
usr.sbin/lpr/lpd/printjob.c
83
static int child; /* id of any filters */
usr.sbin/makefs/cd9660.c
1404
if (iterator->child != NULL) {
usr.sbin/makefs/cd9660.c
1406
iterator->child, this_node,
usr.sbin/makefs/cd9660.c
1419
assert(iterator->child == NULL);
usr.sbin/makefs/cd9660.c
1768
cd9660node *child;
usr.sbin/makefs/cd9660.c
1797
TAILQ_FOREACH(child, &node->cn_children, cn_next_child) {
usr.sbin/makefs/cd9660.c
1799
cd9660_compute_record_size(diskStructure, child);
usr.sbin/makefs/cd9660.c
1800
if ((cd9660_compute_record_size(diskStructure, child) +
usr.sbin/makefs/cd9660.c
1808
cd9660_compute_record_size(diskStructure, child);
usr.sbin/makefs/cd9660.c
1820
for (child = TAILQ_NEXT(node->dot_dot_record, cn_next_child);
usr.sbin/makefs/cd9660.c
1821
child != NULL; child = TAILQ_NEXT(child, cn_next_child)) {
usr.sbin/makefs/cd9660.c
1823
if (S_ISDIR(child->node->type)) {
usr.sbin/makefs/cd9660.c
1824
r = cd9660_compute_offsets(diskStructure, child,
usr.sbin/makefs/cd9660.c
1838
for (child = TAILQ_NEXT(node->dot_dot_record, cn_next_child);
usr.sbin/makefs/cd9660.c
1839
child != NULL;
usr.sbin/makefs/cd9660.c
1840
child = TAILQ_NEXT(child, cn_next_child)) {
usr.sbin/makefs/cd9660.c
1842
if (S_ISDIR(child->node->type))
usr.sbin/makefs/cd9660.c
1844
child->fileRecordSize =
usr.sbin/makefs/cd9660.c
1845
cd9660_compute_record_size(diskStructure, child);
usr.sbin/makefs/cd9660.c
1847
child->fileSectorsUsed =
usr.sbin/makefs/cd9660.c
1849
child->fileDataLength);
usr.sbin/makefs/cd9660.c
1851
inode = child->node->inode;
usr.sbin/makefs/cd9660.c
1857
used_bytes += child->fileSectorsUsed *
usr.sbin/makefs/cd9660.c
1864
child->fileDataSector = inode->ino;
usr.sbin/makefs/cd9660.c
1865
cd9660_bothendian_dword(child->fileDataSector,
usr.sbin/makefs/cd9660.c
1866
child->isoDirRecord->extent);
usr.sbin/makefs/ffs.c
691
ffs_size_dir(node->child, fsopts);
usr.sbin/makefs/ffs.c
848
} else if (cur->child != NULL)
usr.sbin/makefs/ffs.c
877
if (cur->child != NULL)
usr.sbin/makefs/ffs.c
915
if (cur->child == NULL)
usr.sbin/makefs/ffs.c
920
if (! ffs_populate_dir(path, cur->child, fsopts))
usr.sbin/makefs/hammer2.c
1067
assert(!root->child);
usr.sbin/makefs/hammer2.c
1068
assert(!root->parent || root->parent->child == root);
usr.sbin/makefs/hammer2.c
1124
assert(cur->child);
usr.sbin/makefs/hammer2.c
1135
error = hammer2_populate_dir(vp, path, cur->child, cur,
usr.sbin/makefs/hammer2.c
1146
assert(cur->child == NULL);
usr.sbin/makefs/hammer2.c
1167
assert(cur->child == NULL);
usr.sbin/makefs/hammer2.c
1184
assert(cur->child == NULL);
usr.sbin/makefs/hammer2.c
1201
assert(cur->child == NULL);
usr.sbin/makefs/hammer2.c
997
hammer2_size_dir(node->child, fsopts);
usr.sbin/makefs/hammer2/hammer2_chain.c
1932
static int hammer2_chain_find_cmp(hammer2_chain_t *child, void *data);
usr.sbin/makefs/hammer2/hammer2_chain.c
1933
static int hammer2_chain_find_callback(hammer2_chain_t *child, void *data);
usr.sbin/makefs/hammer2/hammer2_chain.c
1961
hammer2_chain_find_cmp(hammer2_chain_t *child, void *data)
usr.sbin/makefs/hammer2/hammer2_chain.c
1967
child_beg = child->bref.key;
usr.sbin/makefs/hammer2/hammer2_chain.c
1968
child_end = child_beg + ((hammer2_key_t)1 << child->bref.keybits) - 1;
usr.sbin/makefs/hammer2/hammer2_chain.c
1979
hammer2_chain_find_callback(hammer2_chain_t *child, void *data)
usr.sbin/makefs/hammer2/hammer2_chain.c
1989
info->best = child;
usr.sbin/makefs/hammer2/hammer2_chain.c
1991
child->bref.key <= info->key_beg) {
usr.sbin/makefs/hammer2/hammer2_chain.c
1997
} else if (child->bref.key < best->bref.key) {
usr.sbin/makefs/hammer2/hammer2_chain.c
2002
info->best = child;
usr.sbin/makefs/hammer2/hammer2_chain.c
2005
} else if (child->bref.key == best->bref.key) {
usr.sbin/makefs/hammer2/hammer2_chain.c
2014
info->best = child;
usr.sbin/makefs/hammer2/hammer2_chain.c
2024
if (info->key_next > child->bref.key || info->key_next == 0)
usr.sbin/makefs/hammer2/hammer2_chain.c
2025
info->key_next = child->bref.key;
usr.sbin/makefs/hammer2/hammer2_chain.c
2031
child_end = child->bref.key + ((hammer2_key_t)1 << child->bref.keybits);
usr.sbin/makefs/hammer2/hammer2_flush.c
1168
hammer2_flush_recurse(hammer2_chain_t *child, void *data)
usr.sbin/makefs/hammer2/hammer2_flush.c
1175
if (child->flags & HAMMER2_CHAIN_MODIFIED)
usr.sbin/makefs/hammer2/hammer2_flush.c
1177
if (child->flags & HAMMER2_CHAIN_UPDATE)
usr.sbin/makefs/hammer2/hammer2_flush.c
1179
if (child->flags & HAMMER2_CHAIN_ONFLUSH)
usr.sbin/makefs/hammer2/hammer2_flush.c
1196
hammer2_chain_ref(child);
usr.sbin/makefs/hammer2/hammer2_flush.c
1201
hammer2_chain_lock(child, HAMMER2_RESOLVE_MAYBE);
usr.sbin/makefs/hammer2/hammer2_flush.c
1202
if (child->parent != parent) {
usr.sbin/makefs/hammer2/hammer2_flush.c
1204
parent, child, child->parent);
usr.sbin/makefs/hammer2/hammer2_flush.c
1207
if (child->error) {
usr.sbin/makefs/hammer2/hammer2_flush.c
1209
parent, child);
usr.sbin/makefs/hammer2/hammer2_flush.c
1210
info->error |= child->error;
usr.sbin/makefs/hammer2/hammer2_flush.c
1221
atomic_set_int(&child->flags, HAMMER2_CHAIN_DESTROY);
usr.sbin/makefs/hammer2/hammer2_flush.c
1223
if (child->flags & HAMMER2_CHAIN_DESTROY)
usr.sbin/makefs/hammer2/hammer2_flush.c
1238
(child->flags & HAMMER2_CHAIN_DESTROY) == 0 &&
usr.sbin/makefs/hammer2/hammer2_flush.c
1241
if ((child->bref.key & HAMMER2_DIRHASH_VISIBLE) == 0) {
usr.sbin/makefs/hammer2/hammer2_flush.c
1242
if (child->flags & HAMMER2_CHAIN_FLUSH_MASK) {
usr.sbin/makefs/hammer2/hammer2_flush.c
1253
if (child->flags & HAMMER2_CHAIN_FLUSH_MASK) {
usr.sbin/makefs/hammer2/hammer2_flush.c
1255
if (child->bref.type < 7)
usr.sbin/makefs/hammer2/hammer2_flush.c
1256
++info->scan_btype[child->bref.type];
usr.sbin/makefs/hammer2/hammer2_flush.c
1259
hammer2_flush_core(info, child, info->flags);
usr.sbin/makefs/hammer2/hammer2_flush.c
1267
hammer2_chain_unlock(child);
usr.sbin/makefs/hammer2/hammer2_flush.c
1272
parent, child);
usr.sbin/makefs/hammer2/hammer2_flush.c
1275
hammer2_chain_drop(child);
usr.sbin/makefs/hammer2/hammer2_flush.c
89
static int hammer2_flush_recurse(hammer2_chain_t *child, void *data);
usr.sbin/makefs/makefs.h
93
struct _fsnode *child; /* child (if type == S_IFDIR) */
usr.sbin/makefs/msdos.c
247
if (cur->child) {
usr.sbin/makefs/msdos.c
253
if (msdos_populate_dir(pbuf, de, cur->child, cur,
usr.sbin/makefs/mtree.c
914
node = node->child;
usr.sbin/makefs/mtree.c
957
parent->child = node;
usr.sbin/makefs/walk.c
154
path, cur->child);
usr.sbin/makefs/walk.c
155
cur->child = walk_dir(root, rp, cur,
usr.sbin/makefs/walk.c
156
cur->child);
usr.sbin/makefs/walk.c
182
cur->child = walk_dir(root, rp, cur, NULL);
usr.sbin/makefs/walk.c
269
assert(node->parent->child == node);
usr.sbin/makefs/walk.c
287
if (cur->child) {
usr.sbin/makefs/walk.c
288
cur->child->parent = NULL;
usr.sbin/makefs/walk.c
289
free_fsnodes(cur->child);
usr.sbin/makefs/walk.c
374
for (curnode = specnode->child; curnode != NULL;
usr.sbin/makefs/walk.c
389
for (curnode = specnode->child; curnode != NULL;
usr.sbin/makefs/walk.c
455
curfsnode->child = create_fsnode(".", ".", ".",
usr.sbin/makefs/walk.c
457
curfsnode->child->parent = curfsnode;
usr.sbin/makefs/walk.c
458
curfsnode->child->first = curfsnode->child;
usr.sbin/makefs/walk.c
470
assert (curfsnode->child != NULL);
usr.sbin/makefs/walk.c
471
apply_specdir(path, curnode, curfsnode->child, speconly);
usr.sbin/makefs/walk.c
589
if (cur->child) {
usr.sbin/makefs/walk.c
591
dump_fsnodes(cur->child);
usr.sbin/mtree/mtree.h
43
struct _node *parent, *child; /* up, down */
usr.sbin/mtree/spec.c
189
cur = cur->child;
usr.sbin/mtree/spec.c
266
free_nodes(cur->child);
usr.sbin/mtree/spec.c
407
if (cur->child)
usr.sbin/mtree/spec.c
408
dump_nodes(fp, path, cur->child, pathlast);
usr.sbin/mtree/spec.c
487
free_nodes(cur->child);
usr.sbin/mtree/spec.c
488
cur->child = NULL;
usr.sbin/mtree/spec.c
722
cur = pathparent->child;
usr.sbin/mtree/spec.c
725
pathparent->child = centry;
usr.sbin/mtree/spec.c
796
pathparent->child = centry->next;
usr.sbin/mtree/spec.c
807
pathparent->child->prev = centry;
usr.sbin/mtree/spec.c
808
centry->next = pathparent->child;
usr.sbin/mtree/spec.c
810
pathparent->child = centry;
usr.sbin/mtree/specspec.c
195
c1 = t1->child;
usr.sbin/mtree/specspec.c
199
c2 = t2->child;
usr.sbin/mtree/verify.c
122
if (ep->child) {
usr.sbin/mtree/verify.c
123
level = ep->child;
usr.sbin/mtree/verify.c
267
miss(p->child, tp + 1);
usr.sbin/pfctl/pfctl_qstats.c
220
struct pf_altq_node *node, *child;
usr.sbin/pfctl/pfctl_qstats.c
227
child = pfctl_find_altq_node(node->children, qname,
usr.sbin/pfctl/pfctl_qstats.c
229
if (child != NULL)
usr.sbin/pfctl/pfctl_qstats.c
230
return (child);
usr.sbin/pfctl/pfctl_qstats.c
240
const struct pf_altq_node *child;
usr.sbin/pfctl/pfctl_qstats.c
249
for (child = node->children; child != NULL;
usr.sbin/pfctl/pfctl_qstats.c
250
child = child->next) {
usr.sbin/pfctl/pfctl_qstats.c
251
printf("%s", child->altq.qname);
usr.sbin/pfctl/pfctl_qstats.c
252
if (child->next != NULL)
usr.sbin/pfctl/pfctl_qstats.c
267
for (child = node->children; child != NULL;
usr.sbin/pfctl/pfctl_qstats.c
268
child = child->next)
usr.sbin/pfctl/pfctl_qstats.c
269
pfctl_print_altq_node(dev, child, level + 1, opts);
usr.sbin/ppp/chap.c
263
if (chap->child.fd != -1) {
usr.sbin/ppp/chap.c
281
switch ((chap->child.pid = fork())) {
usr.sbin/ppp/chap.c
288
chap->child.pid = 0;
usr.sbin/ppp/chap.c
328
chap->child.fd = out[0];
usr.sbin/ppp/chap.c
329
chap->child.buf.len = 0;
usr.sbin/ppp/chap.c
344
if (chap->child.pid) {
usr.sbin/ppp/chap.c
347
close(chap->child.fd);
usr.sbin/ppp/chap.c
348
chap->child.fd = -1;
usr.sbin/ppp/chap.c
350
kill(chap->child.pid, SIGTERM);
usr.sbin/ppp/chap.c
351
chap->child.pid = 0;
usr.sbin/ppp/chap.c
352
chap->child.buf.len = 0;
usr.sbin/ppp/chap.c
401
if (r && chap && chap->child.fd != -1) {
usr.sbin/ppp/chap.c
402
FD_SET(chap->child.fd, r);
usr.sbin/ppp/chap.c
403
if (*n < chap->child.fd + 1)
usr.sbin/ppp/chap.c
404
*n = chap->child.fd + 1;
usr.sbin/ppp/chap.c
405
log_Printf(LogTIMER, "Chap: fdset(r) %d\n", chap->child.fd);
usr.sbin/ppp/chap.c
417
return chap && chap->child.fd != -1 && FD_ISSET(chap->child.fd, fdset);
usr.sbin/ppp/chap.c
427
got = read(chap->child.fd, chap->child.buf.ptr + chap->child.buf.len,
usr.sbin/ppp/chap.c
428
sizeof chap->child.buf.ptr - chap->child.buf.len - 1);
usr.sbin/ppp/chap.c
438
chap->child.buf.len += got;
usr.sbin/ppp/chap.c
439
chap->child.buf.ptr[chap->child.buf.len] = '\0';
usr.sbin/ppp/chap.c
440
name = chap->child.buf.ptr;
usr.sbin/ppp/chap.c
448
if (chap->child.buf.len == sizeof chap->child.buf.ptr - 1) {
usr.sbin/ppp/chap.c
671
chap->child.pid = 0;
usr.sbin/ppp/chap.c
672
chap->child.fd = -1;
usr.sbin/ppp/chap.h
48
} child;
usr.sbin/uefisign/uefisign.c
404
return (child(inpath, outpath, pipefds[1], Vflag, vflag));
usr.sbin/uefisign/uefisign.h
83
int child(const char *inpath, const char *outpath, int pipefd,