cddl/usr.sbin/zfsd/case_file.cc
1121
Vdev child = *children_it;
cddl/usr.sbin/zfsd/case_file.cc
1124
if (child.GUID() == VdevGUID())
cddl/usr.sbin/zfsd/case_file.cc
1130
if (replacing.DoesNotExist() || child.IsResilvering()
cddl/usr.sbin/zfsd/case_file.cc
1131
|| child.State() == VDEV_STATE_HEALTHY)
cddl/usr.sbin/zfsd/case_file.cc
1132
replacing = child;
cddl/usr.sbin/zfsd/vdev.cc
256
Vdev child = *children_it;
cddl/usr.sbin/zfsd/vdev.cc
258
if (child.GUID() == GUID())
cddl/usr.sbin/zfsd/vdev.cc
260
to_examine.push_front(child);
crypto/heimdal/appl/gssmask/gssmaestro.c
56
pid_t child;
crypto/heimdal/appl/gssmask/gssmaestro.c
683
c->child = fork();
crypto/heimdal/appl/gssmask/gssmaestro.c
684
if (c->child == -1)
crypto/heimdal/appl/gssmask/gssmaestro.c
686
else if (c->child == 0) {
crypto/heimdal/appl/gssmask/gssmaestro.c
955
waitpid(clients[i]->child, NULL, 0);
crypto/heimdal/kdc/connect.c
549
struct descr *d, int parent, int child)
crypto/heimdal/kdc/connect.c
553
if (child == -1)
crypto/heimdal/kdc/connect.c
556
d[child].sock_len = sizeof(d[child].__ss);
crypto/heimdal/kdc/connect.c
557
s = accept(d[parent].s, d[child].sa, &d[child].sock_len);
crypto/heimdal/kdc/connect.c
571
d[child].s = s;
crypto/heimdal/kdc/connect.c
572
d[child].timeout = time(NULL) + TCP_TIMEOUT;
crypto/heimdal/kdc/connect.c
573
d[child].type = SOCK_STREAM;
crypto/heimdal/kdc/connect.c
575
d[child].sa, d[child].sock_len,
crypto/heimdal/kdc/connect.c
576
d[child].addr_string, sizeof(d[child].addr_string));
crypto/heimdal/kdc/krb5tgs.c
302
AuthorizationData child;
crypto/heimdal/kdc/krb5tgs.c
309
&child,
crypto/heimdal/kdc/krb5tgs.c
316
for (j = 0; j < child.len; j++) {
crypto/heimdal/kdc/krb5tgs.c
318
if (child.val[j].ad_type == KRB5_AUTHDATA_WIN2K_PAC) {
crypto/heimdal/kdc/krb5tgs.c
324
child.val[j].ad_data.data,
crypto/heimdal/kdc/krb5tgs.c
325
child.val[j].ad_data.length,
crypto/heimdal/kdc/krb5tgs.c
327
free_AuthorizationData(&child);
crypto/heimdal/kdc/krb5tgs.c
364
free_AuthorizationData(&child);
crypto/heimdal/kdc/krb5tgs.c
64
AuthorizationData child;
crypto/heimdal/kdc/krb5tgs.c
78
&child,
crypto/heimdal/kdc/krb5tgs.c
86
if (child.len != 1) {
crypto/heimdal/kdc/krb5tgs.c
87
free_AuthorizationData(&child);
crypto/heimdal/kdc/krb5tgs.c
91
if (child.val[0].ad_type != KRB5_AUTHDATA_SIGNTICKET) {
crypto/heimdal/kdc/krb5tgs.c
92
free_AuthorizationData(&child);
crypto/heimdal/kdc/krb5tgs.c
97
ret = der_copy_octet_string(&child.val[0].ad_data, data);
crypto/heimdal/kdc/krb5tgs.c
98
free_AuthorizationData(&child);
crypto/heimdal/lib/kadm5/password_quality.c
144
pid_t child;
crypto/heimdal/lib/kadm5/password_quality.c
171
child = pipe_execv(&in, &out, &error, program, program, p, NULL);
crypto/heimdal/lib/kadm5/password_quality.c
172
if (child < 0) {
crypto/heimdal/lib/kadm5/password_quality.c
200
wait_for_process(child);
crypto/heimdal/lib/kadm5/password_quality.c
208
status = wait_for_process(child);
crypto/heimdal/lib/krb5/ticket.c
227
AuthorizationData child;
crypto/heimdal/lib/krb5/ticket.c
230
&child,
crypto/heimdal/lib/krb5/ticket.c
240
sessionkey, &child, level + 1);
crypto/heimdal/lib/krb5/ticket.c
241
free_AuthorizationData(&child);
crypto/heimdal/lib/krb5/ticket.c
248
AD_KDCIssued child;
crypto/heimdal/lib/krb5/ticket.c
252
&child,
crypto/heimdal/lib/krb5/ticket.c
267
&child.elements, &len, ret);
crypto/heimdal/lib/krb5/ticket.c
269
free_AD_KDCIssued(&child);
crypto/heimdal/lib/krb5/ticket.c
277
&child.ad_checksum, &valid);
crypto/heimdal/lib/krb5/ticket.c
280
free_AD_KDCIssued(&child);
crypto/heimdal/lib/krb5/ticket.c
286
free_AD_KDCIssued(&child);
crypto/heimdal/lib/krb5/ticket.c
291
&child.elements, level + 1);
crypto/heimdal/lib/krb5/ticket.c
292
free_AD_KDCIssued(&child);
crypto/krb5/src/util/profile/prof_tree.c
52
struct profile_node *child, *next;
crypto/krb5/src/util/profile/prof_tree.c
62
for (child=node->first_child; child; child = next) {
crypto/krb5/src/util/profile/prof_tree.c
63
next = child->next;
crypto/krb5/src/util/profile/prof_tree.c
64
profile_free_node(child);
crypto/krb5/src/util/ss/help.c
24
int fd, child;
crypto/krb5/src/util/ss/help.c
71
switch (child = fork()) {
crypto/krb5/src/util/ss/help.c
81
while (wait(NULL) != child) {
crypto/krb5/src/util/verto/ev.h
477
struct ev_child child;
crypto/krb5/src/util/verto/verto-k5ev.c
171
ev_child *child;
crypto/krb5/src/util/verto/verto-k5ev.c
189
setuptype(child, libev_callback, verto_get_proc(ev), 0);
crypto/krb5/src/util/verto/verto-libev.c
137
ev_child *child;
crypto/krb5/src/util/verto/verto-libev.c
155
setuptype(child, libev_callback, verto_get_proc(ev), 0);
crypto/krb5/src/util/verto/verto.c
1024
ev->option.child.status = 0;
crypto/krb5/src/util/verto/verto.c
1033
ev->option.child.status = status;
crypto/krb5/src/util/verto/verto.c
771
doadd(ev, ev->option.child.proc = proc, VERTO_EV_TYPE_CHILD);
crypto/krb5/src/util/verto/verto.c
86
verto_child child;
crypto/krb5/src/util/verto/verto.c
864
return ev->option.child.proc;
crypto/krb5/src/util/verto/verto.c
871
return ev->option.child.status;
crypto/openssh/misc.c
2760
int ac, char **av, FILE **child, u_int flags,
crypto/openssh/misc.c
2780
if (child != NULL)
crypto/openssh/misc.c
2781
*child = NULL;
crypto/openssh/misc.c
2792
if (((flags & SSH_SUBPROCESS_STDOUT_CAPTURE) == 0) != (child == NULL)) {
crypto/openssh/misc.c
2919
if (child != NULL)
crypto/openssh/misc.c
2920
*child = f;
crypto/openssh/openbsd-compat/sys-tree.h
530
struct type *child, *parent, *old = elm; \
crypto/openssh/openbsd-compat/sys-tree.h
533
child = RB_RIGHT(elm, field); \
crypto/openssh/openbsd-compat/sys-tree.h
535
child = RB_LEFT(elm, field); \
crypto/openssh/openbsd-compat/sys-tree.h
541
child = RB_RIGHT(elm, field); \
crypto/openssh/openbsd-compat/sys-tree.h
544
if (child) \
crypto/openssh/openbsd-compat/sys-tree.h
545
RB_PARENT(child, field) = parent; \
crypto/openssh/openbsd-compat/sys-tree.h
548
RB_LEFT(parent, field) = child; \
crypto/openssh/openbsd-compat/sys-tree.h
550
RB_RIGHT(parent, field) = child; \
crypto/openssh/openbsd-compat/sys-tree.h
553
RB_ROOT(head) = child; \
crypto/openssh/openbsd-compat/sys-tree.h
578
if (child) \
crypto/openssh/openbsd-compat/sys-tree.h
579
RB_PARENT(child, field) = parent; \
crypto/openssh/openbsd-compat/sys-tree.h
582
RB_LEFT(parent, field) = child; \
crypto/openssh/openbsd-compat/sys-tree.h
584
RB_RIGHT(parent, field) = child; \
crypto/openssh/openbsd-compat/sys-tree.h
587
RB_ROOT(head) = child; \
crypto/openssh/openbsd-compat/sys-tree.h
590
name##_RB_REMOVE_COLOR(head, parent, child); \
crypto/openssh/sshbuf.c
129
sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent)
crypto/openssh/sshbuf.c
133
if ((r = sshbuf_check_sanity(child)) != 0 ||
crypto/openssh/sshbuf.c
136
if ((child->parent != NULL && child->parent != parent) ||
crypto/openssh/sshbuf.c
137
child == parent)
crypto/openssh/sshbuf.c
139
child->parent = parent;
crypto/openssh/sshbuf.c
140
child->parent->refcount++;
crypto/openssh/sshbuf.h
360
int sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent);
crypto/openssh/sshd.c
1246
child = child_register(config_s[0], *newsock);
crypto/openssh/sshd.c
1247
if ((child->pid = fork()) == 0) {
crypto/openssh/sshd.c
1271
platform_post_fork_parent(child->pid);
crypto/openssh/sshd.c
1272
if (child->pid == -1)
crypto/openssh/sshd.c
1275
debug("Forked child %ld.", (long)child->pid);
crypto/openssh/sshd.c
254
struct early_child *child = NULL;
crypto/openssh/sshd.c
265
child = &(children[i]);
crypto/openssh/sshd.c
268
if (child == NULL) {
crypto/openssh/sshd.c
272
child->pipefd = pipefd;
crypto/openssh/sshd.c
273
child->early = 1;
crypto/openssh/sshd.c
274
if ((child->config = sshbuf_fromb(config)) == NULL)
crypto/openssh/sshd.c
278
addr_sa_to_xaddr(sa, addrlen, &child->addr) == 0)
crypto/openssh/sshd.c
279
child->have_addr = 1;
crypto/openssh/sshd.c
285
xasprintf(&child->id, "connection from %s", raddr);
crypto/openssh/sshd.c
289
xasprintf(&child->id, "connection from %s to %s", raddr, laddr);
crypto/openssh/sshd.c
296
return child;
crypto/openssh/sshd.c
303
child_finish(struct early_child *child)
crypto/openssh/sshd.c
307
if (child->pipefd != -1)
crypto/openssh/sshd.c
308
close(child->pipefd);
crypto/openssh/sshd.c
309
sshbuf_free(child->config);
crypto/openssh/sshd.c
310
sshbuf_free(child->keys);
crypto/openssh/sshd.c
311
free(child->id);
crypto/openssh/sshd.c
312
memset(child, '\0', sizeof(*child));
crypto/openssh/sshd.c
313
child->pipefd = -1;
crypto/openssh/sshd.c
314
child->pid = -1;
crypto/openssh/sshd.c
324
child_close(struct early_child *child, int force_final, int quiet)
crypto/openssh/sshd.c
328
if (child->pipefd != -1) {
crypto/openssh/sshd.c
329
close(child->pipefd);
crypto/openssh/sshd.c
330
child->pipefd = -1;
crypto/openssh/sshd.c
332
if (child->pid == -1 || force_final)
crypto/openssh/sshd.c
333
child_finish(child);
crypto/openssh/sshd.c
360
child_reap(struct early_child *child)
crypto/openssh/sshd.c
366
if (child->config)
crypto/openssh/sshd.c
368
else if (child->keys)
crypto/openssh/sshd.c
370
else if (child->early)
crypto/openssh/sshd.c
376
if (WIFSIGNALED(child->status)) {
crypto/openssh/sshd.c
381
if ((was_crash = signal_is_crash(WTERMSIG(child->status))))
crypto/openssh/sshd.c
384
"signal %d%s", (long)child->pid, child->id,
crypto/openssh/sshd.c
385
WTERMSIG(child->status), child_status);
crypto/openssh/sshd.c
388
} else if (!WIFEXITED(child->status)) {
crypto/openssh/sshd.c
391
"status=0x%x%s", (long)child->pid, child->id, child->status,
crypto/openssh/sshd.c
395
switch (WEXITSTATUS(child->status)) {
crypto/openssh/sshd.c
398
"normally%s", (long)child->pid, child->id,
crypto/openssh/sshd.c
404
"pid = %ld%s", child->id, (long)child->pid,
crypto/openssh/sshd.c
410
(long)child->pid, child->id, child_status);
crypto/openssh/sshd.c
416
(long)child->pid, child->id, child_status);
crypto/openssh/sshd.c
422
(long)child->pid, child->id, child_status);
crypto/openssh/sshd.c
427
"with status %d%s", (long)child->pid, child->id,
crypto/openssh/sshd.c
428
WEXITSTATUS(child->status), child_status);
crypto/openssh/sshd.c
433
if (child->have_addr)
crypto/openssh/sshd.c
434
srclimit_penalise(&child->addr, penalty_type);
crypto/openssh/sshd.c
436
child->pid = -1;
crypto/openssh/sshd.c
437
child->have_status = 0;
crypto/openssh/sshd.c
438
if (child->pipefd == -1)
crypto/openssh/sshd.c
439
child_finish(child);
crypto/openssh/sshd.c
946
struct early_child *child;
crypto/openssl/crypto/x509/v3_addr.c
1123
IPAddressOrRanges *child, int length)
crypto/openssl/crypto/x509/v3_addr.c
1129
if (child == NULL || parent == child)
crypto/openssl/crypto/x509/v3_addr.c
1135
for (c = 0; c < sk_IPAddressOrRange_num(child); c++) {
crypto/openssl/crypto/x509/v3_addr.c
1136
if (!extract_min_max(sk_IPAddressOrRange_value(child, c),
crypto/openssl/crypto/x509/v3_addr.c
1216
IPAddrBlocks *child = NULL;
crypto/openssl/crypto/x509/v3_addr.c
1245
if ((child = sk_IPAddressFamily_dup(ext)) == NULL) {
crypto/openssl/crypto/x509/v3_addr.c
1251
sk_IPAddressFamily_sort(child);
crypto/openssl/crypto/x509/v3_addr.c
1262
for (j = 0; j < sk_IPAddressFamily_num(child); j++) {
crypto/openssl/crypto/x509/v3_addr.c
1263
IPAddressFamily *fc = sk_IPAddressFamily_value(child, j);
crypto/openssl/crypto/x509/v3_addr.c
1278
for (j = 0; j < sk_IPAddressFamily_num(child); j++) {
crypto/openssl/crypto/x509/v3_addr.c
1279
IPAddressFamily *fc = sk_IPAddressFamily_value(child, j);
crypto/openssl/crypto/x509/v3_addr.c
1299
(void)sk_IPAddressFamily_set(child, j, fp);
crypto/openssl/crypto/x509/v3_addr.c
1317
&& sk_IPAddressFamily_find(child, fp) >= 0)
crypto/openssl/crypto/x509/v3_addr.c
1323
sk_IPAddressFamily_free(child);
crypto/openssl/crypto/x509/v3_asid.c
639
static int asid_contains(ASIdOrRanges *parent, ASIdOrRanges *child)
crypto/openssl/crypto/x509/v3_asid.c
644
if (child == NULL || parent == child)
crypto/openssl/crypto/x509/v3_asid.c
650
for (c = 0; c < sk_ASIdOrRange_num(child); c++) {
crypto/openssl/crypto/x509/v3_asid.c
651
if (!extract_min_max(sk_ASIdOrRange_value(child, c), &c_min, &c_max))
lib/libc/stdlib/heapsort.c
114
#define SELECT(par_i, child_i, nmemb, par, child, size, k, count, tmp1, tmp2) { \
lib/libc/stdlib/heapsort.c
116
child = base + child_i * size; \
lib/libc/stdlib/heapsort.c
117
if (child_i < nmemb && COMPAR(child, child + size) < 0) { \
lib/libc/stdlib/heapsort.c
118
child += size; \
lib/libc/stdlib/heapsort.c
122
COPY(par, child, count, size, tmp1, tmp2); \
lib/libc/stdlib/heapsort.c
127
child = base + child_i * size; \
lib/libc/stdlib/heapsort.c
130
COPY(child, k, count, size, tmp1, tmp2); \
lib/libc/stdlib/heapsort.c
133
COPY(child, par, count, size, tmp1, tmp2); \
lib/libc/stdlib/heapsort.c
82
#define CREATE(initval, nmemb, par_i, child_i, par, child, size, count, tmp) { \
lib/libc/stdlib/heapsort.c
85
child = base + child_i * size; \
lib/libc/stdlib/heapsort.c
86
if (child_i < nmemb && COMPAR(child, child + size) < 0) { \
lib/libc/stdlib/heapsort.c
87
child += size; \
lib/libc/stdlib/heapsort.c
91
if (COMPAR(child, par) <= 0) \
lib/libc/stdlib/heapsort.c
93
SWAP(par, child, count, size, tmp); \
lib/libc/tests/stdio/eintr_test.c
108
ATF_REQUIRE(kill(child, SIGHUP) != -1);
lib/libc/tests/stdio/eintr_test.c
62
pid_t child;
lib/libc/tests/stdio/eintr_test.c
78
switch (child = fork()) {
lib/libc/tests/stdlib/libc_exit_test.c
68
child();
lib/libdevinfo/devinfo.c
471
int (* fn)(struct devinfo_dev *child, void *arg),
lib/libdevinfo/devinfo.h
106
int (* fn)(struct devinfo_dev *child, void *arg),
lib/libexecinfo/tests/sigtramp_test.c
57
pid_t child;
lib/libexecinfo/tests/sigtramp_test.c
65
child = fork();
lib/libexecinfo/tests/sigtramp_test.c
66
ATF_REQUIRE(child != -1);
lib/libexecinfo/tests/sigtramp_test.c
68
if (child == 0) {
lib/libiconv_modules/VIQR/citrus_viqr.c
125
mnemonic_list_t child;
lib/libiconv_modules/VIQR/citrus_viqr.c
153
TAILQ_INIT(&m->child);
lib/libiconv_modules/VIQR/citrus_viqr.c
169
m0 = mnemonic_list_find(&m->child, ch);
lib/libiconv_modules/VIQR/citrus_viqr.c
174
TAILQ_INSERT_TAIL(&m->child, m0, entry);
lib/libiconv_modules/VIQR/citrus_viqr.c
178
m0 = mnemonic_list_find(&m->child, ch);
lib/libiconv_modules/VIQR/citrus_viqr.c
183
TAILQ_INSERT_TAIL(&m->child, m0, entry);
lib/libiconv_modules/VIQR/citrus_viqr.c
199
TAILQ_FOREACH_SAFE(m0, &m->child, entry, n)
lib/libiconv_modules/VIQR/citrus_viqr.c
292
m0 = mnemonic_list_find(&m->child, ch);
lib/libiconv_modules/VIQR/citrus_viqr.c
341
m = mnemonic_list_find(&m->child, psenc->ch[0]);
lib/libiconv_modules/VIQR/citrus_viqr.c
346
if (mnemonic_list_find(&m->child, ch) == NULL) {
lib/libthr/tests/atfork_test.c
101
child++;
lib/libthr/tests/atfork_test.c
130
_exit(child != 0 ? 0 : EXIT_NOCHILD);
lib/libthr/tests/atfork_test.c
154
ATF_REQUIRE(child == 0);
lib/libthr/tests/atfork_test.c
216
multi_bump(&child, 1, false);
lib/libthr/tests/atfork_test.c
221
multi_bump(&child, 2, false);
lib/libthr/tests/atfork_test.c
24
static int child;
lib/libthr/tests/atfork_test.c
248
_exit(child != 0 ? 0 : EXIT_NOCHILD);
lib/libthr/tests/atfork_test.c
271
ATF_REQUIRE(child == 0);
lib/libthr/thread/thr_fork.c
123
__elf_phdr_match_addr(phdr_info, af->child)) {
lib/libthr/thread/thr_fork.c
273
if (af->child != NULL)
lib/libthr/thread/thr_fork.c
274
af->child();
lib/libthr/thread/thr_fork.c
82
void (*child)(void))
lib/libthr/thread/thr_fork.c
92
af->child = child;
lib/libthr/thread/thr_private.h
260
void (*child)(void);
lib/libveriexec/exec_script.c
130
pid_t child;
lib/libveriexec/exec_script.c
148
child = fork();
lib/libveriexec/exec_script.c
149
if (child < 0)
lib/libveriexec/exec_script.c
151
if (child == 0) {
lib/libveriexec/exec_script.c
155
c = waitpid(child, &s, 0);
libexec/rtld-elf/tests/common.c
55
pid_t child = atf_utils_fork();
libexec/rtld-elf/tests/common.c
57
if (child == 0) {
libexec/rtld-elf/tests/common.c
64
atf_utils_wait(child, exit_status, expected_out, expected_err);
sbin/fsck_ffs/suj.c
552
ino_clrat(ino_t parent, off_t diroff, ino_t child)
sbin/fsck_ffs/suj.c
566
(uintmax_t)child, (uintmax_t)parent, diroff);
sbin/fsck_ffs/suj.c
579
if (dp->d_ino != child)
sbin/fsck_ffs/suj.c
581
(uintmax_t)child, (uintmax_t)parent, diroff);
sbin/fsck_ffs/suj.c
596
ino_isat(ino_t parent, off_t diroff, ino_t child, int *mode, int *isdot)
sbin/fsck_ffs/suj.c
636
(uintmax_t)child, (uintmax_t)parent, diroff,
sbin/fsck_ffs/suj.c
672
(uintmax_t)child, (uintmax_t)parent, lbn, dpoff);
sbin/fsck_ffs/suj.c
680
if (dp->d_ino == child) {
sbin/fsck_ffs/suj.c
681
if (child == parent)
sbin/fsck_ffs/suj.c
692
(uintmax_t)child, (uintmax_t)dp->d_ino, (uintmax_t)parent);
sbin/fsck_ffs/suj.c
931
ino_remref(ino_t parent, ino_t child, uint64_t diroff, int isdotdot)
sbin/fsck_ffs/suj.c
940
sino = ino_lookup(child, 0);
sbin/fsck_ffs/suj.c
952
ino_decr(child);
sbin/fsck_msdosfs/dir.c
1099
for (lostDir = rootDir->child; lostDir; lostDir = lostDir->next) {
sbin/fsck_msdosfs/dir.c
277
if ((nd = d->child) != NULL) {
sbin/fsck_msdosfs/dir.c
278
d->child = 0;
sbin/fsck_msdosfs/dir.c
807
dirent.next = dir->child;
sbin/fsck_msdosfs/dir.c
988
dir->child = d;
sbin/fsck_msdosfs/dosfs.h
112
*child; /* if this is a directory */
sbin/pfctl/pfctl_qstats.c
256
struct pf_altq_node *node, *child;
sbin/pfctl/pfctl_qstats.c
263
child = pfctl_find_altq_node(node->children, qname,
sbin/pfctl/pfctl_qstats.c
265
if (child != NULL)
sbin/pfctl/pfctl_qstats.c
266
return (child);
sbin/pfctl/pfctl_qstats.c
276
const struct pf_altq_node *child;
sbin/pfctl/pfctl_qstats.c
285
for (child = node->children; child != NULL;
sbin/pfctl/pfctl_qstats.c
286
child = child->next) {
sbin/pfctl/pfctl_qstats.c
287
printf("%s", child->altq.qname);
sbin/pfctl/pfctl_qstats.c
288
if (child->next != NULL)
sbin/pfctl/pfctl_qstats.c
303
for (child = node->children; child != NULL;
sbin/pfctl/pfctl_qstats.c
304
child = child->next)
sbin/pfctl/pfctl_qstats.c
305
pfctl_print_altq_node(dev, child, level + 1, opts);
share/doc/psd/20.ipctut/pipe.c
42
int sockets[2], child;
share/doc/psd/20.ipctut/pipe.c
50
if ((child = fork()) == -1)
share/doc/psd/20.ipctut/pipe.c
52
else if (child) {
share/doc/psd/20.ipctut/socketpair.c
44
int sockets[2], child;
share/doc/psd/20.ipctut/socketpair.c
52
if ((child = fork()) == -1)
share/doc/psd/20.ipctut/socketpair.c
54
else if (child) { /* This is the parent. */
stand/efi/libefi/efipart.c
603
pdinfo_t *child;
stand/efi/libefi/efipart.c
605
for (child = efipart_get_pd(&pdinfo, efipart_testchild, cd);
stand/efi/libefi/efipart.c
606
child != NULL;
stand/efi/libefi/efipart.c
607
child = efipart_get_pd(&pdinfo, efipart_testchild, cd))
stand/efi/libefi/efipart.c
608
efipart_cdinfo_add(child);
stand/ficl/search.c
337
FICL_HASH *parent, *child;
stand/ficl/search.c
341
child = (FICL_HASH *)stackPopPtr(pVM->pStack);
stand/ficl/search.c
344
child->link = parent;
stand/kshim/bsd_kernel.c
211
device_t child;
stand/kshim/bsd_kernel.c
213
TAILQ_FOREACH(child, &dev->dev_children, dev_link) {
stand/kshim/bsd_kernel.c
214
device_probe_and_attach(child);
stand/kshim/bsd_kernel.c
579
bus_generic_print_child(device_t dev, device_t child)
stand/kshim/bsd_kernel.c
608
device_t child;
stand/kshim/bsd_kernel.c
613
TAILQ_FOREACH(child, &parent->dev_children, dev_link) {
stand/kshim/bsd_kernel.c
615
if (child->dev_irq_filter != NULL)
stand/kshim/bsd_kernel.c
616
status = child->dev_irq_filter(child->dev_irq_arg);
stand/kshim/bsd_kernel.c
621
if (child->dev_irq_fn != NULL)
stand/kshim/bsd_kernel.c
622
(child->dev_irq_fn) (child->dev_irq_arg);
stand/kshim/bsd_kernel.c
648
device_t child;
stand/kshim/bsd_kernel.c
654
TAILQ_FOREACH(child, &dev->dev_children, dev_link) {
stand/kshim/bsd_kernel.c
655
if ((error = device_detach(child)) != 0)
stand/kshim/bsd_kernel.c
791
device_t child;
stand/kshim/bsd_kernel.c
796
child = make_device(dev, name);
stand/kshim/bsd_kernel.c
797
if (child == NULL) {
stand/kshim/bsd_kernel.c
805
TAILQ_INSERT_TAIL(&dev->dev_children, child, dev_link);
stand/kshim/bsd_kernel.c
807
return (child);
stand/kshim/bsd_kernel.c
811
device_delete_child(device_t dev, device_t child)
stand/kshim/bsd_kernel.c
817
error = device_detach(child);
stand/kshim/bsd_kernel.c
822
while ((grandchild = TAILQ_FIRST(&child->dev_children))) {
stand/kshim/bsd_kernel.c
823
error = device_delete_child(child, grandchild);
stand/kshim/bsd_kernel.c
830
if (child->dev_class != NULL)
stand/kshim/bsd_kernel.c
831
devclass_delete_device(child->dev_class, child);
stand/kshim/bsd_kernel.c
835
TAILQ_REMOVE(&dev->dev_children, child, dev_link);
stand/kshim/bsd_kernel.c
837
free(child, M_DEVBUF);
stand/kshim/bsd_kernel.c
846
device_t child;
stand/kshim/bsd_kernel.c
849
while ((child = TAILQ_FIRST(&dev->dev_children))) {
stand/kshim/bsd_kernel.c
850
error = device_delete_child(dev, child);
stand/kshim/bsd_kernel.h
389
typedef int bus_child_location_str_t (device_t parent, device_t child, char *buf, size_t buflen);
stand/kshim/bsd_kernel.h
390
typedef int bus_child_pnpinfo_str_t (device_t parent, device_t child, char *buf, size_t buflen);
stand/kshim/bsd_kernel.h
391
typedef int bus_child_location_t (device_t parent, device_t child, struct sbuf *);
stand/kshim/bsd_kernel.h
392
typedef int bus_child_pnpinfo_t (device_t parent, device_t child, struct sbuf *);
stand/kshim/bsd_kernel.h
393
typedef int bus_get_device_path_t (device_t bus, device_t child, const char *locator, struct sbuf *sb);
stand/kshim/bsd_kernel.h
473
int device_delete_child(device_t dev, device_t child);
stand/kshim/bsd_kernel.h
492
int bus_generic_print_child(device_t dev, device_t child);
stand/libofw/openfirm.c
182
cell_t child;
stand/libofw/openfirm.c
189
return (args.child);
sys/amd64/vmm/amd/amdvi_hw.c
853
struct sysctl_oid_list *child;
sys/amd64/vmm/amd/amdvi_hw.c
859
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/amd64/vmm/amd/amdvi_hw.c
861
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "event_intr_count", CTLFLAG_RD,
sys/amd64/vmm/amd/amdvi_hw.c
863
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "command_count", CTLFLAG_RD,
sys/amd64/vmm/amd/amdvi_hw.c
865
SYSCTL_ADD_U16(ctx, child, OID_AUTO, "pci_rid", CTLFLAG_RD,
sys/amd64/vmm/amd/amdvi_hw.c
867
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "command_head",
sys/amd64/vmm/amd/amdvi_hw.c
870
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "command_tail",
sys/amd64/vmm/amd/amdvi_hw.c
873
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "event_head",
sys/amd64/vmm/amd/amdvi_hw.c
876
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "event_tail",
sys/arm/allwinner/aw_mmc.c
1018
aw_mmc_request(device_t bus, device_t child, struct mmc_request *req)
sys/arm/allwinner/aw_mmc.c
1131
aw_mmc_read_ivar(device_t bus, device_t child, int which,
sys/arm/allwinner/aw_mmc.c
1195
aw_mmc_write_ivar(device_t bus, device_t child, int which,
sys/arm/allwinner/aw_mmc.c
1290
aw_mmc_switch_vccq(device_t bus, device_t child)
sys/arm/allwinner/aw_mmc.c
1325
aw_mmc_update_ios(device_t bus, device_t child)
sys/arm/allwinner/aw_mmc.c
1465
aw_mmc_get_ro(device_t bus, device_t child)
sys/arm/allwinner/aw_mmc.c
1475
aw_mmc_acquire_host(device_t bus, device_t child)
sys/arm/allwinner/aw_mmc.c
1496
aw_mmc_release_host(device_t bus, device_t child)
sys/arm/allwinner/aw_mmc.c
176
device_t child;
sys/arm/allwinner/aw_mmc.c
358
if (sc->child == NULL) {
sys/arm/allwinner/aw_mmc.c
362
sc->child = device_add_child(sc->aw_dev, "mmc", DEVICE_UNIT_ANY);
sys/arm/allwinner/aw_mmc.c
363
if (sc->child) {
sys/arm/allwinner/aw_mmc.c
364
device_set_ivars(sc->child, sc);
sys/arm/allwinner/aw_mmc.c
365
(void)device_probe_and_attach(sc->child);
sys/arm/allwinner/aw_mmc.c
370
if (sc->child != NULL) {
sys/arm/allwinner/aw_mmc.c
374
device_delete_child(sc->aw_dev, sc->child);
sys/arm/allwinner/aw_mmc.c
375
sc->child = NULL;
sys/arm/allwinner/axp209.c
1309
phandle_t rnode, child;
sys/arm/allwinner/axp209.c
1359
child = ofw_bus_find_child(rnode,
sys/arm/allwinner/axp209.c
1361
if (child == 0)
sys/arm/allwinner/axp209.c
1363
reg = axp2xx_reg_attach(dev, child, ®defs[i]);
sys/arm/allwinner/axp81x.c
1468
phandle_t rnode, child;
sys/arm/allwinner/axp81x.c
1529
child = ofw_bus_find_child(rnode,
sys/arm/allwinner/axp81x.c
1531
if (child == 0)
sys/arm/allwinner/axp81x.c
1533
reg = axp8xx_reg_attach(dev, child,
sys/arm/annapurna/alpine/alpine_machdep_mp.c
84
alpine_validate_cpu(u_int id, phandle_t child, u_int addr_cell, pcell_t *reg)
sys/arm/annapurna/alpine/alpine_machdep_mp.c
86
return ofw_bus_node_is_compatible(child, "arm,cortex-a15");
sys/arm/annapurna/alpine/alpine_pci_msix.c
237
al_msix_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/arm/annapurna/alpine/alpine_pci_msix.c
292
al_msix_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/arm/annapurna/alpine/alpine_pci_msix.c
353
al_msix_release_msi(device_t dev, device_t child, int count,
sys/arm/annapurna/alpine/alpine_pci_msix.c
378
al_msix_alloc_msix(device_t dev, device_t child, device_t *pic,
sys/arm/annapurna/alpine/alpine_pci_msix.c
382
return (al_msix_alloc_msi(dev, child, 1, 1, pic, isrcp));
sys/arm/annapurna/alpine/alpine_pci_msix.c
386
al_msix_release_msix(device_t dev, device_t child, struct intr_irqsrc *isrc)
sys/arm/annapurna/alpine/alpine_pci_msix.c
389
return (al_msix_release_msi(dev, child, 1, &isrc));
sys/arm/arm/gic.c
1371
arm_gicv2m_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/arm/arm/gic.c
1388
arm_gicv2m_release_msi(device_t dev, device_t child, int count,
sys/arm/arm/gic.c
1395
arm_gicv2m_alloc_msix(device_t dev, device_t child, device_t *pic,
sys/arm/arm/gic.c
1412
arm_gicv2m_release_msix(device_t dev, device_t child, struct intr_irqsrc *isrc)
sys/arm/arm/gic.c
1418
arm_gicv2m_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/arm/arm/gic.c
432
arm_gic_print_child(device_t bus, device_t child)
sys/arm/arm/gic.c
437
rv = bus_print_child_header(bus, child);
sys/arm/arm/gic.c
439
rl = BUS_GET_RESOURCE_LIST(bus, child);
sys/arm/arm/gic.c
446
rv += bus_print_child_footer(bus, child);
sys/arm/arm/gic.c
452
arm_gic_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/arm/arm/gic.c
469
rl = BUS_GET_RESOURCE_LIST(bus, child);
sys/arm/arm/gic.c
505
return (bus_generic_alloc_resource(bus, child, type, rid, start, end,
sys/arm/arm/gic.c
510
arm_gic_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/arm/arm/gic.c
542
arm_gic_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/arm/arm/gic_acpi.c
257
gic_acpi_get_resource_list(device_t bus, device_t child)
sys/arm/arm/gic_acpi.c
261
di = device_get_ivars(child);
sys/arm/arm/gic_fdt.c
200
gic_fdt_get_resource_list(device_t bus, device_t child)
sys/arm/arm/gic_fdt.c
204
di = device_get_ivars(child);
sys/arm/arm/gic_fdt.c
268
phandle_t child, node;
sys/arm/arm/gic_fdt.c
275
child = OF_child(node);
sys/arm/arm/gic_fdt.c
276
if (child == 0)
sys/arm/arm/gic_fdt.c
284
for (; child != 0; child = OF_peer(child)) {
sys/arm/arm/gic_fdt.c
287
if (ofw_bus_gen_setup_devinfo(&dinfo->obdinfo, child) != 0) {
sys/arm/arm/gic_fdt.c
293
ofw_bus_reg_to_rl(dev, child, sc->addr_cells,
sys/arm/arm/gic_fdt.c
312
gic_ofw_get_devinfo(device_t bus __unused, device_t child)
sys/arm/arm/gic_fdt.c
316
di = device_get_ivars(child);
sys/arm/arm/nexus.c
195
nexus_print_child(device_t bus, device_t child)
sys/arm/arm/nexus.c
199
retval += bus_print_child_header(bus, child);
sys/arm/arm/nexus.c
208
device_t child;
sys/arm/arm/nexus.c
216
child = device_add_child_ordered(bus, order, name, unit);
sys/arm/arm/nexus.c
218
device_set_ivars(child, ndev);
sys/arm/arm/nexus.c
220
return (child);
sys/arm/arm/nexus.c
238
nexus_get_bus_tag(device_t bus __unused, device_t child __unused)
sys/arm/arm/nexus.c
249
nexus_get_dma_tag(device_t dev, device_t child)
sys/arm/arm/nexus.c
274
nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags,
sys/arm/arm/nexus.c
281
return (intr_setup_irq(child, res, filt, intr, arg, flags, cookiep));
sys/arm/arm/nexus.c
285
nexus_teardown_intr(device_t dev, device_t child, struct resource *r, void *ih)
sys/arm/arm/nexus.c
288
return (intr_teardown_irq(child, r, ih));
sys/arm/arm/nexus.c
292
nexus_describe_intr(device_t dev, device_t child, struct resource *irq,
sys/arm/arm/nexus.c
296
return (intr_describe_irq(child, irq, cookie, descr));
sys/arm/arm/nexus.c
301
nexus_bind_intr(device_t dev, device_t child, struct resource *irq, int cpu)
sys/arm/arm/nexus.c
304
return (intr_bind_irq(child, irq, cpu));
sys/arm/arm/nexus.c
309
nexus_activate_resource(device_t bus, device_t child, struct resource *r)
sys/arm/arm/nexus.c
316
return (bus_generic_rman_activate_resource(bus, child, r));
sys/arm/arm/nexus.c
321
err = intr_activate_irq(child, r);
sys/arm/arm/nexus.c
333
nexus_map_resource(device_t bus, device_t child, struct resource *r,
sys/arm/arm/nexus.c
376
nexus_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/arm/arm/nexus.c
395
nexus_deactivate_resource(device_t bus, device_t child, struct resource *r)
sys/arm/arm/nexus.c
402
return (bus_generic_rman_deactivate_resource(bus, child, r));
sys/arm/arm/nexus.c
407
intr_deactivate_irq(child, r);
sys/arm/arm/nexus.c
416
nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells,
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
394
bcm_sdhci_update_ios(device_t bus, device_t child)
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
410
rv = sdhci_generic_update_ios(bus, child);
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
425
bcm_sdhci_get_ro(device_t bus, device_t child)
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
646
bcm_sdhost_get_ro(device_t bus, device_t child)
sys/arm/broadcom/bcm2835/bcm2835_spi.c
403
bcm_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/arm/broadcom/bcm2835/bcm2835_spi.c
418
spibus_get_cs(child, &cs);
sys/arm/broadcom/bcm2835/bcm2835_spi.c
422
device_get_nameunit(child));
sys/arm/broadcom/bcm2835/bcm2835_spi.c
426
spibus_get_clock(child, &clock);
sys/arm/broadcom/bcm2835/bcm2835_spi.c
430
device_get_nameunit(child));
sys/arm/broadcom/bcm2835/bcm2835_spi.c
434
spibus_get_mode(child, &mode);
sys/arm/broadcom/bcm2835/bcm2835_spi.c
438
device_get_nameunit(child));
sys/arm/broadcom/bcm2835/bcm2838_pci.c
157
bcm_pcib_get_dma_tag(device_t dev, device_t child)
sys/arm/broadcom/bcm2835/bcm2838_pci.c
422
bcm_pcib_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/arm/broadcom/bcm2835/bcm2838_pci.c
462
bcm_pcib_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/arm/broadcom/bcm2835/bcm2838_pci.c
477
bcm_pcib_release_msi(device_t dev, device_t child, int count,
sys/arm/freescale/fsl_ocotp.c
69
phandle_t child, root;
sys/arm/freescale/fsl_ocotp.c
74
if ((child = fdt_depth_search_compatible(root, "fsl,imx6q-ocotp", 0)) == 0)
sys/arm/freescale/fsl_ocotp.c
76
if (fdt_regsize(child, &base, &size) != 0)
sys/arm/freescale/imx/imx_spi.c
408
spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/arm/freescale/imx/imx_spi.c
414
spibus_get_cs(child, &cs);
sys/arm/freescale/imx/imx_spi.c
415
spibus_get_clock(child, &clock);
sys/arm/freescale/imx/imx_spi.c
416
spibus_get_mode(child, &mode);
sys/arm/freescale/vybrid/vf_ccm.c
397
phandle_t child, parent, root;
sys/arm/freescale/vybrid/vf_ccm.c
406
for (child = OF_child(parent); child != 0; child = OF_peer(child)) {
sys/arm/freescale/vybrid/vf_ccm.c
408
while (OF_child(child)) {
sys/arm/freescale/vybrid/vf_ccm.c
409
parent = child;
sys/arm/freescale/vybrid/vf_ccm.c
410
child = OF_child(child);
sys/arm/freescale/vybrid/vf_ccm.c
413
if (!ofw_bus_node_status_okay(child))
sys/arm/freescale/vybrid/vf_ccm.c
416
if ((len = OF_getproplen(child, "clock_names")) > 0) {
sys/arm/freescale/vybrid/vf_ccm.c
417
len = OF_getproplen(child, "clock_names");
sys/arm/freescale/vybrid/vf_ccm.c
418
OF_getprop_alloc(child, "clock_names",
sys/arm/freescale/vybrid/vf_ccm.c
429
if (OF_peer(child) == 0) {
sys/arm/freescale/vybrid/vf_ccm.c
431
child = parent;
sys/arm/freescale/vybrid/vf_ccm.c
432
parent = OF_parent(child);
sys/arm/freescale/vybrid/vf_iomuxc.c
125
phandle_t child, parent, root;
sys/arm/freescale/vybrid/vf_iomuxc.c
138
for (child = OF_child(parent); child != 0; child = OF_peer(child)) {
sys/arm/freescale/vybrid/vf_iomuxc.c
140
while (OF_child(child)) {
sys/arm/freescale/vybrid/vf_iomuxc.c
141
parent = child;
sys/arm/freescale/vybrid/vf_iomuxc.c
142
child = OF_child(child);
sys/arm/freescale/vybrid/vf_iomuxc.c
145
if (!ofw_bus_node_status_okay(child))
sys/arm/freescale/vybrid/vf_iomuxc.c
148
if ((len = OF_getproplen(child, "iomux_config")) > 0) {
sys/arm/freescale/vybrid/vf_iomuxc.c
149
OF_getencprop(child, "iomux_config", iomux_config, len);
sys/arm/freescale/vybrid/vf_iomuxc.c
163
if (OF_peer(child) == 0) {
sys/arm/freescale/vybrid/vf_iomuxc.c
165
child = parent;
sys/arm/freescale/vybrid/vf_iomuxc.c
166
parent = OF_parent(child);
sys/arm/freescale/vybrid/vf_spi.c
248
spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/arm/freescale/vybrid/vf_spi.c
261
spibus_get_cs(child, &cs);
sys/arm/mv/a37x0_spi.c
368
a37x0_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/arm/mv/a37x0_spi.c
380
spibus_get_cs(child, &cs);
sys/arm/mv/a37x0_spi.c
385
device_get_nameunit(child));
sys/arm/mv/a37x0_spi.c
388
spibus_get_clock(child, &clock);
sys/arm/mv/a37x0_spi.c
392
device_get_nameunit(child));
sys/arm/mv/a37x0_spi.c
395
spibus_get_mode(child, &mode);
sys/arm/mv/a37x0_spi.c
399
device_get_nameunit(child));
sys/arm/mv/armada38x/armada38x_mp.c
76
phandle_t cpus_node, child;
sys/arm/mv/armada38x/armada38x_mp.c
91
for (child = OF_child(cpus_node); child != 0; child = OF_peer(child)) {
sys/arm/mv/armada38x/armada38x_mp.c
94
rv = OF_getprop(child, "device_type", device_type,
sys/arm/mv/mv_ap806_gicp.c
338
mv_ap806_gicp_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/arm/mv/mv_ap806_gicp.c
378
mv_ap806_gicp_release_msi(dev, child, i + 1, srcs);
sys/arm/mv/mv_ap806_gicp.c
383
mv_ap806_gicp_release_msi(device_t dev, device_t child, int count,
sys/arm/mv/mv_ap806_gicp.c
401
mv_ap806_gicp_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/arm/mv/mv_ap806_sei.c
409
mv_ap806_sei_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/arm/mv/mv_ap806_sei.c
439
mv_ap806_sei_release_msi(dev, child, i + 1, srcs);
sys/arm/mv/mv_ap806_sei.c
444
mv_ap806_sei_release_msi(device_t dev, device_t child, int count, struct intr_irqsrc **srcs)
sys/arm/mv/mv_ap806_sei.c
461
mv_ap806_sei_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/arm/mv/mv_armv7_machdep.c
398
phandle_t root, child;
sys/arm/mv/mv_armv7_machdep.c
426
for (child = OF_child(root); child != 0; child = OF_peer(child)) {
sys/arm/mv/mv_armv7_machdep.c
427
if (mv_fdt_is_type(child, "pci") ||
sys/arm/mv/mv_armv7_machdep.c
428
mv_fdt_is_type(child, "pciep")) {
sys/arm/mv/mv_armv7_machdep.c
436
if (mv_pci_devmap(child, &fdt_devmap[i], MV_PCI_VA_IO_BASE,
sys/arm/mv/mv_common.c
1804
fdt_win_process(phandle_t child)
sys/arm/mv/mv_common.c
1810
if (ofw_bus_node_status_okay(child) == 0)
sys/arm/mv/mv_common.c
1813
if (!ofw_bus_node_is_compatible(child, soc_nodes[i].compat))
sys/arm/mv/mv_common.c
1816
ret = fdt_win_process_child(child, &soc_nodes[i], "reg");
sys/arm/mv/mv_common.c
1825
fdt_win_process_child(phandle_t child, struct soc_node_spec *soc_node,
sys/arm/mv/mv_common.c
1832
if (fdt_addrsize_cells(OF_parent(child), &addr_cells,
sys/arm/mv/mv_common.c
1838
if (OF_getprop(child, mimo_reg_source, ®, sizeof(reg)) <= 0)
sys/arm/mv/mv_common.c
1866
phandle_t node, child, sb;
sys/arm/mv/mv_common.c
1883
child = OF_child(node);
sys/arm/mv/mv_common.c
1884
while (child != 0) {
sys/arm/mv/mv_common.c
1886
err = fdt_win_process(child);
sys/arm/mv/mv_common.c
1891
if (ofw_bus_node_is_compatible(child, "marvell,armada-370-pcie")) {
sys/arm/mv/mv_common.c
1892
child_pci = OF_child(child);
sys/arm/mv/mv_common.c
1908
child = OF_peer(child);
sys/arm/mv/mv_common.c
1909
if ((child == 0) && (node == OF_finddevice("/"))) {
sys/arm/mv/mv_common.c
1913
child = OF_child(node);
sys/arm/mv/mv_common.c
1920
if ((child == 0) && (node == sb)) {
sys/arm/mv/mv_common.c
1924
child = OF_child(node);
sys/arm/mv/mv_pci.c
1000
return (pci_domain_deactivate_bus(sc->ap_segment, child, r));
sys/arm/mv/mv_pci.c
1002
return (bus_generic_deactivate_resource(dev, child, r));
sys/arm/mv/mv_pci.c
1007
mv_pcib_map_resource(device_t dev, device_t child, struct resource *r,
sys/arm/mv/mv_pci.c
1039
mv_pcib_unmap_resource(device_t dev, device_t child, struct resource *r,
sys/arm/mv/mv_pci.c
1052
mv_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/arm/mv/mv_pci.c
1069
mv_pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/arm/mv/mv_pci.c
1300
mv_pcib_map_msi(device_t dev, device_t child, int irq, uint64_t *addr,
sys/arm/mv/mv_pci.c
1326
mv_pcib_alloc_msi(device_t dev, device_t child, int count,
sys/arm/mv/mv_pci.c
1366
mv_pcib_release_msi(device_t dev, device_t child, int count, int *irqs)
sys/arm/mv/mv_pci.c
908
mv_pcib_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/arm/mv/mv_pci.c
918
return (pci_domain_alloc_bus(sc->ap_segment, child, rid, start,
sys/arm/mv/mv_pci.c
935
return (bus_generic_rman_alloc_resource(dev, child, type, rid,
sys/arm/mv/mv_pci.c
940
mv_pcib_adjust_resource(device_t dev, device_t child,
sys/arm/mv/mv_pci.c
948
return (bus_generic_rman_adjust_resource(dev, child, r, start,
sys/arm/mv/mv_pci.c
951
return (pci_domain_adjust_bus(sc->ap_segment, child, r, start,
sys/arm/mv/mv_pci.c
954
return (bus_generic_adjust_resource(dev, child, r, start, end));
sys/arm/mv/mv_pci.c
959
mv_pcib_release_resource(device_t dev, device_t child, struct resource *res)
sys/arm/mv/mv_pci.c
966
return (bus_generic_rman_release_resource(dev, child, res));
sys/arm/mv/mv_pci.c
968
return (pci_domain_release_bus(sc->ap_segment, child, res));
sys/arm/mv/mv_pci.c
970
return (bus_generic_release_resource(dev, child, res));
sys/arm/mv/mv_pci.c
975
mv_pcib_activate_resource(device_t dev, device_t child, struct resource *r)
sys/arm/mv/mv_pci.c
982
return (bus_generic_rman_activate_resource(dev, child, r));
sys/arm/mv/mv_pci.c
984
return (pci_domain_activate_bus(sc->ap_segment, child, r));
sys/arm/mv/mv_pci.c
986
return (bus_generic_activate_resource(dev, child, r));
sys/arm/mv/mv_pci.c
991
mv_pcib_deactivate_resource(device_t dev, device_t child, struct resource *r)
sys/arm/mv/mv_pci.c
998
return (bus_generic_rman_deactivate_resource(dev, child, r));
sys/arm/mv/mv_pci_ctrl.c
161
device_t child;
sys/arm/mv/mv_pci_ctrl.c
189
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/arm/mv/mv_pci_ctrl.c
190
if (child == NULL) {
sys/arm/mv/mv_pci_ctrl.c
205
get_rl(child, node, sc->addr_cells,
sys/arm/mv/mv_pci_ctrl.c
208
device_set_ivars(child, di);
sys/arm/mv/mv_pci_ctrl.c
239
mv_pcib_ctrl_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/arm/mv/mv_pci_ctrl.c
248
if ((di = device_get_ivars(child)) == NULL)
sys/arm/mv/mv_pci_ctrl.c
285
return (bus_generic_alloc_resource(bus, child, type, rid, start, end,
sys/arm/mv/mv_pci_ctrl.c
339
mv_pcib_ctrl_get_devinfo(device_t bus __unused, device_t child)
sys/arm/mv/mv_pci_ctrl.c
343
di = device_get_ivars(child);
sys/arm/mv/mv_spi.c
276
mv_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/arm/mv/mv_spi.c
288
spibus_get_cs(child, &cs);
sys/arm/mv/mv_spi.c
290
spibus_get_mode(child, &mode);
sys/arm/mv/mv_spi.c
294
device_get_nameunit(child));
sys/arm/mv/mv_spi.c
297
spibus_get_clock(child, &clock);
sys/arm/mv/mv_spi.c
301
device_get_nameunit(child));
sys/arm/nvidia/as3722_regulators.c
602
phandle_t child, rnode;
sys/arm/nvidia/as3722_regulators.c
617
child = ofw_bus_find_child(rnode, as3722s_def[i].name);
sys/arm/nvidia/as3722_regulators.c
618
if (child == 0) {
sys/arm/nvidia/as3722_regulators.c
625
reg = as3722_attach(sc, child, as3722s_def + i);
sys/arm/nvidia/tegra_pcie.c
1057
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/arm/nvidia/tegra_pcie.c
1058
port = tegra_pcib_parse_port(sc, child);
sys/arm/nvidia/tegra_pcie.c
535
tegra_pcib_alloc_msi(device_t pci, device_t child, int count, int maxcount,
sys/arm/nvidia/tegra_pcie.c
545
return (intr_alloc_msi(pci, child, msi_parent, count, maxcount,
sys/arm/nvidia/tegra_pcie.c
550
tegra_pcib_release_msi(device_t pci, device_t child, int count, int *irqs)
sys/arm/nvidia/tegra_pcie.c
559
return (intr_release_msi(pci, child, msi_parent, count, irqs));
sys/arm/nvidia/tegra_pcie.c
563
tegra_pcib_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
sys/arm/nvidia/tegra_pcie.c
573
return (intr_map_msi(pci, child, msi_parent, irq, addr, data));
sys/arm/nvidia/tegra_pcie.c
740
tegra_pcib_msi_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/arm/nvidia/tegra_pcie.c
795
tegra_pcib_msi_release_msi(device_t dev, device_t child, int count,
sys/arm/nvidia/tegra_pcie.c
818
tegra_pcib_msi_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/arm/nvidia/tegra_pcie.c
993
phandle_t child;
sys/arm/ti/am335x/am335x_lcd_syscons.c
349
phandle_t child;
sys/arm/ti/am335x/am335x_lcd_syscons.c
352
for (child = OF_child(start); child != 0; child = OF_peer(child)) {
sys/arm/ti/am335x/am335x_lcd_syscons.c
353
if (ofw_bus_node_is_compatible(child, "ti,am335x-lcd"))
sys/arm/ti/am335x/am335x_lcd_syscons.c
354
return (child);
sys/arm/ti/am335x/am335x_lcd_syscons.c
355
if ((result = am335x_syscons_find_panel_node(child)))
sys/arm/ti/am335x/am335x_scm.c
82
device_t child;
sys/arm/ti/am335x/am335x_scm.c
92
child = device_add_child(parent, "am335x_scm", DEVICE_UNIT_ANY);
sys/arm/ti/am335x/am335x_scm.c
93
if (child == NULL)
sys/arm/ti/cpsw/if_cpsw.c
739
phandle_t child;
sys/arm/ti/cpsw/if_cpsw.c
745
for (child = OF_child(sc->node); child != 0; child = OF_peer(child)) {
sys/arm/ti/cpsw/if_cpsw.c
746
if (OF_getprop_alloc(child, "name", (void **)&name) < 0)
sys/arm/ti/cpsw/if_cpsw.c
758
if (fdt_get_phyaddr(child, NULL, &phy, NULL) != 0){
sys/arm/ti/cpsw/if_cpsw.c
761
len = OF_getproplen(child, "phy_id");
sys/arm/ti/cpsw/if_cpsw.c
764
if (OF_getencprop(child, "phy_id", phy_id, len) > 0)
sys/arm/ti/cpsw/if_cpsw.c
769
len = OF_getproplen(child, "dual_emac_res_vlan");
sys/arm/ti/cpsw/if_cpsw.c
772
if (OF_getencprop(child, "dual_emac_res_vlan",
sys/arm/ti/ti_adc.c
750
phandle_t node, child;
sys/arm/ti/ti_adc.c
766
child = ofw_bus_find_child(node, "tsc");
sys/arm/ti/ti_adc.c
767
if (child != 0 && OF_hasprop(child, "ti,wires")) {
sys/arm/ti/ti_adc.c
768
if ((OF_getencprop(child, "ti,wires", &cell, sizeof(cell))) > 0)
sys/arm/ti/ti_adc.c
770
if ((OF_getencprop(child, "ti,coordinate-readouts", &cell,
sys/arm/ti/ti_adc.c
773
if ((OF_getencprop(child, "ti,x-plate-resistance", &cell,
sys/arm/ti/ti_adc.c
776
if ((OF_getencprop(child, "ti,charge-delay", &cell,
sys/arm/ti/ti_adc.c
779
nwire_configs = OF_getencprop_alloc_multi(child,
sys/arm/ti/ti_adc.c
796
child = ofw_bus_find_child(node, "adc");
sys/arm/ti/ti_adc.c
797
if (child != 0) {
sys/arm/ti/ti_adc.c
798
sc->sc_adc_nchannels = OF_getencprop_alloc_multi(child,
sys/arm/ti/ti_omap4_cm.c
112
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/arm/ti/ti_omap4_cm.c
113
cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/arm/ti/ti_omap4_cm.c
98
phandle_t node, child;
sys/arm/ti/ti_prcm.c
138
phandle_t node, child;
sys/arm/ti/ti_prcm.c
186
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/arm/ti/ti_prcm.c
187
simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/arm/ti/ti_scm.c
112
phandle_t node, child;
sys/arm/ti/ti_scm.c
124
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/arm/ti/ti_scm.c
125
cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/arm/ti/ti_scm_syscon.c
162
phandle_t node, child;
sys/arm/ti/ti_scm_syscon.c
189
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/arm/ti/ti_scm_syscon.c
190
simplebus_add_device(sc->dev, child, 0, NULL, -1, NULL);
sys/arm/ti/ti_spi.c
429
ti_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/arm/ti/ti_spi.c
443
spibus_get_cs(child, &cs);
sys/arm/ti/ti_spi.c
444
spibus_get_clock(child, &clockhz);
sys/arm/ti/ti_spi.c
445
spibus_get_mode(child, &mode);
sys/arm/ti/ti_spi.c
451
cs, device_get_nameunit(child));
sys/arm/ti/ti_spi.c
458
device_get_nameunit(child));
sys/arm/ti/ti_sysc.c
429
phandle_t node, child;
sys/arm/ti/ti_sysc.c
434
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/arm/ti/ti_sysc.c
435
cdev = simplebus_add_device(sc->dev, child, 0, NULL, -1, NULL);
sys/arm/xilinx/zy7_qspi.c
493
struct sysctl_oid_list *child;
sys/arm/xilinx/zy7_qspi.c
496
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/arm/xilinx/zy7_qspi.c
498
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "spi_clk_real_freq", CTLFLAG_RD,
sys/arm/xilinx/zy7_qspi.c
501
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_overflows", CTLFLAG_RD,
sys/arm/xilinx/zy7_qspi.c
504
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_underflows", CTLFLAG_RD,
sys/arm/xilinx/zy7_qspi.c
507
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "interrupts", CTLFLAG_RD,
sys/arm/xilinx/zy7_qspi.c
510
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "stray_ints", CTLFLAG_RD,
sys/arm/xilinx/zy7_qspi.c
601
sc->child = device_add_child(dev, "spibus", DEVICE_UNIT_ANY);
sys/arm/xilinx/zy7_qspi.c
657
zy7_qspi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/arm/xilinx/zy7_qspi.c
70
device_t child;
sys/arm/xilinx/zy7_spi.c
337
struct sysctl_oid_list *child;
sys/arm/xilinx/zy7_spi.c
340
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/arm/xilinx/zy7_spi.c
342
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "spi_clk_real_freq", CTLFLAG_RD,
sys/arm/xilinx/zy7_spi.c
345
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_overflows", CTLFLAG_RD,
sys/arm/xilinx/zy7_spi.c
348
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_underflows", CTLFLAG_RD,
sys/arm/xilinx/zy7_spi.c
351
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "interrupts", CTLFLAG_RD,
sys/arm/xilinx/zy7_spi.c
354
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "stray_ints", CTLFLAG_RD,
sys/arm/xilinx/zy7_spi.c
437
sc->child = device_add_child(dev, "spibus", DEVICE_UNIT_ANY);
sys/arm/xilinx/zy7_spi.c
493
zy7_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/arm/xilinx/zy7_spi.c
506
spibus_get_cs(child, &cs);
sys/arm/xilinx/zy7_spi.c
510
cs, device_get_nameunit(child));
sys/arm/xilinx/zy7_spi.c
513
spibus_get_mode(child, &mode);
sys/arm/xilinx/zy7_spi.c
61
device_t child;
sys/arm64/arm64/cmn600.c
438
struct cmn600_node *xp, *child;
sys/arm64/arm64/cmn600.c
471
child = xp->nd_children[i];
sys/arm64/arm64/cmn600.c
472
if (child->nd_id == node_id && child->nd_type == type) {
sys/arm64/arm64/cmn600.c
473
*node = child;
sys/arm64/arm64/cmn600.c
662
struct sysctl_oid_list *child;
sys/arm64/arm64/cmn600.c
705
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->sc_dev));
sys/arm64/arm64/cmn600.c
706
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "dump_nodes", CTLTYPE_INT |
sys/arm64/arm64/gic_v3.c
1103
device_t child;
sys/arm64/arm64/gic_v3.c
1146
child = sc->gic_children[i];
sys/arm64/arm64/gic_v3.c
1147
PIC_INIT_SECONDARY(child, rootnum);
sys/arm64/arm64/gic_v3.c
1658
gic_v3_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/arm64/arm64/gic_v3.c
1675
gic_v3_release_msi(device_t dev, device_t child, int count,
sys/arm64/arm64/gic_v3.c
1682
gic_v3_alloc_msix(device_t dev, device_t child, device_t *pic,
sys/arm64/arm64/gic_v3.c
1700
gic_v3_release_msix(device_t dev, device_t child, struct intr_irqsrc *isrc)
sys/arm64/arm64/gic_v3.c
1706
gic_v3_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/arm64/arm64/gic_v3.c
455
gic_v3_print_child(device_t bus, device_t child)
sys/arm64/arm64/gic_v3.c
460
rl = BUS_GET_RESOURCE_LIST(bus, child);
sys/arm64/arm64/gic_v3.c
462
retval += bus_print_child_header(bus, child);
sys/arm64/arm64/gic_v3.c
464
retval += bus_print_child_footer(bus, child);
sys/arm64/arm64/gic_v3.c
470
gic_v3_get_domain(device_t dev, device_t child, int *domain)
sys/arm64/arm64/gic_v3.c
474
di = device_get_ivars(child);
sys/arm64/arm64/gic_v3.c
483
gic_v3_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/arm64/arm64/gic_v3.c
520
di = device_get_ivars(child);
sys/arm64/arm64/gic_v3.c
531
gic_v3_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/arm64/arm64/gic_v3.c
546
gic_v3_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/arm64/arm64/gic_v3.c
561
rl = BUS_GET_RESOURCE_LIST(bus, child);
sys/arm64/arm64/gic_v3.c
594
return (bus_generic_alloc_resource(bus, child, type, rid, start, end,
sys/arm64/arm64/gic_v3_acpi.c
394
device_t child, dev;
sys/arm64/arm64/gic_v3_acpi.c
411
child = device_add_child(dev, "its", DEVICE_UNIT_ANY);
sys/arm64/arm64/gic_v3_acpi.c
412
if (child == NULL) {
sys/arm64/arm64/gic_v3_acpi.c
424
device_set_ivars(child, di);
sys/arm64/arm64/gic_v3_acpi.c
434
device_t child;
sys/arm64/arm64/gic_v3_acpi.c
453
child = device_add_child(dev, "vgic", DEVICE_UNIT_ANY);
sys/arm64/arm64/gic_v3_acpi.c
454
if (child == NULL) {
sys/arm64/arm64/gic_v3_acpi.c
461
device_set_ivars(child, di);
sys/arm64/arm64/gic_v3_acpi.c
472
gic_v3_acpi_get_resource_list(device_t bus, device_t child)
sys/arm64/arm64/gic_v3_acpi.c
476
di = device_get_ivars(child);
sys/arm64/arm64/gic_v3_fdt.c
222
gic_v3_ofw_get_devinfo(device_t bus __unused, device_t child)
sys/arm64/arm64/gic_v3_fdt.c
226
di = device_get_ivars(child);
sys/arm64/arm64/gic_v3_fdt.c
301
device_t child;
sys/arm64/arm64/gic_v3_fdt.c
356
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/arm64/arm64/gic_v3_fdt.c
357
if (!child) {
sys/arm64/arm64/gic_v3_fdt.c
370
device_set_ivars(child, di);
sys/arm64/arm64/gic_v3_fdt.c
380
child = device_add_child(dev, "vgic", DEVICE_UNIT_ANY);
sys/arm64/arm64/gic_v3_fdt.c
381
if (child == NULL) {
sys/arm64/arm64/gic_v3_fdt.c
390
device_set_ivars(child, di);
sys/arm64/arm64/gic_v3_fdt.c
400
gic_v3_fdt_get_resource_list(device_t bus, device_t child)
sys/arm64/arm64/gic_v3_fdt.c
404
di = device_get_ivars(child);
sys/arm64/arm64/gicv3_its.c
1031
struct sysctl_oid *oid, *child;
sys/arm64/arm64/gicv3_its.c
1035
child = device_get_sysctl_tree(sc->dev);
sys/arm64/arm64/gicv3_its.c
1037
SYSCTL_CHILDREN(child), OID_AUTO, "tracing",
sys/arm64/arm64/gicv3_its.c
1431
its_device_find(device_t dev, device_t child)
sys/arm64/arm64/gicv3_its.c
1440
if (its_dev->pci_dev == child)
sys/arm64/arm64/gicv3_its.c
1524
its_device_get(device_t dev, device_t child, u_int nvecs)
sys/arm64/arm64/gicv3_its.c
1533
its_dev = its_device_find(dev, child);
sys/arm64/arm64/gicv3_its.c
1541
its_dev->pci_dev = child;
sys/arm64/arm64/gicv3_its.c
1542
its_dev->devid = its_get_devid(child);
sys/arm64/arm64/gicv3_its.c
1669
gicv3_its_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/arm64/arm64/gicv3_its.c
1678
its_dev = its_device_get(dev, child, count);
sys/arm64/arm64/gicv3_its.c
1728
gicv3_its_release_msi(device_t dev, device_t child, int count,
sys/arm64/arm64/gicv3_its.c
1736
its_dev = its_device_find(dev, child);
sys/arm64/arm64/gicv3_its.c
1762
gicv3_its_alloc_msix(device_t dev, device_t child, device_t *pic,
sys/arm64/arm64/gicv3_its.c
1770
nvecs = pci_msix_count(child);
sys/arm64/arm64/gicv3_its.c
1771
its_dev = its_device_get(dev, child, nvecs);
sys/arm64/arm64/gicv3_its.c
1801
gicv3_its_release_msix(device_t dev, device_t child, struct intr_irqsrc *isrc)
sys/arm64/arm64/gicv3_its.c
1807
its_dev = its_device_find(dev, child);
sys/arm64/arm64/gicv3_its.c
1830
gicv3_its_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/arm64/arm64/gicv3_its.c
1847
gicv3_iommu_init(device_t dev, device_t child, struct iommu_domain **domain)
sys/arm64/arm64/gicv3_its.c
1858
ctx = iommu_get_dev_ctx(child);
sys/arm64/arm64/gicv3_its.c
1872
gicv3_iommu_deinit(device_t dev, device_t child)
sys/arm64/arm64/gicv3_its.c
1876
ctx = iommu_get_dev_ctx(child);
sys/arm64/arm64/nexus.c
201
nexus_print_child(device_t bus, device_t child)
sys/arm64/arm64/nexus.c
205
retval += bus_print_child_header(bus, child);
sys/arm64/arm64/nexus.c
214
device_t child;
sys/arm64/arm64/nexus.c
222
child = device_add_child_ordered(bus, order, name, unit);
sys/arm64/arm64/nexus.c
225
device_set_ivars(child, ndev);
sys/arm64/arm64/nexus.c
227
return (child);
sys/arm64/arm64/nexus.c
249
nexus_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/arm64/arm64/nexus.c
252
struct nexus_device *ndev = DEVTONX(child);
sys/arm64/arm64/nexus.c
262
if (device_get_parent(child) != bus || ndev == NULL)
sys/arm64/arm64/nexus.c
272
return (bus_generic_rman_alloc_resource(bus, child, type, rid, start,
sys/arm64/arm64/nexus.c
289
nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags,
sys/arm64/arm64/nexus.c
302
error = intr_setup_irq(child, res, filt, intr, arg, flags, cookiep);
sys/arm64/arm64/nexus.c
308
nexus_teardown_intr(device_t dev, device_t child, struct resource *r, void *ih)
sys/arm64/arm64/nexus.c
311
return (intr_teardown_irq(child, r, ih));
sys/arm64/arm64/nexus.c
315
nexus_describe_intr(device_t dev, device_t child, struct resource *irq,
sys/arm64/arm64/nexus.c
319
return (intr_describe_irq(child, irq, cookie, descr));
sys/arm64/arm64/nexus.c
324
nexus_bind_intr(device_t dev, device_t child, struct resource *irq, int cpu)
sys/arm64/arm64/nexus.c
327
return (intr_bind_irq(child, irq, cpu));
sys/arm64/arm64/nexus.c
332
nexus_get_bus_tag(device_t bus __unused, device_t child __unused)
sys/arm64/arm64/nexus.c
339
nexus_activate_resource_flags(device_t bus, device_t child, struct resource *r,
sys/arm64/arm64/nexus.c
359
resource_int_value(device_get_name(child),
sys/arm64/arm64/nexus.c
360
device_get_unit(child), "force_nonposted",
sys/arm64/arm64/nexus.c
364
err = nexus_map_resource(bus, child, r, &args, &map);
sys/arm64/arm64/nexus.c
374
return (bus_generic_rman_activate_resource(bus, child, r));
sys/arm64/arm64/nexus.c
380
nexus_activate_resource(device_t dev, device_t child, struct resource *r)
sys/arm64/arm64/nexus.c
382
return (nexus_activate_resource_flags(dev, child, r, 0));
sys/arm64/arm64/nexus.c
386
nexus_get_reslist(device_t dev, device_t child)
sys/arm64/arm64/nexus.c
388
struct nexus_device *ndev = DEVTONX(child);
sys/arm64/arm64/nexus.c
394
nexus_map_resource(device_t bus, device_t child, struct resource *r,
sys/arm64/arm64/nexus.c
430
nexus_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/arm64/arm64/nexus.c
492
nexus_fdt_activate_resource(device_t bus, device_t child, struct resource *r)
sys/arm64/arm64/nexus.c
506
node = ofw_bus_get_node(child);
sys/arm64/arm64/nexus.c
519
return (nexus_activate_resource_flags(bus, child, r, flags));
sys/arm64/arm64/nexus.c
523
nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells,
sys/arm64/arm64/nexus.c
541
nexus_fdt_pcib_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/arm64/arm64/nexus.c
547
error = ofw_bus_msimap(ofw_bus_get_node(child), 0, &msi_parent, NULL);
sys/arm64/arm64/nexus.c
551
return (intr_alloc_msi(dev, child, msi_parent, count, maxcount, irqs));
sys/arm64/arm64/nexus.c
555
nexus_fdt_pcib_release_msi(device_t dev, device_t child, int count, int *irqs)
sys/arm64/arm64/nexus.c
560
error = ofw_bus_msimap(ofw_bus_get_node(child), 0, &msi_parent, NULL);
sys/arm64/arm64/nexus.c
564
return (intr_release_msi(dev, child, msi_parent, count, irqs));
sys/arm64/arm64/nexus.c
568
nexus_fdt_pcib_alloc_msix(device_t dev, device_t child, int *irq)
sys/arm64/arm64/nexus.c
573
error = ofw_bus_msimap(ofw_bus_get_node(child), 0, &msi_parent, NULL);
sys/arm64/arm64/nexus.c
577
return (intr_alloc_msix(dev, child, msi_parent, irq));
sys/arm64/arm64/nexus.c
581
nexus_fdt_pcib_release_msix(device_t dev, device_t child, int irq)
sys/arm64/arm64/nexus.c
586
error = ofw_bus_msimap(ofw_bus_get_node(child), 0, &msi_parent, NULL);
sys/arm64/arm64/nexus.c
590
return (intr_release_msix(dev, child, msi_parent, irq));
sys/arm64/arm64/nexus.c
594
nexus_fdt_pcib_map_msi(device_t dev, device_t child, int irq, uint64_t *addr,
sys/arm64/arm64/nexus.c
600
error = ofw_bus_msimap(ofw_bus_get_node(child), 0, &msi_parent, NULL);
sys/arm64/arm64/nexus.c
604
return (intr_map_msi(dev, child, msi_parent, irq, addr, data));
sys/arm64/arm64/nexus.c
609
static int nexus_acpi_map_intr(device_t dev, device_t child, u_int irq, int trig, int pol);
sys/arm64/arm64/nexus.c
650
nexus_acpi_map_intr(device_t dev, device_t child, u_int irq, int trig, int pol)
sys/arm64/broadcom/brcmmdio/mdio_mux_iproc.c
149
brcm_iproc_switch(struct brcm_iproc_mdio_softc *sc, int child)
sys/arm64/broadcom/brcmmdio/mdio_mux_iproc.c
155
bus_dir = (child < EXT_BUS_START_ADDR);
sys/arm64/broadcom/brcmmdio/mdio_mux_iproc.c
156
bus_id = bus_dir ? child : (child - EXT_BUS_START_ADDR);
sys/arm64/broadcom/brcmmdio/mdio_mux_iproc.c
306
device_t child;
sys/arm64/broadcom/brcmmdio/mdio_mux_iproc.c
345
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/arm64/broadcom/brcmmdio/mdio_mux_iproc.c
346
if (child == NULL) {
sys/arm64/broadcom/brcmmdio/mdio_mux_iproc.c
354
device_set_ivars(child, di);
sys/arm64/broadcom/brcmmdio/mdio_mux_iproc.c
374
brcm_iproc_mdio_get_devinfo(device_t bus __unused, device_t child)
sys/arm64/broadcom/brcmmdio/mdio_mux_iproc.c
378
di = device_get_ivars(child);
sys/arm64/broadcom/brcmmdio/mdio_nexus_iproc.c
182
brcm_mdionexus_ofw_get_devinfo(device_t bus __unused, device_t child)
sys/arm64/broadcom/brcmmdio/mdio_nexus_iproc.c
186
di = device_get_ivars(child);
sys/arm64/broadcom/brcmmdio/mdio_nexus_iproc.c
195
device_t child;
sys/arm64/broadcom/brcmmdio/mdio_nexus_iproc.c
219
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/arm64/broadcom/brcmmdio/mdio_nexus_iproc.c
220
if (child == NULL) {
sys/arm64/broadcom/brcmmdio/mdio_nexus_iproc.c
227
device_set_ivars(child, di);
sys/arm64/cavium/thunder_pcie_common.c
172
thunder_pcie_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/arm64/cavium/thunder_pcie_common.c
186
pci_read_bar(child, rid, &map, &testval, NULL);
sys/arm64/cavium/thunder_pcie_common.c
203
return (pci_host_generic_core_alloc_resource(dev, child, type, rid,
sys/arm64/cavium/thunder_pcie_fdt.c
107
thunder_pcie_ofw_get_devinfo(device_t bus __unused, device_t child)
sys/arm64/cavium/thunder_pcie_fdt.c
111
di = device_get_ivars(child);
sys/arm64/cavium/thunder_pcie_fdt.c
132
device_t child;
sys/arm64/cavium/thunder_pcie_fdt.c
155
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/arm64/cavium/thunder_pcie_fdt.c
156
if (child == NULL) {
sys/arm64/cavium/thunder_pcie_fdt.c
163
device_set_ivars(child, di);
sys/arm64/cavium/thunder_pcie_fdt.c
209
thunder_pcie_fdt_get_id(device_t pci, device_t child, enum pci_id_type type,
sys/arm64/cavium/thunder_pcie_fdt.c
216
return (pcib_get_id(pci, child, type, id));
sys/arm64/cavium/thunder_pcie_fdt.c
220
return (generic_pcie_get_id(pci, child, type, id));
sys/arm64/cavium/thunder_pcie_fdt.c
222
bsf = pci_get_rid(child);
sys/arm64/cavium/thunder_pcie_fdt.c
223
*id = (pci_get_domain(child) << PCI_RID_DOMAIN_SHIFT) | bsf;
sys/arm64/cavium/thunder_pcie_fdt.c
230
thunder_pcie_fdt_alloc_resource(device_t dev, device_t child, int type,
sys/arm64/cavium/thunder_pcie_fdt.c
242
if ((int)ofw_bus_get_node(child) <= 0)
sys/arm64/cavium/thunder_pcie_fdt.c
243
return (thunder_pcie_alloc_resource(dev, child, type,
sys/arm64/cavium/thunder_pcie_fdt.c
250
if ((di = device_get_ivars(child)) == NULL)
sys/arm64/cavium/thunder_pcie_fdt.c
286
return (bus_generic_alloc_resource(dev, child, type, rid, start,
sys/arm64/cavium/thunder_pcie_fdt.c
291
thunder_pcie_fdt_release_resource(device_t dev, device_t child,
sys/arm64/cavium/thunder_pcie_fdt.c
295
if ((int)ofw_bus_get_node(child) <= 0)
sys/arm64/cavium/thunder_pcie_fdt.c
296
return (pci_host_generic_core_release_resource(dev, child,
sys/arm64/cavium/thunder_pcie_fdt.c
299
return (bus_generic_release_resource(dev, child, res));
sys/arm64/cavium/thunder_pcie_pem.c
225
thunder_pem_read_ivar(device_t dev, device_t child, int index,
sys/arm64/cavium/thunder_pcie_pem.c
247
thunder_pem_write_ivar(device_t dev, device_t child, int index,
sys/arm64/cavium/thunder_pcie_pem.c
255
thunder_pem_activate_resource(device_t dev, device_t child, struct resource *r)
sys/arm64/cavium/thunder_pcie_pem.c
262
return (pci_domain_activate_bus(sc->id, child, r));
sys/arm64/cavium/thunder_pcie_pem.c
265
return (bus_generic_rman_activate_resource(dev, child, r));
sys/arm64/cavium/thunder_pcie_pem.c
267
return (bus_generic_activate_resource(dev, child, r));
sys/arm64/cavium/thunder_pcie_pem.c
272
thunder_pem_deactivate_resource(device_t dev, device_t child,
sys/arm64/cavium/thunder_pcie_pem.c
280
return (pci_domain_deactivate_bus(sc->id, child, r));
sys/arm64/cavium/thunder_pcie_pem.c
283
return (bus_generic_rman_deactivate_resource(dev, child, r));
sys/arm64/cavium/thunder_pcie_pem.c
285
return (bus_generic_deactivate_resource(dev, child, r));
sys/arm64/cavium/thunder_pcie_pem.c
290
thunder_pem_map_resource(device_t dev, device_t child, struct resource *r,
sys/arm64/cavium/thunder_pcie_pem.c
327
thunder_pem_unmap_resource(device_t dev, device_t child, struct resource *r,
sys/arm64/cavium/thunder_pcie_pem.c
342
thunder_pem_adjust_resource(device_t dev, device_t child, struct resource *res,
sys/arm64/cavium/thunder_pcie_pem.c
350
return (pci_domain_adjust_bus(sc->id, child, res, start, end));
sys/arm64/cavium/thunder_pcie_pem.c
353
return (bus_generic_rman_adjust_resource(dev, child, res, start,
sys/arm64/cavium/thunder_pcie_pem.c
356
return (bus_generic_adjust_resource(dev, child, res, start,
sys/arm64/cavium/thunder_pcie_pem.c
362
thunder_pem_get_dma_tag(device_t dev, device_t child)
sys/arm64/cavium/thunder_pcie_pem.c
371
thunder_pem_alloc_msi(device_t pci, device_t child, int count, int maxcount,
sys/arm64/cavium/thunder_pcie_pem.c
377
return (PCIB_ALLOC_MSI(device_get_parent(bus), child, count, maxcount,
sys/arm64/cavium/thunder_pcie_pem.c
382
thunder_pem_release_msi(device_t pci, device_t child, int count, int *irqs)
sys/arm64/cavium/thunder_pcie_pem.c
387
return (PCIB_RELEASE_MSI(device_get_parent(bus), child, count, irqs));
sys/arm64/cavium/thunder_pcie_pem.c
391
thunder_pem_alloc_msix(device_t pci, device_t child, int *irq)
sys/arm64/cavium/thunder_pcie_pem.c
396
return (PCIB_ALLOC_MSIX(device_get_parent(bus), child, irq));
sys/arm64/cavium/thunder_pcie_pem.c
400
thunder_pem_release_msix(device_t pci, device_t child, int irq)
sys/arm64/cavium/thunder_pcie_pem.c
405
return (PCIB_RELEASE_MSIX(device_get_parent(bus), child, irq));
sys/arm64/cavium/thunder_pcie_pem.c
409
thunder_pem_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
sys/arm64/cavium/thunder_pcie_pem.c
415
return (PCIB_MAP_MSI(device_get_parent(bus), child, irq, addr, data));
sys/arm64/cavium/thunder_pcie_pem.c
419
thunder_pem_get_id(device_t pci, device_t child, enum pci_id_type type,
sys/arm64/cavium/thunder_pcie_pem.c
426
return (pcib_get_id(pci, child, type, id));
sys/arm64/cavium/thunder_pcie_pem.c
428
bsf = pci_get_rid(child);
sys/arm64/cavium/thunder_pcie_pem.c
431
pem = pci_get_domain(child);
sys/arm64/cavium/thunder_pcie_pem.c
654
thunder_pem_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/arm64/cavium/thunder_pcie_pem.c
663
return (pci_domain_alloc_bus(sc->id, child, rid, start, end,
sys/arm64/cavium/thunder_pcie_pem.c
692
res = bus_generic_rman_alloc_resource(dev, child, type, rid, start,
sys/arm64/cavium/thunder_pcie_pem.c
704
thunder_pem_release_resource(device_t dev, device_t child, struct resource *res)
sys/arm64/cavium/thunder_pcie_pem.c
711
return (pci_domain_release_bus(sc->id, child, res));
sys/arm64/cavium/thunder_pcie_pem.c
714
return (bus_generic_rman_release_resource(dev, child, res));
sys/arm64/cavium/thunder_pcie_pem.c
718
return (BUS_RELEASE_RESOURCE(parent_dev, child, res));
sys/arm64/cavium/thunder_pcie_pem_fdt.c
107
thunder_pem_fdt_alloc_msi(device_t pci, device_t child, int count, int maxcount,
sys/arm64/cavium/thunder_pcie_pem_fdt.c
113
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/cavium/thunder_pcie_pem_fdt.c
117
return (intr_alloc_msi(pci, child, msi_parent, count, maxcount,
sys/arm64/cavium/thunder_pcie_pem_fdt.c
122
thunder_pem_fdt_release_msi(device_t pci, device_t child, int count, int *irqs)
sys/arm64/cavium/thunder_pcie_pem_fdt.c
127
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/cavium/thunder_pcie_pem_fdt.c
131
return (intr_release_msi(pci, child, msi_parent, count, irqs));
sys/arm64/cavium/thunder_pcie_pem_fdt.c
135
thunder_pem_fdt_alloc_msix(device_t pci, device_t child, int *irq)
sys/arm64/cavium/thunder_pcie_pem_fdt.c
140
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/cavium/thunder_pcie_pem_fdt.c
144
return (intr_alloc_msix(pci, child, msi_parent, irq));
sys/arm64/cavium/thunder_pcie_pem_fdt.c
148
thunder_pem_fdt_release_msix(device_t pci, device_t child, int irq)
sys/arm64/cavium/thunder_pcie_pem_fdt.c
153
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/cavium/thunder_pcie_pem_fdt.c
157
return (intr_release_msix(pci, child, msi_parent, irq));
sys/arm64/cavium/thunder_pcie_pem_fdt.c
161
thunder_pem_fdt_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
sys/arm64/cavium/thunder_pcie_pem_fdt.c
167
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/cavium/thunder_pcie_pem_fdt.c
171
return (intr_map_msi(pci, child, msi_parent, irq, addr, data));
sys/arm64/cavium/thunder_pcie_pem_fdt.c
175
thunder_pem_fdt_get_id(device_t dev, device_t child, enum pci_id_type type,
sys/arm64/cavium/thunder_pcie_pem_fdt.c
184
return (pcib_get_id(dev, child, type, id));
sys/arm64/cavium/thunder_pcie_pem_fdt.c
187
pci_rid = pci_get_rid(child);
sys/arm64/coresight/coresight_fdt.c
50
phandle_t node, child;
sys/arm64/coresight/coresight_fdt.c
58
child = ofw_bus_find_child(dev_node, "ports");
sys/arm64/coresight/coresight_fdt.c
59
if (child)
sys/arm64/coresight/coresight_fdt.c
60
node = child;
sys/arm64/coresight/coresight_fdt.c
64
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/arm64/coresight/coresight_fdt.c
65
ret = OF_getprop_alloc(child, "name", (void **)&name);
sys/arm64/coresight/coresight_fdt.c
72
OF_getencprop(child, "reg", (void *)&port_reg,
sys/arm64/coresight/coresight_fdt.c
75
endpoint_child = ofw_bus_find_child(child, "endpoint");
sys/arm64/iommu/smmu.c
1611
smmu_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/arm64/iommu/smmu.c
1783
smmu_pci_get_sid(device_t child, uintptr_t *xref0, u_int *sid0)
sys/arm64/iommu/smmu.c
1788
err = pci_get_id(child, PCI_ID_OFW_IOMMU, (uintptr_t *)&pi);
sys/arm64/iommu/smmu.c
1800
smmu_ctx_alloc(device_t dev, struct iommu_domain *iodom, device_t child,
sys/arm64/iommu/smmu.c
1809
ctx->dev = child;
sys/arm64/iommu/smmu.c
1914
smmu_ctx_lookup(device_t dev, device_t child)
sys/arm64/iommu/smmu.c
1932
if (ctx->dev == child) {
sys/arm64/iommu/smmu.c
1944
smmu_find(device_t dev, device_t child)
sys/arm64/iommu/smmu.c
1952
err = smmu_pci_get_sid(child, &xref, NULL);
sys/arm64/nvidia/tegra210/max77620_regulators.c
761
phandle_t child, rnode;
sys/arm64/nvidia/tegra210/max77620_regulators.c
777
child = ofw_bus_find_child(rnode, max77620s_def[i].name);
sys/arm64/nvidia/tegra210/max77620_regulators.c
778
if (child == 0) {
sys/arm64/nvidia/tegra210/max77620_regulators.c
785
if (ofw_bus_node_status_okay(child) == 0)
sys/arm64/nvidia/tegra210/max77620_regulators.c
787
reg = max77620_attach(sc, child, max77620s_def + i);
sys/arm64/nvidia/tegra210/max77620_rtc.c
389
device_t parent, child;
sys/arm64/nvidia/tegra210/max77620_rtc.c
394
child = BUS_ADD_CHILD(parent, 0, NULL, DEVICE_UNIT_ANY);
sys/arm64/nvidia/tegra210/max77620_rtc.c
395
if (child == NULL) {
sys/arm64/nvidia/tegra210/max77620_rtc.c
400
rv = OFW_IICBUS_SET_DEVINFO(parent, child, -1, "rtc@68",
sys/arm64/rockchip/rk_pcie.c
1119
rk_pcie_get_dma_tag(device_t dev, device_t child)
sys/arm64/rockchip/rk_pcie.c
528
rk_pcie_alloc_msi(device_t pci, device_t child, int count,
sys/arm64/rockchip/rk_pcie.c
534
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/rockchip/rk_pcie.c
539
rv = intr_alloc_msi(pci, child, msi_parent, count, maxcount,irqs);
sys/arm64/rockchip/rk_pcie.c
544
rk_pcie_release_msi(device_t pci, device_t child, int count, int *irqs)
sys/arm64/rockchip/rk_pcie.c
549
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/rockchip/rk_pcie.c
553
rv = intr_release_msi(pci, child, msi_parent, count, irqs);
sys/arm64/rockchip/rk_pcie.c
559
rk_pcie_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
sys/arm64/rockchip/rk_pcie.c
565
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/rockchip/rk_pcie.c
569
rv = intr_map_msi(pci, child, msi_parent, irq, addr, data);
sys/arm64/rockchip/rk_pcie.c
575
rk_pcie_alloc_msix(device_t pci, device_t child, int *irq)
sys/arm64/rockchip/rk_pcie.c
580
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/rockchip/rk_pcie.c
584
rv = intr_alloc_msix(pci, child, msi_parent, irq);
sys/arm64/rockchip/rk_pcie.c
589
rk_pcie_release_msix(device_t pci, device_t child, int irq)
sys/arm64/rockchip/rk_pcie.c
594
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/arm64/rockchip/rk_pcie.c
598
rv = intr_release_msix(pci, child, msi_parent, irq);
sys/arm64/rockchip/rk_pcie.c
604
rk_pcie_get_id(device_t pci, device_t child, enum pci_id_type type,
sys/arm64/rockchip/rk_pcie.c
613
return (pcib_get_id(pci, child, type, id));
sys/arm64/rockchip/rk_pcie.c
616
pci_rid = pci_get_rid(child);
sys/arm64/rockchip/rk_usbphy.c
264
phandle_t node, child;
sys/arm64/rockchip/rk_usbphy.c
272
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/arm64/rockchip/rk_usbphy.c
273
rv = rk_usbphy_init_phy(sc, child);
sys/cam/cam_queue.c
331
int child;
sys/cam/cam_queue.c
334
child = new_index;
sys/cam/cam_queue.c
336
while (child != 1) {
sys/cam/cam_queue.c
337
parent = child >> 1;
sys/cam/cam_queue.c
338
if (queue_cmp(queue_array, parent, child) <= 0)
sys/cam/cam_queue.c
340
swap(queue_array, parent, child);
sys/cam/cam_queue.c
341
child = parent;
sys/cam/cam_queue.c
353
int child;
sys/cam/cam_queue.c
357
child = parent << 1;
sys/cam/cam_queue.c
358
for (; child <= num_entries; child = parent << 1) {
sys/cam/cam_queue.c
359
if (child < num_entries) {
sys/cam/cam_queue.c
361
if (queue_cmp(queue_array, child + 1, child) < 0)
sys/cam/cam_queue.c
362
child++;
sys/cam/cam_queue.c
365
if (queue_cmp(queue_array, parent, child) <= 0)
sys/cam/cam_queue.c
367
swap(queue_array, child, parent);
sys/cam/cam_queue.c
368
parent = child;
sys/compat/linuxkpi/common/src/linux_i2c.c
345
device_t child;
sys/compat/linuxkpi/common/src/linux_i2c.c
355
while ((child = device_find_child(adapter->dev.parent->bsddev, "lkpi_iic", unit++)) != NULL) {
sys/compat/linuxkpi/common/src/linux_i2c.c
357
if (adapter == LKPI_IIC_GET_ADAPTER(child)) {
sys/compat/linuxkpi/common/src/linux_i2c.c
359
device_delete_child(adapter->dev.parent->bsddev, child);
sys/compat/linuxkpi/common/src/linux_i2c.c
367
while ((child = device_find_child(adapter->dev.parent->bsddev, "lkpi_iicbb", unit++)) != NULL) {
sys/compat/linuxkpi/common/src/linux_i2c.c
369
if (adapter == LKPI_IIC_GET_ADAPTER(child)) {
sys/compat/linuxkpi/common/src/linux_i2c.c
371
device_delete_child(adapter->dev.parent->bsddev, child);
sys/compat/linuxkpi/common/src/linux_i2cbb.c
280
device_t child;
sys/compat/linuxkpi/common/src/linux_i2cbb.c
283
child = device_find_child(adapter->dev.parent->bsddev,
sys/compat/linuxkpi/common/src/linux_i2cbb.c
285
if (child == NULL)
sys/compat/linuxkpi/common/src/linux_i2cbb.c
287
if (adapter == LKPI_IIC_GET_ADAPTER(child)) {
sys/compat/linuxkpi/common/src/linux_i2cbb.c
288
sc = device_get_softc(child);
sys/dev/aac/aac.c
3707
device_t child;
sys/dev/aac/aac.c
3785
child = device_add_child(sc->aac_dev, "aacp", DEVICE_UNIT_ANY);
sys/dev/aac/aac.c
3786
if (child == NULL) {
sys/dev/aac/aac.c
3798
caminf->sim_dev = child;
sys/dev/aac/aac.c
3800
device_set_ivars(child, caminf);
sys/dev/aac/aac.c
3801
device_set_desc(child, "SCSI Passthrough Bus");
sys/dev/aac/aac.c
460
device_t child;
sys/dev/aac/aac.c
476
if ((child = device_add_child(sc->aac_dev, "aacd", DEVICE_UNIT_ANY)) == NULL)
sys/dev/aac/aac.c
479
device_set_ivars(child, co);
sys/dev/aac/aac.c
480
device_set_desc(child, aac_describe_code(aac_container_types,
sys/dev/aac/aac.c
482
co->co_disk = child;
sys/dev/aacraid/aacraid.c
3603
device_t child;
sys/dev/aacraid/aacraid.c
3612
child = device_add_child(sc->aac_dev, "aacraidp", DEVICE_UNIT_ANY);
sys/dev/aacraid/aacraid.c
3613
if (child == NULL) {
sys/dev/aacraid/aacraid.c
3625
sim->sim_dev = child;
sys/dev/aacraid/aacraid.c
3628
device_set_ivars(child, sim);
sys/dev/aacraid/aacraid.c
3629
device_set_desc(child, "Container Bus");
sys/dev/aacraid/aacraid.c
3648
device_t child;
sys/dev/aacraid/aacraid.c
3729
child = device_add_child(sc->aac_dev, "aacraidp", DEVICE_UNIT_ANY);
sys/dev/aacraid/aacraid.c
3730
if (child == NULL) {
sys/dev/aacraid/aacraid.c
3743
caminf->sim_dev = child;
sys/dev/aacraid/aacraid.c
3746
device_set_ivars(child, caminf);
sys/dev/aacraid/aacraid.c
3747
device_set_desc(child, "SCSI Passthrough Bus");
sys/dev/acpica/acpi.c
1005
child = devlist[i];
sys/dev/acpica/acpi.c
1006
if (device_get_state(child) == DS_NOTPRESENT) {
sys/dev/acpica/acpi.c
1008
acpi_set_powerstate(child, ACPI_STATE_D0);
sys/dev/acpica/acpi.c
1009
if (device_probe_and_attach(child) != 0)
sys/dev/acpica/acpi.c
1010
acpi_set_powerstate(child, ACPI_STATE_D3);
sys/dev/acpica/acpi.c
1012
device_probe_and_attach(child);
sys/dev/acpica/acpi.c
1021
acpi_child_location_method(device_t cbdev, device_t child, struct sbuf *sb)
sys/dev/acpica/acpi.c
1023
struct acpi_device *dinfo = device_get_ivars(child);
sys/dev/acpica/acpi.c
1060
acpi_child_pnpinfo_method(device_t cbdev, device_t child, struct sbuf *sb)
sys/dev/acpica/acpi.c
1062
struct acpi_device *dinfo = device_get_ivars(child);
sys/dev/acpica/acpi.c
1073
acpi_get_acpi_device_path(device_t bus, device_t child, const char *locator, struct sbuf *sb)
sys/dev/acpica/acpi.c
1076
ACPI_HANDLE *handle = acpi_get_handle(child);
sys/dev/acpica/acpi.c
1083
return (bus_generic_get_device_path(bus, child, locator, sb));
sys/dev/acpica/acpi.c
1087
acpi_get_device_path(device_t bus, device_t child, const char *locator, struct sbuf *sb)
sys/dev/acpica/acpi.c
1089
struct acpi_device *dinfo = device_get_ivars(child);
sys/dev/acpica/acpi.c
1092
return (acpi_get_acpi_device_path(bus, child, locator, sb));
sys/dev/acpica/acpi.c
1141
return (bus_generic_get_device_path(bus, child, locator, sb));
sys/dev/acpica/acpi.c
1148
acpi_child_deleted(device_t dev, device_t child)
sys/dev/acpica/acpi.c
1150
struct acpi_device *dinfo = device_get_ivars(child);
sys/dev/acpica/acpi.c
1152
if (acpi_get_device(dinfo->ad_handle) == child)
sys/dev/acpica/acpi.c
1164
acpi_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/acpica/acpi.c
1168
if ((ad = device_get_ivars(child)) == NULL) {
sys/dev/acpica/acpi.c
1169
device_printf(child, "device has no ivars\n");
sys/dev/acpica/acpi.c
1193
*(int *)result = acpi_isa_get_logicalid(child);
sys/dev/acpica/acpi.c
1212
acpi_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/acpica/acpi.c
1216
if ((ad = device_get_ivars(child)) == NULL) {
sys/dev/acpica/acpi.c
1217
device_printf(child, "device has no ivars\n");
sys/dev/acpica/acpi.c
1246
acpi_get_rlist(device_t dev, device_t child)
sys/dev/acpica/acpi.c
1250
ad = device_get_ivars(child);
sys/dev/acpica/acpi.c
1274
acpi_hint_device_matches_resources(device_t child, const char *name,
sys/dev/acpica/acpi.c
1302
if (acpi_match_resource_hint(child, SYS_RES_IOPORT, value))
sys/dev/acpica/acpi.c
1308
if (acpi_match_resource_hint(child, SYS_RES_MEMORY, value))
sys/dev/acpica/acpi.c
1324
if (acpi_match_resource_hint(child, SYS_RES_IRQ, value))
sys/dev/acpica/acpi.c
1330
if (acpi_match_resource_hint(child, SYS_RES_DRQ, value))
sys/dev/acpica/acpi.c
1343
acpi_hint_device_unit(device_t acdev, device_t child, const char *name,
sys/dev/acpica/acpi.c
1363
matches = acpi_hint_device_matches_resources(child, name, unit);
sys/dev/acpica/acpi.c
1365
matches = dev_wired_cache_match(cache, child, s);
sys/dev/acpica/acpi.c
1404
acpi_get_cpus(device_t dev, device_t child, enum cpu_sets op, size_t setsize,
sys/dev/acpica/acpi.c
1409
d = acpi_pxm_parse(child);
sys/dev/acpica/acpi.c
1411
return (bus_generic_get_cpus(dev, child, op, setsize, cpuset));
sys/dev/acpica/acpi.c
1420
error = bus_generic_get_cpus(dev, child, op, setsize, cpuset);
sys/dev/acpica/acpi.c
1428
return (bus_generic_get_cpus(dev, child, op, setsize, cpuset));
sys/dev/acpica/acpi.c
1433
acpi_get_domain_method(device_t dev, device_t child, int *domain)
sys/dev/acpica/acpi.c
1437
error = acpi_read_ivar(dev, child, ACPI_IVAR_DOMAIN,
sys/dev/acpica/acpi.c
1575
acpi_set_resource(device_t dev, device_t child, int type, int rid,
sys/dev/acpica/acpi.c
1578
struct acpi_device *ad = device_get_ivars(child);
sys/dev/acpica/acpi.c
1585
start = (rman_res_t)acpi_map_intr(child, (u_int)start,
sys/dev/acpica/acpi.c
1586
acpi_get_handle(child));
sys/dev/acpica/acpi.c
1595
resource_list_unreserve(rl, dev, child, type, rid);
sys/dev/acpica/acpi.c
1604
acpi_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/acpica/acpi.c
1621
if (bus == device_get_parent(child)) {
sys/dev/acpica/acpi.c
1622
ad = device_get_ivars(child);
sys/dev/acpica/acpi.c
1634
res = resource_list_alloc(rl, bus, child, type, rid, start, end, count,
sys/dev/acpica/acpi.c
1646
if (ACPI_SUCCESS(acpi_lookup_irq_resource(child, rid, res, &ares)))
sys/dev/acpica/acpi.c
1647
acpi_config_intr(child, &ares);
sys/dev/acpica/acpi.c
1666
res = bus_generic_alloc_resource(bus, child, type, rid,
sys/dev/acpica/acpi.c
1675
res = bus_generic_rman_alloc_resource(bus, child, type, rid, start, end,
sys/dev/acpica/acpi.c
1711
acpi_adjust_resource(device_t bus, device_t child, struct resource *r,
sys/dev/acpica/acpi.c
1717
return (bus_generic_adjust_resource(bus, child, r, start, end));
sys/dev/acpica/acpi.c
1721
acpi_release_resource(device_t bus, device_t child, struct resource *r)
sys/dev/acpica/acpi.c
1728
return (bus_generic_rman_release_resource(bus, child, r));
sys/dev/acpica/acpi.c
1730
return (bus_generic_rl_release_resource(bus, child, r));
sys/dev/acpica/acpi.c
1734
acpi_delete_resource(device_t bus, device_t child, int type, int rid)
sys/dev/acpica/acpi.c
1738
rl = acpi_get_rlist(bus, child);
sys/dev/acpica/acpi.c
1745
resource_list_unreserve(rl, bus, child, type, rid);
sys/dev/acpica/acpi.c
1750
acpi_activate_resource(device_t bus, device_t child, struct resource *r)
sys/dev/acpica/acpi.c
1753
return (bus_generic_rman_activate_resource(bus, child, r));
sys/dev/acpica/acpi.c
1754
return (bus_generic_activate_resource(bus, child, r));
sys/dev/acpica/acpi.c
1758
acpi_deactivate_resource(device_t bus, device_t child, struct resource *r)
sys/dev/acpica/acpi.c
1761
return (bus_generic_rman_deactivate_resource(bus, child, r));
sys/dev/acpica/acpi.c
1762
return (bus_generic_deactivate_resource(bus, child, r));
sys/dev/acpica/acpi.c
1766
acpi_map_resource(device_t bus, device_t child, struct resource *r,
sys/dev/acpica/acpi.c
1775
return (bus_generic_map_resource(bus, child, r, argsp, map));
sys/dev/acpica/acpi.c
1796
acpi_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/dev/acpica/acpi.c
1802
return (bus_generic_unmap_resource(bus, child, r, map));
sys/dev/acpica/acpi.c
2063
acpi_bus_get_prop(device_t bus, device_t child, const char *propname,
sys/dev/acpica/acpi.c
2069
status = acpi_device_get_prop(bus, child, __DECONST(char *, propname),
sys/dev/acpica/acpi.c
2271
acpi_set_powerstate(device_t child, int state)
sys/dev/acpica/acpi.c
2276
h = acpi_get_handle(child);
sys/dev/acpica/acpi.c
2286
device_printf(child, "set ACPI power state %s on %s\n",
sys/dev/acpica/acpi.c
2289
device_printf(child,
sys/dev/acpica/acpi.c
2298
acpi_isa_pnp_probe(device_t bus, device_t child, struct isa_pnp_id *ids)
sys/dev/acpica/acpi.c
2313
lid = acpi_isa_get_logicalid(child);
sys/dev/acpica/acpi.c
2314
cid_count = acpi_isa_get_compatid(child, cids, 8);
sys/dev/acpica/acpi.c
2331
device_set_desc(child, ids->ip_desc);
sys/dev/acpica/acpi.c
2489
device_t bus, child;
sys/dev/acpica/acpi.c
2539
child = BUS_ADD_CHILD(bus, order, NULL, DEVICE_UNIT_ANY);
sys/dev/acpica/acpi.c
2540
if (child == NULL)
sys/dev/acpica/acpi.c
2544
acpi_set_handle(child, handle);
sys/dev/acpica/acpi.c
2545
AcpiAttachData(handle, acpi_fake_objhandler, child);
sys/dev/acpica/acpi.c
2556
if (type == ACPI_TYPE_DEVICE && !acpi_DeviceIsPresent(child)) {
sys/dev/acpica/acpi.c
2576
device_disable(child);
sys/dev/acpica/acpi.c
2587
acpi_parse_resources(child, handle, &acpi_res_parse_set, NULL);
sys/dev/acpica/acpi.c
2589
ad = device_get_ivars(child);
sys/dev/acpica/acpi.c
2600
d = acpi_pxm_parse(child);
sys/dev/acpica/acpi.c
3962
device_t child;
sys/dev/acpica/acpi.c
3972
child = devlist[i];
sys/dev/acpica/acpi.c
3973
acpi_wake_sysctl_walk(child);
sys/dev/acpica/acpi.c
3974
if (!device_is_attached(child) || !acpi_has_flags(child))
sys/dev/acpica/acpi.c
3976
status = AcpiEvaluateObject(acpi_get_handle(child), "_PRW", NULL, NULL);
sys/dev/acpica/acpi.c
3978
SYSCTL_ADD_PROC(device_get_sysctl_ctx(child),
sys/dev/acpica/acpi.c
3979
SYSCTL_CHILDREN(device_get_sysctl_tree(child)), OID_AUTO,
sys/dev/acpica/acpi.c
3980
"wake", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, child, 0,
sys/dev/acpica/acpi.c
866
device_t child;
sys/dev/acpica/acpi.c
878
child = devlist[i];
sys/dev/acpica/acpi.c
880
if (device_is_attached(child) &&
sys/dev/acpica/acpi.c
881
acpi_device_pwr_for_sleep(dev, child, &dstate) == 0)
sys/dev/acpica/acpi.c
882
acpi_set_powerstate(child, dstate);
sys/dev/acpica/acpi.c
938
device_t child;
sys/dev/acpica/acpi.c
946
child = device_add_child_ordered(bus, order, name, unit);
sys/dev/acpica/acpi.c
947
if (child != NULL)
sys/dev/acpica/acpi.c
948
device_set_ivars(child, ad);
sys/dev/acpica/acpi.c
951
return (child);
sys/dev/acpica/acpi.c
955
acpi_print_child(device_t bus, device_t child)
sys/dev/acpica/acpi.c
957
struct acpi_device *adev = device_get_ivars(child);
sys/dev/acpica/acpi.c
961
retval += bus_print_child_header(bus, child);
sys/dev/acpica/acpi.c
966
if (device_get_flags(child))
sys/dev/acpica/acpi.c
967
retval += printf(" flags %#x", device_get_flags(child));
sys/dev/acpica/acpi.c
968
retval += bus_print_child_domain(bus, child);
sys/dev/acpica/acpi.c
969
retval += bus_print_child_footer(bus, child);
sys/dev/acpica/acpi.c
983
acpi_probe_nomatch(device_t bus, device_t child)
sys/dev/acpica/acpi.c
986
acpi_set_powerstate(child, ACPI_STATE_D3);
sys/dev/acpica/acpi.c
998
device_t child, *devlist;
sys/dev/acpica/acpi_apei.c
601
device_t child;
sys/dev/acpica/acpi_apei.c
627
child = BUS_ADD_CHILD(parent, 2, "apei", 0);
sys/dev/acpica/acpi_apei.c
628
if (child == NULL)
sys/dev/acpica/acpi_cpu.c
169
static struct resource_list *acpi_cpu_get_rlist(device_t dev, device_t child);
sys/dev/acpica/acpi_cpu.c
172
static int acpi_cpu_read_ivar(device_t dev, device_t child, int index,
sys/dev/acpica/acpi_cpu.c
590
acpi_cpu_get_rlist(device_t dev, device_t child)
sys/dev/acpica/acpi_cpu.c
594
ad = device_get_ivars(child);
sys/dev/acpica/acpi_cpu.c
604
device_t child;
sys/dev/acpica/acpi_cpu.c
611
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/acpica/acpi_cpu.c
612
if (child != NULL)
sys/dev/acpica/acpi_cpu.c
613
device_set_ivars(child, ad);
sys/dev/acpica/acpi_cpu.c
616
return (child);
sys/dev/acpica/acpi_cpu.c
620
acpi_cpu_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/acpica/acpi_ec.c
279
device_t child;
sys/dev/acpica/acpi_ec.c
294
child = BUS_ADD_CHILD(parent, 3, "acpi_ec", ecdt->Uid);
sys/dev/acpica/acpi_ec.c
295
if (child == NULL) {
sys/dev/acpica/acpi_ec.c
303
device_delete_child(parent, child);
sys/dev/acpica/acpi_ec.c
307
acpi_set_handle(child, h);
sys/dev/acpica/acpi_ec.c
310
bus_set_resource(child, SYS_RES_IOPORT, 0, ecdt->Data.Address,
sys/dev/acpica/acpi_ec.c
312
bus_set_resource(child, SYS_RES_IOPORT, 1, ecdt->Control.Address,
sys/dev/acpica/acpi_ec.c
327
acpi_set_private(child, params);
sys/dev/acpica/acpi_ec.c
330
if (device_probe_and_attach(child) != 0)
sys/dev/acpica/acpi_ec.c
331
device_delete_child(parent, child);
sys/dev/acpica/acpi_hpet.c
417
device_t child;
sys/dev/acpica/acpi_hpet.c
429
child = NULL;
sys/dev/acpica/acpi_hpet.c
432
(void *)&child);
sys/dev/acpica/acpi_hpet.c
434
if (child) {
sys/dev/acpica/acpi_hpet.c
435
if (bus_get_resource(child, SYS_RES_MEMORY, 0,
sys/dev/acpica/acpi_hpet.c
437
bus_set_resource(child, SYS_RES_MEMORY, 0,
sys/dev/acpica/acpi_hpet.c
442
child = BUS_ADD_CHILD(parent, 2, "hpet", 0);
sys/dev/acpica/acpi_hpet.c
443
if (child == NULL) {
sys/dev/acpica/acpi_hpet.c
447
bus_set_resource(child, SYS_RES_MEMORY, 0, hpet->Address.Address,
sys/dev/acpica/acpi_hpet.c
960
hpet_remap_intr(device_t dev, device_t child, u_int irq)
sys/dev/acpica/acpi_isab.c
117
acpi_isab_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/acpica/acpi_isab.c
56
static int acpi_isab_read_ivar(device_t dev, device_t child, int which,
sys/dev/acpica/acpi_pci.c
136
acpi_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/acpica/acpi_pci.c
140
dinfo = device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
149
return (pci_read_ivar(dev, child, which, result));
sys/dev/acpica/acpi_pci.c
153
acpi_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/acpica/acpi_pci.c
157
dinfo = device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
166
return (pci_write_ivar(dev, child, which, value));
sys/dev/acpica/acpi_pci.c
170
acpi_pci_child_deleted(device_t dev, device_t child)
sys/dev/acpica/acpi_pci.c
172
struct acpi_pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
174
if (acpi_get_device(dinfo->ap_handle) == child)
sys/dev/acpica/acpi_pci.c
176
pci_child_deleted(dev, child);
sys/dev/acpica/acpi_pci.c
180
acpi_pci_child_location_method(device_t cbdev, device_t child, struct sbuf *sb)
sys/dev/acpica/acpi_pci.c
182
struct acpi_pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
185
pci_child_location_method(cbdev, child, sb);
sys/dev/acpica/acpi_pci.c
197
acpi_pci_get_device_path(device_t bus, device_t child, const char *locator, struct sbuf *sb)
sys/dev/acpica/acpi_pci.c
201
return (acpi_get_acpi_device_path(bus, child, locator, sb));
sys/dev/acpica/acpi_pci.c
204
return (pci_get_device_path_method(bus, child, locator, sb));
sys/dev/acpica/acpi_pci.c
216
acpi_pci_get_domain(device_t dev, device_t child, int *domain)
sys/dev/acpica/acpi_pci.c
220
d = acpi_pxm_parse(child);
sys/dev/acpica/acpi_pci.c
229
return (bus_generic_get_domain(dev, child, domain));
sys/dev/acpica/acpi_pci.c
236
acpi_pci_set_powerstate_method(device_t dev, device_t child, int state)
sys/dev/acpica/acpi_pci.c
256
old_state = pci_get_powerstate(child);
sys/dev/acpica/acpi_pci.c
258
error = pci_set_powerstate_method(dev, child, state);
sys/dev/acpica/acpi_pci.c
262
h = acpi_get_handle(child);
sys/dev/acpica/acpi_pci.c
274
error = pci_set_powerstate_method(dev, child, state);
sys/dev/acpica/acpi_pci.c
285
device_t child;
sys/dev/acpica/acpi_pci.c
294
child = acpi_get_device(handle);
sys/dev/acpica/acpi_pci.c
295
if (child != NULL) {
sys/dev/acpica/acpi_pci.c
296
KASSERT(device_get_parent(child) ==
sys/dev/acpica/acpi_pci.c
317
device_t child;
sys/dev/acpica/acpi_pci.c
323
child = context;
sys/dev/acpica/acpi_pci.c
328
dinfo = device_get_ivars(child);
sys/dev/acpica/acpi_pci.c
332
acpi_pci_update_device(handle, child);
sys/dev/acpica/acpi_pci.c
339
acpi_pci_child_added(device_t dev, device_t child)
sys/dev/acpica/acpi_pci.c
355
acpi_pci_save_handle, NULL, child, NULL);
sys/dev/acpica/acpi_pci.c
390
device_t child, dev;
sys/dev/acpica/acpi_pci.c
403
child = acpi_get_device(h);
sys/dev/acpica/acpi_pci.c
404
if (child == NULL) {
sys/dev/acpica/acpi_pci.c
410
error = device_detach(child);
sys/dev/acpica/acpi_pci.c
414
device_get_nameunit(child), error);
sys/dev/acpica/acpi_pci.c
418
pci_has_pm(child))
sys/dev/acpica/acpi_pci.c
419
pci_clear_pme(child);
sys/dev/acpica/acpi_pci.c
500
acpi_pci_get_dma_tag(device_t bus, device_t child)
sys/dev/acpica/acpi_pci.c
504
if (device_get_parent(child) == bus) {
sys/dev/acpica/acpi_pci.c
506
tag = iommu_get_dma_tag(bus, child);
sys/dev/acpica/acpi_pci.c
510
tag = pci_get_dma_tag(bus, child);
sys/dev/acpica/acpi_pci.c
515
acpi_pci_get_dma_tag(device_t bus, device_t child)
sys/dev/acpica/acpi_pci.c
518
return (pci_get_dma_tag(bus, child));
sys/dev/acpica/acpi_pci.c
76
static void acpi_pci_child_deleted(device_t dev, device_t child);
sys/dev/acpica/acpi_pci.c
78
device_t child, struct sbuf *sb);
sys/dev/acpica/acpi_pci.c
80
device_t child, const char *locator, struct sbuf *sb);
sys/dev/acpica/acpi_pci.c
83
static int acpi_pci_read_ivar(device_t dev, device_t child, int which,
sys/dev/acpica/acpi_pci.c
85
static int acpi_pci_write_ivar(device_t dev, device_t child, int which,
sys/dev/acpica/acpi_pci.c
89
static int acpi_pci_set_powerstate_method(device_t dev, device_t child,
sys/dev/acpica/acpi_pci.c
92
static bus_dma_tag_t acpi_pci_get_dma_tag(device_t bus, device_t child);
sys/dev/acpica/acpi_pci.c
93
static int acpi_pci_get_domain(device_t dev, device_t child, int *domain);
sys/dev/acpica/acpi_pcib.c
111
child = acpi_get_device(handle);
sys/dev/acpica/acpi_pcib.c
112
if (child == NULL)
sys/dev/acpica/acpi_pcib.c
116
error = device_probe_and_attach(child);
sys/dev/acpica/acpi_pcib.c
124
acpi_pci_link_add_reference(child, entry->SourceIndex, pcib,
sys/dev/acpica/acpi_pcib.c
93
device_t child, pcib;
sys/dev/acpica/acpi_pcib_acpi.c
100
device_t child, struct resource *r);
sys/dev/acpica/acpi_pcib_acpi.c
102
device_t child, struct resource *r);
sys/dev/acpica/acpi_pcib_acpi.c
104
device_t child, struct resource *r);
sys/dev/acpica/acpi_pcib_acpi.c
107
static bus_dma_tag_t acpi_pcib_get_dma_tag(device_t bus, device_t child);
sys/dev/acpica/acpi_pcib_acpi.c
495
acpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/acpica/acpi_pcib_acpi.c
517
acpi_pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/acpica/acpi_pcib_acpi.c
608
acpi_pcib_acpi_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/acpica/acpi_pcib_acpi.c
620
return (pci_domain_alloc_bus(sc->ap_segment, child, rid, start, end,
sys/dev/acpica/acpi_pcib_acpi.c
622
res = pcib_host_res_alloc(&sc->ap_host_res, child, type, rid, start, end,
sys/dev/acpica/acpi_pcib_acpi.c
633
res = bus_generic_alloc_resource(dev, child, type, rid, start, end,
sys/dev/acpica/acpi_pcib_acpi.c
639
acpi_pcib_acpi_adjust_resource(device_t dev, device_t child,
sys/dev/acpica/acpi_pcib_acpi.c
646
return (pci_domain_adjust_bus(sc->ap_segment, child, r, start,
sys/dev/acpica/acpi_pcib_acpi.c
648
return (pcib_host_res_adjust(&sc->ap_host_res, child, r, start, end));
sys/dev/acpica/acpi_pcib_acpi.c
652
acpi_pcib_acpi_release_resource(device_t dev, device_t child,
sys/dev/acpica/acpi_pcib_acpi.c
659
return (pci_domain_release_bus(sc->ap_segment, child, r));
sys/dev/acpica/acpi_pcib_acpi.c
660
return (bus_generic_release_resource(dev, child, r));
sys/dev/acpica/acpi_pcib_acpi.c
664
acpi_pcib_acpi_activate_resource(device_t dev, device_t child,
sys/dev/acpica/acpi_pcib_acpi.c
671
return (pci_domain_activate_bus(sc->ap_segment, child, r));
sys/dev/acpica/acpi_pcib_acpi.c
672
return (bus_generic_activate_resource(dev, child, r));
sys/dev/acpica/acpi_pcib_acpi.c
676
acpi_pcib_acpi_deactivate_resource(device_t dev, device_t child,
sys/dev/acpica/acpi_pcib_acpi.c
683
return (pci_domain_deactivate_bus(sc->ap_segment, child, r));
sys/dev/acpica/acpi_pcib_acpi.c
684
return (bus_generic_deactivate_resource(dev, child, r));
sys/dev/acpica/acpi_pcib_acpi.c
710
acpi_pcib_get_dma_tag(device_t bus, device_t child)
sys/dev/acpica/acpi_pcib_acpi.c
75
static int acpi_pcib_read_ivar(device_t dev, device_t child,
sys/dev/acpica/acpi_pcib_acpi.c
77
static int acpi_pcib_write_ivar(device_t dev, device_t child,
sys/dev/acpica/acpi_pcib_acpi.c
93
device_t child, int type, int rid,
sys/dev/acpica/acpi_pcib_acpi.c
97
device_t child, struct resource *r,
sys/dev/acpica/acpi_pcib_pci.c
143
acpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/acpica/acpi_pcib_pci.c
152
return (pcib_read_ivar(dev, child, which, result));
sys/dev/acpica/acpi_pcib_pci.c
68
static int acpi_pcib_read_ivar(device_t dev, device_t child,
sys/dev/acpica/acpi_pcivar.h
31
void acpi_pci_child_added(device_t dev, device_t child);
sys/dev/acpica/acpivar.h
479
int acpi_set_powerstate(device_t child, int state);
sys/dev/acpica/acpivar.h
486
acpi_device_get_parent_softc(device_t child)
sys/dev/acpica/acpivar.h
490
parent = device_get_parent(child);
sys/dev/acpica/acpivar.h
524
int acpi_get_acpi_device_path(device_t bus, device_t child,
sys/dev/adb/adb_bus.c
191
adb_probe_nomatch(device_t dev, device_t child)
sys/dev/adb/adb_bus.c
196
dinfo = device_get_ivars(child);
sys/dev/adb/adb_bus.c
230
adb_print_child(device_t dev, device_t child)
sys/dev/adb/adb_bus.c
235
dinfo = device_get_ivars(child);
sys/dev/adb/adb_bus.c
237
retval += bus_print_child_header(dev,child);
sys/dev/adb/adb_bus.c
239
retval += bus_print_child_footer(dev, child);
sys/dev/adb/adb_bus.c
46
static void adb_probe_nomatch(device_t dev, device_t child);
sys/dev/adb/adb_bus.c
47
static int adb_print_child(device_t dev, device_t child);
sys/dev/agp/agp.c
912
device_t *children, child;
sys/dev/agp/agp.c
919
child = NULL;
sys/dev/agp/agp.c
922
child = children[i];
sys/dev/agp/agp.c
927
return child;
sys/dev/ahci/ahci.c
199
device_t child;
sys/dev/ahci/ahci.c
357
child = device_add_child(dev, "ahcich", DEVICE_UNIT_ANY);
sys/dev/ahci/ahci.c
358
if (child == NULL) {
sys/dev/ahci/ahci.c
362
device_set_ivars(child, (void *)(intptr_t)unit);
sys/dev/ahci/ahci.c
364
device_disable(child);
sys/dev/ahci/ahci.c
368
child = device_add_child(dev, "nvme", DEVICE_UNIT_ANY);
sys/dev/ahci/ahci.c
369
if (child == NULL) {
sys/dev/ahci/ahci.c
373
device_set_ivars(child, (void *)(intptr_t)(unit | AHCI_REMAPPED_UNIT));
sys/dev/ahci/ahci.c
380
child = device_add_child(dev, "ahciem", DEVICE_UNIT_ANY);
sys/dev/ahci/ahci.c
381
if (child == NULL)
sys/dev/ahci/ahci.c
384
device_set_ivars(child, (void *)(intptr_t)AHCI_EM_UNIT);
sys/dev/ahci/ahci.c
579
ahci_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/ahci/ahci.c
588
unit = (intptr_t)device_get_ivars(child);
sys/dev/ahci/ahci.c
625
st + offset + size - 1, size, RF_ACTIVE, child);
sys/dev/ahci/ahci.c
645
ahci_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/ahci/ahci.c
661
ahci_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/ahci/ahci.c
666
int unit = (intptr_t)device_get_ivars(child) & AHCI_UNIT;
sys/dev/ahci/ahci.c
678
ahci_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/ahci/ahci.c
682
int unit = (intptr_t)device_get_ivars(child) & AHCI_UNIT;
sys/dev/ahci/ahci.c
690
ahci_print_child(device_t dev, device_t child)
sys/dev/ahci/ahci.c
695
retval = bus_print_child_header(dev, child);
sys/dev/ahci/ahci.c
696
ivars = (intptr_t)device_get_ivars(child);
sys/dev/ahci/ahci.c
699
retval += bus_print_child_footer(dev, child);
sys/dev/ahci/ahci.c
704
ahci_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/ahci/ahci.c
708
ivars = (intptr_t)device_get_ivars(child);
sys/dev/ahci/ahci.c
715
ahci_get_dma_tag(device_t dev, device_t child)
sys/dev/ahci/ahci.h
656
int ahci_print_child(device_t dev, device_t child);
sys/dev/ahci/ahci.h
657
struct resource *ahci_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/ahci/ahci.h
659
int ahci_release_resource(device_t dev, device_t child, struct resource *r);
sys/dev/ahci/ahci.h
660
int ahci_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/ahci/ahci.h
663
int ahci_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/ahci/ahci.h
665
int ahci_child_location(device_t dev, device_t child, struct sbuf *sb);
sys/dev/ahci/ahci.h
666
bus_dma_tag_t ahci_get_dma_tag(device_t dev, device_t child);
sys/dev/aic7xxx/ahc_isa.c
109
device_t child;
sys/dev/aic7xxx/ahc_isa.c
111
child = BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE,
sys/dev/aic7xxx/ahc_isa.c
113
if (child != NULL) {
sys/dev/aic7xxx/ahc_isa.c
114
device_set_driver(child, driver);
sys/dev/aic7xxx/ahc_isa.c
115
bus_set_resource(child, SYS_RES_IOPORT,
sys/dev/al_eth/al_eth.c
271
struct sysctl_oid_list *child;
sys/dev/al_eth/al_eth.c
287
child = SYSCTL_CHILDREN(tree);
sys/dev/al_eth/al_eth.c
290
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "napi",
sys/dev/alc/if_alc.c
1742
struct sysctl_oid_list *child, *parent;
sys/dev/alc/if_alc.c
1749
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->alc_dev));
sys/dev/alc/if_alc.c
1751
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_rx_mod",
sys/dev/alc/if_alc.c
1754
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_tx_mod",
sys/dev/alc/if_alc.c
1782
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "process_limit",
sys/dev/alc/if_alc.c
1801
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/alc/if_alc.c
1808
child = SYSCTL_CHILDREN(tree);
sys/dev/alc/if_alc.c
1809
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/alc/if_alc.c
1811
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/alc/if_alc.c
1813
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/alc/if_alc.c
1815
ALC_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/alc/if_alc.c
1817
ALC_SYSCTL_STAT_ADD32(ctx, child, "control_frames",
sys/dev/alc/if_alc.c
1819
ALC_SYSCTL_STAT_ADD32(ctx, child, "crc_errs",
sys/dev/alc/if_alc.c
1821
ALC_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/alc/if_alc.c
1823
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/alc/if_alc.c
1825
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_bcast_octets",
sys/dev/alc/if_alc.c
1827
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_mcast_octets",
sys/dev/alc/if_alc.c
1829
ALC_SYSCTL_STAT_ADD32(ctx, child, "runts",
sys/dev/alc/if_alc.c
1831
ALC_SYSCTL_STAT_ADD32(ctx, child, "fragments",
sys/dev/alc/if_alc.c
1833
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/alc/if_alc.c
1835
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/alc/if_alc.c
1837
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/alc/if_alc.c
1839
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/alc/if_alc.c
1841
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/alc/if_alc.c
1843
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/alc/if_alc.c
1845
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max",
sys/dev/alc/if_alc.c
1847
ALC_SYSCTL_STAT_ADD32(ctx, child, "trunc_errs",
sys/dev/alc/if_alc.c
1849
ALC_SYSCTL_STAT_ADD32(ctx, child, "fifo_oflows",
sys/dev/alc/if_alc.c
1851
ALC_SYSCTL_STAT_ADD32(ctx, child, "rrs_errs",
sys/dev/alc/if_alc.c
1853
ALC_SYSCTL_STAT_ADD32(ctx, child, "align_errs",
sys/dev/alc/if_alc.c
1855
ALC_SYSCTL_STAT_ADD32(ctx, child, "filtered",
sys/dev/alc/if_alc.c
1862
child = SYSCTL_CHILDREN(tree);
sys/dev/alc/if_alc.c
1863
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/alc/if_alc.c
1865
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/alc/if_alc.c
1867
ALC_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/alc/if_alc.c
1869
ALC_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/alc/if_alc.c
1871
ALC_SYSCTL_STAT_ADD32(ctx, child, "control_frames",
sys/dev/alc/if_alc.c
1873
ALC_SYSCTL_STAT_ADD32(ctx, child, "excess_defers",
sys/dev/alc/if_alc.c
1875
ALC_SYSCTL_STAT_ADD32(ctx, child, "defers",
sys/dev/alc/if_alc.c
1877
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/alc/if_alc.c
1879
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_bcast_octets",
sys/dev/alc/if_alc.c
1881
ALC_SYSCTL_STAT_ADD64(ctx, child, "good_mcast_octets",
sys/dev/alc/if_alc.c
1883
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/alc/if_alc.c
1885
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/alc/if_alc.c
1887
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/alc/if_alc.c
1889
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/alc/if_alc.c
1891
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/alc/if_alc.c
1893
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/alc/if_alc.c
1895
ALC_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max",
sys/dev/alc/if_alc.c
1897
ALC_SYSCTL_STAT_ADD32(ctx, child, "single_colls",
sys/dev/alc/if_alc.c
1899
ALC_SYSCTL_STAT_ADD32(ctx, child, "multi_colls",
sys/dev/alc/if_alc.c
1901
ALC_SYSCTL_STAT_ADD32(ctx, child, "late_colls",
sys/dev/alc/if_alc.c
1903
ALC_SYSCTL_STAT_ADD32(ctx, child, "excess_colls",
sys/dev/alc/if_alc.c
1905
ALC_SYSCTL_STAT_ADD32(ctx, child, "underruns",
sys/dev/alc/if_alc.c
1907
ALC_SYSCTL_STAT_ADD32(ctx, child, "desc_underruns",
sys/dev/alc/if_alc.c
1909
ALC_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/alc/if_alc.c
1911
ALC_SYSCTL_STAT_ADD32(ctx, child, "trunc_errs",
sys/dev/ale/if_ale.c
754
struct sysctl_oid_list *child, *parent;
sys/dev/ale/if_ale.c
761
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->ale_dev));
sys/dev/ale/if_ale.c
763
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_rx_mod",
sys/dev/ale/if_ale.c
766
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_tx_mod",
sys/dev/ale/if_ale.c
794
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "process_limit",
sys/dev/ale/if_ale.c
814
ALE_SYSCTL_STAT_ADD32(ctx, child, "reset_brk_seq",
sys/dev/ale/if_ale.c
818
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/ale/if_ale.c
825
child = SYSCTL_CHILDREN(tree);
sys/dev/ale/if_ale.c
826
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/ale/if_ale.c
828
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/ale/if_ale.c
830
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/ale/if_ale.c
832
ALE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/ale/if_ale.c
834
ALE_SYSCTL_STAT_ADD32(ctx, child, "control_frames",
sys/dev/ale/if_ale.c
836
ALE_SYSCTL_STAT_ADD32(ctx, child, "crc_errs",
sys/dev/ale/if_ale.c
838
ALE_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/ale/if_ale.c
840
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/ale/if_ale.c
842
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_bcast_octets",
sys/dev/ale/if_ale.c
844
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_mcast_octets",
sys/dev/ale/if_ale.c
846
ALE_SYSCTL_STAT_ADD32(ctx, child, "runts",
sys/dev/ale/if_ale.c
848
ALE_SYSCTL_STAT_ADD32(ctx, child, "fragments",
sys/dev/ale/if_ale.c
850
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/ale/if_ale.c
852
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/ale/if_ale.c
854
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/ale/if_ale.c
856
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/ale/if_ale.c
858
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/ale/if_ale.c
860
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/ale/if_ale.c
862
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max",
sys/dev/ale/if_ale.c
864
ALE_SYSCTL_STAT_ADD32(ctx, child, "trunc_errs",
sys/dev/ale/if_ale.c
866
ALE_SYSCTL_STAT_ADD32(ctx, child, "fifo_oflows",
sys/dev/ale/if_ale.c
868
ALE_SYSCTL_STAT_ADD32(ctx, child, "rrs_errs",
sys/dev/ale/if_ale.c
870
ALE_SYSCTL_STAT_ADD32(ctx, child, "align_errs",
sys/dev/ale/if_ale.c
872
ALE_SYSCTL_STAT_ADD32(ctx, child, "filtered",
sys/dev/ale/if_ale.c
879
child = SYSCTL_CHILDREN(tree);
sys/dev/ale/if_ale.c
880
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/ale/if_ale.c
882
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/ale/if_ale.c
884
ALE_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/ale/if_ale.c
886
ALE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/ale/if_ale.c
888
ALE_SYSCTL_STAT_ADD32(ctx, child, "control_frames",
sys/dev/ale/if_ale.c
890
ALE_SYSCTL_STAT_ADD32(ctx, child, "excess_defers",
sys/dev/ale/if_ale.c
892
ALE_SYSCTL_STAT_ADD32(ctx, child, "defers",
sys/dev/ale/if_ale.c
894
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/ale/if_ale.c
896
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_bcast_octets",
sys/dev/ale/if_ale.c
898
ALE_SYSCTL_STAT_ADD64(ctx, child, "good_mcast_octets",
sys/dev/ale/if_ale.c
900
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/ale/if_ale.c
902
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/ale/if_ale.c
904
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/ale/if_ale.c
906
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/ale/if_ale.c
908
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/ale/if_ale.c
910
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/ale/if_ale.c
912
ALE_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max",
sys/dev/ale/if_ale.c
914
ALE_SYSCTL_STAT_ADD32(ctx, child, "single_colls",
sys/dev/ale/if_ale.c
916
ALE_SYSCTL_STAT_ADD32(ctx, child, "multi_colls",
sys/dev/ale/if_ale.c
918
ALE_SYSCTL_STAT_ADD32(ctx, child, "late_colls",
sys/dev/ale/if_ale.c
920
ALE_SYSCTL_STAT_ADD32(ctx, child, "excess_colls",
sys/dev/ale/if_ale.c
922
ALE_SYSCTL_STAT_ADD32(ctx, child, "underruns",
sys/dev/ale/if_ale.c
924
ALE_SYSCTL_STAT_ADD32(ctx, child, "desc_underruns",
sys/dev/ale/if_ale.c
926
ALE_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/ale/if_ale.c
928
ALE_SYSCTL_STAT_ADD32(ctx, child, "trunc_errs",
sys/dev/amdsbwd/amdsbwd.c
253
device_t child;
sys/dev/amdsbwd/amdsbwd.c
274
child = BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE, "amdsbwd",
sys/dev/amdsbwd/amdsbwd.c
276
if (child == NULL)
sys/dev/amdsmn/amdsmn.c
207
device_t child;
sys/dev/amdsmn/amdsmn.c
215
child = device_add_child(parent, "amdsmn", DEVICE_UNIT_ANY);
sys/dev/amdsmn/amdsmn.c
216
if (child == NULL)
sys/dev/amdtemp/amdtemp.c
287
device_t child;
sys/dev/amdtemp/amdtemp.c
294
child = device_add_child(parent, "amdtemp", DEVICE_UNIT_ANY);
sys/dev/amdtemp/amdtemp.c
295
if (child == NULL)
sys/dev/aq/aq_main.c
1278
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/aq/aq_main.c
1286
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "print_rss_config",
sys/dev/aq/aq_main.c
1294
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/aq/aq_main.c
1317
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/aq/aq_main.c
1339
stat_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "mac",
sys/dev/ata/ata-pci.c
124
child = device_add_child(dev, "ata",
sys/dev/ata/ata-pci.c
127
if (child == NULL)
sys/dev/ata/ata-pci.c
130
device_set_ivars(child, (void *)(intptr_t)unit);
sys/dev/ata/ata-pci.c
190
ata_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/ata/ata-pci.c
197
ata_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/ata/ata-pci.c
204
ata_pci_read_config(device_t dev, device_t child, int reg, int width)
sys/dev/ata/ata-pci.c
211
ata_pci_write_config(device_t dev, device_t child, int reg,
sys/dev/ata/ata-pci.c
219
ata_pci_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/ata/ata-pci.c
226
if (device_get_devclass(child) == ata_devclass) {
sys/dev/ata/ata-pci.c
227
int unit = ((struct ata_channel *)device_get_softc(child))->unit;
sys/dev/ata/ata-pci.c
261
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
sys/dev/ata/ata-pci.c
280
ata_pci_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/ata/ata-pci.c
285
if (device_get_devclass(child) == ata_devclass) {
sys/dev/ata/ata-pci.c
302
return BUS_RELEASE_RESOURCE(device_get_parent(dev), child,
sys/dev/ata/ata-pci.c
313
return (BUS_RELEASE_RESOURCE(device_get_parent(dev), child,
sys/dev/ata/ata-pci.c
321
ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/ata/ata-pci.c
328
return BUS_SETUP_INTR(device_get_parent(dev), child, irq,
sys/dev/ata/ata-pci.c
338
if (device_get_devclass(child) == ata_devclass)
sys/dev/ata/ata-pci.c
339
unit = ((struct ata_channel *)device_get_softc(child))->unit;
sys/dev/ata/ata-pci.c
350
ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/ata/ata-pci.c
356
return BUS_TEARDOWN_INTR(device_get_parent(dev), child, irq, cookie);
sys/dev/ata/ata-pci.c
361
if (device_get_devclass(child) == ata_devclass)
sys/dev/ata/ata-pci.c
362
unit = ((struct ata_channel *)device_get_softc(child))->unit;
sys/dev/ata/ata-pci.c
546
ata_pci_print_child(device_t dev, device_t child)
sys/dev/ata/ata-pci.c
550
retval = bus_print_child_header(dev, child);
sys/dev/ata/ata-pci.c
552
(int)(intptr_t)device_get_ivars(child));
sys/dev/ata/ata-pci.c
553
retval += bus_print_child_footer(dev, child);
sys/dev/ata/ata-pci.c
559
ata_pci_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/ata/ata-pci.c
563
(int)(intptr_t)device_get_ivars(child));
sys/dev/ata/ata-pci.c
568
ata_pci_get_dma_tag(device_t bus, device_t child)
sys/dev/ata/ata-pci.c
86
device_t child;
sys/dev/ata/ata-pci.h
533
int ata_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result);
sys/dev/ata/ata-pci.h
534
int ata_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value);
sys/dev/ata/ata-pci.h
535
uint32_t ata_pci_read_config(device_t dev, device_t child, int reg, int width);
sys/dev/ata/ata-pci.h
536
void ata_pci_write_config(device_t dev, device_t child, int reg,
sys/dev/ata/ata-pci.h
538
int ata_pci_print_child(device_t dev, device_t child);
sys/dev/ata/ata-pci.h
539
int ata_pci_child_location(device_t dev, device_t child, struct sbuf *sb);
sys/dev/ata/ata-pci.h
540
struct resource * ata_pci_alloc_resource(device_t dev, device_t child, int type, int rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags);
sys/dev/ata/ata-pci.h
541
int ata_pci_release_resource(device_t dev, device_t child, struct resource *r);
sys/dev/ata/ata-pci.h
542
int ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq, int flags, driver_filter_t *filter, driver_intr_t *function, void *argument, void **cookiep);
sys/dev/ata/ata-pci.h
543
int ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq, void *cookie);
sys/dev/ata/chipsets/ata-jmicron.c
113
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/dev/ata/chipsets/ata-jmicron.c
114
if (child != NULL) {
sys/dev/ata/chipsets/ata-jmicron.c
115
device_set_ivars(child, (void *)(intptr_t)-1);
sys/dev/ata/chipsets/ata-jmicron.c
93
device_t child;
sys/dev/ata/chipsets/ata-marvell.c
122
device_t child;
sys/dev/ata/chipsets/ata-marvell.c
128
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/dev/ata/chipsets/ata-marvell.c
129
if (child != NULL) {
sys/dev/ata/chipsets/ata-marvell.c
130
device_set_ivars(child, (void *)(intptr_t)-1);
sys/dev/ath/if_ath_sysctl.c
1028
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
1034
child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
1037
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, sn, CTLFLAG_RD, &sc->sc_stats.ast_rx_phy[i], 0, "");
sys/dev/ath/if_ath_sysctl.c
1047
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
1053
child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
1056
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, sn, CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1066
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
1074
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/ath/if_ath_sysctl.c
1076
child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
1080
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_watchdog", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1082
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_hardware", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1084
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_bmiss", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1086
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_bmiss_phantom", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1088
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_bstuck", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1090
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rxorn", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1092
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rxeol", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1094
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_txurn", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1096
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_mib", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1098
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_intrcoal", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1100
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_packets", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1102
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_mgmt", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1104
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_discard", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1106
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_qstop", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1108
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_encap", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1110
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nonode", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1112
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nombuf", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1114
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nomcl", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1116
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_linear", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1118
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nodata", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1120
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_busdma", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1122
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_xretries", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1124
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_fifoerr", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1126
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_filtered", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1128
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_shortretry", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1130
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_longretry", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1132
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_badrate", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1134
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_noack", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1136
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_rts", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1138
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_cts", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1140
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_shortpre", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1142
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_altrate", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1144
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_protect", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1146
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_ctsburst", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1148
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_ctsext", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1150
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_nombuf", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1152
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_busdma", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1154
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_orn", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1156
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_crcerr", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1158
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_fifoerr", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1160
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_badcrypt", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1162
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_badmic", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1164
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_phyerr", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1166
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_tooshort", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1168
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_toobig", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1170
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_packets", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1172
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_mgt", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1174
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_ctl", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1176
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_be_xmit", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1178
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_be_nombuf", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1180
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_per_cal", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1182
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_per_calfail", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1184
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_per_rfgain", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1186
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rate_calls", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1188
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rate_raise", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1190
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rate_drop", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1192
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ant_defswitch", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1194
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ant_txswitch", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1196
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_cabq_xmit", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1198
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_cabq_busy", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1200
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_raw", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1202
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ff_txok", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1204
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ff_txerr", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1206
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ff_rx", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1208
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ff_flush", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1210
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_qfull", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1212
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nobuf", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1214
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tdma_update", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1216
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tdma_timers", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1218
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tdma_tsf", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1220
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tdma_ack", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1222
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_raw_fail", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1224
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nofrag", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1226
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_be_missed", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1228
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_ani_cal", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1230
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_agg", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1233
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_halfgi", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1235
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_2040", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1237
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_pre_crc_err", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1239
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_post_crc_err", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1241
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_decrypt_busy_err", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1243
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_hi_rx_chain", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1245
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_htprotect", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1247
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_hitqueueend", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1249
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_timeout", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1251
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_cst", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1253
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_xtxop", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1255
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_timerexpired", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1257
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_desccfgerr", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1259
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_swretries", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1261
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_swretrymax", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1264
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_data_underrun", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1266
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_delim_underrun", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1268
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_aggr_failall", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1271
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_aggr_ok", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1274
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_aggr_fail", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1278
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_intr", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1280
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_intr", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1282
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_mcastq_overflow",
sys/dev/ath/if_ath_sysctl.c
1285
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_keymiss", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1287
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_swfiltered", CTLFLAG_RD,
sys/dev/ath/if_ath_sysctl.c
1289
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_nodeq_overflow",
sys/dev/ath/if_ath_sysctl.c
1292
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_stbc",
sys/dev/ath/if_ath_sysctl.c
1295
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_stbc",
sys/dev/ath/if_ath_sysctl.c
1298
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_ldpc",
sys/dev/ath/if_ath_sysctl.c
1302
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tsfoor",
sys/dev/ath/if_ath_sysctl.c
1307
ath_sysctl_stats_attach_rxphyerr(sc, child);
sys/dev/ath/if_ath_sysctl.c
1310
ath_sysctl_stats_attach_intr(sc, child);
sys/dev/ath/if_ath_sysctl.c
1322
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
1324
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "hal",
sys/dev/ath/if_ath_sysctl.c
1326
child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
1329
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "debug", CTLFLAG_RW,
sys/dev/ath/if_ath_sysctl.c
1333
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "ar5416_biasadj", CTLFLAG_RW,
sys/dev/ath/if_ath_sysctl.c
1338
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "dma_brt", CTLFLAG_RW,
sys/dev/ath/if_ath_sysctl.c
1343
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "sw_brt", CTLFLAG_RW,
sys/dev/ath/if_ath_sysctl.c
1348
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "swba_backoff", CTLFLAG_RW,
sys/dev/ath/if_ath_sysctl.c
1353
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "force_full_reset", CTLFLAG_RW,
sys/dev/ath/if_ath_sysctl.c
1360
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "serialise_reg_war", CTLFLAG_RW,
sys/dev/ath/if_ath_sysctl.c
787
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
789
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "alq",
sys/dev/ath/if_ath_sysctl.c
792
child = SYSCTL_CHILDREN(tree);
sys/dev/ath/if_ath_sysctl.c
794
SYSCTL_ADD_STRING(ctx, child, OID_AUTO, "filename",
sys/dev/atkbdc/atkbdc_isa.c
252
device_t child;
sys/dev/atkbdc/atkbdc_isa.c
261
child = device_add_child_ordered(bus, order, name, unit);
sys/dev/atkbdc/atkbdc_isa.c
262
if (child == NULL) {
sys/dev/atkbdc/atkbdc_isa.c
264
return child;
sys/dev/atkbdc/atkbdc_isa.c
288
device_disable(child);
sys/dev/atkbdc/atkbdc_isa.c
290
device_set_ivars(child, ivar);
sys/dev/atkbdc/atkbdc_isa.c
292
return child;
sys/dev/atkbdc/atkbdc_isa.c
296
atkbdc_isa_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/atkbdc/atkbdc_isa.c
304
return (bus_generic_rl_alloc_resource(dev, child, type, rid, start,
sys/dev/atkbdc/atkbdc_isa.c
309
atkbdc_isa_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/atkbdc/atkbdc_isa.c
316
return (bus_generic_rl_release_resource(dev, child, r));
sys/dev/atkbdc/atkbdc_isa.c
52
static struct resource *atkbdc_isa_alloc_resource(device_t dev, device_t child,
sys/dev/atkbdc/atkbdc_isa.c
55
static int atkbdc_isa_release_resource(device_t dev, device_t child,
sys/dev/atopcase/atopcase.c
559
atopcase_get_child_by_hidbus(device_t child)
sys/dev/atopcase/atopcase.c
561
device_t parent = device_get_parent(child);
sys/dev/atopcase/atopcase.c
564
if (child == sc->sc_kb.hidbus)
sys/dev/atopcase/atopcase.c
566
if (child == sc->sc_tp.hidbus)
sys/dev/atopcase/atopcase.c
572
atopcase_intr_setup(device_t dev, device_t child, hid_intr_t intr,
sys/dev/atopcase/atopcase.c
575
struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
sys/dev/atopcase/atopcase.c
590
atopcase_intr_unsetup(device_t dev, device_t child)
sys/dev/atopcase/atopcase.c
595
atopcase_intr_start(device_t dev, device_t child)
sys/dev/atopcase/atopcase.c
598
struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
sys/dev/atopcase/atopcase.c
618
atopcase_intr_stop(device_t dev, device_t child)
sys/dev/atopcase/atopcase.c
621
struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
sys/dev/atopcase/atopcase.c
641
atopcase_intr_poll(device_t dev, device_t child)
sys/dev/atopcase/atopcase.c
649
atopcase_get_rdesc(device_t dev, device_t child, void *buf, hid_size_t len)
sys/dev/atopcase/atopcase.c
651
struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
sys/dev/atopcase/atopcase.c
661
atopcase_set_report(device_t dev, device_t child, const void *buf,
sys/dev/atopcase/atopcase.c
665
struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
sys/dev/bge/if_bge.c
6439
struct sysctl_oid_list *child, *schild;
sys/dev/bge/if_bge.c
6445
schild = child = SYSCTL_CHILDREN(tree);
sys/dev/bge/if_bge.c
6446
BGE_SYSCTL_STAT_ADD64(ctx, child, "FramesDroppedDueToFilters",
sys/dev/bge/if_bge.c
6448
BGE_SYSCTL_STAT_ADD64(ctx, child, "DmaWriteQueueFull",
sys/dev/bge/if_bge.c
6450
BGE_SYSCTL_STAT_ADD64(ctx, child, "DmaWriteHighPriQueueFull",
sys/dev/bge/if_bge.c
6453
BGE_SYSCTL_STAT_ADD64(ctx, child, "NoMoreRxBDs",
sys/dev/bge/if_bge.c
6455
BGE_SYSCTL_STAT_ADD64(ctx, child, "InputDiscards",
sys/dev/bge/if_bge.c
6457
BGE_SYSCTL_STAT_ADD64(ctx, child, "InputErrors",
sys/dev/bge/if_bge.c
6459
BGE_SYSCTL_STAT_ADD64(ctx, child, "RecvThresholdHit",
sys/dev/bge/if_bge.c
6464
child = SYSCTL_CHILDREN(tree);
sys/dev/bge/if_bge.c
6465
BGE_SYSCTL_STAT_ADD64(ctx, child, "ifHCInOctets",
sys/dev/bge/if_bge.c
6467
BGE_SYSCTL_STAT_ADD64(ctx, child, "Fragments",
sys/dev/bge/if_bge.c
6469
BGE_SYSCTL_STAT_ADD64(ctx, child, "UnicastPkts",
sys/dev/bge/if_bge.c
6471
BGE_SYSCTL_STAT_ADD64(ctx, child, "MulticastPkts",
sys/dev/bge/if_bge.c
6473
BGE_SYSCTL_STAT_ADD64(ctx, child, "BroadcastPkts",
sys/dev/bge/if_bge.c
6475
BGE_SYSCTL_STAT_ADD64(ctx, child, "FCSErrors",
sys/dev/bge/if_bge.c
6477
BGE_SYSCTL_STAT_ADD64(ctx, child, "AlignmentErrors",
sys/dev/bge/if_bge.c
6479
BGE_SYSCTL_STAT_ADD64(ctx, child, "xonPauseFramesReceived",
sys/dev/bge/if_bge.c
6481
BGE_SYSCTL_STAT_ADD64(ctx, child, "xoffPauseFramesReceived",
sys/dev/bge/if_bge.c
6483
BGE_SYSCTL_STAT_ADD64(ctx, child, "ControlFramesReceived",
sys/dev/bge/if_bge.c
6485
BGE_SYSCTL_STAT_ADD64(ctx, child, "xoffStateEntered",
sys/dev/bge/if_bge.c
6487
BGE_SYSCTL_STAT_ADD64(ctx, child, "FramesTooLong",
sys/dev/bge/if_bge.c
6489
BGE_SYSCTL_STAT_ADD64(ctx, child, "Jabbers",
sys/dev/bge/if_bge.c
6491
BGE_SYSCTL_STAT_ADD64(ctx, child, "UndersizePkts",
sys/dev/bge/if_bge.c
6496
child = SYSCTL_CHILDREN(tree);
sys/dev/bge/if_bge.c
6497
BGE_SYSCTL_STAT_ADD64(ctx, child, "ifHCOutOctets",
sys/dev/bge/if_bge.c
6499
BGE_SYSCTL_STAT_ADD64(ctx, child, "Collisions",
sys/dev/bge/if_bge.c
6501
BGE_SYSCTL_STAT_ADD64(ctx, child, "XonSent",
sys/dev/bge/if_bge.c
6503
BGE_SYSCTL_STAT_ADD64(ctx, child, "XoffSent",
sys/dev/bge/if_bge.c
6505
BGE_SYSCTL_STAT_ADD64(ctx, child, "InternalMacTransmitErrors",
sys/dev/bge/if_bge.c
6508
BGE_SYSCTL_STAT_ADD64(ctx, child, "SingleCollisionFrames",
sys/dev/bge/if_bge.c
6510
BGE_SYSCTL_STAT_ADD64(ctx, child, "MultipleCollisionFrames",
sys/dev/bge/if_bge.c
6513
BGE_SYSCTL_STAT_ADD64(ctx, child, "DeferredTransmissions",
sys/dev/bge/if_bge.c
6515
BGE_SYSCTL_STAT_ADD64(ctx, child, "ExcessiveCollisions",
sys/dev/bge/if_bge.c
6517
BGE_SYSCTL_STAT_ADD64(ctx, child, "LateCollisions",
sys/dev/bge/if_bge.c
6519
BGE_SYSCTL_STAT_ADD64(ctx, child, "UnicastPkts",
sys/dev/bge/if_bge.c
6521
BGE_SYSCTL_STAT_ADD64(ctx, child, "MulticastPkts",
sys/dev/bge/if_bge.c
6523
BGE_SYSCTL_STAT_ADD64(ctx, child, "BroadcastPkts",
sys/dev/bhnd/bcma/bcma.c
100
device_t child;
sys/dev/bhnd/bcma/bcma.c
102
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/bhnd/bcma/bcma.c
103
if (child == NULL)
sys/dev/bhnd/bcma/bcma.c
107
device_delete_child(dev, child);
sys/dev/bhnd/bcma/bcma.c
111
device_set_ivars(child, dinfo);
sys/dev/bhnd/bcma/bcma.c
113
return (child);
sys/dev/bhnd/bcma/bcma.c
117
bcma_child_deleted(device_t dev, device_t child)
sys/dev/bhnd/bcma/bcma.c
122
bhnd_generic_child_deleted(dev, child);
sys/dev/bhnd/bcma/bcma.c
125
if ((dinfo = device_get_ivars(child)) != NULL)
sys/dev/bhnd/bcma/bcma.c
126
bcma_free_dinfo(dev, child, dinfo);
sys/dev/bhnd/bcma/bcma.c
128
device_set_ivars(child, NULL);
sys/dev/bhnd/bcma/bcma.c
132
bcma_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/bhnd/bcma/bcma.c
137
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
174
bcma_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/bhnd/bcma/bcma.c
178
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
199
bcma_get_resource_list(device_t dev, device_t child)
sys/dev/bhnd/bcma/bcma.c
201
struct bcma_devinfo *dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
206
bcma_read_iost(device_t dev, device_t child, uint16_t *iost)
sys/dev/bhnd/bcma/bcma.c
211
if ((error = bhnd_read_config(child, BCMA_DMP_IOSTATUS, &value, 4)))
sys/dev/bhnd/bcma/bcma.c
220
bcma_read_ioctl(device_t dev, device_t child, uint16_t *ioctl)
sys/dev/bhnd/bcma/bcma.c
225
if ((error = bhnd_read_config(child, BCMA_DMP_IOCTRL, &value, 4)))
sys/dev/bhnd/bcma/bcma.c
234
bcma_write_ioctl(device_t dev, device_t child, uint16_t value, uint16_t mask)
sys/dev/bhnd/bcma/bcma.c
240
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma.c
243
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
262
bcma_is_hw_suspended(device_t dev, device_t child)
sys/dev/bhnd/bcma/bcma.c
269
error = bhnd_read_config(child, BCMA_DMP_RESETCTRL, &rst, 4);
sys/dev/bhnd/bcma/bcma.c
271
device_printf(child, "error reading HW reset state: %d\n",
sys/dev/bhnd/bcma/bcma.c
280
error = bhnd_read_ioctl(child, &ioctl);
sys/dev/bhnd/bcma/bcma.c
282
device_printf(child, "error reading HW ioctl register: %d\n",
sys/dev/bhnd/bcma/bcma.c
294
bcma_reset_hw(device_t dev, device_t child, uint16_t ioctl,
sys/dev/bhnd/bcma/bcma.c
302
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma.c
305
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
317
if ((error = bhnd_suspend_hw(child, reset_ioctl)))
sys/dev/bhnd/bcma/bcma.c
327
if ((error = bhnd_write_ioctl(child, ioctl | clkflags, UINT16_MAX)))
sys/dev/bhnd/bcma/bcma.c
331
if ((error = bcma_dmp_write_reset(child, dinfo, 0x0)))
sys/dev/bhnd/bcma/bcma.c
335
error = bhnd_write_ioctl(child, 0x0, BHND_IOCTL_CLK_FORCE);
sys/dev/bhnd/bcma/bcma.c
343
bcma_suspend_hw(device_t dev, device_t child, uint16_t ioctl)
sys/dev/bhnd/bcma/bcma.c
350
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma.c
353
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
365
if ((error = bcma_dmp_wait_reset(child, dinfo)))
sys/dev/bhnd/bcma/bcma.c
369
if ((error = bcma_dmp_write_reset(child, dinfo, BCMA_DMP_RC_RESET)))
sys/dev/bhnd/bcma/bcma.c
373
if ((error = bhnd_write_ioctl(child, ioctl, ~clkflags)))
sys/dev/bhnd/bcma/bcma.c
380
bcma_read_config(device_t dev, device_t child, bus_size_t offset, void *value,
sys/dev/bhnd/bcma/bcma.c
387
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma.c
391
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
418
bcma_write_config(device_t dev, device_t child, bus_size_t offset,
sys/dev/bhnd/bcma/bcma.c
425
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma.c
429
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
456
bcma_get_port_count(device_t dev, device_t child, bhnd_port_type type)
sys/dev/bhnd/bcma/bcma.c
461
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma.c
462
return (BHND_BUS_GET_PORT_COUNT(device_get_parent(dev), child,
sys/dev/bhnd/bcma/bcma.c
465
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
482
bcma_get_region_count(device_t dev, device_t child, bhnd_port_type type,
sys/dev/bhnd/bcma/bcma.c
490
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma.c
491
return (BHND_BUS_GET_REGION_COUNT(device_get_parent(dev), child,
sys/dev/bhnd/bcma/bcma.c
494
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
507
bcma_get_port_rid(device_t dev, device_t child, bhnd_port_type port_type,
sys/dev/bhnd/bcma/bcma.c
515
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
531
bcma_decode_port_rid(device_t dev, device_t child, int type, int rid,
sys/dev/bhnd/bcma/bcma.c
539
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
573
bcma_get_region_addr(device_t dev, device_t child, bhnd_port_type port_type,
sys/dev/bhnd/bcma/bcma.c
581
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
607
bcma_get_intr_count(device_t dev, device_t child)
sys/dev/bhnd/bcma/bcma.c
612
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma.c
613
return (BHND_BUS_GET_INTR_COUNT(device_get_parent(dev), child));
sys/dev/bhnd/bcma/bcma.c
615
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
623
bcma_get_intr_ivec(device_t dev, device_t child, u_int intr, u_int *ivec)
sys/dev/bhnd/bcma/bcma.c
629
if (device_get_parent(child) != dev) {
sys/dev/bhnd/bcma/bcma.c
630
return (BHND_BUS_GET_INTR_IVEC(device_get_parent(dev), child,
sys/dev/bhnd/bcma/bcma.c
634
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
662
device_t child;
sys/dev/bhnd/bcma/bcma.c
680
child = BUS_ADD_CHILD(bus, 0, NULL, DEVICE_UNIT_ANY);
sys/dev/bhnd/bcma/bcma.c
681
if (child == NULL) {
sys/dev/bhnd/bcma/bcma.c
687
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma.c
688
if ((error = bcma_init_dinfo(bus, child, dinfo, corecfg)))
sys/dev/bhnd/bcma/bcma.c
696
if (bhnd_is_hw_disabled(child))
sys/dev/bhnd/bcma/bcma.c
697
device_disable(child);
sys/dev/bhnd/bcma/bcma.c
700
BHND_BUS_CHILD_ADDED(bus, child);
sys/dev/bhnd/bcma/bcma_bhndb.c
100
if (device_is_suspended(child))
sys/dev/bhnd/bcma/bcma_bhndb.c
103
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma_bhndb.c
106
if ((error = bhnd_generic_br_suspend_child(dev, child)))
sys/dev/bhnd/bcma/bcma_bhndb.c
118
bcma_bhndb_resume_child(device_t dev, device_t child)
sys/dev/bhnd/bcma/bcma_bhndb.c
123
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma_bhndb.c
124
BUS_SUSPEND_CHILD(device_get_parent(dev), child);
sys/dev/bhnd/bcma/bcma_bhndb.c
126
if (!device_is_suspended(child))
sys/dev/bhnd/bcma/bcma_bhndb.c
129
dinfo = device_get_ivars(child);
sys/dev/bhnd/bcma/bcma_bhndb.c
140
if ((error = bhnd_generic_br_resume_child(dev, child))) {
sys/dev/bhnd/bcma/bcma_bhndb.c
92
bcma_bhndb_suspend_child(device_t dev, device_t child)
sys/dev/bhnd/bcma/bcma_bhndb.c
97
if (device_get_parent(child) != dev)
sys/dev/bhnd/bcma/bcma_bhndb.c
98
BUS_SUSPEND_CHILD(device_get_parent(dev), child);
sys/dev/bhnd/bcma/bcma_subr.c
212
bcma_dinfo_init_agent(device_t bus, device_t child, struct bcma_devinfo *dinfo)
sys/dev/bhnd/bcma/bcma_subr.c
223
if (bhnd_get_port_rid(child, BHND_PORT_AGENT, 0, 0) == -1)
sys/dev/bhnd/bcma/bcma_subr.c
227
error = bhnd_get_region_addr(child, BHND_PORT_AGENT, 0, 0,
sys/dev/bhnd/bcma/bcma_subr.c
263
bcma_dinfo_init_intrs(device_t bus, device_t child,
sys/dev/bhnd/bcma/bcma_subr.c
359
bcma_init_dinfo(device_t bus, device_t child, struct bcma_devinfo *dinfo,
sys/dev/bhnd/bcma/bcma_subr.c
378
if ((error = bcma_dinfo_init_agent(bus, child, dinfo)))
sys/dev/bhnd/bcma/bcma_subr.c
383
if ((error = bcma_dinfo_init_intrs(bus, child, dinfo)))
sys/dev/bhnd/bcma/bcma_subr.c
393
error = BHND_BUS_MAP_INTR(bus, child, intr->i_sel,
sys/dev/bhnd/bcma/bcma_subr.c
425
bcma_free_dinfo(device_t bus, device_t child, struct bcma_devinfo *dinfo)
sys/dev/bhnd/bcma/bcma_subr.c
445
BHND_BUS_UNMAP_INTR(bus, child, intr->i_irq);
sys/dev/bhnd/bcma/bcma_subr.c
553
bcma_dmp_wait_reset(device_t child, struct bcma_devinfo *dinfo)
sys/dev/bhnd/bcma/bcma_subr.c
571
device_printf(child, "BCMA_DMP_RESETSTATUS timeout\n");
sys/dev/bhnd/bcma/bcma_subr.c
588
bcma_dmp_write_reset(device_t child, struct bcma_devinfo *dinfo, uint32_t value)
sys/dev/bhnd/bcma/bcma_subr.c
604
return (bcma_dmp_wait_reset(child, dinfo));
sys/dev/bhnd/bcma/bcmavar.h
109
int bcma_dmp_wait_reset(device_t child,
sys/dev/bhnd/bcma/bcmavar.h
111
int bcma_dmp_write_reset(device_t child,
sys/dev/bhnd/bcma/bcmavar.h
82
u_int bcma_get_intr_count(device_t dev, device_t child);
sys/dev/bhnd/bcma/bcmavar.h
83
int bcma_get_intr_ivec(device_t dev, device_t child,
sys/dev/bhnd/bcma/bcmavar.h
92
int bcma_init_dinfo(device_t bus, device_t child,
sys/dev/bhnd/bcma/bcmavar.h
95
void bcma_free_dinfo(device_t bus, device_t child,
sys/dev/bhnd/bhnd.c
1000
device_get_parent(dev), child, r, offset, \
sys/dev/bhnd/bhnd.c
1006
bhnd_ ## _op (device_t dev, device_t child, \
sys/dev/bhnd/bhnd.c
1010
BHND_BUS_ ## _method(device_get_parent(dev), child, r, \
sys/dev/bhnd/bhnd.c
1049
bhnd_barrier(device_t dev, device_t child, struct bhnd_resource *r,
sys/dev/bhnd/bhnd.c
1052
BHND_BUS_BARRIER(device_get_parent(dev), child, r, offset, length,
sys/dev/bhnd/bhnd.c
142
device_t child = devs[i];
sys/dev/bhnd/bhnd.c
145
if ((error = device_delete_child(sc->dev, child)))
sys/dev/bhnd/bhnd.c
203
device_t child = devs[i];
sys/dev/bhnd/bhnd.c
206
if ((error = device_shutdown(child)))
sys/dev/bhnd/bhnd.c
240
device_t child = devs[i];
sys/dev/bhnd/bhnd.c
243
if ((error = BUS_RESUME_CHILD(device_get_parent(child), child)))
sys/dev/bhnd/bhnd.c
279
device_t child = devs[i];
sys/dev/bhnd/bhnd.c
280
error = BUS_SUSPEND_CHILD(device_get_parent(child), child);
sys/dev/bhnd/bhnd.c
306
bhnd_generic_get_probe_order(device_t dev, device_t child)
sys/dev/bhnd/bhnd.c
308
switch (bhnd_get_class(child)) {
sys/dev/bhnd/bhnd.c
348
if (bhnd_bus_find_hostb_device(dev) == child)
sys/dev/bhnd/bhnd.c
361
bhnd_generic_alloc_pmu(device_t dev, device_t child)
sys/dev/bhnd/bhnd.c
377
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
381
clkctl = bhnd_get_pmu_info(child);
sys/dev/bhnd/bhnd.c
387
device_get_nameunit(child));
sys/dev/bhnd/bhnd.c
391
error = bhnd_get_region_addr(child, BHND_PORT_DEVICE, 0, 0, &r_addr,
sys/dev/bhnd/bhnd.c
395
"%s: %d\n", device_get_nameunit(child), error);
sys/dev/bhnd/bhnd.c
402
device_get_nameunit(child));
sys/dev/bhnd/bhnd.c
407
if ((rl = BUS_GET_RESOURCE_LIST(dev, child)) == NULL) {
sys/dev/bhnd/bhnd.c
409
device_get_nameunit(child));
sys/dev/bhnd/bhnd.c
415
"for %s\n", device_get_nameunit(child));
sys/dev/bhnd/bhnd.c
421
"%s\n", device_get_nameunit(child));
sys/dev/bhnd/bhnd.c
430
device_get_nameunit(child));
sys/dev/bhnd/bhnd.c
446
pmu_dev = bhnd_retain_provider(child, BHND_SERVICE_PMU);
sys/dev/bhnd/bhnd.c
460
bhnd_release_provider(child, pmu_dev, BHND_SERVICE_PMU);
sys/dev/bhnd/bhnd.c
468
clkctl = bhnd_alloc_core_clkctl(child, pmu_dev, r, pmu_regs,
sys/dev/bhnd/bhnd.c
472
bhnd_release_provider(child, pmu_dev, BHND_SERVICE_PMU);
sys/dev/bhnd/bhnd.c
476
bhnd_set_pmu_info(child, clkctl);
sys/dev/bhnd/bhnd.c
484
bhnd_generic_release_pmu(device_t dev, device_t child)
sys/dev/bhnd/bhnd.c
492
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
495
clkctl = bhnd_get_pmu_info(child);
sys/dev/bhnd/bhnd.c
497
panic("pmu over-release for %s", device_get_nameunit(child));
sys/dev/bhnd/bhnd.c
514
bhnd_set_pmu_info(child, NULL);
sys/dev/bhnd/bhnd.c
528
bhnd_release_provider(child, pmu_dev, BHND_SERVICE_PMU);
sys/dev/bhnd/bhnd.c
537
bhnd_generic_get_clock_latency(device_t dev, device_t child, bhnd_clock clock,
sys/dev/bhnd/bhnd.c
542
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
545
if ((clkctl = bhnd_get_pmu_info(child)) == NULL)
sys/dev/bhnd/bhnd.c
555
bhnd_generic_get_clock_freq(device_t dev, device_t child, bhnd_clock clock,
sys/dev/bhnd/bhnd.c
560
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
563
if ((clkctl = bhnd_get_pmu_info(child)) == NULL)
sys/dev/bhnd/bhnd.c
573
bhnd_generic_request_clock(device_t dev, device_t child, bhnd_clock clock)
sys/dev/bhnd/bhnd.c
580
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
583
if ((clkctl = bhnd_get_pmu_info(child)) == NULL)
sys/dev/bhnd/bhnd.c
628
bhnd_generic_enable_clocks(device_t dev, device_t child, uint32_t clocks)
sys/dev/bhnd/bhnd.c
635
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
638
if ((clkctl = bhnd_get_pmu_info(child)) == NULL)
sys/dev/bhnd/bhnd.c
689
bhnd_generic_request_ext_rsrc(device_t dev, device_t child, u_int rsrc)
sys/dev/bhnd/bhnd.c
696
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
699
if ((clkctl = bhnd_get_pmu_info(child)) == NULL)
sys/dev/bhnd/bhnd.c
727
bhnd_generic_release_ext_rsrc(device_t dev, device_t child, u_int rsrc)
sys/dev/bhnd/bhnd.c
732
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
735
if ((clkctl = bhnd_get_pmu_info(child)) == NULL)
sys/dev/bhnd/bhnd.c
762
bhnd_generic_is_region_valid(device_t dev, device_t child,
sys/dev/bhnd/bhnd.c
765
if (port >= bhnd_get_port_count(child, type))
sys/dev/bhnd/bhnd.c
768
if (region >= bhnd_get_region_count(child, type, port))
sys/dev/bhnd/bhnd.c
783
bhnd_generic_get_nvram_var(device_t dev, device_t child, const char *name,
sys/dev/bhnd/bhnd.c
790
nvram = bhnd_retain_provider(child, BHND_SERVICE_NVRAM);
sys/dev/bhnd/bhnd.c
793
bhnd_release_provider(child, nvram, BHND_SERVICE_NVRAM);
sys/dev/bhnd/bhnd.c
801
return (BHND_BUS_GET_NVRAM_VAR(device_get_parent(dev), child,
sys/dev/bhnd/bhnd.c
812
bhnd_generic_print_child(device_t dev, device_t child)
sys/dev/bhnd/bhnd.c
817
retval += bus_print_child_header(dev, child);
sys/dev/bhnd/bhnd.c
819
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/dev/bhnd/bhnd.c
829
retval += printf(" at core %u", bhnd_get_core_index(child));
sys/dev/bhnd/bhnd.c
831
retval += bus_print_child_domain(dev, child);
sys/dev/bhnd/bhnd.c
832
retval += bus_print_child_footer(dev, child);
sys/dev/bhnd/bhnd.c
844
bhnd_generic_probe_nomatch(device_t dev, device_t child)
sys/dev/bhnd/bhnd.c
853
if (nm->vendor != bhnd_get_vendor(child))
sys/dev/bhnd/bhnd.c
856
if (nm->device != bhnd_get_device(child))
sys/dev/bhnd/bhnd.c
869
device_printf(dev, "<%s %s, rev %hhu>", bhnd_get_vendor_name(child),
sys/dev/bhnd/bhnd.c
870
bhnd_get_device_name(child), bhnd_get_hwrev(child));
sys/dev/bhnd/bhnd.c
872
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/dev/bhnd/bhnd.c
879
bhnd_get_core_index(child));
sys/dev/bhnd/bhnd.c
883
bhnd_child_pnpinfo(device_t dev, device_t child, struct sbuf *sb)
sys/dev/bhnd/bhnd.c
885
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
886
return (BUS_CHILD_PNPINFO(device_get_parent(dev), child, sb));
sys/dev/bhnd/bhnd.c
889
bhnd_get_vendor(child), bhnd_get_device(child),
sys/dev/bhnd/bhnd.c
890
bhnd_get_hwrev(child));
sys/dev/bhnd/bhnd.c
896
bhnd_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/bhnd/bhnd.c
901
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
902
return (BUS_CHILD_LOCATION(device_get_parent(dev), child, sb));
sys/dev/bhnd/bhnd.c
904
if (bhnd_get_region_addr(child, BHND_PORT_DEVICE, 0, 0, &addr, &size))
sys/dev/bhnd/bhnd.c
918
bhnd_generic_child_deleted(device_t dev, device_t child)
sys/dev/bhnd/bhnd.c
922
if (bhnd_get_pmu_info(child) != NULL) {
sys/dev/bhnd/bhnd.c
927
device_get_nameunit(child));
sys/dev/bhnd/bhnd.c
940
bhnd_generic_suspend_child(device_t dev, device_t child)
sys/dev/bhnd/bhnd.c
942
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
943
BUS_SUSPEND_CHILD(device_get_parent(dev), child);
sys/dev/bhnd/bhnd.c
945
return bus_generic_suspend_child(dev, child);
sys/dev/bhnd/bhnd.c
957
bhnd_generic_resume_child(device_t dev, device_t child)
sys/dev/bhnd/bhnd.c
959
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhnd.c
960
BUS_RESUME_CHILD(device_get_parent(dev), child);
sys/dev/bhnd/bhnd.c
962
return bus_generic_resume_child(dev, child);
sys/dev/bhnd/bhnd.c
972
bhnd_generic_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/bhnd/bhnd.c
976
return (bus_generic_setup_intr(dev, child, irq, flags, filter, intr,
sys/dev/bhnd/bhnd.c
987
bhnd_read_ ## _name (device_t dev, device_t child, \
sys/dev/bhnd/bhnd.c
991
device_get_parent(dev), child, r, offset)); \
sys/dev/bhnd/bhnd.c
996
bhnd_write_ ## _name (device_t dev, device_t child, \
sys/dev/bhnd/bhnd.h
578
device_t dev, device_t child,
sys/dev/bhnd/bhnd.h
581
device_t dev, device_t child,
sys/dev/bhnd/bhnd.h
584
device_t child, bhnd_service_t service);
sys/dev/bhnd/bhnd.h
586
device_t child, device_t provider,
sys/dev/bhnd/bhnd.h
590
device_t dev, device_t child,
sys/dev/bhnd/bhnd.h
593
device_t dev, device_t child,
sys/dev/bhnd/bhnd.h
596
device_t child, bhnd_service_t service);
sys/dev/bhnd/bhnd.h
598
device_t child, device_t provider,
sys/dev/bhnd/bhnd.h
602
device_t child);
sys/dev/bhnd/bhnd.h
604
device_t child, bhnd_port_type type,
sys/dev/bhnd/bhnd.h
607
device_t child, const char *name,
sys/dev/bhnd/bhnd.h
611
device_t child);
sys/dev/bhnd/bhnd.h
613
device_t dev, device_t child, u_int width,
sys/dev/bhnd/bhnd.h
617
device_t child,
sys/dev/bhnd/bhnd.h
620
device_t child, int type, int rid,
sys/dev/bhnd/bhnd.h
624
device_t child, struct bhnd_resource *r);
sys/dev/bhnd/bhnd.h
626
device_t child, struct bhnd_resource *r);
sys/dev/bhnd/bhnd.h
628
device_t child, struct bhnd_resource *r);
sys/dev/bhnd/bhnd.h
630
device_t child, bool self);
sys/dev/bhnd/bhnd_subr.c
1832
bhnd_bus_generic_register_provider(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
1838
return (BHND_BUS_REGISTER_PROVIDER(parent, child,
sys/dev/bhnd/bhnd_subr.c
1853
bhnd_bus_generic_deregister_provider(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
1859
return (BHND_BUS_DEREGISTER_PROVIDER(parent, child,
sys/dev/bhnd/bhnd_subr.c
1874
bhnd_bus_generic_retain_provider(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
1880
return (BHND_BUS_RETAIN_PROVIDER(parent, child,
sys/dev/bhnd/bhnd_subr.c
1895
bhnd_bus_generic_release_provider(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
1901
return (BHND_BUS_RELEASE_PROVIDER(parent, child,
sys/dev/bhnd/bhnd_subr.c
1916
bhnd_bus_generic_sr_register_provider(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
1921
bsr = BHND_BUS_GET_SERVICE_REGISTRY(dev, child);
sys/dev/bhnd/bhnd_subr.c
1936
bhnd_bus_generic_sr_deregister_provider(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
1941
bsr = BHND_BUS_GET_SERVICE_REGISTRY(dev, child);
sys/dev/bhnd/bhnd_subr.c
1960
bhnd_bus_generic_sr_retain_provider(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
1967
bsr = BHND_BUS_GET_SERVICE_REGISTRY(dev, child);
sys/dev/bhnd/bhnd_subr.c
2021
bhnd_bus_generic_sr_release_provider(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
2026
bsr = BHND_BUS_GET_SERVICE_REGISTRY(dev, child);
sys/dev/bhnd/bhnd_subr.c
2050
bhnd_bus_generic_is_hw_disabled(device_t dev, device_t child)
sys/dev/bhnd/bhnd_subr.c
2053
return (BHND_BUS_IS_HW_DISABLED(device_get_parent(dev), child));
sys/dev/bhnd/bhnd_subr.c
2066
bhnd_bus_generic_get_chipid(device_t dev, device_t child)
sys/dev/bhnd/bhnd_subr.c
2069
return (BHND_BUS_GET_CHIPID(device_get_parent(dev), child));
sys/dev/bhnd/bhnd_subr.c
2083
bhnd_bus_generic_get_dma_translation(device_t dev, device_t child, u_int width,
sys/dev/bhnd/bhnd_subr.c
2089
child, width, flags, dmat, translation));
sys/dev/bhnd/bhnd_subr.c
2097
bhnd_nvram_getvar_uint(child, BHND_NVAR_ ## _name, &_dest, \
sys/dev/bhnd/bhnd_subr.c
2132
bhnd_bus_generic_read_board_info(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
2164
bhnd_bus_generic_get_nvram_var(device_t dev, device_t child, const char *name,
sys/dev/bhnd/bhnd_subr.c
2180
return (BHND_BUS_GET_NVRAM_VAR(device_get_parent(dev), child,
sys/dev/bhnd/bhnd_subr.c
2192
bhnd_bus_generic_alloc_resource(device_t dev, device_t child, int type,
sys/dev/bhnd/bhnd_subr.c
2204
res = BUS_ALLOC_RESOURCE(dev, child, type, rid, start, end, count,
sys/dev/bhnd/bhnd_subr.c
2219
error = BHND_BUS_ACTIVATE_RESOURCE(dev, child, br);
sys/dev/bhnd/bhnd_subr.c
2228
BUS_RELEASE_RESOURCE(dev, child, res);
sys/dev/bhnd/bhnd_subr.c
2241
bhnd_bus_generic_release_resource(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
2246
if ((error = BUS_RELEASE_RESOURCE(dev, child, r->res)))
sys/dev/bhnd/bhnd_subr.c
2265
bhnd_bus_generic_activate_resource(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
2271
passthrough = (device_get_parent(child) != dev);
sys/dev/bhnd/bhnd_subr.c
2276
child, r);
sys/dev/bhnd/bhnd_subr.c
2285
error = bus_activate_resource(child, r->res);
sys/dev/bhnd/bhnd_subr.c
2300
bhnd_bus_generic_deactivate_resource(device_t dev, device_t child,
sys/dev/bhnd/bhnd_subr.c
2305
child, r));
sys/dev/bhnd/bhnd_subr.c
2317
bhnd_bus_generic_get_intr_domain(device_t dev, device_t child, bool self)
sys/dev/bhnd/bhnd_subr.c
572
device_t child = devs[i];
sys/dev/bhnd/bhnd_subr.c
573
device_probe_and_attach(child);
sys/dev/bhnd/bhndb/bhnd_bhndb.c
101
return (BHND_BUS_MAP_INTR(device_get_parent(dev), child, intr, irq));
sys/dev/bhnd/bhndb/bhnd_bhndb.c
105
bhnd_bhndb_unmap_intr(device_t dev, device_t child, rman_res_t irq)
sys/dev/bhnd/bhndb/bhnd_bhndb.c
108
return (BHND_BUS_UNMAP_INTR(device_get_parent(dev), child, irq));
sys/dev/bhnd/bhndb/bhnd_bhndb.c
112
bhnd_bhndb_pwrctl_get_clksrc(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhnd_bhndb.c
116
return (BHND_PWRCTL_HOSTB_GET_CLKSRC(device_get_parent(dev), child,
sys/dev/bhnd/bhndb/bhnd_bhndb.c
121
bhnd_bhndb_pwrctl_gate_clock(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhnd_bhndb.c
125
return (BHND_PWRCTL_HOSTB_GATE_CLOCK(device_get_parent(dev), child,
sys/dev/bhnd/bhndb/bhnd_bhndb.c
130
bhnd_bhndb_pwrctl_ungate_clock(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhnd_bhndb.c
134
return (BHND_PWRCTL_HOSTB_UNGATE_CLOCK(device_get_parent(dev), child,
sys/dev/bhnd/bhndb/bhnd_bhndb.c
139
bhnd_bhndb_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/bhnd/bhndb/bhnd_bhndb.c
147
core = child;
sys/dev/bhnd/bhndb/bhnd_bhndb.c
156
device_get_nameunit(child), device_get_nameunit(dev)));
sys/dev/bhnd/bhndb/bhnd_bhndb.c
165
return (bhnd_generic_setup_intr(dev, child, irq, flags, filter, intr,
sys/dev/bhnd/bhndb/bhnd_bhndb.c
52
bhnd_bhndb_read_board_info(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhnd_bhndb.c
58
if ((error = bhnd_bus_generic_read_board_info(dev, child, info)))
sys/dev/bhnd/bhndb/bhnd_bhndb.c
66
bhnd_bhndb_get_attach_type(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhnd_bhndb.c
73
bhnd_bhndb_is_hw_disabled(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhnd_bhndb.c
75
struct bhnd_core_info core = bhnd_get_core_info(child);
sys/dev/bhnd/bhndb/bhnd_bhndb.c
98
bhnd_bhndb_map_intr(device_t dev, device_t child, u_int intr, rman_res_t *irq)
sys/dev/bhnd/bhndb/bhndb.c
1005
error = bus_activate_resource(child, type, rid, rv);
sys/dev/bhnd/bhndb/bhndb.c
1010
rid, type, device_get_nameunit(child), error);
sys/dev/bhnd/bhndb/bhndb.c
1033
bhndb_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/bhnd/bhndb/bhndb.c
1041
passthrough = (device_get_parent(child) != dev);
sys/dev/bhnd/bhndb/bhndb.c
1045
if (bhndb_get_rman(sc, child, rman_get_type(r)) == NULL) {
sys/dev/bhnd/bhndb/bhndb.c
1047
child, r));
sys/dev/bhnd/bhndb/bhndb.c
1052
error = BUS_DEACTIVATE_RESOURCE(dev, child, r);
sys/dev/bhnd/bhndb/bhndb.c
1059
rle = resource_list_find(BUS_GET_RESOURCE_LIST(dev, child),
sys/dev/bhnd/bhndb/bhndb.c
107
device_t child, struct resource *r);
sys/dev/bhnd/bhndb/bhndb.c
1076
bhndb_adjust_resource(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhndb.c
1089
rm = bhndb_get_rman(sc, child, rman_get_type(r));
sys/dev/bhnd/bhndb/bhndb.c
1092
child, r, start, end));
sys/dev/bhnd/bhndb/bhndb.c
110
struct bhndb_softc *sc, device_t child,
sys/dev/bhnd/bhndb/bhndb.c
1182
struct bhndb_region *region, device_t child, struct resource *r)
sys/dev/bhnd/bhndb/bhndb.c
1290
bhndb_try_activate_resource(struct bhndb_softc *sc, device_t child,
sys/dev/bhnd/bhndb/bhndb.c
131
bhndb_probe_nomatch(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb.c
1327
if (bhndb_get_addrspace(sc, child) == BHNDB_ADDRSPACE_NATIVE) {
sys/dev/bhnd/bhndb/bhndb.c
135
name = device_get_name(child);
sys/dev/bhnd/bhndb/bhndb.c
1361
error = bhndb_activate_static_region(sc, region, child, r);
sys/dev/bhnd/bhndb/bhndb.c
1418
bhndb_activate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/bhnd/bhndb/bhndb.c
1424
if (bhndb_get_rman(sc, child, rman_get_type(r)) == NULL) {
sys/dev/bhnd/bhndb/bhndb.c
1426
child, r));
sys/dev/bhnd/bhndb/bhndb.c
1429
return (bhndb_try_activate_resource(sc, child, r, NULL));
sys/dev/bhnd/bhndb/bhndb.c
143
bhndb_print_child(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb.c
1436
bhndb_deactivate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/bhnd/bhndb/bhndb.c
1448
rm = bhndb_get_rman(sc, child, type);
sys/dev/bhnd/bhndb/bhndb.c
1451
device_get_parent(sc->parent_dev), child, r));
sys/dev/bhnd/bhndb/bhndb.c
1465
if (bhndb_get_addrspace(sc, child) == BHNDB_ADDRSPACE_BRIDGED) {
sys/dev/bhnd/bhndb/bhndb.c
148
retval += bus_print_child_header(dev, child);
sys/dev/bhnd/bhndb/bhndb.c
1485
bhndb_get_resource_list(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb.c
1487
struct bhndb_devinfo *dinfo = device_get_ivars(child);
sys/dev/bhnd/bhndb/bhndb.c
150
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/dev/bhnd/bhndb/bhndb.c
1505
bhndb_activate_bhnd_resource(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhndb.c
1525
if (bhndb_get_rman(sc, child, rman_get_type(r->res)) == NULL) {
sys/dev/bhnd/bhndb/bhndb.c
1526
error = BUS_ACTIVATE_RESOURCE(dev, child, r->res);
sys/dev/bhnd/bhndb/bhndb.c
1537
if (bhndb_get_addrspace(sc, child) == BHNDB_ADDRSPACE_BRIDGED) {
sys/dev/bhnd/bhndb/bhndb.c
1566
error = bhndb_try_activate_resource(sc, child, r->res, &indirect);
sys/dev/bhnd/bhndb/bhndb.c
1577
bhndb_get_addrspace(sc, child) == BHNDB_ADDRSPACE_BRIDGED)
sys/dev/bhnd/bhndb/bhndb.c
1579
device_printf(child, "activated 0x%llx-0x%llx as %s "
sys/dev/bhnd/bhndb/bhndb.c
158
retval += bus_print_child_domain(dev, child);
sys/dev/bhnd/bhndb/bhndb.c
159
retval += bus_print_child_footer(dev, child);
sys/dev/bhnd/bhndb/bhndb.c
1593
bhndb_deactivate_bhnd_resource(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhndb.c
1606
error = BUS_DEACTIVATE_RESOURCE(dev, child, r->res);
sys/dev/bhnd/bhndb/bhndb.c
165
bhndb_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/bhnd/bhndb/bhndb.c
1800
bhndb_bus_read_ ## _name (device_t dev, device_t child, \
sys/dev/bhnd/bhndb/bhndb.c
1814
bhndb_bus_write_ ## _name (device_t dev, device_t child, \
sys/dev/bhnd/bhndb/bhndb.c
1826
device_t child, struct bhnd_resource *r, bus_size_t offset, \
sys/dev/bhnd/bhndb/bhndb.c
1865
bhndb_bus_barrier(device_t dev, device_t child, struct bhnd_resource *r,
sys/dev/bhnd/bhndb/bhndb.c
1879
bhndb_bhnd_map_intr(device_t dev, device_t child, u_int intr, rman_res_t *irq)
sys/dev/bhnd/bhndb/bhndb.c
1885
if (intr >= bhnd_get_intr_count(child))
sys/dev/bhnd/bhndb/bhndb.c
1889
if ((error = bhnd_get_intr_ivec(child, intr, &ivec)))
sys/dev/bhnd/bhndb/bhndb.c
1902
bhndb_bhnd_unmap_intr(device_t dev, device_t child, rman_res_t irq)
sys/dev/bhnd/bhndb/bhndb.c
1911
bhndb_setup_intr(device_t dev, device_t child, struct resource *r,
sys/dev/bhnd/bhndb/bhndb.c
1929
ih = bhndb_alloc_intr_handler(child, r, isrc);
sys/dev/bhnd/bhndb/bhndb.c
1955
bhndb_teardown_intr(device_t dev, device_t child, struct resource *r,
sys/dev/bhnd/bhndb/bhndb.c
1971
device_get_nameunit(child), cookiep);
sys/dev/bhnd/bhndb/bhndb.c
2000
bhndb_bind_intr(device_t dev, device_t child, struct resource *irq, int cpu)
sys/dev/bhnd/bhndb/bhndb.c
2021
device_get_nameunit(child), rman_get_start(irq),
sys/dev/bhnd/bhndb/bhndb.c
2033
bhndb_describe_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/bhnd/bhndb/bhndb.c
2050
device_get_nameunit(child), cookie);
sys/dev/bhnd/bhndb/bhndb.c
2077
bhndb_remap_intr(device_t dev, device_t child, u_int irq)
sys/dev/bhnd/bhndb/bhndb.c
2087
bhndb_get_dma_translation(device_t dev, device_t child, u_int width,
sys/dev/bhnd/bhndb/bhndb.c
2162
bhndb_get_dma_tag(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb.c
701
bhndb_suspend_resource(device_t dev, device_t child, int type,
sys/dev/bhnd/bhndb/bhndb.c
721
device_printf(child, "suspend resource type=%d 0x%jx+0x%jx\n",
sys/dev/bhnd/bhndb/bhndb.c
733
bhndb_resume_resource(device_t dev, device_t child, int type,
sys/dev/bhnd/bhndb/bhndb.c
749
device_printf(child, "resume resource type=%d 0x%jx+0x%jx\n",
sys/dev/bhnd/bhndb/bhndb.c
759
bhndb_read_ivar(device_t dev, device_t child, int index,
sys/dev/bhnd/bhndb/bhndb.c
769
bhndb_write_ivar(device_t dev, device_t child, int index,
sys/dev/bhnd/bhndb/bhndb.c
779
bhndb_get_addrspace(struct bhndb_softc *sc, device_t child)
sys/dev/bhnd/bhndb/bhndb.c
785
imd_dev = child;
sys/dev/bhnd/bhndb/bhndb.c
791
device_get_nameunit(child));
sys/dev/bhnd/bhndb/bhndb.c
805
bhndb_get_rman(struct bhndb_softc *sc, device_t child, int type)
sys/dev/bhnd/bhndb/bhndb.c
807
switch (bhndb_get_addrspace(sc, child)) {
sys/dev/bhnd/bhndb/bhndb.c
840
device_t child;
sys/dev/bhnd/bhndb/bhndb.c
842
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/bhnd/bhndb/bhndb.c
843
if (child == NULL)
sys/dev/bhnd/bhndb/bhndb.c
848
device_delete_child(dev, child);
sys/dev/bhnd/bhndb/bhndb.c
855
device_set_ivars(child, dinfo);
sys/dev/bhnd/bhndb/bhndb.c
857
return (child);
sys/dev/bhnd/bhndb/bhndb.c
864
bhndb_child_deleted(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb.c
866
struct bhndb_devinfo *dinfo = device_get_ivars(child);
sys/dev/bhnd/bhndb/bhndb.c
872
device_set_ivars(child, NULL);
sys/dev/bhnd/bhndb/bhndb.c
879
bhndb_get_chipid(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb.c
889
bhndb_is_core_disabled(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhndb.c
916
bhndb_get_hostb_core(device_t dev, device_t child, struct bhnd_core_info *core)
sys/dev/bhnd/bhndb/bhndb.c
928
bhndb_get_service_registry(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb.c
939
bhndb_alloc_resource(device_t dev, device_t child, int type,
sys/dev/bhnd/bhndb/bhndb.c
94
device_t child);
sys/dev/bhnd/bhndb/bhndb.c
950
passthrough = (device_get_parent(child) != dev);
sys/dev/bhnd/bhndb/bhndb.c
955
rm = bhndb_get_rman(sc, child, type);
sys/dev/bhnd/bhndb/bhndb.c
960
child, type, rid, start, end, count, flags));
sys/dev/bhnd/bhndb/bhndb.c
966
rle = resource_list_find(BUS_GET_RESOURCE_LIST(dev, child),
sys/dev/bhnd/bhndb/bhndb.c
97
device_t child, int type);
sys/dev/bhnd/bhndb/bhndb.c
972
device_get_nameunit(child));
sys/dev/bhnd/bhndb/bhndb.c
980
rid, type, device_get_nameunit(child));
sys/dev/bhnd/bhndb/bhndb.c
996
child);
sys/dev/bhnd/bhndb/bhndb_pci.c
1126
bhndb_pci_pwrctl_get_clksrc(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhndb_pci.c
1150
bhndb_pci_pwrctl_gate_clock(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhndb_pci.c
1167
bhndb_pci_pwrctl_ungate_clock(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhndb_pci.c
1199
bhndb_pci_route_siba_interrupts(struct bhndb_pci_softc *sc, device_t child)
sys/dev/bhnd/bhndb/bhndb_pci.c
1209
if ((error = bhnd_get_intr_ivec(child, 0, &ivec)))
sys/dev/bhnd/bhndb/bhndb_pci.c
1232
bhndb_pci_route_interrupts(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb_pci.c
1242
return (bhndb_pci_route_siba_interrupts(sc, child));
sys/dev/bhnd/bhndb/bhndb_pci.c
1244
core = bhnd_get_core_info(child);
sys/dev/bhnd/bhndb/bhndb_pci.c
539
device_t child;
sys/dev/bhnd/bhndb/bhndb_pci.c
548
child = BUS_ADD_CHILD(sc->dev,
sys/dev/bhnd/bhndb/bhndb_pci.c
550
if (child == NULL) {
sys/dev/bhnd/bhndb/bhndb_pci.c
557
dinfo = device_get_ivars(child);
sys/dev/bhnd/bhndb/bhndb_pci.c
560
error = bus_set_resource(child, SYS_RES_MEMORY, 0,
sys/dev/bhnd/bhndb/bhndb_pci.c
948
bhndb_pci_populate_board_info(device_t dev, device_t child,
sys/dev/bhnd/bhndb/bhndb_subr.c
109
bhnd_generic_br_suspend_child(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb_subr.c
114
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhndb/bhndb_subr.c
115
BUS_SUSPEND_CHILD(device_get_parent(dev), child);
sys/dev/bhnd/bhndb/bhndb_subr.c
117
if (device_is_suspended(child))
sys/dev/bhnd/bhndb/bhndb_subr.c
121
if ((error = bhnd_generic_suspend_child(dev, child)))
sys/dev/bhnd/bhndb/bhndb_subr.c
125
rl = BUS_GET_RESOURCE_LIST(device_get_parent(child), child);
sys/dev/bhnd/bhndb/bhndb_subr.c
149
bhnd_generic_br_resume_child(device_t dev, device_t child)
sys/dev/bhnd/bhndb/bhndb_subr.c
155
if (device_get_parent(child) != dev)
sys/dev/bhnd/bhndb/bhndb_subr.c
156
BUS_RESUME_CHILD(device_get_parent(dev), child);
sys/dev/bhnd/bhndb/bhndb_subr.c
158
if (!device_is_suspended(child))
sys/dev/bhnd/bhndb/bhndb_subr.c
162
rl = BUS_GET_RESOURCE_LIST(device_get_parent(child), child);
sys/dev/bhnd/bhndb/bhndb_subr.c
164
return (bhnd_generic_resume_child(dev, child));
sys/dev/bhnd/bhndb/bhndb_subr.c
182
if ((error = bhnd_generic_resume_child(dev, child))) {
sys/dev/bhnd/bhndb/bhndbvar.h
73
device_t child,
sys/dev/bhnd/bhndb/bhndbvar.h
77
device_t child);
sys/dev/bhnd/bhndb/bhndbvar.h
79
device_t child);
sys/dev/bhnd/bhndvar.h
100
device_t child);
sys/dev/bhnd/bhndvar.h
102
device_t child);
sys/dev/bhnd/bhndvar.h
105
device_t child, struct resource *irq,
sys/dev/bhnd/bhndvar.h
111
device_t child, const char *name,
sys/dev/bhnd/bhndvar.h
71
device_t child);
sys/dev/bhnd/bhndvar.h
74
device_t child);
sys/dev/bhnd/bhndvar.h
76
device_t child);
sys/dev/bhnd/bhndvar.h
78
device_t child, bhnd_clock clock,
sys/dev/bhnd/bhndvar.h
81
device_t child, bhnd_clock clock,
sys/dev/bhnd/bhndvar.h
84
device_t child, bhnd_clock clock);
sys/dev/bhnd/bhndvar.h
86
device_t child, uint32_t clocks);
sys/dev/bhnd/bhndvar.h
88
device_t child, u_int rsrc);
sys/dev/bhnd/bhndvar.h
90
device_t child, u_int rsrc);
sys/dev/bhnd/bhndvar.h
93
device_t child);
sys/dev/bhnd/bhndvar.h
95
device_t child);
sys/dev/bhnd/bhndvar.h
98
device_t child);
sys/dev/bhnd/cores/chipc/chipc.c
1008
chipc_activate_bhnd_resource(device_t dev, device_t child,
sys/dev/bhnd/cores/chipc/chipc.c
1017
return (bhnd_bus_generic_activate_resource(dev, child, r));
sys/dev/bhnd/cores/chipc/chipc.c
1021
error = chipc_try_activate_resource(dev, child, r->res, false);
sys/dev/bhnd/cores/chipc/chipc.c
1034
chipc_activate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/bhnd/cores/chipc/chipc.c
1041
return (bus_generic_activate_resource(dev, child, r));
sys/dev/bhnd/cores/chipc/chipc.c
1045
return (chipc_try_activate_resource(dev, child, r, true));
sys/dev/bhnd/cores/chipc/chipc.c
1052
chipc_deactivate_resource(device_t dev, device_t child,
sys/dev/bhnd/cores/chipc/chipc.c
1065
return (bus_generic_deactivate_resource(dev, child, r));
sys/dev/bhnd/cores/chipc/chipc.c
127
device_t child, struct resource *r,
sys/dev/bhnd/cores/chipc/chipc.c
261
device_t child;
sys/dev/bhnd/cores/chipc/chipc.c
269
child = BUS_ADD_CHILD(sc->dev, 0, "bhnd_nvram", DEVICE_UNIT_ANY);
sys/dev/bhnd/cores/chipc/chipc.c
270
if (child == NULL) {
sys/dev/bhnd/cores/chipc/chipc.c
276
error = chipc_set_mem_resource(sc, child, 0, CHIPC_SPROM_OTP,
sys/dev/bhnd/cores/chipc/chipc.c
292
child = BUS_ADD_CHILD(sc->dev, 0, "bhnd_pmu", DEVICE_UNIT_ANY);
sys/dev/bhnd/cores/chipc/chipc.c
293
if (child == NULL) {
sys/dev/bhnd/cores/chipc/chipc.c
298
child = BUS_ADD_CHILD(sc->dev, 0, "bhnd_pwrctl", DEVICE_UNIT_ANY);
sys/dev/bhnd/cores/chipc/chipc.c
299
if (child == NULL) {
sys/dev/bhnd/cores/chipc/chipc.c
306
child = BUS_ADD_CHILD(sc->dev, 0, "gpio", DEVICE_UNIT_ANY);
sys/dev/bhnd/cores/chipc/chipc.c
307
if (child == NULL) {
sys/dev/bhnd/cores/chipc/chipc.c
312
error = chipc_set_mem_resource(sc, child, 0, 0, RM_MAX_END, 0, 0);
sys/dev/bhnd/cores/chipc/chipc.c
330
child = BUS_ADD_CHILD(sc->dev, 0, "uart", DEVICE_UNIT_ANY);
sys/dev/bhnd/cores/chipc/chipc.c
331
if (child == NULL) {
sys/dev/bhnd/cores/chipc/chipc.c
337
error = chipc_set_irq_resource(sc, child, irq_rid, 0);
sys/dev/bhnd/cores/chipc/chipc.c
345
error = chipc_set_mem_resource(sc, child, mem_rid,
sys/dev/bhnd/cores/chipc/chipc.c
359
child = BUS_ADD_CHILD(sc->dev, 0, flash_bus, DEVICE_UNIT_ANY);
sys/dev/bhnd/cores/chipc/chipc.c
360
if (child == NULL) {
sys/dev/bhnd/cores/chipc/chipc.c
368
error = chipc_set_mem_resource(sc, child, rid, 0, RM_MAX_END, 1,
sys/dev/bhnd/cores/chipc/chipc.c
378
error = chipc_set_mem_resource(sc, child, rid,
sys/dev/bhnd/cores/chipc/chipc.c
549
chipc_probe_nomatch(device_t dev, device_t child)
sys/dev/bhnd/cores/chipc/chipc.c
554
name = device_get_name(child);
sys/dev/bhnd/cores/chipc/chipc.c
560
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/dev/bhnd/cores/chipc/chipc.c
570
chipc_print_child(device_t dev, device_t child)
sys/dev/bhnd/cores/chipc/chipc.c
575
retval += bus_print_child_header(dev, child);
sys/dev/bhnd/cores/chipc/chipc.c
577
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/dev/bhnd/cores/chipc/chipc.c
585
retval += bus_print_child_domain(dev, child);
sys/dev/bhnd/cores/chipc/chipc.c
586
retval += bus_print_child_footer(dev, child);
sys/dev/bhnd/cores/chipc/chipc.c
595
device_t child;
sys/dev/bhnd/cores/chipc/chipc.c
597
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/bhnd/cores/chipc/chipc.c
598
if (child == NULL)
sys/dev/bhnd/cores/chipc/chipc.c
603
device_delete_child(dev, child);
sys/dev/bhnd/cores/chipc/chipc.c
609
device_set_ivars(child, dinfo);
sys/dev/bhnd/cores/chipc/chipc.c
611
return (child);
sys/dev/bhnd/cores/chipc/chipc.c
615
chipc_child_deleted(device_t dev, device_t child)
sys/dev/bhnd/cores/chipc/chipc.c
617
struct chipc_devinfo *dinfo = device_get_ivars(child);
sys/dev/bhnd/cores/chipc/chipc.c
632
device_set_ivars(child, NULL);
sys/dev/bhnd/cores/chipc/chipc.c
636
chipc_get_resource_list(device_t dev, device_t child)
sys/dev/bhnd/cores/chipc/chipc.c
638
struct chipc_devinfo *dinfo = device_get_ivars(child);
sys/dev/bhnd/cores/chipc/chipc.c
767
chipc_alloc_resource(device_t dev, device_t child, int type,
sys/dev/bhnd/cores/chipc/chipc.c
779
passthrough = (device_get_parent(child) != dev);
sys/dev/bhnd/cores/chipc/chipc.c
787
rv = bus_generic_rl_alloc_resource(dev, child, type, rid,
sys/dev/bhnd/cores/chipc/chipc.c
795
rle = resource_list_find(BUS_GET_RESOURCE_LIST(dev, child),
sys/dev/bhnd/cores/chipc/chipc.c
801
device_get_nameunit(child));
sys/dev/bhnd/cores/chipc/chipc.c
809
rid, type, device_get_nameunit(child),
sys/dev/bhnd/cores/chipc/chipc.c
824
rv = bus_generic_rl_alloc_resource(dev, child, type, rid,
sys/dev/bhnd/cores/chipc/chipc.c
843
rv = bus_generic_rl_alloc_resource(dev, child, type, rid,
sys/dev/bhnd/cores/chipc/chipc.c
853
rv = bus_generic_rman_alloc_resource(dev, child, type, rid, start, end,
sys/dev/bhnd/cores/chipc/chipc.c
872
chipc_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/bhnd/cores/chipc/chipc.c
885
return (bus_generic_rl_release_resource(dev, child, r));
sys/dev/bhnd/cores/chipc/chipc.c
894
rle = resource_list_find(BUS_GET_RESOURCE_LIST(dev, child),
sys/dev/bhnd/cores/chipc/chipc.c
898
error = bus_generic_rman_release_resource(dev, child, r);
sys/dev/bhnd/cores/chipc/chipc.c
913
chipc_adjust_resource(device_t dev, device_t child,
sys/dev/bhnd/cores/chipc/chipc.c
925
return (bus_generic_adjust_resource(dev, child, r, start, end));
sys/dev/bhnd/cores/chipc/chipc.c
955
chipc_try_activate_resource(device_t dev, device_t child,
sys/dev/bhnd/cores/chipc/chipc_private.h
64
device_t child, int rid, u_int intr);
sys/dev/bhnd/cores/chipc/chipc_private.h
66
device_t child, int rid, rman_res_t start,
sys/dev/bhnd/cores/chipc/chipc_spi.c
211
chipc_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/dev/bhnd/cores/chipc/chipc_spi.c
225
BHND_DEBUG_DEV(child, "size of command is ZERO");
sys/dev/bhnd/cores/chipc/chipc_spi.c
60
static int chipc_spi_transfer(device_t dev, device_t child,
sys/dev/bhnd/cores/chipc/chipc_subr.c
176
chipc_set_irq_resource(struct chipc_softc *sc, device_t child, int rid,
sys/dev/bhnd/cores/chipc/chipc_subr.c
182
KASSERT(device_get_parent(child) == sc->dev, ("not a direct child"));
sys/dev/bhnd/cores/chipc/chipc_subr.c
183
dinfo = device_get_ivars(child);
sys/dev/bhnd/cores/chipc/chipc_subr.c
201
error = bus_set_resource(child, SYS_RES_IRQ, rid, dinfo->irq, 1);
sys/dev/bhnd/cores/chipc/chipc_subr.c
234
chipc_set_mem_resource(struct chipc_softc *sc, device_t child, int rid,
sys/dev/bhnd/cores/chipc/chipc_subr.c
242
KASSERT(device_get_parent(child) == sc->dev, ("not a direct child"));
sys/dev/bhnd/cores/chipc/chipc_subr.c
270
return (bus_set_resource(child, SYS_RES_MEMORY, rid,
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c
397
bhnd_pwrctl_request_clock(device_t dev, device_t child, bhnd_clock clock)
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c
408
clkres = bhnd_pwrctl_find_res(sc, child);
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c
447
clkres->owner = child;
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c
452
KASSERT(clkres->owner == child, ("invalid owner"));
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.h
49
bhnd_pwrctl_request_clock(device_t dev, device_t child, bhnd_clock clock)
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.h
51
return (BHND_PWRCTL_REQUEST_CLOCK(dev, child, clock));
sys/dev/bhnd/cores/pci/bhnd_pci.c
167
bhnd_pci_get_resource_list(device_t dev, device_t child)
sys/dev/bhnd/cores/pci/bhnd_pci.c
171
if (device_get_parent(child) != dev)
sys/dev/bhnd/cores/pci/bhnd_pci.c
174
dinfo = device_get_ivars(child);
sys/dev/bhnd/cores/pci/bhnd_pci.c
182
device_t child;
sys/dev/bhnd/cores/pci/bhnd_pci.c
184
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/bhnd/cores/pci/bhnd_pci.c
185
if (child == NULL)
sys/dev/bhnd/cores/pci/bhnd_pci.c
190
device_delete_child(dev, child);
sys/dev/bhnd/cores/pci/bhnd_pci.c
196
device_set_ivars(child, dinfo);
sys/dev/bhnd/cores/pci/bhnd_pci.c
197
return (child);
sys/dev/bhnd/cores/pci/bhnd_pci.c
201
bhnd_pci_child_deleted(device_t dev, device_t child)
sys/dev/bhnd/cores/pci/bhnd_pci.c
205
if (device_get_parent(child) != dev)
sys/dev/bhnd/cores/pci/bhnd_pci.c
208
dinfo = device_get_ivars(child);
sys/dev/bhnd/cores/pci/bhnd_pci.c
214
device_set_ivars(child, NULL);
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
131
bhnd_pcie2_get_resource_list(device_t dev, device_t child)
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
135
if (device_get_parent(child) != dev)
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
138
dinfo = device_get_ivars(child);
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
146
device_t child;
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
148
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
149
if (child == NULL)
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
154
device_delete_child(dev, child);
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
160
device_set_ivars(child, dinfo);
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
161
return (child);
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
165
bhnd_pcie2_child_deleted(device_t dev, device_t child)
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
169
if (device_get_parent(child) != dev)
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
172
dinfo = device_get_ivars(child);
sys/dev/bhnd/cores/pcie2/bhnd_pcie2.c
178
device_set_ivars(child, NULL);
sys/dev/bhnd/nvram/bhnd_nvram_store.c
617
bhnd_nvstore_path *top, bhnd_nvstore_path *child, bhnd_nvram_plist *plist,
sys/dev/bhnd/nvram/bhnd_nvram_store.c
636
relpath = bhnd_nvstore_parse_relpath(top->path_str, child->path_str);
sys/dev/bhnd/nvram/bhnd_nvram_store.c
651
if ((error = bhnd_nvstore_export_merge(sc, child, path_vars, flags))) {
sys/dev/bhnd/nvram/bhnd_nvram_store.c
673
if (bhnd_nvstore_find_alias(sc, child->path_str) != NULL)
sys/dev/bhnd/nvram/bhnd_nvram_store.c
691
error = bhnd_nvstore_export_devpath_alias(sc, child, relpath,
sys/dev/bhnd/nvram/bhnd_nvram_store.c
75
bhnd_nvstore_path *child,
sys/dev/bhnd/nvram/bhnd_nvram_store.c
898
bhnd_nvstore_path *child;
sys/dev/bhnd/nvram/bhnd_nvram_store.c
900
LIST_FOREACH(child, &sc->paths[i], np_link) {
sys/dev/bhnd/nvram/bhnd_nvram_store.c
902
if (child == top)
sys/dev/bhnd/nvram/bhnd_nvram_store.c
906
child, unordered, flags);
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1009
bhnd_nvstore_parse_relpath(const char *parent, const char *child)
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1019
if (*child == '/')
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1020
child++;
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1024
if (strncmp(parent, child, prefix_len) != 0)
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1029
return (child);
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1032
if (child[prefix_len] == '\0')
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1033
return (child + prefix_len);
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1036
if (child[prefix_len] == '/')
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1037
return (child + prefix_len + 1);
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
155
const char *child);
sys/dev/bhnd/siba/siba.c
1000
siba_get_region_count(device_t dev, device_t child, bhnd_port_type type,
sys/dev/bhnd/siba/siba.c
1006
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
1007
return (BHND_BUS_GET_REGION_COUNT(device_get_parent(dev), child,
sys/dev/bhnd/siba/siba.c
1010
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
1015
siba_get_port_rid(device_t dev, device_t child, bhnd_port_type port_type,
sys/dev/bhnd/siba/siba.c
1023
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
1024
return (BHND_BUS_GET_PORT_RID(device_get_parent(dev), child,
sys/dev/bhnd/siba/siba.c
1027
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
1044
siba_decode_port_rid(device_t dev, device_t child, int type, int rid,
sys/dev/bhnd/siba/siba.c
1050
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
1051
return (BHND_BUS_DECODE_PORT_RID(device_get_parent(dev), child,
sys/dev/bhnd/siba/siba.c
1054
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
1087
siba_get_region_addr(device_t dev, device_t child, bhnd_port_type port_type,
sys/dev/bhnd/siba/siba.c
1095
if (device_get_parent(child) != dev) {
sys/dev/bhnd/siba/siba.c
1096
return (BHND_BUS_GET_REGION_ADDR(device_get_parent(dev), child,
sys/dev/bhnd/siba/siba.c
1100
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
1126
siba_get_intr_count(device_t dev, device_t child)
sys/dev/bhnd/siba/siba.c
1131
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
1132
return (BHND_BUS_GET_INTR_COUNT(device_get_parent(dev), child));
sys/dev/bhnd/siba/siba.c
1134
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
1148
siba_get_intr_ivec(device_t dev, device_t child, u_int intr, u_int *ivec)
sys/dev/bhnd/siba/siba.c
1153
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
1154
return (BHND_BUS_GET_INTR_IVEC(device_get_parent(dev), child,
sys/dev/bhnd/siba/siba.c
1158
if (intr >= siba_get_intr_count(dev, child))
sys/dev/bhnd/siba/siba.c
1163
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
124
siba_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/bhnd/siba/siba.c
1240
device_t child;
sys/dev/bhnd/siba/siba.c
1242
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/bhnd/siba/siba.c
1243
if (child == NULL)
sys/dev/bhnd/siba/siba.c
1247
device_delete_child(dev, child);
sys/dev/bhnd/siba/siba.c
1251
device_set_ivars(child, dinfo);
sys/dev/bhnd/siba/siba.c
1253
return (child);
sys/dev/bhnd/siba/siba.c
1257
siba_child_deleted(device_t dev, device_t child)
sys/dev/bhnd/siba/siba.c
1262
bhnd_generic_child_deleted(dev, child);
sys/dev/bhnd/siba/siba.c
1265
if ((dinfo = device_get_ivars(child)) != NULL)
sys/dev/bhnd/siba/siba.c
1266
siba_free_dinfo(dev, child, dinfo);
sys/dev/bhnd/siba/siba.c
1268
device_set_ivars(child, NULL);
sys/dev/bhnd/siba/siba.c
131
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
1314
device_t child;
sys/dev/bhnd/siba/siba.c
1320
child = BUS_ADD_CHILD(dev, 0, NULL, DEVICE_UNIT_ANY);
sys/dev/bhnd/siba/siba.c
1321
if (child == NULL) {
sys/dev/bhnd/siba/siba.c
1326
children[i] = child;
sys/dev/bhnd/siba/siba.c
1329
if ((dinfo = device_get_ivars(child)) == NULL) {
sys/dev/bhnd/siba/siba.c
1334
if ((error = siba_init_dinfo(dev, child, dinfo, &cores[i])))
sys/dev/bhnd/siba/siba.c
1339
if (bhnd_is_hw_disabled(child))
sys/dev/bhnd/siba/siba.c
1340
device_disable(child);
sys/dev/bhnd/siba/siba.c
1351
device_t child;
sys/dev/bhnd/siba/siba.c
1353
child = children[i];
sys/dev/bhnd/siba/siba.c
1356
if (bhnd_is_hw_disabled(child))
sys/dev/bhnd/siba/siba.c
1359
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
1366
BHND_BUS_CHILD_ADDED(dev, child);
sys/dev/bhnd/siba/siba.c
188
siba_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/bhnd/siba/siba.c
194
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
232
siba_get_resource_list(device_t dev, device_t child)
sys/dev/bhnd/siba/siba.c
234
struct siba_devinfo *dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
240
siba_alloc_pmu(device_t dev, device_t child)
sys/dev/bhnd/siba/siba.c
250
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
254
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
258
chipc = bhnd_retain_provider(child, BHND_SERVICE_CHIPC);
sys/dev/bhnd/siba/siba.c
261
bhnd_release_provider(child, chipc, BHND_SERVICE_CHIPC);
sys/dev/bhnd/siba/siba.c
269
if ((error = bhnd_generic_alloc_pmu(dev, child)))
sys/dev/bhnd/siba/siba.c
286
pwrctl = bhnd_retain_provider(child, BHND_SERVICE_PWRCTL);
sys/dev/bhnd/siba/siba.c
301
device_get_nameunit(child));
sys/dev/bhnd/siba/siba.c
316
siba_release_pmu(device_t dev, device_t child)
sys/dev/bhnd/siba/siba.c
323
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
327
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
332
panic("pmu over-release for %s", device_get_nameunit(child));
sys/dev/bhnd/siba/siba.c
338
return (bhnd_generic_release_pmu(dev, child));
sys/dev/bhnd/siba/siba.c
344
error = bhnd_pwrctl_request_clock(pwrctl, child,
sys/dev/bhnd/siba/siba.c
357
bhnd_release_provider(child, pwrctl, BHND_SERVICE_PWRCTL);
sys/dev/bhnd/siba/siba.c
375
siba_get_clock_latency(device_t dev, device_t child, bhnd_clock clock,
sys/dev/bhnd/siba/siba.c
382
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
386
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
398
return (bhnd_generic_get_clock_latency(dev, child, clock,
sys/dev/bhnd/siba/siba.c
430
siba_get_clock_freq(device_t dev, device_t child, bhnd_clock clock,
sys/dev/bhnd/siba/siba.c
437
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
441
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
453
return (bhnd_generic_get_clock_freq(dev, child, clock, freq));
sys/dev/bhnd/siba/siba.c
473
siba_request_ext_rsrc(device_t dev, device_t child, u_int rsrc)
sys/dev/bhnd/siba/siba.c
478
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
482
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
494
return (bhnd_generic_request_ext_rsrc(dev, child, rsrc));
sys/dev/bhnd/siba/siba.c
508
siba_release_ext_rsrc(device_t dev, device_t child, u_int rsrc)
sys/dev/bhnd/siba/siba.c
513
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
517
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
529
return (bhnd_generic_release_ext_rsrc(dev, child, rsrc));
sys/dev/bhnd/siba/siba.c
543
siba_request_clock(device_t dev, device_t child, bhnd_clock clock)
sys/dev/bhnd/siba/siba.c
549
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
553
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
565
return (bhnd_generic_request_clock(dev, child, clock));
sys/dev/bhnd/siba/siba.c
568
error = bhnd_pwrctl_request_clock(dinfo->pmu.pwrctl, child,
sys/dev/bhnd/siba/siba.c
596
siba_enable_clocks(device_t dev, device_t child, uint32_t clocks)
sys/dev/bhnd/siba/siba.c
601
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
605
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
617
return (bhnd_generic_enable_clocks(dev, child, clocks));
sys/dev/bhnd/siba/siba.c
631
device_get_nameunit(child), clocks);
sys/dev/bhnd/siba/siba.c
642
siba_read_iost(device_t dev, device_t child, uint16_t *iost)
sys/dev/bhnd/siba/siba.c
647
error = bhnd_read_config(child, SIBA_CFG0_TMSTATEHIGH, &tmhigh, 4);
sys/dev/bhnd/siba/siba.c
656
siba_read_ioctl(device_t dev, device_t child, uint16_t *ioctl)
sys/dev/bhnd/siba/siba.c
661
if ((error = bhnd_read_config(child, SIBA_CFG0_TMSTATELOW, &ts_low, 4)))
sys/dev/bhnd/siba/siba.c
669
siba_write_ioctl(device_t dev, device_t child, uint16_t value, uint16_t mask)
sys/dev/bhnd/siba/siba.c
675
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
679
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
687
siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW,
sys/dev/bhnd/siba/siba.c
693
siba_is_hw_suspended(device_t dev, device_t child)
sys/dev/bhnd/siba/siba.c
700
error = bhnd_read_config(child, SIBA_CFG0_TMSTATELOW, &ts_low, 4);
sys/dev/bhnd/siba/siba.c
702
device_printf(child, "error reading HW reset state: %d\n",
sys/dev/bhnd/siba/siba.c
724
siba_reset_hw(device_t dev, device_t child, uint16_t ioctl,
sys/dev/bhnd/siba/siba.c
733
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
736
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
748
if ((error = bhnd_suspend_hw(child, reset_ioctl)))
sys/dev/bhnd/siba/siba.c
759
siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW,
sys/dev/bhnd/siba/siba.c
764
siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATEHIGH,
sys/dev/bhnd/siba/siba.c
771
siba_write_target_state(child, dinfo, SIBA_CFG0_IMSTATE, 0x0,
sys/dev/bhnd/siba/siba.c
777
siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, 0x0,
sys/dev/bhnd/siba/siba.c
782
siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, 0x0,
sys/dev/bhnd/siba/siba.c
789
siba_suspend_hw(device_t dev, device_t child, uint16_t ioctl)
sys/dev/bhnd/siba/siba.c
798
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
802
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
826
siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW,
sys/dev/bhnd/siba/siba.c
832
siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW,
sys/dev/bhnd/siba/siba.c
837
error = siba_wait_target_state(child, dinfo, SIBA_CFG0_TMSTATEHIGH,
sys/dev/bhnd/siba/siba.c
847
siba_write_target_state(child, dinfo, SIBA_CFG0_IMSTATE,
sys/dev/bhnd/siba/siba.c
851
error = siba_wait_target_state(child, dinfo, SIBA_CFG0_IMSTATE,
sys/dev/bhnd/siba/siba.c
867
siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, ts_low,
sys/dev/bhnd/siba/siba.c
875
siba_write_target_state(child, dinfo, SIBA_CFG0_IMSTATE, 0x0,
sys/dev/bhnd/siba/siba.c
880
siba_write_target_state(child, dinfo, SIBA_CFG0_TMSTATELOW, 0x0,
sys/dev/bhnd/siba/siba.c
892
error = bhnd_pwrctl_request_clock(dinfo->pmu.pwrctl, child,
sys/dev/bhnd/siba/siba.c
897
device_printf(child, "failed to release clock request: "
sys/dev/bhnd/siba/siba.c
910
siba_read_config(device_t dev, device_t child, bus_size_t offset, void *value,
sys/dev/bhnd/siba/siba.c
917
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
921
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
949
siba_write_config(device_t dev, device_t child, bus_size_t offset,
sys/dev/bhnd/siba/siba.c
957
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
961
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba.c
986
siba_get_port_count(device_t dev, device_t child, bhnd_port_type type)
sys/dev/bhnd/siba/siba.c
991
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba.c
992
return (BHND_BUS_GET_PORT_COUNT(device_get_parent(dev), child,
sys/dev/bhnd/siba/siba.c
995
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba_bhndb.c
173
siba_bhndb_suspend_child(device_t dev, device_t child)
sys/dev/bhnd/siba/siba_bhndb.c
178
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba_bhndb.c
179
BUS_SUSPEND_CHILD(device_get_parent(dev), child);
sys/dev/bhnd/siba/siba_bhndb.c
181
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba_bhndb.c
184
if ((error = bhnd_generic_br_suspend_child(dev, child)))
sys/dev/bhnd/siba/siba_bhndb.c
194
siba_bhndb_resume_child(device_t dev, device_t child)
sys/dev/bhnd/siba/siba_bhndb.c
199
if (device_get_parent(child) != dev)
sys/dev/bhnd/siba/siba_bhndb.c
200
BUS_SUSPEND_CHILD(device_get_parent(dev), child);
sys/dev/bhnd/siba/siba_bhndb.c
202
if (!device_is_suspended(child))
sys/dev/bhnd/siba/siba_bhndb.c
205
dinfo = device_get_ivars(child);
sys/dev/bhnd/siba/siba_bhndb.c
221
if ((error = bhnd_generic_br_resume_child(dev, child))) {
sys/dev/bhnd/siba/siba_subr.c
123
siba_init_dinfo(device_t dev, device_t child, struct siba_devinfo *dinfo,
sys/dev/bhnd/siba/siba_subr.c
150
if ((error = siba_register_interrupts(dev, child, dinfo)))
sys/dev/bhnd/siba/siba_subr.c
165
siba_register_interrupts(device_t dev, device_t child,
sys/dev/bhnd/siba/siba_subr.c
180
error = BHND_BUS_MAP_INTR(dev, child, 0 /* single intr is always 0 */,
sys/dev/bhnd/siba/siba_subr.c
48
static int siba_register_interrupts(device_t dev, device_t child,
sys/dev/bhnd/siba/siba_subr.c
562
siba_free_dinfo(device_t dev, device_t child, struct siba_devinfo *dinfo)
sys/dev/bhnd/siba/siba_subr.c
578
BHND_BUS_UNMAP_INTR(dev, child, dinfo->intr.irq);
sys/dev/bhnd/siba/sibavar.h
66
u_int siba_get_intr_count(device_t dev, device_t child);
sys/dev/bhnd/siba/sibavar.h
67
int siba_get_intr_ivec(device_t dev, device_t child,
sys/dev/bhnd/siba/sibavar.h
75
int siba_init_dinfo(device_t dev, device_t child,
sys/dev/bhnd/siba/sibavar.h
78
void siba_free_dinfo(device_t dev, device_t child,
sys/dev/bwn/if_bwn_pci.c
193
bwn_pci_probe_nomatch(device_t dev, device_t child)
sys/dev/bwn/if_bwn_pci.c
197
name = device_get_name(child);
sys/dev/bwn/if_bwn_pci.c
205
bwn_pci_get_generic_hwcfg(device_t dev, device_t child)
sys/dev/bwn/if_bwn_pci.c
212
bwn_pci_get_bhndb_hwtable(device_t dev, device_t child)
sys/dev/bwn/if_bwn_pci.c
219
bwn_pci_get_bhndb_hwprio(device_t dev, device_t child)
sys/dev/bwn/if_bwn_pci.c
226
bwn_pci_is_core_disabled(device_t dev, device_t child,
sys/dev/cadence/if_cgem.c
1517
struct sysctl_oid_list *child;
sys/dev/cadence/if_cgem.c
1521
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/cadence/if_cgem.c
1523
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "rxbufs", CTLFLAG_RW,
sys/dev/cadence/if_cgem.c
1526
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "rxhangwar", CTLFLAG_RW,
sys/dev/cadence/if_cgem.c
1529
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_rxoverruns", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1532
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_rxnobufs", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1535
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_rxdmamapfails", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1538
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_txfull", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1541
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_txdmamapfails", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1544
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_txdefrags", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1547
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_txdefragfails", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1550
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/cadence/if_cgem.c
1552
child = SYSCTL_CHILDREN(tree);
sys/dev/cadence/if_cgem.c
1554
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_bytes", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1557
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1560
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames_bcast", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1564
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames_multi", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1568
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames_pause",
sys/dev/cadence/if_cgem.c
1572
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames_64b", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1576
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames_65to127b", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1580
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames_128to255b",
sys/dev/cadence/if_cgem.c
1584
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames_256to511b",
sys/dev/cadence/if_cgem.c
1588
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames_512to1023b",
sys/dev/cadence/if_cgem.c
1592
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_frames_1024to1536b",
sys/dev/cadence/if_cgem.c
1596
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_under_runs",
sys/dev/cadence/if_cgem.c
1600
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_single_collisn",
sys/dev/cadence/if_cgem.c
1604
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_multi_collisn",
sys/dev/cadence/if_cgem.c
1608
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_excsv_collisn",
sys/dev/cadence/if_cgem.c
1612
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_late_collisn",
sys/dev/cadence/if_cgem.c
1616
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_deferred_frames",
sys/dev/cadence/if_cgem.c
1620
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_carrier_sense_errs",
sys/dev/cadence/if_cgem.c
1624
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_bytes", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1627
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames", CTLFLAG_RD,
sys/dev/cadence/if_cgem.c
1630
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_bcast",
sys/dev/cadence/if_cgem.c
1634
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_multi",
sys/dev/cadence/if_cgem.c
1638
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_pause",
sys/dev/cadence/if_cgem.c
1642
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_64b",
sys/dev/cadence/if_cgem.c
1646
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_65to127b",
sys/dev/cadence/if_cgem.c
1650
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_128to255b",
sys/dev/cadence/if_cgem.c
1654
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_256to511b",
sys/dev/cadence/if_cgem.c
1658
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_512to1023b",
sys/dev/cadence/if_cgem.c
1662
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_1024to1536b",
sys/dev/cadence/if_cgem.c
1666
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_undersize",
sys/dev/cadence/if_cgem.c
1670
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_oversize",
sys/dev/cadence/if_cgem.c
1674
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_jabber",
sys/dev/cadence/if_cgem.c
1678
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_fcs_errs",
sys/dev/cadence/if_cgem.c
1682
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_length_errs",
sys/dev/cadence/if_cgem.c
1686
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_symbol_errs",
sys/dev/cadence/if_cgem.c
1690
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_align_errs",
sys/dev/cadence/if_cgem.c
1694
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_resource_errs",
sys/dev/cadence/if_cgem.c
1698
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_overrun_errs",
sys/dev/cadence/if_cgem.c
1702
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_ip_hdr_csum_errs",
sys/dev/cadence/if_cgem.c
1706
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_tcp_csum_errs",
sys/dev/cadence/if_cgem.c
1710
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_udp_csum_errs",
sys/dev/cardbus/cardbus.c
176
device_t child;
sys/dev/cardbus/cardbus.c
201
child = device_add_child(cbdev, NULL, DEVICE_UNIT_ANY);
sys/dev/cardbus/cardbus.c
202
if (child == NULL) {
sys/dev/cardbus/cardbus.c
207
dinfo->pci.cfg.dev = child;
sys/dev/cardbus/cardbus.c
209
device_set_ivars(child, dinfo);
sys/dev/cardbus/cardbus.c
210
cardbus_device_create(sc, dinfo, cbdev, child);
sys/dev/cardbus/cardbus.c
211
if (cardbus_do_cis(cbdev, child) != 0)
sys/dev/cardbus/cardbus.c
215
pci_clear_pme(child);
sys/dev/cardbus/cardbus.c
217
pci_add_resources(cbdev, child, 1, dinfo->mprefetchable);
sys/dev/cardbus/cardbus.c
219
if (device_probe_and_attach(child) == 0)
sys/dev/cardbus/cardbus.c
232
cardbus_child_deleted(device_t cbdev, device_t child)
sys/dev/cardbus/cardbus.c
234
struct cardbus_devinfo *dinfo = device_get_ivars(child);
sys/dev/cardbus/cardbus.c
236
if (dinfo->pci.cfg.dev != child)
sys/dev/cardbus/cardbus.c
239
pci_child_deleted(cbdev, child);
sys/dev/cardbus/cardbus.c
303
cardbus_read_ivar(device_t cbdev, device_t child, int which, uintptr_t *result)
sys/dev/cardbus/cardbus.c
307
dinfo = device_get_ivars(child);
sys/dev/cardbus/cardbus.c
322
return (pci_read_ivar(cbdev, child, which, result));
sys/dev/cardbus/cardbus.c
78
static int cardbus_read_ivar(device_t cbdev, device_t child, int which,
sys/dev/cardbus/cardbus_cis.c
101
static void cardbus_read_tuple_finish(device_t cbdev, device_t child,
sys/dev/cardbus/cardbus_cis.c
103
static struct resource *cardbus_read_tuple_init(device_t cbdev, device_t child,
sys/dev/cardbus/cardbus_cis.c
105
static int decode_tuple(device_t cbdev, device_t child, int tupleid,
sys/dev/cardbus/cardbus_cis.c
129
decode_tuple_generic(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
152
decode_tuple_linktarget(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
171
decode_tuple_generic(cbdev, child, id, len, tupledata,
sys/dev/cardbus/cardbus_cis.c
179
decode_tuple_vers_1(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
202
decode_tuple_funcid(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
206
struct cardbus_devinfo *dinfo = device_get_ivars(child);
sys/dev/cardbus/cardbus_cis.c
228
decode_tuple_manfid(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
232
struct cardbus_devinfo *dinfo = device_get_ivars(child);
sys/dev/cardbus/cardbus_cis.c
250
decode_tuple_funce(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
254
struct cardbus_devinfo *dinfo = device_get_ivars(child);
sys/dev/cardbus/cardbus_cis.c
285
decode_tuple_bar(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
289
struct cardbus_devinfo *dinfo = device_get_ivars(child);
sys/dev/cardbus/cardbus_cis.c
348
decode_tuple_unhandled(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
358
decode_tuple_end(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
380
cardbus_read_tuple_conf(device_t cbdev, device_t child, uint32_t start,
sys/dev/cardbus/cardbus_cis.c
389
e = pci_read_config(child, loc & ~0x3, 4);
sys/dev/cardbus/cardbus_cis.c
394
e = pci_read_config(child, i, 4);
sys/dev/cardbus/cardbus_cis.c
426
cardbus_read_tuple(device_t cbdev, device_t child, struct resource *res,
sys/dev/cardbus/cardbus_cis.c
431
return (cardbus_read_tuple_conf(cbdev, child, start, off,
sys/dev/cardbus/cardbus_cis.c
438
cardbus_read_tuple_finish(device_t cbdev, device_t child, int rid,
sys/dev/cardbus/cardbus_cis.c
442
bus_release_resource(child, SYS_RES_MEMORY, rid, res);
sys/dev/cardbus/cardbus_cis.c
443
bus_delete_resource(child, SYS_RES_MEMORY, rid);
sys/dev/cardbus/cardbus_cis.c
448
cardbus_read_tuple_init(device_t cbdev, device_t child, uint32_t *start,
sys/dev/cardbus/cardbus_cis.c
480
res = bus_alloc_resource_any(child, SYS_RES_MEMORY, rid,
sys/dev/cardbus/cardbus_cis.c
507
cardbus_read_tuple_finish(cbdev, child, *rid,
sys/dev/cardbus/cardbus_cis.c
544
cardbus_read_tuple_finish(cbdev, child, *rid,
sys/dev/cardbus/cardbus_cis.c
565
decode_tuple(device_t cbdev, device_t child, int tupleid, int len,
sys/dev/cardbus/cardbus_cis.c
572
return (callbacks[i].func(cbdev, child, tupleid, len,
sys/dev/cardbus/cardbus_cis.c
575
return (callbacks[i].func(cbdev, child, tupleid, len,
sys/dev/cardbus/cardbus_cis.c
580
cardbus_parse_cis(device_t cbdev, device_t child,
sys/dev/cardbus/cardbus_cis.c
593
if ((start = pci_read_config(child, PCIR_CIS, 4)) == 0) {
sys/dev/cardbus/cardbus_cis.c
600
res = cardbus_read_tuple_init(cbdev, child, &start, &rid);
sys/dev/cardbus/cardbus_cis.c
608
if (cardbus_read_tuple(cbdev, child, res, start, &off,
sys/dev/cardbus/cardbus_cis.c
611
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/cardbus/cardbus_cis.c
619
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/cardbus/cardbus_cis.c
623
expect_linktarget = decode_tuple(cbdev, child, tupleid, len,
sys/dev/cardbus/cardbus_cis.c
628
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/cardbus/cardbus_cis.c
633
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/cardbus/cardbus_cis.c
639
cardbus_do_cis(device_t cbdev, device_t child)
sys/dev/cardbus/cardbus_cis.c
64
static int decode_tuple_generic(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
657
return (cardbus_parse_cis(cbdev, child, init_callbacks, NULL));
sys/dev/cardbus/cardbus_cis.c
67
static int decode_tuple_linktarget(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
70
static int decode_tuple_vers_1(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
73
static int decode_tuple_funcid(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
76
static int decode_tuple_manfid(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
79
static int decode_tuple_funce(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
82
static int decode_tuple_bar(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
85
static int decode_tuple_unhandled(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
88
static int decode_tuple_end(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_cis.c
92
static int cardbus_read_tuple_conf(device_t cbdev, device_t child,
sys/dev/cardbus/cardbus_cis.c
98
static int cardbus_read_tuple(device_t cbdev, device_t child,
sys/dev/cardbus/cardbus_device.c
104
return (cardbus_parse_cis(parent, child, cb, cbp));
sys/dev/cardbus/cardbus_device.c
109
device_t parent, device_t child)
sys/dev/cardbus/cardbus_device.c
114
cardbus_device_buffer_cis(parent, child, &devi->sc_cis);
sys/dev/cardbus/cardbus_device.c
66
cardbus_build_cis(device_t cbdev, device_t child, int id,
sys/dev/cardbus/cardbus_device.c
97
cardbus_device_buffer_cis(device_t parent, device_t child,
sys/dev/cardbus/cardbusvar.h
78
typedef int (tuple_cb) (device_t cbdev, device_t child, int id, int len,
sys/dev/cardbus/cardbusvar.h
88
struct cardbus_devinfo *devi, device_t parent, device_t child);
sys/dev/cardbus/cardbusvar.h
90
int cardbus_parse_cis(device_t cbdev, device_t child,
sys/dev/cfe/cfe_resource.c
101
bus_set_resource(child, SYS_RES_MEMORY, sc->rnum, addr, len);
sys/dev/cfe/cfe_resource.c
103
res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0);
sys/dev/cfe/cfe_resource.c
105
bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
sys/dev/cfe/cfe_resource.c
117
device_delete_child(parent, child);
sys/dev/cfe/cfe_resource.c
121
device_set_desc(child, "CFE reserved memory");
sys/dev/cfe/cfe_resource.c
76
device_t child;
sys/dev/cfe/cfe_resource.c
84
child = BUS_ADD_CHILD(parent, 100, "cferes", DEVICE_UNIT_ANY);
sys/dev/cfe/cfe_resource.c
85
device_set_driver(child, driver);
sys/dev/cfe/cfe_resource.c
86
sc = device_get_softc(child);
sys/dev/cfe/cfe_resource.c
96
device_getnameunit(child),
sys/dev/chromebook_platform/chromebook_platform.c
58
device_t child;
sys/dev/chromebook_platform/chromebook_platform.c
77
child = BUS_ADD_CHILD(bus, 0, slaves[i].name, DEVICE_UNIT_ANY);
sys/dev/chromebook_platform/chromebook_platform.c
78
if (child != NULL)
sys/dev/chromebook_platform/chromebook_platform.c
79
iicbus_set_addr(child, slaves[i].addr);
sys/dev/clk/allwinner/aw_ccu.c
190
phandle_t node, child;
sys/dev/clk/allwinner/aw_ccu.c
217
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/clk/allwinner/aw_ccu.c
218
cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/clk/clk_bus.c
60
phandle_t node, child;
sys/dev/clk/clk_bus.c
66
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/clk/clk_bus.c
67
cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/coretemp/coretemp.c
111
device_t child;
sys/dev/coretemp/coretemp.c
133
child = device_add_child(parent, "coretemp", device_get_unit(parent));
sys/dev/coretemp/coretemp.c
134
if (child == NULL)
sys/dev/cpufreq/ichss.c
135
device_t child;
sys/dev/cpufreq/ichss.c
197
child = BUS_ADD_CHILD(parent, 20, "ichss", 0);
sys/dev/cpufreq/ichss.c
198
if (child == NULL) {
sys/dev/cpufreq/ichss.c
204
bus_set_resource(child, SYS_RES_IOPORT, 0, pmbase + ICHSS_BM_OFFSET,
sys/dev/cpufreq/ichss.c
206
bus_set_resource(child, SYS_RES_IOPORT, 1, pmbase + ICHSS_CTRL_OFFSET,
sys/dev/cxgb/cxgb_main.c
440
device_t child;
sys/dev/cxgb/cxgb_main.c
625
if ((child = device_add_child(dev, "cxgb",
sys/dev/cxgb/cxgb_main.c
640
sc->portdev[i] = child;
sys/dev/cxgb/cxgb_main.c
641
device_set_softc(child, pi);
sys/dev/cxgbe/t4_main.c
1820
t4_read_port_device(device_t dev, int port, device_t *child)
sys/dev/cxgbe/t4_main.c
1831
*child = pi->dev;
sys/dev/cxgbe/t4_main.c
2642
t4_reset_prepare(device_t dev, device_t child)
sys/dev/cxgbe/t4_main.c
2651
t4_reset_post(device_t dev, device_t child)
sys/dev/dc/if_dc.c
4089
device_t child;
sys/dev/dc/if_dc.c
4095
child = devclass_get_device(dc, unit);
sys/dev/dc/if_dc.c
4096
if (child == NULL)
sys/dev/dc/if_dc.c
4098
if (child == sc->dc_dev)
sys/dev/dc/if_dc.c
4100
if (device_get_parent(child) != device_get_parent(sc->dc_dev))
sys/dev/dc/if_dc.c
4104
if (device_is_attached(child) == 0)
sys/dev/dc/if_dc.c
4106
dsc = device_get_softc(child);
sys/dev/dc/if_dc.c
4109
device_get_nameunit(child));
sys/dev/dpaa/bman_fdt.c
144
phandle_t node, child, cpu_node;
sys/dev/dpaa/bman_fdt.c
161
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/dpaa/bman_fdt.c
164
if (!ofw_bus_node_is_compatible(child, "fsl,bman-portal")) {
sys/dev/dpaa/bman_fdt.c
168
if (OF_getprop(child, "cpu-handle", (void *)&cpu,
sys/dev/dpaa/bman_fdt.c
181
if (ofw_bus_gen_setup_devinfo(&ofw_di, child) != 0) {
sys/dev/dpaa/bman_fdt.c
187
if (ofw_bus_reg_to_rl(dev, child, addr, size, &di.di_res)) {
sys/dev/dpaa/bman_fdt.c
193
if (ofw_bus_intr_to_rl(dev, child, &di.di_res, &intr_rid)) {
sys/dev/dpaa/bman_fdt.c
202
ofw_reg_to_paddr(child, 0, &portal_pa, &portal_size, NULL);
sys/dev/dpaa/fman.c
115
return (bus_generic_activate_resource(bus, child, res));
sys/dev/dpaa/fman.c
119
fman_release_resource(device_t bus, device_t child, struct resource *res)
sys/dev/dpaa/fman.c
125
passthrough = (device_get_parent(child) != bus);
sys/dev/dpaa/fman.c
126
rl = BUS_GET_RESOURCE_LIST(bus, child);
sys/dev/dpaa/fman.c
129
rv = bus_deactivate_resource(child, res);
sys/dev/dpaa/fman.c
147
return (resource_list_release(rl, bus, child, res));
sys/dev/dpaa/fman.c
151
fman_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/dpaa/fman.c
161
passthrough = (device_get_parent(child) != bus);
sys/dev/dpaa/fman.c
163
rl = BUS_GET_RESOURCE_LIST(bus, child);
sys/dev/dpaa/fman.c
189
end, count, flags & ~RF_ACTIVE, child);
sys/dev/dpaa/fman.c
195
child, type, rid, res) != 0) {
sys/dev/dpaa/fman.c
206
return (resource_list_alloc(rl, bus, child, type, rid, start,
sys/dev/dpaa/fman.c
89
fman_activate_resource(device_t bus, device_t child, struct resource *res)
sys/dev/dpaa/fman.h
56
struct resource * fman_alloc_resource(device_t bus, device_t child, int type,
sys/dev/dpaa/fman.h
58
int fman_activate_resource(device_t bus, device_t child,
sys/dev/dpaa/fman.h
60
int fman_release_resource(device_t bus, device_t child, struct resource *res);
sys/dev/dpaa/fman.h
66
int fman_read_ivar(device_t dev, device_t child, int index,
sys/dev/dpaa/qman_fdt.c
143
phandle_t node, child, cpu_node;
sys/dev/dpaa/qman_fdt.c
189
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/dpaa/qman_fdt.c
192
if (!ofw_bus_node_is_compatible(child, "fsl,qman-portal")) {
sys/dev/dpaa/qman_fdt.c
196
if (OF_getprop(child, "cpu-handle", (void *)&cpu,
sys/dev/dpaa/qman_fdt.c
208
if (ofw_bus_gen_setup_devinfo(&ofw_di, child) != 0) {
sys/dev/dpaa/qman_fdt.c
214
if (ofw_bus_reg_to_rl(dev, child, addr, size, &di.di_res)) {
sys/dev/dpaa/qman_fdt.c
220
if (ofw_bus_intr_to_rl(dev, child, &di.di_res, &intr_rid)) {
sys/dev/dpaa2/dpaa2_bp.c
105
error = DPAA2_CMD_BP_OPEN(dev, child, &cmd, dinfo->id, &bp_token);
sys/dev/dpaa2/dpaa2_bp.c
111
(void)DPAA2_CMD_BP_DISABLE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_bp.c
112
(void)DPAA2_CMD_BP_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_bp.c
113
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_bp.c
121
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_bp.c
130
device_t child = dev;
sys/dev/dpaa2/dpaa2_bp.c
156
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_bp.c
162
error = DPAA2_CMD_BP_OPEN(dev, child, &cmd, dinfo->id, &bp_token);
sys/dev/dpaa2/dpaa2_bp.c
169
error = DPAA2_CMD_BP_RESET(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_bp.c
175
error = DPAA2_CMD_BP_ENABLE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_bp.c
181
error = DPAA2_CMD_BP_GET_ATTRIBUTES(dev, child, &cmd, &sc->attr);
sys/dev/dpaa2/dpaa2_bp.c
188
(void)DPAA2_CMD_BP_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, bp_token));
sys/dev/dpaa2/dpaa2_bp.c
189
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_bp.c
193
(void)DPAA2_CMD_BP_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, bp_token));
sys/dev/dpaa2/dpaa2_bp.c
195
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_bp.c
89
device_t child = dev;
sys/dev/dpaa2/dpaa2_bp.c
99
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_channel.c
112
device_t child = dev;
sys/dev/dpaa2/dpaa2_channel.c
128
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rctk);
sys/dev/dpaa2/dpaa2_channel.c
134
error = DPAA2_CMD_CON_OPEN(dev, child, &cmd, coninfo->id, &contk);
sys/dev/dpaa2/dpaa2_channel.c
141
error = DPAA2_CMD_CON_ENABLE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_channel.c
205
error = DPAA2_CMD_CON_SET_NOTIF(dev, child, &cmd, ¬if_cfg);
sys/dev/dpaa2/dpaa2_channel.c
253
(void)DPAA2_CMD_CON_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_channel.c
254
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rctk));
sys/dev/dpaa2/dpaa2_channel.c
278
(void)DPAA2_CMD_CON_DISABLE(dev, child, DPAA2_CMD_TK(&cmd, contk));
sys/dev/dpaa2/dpaa2_channel.c
280
(void)DPAA2_CMD_CON_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, contk));
sys/dev/dpaa2/dpaa2_channel.c
282
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rctk));
sys/dev/dpaa2/dpaa2_con.c
110
device_t child = dev;
sys/dev/dpaa2/dpaa2_con.c
136
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_con.c
142
error = DPAA2_CMD_CON_OPEN(dev, child, &cmd, dinfo->id, &con_token);
sys/dev/dpaa2/dpaa2_con.c
149
error = DPAA2_CMD_CON_RESET(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_con.c
155
error = DPAA2_CMD_CON_GET_ATTRIBUTES(dev, child, &cmd, &sc->attr);
sys/dev/dpaa2/dpaa2_con.c
167
(void)DPAA2_CMD_CON_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, con_token));
sys/dev/dpaa2/dpaa2_con.c
168
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_con.c
172
DPAA2_CMD_CON_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, con_token));
sys/dev/dpaa2/dpaa2_con.c
174
DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_io.c
136
device_t child = dev;
sys/dev/dpaa2/dpaa2_io.c
152
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_io.c
158
error = DPAA2_CMD_IO_OPEN(dev, child, &cmd, dinfo->id, &io_token);
sys/dev/dpaa2/dpaa2_io.c
165
error = DPAA2_CMD_IO_DISABLE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_io.c
171
(void)DPAA2_CMD_IO_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_io.c
172
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_io.c
194
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_io.c
203
device_t child = dev;
sys/dev/dpaa2/dpaa2_io.c
259
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_io.c
265
error = DPAA2_CMD_IO_OPEN(dev, child, &cmd, dinfo->id, &io_token);
sys/dev/dpaa2/dpaa2_io.c
271
error = DPAA2_CMD_IO_RESET(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_io.c
277
error = DPAA2_CMD_IO_GET_ATTRIBUTES(dev, child, &cmd, &sc->attr);
sys/dev/dpaa2/dpaa2_io.c
283
error = DPAA2_CMD_IO_ENABLE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_io.c
335
(void)DPAA2_CMD_IO_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_io.c
336
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_io.c
340
(void)DPAA2_CMD_IO_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, io_token));
sys/dev/dpaa2/dpaa2_io.c
342
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_mac.c
113
device_t child = dev;
sys/dev/dpaa2/dpaa2_mac.c
141
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_mac.c
147
error = DPAA2_CMD_MAC_OPEN(dev, child, &cmd, dinfo->id, &mac_token);
sys/dev/dpaa2/dpaa2_mac.c
154
error = DPAA2_CMD_MAC_GET_ATTRIBUTES(dev, child, &cmd, &sc->attr);
sys/dev/dpaa2/dpaa2_mac.c
160
error = DPAA2_CMD_MAC_GET_ADDR(dev, child, &cmd, sc->addr);
sys/dev/dpaa2/dpaa2_mac.c
181
(void)DPAA2_CMD_MAC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, mac_token));
sys/dev/dpaa2/dpaa2_mac.c
182
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_mac.c
186
(void)DPAA2_CMD_MAC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, mac_token));
sys/dev/dpaa2/dpaa2_mac.c
188
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_mac.c
207
device_t child = dev;
sys/dev/dpaa2/dpaa2_mac.c
238
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_mac.c
244
error = DPAA2_CMD_MAC_OPEN(dev, child, &cmd, dinfo->id, &mac_token);
sys/dev/dpaa2/dpaa2_mac.c
257
error = DPAA2_CMD_MAC_SET_IRQ_MASK(dev, child, &cmd, DPMAC_IRQ_INDEX,
sys/dev/dpaa2/dpaa2_mac.c
263
error = DPAA2_CMD_MAC_SET_IRQ_ENABLE(dev, child, &cmd, DPMAC_IRQ_INDEX,
sys/dev/dpaa2/dpaa2_mac.c
270
(void)DPAA2_CMD_MAC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, mac_token));
sys/dev/dpaa2/dpaa2_mac.c
271
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_mac.c
275
(void)DPAA2_CMD_MAC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, mac_token));
sys/dev/dpaa2/dpaa2_mac.c
277
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_mac.c
311
device_t child = dev;
sys/dev/dpaa2/dpaa2_mac.c
321
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_mac.c
327
error = DPAA2_CMD_MAC_OPEN(dev, child, &cmd, dinfo->id, &mac_token);
sys/dev/dpaa2/dpaa2_mac.c
333
error = DPAA2_CMD_MAC_GET_IRQ_STATUS(dev, child, &cmd, DPMAC_IRQ_INDEX,
sys/dev/dpaa2/dpaa2_mac.c
340
(void)DPAA2_CMD_MAC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, mac_token));
sys/dev/dpaa2/dpaa2_mac.c
342
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_mc.c
303
dpaa2_mc_alloc_resource(device_t mcdev, device_t child, int type, int rid,
sys/dev/dpaa2/dpaa2_mc.c
312
return (bus_generic_alloc_resource(mcdev, child, type, rid,
sys/dev/dpaa2/dpaa2_mc.c
329
res = bus_generic_rman_alloc_resource(mcdev, child, type, rid, start,
sys/dev/dpaa2/dpaa2_mc.c
342
dpaa2_mc_adjust_resource(device_t mcdev, device_t child,
sys/dev/dpaa2/dpaa2_mc.c
349
return (bus_generic_rman_adjust_resource(mcdev, child, r,
sys/dev/dpaa2/dpaa2_mc.c
351
return (bus_generic_adjust_resource(mcdev, child, r, start, end));
sys/dev/dpaa2/dpaa2_mc.c
355
dpaa2_mc_release_resource(device_t mcdev, device_t child, struct resource *r)
sys/dev/dpaa2/dpaa2_mc.c
361
return (bus_generic_rman_release_resource(mcdev, child, r));
sys/dev/dpaa2/dpaa2_mc.c
362
return (bus_generic_release_resource(mcdev, child, r));
sys/dev/dpaa2/dpaa2_mc.c
366
dpaa2_mc_activate_resource(device_t mcdev, device_t child, struct resource *r)
sys/dev/dpaa2/dpaa2_mc.c
372
return (bus_generic_rman_activate_resource(mcdev, child, r));
sys/dev/dpaa2/dpaa2_mc.c
373
return (bus_generic_activate_resource(mcdev, child, r));
sys/dev/dpaa2/dpaa2_mc.c
377
dpaa2_mc_deactivate_resource(device_t mcdev, device_t child, struct resource *r)
sys/dev/dpaa2/dpaa2_mc.c
383
return (bus_generic_rman_deactivate_resource(mcdev, child, r));
sys/dev/dpaa2/dpaa2_mc.c
384
return (bus_generic_deactivate_resource(mcdev, child, r));
sys/dev/dpaa2/dpaa2_mc.c
392
dpaa2_mc_alloc_msi(device_t mcdev, device_t child, int count, int maxcount,
sys/dev/dpaa2/dpaa2_mc.c
396
return (dpaa2_mc_alloc_msi_impl(mcdev, child, count, maxcount, irqs));
sys/dev/dpaa2/dpaa2_mc.c
403
dpaa2_mc_release_msi(device_t mcdev, device_t child, int count, int *irqs)
sys/dev/dpaa2/dpaa2_mc.c
406
return (dpaa2_mc_release_msi_impl(mcdev, child, count, irqs));
sys/dev/dpaa2/dpaa2_mc.c
413
dpaa2_mc_map_msi(device_t mcdev, device_t child, int irq, uint64_t *addr,
sys/dev/dpaa2/dpaa2_mc.c
417
return (dpaa2_mc_map_msi_impl(mcdev, child, irq, addr, data));
sys/dev/dpaa2/dpaa2_mc.c
424
dpaa2_mc_get_id(device_t mcdev, device_t child, enum pci_id_type type,
sys/dev/dpaa2/dpaa2_mc.c
429
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_mc.c
435
return (dpaa2_mc_map_id(mcdev, child, id));
sys/dev/dpaa2/dpaa2_mc.c
648
dpaa2_mc_get_xref(device_t mcdev, device_t child)
sys/dev/dpaa2/dpaa2_mc.c
651
struct dpaa2_devinfo *dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_mc.c
692
dpaa2_mc_map_id(device_t mcdev, device_t child, uintptr_t *id)
sys/dev/dpaa2/dpaa2_mc.c
700
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_mc.c
757
dpaa2_mc_alloc_msi_impl(device_t mcdev, device_t child, int count, int maxcount,
sys/dev/dpaa2/dpaa2_mc.c
766
error = intr_alloc_msi(mcdev, child, dpaa2_mc_get_xref(mcdev,
sys/dev/dpaa2/dpaa2_mc.c
767
child), DPAA2_MC_MSI_COUNT, DPAA2_MC_MSI_COUNT, msi_irqs);
sys/dev/dpaa2/dpaa2_mc.c
777
sc->msi[i].child = NULL;
sys/dev/dpaa2/dpaa2_mc.c
780
sc->msi_owner = child;
sys/dev/dpaa2/dpaa2_mc.c
791
if (sc->msi[i].child != NULL)
sys/dev/dpaa2/dpaa2_mc.c
802
sc->msi[i + j].child = child;
sys/dev/dpaa2/dpaa2_mc.c
821
dpaa2_mc_release_msi_impl(device_t mcdev, device_t child, int count, int *irqs)
sys/dev/dpaa2/dpaa2_mc.c
828
if (sc->msi[i].child != child)
sys/dev/dpaa2/dpaa2_mc.c
832
sc->msi[i].child = NULL;
sys/dev/dpaa2/dpaa2_mc.c
851
dpaa2_mc_map_msi_impl(device_t mcdev, device_t child, int irq, uint64_t *addr,
sys/dev/dpaa2/dpaa2_mc.c
860
if (sc->msi[i].child == child && sc->msi[i].irq == irq) {
sys/dev/dpaa2/dpaa2_mc.h
105
device_t child;
sys/dev/dpaa2/dpaa2_mc.h
183
struct resource * dpaa2_mc_alloc_resource(device_t mcdev, device_t child,
sys/dev/dpaa2/dpaa2_mc.h
186
int dpaa2_mc_adjust_resource(device_t mcdev, device_t child,
sys/dev/dpaa2/dpaa2_mc.h
188
int dpaa2_mc_release_resource(device_t mcdev, device_t child,
sys/dev/dpaa2/dpaa2_mc.h
190
int dpaa2_mc_activate_resource(device_t mcdev, device_t child,
sys/dev/dpaa2/dpaa2_mc.h
192
int dpaa2_mc_deactivate_resource(device_t mcdev, device_t child,
sys/dev/dpaa2/dpaa2_mc.h
197
int dpaa2_mc_alloc_msi(device_t mcdev, device_t child, int count, int maxcount,
sys/dev/dpaa2/dpaa2_mc.h
199
int dpaa2_mc_release_msi(device_t mcdev, device_t child, int count, int *irqs);
sys/dev/dpaa2/dpaa2_mc.h
200
int dpaa2_mc_map_msi(device_t mcdev, device_t child, int irq, uint64_t *addr,
sys/dev/dpaa2/dpaa2_mc.h
202
int dpaa2_mc_get_id(device_t mcdev, device_t child, enum pci_id_type type,
sys/dev/dpaa2/dpaa2_mc_acpi.c
209
device_t child;
sys/dev/dpaa2/dpaa2_mc_acpi.c
232
child = device_add_child(ctx->dev, "dpaa2_mac_dev", DEVICE_UNIT_ANY);
sys/dev/dpaa2/dpaa2_mc_acpi.c
233
if (child == NULL) {
sys/dev/dpaa2/dpaa2_mc_acpi.c
240
device_set_ivars(child, ad);
sys/dev/dpaa2/dpaa2_mc_acpi.c
241
*dev = child;
sys/dev/dpaa2/dpaa2_mc_acpi.c
331
dpaa2_mc_acpi_get_property(device_t dev, device_t child, const char *propname,
sys/dev/dpaa2/dpaa2_mc_acpi.c
334
return (bus_generic_get_property(dev, child, propname, propvalue, size,
sys/dev/dpaa2/dpaa2_mc_acpi.c
339
dpaa2_mc_acpi_read_ivar(device_t dev, device_t child, int index,
sys/dev/dpaa2/dpaa2_mc_acpi.c
349
return (BUS_READ_IVAR(device_get_parent(dev), child, index, result));
sys/dev/dpaa2/dpaa2_mc_fdt.c
228
dpaa2_mc_fdt_probe_child(device_t bus, phandle_t child)
sys/dev/dpaa2/dpaa2_mc_fdt.c
233
childdev = ofw_bus_find_child_device_by_phandle(bus, child);
sys/dev/dpaa2/dpaa2_mc_fdt.c
237
childdev = simplebus_add_device(bus, child, 0, "dpaa2_mac_fdt", -1,
sys/dev/dpaa2/dpaa2_mc_fdt.c
250
phandle_t child;
sys/dev/dpaa2/dpaa2_mc_fdt.c
270
child = ofw_bus_find_compatible(node, "fsl,qoriq-mc-dpmac");
sys/dev/dpaa2/dpaa2_mc_fdt.c
271
for (; child > 0; child = OF_peer(child)) {
sys/dev/dpaa2/dpaa2_mc_fdt.c
272
if (!ofw_bus_node_is_compatible(child, "fsl,qoriq-mc-dpmac"))
sys/dev/dpaa2/dpaa2_mc_fdt.c
274
if (!OF_hasprop(child, "reg"))
sys/dev/dpaa2/dpaa2_mc_fdt.c
276
if (dpaa2_mc_fdt_probe_child(dev, child) != 0)
sys/dev/dpaa2/dpaa2_mc_fdt.c
346
dpaa2_mc_simplebus_get_devinfo(device_t bus, device_t child)
sys/dev/dpaa2/dpaa2_mc_fdt.c
349
return (OFW_BUS_GET_DEVINFO(device_get_parent(bus), child));
sys/dev/dpaa2/dpaa2_mcp.c
155
device_t child = dev;
sys/dev/dpaa2/dpaa2_mcp.c
204
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_mcp.c
210
error = DPAA2_CMD_MCP_OPEN(dev, child, &cmd, dinfo->id, &mcp_token);
sys/dev/dpaa2/dpaa2_mcp.c
218
error = DPAA2_CMD_MCP_RESET(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_mcp.c
225
(void)DPAA2_CMD_MCP_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_mcp.c
226
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_mcp.c
232
(void)DPAA2_CMD_MCP_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, mcp_token));
sys/dev/dpaa2/dpaa2_mcp.c
234
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1030
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
1045
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
1051
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
1067
error = DPAA2_CMD_NI_SET_POOLS(dev, child, &cmd, &pools_cfg);
sys/dev/dpaa2/dpaa2_ni.c
1089
error = DPAA2_CMD_NI_SET_ERR_BEHAVIOR(dev, child, &cmd, &err_cfg);
sys/dev/dpaa2/dpaa2_ni.c
1131
error = DPAA2_CMD_NI_GET_QDID(dev, child, &cmd, DPAA2_NI_QUEUE_TX,
sys/dev/dpaa2/dpaa2_ni.c
1139
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1140
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1144
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1146
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1171
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
1182
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
1188
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
1201
error = DPAA2_CMD_NI_GET_QUEUE(dev, child, &cmd, &queue_cfg);
sys/dev/dpaa2/dpaa2_ni.c
1218
error = DPAA2_CMD_NI_SET_QUEUE(dev, child, &cmd, &queue_cfg);
sys/dev/dpaa2/dpaa2_ni.c
1232
(void)DPAA2_CMD_NI_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_ni.c
1233
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1237
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1239
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1248
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
1264
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
1270
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
1294
error = DPAA2_CMD_NI_GET_QUEUE(dev, child, &cmd, &queue_cfg);
sys/dev/dpaa2/dpaa2_ni.c
1351
error = DPAA2_CMD_NI_GET_QUEUE(dev, child, &cmd, &queue_cfg);
sys/dev/dpaa2/dpaa2_ni.c
1368
error = DPAA2_CMD_NI_SET_QUEUE(dev, child, &cmd, &queue_cfg);
sys/dev/dpaa2/dpaa2_ni.c
1376
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1377
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1381
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1383
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1392
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
1403
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
1409
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
1422
error = DPAA2_CMD_NI_GET_QUEUE(dev, child, &cmd, &queue_cfg);
sys/dev/dpaa2/dpaa2_ni.c
1438
error = DPAA2_CMD_NI_SET_QUEUE(dev, child, &cmd, &queue_cfg);
sys/dev/dpaa2/dpaa2_ni.c
1445
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1446
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1450
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1452
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1464
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
1474
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
1480
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
1506
error = DPAA2_CMD_NI_SET_IRQ_MASK(dev, child, &cmd, DPNI_IRQ_INDEX,
sys/dev/dpaa2/dpaa2_ni.c
1514
error = DPAA2_CMD_NI_SET_IRQ_ENABLE(dev, child, &cmd, DPNI_IRQ_INDEX,
sys/dev/dpaa2/dpaa2_ni.c
1521
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1522
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1526
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1528
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1565
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
1585
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
1591
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
1599
error = DPAA2_CMD_NI_SET_OFFLOAD(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
1606
error = DPAA2_CMD_NI_SET_OFFLOAD(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
1615
error = DPAA2_CMD_NI_SET_OFFLOAD(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
1622
error = DPAA2_CMD_NI_SET_OFFLOAD(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
1637
(void)DPAA2_CMD_NI_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_ni.c
1638
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1642
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1644
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1659
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
1668
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
1674
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
1681
error = DPAA2_CMD_NI_SET_MULTI_PROMISC(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
1689
error = DPAA2_CMD_NI_SET_UNI_PROMISC(dev, child, &cmd, en_promisc);
sys/dev/dpaa2/dpaa2_ni.c
1696
(void)DPAA2_CMD_NI_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_ni.c
1697
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1701
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1703
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
1834
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
1845
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
1851
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
1907
error = DPAA2_CMD_NI_SET_BUF_LAYOUT(dev, child, &cmd, &buf_layout);
sys/dev/dpaa2/dpaa2_ni.c
1919
error = DPAA2_CMD_NI_SET_BUF_LAYOUT(dev, child, &cmd, &buf_layout);
sys/dev/dpaa2/dpaa2_ni.c
1930
error = DPAA2_CMD_NI_GET_TX_DATA_OFF(dev, child, &cmd, &sc->tx_data_off);
sys/dev/dpaa2/dpaa2_ni.c
1982
error = DPAA2_CMD_NI_SET_BUF_LAYOUT(dev, child, &cmd, &buf_layout);
sys/dev/dpaa2/dpaa2_ni.c
1991
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
1993
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2008
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
2019
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
2025
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
2032
error = DPAA2_CMD_NI_GET_LINK_CFG(dev, child, &cmd, &link_cfg);
sys/dev/dpaa2/dpaa2_ni.c
2043
error = DPAA2_CMD_NI_SET_LINK_CFG(dev, child, &cmd, &link_cfg);
sys/dev/dpaa2/dpaa2_ni.c
2053
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
2055
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2068
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
2115
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
2121
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
2132
error = DPAA2_CMD_NI_SET_QOS_TABLE(dev, child, &cmd, &tbl);
sys/dev/dpaa2/dpaa2_ni.c
2138
error = DPAA2_CMD_NI_CLEAR_QOS_TABLE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_ni.c
2146
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
2148
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2157
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
2171
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
2177
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
2189
error = DPAA2_CMD_NI_GET_PORT_MAC_ADDR(dev, child, &cmd, mac_addr);
sys/dev/dpaa2/dpaa2_ni.c
2197
error = DPAA2_CMD_NI_GET_PRIM_MAC_ADDR(dev, child, &cmd, dpni_mac_addr);
sys/dev/dpaa2/dpaa2_ni.c
2206
error = DPAA2_CMD_NI_SET_PRIM_MAC_ADDR(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
2223
error = DPAA2_CMD_NI_SET_PRIM_MAC_ADDR(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
2241
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
2243
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2252
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
2293
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id,
sys/dev/dpaa2/dpaa2_ni.c
2301
error = DPAA2_CMD_MAC_OPEN(dev, child, &cmd, sc->mac.dpmac_id,
sys/dev/dpaa2/dpaa2_ni.c
2323
error = DPAA2_CMD_MAC_SET_LINK_STATE(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
2331
(void)DPAA2_CMD_MAC_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_ni.c
2332
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd,
sys/dev/dpaa2/dpaa2_ni.c
2339
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2421
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
2437
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
2443
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
2450
error = DPAA2_CMD_NI_ENABLE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_ni.c
2471
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
2472
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2476
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2537
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
2547
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
2553
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
2576
error = DPAA2_CMD_NI_SET_MFL(dev, child, &cmd, mtu);
sys/dev/dpaa2/dpaa2_ni.c
2647
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
2648
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2652
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
2654
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2666
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
2675
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
2681
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
2689
error = DPAA2_CMD_NI_CLEAR_MAC_FILTERS(dev, child, &cmd, false, true);
sys/dev/dpaa2/dpaa2_ni.c
2704
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
2706
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
2718
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
2732
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id,
sys/dev/dpaa2/dpaa2_ni.c
2740
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id,
sys/dev/dpaa2/dpaa2_ni.c
2745
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd,
sys/dev/dpaa2/dpaa2_ni.c
2750
ctx->error = DPAA2_CMD_NI_ADD_MAC_ADDR(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
2753
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd,
sys/dev/dpaa2/dpaa2_ni.c
2755
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd,
sys/dev/dpaa2/dpaa2_ni.c
2784
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
2794
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
2800
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
2807
error = DPAA2_CMD_NI_GET_IRQ_STATUS(dev, child, &cmd, DPNI_IRQ_INDEX,
sys/dev/dpaa2/dpaa2_ni.c
2814
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
2816
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
3398
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
3409
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
3415
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
3422
error = DPAA2_CMD_NI_GET_STATISTICS(dev, child, &cmd, stat->page, 0, cnt);
sys/dev/dpaa2/dpaa2_ni.c
3427
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
3429
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
3480
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
3546
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id,
sys/dev/dpaa2/dpaa2_ni.c
3554
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id,
sys/dev/dpaa2/dpaa2_ni.c
3563
error = DPAA2_CMD_NI_SET_RX_TC_DIST(dev, child, &cmd,
sys/dev/dpaa2/dpaa2_ni.c
3570
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd,
sys/dev/dpaa2/dpaa2_ni.c
3573
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd,
sys/dev/dpaa2/dpaa2_ni.c
470
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
552
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
558
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
627
DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
629
DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
695
device_t child = dev;
sys/dev/dpaa2/dpaa2_ni.c
710
error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token);
sys/dev/dpaa2/dpaa2_ni.c
716
error = DPAA2_CMD_NI_OPEN(dev, child, &cmd, dinfo->id, &ni_token);
sys/dev/dpaa2/dpaa2_ni.c
724
error = DPAA2_CMD_NI_GET_API_VERSION(dev, child, &cmd, &sc->api_major,
sys/dev/dpaa2/dpaa2_ni.c
740
error = DPAA2_CMD_NI_RESET(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_ni.c
748
error = DPAA2_CMD_NI_GET_ATTRIBUTES(dev, child, &cmd, &sc->attr);
sys/dev/dpaa2/dpaa2_ni.c
788
error = DPAA2_CMD_RC_GET_CONN(dev, child, DPAA2_CMD_TK(&cmd, rc_token),
sys/dev/dpaa2/dpaa2_ni.c
817
error = DPAA2_CMD_MAC_OPEN(sc->dev, child,
sys/dev/dpaa2/dpaa2_ni.c
832
error = DPAA2_CMD_MAC_GET_ATTRIBUTES(dev, child,
sys/dev/dpaa2/dpaa2_ni.c
843
DPAA2_CMD_MAC_CLOSE(dev, child, &cmd);
sys/dev/dpaa2/dpaa2_ni.c
935
error = DPAA2_CMD_NI_ADD_MAC_ADDR(dev, child, DPAA2_CMD_TK(&cmd,
sys/dev/dpaa2/dpaa2_ni.c
944
error = DPAA2_CMD_NI_SET_MFL(dev, child, &cmd, DPAA2_ETH_MFL);
sys/dev/dpaa2/dpaa2_ni.c
951
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
952
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_ni.c
956
(void)DPAA2_CMD_NI_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, ni_token));
sys/dev/dpaa2/dpaa2_ni.c
958
(void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token));
sys/dev/dpaa2/dpaa2_rc.c
1010
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1028
dpaa2_rc_get_conn(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1046
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1073
dpaa2_rc_ni_open(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1076
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1094
dpaa2_rc_ni_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
1096
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1105
dpaa2_rc_ni_enable(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
1107
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1116
dpaa2_rc_ni_disable(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
1118
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1127
dpaa2_rc_ni_get_api_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1130
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1146
dpaa2_rc_ni_reset(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
1148
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1157
dpaa2_rc_ni_get_attributes(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1180
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1212
dpaa2_rc_ni_set_buf_layout(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1228
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1251
dpaa2_rc_ni_get_tx_data_offset(device_t dev, device_t child,
sys/dev/dpaa2/dpaa2_rc.c
1254
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1268
dpaa2_rc_ni_get_port_mac_addr(device_t dev, device_t child,
sys/dev/dpaa2/dpaa2_rc.c
1271
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1291
dpaa2_rc_ni_set_prim_mac_addr(device_t dev, device_t child,
sys/dev/dpaa2/dpaa2_rc.c
1298
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1311
dpaa2_rc_ni_get_prim_mac_addr(device_t dev, device_t child,
sys/dev/dpaa2/dpaa2_rc.c
1318
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1335
dpaa2_rc_ni_set_link_cfg(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1346
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1360
dpaa2_rc_ni_get_link_cfg(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1371
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1389
dpaa2_rc_ni_get_link_state(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1401
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1425
dpaa2_rc_ni_set_qos_table(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1436
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1454
dpaa2_rc_ni_clear_qos_table(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
1456
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1465
dpaa2_rc_ni_set_pools(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1477
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1497
dpaa2_rc_ni_set_err_behavior(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1504
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1521
dpaa2_rc_ni_get_queue(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1544
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1580
dpaa2_rc_ni_set_queue(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1599
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1626
dpaa2_rc_ni_get_qdid(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1635
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1656
dpaa2_rc_ni_add_mac_addr(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1666
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1681
dpaa2_rc_ni_remove_mac_addr(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1689
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1704
dpaa2_rc_ni_clear_mac_filters(device_t dev, device_t child,
sys/dev/dpaa2/dpaa2_rc.c
1710
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1725
dpaa2_rc_ni_set_mfl(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1731
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1745
dpaa2_rc_ni_set_offload(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1753
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1768
dpaa2_rc_ni_set_irq_mask(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1775
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1790
dpaa2_rc_ni_set_irq_enable(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1797
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1812
dpaa2_rc_ni_get_irq_status(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1822
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1844
dpaa2_rc_ni_set_uni_promisc(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1850
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1864
dpaa2_rc_ni_set_multi_promisc(device_t dev, device_t child,
sys/dev/dpaa2/dpaa2_rc.c
1871
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1885
dpaa2_rc_ni_get_statistics(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1895
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
191
dpaa2_rc_get_resource_list(device_t rcdev, device_t child)
sys/dev/dpaa2/dpaa2_rc.c
1918
dpaa2_rc_ni_set_rx_tc_dist(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
193
struct dpaa2_devinfo *dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
1930
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1947
dpaa2_rc_io_open(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
1950
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1968
dpaa2_rc_io_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
1970
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
1979
dpaa2_rc_io_enable(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
1981
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
199
dpaa2_rc_delete_resource(device_t rcdev, device_t child, int type, int rid)
sys/dev/dpaa2/dpaa2_rc.c
1990
dpaa2_rc_io_disable(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
1992
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2001
dpaa2_rc_io_reset(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2003
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2012
dpaa2_rc_io_get_attributes(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2027
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
205
if (device_get_parent(child) != rcdev)
sys/dev/dpaa2/dpaa2_rc.c
2052
dpaa2_rc_io_set_irq_mask(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2060
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2075
dpaa2_rc_io_get_irq_status(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
208
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
2086
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2108
dpaa2_rc_io_set_irq_enable(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2116
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2131
dpaa2_rc_io_add_static_dq_chan(device_t dev, device_t child,
sys/dev/dpaa2/dpaa2_rc.c
2140
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2161
dpaa2_rc_bp_open(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2164
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2182
dpaa2_rc_bp_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2184
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2193
dpaa2_rc_bp_enable(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2195
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2204
dpaa2_rc_bp_disable(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2206
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2215
dpaa2_rc_bp_reset(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2217
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
222
resource_list_unreserve(rl, rcdev, child, type, rid);
sys/dev/dpaa2/dpaa2_rc.c
2226
dpaa2_rc_bp_get_attributes(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2234
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2251
dpaa2_rc_mac_open(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2254
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2272
dpaa2_rc_mac_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2274
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
228
dpaa2_rc_alloc_multi_resource(device_t rcdev, device_t child, int type, int rid,
sys/dev/dpaa2/dpaa2_rc.c
2283
dpaa2_rc_mac_reset(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2285
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2294
dpaa2_rc_mac_mdio_read(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2304
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2323
dpaa2_rc_mac_mdio_write(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2334
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
234
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
2349
dpaa2_rc_mac_get_addr(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2352
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2372
dpaa2_rc_mac_get_attributes(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2397
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2416
dpaa2_rc_mac_set_link_state(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2428
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2448
dpaa2_rc_mac_set_irq_mask(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2456
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2471
dpaa2_rc_mac_set_irq_enable(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2479
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
249
return (resource_list_alloc(rl, rcdev, child, type, rid,
sys/dev/dpaa2/dpaa2_rc.c
2494
dpaa2_rc_mac_get_irq_status(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2505
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2527
dpaa2_rc_con_open(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2530
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
254
dpaa2_rc_alloc_resource(device_t rcdev, device_t child, int type, int rid,
sys/dev/dpaa2/dpaa2_rc.c
2549
dpaa2_rc_con_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2551
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2560
dpaa2_rc_con_reset(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2562
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
257
if (device_get_parent(child) != rcdev)
sys/dev/dpaa2/dpaa2_rc.c
2571
dpaa2_rc_con_enable(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2573
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
258
return (BUS_ALLOC_RESOURCE(device_get_parent(rcdev), child,
sys/dev/dpaa2/dpaa2_rc.c
2582
dpaa2_rc_con_disable(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2584
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2593
dpaa2_rc_con_get_attributes(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2603
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
261
return (dpaa2_rc_alloc_multi_resource(rcdev, child, type, rid, start,
sys/dev/dpaa2/dpaa2_rc.c
2621
dpaa2_rc_con_set_notif(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2632
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2646
dpaa2_rc_mcp_create(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2657
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
266
dpaa2_rc_release_resource(device_t rcdev, device_t child, struct resource *r)
sys/dev/dpaa2/dpaa2_rc.c
2677
dpaa2_rc_mcp_destroy(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2683
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2695
dpaa2_rc_mcp_open(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
2698
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
271
if (device_get_parent(child) != rcdev)
sys/dev/dpaa2/dpaa2_rc.c
2716
dpaa2_rc_mcp_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2718
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
272
return (BUS_RELEASE_RESOURCE(device_get_parent(rcdev), child,
sys/dev/dpaa2/dpaa2_rc.c
2727
dpaa2_rc_mcp_reset(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
2729
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
2744
device_t child = sc->dev;
sys/dev/dpaa2/dpaa2_rc.c
275
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
2756
rc = DPAA2_CMD_MNG_GET_VERSION(rcdev, child, &cmd, &major, &minor, &rev);
sys/dev/dpaa2/dpaa2_rc.c
2766
rc = DPAA2_CMD_MNG_GET_CONTAINER_ID(rcdev, child, &cmd, &sc->cont_id);
sys/dev/dpaa2/dpaa2_rc.c
277
return (resource_list_release(rl, rcdev, child, r));
sys/dev/dpaa2/dpaa2_rc.c
2777
rc = DPAA2_CMD_RC_OPEN(rcdev, child, &cmd, sc->cont_id, &rc_token);
sys/dev/dpaa2/dpaa2_rc.c
2785
rc = DPAA2_CMD_RC_GET_OBJ_COUNT(rcdev, child, &cmd, &obj_count);
sys/dev/dpaa2/dpaa2_rc.c
2789
(void)DPAA2_CMD_RC_CLOSE(rcdev, child, &cmd);
sys/dev/dpaa2/dpaa2_rc.c
2796
rc = DPAA2_CMD_RC_GET_ATTRIBUTES(rcdev, child, &cmd, &dprc_attr);
sys/dev/dpaa2/dpaa2_rc.c
2801
DPAA2_CMD_RC_CLOSE(rcdev, child, &cmd);
sys/dev/dpaa2/dpaa2_rc.c
281
dpaa2_rc_child_deleted(device_t rcdev, device_t child)
sys/dev/dpaa2/dpaa2_rc.c
2819
rc = DPAA2_CMD_RC_GET_OBJ(rcdev, child, &cmd, i, &obj);
sys/dev/dpaa2/dpaa2_rc.c
2834
rc = DPAA2_CMD_RC_GET_OBJ(rcdev, child, &cmd, i, &obj);
sys/dev/dpaa2/dpaa2_rc.c
2858
rc = DPAA2_CMD_RC_GET_OBJ(rcdev, child, &cmd, i, &obj);
sys/dev/dpaa2/dpaa2_rc.c
287
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
2871
DPAA2_CMD_RC_CLOSE(rcdev, child, &cmd);
sys/dev/dpaa2/dpaa2_rc.c
295
device_printf(child, "%s: resource still owned: "
sys/dev/dpaa2/dpaa2_rc.c
2988
device_t rcdev, dev, child;
sys/dev/dpaa2/dpaa2_rc.c
299
bus_release_resource(child, rle->type, rle->rid,
sys/dev/dpaa2/dpaa2_rc.c
2998
child = sc->dev;
sys/dev/dpaa2/dpaa2_rc.c
302
resource_list_unreserve(rl, rcdev, child, rle->type,
sys/dev/dpaa2/dpaa2_rc.c
3070
error = DPAA2_CMD_RC_GET_OBJ_REGION(rcdev, child, cmd, obj->id,
sys/dev/dpaa2/dpaa2_rc.c
3114
dpaa2_rc_configure_irq(device_t rcdev, device_t child, int rid, uint64_t addr,
sys/dev/dpaa2/dpaa2_rc.c
3125
if (device_get_parent(child) == rcdev && rid >= 1) {
sys/dev/dpaa2/dpaa2_rc.c
3127
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
3129
rc = DPAA2_CMD_RC_OPEN(rcdev, child, &cmd, rcinfo->id,
sys/dev/dpaa2/dpaa2_rc.c
313
dpaa2_rc_child_detached(device_t rcdev, device_t child)
sys/dev/dpaa2/dpaa2_rc.c
3137
rc = DPAA2_CMD_RC_SET_OBJ_IRQ(rcdev, child, &cmd, rid - 1, addr,
sys/dev/dpaa2/dpaa2_rc.c
3145
rc = DPAA2_CMD_RC_CLOSE(rcdev, child, &cmd);
sys/dev/dpaa2/dpaa2_rc.c
318
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
321
if (resource_list_release_active(rl, rcdev, child, SYS_RES_IRQ) != 0)
sys/dev/dpaa2/dpaa2_rc.c
322
device_printf(child, "%s: leaked IRQ resources!\n", __func__);
sys/dev/dpaa2/dpaa2_rc.c
324
device_printf(child, "%s: leaked %d MSI vectors!\n", __func__,
sys/dev/dpaa2/dpaa2_rc.c
326
PCI_RELEASE_MSI(rcdev, child);
sys/dev/dpaa2/dpaa2_rc.c
328
if (resource_list_release_active(rl, rcdev, child, SYS_RES_MEMORY) != 0)
sys/dev/dpaa2/dpaa2_rc.c
3285
dpaa2_rc_add_res(device_t rcdev, device_t child, enum dpaa2_dev_type devtype,
sys/dev/dpaa2/dpaa2_rc.c
3289
struct dpaa2_devinfo *dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
329
device_printf(child, "%s: leaked memory resources!\n", __func__);
sys/dev/dpaa2/dpaa2_rc.c
3321
res = resource_list_reserve(&dinfo->resources, rcdev, child, devtype,
sys/dev/dpaa2/dpaa2_rc.c
333
dpaa2_rc_setup_intr(device_t rcdev, device_t child, struct resource *irq,
sys/dev/dpaa2/dpaa2_rc.c
3403
dpaa2_rc_select_portal(device_t dev, device_t child)
sys/dev/dpaa2/dpaa2_rc.c
3406
struct dpaa2_devinfo *cinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
343
error = bus_generic_setup_intr(rcdev, child, irq, flags, filter, intr,
sys/dev/dpaa2/dpaa2_rc.c
352
if (device_get_parent(child) != rcdev) {
sys/dev/dpaa2/dpaa2_rc.c
365
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
374
error = PCIB_MAP_MSI(device_get_parent(rcdev), child,
sys/dev/dpaa2/dpaa2_rc.c
379
(void)bus_generic_teardown_intr(rcdev, child, irq,
sys/dev/dpaa2/dpaa2_rc.c
385
error = dpaa2_rc_configure_irq(rcdev, child, rid, addr, data);
sys/dev/dpaa2/dpaa2_rc.c
390
device_get_unit(child));
sys/dev/dpaa2/dpaa2_rc.c
400
dpaa2_rc_teardown_intr(device_t rcdev, device_t child, struct resource *irq,
sys/dev/dpaa2/dpaa2_rc.c
411
if (device_get_parent(child) != rcdev)
sys/dev/dpaa2/dpaa2_rc.c
412
return(bus_generic_teardown_intr(rcdev, child, irq, cookie));
sys/dev/dpaa2/dpaa2_rc.c
422
dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
429
error = bus_generic_teardown_intr(rcdev, child, irq, cookie);
sys/dev/dpaa2/dpaa2_rc.c
437
dpaa2_rc_print_child(device_t rcdev, device_t child)
sys/dev/dpaa2/dpaa2_rc.c
439
struct dpaa2_devinfo *dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
443
retval += bus_print_child_header(rcdev, child);
sys/dev/dpaa2/dpaa2_rc.c
457
retval += bus_print_child_domain(rcdev, child);
sys/dev/dpaa2/dpaa2_rc.c
458
retval += bus_print_child_footer(rcdev, child);
sys/dev/dpaa2/dpaa2_rc.c
475
dpaa2_rc_alloc_msi(device_t rcdev, device_t child, int *count)
sys/dev/dpaa2/dpaa2_rc.c
478
struct dpaa2_devinfo *dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
505
error = PCIB_ALLOC_MSI(device_get_parent(rcdev), child, actual,
sys/dev/dpaa2/dpaa2_rc.c
526
device_printf(child, "using IRQ %d for MSI\n", irqs[0]);
sys/dev/dpaa2/dpaa2_rc.c
533
device_printf(child, "using IRQs %d", irqs[0]);
sys/dev/dpaa2/dpaa2_rc.c
572
dpaa2_rc_release_msi(device_t rcdev, device_t child)
sys/dev/dpaa2/dpaa2_rc.c
575
struct dpaa2_devinfo *dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
601
PCIB_RELEASE_MSI(device_get_parent(rcdev), child, dinfo->msi.msi_alloc,
sys/dev/dpaa2/dpaa2_rc.c
615
dpaa2_rc_msi_count(device_t rcdev, device_t child)
sys/dev/dpaa2/dpaa2_rc.c
617
struct dpaa2_devinfo *dinfo = device_get_ivars(child);
sys/dev/dpaa2/dpaa2_rc.c
623
dpaa2_rc_get_id(device_t rcdev, device_t child, enum pci_id_type type,
sys/dev/dpaa2/dpaa2_rc.c
631
return (PCIB_GET_ID(device_get_parent(rcdev), child, type, id));
sys/dev/dpaa2/dpaa2_rc.c
639
dpaa2_rc_mng_get_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
642
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
660
dpaa2_rc_mng_get_soc_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
663
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
679
dpaa2_rc_mng_get_container_id(device_t dev, device_t child,
sys/dev/dpaa2/dpaa2_rc.c
682
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
696
dpaa2_rc_open(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
699
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
718
dpaa2_rc_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
sys/dev/dpaa2/dpaa2_rc.c
720
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
729
dpaa2_rc_get_obj_count(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
732
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
746
dpaa2_rc_get_obj(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
763
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
794
dpaa2_rc_get_obj_descriptor(device_t dev, device_t child,
sys/dev/dpaa2/dpaa2_rc.c
817
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
851
dpaa2_rc_get_attributes(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
860
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
879
dpaa2_rc_get_obj_region(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
901
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
914
error = DPAA2_CMD_RC_GET_API_VERSION(dev, child, cmd,
sys/dev/dpaa2/dpaa2_rc.c
960
dpaa2_rc_get_api_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
967
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
984
dpaa2_rc_set_irq_enable(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/dpaa2_rc.c
987
struct dpaa2_mcp *portal = dpaa2_rc_select_portal(dev, child);
sys/dev/dpaa2/dpaa2_rc.c
997
dpaa2_rc_set_obj_irq(device_t dev, device_t child, struct dpaa2_cmd *cmd,
sys/dev/dpaa2/memac_mdio_acpi.c
217
device_t child;
sys/dev/dpaa2/memac_mdio_acpi.c
230
child = device_add_child(ctx->dev, "memacphy_acpi", DEVICE_UNIT_ANY);
sys/dev/dpaa2/memac_mdio_acpi.c
231
if (child == NULL) {
sys/dev/dpaa2/memac_mdio_acpi.c
238
device_set_ivars(child, ad);
sys/dev/dpaa2/memac_mdio_acpi.c
239
*dev = child;
sys/dev/dpaa2/memac_mdio_common.c
260
memac_mdio_get_property(device_t dev, device_t child, const char *propname,
sys/dev/dpaa2/memac_mdio_common.c
264
return (bus_generic_get_property(dev, child, propname, propvalue, size, type));
sys/dev/dpaa2/memac_mdio_common.c
268
memac_mdio_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/dpaa2/memac_mdio_fdt.c
210
memac_mdio_fdt_probe_child(device_t bus, phandle_t child)
sys/dev/dpaa2/memac_mdio_fdt.c
215
childdev = ofw_bus_find_child_device_by_phandle(bus, child);
sys/dev/dpaa2/memac_mdio_fdt.c
219
childdev = simplebus_add_device(bus, child, 0, NULL, -1, NULL);
sys/dev/dpaa2/memac_mdio_fdt.c
230
phandle_t node, child;
sys/dev/dpaa2/memac_mdio_fdt.c
245
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/dpaa2/memac_mdio_fdt.c
246
if (!OF_hasprop(child, "reg"))
sys/dev/dpaa2/memac_mdio_fdt.c
248
if (memac_mdio_fdt_probe_child(dev, child) != 0)
sys/dev/dpaa2/memac_mdio_fdt.c
265
memac_simplebus_get_devinfo(device_t bus, device_t child)
sys/dev/dpaa2/memac_mdio_fdt.c
268
return (OFW_BUS_GET_DEVINFO(device_get_parent(bus), child));
sys/dev/drm2/drm_mm.c
52
struct drm_mm_node *child;
sys/dev/drm2/drm_mm.c
54
child = malloc(sizeof(*child), DRM_MEM_MM, M_NOWAIT | M_ZERO);
sys/dev/drm2/drm_mm.c
56
if (unlikely(child == NULL)) {
sys/dev/drm2/drm_mm.c
59
child = NULL;
sys/dev/drm2/drm_mm.c
61
child =
sys/dev/drm2/drm_mm.c
64
list_del(&child->node_list);
sys/dev/drm2/drm_mm.c
69
return child;
sys/dev/dwc/if_dwc_rk.c
373
struct sysctl_oid *child;
sys/dev/dwc/if_dwc_rk.c
377
child = device_get_sysctl_tree(sc->base.dev);
sys/dev/dwc/if_dwc_rk.c
379
SYSCTL_CHILDREN(child), OID_AUTO, "delays",
sys/dev/e1000/if_em.c
1002
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "fc",
sys/dev/e1000/if_em.c
1006
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "reg_dump",
sys/dev/e1000/if_em.c
1010
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "rs_dump",
sys/dev/e1000/if_em.c
1015
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "dmac",
sys/dev/e1000/if_em.c
1020
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO,
sys/dev/e1000/if_em.c
1026
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO,
sys/dev/e1000/if_em.c
1032
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO,
sys/dev/e1000/if_em.c
1292
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "eee_control",
sys/dev/e1000/if_em.c
4964
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/e1000/if_em.c
4974
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "dropped",
sys/dev/e1000/if_em.c
4977
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "link_irq",
sys/dev/e1000/if_em.c
4980
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "rx_overruns",
sys/dev/e1000/if_em.c
4983
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "watchdog_timeouts",
sys/dev/e1000/if_em.c
4986
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "device_control",
sys/dev/e1000/if_em.c
4990
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_control",
sys/dev/e1000/if_em.c
4994
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "fc_high_water",
sys/dev/e1000/if_em.c
4997
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "fc_low_water",
sys/dev/e1000/if_em.c
5004
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/e1000/if_em.c
5029
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/e1000/if_em.c
5052
stat_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "mac_stats",
sys/dev/e1000/if_em.c
5243
int_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "interrupts",
sys/dev/e1000/if_em.c
963
struct sysctl_oid_list *child;
sys/dev/e1000/if_em.c
982
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/e1000/if_em.c
984
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "nvm",
sys/dev/e1000/if_em.c
989
SYSCTL_ADD_INT(ctx_list, child, OID_AUTO, "enable_aim",
sys/dev/e1000/if_em.c
993
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "fw_version",
sys/dev/e1000/if_em.c
998
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "debug",
sys/dev/ena/ena_sysctl.c
205
struct sysctl_oid_list *child;
sys/dev/ena/ena_sysctl.c
211
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
214
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "wd_active", CTLFLAG_RWTUN,
sys/dev/ena/ena_sysctl.c
217
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "keep_alive_timeout",
sys/dev/ena/ena_sysctl.c
221
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "missing_tx_timeout",
sys/dev/ena/ena_sysctl.c
225
SYSCTL_ADD_U32(ctx, child, OID_AUTO, "missing_tx_max_queues",
sys/dev/ena/ena_sysctl.c
229
SYSCTL_ADD_U32(ctx, child, OID_AUTO, "missing_tx_threshold",
sys/dev/ena/ena_sysctl.c
250
struct sysctl_oid_list *child;
sys/dev/ena/ena_sysctl.c
265
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
274
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "wd_expired", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
276
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "interface_up", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
278
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "interface_down", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
280
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "admin_q_pause", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
282
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "os_trigger", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
284
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "missing_tx_cmpl", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
286
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "bad_rx_req_id", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
288
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "bad_tx_req_id", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
290
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "bad_rx_desc_num", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
292
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "invalid_state", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
294
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "missing_intr", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
296
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "tx_desc_malformed", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
298
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "rx_desc_malformed", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
300
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "missing_admin_interrupt", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
302
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "admin_to", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
304
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "device_request_reset", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
306
SYSCTL_ADD_COUNTER_U64(ctx, child, OID_AUTO, "total_resets", CTLFLAG_RD,
sys/dev/ena/ena_sysctl.c
312
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/ena/ena_sysctl.c
406
hw_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "hw_stats",
sys/dev/ena/ena_sysctl.c
424
admin_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "admin_stats",
sys/dev/ena/ena_sysctl.c
450
struct sysctl_oid_list *child;
sys/dev/ena/ena_sysctl.c
461
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
463
ena_srd_info = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "ena_srd_info",
sys/dev/ena/ena_sysctl.c
489
struct sysctl_oid_list *child;
sys/dev/ena/ena_sysctl.c
501
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
502
customer_metric = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "customer_metrics",
sys/dev/ena/ena_sysctl.c
523
struct sysctl_oid_list *child;
sys/dev/ena/ena_sysctl.c
532
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
534
eni_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "eni_metrics",
sys/dev/ena/ena_sysctl.c
564
struct sysctl_oid_list *child;
sys/dev/ena/ena_sysctl.c
570
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
573
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "buf_ring_size",
sys/dev/ena/ena_sysctl.c
579
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_queue_size",
sys/dev/ena/ena_sysctl.c
585
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "io_queues_nb",
sys/dev/ena/ena_sysctl.c
594
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "stats_sample_interval",
sys/dev/ena/ena_sysctl.c
609
struct sysctl_oid_list *child;
sys/dev/ena/ena_sysctl.c
615
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
618
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "rss",
sys/dev/ena/ena_sysctl.c
620
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
623
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "key",
sys/dev/ena/ena_sysctl.c
628
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "indir_table",
sys/dev/ena/ena_sysctl.c
633
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "indir_table_size",
sys/dev/ena/ena_sysctl.c
646
struct sysctl_oid_list *child;
sys/dev/ena/ena_sysctl.c
652
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
654
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "irq_affinity",
sys/dev/ena/ena_sysctl.c
656
child = SYSCTL_CHILDREN(tree);
sys/dev/ena/ena_sysctl.c
659
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "base_cpu",
sys/dev/ena/ena_sysctl.c
664
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "cpu_stride",
sys/dev/enic/if_enic.c
1233
struct sysctl_oid_list *child)
sys/dev/enic/if_enic.c
1241
txsnode = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "hstats",
sys/dev/enic/if_enic.c
1271
struct sysctl_oid_list *child)
sys/dev/enic/if_enic.c
1279
rxsnode = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "hstats",
sys/dev/enic/if_enic.c
1327
struct sysctl_oid_list *child)
sys/dev/enic/if_enic.c
1329
enic_setup_txq_sysctl(softc->enic.wq, 0, ctx, child);
sys/dev/enic/if_enic.c
1330
enic_setup_rxq_sysctl(softc->enic.rq, 0, ctx, child);
sys/dev/enic/if_enic.c
1339
struct sysctl_oid_list *child;
sys/dev/enic/if_enic.c
1344
child = SYSCTL_CHILDREN(tree);
sys/dev/enic/if_enic.c
1346
enic_setup_queue_sysctl(softc, ctx, child);
sys/dev/etherswitch/e6000sw/e6000sw.c
381
e6000sw_parse_child_fdt(e6000sw_softc_t *sc, phandle_t child, int *pport)
sys/dev/etherswitch/e6000sw/e6000sw.c
388
if (OF_getencprop(child, "reg", (void *)&port, sizeof(port)) < 0)
sys/dev/etherswitch/e6000sw/e6000sw.c
394
if (e6000sw_parse_fixed_link(sc, child, port) != 0)
sys/dev/etherswitch/e6000sw/e6000sw.c
397
if (e6000sw_parse_ethernet(sc, child, port) != 0)
sys/dev/etherswitch/e6000sw/e6000sw.c
533
phandle_t child, ports;
sys/dev/etherswitch/e6000sw/e6000sw.c
573
for (child = OF_child(ports); child != 0; child = OF_peer(child)) {
sys/dev/etherswitch/e6000sw/e6000sw.c
574
err = e6000sw_parse_child_fdt(sc, child, &port);
sys/dev/etherswitch/felix/felix.c
173
felix_parse_port_fdt(felix_softc_t sc, phandle_t child, int *pport)
sys/dev/etherswitch/felix/felix.c
178
if (OF_getencprop(child, "reg", (void *)&port, sizeof(port)) < 0) {
sys/dev/etherswitch/felix/felix.c
185
node = OF_getproplen(child, "ethernet");
sys/dev/etherswitch/felix/felix.c
191
node = ofw_bus_find_child(child, "fixed-link");
sys/dev/etherswitch/felix/felix.c
355
phandle_t child, ports, node;
sys/dev/etherswitch/felix/felix.c
400
for (child = OF_child(ports); child != 0; child = OF_peer(child)) {
sys/dev/etherswitch/felix/felix.c
402
if (ofw_bus_node_status_okay(child) == 0)
sys/dev/etherswitch/felix/felix.c
405
error = felix_parse_port_fdt(sc, child, &port);
sys/dev/etherswitch/felix/felix.c
421
size = OF_getencprop(child, "phy-handle", &node, sizeof(node));
sys/dev/etherswitch/rtl8366/rtl8366rb.c
133
device_t child;
sys/dev/etherswitch/rtl8366/rtl8366rb.c
137
child = BUS_ADD_CHILD(parent, 0, "rtl8366rb", DEVICE_UNIT_ANY);
sys/dev/etherswitch/rtl8366/rtl8366rb.c
138
devi = IICBUS_IVAR(child);
sys/dev/exca/exca.c
598
exca_reset(struct exca_softc *sc, device_t child)
sys/dev/exca/exca.c
814
exca_activate_resource(struct exca_softc *exca, device_t child,
sys/dev/exca/exca.c
821
err = BUS_ACTIVATE_RESOURCE(device_get_parent(exca->dev), child,
sys/dev/exca/exca.c
834
BUS_DEACTIVATE_RESOURCE(device_get_parent(exca->dev), child,
sys/dev/exca/exca.c
840
exca_deactivate_resource(struct exca_softc *exca, device_t child,
sys/dev/exca/exca.c
855
return (BUS_DEACTIVATE_RESOURCE(device_get_parent(exca->dev), child,
sys/dev/exca/exca.c
861
exca_alloc_resource(struct exca_softc *sc, device_t child, int type, int rid,
sys/dev/exca/exca.c
885
device_printf(child, "requested interrupt %ld-%ld,"
sys/dev/exca/exca.c
894
res = BUS_ALLOC_RESOURCE(up, child, type, rid,
sys/dev/exca/exca.c
900
if (bus_activate_resource(child, type, rid, res) != 0) {
sys/dev/exca/exca.c
901
bus_release_resource(child, type, rid, res);
sys/dev/exca/exca.c
910
exca_release_resource(struct exca_softc *sc, device_t child, int type,
sys/dev/exca/exca.c
916
error = bus_deactivate_resource(child, type, rid, res);
sys/dev/exca/exca.c
921
return (BUS_RELEASE_RESOURCE(device_get_parent(brdev), child,
sys/dev/exca/excavar.h
121
void exca_reset(struct exca_softc *, device_t child);
sys/dev/exca/excavar.h
124
int exca_activate_resource(struct exca_softc *exca, device_t child,
sys/dev/exca/excavar.h
126
int exca_deactivate_resource(struct exca_softc *exca, device_t child,
sys/dev/fdc/fdc.c
1618
fdc_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/fdc/fdc.c
1620
struct fdc_ivars *ivars = device_get_ivars(child);
sys/dev/fdc/fdc.c
1636
fdc_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/fdc/fdc.c
1638
struct fdc_ivars *ivars = device_get_ivars(child);
sys/dev/fdc/fdc.c
1763
device_t child;
sys/dev/fdc/fdc.c
1768
child = device_add_child(dev, name, unit);
sys/dev/fdc/fdc.c
1769
if (child == NULL) {
sys/dev/fdc/fdc.c
1773
device_set_ivars(child, ivar);
sys/dev/fdc/fdc.c
1777
device_disable(child);
sys/dev/fdc/fdc.c
1778
return (child);
sys/dev/fdc/fdc.c
1861
fdc_print_child(device_t me, device_t child)
sys/dev/fdc/fdc.c
1865
retval += bus_print_child_header(me, child);
sys/dev/fdc/fdc.c
1867
fdc_get_fdunit(child));
sys/dev/fdc/fdc_acpi.c
189
device_t child, old_child;
sys/dev/fdc/fdc_acpi.c
210
child = fdc_add_child(ctx->dev, "fd", ctx->index);
sys/dev/fdc/fdc_acpi.c
211
if (child == NULL)
sys/dev/fdc/fdc_acpi.c
214
*dev = child;
sys/dev/fdc/fdc_acpi.c
245
fdc_set_fdtype(child, obj->Integer.Value);
sys/dev/fdt/fdt_common.c
217
phandle_t child;
sys/dev/fdt/fdt_common.c
223
for (child = OF_child(start); child != 0; child = OF_peer(child))
sys/dev/fdt/fdt_common.c
224
if (ofw_bus_node_is_compatible(child, compat)) {
sys/dev/fdt/fdt_common.c
226
if (!fdt_is_compatible_strict(child, compat))
sys/dev/fdt/fdt_common.c
228
return (child);
sys/dev/fdt/fdt_common.c
236
phandle_t child, node;
sys/dev/fdt/fdt_common.c
247
child = fdt_depth_search_compatible(node, compat, strict);
sys/dev/fdt/fdt_common.c
248
if (child != 0)
sys/dev/fdt/fdt_common.c
249
return (child);
sys/dev/fdt/fdt_common.c
347
device_t parent, child;
sys/dev/fdt/fdt_common.c
389
child = device_find_child(parent, device_get_name(dev), i);
sys/dev/fdt/fdt_common.c
390
while (child != NULL) {
sys/dev/fdt/fdt_common.c
391
if (ofw_bus_get_node(child) == phy_node)
sys/dev/fdt/fdt_common.c
394
child = device_find_child(parent, device_get_name(dev), i);
sys/dev/fdt/fdt_common.c
396
if (child == NULL)
sys/dev/fdt/fdt_common.c
402
*phy_sc = (void *)device_get_softc(child);
sys/dev/fdt/fdt_common.c
462
phandle_t child, root;
sys/dev/fdt/fdt_common.c
477
for (child = OF_child(root); child != 0; child = OF_peer(child)) {
sys/dev/fdt/fdt_common.c
478
if (!OF_hasprop(child, "no-map"))
sys/dev/fdt/fdt_common.c
481
rv = OF_getprop(child, "reg", reg, sizeof(reg));
sys/dev/fdt/fdt_slicer.c
114
phandle_t child, node;
sys/dev/fdt/fdt_slicer.c
133
child = fdt_find_compatible(node, "fixed-partitions", false);
sys/dev/fdt/fdt_slicer.c
134
if (child == 0)
sys/dev/fdt/fdt_slicer.c
137
return fill_slices_from_node(child, slices, slices_num);
sys/dev/fdt/fdt_slicer.c
54
phandle_t child;
sys/dev/fdt/fdt_slicer.c
60
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/fdt/fdt_slicer.c
64
if (OF_hasprop(child, "compatible"))
sys/dev/fdt/fdt_slicer.c
73
if (fdt_regsize(child, &base, &size) != 0) {
sys/dev/fdt/fdt_slicer.c
85
nmlen = OF_getprop_alloc(child, "label", (void **)&label);
sys/dev/fdt/fdt_slicer.c
88
nmlen = OF_getprop_alloc(child, "name", (void **)&label);
sys/dev/fdt/fdt_slicer.c
95
if (OF_hasprop(child, "read-only"))
sys/dev/fdt/simple_mfd.c
170
phandle_t node, child;
sys/dev/fdt/simple_mfd.c
204
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/fdt/simple_mfd.c
205
(void)simple_mfd_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/fdt/simplebus.c
372
simplebus_get_devinfo(device_t bus __unused, device_t child)
sys/dev/fdt/simplebus.c
376
ndi = device_get_ivars(child);
sys/dev/fdt/simplebus.c
383
simplebus_get_resource_list(device_t bus __unused, device_t child)
sys/dev/fdt/simplebus.c
387
ndi = device_get_ivars(child);
sys/dev/fdt/simplebus.c
394
simplebus_get_property(device_t bus, device_t child, const char *propname,
sys/dev/fdt/simplebus.c
413
node = ofw_bus_get_node(child);
sys/dev/fdt/simplebus.c
463
simplebus_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/fdt/simplebus.c
478
if ((di = device_get_ivars(child)) == NULL)
sys/dev/fdt/simplebus.c
514
return (bus_generic_alloc_resource(bus, child, type, rid, start, end,
sys/dev/fdt/simplebus.c
52
static void simplebus_probe_nomatch(device_t bus, device_t child);
sys/dev/fdt/simplebus.c
53
static int simplebus_print_child(device_t bus, device_t child);
sys/dev/fdt/simplebus.c
532
simplebus_probe_nomatch(device_t bus, device_t child)
sys/dev/fdt/simplebus.c
539
compat = ofw_bus_get_compat(child);
sys/dev/fdt/simplebus.c
542
name = ofw_bus_get_name(child);
sys/dev/fdt/simplebus.c
543
type = ofw_bus_get_type(child);
sys/dev/fdt/simplebus.c
546
simplebus_print_res(device_get_ivars(child));
sys/dev/fdt/simplebus.c
547
if (!ofw_bus_status_okay(child))
sys/dev/fdt/simplebus.c
555
simplebus_print_child(device_t bus, device_t child)
sys/dev/fdt/simplebus.c
559
rv = bus_print_child_header(bus, child);
sys/dev/fdt/simplebus.c
560
rv += simplebus_print_res(device_get_ivars(child));
sys/dev/fdt/simplebus.c
561
if (!ofw_bus_status_okay(child))
sys/dev/fdt/simplebus.c
563
rv += bus_print_child_footer(bus, child);
sys/dev/fdt/simplebus.c
568
simplebus_get_id(device_t dev, device_t child, enum pci_id_type type,
sys/dev/fdt/simplebus.c
57
device_t child);
sys/dev/fdt/simplebus.c
579
node = ofw_bus_get_node(child);
sys/dev/fdt/simplebus.c
59
static ssize_t simplebus_get_property(device_t bus, device_t child,
sys/dev/fdt/simplebus.c
594
simplebus_alloc_msi(device_t bus, device_t child, int *count)
sys/dev/fdt/simplebus.c
603
ndi = device_get_ivars(child);
sys/dev/fdt/simplebus.c
615
error = PCIB_ALLOC_MSI(bus, child, irq_count, irq_count, irqs);
sys/dev/fdt/simplebus.c
620
error = bus_generic_rl_set_resource(bus, child, SYS_RES_IRQ,
sys/dev/fdt/simplebus.c
629
bus_generic_rl_delete_resource(bus, child, SYS_RES_IRQ,
sys/dev/fdt/simplebus.c
639
simplebus_pcib_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/dev/fdt/simplebus.c
642
return (PCIB_ALLOC_MSI(device_get_parent(dev), child, count, maxcount,
sys/dev/fdt/simplebus.c
647
simplebus_pcib_release_msi(device_t dev, device_t child, int count, int *irqs)
sys/dev/fdt/simplebus.c
649
return (PCIB_RELEASE_MSI(device_get_parent(dev), child, count, irqs));
sys/dev/fdt/simplebus.c
653
simplebus_pcib_alloc_msix(device_t dev, device_t child, int *irq)
sys/dev/fdt/simplebus.c
655
return (PCIB_ALLOC_MSIX(device_get_parent(dev), child, irq));
sys/dev/fdt/simplebus.c
659
simplebus_pcib_release_msix(device_t dev, device_t child, int irq)
sys/dev/fdt/simplebus.c
66
device_t child);
sys/dev/fdt/simplebus.c
661
return (PCIB_RELEASE_MSIX(device_get_parent(dev), child, irq));
sys/dev/fdt/simplebus.c
665
simplebus_pcib_map_msi(device_t dev, device_t child, int irq, uint64_t *addr,
sys/dev/fdt/simplebus.c
668
return (PCIB_MAP_MSI(device_get_parent(dev), child, irq, addr,
sys/dev/firewire/firewire.c
475
device_t child;
sys/dev/firewire/firewire.c
479
child = device_add_child(dev, name, unit);
sys/dev/firewire/firewire.c
480
if (child) {
sys/dev/firewire/firewire.c
481
device_set_ivars(child, sc->fc);
sys/dev/firewire/firewire.c
482
device_probe_and_attach(child);
sys/dev/firewire/firewire.c
485
return child;
sys/dev/firewire/fwcrom.c
421
struct crom_chunk *child, int key)
sys/dev/firewire/fwcrom.c
426
STAILQ_INSERT_TAIL(&src->chunk_list, child, link);
sys/dev/firewire/fwcrom.c
434
child->ref_chunk = parent;
sys/dev/firewire/fwcrom.c
435
child->ref_index = index;
sys/dev/firewire/fwcrom.c
436
STAILQ_INSERT_TAIL(&src->chunk_list, child, link);
sys/dev/firewire/fwohci_pci.c
406
device_t child;
sys/dev/firewire/fwohci_pci.c
410
child = device_add_child(dev, name, unit);
sys/dev/firewire/fwohci_pci.c
411
if (child == NULL)
sys/dev/firewire/fwohci_pci.c
412
return (child);
sys/dev/firewire/fwohci_pci.c
414
sc->fc.bdev = child;
sys/dev/firewire/fwohci_pci.c
415
device_set_ivars(child, &sc->fc);
sys/dev/firewire/fwohci_pci.c
417
err = device_probe_and_attach(child);
sys/dev/firewire/fwohci_pci.c
422
device_delete_child(dev, child);
sys/dev/firewire/fwohci_pci.c
438
return (child);
sys/dev/firmware/xilinx/zynqmp_firmware.c
460
phandle_t node, child;
sys/dev/firmware/xilinx/zynqmp_firmware.c
474
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/firmware/xilinx/zynqmp_firmware.c
475
cdev = zynqmp_firmware_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/flash/cqspi.c
346
cqspi_write_reg(device_t dev, device_t child,
sys/dev/flash/cqspi.c
360
cqspi_read_reg(device_t dev, device_t child,
sys/dev/flash/cqspi.c
389
cqspi_erase(device_t dev, device_t child, off_t offset)
sys/dev/flash/cqspi.c
409
cqspi_write(device_t dev, device_t child, struct bio *bp,
sys/dev/flash/cqspi.c
466
cqspi_read(device_t dev, device_t child, struct bio *bp,
sys/dev/flash/cqspi.c
593
phandle_t child, node;
sys/dev/flash/cqspi.c
599
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/flash/cqspi.c
601
simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/fxp/if_fxp.c
3118
struct sysctl_oid_list *child, *parent;
sys/dev/fxp/if_fxp.c
3123
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev));
sys/dev/fxp/if_fxp.c
3125
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_delay",
sys/dev/fxp/if_fxp.c
3129
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "bundle_max",
sys/dev/fxp/if_fxp.c
3133
SYSCTL_ADD_INT(ctx, child,OID_AUTO, "rnr", CTLFLAG_RD, &sc->rnr, 0,
sys/dev/fxp/if_fxp.c
3148
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/fxp/if_fxp.c
3155
child = SYSCTL_CHILDREN(tree);
sys/dev/fxp/if_fxp.c
3156
FXP_SYSCTL_STAT_ADD(ctx, child, "good_frames",
sys/dev/fxp/if_fxp.c
3158
FXP_SYSCTL_STAT_ADD(ctx, child, "crc_errors",
sys/dev/fxp/if_fxp.c
3160
FXP_SYSCTL_STAT_ADD(ctx, child, "alignment_errors",
sys/dev/fxp/if_fxp.c
3162
FXP_SYSCTL_STAT_ADD(ctx, child, "rnr_errors",
sys/dev/fxp/if_fxp.c
3164
FXP_SYSCTL_STAT_ADD(ctx, child, "overrun_errors",
sys/dev/fxp/if_fxp.c
3166
FXP_SYSCTL_STAT_ADD(ctx, child, "cdt_errors",
sys/dev/fxp/if_fxp.c
3168
FXP_SYSCTL_STAT_ADD(ctx, child, "shortframes",
sys/dev/fxp/if_fxp.c
3171
FXP_SYSCTL_STAT_ADD(ctx, child, "pause",
sys/dev/fxp/if_fxp.c
3173
FXP_SYSCTL_STAT_ADD(ctx, child, "controls",
sys/dev/fxp/if_fxp.c
3177
FXP_SYSCTL_STAT_ADD(ctx, child, "tco",
sys/dev/fxp/if_fxp.c
3183
child = SYSCTL_CHILDREN(tree);
sys/dev/fxp/if_fxp.c
3184
FXP_SYSCTL_STAT_ADD(ctx, child, "good_frames",
sys/dev/fxp/if_fxp.c
3186
FXP_SYSCTL_STAT_ADD(ctx, child, "maxcols",
sys/dev/fxp/if_fxp.c
3188
FXP_SYSCTL_STAT_ADD(ctx, child, "latecols",
sys/dev/fxp/if_fxp.c
3190
FXP_SYSCTL_STAT_ADD(ctx, child, "underruns",
sys/dev/fxp/if_fxp.c
3192
FXP_SYSCTL_STAT_ADD(ctx, child, "lostcrs",
sys/dev/fxp/if_fxp.c
3194
FXP_SYSCTL_STAT_ADD(ctx, child, "deffered",
sys/dev/fxp/if_fxp.c
3196
FXP_SYSCTL_STAT_ADD(ctx, child, "single_collisions",
sys/dev/fxp/if_fxp.c
3198
FXP_SYSCTL_STAT_ADD(ctx, child, "multiple_collisions",
sys/dev/fxp/if_fxp.c
3200
FXP_SYSCTL_STAT_ADD(ctx, child, "total_collisions",
sys/dev/fxp/if_fxp.c
3203
FXP_SYSCTL_STAT_ADD(ctx, child, "pause",
sys/dev/fxp/if_fxp.c
3206
FXP_SYSCTL_STAT_ADD(ctx, child, "tco",
sys/dev/gpio/acpi_gpiobus.c
258
device_t child;
sys/dev/gpio/acpi_gpiobus.c
281
child = BUS_ADD_CHILD(sc->super_sc.sc_busdev, 0, "gpio_aei",
sys/dev/gpio/acpi_gpiobus.c
283
if (child == NULL) {
sys/dev/gpio/acpi_gpiobus.c
290
devi = device_get_ivars(child);
sys/dev/gpio/acpi_gpiobus.c
298
device_delete_child(sc->super_sc.sc_busdev, child);
sys/dev/gpio/acpi_gpiobus.c
307
status = AcpiAttachData(aei_handle, acpi_fake_objhandler, child);
sys/dev/gpio/acpi_gpiobus.c
398
acpi_gpiobus_read_ivar(device_t dev, device_t child, int which,
sys/dev/gpio/acpi_gpiobus.c
401
struct acpi_gpiobus_ivar *devi = device_get_ivars(child);
sys/dev/gpio/acpi_gpiobus.c
408
return (gpiobus_read_ivar(dev, child, which, result));
sys/dev/gpio/acpi_gpiobus.c
422
acpi_gpiobus_child_location(device_t bus, device_t child, struct sbuf *sb)
sys/dev/gpio/acpi_gpiobus.c
427
err = gpiobus_child_location(bus, child, sb);
sys/dev/gpio/acpi_gpiobus.c
431
devi = device_get_ivars(child);
sys/dev/gpio/acpi_gpiobus.c
437
acpi_gpiobus_child_deleted(device_t bus, device_t child)
sys/dev/gpio/acpi_gpiobus.c
439
struct acpi_gpiobus_ivar *devi = device_get_ivars(child);
sys/dev/gpio/acpi_gpiobus.c
441
if (acpi_get_device(devi->handle) == child)
sys/dev/gpio/acpi_gpiobus.c
443
gpiobus_child_deleted(bus, child);
sys/dev/gpio/gpiobus.c
1003
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
1012
gpiobus_pin_set(device_t dev, device_t child, uint32_t pin,
sys/dev/gpio/gpiobus.c
1016
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
1025
gpiobus_pin_get(device_t dev, device_t child, uint32_t pin,
sys/dev/gpio/gpiobus.c
1029
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
1038
gpiobus_pin_toggle(device_t dev, device_t child, uint32_t pin)
sys/dev/gpio/gpiobus.c
1041
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
1070
gpiobus_pin_access_32(device_t dev, device_t child, uint32_t first_pin,
sys/dev/gpio/gpiobus.c
1074
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
1084
gpiobus_pin_config_32(device_t dev, device_t child, uint32_t first_pin,
sys/dev/gpio/gpiobus.c
1088
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
466
gpiobus_acquire_child_pins(device_t dev, device_t child)
sys/dev/gpio/gpiobus.c
468
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
474
device_printf(child, "cannot acquire pin %d\n",
sys/dev/gpio/gpiobus.c
486
device_get_nameunit(child));
sys/dev/gpio/gpiobus.c
493
gpiobus_parse_pins(struct gpiobus_softc *sc, device_t child, int mask)
sys/dev/gpio/gpiobus.c
495
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
504
device_printf(child, "empty pin mask\n");
sys/dev/gpio/gpiobus.c
509
device_printf(child, "cannot allocate device ivars\n");
sys/dev/gpio/gpiobus.c
523
gpiobus_parse_pin_list(struct gpiobus_softc *sc, device_t child,
sys/dev/gpio/gpiobus.c
526
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
545
device_printf(child, "garbage in the pin list: %s\n", endp);
sys/dev/gpio/gpiobus.c
549
device_printf(child, "empty pin list\n");
sys/dev/gpio/gpiobus.c
555
device_printf(child, "cannot allocate device ivars\n");
sys/dev/gpio/gpiobus.c
653
gpiobus_probe_nomatch(device_t dev, device_t child)
sys/dev/gpio/gpiobus.c
659
devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
670
gpiobus_print_child(device_t dev, device_t child)
sys/dev/gpio/gpiobus.c
677
devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
678
retval += bus_print_child_header(dev, child);
sys/dev/gpio/gpiobus.c
690
retval += bus_print_child_footer(dev, child);
sys/dev/gpio/gpiobus.c
696
gpiobus_child_location(device_t bus, device_t child, struct sbuf *sb)
sys/dev/gpio/gpiobus.c
700
devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
711
device_t child;
sys/dev/gpio/gpiobus.c
716
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/gpio/gpiobus.c
717
if (child == NULL)
sys/dev/gpio/gpiobus.c
718
return (child);
sys/dev/gpio/gpiobus.c
721
device_delete_child(dev, child);
sys/dev/gpio/gpiobus.c
725
device_set_ivars(child, devi);
sys/dev/gpio/gpiobus.c
727
return (child);
sys/dev/gpio/gpiobus.c
738
gpiobus_child_deleted(device_t dev, device_t child)
sys/dev/gpio/gpiobus.c
742
devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
769
device_t child;
sys/dev/gpio/gpiobus.c
777
child = BUS_ADD_CHILD(bus, 0, dname, dunit);
sys/dev/gpio/gpiobus.c
779
if (gpiobus_parse_pins(sc, child, pinmask)) {
sys/dev/gpio/gpiobus.c
780
device_delete_child(bus, child);
sys/dev/gpio/gpiobus.c
785
if (gpiobus_parse_pin_list(sc, child, pins)) {
sys/dev/gpio/gpiobus.c
786
device_delete_child(bus, child);
sys/dev/gpio/gpiobus.c
791
if (bus_set_resource(child, SYS_RES_IRQ, 0, irq, 1) != 0)
sys/dev/gpio/gpiobus.c
798
gpiobus_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/gpio/gpiobus.c
802
devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
818
gpiobus_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/gpio/gpiobus.c
824
devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
833
device_printf(child, "cannot allocate device ivars\n");
sys/dev/gpio/gpiobus.c
842
if (gpiobus_acquire_child_pins(dev, child) != 0)
sys/dev/gpio/gpiobus.c
867
gpiobus_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/gpio/gpiobus.c
876
rl = BUS_GET_RESOURCE_LIST(bus, child);
sys/dev/gpio/gpiobus.c
886
return (bus_generic_rman_alloc_resource(bus, child, type, rid, start,
sys/dev/gpio/gpiobus.c
891
gpiobus_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/gpio/gpiobus.c
900
err = bus_generic_rman_release_resource(dev, child, r);
sys/dev/gpio/gpiobus.c
910
gpiobus_get_resource_list(device_t bus __unused, device_t child)
sys/dev/gpio/gpiobus.c
914
ivar = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
920
gpiobus_acquire_bus(device_t busdev, device_t child, int how)
sys/dev/gpio/gpiobus.c
928
if (sc->sc_owner == child)
sys/dev/gpio/gpiobus.c
931
device_get_nameunit(child));
sys/dev/gpio/gpiobus.c
939
sc->sc_owner = child;
sys/dev/gpio/gpiobus.c
946
gpiobus_release_bus(device_t busdev, device_t child)
sys/dev/gpio/gpiobus.c
956
device_get_nameunit(child));
sys/dev/gpio/gpiobus.c
957
if (sc->sc_owner != child)
sys/dev/gpio/gpiobus.c
960
device_get_nameunit(child),
sys/dev/gpio/gpiobus.c
968
gpiobus_pin_setflags(device_t dev, device_t child, uint32_t pin,
sys/dev/gpio/gpiobus.c
972
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
986
gpiobus_pin_getflags(device_t dev, device_t child, uint32_t pin,
sys/dev/gpio/gpiobus.c
990
struct gpiobus_ivar *devi = GPIOBUS_IVAR(child);
sys/dev/gpio/gpiobus.c
999
gpiobus_pin_getcaps(device_t dev, device_t child, uint32_t pin,
sys/dev/gpio/gpiokeys.c
410
phandle_t keys, child;
sys/dev/gpio/gpiokeys.c
476
for (child = OF_child(keys); child != 0; child = OF_peer(child)) {
sys/dev/gpio/gpiokeys.c
477
if (!OF_hasprop(child, "gpios"))
sys/dev/gpio/gpiokeys.c
488
for (child = OF_child(keys); child != 0; child = OF_peer(child)) {
sys/dev/gpio/gpiokeys.c
489
if (!OF_hasprop(child, "gpios"))
sys/dev/gpio/gpiokeys.c
491
gpiokeys_attach_key(sc, child ,&sc->sc_keys[sc->sc_total_keys]);
sys/dev/gpio/gpioled_fdt.c
159
phandle_t child, leds;
sys/dev/gpio/gpioled_fdt.c
171
for (child = OF_child(leds); child != 0; child = OF_peer(child)) {
sys/dev/gpio/gpioled_fdt.c
172
if (!OF_hasprop(child, "gpios"))
sys/dev/gpio/gpioled_fdt.c
183
for (child = OF_child(leds); child != 0; child = OF_peer(child)) {
sys/dev/gpio/gpioled_fdt.c
184
if (!OF_hasprop(child, "gpios"))
sys/dev/gpio/gpioled_fdt.c
186
gpioleds_attach_led(sc, child, &sc->sc_leds[sc->sc_total_leds]);
sys/dev/gpio/gpiospi.c
323
gpio_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/dev/gpio/gpiospi.c
327
struct spibus_ivar *devi = SPIBUS_IVAR(child);
sys/dev/gpio/ofw_gpiobus.c
143
ofw_gpiobus_add_fdt_child(device_t bus, const char *drvname, phandle_t child)
sys/dev/gpio/ofw_gpiobus.c
154
childdev = ofw_bus_find_child_device_by_phandle(bus, child);
sys/dev/gpio/ofw_gpiobus.c
164
dinfo = ofw_gpiobus_setup_devinfo(bus, childdev, child);
sys/dev/gpio/ofw_gpiobus.c
213
ofw_gpiobus_setup_devinfo(device_t bus, device_t child, phandle_t node)
sys/dev/gpio/ofw_gpiobus.c
230
npins = ofw_gpiobus_parse_gpios_impl(child, node, "gpios", sc, &pins);
sys/dev/gpio/ofw_gpiobus.c
254
device_set_ivars(child, dinfo);
sys/dev/gpio/ofw_gpiobus.c
424
phandle_t child;
sys/dev/gpio/ofw_gpiobus.c
437
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/dev/gpio/ofw_gpiobus.c
438
child = OF_peer(child)) {
sys/dev/gpio/ofw_gpiobus.c
439
if (OF_hasprop(child, "gpio-hog"))
sys/dev/gpio/ofw_gpiobus.c
441
if (!OF_hasprop(child, "gpios"))
sys/dev/gpio/ofw_gpiobus.c
443
if (ofw_gpiobus_add_fdt_child(dev, NULL, child) == NULL)
sys/dev/gpio/ofw_gpiobus.c
454
device_t child;
sys/dev/gpio/ofw_gpiobus.c
457
child = gpiobus_add_child_common(dev, order, name, unit,
sys/dev/gpio/ofw_gpiobus.c
459
if (child == NULL)
sys/dev/gpio/ofw_gpiobus.c
466
devi = device_get_ivars(child);
sys/dev/gpio/ofw_gpiobus.c
473
return (child);
sys/dev/gve/gve_sysctl.c
117
struct sysctl_oid_list *child, struct gve_tx_ring *txq)
sys/dev/gve/gve_sysctl.c
125
node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/gve/gve_sysctl.c
201
gve_setup_queue_stat_sysctl(struct sysctl_ctx_list *ctx, struct sysctl_oid_list *child,
sys/dev/gve/gve_sysctl.c
207
gve_setup_rxq_sysctl(ctx, child, &priv->rx[i]);
sys/dev/gve/gve_sysctl.c
210
gve_setup_txq_sysctl(ctx, child, &priv->tx[i]);
sys/dev/gve/gve_sysctl.c
216
struct sysctl_oid_list *child, struct gve_priv *priv)
sys/dev/gve/gve_sysctl.c
222
admin_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "adminq_stats",
sys/dev/gve/gve_sysctl.c
278
struct sysctl_oid_list *child, struct gve_priv *priv)
sys/dev/gve/gve_sysctl.c
284
main_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "main_stats",
sys/dev/gve/gve_sysctl.c
444
struct sysctl_oid_list *child, struct gve_priv *priv)
sys/dev/gve/gve_sysctl.c
446
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "num_tx_queues",
sys/dev/gve/gve_sysctl.c
450
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "num_rx_queues",
sys/dev/gve/gve_sysctl.c
455
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_ring_size",
sys/dev/gve/gve_sysctl.c
459
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_ring_size",
sys/dev/gve/gve_sysctl.c
470
struct sysctl_oid_list *child;
sys/dev/gve/gve_sysctl.c
475
child = SYSCTL_CHILDREN(tree);
sys/dev/gve/gve_sysctl.c
477
gve_setup_queue_stat_sysctl(ctx, child, priv);
sys/dev/gve/gve_sysctl.c
478
gve_setup_adminq_stat_sysctl(ctx, child, priv);
sys/dev/gve/gve_sysctl.c
479
gve_setup_main_stat_sysctl(ctx, child, priv);
sys/dev/gve/gve_sysctl.c
480
gve_setup_sysctl_writables(ctx, child, priv);
sys/dev/gve/gve_sysctl.c
54
struct sysctl_oid_list *child, struct gve_rx_ring *rxq)
sys/dev/gve/gve_sysctl.c
62
node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/hid/hidbus.c
196
device_t child;
sys/dev/hid/hidbus.c
198
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/hid/hidbus.c
199
if (child == NULL)
sys/dev/hid/hidbus.c
200
return (child);
sys/dev/hid/hidbus.c
204
device_set_ivars(child, tlc);
sys/dev/hid/hidbus.c
209
return (child);
sys/dev/hid/hidbus.c
218
device_t child;
sys/dev/hid/hidbus.c
229
child = BUS_ADD_CHILD(dev, 0, NULL, DEVICE_UNIT_ANY);
sys/dev/hid/hidbus.c
230
if (child == NULL) {
sys/dev/hid/hidbus.c
234
hidbus_set_index(child, index);
sys/dev/hid/hidbus.c
235
hidbus_set_usage(child, hi.usage);
sys/dev/hid/hidbus.c
236
hidbus_set_flags(child, HIDBUS_FLAG_AUTOCHILD);
sys/dev/hid/hidbus.c
396
hidbus_child_detached(device_t bus, device_t child)
sys/dev/hid/hidbus.c
399
struct hidbus_ivars *tlc = device_get_ivars(child);
sys/dev/hid/hidbus.c
420
hidbus_child_deleted(device_t bus, device_t child)
sys/dev/hid/hidbus.c
423
struct hidbus_ivars *tlc = device_get_ivars(child);
sys/dev/hid/hidbus.c
433
hidbus_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/dev/hid/hidbus.c
436
struct hidbus_ivars *tlc = device_get_ivars(child);
sys/dev/hid/hidbus.c
461
hidbus_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
sys/dev/hid/hidbus.c
464
struct hidbus_ivars *tlc = device_get_ivars(child);
sys/dev/hid/hidbus.c
494
hidbus_child_location(device_t bus, device_t child, struct sbuf *sb)
sys/dev/hid/hidbus.c
496
struct hidbus_ivars *tlc = device_get_ivars(child);
sys/dev/hid/hidbus.c
504
hidbus_child_pnpinfo(device_t bus, device_t child, struct sbuf *sb)
sys/dev/hid/hidbus.c
506
struct hidbus_ivars *tlc = device_get_ivars(child);
sys/dev/hid/hidbus.c
519
hidbus_set_desc(device_t child, const char *suffix)
sys/dev/hid/hidbus.c
521
device_t bus = device_get_parent(child);
sys/dev/hid/hidbus.c
524
struct hidbus_ivars *tlc = device_get_ivars(child);
sys/dev/hid/hidbus.c
529
device_set_descf(child, "%s %s", devinfo->name, suffix);
sys/dev/hid/hidbus.c
531
device_set_desc(child, devinfo->name);
sys/dev/hid/hidbus.c
537
device_t *children, child;
sys/dev/hid/hidbus.c
547
for (i = 0, child = NULL; i < ccount; i++) {
sys/dev/hid/hidbus.c
549
child = children[i];
sys/dev/hid/hidbus.c
555
return (child);
sys/dev/hid/hidbus.c
591
hidbus_set_intr(device_t child, hid_intr_t *handler, void *context)
sys/dev/hid/hidbus.c
593
struct hidbus_ivars *tlc = device_get_ivars(child);
sys/dev/hid/hidbus.c
600
hidbus_intr_start(device_t bus, device_t child)
sys/dev/hid/hidbus.c
602
MPASS(bus == device_get_parent(child));
sys/dev/hid/hidbus.c
604
struct hidbus_ivars *ivar = device_get_ivars(child);
sys/dev/hid/hidbus.c
619
hidbus_intr_stop(device_t bus, device_t child)
sys/dev/hid/hidbus.c
621
MPASS(bus == device_get_parent(child));
sys/dev/hid/hidbus.c
623
struct hidbus_ivars *ivar = device_get_ivars(child);
sys/dev/hid/hidbus.c
642
hidbus_intr_poll(device_t bus, device_t child __unused)
sys/dev/hid/hidbus.c
648
hidbus_get_rdesc_info(device_t child)
sys/dev/hid/hidbus.c
650
device_t bus = device_get_parent(child);
sys/dev/hid/hidbus.c
744
hidbus_get_rdesc(device_t dev, device_t child __unused, void *data,
sys/dev/hid/hidbus.c
751
hidbus_read(device_t dev, device_t child __unused, void *data,
sys/dev/hid/hidbus.c
758
hidbus_write(device_t dev, device_t child __unused, const void *data,
sys/dev/hid/hidbus.c
779
hidbus_get_report(device_t dev, device_t child __unused, void *data,
sys/dev/hid/hidbus.c
786
hidbus_set_report(device_t dev, device_t child __unused, const void *data,
sys/dev/hid/hidbus.c
793
hidbus_set_idle(device_t dev, device_t child __unused, uint16_t duration,
sys/dev/hid/hidbus.c
800
hidbus_set_protocol(device_t dev, device_t child __unused, uint16_t protocol)
sys/dev/hid/hidbus.c
806
hidbus_ioctl(device_t dev, device_t child __unused, unsigned long cmd,
sys/dev/hid/hidbus.c
894
hidbus_lookup_driver_info(device_t child, const struct hid_device_id *id,
sys/dev/hid/hidbus.c
898
id = hidbus_lookup_id(child, id, nitems_id);
sys/dev/hid/hidbus.c
901
hidbus_set_driver_info(child, id->driver_info);
sys/dev/hid/hidraw.c
191
device_t child;
sys/dev/hid/hidraw.c
194
child = BUS_ADD_CHILD(parent, 0, HIDRAW_NAME,
sys/dev/hid/hidraw.c
196
if (child != NULL)
sys/dev/hid/hidraw.c
197
hidbus_set_index(child, HIDRAW_INDEX);
sys/dev/hyperv/input/hv_hid.c
405
device_t child;
sys/dev/hyperv/input/hv_hid.c
439
child = device_add_child(sc->dev, "hidbus", DEVICE_UNIT_ANY);
sys/dev/hyperv/input/hv_hid.c
440
if (child == NULL) {
sys/dev/hyperv/input/hv_hid.c
445
device_set_ivars(child, &sc->hdi);
sys/dev/hyperv/input/hv_hid.c
474
hv_hid_intr_setup(device_t dev, device_t child __unused, hid_intr_t intr,
sys/dev/hyperv/input/hv_hid.c
490
hv_hid_intr_unsetup(device_t dev, device_t child __unused)
sys/dev/hyperv/input/hv_hid.c
501
hv_hid_intr_start(device_t dev, device_t child __unused)
sys/dev/hyperv/input/hv_hid.c
513
hv_hid_intr_stop(device_t dev, device_t child __unused)
sys/dev/hyperv/input/hv_hid.c
525
hv_hid_get_rdesc(device_t dev, device_t child __unused, void *buf,
sys/dev/hyperv/input/hv_kbdc.c
454
struct sysctl_oid_list *child;
sys/dev/hyperv/input/hv_kbdc.c
460
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/hyperv/input/hv_kbdc.c
461
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "debug", CTLFLAG_RW,
sys/dev/hyperv/netvsc/if_hn.c
2075
struct sysctl_oid_list *child;
sys/dev/hyperv/netvsc/if_hn.c
2258
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/hyperv/netvsc/if_hn.c
2259
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "nvs_version", CTLFLAG_RD,
sys/dev/hyperv/netvsc/if_hn.c
2261
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "ndis_version",
sys/dev/hyperv/netvsc/if_hn.c
2264
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "caps",
sys/dev/hyperv/netvsc/if_hn.c
2267
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "hwassist",
sys/dev/hyperv/netvsc/if_hn.c
2270
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tso_max",
sys/dev/hyperv/netvsc/if_hn.c
2273
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tso_maxsegcnt",
sys/dev/hyperv/netvsc/if_hn.c
2276
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tso_maxsegsz",
sys/dev/hyperv/netvsc/if_hn.c
2279
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rxfilter",
sys/dev/hyperv/netvsc/if_hn.c
2282
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rss_hash",
sys/dev/hyperv/netvsc/if_hn.c
2285
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rss_hashcap",
sys/dev/hyperv/netvsc/if_hn.c
2288
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "mbuf_hash",
sys/dev/hyperv/netvsc/if_hn.c
2291
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "rss_ind_size",
sys/dev/hyperv/netvsc/if_hn.c
2297
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rss_key",
sys/dev/hyperv/netvsc/if_hn.c
2300
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rss_ind",
sys/dev/hyperv/netvsc/if_hn.c
2304
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rndis_agg_size",
sys/dev/hyperv/netvsc/if_hn.c
2307
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rndis_agg_pkts",
sys/dev/hyperv/netvsc/if_hn.c
2310
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rndis_agg_align",
sys/dev/hyperv/netvsc/if_hn.c
2313
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "agg_size",
sys/dev/hyperv/netvsc/if_hn.c
2317
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "agg_pkts",
sys/dev/hyperv/netvsc/if_hn.c
2322
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "polling",
sys/dev/hyperv/netvsc/if_hn.c
2326
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "vf",
sys/dev/hyperv/netvsc/if_hn.c
2330
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rxvf",
sys/dev/hyperv/netvsc/if_hn.c
2334
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "vf_xpnt_enabled",
sys/dev/hyperv/netvsc/if_hn.c
2338
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "vf_xpnt_accbpf",
sys/dev/hyperv/netvsc/if_hn.c
2344
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rsc_switch",
sys/dev/hyperv/netvsc/if_hn.c
4920
struct sysctl_oid_list *child;
sys/dev/hyperv/netvsc/if_hn.c
4958
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/hyperv/netvsc/if_hn.c
4961
sc->hn_rx_sysctl_tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "rx",
sys/dev/hyperv/netvsc/if_hn.c
5044
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "lro_queued",
sys/dev/hyperv/netvsc/if_hn.c
5049
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "lro_flushed",
sys/dev/hyperv/netvsc/if_hn.c
5054
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "lro_tried",
sys/dev/hyperv/netvsc/if_hn.c
5058
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "lro_length_lim",
sys/dev/hyperv/netvsc/if_hn.c
5062
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "lro_ackcnt_lim",
sys/dev/hyperv/netvsc/if_hn.c
5066
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "trust_hosttcp",
sys/dev/hyperv/netvsc/if_hn.c
5071
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "trust_hostudp",
sys/dev/hyperv/netvsc/if_hn.c
5076
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "trust_hostip",
sys/dev/hyperv/netvsc/if_hn.c
5081
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "csum_ip",
sys/dev/hyperv/netvsc/if_hn.c
5085
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "csum_tcp",
sys/dev/hyperv/netvsc/if_hn.c
5089
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "csum_udp",
sys/dev/hyperv/netvsc/if_hn.c
5093
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "csum_trusted",
sys/dev/hyperv/netvsc/if_hn.c
5098
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "small_pkts",
sys/dev/hyperv/netvsc/if_hn.c
5102
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_ack_failed",
sys/dev/hyperv/netvsc/if_hn.c
5106
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "rx_ring_cnt",
sys/dev/hyperv/netvsc/if_hn.c
5108
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "rx_ring_inuse",
sys/dev/hyperv/netvsc/if_hn.c
5312
struct sysctl_oid_list *child;
sys/dev/hyperv/netvsc/if_hn.c
5321
child = SYSCTL_CHILDREN(sc->hn_tx_sysctl_tree);
sys/dev/hyperv/netvsc/if_hn.c
5324
txr->hn_tx_sysctl_tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO,
sys/dev/hyperv/netvsc/if_hn.c
5328
child = SYSCTL_CHILDREN(txr->hn_tx_sysctl_tree);
sys/dev/hyperv/netvsc/if_hn.c
5331
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "txdesc_avail",
sys/dev/hyperv/netvsc/if_hn.c
5339
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "oactive",
sys/dev/hyperv/netvsc/if_hn.c
5343
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "packets",
sys/dev/hyperv/netvsc/if_hn.c
5346
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "sends",
sys/dev/hyperv/netvsc/if_hn.c
5432
struct sysctl_oid_list *child;
sys/dev/hyperv/netvsc/if_hn.c
5455
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->hn_dev));
sys/dev/hyperv/netvsc/if_hn.c
5458
sc->hn_tx_sysctl_tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "tx",
sys/dev/hyperv/netvsc/if_hn.c
5469
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "no_txdescs",
sys/dev/hyperv/netvsc/if_hn.c
5473
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "send_failed",
sys/dev/hyperv/netvsc/if_hn.c
5477
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "txdma_failed",
sys/dev/hyperv/netvsc/if_hn.c
5481
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "agg_flush_failed",
sys/dev/hyperv/netvsc/if_hn.c
5486
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_collapsed",
sys/dev/hyperv/netvsc/if_hn.c
5490
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_chimney",
sys/dev/hyperv/netvsc/if_hn.c
5494
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_chimney_tried",
sys/dev/hyperv/netvsc/if_hn.c
5498
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "txdesc_cnt",
sys/dev/hyperv/netvsc/if_hn.c
5501
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "tx_chimney_max",
sys/dev/hyperv/netvsc/if_hn.c
5504
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_chimney_size",
sys/dev/hyperv/netvsc/if_hn.c
5507
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "direct_tx_size",
sys/dev/hyperv/netvsc/if_hn.c
5512
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "sched_tx",
sys/dev/hyperv/netvsc/if_hn.c
5518
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "tx_ring_cnt",
sys/dev/hyperv/netvsc/if_hn.c
5520
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "tx_ring_inuse",
sys/dev/hyperv/netvsc/if_hn.c
5522
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "agg_szmax",
sys/dev/hyperv/netvsc/if_hn.c
5525
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "agg_pktmax",
sys/dev/hyperv/netvsc/if_hn.c
5529
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "agg_align",
sys/dev/hyperv/pcib/vmbus_pcib.c
1642
vmbus_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *val)
sys/dev/hyperv/pcib/vmbus_pcib.c
1660
vmbus_pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t val)
sys/dev/hyperv/pcib/vmbus_pcib.c
1666
vmbus_pcib_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/hyperv/pcib/vmbus_pcib.c
1676
return (pci_domain_alloc_bus(sc->hbus->pci_domain, child, rid,
sys/dev/hyperv/pcib/vmbus_pcib.c
1684
devfn = PCI_DEVFN(pci_get_slot(child),
sys/dev/hyperv/pcib/vmbus_pcib.c
1685
pci_get_function(child));
sys/dev/hyperv/pcib/vmbus_pcib.c
1699
res = bus_generic_alloc_resource(dev, child, type, rid,
sys/dev/hyperv/pcib/vmbus_pcib.c
1706
res = bus_generic_alloc_resource(dev, child, type, rid,
sys/dev/hyperv/pcib/vmbus_pcib.c
1715
vmbus_pcib_adjust_resource(device_t dev, device_t child,
sys/dev/hyperv/pcib/vmbus_pcib.c
1721
return (pci_domain_adjust_bus(sc->hbus->pci_domain, child, r,
sys/dev/hyperv/pcib/vmbus_pcib.c
1723
return (bus_generic_adjust_resource(dev, child, r, start, end));
sys/dev/hyperv/pcib/vmbus_pcib.c
1727
vmbus_pcib_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/hyperv/pcib/vmbus_pcib.c
1733
return (pci_domain_release_bus(sc->hbus->pci_domain, child, r));
sys/dev/hyperv/pcib/vmbus_pcib.c
1737
return (bus_generic_release_resource(dev, child, r));
sys/dev/hyperv/pcib/vmbus_pcib.c
1742
vmbus_pcib_activate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/hyperv/pcib/vmbus_pcib.c
1747
return (pci_domain_activate_bus(sc->hbus->pci_domain, child,
sys/dev/hyperv/pcib/vmbus_pcib.c
1749
return (bus_generic_activate_resource(dev, child, r));
sys/dev/hyperv/pcib/vmbus_pcib.c
1753
vmbus_pcib_deactivate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/hyperv/pcib/vmbus_pcib.c
1758
return (pci_domain_deactivate_bus(sc->hbus->pci_domain, child,
sys/dev/hyperv/pcib/vmbus_pcib.c
1760
return (bus_generic_deactivate_resource(dev, child, r));
sys/dev/hyperv/pcib/vmbus_pcib.c
1876
vmbus_pcib_map_msi(device_t pcib, device_t child, int irq,
sys/dev/hyperv/pcib/vmbus_pcib.c
1900
devfn = PCI_DEVFN(pci_get_slot(child), pci_get_function(child));
sys/dev/hyperv/pcib/vmbus_pcib.c
1905
ret = intr_map_msi(pcib, child, ACPI_MSI_XREF, irq,
sys/dev/hyperv/pcib/vmbus_pcib.c
1908
ret = PCIB_MAP_MSI(device_get_parent(pcib), child, irq,
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1004
struct sysctl_oid_list *child;
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1013
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1015
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "data_bio_cnt",
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1018
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "data_vaddr_cnt",
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1021
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "data_sg_cnt",
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1026
ch_tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "channel",
sys/dev/hyperv/utilities/hv_kvp.c
853
struct sysctl_oid_list *child;
sys/dev/hyperv/utilities/hv_kvp.c
864
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/hyperv/utilities/hv_kvp.c
866
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "hv_kvp_log",
sys/dev/hyperv/utilities/hv_snapshot.c
971
struct sysctl_oid_list *child;
sys/dev/hyperv/utilities/hv_snapshot.c
980
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/hyperv/utilities/hv_snapshot.c
982
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "hv_vss_log",
sys/dev/hyperv/utilities/vmbus_ic.c
212
struct sysctl_oid_list *child;
sys/dev/hyperv/utilities/vmbus_ic.c
237
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/hyperv/utilities/vmbus_ic.c
238
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "fw_version",
sys/dev/hyperv/utilities/vmbus_ic.c
241
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "msg_version",
sys/dev/hyperv/vmbus/vmbus.c
1065
vmbus_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/hyperv/vmbus/vmbus.c
1074
res = pcib_host_res_alloc(&sc->vmbus_mmio_res, child, type,
sys/dev/hyperv/vmbus/vmbus.c
1077
res = BUS_ALLOC_RESOURCE(parent, child, type, rid, start,
sys/dev/hyperv/vmbus/vmbus.c
140
static bus_dma_tag_t vmbus_get_dma_tag(device_t parent, device_t child);
sys/dev/hyperv/vmbus/vmbus.c
1443
struct sysctl_oid_list *child;
sys/dev/hyperv/vmbus/vmbus.c
1565
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->vmbus_dev));
sys/dev/hyperv/vmbus/vmbus.c
1566
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "version",
sys/dev/hyperv/vmbus/vmbus.c
238
vmbus_get_dma_tag(device_t dev, device_t child)
sys/dev/hyperv/vmbus/vmbus.c
95
device_t child, int type, int rid,
sys/dev/hyperv/vmbus/vmbus.c
983
vmbus_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/hyperv/vmbus/vmbus.c
989
vmbus_child_pnpinfo(device_t dev, device_t child, struct sbuf *sb)
sys/dev/hyperv/vmbus/vmbus.c
994
chan = vmbus_get_channel(child);
sys/dev/iavf/iavf_iflib.h
397
struct sysctl_oid_list *child,
sys/dev/iavf/iavf_lib.c
1002
struct sysctl_oid_list *child,
sys/dev/iavf/iavf_lib.c
1032
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, entry->name,
sys/dev/iavf/iavf_lib.c
837
struct sysctl_oid_list *child;
sys/dev/iavf/iavf_lib.c
841
child = SYSCTL_CHILDREN(tree);
sys/dev/iavf/iavf_lib.c
842
vsi->vsi_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, sysctl_name,
sys/dev/iavf/iavf_lib.h
455
struct sysctl_oid_list *child, struct iavf_eth_stats *eth_stats);
sys/dev/ice/ice_sched.c
1541
struct ice_sched_node *child = base->children[i];
sys/dev/ice/ice_sched.c
1543
if (node == child)
sys/dev/ice/ice_sched.c
1546
if (child->tx_sched_layer > node->tx_sched_layer)
sys/dev/ice/ice_sched.c
1552
if (ice_sched_find_node_in_subtree(hw, child, node))
sys/dev/ida/ida.c
199
device_t child;
sys/dev/ida/ida.c
304
child = device_add_child(ida->dev, /*"idad"*/NULL, DEVICE_UNIT_ANY);
sys/dev/ida/ida.c
305
if (child != NULL)
sys/dev/ida/ida.c
306
device_set_ivars(child, (void *)(intptr_t)i);
sys/dev/igc/if_igc.c
2680
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/igc/if_igc.c
2690
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "dropped",
sys/dev/igc/if_igc.c
2693
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "link_irq",
sys/dev/igc/if_igc.c
2696
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "rx_overruns",
sys/dev/igc/if_igc.c
2699
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "watchdog_timeouts",
sys/dev/igc/if_igc.c
2702
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "device_control",
sys/dev/igc/if_igc.c
2706
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_control",
sys/dev/igc/if_igc.c
2710
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "fc_high_water",
sys/dev/igc/if_igc.c
2713
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "fc_low_water",
sys/dev/igc/if_igc.c
2720
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/igc/if_igc.c
2744
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/igc/if_igc.c
2766
stat_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "mac_stats",
sys/dev/igc/if_igc.c
2923
int_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "interrupts",
sys/dev/iicbus/acpi_iicbus.c
463
device_t iicbus, child, acpi_child, acpi0;
sys/dev/iicbus/acpi_iicbus.c
515
child = BUS_ADD_CHILD(iicbus, 0, NULL, DEVICE_UNIT_ANY);
sys/dev/iicbus/acpi_iicbus.c
516
if (child == NULL) {
sys/dev/iicbus/acpi_iicbus.c
521
iicbus_set_addr(child, sb.SlaveAddress);
sys/dev/iicbus/acpi_iicbus.c
522
acpi_set_handle(child, handle);
sys/dev/iicbus/acpi_iicbus.c
523
(void)acpi_iicbus_parse_resources(handle, child);
sys/dev/iicbus/acpi_iicbus.c
528
status = AcpiAttachData(handle, acpi_fake_objhandler, child);
sys/dev/iicbus/acpi_iicbus.c
637
acpi_iicbus_probe_nomatch(device_t bus, device_t child)
sys/dev/iicbus/acpi_iicbus.c
640
iicbus_probe_nomatch(bus, child);
sys/dev/iicbus/acpi_iicbus.c
641
acpi_set_powerstate(child, ACPI_STATE_D3);
sys/dev/iicbus/acpi_iicbus.c
650
device_t child, *devlist;
sys/dev/iicbus/acpi_iicbus.c
658
child = devlist[i];
sys/dev/iicbus/acpi_iicbus.c
659
if (device_get_state(child) == DS_NOTPRESENT) {
sys/dev/iicbus/acpi_iicbus.c
660
acpi_set_powerstate(child, ACPI_STATE_D0);
sys/dev/iicbus/acpi_iicbus.c
661
if (device_probe_and_attach(child) != 0)
sys/dev/iicbus/acpi_iicbus.c
662
acpi_set_powerstate(child, ACPI_STATE_D3);
sys/dev/iicbus/acpi_iicbus.c
669
acpi_iicbus_child_deleted(device_t bus, device_t child)
sys/dev/iicbus/acpi_iicbus.c
671
struct acpi_iicbus_ivars *devi = device_get_ivars(child);
sys/dev/iicbus/acpi_iicbus.c
673
if (acpi_get_device(devi->handle) == child)
sys/dev/iicbus/acpi_iicbus.c
678
acpi_iicbus_read_ivar(device_t bus, device_t child, int which, uintptr_t *res)
sys/dev/iicbus/acpi_iicbus.c
680
struct acpi_iicbus_ivars *devi = device_get_ivars(child);
sys/dev/iicbus/acpi_iicbus.c
687
return (iicbus_read_ivar(bus, child, which, res));
sys/dev/iicbus/acpi_iicbus.c
694
acpi_iicbus_write_ivar(device_t bus, device_t child, int which, uintptr_t val)
sys/dev/iicbus/acpi_iicbus.c
696
struct acpi_iicbus_ivars *devi = device_get_ivars(child);
sys/dev/iicbus/acpi_iicbus.c
705
return (iicbus_write_ivar(bus, child, which, val));
sys/dev/iicbus/acpi_iicbus.c
713
acpi_iicbus_child_location(device_t bus, device_t child, struct sbuf *sb)
sys/dev/iicbus/acpi_iicbus.c
715
struct acpi_iicbus_ivars *devi = device_get_ivars(child);
sys/dev/iicbus/acpi_iicbus.c
719
error = iicbus_child_location(bus, child, sb);
sys/dev/iicbus/acpi_iicbus.c
732
acpi_iicbus_child_pnpinfo(device_t bus, device_t child, struct sbuf *sb)
sys/dev/iicbus/acpi_iicbus.c
734
struct acpi_iicbus_ivars *devi = device_get_ivars(child);
sys/dev/iicbus/acpi_iicbus.c
738
error = iicbus_child_pnpinfo(bus, child, sb);
sys/dev/iicbus/adc/ad7417.c
307
phandle_t child, node;
sys/dev/iicbus/adc/ad7417.c
316
child = ofw_bus_get_node(dev);
sys/dev/iicbus/adc/ad7417.c
319
prop_len = OF_getprop(child, "hwsensor-location", location,
sys/dev/iicbus/adc/ad7417.c
335
prop_len = OF_getprop(child, "hwsensor-type", type, sizeof(type));
sys/dev/iicbus/adc/ad7417.c
347
prop_len = OF_getprop(child, "hwsensor-id", id, sizeof(id));
sys/dev/iicbus/adc/ad7417.c
352
prop_len = OF_getprop(child, "hwsensor-zone", id, sizeof(id));
sys/dev/iicbus/adc/ad7417.c
362
for (node = OF_child(child); node != 0; node = OF_peer(node)) {
sys/dev/iicbus/adc/ads111x.c
432
phandle_t child, node;
sys/dev/iicbus/adc/ads111x.c
437
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/iicbus/adc/ads111x.c
438
if (OF_getencprop(child, "reg", &chan, sizeof(chan)) == -1)
sys/dev/iicbus/adc/ads111x.c
444
OF_getencprop(child, "ti,gain", &gainidx, sizeof(gainidx));
sys/dev/iicbus/adc/ads111x.c
445
OF_getencprop(child, "ti,datarate", &rateidx, sizeof(rateidx));
sys/dev/iicbus/controller/cadence/cdnc_i2c.c
508
struct sysctl_oid_list *child;
sys/dev/iicbus/controller/cadence/cdnc_i2c.c
511
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/iicbus/controller/cadence/cdnc_i2c.c
513
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "i2c_clk_real_freq", CTLFLAG_RD,
sys/dev/iicbus/controller/cadence/cdnc_i2c.c
516
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_interrupts", CTLFLAG_RD,
sys/dev/iicbus/controller/cadence/cdnc_i2c.c
518
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_timeouts", CTLFLAG_RD,
sys/dev/iicbus/iicbb.c
181
iicbb_child_detached( device_t dev, device_t child )
sys/dev/iicbus/iicbb.c
185
if (child == sc->iicbus)
sys/dev/iicbus/iicbus.c
155
iicbus_print_child(device_t dev, device_t child)
sys/dev/iicbus/iicbus.c
157
struct iicbus_ivar *devi = IICBUS_IVAR(child);
sys/dev/iicbus/iicbus.c
160
retval += bus_print_child_header(dev, child);
sys/dev/iicbus/iicbus.c
164
retval += bus_print_child_footer(dev, child);
sys/dev/iicbus/iicbus.c
170
iicbus_probe_nomatch(device_t bus, device_t child)
sys/dev/iicbus/iicbus.c
172
struct iicbus_ivar *devi = IICBUS_IVAR(child);
sys/dev/iicbus/iicbus.c
178
iicbus_child_location(device_t bus, device_t child, struct sbuf *sb)
sys/dev/iicbus/iicbus.c
180
struct iicbus_ivar *devi = IICBUS_IVAR(child);
sys/dev/iicbus/iicbus.c
187
iicbus_child_pnpinfo(device_t bus, device_t child, struct sbuf *sb)
sys/dev/iicbus/iicbus.c
193
iicbus_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/dev/iicbus/iicbus.c
195
struct iicbus_ivar *devi = IICBUS_IVAR(child);
sys/dev/iicbus/iicbus.c
208
iicbus_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
sys/dev/iicbus/iicbus.c
210
struct iicbus_ivar *devi = IICBUS_IVAR(child);
sys/dev/iicbus/iicbus.c
227
device_t child;
sys/dev/iicbus/iicbus.c
230
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/iicbus/iicbus.c
231
if (child == NULL)
sys/dev/iicbus/iicbus.c
232
return (child);
sys/dev/iicbus/iicbus.c
235
device_delete_child(dev, child);
sys/dev/iicbus/iicbus.c
239
device_set_ivars(child, devi);
sys/dev/iicbus/iicbus.c
240
return (child);
sys/dev/iicbus/iicbus.c
252
iicbus_child_deleted(device_t dev, device_t child)
sys/dev/iicbus/iicbus.c
256
devi = device_get_ivars(child);
sys/dev/iicbus/iicbus.c
266
device_t child;
sys/dev/iicbus/iicbus.c
270
child = BUS_ADD_CHILD(bus, 0, dname, dunit);
sys/dev/iicbus/iicbus.c
271
devi = IICBUS_IVAR(child);
sys/dev/iicbus/iicbus.c
274
if (bus_set_resource(child, SYS_RES_IRQ, 0, irq, 1) != 0)
sys/dev/iicbus/iicbus.c
281
iicbus_get_resource_list(device_t bus __unused, device_t child)
sys/dev/iicbus/iicbus.c
285
devi = IICBUS_IVAR(child);
sys/dev/iicbus/iicbus.h
91
void iicbus_probe_nomatch(device_t bus, device_t child);
sys/dev/iicbus/iicbus.h
92
int iicbus_read_ivar(device_t bus, device_t child, int which,
sys/dev/iicbus/iicbus.h
94
int iicbus_write_ivar(device_t bus, device_t child, int which,
sys/dev/iicbus/iicbus.h
96
int iicbus_child_location(device_t bus, device_t child, struct sbuf *sb);
sys/dev/iicbus/iicbus.h
97
int iicbus_child_pnpinfo(device_t bus, device_t child, struct sbuf *sb);
sys/dev/iicbus/iichid.c
1001
iichid_ioctl(device_t dev, device_t child __unused, unsigned long cmd,
sys/dev/iicbus/iichid.c
1128
device_t child;
sys/dev/iicbus/iichid.c
1233
child = device_add_child(dev, "hidbus", DEVICE_UNIT_ANY);
sys/dev/iicbus/iichid.c
1234
if (child == NULL) {
sys/dev/iicbus/iichid.c
1241
device_set_ivars(child, &sc->hw);
sys/dev/iicbus/iichid.c
813
iichid_intr_setup(device_t dev, device_t child __unused, hid_intr_t intr,
sys/dev/iicbus/iichid.c
853
iichid_intr_unsetup(device_t dev, device_t child __unused)
sys/dev/iicbus/iichid.c
864
iichid_intr_start(device_t dev, device_t child __unused)
sys/dev/iicbus/iichid.c
877
iichid_intr_stop(device_t dev, device_t child __unused)
sys/dev/iicbus/iichid.c
895
iichid_intr_poll(device_t dev, device_t child __unused)
sys/dev/iicbus/iichid.c
911
iichid_get_rdesc(device_t dev, device_t child __unused, void *buf,
sys/dev/iicbus/iichid.c
926
iichid_read(device_t dev, device_t child __unused, void *buf,
sys/dev/iicbus/iichid.c
951
iichid_write(device_t dev, device_t child __unused, const void *buf,
sys/dev/iicbus/iichid.c
963
iichid_get_report(device_t dev, device_t child __unused, void *buf,
sys/dev/iicbus/iichid.c
976
iichid_set_report(device_t dev, device_t child __unused, const void *buf,
sys/dev/iicbus/iichid.c
988
iichid_set_idle(device_t dev, device_t child __unused,
sys/dev/iicbus/iichid.c
995
iichid_set_protocol(device_t dev, device_t child __unused, uint16_t protocol)
sys/dev/iicbus/mux/iicmux.c
133
iicmux_get_node(device_t dev, device_t child)
sys/dev/iicbus/mux/iicmux.c
139
if (sc->childdevs[i] == child)
sys/dev/iicbus/mux/iicmux.c
219
iicmux_add_child(device_t dev, device_t child, int busidx)
sys/dev/iicbus/mux/iicmux.c
234
sc->childdevs[busidx] = child;
sys/dev/iicbus/mux/iicmux.c
246
phandle_t child, node, parent;
sys/dev/iicbus/mux/iicmux.c
269
for (child = OF_child(parent); child != 0; child = OF_peer(child)) {
sys/dev/iicbus/mux/iicmux.c
270
if (OF_getencprop(child, "reg", &idx, sizeof(idx)) == -1) {
sys/dev/iicbus/mux/iicmux.c
283
sc->childnodes[idx] = child;
sys/dev/iicbus/mux/iicmux.h
72
int iicmux_add_child(device_t dev, device_t child, int busidx);
sys/dev/iicbus/ofw_iicbus.c
106
phandle_t child, node, root;
sys/dev/iicbus/ofw_iicbus.c
151
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/iicbus/ofw_iicbus.c
157
if (OF_getencprop(child, "i2c-address", &paddr,
sys/dev/iicbus/ofw_iicbus.c
159
if (OF_getencprop(child, "reg", &paddr,
sys/dev/iicbus/ofw_iicbus.c
182
if (ofw_bus_gen_setup_devinfo(&dinfo->opd_obdinfo, child) !=
sys/dev/iicbus/ofw_iicbus.c
190
ofw_bus_intr_to_rl(childdev, child,
sys/dev/iicbus/ofw_iicbus.c
204
device_t child;
sys/dev/iicbus/ofw_iicbus.c
207
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/iicbus/ofw_iicbus.c
208
if (child == NULL)
sys/dev/iicbus/ofw_iicbus.c
209
return (child);
sys/dev/iicbus/ofw_iicbus.c
213
device_delete_child(dev, child);
sys/dev/iicbus/ofw_iicbus.c
227
device_set_ivars(child, devi);
sys/dev/iicbus/ofw_iicbus.c
229
return (child);
sys/dev/iicbus/pmic/act8846_regulator.c
450
phandle_t child, rnode;
sys/dev/iicbus/pmic/act8846_regulator.c
467
child = ofw_bus_find_child(rnode, act8846_regdefs[i].name);
sys/dev/iicbus/pmic/act8846_regulator.c
468
if (child == 0) {
sys/dev/iicbus/pmic/act8846_regulator.c
475
reg = act8846_attach(sc, node, child, act8846_regdefs + i);
sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c
319
phandle_t rnode, child;
sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c
327
child = ofw_bus_find_child(rnode,
sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c
329
if (child == 0)
sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c
331
if (OF_hasprop(child, "regulator-name") != 1)
sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c
333
reg = rk8xx_reg_attach(sc->dev, child, &sc->regdefs[i]);
sys/dev/iicbus/pwm/adt746x.c
347
phandle_t child;
sys/dev/iicbus/pwm/adt746x.c
355
child = ofw_bus_get_node(dev);
sys/dev/iicbus/pwm/adt746x.c
358
location_len = OF_getprop_alloc(child, "hwctrl-location", (void **)&location);
sys/dev/iicbus/pwm/adt746x.c
359
id_len = OF_getprop_alloc_multi(child, "hwctrl-id", sizeof(cell_t), (void **)&id);
sys/dev/iicbus/pwm/adt746x.c
399
phandle_t child, node;
sys/dev/iicbus/pwm/adt746x.c
406
child = ofw_bus_get_node(dev);
sys/dev/iicbus/pwm/adt746x.c
409
for (node = OF_child(child); node != 0; node = OF_peer(node)) {
sys/dev/iicbus/sensor/ds1631.c
294
phandle_t child, node;
sys/dev/iicbus/sensor/ds1631.c
306
child = ofw_bus_get_node(dev);
sys/dev/iicbus/sensor/ds1631.c
313
if (OF_getprop(child, "hwsensor-zone", &sc->sc_sensor.zone,
sys/dev/iicbus/sensor/ds1631.c
317
plen = OF_getprop(child, "hwsensor-location", sc->sc_sensor.name,
sys/dev/iicbus/sensor/ds1631.c
324
for (node = OF_child(child); node; node = OF_peer(node))
sys/dev/iicbus/sensor/ds1775.c
169
phandle_t child;
sys/dev/iicbus/sensor/ds1775.c
181
child = ofw_bus_get_node(dev);
sys/dev/iicbus/sensor/ds1775.c
188
if (OF_getprop(child, "hwsensor-zone", &sc->sc_sensor.zone,
sys/dev/iicbus/sensor/ds1775.c
192
plen = OF_getprop(child, "hwsensor-location", sc->sc_sensor.name,
sys/dev/iicbus/sensor/max6690.c
174
phandle_t child;
sys/dev/iicbus/sensor/max6690.c
182
child = ofw_bus_get_node(dev);
sys/dev/iicbus/sensor/max6690.c
185
prop_len = OF_getprop(child, "hwsensor-location", location,
sys/dev/iicbus/sensor/max6690.c
198
prop_len = OF_getprop(child, "hwsensor-id", id, sizeof(id));
sys/dev/iicbus/sensor/max6690.c
203
prop_len = OF_getprop(child, "hwsensor-zone", id, sizeof(id));
sys/dev/imcsmb/imcsmb_pci.c
165
device_t child;
sys/dev/imcsmb/imcsmb_pci.c
176
child = device_add_child(dev, "imcsmb", DEVICE_UNIT_ANY);
sys/dev/imcsmb/imcsmb_pci.c
177
if (child == NULL) {
sys/dev/imcsmb/imcsmb_pci.c
186
device_set_ivars(child, &imcsmb_regs[unit]);
sys/dev/intel/spi.c
342
intelspi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/dev/intel/spi.c
385
spibus_get_clock(child, &clock);
sys/dev/intel/spi.c
386
spibus_get_mode(child, &mode);
sys/dev/intel/spi.c
433
spibus_get_cs_delay(child, &cs_delay);
sys/dev/intel/spi.h
67
int intelspi_transfer(device_t dev, device_t child, struct spi_command *cmd);
sys/dev/iommu/busdma_iommu.c
323
iommu_get_dma_tag(device_t dev, device_t child)
sys/dev/iommu/busdma_iommu.c
328
ctx = iommu_get_dev_ctx(child);
sys/dev/iommu/iommu.h
206
bus_dma_tag_t iommu_get_dma_tag(device_t dev, device_t child);
sys/dev/iommu/iommu_gas.c
157
struct iommu_map_entry *child;
sys/dev/iommu/iommu_gas.c
162
if ((child = RB_LEFT(entry, rb_entry)) != NULL) {
sys/dev/iommu/iommu_gas.c
163
free_down = MAX(child->free_down, bound - child->last);
sys/dev/iommu/iommu_gas.c
164
bound = child->first;
sys/dev/iommu/iommu_gas.c
169
if ((child = RB_RIGHT(entry, rb_entry)) != NULL) {
sys/dev/iommu/iommu_gas.c
170
free_down = MAX(free_down, child->free_down);
sys/dev/iommu/iommu_gas.c
171
free_down = MAX(free_down, child->first - bound);
sys/dev/iommu/iommu_gas.c
172
bound = child->last;
sys/dev/ixgbe/if_ix.c
2019
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/ixgbe/if_ix.c
2029
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "dropped",
sys/dev/ixgbe/if_ix.c
2031
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "watchdog_events",
sys/dev/ixgbe/if_ix.c
2033
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "link_irq",
sys/dev/ixgbe/if_ix.c
2040
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/ixgbe/if_ix.c
2063
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/ixgbe/if_ix.c
2094
stat_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "mac_stats",
sys/dev/ixgbe/if_ix.c
3419
struct sysctl_oid_list *child;
sys/dev/ixgbe/if_ix.c
3423
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/dev/ixgbe/if_ix.c
3426
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "fc",
sys/dev/ixgbe/if_ix.c
3431
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "advertise_speed",
sys/dev/ixgbe/if_ix.c
3437
SYSCTL_ADD_INT(ctx_list, child, OID_AUTO, "enable_aim", CTLFLAG_RW,
sys/dev/ixgbe/if_ix.c
3440
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "fw_version",
sys/dev/ixgbe/if_ix.c
3444
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO,
sys/dev/ixgbe/if_ix.c
3450
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO,
sys/dev/ixgbe/if_ix.c
3456
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO,
sys/dev/ixgbe/if_ix.c
3464
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "power_state",
sys/dev/ixgbe/if_ix.c
3469
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "print_rss_config",
sys/dev/ixgbe/if_ix.c
3475
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "dmac",
sys/dev/ixgbe/if_ix.c
3482
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "wol_enable",
sys/dev/ixgbe/if_ix.c
3487
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "wufc",
sys/dev/ixgbe/if_ix.c
3498
phy_node = SYSCTL_ADD_NODE(ctx_list, child, OID_AUTO, "phy",
sys/dev/ixgbe/if_ix.c
3516
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "eee_state",
sys/dev/ixgbe/if_ixv.c
1841
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/ixgbe/if_ixv.c
1850
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "watchdog_events",
sys/dev/ixgbe/if_ixv.c
1852
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "link_irq",
sys/dev/ixgbe/if_ixv.c
1858
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/ixgbe/if_ixv.c
1871
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/ixgbe/if_ixv.c
1885
stat_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "mac",
sys/dev/ixl/ixl.h
528
struct sysctl_oid_list *child,
sys/dev/ixl/ixl_pf_iflib.c
817
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/ixl/ixl_pf_iflib.c
820
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "admin_irq",
sys/dev/ixl/ixl_pf_iflib.c
827
ixl_add_sysctls_mac_stats(ctx, child, pf_stats);
sys/dev/ixl/ixl_pf_main.c
1038
struct sysctl_oid_list *child,
sys/dev/ixl/ixl_pf_main.c
1041
struct sysctl_oid *stat_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO,
sys/dev/ixl/ixl_pf_main.c
948
struct sysctl_oid_list *child;
sys/dev/ixl/ixl_pf_main.c
952
child = SYSCTL_CHILDREN(tree);
sys/dev/ixl/ixl_pf_main.c
953
vsi->vsi_node = SYSCTL_ADD_NODE(&vsi->sysctl_ctx, child, OID_AUTO, sysctl_name,
sys/dev/ixl/ixl_txrx.c
850
struct sysctl_oid_list *child;
sys/dev/ixl/ixl_txrx.c
854
child = SYSCTL_CHILDREN(tree);
sys/dev/ixl/ixl_txrx.c
855
vsi->vsi_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, sysctl_name,
sys/dev/ixl/ixl_txrx.c
864
struct sysctl_oid_list *child,
sys/dev/ixl/ixl_txrx.c
890
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, entry->name,
sys/dev/jme/if_jme.c
1064
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/jme/if_jme.c
1071
child = SYSCTL_CHILDREN(tree);
sys/dev/jme/if_jme.c
1072
JME_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/jme/if_jme.c
1074
JME_SYSCTL_STAT_ADD32(ctx, child, "crc_errs",
sys/dev/jme/if_jme.c
1076
JME_SYSCTL_STAT_ADD32(ctx, child, "mii_errs",
sys/dev/jme/if_jme.c
1078
JME_SYSCTL_STAT_ADD32(ctx, child, "fifo_oflows",
sys/dev/jme/if_jme.c
1080
JME_SYSCTL_STAT_ADD32(ctx, child, "desc_empty",
sys/dev/jme/if_jme.c
1082
JME_SYSCTL_STAT_ADD32(ctx, child, "bad_frames",
sys/dev/jme/if_jme.c
1088
child = SYSCTL_CHILDREN(tree);
sys/dev/jme/if_jme.c
1089
JME_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/jme/if_jme.c
1091
JME_SYSCTL_STAT_ADD32(ctx, child, "bad_frames",
sys/dev/jme/if_jme.c
964
struct sysctl_oid_list *child, *parent;
sys/dev/jme/if_jme.c
971
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->jme_dev));
sys/dev/jme/if_jme.c
973
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_coal_to",
sys/dev/jme/if_jme.c
977
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_coal_pkt",
sys/dev/jme/if_jme.c
981
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_coal_to",
sys/dev/jme/if_jme.c
985
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_coal_pkt",
sys/dev/jme/if_jme.c
989
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "process_limit",
sys/dev/kvm_clock/kvm_clock.c
269
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/kvm_clock/kvm_clock.c
271
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tsc_freq",
sys/dev/liquidio/lio_sysctl.c
144
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/liquidio/lio_sysctl.c
153
SYSCTL_ADD_STRING(ctx, child, OID_AUTO, "fwversion", CTLFLAG_RD,
sys/dev/liquidio/lio_sysctl.c
156
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "stats_interval",
sys/dev/liquidio/lio_sysctl.c
160
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "link_state_changes",
sys/dev/liquidio/lio_sysctl.c
162
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "eeprom-dump",
sys/dev/liquidio/lio_sysctl.c
165
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "fc",
sys/dev/liquidio/lio_sysctl.c
173
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "register-dump",
sys/dev/liquidio/lio_sysctl.c
176
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "fwmsglevel",
sys/dev/liquidio/lio_sysctl.c
179
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rxq_descriptors",
sys/dev/liquidio/lio_sysctl.c
182
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "txq_descriptors",
sys/dev/liquidio/lio_sysctl.c
185
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "max_rxq_descriptors",
sys/dev/liquidio/lio_sysctl.c
188
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "max_txq_descriptors",
sys/dev/liquidio/lio_sysctl.c
191
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "active_queues",
sys/dev/liquidio/lio_sysctl.c
194
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "max_queues",
sys/dev/liquidio/lio_sysctl.c
197
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_budget",
sys/dev/liquidio/lio_sysctl.c
200
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_budget",
sys/dev/liquidio/lio_sysctl.c
205
root_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "coalesce",
sys/dev/liquidio/lio_sysctl.c
271
root_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/mana/mana_sysctl.c
158
struct sysctl_oid_list *child;
sys/dev/mana/mana_sysctl.c
167
child = SYSCTL_CHILDREN(tree);
sys/dev/mana/mana_sysctl.c
173
port_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO,
sys/dev/mana/mana_sysctl.c
264
struct sysctl_oid_list *child = apc->port_list;
sys/dev/mana/mana_sysctl.c
282
queue_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO,
sys/dev/mfi/mfi.c
1907
device_t child;
sys/dev/mfi/mfi.c
1924
if ((child = device_add_child(sc->mfi_dev, "mfid",
sys/dev/mfi/mfi.c
1933
device_set_ivars(child, ld_info);
sys/dev/mfi/mfi.c
1934
device_set_desc(child, "MFI Logical Disk");
sys/dev/mfi/mfi.c
1991
device_t child;
sys/dev/mfi/mfi.c
2013
if ((child = device_add_child(sc->mfi_dev, "mfisyspd",
sys/dev/mfi/mfi.c
2022
device_set_ivars(child, pd_info);
sys/dev/mfi/mfi.c
2023
device_set_desc(child, "MFI System PD");
sys/dev/mii/mii.c
171
miibus_child_deleted(device_t dev, device_t child)
sys/dev/mii/mii.c
175
args = device_get_ivars(child);
sys/dev/mii/mii.c
180
miibus_print_child(device_t dev, device_t child)
sys/dev/mii/mii.c
185
ma = device_get_ivars(child);
sys/dev/mii/mii.c
186
retval = bus_print_child_header(dev, child);
sys/dev/mii/mii.c
188
retval += bus_print_child_footer(dev, child);
sys/dev/mii/mii.c
194
miibus_read_ivar(device_t dev, device_t child __unused, int which,
sys/dev/mii/mii.c
215
miibus_child_pnpinfo(device_t dev __unused, device_t child, struct sbuf *sb)
sys/dev/mii/mii.c
219
ma = device_get_ivars(child);
sys/dev/mii/mii.c
227
miibus_child_location(device_t dev __unused, device_t child, struct sbuf *sb)
sys/dev/mii/mii.c
231
ma = device_get_ivars(child);
sys/dev/mii/mii.c
548
struct mii_softc *child;
sys/dev/mii/mii.c
555
LIST_FOREACH(child, &mii->mii_phys, mii_list) {
sys/dev/mii/mii.c
560
if (IFM_INST(ife->ifm_media) != child->mii_inst) {
sys/dev/mii/mii.c
561
if ((child->mii_flags & MIIF_NOISOLATE) != 0) {
sys/dev/mii/mii.c
562
device_printf(child->mii_dev, "%s: "
sys/dev/mii/mii.c
564
__func__, child->mii_inst);
sys/dev/mii/mii.c
567
PHY_WRITE(child, MII_BMCR, PHY_READ(child, MII_BMCR) |
sys/dev/mii/mii.c
571
rv = PHY_SERVICE(child, mii, MII_MEDIACHG);
sys/dev/mii/mii.c
584
struct mii_softc *child;
sys/dev/mii/mii.c
587
LIST_FOREACH(child, &mii->mii_phys, mii_list) {
sys/dev/mii/mii.c
592
if (IFM_INST(ife->ifm_media) != child->mii_inst)
sys/dev/mii/mii.c
594
(void)PHY_SERVICE(child, mii, MII_TICK);
sys/dev/mii/mii.c
604
struct mii_softc *child;
sys/dev/mii/mii.c
610
LIST_FOREACH(child, &mii->mii_phys, mii_list) {
sys/dev/mii/mii.c
614
if (IFM_INST(ife->ifm_media) != child->mii_inst)
sys/dev/mii/mii.c
616
(void)PHY_SERVICE(child, mii, MII_POLLSTAT);
sys/dev/mii/mii_fdt.c
103
phandle_t ports, phynode, child;
sys/dev/mii/mii_fdt.c
123
for (child = OF_child(ports); child != 0; child = OF_peer(child)) {
sys/dev/mii/mii_fdt.c
124
if (ofw_bus_node_status_okay(child) == 0)
sys/dev/mii/mii_fdt.c
127
phynode = mii_fdt_get_phynode(child);
sys/dev/mii/mii_fdt.c
302
miibus_fdt_get_resource_list(device_t bus, device_t child)
sys/dev/mii/mii_fdt.c
306
ma = device_get_ivars(child);
sys/dev/mii/mii_fdt.c
315
miibus_fdt_get_devinfo(device_t bus, device_t child)
sys/dev/mii/mii_fdt.c
319
ma = device_get_ivars(child);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
4564
struct sysctl_oid_list *child;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
4675
child = SYSCTL_CHILDREN(device_get_sysctl_tree(mdev->pdev->dev.bsddev));
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
4676
priv->sysctl_hw = SYSCTL_ADD_NODE(&priv->sysctl_ctx, child,
sys/dev/mmc/host/dwmmc.c
1301
dwmmc_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/dev/mmc/host/dwmmc.c
1360
dwmmc_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
sys/dev/mmc/host/dwmmc.c
1413
dwmmc_switch_vccq(device_t dev, device_t child)
sys/dev/mmc/host/dwmmc.c
456
was_present = sc->child != NULL;
sys/dev/mmc/host/dwmmc.c
477
if (sc->child == NULL) {
sys/dev/mmc/host/dwmmc.c
481
sc->child = device_add_child(sc->dev, "mmc", DEVICE_UNIT_ANY);
sys/dev/mmc/host/dwmmc.c
482
if (sc->child) {
sys/dev/mmc/host/dwmmc.c
483
device_set_ivars(sc->child, sc);
sys/dev/mmc/host/dwmmc.c
484
(void)device_probe_and_attach(sc->child);
sys/dev/mmc/host/dwmmc.c
489
if (sc->child != NULL) {
sys/dev/mmc/host/dwmmc.c
493
device_delete_child(sc->dev, sc->child);
sys/dev/mmc/host/dwmmc.c
494
sc->child = NULL;
sys/dev/mmc/host/dwmmc_var.h
68
device_t child;
sys/dev/mmc/mmc.c
144
static int mmc_child_location(device_t dev, device_t child, struct sbuf *sb);
sys/dev/mmc/mmc.c
147
static int mmc_read_ivar(device_t bus, device_t child, int which,
sys/dev/mmc/mmc.c
156
static int mmc_write_ivar(device_t bus, device_t child, int which,
sys/dev/mmc/mmc.c
1597
device_t child;
sys/dev/mmc/mmc.c
1608
child = NULL;
sys/dev/mmc/mmc.c
1926
child = device_add_child(sc->dev, NULL, DEVICE_UNIT_ANY);
sys/dev/mmc/mmc.c
1927
if (child != NULL) {
sys/dev/mmc/mmc.c
1928
device_set_ivars(child, ivar);
sys/dev/mmc/mmc.c
1932
sc->child_list[sc->child_count++] = child;
sys/dev/mmc/mmc.c
1938
if (newcard && child == NULL)
sys/dev/mmc/mmc.c
1947
if ((newcard && child == NULL) ||
sys/dev/mmc/mmc.c
1956
device_t child;
sys/dev/mmc/mmc.c
1965
child = sc->child_list[j++];
sys/dev/mmc/mmc.c
1966
if (child != NULL)
sys/dev/mmc/mmc.c
1970
sc->child_list[i] = child;
sys/dev/mmc/mmc.c
2472
mmc_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/dev/mmc/mmc.c
2474
struct mmc_ivars *ivar = device_get_ivars(child);
sys/dev/mmc/mmc.c
2532
mmc_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
sys/dev/mmc/mmc.c
2551
mmc_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/mmc/mmc.c
2554
sbuf_printf(sb, "rca=0x%04x", mmc_get_rca(child));
sys/dev/mmc/mmcspi.c
2270
mmcspi_switch_vccq(device_t bus, device_t child)
sys/dev/mmc/mmcspi.c
382
device_t child;
sys/dev/mmc/mmcspi.c
388
child = device_add_child(brdev, "mmc", DEVICE_UNIT_ANY);
sys/dev/mmc/mmcspi.c
391
slot->dev = child;
sys/dev/mmc/mmcspi.c
440
struct sysctl_oid_list *child;
sys/dev/mmc/mmcspi.c
447
child = SYSCTL_CHILDREN(tree);
sys/dev/mmc/mmcspi.c
453
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "use_crc", CTLFLAG_RW,
sys/dev/mmc/mmcspi.c
456
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "trace_mask", CTLFLAG_RW,
sys/dev/mmc/mmcspi.c
522
mmcspi_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/dev/mmc/mmcspi.c
528
slot = device_get_ivars(child);
sys/dev/mmc/mmcspi.c
590
mmcspi_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
sys/dev/mmc/mmcspi.c
596
slot = device_get_ivars(child);
sys/dev/mmcnull/mmcnull.c
71
device_t child;
sys/dev/mmcnull/mmcnull.c
83
child = BUS_ADD_CHILD(parent, 20, "mmcnull", 0);
sys/dev/mmcnull/mmcnull.c
84
if (child == NULL) {
sys/dev/msk/if_msk.c
2037
mskc_child_deleted(device_t dev, device_t child)
sys/dev/msk/if_msk.c
2039
free(device_get_ivars(child), M_DEVBUF);
sys/dev/msk/if_msk.c
2080
mskc_get_dma_tag(device_t bus, device_t child __unused)
sys/dev/msk/if_msk.c
4458
struct sysctl_oid_list *child, *schild;
sys/dev/msk/if_msk.c
4462
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc_if->msk_if_dev));
sys/dev/msk/if_msk.c
4464
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/msk/if_msk.c
4469
child = SYSCTL_CHILDREN(tree);
sys/dev/msk/if_msk.c
4471
child, rx_ucast_frames, "Good unicast frames");
sys/dev/msk/if_msk.c
4473
child, rx_bcast_frames, "Good broadcast frames");
sys/dev/msk/if_msk.c
4475
child, rx_pause_frames, "Pause frames");
sys/dev/msk/if_msk.c
4477
child, rx_mcast_frames, "Multicast frames");
sys/dev/msk/if_msk.c
4479
child, rx_crc_errs, "CRC errors");
sys/dev/msk/if_msk.c
4481
child, rx_good_octets, "Good octets");
sys/dev/msk/if_msk.c
4483
child, rx_bad_octets, "Bad octets");
sys/dev/msk/if_msk.c
4485
child, rx_pkts_64, "64 bytes frames");
sys/dev/msk/if_msk.c
4487
child, rx_pkts_65_127, "65 to 127 bytes frames");
sys/dev/msk/if_msk.c
4489
child, rx_pkts_128_255, "128 to 255 bytes frames");
sys/dev/msk/if_msk.c
4491
child, rx_pkts_256_511, "256 to 511 bytes frames");
sys/dev/msk/if_msk.c
4493
child, rx_pkts_512_1023, "512 to 1023 bytes frames");
sys/dev/msk/if_msk.c
4495
child, rx_pkts_1024_1518, "1024 to 1518 bytes frames");
sys/dev/msk/if_msk.c
4497
child, rx_pkts_1519_max, "1519 to max frames");
sys/dev/msk/if_msk.c
4499
child, rx_pkts_too_long, "frames too long");
sys/dev/msk/if_msk.c
4501
child, rx_pkts_jabbers, "Jabber errors");
sys/dev/msk/if_msk.c
4503
child, rx_fifo_oflows, "FIFO overflows");
sys/dev/msk/if_msk.c
4507
child = SYSCTL_CHILDREN(tree);
sys/dev/msk/if_msk.c
4509
child, tx_ucast_frames, "Unicast frames");
sys/dev/msk/if_msk.c
4511
child, tx_bcast_frames, "Broadcast frames");
sys/dev/msk/if_msk.c
4513
child, tx_pause_frames, "Pause frames");
sys/dev/msk/if_msk.c
4515
child, tx_mcast_frames, "Multicast frames");
sys/dev/msk/if_msk.c
4517
child, tx_octets, "Octets");
sys/dev/msk/if_msk.c
4519
child, tx_pkts_64, "64 bytes frames");
sys/dev/msk/if_msk.c
4521
child, tx_pkts_65_127, "65 to 127 bytes frames");
sys/dev/msk/if_msk.c
4523
child, tx_pkts_128_255, "128 to 255 bytes frames");
sys/dev/msk/if_msk.c
4525
child, tx_pkts_256_511, "256 to 511 bytes frames");
sys/dev/msk/if_msk.c
4527
child, tx_pkts_512_1023, "512 to 1023 bytes frames");
sys/dev/msk/if_msk.c
4529
child, tx_pkts_1024_1518, "1024 to 1518 bytes frames");
sys/dev/msk/if_msk.c
4531
child, tx_pkts_1519_max, "1519 to max frames");
sys/dev/msk/if_msk.c
4533
child, tx_colls, "Collisions");
sys/dev/msk/if_msk.c
4535
child, tx_late_colls, "Late collisions");
sys/dev/msk/if_msk.c
4537
child, tx_excess_colls, "Excessive collisions");
sys/dev/msk/if_msk.c
4539
child, tx_multi_colls, "Multiple collisions");
sys/dev/msk/if_msk.c
4541
child, tx_single_colls, "Single collisions");
sys/dev/msk/if_msk.c
4543
child, tx_underflows, "FIFO underflows");
sys/dev/mvs/mvs_pci.c
165
child = device_add_child(dev, "mvsch", DEVICE_UNIT_ANY);
sys/dev/mvs/mvs_pci.c
166
if (child == NULL)
sys/dev/mvs/mvs_pci.c
169
device_set_ivars(child, (void *)(intptr_t)unit);
sys/dev/mvs/mvs_pci.c
250
mvs_edma(device_t dev, device_t child, int mode)
sys/dev/mvs/mvs_pci.c
253
int unit = ((struct mvs_channel *)device_get_softc(child))->unit;
sys/dev/mvs/mvs_pci.c
392
mvs_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/mvs/mvs_pci.c
397
int unit = ((struct mvs_channel *)device_get_softc(child))->unit;
sys/dev/mvs/mvs_pci.c
406
st + offset + PORT_SIZE - 1, PORT_SIZE, RF_ACTIVE, child);
sys/dev/mvs/mvs_pci.c
426
mvs_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/mvs/mvs_pci.c
442
mvs_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/mvs/mvs_pci.c
447
int unit = (intptr_t)device_get_ivars(child);
sys/dev/mvs/mvs_pci.c
459
mvs_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/mvs/mvs_pci.c
463
int unit = (intptr_t)device_get_ivars(child);
sys/dev/mvs/mvs_pci.c
471
mvs_print_child(device_t dev, device_t child)
sys/dev/mvs/mvs_pci.c
475
retval = bus_print_child_header(dev, child);
sys/dev/mvs/mvs_pci.c
477
(int)(intptr_t)device_get_ivars(child));
sys/dev/mvs/mvs_pci.c
478
retval += bus_print_child_footer(dev, child);
sys/dev/mvs/mvs_pci.c
484
mvs_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/mvs/mvs_pci.c
488
(int)(intptr_t)device_get_ivars(child));
sys/dev/mvs/mvs_pci.c
493
mvs_get_dma_tag(device_t bus, device_t child)
sys/dev/mvs/mvs_pci.c
99
device_t child;
sys/dev/mvs/mvs_soc.c
164
child = device_add_child(dev, "mvsch", DEVICE_UNIT_ANY);
sys/dev/mvs/mvs_soc.c
165
if (child == NULL)
sys/dev/mvs/mvs_soc.c
168
device_set_ivars(child, (void *)(intptr_t)unit);
sys/dev/mvs/mvs_soc.c
230
mvs_edma(device_t dev, device_t child, int mode)
sys/dev/mvs/mvs_soc.c
233
int unit = ((struct mvs_channel *)device_get_softc(child))->unit;
sys/dev/mvs/mvs_soc.c
332
mvs_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/mvs/mvs_soc.c
336
int unit = ((struct mvs_channel *)device_get_softc(child))->unit;
sys/dev/mvs/mvs_soc.c
345
st + offset + PORT_SIZE - 1, PORT_SIZE, RF_ACTIVE, child);
sys/dev/mvs/mvs_soc.c
365
mvs_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/mvs/mvs_soc.c
381
mvs_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/mvs/mvs_soc.c
386
int unit = (intptr_t)device_get_ivars(child);
sys/dev/mvs/mvs_soc.c
398
mvs_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/mvs/mvs_soc.c
402
int unit = (intptr_t)device_get_ivars(child);
sys/dev/mvs/mvs_soc.c
410
mvs_print_child(device_t dev, device_t child)
sys/dev/mvs/mvs_soc.c
414
retval = bus_print_child_header(dev, child);
sys/dev/mvs/mvs_soc.c
416
(int)(intptr_t)device_get_ivars(child));
sys/dev/mvs/mvs_soc.c
417
retval += bus_print_child_footer(dev, child);
sys/dev/mvs/mvs_soc.c
423
mvs_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/mvs/mvs_soc.c
426
sbuf_printf(sb, "channel=%d", (int)(intptr_t)device_get_ivars(child));
sys/dev/mvs/mvs_soc.c
431
mvs_get_dma_tag(device_t bus, device_t child)
sys/dev/mvs/mvs_soc.c
97
device_t child;
sys/dev/neta/if_mvneta.c
525
device_t child;
sys/dev/neta/if_mvneta.c
804
child = device_add_child(sc->dev, "mdio", DEVICE_UNIT_ANY);
sys/dev/neta/if_mvneta.c
805
if (child == NULL) {
sys/dev/neta/if_mvneta.c
811
bus_attach_children(child);
sys/dev/neta/if_mvneta_fdt.c
149
phandle_t node, child, phy_handle;
sys/dev/neta/if_mvneta_fdt.c
186
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/neta/if_mvneta_fdt.c
187
if (OF_getprop_alloc(child,
sys/dev/neta/if_mvneta_fdt.c
193
if (OF_getencprop(child, "speed",
sys/dev/neta/if_mvneta_fdt.c
201
if (OF_hasprop(child, "full-duplex"))
sys/dev/neta/if_mvneta_fdt.c
263
phandle_t child, switch_eth_handle, switch_eth;
sys/dev/neta/if_mvneta_fdt.c
265
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/neta/if_mvneta_fdt.c
266
if (OF_getencprop(child, "ethernet", (void*)&switch_eth_handle,
sys/dev/neta/if_mvneta_fdt.c
277
ret = mvneta_find_ethernet_prop_switch(ethernet, child);
sys/dev/nfe/if_nfe.c
3052
struct sysctl_oid_list *child, *parent;
sys/dev/nfe/if_nfe.c
3059
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->nfe_dev));
sys/dev/nfe/if_nfe.c
3060
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "process_limit",
sys/dev/nfe/if_nfe.c
3082
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/nfe/if_nfe.c
3089
child = SYSCTL_CHILDREN(tree);
sys/dev/nfe/if_nfe.c
3091
NFE_SYSCTL_STAT_ADD32(ctx, child, "frame_errors",
sys/dev/nfe/if_nfe.c
3093
NFE_SYSCTL_STAT_ADD32(ctx, child, "extra_bytes",
sys/dev/nfe/if_nfe.c
3095
NFE_SYSCTL_STAT_ADD32(ctx, child, "late_cols",
sys/dev/nfe/if_nfe.c
3097
NFE_SYSCTL_STAT_ADD32(ctx, child, "runts",
sys/dev/nfe/if_nfe.c
3099
NFE_SYSCTL_STAT_ADD32(ctx, child, "jumbos",
sys/dev/nfe/if_nfe.c
3101
NFE_SYSCTL_STAT_ADD32(ctx, child, "fifo_overuns",
sys/dev/nfe/if_nfe.c
3103
NFE_SYSCTL_STAT_ADD32(ctx, child, "crc_errors",
sys/dev/nfe/if_nfe.c
3105
NFE_SYSCTL_STAT_ADD32(ctx, child, "fae",
sys/dev/nfe/if_nfe.c
3107
NFE_SYSCTL_STAT_ADD32(ctx, child, "len_errors",
sys/dev/nfe/if_nfe.c
3109
NFE_SYSCTL_STAT_ADD32(ctx, child, "unicast",
sys/dev/nfe/if_nfe.c
3111
NFE_SYSCTL_STAT_ADD32(ctx, child, "multicast",
sys/dev/nfe/if_nfe.c
3113
NFE_SYSCTL_STAT_ADD32(ctx, child, "broadcast",
sys/dev/nfe/if_nfe.c
3116
NFE_SYSCTL_STAT_ADD64(ctx, child, "octets",
sys/dev/nfe/if_nfe.c
3118
NFE_SYSCTL_STAT_ADD32(ctx, child, "pause",
sys/dev/nfe/if_nfe.c
3120
NFE_SYSCTL_STAT_ADD32(ctx, child, "drops",
sys/dev/nfe/if_nfe.c
3127
child = SYSCTL_CHILDREN(tree);
sys/dev/nfe/if_nfe.c
3128
NFE_SYSCTL_STAT_ADD64(ctx, child, "octets",
sys/dev/nfe/if_nfe.c
3130
NFE_SYSCTL_STAT_ADD32(ctx, child, "zero_rexmits",
sys/dev/nfe/if_nfe.c
3132
NFE_SYSCTL_STAT_ADD32(ctx, child, "one_rexmits",
sys/dev/nfe/if_nfe.c
3134
NFE_SYSCTL_STAT_ADD32(ctx, child, "multi_rexmits",
sys/dev/nfe/if_nfe.c
3136
NFE_SYSCTL_STAT_ADD32(ctx, child, "late_cols",
sys/dev/nfe/if_nfe.c
3138
NFE_SYSCTL_STAT_ADD32(ctx, child, "fifo_underuns",
sys/dev/nfe/if_nfe.c
3140
NFE_SYSCTL_STAT_ADD32(ctx, child, "carrier_losts",
sys/dev/nfe/if_nfe.c
3142
NFE_SYSCTL_STAT_ADD32(ctx, child, "excess_deferrals",
sys/dev/nfe/if_nfe.c
3144
NFE_SYSCTL_STAT_ADD32(ctx, child, "retry_errors",
sys/dev/nfe/if_nfe.c
3147
NFE_SYSCTL_STAT_ADD32(ctx, child, "deferrals",
sys/dev/nfe/if_nfe.c
3149
NFE_SYSCTL_STAT_ADD32(ctx, child, "frames",
sys/dev/nfe/if_nfe.c
3151
NFE_SYSCTL_STAT_ADD32(ctx, child, "pause",
sys/dev/nfe/if_nfe.c
3155
NFE_SYSCTL_STAT_ADD32(ctx, child, "unicast",
sys/dev/nfe/if_nfe.c
3157
NFE_SYSCTL_STAT_ADD32(ctx, child, "multicast",
sys/dev/nfe/if_nfe.c
3159
NFE_SYSCTL_STAT_ADD32(ctx, child, "broadcast",
sys/dev/nge/if_nge.c
2616
struct sysctl_oid_list *child, *parent;
sys/dev/nge/if_nge.c
2622
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->nge_dev));
sys/dev/nge/if_nge.c
2623
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_holdoff",
sys/dev/nge/if_nge.c
2643
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/nge/if_nge.c
2650
child = SYSCTL_CHILDREN(tree);
sys/dev/nge/if_nge.c
2651
NGE_SYSCTL_STAT_ADD32(ctx, child, "pkts_errs",
sys/dev/nge/if_nge.c
2654
NGE_SYSCTL_STAT_ADD32(ctx, child, "crc_errs",
sys/dev/nge/if_nge.c
2656
NGE_SYSCTL_STAT_ADD32(ctx, child, "fifo_oflows",
sys/dev/nge/if_nge.c
2658
NGE_SYSCTL_STAT_ADD32(ctx, child, "align_errs",
sys/dev/nge/if_nge.c
2660
NGE_SYSCTL_STAT_ADD32(ctx, child, "sym_errs",
sys/dev/nge/if_nge.c
2662
NGE_SYSCTL_STAT_ADD32(ctx, child, "pkts_jumbos",
sys/dev/nge/if_nge.c
2665
NGE_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/nge/if_nge.c
2667
NGE_SYSCTL_STAT_ADD32(ctx, child, "unctl_frames",
sys/dev/nge/if_nge.c
2669
NGE_SYSCTL_STAT_ADD32(ctx, child, "pause",
sys/dev/nge/if_nge.c
2675
child = SYSCTL_CHILDREN(tree);
sys/dev/nge/if_nge.c
2676
NGE_SYSCTL_STAT_ADD32(ctx, child, "pause",
sys/dev/nge/if_nge.c
2678
NGE_SYSCTL_STAT_ADD32(ctx, child, "seq_errs",
sys/dev/ntb/ntb.c
168
ntb_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/ntb/ntb.c
170
struct ntb_child *nc = device_get_ivars(child);
sys/dev/ntb/ntb.c
177
ntb_print_child(device_t dev, device_t child)
sys/dev/ntb/ntb.c
179
struct ntb_child *nc = device_get_ivars(child);
sys/dev/ntb/ntb.c
182
retval = bus_print_child_header(dev, child);
sys/dev/ntb/ntb.c
199
retval += bus_print_child_domain(dev, child);
sys/dev/ntb/ntb.c
200
retval += bus_print_child_footer(dev, child);
sys/dev/ntb/ntb.c
206
ntb_get_dma_tag(device_t bus, device_t child)
sys/dev/ntb/ntb.h
36
int ntb_child_location(device_t dev, device_t child, struct sbuf *sb);
sys/dev/ntb/ntb.h
37
int ntb_print_child(device_t dev, device_t child);
sys/dev/ntb/ntb.h
38
bus_dma_tag_t ntb_get_dma_tag(device_t bus, device_t child);
sys/dev/ntb/ntb_transport.c
203
struct ntb_transport_child *child;
sys/dev/ntb/ntb_transport.c
344
struct ntb_transport_child **cpp = &nt->child;
sys/dev/ntb/ntb_transport.c
527
struct ntb_transport_child **cpp = &nt->child;
sys/dev/ntb/ntb_transport.c
558
ntb_transport_print_child(device_t dev, device_t child)
sys/dev/ntb/ntb_transport.c
560
struct ntb_transport_child *nc = device_get_ivars(child);
sys/dev/ntb/ntb_transport.c
563
retval = bus_print_child_header(dev, child);
sys/dev/ntb/ntb_transport.c
570
retval += bus_print_child_domain(dev, child);
sys/dev/ntb/ntb_transport.c
571
retval += bus_print_child_footer(dev, child);
sys/dev/ntb/ntb_transport.c
577
ntb_transport_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/ntb/ntb_transport.c
579
struct ntb_transport_child *nc = device_get_ivars(child);
sys/dev/nvdimm/nvdimm_acpi.c
100
device_t child;
sys/dev/nvdimm/nvdimm_acpi.c
112
child = BUS_ADD_CHILD(dev, 100, "nvdimm", DEVICE_UNIT_ANY);
sys/dev/nvdimm/nvdimm_acpi.c
113
if (child == NULL) {
sys/dev/nvdimm/nvdimm_acpi.c
119
device_set_ivars(child, ivars);
sys/dev/nvdimm/nvdimm_acpi.c
120
nvdimm_root_set_acpi_handle(child, dimm_handle);
sys/dev/nvdimm/nvdimm_acpi.c
121
nvdimm_root_set_device_handle(child, *dimm);
sys/dev/nvdimm/nvdimm_acpi.c
199
nvdimm_root_child_deleted(device_t dev, device_t child)
sys/dev/nvdimm/nvdimm_acpi.c
201
free(device_get_ivars(child), M_NVDIMM_ACPI);
sys/dev/nvdimm/nvdimm_acpi.c
221
nvdimm_root_read_ivar(device_t dev, device_t child, int index,
sys/dev/nvdimm/nvdimm_acpi.c
227
*result = ((uintptr_t *)device_get_ivars(child))[index];
sys/dev/nvdimm/nvdimm_acpi.c
232
nvdimm_root_write_ivar(device_t dev, device_t child, int index,
sys/dev/nvdimm/nvdimm_acpi.c
238
((uintptr_t *)device_get_ivars(child))[index] = value;
sys/dev/nvdimm/nvdimm_acpi.c
243
nvdimm_root_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/nvdimm/nvdimm_acpi.c
247
handle = nvdimm_root_get_acpi_handle(child);
sys/dev/nvdimm/nvdimm_e820.c
259
device_t child;
sys/dev/nvdimm/nvdimm_e820.c
274
child = BUS_ADD_CHILD(parent, 0, driver->name, DEVICE_UNIT_ANY);
sys/dev/nvdimm/nvdimm_e820.c
275
if (child == NULL)
sys/dev/nvme/nvme_ctrlr.c
1126
device_t child;
sys/dev/nvme/nvme_ctrlr.c
1129
child = device_add_child(ctrlr->dev, NULL, DEVICE_UNIT_ANY);
sys/dev/nvme/nvme_ctrlr.c
1130
device_set_ivars(child, ctrlr);
sys/dev/nvme/nvme_ctrlr.c
1141
NVME_NS_ADDED(child, ns);
sys/dev/nvme/nvme_ns.c
310
struct bio *child = arg;
sys/dev/nvme/nvme_ns.c
314
parent = child->bio_parent;
sys/dev/nvme/nvme_ns.c
315
g_destroy_bio(child);
sys/dev/nvme/nvme_ns.c
379
struct bio *child;
sys/dev/nvme/nvme_ns.c
402
child = child_bios[i];
sys/dev/nvme/nvme_ns.c
403
child->bio_parent = bp;
sys/dev/nvme/nvme_ns.c
404
child->bio_cmd = bp->bio_cmd;
sys/dev/nvme/nvme_ns.c
405
child->bio_offset = cur_offset;
sys/dev/nvme/nvme_ns.c
406
child->bio_bcount = min(rem_bcount,
sys/dev/nvme/nvme_ns.c
408
child->bio_flags = bp->bio_flags;
sys/dev/nvme/nvme_ns.c
410
child->bio_ma_offset = ma_offset;
sys/dev/nvme/nvme_ns.c
411
child->bio_ma = ma;
sys/dev/nvme/nvme_ns.c
412
child->bio_ma_n =
sys/dev/nvme/nvme_ns.c
413
nvme_get_num_segments(child->bio_ma_offset,
sys/dev/nvme/nvme_ns.c
414
child->bio_bcount, PAGE_SIZE);
sys/dev/nvme/nvme_ns.c
415
ma_offset = (ma_offset + child->bio_bcount) &
sys/dev/nvme/nvme_ns.c
417
ma += child->bio_ma_n;
sys/dev/nvme/nvme_ns.c
421
child->bio_data = data;
sys/dev/nvme/nvme_ns.c
422
data += child->bio_bcount;
sys/dev/nvme/nvme_ns.c
424
cur_offset += child->bio_bcount;
sys/dev/nvme/nvme_ns.c
425
rem_bcount -= child->bio_bcount;
sys/dev/nvme/nvme_ns.c
435
struct bio *child;
sys/dev/nvme/nvme_ns.c
445
child = child_bios[i];
sys/dev/nvme/nvme_ns.c
446
err = nvme_ns_bio_process(ns, child, nvme_bio_child_done);
sys/dev/nvme/nvme_ns.c
449
g_destroy_bio(child);
sys/dev/oce/oce_sysctl.c
100
SYSCTL_ADD_INT(ctx, child,
sys/dev/oce/oce_sysctl.c
109
SYSCTL_ADD_UINT(ctx, child,
sys/dev/oce/oce_sysctl.c
115
SYSCTL_ADD_UINT(ctx, child,
sys/dev/oce/oce_sysctl.c
122
SYSCTL_ADD_UINT(ctx, child,
sys/dev/oce/oce_sysctl.c
128
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "loop_back",
sys/dev/oce/oce_sysctl.c
132
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "fw_upgrade",
sys/dev/oce/oce_sysctl.c
136
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "aic_enable",
sys/dev/oce/oce_sysctl.c
146
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "sfp_vpd_dump",
sys/dev/oce/oce_sysctl.c
149
SYSCTL_ADD_OPAQUE(ctx, child, OID_AUTO, "sfp_vpd_dump_buffer",
sys/dev/oce/oce_sysctl.c
153
stats_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/oce/oce_sysctl.c
83
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/oce/oce_sysctl.c
86
SYSCTL_ADD_STRING(ctx, child,
sys/dev/oce/oce_sysctl.c
93
SYSCTL_ADD_STRING(ctx, child,
sys/dev/ofw/ofw_bus_subr.c
106
ofw_bus_gen_get_device_path(device_t cbdev, device_t child, const char *locator,
sys/dev/ofw/ofw_bus_subr.c
112
rv = bus_generic_get_device_path(cbdev, child, locator, sb);
sys/dev/ofw/ofw_bus_subr.c
114
sbuf_printf(sb, "/%s", ofw_bus_get_name(child));
sys/dev/ofw/ofw_bus_subr.c
118
return (bus_generic_get_device_path(cbdev, child, locator, sb));
sys/dev/ofw/ofw_bus_subr.c
877
phandle_t child;
sys/dev/ofw/ofw_bus_subr.c
879
for (child = OF_child(start); child != 0; child = OF_peer(child)) {
sys/dev/ofw/ofw_bus_subr.c
88
ofw_bus_gen_child_pnpinfo(device_t cbdev, device_t child, struct sbuf *sb)
sys/dev/ofw/ofw_bus_subr.c
880
ret = OF_getprop_alloc(child, "name", (void **)&name);
sys/dev/ofw/ofw_bus_subr.c
885
return (child);
sys/dev/ofw/ofw_bus_subr.c
897
phandle_t child, ret;
sys/dev/ofw/ofw_bus_subr.c
903
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/ofw/ofw_bus_subr.c
904
if (ofw_bus_node_is_compatible(child, onecompat) != 0)
sys/dev/ofw/ofw_bus_subr.c
905
return (child);
sys/dev/ofw/ofw_bus_subr.c
907
ret = ofw_bus_find_compatible(child, onecompat);
sys/dev/ofw/ofw_bus_subr.c
91
if (!ofw_bus_status_okay(child))
sys/dev/ofw/ofw_bus_subr.c
926
device_t *children, retval, child;
sys/dev/ofw/ofw_bus_subr.c
94
if (ofw_bus_get_name(child) != NULL) {
sys/dev/ofw/ofw_bus_subr.c
944
child = children[i];
sys/dev/ofw/ofw_bus_subr.c
945
if (OFW_BUS_GET_NODE(bus, child) == node) {
sys/dev/ofw/ofw_bus_subr.c
946
retval = child;
sys/dev/ofw/ofw_bus_subr.c
95
sbuf_printf(sb, "name=%s ", ofw_bus_get_name(child));
sys/dev/ofw/ofw_bus_subr.c
98
if (ofw_bus_get_compat(child) != NULL) {
sys/dev/ofw/ofw_bus_subr.c
99
sbuf_printf(sb, "compat=%s ", ofw_bus_get_compat(child));
sys/dev/ofw/ofw_cpu.c
111
phandle_t root, child;
sys/dev/ofw/ofw_cpu.c
122
for (child = OF_child(root); child != 0; child = OF_peer(child)) {
sys/dev/ofw/ofw_cpu.c
125
if (ofw_bus_gen_setup_devinfo(dinfo, child) != 0) {
sys/dev/ofw/ofw_cpu.c
145
ofw_cpulist_get_devinfo(device_t dev, device_t child)
sys/dev/ofw/ofw_cpu.c
147
return (device_get_ivars(child));
sys/dev/ofw/ofw_cpu.c
152
static int ofw_cpu_read_ivar(device_t dev, device_t child, int index,
sys/dev/ofw/ofw_cpu.c
375
ofw_cpu_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/ofw/ofw_cpu.c
410
phandle_t node, child;
sys/dev/ofw/ofw_cpu.c
429
for (child = OF_child(node); child != 0; child = OF_peer(child),
sys/dev/ofw/ofw_cpu.c
433
rv = OF_getprop(child, "device_type", device_type,
sys/dev/ofw/ofw_cpu.c
448
if (only_runnable && !ofw_cpu_is_runnable(child))
sys/dev/ofw/ofw_cpu.c
454
rv = OF_getencprop(child, "reg", reg,
sys/dev/ofw/ofw_cpu.c
459
if (callback == NULL || callback(id, child, addr_cells, reg))
sys/dev/ofw/ofw_cpu.c
54
device_t child);
sys/dev/ofw/ofw_firmware.c
125
phandle_t node, child;
sys/dev/ofw/ofw_firmware.c
147
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/ofw/ofw_firmware.c
148
cdev = ofw_firmware_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/ofw/ofw_graph.c
109
phandle_t endpoint, child;
sys/dev/ofw/ofw_graph.c
118
for (child = OF_child(port); child != 0; child = OF_peer(child)) {
sys/dev/ofw/ofw_graph.c
119
if (OF_getencprop(child, "reg", ®, sizeof(uint32_t)) <= 0 ||
sys/dev/ofw/ofw_graph.c
123
return (child);
sys/dev/ofw/ofw_graph.c
49
phandle_t ports, child;
sys/dev/ofw/ofw_graph.c
55
child = ofw_bus_find_child(node, portnode);
sys/dev/ofw/ofw_graph.c
56
if (child != 0)
sys/dev/ofw/ofw_graph.c
57
return (child);
sys/dev/ofw/ofw_graph.c
62
child = ofw_bus_find_child(node, portnode);
sys/dev/ofw/ofw_graph.c
63
if (child != 0)
sys/dev/ofw/ofw_graph.c
64
return (child);
sys/dev/ofw/ofw_graph.c
72
for (child = OF_child(ports); child != 0; child = OF_peer(child)) {
sys/dev/ofw/ofw_graph.c
73
if (OF_getencprop(child, "reg", ®, sizeof(uint32_t)) <= 0 ||
sys/dev/ofw/ofw_graph.c
77
return (child);
sys/dev/ofw/ofw_graph.c
86
phandle_t child;
sys/dev/ofw/ofw_graph.c
91
for (num = 0, child = OF_child(port); child != 0;
sys/dev/ofw/ofw_graph.c
92
child = OF_peer(child)) {
sys/dev/ofw/ofw_graph.c
93
ret = OF_getprop_alloc(child, "name", (void **)&name);
sys/dev/ofw/ofw_pcib.c
355
ofw_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/ofw/ofw_pcib.c
376
ofw_pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/ofw/ofw_pcib.c
422
ofw_pcib_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/ofw/ofw_pcib.c
430
return (pci_domain_alloc_bus(sc->sc_pci_domain, child, rid,
sys/dev/ofw/ofw_pcib.c
434
return (bus_generic_rman_alloc_resource(bus, child, type, rid,
sys/dev/ofw/ofw_pcib.c
437
return (bus_generic_alloc_resource(bus, child, type, rid,
sys/dev/ofw/ofw_pcib.c
443
ofw_pcib_release_resource(device_t bus, device_t child, struct resource *res)
sys/dev/ofw/ofw_pcib.c
450
return (pci_domain_release_bus(sc->sc_pci_domain, child, res));
sys/dev/ofw/ofw_pcib.c
453
return (bus_generic_rman_release_resource(bus, child, res));
sys/dev/ofw/ofw_pcib.c
455
return (bus_generic_release_resource(bus, child, res));
sys/dev/ofw/ofw_pcib.c
499
ofw_pcib_activate_resource(device_t bus, device_t child, struct resource *res)
sys/dev/ofw/ofw_pcib.c
506
return (pci_domain_activate_bus(sc->sc_pci_domain, child, res));
sys/dev/ofw/ofw_pcib.c
509
return (bus_generic_rman_activate_resource(bus, child, res));
sys/dev/ofw/ofw_pcib.c
511
return (bus_generic_activate_resource(bus, child, res));
sys/dev/ofw/ofw_pcib.c
516
ofw_pcib_map_resource(device_t dev, device_t child, struct resource *r,
sys/dev/ofw/ofw_pcib.c
572
map->r_bustag = BUS_GET_BUS_TAG(child, child);
sys/dev/ofw/ofw_pcib.c
588
ofw_pcib_unmap_resource(device_t dev, device_t child, struct resource *r,
sys/dev/ofw/ofw_pcib.c
603
ofw_pcib_bus_get_bus_tag(device_t bus, device_t child)
sys/dev/ofw/ofw_pcib.c
611
ofw_pcib_deactivate_resource(device_t bus, device_t child, struct resource *res)
sys/dev/ofw/ofw_pcib.c
618
return (pci_domain_deactivate_bus(sc->sc_pci_domain, child,
sys/dev/ofw/ofw_pcib.c
622
return (bus_generic_rman_deactivate_resource(bus, child, res));
sys/dev/ofw/ofw_pcib.c
624
return (bus_generic_deactivate_resource(bus, child, res));
sys/dev/ofw/ofw_pcib.c
629
ofw_pcib_adjust_resource(device_t bus, device_t child,
sys/dev/ofw/ofw_pcib.c
637
return (pci_domain_adjust_bus(sc->sc_pci_domain, child, res,
sys/dev/ofw/ofw_pcib.c
641
return (bus_generic_rman_adjust_resource(bus, child, res,
sys/dev/ofw/ofw_pcib.c
644
return (bus_generic_adjust_resource(bus, child, res, start,
sys/dev/ofw/ofw_standard.c
243
cell_t child;
sys/dev/ofw/ofw_standard.c
253
return (args.child);
sys/dev/ofw/ofwbus.c
133
ofwbus_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/ofw/ofwbus.c
141
passthrough = (device_get_parent(child) != bus);
sys/dev/ofw/ofwbus.c
144
rle = resource_list_find(BUS_GET_RESOURCE_LIST(bus, child),
sys/dev/ofw/ofwbus.c
158
rv = bus_generic_alloc_resource(bus, child, type, rid, start, end,
sys/dev/ofw/ofwbus.c
174
ofwbus_release_resource(device_t bus, device_t child, struct resource *r)
sys/dev/ofw/ofwbus.c
179
passthrough = (device_get_parent(child) != bus);
sys/dev/ofw/ofwbus.c
182
rle = resource_list_find(BUS_GET_RESOURCE_LIST(bus, child),
sys/dev/ofw/ofwbus.c
189
return (bus_generic_release_resource(bus, child, r));
sys/dev/ofw/openfirm.c
119
phandle_t child, xref;
sys/dev/ofw/openfirm.c
126
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/dev/ofw/openfirm.c
127
xrefinfo_create(child);
sys/dev/ofw/openfirm.c
128
if (OF_getencprop(child, "phandle", &xref, sizeof(xref)) ==
sys/dev/ofw/openfirm.c
129
-1 && OF_getencprop(child, "ibm,phandle", &xref,
sys/dev/ofw/openfirm.c
130
sizeof(xref)) == -1 && OF_getencprop(child,
sys/dev/ofw/openfirm.c
134
xi->node = child;
sys/dev/ofw/openfirm.c
606
phandle_t child, rxref;
sys/dev/ofw/openfirm.c
614
for (child = OF_child(parent); child != 0; child = OF_peer(child)) {
sys/dev/ofw/openfirm.c
615
rxref = OF_child_xref_phandle(child, xref);
sys/dev/ofw/openfirm.c
619
if (OF_getencprop(child, "phandle", &rxref, sizeof(rxref)) ==
sys/dev/ofw/openfirm.c
620
-1 && OF_getencprop(child, "ibm,phandle", &rxref,
sys/dev/ofw/openfirm.c
621
sizeof(rxref)) == -1 && OF_getencprop(child,
sys/dev/ofw/openfirm.c
626
return (child);
sys/dev/ow/ow.c
320
device_t child;
sys/dev/ow/ow.c
324
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/dev/ow/ow.c
325
if (child == NULL) {
sys/dev/ow/ow.c
329
device_set_ivars(child, di);
sys/dev/ow/ow.c
334
ow_child_deleted(device_t dev, device_t child)
sys/dev/ow/ow.c
336
free(device_get_ivars(child), M_OW);
sys/dev/ow/ow.c
342
device_t *children, retval, child;
sys/dev/ow/ow.c
350
child = children[i];
sys/dev/ow/ow.c
351
di = device_get_ivars(child);
sys/dev/ow/ow.c
353
retval = child;
sys/dev/ow/ow.c
582
ow_child_pnpinfo(device_t dev, device_t child, struct sbuf *sb)
sys/dev/ow/ow.c
586
di = device_get_ivars(child);
sys/dev/ow/ow.c
592
ow_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/ow/ow.c
597
di = device_get_ivars(child);
sys/dev/ow/ow.c
614
ow_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/p2sb/lewisburg_gpiocm.c
100
device_t child);
sys/dev/p2sb/lewisburg_gpiocm.c
103
lbggpiocm_get_group(struct lbggpiocm_softc *sc, device_t child)
sys/dev/p2sb/lewisburg_gpiocm.c
108
if (sc->community->groups[i].dev == child)
sys/dev/p2sb/lewisburg_gpiocm.c
125
lbggpiocm_get_group_npins(device_t dev, device_t child)
sys/dev/p2sb/lewisburg_gpiocm.c
130
group = lbggpiocm_get_group(sc, child);
sys/dev/p2sb/lewisburg_gpiocm.c
137
lbggpiocm_get_group_name(device_t dev, device_t child)
sys/dev/p2sb/lewisburg_gpiocm.c
142
group = lbggpiocm_get_group(sc, child);
sys/dev/p2sb/lewisburg_gpiocm.c
149
lbggpiocm_pin2cpin(struct lbggpiocm_softc *sc, device_t child, uint32_t pin)
sys/dev/p2sb/lewisburg_gpiocm.c
153
group = lbggpiocm_get_group(sc, child);
sys/dev/p2sb/lewisburg_gpiocm.c
160
lbggpiocm_pin_setflags(device_t dev, device_t child, uint32_t pin, uint32_t flags)
sys/dev/p2sb/lewisburg_gpiocm.c
173
rpin = lbggpiocm_pin2cpin(sc, child, pin);
sys/dev/p2sb/lewisburg_gpiocm.c
197
lbggpiocm_pin_get(device_t dev, device_t child, uint32_t pin, uint32_t *value)
sys/dev/p2sb/lewisburg_gpiocm.c
206
rpin = lbggpiocm_pin2cpin(sc, child, pin);
sys/dev/p2sb/lewisburg_gpiocm.c
225
lbggpiocm_pin_set(device_t dev, device_t child, uint32_t pin, uint32_t value)
sys/dev/p2sb/lewisburg_gpiocm.c
231
rpin = lbggpiocm_pin2cpin(sc, child, pin);
sys/dev/p2sb/lewisburg_gpiocm.c
252
lbggpiocm_pin_toggle(device_t dev, device_t child, uint32_t pin)
sys/dev/p2sb/lewisburg_gpiocm.c
258
rpin = lbggpiocm_pin2cpin(sc, child, pin);
sys/dev/p2sb/lewisburg_gpiocm.h
4
int lbggpiocm_get_group_npins(device_t dev, device_t child);
sys/dev/p2sb/lewisburg_gpiocm.h
5
char lbggpiocm_get_group_name(device_t dev, device_t child);
sys/dev/pccbb/pccbb.c
1000
cbb_cardbus_power_disable_socket(brdev, child);
sys/dev/pccbb/pccbb.c
1148
cbb_cardbus_activate_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbb.c
1153
ret = BUS_ACTIVATE_RESOURCE(device_get_parent(brdev), child,
sys/dev/pccbb/pccbb.c
1162
cbb_cardbus_deactivate_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbb.c
1167
ret = BUS_DEACTIVATE_RESOURCE(device_get_parent(brdev), child,
sys/dev/pccbb/pccbb.c
1176
cbb_cardbus_alloc_resource(device_t brdev, device_t child, int type,
sys/dev/pccbb/pccbb.c
1188
device_printf(child, "requested interrupt %jd-%jd,"
sys/dev/pccbb/pccbb.c
1219
res = BUS_ALLOC_RESOURCE(device_get_parent(brdev), child, type, rid,
sys/dev/pccbb/pccbb.c
1227
if (bus_activate_resource(child, type, rid, res) != 0) {
sys/dev/pccbb/pccbb.c
1228
bus_release_resource(child, type, rid, res);
sys/dev/pccbb/pccbb.c
1236
cbb_cardbus_release_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbb.c
1243
error = bus_deactivate_resource(child, res);
sys/dev/pccbb/pccbb.c
1248
return (BUS_RELEASE_RESOURCE(device_get_parent(brdev), child,
sys/dev/pccbb/pccbb.c
1257
cbb_pcic_power_enable_socket(device_t brdev, device_t child)
sys/dev/pccbb/pccbb.c
1268
exca_reset(&sc->exca, child);
sys/dev/pccbb/pccbb.c
1274
cbb_pcic_power_disable_socket(device_t brdev, device_t child)
sys/dev/pccbb/pccbb.c
1301
cbb_power_enable_socket(device_t brdev, device_t child)
sys/dev/pccbb/pccbb.c
1306
return (cbb_pcic_power_enable_socket(brdev, child));
sys/dev/pccbb/pccbb.c
1307
return (cbb_cardbus_power_enable_socket(brdev, child));
sys/dev/pccbb/pccbb.c
1311
cbb_power_disable_socket(device_t brdev, device_t child)
sys/dev/pccbb/pccbb.c
1315
return (cbb_pcic_power_disable_socket(brdev, child));
sys/dev/pccbb/pccbb.c
1316
return (cbb_cardbus_power_disable_socket(brdev, child));
sys/dev/pccbb/pccbb.c
1320
cbb_pcic_activate_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbb.c
1326
error = exca_activate_resource(&sc->exca, child, res);
sys/dev/pccbb/pccbb.c
1333
cbb_pcic_deactivate_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbb.c
1337
return (exca_deactivate_resource(&sc->exca, child, res));
sys/dev/pccbb/pccbb.c
1341
cbb_pcic_alloc_resource(device_t brdev, device_t child, int type, int rid,
sys/dev/pccbb/pccbb.c
1372
device_printf(child, "requested interrupt %jd-%jd,"
sys/dev/pccbb/pccbb.c
1381
res = BUS_ALLOC_RESOURCE(device_get_parent(brdev), child, type, rid,
sys/dev/pccbb/pccbb.c
1387
if (bus_activate_resource(child, type, rid, res) != 0) {
sys/dev/pccbb/pccbb.c
1388
bus_release_resource(child, type, rid, res);
sys/dev/pccbb/pccbb.c
1397
cbb_pcic_release_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbb.c
1404
error = bus_deactivate_resource(child, res);
sys/dev/pccbb/pccbb.c
1409
return (BUS_RELEASE_RESOURCE(device_get_parent(brdev), child,
sys/dev/pccbb/pccbb.c
1418
cbb_pcic_set_res_flags(device_t brdev, device_t child, int type, int rid,
sys/dev/pccbb/pccbb.c
1436
cbb_pcic_set_memory_offset(device_t brdev, device_t child, int rid,
sys/dev/pccbb/pccbb.c
1456
cbb_activate_resource(device_t brdev, device_t child, struct resource *r)
sys/dev/pccbb/pccbb.c
1461
return (cbb_pcic_activate_resource(brdev, child, r));
sys/dev/pccbb/pccbb.c
1463
return (cbb_cardbus_activate_resource(brdev, child, r));
sys/dev/pccbb/pccbb.c
1467
cbb_deactivate_resource(device_t brdev, device_t child, struct resource *r)
sys/dev/pccbb/pccbb.c
1472
return (cbb_pcic_deactivate_resource(brdev, child, r));
sys/dev/pccbb/pccbb.c
1474
return (cbb_cardbus_deactivate_resource(brdev, child, r));
sys/dev/pccbb/pccbb.c
1478
cbb_alloc_resource(device_t brdev, device_t child, int type, int rid,
sys/dev/pccbb/pccbb.c
1484
return (cbb_pcic_alloc_resource(brdev, child, type, rid,
sys/dev/pccbb/pccbb.c
1487
return (cbb_cardbus_alloc_resource(brdev, child, type, rid,
sys/dev/pccbb/pccbb.c
1492
cbb_release_resource(device_t brdev, device_t child, struct resource *r)
sys/dev/pccbb/pccbb.c
1497
return (cbb_pcic_release_resource(brdev, child, r));
sys/dev/pccbb/pccbb.c
1499
return (cbb_cardbus_release_resource(brdev, child, r));
sys/dev/pccbb/pccbb.c
1503
cbb_read_ivar(device_t brdev, device_t child, int which, uintptr_t *result)
sys/dev/pccbb/pccbb.c
151
static int cbb_cardbus_reset_power(device_t brdev, device_t child, int on);
sys/dev/pccbb/pccbb.c
1522
cbb_write_ivar(device_t brdev, device_t child, int which, uintptr_t value)
sys/dev/pccbb/pccbb.c
1537
cbb_child_present(device_t parent, device_t child)
sys/dev/pccbb/pccbb.c
157
static int cbb_cardbus_activate_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbb.c
160
device_t child, struct resource *res);
sys/dev/pccbb/pccbb.c
162
device_t child, int type, int rid, rman_res_t start,
sys/dev/pccbb/pccbb.c
164
static int cbb_cardbus_release_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbb.c
167
device_t child);
sys/dev/pccbb/pccbb.c
169
device_t child);
sys/dev/pccbb/pccbb.c
322
cbb_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pccbb/pccbb.c
344
err = BUS_SETUP_INTR(device_get_parent(dev), child, irq, flags,
sys/dev/pccbb/pccbb.c
357
cbb_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pccbb/pccbb.c
365
err = BUS_TEARDOWN_INTR(device_get_parent(dev), child, irq,
sys/dev/pccbb/pccbb.c
402
cbb_child_detached(device_t brdev, device_t child)
sys/dev/pccbb/pccbb.c
407
if (child != sc->cbdev && child != sc->exca.pccarddev)
sys/dev/pccbb/pccbb.c
409
device_get_nameunit(child));
sys/dev/pccbb/pccbb.c
906
cbb_cardbus_reset_power(device_t brdev, device_t child, int on)
sys/dev/pccbb/pccbb.c
941
b = pcib_get_bus(child);
sys/dev/pccbb/pccbb.c
976
cbb_cardbus_power_disable_socket(device_t brdev, device_t child)
sys/dev/pccbb/pccbb.c
979
cbb_cardbus_reset_power(brdev, child, 0);
sys/dev/pccbb/pccbb.c
984
cbb_cardbus_power_enable_socket(device_t brdev, device_t child)
sys/dev/pccbb/pccbb.c
997
err = cbb_cardbus_reset_power(brdev, child, 1);
sys/dev/pccbb/pccbb_pci.c
752
cbb_pci_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/pccbb/pccbb_pci.c
759
return (pcib_alloc_subbus(&sc->bus, child, rid, start, end,
sys/dev/pccbb/pccbb_pci.c
761
return (cbb_alloc_resource(bus, child, type, rid, start, end, count,
sys/dev/pccbb/pccbb_pci.c
766
cbb_pci_adjust_resource(device_t bus, device_t child,
sys/dev/pccbb/pccbb_pci.c
777
return (bus_generic_adjust_resource(bus, child, r, start, end));
sys/dev/pccbb/pccbb_pci.c
781
cbb_pci_release_resource(device_t bus, device_t child, struct resource *r)
sys/dev/pccbb/pccbb_pci.c
791
error = bus_deactivate_resource(child, r);
sys/dev/pccbb/pccbb_pci.c
797
return (cbb_release_resource(bus, child, r));
sys/dev/pccbb/pccbbvar.h
110
int cbb_activate_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbbvar.h
112
struct resource *cbb_alloc_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbbvar.h
115
void cbb_child_detached(device_t brdev, device_t child);
sys/dev/pccbb/pccbbvar.h
116
int cbb_child_present(device_t parent, device_t child);
sys/dev/pccbb/pccbbvar.h
117
int cbb_deactivate_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbbvar.h
123
int cbb_pcic_set_memory_offset(device_t brdev, device_t child, int rid,
sys/dev/pccbb/pccbbvar.h
125
int cbb_pcic_set_res_flags(device_t brdev, device_t child, int type,
sys/dev/pccbb/pccbbvar.h
128
int cbb_power_enable_socket(device_t brdev, device_t child);
sys/dev/pccbb/pccbbvar.h
129
int cbb_power_disable_socket(device_t brdev, device_t child);
sys/dev/pccbb/pccbbvar.h
130
int cbb_read_ivar(device_t brdev, device_t child, int which,
sys/dev/pccbb/pccbbvar.h
132
int cbb_release_resource(device_t brdev, device_t child,
sys/dev/pccbb/pccbbvar.h
134
int cbb_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pccbb/pccbbvar.h
137
int cbb_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pccbb/pccbbvar.h
139
int cbb_write_ivar(device_t brdev, device_t child, int which,
sys/dev/pci/hostb_pci.c
101
pci_hostb_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/pci/hostb_pci.c
109
pci_hostb_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/hostb_pci.c
118
pci_hostb_read_config(device_t dev, device_t child, int reg, int width)
sys/dev/pci/hostb_pci.c
125
pci_hostb_write_config(device_t dev, device_t child, int reg,
sys/dev/pci/hostb_pci.c
133
pci_hostb_enable_busmaster(device_t dev, device_t child)
sys/dev/pci/hostb_pci.c
137
device_get_nameunit(child));
sys/dev/pci/hostb_pci.c
142
pci_hostb_disable_busmaster(device_t dev, device_t child)
sys/dev/pci/hostb_pci.c
146
device_get_nameunit(child));
sys/dev/pci/hostb_pci.c
151
pci_hostb_enable_io(device_t dev, device_t child, int space)
sys/dev/pci/hostb_pci.c
155
device_get_nameunit(child));
sys/dev/pci/hostb_pci.c
160
pci_hostb_disable_io(device_t dev, device_t child, int space)
sys/dev/pci/hostb_pci.c
164
device_get_nameunit(child));
sys/dev/pci/hostb_pci.c
169
pci_hostb_set_powerstate(device_t dev, device_t child, int state)
sys/dev/pci/hostb_pci.c
173
device_get_nameunit(child));
sys/dev/pci/hostb_pci.c
178
pci_hostb_get_powerstate(device_t dev, device_t child)
sys/dev/pci/hostb_pci.c
182
device_get_nameunit(child));
sys/dev/pci/hostb_pci.c
187
pci_hostb_assign_interrupt(device_t dev, device_t child)
sys/dev/pci/hostb_pci.c
191
device_get_nameunit(child));
sys/dev/pci/hostb_pci.c
196
pci_hostb_find_cap(device_t dev, device_t child, int capability,
sys/dev/pci/hostb_pci.c
204
pci_hostb_find_next_cap(device_t dev, device_t child, int capability,
sys/dev/pci/hostb_pci.c
212
pci_hostb_find_extcap(device_t dev, device_t child, int capability,
sys/dev/pci/hostb_pci.c
220
pci_hostb_find_next_extcap(device_t dev, device_t child, int capability,
sys/dev/pci/hostb_pci.c
228
pci_hostb_find_htcap(device_t dev, device_t child, int capability,
sys/dev/pci/hostb_pci.c
236
pci_hostb_find_next_htcap(device_t dev, device_t child, int capability,
sys/dev/pci/hostb_pci.c
87
pci_hostb_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/pci/hostb_pci.c
94
pci_hostb_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/pci/isa_pci.c
168
isab_pci_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/pci/isa_pci.c
174
if (device_get_parent(child) != dev)
sys/dev/pci/isa_pci.c
175
return bus_generic_alloc_resource(dev, child, type, rid, start,
sys/dev/pci/isa_pci.c
197
return (BUS_ALLOC_RESOURCE(device_get_parent(dev), child, type, rid,
sys/dev/pci/isa_pci.c
202
isab_pci_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/isa_pci.c
207
if (device_get_parent(child) != dev)
sys/dev/pci/isa_pci.c
208
return bus_generic_release_resource(dev, child, r);
sys/dev/pci/isa_pci.c
239
return (bus_generic_release_resource(dev, child, r));
sys/dev/pci/isa_pci.c
55
device_t child, int type, int rid, rman_res_t start, rman_res_t end,
sys/dev/pci/isa_pci.c
57
static int isab_pci_release_resource(device_t dev, device_t child,
sys/dev/pci/pci.c
1406
pci_get_vpd_ident_method(device_t dev, device_t child, const char **identptr)
sys/dev/pci/pci.c
1408
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
1423
pci_get_vpd_readonly_method(device_t dev, device_t child, const char *kw,
sys/dev/pci/pci.c
1426
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
1461
pci_find_htcap_method(device_t dev, device_t child, int capability, int *capreg)
sys/dev/pci/pci.c
1466
error = pci_find_cap(child, PCIY_HT, &ptr);
sys/dev/pci/pci.c
1475
val = pci_read_config(child, ptr + PCIR_HT_COMMAND, 2);
sys/dev/pci/pci.c
1488
if (pci_find_next_cap(child, PCIY_HT, ptr, &ptr) != 0)
sys/dev/pci/pci.c
1501
pci_find_next_htcap_method(device_t dev, device_t child, int capability,
sys/dev/pci/pci.c
1507
KASSERT(pci_read_config(child, start + PCICAP_ID, 1) == PCIY_HT,
sys/dev/pci/pci.c
1517
if (pci_find_next_cap(child, PCIY_HT, ptr, &ptr) != 0)
sys/dev/pci/pci.c
1520
val = pci_read_config(child, ptr + PCIR_HT_COMMAND, 2);
sys/dev/pci/pci.c
1542
pci_find_cap_method(device_t dev, device_t child, int capability,
sys/dev/pci/pci.c
1545
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
1554
status = pci_read_config(child, PCIR_STATUS, 2);
sys/dev/pci/pci.c
1573
ptr = pci_read_config(child, ptr, 1);
sys/dev/pci/pci.c
1581
if (pci_read_config(child, ptr + PCICAP_ID, 1) == capability) {
sys/dev/pci/pci.c
1586
ptr = pci_read_config(child, ptr + PCICAP_NEXTPTR, 1);
sys/dev/pci/pci.c
1598
pci_find_next_cap_method(device_t dev, device_t child, int capability,
sys/dev/pci/pci.c
1603
KASSERT(pci_read_config(child, start + PCICAP_ID, 1) == capability,
sys/dev/pci/pci.c
1606
ptr = pci_read_config(child, start + PCICAP_NEXTPTR, 1);
sys/dev/pci/pci.c
1608
if (pci_read_config(child, ptr + PCICAP_ID, 1) == capability) {
sys/dev/pci/pci.c
1613
ptr = pci_read_config(child, ptr + PCICAP_NEXTPTR, 1);
sys/dev/pci/pci.c
1625
pci_find_extcap_method(device_t dev, device_t child, int capability,
sys/dev/pci/pci.c
1628
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
1638
ecap = pci_read_config(child, ptr, 4);
sys/dev/pci/pci.c
1650
ecap = pci_read_config(child, ptr, 4);
sys/dev/pci/pci.c
1662
pci_find_next_extcap_method(device_t dev, device_t child, int capability,
sys/dev/pci/pci.c
1665
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
1674
ecap = pci_read_config(child, start, 4);
sys/dev/pci/pci.c
1679
ecap = pci_read_config(child, ptr, 4);
sys/dev/pci/pci.c
1709
pci_enable_msix_method(device_t dev, device_t child, u_int index,
sys/dev/pci/pci.c
1714
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
1725
pci_write_config(child,
sys/dev/pci/pci.c
1728
pci_resume_msix(child);
sys/dev/pci/pci.c
1730
pci_write_msix_entry(child, index, address, data);
sys/dev/pci/pci.c
1733
pci_ht_map_msi(child, address);
sys/dev/pci/pci.c
1829
pci_alloc_msix_method(device_t dev, device_t child, int *count)
sys/dev/pci/pci.c
1831
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
1875
ctrl = pci_read_config(child, cfg->msix.msix_location + PCIR_MSIX_CTRL,
sys/dev/pci/pci.c
1879
device_printf(child,
sys/dev/pci/pci.c
1885
error = PCIB_ALLOC_MSIX(device_get_parent(dev), child, &irq);
sys/dev/pci/pci.c
1899
device_printf(child, "using IRQ %ju for MSI-X\n",
sys/dev/pci/pci.c
1909
device_printf(child, "using IRQs %ju", rle->start);
sys/dev/pci/pci.c
1947
pci_mask_msix(child, i);
sys/dev/pci/pci.c
1962
pci_write_config(child, cfg->msix.msix_location + PCIR_MSIX_CTRL,
sys/dev/pci/pci.c
2013
pci_remap_msix_method(device_t dev, device_t child, int count,
sys/dev/pci/pci.c
2016
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2095
PCIB_RELEASE_MSIX(device_get_parent(dev), child,
sys/dev/pci/pci.c
2119
device_printf(child, "Remapped MSI-X IRQs as: ");
sys/dev/pci/pci.c
2136
pci_release_msix(device_t dev, device_t child)
sys/dev/pci/pci.c
2138
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2161
pci_write_config(child, msix->msix_location + PCIR_MSIX_CTRL,
sys/dev/pci/pci.c
2175
PCIB_RELEASE_MSIX(device_get_parent(dev), child,
sys/dev/pci/pci.c
2189
pci_msix_count_method(device_t dev, device_t child)
sys/dev/pci/pci.c
2191
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2196
ctrl = pci_read_config(child, msix->msix_location +
sys/dev/pci/pci.c
2204
pci_msix_pba_bar_method(device_t dev, device_t child)
sys/dev/pci/pci.c
2206
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2215
pci_msix_table_bar_method(device_t dev, device_t child)
sys/dev/pci/pci.c
2217
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2383
pci_enable_msi_method(device_t dev, device_t child, uint64_t address,
sys/dev/pci/pci.c
2386
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2390
pci_write_config(child, msi->msi_location + PCIR_MSI_ADDR,
sys/dev/pci/pci.c
2393
pci_write_config(child, msi->msi_location + PCIR_MSI_ADDR_HIGH,
sys/dev/pci/pci.c
2395
pci_write_config(child, msi->msi_location + PCIR_MSI_DATA_64BIT,
sys/dev/pci/pci.c
2398
pci_write_config(child, msi->msi_location + PCIR_MSI_DATA, data,
sys/dev/pci/pci.c
2403
pci_write_config(child, msi->msi_location + PCIR_MSI_CTRL,
sys/dev/pci/pci.c
2407
pci_ht_map_msi(child, address);
sys/dev/pci/pci.c
2411
pci_disable_msi_method(device_t dev, device_t child)
sys/dev/pci/pci.c
2413
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2417
pci_ht_map_msi(child, 0);
sys/dev/pci/pci.c
2421
pci_write_config(child, msi->msi_location + PCIR_MSI_CTRL,
sys/dev/pci/pci.c
2627
pci_alloc_msi_method(device_t dev, device_t child, int *count)
sys/dev/pci/pci.c
2629
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2657
ctrl = pci_read_config(child, cfg->msi.msi_location + PCIR_MSI_CTRL, 2);
sys/dev/pci/pci.c
2660
device_printf(child,
sys/dev/pci/pci.c
2676
error = PCIB_ALLOC_MSI(device_get_parent(dev), child, actual,
sys/dev/pci/pci.c
2698
device_printf(child, "using IRQ %d for MSI\n", irqs[0]);
sys/dev/pci/pci.c
2707
device_printf(child, "using IRQs %d", irqs[0]);
sys/dev/pci/pci.c
2737
pci_write_config(child, cfg->msi.msi_location + PCIR_MSI_CTRL, ctrl, 2);
sys/dev/pci/pci.c
2748
pci_release_msi_method(device_t dev, device_t child)
sys/dev/pci/pci.c
2750
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2757
error = pci_release_msix(dev, child);
sys/dev/pci/pci.c
2781
pci_write_config(child, msi->msi_location + PCIR_MSI_CTRL,
sys/dev/pci/pci.c
2785
PCIB_RELEASE_MSI(device_get_parent(dev), child, msi->msi_alloc, irqs);
sys/dev/pci/pci.c
2803
pci_msi_count_method(device_t dev, device_t child)
sys/dev/pci/pci.c
2805
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2810
ctrl = pci_read_config(child, msi->msi_location + PCIR_MSI_CTRL,
sys/dev/pci/pci.c
2848
pci_set_powerstate_method(device_t dev, device_t child, int state)
sys/dev/pci/pci.c
2850
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2863
oldstate = pci_get_powerstate(child);
sys/dev/pci/pci.c
2886
status = PCI_READ_CONFIG(dev, child, cfg->pp.pp_location +
sys/dev/pci/pci.c
2914
PCI_WRITE_CONFIG(dev, child, cfg->pp.pp_location + PCIR_POWER_STATUS,
sys/dev/pci/pci.c
2922
pci_get_powerstate_method(device_t dev, device_t child)
sys/dev/pci/pci.c
2924
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
2930
status = PCI_READ_CONFIG(dev, child, cfg->pp.pp_location +
sys/dev/pci/pci.c
3005
pci_set_command_bit(device_t dev, device_t child, uint16_t bit)
sys/dev/pci/pci.c
3009
command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
sys/dev/pci/pci.c
3011
PCI_WRITE_CONFIG(dev, child, PCIR_COMMAND, command, 2);
sys/dev/pci/pci.c
3015
pci_clear_command_bit(device_t dev, device_t child, uint16_t bit)
sys/dev/pci/pci.c
3019
command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
sys/dev/pci/pci.c
3021
PCI_WRITE_CONFIG(dev, child, PCIR_COMMAND, command, 2);
sys/dev/pci/pci.c
3025
pci_enable_busmaster_method(device_t dev, device_t child)
sys/dev/pci/pci.c
3027
pci_set_command_bit(dev, child, PCIM_CMD_BUSMASTEREN);
sys/dev/pci/pci.c
3032
pci_disable_busmaster_method(device_t dev, device_t child)
sys/dev/pci/pci.c
3034
pci_clear_command_bit(dev, child, PCIM_CMD_BUSMASTEREN);
sys/dev/pci/pci.c
3039
pci_enable_io_method(device_t dev, device_t child, int space)
sys/dev/pci/pci.c
3053
pci_set_command_bit(dev, child, bit);
sys/dev/pci/pci.c
3058
pci_disable_io_method(device_t dev, device_t child, int space)
sys/dev/pci/pci.c
3072
pci_clear_command_bit(dev, child, bit);
sys/dev/pci/pci.c
3919
pci_alloc_secbus(device_t dev, device_t child, int rid, rman_res_t start,
sys/dev/pci/pci.c
3928
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
3950
res = resource_list_reserve(rl, dev, child, PCI_RES_BUS, rid,
sys/dev/pci/pci.c
3954
device_printf(child, "allocating %ju bus%s failed\n",
sys/dev/pci/pci.c
3959
device_printf(child,
sys/dev/pci/pci.c
3962
PCI_WRITE_CONFIG(dev, child, sec_reg, rman_get_start(res), 1);
sys/dev/pci/pci.c
3963
PCI_WRITE_CONFIG(dev, child, sub_reg, rman_get_end(res), 1);
sys/dev/pci/pci.c
3965
return (resource_list_alloc(rl, dev, child, PCI_RES_BUS, rid, start,
sys/dev/pci/pci.c
4292
device_t child, *devlist, *unchanged;
sys/dev/pci/pci.c
4334
child = devlist[i];
sys/dev/pci/pci.c
4335
if (child == NULL)
sys/dev/pci/pci.c
4337
if (pci_get_slot(child) == s &&
sys/dev/pci/pci.c
4338
pci_get_function(child) == f) {
sys/dev/pci/pci.c
4339
unchanged[i] = child;
sys/dev/pci/pci.c
4551
pci_child_added_method(device_t dev, device_t child)
sys/dev/pci/pci.c
4627
pci_hint_device_unit(device_t dev, device_t child, const char *name, int *unitp)
sys/dev/pci/pci.c
4636
d = pci_get_domain(child);
sys/dev/pci/pci.c
4637
b = pci_get_bus(child);
sys/dev/pci/pci.c
4638
s = pci_get_slot(child);
sys/dev/pci/pci.c
4639
f = pci_get_function(child);
sys/dev/pci/pci.c
4650
if (dev_wired_cache_match(cache, child, at)) {
sys/dev/pci/pci.c
4659
pci_set_power_child(device_t dev, device_t child, int state)
sys/dev/pci/pci.c
4673
if (device_is_attached(child) &&
sys/dev/pci/pci.c
4674
PCIB_POWER_FOR_SLEEP(pcib, child, &dstate) == 0)
sys/dev/pci/pci.c
4675
pci_set_powerstate(child, dstate);
sys/dev/pci/pci.c
4679
pci_suspend_child(device_t dev, device_t child)
sys/dev/pci/pci.c
4685
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
4691
pci_cfg_save(child, dinfo, 0);
sys/dev/pci/pci.c
4694
error = bus_generic_suspend_child(dev, child);
sys/dev/pci/pci.c
4710
(void)bus_suspend_intr(child, rle->res);
sys/dev/pci/pci.c
4711
pci_set_power_child(dev, child, PCI_POWERSTATE_D3);
sys/dev/pci/pci.c
4718
pci_resume_child(device_t dev, device_t child)
sys/dev/pci/pci.c
4724
pci_set_power_child(dev, child, PCI_POWERSTATE_D0);
sys/dev/pci/pci.c
4726
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
4727
pci_cfg_restore(child, dinfo);
sys/dev/pci/pci.c
4728
pci_clear_pme(child);
sys/dev/pci/pci.c
4729
if (!device_is_attached(child))
sys/dev/pci/pci.c
4730
pci_cfg_save(child, dinfo, 1);
sys/dev/pci/pci.c
4732
bus_generic_resume_child(dev, child);
sys/dev/pci/pci.c
4741
(void)bus_resume_intr(child, rle->res);
sys/dev/pci/pci.c
4750
device_t child, *devlist;
sys/dev/pci/pci.c
4760
child = devlist[i];
sys/dev/pci/pci.c
4761
switch (pci_get_class(child)) {
sys/dev/pci/pci.c
4766
BUS_RESUME_CHILD(dev, child);
sys/dev/pci/pci.c
4771
child = devlist[i];
sys/dev/pci/pci.c
4772
switch (pci_get_class(child)) {
sys/dev/pci/pci.c
4779
BUS_RESUME_CHILD(dev, child);
sys/dev/pci/pci.c
4811
device_t child;
sys/dev/pci/pci.c
4821
child = devlist[i];
sys/dev/pci/pci.c
4822
if (device_get_state(child) != DS_NOTPRESENT)
sys/dev/pci/pci.c
4824
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
4828
pci_cfg_restore(child, dinfo);
sys/dev/pci/pci.c
4829
if (device_probe_and_attach(child) != 0)
sys/dev/pci/pci.c
4830
pci_child_detached(dev, child);
sys/dev/pci/pci.c
4836
pci_setup_intr(device_t dev, device_t child, struct resource *irq, int flags,
sys/dev/pci/pci.c
4847
error = bus_generic_setup_intr(dev, child, irq, flags, filter, intr,
sys/dev/pci/pci.c
4853
if (device_get_parent(child) != dev) {
sys/dev/pci/pci.c
4861
pci_clear_command_bit(dev, child, PCIM_CMD_INTxDIS);
sys/dev/pci/pci.c
4870
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
4876
child, rman_get_start(irq), &addr, &data);
sys/dev/pci/pci.c
4883
pci_enable_msi(child, dinfo->cfg.msi.msi_addr,
sys/dev/pci/pci.c
4900
child, rman_get_start(irq), &addr, &data);
sys/dev/pci/pci.c
4916
pci_enable_msix(child, rid - 1, mv->mv_address,
sys/dev/pci/pci.c
4918
pci_unmask_msix(child, rid - 1);
sys/dev/pci/pci.c
4927
if (!pci_has_quirk(pci_get_devid(child),
sys/dev/pci/pci.c
4929
pci_set_command_bit(dev, child, PCIM_CMD_INTxDIS);
sys/dev/pci/pci.c
4931
pci_clear_command_bit(dev, child, PCIM_CMD_INTxDIS);
sys/dev/pci/pci.c
4934
(void)bus_generic_teardown_intr(dev, child, irq,
sys/dev/pci/pci.c
4944
pci_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pci/pci.c
4956
if (device_get_parent(child) != dev)
sys/dev/pci/pci.c
4957
return(bus_generic_teardown_intr(dev, child, irq, cookie));
sys/dev/pci/pci.c
4962
pci_set_command_bit(dev, child, PCIM_CMD_INTxDIS);
sys/dev/pci/pci.c
4970
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
4981
pci_disable_msi(child);
sys/dev/pci/pci.c
4992
pci_mask_msix(child, rid - 1);
sys/dev/pci/pci.c
4995
error = bus_generic_teardown_intr(dev, child, irq, cookie);
sys/dev/pci/pci.c
5003
pci_print_child(device_t dev, device_t child)
sys/dev/pci/pci.c
5009
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5012
retval += bus_print_child_header(dev, child);
sys/dev/pci/pci.c
5020
retval += printf(" at device %d.%d", pci_get_slot(child),
sys/dev/pci/pci.c
5021
pci_get_function(child));
sys/dev/pci/pci.c
5023
retval += bus_print_child_domain(dev, child);
sys/dev/pci/pci.c
5024
retval += bus_print_child_footer(dev, child);
sys/dev/pci/pci.c
5129
pci_probe_nomatch(device_t dev, device_t child)
sys/dev/pci/pci.c
5139
if ((device = pci_describe_device(child)) != NULL) {
sys/dev/pci/pci.c
5150
if (pci_nomatch_tab[i].class == pci_get_class(child)) {
sys/dev/pci/pci.c
5155
pci_get_subclass(child)) {
sys/dev/pci/pci.c
5170
pci_get_slot(child), pci_get_function(child));
sys/dev/pci/pci.c
5172
pci_cfg_save(child, device_get_ivars(child), 1);
sys/dev/pci/pci.c
5176
pci_child_detached(device_t dev, device_t child)
sys/dev/pci/pci.c
5181
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5189
if (resource_list_release_active(rl, dev, child, SYS_RES_IRQ) != 0)
sys/dev/pci/pci.c
5198
(void)pci_release_msi(child);
sys/dev/pci/pci.c
5200
if (resource_list_release_active(rl, dev, child, SYS_RES_MEMORY) != 0)
sys/dev/pci/pci.c
5202
if (resource_list_release_active(rl, dev, child, SYS_RES_IOPORT) != 0)
sys/dev/pci/pci.c
5204
if (resource_list_release_active(rl, dev, child, PCI_RES_BUS) != 0)
sys/dev/pci/pci.c
5207
pci_cfg_save(child, dinfo, 1);
sys/dev/pci/pci.c
5338
pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/pci/pci.c
5343
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5429
pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/pci/pci.c
5433
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5511
pci_reserve_map(device_t dev, device_t child, int type, int rid,
sys/dev/pci/pci.c
5515
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5526
if (pci_ea_is_enabled(child, rid))
sys/dev/pci/pci.c
5529
pm = pci_find_bar(child, rid);
sys/dev/pci/pci.c
5543
pci_read_bar(child, rid, &map, &testval, NULL);
sys/dev/pci/pci.c
5555
pm = pci_add_bar(child, rid, map, mapsize);
sys/dev/pci/pci.c
5564
device_get_nameunit(child), type, rid);
sys/dev/pci/pci.c
5573
device_get_nameunit(child), type, rid);
sys/dev/pci/pci.c
5596
res = resource_list_reserve(rl, dev, child, type, rid, start, end,
sys/dev/pci/pci.c
5600
device_printf(child,
sys/dev/pci/pci.c
5606
device_printf(child,
sys/dev/pci/pci.c
5611
cmd = pci_read_config(child, PCIR_COMMAND, 2);
sys/dev/pci/pci.c
5612
pci_write_config(child, PCIR_COMMAND,
sys/dev/pci/pci.c
5616
pci_write_bar(child, pm, map);
sys/dev/pci/pci.c
5619
pci_write_config(child, PCIR_COMMAND, cmd, 2);
sys/dev/pci/pci.c
5625
pci_alloc_multi_resource(device_t dev, device_t child, int type, int rid,
sys/dev/pci/pci.c
5638
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5643
return (pci_alloc_secbus(dev, child, rid, start, end, count,
sys/dev/pci/pci.c
5661
pci_assign_interrupt(dev, child, 0);
sys/dev/pci/pci.c
5679
return (bus_generic_alloc_resource(dev, child,
sys/dev/pci/pci.c
5686
res = pci_reserve_map(dev, child, type, rid, start, end,
sys/dev/pci/pci.c
5692
return (resource_list_alloc(rl, dev, child, type, rid,
sys/dev/pci/pci.c
5697
pci_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/pci/pci.c
5704
if (device_get_parent(child) != dev)
sys/dev/pci/pci.c
5705
return (BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
sys/dev/pci/pci.c
5709
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5716
return (pci_vf_alloc_mem_resource(dev, child, rid,
sys/dev/pci/pci.c
5724
return (pci_alloc_multi_resource(dev, child, type, rid, start, end,
sys/dev/pci/pci.c
5729
pci_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci.c
5735
if (device_get_parent(child) != dev)
sys/dev/pci/pci.c
5736
return (bus_generic_release_resource(dev, child, r));
sys/dev/pci/pci.c
5738
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5748
return (pci_vf_release_mem_resource(dev, child, r));
sys/dev/pci/pci.c
5766
return (bus_generic_release_resource(dev, child, r));
sys/dev/pci/pci.c
5771
return (resource_list_release(rl, dev, child, r));
sys/dev/pci/pci.c
5775
pci_activate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci.c
5780
if (device_get_parent(child) != dev)
sys/dev/pci/pci.c
5781
return (bus_generic_activate_resource(dev, child, r));
sys/dev/pci/pci.c
5783
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5792
error = pci_vf_activate_mem_resource(dev, child, r);
sys/dev/pci/pci.c
5795
error = bus_generic_activate_resource(dev, child, r);
sys/dev/pci/pci.c
5800
error = bus_generic_activate_resource(dev, child, r);
sys/dev/pci/pci.c
5809
pci_write_bar(child, pci_find_bar(child, rid),
sys/dev/pci/pci.c
5816
error = PCI_ENABLE_IO(dev, child, type);
sys/dev/pci/pci.c
5823
pci_deactivate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci.c
5828
if (device_get_parent(child) != dev)
sys/dev/pci/pci.c
5829
return (bus_generic_deactivate_resource(dev, child, r));
sys/dev/pci/pci.c
5831
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5840
error = pci_vf_deactivate_mem_resource(dev, child, r);
sys/dev/pci/pci.c
5843
error = bus_generic_deactivate_resource(dev, child, r);
sys/dev/pci/pci.c
5848
error = bus_generic_deactivate_resource(dev, child, r);
sys/dev/pci/pci.c
5856
pci_write_bar(child, pci_find_bar(child, rid),
sys/dev/pci/pci.c
5862
pci_adjust_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci.c
5868
if (device_get_parent(child) != dev)
sys/dev/pci/pci.c
5869
return (bus_generic_adjust_resource(dev, child, r, start,
sys/dev/pci/pci.c
5872
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5879
return (pci_vf_adjust_mem_resource(dev, child, r,
sys/dev/pci/pci.c
5887
return (bus_generic_adjust_resource(dev, child, r, start, end));
sys/dev/pci/pci.c
5891
pci_map_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci.c
5897
if (device_get_parent(child) != dev)
sys/dev/pci/pci.c
5898
return (bus_generic_map_resource(dev, child, r, argsp,
sys/dev/pci/pci.c
5901
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5908
return (pci_vf_map_mem_resource(dev, child, r, argsp,
sys/dev/pci/pci.c
5916
return (bus_generic_map_resource(dev, child, r, argsp, map));
sys/dev/pci/pci.c
5920
pci_unmap_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci.c
5926
if (device_get_parent(child) != dev)
sys/dev/pci/pci.c
5927
return (bus_generic_unmap_resource(dev, child, r, map));
sys/dev/pci/pci.c
5929
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5936
return (pci_vf_unmap_mem_resource(dev, child, r, map));
sys/dev/pci/pci.c
5943
return (bus_generic_unmap_resource(dev, child, r, map));
sys/dev/pci/pci.c
5947
pci_child_deleted(device_t dev, device_t child)
sys/dev/pci/pci.c
5953
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
5956
EVENTHANDLER_INVOKE(pci_delete_device, child);
sys/dev/pci/pci.c
5959
if (bus_child_present(child) != 0) {
sys/dev/pci/pci.c
5960
pci_write_config(child, PCIR_COMMAND, pci_read_config(child,
sys/dev/pci/pci.c
5963
pci_disable_busmaster(child);
sys/dev/pci/pci.c
5976
bus_release_resource(child, rle->type, rle->rid,
sys/dev/pci/pci.c
5979
resource_list_unreserve(rl, dev, child, rle->type,
sys/dev/pci/pci.c
5989
pci_delete_resource(device_t dev, device_t child, int type, int rid)
sys/dev/pci/pci.c
5995
if (device_get_parent(child) != dev)
sys/dev/pci/pci.c
5998
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
6013
resource_list_unreserve(rl, dev, child, type, rid);
sys/dev/pci/pci.c
6019
pci_get_resource_list (device_t dev, device_t child)
sys/dev/pci/pci.c
6021
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
6055
pci_read_config_method(device_t dev, device_t child, int reg, int width)
sys/dev/pci/pci.c
6057
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
6096
pci_write_config_method(device_t dev, device_t child, int reg,
sys/dev/pci/pci.c
6099
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
6107
pci_child_location_method(device_t dev, device_t child, struct sbuf *sb)
sys/dev/pci/pci.c
6111
pci_get_slot(child), pci_get_function(child), pci_get_domain(child),
sys/dev/pci/pci.c
6112
pci_get_bus(child), pci_get_slot(child), pci_get_function(child));
sys/dev/pci/pci.c
6117
pci_child_pnpinfo_method(device_t dev, device_t child, struct sbuf *sb)
sys/dev/pci/pci.c
6122
dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
6132
pci_get_device_path_method(device_t bus, device_t child, const char *locator,
sys/dev/pci/pci.c
6141
sbuf_printf(sb, "/Pci(0x%x,0x%x)", pci_get_slot(child),
sys/dev/pci/pci.c
6142
pci_get_function(child));
sys/dev/pci/pci.c
6146
return (bus_generic_get_device_path(bus, child, locator, sb));
sys/dev/pci/pci.c
6150
pci_assign_interrupt_method(device_t dev, device_t child)
sys/dev/pci/pci.c
6152
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci.c
6155
return (PCIB_ROUTE_INTERRUPT(device_get_parent(dev), child,
sys/dev/pci/pci.c
6526
pci_get_id_method(device_t dev, device_t child, enum pci_id_type type,
sys/dev/pci/pci.c
6530
return (PCIB_GET_ID(device_get_parent(dev), child, type, id));
sys/dev/pci/pci.c
6842
pci_reset_post(device_t dev, device_t child)
sys/dev/pci/pci.c
6845
if (dev == device_get_parent(child))
sys/dev/pci/pci.c
6846
pci_restore_state(child);
sys/dev/pci/pci.c
6851
pci_reset_prepare(device_t dev, device_t child)
sys/dev/pci/pci.c
6854
if (dev == device_get_parent(child))
sys/dev/pci/pci.c
6855
pci_save_state(child);
sys/dev/pci/pci.c
6860
pci_reset_child(device_t dev, device_t child, int flags)
sys/dev/pci/pci.c
6864
if (dev == NULL || device_get_parent(child) != dev)
sys/dev/pci/pci.c
6867
error = device_get_state(child) == DS_ATTACHED ?
sys/dev/pci/pci.c
6868
device_detach(child) : 0;
sys/dev/pci/pci.c
6870
error = BUS_SUSPEND_CHILD(dev, child);
sys/dev/pci/pci.c
6873
if (!pcie_flr(child, 1000, false)) {
sys/dev/pci/pci.c
6874
error = BUS_RESET_PREPARE(dev, child);
sys/dev/pci/pci.c
6876
pci_power_reset(child);
sys/dev/pci/pci.c
6877
BUS_RESET_POST(dev, child);
sys/dev/pci/pci.c
6880
device_probe_and_attach(child);
sys/dev/pci/pci.c
6882
BUS_RESUME_CHILD(dev, child);
sys/dev/pci/pci.c
6888
pci_match_device(device_t child, const struct pci_device_table *id, size_t nelt)
sys/dev/pci/pci.c
6893
vendor = pci_get_vendor(child);
sys/dev/pci/pci.c
6894
device = pci_get_device(child);
sys/dev/pci/pci.c
6895
subvendor = pci_get_subvendor(child);
sys/dev/pci/pci.c
6896
subdevice = pci_get_subdevice(child);
sys/dev/pci/pci.c
6897
class = pci_get_class(child);
sys/dev/pci/pci.c
6898
subclass = pci_get_subclass(child);
sys/dev/pci/pci.c
6899
revid = pci_get_revid(child);
sys/dev/pci/pci_dw.c
611
pci_dw_alloc_msi(device_t pci, device_t child, int count,
sys/dev/pci/pci_dw.c
617
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_dw.c
622
return (intr_alloc_msi(pci, child, msi_parent, count, maxcount,
sys/dev/pci/pci_dw.c
627
pci_dw_release_msi(device_t pci, device_t child, int count, int *irqs)
sys/dev/pci/pci_dw.c
632
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_dw.c
636
return (intr_release_msi(pci, child, msi_parent, count, irqs));
sys/dev/pci/pci_dw.c
640
pci_dw_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
sys/dev/pci/pci_dw.c
646
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_dw.c
651
return (intr_map_msi(pci, child, msi_parent, irq, addr, data));
sys/dev/pci/pci_dw.c
655
pci_dw_alloc_msix(device_t pci, device_t child, int *irq)
sys/dev/pci/pci_dw.c
660
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_dw.c
664
return (intr_alloc_msix(pci, child, msi_parent, irq));
sys/dev/pci/pci_dw.c
668
pci_dw_release_msix(device_t pci, device_t child, int irq)
sys/dev/pci/pci_dw.c
673
rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_dw.c
677
return (intr_release_msix(pci, child, msi_parent, irq));
sys/dev/pci/pci_dw.c
681
pci_dw_get_id(device_t pci, device_t child, enum pci_id_type type,
sys/dev/pci/pci_dw.c
690
return (pcib_get_id(pci, child, type, id));
sys/dev/pci/pci_dw.c
693
pci_rid = pci_get_rid(child);
sys/dev/pci/pci_dw.c
708
pci_dw_get_dma_tag(device_t dev, device_t child)
sys/dev/pci/pci_host_generic.c
371
generic_pcie_read_ivar(device_t dev, device_t child, int index,
sys/dev/pci/pci_host_generic.c
392
generic_pcie_write_ivar(device_t dev, device_t child, int index,
sys/dev/pci/pci_host_generic.c
419
pci_host_generic_core_release_resource(device_t dev, device_t child,
sys/dev/pci/pci_host_generic.c
427
return (pci_domain_release_bus(sc->ecam, child, res));
sys/dev/pci/pci_host_generic.c
430
return (bus_generic_rman_release_resource(dev, child, res));
sys/dev/pci/pci_host_generic.c
432
return (bus_generic_release_resource(dev, child, res));
sys/dev/pci/pci_host_generic.c
505
pci_host_generic_core_alloc_resource(device_t dev, device_t child, int type,
sys/dev/pci/pci_host_generic.c
515
res = pci_domain_alloc_bus(sc->ecam, child, rid, start, end,
sys/dev/pci/pci_host_generic.c
520
res = bus_generic_rman_alloc_resource(dev, child, type, rid,
sys/dev/pci/pci_host_generic.c
524
res = bus_generic_alloc_resource(dev, child, type, rid, start,
sys/dev/pci/pci_host_generic.c
537
generic_pcie_activate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci_host_generic.c
544
return (pci_domain_activate_bus(sc->ecam, child, r));
sys/dev/pci/pci_host_generic.c
547
return (bus_generic_rman_activate_resource(dev, child, r));
sys/dev/pci/pci_host_generic.c
549
return (bus_generic_activate_resource(dev, child, r));
sys/dev/pci/pci_host_generic.c
554
generic_pcie_deactivate_resource(device_t dev, device_t child,
sys/dev/pci/pci_host_generic.c
562
return (pci_domain_deactivate_bus(sc->ecam, child, r));
sys/dev/pci/pci_host_generic.c
565
return (bus_generic_rman_deactivate_resource(dev, child, r));
sys/dev/pci/pci_host_generic.c
567
return (bus_generic_deactivate_resource(dev, child, r));
sys/dev/pci/pci_host_generic.c
572
generic_pcie_adjust_resource(device_t dev, device_t child,
sys/dev/pci/pci_host_generic.c
580
return (pci_domain_adjust_bus(sc->ecam, child, res, start,
sys/dev/pci/pci_host_generic.c
584
return (bus_generic_rman_adjust_resource(dev, child, res,
sys/dev/pci/pci_host_generic.c
587
return (bus_generic_adjust_resource(dev, child, res, start,
sys/dev/pci/pci_host_generic.c
593
generic_pcie_map_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci_host_generic.c
609
return (bus_generic_map_resource(dev, child, r, argsp, map));
sys/dev/pci/pci_host_generic.c
632
generic_pcie_unmap_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci_host_generic.c
646
return (bus_generic_unmap_resource(dev, child, r, map));
sys/dev/pci/pci_host_generic.c
657
generic_pcie_get_dma_tag(device_t dev, device_t child)
sys/dev/pci/pci_host_generic.c
76
static int generic_pcie_write_ivar(device_t dev, device_t child, int index,
sys/dev/pci/pci_host_generic_acpi.c
347
generic_pcie_acpi_read_ivar(device_t dev, device_t child, int index,
sys/dev/pci/pci_host_generic_acpi.c
359
return (generic_pcie_read_ivar(dev, child, index, result));
sys/dev/pci/pci_host_generic_acpi.c
372
generic_pcie_get_xref(device_t pci, device_t child)
sys/dev/pci/pci_host_generic_acpi.c
380
err = pcib_get_id(pci, child, PCI_ID_RID, &rid);
sys/dev/pci/pci_host_generic_acpi.c
390
generic_pcie_map_id(device_t pci, device_t child, uintptr_t *id)
sys/dev/pci/pci_host_generic_acpi.c
398
err = pcib_get_id(pci, child, PCI_ID_RID, &rid);
sys/dev/pci/pci_host_generic_acpi.c
410
generic_pcie_get_iommu(device_t pci, device_t child, uintptr_t *id)
sys/dev/pci/pci_host_generic_acpi.c
422
err = pcib_get_id(pci, child, PCI_ID_RID, &rid);
sys/dev/pci/pci_host_generic_acpi.c
436
generic_pcie_acpi_alloc_msi(device_t pci, device_t child, int count,
sys/dev/pci/pci_host_generic_acpi.c
441
return (intr_alloc_msi(pci, child, generic_pcie_get_xref(pci, child),
sys/dev/pci/pci_host_generic_acpi.c
449
generic_pcie_acpi_release_msi(device_t pci, device_t child, int count,
sys/dev/pci/pci_host_generic_acpi.c
454
return (intr_release_msi(pci, child, generic_pcie_get_xref(pci, child),
sys/dev/pci/pci_host_generic_acpi.c
462
generic_pcie_acpi_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
sys/dev/pci/pci_host_generic_acpi.c
467
return (intr_map_msi(pci, child, generic_pcie_get_xref(pci, child), irq,
sys/dev/pci/pci_host_generic_acpi.c
475
generic_pcie_acpi_alloc_msix(device_t pci, device_t child, int *irq)
sys/dev/pci/pci_host_generic_acpi.c
479
return (intr_alloc_msix(pci, child, generic_pcie_get_xref(pci, child),
sys/dev/pci/pci_host_generic_acpi.c
487
generic_pcie_acpi_release_msix(device_t pci, device_t child, int irq)
sys/dev/pci/pci_host_generic_acpi.c
491
return (intr_release_msix(pci, child, generic_pcie_get_xref(pci, child),
sys/dev/pci/pci_host_generic_acpi.c
499
generic_pcie_acpi_get_id(device_t pci, device_t child, enum pci_id_type type,
sys/dev/pci/pci_host_generic_acpi.c
503
return (generic_pcie_get_iommu(pci, child, id));
sys/dev/pci/pci_host_generic_acpi.c
506
return (generic_pcie_map_id(pci, child, id));
sys/dev/pci/pci_host_generic_acpi.c
508
return (pcib_get_id(pci, child, type, id));
sys/dev/pci/pci_host_generic_fdt.c
278
generic_pcie_fdt_alloc_msi(device_t pci, device_t child, int count,
sys/dev/pci/pci_host_generic_fdt.c
285
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_host_generic_fdt.c
289
return (intr_alloc_msi(pci, child, msi_parent, count, maxcount,
sys/dev/pci/pci_host_generic_fdt.c
297
generic_pcie_fdt_release_msi(device_t pci, device_t child, int count, int *irqs)
sys/dev/pci/pci_host_generic_fdt.c
303
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_host_generic_fdt.c
307
return (intr_release_msi(pci, child, msi_parent, count, irqs));
sys/dev/pci/pci_host_generic_fdt.c
314
generic_pcie_fdt_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
sys/dev/pci/pci_host_generic_fdt.c
321
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_host_generic_fdt.c
325
return (intr_map_msi(pci, child, msi_parent, irq, addr, data));
sys/dev/pci/pci_host_generic_fdt.c
332
generic_pcie_fdt_alloc_msix(device_t pci, device_t child, int *irq)
sys/dev/pci/pci_host_generic_fdt.c
338
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_host_generic_fdt.c
342
return (intr_alloc_msix(pci, child, msi_parent, irq));
sys/dev/pci/pci_host_generic_fdt.c
349
generic_pcie_fdt_release_msix(device_t pci, device_t child, int irq)
sys/dev/pci/pci_host_generic_fdt.c
355
err = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
sys/dev/pci/pci_host_generic_fdt.c
359
return (intr_release_msix(pci, child, msi_parent, irq));
sys/dev/pci/pci_host_generic_fdt.c
366
generic_pcie_get_iommu(device_t pci, device_t child, uintptr_t *id)
sys/dev/pci/pci_host_generic_fdt.c
376
pci_rid = pci_get_rid(child);
sys/dev/pci/pci_host_generic_fdt.c
390
generic_pcie_get_id(device_t pci, device_t child, enum pci_id_type type,
sys/dev/pci/pci_host_generic_fdt.c
399
return (generic_pcie_get_iommu(pci, child, id));
sys/dev/pci/pci_host_generic_fdt.c
402
return (pcib_get_id(pci, child, type, id));
sys/dev/pci/pci_host_generic_fdt.c
405
pci_rid = pci_get_rid(child);
sys/dev/pci/pci_host_generic_fdt.c
416
generic_pcie_ofw_get_devinfo(device_t bus, device_t child)
sys/dev/pci/pci_host_generic_fdt.c
423
slot = pci_get_slot(child);
sys/dev/pci/pci_host_generic_fdt.c
424
func = pci_get_function(child);
sys/dev/pci/pci_host_generic_fdt.c
425
busno = pci_get_bus(child);
sys/dev/pci/pci_iov.c
1030
pci_vf_alloc_mem_resource(device_t dev, device_t child, int rid,
sys/dev/pci/pci_iov.c
1042
dinfo = device_get_ivars(child);
sys/dev/pci/pci_iov.c
1045
map = pci_find_bar(child, rid);
sys/dev/pci/pci_iov.c
1065
bar_length, flags, child);
sys/dev/pci/pci_iov.c
1080
error = bus_activate_resource(child, SYS_RES_MEMORY, rid, res);
sys/dev/pci/pci_iov.c
1094
pci_vf_release_mem_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci_iov.c
1100
dinfo = device_get_ivars(child);
sys/dev/pci/pci_iov.c
1109
error = bus_deactivate_resource(child, r);
sys/dev/pci/pci_iov.c
1126
pci_vf_activate_mem_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci_iov.c
1129
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci_iov.c
1145
error = BUS_MAP_RESOURCE(dev, child, r, NULL, &map);
sys/dev/pci/pci_iov.c
1157
pci_vf_deactivate_mem_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci_iov.c
1160
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci_iov.c
1177
BUS_UNMAP_RESOURCE(dev, child, r, &map);
sys/dev/pci/pci_iov.c
1183
pci_vf_adjust_mem_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci_iov.c
1187
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci_iov.c
1216
pci_vf_map_mem_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci_iov.c
1219
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci_iov.c
1251
pci_vf_unmap_mem_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci_iov.c
1254
struct pci_devinfo *dinfo = device_get_ivars(child);
sys/dev/pci/pci_iov.c
849
pci_iov_is_child_vf(struct pcicfg_iov *pf, device_t child)
sys/dev/pci/pci_iov.c
853
vfinfo = device_get_ivars(child);
sys/dev/pci/pci_pci.c
1062
(pcib_hotplug_present(sc) != 0) != (sc->child != NULL))
sys/dev/pci/pci_pci.c
1143
if (sc->child == NULL) {
sys/dev/pci/pci_pci.c
1144
sc->child = device_add_child(dev, "pci", DEVICE_UNIT_ANY);
sys/dev/pci/pci_pci.c
1148
if (sc->child != NULL) {
sys/dev/pci/pci_pci.c
1149
if (device_delete_child(dev, sc->child) == 0)
sys/dev/pci/pci_pci.c
1150
sc->child = NULL;
sys/dev/pci/pci_pci.c
1564
sc->child = device_add_child(dev, "pci", DEVICE_UNIT_ANY);
sys/dev/pci/pci_pci.c
1632
pcib_child_present(device_t dev, device_t child)
sys/dev/pci/pci_pci.c
1648
pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/pci/pci_pci.c
1664
pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/pci/pci_pci.c
1682
device_t child, int type, int rid, rman_res_t start, rman_res_t end,
sys/dev/pci/pci_pci.c
1691
flags & ~RF_ACTIVE, child);
sys/dev/pci/pci_pci.c
1699
pcib_child_name(child));
sys/dev/pci/pci_pci.c
1704
if (bus_activate_resource(child, type, rid, res) != 0) {
sys/dev/pci/pci_pci.c
2053
pcib_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/pci/pci_pci.c
2069
return (bus_generic_alloc_resource(dev, child, type,
sys/dev/pci/pci_pci.c
2077
return (pcib_alloc_subbus(&sc->bus, child, rid, start, end,
sys/dev/pci/pci_pci.c
2082
r = pcib_suballoc_resource(sc, &sc->io, child, type, rid, start,
sys/dev/pci/pci_pci.c
2088
r = pcib_suballoc_resource(sc, &sc->io, child, type,
sys/dev/pci/pci_pci.c
2101
r = pcib_suballoc_resource(sc, &sc->pmem, child, type,
sys/dev/pci/pci_pci.c
2106
r = pcib_suballoc_resource(sc, &sc->mem, child, type, rid,
sys/dev/pci/pci_pci.c
2113
r = pcib_suballoc_resource(sc, &sc->pmem, child,
sys/dev/pci/pci_pci.c
2121
r = pcib_suballoc_resource(sc, &sc->mem, child, type,
sys/dev/pci/pci_pci.c
2125
return (bus_generic_alloc_resource(dev, child, type, rid,
sys/dev/pci/pci_pci.c
2134
return (bus_generic_alloc_resource(dev, child, type, rid,
sys/dev/pci/pci_pci.c
2140
pcib_adjust_resource(device_t bus, device_t child, struct resource *r,
sys/dev/pci/pci_pci.c
2156
return (bus_generic_adjust_resource(bus, child, r, start, end));
sys/dev/pci/pci_pci.c
2205
pcib_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci_pci.c
2213
error = bus_deactivate_resource(child, r);
sys/dev/pci/pci_pci.c
2219
return (bus_generic_release_resource(dev, child, r));
sys/dev/pci/pci_pci.c
2223
pcib_activate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci_pci.c
2230
return (bus_generic_activate_resource(dev, child, r));
sys/dev/pci/pci_pci.c
2239
error = BUS_MAP_RESOURCE(dev, child, r, NULL, &map);
sys/dev/pci/pci_pci.c
2251
pcib_deactivate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/pci_pci.c
2258
return (bus_generic_deactivate_resource(dev, child, r));
sys/dev/pci/pci_pci.c
2268
BUS_UNMAP_RESOURCE(dev, child, r, &map);
sys/dev/pci/pci_pci.c
2285
pcib_map_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci_pci.c
2297
return (bus_generic_map_resource(dev, child, r, argsp, map));
sys/dev/pci/pci_pci.c
2318
pcib_unmap_resource(device_t dev, device_t child, struct resource *r,
sys/dev/pci/pci_pci.c
2327
return (bus_generic_unmap_resource(dev, child, r, map));
sys/dev/pci/pci_pci.c
2740
pcib_reset_child(device_t dev, device_t child, int flags)
sys/dev/pci/pci_pci.c
2746
if (dev == NULL || device_get_parent(child) != dev)
sys/dev/pci/pci_pci.c
2749
if (device_get_devclass(child) != devclass_find("pci"))
sys/dev/pci/pci_pci.c
2755
error = bus_helper_reset_prepare(child, flags);
sys/dev/pci/pci_pci.c
2760
bus_helper_reset_post(child, flags);
sys/dev/pci/pci_pci.c
71
static int pcib_reset_child(device_t dev, device_t child, int flags);
sys/dev/pci/pci_pci.c
716
pcib_suballoc_bus(struct pcib_secbus *bus, device_t child, int rid,
sys/dev/pci/pci_pci.c
722
child);
sys/dev/pci/pci_pci.c
730
pcib_child_name(child));
sys/dev/pci/pci_pci.c
766
pcib_alloc_subbus(struct pcib_secbus *bus, device_t child, int rid,
sys/dev/pci/pci_pci.c
776
res = pcib_suballoc_bus(bus, child, rid, start, end, count, flags);
sys/dev/pci/pci_pci.c
807
return (pcib_suballoc_bus(bus, child, rid, start, end, count,
sys/dev/pci/pci_private.h
149
struct resource *pci_reserve_map(device_t dev, device_t child, int type,
sys/dev/pci/pci_private.h
153
struct resource *pci_alloc_multi_resource(device_t dev, device_t child,
sys/dev/pci/pci_private.h
157
struct resource *pci_vf_alloc_mem_resource(device_t dev, device_t child,
sys/dev/pci/pci_private.h
160
int pci_vf_release_mem_resource(device_t dev, device_t child,
sys/dev/pci/pci_private.h
162
int pci_vf_activate_mem_resource(device_t dev, device_t child,
sys/dev/pci/pci_private.h
164
int pci_vf_deactivate_mem_resource(device_t dev, device_t child,
sys/dev/pci/pci_private.h
166
int pci_vf_adjust_mem_resource(device_t dev, device_t child,
sys/dev/pci/pci_private.h
168
int pci_vf_map_mem_resource(device_t dev, device_t child,
sys/dev/pci/pci_private.h
171
int pci_vf_unmap_mem_resource(device_t dev, device_t child,
sys/dev/pci/pci_subr.c
140
pcib_child_name(device_t child)
sys/dev/pci/pci_subr.c
144
if (device_get_nameunit(child) != NULL)
sys/dev/pci/pci_subr.c
145
return (device_get_nameunit(child));
sys/dev/pci/pci_subr.c
146
snprintf(buf, sizeof(buf), "pci%d:%d:%d:%d", pci_get_domain(child),
sys/dev/pci/pci_subr.c
147
pci_get_bus(child), pci_get_slot(child), pci_get_function(child));
sys/dev/pci/pcib_private.h
100
device_t child;
sys/dev/pci/pcib_private.h
151
struct resource *pcib_alloc_subbus(struct pcib_secbus *bus, device_t child,
sys/dev/pci/pcib_private.h
161
const char *pcib_child_name(device_t child);
sys/dev/pci/pcib_private.h
163
int pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result);
sys/dev/pci/pcib_private.h
164
int pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value);
sys/dev/pci/pcivar.h
323
const struct pci_device_table *pci_match_device(device_t child,
sys/dev/pci/pcivar.h
325
#define PCI_MATCH(child, table) \
sys/dev/pci/pcivar.h
326
pci_match_device(child, (table), nitems(table));
sys/dev/pci/vga_pci.c
384
vga_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/pci/vga_pci.c
391
vga_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/pci/vga_pci.c
398
vga_pci_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pci/vga_pci.c
407
vga_pci_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/pci/vga_pci.c
427
vga_pci_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/pci/vga_pci.c
453
vga_pci_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/pci/vga_pci.c
491
vga_pci_read_config(device_t dev, device_t child, int reg, int width)
sys/dev/pci/vga_pci.c
498
vga_pci_write_config(device_t dev, device_t child, int reg,
sys/dev/pci/vga_pci.c
506
vga_pci_enable_busmaster(device_t dev, device_t child)
sys/dev/pci/vga_pci.c
513
vga_pci_disable_busmaster(device_t dev, device_t child)
sys/dev/pci/vga_pci.c
520
vga_pci_enable_io(device_t dev, device_t child, int space)
sys/dev/pci/vga_pci.c
524
device_get_nameunit(child));
sys/dev/pci/vga_pci.c
529
vga_pci_disable_io(device_t dev, device_t child, int space)
sys/dev/pci/vga_pci.c
533
device_get_nameunit(child));
sys/dev/pci/vga_pci.c
538
vga_pci_get_vpd_ident(device_t dev, device_t child, const char **identptr)
sys/dev/pci/vga_pci.c
545
vga_pci_get_vpd_readonly(device_t dev, device_t child, const char *kw,
sys/dev/pci/vga_pci.c
553
vga_pci_set_powerstate(device_t dev, device_t child, int state)
sys/dev/pci/vga_pci.c
557
device_get_nameunit(child));
sys/dev/pci/vga_pci.c
562
vga_pci_get_powerstate(device_t dev, device_t child)
sys/dev/pci/vga_pci.c
566
device_get_nameunit(child));
sys/dev/pci/vga_pci.c
571
vga_pci_assign_interrupt(device_t dev, device_t child)
sys/dev/pci/vga_pci.c
575
device_get_nameunit(child));
sys/dev/pci/vga_pci.c
580
vga_pci_find_cap(device_t dev, device_t child, int capability,
sys/dev/pci/vga_pci.c
588
vga_pci_find_next_cap(device_t dev, device_t child, int capability,
sys/dev/pci/vga_pci.c
596
vga_pci_find_extcap(device_t dev, device_t child, int capability,
sys/dev/pci/vga_pci.c
604
vga_pci_find_next_extcap(device_t dev, device_t child, int capability,
sys/dev/pci/vga_pci.c
612
vga_pci_find_htcap(device_t dev, device_t child, int capability,
sys/dev/pci/vga_pci.c
620
vga_pci_find_next_htcap(device_t dev, device_t child, int capability,
sys/dev/pci/vga_pci.c
628
vga_pci_alloc_msi(device_t dev, device_t child, int *count)
sys/dev/pci/vga_pci.c
638
sc->vga_msi_child = child;
sys/dev/pci/vga_pci.c
643
vga_pci_alloc_msix(device_t dev, device_t child, int *count)
sys/dev/pci/vga_pci.c
653
sc->vga_msi_child = child;
sys/dev/pci/vga_pci.c
658
vga_pci_remap_msix(device_t dev, device_t child, int count,
sys/dev/pci/vga_pci.c
664
if (sc->vga_msi_child != child)
sys/dev/pci/vga_pci.c
670
vga_pci_release_msi(device_t dev, device_t child)
sys/dev/pci/vga_pci.c
676
if (sc->vga_msi_child != child)
sys/dev/pci/vga_pci.c
685
vga_pci_msi_count(device_t dev, device_t child)
sys/dev/pci/vga_pci.c
69
static struct resource *vga_pci_alloc_resource(device_t dev, device_t child,
sys/dev/pci/vga_pci.c
692
vga_pci_msix_count(device_t dev, device_t child)
sys/dev/pci/vga_pci.c
699
vga_pci_get_dma_tag(device_t bus, device_t child)
sys/dev/pci/vga_pci.c
72
static int vga_pci_release_resource(device_t dev, device_t child,
sys/dev/ppbus/ppbconf.c
109
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/ppbus/ppbconf.c
110
device_set_ivars(child, ppbdev);
sys/dev/ppbus/ppbconf.c
112
return (child);
sys/dev/ppbus/ppbconf.c
441
ppbus_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
sys/dev/ppbus/ppbconf.c
444
struct ppb_device *ppbdev = device_get_ivars(child);
sys/dev/ppbus/ppbconf.c
465
ppbus_teardown_intr(device_t bus, device_t child, struct resource *r, void *ih)
sys/dev/ppbus/ppbconf.c
467
struct ppb_device *ppbdev = device_get_ivars(child);
sys/dev/ppbus/ppbconf.c
96
device_t child;
sys/dev/ppc/ppc.c
1967
ppc_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/ppc/ppc.c
1982
ppc_release_resource(device_t bus, device_t child, struct resource *r)
sys/dev/ppc/ppcvar.h
43
struct resource *ppc_alloc_resource(device_t bus, device_t child, int type,
sys/dev/ppc/ppcvar.h
45
int ppc_release_resource(device_t bus, device_t child, struct resource *r);
sys/dev/pst/pst-raid.c
102
device_set_softc(child, psc);
sys/dev/pst/pst-raid.c
103
return device_probe_and_attach(child);
sys/dev/pst/pst-raid.c
91
device_t child = device_add_child(sc->dev, "pst", DEVICE_UNIT_ANY);
sys/dev/pst/pst-raid.c
93
if (!child)
sys/dev/pst/pst-raid.c
97
device_delete_child(sc->dev, child);
sys/dev/puc/puc.c
472
puc_bus_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/puc/puc.c
481
originator = child;
sys/dev/puc/puc.c
482
while (child != NULL && device_get_parent(child) != dev)
sys/dev/puc/puc.c
483
child = device_get_parent(child);
sys/dev/puc/puc.c
484
if (child == NULL)
sys/dev/puc/puc.c
487
port = device_get_ivars(child);
sys/dev/puc/puc.c
526
puc_bus_release_resource(device_t dev, device_t child, struct resource *res)
sys/dev/puc/puc.c
532
originator = child;
sys/dev/puc/puc.c
533
while (child != NULL && device_get_parent(child) != dev)
sys/dev/puc/puc.c
534
child = device_get_parent(child);
sys/dev/puc/puc.c
535
if (child == NULL)
sys/dev/puc/puc.c
538
port = device_get_ivars(child);
sys/dev/puc/puc.c
559
puc_bus_get_resource(device_t dev, device_t child, int type, int rid,
sys/dev/puc/puc.c
567
while (child != NULL && device_get_parent(child) != dev)
sys/dev/puc/puc.c
568
child = device_get_parent(child);
sys/dev/puc/puc.c
569
if (child == NULL)
sys/dev/puc/puc.c
572
port = device_get_ivars(child);
sys/dev/puc/puc.c
594
puc_bus_setup_intr(device_t dev, device_t child, struct resource *res,
sys/dev/puc/puc.c
605
originator = child;
sys/dev/puc/puc.c
606
while (child != NULL && device_get_parent(child) != dev)
sys/dev/puc/puc.c
607
child = device_get_parent(child);
sys/dev/puc/puc.c
608
if (child == NULL)
sys/dev/puc/puc.c
611
port = device_get_ivars(child);
sys/dev/puc/puc.c
651
puc_bus_teardown_intr(device_t dev, device_t child, struct resource *res,
sys/dev/puc/puc.c
662
originator = child;
sys/dev/puc/puc.c
663
while (child != NULL && device_get_parent(child) != dev)
sys/dev/puc/puc.c
664
child = device_get_parent(child);
sys/dev/puc/puc.c
665
if (child == NULL)
sys/dev/puc/puc.c
668
port = device_get_ivars(child);
sys/dev/puc/puc.c
693
puc_bus_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/puc/puc.c
698
while (child != NULL && device_get_parent(child) != dev)
sys/dev/puc/puc.c
699
child = device_get_parent(child);
sys/dev/puc/puc.c
700
if (child == NULL)
sys/dev/puc/puc.c
703
port = device_get_ivars(child);
sys/dev/puc/puc.c
723
puc_bus_print_child(device_t dev, device_t child)
sys/dev/puc/puc.c
728
port = device_get_ivars(child);
sys/dev/puc/puc.c
731
retval += bus_print_child_header(dev, child);
sys/dev/puc/puc.c
733
retval += bus_print_child_footer(dev, child);
sys/dev/puc/puc.c
739
puc_bus_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/puc/puc.c
743
port = device_get_ivars(child);
sys/dev/puc/puc.c
749
puc_bus_child_pnpinfo(device_t dev, device_t child, struct sbuf *sb)
sys/dev/puc/puc.c
753
port = device_get_ivars(child);
sys/dev/pwm/ofw_pwmbus.c
121
device_t child, parent;
sys/dev/pwm/ofw_pwmbus.c
153
if ((child = ofw_pwmbus_add_child(dev, 0, NULL,
sys/dev/pwm/ofw_pwmbus.c
157
ivars = device_get_ivars(child);
sys/dev/pwm/ofw_pwmbus.c
162
device_delete_child(dev, child);
sys/dev/pwm/ofw_pwmbus.c
177
child = ofw_pwmbus_add_child(dev, 0, "pwmc",
sys/dev/pwm/ofw_pwmbus.c
179
if (child == NULL) {
sys/dev/pwm/ofw_pwmbus.c
184
ivars = device_get_ivars(child);
sys/dev/pwm/ofw_pwmbus.c
59
device_t child;
sys/dev/pwm/ofw_pwmbus.c
67
if ((child = device_add_child_ordered(dev, order, name, unit)) == NULL) {
sys/dev/pwm/ofw_pwmbus.c
73
device_set_ivars(child, ivars);
sys/dev/pwm/ofw_pwmbus.c
75
return (child);
sys/dev/pwm/ofw_pwmbus.c
79
ofw_pwmbus_child_deleted(device_t dev, device_t child)
sys/dev/pwm/ofw_pwmbus.c
83
ivars = device_get_ivars(child);
sys/dev/pwm/pwmbus.c
103
ivars = device_get_ivars(child);
sys/dev/pwm/pwmbus.c
105
rv = bus_print_child_header(dev, child);
sys/dev/pwm/pwmbus.c
107
rv += bus_print_child_footer(dev, child);
sys/dev/pwm/pwmbus.c
113
pwmbus_probe_nomatch(device_t dev, device_t child)
sys/dev/pwm/pwmbus.c
117
ivars = device_get_ivars(child);
sys/dev/pwm/pwmbus.c
126
pwmbus_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/pwm/pwmbus.c
130
ivars = device_get_ivars(child);
sys/dev/pwm/pwmbus.c
159
device_t child, parent;
sys/dev/pwm/pwmbus.c
175
if ((child = pwmbus_add_child(sc->dev, 0, "pwmc", -1)) == NULL) {
sys/dev/pwm/pwmbus.c
180
ivars = device_get_ivars(child);
sys/dev/pwm/pwmbus.c
52
device_t child;
sys/dev/pwm/pwmbus.c
55
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/pwm/pwmbus.c
56
if (child == NULL)
sys/dev/pwm/pwmbus.c
57
return (child);
sys/dev/pwm/pwmbus.c
61
device_delete_child(dev, child);
sys/dev/pwm/pwmbus.c
64
device_set_ivars(child, ivars);
sys/dev/pwm/pwmbus.c
66
return (child);
sys/dev/pwm/pwmbus.c
70
pwmbus_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/pwm/pwmbus.c
74
ivars = device_get_ivars(child);
sys/dev/pwm/pwmbus.c
85
device_t child;
sys/dev/pwm/pwmbus.c
87
child = pwmbus_add_child(dev, 0, dname, dunit);
sys/dev/pwm/pwmbus.c
93
ivars = device_get_ivars(child);
sys/dev/pwm/pwmbus.c
98
pwmbus_print_child(device_t dev, device_t child)
sys/dev/qcom_dwc3/qcom_dwc3.c
153
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/qcom_dwc3/qcom_dwc3.c
154
cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/qcom_dwc3/qcom_dwc3.c
92
phandle_t node, child;
sys/dev/qcom_qup/qcom_spi.c
708
qcom_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/dev/qcom_qup/qcom_spi.c
714
spibus_get_cs(child, &cs_val);
sys/dev/qcom_qup/qcom_spi.c
715
spibus_get_clock(child, &clock_val);
sys/dev/qcom_qup/qcom_spi.c
716
spibus_get_mode(child, &mode_val);
sys/dev/quicc/quicc_core.c
254
quicc_bus_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/quicc/quicc_core.c
260
if (device_get_parent(child) != dev)
sys/dev/quicc/quicc_core.c
267
qd = device_get_ivars(child);
sys/dev/quicc/quicc_core.c
274
rle->start + rle->count - 1, rle->count, flags, child);
sys/dev/quicc/quicc_core.c
284
quicc_bus_get_resource(device_t dev, device_t child, int type, int rid,
sys/dev/quicc/quicc_core.c
290
if (device_get_parent(child) != dev)
sys/dev/quicc/quicc_core.c
293
qd = device_get_ivars(child);
sys/dev/quicc/quicc_core.c
306
quicc_bus_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/quicc/quicc_core.c
312
if (device_get_parent(child) != dev)
sys/dev/quicc/quicc_core.c
316
qd = device_get_ivars(child);
sys/dev/quicc/quicc_core.c
336
quicc_bus_release_resource(device_t dev, device_t child, struct resource *res)
sys/dev/quicc/quicc_core.c
341
if (device_get_parent(child) != dev)
sys/dev/quicc/quicc_core.c
344
qd = device_get_ivars(child);
sys/dev/quicc/quicc_core.c
351
quicc_bus_setup_intr(device_t dev, device_t child, struct resource *r,
sys/dev/quicc/quicc_core.c
358
if (device_get_parent(child) != dev)
sys/dev/quicc/quicc_core.c
376
qd = device_get_ivars(child);
sys/dev/quicc/quicc_core.c
384
quicc_bus_teardown_intr(device_t dev, device_t child, struct resource *r,
sys/dev/quicc/quicc_core.c
389
if (device_get_parent(child) != dev)
sys/dev/quicc/quicc_core.c
392
qd = device_get_ivars(child);
sys/dev/regulator/regulator_bus.c
58
phandle_t node, child;
sys/dev/regulator/regulator_bus.c
63
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/regulator/regulator_bus.c
64
simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/rge/if_rge_sysctl.c
100
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "link_state_change_cnt",
sys/dev/rge/if_rge_sysctl.c
104
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "tx_task_cnt",
sys/dev/rge/if_rge_sysctl.c
108
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "recv_input_cnt",
sys/dev/rge/if_rge_sysctl.c
112
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_desc_err_multidesc",
sys/dev/rge/if_rge_sysctl.c
116
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "tx_watchdog_timeout_cnt",
sys/dev/rge/if_rge_sysctl.c
122
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "tx_encap_cnt",
sys/dev/rge/if_rge_sysctl.c
125
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "tx_encap_refrag_cnt",
sys/dev/rge/if_rge_sysctl.c
131
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "tx_encap_err_toofrag",
sys/dev/rge/if_rge_sysctl.c
135
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "tx_offload_ip_csum_set",
sys/dev/rge/if_rge_sysctl.c
139
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "tx_offload_tcp_csum_set",
sys/dev/rge/if_rge_sysctl.c
143
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "tx_offload_udp_csum_set",
sys/dev/rge/if_rge_sysctl.c
147
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "tx_offload_vlan_tag_set",
sys/dev/rge/if_rge_sysctl.c
152
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_ether_csum_err",
sys/dev/rge/if_rge_sysctl.c
156
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_offload_vlan_tag",
sys/dev/rge/if_rge_sysctl.c
160
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_jumbo_frag",
sys/dev/rge/if_rge_sysctl.c
165
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_offload_csum_ipv4_exists",
sys/dev/rge/if_rge_sysctl.c
168
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_offload_csum_ipv4_valid",
sys/dev/rge/if_rge_sysctl.c
172
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_offload_csum_tcp_exists",
sys/dev/rge/if_rge_sysctl.c
175
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_offload_csum_tcp_valid",
sys/dev/rge/if_rge_sysctl.c
179
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_offload_csum_udp_exists",
sys/dev/rge/if_rge_sysctl.c
182
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rx_offload_csum_udp_valid",
sys/dev/rge/if_rge_sysctl.c
192
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/rge/if_rge_sysctl.c
196
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "mac_stats",
sys/dev/rge/if_rge_sysctl.c
198
child = SYSCTL_CHILDREN(tree);
sys/dev/rge/if_rge_sysctl.c
201
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rge_tx_ok", CTLFLAG_RD,
sys/dev/rge/if_rge_sysctl.c
203
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rge_rx_ok", CTLFLAG_RD,
sys/dev/rge/if_rge_sysctl.c
206
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rge_tx_er", CTLFLAG_RD,
sys/dev/rge/if_rge_sysctl.c
215
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rge_rx_ok_phy", CTLFLAG_RD,
sys/dev/rge/if_rge_sysctl.c
217
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rge_rx_ok_brd", CTLFLAG_RD,
sys/dev/rge/if_rge_sysctl.c
67
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/rge/if_rge_sysctl.c
70
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "drv_stats",
sys/dev/rge/if_rge_sysctl.c
72
child = SYSCTL_CHILDREN(tree);
sys/dev/rge/if_rge_sysctl.c
75
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "transmit_call_cnt", CTLFLAG_RD,
sys/dev/rge/if_rge_sysctl.c
77
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "transmit_stopped_cnt",
sys/dev/rge/if_rge_sysctl.c
80
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "transmit_full_cnt",
sys/dev/rge/if_rge_sysctl.c
83
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "transmit_queued_cnt",
sys/dev/rge/if_rge_sysctl.c
87
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "intr_cnt",
sys/dev/rge/if_rge_sysctl.c
90
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "intr_system_errcnt",
sys/dev/rge/if_rge_sysctl.c
93
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rxeof_cnt",
sys/dev/rge/if_rge_sysctl.c
96
SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "txeof_cnt",
sys/dev/rtsx/rtsx.c
271
static int rtsx_read_ivar(device_t bus, device_t child, int which, uintptr_t *result);
sys/dev/rtsx/rtsx.c
272
static int rtsx_write_ivar(device_t bus, device_t child, int which, uintptr_t value);
sys/dev/rtsx/rtsx.c
274
static int rtsx_mmcbr_update_ios(device_t bus, device_t child __unused);
sys/dev/rtsx/rtsx.c
275
static int rtsx_mmcbr_switch_vccq(device_t bus, device_t child __unused);
sys/dev/rtsx/rtsx.c
276
static int rtsx_mmcbr_request(device_t bus, device_t child __unused, struct mmc_request *req);
sys/dev/rtsx/rtsx.c
278
static int rtsx_mmcbr_tune(device_t bus, device_t child __unused, bool hs400 __unused);
sys/dev/rtsx/rtsx.c
279
static int rtsx_mmcbr_retune(device_t bus, device_t child __unused, bool reset __unused);
sys/dev/rtsx/rtsx.c
280
static int rtsx_mmcbr_get_ro(device_t bus, device_t child __unused);
sys/dev/rtsx/rtsx.c
281
static int rtsx_mmcbr_acquire_host(device_t bus, device_t child __unused);
sys/dev/rtsx/rtsx.c
282
static int rtsx_mmcbr_release_host(device_t bus, device_t child __unused);
sys/dev/rtsx/rtsx.c
3065
rtsx_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/dev/rtsx/rtsx.c
3130
rtsx_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
sys/dev/rtsx/rtsx.c
3260
rtsx_mmcbr_switch_vccq(device_t bus, device_t child __unused)
sys/dev/rtsx/rtsx.c
3351
rtsx_mmcbr_tune(device_t bus, device_t child __unused, bool hs400)
sys/dev/rtsx/rtsx.c
3422
rtsx_mmcbr_retune(device_t bus, device_t child __unused, bool reset __unused)
sys/dev/rtsx/rtsx.c
3436
rtsx_mmcbr_request(device_t bus, device_t child __unused, struct mmc_request *req)
sys/dev/rtsx/rtsx.c
3510
rtsx_mmcbr_get_ro(device_t bus, device_t child __unused)
sys/dev/rtsx/rtsx.c
3523
rtsx_mmcbr_acquire_host(device_t bus, device_t child __unused)
sys/dev/rtsx/rtsx.c
3541
rtsx_mmcbr_release_host(device_t bus, device_t child __unused)
sys/dev/scc/scc_core.c
409
scc_bus_alloc_resource(device_t dev, device_t child, int type, int rid __unused,
sys/dev/scc/scc_core.c
416
if (device_get_parent(child) != dev)
sys/dev/scc/scc_core.c
423
m = device_get_ivars(child);
sys/dev/scc/scc_core.c
432
scc_bus_get_resource(device_t dev, device_t child, int type, int rid,
sys/dev/scc/scc_core.c
439
if (device_get_parent(child) != dev)
sys/dev/scc/scc_core.c
442
m = device_get_ivars(child);
sys/dev/scc/scc_core.c
456
scc_bus_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/scc/scc_core.c
463
if (device_get_parent(child) != dev)
sys/dev/scc/scc_core.c
468
m = device_get_ivars(child);
sys/dev/scc/scc_core.c
497
scc_bus_release_resource(device_t dev, device_t child, struct resource *res)
sys/dev/scc/scc_core.c
503
if (device_get_parent(child) != dev)
sys/dev/scc/scc_core.c
506
m = device_get_ivars(child);
sys/dev/scc/scc_core.c
514
scc_bus_setup_intr(device_t dev, device_t child, struct resource *r, int flags,
sys/dev/scc/scc_core.c
522
if (device_get_parent(child) != dev)
sys/dev/scc/scc_core.c
546
m = device_get_ivars(child);
sys/dev/scc/scc_core.c
554
m->ih_src[i] = SERDEV_IHAND(child, isrc);
sys/dev/scc/scc_core.c
563
scc_bus_teardown_intr(device_t dev, device_t child, struct resource *r,
sys/dev/scc/scc_core.c
569
if (device_get_parent(child) != dev)
sys/dev/scc/scc_core.c
572
m = device_get_ivars(child);
sys/dev/sdhci/fsl_sdhci.c
753
fsl_sdhci_get_ro(device_t bus, device_t child)
sys/dev/sdhci/sdhci.c
2450
sdhci_generic_read_ivar(device_t bus, device_t child, int which,
sys/dev/sdhci/sdhci.c
2453
const struct sdhci_slot *slot = device_get_ivars(child);
sys/dev/sdhci/sdhci.c
2537
sdhci_generic_write_ivar(device_t bus, device_t child, int which,
sys/dev/sdhci/sdhci.c
2540
struct sdhci_slot *slot = device_get_ivars(child);
sys/dev/sdhci/sdhci.h
421
int sdhci_generic_read_ivar(device_t bus, device_t child, int which,
sys/dev/sdhci/sdhci.h
423
int sdhci_generic_write_ivar(device_t bus, device_t child, int which,
sys/dev/sdhci/sdhci_fsl_fdt.c
1047
sdhci_fsl_fdt_read_ivar(device_t bus, device_t child, int which,
sys/dev/sdhci/sdhci_fsl_fdt.c
1050
struct sdhci_slot *slot = device_get_ivars(child);
sys/dev/sdhci/sdhci_fsl_fdt.c
1061
return (sdhci_generic_read_ivar(bus, child, which, result));
sys/dev/sdhci/sdhci_fsl_fdt.c
1065
sdhci_fsl_fdt_write_ivar(device_t bus, device_t child, int which,
sys/dev/sdhci/sdhci_fsl_fdt.c
1069
struct sdhci_slot *slot = device_get_ivars(child);
sys/dev/sdhci/sdhci_fsl_fdt.c
1087
return (sdhci_generic_write_ivar(bus, child, which, value));
sys/dev/sdhci/sdhci_fsl_fdt.c
1143
device_t child, bool hs400, uint32_t wnd_start, uint32_t wnd_end)
sys/dev/sdhci/sdhci_fsl_fdt.c
1180
error = sdhci_generic_tune(bus, child, hs400);
sys/dev/sdhci/sdhci_fsl_fdt.c
1190
sdhci_fsl_fdt_tune(device_t bus, device_t child, bool hs400)
sys/dev/sdhci/sdhci_fsl_fdt.c
1199
slot = device_get_ivars(child);
sys/dev/sdhci/sdhci_fsl_fdt.c
1263
error = sdhci_generic_tune(bus, child, hs400);
sys/dev/sdhci/sdhci_fsl_fdt.c
1286
error = sdhci_fsl_sw_tuning(sc, bus, child, hs400, wnd_start,
sys/dev/sdhci/sdhci_fsl_fdt.c
1306
sdhci_fsl_fdt_retune(device_t bus, device_t child, bool reset)
sys/dev/sdhci/sdhci_fsl_fdt.c
1311
slot = device_get_ivars(child);
sys/dev/sdhci/sdhci_fsl_fdt.c
1332
return (sdhci_fsl_fdt_tune(bus, child,
sys/dev/sdhci/sdhci_fsl_fdt.c
753
sdhci_fsl_fdt_get_ro(device_t bus, device_t child)
sys/dev/sdio/sdiob.c
118
device_t child[8];
sys/dev/sdio/sdiob.c
461
sdiob_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/sdio/sdiob.c
466
f = device_get_ivars(child);
sys/dev/sdio/sdiob.c
468
__func__, dev, child, which));
sys/dev/sdio/sdiob.c
474
__func__, dev, child, which));
sys/dev/sdio/sdiob.c
502
sdiob_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/sdio/sdiob.c
506
f = device_get_ivars(child);
sys/dev/sdio/sdiob.c
508
__func__, dev, child, which));
sys/dev/sdio/sdiob.c
561
sc->child[i] = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/dev/sdio/sdiob.c
562
if (sc->child[i] == NULL) {
sys/dev/sdio/sdiob.c
566
sc->cardinfo.f[i].dev = sc->child[i];
sys/dev/sdio/sdiob.c
569
device_set_ivars(sc->child[i], &sc->cardinfo.f[i]);
sys/dev/sdio/sdiob.c
581
error = device_probe_and_attach(sc->child[i]);
sys/dev/sdio/sdiob.c
586
sc->child, device_get_nameunit(sc->child[i]),
sys/dev/siis/siis.c
141
device_t child;
sys/dev/siis/siis.c
192
child = device_add_child(dev, "siisch", DEVICE_UNIT_ANY);
sys/dev/siis/siis.c
193
if (child == NULL)
sys/dev/siis/siis.c
196
device_set_ivars(child, (void *)(intptr_t)unit);
sys/dev/siis/siis.c
317
siis_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/siis/siis.c
321
int unit = ((struct siis_channel *)device_get_softc(child))->unit;
sys/dev/siis/siis.c
330
st + offset + 0x2000, 0x2000, RF_ACTIVE, child);
sys/dev/siis/siis.c
350
siis_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/siis/siis.c
366
siis_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/siis/siis.c
371
int unit = (intptr_t)device_get_ivars(child);
sys/dev/siis/siis.c
383
siis_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/dev/siis/siis.c
387
int unit = (intptr_t)device_get_ivars(child);
sys/dev/siis/siis.c
395
siis_print_child(device_t dev, device_t child)
sys/dev/siis/siis.c
399
retval = bus_print_child_header(dev, child);
sys/dev/siis/siis.c
401
(int)(intptr_t)device_get_ivars(child));
sys/dev/siis/siis.c
402
retval += bus_print_child_footer(dev, child);
sys/dev/siis/siis.c
408
siis_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/siis/siis.c
412
(int)(intptr_t)device_get_ivars(child));
sys/dev/siis/siis.c
417
siis_get_dma_tag(device_t bus, device_t child)
sys/dev/sis/if_sis.c
355
device_t child = NULL;
sys/dev/sis/if_sis.c
370
child = *childp;
sys/dev/sis/if_sis.c
380
return (child);
sys/dev/sk/if_sk.c
1740
skc_child_deleted(device_t dev, device_t child)
sys/dev/sk/if_sk.c
1742
free(device_get_ivars(child), M_DEVBUF);
sys/dev/sk/if_sk.c
1805
skc_get_dma_tag(device_t bus, device_t child __unused)
sys/dev/smbios/smbios.c
152
child = BUS_ADD_CHILD(parent, 5, "smbios", DEVICE_UNIT_ANY);
sys/dev/smbios/smbios.c
153
device_set_driver(child, driver);
sys/dev/smbios/smbios.c
156
bus_set_resource(child, SYS_RES_MEMORY, 0, addr, length);
sys/dev/smbios/smbios.c
157
device_set_desc(child, "System Management BIOS");
sys/dev/smbios/smbios.c
86
device_t child;
sys/dev/smbus/smbus.c
100
device_t child;
sys/dev/smbus/smbus.c
102
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/smbus/smbus.c
103
if (child == NULL)
sys/dev/smbus/smbus.c
104
return (child);
sys/dev/smbus/smbus.c
107
device_delete_child(dev, child);
sys/dev/smbus/smbus.c
110
device_set_ivars(child, devi);
sys/dev/smbus/smbus.c
111
return (child);
sys/dev/smbus/smbus.c
115
smbus_child_deleted(device_t dev, device_t child)
sys/dev/smbus/smbus.c
117
free(device_get_ivars(child), M_DEVBUF);
sys/dev/smbus/smbus.c
124
device_t child;
sys/dev/smbus/smbus.c
134
child = BUS_ADD_CHILD(bus, SMBUS_ORDER_HINTED, dname, dunit);
sys/dev/smbus/smbus.c
135
if (child == NULL)
sys/dev/smbus/smbus.c
137
devi = device_get_ivars(child);
sys/dev/smbus/smbus.c
142
smbus_child_location(device_t parent, device_t child, struct sbuf *sb)
sys/dev/smbus/smbus.c
146
devi = device_get_ivars(child);
sys/dev/smbus/smbus.c
153
smbus_print_child(device_t parent, device_t child)
sys/dev/smbus/smbus.c
158
devi = device_get_ivars(child);
sys/dev/smbus/smbus.c
159
retval = bus_print_child_header(parent, child);
sys/dev/smbus/smbus.c
162
retval += bus_print_child_footer(parent, child);
sys/dev/smbus/smbus.c
168
smbus_read_ivar(device_t parent, device_t child, int which, uintptr_t *result)
sys/dev/smbus/smbus.c
172
devi = device_get_ivars(child);
sys/dev/smbus/smbus.c
187
smbus_write_ivar(device_t parent, device_t child, int which, uintptr_t value)
sys/dev/smbus/smbus.c
191
devi = device_get_ivars(child);
sys/dev/smbus/smbus.c
206
smbus_probe_nomatch(device_t bus, device_t child)
sys/dev/smbus/smbus.c
208
struct smbus_ivar *devi = device_get_ivars(child);
sys/dev/sound/fdt/audio_soc.c
316
phandle_t node, child;
sys/dev/sound/fdt/audio_soc.c
328
child = ofw_bus_find_child(node, "simple-audio-card,cpu");
sys/dev/sound/fdt/audio_soc.c
329
if (child == 0) {
sys/dev/sound/fdt/audio_soc.c
333
if ((OF_getencprop(child, "sound-dai", &xref, sizeof(xref))) <= 0) {
sys/dev/sound/fdt/audio_soc.c
344
child = ofw_bus_find_child(node, "simple-audio-card,codec");
sys/dev/sound/fdt/audio_soc.c
345
if (child == 0) {
sys/dev/sound/fdt/audio_soc.c
349
if ((OF_getencprop(child, "sound-dai", &xref, sizeof(xref))) <= 0) {
sys/dev/sound/pci/csa.c
111
device_t child;
sys/dev/sound/pci/csa.c
116
child = pci_find_device(0x8086, 0x7113);
sys/dev/sound/pci/csa.c
117
if (child == NULL)
sys/dev/sound/pci/csa.c
120
port = (pci_read_config(child, 0x41, 1) << 8) + 0x10;
sys/dev/sound/pci/csa.c
305
csa_child_deleted(device_t dev, device_t child)
sys/dev/sound/pci/csa.c
307
free(device_get_ivars(child), M_DEVBUF);
sys/dev/sound/pci/csa.c
356
csa_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/sound/pci/csa.c
391
csa_release_resource(device_t bus, device_t child, struct resource *r)
sys/dev/sound/pci/csa.c
406
csa_setup_intr(device_t bus, device_t child,
sys/dev/sound/pci/csa.c
426
func = device_get_ivars(child);
sys/dev/sound/pci/csa.c
452
csa_teardown_intr(device_t bus, device_t child,
sys/dev/sound/pci/csa.c
466
func = device_get_ivars(child);
sys/dev/sound/pci/csa.c
82
static struct resource *csa_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/sound/pci/csa.c
85
static int csa_release_resource(device_t bus, device_t child, struct resource *r);
sys/dev/sound/pci/csa.c
86
static int csa_setup_intr(device_t bus, device_t child,
sys/dev/sound/pci/csa.c
90
static int csa_teardown_intr(device_t bus, device_t child,
sys/dev/sound/pci/emu10kx.c
3342
emu_pci_child_deleted(device_t dev, device_t child)
sys/dev/sound/pci/emu10kx.c
3346
func = device_get_ivars(child);
sys/dev/sound/pci/fm801.c
711
fm801_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/dev/sound/pci/fm801.c
726
fm801_release_resource(device_t bus, device_t child, struct resource *r)
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(device_t dev, device_t child, struct sbuf *sb)
sys/dev/sound/pci/hda/hdaa.c
6773
(struct hdaa_pcm_devinfo *)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
1006
device_t child;
sys/dev/sound/pci/hda/hdac.c
1018
if ((child = sc->codecs[cad].dev) != NULL &&
sys/dev/sound/pci/hda/hdac.c
1019
device_is_attached(child))
sys/dev/sound/pci/hda/hdac.c
1020
HDAC_UNSOL_INTR(child, resp);
sys/dev/sound/pci/hda/hdac.c
1546
device_t child;
sys/dev/sound/pci/hda/hdac.c
1629
child = device_add_child(sc->dev, "hdacc", DEVICE_UNIT_ANY);
sys/dev/sound/pci/hda/hdac.c
1630
if (child == NULL) {
sys/dev/sound/pci/hda/hdac.c
1635
device_set_ivars(child, (void *)(intptr_t)i);
sys/dev/sound/pci/hda/hdac.c
1636
sc->codecs[i].dev = child;
sys/dev/sound/pci/hda/hdac.c
1813
hdac_get_dma_tag(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdac.c
1821
hdac_print_child(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdac.c
1825
retval = bus_print_child_header(dev, child);
sys/dev/sound/pci/hda/hdac.c
1826
retval += printf(" at cad %d", (int)(intptr_t)device_get_ivars(child));
sys/dev/sound/pci/hda/hdac.c
1827
retval += bus_print_child_footer(dev, child);
sys/dev/sound/pci/hda/hdac.c
1833
hdac_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/sound/pci/hda/hdac.c
1836
sbuf_printf(sb, "cad=%d", (int)(intptr_t)device_get_ivars(child));
sys/dev/sound/pci/hda/hdac.c
1841
hdac_child_pnpinfo_method(device_t dev, device_t child, struct sbuf *sb)
sys/dev/sound/pci/hda/hdac.c
1844
nid_t cad = (uintptr_t)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
1854
hdac_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/sound/pci/hda/hdac.c
1857
nid_t cad = (uintptr_t)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
1894
hdac_get_mtx(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdac.c
1902
hdac_codec_command(device_t dev, device_t child, uint32_t verb)
sys/dev/sound/pci/hda/hdac.c
1906
(intptr_t)device_get_ivars(child), verb));
sys/dev/sound/pci/hda/hdac.c
1945
hdac_stream_alloc(device_t dev, device_t child, int dir, int format, int stripe,
sys/dev/sound/pci/hda/hdac.c
1949
nid_t cad = (uintptr_t)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
1989
sc->streams[ss].dev = child;
sys/dev/sound/pci/hda/hdac.c
2005
hdac_stream_free(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdac.c
2008
nid_t cad = (uintptr_t)device_get_ivars(child);
sys/dev/sound/pci/hda/hdac.c
2023
hdac_stream_start(device_t dev, device_t child, int dir, int stream,
sys/dev/sound/pci/hda/hdac.c
2087
hdac_stream_stop(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdac.c
2115
hdac_stream_reset(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdac.c
2153
hdac_stream_getptr(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdac.c
2167
hdac_unsol_alloc(device_t dev, device_t child, int tag)
sys/dev/sound/pci/hda/hdac.c
2177
hdac_unsol_free(device_t dev, device_t child, int tag)
sys/dev/sound/pci/hda/hdacc.c
488
device_t child;
sys/dev/sound/pci/hda/hdacc.c
527
codec->fgs[n].dev = child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/dev/sound/pci/hda/hdacc.c
528
if (child == NULL) {
sys/dev/sound/pci/hda/hdacc.c
532
device_set_ivars(child, &codec->fgs[n]);
sys/dev/sound/pci/hda/hdacc.c
553
hdacc_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/dev/sound/pci/hda/hdacc.c
555
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
562
hdacc_child_pnpinfo_method(device_t dev, device_t child, struct sbuf *sb)
sys/dev/sound/pci/hda/hdacc.c
564
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
572
hdacc_print_child(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdacc.c
574
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
577
retval = bus_print_child_header(dev, child);
sys/dev/sound/pci/hda/hdacc.c
579
retval += bus_print_child_footer(dev, child);
sys/dev/sound/pci/hda/hdacc.c
585
hdacc_probe_nomatch(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdacc.c
588
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
590
device_printf(child, "<%s %s Function Group> at nid %d on %s "
sys/dev/sound/pci/hda/hdacc.c
611
hdacc_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/sound/pci/hda/hdacc.c
613
struct hdacc_fg *fg = device_get_ivars(child);
sys/dev/sound/pci/hda/hdacc.c
633
hdacc_get_mtx(device_t dev, device_t child)
sys/dev/sound/pci/hda/hdacc.c
641
hdacc_codec_command(device_t dev, device_t child, uint32_t verb)
sys/dev/sound/pci/hda/hdacc.c
648
hdacc_stream_alloc(device_t dev, device_t child, int dir, int format,
sys/dev/sound/pci/hda/hdacc.c
657
codec->streams[dir][stream] = child;
sys/dev/sound/pci/hda/hdacc.c
662
hdacc_stream_free(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdacc.c
671
hdacc_stream_start(device_t dev, device_t child, int dir, int stream,
sys/dev/sound/pci/hda/hdacc.c
680
hdacc_stream_stop(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdacc.c
687
hdacc_stream_reset(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdacc.c
694
hdacc_stream_getptr(device_t dev, device_t child, int dir, int stream)
sys/dev/sound/pci/hda/hdacc.c
704
device_t child;
sys/dev/sound/pci/hda/hdacc.c
706
if ((child = codec->streams[dir][stream]) != NULL)
sys/dev/sound/pci/hda/hdacc.c
707
HDAC_STREAM_INTR(child, dir, stream);
sys/dev/sound/pci/hda/hdacc.c
711
hdacc_unsol_alloc(device_t dev, device_t child, int wanted)
sys/dev/sound/pci/hda/hdacc.c
720
codec->tags[tag] = child;
sys/dev/sound/pci/hda/hdacc.c
731
hdacc_unsol_free(device_t dev, device_t child, int tag)
sys/dev/sound/pci/hda/hdacc.c
744
device_t child;
sys/dev/sound/pci/hda/hdacc.c
748
if ((child = codec->tags[tag]) != NULL)
sys/dev/sound/pci/hda/hdacc.c
749
HDAC_UNSOL_INTR(child, resp);
sys/dev/sound/pci/hdsp.c
960
hdsp_child_deleted(device_t dev, device_t child)
sys/dev/sound/pci/hdsp.c
962
free(device_get_ivars(child), M_DEVBUF);
sys/dev/sound/pci/hdspe.c
852
hdspe_child_deleted(device_t dev, device_t child)
sys/dev/sound/pci/hdspe.c
854
free(device_get_ivars(child), M_DEVBUF);
sys/dev/sound/pcm/mixer.c
238
u_int32_t parent = SOUND_MIXER_NONE, child = 0;
sys/dev/sound/pcm/mixer.c
272
child = m->child[dev];
sys/dev/sound/pcm/mixer.c
284
} else if (child != 0) {
sys/dev/sound/pcm/mixer.c
286
if (!(child & (1 << i)) || m->parent[i] != dev)
sys/dev/sound/pcm/mixer.c
492
v |= m->child[i];
sys/dev/sound/pcm/mixer.c
579
m->child[m->parent[i]] &= ~(1 << i);
sys/dev/sound/pcm/mixer.c
581
m->child[i] = 0;
sys/dev/sound/pcm/mixer.c
585
m->child[parent] = mask;
sys/dev/sound/pcm/mixer.c
62
u_int32_t child[32];
sys/dev/sound/pcm/mixer.c
656
m->child[i] = 0;
sys/dev/sound/pcm/mixer.c
759
if (m->child[i] != 0)
sys/dev/sound/pcm/mixer.c
760
printf(" child=0x%08x", m->child[i]);
sys/dev/sound/pcm/vchan.c
605
vchan_create(struct pcm_channel *parent, struct pcm_channel **child)
sys/dev/sound/pcm/vchan.c
648
*child = ch;
sys/dev/sound/pcm/vchan.c
678
*child = NULL;
sys/dev/spibus/acpi_spibus.c
271
device_t spibus, child;
sys/dev/spibus/acpi_spibus.c
305
child = BUS_ADD_CHILD(spibus, 0, NULL, DEVICE_UNIT_ANY);
sys/dev/spibus/acpi_spibus.c
306
if (child == NULL) {
sys/dev/spibus/acpi_spibus.c
311
spibus_set_cs(child, res.cs);
sys/dev/spibus/acpi_spibus.c
312
spibus_set_mode(child, res.mode);
sys/dev/spibus/acpi_spibus.c
313
spibus_set_clock(child, res.clock);
sys/dev/spibus/acpi_spibus.c
314
spibus_set_cs_delay(child, res.cs_delay);
sys/dev/spibus/acpi_spibus.c
315
acpi_set_handle(child, handle);
sys/dev/spibus/acpi_spibus.c
316
acpi_parse_resources(child, handle, &acpi_res_parse_set, NULL);
sys/dev/spibus/acpi_spibus.c
321
status = AcpiAttachData(handle, acpi_fake_objhandler, child);
sys/dev/spibus/acpi_spibus.c
419
acpi_spibus_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/spibus/acpi_spibus.c
426
if (device_get_parent(child) != dev)
sys/dev/spibus/acpi_spibus.c
427
return (BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
sys/dev/spibus/acpi_spibus.c
430
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/dev/spibus/acpi_spibus.c
434
res = resource_list_alloc(rl, dev, child, type, rid,
sys/dev/spibus/acpi_spibus.c
437
ACPI_SUCCESS(acpi_lookup_irq_resource(child, rid, res, &ares)))
sys/dev/spibus/acpi_spibus.c
438
acpi_config_intr(child, &ares);
sys/dev/spibus/acpi_spibus.c
449
acpi_spibus_probe_nomatch(device_t bus, device_t child)
sys/dev/spibus/acpi_spibus.c
451
spibus_probe_nomatch(bus, child);
sys/dev/spibus/acpi_spibus.c
452
acpi_set_powerstate(child, ACPI_STATE_D3);
sys/dev/spibus/acpi_spibus.c
461
device_t child, *devlist;
sys/dev/spibus/acpi_spibus.c
469
child = devlist[i];
sys/dev/spibus/acpi_spibus.c
470
if (device_get_state(child) == DS_NOTPRESENT) {
sys/dev/spibus/acpi_spibus.c
471
acpi_set_powerstate(child, ACPI_STATE_D0);
sys/dev/spibus/acpi_spibus.c
472
if (device_probe_and_attach(child) != 0)
sys/dev/spibus/acpi_spibus.c
473
acpi_set_powerstate(child, ACPI_STATE_D3);
sys/dev/spibus/acpi_spibus.c
480
acpi_spibus_child_deleted(device_t bus, device_t child)
sys/dev/spibus/acpi_spibus.c
482
struct acpi_spibus_ivar *devi = device_get_ivars(child);
sys/dev/spibus/acpi_spibus.c
484
if (acpi_get_device(devi->handle) == child)
sys/dev/spibus/acpi_spibus.c
489
acpi_spibus_read_ivar(device_t bus, device_t child, int which, uintptr_t *res)
sys/dev/spibus/acpi_spibus.c
491
struct acpi_spibus_ivar *devi = device_get_ivars(child);
sys/dev/spibus/acpi_spibus.c
498
return (spibus_read_ivar(bus, child, which, res));
sys/dev/spibus/acpi_spibus.c
505
acpi_spibus_write_ivar(device_t bus, device_t child, int which, uintptr_t val)
sys/dev/spibus/acpi_spibus.c
507
struct acpi_spibus_ivar *devi = device_get_ivars(child);
sys/dev/spibus/acpi_spibus.c
516
return (spibus_write_ivar(bus, child, which, val));
sys/dev/spibus/acpi_spibus.c
524
acpi_spibus_child_location(device_t bus, device_t child, struct sbuf *sb)
sys/dev/spibus/acpi_spibus.c
526
struct acpi_spibus_ivar *devi = device_get_ivars(child);
sys/dev/spibus/acpi_spibus.c
530
error = spibus_child_location(bus, child, sb);
sys/dev/spibus/acpi_spibus.c
543
acpi_spibus_child_pnpinfo(device_t bus, device_t child, struct sbuf *sb)
sys/dev/spibus/acpi_spibus.c
545
struct acpi_spibus_ivar *devi = device_get_ivars(child);
sys/dev/spibus/controller/allwinner/aw_spi.c
526
aw_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/dev/spibus/controller/allwinner/aw_spi.c
534
spibus_get_cs(child, &cs);
sys/dev/spibus/controller/allwinner/aw_spi.c
535
spibus_get_clock(child, &clock);
sys/dev/spibus/controller/allwinner/aw_spi.c
536
spibus_get_mode(child, &mode);
sys/dev/spibus/controller/rockchip/rk_spi.c
413
rk_spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/dev/spibus/controller/rockchip/rk_spi.c
421
spibus_get_cs(child, &cs);
sys/dev/spibus/controller/rockchip/rk_spi.c
422
spibus_get_clock(child, &clock);
sys/dev/spibus/controller/rockchip/rk_spi.c
423
spibus_get_mode(child, &mode);
sys/dev/spibus/ofw_spibus.c
100
if (OF_getencprop(child, "reg", &paddr,
sys/dev/spibus/ofw_spibus.c
108
if (OF_hasprop(child, "spi-cpol"))
sys/dev/spibus/ofw_spibus.c
110
if (OF_hasprop(child, "spi-cpha")) {
sys/dev/spibus/ofw_spibus.c
120
if (OF_hasprop(child, "spi-cs-high"))
sys/dev/spibus/ofw_spibus.c
131
if (OF_getencprop(child, "spi-max-frequency", &clock,
sys/dev/spibus/ofw_spibus.c
146
if (ofw_bus_gen_setup_devinfo(&dinfo->opd_obdinfo, child) !=
sys/dev/spibus/ofw_spibus.c
154
ofw_bus_intr_to_rl(childdev, child,
sys/dev/spibus/ofw_spibus.c
166
device_t child;
sys/dev/spibus/ofw_spibus.c
169
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/spibus/ofw_spibus.c
170
if (child == NULL)
sys/dev/spibus/ofw_spibus.c
171
return (child);
sys/dev/spibus/ofw_spibus.c
175
device_delete_child(dev, child);
sys/dev/spibus/ofw_spibus.c
189
device_set_ivars(child, devi);
sys/dev/spibus/ofw_spibus.c
191
return (child);
sys/dev/spibus/ofw_spibus.c
195
ofw_spibus_child_deleted(device_t dev, device_t child)
sys/dev/spibus/ofw_spibus.c
197
free(device_get_ivars(child), M_DEVBUF);
sys/dev/spibus/ofw_spibus.c
210
ofw_spibus_get_resource_list(device_t bus __unused, device_t child)
sys/dev/spibus/ofw_spibus.c
214
devi = SPIBUS_IVAR(child);
sys/dev/spibus/ofw_spibus.c
79
phandle_t child;
sys/dev/spibus/ofw_spibus.c
92
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/dev/spibus/ofw_spibus.c
93
child = OF_peer(child)) {
sys/dev/spibus/ofw_spibus.c
98
if (OF_getencprop(child, "spi-chipselect", &paddr,
sys/dev/spibus/spibus.c
102
spibus_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/dev/spibus/spibus.c
104
struct spibus_ivar *devi = SPIBUS_IVAR(child);
sys/dev/spibus/spibus.c
126
spibus_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
sys/dev/spibus/spibus.c
128
struct spibus_ivar *devi = SPIBUS_IVAR(child);
sys/dev/spibus/spibus.c
130
if (devi == NULL || device_get_parent(child) != bus)
sys/dev/spibus/spibus.c
163
device_t child;
sys/dev/spibus/spibus.c
166
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/spibus/spibus.c
167
if (child == NULL)
sys/dev/spibus/spibus.c
168
return (child);
sys/dev/spibus/spibus.c
171
device_delete_child(dev, child);
sys/dev/spibus/spibus.c
175
device_set_ivars(child, devi);
sys/dev/spibus/spibus.c
176
return (child);
sys/dev/spibus/spibus.c
180
spibus_child_deleted(device_t dev, device_t child)
sys/dev/spibus/spibus.c
184
devi = device_get_ivars(child);
sys/dev/spibus/spibus.c
201
device_t child;
sys/dev/spibus/spibus.c
205
child = BUS_ADD_CHILD(bus, 0, dname, dunit);
sys/dev/spibus/spibus.c
206
devi = SPIBUS_IVAR(child);
sys/dev/spibus/spibus.c
212
if (bus_set_resource(child, SYS_RES_IRQ, 0, irq, 1) != 0)
sys/dev/spibus/spibus.c
219
spibus_get_resource_list(device_t bus __unused, device_t child)
sys/dev/spibus/spibus.c
223
devi = SPIBUS_IVAR(child);
sys/dev/spibus/spibus.c
228
spibus_transfer_impl(device_t dev, device_t child, struct spi_command *cmd)
sys/dev/spibus/spibus.c
230
return (SPIBUS_TRANSFER(device_get_parent(dev), child, cmd));
sys/dev/spibus/spibus.c
65
spibus_print_child(device_t dev, device_t child)
sys/dev/spibus/spibus.c
67
struct spibus_ivar *devi = SPIBUS_IVAR(child);
sys/dev/spibus/spibus.c
70
retval += bus_print_child_header(dev, child);
sys/dev/spibus/spibus.c
75
retval += bus_print_child_footer(dev, child);
sys/dev/spibus/spibus.c
81
spibus_probe_nomatch(device_t bus, device_t child)
sys/dev/spibus/spibus.c
83
struct spibus_ivar *devi = SPIBUS_IVAR(child);
sys/dev/spibus/spibus.c
91
spibus_child_location(device_t bus, device_t child, struct sbuf *sb)
sys/dev/spibus/spibus.c
93
struct spibus_ivar *devi = SPIBUS_IVAR(child);
sys/dev/ste/if_ste.c
2017
struct sysctl_oid_list *child, *parent;
sys/dev/ste/if_ste.c
2023
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->ste_dev));
sys/dev/ste/if_ste.c
2025
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "int_rx_mod",
sys/dev/ste/if_ste.c
2032
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/ste/if_ste.c
2039
child = SYSCTL_CHILDREN(tree);
sys/dev/ste/if_ste.c
2040
STE_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/ste/if_ste.c
2042
STE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/ste/if_ste.c
2044
STE_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/ste/if_ste.c
2046
STE_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/ste/if_ste.c
2048
STE_SYSCTL_STAT_ADD32(ctx, child, "lost_frames",
sys/dev/ste/if_ste.c
2054
child = SYSCTL_CHILDREN(tree);
sys/dev/ste/if_ste.c
2055
STE_SYSCTL_STAT_ADD64(ctx, child, "good_octets",
sys/dev/ste/if_ste.c
2057
STE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/ste/if_ste.c
2059
STE_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/ste/if_ste.c
2061
STE_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/ste/if_ste.c
2063
STE_SYSCTL_STAT_ADD32(ctx, child, "carrier_errs",
sys/dev/ste/if_ste.c
2065
STE_SYSCTL_STAT_ADD32(ctx, child, "single_colls",
sys/dev/ste/if_ste.c
2067
STE_SYSCTL_STAT_ADD32(ctx, child, "multi_colls",
sys/dev/ste/if_ste.c
2069
STE_SYSCTL_STAT_ADD32(ctx, child, "late_colls",
sys/dev/ste/if_ste.c
2071
STE_SYSCTL_STAT_ADD32(ctx, child, "defers",
sys/dev/ste/if_ste.c
2073
STE_SYSCTL_STAT_ADD32(ctx, child, "excess_defers",
sys/dev/ste/if_ste.c
2075
STE_SYSCTL_STAT_ADD32(ctx, child, "abort",
sys/dev/sume/if_sume.c
1279
struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree);
sys/dev/sume/if_sume.c
1284
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "sume", CTLFLAG_RW,
sys/dev/sume/if_sume.c
1290
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "debug", CTLFLAG_RW,
sys/dev/sume/if_sume.c
1294
SYSCTL_ADD_U64(ctx, child, OID_AUTO, "rx_epkts",
sys/dev/sume/if_sume.c
1296
SYSCTL_ADD_U64(ctx, child, OID_AUTO, "rx_ebytes",
sys/dev/sume/if_sume.c
1308
tmp_tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/superio/superio.c
628
device_t child;
sys/dev/superio/superio.c
648
child = BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE,
sys/dev/superio/superio.c
650
if (child == NULL) {
sys/dev/superio/superio.c
654
bus_set_resource(child, SYS_RES_IOPORT, 0, ports_table[i], 2);
sys/dev/superio/superio.c
655
if (superio_detect(child, false, NULL) != 0)
sys/dev/superio/superio.c
656
device_delete_child(parent, child);
sys/dev/superio/superio.c
686
device_t child;
sys/dev/superio/superio.c
688
child = BUS_ADD_CHILD(dev, 0, NULL, DEVICE_UNIT_ANY);
sys/dev/superio/superio.c
689
if (child == NULL) {
sys/dev/superio/superio.c
694
dinfo = device_get_ivars(child);
sys/dev/superio/superio.c
752
device_t child;
sys/dev/superio/superio.c
754
child = device_add_child_ordered(dev, order, name, unit);
sys/dev/superio/superio.c
755
if (child == NULL)
sys/dev/superio/superio.c
759
device_delete_child(dev, child);
sys/dev/superio/superio.c
764
dinfo->dev = child;
sys/dev/superio/superio.c
766
device_set_ivars(child, dinfo);
sys/dev/superio/superio.c
767
return (child);
sys/dev/superio/superio.c
771
superio_child_deleted(device_t dev, device_t child)
sys/dev/superio/superio.c
775
dinfo = device_get_ivars(child);
sys/dev/superio/superio.c
783
superio_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/superio/superio.c
787
dinfo = device_get_ivars(child);
sys/dev/superio/superio.c
814
superio_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/dev/superio/superio.c
831
superio_get_resource_list(device_t dev, device_t child)
sys/dev/superio/superio.c
833
struct superio_devinfo *dinfo = device_get_ivars(child);
sys/dev/superio/superio.c
853
superio_child_detached(device_t dev, device_t child)
sys/dev/superio/superio.c
858
dinfo = device_get_ivars(child);
sys/dev/superio/superio.c
861
if (resource_list_release_active(rl, dev, child, SYS_RES_IRQ) != 0)
sys/dev/superio/superio.c
863
if (resource_list_release_active(rl, dev, child, SYS_RES_MEMORY) != 0)
sys/dev/superio/superio.c
865
if (resource_list_release_active(rl, dev, child, SYS_RES_IOPORT) != 0)
sys/dev/superio/superio.c
870
superio_child_location(device_t parent, device_t child, struct sbuf *sb)
sys/dev/superio/superio.c
874
ldn = superio_get_ldn(child);
sys/dev/superio/superio.c
880
superio_child_pnp(device_t parent, device_t child, struct sbuf *sb)
sys/dev/superio/superio.c
884
type = superio_get_type(child);
sys/dev/superio/superio.c
890
superio_print_child(device_t parent, device_t child)
sys/dev/superio/superio.c
896
ldn = superio_get_ldn(child);
sys/dev/superio/superio.c
897
type = superio_get_type(child);
sys/dev/superio/superio.c
899
retval = bus_print_child_header(parent, child);
sys/dev/superio/superio.c
901
retval += bus_print_child_footer(parent, child);
sys/dev/ti/if_ti.c
3981
struct sysctl_oid_list *child;
sys/dev/ti/if_ti.c
3985
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->ti_dev));
sys/dev/ti/if_ti.c
3993
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_coal_ticks", CTLFLAG_RW,
sys/dev/ti/if_ti.c
3995
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_max_coal_bds", CTLFLAG_RW,
sys/dev/ti/if_ti.c
3998
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_coal_ticks", CTLFLAG_RW,
sys/dev/ti/if_ti.c
4000
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_max_coal_bds", CTLFLAG_RW,
sys/dev/ti/if_ti.c
4002
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "tx_buf_ratio", CTLFLAG_RW,
sys/dev/ti/if_ti.c
4006
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "stat_ticks", CTLFLAG_RW,
sys/dev/tsec/if_tsec_fdt.c
166
phandle_t child, mdio, phy;
sys/dev/tsec/if_tsec_fdt.c
185
child = OF_child(sc->node);
sys/dev/tsec/if_tsec_fdt.c
186
ofw_bus_reg_to_rl(dev, child, acells, scells, rl);
sys/dev/tsec/if_tsec_fdt.c
187
ofw_bus_intr_to_rl(dev, child, rl, NULL);
sys/dev/usb/controller/dwc3/aw_dwc3.c
122
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/usb/controller/dwc3/aw_dwc3.c
123
cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/usb/controller/dwc3/aw_dwc3.c
89
phandle_t node, child;
sys/dev/usb/controller/dwc3/rk_dwc3.c
100
phandle_t node, child;
sys/dev/usb/controller/dwc3/rk_dwc3.c
179
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/usb/controller/dwc3/rk_dwc3.c
180
cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/usb/controller/usb_controller.c
703
struct usb_device *child;
sys/dev/usb/controller/usb_controller.c
765
child = usb_alloc_device(bus->bdev, bus, NULL, 0, 0, 1,
sys/dev/usb/controller/usb_controller.c
767
if (child) {
sys/dev/usb/controller/usb_controller.c
768
err = usb_probe_and_attach(child,
sys/dev/usb/controller/xlnx_dwc3.c
128
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/usb/controller/xlnx_dwc3.c
129
cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
sys/dev/usb/controller/xlnx_dwc3.c
91
phandle_t node, child;
sys/dev/usb/input/usbhid.c
334
usbhid_intr_setup(device_t dev, device_t child __unused, hid_intr_t intr,
sys/dev/usb/input/usbhid.c
407
usbhid_intr_unsetup(device_t dev, device_t child __unused)
sys/dev/usb/input/usbhid.c
420
usbhid_intr_start(device_t dev, device_t child __unused)
sys/dev/usb/input/usbhid.c
452
usbhid_intr_stop(device_t dev, device_t child __unused)
sys/dev/usb/input/usbhid.c
465
usbhid_intr_poll(device_t dev, device_t child __unused)
sys/dev/usb/input/usbhid.c
540
usbhid_get_rdesc(device_t dev, device_t child __unused, void *buf,
sys/dev/usb/input/usbhid.c
556
usbhid_get_report(device_t dev, device_t child __unused, void *buf,
sys/dev/usb/input/usbhid.c
582
usbhid_set_report(device_t dev, device_t child __unused, const void *buf,
sys/dev/usb/input/usbhid.c
605
usbhid_read(device_t dev, device_t child __unused, void *buf,
sys/dev/usb/input/usbhid.c
625
usbhid_write(device_t dev, device_t child __unused, const void *buf,
sys/dev/usb/input/usbhid.c
642
usbhid_set_idle(device_t dev, device_t child __unused, uint16_t duration,
sys/dev/usb/input/usbhid.c
665
usbhid_set_protocol(device_t dev, device_t child __unused, uint16_t protocol)
sys/dev/usb/input/usbhid.c
686
usbhid_ioctl(device_t dev, device_t child __unused, unsigned long cmd,
sys/dev/usb/input/usbhid.c
821
device_t child;
sys/dev/usb/input/usbhid.c
842
child = device_add_child(dev, "hidbus", DEVICE_UNIT_ANY);
sys/dev/usb/input/usbhid.c
843
if (child == NULL) {
sys/dev/usb/input/usbhid.c
849
device_set_ivars(child, &sc->sc_hw);
sys/dev/usb/usb_fdt_support.c
56
phandle_t child;
sys/dev/usb/usb_fdt_support.c
70
for (child = OF_child(parent); child != 0; child = OF_peer(child)) {
sys/dev/usb/usb_fdt_support.c
71
if (!ofw_bus_node_is_compatible(child, compat))
sys/dev/usb/usb_fdt_support.c
73
proplen = OF_getencprop(child, "reg", &port, sizeof(port));
sys/dev/usb/usb_fdt_support.c
77
return (child);
sys/dev/usb/usb_hub.c
1554
struct usb_device *child;
sys/dev/usb/usb_hub.c
1565
child = usb_bus_port_get_device(bus, hub->ports + x);
sys/dev/usb/usb_hub.c
1567
if (child == NULL) {
sys/dev/usb/usb_hub.c
1574
usb_free_device(child, 0);
sys/dev/usb/usb_hub.c
1618
uhub_find_iface_index(struct usb_hub *hub, device_t child,
sys/dev/usb/usb_hub.c
1637
(iface->subdev == child)) {
sys/dev/usb/usb_hub.c
1651
uhub_child_location(device_t parent, device_t child, struct sbuf *sb)
sys/dev/usb/usb_hub.c
1664
uhub_find_iface_index(hub, child, &res);
sys/dev/usb/usb_hub.c
1689
uhub_get_device_path(device_t bus, device_t child, const char *locator,
sys/dev/usb/usb_hub.c
1706
uhub_find_iface_index(hub, child, &res);
sys/dev/usb/usb_hub.c
1718
return (bus_generic_get_device_path(bus, child, locator, sb));
sys/dev/usb/usb_hub.c
1722
uhub_child_pnpinfo(device_t parent, device_t child, struct sbuf*sb)
sys/dev/usb/usb_hub.c
1737
uhub_find_iface_index(hub, child, &res);
sys/dev/usb/usb_hub.c
259
uhub_tt_buffer_reset_async_locked(struct usb_device *child, struct usb_endpoint *ep)
sys/dev/usb/usb_hub.c
268
if (child == NULL || ep == NULL)
sys/dev/usb/usb_hub.c
271
udev = child->parent_hs_hub;
sys/dev/usb/usb_hub.c
272
port = child->hs_port_no;
sys/dev/usb/usb_hub.c
2763
struct usb_device *child;
sys/dev/usb/usb_hub.c
2789
child = usb_bus_port_get_device(udev->bus,
sys/dev/usb/usb_hub.c
2792
if (child == NULL)
sys/dev/usb/usb_hub.c
2795
if (child->flags.self_suspended)
sys/dev/usb/usb_hub.c
280
(child->speed != USB_SPEED_LOW &&
sys/dev/usb/usb_hub.c
281
child->speed != USB_SPEED_FULL) ||
sys/dev/usb/usb_hub.c
282
(child->flags.usb_mode != USB_MODE_HOST) ||
sys/dev/usb/usb_hub.c
306
((child->address & 0x7F) << 4) |
sys/dev/usb/usb_hub.c
386
struct usb_device *child;
sys/dev/usb/usb_hub.c
403
child = usb_bus_port_get_device(udev->bus, up);
sys/dev/usb/usb_hub.c
404
if (child != NULL &&
sys/dev/usb/usb_hub.c
405
child->flags.usb_mode == USB_MODE_HOST &&
sys/dev/usb/usb_hub.c
406
child->speed == speed)
sys/dev/usb/usb_hub.c
414
uhub_explore_handle_re_enumerate(struct usb_device *child)
sys/dev/usb/usb_hub.c
420
if (child->flags.usb_mode != USB_MODE_HOST)
sys/dev/usb/usb_hub.c
423
do_unlock = usbd_enum_lock(child);
sys/dev/usb/usb_hub.c
424
switch (child->re_enumerate_wait) {
sys/dev/usb/usb_hub.c
426
err = usbd_set_config_index(child,
sys/dev/usb/usb_hub.c
432
if (child->parent_hub == NULL) {
sys/dev/usb/usb_hub.c
437
err = usbd_req_re_enumerate(child, NULL);
sys/dev/usb/usb_hub.c
441
usb_get_langid(child);
sys/dev/usb/usb_hub.c
442
usb_set_device_strings(child);
sys/dev/usb/usb_hub.c
445
err = usbd_set_config_index(child, 0);
sys/dev/usb/usb_hub.c
448
err = usb_probe_and_attach(child,
sys/dev/usb/usb_hub.c
451
child->re_enumerate_wait = USB_RE_ENUM_DONE;
sys/dev/usb/usb_hub.c
456
err = usbd_set_config_index(child,
sys/dev/usb/usb_hub.c
462
if (child->parent_hub == NULL) {
sys/dev/usb/usb_hub.c
468
err = usbd_req_clear_port_feature(child->parent_hub,
sys/dev/usb/usb_hub.c
469
NULL, child->port_no, UHF_PORT_ENABLE);
sys/dev/usb/usb_hub.c
475
child->re_enumerate_wait = USB_RE_ENUM_DONE;
sys/dev/usb/usb_hub.c
479
err = usbd_set_config_index(child,
sys/dev/usb/usb_hub.c
480
child->next_config_index);
sys/dev/usb/usb_hub.c
485
err = usb_probe_and_attach(child,
sys/dev/usb/usb_hub.c
488
child->re_enumerate_wait = USB_RE_ENUM_DONE;
sys/dev/usb/usb_hub.c
492
child->re_enumerate_wait = USB_RE_ENUM_DONE;
sys/dev/usb/usb_hub.c
496
usbd_enum_unlock(child);
sys/dev/usb/usb_hub.c
510
struct usb_device *child;
sys/dev/usb/usb_hub.c
521
child = usb_bus_port_get_device(bus, up);
sys/dev/usb/usb_hub.c
522
if (child == NULL) {
sys/dev/usb/usb_hub.c
527
uhub_explore_handle_re_enumerate(child);
sys/dev/usb/usb_hub.c
531
if (child->driver_added_refcount != refcount) {
sys/dev/usb/usb_hub.c
532
child->driver_added_refcount = refcount;
sys/dev/usb/usb_hub.c
533
err = usb_probe_and_attach(child,
sys/dev/usb/usb_hub.c
541
if (child->flags.usb_mode == USB_MODE_DEVICE)
sys/dev/usb/usb_hub.c
542
usbd_ctrl_transfer_setup(child);
sys/dev/usb/usb_hub.c
546
if (child->hub)
sys/dev/usb/usb_hub.c
547
err = (child->hub->explore) (child);
sys/dev/usb/usb_hub.c
601
struct usb_device *child;
sys/dev/usb/usb_hub.c
613
child = usb_bus_port_get_device(udev->bus,
sys/dev/usb/usb_hub.c
628
if (child != NULL) {
sys/dev/usb/usb_hub.c
632
usb_free_device(child, 0);
sys/dev/usb/usb_hub.c
633
child = NULL;
sys/dev/usb/usb_hub.c
813
child = usb_alloc_device(sc->sc_dev, udev->bus, udev,
sys/dev/usb/usb_hub.c
815
if (child == NULL) {
sys/dev/usb/usb_hub.c
822
if (child != NULL) {
sys/dev/usb/usb_hub.c
826
usb_free_device(child, 0);
sys/dev/usb/usb_hub.c
827
child = NULL;
sys/dev/usb/usb_hub.c
875
struct usb_device *child;
sys/dev/usb/usb_hub.c
883
child = usb_bus_port_get_device(udev->bus,
sys/dev/usb/usb_hub.c
934
if (child) {
sys/dev/usb/usb_hub.c
941
usb_dev_resume_peer(child);
sys/dev/usb/usb_hub.c
942
else if (child->flags.usb_mode == USB_MODE_DEVICE)
sys/dev/usb/usb_hub.c
943
usb_dev_suspend_peer(child);
sys/dev/usb/usb_hub_acpi.c
522
acpi_uhub_read_ivar(device_t dev, device_t child, int idx, uintptr_t *res)
sys/dev/usb/usb_hub_acpi.c
529
uhub_find_iface_index(sc->usc.sc_udev->hub, child, &hres);
sys/dev/usb/usb_hub_acpi.c
543
acpi_uhub_child_location(device_t parent, device_t child, struct sbuf *sb)
sys/dev/usb/usb_hub_acpi.c
547
uhub_child_location(parent, child, sb);
sys/dev/usb/usb_hub_acpi.c
549
ah = acpi_get_handle(child);
sys/dev/usb/usb_hub_acpi.c
556
acpi_uhub_get_device_path(device_t bus, device_t child, const char *locator, struct sbuf *sb)
sys/dev/usb/usb_hub_acpi.c
559
return (acpi_get_acpi_device_path(bus, child, locator, sb));
sys/dev/usb/usb_hub_acpi.c
562
return (uhub_get_device_path(bus, child, locator, sb));
sys/dev/usb/usb_hub_private.h
76
uhub_find_iface_index(struct usb_hub *hub, device_t child,
sys/dev/usb/wlan/if_uath.c
2161
struct sysctl_oid_list *child;
sys/dev/usb/wlan/if_uath.c
2167
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->sc_dev));
sys/dev/usb/wlan/if_uath.c
2169
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/usb/wlan/if_uath.c
2171
child = SYSCTL_CHILDREN(tree);
sys/dev/usb/wlan/if_uath.c
2172
UATH_SYSCTL_STAT_ADD32(ctx, child, "badchunkseqnum",
sys/dev/usb/wlan/if_uath.c
2174
UATH_SYSCTL_STAT_ADD32(ctx, child, "invalidlen", &stats->st_invalidlen,
sys/dev/usb/wlan/if_uath.c
2176
UATH_SYSCTL_STAT_ADD32(ctx, child, "multichunk", &stats->st_multichunk,
sys/dev/usb/wlan/if_uath.c
2178
UATH_SYSCTL_STAT_ADD32(ctx, child, "toobigrxpkt",
sys/dev/usb/wlan/if_uath.c
2180
UATH_SYSCTL_STAT_ADD32(ctx, child, "stopinprogress",
sys/dev/usb/wlan/if_uath.c
2182
UATH_SYSCTL_STAT_ADD32(ctx, child, "crcerrs", &stats->st_crcerr,
sys/dev/usb/wlan/if_uath.c
2184
UATH_SYSCTL_STAT_ADD32(ctx, child, "phyerr", &stats->st_phyerr,
sys/dev/usb/wlan/if_uath.c
2186
UATH_SYSCTL_STAT_ADD32(ctx, child, "decrypt_crcerr",
sys/dev/usb/wlan/if_uath.c
2188
UATH_SYSCTL_STAT_ADD32(ctx, child, "decrypt_micerr",
sys/dev/usb/wlan/if_uath.c
2190
UATH_SYSCTL_STAT_ADD32(ctx, child, "decomperr", &stats->st_decomperr,
sys/dev/usb/wlan/if_uath.c
2192
UATH_SYSCTL_STAT_ADD32(ctx, child, "keyerr", &stats->st_keyerr,
sys/dev/usb/wlan/if_uath.c
2194
UATH_SYSCTL_STAT_ADD32(ctx, child, "err", &stats->st_err,
sys/dev/usb/wlan/if_uath.c
2197
UATH_SYSCTL_STAT_ADD32(ctx, child, "cmd_active",
sys/dev/usb/wlan/if_uath.c
2199
UATH_SYSCTL_STAT_ADD32(ctx, child, "cmd_inactive",
sys/dev/usb/wlan/if_uath.c
2201
UATH_SYSCTL_STAT_ADD32(ctx, child, "cmd_pending",
sys/dev/usb/wlan/if_uath.c
2203
UATH_SYSCTL_STAT_ADD32(ctx, child, "cmd_waiting",
sys/dev/usb/wlan/if_uath.c
2205
UATH_SYSCTL_STAT_ADD32(ctx, child, "rx_active",
sys/dev/usb/wlan/if_uath.c
2207
UATH_SYSCTL_STAT_ADD32(ctx, child, "rx_inactive",
sys/dev/usb/wlan/if_uath.c
2209
UATH_SYSCTL_STAT_ADD32(ctx, child, "tx_active",
sys/dev/usb/wlan/if_uath.c
2211
UATH_SYSCTL_STAT_ADD32(ctx, child, "tx_inactive",
sys/dev/usb/wlan/if_uath.c
2213
UATH_SYSCTL_STAT_ADD32(ctx, child, "tx_pending",
sys/dev/usb/wlan/if_upgt.c
2032
struct sysctl_oid_list *child;
sys/dev/usb/wlan/if_upgt.c
2038
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->sc_dev));
sys/dev/usb/wlan/if_upgt.c
2040
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/usb/wlan/if_upgt.c
2042
child = SYSCTL_CHILDREN(tree);
sys/dev/usb/wlan/if_upgt.c
2043
UPGT_SYSCTL_STAT_ADD32(ctx, child, "tx_active",
sys/dev/usb/wlan/if_upgt.c
2045
UPGT_SYSCTL_STAT_ADD32(ctx, child, "tx_inactive",
sys/dev/usb/wlan/if_upgt.c
2047
UPGT_SYSCTL_STAT_ADD32(ctx, child, "tx_pending",
sys/dev/usb/wlan/if_urtw.c
4377
struct sysctl_oid_list *child, *parent;
sys/dev/usb/wlan/if_urtw.c
4382
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->sc_dev));
sys/dev/usb/wlan/if_urtw.c
4384
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/usb/wlan/if_urtw.c
4391
child = SYSCTL_CHILDREN(tree);
sys/dev/usb/wlan/if_urtw.c
4392
URTW_SYSCTL_STAT_ADD32(ctx, child, "1m", &stats->txrates[0],
sys/dev/usb/wlan/if_urtw.c
4394
URTW_SYSCTL_STAT_ADD32(ctx, child, "2m", &stats->txrates[1],
sys/dev/usb/wlan/if_urtw.c
4396
URTW_SYSCTL_STAT_ADD32(ctx, child, "5.5m", &stats->txrates[2],
sys/dev/usb/wlan/if_urtw.c
4398
URTW_SYSCTL_STAT_ADD32(ctx, child, "6m", &stats->txrates[4],
sys/dev/usb/wlan/if_urtw.c
4400
URTW_SYSCTL_STAT_ADD32(ctx, child, "9m", &stats->txrates[5],
sys/dev/usb/wlan/if_urtw.c
4402
URTW_SYSCTL_STAT_ADD32(ctx, child, "11m", &stats->txrates[3],
sys/dev/usb/wlan/if_urtw.c
4404
URTW_SYSCTL_STAT_ADD32(ctx, child, "12m", &stats->txrates[6],
sys/dev/usb/wlan/if_urtw.c
4406
URTW_SYSCTL_STAT_ADD32(ctx, child, "18m", &stats->txrates[7],
sys/dev/usb/wlan/if_urtw.c
4408
URTW_SYSCTL_STAT_ADD32(ctx, child, "24m", &stats->txrates[8],
sys/dev/usb/wlan/if_urtw.c
4410
URTW_SYSCTL_STAT_ADD32(ctx, child, "36m", &stats->txrates[9],
sys/dev/usb/wlan/if_urtw.c
4412
URTW_SYSCTL_STAT_ADD32(ctx, child, "48m", &stats->txrates[10],
sys/dev/usb/wlan/if_urtw.c
4414
URTW_SYSCTL_STAT_ADD32(ctx, child, "54m", &stats->txrates[11],
sys/dev/vge/if_vge.c
2481
struct sysctl_oid_list *child, *parent;
sys/dev/vge/if_vge.c
2487
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->vge_dev));
sys/dev/vge/if_vge.c
2489
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "int_holdoff",
sys/dev/vge/if_vge.c
2491
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "rx_coal_pkt",
sys/dev/vge/if_vge.c
2493
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "tx_coal_pkt",
sys/dev/vge/if_vge.c
2507
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/vge/if_vge.c
2514
child = SYSCTL_CHILDREN(tree);
sys/dev/vge/if_vge.c
2515
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames",
sys/dev/vge/if_vge.c
2517
VGE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/vge/if_vge.c
2519
VGE_SYSCTL_STAT_ADD32(ctx, child, "fifo_oflows",
sys/dev/vge/if_vge.c
2521
VGE_SYSCTL_STAT_ADD32(ctx, child, "runts",
sys/dev/vge/if_vge.c
2523
VGE_SYSCTL_STAT_ADD32(ctx, child, "runts_errs",
sys/dev/vge/if_vge.c
2525
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/vge/if_vge.c
2527
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/vge/if_vge.c
2529
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/vge/if_vge.c
2531
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/vge/if_vge.c
2533
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/vge/if_vge.c
2535
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/vge/if_vge.c
2537
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max",
sys/dev/vge/if_vge.c
2539
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_1519_max_errs",
sys/dev/vge/if_vge.c
2541
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_jumbo",
sys/dev/vge/if_vge.c
2543
VGE_SYSCTL_STAT_ADD32(ctx, child, "crcerrs",
sys/dev/vge/if_vge.c
2545
VGE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/vge/if_vge.c
2547
VGE_SYSCTL_STAT_ADD32(ctx, child, "align_errs",
sys/dev/vge/if_vge.c
2549
VGE_SYSCTL_STAT_ADD32(ctx, child, "nobufs",
sys/dev/vge/if_vge.c
2551
VGE_SYSCTL_STAT_ADD32(ctx, child, "sym_errs",
sys/dev/vge/if_vge.c
2553
VGE_SYSCTL_STAT_ADD32(ctx, child, "len_errs",
sys/dev/vge/if_vge.c
2559
child = SYSCTL_CHILDREN(tree);
sys/dev/vge/if_vge.c
2560
VGE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/vge/if_vge.c
2562
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_64",
sys/dev/vge/if_vge.c
2564
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_65_127",
sys/dev/vge/if_vge.c
2566
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_128_255",
sys/dev/vge/if_vge.c
2568
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_256_511",
sys/dev/vge/if_vge.c
2570
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_512_1023",
sys/dev/vge/if_vge.c
2572
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_1024_1518",
sys/dev/vge/if_vge.c
2574
VGE_SYSCTL_STAT_ADD32(ctx, child, "frames_jumbo",
sys/dev/vge/if_vge.c
2576
VGE_SYSCTL_STAT_ADD32(ctx, child, "colls",
sys/dev/vge/if_vge.c
2578
VGE_SYSCTL_STAT_ADD32(ctx, child, "late_colls",
sys/dev/vge/if_vge.c
2580
VGE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/vge/if_vge.c
2583
VGE_SYSCTL_STAT_ADD32(ctx, child, "sqeerrs",
sys/dev/virtio/balloon/virtio_balloon.c
574
struct sysctl_oid_list *child;
sys/dev/virtio/balloon/virtio_balloon.c
579
child = SYSCTL_CHILDREN(tree);
sys/dev/virtio/balloon/virtio_balloon.c
581
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "desired",
sys/dev/virtio/balloon/virtio_balloon.c
585
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "current",
sys/dev/virtio/block/virtio_blk.c
1813
struct sysctl_oid_list *child;
sys/dev/virtio/block/virtio_blk.c
1818
child = SYSCTL_CHILDREN(tree);
sys/dev/virtio/block/virtio_blk.c
1820
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "writecache_mode",
sys/dev/virtio/mmio/virtio_mmio.c
226
device_t child;
sys/dev/virtio/mmio/virtio_mmio.c
247
if ((child = device_add_child(dev, NULL, DEVICE_UNIT_ANY)) == NULL) {
sys/dev/virtio/mmio/virtio_mmio.c
254
sc->vtmmio_child_dev = child;
sys/dev/virtio/mmio/virtio_mmio.c
320
vtmmio_child_detached(device_t dev, device_t child)
sys/dev/virtio/mmio/virtio_mmio.c
331
vtmmio_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/virtio/mmio/virtio_mmio.c
337
if (sc->vtmmio_child_dev != child)
sys/dev/virtio/mmio/virtio_mmio.c
371
vtmmio_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/virtio/mmio/virtio_mmio.c
377
if (sc->vtmmio_child_dev != child)
sys/dev/virtio/mmio/virtio_mmio.c
821
device_t dev, child;
sys/dev/virtio/mmio/virtio_mmio.c
824
child = sc->vtmmio_child_dev;
sys/dev/virtio/mmio/virtio_mmio.c
826
if (device_is_attached(child) || bootverbose == 0)
sys/dev/virtio/mmio/virtio_mmio.c
835
device_t dev, child;
sys/dev/virtio/mmio/virtio_mmio.c
838
child = sc->vtmmio_child_dev;
sys/dev/virtio/mmio/virtio_mmio.c
840
if (child == NULL)
sys/dev/virtio/mmio/virtio_mmio.c
843
if (device_get_state(child) != DS_NOTPRESENT) {
sys/dev/virtio/mmio/virtio_mmio.c
847
if (device_probe(child) != 0) {
sys/dev/virtio/mmio/virtio_mmio.c
852
if (device_attach(child) != 0) {
sys/dev/virtio/mmio/virtio_mmio.c
860
VIRTIO_ATTACH_COMPLETED(child);
sys/dev/virtio/mmio/virtio_mmio_cmdline.c
107
child = BUS_ADD_CHILD(parent, 0, driver->name, id ? id : -1);
sys/dev/virtio/mmio/virtio_mmio_cmdline.c
108
bus_set_resource(child, SYS_RES_MEMORY, 0, baseaddr, sz);
sys/dev/virtio/mmio/virtio_mmio_cmdline.c
109
bus_set_resource(child, SYS_RES_IRQ, 0, irq, 1);
sys/dev/virtio/mmio/virtio_mmio_cmdline.c
110
device_set_driver(child, driver);
sys/dev/virtio/mmio/virtio_mmio_cmdline.c
44
device_t child;
sys/dev/virtio/network/if_vtnet.c
4125
struct sysctl_oid_list *child, struct vtnet_rxq *rxq)
sys/dev/virtio/network/if_vtnet.c
4133
node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/virtio/network/if_vtnet.c
4168
struct sysctl_oid_list *child, struct vtnet_txq *txq)
sys/dev/virtio/network/if_vtnet.c
4176
node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/virtio/network/if_vtnet.c
4209
struct sysctl_oid_list *child;
sys/dev/virtio/network/if_vtnet.c
4215
child = SYSCTL_CHILDREN(tree);
sys/dev/virtio/network/if_vtnet.c
4218
vtnet_setup_rxq_sysctl(ctx, child, &sc->vtnet_rxqs[i]);
sys/dev/virtio/network/if_vtnet.c
4219
vtnet_setup_txq_sysctl(ctx, child, &sc->vtnet_txqs[i]);
sys/dev/virtio/network/if_vtnet.c
4321
struct sysctl_oid_list *child, struct vtnet_softc *sc)
sys/dev/virtio/network/if_vtnet.c
4337
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "mbuf_alloc_failed",
sys/dev/virtio/network/if_vtnet.c
4341
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_frame_too_large",
sys/dev/virtio/network/if_vtnet.c
4344
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_enq_replacement_failed",
sys/dev/virtio/network/if_vtnet.c
4347
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_mergeable_failed",
sys/dev/virtio/network/if_vtnet.c
4350
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_csum_bad_ethtype",
sys/dev/virtio/network/if_vtnet.c
4354
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_csum_bad_ipproto",
sys/dev/virtio/network/if_vtnet.c
4357
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_csum_bad_offset",
sys/dev/virtio/network/if_vtnet.c
4360
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "rx_csum_inaccessible_ipproto",
sys/dev/virtio/network/if_vtnet.c
4363
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_csum_failed",
sys/dev/virtio/network/if_vtnet.c
4367
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_csum_offloaded",
sys/dev/virtio/network/if_vtnet.c
4371
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_task_rescheduled",
sys/dev/virtio/network/if_vtnet.c
4376
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_csum_unknown_ethtype",
sys/dev/virtio/network/if_vtnet.c
4380
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_csum_proto_mismatch",
sys/dev/virtio/network/if_vtnet.c
4384
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_tso_not_tcp",
sys/dev/virtio/network/if_vtnet.c
4387
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_tso_without_csum",
sys/dev/virtio/network/if_vtnet.c
4390
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_defragged",
sys/dev/virtio/network/if_vtnet.c
4393
SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, "tx_defrag_failed",
sys/dev/virtio/network/if_vtnet.c
4396
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_csum_offloaded",
sys/dev/virtio/network/if_vtnet.c
4400
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_tso_offloaded",
sys/dev/virtio/network/if_vtnet.c
4404
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "tx_task_rescheduled",
sys/dev/virtio/network/if_vtnet.c
4445
struct sysctl_oid_list *child;
sys/dev/virtio/network/if_vtnet.c
4450
child = SYSCTL_CHILDREN(tree);
sys/dev/virtio/network/if_vtnet.c
4452
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "max_vq_pairs",
sys/dev/virtio/network/if_vtnet.c
4455
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "req_vq_pairs",
sys/dev/virtio/network/if_vtnet.c
4458
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "act_vq_pairs",
sys/dev/virtio/network/if_vtnet.c
4461
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "features",
sys/dev/virtio/network/if_vtnet.c
4464
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "flags",
sys/dev/virtio/network/if_vtnet.c
4468
vtnet_setup_stat_sysctl(ctx, child, sc);
sys/dev/virtio/pci/virtio_pci.c
172
device_t dev, child;
sys/dev/virtio/pci/virtio_pci.c
176
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/dev/virtio/pci/virtio_pci.c
177
if (child == NULL) {
sys/dev/virtio/pci/virtio_pci.c
182
cn->vtpci_child_dev = child;
sys/dev/virtio/pci/virtio_pci.c
237
device_t dev, child;
sys/dev/virtio/pci/virtio_pci.c
240
child = cn->vtpci_child_dev;
sys/dev/virtio/pci/virtio_pci.c
242
if (device_is_attached(child) || bootverbose == 0)
sys/dev/virtio/pci/virtio_pci.c
931
device_t child;
sys/dev/virtio/pci/virtio_pci.c
934
child = cn->vtpci_child_dev;
sys/dev/virtio/pci/virtio_pci.c
936
if (child != NULL)
sys/dev/virtio/pci/virtio_pci.c
937
VIRTIO_CONFIG_CHANGE(child);
sys/dev/virtio/pci/virtio_pci.c
983
struct sysctl_oid_list *child;
sys/dev/virtio/pci/virtio_pci.c
988
child = SYSCTL_CHILDREN(tree);
sys/dev/virtio/pci/virtio_pci.c
990
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "nvqs",
sys/dev/virtio/pci/virtio_pci.c
993
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "host_features",
sys/dev/virtio/pci/virtio_pci.c
996
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "negotiated_features",
sys/dev/virtio/pci/virtio_pci_legacy.c
306
vtpci_legacy_child_detached(device_t dev, device_t child)
sys/dev/virtio/pci/virtio_pci_legacy.c
320
vtpci_legacy_read_ivar(device_t dev, device_t child, int index,
sys/dev/virtio/pci/virtio_pci_legacy.c
329
if (vtpci_child_device(cn) != child)
sys/dev/virtio/pci/virtio_pci_legacy.c
344
vtpci_legacy_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/virtio/pci/virtio_pci_legacy.c
352
if (vtpci_child_device(cn) != child)
sys/dev/virtio/pci/virtio_pci_legacy.c
622
device_t dev, child;
sys/dev/virtio/pci/virtio_pci_legacy.c
625
child = vtpci_child_device(&sc->vtpci_common);
sys/dev/virtio/pci/virtio_pci_legacy.c
627
if (child == NULL || device_get_state(child) != DS_NOTPRESENT)
sys/dev/virtio/pci/virtio_pci_legacy.c
630
if (device_probe(child) != 0)
sys/dev/virtio/pci/virtio_pci_legacy.c
635
if (device_attach(child) != 0) {
sys/dev/virtio/pci/virtio_pci_legacy.c
638
vtpci_legacy_child_detached(dev, child);
sys/dev/virtio/pci/virtio_pci_legacy.c
641
VIRTIO_ATTACH_COMPLETED(child);
sys/dev/virtio/pci/virtio_pci_modern.c
1133
device_t dev, child;
sys/dev/virtio/pci/virtio_pci_modern.c
1136
child = vtpci_child_device(&sc->vtpci_common);
sys/dev/virtio/pci/virtio_pci_modern.c
1138
if (child == NULL || device_get_state(child) != DS_NOTPRESENT)
sys/dev/virtio/pci/virtio_pci_modern.c
1141
if (device_probe(child) != 0)
sys/dev/virtio/pci/virtio_pci_modern.c
1146
if (device_attach(child) != 0) {
sys/dev/virtio/pci/virtio_pci_modern.c
1149
vtpci_modern_child_detached(dev, child);
sys/dev/virtio/pci/virtio_pci_modern.c
1152
VIRTIO_ATTACH_COMPLETED(child);
sys/dev/virtio/pci/virtio_pci_modern.c
371
vtpci_modern_child_detached(device_t dev, device_t child)
sys/dev/virtio/pci/virtio_pci_modern.c
385
vtpci_modern_read_ivar(device_t dev, device_t child, int index,
sys/dev/virtio/pci/virtio_pci_modern.c
394
if (vtpci_child_device(cn) != child)
sys/dev/virtio/pci/virtio_pci_modern.c
409
vtpci_modern_write_ivar(device_t dev, device_t child, int index,
sys/dev/virtio/pci/virtio_pci_modern.c
418
if (vtpci_child_device(cn) != child)
sys/dev/virtio/scsi/virtio_scsi.c
2308
struct sysctl_oid_list *child;
sys/dev/virtio/scsi/virtio_scsi.c
2314
child = SYSCTL_CHILDREN(tree);
sys/dev/virtio/scsi/virtio_scsi.c
2316
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "debug_level",
sys/dev/virtio/scsi/virtio_scsi.c
2320
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "scsi_cmd_timeouts",
sys/dev/virtio/scsi/virtio_scsi.c
2323
SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "dequeue_no_requests",
sys/dev/virtio/virtio.c
339
virtio_child_pnpinfo(device_t busdev __unused, device_t child, struct sbuf *sb)
sys/dev/virtio/virtio.c
354
"device_type=0x%08x", (unsigned)virtio_get_vendor(child),
sys/dev/virtio/virtio.c
355
(unsigned)virtio_get_device(child),
sys/dev/virtio/virtio.c
356
(unsigned)virtio_get_subvendor(child),
sys/dev/virtio/virtio.c
357
(unsigned)virtio_get_device_type(child));
sys/dev/virtio/virtio.h
116
int virtio_child_pnpinfo(device_t busdev, device_t child, struct sbuf *sb);
sys/dev/vmd/vmd.c
386
sc->psc.child = device_add_child(dev, "pci", DEVICE_UNIT_ANY);
sys/dev/vmd/vmd.c
411
vmd_get_dma_tag(device_t dev, device_t child)
sys/dev/vmd/vmd.c
435
vmd_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/dev/vmd/vmd.c
444
return (bus_generic_alloc_resource(dev, child, type, rid,
sys/dev/vmd/vmd.c
447
res = bus_generic_rman_alloc_resource(dev, child, type, rid, start,
sys/dev/vmd/vmd.c
455
pcib_child_name(child));
sys/dev/vmd/vmd.c
461
pcib_child_name(child));
sys/dev/vmd/vmd.c
469
vmd_adjust_resource(device_t dev, device_t child,
sys/dev/vmd/vmd.c
474
return (bus_generic_adjust_resource(dev, child, r, start, end));
sys/dev/vmd/vmd.c
476
return (bus_generic_rman_adjust_resource(dev, child, r, start, end));
sys/dev/vmd/vmd.c
480
vmd_release_resource(device_t dev, device_t child, struct resource *r)
sys/dev/vmd/vmd.c
484
return (bus_generic_release_resource(dev, child, r));
sys/dev/vmd/vmd.c
486
return (bus_generic_rman_release_resource(dev, child, r));
sys/dev/vmd/vmd.c
490
vmd_activate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/vmd/vmd.c
493
return (bus_generic_activate_resource(dev, child, r));
sys/dev/vmd/vmd.c
495
return (bus_generic_rman_activate_resource(dev, child, r));
sys/dev/vmd/vmd.c
499
vmd_deactivate_resource(device_t dev, device_t child, struct resource *r)
sys/dev/vmd/vmd.c
502
return (bus_generic_deactivate_resource(dev, child, r));
sys/dev/vmd/vmd.c
504
return (bus_generic_rman_deactivate_resource(dev, child, r));
sys/dev/vmd/vmd.c
519
vmd_map_resource(device_t dev, device_t child, struct resource *r,
sys/dev/vmd/vmd.c
547
vmd_unmap_resource(device_t dev, device_t child, struct resource *r,
sys/dev/vmd/vmd.c
560
vmd_route_interrupt(device_t dev, device_t child, int pin)
sys/dev/vmd/vmd.c
568
vmd_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/dev/vmd/vmd.c
577
child, count, maxcount, irqs));
sys/dev/vmd/vmd.c
583
if (u->viu_child == child)
sys/dev/vmd/vmd.c
595
u->viu_child = child;
sys/dev/vmd/vmd.c
606
vmd_release_msi(device_t dev, device_t child, int count, int *irqs)
sys/dev/vmd/vmd.c
613
child, count, irqs));
sys/dev/vmd/vmd.c
617
if (u->viu_child == child) {
sys/dev/vmd/vmd.c
628
vmd_alloc_msix(device_t dev, device_t child, int *irq)
sys/dev/vmd/vmd.c
636
child, irq));
sys/dev/vmd/vmd.c
641
if (u->viu_child == child)
sys/dev/vmd/vmd.c
655
u->viu_child = child;
sys/dev/vmd/vmd.c
665
vmd_release_msix(device_t dev, device_t child, int irq)
sys/dev/vmd/vmd.c
672
child, irq));
sys/dev/vmd/vmd.c
676
if (u->viu_child == child &&
sys/dev/vmd/vmd.c
688
vmd_map_msi(device_t dev, device_t child, int irq, uint64_t *addr, uint32_t *data)
sys/dev/vmd/vmd.c
695
child, irq, addr, data));
sys/dev/vmware/vmxnet3/if_vmx.c
2212
struct sysctl_ctx_list *ctx, struct sysctl_oid_list *child)
sys/dev/vmware/vmxnet3/if_vmx.c
2222
node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/vmware/vmxnet3/if_vmx.c
2253
struct sysctl_ctx_list *ctx, struct sysctl_oid_list *child)
sys/dev/vmware/vmxnet3/if_vmx.c
2263
node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, namebuf,
sys/dev/vmware/vmxnet3/if_vmx.c
2298
struct sysctl_ctx_list *ctx, struct sysctl_oid_list *child)
sys/dev/vmware/vmxnet3/if_vmx.c
2363
struct sysctl_ctx_list *ctx, struct sysctl_oid_list *child)
sys/dev/vmware/vmxnet3/if_vmx.c
2371
vmxnet3_setup_txq_sysctl(&sc->vmx_txq[i], ctx, child);
sys/dev/vmware/vmxnet3/if_vmx.c
2373
vmxnet3_setup_rxq_sysctl(&sc->vmx_rxq[i], ctx, child);
sys/dev/vmware/vmxnet3/if_vmx.c
2375
vmxnet3_setup_debug_sysctl(sc, ctx, child);
sys/dev/vmware/vmxnet3/if_vmx.c
2384
struct sysctl_oid_list *child;
sys/dev/vmware/vmxnet3/if_vmx.c
2389
child = SYSCTL_CHILDREN(tree);
sys/dev/vmware/vmxnet3/if_vmx.c
2391
vmxnet3_setup_queue_sysctl(sc, ctx, child);
sys/dev/vnic/mrml_bridge.c
122
mrmlb_ofw_get_devinfo(device_t bus __unused, device_t child)
sys/dev/vnic/mrml_bridge.c
126
di = device_get_ivars(child);
sys/dev/vnic/mrml_bridge.c
131
mrmlb_ofw_bus_alloc_res(device_t bus, device_t child, int type, int rid,
sys/dev/vnic/mrml_bridge.c
140
if ((di = device_get_ivars(child)) == NULL)
sys/dev/vnic/mrml_bridge.c
177
return (bus_generic_alloc_resource(bus, child, type, rid, start, end,
sys/dev/vnic/mrml_bridge.c
237
device_t child;
sys/dev/vnic/mrml_bridge.c
265
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/dev/vnic/mrml_bridge.c
266
if (child == NULL) {
sys/dev/vnic/mrml_bridge.c
273
device_set_ivars(child, di);
sys/dev/vnic/thunder_bgx_fdt.c
375
phandle_t node, child;
sys/dev/vnic/thunder_bgx_fdt.c
389
for (child = OF_child(node); child > 0; child = OF_peer(child)) {
sys/dev/vnic/thunder_bgx_fdt.c
390
len = OF_getprop(child, "qlm-mode", qlm_mode, sizeof(qlm_mode));
sys/dev/vnic/thunder_bgx_fdt.c
399
len = OF_getprop_alloc(child, "name",
sys/dev/vnic/thunder_bgx_fdt.c
413
if (OF_getencprop(child, "reg", &bgx->lmac[lmac].phyaddr,
sys/dev/vnic/thunder_bgx_fdt.c
422
if (OF_getencprop(child, "phy-handle", &phy,
sys/dev/vnic/thunder_bgx_fdt.c
447
bgx_fdt_get_macaddr(child, bgx->lmac[lmac].mac);
sys/dev/vnic/thunder_mdio_fdt.c
181
mdionexus_ofw_get_devinfo(device_t bus __unused, device_t child)
sys/dev/vnic/thunder_mdio_fdt.c
185
di = device_get_ivars(child);
sys/dev/vnic/thunder_mdio_fdt.c
245
device_t child;
sys/dev/vnic/thunder_mdio_fdt.c
273
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/dev/vnic/thunder_mdio_fdt.c
274
if (child == NULL) {
sys/dev/vnic/thunder_mdio_fdt.c
281
device_set_ivars(child, di);
sys/dev/vte/if_vte.c
541
struct sysctl_oid_list *child, *parent;
sys/dev/vte/if_vte.c
548
child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->vte_dev));
sys/dev/vte/if_vte.c
550
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_rx_mod",
sys/dev/vte/if_vte.c
554
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_tx_mod",
sys/dev/vte/if_vte.c
585
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats",
sys/dev/vte/if_vte.c
592
child = SYSCTL_CHILDREN(tree);
sys/dev/vte/if_vte.c
593
VTE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/vte/if_vte.c
595
VTE_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
sys/dev/vte/if_vte.c
597
VTE_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
sys/dev/vte/if_vte.c
599
VTE_SYSCTL_STAT_ADD32(ctx, child, "runt",
sys/dev/vte/if_vte.c
601
VTE_SYSCTL_STAT_ADD32(ctx, child, "crc_errs",
sys/dev/vte/if_vte.c
603
VTE_SYSCTL_STAT_ADD32(ctx, child, "long_frames",
sys/dev/vte/if_vte.c
606
VTE_SYSCTL_STAT_ADD32(ctx, child, "fifo_full",
sys/dev/vte/if_vte.c
608
VTE_SYSCTL_STAT_ADD32(ctx, child, "desc_unavail",
sys/dev/vte/if_vte.c
610
VTE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/vte/if_vte.c
616
child = SYSCTL_CHILDREN(tree);
sys/dev/vte/if_vte.c
617
VTE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
sys/dev/vte/if_vte.c
619
VTE_SYSCTL_STAT_ADD32(ctx, child, "underruns",
sys/dev/vte/if_vte.c
621
VTE_SYSCTL_STAT_ADD32(ctx, child, "late_colls",
sys/dev/vte/if_vte.c
623
VTE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
sys/dev/xen/bus/xenpv.c
144
xenpv_alloc_physmem(device_t dev, device_t child, int *res_id, size_t size)
sys/dev/xen/bus/xenpv.c
158
child);
sys/dev/xen/bus/xenpv.c
172
res = bus_alloc_resource(child, SYS_RES_MEMORY, res_id,
sys/dev/xen/bus/xenpv.c
186
int error = release_unpopulated_mem(child, res);
sys/dev/xen/bus/xenpv.c
202
xenpv_free_physmem(device_t dev, device_t child, int res_id, struct resource *res)
sys/dev/xen/bus/xenpv.c
215
return (release_unpopulated_mem(child, res));
sys/dev/xen/console/xen_console.c
705
device_t child __unused;
sys/dev/xen/console/xen_console.c
710
child = BUS_ADD_CHILD(parent, 0, driver_name, 0);
sys/dev/xen/pcifront/pcifront.c
470
device_t child;
sys/dev/xen/pcifront/pcifront.c
495
child = device_add_child(dev, "pcib", bus);
sys/dev/xen/pcifront/pcifront.c
496
if (!child) {
sys/dev/xen/pcifront/pcifront.c
568
xpcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/dev/xilinx/axi_quad_spi.c
184
spi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/dev/xilinx/axi_quad_spi.c
198
spibus_get_cs(child, &cs);
sys/dev/xilinx/xlnx_pcib.c
406
xlnx_pcib_fdt_get_id(device_t pci, device_t child, enum pci_id_type type,
sys/dev/xilinx/xlnx_pcib.c
413
return (pcib_get_id(pci, child, type, id));
sys/dev/xilinx/xlnx_pcib.c
417
return (generic_pcie_get_id(pci, child, type, id));
sys/dev/xilinx/xlnx_pcib.c
419
bsf = pci_get_rid(child);
sys/dev/xilinx/xlnx_pcib.c
420
*id = (pci_get_domain(child) << PCI_RID_DOMAIN_SHIFT) | bsf;
sys/dev/xilinx/xlnx_pcib.c
552
xlnx_pcib_alloc_msi(device_t pci, device_t child, int count, int maxcount,
sys/dev/xilinx/xlnx_pcib.c
557
ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child), &msi_parent,
sys/dev/xilinx/xlnx_pcib.c
560
return (intr_alloc_msi(pci, child, msi_parent, count, maxcount,
sys/dev/xilinx/xlnx_pcib.c
565
xlnx_pcib_release_msi(device_t pci, device_t child, int count, int *irqs)
sys/dev/xilinx/xlnx_pcib.c
569
ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child), &msi_parent,
sys/dev/xilinx/xlnx_pcib.c
572
return (intr_release_msi(pci, child, msi_parent, count, irqs));
sys/dev/xilinx/xlnx_pcib.c
576
xlnx_pcib_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
sys/dev/xilinx/xlnx_pcib.c
581
ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child), &msi_parent,
sys/dev/xilinx/xlnx_pcib.c
584
return (intr_map_msi(pci, child, msi_parent, irq, addr, data));
sys/dev/xilinx/xlnx_pcib.c
588
xlnx_pcib_msi_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/dev/xilinx/xlnx_pcib.c
639
xlnx_pcib_msi_release_msi(device_t dev, device_t child, int count,
sys/dev/xilinx/xlnx_pcib.c
662
xlnx_pcib_msi_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/fs/autofs/autofs_vnops.c
212
struct autofs_node *anp, *child;
sys/fs/autofs/autofs_vnops.c
268
error = autofs_node_find(anp, cnp->cn_nameptr, cnp->cn_namelen, &child);
sys/fs/autofs/autofs_vnops.c
284
error = autofs_node_vn(child, mp, cnp->cn_lkflags, vpp);
sys/fs/autofs/autofs_vnops.c
301
struct autofs_node *child;
sys/fs/autofs/autofs_vnops.c
317
ap->a_cnp->cn_namelen, &child);
sys/fs/autofs/autofs_vnops.c
324
error = autofs_node_vn(child, vp->v_mount, LK_EXCLUSIVE, ap->a_vpp);
sys/fs/autofs/autofs_vnops.c
393
struct autofs_node *anp, *child;
sys/fs/autofs/autofs_vnops.c
462
RB_FOREACH(child, autofs_node_tree, &anp->an_children) {
sys/fs/autofs/autofs_vnops.c
468
reclens += autofs_dirent_reclen(child->an_name);
sys/fs/autofs/autofs_vnops.c
480
error = autofs_readdir_one(uio, child->an_name,
sys/fs/autofs/autofs_vnops.c
481
child->an_fileno, &reclen);
sys/fs/fuse/fuse_kernel.h
920
uint64_t child;
sys/i386/bios/smapi.c
140
device_t child;
sys/i386/bios/smapi.c
154
child = BUS_ADD_CHILD(parent, 5, "smapi", DEVICE_UNIT_ANY);
sys/i386/bios/smapi.c
155
device_set_driver(child, driver);
sys/i386/bios/smapi.c
156
bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length);
sys/i386/bios/smapi.c
157
device_set_desc(child, "SMAPI BIOS");
sys/isa/isa_common.c
1002
struct isa_device* idev = DEVTOISA(child);
sys/isa/isa_common.c
1009
isa_pnp_probe(device_t dev, device_t child, struct isa_pnp_id *ids)
sys/isa/isa_common.c
1011
struct isa_device* idev = DEVTOISA(child);
sys/isa/isa_common.c
1023
device_set_desc(child, ids->ip_desc);
sys/isa/isa_common.c
1033
isa_child_pnpinfo(device_t bus, device_t child, struct sbuf *sb)
sys/isa/isa_common.c
1035
struct isa_device *idev = DEVTOISA(child);
sys/isa/isa_common.c
1044
isa_child_location(device_t bus, device_t child, struct sbuf *sb)
sys/isa/isa_common.c
1048
struct isa_device *idev = DEVTOISA(child);
sys/isa/isa_common.c
1115
device_t child;
sys/isa/isa_common.c
1117
child = device_add_child(dev, "isa", DEVICE_UNIT_ANY);
sys/isa/isa_common.c
1118
if (child == NULL)
sys/isa/isa_common.c
119
isa_find_memory(device_t child, struct isa_config *config,
sys/isa/isa_common.c
129
bus_delete_resource(child, SYS_RES_MEMORY, i);
sys/isa/isa_common.c
154
bus_set_resource(child, SYS_RES_MEMORY, i,
sys/isa/isa_common.c
156
res[i] = bus_alloc_resource_any(child,
sys/isa/isa_common.c
180
bus_release_resource(child, SYS_RES_MEMORY,
sys/isa/isa_common.c
193
isa_find_port(device_t child, struct isa_config *config,
sys/isa/isa_common.c
203
bus_delete_resource(child, SYS_RES_IOPORT, i);
sys/isa/isa_common.c
228
bus_set_resource(child, SYS_RES_IOPORT, i,
sys/isa/isa_common.c
230
res[i] = bus_alloc_resource_any(child,
sys/isa/isa_common.c
254
bus_release_resource(child, SYS_RES_IOPORT,
sys/isa/isa_common.c
285
isa_find_irq(device_t child, struct isa_config *config,
sys/isa/isa_common.c
295
bus_delete_resource(child, SYS_RES_IRQ, i);
sys/isa/isa_common.c
314
bus_set_resource(child, SYS_RES_IRQ, i,
sys/isa/isa_common.c
316
res[i] = bus_alloc_resource_any(child,
sys/isa/isa_common.c
337
bus_release_resource(child, SYS_RES_IRQ,
sys/isa/isa_common.c
350
isa_find_drq(device_t child, struct isa_config *config,
sys/isa/isa_common.c
360
bus_delete_resource(child, SYS_RES_DRQ, i);
sys/isa/isa_common.c
379
bus_set_resource(child, SYS_RES_DRQ, i,
sys/isa/isa_common.c
381
res[i] = bus_alloc_resource_any(child,
sys/isa/isa_common.c
402
bus_release_resource(child, SYS_RES_DRQ,
sys/isa/isa_common.c
414
isa_assign_resources(device_t child)
sys/isa/isa_common.c
416
struct isa_device *idev = DEVTOISA(child);
sys/isa/isa_common.c
427
if (!isa_find_memory(child, &ice->ice_config, cfg))
sys/isa/isa_common.c
430
if (!isa_find_port(child, &ice->ice_config, cfg))
sys/isa/isa_common.c
433
if (!isa_find_irq(child, &ice->ice_config, cfg))
sys/isa/isa_common.c
436
if (!isa_find_drq(child, &ice->ice_config, cfg))
sys/isa/isa_common.c
455
bus_print_child_header(device_get_parent(child), child);
sys/isa/isa_common.c
458
isa_print_child(device_get_parent(child), child);
sys/isa/isa_common.c
462
device_disable(child);
sys/isa/isa_common.c
473
isa_claim_resources(device_t dev, device_t child)
sys/isa/isa_common.c
475
struct isa_device *idev = DEVTOISA(child);
sys/isa/isa_common.c
483
resource_list_alloc(rl, dev, child, rle->type, rid,
sys/isa/isa_common.c
496
device_t *children, child;
sys/isa/isa_common.c
537
child = children[i];
sys/isa/isa_common.c
538
idev = DEVTOISA(child);
sys/isa/isa_common.c
543
!isa_assign_resources(child))
sys/isa/isa_common.c
546
if (device_probe_and_attach(child) == 0)
sys/isa/isa_common.c
547
isa_claim_resources(dev, child);
sys/isa/isa_common.c
561
child = children[i];
sys/isa/isa_common.c
562
idev = DEVTOISA(child);
sys/isa/isa_common.c
564
if (device_is_attached(child) ||
sys/isa/isa_common.c
568
err = device_probe_and_attach(child);
sys/isa/isa_common.c
571
device_is_attached(child))
sys/isa/isa_common.c
572
device_printf(child,
sys/isa/isa_common.c
582
child = children[i];
sys/isa/isa_common.c
583
idev = DEVTOISA(child);
sys/isa/isa_common.c
585
if (device_is_attached(child) || TAILQ_EMPTY(&idev->id_configs))
sys/isa/isa_common.c
588
if (isa_assign_resources(child)) {
sys/isa/isa_common.c
589
device_probe_and_attach(child);
sys/isa/isa_common.c
590
isa_claim_resources(dev, child);
sys/isa/isa_common.c
605
device_t child;
sys/isa/isa_common.c
608
child = device_add_child_ordered(dev, order, name, unit);
sys/isa/isa_common.c
609
if (child == NULL)
sys/isa/isa_common.c
610
return (child);
sys/isa/isa_common.c
620
device_set_ivars(child, idev);
sys/isa/isa_common.c
622
return (child);
sys/isa/isa_common.c
626
isa_child_deleted(device_t dev, device_t child)
sys/isa/isa_common.c
628
free(device_get_ivars(child), M_ISADEV);
sys/isa/isa_common.c
666
isa_probe_nomatch(device_t dev, device_t child)
sys/isa/isa_common.c
669
bus_print_child_header(dev, child);
sys/isa/isa_common.c
671
isa_print_all_resources(child);
sys/isa/isa_common.c
672
bus_print_child_footer(dev, child);
sys/isa/isa_common.c
873
isa_child_detached(device_t dev, device_t child)
sys/isa/isa_common.c
875
struct isa_device* idev = DEVTOISA(child);
sys/isa/isa_common.c
878
isa_claim_resources(dev, child);
sys/isa/isa_common.c
901
device_t child = children[i];
sys/isa/isa_common.c
902
struct isa_device *idev = DEVTOISA(child);
sys/isa/isa_common.c
906
if (device_get_state(child) != DS_NOTPRESENT)
sys/isa/isa_common.c
908
if (!device_is_enabled(child))
sys/isa/isa_common.c
917
resource_list_release(rl, dev, child,
sys/isa/isa_common.c
922
if (!isa_assign_resources(child))
sys/isa/isa_common.c
925
device_probe_and_attach(child);
sys/isa/isa_common.c
928
isa_claim_resources(dev, child);
sys/isa/isa_common.c
935
isa_set_resource(device_t dev, device_t child, int type, int rid,
sys/isa/isa_common.c
938
struct isa_device* idev = DEVTOISA(child);
sys/isa/isa_common.c
961
isa_get_resource_list (device_t dev, device_t child)
sys/isa/isa_common.c
963
struct isa_device* idev = DEVTOISA(child);
sys/isa/isa_common.c
973
isa_add_config(device_t dev, device_t child, int priority,
sys/isa/isa_common.c
976
struct isa_device* idev = DEVTOISA(child);
sys/isa/isa_common.c
999
isa_set_config_callback(device_t dev, device_t child, isa_config_cb *fn,
sys/isa/isa_common.h
71
extern struct resource *isa_alloc_resource(device_t bus, device_t child,
sys/isa/isa_common.h
74
extern int isa_release_resource(device_t bus, device_t child,
sys/isa/isahint.c
103
isa_hint_device_unit(device_t bus, device_t child, const char *name, int *unitp)
sys/isa/isahint.c
145
if (isa_match_resource_hint(child, SYS_RES_IOPORT,
sys/isa/isahint.c
152
if (isa_match_resource_hint(child, SYS_RES_MEMORY,
sys/isa/isahint.c
161
if (isa_match_resource_hint(child, SYS_RES_IRQ, value))
sys/isa/isahint.c
167
if (isa_match_resource_hint(child, SYS_RES_DRQ, value))
sys/isa/isahint.c
41
device_t child;
sys/isa/isahint.c
56
child = BUS_ADD_CHILD(parent, order, name, unit);
sys/isa/isahint.c
57
if (child == 0)
sys/isa/isahint.c
65
bus_set_resource(child, SYS_RES_IOPORT, 0, start, count);
sys/isa/isahint.c
72
bus_set_resource(child, SYS_RES_MEMORY, 0, start, count);
sys/isa/isahint.c
75
bus_set_resource(child, SYS_RES_IRQ, 0, start, 1);
sys/isa/isahint.c
78
bus_set_resource(child, SYS_RES_DRQ, 0, start, 1);
sys/isa/isahint.c
81
device_disable(child);
sys/isa/isahint.c
83
isa_set_configattr(child, (isa_get_configattr(child)|ISACFGATTR_HINTS));
sys/isa/isavar.h
186
void isa_hint_device_unit(device_t bus, device_t child, const char *name,
sys/kern/kern_conf.c
1199
struct cdev *child;
sys/kern/kern_conf.c
1208
LIST_FOREACH(child, &dev->si_children, si_siblings)
sys/kern/kern_conf.c
1209
delist_dev_locked(child);
sys/kern/kern_cpuset.c
468
domainset_valid(const struct domainset *parent, const struct domainset *child)
sys/kern/kern_cpuset.c
470
if (child->ds_policy != DOMAINSET_POLICY_PREFER)
sys/kern/kern_cpuset.c
471
return (DOMAINSET_SUBSET(&parent->ds_mask, &child->ds_mask));
sys/kern/kern_cpuset.c
472
return (DOMAINSET_ISSET(child->ds_prefer, &parent->ds_mask));
sys/kern/kern_cpuset.c
477
const struct domainset *child)
sys/kern/kern_cpuset.c
479
if (child->ds_policy != DOMAINSET_POLICY_PREFER)
sys/kern/kern_cpuset.c
480
return (DOMAINSET_OVERLAP(&parent->ds_mask, &child->ds_mask));
sys/kern/kern_cpuset.c
481
return (DOMAINSET_ISSET(child->ds_prefer, &parent->ds_mask));
sys/kern/kern_exit.c
110
proc_realparent(struct proc *child)
sys/kern/kern_exit.c
115
if ((child->p_treeflag & P_TREE_ORPHANED) == 0)
sys/kern/kern_exit.c
116
return (child->p_pptr->p_pid == child->p_oppid ?
sys/kern/kern_exit.c
117
child->p_pptr : child->p_reaper);
sys/kern/kern_exit.c
118
for (p = child; (p->p_treeflag & P_TREE_FIRST_ORPHAN) == 0;) {
sys/kern/kern_exit.c
1585
proc_add_orphan(struct proc *child, struct proc *parent)
sys/kern/kern_exit.c
1589
KASSERT((child->p_flag & P_TRACED) != 0,
sys/kern/kern_exit.c
1593
child->p_treeflag |= P_TREE_FIRST_ORPHAN;
sys/kern/kern_exit.c
1594
LIST_INSERT_HEAD(&parent->p_orphans, child, p_orphan);
sys/kern/kern_exit.c
1597
child, p_orphan);
sys/kern/kern_exit.c
1599
child->p_treeflag |= P_TREE_ORPHANED;
sys/kern/kern_exit.c
1607
proc_reparent(struct proc *child, struct proc *parent, bool set_oppid)
sys/kern/kern_exit.c
1611
PROC_LOCK_ASSERT(child, MA_OWNED);
sys/kern/kern_exit.c
1612
if (child->p_pptr == parent)
sys/kern/kern_exit.c
1615
PROC_LOCK(child->p_pptr);
sys/kern/kern_exit.c
1616
sigqueue_take(child->p_ksi);
sys/kern/kern_exit.c
1617
PROC_UNLOCK(child->p_pptr);
sys/kern/kern_exit.c
1618
LIST_REMOVE(child, p_sibling);
sys/kern/kern_exit.c
1619
LIST_INSERT_HEAD(&parent->p_children, child, p_sibling);
sys/kern/kern_exit.c
1621
proc_clear_orphan(child);
sys/kern/kern_exit.c
1622
if ((child->p_flag & P_TRACED) != 0) {
sys/kern/kern_exit.c
1623
proc_add_orphan(child, child->p_pptr);
sys/kern/kern_exit.c
1626
child->p_pptr = parent;
sys/kern/kern_exit.c
1628
child->p_oppid = parent->p_pid;
sys/kern/kern_racct.c
712
racct_proc_fork(struct proc *parent, struct proc *child)
sys/kern/kern_racct.c
722
racct_create(&child->p_racct);
sys/kern/kern_racct.c
725
PROC_LOCK(child);
sys/kern/kern_racct.c
729
error = rctl_proc_fork(parent, child);
sys/kern/kern_racct.c
734
child->p_throttled = 0;
sys/kern/kern_racct.c
744
error = racct_set_locked(child, i,
sys/kern/kern_racct.c
750
error = racct_add_locked(child, RACCT_NPROC, 1, 0);
sys/kern/kern_racct.c
751
error += racct_add_locked(child, RACCT_NTHR, 1, 0);
sys/kern/kern_racct.c
755
PROC_UNLOCK(child);
sys/kern/kern_racct.c
759
racct_proc_exit(child);
sys/kern/kern_racct.c
769
racct_proc_fork_done(struct proc *child)
sys/kern/kern_racct.c
776
PROC_LOCK(child);
sys/kern/kern_racct.c
778
rctl_enforce(child, RACCT_NPROC, 0);
sys/kern/kern_racct.c
779
rctl_enforce(child, RACCT_NTHR, 0);
sys/kern/kern_racct.c
781
PROC_UNLOCK(child);
sys/kern/kern_rctl.c
2106
rctl_proc_fork(struct proc *parent, struct proc *child)
sys/kern/kern_rctl.c
2116
LIST_INIT(&child->p_racct->r_rule_links);
sys/kern/kern_rctl.c
2131
rule->rr_subject.rs_proc = child;
sys/kern/kern_rctl.c
2132
error = rctl_racct_add_rule_locked(child->p_racct,
sys/kern/kern_rctl.c
2138
error = rctl_racct_add_rule_locked(child->p_racct,
sys/kern/kern_rctl.c
2148
while (!LIST_EMPTY(&child->p_racct->r_rule_links)) {
sys/kern/kern_rctl.c
2149
link = LIST_FIRST(&child->p_racct->r_rule_links);
sys/kern/sched_4bsd.c
784
sched_4bsd_exit_thread(struct thread *td, struct thread *child)
sys/kern/sched_4bsd.c
787
KTR_STATE1(KTR_SCHED, "thread", sched_tdname(child), "exit",
sys/kern/sched_4bsd.c
788
"prio:%d", child->td_priority);
sys/kern/sched_4bsd.c
791
td_get_sched(child)->ts_estcpu);
sys/kern/sched_4bsd.c
793
thread_lock(child);
sys/kern/sched_4bsd.c
794
if ((child->td_flags & TDF_NOLOAD) == 0)
sys/kern/sched_4bsd.c
796
thread_unlock(child);
sys/kern/sched_shim.c
49
struct thread *, child)
sys/kern/sched_shim.c
52
struct thread *, child)
sys/kern/sched_ule.c
2512
sched_ule_fork(struct thread *td, struct thread *child)
sys/kern/sched_ule.c
2516
sched_fork_thread(td, child);
sys/kern/sched_ule.c
2520
sched_interact_fork(child);
sys/kern/sched_ule.c
2521
sched_priority(child);
sys/kern/sched_ule.c
2531
sched_ule_fork_thread(struct thread *td, struct thread *child)
sys/kern/sched_ule.c
2543
ts2 = td_get_sched(child);
sys/kern/sched_ule.c
2544
child->td_oncpu = NOCPU;
sys/kern/sched_ule.c
2545
child->td_lastcpu = NOCPU;
sys/kern/sched_ule.c
2546
child->td_lock = TDQ_LOCKPTR(tdq);
sys/kern/sched_ule.c
2547
child->td_cpuset = cpuset_ref(td->td_cpuset);
sys/kern/sched_ule.c
2548
child->td_domain.dr_policy = td->td_cpuset->cs_domain;
sys/kern/sched_ule.c
2560
child->td_priority = child->td_base_pri;
sys/kern/sched_ule.c
2590
sched_ule_exit(struct proc *p, struct thread *child)
sys/kern/sched_ule.c
2594
KTR_STATE1(KTR_SCHED, "thread", sched_tdname(child), "proc exit",
sys/kern/sched_ule.c
2595
"prio:%d", child->td_priority);
sys/kern/sched_ule.c
2598
sched_exit_thread(td, child);
sys/kern/sched_ule.c
2608
sched_ule_exit_thread(struct thread *td, struct thread *child)
sys/kern/sched_ule.c
2611
KTR_STATE1(KTR_SCHED, "thread", sched_tdname(child), "thread exit",
sys/kern/sched_ule.c
2612
"prio:%d", child->td_priority);
sys/kern/sched_ule.c
2619
td_get_sched(td)->ts_runtime += td_get_sched(child)->ts_runtime;
sys/kern/subr_bus.c
1432
device_print_child(device_t dev, device_t child)
sys/kern/subr_bus.c
1436
if (device_is_alive(child))
sys/kern/subr_bus.c
1437
retval += BUS_PRINT_CHILD(dev, child);
sys/kern/subr_bus.c
1439
retval += device_printf(child, " not found\n");
sys/kern/subr_bus.c
1489
device_t child;
sys/kern/subr_bus.c
1497
child = make_device(dev, name, unit);
sys/kern/subr_bus.c
1498
if (child == NULL)
sys/kern/subr_bus.c
1499
return (child);
sys/kern/subr_bus.c
1500
child->order = order;
sys/kern/subr_bus.c
1512
TAILQ_INSERT_BEFORE(place, child, link);
sys/kern/subr_bus.c
1518
TAILQ_INSERT_TAIL(&dev->children, child, link);
sys/kern/subr_bus.c
1522
return (child);
sys/kern/subr_bus.c
1539
device_delete_child(device_t dev, device_t child)
sys/kern/subr_bus.c
1544
PDEBUG(("%s from %s", DEVICENAME(child), DEVICENAME(dev)));
sys/kern/subr_bus.c
1550
if ((error = device_detach(child)) != 0)
sys/kern/subr_bus.c
1554
while ((grandchild = TAILQ_FIRST(&child->children)) != NULL) {
sys/kern/subr_bus.c
1555
error = device_delete_child(child, grandchild);
sys/kern/subr_bus.c
1560
device_destroy_props(child);
sys/kern/subr_bus.c
1561
if (child->devclass)
sys/kern/subr_bus.c
1562
devclass_delete_device(child->devclass, child);
sys/kern/subr_bus.c
1563
if (child->parent)
sys/kern/subr_bus.c
1564
BUS_CHILD_DELETED(dev, child);
sys/kern/subr_bus.c
1565
TAILQ_REMOVE(&dev->children, child, link);
sys/kern/subr_bus.c
1566
TAILQ_REMOVE(&bus_data_devices, child, devlink);
sys/kern/subr_bus.c
1567
kobj_delete((kobj_t) child, M_BUS);
sys/kern/subr_bus.c
1589
device_t child;
sys/kern/subr_bus.c
1596
while ((child = TAILQ_FIRST(&dev->children)) != NULL) {
sys/kern/subr_bus.c
1597
error = device_delete_child(dev, child);
sys/kern/subr_bus.c
1599
PDEBUG(("Failed deleting %s", DEVICENAME(child)));
sys/kern/subr_bus.c
1625
device_t child;
sys/kern/subr_bus.c
1632
child = devclass_get_device(dc, unit);
sys/kern/subr_bus.c
1633
if (child && child->parent == dev)
sys/kern/subr_bus.c
1634
return (child);
sys/kern/subr_bus.c
1637
child = devclass_get_device(dc, unit);
sys/kern/subr_bus.c
1638
if (child && child->parent == dev)
sys/kern/subr_bus.c
1639
return (child);
sys/kern/subr_bus.c
1676
device_probe_child(device_t dev, device_t child)
sys/kern/subr_bus.c
1683
int hasclass = (child->devclass != NULL);
sys/kern/subr_bus.c
1694
if (child->state == DS_ALIVE)
sys/kern/subr_bus.c
1698
for (dl = first_matching_driver(dc, child);
sys/kern/subr_bus.c
1700
dl = next_matching_driver(dc, child, dl)) {
sys/kern/subr_bus.c
1706
result = device_set_driver(child, dl->driver);
sys/kern/subr_bus.c
1712
if (device_set_devclass(child,
sys/kern/subr_bus.c
1715
device_get_name(child);
sys/kern/subr_bus.c
1723
(void)device_set_driver(child, NULL);
sys/kern/subr_bus.c
1729
resource_int_value(dl->driver->name, child->unit,
sys/kern/subr_bus.c
1730
"flags", &child->devflags);
sys/kern/subr_bus.c
1732
result = DEVICE_PROBE(child);
sys/kern/subr_bus.c
1745
child->devflags = 0;
sys/kern/subr_bus.c
1747
(void)device_set_devclass(child, NULL);
sys/kern/subr_bus.c
1753
device_verbose(child);
sys/kern/subr_bus.c
1761
!(child->flags & DF_FIXEDCLASS)) {
sys/kern/subr_bus.c
1770
(void)device_set_driver(child, NULL);
sys/kern/subr_bus.c
1794
result = device_set_driver(child, best->driver);
sys/kern/subr_bus.c
1797
if (!child->devclass) {
sys/kern/subr_bus.c
1798
result = device_set_devclass(child, best->driver->name);
sys/kern/subr_bus.c
1800
(void)device_set_driver(child, NULL);
sys/kern/subr_bus.c
1804
resource_int_value(best->driver->name, child->unit,
sys/kern/subr_bus.c
1805
"flags", &child->devflags);
sys/kern/subr_bus.c
1811
result = DEVICE_PROBE(child);
sys/kern/subr_bus.c
1814
(void)device_set_devclass(child, NULL);
sys/kern/subr_bus.c
1815
(void)device_set_driver(child, NULL);
sys/kern/subr_bus.c
1820
child->state = DS_ALIVE;
sys/kern/subr_bus.c
1854
device_t child;
sys/kern/subr_bus.c
1858
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
1876
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
1877
list[count] = child;
sys/kern/subr_bus.c
3098
resource_list_reserve(struct resource_list *rl, device_t bus, device_t child,
sys/kern/subr_bus.c
3102
int passthrough = (device_get_parent(child) != bus);
sys/kern/subr_bus.c
3112
r = resource_list_alloc(rl, bus, child, type, rid, start, end, count,
sys/kern/subr_bus.c
3155
resource_list_alloc(struct resource_list *rl, device_t bus, device_t child,
sys/kern/subr_bus.c
3159
int passthrough = (device_get_parent(child) != bus);
sys/kern/subr_bus.c
3163
return (BUS_ALLOC_RESOURCE(device_get_parent(bus), child,
sys/kern/subr_bus.c
3177
bus_activate_resource(child, type, rid,
sys/kern/subr_bus.c
3185
type, device_get_nameunit(child));
sys/kern/subr_bus.c
3195
rle->res = BUS_ALLOC_RESOURCE(device_get_parent(bus), child,
sys/kern/subr_bus.c
3226
resource_list_release(struct resource_list *rl, device_t bus, device_t child,
sys/kern/subr_bus.c
3230
int passthrough = (device_get_parent(child) != bus);
sys/kern/subr_bus.c
3234
return (BUS_RELEASE_RESOURCE(device_get_parent(bus), child,
sys/kern/subr_bus.c
3247
error = bus_deactivate_resource(child, res);
sys/kern/subr_bus.c
3257
error = BUS_RELEASE_RESOURCE(device_get_parent(bus), child, res);
sys/kern/subr_bus.c
3282
device_t child, int type)
sys/kern/subr_bus.c
3297
error = resource_list_release(rl, bus, child, rle->res);
sys/kern/subr_bus.c
3322
resource_list_unreserve(struct resource_list *rl, device_t bus, device_t child,
sys/kern/subr_bus.c
3326
int passthrough = (device_get_parent(child) != bus);
sys/kern/subr_bus.c
3341
return (resource_list_release(rl, bus, child, rle->res));
sys/kern/subr_bus.c
3487
device_t child;
sys/kern/subr_bus.c
3489
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
3490
device_probe_and_attach(child);
sys/kern/subr_bus.c
3549
device_t child;
sys/kern/subr_bus.c
3556
TAILQ_FOREACH_REVERSE(child, &dev->children, device_list, link) {
sys/kern/subr_bus.c
3557
if ((error = device_detach(child)) != 0)
sys/kern/subr_bus.c
3574
device_t child;
sys/kern/subr_bus.c
3580
TAILQ_FOREACH_REVERSE(child, &dev->children, device_list, link) {
sys/kern/subr_bus.c
3581
device_shutdown(child);
sys/kern/subr_bus.c
3593
bus_generic_suspend_child(device_t dev, device_t child)
sys/kern/subr_bus.c
3597
error = DEVICE_SUSPEND(child);
sys/kern/subr_bus.c
3600
child->flags |= DF_SUSPENDED;
sys/kern/subr_bus.c
3603
device_get_nameunit(child), error);
sys/kern/subr_bus.c
3615
bus_generic_resume_child(device_t dev, device_t child)
sys/kern/subr_bus.c
3617
DEVICE_RESUME(child);
sys/kern/subr_bus.c
3618
child->flags &= ~DF_SUSPENDED;
sys/kern/subr_bus.c
3636
device_t child;
sys/kern/subr_bus.c
3645
TAILQ_FOREACH_REVERSE(child, &dev->children, device_list, link) {
sys/kern/subr_bus.c
3646
error = BUS_SUSPEND_CHILD(dev, child);
sys/kern/subr_bus.c
3648
child = TAILQ_NEXT(child, link);
sys/kern/subr_bus.c
3649
if (child != NULL) {
sys/kern/subr_bus.c
3650
TAILQ_FOREACH_FROM(child, &dev->children, link)
sys/kern/subr_bus.c
3651
BUS_RESUME_CHILD(dev, child);
sys/kern/subr_bus.c
3668
device_t child;
sys/kern/subr_bus.c
3670
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
3671
BUS_RESUME_CHILD(dev, child);
sys/kern/subr_bus.c
3690
device_t child;
sys/kern/subr_bus.c
3694
TAILQ_FOREACH(child, &dev->children,link) {
sys/kern/subr_bus.c
3695
BUS_RESET_POST(dev, child);
sys/kern/subr_bus.c
3697
device_probe_and_attach(child) :
sys/kern/subr_bus.c
3698
BUS_RESUME_CHILD(dev, child);
sys/kern/subr_bus.c
3706
bus_helper_reset_prepare_rollback(device_t dev, device_t child, int flags)
sys/kern/subr_bus.c
3708
child = TAILQ_NEXT(child, link);
sys/kern/subr_bus.c
3709
if (child == NULL)
sys/kern/subr_bus.c
3711
TAILQ_FOREACH_FROM(child, &dev->children,link) {
sys/kern/subr_bus.c
3712
BUS_RESET_POST(dev, child);
sys/kern/subr_bus.c
3714
device_probe_and_attach(child);
sys/kern/subr_bus.c
3716
BUS_RESUME_CHILD(dev, child);
sys/kern/subr_bus.c
3734
device_t child;
sys/kern/subr_bus.c
3740
TAILQ_FOREACH_REVERSE(child, &dev->children, device_list, link) {
sys/kern/subr_bus.c
3742
error = device_get_state(child) == DS_ATTACHED ?
sys/kern/subr_bus.c
3743
device_detach(child) : 0;
sys/kern/subr_bus.c
3745
error = BUS_SUSPEND_CHILD(dev, child);
sys/kern/subr_bus.c
3748
error = BUS_RESET_PREPARE(dev, child);
sys/kern/subr_bus.c
3751
device_probe_and_attach(child);
sys/kern/subr_bus.c
3753
BUS_RESUME_CHILD(dev, child);
sys/kern/subr_bus.c
3757
bus_helper_reset_prepare_rollback(dev, child, flags);
sys/kern/subr_bus.c
3774
bus_print_child_header(device_t dev, device_t child)
sys/kern/subr_bus.c
3778
if (device_get_desc(child)) {
sys/kern/subr_bus.c
3779
retval += device_printf(child, "<%s>", device_get_desc(child));
sys/kern/subr_bus.c
3781
retval += printf("%s", device_get_nameunit(child));
sys/kern/subr_bus.c
3797
bus_print_child_footer(device_t dev, device_t child)
sys/kern/subr_bus.c
3810
bus_print_child_domain(device_t dev, device_t child)
sys/kern/subr_bus.c
3815
if (BUS_GET_DOMAIN(dev, child, &domain) != 0)
sys/kern/subr_bus.c
3830
bus_generic_print_child(device_t dev, device_t child)
sys/kern/subr_bus.c
3834
retval += bus_print_child_header(dev, child);
sys/kern/subr_bus.c
3835
retval += bus_print_child_domain(dev, child);
sys/kern/subr_bus.c
3836
retval += bus_print_child_footer(dev, child);
sys/kern/subr_bus.c
3847
bus_generic_read_ivar(device_t dev, device_t child, int index,
sys/kern/subr_bus.c
3859
bus_generic_write_ivar(device_t dev, device_t child, int index,
sys/kern/subr_bus.c
3872
bus_generic_get_property(device_t dev, device_t child, const char *propname,
sys/kern/subr_bus.c
3876
return (BUS_GET_PROPERTY(device_get_parent(dev), child,
sys/kern/subr_bus.c
3892
device_t child;
sys/kern/subr_bus.c
3895
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
3896
if (child->state == DS_NOTPRESENT)
sys/kern/subr_bus.c
3897
device_probe_and_attach(child);
sys/kern/subr_bus.c
3916
device_t child;
sys/kern/subr_bus.c
3923
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
3924
if (child->state >= DS_ATTACHED)
sys/kern/subr_bus.c
3925
BUS_NEW_PASS(child);
sys/kern/subr_bus.c
3926
else if (child->state == DS_NOTPRESENT)
sys/kern/subr_bus.c
3927
device_probe_and_attach(child);
sys/kern/subr_bus.c
3938
bus_generic_setup_intr(device_t dev, device_t child, struct resource *irq,
sys/kern/subr_bus.c
3944
return (BUS_SETUP_INTR(dev->parent, child, irq, flags,
sys/kern/subr_bus.c
3956
bus_generic_teardown_intr(device_t dev, device_t child, struct resource *irq,
sys/kern/subr_bus.c
3961
return (BUS_TEARDOWN_INTR(dev->parent, child, irq, cookie));
sys/kern/subr_bus.c
3972
bus_generic_suspend_intr(device_t dev, device_t child, struct resource *irq)
sys/kern/subr_bus.c
3976
return (BUS_SUSPEND_INTR(dev->parent, child, irq));
sys/kern/subr_bus.c
3987
bus_generic_resume_intr(device_t dev, device_t child, struct resource *irq)
sys/kern/subr_bus.c
3991
return (BUS_RESUME_INTR(dev->parent, child, irq));
sys/kern/subr_bus.c
4002
bus_generic_adjust_resource(device_t dev, device_t child, struct resource *r,
sys/kern/subr_bus.c
4007
return (BUS_ADJUST_RESOURCE(dev->parent, child, r, start, end));
sys/kern/subr_bus.c
4036
bus_generic_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/kern/subr_bus.c
4041
return (BUS_ALLOC_RESOURCE(dev->parent, child, type, rid,
sys/kern/subr_bus.c
4053
bus_generic_release_resource(device_t dev, device_t child, struct resource *r)
sys/kern/subr_bus.c
4057
return (BUS_RELEASE_RESOURCE(dev->parent, child, r));
sys/kern/subr_bus.c
4068
bus_generic_activate_resource(device_t dev, device_t child, struct resource *r)
sys/kern/subr_bus.c
4072
return (BUS_ACTIVATE_RESOURCE(dev->parent, child, r));
sys/kern/subr_bus.c
4083
bus_generic_deactivate_resource(device_t dev, device_t child,
sys/kern/subr_bus.c
4088
return (BUS_DEACTIVATE_RESOURCE(dev->parent, child, r));
sys/kern/subr_bus.c
4099
bus_generic_map_resource(device_t dev, device_t child, struct resource *r,
sys/kern/subr_bus.c
4104
return (BUS_MAP_RESOURCE(dev->parent, child, r, args, map));
sys/kern/subr_bus.c
4115
bus_generic_unmap_resource(device_t dev, device_t child, struct resource *r,
sys/kern/subr_bus.c
4120
return (BUS_UNMAP_RESOURCE(dev->parent, child, r, map));
sys/kern/subr_bus.c
4131
bus_generic_bind_intr(device_t dev, device_t child, struct resource *irq,
sys/kern/subr_bus.c
4136
return (BUS_BIND_INTR(dev->parent, child, irq, cpu));
sys/kern/subr_bus.c
4163
bus_generic_describe_intr(device_t dev, device_t child, struct resource *irq,
sys/kern/subr_bus.c
4168
return (BUS_DESCRIBE_INTR(dev->parent, child, irq, cookie,
sys/kern/subr_bus.c
4180
bus_generic_get_cpus(device_t dev, device_t child, enum cpu_sets op,
sys/kern/subr_bus.c
4185
return (BUS_GET_CPUS(dev->parent, child, op, setsize, cpuset));
sys/kern/subr_bus.c
4196
bus_generic_get_dma_tag(device_t dev, device_t child)
sys/kern/subr_bus.c
4200
return (BUS_GET_DMA_TAG(dev->parent, child));
sys/kern/subr_bus.c
4211
bus_generic_get_bus_tag(device_t dev, device_t child)
sys/kern/subr_bus.c
4215
return (BUS_GET_BUS_TAG(dev->parent, child));
sys/kern/subr_bus.c
4228
bus_generic_rl_get_resource(device_t dev, device_t child, int type, int rid,
sys/kern/subr_bus.c
4234
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
4259
bus_generic_rl_set_resource(device_t dev, device_t child, int type, int rid,
sys/kern/subr_bus.c
4264
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
4282
bus_generic_rl_delete_resource(device_t dev, device_t child, int type, int rid)
sys/kern/subr_bus.c
4286
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
4303
bus_generic_rl_release_resource(device_t dev, device_t child,
sys/kern/subr_bus.c
4308
if (device_get_parent(child) != dev)
sys/kern/subr_bus.c
4309
return (BUS_RELEASE_RESOURCE(device_get_parent(dev), child, r));
sys/kern/subr_bus.c
4311
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
4315
return (resource_list_release(rl, dev, child, r));
sys/kern/subr_bus.c
4326
bus_generic_rl_alloc_resource(device_t dev, device_t child, int type,
sys/kern/subr_bus.c
4331
if (device_get_parent(child) != dev)
sys/kern/subr_bus.c
4332
return (BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
sys/kern/subr_bus.c
4335
rl = BUS_GET_RESOURCE_LIST(dev, child);
sys/kern/subr_bus.c
4339
return (resource_list_alloc(rl, dev, child, type, rid,
sys/kern/subr_bus.c
4351
bus_generic_rman_alloc_resource(device_t dev, device_t child, int type,
sys/kern/subr_bus.c
4362
child);
sys/kern/subr_bus.c
4369
if (bus_activate_resource(child, type, rid, r) != 0) {
sys/kern/subr_bus.c
4386
bus_generic_rman_adjust_resource(device_t dev, device_t child,
sys/kern/subr_bus.c
4406
bus_generic_rman_release_resource(device_t dev, device_t child,
sys/kern/subr_bus.c
4421
error = bus_deactivate_resource(child, r);
sys/kern/subr_bus.c
4435
bus_generic_rman_activate_resource(device_t dev, device_t child,
sys/kern/subr_bus.c
4459
error = BUS_MAP_RESOURCE(dev, child, r, NULL, &map);
sys/kern/subr_bus.c
4468
error = intr_activate_irq(child, r);
sys/kern/subr_bus.c
4484
bus_generic_rman_deactivate_resource(device_t dev, device_t child,
sys/kern/subr_bus.c
4509
BUS_UNMAP_RESOURCE(dev, child, r, &map);
sys/kern/subr_bus.c
4514
intr_deactivate_irq(child, r);
sys/kern/subr_bus.c
4528
bus_generic_child_present(device_t dev, device_t child)
sys/kern/subr_bus.c
4541
bus_generic_get_domain(device_t dev, device_t child, int *domain)
sys/kern/subr_bus.c
4561
bus_generic_get_device_path(device_t bus, device_t child, const char *locator,
sys/kern/subr_bus.c
4582
sbuf_printf(sb, "/%s", device_get_nameunit(child));
sys/kern/subr_bus.c
4997
bus_child_present(device_t child)
sys/kern/subr_bus.c
4999
return (BUS_CHILD_PRESENT(device_get_parent(child), child));
sys/kern/subr_bus.c
5009
bus_child_pnpinfo(device_t child, struct sbuf *sb)
sys/kern/subr_bus.c
5013
parent = device_get_parent(child);
sys/kern/subr_bus.c
5016
return (BUS_CHILD_PNPINFO(parent, child, sb));
sys/kern/subr_bus.c
5026
bus_generic_child_pnpinfo(device_t dev, device_t child, struct sbuf *sb)
sys/kern/subr_bus.c
5038
bus_child_location(device_t child, struct sbuf *sb)
sys/kern/subr_bus.c
5042
parent = device_get_parent(child);
sys/kern/subr_bus.c
5045
return (BUS_CHILD_LOCATION(parent, child, sb));
sys/kern/subr_bus.c
5055
bus_generic_child_location(device_t dev, device_t child, struct sbuf *sb)
sys/kern/subr_bus.c
5137
root_print_child(device_t dev, device_t child)
sys/kern/subr_bus.c
5141
retval += bus_print_child_header(dev, child);
sys/kern/subr_bus.c
5148
root_setup_intr(device_t dev, device_t child, struct resource *irq, int flags,
sys/kern/subr_bus.c
5165
root_child_present(device_t dev, device_t child)
sys/kern/subr_bus.c
5171
root_get_cpus(device_t dev, device_t child, enum cpu_sets op, size_t setsize,
sys/kern/subr_bus.c
5401
device_t child;
sys/kern/subr_bus.c
5408
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
5409
print_device_tree_short(child, indent+1);
sys/kern/subr_bus.c
5417
device_t child;
sys/kern/subr_bus.c
5424
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
5425
print_device_tree(child, indent+1);
sys/kern/subr_bus.c
5687
device_t child;
sys/kern/subr_bus.c
5694
TAILQ_FOREACH(child, &dev->children, link) {
sys/kern/subr_bus.c
5695
device_gen_nomatch(child);
sys/kern/subr_intr.c
1381
intr_alloc_msi(device_t pci, device_t child, intptr_t xref, int count,
sys/kern/subr_intr.c
1403
err = MSI_IOMMU_INIT(pic->pic_dev, child, &domain);
sys/kern/subr_intr.c
1408
err = MSI_ALLOC_MSI(pic->pic_dev, child, count, maxcount, &pdev, isrc);
sys/kern/subr_intr.c
1429
intr_release_msi(device_t pci, device_t child, intptr_t xref, int count,
sys/kern/subr_intr.c
1456
MSI_IOMMU_DEINIT(pic->pic_dev, child);
sys/kern/subr_intr.c
1458
err = MSI_RELEASE_MSI(pic->pic_dev, child, count, isrc);
sys/kern/subr_intr.c
1470
intr_alloc_msix(device_t pci, device_t child, intptr_t xref, int *irq)
sys/kern/subr_intr.c
1491
err = MSI_IOMMU_INIT(pic->pic_dev, child, &domain);
sys/kern/subr_intr.c
1495
err = MSI_ALLOC_MSIX(pic->pic_dev, child, &pdev, &isrc);
sys/kern/subr_intr.c
1508
intr_release_msix(device_t pci, device_t child, intptr_t xref, int irq)
sys/kern/subr_intr.c
1534
MSI_IOMMU_DEINIT(pic->pic_dev, child);
sys/kern/subr_intr.c
1536
err = MSI_RELEASE_MSIX(pic->pic_dev, child, isrc);
sys/kern/subr_intr.c
1543
intr_map_msi(device_t pci, device_t child, intptr_t xref, int irq,
sys/kern/subr_intr.c
1562
err = MSI_MAP_MSI(pic->pic_dev, child, isrc, addr, data);
sys/kern/subr_intr.c
364
struct intr_pic_child *child;
sys/kern/subr_intr.c
369
SLIST_FOREACH(child, &parent->pic_children, pc_next) {
sys/kern/subr_intr.c
370
if (child->pc_start <= irq &&
sys/kern/subr_intr.c
371
irq < (child->pc_start + child->pc_length)) {
sys/kern/subr_intr.c
379
return (child->pc_filter(child->pc_filter_arg, irq));
sys/kern/subr_intr.c
946
struct intr_pic_child *child;
sys/kern/subr_intr.c
963
SLIST_FOREACH(child, &parent_pic->pic_children, pc_next) {
sys/kern/subr_intr.c
964
KASSERT(child->pc_pic != pic, ("%s: Adding a child PIC twice",
sys/kern/subr_pctrie.c
217
pctrie_setparent(struct pctrie_node *child, struct pctrie_node *parent)
sys/kern/subr_pctrie.c
219
pctrie_node_store(&child->pn_parent, parent, PCTRIE_UNSERIALIZED);
sys/kern/subr_pctrie.c
236
struct pctrie_node *child, enum pctrie_access access)
sys/kern/subr_pctrie.c
241
pctrie_node_store(&node->pn_child[slot], child, access);
sys/kern/subr_pctrie.c
470
struct pctrie_node *child)
sys/kern/subr_pctrie.c
481
if (child->pn_popmap != 0) {
sys/kern/subr_pctrie.c
482
pctrie_node_store(&child->pn_child[ffs(child->pn_popmap) - 1],
sys/kern/subr_pctrie.c
484
child->pn_popmap = 0;
sys/kern/subr_pctrie.c
494
pctrie_setparent(child, parent);
sys/kern/subr_pctrie.c
496
pctrie_setparent(node, child);
sys/kern/subr_pctrie.c
507
(1 << (sizeof(child->pn_clev) * NBBY)), "pn_clev too narrow");
sys/kern/subr_pctrie.c
508
child->pn_clev = rounddown(ilog2(index ^ newind), PCTRIE_WIDTH);
sys/kern/subr_pctrie.c
509
child->pn_owner = PCTRIE_COUNT;
sys/kern/subr_pctrie.c
510
child->pn_owner = index & -(child->pn_owner << child->pn_clev);
sys/kern/subr_pctrie.c
514
pctrie_addnode(child, index, pctrie_toleaf(val), PCTRIE_UNSERIALIZED);
sys/kern/subr_pctrie.c
515
pctrie_addnode(child, newind, node, PCTRIE_UNSERIALIZED);
sys/kern/subr_pctrie.c
517
pctrie_node_store(parentp, child, PCTRIE_LOCKED);
sys/kern/subr_pctrie.c
883
struct pctrie_node *child;
sys/kern/subr_pctrie.c
903
child = pctrie_node_load(&node->pn_child[slot], NULL, PCTRIE_LOCKED);
sys/kern/subr_pctrie.c
904
KASSERT(child != PCTRIE_NULL,
sys/kern/subr_pctrie.c
907
if (!pctrie_isleaf(child))
sys/kern/subr_pctrie.c
908
pctrie_setparent(child, node);
sys/kern/subr_pctrie.c
910
pctrie_node_store(parentp, child, PCTRIE_LOCKED);
sys/kern/subr_pctrie.c
976
struct pctrie_node *child, *node;
sys/kern/subr_pctrie.c
983
child = pctrie_node_load(&node->pn_child[slot], NULL,
sys/kern/subr_pctrie.c
987
if (pctrie_isleaf(child)) {
sys/kern/subr_pctrie.c
989
callback(pctrie_toptr(child, keyoff), arg);
sys/kern/subr_pctrie.c
994
node = child;
sys/kern/subr_smp.c
1203
topo_promote_child(struct topo_node *child)
sys/kern/subr_smp.c
1209
parent = child->parent;
sys/kern/subr_smp.c
1210
next = TAILQ_NEXT(child, siblings);
sys/kern/subr_smp.c
1211
TAILQ_REMOVE(&parent->children, child, siblings);
sys/kern/subr_smp.c
1212
TAILQ_INSERT_HEAD(&parent->children, child, siblings);
sys/kern/subr_smp.c
1218
TAILQ_INSERT_AFTER(&parent->children, child, node, siblings);
sys/kern/subr_smp.c
1219
child = node;
sys/kern/subr_smp.c
767
smp_topo_addleaf(struct cpu_group *parent, struct cpu_group *child, int share,
sys/kern/subr_smp.c
777
child->cg_parent = parent;
sys/kern/subr_smp.c
778
child->cg_child = NULL;
sys/kern/subr_smp.c
779
child->cg_children = 0;
sys/kern/subr_smp.c
780
child->cg_level = share;
sys/kern/subr_smp.c
781
child->cg_count = count;
sys/kern/subr_smp.c
782
child->cg_flags = flags;
sys/kern/subr_smp.c
783
child->cg_mask = mask;
sys/kern/subr_smp.c
786
if (CPU_OVERLAP(&parent->cg_mask, &child->cg_mask))
sys/kern/subr_smp.c
790
cpusetobj_strprint(cpusetbuf2, &child->cg_mask));
sys/kern/subr_smp.c
791
CPU_OR(&parent->cg_mask, &parent->cg_mask, &child->cg_mask);
sys/kern/subr_smp.c
792
parent->cg_count += child->cg_count;
sys/kern/subr_smp.c
801
struct cpu_group *child;
sys/kern/subr_smp.c
810
top->cg_child = child = top + 1;
sys/kern/subr_smp.c
812
for (i = 0; i < packages; i++, child++)
sys/kern/subr_smp.c
813
cpu = smp_topo_addleaf(top, child, share, count, flags, cpu);
sys/kern/subr_witness.c
2250
adopt(struct witness *parent, struct witness *child)
sys/kern/subr_witness.c
2258
if (isitmychild(parent, child))
sys/kern/subr_witness.c
2269
ci = child->w_index;
sys/kern/subr_witness.c
2282
child->w_num_ancestors++;
sys/kern/subr_witness.c
2343
itismychild(struct witness *parent, struct witness *child)
sys/kern/subr_witness.c
2347
MPASS(child != NULL && parent != NULL);
sys/kern/subr_witness.c
2351
if (!witness_lock_type_equal(parent, child)) {
sys/kern/subr_witness.c
2361
parent->w_class->lc_name, child->w_name,
sys/kern/subr_witness.c
2362
child->w_class->lc_name);
sys/kern/subr_witness.c
2366
adopt(parent, child);
sys/kern/subr_witness.c
2408
isitmychild(struct witness *parent, struct witness *child)
sys/kern/subr_witness.c
2410
return (_isitmyx(parent, child, WITNESS_PARENT, __func__));
sys/kern/subr_witness.c
307
static void adopt(struct witness *parent, struct witness *child);
sys/kern/subr_witness.c
314
static int isitmychild(struct witness *parent, struct witness *child);
sys/kern/subr_witness.c
315
static int isitmydescendant(struct witness *parent, struct witness *child);
sys/kern/subr_witness.c
316
static void itismychild(struct witness *parent, struct witness *child);
sys/kern/subr_witness.c
3356
witness_lock_order_get(struct witness *parent, struct witness *child)
sys/kern/subr_witness.c
3362
MPASS(parent != NULL && child != NULL);
sys/kern/subr_witness.c
3364
key.to = child->w_index;
sys/kern/subr_witness.c
3367
if ((w_rmatrix[parent->w_index][child->w_index]
sys/kern/subr_witness.c
3390
witness_lock_order_check(struct witness *parent, struct witness *child)
sys/kern/subr_witness.c
3392
if (parent != child &&
sys/kern/subr_witness.c
3393
w_rmatrix[parent->w_index][child->w_index]
sys/kern/subr_witness.c
3395
isitmychild(parent, child))
sys/kern/subr_witness.c
3402
witness_lock_order_add(struct witness *parent, struct witness *child)
sys/kern/subr_witness.c
3408
MPASS(parent != NULL && child != NULL);
sys/kern/subr_witness.c
3410
key.to = child->w_index;
sys/kern/subr_witness.c
3413
if (w_rmatrix[parent->w_index][child->w_index]
sys/kern/subr_witness.c
3419
w_rmatrix[parent->w_index][child->w_index] |= WITNESS_LOCK_ORDER_KNOWN;
sys/kern/subr_witness.c
344
struct witness *child);
sys/kern/subr_witness.c
346
struct witness *child);
sys/kern/subr_witness.c
349
struct witness *child);
sys/net/iflib.c
6789
struct sysctl_oid_list *child, *oid_list;
sys/net/iflib.c
6794
child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
sys/net/iflib.c
6795
ctx->ifc_sysctl_node = node = SYSCTL_ADD_NODE(ctx_list, child,
sys/net/iflib.c
6857
struct sysctl_oid_list *child;
sys/net/iflib.c
6870
child = SYSCTL_CHILDREN(node);
sys/net/iflib.c
6872
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "tx_reclaim_thresh",
sys/net/iflib.c
6877
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "tx_reclaim_ticks",
sys/net/iflib.c
6882
SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "tx_defer_mfree",
sys/net/iflib.c
6895
queue_node = SYSCTL_ADD_NODE(ctx_list, child, OID_AUTO, namebuf,
sys/net/iflib.c
6974
queue_node = SYSCTL_ADD_NODE(ctx_list, child, OID_AUTO, namebuf,
sys/netpfil/ipfilter/netinet/ipf_rb.h
227
_t *child, *parent, *old = node, *left; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
231
child = node->_f.right; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
233
child = node->_f.left; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
238
child = node->_f.right; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
241
if (child != &_n##_rb_zero) \
sys/netpfil/ipfilter/netinet/ipf_rb.h
242
child->_f.parent = parent; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
245
parent->_f.left = child; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
247
parent->_f.right = child; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
249
head->top._f.right = child; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
260
head->top._f.right = child; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
272
if (child != &_n##_rb_zero) \
sys/netpfil/ipfilter/netinet/ipf_rb.h
273
child->_f.parent = parent; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
276
parent->_f.left = child; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
278
parent->_f.right = child; \
sys/netpfil/ipfilter/netinet/ipf_rb.h
280
head->top._f.right = child; \
sys/netpfil/ipfw/dn_heap.c
180
int child, father, max = h->elements - 1;
sys/netpfil/ipfw/dn_heap.c
207
while ( (child = HEAP_LEFT(father)) <= max ) {
sys/netpfil/ipfw/dn_heap.c
208
if (child != max &&
sys/netpfil/ipfw/dn_heap.c
209
DN_KEY_LT(h->p[child+1].key, h->p[child].key) )
sys/netpfil/ipfw/dn_heap.c
210
child++; /* take right child, otherwise left */
sys/netpfil/ipfw/dn_heap.c
211
h->p[father] = h->p[child];
sys/netpfil/ipfw/dn_heap.c
213
father = child;
sys/netpfil/pf/pf.c
5128
struct pf_kanchor *child;
sys/netpfil/pf/pf.c
5130
RB_FOREACH(child, pf_kanchor_node, &r->anchor->children) {
sys/netpfil/pf/pf.c
5131
rv = pf_match_rule(ctx, &child->ruleset);
sys/netpfil/pf/pf.c
5160
struct pf_keth_anchor *child;
sys/netpfil/pf/pf.c
5194
if ((f->child = RB_MIN(pf_keth_anchor_node, parent)) == NULL) {
sys/netpfil/pf/pf.c
5198
*rs = &f->child->ruleset;
sys/netpfil/pf/pf.c
5200
f->child = NULL;
sys/netpfil/pf/pf.c
5222
if (f->child != NULL) {
sys/netpfil/pf/pf.c
5236
f->child = RB_NEXT(pf_keth_anchor_node,
sys/netpfil/pf/pf.c
5237
&fr->anchor->children, f->child);
sys/netpfil/pf/pf.c
5238
if (f->child != NULL) {
sys/netpfil/pf/pf.c
5239
*rs = &f->child->ruleset;
sys/netpfil/pf/pf_lb.c
255
struct pf_kanchor *child;
sys/netpfil/pf/pf_lb.c
257
RB_FOREACH(child, pf_kanchor_node, &r->anchor->children) {
sys/netpfil/pf/pf_lb.c
258
rv = pf_match_translation_rule(rs_num, ctx, &child->ruleset);
sys/netsmb/smb_conn.c
375
smb_co_addchild(struct smb_connobj *parent, struct smb_connobj *child)
sys/netsmb/smb_conn.c
379
SLIST_INSERT_HEAD(&parent->co_children, child, co_next);
sys/netsmb/smb_conn.c
380
child->co_parent = parent;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
147
struct socket *child;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
160
child = sonewconn(sk, SS_ISCONNECTED);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
161
if (!child)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
164
ssk = sdp_sk(child);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
165
rc = sdp_init_qp(child, id);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
171
ssk->socket = child;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
172
ssk->cred = crhold(child->so_cred);
sys/powerpc/aim/slb.c
119
struct slbtnode *child;
sys/powerpc/aim/slb.c
127
child = uma_zalloc(slbt_zone, M_NOWAIT | M_ZERO);
sys/powerpc/aim/slb.c
128
KASSERT(child != NULL, ("unhandled NULL case"));
sys/powerpc/aim/slb.c
130
child->ua_level = UAD_LEAF_LEVEL;
sys/powerpc/aim/slb.c
131
child->ua_base = esid2base(esid, child->ua_level);
sys/powerpc/aim/slb.c
132
idx = esid2idx(esid, child->ua_level);
sys/powerpc/aim/slb.c
133
child->u.slb_entries[idx].slbv = slbv;
sys/powerpc/aim/slb.c
134
child->u.slb_entries[idx].slbe = (esid << SLBE_ESID_SHIFT) | SLBE_VALID;
sys/powerpc/aim/slb.c
135
setbit(&child->ua_alloc, idx);
sys/powerpc/aim/slb.c
137
retval = &child->u.slb_entries[idx];
sys/powerpc/aim/slb.c
147
parent->u.ua_child[idx] = child;
sys/powerpc/aim/slb.c
160
struct slbtnode *child, *inter;
sys/powerpc/aim/slb.c
164
child = parent->u.ua_child[idx];
sys/powerpc/aim/slb.c
165
KASSERT(esid2base(esid, child->ua_level) != child->ua_base,
sys/powerpc/aim/slb.c
173
level = child->ua_level + 1;
sys/powerpc/aim/slb.c
175
esid2base(child->ua_base, level))
sys/powerpc/aim/slb.c
180
level, esid, child->ua_base, parent));
sys/powerpc/aim/slb.c
189
idx = esid2idx(child->ua_base, inter->ua_level);
sys/powerpc/aim/slb.c
190
inter->u.ua_child[idx] = child;
sys/powerpc/booke/platform_bare.c
110
if ((child = OF_child(cpus)) == 0)
sys/powerpc/booke/platform_bare.c
113
switch (OF_getproplen(child, "timebase-frequency")) {
sys/powerpc/booke/platform_bare.c
117
OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase));
sys/powerpc/booke/platform_bare.c
124
OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase));
sys/powerpc/booke/platform_bare.c
133
if (OF_getprop(child, "bus-frequency", (void *)&freq,
sys/powerpc/booke/platform_bare.c
93
phandle_t cpus, child;
sys/powerpc/include/ofw_machdep.h
53
int ofw_pcibus_get_domain(device_t dev, device_t child, int *domain);
sys/powerpc/include/ofw_machdep.h
54
int ofw_pcibus_get_cpus(device_t dev, device_t child, enum cpu_sets op,
sys/powerpc/mpc85xx/atpic.c
146
device_t child;
sys/powerpc/mpc85xx/atpic.c
148
child = BUS_ADD_CHILD(parent, ISA_ORDER_SENSITIVE, drv->name, DEVICE_UNIT_ANY);
sys/powerpc/mpc85xx/atpic.c
149
device_set_driver(child, drv);
sys/powerpc/mpc85xx/atpic.c
150
isa_set_logicalid(child, atpic_ids[0].ip_id);
sys/powerpc/mpc85xx/atpic.c
151
isa_set_vendorid(child, atpic_ids[0].ip_id);
sys/powerpc/mpc85xx/atpic.c
153
bus_set_resource(child, SYS_RES_IOPORT, ATPIC_MASTER, IO_ICU1, 2);
sys/powerpc/mpc85xx/atpic.c
154
bus_set_resource(child, SYS_RES_IOPORT, ATPIC_SLAVE, IO_ICU2, 2);
sys/powerpc/mpc85xx/atpic.c
157
bus_set_resource(child, SYS_RES_IRQ, 0, 16, 1);
sys/powerpc/mpc85xx/fsl_espi.c
300
fsl_espi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/powerpc/mpc85xx/fsl_espi.c
320
spibus_get_cs(child, &cs);
sys/powerpc/mpc85xx/fsl_espi.c
324
device_get_nameunit(child));
sys/powerpc/mpc85xx/fsl_espi.c
327
spibus_get_clock(child, &spi_clk);
sys/powerpc/mpc85xx/fsl_espi.c
328
spibus_get_mode(child, &spi_mode);
sys/powerpc/mpc85xx/isa.c
47
isa_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/powerpc/mpc85xx/isa.c
50
struct isa_device* idev = DEVTOISA(child);
sys/powerpc/mpc85xx/isa.c
55
passthrough = (device_get_parent(child) != bus) ? 1 : 0;
sys/powerpc/mpc85xx/isa.c
71
return (resource_list_alloc(rl, bus, child, type, rid, start, end,
sys/powerpc/mpc85xx/isa.c
76
isa_release_resource(device_t bus, device_t child, struct resource *r)
sys/powerpc/mpc85xx/isa.c
78
struct isa_device* idev = DEVTOISA(child);
sys/powerpc/mpc85xx/isa.c
81
return (resource_list_release(rl, bus, child, r));
sys/powerpc/mpc85xx/lbc.c
455
phandle_t node, child;
sys/powerpc/mpc85xx/lbc.c
626
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/powerpc/mpc85xx/lbc.c
629
if (ofw_bus_gen_setup_devinfo(&di->di_ofw, child) != 0) {
sys/powerpc/mpc85xx/lbc.c
637
if (fdt_lbc_reg_decode(child, sc, di)) {
sys/powerpc/mpc85xx/lbc.c
645
fdt_lbc_fixup(child, sc, di);
sys/powerpc/mpc85xx/lbc.c
658
child);
sys/powerpc/mpc85xx/lbc.c
700
lbc_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/powerpc/mpc85xx/lbc.c
718
if ((di = device_get_ivars(child)) == NULL)
sys/powerpc/mpc85xx/lbc.c
736
return (bus_generic_rman_alloc_resource(bus, child, type, rid, start,
sys/powerpc/mpc85xx/lbc.c
741
lbc_print_child(device_t dev, device_t child)
sys/powerpc/mpc85xx/lbc.c
747
di = device_get_ivars(child);
sys/powerpc/mpc85xx/lbc.c
751
rv += bus_print_child_header(dev, child);
sys/powerpc/mpc85xx/lbc.c
754
rv += bus_print_child_footer(dev, child);
sys/powerpc/mpc85xx/lbc.c
76
static int lbc_activate_resource(device_t bus, device_t child,
sys/powerpc/mpc85xx/lbc.c
760
lbc_adjust_resource(device_t dev, device_t child, struct resource *r,
sys/powerpc/mpc85xx/lbc.c
765
return (bus_generic_rman_adjust_resource(dev, child, r, start,
sys/powerpc/mpc85xx/lbc.c
768
return (bus_generic_adjust_resource(dev, child, r, start, end));
sys/powerpc/mpc85xx/lbc.c
775
lbc_release_resource(device_t dev, device_t child, struct resource *res)
sys/powerpc/mpc85xx/lbc.c
779
return (bus_generic_rman_release_resource(dev, child, res));
sys/powerpc/mpc85xx/lbc.c
78
static int lbc_deactivate_resource(device_t bus, device_t child,
sys/powerpc/mpc85xx/lbc.c
781
return (bus_generic_release_resource(dev, child, res));
sys/powerpc/mpc85xx/lbc.c
788
lbc_activate_resource(device_t bus, device_t child, struct resource *r)
sys/powerpc/mpc85xx/lbc.c
792
return (bus_generic_rman_activate_resource(bus, child, r));
sys/powerpc/mpc85xx/lbc.c
794
return (bus_generic_activate_resource(bus, child, r));
sys/powerpc/mpc85xx/lbc.c
801
lbc_deactivate_resource(device_t bus, device_t child, struct resource *r)
sys/powerpc/mpc85xx/lbc.c
805
return (bus_generic_rman_deactivate_resource(bus, child, r));
sys/powerpc/mpc85xx/lbc.c
807
return (bus_generic_deactivate_resource(bus, child, r));
sys/powerpc/mpc85xx/lbc.c
814
lbc_map_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/mpc85xx/lbc.c
847
lbc_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/mpc85xx/lbc.c
863
lbc_get_devinfo(device_t bus, device_t child)
sys/powerpc/mpc85xx/lbc.c
867
di = device_get_ivars(child);
sys/powerpc/mpc85xx/lbc.c
872
lbc_write_reg(device_t child, u_int off, uint32_t val)
sys/powerpc/mpc85xx/lbc.c
877
dev = device_get_parent(child);
sys/powerpc/mpc85xx/lbc.c
881
__func__, device_get_nameunit(child), off);
sys/powerpc/mpc85xx/lbc.c
898
lbc_read_reg(device_t child, u_int off)
sys/powerpc/mpc85xx/lbc.c
904
dev = device_get_parent(child);
sys/powerpc/mpc85xx/lbc.c
908
__func__, device_get_nameunit(child), off);
sys/powerpc/mpc85xx/lbc.h
135
uint32_t lbc_read_reg(device_t child, u_int off);
sys/powerpc/mpc85xx/lbc.h
136
void lbc_write_reg(device_t child, u_int off, uint32_t val);
sys/powerpc/mpc85xx/pci_mpc85xx.c
223
static int fsl_pcib_alloc_msi(device_t dev, device_t child,
sys/powerpc/mpc85xx/pci_mpc85xx.c
225
static int fsl_pcib_release_msi(device_t dev, device_t child,
sys/powerpc/mpc85xx/pci_mpc85xx.c
227
static int fsl_pcib_alloc_msix(device_t dev, device_t child, int *irq);
sys/powerpc/mpc85xx/pci_mpc85xx.c
228
static int fsl_pcib_release_msix(device_t dev, device_t child, int irq);
sys/powerpc/mpc85xx/pci_mpc85xx.c
229
static int fsl_pcib_map_msi(device_t dev, device_t child,
sys/powerpc/mpc85xx/pci_mpc85xx.c
788
static int fsl_pcib_alloc_msi(device_t dev, device_t child,
sys/powerpc/mpc85xx/pci_mpc85xx.c
809
static int fsl_pcib_release_msi(device_t dev, device_t child,
sys/powerpc/mpc85xx/pci_mpc85xx.c
819
static int fsl_pcib_alloc_msix(device_t dev, device_t child, int *irq)
sys/powerpc/mpc85xx/pci_mpc85xx.c
821
return (fsl_pcib_alloc_msi(dev, child, 1, 1, irq));
sys/powerpc/mpc85xx/pci_mpc85xx.c
824
static int fsl_pcib_release_msix(device_t dev, device_t child, int irq)
sys/powerpc/mpc85xx/pci_mpc85xx.c
826
return (fsl_pcib_release_msi(dev, child, 1, &irq));
sys/powerpc/mpc85xx/pci_mpc85xx.c
829
static int fsl_pcib_map_msi(device_t dev, device_t child,
sys/powerpc/mpc85xx/platform_mpc85xx.c
147
phandle_t cpus, child, ccsr;
sys/powerpc/mpc85xx/platform_mpc85xx.c
155
for (maxcpu = 0, child = OF_child(cpus); child != 0;
sys/powerpc/mpc85xx/platform_mpc85xx.c
156
child = OF_peer(child), maxcpu++)
sys/powerpc/mpc85xx/platform_mpc85xx.c
174
child = OF_child(OF_peer(0));
sys/powerpc/mpc85xx/platform_mpc85xx.c
175
for (OF_child(child); child != 0; child = OF_peer(child)) {
sys/powerpc/mpc85xx/platform_mpc85xx.c
176
if (OF_getprop(child, "device_type", type, sizeof(type))
sys/powerpc/mpc85xx/platform_mpc85xx.c
181
ccsr = child;
sys/powerpc/mpc85xx/platform_mpc85xx.c
225
phandle_t cpus, child;
sys/powerpc/mpc85xx/platform_mpc85xx.c
242
if ((child = OF_child(cpus)) == 0)
sys/powerpc/mpc85xx/platform_mpc85xx.c
245
switch (OF_getproplen(child, "timebase-frequency")) {
sys/powerpc/mpc85xx/platform_mpc85xx.c
249
OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase));
sys/powerpc/mpc85xx/platform_mpc85xx.c
256
OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase));
sys/powerpc/mpc85xx/platform_mpc85xx.c
265
if (OF_getprop(child, "bus-frequency", (void *)&freq,
sys/powerpc/ofw/ofw_pcibus.c
167
phandle_t node, child;
sys/powerpc/ofw/ofw_pcibus.c
174
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/powerpc/ofw/ofw_pcibus.c
175
if (OF_getencprop(child, "reg", (pcell_t *)&pcir,
sys/powerpc/ofw/ofw_pcibus.c
192
if (OF_getproplen(child, "interrupts") > 0)
sys/powerpc/ofw/ofw_pcibus.c
206
if (ofw_bus_gen_setup_devinfo(&dinfo->opd_obdinfo, child) !=
sys/powerpc/ofw/ofw_pcibus.c
221
ofw_bus_intr_to_rl(dev, child,
sys/powerpc/ofw/ofw_pcibus.c
289
ofw_pcibus_child_deleted(device_t dev, device_t child)
sys/powerpc/ofw/ofw_pcibus.c
293
dinfo = device_get_ivars(child);
sys/powerpc/ofw/ofw_pcibus.c
295
pci_child_deleted(dev, child);
sys/powerpc/ofw/ofw_pcibus.c
299
ofw_pcibus_child_pnpinfo_method(device_t cbdev, device_t child, struct sbuf *sb)
sys/powerpc/ofw/ofw_pcibus.c
301
pci_child_pnpinfo_method(cbdev, child, sb);
sys/powerpc/ofw/ofw_pcibus.c
303
if (ofw_bus_get_node(child) != -1) {
sys/powerpc/ofw/ofw_pcibus.c
305
ofw_bus_gen_child_pnpinfo(cbdev, child, sb);
sys/powerpc/ofw/ofw_pcibus.c
312
ofw_pcibus_assign_interrupt(device_t dev, device_t child)
sys/powerpc/ofw/ofw_pcibus.c
318
node = ofw_bus_get_node(child);
sys/powerpc/ofw/ofw_pcibus.c
323
intr[0] = pci_get_intpin(child);
sys/powerpc/ofw/ofw_pcibus.c
324
return (PCIB_ROUTE_INTERRUPT(device_get_parent(dev), child,
sys/powerpc/ofw/ofw_pcibus.c
358
intr[0] = pci_get_intpin(child);
sys/powerpc/ofw/ofw_pcibus.c
371
return (PCIB_ROUTE_INTERRUPT(device_get_parent(dev), child, intr[0]));
sys/powerpc/ofw/ofw_pcibus.c
384
ofw_pcibus_get_cpus(device_t dev, device_t child, enum cpu_sets op, size_t setsize,
sys/powerpc/ofw/ofw_pcibus.c
398
error = bus_generic_get_cpus(dev, child, op, setsize, cpuset);
sys/powerpc/ofw/ofw_pcibus.c
406
return (bus_generic_get_cpus(dev, child, op, setsize, cpuset));
sys/powerpc/ofw/ofw_pcibus.c
420
ofw_pcibus_get_domain(device_t dev, device_t child, int *domain)
sys/powerpc/ofw/ofw_pcibus.c
422
*domain = platform_node_numa_domain(ofw_bus_get_node(child));
sys/powerpc/ofw/ofw_pcibus.c
67
static int ofw_pcibus_child_pnpinfo_method(device_t cbdev, device_t child,
sys/powerpc/ofw/ofw_real.c
471
cell_t child;
sys/powerpc/ofw/ofw_real.c
487
return (OUT(args.child));
sys/powerpc/ofw/ofw_syscons.c
1005
child = BUS_ADD_CHILD(parent, INT_MAX, SC_DRIVER_NAME, 0);
sys/powerpc/ofw/ofw_syscons.c
999
device_t child;
sys/powerpc/powermac/cpcht.c
174
phandle_t node, child;
sys/powerpc/powermac/cpcht.c
204
for (child = OF_child(node); child != 0; child = OF_peer(child))
sys/powerpc/powermac/cpcht.c
205
cpcht_configure_htbridge(dev, child);
sys/powerpc/powermac/cpcht.c
214
cpcht_configure_htbridge(device_t dev, phandle_t child)
sys/powerpc/powermac/cpcht.c
224
if (OF_getencprop(child, "reg", (pcell_t *)&pcir, sizeof(pcir)) == -1)
sys/powerpc/powermac/cpcht.c
382
cpcht_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/powerpc/powermac/cpcht.c
422
cpcht_release_msi(device_t dev, device_t child, int count, int *irqs)
sys/powerpc/powermac/cpcht.c
438
cpcht_alloc_msix(device_t dev, device_t child, int *irq)
sys/powerpc/powermac/cpcht.c
465
cpcht_release_msix(device_t dev, device_t child, int irq)
sys/powerpc/powermac/cpcht.c
479
cpcht_map_msi(device_t dev, device_t child, int irq, uint64_t *addr,
sys/powerpc/powermac/cpcht.c
486
for (pcib = child; pcib != dev; pcib =
sys/powerpc/powermac/cpcht.c
80
static int cpcht_alloc_msi(device_t dev, device_t child,
sys/powerpc/powermac/cpcht.c
82
static int cpcht_release_msi(device_t dev, device_t child,
sys/powerpc/powermac/cpcht.c
84
static int cpcht_alloc_msix(device_t dev, device_t child,
sys/powerpc/powermac/cpcht.c
86
static int cpcht_release_msix(device_t dev, device_t child,
sys/powerpc/powermac/cpcht.c
88
static int cpcht_map_msi(device_t dev, device_t child,
sys/powerpc/powermac/cuda.c
147
phandle_t node,child;
sys/powerpc/powermac/cuda.c
239
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/powerpc/powermac/cuda.c
243
OF_getprop(child, "name", name, sizeof(name));
sys/powerpc/powermac/fcu.c
447
phandle_t child;
sys/powerpc/powermac/fcu.c
456
child = ofw_bus_get_node(dev);
sys/powerpc/powermac/fcu.c
459
prop_len = OF_getprop(child, "hwctrl-location", location,
sys/powerpc/powermac/fcu.c
476
prop_len = OF_getprop(child, "hwctrl-type", type, sizeof(type));
sys/powerpc/powermac/fcu.c
488
prop_len = OF_getprop(child, "hwctrl-id", id, sizeof(id));
sys/powerpc/powermac/fcu.c
493
prop_len = OF_getprop(child, "hwctrl-zone", id, sizeof(id));
sys/powerpc/powermac/macgpio.c
155
phandle_t root, child, iparent;
sys/powerpc/powermac/macgpio.c
168
for (child = OF_child(root); child != 0; child = OF_peer(child)) {
sys/powerpc/powermac/macgpio.c
170
if (ofw_bus_gen_setup_devinfo(&dinfo->mdi_obdinfo, child) !=
sys/powerpc/powermac/macgpio.c
176
if (OF_getencprop(child, "reg", &dinfo->gpio_num,
sys/powerpc/powermac/macgpio.c
190
if (OF_getencprop(child, "interrupts", irq, sizeof(irq)) ==
sys/powerpc/powermac/macgpio.c
192
OF_searchencprop(child, "interrupt-parent", &iparent,
sys/powerpc/powermac/macgpio.c
219
macgpio_print_child(device_t dev, device_t child)
sys/powerpc/powermac/macgpio.c
224
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macgpio.c
226
retval += bus_print_child_header(dev, child);
sys/powerpc/powermac/macgpio.c
237
retval += bus_print_child_footer(dev, child);
sys/powerpc/powermac/macgpio.c
243
macgpio_probe_nomatch(device_t dev, device_t child)
sys/powerpc/powermac/macgpio.c
249
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macgpio.c
251
if ((type = ofw_bus_get_type(child)) == NULL)
sys/powerpc/powermac/macgpio.c
253
device_printf(dev, "<%s, %s>", type, ofw_bus_get_name(child));
sys/powerpc/powermac/macgpio.c
263
macgpio_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/powerpc/powermac/macgpio.c
269
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macgpio.c
274
return (resource_list_alloc(&dinfo->mdi_resources, bus, child, type,
sys/powerpc/powermac/macgpio.c
279
macgpio_activate_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/powermac/macgpio.c
286
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macgpio.c
297
return (bus_generic_activate_resource(bus, child, res));
sys/powerpc/powermac/macgpio.c
301
macgpio_deactivate_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/powermac/macgpio.c
308
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macgpio.c
319
return (bus_generic_deactivate_resource(bus, child, res));
sys/powerpc/powermac/macgpio.c
353
macgpio_get_devinfo(device_t dev, device_t child)
sys/powerpc/powermac/macgpio.c
357
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macgpio.c
70
static int macgpio_print_child(device_t dev, device_t child);
sys/powerpc/powermac/macio.c
251
phandle_t child;
sys/powerpc/powermac/macio.c
269
child = OF_child(devnode);
sys/powerpc/powermac/macio.c
270
while (child != 0) {
sys/powerpc/powermac/macio.c
271
res = OF_getprop(child, "name", buf, sizeof(buf));
sys/powerpc/powermac/macio.c
274
child = OF_peer(child);
sys/powerpc/powermac/macio.c
277
res = OF_getprop(child, "layout-id", &layout_id,
sys/powerpc/powermac/macio.c
326
phandle_t child;
sys/powerpc/powermac/macio.c
371
for (child = OF_child(root); child != 0; child = OF_peer(child)) {
sys/powerpc/powermac/macio.c
373
if (ofw_bus_gen_setup_devinfo(&dinfo->mdi_obdinfo, child) !=
sys/powerpc/powermac/macio.c
386
macio_add_intr(child, dinfo);
sys/powerpc/powermac/macio.c
388
macio_add_reg(OF_child(child), dinfo);
sys/powerpc/powermac/macio.c
390
macio_add_reg(child, dinfo);
sys/powerpc/powermac/macio.c
392
for (subchild = OF_child(child); subchild != 0;
sys/powerpc/powermac/macio.c
453
if ((child = OF_finddevice("/cpus/PowerPC,G4@0")) != -1 &&
sys/powerpc/powermac/macio.c
454
OF_peer(child) != -1) {
sys/powerpc/powermac/macio.c
455
if (OF_getprop(child, "timebase-enable", &sc->sc_timebase,
sys/powerpc/powermac/macio.c
469
macio_print_child(device_t dev, device_t child)
sys/powerpc/powermac/macio.c
475
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macio.c
478
retval += bus_print_child_header(dev, child);
sys/powerpc/powermac/macio.c
483
retval += bus_print_child_footer(dev, child);
sys/powerpc/powermac/macio.c
489
macio_probe_nomatch(device_t dev, device_t child)
sys/powerpc/powermac/macio.c
496
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macio.c
499
if ((type = ofw_bus_get_type(child)) == NULL)
sys/powerpc/powermac/macio.c
501
device_printf(dev, "<%s, %s>", type, ofw_bus_get_name(child));
sys/powerpc/powermac/macio.c
524
macio_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/powerpc/powermac/macio.c
532
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macio.c
541
device_get_nameunit(child), rid);
sys/powerpc/powermac/macio.c
561
return (bus_generic_rman_alloc_resource(bus, child, type, rid,
sys/powerpc/powermac/macio.c
566
if (device_get_parent(child) != bus)
sys/powerpc/powermac/macio.c
567
return BUS_ALLOC_RESOURCE(device_get_parent(bus), child,
sys/powerpc/powermac/macio.c
576
device_get_nameunit(child));
sys/powerpc/powermac/macio.c
586
return (resource_list_alloc(&dinfo->mdi_resources, bus, child,
sys/powerpc/powermac/macio.c
591
device_get_nameunit(child));
sys/powerpc/powermac/macio.c
597
macio_adjust_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/powermac/macio.c
603
return (bus_generic_rman_adjust_resource(bus, child, r, start,
sys/powerpc/powermac/macio.c
606
return (bus_generic_adjust_resource(bus, child, r, start, end));
sys/powerpc/powermac/macio.c
613
macio_release_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/powermac/macio.c
618
return (bus_generic_rman_release_resource(bus, child, res));
sys/powerpc/powermac/macio.c
620
return (bus_generic_rl_release_resource(bus, child, res));
sys/powerpc/powermac/macio.c
627
macio_activate_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/powermac/macio.c
632
return (bus_generic_rman_activate_resource(bus, child, res));
sys/powerpc/powermac/macio.c
634
return (bus_generic_activate_resource(bus, child, res));
sys/powerpc/powermac/macio.c
641
macio_deactivate_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/powermac/macio.c
646
return (bus_generic_rman_deactivate_resource(bus, child, res));
sys/powerpc/powermac/macio.c
648
return (bus_generic_deactivate_resource(bus, child, res));
sys/powerpc/powermac/macio.c
655
macio_map_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/powermac/macio.c
697
macio_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/powermac/macio.c
715
macio_get_resource_list (device_t dev, device_t child)
sys/powerpc/powermac/macio.c
719
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macio.c
724
macio_get_devinfo(device_t dev, device_t child)
sys/powerpc/powermac/macio.c
728
dinfo = device_get_ivars(child);
sys/powerpc/powermac/macio.c
81
static int macio_print_child(device_t dev, device_t child);
sys/powerpc/powermac/pmu.c
342
phandle_t node,child;
sys/powerpc/powermac/pmu.c
392
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/powerpc/powermac/pmu.c
396
OF_getprop(child, "name", name, sizeof(name));
sys/powerpc/powermac/pmu.c
408
if (OF_getprop(child, "prim-info", prim_info,
sys/powerpc/powermac/smu.c
1177
phandle_t child;
sys/powerpc/powermac/smu.c
1184
for (child = OF_child(sensroot); child != 0; child = OF_peer(child))
sys/powerpc/powermac/smu.c
1203
for (child = OF_child(sensroot); child != 0; child = OF_peer(child)) {
sys/powerpc/powermac/smu.c
1208
OF_getprop(child, "device_type", type, sizeof(type));
sys/powerpc/powermac/smu.c
1226
OF_getprop(child, "reg", &sens->reg, sizeof(cell_t));
sys/powerpc/powermac/smu.c
1227
OF_getprop(child, "zone", &sens->therm.zone, sizeof(int));
sys/powerpc/powermac/smu.c
1228
OF_getprop(child, "location", sens->therm.name,
sys/powerpc/powermac/smu.c
1420
phandle_t child;
sys/powerpc/powermac/smu.c
1425
for (child = OF_child(i2croot); child != 0; child = OF_peer(child)) {
sys/powerpc/powermac/smu.c
1426
if (OF_getprop(child, "name", name, sizeof(name)) <= 0)
sys/powerpc/powermac/smu.c
1434
if (ofw_bus_gen_setup_devinfo(dinfo, child) != 0) {
sys/powerpc/powermac/smu.c
283
phandle_t node, child;
sys/powerpc/powermac/smu.c
334
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
sys/powerpc/powermac/smu.c
337
OF_getprop(child, "name", name, sizeof(name));
sys/powerpc/powermac/smu.c
340
smu_attach_sensors(dev, child);
sys/powerpc/powermac/smu.c
343
smu_attach_i2c(dev, child);
sys/powerpc/powermac/smu.c
909
smu_fill_fan_prop(device_t dev, phandle_t child, int id)
sys/powerpc/powermac/smu.c
918
OF_getprop(child, "device_type", type, sizeof(type));
sys/powerpc/powermac/smu.c
927
OF_getprop(child, "reg", &fan->reg,
sys/powerpc/powermac/smu.c
929
OF_getprop(child, "min-value", &fan->fan.min_rpm,
sys/powerpc/powermac/smu.c
931
OF_getprop(child, "max-value", &fan->fan.max_rpm,
sys/powerpc/powermac/smu.c
933
OF_getprop(child, "zone", &fan->fan.zone,
sys/powerpc/powermac/smu.c
936
if (OF_getprop(child, "unmanaged-value",
sys/powerpc/powermac/smu.c
941
OF_getprop(child, "location", fan->fan.name,
sys/powerpc/powermac/smu.c
957
phandle_t child, node, root;
sys/powerpc/powermac/smu.c
971
for (child = OF_child(root); child != 0;
sys/powerpc/powermac/smu.c
972
child = OF_peer(child)) {
sys/powerpc/powermac/smu.c
976
smu_fill_fan_prop(dev, child,
sys/powerpc/powermac/smusat.c
105
phandle_t child;
sys/powerpc/powermac/smusat.c
117
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/powerpc/powermac/smusat.c
118
child = OF_peer(child))
sys/powerpc/powermac/smusat.c
135
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/powerpc/powermac/smusat.c
136
child = OF_peer(child)) {
sys/powerpc/powermac/smusat.c
142
OF_getprop(child, "reg", &sens->reg, sizeof(sens->reg));
sys/powerpc/powermac/smusat.c
147
OF_getprop(child, "zone", &sens->therm.zone, sizeof(int));
sys/powerpc/powermac/smusat.c
148
OF_getprop(child, "location", sens->therm.name,
sys/powerpc/powermac/smusat.c
151
OF_getprop(child, "device_type", type, sizeof(type));
sys/powerpc/powermac/uninorth.c
279
phandle_t child;
sys/powerpc/powermac/uninorth.c
335
for (child = OF_child(root); child != 0; child = OF_peer(child)) {
sys/powerpc/powermac/uninorth.c
337
if (ofw_bus_gen_setup_devinfo(&dinfo->udi_obdinfo, child)
sys/powerpc/powermac/uninorth.c
346
unin_chip_add_intr(child, dinfo);
sys/powerpc/powermac/uninorth.c
357
if (OF_getprop(child, "name", name, sizeof(name)) <= 0)
sys/powerpc/powermac/uninorth.c
362
if (OF_getprop(child, "interrupt-parent", &iparent,
sys/powerpc/powermac/uninorth.c
375
unin_chip_add_reg(child, dinfo);
sys/powerpc/powermac/uninorth.c
403
for (child = OF_child(root); child; child = OF_peer(child)) {
sys/powerpc/powermac/uninorth.c
405
OF_getprop(child, "compatible", compat, sizeof(compat));
sys/powerpc/powermac/uninorth.c
415
child = OF_finddevice("enet");
sys/powerpc/powermac/uninorth.c
417
OF_getprop(child, "compatible", compat, sizeof(compat));
sys/powerpc/powermac/uninorth.c
426
unin_chip_print_child(device_t dev, device_t child)
sys/powerpc/powermac/uninorth.c
432
dinfo = device_get_ivars(child);
sys/powerpc/powermac/uninorth.c
435
retval += bus_print_child_header(dev, child);
sys/powerpc/powermac/uninorth.c
440
retval += bus_print_child_footer(dev, child);
sys/powerpc/powermac/uninorth.c
446
unin_chip_probe_nomatch(device_t dev, device_t child)
sys/powerpc/powermac/uninorth.c
453
dinfo = device_get_ivars(child);
sys/powerpc/powermac/uninorth.c
456
if ((type = ofw_bus_get_type(child)) == NULL)
sys/powerpc/powermac/uninorth.c
458
device_printf(dev, "<%s, %s>", type, ofw_bus_get_name(child));
sys/powerpc/powermac/uninorth.c
481
unin_chip_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/powerpc/powermac/uninorth.c
489
dinfo = device_get_ivars(child);
sys/powerpc/powermac/uninorth.c
498
device_get_nameunit(child), rid);
sys/powerpc/powermac/uninorth.c
520
return (bus_generic_rman_alloc_resource(bus, child,
sys/powerpc/powermac/uninorth.c
524
if (device_get_parent(child) != bus)
sys/powerpc/powermac/uninorth.c
525
return BUS_ALLOC_RESOURCE(device_get_parent(bus), child,
sys/powerpc/powermac/uninorth.c
535
device_get_nameunit(child));
sys/powerpc/powermac/uninorth.c
546
return (resource_list_alloc(&dinfo->udi_resources, bus, child,
sys/powerpc/powermac/uninorth.c
551
device_get_nameunit(child));
sys/powerpc/powermac/uninorth.c
557
unin_chip_adjust_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/powermac/uninorth.c
563
return (bus_generic_rman_adjust_resource(bus, child, r, start,
sys/powerpc/powermac/uninorth.c
566
return (bus_generic_adjust_resource(bus, child, r, start, end));
sys/powerpc/powermac/uninorth.c
573
unin_chip_release_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/powermac/uninorth.c
578
return (bus_generic_rman_release_resource(bus, child, res));
sys/powerpc/powermac/uninorth.c
580
return (bus_generic_rl_release_resource(bus, child, res));
sys/powerpc/powermac/uninorth.c
587
unin_chip_activate_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/powermac/uninorth.c
592
return (bus_generic_rman_activate_resource(bus, child, res));
sys/powerpc/powermac/uninorth.c
594
return (bus_generic_activate_resource(bus, child, res));
sys/powerpc/powermac/uninorth.c
601
unin_chip_deactivate_resource(device_t bus, device_t child,
sys/powerpc/powermac/uninorth.c
607
return (bus_generic_rman_deactivate_resource(bus, child, res));
sys/powerpc/powermac/uninorth.c
609
return (bus_generic_deactivate_resource(bus, child, res));
sys/powerpc/powermac/uninorth.c
616
unin_chip_map_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/powermac/uninorth.c
655
unin_chip_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/powermac/uninorth.c
673
unin_chip_get_resource_list (device_t dev, device_t child)
sys/powerpc/powermac/uninorth.c
677
dinfo = device_get_ivars(child);
sys/powerpc/powermac/uninorth.c
682
unin_chip_get_devinfo(device_t dev, device_t child)
sys/powerpc/powermac/uninorth.c
686
dinfo = device_get_ivars(child);
sys/powerpc/powermac/uninorth.c
72
static int unin_chip_print_child(device_t dev, device_t child);
sys/powerpc/powernv/opal_console.c
559
phandle_t child;
sys/powerpc/powernv/opal_console.c
563
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/powerpc/powernv/opal_console.c
564
child = OF_peer(child)) {
sys/powerpc/powernv/opal_console.c
566
if (ofw_bus_gen_setup_devinfo(dinfo, child) != 0) {
sys/powerpc/powernv/opal_console.c
586
opalcons_get_devinfo(device_t dev, device_t child)
sys/powerpc/powernv/opal_console.c
588
return (device_get_ivars(child));
sys/powerpc/powernv/opal_dev.c
175
phandle_t child;
sys/powerpc/powernv/opal_dev.c
212
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/powerpc/powernv/opal_dev.c
213
child = OF_peer(child)) {
sys/powerpc/powernv/opal_dev.c
215
if (ofw_bus_gen_setup_devinfo(dinfo, child) != 0) {
sys/powerpc/powernv/opal_dev.c
338
opaldev_get_devinfo(device_t dev, device_t child)
sys/powerpc/powernv/opal_dev.c
340
return (device_get_ivars(child));
sys/powerpc/powernv/opal_dev.c
58
device_t child);
sys/powerpc/powernv/opal_i2cm.c
116
opal_i2cm_get_devinfo(device_t dev, device_t child)
sys/powerpc/powernv/opal_i2cm.c
118
return (device_get_ivars(child));
sys/powerpc/powernv/opal_i2cm.c
89
phandle_t child;
sys/powerpc/powernv/opal_i2cm.c
93
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/powerpc/powernv/opal_i2cm.c
94
child = OF_peer(child)) {
sys/powerpc/powernv/opal_i2cm.c
96
if (ofw_bus_gen_setup_devinfo(dinfo, child) != 0) {
sys/powerpc/powernv/opal_pci.c
608
opalpci_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/powerpc/powernv/opal_pci.c
634
opalpci_release_msi(device_t dev, device_t child, int count, int *irqs)
sys/powerpc/powernv/opal_pci.c
647
opalpci_alloc_msix(device_t dev, device_t child, int *irq)
sys/powerpc/powernv/opal_pci.c
649
return (opalpci_alloc_msi(dev, child, 1, 1, irq));
sys/powerpc/powernv/opal_pci.c
653
opalpci_release_msix(device_t dev, device_t child, int irq)
sys/powerpc/powernv/opal_pci.c
655
return (opalpci_release_msi(dev, child, 1, &irq));
sys/powerpc/powernv/opal_pci.c
659
opalpci_map_msi(device_t dev, device_t child, int irq, uint64_t *addr,
sys/powerpc/powernv/opal_pci.c
673
dinfo = device_get_ivars(child);
sys/powerpc/powernv/opal_pci.c
689
device_printf(child, "OPAL MSI mapping error: %d\n", err);
sys/powerpc/powernv/opal_pci.c
714
opalpci_get_dma_tag(device_t dev, device_t child)
sys/powerpc/powernv/opal_pci.c
79
static int opalpci_alloc_msi(device_t dev, device_t child,
sys/powerpc/powernv/opal_pci.c
81
static int opalpci_release_msi(device_t dev, device_t child,
sys/powerpc/powernv/opal_pci.c
83
static int opalpci_alloc_msix(device_t dev, device_t child,
sys/powerpc/powernv/opal_pci.c
85
static int opalpci_release_msix(device_t dev, device_t child,
sys/powerpc/powernv/opal_pci.c
87
static int opalpci_map_msi(device_t dev, device_t child,
sys/powerpc/powernv/opal_pci.c
98
static bus_dma_tag_t opalpci_get_dma_tag(device_t dev, device_t child);
sys/powerpc/powernv/opal_sensor.c
273
phandle_t child;
sys/powerpc/powernv/opal_sensor.c
277
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/powerpc/powernv/opal_sensor.c
278
child = OF_peer(child)) {
sys/powerpc/powernv/opal_sensor.c
280
if (ofw_bus_gen_setup_devinfo(dinfo, child) != 0) {
sys/powerpc/powernv/opal_sensor.c
300
opalsens_get_devinfo(device_t dev, device_t child)
sys/powerpc/powernv/opal_sensor.c
302
return (device_get_ivars(child));
sys/powerpc/powernv/platform_powernv.c
490
struct cpu_group *child;
sys/powerpc/powernv/platform_powernv.c
492
child = children != 0 ? smp_topo_alloc(children) : NULL;
sys/powerpc/powernv/platform_powernv.c
495
group->cg_child = child;
sys/powerpc/powernv/platform_powernv.c
502
return (child);
sys/powerpc/powernv/powernv_centaur.c
115
powernv_centaur_get_devinfo(device_t dev, device_t child)
sys/powerpc/powernv/powernv_centaur.c
117
return (device_get_ivars(child));
sys/powerpc/powernv/powernv_centaur.c
88
phandle_t child;
sys/powerpc/powernv/powernv_centaur.c
92
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/powerpc/powernv/powernv_centaur.c
93
child = OF_peer(child)) {
sys/powerpc/powernv/powernv_centaur.c
95
if (ofw_bus_gen_setup_devinfo(dinfo, child) != 0) {
sys/powerpc/powernv/powernv_xscom.c
115
powernv_xscom_get_devinfo(device_t dev, device_t child)
sys/powerpc/powernv/powernv_xscom.c
117
return (device_get_ivars(child));
sys/powerpc/powernv/powernv_xscom.c
88
phandle_t child;
sys/powerpc/powernv/powernv_xscom.c
92
for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
sys/powerpc/powernv/powernv_xscom.c
93
child = OF_peer(child)) {
sys/powerpc/powernv/powernv_xscom.c
95
if (ofw_bus_gen_setup_devinfo(dinfo, child) != 0) {
sys/powerpc/powerpc/nexus.c
152
nexus_setup_intr(device_t bus __unused, device_t child, struct resource *r,
sys/powerpc/powerpc/nexus.c
171
if (bus_get_domain(child, &domain) != 0) {
sys/powerpc/powerpc/nexus.c
173
device_printf(child, "no domain found\n");
sys/powerpc/powerpc/nexus.c
176
error = powerpc_setup_intr(device_get_nameunit(child),
sys/powerpc/powerpc/nexus.c
183
nexus_teardown_intr(device_t bus __unused, device_t child __unused,
sys/powerpc/powerpc/nexus.c
194
nexus_get_bus_tag(device_t bus __unused, device_t child __unused)
sys/powerpc/powerpc/nexus.c
206
nexus_bind_intr(device_t bus __unused, device_t child __unused,
sys/powerpc/powerpc/nexus.c
223
nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells,
sys/powerpc/powerpc/nexus.c
246
nexus_map_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/powerpc/nexus.c
303
nexus_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/ps3/ps3bus.c
487
ps3bus_print_child(device_t dev, device_t child)
sys/powerpc/ps3/ps3bus.c
489
struct ps3bus_devinfo *dinfo = device_get_ivars(child);
sys/powerpc/ps3/ps3bus.c
492
retval += bus_print_child_header(dev, child);
sys/powerpc/ps3/ps3bus.c
498
retval += bus_print_child_footer(dev, child);
sys/powerpc/ps3/ps3bus.c
504
ps3bus_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
sys/powerpc/ps3/ps3bus.c
506
struct ps3bus_devinfo *dinfo = device_get_ivars(child);
sys/powerpc/ps3/ps3bus.c
551
ps3bus_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/powerpc/ps3/ps3bus.c
558
dinfo = device_get_ivars(child);
sys/powerpc/ps3/ps3bus.c
566
device_get_nameunit(child), rid);
sys/powerpc/ps3/ps3bus.c
57
static int ps3bus_print_child(device_t dev, device_t child);
sys/powerpc/ps3/ps3bus.c
58
static int ps3bus_read_ivar(device_t bus, device_t child, int which,
sys/powerpc/ps3/ps3bus.c
595
device_get_nameunit(child));
sys/powerpc/ps3/ps3bus.c
599
return (bus_generic_rman_alloc_resource(bus, child, type, rid, adjstart,
sys/powerpc/ps3/ps3bus.c
604
ps3bus_map_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/ps3/ps3bus.c
61
static struct resource *ps3bus_alloc_resource(device_t bus, device_t child,
sys/powerpc/ps3/ps3bus.c
64
static int ps3bus_map_resource(device_t bus, device_t child,
sys/powerpc/ps3/ps3bus.c
641
ps3bus_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/ps3/ps3bus.c
655
ps3bus_get_dma_tag(device_t dev, device_t child)
sys/powerpc/ps3/ps3bus.c
657
struct ps3bus_devinfo *dinfo = device_get_ivars(child);
sys/powerpc/ps3/ps3bus.c
67
static int ps3bus_unmap_resource(device_t bus, device_t child,
sys/powerpc/ps3/ps3bus.c
685
device_printf(child,
sys/powerpc/ps3/ps3bus.c
69
static bus_dma_tag_t ps3bus_get_dma_tag(device_t dev, device_t child);
sys/powerpc/ps3/ps3bus.c
695
device_printf(child,
sys/powerpc/pseries/plpar_iommu.h
35
int phyp_iommu_set_dma_tag(device_t dev, device_t child, bus_dma_tag_t tag);
sys/powerpc/pseries/plpar_pcibus.c
107
phyp_iommu_set_dma_tag(dev, child, dinfo->opd_dma_tag);
sys/powerpc/pseries/plpar_pcibus.c
52
static bus_dma_tag_t plpar_pcibus_get_dma_tag(device_t dev, device_t child);
sys/powerpc/pseries/plpar_pcibus.c
91
plpar_pcibus_get_dma_tag(device_t dev, device_t child)
sys/powerpc/pseries/plpar_pcibus.c
95
while (device_get_parent(child) != dev)
sys/powerpc/pseries/plpar_pcibus.c
96
child = device_get_parent(child);
sys/powerpc/pseries/plpar_pcibus.c
98
dinfo = device_get_ivars(child);
sys/powerpc/pseries/vdevice.c
126
phandle_t root, child;
sys/powerpc/pseries/vdevice.c
136
for (child = OF_child(root); child != 0; child = OF_peer(child)) {
sys/powerpc/pseries/vdevice.c
140
child) != 0) {
sys/powerpc/pseries/vdevice.c
146
ofw_bus_intr_to_rl(dev, child, &dinfo->mdi_resources, NULL);
sys/powerpc/pseries/vdevice.c
164
vdevice_get_devinfo(device_t dev, device_t child)
sys/powerpc/pseries/vdevice.c
166
return (device_get_ivars(child));
sys/powerpc/pseries/vdevice.c
170
vdevice_print_child(device_t dev, device_t child)
sys/powerpc/pseries/vdevice.c
176
dinfo = device_get_ivars(child);
sys/powerpc/pseries/vdevice.c
179
retval += bus_print_child_header(dev, child);
sys/powerpc/pseries/vdevice.c
183
retval += bus_print_child_footer(dev, child);
sys/powerpc/pseries/vdevice.c
189
vdevice_get_resource_list (device_t dev, device_t child)
sys/powerpc/pseries/vdevice.c
193
dinfo = device_get_ivars(child);
sys/powerpc/pseries/vdevice.c
198
vdevice_get_dma_tag(device_t dev, device_t child)
sys/powerpc/pseries/vdevice.c
201
while (child != NULL && device_get_parent(child) != dev)
sys/powerpc/pseries/vdevice.c
202
child = device_get_parent(child);
sys/powerpc/pseries/vdevice.c
203
dinfo = device_get_ivars(child);
sys/powerpc/pseries/vdevice.c
210
phyp_iommu_set_dma_tag(dev, child, dinfo->mdi_dma_tag);
sys/powerpc/pseries/vdevice.c
50
device_t child);
sys/powerpc/pseries/vdevice.c
51
static int vdevice_print_child(device_t dev, device_t child);
sys/powerpc/pseries/vdevice.c
53
static bus_dma_tag_t vdevice_get_dma_tag(device_t dev, device_t child);
sys/powerpc/psim/ata_iobus.c
120
ata_iobus_print_child(device_t dev, device_t child)
sys/powerpc/psim/ata_iobus.c
124
retval += bus_print_child_header(dev, child);
sys/powerpc/psim/ata_iobus.c
126
retval += bus_print_child_footer(dev, child);
sys/powerpc/psim/ata_iobus.c
132
ata_iobus_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/powerpc/psim/ata_iobus.c
161
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
sys/powerpc/psim/ata_iobus.c
171
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
sys/powerpc/psim/ata_iobus.c
195
ata_iobus_release_resource(device_t dev, device_t child, struct resource *r)
sys/powerpc/psim/ata_iobus.c
60
static int ata_iobus_print_child(device_t dev, device_t child);
sys/powerpc/psim/iobus.c
190
phandle_t child;
sys/powerpc/psim/iobus.c
225
for (child = OF_child(root); child != 0; child = OF_peer(child)) {
sys/powerpc/psim/iobus.c
226
OF_getprop_alloc(child, "name", (void **)&name);
sys/powerpc/psim/iobus.c
233
dinfo->id_node = child;
sys/powerpc/psim/iobus.c
235
iobus_add_intr(child, dinfo);
sys/powerpc/psim/iobus.c
236
iobus_add_reg(child, dinfo, sc->sc_addr);
sys/powerpc/psim/iobus.c
248
iobus_print_child(device_t dev, device_t child)
sys/powerpc/psim/iobus.c
254
dinfo = device_get_ivars(child);
sys/powerpc/psim/iobus.c
257
retval += bus_print_child_header(dev, child);
sys/powerpc/psim/iobus.c
262
retval += bus_print_child_footer(dev, child);
sys/powerpc/psim/iobus.c
268
iobus_probe_nomatch(device_t dev, device_t child)
sys/powerpc/psim/iobus.c
273
iobus_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/powerpc/psim/iobus.c
277
if ((dinfo = device_get_ivars(child)) == NULL)
sys/powerpc/psim/iobus.c
301
iobus_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/powerpc/psim/iobus.c
322
iobus_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/powerpc/psim/iobus.c
330
return (bus_generic_rman_alloc_resource(bus, child, type, rid,
sys/powerpc/psim/iobus.c
337
device_get_nameunit(child));
sys/powerpc/psim/iobus.c
343
iobus_adjust_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/psim/iobus.c
350
return (bus_generic_rman_adjust_resource(bus, child, r, start,
sys/powerpc/psim/iobus.c
353
return (bus_generic_adjust_resource(bus, child, r, start, end));
sys/powerpc/psim/iobus.c
360
iobus_release_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/psim/iobus.c
366
return (bus_generic_rman_release_resource(bus, child, res));
sys/powerpc/psim/iobus.c
368
return (bus_generic_release_resource(bus, child, res));
sys/powerpc/psim/iobus.c
375
iobus_activate_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/psim/iobus.c
380
return (bus_generic_activate_resource(bus, child, res));
sys/powerpc/psim/iobus.c
383
return (bus_generic_rman_activate_resource(bus, child, res));
sys/powerpc/psim/iobus.c
390
iobus_deactivate_resource(device_t bus, device_t child, struct resource *res)
sys/powerpc/psim/iobus.c
395
return (bus_generic_deactivate_resource(bus, child, res));
sys/powerpc/psim/iobus.c
398
return (bus_generic_rman_deactivate_resource(bus, child, res));
sys/powerpc/psim/iobus.c
405
iobus_map_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/psim/iobus.c
443
iobus_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/powerpc/psim/iobus.c
69
static int iobus_print_child(device_t dev, device_t child);
sys/riscv/riscv/nexus.c
182
nexus_print_child(device_t bus, device_t child)
sys/riscv/riscv/nexus.c
186
retval += bus_print_child_header(bus, child);
sys/riscv/riscv/nexus.c
195
device_t child;
sys/riscv/riscv/nexus.c
203
child = device_add_child_ordered(bus, order, name, unit);
sys/riscv/riscv/nexus.c
205
device_set_ivars(child, ndev);
sys/riscv/riscv/nexus.c
207
return (child);
sys/riscv/riscv/nexus.c
229
nexus_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/riscv/riscv/nexus.c
232
struct nexus_device *ndev = DEVTONX(child);
sys/riscv/riscv/nexus.c
242
if (device_get_parent(child) != bus || ndev == NULL)
sys/riscv/riscv/nexus.c
252
return (bus_generic_rman_alloc_resource(bus, child, type, rid,
sys/riscv/riscv/nexus.c
265
nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags,
sys/riscv/riscv/nexus.c
278
error = intr_setup_irq(child, res, filt, intr, arg, flags, cookiep);
sys/riscv/riscv/nexus.c
284
nexus_teardown_intr(device_t dev, device_t child, struct resource *r, void *ih)
sys/riscv/riscv/nexus.c
287
return (intr_teardown_irq(child, r, ih));
sys/riscv/riscv/nexus.c
291
nexus_describe_intr(device_t dev, device_t child, struct resource *irq,
sys/riscv/riscv/nexus.c
295
return (intr_describe_irq(child, irq, cookie, descr));
sys/riscv/riscv/nexus.c
299
nexus_get_bus_tag(device_t bus __unused, device_t child __unused)
sys/riscv/riscv/nexus.c
306
nexus_activate_resource(device_t bus, device_t child, struct resource *r)
sys/riscv/riscv/nexus.c
312
error = bus_generic_rman_activate_resource(bus, child, r);
sys/riscv/riscv/nexus.c
318
error = intr_activate_irq(child, r);
sys/riscv/riscv/nexus.c
332
nexus_get_reslist(device_t dev, device_t child)
sys/riscv/riscv/nexus.c
334
struct nexus_device *ndev = DEVTONX(child);
sys/riscv/riscv/nexus.c
340
nexus_deactivate_resource(device_t bus, device_t child, struct resource *r)
sys/riscv/riscv/nexus.c
346
error = bus_generic_rman_deactivate_resource(bus, child, r);
sys/riscv/riscv/nexus.c
352
intr_deactivate_irq(child, r);
sys/riscv/riscv/nexus.c
362
nexus_map_resource(device_t bus, device_t child, struct resource *r,
sys/riscv/riscv/nexus.c
398
nexus_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/riscv/riscv/nexus.c
411
nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells,
sys/riscv/riscv/sbi.c
375
device_t child;
sys/riscv/riscv/sbi.c
392
child = device_add_child(dev, "sbi_ipi", DEVICE_UNIT_ANY);
sys/riscv/riscv/sbi.c
393
if (child == NULL) {
sys/riscv/riscv/sbi.c
398
device_set_ivars(child, di);
sys/riscv/riscv/sbi.c
405
sbi_get_resource_list(device_t bus, device_t child)
sys/riscv/riscv/sbi.c
409
di = device_get_ivars(child);
sys/riscv/sifive/sifive_spi.c
250
sfspi_transfer(device_t dev, device_t child, struct spi_command *cmd)
sys/riscv/sifive/sifive_spi.c
262
spibus_get_cs(child, &cs);
sys/riscv/sifive/sifive_spi.c
263
spibus_get_clock(child, &clock);
sys/riscv/sifive/sifive_spi.c
264
spibus_get_mode(child, &mode);
sys/riscv/starfive/jh7110_pcie.c
303
jh7110_pcie_msi_alloc_msi(device_t dev, device_t child, int count, int maxcount,
sys/riscv/starfive/jh7110_pcie.c
343
jh7110_pcie_alloc_msi(device_t pci, device_t child, int count,
sys/riscv/starfive/jh7110_pcie.c
350
err = intr_alloc_msi(pci, child, msi_parent, count, maxcount, irqs);
sys/riscv/starfive/jh7110_pcie.c
356
jh7110_pcie_release_msi(device_t pci, device_t child, int count, int *irqs)
sys/riscv/starfive/jh7110_pcie.c
362
err = intr_release_msi(pci, child, msi_parent, count, irqs);
sys/riscv/starfive/jh7110_pcie.c
368
jh7110_pcie_msi_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
sys/riscv/starfive/jh7110_pcie.c
381
jh7110_pcie_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
sys/riscv/starfive/jh7110_pcie.c
389
err = intr_map_msi(pci, child, msi_parent, irq, addr, data);
sys/riscv/starfive/jh7110_pcie.c
399
jh7110_pcie_alloc_msix(device_t pci, device_t child, int *irq)
sys/riscv/starfive/jh7110_pcie.c
401
return (jh7110_pcie_alloc_msi(pci, child, 1, 32, irq));
sys/riscv/starfive/jh7110_pcie.c
405
jh7110_pcie_release_msix(device_t pci, device_t child, int irq)
sys/riscv/starfive/jh7110_pcie.c
411
err = intr_release_msix(pci, child, msi_parent, irq);
sys/riscv/starfive/jh7110_pcie.c
417
jh7110_pcie_msi_alloc_msix(device_t dev, device_t child, device_t *pic,
sys/riscv/starfive/jh7110_pcie.c
420
return (jh7110_pcie_msi_alloc_msi(dev, child, 1, 32, pic, isrcp));
sys/riscv/starfive/jh7110_pcie.c
424
jh7110_pcie_msi_release_msi(device_t dev, device_t child, int count,
sys/riscv/starfive/jh7110_pcie.c
449
jh7110_pcie_msi_release_msix(device_t dev, device_t child,
sys/riscv/starfive/jh7110_pcie.c
452
return (jh7110_pcie_msi_release_msi(dev, child, 1, &isrc));
sys/sys/arb.h
439
struct type *child, *parent, *old = elm; \
sys/sys/arb.h
442
child = ARB_RIGHT(head, elm, field); \
sys/sys/arb.h
444
child = ARB_LEFT(head, elm, field); \
sys/sys/arb.h
450
child = ARB_RIGHT(head, elm, field); \
sys/sys/arb.h
453
if (child) \
sys/sys/arb.h
454
ARB_PARENTIDX(child, field) = \
sys/sys/arb.h
459
ARB_SELFIDX(head, child); \
sys/sys/arb.h
462
ARB_SELFIDX(head, child); \
sys/sys/arb.h
465
ARB_ROOTIDX(head) = ARB_SELFIDX(head, child); \
sys/sys/arb.h
496
if (child) \
sys/sys/arb.h
497
ARB_PARENTIDX(child, field) = ARB_SELFIDX(head, parent);\
sys/sys/arb.h
501
ARB_SELFIDX(head, child); \
sys/sys/arb.h
504
ARB_SELFIDX(head, child); \
sys/sys/arb.h
507
ARB_ROOTIDX(head) = ARB_SELFIDX(head, child); \
sys/sys/arb.h
510
name##_ARB_REMOVE_COLOR(head, parent, child); \
sys/sys/bus.h
398
device_t bus, device_t child,
sys/sys/bus.h
403
device_t bus, device_t child,
sys/sys/bus.h
406
device_t bus, device_t child,
sys/sys/bus.h
410
device_t bus, device_t child,
sys/sys/bus.h
415
device_t bus, device_t child,
sys/sys/bus.h
435
int bus_generic_activate_resource(device_t dev, device_t child,
sys/sys/bus.h
440
int bus_generic_adjust_resource(device_t bus, device_t child,
sys/sys/bus.h
444
bus_generic_alloc_resource(device_t bus, device_t child, int type,
sys/sys/bus.h
451
int bus_generic_bind_intr(device_t dev, device_t child,
sys/sys/bus.h
453
int bus_generic_child_location(device_t dev, device_t child, struct sbuf *sb);
sys/sys/bus.h
454
int bus_generic_child_pnpinfo(device_t dev, device_t child, struct sbuf *sb);
sys/sys/bus.h
455
int bus_generic_child_present(device_t dev, device_t child);
sys/sys/bus.h
458
int bus_generic_describe_intr(device_t dev, device_t child,
sys/sys/bus.h
461
int bus_generic_deactivate_resource(device_t dev, device_t child,
sys/sys/bus.h
465
int bus_generic_get_cpus(device_t dev, device_t child, enum cpu_sets op,
sys/sys/bus.h
468
bus_generic_get_dma_tag(device_t dev, device_t child);
sys/sys/bus.h
470
bus_generic_get_bus_tag(device_t dev, device_t child);
sys/sys/bus.h
471
int bus_generic_get_domain(device_t dev, device_t child, int *domain);
sys/sys/bus.h
472
ssize_t bus_generic_get_property(device_t dev, device_t child,
sys/sys/bus.h
475
int bus_generic_map_resource(device_t dev, device_t child,
sys/sys/bus.h
480
int bus_print_child_header(device_t dev, device_t child);
sys/sys/bus.h
481
int bus_print_child_domain(device_t dev, device_t child);
sys/sys/bus.h
482
int bus_print_child_footer(device_t dev, device_t child);
sys/sys/bus.h
483
int bus_generic_print_child(device_t dev, device_t child);
sys/sys/bus.h
486
int bus_generic_read_ivar(device_t dev, device_t child, int which,
sys/sys/bus.h
488
int bus_generic_release_resource(device_t bus, device_t child,
sys/sys/bus.h
491
int bus_generic_resume_child(device_t dev, device_t child);
sys/sys/bus.h
492
int bus_generic_setup_intr(device_t dev, device_t child,
sys/sys/bus.h
507
bus_generic_rman_alloc_resource(device_t dev, device_t child, int type,
sys/sys/bus.h
511
int bus_generic_rman_adjust_resource(device_t dev, device_t child,
sys/sys/bus.h
514
int bus_generic_rman_release_resource(device_t dev, device_t child,
sys/sys/bus.h
516
int bus_generic_rman_activate_resource(device_t dev, device_t child,
sys/sys/bus.h
518
int bus_generic_rman_deactivate_resource(device_t dev, device_t child,
sys/sys/bus.h
523
int bus_generic_suspend_child(device_t dev, device_t child);
sys/sys/bus.h
524
int bus_generic_teardown_intr(device_t dev, device_t child,
sys/sys/bus.h
526
int bus_generic_suspend_intr(device_t dev, device_t child,
sys/sys/bus.h
528
int bus_generic_resume_intr(device_t dev, device_t child,
sys/sys/bus.h
530
int bus_generic_unmap_resource(device_t dev, device_t child,
sys/sys/bus.h
533
int bus_generic_write_ivar(device_t dev, device_t child, int which,
sys/sys/bus.h
535
int bus_generic_get_device_path(device_t bus, device_t child, const char *locator,
sys/sys/bus.h
558
int bus_adjust_resource(device_t child, struct resource *r,
sys/sys/bus.h
560
int bus_translate_resource(device_t child, int type, rman_res_t start,
sys/sys/bus.h
595
int bus_child_present(device_t child);
sys/sys/bus.h
596
int bus_child_pnpinfo(device_t child, struct sbuf *sb);
sys/sys/bus.h
597
int bus_child_location(device_t child, struct sbuf *sb);
sys/sys/bus.h
661
int bus_adjust_resource_old(device_t child, int type, struct resource *r,
sys/sys/bus.h
708
int device_delete_child(device_t dev, device_t child);
sys/sys/pctrie.h
136
struct pctrie_node *child; \
sys/sys/pctrie.h
143
child = allocfn(ptree); \
sys/sys/pctrie.h
144
if (__predict_false(child == NULL)) { \
sys/sys/pctrie.h
149
pctrie_insert_node(val, *parent, parentp, child); \
sys/sys/pctrie.h
150
*parent = child; \
sys/sys/pctrie.h
407
void *parentp, struct pctrie_node *child);
sys/sys/proc.h
1188
void proc_add_orphan(struct proc *child, struct proc *parent);
sys/sys/proc.h
1198
struct proc *proc_realparent(struct proc *child);
sys/sys/proc.h
1200
void proc_reparent(struct proc *child, struct proc *newparent, bool set_oppid);
sys/sys/proc.h
1267
void childproc_stopped(struct proc *child, int reason);
sys/sys/proc.h
1268
void childproc_continued(struct proc *child);
sys/sys/proc.h
1269
void childproc_exited(struct proc *child);
sys/sys/racct.h
193
int racct_proc_fork(struct proc *parent, struct proc *child);
sys/sys/racct.h
194
void racct_proc_fork_done(struct proc *child);
sys/sys/racct.h
264
racct_proc_fork(struct proc *parent, struct proc *child)
sys/sys/racct.h
271
racct_proc_fork_done(struct proc *child)
sys/sys/rctl.h
149
int rctl_proc_fork(struct proc *parent, struct proc *child);
sys/sys/sched.h
104
void sched_exit_thread(struct thread *td, struct thread *child);
sys/sys/sched.h
106
void sched_fork_thread(struct thread *td, struct thread *child);
sys/sys/sched.h
285
void (*exit_thread)(struct thread *td, struct thread *child);
sys/sys/sched.h
287
void (*fork_thread)(struct thread *td, struct thread *child);
sys/sys/smp.h
123
void topo_promote_child(struct topo_node *child);
sys/sys/tree.h
543
struct type *child, *child_up, *gpar; \
sys/sys/tree.h
560
child = elm; \
sys/sys/tree.h
586
RB_ROTATE(elm, child, elmdir, field); \
sys/sys/tree.h
587
child_up = _RB_UP(child, field); \
sys/sys/tree.h
600
elm = child; \
sys/sys/tree.h
602
child = elm; \
sys/sys/tree.h
618
RB_ROTATE(parent, child, sibdir, field); \
sys/sys/tree.h
619
_RB_UP(child, field) = gpar; \
sys/sys/tree.h
620
RB_SWAP_CHILD(head, gpar, parent, child, field); \
sys/sys/tree.h
625
if (elm != child) \
sys/sys/tree.h
628
return (child); \
sys/sys/tree.h
779
struct type *child, *in, *opar, *parent; \
sys/sys/tree.h
781
child = RB_LEFT(out, field); \
sys/sys/tree.h
784
if (in == NULL || child == NULL) { \
sys/sys/tree.h
785
in = child = (in == NULL ? child : in); \
sys/sys/tree.h
791
RB_SET_PARENT(child, in, field); \
sys/sys/tree.h
792
RB_LEFT(in, field) = child; \
sys/sys/tree.h
793
child = RB_RIGHT(in, field); \
sys/sys/tree.h
798
RB_LEFT(parent, field) = child; \
sys/sys/tree.h
804
if (child != NULL) \
sys/sys/tree.h
805
_RB_UP(child, field) = parent; \
sys/sys/tree.h
807
opar = name##_RB_REMOVE_COLOR(head, parent, child); \
sys/x86/bios/vpd.c
131
device_t child;
sys/x86/bios/vpd.c
144
child = BUS_ADD_CHILD(parent, 5, "vpd", DEVICE_UNIT_ANY);
sys/x86/bios/vpd.c
145
device_set_driver(child, driver);
sys/x86/bios/vpd.c
146
bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length);
sys/x86/bios/vpd.c
147
device_set_desc(child, "Vital Product Data Area");
sys/x86/cpufreq/est.c
915
device_t child;
sys/x86/cpufreq/est.c
945
child = BUS_ADD_CHILD(parent, 10, "est", device_get_unit(parent));
sys/x86/cpufreq/est.c
946
if (child == NULL)
sys/x86/cpufreq/powernow.c
945
device_t child;
sys/x86/cpufreq/powernow.c
947
child = device_find_child(device_get_parent(dev), "acpi_perf",
sys/x86/cpufreq/powernow.c
949
if (child) {
sys/x86/cpufreq/powernow.c
950
rv = pn_decode_acpi(dev, child);
sys/x86/include/legacyvar.h
52
int legacy_pcib_read_ivar(device_t dev, device_t child, int which,
sys/x86/include/legacyvar.h
56
int legacy_pcib_write_ivar(device_t dev, device_t child, int which,
sys/x86/include/legacyvar.h
58
struct resource *legacy_pcib_alloc_resource(device_t dev, device_t child,
sys/x86/include/legacyvar.h
61
int legacy_pcib_adjust_resource(device_t dev, device_t child,
sys/x86/include/legacyvar.h
63
int legacy_pcib_release_resource(device_t dev, device_t child,
sys/x86/include/legacyvar.h
65
int legacy_pcib_activate_resource(device_t dev, device_t child,
sys/x86/include/legacyvar.h
67
int legacy_pcib_deactivate_resource(device_t dev, device_t child,
sys/x86/iommu/intel_dmar.h
229
int dmar_dev_depth(device_t child);
sys/x86/iommu/intel_dmar.h
230
void dmar_dev_path(device_t child, int *busno, void *path1, int depth);
sys/x86/iommu/intel_drv.c
296
dmar_remap_intr(device_t dev, device_t child, u_int irq)
sys/x86/iommu/intel_drv.c
606
dmar_dev_depth(device_t child)
sys/x86/iommu/intel_drv.c
614
bus = device_get_parent(child);
sys/x86/iommu/intel_drv.c
619
child = pcib;
sys/x86/iommu/intel_drv.c
624
dmar_dev_path(device_t child, int *busno, void *path1, int depth)
sys/x86/iommu/intel_drv.c
633
path[depth].Device = pci_get_slot(child);
sys/x86/iommu/intel_drv.c
634
path[depth].Function = pci_get_function(child);
sys/x86/iommu/intel_drv.c
635
bus = device_get_parent(child);
sys/x86/iommu/intel_drv.c
643
child = pcib;
sys/x86/isa/isa.c
128
return resource_list_alloc(rl, bus, child, type, rid,
sys/x86/isa/isa.c
133
isa_release_resource(device_t bus, device_t child, struct resource *r)
sys/x86/isa/isa.c
135
struct isa_device* idev = DEVTOISA(child);
sys/x86/isa/isa.c
138
return resource_list_release(rl, bus, child, r);
sys/x86/isa/isa.c
87
isa_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/x86/isa/isa.c
93
int passthrough = (device_get_parent(child) != bus);
sys/x86/isa/isa.c
95
struct isa_device* idev = DEVTOISA(child);
sys/x86/isa/orm.c
100
isa_set_vendorid(child, ORM_ID);
sys/x86/isa/orm.c
101
sc = device_get_softc(child);
sys/x86/isa/orm.c
104
bus_set_resource(child, SYS_RES_MEMORY, sc->rnum, chunk,
sys/x86/isa/orm.c
107
res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid,
sys/x86/isa/orm.c
110
bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
sys/x86/isa/orm.c
129
bus_release_resource(child, SYS_RES_MEMORY, rid, res);
sys/x86/isa/orm.c
130
bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
sys/x86/isa/orm.c
136
bus_set_resource(child, SYS_RES_MEMORY, sc->rnum, chunk,
sys/x86/isa/orm.c
139
res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0);
sys/x86/isa/orm.c
141
bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
sys/x86/isa/orm.c
152
device_delete_child(parent, child);
sys/x86/isa/orm.c
154
device_set_desc(child, "ISA Option ROM");
sys/x86/isa/orm.c
156
device_set_desc(child, "ISA Option ROMs");
sys/x86/isa/orm.c
86
device_t child;
sys/x86/isa/orm.c
97
child = BUS_ADD_CHILD(parent, ISA_ORDER_SENSITIVE, "orm", DEVICE_UNIT_ANY);
sys/x86/isa/orm.c
98
device_set_driver(child, driver);
sys/x86/isa/orm.c
99
isa_set_logicalid(child, ORM_ID);
sys/x86/pci/pci_bus.c
384
device_t child;
sys/x86/pci/pci_bus.c
464
child = BUS_ADD_CHILD(parent, 100,
sys/x86/pci/pci_bus.c
466
device_set_desc(child, s);
sys/x86/pci/pci_bus.c
467
legacy_set_pcibus(child, busnum);
sys/x86/pci/pci_bus.c
468
legacy_set_pcislot(child, slot);
sys/x86/pci/pci_bus.c
469
legacy_set_pcifunc(child, func);
sys/x86/pci/pci_bus.c
493
child = BUS_ADD_CHILD(parent, 100, "pcib", 0);
sys/x86/pci/pci_bus.c
494
legacy_set_pcibus(child, 0);
sys/x86/pci/pci_bus.c
532
legacy_pcib_read_ivar(device_t dev, device_t child, int which,
sys/x86/pci/pci_bus.c
548
legacy_pcib_write_ivar(device_t dev, device_t child, int which,
sys/x86/pci/pci_bus.c
595
legacy_pcib_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/x86/pci/pci_bus.c
600
return (pci_domain_alloc_bus(0, child, rid, start, end, count,
sys/x86/pci/pci_bus.c
603
return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
sys/x86/pci/pci_bus.c
608
legacy_pcib_adjust_resource(device_t dev, device_t child,
sys/x86/pci/pci_bus.c
613
return (pci_domain_adjust_bus(0, child, r, start, end));
sys/x86/pci/pci_bus.c
614
return (bus_generic_adjust_resource(dev, child, r, start, end));
sys/x86/pci/pci_bus.c
618
legacy_pcib_release_resource(device_t dev, device_t child, struct resource *r)
sys/x86/pci/pci_bus.c
622
return (pci_domain_release_bus(0, child, r));
sys/x86/pci/pci_bus.c
623
return (bus_generic_release_resource(dev, child, r));
sys/x86/pci/pci_bus.c
627
legacy_pcib_activate_resource(device_t dev, device_t child, struct resource *r)
sys/x86/pci/pci_bus.c
630
return (pci_domain_activate_bus(0, child, r));
sys/x86/pci/pci_bus.c
631
return (bus_generic_activate_resource(dev, child, r));
sys/x86/pci/pci_bus.c
635
legacy_pcib_deactivate_resource(device_t dev, device_t child,
sys/x86/pci/pci_bus.c
639
return (pci_domain_deactivate_bus(0, child, r));
sys/x86/pci/pci_bus.c
640
return (bus_generic_deactivate_resource(dev, child, r));
sys/x86/pci/qpi.c
103
device_t child;
sys/x86/pci/qpi.c
135
child = BUS_ADD_CHILD(dev, 0, "pcib", DEVICE_UNIT_ANY);
sys/x86/pci/qpi.c
136
if (child == NULL)
sys/x86/pci/qpi.c
141
device_set_ivars(child, qdev);
sys/x86/pci/qpi.c
163
qpi_print_child(device_t bus, device_t child)
sys/x86/pci/qpi.c
168
qdev = device_get_ivars(child);
sys/x86/pci/qpi.c
169
retval += bus_print_child_header(bus, child);
sys/x86/pci/qpi.c
172
retval += bus_print_child_footer(bus, child);
sys/x86/pci/qpi.c
178
qpi_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/x86/pci/qpi.c
182
qdev = device_get_ivars(child);
sys/x86/pci/qpi.c
236
qpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/x86/pci/qpi.c
252
qpi_pcib_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/x86/pci/qpi.c
257
return (pci_domain_alloc_bus(0, child, rid, start, end, count,
sys/x86/pci/qpi.c
259
return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
sys/x86/x86/legacy.c
155
device_t child;
sys/x86/x86/legacy.c
171
child = BUS_ADD_CHILD(dev, 0, "isa", 0);
sys/x86/x86/legacy.c
172
if (child == NULL)
sys/x86/x86/legacy.c
174
device_probe_and_attach(child);
sys/x86/x86/legacy.c
181
legacy_print_child(device_t bus, device_t child)
sys/x86/x86/legacy.c
183
struct legacy_device *atdev = DEVTOAT(child);
sys/x86/x86/legacy.c
186
retval += bus_print_child_header(bus, child);
sys/x86/x86/legacy.c
197
device_t child;
sys/x86/x86/legacy.c
208
child = device_add_child_ordered(bus, order, name, unit);
sys/x86/x86/legacy.c
209
if (child == NULL)
sys/x86/x86/legacy.c
213
device_set_ivars(child, atdev);
sys/x86/x86/legacy.c
215
return (child);
sys/x86/x86/legacy.c
219
legacy_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
sys/x86/x86/legacy.c
221
struct legacy_device *atdev = DEVTOAT(child);
sys/x86/x86/legacy.c
243
legacy_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
sys/x86/x86/legacy.c
245
struct legacy_device *atdev = DEVTOAT(child);
sys/x86/x86/legacy.c
272
static int cpu_read_ivar(device_t dev, device_t child, int index,
sys/x86/x86/legacy.c
276
static struct resource_list *cpu_get_rlist(device_t dev, device_t child);
sys/x86/x86/legacy.c
320
device_t child;
sys/x86/x86/legacy.c
329
child = BUS_ADD_CHILD(parent, 150, "cpu", i);
sys/x86/x86/legacy.c
330
if (child == NULL)
sys/x86/x86/legacy.c
354
device_t child;
sys/x86/x86/legacy.c
364
child = device_add_child_ordered(bus, order, name, unit);
sys/x86/x86/legacy.c
365
if (child != NULL) {
sys/x86/x86/legacy.c
366
pc->pc_device = child;
sys/x86/x86/legacy.c
367
device_set_ivars(child, cd);
sys/x86/x86/legacy.c
370
return (child);
sys/x86/x86/legacy.c
374
cpu_get_rlist(device_t dev, device_t child)
sys/x86/x86/legacy.c
378
cpdev = device_get_ivars(child);
sys/x86/x86/legacy.c
383
cpu_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/x86/x86/legacy.c
389
cpdev = device_get_ivars(child);
sys/x86/x86/mptable_pci.c
105
return (pci_domain_alloc_bus(0, child, rid, start, end, count,
sys/x86/x86/mptable_pci.c
114
return (bus_generic_alloc_resource(dev, child,
sys/x86/x86/mptable_pci.c
125
return (bus_generic_alloc_resource(dev, child,
sys/x86/x86/mptable_pci.c
133
return (pcib_host_res_alloc(&sc->sc_host_res, child, type, rid, start,
sys/x86/x86/mptable_pci.c
138
mptable_hostb_adjust_resource(device_t dev, device_t child,
sys/x86/x86/mptable_pci.c
144
return (pci_domain_adjust_bus(0, child, r, start, end));
sys/x86/x86/mptable_pci.c
146
return (pcib_host_res_adjust(&sc->sc_host_res, child, r, start, end));
sys/x86/x86/mptable_pci.c
99
mptable_hostb_alloc_resource(device_t dev, device_t child, int type, int rid,
sys/x86/x86/nexus.c
294
nexus_print_child(device_t bus, device_t child)
sys/x86/x86/nexus.c
298
retval += bus_print_child_header(bus, child);
sys/x86/x86/nexus.c
299
retval += nexus_print_all_resources(child);
sys/x86/x86/nexus.c
300
if (device_get_flags(child))
sys/x86/x86/nexus.c
301
retval += printf(" flags %#x", device_get_flags(child));
sys/x86/x86/nexus.c
310
device_t child;
sys/x86/x86/nexus.c
318
child = device_add_child_ordered(bus, order, name, unit);
sys/x86/x86/nexus.c
321
device_set_ivars(child, ndev);
sys/x86/x86/nexus.c
323
return (child);
sys/x86/x86/nexus.c
348
nexus_alloc_resource(device_t bus, device_t child, int type, int rid,
sys/x86/x86/nexus.c
352
struct nexus_device *ndev = DEVTONX(child);
sys/x86/x86/nexus.c
362
if (device_get_parent(child) != bus || ndev == NULL)
sys/x86/x86/nexus.c
372
return (bus_generic_rman_alloc_resource(bus, child, type, rid,
sys/x86/x86/nexus.c
377
nexus_map_resource(device_t bus, device_t child, struct resource *r,
sys/x86/x86/nexus.c
428
nexus_unmap_resource(device_t bus, device_t child, struct resource *r,
sys/x86/x86/nexus.c
454
nexus_setup_intr(device_t bus, device_t child, struct resource *irq,
sys/x86/x86/nexus.c
475
if (bus_get_domain(child, &domain) != 0)
sys/x86/x86/nexus.c
481
error = intr_add_handler(isrc, device_get_nameunit(child),
sys/x86/x86/nexus.c
490
nexus_teardown_intr(device_t dev, device_t child, struct resource *r, void *ih)
sys/x86/x86/nexus.c
501
nexus_suspend_intr(device_t dev, device_t child, struct resource *irq)
sys/x86/x86/nexus.c
507
nexus_resume_intr(device_t dev, device_t child, struct resource *irq)
sys/x86/x86/nexus.c
514
nexus_bind_intr(device_t dev, device_t child, struct resource *irq, int cpu)
sys/x86/x86/nexus.c
538
nexus_describe_intr(device_t dev, device_t child, struct resource *irq,
sys/x86/x86/nexus.c
550
nexus_get_reslist(device_t dev, device_t child)
sys/x86/x86/nexus.c
552
struct nexus_device *ndev = DEVTONX(child);
sys/x86/x86/nexus.c
558
nexus_get_cpus(device_t dev, device_t child, enum cpu_sets op, size_t setsize,
sys/x86/x86/nexus.c
571
return (bus_generic_get_cpus(dev, child, op, setsize, cpuset));
sys/xen/xenbus/xenbusb.c
1003
XENBUS_LOCALEND_CHANGED(child, path);
sys/xen/xenbus/xenbusb.c
134
device_t child;
sys/xen/xenbus/xenbusb.c
140
child = ivars->xd_dev;
sys/xen/xenbus/xenbusb.c
141
bus = device_get_parent(child);
sys/xen/xenbus/xenbusb.c
149
XENBUSB_OTHEREND_CHANGED(bus, child, newstate);
sys/xen/xenbus/xenbusb.c
172
device_t child;
sys/xen/xenbus/xenbusb.c
177
child = ivars->xd_dev;
sys/xen/xenbus/xenbusb.c
178
bus = device_get_parent(child);
sys/xen/xenbus/xenbusb.c
185
XENBUSB_LOCALEND_CHANGED(bus, child, &path[ivars->xd_node_len]);
sys/xen/xenbus/xenbusb.c
226
xenbusb_delete_child(device_t dev, device_t child)
sys/xen/xenbus/xenbusb.c
230
ivars = device_get_ivars(child);
sys/xen/xenbus/xenbusb.c
243
device_delete_child(dev, child);
sys/xen/xenbus/xenbusb.c
252
xenbusb_verify_device(device_t dev, device_t child)
sys/xen/xenbus/xenbusb.c
254
if (xs_exists(XST_NIL, xenbus_get_node(child), "state") == 0) {
sys/xen/xenbus/xenbusb.c
259
xenbusb_delete_child(dev, child);
sys/xen/xenbus/xenbusb.c
652
device_t child;
sys/xen/xenbus/xenbusb.c
656
child = xenbusb_device_exists(dev, devpath);
sys/xen/xenbus/xenbusb.c
657
if (child != NULL) {
sys/xen/xenbus/xenbusb.c
718
child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
sys/xen/xenbus/xenbusb.c
719
ivars->xd_dev = child;
sys/xen/xenbus/xenbusb.c
720
device_set_ivars(child, ivars);
sys/xen/xenbus/xenbusb.c
854
xenbusb_print_child(device_t dev, device_t child)
sys/xen/xenbus/xenbusb.c
856
struct xenbus_device_ivars *ivars = device_get_ivars(child);
sys/xen/xenbus/xenbusb.c
859
retval += bus_print_child_header(dev, child);
sys/xen/xenbus/xenbusb.c
861
retval += bus_print_child_footer(dev, child);
sys/xen/xenbus/xenbusb.c
867
xenbusb_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/xen/xenbus/xenbusb.c
869
struct xenbus_device_ivars *ivars = device_get_ivars(child);
sys/xen/xenbus/xenbusb.c
897
xenbusb_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/xen/xenbus/xenbusb.c
899
struct xenbus_device_ivars *ivars = device_get_ivars(child);
sys/xen/xenbus/xenbusb.c
986
xenbusb_otherend_changed(device_t bus, device_t child, enum xenbus_state state)
sys/xen/xenbus/xenbusb.c
988
XENBUS_OTHEREND_CHANGED(child, state);
sys/xen/xenbus/xenbusb.c
992
xenbusb_localend_changed(device_t bus, device_t child, const char *path)
sys/xen/xenbus/xenbusb.c
998
ivars = device_get_ivars(child);
sys/xen/xenbus/xenbusb.h
222
int xenbusb_print_child(device_t dev, device_t child);
sys/xen/xenbus/xenbusb.h
235
int xenbusb_read_ivar(device_t dev, device_t child, int index,
sys/xen/xenbus/xenbusb.h
249
int xenbusb_write_ivar(device_t dev, device_t child, int index,
sys/xen/xenbus/xenbusb.h
259
void xenbusb_otherend_changed(device_t bus, device_t child,
sys/xen/xenbus/xenbusb.h
270
void xenbusb_localend_changed(device_t bus, device_t child, const char *path);
sys/xen/xenbus/xenbusb_back.c
221
xenbusb_back_otherend_changed(device_t bus, device_t child,
sys/xen/xenbus/xenbusb_back.c
225
xenbusb_otherend_changed(bus, child, peer_state);
sys/xen/xenbus/xenbusb_back.c
236
&& xenbus_dev_is_online(child) != 0
sys/xen/xenbus/xenbusb_back.c
237
&& xenbus_get_state(child) == XenbusStateClosed)
sys/xen/xenbus/xenbusb_back.c
238
xenbus_set_state(child, XenbusStateInitWait);
sys/xen/xenbus/xenbusb_back.c
251
xenbusb_back_localend_changed(device_t bus, device_t child, const char *path)
sys/xen/xenbus/xenbusb_back.c
254
xenbusb_localend_changed(bus, child, path);
sys/xen/xenbus/xenbusb_back.c
260
if (xenbus_get_state(child) != XenbusStateClosed
sys/xen/xenbus/xenbusb_back.c
261
|| xenbus_dev_is_online(child) != 0)
sys/xen/xenbus/xenbusb_back.c
279
xs_rm(XST_NIL, xenbus_get_node(child), "hotplug-status");
tests/sys/arch/aarch64/sve.c
245
pid_t child, wpid;
tests/sys/arch/aarch64/sve.c
250
child = fork();
tests/sys/arch/aarch64/sve.c
251
ATF_REQUIRE(child >= 0);
tests/sys/arch/aarch64/sve.c
252
if (child == 0) {
tests/sys/arch/aarch64/sve.c
267
wpid = waitpid(child, &status, 0);
tests/sys/arch/aarch64/sve.c
293
wpid = waitpid(child, &status, 0);
tests/sys/arch/aarch64/sve.c
331
waitpid(child, &status, 0);
tests/sys/arch/aarch64/sve.c
339
pid_t child, wpid;
tests/sys/arch/aarch64/sve.c
344
child = fork();
tests/sys/arch/aarch64/sve.c
345
ATF_REQUIRE(child >= 0);
tests/sys/arch/aarch64/sve.c
348
if (child == 0) {
tests/sys/arch/aarch64/sve.c
366
wpid = waitpid(child, &status, 0);
tests/sys/arch/aarch64/sve.c
367
ATF_REQUIRE_EQ(child, wpid);
tests/sys/arch/aarch64/sve.c
375
pid_t child, wpid;
tests/sys/arch/aarch64/sve.c
399
child = fork();
tests/sys/arch/aarch64/sve.c
408
ATF_REQUIRE(child >= 0);
tests/sys/arch/aarch64/sve.c
411
if (child == 0) {
tests/sys/arch/aarch64/sve.c
422
wpid = waitpid(child, &status, 0);
tests/sys/arch/aarch64/sve.c
423
ATF_REQUIRE_EQ(child, wpid);
tests/sys/capsicum/capability-fd.cc
1261
pid_t child = fork();
tests/sys/capsicum/capability-fd.cc
1262
if (child == 0) {
tests/sys/capsicum/capability-fd.cc
1276
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/capability-fd.cc
975
pid_t child = fork();
tests/sys/capsicum/capability-fd.cc
976
if (child == 0) {
tests/sys/capsicum/capmode.cc
406
pid_t child = fork();
tests/sys/capsicum/capmode.cc
407
if (child == 0) {
tests/sys/capsicum/capmode.cc
443
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/capmode.cc
467
pid_t child = fork();
tests/sys/capsicum/capmode.cc
468
if (child == 0) {
tests/sys/capsicum/capmode.cc
500
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/capmode.cc
515
pid_t child = fork();
tests/sys/capsicum/capmode.cc
516
if (child == 0) {
tests/sys/capsicum/capmode.cc
524
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/capmode.cc
640
int child = fork();
tests/sys/capsicum/capmode.cc
641
EXPECT_OK(child);
tests/sys/capsicum/capmode.cc
642
if (child == 0) {
tests/sys/capsicum/capmode.cc
681
child = fork();
tests/sys/capsicum/capmode.cc
682
EXPECT_OK(child);
tests/sys/capsicum/capmode.cc
683
if (child == 0) {
tests/sys/capsicum/capmode.cc
713
pid_t child = fork();
tests/sys/capsicum/capmode.cc
714
if (child == 0) {
tests/sys/capsicum/capmode.cc
723
EXPECT_CAPMODE(kill(child, SIGUSR1));
tests/sys/capsicum/fcntl.cc
227
pid_t child = fork();
tests/sys/capsicum/fcntl.cc
228
if (child == 0) {
tests/sys/capsicum/fcntl.cc
238
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/fexecve.cc
180
pid_t child = fork();
tests/sys/capsicum/fexecve.cc
181
if (child == 0) {
tests/sys/capsicum/fexecve.cc
201
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/linux.cc
1073
pid_t child = fork();
tests/sys/capsicum/linux.cc
1074
EXPECT_OK(child);
tests/sys/capsicum/linux.cc
1075
if (child == 0) {
tests/sys/capsicum/linux.cc
1107
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/linux.cc
1201
pid_t child = fork();
tests/sys/capsicum/linux.cc
1202
if (child == 0) {
tests/sys/capsicum/linux.cc
1204
child = getpid_();
tests/sys/capsicum/linux.cc
1205
EXPECT_OK(syscall(__NR_kcmp, parent, child, KCMP_FILE, fd, fd));
tests/sys/capsicum/linux.cc
1211
EXPECT_NE(0, syscall(__NR_kcmp, parent, child, KCMP_FILE, fd, fd));
tests/sys/capsicum/linux.cc
1216
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/linux.cc
1257
pid_t child = fork();
tests/sys/capsicum/linux.cc
1258
EXPECT_OK(child);
tests/sys/capsicum/linux.cc
1259
if (child == 0) {
tests/sys/capsicum/linux.cc
1260
child = getpid_();
tests/sys/capsicum/linux.cc
1270
child_clock = ((~child) << 3) | 0x0;
tests/sys/capsicum/linux.cc
1279
self, child, child_clock, (long)ts.tv_sec, (long)ts.tv_nsec);
tests/sys/capsicum/linux.cc
212
pid_t child = fork();
tests/sys/capsicum/linux.cc
213
if (child == 0) {
tests/sys/capsicum/linux.cc
243
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/linux.cc
451
pid_t child = fork();
tests/sys/capsicum/linux.cc
452
if (child == 0) {
tests/sys/capsicum/linux.cc
487
EXPECT_EQ(child, ev.pid);
tests/sys/capsicum/linux.cc
504
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/linux.cc
600
pid_t child = fork();
tests/sys/capsicum/linux.cc
601
if (child == 0) {
tests/sys/capsicum/linux.cc
611
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/linux.cc
720
pid_t child = pdfork(&pd, 0);
tests/sys/capsicum/linux.cc
721
EXPECT_OK(child);
tests/sys/capsicum/linux.cc
722
if (child == 0) {
tests/sys/capsicum/linux.cc
733
EXPECT_EQ(2, child);
tests/sys/capsicum/linux.cc
734
EXPECT_PID_ALIVE(child);
tests/sys/capsicum/linux.cc
736
pd, child, ProcessState(child));
tests/sys/capsicum/linux.cc
740
EXPECT_EQ(child, pid);
tests/sys/capsicum/linux.cc
748
if (verbose) fprintf(stderr, " ChildFunc: wait on pid=%d\n", child);
tests/sys/capsicum/linux.cc
750
EXPECT_EQ(child, wait4(child, &status, __WALL, NULL));
tests/sys/capsicum/linux.cc
783
pid_t child = clone(ChildFunc, child_stack + STACK_SIZE,
tests/sys/capsicum/linux.cc
785
EXPECT_OK(child);
tests/sys/capsicum/linux.cc
786
EXPECT_PID_ALIVE(child);
tests/sys/capsicum/linux.cc
787
if (verbose) fprintf(stderr, "Parent: child is %d state='%c'\n", child, ProcessState(child));
tests/sys/capsicum/linux.cc
825
EXPECT_EQ(child, waitpid(child, &status, WNOHANG));
tests/sys/capsicum/linux.cc
842
pid_t child = pdfork(&pd, 0);
tests/sys/capsicum/linux.cc
843
EXPECT_OK(child);
tests/sys/capsicum/linux.cc
844
if (child == 0) {
tests/sys/capsicum/linux.cc
853
EXPECT_EQ(2, child);
tests/sys/capsicum/linux.cc
854
EXPECT_PID_ALIVE(child);
tests/sys/capsicum/linux.cc
856
pd, child, ProcessState(child));
tests/sys/capsicum/linux.cc
879
pid_t child = clone(NSInit, child_stack + STACK_SIZE,
tests/sys/capsicum/linux.cc
882
EXPECT_OK(child);
tests/sys/capsicum/linux.cc
883
EXPECT_PID_ALIVE(child);
tests/sys/capsicum/linux.cc
884
if (verbose) fprintf(stderr, "Parent: child is %d state='%c'\n", child, ProcessState(child));
tests/sys/capsicum/linux.cc
897
EXPECT_PID_ZOMBIE(child);
tests/sys/capsicum/linux.cc
902
EXPECT_EQ(child, waitpid(child, &status, WNOHANG));
tests/sys/capsicum/linux.cc
905
EXPECT_PID_GONE(child);
tests/sys/capsicum/linux.cc
912
fprintf(stderr, "Parent: child %d in state='%c'\n", child, ProcessState(child));
tests/sys/capsicum/linux.cc
924
pid_t child = clone(NSInit, child_stack + STACK_SIZE,
tests/sys/capsicum/linux.cc
927
EXPECT_OK(child);
tests/sys/capsicum/linux.cc
928
EXPECT_PID_ALIVE(child);
tests/sys/capsicum/linux.cc
929
if (verbose) fprintf(stderr, "Parent: child is %d state='%c'\n", child, ProcessState(child));
tests/sys/capsicum/linux.cc
949
EXPECT_PID_ZOMBIE(child);
tests/sys/capsicum/linux.cc
954
EXPECT_EQ(child, waitpid(child, &status, WNOHANG));
tests/sys/capsicum/linux.cc
962
fprintf(stderr, "Parent: child %d in state='%c'\n", child, ProcessState(child));
tests/sys/capsicum/procdesc.cc
236
pid_t child = pdfork(&pd, 0);
tests/sys/capsicum/procdesc.cc
237
if (child == 0) {
tests/sys/capsicum/procdesc.cc
378
int child = fork();
tests/sys/capsicum/procdesc.cc
379
EXPECT_OK(child);
tests/sys/capsicum/procdesc.cc
380
if (child == 0) {
tests/sys/capsicum/procdesc.cc
439
CheckChildFinished(child);
tests/sys/capsicum/procdesc.cc
706
pid_t child = fork();
tests/sys/capsicum/procdesc.cc
707
EXPECT_OK(child);
tests/sys/capsicum/procdesc.cc
708
if (child == 0) {
tests/sys/capsicum/procdesc.cc
741
if (verbose) fprintf(stderr, "[%d] fork()ed child is %d\n", getpid_(), child);
tests/sys/capsicum/procdesc.cc
745
EXPECT_PID_ALIVE(child);
tests/sys/capsicum/procdesc.cc
748
if (verbose) fprintf(stderr, "[%d] telling child %d to exit\n", getpid_(), child);
tests/sys/capsicum/procdesc.cc
751
EXPECT_PID_DEAD(child);
tests/sys/capsicum/procdesc.cc
752
CheckChildFinished(child);
tests/sys/capsicum/smoketest.c
113
rc = wait4(child, &status, 0, NULL);
tests/sys/capsicum/smoketest.c
114
fprintf(stderr, "[%d] child %d exited with status %x\n", getpid(), child, status);
tests/sys/capsicum/smoketest.c
90
pid_t child = fork();
tests/sys/capsicum/smoketest.c
91
if (child == 0) { /* child */
tests/sys/capsicum/socket.cc
117
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/socket.cc
162
pid_t child = fork();
tests/sys/capsicum/socket.cc
163
if (child == 0) {
tests/sys/capsicum/socket.cc
232
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/socket.cc
25
pid_t child = fork();
tests/sys/capsicum/socket.cc
26
if (child == 0) {
tests/sys/capsicum/socket.cc
292
pid_t child = fork();
tests/sys/capsicum/socket.cc
293
if (child == 0) {
tests/sys/capsicum/socket.cc
340
EXPECT_EQ(child, waitpid(child, &status, 0));
tests/sys/capsicum/waittest.c
24
pid_t child = waitpid(-1, &rc, WNOHANG);
tests/sys/capsicum/waittest.c
25
if (child == 0) {
tests/sys/capsicum/waittest.c
27
} else if (child < 0) {
tests/sys/capsicum/waittest.c
30
fprintf(stderr, "waitpid(): found completed child %ld\n", (long)child);
tests/sys/file/path_test.c
169
pid_t child;
tests/sys/file/path_test.c
174
child = fork();
tests/sys/file/path_test.c
175
ATF_REQUIRE_MSG(child != -1, FMT_ERR("fork"));
tests/sys/file/path_test.c
176
if (child == 0) {
tests/sys/file/path_test.c
189
waitchild(child, 0);
tests/sys/file/path_test.c
192
child = fork();
tests/sys/file/path_test.c
193
ATF_REQUIRE_MSG(child != -1, FMT_ERR("fork"));
tests/sys/file/path_test.c
194
if (child == 0) {
tests/sys/file/path_test.c
208
waitchild(child, 4);
tests/sys/file/path_test.c
292
pid_t child;
tests/sys/file/path_test.c
296
child = fork();
tests/sys/file/path_test.c
297
ATF_REQUIRE_MSG(child != -1, FMT_ERR("fork"));
tests/sys/file/path_test.c
298
if (child == 0) {
tests/sys/file/path_test.c
306
error = ptrace(PT_ATTACH, child, 0, 0);
tests/sys/file/path_test.c
308
error = waitpid(child, &status, 0);
tests/sys/file/path_test.c
315
error = ptrace(PT_COREDUMP, child, (void *)&pc, sizeof(pc));
tests/sys/file/path_test.c
318
error = ptrace(PT_DETACH, child, 0, 0);
tests/sys/file/path_test.c
321
ATF_REQUIRE_MSG(kill(child, SIGKILL) == 0, FMT_ERR("kill"));
tests/sys/file/path_test.c
600
pid_t child;
tests/sys/file/path_test.c
603
child = fork();
tests/sys/file/path_test.c
604
ATF_REQUIRE_MSG(child != -1, FMT_ERR("fork"));
tests/sys/file/path_test.c
605
if (child == 0) {
tests/sys/file/path_test.c
614
waitchild(child, 0);
tests/sys/file/path_test.c
92
waitchild(pid_t child, int exstatus)
tests/sys/file/path_test.c
96
error = waitpid(child, &status, 0);
tests/sys/fs/fusefs/pre-init.cc
126
pid_t child;
tests/sys/fs/fusefs/pre-init.cc
150
if ((child = ::fork()) == 0) {
tests/sys/fs/fusefs/pre-init.cc
157
} else if (child > 0) {
tests/sys/fs/fusefs/pre-init.cc
160
kill(child, SIGINT);
tests/sys/fs/fusefs/pre-init.cc
161
waitpid(child, NULL, WEXITED);
tests/sys/fs/fusefs/utils.cc
588
pid_t child;
tests/sys/fs/fusefs/utils.cc
602
if ((child = ::fork()) == 0) {
tests/sys/fs/fusefs/utils.cc
627
} else if (child > 0) {
tests/sys/fs/fusefs/utils.cc
632
m_mock->m_child_pid = child;
tests/sys/kern/fdgrowtable_test.c
170
pid_t child;
tests/sys/kern/fdgrowtable_test.c
175
if ((child = rfork(RFPROC | RFCFDG)) > 0) {
tests/sys/kern/fdgrowtable_test.c
179
wpid = waitpid(child, &status, 0);
tests/sys/kern/fdgrowtable_test.c
180
ATF_REQUIRE(wpid == child);
tests/sys/kern/fdgrowtable_test.c
191
REQUIRE(child == 0);
tests/sys/kern/fdgrowtable_test.c
237
pid_t child, wpid;
tests/sys/kern/fdgrowtable_test.c
242
ATF_REQUIRE((child = rfork(RFPROC)) != -1);
tests/sys/kern/fdgrowtable_test.c
244
if (child == 0) {
tests/sys/kern/fdgrowtable_test.c
254
wpid = waitpid(child, &status, WUNTRACED);
tests/sys/kern/fdgrowtable_test.c
255
ATF_REQUIRE(wpid == child);
tests/sys/kern/fdgrowtable_test.c
271
kill(child, SIGCONT);
tests/sys/kern/fdgrowtable_test.c
274
wpid = waitpid(child, &status, 0);
tests/sys/kern/fdgrowtable_test.c
275
ATF_REQUIRE(wpid == child);
tests/sys/kern/kill_zombie.c
37
pid_t child, pid;
tests/sys/kern/kill_zombie.c
40
child = fork();
tests/sys/kern/kill_zombie.c
41
ATF_REQUIRE(child != -1);
tests/sys/kern/kill_zombie.c
42
if (child == 0) {
tests/sys/kern/kill_zombie.c
46
r = waitid(P_PID, child, NULL, WEXITED | WNOWAIT);
tests/sys/kern/kill_zombie.c
49
r = kill(child, SIGTERM);
tests/sys/kern/kill_zombie.c
53
pid = waitpid(child, &status, 0);
tests/sys/kern/kill_zombie.c
54
ATF_REQUIRE(pid == child);
tests/sys/kern/prace.c
96
child(pd[1], poll);
tests/sys/kern/ptrace_test.c
1016
pid_t child, debugger, ppid, wpid;
tests/sys/kern/ptrace_test.c
1021
ATF_REQUIRE((child = fork()) != -1);
tests/sys/kern/ptrace_test.c
1023
if (child == 0) {
tests/sys/kern/ptrace_test.c
1047
CHILD_REQUIRE(ptrace(PT_ATTACH, child, NULL, 0) != -1);
tests/sys/kern/ptrace_test.c
1049
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
1050
CHILD_REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
1054
CHILD_REQUIRE(ptrace(PT_CONTINUE, child, (caddr_t)1, 0) != -1);
tests/sys/kern/ptrace_test.c
1061
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
1062
CHILD_REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
1091
wpid = waitpid(child, &status, WNOHANG);
tests/sys/kern/ptrace_test.c
1092
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
185
pid_t child, wpid;
tests/sys/kern/ptrace_test.c
188
ATF_REQUIRE((child = fork()) != -1);
tests/sys/kern/ptrace_test.c
189
if (child == 0) {
tests/sys/kern/ptrace_test.c
199
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
200
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
205
ATF_REQUIRE(ptrace(PT_CONTINUE, child, (caddr_t)1, 0) != -1);
tests/sys/kern/ptrace_test.c
208
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
209
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
214
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
226
pid_t child, wpid;
tests/sys/kern/ptrace_test.c
231
ATF_REQUIRE((child = fork()) != -1);
tests/sys/kern/ptrace_test.c
232
if (child == 0) {
tests/sys/kern/ptrace_test.c
246
attach_child(child);
tests/sys/kern/ptrace_test.c
249
ATF_REQUIRE(ptrace(PT_CONTINUE, child, (caddr_t)1, 0) != -1);
tests/sys/kern/ptrace_test.c
255
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
256
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
261
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
273
pid_t child, debugger, wpid;
tests/sys/kern/ptrace_test.c
278
ATF_REQUIRE((child = fork()) != -1);
tests/sys/kern/ptrace_test.c
280
if (child == 0) {
tests/sys/kern/ptrace_test.c
299
CHILD_REQUIRE(ptrace(PT_ATTACH, child, NULL, 0) != -1);
tests/sys/kern/ptrace_test.c
301
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
302
CHILD_REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
306
CHILD_REQUIRE(ptrace(PT_CONTINUE, child, (caddr_t)1, 0) != -1);
tests/sys/kern/ptrace_test.c
315
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
316
CHILD_REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
3200
pid_t child, wpid;
tests/sys/kern/ptrace_test.c
3203
ATF_REQUIRE((child = fork()) != -1);
tests/sys/kern/ptrace_test.c
3204
if (child == 0) {
tests/sys/kern/ptrace_test.c
3210
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
3211
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
3246
REQUIRE_EQ(ptrace(PT_CONTINUE, child, (caddr_t)1, 0), 0);
tests/sys/kern/ptrace_test.c
3249
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
3250
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
3255
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
334
wait_for_zombie(child);
tests/sys/kern/ptrace_test.c
341
wpid = waitpid(child, &status, WNOHANG);
tests/sys/kern/ptrace_test.c
3500
pid_t child, wpid;
tests/sys/kern/ptrace_test.c
3512
ATF_REQUIRE((child = fork()) != -1);
tests/sys/kern/ptrace_test.c
3513
if (child == 0) {
tests/sys/kern/ptrace_test.c
354
wpid = waitpid(child, &status, WNOHANG);
tests/sys/kern/ptrace_test.c
355
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
3554
REQUIRE_EQ(ptrace(PT_ATTACH, child, NULL, 0), 0);
tests/sys/kern/ptrace_test.c
3556
wpid = waitpid(child, &status, WNOHANG);
tests/sys/kern/ptrace_test.c
3557
if (wpid == child && WIFSTOPPED(status) &&
tests/sys/kern/ptrace_test.c
3564
REQUIRE_EQ(ptrace(PT_DETACH, child, NULL, 0), 0);
tests/sys/kern/ptrace_test.c
369
pid_t child, debugger, fpid, wpid;
tests/sys/kern/ptrace_test.c
374
ATF_REQUIRE((child = fork()) != -1);
tests/sys/kern/ptrace_test.c
376
if (child == 0) {
tests/sys/kern/ptrace_test.c
405
CHILD_REQUIRE(ptrace(PT_ATTACH, child, NULL, 0) != -1);
tests/sys/kern/ptrace_test.c
407
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
408
CHILD_REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
412
CHILD_REQUIRE(ptrace(PT_CONTINUE, child, (caddr_t)1, 0) != -1);
tests/sys/kern/ptrace_test.c
422
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
423
CHILD_REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
4271
pid_t child, wpid;
tests/sys/kern/ptrace_test.c
4274
child = pdfork(&pd, 0);
tests/sys/kern/ptrace_test.c
4275
ATF_REQUIRE(child >= 0);
tests/sys/kern/ptrace_test.c
4277
if (child == 0) {
tests/sys/kern/ptrace_test.c
4283
wpid = waitpid(child, &status, 0);
tests/sys/kern/ptrace_test.c
4284
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
4288
ATF_REQUIRE(ptrace(PT_CONTINUE, child, (caddr_t)1, 0) != -1);
tests/sys/kern/ptrace_test.c
4291
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
4295
ATF_REQUIRE(ptrace(PT_CONTINUE, child, (caddr_t)1, 0) != -1);
tests/sys/kern/ptrace_test.c
440
wpid = waitpid(child, &status, WNOHANG);
tests/sys/kern/ptrace_test.c
451
wait_for_zombie(child);
tests/sys/kern/ptrace_test.c
458
wpid = waitpid(child, &status, WNOHANG);
tests/sys/kern/ptrace_test.c
469
wpid = waitpid(child, &status, WNOHANG);
tests/sys/kern/ptrace_test.c
470
REQUIRE_EQ(wpid, child);
tests/sys/kern/ptrace_test.c
483
pid_t child, gchild;
tests/sys/kern/ptrace_test.c
491
ATF_REQUIRE((child = fork()) != -1);
tests/sys/kern/ptrace_test.c
492
if (child == 0) {
tests/sys/kern/ptrace_test.c
517
REQUIRE_EQ(waitpid(child, &status, 0), child);
tests/sys/kern/ptrace_test.c
576
pid_t child, wpid;
tests/sys/kern/ptrace_test.c
581
child = -1;
tests/sys/kern/ptrace_test.c
603
if (child == -1)
tests/sys/kern/ptrace_test.c
604
child = wpid;
tests/sys/kern/ptrace_test.c
606
REQUIRE_EQ(child, wpid);
tests/sys/kern/ptrace_test.c
614
if (child == -1)
tests/sys/kern/ptrace_test.c
615
child = pl.pl_child_pid;
tests/sys/kern/ptrace_test.c
617
REQUIRE_EQ(child, pl.pl_child_pid);
tests/sys/kern/ptrace_test.c
624
return (child);
tests/sys/kern/reaper.c
109
child = fork();
tests/sys/kern/reaper.c
110
ATF_REQUIRE(child != -1);
tests/sys/kern/reaper.c
111
if (child == 0) {
tests/sys/kern/reaper.c
125
pid = waitpid(child, &status, 0);
tests/sys/kern/reaper.c
126
ATF_REQUIRE_EQ(child, pid);
tests/sys/kern/reaper.c
131
ATF_REQUIRE(pid > 0 && pid != child);
tests/sys/kern/reaper.c
146
pid_t parent, child, grandchild, pid;
tests/sys/kern/reaper.c
175
child = fork();
tests/sys/kern/reaper.c
176
ATF_REQUIRE(child != -1);
tests/sys/kern/reaper.c
177
if (child == 0) {
tests/sys/kern/reaper.c
198
ATF_CHECK_EQ(child, info.si_pid);
tests/sys/kern/reaper.c
200
pid = waitpid(child, NULL, 0);
tests/sys/kern/reaper.c
201
ATF_REQUIRE_EQ(child, pid);
tests/sys/kern/reaper.c
214
ATF_REQUIRE(grandchild != child);
tests/sys/kern/reaper.c
233
pid_t parent, child, grandchild, pid;
tests/sys/kern/reaper.c
258
child = fork();
tests/sys/kern/reaper.c
259
ATF_REQUIRE(child != -1);
tests/sys/kern/reaper.c
260
if (child == 0) {
tests/sys/kern/reaper.c
274
pid = waitpid(child, NULL, 0);
tests/sys/kern/reaper.c
275
ATF_REQUIRE_EQ(child, pid);
tests/sys/kern/reaper.c
285
ATF_REQUIRE(grandchild != child);
tests/sys/kern/reaper.c
296
pid_t parent, child, pid;
tests/sys/kern/reaper.c
324
child = fork();
tests/sys/kern/reaper.c
325
ATF_REQUIRE(child != -1);
tests/sys/kern/reaper.c
326
if (child == 0) {
tests/sys/kern/reaper.c
349
ATF_CHECK_EQ(child, st.rs_pid);
tests/sys/kern/reaper.c
357
ATF_CHECK_EQ(child, st.rs_pid);
tests/sys/kern/reaper.c
361
pid = waitpid(child, &status, 0);
tests/sys/kern/reaper.c
362
ATF_REQUIRE_EQ(child, pid);
tests/sys/kern/reaper.c
380
pid_t parent, child, grandchild, pid;
tests/sys/kern/reaper.c
401
child = fork();
tests/sys/kern/reaper.c
402
ATF_REQUIRE(child != -1);
tests/sys/kern/reaper.c
403
if (child == 0) {
tests/sys/kern/reaper.c
437
ATF_CHECK_EQ(child, info[0].pi_pid);
tests/sys/kern/reaper.c
438
ATF_CHECK_EQ(child, info[0].pi_subtree);
tests/sys/kern/reaper.c
45
pid_t parent, child, grandchild, pid;
tests/sys/kern/reaper.c
458
ATF_CHECK_EQ(child, info[0].pi_subtree);
tests/sys/kern/reaper.c
459
ATF_CHECK_EQ(child, info[1].pi_subtree);
tests/sys/kern/reaper.c
460
childidx = info[1].pi_pid == child ? 1 : 0;
tests/sys/kern/reaper.c
464
ATF_CHECK(info[childidx].pi_pid == child);
tests/sys/kern/reaper.c
467
ATF_CHECK(grandchild != child);
tests/sys/kern/reaper.c
470
r = kill(child, SIGTERM);
tests/sys/kern/reaper.c
473
pid = waitpid(child, &status, 0);
tests/sys/kern/reaper.c
474
ATF_REQUIRE_EQ(child, pid);
tests/sys/kern/reaper.c
487
ATF_CHECK_EQ(child, info[0].pi_subtree);
tests/sys/kern/reaper.c
505
ATF_CHECK_EQ(child, info[0].pi_subtree);
tests/sys/kern/reaper.c
587
pid_t parent, child, grandchild, pid;
tests/sys/kern/reaper.c
597
child = fork();
tests/sys/kern/reaper.c
598
ATF_REQUIRE(child != -1);
tests/sys/kern/reaper.c
599
if (child == 0) {
tests/sys/kern/reaper.c
60
child = fork();
tests/sys/kern/reaper.c
61
ATF_REQUIRE(child != -1);
tests/sys/kern/reaper.c
62
if (child == 0) {
tests/sys/kern/reaper.c
627
pid = waitpid(child, &status, 0);
tests/sys/kern/reaper.c
628
ATF_REQUIRE_EQ(child, pid);
tests/sys/kern/reaper.c
634
ATF_CHECK(pid != child);
tests/sys/kern/reaper.c
746
pid_t child, grandchild, parent, pid;
tests/sys/kern/reaper.c
753
child = pdfork(&pd, 0);
tests/sys/kern/reaper.c
754
ATF_REQUIRE(child != -1);
tests/sys/kern/reaper.c
755
if (child == 0) {
tests/sys/kern/reaper.c
763
pid = waitpid(child, &status, 0);
tests/sys/kern/reaper.c
764
ATF_REQUIRE_EQ(pid, child);
tests/sys/kern/reaper.c
78
pid = waitpid(child, &status, 0);
tests/sys/kern/reaper.c
79
ATF_REQUIRE_EQ(child, pid);
tests/sys/kern/reaper.c
87
ATF_REQUIRE(pid > 0 && pid != child);
tests/sys/kern/reaper.c
98
pid_t parent, child, grandchild, pid;
tests/sys/kern/socket_splice.c
676
pid_t child;
tests/sys/kern/socket_splice.c
687
child = fork();
tests/sys/kern/socket_splice.c
688
ATF_REQUIRE_MSG(child >= 0, "fork failed: %s", strerror(errno));
tests/sys/kern/socket_splice.c
689
if (child == 0) {
tests/sys/kern/socket_splice.c
710
child = waitpid(child, &status, 0);
tests/sys/kern/socket_splice.c
711
ATF_REQUIRE_MSG(child >= 0,
tests/sys/kern/sysctl_kern_proc.c
103
child = fork();
tests/sys/kern/sysctl_kern_proc.c
104
ATF_REQUIRE(child != -1);
tests/sys/kern/sysctl_kern_proc.c
105
if (child == 0) {
tests/sys/kern/sysctl_kern_proc.c
121
ATF_REQUIRE(waitpid(child, &status, 0) == child);
tests/sys/kern/sysctl_kern_proc.c
68
pid_t child;
tests/sys/kern/waitpid_nohang.c
37
pid_t child, pid;
tests/sys/kern/waitpid_nohang.c
40
child = fork();
tests/sys/kern/waitpid_nohang.c
41
ATF_REQUIRE(child != -1);
tests/sys/kern/waitpid_nohang.c
42
if (child == 0) {
tests/sys/kern/waitpid_nohang.c
48
pid = waitpid(child, &status, WNOHANG);
tests/sys/kern/waitpid_nohang.c
52
r = kill(child, SIGTERM);
tests/sys/kern/waitpid_nohang.c
54
r = waitid(P_PID, child, NULL, WEXITED | WNOWAIT);
tests/sys/kern/waitpid_nohang.c
58
pid = waitpid(child, &status, WNOHANG);
tests/sys/kern/waitpid_nohang.c
59
ATF_REQUIRE(pid == child);
tests/sys/netinet/socket_afinet.c
344
pid_t child;
tests/sys/netinet/socket_afinet.c
354
child = fork();
tests/sys/netinet/socket_afinet.c
355
ATF_REQUIRE(child != -1);
tests/sys/netinet/socket_afinet.c
356
if (child == 0) {
tests/sys/netinet/socket_afinet.c
387
ATF_REQUIRE_EQ(waitpid(child, &status, 0), child);
tests/sys/posixshm/posixshm_test.c
1755
pid_t child;
tests/sys/posixshm/posixshm_test.c
1770
child = fork();
tests/sys/posixshm/posixshm_test.c
1771
ATF_REQUIRE_MSG(child != -1, "fork failed; error=%d", errno);
tests/sys/posixshm/posixshm_test.c
1772
if (child == 0) {
tests/sys/posixshm/posixshm_test.c
1782
ATF_REQUIRE_MSG(waitpid(child, &status, 0) == child,
tests/sys/posixshm/posixshm_test.c
1791
child = fork();
tests/sys/posixshm/posixshm_test.c
1792
ATF_REQUIRE_MSG(child != -1, "fork failed; error=%d", errno);
tests/sys/posixshm/posixshm_test.c
1793
if (child == 0) {
tests/sys/posixshm/posixshm_test.c
1800
ATF_REQUIRE_MSG(waitpid(child, &status, 0) == child,
tests/sys/posixshm/posixshm_test.c
1813
child = fork();
tests/sys/posixshm/posixshm_test.c
1814
ATF_REQUIRE_MSG(child != -1, "fork failed; error=%d", errno);
tests/sys/posixshm/posixshm_test.c
1815
if (child == 0) {
tests/sys/posixshm/posixshm_test.c
1825
ATF_REQUIRE_MSG(waitpid(child, &status, 0) == child,
tests/sys/posixshm/posixshm_test.c
1844
pid_t child;
tests/sys/posixshm/posixshm_test.c
1859
child = fork();
tests/sys/posixshm/posixshm_test.c
1860
ATF_REQUIRE_MSG(child != -1, "fork() failed; error=%d", errno);
tests/sys/posixshm/posixshm_test.c
1861
if (child == 0) {
tests/sys/posixshm/posixshm_test.c
1880
ATF_REQUIRE_MSG(waitpid(child, &status, 0) == child,
tests/sys/vm/shared_shadow_inval_test.c
126
static void child(struct shared_state *ss, int depth);
tests/sys/vm/shared_shadow_inval_test.c
135
child(ss, depth);
tests/sys/vm/shared_shadow_inval_test.c
342
child(ss, 1);
tools/regression/p1003_1b/fifo.c
127
if ((child = fork()) == 0)
tools/regression/p1003_1b/fifo.c
166
if (*p == child) {
tools/regression/p1003_1b/fifo.c
188
if (sched_setscheduler(child, SCHED_RR, &fifo_param) == -1 ||
tools/regression/p1003_1b/fifo.c
213
if (*p == child) {
tools/regression/p1003_1b/fifo.c
64
static pid_t child;
tools/regression/p1003_1b/fifo.c
67
if (child)
tools/regression/p1003_1b/fifo.c
68
kill(child, SIGHUP);
tools/regression/poll/pipepoll.c
309
child(fd[0], num);
tools/regression/poll/pipeselect.c
306
child(fd[0], num);
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
144
child = fork();
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
145
if (child < 0)
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
151
if (child == 0) {
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
197
if (waitpid(child, &status, 0) < 0)
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
67
pid_t child;
tools/test/popss/popss.c
101
kill(child, SIGKILL);
tools/test/popss/popss.c
102
ptrace(PT_DETACH, child, NULL, 0);
tools/test/popss/popss.c
166
int child;
tools/test/popss/popss.c
174
child = fork();
tools/test/popss/popss.c
175
if (child == -1)
tools/test/popss/popss.c
177
if (child == 0)
tools/test/popss/popss.c
180
setup(child);
tools/test/popss/popss.c
53
setup(pid_t child)
tools/test/popss/popss.c
59
error = waitpid(child, &status, WTRAPPED | WEXITED);
tools/test/popss/popss.c
62
error = ptrace(PT_GETREGS, child, (caddr_t)&r, 0);
tools/test/popss/popss.c
65
printf("child %d stopped eip %#x esp %#x\n", child, r.r_eip, r.r_esp);
tools/test/popss/popss.c
67
error = ptrace(PT_GETDBREGS, child, (caddr_t)&dbr, 0);
tools/test/popss/popss.c
74
error = ptrace(PT_SETDBREGS, child, (caddr_t)&dbr, 0);
tools/test/popss/popss.c
77
error = ptrace(PT_CONTINUE, child, (caddr_t)1, 0);
tools/test/popss/popss.c
82
error = waitpid(child, &status, WTRAPPED | WEXITED);
tools/test/popss/popss.c
87
error = ptrace(PT_GETREGS, child, (caddr_t)&r, 0);
tools/test/popss/popss.c
90
error = ptrace(PT_GETDBREGS, child, (caddr_t)&dbr, 0);
tools/test/popss/popss.c
94
"dr6 %#x dr7 %#x\n", child, r.r_eip, r.r_esp,
tools/test/popss/popss.c
96
error = ptrace(PT_CONTINUE, child, (caddr_t)1, 0);
tools/tools/so_splice/proxy.c
232
pid_t child;
tools/tools/so_splice/proxy.c
234
child = fork();
tools/tools/so_splice/proxy.c
235
if (child == -1)
tools/tools/so_splice/proxy.c
237
if (child != 0) {
tools/tools/so_splice/proxy.c
240
return (child);
tools/tools/so_splice/proxy.c
260
pid_t child;
tools/tools/so_splice/proxy.c
312
child = proxy(sc, ls[0], ts);
tools/tools/so_splice/proxy.c
313
EV_SET(&kev, child, EVFILT_PROC, EV_ADD,
tools/tools/so_splice/proxy.c
317
child = proxy(sc, s, ls[1]);
tools/tools/so_splice/proxy.c
318
EV_SET(&kev, child, EVFILT_PROC, EV_ADD,
tools/tools/so_splice/proxy.c
323
child = proxy(sc, s, ts);
tools/tools/so_splice/proxy.c
324
EV_SET(&kev, child, EVFILT_PROC, EV_ADD,
tools/tools/so_splice/proxy.c
335
child = kev.ident;
tools/tools/so_splice/proxy.c
346
if (waitpid(child, NULL, 0) == -1)
tools/tools/tscdrift/tscdrift.c
130
error = pthread_create(&child, NULL, thread_main,
tools/tools/tscdrift/tscdrift.c
151
error = pthread_join(child, NULL);
tools/tools/tscdrift/tscdrift.c
93
pthread_t child;
usr.bin/dtc/fdt.cc
2108
parent->delete_children_if([&](node_ptr &child) { return child == node; });
usr.bin/dtc/fdt.cc
812
node_ptr child = node::parse_dtb(structs, strings);
usr.bin/dtc/fdt.cc
813
if (child == 0)
usr.bin/dtc/fdt.cc
818
children.push_back(std::move(child));
usr.bin/dtc/fdt.cc
984
node_ptr child = node::parse(input, tree, std::move(child_name),
usr.bin/dtc/fdt.cc
986
if (child)
usr.bin/dtc/fdt.cc
988
child->omit_if_no_ref = marked_omit_if_no_ref;
usr.bin/dtc/fdt.cc
989
children.push_back(std::move(child));
usr.bin/fortune/fortune/fortune.c
1010
for (fp = parent->child; choice--; fp = fp->next)
usr.bin/fortune/fortune/fortune.c
1020
for (fp = parent->child; (unsigned)choice >= fp->tbl.str_numstr;
usr.bin/fortune/fortune/fortune.c
1121
FILEDESC *child;
usr.bin/fortune/fortune/fortune.c
1125
if (fp->child == NULL) {
usr.bin/fortune/fortune/fortune.c
1144
for (child = fp->child; child != NULL; child = child->next) {
usr.bin/fortune/fortune/fortune.c
1145
get_tbl(child);
usr.bin/fortune/fortune/fortune.c
1146
sum_tbl(&fp->tbl, &child->tbl);
usr.bin/fortune/fortune/fortune.c
1207
if (list->child != NULL)
usr.bin/fortune/fortune/fortune.c
1208
print_list(list->child, lev + 1);
usr.bin/fortune/fortune/fortune.c
1286
if (fp->child != NULL) {
usr.bin/fortune/fortune/fortune.c
1287
if ((len = maxlen_in_list(fp->child)) > maxlen)
usr.bin/fortune/fortune/fortune.c
1313
if (fp->child != NULL) {
usr.bin/fortune/fortune/fortune.c
1314
matches_in_list(fp->child);
usr.bin/fortune/fortune/fortune.c
597
fp->child = NULL;
usr.bin/fortune/fortune/fortune.c
646
if (fp->child != NULL) /* this is a directory, not a file */
usr.bin/fortune/fortune/fortune.c
658
fp->child = scene;
usr.bin/fortune/fortune/fortune.c
661
scene->child = obscene->child = NULL;
usr.bin/fortune/fortune/fortune.c
706
if (add_file(NO_PROB, name, fp->path, &fp->child, &tailp, fp))
usr.bin/fortune/fortune/fortune.c
82
struct fd *child, *parent;
usr.bin/fortune/fortune/fortune.c
982
if (fp->child != NULL) {
usr.bin/lockf/lockf.c
277
if ((child = fork()) == -1)
usr.bin/lockf/lockf.c
279
if (child == 0) { /* The child process. */
usr.bin/lockf/lockf.c
297
(void)dprintf(lockfd, "%d\n", (int)child);
usr.bin/lockf/lockf.c
302
while (child >= 0) {
usr.bin/lockf/lockf.c
365
if (termchild && child >= 0)
usr.bin/lockf/lockf.c
366
kill(child, sig);
usr.bin/lockf/lockf.c
383
while (waitpid(child, &ostatus, 0) != child) {
usr.bin/lockf/lockf.c
389
child = -1;
usr.bin/lockf/lockf.c
63
static sig_atomic_t child = -1;
usr.bin/mail/popen.c
291
static struct child *
usr.bin/mail/popen.c
294
struct child **cpp;
usr.bin/mail/popen.c
296
for (cpp = &child; *cpp != NULL && (*cpp)->pid != pid;
usr.bin/mail/popen.c
306
*cpp = malloc(sizeof(struct child));
usr.bin/mail/popen.c
318
delchild(struct child *cp)
usr.bin/mail/popen.c
320
struct child **cpp;
usr.bin/mail/popen.c
322
for (cpp = &child; *cpp != cp; cpp = &(*cpp)->link)
usr.bin/mail/popen.c
335
struct child *cp;
usr.bin/mail/popen.c
361
struct child *cp;
usr.bin/mail/popen.c
393
struct child *cp;
usr.bin/mail/popen.c
55
struct child *link;
usr.bin/mail/popen.c
57
static struct child *child, *child_freelist = NULL;
usr.bin/mail/popen.c
59
static void delchild(struct child *);
usr.bin/script/script.c
261
child = fork();
usr.bin/script/script.c
262
if (child < 0) {
usr.bin/script/script.c
266
if (child == 0) {
usr.bin/script/script.c
413
if (waitpid(child, &status, 0) == child) {
usr.bin/script/script.c
74
static int child;
usr.bin/tip/libacu/dn11.c
134
if (child > 0)
usr.bin/tip/libacu/dn11.c
135
kill(child, SIGKILL);
usr.bin/tip/libacu/dn11.c
41
static pid_t child = -1, dn;
usr.bin/tip/libacu/dn11.c
62
kill(child, SIGKILL);
usr.bin/tip/libacu/dn11.c
69
if ((child = fork()) == 0) {
usr.bin/tip/libacu/dn11.c
89
kill(child, SIGKILL);
usr.bin/tip/libacu/dn11.c
98
while ((nw = wait(<)) != child && nw != -1)
usr.bin/tip/libacu/v831.c
103
while ((pid = wait(&status)) != child && pid != -1)
usr.bin/tip/libacu/v831.c
151
if (child > 0)
usr.bin/tip/libacu/v831.c
152
kill(child, SIGKILL);
usr.bin/tip/libacu/v831.c
42
static pid_t child = -1;
usr.bin/tip/libacu/v831.c
68
kill(child, SIGKILL);
usr.bin/tip/libacu/v831.c
75
if ((child = fork()) == 0) {
usr.bin/tip/libacu/v831.c
97
kill(child, SIGKILL);
usr.sbin/autofs/automountd.c
126
const struct node *child;
usr.sbin/autofs/automountd.c
141
TAILQ_FOREACH(child, &node->n_children, n_next) {
usr.sbin/autofs/automountd.c
142
if (strcmp(child->n_key, "*") == 0) {
usr.sbin/autofs/automountd.c
159
TAILQ_FOREACH(child, &node->n_children, n_next)
usr.sbin/autofs/automountd.c
160
create_subtree(child, incomplete);
usr.sbin/autofs/common.c
242
const struct node *child;
usr.sbin/autofs/common.c
251
TAILQ_FOREACH(child, &o->n_children, n_next)
usr.sbin/autofs/common.c
252
node_duplicate(child, n);
usr.sbin/autofs/common.c
260
struct node *child, *tmp;
usr.sbin/autofs/common.c
264
TAILQ_FOREACH_SAFE(child, &n->n_children, n_next, tmp)
usr.sbin/autofs/common.c
265
node_delete(child);
usr.sbin/autofs/common.c
400
struct node *child;
usr.sbin/autofs/common.c
414
TAILQ_FOREACH(child, &n->n_children, n_next)
usr.sbin/autofs/common.c
415
node_expand_ampersand(child, key);
usr.sbin/autofs/common.c
424
struct node *child, *expanded;
usr.sbin/autofs/common.c
434
TAILQ_FOREACH(child, &n->n_children, n_next)
usr.sbin/autofs/common.c
435
node_expand_wildcard(child, key);
usr.sbin/autofs/common.c
441
struct node *child;
usr.sbin/autofs/common.c
453
TAILQ_FOREACH(child, &n->n_children, n_next) {
usr.sbin/autofs/common.c
454
error = node_expand_defined(child);
usr.sbin/autofs/common.c
491
const struct node *child;
usr.sbin/autofs/common.c
493
TAILQ_FOREACH(child, &n->n_children, n_next) {
usr.sbin/autofs/common.c
494
if (strcmp(child->n_key, "*") == 0)
usr.sbin/autofs/common.c
504
struct node *child, *tmp;
usr.sbin/autofs/common.c
506
TAILQ_FOREACH_SAFE(child, &n->n_children, n_next, tmp) {
usr.sbin/autofs/common.c
507
if (node_is_direct_map(child)) {
usr.sbin/autofs/common.c
519
if (child->n_map == NULL)
usr.sbin/autofs/common.c
524
child->n_map);
usr.sbin/autofs/common.c
527
child->n_map);
usr.sbin/autofs/common.c
529
parse_map(child, child->n_map, NULL, NULL);
usr.sbin/autofs/common.c
621
const struct node *child, *first_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, indent + 2);
usr.sbin/autofs/common.c
669
const struct node *child;
usr.sbin/autofs/common.c
671
TAILQ_FOREACH(child, &n->n_children, n_next)
usr.sbin/autofs/common.c
672
node_print_indent(child, cmdline_options, 0);
usr.sbin/autofs/common.c
678
struct node *child, *found;
usr.sbin/autofs/common.c
702
TAILQ_FOREACH(child, &node->n_children, n_next) {
usr.sbin/autofs/common.c
703
found = node_find_x(child, path);
usr.sbin/bhyve/bhyverun.c
887
pid_t child = fork();
usr.sbin/bhyve/bhyverun.c
888
if (child == -1) {
usr.sbin/bhyve/bhyverun.c
893
if (child == 0)
usr.sbin/bhyve/bhyverun.c
895
while ((error = waitpid(child, &status, 0)) == -1 && errno == EINTR)
usr.sbin/bhyve/net_backend_slirp.c
118
error = posix_spawn(&child, "/usr/libexec/bhyve-slirp-helper",
usr.sbin/bhyve/net_backend_slirp.c
166
priv->helper = child;
usr.sbin/bhyve/net_backend_slirp.c
88
pid_t child;
usr.sbin/cron/cron/cron.c
561
if ((e->flags & INTERVAL) && e->child == pid) {
usr.sbin/cron/cron/cron.c
563
e->child = 0;
usr.sbin/cron/cron/do_command.c
72
e->child = pid;
usr.sbin/cron/cron/structs.h
43
pid_t child;
usr.sbin/ctld/uclparse.cc
1363
for (const auto &child : obj) {
usr.sbin/ctld/uclparse.cc
1364
if (!lun_add_option(child.key().c_str(),
usr.sbin/ctld/uclparse.cc
1365
child.forced_string_value().c_str()))
usr.sbin/ctld/uclparse.cc
435
for (const auto &child : obj) {
usr.sbin/ctld/uclparse.cc
436
if (child.type() != UCL_STRING)
usr.sbin/ctld/uclparse.cc
440
child.string_value().c_str()))
usr.sbin/ctld/uclparse.cc
470
for (const auto &child : obj) {
usr.sbin/ctld/uclparse.cc
472
child.key().c_str(), child))
usr.sbin/ctld/uclparse.cc
483
for (const auto &child : obj) {
usr.sbin/ctld/uclparse.cc
485
child.key().c_str(), child))
usr.sbin/ctld/uclparse.cc
496
for (const auto &child : obj) {
usr.sbin/ctld/uclparse.cc
498
child.key().c_str(), child))
usr.sbin/ctld/uclparse.cc
509
for (const auto &child : obj) {
usr.sbin/ctld/uclparse.cc
510
if (!uclparse_lun(child.key().c_str(),
usr.sbin/ctld/uclparse.cc
511
child))
usr.sbin/ctld/uclparse.cc
527
for (const auto &child : obj) {
usr.sbin/ctld/uclparse.cc
529
child.key().c_str(), child))
usr.sbin/ctld/uclparse.cc
540
for (const auto &child : obj) {
usr.sbin/ctld/uclparse.cc
542
child.key().c_str(), child))
usr.sbin/lpr/lpd/printjob.c
808
if ((child = dofork(pp, DORETURN)) == 0) { /* child */
usr.sbin/lpr/lpd/printjob.c
825
if (child < 0)
usr.sbin/lpr/lpd/printjob.c
828
while ((wpid = wait(&wstatus)) > 0 && wpid != child)
usr.sbin/lpr/lpd/printjob.c
840
child = 0;
usr.sbin/lpr/lpd/printjob.c
89
static int child; /* id of any filters */
usr.sbin/makefs/cd9660.c
1405
if (iterator->child != NULL) {
usr.sbin/makefs/cd9660.c
1407
iterator->child, this_node,
usr.sbin/makefs/cd9660.c
1420
assert(iterator->child == NULL);
usr.sbin/makefs/cd9660.c
1769
cd9660node *child;
usr.sbin/makefs/cd9660.c
1798
TAILQ_FOREACH(child, &node->cn_children, cn_next_child) {
usr.sbin/makefs/cd9660.c
1800
cd9660_compute_record_size(diskStructure, child);
usr.sbin/makefs/cd9660.c
1801
if ((cd9660_compute_record_size(diskStructure, child) +
usr.sbin/makefs/cd9660.c
1809
cd9660_compute_record_size(diskStructure, child);
usr.sbin/makefs/cd9660.c
1821
for (child = TAILQ_NEXT(node->dot_dot_record, cn_next_child);
usr.sbin/makefs/cd9660.c
1822
child != NULL; child = TAILQ_NEXT(child, cn_next_child)) {
usr.sbin/makefs/cd9660.c
1824
if (S_ISDIR(child->node->type)) {
usr.sbin/makefs/cd9660.c
1825
r = cd9660_compute_offsets(diskStructure, child,
usr.sbin/makefs/cd9660.c
1839
for (child = TAILQ_NEXT(node->dot_dot_record, cn_next_child);
usr.sbin/makefs/cd9660.c
1840
child != NULL;
usr.sbin/makefs/cd9660.c
1841
child = TAILQ_NEXT(child, cn_next_child)) {
usr.sbin/makefs/cd9660.c
1843
if (S_ISDIR(child->node->type))
usr.sbin/makefs/cd9660.c
1845
child->fileRecordSize =
usr.sbin/makefs/cd9660.c
1846
cd9660_compute_record_size(diskStructure, child);
usr.sbin/makefs/cd9660.c
1848
child->fileSectorsUsed =
usr.sbin/makefs/cd9660.c
1850
child->fileDataLength);
usr.sbin/makefs/cd9660.c
1852
inode = child->node->inode;
usr.sbin/makefs/cd9660.c
1858
used_bytes += child->fileSectorsUsed *
usr.sbin/makefs/cd9660.c
1865
child->fileDataSector = inode->ino;
usr.sbin/makefs/cd9660.c
1866
cd9660_bothendian_dword(child->fileDataSector,
usr.sbin/makefs/cd9660.c
1867
child->isoDirRecord->extent);
usr.sbin/makefs/ffs.c
722
ffs_size_dir(node->child, fsopts);
usr.sbin/makefs/ffs.c
878
} else if (cur->child != NULL)
usr.sbin/makefs/ffs.c
907
if (cur->child != NULL)
usr.sbin/makefs/ffs.c
943
if (cur->child == NULL)
usr.sbin/makefs/ffs.c
948
if (! ffs_populate_dir(path, cur->child, fsopts))
usr.sbin/makefs/makefs.h
107
struct _fsnode *child; /* child (if type == S_IFDIR) */
usr.sbin/makefs/msdos.c
244
if (cur->child) {
usr.sbin/makefs/msdos.c
250
if (msdos_populate_dir(pbuf, de, cur->child, cur,
usr.sbin/makefs/mtree.c
918
node = node->child;
usr.sbin/makefs/mtree.c
961
parent->child = node;
usr.sbin/makefs/walk.c
188
path, cur->child);
usr.sbin/makefs/walk.c
189
cur->child = walk_dir(root, rp, cur,
usr.sbin/makefs/walk.c
190
cur->child);
usr.sbin/makefs/walk.c
204
cur->child = walk_dir(root, rp, cur, NULL);
usr.sbin/makefs/walk.c
272
assert(node->parent->child == node);
usr.sbin/makefs/walk.c
290
if (cur->child) {
usr.sbin/makefs/walk.c
291
cur->child->parent = NULL;
usr.sbin/makefs/walk.c
292
free_fsnodes(cur->child);
usr.sbin/makefs/walk.c
377
for (curnode = specnode->child; curnode != NULL;
usr.sbin/makefs/walk.c
392
for (curnode = specnode->child; curnode != NULL;
usr.sbin/makefs/walk.c
458
curfsnode->child = create_fsnode(".", ".", ".",
usr.sbin/makefs/walk.c
460
curfsnode->child->parent = curfsnode;
usr.sbin/makefs/walk.c
461
curfsnode->child->first = curfsnode->child;
usr.sbin/makefs/walk.c
473
assert (curfsnode->child != NULL);
usr.sbin/makefs/walk.c
474
apply_specdir(path, curnode, curfsnode->child, speconly);
usr.sbin/makefs/walk.c
590
if (cur->child) {
usr.sbin/makefs/walk.c
592
dump_fsnodes(cur->child);
usr.sbin/makefs/zfs/fs.c
204
if (cur->type == S_IFDIR && cur->child != NULL)
usr.sbin/makefs/zfs/fs.c
205
fsnode_foreach(cur->child, cb, arg);
usr.sbin/makefs/zfs/fs.c
395
fsnode_isroot(cur) ? cur->next : cur->child;
usr.sbin/makefs/zfs/fs.c
662
fs_build_one(arg->zfs, cur->inode->param, cur->child, dirfd);
usr.sbin/makefs/zfs/fs.c
720
(cur->child == NULL || (cur->inode->flags & FI_ROOT) != 0)) {
usr.sbin/makefs/zfs/fs.c
909
cur = cur->child;
usr.sbin/pciconf/pciconf.c
380
struct pci_conf *child;
usr.sbin/pciconf/pciconf.c
400
child = conf + i;
usr.sbin/pciconf/pciconf.c
401
if (child->pc_sel.pc_domain < p->pc_sel.pc_domain)
usr.sbin/pciconf/pciconf.c
403
if (child->pc_sel.pc_domain > p->pc_sel.pc_domain)
usr.sbin/pciconf/pciconf.c
405
if (child->pc_sel.pc_bus < p->pc_secbus)
usr.sbin/pciconf/pciconf.c
407
if (child->pc_sel.pc_bus > p->pc_subbus)
usr.sbin/pciconf/pciconf.c
410
if (child->pc_sel.pc_bus == p->pc_secbus) {
usr.sbin/pciconf/pciconf.c
479
struct pci_tree_entry *child;
usr.sbin/pciconf/pciconf.c
516
TAILQ_FOREACH(child, &e->children, link) {
usr.sbin/pciconf/pciconf.c
517
print_tree_entry(child, indent_buf, TAILQ_NEXT(child, link) ==
usr.sbin/pmcstat/pmcpl_callgraph.c
226
struct pmcstat_cgnode *child;
usr.sbin/pmcstat/pmcpl_callgraph.c
228
LIST_FOREACH(child, &parent->pcg_children, pcg_sibling) {
usr.sbin/pmcstat/pmcpl_callgraph.c
229
if (child->pcg_image == image &&
usr.sbin/pmcstat/pmcpl_callgraph.c
230
child->pcg_func == pcoffset)
usr.sbin/pmcstat/pmcpl_callgraph.c
231
return (child);
usr.sbin/pmcstat/pmcpl_callgraph.c
238
child = pmcstat_cgnode_allocate(image, pcoffset);
usr.sbin/pmcstat/pmcpl_callgraph.c
243
LIST_INSERT_HEAD(&parent->pcg_children, child, pcg_sibling);
usr.sbin/pmcstat/pmcpl_callgraph.c
246
return (child);
usr.sbin/pmcstat/pmcpl_callgraph.c
335
struct pmcstat_cgnode *parent, *child;
usr.sbin/pmcstat/pmcpl_callgraph.c
348
child = parent = pmcstat_cgnode_hash_lookup_pc(pp, pmcid, pc, usermode);
usr.sbin/pmcstat/pmcpl_callgraph.c
374
parent = child) {
usr.sbin/pmcstat/pmcpl_callgraph.c
397
child = pmcstat_cgnode_find(parent, image, pc);
usr.sbin/pmcstat/pmcpl_callgraph.c
398
child->pcg_count++;
usr.sbin/pmcstat/pmcpl_calltree.c
1001
child = pch->pch_ctnode->pct_arc[i].pcta_child;
usr.sbin/pmcstat/pmcpl_calltree.c
1002
if (child->pct_color == PMCPL_PCT_WHITE) {
usr.sbin/pmcstat/pmcpl_calltree.c
1003
child->pct_color = PMCPL_PCT_BLACK;
usr.sbin/pmcstat/pmcpl_calltree.c
1007
pchc->pch_ctnode = child;
usr.sbin/pmcstat/pmcpl_calltree.c
1028
struct pmcpl_ct_node *child;
usr.sbin/pmcstat/pmcpl_calltree.c
1065
child = pmcpl_ct_node_hash_lookup(ct->pct_image,
usr.sbin/pmcstat/pmcpl_calltree.c
1067
assert(child != NULL);
usr.sbin/pmcstat/pmcpl_calltree.c
1074
pmcpl_ct_instr_add(child, j, pc, v);
usr.sbin/pmcstat/pmcpl_calltree.c
1075
pmcpl_ct_node_update(ct, child, j, v, 0);
usr.sbin/pmcstat/pmcpl_calltree.c
611
struct pmcpl_ct_node *child, int pmcin, unsigned v, int cd)
usr.sbin/pmcstat/pmcpl_calltree.c
623
if (parent->pct_arc[i].pcta_child == child) {
usr.sbin/pmcstat/pmcpl_calltree.c
653
arc->pcta_child = child;
usr.sbin/pmcstat/pmcpl_calltree.c
832
struct pmcpl_ct_node *child;
usr.sbin/pmcstat/pmcpl_calltree.c
842
child = ct->pct_arc[i].pcta_child;
usr.sbin/pmcstat/pmcpl_calltree.c
845
pmcstat_string_unintern(child->pct_image->pi_fullpath));
usr.sbin/pmcstat/pmcpl_calltree.c
847
addr = child->pct_image->pi_vaddr + child->pct_func;
usr.sbin/pmcstat/pmcpl_calltree.c
850
if (child->pct_type == PMCPL_PCT_NAME) {
usr.sbin/pmcstat/pmcpl_calltree.c
852
pmcstat_string_unintern(child->pct_ifl),
usr.sbin/pmcstat/pmcpl_calltree.c
853
pmcstat_string_unintern(child->pct_ifn));
usr.sbin/pmcstat/pmcpl_calltree.c
854
} else if (pmcstat_image_addr2line(child->pct_image, addr,
usr.sbin/pmcstat/pmcpl_calltree.c
860
if (child->pct_sym != NULL)
usr.sbin/pmcstat/pmcpl_calltree.c
864
child->pct_sym->ps_name));
usr.sbin/pmcstat/pmcpl_calltree.c
986
struct pmcpl_ct_node *child;
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
676
chap->child.pid = 0;
usr.sbin/ppp/chap.c
677
chap->child.fd = -1;
usr.sbin/ppp/chap.h
48
} child;
usr.sbin/rpc.lockd/kern.c
127
pid_t child;
usr.sbin/rpc.lockd/kern.c
144
switch (child = fork()) {
usr.sbin/rpc.lockd/kern.c
152
return (child);
usr.sbin/uefisign/uefisign.c
413
exit(child(inpath, outpath, pipefds[1], Vflag, vflag));
usr.sbin/uefisign/uefisign.h
80
int child(const char *inpath, const char *outpath, int pipefd,