Symbol: self
common/lib/libc/gen/rbtree.c
1001
if (RB_SENTINEL_P(self->rb_nodes[direction])) {
common/lib/libc/gen/rbtree.c
1002
while (!RB_ROOT_P(rbt, self)) {
common/lib/libc/gen/rbtree.c
1003
if (other == RB_POSITION(self))
common/lib/libc/gen/rbtree.c
1004
return RB_NODETOITEM(rbto, RB_FATHER(self));
common/lib/libc/gen/rbtree.c
1005
self = RB_FATHER(self);
common/lib/libc/gen/rbtree.c
1014
self = self->rb_nodes[direction];
common/lib/libc/gen/rbtree.c
1015
KASSERT(!RB_SENTINEL_P(self));
common/lib/libc/gen/rbtree.c
1016
while (!RB_SENTINEL_P(self->rb_nodes[other]))
common/lib/libc/gen/rbtree.c
1017
self = self->rb_nodes[other];
common/lib/libc/gen/rbtree.c
1018
return RB_NODETOITEM(rbto, self);
common/lib/libc/gen/rbtree.c
1023
rb_tree_iterate_const(const struct rb_tree *rbt, const struct rb_node *self,
common/lib/libc/gen/rbtree.c
1029
if (self == NULL) {
common/lib/libc/gen/rbtree.c
1035
self = rbt->rbt_root;
common/lib/libc/gen/rbtree.c
1036
if (RB_SENTINEL_P(self))
common/lib/libc/gen/rbtree.c
1038
while (!RB_SENTINEL_P(self->rb_nodes[direction]))
common/lib/libc/gen/rbtree.c
1039
self = self->rb_nodes[direction];
common/lib/libc/gen/rbtree.c
1040
return self;
common/lib/libc/gen/rbtree.c
1043
KASSERT(!RB_SENTINEL_P(self));
common/lib/libc/gen/rbtree.c
1048
if (RB_SENTINEL_P(self->rb_nodes[direction])) {
common/lib/libc/gen/rbtree.c
1049
while (!RB_ROOT_P(rbt, self)) {
common/lib/libc/gen/rbtree.c
1050
if (other == RB_POSITION(self))
common/lib/libc/gen/rbtree.c
1051
return RB_FATHER(self);
common/lib/libc/gen/rbtree.c
1052
self = RB_FATHER(self);
common/lib/libc/gen/rbtree.c
1061
self = self->rb_nodes[direction];
common/lib/libc/gen/rbtree.c
1062
KASSERT(!RB_SENTINEL_P(self));
common/lib/libc/gen/rbtree.c
1063
while (!RB_SENTINEL_P(self->rb_nodes[other]))
common/lib/libc/gen/rbtree.c
1064
self = self->rb_nodes[other];
common/lib/libc/gen/rbtree.c
1065
return self;
common/lib/libc/gen/rbtree.c
1069
rb_tree_count_black(const struct rb_node *self)
common/lib/libc/gen/rbtree.c
1073
if (RB_SENTINEL_P(self))
common/lib/libc/gen/rbtree.c
1076
left = rb_tree_count_black(self->rb_left);
common/lib/libc/gen/rbtree.c
1077
right = rb_tree_count_black(self->rb_right);
common/lib/libc/gen/rbtree.c
1081
return left + RB_BLACK_P(self);
common/lib/libc/gen/rbtree.c
1085
rb_tree_check_node(const struct rb_tree *rbt, const struct rb_node *self,
common/lib/libc/gen/rbtree.c
1091
KASSERT(!RB_SENTINEL_P(self));
common/lib/libc/gen/rbtree.c
1093
RB_NODETOITEM(rbto, prev), RB_NODETOITEM(rbto, self)) < 0);
common/lib/libc/gen/rbtree.c
1098
if (RB_ROOT_P(rbt, self)) {
common/lib/libc/gen/rbtree.c
1099
KASSERT(self == rbt->rbt_root);
common/lib/libc/gen/rbtree.c
1100
KASSERT(RB_POSITION(self) == RB_DIR_LEFT);
common/lib/libc/gen/rbtree.c
1101
KASSERT(RB_FATHER(self)->rb_nodes[RB_DIR_LEFT] == self);
common/lib/libc/gen/rbtree.c
1102
KASSERT(RB_FATHER(self) == (const struct rb_node *) &rbt->rbt_root);
common/lib/libc/gen/rbtree.c
1105
RB_NODETOITEM(rbto, self),
common/lib/libc/gen/rbtree.c
1106
RB_NODETOITEM(rbto, RB_FATHER(self)));
common/lib/libc/gen/rbtree.c
1108
KASSERT(self != rbt->rbt_root);
common/lib/libc/gen/rbtree.c
1109
KASSERT(!RB_FATHER_SENTINEL_P(self));
common/lib/libc/gen/rbtree.c
1110
if (RB_POSITION(self) == RB_DIR_LEFT) {
common/lib/libc/gen/rbtree.c
1112
KASSERT(RB_FATHER(self)->rb_nodes[RB_DIR_LEFT] == self);
common/lib/libc/gen/rbtree.c
1115
KASSERT(RB_FATHER(self)->rb_nodes[RB_DIR_RIGHT] == self);
common/lib/libc/gen/rbtree.c
1123
const struct rb_node *prev0 = rb_tree_iterate_const(rbt, self, RB_DIR_LEFT);
common/lib/libc/gen/rbtree.c
1124
const struct rb_node *next0 = rb_tree_iterate_const(rbt, self, RB_DIR_RIGHT);
common/lib/libc/gen/rbtree.c
1125
KASSERT(prev0 == TAILQ_PREV(self, rb_node_qh, rb_link));
common/lib/libc/gen/rbtree.c
1126
KASSERT(next0 == TAILQ_NEXT(self, rb_link));
common/lib/libc/gen/rbtree.c
1128
KASSERT(prev0 != NULL || self == rbt->rbt_minmax[RB_DIR_LEFT]);
common/lib/libc/gen/rbtree.c
1129
KASSERT(next0 != NULL || self == rbt->rbt_minmax[RB_DIR_RIGHT]);
common/lib/libc/gen/rbtree.c
1138
KASSERT(!RB_ROOT_P(rbt, self) || RB_BLACK_P(self));
common/lib/libc/gen/rbtree.c
1139
(void) rb_tree_count_black(self);
common/lib/libc/gen/rbtree.c
1140
if (RB_RED_P(self)) {
common/lib/libc/gen/rbtree.c
1142
KASSERT(!RB_ROOT_P(rbt, self));
common/lib/libc/gen/rbtree.c
1143
brother = RB_FATHER(self)->rb_nodes[RB_POSITION(self) ^ RB_DIR_OTHER];
common/lib/libc/gen/rbtree.c
1144
KASSERT(RB_BLACK_P(RB_FATHER(self)));
common/lib/libc/gen/rbtree.c
1150
KASSERT(!RB_CHILDLESS_P(self)
common/lib/libc/gen/rbtree.c
1158
KASSERT(RB_CHILDLESS_P(self)
common/lib/libc/gen/rbtree.c
1159
|| (RB_TWOCHILDREN_P(self)
common/lib/libc/gen/rbtree.c
1160
&& RB_BLACK_P(self->rb_left)
common/lib/libc/gen/rbtree.c
1161
&& RB_BLACK_P(self->rb_right)));
common/lib/libc/gen/rbtree.c
1167
KASSERT(RB_CHILDLESS_P(self)
common/lib/libc/gen/rbtree.c
1177
KASSERT(RB_CHILDLESS_P(self)
common/lib/libc/gen/rbtree.c
1178
|| RB_TWOCHILDREN_P(self)
common/lib/libc/gen/rbtree.c
1179
|| (!RB_LEFT_SENTINEL_P(self)
common/lib/libc/gen/rbtree.c
1180
&& RB_RIGHT_SENTINEL_P(self)
common/lib/libc/gen/rbtree.c
1181
&& RB_RED_P(self->rb_left)
common/lib/libc/gen/rbtree.c
1182
&& RB_CHILDLESS_P(self->rb_left))
common/lib/libc/gen/rbtree.c
1183
|| (!RB_RIGHT_SENTINEL_P(self)
common/lib/libc/gen/rbtree.c
1184
&& RB_LEFT_SENTINEL_P(self)
common/lib/libc/gen/rbtree.c
1185
&& RB_RED_P(self->rb_right)
common/lib/libc/gen/rbtree.c
1186
&& RB_CHILDLESS_P(self->rb_right)));
common/lib/libc/gen/rbtree.c
1193
if (!RB_ROOT_P(rbt, self)
common/lib/libc/gen/rbtree.c
1194
&& RB_CHILDLESS_P(self)
common/lib/libc/gen/rbtree.c
1195
&& RB_BLACK_P(RB_FATHER(self))) {
common/lib/libc/gen/rbtree.c
1196
const unsigned int which = RB_POSITION(self);
common/lib/libc/gen/rbtree.c
1201
self, other);
common/lib/libc/gen/rbtree.c
1219
KASSERT(RB_ROOT_P(rbt, self)
common/lib/libc/gen/rbtree.c
1220
|| RB_ROOT_P(rbt, RB_FATHER(self))
common/lib/libc/gen/rbtree.c
1221
|| RB_TWOCHILDREN_P(RB_FATHER(RB_FATHER(self))));
common/lib/libc/gen/rbtree.c
1226
KASSERT(RB_LEFT_SENTINEL_P(self)
common/lib/libc/gen/rbtree.c
1227
|| RB_CHILDLESS_P(self->rb_left)
common/lib/libc/gen/rbtree.c
1228
|| !RB_RIGHT_SENTINEL_P(self));
common/lib/libc/gen/rbtree.c
1233
KASSERT(RB_RIGHT_SENTINEL_P(self)
common/lib/libc/gen/rbtree.c
1234
|| RB_CHILDLESS_P(self->rb_right)
common/lib/libc/gen/rbtree.c
1235
|| !RB_LEFT_SENTINEL_P(self));
common/lib/libc/gen/rbtree.c
1242
KASSERT(RB_TWOCHILDREN_P(self->rb_left)
common/lib/libc/gen/rbtree.c
1243
|| RB_CHILDLESS_P(self->rb_right)
common/lib/libc/gen/rbtree.c
1244
|| RB_CHILDLESS_P(self->rb_right->rb_left)
common/lib/libc/gen/rbtree.c
1245
|| RB_CHILDLESS_P(self->rb_right->rb_left->rb_left)
common/lib/libc/gen/rbtree.c
1246
|| RB_CHILDLESS_P(self->rb_right->rb_left->rb_right)
common/lib/libc/gen/rbtree.c
1247
|| RB_CHILDLESS_P(self->rb_right->rb_right)
common/lib/libc/gen/rbtree.c
1248
|| RB_CHILDLESS_P(self->rb_right->rb_right->rb_left)
common/lib/libc/gen/rbtree.c
1249
|| RB_CHILDLESS_P(self->rb_right->rb_right->rb_right));
common/lib/libc/gen/rbtree.c
1256
KASSERT(RB_TWOCHILDREN_P(self->rb_right)
common/lib/libc/gen/rbtree.c
1257
|| RB_CHILDLESS_P(self->rb_left)
common/lib/libc/gen/rbtree.c
1258
|| RB_CHILDLESS_P(self->rb_left->rb_left)
common/lib/libc/gen/rbtree.c
1259
|| RB_CHILDLESS_P(self->rb_left->rb_left->rb_left)
common/lib/libc/gen/rbtree.c
1260
|| RB_CHILDLESS_P(self->rb_left->rb_left->rb_right)
common/lib/libc/gen/rbtree.c
1261
|| RB_CHILDLESS_P(self->rb_left->rb_right)
common/lib/libc/gen/rbtree.c
1262
|| RB_CHILDLESS_P(self->rb_left->rb_right->rb_left)
common/lib/libc/gen/rbtree.c
1263
|| RB_CHILDLESS_P(self->rb_left->rb_right->rb_right));
common/lib/libc/gen/rbtree.c
1269
if (RB_TWOCHILDREN_P(self)) {
common/lib/libc/gen/rbtree.c
1273
prev0 = rb_tree_iterate_const(rbt, self, RB_DIR_LEFT);
common/lib/libc/gen/rbtree.c
1277
next0 = rb_tree_iterate_const(rbt, self, RB_DIR_RIGHT);
common/lib/libc/gen/rbtree.c
1289
const struct rb_node *self;
common/lib/libc/gen/rbtree.c
1304
TAILQ_FOREACH(self, &rbt->rbt_nodes, rb_link) {
common/lib/libc/gen/rbtree.c
1305
rb_tree_check_node(rbt, self, prev, false);
common/lib/libc/gen/rbtree.c
1322
TAILQ_FOREACH(self, &rbt->rbt_nodes, rb_link) {
common/lib/libc/gen/rbtree.c
1323
rb_tree_check_node(rbt, self, NULL, true);
common/lib/libc/gen/rbtree.c
1331
rb_tree_mark_depth(const struct rb_tree *rbt, const struct rb_node *self,
common/lib/libc/gen/rbtree.c
1334
if (RB_SENTINEL_P(self))
common/lib/libc/gen/rbtree.c
1337
if (RB_TWOCHILDREN_P(self)) {
common/lib/libc/gen/rbtree.c
1338
rb_tree_mark_depth(rbt, self->rb_left, depths, depth + 1);
common/lib/libc/gen/rbtree.c
1339
rb_tree_mark_depth(rbt, self->rb_right, depths, depth + 1);
common/lib/libc/gen/rbtree.c
1343
if (!RB_LEFT_SENTINEL_P(self)) {
common/lib/libc/gen/rbtree.c
1344
rb_tree_mark_depth(rbt, self->rb_left, depths, depth + 1);
common/lib/libc/gen/rbtree.c
1346
if (!RB_RIGHT_SENTINEL_P(self)) {
common/lib/libc/gen/rbtree.c
1347
rb_tree_mark_depth(rbt, self->rb_right, depths, depth + 1);
common/lib/libc/gen/rbtree.c
197
struct rb_node *parent, *tmp, *self = RB_ITEMTONODE(rbto, object);
common/lib/libc/gen/rbtree.c
253
RB_NODETOITEM(rbto, prev), RB_NODETOITEM(rbto, self)) < 0);
common/lib/libc/gen/rbtree.c
255
RB_NODETOITEM(rbto, self), RB_NODETOITEM(rbto, next)) < 0);
common/lib/libc/gen/rbtree.c
262
RB_SET_FATHER(self, parent);
common/lib/libc/gen/rbtree.c
263
RB_SET_POSITION(self, position);
common/lib/libc/gen/rbtree.c
265
RB_MARK_BLACK(self); /* root is always black */
common/lib/libc/gen/rbtree.c
267
rbt->rbt_minmax[RB_DIR_LEFT] = self;
common/lib/libc/gen/rbtree.c
268
rbt->rbt_minmax[RB_DIR_RIGHT] = self;
common/lib/libc/gen/rbtree.c
280
rbt->rbt_minmax[position] = self;
common/lib/libc/gen/rbtree.c
286
RB_MARK_RED(self);
common/lib/libc/gen/rbtree.c
290
self->rb_left = parent->rb_nodes[position];
common/lib/libc/gen/rbtree.c
291
self->rb_right = parent->rb_nodes[position];
common/lib/libc/gen/rbtree.c
292
parent->rb_nodes[position] = self;
common/lib/libc/gen/rbtree.c
293
KASSERT(RB_CHILDLESS_P(self));
common/lib/libc/gen/rbtree.c
300
if (RB_ROOT_P(rbt, self)) {
common/lib/libc/gen/rbtree.c
301
RB_TAILQ_INSERT_HEAD(&rbt->rbt_nodes, self, rb_link);
common/lib/libc/gen/rbtree.c
304
RB_NODETOITEM(rbto, self),
common/lib/libc/gen/rbtree.c
305
RB_NODETOITEM(rbto, RB_FATHER(self))) < 0);
common/lib/libc/gen/rbtree.c
306
RB_TAILQ_INSERT_BEFORE(RB_FATHER(self), self, rb_link);
common/lib/libc/gen/rbtree.c
309
RB_NODETOITEM(rbto, RB_FATHER(self)),
common/lib/libc/gen/rbtree.c
310
RB_NODETOITEM(rbto, self)) < 0);
common/lib/libc/gen/rbtree.c
311
RB_TAILQ_INSERT_AFTER(&rbt->rbt_nodes, RB_FATHER(self),
common/lib/libc/gen/rbtree.c
312
self, rb_link);
common/lib/libc/gen/rbtree.c
315
KASSERT(rb_tree_check_node(rbt, self, NULL, !rebalance));
common/lib/libc/gen/rbtree.c
321
rb_tree_insert_rebalance(rbt, self);
common/lib/libc/gen/rbtree.c
322
KASSERT(rb_tree_check_node(rbt, self, NULL, true));
common/lib/libc/gen/rbtree.c
401
rb_tree_insert_rebalance(struct rb_tree *rbt, struct rb_node *self)
common/lib/libc/gen/rbtree.c
403
struct rb_node * father = RB_FATHER(self);
common/lib/libc/gen/rbtree.c
409
KASSERT(!RB_ROOT_P(rbt, self));
common/lib/libc/gen/rbtree.c
410
KASSERT(RB_RED_P(self));
common/lib/libc/gen/rbtree.c
415
KASSERT(!RB_SENTINEL_P(self));
common/lib/libc/gen/rbtree.c
417
KASSERT(RB_RED_P(self));
common/lib/libc/gen/rbtree.c
451
self = grandpa;
common/lib/libc/gen/rbtree.c
452
father = RB_FATHER(self);
common/lib/libc/gen/rbtree.c
453
KASSERT(RB_RED_P(self));
common/lib/libc/gen/rbtree.c
463
KASSERT(!RB_ROOT_P(rbt, self));
common/lib/libc/gen/rbtree.c
464
KASSERT(RB_RED_P(self));
common/lib/libc/gen/rbtree.c
471
if (self == father->rb_nodes[other]) {
common/lib/libc/gen/rbtree.c
479
KASSERT(RB_FATHER(father) == self);
common/lib/libc/gen/rbtree.c
480
KASSERT(self->rb_nodes[which] == father);
common/lib/libc/gen/rbtree.c
481
KASSERT(RB_FATHER(self) == grandpa);
common/lib/libc/gen/rbtree.c
482
self = father;
common/lib/libc/gen/rbtree.c
483
father = RB_FATHER(self);
common/lib/libc/gen/rbtree.c
485
KASSERT(RB_RED_P(self) && RB_RED_P(father));
common/lib/libc/gen/rbtree.c
494
KASSERT(RB_FATHER(self) == father);
common/lib/libc/gen/rbtree.c
495
KASSERT(RB_FATHER(self)->rb_nodes[RB_POSITION(self) ^ RB_DIR_OTHER] == grandpa);
common/lib/libc/gen/rbtree.c
496
KASSERT(RB_RED_P(self));
common/lib/libc/gen/rbtree.c
507
rb_tree_prune_node(struct rb_tree *rbt, struct rb_node *self, bool rebalance)
common/lib/libc/gen/rbtree.c
509
const unsigned int which = RB_POSITION(self);
common/lib/libc/gen/rbtree.c
510
struct rb_node *father = RB_FATHER(self);
common/lib/libc/gen/rbtree.c
512
const bool was_root = RB_ROOT_P(rbt, self);
common/lib/libc/gen/rbtree.c
515
KASSERT(rebalance || (RB_ROOT_P(rbt, self) || RB_RED_P(self)));
common/lib/libc/gen/rbtree.c
516
KASSERT(!rebalance || RB_BLACK_P(self));
common/lib/libc/gen/rbtree.c
517
KASSERT(RB_CHILDLESS_P(self));
common/lib/libc/gen/rbtree.c
518
KASSERT(rb_tree_check_node(rbt, self, NULL, false));
common/lib/libc/gen/rbtree.c
524
father->rb_nodes[which] = self->rb_left;
common/lib/libc/gen/rbtree.c
530
RB_TAILQ_REMOVE(&rbt->rbt_nodes, self, rb_link);
common/lib/libc/gen/rbtree.c
533
if (__predict_false(rbt->rbt_minmax[RB_POSITION(self)] == self)) {
common/lib/libc/gen/rbtree.c
534
rbt->rbt_minmax[RB_POSITION(self)] = father;
common/lib/libc/gen/rbtree.c
544
RB_SET_FATHER(self, NULL);
common/lib/libc/gen/rbtree.c
559
rb_tree_swap_prune_and_rebalance(struct rb_tree *rbt, struct rb_node *self,
common/lib/libc/gen/rbtree.c
568
if (standin_father == self) {
common/lib/libc/gen/rbtree.c
587
KASSERT(RB_TWOCHILDREN_P(self));
common/lib/libc/gen/rbtree.c
596
KASSERT(rb_tree_check_node(rbt, self, NULL, false));
common/lib/libc/gen/rbtree.c
608
if (standin_father == self) {
common/lib/libc/gen/rbtree.c
620
if (standin_father == self) {
common/lib/libc/gen/rbtree.c
633
KASSERT(!RB_SENTINEL_P(self->rb_nodes[standin_other]));
common/lib/libc/gen/rbtree.c
634
KASSERT(self->rb_nodes[standin_which] == standin);
common/lib/libc/gen/rbtree.c
651
standin->rb_nodes[standin_other] = self->rb_nodes[standin_other];
common/lib/libc/gen/rbtree.c
653
KASSERT(RB_POSITION(self->rb_nodes[standin_other]) == standin_other);
common/lib/libc/gen/rbtree.c
665
KASSERT(standin->rb_nodes[standin_other] != self->rb_nodes[standin_other]);
common/lib/libc/gen/rbtree.c
666
standin->rb_nodes[standin_other] = self->rb_nodes[standin_other];
common/lib/libc/gen/rbtree.c
673
RB_COPY_PROPERTIES(standin, self);
common/lib/libc/gen/rbtree.c
674
RB_SET_FATHER(standin, RB_FATHER(self));
common/lib/libc/gen/rbtree.c
681
RB_TAILQ_REMOVE(&rbt->rbt_nodes, self, rb_link);
common/lib/libc/gen/rbtree.c
684
if (__predict_false(rbt->rbt_minmax[RB_POSITION(self)] == self))
common/lib/libc/gen/rbtree.c
685
rbt->rbt_minmax[RB_POSITION(self)] = RB_FATHER(self);
common/lib/libc/gen/rbtree.c
686
RB_SET_FATHER(self, NULL);
common/lib/libc/gen/rbtree.c
712
rb_tree_prune_blackred_branch(struct rb_tree *rbt, struct rb_node *self,
common/lib/libc/gen/rbtree.c
715
struct rb_node *father = RB_FATHER(self);
common/lib/libc/gen/rbtree.c
716
struct rb_node *son = self->rb_nodes[which];
common/lib/libc/gen/rbtree.c
718
const bool was_root = RB_ROOT_P(rbt, self);
common/lib/libc/gen/rbtree.c
722
KASSERT(RB_BLACK_P(self) && RB_RED_P(son));
common/lib/libc/gen/rbtree.c
725
KASSERT(rb_tree_check_node(rbt, self, NULL, false));
common/lib/libc/gen/rbtree.c
732
RB_COPY_PROPERTIES(son, self);
common/lib/libc/gen/rbtree.c
740
RB_TAILQ_REMOVE(&rbt->rbt_nodes, self, rb_link);
common/lib/libc/gen/rbtree.c
746
} else if (rbt->rbt_minmax[RB_POSITION(self)] == self) {
common/lib/libc/gen/rbtree.c
747
rbt->rbt_minmax[RB_POSITION(self)] = son;
common/lib/libc/gen/rbtree.c
749
RB_SET_FATHER(self, NULL);
common/lib/libc/gen/rbtree.c
760
struct rb_node *standin, *self = RB_ITEMTONODE(rbto, object);
common/lib/libc/gen/rbtree.c
763
KASSERT(!RB_SENTINEL_P(self));
common/lib/libc/gen/rbtree.c
783
if (RB_CHILDLESS_P(self)) {
common/lib/libc/gen/rbtree.c
784
const bool rebalance = RB_BLACK_P(self) && !RB_ROOT_P(rbt, self);
common/lib/libc/gen/rbtree.c
785
rb_tree_prune_node(rbt, self, rebalance);
common/lib/libc/gen/rbtree.c
788
KASSERT(!RB_CHILDLESS_P(self));
common/lib/libc/gen/rbtree.c
789
if (!RB_TWOCHILDREN_P(self)) {
common/lib/libc/gen/rbtree.c
798
which = RB_LEFT_SENTINEL_P(self) ? RB_DIR_RIGHT : RB_DIR_LEFT;
common/lib/libc/gen/rbtree.c
799
KASSERT(RB_BLACK_P(self));
common/lib/libc/gen/rbtree.c
800
KASSERT(RB_RED_P(self->rb_nodes[which]));
common/lib/libc/gen/rbtree.c
801
KASSERT(RB_CHILDLESS_P(self->rb_nodes[which]));
common/lib/libc/gen/rbtree.c
802
rb_tree_prune_blackred_branch(rbt, self, which);
common/lib/libc/gen/rbtree.c
805
KASSERT(RB_TWOCHILDREN_P(self));
common/lib/libc/gen/rbtree.c
811
which = RB_POSITION(self) ^ RB_DIR_OTHER;
common/lib/libc/gen/rbtree.c
818
rb_tree_swap_prune_and_rebalance(rbt, self, standin);
common/lib/libc/gen/rbtree.c
977
struct rb_node *self;
common/lib/libc/gen/rbtree.c
987
self = rbt->rbt_root;
common/lib/libc/gen/rbtree.c
988
if (RB_SENTINEL_P(self))
common/lib/libc/gen/rbtree.c
990
while (!RB_SENTINEL_P(self->rb_nodes[direction]))
common/lib/libc/gen/rbtree.c
991
self = self->rb_nodes[direction];
common/lib/libc/gen/rbtree.c
992
return RB_NODETOITEM(rbto, self);
common/lib/libc/gen/rbtree.c
995
self = RB_ITEMTONODE(rbto, object);
common/lib/libc/gen/rbtree.c
996
KASSERT(!RB_SENTINEL_P(self));
lib/libpthread/pthread.c
1007
old = atomic_load_relaxed(&self->pt_cancel);
lib/libpthread/pthread.c
1014
&self->pt_cancel, &old, new,
lib/libpthread/pthread.c
1036
pthread_t self;
lib/libpthread/pthread.c
1038
self = pthread__self();
lib/libpthread/pthread.c
1040
pthread__testcancel(self);
lib/libpthread/pthread.c
1065
pthread__testcancel(pthread_t self)
lib/libpthread/pthread.c
1076
if (__predict_false(atomic_load_relaxed(&self->pt_cancel) &
lib/libpthread/pthread.c
1095
pthread_t self;
lib/libpthread/pthread.c
1098
self = pthread__self();
lib/libpthread/pthread.c
1102
PTQ_INSERT_HEAD(&self->pt_cleanup_stack, entry, ptc_next);
lib/libpthread/pthread.c
1109
pthread_t self;
lib/libpthread/pthread.c
1112
self = pthread__self();
lib/libpthread/pthread.c
1115
PTQ_REMOVE(&self->pt_cleanup_stack, entry, ptc_next);
lib/libpthread/pthread.c
1124
pthread_t self;
lib/libpthread/pthread.c
1132
self = pthread__self();
lib/libpthread/pthread.c
1134
return &(self->pt_errno);
lib/libpthread/pthread.c
1213
pthread__park(pthread_t self, pthread_mutex_t *lock,
lib/libpthread/pthread.c
1263
(atomic_load_relaxed(&self->pt_cancel) &
lib/libpthread/pthread.c
1266
} while (self->pt_sleepobj != NULL && rv == 0);
lib/libpthread/pthread.c
1271
pthread__unpark(pthread_queue_t *queue, pthread_t self,
lib/libpthread/pthread.c
1283
pthread__unpark_all(pthread_queue_t *queue, pthread_t self,
lib/libpthread/pthread.c
184
struct __pthread_st *self = pthread__self();
lib/libpthread/pthread.c
189
if (_lwp_ctl(LWPCTL_FEATURE_CURCPU, &self->pt_lwpctl)) {
lib/libpthread/pthread.c
192
self->pt_lid = _lwp_self();
lib/libpthread/pthread.c
576
pthread_t self;
lib/libpthread/pthread.c
580
self = cookie;
lib/libpthread/pthread.c
588
junk = alloca(((unsigned)self->pt_lid & 7) << 8);
lib/libpthread/pthread.c
590
if (self->pt_name != NULL) {
lib/libpthread/pthread.c
591
pthread_mutex_lock(&self->pt_lock);
lib/libpthread/pthread.c
592
if (self->pt_name != NULL)
lib/libpthread/pthread.c
593
(void)_lwp_setname(0, self->pt_name);
lib/libpthread/pthread.c
594
pthread_mutex_unlock(&self->pt_lock);
lib/libpthread/pthread.c
597
if (_lwp_ctl(LWPCTL_FEATURE_CURCPU, &self->pt_lwpctl)) {
lib/libpthread/pthread.c
601
retval = (*self->pt_func)(self->pt_arg);
lib/libpthread/pthread.c
612
pthread_t self;
lib/libpthread/pthread.c
617
self = pthread__self();
lib/libpthread/pthread.c
618
if (self == thread) {
lib/libpthread/pthread.c
645
pthread_t self;
lib/libpthread/pthread.c
653
self = pthread__self();
lib/libpthread/pthread.c
656
atomic_store_relaxed(&self->pt_cancel, PT_CANCEL_DISABLED);
lib/libpthread/pthread.c
659
if (!PTQ_EMPTY(&self->pt_cleanup_stack)) {
lib/libpthread/pthread.c
660
while (!PTQ_EMPTY(&self->pt_cleanup_stack)) {
lib/libpthread/pthread.c
661
cleanup = PTQ_FIRST(&self->pt_cleanup_stack);
lib/libpthread/pthread.c
662
PTQ_REMOVE(&self->pt_cleanup_stack, cleanup, ptc_next);
lib/libpthread/pthread.c
670
pthread__destroy_tsd(self);
lib/libpthread/pthread.c
679
pthread_mutex_lock(&self->pt_lock);
lib/libpthread/pthread.c
680
self->pt_exitval = retval;
lib/libpthread/pthread.c
681
if (self->pt_flags & PT_FLAG_DETACHED) {
lib/libpthread/pthread.c
683
pthread__reap(self);
lib/libpthread/pthread.c
686
self->pt_state = PT_STATE_ZOMBIE;
lib/libpthread/pthread.c
687
pthread_mutex_unlock(&self->pt_lock);
lib/libpthread/pthread.c
702
pthread_t self;
lib/libpthread/pthread.c
707
self = pthread__self();
lib/libpthread/pthread.c
712
if (thread == self)
lib/libpthread/pthread.c
717
pthread__testcancel(self);
lib/libpthread/pthread.c
911
pthread_t self;
lib/libpthread/pthread.c
918
self = pthread__self();
lib/libpthread/pthread.c
932
old = atomic_load_relaxed(&self->pt_cancel);
lib/libpthread/pthread.c
957
&self->pt_cancel, &old, new,
lib/libpthread/pthread.c
989
pthread_t self;
lib/libpthread/pthread.c
993
self = pthread__self();
lib/libpthread/pthread_barrier.c
101
pthread__unpark_all(&barrier->ptb_waiters, self,
lib/libpthread/pthread_barrier.c
109
PTQ_INSERT_TAIL(&barrier->ptb_waiters, self, pt_sleep);
lib/libpthread/pthread_barrier.c
110
self->pt_sleepobj = &barrier->ptb_waiters;
lib/libpthread/pthread_barrier.c
111
(void)pthread__park(self, interlock, &barrier->ptb_waiters,
lib/libpthread/pthread_barrier.c
79
pthread_t self;
lib/libpthread/pthread_barrier.c
95
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
164
pthread_t self;
lib/libpthread/pthread_cancelstub.c
166
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
167
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
169
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
178
pthread_t self;
lib/libpthread/pthread_cancelstub.c
180
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
181
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
183
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
193
pthread_t self;
lib/libpthread/pthread_cancelstub.c
195
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
196
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
198
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
208
pthread_t self;
lib/libpthread/pthread_cancelstub.c
210
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
211
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
213
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
222
pthread_t self;
lib/libpthread/pthread_cancelstub.c
224
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
225
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
227
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
236
pthread_t self;
lib/libpthread/pthread_cancelstub.c
238
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
239
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
241
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
250
pthread_t self;
lib/libpthread/pthread_cancelstub.c
253
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
254
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
258
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
267
pthread_t self;
lib/libpthread/pthread_cancelstub.c
269
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
270
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
272
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
281
pthread_t self;
lib/libpthread/pthread_cancelstub.c
283
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
284
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
286
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
295
pthread_t self;
lib/libpthread/pthread_cancelstub.c
297
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
298
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
300
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
310
pthread_t self;
lib/libpthread/pthread_cancelstub.c
312
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
313
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
315
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
324
pthread_t self;
lib/libpthread/pthread_cancelstub.c
326
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
327
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
329
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
338
pthread_t self;
lib/libpthread/pthread_cancelstub.c
340
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
341
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
343
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
353
pthread_t self;
lib/libpthread/pthread_cancelstub.c
355
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
356
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
359
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
369
pthread_t self;
lib/libpthread/pthread_cancelstub.c
371
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
372
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
375
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
384
pthread_t self;
lib/libpthread/pthread_cancelstub.c
386
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
387
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
389
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
398
pthread_t self;
lib/libpthread/pthread_cancelstub.c
400
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
401
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
403
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
412
pthread_t self;
lib/libpthread/pthread_cancelstub.c
414
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
415
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
417
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
426
pthread_t self;
lib/libpthread/pthread_cancelstub.c
428
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
429
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
435
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
444
pthread_t self;
lib/libpthread/pthread_cancelstub.c
447
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
448
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
452
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
461
pthread_t self;
lib/libpthread/pthread_cancelstub.c
464
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
465
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
469
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
478
pthread_t self;
lib/libpthread/pthread_cancelstub.c
480
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
481
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
483
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
493
pthread_t self;
lib/libpthread/pthread_cancelstub.c
495
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
496
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
498
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
507
pthread_t self;
lib/libpthread/pthread_cancelstub.c
509
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
510
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
512
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
522
pthread_t self;
lib/libpthread/pthread_cancelstub.c
524
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
525
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
528
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
537
pthread_t self;
lib/libpthread/pthread_cancelstub.c
539
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
540
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
542
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
551
pthread_t self;
lib/libpthread/pthread_cancelstub.c
553
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
554
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
556
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
565
pthread_t self;
lib/libpthread/pthread_cancelstub.c
567
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
568
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
570
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
580
pthread_t self;
lib/libpthread/pthread_cancelstub.c
582
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
583
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
585
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
595
pthread_t self;
lib/libpthread/pthread_cancelstub.c
597
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
598
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
600
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
609
pthread_t self;
lib/libpthread/pthread_cancelstub.c
611
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
612
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
614
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
624
pthread_t self;
lib/libpthread/pthread_cancelstub.c
626
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
627
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
629
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
639
pthread_t self;
lib/libpthread/pthread_cancelstub.c
641
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
642
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
644
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
653
pthread_t self;
lib/libpthread/pthread_cancelstub.c
655
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
656
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
658
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
668
pthread_t self;
lib/libpthread/pthread_cancelstub.c
670
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
671
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
673
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
681
pthread_t self;
lib/libpthread/pthread_cancelstub.c
684
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
685
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
687
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
696
pthread_t self;
lib/libpthread/pthread_cancelstub.c
706
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
707
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
709
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
717
pthread_t self;
lib/libpthread/pthread_cancelstub.c
722
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
724
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
726
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
740
pthread_t self;
lib/libpthread/pthread_cancelstub.c
742
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
743
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
745
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
754
pthread_t self;
lib/libpthread/pthread_cancelstub.c
756
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
757
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
759
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
768
pthread_t self;
lib/libpthread/pthread_cancelstub.c
770
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
771
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
773
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
782
pthread_t self;
lib/libpthread/pthread_cancelstub.c
784
self = pthread__self();
lib/libpthread/pthread_cancelstub.c
785
TESTCANCEL(self);
lib/libpthread/pthread_cancelstub.c
787
TESTCANCEL(self);
lib/libpthread/pthread_cond.c
129
pthread_t self;
lib/libpthread/pthread_cond.c
143
self = pthread__self();
lib/libpthread/pthread_cond.c
144
pthread__assert(self->pt_lid != 0);
lib/libpthread/pthread_cond.c
146
if (__predict_false(atomic_load_relaxed(&self->pt_cancel) &
lib/libpthread/pthread_cond.c
161
waiter.lid = self->pt_lid;
lib/libpthread/pthread_cond.c
176
!(cancel = atomic_load_relaxed(&self->pt_cancel) &
lib/libpthread/pthread_cond.c
241
pthread_t self;
lib/libpthread/pthread_cond.c
250
self = pthread_self();
lib/libpthread/pthread_cond.c
277
pthread__mutex_deferwake(self, mutex, head);
lib/libpthread/pthread_cond.c
286
pthread_t self;
lib/libpthread/pthread_cond.c
298
self = pthread_self();
lib/libpthread/pthread_cond.c
318
pthread__mutex_deferwake(self, mutex, head);
lib/libpthread/pthread_int.h
212
pthread__spinlock(pthread_t self, pthread_spin_t *lock)
lib/libpthread/pthread_int.h
214
if (__predict_true((*self->pt_lockops.plo_try)(lock)))
lib/libpthread/pthread_int.h
216
(*self->pt_lockops.plo_lock)(lock);
lib/libpthread/pthread_int.h
222
pthread__spintrylock(pthread_t self, pthread_spin_t *lock)
lib/libpthread/pthread_int.h
224
return (*self->pt_lockops.plo_try)(lock);
lib/libpthread/pthread_int.h
230
pthread__spinunlock(pthread_t self, pthread_spin_t *lock)
lib/libpthread/pthread_int.h
232
(*self->pt_lockops.plo_unlock)(lock);
lib/libpthread/pthread_lock.c
149
pthread_t self;
lib/libpthread/pthread_lock.c
152
self = pthread__self();
lib/libpthread/pthread_lock.c
159
if ((*self->pt_lockops.plo_try)(lock))
lib/libpthread/pthread_mutex.c
196
pthread_t self;
lib/libpthread/pthread_mutex.c
205
self = pthread__self();
lib/libpthread/pthread_mutex.c
206
val = atomic_cas_ptr(&ptm->ptm_owner, NULL, self);
lib/libpthread/pthread_mutex.c
219
pthread_t self;
lib/libpthread/pthread_mutex.c
225
self = pthread__self();
lib/libpthread/pthread_mutex.c
226
val = atomic_cas_ptr(&ptm->ptm_owner, NULL, self);
lib/libpthread/pthread_mutex.c
274
pthread_t self;
lib/libpthread/pthread_mutex.c
279
self = pthread__self();
lib/libpthread/pthread_mutex.c
282
pthread__assert(self->pt_lid != 0);
lib/libpthread/pthread_mutex.c
285
if (MUTEX_OWNER(owner) == (uintptr_t)self) {
lib/libpthread/pthread_mutex.c
306
newval = (void *)((uintptr_t)self | (uintptr_t)owner);
lib/libpthread/pthread_mutex.c
317
} else if (MUTEX_OWNER(owner) != (uintptr_t)self) {
lib/libpthread/pthread_mutex.c
331
waiter.lid = self->pt_lid;
lib/libpthread/pthread_mutex.c
351
pthread__mutex_wakeup(self,
lib/libpthread/pthread_mutex.c
365
pthread__mutex_wakeup(self,
lib/libpthread/pthread_mutex.c
393
pthread_t self;
lib/libpthread/pthread_mutex.c
402
self = pthread__self();
lib/libpthread/pthread_mutex.c
403
val = atomic_cas_ptr(&ptm->ptm_owner, NULL, self);
lib/libpthread/pthread_mutex.c
413
new = (void *)((uintptr_t)self | (uintptr_t)val);
lib/libpthread/pthread_mutex.c
422
if (MUTEX_OWNER(val) == (uintptr_t)self) {
lib/libpthread/pthread_mutex.c
436
pthread_t self;
lib/libpthread/pthread_mutex.c
450
self = pthread__self();
lib/libpthread/pthread_mutex.c
453
val = atomic_cas_ptr(&ptm->ptm_owner, self, newval);
lib/libpthread/pthread_mutex.c
454
if (__predict_false(val != self)) {
lib/libpthread/pthread_mutex.c
455
bool weown = (MUTEX_OWNER(val) == (uintptr_t)self);
lib/libpthread/pthread_mutex.c
501
pthread__mutex_wakeup(self,
lib/libpthread/pthread_mutex.c
512
pthread__mutex_wakeup(pthread_t self, struct pthread__waiter *cur)
lib/libpthread/pthread_mutex.c
694
pthread__mutex_deferwake(pthread_t self, pthread_mutex_t *ptm,
lib/libpthread/pthread_mutex.c
702
MUTEX_OWNER(ptm->ptm_owner) != (uintptr_t)self)) {
lib/libpthread/pthread_mutex.c
703
pthread__mutex_wakeup(self, head);
lib/libpthread/pthread_rwlock.c
162
pthread_t self;
lib/libpthread/pthread_rwlock.c
190
self = pthread__self();
lib/libpthread/pthread_rwlock.c
191
if ((owner & RW_THREAD) == (uintptr_t)self)
lib/libpthread/pthread_rwlock.c
221
PTQ_INSERT_HEAD(&ptr->ptr_rblocked, self, pt_sleep);
lib/libpthread/pthread_rwlock.c
223
self->pt_rwlocked = _RW_WANT_READ;
lib/libpthread/pthread_rwlock.c
224
self->pt_sleepobj = &ptr->ptr_rblocked;
lib/libpthread/pthread_rwlock.c
225
error = pthread__park(self, interlock, &ptr->ptr_rblocked,
lib/libpthread/pthread_rwlock.c
228
if (self->pt_sleepobj != NULL) {
lib/libpthread/pthread_rwlock.c
229
pthread__rwlock_early(self, ptr, interlock);
lib/libpthread/pthread_rwlock.c
233
if (self->pt_rwlocked == _RW_LOCKED) {
lib/libpthread/pthread_rwlock.c
281
pthread_t self;
lib/libpthread/pthread_rwlock.c
284
self = pthread__self();
lib/libpthread/pthread_rwlock.c
285
_DIAGASSERT(((uintptr_t)self & RW_FLAGMASK) == 0);
lib/libpthread/pthread_rwlock.c
297
(uintptr_t)self | RW_WRITE_LOCKED);
lib/libpthread/pthread_rwlock.c
313
if ((owner & RW_THREAD) == (uintptr_t)self)
lib/libpthread/pthread_rwlock.c
344
PTQ_INSERT_TAIL(&ptr->ptr_wblocked, self, pt_sleep);
lib/libpthread/pthread_rwlock.c
345
self->pt_rwlocked = _RW_WANT_WRITE;
lib/libpthread/pthread_rwlock.c
346
self->pt_sleepobj = &ptr->ptr_wblocked;
lib/libpthread/pthread_rwlock.c
347
error = pthread__park(self, interlock, &ptr->ptr_wblocked,
lib/libpthread/pthread_rwlock.c
350
if (self->pt_sleepobj != NULL) {
lib/libpthread/pthread_rwlock.c
351
pthread__rwlock_early(self, ptr, interlock);
lib/libpthread/pthread_rwlock.c
355
if (self->pt_rwlocked == _RW_LOCKED) {
lib/libpthread/pthread_rwlock.c
371
pthread_t self;
lib/libpthread/pthread_rwlock.c
379
self = pthread__self();
lib/libpthread/pthread_rwlock.c
380
_DIAGASSERT(((uintptr_t)self & RW_FLAGMASK) == 0);
lib/libpthread/pthread_rwlock.c
385
next = rw_cas(ptr, owner, (uintptr_t)self | RW_WRITE_LOCKED);
lib/libpthread/pthread_rwlock.c
448
pthread_t self, thread;
lib/libpthread/pthread_rwlock.c
467
self = pthread__self();
lib/libpthread/pthread_rwlock.c
468
decr = (uintptr_t)self | RW_WRITE_LOCKED;
lib/libpthread/pthread_rwlock.c
469
if ((owner & RW_THREAD) != (uintptr_t)self) {
lib/libpthread/pthread_rwlock.c
513
self = pthread__self();
lib/libpthread/pthread_rwlock.c
534
pthread__unpark(&ptr->ptr_wblocked, self,
lib/libpthread/pthread_rwlock.c
560
pthread__unpark_all(&ptr->ptr_rblocked, self,
lib/libpthread/pthread_rwlock.c
575
pthread__rwlock_early(pthread_t self, pthread_rwlock_t *ptr,
lib/libpthread/pthread_rwlock.c
582
if ((queue = self->pt_sleepobj) == NULL) {
lib/libpthread/pthread_rwlock.c
586
PTQ_REMOVE(queue, self, pt_sleep);
lib/libpthread/pthread_rwlock.c
587
self->pt_sleepobj = NULL;
lib/libpthread/pthread_specific.c
60
pthread_t self;
lib/libpthread/pthread_specific.c
65
self = pthread__self();
lib/libpthread/pthread_specific.c
72
return pthread__add_specific(self, key, value);
lib/libpthread/pthread_spin.c
100
while (pthread__spintrylock(self, &lock->pts_spin) == 0) {
lib/libpthread/pthread_spin.c
110
pthread_t self;
lib/libpthread/pthread_spin.c
115
self = pthread__self();
lib/libpthread/pthread_spin.c
116
if (pthread__spintrylock(self, &lock->pts_spin) == 0)
lib/libpthread/pthread_spin.c
124
pthread_t self;
lib/libpthread/pthread_spin.c
129
self = pthread__self();
lib/libpthread/pthread_spin.c
130
pthread__spinunlock(self, &lock->pts_spin);
lib/libpthread/pthread_spin.c
94
pthread_t self;
lib/libpthread/pthread_spin.c
99
self = pthread__self();
lib/libpthread/pthread_tsd.c
201
pthread__add_specific(pthread_t self, pthread_key_t key, const void *value)
lib/libpthread/pthread_tsd.c
208
pt = &self->pt_specific[key];
lib/libpthread/pthread_tsd.c
209
self->pt_havespecific = 1;
lib/libpthread/pthread_tsd.c
326
pthread__destroy_tsd(pthread_t self)
lib/libpthread/pthread_tsd.c
332
if (!self->pt_havespecific)
lib/libpthread/pthread_tsd.c
365
struct pt_specific *pt = &self->pt_specific[i];
lib/libpthread/pthread_tsd.c
387
self->pt_havespecific = 0;
lib/libpthread/pthread_tsd.c
391
pthread__copy_tsd(pthread_t self)
lib/libpthread/pthread_tsd.c
403
self->pt_havespecific = 1;
lib/libpthread/pthread_tsd.c
404
struct pt_specific *pt = &self->pt_specific[key];
lib/libpthread/res_state.c
72
pthread_t self = pthread__self();
lib/libpthread/res_state.c
73
int len = snprintf(buf, sizeof(buf), "%p: %s %p\n", self, msg, p);
libexec/ld.elf_so/rtld.c
2170
lwpid_t waiter, self = 0;
libexec/ld.elf_so/rtld.c
2187
if (!self)
libexec/ld.elf_so/rtld.c
2188
self = _lwp_self();
libexec/ld.elf_so/rtld.c
2189
if (cur == (self | RTLD_EXCLUSIVE_MASK)) {
libexec/ld.elf_so/rtld.c
2195
waiter = atomic_swap_uint(&_rtld_waiter_shared, self);
libexec/ld.elf_so/rtld.c
2205
atomic_cas_uint(&_rtld_waiter_shared, self, 0);
libexec/ld.elf_so/rtld.c
2238
lwpid_t waiter, self = _lwp_self();
libexec/ld.elf_so/rtld.c
2239
unsigned int locked_value = (unsigned int)self | RTLD_EXCLUSIVE_MASK;
libexec/ld.elf_so/rtld.c
2252
waiter = atomic_swap_uint(&_rtld_waiter_exclusive, self);
libexec/ld.elf_so/rtld.c
2262
atomic_cas_uint(&_rtld_waiter_exclusive, self, 0);
sys/arch/aarch64/aarch64/cpu.c
277
cpu_identify(device_t self, struct cpu_info *ci)
sys/arch/aarch64/aarch64/cpu.c
302
cpu_identify1(device_t self, struct cpu_info *ci)
sys/arch/aarch64/aarch64/cpu.c
308
aprint_verbose_dev(self, "IC enabled");
sys/arch/aarch64/aarch64/cpu.c
310
aprint_verbose_dev(self, "IC disabled");
sys/arch/aarch64/aarch64/cpu.c
342
aprint_verbose_dev(self, "Cache Writeback Granule %" PRIu64 "B,"
sys/arch/aarch64/aarch64/cpu.c
347
aprint_verbose_dev(self, "Dcache line %ld, Icache line %ld"
sys/arch/aarch64/aarch64/cpu.c
363
cpu_identify2(device_t self, struct cpu_info *ci)
sys/arch/aarch64/aarch64/cpu.c
367
aprint_debug_dev(self, "midr=0x%" PRIx64 " mpidr=0x%" PRIx64 "\n",
sys/arch/aarch64/aarch64/cpu.c
369
aprint_verbose_dev(self, "revID=0x%" PRIx64, id->ac_revidr);
sys/arch/aarch64/aarch64/cpu.c
420
aprint_verbose_dev(self, "auxID=0x%" PRIx64, ci->ci_id.ac_aa64isar0);
sys/arch/aarch64/aarch64/cpu.c
80
static void cpu_identify(device_t self, struct cpu_info *);
sys/arch/aarch64/aarch64/cpu.c
81
static void cpu_identify1(device_t self, struct cpu_info *);
sys/arch/aarch64/aarch64/cpu.c
82
static void cpu_identify2(device_t self, struct cpu_info *);
sys/arch/aarch64/aarch64/cpufunc.c
223
prt_cache(device_t self, struct aarch64_cache_info *cinfo, int level)
sys/arch/aarch64/aarch64/cpufunc.c
279
aprint_verbose_dev(self,
sys/arch/aarch64/aarch64/vmt.c
59
vmt_attach(device_t parent, device_t self, void *aux)
sys/arch/aarch64/aarch64/vmt.c
61
struct vmt_softc *sc = device_private(self);
sys/arch/aarch64/aarch64/vmt.c
66
sc->sc_dev = self;
sys/arch/aarch64/aarch64/vmt.c
73
vmt_detach(device_t self, int flags)
sys/arch/aarch64/aarch64/vmt.c
75
struct vmt_softc *sc = device_private(self);
sys/arch/acorn32/eb7500atx/if_cs.c
136
cs_rsbus_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/eb7500atx/if_cs.c
138
struct cs_softc *sc = device_private(self);
sys/arch/acorn32/eb7500atx/if_cs.c
142
sc->sc_dev = self;
sys/arch/acorn32/eb7500atx/if_cs.c
168
printf("%s: unable to map i/o space\n", device_xname(self));
sys/arch/acorn32/eb7500atx/if_cs.c
175
printf("%s: unable to map memory space\n", device_xname(self));
sys/arch/acorn32/eb7500atx/rsbus.c
63
rsbus_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/eb7500atx/rsbus.c
65
struct rsbus_softc *sc = device_private(self);
sys/arch/acorn32/eb7500atx/rsbus.c
73
config_search(self, NULL,
sys/arch/acorn32/eb7500atx/rside.c
160
rside_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/eb7500atx/rside.c
162
struct rside_softc *sc = device_private(self);
sys/arch/acorn32/eb7500atx/rside.c
181
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/acorn32/eb7500atx/rside.c
232
device_xname(self),
sys/arch/acorn32/mainbus/atppc_pioc.c
102
sc->sc_dev = self;
sys/arch/acorn32/mainbus/atppc_pioc.c
117
if (!(device_cfdata(self)->cf_flags & ATPPC_FLAG_DISABLE_INTR)) {
sys/arch/acorn32/mainbus/atppc_pioc.c
125
"IRQs.\n", device_xname(self)));
sys/arch/acorn32/mainbus/atppc_pioc.c
128
device_xname(self)));
sys/arch/acorn32/mainbus/atppc_pioc.c
96
atppc_pioc_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/mainbus/atppc_pioc.c
98
struct atppc_softc *sc = device_private(self);
sys/arch/acorn32/mainbus/com_pioc.c
150
com_pioc_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/mainbus/com_pioc.c
152
struct com_pioc_softc *psc = device_private(self);
sys/arch/acorn32/mainbus/com_pioc.c
160
sc->sc_dev = self;
sys/arch/acorn32/mainbus/com_pioc.c
181
if (!pmf_device_register1(self, com_suspend, com_resume, com_cleanup)) {
sys/arch/acorn32/mainbus/com_pioc.c
182
aprint_error_dev(self,
sys/arch/acorn32/mainbus/fd.c
382
fdcattach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/mainbus/fd.c
384
struct fdc_softc *fdc = device_private(self);
sys/arch/acorn32/mainbus/fd.c
397
fdc->sc_dev = self;
sys/arch/acorn32/mainbus/fd.c
413
device_xname(self), pa->pa_irq);
sys/arch/acorn32/mainbus/fd.c
434
(void)config_found(self, (void *)&fa, fdprint, CFARGS_NONE);
sys/arch/acorn32/mainbus/fd.c
494
fdattach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/mainbus/fd.c
497
struct fd_softc *fd = device_private(self);
sys/arch/acorn32/mainbus/fd.c
502
fd->sc_dev = self;
sys/arch/acorn32/mainbus/lpt_pioc.c
190
lpt_pioc_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/mainbus/lpt_pioc.c
192
struct lpt_softc *sc = device_private(self);
sys/arch/acorn32/mainbus/lpt_pioc.c
198
sc->sc_dev = self;
sys/arch/acorn32/mainbus/lpt_pioc.c
208
aprint_error_dev(self, "couldn't map I/O ports");
sys/arch/acorn32/mainbus/pioc.c
286
piocattach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/mainbus/pioc.c
289
struct pioc_softc *sc = device_private(self);
sys/arch/acorn32/mainbus/pioc.c
300
panic("%s: couldn't map I/O space", device_xname(self));
sys/arch/acorn32/mainbus/pioc.c
307
printf("\n%s: ", device_xname(self));
sys/arch/acorn32/mainbus/pioc.c
346
printf("%s: ", device_xname(self));
sys/arch/acorn32/mainbus/pioc.c
385
config_found(self, &pa, piocprint,
sys/arch/acorn32/mainbus/pioc.c
404
config_found(self, &pa, piocprint,
sys/arch/acorn32/mainbus/pioc.c
440
config_found(self, &pa, piocprint,
sys/arch/acorn32/mainbus/pioc.c
465
config_found(self, &pa, piocprint,
sys/arch/acorn32/mainbus/pioc.c
491
config_found(self, &pa, piocprint,
sys/arch/acorn32/mainbus/pioc.c
496
config_search(self, NULL,
sys/arch/acorn32/mainbus/wdc_pioc.c
137
wdc_pioc_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/mainbus/wdc_pioc.c
139
struct wdc_pioc_softc *sc = device_private(self);
sys/arch/acorn32/mainbus/wdc_pioc.c
147
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/acorn32/mainbus/wdc_pioc.c
154
panic("%s: couldn't map drive registers", device_xname(self));
sys/arch/acorn32/mainbus/wdc_pioc.c
160
device_xname(self));
sys/arch/acorn32/mainbus/wdc_pioc.c
166
panic("%s: couldn't map aux registers", device_xname(self));
sys/arch/acorn32/mainbus/wdc_pioc.c
171
panic("%s: Cannot claim IRQ %d", device_xname(self),
sys/arch/acorn32/podulebus/amps.c
148
amps_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/amps.c
150
struct amps_softc *sc = device_private(self);
sys/arch/acorn32/podulebus/amps.c
159
sc->sc_dev = self;
sys/arch/acorn32/podulebus/amps.c
185
config_found(self, &aa, amps_print, CFARGS_NONE);
sys/arch/acorn32/podulebus/amps.c
280
com_amps_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/amps.c
282
struct com_amps_softc *asc = device_private(self);
sys/arch/acorn32/podulebus/amps.c
289
sc->sc_dev = self;
sys/arch/acorn32/podulebus/amps.c
302
device_xname(self), "intr");
sys/arch/acorn32/podulebus/asc.c
182
ascattach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/asc.c
189
sc = device_private(self);
sys/arch/acorn32/podulebus/asc.c
201
sbic->sc_dev = self;
sys/arch/acorn32/podulebus/asc.c
214
panic("%s: Cannot map SBIC", device_xname(self));
sys/arch/acorn32/podulebus/asc.c
218
sbic->sc_adapter.adapt_dev = self;
sys/arch/acorn32/podulebus/asc.c
270
device_xname(self), "intr");
sys/arch/acorn32/podulebus/asc.c
274
panic("%s: Cannot claim podule IRQ", device_xname(self));
sys/arch/acorn32/podulebus/asc.c
280
config_found(self, &sbic->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/acorn32/podulebus/cosc.c
108
coscattach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/cosc.c
110
struct cosc_softc *sc = device_private(self);
sys/arch/acorn32/podulebus/cosc.c
238
sc->sc_softc.sc_dev = self;
sys/arch/acorn32/podulebus/cosc.c
272
device_xname(self), "intr");
sys/arch/acorn32/podulebus/cosc.c
277
device_xname(self));
sys/arch/acorn32/podulebus/cosc.c
283
config_found(self, &sc->sc_softc.sc_channel, scsiprint, CFARGS_NONE);
sys/arch/acorn32/podulebus/csa.c
132
csa_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/csa.c
134
struct csa_softc *sc = device_private(self);
sys/arch/acorn32/podulebus/csa.c
138
char hi_option[sizeof(device_xname(self)) + 8];
sys/arch/acorn32/podulebus/csa.c
140
ncr_sc->sc_dev = self;
sys/arch/acorn32/podulebus/csa.c
187
snprintf(hi_option, sizeof(hi_option), "%s.hostid", device_xname(self));
sys/arch/acorn32/podulebus/csa.c
200
device_xname(self), "intr");
sys/arch/acorn32/podulebus/csc.c
100
struct csc_softc *sc = device_private(self);
sys/arch/acorn32/podulebus/csc.c
137
sc->sc_softc.sc_dev = self;
sys/arch/acorn32/podulebus/csc.c
157
sc->sc_softc.sc_adapter.adapt_dev = self;
sys/arch/acorn32/podulebus/csc.c
188
device_xname(self), "intr");
sys/arch/acorn32/podulebus/csc.c
192
panic("%s: Cannot install IRQ handler", device_xname(self));
sys/arch/acorn32/podulebus/csc.c
200
config_found(self, &sc->sc_softc.sc_channel, scsiprint, CFARGS_NONE);
sys/arch/acorn32/podulebus/csc.c
98
cscattach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/icside.c
170
icside_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/icside.c
172
struct icside_softc *sc = device_private(self);
sys/arch/acorn32/podulebus/icside.c
190
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/acorn32/podulebus/icside.c
201
aprint_error_dev(self, "cannot map ID register\n");
sys/arch/acorn32/podulebus/icside.c
228
aprint_error_dev(self,
sys/arch/acorn32/podulebus/icside.c
301
device_xname(self), "intr");
sys/arch/acorn32/podulebus/icside.c
305
aprint_error_dev(self, "Cannot claim interrupt %d\n",
sys/arch/acorn32/podulebus/if_ie.c
301
ieattach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/if_ie.c
303
struct ie_softc *sc = device_private(self);
sys/arch/acorn32/podulebus/if_ie.c
315
sc->sc_dev = self;
sys/arch/acorn32/podulebus/if_ne_pbus.c
230
ne_pbus_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/if_ne_pbus.c
233
struct ne_pbus_softc *npsc = device_private(self);
sys/arch/acorn32/podulebus/if_ne_pbus.c
241
dsc->sc_dev = self;
sys/arch/acorn32/podulebus/if_ne_pbus.c
327
aprint_error_dev(self, "cannot map i/o space\n");
sys/arch/acorn32/podulebus/if_ne_pbus.c
333
aprint_error_dev(self, "cannot map i/o space\n");
sys/arch/acorn32/podulebus/if_ne_pbus.c
340
aprint_error_dev(self, "cannot map extra space\n");
sys/arch/acorn32/podulebus/if_ne_pbus.c
378
aprint_normal_dev(self, "");
sys/arch/acorn32/podulebus/if_ne_pbus.c
406
device_xname(self), "intr");
sys/arch/acorn32/podulebus/if_ne_pbus.c
411
device_xname(self));
sys/arch/acorn32/podulebus/podulebus.c
407
podulebusattach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/podulebus.c
460
podulescan(self);
sys/arch/acorn32/podulebus/podulebus.c
461
netslotscan(self);
sys/arch/acorn32/podulebus/podulebus.c
495
config_found(self, &pa, podulebusprint,
sys/arch/acorn32/podulebus/podulebus.c
510
config_found(self, &pa, podulebusprint,
sys/arch/acorn32/podulebus/ptsc.c
141
ptscattach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/ptsc.c
143
struct ptsc_softc *sc = device_private(self);
sys/arch/acorn32/podulebus/ptsc.c
179
sc->sc_softc.sc_dev = self;
sys/arch/acorn32/podulebus/ptsc.c
227
device_xname(self), "intr");
sys/arch/acorn32/podulebus/ptsc.c
231
panic("%s: Cannot install IRQ handler", device_xname(self));
sys/arch/acorn32/podulebus/ptsc.c
240
config_found(self, &sc->sc_softc.sc_channel, scsiprint, CFARGS_NONE);
sys/arch/acorn32/podulebus/rapide.c
188
rapide_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/rapide.c
190
struct rapide_softc *sc = device_private(self);
sys/arch/acorn32/podulebus/rapide.c
205
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/acorn32/podulebus/rapide.c
226
panic("%s: Cannot map control registers", device_xname(self));
sys/arch/acorn32/podulebus/rapide.c
237
panic("%s: Cannot install shutdown handler", device_xname(self));
sys/arch/acorn32/podulebus/rapide.c
304
device_xname(self), sc->sc_podule->interrupt);
sys/arch/acorn32/podulebus/simide.c
153
simide_attach(device_t parent, device_t self, void *aux)
sys/arch/acorn32/podulebus/simide.c
155
struct simide_softc *sc = device_private(self);
sys/arch/acorn32/podulebus/simide.c
169
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/acorn32/podulebus/simide.c
200
panic("%s: Cannot map control registers", device_xname(self));
sys/arch/acorn32/podulebus/simide.c
205
device_xname(self));
sys/arch/acorn32/podulebus/simide.c
294
device_xname(self), sc->sc_podule->interrupt);
sys/arch/algor/dev/bonito_mainbus.c
116
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/algor/dev/bonito_mainbus.c
76
bonito_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/algor/dev/bonito_mainbus.c
78
struct bonito_softc *sc = device_private(self);
sys/arch/algor/dev/com_mainbus.c
104
aprint_error_dev(self, "unable to establish interrupt\n");
sys/arch/algor/dev/com_mainbus.c
108
if (!pmf_device_register1(self, com_suspend, com_resume, com_cleanup)) {
sys/arch/algor/dev/com_mainbus.c
109
aprint_error_dev(self, "could not establish shutdown hook");
sys/arch/algor/dev/com_mainbus.c
84
com_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/algor/dev/com_mainbus.c
86
struct com_mainbus_softc *msc = device_private(self);
sys/arch/algor/dev/com_mainbus.c
91
sc->sc_dev = self;
sys/arch/algor/dev/lpt_mainbus.c
75
lpt_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/algor/dev/lpt_mainbus.c
77
struct lpt_mainbus_softc *msc = device_private(self);
sys/arch/algor/dev/lpt_mainbus.c
81
sc->sc_dev = self;
sys/arch/algor/dev/lpt_mainbus.c
97
aprint_normal_dev(self, "unable to establish interrupt\n");
sys/arch/algor/dev/mainbus.c
168
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/algor/dev/mainbus.c
222
config_found(self, &ma, mainbus_print,
sys/arch/algor/dev/mcclock_mainbus.c
68
mcclock_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/algor/dev/mcclock_mainbus.c
70
struct mc146818_softc *sc = device_private(self);
sys/arch/algor/dev/mcclock_mainbus.c
73
sc->sc_dev = self;
sys/arch/algor/dev/vtpbc_mainbus.c
131
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/algor/dev/vtpbc_mainbus.c
80
vtpbc_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/algor/dev/vtpbc_mainbus.c
82
struct vtpbc_softc *sc = device_private(self);
sys/arch/algor/dev/vtpbc_mainbus.c
97
printf("%s: PCI memory space base: 0x%08lx\n", device_xname(self),
sys/arch/algor/dev/vtpbc_mainbus.c
99
printf("%s: PCI DMA window base: 0x%08lx\n", device_xname(self),
sys/arch/algor/pci/pcib.c
149
pcib_attach(device_t parent, device_t self, void *aux)
sys/arch/algor/pci/pcib.c
151
struct pcib_softc *sc = device_private(self);
sys/arch/algor/pci/pcib.c
160
sc->sc_dev = self;
sys/arch/algor/pci/pcib.c
167
aprint_error_dev(self, "unable to map ELCR registers\n");
sys/arch/algor/pci/pcib.c
169
aprint_error_dev(self, "unable to map ICU1 registers\n");
sys/arch/algor/pci/pcib.c
171
aprint_error_dev(self, "unable to map ICU2 registers\n");
sys/arch/algor/pci/pcib.c
287
config_defer(self, pcib_bridge_callback);
sys/arch/algor/pci/pcib.c
291
pcib_bridge_callback(device_t self)
sys/arch/algor/pci/pcib.c
293
struct pcib_softc *sc = device_private(self);
sys/arch/algor/pci/pcib.c
324
pcib_isa_attach_hook(device_t parent, device_t self,
sys/arch/algor/pci/pcib.c
332
pcib_isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/algor/pci/vtpbc.c
131
vtpbc_attach_hook(device_t parent, device_t self,
sys/arch/alpha/alpha/cpu.c
339
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/alpha/cpu.c
341
struct cpu_softc * const sc = device_private(self);
sys/arch/alpha/alpha/cpu.c
348
sc->sc_dev = self;
sys/arch/alpha/alpha/cpu.c
800
struct cpu_info *ci, *self = curcpu();
sys/arch/alpha/alpha/cpu.c
804
if (ci == self)
sys/arch/alpha/alpha/mainbus.c
101
config_found(self, &ma, mbprint, CFARGS_NONE);
sys/arch/alpha/alpha/mainbus.c
107
config_found(self, &ma, mbprint, CFARGS_NONE);
sys/arch/alpha/alpha/mainbus.c
66
mbattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/alpha/mainbus.c
88
if (config_found(self, &ma, mbprint, CFARGS_NONE) != NULL)
sys/arch/alpha/alpha/qemu.c
179
qemu_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/alpha/qemu.c
181
struct qemu_softc * const sc = device_private(self);
sys/arch/alpha/alpha/qemu.c
184
sc->sc_dev = self;
sys/arch/alpha/eisa/eisa_machdep.c
49
eisa_attach_hook(device_t parent, device_t self,
sys/arch/alpha/eisa/eisa_machdep.c
52
eba->eba_ec->ec_attach_hook(parent, self, eba);
sys/arch/alpha/gbus/gbus.c
111
gbusattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/gbus/gbus.c
113
struct gbus_softc *sc = device_private(self);
sys/arch/alpha/gbus/gbus.c
121
sc->sc_dev = self;
sys/arch/alpha/gbus/gbus.c
129
config_found(self, &gaa, gbusprint,
sys/arch/alpha/gbus/mcclock_gbus.c
75
mcclock_gbus_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/gbus/mcclock_gbus.c
77
struct mcclock_softc *msc = device_private(self);
sys/arch/alpha/gbus/mcclock_gbus.c
81
sc->sc_dev = self;
sys/arch/alpha/isa/isa_machdep.c
88
isabeepattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/isa/mcclock_isa.c
100
struct mcclock_softc *msc = device_private(self);
sys/arch/alpha/isa/mcclock_isa.c
104
sc->sc_dev = self;
sys/arch/alpha/isa/mcclock_isa.c
98
mcclock_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/jensenio/com_jensenio.c
122
aprint_normal_dev(self, "interrupting at vector 0x%x\n",
sys/arch/alpha/jensenio/com_jensenio.c
125
if (!pmf_device_register1(self, com_suspend, com_resume, com_cleanup)) {
sys/arch/alpha/jensenio/com_jensenio.c
126
aprint_error_dev(self, "could not establish shutdown hook");
sys/arch/alpha/jensenio/com_jensenio.c
89
com_jensenio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/jensenio/com_jensenio.c
91
struct com_jensenio_softc *jsc = device_private(self);
sys/arch/alpha/jensenio/com_jensenio.c
96
sc->sc_dev = self;
sys/arch/alpha/jensenio/jensenio.c
147
jensenio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/jensenio/jensenio.c
187
config_found(self, &ja, jensenio_print,
sys/arch/alpha/jensenio/jensenio.c
203
eisabus_attach(self, &ja.ja_eisa);
sys/arch/alpha/jensenio/jensenio.c
215
isabus_attach(self, &ja.ja_isa);
sys/arch/alpha/jensenio/jensenio.c
232
jensenio_eisa_attach_hook(device_t parent, device_t self,
sys/arch/alpha/jensenio/jensenio.c
255
jensenio_isa_attach_hook(device_t parent, device_t self,
sys/arch/alpha/jensenio/jensenio.c
263
jensenio_isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/alpha/jensenio/lpt_jensenio.c
115
aprint_error_dev(self, "unable to establish interrupt");
sys/arch/alpha/jensenio/lpt_jensenio.c
121
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/arch/alpha/jensenio/lpt_jensenio.c
88
lpt_jensenio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/jensenio/lpt_jensenio.c
90
struct lpt_jensenio_softc *jsc = device_private(self);
sys/arch/alpha/jensenio/lpt_jensenio.c
96
sc->sc_dev = self;
sys/arch/alpha/jensenio/mcclock_jensenio.c
108
mcclock_jensenio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/jensenio/mcclock_jensenio.c
110
struct mcclock_jensenio_softc *jsc = device_private(self);
sys/arch/alpha/jensenio/mcclock_jensenio.c
114
sc->sc_dev = self;
sys/arch/alpha/jensenio/pckbc_jensenio.c
86
pckbc_jensenio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/jensenio/pckbc_jensenio.c
88
struct pckbc_jensenio_softc *jsc = device_private(self);
sys/arch/alpha/jensenio/pckbc_jensenio.c
94
sc->sc_dv = self;
sys/arch/alpha/mcbus/mcbus.c
117
mcbusattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/mcbus/mcbus.c
123
mcbus_softc_t *mbp = device_private(self);
sys/arch/alpha/mcbus/mcbus.c
148
config_found(self, &ta, mcbusprint,
sys/arch/alpha/mcbus/mcbus.c
167
config_found(self, &ta, mcbusprint,
sys/arch/alpha/mcbus/mcbus.c
183
printf("%s mid %d: %s %s\n", device_xname(self),
sys/arch/alpha/mcbus/mcbus.c
196
config_found(self, &ta, mcbusprint,
sys/arch/alpha/mcbus/mcmem.c
68
mcmemattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/apecs.c
145
apecsattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/apecs.c
164
aprint_normal_dev(self, "DC21071-CA pass %d, %d-bit memory bus\n",
sys/arch/alpha/pci/apecs.c
166
aprint_normal_dev(self, "DC21071-DA pass %d\n",
sys/arch/alpha/pci/apecs.c
185
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/alpha/pci/cia.c
243
ciaattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/cia.c
245
struct cia_softc *sc = device_private(self);
sys/arch/alpha/pci/cia.c
253
sc->sc_dev = self;
sys/arch/alpha/pci/cia.c
273
aprint_normal_dev(self, "extended capabilities: %s\n", bits);
sys/arch/alpha/pci/cia.c
291
aprint_normal_dev(self, "using BWX for %s access\n", name);
sys/arch/alpha/pci/cia.c
319
aprint_error_dev(self,
sys/arch/alpha/pci/cia.c
348
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/alpha/pci/dwlpx.c
106
dwlpxattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/dwlpx.c
108
struct dwlpx_softc *sc = device_private(self);
sys/arch/alpha/pci/dwlpx.c
114
sc->dwlpx_dev = self;
sys/arch/alpha/pci/dwlpx.c
178
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/alpha/pci/irongate.c
121
irongate_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/irongate.c
123
struct irongate_softc *sc = device_private(self);
sys/arch/alpha/pci/irongate.c
131
sc->sc_dev = self;
sys/arch/alpha/pci/irongate.c
182
config_found(self, &apa, agpbusprint,
sys/arch/alpha/pci/irongate.c
186
config_found(self, &pba, pcibusprint,
sys/arch/alpha/pci/lca.c
207
lcaattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/lca.c
209
struct lca_softc *sc = device_private(self);
sys/arch/alpha/pci/lca.c
215
sc->sc_dev = self;
sys/arch/alpha/pci/lca.c
230
aprint_normal_dev(self, "%s Bcache detected\n", buf);
sys/arch/alpha/pci/lca.c
248
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/alpha/pci/mcpcia.c
126
mcpciaattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/mcpcia.c
129
struct mcpcia_softc *mcp = device_private(self);
sys/arch/alpha/pci/mcpcia.c
156
mcp->mcpcia_dev = self;
sys/arch/alpha/pci/mcpcia.c
164
aprint_normal_dev(self,
sys/arch/alpha/pci/mcpcia.c
190
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/alpha/pci/pci_machdep.c
500
pci_attach_hook(device_t const parent, device_t const self,
sys/arch/alpha/pci/pci_machdep.c
506
pc->pc_attach_hook(parent, self, pba);
sys/arch/alpha/pci/sio.c
179
sioattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/sio.c
181
struct sio_softc *sc = device_private(self);
sys/arch/alpha/pci/sio.c
189
sc->sc_dev = self;
sys/arch/alpha/pci/sio.c
201
config_defer(self, sio_bridge_callback);
sys/arch/alpha/pci/sio.c
205
sio_bridge_callback(device_t self)
sys/arch/alpha/pci/sio.c
207
struct sio_softc *sc = device_private(self);
sys/arch/alpha/pci/sio.c
289
sio_isa_attach_hook(device_t parent, device_t self, struct isabus_attach_args *iba)
sys/arch/alpha/pci/sio.c
296
sio_isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/alpha/pci/sio.c
305
sio_eisa_attach_hook(device_t parent, device_t self, struct eisabus_attach_args *eba)
sys/arch/alpha/pci/tsc.c
111
tscattach(device_t parent, device_t self, void * aux)
sys/arch/alpha/pci/tsc.c
143
config_found(self, &tsp, tscprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
146
config_found(self, &tsp, tscprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
151
config_found(self, &tsp, tscprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
154
config_found(self, &tsp, tscprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
161
config_found(self, &tsciic, tsciicprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
203
tspattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/tsc.c
233
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
325
tsciicattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/tsc.c
328
tsciic_init(self);
sys/arch/alpha/pci/tsciic.c
74
tsciic_init(device_t self)
sys/arch/alpha/pci/tsciic.c
76
struct tsciic_softc *sc = device_private(self);
sys/arch/alpha/pci/tsciic.c
86
iicbus_attach(self, &sc->sc_i2c);
sys/arch/alpha/pci/ttwoga.c
125
ttwogaattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/ttwoga.c
147
config_found(self, &pba, ttwogaprint, CFARGS_NONE);
sys/arch/alpha/pci/ttwoga.c
218
ttwopciattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/pci/ttwoga.c
236
aprint_normal_dev(self,
sys/arch/alpha/pci/ttwoga.c
255
config_found(self, &npba, ttwosableioprint,
sys/arch/alpha/pci/ttwoga.c
259
config_found(self, &npba, pcibusprint,
sys/arch/alpha/sableio/com_sableio.c
116
aprint_error_dev(self, "unable to establish interrupt");
sys/arch/alpha/sableio/com_sableio.c
122
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/arch/alpha/sableio/com_sableio.c
124
if (!pmf_device_register1(self, com_suspend, com_resume, com_cleanup)) {
sys/arch/alpha/sableio/com_sableio.c
125
aprint_error_dev(self, "could not establish shutdown hook");
sys/arch/alpha/sableio/com_sableio.c
87
com_sableio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/sableio/com_sableio.c
89
struct com_sableio_softc *ssc = device_private(self);
sys/arch/alpha/sableio/com_sableio.c
97
sc->sc_dev = self;
sys/arch/alpha/sableio/fdc_sableio.c
104
aprint_error_dev(self, "unable to subregion I/O space\n");
sys/arch/alpha/sableio/fdc_sableio.c
110
aprint_error_dev(self, "unable to map CTL I/O space\n");
sys/arch/alpha/sableio/fdc_sableio.c
120
aprint_error_dev(self, "unable to establish interrupt");
sys/arch/alpha/sableio/fdc_sableio.c
126
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/arch/alpha/sableio/fdc_sableio.c
80
fdc_sableio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/sableio/fdc_sableio.c
82
struct fdc_sableio_softc *sfdc = device_private(self);
sys/arch/alpha/sableio/fdc_sableio.c
91
fdc->sc_dev = self;
sys/arch/alpha/sableio/fdc_sableio.c
98
aprint_error_dev(self, "unable to map I/O space\n");
sys/arch/alpha/sableio/lpt_sableio.c
115
aprint_error_dev(self, "unable to establish interrupt");
sys/arch/alpha/sableio/lpt_sableio.c
121
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/arch/alpha/sableio/lpt_sableio.c
87
lpt_sableio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/sableio/lpt_sableio.c
89
struct lpt_sableio_softc *ssc = device_private(self);
sys/arch/alpha/sableio/lpt_sableio.c
96
sc->sc_dev = self;
sys/arch/alpha/sableio/pckbc_sableio.c
86
pckbc_sableio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/sableio/pckbc_sableio.c
88
struct pckbc_sableio_softc *ssc = device_private(self);
sys/arch/alpha/sableio/pckbc_sableio.c
94
sc->sc_dv = self;
sys/arch/alpha/sableio/sableio.c
135
sableio_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/sableio/sableio.c
137
struct sableio_softc *sc = device_private(self);
sys/arch/alpha/sableio/sableio.c
147
sc->sc_dev = self;
sys/arch/alpha/sableio/sableio.c
155
isa_dmainit(&sc->sc_isa_chipset, pba->pba_iot, dmat, self);
sys/arch/alpha/sableio/sableio.c
172
config_found(self, &sa, sableio_print,
sys/arch/alpha/tc/ioasic.c
147
ioasicattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/tc/ioasic.c
149
struct ioasic_softc *sc = device_private(self);
sys/arch/alpha/tc/ioasic.c
160
sc->sc_dev = self;
sys/arch/alpha/tc/ioasic.c
164
printf("%s: unable to map device\n", device_xname(self));
sys/arch/alpha/tc/ioasic.c
200
EVCNT_TYPE_INTR, pevcnt, device_xname(self), cp);
sys/arch/alpha/tc/mcclock_ioasic.c
82
mcclock_ioasic_attach(device_t parent, device_t self, void *aux)
sys/arch/alpha/tc/mcclock_ioasic.c
84
struct mcclock_ioasic_softc *isc = device_private(self);
sys/arch/alpha/tc/mcclock_ioasic.c
91
sc->sc_dev = self;
sys/arch/alpha/tc/tcasic.c
153
config_found(self, &tba, tcasicprint, CFARGS_NONE);
sys/arch/alpha/tc/tcasic.c
83
tcasicattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/tlsb/kftxx.c
101
sc->sc_dev = self;
sys/arch/alpha/tlsb/kftxx.c
111
aprint_error_dev(self, "Hose %d IDPNSE has %x\n",
sys/arch/alpha/tlsb/kftxx.c
116
aprint_error_dev(self,
sys/arch/alpha/tlsb/kftxx.c
122
aprint_error_dev(self,
sys/arch/alpha/tlsb/kftxx.c
131
config_found(self, &ka, kftprint, CFARGS_NONE);
sys/arch/alpha/tlsb/kftxx.c
94
kftattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/tlsb/kftxx.c
97
struct kft_softc *sc = device_private(self);
sys/arch/alpha/tlsb/tlsb.c
124
tlsbattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/tlsb/tlsb.c
179
aprint_normal("%s node %d: %s\n", device_xname(self),
sys/arch/alpha/tlsb/tlsb.c
188
config_found(self, &ta, tlsbprint,
sys/arch/alpha/tlsb/tlsb.c
217
device_xname(self), node,
sys/arch/alpha/tlsb/tlsb.c
236
config_found(self, &ta, tlsbprint,
sys/arch/alpha/tlsb/tlsbmem.c
75
tlsbmemattach(device_t parent, device_t self, void *aux)
sys/arch/alpha/tlsb/tlsbmem.c
78
struct tlsbmem_softc *sc = device_private(self);
sys/arch/alpha/tlsb/tlsbmem.c
80
sc->sc_dev = self;
sys/arch/amd64/amd64/amd64_mainbus.c
161
amd64_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/amd64/amd64/amd64_mainbus.c
172
self);
sys/arch/amd64/amd64/amd64_mainbus.c
187
config_found(self, &mba.mba_acpi, NULL,
sys/arch/amd64/amd64/amd64_mainbus.c
197
config_found(self, &mba.mba_ipmi, NULL,
sys/arch/amd64/amd64/amd64_mainbus.c
218
npcibus = mp_pci_scan(self, &mba.mba_pba, pcibusprint);
sys/arch/amd64/amd64/amd64_mainbus.c
222
npcibus = mp_pci_scan(self, &mba.mba_pba, pcibusprint);
sys/arch/amd64/amd64/amd64_mainbus.c
225
config_found(self, &mba.mba_pba, pcibusprint,
sys/arch/amd64/amd64/amd64_mainbus.c
240
isabus_attach(self, &mba.mba_iba);
sys/arch/amd64/amd64/amd64_mainbus.c
252
config_found(self, &mba.mba_pvba.pvba_busname, NULL,
sys/arch/amd64/amd64/amd64_mainbus.c
260
if (!pmf_device_register(self, NULL, NULL))
sys/arch/amd64/amd64/amd64_mainbus.c
261
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/amiga/amiga/autoconf.c
269
mbattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/amiga/autoconf.c
272
config_found(self, __UNCONST("clock"), simple_devprint, CFARGS_NONE);
sys/arch/amiga/amiga/autoconf.c
274
config_found(self, __UNCONST("a34kbbc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
281
config_found(self, __UNCONST("a2kbbc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
286
config_found(self, __UNCONST("drbbc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
288
config_found(self, __UNCONST("kbd"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
290
config_found(self, __UNCONST("drsc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
292
config_found(self, __UNCONST("drsupio"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
297
config_found(self, __UNCONST("ser"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
299
config_found(self, __UNCONST("par"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
301
config_found(self, __UNCONST("kbd"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
303
config_found(self, __UNCONST("ms"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
305
config_found(self, __UNCONST("grfcc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
307
config_found(self, __UNCONST("amidisplaycc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
309
config_found(self, __UNCONST("fdc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
313
config_found(self, __UNCONST("wdc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
316
config_found(self, __UNCONST("afsc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
319
config_found(self, __UNCONST("ahsc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
322
config_found(self, __UNCONST("pccard"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
325
config_found(self, __UNCONST("a1k2cp"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
330
config_found(self, __UNCONST("aucc"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
336
config_found(self, __UNCONST("acafh"), simple_devprint,
sys/arch/amiga/amiga/autoconf.c
340
config_found(self, __UNCONST("zbus"), simple_devprint, CFARGS_NONE);
sys/arch/amiga/clockport/a1k2cp.c
85
a1k2cp_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/clockport/a1k2cp.c
91
sc = device_private(self);
sys/arch/amiga/clockport/a1k2cp.c
92
sc->sc_dev = self;
sys/arch/amiga/clockport/clockport.c
58
clockport_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/clockport/clockport.c
64
sc = device_private(self);
sys/arch/amiga/clockport/clockport.c
65
sc->sc_dev = self;
sys/arch/amiga/clockport/clockport.c
68
config_search(self, NULL,
sys/arch/amiga/clockport/com_ss.c
63
com_ss_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/clockport/com_ss.c
65
struct com_softc *sc = device_private(self);
sys/arch/amiga/clockport/com_ss.c
70
sc->sc_dev = self;
sys/arch/amiga/clockport/flipper.c
84
flipper_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/clockport/flipper.c
86
struct flipper_softc *sc = device_private(self);
sys/arch/amiga/clockport/flipper.c
88
sc->sc_dev = self;
sys/arch/amiga/clockport/gencp_acafh.c
78
gencp_acafh_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/clockport/gencp_acafh.c
86
sc = device_private(self);
sys/arch/amiga/clockport/gencp_acafh.c
87
sc->sc_dev = self;
sys/arch/amiga/clockport/gencp_xsurf.c
79
gencp_xsurf_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/clockport/gencp_xsurf.c
87
sc = device_private(self);
sys/arch/amiga/clockport/gencp_xsurf.c
88
sc->sc_dev = self;
sys/arch/amiga/dev/a2kbbc.c
101
a2kbbc_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/a2kbbc.c
106
sc = device_private(self);
sys/arch/amiga/dev/a2kbbc.c
108
msc->sc_dev = self;
sys/arch/amiga/dev/a34kbbc.c
102
a34kbbc_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/a34kbbc.c
104
struct a34kbbc_softc *sc = device_private(self);
sys/arch/amiga/dev/a34kbbc.c
108
sc->sc_dev = self;
sys/arch/amiga/dev/a34kbbc.c
111
sc->sc_todr.todr_dev = self;
sys/arch/amiga/dev/acafh.c
138
acafh_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/acafh.c
146
sc = device_private(self);
sys/arch/amiga/dev/acafh.c
147
sc->sc_dev = self;
sys/arch/amiga/dev/afsc.c
131
afscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/afsc.c
133
struct siop_softc *sc = device_private(self);
sys/arch/amiga/dev/afsc.c
141
sc->sc_dev = self;
sys/arch/amiga/dev/afsc.c
161
adapt->adapt_dev = self;
sys/arch/amiga/dev/afsc.c
189
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/ahsc.c
124
ahscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/ahsc.c
127
struct sbic_softc *sc = device_private(self);
sys/arch/amiga/dev/ahsc.c
132
sc->sc_dev = self;
sys/arch/amiga/dev/ahsc.c
177
adapt->adapt_dev = self;
sys/arch/amiga/dev/ahsc.c
205
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/amidisplaycc.c
419
amidisplaycc_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/amidisplaycc.c
426
adp = device_private(self);
sys/arch/amiga/dev/amidisplaycc.c
477
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/amiga/dev/atzsc.c
131
atzscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/atzsc.c
134
struct sbic_softc *sc = device_private(self);
sys/arch/amiga/dev/atzsc.c
141
sc->sc_dev = self;
sys/arch/amiga/dev/atzsc.c
186
adapt->adapt_dev = self;
sys/arch/amiga/dev/atzsc.c
214
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/aucc.c
242
auccattach(device_t parent, device_t self, void *args)
sys/arch/amiga/dev/aucc.c
247
sc = device_private(self);
sys/arch/amiga/dev/aucc.c
255
audio_attach_mi(&sa_hw_if, sc, self);
sys/arch/amiga/dev/bppcsc.c
114
bppcscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/bppcsc.c
121
sc = device_private(self);
sys/arch/amiga/dev/bppcsc.c
122
sc->sc_dev = self;
sys/arch/amiga/dev/bppcsc.c
144
adapt->adapt_dev = self;
sys/arch/amiga/dev/bppcsc.c
172
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/bzivsc.c
156
bzivscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/bzivsc.c
158
struct bzivsc_softc *bsc = device_private(self);
sys/arch/amiga/dev/bzivsc.c
168
sc->sc_dev = self;
sys/arch/amiga/dev/bzivsc.c
210
device_cfdata(self)->cf_flags |= (scsi_nosync >> shift_nosync)
sys/arch/amiga/dev/bzsc.c
164
bzscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/bzsc.c
166
struct bzsc_softc *bsc = device_private(self);
sys/arch/amiga/dev/bzsc.c
176
sc->sc_dev = self;
sys/arch/amiga/dev/bzsc.c
218
device_cfdata(self)->cf_flags |= (scsi_nosync >> shift_nosync)
sys/arch/amiga/dev/bztzsc.c
158
bztzscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/bztzsc.c
160
struct bztzsc_softc *bsc = device_private(self);
sys/arch/amiga/dev/bztzsc.c
170
sc->sc_dev = self;
sys/arch/amiga/dev/bztzsc.c
212
device_cfdata(self)->cf_flags |= (scsi_nosync >> shift_nosync)
sys/arch/amiga/dev/cbiiisc.c
114
cbiiiscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/cbiiisc.c
116
struct siop_softc *sc = device_private(self);
sys/arch/amiga/dev/cbiiisc.c
123
sc->sc_dev = self;
sys/arch/amiga/dev/cbiiisc.c
138
adapt->adapt_dev = self;
sys/arch/amiga/dev/cbiiisc.c
169
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/cbiisc.c
152
cbiiscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/cbiisc.c
154
struct cbiisc_softc *csc = device_private(self);
sys/arch/amiga/dev/cbiisc.c
164
sc->sc_dev = self;
sys/arch/amiga/dev/cbiisc.c
206
device_cfdata(self)->cf_flags |= (scsi_nosync >> shift_nosync)
sys/arch/amiga/dev/cbsc.c
156
cbscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/cbsc.c
158
struct cbsc_softc *csc = device_private(self);
sys/arch/amiga/dev/cbsc.c
168
sc->sc_dev = self;
sys/arch/amiga/dev/cbsc.c
210
device_cfdata(self)->cf_flags |= (scsi_nosync >> shift_nosync)
sys/arch/amiga/dev/clock.c
116
clockattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/clock.c
150
if (self != NULL) { /* real autoconfig? */
sys/arch/amiga/dev/clock.c
169
calibrate_delay(self);
sys/arch/amiga/dev/clock.c
197
calibrate_delay(self);
sys/arch/amiga/dev/clock.c
328
calibrate_delay(device_t self)
sys/arch/amiga/dev/clock.c
332
if (self)
sys/arch/amiga/dev/clock.c
343
if (self)
sys/arch/amiga/dev/clock.c
353
if (self)
sys/arch/amiga/dev/clock.c
365
if (self)
sys/arch/amiga/dev/clock.c
368
if (self)
sys/arch/amiga/dev/com_supio.c
113
com_supio_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/com_supio.c
115
struct comsupio_softc *sc = device_private(self);
sys/arch/amiga/dev/com_supio.c
125
csc->sc_dev = self;
sys/arch/amiga/dev/com_supio.c
148
aprint_normal_dev(self, "raising ipl2spl_table[IPL_SERIAL] "
sys/arch/amiga/dev/com_supio.c
158
if (!pmf_device_register1(self, com_suspend, com_resume, com_cleanup)) {
sys/arch/amiga/dev/com_supio.c
159
aprint_error_dev(self, "could not establish shutdown hook");
sys/arch/amiga/dev/drbbc.c
114
sc->sc_todr.todr_dev = self;
sys/arch/amiga/dev/drbbc.c
86
drbbc_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/drbbc.c
92
sc = device_private(self);
sys/arch/amiga/dev/drbbc.c
93
sc->sc_dev = self;
sys/arch/amiga/dev/drsc.c
115
drscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/drsc.c
117
struct siop_softc *sc = device_private(self);
sys/arch/amiga/dev/drsc.c
124
sc->sc_dev = self;
sys/arch/amiga/dev/drsc.c
140
adapt->adapt_dev = self;
sys/arch/amiga/dev/drsc.c
173
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/drsupio.c
100
drsc = device_private(self);
sys/arch/amiga/dev/drsupio.c
116
config_found(self, &supa, drsupprint, CFARGS_NONE); /* XXX */
sys/arch/amiga/dev/drsupio.c
93
drsupioattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/efa.c
129
efa_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/efa.c
132
struct efa_softc *sc = device_private(self);
sys/arch/amiga/dev/efa.c
141
aprint_error_dev(self, "couldn't map base addresses\n");
sys/arch/amiga/dev/efa.c
145
aprint_error_dev(self, "couldn't map Gayle registers\n");
sys/arch/amiga/dev/efa.c
149
aprint_error_dev(self, "couldn't map FastATA registers\n");
sys/arch/amiga/dev/efa.c
156
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/amiga/dev/efa.c
179
aprint_error_dev(self, "couldn't create soft intr\n");
sys/arch/amiga/dev/efa.c
184
aprint_error_dev(self, "couldn't create kthread\n");
sys/arch/amiga/dev/efa.c
201
device_t self;
sys/arch/amiga/dev/efa.c
203
self = sc->sc_wdcdev.sc_atac.atac_dev;
sys/arch/amiga/dev/efa.c
221
aprint_normal_dev(self, "done init for channel %d\n", chnum);
sys/arch/amiga/dev/efa.c
243
device_t self;
sys/arch/amiga/dev/efa.c
245
self = sc->sc_wdcdev.sc_atac.atac_dev;
sys/arch/amiga/dev/efa.c
260
aprint_verbose_dev(self, "hardware interrupt disabled\n");
sys/arch/amiga/dev/efa.c
263
aprint_verbose_dev(self, "32-bit I/O enabled\n");
sys/arch/amiga/dev/efa.c
314
device_t self;
sys/arch/amiga/dev/efa.c
316
self = sc->sc_wdcdev.sc_atac.atac_dev;
sys/arch/amiga/dev/efa.c
325
aprint_normal_dev(self, "Gayle %x -> %x, FastATA %x -> %x\n",
sys/arch/amiga/dev/efa.c
388
device_t self;
sys/arch/amiga/dev/efa.c
390
self = sc->sc_wdcdev.sc_atac.atac_dev;
sys/arch/amiga/dev/efa.c
402
aprint_normal_dev(self,
sys/arch/amiga/dev/efa.c
414
aprint_normal_dev(self,
sys/arch/amiga/dev/efa.c
485
device_t self;
sys/arch/amiga/dev/efa.c
496
self = sc->sc_wdcdev.sc_atac.atac_dev;
sys/arch/amiga/dev/efa.c
497
aprint_normal_dev(self, "efa_setup_channel for ch %d\n",
sys/arch/amiga/dev/efa.c
516
aprint_normal_dev(self, "drive %d supports %d\n",
sys/arch/amiga/dev/efa.c
536
device_t self;
sys/arch/amiga/dev/efa.c
538
self = sc->sc_wdcdev.sc_atac.atac_dev;
sys/arch/amiga/dev/efa.c
545
aprint_normal_dev(self, "switched ch %d to PIO %d\n",
sys/arch/amiga/dev/empsc.c
118
empscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/empsc.c
121
struct sci_softc *sc = device_private(self);
sys/arch/amiga/dev/empsc.c
132
sc->sc_dev = self;
sys/arch/amiga/dev/empsc.c
157
adapt->adapt_dev = self;
sys/arch/amiga/dev/empsc.c
178
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/fd.c
363
fdcattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/fd.c
373
config_found(self, &args, fdcprint, CFARGS_NONE);
sys/arch/amiga/dev/fd.c
377
config_found(self, &args, fdcprint, CFARGS_NONE);
sys/arch/amiga/dev/fd.c
408
fdattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/fd.c
415
sc = device_private(self);
sys/arch/amiga/dev/fd.c
416
sc->sc_dev = self;
sys/arch/amiga/dev/flsc.c
143
flscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/flsc.c
145
struct flsc_softc *fsc = device_private(self);
sys/arch/amiga/dev/flsc.c
152
sc->sc_dev = self;
sys/arch/amiga/dev/flsc.c
200
device_cfdata(self)->cf_flags |=
sys/arch/amiga/dev/gayle_pcmcia.c
108
pccard_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/gayle_pcmcia.c
110
struct pccard_softc *sc = device_private(self);
sys/arch/amiga/dev/gayle_pcmcia.c
176
sc->devs[0].card = config_found(self, &paa, simple_devprint,
sys/arch/amiga/dev/gayle_pcmcia.c
201
device_xname(self));
sys/arch/amiga/dev/grf.c
168
grfattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/grf.c
178
gp->g_device = self;
sys/arch/amiga/dev/grf.c
187
if (self != NULL) {
sys/arch/amiga/dev/grf.c
215
config_found(self, &wa, wsemuldisplaydevprint,
sys/arch/amiga/dev/grf.c
224
amiga_config_found(cfdata, self, gp, grfprint,
sys/arch/amiga/dev/grf_cc.c
118
grfccattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/grf_cc.c
124
if (self == NULL) {
sys/arch/amiga/dev/grf_cc.c
129
gp = device_private(self);
sys/arch/amiga/dev/grf_cc.c
130
gp->g_device = self;
sys/arch/amiga/dev/grf_cc.c
133
if (self != NULL && congrf.g_regkva != 0) {
sys/arch/amiga/dev/grf_cc.c
150
if (self != NULL)
sys/arch/amiga/dev/grf_cl.c
394
grfclattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/grf_cl.c
411
if (self == NULL) {
sys/arch/amiga/dev/grf_cl.c
416
gp = device_private(self);
sys/arch/amiga/dev/grf_cl.c
417
gp->g_device = self;
sys/arch/amiga/dev/grf_cl.c
420
if (self != NULL && congrf.g_regkva != 0) {
sys/arch/amiga/dev/grf_cv.c
477
grfcvattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/grf_cv.c
491
if (self == NULL) {
sys/arch/amiga/dev/grf_cv.c
497
gcp = device_private(self);
sys/arch/amiga/dev/grf_cv.c
499
gp->g_device = self;
sys/arch/amiga/dev/grf_cv.c
503
if (self != NULL && congrf.gcs_sc.g_regkva != 0) {
sys/arch/amiga/dev/grf_cv.c
560
if (self != NULL)
sys/arch/amiga/dev/grf_cv3d.c
423
grfcv3dattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/grf_cv3d.c
437
if (self == NULL) {
sys/arch/amiga/dev/grf_cv3d.c
442
gp = device_private(self);
sys/arch/amiga/dev/grf_cv3d.c
443
gp->g_device = self;
sys/arch/amiga/dev/grf_cv3d.c
446
if (self != NULL && congrf.g_regkva != 0) {
sys/arch/amiga/dev/grf_cv3d.c
510
if (self != NULL)
sys/arch/amiga/dev/grf_cv3d.c
512
device_xname(self), cv3d_fbsize / 0x100000);
sys/arch/amiga/dev/grf_et.c
329
grfetattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/grf_et.c
343
if (self == NULL) {
sys/arch/amiga/dev/grf_et.c
348
gp = device_private(self);
sys/arch/amiga/dev/grf_et.c
349
gp->g_device = self;
sys/arch/amiga/dev/grf_et.c
352
if (self != NULL && congrf.g_regkva != 0) {
sys/arch/amiga/dev/grf_rh.c
1580
grfrhattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/grf_rh.c
1589
if (self == NULL) {
sys/arch/amiga/dev/grf_rh.c
1594
gp = device_private(self);
sys/arch/amiga/dev/grf_rh.c
1595
gp->g_device = self;
sys/arch/amiga/dev/grf_rh.c
1598
if (self != NULL && congrf.g_regkva != 0) {
sys/arch/amiga/dev/grf_rh.c
1616
if (self != NULL)
sys/arch/amiga/dev/grf_rt.c
843
grfrtattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/grf_rt.c
852
if (self == NULL) {
sys/arch/amiga/dev/grf_rt.c
857
gp = device_private(self);
sys/arch/amiga/dev/grf_rt.c
858
gp->g_device = self;
sys/arch/amiga/dev/grf_rt.c
861
if (self != NULL && congrf.g_regkva != 0) {
sys/arch/amiga/dev/grf_rt.c
880
if (self != NULL)
sys/arch/amiga/dev/grf_ul.c
491
grfulattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/grf_ul.c
501
if (self == NULL) {
sys/arch/amiga/dev/grf_ul.c
507
gup = device_private(self);
sys/arch/amiga/dev/grf_ul.c
509
gp->g_device = self;
sys/arch/amiga/dev/grf_ul.c
512
if (self != NULL && congrf.gus_sc.g_regkva != 0) {
sys/arch/amiga/dev/grf_ul.c
551
if (self != NULL)
sys/arch/amiga/dev/gtsc.c
131
gtscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/gtsc.c
135
struct sbic_softc *sc = device_private(self);
sys/arch/amiga/dev/gtsc.c
140
sc->sc_dev = self;
sys/arch/amiga/dev/gtsc.c
214
adapt->adapt_dev = self;
sys/arch/amiga/dev/gtsc.c
242
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/gvpbus.c
148
config_found(self, &ga, gvpbusprint, CFARGS_NONE);
sys/arch/amiga/dev/gvpbus.c
152
config_found(self, &ga, gvpbusprint, CFARGS_NONE);
sys/arch/amiga/dev/gvpbus.c
72
gvpbusattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/gvpio.c
108
giosc = device_private(self);
sys/arch/amiga/dev/gvpio.c
134
config_found(self, &supa, gvpioprint, CFARGS_NONE); /* XXX */
sys/arch/amiga/dev/gvpio.c
144
device_xname(self), ipl2spl_table[IPL_SERIAL],
sys/arch/amiga/dev/gvpio.c
174
gvp_com_intr_establish(device_t self, struct gvpcom_int_hdl *p)
sys/arch/amiga/dev/gvpio.c
178
sc = device_private(self);
sys/arch/amiga/dev/gvpio.c
97
gvpioattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/hyper.c
124
hyperattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/hyper.c
132
hprsc = device_private(self);
sys/arch/amiga/dev/hyper.c
152
config_found(self, &supa, hyperprint, CFARGS_NONE); /* XXX */
sys/arch/amiga/dev/if_bah_zbus.c
103
sc->sc_dev = self;
sys/arch/amiga/dev/if_bah_zbus.c
106
device_xname(self), parent, self, aux);
sys/arch/amiga/dev/if_bah_zbus.c
121
aprint_error_dev(self, "bah_attach_subr failed(%d)\n", rv);
sys/arch/amiga/dev/if_bah_zbus.c
96
bah_zbus_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/if_bah_zbus.c
98
struct bah_zbus_softc *bsc = device_private(self);
sys/arch/amiga/dev/if_ed_zbus.c
104
ed_zbus_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/if_ed_zbus.c
106
struct ed_zbus_softc *zsc = device_private(self);
sys/arch/amiga/dev/if_ed_zbus.c
126
sc->sc_dev = self;
sys/arch/amiga/dev/if_ed_zbus.c
131
aprint_error_dev(self, "can't map i/o space\n");
sys/arch/amiga/dev/if_ed_zbus.c
137
aprint_error_dev(self, "can't map buffer space\n");
sys/arch/amiga/dev/if_ed_zbus.c
185
sc->sc_flags = device_cfdata(self)->cf_flags;
sys/arch/amiga/dev/if_es.c
144
esattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/if_es.c
146
struct es_softc *sc = device_private(self);
sys/arch/amiga/dev/if_es.c
152
sc->sc_dev = self;
sys/arch/amiga/dev/if_le.c
314
le_zbus_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/if_le.c
316
struct le_softc *lesc = device_private(self);
sys/arch/amiga/dev/if_le.c
321
sc->sc_dev = self;
sys/arch/amiga/dev/if_ne_xsh.c
108
dsc->sc_dev = self;
sys/arch/amiga/dev/if_ne_xsh.c
119
aprint_error_dev(self, "can't map nic i/o space\n");
sys/arch/amiga/dev/if_ne_xsh.c
124
aprint_error_dev(self, "can't map asic i/o space\n");
sys/arch/amiga/dev/if_ne_xsh.c
96
ne_xsh_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/if_ne_xsh.c
98
struct ne_xsh_softc *zsc = device_private(self);
sys/arch/amiga/dev/if_ne_xsurf.c
117
ne_xsurf_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/if_ne_xsurf.c
119
struct ne_xsurf_softc *zsc = device_private(self);
sys/arch/amiga/dev/if_ne_xsurf.c
130
dsc->sc_dev = self;
sys/arch/amiga/dev/if_ne_xsurf.c
145
aprint_error_dev(self, "can't map nic i/o space\n");
sys/arch/amiga/dev/if_ne_xsurf.c
151
aprint_error_dev(self, "can't map asic i/o space\n");
sys/arch/amiga/dev/if_ne_zbus.c
104
ne_zbus_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/if_ne_zbus.c
106
struct ne_zbus_softc *zsc = device_private(self);
sys/arch/amiga/dev/if_ne_zbus.c
115
dsc->sc_dev = self;
sys/arch/amiga/dev/if_ne_zbus.c
129
aprint_error_dev(self, "can't map nic i/o space\n");
sys/arch/amiga/dev/if_ne_zbus.c
135
aprint_error_dev(self, "can't map asic i/o space\n");
sys/arch/amiga/dev/if_qn.c
190
qnattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/if_qn.c
193
struct qn_softc *sc = device_private(self);
sys/arch/amiga/dev/if_qn.c
197
sc->sc_dev = self;
sys/arch/amiga/dev/ioblix_zbus.c
105
iobzattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/ioblix_zbus.c
115
iobzsc = device_private(self);
sys/arch/amiga/dev/ioblix_zbus.c
133
config_found(self, &supa, iobzprint, CFARGS_NONE); /* XXX */
sys/arch/amiga/dev/ite.c
199
iteattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/ite.c
206
if (self) {
sys/arch/amiga/dev/ite.c
207
ip = device_private(self);
sys/arch/amiga/dev/ivsc.c
123
ivscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/ivsc.c
126
struct sci_softc *sc = device_private(self);
sys/arch/amiga/dev/ivsc.c
131
sc->sc_dev = self;
sys/arch/amiga/dev/ivsc.c
168
adapt->adapt_dev = self;
sys/arch/amiga/dev/ivsc.c
189
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/kbd.c
200
kbdattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/kbd.c
213
if (self != NULL) {
sys/arch/amiga/dev/kbd.c
222
kbd_softc.k_wskbddev = config_found(self, &waa, wskbddevprint,
sys/arch/amiga/dev/lpt_supio.c
105
lsc->sc_dev = self;
sys/arch/amiga/dev/lpt_supio.c
112
aprint_error_dev(self, "io mapping failed\n");
sys/arch/amiga/dev/lpt_supio.c
94
lpt_supio_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/lpt_supio.c
96
struct lptsupio_softc *sc = device_private(self);
sys/arch/amiga/dev/melody.c
107
sc->sc_tav.sc_dev = self;
sys/arch/amiga/dev/melody.c
85
melody_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/melody.c
92
sc = device_private(self);
sys/arch/amiga/dev/mfc.c
368
mfcattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/mfc.c
380
scc = device_private(self);
sys/arch/amiga/dev/mfc.c
381
scc->sc_dev = self;
sys/arch/amiga/dev/mfc.c
382
unit = device_unit(self);
sys/arch/amiga/dev/mfc.c
422
config_found(self, &ma, mfcprint, CFARGS_NONE);
sys/arch/amiga/dev/mfc.c
425
config_found(self, &ma, mfcprint, CFARGS_NONE);
sys/arch/amiga/dev/mfc.c
429
config_found(self, &ma, mfcprint, CFARGS_NONE);
sys/arch/amiga/dev/mfc.c
447
mfcsattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/mfc.c
455
sc = device_private(self);
sys/arch/amiga/dev/mfc.c
456
sc->sc_dev = self;
sys/arch/amiga/dev/mgnsc.c
108
mgnscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/mgnsc.c
110
struct siop_softc *sc = device_private(self);
sys/arch/amiga/dev/mgnsc.c
116
sc->sc_dev = self;
sys/arch/amiga/dev/mgnsc.c
137
adapt->adapt_dev = self;
sys/arch/amiga/dev/mgnsc.c
165
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/mlhsc.c
116
mlhscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/mlhsc.c
119
struct sci_softc *sc = device_private(self);
sys/arch/amiga/dev/mlhsc.c
124
sc->sc_dev = self;
sys/arch/amiga/dev/mlhsc.c
154
adapt->adapt_dev = self;
sys/arch/amiga/dev/mlhsc.c
175
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/mntva.c
136
mntva_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/mntva.c
138
struct mntva_softc *sc = device_private(self);
sys/arch/amiga/dev/mntva.c
157
sc->sc_dev = self;
sys/arch/amiga/dev/ms.c
187
msattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/ms.c
192
struct ms_softc *sc = device_private(self);
sys/arch/amiga/dev/ms.c
205
config_found(self, &waa, wsmousedevprint,
sys/arch/amiga/dev/msc.c
256
mscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/msc.c
265
unit = device_unit(self);
sys/arch/amiga/dev/otgsc.c
118
otgscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/otgsc.c
121
struct sci_softc *sc = device_private(self);
sys/arch/amiga/dev/otgsc.c
126
sc->sc_dev = self;
sys/arch/amiga/dev/otgsc.c
161
adapt->adapt_dev = self;
sys/arch/amiga/dev/otgsc.c
182
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/p5bus.c
100
sc->sc_dev = self;
sys/arch/amiga/dev/p5bus.c
160
config_defer(self, p5bus_callback);
sys/arch/amiga/dev/p5bus.c
166
p5bus_callback(device_t self) {
sys/arch/amiga/dev/p5bus.c
171
sc = device_private(self);
sys/arch/amiga/dev/p5bus.c
55
static void p5bus_callback(device_t self);
sys/arch/amiga/dev/p5bus.c
91
p5bus_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/p5bus.c
99
sc = device_private(self);
sys/arch/amiga/dev/par.c
145
parattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/par.c
147
par_softcp = device_private(self);
sys/arch/amiga/dev/par.c
149
par_softcp->sc_dev = self;
sys/arch/amiga/dev/repulse.c
232
repulse_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/repulse.c
241
sc = device_private(self);
sys/arch/amiga/dev/repulse.c
242
sc->sc_dev = self;
sys/arch/amiga/dev/repulse.c
304
if (ac97_attach(&sc->sc_achost, self, &sc->sc_lock)) {
sys/arch/amiga/dev/repulse.c
305
printf("%s: error attaching codec\n", device_xname(self));
sys/arch/amiga/dev/repulse.c
323
device_xname(self));
sys/arch/amiga/dev/repulse.c
332
audio_attach_mi(&rep_hw_if, sc, self);
sys/arch/amiga/dev/repulse.c
337
printf("\n%s: firmware not successfully loaded\n", device_xname(self));
sys/arch/amiga/dev/ser.c
228
serattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/ser.c
234
sc = device_private(self);
sys/arch/amiga/dev/ser.c
276
if (self)
sys/arch/amiga/dev/slhci_zbus.c
101
sc->sc_dev = self;
sys/arch/amiga/dev/slhci_zbus.c
90
slhci_zbus_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/slhci_zbus.c
99
zsc = device_private(self);
sys/arch/amiga/dev/toccata.c
247
toccata_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/toccata.c
254
sc = device_private(self);
sys/arch/amiga/dev/toccata.c
256
asc->sc_dev = self;
sys/arch/amiga/dev/toccata.c
286
audio_attach_mi(&audiocs_hw_if, sc, self);
sys/arch/amiga/dev/wdc_acafh.c
106
wdc_acafh_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/wdc_acafh.c
108
struct wdc_acafh_softc *sc = device_private(self);
sys/arch/amiga/dev/wdc_acafh.c
120
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/amiga/dev/wdc_acafh.c
146
device_t self;
sys/arch/amiga/dev/wdc_acafh.c
148
self = sc->sc_wdcdev.sc_atac.atac_dev;
sys/arch/amiga/dev/wdc_acafh.c
162
aprint_normal_dev(self, "done init for channel %d\n", chnum);
sys/arch/amiga/dev/wdc_acafh.c
171
device_t self;
sys/arch/amiga/dev/wdc_acafh.c
174
self = sc->sc_wdcdev.sc_atac.atac_dev;
sys/arch/amiga/dev/wdc_acafh.c
186
aprint_error_dev(self, "couldn't map regs\n");
sys/arch/amiga/dev/wdc_acafh.c
197
aprint_error_dev(self, "couldn't map regs\n");
sys/arch/amiga/dev/wdc_amiga.c
109
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/amiga/dev/wdc_amiga.c
120
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/amiga/dev/wdc_amiga.c
82
wdc_amiga_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/wdc_amiga.c
84
struct wdc_amiga_softc *sc = device_private(self);
sys/arch/amiga/dev/wdc_amiga.c
90
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/amiga/dev/wdc_buddha.c
148
aprint_error_dev(self, "couldn't map cmd registers\n");
sys/arch/amiga/dev/wdc_buddha.c
156
aprint_error_dev(self, "couldn't map ctl registers\n");
sys/arch/amiga/dev/wdc_buddha.c
163
aprint_error_dev(self,
sys/arch/amiga/dev/wdc_buddha.c
86
wdc_buddha_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/wdc_buddha.c
93
sc = device_private(self);
sys/arch/amiga/dev/wdc_buddha.c
94
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/amiga/dev/wdc_xsurf.c
113
wdc_xsurf_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/wdc_xsurf.c
122
sc = device_private(self);
sys/arch/amiga/dev/wdc_xsurf.c
130
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/amiga/dev/wdc_xsurf.c
158
device_t self;
sys/arch/amiga/dev/wdc_xsurf.c
160
self = sc->sc_wdcdev.sc_atac.atac_dev;
sys/arch/amiga/dev/wdc_xsurf.c
174
aprint_normal_dev(self, "done init for channel %d\n", chnum);
sys/arch/amiga/dev/wesc.c
108
wescattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/wesc.c
110
struct siop_softc *sc = device_private(self);
sys/arch/amiga/dev/wesc.c
116
sc->sc_dev = self;
sys/arch/amiga/dev/wesc.c
135
adapt->adapt_dev = self;
sys/arch/amiga/dev/wesc.c
163
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/wstsc.c
125
wstscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/wstsc.c
128
struct sci_softc *sc = device_private(self);
sys/arch/amiga/dev/wstsc.c
133
sc->sc_dev = self;
sys/arch/amiga/dev/wstsc.c
179
adapt->adapt_dev = self;
sys/arch/amiga/dev/wstsc.c
200
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/xsh.c
77
xsh_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/xsh.c
84
sc = device_private(self);
sys/arch/amiga/dev/xsh.c
85
sc->sc_dev = self;
sys/arch/amiga/dev/xsurf.c
112
xsurf_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/xsurf.c
122
sc = device_private(self);
sys/arch/amiga/dev/xsurf.c
123
sc->sc_dev = self;
sys/arch/amiga/dev/z3rambd.c
116
config_found(self, &aaa, z3rambd_altmem_print, CFARGS_NONE);
sys/arch/amiga/dev/z3rambd.c
81
z3rambd_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/z3rambd.c
87
sc = device_private(self);
sys/arch/amiga/dev/z3rambd.c
88
sc->sc_dev = self;
sys/arch/amiga/dev/zbus.c
314
zbusattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/zbus.c
378
amiga_config_found(early_cfdata, self, &za, zbusprint,
sys/arch/amiga/dev/zssc.c
104
zsscattach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/zssc.c
106
struct siop_softc *sc = device_private(self);
sys/arch/amiga/dev/zssc.c
112
sc->sc_dev = self;
sys/arch/amiga/dev/zssc.c
127
sc->sc_adapter.adapt_dev = self;
sys/arch/amiga/dev/zssc.c
152
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/amiga/dev/zz9k.c
107
sc->sc_dev = self;
sys/arch/amiga/dev/zz9k.c
62
static void zz9k_attach(device_t parent, device_t self, void *aux);
sys/arch/amiga/dev/zz9k.c
95
zz9k_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/zz9k.c
98
struct zz9k_softc *sc = device_private(self);
sys/arch/amiga/dev/zz9k_ax.c
179
static void zzax_attach(device_t parent, device_t self, void *aux);
sys/arch/amiga/dev/zz9k_ax.c
198
zzax_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/zz9k_ax.c
201
struct zzax_softc *sc = device_private(self);
sys/arch/amiga/dev/zz9k_ax.c
204
sc->sc_dev = self;
sys/arch/amiga/dev/zz9k_ax.c
241
audio_attach_mi(&zzax_hw_if, sc, self);
sys/arch/amiga/dev/zz9k_fb.c
229
static void zzfb_attach(device_t parent, device_t self, void *aux);
sys/arch/amiga/dev/zz9k_fb.c
253
zzfb_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/zz9k_fb.c
256
struct zzfb_softc *sc = device_private(self);
sys/arch/amiga/dev/zz9k_fb.c
262
sc->sc_dev = self;
sys/arch/amiga/dev/zz9k_if.c
104
static void zzif_attach(device_t parent, device_t self, void *aux);
sys/arch/amiga/dev/zz9k_if.c
123
zzif_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/zz9k_if.c
126
struct zzif_softc *sc = device_private(self);
sys/arch/amiga/dev/zz9k_if.c
131
sc->sc_dev = self;
sys/arch/amiga/dev/zz9k_usb.c
65
static void zzusb_attach(device_t parent, device_t self, void *aux);
sys/arch/amiga/dev/zz9k_usb.c
84
zzusb_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/dev/zz9k_usb.c
87
struct zzusb_softc *sc = device_private(self);
sys/arch/amiga/dev/zz9k_usb.c
90
sc->sc_dev = self;
sys/arch/amiga/pci/cv3dpb.c
100
sc->sc_dev = self;
sys/arch/amiga/pci/cv3dpb.c
106
aprint_error_dev(self,
sys/arch/amiga/pci/cv3dpb.c
143
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/amiga/pci/cv3dpb.c
92
cv3dpb_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/pci/cv3dpb.c
98
sc = device_private(self);
sys/arch/amiga/pci/em4k.c
105
em4k_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/pci/em4k.c
113
sc = device_private(self);
sys/arch/amiga/pci/em4k.c
114
sc->sc_dev = self;
sys/arch/amiga/pci/em4k.c
146
config_defer(self, em4k_callback);
sys/arch/amiga/pci/em4k.c
150
em4k_callback(device_t self) {
sys/arch/amiga/pci/em4k.c
156
sc = device_private(self);
sys/arch/amiga/pci/em4k.c
171
aprint_error_dev(self, "couldn't map PCI config space\n");
sys/arch/amiga/pci/em4k.c
175
aprint_error_dev(self, "couldn't map PCI I/O space\n");
sys/arch/amiga/pci/em4k.c
184
aprint_error_dev(self,
sys/arch/amiga/pci/em4k.c
189
aprint_error_dev(self,
sys/arch/amiga/pci/em4k.c
237
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/amiga/pci/em4k.c
357
em4k_pci_attach_hook(device_t parent, device_t self,
sys/arch/amiga/pci/emmem.c
84
emmem_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/pci/emmem.c
89
sc = device_private(self);
sys/arch/amiga/pci/emmem.c
92
sc->sc_dev = self;
sys/arch/amiga/pci/empb.c
118
empb_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/pci/empb.c
126
sc = device_private(self);
sys/arch/amiga/pci/empb.c
127
sc->sc_dev = self;
sys/arch/amiga/pci/empb.c
165
config_defer(self, empb_callback);
sys/arch/amiga/pci/empb.c
169
empb_callback(device_t self) {
sys/arch/amiga/pci/empb.c
175
sc = device_private(self);
sys/arch/amiga/pci/empb.c
193
aprint_error_dev(self,
sys/arch/amiga/pci/empb.c
203
aprint_error_dev(self,
sys/arch/amiga/pci/empb.c
208
aprint_error_dev(self,
sys/arch/amiga/pci/empb.c
270
config_found(self, &pba, pcibusprint,
sys/arch/amiga/pci/empb.c
457
empb_pci_attach_hook(device_t parent, device_t self,
sys/arch/amiga/pci/empm.c
58
empm_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/pci/empm.c
63
sc = device_private(self);
sys/arch/amiga/pci/empm.c
66
sc->sc_dev = self;
sys/arch/amiga/pci/empm.c
74
aprint_error_dev(self, "couldn't map power manager register\n");
sys/arch/amiga/pci/mppb.c
107
mppb_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/pci/mppb.c
115
sc = device_private(self);
sys/arch/amiga/pci/mppb.c
117
sc->sc_dev = self;
sys/arch/amiga/pci/mppb.c
143
aprint_error_dev(self,
sys/arch/amiga/pci/mppb.c
188
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/amiga/pci/mppb.c
239
mppb_pci_attach_hook(device_t parent, device_t self,
sys/arch/amiga/pci/p5membar.c
82
p5membar_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/pci/p5membar.c
87
sc = device_private(self);
sys/arch/amiga/pci/p5membar.c
90
sc->sc_dev = self;
sys/arch/amiga/pci/p5pb.c
137
p5pb_attach(device_t parent, device_t self, void *aux)
sys/arch/amiga/pci/p5pb.c
142
sc = device_private(self);
sys/arch/amiga/pci/p5pb.c
143
sc->sc_dev = self;
sys/arch/amiga/pci/p5pb.c
149
aprint_error_dev(self,
sys/arch/amiga/pci/p5pb.c
166
aprint_error_dev(self,
sys/arch/amiga/pci/p5pb.c
221
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/amiga/pci/p5pb.c
432
p5pb_pci_attach_hook(device_t parent, device_t self,
sys/arch/amigappc/amigappc/cpu.c
64
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/amigappc/amigappc/cpu.c
68
(void)cpu_attach_common(self, 0);
sys/arch/amigappc/amigappc/mainbus.c
104
config_found(self, __UNCONST("cpu"), mbprint, CFARGS_NONE);
sys/arch/amigappc/amigappc/mainbus.c
110
config_found(self, __UNCONST("a34kbbc"), simple_devprint,
sys/arch/amigappc/amigappc/mainbus.c
113
config_found(self, __UNCONST("a2kbbc"), simple_devprint,
sys/arch/amigappc/amigappc/mainbus.c
115
config_found(self, __UNCONST("ser"), simple_devprint, CFARGS_NONE);
sys/arch/amigappc/amigappc/mainbus.c
116
config_found(self, __UNCONST("par"), simple_devprint, CFARGS_NONE);
sys/arch/amigappc/amigappc/mainbus.c
117
config_found(self, __UNCONST("kbd"), simple_devprint, CFARGS_NONE);
sys/arch/amigappc/amigappc/mainbus.c
118
config_found(self, __UNCONST("ms"), simple_devprint, CFARGS_NONE);
sys/arch/amigappc/amigappc/mainbus.c
119
config_found(self, __UNCONST("grfcc"), simple_devprint, CFARGS_NONE);
sys/arch/amigappc/amigappc/mainbus.c
120
config_found(self, __UNCONST("amidisplaycc"), simple_devprint,
sys/arch/amigappc/amigappc/mainbus.c
122
config_found(self, __UNCONST("fdc"), simple_devprint, CFARGS_NONE);
sys/arch/amigappc/amigappc/mainbus.c
124
config_found(self, __UNCONST("wdc"), simple_devprint,
sys/arch/amigappc/amigappc/mainbus.c
127
config_found(self, __UNCONST("afsc"), simple_devprint,
sys/arch/amigappc/amigappc/mainbus.c
130
config_found(self, __UNCONST("ahsc"), simple_devprint,
sys/arch/amigappc/amigappc/mainbus.c
133
config_found(self, __UNCONST("pccard"), simple_devprint,
sys/arch/amigappc/amigappc/mainbus.c
135
config_found(self, __UNCONST("aucc"), simple_devprint, CFARGS_NONE);
sys/arch/amigappc/amigappc/mainbus.c
137
config_found(self, __UNCONST("zbus"), simple_devprint, CFARGS_NONE);
sys/arch/amigappc/amigappc/mainbus.c
96
mbattach(device_t parent, device_t self, void *aux)
sys/arch/arc/arc/cpu.c
72
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/arc/arc/cpu.c
76
ci->ci_dev = self;
sys/arch/arc/arc/cpu.c
77
device_set_private(self, ci);
sys/arch/arc/arc/cpu.c
81
cpu_identify(self);
sys/arch/arc/arc/mainbus.c
64
mbattach(device_t parent, device_t self, void *aux)
sys/arch/arc/arc/mainbus.c
81
config_found(self, &nca, mbprint, CFARGS_NONE);
sys/arch/arc/arc/mainbus.c
87
config_found(self, &nca, mbprint, CFARGS_NONE);
sys/arch/arc/dti/arcsisabr.c
114
arcsisabrattach(device_t parent, device_t self, void *aux)
sys/arch/arc/dti/arcsisabr.c
116
struct isabr_softc *sc = device_private(self);
sys/arch/arc/dti/arcsisabr.c
118
sc->sc_dev = self;
sys/arch/arc/dti/btl.c
341
btattach(device_t parent, device_t self, void *aux)
sys/arch/arc/dti/btl.c
344
struct bt_softc *sc = device_private(self);
sys/arch/arc/dti/btl.c
351
sc->sc_dev = self;
sys/arch/arc/dti/btl.c
354
panic("btattach: bt_find of %s failed", device_xname(self));
sys/arch/arc/dti/btl.c
413
config_found(self, &sc->sc_link, scsiprint, CFARGS_NONE);
sys/arch/arc/dti/tyneisabr.c
114
tyneisabrattach(device_t parent, device_t self, void *aux)
sys/arch/arc/dti/tyneisabr.c
116
struct isabr_softc *sc = device_private(self);
sys/arch/arc/dti/tyneisabr.c
118
sc->sc_dev = self;
sys/arch/arc/isa/isabus.c
317
isabr_attach_hook(device_t parent, device_t self,
sys/arch/arc/isa/isabus.c
325
isabr_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/arc/isa/isadma.c
78
isadmaattach(device_t parent, device_t self, void *aux)
sys/arch/arc/isa/isadma.c
80
struct isadma_softc *sc = device_private(self);
sys/arch/arc/isa/isadma.c
85
sc->sc_dev = self;
sys/arch/arc/isa/mcclock_isa.c
117
mcclock_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/isa/mcclock_isa.c
119
struct mc146818_softc *sc = device_private(self);
sys/arch/arc/isa/mcclock_isa.c
122
sc->sc_dev = self;
sys/arch/arc/isa/opms_isa.c
100
opms_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/isa/opms_isa.c
102
struct opms_softc *sc = device_private(self);
sys/arch/arc/isa/opms_isa.c
105
sc->sc_dev = self;
sys/arch/arc/isa/pccons_isa.c
115
pccons_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/isa/pccons_isa.c
117
struct pc_softc *sc = device_private(self);
sys/arch/arc/isa/pccons_isa.c
120
sc->sc_dev = self;
sys/arch/arc/isa/timer_isa.c
131
timer_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/isa/timer_isa.c
133
struct timer_isa_softc *sc = device_private(self);
sys/arch/arc/isa/timer_isa.c
137
sc->sc_dev = self;
sys/arch/arc/isa/timer_isa.c
150
aprint_error_dev(self, "can't establish interrupt\n");
sys/arch/arc/isa/timer_isa.c
152
timerattach(self, &timerfns_isa);
sys/arch/arc/isa/timer_isa.c
156
timer_isa_init(device_t self)
sys/arch/arc/isa/timer_isa.c
158
struct timer_isa_softc *sc = device_private(self);
sys/arch/arc/jazz/asc.c
123
asc_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/asc.c
125
struct asc_softc *asc = device_private(self);
sys/arch/arc/jazz/asc.c
137
sc->sc_dev = self;
sys/arch/arc/jazz/com_jazzio.c
121
com_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/com_jazzio.c
124
struct com_softc *sc = device_private(self);
sys/arch/arc/jazz/com_jazzio.c
129
sc->sc_dev = self;
sys/arch/arc/jazz/fd.c
334
fdattach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/fd.c
337
struct fd_softc *fd = device_private(self);
sys/arch/arc/jazz/fd.c
342
fd->sc_dev = self;
sys/arch/arc/jazz/fd.c
371
if (!pmf_device_register1(self, NULL, NULL, fd_shutdown))
sys/arch/arc/jazz/fd.c
372
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/arc/jazz/fd.c
376
fd_shutdown(device_t self, int howto)
sys/arch/arc/jazz/fd.c
380
fd = device_private(self);
sys/arch/arc/jazz/fdc_jazzio.c
153
fdc_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/fdc_jazzio.c
155
struct fdc_jazzio_softc *jsc = device_private(self);
sys/arch/arc/jazz/fdc_jazzio.c
159
fdc->sc_dev = self;
sys/arch/arc/jazz/if_sn_jazzio.c
84
sonic_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/if_sn_jazzio.c
86
struct sonic_softc *sc = device_private(self);
sys/arch/arc/jazz/if_sn_jazzio.c
91
sc->sc_dev = self;
sys/arch/arc/jazz/jazzio.c
106
jazzioattach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/jazzio.c
108
struct jazzio_softc *sc = device_private(self);
sys/arch/arc/jazz/jazzio.c
112
sc->sc_dev = self;
sys/arch/arc/jazz/jazzio.c
152
config_found(self, &ja, jazzioprint, CFARGS_NONE);
sys/arch/arc/jazz/jazzisabr.c
114
jazzisabrattach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/jazzisabr.c
116
struct isabr_softc *sc = device_private(self);
sys/arch/arc/jazz/jazzisabr.c
118
sc->sc_dev = self;
sys/arch/arc/jazz/lpt_jazzio.c
169
lpt_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/lpt_jazzio.c
171
struct lpt_softc *sc = device_private(self);
sys/arch/arc/jazz/lpt_jazzio.c
178
sc->sc_dev = self;
sys/arch/arc/jazz/lpt_jazzio.c
182
aprint_error_dev(self, "can't map i/o space\n");
sys/arch/arc/jazz/mcclock_jazzio.c
86
mcclock_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/mcclock_jazzio.c
88
struct mc146818_softc *sc = device_private(self);
sys/arch/arc/jazz/mcclock_jazzio.c
94
sc->sc_dev = self;
sys/arch/arc/jazz/oosiop_jazzio.c
73
oosiop_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/oosiop_jazzio.c
75
struct oosiop_softc *sc = device_private(self);
sys/arch/arc/jazz/oosiop_jazzio.c
79
sc->sc_dev = self;
sys/arch/arc/jazz/opms_jazzio.c
67
opms_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/opms_jazzio.c
69
struct opms_softc *sc = device_private(self);
sys/arch/arc/jazz/opms_jazzio.c
72
sc->sc_dev = self;
sys/arch/arc/jazz/osiop_jazzio.c
67
osiop_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/osiop_jazzio.c
69
struct osiop_softc *sc = device_private(self);
sys/arch/arc/jazz/osiop_jazzio.c
73
sc->sc_dev = self;
sys/arch/arc/jazz/pccons_jazzio.c
149
pccons_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/pccons_jazzio.c
151
struct pc_softc *sc = device_private(self);
sys/arch/arc/jazz/pckbc_jazzio.c
115
pckbc_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/pckbc_jazzio.c
118
struct pckbc_jazzio_softc *jsc = device_private(self);
sys/arch/arc/jazz/pckbc_jazzio.c
125
sc->sc_dv = self;
sys/arch/arc/jazz/timer_jazzio.c
135
timer_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/timer_jazzio.c
147
timerattach(self, &timerfns_jazzio);
sys/arch/arc/jazz/vga_jazzio.c
153
vga_jazzio_attach(device_t parent, device_t self, void *aux)
sys/arch/arc/jazz/vga_jazzio.c
155
struct vga_softc *sc = device_private(self);
sys/arch/arc/jazz/vga_jazzio.c
161
sc->sc_dev = self;
sys/arch/arc/pci/necpb.c
242
necpbattach(device_t parent, device_t self, void *aux)
sys/arch/arc/pci/necpb.c
244
struct necpb_softc *sc = device_private(self);
sys/arch/arc/pci/necpb.c
249
sc->sc_dev = self;
sys/arch/arc/pci/necpb.c
285
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/arc/pci/necpb.c
289
necpb_attach_hook(device_t parent, device_t self,
sys/arch/arm/acpi/acpi_cpu_md.c
70
acpicpu_md_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/acpi/acpi_pci_machdep.c
207
acpi_pci_md_attach_hook(device_t parent, device_t self,
sys/arch/arm/acpi/acpi_pci_machdep.c
261
acpimcfg_map_bus(self, pba->pba_pc, pba->pba_bus);
sys/arch/arm/acpi/acpi_platform.c
325
acpi_platform_device_register(device_t self, void *aux)
sys/arch/arm/acpi/acpi_platform.c
330
if (device_is_a(self, "com")) {
sys/arch/arm/acpi/acpi_platform.c
349
if (device_is_a(device_parent(self), "puc")) {
sys/arch/arm/acpi/acpi_platform.c
358
device_setprop_bool(self,
sys/arch/arm/acpi/acpi_platform.c
363
if (device_is_a(device_parent(self), "acpi")) {
sys/arch/arm/acpi/acpi_platform.c
368
if (ACPI_FAILURE(acpi_resource_parse(self,
sys/arch/arm/acpi/acpi_platform.c
380
device_setprop_bool(self,
sys/arch/arm/acpi/acpi_platform.c
395
acpi_platform_device_register_post_config(device_t self, void *aux)
sys/arch/arm/acpi/acpi_platform.c
397
if (device_is_a(self, "acpi")) {
sys/arch/arm/acpi/acpipchb.c
120
acpipchb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/acpi/acpipchb.c
122
struct acpipchb_softc * const sc = device_private(self);
sys/arch/arm/acpi/acpipchb.c
130
sc->sc_dev = self;
sys/arch/arm/acpi/acpipchb.c
163
acpi_claim_childdevs(self, aa->aa_node, NULL);
sys/arch/arm/acpi/acpipchb.c
185
config_found(self, &pba, pcibusprint,
sys/arch/arm/acpi/acpipchb.c
186
CFARGS(.devhandle = device_handle(self)));
sys/arch/arm/acpi/cpu_acpi.c
104
cpu_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/acpi/cpu_acpi.c
106
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/acpi/cpu_acpi.c
109
const int unit = device_unit(self);
sys/arch/arm/acpi/cpu_acpi.c
115
const u_int cpuindex = device_unit(self);
sys/arch/arm/acpi/cpu_acpi.c
125
aprint_error_dev(self, "failed to start CPU\n");
sys/arch/arm/acpi/cpu_acpi.c
155
cpu_attach(self, mpidr);
sys/arch/arm/acpi/cpu_acpi.c
163
cpu_acpi_probe_lpi(self, ci);
sys/arch/arm/acpi/cpu_acpi.c
167
config_interrupts(self, cpu_acpi_tprof_init);
sys/arch/arm/acpi/cpu_acpi.c
422
cpu_acpi_tprof_init(device_t self)
sys/arch/arm/acpi/cpu_acpi.c
426
aprint_error_dev(self,
sys/arch/arm/acpi/cpu_acpi.c
432
aprint_error_dev(self,
sys/arch/arm/acpi/cpu_acpi.c
436
acpi_madt_walk(cpu_acpi_tprof_intr_establish, self);
sys/arch/arm/acpi/gic_acpi.c
126
armgic = config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/acpi/gic_acpi.c
91
gic_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/acpi/gicv3_acpi.c
104
gicv3_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/acpi/gicv3_acpi.c
106
struct gicv3_acpi_softc * const sc = device_private(self);
sys/arch/arm/acpi/gicv3_acpi.c
110
sc->sc_gic.sc_dev = self;
sys/arch/arm/acpi/gicv3_acpi.c
120
aprint_error_dev(self, "failed to map distributor: %d\n", error);
sys/arch/arm/acpi/gicv3_acpi.c
126
aprint_error_dev(self, "failed to map redistributor: %d\n", error);
sys/arch/arm/acpi/gicv3_acpi.c
132
aprint_error_dev(self, "failed to initialize GIC: %d\n", error);
sys/arch/arm/acpi/gtmr_acpi.c
68
gtmr_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/acpi/gtmr_acpi.c
82
ih = intr_establish_xname(irq, ipl, type | IST_MPSAFE, gtmr_intr, NULL, device_xname(self));
sys/arch/arm/acpi/gtmr_acpi.c
84
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/acpi/gtmr_acpi.c
91
config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/acpi/gtmr_acpi.c
93
arm_fdt_cpu_hatch_register(self, gtmr_acpi_cpu_hatch);
sys/arch/arm/acpi/plcom_acpi.c
131
ih = acpi_intr_establish(self, (uint64_t)aa->aa_node->ad_handle,
sys/arch/arm/acpi/plcom_acpi.c
132
IPL_SERIAL, true, plcomintr, sc, device_xname(self));
sys/arch/arm/acpi/plcom_acpi.c
134
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/acpi/plcom_acpi.c
78
plcom_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/acpi/plcom_acpi.c
80
struct plcom_softc * const sc = device_private(self);
sys/arch/arm/acpi/plcom_acpi.c
88
sc->sc_dev = self;
sys/arch/arm/acpi/sbsawdt_acpi.c
118
sbsawdt_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/acpi/sbsawdt_acpi.c
120
struct sbsawdt_acpi_softc * const sc = device_private(self);
sys/arch/arm/acpi/sbsawdt_acpi.c
128
sc->sc_dev = self;
sys/arch/arm/acpi/sbsawdt_acpi.c
133
aprint_error_dev(self, "failed to map refresh frame\n");
sys/arch/arm/acpi/sbsawdt_acpi.c
137
aprint_error_dev(self, "failed to map control frame\n");
sys/arch/arm/acpi/sbsawdt_acpi.c
141
sc->sc_smw.smw_name = device_xname(self);
sys/arch/arm/acpi/sbsawdt_acpi.c
147
aprint_normal_dev(self, "default watchdog period is %u seconds\n",
sys/arch/arm/acpi/sbsawdt_acpi.c
151
aprint_error_dev(self, "couldn't register with sysmon\n");
sys/arch/arm/altera/cycv_clkmgr.c
128
cycv_clkmgr_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/altera/cycv_clkmgr.c
130
struct cycv_clkmgr_softc *sc = device_private(self);
sys/arch/arm/altera/cycv_clkmgr.c
142
sc->sc_dev = self;
sys/arch/arm/altera/cycv_dwcmmc.c
123
sc->sc_dev = self;
sys/arch/arm/altera/cycv_dwcmmc.c
153
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/altera/cycv_dwcmmc.c
163
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/altera/cycv_dwcmmc.c
167
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/altera/cycv_dwcmmc.c
80
cycv_dwcmmc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/altera/cycv_dwcmmc.c
82
struct cycv_dwcmmc_softc *esc = device_private(self);
sys/arch/arm/altera/cycv_gmac.c
138
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/altera/cycv_gmac.c
142
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/altera/cycv_gmac.c
75
cycv_gmac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/altera/cycv_gmac.c
77
struct dwc_gmac_softc * const sc = device_private(self);
sys/arch/arm/altera/cycv_gmac.c
92
sc->sc_dev = self;
sys/arch/arm/altera/cycv_rstmgr.c
66
cycv_rstmgr_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/altera/cycv_rstmgr.c
68
struct cycv_rstmgr_softc *sc = device_private(self);
sys/arch/arm/altera/cycv_rstmgr.c
80
sc->sc_dev = self;
sys/arch/arm/altera/cycv_rstmgr.c
91
fdtbus_register_reset_controller(self, phandle, &cycv_rstmgr_funcs);
sys/arch/arm/amlogic/gxlphy.c
143
gxlphyattach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/gxlphy.c
145
struct mii_softc *sc = device_private(self);
sys/arch/arm/amlogic/gxlphy.c
162
sc->mii_dev = self;
sys/arch/arm/amlogic/meson6_timer.c
114
meson6_timer_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson6_timer.c
116
struct meson6_timer_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson6_timer.c
127
sc->sc_dev = self;
sys/arch/arm/amlogic/meson8b_clkc.c
333
meson8b_clkc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson8b_clkc.c
335
struct meson_clk_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson8b_clkc.c
338
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_dwmac.c
190
meson_dwmac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_dwmac.c
192
struct dwc_gmac_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_dwmac.c
211
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_dwmac.c
272
aprint_error_dev(self, "failed to establish interrupt on %s\n", intrstr);
sys/arch/arm/amlogic/meson_dwmac.c
275
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/amlogic/meson_dwmac.c
285
aprint_error_dev(self, "reset failed\n");
sys/arch/arm/amlogic/meson_dwmac.c
288
aprint_error_dev(self, "PHY reset failed\n");
sys/arch/arm/amlogic/meson_genfb.c
180
meson_genfb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_genfb.c
182
struct meson_genfb_softc *sc = device_private(self);
sys/arch/arm/amlogic/meson_genfb.c
197
sc->sc_gen.sc_dev = self;
sys/arch/arm/amlogic/meson_genfb.c
219
aprint_normal_dev(self, "disabled\n");
sys/arch/arm/amlogic/meson_genfb.c
223
pmf_device_register1(self, NULL, NULL, meson_genfb_shutdown);
sys/arch/arm/amlogic/meson_genfb.c
230
aprint_normal_dev(self, "switching to framebuffer console\n");
sys/arch/arm/amlogic/meson_genfb.c
232
device_setprop_bool(self, "is_console", is_console);
sys/arch/arm/amlogic/meson_genfb.c
283
meson_genfb_shutdown(device_t self, int flags)
sys/arch/arm/amlogic/meson_genfb.c
285
genfb_enable_polling(self);
sys/arch/arm/amlogic/meson_i2c.c
141
static void mesoni2c_attach(device_t parent, device_t self, void *aux);
sys/arch/arm/amlogic/meson_i2c.c
442
mesoni2c_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_i2c.c
444
struct mesoni2c_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_i2c.c
452
aprint_error_dev(self, "couldn't get registers\n");
sys/arch/arm/amlogic/meson_i2c.c
459
aprint_error_dev(self, "couldn't enable clock\n");
sys/arch/arm/amlogic/meson_i2c.c
463
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_i2c.c
467
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/arm/amlogic/meson_i2c.c
503
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/amlogic/meson_i2c.c
508
mesoni2c_intr, sc, device_xname(self));
sys/arch/arm/amlogic/meson_i2c.c
511
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/arch/arm/amlogic/meson_i2c.c
515
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/amlogic/meson_i2c.c
521
iicbus_attach(self, &sc->sc_ic);
sys/arch/arm/amlogic/meson_pinctrl.c
581
meson_pinctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_pinctrl.c
583
struct meson_pinctrl_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_pinctrl.c
586
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_platform.c
183
meson_platform_device_register(device_t self, void *aux)
sys/arch/arm/amlogic/meson_platform.c
185
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/amlogic/meson_platform.c
187
if (device_is_a(self, "awge") && device_unit(self) == 0) {
sys/arch/arm/amlogic/meson_platform.c
191
device_setprop_data(self, "mac-address",
sys/arch/arm/amlogic/meson_platform.c
196
if (device_is_a(self, "mesonfb")) {
sys/arch/arm/amlogic/meson_platform.c
232
meson8b_platform_device_register(device_t self, void *aux)
sys/arch/arm/amlogic/meson_platform.c
234
device_t parent = device_parent(self);
sys/arch/arm/amlogic/meson_platform.c
237
if (device_is_a(self, "ld") &&
sys/arch/arm/amlogic/meson_platform.c
247
snprintf(rootarg, sizeof(rootarg), " root=%sa", device_xname(self));
sys/arch/arm/amlogic/meson_platform.c
257
meson_platform_device_register(self, aux);
sys/arch/arm/amlogic/meson_pwm.c
334
meson_pwm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_pwm.c
336
struct meson_pwm_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_pwm.c
343
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_pwm.c
382
sc->sc_pwmchan[i].mpc_pwm.pwm_dev = self;
sys/arch/arm/amlogic/meson_pwm.c
387
fdtbus_register_pwm_controller(self, phandle, &meson_pwm_funcs);
sys/arch/arm/amlogic/meson_resets.c
125
meson_resets_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_resets.c
127
struct meson_resets_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_resets.c
138
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_rng.c
104
rnd_attach_source(&sc->sc_rndsource, device_xname(self), RND_TYPE_RNG,
sys/arch/arm/amlogic/meson_rng.c
72
meson_rng_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_rng.c
74
struct meson_rng_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_rng.c
86
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_rtc.c
119
meson_rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_rtc.c
121
struct meson_rtc_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_rtc.c
132
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_rtc.c
142
sc->sc_todr.todr_dev = self;
sys/arch/arm/amlogic/meson_sdhc.c
173
meson_sdhc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_sdhc.c
175
struct meson_sdhc_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_sdhc.c
212
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_sdhc.c
255
meson_sdhc_intr, sc, device_xname(self));
sys/arch/arm/amlogic/meson_sdhc.c
257
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/amlogic/meson_sdhc.c
261
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/amlogic/meson_sdhc.c
265
aprint_normal_dev(self, "core %u Hz, clkin %u Hz\n", clk_get_rate(clk_core), clk_get_rate(clk_clkin));
sys/arch/arm/amlogic/meson_sdhc.c
269
config_interrupts(self, meson_sdhc_attach_i);
sys/arch/arm/amlogic/meson_sdhc.c
273
meson_sdhc_attach_i(device_t self)
sys/arch/arm/amlogic/meson_sdhc.c
275
struct meson_sdhc_softc *sc = device_private(self);
sys/arch/arm/amlogic/meson_sdhc.c
304
sc->sc_sdmmc_dev = config_found(self, &saa, NULL, CFARGS_NONE);
sys/arch/arm/amlogic/meson_sdio.c
152
meson_sdio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_sdio.c
154
struct meson_sdio_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_sdio.c
185
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_sdio.c
228
meson_sdio_intr, sc, device_xname(self));
sys/arch/arm/amlogic/meson_sdio.c
230
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/amlogic/meson_sdio.c
234
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/amlogic/meson_sdio.c
238
aprint_normal_dev(self, "core %u Hz, clkin %u Hz\n", clk_get_rate(clk_core), clk_get_rate(clk_clkin));
sys/arch/arm/amlogic/meson_sdio.c
242
config_interrupts(self, meson_sdio_attach_i);
sys/arch/arm/amlogic/meson_sdio.c
246
meson_sdio_attach_i(device_t self)
sys/arch/arm/amlogic/meson_sdio.c
248
struct meson_sdio_softc *sc = device_private(self);
sys/arch/arm/amlogic/meson_sdio.c
268
sc->sc_sdmmc_dev = config_found(self, &saa, NULL, CFARGS_NONE);
sys/arch/arm/amlogic/meson_thermal.c
179
meson_thermal_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_thermal.c
181
struct meson_thermal_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_thermal.c
187
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_thermal.c
222
sc->sc_sme->sme_name = device_xname(self);
sys/arch/arm/amlogic/meson_uart.c
161
meson_uart_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_uart.c
163
struct meson_uart_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_uart.c
178
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_uart.c
194
FDT_INTR_MPSAFE, meson_uart_intr, sc, device_xname(self));
sys/arch/arm/amlogic/meson_uart.c
220
minor = device_unit(self);
sys/arch/arm/amlogic/meson_uart.c
236
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/amlogic/meson_usbctrl.c
292
meson_usbctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_usbctrl.c
294
struct meson_usbctrl_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_usbctrl.c
300
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_usbphy.c
194
meson_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_usbphy.c
196
struct meson_usbphy_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_usbphy.c
205
sc->sc_dev = self;
sys/arch/arm/amlogic/meson_usbphy.c
237
fdtbus_register_phy_controller(self, phandle, &meson_usbphy_funcs);
sys/arch/arm/amlogic/meson_wdt.c
124
meson_wdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/meson_wdt.c
126
struct meson_wdt_softc * const sc = device_private(self);
sys/arch/arm/amlogic/meson_wdt.c
138
sc->sc_dev = self;
sys/arch/arm/amlogic/mesong12_aoclkc.c
111
mesong12_aoclkc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesong12_aoclkc.c
113
struct meson_clk_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesong12_aoclkc.c
116
sc->sc_dev = self;
sys/arch/arm/amlogic/mesong12_clkc.c
1510
mesong12_clkc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesong12_clkc.c
1512
struct meson_clk_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesong12_clkc.c
1517
sc->sc_dev = self;
sys/arch/arm/amlogic/mesong12_usb2phy.c
294
mesong12_usb2phy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesong12_usb2phy.c
296
struct mesong12_usb2phy_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesong12_usb2phy.c
302
sc->sc_dev = self;
sys/arch/arm/amlogic/mesong12_usb2phy.c
331
fdtbus_register_phy_controller(self, phandle, &mesong12_usb2phy_funcs);
sys/arch/arm/amlogic/mesong12_usb3pciephy.c
306
mesong12_usb3pciephy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesong12_usb3pciephy.c
308
struct mesong12_usb3pciephy_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesong12_usb3pciephy.c
314
sc->sc_dev = self;
sys/arch/arm/amlogic/mesong12_usb3pciephy.c
345
fdtbus_register_phy_controller(self, phandle,
sys/arch/arm/amlogic/mesongx_mmc.c
286
mesongx_mmc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesongx_mmc.c
288
struct mesongx_mmc_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesongx_mmc.c
335
sc->sc_dev = self;
sys/arch/arm/amlogic/mesongx_mmc.c
369
aprint_error_dev(self, "failed to setup DMA\n");
sys/arch/arm/amlogic/mesongx_mmc.c
374
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/amlogic/mesongx_mmc.c
379
FDT_INTR_MPSAFE, mesongx_mmc_intr, sc, device_xname(self));
sys/arch/arm/amlogic/mesongx_mmc.c
381
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/amlogic/mesongx_mmc.c
385
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/amlogic/mesongx_mmc.c
390
config_interrupts(self, mesongx_mmc_attach_i);
sys/arch/arm/amlogic/mesongx_mmc.c
535
mesongx_mmc_attach_i(device_t self)
sys/arch/arm/amlogic/mesongx_mmc.c
537
struct mesongx_mmc_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesongx_mmc.c
597
sc->sc_sdmmc_dev = config_found(self, &saa, NULL, CFARGS_NONE);
sys/arch/arm/amlogic/mesongx_wdt.c
128
mesongx_wdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesongx_wdt.c
130
struct mesongx_wdt_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesongx_wdt.c
142
sc->sc_dev = self;
sys/arch/arm/amlogic/mesongx_wdt.c
156
aprint_error_dev(self, "WARNING: couldn't get xtal clock, assuming 24 MHz\n");
sys/arch/arm/amlogic/mesongxbb_aoclkc.c
86
mesongxbb_aoclkc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesongxbb_aoclkc.c
88
struct meson_clk_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesongxbb_aoclkc.c
91
sc->sc_dev = self;
sys/arch/arm/amlogic/mesongxbb_clkc.c
235
mesongxbb_clkc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesongxbb_clkc.c
237
struct meson_clk_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesongxbb_clkc.c
242
sc->sc_dev = self;
sys/arch/arm/amlogic/mesongxl_usb2phy.c
146
mesongxl_usb2phy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesongxl_usb2phy.c
148
struct mesongxl_usb2phy_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesongxl_usb2phy.c
154
sc->sc_dev = self;
sys/arch/arm/amlogic/mesongxl_usb2phy.c
190
fdtbus_register_phy_controller(self, phandle, &mesongxl_usb2phy_funcs);
sys/arch/arm/amlogic/mesongxl_usb3phy.c
155
mesongxl_usb3phy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/amlogic/mesongxl_usb3phy.c
157
struct mesongxl_usb3phy_softc * const sc = device_private(self);
sys/arch/arm/amlogic/mesongxl_usb3phy.c
166
sc->sc_dev = self;
sys/arch/arm/amlogic/mesongxl_usb3phy.c
222
fdtbus_register_phy_controller(self, phandle, &mesongxl_usb3phy_funcs);
sys/arch/arm/apple/apple_dart.c
535
apple_dart_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_dart.c
537
struct apple_dart_softc * const sc = device_private(self);
sys/arch/arm/apple/apple_dart.c
557
sc->sc_dev = self;
sys/arch/arm/apple/apple_dart.c
601
sc->sc_dvamap = vmem_create(device_xname(self),
sys/arch/arm/apple/apple_dart.c
605
aprint_error_dev(self, "couldn't allocate DVA map\n");
sys/arch/arm/apple/apple_dart.c
639
aprint_error_dev(self, "couldn't allocate L1 tables\n");
sys/arch/arm/apple/apple_dart.c
650
aprint_error_dev(self,
sys/arch/arm/apple/apple_dart.c
686
apple_dart_intr, sc, device_xname(self));
sys/arch/arm/apple/apple_dart.c
688
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/apple/apple_dart.c
692
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/apple/apple_dart.c
707
fdtbus_register_iommu(self, phandle, &apple_dart_iommu_funcs);
sys/arch/arm/apple/apple_iic.c
184
apple_iic_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_iic.c
186
struct apple_iic_softc * const sc = device_private(self);
sys/arch/arm/apple/apple_iic.c
193
sc->sc_dev = self;
sys/arch/arm/apple/apple_iic.c
246
iicbus_attach(self, &sc->sc_i2c);
sys/arch/arm/apple/apple_intc.c
448
apple_intc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_intc.c
450
struct apple_intc_softc * const sc = device_private(self);
sys/arch/arm/apple/apple_intc.c
462
sc->sc_dev = self;
sys/arch/arm/apple/apple_intc.c
480
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/apple/apple_intc.c
483
aprint_error_dev(self, "couldn't register with fdtbus: %d\n",
sys/arch/arm/apple/apple_mbox.c
225
apple_mbox_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_mbox.c
227
struct apple_mbox_softc * const sc = device_private(self);
sys/arch/arm/apple/apple_mbox.c
238
sc->sc_dev = self;
sys/arch/arm/apple/apple_mbox.c
260
aprint_error_dev(self,
sys/arch/arm/apple/apple_mbox.c
267
aprint_error_dev(self,
sys/arch/arm/apple/apple_mbox.c
274
device_xname(self));
sys/arch/arm/apple/apple_mbox.c
276
aprint_error_dev(self,
sys/arch/arm/apple/apple_mbox.c
281
aprint_normal_dev(self, "'%s' interrupting on %s\n",
sys/arch/arm/apple/apple_mbox.c
292
int error = fdtbus_register_mbox_controller(self, phandle, &funcs);
sys/arch/arm/apple/apple_mbox.c
294
aprint_error_dev(self, "couldn't register mailbox\n");
sys/arch/arm/apple/apple_nvme.c
282
const device_t self = sc->sc_dev;
sys/arch/arm/apple/apple_nvme.c
294
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/apple/apple_nvme.c
371
apple_nvme_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_nvme.c
373
struct apple_nvme_softc * const asc = device_private(self);
sys/arch/arm/apple/apple_nvme.c
392
sc->sc_dev = self;
sys/arch/arm/apple/apple_pcie.c
308
apple_pcie_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_pcie.c
310
struct apple_pcie_softc * const asc = device_private(self);
sys/arch/arm/apple/apple_pcie.c
328
sc->sc_dev = self;
sys/arch/arm/apple/apple_pcie.c
381
apple_pcie_attach_hook(device_t parent, device_t self,
sys/arch/arm/apple/apple_pinctrl.c
252
apple_pinctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_pinctrl.c
254
struct apple_pinctrl_softc * const sc = device_private(self);
sys/arch/arm/apple/apple_pinctrl.c
265
sc->sc_dev = self;
sys/arch/arm/apple/apple_pinctrl.c
286
fdtbus_register_gpio_controller(self, phandle, &apple_pinctrl_gpio_funcs);
sys/arch/arm/apple/apple_pinctrl.c
291
fdtbus_register_pinctrl_config(self, child,
sys/arch/arm/apple/apple_platform.c
200
apple_platform_device_register(device_t self, void *aux)
sys/arch/arm/apple/apple_platform.c
202
prop_dictionary_t prop = device_properties(self);
sys/arch/arm/apple/apple_platform.c
206
if (device_is_a(self, "cpu")) {
sys/arch/arm/apple/apple_platform.c
226
if (device_is_a(self, "bge") &&
sys/arch/arm/apple/apple_platform.c
227
device_is_a(device_parent(self), "pci")) {
sys/arch/arm/apple/apple_platform.c
233
device_setprop_bool(self, "without-seeprom", true);
sys/arch/arm/apple/apple_platform.c
234
device_setprop_data(self, "mac-address", eaddr,
sys/arch/arm/apple/apple_pmgr.c
110
apple_pmgr_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_pmgr.c
112
struct apple_pmgr_softc * const sc = device_private(self);
sys/arch/arm/apple/apple_pmgr.c
125
sc->sc_dev = self;
sys/arch/arm/apple/apple_pmgr.c
151
fdtbus_register_powerdomain_controller(self, node, &funcs);
sys/arch/arm/apple/apple_smc.c
311
apple_smc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_smc.c
313
struct apple_smc_softc * const sc = device_private(self);
sys/arch/arm/apple/apple_smc.c
325
sc->sc_dev = self;
sys/arch/arm/apple/apple_smc.c
373
fdtbus_register_gpio_controller(self, gpio,
sys/arch/arm/apple/apple_wdog.c
101
sc->sc_dev = self;
sys/arch/arm/apple/apple_wdog.c
114
fdtbus_register_power_controller(self, phandle,
sys/arch/arm/apple/apple_wdog.c
88
apple_wdog_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/apple/apple_wdog.c
90
struct apple_wdog_softc * const sc = device_private(self);
sys/arch/arm/at91/at91aic.c
90
at91aic_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/at91/at91aic.c
94
(void)parent; (void)self; (void)aux;
sys/arch/arm/at91/at91bus.c
564
at91bus_found(device_t self, bus_addr_t addr, int pid)
sys/arch/arm/at91/at91bus.c
576
sc = device_private(self);
sys/arch/arm/at91/at91bus.c
583
return config_found(self, &sa, at91bus_print,
sys/arch/arm/at91/at91bus.c
589
at91bus_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/at91/at91bus.c
596
sc = device_private(self);
sys/arch/arm/at91/at91bus.c
617
at91_search_peripherals(self, at91bus_found);
sys/arch/arm/at91/at91bus.c
624
config_search(self, &sa,
sys/arch/arm/at91/at91busvar.h
102
void (*search_peripherals)(device_t self,
sys/arch/arm/at91/at91busvar.h
179
at91_search_peripherals(device_t self,
sys/arch/arm/at91/at91busvar.h
182
return (*at91bus_tag->search_peripherals)(self, found_func);
sys/arch/arm/at91/at91cf.c
134
at91cf_attach_common(device_t parent, device_t self, void *aux,
sys/arch/arm/at91/at91cf.c
137
struct at91cf_softc *sc = device_private(self);
sys/arch/arm/at91/at91cf.c
143
device_xname(self));
sys/arch/arm/at91/at91cf.c
147
sc->sc_dev = self;
sys/arch/arm/at91/at91cf.c
154
printf("%s: Cannot map memory space\n", device_xname(self));
sys/arch/arm/at91/at91cf.c
161
device_xname(self));
sys/arch/arm/at91/at91cf.c
168
printf("%s: Cannot map I/O space\n", device_xname(self));
sys/arch/arm/at91/at91cfvar.h
36
int (*power_ctl)(void *self, int onoff);
sys/arch/arm/at91/at91cfvar.h
39
int (*card_detect)(void *self);
sys/arch/arm/at91/at91cfvar.h
40
int (*irq_line)(void *self);
sys/arch/arm/at91/at91cfvar.h
41
void * (*intr_establish)(void *self, int which, int ipl, int (*ih_func)(void *), void *arg);
sys/arch/arm/at91/at91cfvar.h
42
void (*intr_disestablish)(void *self, int wich, void *cookie);
sys/arch/arm/at91/at91dbgu.c
218
at91dbgu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/at91/at91dbgu.c
220
struct at91dbgu_softc *sc = device_private(self);
sys/arch/arm/at91/at91dbgu.c
226
sc->sc_dev = self;
sys/arch/arm/at91/at91emac.c
125
emac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/at91/at91emac.c
127
struct emac_softc *sc = device_private(self);
sys/arch/arm/at91/at91emac.c
132
sc->sc_dev = self;
sys/arch/arm/at91/at91emac.c
138
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/at91/at91emac.c
159
if (! ether_getaddr(self, sc->sc_enaddr)) {
sys/arch/arm/at91/at91emac.c
496
emac_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/arm/at91/at91emac.c
499
struct emac_softc *sc = device_private(self);
sys/arch/arm/at91/at91emac.c
514
emac_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/arm/at91/at91emac.c
517
struct emac_softc *sc = device_private(self);
sys/arch/arm/at91/at91ohci.c
117
config_defer(self, at91ohci_callback);
sys/arch/arm/at91/at91ohci.c
121
at91ohci_callback(device_t self)
sys/arch/arm/at91/at91ohci.c
123
struct at91ohci_softc *sc = device_private(self);
sys/arch/arm/at91/at91ohci.c
133
printf("%s: init failed, error=%d\n", device_xname(self), err);
sys/arch/arm/at91/at91ohci.c
140
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/arch/arm/at91/at91ohci.c
91
at91ohci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/at91/at91ohci.c
93
struct at91ohci_softc *sc = device_private(self);
sys/arch/arm/at91/at91ohci.c
96
sc->sc.sc_dev = self;
sys/arch/arm/at91/at91pio.c
122
at91pio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/at91/at91pio.c
124
struct at91pio_softc *sc = device_private(self);
sys/arch/arm/at91/at91pio.c
137
printf("%s: Cannot map registers", device_xname(self));
sys/arch/arm/at91/at91pio.c
186
config_found(self, &gba, at91piobus_print,
sys/arch/arm/at91/at91pio.c
191
config_search(self, NULL,
sys/arch/arm/at91/at91rm9200bus.c
129
void at91rm9200bus_search_peripherals(device_t self,
sys/arch/arm/at91/at91rm9200bus.c
169
(*found_func)(self, table[i].addr, table[i].pid);
sys/arch/arm/at91/at91rm9200busvar.h
57
void at91rm9200bus_search_peripherals(device_t self,
sys/arch/arm/at91/at91sam9260bus.c
127
void at91sam9260bus_search_peripherals(device_t self,
sys/arch/arm/at91/at91sam9260bus.c
159
found_func(self, table[i].addr, table[i].pid);
sys/arch/arm/at91/at91sam9260busvar.h
57
void at91sam9260bus_search_peripherals(device_t self,
sys/arch/arm/at91/at91sam9261bus.c
120
void at91sam9261bus_search_peripherals(device_t self,
sys/arch/arm/at91/at91sam9261bus.c
155
(*found_func)(self, table[i].addr, table[i].pid);
sys/arch/arm/at91/at91sam9261busvar.h
57
void at91sam9261bus_search_peripherals(device_t self,
sys/arch/arm/at91/at91spi.c
103
at91spi_attach_common(device_t parent, device_t self, void *aux,
sys/arch/arm/at91/at91spi.c
106
struct at91spi_softc *sc = device_private(self);
sys/arch/arm/at91/at91spi.c
113
sc->sc_dev = self;
sys/arch/arm/at91/at91spi.c
120
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/at91/at91spi.c
192
spibus_attach(self, &sc->sc_spi);
sys/arch/arm/at91/at91spivar.h
46
int (*select_slave)(void *self, int);
sys/arch/arm/at91/at91spivar.h
77
void at91spi_attach_common(device_t parent, device_t self, void *aux,
sys/arch/arm/at91/at91st.c
162
at91st_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/at91/at91st.c
164
struct at91st_softc *sc = device_private(self);
sys/arch/arm/at91/at91st.c
177
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/at91/at91tctmr.c
177
at91tctmr_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/at91/at91tctmr.c
179
struct at91tctmr_softc *sc = device_private(self);
sys/arch/arm/at91/at91tctmr.c
184
sc->sc_dev = self;
sys/arch/arm/at91/at91twi.c
115
printf("%s: ckdiv=%d cxdiv=%d CWGR=0x%08X SR=0x%08X\n", device_xname(self), ckdiv, cxdiv, at91twi_readreg(sc, TWI_CWGR), at91twi_readreg(sc, TWI_SR));
sys/arch/arm/at91/at91twi.c
77
at91twi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/at91/at91twi.c
79
struct at91twi_softc *sc = device_private(self);
sys/arch/arm/at91/at91twi.c
84
sc->sc_dev = self;
sys/arch/arm/at91/at91twi.c
89
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/broadcom/bcm2835_aux.c
114
bcmaux_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_aux.c
116
struct bcmaux_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_aux.c
127
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_aux.c
157
fdtbus_register_clock_controller(self, phandle, &bcmaux_fdt_funcs);
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
106
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
115
aprint_error_dev(self, "couldn't find mem resource\n");
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
121
aprint_error_dev(self, "couldn't find irq resource\n");
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
125
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
128
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
134
aprint_error_dev(self, "couldn't determine parent clock rate\n");
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
146
ih = acpi_intr_establish(self, (uint64_t)aa->aa_node->ad_handle,
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
147
IPL_VM, true, bsciic_intr, sc, device_xname(self));
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
149
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
159
iicbus_attach(self, &sc->sc_i2c);
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
95
bsciic_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
97
struct bsciic_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_bsc_fdt.c
136
iicbus_attach(self, &sc->sc_i2c);
sys/arch/arm/broadcom/bcm2835_bsc_fdt.c
69
bsciic_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_bsc_fdt.c
71
struct bsciic_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_bsc_fdt.c
78
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_cm.c
86
bcmcm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_cm.c
88
struct bcm2835cm_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_cm.c
94
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_com.c
123
aprint_error_dev(self, "failed to establish interrupt %s\n",
sys/arch/arm/broadcom/bcm2835_com.c
127
aprint_normal_dev(self, "interrupting on %s, clock %u Hz\n",
sys/arch/arm/broadcom/bcm2835_com.c
68
bcm_com_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_com.c
70
struct com_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_com.c
80
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_com_acpi.c
108
aprint_error_dev(self, "couldn't find irq resource\n");
sys/arch/arm/broadcom/bcm2835_com_acpi.c
119
aprint_error_dev(self, "can't map mem space\n");
sys/arch/arm/broadcom/bcm2835_com_acpi.c
126
aprint_normal("%s", device_xname(self));
sys/arch/arm/broadcom/bcm2835_com_acpi.c
128
sc->sc_frequency = bcmcom_acpi_get_clockrate(self);
sys/arch/arm/broadcom/bcm2835_com_acpi.c
132
ih = acpi_intr_establish(self,
sys/arch/arm/broadcom/bcm2835_com_acpi.c
134
IPL_SERIAL, true, comintr, sc, device_xname(self));
sys/arch/arm/broadcom/bcm2835_com_acpi.c
136
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/arch/arm/broadcom/bcm2835_com_acpi.c
140
if (!pmf_device_register(self, NULL, com_resume))
sys/arch/arm/broadcom/bcm2835_com_acpi.c
141
aprint_error_dev(self, "couldn't establish a power handler\n");
sys/arch/arm/broadcom/bcm2835_com_acpi.c
73
bcmcom_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_com_acpi.c
75
struct com_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_com_acpi.c
88
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_com_acpi.c
98
aprint_error_dev(self, "couldn't find mem resource\n");
sys/arch/arm/broadcom/bcm2835_cprman.c
173
cprman_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_cprman.c
175
struct cprman_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_cprman.c
179
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_cprman.c
192
fdtbus_register_clock_controller(self, phandle, &cprman_fdt_funcs);
sys/arch/arm/broadcom/bcm2835_dmac.c
113
bcm_dmac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_dmac.c
115
struct bcm_dmac_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_dmac.c
116
const prop_dictionary_t cfg = device_properties(self);
sys/arch/arm/broadcom/bcm2835_dmac.c
124
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_dwctwo.c
117
bcmdwc2_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_dwctwo.c
119
struct bcmdwc2_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_dwctwo.c
135
sc->sc_dwc2.sc_dev = self;
sys/arch/arm/broadcom/bcm2835_dwctwo.c
153
dwc2_intr, &sc->sc_dwc2, device_xname(self));
sys/arch/arm/broadcom/bcm2835_dwctwo.c
156
aprint_error_dev(self, "failed to establish interrupt %s\n",
sys/arch/arm/broadcom/bcm2835_dwctwo.c
160
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/broadcom/bcm2835_dwctwo.c
161
config_interrupts(self, bcmdwc2_deferred);
sys/arch/arm/broadcom/bcm2835_dwctwo.c
174
bcmdwc2_deferred(device_t self)
sys/arch/arm/broadcom/bcm2835_dwctwo.c
176
struct bcmdwc2_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_dwctwo.c
181
aprint_error_dev(self, "couldn't initialize host, error=%d\n",
sys/arch/arm/broadcom/bcm2835_emmc.c
116
bcmemmc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_emmc.c
118
struct bcmemmc_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_emmc.c
123
sc->sc.sc_dev = self;
sys/arch/arm/broadcom/bcm2835_emmc.c
157
aprint_debug_dev(self, "ref freq %u kHz\n", sc->sc.sc_clkbase);
sys/arch/arm/broadcom/bcm2835_emmc.c
177
sdhc_intr, &sc->sc, device_xname(self));
sys/arch/arm/broadcom/bcm2835_emmc.c
180
aprint_error_dev(self, "failed to establish interrupt %s\n",
sys/arch/arm/broadcom/bcm2835_emmc.c
184
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/broadcom/bcm2835_emmc.c
210
aprint_error_dev(self, "dmamem_alloc failed (%d)\n", error);
sys/arch/arm/broadcom/bcm2835_emmc.c
217
aprint_error_dev(self, "dmamem_map failed (%d)\n", error);
sys/arch/arm/broadcom/bcm2835_emmc.c
227
aprint_error_dev(self, "dmamap_create failed (%d)\n", error);
sys/arch/arm/broadcom/bcm2835_emmc.c
234
aprint_error_dev(self, "dmamap_load failed (%d)\n", error);
sys/arch/arm/broadcom/bcm2835_emmc.c
240
config_interrupts(self, bcmemmc_attach_i);
sys/arch/arm/broadcom/bcm2835_emmc.c
253
bcmemmc_attach_i(device_t self)
sys/arch/arm/broadcom/bcm2835_emmc.c
255
struct bcmemmc_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_emmc.c
260
aprint_error_dev(self, "couldn't initialize host, error=%d\n",
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
111
bcmemmc_acpi_attach(device_t parent, device_t self, void *opaque)
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
113
struct bcmemmc_acpi_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
120
sc->sc.sc_dev = self;
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
125
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
133
aprint_error_dev(self, "incomplete resources\n");
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
137
aprint_error_dev(self, "zero length memory resource\n");
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
144
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
155
sc->sc_ih = acpi_intr_establish(self,
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
157
IPL_BIO, true, sdhc_intr, &sc->sc, device_xname(self));
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
159
aprint_error_dev(self,
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
164
config_defer(self, bcmemmc_acpi_attach1);
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
177
bcmemmc_acpi_attach1(device_t self)
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
179
struct bcmemmc_acpi_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
185
aprint_error_dev(self, "couldn't initialize host\n");
sys/arch/arm/broadcom/bcm2835_genfb.c
116
pmf_device_register1(self, NULL, NULL, bcmgenfb_shutdown);
sys/arch/arm/broadcom/bcm2835_genfb.c
122
aprint_error_dev(self, "couldn't map framebuffer (%d)\n",
sys/arch/arm/broadcom/bcm2835_genfb.c
185
bcmgenfb_shutdown(device_t self, int flags)
sys/arch/arm/broadcom/bcm2835_genfb.c
187
genfb_enable_polling(self);
sys/arch/arm/broadcom/bcm2835_genfb.c
88
bcmgenfb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_genfb.c
90
struct bcmgenfb_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_genfb.c
92
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/broadcom/bcm2835_genfb.c
98
sc->sc_gen.sc_dev = self;
sys/arch/arm/broadcom/bcm2835_gpio.c
257
bcmgpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_gpio.c
259
struct bcmgpio_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_gpio.c
276
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_gpio.c
281
aprint_error_dev(self, ": couldn't map registers\n");
sys/arch/arm/broadcom/bcm2835_gpio.c
336
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/broadcom/bcm2835_gpio.c
341
snprintf(xname, sizeof(xname), "%s #%u", device_xname(self),
sys/arch/arm/broadcom/bcm2835_gpio.c
349
aprint_normal_dev(self,
sys/arch/arm/broadcom/bcm2835_gpio.c
355
aprint_error_dev(self,
sys/arch/arm/broadcom/bcm2835_gpio.c
362
fdtbus_register_gpio_controller(self, faa->faa_phandle, &bcmgpio_funcs);
sys/arch/arm/broadcom/bcm2835_gpio.c
367
fdtbus_register_pinctrl_config(self, child,
sys/arch/arm/broadcom/bcm2835_gpio.c
371
fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/broadcom/bcm2835_gpio.c
386
config_found(self, &gba, gpiobus_print,
sys/arch/arm/broadcom/bcm2835_gpio.c
387
CFARGS(.devhandle = device_handle(self)));
sys/arch/arm/broadcom/bcm2835_intr.c
324
bcm2835_icu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_intr.c
326
struct bcm2835icu_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_intr.c
341
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_intr.c
405
error = fdtbus_register_interrupt_controller(self, phandle, ifuncs);
sys/arch/arm/broadcom/bcm2835_mbox_acpi.c
107
sc->sc_intrh = acpi_intr_establish(self, (uint64_t)aa->aa_node->ad_handle,
sys/arch/arm/broadcom/bcm2835_mbox_acpi.c
108
IPL_VM, false, bcmmbox_intr, sc, device_xname(self));
sys/arch/arm/broadcom/bcm2835_mbox_acpi.c
110
aprint_error_dev(self, "failed to establish interrupt\n");
sys/arch/arm/broadcom/bcm2835_mbox_acpi.c
76
bcmmbox_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_mbox_acpi.c
78
struct bcm2835mbox_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_mbox_acpi.c
85
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/arch/arm/broadcom/bcm2835_mbox_acpi.c
93
aprint_error_dev(self, "couldn't find resources\n");
sys/arch/arm/broadcom/bcm2835_mbox_acpi.c
97
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_mbox_fdt.c
103
bcmmbox_intr, sc, device_xname(self));
sys/arch/arm/broadcom/bcm2835_mbox_fdt.c
105
aprint_error_dev(self, "failed to establish interrupt %s\n",
sys/arch/arm/broadcom/bcm2835_mbox_fdt.c
109
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/broadcom/bcm2835_mbox_fdt.c
71
bcmmbox_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_mbox_fdt.c
73
struct bcm2835mbox_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_mbox_fdt.c
80
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_pmwdog.c
119
bcmpmwdog_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_pmwdog.c
121
struct bcm2835pmwdog_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_pmwdog.c
131
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_pmwdog.c
154
aprint_error_dev(self, "couldn't register watchdog\n");
sys/arch/arm/broadcom/bcm2835_pmwdog.c
156
fdtbus_register_power_controller(self, phandle,
sys/arch/arm/broadcom/bcm2835_pmwdog.c
238
bcm2835_power_reset(device_t self)
sys/arch/arm/broadcom/bcm2835_pmwdog.c
240
struct bcm2835pmwdog_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_pmwdog.c
249
bcm2835_power_poweroff(device_t self)
sys/arch/arm/broadcom/bcm2835_pmwdog.c
251
struct bcm2835pmwdog_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_pwm.c
106
bcmpwm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_pwm.c
108
struct bcm2835pwm_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_pwm.c
113
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_rng.c
124
rnd_attach_source(&sc->sc_rndsource, device_xname(self), RND_TYPE_RNG,
sys/arch/arm/broadcom/bcm2835_rng.c
86
bcmrng_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_rng.c
88
struct bcm2835rng_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_rng.c
99
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_sdhost.c
191
sdhost_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_sdhost.c
193
struct sdhost_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_sdhost.c
196
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_sdhost.c
233
aprint_debug_dev(self, "ref freq %u Hz\n", sc->sc_rate);
sys/arch/arm/broadcom/bcm2835_sdhost.c
236
aprint_error_dev(self, "failed to setup DMA\n");
sys/arch/arm/broadcom/bcm2835_sdhost.c
247
FDT_INTR_MPSAFE, sdhost_intr, sc, device_xname(self));
sys/arch/arm/broadcom/bcm2835_sdhost.c
249
aprint_error_dev(self, "failed to establish interrupt %s\n",
sys/arch/arm/broadcom/bcm2835_sdhost.c
253
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/broadcom/bcm2835_sdhost.c
255
config_interrupts(self, sdhost_attach_i);
sys/arch/arm/broadcom/bcm2835_sdhost.c
294
sdhost_attach_i(device_t self)
sys/arch/arm/broadcom/bcm2835_sdhost.c
296
struct sdhost_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_sdhost.c
316
sc->sc_sdmmc_dev = config_found(self, &saa, NULL, CFARGS_NONE);
sys/arch/arm/broadcom/bcm2835_spi.c
102
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_spi.c
127
bcmspi_intr, sc, device_xname(self));
sys/arch/arm/broadcom/bcm2835_spi.c
132
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/broadcom/bcm2835_spi.c
140
spibus_attach(self, &sc->sc_spi);
sys/arch/arm/broadcom/bcm2835_spi.c
94
bcmspi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_spi.c
96
struct bcmspi_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_tmr.c
118
bcmtmr_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_tmr.c
120
struct bcm2835tmr_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_tmr.c
129
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_tmr.c
153
FDT_INTR_MPSAFE, clockhandler, NULL, device_xname(self));
sys/arch/arm/broadcom/bcm2835_tmr.c
159
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/broadcom/bcm2835_tmr.c
161
bcm2835tmr_timecounter.tc_name = device_xname(self);
sys/arch/arm/broadcom/bcm2835_vcaudio.c
205
vcaudio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2835_vcaudio.c
207
struct vcaudio_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_vcaudio.c
210
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2835_vcaudio.c
228
error = vcaudio_rescan(self, NULL, NULL);
sys/arch/arm/broadcom/bcm2835_vcaudio.c
230
aprint_error_dev(self, "not configured\n");
sys/arch/arm/broadcom/bcm2835_vcaudio.c
235
vcaudio_rescan(device_t self, const char *ifattr, const int *locs)
sys/arch/arm/broadcom/bcm2835_vcaudio.c
237
struct vcaudio_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2835_vcaudio.c
253
vcaudio_childdet(device_t self, device_t child)
sys/arch/arm/broadcom/bcm2835_vcaudio.c
255
struct vcaudio_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
102
aprint_error_dev(self, "incomplete resources\n");
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
106
aprint_error_dev(self, "zero length memory resource\n");
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
113
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
128
sc->sc_ih = acpi_intr_establish(self,
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
130
IPL_BIO, true, sdhc_intr, &sc->sc, device_xname(self));
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
132
aprint_error_dev(self,
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
137
config_defer(self, bcmemmc2_acpi_attach1);
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
150
bcmemmc2_acpi_attach1(device_t self)
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
152
struct bcmemmc2_acpi_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
156
aprint_error_dev(self, "couldn't initialize host\n");
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
80
bcmemmc2_acpi_attach(device_t parent, device_t self, void *opaque)
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
82
struct bcmemmc2_acpi_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
89
sc->sc.sc_dev = self;
sys/arch/arm/broadcom/bcm2838_emmc2_acpi.c
94
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/arch/arm/broadcom/bcm2838_pcie.c
174
bcm2838pcie_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2838_pcie.c
176
struct bcm2838pcie_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2838_pcie.c
185
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm2838_pcie.c
233
bcmstb_attach(device_t self, struct bcmstb_softc *sc)
sys/arch/arm/broadcom/bcm2838_pcie.c
269
aprint_error_dev(self, "configuration failed: %d\n", error);
sys/arch/arm/broadcom/bcm2838_pcie.c
284
config_found(self, &pba, pcibusprint,
sys/arch/arm/broadcom/bcm2838_pcie.c
285
CFARGS(.devhandle = device_handle(self)));
sys/arch/arm/broadcom/bcm2838_pcie.c
552
bcmstb_attach_hook(device_t parent, device_t self,
sys/arch/arm/broadcom/bcm2838_rng.c
67
bcm2838rng_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm2838_rng.c
69
struct bcm2838rng_softc *sc = device_private(self);
sys/arch/arm/broadcom/bcm2838_rng.c
76
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_board.c
543
bcm53xx_device_register(device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_board.c
545
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/broadcom/bcm53xx_board.c
547
if (device_is_a(self, "armperiph")
sys/arch/arm/broadcom/bcm53xx_board.c
548
&& device_is_a(device_parent(self), "mainbus")) {
sys/arch/arm/broadcom/bcm53xx_board.c
564
if (device_is_a(self, "arma9tmr") || device_is_a(self, "a9wdt")) {
sys/arch/arm/broadcom/bcm53xx_board.c
574
if (device_is_a(self, "bcmeth")) {
sys/arch/arm/broadcom/bcm53xx_board.c
580
device_setprop_data(self, "mac-address", enaddr,
sys/arch/arm/broadcom/bcm53xx_cca.c
152
bcmcca_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_cca.c
156
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_cca.c
157
device_set_private(self, sc);
sys/arch/arm/broadcom/bcm53xx_cca.c
274
com_cca_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_cca.c
276
struct com_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_cca.c
281
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_ccb.c
166
bcmccb_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_ccb.c
170
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_ccb.c
171
device_set_private(self, sc);
sys/arch/arm/broadcom/bcm53xx_ccb.c
204
cfdata_t cf = config_search(self, &ccbaa,
sys/arch/arm/broadcom/bcm53xx_ccb.c
207
config_attach(self, cf, &ccbaa, bcmccb_print,
sys/arch/arm/broadcom/bcm53xx_eth.c
262
bcmeth_ccb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_eth.c
264
struct bcmeth_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_eth.c
269
const char * const xname = device_xname(self);
sys/arch/arm/broadcom/bcm53xx_eth.c
282
if (device_cfdata(self)->cf_flags & 2) {
sys/arch/arm/broadcom/bcm53xx_eth.c
287
if (! ether_getaddr(self, sc->sc_enaddr)) {
sys/arch/arm/broadcom/bcm53xx_eth.c
301
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_eth.c
347
aprint_error_dev(self, "failed to establish soft interrupt\n");
sys/arch/arm/broadcom/bcm53xx_eth.c
355
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/arm/broadcom/bcm53xx_eth.c
359
aprint_normal_dev(self, "interrupting on irq %d\n",
sys/arch/arm/broadcom/bcm53xx_i2c.c
73
bcmi2c_ccb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_i2c.c
75
struct bcmi2c_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_i2c.c
79
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_mdio.c
134
bcmmdio_mii_readreg(device_t self, int phy, int reg)
sys/arch/arm/broadcom/bcm53xx_mdio.c
136
struct bcmmdio_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_mdio.c
152
bcmmdio_mii_writereg(device_t self, int phy, int reg, int val)
sys/arch/arm/broadcom/bcm53xx_mdio.c
154
struct bcmmdio_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_mdio.c
80
bcmmdio_ccb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_mdio.c
82
struct bcmmdio_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_mdio.c
86
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_nand.c
78
bcmnand_ccb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_nand.c
80
struct bcmnand_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_nand.c
84
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_pax.c
195
bcmpax_ccb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_pax.c
197
struct bcmpax_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_pax.c
200
cfdata_t cf = device_cfdata(self);
sys/arch/arm/broadcom/bcm53xx_pax.c
202
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_pax.c
269
aprint_error_dev(self,
sys/arch/arm/broadcom/bcm53xx_pax.c
278
aprint_normal_dev(self, "interrupting on irqs %d-%d\n",
sys/arch/arm/broadcom/bcm53xx_pax.c
307
aprint_debug_dev(self,
sys/arch/arm/broadcom/bcm53xx_pax.c
327
aprint_normal_dev(self, "iwin[1]=%#x/%#x iwin[2]=%#x/%#x\n",
sys/arch/arm/broadcom/bcm53xx_pax.c
354
aprint_normal_dev(self, "configuration failed\n");
sys/arch/arm/broadcom/bcm53xx_pax.c
369
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/arm/broadcom/bcm53xx_pax.c
373
bcmpax_attach_hook(device_t parent, device_t self,
sys/arch/arm/broadcom/bcm53xx_rng.c
122
bcmrng_ccb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_rng.c
124
struct bcmrng_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_rng.c
128
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_rng.c
145
rnd_attach_source(&sc->sc_rnd_source, device_xname(self), RND_TYPE_RNG,
sys/arch/arm/broadcom/bcm53xx_rng.c
152
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/arm/broadcom/bcm53xx_rng.c
155
aprint_normal_dev(self, "interrupting on irq %d\n", loc->loc_intrs[0]);
sys/arch/arm/broadcom/bcm53xx_sdhc.c
103
aprint_error_dev(self, "couldn't initialize host, error=%d\n",
sys/arch/arm/broadcom/bcm53xx_sdhc.c
112
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/arm/broadcom/bcm53xx_sdhc.c
116
aprint_normal_dev(self, "interrupting on irq %d\n",
sys/arch/arm/broadcom/bcm53xx_sdhc.c
77
sdhc_ccb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_sdhc.c
79
struct sdhc_ccb_softc * const ccbsc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_sdhc.c
88
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_usb.c
104
ohci_bcmusb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_usb.c
106
struct ohci_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_usb.c
109
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_usb.c
122
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/arm/broadcom/bcm53xx_usb.c
127
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/arm/broadcom/bcm53xx_usb.c
155
ehci_bcmusb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_usb.c
158
struct ehci_softc * const sc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_usb.c
161
sc->sc_dev = self;
sys/arch/arm/broadcom/bcm53xx_usb.c
179
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/arm/broadcom/bcm53xx_usb.c
183
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/arm/broadcom/bcm53xx_usb.c
227
bcmusb_ccb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/broadcom/bcm53xx_usb.c
229
struct bcmusb_softc * const usbsc = device_private(self);
sys/arch/arm/broadcom/bcm53xx_usb.c
270
usbsc->usbsc_ohci_dev = config_found(self, &usbaa_ohci, NULL,
sys/arch/arm/broadcom/bcm53xx_usb.c
283
usbsc->usbsc_ehci_dev = config_found(self, &usbaa_ehci, NULL,
sys/arch/arm/broadcom/bcm53xx_usb.c
291
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/arm/broadcom/bcm53xx_usb.c
295
aprint_normal_dev(self, "interrupting on irq %d\n", loc->loc_intrs[0]);
sys/arch/arm/clps711x/clpscom.c
201
clpscom_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/clps711x/clpscom.c
203
struct clpscom_softc *sc = device_private(self);
sys/arch/arm/clps711x/clpscom.c
210
sc->sc_dev = self;
sys/arch/arm/clps711x/clpscom.c
239
aprint_normal_dev(self, "console\n");
sys/arch/arm/clps711x/clpslcd.c
115
clpslcd_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/clps711x/clpslcd.c
117
struct clpslcd_softc *sc = device_private(self);
sys/arch/arm/clps711x/clpslcd.c
120
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/clps711x/clpslcd.c
128
sc->sc_dev = self;
sys/arch/arm/clps711x/clpslcd.c
135
aprint_error_dev(self, "can't get properties\n");
sys/arch/arm/clps711x/clpslcd.c
159
aprint_normal_dev(self,
sys/arch/arm/clps711x/clpslcd.c
202
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/arm/clps711x/clpsrtc.c
71
clpsrtc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/clps711x/clpsrtc.c
73
struct clpsrtc_softc *sc = device_private(self);
sys/arch/arm/clps711x/clpsrtc.c
79
sc->sc_dev = self;
sys/arch/arm/clps711x/clpsrtc.c
86
sc->sc_todr.todr_dev = self;
sys/arch/arm/clps711x/clpssoc.c
117
clpssoc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/clps711x/clpssoc.c
127
aprint_error_dev(self, "can't map registers\n");
sys/arch/arm/clps711x/clpssoc.c
148
config_found(self, &aa, clpssoc_print,
sys/arch/arm/clps711x/clpssoc.c
57
static void clpssoc_attach(device_t parent, device_t self, void *aux);
sys/arch/arm/cortex/a9ptmr.c
114
a9ptmr_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/cortex/a9ptmr.c
116
struct a9ptmr_softc * const sc = device_private(self);
sys/arch/arm/cortex/a9ptmr.c
118
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/cortex/a9ptmr.c
123
sc->sc_dev = self;
sys/arch/arm/cortex/a9ptmr.c
141
sc->sc_dev = self;
sys/arch/arm/cortex/a9tmr.c
115
a9tmr_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/cortex/a9tmr.c
119
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/cortex/a9tmr.c
142
device_set_private(self, sc);
sys/arch/arm/cortex/a9tmr.c
143
sc->sc_dev = self;
sys/arch/arm/cortex/a9tmr.c
148
device_xname(self), "missing interrupts");
sys/arch/arm/cortex/a9wdt.c
184
a9wdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/cortex/a9wdt.c
186
struct a9wdt_softc * const sc = device_private(self);
sys/arch/arm/cortex/a9wdt.c
188
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/cortex/a9wdt.c
191
sc->sc_dev = self;
sys/arch/arm/cortex/a9wdt.c
230
if (device_cfdata(self)->cf_flags & 1)
sys/arch/arm/cortex/a9wdt.c
243
sc->sc_smw.smw_name = device_xname(self);
sys/arch/arm/cortex/a9wdt.c
253
aprint_error_dev(self,
sys/arch/arm/cortex/armperiph.c
173
armperiph_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/cortex/armperiph.c
175
struct armperiph_softc * const sc = device_private(self);
sys/arch/arm/cortex/armperiph.c
179
prop_dictionary_t prop = device_properties(self);
sys/arch/arm/cortex/armperiph.c
189
sc->sc_dev = self;
sys/arch/arm/cortex/armperiph.c
219
config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/cortex/gic.c
607
armgic_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/cortex/gic.c
612
sc->sc_dev = self;
sys/arch/arm/cortex/gic.c
613
device_set_private(self, sc);
sys/arch/arm/cortex/gtmr.c
105
gtmr_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/cortex/gtmr.c
109
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/cortex/gtmr.c
110
prop_dictionary_t pdict = device_properties(device_parent(self));
sys/arch/arm/cortex/gtmr.c
134
aprint_debug_dev(self, "CPU registers not initialized by firmware\n");
sys/arch/arm/cortex/gtmr.c
140
aprint_debug_dev(self, "enabling Allwinner A64 timer workaround\n");
sys/arch/arm/cortex/gtmr.c
143
device_set_private(self, sc);
sys/arch/arm/cortex/gtmr.c
144
sc->sc_dev = self;
sys/arch/arm/cortex/gtmr.c
151
device_xname(self), "missing interrupts");
sys/arch/arm/cortex/gtmr.c
158
aprint_normal_dev(self, "interrupting on irq %d\n",
sys/arch/arm/cortex/gtmr.c
164
aprint_verbose_dev(self, "cp15 CNT_FRQ not set\n");
sys/arch/arm/cortex/gtmr.c
166
aprint_verbose_dev(self,
sys/arch/arm/cortex/pl310.c
135
arml2cc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/cortex/pl310.c
137
struct arml2cc_softc * const sc = device_private(self);
sys/arch/arm/cortex/pl310.c
139
const char * const xname = device_xname(self);
sys/arch/arm/cortex/pl310.c
140
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/cortex/pl310.c
149
sc->sc_dev = self;
sys/arch/arm/cortex/pl310.c
182
if (device_cfdata(self)->cf_flags & 1) {
sys/arch/arm/cortex/pl310.c
184
aprint_normal_dev(self, "cache %s\n",
sys/arch/arm/cortex/pl310.c
193
} else if ((device_cfdata(self)->cf_flags & 1) == 0) {
sys/arch/arm/cortex/pl310.c
196
aprint_normal_dev(self, "cache %s\n",
sys/arch/arm/ep93xx/epclk.c
122
epclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ep93xx/epclk.c
130
sc = device_private(self);
sys/arch/arm/ep93xx/epclk.c
144
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/ep93xx/epclk.c
148
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/ep93xx/epe.c
119
epe_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ep93xx/epe.c
121
struct epe_softc *sc = device_private(self);
sys/arch/arm/ep93xx/epe.c
126
sc->sc_dev = self;
sys/arch/arm/ep93xx/epe.c
133
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/ep93xx/epe.c
136
if (ether_getaddr(self, sc->sc_enaddr)) {
sys/arch/arm/ep93xx/epe.c
435
epe_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/arm/ep93xx/epe.c
450
epe_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/arm/ep93xx/epgpio.c
128
epgpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ep93xx/epgpio.c
130
struct epgpio_softc *sc = device_private(self);
sys/arch/arm/ep93xx/epgpio.c
144
printf("%s: Cannot map registers", device_xname(self));
sys/arch/arm/ep93xx/epgpio.c
313
config_found(self, &gba, epgpiobus_print,
sys/arch/arm/ep93xx/epgpio.c
318
config_search(self, NULL,
sys/arch/arm/ep93xx/epled.c
61
epled_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ep93xx/epled.c
63
struct epled_softc *sc = device_private(self);
sys/arch/arm/ep93xx/epled.c
76
printf("%s is already configured\n", device_xname(self));
sys/arch/arm/ep93xx/epohci.c
131
config_defer(self, epohci_callback);
sys/arch/arm/ep93xx/epohci.c
135
epohci_callback(device_t self)
sys/arch/arm/ep93xx/epohci.c
137
struct epohci_softc *sc = device_private(self);
sys/arch/arm/ep93xx/epohci.c
148
printf("%s: init failed, error=%d\n", device_xname(self), err);
sys/arch/arm/ep93xx/epohci.c
155
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/arch/arm/ep93xx/epohci.c
86
epohci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ep93xx/epohci.c
88
struct epohci_softc *sc = device_private(self);
sys/arch/arm/ep93xx/epohci.c
93
sc->sc.sc_dev = self;
sys/arch/arm/ep93xx/eppcic.c
147
eppcic_attach_common(device_t parent, device_t self, void *aux,
sys/arch/arm/ep93xx/eppcic.c
150
struct eppcic_softc *sc = device_private(self);
sys/arch/arm/ep93xx/eppcic.c
157
printf("%s: epgpio requires\n", device_xname(self));
sys/arch/arm/ep93xx/eppcic.c
160
sc->sc_dev = self;
sys/arch/arm/ep93xx/eppcic.c
168
printf("%s: Cannot map registers\n", device_xname(self));
sys/arch/arm/ep93xx/eprtc.c
64
eprtc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ep93xx/eprtc.c
66
struct eprtc_softc *sc = device_private(self);
sys/arch/arm/ep93xx/eprtc.c
70
sc->sc_dev = self;
sys/arch/arm/ep93xx/eprtc.c
75
printf("%s: Cannot map registers", device_xname(self));
sys/arch/arm/ep93xx/eprtc.c
79
sc->sc_todr.todr_dev = self;
sys/arch/arm/ep93xx/epsoc.c
147
device_xname(self),
sys/arch/arm/ep93xx/epsoc.c
168
config_found(self, &sa, epsoc_print,
sys/arch/arm/ep93xx/epsoc.c
174
config_found(self, &sa, epsoc_print,
sys/arch/arm/ep93xx/epsoc.c
178
config_search(self, &sa,
sys/arch/arm/ep93xx/epsoc.c
76
epsoc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ep93xx/epsoc.c
85
sc = device_private(self);
sys/arch/arm/ep93xx/epwdog.c
61
epwdog_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ep93xx/epwdog.c
63
struct epwdog_softc *sc = device_private(self);
sys/arch/arm/ep93xx/epwdog.c
71
printf("%s: Cannot map registers", device_xname(self));
sys/arch/arm/ep93xx/epwdog.c
79
printf("%s is already configured\n", device_xname(self));
sys/arch/arm/fdt/a9ptmr_fdt.c
116
FDT_INTR_MPSAFE, a9ptmr_intr, NULL, device_xname(self));
sys/arch/arm/fdt/a9ptmr_fdt.c
118
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/fdt/a9ptmr_fdt.c
121
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/a9ptmr_fdt.c
142
config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/fdt/a9ptmr_fdt.c
145
arm_fdt_cpu_hatch_register(self, a9ptmr_fdt_cpu_hatch);
sys/arch/arm/fdt/a9ptmr_fdt.c
149
pmf_event_register(self, PMFE_SPEED_CHANGED, a9ptmr_fdt_speed_changed, true);
sys/arch/arm/fdt/a9ptmr_fdt.c
78
a9ptmr_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/a9ptmr_fdt.c
80
struct a9ptmr_fdt_softc * const sc = device_private(self);
sys/arch/arm/fdt/a9ptmr_fdt.c
87
sc->sc_dev = self;
sys/arch/arm/fdt/a9ptmr_fdt.c
99
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/fdt/a9tmr_fdt.c
116
FDT_INTR_MPSAFE, a9tmr_intr, NULL, device_xname(self));
sys/arch/arm/fdt/a9tmr_fdt.c
118
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/fdt/a9tmr_fdt.c
121
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/a9tmr_fdt.c
142
config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/fdt/a9tmr_fdt.c
145
arm_fdt_cpu_hatch_register(self, a9tmr_fdt_cpu_hatch);
sys/arch/arm/fdt/a9tmr_fdt.c
149
pmf_event_register(self, PMFE_SPEED_CHANGED, a9tmr_fdt_speed_changed, true);
sys/arch/arm/fdt/a9tmr_fdt.c
78
a9tmr_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/a9tmr_fdt.c
80
struct a9tmr_fdt_softc * const sc = device_private(self);
sys/arch/arm/fdt/a9tmr_fdt.c
87
sc->sc_dev = self;
sys/arch/arm/fdt/a9tmr_fdt.c
99
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/fdt/a9wdt_fdt.c
121
config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/fdt/a9wdt_fdt.c
85
a9wdt_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/a9wdt_fdt.c
87
struct a9wdt_fdt_softc * const sc = device_private(self);
sys/arch/arm/fdt/a9wdt_fdt.c
92
sc->sc_dev = self;
sys/arch/arm/fdt/aaci_fdt.c
105
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/aaci_fdt.c
62
aaci_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/aaci_fdt.c
64
struct aaci_softc * const sc = device_private(self);
sys/arch/arm/fdt/aaci_fdt.c
79
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/fdt/aaci_fdt.c
89
sc->sc_dev = self;
sys/arch/arm/fdt/aaci_fdt.c
97
aaci_intr, sc, device_xname(self));
sys/arch/arm/fdt/aaci_fdt.c
99
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/fdt/acpi_fdt.c
102
fdtbus_register_power_controller(self, faa->faa_phandle,
sys/arch/arm/fdt/acpi_fdt.c
124
config_found(self, &aa, NULL, CFARGS_NONE);
sys/arch/arm/fdt/acpi_fdt.c
90
acpi_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/acpi_fdt.c
99
acpi_fdt_smbios_init(self);
sys/arch/arm/fdt/arm_fdt.c
103
arm_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/arm_fdt.c
114
arm_fdt_efi_init(self);
sys/arch/arm/fdt/arm_fdt.c
121
config_found(self, &faa, NULL, CFARGS_NONE);
sys/arch/arm/fdt/arm_platform.c
109
arm_platform_device_register(device_t self, void *aux)
sys/arch/arm/fdt/cpu_fdt.c
101
config_found(self, faa, NULL, CFARGS(.iattr = "cpu"));
sys/arch/arm/fdt/cpu_fdt.c
77
cpu_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/cpu_fdt.c
87
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/fdt/cpu_fdt.c
98
cpu_attach(self, cpuid);
sys/arch/arm/fdt/cpus_fdt.c
41
fdtbus_cpus_md_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/gic_fdt.c
136
gic_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/gic_fdt.c
138
struct gic_fdt_softc * const sc = device_private(self);
sys/arch/arm/fdt/gic_fdt.c
146
sc->sc_dev = self;
sys/arch/arm/fdt/gic_fdt.c
149
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/fdt/gic_fdt.c
186
sc->sc_gicdev = config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/fdt/gicv3_fdt.c
133
gicv3_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/gicv3_fdt.c
135
struct gicv3_fdt_softc * const sc = device_private(self);
sys/arch/arm/fdt/gicv3_fdt.c
140
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/fdt/gicv3_fdt.c
151
sc->sc_gic.sc_dev = self;
sys/arch/arm/fdt/gicv3_fdt.c
157
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/arm/fdt/gicv3_fdt.c
161
aprint_debug_dev(self, "%d redistributors\n", sc->sc_gic.sc_bsh_r_count);
sys/arch/arm/fdt/gicv3_fdt.c
172
aprint_error_dev(self, "failed to initialize GIC: %d\n", error);
sys/arch/arm/fdt/gtmr_fdt.c
100
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/gtmr_fdt.c
113
prop_dictionary_set_bool(device_properties(self),
sys/arch/arm/fdt/gtmr_fdt.c
119
config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/fdt/gtmr_fdt.c
121
arm_fdt_cpu_hatch_register(self, gtmr_fdt_cpu_hatch);
sys/arch/arm/fdt/gtmr_fdt.c
76
gtmr_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/gtmr_fdt.c
95
FDT_INTR_MPSAFE, gtmr_intr, NULL, device_xname(self));
sys/arch/arm/fdt/gtmr_fdt.c
97
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/fdt/l2cc_fdt.c
63
l2cc_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/l2cc_fdt.c
91
config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/fdt/pcihost_fdt.c
119
pcihost_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/pcihost_fdt.c
121
struct pcihost_softc * const sc = device_private(self);
sys/arch/arm/fdt/pcihost_fdt.c
132
sc->sc_dev = self;
sys/arch/arm/fdt/pcihost_fdt.c
377
pcihost_attach_hook(device_t parent, device_t self,
sys/arch/arm/fdt/plcom_fdt.c
121
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/plcom_fdt.c
124
plcomintr, sc, device_xname(self));
sys/arch/arm/fdt/plcom_fdt.c
126
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/fdt/plcom_fdt.c
65
plcom_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/plcom_fdt.c
67
struct plcom_softc * const sc = device_private(self);
sys/arch/arm/fdt/plcom_fdt.c
88
sc->sc_dev = self;
sys/arch/arm/fdt/plfb_fdt.c
121
plfb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/plfb_fdt.c
123
struct plfb_softc *sc = device_private(self);
sys/arch/arm/fdt/plfb_fdt.c
124
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/fdt/plfb_fdt.c
132
sc->sc_gen.sc_dev = self;
sys/arch/arm/fdt/plfb_fdt.c
188
aprint_normal_dev(self, "switching to framebuffer console\n");
sys/arch/arm/fdt/plfb_fdt.c
197
aprint_normal_dev(self, "disabled\n");
sys/arch/arm/fdt/plfb_fdt.c
201
pmf_device_register1(self, NULL, NULL, plfb_shutdown);
sys/arch/arm/fdt/plfb_fdt.c
249
plfb_shutdown(device_t self, int flags)
sys/arch/arm/fdt/plfb_fdt.c
251
genfb_enable_polling(self);
sys/arch/arm/fdt/plkmi_fdt.c
100
device_xname(self));
sys/arch/arm/fdt/plkmi_fdt.c
102
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/fdt/plkmi_fdt.c
105
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/plkmi_fdt.c
62
plkmi_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/plkmi_fdt.c
64
struct plkmi_softc * const sc = device_private(self);
sys/arch/arm/fdt/plkmi_fdt.c
79
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/fdt/plkmi_fdt.c
90
sc->sc_dev = self;
sys/arch/arm/fdt/plmmc_fdt.c
109
device_xname(self));
sys/arch/arm/fdt/plmmc_fdt.c
111
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/fdt/plmmc_fdt.c
114
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/plmmc_fdt.c
64
plmmc_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/plmmc_fdt.c
66
struct plmmc_softc * const sc = device_private(self);
sys/arch/arm/fdt/plmmc_fdt.c
96
sc->sc_dev = self;
sys/arch/arm/fdt/plrtc_fdt.c
62
plrtc_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/plrtc_fdt.c
64
struct plrtc_softc * const sc = device_private(self);
sys/arch/arm/fdt/plrtc_fdt.c
75
sc->sc_dev = self;
sys/arch/arm/fdt/pmu_fdt.c
100
pmu_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/pmu_fdt.c
102
struct pmu_fdt_softc * const sc = device_private(self);
sys/arch/arm/fdt/pmu_fdt.c
109
sc->sc_dev = self;
sys/arch/arm/fdt/pmu_fdt.c
112
config_interrupts(self, pmu_fdt_init);
sys/arch/arm/fdt/pmu_fdt.c
116
pmu_fdt_init(device_t self)
sys/arch/arm/fdt/pmu_fdt.c
118
struct pmu_fdt_softc * const sc = device_private(self);
sys/arch/arm/fdt/pmu_fdt.c
131
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/pmu_fdt.c
138
aprint_error_dev(self,
sys/arch/arm/fdt/pmu_fdt.c
148
FDT_INTR_MPSAFE, arm_pmu_intr, NULL, device_xname(self));
sys/arch/arm/fdt/pmu_fdt.c
152
aprint_error_dev(self,
sys/arch/arm/fdt/pmu_fdt.c
156
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/pmu_fdt.c
162
aprint_error_dev(self, "couldn't establish interrupts\n");
sys/arch/arm/fdt/pmu_fdt.c
171
aprint_error_dev(self,
sys/arch/arm/fdt/psci_fdt.c
103
fdtbus_register_power_controller(self, phandle,
sys/arch/arm/fdt/psci_fdt.c
89
psci_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/smsh_fdt.c
102
if (ether_getaddr(self, sc->sc_enaddr)) {
sys/arch/arm/fdt/smsh_fdt.c
110
device_xname(self));
sys/arch/arm/fdt/smsh_fdt.c
112
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/arch/arm/fdt/smsh_fdt.c
115
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/fdt/smsh_fdt.c
70
smsh_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/fdt/smsh_fdt.c
72
struct lan9118_softc * const sc = device_private(self);
sys/arch/arm/fdt/smsh_fdt.c
86
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/fdt/smsh_fdt.c
90
sc->sc_dev = self;
sys/arch/arm/footbridge/footbridge.c
145
footbridge_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/footbridge/footbridge.c
147
struct footbridge_softc *sc = device_private(self);
sys/arch/arm/footbridge/footbridge.c
156
sc->sc_dev = self;
sys/arch/arm/footbridge/footbridge.c
162
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/footbridge/footbridge.c
169
panic("%s: Unrecognised ID", device_xname(self));
sys/arch/arm/footbridge/footbridge.c
246
config_found(self, &fba.fba_pba, pcibusprint,
sys/arch/arm/footbridge/footbridge.c
255
config_found(self, &fba.fba_fca, footbridge_print,
sys/arch/arm/footbridge/footbridge.c
71
static void footbridge_attach(device_t parent, device_t self, void *aux);
sys/arch/arm/footbridge/footbridge_clock.c
110
clockattach(device_t parent, device_t self, void *aux)
sys/arch/arm/footbridge/footbridge_clock.c
112
struct clock_softc *sc = device_private(self);
sys/arch/arm/footbridge/footbridge_clock.c
115
sc->sc_dev = self;
sys/arch/arm/footbridge/footbridge_clock.c
82
static void clockattach(device_t parent, device_t self, void *aux);
sys/arch/arm/footbridge/footbridge_com.c
190
fcom_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/footbridge/footbridge_com.c
193
struct fcom_softc *sc = device_private(self);
sys/arch/arm/footbridge/footbridge_com.c
196
sc->sc_dev = self;
sys/arch/arm/footbridge/footbridge_pci.c
126
footbridge_pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/arm/footbridge/isa/dsrtc.c
218
dsrtcattach(device_t parent, device_t self, void *aux)
sys/arch/arm/footbridge/isa/dsrtc.c
220
struct dsrtc_softc *sc = device_private(self);
sys/arch/arm/footbridge/isa/dsrtc.c
223
sc->sc_dev = self;
sys/arch/arm/footbridge/isa/dsrtc.c
240
sc->sc_todr.todr_dev = self;
sys/arch/arm/footbridge/isa/dsrtc.c
62
void dsrtcattach(device_t parent, device_t self, void *aux);
sys/arch/arm/footbridge/isa/isa_machdep.c
480
isa_attach_hook(device_t parent, device_t self, struct isabus_attach_args *iba)
sys/arch/arm/footbridge/isa/isa_machdep.c
494
isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/arm/footbridge/isa/sysbeep_isa.c
61
sysbeep_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/gemini_com.c
103
gemini_com_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/gemini_com.c
105
struct com_softc *sc = device_private(self);
sys/arch/arm/gemini/gemini_com.c
111
sc->sc_dev = self;
sys/arch/arm/gemini/gemini_gmac.c
240
geminigmac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/gemini_gmac.c
242
struct gmac_softc *sc = device_private(self);
sys/arch/arm/gemini/gemini_gmac.c
249
sc->sc_dev = self;
sys/arch/arm/gemini/gemini_gpio.c
288
gpio_defer(device_t self)
sys/arch/arm/gemini/gemini_gpio.c
290
struct gpio_softc * const gpio = device_private(self);
sys/arch/arm/gemini/gemini_gpio.c
324
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/arch/arm/gemini/gemini_gpio.c
342
gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/gemini_gpio.c
345
struct gpio_softc * const gpio = device_private(self);
sys/arch/arm/gemini/gemini_gpio.c
349
panic("\n%s: no intr assigned", device_xname(self));
sys/arch/arm/gemini/gemini_gpio.c
354
gpio->gpio_dev = self;
sys/arch/arm/gemini/gemini_gpio.c
367
strlcpy(gpio->gpio_pic.pic_name, device_xname(self),
sys/arch/arm/gemini/gemini_gpio.c
380
config_interrupts(self, gpio_defer);
sys/arch/arm/gemini/gemini_icu.c
244
geminiicu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/gemini_icu.c
264
sc->sc_dev = self;
sys/arch/arm/gemini/gemini_icu.c
265
device_set_private(self, sc);
sys/arch/arm/gemini/gemini_ipi.c
43
gemini_ipi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/gemini_ipi.c
45
gemini_ipi_softc_t *sc = device_private(self);
sys/arch/arm/gemini/gemini_ipi.c
58
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/gemini/gemini_ipi.c
74
device_xname(self), obio->obio_intr);
sys/arch/arm/gemini/gemini_ipi.c
91
config_found(self, __UNCONST("geminiipm"), NULL, CFARGS_NONE);
sys/arch/arm/gemini/gemini_ipm.c
114
gemini_ipm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/gemini_ipm.c
116
gemini_ipm_softc_t *sc = device_private(self);
sys/arch/arm/gemini/gemini_ipm.c
119
sc->sc_dev = self;
sys/arch/arm/gemini/gemini_ipm.c
123
device_xname(self));
sys/arch/arm/gemini/gemini_ipm.c
154
config_found(self, __UNCONST("gpn"), NULL, CFARGS_NONE);
sys/arch/arm/gemini/gemini_lpc.c
102
device_xname(self), id1, id2, vers);
sys/arch/arm/gemini/gemini_lpc.c
104
device_xname(self), clk, susp);
sys/arch/arm/gemini/gemini_lpc.c
115
config_search(self, NULL,
sys/arch/arm/gemini/gemini_lpc.c
67
gemini_lpc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/gemini_lpc.c
69
gemini_lpc_softc_t *sc = device_private(self);
sys/arch/arm/gemini/gemini_lpc.c
88
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/gemini/gemini_obio.c
156
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/gemini_obio.c
158
struct obio_softc *sc = device_private(self);
sys/arch/arm/gemini/gemini_obio.c
164
sc->sc_dev = self;
sys/arch/arm/gemini/gemini_obio.c
207
config_search(self, NULL,
sys/arch/arm/gemini/gemini_pci.c
238
gemini_pci_attach_hook(device_t parent, device_t self,
sys/arch/arm/gemini/if_gmc.c
744
gmc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/if_gmc.c
747
struct gmc_softc * const sc = device_private(self);
sys/arch/arm/gemini/if_gmc.c
760
sc->sc_dev = self;
sys/arch/arm/gemini/if_gmc.c
775
strlcpy(ifp->if_xname, device_xname(self), sizeof(ifp->if_xname));
sys/arch/arm/gemini/if_gpn.c
662
gpn_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/if_gpn.c
664
struct gpn_softc * const sc = device_private(self);
sys/arch/arm/gemini/if_gpn.c
683
sc->sc_dev = self;
sys/arch/arm/gemini/if_gpn.c
694
strlcpy(ifp->if_xname, device_xname(self), sizeof(ifp->if_xname));
sys/arch/arm/gemini/lpc_com.c
153
lpc_com_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/lpc_com.c
155
struct lpc_com_softc *sc = device_private(self);
sys/arch/arm/gemini/lpc_com.c
161
sc->sc_com.sc_dev = self;
sys/arch/arm/gemini/lpc_com.c
183
aprint_normal("%s: callout polling mode\n", device_xname(self));
sys/arch/arm/gemini/obio_ehci.c
101
const char * const devname = device_xname(self);
sys/arch/arm/gemini/obio_ehci.c
103
sc->sc_dev = self;
sys/arch/arm/gemini/obio_ehci.c
140
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/arm/gemini/obio_ehci.c
97
ehci_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/obio_ehci.c
99
struct ehci_softc * const sc = device_private(self);
sys/arch/arm/gemini/obio_lpchc.c
49
gemini_lpchc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/obio_lpchc.c
51
gemini_lpchc_softc_t *sc = device_private(self);
sys/arch/arm/gemini/obio_lpchc.c
57
sc->sc_dev = self;
sys/arch/arm/gemini/obio_lpchc.c
65
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/gemini/obio_lpchc.c
69
device_xname(self), _LPCHC_ID_DEVICE(r), _LPCHC_ID_REV(r));
sys/arch/arm/gemini/obio_lpchc.c
78
device_xname(self), obio->obio_intr);
sys/arch/arm/gemini/obio_timer.c
197
obiotimer_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/obio_timer.c
199
struct geminitmr_softc *sc = device_private(self);
sys/arch/arm/gemini/obio_timer.c
208
panic("%s: bad lookup", device_xname(self));
sys/arch/arm/gemini/obio_timer.c
220
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/gemini/obio_wdc.c
109
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/arm/gemini/obio_wdc.c
152
aprint_normal_dev(self, "Using polled I/O\n");
sys/arch/arm/gemini/obio_wdc.c
84
wdc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/obio_wdc.c
86
struct wdc_obio_softc *sc = device_private(self);
sys/arch/arm/gemini/obio_wdt.c
74
geminiwdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/gemini/obio_wdt.c
76
geminiwdt_softc_t *sc = device_private(self);
sys/arch/arm/gemini/obio_wdt.c
79
sc->sc_dev = self;
sys/arch/arm/gemini/obio_wdt.c
93
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/imx/if_enet.c
170
enet_attach_common(device_t self)
sys/arch/arm/imx/if_enet.c
172
struct enet_softc *sc = device_private(self);
sys/arch/arm/imx/if_enet.c
199
aprint_error_dev(self,
sys/arch/arm/imx/if_enet.c
205
aprint_normal_dev(self, "Ethernet address %s\n",
sys/arch/arm/imx/if_enet.c
250
mii_attach(self, mii, 0xffffffff, sc->sc_phyid, MII_OFFSET_ANY, 0);
sys/arch/arm/imx/imx23_apbdma.c
439
imx23_apbdma_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_apbdma.c
441
struct imx23_apbdma_softc *const sc = device_private(self);
sys/arch/arm/imx/imx23_apbdma.c
452
sc->sc_dev = self;
sys/arch/arm/imx/imx23_apbdma.c
496
&sc->sc_chan[i], device_xname(self));
sys/arch/arm/imx/imx23_apbdma.c
499
self, ": couldn't install interrupt handler %s\n",
sys/arch/arm/imx/imx23_apbdma.c
513
fdtbus_register_dma_controller(self, phandle,
sys/arch/arm/imx/imx23_clkctrl.c
78
imx23_clkctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_clkctrl.c
80
struct imx23_clkctrl_softc * const sc = device_private(self);
sys/arch/arm/imx/imx23_clkctrl.c
84
sc->sc_dev = self;
sys/arch/arm/imx/imx23_digctl.c
85
imx23_digctl_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_digctl.c
87
struct imx23_digctl_softc * const sc = device_private(self);
sys/arch/arm/imx/imx23_digctl.c
91
sc->sc_dev = self;
sys/arch/arm/imx/imx23_digfilt.c
175
imx23_digfilt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_digfilt.c
177
struct imx23_digfilt_softc * const sc = device_private(self);
sys/arch/arm/imx/imx23_digfilt.c
183
sc->sc_dev = self;
sys/arch/arm/imx/imx23_digfilt.c
268
device_xname(self));
sys/arch/arm/imx/imx23_digfilt.c
270
aprint_error_dev(self, "couldn't establish error interrupt\n");
sys/arch/arm/imx/imx23_icoll.c
324
imx23_icoll_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_icoll.c
326
struct imx23_icoll_softc * const sc = device_private(self);
sys/arch/arm/imx/imx23_icoll.c
334
strlcpy(sc->sc_pic.pic_name, device_xname(self),
sys/arch/arm/imx/imx23_icoll.c
351
int error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/imx/imx23_mmc.c
176
imx23_mmc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_mmc.c
178
struct imx23_mmc_softc *const sc = device_private(self);
sys/arch/arm/imx/imx23_mmc.c
184
sc->sc_dev = self;
sys/arch/arm/imx/imx23_mmc.c
220
device_xname(self));
sys/arch/arm/imx/imx23_mmc.c
222
aprint_error_dev(self, "couldn't establish error interrupt\n");
sys/arch/arm/imx/imx23_pinctrl.c
463
imx23_pinctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_pinctrl.c
465
struct imx23_pinctrl_softc *const sc = device_private(self);
sys/arch/arm/imx/imx23_pinctrl.c
469
sc->sc_dev = self;
sys/arch/arm/imx/imx23_pinctrl.c
527
fdtbus_register_gpio_controller(self, child, &imx23_gpio_funcs);
sys/arch/arm/imx/imx23_platform.c
107
imx23_platform_device_register(device_t self, void *aux)
sys/arch/arm/imx/imx23_rtc.c
79
imx23_rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_rtc.c
81
struct imx23_rtc_softc * const sc = device_private(self);
sys/arch/arm/imx/imx23_rtc.c
85
sc->sc_dev = self;
sys/arch/arm/imx/imx23_timrot.c
105
imx23_timrot_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_timrot.c
107
struct imx23_timrot_softc * const sc = device_private(self);
sys/arch/arm/imx/imx23_timrot.c
138
device_xname(self));
sys/arch/arm/imx/imx23_timrot.c
140
aprint_error_dev(self,
sys/arch/arm/imx/imx23_timrot.c
153
device_xname(self));
sys/arch/arm/imx/imx23_timrot.c
155
aprint_error_dev(self,
sys/arch/arm/imx/imx23_usbc.c
128
config_found(self, &iaa, NULL, CFARGS_NONE);
sys/arch/arm/imx/imx23_usbc.c
81
imx23_usbc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_usbc.c
83
struct imx23_imxusbc_softc * const sc = device_private(self);
sys/arch/arm/imx/imx23_usbc.c
89
sc->sc_imxusbc.sc_dev = self;
sys/arch/arm/imx/imx23_usbphy.c
80
imx23_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx23_usbphy.c
82
struct imx23_usbphy_softc * const sc = device_private(self);
sys/arch/arm/imx/imx23_usbphy.c
87
sc->sc_dev = self;
sys/arch/arm/imx/imx31_ahb.c
151
ahb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx31_ahb.c
153
struct ahb_softc *sc = device_private(self);
sys/arch/arm/imx/imx31_ahb.c
157
sc->sc_dev = self;
sys/arch/arm/imx/imx31_ahb.c
178
config_search(self, &ahba,
sys/arch/arm/imx/imx31_aips.c
148
imxaips_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx31_aips.c
150
struct imxaips_softc * const sc = device_private(self);
sys/arch/arm/imx/imx31_aips.c
160
config_search(self, sc,
sys/arch/arm/imx/imx31_clock.c
101
panic("%s: invalid address %p", device_xname(self), (void *)aipsa->aipsa_addr);
sys/arch/arm/imx/imx31_clock.c
107
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/imx/imx31_clock.c
80
imxclock_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx31_clock.c
82
struct imxclock_softc *sc = device_private(self);
sys/arch/arm/imx/imx31_clock.c
87
sc->sc_dev = self;
sys/arch/arm/imx/imx31_gpio.c
273
gpio_defer(device_t self)
sys/arch/arm/imx/imx31_gpio.c
275
struct gpio_softc * const gpio = device_private(self);
sys/arch/arm/imx/imx31_gpio.c
306
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/arch/arm/imx/imx31_gpio.c
334
gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx31_gpio.c
337
struct gpio_softc * const gpio = device_private(self);
sys/arch/arm/imx/imx31_gpio.c
355
strlcpy(gpio->gpio_pic.pic_name, device_xname(self),
sys/arch/arm/imx/imx31_gpio.c
364
config_interrupts(self, gpio_defer);
sys/arch/arm/imx/imx31_icu.c
210
avic_match(device_t parent, cfdata_t self, void *aux)
sys/arch/arm/imx/imx31_icu.c
221
avic_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx31_icu.c
223
struct avic_softc * const avic = device_private(self);
sys/arch/arm/imx/imx31_icu.c
228
KASSERT(device_unit(self) == 0);
sys/arch/arm/imx/imx31_icu.c
243
strlcpy(avic->avic_pic.pic_name, device_xname(self),
sys/arch/arm/imx/imx31_uart.c
63
imx31_uart_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx31_uart.c
67
imxuart_attach_common(parent, self,
sys/arch/arm/imx/imx51_axi.c
70
axi_attach(device_t parent __unused, device_t self, void *aux __unused)
sys/arch/arm/imx/imx51_axi.c
78
sc = device_private(self);
sys/arch/arm/imx/imx51_axi.c
89
config_search(self, &aa,
sys/arch/arm/imx/imx51_axi.c
91
config_search(self, &aa,
sys/arch/arm/imx/imx51_ccm.c
101
struct imxccm_softc * const sc = device_private(self);
sys/arch/arm/imx/imx51_ccm.c
106
sc->sc_dev = self;
sys/arch/arm/imx/imx51_ccm.c
129
aprint_verbose_dev(self, "CPU clock=%d, UART clock=%d\n",
sys/arch/arm/imx/imx51_ccm.c
132
aprint_verbose_dev(self, "PLL1 clock=%d, PLL2 clock=%d, PLL3 clock=%d\n",
sys/arch/arm/imx/imx51_ccm.c
136
aprint_verbose_dev(self,
sys/arch/arm/imx/imx51_ccm.c
142
aprint_verbose_dev(self, "ESDHC1 clock=%d\n",
sys/arch/arm/imx/imx51_ccm.c
99
imxccm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_clock.c
103
panic("%s: invalid address %p", device_xname(self), (void *)aa->aa_addr);
sys/arch/arm/imx/imx51_clock.c
108
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/imx/imx51_clock.c
84
imxclock_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_clock.c
86
struct imxclock_softc *sc = device_private(self);
sys/arch/arm/imx/imx51_clock.c
91
sc->sc_dev = self;
sys/arch/arm/imx/imx51_esdhc.c
130
aprint_error_dev(self, "can't establish interrupt\n");
sys/arch/arm/imx/imx51_esdhc.c
135
aprint_error_dev(self, "can't initialize host\n");
sys/arch/arm/imx/imx51_esdhc.c
139
if (!pmf_device_register1(self, sdhc_suspend, sdhc_resume,
sys/arch/arm/imx/imx51_esdhc.c
141
aprint_error_dev(self,
sys/arch/arm/imx/imx51_esdhc.c
84
sdhc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_esdhc.c
86
struct sdhc_axi_softc *sc = device_private(self);
sys/arch/arm/imx/imx51_esdhc.c
92
sc->sc_sdhc.sc_dev = self;
sys/arch/arm/imx/imx51_esdhc.c
97
aprint_error_dev(self, "can't map\n");
sys/arch/arm/imx/imx51_gpio.c
103
aprint_error_dev(self, "missing irqbase in config\n");
sys/arch/arm/imx/imx51_gpio.c
130
imxgpio_attach_common(self);
sys/arch/arm/imx/imx51_gpio.c
89
imxgpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_gpio.c
91
struct imxgpio_softc * const gpio = device_private(self);
sys/arch/arm/imx/imx51_gpio.c
98
aprint_error_dev(self, "missing intr in config\n");
sys/arch/arm/imx/imx51_i2c.c
61
imxi2c_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_i2c.c
68
imxi2c_attach_common(self,
sys/arch/arm/imx/imx51_iomux.c
83
iomux_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_iomux.c
86
struct iomux_softc * const iomux = device_private(self);
sys/arch/arm/imx/imx51_spi.c
116
imxspi_attach_common(self);
sys/arch/arm/imx/imx51_spi.c
76
imxspi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_spi.c
78
struct imx51spi_softc *isc = device_private(self);
sys/arch/arm/imx/imx51_spi.c
82
int cf_flags = device_cfdata(self)->cf_flags;
sys/arch/arm/imx/imx51_tzic.c
107
tzic_match(device_t parent, cfdata_t self, void *aux)
sys/arch/arm/imx/imx51_tzic.c
120
tzic_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_tzic.c
122
struct tzic_softc *tzic = device_private(self);
sys/arch/arm/imx/imx51_tzic.c
127
KASSERT(device_unit(self) == 0);
sys/arch/arm/imx/imx51_tzic.c
132
tzic->sc_dev = self;
sys/arch/arm/imx/imx51_tzic.c
153
strlcpy(tzic->sc_pic.pic_name, device_xname(self),
sys/arch/arm/imx/imx51_uart.c
66
imx51_uart_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_uart.c
70
imxuart_attach_common(parent, self,
sys/arch/arm/imx/imx51_usb.c
58
imxusbc_attach_common(device_t parent, device_t self, bus_space_tag_t iot,
sys/arch/arm/imx/imx51_usb.c
61
struct imxusbc_softc *sc = device_private(self);
sys/arch/arm/imx/imx51_usb.c
63
sc->sc_dev = self;
sys/arch/arm/imx/imx51_usb.c
74
config_search(self, NULL,
sys/arch/arm/imx/imx51_wdog.c
56
wdog_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx51_wdog.c
60
wdog_attach_common(parent, self, aa->aa_iot, aa->aa_addr,
sys/arch/arm/imx/imx_genfb.c
111
pmf_device_register1(self, NULL, NULL, imx_genfb_shutdown);
sys/arch/arm/imx/imx_genfb.c
131
imx_genfb_consoledev = self;
sys/arch/arm/imx/imx_genfb.c
168
imx_genfb_shutdown(device_t self, int flags)
sys/arch/arm/imx/imx_genfb.c
170
genfb_enable_polling(self);
sys/arch/arm/imx/imx_genfb.c
84
imx_genfb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imx_genfb.c
86
struct imx_genfb_softc *sc = device_private(self);
sys/arch/arm/imx/imx_genfb.c
88
prop_dictionary_t cfg = device_properties(self);
sys/arch/arm/imx/imx_genfb.c
91
sc->sc_gen.sc_dev = self;
sys/arch/arm/imx/imxgpio.c
326
imxgpio_attach_common(device_t self)
sys/arch/arm/imx/imxgpio.c
328
struct imxgpio_softc * const gpio = device_private(self);
sys/arch/arm/imx/imxgpio.c
330
gpio->gpio_dev = self;
sys/arch/arm/imx/imxgpio.c
334
strlcpy(gpio->gpio_pic.pic_name, device_xname(self),
sys/arch/arm/imx/imxi2c.c
103
imxi2c_attach_common(device_t self, bus_space_tag_t iot, paddr_t iobase,
sys/arch/arm/imx/imxi2c.c
106
struct imxi2c_softc *imxsc = device_private(self);
sys/arch/arm/imx/imxi2c.c
113
sc->sc_dev = self;
sys/arch/arm/imx/imxsnvs.c
100
aprint_error_dev(self, "cannot enable RTC\n");
sys/arch/arm/imx/imxsnvs.c
106
sc->sc_todr.todr_dev = self;
sys/arch/arm/imx/imxsnvs.c
68
imxsnvs_attach_common(device_t parent __unused, device_t self,
sys/arch/arm/imx/imxsnvs.c
75
sc = device_private(self);
sys/arch/arm/imx/imxsnvs.c
76
sc->sc_dev = self;
sys/arch/arm/imx/imxsnvs.c
83
aprint_error_dev(self, "Cannot map registers\n");
sys/arch/arm/imx/imxsnvs.c
89
aprint_verbose_dev(self, "id=0x%llx, ver=%lld.%lld, ip_era=0x%llx, "
sys/arch/arm/imx/imxspi.c
121
spibus_attach(self, &sc->sc_spi);
sys/arch/arm/imx/imxspi.c
85
imxspi_attach_common(device_t self)
sys/arch/arm/imx/imxspi.c
87
struct imxspi_softc * const sc = device_private(self);
sys/arch/arm/imx/imxspi.c
93
sc->sc_dev = self;
sys/arch/arm/imx/imxuart.c
2376
imxuart_cleanup(device_t self, int how)
sys/arch/arm/imx/imxuart.c
2383
struct imxuart_softc *sc = device_private(self);
sys/arch/arm/imx/imxuart.c
2394
imxuart_suspend(device_t self PMF_FN_ARGS)
sys/arch/arm/imx/imxuart.c
2396
struct imxuart_softc *sc = device_private(self);
sys/arch/arm/imx/imxuart.c
2407
imxuart_resume(device_t self PMF_FN_ARGS)
sys/arch/arm/imx/imxuart.c
2409
struct imxuart_softc *sc = device_private(self);
sys/arch/arm/imx/imxuart.c
287
imxuart_attach_common(device_t parent, device_t self,
sys/arch/arm/imx/imxuart.c
290
struct imxuart_softc *sc = device_private(self);
sys/arch/arm/imx/imxuart.c
297
sc->sc_dev = self;
sys/arch/arm/imx/imxuart.c
519
imxuart_detach(device_t self, int flags)
sys/arch/arm/imx/imxuart.c
521
struct imxuart_softc *sc = device_private(self);
sys/arch/arm/imx/imxuart.c
531
mn = device_unit(self);
sys/arch/arm/imx/imxuart.c
571
imxuart_activate(device_t self, enum devact act)
sys/arch/arm/imx/imxuart.c
573
struct imxuart_softc *sc = device_private(self);
sys/arch/arm/imx/imxuartvar.h
146
void imxuart_attach_common(device_t parent, device_t self,
sys/arch/arm/imx/imxusb.c
100
hsc->sc_dev = self;
sys/arch/arm/imx/imxusb.c
122
aprint_error_dev(self, "can't subregion\n");
sys/arch/arm/imx/imxusb.c
129
aprint_normal_dev(self,
sys/arch/arm/imx/imxusb.c
138
aprint_normal_dev(self, "");
sys/arch/arm/imx/imxusb.c
213
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/arch/arm/imx/imxusb.c
218
hsc->sc_child = config_found(self, &hsc->sc_bus, usbctlprint,
sys/arch/arm/imx/imxusb.c
82
imxehci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/imx/imxusb.c
86
struct imxehci_softc *sc = device_private(self);
sys/arch/arm/imx/imxusb.c
95
sc->sc_dev = self;
sys/arch/arm/imx/imxwdog.c
134
wdog_attach_common(device_t parent, device_t self,
sys/arch/arm/imx/imxwdog.c
137
struct wdog_softc *sc = device_private(self);
sys/arch/arm/imx/imxwdog.c
140
sc->sc_dev = self;
sys/arch/arm/imx/imxwdog.c
143
aprint_error_dev(self, "can't map\n");
sys/arch/arm/imx/imxwdog.c
151
if (device_cfdata(self)->cf_flags & 1)
sys/arch/arm/imx/imxwdog.c
167
sc->sc_smw.smw_name = device_xname(self);
sys/arch/arm/imx/imxwdog.c
174
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/arm/imx/imxwdog.c
180
aprint_error_dev(self,
sys/arch/arm/iomd/iomd.c
138
iomdattach(device_t parent, device_t self, void *aux)
sys/arch/arm/iomd/iomd.c
140
struct iomd_softc *sc = device_private(self);
sys/arch/arm/iomd/iomd.c
153
sc->sc_dev = self;
sys/arch/arm/iomd/iomd.c
158
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/iomd/iomd.c
193
aprint_normal("%s: ", device_xname(self));
sys/arch/arm/iomd/iomd.c
223
aprint_normal("%s: I/O timings: combo %c, NPCCS1/2 %c", device_xname(self),
sys/arch/arm/iomd/iomd.c
255
config_found(self, &ia, iomdprint, CFARGS_NONE);
sys/arch/arm/iomd/iomd.c
259
panic("%s: Cannot map kbd registers", device_xname(self));
sys/arch/arm/iomd/iomd.c
264
config_found(self, &ia, iomdprint, CFARGS_NONE);
sys/arch/arm/iomd/iomd.c
269
panic("%s: Cannot map iic registers", device_xname(self));
sys/arch/arm/iomd/iomd.c
273
config_found(self, &ia, iomdprint, CFARGS_NONE);
sys/arch/arm/iomd/iomd.c
282
panic("%s: Cannot map opms registers", device_xname(self));
sys/arch/arm/iomd/iomd.c
286
config_found(self, &ia, iomdprint, CFARGS_NONE);
sys/arch/arm/iomd/iomd.c
293
panic("%s: Cannot map qms registers", device_xname(self));
sys/arch/arm/iomd/iomd.c
296
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/iomd/iomd.c
300
config_found(self, &ia, iomdprint, CFARGS_NONE);
sys/arch/arm/iomd/iomd.c
83
static void iomdattach(device_t parent, device_t self, void *aux);
sys/arch/arm/iomd/iomd_clock.c
135
clockattach(device_t parent, device_t self, void *aux)
sys/arch/arm/iomd/iomd_clock.c
137
struct clock_softc *sc = device_private(self);
sys/arch/arm/iomd/iomd_clock.c
140
sc->sc_dev = self;
sys/arch/arm/iomd/iomd_clock.c
82
static void clockattach(device_t parent, device_t self, void *aux);
sys/arch/arm/iomd/iomdiic.c
127
iomdiic_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/iomd/iomdiic.c
129
struct iomdiic_softc *sc = device_private(self);
sys/arch/arm/iomd/iomdiic.c
133
sc->sc_dev = self;
sys/arch/arm/iomd/iomdkbc.c
119
iomdkbc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/iomd/iomdkbc.c
123
struct iomdkbc_softc *sc = device_private(self);
sys/arch/arm/iomd/iomdkbc.c
126
sc->sc_dev = self;
sys/arch/arm/iomd/iomdkbc.c
254
iomdkbc_intr(void *self)
sys/arch/arm/iomd/iomdkbc.c
256
struct iomdkbc_internal *t = self;
sys/arch/arm/iomd/qms.c
108
qms_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/iomd/qms.c
110
struct qms_softc *sc = device_private(self);
sys/arch/arm/iomd/qms.c
114
sc->sc_dev = self;
sys/arch/arm/iomd/vidc20.c
124
vidcattach(device_t parent, device_t self, void *aux)
sys/arch/arm/iomd/vidc20.c
126
struct vidc20_softc *sc = device_private(self);
sys/arch/arm/iomd/vidc20.c
129
sc->sc_dev = self;
sys/arch/arm/iomd/vidc20.c
152
config_search(self, NULL,
sys/arch/arm/iomd/vidcaudio.c
239
vidcaudio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/iomd/vidcaudio.c
241
struct vidcaudio_softc *sc = device_private(self);
sys/arch/arm/iomd/vidcaudio.c
244
sc->sc_dev = self;
sys/arch/arm/iomd/vidcaudio.c
274
sc->sc_ih.ih_name = device_xname(self);
sys/arch/arm/iomd/vidcaudio.c
278
device_xname(self), sc->sc_dma_intr);
sys/arch/arm/iomd/vidcaudio.c
284
beepdev = audio_attach_mi(&vidcaudio_hw_if, sc, self);
sys/arch/arm/iomd/vidcvideo.c
308
vidcvideo_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/iomd/vidcvideo.c
310
struct vidcvideo_softc *sc = device_private(self);
sys/arch/arm/iomd/vidcvideo.c
315
sc->sc_dev = self;
sys/arch/arm/iomd/vidcvideo.c
352
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/arm/ixp12x0/ixp12x0_clk.c
153
ixpclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ixp12x0/ixp12x0_clk.c
162
sc = device_private(self);
sys/arch/arm/ixp12x0/ixp12x0_clk.c
173
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/ixp12x0/ixp12x0_clk.c
176
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/ixp12x0/ixp12x0_clk.c
203
device_xname(self),
sys/arch/arm/ixp12x0/ixp12x0_pci.c
122
ixp12x0_pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/arm/ixp12x0/ixpsip.c
64
ixpsip_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ixp12x0/ixpsip.c
66
struct ixpsip_softc *sc = device_private(self);
sys/arch/arm/ixp12x0/ixpsip.c
74
config_search(self, NULL,
sys/arch/arm/mainbus/cpu_mainbus.c
118
cpu_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/mainbus/cpu_mainbus.c
122
cpu_attach(self, mb->mb_core);
sys/arch/arm/mainbus/mainbus.c
169
mainbusattach(device_t parent, device_t self, void *aux)
sys/arch/arm/mainbus/mainbus.c
174
config_search(self, NULL,
sys/arch/arm/marvell/dove.c
374
dove_pmu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/marvell/dove.c
376
struct dove_pmu_softc *sc = device_private(self);
sys/arch/arm/marvell/dove.c
383
panic("%s: Cannot map core registers", device_xname(self));
sys/arch/arm/marvell/dove.c
387
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/marvell/dove.c
391
panic("%s: Cannot map SRAM", device_xname(self));
sys/arch/arm/marvell/dove.c
415
device_xname(self));
sys/arch/arm/marvell/dove.c
419
mvsocpmu_attach(parent, self, aux);
sys/arch/arm/marvell/mvsoc.c
1036
mvsoc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/marvell/mvsoc.c
1038
struct mvsoc_softc *sc = device_private(self);
sys/arch/arm/marvell/mvsoc.c
1045
sc->sc_dev = self;
sys/arch/arm/marvell/mvsoc.c
1051
aprint_error_dev(self, "can't map registers\n");
sys/arch/arm/marvell/mvsoc.c
1070
device_xname(self),
sys/arch/arm/marvell/mvsoc.c
1107
aprint_normal_dev(self, "%s%d clock disabled\n",
sys/arch/arm/marvell/mvsoc_sdhc.c
103
aprint_error_dev(self, "couldn't initialize host, error %d\n",
sys/arch/arm/marvell/mvsoc_sdhc.c
70
mvsoc_sdhc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/marvell/mvsoc_sdhc.c
72
struct sdhc_softc *sc = device_private(self);
sys/arch/arm/marvell/mvsoc_sdhc.c
77
sc->sc_dev = self;
sys/arch/arm/marvell/mvsoc_sdhc.c
91
aprint_error_dev(self, "can't map registers\n");
sys/arch/arm/marvell/mvsocgpp.c
131
mvsocgpp_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/marvell/mvsocgpp.c
133
struct mvsocgpp_softc *sc = device_private(self);
sys/arch/arm/marvell/mvsocgpp.c
148
sc->sc_dev = self;
sys/arch/arm/marvell/mvsocgpp.c
153
aprint_error_dev(self, "can't map registers\n");
sys/arch/arm/marvell/mvsocgpp.c
158
aprint_normal_dev(self, "%d gpio pins\n", gpp_npins);
sys/arch/arm/marvell/mvsocgpp.c
160
aprint_error_dev(self, "gpp_npins not initialized\n");
sys/arch/arm/marvell/mvsocgpp.c
176
"%s[%d:%d]", device_xname(self), i + 7, i);
sys/arch/arm/marvell/mvsocgpp.c
180
aprint_normal_dev(self, "interrupts %d..%d",
sys/arch/arm/marvell/mvsocgpp.c
233
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/arch/arm/marvell/mvsocpmu.c
85
mvsocpmu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/marvell/mvsocpmu.c
87
struct mvsocpmu_softc *sc = device_private(self);
sys/arch/arm/marvell/mvsocpmu.c
92
sc->sc_dev = self;
sys/arch/arm/marvell/mvsocrtc.c
100
sc->sc_todr.todr_dev = self;
sys/arch/arm/marvell/mvsocrtc.c
83
mvsocrtc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/marvell/mvsocrtc.c
85
struct mvsocrtc_softc * const sc = device_private(self);
sys/arch/arm/marvell/mvsocrtc.c
88
sc->sc_dev = self;
sys/arch/arm/marvell/mvsocrtc.c
96
aprint_error_dev(self, "failed to subregion register space\n");
sys/arch/arm/marvell/mvsoctmr.c
131
mvsoctmr_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/marvell/mvsoctmr.c
133
struct mvsoctmr_softc *sc = device_private(self);
sys/arch/arm/marvell/mvsoctmr.c
143
sc->sc_dev = self;
sys/arch/arm/marvell/mvsoctmr.c
147
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/marvell/mvsoctmr.c
165
mvsoctmr_timecounter.tc_name = device_xname(self);
sys/arch/arm/marvell/mvsoctmr.c
190
sc->sc_wdog.smw_name = device_xname(self);
sys/arch/arm/marvell/mvsoctmr.c
197
aprint_error_dev(self,
sys/arch/arm/marvell/mvsocts.c
119
aprint_error_dev(self, "unknown model: 0x%x", mva->mva_model);
sys/arch/arm/marvell/mvsocts.c
127
strlcpy(sc->sc_sensor.desc, device_xname(self),
sys/arch/arm/marvell/mvsocts.c
130
aprint_error_dev(self, "Unable to attach sysmon\n");
sys/arch/arm/marvell/mvsocts.c
136
sc->sc_sme->sme_name = device_xname(self);
sys/arch/arm/marvell/mvsocts.c
140
aprint_error_dev(self, "Unable to register with sysmon\n");
sys/arch/arm/marvell/mvsocts.c
85
mvsocts_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/marvell/mvsocts.c
87
struct mvsocts_softc *sc = device_private(self);
sys/arch/arm/marvell/mvsocts.c
93
sc->sc_dev = self;
sys/arch/arm/marvell/mvsocts.c
97
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/nvidia/tegra124_car.c
744
tegra124_car_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra124_car.c
746
struct tegra124_car_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra124_car.c
758
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra124_car.c
773
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/nvidia/tegra124_car.c
781
fdtbus_register_clock_controller(self, phandle,
sys/arch/arm/nvidia/tegra124_car.c
783
fdtbus_register_reset_controller(self, phandle,
sys/arch/arm/nvidia/tegra124_car.c
788
tegra124_car_rnd_attach(self);
sys/arch/arm/nvidia/tegra124_car.c
915
tegra124_car_rnd_attach(device_t self)
sys/arch/arm/nvidia/tegra124_car.c
917
struct tegra124_car_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra124_cpu.c
139
tegra124_cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra124_cpu.c
144
config_finalize_register(self, tegra124_cpu_init_cpufreq);
sys/arch/arm/nvidia/tegra124_xusbpad.c
100
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra124_xusbpad.c
111
tegra_xusbpad_register(self, &tegra124_xusbpad_ops);
sys/arch/arm/nvidia/tegra124_xusbpad.c
87
tegra124_xusbpad_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra124_xusbpad.c
89
struct tegra124_xusbpad_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra210_car.c
758
tegra210_car_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra210_car.c
760
struct tegra210_car_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra210_car.c
772
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra210_car.c
787
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/nvidia/tegra210_car.c
795
fdtbus_register_clock_controller(self, phandle,
sys/arch/arm/nvidia/tegra210_car.c
797
fdtbus_register_reset_controller(self, phandle,
sys/arch/arm/nvidia/tegra210_car.c
806
device_printf(self, "clk %s (parent %s): ", clk->name,
sys/arch/arm/nvidia/tegra210_xusbpad.c
1013
tegra_xusbpad_register(self, &tegra210_xusbpad_ops);
sys/arch/arm/nvidia/tegra210_xusbpad.c
1073
tegra210_xusbpad_phy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra210_xusbpad.c
1075
struct tegra210_xusbpad_phy_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra210_xusbpad.c
1078
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra210_xusbpad.c
1085
fdtbus_register_phy_controller(self, sc->sc_phandle, &tegra210_xusbpad_phy_funcs);
sys/arch/arm/nvidia/tegra210_xusbpad.c
981
tegra210_xusbpad_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra210_xusbpad.c
983
struct tegra210_xusbpad_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra210_xusbpad.c
999
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_ahcisata.c
127
tegra_ahcisata_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_ahcisata.c
129
struct tegra_ahcisata_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_ahcisata.c
194
sc->sc.sc_atac.atac_dev = self;
sys/arch/arm/nvidia/tegra_ahcisata.c
212
aprint_error_dev(self, "couldn't acquire %s\n", supply);
sys/arch/arm/nvidia/tegra_ahcisata.c
216
aprint_error_dev(self, "couldn't enable %s\n", supply);
sys/arch/arm/nvidia/tegra_ahcisata.c
229
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_ahcisata.c
234
ahci_intr, &sc->sc, device_xname(self));
sys/arch/arm/nvidia/tegra_ahcisata.c
236
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_ahcisata.c
240
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_ahcisata.c
365
device_t self = sc->sc.sc_atac.atac_dev;
sys/arch/arm/nvidia/tegra_ahcisata.c
375
aprint_error_dev(self, "couldn't set sata-oob rate: %d\n",
sys/arch/arm/nvidia/tegra_ahcisata.c
383
aprint_error_dev(self, "couldn't set sata rate: %d\n", error);
sys/arch/arm/nvidia/tegra_ahcisata.c
398
aprint_error_dev(self, "couldn't enable sata: %d\n", error);
sys/arch/arm/nvidia/tegra_ahcisata.c
403
aprint_error_dev(self, "couldn't enable sata-oob: %d\n", error);
sys/arch/arm/nvidia/tegra_ahcisata.c
411
aprint_error_dev(self, "couldn't enable cml1: %d\n", error);
sys/arch/arm/nvidia/tegra_ahcisata.c
420
aprint_error_dev(self, "failed to enable PHY #%d\n", n);
sys/arch/arm/nvidia/tegra_apbdma.c
109
tegra_apbdma_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_apbdma.c
111
struct tegra_apbdma_softc *sc = device_private(self);
sys/arch/arm/nvidia/tegra_apbdma.c
145
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_apbdma.c
171
fdtbus_register_dma_controller(self, phandle, &tegra_apbdma_funcs);
sys/arch/arm/nvidia/tegra_cec.c
128
tegra_cec_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_cec.c
130
struct tegra_cec_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_cec.c
132
prop_dictionary_t prop = device_properties(self);
sys/arch/arm/nvidia/tegra_cec.c
154
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_cec.c
169
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_cec.c
174
FDT_INTR_MPSAFE, tegra_cec_intr, sc, device_xname(self));
sys/arch/arm/nvidia/tegra_cec.c
176
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_cec.c
180
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_cec.c
188
aprint_error_dev(self, "couldn't enable cec: %d\n", error);
sys/arch/arm/nvidia/tegra_cec.c
202
sc->sc_cecdev = config_found(self, &caa, NULL, CFARGS_NONE);
sys/arch/arm/nvidia/tegra_com.c
105
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_com.c
130
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_com.c
135
IPL_SERIAL, FDT_INTR_MPSAFE, comintr, sc, device_xname(self));
sys/arch/arm/nvidia/tegra_com.c
137
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_com.c
140
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_com.c
82
tegra_com_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_com.c
84
struct tegra_com_softc * const tsc = device_private(self);
sys/arch/arm/nvidia/tegra_drm.c
111
tegra_drm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_drm.c
113
struct tegra_drm_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_drm.c
116
prop_dictionary_t prop = device_properties(self);
sys/arch/arm/nvidia/tegra_drm.c
124
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_drm.c
132
aprint_error_dev(self, "unable to create workqueue\n");
sys/arch/arm/nvidia/tegra_drm.c
142
aprint_error_dev(self, "couldn't get clock host1x\n");
sys/arch/arm/nvidia/tegra_drm.c
147
aprint_error_dev(self, "couldn't get reset host1x\n");
sys/arch/arm/nvidia/tegra_drm.c
183
aprint_error_dev(self, "couldn't acquire %s\n",
sys/arch/arm/nvidia/tegra_drm.c
188
aprint_error_dev(self, "couldn't enable %s\n",
sys/arch/arm/nvidia/tegra_drm.c
198
aprint_error_dev(self, "couldn't enable clock host1x: %d\n",
sys/arch/arm/nvidia/tegra_drm.c
208
aprint_error_dev(self, "couldn't allocate DRM device\n");
sys/arch/arm/nvidia/tegra_drm.c
227
aprint_error_dev(self, "couldn't register DRM device: %d\n",
sys/arch/arm/nvidia/tegra_drm.c
233
aprint_normal_dev(self, "initialized %s %d.%d.%d %s on minor %d\n",
sys/arch/arm/nvidia/tegra_drm.c
302
tegra_task_schedule(device_t self, struct tegra_drm_task *task)
sys/arch/arm/nvidia/tegra_drm.c
304
struct tegra_drm_softc *sc = device_private(self);
sys/arch/arm/nvidia/tegra_ehci.c
110
sc->sc.sc_dev = self;
sys/arch/arm/nvidia/tegra_ehci.c
129
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_ehci.c
134
FDT_INTR_MPSAFE, ehci_intr, &sc->sc, device_xname(self));
sys/arch/arm/nvidia/tegra_ehci.c
136
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_ehci.c
140
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_ehci.c
144
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/arch/arm/nvidia/tegra_ehci.c
148
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/arch/arm/nvidia/tegra_ehci.c
89
tegra_ehci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_ehci.c
91
struct tegra_ehci_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_fb.c
101
device_t self = sc->sc_dev;
sys/arch/arm/nvidia/tegra_fb.c
104
.da_dev = self,
sys/arch/arm/nvidia/tegra_fb.c
115
aprint_error_dev(self, "failed to attach drmfb: %d\n", error);
sys/arch/arm/nvidia/tegra_fb.c
119
pmf_device_register1(self, NULL, NULL, tegra_fb_shutdown);
sys/arch/arm/nvidia/tegra_fb.c
123
tegra_fb_shutdown(device_t self, int flags)
sys/arch/arm/nvidia/tegra_fb.c
125
struct tegra_fb_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_fb.c
78
tegra_fb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_fb.c
80
struct tegra_fb_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_fb.c
84
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_fuse.c
76
tegra_fuse_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_fuse.c
78
struct tegra_fuse_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_fuse.c
99
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_gpio.c
164
tegra_gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_gpio.c
166
struct tegra_gpio_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_gpio.c
178
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_gpio.c
195
fdtbus_register_gpio_controller(self, faa->faa_phandle,
sys/arch/arm/nvidia/tegra_hdaudio.c
100
tegra_hdaudio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_hdaudio.c
102
struct tegra_hdaudio_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_hdaudio.c
153
sc->sc.sc_dev = self;
sys/arch/arm/nvidia/tegra_hdaudio.c
165
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_hdaudio.c
170
tegra_hdaudio_intr, sc, device_xname(self));
sys/arch/arm/nvidia/tegra_hdaudio.c
172
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_hdaudio.c
176
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_hdaudio.c
185
hdaudio_attach(self, &sc->sc);
sys/arch/arm/nvidia/tegra_hdaudio.c
191
device_t self = sc->sc.sc_dev;
sys/arch/arm/nvidia/tegra_hdaudio.c
202
aprint_error_dev(self, "couldn't set hda frequency: %d\n",
sys/arch/arm/nvidia/tegra_hdaudio.c
208
aprint_error_dev(self, "couldn't enable clock hda: %d\n",
sys/arch/arm/nvidia/tegra_hdaudio.c
216
aprint_error_dev(self, "couldn't enable clock hda2hdmi: %d\n",
sys/arch/arm/nvidia/tegra_hdaudio.c
224
aprint_error_dev(self,
sys/arch/arm/nvidia/tegra_hdaudio.c
230
aprint_error_dev(self,
sys/arch/arm/nvidia/tegra_hdaudio.c
265
tegra_hdaudio_detach(device_t self, int flags)
sys/arch/arm/nvidia/tegra_hdaudio.c
267
struct tegra_hdaudio_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_hdaudio.c
282
tegra_hdaudio_rescan(device_t self, const char *ifattr, const int *locs)
sys/arch/arm/nvidia/tegra_hdaudio.c
284
struct tegra_hdaudio_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_hdaudio.c
290
tegra_hdaudio_childdet(device_t self, device_t child)
sys/arch/arm/nvidia/tegra_hdaudio.c
292
struct tegra_hdaudio_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_i2c.c
102
tegra_i2c_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_i2c.c
104
struct tegra_i2c_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_i2c.c
127
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_i2c.c
129
sc->sc_cid = device_unit(self);
sys/arch/arm/nvidia/tegra_i2c.c
137
cv_init(&sc->sc_intr_wait, device_xname(self));
sys/arch/arm/nvidia/tegra_i2c.c
143
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_i2c.c
148
FDT_INTR_MPSAFE, tegra_i2c_intr, sc, device_xname(self));
sys/arch/arm/nvidia/tegra_i2c.c
150
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_i2c.c
154
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_i2c.c
163
aprint_error_dev(self, "couldn't set frequency: %d\n", error);
sys/arch/arm/nvidia/tegra_i2c.c
168
aprint_error_dev(self, "couldn't enable clock: %d\n", error);
sys/arch/arm/nvidia/tegra_i2c.c
181
iicbus_attach(self, &sc->sc_ic);
sys/arch/arm/nvidia/tegra_lic.c
100
error = fdtbus_register_interrupt_controller(self, faa->faa_phandle,
sys/arch/arm/nvidia/tegra_lic.c
117
aprint_error_dev(self, "can't map IC#%d: %d\n",
sys/arch/arm/nvidia/tegra_lic.c
87
tegra_lic_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_lic.c
89
struct tegra_lic_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_lic.c
97
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_mc.c
114
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_mc.c
119
FDT_INTR_MPSAFE, tegra_mc_intr, sc, device_xname(self));
sys/arch/arm/nvidia/tegra_mc.c
121
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_mc.c
125
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_mc.c
85
tegra_mc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_mc.c
87
struct tegra_mc_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_mc.c
99
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_nouveau.c
128
tegra_nouveau_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_nouveau.c
130
struct tegra_nouveau_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_nouveau.c
132
prop_dictionary_t prop = device_properties(self);
sys/arch/arm/nvidia/tegra_nouveau.c
147
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_nouveau.c
177
aprint_error_dev(self, "couldn't set clock pwr frequency: %d\n",
sys/arch/arm/nvidia/tegra_nouveau.c
183
aprint_error_dev(self, "couldn't enable clock pwr: %d\n",
sys/arch/arm/nvidia/tegra_nouveau.c
189
aprint_error_dev(self, "couldn't enable clock gpu: %d\n",
sys/arch/arm/nvidia/tegra_nouveau.c
196
error = -nvkm_device_ctor(&nvkm_device_tegra_func, NULL, self,
sys/arch/arm/nvidia/tegra_nouveau.c
197
NVKM_DEVICE_TEGRA, -1, device_xname(self),
sys/arch/arm/nvidia/tegra_nouveau.c
200
aprint_error_dev(self, "couldn't create nouveau device: %d\n",
sys/arch/arm/nvidia/tegra_nouveau.c
205
config_mountroot(self, tegra_nouveau_init);
sys/arch/arm/nvidia/tegra_nouveau.c
209
tegra_nouveau_init(device_t self)
sys/arch/arm/nvidia/tegra_nouveau.c
211
struct tegra_nouveau_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_nouveau.c
225
aprint_error_dev(self, "couldn't allocate DRM device\n");
sys/arch/arm/nvidia/tegra_nouveau.c
241
aprint_error_dev(self, "couldn't register DRM device: %d\n",
sys/arch/arm/nvidia/tegra_nouveau.c
246
aprint_normal_dev(self, "initialized %s %d.%d.%d %s on minor %d\n",
sys/arch/arm/nvidia/tegra_nouveau.c
285
device_t self = sc->sc_dev;
sys/arch/arm/nvidia/tegra_nouveau.c
289
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_nouveau.c
294
FDT_INTR_MPSAFE, tegra_nouveau_intr, sc, device_xname(self));
sys/arch/arm/nvidia/tegra_nouveau.c
296
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_nouveau.c
301
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_pcie.c
154
tegra_pcie_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_pcie.c
156
struct tegra_pcie_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_pcie.c
184
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_pcie.c
225
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_pcie.c
230
FDT_INTR_MPSAFE, tegra_pcie_intr, sc, device_xname(self));
sys/arch/arm/nvidia/tegra_pcie.c
232
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_pcie.c
236
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_pcie.c
257
aprint_error_dev(self, "configuration failed (%d)\n",
sys/arch/arm/nvidia/tegra_pcie.c
278
config_found(self, &pba, pcibusprint,
sys/arch/arm/nvidia/tegra_pcie.c
279
CFARGS(.devhandle = device_handle(self)));
sys/arch/arm/nvidia/tegra_pcie.c
631
tegra_pcie_attach_hook(device_t parent, device_t self,
sys/arch/arm/nvidia/tegra_pinmux.c
256
tegra_pinmux_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_pinmux.c
258
struct tegra_pinmux_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_pinmux.c
266
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_pinmux.c
286
fdtbus_register_pinctrl_config(self, child, &tegra_pinmux_funcs);
sys/arch/arm/nvidia/tegra_platform.c
151
tegra_platform_device_register(device_t self, void *aux)
sys/arch/arm/nvidia/tegra_platform.c
153
prop_dictionary_t dict = device_properties(self);
sys/arch/arm/nvidia/tegra_platform.c
155
if (device_is_a(self, "tegrafb") &&
sys/arch/arm/nvidia/tegra_platform.c
157
device_setprop_bool(self, "is_console", true);
sys/arch/arm/nvidia/tegra_platform.c
163
if (device_is_a(self, "tegradrm")) {
sys/arch/arm/nvidia/tegra_platform.c
171
if (device_is_a(self, "tegracec"))
sys/arch/arm/nvidia/tegra_platform.c
174
if (device_is_a(self, "nouveau")) {
sys/arch/arm/nvidia/tegra_platform.c
185
if (device_is_a(self, "tegrapcie")) {
sys/arch/arm/nvidia/tegra_pmc.c
74
tegra_pmc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_pmc.c
76
struct tegra_pmc_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_pmc.c
87
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_rtc.c
112
sc->sc_todr.todr_dev = self;
sys/arch/arm/nvidia/tegra_rtc.c
86
tegra_rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_rtc.c
88
struct tegra_rtc_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_rtc.c
99
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_sdhc.c
114
sc->sc.sc_dev = self;
sys/arch/arm/nvidia/tegra_sdhc.c
223
aprint_error_dev(self, "couldn't determine frequency\n");
sys/arch/arm/nvidia/tegra_sdhc.c
228
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_sdhc.c
233
0, sdhc_intr, &sc->sc, device_xname(self));
sys/arch/arm/nvidia/tegra_sdhc.c
235
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_sdhc.c
239
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_sdhc.c
243
aprint_error_dev(self, "couldn't initialize host, error = %d\n",
sys/arch/arm/nvidia/tegra_sdhc.c
96
tegra_sdhc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_sdhc.c
98
struct tegra_sdhc_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_soctherm.c
178
tegra_soctherm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_soctherm.c
180
struct tegra_soctherm_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_soctherm.c
207
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_soctherm.c
220
aprint_error_dev(self, "unsupported SoC\n");
sys/arch/arm/nvidia/tegra_soctherm.c
227
config_defer(self, tegra_soctherm_init_sensors);
sys/arch/arm/nvidia/tegra_timer.c
103
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_timer.c
114
sc->sc_smw.smw_name = device_xname(self);
sys/arch/arm/nvidia/tegra_timer.c
120
aprint_normal_dev(self,
sys/arch/arm/nvidia/tegra_timer.c
125
aprint_error_dev(self,
sys/arch/arm/nvidia/tegra_timer.c
90
tegra_timer_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_timer.c
92
struct tegra_timer_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_usbphy.c
135
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_usbphy.c
153
aprint_error_dev(self, "couldn't enable clock reg: %d\n",
sys/arch/arm/nvidia/tegra_usbphy.c
168
aprint_normal_dev(self, "VBUS input active\n");
sys/arch/arm/nvidia/tegra_usbphy.c
95
tegra_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_usbphy.c
97
struct tegra_usbphy_softc * const sc = device_private(self);
sys/arch/arm/nvidia/tegra_xusb.c
208
tegra_xusb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nvidia/tegra_xusb.c
210
struct tegra_xusb_softc * const psc = device_private(self);
sys/arch/arm/nvidia/tegra_xusb.c
226
sc->sc_dev = self;
sys/arch/arm/nvidia/tegra_xusb.c
270
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_xusb.c
275
FDT_INTR_MPSAFE, xhci_intr, sc, device_xname(self));
sys/arch/arm/nvidia/tegra_xusb.c
277
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_xusb.c
281
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_xusb.c
284
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nvidia/tegra_xusb.c
290
device_xname(self));
sys/arch/arm/nvidia/tegra_xusb.c
292
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/nvidia/tegra_xusb.c
296
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nvidia/tegra_xusb.c
301
aprint_error_dev(self, "failed to enable PHY #%d\n", n);
sys/arch/arm/nvidia/tegra_xusb.c
422
tegra_xusb_mountroot(device_t self)
sys/arch/arm/nvidia/tegra_xusb.c
424
struct tegra_xusb_softc * const psc = device_private(self);
sys/arch/arm/nvidia/tegra_xusb.c
481
aprint_error_dev(self, "Unknown revision (%02x)\n", val);
sys/arch/arm/nvidia/tegra_xusb.c
485
aprint_normal_dev(self,
sys/arch/arm/nvidia/tegra_xusb.c
494
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/arm/nvidia/tegra_xusb.c
498
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/arm/nvidia/tegra_xusb.c
500
sc->sc_child2 = config_found(self, &sc->sc_bus2, usbctlprint,
sys/arch/arm/nvidia/tegra_xusb.c
507
aprint_error_dev(self, "send failed, error=%d\n", error);
sys/arch/arm/nxp/if_enet_imx.c
124
sc->sc_dev = self;
sys/arch/arm/nxp/if_enet_imx.c
140
device_setprop_bool(self, "tx_internal_delay", true);
sys/arch/arm/nxp/if_enet_imx.c
143
device_setprop_bool(self, "rx_internal_delay", true);
sys/arch/arm/nxp/if_enet_imx.c
146
device_setprop_bool(self, "tx_internal_delay", true);
sys/arch/arm/nxp/if_enet_imx.c
147
device_setprop_bool(self, "rx_internal_delay", true);
sys/arch/arm/nxp/if_enet_imx.c
171
if (enet_attach_common(self) != 0)
sys/arch/arm/nxp/if_enet_imx.c
73
enet_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/if_enet_imx.c
75
struct enet_fdt_softc * const efsc = device_private(self);
sys/arch/arm/nxp/imx6_ccm.c
102
aprint_verbose_dev(self, "%s (%s) : %u Hz\n", clk->name,
sys/arch/arm/nxp/imx6_ccm.c
78
imx6ccm_attach_common(device_t self, struct imx6_clk *imx6_clks, int size,
sys/arch/arm/nxp/imx6_ccm.c
81
struct imx6ccm_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx6_ccm.c
83
sc->sc_dev = self;
sys/arch/arm/nxp/imx6_ccm.c
87
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/nxp/imx6_clk.c
1247
imx6qccm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_clk.c
1249
struct imx6ccm_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx6_clk.c
1259
sc->sc_dev = self;
sys/arch/arm/nxp/imx6_clk.c
1288
imx6ccm_attach_common(self, &imx6q_clks[0], __arraycount(imx6q_clks),
sys/arch/arm/nxp/imx6_clk.c
1295
fdtbus_register_clock_controller(self, faa->faa_phandle,
sys/arch/arm/nxp/imx6_dwhdmi.c
220
imx6_dwhdmi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_dwhdmi.c
222
struct imx6_dwhdmi_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx6_dwhdmi.c
245
sc->sc_base.sc_dev = self;
sys/arch/arm/nxp/imx6_dwhdmi.c
259
aprint_error_dev(self, "couldn't find external I2C master\n");
sys/arch/arm/nxp/imx6_dwhdmi.c
272
aprint_error_dev(self, "failed to attach driver\n");
sys/arch/arm/nxp/imx6_dwhdmi.c
278
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_ENCODER);
sys/arch/arm/nxp/imx6_dwhdmi.c
280
fdtbus_register_dai_controller(self, phandle, &imx6_dwhdmi_dai_funcs);
sys/arch/arm/nxp/imx6_gpc.c
106
error = fdtbus_register_interrupt_controller(self, faa->faa_phandle,
sys/arch/arm/nxp/imx6_gpc.c
82
imxgpc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_gpc.c
84
struct imxgpc_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx6_gpc.c
96
sc->sc_dev = self;
sys/arch/arm/nxp/imx6_iomux.c
150
imxiomux_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_iomux.c
152
struct imxiomux_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx6_iomux.c
164
sc->sc_dev = self;
sys/arch/arm/nxp/imx6_iomux.c
178
fdtbus_register_pinctrl_config(self, child, &imx6_pinctrl_funcs);
sys/arch/arm/nxp/imx6_iomux.c
183
fdtbus_register_pinctrl_config(self, sub, &imx6_pinctrl_funcs);
sys/arch/arm/nxp/imx6_ocotp.c
118
aprint_error_dev(self, "Cannot map registers\n");
sys/arch/arm/nxp/imx6_ocotp.c
125
aprint_normal_dev(self, "OCOTP_VERSION %d.%d.%d\n", (v >> 24) & 0xff, (v >> 16) & 0xff, v & 0xffff);
sys/arch/arm/nxp/imx6_ocotp.c
88
imxocotp_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_ocotp.c
90
struct imxocotp_softc *sc = device_private(self);
sys/arch/arm/nxp/imx6_pcie.c
108
imx6_pcie_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_pcie.c
110
struct imxpcie_fdt_softc * const ifsc = device_private(self);
sys/arch/arm/nxp/imx6_pcie.c
122
sc->sc_dev = self;
sys/arch/arm/nxp/imx6_pcie.c
138
aprint_error_dev(self, "Cannot map registers\n");
sys/arch/arm/nxp/imx6_pcie.c
151
aprint_error_dev(self, "Cannot map registers\n");
sys/arch/arm/nxp/imx6_pcie.c
184
aprint_normal_dev(self, "regulator On\n");
sys/arch/arm/nxp/imx6_pcie.c
189
aprint_normal_dev(self, "Use external OSC\n");
sys/arch/arm/nxp/imx6_pcie.c
209
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nxp/imx6_pcie.c
214
FDT_INTR_MPSAFE, imxpcie_intr, sc, device_xname(self));
sys/arch/arm/nxp/imx6_pcie.c
216
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/nxp/imx6_pcie.c
220
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nxp/imx6_platform.c
133
imx_platform_device_register(device_t self, void *aux)
sys/arch/arm/nxp/imx6_platform.c
135
prop_dictionary_t prop = device_properties(self);
sys/arch/arm/nxp/imx6_platform.c
137
if (device_is_a(self, "atphy")) {
sys/arch/arm/nxp/imx6_pwm.c
108
sc->sc_dev = self;
sys/arch/arm/nxp/imx6_pwm.c
119
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nxp/imx6_pwm.c
124
0, imxpwm_intr, sc, device_xname(self));
sys/arch/arm/nxp/imx6_pwm.c
126
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/nxp/imx6_pwm.c
130
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nxp/imx6_pwm.c
141
fdtbus_register_pwm_controller(self, phandle,
sys/arch/arm/nxp/imx6_pwm.c
92
imx6_pwm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_pwm.c
94
struct imxpwm_fdt_softc * const ifsc = device_private(self);
sys/arch/arm/nxp/imx6_spi.c
161
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nxp/imx6_spi.c
166
0, imxspi_intr, &ifsc->sc_imxspi, device_xname(self));
sys/arch/arm/nxp/imx6_spi.c
168
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nxp/imx6_spi.c
172
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nxp/imx6_spi.c
174
imxspi_attach_common(self);
sys/arch/arm/nxp/imx6_spi.c
97
imxspi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_spi.c
99
struct imxspi_fdt_softc * const ifsc = device_private(self);
sys/arch/arm/nxp/imx6_usb.c
132
sc->sc_dev = self;
sys/arch/arm/nxp/imx6_usb.c
159
aprint_error_dev(self, "couldn't init clocks\n");
sys/arch/arm/nxp/imx6_usb.c
170
config_found(self, &iaa, imxusbc_print,
sys/arch/arm/nxp/imx6_usb.c
176
aprint_error_dev(self,
sys/arch/arm/nxp/imx6_usb.c
181
aprint_error_dev(self,
sys/arch/arm/nxp/imx6_usb.c
186
aprint_verbose_dev(self, "no regulator\n");
sys/arch/arm/nxp/imx6_usb.c
92
imx6_usb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_usb.c
94
struct imxusbc_fdt_softc *ifsc = device_private(self);
sys/arch/arm/nxp/imx6_usbphy.c
107
sc->sc_dev = self;
sys/arch/arm/nxp/imx6_usbphy.c
114
imx6_usbphy_init_clocks(self);
sys/arch/arm/nxp/imx6_usbphy.c
115
imx6_usbphy_enable(self, NULL, true);
sys/arch/arm/nxp/imx6_usbphy.c
79
imx6_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6_usbphy.c
81
struct imx6_usbphy_softc *sc = device_private(self);
sys/arch/arm/nxp/imx6sx_clk.c
1360
imx6sxccm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx6sx_clk.c
1362
struct imx6ccm_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx6sx_clk.c
1372
sc->sc_dev = self;
sys/arch/arm/nxp/imx6sx_clk.c
1401
imx6ccm_attach_common(self, &imx6sx_clks[0], __arraycount(imx6sx_clks),
sys/arch/arm/nxp/imx6sx_clk.c
1411
fdtbus_register_clock_controller(self, faa->faa_phandle,
sys/arch/arm/nxp/imx7_gpc.c
109
imx7gpc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx7_gpc.c
111
struct imx7gpc_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx7_gpc.c
125
sc->sc_dev = self;
sys/arch/arm/nxp/imx7_gpc.c
135
error = fdtbus_register_interrupt_controller(self, faa->faa_phandle,
sys/arch/arm/nxp/imx7d_ccm.c
287
imx7d_ccm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx7d_ccm.c
289
struct imx_ccm_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx7d_ccm.c
296
sc->sc_dev = self;
sys/arch/arm/nxp/imx8mq_ccm.c
188
imx8mq_ccm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx8mq_ccm.c
190
struct imx_ccm_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx8mq_ccm.c
193
sc->sc_dev = self;
sys/arch/arm/nxp/imx8mq_usbphy.c
152
imx8mq_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx8mq_usbphy.c
154
struct imx8mq_usbphy_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx8mq_usbphy.c
160
sc->sc_dev = self;
sys/arch/arm/nxp/imx8mq_usbphy.c
183
fdtbus_register_phy_controller(self, phandle, &imx8mq_usbphy_funcs);
sys/arch/arm/nxp/imx_ahcisata.c
145
aprint_debug_dev(self, "tx level %d [mV]\n", sc->sc_tx_level);
sys/arch/arm/nxp/imx_ahcisata.c
146
aprint_debug_dev(self, "tx boost %d [mdB]\n", sc->sc_tx_boost);
sys/arch/arm/nxp/imx_ahcisata.c
147
aprint_debug_dev(self, "tx atten %d [16ths]\n", sc->sc_tx_atten);
sys/arch/arm/nxp/imx_ahcisata.c
148
aprint_debug_dev(self, "rx eq %d [mdB]\n", sc->sc_rx_eq);
sys/arch/arm/nxp/imx_ahcisata.c
149
aprint_debug_dev(self, "ss %d\n", sc->sc_ss);
sys/arch/arm/nxp/imx_ahcisata.c
151
sc->sc_dev = self;
sys/arch/arm/nxp/imx_ahcisata.c
153
sc->sc.sc_atac.atac_dev = self;
sys/arch/arm/nxp/imx_ahcisata.c
171
aprint_error_dev(self, "Cannot map registers\n");
sys/arch/arm/nxp/imx_ahcisata.c
176
aprint_error_dev(self, "couldn't init clocks\n");
sys/arch/arm/nxp/imx_ahcisata.c
181
aprint_error_dev(self, "couldn't init ahci\n");
sys/arch/arm/nxp/imx_ahcisata.c
186
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nxp/imx_ahcisata.c
191
ahci_intr, &sc->sc, device_xname(self));
sys/arch/arm/nxp/imx_ahcisata.c
193
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/nxp/imx_ahcisata.c
197
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nxp/imx_ahcisata.c
96
imx_ahcisata_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx_ahcisata.c
98
struct imx_ahcisata_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx_com.c
115
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nxp/imx_com.c
120
0, imxuintr, sc, device_xname(self));
sys/arch/arm/nxp/imx_com.c
122
aprint_error_dev(self, "failed to establish interrupt\n");
sys/arch/arm/nxp/imx_com.c
126
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nxp/imx_com.c
64
imx_com_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx_com.c
66
struct imxuart_softc *sc = device_private(self);
sys/arch/arm/nxp/imx_com.c
98
sc->sc_dev = self;
sys/arch/arm/nxp/imx_gpio.c
125
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nxp/imx_gpio.c
129
pic_handle_intr, &sc->gpio_pic, device_xname(self));
sys/arch/arm/nxp/imx_gpio.c
131
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nxp/imx_gpio.c
135
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nxp/imx_gpio.c
138
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nxp/imx_gpio.c
142
pic_handle_intr, &sc->gpio_pic, device_xname(self));
sys/arch/arm/nxp/imx_gpio.c
144
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nxp/imx_gpio.c
148
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nxp/imx_gpio.c
150
fdtbus_register_gpio_controller(self, phandle, &imx6_gpio_funcs);
sys/arch/arm/nxp/imx_gpio.c
152
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/nxp/imx_gpio.c
159
imxgpio_attach_common(self);
sys/arch/arm/nxp/imx_gpio.c
94
imxgpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx_gpio.c
96
struct imxgpio_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx_i2c.c
52
imxi2c_attach(device_t parent __unused, device_t self, void *aux)
sys/arch/arm/nxp/imx_i2c.c
54
struct imxi2c_softc *imxsc = device_private(self);
sys/arch/arm/nxp/imx_i2c.c
75
aprint_error_dev(self, "couldn't enable: %d\n", error);
sys/arch/arm/nxp/imx_i2c.c
84
imxi2c_attach_common(self, bst, addr, size,
sys/arch/arm/nxp/imx_sdhc.c
103
imx_sdhc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx_sdhc.c
105
struct imx_sdhc_softc * const sc = device_private(self);
sys/arch/arm/nxp/imx_sdhc.c
135
sc->sc_sdhc.sc_dev = self;
sys/arch/arm/nxp/imx_sdhc.c
193
aprint_error_dev(self, "couldn't determine frequency\n");
sys/arch/arm/nxp/imx_sdhc.c
198
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/nxp/imx_sdhc.c
203
FDT_INTR_MPSAFE, sdhc_intr, &sc->sc_sdhc, device_xname(self));
sys/arch/arm/nxp/imx_sdhc.c
205
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/nxp/imx_sdhc.c
209
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/nxp/imx_sdhc.c
213
aprint_error_dev(self, "couldn't initialize host, error = %d\n",
sys/arch/arm/nxp/imx_snvs.c
58
imxsnvs_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imx_snvs.c
70
imxsnvs_attach_common(parent, self,
sys/arch/arm/nxp/imxpcie.c
633
imxpcie_attach_hook(device_t parent, device_t self,
sys/arch/arm/nxp/imxwdog.c
153
imxwdog_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/nxp/imxwdog.c
155
struct imxwdog_softc *sc = device_private(self);
sys/arch/arm/nxp/imxwdog.c
189
sc->sc_dev = self;
sys/arch/arm/nxp/imxwdog.c
196
if (device_cfdata(self)->cf_flags & 1)
sys/arch/arm/nxp/imxwdog.c
212
sc->sc_smw.smw_name = device_xname(self);
sys/arch/arm/nxp/imxwdog.c
219
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/arm/nxp/imxwdog.c
225
aprint_error_dev(self,
sys/arch/arm/rockchip/rk3288_cru.c
342
rk3288_cru_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3288_cru.c
344
struct rk_cru_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3288_cru.c
347
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3288_iomux.c
330
rk3288_iomux_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3288_iomux.c
332
struct rk3288_iomux_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3288_iomux.c
336
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3288_iomux.c
355
fdtbus_register_pinctrl_config(self, sub, &rk3288_iomux_pinctrl_funcs);
sys/arch/arm/rockchip/rk3288_iomux.c
365
config_found(self, &cfaa, NULL, CFARGS_NONE);
sys/arch/arm/rockchip/rk3288_usb.c
150
rk3288_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3288_usb.c
152
struct rk3288_usbphy_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3288_usb.c
157
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3288_usb.c
182
fdtbus_register_phy_controller(self, phandle, &rk3288_usbphy_funcs);
sys/arch/arm/rockchip/rk3288_usb.c
66
rk3288_usb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3288_usb.c
84
config_found(self, &cfaa, NULL, CFARGS_NONE);
sys/arch/arm/rockchip/rk3328_cru.c
501
rk3328_cru_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3328_cru.c
503
struct rk_cru_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3328_cru.c
506
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3328_iomux.c
285
rk3328_iomux_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3328_iomux.c
287
struct rk3328_iomux_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3328_iomux.c
292
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3328_iomux.c
307
fdtbus_register_pinctrl_config(self, sub, &rk3328_iomux_pinctrl_funcs);
sys/arch/arm/rockchip/rk3328_iomux.c
317
config_found(self, &cfaa, NULL, CFARGS_NONE);
sys/arch/arm/rockchip/rk3399_cru.c
1171
rk3399_cru_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3399_cru.c
1173
struct rk_cru_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3399_cru.c
1176
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3399_iomux.c
484
rk3399_iomux_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3399_iomux.c
486
struct rk3399_iomux_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3399_iomux.c
491
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3399_iomux.c
511
fdtbus_register_pinctrl_config(self, sub, &rk3399_iomux_pinctrl_funcs);
sys/arch/arm/rockchip/rk3399_iomux.c
521
config_found(self, &cfaa, NULL, CFARGS_NONE);
sys/arch/arm/rockchip/rk3399_pcie.c
203
rkpcie_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3399_pcie.c
205
struct rkpcie_softc *sc = device_private(self);
sys/arch/arm/rockchip/rk3399_pcie.c
216
phsc->sc_dev = self;
sys/arch/arm/rockchip/rk3399_pcie.c
354
device_printf(self, "link training timeout (link_st %u)\n",
sys/arch/arm/rockchip/rk3399_pcie.c
373
device_printf(self, "Gen2 link training timeout\n");
sys/arch/arm/rockchip/rk3399_pcie.c
418
aprint_error_dev(self, "bus-range doesn't start at 0\n");
sys/arch/arm/rockchip/rk3399_pcie.c
425
fdtbus_register_interrupt_controller(self,
sys/arch/arm/rockchip/rk3399_pcie_phy.c
143
rkpciephy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3399_pcie_phy.c
145
struct rkpciephy_softc *sc = device_private(self);
sys/arch/arm/rockchip/rk3399_pcie_phy.c
148
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3399_pcie_phy.c
157
fdtbus_register_phy_controller(self, faa->faa_phandle, &rkpciephy_phy_funcs);
sys/arch/arm/rockchip/rk3399_pmucru.c
335
rk3399_pmucru_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3399_pmucru.c
337
struct rk_cru_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3399_pmucru.c
340
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3588_cru.c
2912
rk3588_cru_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3588_cru.c
2914
struct rk_cru_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3588_cru.c
2917
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3588_iomux.c
1007
rk3588_iomux_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk3588_iomux.c
1009
struct rk3588_iomux_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk3588_iomux.c
1013
sc->sc_dev = self;
sys/arch/arm/rockchip/rk3588_iomux.c
1027
fdtbus_register_pinctrl_config(self, sub,
sys/arch/arm/rockchip/rk3588_iomux.c
1038
config_found(self, &cfaa, NULL, CFARGS_NONE);
sys/arch/arm/rockchip/rk_anxdp.c
224
rk_anxdp_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_anxdp.c
226
struct rk_anxdp_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_anxdp.c
257
sc->sc_base.sc_dev = self;
sys/arch/arm/rockchip/rk_anxdp.c
276
aprint_error_dev(self, "failed to attach driver\n");
sys/arch/arm/rockchip/rk_anxdp.c
282
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_ENCODER);
sys/arch/arm/rockchip/rk_anxdp.c
285
fdtbus_register_dai_controller(self, phandle, &rk_anxdp_dai_funcs);
sys/arch/arm/rockchip/rk_drm.c
118
rk_drm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_drm.c
120
struct rk_drm_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_drm.c
126
if (device_getprop_bool(self, "disabled")) {
sys/arch/arm/rockchip/rk_drm.c
134
device_setprop_bool(self, "is_console", true);
sys/arch/arm/rockchip/rk_drm.c
137
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_drm.c
145
aprint_error_dev(self, "unable to create workqueue\n");
sys/arch/arm/rockchip/rk_drm.c
152
aprint_error_dev(self, "couldn't allocate DRM device\n");
sys/arch/arm/rockchip/rk_drm.c
167
config_defer(self, rk_drm_init);
sys/arch/arm/rockchip/rk_drm.c
499
rk_task_schedule(device_t self, struct rk_drm_task *task)
sys/arch/arm/rockchip/rk_drm.c
501
struct rk_drm_softc *sc = device_private(self);
sys/arch/arm/rockchip/rk_dwhdmi.c
239
rk_dwhdmi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_dwhdmi.c
241
struct rk_dwhdmi_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_dwhdmi.c
283
sc->sc_base.sc_dev = self;
sys/arch/arm/rockchip/rk_dwhdmi.c
303
aprint_error_dev(self, "couldn't find external I2C master\n");
sys/arch/arm/rockchip/rk_dwhdmi.c
316
aprint_error_dev(self, "failed to attach driver\n");
sys/arch/arm/rockchip/rk_dwhdmi.c
322
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_ENCODER);
sys/arch/arm/rockchip/rk_dwhdmi.c
324
fdtbus_register_dai_controller(self, phandle, &rk_dwhdmi_dai_funcs);
sys/arch/arm/rockchip/rk_emmcphy.c
236
rk_emmcphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_emmcphy.c
238
struct rk_emmcphy_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_emmcphy.c
249
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_emmcphy.c
261
fdtbus_register_phy_controller(self, phandle, &rk_emmcphy_funcs);
sys/arch/arm/rockchip/rk_eqos.c
291
rk_eqos_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_eqos.c
293
struct rk_eqos_softc * const rk_sc = device_private(self);
sys/arch/arm/rockchip/rk_eqos.c
327
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_eqos.c
395
eqos_intr, sc, device_xname(self)) == NULL) {
sys/arch/arm/rockchip/rk_eqos.c
396
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/rockchip/rk_eqos.c
400
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/rockchip/rk_fb.c
119
device_t self = sc->sc_dev;
sys/arch/arm/rockchip/rk_fb.c
124
.da_dev = self,
sys/arch/arm/rockchip/rk_fb.c
134
aprint_error_dev(self, "failed to attach drmfb: %d\n", error);
sys/arch/arm/rockchip/rk_fb.c
138
pmf_device_register1(self, NULL, NULL, rk_fb_shutdown);
sys/arch/arm/rockchip/rk_fb.c
140
config_interrupts(self, rk_fb_turnoffandbackonagain);
sys/arch/arm/rockchip/rk_fb.c
144
rk_fb_shutdown(device_t self, int flags)
sys/arch/arm/rockchip/rk_fb.c
146
struct rk_fb_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_fb.c
79
rk_fb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_fb.c
81
struct rk_fb_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_fb.c
84
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_fb.c
96
rk_fb_turnoffandbackonagain(device_t self)
sys/arch/arm/rockchip/rk_fb.c
98
struct rk_fb_softc *sc = device_private(self);
sys/arch/arm/rockchip/rk_gmac.c
439
rk_gmac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_gmac.c
441
struct rk_gmac_softc * const rk_sc = device_private(self);
sys/arch/arm/rockchip/rk_gmac.c
479
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_gmac.c
496
aprint_error_dev(self, "PHY reset failed\n");
sys/arch/arm/rockchip/rk_gmac.c
553
device_xname(self)) == NULL) {
sys/arch/arm/rockchip/rk_gmac.c
554
aprint_error_dev(self, "failed to establish interrupt on %s\n", intrstr);
sys/arch/arm/rockchip/rk_gmac.c
557
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/rockchip/rk_gpio.c
605
rk_gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_gpio.c
607
struct rk_gpio_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_gpio.c
628
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_gpio.c
666
fdtbus_register_gpio_controller(self, phandle, &rk_gpio_funcs);
sys/arch/arm/rockchip/rk_gpio.c
673
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/rockchip/rk_gpio.c
677
FDT_INTR_MPSAFE, rk_gpio_intr, sc, device_xname(self));
sys/arch/arm/rockchip/rk_gpio.c
679
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/rockchip/rk_gpio.c
683
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/rockchip/rk_gpio.c
684
fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/rockchip/rk_i2c.c
377
rk_i2c_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_i2c.c
379
struct rk_i2c_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_i2c.c
410
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_i2c.c
428
iicbus_attach(self, &sc->sc_ic);
sys/arch/arm/rockchip/rk_i2s.c
560
rk_i2s_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_i2s.c
562
struct rk_i2s_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_i2s.c
579
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_i2s.c
610
rk_i2s_intr, sc, device_xname(self)) == NULL) {
sys/arch/arm/rockchip/rk_i2s.c
611
aprint_error_dev(self, "couldn't establish interrupt on %s\n", intrstr);
sys/arch/arm/rockchip/rk_i2s.c
614
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/rockchip/rk_i2s.c
628
sc->sc_dai.dai_dev = self;
sys/arch/arm/rockchip/rk_i2s.c
630
fdtbus_register_dai_controller(self, phandle, &rk_i2s_dai_funcs);
sys/arch/arm/rockchip/rk_platform.c
73
rk_platform_device_register(device_t self, void *aux)
sys/arch/arm/rockchip/rk_pwm.c
205
rk_pwm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_pwm.c
207
struct rk_pwm_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_pwm.c
226
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_pwm.c
242
sc->sc_pwm.pwm_dev = self;
sys/arch/arm/rockchip/rk_pwm.c
244
fdtbus_register_pwm_controller(self, phandle,
sys/arch/arm/rockchip/rk_spi.c
196
rk_spi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_spi.c
198
struct rk_spi_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_spi.c
206
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_spi.c
239
rk_spi_intr, sc, device_xname(self));
sys/arch/arm/rockchip/rk_spi.c
247
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/rockchip/rk_spi.c
254
spibus_attach(self, &sc->sc_spi);
sys/arch/arm/rockchip/rk_tcphy.c
145
rk_typec_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_tcphy.c
147
struct rk_typec_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_tcphy.c
154
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_tcphy.c
232
config_found(self, &cfaa, NULL, CFARGS_NONE);
sys/arch/arm/rockchip/rk_tcphy.c
397
rk_tcphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_tcphy.c
399
struct rk_tcphy_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_tcphy.c
404
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_tcphy.c
411
fdtbus_register_phy_controller(self, phandle, &rk_tcphy_usb3_funcs);
sys/arch/arm/rockchip/rk_tsadc.c
471
rk_tsadc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_tsadc.c
473
struct rk_tsadc_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_tsadc.c
480
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_tsadc.c
486
sc->sc_sme->sme_name = device_xname(self);
sys/arch/arm/rockchip/rk_tsadc.c
492
pmf_device_register(self, NULL, NULL);
sys/arch/arm/rockchip/rk_tsadc.c
564
rk_tsadc_intr, sc, device_xname(self));
sys/arch/arm/rockchip/rk_tsadc.c
566
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/rockchip/rk_tsadc.c
570
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/rockchip/rk_tsadc.c
588
rk_tsadc_detach(self, 0);
sys/arch/arm/rockchip/rk_tsadc.c
592
rk_tsadc_detach(device_t self, int flags)
sys/arch/arm/rockchip/rk_tsadc.c
594
struct rk_tsadc_softc *sc = device_private(self);
sys/arch/arm/rockchip/rk_tsadc.c
596
pmf_device_deregister(self);
sys/arch/arm/rockchip/rk_usb.c
209
rk_usb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_usb.c
211
struct rk_usb_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_usb.c
229
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_usb.c
241
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/rockchip/rk_usb.c
251
fdtbus_register_clock_controller(self, phandle, &rk_usb_fdt_funcs);
sys/arch/arm/rockchip/rk_usb.c
262
config_found(self, &cfaa, NULL, CFARGS_NONE);
sys/arch/arm/rockchip/rk_usb.c
402
rk_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_usb.c
404
struct rk_usbphy_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_usb.c
409
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_usb.c
423
fdtbus_register_phy_controller(self, phandle, &rk_usbphy_otg_funcs);
sys/arch/arm/rockchip/rk_usb.c
426
fdtbus_register_phy_controller(self, phandle, &rk_usbphy_host_funcs);
sys/arch/arm/rockchip/rk_v1crypto.c
132
rk_v1crypto_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_v1crypto.c
134
struct rk_v1crypto_softc *const sc = device_private(self);
sys/arch/arm/rockchip/rk_v1crypto.c
148
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_v1crypto.c
264
device_t self = sc->sc_dev;
sys/arch/arm/rockchip/rk_v1crypto.c
267
rnd_attach_source(&sc->sc_rndsource, device_xname(self),
sys/arch/arm/rockchip/rk_v1crypto.c
275
device_t self = sc->sc_dev;
sys/arch/arm/rockchip/rk_v1crypto.c
287
device_printf(self, "timed out\n");
sys/arch/arm/rockchip/rk_v1crypto.c
291
device_printf(self, "failed repeated output test\n");
sys/arch/arm/rockchip/rk_v1crypto.c
304
device_t self = sc->sc_dev;
sys/arch/arm/rockchip/rk_v1crypto.c
310
CTLFLAG_PERMANENT, CTLTYPE_NODE, device_xname(self),
sys/arch/arm/rockchip/rk_v1crypto.c
315
aprint_error_dev(self,
sys/arch/arm/rockchip/rk_v1crypto.c
317
device_xname(self), error);
sys/arch/arm/rockchip/rk_v1crypto.c
327
aprint_error_dev(self,
sys/arch/arm/rockchip/rk_v1crypto.c
329
device_xname(self), error);
sys/arch/arm/rockchip/rk_vop.c
755
rk_vop_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/rockchip/rk_vop.c
757
struct rk_vop_softc * const sc = device_private(self);
sys/arch/arm/rockchip/rk_vop.c
811
sc->sc_dev = self;
sys/arch/arm/rockchip/rk_vop.c
828
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_CRTC);
sys/arch/arm/rockchip/rk_vop.c
836
FDT_INTR_MPSAFE, &rk_vop_intr, sc, device_xname(self));
sys/arch/arm/rockchip/rk_vop.c
838
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/rockchip/rk_vop.c
842
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c
103
aprint_error_dev(self, "can't map mem space\n");
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c
119
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c
125
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c
130
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c
135
ohci_ssio_detach(device_t self, int flags)
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c
87
ohci_ssio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c
89
struct ohci_ssio_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c
95
sc->sc.sc_dev = self;
sys/arch/arm/s3c2xx0/s3c2410.c
167
config_search(self, NULL,
sys/arch/arm/s3c2xx0/s3c2410.c
173
device_xname(self), which_registers);
sys/arch/arm/s3c2xx0/s3c2410.c
93
s3c2410_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2410.c
95
struct s3c24x0_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2410_extint.c
139
ssextio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2410_extint.c
141
struct ssextio_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2410_extint.c
163
config_search(self, NULL,
sys/arch/arm/s3c2xx0/s3c2410_spi.c
101
ssspi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2410_spi.c
103
struct ssspi_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2410_spi.c
131
config_search(self, NULL,
sys/arch/arm/s3c2xx0/s3c2440.c
122
s3c2440_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2440.c
124
struct s3c24x0_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2440.c
199
config_search(self, NULL,
sys/arch/arm/s3c2xx0/s3c2440.c
205
device_xname(self), which_registers);
sys/arch/arm/s3c2xx0/s3c2440_extint.c
170
ssextio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2440_extint.c
172
struct ssextio_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2440_extint.c
195
config_search(self, NULL,
sys/arch/arm/s3c2xx0/s3c2440_i2s.c
84
s3c2440_i2s_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2440_i2s.c
86
struct s3c2440_i2s_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2440_i2s.c
89
sc->sc_dev = self;
sys/arch/arm/s3c2xx0/s3c2440_i2s.c
95
config_search(self, NULL,
sys/arch/arm/s3c2xx0/s3c2440_rtc.c
79
ssrtc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2440_rtc.c
81
struct ssrtc_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2440_rtc.c
84
sc->sc_dev = self;
sys/arch/arm/s3c2xx0/s3c2440_rtc.c
94
sc->sc_todr.todr_dev = self;
sys/arch/arm/s3c2xx0/s3c2440_sdi.c
175
sssdi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2440_sdi.c
177
struct sssdi_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2440_sdi.c
183
sc->dev = self;
sys/arch/arm/s3c2xx0/s3c2440_spi.c
140
ssspi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2440_spi.c
142
struct ssspi_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2440_spi.c
173
config_search(self, NULL,
sys/arch/arm/s3c2xx0/s3c2440_touch.c
118
sstouch_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2440_touch.c
120
struct sstouch_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2440_touch.c
124
sc->dev = self;
sys/arch/arm/s3c2xx0/s3c2440_touch.c
147
sc->wsmousedev = config_found(self, &mas, wsmousedevprint, CFARGS_NONE);
sys/arch/arm/s3c2xx0/s3c2800.c
157
config_search(self, NULL,
sys/arch/arm/s3c2xx0/s3c2800.c
163
device_xname(self), which_registers);
sys/arch/arm/s3c2xx0/s3c2800.c
92
s3c2800_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2800.c
94
struct s3c2800_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
227
sspci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/s3c2800_pci.c
229
struct sspci_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
242
sc->sc_dev = self;
sys/arch/arm/s3c2xx0/s3c2800_pci.c
271
printf("%s: failed to initialize controller\n", device_xname(self));
sys/arch/arm/s3c2xx0/s3c2800_pci.c
293
printf("%s: %s\n", device_xname(self), buf);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
333
config_found(self, &pci_pba, pcibusprint, CFARGS_NONE);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
340
device_xname(self), error_on);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
400
s3c2800_pci_attach_hook(device_t parent, device_t self,
sys/arch/arm/s3c2xx0/sscom.c
524
sscom_detach(device_t self, int flags)
sys/arch/arm/s3c2xx0/sscom.c
526
struct sscom_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/sscom.c
535
sscom_activate(device_t self, enum devact act)
sys/arch/arm/s3c2xx0/sscom.c
538
struct sscom_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/sscom_s3c2410.c
129
sscom_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/sscom_s3c2410.c
131
struct sscom_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/sscom_s3c2410.c
138
sc->sc_dev = self;
sys/arch/arm/s3c2xx0/sscom_s3c2440.c
148
sscom_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/sscom_s3c2440.c
150
struct sscom_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/sscom_s3c2440.c
159
sc->sc_dev = self;
sys/arch/arm/s3c2xx0/sscom_s3c2800.c
117
sscom_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/s3c2xx0/sscom_s3c2800.c
119
struct sscom_softc *sc = device_private(self);
sys/arch/arm/s3c2xx0/sscom_s3c2800.c
126
sc->sc_dev = self;
sys/arch/arm/sa11x0/sa1111_kbc.c
213
sackbc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sa11x0/sa1111_kbc.c
215
struct sackbc_softc *sc = device_private(self);
sys/arch/arm/sa11x0/sa1111_kbc.c
234
sc->dev = self;
sys/arch/arm/sa11x0/sa1111_kbc.c
272
child = pckbport_attach_slot(self, sc->pt, slot);
sys/arch/arm/sa11x0/sa1111_kbc.c
356
sackbc_xt_translation(void *self, pckbport_slot_t slot, int on)
sys/arch/arm/sa11x0/sa1111_kbc.c
363
sackbc_slot_enable(void *self, pckbport_slot_t slot, int on)
sys/arch/arm/sa11x0/sa1111_kbc.c
366
struct sackbc_softc *sc = device_private(self);
sys/arch/arm/sa11x0/sa1111_kbc.c
377
sackbc_set_poll(void *self, pckbport_slot_t slot, int on)
sys/arch/arm/sa11x0/sa1111_kbc.c
379
struct sackbc_softc *sc = device_private(self);
sys/arch/arm/sa11x0/sa11x0.c
132
sa11x0_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sa11x0/sa11x0.c
134
struct sa11x0_softc *sc = device_private(self);
sys/arch/arm/sa11x0/sa11x0.c
136
sc->sc_dev = self;
sys/arch/arm/sa11x0/sa11x0.c
142
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/sa11x0/sa11x0.c
148
panic("%s: unable to map GPIO registers", device_xname(self));
sys/arch/arm/sa11x0/sa11x0.c
154
panic("%s: unable to map PPC registers", device_xname(self));
sys/arch/arm/sa11x0/sa11x0.c
159
panic("%s: unable to map DMAC registers", device_xname(self));
sys/arch/arm/sa11x0/sa11x0.c
164
panic("%s: unable to map reset registers", device_xname(self));
sys/arch/arm/sa11x0/sa11x0.c
196
config_search(self, NULL,
sys/arch/arm/sa11x0/sa11x0_com.c
1411
sacom_j720_init(device_t parent, device_t self)
sys/arch/arm/sa11x0/sa11x0_com.c
241
sacom_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sa11x0/sa11x0_com.c
243
struct sacom_softc *sc = device_private(self);
sys/arch/arm/sa11x0/sa11x0_com.c
253
sc->sc_dev = self;
sys/arch/arm/sa11x0/sa11x0_com.c
259
aprint_normal_dev(self, "unable to map registers\n");
sys/arch/arm/sa11x0/sa11x0_com.c
265
aprint_normal_dev(self, "SA-11x0 UART1\n");
sys/arch/arm/sa11x0/sa11x0_com.c
268
aprint_normal_dev(self, "SA-11x0 UART2 (IRDA)\n");
sys/arch/arm/sa11x0/sa11x0_com.c
271
aprint_normal_dev(self, "SA-11x0 UART3\n");
sys/arch/arm/sa11x0/sa11x0_com.c
274
aprint_normal_dev(self, "unknown SA-11x0 UART\n");
sys/arch/arm/sa11x0/sa11x0_com.c
284
(*mdinit)(parent, self);
sys/arch/arm/sa11x0/sa11x0_ost.c
120
saost_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sa11x0/sa11x0_ost.c
122
struct saost_softc *sc = device_private(self);
sys/arch/arm/sa11x0/sa11x0_ost.c
127
sc->sc_dev = self;
sys/arch/arm/sa11x0/sa11x0_ost.c
134
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/sa11x0/sa11x0_ost.c
140
aprint_normal_dev(self, "SA-11x0 OS Timer\n");
sys/arch/arm/samsung/exynos5410_clock.c
486
exynos5410_clock_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos5410_clock.c
488
struct exynos5410_clock_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos5410_clock.c
500
sc->sc_dev = self;
sys/arch/arm/samsung/exynos5410_clock.c
525
fdtbus_register_clock_controller(self, faa->faa_phandle,
sys/arch/arm/samsung/exynos5422_clock.c
618
exynos5422_clock_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos5422_clock.c
620
struct exynos5422_clock_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos5422_clock.c
631
sc->sc_dev = self;
sys/arch/arm/samsung/exynos5422_clock.c
650
fdtbus_register_clock_controller(self, faa->faa_phandle,
sys/arch/arm/samsung/exynos_combiner.c
122
exynos_combiner_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_combiner.c
124
struct exynos_combiner_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_combiner.c
135
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_combiner.c
146
error = fdtbus_register_interrupt_controller(self, faa->faa_phandle,
sys/arch/arm/samsung/exynos_dwcmmc.c
136
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_dwcmmc.c
161
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/samsung/exynos_dwcmmc.c
169
dwc_mmc_intr, sc, device_xname(self));
sys/arch/arm/samsung/exynos_dwcmmc.c
171
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/samsung/exynos_dwcmmc.c
175
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/samsung/exynos_dwcmmc.c
89
exynos_dwcmmc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_dwcmmc.c
91
struct exynos_dwcmmc_softc *esc = device_private(self);
sys/arch/arm/samsung/exynos_ehci.c
102
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_ehci.c
125
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/samsung/exynos_ehci.c
130
ehci_intr, sc, device_xname(self));
sys/arch/arm/samsung/exynos_ehci.c
132
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/samsung/exynos_ehci.c
136
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/samsung/exynos_ehci.c
140
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/arch/arm/samsung/exynos_ehci.c
144
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/arm/samsung/exynos_ehci.c
69
exynos_ehci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_ehci.c
71
struct ehci_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_i2c.c
121
exynos_i2c_match(device_t self, cfdata_t cf, void *aux)
sys/arch/arm/samsung/exynos_i2c.c
129
exynos_i2c_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_i2c.c
131
struct exynos_i2c_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_i2c.c
144
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_i2c.c
154
cv_init(&sc->sc_intr_wait, device_xname(self));
sys/arch/arm/samsung/exynos_i2c.c
158
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/samsung/exynos_i2c.c
163
FDT_INTR_MPSAFE, exynos_i2c_intr, sc, device_xname(self));
sys/arch/arm/samsung/exynos_i2c.c
165
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/samsung/exynos_i2c.c
169
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/samsung/exynos_i2c.c
179
iicbus_attach(self, &sc->sc_ic);
sys/arch/arm/samsung/exynos_ohci.c
102
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_ohci.c
121
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/samsung/exynos_ohci.c
126
ohci_intr, sc, device_xname(self));
sys/arch/arm/samsung/exynos_ohci.c
128
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/samsung/exynos_ohci.c
132
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/samsung/exynos_ohci.c
136
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/arch/arm/samsung/exynos_ohci.c
140
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/arm/samsung/exynos_ohci.c
69
exynos_ohci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_ohci.c
71
struct ohci_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_pinctrl.c
108
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_pinctrl.c
130
fdtbus_register_pinctrl_config(self, child,
sys/arch/arm/samsung/exynos_pinctrl.c
93
exynos_pinctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_pinctrl.c
95
struct exynos_pinctrl_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_platform.c
250
exynos_platform_device_register(device_t self, void *aux)
sys/arch/arm/samsung/exynos_platform.c
252
exynos_device_register(self, aux);
sys/arch/arm/samsung/exynos_pwm.c
207
exynos_pwm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_pwm.c
209
struct exynos_pwm_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_pwm.c
229
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_pwm.c
242
sc->sc_timer[n].timer_pwm.pwm_dev = self;
sys/arch/arm/samsung/exynos_pwm.c
258
fdtbus_register_pwm_controller(self, phandle,
sys/arch/arm/samsung/exynos_rtc.c
105
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_rtc.c
119
sc->sc_todr.todr_dev = self;
sys/arch/arm/samsung/exynos_rtc.c
90
exynos_rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_soc.c
576
exynos_device_register(device_t self, void *aux)
sys/arch/arm/samsung/exynos_soc.c
578
if (device_is_a(self, "armperiph")
sys/arch/arm/samsung/exynos_soc.c
579
&& device_is_a(device_parent(self), "mainbus")) {
sys/arch/arm/samsung/exynos_soc.c
590
if (device_is_a(self, "armgic")
sys/arch/arm/samsung/exynos_soc.c
591
&& device_is_a(device_parent(self), "armperiph")) {
sys/arch/arm/samsung/exynos_soc.c
634
if (device_is_a(self, "armgtmr") || device_is_a(self, "mct")) {
sys/arch/arm/samsung/exynos_soc.c
649
prop_dictionary_set_uint32(device_properties(self),
sys/arch/arm/samsung/exynos_soc.c
657
exynos_device_register_post_config(device_t self, void *aux)
sys/arch/arm/samsung/exynos_uart.c
187
exynos_uart_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_uart.c
189
struct exynos_uart_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_uart.c
221
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_uart.c
237
0, exynos_uart_intr, sc, device_xname(self));
sys/arch/arm/samsung/exynos_uart.c
257
minor = device_unit(self);
sys/arch/arm/samsung/exynos_uart.c
298
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/samsung/exynos_usbdrdphy.c
234
exynos_usbdrdphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_usbdrdphy.c
236
struct exynos_usbdrdphy_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_usbdrdphy.c
249
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_usbdrdphy.c
287
fdtbus_register_phy_controller(self, phandle, &exynos_usbdrdphy_funcs);
sys/arch/arm/samsung/exynos_usbphy.c
237
exynos_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_usbphy.c
239
struct exynos_usbphy_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_usbphy.c
252
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_usbphy.c
292
fdtbus_register_phy_controller(self, phandle, &exynos_usbphy_funcs);
sys/arch/arm/samsung/exynos_var.h
168
extern void exynos_device_register(device_t self, void *aux);
sys/arch/arm/samsung/exynos_var.h
169
extern void exynos_device_register_post_config(device_t self, void *aux);
sys/arch/arm/samsung/exynos_var.h
173
extern void exyo_device_register(device_t self, void *aux);
sys/arch/arm/samsung/exynos_var.h
174
extern void exyo_device_register_post_config(device_t self, void *aux);
sys/arch/arm/samsung/exynos_wdt.c
180
exynos_wdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/exynos_wdt.c
182
struct exynos_wdt_softc * const sc = device_private(self);
sys/arch/arm/samsung/exynos_wdt.c
194
sc->sc_dev = self;
sys/arch/arm/samsung/exynos_wdt.c
260
if (device_cfdata(self)->cf_flags & 1)
sys/arch/arm/samsung/exynos_wdt.c
268
sc->sc_smw.smw_name = device_xname(self);
sys/arch/arm/samsung/exynos_wdt.c
278
aprint_error_dev(self,
sys/arch/arm/samsung/mct.c
242
mct_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/samsung/mct.c
255
device_set_private(self, sc);
sys/arch/arm/samsung/mct.c
256
sc->sc_dev = self;
sys/arch/arm/samsung/mct.c
272
arm_fdt_cpu_hatch_register(self, mct_fdt_cpu_hatch);
sys/arch/arm/samsung/mct.c
283
config_found(self, &mpcaa, NULL, CFARGS_NONE);
sys/arch/arm/sociox/if_scx.c
1778
mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/arm/sociox/if_scx.c
1780
struct scx_softc *sc = device_private(self);
sys/arch/arm/sociox/if_scx.c
1798
mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/arm/sociox/if_scx.c
1800
struct scx_softc *sc = device_private(self);
sys/arch/arm/sociox/if_scx.c
1815
mii_readreg(self, phy, MII_PHYIDR1, &dummy); /* dummy read cycle */
sys/arch/arm/sociox/if_scx.c
686
scx_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sociox/if_scx.c
688
struct scx_softc * const sc = device_private(self);
sys/arch/arm/sociox/if_scx.c
730
aprint_normal_dev(self,
sys/arch/arm/sociox/if_scx.c
733
aprint_normal("%s", device_xname(self));
sys/arch/arm/sociox/if_scx.c
744
sc->sc_dev = self;
sys/arch/arm/sociox/if_scx.c
778
scx_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sociox/if_scx.c
780
struct scx_softc * const sc = device_private(self);
sys/arch/arm/sociox/if_scx.c
791
rv = acpi_resource_parse(self, handle, "_CRS",
sys/arch/arm/sociox/if_scx.c
831
aprint_normal_dev(self,
sys/arch/arm/sociox/if_scx.c
834
aprint_normal("%s", device_xname(self));
sys/arch/arm/sociox/if_scx.c
837
intrh = acpi_intr_establish(self, (uint64_t)(uintptr_t)handle,
sys/arch/arm/sociox/if_scx.c
838
IPL_NET, NOT_MP_SAFE, scx_intr, sc, device_xname(self));
sys/arch/arm/sociox/if_scx.c
844
sc->sc_dev = self;
sys/arch/arm/sociox/sni_emmc.c
104
sniemmc_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sociox/sni_emmc.c
106
struct sniemmc_softc * const sc = device_private(self);
sys/arch/arm/sociox/sni_emmc.c
115
aprint_normal_dev(self, "Socionext eMMC controller\n");
sys/arch/arm/sociox/sni_emmc.c
119
aprint_error_dev(self, "unable to map device\n");
sys/arch/arm/sociox/sni_emmc.c
123
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/sociox/sni_emmc.c
129
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sociox/sni_emmc.c
133
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sociox/sni_emmc.c
135
sc->sc.sc_dev = self;
sys/arch/arm/sociox/sni_emmc.c
144
config_defer(self, sniemmc_attach_i);
sys/arch/arm/sociox/sni_emmc.c
160
sniemmc_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sociox/sni_emmc.c
162
struct sniemmc_softc * const sc = device_private(self);
sys/arch/arm/sociox/sni_emmc.c
174
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/arch/arm/sociox/sni_emmc.c
181
aprint_error_dev(self, "incomplete resources\n");
sys/arch/arm/sociox/sni_emmc.c
186
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/arm/sociox/sni_emmc.c
189
sc->sc_ih = acpi_intr_establish(self, (uint64_t)handle,
sys/arch/arm/sociox/sni_emmc.c
190
IPL_BIO, false, sdhc_intr, &sc->sc, device_xname(self));
sys/arch/arm/sociox/sni_emmc.c
192
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/arch/arm/sociox/sni_emmc.c
196
sc->sc.sc_dev = self;
sys/arch/arm/sociox/sni_emmc.c
204
config_defer(self, sniemmc_attach_i);
sys/arch/arm/sociox/sni_emmc.c
215
sniemmc_attach_i(device_t self)
sys/arch/arm/sociox/sni_emmc.c
217
struct sniemmc_softc * const sc = device_private(self);
sys/arch/arm/sociox/sni_emmc.c
230
aprint_error_dev(self, "couldn't initialize host, error=%d\n",
sys/arch/arm/sociox/sni_gpio.c
124
snigpio_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sociox/sni_gpio.c
126
struct snigpio_softc * const sc = device_private(self);
sys/arch/arm/sociox/sni_gpio.c
135
aprint_error_dev(self, "unable to map device\n");
sys/arch/arm/sociox/sni_gpio.c
139
sc->sc_dev = self;
sys/arch/arm/sociox/sni_gpio.c
161
snigpio_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sociox/sni_gpio.c
163
struct snigpio_softc * const sc = device_private(self);
sys/arch/arm/sociox/sni_gpio.c
172
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/arch/arm/sociox/sni_gpio.c
179
aprint_error_dev(self, "incomplete resources\n");
sys/arch/arm/sociox/sni_gpio.c
184
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/arm/sociox/sni_gpio.c
188
sc->sc_dev = self;
sys/arch/arm/sociox/sni_gpio.c
195
aprint_normal("%s", device_xname(self));
sys/arch/arm/sociox/sni_i2c.c
160
sniiic_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sociox/sni_i2c.c
162
struct sniiic_softc * const sc = device_private(self);
sys/arch/arm/sociox/sni_i2c.c
175
aprint_error_dev(self, "unable to map device\n");
sys/arch/arm/sociox/sni_i2c.c
179
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/sociox/sni_i2c.c
185
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/arch/arm/sociox/sni_i2c.c
188
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sociox/sni_i2c.c
190
sc->sc_dev = self;
sys/arch/arm/sociox/sni_i2c.c
199
iicbus_attach(self, &sc->sc_ic);
sys/arch/arm/sociox/sni_i2c.c
216
sniiic_acpi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sociox/sni_i2c.c
218
struct sniiic_softc * const sc = device_private(self);
sys/arch/arm/sociox/sni_i2c.c
231
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/arch/arm/sociox/sni_i2c.c
234
aprint_error_dev(self, "missing crs resources\n");
sys/arch/arm/sociox/sni_i2c.c
240
aprint_error_dev(self, "incomplete resources\n");
sys/arch/arm/sociox/sni_i2c.c
245
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/arm/sociox/sni_i2c.c
248
sc->sc_ih = acpi_intr_establish(self, (uint64_t)handle,
sys/arch/arm/sociox/sni_i2c.c
249
IPL_BIO, false, sni_i2c_intr, sc, device_xname(self));
sys/arch/arm/sociox/sni_i2c.c
251
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/arch/arm/sociox/sni_i2c.c
255
sc->sc_dev = self;
sys/arch/arm/sunxi/sun4i_a10_ccu.c
855
sun4i_a10_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun4i_a10_ccu.c
857
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun4i_a10_ccu.c
863
sc->sc_dev = self;
sys/arch/arm/sunxi/sun4i_dma.c
352
sun4idma_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun4i_dma.c
354
struct sun4idma_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun4i_dma.c
374
sc->sc_dev = self;
sys/arch/arm/sunxi/sun4i_dma.c
420
fdtbus_register_dma_controller(self, phandle, &sun4idma_funcs);
sys/arch/arm/sunxi/sun4i_emac.c
238
sun4i_emac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun4i_emac.c
240
struct sun4i_emac_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun4i_emac.c
278
sc->sc_dev = self;
sys/arch/arm/sunxi/sun4i_emac.c
303
sun4i_emac_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sun4i_emac.c
305
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/sunxi/sun4i_emac.c
309
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sun4i_emac.c
336
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(enaddr));
sys/arch/arm/sunxi/sun4i_emac.c
338
snprintf(ifp->if_xname, IFNAMSIZ, EMAC_IFNAME, device_unit(self));
sys/arch/arm/sunxi/sun4i_emac.c
359
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY, 0);
sys/arch/arm/sunxi/sun4i_emac.c
362
aprint_error_dev(self, "no PHY found!\n");
sys/arch/arm/sunxi/sun4i_emac.c
375
rnd_attach_source(&sc->sc_rnd_source, device_xname(self),
sys/arch/arm/sunxi/sun4i_emac.c
389
sun4i_emac_miibus_read_reg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/arm/sunxi/sun4i_emac.c
391
struct sun4i_emac_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun4i_emac.c
401
device_printf(self, "PHY read timeout\n");
sys/arch/arm/sunxi/sun4i_emac.c
412
sun4i_emac_miibus_write_reg(device_t self, int phy, int reg, uint16_t val)
sys/arch/arm/sunxi/sun4i_emac.c
414
struct sun4i_emac_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun4i_emac.c
424
device_printf(self, "PHY write timeout\n");
sys/arch/arm/sunxi/sun4i_spi.c
103
sc->sc_dev = self;
sys/arch/arm/sunxi/sun4i_spi.c
140
sun4ispi_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sun4i_spi.c
148
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sun4i_spi.c
155
spibus_attach(self, &sc->sc_spi);
sys/arch/arm/sunxi/sun4i_spi.c
93
sun4ispi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun4i_spi.c
95
struct sun4ispi_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun50i_a64_acodec.c
623
a64_acodec_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun50i_a64_acodec.c
625
struct a64_acodec_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun50i_a64_acodec.c
631
sc->sc_dev = self;
sys/arch/arm/sunxi/sun50i_a64_acodec.c
664
sc->sc_dai.dai_dev = self;
sys/arch/arm/sunxi/sun50i_a64_acodec.c
666
fdtbus_register_dai_controller(self, phandle, &a64_acodec_dai_funcs);
sys/arch/arm/sunxi/sun50i_a64_ccu.c
617
sun50i_a64_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun50i_a64_ccu.c
619
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun50i_a64_ccu.c
622
sc->sc_dev = self;
sys/arch/arm/sunxi/sun50i_a64_ccu.c
638
if (! device_getprop_bool(self, "nomodeset")) {
sys/arch/arm/sunxi/sun50i_a64_r_ccu.c
121
sun50i_a64_r_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun50i_a64_r_ccu.c
123
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun50i_a64_r_ccu.c
126
sc->sc_dev = self;
sys/arch/arm/sunxi/sun50i_h6_ccu.c
382
sun50i_h6_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun50i_h6_ccu.c
384
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun50i_h6_ccu.c
387
sc->sc_dev = self;
sys/arch/arm/sunxi/sun50i_h6_r_ccu.c
136
sun50i_h6_r_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun50i_h6_r_ccu.c
138
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun50i_h6_r_ccu.c
141
sc->sc_dev = self;
sys/arch/arm/sunxi/sun5i_a13_ccu.c
299
sun5i_a13_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun5i_a13_ccu.c
301
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun5i_a13_ccu.c
304
sc->sc_dev = self;
sys/arch/arm/sunxi/sun6i_a31_ccu.c
283
sun6i_a31_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun6i_a31_ccu.c
285
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun6i_a31_ccu.c
288
sc->sc_dev = self;
sys/arch/arm/sunxi/sun6i_dma.c
445
sun6idma_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun6i_dma.c
447
struct sun6idma_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun6i_dma.c
476
sc->sc_dev = self;
sys/arch/arm/sunxi/sun6i_dma.c
548
fdtbus_register_dma_controller(self, phandle, &sun6idma_funcs);
sys/arch/arm/sunxi/sun6i_spi.c
101
sun6ispi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun6i_spi.c
103
struct sun6ispi_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun6i_spi.c
113
sc->sc_dev = self;
sys/arch/arm/sunxi/sun6i_spi.c
153
sun6ispi_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sun6i_spi.c
162
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sun6i_spi.c
168
aprint_error_dev(self, "reset timeout\n");
sys/arch/arm/sunxi/sun6i_spi.c
187
spibus_attach(self, &sc->sc_spi);
sys/arch/arm/sunxi/sun8i_a23_apbclk.c
100
sun8i_a23_apbclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun8i_a23_apbclk.c
102
struct sun8i_a23_apbclk_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun8i_a23_apbclk.c
113
sc->sc_dev = self;
sys/arch/arm/sunxi/sun8i_a23_apbclk.c
131
fdtbus_register_clock_controller(self, phandle, &sun8i_a23_apbclk_fdt_funcs);
sys/arch/arm/sunxi/sun8i_a83t_ccu.c
376
sun8i_a83t_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun8i_a83t_ccu.c
378
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun8i_a83t_ccu.c
381
sc->sc_dev = self;
sys/arch/arm/sunxi/sun8i_codec.c
369
sun8i_codec_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun8i_codec.c
371
struct sun8i_codec_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun8i_codec.c
390
sc->sc_dev = self;
sys/arch/arm/sunxi/sun8i_codec.c
416
aprint_error_dev(self, "couldn't create jackdet workqueue\n");
sys/arch/arm/sunxi/sun8i_codec.c
480
sun8i_codec_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sun8i_codec.c
482
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sunxi/sun8i_codec.c
486
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sun8i_codec.c
491
sc->sc_dai.dai_dev = self;
sys/arch/arm/sunxi/sun8i_codec.c
493
fdtbus_register_dai_controller(self, phandle, &sun8i_codec_dai_funcs);
sys/arch/arm/sunxi/sun8i_crypto.c
1314
device_t self = sc->sc_dev;
sys/arch/arm/sunxi/sun8i_crypto.c
1325
aprint_error_dev(self, "failed to allocate RNG buffer: %d\n",
sys/arch/arm/sunxi/sun8i_crypto.c
1334
aprint_error_dev(self, "failed to allocate RNG task\n");
sys/arch/arm/sunxi/sun8i_crypto.c
1343
aprint_error_dev(self, "failed to load RNG buffer: %d\n",
sys/arch/arm/sunxi/sun8i_crypto.c
1353
rnd_attach_source(&rng->cr_rndsource, device_xname(self),
sys/arch/arm/sunxi/sun8i_crypto.c
377
sun8i_crypto_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun8i_crypto.c
379
struct sun8i_crypto_softc *const sc = device_private(self);
sys/arch/arm/sunxi/sun8i_crypto.c
389
sc->sc_dev = self;
sys/arch/arm/sunxi/sun8i_crypto.c
400
if (workqueue_create(&sc->sc_wq, device_xname(self),
sys/arch/arm/sunxi/sun8i_crypto.c
459
aprint_debug_dev(self, ": clock freq %d\n", clk_get_rate(clk));
sys/arch/arm/sunxi/sun8i_crypto.c
471
FDT_INTR_MPSAFE, &sun8i_crypto_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sun8i_crypto.c
473
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/sunxi/sun8i_crypto.c
477
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sun8i_h3_ccu.c
527
sun8i_h3_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun8i_h3_ccu.c
529
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun8i_h3_ccu.c
532
sc->sc_dev = self;
sys/arch/arm/sunxi/sun8i_h3_codec.c
449
h3_codec_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun8i_h3_codec.c
451
struct h3_codec_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun8i_h3_codec.c
457
sc->sc_dev = self;
sys/arch/arm/sunxi/sun8i_h3_r_ccu.c
107
sun8i_h3_r_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun8i_h3_r_ccu.c
109
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun8i_h3_r_ccu.c
112
sc->sc_dev = self;
sys/arch/arm/sunxi/sun8i_v3s_ccu.c
393
sun8i_v3s_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun8i_v3s_ccu.c
395
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun8i_v3s_ccu.c
398
sc->sc_dev = self;
sys/arch/arm/sunxi/sun8i_v3s_codec.c
421
v3s_codec_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun8i_v3s_codec.c
423
struct v3s_codec_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun8i_v3s_codec.c
429
sc->sc_dev = self;
sys/arch/arm/sunxi/sun9i_a80_ccu.c
395
sun9i_a80_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun9i_a80_ccu.c
397
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun9i_a80_ccu.c
400
sc->sc_dev = self;
sys/arch/arm/sunxi/sun9i_a80_cpusclk.c
102
sun9i_a80_cpusclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun9i_a80_cpusclk.c
104
struct sun9i_a80_cpusclk_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun9i_a80_cpusclk.c
115
sc->sc_dev = self;
sys/arch/arm/sunxi/sun9i_a80_cpusclk.c
132
fdtbus_register_clock_controller(self, phandle, &sun9i_a80_cpusclk_fdt_funcs);
sys/arch/arm/sunxi/sun9i_a80_mmcclk.c
78
sun9i_a80_mmcclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun9i_a80_mmcclk.c
80
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun9i_a80_mmcclk.c
86
sc->sc_dev = self;
sys/arch/arm/sunxi/sun9i_a80_usbclk.c
117
sun9i_a80_usbclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun9i_a80_usbclk.c
119
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun9i_a80_usbclk.c
124
sc->sc_dev = self;
sys/arch/arm/sunxi/sun9i_a80_usbphy.c
164
sun9i_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sun9i_a80_usbphy.c
166
struct sun9i_usbphy_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sun9i_a80_usbphy.c
173
sc->sc_dev = self;
sys/arch/arm/sunxi/sun9i_a80_usbphy.c
210
aprint_error_dev(self, "WARNING: couldn't enable power supply\n");
sys/arch/arm/sunxi/sun9i_a80_usbphy.c
213
fdtbus_register_phy_controller(self, phandle, &sun9i_usbphy_funcs);
sys/arch/arm/sunxi/sunxi_can.c
132
sunxi_can_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_can.c
134
struct sunxi_can_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_can.c
144
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_can.c
197
aprint_debug_dev(self, ": clock freq %d\n",
sys/arch/arm/sunxi/sunxi_can.c
209
sunxi_can_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_can.c
211
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_can.c
215
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_can.c
219
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/arch/arm/sunxi/sunxi_can.c
233
rnd_attach_source(&sc->sc_rnd_source, device_xname(self),
sys/arch/arm/sunxi/sunxi_codec.c
582
sunxi_codec_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_codec.c
584
struct sunxi_codec_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_codec.c
599
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_codec.c
632
aprint_error_dev(self, "couldn't initialize codec\n");
sys/arch/arm/sunxi/sunxi_codec.c
645
audio_attach_mi(&sunxi_codec_hw_if, sc, self);
sys/arch/arm/sunxi/sunxi_de2.c
56
sunxi_de2_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_de2.c
69
fdt_add_bus(self, phandle, faa);
sys/arch/arm/sunxi/sunxi_de2_ccu.c
122
sunxi_de2_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_de2_ccu.c
124
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_de2_ccu.c
131
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_debe.c
151
sunxi_debe_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_debe.c
153
struct sunxi_debe_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_debe.c
160
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_debe.c
179
aprint_debug_dev(self, "clk ahb %s mod %s ram %s\n",
sys/arch/arm/sunxi/sunxi_debe.c
212
fdt_ports_register(&sc->sc_ports, self, phandle, EP_OTHER);
sys/arch/arm/sunxi/sunxi_debe.c
272
sunxi_debe_ep_connect(device_t self, struct fdt_endpoint *ep, bool connect)
sys/arch/arm/sunxi/sunxi_debe.c
274
struct sunxi_debe_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_debe.c
278
KASSERT(device_is_a(self, "sunxidebe"));
sys/arch/arm/sunxi/sunxi_debe.c
280
aprint_error_dev(self, "endpoint disconnect not supported\n");
sys/arch/arm/sunxi/sunxi_debe.c
292
aprint_error_dev(self, ": remote id %d doesn't match"
sys/arch/arm/sunxi/sunxi_debe.c
298
aprint_error_dev(self,
sys/arch/arm/sunxi/sunxi_debe.c
310
aprint_verbose_dev(self, "debe unit %d\n", sc->sc_unit);
sys/arch/arm/sunxi/sunxi_debe.c
661
sunxi_debe_ioctl(device_t self, u_long cmd, void *data)
sys/arch/arm/sunxi/sunxi_debe.c
663
struct sunxi_debe_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_debe.c
738
sunxi_befb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_debe.c
740
struct sunxi_befb_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_debe.c
742
prop_dictionary_t cfg = device_properties(self);
sys/arch/arm/sunxi/sunxi_debe.c
745
sc->sc_gen.sc_dev = self;
sys/arch/arm/sunxi/sunxi_debe.c
766
pmf_device_register1(self, NULL, NULL, sunxi_befb_shutdown);
sys/arch/arm/sunxi/sunxi_debe.c
792
sunxi_befb_consoledev = self;
sys/arch/arm/sunxi/sunxi_debe.c
849
sunxi_befb_shutdown(device_t self, int flags)
sys/arch/arm/sunxi/sunxi_debe.c
851
genfb_enable_polling(self);
sys/arch/arm/sunxi/sunxi_dep.c
107
aprint_normal_dev(self, "");
sys/arch/arm/sunxi/sunxi_dep.c
84
sunxi_dep_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_dep.c
86
struct sunxi_dep_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_dep.c
95
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_drm.c
128
sunxi_drm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_drm.c
130
struct sunxi_drm_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_drm.c
136
if (device_getprop_bool(self, "disabled")) {
sys/arch/arm/sunxi/sunxi_drm.c
144
device_setprop_bool(self, "is_console", true);
sys/arch/arm/sunxi/sunxi_drm.c
147
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_drm.c
155
aprint_error_dev(self, "unable to create workqueue\n");
sys/arch/arm/sunxi/sunxi_drm.c
162
aprint_error_dev(self, "couldn't allocate DRM device\n");
sys/arch/arm/sunxi/sunxi_drm.c
173
config_defer(self, sunxi_drm_init);
sys/arch/arm/sunxi/sunxi_drm.c
549
sunxi_task_schedule(device_t self, struct sunxi_drm_task *task)
sys/arch/arm/sunxi/sunxi_drm.c
551
struct sunxi_drm_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_dwhdmi.c
228
sunxi_dwhdmi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_dwhdmi.c
230
struct sunxi_dwhdmi_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_dwhdmi.c
238
if (device_getprop_bool(self, "disabled")) {
sys/arch/arm/sunxi/sunxi_dwhdmi.c
267
sc->sc_base.sc_dev = self;
sys/arch/arm/sunxi/sunxi_dwhdmi.c
292
device_printf(self, "couldn't find PHY\n");
sys/arch/arm/sunxi/sunxi_dwhdmi.c
298
aprint_error_dev(self, "couldn't de-assert reset\n");
sys/arch/arm/sunxi/sunxi_dwhdmi.c
305
aprint_error_dev(self, "failed to attach driver\n");
sys/arch/arm/sunxi/sunxi_dwhdmi.c
311
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_BRIDGE);
sys/arch/arm/sunxi/sunxi_dwhdmi.c
313
fdtbus_register_dai_controller(self, phandle, &sunxi_dwhdmi_dai_funcs);
sys/arch/arm/sunxi/sunxi_emac.c
1368
sunxi_emac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_emac.c
1371
struct sunxi_emac_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_emac.c
1378
sc->dev = self;
sys/arch/arm/sunxi/sunxi_emac.c
1389
aprint_error_dev(self,
sys/arch/arm/sunxi/sunxi_emac.c
1394
aprint_error_dev(self, "cannot decode interrupt\n");
sys/arch/arm/sunxi/sunxi_emac.c
1408
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(eaddr));
sys/arch/arm/sunxi/sunxi_emac.c
1412
aprint_error_dev(self, "failed to reset PHY\n");
sys/arch/arm/sunxi/sunxi_emac.c
1418
aprint_error_dev(self, "failed to setup DMA descriptors\n");
sys/arch/arm/sunxi/sunxi_emac.c
1424
FDT_INTR_FLAGS, sunxi_emac_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_emac.c
1426
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_emac.c
1430
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_emac.c
1434
snprintf(ifp->if_xname, IFNAMSIZ, EMAC_IFNAME, device_unit(self));
sys/arch/arm/sunxi/sunxi_emac.c
1463
mii_attach(self, mii, 0xffffffff, sc->phy_id, MII_OFFSET_ANY,
sys/arch/arm/sunxi/sunxi_emac.c
1467
aprint_error_dev(self, "no PHY found!\n");
sys/arch/arm/sunxi/sunxi_fb.c
128
sunxi_fb_shutdown(device_t self, int flags)
sys/arch/arm/sunxi/sunxi_fb.c
130
struct sunxi_fb_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_fb.c
81
sunxi_fb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_fb.c
83
struct sunxi_fb_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_fb.c
87
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_gates.c
214
sunxi_gates_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_gates.c
216
struct sunxi_gates_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_gates.c
230
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_gates.c
247
aprint_error_dev(self, "no clock-indices property\n");
sys/arch/arm/sunxi/sunxi_gates.c
259
aprint_error_dev(self, "no name for clk index %d\n",
sys/arch/arm/sunxi/sunxi_gmac.c
124
sunxi_gmac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_gmac.c
126
struct dwc_gmac_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_gmac.c
142
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_gmac.c
206
device_xname(self)) == NULL) {
sys/arch/arm/sunxi/sunxi_gmac.c
207
aprint_error_dev(self, "failed to establish interrupt on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_gmac.c
210
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_gmac.c
213
aprint_error_dev(self, "PHY reset failed\n");
sys/arch/arm/sunxi/sunxi_gmacclk.c
106
sunxi_gmacclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_gmacclk.c
108
struct sunxi_gmacclk_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_gmacclk.c
119
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_gmacclk.c
142
fdtbus_register_clock_controller(self, phandle, &sunxi_gmacclk_fdt_funcs);
sys/arch/arm/sunxi/sunxi_gpio.c
1024
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_gpio.c
1037
fdtbus_register_gpio_controller(self, phandle, &sunxi_gpio_funcs);
sys/arch/arm/sunxi/sunxi_gpio.c
1045
fdtbus_register_pinctrl_config(self, child, &sunxi_pinctrl_funcs);
sys/arch/arm/sunxi/sunxi_gpio.c
1064
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/sunxi/sunxi_gpio.c
1068
FDT_INTR_MPSAFE, sunxi_gpio_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_gpio.c
1070
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_gpio.c
1074
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_gpio.c
1075
fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/sunxi/sunxi_gpio.c
995
sunxi_gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_gpio.c
997
struct sunxi_gpio_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_hdmi.c
159
sunxi_hdmi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_hdmi.c
161
struct sunxi_hdmi_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_hdmi.c
168
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_hdmi.c
191
aprint_debug_dev(self, "clk ahb %s mod %s pll-0 %s pll-1 %s\n",
sys/arch/arm/sunxi/sunxi_hdmi.c
216
fdt_ports_register(&sc->sc_ports, self, phandle, EP_OTHER);
sys/arch/arm/sunxi/sunxi_hdmiphy.c
404
sunxi_hdmiphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_hdmiphy.c
406
struct sunxi_hdmiphy_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_hdmiphy.c
432
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_hdmiphy.c
447
fdtbus_register_phy_controller(self, phandle, &sunxi_hdmiphy_funcs);
sys/arch/arm/sunxi/sunxi_hstimer.c
136
sunxi_hstimer_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_hstimer.c
138
struct sunxi_hstimer_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_hstimer.c
147
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_hstimer.c
186
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/sunxi/sunxi_hstimer.c
192
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_i2s.c
867
sunxi_i2s_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_i2s.c
869
struct sunxi_i2s_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_i2s.c
881
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_i2s.c
965
sc->sc_dai.dai_dev = self;
sys/arch/arm/sunxi/sunxi_i2s.c
967
fdtbus_register_dai_controller(self, phandle, &sunxi_i2s_dai_funcs);
sys/arch/arm/sunxi/sunxi_intc.c
226
sunxi_intc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_intc.c
228
struct sunxi_intc_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_intc.c
240
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_intc.c
266
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/sunxi/sunxi_intc.c
269
aprint_error_dev(self, "couldn't register with fdtbus: %d\n",
sys/arch/arm/sunxi/sunxi_lcdc.c
482
sunxi_lcdc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_lcdc.c
484
struct sunxi_lcdc_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_lcdc.c
516
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_lcdc.c
539
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_ENCODER);
sys/arch/arm/sunxi/sunxi_lcdc.c
542
sunxi_lcdc_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_lcdc.c
544
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_lcdc.c
548
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_lradc.c
109
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_lradc.c
188
FDT_INTR_MPSAFE, sunxi_lradc_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_lradc.c
190
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_lradc.c
194
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_lradc.c
197
aprint_error_dev(self, "can't register switches\n");
sys/arch/arm/sunxi/sunxi_lradc.c
203
aprint_error_dev(self, "can't register switches\n");
sys/arch/arm/sunxi/sunxi_lradc.c
96
sunxi_lradc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_lradc.c
98
struct sunxi_lradc_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_mixer.c
618
sunxi_mixer_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_mixer.c
620
struct sunxi_mixer_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_mixer.c
656
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_mixer.c
670
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_CRTC);
sys/arch/arm/sunxi/sunxi_mmc.c
327
sunxi_mmc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_mmc.c
329
struct sunxi_mmc_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_mmc.c
373
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_mmc.c
413
aprint_error_dev(self, "failed to setup DMA\n");
sys/arch/arm/sunxi/sunxi_mmc.c
418
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/sunxi/sunxi_mmc.c
423
FDT_INTR_MPSAFE, sunxi_mmc_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_mmc.c
425
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_mmc.c
429
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_mmc.c
431
config_interrupts(self, sunxi_mmc_attach_i);
sys/arch/arm/sunxi/sunxi_mmc.c
567
sunxi_mmc_attach_i(device_t self)
sys/arch/arm/sunxi/sunxi_mmc.c
569
struct sunxi_mmc_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_mmc.c
626
sc->sc_sdmmc_dev = config_found(self, &saa, NULL, CFARGS_NONE);
sys/arch/arm/sunxi/sunxi_musb.c
301
sunxi_musb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_musb.c
303
struct sunxi_musb_softc * const msc = device_private(self);
sys/arch/arm/sunxi/sunxi_musb.c
361
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_musb.c
380
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/sunxi/sunxi_musb.c
385
sunxi_musb_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_musb.c
387
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_musb.c
391
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_nand.c
638
sunxi_nand_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_nand.c
640
struct sunxi_nand_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_nand.c
657
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_nand.c
671
FDT_INTR_MPSAFE, sunxi_nand_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_nand.c
673
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_nand.c
677
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_nand.c
680
aprint_error_dev(self, "couldn't initialize resources\n");
sys/arch/arm/sunxi/sunxi_nmi.c
368
sunxi_nmi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_nmi.c
370
struct sunxi_nmi_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_nmi.c
383
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_nmi.c
420
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/sunxi/sunxi_nmi.c
423
aprint_error_dev(self, "couldn't register with fdtbus: %d\n",
sys/arch/arm/sunxi/sunxi_platform.c
202
sunxi_platform_device_register(device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_platform.c
204
prop_dictionary_t prop = device_properties(self);
sys/arch/arm/sunxi/sunxi_platform.c
207
if (device_is_a(self, "rgephy")) {
sys/arch/arm/sunxi/sunxi_platform.c
219
if (device_is_a(self, "armgtmr")) {
sys/arch/arm/sunxi/sunxi_platform.c
232
if (device_is_a(self, "sunxidrm") || device_is_a(self, "dwhdmi")) {
sys/arch/arm/sunxi/sunxi_platform.c
238
if (device_is_a(self, "sun50ia64ccu0")) {
sys/arch/arm/sunxi/sunxi_platform.c
244
if (device_is_a(self, "com")) {
sys/arch/arm/sunxi/sunxi_pwm.c
190
sunxi_pwm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_pwm.c
192
struct sunxi_pwm_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_pwm.c
211
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_pwm.c
227
sc->sc_pwm.pwm_dev = self;
sys/arch/arm/sunxi/sunxi_pwm.c
229
fdtbus_register_pwm_controller(self, phandle,
sys/arch/arm/sunxi/sunxi_resets.c
121
sunxi_resets_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_resets.c
123
struct sunxi_resets_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_resets.c
134
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_rsb.c
126
sunxi_rsb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_rsb.c
128
struct sunxi_rsb_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_rsb.c
158
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_rsb.c
173
sunxi_rsb_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_rsb.c
175
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_rsb.c
179
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_rsb.c
185
iicbus_attach(self, &sc->sc_ic);
sys/arch/arm/sunxi/sunxi_rtc.c
368
sunxi_rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_rtc.c
370
struct sunxi_rtc_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_rtc.c
383
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_rtc.c
396
sc->sc_todr.todr_dev = self;
sys/arch/arm/sunxi/sunxi_sata.c
116
sc, device_xname(self)) == NULL) {
sys/arch/arm/sunxi/sunxi_sata.c
117
aprint_error_dev(self, "failed to establish interrupt on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_sata.c
120
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_sata.c
72
sunxi_sata_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_sata.c
74
struct ahci_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_sata.c
88
sc->sc_atac.atac_dev = self;
sys/arch/arm/sunxi/sunxi_sid.c
103
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_sid.c
90
sunxi_sid_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_sid.c
92
struct sunxi_sid_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_sramc.c
202
sunxi_sramc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_sramc.c
204
struct sunxi_sramc_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_sramc.c
215
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_sramc.c
238
fdtbus_register_syscon(self, phandle, &sc->sc_syscon);
sys/arch/arm/sunxi/sunxi_tcon.c
117
sunxi_tcon_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_tcon.c
119
struct sunxi_tcon_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_tcon.c
125
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_tcon.c
144
aprint_debug_dev(self, "clk ahb %s tcon-ch0 %s tcon-ch1 %s\n",
sys/arch/arm/sunxi/sunxi_tcon.c
170
fdt_ports_register(&sc->sc_ports, self, phandle, EP_OTHER);
sys/arch/arm/sunxi/sunxi_tcon.c
251
sunxi_tcon_ep_connect(device_t self, struct fdt_endpoint *ep, bool connect)
sys/arch/arm/sunxi/sunxi_tcon.c
253
struct sunxi_tcon_softc *sc = device_private(self);
sys/arch/arm/sunxi/sunxi_tcon.c
257
KASSERT(device_is_a(self, "sunxitcon"));
sys/arch/arm/sunxi/sunxi_tcon.c
259
aprint_error_dev(self, "endpoint disconnect not supported\n");
sys/arch/arm/sunxi/sunxi_tcon.c
271
aprint_error_dev(self, ": remote id %d doesn't match"
sys/arch/arm/sunxi/sunxi_tcon.c
277
aprint_error_dev(self,
sys/arch/arm/sunxi/sunxi_tcon.c
290
aprint_verbose_dev(self, "tcon unit %d\n", sc->sc_unit);
sys/arch/arm/sunxi/sunxi_tcon.c
294
aprint_error_dev(self,
sys/arch/arm/sunxi/sunxi_tcon.c
312
aprint_error_dev(self,
sys/arch/arm/sunxi/sunxi_thermal.c
567
sunxi_thermal_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_thermal.c
569
struct sunxi_thermal_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_thermal.c
583
sc->dev = self;
sys/arch/arm/sunxi/sunxi_thermal.c
609
sunxi_thermal_intr, sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_thermal.c
611
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_thermal.c
615
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_thermal.c
627
aprint_error_dev(self, "failed to initialize sensors\n");
sys/arch/arm/sunxi/sunxi_thermal.c
632
sc->sme->sme_name = device_xname(self);
sys/arch/arm/sunxi/sunxi_thermal.c
646
device_printf(self,
sys/arch/arm/sunxi/sunxi_timer.c
185
sunxi_timer_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_timer.c
187
struct sunxi_timer_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_timer.c
207
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_ts.c
350
sunxi_ts_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_ts.c
352
struct sunxi_ts_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_ts.c
371
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_ts.c
392
sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_ts.c
394
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_ts.c
398
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_ts.c
401
sc->sc_sme->sme_name = device_xname(self);
sys/arch/arm/sunxi/sunxi_ts.c
422
config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/arm/sunxi/sunxi_twi.c
123
sunxi_twi_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_twi.c
125
struct gttwsi_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_twi.c
168
gttwsi_attach_subr(self, bst, bsh, sunxi_twi_regmap);
sys/arch/arm/sunxi/sunxi_twi.c
177
sc, device_xname(self));
sys/arch/arm/sunxi/sunxi_twi.c
179
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/sunxi/sunxi_twi.c
183
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/sunxi/sunxi_twi.c
185
iicbus_attach(self, &sc->sc_i2c);
sys/arch/arm/sunxi/sunxi_usb3phy.c
167
sunxi_usb3phy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_usb3phy.c
169
struct sunxi_usb3phy_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_usb3phy.c
179
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_usb3phy.c
212
fdtbus_register_phy_controller(self, phandle, &sunxi_usb3phy_funcs);
sys/arch/arm/sunxi/sunxi_usbphy.c
346
sunxi_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_usbphy.c
348
struct sunxi_usbphy_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_usbphy.c
359
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_usbphy.c
403
fdtbus_register_phy_controller(self, phandle, &sunxi_usbphy_funcs);
sys/arch/arm/sunxi/sunxi_wdt.c
244
sunxi_wdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/sunxi/sunxi_wdt.c
246
struct sunxi_wdt_softc * const sc = device_private(self);
sys/arch/arm/sunxi/sunxi_wdt.c
259
sc->sc_dev = self;
sys/arch/arm/sunxi/sunxi_wdt.c
270
sc->sc_smw.smw_name = device_xname(self);
sys/arch/arm/sunxi/sunxi_wdt.c
300
aprint_normal_dev(self,
sys/arch/arm/sunxi/sunxi_wdt.c
305
aprint_error_dev(self,
sys/arch/arm/ti/am18xx_aclk.c
153
am18xx_aclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/am18xx_aclk.c
155
struct am18xx_aclk_softc * const sc = device_private(self);
sys/arch/arm/ti/am18xx_aclk.c
183
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/ti/am18xx_aclk.c
190
fdtbus_register_clock_controller(self, phandle, &am18xx_aclk_clk_fdt_funcs);
sys/arch/arm/ti/am18xx_intc.c
255
am18xx_intc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/am18xx_intc.c
257
struct am18xx_intc_softc * const sc = device_private(self);
sys/arch/arm/ti/am18xx_intc.c
284
strlcpy(sc->sc_pic.pic_name, device_xname(self),
sys/arch/arm/ti/am18xx_intc.c
288
fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/ti/am18xx_ohci.c
107
sc->ohci_sc.sc_dev = self;
sys/arch/arm/ti/am18xx_ohci.c
153
FDT_INTR_MPSAFE, ohci_intr, &sc->ohci_sc, device_xname(self));
sys/arch/arm/ti/am18xx_ohci.c
155
aprint_error_dev(self, ": couldn't install interrupt %s\n",
sys/arch/arm/ti/am18xx_ohci.c
165
aprint_error_dev(self, ": init failed, error=%d\n", error);
sys/arch/arm/ti/am18xx_ohci.c
169
sc->ohci_sc.sc_child = config_found(self, &sc->ohci_sc.sc_bus,
sys/arch/arm/ti/am18xx_ohci.c
96
am18xx_ohci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/am18xx_ohci.c
98
struct am18xx_ohci_softc *const sc = device_private(self);
sys/arch/arm/ti/am18xx_pllc.c
260
am18xx_pllc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/am18xx_pllc.c
262
struct am18xx_pllc_softc * const sc = device_private(self);
sys/arch/arm/ti/am18xx_pllc.c
289
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/ti/am18xx_pllc.c
307
fdtbus_register_clock_controller(self, sc->sc_auxclk_phandle,
sys/arch/arm/ti/am18xx_pllc.c
316
fdtbus_register_clock_controller(self, sc->sc_sysclk_phandle,
sys/arch/arm/ti/am18xx_psc.c
295
am18xx_psc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/am18xx_psc.c
297
struct am18xx_psc_softc * const sc = device_private(self);
sys/arch/arm/ti/am18xx_psc.c
318
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/ti/am18xx_psc.c
347
fdtbus_register_clock_controller(self, phandle,
sys/arch/arm/ti/am18xx_timer.c
118
am18xx_timer_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/am18xx_timer.c
120
struct am18xx_timer_softc * const sc = device_private(self);
sys/arch/arm/ti/am18xx_timer.c
146
device_xname(self));
sys/arch/arm/ti/am18xx_timer.c
148
aprint_error_dev(self, "couldn't install timer interrupt\n");
sys/arch/arm/ti/am18xx_usbphy.c
183
am18xx_usbphy_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/am18xx_usbphy.c
185
struct am18xx_usbphy_softc *const sc = device_private(self);
sys/arch/arm/ti/am18xx_usbphy.c
220
error = fdtbus_register_phy_controller(self, phandle,
sys/arch/arm/ti/am18xx_usbphyclk.c
401
am18xx_usbphyclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/am18xx_usbphyclk.c
403
struct am18xx_usbphyclk_softc *const sc = device_private(self);
sys/arch/arm/ti/am18xx_usbphyclk.c
441
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/ti/am18xx_usbphyclk.c
462
fdtbus_register_clock_controller(self, phandle,
sys/arch/arm/ti/am3_prcm.c
262
am3_prcm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/am3_prcm.c
264
struct am3_prcm_softc * const sc = device_private(self);
sys/arch/arm/ti/am3_prcm.c
274
sc->sc_prcm.sc_dev = self;
sys/arch/arm/ti/am3_prcm.c
296
aprint_debug_dev(self, "clkctrl: %s\n", fdtbus_get_string(cm_child, "name"));
sys/arch/arm/ti/am3_prcm.c
297
fdtbus_register_clock_controller(self, cm_child,
sys/arch/arm/ti/am3_prcm.c
304
fdt_add_bus(self, clocks, faa);
sys/arch/arm/ti/if_cpsw.c
343
cpsw_detach(device_t self, int flags)
sys/arch/arm/ti/if_cpsw.c
345
struct cpsw_softc * const sc = device_private(self);
sys/arch/arm/ti/if_cpsw.c
392
cpsw_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/if_cpsw.c
395
struct cpsw_softc * const sc = device_private(self);
sys/arch/arm/ti/if_cpsw.c
414
sc->sc_dev = self;
sys/arch/arm/ti/if_cpsw.c
475
snprintf(xname, sizeof(xname), "%s rxth", device_xname(self));
sys/arch/arm/ti/if_cpsw.c
479
snprintf(xname, sizeof(xname), "%s rx", device_xname(self));
sys/arch/arm/ti/if_cpsw.c
483
snprintf(xname, sizeof(xname), "%s tx", device_xname(self));
sys/arch/arm/ti/if_cpsw.c
487
snprintf(xname, sizeof(xname), "%s misc", device_xname(self));
sys/arch/arm/ti/if_cpsw.c
586
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, 0, 0);
sys/arch/arm/ti/if_cpsw.c
588
aprint_error_dev(self, "no PHY found!\n");
sys/arch/arm/ti/omap2_nand.c
102
static int omap2_nand_ecc_init(device_t self);
sys/arch/arm/ti/omap2_nand.c
103
static int omap2_nand_ecc_prepare(device_t self, int mode);
sys/arch/arm/ti/omap2_nand.c
104
static int omap2_nand_ecc_compute(device_t self, const uint8_t *data, uint8_t *ecc);
sys/arch/arm/ti/omap2_nand.c
105
static int omap2_nand_ecc_correct(device_t self, uint8_t *data, const uint8_t *oldecc,
sys/arch/arm/ti/omap2_nand.c
149
omap2_nand_command(device_t self, uint8_t command)
sys/arch/arm/ti/omap2_nand.c
151
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
157
omap2_nand_address(device_t self, uint8_t address)
sys/arch/arm/ti/omap2_nand.c
159
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
165
omap2_nand_isbusy(device_t self)
sys/arch/arm/ti/omap2_nand.c
167
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
192
omap2_nand_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/omap2_nand.c
194
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
210
sc->sc_dev = self;
sys/arch/arm/ti/omap2_nand.c
248
omap2_nand_busy(self);
sys/arch/arm/ti/omap2_nand.c
278
omap2_nand_ecc_init(self);
sys/arch/arm/ti/omap2_nand.c
303
aprint_error_dev(self, "couldn't parse partition %s\n",
sys/arch/arm/ti/omap2_nand.c
322
omap2_nand_busy(device_t self)
sys/arch/arm/ti/omap2_nand.c
324
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
332
omap2_nand_read_1(device_t self, uint8_t *data)
sys/arch/arm/ti/omap2_nand.c
334
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
340
omap2_nand_write_1(device_t self, uint8_t data)
sys/arch/arm/ti/omap2_nand.c
342
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
348
omap2_nand_read_2(device_t self, uint16_t *data)
sys/arch/arm/ti/omap2_nand.c
350
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
356
omap2_nand_write_2(device_t self, uint16_t data)
sys/arch/arm/ti/omap2_nand.c
358
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
364
omap2_nand_read_buf_1(device_t self, void *buf, size_t len)
sys/arch/arm/ti/omap2_nand.c
366
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
376
omap2_nand_read_buf_2(device_t self, void *buf, size_t len)
sys/arch/arm/ti/omap2_nand.c
378
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
389
omap2_nand_write_buf_1(device_t self, const void *buf, size_t len)
sys/arch/arm/ti/omap2_nand.c
391
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
401
omap2_nand_write_buf_2(device_t self, const void *buf, size_t len)
sys/arch/arm/ti/omap2_nand.c
403
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
422
omap2_nand_ecc_init(device_t self)
sys/arch/arm/ti/omap2_nand.c
424
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
444
omap2_nand_ecc_compute(device_t self, const uint8_t *data, uint8_t *ecc)
sys/arch/arm/ti/omap2_nand.c
446
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
465
omap2_nand_ecc_prepare(device_t self, int mode)
sys/arch/arm/ti/omap2_nand.c
467
struct omap2_nand_softc *sc = device_private(self);
sys/arch/arm/ti/omap2_nand.c
491
aprint_error_dev(self, "invalid i/o mode for ecc prepare\n");
sys/arch/arm/ti/omap2_nand.c
499
omap2_nand_ecc_correct(device_t self, uint8_t *data, const uint8_t *oldecc,
sys/arch/arm/ti/omap2_nand.c
88
static void omap2_nand_command(device_t self, uint8_t command);
sys/arch/arm/ti/omap2_nand.c
89
static void omap2_nand_address(device_t self, uint8_t address);
sys/arch/arm/ti/omap2_nand.c
90
static void omap2_nand_busy(device_t self);
sys/arch/arm/ti/omap2_nand.c
91
static void omap2_nand_read_1(device_t self, uint8_t *data);
sys/arch/arm/ti/omap2_nand.c
92
static void omap2_nand_write_1(device_t self, uint8_t data);
sys/arch/arm/ti/omap2_nand.c
93
static void omap2_nand_read_2(device_t self, uint16_t *data);
sys/arch/arm/ti/omap2_nand.c
94
static void omap2_nand_write_2(device_t self, uint16_t data);
sys/arch/arm/ti/omap2_nand.c
95
bool omap2_nand_isbusy(device_t self);
sys/arch/arm/ti/omap2_nand.c
96
static void omap2_nand_read_buf_1(device_t self, void *buf, size_t len);
sys/arch/arm/ti/omap2_nand.c
97
static void omap2_nand_read_buf_2(device_t self, void *buf, size_t len);
sys/arch/arm/ti/omap2_nand.c
98
static void omap2_nand_write_buf_1(device_t self, const void *buf, size_t len);
sys/arch/arm/ti/omap2_nand.c
99
static void omap2_nand_write_buf_2(device_t self, const void *buf, size_t len);
sys/arch/arm/ti/omap3_cm.c
190
omap3_cm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/omap3_cm.c
192
struct ti_prcm_softc * const sc = device_private(self);
sys/arch/arm/ti/omap3_cm.c
196
sc->sc_dev = self;
sys/arch/arm/ti/omap3_cm.c
213
fdt_add_bus(self, clocks, faa);
sys/arch/arm/ti/omap3_dss.c
183
omapfb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/omap3_dss.c
185
struct omapfb_softc *sc = device_private(self);
sys/arch/arm/ti/omap3_dss.c
208
sc->sc_dev = self;
sys/arch/arm/ti/omap3_dss.c
247
aprint_error_dev(self, "bogus display size, not attaching\n");
sys/arch/arm/ti/omap3_dss.c
251
printf("%s: firmware set up %d x %d\n", device_xname(self),
sys/arch/arm/ti/omap3_dss.c
257
dict = device_properties(self);
sys/arch/arm/ti/omap3_platform.c
249
omap3_platform_device_register(device_t self, void *aux)
sys/arch/arm/ti/omap3_prm.c
63
omap3_prm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/omap3_prm.c
72
fdt_add_bus(self, phandle, faa);
sys/arch/arm/ti/omap3_prm.c
76
fdt_add_bus(self, clocks, faa);
sys/arch/arm/ti/omap4_prcm.c
290
omap4_prcm_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/omap4_prcm.c
292
struct omap4_prcm_softc * const sc = device_private(self);
sys/arch/arm/ti/omap4_prcm.c
303
sc->sc_prcm.sc_dev = self;
sys/arch/arm/ti/omap4_prcm.c
345
aprint_debug_dev(self, "clkctrl: %s\n", fdtbus_get_string(cm_child, "name"));
sys/arch/arm/ti/omap4_prcm.c
346
fdtbus_register_clock_controller(self, cm_child,
sys/arch/arm/ti/omap4_prcm.c
353
fdt_add_bus(self, clocks, faa);
sys/arch/arm/ti/ti_com.c
119
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/ti/ti_com.c
124
FDT_INTR_MPSAFE, comintr, sc, device_xname(self));
sys/arch/arm/ti/ti_com.c
126
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/ti/ti_com.c
129
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/ti/ti_com.c
75
ti_com_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_com.c
77
struct ti_com_softc * const ssc = device_private(self);
sys/arch/arm/ti/ti_com.c
93
sc->sc_dev = self;
sys/arch/arm/ti/ti_comp_clock.c
100
ti_comp_clock_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_comp_clock.c
102
struct ti_comp_clock_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_comp_clock.c
106
sc->sc_dev = self;
sys/arch/arm/ti/ti_comp_clock.c
109
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/ti/ti_comp_clock.c
120
fdtbus_register_clock_controller(self, phandle, &ti_comp_clock_fdt_funcs);
sys/arch/arm/ti/ti_div_clock.c
100
struct ti_div_clock_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_div_clock.c
112
sc->sc_dev = self;
sys/arch/arm/ti/ti_div_clock.c
120
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/ti/ti_div_clock.c
131
fdtbus_register_clock_controller(self, phandle, &ti_div_clock_fdt_funcs);
sys/arch/arm/ti/ti_div_clock.c
98
ti_div_clock_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_dpll_clock.c
175
ti_dpll_clock_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_dpll_clock.c
177
struct ti_dpll_clock_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_dpll_clock.c
208
sc->sc_dev = self;
sys/arch/arm/ti/ti_dpll_clock.c
211
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/ti/ti_dpll_clock.c
222
fdtbus_register_clock_controller(self, phandle, &ti_dpll_clock_fdt_funcs);
sys/arch/arm/ti/ti_edma.c
113
edma_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_edma.c
115
struct edma_softc *sc = device_private(self);
sys/arch/arm/ti/ti_edma.c
133
sc->sc_dev = self;
sys/arch/arm/ti/ti_edma.c
155
aprint_error_dev(self, "couldn't enable module\n");
sys/arch/arm/ti/ti_edma.c
162
IPL_VM, FDT_INTR_MPSAFE, edma_intr, sc, device_xname(self));
sys/arch/arm/ti/ti_edma.c
164
aprint_error_dev(self, "failed to establish interrupt\n");
sys/arch/arm/ti/ti_edma.c
167
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/ti/ti_ehci.c
104
sc->sc_dev = self;
sys/arch/arm/ti/ti_ehci.c
136
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/ti/ti_ehci.c
141
ehci_intr, sc, device_xname(self));
sys/arch/arm/ti/ti_ehci.c
143
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/ti/ti_ehci.c
147
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/ti/ti_ehci.c
151
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/arch/arm/ti/ti_ehci.c
155
pmf_device_register1(self, NULL, NULL, ehci_shutdown);
sys/arch/arm/ti/ti_ehci.c
157
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/arm/ti/ti_ehci.c
71
ti_ehci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_ehci.c
73
struct ehci_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_fb.c
101
device_t self = sc->sc_dev;
sys/arch/arm/ti/ti_fb.c
104
.da_dev = self,
sys/arch/arm/ti/ti_fb.c
115
aprint_error_dev(self, "failed to attach drmfb: %d\n", error);
sys/arch/arm/ti/ti_fb.c
119
pmf_device_register1(self, NULL, NULL, ti_fb_shutdown);
sys/arch/arm/ti/ti_fb.c
123
ti_fb_shutdown(device_t self, int flags)
sys/arch/arm/ti/ti_fb.c
125
struct ti_fb_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_fb.c
80
ti_fb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_fb.c
82
struct ti_fb_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_fb.c
85
sc->sc_dev = self;
sys/arch/arm/ti/ti_gate_clock.c
101
ti_gate_clock_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_gate_clock.c
103
struct ti_gate_clock_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_gate_clock.c
116
sc->sc_dev = self;
sys/arch/arm/ti/ti_gate_clock.c
129
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/ti/ti_gate_clock.c
140
fdtbus_register_clock_controller(self, phandle, &ti_gate_clock_fdt_funcs);
sys/arch/arm/ti/ti_gpio.c
603
ti_gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_gpio.c
605
struct ti_gpio_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_gpio.c
625
sc->sc_dev = self;
sys/arch/arm/ti/ti_gpio.c
643
fdtbus_register_gpio_controller(self, phandle, &ti_gpio_funcs);
sys/arch/arm/ti/ti_gpio.c
648
FDT_INTR_MPSAFE, ti_gpio_intr, sc, device_xname(self));
sys/arch/arm/ti/ti_gpio.c
650
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/arm/ti/ti_gpio.c
654
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/ti/ti_gpio.c
655
fdtbus_register_interrupt_controller(self, phandle, &ti_gpio_intrfuncs);
sys/arch/arm/ti/ti_gpmc.c
63
ti_gpmc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_gpmc.c
76
fdt_add_bus(self, phandle, faa);
sys/arch/arm/ti/ti_iic.c
232
ti_iic_attach(device_t parent, device_t self, void *opaque)
sys/arch/arm/ti/ti_iic.c
234
struct ti_iic_softc *sc = device_private(self);
sys/arch/arm/ti/ti_iic.c
257
sc->sc_dev = self;
sys/arch/arm/ti/ti_iic.c
275
ti_iic_intr, sc, device_xname(self));
sys/arch/arm/ti/ti_iic.c
299
iicbus_attach(self, &sc->sc_ic);
sys/arch/arm/ti/ti_lcdc.c
378
tilcdc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_lcdc.c
380
struct tilcdc_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_lcdc.c
388
if (device_getprop_bool(self, "disabled")) {
sys/arch/arm/ti/ti_lcdc.c
394
device_setprop_bool(self, "is_console", true);
sys/arch/arm/ti/ti_lcdc.c
402
sc->sc_dev = self;
sys/arch/arm/ti/ti_lcdc.c
421
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_ENCODER);
sys/arch/arm/ti/ti_lcdc.c
427
aprint_error_dev(self, "unable to create workqueue\n");
sys/arch/arm/ti/ti_lcdc.c
434
aprint_error_dev(self, "couldn't allocate DRM device\n");
sys/arch/arm/ti/ti_lcdc.c
453
aprint_error_dev(self, "couldn't register DRM device: %d\n",
sys/arch/arm/ti/ti_lcdc.c
459
aprint_normal_dev(self, "initialized %s %d.%d.%d %s on minor %d\n",
sys/arch/arm/ti/ti_lcdc.c
692
tilcdc_task_schedule(device_t self, struct tilcdc_drm_task *task)
sys/arch/arm/ti/ti_lcdc.c
694
struct tilcdc_softc *sc = device_private(self);
sys/arch/arm/ti/ti_motg.c
100
ti_motg_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_motg.c
102
struct ti_motg_softc *sc = device_private(self);
sys/arch/arm/ti/ti_motg.c
123
sc->sc_motg.sc_dev = self;
sys/arch/arm/ti/ti_motg.c
130
ti_motg_intr, sc, device_xname(self));
sys/arch/arm/ti/ti_motg.c
166
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/ti/ti_motg.c
171
aprint_error_dev(self, "couldn't map mc registers\n");
sys/arch/arm/ti/ti_mux_clock.c
102
ti_mux_clock_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_mux_clock.c
104
struct ti_mux_clock_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_mux_clock.c
117
sc->sc_dev = self;
sys/arch/arm/ti/ti_mux_clock.c
136
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/ti/ti_mux_clock.c
147
fdtbus_register_clock_controller(self, phandle, &ti_mux_clock_fdt_funcs);
sys/arch/arm/ti/ti_omapintc.c
232
omap2icu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_omapintc.c
234
struct omap2icu_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_omapintc.c
246
sc->sc_dev = self;
sys/arch/arm/ti/ti_omapintc.c
262
sc->sc_dev = self;
sys/arch/arm/ti/ti_omapintc.c
268
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/ti/ti_omapintc.c
271
aprint_error_dev(self, "couldn't register with fdtbus: %d\n",
sys/arch/arm/ti/ti_omapmusb.c
167
omapmusb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_omapmusb.c
169
struct motg_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_omapmusb.c
198
sc->sc_dev = self;
sys/arch/arm/ti/ti_omapmusb.c
217
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/arm/ti/ti_omapmusb.c
222
omapmusb_intr, sc, device_xname(self));
sys/arch/arm/ti/ti_omapmusb.c
224
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/arm/ti/ti_omapmusb.c
228
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/ti/ti_omaptimer.c
182
omaptimer_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_omaptimer.c
184
struct omaptimer_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_omaptimer.c
198
sc->sc_dev = self;
sys/arch/arm/ti/ti_omaptimer.c
204
device_printf(self, "unable to map bus space");
sys/arch/arm/ti/ti_omaptimer.c
219
if (device_unit(self) == 1) {
sys/arch/arm/ti/ti_omaptimer.c
226
tc->tc_name = device_xname(self);
sys/arch/arm/ti/ti_omaptimer.c
231
} else if (device_unit(self) == 2) {
sys/arch/arm/ti/ti_omapwugen.c
103
omapwugen_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_omapwugen.c
105
struct omapwugen_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_omapwugen.c
110
sc->sc_dev = self;
sys/arch/arm/ti/ti_omapwugen.c
116
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/arm/ti/ti_omapwugen.c
119
aprint_error_dev(self, "couldn't register with fdtbus: %d\n",
sys/arch/arm/ti/ti_otg.c
126
fdt_add_bus(self, phandle, faa);
sys/arch/arm/ti/ti_otg.c
72
tiotg_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_otg.c
74
struct tiotg_softc *sc = device_private(self);
sys/arch/arm/ti/ti_otg.c
88
sc->sc_dev = self;
sys/arch/arm/ti/ti_rng.c
116
rnd_attach_source(&sc->sc_rndsource, device_xname(self), RND_TYPE_RNG,
sys/arch/arm/ti/ti_rng.c
78
ti_rng_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_rng.c
80
struct ti_rng_softc *sc = device_private(self);
sys/arch/arm/ti/ti_rng.c
96
sc->sc_dev = self;
sys/arch/arm/ti/ti_sdhc.c
164
ti_sdhc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_sdhc.c
166
struct ti_sdhc_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_sdhc.c
189
sc->sc.sc_dev = self;
sys/arch/arm/ti/ti_sysc.c
63
ti_sysc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_sysc.c
71
fdt_add_bus(self, phandle, faa);
sys/arch/arm/ti/ti_tptc.c
63
ti_tptc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_tptc.c
72
aprint_error_dev(self, "couldn't enable module\n");
sys/arch/arm/ti/ti_usb.c
250
ti_usb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_usb.c
252
struct ti_usb_softc *sc = device_private(self);
sys/arch/arm/ti/ti_usb.c
271
sc->sc_dev = self;
sys/arch/arm/ti/ti_usb.c
310
fdt_add_bus(self, phandle, faa);
sys/arch/arm/ti/ti_usbtll.c
171
ti_usbtll_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_usbtll.c
173
struct ti_usbtll_softc *sc = device_private(self);
sys/arch/arm/ti/ti_usbtll.c
189
sc->sc_dev = self;
sys/arch/arm/ti/ti_wdt.c
209
ti_wdt_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/ti/ti_wdt.c
211
struct ti_wdt_softc * const sc = device_private(self);
sys/arch/arm/ti/ti_wdt.c
229
sc->sc_dev = self;
sys/arch/arm/ti/ti_wdt.c
242
aprint_error_dev(self, "software reset timeout\n");
sys/arch/arm/ti/ti_wdt.c
250
sc->sc_wdog.smw_name = device_xname(self);
sys/arch/arm/vexpress/vexpress_platform.c
197
vexpress_platform_device_register(device_t self, void *aux)
sys/arch/arm/vexpress/vexpress_sysreg.c
110
vexpress_sysreg_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/vexpress/vexpress_sysreg.c
112
struct vexpress_sysreg_softc * const sc = device_private(self);
sys/arch/arm/vexpress/vexpress_sysreg.c
123
sc->sc_dev = self;
sys/arch/arm/vexpress/vexpress_sysreg.c
133
fdtbus_register_power_controller(self, phandle,
sys/arch/arm/xilinx/zynq7000_clkc.c
374
zynq7000_clkc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xilinx/zynq7000_clkc.c
376
struct zynq7000_clkc_softc * const sc = device_private(self);
sys/arch/arm/xilinx/zynq7000_clkc.c
390
sc->sc_dev = self;
sys/arch/arm/xilinx/zynq7000_clkc.c
404
sc->sc_clkdom.name = device_xname(self);
sys/arch/arm/xilinx/zynq7000_clkc.c
422
aprint_debug_dev(self, "clkid %u [%s]: %u Hz\n", clkid,
sys/arch/arm/xilinx/zynq7000_clkc.c
427
fdtbus_register_clock_controller(self, phandle, &zynq7000_clkc_fdt_funcs);
sys/arch/arm/xilinx/zynq7000_uart.c
60
zynquart_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xilinx/zynq7000_uart.c
79
zynquartintr, device_private(self)) == NULL) {
sys/arch/arm/xilinx/zynq7000_uart.c
84
zynquart_attach_common(parent, self, faa->faa_bst, addr, size, 0);
sys/arch/arm/xilinx/zynq7000_uart.c
85
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/xilinx/zynq7000_usb.c
102
zynqusb_attach_common(parent, self, faa->faa_bst, faa->faa_dmat,
sys/arch/arm/xilinx/zynq7000_usb.c
104
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/xilinx/zynq7000_usb.c
75
zynqusb_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xilinx/zynq7000_usb.c
80
struct zynqehci_softc *sc = device_private(self);
sys/arch/arm/xilinx/zynq_cemac.c
110
device_private(self)) == NULL) {
sys/arch/arm/xilinx/zynq_cemac.c
116
sc->sc_dev = self;
sys/arch/arm/xilinx/zynq_cemac.c
123
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/arm/xilinx/zynq_cemac.c
82
cemac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xilinx/zynq_cemac.c
85
struct cemac_softc *sc = device_private(self);
sys/arch/arm/xilinx/zynq_gpio.c
273
zynq_gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xilinx/zynq_gpio.c
275
struct zynq_gpio_softc * const sc = device_private(self);
sys/arch/arm/xilinx/zynq_gpio.c
286
sc->sc_dev = self;
sys/arch/arm/xilinx/zynq_gpio.c
297
fdtbus_register_gpio_controller(self, phandle, &zynq_gpio_funcs);
sys/arch/arm/xilinx/zynq_uart.c
2107
zynquart_cleanup(device_t self, int how)
sys/arch/arm/xilinx/zynq_uart.c
2114
struct zynquart_softc *sc = device_private(self);
sys/arch/arm/xilinx/zynq_uart.c
2125
zynquart_suspend(device_t self PMF_FN_ARGS)
sys/arch/arm/xilinx/zynq_uart.c
2127
struct zynquart_softc *sc = device_private(self);
sys/arch/arm/xilinx/zynq_uart.c
2138
zynquart_resume(device_t self PMF_FN_ARGS)
sys/arch/arm/xilinx/zynq_uart.c
2140
struct zynquart_softc *sc = device_private(self);
sys/arch/arm/xilinx/zynq_uart.c
368
zynquart_attach_common(device_t parent, device_t self,
sys/arch/arm/xilinx/zynq_uart.c
371
zynquart_softc_t *sc = device_private(self);
sys/arch/arm/xilinx/zynq_uart.c
379
sc->sc_dev = self;
sys/arch/arm/xilinx/zynq_uart.c
515
zynquart_detach(device_t self, int flags)
sys/arch/arm/xilinx/zynq_uart.c
517
struct zynquart_softc *sc = device_private(self);
sys/arch/arm/xilinx/zynq_uart.c
527
mn = device_unit(self);
sys/arch/arm/xilinx/zynq_uart.c
567
zynquart_activate(device_t self, enum devact act)
sys/arch/arm/xilinx/zynq_uart.c
569
struct zynquart_softc *sc = device_private(self);
sys/arch/arm/xilinx/zynq_uartvar.h
36
void zynquart_attach_common(device_t parent, device_t self,
sys/arch/arm/xilinx/zynq_usb.c
104
aprint_normal_dev(self,
sys/arch/arm/xilinx/zynq_usb.c
109
aprint_normal_dev(self, "HCI revision=0x%x\n", hcirev);
sys/arch/arm/xilinx/zynq_usb.c
114
aprint_normal_dev(self, "");
sys/arch/arm/xilinx/zynq_usb.c
180
aprint_error_dev(self, "init failed, error = %d\n", err);
sys/arch/arm/xilinx/zynq_usb.c
185
hsc->sc_child = config_found(self, &hsc->sc_bus, usbctlprint,
sys/arch/arm/xilinx/zynq_usb.c
65
zynqusb_attach_common(device_t parent, device_t self, bus_space_tag_t iot,
sys/arch/arm/xilinx/zynq_usb.c
69
struct zynqehci_softc *sc = device_private(self);
sys/arch/arm/xilinx/zynq_usb.c
75
sc->sc_hsc.sc_dev = self;
sys/arch/arm/xilinx/zynq_usb.c
89
aprint_error_dev(self, "unable to map device\n");
sys/arch/arm/xilinx/zynq_usb.c
97
aprint_error_dev(self, "unable to map subregion\n");
sys/arch/arm/xilinx/zynq_usbvar.h
57
void zynqusb_attach_common(device_t parent, device_t self,
sys/arch/arm/xilinx/zynq_xadc.c
299
zynq_xadc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xilinx/zynq_xadc.c
301
struct zynq_xadc_softc * const sc = device_private(self);
sys/arch/arm/xilinx/zynq_xadc.c
319
sc->sc_dev = self;
sys/arch/arm/xilinx/zynq_xadc.c
333
sc->sc_sme->sme_name = device_xname(self);
sys/arch/arm/xscale/becc_button.c
100
struct beccbut_softc *sc = device_private(self);
sys/arch/arm/xscale/becc_button.c
106
sc->sc_dev = self;
sys/arch/arm/xscale/becc_button.c
98
beccbut_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/becc_pci.c
149
becc_pci_attach_hook(device_t parent, device_t self,
sys/arch/arm/xscale/i80312_i2c.c
73
iic312_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/i80312_i2c.c
75
struct iopiic_softc *sc = device_private(self);
sys/arch/arm/xscale/i80312_i2c.c
82
sc->sc_dev = self;
sys/arch/arm/xscale/i80312_i2c.c
87
aprint_error_dev(self,
sys/arch/arm/xscale/i80312_i2c.c
99
aprint_error_dev(self,
sys/arch/arm/xscale/i80312_pci.c
131
i80312_pci_attach_hook(device_t parent, device_t self,
sys/arch/arm/xscale/i80321_aau.c
153
aau321_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/i80321_aau.c
155
struct aau321_softc *sc321 = device_private(self);
sys/arch/arm/xscale/i80321_aau.c
158
const char *xname = device_xname(self);
sys/arch/arm/xscale/i80321_aau.c
164
sc->sc_dev = self;
sys/arch/arm/xscale/i80321_i2c.c
106
aprint_error_dev(self,
sys/arch/arm/xscale/i80321_i2c.c
74
iic321_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/i80321_i2c.c
76
struct iopiic_softc *sc = device_private(self);
sys/arch/arm/xscale/i80321_i2c.c
84
sc->sc_dev = self;
sys/arch/arm/xscale/i80321_i2c.c
89
aprint_error_dev(self,
sys/arch/arm/xscale/i80321_pci.c
140
i80321_pci_attach_hook(device_t parent, device_t self,
sys/arch/arm/xscale/i80321_wdog.c
118
iopwdog_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/i80321_wdog.c
120
struct iopwdog_softc *sc = device_private(self);
sys/arch/arm/xscale/i80321_wdog.c
121
const char *xname = device_xname(self);
sys/arch/arm/xscale/i80321_wdog.c
123
sc->sc_dev = self;
sys/arch/arm/xscale/ixp425.c
111
config_found(self, &pba, pcibusprint,
sys/arch/arm/xscale/ixp425.c
48
ixp425_attach(device_t self)
sys/arch/arm/xscale/ixp425.c
50
struct ixp425_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425.c
55
sc->sc_dev = self;
sys/arch/arm/xscale/ixp425.c
67
panic("%s: unable to map GPIO registers", device_xname(self));
sys/arch/arm/xscale/ixp425.c
72
device_xname(self));
sys/arch/arm/xscale/ixp425.c
80
panic("%s: unable to map PCI registers", device_xname(self));
sys/arch/arm/xscale/ixp425_com.c
104
sc->sc_dev = self;
sys/arch/arm/xscale/ixp425_com.c
96
ixsipcom_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/ixp425_com.c
98
struct com_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425_if_npe.c
1597
npe_miibus_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/arm/xscale/ixp425_if_npe.c
1599
struct npe_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425_if_npe.c
1621
npe_miibus_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/arm/xscale/ixp425_if_npe.c
1623
struct npe_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425_if_npe.c
260
npe_attach(device_t parent, device_t self, void *arg)
sys/arch/arm/xscale/ixp425_if_npe.c
262
struct npe_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425_if_npe.c
271
sc->sc_dev = self;
sys/arch/arm/xscale/ixp425_ixme.c
110
config_search(self, NULL,
sys/arch/arm/xscale/ixp425_ixme.c
64
ixme_match(device_t parent, cfdata_t self, void *arg)
sys/arch/arm/xscale/ixp425_ixme.c
71
ixme_attach(device_t parent, device_t self, void *arg)
sys/arch/arm/xscale/ixp425_ixme.c
73
struct ixme_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425_ixme.c
82
device_xname(self));
sys/arch/arm/xscale/ixp425_npe.c
247
ixpnpe_attach(device_t parent, device_t self, void *arg)
sys/arch/arm/xscale/ixp425_npe.c
249
struct ixpnpe_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425_npe.c
257
sc->sc_dev = self;
sys/arch/arm/xscale/ixp425_npe.c
268
panic("%s: Invalid NPE!", device_xname(self));
sys/arch/arm/xscale/ixp425_npe.c
293
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/xscale/ixp425_npe.c
300
panic("%s: Unable to establish irq %u", device_xname(self), irq);
sys/arch/arm/xscale/ixp425_npe.c
305
config_search(self, ixa,
sys/arch/arm/xscale/ixp425_pci.c
114
ixp425_pci_attach_hook(device_t parent, device_t self,
sys/arch/arm/xscale/ixp425_sip.c
66
ixpsip_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/ixp425_sip.c
68
struct ixpsip_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425_sip.c
78
device_xname(self));
sys/arch/arm/xscale/ixp425_sip.c
85
config_search(self, NULL,
sys/arch/arm/xscale/ixp425_timer.c
108
ixpclk_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/ixp425_timer.c
110
struct ixpclk_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425_timer.c
122
panic("%s: Cannot map registers", device_xname(self));
sys/arch/arm/xscale/ixp425_timer.c
124
aprint_normal_dev(self, "IXP425 Interval Timer\n");
sys/arch/arm/xscale/ixp425_wdog.c
100
struct ixpdog_softc *sc = device_private(self);
sys/arch/arm/xscale/ixp425_wdog.c
110
aprint_error_dev(self, "Failed to map watchdog registers\n");
sys/arch/arm/xscale/ixp425_wdog.c
123
sc->sc_smw.smw_name = device_xname(self);
sys/arch/arm/xscale/ixp425_wdog.c
130
aprint_error_dev(self, "unable to register watchdog with sysmon\n");
sys/arch/arm/xscale/ixp425_wdog.c
98
ixpdog_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/pxa2x0.c
192
pxaip_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/pxa2x0.c
194
struct pxaip_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0.c
198
sc->sc_dev = self;
sys/arch/arm/xscale/pxa2x0.c
217
printf("%s: CPU clock = %d.%03d MHz\n", device_xname(self),
sys/arch/arm/xscale/pxa2x0.c
222
device_xname(self),
sys/arch/arm/xscale/pxa2x0.c
233
config_search(self, NULL,
sys/arch/arm/xscale/pxa2x0_ac97.c
256
pxaacu_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/pxa2x0_ac97.c
258
struct acu_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_ac97.c
261
sc->sc_dev = self;
sys/arch/arm/xscale/pxa2x0_ac97.c
270
aprint_error_dev(self, "Can't map registers!\n");
sys/arch/arm/xscale/pxa2x0_ac97.c
294
aprint_error_dev(self, "Primary codec not ready\n");
sys/arch/arm/xscale/pxa2x0_ac97.c
312
aprint_error_dev(self, "Failed to attach primary codec\n");
sys/arch/arm/xscale/pxa2x0_com.c
139
pxauart_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/pxa2x0_com.c
141
struct com_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_com.c
148
sc->sc_dev = self;
sys/arch/arm/xscale/pxa2x0_dmac.c
295
pxadmac_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/pxa2x0_dmac.c
297
struct pxadmac_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_dmac.c
302
sc->sc_dev = self;
sys/arch/arm/xscale/pxa2x0_dmac.c
310
aprint_error_dev(self, "Can't map registers!\n");
sys/arch/arm/xscale/pxa2x0_gpio.c
148
pxagpio_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/pxa2x0_gpio.c
150
struct pxagpio_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_gpio.c
158
sc->sc_dev = self;
sys/arch/arm/xscale/pxa2x0_gpio.c
165
aprint_error_dev(self, "Can't map registers!\n");
sys/arch/arm/xscale/pxa2x0_gpio.c
197
aprint_error_dev(self, "failed to hook main GPIO interrupt\n");
sys/arch/arm/xscale/pxa2x0_gpio.c
237
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/arch/arm/xscale/pxa2x0_intr.c
114
pxaintc_attach(device_t parent, device_t self, void *args)
sys/arch/arm/xscale/pxa2x0_mci.c
189
pxamci_attach_sub(device_t self, struct pxaip_attach_args *pxa)
sys/arch/arm/xscale/pxa2x0_mci.c
191
struct pxamci_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_mci.c
194
sc->sc_dev = self;
sys/arch/arm/xscale/pxa2x0_ohci.c
126
pmf_device_register1(self, ohci_suspend, ohci_resume, ohci_shutdown);
sys/arch/arm/xscale/pxa2x0_ohci.c
129
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/arch/arm/xscale/pxa2x0_ohci.c
145
pxaohci_detach(device_t self, int flags)
sys/arch/arm/xscale/pxa2x0_ohci.c
147
struct pxaohci_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_ohci.c
154
error = config_detach_children(self, flags);
sys/arch/arm/xscale/pxa2x0_ohci.c
165
ohci_shutdown(self, 0);
sys/arch/arm/xscale/pxa2x0_ohci.c
167
pmf_device_deregister(self);
sys/arch/arm/xscale/pxa2x0_ohci.c
69
pxaohci_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/pxa2x0_ohci.c
71
struct pxaohci_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_ohci.c
85
sc->sc.sc_dev = self;
sys/arch/arm/xscale/pxa2x0_pcic.c
398
pxapcic_doattach(device_t self)
sys/arch/arm/xscale/pxa2x0_pcic.c
400
struct pxapcic_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_pcic.c
419
config_pending_incr(self);
sys/arch/arm/xscale/pxa2x0_rtc.c
103
sc->sc_todr.todr_dev = self;
sys/arch/arm/xscale/pxa2x0_rtc.c
85
pxartc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/pxa2x0_rtc.c
87
struct pxartc_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_rtc.c
90
sc->sc_dev = self;
sys/arch/arm/xscale/pxa2x0_udc.c
100
pxaudc_detach(device_t self, int flags)
sys/arch/arm/xscale/pxa2x0_udc.c
102
struct pxaudc_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_udc.c
65
pxaudc_attach(device_t parent, device_t self, void *aux)
sys/arch/arm/xscale/pxa2x0_udc.c
67
struct pxaudc_softc *sc = device_private(self);
sys/arch/arm/xscale/pxa2x0_udc.c
70
sc->sc_dev = self;
sys/arch/arm/xscale/pxa2x0_udc.c
80
aprint_error_dev(self, "couldn't map memory space\n");
sys/arch/arm/xscale/pxa2x0_udc.c
92
sc->sc_powerhook = powerhook_establish(device_xname(self),
sys/arch/arm/xscale/pxa2x0_udc.c
95
aprint_error_dev(self, "unable to establish powerhook.\n");
sys/arch/atari/atari/autoconf.c
317
mbattach(device_t parent, device_t self, void *aux)
sys/arch/atari/atari/autoconf.c
323
config_found(self, __UNCONST("clock") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
324
config_found(self, __UNCONST("grfbus") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
325
config_found(self, __UNCONST("kbd") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
326
config_found(self, __UNCONST("fdc") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
327
config_found(self, __UNCONST("ser") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
328
config_found(self, __UNCONST("zs") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
329
config_found(self, __UNCONST("ncrscsi") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
330
config_found(self, __UNCONST("nvr") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
331
config_found(self, __UNCONST("lpt") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
332
config_found(self, __UNCONST("wdc") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
333
config_found(self, __UNCONST("ne") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
334
config_found(self, __UNCONST("isab") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
335
config_found(self, __UNCONST("pcib") , simple_devprint, CFARGS_NONE);
sys/arch/atari/atari/autoconf.c
336
config_found(self, __UNCONST("avmebus") , simple_devprint, CFARGS_NONE);
sys/arch/atari/dev/clock.c
170
clockattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/clock.c
172
struct clock_softc *sc = device_private(self);
sys/arch/atari/dev/clock.c
175
sc->sc_dev = self;
sys/arch/atari/dev/clock.c
177
tch->todr_dev = self;
sys/arch/atari/dev/fd.c
319
fdcattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/fd.c
342
config_found(self, (void *)i, fdcprint, CFARGS_NONE);
sys/arch/atari/dev/fd.c
395
fdattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/fd.c
401
sc = device_private(self);
sys/arch/atari/dev/fd.c
402
sc->sc_dev = self;
sys/arch/atari/dev/grf.c
142
grfbusattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/grf.c
149
if (self == NULL) { /* Console init */
sys/arch/atari/dev/grf.c
154
config_found(self, &grf_auxp, grfbusprint, CFARGS_NONE);
sys/arch/atari/dev/hdfd.c
416
fdcattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/hdfd.c
418
struct fdc_softc *fdc = device_private(self);
sys/arch/atari/dev/hdfd.c
424
fdc->sc_dev = self;
sys/arch/atari/dev/hdfd.c
450
aprint_error_dev(self, "Can't establish interrupt\n");
sys/arch/atari/dev/hdfd.c
467
(void)config_found(self, (void *)&fa, fdprint, CFARGS_NONE);
sys/arch/atari/dev/hdfd.c
525
fdattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/hdfd.c
528
struct fd_softc *fd = device_private(self);
sys/arch/atari/dev/hdfd.c
533
fd->sc_dev = self;
sys/arch/atari/dev/hdfd.c
554
disk_init(&fd->sc_dk, device_xname(self), &fddkdriver);
sys/arch/atari/dev/hdfd.c
884
fdcstatus(device_t self, int n, const char *s)
sys/arch/atari/dev/hdfd.c
886
struct fdc_softc *fdc = device_private(device_parent(self));
sys/arch/atari/dev/hdfd.c
895
printf("%s: %s", device_xname(self), s);
sys/arch/atari/dev/if_ne_mb.c
180
ne_mb_attach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/if_ne_mb.c
182
struct ne_mb_softc *sc = device_private(self);
sys/arch/atari/dev/if_ne_mb.c
190
dsc->sc_dev = self;
sys/arch/atari/dev/if_ne_mb.c
245
aprint_error_dev(self, "where did the card go?!\n");
sys/arch/atari/dev/if_ne_mb.c
249
aprint_normal_dev(self, "%s Ethernet (8-bit)\n", typestr);
sys/arch/atari/dev/if_ne_mb.c
258
aprint_normal_dev(self, "using %d Hz polling\n", hz / ETHERNEC_TICK);
sys/arch/atari/dev/ite.c
202
iteattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/ite.c
210
sc = device_private(self);
sys/arch/atari/dev/ite.c
213
unit = (self != NULL) ? device_unit(self) : cons_ite;
sys/arch/atari/dev/ite.c
216
if (self != NULL) {
sys/arch/atari/dev/ite_cc.c
199
grfccattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/ite_cc.c
217
if (self == NULL) {
sys/arch/atari/dev/ite_cc.c
239
sc = device_private(self);
sys/arch/atari/dev/ite_cc.c
240
sc->g_device = self;
sys/arch/atari/dev/ite_cc.c
241
sc->g_unit = device_unit(self);
sys/arch/atari/dev/ite_cc.c
272
config_found(self, sc /* XXX */, grfccprint, CFARGS_NONE);
sys/arch/atari/dev/ite_et.c
173
grfetattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/ite_et.c
191
if (self == NULL) {
sys/arch/atari/dev/ite_et.c
213
sc = device_private(self);
sys/arch/atari/dev/ite_et.c
214
sc->g_device = self;
sys/arch/atari/dev/ite_et.c
215
sc->g_unit = device_unit(self);
sys/arch/atari/dev/ite_et.c
246
config_found(self, sc /* XXX */, grfetprint, CFARGS_NONE);
sys/arch/atari/dev/kbd.c
213
kbdattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/kbd.c
244
aprint_error_dev(self, "error cannot reset keyboard\n");
sys/arch/atari/dev/kbd.c
258
rnd_attach_source(&sc->sc_rndsource, device_xname(self),
sys/arch/atari/dev/kbd.c
262
if (self != NULL) {
sys/arch/atari/dev/kbd.c
275
sc->sc_wskbddev = config_found(self, &waa, wskbddevprint,
sys/arch/atari/dev/lpt.c
168
lpattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/lpt.c
170
struct lpt_softc *sc = device_private(self);
sys/arch/atari/dev/lpt.c
172
sc->sc_dev = self;
sys/arch/atari/dev/lpt.c
178
aprint_error_dev(self, "Can't establish interrupt\n");
sys/arch/atari/dev/ncr5380.c
198
ncr_attach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/ncr5380.c
203
sc = device_private(self);
sys/arch/atari/dev/ncr5380.c
204
sc->sc_dev = self;
sys/arch/atari/dev/ncr5380.c
206
sc->sc_adapter.adapt_dev = self;
sys/arch/atari/dev/ncr5380.c
254
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/atari/dev/nvram.c
106
sc = device_private(self);
sys/arch/atari/dev/nvram.c
107
sc->sc_dev = self;
sys/arch/atari/dev/nvram.c
88
nvr_attach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/ser.c
297
serattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/ser.c
299
struct ser_softc *sc = device_private(self);
sys/arch/atari/dev/ser.c
301
sc->sc_dev = self;
sys/arch/atari/dev/ser.c
345
aprint_normal_dev(self, "console\n");
sys/arch/atari/dev/wdc_mb.c
144
wdc_mb_attach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/wdc_mb.c
146
struct wdc_mb_softc *sc = device_private(self);
sys/arch/atari/dev/wdc_mb.c
152
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/atari/dev/wdc_mb.c
162
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/atari/dev/wdc_mb.c
168
aprint_error_dev(self,
sys/arch/atari/dev/wdc_mb.c
179
aprint_error_dev(self, "couldn't subregion aux reg\n");
sys/arch/atari/dev/zs.c
288
zsattach(device_t parent, device_t self, void *aux)
sys/arch/atari/dev/zs.c
296
sc = device_private(self);
sys/arch/atari/dev/zs.c
297
sc->sc_dev = self;
sys/arch/atari/dev/zs.c
358
aprint_error_dev(self,
sys/arch/atari/dev/zs.c
361
aprint_error_dev(self,
sys/arch/atari/dev/zs.c
364
aprint_error_dev(self,
sys/arch/atari/dev/zs.c
367
aprint_error_dev(self,
sys/arch/atari/dev/zs.c
370
aprint_error_dev(self,
sys/arch/atari/dev/zs.c
373
aprint_error_dev(self,
sys/arch/atari/dev/zs.c
376
aprint_error_dev(self,
sys/arch/atari/dev/zs.c
379
aprint_error_dev(self,
sys/arch/atari/isa/fdcisa.c
181
fdc_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/atari/isa/fdcisa.c
183
struct fdc_isa_softc *isc = device_private(self);
sys/arch/atari/isa/fdcisa.c
189
fdc->sc_dev = self;
sys/arch/atari/isa/fdcisa.c
196
aprint_error_dev(self, "unable to map I/O space\n");
sys/arch/atari/isa/fdcisa.c
202
aprint_error_dev(self, "unable to subregion I/O space\n");
sys/arch/atari/isa/fdcisa.c
208
aprint_error_dev(self, "unable to map CTL I/O space\n");
sys/arch/atari/isa/isa_machdep.c
112
isabusattach(device_t parent, device_t self, void *aux)
sys/arch/atari/isa/isa_machdep.c
132
if (self == NULL) { /* Early init */
sys/arch/atari/isa/isa_machdep.c
139
sc = device_private(self);
sys/arch/atari/isa/isa_machdep.c
140
sc->sc_dev = self;
sys/arch/atari/isa/isa_machdep.c
144
config_found(self, &iba, atariisabusprint, CFARGS_NONE);
sys/arch/atari/isa/isa_machdep.c
157
isa_attach_hook(device_t parent, device_t self, struct isabus_attach_args *iba)
sys/arch/atari/isa/isa_machdep.c
162
isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/atari/pci/pci_machdep.c
131
struct pci_memreg *self, u_int addr, u_int size, u_int what);
sys/arch/atari/pci/pci_machdep.c
166
pcibusattach(device_t parent, device_t self, void *aux)
sys/arch/atari/pci/pci_machdep.c
184
if (self == NULL) {
sys/arch/atari/pci/pci_machdep.c
202
config_found(self, &pba, ataripcibusprint, CFARGS_NONE);
sys/arch/atari/pci/pci_machdep.c
215
pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/atari/pci/pci_machdep.c
280
overlap_pci_areas(struct pci_memreg *p, struct pci_memreg *self, u_int addr,
sys/arch/atari/pci/pci_machdep.c
290
if ((q != self) && (q->csr & what)) {
sys/arch/atari/pci/pci_machdep.c
296
self->dev, self->reg, q->dev, q->reg);
sys/arch/atari/pci/pci_machdep.c
305
self->dev, self->reg, q->dev, q->reg);
sys/arch/atari/vme/et4000.c
341
et4k_vme_attach(device_t parent, device_t self, void *aux)
sys/arch/atari/vme/et4000.c
343
struct et4k_softc *sc = device_private(self);
sys/arch/atari/vme/et4000.c
348
sc->sc_dev = self;
sys/arch/atari/vme/if_le_vme.c
343
le_vme_attach(device_t parent, device_t self, void *aux)
sys/arch/atari/vme/if_le_vme.c
345
struct le_softc *lesc = device_private(self);
sys/arch/atari/vme/if_le_vme.c
353
sc->sc_dev = self;
sys/arch/atari/vme/if_le_vme.c
354
aprint_normal("\n%s: ", device_xname(self));
sys/arch/atari/vme/if_we_vme.c
302
we_vme_attach(device_t parent, device_t self, void *aux)
sys/arch/atari/vme/if_we_vme.c
304
struct we_vme_softc *wvsc = device_private(self);
sys/arch/atari/vme/if_we_vme.c
314
sc->sc_dev = self;
sys/arch/atari/vme/if_we_vme.c
326
aprint_error_dev(self, "can't map even I/O space\n");
sys/arch/atari/vme/if_we_vme.c
331
aprint_error_dev(self, "can't map odd I/O space\n");
sys/arch/atari/vme/if_we_vme.c
340
aprint_error_dev(self, "can't subregion I/O space\n");
sys/arch/atari/vme/if_we_vme.c
346
aprint_error_dev(self, "can't map shared memory\n");
sys/arch/atari/vme/if_we_vme.c
374
if (we_config(self, wsc, typestr) != 0)
sys/arch/atari/vme/if_we_vme.c
387
aprint_error_dev(self, "can't establish interrupt\n");
sys/arch/atari/vme/leo.c
218
leo_attach(device_t parent, device_t self, void *aux)
sys/arch/atari/vme/leo.c
220
struct leo_softc *sc = device_private(self);
sys/arch/atari/vme/leo.c
228
sc->sc_dev = self;
sys/arch/atari/vme/vme.c
63
vmeattach(device_t parent, device_t self, void *aux)
sys/arch/atari/vme/vme.c
65
struct vme_softc *sc = device_private(self);
sys/arch/atari/vme/vme.c
70
sc->sc_dev = self;
sys/arch/atari/vme/vme.c
75
config_search(self, NULL,
sys/arch/atari/vme/vme_machdep.c
70
vmebusattach(device_t parent, device_t self, void *aux)
sys/arch/atari/vme/vme_machdep.c
91
config_found(self, &vba, vmebusprint, CFARGS_NONE);
sys/arch/bebox/bebox/cpu.c
70
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/bebox/bebox/cpu.c
76
ci = cpu_attach_common(self, id);
sys/arch/bebox/bebox/cpu.c
82
cpu_spinup(self, ci);
sys/arch/bebox/bebox/mainbus.c
113
config_found(self, &ca, mainbus_print,
sys/arch/bebox/bebox/mainbus.c
117
config_found(self, &ca, mainbus_print,
sys/arch/bebox/bebox/mainbus.c
162
config_found(self, &mba.mba_pba, pcibusprint,
sys/arch/bebox/bebox/mainbus.c
91
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/bebox/isa/mcclock_isa.c
208
mcclock_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/bebox/isa/mcclock_isa.c
210
struct mc146818_softc *sc = device_private(self);
sys/arch/bebox/isa/mcclock_isa.c
213
sc->sc_dev = self;
sys/arch/cats/pci/pcib.c
101
pcib_callback(device_t self)
sys/arch/cats/pci/pcib.c
114
isabus_attach(self, &iba);
sys/arch/cats/pci/pcib.c
81
pcibattach(device_t parent, device_t self, void *aux)
sys/arch/cats/pci/pcib.c
93
printf("%s: %s (rev. 0x%02x)\n", device_xname(self), devinfo,
sys/arch/cats/pci/pcib.c
97
config_defer(self, pcib_callback);
sys/arch/cesfic/cesfic/autoconf.c
80
mainbusattach(device_t parent, device_t self, void *aux)
sys/arch/cesfic/cesfic/autoconf.c
86
evcnt_attach(self, "fpuni", &evcnt_fpsp_unimp);
sys/arch/cesfic/cesfic/autoconf.c
87
evcnt_attach(self, "fpund", &evcnt_fpsp_unsupp);
sys/arch/cesfic/cesfic/autoconf.c
91
config_search(self, NULL,
sys/arch/cesfic/dev/if_le.c
106
leattach(device_t parent, device_t self, void *aux)
sys/arch/cesfic/dev/if_le.c
108
struct lance_softc *sc = device_private(self);
sys/arch/cesfic/dev/if_le.c
114
sc->sc_dev = self;
sys/arch/cesfic/dev/zs_pcc.c
73
zsc_pcc_attach(device_t parent, device_t self, void *aux)
sys/arch/cesfic/dev/zs_pcc.c
75
struct zsc_softc *zsc = device_private(self);
sys/arch/cesfic/dev/zs_pcc.c
78
zsc->zsc_dev = self;
sys/arch/cobalt/cobalt/cpu.c
56
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/cobalt/cobalt/cpu.c
61
ci->ci_dev = self;
sys/arch/cobalt/cobalt/cpu.c
62
device_set_private(self, ci);
sys/arch/cobalt/cobalt/cpu.c
65
cpu_identify(self);
sys/arch/cobalt/cobalt/mainbus.c
60
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/cobalt/cobalt/mainbus.c
66
config_search(self, &ma,
sys/arch/cobalt/dev/com_mainbus.c
76
com_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/cobalt/dev/com_mainbus.c
78
struct com_mainbus_softc *msc = device_private(self);
sys/arch/cobalt/dev/com_mainbus.c
83
sc->sc_dev = self;
sys/arch/cobalt/dev/gt.c
103
gt_attach(device_t parent, device_t self, void *aux)
sys/arch/cobalt/dev/gt.c
105
struct gt_softc *sc = device_private(self);
sys/arch/cobalt/dev/gt.c
112
sc->sc_dev = self;
sys/arch/cobalt/dev/gt.c
159
config_found(self, &pba, gt_print, CFARGS_NONE);
sys/arch/cobalt/dev/lcdpanel.c
133
lcdpanel_attach(device_t parent, device_t self, void *aux)
sys/arch/cobalt/dev/lcdpanel.c
135
struct lcdpanel_softc *sc = device_private(self);
sys/arch/cobalt/dev/lcdpanel.c
147
sc->sc_lcd.sc_dev = self;
sys/arch/cobalt/dev/lcdpanel.c
176
pmf_device_register1(self, NULL, NULL, lcdpanel_shutdown);
sys/arch/cobalt/dev/lcdpanel.c
192
lcdpanel_shutdown(device_t self, int howto)
sys/arch/cobalt/dev/lcdpanel.c
194
struct lcdpanel_softc *sc = device_private(self);
sys/arch/cobalt/dev/mcclock.c
73
mcclock_attach(device_t parent, device_t self, void *aux)
sys/arch/cobalt/dev/mcclock.c
75
struct mc146818_softc *sc = device_private(self);
sys/arch/cobalt/dev/mcclock.c
78
sc->sc_dev = self;
sys/arch/cobalt/dev/zs.c
156
zs_attach(device_t parent, device_t self, void *aux)
sys/arch/cobalt/dev/zs.c
158
struct zsc_softc *zsc = device_private(self);
sys/arch/cobalt/dev/zs.c
165
zsc->zsc_dev = self;
sys/arch/cobalt/dev/zs.c
225
if (!config_found(self, (void *)&zsc_args, zs_print,
sys/arch/cobalt/pci/pchb.c
62
pchb_attach(device_t parent, device_t self, void *aux)
sys/arch/cobalt/pci/pci_machdep.c
62
pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/cobalt/pci/pcib.c
62
pcib_attach(device_t parent, device_t self, void *aux)
sys/arch/cobalt/pci/pcib.c
69
aprint_normal_dev(self, "%s, rev %d\n", devinfo,
sys/arch/dreamcast/dev/g1/g1bus.c
62
g1busattach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/g1/g1bus.c
64
struct g1bus_softc *sc = device_private(self);
sys/arch/dreamcast/dev/g1/g1bus.c
67
sc->sc_dev = self;
sys/arch/dreamcast/dev/g1/g1bus.c
74
config_search(self, &ga,
sys/arch/dreamcast/dev/g1/gdrom.c
342
gdromattach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/g1/gdrom.c
348
sc = device_private(self);
sys/arch/dreamcast/dev/g1/gdrom.c
351
sc->sc_dev = self;
sys/arch/dreamcast/dev/g1/gdrom.c
363
disk_init(&sc->sc_dk, device_xname(self), &gdromdkdriver);
sys/arch/dreamcast/dev/g1/wdc_g1.c
109
wdc_g1_attach(struct device *parent, struct device *self, void *aux)
sys/arch/dreamcast/dev/g1/wdc_g1.c
111
struct wdc_g1_softc *sc = device_private(self);
sys/arch/dreamcast/dev/g1/wdc_g1.c
116
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/dreamcast/dev/g2/aica.c
172
aica_attach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/g2/aica.c
178
sc = device_private(self);
sys/arch/dreamcast/dev/g2/aica.c
180
sc->sc_dev = self;
sys/arch/dreamcast/dev/g2/aica.c
215
aprint_normal_dev(self, "interrupting at %s\n",
sys/arch/dreamcast/dev/g2/aica.c
220
audio_attach_mi(&aica_hw_if, sc, self);
sys/arch/dreamcast/dev/g2/g2bus.c
62
g2busattach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/g2/g2bus.c
64
struct g2bus_softc *sc = device_private(self);
sys/arch/dreamcast/dev/g2/g2bus.c
67
sc->sc_dev = self;
sys/arch/dreamcast/dev/g2/g2bus.c
76
config_search(self, &ga,
sys/arch/dreamcast/dev/g2/g2rtc.c
101
tch->todr_dev = self;
sys/arch/dreamcast/dev/g2/g2rtc.c
85
g2rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/g2/g2rtc.c
87
struct g2rtc_softc *sc = device_private(self);
sys/arch/dreamcast/dev/g2/g2rtc.c
91
sc->sc_dev = self;
sys/arch/dreamcast/dev/g2/gapspci.c
128
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/dreamcast/dev/g2/gapspci.c
80
gaps_attach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/g2/gapspci.c
83
struct gaps_softc *sc = device_private(self);
sys/arch/dreamcast/dev/g2/gapspci.c
89
sc->sc_dev = self;
sys/arch/dreamcast/dev/g2/if_mbe_g2.c
187
mbe_g2_attach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/g2/if_mbe_g2.c
189
struct mbe_g2_softc *isc = device_private(self);
sys/arch/dreamcast/dev/g2/if_mbe_g2.c
196
sc->sc_dev = self;
sys/arch/dreamcast/dev/gdrom.c
410
gdromattach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/gdrom.c
415
sc = device_private(self);
sys/arch/dreamcast/dev/gdrom.c
416
sc->sc_dev = self;
sys/arch/dreamcast/dev/gdrom.c
423
disk_init(&sc->sc_dk, device_xname(self), &gdromdkdriver);
sys/arch/dreamcast/dev/maple/maple.c
190
mapleattach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/maple/maple.c
199
sc = device_private(self);
sys/arch/dreamcast/dev/maple/maple.c
200
sc->sc_dev = self;
sys/arch/dreamcast/dev/maple/maple.c
206
device_xname(self));
sys/arch/dreamcast/dev/maple/maple.c
248
cv_init(&sc->sc_dma_cv, device_xname(self));
sys/arch/dreamcast/dev/maple/maple.c
250
cv_init(&sc->sc_event_cv, device_xname(self));
sys/arch/dreamcast/dev/maple/maple.c
260
config_pending_incr(self); /* create thread before mounting root */
sys/arch/dreamcast/dev/maple/maple.c
263
&sc->event_thread, "%s", device_xname(self)) == 0)
sys/arch/dreamcast/dev/maple/maple.c
266
panic("%s: unable to create event thread", device_xname(self));
sys/arch/dreamcast/dev/maple/mkbd.c
109
mkbdattach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/maple/mkbd.c
111
struct mkbd_softc *sc = device_private(self);
sys/arch/dreamcast/dev/maple/mkbd.c
118
sc->sc_dev = self;
sys/arch/dreamcast/dev/maple/mkbd.c
160
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/dreamcast/dev/maple/mkbd.c
169
mkbddetach(device_t self, int flags)
sys/arch/dreamcast/dev/maple/mkbd.c
171
struct mkbd_softc *sc = device_private(self);
sys/arch/dreamcast/dev/maple/mlcd.c
219
mlcdattach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/maple/mlcd.c
221
struct mlcd_softc *sc = device_private(self);
sys/arch/dreamcast/dev/maple/mlcd.c
229
sc->sc_dev = self;
sys/arch/dreamcast/dev/maple/mlcd.c
237
device_xname(self),
sys/arch/dreamcast/dev/maple/mlcd.c
260
device_xname(self));
sys/arch/dreamcast/dev/maple/mlcd.c
264
device_xname(self));
sys/arch/dreamcast/dev/maple/mlcd.c
270
device_xname(self));
sys/arch/dreamcast/dev/maple/mlcd.c
280
"%s.%d", device_xname(self), i);
sys/arch/dreamcast/dev/maple/mlcd.c
297
mlcddetach(device_t self, int flags)
sys/arch/dreamcast/dev/maple/mlcd.c
299
struct mlcd_softc *sc = device_private(self);
sys/arch/dreamcast/dev/maple/mlcd.c
321
minor_l = MLCD_MINOR(device_unit(self), 0);
sys/arch/dreamcast/dev/maple/mlcd.c
322
minor_h = MLCD_MINOR(device_unit(self), sc->sc_npt - 1);
sys/arch/dreamcast/dev/maple/mmemcard.c
233
mmemattach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/maple/mmemcard.c
235
struct mmem_softc *sc = device_private(self);
sys/arch/dreamcast/dev/maple/mmemcard.c
243
sc->sc_dev = self;
sys/arch/dreamcast/dev/maple/mmemcard.c
251
device_xname(self),
sys/arch/dreamcast/dev/maple/mmemcard.c
274
device_xname(self));
sys/arch/dreamcast/dev/maple/mmemcard.c
278
device_xname(self));
sys/arch/dreamcast/dev/maple/mmemcard.c
286
device_xname(self));
sys/arch/dreamcast/dev/maple/mmemcard.c
290
device_xname(self));
sys/arch/dreamcast/dev/maple/mmemcard.c
296
device_xname(self));
sys/arch/dreamcast/dev/maple/mmemcard.c
306
"%s.%d", device_xname(self), i);
sys/arch/dreamcast/dev/maple/mmemcard.c
322
mmemdetach(device_t self, int flags)
sys/arch/dreamcast/dev/maple/mmemcard.c
324
struct mmem_softc *sc = device_private(self);
sys/arch/dreamcast/dev/maple/mmemcard.c
352
minor_l = MMEM_DISKMINOR(device_unit(self), 0, 0);
sys/arch/dreamcast/dev/maple/mmemcard.c
353
minor_h = MMEM_DISKMINOR(device_unit(self), sc->sc_npt - 1,
sys/arch/dreamcast/dev/maple/mms.c
122
mms_attach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/maple/mms.c
124
struct mms_softc *sc = device_private(self);
sys/arch/dreamcast/dev/maple/mms.c
131
sc->sc_dev = self;
sys/arch/dreamcast/dev/maple/mms.c
138
printf("%s: buttons:", device_xname(self));
sys/arch/dreamcast/dev/maple/mms.c
157
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/dreamcast/dev/maple/mms.c
167
mms_detach(device_t self, int flags)
sys/arch/dreamcast/dev/maple/mms.c
169
struct mms_softc *sc = device_private(self);
sys/arch/dreamcast/dev/pvr.c
265
pvr_attach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dev/pvr.c
267
struct pvr_softc *sc = device_private(self);
sys/arch/dreamcast/dev/pvr.c
273
sc->sc_dev = self;
sys/arch/dreamcast/dev/pvr.c
301
(void) config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/dreamcast/dreamcast/mainbus.c
58
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/dreamcast/dreamcast/mainbus.c
65
config_found(self, ma, mainbus_print, CFARGS_NONE);
sys/arch/emips/ebus/ace_ebus.c
1580
device_t self = ace->sc_dev;
sys/arch/emips/ebus/ace_ebus.c
1627
device_xname(self), pbuf,
sys/arch/emips/ebus/ace_ebus.c
1646
aceactivate(device_t self, enum devact act)
sys/arch/emips/ebus/ace_ebus.c
1663
acedetach(device_t self, int flags)
sys/arch/emips/ebus/ace_ebus.c
1665
struct ace_softc *sc = device_private(self);
sys/arch/emips/ebus/ace_ebus.c
1674
mn = ACEMINOR(device_unit(self), i);
sys/arch/emips/ebus/ace_ebus.c
221
ace_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/ace_ebus.c
223
struct ace_softc *ace = device_private(self);
sys/arch/emips/ebus/ace_ebus.c
227
ace->sc_dev = self;
sys/arch/emips/ebus/ace_ebus.c
241
config_pending_incr(self);
sys/arch/emips/ebus/clock_ebus.c
299
eclock_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/clock_ebus.c
301
struct eclock_softc *sc = device_private(self);
sys/arch/emips/ebus/clock_ebus.c
304
sc->sc_dev = self;
sys/arch/emips/ebus/clock_ebus.c
330
device_xname(self), "intr");
sys/arch/emips/ebus/clock_ebus.c
333
clockdev = self;
sys/arch/emips/ebus/clock_ebus.c
335
sc->sc_todr.todr_dev = self;
sys/arch/emips/ebus/dz_ebus.c
647
dz_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/dz_ebus.c
652
sc = device_private(self);
sys/arch/emips/ebus/dz_ebus.c
655
sc->sc_dev = self;
sys/arch/emips/ebus/dz_ebus.c
675
device_xname(self), "rintr");
sys/arch/emips/ebus/dz_ebus.c
677
device_xname(self), "tintr");
sys/arch/emips/ebus/ebus.c
47
ebusattach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/ebus.c
85
if (config_found(self, ia, ebusprint,
sys/arch/emips/ebus/ebus_emips.c
116
ebusattach(parent, self, &ida);
sys/arch/emips/ebus/ebus_emips.c
95
ebus_emips_attach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/flash_ebus.c
1428
device_t self = sc->sc_dev;
sys/arch/emips/ebus/flash_ebus.c
1445
device_xname(self), pbuf, 1, 1, sc->sc_capacity,
sys/arch/emips/ebus/flash_ebus.c
1461
eflashactivate(device_t self, enum devact act)
sys/arch/emips/ebus/flash_ebus.c
1481
eflashdetach(device_t self, int flags)
sys/arch/emips/ebus/flash_ebus.c
1483
struct eflash_softc *sc = device_private(self);
sys/arch/emips/ebus/flash_ebus.c
1494
mn = EFLASHMINOR(device_unit(self), i);
sys/arch/emips/ebus/flash_ebus.c
257
eflash_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/flash_ebus.c
260
struct eflash_softc *sc = device_private(self);
sys/arch/emips/ebus/flash_ebus.c
271
sc->sc_dev = self;
sys/arch/emips/ebus/flash_ebus.c
294
config_pending_incr(self);
sys/arch/emips/ebus/gpio_ebus.c
127
(void)config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/arch/emips/ebus/gpio_ebus.c
84
epio_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/gpio_ebus.c
86
struct epio_softc *sc = device_private(self);
sys/arch/emips/ebus/gpio_ebus.c
92
sc->sc_dev = self;
sys/arch/emips/ebus/icap_ebus.c
124
icap_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/icap_ebus.c
126
struct icap_softc *sc = device_private(self);
sys/arch/emips/ebus/icap_ebus.c
131
sc->sc_dev = self;
sys/arch/emips/ebus/if_le_ebus.c
155
enic_attach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/if_le_ebus.c
157
struct enic_softc *sc = device_private(self);
sys/arch/emips/ebus/if_le_ebus.c
176
sc->sc_dev = self;
sys/arch/emips/ebus/stub_ebus.c
80
stub_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/emips/ebus/stub_ebus.c
83
struct stub_softc *sc = device_private(self);
sys/arch/emips/emips/cpu.c
63
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/emips/emips/cpu.c
67
cpu_identify(self);
sys/arch/emips/emips/mainbus.c
64
mbattach(device_t parent, device_t self, void *aux)
sys/arch/emips/emips/mainbus.c
74
config_found(self, &ma, mbprint, CFARGS_NONE);
sys/arch/emips/emips/mainbus.c
78
config_found(self, &ma, mbprint, CFARGS_NONE);
sys/arch/epoc32/dev/epockbd_clpssoc.c
55
epockbd_clpssoc_attach(device_t parent, device_t self, void *aux)
sys/arch/epoc32/dev/epockbd_clpssoc.c
57
struct epockbd_softc *sc = device_private(self);
sys/arch/epoc32/dev/epockbd_clpssoc.c
62
sc->sc_dev = self;
sys/arch/epoc32/dev/epockbd_clpssoc.c
67
aprint_error_dev(self, "can't map scan registers\n");
sys/arch/epoc32/dev/epockbd_clpssoc.c
72
aprint_error_dev(self, "can't map data registers\n");
sys/arch/epoc32/dev/epockbd_windermere.c
60
epockbd_windermere_attach(device_t parent, device_t self, void *aux)
sys/arch/epoc32/dev/epockbd_windermere.c
62
struct epockbd_softc *sc = device_private(self);
sys/arch/epoc32/dev/epockbd_windermere.c
68
sc->sc_dev = self;
sys/arch/epoc32/dev/epockbd_windermere.c
73
aprint_error_dev(self, "can't map scan registers\n");
sys/arch/epoc32/dev/epockbd_windermere.c
79
aprint_error_dev(self, "can't map data registers\n");
sys/arch/epoc32/dev/etna.c
179
etna_attach(device_t parent, device_t self, void *aux)
sys/arch/epoc32/dev/etna.c
181
struct etna_softc *sc = device_private(self);
sys/arch/epoc32/dev/etna.c
188
sc->sc_dev = self;
sys/arch/epoc32/dev/etna.c
190
aprint_error_dev(self, "can't map register\n");
sys/arch/epoc32/dev/etna.c
195
aprint_error_dev(self, "can't establish interrupt\n");
sys/arch/epoc32/dev/etna.c
204
sc->sc_pcmcia = config_found(self, &paa, NULL, CFARGS_NONE);
sys/arch/epoc32/dev/etna.c
206
config_interrupts(self, etna_doattach);
sys/arch/epoc32/dev/etna.c
224
etna_doattach(device_t self)
sys/arch/epoc32/dev/etna.c
226
struct etna_softc *sc = device_private(self);
sys/arch/epoc32/dev/etna.c
229
config_pending_incr(self);
sys/arch/epoc32/dev/etna.c
236
&sc->sc_event_thread, device_xname(self)))
sys/arch/epoc32/dev/etna.c
237
aprint_error_dev(self, "unable to create event thread\n");
sys/arch/epoc32/epoc32/external.c
43
static void external_attach(device_t parent, device_t self, void *aux);
sys/arch/epoc32/epoc32/external.c
61
external_attach(device_t parent, device_t self, void *aux)
sys/arch/epoc32/epoc32/external.c
67
config_search(self, NULL,
sys/arch/epoc32/epoc32/internal.c
52
internal_attach(device_t parent, device_t self, void *aux)
sys/arch/epoc32/epoc32/internal.c
58
config_search(self, aux,
sys/arch/epoc32/epoc32/internal.c
63
internal_search(device_t self, cfdata_t cf, const int *ldesc, void *aux)
sys/arch/epoc32/epoc32/internal.c
79
if (config_probe(self, cf, aux))
sys/arch/epoc32/epoc32/internal.c
80
config_attach(self, cf, aux, NULL, CFARGS_NONE);
sys/arch/epoc32/windermere/windermere.c
117
windermere_attach(device_t parent, device_t self, void *aux)
sys/arch/epoc32/windermere/windermere.c
129
aprint_error_dev(self, "can't map registers\n");
sys/arch/epoc32/windermere/windermere.c
146
config_found(self, &aa, windermere_print,
sys/arch/epoc32/windermere/windermere.c
57
static void windermere_attach(device_t parent, device_t self, void *aux);
sys/arch/epoc32/windermere/wmcom.c
172
wmcom_attach(device_t parent, device_t self, void *aux)
sys/arch/epoc32/windermere/wmcom.c
174
struct wmcom_softc *sc = device_private(self);
sys/arch/epoc32/windermere/wmcom.c
180
sc->sc_dev = self;
sys/arch/epoc32/windermere/wmcom.c
183
aprint_error_dev(self, "can't map registers\n");
sys/arch/epoc32/windermere/wmcom.c
188
aprint_error_dev(self, "can't establish interrupt\n");
sys/arch/epoc32/windermere/wmcom.c
216
aprint_normal_dev(self, "console\n");
sys/arch/epoc32/windermere/wmlcd.c
136
wmlcd_attach(device_t parent, device_t self, void *aux)
sys/arch/epoc32/windermere/wmlcd.c
138
struct wmlcd_softc *sc = device_private(self);
sys/arch/epoc32/windermere/wmlcd.c
141
prop_dictionary_t dict = device_properties(self);
sys/arch/epoc32/windermere/wmlcd.c
151
sc->sc_dev = self;
sys/arch/epoc32/windermere/wmlcd.c
154
aprint_error_dev(self, "can't map registers\n");
sys/arch/epoc32/windermere/wmlcd.c
162
aprint_error_dev(self, "can't get properties\n");
sys/arch/epoc32/windermere/wmlcd.c
187
aprint_normal_dev(self,
sys/arch/epoc32/windermere/wmlcd.c
231
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/epoc32/windermere/wmrtc.c
79
wmrtc_attach(device_t parent, device_t self, void *aux)
sys/arch/epoc32/windermere/wmrtc.c
81
struct wmrtc_softc *sc = device_private(self);
sys/arch/epoc32/windermere/wmrtc.c
87
sc->sc_dev = self;
sys/arch/epoc32/windermere/wmrtc.c
90
aprint_error_dev(self, "can't map registers\n");
sys/arch/epoc32/windermere/wmrtc.c
99
sc->sc_todr.todr_dev = self;
sys/arch/evbarm/adi_brh/becc_mainbus.c
100
sc->sc_dev = self;
sys/arch/evbarm/adi_brh/becc_mainbus.c
94
becc_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/adi_brh/becc_mainbus.c
98
struct becc_softc *sc = device_private(self);
sys/arch/evbarm/adi_brh/com_obio.c
72
com_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/adi_brh/com_obio.c
75
struct com_obio_softc *osc = device_private(self);
sys/arch/evbarm/adi_brh/com_obio.c
80
sc->sc_dev = self;
sys/arch/evbarm/adi_brh/com_obio.c
96
aprint_error_dev(self,
sys/arch/evbarm/adi_brh/obio.c
107
config_search(self, NULL,
sys/arch/evbarm/adi_brh/obio.c
95
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/armadillo/armadillo9_com.c
71
armadillo9com_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/armadillo/armadillo9_com.c
73
struct epcom_softc *sc = device_private(self);
sys/arch/evbarm/armadillo/armadillo9_com.c
78
sc->sc_dev = self;
sys/arch/evbarm/armadillo/armadillo9_iic.c
118
iicbus_attach(self, &sc->sc_i2c);
sys/arch/evbarm/armadillo/armadillo9_iic.c
126
device_xname(self));
sys/arch/evbarm/armadillo/armadillo9_iic.c
87
armadillo9iic_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/armadillo/armadillo9_iic.c
89
struct armadillo9iic_softc *sc = device_private(self);
sys/arch/evbarm/armadillo/armadillo9_pcic.c
69
armadillo9pcic_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/armadillo/armadillo9_pcic.c
74
eppcic_attach_common(parent, self, aux, &armadillo9pcic_tag);
sys/arch/evbarm/armadillo/armadillo9_pcic.c
78
armadillo9pcic_card_mode(void *self, int socket)
sys/arch/evbarm/armadillo/armadillo9_pcic.c
87
armadillo9pcic_power_capability(void *self, int socket)
sys/arch/evbarm/armadillo/armadillo9_pcic.c
97
armadillo9pcic_power_ctl(void *self, int socket, int onoff)
sys/arch/evbarm/armadillo/armadillo9_pcic.c
99
struct eppcic_softc *sc = device_private(self);
sys/arch/evbarm/dev/plcom.c
663
plcom_detach(device_t self, int flags)
sys/arch/evbarm/dev/plcom.c
665
struct plcom_softc *sc = device_private(self);
sys/arch/evbarm/dev/plcom.c
680
mn = device_unit(self);
sys/arch/evbarm/dev/plcom.c
718
plcom_activate(device_t self, enum devact act)
sys/arch/evbarm/dev/plcom.c
720
struct plcom_softc *sc = device_private(self);
sys/arch/evbarm/fdt/fdt_machdep.c
478
fdt_device_register(device_t self, void *aux)
sys/arch/evbarm/fdt/fdt_machdep.c
482
if (device_is_a(self, "armfdt")) {
sys/arch/evbarm/fdt/fdt_machdep.c
494
if (device_is_a(self, "genfb")) {
sys/arch/evbarm/fdt/fdt_machdep.c
495
prop_dictionary_t dict = device_properties(self);
sys/arch/evbarm/fdt/fdt_machdep.c
507
if (device_parent(self) != NULL &&
sys/arch/evbarm/fdt/fdt_machdep.c
508
device_is_a(device_parent(self), "pci")) {
sys/arch/evbarm/fdt/fdt_machdep.c
514
device_setprop_bool(self, "is_console", true);
sys/arch/evbarm/fdt/fdt_machdep.c
522
plat->fp_device_register(self, aux);
sys/arch/evbarm/fdt/fdt_machdep.c
526
fdt_device_register_post_config(device_t self, void *aux)
sys/arch/evbarm/fdt/fdt_machdep.c
531
plat->fp_device_register_post_config(self, aux);
sys/arch/evbarm/fdt/fdt_machdep.c
534
if (device_is_a(self, "wsdisplay")) {
sys/arch/evbarm/fdt/fdt_machdep.c
535
struct wsdisplay_softc *sc = device_private(self);
sys/arch/evbarm/g42xxeb/g42xxeb_kmkbd.c
192
kmkbd_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/g42xxeb/g42xxeb_kmkbd.c
194
struct kmkbd_softc *sc = device_private(self);
sys/arch/evbarm/g42xxeb/g42xxeb_kmkbd.c
203
sc->dev = self;
sys/arch/evbarm/g42xxeb/g42xxeb_kmkbd.c
232
sc->wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/evbarm/g42xxeb/g42xxeb_lcd.c
200
void lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/g42xxeb/g42xxeb_lcd.c
202
struct pxa2x0_lcd_softc *sc = device_private(self);
sys/arch/evbarm/g42xxeb/g42xxeb_lcd.c
206
sc->dev = self;
sys/arch/evbarm/g42xxeb/g42xxeb_lcd.c
238
(void) config_found(self, &aa, wsemuldisplaydevprint,
sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
120
pxamci_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
122
struct g42xxeb_mci_softc *sc = device_private(self);
sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
133
sc->sc_mci.sc_dev = self;
sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
141
aprint_error_dev(self,
sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
167
if (pxamci_attach_sub(self, &pxa)) {
sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
168
aprint_error_dev(self,
sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
173
if (!pmf_device_register(self, NULL, NULL)) {
sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
174
aprint_error_dev(self,
sys/arch/evbarm/g42xxeb/gb225.c
105
opio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/g42xxeb/gb225.c
107
struct opio_softc *sc = device_private(self);
sys/arch/evbarm/g42xxeb/gb225.c
116
sc->sc_dev = self;
sys/arch/evbarm/g42xxeb/gb225.c
149
aprint_error_dev(self, "can't map FPGA registers\n");
sys/arch/evbarm/g42xxeb/gb225.c
168
aprint_debug_dev(self, "CF_DET=%x PCMCIA_DET=%x\n",
sys/arch/evbarm/g42xxeb/gb225.c
176
config_search(self, NULL,
sys/arch/evbarm/g42xxeb/gb225_pcic.c
136
opcic_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/g42xxeb/gb225_pcic.c
140
struct opcic_softc *sc = device_private(self);
sys/arch/evbarm/g42xxeb/gb225_slhci.c
117
slhci_opio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/g42xxeb/gb225_slhci.c
119
struct slhci_opio_softc *sc = device_private(self);
sys/arch/evbarm/g42xxeb/gb225_slhci.c
122
device_private(device_parent(self));
sys/arch/evbarm/g42xxeb/gb225_slhci.c
132
aprint_error_dev(self, "can't map I/O space\n");
sys/arch/evbarm/g42xxeb/gb225_slhci.c
148
aprint_error_dev(self, "can't establish interrupt\n");
sys/arch/evbarm/g42xxeb/gb225_slhci.c
164
if (slhci_attach(&sc->sc_sc, self))
sys/arch/evbarm/g42xxeb/if_ne_obio.c
142
ne_obio_attach(device_t parent, device_t self, void *aux )
sys/arch/evbarm/g42xxeb/if_ne_obio.c
144
struct ne_obio_softc *sc = device_private(self);
sys/arch/evbarm/g42xxeb/if_ne_obio.c
152
sc->nsc.sc_dp8390.sc_dev = self;
sys/arch/evbarm/g42xxeb/obio.c
205
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/g42xxeb/obio.c
207
struct obio_softc *sc = device_private(self);
sys/arch/evbarm/g42xxeb/obio.c
213
sc->sc_dev = self;
sys/arch/evbarm/g42xxeb/obio.c
265
config_search(self, NULL,
sys/arch/evbarm/g42xxeb/obio.c
270
aprint_error_dev(self, "can't map FPGA registers\n");
sys/arch/evbarm/gumstix/gxiic.c
79
gxiicattach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/gumstix/gxiic.c
82
struct gxiic_softc *sc = device_private(self);
sys/arch/evbarm/gumstix/gxiic.c
87
sc->sc_pxa_i2c.sc_dev = self;
sys/arch/evbarm/gumstix/gxiic.c
93
aprint_error_dev(self, "unable to attach PXA I2C\n");
sys/arch/evbarm/gumstix/gxio.c
206
gxioattach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/gumstix/gxio.c
208
struct gxio_softc *sc = device_private(self);
sys/arch/evbarm/gumstix/gxio.c
213
sc->sc_dev = self;
sys/arch/evbarm/gumstix/gxio.c
223
config_search(self, NULL,
sys/arch/evbarm/gumstix/gxlcd.c
153
gxlcd_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/gumstix/gxlcd.c
155
struct pxa2x0_lcd_softc *sc = device_private(self);
sys/arch/evbarm/gumstix/gxlcd.c
158
sc->dev = self;
sys/arch/evbarm/gumstix/gxlcd.c
168
(void) config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/evbarm/gumstix/gxmci.c
101
pxamci_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/gumstix/gxmci.c
103
struct gxmci_softc *sc = device_private(self);
sys/arch/evbarm/gumstix/gxmci.c
113
if (pxamci_attach_sub(self, pxa)) {
sys/arch/evbarm/gumstix/gxmci.c
114
aprint_error_dev(self, "unable to attach MMC controller\n");
sys/arch/evbarm/gumstix/gxmci.c
117
if (!pmf_device_register(self, NULL, NULL)) {
sys/arch/evbarm/gumstix/gxmci.c
118
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/evbarm/gumstix/gxpcic.c
156
gxpcic_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/gumstix/gxpcic.c
158
struct pxapcic_softc *sc = device_private(self);
sys/arch/evbarm/gumstix/gxpcic.c
162
sc->sc_dev = self;
sys/arch/evbarm/gumstix/if_sm_gxio.c
168
sm_gxio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/gumstix/if_sm_gxio.c
170
struct sm_gxio_softc *gsc = device_private(self);
sys/arch/evbarm/gumstix/if_sm_gxio.c
185
sc->sc_dev = self;
sys/arch/evbarm/gumstix/if_sm_gxio.c
206
aprint_error_dev(self,
sys/arch/evbarm/gumstix/if_smsh_gxio.c
101
sc->sc_dev = self;
sys/arch/evbarm/gumstix/if_smsh_gxio.c
126
aprint_error_dev(self,
sys/arch/evbarm/gumstix/if_smsh_gxio.c
93
smsh_gxio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/gumstix/if_smsh_gxio.c
95
struct lan9118_softc *sc = device_private(self);
sys/arch/evbarm/hdl_g/btn_obio.c
108
sc->sc_smpsw[1].smpsw_name = device_xname(self);
sys/arch/evbarm/hdl_g/btn_obio.c
80
btn_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/hdl_g/btn_obio.c
83
struct btn_obio_softc *sc = device_private(self);
sys/arch/evbarm/hdl_g/btn_obio.c
86
sc->sc_dev = self;
sys/arch/evbarm/hdl_g/btn_obio.c
98
sc->sc_smpsw[0].smpsw_name = device_xname(self);
sys/arch/evbarm/hdl_g/com_obio.c
70
com_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/hdl_g/com_obio.c
73
struct com_obio_softc *osc = device_private(self);
sys/arch/evbarm/hdl_g/com_obio.c
78
sc->sc_dev = self;
sys/arch/evbarm/hdl_g/com_obio.c
94
aprint_error_dev(self,
sys/arch/evbarm/hdl_g/i80321_mainbus.c
76
hdlg_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/hdl_g/i80321_mainbus.c
78
struct i80321_softc *sc = device_private(self);
sys/arch/evbarm/hdl_g/i80321_mainbus.c
84
sc->sc_dev = self;
sys/arch/evbarm/hdl_g/obio.c
77
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/hdl_g/obio.c
89
config_search(self, NULL,
sys/arch/evbarm/ifpga/ifpga.c
154
ifpga_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ifpga/ifpga.c
156
struct ifpga_softc *sc = device_private(self);
sys/arch/evbarm/ifpga/ifpga.c
179
ifpga_dev = self;
sys/arch/evbarm/ifpga/ifpga.c
186
device_xname(self));
sys/arch/evbarm/ifpga/ifpga.c
225
printf("\n%s: FPGA ", device_xname(self));
sys/arch/evbarm/ifpga/ifpga.c
250
device_xname(self));
sys/arch/evbarm/ifpga/ifpga.c
259
device_xname(self));
sys/arch/evbarm/ifpga/ifpga.c
265
panic("%s: Cannot map timer registers", device_xname(self));
sys/arch/evbarm/ifpga/ifpga.c
281
panic("%s: Cannot map pci memory", device_xname(self));
sys/arch/evbarm/ifpga/ifpga.c
293
printf("%s: %s\n", device_xname(self), buf);
sys/arch/evbarm/ifpga/ifpga.c
316
config_search(self, NULL,
sys/arch/evbarm/ifpga/ifpga.c
332
config_found(self, &pci_pba, pcibusprint,
sys/arch/evbarm/ifpga/ifpga_pci.c
157
ifpga_pci_attach_hook(device_t parent, device_t self,
sys/arch/evbarm/ifpga/pl030_rtc.c
102
printf("%s: unable to map device\n", device_xname(self));
sys/arch/evbarm/ifpga/pl030_rtc.c
107
sc->sc_todr.todr_dev = self;
sys/arch/evbarm/ifpga/pl030_rtc.c
93
plrtc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ifpga/pl030_rtc.c
96
struct plrtc_softc *sc = device_private(self);
sys/arch/evbarm/ifpga/pl030_rtc.c
98
sc->sc_dev = self;
sys/arch/evbarm/ifpga/plcom_ifpga.c
69
plcom_ifpga_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ifpga/plcom_ifpga.c
71
struct plcom_ifpga_softc *isc = device_private(self);
sys/arch/evbarm/ifpga/plcom_ifpga.c
78
sc->sc_dev = self;
sys/arch/evbarm/ifpga/plmmc_ifpga.c
62
plmmc_ifpga_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ifpga/plmmc_ifpga.c
64
struct plmmc_softc *sc = device_private(self);
sys/arch/evbarm/ifpga/plmmc_ifpga.c
67
sc->sc_dev = self;
sys/arch/evbarm/ifpga/plmmc_ifpga.c
83
config_interrupts(self, plmmc_ifpga_attach_i);
sys/arch/evbarm/ifpga/plmmc_ifpga.c
87
plmmc_ifpga_attach_i(device_t self)
sys/arch/evbarm/ifpga/plmmc_ifpga.c
89
struct plmmc_softc *sc = device_private(self);
sys/arch/evbarm/ifpga/sm_ifpga.c
74
sm_ifpga_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ifpga/sm_ifpga.c
76
struct sm_ifpga_softc *isc = device_private(self);
sys/arch/evbarm/ifpga/sm_ifpga.c
98
sc->sc_dev = self;
sys/arch/evbarm/imx31/imx31lk_pcic.c
73
imx31lk_pcic_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/imx31/imx31lk_pcic.c
75
struct imx_pcic_softc *sc = device_private(self);
sys/arch/evbarm/imx31/imx31lk_pcic.c
78
sc->sc_dev = self;
sys/arch/evbarm/iq31244/wdc_obio.c
129
aprint_normal_dev(self, "Using polled I/O\n");
sys/arch/evbarm/iq31244/wdc_obio.c
73
wdc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/iq31244/wdc_obio.c
75
struct wdc_obio_softc *sc = device_private(self);
sys/arch/evbarm/iq31244/wdc_obio.c
80
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/evbarm/iq80310/com_obio.c
69
com_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/iq80310/com_obio.c
72
struct com_obio_softc *osc = device_private(self);
sys/arch/evbarm/iq80310/com_obio.c
77
sc->sc_dev = self;
sys/arch/evbarm/iq80310/com_obio.c
92
aprint_error_dev(self,
sys/arch/evbarm/iq80310/i80312_mainbus.c
101
sc->sc_dev = self;
sys/arch/evbarm/iq80310/i80312_mainbus.c
120
device_xname(self));
sys/arch/evbarm/iq80310/i80312_mainbus.c
94
i80312_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/iq80310/i80312_mainbus.c
96
struct i80312_softc *sc = device_private(self);
sys/arch/evbarm/iq80310/obio.c
127
config_search(self, NULL,
sys/arch/evbarm/iq80310/obio.c
96
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/iq80321/com_obio.c
70
com_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/iq80321/com_obio.c
73
struct com_obio_softc *osc = device_private(self);
sys/arch/evbarm/iq80321/com_obio.c
78
sc->sc_dev = self;
sys/arch/evbarm/iq80321/com_obio.c
94
aprint_error_dev(self,
sys/arch/evbarm/iq80321/i80321_mainbus.c
102
sc->sc_dev = self;
sys/arch/evbarm/iq80321/i80321_mainbus.c
94
i80321_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/iq80321/i80321_mainbus.c
96
struct i80321_softc *sc = device_private(self);
sys/arch/evbarm/iq80321/i80321_mainbus.c
97
const char *xname = device_xname(self);
sys/arch/evbarm/iq80321/obio.c
106
config_search(self, NULL,
sys/arch/evbarm/iq80321/obio.c
94
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ixdp425/ixdp425_led.c
71
ixdpled_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ixdp425/ixdp425_led.c
73
struct ixdpled_softc* sc = device_private(self);
sys/arch/evbarm/ixdp425/ixdp425_led.c
83
printf("%s: unable to map registers\n", device_xname(self));
sys/arch/evbarm/ixdp425/ixdp425_mainbus.c
64
ixp425_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ixdp425/ixdp425_mainbus.c
68
ixp425_attach(self);
sys/arch/evbarm/ixm1200/ixp12x0_mainbus.c
66
ixp12x0_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ixm1200/ixp12x0_mainbus.c
68
struct ixp12x0_softc *sc = device_private(self);
sys/arch/evbarm/ixm1200/ixp12x0_mainbus.c
70
sc->sc_dev = self;
sys/arch/evbarm/ixm1200/ixpcom_ixm.c
67
ixpcom_ixm_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ixm1200/ixpcom_ixm.c
69
struct ixpcom_ixm_softc *isc = device_private(self);
sys/arch/evbarm/ixm1200/ixpcom_ixm.c
73
sc->sc_dev = self;
sys/arch/evbarm/ixm1200/nappi_nppb.c
110
nppbattach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ixm1200/nappi_nppb.c
112
struct nppb_pci_softc *psc = device_private(self);
sys/arch/evbarm/ixm1200/nappi_nppb.c
161
printf("%s: couldn't map interrupt\n", device_xname(self));
sys/arch/evbarm/ixm1200/nappi_nppb.c
168
device_xname(self));
sys/arch/evbarm/ixm1200/nappi_nppb.c
174
printf("%s: interrupting at %s\n", device_xname(self), intrstr);
sys/arch/evbarm/ixm1200/nappi_nr.c
75
nappinr_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/ixm1200/nappi_nr.c
77
struct nappinr_softc* sc = device_private(self);
sys/arch/evbarm/ixm1200/nappi_nr.c
87
printf("%s: unable to map registers\n", device_xname(self));
sys/arch/evbarm/ixm1200/nappi_nr.c
97
nappinr_activate(device_t self, enum devact act)
sys/arch/evbarm/iyonix/com_obio.c
69
com_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/iyonix/com_obio.c
72
struct com_obio_softc *osc = device_private(self);
sys/arch/evbarm/iyonix/com_obio.c
77
sc->sc_dev = self;
sys/arch/evbarm/iyonix/com_obio.c
93
aprint_error_dev(self,
sys/arch/evbarm/iyonix/i80321_mainbus.c
102
sc->sc_dev = self;
sys/arch/evbarm/iyonix/i80321_mainbus.c
120
device_xname(self));
sys/arch/evbarm/iyonix/i80321_mainbus.c
125
device_xname(self));
sys/arch/evbarm/iyonix/i80321_mainbus.c
94
i80321_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/iyonix/i80321_mainbus.c
96
struct i80321_softc *sc = device_private(self);
sys/arch/evbarm/iyonix/obio.c
105
config_search(self, NULL,
sys/arch/evbarm/iyonix/obio.c
93
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/kobo/kobo_usb.c
104
imxusbc_attach_common(parent, self, aa->aa_iot, aa->aa_addr, aa->aa_size);
sys/arch/evbarm/kobo/kobo_usb.c
89
imxusbc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/kobo/kobo_usb.c
91
struct imxusbc_softc *sc = device_private(self);
sys/arch/evbarm/lubbock/if_sm_obio.c
180
sm_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/lubbock/if_sm_obio.c
182
struct sm_obio_softc *isc = device_private(self);
sys/arch/evbarm/lubbock/if_sm_obio.c
221
sc->sc_dev = self;
sys/arch/evbarm/lubbock/if_sm_obio.c
236
aprint_normal_dev(self, "couldn't establish interrupt handler\n");
sys/arch/evbarm/lubbock/lubbock_lcd.c
183
void lcd_attach( device_t parent, device_t self, void *aux )
sys/arch/evbarm/lubbock/lubbock_lcd.c
185
struct pxa2x0_lcd_softc *sc = device_private(self);
sys/arch/evbarm/lubbock/lubbock_lcd.c
189
sc->dev = self;
sys/arch/evbarm/lubbock/lubbock_lcd.c
215
(void) config_found(self, &aa, wsemuldisplaydevprint,
sys/arch/evbarm/lubbock/lubbock_pcic.c
90
sacpcic_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/lubbock/lubbock_pcic.c
92
struct sacpcic_softc *sc = device_private(self);
sys/arch/evbarm/lubbock/lubbock_pcic.c
94
sc->sc_pc.sc_dev = self;
sys/arch/evbarm/lubbock/obio.c
210
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/lubbock/obio.c
212
struct obio_softc *sc = device_private(self);
sys/arch/evbarm/lubbock/obio.c
220
sc->sc_dev = self;
sys/arch/evbarm/lubbock/obio.c
224
aprint_normal_dev(self, "can't map FPGA registers\n");
sys/arch/evbarm/lubbock/obio.c
287
config_search(self, NULL,
sys/arch/evbarm/lubbock/sacc_obio.c
101
sacc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/lubbock/sacc_obio.c
105
struct sacc_softc *sc = device_private(self);
sys/arch/evbarm/lubbock/sacc_obio.c
130
sc->sc_dev = self;
sys/arch/evbarm/lubbock/sacc_obio.c
139
aprint_normal_dev(self, "SA1111 rev %d.%d\n",
sys/arch/evbarm/lubbock/sacc_obio.c
178
config_search(self, NULL,
sys/arch/evbarm/lubbock/sacc_obio.c
184
aprint_normal_dev(self, "unable to map registers\n");
sys/arch/evbarm/mini2440/audio_mini2440.c
147
uda_ssio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/mini2440/audio_mini2440.c
150
struct uda_softc *sc = device_private(self);
sys/arch/evbarm/mini2440/audio_mini2440.c
155
sc->sc_dev = self;
sys/arch/evbarm/mini2440/audio_mini2440.c
202
audio_attach_mi(&uda1341_hw_if, &sc->sc_uda1341, self);
sys/arch/evbarm/mini2440/if_dm_mini2440.c
107
dme_ssextio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/mini2440/if_dm_mini2440.c
109
struct dme_softc *sc = device_private(self);
sys/arch/evbarm/mini2440/if_dm_mini2440.c
119
sc->sc_dev = self;
sys/arch/evbarm/mini2440/if_dm_mini2440.c
139
if (! ether_getaddr(self, enaddr)) {
sys/arch/evbarm/mini2440/if_dm_mini2440.c
143
aprint_error_dev(self, "Unable to get mac-address property\n");
sys/arch/evbarm/mini2440/mini2440_lcd.c
252
lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/mini2440/mini2440_lcd.c
254
struct s3c24x0_lcd_softc *sc = device_private(self);
sys/arch/evbarm/mini2440/mini2440_lcd.c
264
sc->sc_dev = self;
sys/arch/evbarm/mini2440/mini2440_lcd.c
294
(void) config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/evbarm/mpcsa/mpcsa_cf.c
102
at91cf_attach_common(parent, self, aux, &mpcsa_cf_tag);
sys/arch/evbarm/mpcsa/mpcsa_cf.c
106
mpcsa_cf_power_ctl(void *self, int onoff)
sys/arch/evbarm/mpcsa/mpcsa_cf.c
108
struct mpcsa_cf_softc *sc = self;
sys/arch/evbarm/mpcsa/mpcsa_cf.c
118
static int mpcsa_cf_card_detect(void *self)
sys/arch/evbarm/mpcsa/mpcsa_cf.c
120
struct mpcsa_cf_softc *sc = self;
sys/arch/evbarm/mpcsa/mpcsa_cf.c
124
static int mpcsa_cf_irq_line(void *self)
sys/arch/evbarm/mpcsa/mpcsa_cf.c
126
struct mpcsa_cf_softc *sc = self;
sys/arch/evbarm/mpcsa/mpcsa_cf.c
130
static void * mpcsa_cf_intr_establish(void *self, int which, int ipl, int (*ih_func)(void *), void *ih_arg)
sys/arch/evbarm/mpcsa/mpcsa_cf.c
132
struct mpcsa_cf_softc *sc = self;
sys/arch/evbarm/mpcsa/mpcsa_cf.c
137
static void mpcsa_cf_intr_disestablish(void *self, int which, void *cookie)
sys/arch/evbarm/mpcsa/mpcsa_cf.c
139
struct mpcsa_cf_softc *sc = self;
sys/arch/evbarm/mpcsa/mpcsa_cf.c
61
static int mpcsa_cf_power_ctl(void *self, int onoff);
sys/arch/evbarm/mpcsa/mpcsa_cf.c
62
static int mpcsa_cf_card_detect(void *self);
sys/arch/evbarm/mpcsa/mpcsa_cf.c
63
static int mpcsa_cf_irq_line(void *self);
sys/arch/evbarm/mpcsa/mpcsa_cf.c
64
static void * mpcsa_cf_intr_establish(void *self, int which, int ipl, int (*ih_func)(void *), void *arg);
sys/arch/evbarm/mpcsa/mpcsa_cf.c
65
static void mpcsa_cf_intr_disestablish(void *self, int which, void *cookie);
sys/arch/evbarm/mpcsa/mpcsa_cf.c
84
mpcsa_cf_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/mpcsa/mpcsa_cf.c
86
struct mpcsa_cf_softc *sc = device_private(self);
sys/arch/evbarm/mpcsa/mpcsa_leds.c
129
mpcsa_leds_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/mpcsa/mpcsa_leds.c
131
struct mpcsa_leds_softc *sc = device_private(self);
sys/arch/evbarm/mpcsa/mpcsa_leds.c
142
error = spi_configure(self, sa->sa_handle, SPI_MODE_0,
sys/arch/evbarm/mpcsa/mpcsa_leds.c
168
config_found(self, &gba, mpcsa_ledsbus_print, CFARGS_NONE);
sys/arch/evbarm/mpcsa/mpcsa_spi.c
105
at91spi_attach_common(parent, self, aux, &mpcsa_spi_tag);
sys/arch/evbarm/mpcsa/mpcsa_spi.c
108
static int mpcsa_spi_select(void *self, int sel)
sys/arch/evbarm/mpcsa/mpcsa_spi.c
110
struct mpcsa_spi_softc *sc = device_private(self);
sys/arch/evbarm/mpcsa/mpcsa_spi.c
62
static int mpcsa_spi_select(void *self, int sel);
sys/arch/evbarm/mpcsa/mpcsa_spi.c
82
mpcsa_spi_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/mpcsa/mpcsa_spi.c
84
struct mpcsa_spi_softc *sc = device_private(self);
sys/arch/evbarm/mpcsa/mpcsa_usart.c
108
mpcsa_usart_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/mpcsa/mpcsa_usart.c
110
struct mpcsa_usart_softc *sc = device_private(self);
sys/arch/evbarm/mpcsa/mpcsa_usart.c
113
sc->sc_dev.sc_dev = self;
sys/arch/evbarm/netwalker/netwalker_backlight.c
109
if (!pmf_device_register(self, netwalker_backlight_suspend,
sys/arch/evbarm/netwalker/netwalker_backlight.c
111
aprint_error_dev(self,
sys/arch/evbarm/netwalker/netwalker_backlight.c
114
if (!pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_UP,
sys/arch/evbarm/netwalker/netwalker_backlight.c
116
aprint_error_dev(self,
sys/arch/evbarm/netwalker/netwalker_backlight.c
118
if (!pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_DOWN,
sys/arch/evbarm/netwalker/netwalker_backlight.c
120
aprint_error_dev(self,
sys/arch/evbarm/netwalker/netwalker_backlight.c
122
if (!pmf_event_register(self, PMFE_DISPLAY_ON,
sys/arch/evbarm/netwalker/netwalker_backlight.c
124
aprint_error_dev(self,
sys/arch/evbarm/netwalker/netwalker_backlight.c
126
if (!pmf_event_register(self, PMFE_DISPLAY_OFF,
sys/arch/evbarm/netwalker/netwalker_backlight.c
128
aprint_error_dev(self,
sys/arch/evbarm/netwalker/netwalker_backlight.c
130
if (!pmf_event_register(self, PMFE_CHASSIS_LID_OPEN,
sys/arch/evbarm/netwalker/netwalker_backlight.c
132
aprint_error_dev(self,
sys/arch/evbarm/netwalker/netwalker_backlight.c
134
if (!pmf_event_register(self, PMFE_CHASSIS_LID_CLOSE,
sys/arch/evbarm/netwalker/netwalker_backlight.c
136
aprint_error_dev(self,
sys/arch/evbarm/netwalker/netwalker_backlight.c
141
netwalker_backlight_detach(device_t self, int flags)
sys/arch/evbarm/netwalker/netwalker_backlight.c
143
struct netwalker_backlight_softc *sc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_backlight.c
146
pmf_device_deregister(self);
sys/arch/evbarm/netwalker/netwalker_backlight.c
90
netwalker_backlight_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/netwalker/netwalker_backlight.c
92
struct netwalker_backlight_softc *sc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_backlight.c
95
imxpwm->sc_dev = self;
sys/arch/evbarm/netwalker/netwalker_btn.c
120
mousebtn_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/netwalker/netwalker_btn.c
122
struct mousebtn_softc *sc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_btn.c
127
sc->sc_dev = self;
sys/arch/evbarm/netwalker/netwalker_btn.c
183
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/evbarm/netwalker/netwalker_btn.c
187
mousebtn_detach(device_t self, int flags)
sys/arch/evbarm/netwalker/netwalker_btn.c
189
struct mousebtn_softc *sc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_lcd.c
119
void lcd_attach( device_t parent, device_t self, void *aux )
sys/arch/evbarm/netwalker/netwalker_lcd.c
121
struct imx51_ipuv3_softc *sc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_lcd.c
125
sc->dev = self;
sys/arch/evbarm/netwalker/netwalker_lcd.c
133
aprint_error_dev(self, "can't map MIPI HSC");
sys/arch/evbarm/netwalker/netwalker_lid.c
134
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/arch/evbarm/netwalker/netwalker_lid.c
141
netwalker_lid_detach(device_t self, int flags)
sys/arch/evbarm/netwalker/netwalker_lid.c
143
struct netwalker_lid_softc *sc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_lid.c
149
pmf_device_deregister(self);
sys/arch/evbarm/netwalker/netwalker_lid.c
91
netwalker_lid_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/netwalker/netwalker_lid.c
93
struct netwalker_lid_softc *sc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_lid.c
97
sc->sc_dev = self;
sys/arch/evbarm/netwalker/netwalker_machdep.c
681
netwalker_device_register(device_t self, void *aux)
sys/arch/evbarm/netwalker/netwalker_machdep.c
684
if (device_is_a(self, "genfb")) {
sys/arch/evbarm/netwalker/netwalker_machdep.c
688
device_setprop_bool(self, "is_console", true);
sys/arch/evbarm/netwalker/netwalker_machdep.c
694
netwalker_backlight_genfb_parameter_set(device_properties(self));
sys/arch/evbarm/netwalker/netwalker_pwr.c
135
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/arch/evbarm/netwalker/netwalker_pwr.c
142
netwalker_pwr_detach(device_t self, int flags)
sys/arch/evbarm/netwalker/netwalker_pwr.c
144
struct netwalker_pwr_softc *sc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_pwr.c
150
pmf_device_deregister(self);
sys/arch/evbarm/netwalker/netwalker_pwr.c
92
netwalker_pwr_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/netwalker/netwalker_pwr.c
94
struct netwalker_pwr_softc *sc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_pwr.c
98
sc->sc_dev = self;
sys/arch/evbarm/netwalker/netwalker_spi.c
113
imxspi_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/netwalker/netwalker_spi.c
115
struct imx51spi_softc *isc = device_private(self);
sys/arch/evbarm/netwalker/netwalker_spi.c
118
int cf_flags = device_cfdata(self)->cf_flags;
sys/arch/evbarm/netwalker/netwalker_spi.c
129
switch (device_unit(self)) {
sys/arch/evbarm/netwalker/netwalker_spi.c
169
imxspi_attach_common(self);
sys/arch/evbarm/netwalker/netwalker_usb.c
102
imxusbc_attach_common(parent, self, aa->aa_iot, aa->aa_addr, aa->aa_size);
sys/arch/evbarm/netwalker/netwalker_usb.c
87
imxusbc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/netwalker/netwalker_usb.c
89
struct imxusbc_softc *sc = device_private(self);
sys/arch/evbarm/npwr_fc/com_obio.c
70
com_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/npwr_fc/com_obio.c
73
struct com_obio_softc *osc = device_private(self);
sys/arch/evbarm/npwr_fc/com_obio.c
78
sc->sc_dev = self;
sys/arch/evbarm/npwr_fc/com_obio.c
94
aprint_error_dev(self,
sys/arch/evbarm/nslu2/nslu2_buttons.c
109
slugbutt_deferred(device_t self)
sys/arch/evbarm/nslu2/nslu2_buttons.c
111
struct slugbutt_softc *sc = device_private(self);
sys/arch/evbarm/nslu2/nslu2_buttons.c
115
sc->sc_dev = self;
sys/arch/evbarm/nslu2/nslu2_buttons.c
171
slugbutt_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/nslu2/nslu2_buttons.c
179
config_interrupts(self, slugbutt_deferred);
sys/arch/evbarm/nslu2/nslu2_iic.c
174
slugiic_deferred_attach(device_t self)
sys/arch/evbarm/nslu2/nslu2_iic.c
176
struct slugiic_softc *sc = device_private(self);
sys/arch/evbarm/nslu2/nslu2_iic.c
188
iicbus_attach(self, &sc->sc_ic);
sys/arch/evbarm/nslu2/nslu2_iic.c
199
slugiic_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/nslu2/nslu2_iic.c
201
struct slugiic_softc *sc = device_private(self);
sys/arch/evbarm/nslu2/nslu2_iic.c
227
config_interrupts(self, slugiic_deferred_attach);
sys/arch/evbarm/nslu2/nslu2_leds.c
192
slugled_defer(device_t self)
sys/arch/evbarm/nslu2/nslu2_leds.c
194
struct slugled_softc *sc = device_private(self);
sys/arch/evbarm/nslu2/nslu2_leds.c
216
aprint_error_dev(self, "WARNING - Failed to register shutdown hook\n");
sys/arch/evbarm/nslu2/nslu2_leds.c
253
slugled_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/nslu2/nslu2_leds.c
260
config_interrupts(self, slugled_defer);
sys/arch/evbarm/nslu2/nslu2_mainbus.c
52
ixp425_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/nslu2/nslu2_mainbus.c
56
ixp425_attach(self);
sys/arch/evbarm/rpi/rpi_vcmbox.c
128
vcmbox_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/rpi/rpi_vcmbox.c
130
struct vcmbox_softc *sc = device_private(self);
sys/arch/evbarm/rpi/rpi_vcmbox.c
132
sc->sc_dev = self;
sys/arch/evbarm/rpi/rpi_vcmbox.c
148
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/evbarm/smdk2xx0/if_cs_smdk24x0.c
176
cs_ssextio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/smdk2xx0/if_cs_smdk24x0.c
178
struct cs_softc *sc = device_private(self);
sys/arch/evbarm/smdk2xx0/if_cs_smdk24x0.c
187
sc->sc_dev = self;
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
263
sskbd_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
265
struct sskbd_softc *sc = device_private(self);
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
272
sc->sc_dev = self;
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
328
aprint_error_dev(self, "can't establish interrupt handler\n");
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
331
s3c24x0_spi_setup(device_private(device_parent(self)),
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
343
sc->wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c
224
lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c
226
struct s3c24x0_lcd_softc *sc = device_private(self);
sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c
236
sc->sc_dev = self;
sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c
257
(void) config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/evbarm/tsarm/epcom_ts.c
67
epcom_ts_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/tsarm/epcom_ts.c
69
struct epcom_ts_softc *esc = device_private(self);
sys/arch/evbarm/tsarm/epcom_ts.c
75
sc->sc_dev = self;
sys/arch/evbarm/tsarm/isa/isa_machdep.c
186
isa_attach_hook(device_t parent, device_t self, struct isabus_attach_args *iba)
sys/arch/evbarm/tsarm/isa/isa_machdep.c
198
isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/evbarm/tsarm/tskp.c
126
tskp_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/tsarm/tskp.c
128
struct tskp_softc *sc = device_private(self);
sys/arch/evbarm/tsarm/tskp.c
141
sc->sc_mxkp.sc_dev = self;
sys/arch/evbarm/tsarm/tskp.c
153
sc->sc_mxkp.sc_wskbddev = config_found(self, &wa, wskbddevprint,
sys/arch/evbarm/tsarm/tslcd.c
136
tslcd_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/tsarm/tslcd.c
138
struct tslcd_softc *sc = device_private(self);
sys/arch/evbarm/tsarm/tslcd.c
151
sc->sc_hlcd.sc_dev = self;
sys/arch/evbarm/tsarm/tslcd.c
168
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/evbarm/tsarm/tspld.c
148
tspldattach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/tsarm/tspld.c
151
struct tspld_softc *sc = device_private(self);
sys/arch/evbarm/tsarm/tspld.c
156
0, CTLTYPE_NODE, device_xname(self),
sys/arch/evbarm/tsarm/tspld.c
161
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
177
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
195
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
218
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
228
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
249
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
260
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
270
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
294
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
304
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
314
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
324
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
334
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
344
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
347
printf("%s: jumpers 0x%x", device_xname(self), jp);
sys/arch/evbarm/tsarm/tspld.c
383
device_xname(self),
sys/arch/evbarm/tsarm/tspld.c
394
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
405
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
416
device_xname(self));
sys/arch/evbarm/tsarm/tspld.c
425
sc->sc_wdog.smw_name = device_xname(self);
sys/arch/evbarm/tsarm/tspld.c
434
config_defer(self, tspld_callback);
sys/arch/evbarm/tsarm/tspld.c
459
tspld_callback(device_t self)
sys/arch/evbarm/tsarm/tspld.c
470
isabus_attach(self, &iba);
sys/arch/evbarm/tsarm/tspld.c
475
config_search(self, NULL,
sys/arch/evbarm/tsarm/tsrtc.c
111
tsrtc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/tsarm/tsrtc.c
113
struct tsrtc_softc *tsc = device_private(self);
sys/arch/evbarm/tsarm/tsrtc.c
117
sc->sc_dev = self;
sys/arch/evbarm/tsarm/wdc_ts.c
70
wdc_ts_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/tsarm/wdc_ts.c
72
struct wdc_ts_softc *sc = device_private(self);
sys/arch/evbarm/tsarm/wdc_ts.c
77
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/evbarm/viper/if_sm_pxaip.c
104
sc->sc_dev = self;
sys/arch/evbarm/viper/if_sm_pxaip.c
78
sm_pxaip_attach(device_t parent, device_t self, void *aux)
sys/arch/evbarm/viper/if_sm_pxaip.c
80
struct sm_pxaip_softc *pxasc = device_private(self);
sys/arch/evbmips/adm5120/mainbus.c
131
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/adm5120/mainbus.c
133
struct mainbus_softc *sc = device_private(self);
sys/arch/evbmips/adm5120/mainbus.c
141
sc->sc_dev = self;
sys/arch/evbmips/adm5120/mainbus.c
155
config_found(self, &ma, mainbus_print,
sys/arch/evbmips/alchemy/mainbus.c
82
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/alchemy/mainbus.c
90
config_found(self, NULL, mainbus_print, CFARGS_NONE);
sys/arch/evbmips/alchemy/obio.c
77
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/alchemy/obio.c
91
config_found(self, &oa, obio_print,
sys/arch/evbmips/atheros/mainbus.c
82
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/atheros/mainbus.c
91
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/evbmips/atheros/wdog.c
121
wdog_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/atheros/wdog.c
123
struct wdog_softc *sc = device_private(self);
sys/arch/evbmips/atheros/wdog.c
131
sc->sc_smw.smw_name = device_xname(self);
sys/arch/evbmips/atheros/wdog.c
138
aprint_error_dev(self,
sys/arch/evbmips/evbmips/cpu.c
62
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/evbmips/cpu.c
66
ci->ci_dev = self;
sys/arch/evbmips/evbmips/cpu.c
67
device_set_private(self, ci);
sys/arch/evbmips/evbmips/cpu.c
74
aprint_normal("%s: ", device_xname(self));
sys/arch/evbmips/evbmips/cpu.c
75
cpu_identify(self);
sys/arch/evbmips/evbmips/cpu.c
76
cpu_attach_common(self, ci);
sys/arch/evbmips/gdium/bonito_mainbus.c
67
bonito_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/gdium/bonito_mainbus.c
73
device_set_private(self, &gc->gc_bonito);
sys/arch/evbmips/gdium/bonito_mainbus.c
95
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/evbmips/gdium/machdep.c
148
gdium_pci_attach_hook(device_t parent, device_t self,
sys/arch/evbmips/gdium/mainbus.c
120
(void) config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbmips/gdium/mainbus.c
97
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/ingenic/cpu.c
104
aprint_error_dev(self, "did not hatch\n");
sys/arch/evbmips/ingenic/cpu.c
108
aprint_normal_dev(self,
sys/arch/evbmips/ingenic/cpu.c
115
ci->ci_dev = self;
sys/arch/evbmips/ingenic/cpu.c
116
device_set_private(self, ci);
sys/arch/evbmips/ingenic/cpu.c
123
aprint_normal_dev(self, "");
sys/arch/evbmips/ingenic/cpu.c
124
cpu_identify(self);
sys/arch/evbmips/ingenic/cpu.c
125
cpu_attach_common(self, ci);
sys/arch/evbmips/ingenic/cpu.c
74
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/ingenic/cpu.c
79
if ((unit = device_unit(self)) > 0) {
sys/arch/evbmips/ingenic/mainbus.c
81
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/ingenic/mainbus.c
90
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/evbmips/isa/mcclock_isa.c
102
mcclock_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/isa/mcclock_isa.c
104
struct mc146818_softc *sc = device_private(self);
sys/arch/evbmips/isa/mcclock_isa.c
107
sc->sc_dev = self;
sys/arch/evbmips/loongson/bonito_mainbus.c
117
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/evbmips/loongson/bonito_mainbus.c
70
bonito_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/loongson/bonito_mainbus.c
76
device_set_private(self, __UNCONST(&sys_platform->bonito_config));
sys/arch/evbmips/loongson/dev/gcscpcib_pci.c
85
gcscpcib_pci_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/loongson/dev/gcscpcib_pci.c
87
struct gcscpcib_pci_softc *sc = device_private(self);
sys/arch/evbmips/loongson/dev/gcscpcib_pci.c
93
pcibattach(parent, self, aux);
sys/arch/evbmips/loongson/dev/gcscpcib_pci.c
95
gcscpcib_attach(self, &sc->sc_gcscpcib, pa->pa_iot, GCSCATTACH_NO_WDT);
sys/arch/evbmips/loongson/dev/kb3310.c
154
ykbec_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/loongson/dev/kb3310.c
157
struct ykbec_softc *sc = device_private(self);
sys/arch/evbmips/loongson/dev/kb3310.c
168
strlcpy(sc->sc_sensordev.xname, device_xname(self),
sys/arch/evbmips/loongson/dev/pcib.c
101
pcibattach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/loongson/dev/pcib.c
103
struct pcib_softc *sc = device_private(self);
sys/arch/evbmips/loongson/dev/pcib.c
120
if (!pmf_device_register(self, NULL, NULL))
sys/arch/evbmips/loongson/dev/pcib.c
121
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/evbmips/loongson/dev/pcib.c
122
config_defer(self, pcib_callback);
sys/arch/evbmips/loongson/dev/pcib.c
126
pcibdetach(device_t self, int flags)
sys/arch/evbmips/loongson/dev/pcib.c
130
if ((rc = config_detach_children(self, flags)) != 0)
sys/arch/evbmips/loongson/dev/pcib.c
132
pmf_device_deregister(self);
sys/arch/evbmips/loongson/dev/pcib.c
137
pcibchilddet(device_t self, device_t child)
sys/arch/evbmips/loongson/dev/pcib.c
139
struct pcib_softc *sc = device_private(self);
sys/arch/evbmips/loongson/dev/pcib.c
146
pcibrescan(device_t self, const char *ifattr, const int *loc)
sys/arch/evbmips/loongson/dev/pcib.c
148
struct pcib_softc *sc = device_private(self);
sys/arch/evbmips/loongson/dev/pcib.c
168
sc->sc_isabus = isabus_attach(self, &iba);
sys/arch/evbmips/loongson/dev/pcib.c
175
pcib_callback(device_t self)
sys/arch/evbmips/loongson/dev/pcib.c
177
pcibrescan(self, "isabus", NULL);
sys/arch/evbmips/loongson/dev/stvii.c
142
stvii_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/loongson/dev/stvii.c
144
struct stvii_softc *sc = device_private(self);
sys/arch/evbmips/loongson/dev/stvii.c
148
sc->sc_dev = self;
sys/arch/evbmips/loongson/dev/stvii.c
149
stvii_dev = self;
sys/arch/evbmips/loongson/gdium_machdep.c
96
gdium_attach_hook(device_t parent, device_t self,
sys/arch/evbmips/loongson/generic2e_machdep.c
170
generic2e_pci_attach_hook(device_t parent, device_t self,
sys/arch/evbmips/loongson/generic2e_machdep.c
238
generic2e_isa_attach_hook(device_t parent, device_t self,
sys/arch/evbmips/loongson/mainbus.c
101
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/loongson/mainbus.c
124
(void) config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbmips/loongson/yeeloong_machdep.c
247
lemote_pci_attach_hook(device_t parent, device_t self,
sys/arch/evbmips/loongson/yeeloong_machdep.c
361
lemote_isa_attach_hook(device_t parent, device_t self,
sys/arch/evbmips/malta/dev/gt.c
105
gt_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/malta/dev/gt.c
122
config_found(self, &pba, gt_print, CFARGS_NONE);
sys/arch/evbmips/malta/dev/gt.c
85
gt_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/evbmips/malta/dev/mainbus.c
110
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/malta/dev/mainbus.c
171
config_found(self, &ma, mainbus_print,
sys/arch/evbmips/malta/pci/pchb.c
108
printf("%s: %s (rev. 0x%02x)\n", device_xname(self), devinfo,
sys/arch/evbmips/malta/pci/pchb.c
79
pchb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/malta/pci/pcib.c
170
pcib_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/malta/pci/pcib.c
173
struct pcib_softc * const sc = device_private(self);
sys/arch/evbmips/malta/pci/pcib.c
174
const char * const xname = device_xname(self);
sys/arch/evbmips/malta/pci/pcib.c
183
sc->sc_dev = self;
sys/arch/evbmips/malta/pci/pcib.c
334
config_defer(self, pcib_bridge_callback);
sys/arch/evbmips/malta/pci/pcib.c
338
pcib_bridge_callback(device_t self)
sys/arch/evbmips/malta/pci/pcib.c
340
struct pcib_softc *sc = device_private(self);
sys/arch/evbmips/malta/pci/pcib.c
356
isabus_attach(self, &iba);
sys/arch/evbmips/malta/pci/pcib.c
360
pcib_isa_attach_hook(device_t parent, device_t self,
sys/arch/evbmips/malta/pci/pcib.c
368
pcib_isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/evbmips/mipssim/com_mainbus.c
74
com_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/mipssim/com_mainbus.c
76
struct com_mainbus_softc *msc = device_private(self);
sys/arch/evbmips/mipssim/com_mainbus.c
81
sc->sc_dev = self;
sys/arch/evbmips/mipssim/com_mainbus.c
94
aprint_error_dev(self, "unable to establish interrupt\n");
sys/arch/evbmips/mipssim/mainbus.c
104
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbmips/mipssim/mainbus.c
78
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/mipssim/mainbus.c
94
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbmips/mipssim/virtio_mainbus.c
106
vsc->sc_dev = self;
sys/arch/evbmips/mipssim/virtio_mainbus.c
111
virtio_mainbus_rescan(self, NULL, NULL);
sys/arch/evbmips/mipssim/virtio_mainbus.c
117
virtio_mainbus_rescan(device_t self, const char *ifattr, const int *locs)
sys/arch/evbmips/mipssim/virtio_mainbus.c
119
struct virtio_mainbus_softc *sc = device_private(self);
sys/arch/evbmips/mipssim/virtio_mainbus.c
130
config_found(self, &va, NULL, CFARGS_NONE);
sys/arch/evbmips/mipssim/virtio_mainbus.c
139
virtio_mainbus_detach(device_t self, int flags)
sys/arch/evbmips/mipssim/virtio_mainbus.c
141
struct virtio_mainbus_softc *sc = device_private(self);
sys/arch/evbmips/mipssim/virtio_mainbus.c
82
virtio_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/mipssim/virtio_mainbus.c
84
struct virtio_mainbus_softc *sc = device_private(self);
sys/arch/evbmips/rasoc/autoconf.c
117
device_register(device_t self, void *aux)
sys/arch/evbmips/rasoc/autoconf.c
119
device_t parent = device_parent(self);
sys/arch/evbmips/rasoc/autoconf.c
128
if (device_is_a(self, map->map_name)) {
sys/arch/evbmips/rasoc/autoconf.c
136
if (device_is_a(self, "ohci") || device_is_a(self, "ehci")) {
sys/arch/evbmips/sbmips/cpu.c
130
cpu->sb1cpu_dev = self;
sys/arch/evbmips/sbmips/cpu.c
141
cpu->sb1cpu_dev = self;
sys/arch/evbmips/sbmips/cpu.c
165
aprint_normal_dev(self,
sys/arch/evbmips/sbmips/cpu.c
176
cpu_identify(self);
sys/arch/evbmips/sbmips/cpu.c
178
cpu_attach_common(self, ci);
sys/arch/evbmips/sbmips/cpu.c
86
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/sbmips/cpu.c
89
struct cpu_softc * const cpu = device_private(self);
sys/arch/evbmips/sbmips/cpu.c
90
const char * const xname = device_xname(self);
sys/arch/evbmips/sbmips/rtc.c
125
xirtc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/sbmips/rtc.c
128
struct rtc_softc *sc = device_private(self);
sys/arch/evbmips/sbmips/rtc.c
133
sc->sc_dev = self;
sys/arch/evbmips/sbmips/rtc.c
140
sc->sc_ct.todr_dev = self;
sys/arch/evbmips/sbmips/rtc.c
236
strtc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/sbmips/rtc.c
239
struct rtc_softc *sc = device_private(self);
sys/arch/evbmips/sbmips/rtc.c
244
sc->sc_dev = self;
sys/arch/evbmips/sbmips/rtc.c
250
sc->sc_ct.todr_dev = self;
sys/arch/evbmips/sbmips/zbbus.c
80
zbbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbmips/sbmips/zbbus.c
93
config_found(self, &za, zbbus_print,
sys/arch/evbppc/ev64260/com_obio.c
128
com_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/ev64260/com_obio.c
130
struct com_obio_softc *osc = device_private(self);
sys/arch/evbppc/ev64260/com_obio.c
135
sc->sc_dev = self;
sys/arch/evbppc/ev64260/com_obio.c
151
aprint_normal_dev(self, "interrupting at %d\n", oa->oa_irq);
sys/arch/evbppc/ev64260/gt_mainbus.c
106
gt_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/ev64260/gt_mainbus.c
111
struct gt_softc *sc = device_private(self);
sys/arch/evbppc/ev64260/gt_mainbus.c
114
sc->sc_dev = self;
sys/arch/evbppc/ev64260/gt_mainbus.c
130
aprint_error_dev(self, "registers map failed\n");
sys/arch/evbppc/ev64260/gt_mainbus.c
141
aprint_error_dev(self, "Cannot map MPSC registers\n");
sys/arch/evbppc/ev64260/gt_mainbus.c
147
aprint_error_dev(self, "Cannot map SDMA registers\n");
sys/arch/evbppc/ev64260/mainbus.c
107
config_found(self, &mba, mainbus_cfprint, CFARGS_NONE);
sys/arch/evbppc/ev64260/mainbus.c
142
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/ev64260/mainbus.c
146
(void) cpu_attach_common(self, mba->mba_unit);
sys/arch/evbppc/ev64260/mainbus.c
74
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/ev64260/mainbus.c
89
config_found(self, &mba, mainbus_cfprint, CFARGS_NONE);
sys/arch/evbppc/ev64260/mainbus.c
98
config_found(self, &mba, mainbus_cfprint, CFARGS_NONE);
sys/arch/evbppc/explora/dev/com_elb.c
71
com_elb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/explora/dev/com_elb.c
73
struct com_elb_softc *msc = device_private(self);
sys/arch/evbppc/explora/dev/com_elb.c
78
sc->sc_dev = self;
sys/arch/evbppc/explora/dev/com_elb.c
91
device_xname(self));
sys/arch/evbppc/explora/dev/elb.c
129
elb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/explora/dev/elb.c
144
(void) config_found(self, &eaa, elb_print, CFARGS_NONE);
sys/arch/evbppc/explora/dev/fb_elb.c
176
fb_elb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/explora/dev/fb_elb.c
178
struct fb_elb_softc *sc = device_private(self);
sys/arch/evbppc/explora/dev/fb_elb.c
184
sc->sc_dev = self;
sys/arch/evbppc/explora/dev/fb_elb.c
217
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/evbppc/explora/dev/le_elb.c
102
sc->sc_dev = self;
sys/arch/evbppc/explora/dev/le_elb.c
106
booted_device = self;
sys/arch/evbppc/explora/dev/le_elb.c
118
aprint_error_dev(self, "couldn't allocate memory for card\n");
sys/arch/evbppc/explora/dev/le_elb.c
124
aprint_error_dev(self, "couldn't map memory for card\n");
sys/arch/evbppc/explora/dev/le_elb.c
133
aprint_error_dev(self, "couldn't create DMA map\n");
sys/arch/evbppc/explora/dev/le_elb.c
138
aprint_error_dev(self, "couldn't load DMA map\n");
sys/arch/evbppc/explora/dev/le_elb.c
158
aprint_normal("%s", device_xname(self));
sys/arch/evbppc/explora/dev/le_elb.c
172
sc, device_xname(self));
sys/arch/evbppc/explora/dev/le_elb.c
94
le_elb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/explora/dev/le_elb.c
96
struct le_elb_softc *msc = device_private(self);
sys/arch/evbppc/explora/dev/lpt_elb.c
66
lpt_elb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/explora/dev/lpt_elb.c
68
struct lpt_softc *sc = device_private(self);
sys/arch/evbppc/explora/dev/lpt_elb.c
71
sc->sc_dev = self;
sys/arch/evbppc/explora/dev/pckbc_elb.c
72
pckbc_elb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/explora/dev/pckbc_elb.c
74
struct pckbc_elb_softc *msc = device_private(self);
sys/arch/evbppc/explora/dev/pckbc_elb.c
79
sc->sc_dv = self;
sys/arch/evbppc/mpc85xx/autoconf.c
145
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/mpc85xx/autoconf.c
159
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/mpc85xx/ds1553rtc.c
101
struct mk48txx_softc * const sc = device_private(self);
sys/arch/evbppc/mpc85xx/ds1553rtc.c
109
sc->sc_dev = self;
sys/arch/evbppc/mpc85xx/ds1553rtc.c
99
ds1553rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/mpc85xx/machdep.c
1006
aprint_error_dev(self, "hatch failed (no spin-up entry for PIR %u)",
sys/arch/evbppc/mpc85xx/machdep.c
1038
e500_cpu_attach(device_t self, u_int instance)
sys/arch/evbppc/mpc85xx/machdep.c
1045
device_set_private(self, ci);
sys/arch/evbppc/mpc85xx/machdep.c
1048
ci->ci_dev = self;
sys/arch/evbppc/mpc85xx/machdep.c
1056
e500_cpu_spinup(self, ci);
sys/arch/evbppc/mpc85xx/machdep.c
1059
aprint_error_dev(self, "disabled (uniprocessor kernel)\n");
sys/arch/evbppc/mpc85xx/machdep.c
1064
device_set_private(self, ci);
sys/arch/evbppc/mpc85xx/machdep.c
1067
ci->ci_dev = self;
sys/arch/evbppc/mpc85xx/machdep.c
749
e500_tlb_print(device_t self, const char *name, uint32_t tlbcfg)
sys/arch/evbppc/mpc85xx/machdep.c
759
aprint_normal_dev(self, "%s:", name);
sys/arch/evbppc/mpc85xx/machdep.c
779
device_t self = ci->ci_dev;
sys/arch/evbppc/mpc85xx/machdep.c
795
aprint_normal_dev(self, "%s %s%s %u.%u with an e500%s %u.%u core, "
sys/arch/evbppc/mpc85xx/machdep.c
804
aprint_normal_dev(self,
sys/arch/evbppc/mpc85xx/machdep.c
814
aprint_normal_dev(self,
sys/arch/evbppc/mpc85xx/machdep.c
823
aprint_normal_dev(self,
sys/arch/evbppc/mpc85xx/machdep.c
830
e500_tlb_print(self, "tlb0", mfspr(SPR_TLB0CFG));
sys/arch/evbppc/mpc85xx/machdep.c
831
e500_tlb_print(self, "tlb1", mfspr(SPR_TLB1CFG));
sys/arch/evbppc/mpc85xx/machdep.c
836
e500_cpu_spinup(device_t self, struct cpu_info *ci)
sys/arch/evbppc/mpc85xx/machdep.c
842
aprint_error_dev(self, "hatch failed (no spin-up table)");
sys/arch/evbppc/mpc85xx/machdep.c
855
aprint_error_dev(self,
sys/arch/evbppc/mpc85xx/machdep.c
876
h->hatch_self = self;
sys/arch/evbppc/mpc85xx/machdep.c
937
aprint_error_dev(self,
sys/arch/evbppc/mpc85xx/machdep.c
987
aprint_normal_dev(self,
sys/arch/evbppc/mpc85xx/machdep.c
999
aprint_error_dev(self,
sys/arch/evbppc/mpc85xx/wdc_obio.c
126
wdc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/mpc85xx/wdc_obio.c
128
struct wdc_obio_softc *sc = device_private(self);
sys/arch/evbppc/mpc85xx/wdc_obio.c
136
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/evbppc/nintendo/cpu.c
106
cpu_spinup(self, ci);
sys/arch/evbppc/nintendo/cpu.c
94
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/cpu.c
96
u_int cpu_num = device_unit(self);
sys/arch/evbppc/nintendo/cpu.c
99
ci = cpu_attach_common(self, cpu_num);
sys/arch/evbppc/nintendo/dev/ahb.c
109
ahb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/ahb.c
131
config_search(self, NULL,
sys/arch/evbppc/nintendo/dev/ahcisata_ahb.c
113
device_xname(self));
sys/arch/evbppc/nintendo/dev/ahcisata_ahb.c
88
ahcisata_ahb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/ahcisata_ahb.c
91
struct ahci_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/ahcisata_ahb.c
93
sc->sc_atac.atac_dev = self;
sys/arch/evbppc/nintendo/dev/avenc.c
238
avenc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/avenc.c
244
KASSERT(device_unit(self) == 0);
sys/arch/evbppc/nintendo/dev/bwai.c
271
bwai_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/bwai.c
273
struct bwai_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/bwai.c
276
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/bwai.c
289
sc->sc_dai.dai_dev = self;
sys/arch/evbppc/nintendo/dev/bwdsp.c
370
bwdsp_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/bwdsp.c
372
struct bwdsp_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/bwdsp.c
378
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/bwdsp.c
407
config_defer(self, bwdsp_late_attach);
sys/arch/evbppc/nintendo/dev/di.c
155
di_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/di.c
158
struct di_softc *sc = device_private(self);
sys/arch/evbppc/nintendo/dev/di.c
163
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/di.c
185
aprint_error_dev(self, "bus_dmamem_alloc failed: %d\n", error);
sys/arch/evbppc/nintendo/dev/di.c
191
aprint_error_dev(self, "bus_dmamem_map failed: %d\n", error);
sys/arch/evbppc/nintendo/dev/di.c
197
aprint_error_dev(self, "bus_dmamap_create failed: %d\n", error);
sys/arch/evbppc/nintendo/dev/di.c
203
aprint_error_dev(self, "bus_dmamap_load failed: %d\n", error);
sys/arch/evbppc/nintendo/dev/di.c
211
adapt->adapt_dev = self;
sys/arch/evbppc/nintendo/dev/di.c
223
config_found(self, chan, scsiprint, CFARGS(.iattr = "scsi"));
sys/arch/evbppc/nintendo/dev/di.c
226
device_xname(self));
sys/arch/evbppc/nintendo/dev/di.c
231
pmf_device_register1(self, NULL, NULL, di_shutdown);
sys/arch/evbppc/nintendo/dev/ehci_ahb.c
104
device_xname(self));
sys/arch/evbppc/nintendo/dev/ehci_ahb.c
106
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint,
sys/arch/evbppc/nintendo/dev/ehci_ahb.c
68
ehci_ahb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/ehci_ahb.c
71
struct ehci_softc *sc = device_private(self);
sys/arch/evbppc/nintendo/dev/ehci_ahb.c
74
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/ehci_ahb.c
90
ahb_claim_device(self, IOPEHCEN);
sys/arch/evbppc/nintendo/dev/ehci_ahb.c
99
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/arch/evbppc/nintendo/dev/exi.c
100
exi_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/exi.c
103
struct exi_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/exi.c
107
KASSERT(device_unit(self) == 0);
sys/arch/evbppc/nintendo/dev/exi.c
113
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/exi.c
117
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/evbppc/nintendo/dev/exi.c
127
aprint_error_dev(self, "couldn't create dmamap: %d\n",
sys/arch/evbppc/nintendo/dev/exi.c
133
exi_rescan(self, NULL, NULL);
sys/arch/evbppc/nintendo/dev/exi.c
137
exi_rescan(device_t self, const char *ifattr, const int *locs)
sys/arch/evbppc/nintendo/dev/exi.c
139
struct exi_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/exi.c
170
ch->ch_child[dev] = config_found(self, &eaa, exi_print,
sys/arch/evbppc/nintendo/dev/gecko.c
220
usbgecko_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/gecko.c
222
struct usbgecko_softc *sc = device_private(self);
sys/arch/evbppc/nintendo/dev/gecko.c
228
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/hwaes.c
121
hwaes_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/hwaes.c
124
struct hwaes_softc *sc = device_private(self);
sys/arch/evbppc/nintendo/dev/hwaes.c
140
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/hwaes.c
146
aprint_error_dev(self, "couldn't map registers (%d)\n", error);
sys/arch/evbppc/nintendo/dev/hwaes.c
150
ahb_claim_device(self, IOPAESEN);
sys/arch/evbppc/nintendo/dev/hwgpio.c
192
hwgpio_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/hwgpio.c
194
struct hwgpio_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/hwgpio.c
250
config_found(self, &gba, NULL, CFARGS_NONE);
sys/arch/evbppc/nintendo/dev/ohci_ahb.c
100
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/arch/evbppc/nintendo/dev/ohci_ahb.c
105
device_xname(self));
sys/arch/evbppc/nintendo/dev/ohci_ahb.c
107
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint,
sys/arch/evbppc/nintendo/dev/ohci_ahb.c
69
ohci_ahb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/ohci_ahb.c
72
struct ohci_softc *sc = device_private(self);
sys/arch/evbppc/nintendo/dev/ohci_ahb.c
75
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/ohci_ahb.c
90
ahb_claim_device(self,
sys/arch/evbppc/nintendo/dev/ohci_ahb.c
91
device_unit(self) == 0 ? IOPOH0EN : IOPOH1EN);
sys/arch/evbppc/nintendo/dev/resetbtn.c
65
resetbtn_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/resetbtn.c
68
struct sysmon_pswitch *smpsw = device_private(self);
sys/arch/evbppc/nintendo/dev/resetbtn.c
71
KASSERT(device_unit(self) == 0);
sys/arch/evbppc/nintendo/dev/resetbtn.c
80
smpsw->smpsw_name = device_xname(self);
sys/arch/evbppc/nintendo/dev/resetbtn.c
84
aprint_error_dev(self,
sys/arch/evbppc/nintendo/dev/resetbtn.c
90
device_xname(self));
sys/arch/evbppc/nintendo/dev/rtcsram.c
107
rtcsram_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/rtcsram.c
109
struct rtcsram_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/rtcsram.c
115
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/rtcsram.c
120
hexdump(aprint_debug, device_xname(self), &sc->sc_sram,
sys/arch/evbppc/nintendo/dev/rtcsram.c
123
sc->sc_todr.todr_dev = self;
sys/arch/evbppc/nintendo/dev/sdhc_ahb.c
101
&sc->sc_base, device_xname(self));
sys/arch/evbppc/nintendo/dev/sdhc_ahb.c
105
aprint_error_dev(self,
sys/arch/evbppc/nintendo/dev/sdhc_ahb.c
69
sdhc_ahb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/sdhc_ahb.c
72
struct sdhc_ahb_softc *sc = device_private(self);
sys/arch/evbppc/nintendo/dev/sdhc_ahb.c
77
sc->sc_base.sc_dev = self;
sys/arch/evbppc/nintendo/dev/sdhc_ahb.c
97
ahb_claim_device(self,
sys/arch/evbppc/nintendo/dev/sdhc_ahb.c
98
device_unit(self) == 0 ? IOPSD0EN : IOPSD1EN);
sys/arch/evbppc/nintendo/dev/si.c
160
si_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/si.c
163
struct si_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/si.c
167
KASSERT(device_unit(self) == 0);
sys/arch/evbppc/nintendo/dev/si.c
172
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/si.c
176
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/evbppc/nintendo/dev/si.c
210
device_xname(self));
sys/arch/evbppc/nintendo/dev/si.c
213
si_rescan(self, NULL, NULL);
sys/arch/evbppc/nintendo/dev/si.c
217
si_rescan(device_t self, const char *ifattr, const int *locs)
sys/arch/evbppc/nintendo/dev/si.c
219
struct si_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/si.c
230
ch->ch_dev = config_found(self, &saa, si_print,
sys/arch/evbppc/nintendo/dev/uhid_si.c
62
uhid_si_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/uhid_si.c
64
struct uhid_softc * const sc = device_private(self);
sys/arch/evbppc/nintendo/dev/uhid_si.c
67
sc->sc_dev = self;
sys/arch/evbppc/nintendo/dev/wiifb.c
206
wiifb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/wiifb.c
208
struct wiifb_softc *sc = device_private(self);
sys/arch/evbppc/nintendo/dev/wiifb.c
209
prop_dictionary_t dict = device_properties(self);
sys/arch/evbppc/nintendo/dev/wiifb.c
213
sc->sc_gen.sc_dev = self;
sys/arch/evbppc/nintendo/dev/wiiufb.c
166
wiiufb_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/dev/wiiufb.c
168
struct wiiufb_softc *sc = device_private(self);
sys/arch/evbppc/nintendo/dev/wiiufb.c
169
prop_dictionary_t dict = device_properties(self);
sys/arch/evbppc/nintendo/dev/wiiufb.c
174
sc->sc_gen.sc_dev = self;
sys/arch/evbppc/nintendo/dev/wiiufb.c
207
pmf_device_register1(self, NULL, NULL, wiiufb_shutdown);
sys/arch/evbppc/nintendo/dev/wiiufb.c
224
wiiufb_shutdown(device_t self, int flags)
sys/arch/evbppc/nintendo/dev/wiiufb.c
226
genfb_enable_polling(self);
sys/arch/evbppc/nintendo/mainbus.c
104
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/nintendo/mainbus.c
114
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/nintendo/mainbus.c
119
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/nintendo/mainbus.c
124
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/nintendo/mainbus.c
129
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/nintendo/mainbus.c
135
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/nintendo/mainbus.c
80
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/nintendo/mainbus.c
98
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/obs405/dev/obsled.c
79
obsled_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/obs405/dev/obsled.c
81
struct obsled_softc *sc = device_private(self);
sys/arch/evbppc/obs405/dev/obsled.c
93
sc->sc_dev = self;
sys/arch/evbppc/pmppc/dev/cpc_mainbus.c
58
cpc_attach(device_t self, pci_chipset_tag_t pc, bus_space_tag_t mem,
sys/arch/evbppc/pmppc/dev/cpc_mainbus.c
77
cpc_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/pmppc/dev/cpc_mainbus.c
89
cpc_attach(self, genppc_pct, &pmppc_mem_tag, &pmppc_pci_io_tag,
sys/arch/evbppc/pmppc/dev/cpc_mainbus.c
94
aprint_error_dev(self, "not Monarch, pci not attached\n");
sys/arch/evbppc/pmppc/dev/ds17485.c
190
rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/pmppc/dev/ds17485.c
192
struct mc146818_softc *sc = device_private(self);
sys/arch/evbppc/pmppc/dev/ds17485.c
195
sc->sc_dev = self;
sys/arch/evbppc/pmppc/dev/flash.c
66
flash_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/pmppc/dev/flash.c
69
struct flash_softc *sc = device_private(self);
sys/arch/evbppc/pmppc/dev/flash.c
82
aprint_error_dev(self, "can't map i/o space\n");
sys/arch/evbppc/pmppc/dev/flash.c
87
aprint_error_dev(self, "driver not implemented\n");
sys/arch/evbppc/pmppc/dev/if_cs_mainbus.c
238
cs_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/pmppc/dev/if_cs_mainbus.c
240
struct cs_softc *sc = device_private(self);
sys/arch/evbppc/pmppc/dev/if_cs_mainbus.c
246
sc->sc_dev = self;
sys/arch/evbppc/pmppc/dev/if_cs_mainbus.c
253
printf("%s: failed to map io\n", device_xname(self));
sys/arch/evbppc/pmppc/dev/if_cs_mainbus.c
262
device_xname(self));
sys/arch/evbppc/pmppc/dev/if_cs_mainbus.c
286
printf("%s: unable to attach\n", device_xname(self));
sys/arch/evbppc/pmppc/mainbus.c
100
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/pmppc/mainbus.c
105
aprint_normal_dev(self, "%sPCI bus Monarch\n",
sys/arch/evbppc/pmppc/mainbus.c
107
aprint_normal_dev(self, "boot from %s, %sECC, %s L2 cache\n",
sys/arch/evbppc/pmppc/mainbus.c
118
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/pmppc/mainbus.c
124
config_found(self, &maa, mainbus_print,
sys/arch/evbppc/pmppc/mainbus.c
132
config_found(self, &maa, mainbus_print,
sys/arch/evbppc/pmppc/mainbus.c
142
config_found(self, &maa, mainbus_print,
sys/arch/evbppc/pmppc/mainbus.c
149
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbppc/pmppc/mainbus.c
175
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/pmppc/mainbus.c
177
(void) cpu_attach_common(self, 0);
sys/arch/evbppc/virtex/design_gsrd1.c
323
virtex_autoconf(device_t self, struct plb_attach_args *paa)
sys/arch/evbppc/virtex/design_gsrd1.c
351
config_found(self, &vaa, xcvbus_print,
sys/arch/evbppc/virtex/design_gsrd2.c
381
virtex_autoconf(device_t self, struct plb_attach_args *paa)
sys/arch/evbppc/virtex/design_gsrd2.c
407
config_found(self, &vaa, xcvbus_print,
sys/arch/evbppc/virtex/dev/if_temac.c
322
temac_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/virtex/dev/if_temac.c
327
struct temac_softc *sc = device_private(self);
sys/arch/evbppc/virtex/dev/if_temac.c
333
const char * const xname = device_xname(self);
sys/arch/evbppc/virtex/dev/if_temac.c
340
sc->sc_dev = self;
sys/arch/evbppc/virtex/dev/if_temac.c
354
aprint_error_dev(self, "could not map registers\n");
sys/arch/evbppc/virtex/dev/if_temac.c
360
aprint_error_dev(self, "could not map Rx control registers\n");
sys/arch/evbppc/virtex/dev/if_temac.c
365
aprint_error_dev(self, "could not map Rx status register\n");
sys/arch/evbppc/virtex/dev/if_temac.c
371
aprint_error_dev(self, "could not map Tx control registers\n");
sys/arch/evbppc/virtex/dev/if_temac.c
376
aprint_error_dev(self, "could not map Tx status register\n");
sys/arch/evbppc/virtex/dev/if_temac.c
385
aprint_error_dev(self, "could not allocate control data\n");
sys/arch/evbppc/virtex/dev/if_temac.c
392
aprint_error_dev(self, "could not map control data\n");
sys/arch/evbppc/virtex/dev/if_temac.c
399
aprint_error_dev(self,
sys/arch/evbppc/virtex/dev/if_temac.c
406
aprint_error_dev(self, "could not load control data DMA map\n");
sys/arch/evbppc/virtex/dev/if_temac.c
437
aprint_error_dev(self,
sys/arch/evbppc/virtex/dev/if_temac.c
450
aprint_error_dev(self,
sys/arch/evbppc/virtex/dev/if_temac.c
465
aprint_error_dev(self, "could not establish Rx interrupt\n");
sys/arch/evbppc/virtex/dev/if_temac.c
472
aprint_error_dev(self, "could not establish Tx interrupt\n");
sys/arch/evbppc/virtex/dev/if_temac.c
546
aprint_error_dev(self,
sys/arch/evbppc/virtex/dev/if_temac.c
572
aprint_error_dev(self, "error = %d\n", error);
sys/arch/evbppc/virtex/dev/if_temac.c
820
temac_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/evbppc/virtex/dev/if_temac.c
835
temac_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/evbppc/virtex/dev/pstwo.c
100
pstwo_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/virtex/dev/pstwo.c
103
struct pstwo_softc *sc = device_private(self);
sys/arch/evbppc/virtex/dev/pstwo.c
110
aprint_error_dev(self, "could not establish interrupt\n");
sys/arch/evbppc/virtex/dev/pstwo.c
114
sc->sc_dev = self;
sys/arch/evbppc/virtex/dev/pstwo.c
119
aprint_error_dev(self, "could not map registers\n");
sys/arch/evbppc/virtex/dev/pstwo.c
129
if (pckbport_attach_slot(self, sc->sc_pt, i) != NULL) {
sys/arch/evbppc/virtex/dev/tft.c
126
sc->sc_sdhook = shutdownhook_establish(tft_shutdown, self);
sys/arch/evbppc/virtex/dev/tft.c
129
"hook\n", device_xname(self));
sys/arch/evbppc/virtex/dev/tft.c
137
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/evbppc/virtex/dev/tft.c
72
tft_attach(device_t self, struct wsdisplay_accessops *accessops)
sys/arch/evbppc/virtex/dev/tft.c
75
struct tft_softc *sc = device_private(self);
sys/arch/evbppc/virtex/dev/tft.c
84
printf("%s: %ux%ux%ub\n", device_xname(self), sc->sc_width,
sys/arch/evbppc/virtex/dev/tft.c
87
device_xname(self), sc->sc_image, sc->sc_size, sc->sc_stride);
sys/arch/evbppc/virtex/dev/tft.c
97
vcons_init(&sc->sc_vc_data, self, sc->sc_ws_descr, accessops);
sys/arch/evbppc/virtex/dev/tft_ll.c
107
sc->sc_dev = self;
sys/arch/evbppc/virtex/dev/tft_ll.c
113
aprint_error_dev(self, "could not map device registers\n");
sys/arch/evbppc/virtex/dev/tft_ll.c
118
aprint_error_dev(self, "could not map dmac registers\n");
sys/arch/evbppc/virtex/dev/tft_ll.c
129
aprint_error_dev(self, "could not allocate framebuffer\n");
sys/arch/evbppc/virtex/dev/tft_ll.c
135
aprint_error_dev(self, "could not map framebuffer\n");
sys/arch/evbppc/virtex/dev/tft_ll.c
142
aprint_error_dev(self, "could not create framebuffer DMA map\n");
sys/arch/evbppc/virtex/dev/tft_ll.c
147
aprint_error_dev(self, "could not load framebuffer DMA map\n");
sys/arch/evbppc/virtex/dev/tft_ll.c
167
aprint_error_dev(self,
sys/arch/evbppc/virtex/dev/tft_ll.c
170
tft_attach(self, &ll_tft_accessops);
sys/arch/evbppc/virtex/dev/tft_ll.c
172
aprint_normal_dev(self, "video memory pa 0x%08x\n",
sys/arch/evbppc/virtex/dev/tft_ll.c
195
aprint_error_dev(self, "error %d\n", error);
sys/arch/evbppc/virtex/dev/tft_ll.c
94
ll_tft_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/virtex/dev/tft_ll.c
98
struct ll_tft_softc *lsc = device_private(self);
sys/arch/evbppc/virtex/dev/tft_plb.c
100
aprint_error_dev(self, "could not map device registers\n");
sys/arch/evbppc/virtex/dev/tft_plb.c
105
tft_mode(self);
sys/arch/evbppc/virtex/dev/tft_plb.c
110
aprint_error_dev(self, "could not allocate framebuffer\n");
sys/arch/evbppc/virtex/dev/tft_plb.c
115
aprint_error_dev(self, "could not map framebuffer\n");
sys/arch/evbppc/virtex/dev/tft_plb.c
120
aprint_error_dev(self, "could not create framebuffer DMA map\n");
sys/arch/evbppc/virtex/dev/tft_plb.c
125
aprint_error_dev(self, "could not load framebuffer DMA map\n");
sys/arch/evbppc/virtex/dev/tft_plb.c
135
tft_attach(self, &plb_tft_accessops);
sys/arch/evbppc/virtex/dev/tft_plb.c
137
aprint_normal_dev(self, "video memory pa 0x%08x\n",
sys/arch/evbppc/virtex/dev/tft_plb.c
168
aprint_error_dev(self, "error %d\n", error);
sys/arch/evbppc/virtex/dev/tft_plb.c
85
plb_tft_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/virtex/dev/tft_plb.c
88
struct plb_tft_softc *psc = device_private(self);
sys/arch/evbppc/virtex/dev/tft_plb.c
94
sc->sc_dev = self;
sys/arch/evbppc/virtex/dev/xcvbus.c
63
xcvbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/virtex/dev/xcvbus.c
69
virtex_autoconf(self, paa);
sys/arch/evbppc/virtex/dev/xlcom.c
169
xlcom_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/virtex/dev/xlcom.c
172
struct xlcom_softc *sc = device_private(self);
sys/arch/evbppc/virtex/dev/xlcom.c
178
sc->sc_dev = self;
sys/arch/evbppc/virtex/dev/xlcom.c
183
aprint_error_dev(self, "already in use by kgdb\n");
sys/arch/evbppc/virtex/dev/xlcom.c
190
aprint_error_dev(self, "could not establish interrupt\n");
sys/arch/evbppc/virtex/dev/xlcom.c
194
dev = makedev(cdevsw_lookup_major(&xlcom_cdevsw), device_unit(self));
sys/arch/evbppc/virtex/dev/xlcom.c
203
aprint_normal_dev(self, "console\n");
sys/arch/evbppc/virtex/dev/xlcom.c
209
aprint_error_dev(self, "could not map registers\n");
sys/arch/evbppc/virtex/dev/xlcom.c
227
aprint_error_dev(self,
sys/arch/evbppc/walnut/dev/ds1743.c
134
dsrtcattach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/walnut/dev/ds1743.c
136
struct dsrtc_softc *sc = device_private(self);
sys/arch/evbppc/walnut/dev/ds1743.c
141
sc->sc_dev = self;
sys/arch/evbppc/walnut/dev/ds1743.c
155
sc->sc_todr.todr_dev = self;
sys/arch/evbppc/walnut/dev/pbus.c
132
pbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/walnut/dev/pbus.c
160
config_found(self, &pba, pbus_print,
sys/arch/evbppc/walnut/dev/pckbc_pbus.c
89
pckbc_pbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbppc/walnut/dev/pckbc_pbus.c
91
struct pckbc_pbus_softc *msc = device_private(self);
sys/arch/evbppc/walnut/dev/pckbc_pbus.c
99
sc->sc_dv = self;
sys/arch/evbsh3/ap_ms104_sh4/if_sm_mainbus.c
101
sc->sc_dev = self;
sys/arch/evbsh3/ap_ms104_sh4/if_sm_mainbus.c
75
sm_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbsh3/ap_ms104_sh4/if_sm_mainbus.c
77
struct sm_mainbus_softc *smsc = device_private(self);
sys/arch/evbsh3/ap_ms104_sh4/if_sm_mainbus.c
87
aprint_error_dev(self, "can't map i/o space");
sys/arch/evbsh3/ap_ms104_sh4/if_sm_mainbus.c
95
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/arch/evbsh3/ap_ms104_sh4/rs5c316_mainbus.c
85
rs5c316_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbsh3/ap_ms104_sh4/rs5c316_mainbus.c
87
struct rs5c313_softc *sc = device_private(self);
sys/arch/evbsh3/ap_ms104_sh4/rs5c316_mainbus.c
90
sc->sc_dev = self;
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
227
shpcmcia_attach(device_t parent, device_t self, void *aux)
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
229
struct shpcmcia_softc *sc = device_private(self);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
234
sc->sc_dev = self;
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
283
aprint_error_dev(self, "couldn't establish detect interrupt\n");
sys/arch/evbsh3/evbsh3/mainbus.c
55
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbsh3/evbsh3/mainbus.c
65
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/evbsh3/evbsh3/mainbus.c
68
config_search(self, NULL,
sys/arch/evbsh3/nextvod/stasc.c
157
stasc_attach(device_t parent, device_t self, void *aux)
sys/arch/evbsh3/nextvod/stasc.c
161
sc = device_private(self);
sys/arch/evbsh3/nextvod/stasc.c
162
sc->sc_dev = self;
sys/arch/evbsh3/t_sh7706lan/if_ne_mainbus.c
109
ne_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/evbsh3/t_sh7706lan/if_ne_mainbus.c
111
struct ne_mainbus_softc *msc = device_private(self);
sys/arch/evbsh3/t_sh7706lan/if_ne_mainbus.c
121
dsc->sc_dev = self;
sys/arch/evbsh3/t_sh7706lan/if_ne_mainbus.c
128
aprint_error_dev(self, "can't map i/o space\n");
sys/arch/evbsh3/t_sh7706lan/if_ne_mainbus.c
134
aprint_error_dev(self, "can't subregion i/o space\n");
sys/arch/evbsh3/t_sh7706lan/if_ne_mainbus.c
164
aprint_error_dev(self, "where did the card go?!\n");
sys/arch/evbsh3/t_sh7706lan/if_ne_mainbus.c
169
aprint_normal_dev(self, "%s Ethernet\n", typestr);
sys/arch/evbsh3/t_sh7706lan/if_ne_mainbus.c
187
aprint_error_dev(self,
sys/arch/evbsh3/t_sh7706lan/scimci.c
198
scimci_attach(device_t parent, device_t self, void *aux)
sys/arch/evbsh3/t_sh7706lan/scimci.c
200
struct scimci_softc *sc = device_private(self);
sys/arch/evbsh3/t_sh7706lan/scimci.c
203
sc->sc_dev = self;
sys/arch/evbsh3/t_sh7706lan/ssumci.c
217
ssumci_attach(device_t parent, device_t self, void *aux)
sys/arch/evbsh3/t_sh7706lan/ssumci.c
219
struct ssumci_softc *sc = device_private(self);
sys/arch/evbsh3/t_sh7706lan/ssumci.c
222
sc->sc_dev = self;
sys/arch/ews4800mips/dev/ewskbd.c
198
ewskbd_zsc_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/dev/ewskbd.c
207
sc = device_private(self);
sys/arch/ews4800mips/dev/ewskbd.c
209
sc->sc_dev = self;
sys/arch/ews4800mips/dev/ewskbd.c
253
sc->sc_dc->wskbddev = config_found(self, &wskaa, wskbddevprint,
sys/arch/ews4800mips/dev/ewsms.c
151
ewsms_zsc_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/dev/ewsms.c
153
struct ewsms_softc *sc = device_private(self);
sys/arch/ews4800mips/dev/ewsms.c
166
sc->sc_dev = self;
sys/arch/ews4800mips/dev/ewsms.c
186
sc->sc_wsmousedev = config_found(self, &wsmaa, wsmousedevprint,
sys/arch/ews4800mips/ews4800mips/cpu.c
63
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/ews4800mips/cpu.c
68
ci->ci_dev = self;
sys/arch/ews4800mips/ews4800mips/cpu.c
69
device_set_private(self, ci);
sys/arch/ews4800mips/ews4800mips/cpu.c
74
cpu_identify(self);
sys/arch/ews4800mips/ews4800mips/mainbus.c
59
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/ews4800mips/mainbus.c
69
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/ews4800mips/ews4800mips/mainbus.c
75
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/ews4800mips/ews4800mips/sector.c
107
sector_write_n(void *self, uint8_t *buf, daddr_t sector, int count)
sys/arch/ews4800mips/ews4800mips/sector.c
112
if (!sector_write(self, buf, sector))
sys/arch/ews4800mips/ews4800mips/sector.c
122
sector_write(void *self, uint8_t *buf, daddr_t sector)
sys/arch/ews4800mips/ews4800mips/sector.c
124
struct sector_rw *rw = self;
sys/arch/ews4800mips/ews4800mips/sector.c
62
sector_fini(void *self)
sys/arch/ews4800mips/ews4800mips/sector.c
64
struct sector_rw *rw = self;
sys/arch/ews4800mips/ews4800mips/sector.c
71
sector_read_n(void *self, uint8_t *buf, daddr_t sector, int count)
sys/arch/ews4800mips/ews4800mips/sector.c
76
if (!sector_read(self, buf, sector))
sys/arch/ews4800mips/ews4800mips/sector.c
86
sector_read(void *self, uint8_t *buf, daddr_t sector)
sys/arch/ews4800mips/ews4800mips/sector.c
88
struct sector_rw *rw = self;
sys/arch/ews4800mips/sbd/fb_sbdio.c
127
fb_sbdio_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/sbd/fb_sbdio.c
129
struct fb_softc *sc = device_private(self);
sys/arch/ews4800mips/sbd/fb_sbdio.c
137
sc->sc_dev = self;
sys/arch/ews4800mips/sbd/fb_sbdio.c
166
config_found(self, &wa, wsdisplaydevprint, CFARGS_NONE);
sys/arch/ews4800mips/sbd/if_iee_sbdio.c
82
iee_sbdio_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/sbd/if_iee_sbdio.c
84
struct iee_sbdio_softc *sc_ssc = device_private(self);
sys/arch/ews4800mips/sbd/if_iee_sbdio.c
90
sc->sc_dev = self;
sys/arch/ews4800mips/sbd/if_le_sbdio.c
101
sc->sc_dev = self;
sys/arch/ews4800mips/sbd/if_le_sbdio.c
93
le_sbdio_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/sbd/if_le_sbdio.c
95
struct le_sbdio_softc *lesc = device_private(self);
sys/arch/ews4800mips/sbd/kbms_sbdio.c
137
kbms_sbdio_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/sbd/kbms_sbdio.c
139
struct kbms_softc *sc = device_private(self);
sys/arch/ews4800mips/sbd/kbms_sbdio.c
146
sc->sc_dev = self;
sys/arch/ews4800mips/sbd/kbms_sbdio.c
163
ka.accesscookie = self;
sys/arch/ews4800mips/sbd/kbms_sbdio.c
170
sc->sc_wskbd = config_found(self, &ka, wskbddevprint, CFARGS_NONE);
sys/arch/ews4800mips/sbd/kbms_sbdio.c
173
ma.accesscookie = self;
sys/arch/ews4800mips/sbd/kbms_sbdio.c
182
sc->sc_wsmouse = config_found(self, &ma, wsmousedevprint, CFARGS_NONE);
sys/arch/ews4800mips/sbd/kbms_sbdio.c
184
intr_establish(sa->sa_irq, kbms_sbdio_intr, self);
sys/arch/ews4800mips/sbd/mkclock_sbdio.c
73
mkclock_sbdio_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/sbd/mkclock_sbdio.c
75
struct mk48txx_softc *sc = device_private(self);
sys/arch/ews4800mips/sbd/mkclock_sbdio.c
79
sc->sc_dev = self;
sys/arch/ews4800mips/sbd/osiop_sbdio.c
60
osiop_sbdio_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/sbd/osiop_sbdio.c
62
struct osiop_softc *sc = device_private(self);
sys/arch/ews4800mips/sbd/osiop_sbdio.c
66
sc->sc_dev = self;
sys/arch/ews4800mips/sbd/sbdio.c
108
config_found(self, &sa, sbdio_print, CFARGS_NONE);
sys/arch/ews4800mips/sbd/sbdio.c
83
sbdio_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/sbd/sbdio.c
85
struct sbdio_softc *sc = device_private(self);
sys/arch/ews4800mips/sbd/sbdio.c
91
sc->sc_dev = self;
sys/arch/ews4800mips/sbd/zs_sbdio.c
108
zs_sbdio_attach(device_t parent, device_t self, void *aux)
sys/arch/ews4800mips/sbd/zs_sbdio.c
110
struct zsc_softc *zsc = device_private(self);
sys/arch/ews4800mips/sbd/zs_sbdio.c
118
zsc->zsc_dev = self;
sys/arch/ews4800mips/sbd/zs_sbdio.c
178
if (!config_found(self, (void *)&zsc_args, zs_print,
sys/arch/ews4800mips/stand/common/disk.c
166
sector_fini(void *self)
sys/arch/ews4800mips/stand/common/disk.c
173
sector_read_n(void *self, uint8_t *buf, int sector, int count)
sys/arch/ews4800mips/stand/common/disk.c
182
sector_read(void *self, uint8_t *buf, int sector)
sys/arch/ews4800mips/stand/common/disk.c
189
sector_write_n(void *self, uint8_t *buf, int sector, int count)
sys/arch/ews4800mips/stand/common/disk.c
198
sector_write(void *self, uint8_t *buf, int sector)
sys/arch/hp300/dev/arcofi_dio.c
62
arcofi_dio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/arcofi_dio.c
64
struct arcofi_dio_softc *adsc = device_private(self);
sys/arch/hp300/dev/arcofi_dio.c
70
sc->sc_dev = self;
sys/arch/hp300/dev/com_dio.c
118
com_dio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/com_dio.c
120
struct com_dio_softc *dsc = device_private(self);
sys/arch/hp300/dev/com_dio.c
127
sc->sc_dev = self;
sys/arch/hp300/dev/com_frodo.c
121
com_frodo_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/com_frodo.c
123
struct com_frodo_softc *fsc = device_private(self);
sys/arch/hp300/dev/com_frodo.c
130
sc->sc_dev = self;
sys/arch/hp300/dev/ct.c
230
ctattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/ct.c
232
struct ct_softc *sc = device_private(self);
sys/arch/hp300/dev/ct.c
235
sc->sc_dev = self;
sys/arch/hp300/dev/dcm.c
358
dcmattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/dcm.c
360
struct dcm_softc *sc = device_private(self);
sys/arch/hp300/dev/dcm.c
363
int brd = device_unit(self);
sys/arch/hp300/dev/dcm.c
367
sc->sc_dev = self;
sys/arch/hp300/dev/dcm.c
399
aprint_error_dev(self, "self-test failed\n");
sys/arch/hp300/dev/dcm.c
404
sc->sc_softCAR = device_cfdata(self)->cf_flags & DCM_SOFTCAR;
sys/arch/hp300/dev/dcm.c
405
sc->sc_flags |= device_cfdata(self)->cf_flags & DCM_FLAGMASK;
sys/arch/hp300/dev/dcm.c
471
aprint_normal_dev(self, "port %d: ",
sys/arch/hp300/dev/dcm.c
475
aprint_normal_dev(self,
sys/arch/hp300/dev/dio.c
100
struct dio_softc *sc = device_private(self);
sys/arch/hp300/dev/dio.c
108
sc->sc_dev = self;
sys/arch/hp300/dev/dio.c
128
aprint_error_dev(self, "can't map scode %d\n", scode);
sys/arch/hp300/dev/dio.c
160
config_found(self, &da, dioprint,
sys/arch/hp300/dev/dio.c
98
dioattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/diofb.c
303
diofb_end_attach(device_t self, struct wsdisplay_accessops *accessops,
sys/arch/hp300/dev/diofb.c
328
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/hp300/dev/dma.c
179
dmaattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/dma.c
181
struct dma_softc *sc = device_private(self);
sys/arch/hp300/dev/dma.c
188
sc->sc_dev = self;
sys/arch/hp300/dev/dnkbd.c
284
dnkbd_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/dnkbd.c
286
struct dnkbd_softc *sc = device_private(self);
sys/arch/hp300/dev/dnkbd.c
291
sc->sc_dev = self;
sys/arch/hp300/dev/dvbox.c
183
dvbox_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/dvbox.c
185
struct dvbox_softc *sc = device_private(self);
sys/arch/hp300/dev/dvbox.c
189
sc->sc_dev = self;
sys/arch/hp300/dev/dvbox.c
200
diofb_end_attach(self, &dvbox_accessops, sc->sc_fb,
sys/arch/hp300/dev/dvbox.c
217
dvbox_dio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/dvbox.c
219
struct dvbox_softc *sc = device_private(self);
sys/arch/hp300/dev/dvbox.c
224
sc->sc_dev = self;
sys/arch/hp300/dev/dvbox.c
243
diofb_end_attach(self, &dvbox_accessops, sc->sc_fb,
sys/arch/hp300/dev/fhpib.c
163
fhpibattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/fhpib.c
165
struct fhpib_softc *sc = device_private(self);
sys/arch/hp300/dev/fhpib.c
170
sc->sc_dev = self;
sys/arch/hp300/dev/fhpib.c
189
(void)config_found(self, &ha, hpibdevprint, CFARGS_NONE);
sys/arch/hp300/dev/frodo.c
145
frodoattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/frodo.c
147
struct frodo_softc *sc = device_private(self);
sys/arch/hp300/dev/frodo.c
153
sc->sc_dev = self;
sys/arch/hp300/dev/frodo.c
210
config_found(self, &fa, frodoprint,
sys/arch/hp300/dev/gbox.c
188
gbox_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/gbox.c
190
struct gbox_softc *sc = device_private(self);
sys/arch/hp300/dev/gbox.c
194
sc->sc_dev = self;
sys/arch/hp300/dev/gbox.c
205
diofb_end_attach(self, &gbox_accessops, sc->sc_fb,
sys/arch/hp300/dev/gbox.c
226
gbox_dio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/gbox.c
228
struct gbox_softc *sc = device_private(self);
sys/arch/hp300/dev/gbox.c
233
sc->sc_dev = self;
sys/arch/hp300/dev/gbox.c
252
diofb_end_attach(self, &gbox_accessops, sc->sc_fb,
sys/arch/hp300/dev/gendiofb.c
106
gendiofb_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/gendiofb.c
108
struct gendiofb_softc *sc = device_private(self);
sys/arch/hp300/dev/gendiofb.c
114
sc->sc_dev = self;
sys/arch/hp300/dev/gendiofb.c
136
diofb_end_attach(self, &gendiofb_accessops, sc->sc_fb,
sys/arch/hp300/dev/hil_intio.c
106
config_interrupts(self, hil_attach_deferred);
sys/arch/hp300/dev/hil_intio.c
80
hil_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/hil_intio.c
82
struct hil_softc *sc = device_private(self);
sys/arch/hp300/dev/hil_intio.c
85
sc->sc_dev = self;
sys/arch/hp300/dev/hpib.c
132
hpibbusattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/hpib.c
134
struct hpibbus_softc *sc = device_private(self);
sys/arch/hp300/dev/hpib.c
137
sc->sc_dev = self;
sys/arch/hp300/dev/hpib.c
146
hpibreset(device_unit(self)); /* XXX shouldn't be here */
sys/arch/hp300/dev/hyper.c
169
hyper_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/hyper.c
171
struct hyper_softc *sc = device_private(self);
sys/arch/hp300/dev/hyper.c
176
sc->sc_dev = self;
sys/arch/hp300/dev/hyper.c
195
diofb_end_attach(self, &hyper_accessops, sc->sc_fb,
sys/arch/hp300/dev/if_le.c
173
leattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/if_le.c
175
struct le_softc *lesc = device_private(self);
sys/arch/hp300/dev/if_le.c
183
sc->sc_dev = self;
sys/arch/hp300/dev/intio.c
127
intioattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/intio.c
129
struct intio_softc *sc = device_private(self);
sys/arch/hp300/dev/intio.c
135
sc->sc_dev = self;
sys/arch/hp300/dev/intio.c
168
config_found(self, &ia, intioprint, CFARGS_NONE);
sys/arch/hp300/dev/mcclock_frodo.c
74
mcclock_frodo_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/mcclock_frodo.c
76
struct mc146818_softc *sc = device_private(self);
sys/arch/hp300/dev/mcclock_frodo.c
79
sc->sc_dev = self;
sys/arch/hp300/dev/mt.c
190
mtattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/mt.c
192
struct mt_softc *sc = device_private(self);
sys/arch/hp300/dev/mt.c
196
sc->sc_dev = self;
sys/arch/hp300/dev/nhpib.c
190
nhpib_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/nhpib.c
192
struct nhpib_softc *sc = device_private(self);
sys/arch/hp300/dev/nhpib.c
197
sc->sc_dev = self;
sys/arch/hp300/dev/nhpib.c
214
nhpib_dio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/nhpib.c
216
struct nhpib_softc *sc = device_private(self);
sys/arch/hp300/dev/nhpib.c
221
sc->sc_dev = self;
sys/arch/hp300/dev/nhpib.c
227
sc->sc_dev = self;
sys/arch/hp300/dev/ppi.c
177
ppiattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/ppi.c
179
struct ppi_softc *sc = device_private(self);
sys/arch/hp300/dev/ppi.c
182
sc->sc_dev = self;
sys/arch/hp300/dev/rbox.c
183
rbox_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/rbox.c
185
struct rbox_softc *sc = device_private(self);
sys/arch/hp300/dev/rbox.c
189
sc->sc_dev = self;
sys/arch/hp300/dev/rbox.c
200
diofb_end_attach(self, &rbox_accessops, sc->sc_fb,
sys/arch/hp300/dev/rbox.c
217
rbox_dio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/rbox.c
219
struct rbox_softc *sc = device_private(self);
sys/arch/hp300/dev/rbox.c
224
sc->sc_dev = self;
sys/arch/hp300/dev/rbox.c
243
diofb_end_attach(self, &rbox_accessops, sc->sc_fb,
sys/arch/hp300/dev/rd.c
498
rdattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/rd.c
500
struct rd_softc *sc = device_private(self);
sys/arch/hp300/dev/rd.c
505
sc->sc_dev = self;
sys/arch/hp300/dev/rtc.c
111
todr_handle->todr_dev = self;
sys/arch/hp300/dev/rtc.c
92
rtcattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/rtc.c
94
struct rtc_softc *sc = device_private(self);
sys/arch/hp300/dev/rtc.c
99
sc->sc_dev = self;
sys/arch/hp300/dev/sgc.c
103
sc = device_private(self);
sys/arch/hp300/dev/sgc.c
104
sc->sc_dev = self;
sys/arch/hp300/dev/sgc.c
114
aprint_error_dev(self, "can't map slot %d\n", slot);
sys/arch/hp300/dev/sgc.c
125
device_xname(self), slot));
sys/arch/hp300/dev/sgc.c
134
config_found(self, &saa, sgcprint, CFARGS_NONE);
sys/arch/hp300/dev/sgc.c
93
sgcattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/spc.c
103
spc_dio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/spc.c
105
struct spc_dio_softc *dsc = device_private(self);
sys/arch/hp300/dev/spc.c
112
sc->sc_dev = self;
sys/arch/hp300/dev/sti_dio.c
74
sti_dio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/sti_dio.c
76
struct sti_machdep_softc *sc = device_private(self);
sys/arch/hp300/dev/sti_dio.c
85
ssc->sc_dev = self;
sys/arch/hp300/dev/sti_sgc.c
68
sti_sgc_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/sti_sgc.c
70
struct sti_machdep_softc *sc = device_private(self);
sys/arch/hp300/dev/sti_sgc.c
79
ssc->sc_dev = self;
sys/arch/hp300/dev/topcat.c
199
topcat_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/topcat.c
201
struct topcat_softc *sc = device_private(self);
sys/arch/hp300/dev/topcat.c
205
sc->sc_dev = self;
sys/arch/hp300/dev/topcat.c
241
topcat_dio_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/topcat.c
243
struct topcat_softc *sc = device_private(self);
sys/arch/hp300/dev/topcat.c
248
sc->sc_dev = self;
sys/arch/hp300/dev/tvrx.c
102
tvrx_attach(device_t parent, device_t self, void *aux)
sys/arch/hp300/dev/tvrx.c
104
struct tvrx_softc *sc = device_private(self);
sys/arch/hp300/dev/tvrx.c
109
sc->sc_dev = self;
sys/arch/hp300/dev/tvrx.c
128
diofb_end_attach(self, &tvrx_accessops, sc->sc_fb,
sys/arch/hp300/hp300/autoconf.c
267
mainbusattach(device_t parent, device_t self, void *aux)
sys/arch/hp300/hp300/autoconf.c
273
config_search(self, NULL,
sys/arch/hpcarm/dev/epsonlcd.c
100
epsonlcd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/epsonlcd.c
102
struct epsonlcd_softc *sc = device_private(self);
sys/arch/hpcarm/dev/epsonlcd.c
110
sc->sc_dev = self;
sys/arch/hpcarm/dev/epsonlcd.c
118
aprint_error_dev(self, "can't map I/O space\n");
sys/arch/hpcarm/dev/epsonlcd.c
124
aprint_error_dev(self, "can't map Framebuffer\n");
sys/arch/hpcarm/dev/epsonlcd.c
133
aprint_normal_dev(self, "console\n");
sys/arch/hpcarm/dev/epsonlcd.c
146
config_found(self, &haa, hpcfbprint, CFARGS_NONE);
sys/arch/hpcarm/dev/epsonlcd.c
148
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcarm/dev/epsonlcd.c
149
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcarm/dev/ipaq_atmelgpio.c
125
config_search(self, NULL,
sys/arch/hpcarm/dev/ipaq_atmelgpio.c
82
atmelgpio_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/ipaq_atmelgpio.c
84
struct atmelgpio_softc *sc = device_private(self);
sys/arch/hpcarm/dev/ipaq_atmelgpio.c
90
aprint_normal_dev(self, "Atmel microcontroller GPIO\n");
sys/arch/hpcarm/dev/ipaq_atmelgpio.c
98
aprint_normal_dev(self, "unable to map of UART1 registers\n");
sys/arch/hpcarm/dev/ipaq_lcd.c
100
struct ipaqlcd_softc *sc = device_private(self);
sys/arch/hpcarm/dev/ipaq_lcd.c
104
sc->sc_dev = self;
sys/arch/hpcarm/dev/ipaq_lcd.c
112
aprint_normal_dev(self, "iPAQ internal LCD controller\n");
sys/arch/hpcarm/dev/ipaq_lcd.c
98
ipaqlcd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/ipaq_pcic.c
102
struct ipaqpcic_softc *sc = device_private(self);
sys/arch/hpcarm/dev/ipaq_pcic.c
107
sc->sc_pc.sc_dev = self;
sys/arch/hpcarm/dev/ipaq_pcic.c
98
ipaqpcic_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/ipaq_saip.c
101
device_xname(self));
sys/arch/hpcarm/dev/ipaq_saip.c
109
config_search(self, NULL,
sys/arch/hpcarm/dev/ipaq_saip.c
78
ipaq_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/ipaq_saip.c
80
struct ipaq_softc *sc = device_private(self);
sys/arch/hpcarm/dev/ipaq_saip.c
85
sc->sc_dev = self;
sys/arch/hpcarm/dev/ipaq_saip.c
93
device_xname(self));
sys/arch/hpcarm/dev/j720kbd.c
106
j720kbd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/j720kbd.c
108
struct j720kbd_softc *sc = device_private(self);
sys/arch/hpcarm/dev/j720kbd.c
113
sc->sc_dev = self;
sys/arch/hpcarm/dev/j720kbd.c
129
config_found(self, &haa, hpckbd_print, CFARGS_NONE);
sys/arch/hpcarm/dev/j720lcd.c
89
j720lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/j720lcd.c
91
struct j720lcd_softc *sc = device_private(self);
sys/arch/hpcarm/dev/j720lcd.c
94
sc->sc_dev = self;
sys/arch/hpcarm/dev/j720pcic.c
105
sc = device_private(self);
sys/arch/hpcarm/dev/j720pcic.c
106
sc->sc_pc.sc_dev = self;
sys/arch/hpcarm/dev/j720pcic.c
99
sacpcic_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/j720pwr.c
120
j720pwr_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/j720pwr.c
122
struct j720pwr_softc *sc = device_private(self);
sys/arch/hpcarm/dev/j720pwr.c
128
sc->sc_dev = self;
sys/arch/hpcarm/dev/j720pwr.c
159
config_found(self, NULL, NULL, CFARGS_NONE);
sys/arch/hpcarm/dev/j720ssp.c
100
config_search(self, NULL,
sys/arch/hpcarm/dev/j720ssp.c
81
j720ssp_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/j720ssp.c
83
struct j720ssp_softc *sc = device_private(self);
sys/arch/hpcarm/dev/j720ssp.c
87
sc->sc_dev = self;
sys/arch/hpcarm/dev/j720tp.c
213
j720tp_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/j720tp.c
215
struct j720tp_softc *sc = device_private(self);
sys/arch/hpcarm/dev/j720tp.c
221
sc->sc_dev = self;
sys/arch/hpcarm/dev/j720tp.c
233
sc->sc_wsmousedev = config_found(self, &wsma, wsmousedevprint,
sys/arch/hpcarm/dev/j720tp.c
253
sc->sc_wskbddev = config_found(self, &wska, wskbddevprint,
sys/arch/hpcarm/dev/j720tp.c
261
j720tp_wsmouse_enable(void *self)
sys/arch/hpcarm/dev/j720tp.c
263
struct j720tp_softc *sc = self;
sys/arch/hpcarm/dev/j720tp.c
277
j720tp_wsmouse_ioctl(void *self, u_long cmd, void *data, int flag,
sys/arch/hpcarm/dev/j720tp.c
280
struct j720tp_softc *sc = self;
sys/arch/hpcarm/dev/j720tp.c
286
j720tp_wsmouse_disable(void *self)
sys/arch/hpcarm/dev/j720tp.c
288
struct j720tp_softc *sc = self;
sys/arch/hpcarm/dev/j720tp.c
302
j720tp_wskbd_enable(void *self, int on)
sys/arch/hpcarm/dev/j720tp.c
304
struct j720tp_softc *sc = self;
sys/arch/hpcarm/dev/j720tp.c
315
j720tp_wskbd_set_leds(void *self, int leds)
sys/arch/hpcarm/dev/j720tp.c
321
j720tp_wskbd_ioctl(void *self, u_long cmd, void *data, int flag,
sys/arch/hpcarm/dev/j720tp.c
325
struct j720tp_softc *sc = self;
sys/arch/hpcarm/dev/nbp_slhci.c
110
aprint_error_dev(self, "slhci_attach failed\n");
sys/arch/hpcarm/dev/nbp_slhci.c
74
nbp_slhci_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/nbp_slhci.c
76
struct slhci_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbp_slhci.c
83
sc->sc_dev = self;
sys/arch/hpcarm/dev/nbp_slhci.c
88
aprint_error_dev(self, "can't map I/O space\n");
sys/arch/hpcarm/dev/nbp_slhci.c
99
aprint_error_dev(self, "unable to establish interrupt\n");
sys/arch/hpcarm/dev/nbpiic.c
106
aprint_error_dev(self, "unable to attach PXA I2C\n");
sys/arch/hpcarm/dev/nbpiic.c
119
aprint_error_dev(self, "intr_establish failed\n");
sys/arch/hpcarm/dev/nbpiic.c
130
iicbus_attach(self, &sc->sc_i2c);
sys/arch/hpcarm/dev/nbpiic.c
90
pxaiic_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/nbpiic.c
92
struct nbpiic_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbpiic.c
99
sc->sc_pxa_i2c.sc_dev = self;
sys/arch/hpcarm/dev/nbpkbd.c
101
nbpkbd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/nbpkbd.c
103
struct nbpkbd_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbpkbd.c
110
sc->sc_dev = self;
sys/arch/hpcarm/dev/nbpkbd.c
124
config_found(self, &haa, hpckbd_print, CFARGS_NONE);
sys/arch/hpcarm/dev/nbpkbd.c
128
aprint_error_dev(self, "callback regist failed\n");
sys/arch/hpcarm/dev/nbpmci.c
100
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/hpcarm/dev/nbpmci.c
74
pxamci_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/nbpmci.c
76
struct pxamci_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbpmci.c
84
aprint_error_dev(self,
sys/arch/hpcarm/dev/nbpmci.c
96
if (pxamci_attach_sub(self, pxa))
sys/arch/hpcarm/dev/nbpmci.c
97
aprint_error_dev(self, "unable to attach MMC controller\n");
sys/arch/hpcarm/dev/nbpmci.c
99
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcarm/dev/nbppcic.c
87
nbppcic_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/nbppcic.c
89
struct pxapcic_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbppcic.c
92
sc->sc_dev = self;
sys/arch/hpcarm/dev/nbppcon.c
105
aprint_normal_dev(self, "NETBOOK PRO Rev.%c\n",
sys/arch/hpcarm/dev/nbppcon.c
108
aprint_error_dev(self, "NVRAM read failed\n");
sys/arch/hpcarm/dev/nbppcon.c
110
config_search(self, NULL,
sys/arch/hpcarm/dev/nbppcon.c
116
nbppcon_search(device_t self, cfdata_t cf, const int *ldesc, void *aux)
sys/arch/hpcarm/dev/nbppcon.c
123
if (config_probe(self, cf, &pcon))
sys/arch/hpcarm/dev/nbppcon.c
124
config_attach(self, cf, &pcon, nbppcon_print, CFARGS_NONE);
sys/arch/hpcarm/dev/nbppcon.c
141
nbppcon_regist_callback(device_t self,
sys/arch/hpcarm/dev/nbppcon.c
144
struct nbppcon_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbppcon.c
159
nbppcon_intr(device_t self, int buflen, char *buf)
sys/arch/hpcarm/dev/nbppcon.c
161
struct nbppcon_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbppcon.c
176
nbppcon_poll(device_t self, int tag, int buflen, char *buf)
sys/arch/hpcarm/dev/nbppcon.c
178
struct nbppcon_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbppcon.c
201
nbppcon_kbd_ready(device_t self)
sys/arch/hpcarm/dev/nbppcon.c
203
struct nbppcon_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbppcon.c
226
nbppcon_pwr_hwreset(device_t self)
sys/arch/hpcarm/dev/nbppcon.c
228
struct nbppcon_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbppcon.c
86
nbppcon_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/nbppcon.c
88
struct nbppcon_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbppcon.c
93
sc->sc_dev = self;
sys/arch/hpcarm/dev/nbppm.c
72
nbppm_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/nbppm.c
74
struct nbppm_softc *sc = device_private(self);
sys/arch/hpcarm/dev/nbppm.c
80
sc->sc_dev = self;
sys/arch/hpcarm/dev/nbppm.c
88
aprint_error_dev(self,
sys/arch/hpcarm/dev/nbppm.c
95
aprint_error_dev(self,
sys/arch/hpcarm/dev/sacc_hpcarm.c
100
aprint_normal_dev(self, "unable to map registers\n");
sys/arch/hpcarm/dev/sacc_hpcarm.c
106
aprint_normal_dev(self, "SA-1111 rev %d.%d\n",
sys/arch/hpcarm/dev/sacc_hpcarm.c
125
config_search(self, NULL,
sys/arch/hpcarm/dev/sacc_hpcarm.c
75
sacc_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/sacc_hpcarm.c
79
struct sacc_softc *sc = device_private(self);
sys/arch/hpcarm/dev/sacc_hpcarm.c
86
sc->sc_dev = self;
sys/arch/hpcarm/dev/sed_saip.c
121
sed1356_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/sed_saip.c
123
struct sed1356_softc *sc = device_private(self);
sys/arch/hpcarm/dev/sed_saip.c
138
sc->sc_dev = self;
sys/arch/hpcarm/dev/sed_saip.c
143
aprint_normal_dev(self, "unable to map register\n");
sys/arch/hpcarm/dev/sed_saip.c
147
aprint_normal_dev(self, "Epson SED1356");
sys/arch/hpcarm/dev/sed_saip.c
152
aprint_normal_dev(self, "framebuffer address: 0x%08lx\n",
sys/arch/hpcarm/dev/sed_saip.c
157
sc->sc_powerhook = powerhook_establish(device_xname(self),
sys/arch/hpcarm/dev/sed_saip.c
160
aprint_normal_dev(self, "WARNING: unable to establish power hook\n");
sys/arch/hpcarm/dev/sed_saip.c
188
config_found(self, &ha, hpcfbprint, CFARGS_NONE);
sys/arch/hpcarm/dev/uda1341.c
123
uda1341_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/uda1341.c
125
struct uda1341_softc *sc = device_private(self);
sys/arch/hpcarm/dev/uda1341.c
129
aprint_normal_dev(self, "UDA1341 CODEC\n");
sys/arch/hpcarm/dev/uda1341.c
131
sc->sc_dev = self;
sys/arch/hpcarm/dev/uda1341.c
148
config_search(self, NULL,
sys/arch/hpcarm/dev/wzero3_kbd.c
260
wzero3kbd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/wzero3_kbd.c
262
struct wzero3kbd_softc *sc = device_private(self);
sys/arch/hpcarm/dev/wzero3_kbd.c
267
sc->sc_dev = self;
sys/arch/hpcarm/dev/wzero3_kbd.c
287
aprint_error_dev(self, "couldn't map registers.\n");
sys/arch/hpcarm/dev/wzero3_kbd.c
343
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/arch/hpcarm/dev/wzero3_kbd.c
353
config_found(self, &haa, hpckbd_print, CFARGS_NONE);
sys/arch/hpcarm/dev/wzero3_keypad.c
283
wzero3keypad_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/wzero3_keypad.c
285
struct wzero3keypad_softc *sc = device_private(self);
sys/arch/hpcarm/dev/wzero3_keypad.c
292
sc->sc_dev = self;
sys/arch/hpcarm/dev/wzero3_keypad.c
333
sc->sc_wskbddev = config_found(self, &wska, wskbddevprint, CFARGS_NONE);
sys/arch/hpcarm/dev/wzero3_lcd.c
223
wzero3lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/wzero3_lcd.c
225
struct pxa2x0_lcd_softc *sc = device_private(self);
sys/arch/hpcarm/dev/wzero3_lcd.c
229
sc->dev = self;
sys/arch/hpcarm/dev/wzero3_lcd.c
258
(void) config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/hpcarm/dev/wzero3_mci.c
145
pxamci_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/wzero3_mci.c
147
struct wzero3mci_softc *sc = device_private(self);
sys/arch/hpcarm/dev/wzero3_mci.c
151
sc->sc.sc_dev = self;
sys/arch/hpcarm/dev/wzero3_mci.c
168
aprint_error_dev(self,
sys/arch/hpcarm/dev/wzero3_mci.c
181
if (pxamci_attach_sub(self, pxa)) {
sys/arch/hpcarm/dev/wzero3_mci.c
182
aprint_error_dev(self, "unable to attach MMC controller\n");
sys/arch/hpcarm/dev/wzero3_mci.c
186
if (!pmf_device_register(self, NULL, NULL)) {
sys/arch/hpcarm/dev/wzero3_mci.c
187
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/hpcarm/dev/wzero3_ssp.c
143
wzero3ssp_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/wzero3_ssp.c
145
struct wzero3ssp_softc *sc = device_private(self);
sys/arch/hpcarm/dev/wzero3_ssp.c
147
sc->sc_dev = self;
sys/arch/hpcarm/dev/wzero3_ssp.c
155
aprint_error_dev(self, "unknown model\n");
sys/arch/hpcarm/dev/wzero3_tp.c
266
wzero3tp_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/wzero3_tp.c
268
struct wzero3tp_softc *sc = device_private(self);
sys/arch/hpcarm/dev/wzero3_tp.c
271
sc->sc_dev = self;
sys/arch/hpcarm/dev/wzero3_tp.c
278
aprint_error_dev(self, "unknown model\n");
sys/arch/hpcarm/dev/wzero3_tp.c
293
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/hpcarm/dev/wzero3_usb.c
139
wzero3usb_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcarm/dev/wzero3_usb.c
141
struct wzero3usb_softc *sc = device_private(self);
sys/arch/hpcarm/dev/wzero3_usb.c
145
sc->sc_dev = self;
sys/arch/hpcarm/dev/wzero3_usb.c
152
aprint_error_dev(self, "unknown model\n");
sys/arch/hpcarm/dev/wzero3_usb.c
161
aprint_error_dev(self, "couldn't map memory space\n");
sys/arch/hpcmips/dev/com_hpcio.c
296
com_hpcio_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/com_hpcio.c
298
struct com_hpcio_softc *hsc = device_private(self);
sys/arch/hpcmips/dev/com_hpcio.c
305
sc->sc_dev = self;
sys/arch/hpcmips/dev/it8368.c
214
it8368e_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/it8368.c
217
struct it8368e_softc *sc = device_private(self);
sys/arch/hpcmips/dev/it8368.c
223
sc->sc_dev = self;
sys/arch/hpcmips/dev/m38813c.c
125
config_found(self, &haa, hpckbd_print, CFARGS_NONE);
sys/arch/hpcmips/dev/m38813c.c
94
m38813c_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/m38813c.c
97
struct m38813c_softc *sc = device_private(self);
sys/arch/hpcmips/dev/mq200_pci.c
73
mq200_pci_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/mq200_pci.c
75
struct mq200_pci_softc *psc = device_private(self);
sys/arch/hpcmips/dev/mq200_pci.c
80
sc->sc_dev = self;
sys/arch/hpcmips/dev/optpoint.c
107
optpoint_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/optpoint.c
110
struct optpoint_softc *sc = device_private(self);
sys/arch/hpcmips/dev/optpoint.c
115
sc->sc_dev = self;
sys/arch/hpcmips/dev/optpoint.c
133
sc->sc_wsmousedev = config_found(self, &wsmaa, wsmousedevprint,
sys/arch/hpcmips/dev/plum.c
115
config_search(self, NULL,
sys/arch/hpcmips/dev/plum.c
122
config_search(self, NULL,
sys/arch/hpcmips/dev/plum.c
84
plum_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/plum.c
87
struct plum_softc *sc = device_private(self);
sys/arch/hpcmips/dev/plumicu.c
168
plumicu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/plumicu.c
171
struct plumicu_softc *sc = device_private(self);
sys/arch/hpcmips/dev/plumiobus.c
100
plumiobus_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/plumiobus.c
103
struct plumiobus_softc *sc = device_private(self);
sys/arch/hpcmips/dev/plumiobus.c
166
config_search(self, NULL,
sys/arch/hpcmips/dev/plumohci.c
132
plumohci_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/plumohci.c
134
struct plumohci_softc *sc = device_private(self);
sys/arch/hpcmips/dev/plumohci.c
137
sc->sc.sc_dev = self;
sys/arch/hpcmips/dev/plumohci.c
194
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/arch/hpcmips/dev/plumpcmcia.c
211
plumpcmcia_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/plumpcmcia.c
214
struct plumpcmcia_softc *sc = device_private(self);
sys/arch/hpcmips/dev/plumpcmcia.c
218
sc->sc_dev = self;
sys/arch/hpcmips/dev/plumpcmcia.c
244
sc, &sc->sc_event_thread, "%s", device_xname(self));
sys/arch/hpcmips/dev/plumpcmcia.c
263
ph->ph_parent = self;
sys/arch/hpcmips/dev/plumpcmcia.c
285
ph->ph_parent = self;
sys/arch/hpcmips/dev/plumpower.c
81
plumpower_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/plumpower.c
84
struct plumpower_softc *sc = device_private(self);
sys/arch/hpcmips/dev/plumvideo.c
154
plumvideo_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/plumvideo.c
157
struct plumvideo_softc *sc = device_private(self);
sys/arch/hpcmips/dev/plumvideo.c
161
sc->sc_dev = self;
sys/arch/hpcmips/dev/plumvideo.c
226
config_found(self, &ha, hpcfbprint, CFARGS_NONE);
sys/arch/hpcmips/dev/tc5165buf.c
105
tc5165buf_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/tc5165buf.c
108
struct tc5165buf_softc *sc = device_private(self);
sys/arch/hpcmips/dev/tc5165buf.c
150
config_found(self, &haa, hpckbd_print, CFARGS_NONE);
sys/arch/hpcmips/dev/teliosio.c
95
teliosio_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/teliosio.c
98
struct teliosio_softc *sc = device_private(self);
sys/arch/hpcmips/dev/ucb1200.c
113
ucb1200_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/ucb1200.c
116
struct ucb1200_softc *sc = device_private(self);
sys/arch/hpcmips/dev/ucb1200.c
136
config_search(self, NULL,
sys/arch/hpcmips/dev/ucbio.c
101
sc->sc_dev = self;
sys/arch/hpcmips/dev/ucbio.c
95
ucbio_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/ucbio.c
98
struct ucbio_softc *sc = device_private(self);
sys/arch/hpcmips/dev/ucbsnd.c
201
ucbsnd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/ucbsnd.c
204
struct ucbsnd_softc *sc = device_private(self);
sys/arch/hpcmips/dev/ucbsnd.c
207
sc->sc_dev = self;
sys/arch/hpcmips/dev/ucbsnd.c
226
ucb1200_state_install(parent, ucbsnd_busy, self,
sys/arch/hpcmips/dev/ucbtp.c
282
ucbtp_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/dev/ucbtp.c
285
struct ucbtp_softc *sc = device_private(self);
sys/arch/hpcmips/dev/ucbtp.c
289
sc->sc_dev = self;
sys/arch/hpcmips/dev/ucbtp.c
310
ucb1200_state_install(parent, ucbtp_busy, self, UCB1200_TP_MODULE);
sys/arch/hpcmips/dev/ucbtp.c
315
sc->sc_wsmousedev = config_found(self, &wsmaa, wsmousedevprint,
sys/arch/hpcmips/hpcmips/clock.c
114
(*clock->init)(clock->self);
sys/arch/hpcmips/hpcmips/clock.c
91
clock->self = dev;
sys/arch/hpcmips/hpcmips/cpu.c
100
cpu_identify(self);
sys/arch/hpcmips/hpcmips/cpu.c
91
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/hpcmips/cpu.c
95
ci->ci_dev = self;
sys/arch/hpcmips/hpcmips/cpu.c
96
device_set_private(self, ci);
sys/arch/hpcmips/hpcmips/mainbus.c
100
config_search(self, &ma,
sys/arch/hpcmips/hpcmips/mainbus.c
106
config_found(self, NULL, mainbus_print,
sys/arch/hpcmips/hpcmips/mainbus.c
75
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/include/sysconf.h
77
void *self;
sys/arch/hpcmips/isa/isa_machdep.c
135
vrisabattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/isa/isa_machdep.c
138
struct vrisab_softc *sc = device_private(self);
sys/arch/hpcmips/isa/isa_machdep.c
152
offset = device_cfdata(self)->cf_loc[VRISABIFCF_ISAMEMOFFSET];
sys/arch/hpcmips/isa/isa_machdep.c
160
offset = device_cfdata(self)->cf_loc[VRISABIFCF_ISAPORTOFFSET];
sys/arch/hpcmips/isa/isa_machdep.c
176
config_found(self, &iba, vrisabprint, CFARGS_NONE);
sys/arch/hpcmips/isa/isa_machdep.c
195
isa_attach_hook(device_t parent, device_t self,
sys/arch/hpcmips/isa/isa_machdep.c
202
isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/hpcmips/isa/plumisa_machdep.c
124
config_found(self, &iba, plumisabprint, CFARGS_NONE);
sys/arch/hpcmips/isa/plumisa_machdep.c
135
isa_attach_hook(device_t parent, device_t self,
sys/arch/hpcmips/isa/plumisa_machdep.c
142
isa_detach_hook(isa_chipset_tag_t, device_t self)
sys/arch/hpcmips/isa/plumisa_machdep.c
91
plumisabattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/isa/plumisa_machdep.c
94
struct plumisab_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx3912video.c
130
tx3912video_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx3912video.c
132
struct tx3912video_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx3912video.c
145
sc->sc_dev = self;
sys/arch/hpcmips/tx/tx3912video.c
198
config_found(self, &ha, hpcfbprint, CFARGS_NONE);
sys/arch/hpcmips/tx/tx39biu.c
122
config_defer(self, tx39biu_callback);
sys/arch/hpcmips/tx/tx39biu.c
126
tx39biu_callback(device_t self)
sys/arch/hpcmips/tx/tx39biu.c
128
struct tx39biu_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39biu.c
133
config_found(self, &cba, tx39biu_print, CFARGS_NONE);
sys/arch/hpcmips/tx/tx39biu.c
82
tx39biu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx39biu.c
85
struct tx39biu_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39clock.c
109
tx39clock_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx39clock.c
112
struct tx39clock_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39clock.c
117
tx_conf_register_clock(tc, self);
sys/arch/hpcmips/tx/tx39clock.c
135
platform_clock_attach(self, &tx39_clock);
sys/arch/hpcmips/tx/tx39clock.c
250
tx39clock_init(device_t self)
sys/arch/hpcmips/tx/tx39clock.c
252
struct tx39clock_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39icu.c
222
tx39icu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx39icu.c
225
struct tx39icu_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39icu.c
302
tx_conf_register_intr(tc, self);
sys/arch/hpcmips/tx/tx39io.c
107
tx39io_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx39io.c
110
struct tx39io_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39io.c
115
sc->sc_dev = self;
sys/arch/hpcmips/tx/tx39ir.c
84
tx39ir_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx39ir.c
87
struct tx39ir_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39power.c
103
sc->sc_dev = self;
sys/arch/hpcmips/tx/tx39power.c
105
tx_conf_register_power(tc, self);
sys/arch/hpcmips/tx/tx39power.c
96
tx39power_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx39power.c
99
struct tx39power_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39sib.c
143
tx39sib_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx39sib.c
146
struct tx39sib_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39sib.c
160
printf(": %d.%03d MHz", MHZ(tx39sib_clock(self)));
sys/arch/hpcmips/tx/tx39sib.c
168
tx39sib_enable1(self);
sys/arch/hpcmips/tx/tx39sib.c
170
tx39sib_enable2(self);
sys/arch/hpcmips/tx/tx39sib.c
177
config_search(self, NULL,
sys/arch/hpcmips/tx/tx39spi.c
69
tx39spi_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx39spi.c
72
struct tx39spi_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39spi.c
90
config_search(self, NULL,
sys/arch/hpcmips/tx/tx39uart.c
69
tx39uart_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/tx39uart.c
72
struct tx39uart_softc *sc = device_private(self);
sys/arch/hpcmips/tx/tx39uart.c
78
config_search(self, NULL,
sys/arch/hpcmips/tx/txcom.c
202
txcom_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/txcom.c
205
struct txcom_softc *sc = device_private(self);
sys/arch/hpcmips/tx/txcom.c
246
cn_tab->cn_dev = makedev(maj, device_unit(self));
sys/arch/hpcmips/tx/txcom.c
295
tca.tca_parent = self;
sys/arch/hpcmips/tx/txcom.c
296
config_found(self, &tca, txcom_print, CFARGS_NONE);
sys/arch/hpcmips/tx/txcsbus.c
133
txcsbus_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/txcsbus.c
136
struct txcsbus_softc *sc = device_private(self);
sys/arch/hpcmips/tx/txcsbus.c
146
config_search(self, NULL,
sys/arch/hpcmips/tx/txcsbus.c
151
config_search(self, NULL,
sys/arch/hpcmips/tx/txioman.c
60
txioman_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/txioman.c
64
config_defer(self, txioman_callback);
sys/arch/hpcmips/tx/txioman.c
68
txioman_callback(device_t self)
sys/arch/hpcmips/tx/txioman.c
77
config_found(self, &haa, txioman_print, CFARGS_NONE);
sys/arch/hpcmips/tx/txsim.c
101
config_search(self, NULL,
sys/arch/hpcmips/tx/txsim.c
108
config_search(self, NULL,
sys/arch/hpcmips/tx/txsim.c
81
txsim_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/tx/txsim.c
83
struct txsim_softc *sc = device_private(self);
sys/arch/hpcmips/tx/txsim.c
93
config_search(self, NULL,
sys/arch/hpcmips/vr/bcu_vrip.c
130
vrbcu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/bcu_vrip.c
133
struct vrbcu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/bcu_vrip.c
135
sc->sc_dev = self;
sys/arch/hpcmips/vr/cmu.c
84
vrcmu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/cmu.c
87
struct vrcmu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/com_vrip.c
165
com_vrip_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/com_vrip.c
167
struct com_vrip_softc *vsc = device_private(self);
sys/arch/hpcmips/vr/com_vrip.c
174
sc->sc_dev = self;
sys/arch/hpcmips/vr/com_vrip.c
175
vsc->sc_pwctl = device_cfdata(self)->cf_loc[VRIPIFCF_PWCTL];
sys/arch/hpcmips/vr/com_vrip.c
201
aprint_error_dev(self, "can't map interrupt line.\n");
sys/arch/hpcmips/vr/com_vrip.c
205
VPRINTF(("%s: pwctl %d\n", device_xname(self), vsc->sc_pwctl));
sys/arch/hpcmips/vr/flash_vrip.c
210
flash_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/flash_vrip.c
212
struct flash_softc *sc = device_private(self);
sys/arch/hpcmips/vr/ite8181_vrip.c
89
ite8181_vrip_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/ite8181_vrip.c
91
struct ite8181_vrip_softc *vsc = device_private(self);
sys/arch/hpcmips/vr/ite8181_vrip.c
95
sc->sc_dev = self;
sys/arch/hpcmips/vr/mq200_vrip.c
92
mq200_vrip_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/mq200_vrip.c
94
struct mq200_vrip_softc *vsc = device_private(self);
sys/arch/hpcmips/vr/mq200_vrip.c
98
sc->sc_dev = self;
sys/arch/hpcmips/vr/rtc.c
125
vrrtc_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/rtc.c
128
struct vrrtc_softc *sc = device_private(self);
sys/arch/hpcmips/vr/rtc.c
152
device_xname(self), va->va_addr);
sys/arch/hpcmips/vr/rtc.c
156
sc->sc_dev = self;
sys/arch/hpcmips/vr/rtc.c
218
sc->sc_todr.todr_dev = self;
sys/arch/hpcmips/vr/rtc.c
221
platform_clock_attach(self, &vr_clock);
sys/arch/hpcmips/vr/rtc.c
240
vrrtc_init(device_t self)
sys/arch/hpcmips/vr/rtc.c
242
struct vrrtc_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vr4102ip.c
107
vripattach_common(parent, self, aux);
sys/arch/hpcmips/vr/vr4102ip.c
95
vr4102ipattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vr4102ip.c
97
struct vrip_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vr4122ip.c
107
vripattach_common(parent, self, aux);
sys/arch/hpcmips/vr/vr4122ip.c
95
vr4122ipattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vr4122ip.c
97
struct vrip_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vr4181aiu.c
171
vr4181aiu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vr4181aiu.c
174
struct vr4181aiu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vr4181aiu.c
226
device_xname(self));
sys/arch/hpcmips/vr/vr4181giu.c
110
vr4181giu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vr4181giu.c
112
struct vr4181giu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vr4181giu.c
131
printf("%s: can't establish interrupt\n", device_xname(self));
sys/arch/hpcmips/vr/vr4181giu.c
140
sc->sc_iochip.hc_name = device_xname(self);
sys/arch/hpcmips/vr/vr4181giu.c
154
while (config_found(self, &sc->sc_haa, vr4181giu_print, CFARGS_NONE)) ;
sys/arch/hpcmips/vr/vr4181giu.c
160
config_defer(self, vr4181giu_callback);
sys/arch/hpcmips/vr/vr4181giu.c
162
vr4181giu_callback(self);
sys/arch/hpcmips/vr/vr4181giu.c
167
vr4181giu_callback(device_t self)
sys/arch/hpcmips/vr/vr4181giu.c
169
struct vr4181giu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vr4181giu.c
172
config_found(self, &sc->sc_haa, vr4181giu_print, CFARGS_NONE);
sys/arch/hpcmips/vr/vr4181ip.c
124
vr4181ipattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vr4181ip.c
126
struct vrip_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vr4181ip.c
136
vripattach_common(parent, self, aux);
sys/arch/hpcmips/vr/vraiu.c
152
vraiu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vraiu.c
160
sc = device_private(self);
sys/arch/hpcmips/vr/vraiu.c
161
sc->sc_dev = self;
sys/arch/hpcmips/vr/vraiu.c
249
audio_attach_mi(&vraiu_hw_if, sc, self);
sys/arch/hpcmips/vr/vraiu.c
253
vraiu_query_format(void *self, audio_format_query_t *afp)
sys/arch/hpcmips/vr/vraiu.c
260
vraiu_set_format(void *self, int setmode,
sys/arch/hpcmips/vr/vraiu.c
269
sc = self;
sys/arch/hpcmips/vr/vraiu.c
293
vraiu_round_blocksize(void *self, int bs, int mode, const audio_params_t *param)
sys/arch/hpcmips/vr/vraiu.c
299
vraiu_commit_settings(void *self)
sys/arch/hpcmips/vr/vraiu.c
305
sc = self;
sys/arch/hpcmips/vr/vraiu.c
327
vraiu_init_output(void *self, void *buffer, int size)
sys/arch/hpcmips/vr/vraiu.c
332
sc = self;
sys/arch/hpcmips/vr/vraiu.c
343
vraiu_start_output(void *self, void *block, int bsize,
sys/arch/hpcmips/vr/vraiu.c
350
sc = self;
sys/arch/hpcmips/vr/vraiu.c
365
vraiu_intr(void* self)
sys/arch/hpcmips/vr/vraiu.c
371
sc = self;
sys/arch/hpcmips/vr/vraiu.c
395
vraiu_halt_output(void *self)
sys/arch/hpcmips/vr/vraiu.c
400
sc =self;
sys/arch/hpcmips/vr/vraiu.c
419
vraiu_getdev(void *self, struct audio_device *ret)
sys/arch/hpcmips/vr/vraiu.c
428
vraiu_set_port(void *self, mixer_ctrl_t *mc)
sys/arch/hpcmips/vr/vraiu.c
433
sc = self;
sys/arch/hpcmips/vr/vraiu.c
448
vraiu_get_port(void *self, mixer_ctrl_t *mc)
sys/arch/hpcmips/vr/vraiu.c
453
sc = self;
sys/arch/hpcmips/vr/vraiu.c
466
vraiu_query_devinfo(void *self, mixer_devinfo_t *di)
sys/arch/hpcmips/vr/vraiu.c
492
vraiu_get_props(void *self)
sys/arch/hpcmips/vr/vraiu.c
500
vraiu_get_locks(void *self, kmutex_t **intr, kmutex_t **thread)
sys/arch/hpcmips/vr/vraiu.c
505
sc = self;
sys/arch/hpcmips/vr/vrc4172gpio.c
192
vrc4172gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrc4172gpio.c
195
struct vrc4172gpio_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrc4172gpio.c
200
loc = device_cfdata(self)->cf_loc;
sys/arch/hpcmips/vr/vrc4172gpio.c
211
printf("%s: can't map bus space\n", device_xname(self));
sys/arch/hpcmips/vr/vrc4172gpio.c
302
printf("%s: can't establish interrupt\n", device_xname(self));
sys/arch/hpcmips/vr/vrc4172gpio.c
311
sc->sc_iochip.hc_name = device_xname(self);
sys/arch/hpcmips/vr/vrc4172gpio.c
323
while (config_found(self, &sc->sc_haa, vrc4172gpio_print, CFARGS_NONE)) ;
sys/arch/hpcmips/vr/vrc4172gpio.c
328
config_defer(self, vrc4172gpio_callback);
sys/arch/hpcmips/vr/vrc4172gpio.c
330
vrc4172gpio_callback(self);
sys/arch/hpcmips/vr/vrc4172gpio.c
335
vrc4172gpio_callback(device_t self)
sys/arch/hpcmips/vr/vrc4172gpio.c
337
struct vrc4172gpio_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrc4172gpio.c
340
config_found(self, &sc->sc_haa, vrc4172gpio_print, CFARGS_NONE);
sys/arch/hpcmips/vr/vrc4172pci.c
136
vrc4172pci_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrc4172pci.c
138
struct vrc4172pci_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrc4172pci.c
145
sc->sc_dev = self;
sys/arch/hpcmips/vr/vrc4172pci.c
191
device_xname(self), i,
sys/arch/hpcmips/vr/vrc4172pci.c
209
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/hpcmips/vr/vrc4172pci.c
214
vrc4172pci_attach_hook(device_t parent, device_t self,
sys/arch/hpcmips/vr/vrc4172pwm.c
201
vrc4172pwmattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrc4172pwm.c
203
struct vrc4172pwm_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrc4173bcu.c
245
vrc4173bcu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrc4173bcu.c
247
struct vrc4173bcu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrc4173bcu.c
262
sc->sc_dev = self;
sys/arch/hpcmips/vr/vrc4173bcu.c
268
printf("%s: ", device_xname(self));
sys/arch/hpcmips/vr/vrc4173bcu.c
287
printf("%s: can't map mem space\n", device_xname(self));
sys/arch/hpcmips/vr/vrc4173bcu.c
293
DPRINTF(("%s: csr = 0x%08x", device_xname(self), csr));
sys/arch/hpcmips/vr/vrc4173bcu.c
300
DPRINTF(("%s: base addr = %x@0x%08x\n", device_xname(self),
sys/arch/hpcmips/vr/vrc4173bcu.c
302
DPRINTF(("%s: iot = 0x%08x, ioh = 0x%08x\n", device_xname(self),
sys/arch/hpcmips/vr/vrc4173bcu.c
329
device_xname(self), reg);
sys/arch/hpcmips/vr/vrc4173bcu.c
347
printf("%s: SYSINT1 = %s\n", device_xname(self), buf);
sys/arch/hpcmips/vr/vrc4173bcu.c
353
printf("%s: MKIUINT = %s\n", device_xname(self), buf);
sys/arch/hpcmips/vr/vrc4173bcu.c
359
printf("%s: MSYSINT1 = %s\n", device_xname(self), buf);
sys/arch/hpcmips/vr/vrc4173bcu.c
370
printf("%s: MSYSINT1 = %s\n", device_xname(self), buf);
sys/arch/hpcmips/vr/vrc4173bcu.c
385
printf("%s: couldn't map interrupt\n", device_xname(self));
sys/arch/hpcmips/vr/vrc4173bcu.c
392
device_xname(self));
sys/arch/hpcmips/vr/vrc4173bcu.c
398
printf("%s: interrupting at %s\n", device_xname(self), intrstr);
sys/arch/hpcmips/vr/vrc4173bcu.c
428
config_search(self, NULL,
sys/arch/hpcmips/vr/vrdcu.c
111
printf("%s: can't map i/o space\n", device_xname(self));
sys/arch/hpcmips/vr/vrdcu.c
96
vrdcu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrdcu.c
99
struct vrdcu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrdmaau.c
71
vrdmaau_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrdmaau.c
74
struct vrdmaau_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrdmaau.c
76
sc->sc_dev = self;
sys/arch/hpcmips/vr/vrdsiu_mouse.c
121
vrdsiu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrdsiu_mouse.c
123
struct vrdsiu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrdsiu_mouse.c
161
sc->sc_wsmousedev = config_found(self, &wsmaa, wsmousedevprint,
sys/arch/hpcmips/vr/vrdsu.c
83
vrdsuattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrdsu.c
85
struct vrdsu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrecu.c
105
pcic_vrip_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrecu.c
107
struct pcic_vrip_softc *vsc = device_private(self);
sys/arch/hpcmips/vr/vrecu.c
114
sc->dev = self;
sys/arch/hpcmips/vr/vrgiu.c
194
vrgiu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrgiu.c
197
struct vrgiu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrgiu.c
201
sc->sc_dev = self;
sys/arch/hpcmips/vr/vrgiu.c
271
while (config_found(self, &haa, vrgiu_print,
sys/arch/hpcmips/vr/vrgiu.c
277
config_defer(self, vrgiu_callback);
sys/arch/hpcmips/vr/vrgiu.c
279
vrgiu_callback(self);
sys/arch/hpcmips/vr/vrgiu.c
284
vrgiu_callback(device_t self)
sys/arch/hpcmips/vr/vrgiu.c
286
struct vrgiu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrgiu.c
293
config_found(self, &haa, vrgiu_print,
sys/arch/hpcmips/vr/vrip.c
172
vripattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrip.c
174
struct vrip_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrip.c
184
vripattach_common(parent, self, aux);
sys/arch/hpcmips/vr/vrip.c
204
vripattach_common(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrip.c
207
struct vrip_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrip.c
248
config_search(self, NULL,
sys/arch/hpcmips/vr/vrip.c
253
config_search(self, NULL,
sys/arch/hpcmips/vr/vrkiu.c
136
vrkiuattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrkiu.c
138
struct vrkiu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrkiu.c
178
config_found(self, &haa, hpckbd_print, CFARGS_NONE);
sys/arch/hpcmips/vr/vrled.c
100
struct vrled_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrled.c
98
vrledattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrpciu.c
143
vrpciu_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrpciu.c
145
struct vrpciu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrpciu.c
157
sc->sc_dev = self;
sys/arch/hpcmips/vr/vrpciu.c
327
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/hpcmips/vr/vrpciu.c
348
vrpciu_attach_hook(device_t parent, device_t self,
sys/arch/hpcmips/vr/vrpiu.c
181
vrpiuattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrpiu.c
183
struct vrpiu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrpiu.c
185
sc->sc_dev = self;
sys/arch/hpcmips/vr/vrpiu.c
193
vrc4173piuattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrpiu.c
195
struct vrpiu_softc *sc = device_private(self);
sys/arch/hpcmips/vr/vrpiu.c
197
sc->sc_dev = self;
sys/arch/hpcmips/vr/vrpmu.c
107
vrpmuattach(device_t parent, device_t self, void *aux)
sys/arch/hpcmips/vr/vrpmu.c
109
struct vrpmu_softc *sc = device_private(self);
sys/arch/hpcsh/dev/hd64461/hd64461.c
129
config_found(self, &ha, hd64461_print, CFARGS_NONE);
sys/arch/hpcsh/dev/hd64461/hd64461.c
133
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/hd64461/hd64461.c
134
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/dev/hd64461/hd64461.c
94
hd64461_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c
270
hd64461pcmcia_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c
276
sc = device_private(self);
sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c
277
sc->sc_dev = self;
sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c
293
"%s", device_xname(self));
sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c
296
config_pending_incr(self);
sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c
299
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c
300
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/dev/hd64461/hd64461uart.c
165
hd64461uart_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/hd64461/hd64461uart.c
168
struct hd64461uart_softc *sc = device_private(self);
sys/arch/hpcsh/dev/hd64461/hd64461uart.c
173
csc->sc_dev = self;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
200
hd64461video_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/hd64461/hd64461video.c
212
sc = device_private(self);
sys/arch/hpcsh/dev/hd64461/hd64461video.c
213
sc->sc_dev = self;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
272
config_found(self, &hfa, hpcfbprint, CFARGS_NONE);
sys/arch/hpcsh/dev/hd64461/hd64461video.c
286
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/hd64461/hd64461video.c
287
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/dev/hd64465/hd64465.c
106
printf("%s: HITACHI HD64465 rev. %d.%d\n", device_xname(self),
sys/arch/hpcsh/dev/hd64465/hd64465.c
123
config_found(self, &ha, hd64465_print, CFARGS_NONE);
sys/arch/hpcsh/dev/hd64465/hd64465.c
92
hd64465_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c
211
hd64465pcmcia_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c
214
struct hd64465pcmcia_softc *sc = device_private(self);
sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c
217
sc->sc_dev = self;
sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c
226
printf("%s: can't map memory.\n", device_xname(self));
sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c
241
sc, &sc->sc_event_thread, "%s", device_xname(self));
sys/arch/hpcsh/dev/hd64465/hd64465uart.c
149
hd64465uart_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/hd64465/hd64465uart.c
152
struct hd64465uart_softc *sc = device_private(self);
sys/arch/hpcsh/dev/hd64465/hd64465uart.c
156
csc->sc_dev = self;
sys/arch/hpcsh/dev/hd64465/hd64465uart.c
182
comintr, self);
sys/arch/hpcsh/dev/j6x0lcd.c
177
j6x0lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/j6x0lcd.c
185
sc = device_private(self);
sys/arch/hpcsh/dev/j6x0lcd.c
186
sc->sc_dev = self;
sys/arch/hpcsh/dev/j6x0lcd.c
282
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/j6x0lcd.c
283
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/dev/j6x0pwr.c
148
j6x0pwr_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/j6x0pwr.c
156
sc = device_private(self);
sys/arch/hpcsh/dev/j6x0pwr.c
157
sc->sc_dev = self;
sys/arch/hpcsh/dev/j6x0pwr.c
190
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/j6x0pwr.c
191
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/dev/j6x0pwr.c
208
device_t self = sc->sc_dev;
sys/arch/hpcsh/dev/j6x0pwr.c
215
aprint_normal_dev(self, "irr0=0x%02x?\n", irr0);
sys/arch/hpcsh/dev/j6x0pwr.c
222
aprint_normal_dev(self, "lid closed %d\n", sc->sc_poweroff);
sys/arch/hpcsh/dev/j6x0pwr.c
226
aprint_normal_dev(self, "ON/OFF %d\n", sc->sc_poweroff);
sys/arch/hpcsh/dev/j6x0tp.c
236
j6x0tp_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/j6x0tp.c
245
sc = device_private(self);
sys/arch/hpcsh/dev/j6x0tp.c
246
sc->sc_dev = self;
sys/arch/hpcsh/dev/j6x0tp.c
255
sc->sc_wsmousedev = config_found(self, &wsma, wsmousedevprint,
sys/arch/hpcsh/dev/j6x0tp.c
266
sc->sc_wskbddev = config_found(self, &wska, wskbddevprint,
sys/arch/hpcsh/dev/j6x0tp.c
282
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/j6x0tp.c
283
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/dev/pfckbd.c
131
pfckbd_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/pfckbd.c
144
config_found(self, &haa, hpckbd_print, CFARGS_NONE);
sys/arch/hpcsh/dev/pfckbd.c
153
aprint_error_dev(self, "unsupported platform\n");
sys/arch/hpcsh/dev/pfckbd.c
155
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/pfckbd.c
156
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/dev/psh3lcd.c
249
psh3lcd_attach(device_t parent __unused, device_t self, void *aux __unused)
sys/arch/hpcsh/dev/psh3lcd.c
251
struct psh3lcd_softc *sc = device_private(self);
sys/arch/hpcsh/dev/psh3lcd.c
254
sc->sc_dev = self;
sys/arch/hpcsh/dev/psh3lcd.c
292
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/psh3lcd.c
293
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/dev/psh3pwr.c
125
psh3pwr_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/dev/psh3pwr.c
129
struct psh3pwr_softc *sc = device_private(self);
sys/arch/hpcsh/dev/psh3pwr.c
132
sc->sc_dev = self;
sys/arch/hpcsh/dev/psh3pwr.c
144
__sleep_ctx = self;
sys/arch/hpcsh/dev/psh3pwr.c
153
IST_EDGE, IPL_TTY, psh3pwr_intr_plug_out, self);
sys/arch/hpcsh/dev/psh3pwr.c
155
IST_EDGE, IPL_TTY, psh3pwr_intr_plug_in, self);
sys/arch/hpcsh/dev/psh3pwr.c
158
aprint_normal_dev(self, "plug status: %s\n",
sys/arch/hpcsh/dev/psh3pwr.c
161
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/psh3pwr.c
162
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/dev/psh3tp.c
168
psh3tp_attach(device_t parent __unused, device_t self, void *aux __unused)
sys/arch/hpcsh/dev/psh3tp.c
170
struct psh3tp_softc *sc = device_private(self);
sys/arch/hpcsh/dev/psh3tp.c
176
sc->sc_dev = self;
sys/arch/hpcsh/dev/psh3tp.c
184
self, &wsma, wsmousedevprint, CFARGS_NONE);
sys/arch/hpcsh/dev/psh3tp.c
201
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/dev/psh3tp.c
202
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hpcsh/hpcsh/mainbus.c
58
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/hpcsh/hpcsh/mainbus.c
65
config_found(self,
sys/arch/hpcsh/hpcsh/mainbus.c
70
config_search(self, NULL,
sys/arch/hpcsh/hpcsh/mainbus.c
75
config_found(self, NULL, mainbus_print,
sys/arch/hpcsh/hpcsh/mainbus.c
78
if (!pmf_device_register(self, NULL, NULL))
sys/arch/hpcsh/hpcsh/mainbus.c
79
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/hppa/dev/asp.c
185
aspattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/asp.c
188
struct asp_softc *sc = device_private(self);
sys/arch/hppa/dev/asp.c
194
sc->sc_dev = self;
sys/arch/hppa/dev/asp.c
198
aprint_error_dev(self, ": can't allocate interrupt");
sys/arch/hppa/dev/asp.c
251
sc->sc_ir.ir_name = device_xname(self);
sys/arch/hppa/dev/asp.c
278
config_found(self, &ga, gscprint, CFARGS_NONE);
sys/arch/hppa/dev/astro.c
160
static device_t astro_callback(device_t self, struct confargs *ca);
sys/arch/hppa/dev/astro.c
226
astro_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/astro.c
229
struct astro_softc *sc = device_private(self);
sys/arch/hppa/dev/astro.c
242
sc->sc_dv = self;
sys/arch/hppa/dev/astro.c
350
pdc_scanbus(self, &nca, astro_callback);
sys/arch/hppa/dev/astro.c
354
astro_callback(device_t self, struct confargs *ca)
sys/arch/hppa/dev/astro.c
357
return config_found(self, ca, mbprint,
sys/arch/hppa/dev/com_dino.c
87
com_dino_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/com_dino.c
90
struct com_dino_softc *sc_comdino = device_private(self);
sys/arch/hppa/dev/com_dino.c
99
sc->sc_dev = self;
sys/arch/hppa/dev/com_ssio.c
108
comintr, sc, device_xname(self));
sys/arch/hppa/dev/com_ssio.c
68
com_ssio_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/com_ssio.c
70
struct com_ssio_softc *sc_ssio = device_private(self);
sys/arch/hppa/dev/com_ssio.c
79
sc->sc_dev = self;
sys/arch/hppa/dev/cpu.c
103
sc->sc_dev = self;
sys/arch/hppa/dev/cpu.c
113
aprint_error_dev(self, "bad irq number %d\n", ca->ca_irq);
sys/arch/hppa/dev/cpu.c
118
aprint_normal("\n%s: %s, PA-RISC %s", device_xname(self),
sys/arch/hppa/dev/cpu.c
128
aprint_normal(" MHz clk\n%s: %s", device_xname(self),
sys/arch/hppa/dev/cpu.c
154
aprint_normal("%s: %s floating point, rev %d\n", device_xname(self),
sys/arch/hppa/dev/cpu.c
158
aprint_normal("%s: no floating point\n", device_xname(self));
sys/arch/hppa/dev/cpu.c
162
aprint_normal_dev(self, "not started\n");
sys/arch/hppa/dev/cpu.c
176
ir->ir_name = device_xname(self);
sys/arch/hppa/dev/cpu.c
212
aprint_error_dev(self,
sys/arch/hppa/dev/cpu.c
81
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/cpu.c
89
struct cpu_softc *sc = device_private(self);
sys/arch/hppa/dev/cpu.c
95
int cpuno = device_unit(self);
sys/arch/hppa/dev/dino.c
1738
dinoattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/dino.c
1740
struct dino_softc *sc = device_private(self);
sys/arch/hppa/dev/dino.c
1748
sc->sc_dv = self;
sys/arch/hppa/dev/dino.c
1754
aprint_error_dev(self, ": can't allocate interrupt");
sys/arch/hppa/dev/dino.c
1779
"%s_io", device_xname(self));
sys/arch/hppa/dev/dino.c
1792
sc->sc_ir.ir_name = device_xname(self);
sys/arch/hppa/dev/dino.c
1854
pdc_scanbus(self, &nca, dino_callback);
sys/arch/hppa/dev/dino.c
1863
config_found(self, &pba, pcibusprint,
sys/arch/hppa/dev/dino.c
1868
dino_callback(device_t self, struct confargs *ca)
sys/arch/hppa/dev/dino.c
1870
return config_found(self, ca, mbprint,
sys/arch/hppa/dev/dino.c
274
dino_attach_hook(device_t parent, device_t self,
sys/arch/hppa/dev/dino.c
455
dino_alloc_parent(device_t self, struct pci_attach_args *pa, int io)
sys/arch/hppa/dev/elroy.c
1268
elroy_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/elroy.c
1270
struct elroy_softc *sc = device_private(self);
sys/arch/hppa/dev/elroy.c
1277
sc->sc_dv = self;
sys/arch/hppa/dev/elroy.c
1378
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/hppa/dev/elroy.c
227
elroy_attach_hook(device_t parent, device_t self,
sys/arch/hppa/dev/elroy.c
440
elroy_alloc_parent(device_t self, struct pci_attach_args *pa, int io)
sys/arch/hppa/dev/gecko.c
63
gecko_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/gecko.c
65
struct gecko_softc *sc = device_private(self);
sys/arch/hppa/dev/gecko.c
69
sc->sc_dv = self;
sys/arch/hppa/dev/gecko.c
86
pdc_scanbus(self, &nca, gecko_callback);
sys/arch/hppa/dev/gecko.c
90
gecko_callback(device_t self, struct confargs *ca)
sys/arch/hppa/dev/gecko.c
93
return config_round(self, ca, mbprint,
sys/arch/hppa/dev/gftfb.c
262
gftfb_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/gftfb.c
264
struct gftfb_softc *sc = device_private(self);
sys/arch/hppa/dev/gftfb.c
273
sc->sc_dev = self;
sys/arch/hppa/dev/gftfb.c
277
sc->sc_base.sc_dev = self;
sys/arch/hppa/dev/hyperfb.c
364
hyperfb_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/hyperfb.c
366
struct hyperfb_softc *sc = device_private(self);
sys/arch/hppa/dev/hyperfb.c
381
sc->sc_dev = self;
sys/arch/hppa/dev/lasi.c
145
lasiattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/lasi.c
148
struct lasi_softc *sc = device_private(self);
sys/arch/hppa/dev/lasi.c
154
sc->sc_dev = self;
sys/arch/hppa/dev/lasi.c
195
sc->sc_ir.ir_name = device_xname(self);
sys/arch/hppa/dev/lasi.c
217
config_found(self, &ga, gscprint, CFARGS_NONE);
sys/arch/hppa/dev/lcd.c
71
lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/lcd.c
73
struct lcd_softc *sc = device_private(self);
sys/arch/hppa/dev/lcd.c
78
sc->sc_dv = self;
sys/arch/hppa/dev/lpt_ssio.c
53
lpt_ssio_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/lpt_ssio.c
55
struct lpt_softc *sc = device_private(self);
sys/arch/hppa/dev/lpt_ssio.c
58
sc->sc_dev = self;
sys/arch/hppa/dev/lpt_ssio.c
69
lptintr, sc, device_xname(self));
sys/arch/hppa/dev/mem.c
166
memattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/mem.c
170
struct mem_softc *sc = device_private(self);
sys/arch/hppa/dev/mem.c
174
sc->sc_dev = self;
sys/arch/hppa/dev/mem.c
207
if (device_cfdata(self)->cf_flags & 1)
sys/arch/hppa/dev/mongoose.c
245
mg_eisa_attach_hook(device_t parent, device_t self,
sys/arch/hppa/dev/mongoose.c
265
mg_isa_attach_hook(device_t parent, device_t self,
sys/arch/hppa/dev/mongoose.c
272
mg_isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/hppa/dev/mongoose.c
592
mgattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/mongoose.c
595
struct mongoose_softc *sc = device_private(self);
sys/arch/hppa/dev/mongoose.c
602
sc->sc_dev = self;
sys/arch/hppa/dev/mongoose.c
691
eisabus_attach(self, &ea.mongoose_eisa);
sys/arch/hppa/dev/mongoose.c
715
isabus_attach(self, &ea.mongoose_isa);
sys/arch/hppa/dev/pdc.c
238
pdcattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/pdc.c
240
struct pdc_softc *sc = device_private(self);
sys/arch/hppa/dev/pdc.c
242
sc->sc_dv = self;
sys/arch/hppa/dev/pdc.c
253
sc->sc_todr.todr_dev = self;
sys/arch/hppa/dev/phantomas.c
45
static device_t phantomas_callback(device_t self, struct confargs *ca);
sys/arch/hppa/dev/phantomas.c
63
phantomasattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/phantomas.c
65
struct phantomas_softc *sc = device_private(self);
sys/arch/hppa/dev/phantomas.c
68
sc->sc_dev = self;
sys/arch/hppa/dev/phantomas.c
74
pdc_scanbus(self, &nca, phantomas_callback);
sys/arch/hppa/dev/phantomas.c
78
phantomas_callback(device_t self, struct confargs *ca)
sys/arch/hppa/dev/phantomas.c
81
return config_found(self, ca, mbprint,
sys/arch/hppa/dev/power.c
130
powerattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/power.c
132
struct power_softc *sc = device_private(self);
sys/arch/hppa/dev/power.c
136
sc->sc_dev = self;
sys/arch/hppa/dev/power.c
162
aprint_error_dev(self,
sys/arch/hppa/dev/siop_sgc.c
81
siop_sgc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/siop_sgc.c
83
struct siop_sgc_softc *sgc = device_private(self);
sys/arch/hppa/dev/siop_sgc.c
89
sc->sc_c.sc_dev = self;
sys/arch/hppa/dev/ssio.c
168
ssio_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/ssio.c
170
struct ssio_softc *sc = device_private(self);
sys/arch/hppa/dev/ssio.c
190
aprint_error_dev(self, "unable to map PIC1 registers\n");
sys/arch/hppa/dev/ssio.c
194
aprint_error_dev(self, "unable to map PIC2 registers\n");
sys/arch/hppa/dev/ssio.c
199
aprint_error_dev(self, "unable to map interrupt\n");
sys/arch/hppa/dev/ssio.c
206
aprint_error_dev(self, "could not establish interrupt");
sys/arch/hppa/dev/ssio.c
212
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/arch/hppa/dev/ssio.c
268
config_found(self, &saa, ssio_print, CFARGS_NONE);
sys/arch/hppa/dev/ssio.c
276
config_found(self, &saa, ssio_print, CFARGS_NONE);
sys/arch/hppa/dev/ssio.c
284
config_found(self, &saa, ssio_print, CFARGS_NONE);
sys/arch/hppa/dev/sti_sgc.c
235
sti_sgc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/sti_sgc.c
237
struct sti_softc *sc = device_private(self);
sys/arch/hppa/dev/sti_sgc.c
251
sc->sc_dev = self;
sys/arch/hppa/dev/sti_sgc.c
288
config_interrupts(self, sti_sgc_end_attach);
sys/arch/hppa/dev/summitfb.c
224
summitfb_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/summitfb.c
226
struct summitfb_softc *sc = device_private(self);
sys/arch/hppa/dev/summitfb.c
236
sc->sc_dev = self;
sys/arch/hppa/dev/summitfb.c
240
sc->sc_base.sc_dev = self;
sys/arch/hppa/dev/uturn.c
281
uturnattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/uturn.c
284
struct uturn_softc *sc = device_private(self);
sys/arch/hppa/dev/uturn.c
298
sc->sc_dv = self;
sys/arch/hppa/dev/uturn.c
385
pdc_scanbus(self, &nca, uturn_callback);
sys/arch/hppa/dev/uturn.c
389
uturn_callback(device_t self, struct confargs *ca)
sys/arch/hppa/dev/uturn.c
392
return config_found(self, ca, mbprint,
sys/arch/hppa/dev/wax.c
108
waxattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/dev/wax.c
111
struct wax_softc *sc = device_private(self);
sys/arch/hppa/dev/wax.c
123
sc->sc_dv = self;
sys/arch/hppa/dev/wax.c
148
sc->sc_ir.ir_name = device_xname(self);
sys/arch/hppa/dev/wax.c
169
config_found(self, &ga, gscprint, CFARGS_NONE);
sys/arch/hppa/gsc/com_gsc.c
101
sc->sc_dev = self;
sys/arch/hppa/gsc/com_gsc.c
91
com_gsc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/com_gsc.c
93
struct com_gsc_softc *gsc = device_private(self);
sys/arch/hppa/gsc/fdc_gsc.c
76
fdc_gsc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/fdc_gsc.c
78
struct fdc_softc *sc = device_private(self);
sys/arch/hppa/gsc/fdc_gsc.c
82
sc->sc_dev = self;
sys/arch/hppa/gsc/gscbus.c
110
gsc_module_callback(device_t self, struct confargs *ca)
sys/arch/hppa/gsc/gscbus.c
112
struct gsc_softc *sc = device_private(self);
sys/arch/hppa/gsc/gscbus.c
122
return config_found(self, &ga, mbprint,
sys/arch/hppa/gsc/gscbus.c
135
gscattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/gscbus.c
137
struct gsc_softc *sc = device_private(self);
sys/arch/hppa/gsc/gscbus.c
141
sc->sc_dev = self;
sys/arch/hppa/gsc/gscbus.c
152
ga->ga_ir->ir_name = device_xname(self);
sys/arch/hppa/gsc/gscbus.c
158
pdc_scanbus(self, &ga->ga_ca, gsc_module_callback);
sys/arch/hppa/gsc/gsckbc.c
240
gsckbc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/gsckbc.c
242
struct gsckbc_softc *sc = device_private(self);
sys/arch/hppa/gsc/gsckbc.c
261
sc->sc_dev = self;
sys/arch/hppa/gsc/gsckbc.c
311
sc->sc_child = pckbport_attach_slot(self, sc->sc_pckbport,
sys/arch/hppa/gsc/harmony.c
209
harmony_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/harmony.c
211
struct harmony_softc *sc = device_private(self);
sys/arch/hppa/gsc/harmony.c
217
sc->sc_dv = self;
sys/arch/hppa/gsc/hil_gsc.c
73
hil_gsc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/hil_gsc.c
75
struct hil_gsc_softc *gsc = device_private(self);
sys/arch/hppa/gsc/hil_gsc.c
80
sc->sc_dev = self;
sys/arch/hppa/gsc/hil_gsc.c
98
config_interrupts(self, hil_attach_deferred);
sys/arch/hppa/gsc/if_ie_gsc.c
372
ie_gsc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/if_ie_gsc.c
374
struct ie_gsc_softc *gsc = device_private(self);
sys/arch/hppa/gsc/if_ie_gsc.c
393
sc->sc_dev = self;
sys/arch/hppa/gsc/if_ie_gsc.c
451
device_xname(self));
sys/arch/hppa/gsc/if_iee_gsc.c
198
iee_gsc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/if_iee_gsc.c
200
struct iee_gsc_softc *sc_gsc = device_private(self);
sys/arch/hppa/gsc/if_iee_gsc.c
206
sc->sc_dev = self;
sys/arch/hppa/gsc/if_iee_gsc.c
266
iee_gsc_detach(device_t self, int flags)
sys/arch/hppa/gsc/if_iee_gsc.c
268
struct iee_gsc_softc *sc_gsc = device_private(self);
sys/arch/hppa/gsc/lpt_gsc.c
198
lpt_gsc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/lpt_gsc.c
200
struct lpt_softc *sc = device_private(self);
sys/arch/hppa/gsc/lpt_gsc.c
205
sc->sc_dev = self;
sys/arch/hppa/gsc/oosiop_gsc.c
138
oosiop_gsc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/oosiop_gsc.c
140
struct oosiop_softc *sc = device_private(self);
sys/arch/hppa/gsc/oosiop_gsc.c
144
sc->sc_dev = self;
sys/arch/hppa/gsc/osiop_gsc.c
138
osiop_gsc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/osiop_gsc.c
140
struct osiop_softc *sc = device_private(self);
sys/arch/hppa/gsc/osiop_gsc.c
144
sc->sc_dev = self;
sys/arch/hppa/gsc/siop_gsc.c
81
siop_gsc_attach(device_t parent, device_t self, void *aux)
sys/arch/hppa/gsc/siop_gsc.c
83
struct siop_gsc_softc *gsc = device_private(self);
sys/arch/hppa/gsc/siop_gsc.c
87
sc->sc_c.sc_dev = self;
sys/arch/hppa/hppa/autoconf.c
541
pdc_scanbus(device_t self, struct confargs *ca,
sys/arch/hppa/hppa/autoconf.c
630
dev = callback(self, &nca);
sys/arch/hppa/hppa/mainbus.c
1339
mb_module_callback(device_t self, struct confargs *ca)
sys/arch/hppa/hppa/mainbus.c
1345
return config_found(self, ca, mbprint,
sys/arch/hppa/hppa/mainbus.c
1350
mb_cpu_mem_callback(device_t self, struct confargs *ca)
sys/arch/hppa/hppa/mainbus.c
1356
return config_found(self, ca, mbprint,
sys/arch/hppa/hppa/mainbus.c
1361
mbattach(device_t parent, device_t self, void *aux)
sys/arch/hppa/hppa/mainbus.c
1363
struct mainbus_softc *sc = device_private(self);
sys/arch/hppa/hppa/mainbus.c
1368
sc->sc_dv = self;
sys/arch/hppa/hppa/mainbus.c
1400
config_found(self, &nca, mbprint, CFARGS_NONE);
sys/arch/hppa/hppa/mainbus.c
1408
config_found(self, &nca, mbprint, CFARGS_NONE);
sys/arch/hppa/hppa/mainbus.c
1424
config_found(self, &nca, mbprint, CFARGS_NONE);
sys/arch/hppa/hppa/mainbus.c
1449
pdc_scanbus(self, &nca, mb_cpu_mem_callback);
sys/arch/hppa/hppa/mainbus.c
1463
pdc_scanbus(self, &nca, mb_module_callback);
sys/arch/i386/eisa/eisa_machdep.c
106
eisa_attach_hook(device_t parent, device_t self,
sys/arch/i386/i386/i386_mainbus.c
170
i386_mainbus_childdetached(device_t self, device_t child)
sys/arch/i386/i386/i386_mainbus.c
172
struct mainbus_softc *sc = device_private(self);
sys/arch/i386/i386/i386_mainbus.c
186
mp_pci_childdetached(self, child);
sys/arch/i386/i386/i386_mainbus.c
204
i386_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/i386/i386_mainbus.c
206
struct mainbus_softc *sc = device_private(self);
sys/arch/i386/i386/i386_mainbus.c
209
sc->sc_dev = self;
sys/arch/i386/i386/i386_mainbus.c
216
self);
sys/arch/i386/i386/i386_mainbus.c
219
i386_mainbus_rescan(self, "acpibus", NULL);
sys/arch/i386/i386/i386_mainbus.c
221
i386_mainbus_rescan(self, "pnpbiosbus", NULL);
sys/arch/i386/i386/i386_mainbus.c
223
i386_mainbus_rescan(self, "ipmibus", NULL);
sys/arch/i386/i386/i386_mainbus.c
225
i386_mainbus_rescan(self, "pcibus", NULL);
sys/arch/i386/i386/i386_mainbus.c
227
i386_mainbus_rescan(self, "mcabus", NULL);
sys/arch/i386/i386/i386_mainbus.c
236
eisabus_attach(self, &mba.mba_eba);
sys/arch/i386/i386/i386_mainbus.c
244
isabus_attach(self, &mba.mba_iba);
sys/arch/i386/i386/i386_mainbus.c
256
config_found(self, &mba.mba_pvba.pvba_busname, NULL,
sys/arch/i386/i386/i386_mainbus.c
263
if (!pmf_device_register(self, NULL, NULL))
sys/arch/i386/i386/i386_mainbus.c
264
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/i386/i386/i386_mainbus.c
269
i386_mainbus_rescan(device_t self, const char *ifattr, const int *locators)
sys/arch/i386/i386/i386_mainbus.c
271
struct mainbus_softc *sc = device_private(self);
sys/arch/i386/i386/i386_mainbus.c
289
sc->sc_acpi = config_found(self, &mba.mba_acpi, NULL,
sys/arch/i386/i386/i386_mainbus.c
310
sc->sc_pnpbios = config_found(self, &mba.mba_paa, NULL,
sys/arch/i386/i386/i386_mainbus.c
322
sc->sc_ipmi = config_found(self, &mba.mba_ipmi, NULL,
sys/arch/i386/i386/i386_mainbus.c
358
npcibus = mp_pci_scan(self, &mba.mba_pba, pcibusprint);
sys/arch/i386/i386/i386_mainbus.c
362
npcibus = mp_pci_scan(self, &mba.mba_pba, pcibusprint);
sys/arch/i386/i386/i386_mainbus.c
366
config_found(self, &mba.mba_pba, pcibusprint,
sys/arch/i386/i386/i386_mainbus.c
386
sc->sc_mca = mcabus_attach(self, &mba.mba_mba);
sys/arch/i386/isa/ahc_isa.c
359
ahc_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/isa/ahc_isa.c
361
struct ahc_softc *ahc = device_private(self);
sys/arch/i386/isa/ahc_isa.c
370
ahc->sc_dev = self;
sys/arch/i386/isa/lms.c
136
lmsattach(device_t parent, device_t self, void *aux)
sys/arch/i386/isa/lms.c
138
struct lms_softc *sc = device_private(self);
sys/arch/i386/isa/lms.c
148
aprint_error_dev(self, "can't map i/o space\n");
sys/arch/i386/isa/lms.c
169
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/i386/isa/mms.c
127
mmsattach(device_t parent, device_t self, void *aux)
sys/arch/i386/isa/mms.c
129
struct mms_softc *sc = device_private(self);
sys/arch/i386/isa/mms.c
139
aprint_error_dev(self, "can't map i/o space\n");
sys/arch/i386/isa/mms.c
160
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/i386/mca/mca_machdep.c
146
mca_attach_hook(device_t parent, device_t self,
sys/arch/i386/pci/elan520.c
1042
sc->sc_eih = elansc_intr_establish(self, elanpex_intr, sc);
sys/arch/i386/pci/elan520.c
1050
elanpex_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/elan520.c
1057
elanpex_intr_establish(self, sc);
sys/arch/i386/pci/elan520.c
1059
aprint_debug_dev(self, "HBMSTIRQCTL %04x\n",
sys/arch/i386/pci/elan520.c
1062
aprint_debug_dev(self, "HBTGTIRQCTL %04x\n",
sys/arch/i386/pci/elan520.c
1065
aprint_debug_dev(self, "PCIHOSTMAP %04x\n",
sys/arch/i386/pci/elan520.c
1072
if (!pmf_device_register1(self, elanpex_suspend, elanpex_resume,
sys/arch/i386/pci/elan520.c
1074
aprint_error_dev(self, "could not establish power hooks\n");
sys/arch/i386/pci/elan520.c
1078
elanpex_shutdown(device_t self, int flags)
sys/arch/i386/pci/elan520.c
1080
struct elansc_softc *sc = device_private(device_parent(self));
sys/arch/i386/pci/elan520.c
1127
elanpex_detach(device_t self, int flags)
sys/arch/i386/pci/elan520.c
1129
struct elansc_softc *sc = device_private(device_parent(self));
sys/arch/i386/pci/elan520.c
1131
pmf_device_deregister(self);
sys/arch/i386/pci/elan520.c
1138
elanpar_intr_establish(device_t self, struct elansc_softc *sc)
sys/arch/i386/pci/elan520.c
1158
sc->sc_pih = elansc_intr_establish(self, elanpar_intr, sc);
sys/arch/i386/pci/elan520.c
1166
elanpar_shutdown(device_t self, int flags)
sys/arch/i386/pci/elan520.c
1169
struct elansc_softc *sc = device_private(device_parent(self));
sys/arch/i386/pci/elan520.c
1185
elanpar_deferred_attach(device_t self)
sys/arch/i386/pci/elan520.c
1187
struct elansc_softc *sc = device_private(device_parent(self));
sys/arch/i386/pci/elan520.c
1189
elansc_protect_text(self, sc);
sys/arch/i386/pci/elan520.c
1193
elanpar_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/elan520.c
1200
elansc_print_1(self, sc, MMCR_WPVMAP);
sys/arch/i386/pci/elan520.c
1201
elansc_print_all_par(self, sc->sc_memt, sc->sc_memh);
sys/arch/i386/pci/elan520.c
1203
sc->sc_pg0par = elansc_protect_pg0(self, sc);
sys/arch/i386/pci/elan520.c
1207
config_interrupts(self, elanpar_deferred_attach);
sys/arch/i386/pci/elan520.c
1209
elansc_print_all_par(self, sc->sc_memt, sc->sc_memh);
sys/arch/i386/pci/elan520.c
1211
elanpar_intr_establish(self, sc);
sys/arch/i386/pci/elan520.c
1213
elansc_print_1(self, sc, MMCR_ADDDECCTL);
sys/arch/i386/pci/elan520.c
1215
if (!pmf_device_register1(self, elanpar_suspend, elanpar_resume,
sys/arch/i386/pci/elan520.c
1217
aprint_error_dev(self, "could not establish power hooks\n");
sys/arch/i386/pci/elan520.c
1247
elanpar_detach(device_t self, int flags)
sys/arch/i386/pci/elan520.c
1249
struct elansc_softc *sc = device_private(device_parent(self));
sys/arch/i386/pci/elan520.c
1251
pmf_device_deregister(self);
sys/arch/i386/pci/elan520.c
1253
elanpar_shutdown(self, 0);
sys/arch/i386/pci/elan520.c
1261
elansc_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/elan520.c
1263
struct elansc_softc *sc = device_private(self);
sys/arch/i386/pci/elan520.c
1272
sc->sc_dev = self;
sys/arch/i386/pci/elan520.c
1330
elansc_print_1(self, sc, MMCR_MPICMODE);
sys/arch/i386/pci/elan520.c
1331
elansc_print_1(self, sc, MMCR_SL1PICMODE);
sys/arch/i386/pci/elan520.c
1332
elansc_print_1(self, sc, MMCR_SL2PICMODE);
sys/arch/i386/pci/elan520.c
1333
elansc_print_1(self, sc, MMCR_PICICR);
sys/arch/i386/pci/elan520.c
1350
elansc_print_1(self, sc, MMCR_PICICR);
sys/arch/i386/pci/elan520.c
1351
elansc_print_1(self, sc, MMCR_MPICMODE);
sys/arch/i386/pci/elan520.c
1361
if (!pmf_device_register1(self, elansc_suspend, elansc_resume,
sys/arch/i386/pci/elan520.c
1363
aprint_error_dev(self, "could not establish power hooks\n");
sys/arch/i386/pci/elan520.c
1432
elansc_rescan(device_t self, const char *ifattr, const int *locators)
sys/arch/i386/pci/elan520.c
1434
struct elansc_softc *sc = device_private(self);
sys/arch/i386/pci/elan520.c
144
elansc_childdetached(device_t self, device_t child)
sys/arch/i386/pci/elan520.c
146
struct elansc_softc *sc = device_private(self);
sys/arch/i386/pci/elan520.c
1472
sc->sc_pci = config_found(self, &pba, pcibusprint,
sys/arch/i386/pci/elan520.c
207
elansc_perf_tune(device_t self, bus_space_tag_t memt, bus_space_handle_t memh)
sys/arch/i386/pci/elan520.c
215
aprint_debug_dev(self,
sys/arch/i386/pci/elan520.c
218
aprint_verbose_dev(self, "activating concurrent "
sys/arch/i386/pci/elan520.c
229
aprint_debug_dev(self, "read-FIFO snooping is active\n");
sys/arch/i386/pci/elan520.c
231
aprint_verbose_dev(self, "activating read-FIFO snooping\n");
sys/arch/i386/pci/elan520.c
236
aprint_debug_dev(self, "CPU->PCI write-posting is active\n");
sys/arch/i386/pci/elan520.c
238
aprint_verbose_dev(self, "activating CPU->PCI write-posting\n");
sys/arch/i386/pci/elan520.c
247
aprint_debug_dev(self,
sys/arch/i386/pci/elan520.c
250
aprint_verbose_dev(self,
sys/arch/i386/pci/elan520.c
693
elansc_protect_text(device_t self, struct elansc_softc *sc)
sys/arch/i386/pci/elan520.c
715
aprint_error_dev(self, "kernel text may not be contiguous\n");
sys/arch/i386/pci/elan520.c
720
aprint_error_dev(self, "cannot allocate PAR\n");
sys/arch/i386/pci/elan520.c
726
aprint_debug_dev(self,
sys/arch/i386/pci/elan520.c
733
aprint_error_dev(self, "kernel text is unprotected\n");
sys/arch/i386/pci/elan520.c
744
aprint_debug_dev(self,
sys/arch/i386/pci/elan520.c
749
aprint_verbose_dev(self,
sys/arch/i386/pci/elan520.c
762
aprint_verbose_dev(self, "skip region "
sys/arch/i386/pci/elan520.c
775
aprint_debug_dev(self,
sys/arch/i386/pci/elan520.c
783
aprint_verbose_dev(self,
sys/arch/i386/pci/elan520.c
821
elansc_protect_pg0(device_t self, struct elansc_softc *sc)
sys/arch/i386/pci/elan520.c
837
aprint_debug_dev(self, "protect page 0\n");
sys/arch/i386/pci/elan520.c
885
elansc_shutdown(device_t self, int how)
sys/arch/i386/pci/elan520.c
887
struct elansc_softc *sc = device_private(self);
sys/arch/i386/pci/elan520.c
899
elansc_detach(device_t self, int flags)
sys/arch/i386/pci/elan520.c
902
struct elansc_softc *sc = device_private(self);
sys/arch/i386/pci/elan520.c
904
if ((rc = config_detach_children(self, flags)) != 0)
sys/arch/i386/pci/elan520.c
907
pmf_device_deregister(self);
sys/arch/i386/pci/elan520.c
918
(void)elansc_shutdown(self, 0);
sys/arch/i386/pci/elan520.c
953
elanpex_resume(device_t self, const pmf_qual_t *qual)
sys/arch/i386/pci/elan520.c
955
struct elansc_softc *sc = device_private(device_parent(self));
sys/arch/i386/pci/elan520.c
957
elanpex_intr_establish(self, sc);
sys/arch/i386/pci/elan520.c
962
elanpex_suspend(device_t self, const pmf_qual_t *qual)
sys/arch/i386/pci/elan520.c
964
struct elansc_softc *sc = device_private(device_parent(self));
sys/arch/i386/pci/elan520.c
972
elanpar_resume(device_t self, const pmf_qual_t *qual)
sys/arch/i386/pci/elan520.c
974
struct elansc_softc *sc = device_private(device_parent(self));
sys/arch/i386/pci/elan520.c
976
elanpar_intr_establish(self, sc);
sys/arch/i386/pci/elan520.c
981
elanpar_suspend(device_t self, const pmf_qual_t *qual)
sys/arch/i386/pci/elan520.c
983
struct elansc_softc *sc = device_private(device_parent(self));
sys/arch/i386/pci/elan520.c
991
elanpex_intr_establish(device_t self, struct elansc_softc *sc)
sys/arch/i386/pci/gcscehci.c
106
sc->sc.sc_dev = self;
sys/arch/i386/pci/gcscehci.c
174
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/arch/i386/pci/gcscehci.c
91
gcscehci_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/gcscehci.c
93
struct gcscehci_softc *sc = device_private(self);
sys/arch/i386/pci/gcscehci.c
99
const char *devname = device_xname(self);
sys/arch/i386/pci/gcscide.c
142
gcscide_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/gcscide.c
145
struct pciide_softc *sc = device_private(self);
sys/arch/i386/pci/gcscide.c
147
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/i386/pci/gcscpcib_pci.c
85
gcscpcib_pci_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/gcscpcib_pci.c
87
struct gcscpcib_pci_softc *sc = device_private(self);
sys/arch/i386/pci/gcscpcib_pci.c
93
pcibattach(parent, self, aux);
sys/arch/i386/pci/gcscpcib_pci.c
95
gcscpcib_attach(self, &sc->sc_gcscpcib, pa->pa_iot, 0);
sys/arch/i386/pci/geode.c
100
geode_gcb_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/geode.c
102
struct geode_gcb_softc *sc = device_private(self);
sys/arch/i386/pci/geode.c
116
device_xname(self), SC1100_GCB_SIZE, cba));
sys/arch/i386/pci/geode.c
123
while (config_found(self, NULL, NULL, CFARGS_NONE) != NULL)
sys/arch/i386/pci/geode.c
127
geode_gcb_detach(device_t self, int flags)
sys/arch/i386/pci/geode.c
130
struct geode_gcb_softc *sc = device_private(self);
sys/arch/i386/pci/geode.c
132
if ((rc = config_detach_children(self, flags)) != 0)
sys/arch/i386/pci/geodecntr.c
64
geodecntr_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/geodecntr.c
66
struct geodecntr_softc *sc = device_private(self);
sys/arch/i386/pci/geodecntr.c
95
geodecntr_detach(device_t self, int flags)
sys/arch/i386/pci/geodecntr.c
97
struct geodecntr_softc *sc = device_private(self);
sys/arch/i386/pci/geodewdg.c
217
geode_wdog_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/geodewdg.c
219
struct geode_wdog_softc *sc = device_private(self);
sys/arch/i386/pci/geodewdg.c
230
sc->sc_smw.smw_name = device_xname(self);
sys/arch/i386/pci/geodewdg.c
243
GEODE_DPRINTF(("%s: status %#02" PRIx8 "\n", device_xname(self),
sys/arch/i386/pci/geodewdg.c
249
device_xname(self));
sys/arch/i386/pci/geodewdg.c
257
device_xname(self));
sys/arch/i386/pci/geodewdg.c
266
geode_wdog_detach(device_t self, int flags)
sys/arch/i386/pci/geodewdg.c
269
struct geode_wdog_softc *sc = device_private(self);
sys/arch/i386/pci/glxsb.c
205
glxsb_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/glxsb.c
207
struct glxsb_softc *sc = device_private(self);
sys/arch/i386/pci/glxsb.c
231
sc->sc_dev = self;
sys/arch/i386/pci/glxsb.c
249
rnd_attach_source(&sc->sc_rnd_source, device_xname(self),
sys/arch/i386/pci/gscpcib.c
102
sc->sc_gpiobus = config_found(self, &gba, gpiobus_print,
sys/arch/i386/pci/gscpcib.c
108
return pcibrescan(self, ifattr, loc);
sys/arch/i386/pci/gscpcib.c
128
gscpcib_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/gscpcib.c
130
struct gscpcib_softc *sc = device_private(self);
sys/arch/i386/pci/gscpcib.c
169
pcibattach(parent, self, aux);
sys/arch/i386/pci/gscpcib.c
171
gscpcib_rescan(self, "gpiobus", NULL);
sys/arch/i386/pci/gscpcib.c
175
gscpcib_detach(device_t self, int flags)
sys/arch/i386/pci/gscpcib.c
178
struct gscpcib_softc *sc = device_private(self);
sys/arch/i386/pci/gscpcib.c
180
if ((rc = config_detach_children(self, flags)) != 0)
sys/arch/i386/pci/gscpcib.c
183
if ((rc = pcibdetach(self, flags)) != 0)
sys/arch/i386/pci/gscpcib.c
77
gscpcib_childdetached(device_t self, device_t child)
sys/arch/i386/pci/gscpcib.c
79
struct gscpcib_softc *sc = device_private(self);
sys/arch/i386/pci/gscpcib.c
84
pcibchilddet(self, child);
sys/arch/i386/pci/gscpcib.c
88
gscpcib_rescan(device_t self, const char *ifattr, const int *loc)
sys/arch/i386/pci/gscpcib.c
91
struct gscpcib_softc *sc = device_private(self);
sys/arch/i386/pci/p64h2apic.c
75
p64h2attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/p64h2apic.c
77
struct p64h2apic_softc *sc = device_private(self);
sys/arch/i386/pci/p64h2apic.c
85
aprint_normal_dev(self, "%s (rev. 0x%02x)\n", devinfo,
sys/arch/i386/pci/pceb.c
109
aprint_normal_dev(self, "%s (rev. 0x%02x)\n", devinfo,
sys/arch/i386/pci/pceb.c
112
config_defer(self, pceb_callback);
sys/arch/i386/pci/pceb.c
116
pceb_callback(device_t self)
sys/arch/i386/pci/pceb.c
129
eisabus_attach(self, &ea.ea_eba);
sys/arch/i386/pci/pceb.c
140
isabus_attach(self, &ea.ea_iba);
sys/arch/i386/pci/pceb.c
96
pcebattach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/pcmb.c
111
mcabus_attach(self, &ma);
sys/arch/i386/pci/pcmb.c
77
pcmbattach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/pcmb.c
90
aprint_normal_dev(self, "%s (rev. 0x%02x)\n", devinfo,
sys/arch/i386/pci/pcmb.c
93
config_defer(self, pcmb_callback);
sys/arch/i386/pci/pcmb.c
97
pcmb_callback(device_t self)
sys/arch/i386/pci/piixpcib.c
123
piixpcibattach(device_t parent, device_t self, void *aux)
sys/arch/i386/pci/piixpcib.c
126
struct piixpcib_softc *sc = device_private(self);
sys/arch/i386/pci/piixpcib.c
128
sc->sc_dev = self;
sys/arch/i386/pci/piixpcib.c
131
pcibattach(parent, self, aux);
sys/arch/i386/pci/piixpcib.c
139
aprint_error_dev(self,
sys/arch/i386/pci/piixpcib.c
144
if (!pmf_device_register(self, piixpcib_suspend, piixpcib_resume))
sys/arch/i386/pci/piixpcib.c
145
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/i386/pci/viapcib.c
154
viapcib_attach(device_t parent, device_t self, void *opaque)
sys/arch/i386/pci/viapcib.c
156
struct viapcib_softc *sc = device_private(self);
sys/arch/i386/pci/viapcib.c
198
pcibattach(parent, self, opaque);
sys/arch/i386/pci/viapcib.c
204
device_xname(self), addr, sc->sc_revision);
sys/arch/i386/pci/viapcib.c
214
iicbus_attach(self, &sc->sc_i2c);
sys/arch/i386/pnpbios/atppc_pnpbios.c
115
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/atppc_pnpbios.c
118
sc->sc_dev = self;
sys/arch/i386/pnpbios/atppc_pnpbios.c
94
atppc_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/atppc_pnpbios.c
96
struct atppc_softc *sc = device_private(self);
sys/arch/i386/pnpbios/atppc_pnpbios.c
97
struct atppc_pnpbios_softc *asc = device_private(self);
sys/arch/i386/pnpbios/com_pnpbios.c
100
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/com_pnpbios.c
102
aprint_normal("%s", device_xname(self));
sys/arch/i386/pnpbios/com_pnpbios.c
75
com_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/com_pnpbios.c
77
struct com_pnpbios_softc *psc = device_private(self);
sys/arch/i386/pnpbios/com_pnpbios.c
84
sc->sc_dev = self;
sys/arch/i386/pnpbios/ess_pnpbios.c
124
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/ess_pnpbios.c
126
aprint_normal_dev(self, "");
sys/arch/i386/pnpbios/ess_pnpbios.c
129
aprint_error_dev(self, "essmatch failed\n");
sys/arch/i386/pnpbios/ess_pnpbios.c
84
ess_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/ess_pnpbios.c
86
struct ess_softc *sc = device_private(self);
sys/arch/i386/pnpbios/ess_pnpbios.c
89
sc->sc_dev = self;
sys/arch/i386/pnpbios/fdc_pnpbios.c
107
aprint_error_dev(self, "can't get iobase size\n");
sys/arch/i386/pnpbios/fdc_pnpbios.c
122
aprint_error_dev(self,
sys/arch/i386/pnpbios/fdc_pnpbios.c
128
aprint_error_dev(self, "unknown size: %d of io mapping\n",
sys/arch/i386/pnpbios/fdc_pnpbios.c
142
aprint_error_dev(self, "can't get iobase\n");
sys/arch/i386/pnpbios/fdc_pnpbios.c
147
aprint_error_dev(self,
sys/arch/i386/pnpbios/fdc_pnpbios.c
153
aprint_error_dev(self, "unable to map CTL I/O space\n");
sys/arch/i386/pnpbios/fdc_pnpbios.c
158
aprint_error_dev(self, "unable to get DMA channel\n");
sys/arch/i386/pnpbios/fdc_pnpbios.c
162
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/fdc_pnpbios.c
164
aprint_error_dev(self,
sys/arch/i386/pnpbios/fdc_pnpbios.c
83
fdc_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/fdc_pnpbios.c
85
struct fdc_pnpbios_softc *pdc = device_private(self);
sys/arch/i386/pnpbios/fdc_pnpbios.c
92
fdc->sc_dev = self;
sys/arch/i386/pnpbios/fdc_pnpbios.c
97
aprint_error_dev(self, "unable to map I/O space\n");
sys/arch/i386/pnpbios/joy_pnpbios.c
72
joy_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/joy_pnpbios.c
74
struct joy_softc *sc = device_private(self);
sys/arch/i386/pnpbios/joy_pnpbios.c
75
struct joy_pnpbios_softc *psc = device_private(self);
sys/arch/i386/pnpbios/joy_pnpbios.c
84
sc->sc_dev = self;
sys/arch/i386/pnpbios/joy_pnpbios.c
85
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/lm_pnpbios.c
127
lm_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/lm_pnpbios.c
129
struct lm_softc *sc = device_private(self);
sys/arch/i386/pnpbios/lm_pnpbios.c
143
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/lpt_pnpbios.c
72
lpt_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/lpt_pnpbios.c
74
struct lpt_pnpbios_softc *psc = device_private(self);
sys/arch/i386/pnpbios/lpt_pnpbios.c
78
sc->sc_dev = self;
sys/arch/i386/pnpbios/lpt_pnpbios.c
87
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/pciide_pnpbios.c
100
aprint_error_dev(self, "unable to map DMA registers\n");
sys/arch/i386/pnpbios/pciide_pnpbios.c
105
aprint_error_dev(self, "unable to map command registers\n");
sys/arch/i386/pnpbios/pciide_pnpbios.c
110
aprint_error_dev(self, "unable to map control register\n");
sys/arch/i386/pnpbios/pciide_pnpbios.c
128
aprint_error_dev(self, "can't subregion offset %d "
sys/arch/i386/pnpbios/pciide_pnpbios.c
159
aprint_error_dev(self, "unable to subregion "
sys/arch/i386/pnpbios/pciide_pnpbios.c
187
device_xname(self), 0, drive);
sys/arch/i386/pnpbios/pciide_pnpbios.c
78
pciide_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/pciide_pnpbios.c
80
struct pciide_softc *sc = device_private(self);
sys/arch/i386/pnpbios/pciide_pnpbios.c
90
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/i386/pnpbios/pciide_pnpbios.c
94
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/pciide_pnpbios.c
96
aprint_normal_dev(self, "Toshiba Extended IDE Controller\n");
sys/arch/i386/pnpbios/pckbc_pnpbios.c
103
pckbc_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/pckbc_pnpbios.c
105
struct pckbc_pnpbios_softc *psc = device_private(self);
sys/arch/i386/pnpbios/pckbc_pnpbios.c
113
sc->sc_dv = self;
sys/arch/i386/pnpbios/pckbc_pnpbios.c
127
aprint_error_dev(self, "unable to get IRQ number or type\n");
sys/arch/i386/pnpbios/pnpbios.c
276
pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/pnpbios.c
278
struct pnpbios_softc *sc = device_private(self);
sys/arch/i386/pnpbios/pnpbios.c
292
sc->sc_dev = self;
sys/arch/i386/pnpbios/pnpbios.c
310
(unsigned int)evaddrp, device_xname(self));
sys/arch/i386/pnpbios/pnpbios.c
320
aprint_error_dev(self, "couldn't map event flag 0x%08x\n",
sys/arch/i386/pnpbios/pnpbios.c
355
EDPRINTF(("%s: event flag vaddr 0x%08x\n", device_xname(self),
sys/arch/i386/pnpbios/pnpbios.c
375
"%s", device_xname(self)))
sys/arch/i386/pnpbios/sb_pnpbios.c
103
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/sb_pnpbios.c
105
aprint_normal("%s", device_xname(self));
sys/arch/i386/pnpbios/sb_pnpbios.c
107
if (!sbmatch(sc, 0, device_cfdata(self))) {
sys/arch/i386/pnpbios/sb_pnpbios.c
108
aprint_error_dev(self, "sbmatch failed\n");
sys/arch/i386/pnpbios/sb_pnpbios.c
74
sb_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/sb_pnpbios.c
76
struct sbdsp_softc *sc = device_private(self);
sys/arch/i386/pnpbios/sb_pnpbios.c
79
sc->sc_dev = self;
sys/arch/i386/pnpbios/wss_pnpbios.c
102
wss_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/wss_pnpbios.c
104
struct wss_softc *sc = device_private(self);
sys/arch/i386/pnpbios/wss_pnpbios.c
130
sc->sc_ad1848.sc_ad1848.sc_dev = self;
sys/arch/i386/pnpbios/wss_pnpbios.c
152
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/wss_pnpbios.c
154
aprint_naive("%s", device_xname(self));
sys/arch/i386/pnpbios/wss_pnpbios.c
155
aprint_normal("%s", device_xname(self));
sys/arch/i386/pnpbios/wss_pnpbios.c
158
aprint_error_dev(self, "ad1848 probe failed\n");
sys/arch/i386/pnpbios/wss_pnpbios.c
171
config_found(self, &arg, audioprint, CFARGS(.iattr = "wss"));
sys/arch/i386/pnpbios/ym_pnpbios.c
133
pnpbios_print_devres(self, aa);
sys/arch/i386/pnpbios/ym_pnpbios.c
135
aprint_naive("%s", device_xname(self));
sys/arch/i386/pnpbios/ym_pnpbios.c
136
aprint_normal("%s", device_xname(self));
sys/arch/i386/pnpbios/ym_pnpbios.c
141
aprint_error_dev(self, "bus_space_subregion failed\n");
sys/arch/i386/pnpbios/ym_pnpbios.c
81
ym_pnpbios_attach(device_t parent, device_t self, void *aux)
sys/arch/i386/pnpbios/ym_pnpbios.c
83
struct ym_softc *sc = device_private(self);
sys/arch/i386/pnpbios/ym_pnpbios.c
87
ac->sc_dev = self;
sys/arch/ia64/ia64/cpu.c
103
ci->ci_dev = self;
sys/arch/ia64/ia64/cpu.c
75
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/ia64/ia64/cpu.c
77
struct cpu_softc *sc = device_private(self);
sys/arch/ia64/ia64/cpu.c
93
sc->sc_dev = self;
sys/arch/ia64/ia64/mainbus.c
110
config_found(self, entry, NULL,
sys/arch/ia64/ia64/mainbus.c
130
config_found(self, &aaa, NULL,
sys/arch/ia64/ia64/mainbus.c
65
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/ia64/ia64/ssc.c
64
sscconsattach(device_t parent, device_t self, void *aux)
sys/arch/ia64/pci/pci_machdep.c
39
pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/ibmnws/ibmnws/cpu.c
66
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/ibmnws/ibmnws/cpu.c
68
struct cpu_softc *sc = device_private(self);
sys/arch/ibmnws/ibmnws/cpu.c
70
sc->sc_dev = self;
sys/arch/ibmnws/ibmnws/cpu.c
71
sc->sc_info = cpu_attach_common(self, 0);
sys/arch/ibmnws/ibmnws/mainbus.c
107
sc->sc_dev = self;
sys/arch/ibmnws/ibmnws/mainbus.c
110
config_found(self, &ca, mainbus_print,
sys/arch/ibmnws/ibmnws/mainbus.c
149
config_found(self, &mba.mba_pba, pcibusprint,
sys/arch/ibmnws/ibmnws/mainbus.c
162
config_found(self, &mba.mba_pba, mainbus_print,
sys/arch/ibmnws/ibmnws/mainbus.c
97
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/ibmnws/ibmnws/mainbus.c
99
struct mainbus_softc *sc = device_private(self);
sys/arch/iyonix/iyonix/com_obio.c
69
com_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/iyonix/iyonix/com_obio.c
72
struct com_obio_softc *osc = device_private(self);
sys/arch/iyonix/iyonix/com_obio.c
77
sc->sc_dev = self;
sys/arch/iyonix/iyonix/com_obio.c
93
aprint_error_dev(self,
sys/arch/iyonix/iyonix/i80321_mainbus.c
102
sc->sc_dev = self;
sys/arch/iyonix/iyonix/i80321_mainbus.c
120
device_xname(self));
sys/arch/iyonix/iyonix/i80321_mainbus.c
125
device_xname(self));
sys/arch/iyonix/iyonix/i80321_mainbus.c
94
i80321_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/iyonix/iyonix/i80321_mainbus.c
96
struct i80321_softc *sc = device_private(self);
sys/arch/iyonix/iyonix/obio.c
105
config_search(self, NULL,
sys/arch/iyonix/iyonix/obio.c
93
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/landisk/dev/btn_obio.c
113
btn_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/landisk/dev/btn_obio.c
121
sc = device_private(self);
sys/arch/landisk/dev/btn_obio.c
122
sc->sc_dev = self;
sys/arch/landisk/dev/btn_obio.c
131
aprint_error_dev(self, "unable to establish interrupt");
sys/arch/landisk/dev/btn_obio.c
135
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/arch/landisk/dev/btn_obio.c
138
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/landisk/dev/btn_obio.c
148
aprint_error_dev(self,
sys/arch/landisk/dev/btn_obio.c
161
device_t self = sc->sc_dev;
sys/arch/landisk/dev/btn_obio.c
182
aprint_normal_dev(self,
sys/arch/landisk/dev/btn_obio.c
196
aprint_normal_dev(self,
sys/arch/landisk/dev/obio.c
108
config_search(self, NULL,
sys/arch/landisk/dev/obio.c
90
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/landisk/dev/obio.c
92
struct obio_softc *sc = device_private(self);
sys/arch/landisk/dev/obio.c
98
sc->sc_dev = self;
sys/arch/landisk/dev/pwrsw_obio.c
104
aprint_error_dev(self, "unable to establish interrupt");
sys/arch/landisk/dev/pwrsw_obio.c
109
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/landisk/dev/pwrsw_obio.c
86
pwrsw_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/landisk/dev/pwrsw_obio.c
93
sc = device_private(self);
sys/arch/landisk/dev/pwrsw_obio.c
94
sc->sc_dev = self;
sys/arch/landisk/dev/pwrsw_obio.c
98
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/arch/landisk/dev/rs5c313_landisk.c
89
rs5c313_landisk_attach(device_t parent, device_t self, void *aux)
sys/arch/landisk/dev/rs5c313_landisk.c
91
struct rs5c313_softc *sc = device_private(self);
sys/arch/landisk/dev/rs5c313_landisk.c
93
sc->sc_dev = self;
sys/arch/landisk/dev/wdc_obio.c
122
wdc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/landisk/dev/wdc_obio.c
124
struct wdc_obio_softc *sc = device_private(self);
sys/arch/landisk/dev/wdc_obio.c
132
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/landisk/dev/wdc_obio.c
142
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/landisk/dev/wdc_obio.c
150
aprint_error_dev(self,
sys/arch/landisk/include/pci_machdep.h
82
#define pci_attach_hook(pa, self, pba) \
sys/arch/landisk/include/pci_machdep.h
83
landisk_pci_attach_hook(pa, self, pba)
sys/arch/landisk/landisk/mainbus.c
103
config_found(self, &mba, mainbus_print, CFARGS_NONE);
sys/arch/landisk/landisk/mainbus.c
66
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/landisk/landisk/mainbus.c
83
config_found(self, &mba, mainbus_print, CFARGS_NONE);
sys/arch/landisk/landisk/mainbus.c
89
config_found(self, &mba, mainbus_print, CFARGS_NONE);
sys/arch/landisk/landisk/mainbus.c
95
config_found(self, &mba, mainbus_print, CFARGS_NONE);
sys/arch/landisk/landisk/shpcic_machdep.c
84
landisk_pci_attach_hook(device_t parent, device_t self,
sys/arch/luna68k/dev/if_le.c
174
le_attach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/if_le.c
176
struct le_softc *lesc = device_private(self);
sys/arch/luna68k/dev/if_le.c
180
sc->sc_dev = self;
sys/arch/luna68k/dev/lcd.c
139
lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/lunafb.c
199
omfbattach(device_t parent, device_t self, void *args)
sys/arch/luna68k/dev/lunafb.c
201
struct omfb_softc *sc = device_private(self);
sys/arch/luna68k/dev/lunafb.c
204
sc->sc_dev = self;
sys/arch/luna68k/dev/lunafb.c
223
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/luna68k/dev/lunaws.c
214
wsattach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/lunaws.c
216
struct ws_softc *sc = device_private(self);
sys/arch/luna68k/dev/lunaws.c
222
sc->sc_dev = self;
sys/arch/luna68k/dev/lunaws.c
246
rnd_attach_source(&sc->sc_rndsource, device_xname(self),
sys/arch/luna68k/dev/lunaws.c
261
sc->sc_wskbddev = config_found(self, &a, wskbddevprint,
sys/arch/luna68k/dev/lunaws.c
269
sc->sc_wsmousedev = config_found(self, &b, wsmousedevprint,
sys/arch/luna68k/dev/psgpam.c
211
psgpam_attach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/psgpam.c
216
sc = device_private(self);
sys/arch/luna68k/dev/psgpam.c
217
sc->sc_dev = self;
sys/arch/luna68k/dev/sio.c
72
sio_attach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/sio.c
74
struct sio_softc *sc = device_private(self);
sys/arch/luna68k/dev/sio.c
82
sc->sc_dev = self;
sys/arch/luna68k/dev/sio.c
88
config_found(self, (void *)&sio_args, sio_print, CFARGS_NONE);
sys/arch/luna68k/dev/siotty.c
168
siotty_attach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/siotty.c
171
struct siotty_softc *sc = device_private(self);
sys/arch/luna68k/dev/siotty.c
176
sc->sc_dev = self;
sys/arch/luna68k/dev/spc.c
85
spc_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/spc.c
87
struct spc_softc *sc = device_private(self);
sys/arch/luna68k/dev/spc.c
90
sc->sc_dev = self;
sys/arch/luna68k/dev/timekeeper.c
106
sc->sc_todr.todr_dev = self;
sys/arch/luna68k/dev/timekeeper.c
82
clock_attach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/timekeeper.c
84
struct timekeeper_softc *sc = device_private(self);
sys/arch/luna68k/dev/timekeeper.c
87
sc->sc_dev = self;
sys/arch/luna68k/dev/timekeeper.c
97
sc->sc_todr.todr_dev = self;
sys/arch/luna68k/dev/xp.c
123
xp_attach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/xp.c
125
struct xp_softc *sc = device_private(self);
sys/arch/luna68k/dev/xp.c
127
sc->sc_dev = self;
sys/arch/luna68k/dev/xpbus.c
122
xpbus_attach(device_t parent, device_t self, void *aux)
sys/arch/luna68k/dev/xpbus.c
124
struct xpbus_softc *sc = device_private(self);
sys/arch/luna68k/dev/xpbus.c
128
sc->sc_dev = self;
sys/arch/luna68k/dev/xpbus.c
133
config_found(self, &xa, NULL, CFARGS_NONE);
sys/arch/luna68k/luna68k/mainbus.c
75
mainbus_attach(device_t parent, device_t self, void *args)
sys/arch/luna68k/luna68k/mainbus.c
87
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/mac68k/dev/adb.c
123
config_interrupts(self, adb_config_interrupts);
sys/arch/mac68k/dev/adb.c
127
adb_config_interrupts(device_t self)
sys/arch/mac68k/dev/adb.c
134
printf("%s", device_xname(self));
sys/arch/mac68k/dev/adb.c
184
(void)config_found(self, &aa_args, adbprint, CFARGS_NONE);
sys/arch/mac68k/dev/adb.c
196
(void)config_found(self, &aa_args, adbprint, CFARGS_NONE);
sys/arch/mac68k/dev/adb.c
94
adbattach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/dev/aed.c
130
aedattach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/dev/aed.c
133
struct aed_softc *sc = device_private(self);
sys/arch/mac68k/dev/aed.c
150
sc->sc_options = (device_cfdata(self)->cf_flags | aed_options);
sys/arch/mac68k/dev/aed.c
160
pmf_event_register(self, PMFE_DISPLAY_ON,
sys/arch/mac68k/dev/aed.c
162
pmf_event_register(self, PMFE_DISPLAY_OFF,
sys/arch/mac68k/dev/aed.c
164
pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_UP,
sys/arch/mac68k/dev/aed.c
166
pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_DOWN,
sys/arch/mac68k/dev/aed.c
172
(void)config_found(self, &aa_args, NULL, CFARGS_NONE);
sys/arch/mac68k/dev/akbd.c
131
akbdattach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/dev/akbd.c
134
struct akbd_softc *sc = device_private(self);
sys/arch/mac68k/dev/akbd.c
266
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/mac68k/dev/ams.c
104
amsattach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/dev/ams.c
107
struct ams_softc *sc = device_private(self);
sys/arch/mac68k/dev/ams.c
203
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/mac68k/dev/genfb_grfbus.c
240
genfb_grfbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/dev/genfb_grfbus.c
242
struct genfb_grfbus_softc * const sc = device_private(self);
sys/arch/mac68k/dev/genfb_grfbus.c
246
sc->sc_gen.sc_dev = self;
sys/arch/mac68k/dev/macfb.c
191
macfb_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/dev/macfb.c
199
sc = device_private(self);
sys/arch/mac68k/dev/macfb.c
233
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/mac68k/dev/macfb.c
236
grf_attach(sc, device_unit(self));
sys/arch/mac68k/dev/ncr5380.c
194
ncr_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/dev/ncr5380.c
199
sc = device_private(self);
sys/arch/mac68k/dev/ncr5380.c
201
sc->sc_dev = self;
sys/arch/mac68k/dev/ncr5380.c
202
sc->sc_adapter.adapt_dev = self;
sys/arch/mac68k/dev/ncr5380.c
250
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/mac68k/dev/pbbat.c
227
pbbatattach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/dev/pbbat.c
229
struct pbatt_softc *sc = device_private(self);
sys/arch/mac68k/dev/pbbat.c
246
config_interrupts(self, bat_init_envsys);
sys/arch/mac68k/dev/pbbat.c
250
bat_get_pm_limits(device_t self)
sys/arch/mac68k/dev/pbbat.c
255
struct pbatt_softc *sc = device_private(self);
sys/arch/mac68k/dev/pbbat.c
315
device_t self = sme->sme_cookie;
sys/arch/mac68k/dev/pbbat.c
316
struct pbatt_softc *sc = device_private(self);
sys/arch/mac68k/dev/pbbat.c
327
bat_update_status(self);
sys/arch/mac68k/dev/pbbat.c
389
device_t self = sme->sme_cookie;
sys/arch/mac68k/dev/pbbat.c
390
struct pbatt_softc *sc = device_private(self);
sys/arch/mac68k/dev/zs.c
236
zsc_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/dev/zs.c
238
struct zsc_softc *zsc = device_private(self);
sys/arch/mac68k/dev/zs.c
245
zsc->zsc_dev = self;
sys/arch/mac68k/dev/zs.c
319
device_unit(self), channel, cs->cs_defspeed,
sys/arch/mac68k/dev/zs.c
366
if (!config_found(self, (void *)&zsc_args, zsc_print,
sys/arch/mac68k/mac68k/mainbus.c
85
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/mac68k/mainbus.c
95
config_search(self, &mba,
sys/arch/mac68k/nubus/cpi_nubus.c
247
cpi_nubus_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/nubus/cpi_nubus.c
253
sc = device_private(self);
sys/arch/mac68k/nubus/cpi_nubus.c
254
sc->sc_options = (device_cfdata(self)->cf_flags & CPI_OPTIONS_MASK);
sys/arch/mac68k/nubus/grf_nubus.c
132
grfmv_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/nubus/grf_nubus.c
134
struct grfbus_softc *sc = device_private(self);
sys/arch/mac68k/nubus/grf_nubus.c
145
sc->sc_dev = self;
sys/arch/mac68k/nubus/grf_nubus.c
229
device_xname(self));
sys/arch/mac68k/nubus/grf_nubus.c
352
device_xname(self), sc->card_id);
sys/arch/mac68k/nubus/if_ae_nubus.c
122
ae_nubus_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/nubus/if_ae_nubus.c
124
struct dp8390_softc *sc = device_private(self);
sys/arch/mac68k/nubus/if_ae_nubus.c
134
sc->sc_dev = self;
sys/arch/mac68k/nubus/if_ae_nubus.c
143
sc->sc_flags = device_cfdata(self)->cf_flags;
sys/arch/mac68k/nubus/if_netdock_nubus.c
225
netdock_nubus_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/nubus/if_netdock_nubus.c
227
struct netdock_softc *sc = device_private(self);
sys/arch/mac68k/nubus/if_netdock_nubus.c
241
sc->sc_dev = self;
sys/arch/mac68k/nubus/if_sm_nubus.c
101
struct smc91cxx_softc *smc = device_private(self);
sys/arch/mac68k/nubus/if_sm_nubus.c
117
smc->sc_dev = self;
sys/arch/mac68k/nubus/if_sm_nubus.c
99
sm_nubus_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/nubus/if_sn_nubus.c
101
sn_nubus_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/nubus/if_sn_nubus.c
103
struct sonic_softc *sc = device_private(self);
sys/arch/mac68k/nubus/if_sn_nubus.c
117
sc->sc_dev = self;
sys/arch/mac68k/nubus/nubus.c
126
device_xname(self), i,
sys/arch/mac68k/nubus/nubus.c
252
config_found(self, &na_args, nubus_print, CFARGS_NONE);
sys/arch/mac68k/nubus/nubus.c
96
nubus_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/asc.c
184
ascattach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/asc.c
186
struct asc_softc *sc = device_private(self);
sys/arch/mac68k/obio/asc.c
191
sc->sc_dev = self;
sys/arch/mac68k/obio/ascaudio.c
181
ascaudioattach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/ascaudio.c
183
struct ascaudio_softc *sc = device_private(self);
sys/arch/mac68k/obio/ascaudio.c
188
sc->sc_dev = self;
sys/arch/mac68k/obio/ascaudio.c
204
sc->sc_options = ((device_cfdata(self)->cf_flags) &
sys/arch/mac68k/obio/esp.c
174
espattach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/esp.c
176
struct esp_softc *esc = device_private(self);
sys/arch/mac68k/obio/esp.c
185
sc->sc_dev = self;
sys/arch/mac68k/obio/grf_obio.c
194
grfiv_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/grf_obio.c
202
sc = device_private(self);
sys/arch/mac68k/obio/grf_obio.c
203
sc->sc_dev = self;
sys/arch/mac68k/obio/if_mc_obio.c
110
mc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/if_mc_obio.c
113
struct mc_softc *sc = device_private(self);
sys/arch/mac68k/obio/if_mc_obio.c
117
sc->sc_dev = self;
sys/arch/mac68k/obio/if_sn_obio.c
101
sc->sc_dev = self;
sys/arch/mac68k/obio/if_sn_obio.c
94
sn_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/if_sn_obio.c
96
struct sonic_softc *sc = device_private(self);
sys/arch/mac68k/obio/iwm_fd.c
355
iwm_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/iwm_fd.c
362
iwm = device_private(self);
sys/arch/mac68k/obio/iwm_fd.c
377
config_found(self, (void *)&ia,
sys/arch/mac68k/obio/iwm_fd.c
434
fd_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/iwm_fd.c
442
fd = device_private(self);
sys/arch/mac68k/obio/iwm_fd.c
443
fd->sc_dev = self;
sys/arch/mac68k/obio/obio.c
67
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/obio.c
72
config_search(self, aux,
sys/arch/mac68k/obio/sbc_obio.c
114
sbc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/sbc_obio.c
116
struct sbc_softc *sc = device_private(self);
sys/arch/mac68k/obio/sbc_obio.c
122
ncr_sc->sc_dev = self;
sys/arch/mac68k/obio/sbc_obio.c
124
sc->sc_options = ((device_cfdata(self)->cf_flags |
sys/arch/mac68k/obio/sbc_obio.c
249
aprint_debug_dev(self, "softc=%p regs=%p\n", sc, sc->sc_regs);
sys/arch/mac68k/obio/wdc_obio.c
134
wdc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/mac68k/obio/wdc_obio.c
136
struct wdc_obio_softc *sc = device_private(self);
sys/arch/mac68k/obio/wdc_obio.c
142
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/mac68k/obio/wdc_obio.c
204
if ((device_cfdata(self)->cf_flags & ATAC_CAP_NOIRQ) != 0)
sys/arch/macppc/dev/abtn.c
84
abtn_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/abtn.c
86
struct abtn_softc *sc = device_private(self);
sys/arch/macppc/dev/abtn.c
91
sc->sc_dev = self;
sys/arch/macppc/dev/adb.c
101
struct adb_softc *sc = device_private(self);
sys/arch/macppc/dev/adb.c
136
device_xname(self));
sys/arch/macppc/dev/adb.c
140
device_xname(self));
sys/arch/macppc/dev/adb.c
153
(void)config_found(self, &aa_args, NULL, CFARGS_NONE);
sys/arch/macppc/dev/adb.c
177
(void)config_found(self, &aa_args, adbprint, CFARGS_NONE);
sys/arch/macppc/dev/adb.c
189
(void)config_found(self, &aa_args, adbprint, CFARGS_NONE);
sys/arch/macppc/dev/adb.c
99
adbattach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/aed.c
116
aedattach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/aed.c
119
struct aed_softc *sc = device_private(self);
sys/arch/macppc/dev/aed.c
136
sc->sc_options = (device_cfdata(self)->cf_flags | aed_options);
sys/arch/macppc/dev/akbd.c
125
akbdattach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/akbd.c
128
struct akbd_softc *sc = device_private(self);
sys/arch/macppc/dev/akbd.c
253
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/macppc/dev/ams.c
102
amsattach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/ams.c
105
struct ams_softc *sc = device_private(self);
sys/arch/macppc/dev/ams.c
110
sc->sc_dev = self;
sys/arch/macppc/dev/ams.c
202
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/macppc/dev/apm.c
163
apmattach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/apm.c
165
struct apm_softc *sc = device_private(self);
sys/arch/macppc/dev/awacs.c
304
awacs_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/awacs.c
313
sc = device_private(self);
sys/arch/macppc/dev/awacs.c
314
sc->sc_dev = self;
sys/arch/macppc/dev/awacs.c
366
device_xname(self));
sys/arch/macppc/dev/awacs.c
370
snprintf(intr_xname, sizeof(intr_xname), "%s out", device_xname(self));
sys/arch/macppc/dev/awacs.c
374
snprintf(intr_xname, sizeof(intr_xname), "%s in", device_xname(self));
sys/arch/macppc/dev/battery.c
114
battery_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/battery.c
117
struct battery_softc *sc = device_private(self);
sys/arch/macppc/dev/battery.c
120
sc->sc_dev = self;
sys/arch/macppc/dev/battery.c
149
aprint_error_dev(self,
sys/arch/macppc/dev/com_mainbus.c
112
device_xname(self));
sys/arch/macppc/dev/com_mainbus.c
82
com_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/com_mainbus.c
84
struct com_mainbus_softc *msc = device_private(self);
sys/arch/macppc/dev/com_mainbus.c
92
sc->sc_dev = self;
sys/arch/macppc/dev/cuda.c
222
cuda_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/cuda.c
225
struct cuda_softc *sc = device_private(self);
sys/arch/macppc/dev/cuda.c
231
sc->sc_dev = self;
sys/arch/macppc/dev/cuda.c
259
device_xname(self));
sys/arch/macppc/dev/cuda.c
270
config_interrupts(self, cuda_final);
sys/arch/macppc/dev/cuda.c
287
config_found(self, &sc->sc_adbops, nadb_print,
sys/arch/macppc/dev/cuda.c
293
sc->sc_todr.todr_dev = self;
sys/arch/macppc/dev/cuda.c
304
config_found(self, &caa, cuda_print, CFARGS_NONE);
sys/arch/macppc/dev/cuda.c
315
iicbus_attach_with_devhandle(self, &sc->sc_i2c,
sys/arch/macppc/dev/cuda.c
316
devhandle_subclass(device_handle(self),
sys/arch/macppc/dev/deq.c
78
deq_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/deq.c
80
struct deq_softc *sc = device_private(self);
sys/arch/macppc/dev/deq.c
84
sc->sc_dev = self;
sys/arch/macppc/dev/deq.c
85
sc->sc_node = devhandle_to_of(device_handle(self));
sys/arch/macppc/dev/drivebay.c
135
drivebay_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/drivebay.c
137
struct drivebay_softc *sc = device_private(self);
sys/arch/macppc/dev/drivebay.c
142
sc->sc_dev = self;
sys/arch/macppc/dev/drivebay.c
208
drivebay_detach(device_t self, int flags)
sys/arch/macppc/dev/esp.c
157
espattach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/esp.c
159
struct esp_softc *esc = device_private(self);
sys/arch/macppc/dev/esp.c
168
sc->sc_dev = self;
sys/arch/macppc/dev/esp.c
232
device_xname(self));
sys/arch/macppc/dev/esp.c
243
if (!pmf_device_register1(self, NULL, NULL, esp_shutdown))
sys/arch/macppc/dev/esp.c
244
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/macppc/dev/esp.c
498
esp_shutdown(device_t self, int howto)
sys/arch/macppc/dev/esp.c
503
esc = device_private(self);
sys/arch/macppc/dev/fcu.c
134
fcu_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/fcu.c
136
struct fcu_softc *sc = device_private(self);
sys/arch/macppc/dev/fcu.c
138
int phandle = devhandle_to_of(device_handle(self));
sys/arch/macppc/dev/fcu.c
141
sc->sc_dev = self;
sys/arch/macppc/dev/fcu.c
160
aprint_error_dev(self, "no EEPROM data for CPU 0\n");
sys/arch/macppc/dev/fcu.c
191
sc->sc_sme->sme_name = device_xname(self);
sys/arch/macppc/dev/gpio.c
122
config_found(self, &ca2, gpio_obio_print,
sys/arch/macppc/dev/gpio.c
156
gpio_gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/gpio.c
158
struct gpio_softc *sc = device_private(self);
sys/arch/macppc/dev/gpio.c
164
device_xname(self));
sys/arch/macppc/dev/gpio.c
84
gpio_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/gpio.c
86
struct gpio_softc *sc = device_private(self);
sys/arch/macppc/dev/gpio.c
99
devhandle_t selfh = device_handle(self);
sys/arch/macppc/dev/if_bm.c
175
bmac_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/if_bm.c
178
struct bmac_softc *sc = device_private(self);
sys/arch/macppc/dev/if_bm.c
186
sc->sc_dev = self;
sys/arch/macppc/dev/if_bm.c
210
if (! ether_getaddr(self, laddr)) {
sys/arch/macppc/dev/if_bm.c
228
snprintf(intr_xname, sizeof(intr_xname), "%s tx", device_xname(self));
sys/arch/macppc/dev/if_bm.c
232
snprintf(intr_xname, sizeof(intr_xname), "%s rx", device_xname(self));
sys/arch/macppc/dev/if_bm.c
847
bmac_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/macppc/dev/if_bm.c
849
return mii_bitbang_readreg(self, &bmac_mbo, phy, reg, val);
sys/arch/macppc/dev/if_bm.c
853
bmac_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/macppc/dev/if_bm.c
855
return mii_bitbang_writereg(self, &bmac_mbo, phy, reg, val);
sys/arch/macppc/dev/if_bm.c
859
bmac_mbo_read(device_t self)
sys/arch/macppc/dev/if_bm.c
861
struct bmac_softc *sc = device_private(self);
sys/arch/macppc/dev/if_bm.c
867
bmac_mbo_write(device_t self, uint32_t val)
sys/arch/macppc/dev/if_bm.c
869
struct bmac_softc *sc = device_private(self);
sys/arch/macppc/dev/if_gm.c
141
gmac_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/if_gm.c
143
struct gmac_softc * const sc = device_private(self);
sys/arch/macppc/dev/if_gm.c
149
const char * const xname = device_xname(self);
sys/arch/macppc/dev/if_gm.c
157
sc->sc_dev = self;
sys/arch/macppc/dev/if_gm.c
165
if (! ether_getaddr(self, laddr)) {
sys/arch/macppc/dev/if_gm.c
182
device_xname(self)) == NULL) {
sys/arch/macppc/dev/if_gm.c
218
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/arch/macppc/dev/if_gm.c
240
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY, 0);
sys/arch/macppc/dev/if_gm.c
836
gmac_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/macppc/dev/if_gm.c
838
struct gmac_softc *sc = device_private(self);
sys/arch/macppc/dev/if_gm.c
859
gmac_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/macppc/dev/if_gm.c
861
struct gmac_softc *sc = device_private(self);
sys/arch/macppc/dev/if_mc.c
105
mc_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/if_mc.c
108
struct mc_softc *sc = device_private(self);
sys/arch/macppc/dev/if_mc.c
113
sc->sc_dev = self;
sys/arch/macppc/dev/if_mc.c
136
if (! ether_getaddr(self, myaddr)) {
sys/arch/macppc/dev/if_mc.c
176
snprintf(intr_xname, sizeof(intr_xname), "%s dma", device_xname(self));
sys/arch/macppc/dev/if_mc.c
180
snprintf(intr_xname, sizeof(intr_xname), "%s pio", device_xname(self));
sys/arch/macppc/dev/if_wi_obio.c
111
printf("%s: failed to attach controller\n", device_xname(self));
sys/arch/macppc/dev/if_wi_obio.c
115
if (!pmf_device_register(self, NULL, NULL))
sys/arch/macppc/dev/if_wi_obio.c
116
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/macppc/dev/if_wi_obio.c
118
pmf_class_network_register(self, &sc->sc_wi.sc_if);
sys/arch/macppc/dev/if_wi_obio.c
122
wi_obio_enable(self, 0);
sys/arch/macppc/dev/if_wi_obio.c
126
wi_obio_enable(device_t self, int enable)
sys/arch/macppc/dev/if_wi_obio.c
88
wi_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/if_wi_obio.c
90
struct wi_obio_softc * const sc = device_private(self);
sys/arch/macppc/dev/if_wi_obio.c
96
device_xname(self));
sys/arch/macppc/dev/if_wi_obio.c
98
wisc->sc_dev = self;
sys/arch/macppc/dev/kauai.c
105
kauai_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/kauai.c
107
struct kauai_softc *sc = device_private(self);
sys/arch/macppc/dev/kauai.c
117
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/macppc/dev/kauai.c
149
aprint_debug_dev(self,
sys/arch/macppc/dev/kauai.c
175
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/macppc/dev/kauai.c
183
aprint_error_dev(self,
sys/arch/macppc/dev/kauai.c
190
device_xname(self)) == NULL) {
sys/arch/macppc/dev/kauai.c
191
aprint_error_dev(self, "unable to establish interrupt\n");
sys/arch/macppc/dev/ki2c.c
151
ki2c_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/ki2c.c
153
struct ki2c_softc *sc = device_private(self);
sys/arch/macppc/dev/ki2c.c
160
sc->sc_dev = self;
sys/arch/macppc/dev/ki2c.c
213
aprint_error_dev(self,
sys/arch/macppc/dev/ki2c.c
240
cv_init(&sc->sc_todev, device_xname(self));
sys/arch/macppc/dev/ki2c.c
244
snprintf(intr_xname, sizeof(intr_xname), "%s intr", device_xname(self));
sys/arch/macppc/dev/lightbar.c
105
lightbar_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/lightbar.c
114
sc = device_private(self);
sys/arch/macppc/dev/lightbar.c
115
sc->sc_dev = self;
sys/arch/macppc/dev/lightbar.c
207
aprint_error_dev(self, "unable to create kthread\n");
sys/arch/macppc/dev/lmu.c
161
lmu_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/lmu.c
163
struct lmu_softc *sc = device_private(self);
sys/arch/macppc/dev/lmu.c
168
sc->sc_dev = self;
sys/arch/macppc/dev/lmu.c
192
sc->sc_sme->sme_name = device_xname(self);
sys/arch/macppc/dev/lmu.c
249
aprint_error_dev(self, "unable to create event kthread\n");
sys/arch/macppc/dev/mediabay.c
119
mediabay_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/mediabay.c
121
struct mediabay_softc *sc = device_private(self);
sys/arch/macppc/dev/mediabay.c
125
sc->sc_dev = self;
sys/arch/macppc/dev/mediabay.c
149
device_xname(self));
sys/arch/macppc/dev/mesh.c
202
mesh_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/mesh.c
204
struct mesh_softc *sc = device_private(self);
sys/arch/macppc/dev/mesh.c
209
sc->sc_dev = self;
sys/arch/macppc/dev/mesh.c
217
sc->sc_cfflags = device_cfdata(self)->cf_flags;
sys/arch/macppc/dev/mesh.c
246
sc->sc_adapter.adapt_dev = self;
sys/arch/macppc/dev/mesh.c
261
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/macppc/dev/mesh.c
264
device_xname(self));
sys/arch/macppc/dev/mesh.c
267
if (!pmf_device_register1(self, NULL, NULL, mesh_shutdown))
sys/arch/macppc/dev/mesh.c
268
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/macppc/dev/mesh.c
292
mesh_shutdown(device_t self, int howto)
sys/arch/macppc/dev/mesh.c
296
sc = device_private(self);
sys/arch/macppc/dev/nvram.c
103
nvram_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/nvram.c
105
struct nvram_softc *sc = device_private(self);
sys/arch/macppc/dev/obio.c
161
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/obio.c
163
struct obio_softc *sc = device_private(self);
sys/arch/macppc/dev/obio.c
174
sc->sc_dev = self;
sys/arch/macppc/dev/obio.c
247
device_xname(self));
sys/arch/macppc/dev/obio.c
275
devhandle_t selfh = device_handle(self);
sys/arch/macppc/dev/obio.c
309
config_found(self, &ca, obio_print,
sys/arch/macppc/dev/obio.c
361
device_xname(self));
sys/arch/macppc/dev/obiofan.c
123
sc->sc_sme->sme_name = device_xname(self);
sys/arch/macppc/dev/obiofan.c
81
obiofan_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/obiofan.c
83
struct obiofan_softc *sc = device_private(self);
sys/arch/macppc/dev/ofb.c
142
ofbattach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/ofb.c
144
struct ofb_softc *sc = device_private(self);
sys/arch/macppc/dev/ofb.c
152
sc->sc_dev = self;
sys/arch/macppc/dev/ofb.c
191
printf("%s: %d x %d, %dbpp\n", device_xname(self),
sys/arch/macppc/dev/ofb.c
219
config_found(self, &a, wsemuldisplaydevprint,
sys/arch/macppc/dev/ofb.c
222
config_found(self, aux, ofb_drm_print,
sys/arch/macppc/dev/pbms.c
327
pbms_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/pbms.c
332
struct pbms_softc *sc = device_private(self);
sys/arch/macppc/dev/pbms.c
379
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/macppc/dev/pbms.c
388
pbms_childdet(device_t self, device_t child)
sys/arch/macppc/dev/pbms.c
390
struct pbms_softc *sc = device_private(self);
sys/arch/macppc/dev/pbms.c
397
pbms_detach(device_t self, int flags)
sys/arch/macppc/dev/pbms.c
400
return config_detach_children(self, flags);
sys/arch/macppc/dev/pbms.c
407
pbms_activate(device_t self, enum devact act)
sys/arch/macppc/dev/pbms.c
409
struct pbms_softc *sc = device_private(self);
sys/arch/macppc/dev/platinumfb.c
467
platinumfb_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/platinumfb.c
469
struct platinumfb_softc *sc = device_private(self);
sys/arch/macppc/dev/platinumfb.c
473
sc->sc_dev = self;
sys/arch/macppc/dev/platinumfb.c
559
platinumfb_init(device_t self)
sys/arch/macppc/dev/platinumfb.c
561
struct platinumfb_softc *sc = device_private(self);
sys/arch/macppc/dev/platinumfb.c
646
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/macppc/dev/pmu.c
260
pmu_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/pmu.c
263
struct pmu_softc *sc = device_private(self);
sys/arch/macppc/dev/pmu.c
282
sc->sc_dev = self;
sys/arch/macppc/dev/pmu.c
321
aprint_error_dev(self, "unable to map registers\n");
sys/arch/macppc/dev/pmu.c
325
device_xname(self));
sys/arch/macppc/dev/pmu.c
350
aprint_normal_dev(self, "initializing IIC bus\n");
sys/arch/macppc/dev/pmu.c
354
iicbus_attach_with_devhandle(self, &sc->sc_i2c,
sys/arch/macppc/dev/pmu.c
355
devhandle_from_of(device_handle(self), node));
sys/arch/macppc/dev/pmu.c
359
aprint_normal_dev(self, "initializing ADB\n");
sys/arch/macppc/dev/pmu.c
366
config_found(self, &sc->sc_adbops, nadb_print,
sys/arch/macppc/dev/pmu.c
372
aprint_normal_dev(self, "initializing RTC\n");
sys/arch/macppc/dev/pmu.c
375
sc->sc_todr.todr_dev = self;
sys/arch/macppc/dev/pmu.c
382
aprint_normal_dev(self, "%s not configured\n", name);
sys/arch/macppc/dev/pmu.c
386
aprint_normal_dev(self, "enabling ohare backlight control\n");
sys/arch/macppc/dev/pmu.c
421
aprint_error_dev(self, "unable to create event kthread\n");
sys/arch/macppc/dev/pmu.c
427
aprint_error_dev(self,
sys/arch/macppc/dev/pmu.c
433
aprint_error_dev(self,
sys/arch/macppc/dev/psoc.c
108
psoc_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/psoc.c
110
struct psoc_softc *sc = device_private(self);
sys/arch/macppc/dev/psoc.c
116
sc->sc_dev = self;
sys/arch/macppc/dev/psoc.c
119
sc->sc_node = devhandle_to_of(device_handle(self));
sys/arch/macppc/dev/psoc.c
133
sc->sc_sme->sme_name = device_xname(self);
sys/arch/macppc/dev/smartbat.c
117
smartbat_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/smartbat.c
120
struct smartbat_softc *sc = device_private(self);
sys/arch/macppc/dev/smartbat.c
122
sc->sc_dev = self;
sys/arch/macppc/dev/smu.c
196
smu_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/smu.c
199
struct smu_softc *sc = device_private(self);
sys/arch/macppc/dev/smu.c
202
sc->sc_dev = self;
sys/arch/macppc/dev/smu.c
226
sc->sc_todr.todr_dev = self;
sys/arch/macppc/dev/smuiic.c
71
smuiic_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/smuiic.c
74
struct smuiic_softc *sc = device_private(self);
sys/arch/macppc/dev/smuiic.c
75
prop_dictionary_t dict = device_properties(self);
sys/arch/macppc/dev/smuiic.c
84
sc->sc_dev = self;
sys/arch/macppc/dev/smusat.c
129
smusat_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/smusat.c
132
struct smusat_softc *sc = device_private(self);
sys/arch/macppc/dev/smusat.c
138
sc->sc_dev = self;
sys/arch/macppc/dev/smusat.c
139
sc->sc_node = devhandle_to_of(device_handle(self));
sys/arch/macppc/dev/snapper.c
669
snapper_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/snapper.c
677
sc = device_private(self);
sys/arch/macppc/dev/snapper.c
678
sc->sc_dev = self;
sys/arch/macppc/dev/snapper.c
747
snprintf(intr_xname, sizeof(intr_xname), "%s out", device_xname(self));
sys/arch/macppc/dev/snapper.c
751
snprintf(intr_xname, sizeof(intr_xname), "%s in", device_xname(self));
sys/arch/macppc/dev/snapper.c
763
config_defer(self, snapper_defer);
sys/arch/macppc/dev/uni-n.c
100
uni_n_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/uni-n.c
102
struct uni_n_softc *sc = device_private(self);
sys/arch/macppc/dev/uni-n.c
113
sc->sc_dev = self;
sys/arch/macppc/dev/uni-n.c
129
aprint_normal_dev(self, "found EEPROM data for CPU 0\n");
sys/arch/macppc/dev/uni-n.c
134
aprint_normal_dev(self, "found EEPROM data for CPU 1\n");
sys/arch/macppc/dev/uni-n.c
144
devhandle_t selfh = device_handle(self);
sys/arch/macppc/dev/uni-n.c
166
config_found(self, &ca, uni_n_print,
sys/arch/macppc/dev/valkyriefb.c
200
valkyriefb_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/valkyriefb.c
202
struct valkyriefb_softc *sc = device_private(self);
sys/arch/macppc/dev/valkyriefb.c
205
sc->sc_dev = self;
sys/arch/macppc/dev/valkyriefb.c
222
valkyriefb_init(device_t self)
sys/arch/macppc/dev/valkyriefb.c
224
struct valkyriefb_softc *sc = device_private(self);
sys/arch/macppc/dev/valkyriefb.c
241
console = device_getprop_bool(self, "is_console");
sys/arch/macppc/dev/valkyriefb.c
263
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/macppc/dev/videopll.c
83
videopll_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/videopll.c
86
struct videopll_softc *sc = device_private(self);
sys/arch/macppc/dev/videopll.c
88
sc->sc_dev = self;
sys/arch/macppc/dev/wdc_obio.c
117
wdc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/wdc_obio.c
119
struct wdc_obio_softc *sc = device_private(self);
sys/arch/macppc/dev/wdc_obio.c
127
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/macppc/dev/wdc_obio.c
162
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/macppc/dev/wdc_obio.c
171
aprint_error_dev(self,
sys/arch/macppc/dev/wdc_obio.c
182
device_xname(self));
sys/arch/macppc/dev/wdc_obio.c
199
aprint_error_dev(self,
sys/arch/macppc/dev/wdc_obio.c
443
wdc_obio_detach(device_t self, int flags)
sys/arch/macppc/dev/wdc_obio.c
445
struct wdc_obio_softc *sc = device_private(self);
sys/arch/macppc/dev/wdc_obio.c
448
if ((error = wdcdetach(self, flags)) != 0)
sys/arch/macppc/dev/zs.c
219
zsc_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/dev/zs.c
221
struct zsc_softc *zsc = device_private(self);
sys/arch/macppc/dev/zs.c
236
zsc->zsc_dev = self;
sys/arch/macppc/dev/zs.c
394
if (!config_found(self, (void *)&zsc_args, zsc_print,
sys/arch/macppc/dev/zs.c
408
device_xname(self), channel);
sys/arch/macppc/dev/zs.c
413
device_xname(self), channel);
sys/arch/macppc/macppc/cpu.c
136
cpu_OFgetspeed(device_t self, struct cpu_info *ci)
sys/arch/macppc/macppc/cpu.c
159
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/macppc/macppc/cpu.c
165
ci = cpu_attach_common(self, id);
sys/arch/macppc/macppc/cpu.c
181
cpu_OFgetspeed(self, ci);
sys/arch/macppc/macppc/cpu.c
186
cpu_spinup(self, ci);
sys/arch/macppc/macppc/cpu.c
192
printf("%s", device_xname(self));
sys/arch/macppc/macppc/mainbus.c
102
config_found(self, &ca, NULL,
sys/arch/macppc/macppc/mainbus.c
112
config_found(self, &ca, NULL, CFARGS_NONE);
sys/arch/macppc/macppc/mainbus.c
122
config_found(self, &oba, NULL,
sys/arch/macppc/macppc/mainbus.c
135
config_found(self, &ca, NULL,
sys/arch/macppc/macppc/mainbus.c
141
config_found(self, &ca, NULL, CFARGS_NONE);
sys/arch/macppc/macppc/mainbus.c
66
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/macppc/mainbus.c
87
devhandle_t selfh = device_handle(self);
sys/arch/macppc/macppc/memory.c
127
config_found(self, &ia, NULL, CFARGS_NONE);
sys/arch/macppc/macppc/memory.c
92
memory_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/macppc/memory.c
94
struct memory_softc *sc = device_private(self);
sys/arch/macppc/macppc/memory.c
99
sc->sc_dev = self;
sys/arch/macppc/pci/bandit.c
155
config_found(self, &pba, pcibusprint,
sys/arch/macppc/pci/bandit.c
156
CFARGS(.devhandle = device_handle(self)));
sys/arch/macppc/pci/bandit.c
77
bandit_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/pci/bandit.c
79
struct bandit_softc *sc = device_private(self);
sys/arch/macppc/pci/bandit.c
92
sc->sc_dev = self;
sys/arch/macppc/pci/grackle.c
148
config_found(self, &pba, pcibusprint,
sys/arch/macppc/pci/grackle.c
149
CFARGS(.devhandle = device_handle(self)));
sys/arch/macppc/pci/grackle.c
80
grackle_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/pci/grackle.c
82
struct grackle_softc *sc = device_private(self);
sys/arch/macppc/pci/grackle.c
95
sc->sc_dev = self;
sys/arch/macppc/pci/pci_machdep.c
84
macppc_pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/macppc/pci/u3.c
105
sc->sc_dev = self;
sys/arch/macppc/pci/u3.c
168
config_found(self, &pba, pcibusprint,
sys/arch/macppc/pci/u3.c
169
CFARGS(.devhandle = devhandle_from_of(device_handle(self), child)));
sys/arch/macppc/pci/u3.c
93
ibmcpc_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/pci/u3.c
95
struct ibmcpc_softc *sc = device_private(self);
sys/arch/macppc/pci/uninorth.c
186
config_found(self, &pba, pcibusprint,
sys/arch/macppc/pci/uninorth.c
187
CFARGS(.devhandle = device_handle(self)));
sys/arch/macppc/pci/uninorth.c
82
uninorth_attach(device_t parent, device_t self, void *aux)
sys/arch/macppc/pci/uninorth.c
84
struct uninorth_softc *sc = device_private(self);
sys/arch/macppc/pci/uninorth.c
99
sc->sc_dev = self;
sys/arch/mips/adm5120/adm5120_extio.c
285
extio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/adm5120/adm5120_extio.c
287
struct extio_softc *sc = device_private(self);
sys/arch/mips/adm5120/adm5120_extio.c
296
sc->sc_dev = self;
sys/arch/mips/adm5120/adm5120_extio.c
369
config_found(self, &ea, extio_print,
sys/arch/mips/adm5120/adm5120_obio.c
144
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/adm5120/adm5120_obio.c
161
config_found(self, &oa, obio_print,
sys/arch/mips/adm5120/dev/admpci.c
177
admpciattach(device_t parent, device_t self, void *aux)
sys/arch/mips/adm5120/dev/admpci.c
180
struct admpci_softc *sc = device_private(self);
sys/arch/mips/adm5120/dev/admpci.c
188
sc->sc_dev = self;
sys/arch/mips/adm5120/dev/admpci.c
260
config_found(self, &pba, pcibusprint,
sys/arch/mips/adm5120/dev/admpci.c
268
admpci_attach_hook(device_t parent, device_t self,
sys/arch/mips/adm5120/dev/ahci.c
251
ahci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/adm5120/dev/ahci.c
254
struct ahci_softc *sc = device_private(self);
sys/arch/mips/adm5120/dev/ahci.c
270
aprint_error_dev(self, "unable to map device\n");
sys/arch/mips/adm5120/dev/ahci.c
278
aprint_error_dev(self,
sys/arch/mips/adm5120/dev/ahci.c
313
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/mips/adm5120/dev/if_admsw.c
324
admsw_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/adm5120/dev/if_admsw.c
326
struct admsw_softc *sc = device_private(self);
sys/arch/mips/adm5120/dev/if_admsw.c
335
sc->sc_dev = self;
sys/arch/mips/adm5120/dev/if_admsw.c
339
if (! ether_getaddr(self, enaddr)) {
sys/arch/mips/adm5120/dev/uart.c
125
uart_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/adm5120/dev/uart.c
128
struct uart_softc * const sc = device_private(self);
sys/arch/mips/adm5120/dev/uart.c
132
sc->sc_dev = self;
sys/arch/mips/adm5120/dev/wdc_extio.c
272
wdc_extio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/adm5120/dev/wdc_extio.c
274
struct wdc_extio_softc *sc = device_private(self);
sys/arch/mips/adm5120/dev/wdc_extio.c
282
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/mips/alchemy/aubus.c
144
aubus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/aubus.c
147
device_t sc = self;
sys/arch/mips/alchemy/aubus.c
171
config_found(self, &aa, aubus_print,
sys/arch/mips/alchemy/dev/auaudio.c
67
auaudio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/augpio.c
102
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/augpio.c
151
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/arch/mips/alchemy/dev/augpio.c
94
augpio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/augpio.c
98
struct augpio_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/aupci.c
148
aupciattach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/aupci.c
150
struct aupci_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/aupci.c
161
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/aupci.c
283
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/mips/alchemy/dev/aupci.c
290
aupci_attach_hook(device_t parent, device_t self,
sys/arch/mips/alchemy/dev/aupcmcia.c
199
aupcm_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/aupcmcia.c
202
struct aupcm_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/aupcmcia.c
207
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/aupcmcia.c
273
sp->as_pcmcia = config_found(self, &paa, aupcm_print,
sys/arch/mips/alchemy/dev/aupsc.c
103
struct aupsc_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/aupsc.c
108
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/aupsc.c
151
config_found(self, &pa, aupsc_print,
sys/arch/mips/alchemy/dev/aupsc.c
99
aupsc_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/aurtc.c
118
aurtc_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/aurtc.c
120
struct aurtc_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/aurtc.c
124
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/aurtc.c
125
sc->sc_tch.todr_dev = self;
sys/arch/mips/alchemy/dev/ausmbus_psc.c
115
ausmbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/ausmbus_psc.c
117
struct ausmbus_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/ausmbus_psc.c
122
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/ausmbus_psc.c
135
iicbus_attach(self, &sc->sc_i2c);
sys/arch/mips/alchemy/dev/auspi.c
123
auspi_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/auspi.c
125
struct auspi_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/auspi.c
129
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/auspi.c
162
spibus_attach(self, &sc->sc_spi);
sys/arch/mips/alchemy/dev/com_aubus.c
86
com_aubus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/com_aubus.c
88
struct com_aubus_softc *asc = device_private(self);
sys/arch/mips/alchemy/dev/com_aubus.c
94
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/if_aumac.c
1020
aumac_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/mips/alchemy/dev/if_aumac.c
1022
struct aumac_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/if_aumac.c
215
aumac_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/if_aumac.c
217
struct aumac_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/if_aumac.c
232
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/if_aumac.c
236
if (! ether_getaddr(self, enaddr)) {
sys/arch/mips/alchemy/dev/if_aumac.c
237
aprint_error_dev(self, "unable to get MAC address\n");
sys/arch/mips/alchemy/dev/if_aumac.c
241
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(enaddr));
sys/arch/mips/alchemy/dev/if_aumac.c
246
aprint_error_dev(self, "unable to map MAC registers\n");
sys/arch/mips/alchemy/dev/if_aumac.c
251
aprint_error_dev(self, "unable to map MACEN registers\n");
sys/arch/mips/alchemy/dev/if_aumac.c
256
aprint_error_dev(self, "unable to map MACDMA registers\n");
sys/arch/mips/alchemy/dev/if_aumac.c
267
aprint_error_dev(self,
sys/arch/mips/alchemy/dev/if_aumac.c
314
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/arch/mips/alchemy/dev/if_aumac.c
324
strcpy(ifp->if_xname, device_xname(self));
sys/arch/mips/alchemy/dev/if_aumac.c
339
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/arch/mips/alchemy/dev/if_aumac.c
344
NULL, device_xname(self), "txstall");
sys/arch/mips/alchemy/dev/if_aumac.c
346
NULL, device_xname(self), "rxstall");
sys/arch/mips/alchemy/dev/if_aumac.c
348
NULL, device_xname(self), "txintr");
sys/arch/mips/alchemy/dev/if_aumac.c
350
NULL, device_xname(self), "rxintr");
sys/arch/mips/alchemy/dev/if_aumac.c
356
aprint_error_dev(self,
sys/arch/mips/alchemy/dev/if_aumac.c
995
aumac_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/mips/alchemy/dev/if_aumac.c
997
struct aumac_softc *sc = device_private(self);
sys/arch/mips/alchemy/dev/ohci_aubus.c
129
aprint_error_dev(self, "device not ready\n");
sys/arch/mips/alchemy/dev/ohci_aubus.c
142
aprint_error_dev(self,"couldn't establish interrupt\n");
sys/arch/mips/alchemy/dev/ohci_aubus.c
149
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/arch/mips/alchemy/dev/ohci_aubus.c
155
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/mips/alchemy/dev/ohci_aubus.c
73
ohci_aubus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/alchemy/dev/ohci_aubus.c
75
ohci_softc_t *sc = device_private(self);
sys/arch/mips/alchemy/dev/ohci_aubus.c
87
sc->sc_dev = self;
sys/arch/mips/alchemy/dev/ohci_aubus.c
91
aprint_error_dev(self, "unable to map USBH registers\n");
sys/arch/mips/atheros/ar7100.c
175
ar7100_device_register(device_t self, void *aux)
sys/arch/mips/atheros/ar7100.c
177
if (device_is_a(self, "com")) {
sys/arch/mips/atheros/ar7100.c
181
prop_dictionary_set(device_properties(self), "frequency", pn);
sys/arch/mips/atheros/arbus.c
119
arbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/atheros/arbus.c
150
config_found(self, &aa, arbus_print,
sys/arch/mips/atheros/dev/argpio.c
105
argpio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/atheros/dev/argpio.c
107
struct argpio_softc *sc = device_private(self);
sys/arch/mips/atheros/dev/argpio.c
114
sc->sc_dev = self;
sys/arch/mips/atheros/dev/arpci.c
292
arpci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/atheros/dev/arpci.c
295
struct arpci_softc * const sc = device_private(self);
sys/arch/mips/atheros/dev/arpci.c
297
sc->sc_dev = self;
sys/arch/mips/atheros/dev/arpci.c
300
sc->sc_pcie = (strcmp(device_cfdata(self)->cf_name, "arpcie") == 0);
sys/arch/mips/atheros/dev/arpci.c
324
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/mips/atheros/dev/arpci.c
63
arpci_attach_hook(device_t parent, device_t self,
sys/arch/mips/atheros/dev/arspi.c
146
arspi_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/atheros/dev/arspi.c
148
struct arspi_softc *sc = device_private(self);
sys/arch/mips/atheros/dev/arspi.c
185
device_xname(self));
sys/arch/mips/atheros/dev/arspi.c
188
config_interrupts(self, arspi_interrupts);
sys/arch/mips/atheros/dev/arspi.c
193
spibus_attach(self, &sc->sc_spi);
sys/arch/mips/atheros/dev/arspi.c
197
arspi_interrupts(device_t self)
sys/arch/mips/atheros/dev/arspi.c
205
struct arspi_softc *sc = device_private(self);
sys/arch/mips/atheros/dev/athflash.c
204
flash_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/atheros/dev/athflash.c
207
struct flash_softc *sc = device_private(self);
sys/arch/mips/atheros/dev/com_arbus.c
186
com_arbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/atheros/dev/com_arbus.c
188
struct com_arbus_softc *arsc = device_private(self);
sys/arch/mips/atheros/dev/com_arbus.c
194
sc->sc_dev = self;
sys/arch/mips/atheros/dev/ehci_arbus.c
132
device_xname(self));
sys/arch/mips/atheros/dev/ehci_arbus.c
141
aprint_error("%s: init failed, error=%d\n", device_xname(self),
sys/arch/mips/atheros/dev/ehci_arbus.c
149
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/mips/atheros/dev/ehci_arbus.c
87
ehci_arbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/atheros/dev/ehci_arbus.c
89
ehci_softc_t *sc = device_private(self);
sys/arch/mips/atheros/dev/if_ae.c
1858
ae_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/mips/atheros/dev/if_ae.c
1860
struct ae_softc *sc = device_private(self);
sys/arch/mips/atheros/dev/if_ae.c
1885
ae_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/mips/atheros/dev/if_ae.c
1887
struct ae_softc *sc = device_private(self);
sys/arch/mips/atheros/dev/if_ae.c
218
ae_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/atheros/dev/if_ae.c
220
struct ae_softc *sc = device_private(self);
sys/arch/mips/atheros/dev/if_ae.c
227
sc->sc_dev = self;
sys/arch/mips/atheros/dev/if_ae.c
236
if (! ether_getaddr(self, enaddr)) {
sys/arch/mips/atheros/dev/if_ae.c
442
ae_activate(device_t self, enum devact act)
sys/arch/mips/atheros/dev/if_ae.c
444
struct ae_softc *sc = device_private(self);
sys/arch/mips/atheros/dev/if_ae.c
461
ae_detach(device_t self, int flags)
sys/arch/mips/atheros/dev/if_ae.c
463
struct ae_softc *sc = device_private(self);
sys/arch/mips/atheros/dev/if_ath_arbus.c
107
ath_arbus_attach(device_t parent, device_t self, void *opaque)
sys/arch/mips/atheros/dev/if_ath_arbus.c
117
asc = device_private(self);
sys/arch/mips/atheros/dev/if_ath_arbus.c
119
sc->sc_dev = self;
sys/arch/mips/atheros/dev/if_ath_arbus.c
139
aprint_error_dev(self, "unable to map registers\n");
sys/arch/mips/atheros/dev/if_ath_arbus.c
147
aprint_error_dev(self, "unable to locate board configuration\n");
sys/arch/mips/atheros/dev/if_ath_arbus.c
161
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/arch/mips/atheros/dev/if_ath_arbus.c
167
if (!pmf_device_register(self, NULL, ath_arbus_resume))
sys/arch/mips/atheros/dev/if_ath_arbus.c
168
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/mips/atheros/dev/if_ath_arbus.c
170
pmf_class_network_register(self, &sc->sc_if);
sys/arch/mips/atheros/dev/if_ath_arbus.c
173
aprint_error_dev(self, "ath_attach failed\n");
sys/arch/mips/atheros/dev/if_ath_arbus.c
184
ath_arbus_detach(device_t self, int flags)
sys/arch/mips/atheros/dev/if_ath_arbus.c
186
struct ath_arbus_softc *asc = device_private(self);
sys/arch/mips/atheros/dev/ohci_arbus.c
108
panic("%s: couldn't establish interrupt", device_xname(self));
sys/arch/mips/atheros/dev/ohci_arbus.c
115
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/arch/mips/atheros/dev/ohci_arbus.c
123
psc->sc_ohci_devs[0] = self;
sys/arch/mips/atheros/dev/ohci_arbus.c
125
psc->sc_ohci_devs[1] = self;
sys/arch/mips/atheros/dev/ohci_arbus.c
132
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/mips/atheros/dev/ohci_arbus.c
84
ohci_arbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/atheros/dev/ohci_arbus.c
86
ohci_softc_t * const sc = device_private(self);
sys/arch/mips/atheros/dev/ohci_arbus.c
90
sc->sc_dev = self;
sys/arch/mips/atheros/dev/ohci_arbus.c
97
aprint_error_dev(self, "unable to map registers\n");
sys/arch/mips/bonito/bonito_pci.c
85
bonito_attach_hook(device_t parent, device_t self,
sys/arch/mips/cavium/dev/if_cnmac.c
226
cnmac_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/if_cnmac.c
228
struct cnmac_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/if_cnmac.c
239
sc->sc_dev = self;
sys/arch/mips/cavium/dev/if_cnmac.c
254
device_xname(self));
sys/arch/mips/cavium/dev/if_cnmac.c
271
printf("%s: Ethernet address %s\n", device_xname(self),
sys/arch/mips/cavium/dev/if_cnmac.c
286
const int dv_unit = device_unit(self);
sys/arch/mips/cavium/dev/if_cnmac.c
309
strncpy(ifp->if_xname, device_xname(self), sizeof(ifp->if_xname));
sys/arch/mips/cavium/dev/if_cnmac.c
349
panic("%s: could not set up interrupt", device_xname(self));
sys/arch/mips/cavium/dev/if_cnmac.c
435
cnmac_mii_readreg(device_t self, int phy_addr, int reg, uint16_t *val)
sys/arch/mips/cavium/dev/if_cnmac.c
437
struct cnmac_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/if_cnmac.c
443
cnmac_mii_writereg(device_t self, int phy_addr, int reg, uint16_t val)
sys/arch/mips/cavium/dev/if_cnmac.c
445
struct cnmac_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_cib.c
107
octeon_cib_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_cib.c
109
struct octeon_cib_softc * const sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_cib.c
119
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_cib.c
151
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/mips/cavium/dev/octeon_cib.c
167
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/mips/cavium/dev/octeon_cib.c
171
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/mips/cavium/dev/octeon_dwctwo.c
154
octeon_dwc2_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_dwctwo.c
156
struct octeon_dwc2_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_dwctwo.c
163
sc->sc_dwc2.sc_dev = self;
sys/arch/mips/cavium/dev/octeon_dwctwo.c
334
octeon_dwc2_set_dma_addr(device_t self, dma_addr_t dma_addr, int ch)
sys/arch/mips/cavium/dev/octeon_dwctwo.c
336
struct octeon_dwc2_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_gmx.c
198
octgmx_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_gmx.c
200
struct octgmx_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_gmx.c
208
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_gmx.c
272
config_found(self, &gmx_aa, octgmx_print, CFARGS_NONE);
sys/arch/mips/cavium/dev/octeon_gpio.c
101
struct octgpio_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_gpio.c
106
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_gpio.c
183
fdtbus_register_gpio_controller(self, phandle, &octgpio_funcs);
sys/arch/mips/cavium/dev/octeon_gpio.c
98
octgpio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_intc.c
103
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/mips/cavium/dev/octeon_intc.c
86
octeon_intc_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_intc.c
88
struct octeon_intc_softc * const sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_intc.c
93
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_mpi.c
107
octmpi_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_mpi.c
109
struct octmpi_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_pip.c
115
config_found(self, &gmxaa, NULL, CFARGS_NONE);
sys/arch/mips/cavium/dev/octeon_pip.c
128
octpip_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_pip.c
130
struct octpip_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_pip.c
138
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_pip.c
147
aprint_error_dev(self, "couldn't get interface number for %s\n",
sys/arch/mips/cavium/dev/octeon_pip.c
166
config_found(self, &gmxaa, NULL, CFARGS_NONE);
sys/arch/mips/cavium/dev/octeon_pip.c
82
octpip_iobus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_pip.c
84
struct octpip_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_pip.c
90
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_rnm.c
162
octrnm_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_rnm.c
164
struct octrnm_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_rnm.c
174
aprint_error_dev(self, "unable to map device\n");
sys/arch/mips/cavium/dev/octeon_rnm.c
182
aprint_error_dev(self, "RNG built in self test failed: %#lx\n",
sys/arch/mips/cavium/dev/octeon_rnm.c
200
aprint_error_dev(self, "self-test: read %016"PRIx64","
sys/arch/mips/cavium/dev/octeon_rnm.c
216
rnd_attach_source(&sc->sc_rndsrc, device_xname(self), RND_TYPE_RNG,
sys/arch/mips/cavium/dev/octeon_smi.c
120
octsmi_iobus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_smi.c
122
struct octsmi_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_smi.c
126
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_smi.c
134
aprint_error_dev(self, "could not map registers\n");
sys/arch/mips/cavium/dev/octeon_smi.c
150
octsmi_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_smi.c
152
struct octsmi_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_smi.c
163
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_twsi.c
157
octeon_twsi_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_twsi.c
159
struct octeon_twsi_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_twsi.c
163
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_uart.c
111
octuart_iobus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_uart.c
113
struct octuart_iobus_softc *sc = device_private(self);
sys/arch/mips/cavium/dev/octeon_uart.c
118
sc_com->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_uart.c
146
sc->sc_ih = octeon_intr_establish(CIU_INT_UART_0 + device_unit(self),
sys/arch/mips/cavium/dev/octeon_uart.c
150
device_xname(self));
sys/arch/mips/cavium/dev/octeon_xhci.c
113
sc->sc_dev = self;
sys/arch/mips/cavium/dev/octeon_xhci.c
162
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/mips/cavium/dev/octeon_xhci.c
169
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/arch/mips/cavium/dev/octeon_xhci.c
173
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/mips/cavium/dev/octeon_xhci.c
178
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/arch/mips/cavium/dev/octeon_xhci.c
182
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/mips/cavium/dev/octeon_xhci.c
183
sc->sc_child2 = config_found(self, &sc->sc_bus2, usbctlprint,
sys/arch/mips/cavium/dev/octeon_xhci.c
82
octxhci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/dev/octeon_xhci.c
84
struct octxhci_softc *osc = device_private(self);
sys/arch/mips/cavium/mainbus.c
101
config_found(self, &aa, mainbus_print,
sys/arch/mips/cavium/mainbus.c
112
mainbus_attach_devicetree(device_t self)
sys/arch/mips/cavium/mainbus.c
120
config_found(self, &aa, mainbus_print,
sys/arch/mips/cavium/mainbus.c
125
config_found(self, &aa, mainbus_print,
sys/arch/mips/cavium/mainbus.c
150
config_found(self, &faa, NULL,
sys/arch/mips/cavium/mainbus.c
82
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/mainbus.c
87
mainbus_attach_devicetree(self);
sys/arch/mips/cavium/mainbus.c
89
mainbus_attach_static(self);
sys/arch/mips/cavium/mainbus.c
94
mainbus_attach_static(device_t self)
sys/arch/mips/cavium/octeon_bootbus.c
79
bootbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/octeon_bootbus.c
98
config_found(self, &aa, bootbus_print,
sys/arch/mips/cavium/octeon_cpunode.c
115
cpunode_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/octeon_cpunode.c
117
struct cpunode_softc * const sc = device_private(self);
sys/arch/mips/cavium/octeon_cpunode.c
121
sc->sc_dev = self;
sys/arch/mips/cavium/octeon_cpunode.c
142
config_found(self, &cnaa, cpunode_mainbus_print, CFARGS_NONE);
sys/arch/mips/cavium/octeon_cpunode.c
149
config_found(self, &cnaa, cpunode_mainbus_print, CFARGS_NONE);
sys/arch/mips/cavium/octeon_cpunode.c
250
cpu_cpunode_attach_common(device_t self, struct cpu_info *ci)
sys/arch/mips/cavium/octeon_cpunode.c
254
ci->ci_dev = self;
sys/arch/mips/cavium/octeon_cpunode.c
255
device_set_private(self, ci);
sys/arch/mips/cavium/octeon_cpunode.c
280
aprint_debug_dev(self, "hz cycles = %lu, delay divisor = %lu\n",
sys/arch/mips/cavium/octeon_cpunode.c
284
aprint_normal("%s: ", device_xname(self));
sys/arch/mips/cavium/octeon_cpunode.c
285
cpu_identify(self);
sys/arch/mips/cavium/octeon_cpunode.c
287
cpu_attach_common(self, ci);
sys/arch/mips/cavium/octeon_cpunode.c
294
cpu_cpunode_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/octeon_cpunode.c
300
cpu_cpunode_attach_common(self, curcpu());
sys/arch/mips/cavium/octeon_cpunode.c
324
cpu_cpunode_attach_common(self, ci);
sys/arch/mips/cavium/octeon_cpunode.c
332
aprint_verbose_dev(self, "hatch failed ci=%p flags=%#lx\n", ci, ci->ci_flags);
sys/arch/mips/cavium/octeon_cpunode.c
452
wdog_cpunode_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/octeon_cpunode.c
455
struct wdog_softc * const sc = device_private(self);
sys/arch/mips/cavium/octeon_cpunode.c
456
cfdata_t const cf = device_cfdata(self);
sys/arch/mips/cavium/octeon_cpunode.c
458
psc->sc_wdog_dev = self;
sys/arch/mips/cavium/octeon_cpunode.c
460
sc->sc_dev = self;
sys/arch/mips/cavium/octeon_cpunode.c
461
sc->sc_smw.smw_name = device_xname(self);
sys/arch/mips/cavium/octeon_cpunode.c
483
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/mips/cavium/octeon_cpunode.c
491
aprint_error_dev(self,
sys/arch/mips/cavium/octeon_iobus.c
115
config_found(self, &aa, iobus_print,
sys/arch/mips/cavium/octeon_iobus.c
88
iobus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/cavium/octeon_iobus.c
90
struct iobus_softc *sc = device_private(self);
sys/arch/mips/cavium/octeon_iobus.c
96
sc->sc_dev = self;
sys/arch/mips/ingenic/apbus.c
127
apbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ingenic/apbus.c
156
aprint_debug_dev(self, "mclk %d kHz\n", mclk);
sys/arch/mips/ingenic/apbus.c
157
aprint_debug_dev(self, "pclk %d kHz\n", pclk);
sys/arch/mips/ingenic/apbus.c
158
aprint_debug_dev(self, "CPU clock %d kHz\n", cclk);
sys/arch/mips/ingenic/apbus.c
268
config_found(self, &aa, apbus_print, CFARGS_NONE);
sys/arch/mips/ingenic/ingenic_com.c
172
ingenic_com_attach(device_t parent, device_t self, void *args)
sys/arch/mips/ingenic/ingenic_com.c
174
struct ingenic_com_softc *isc = device_private(self);
sys/arch/mips/ingenic/ingenic_com.c
178
sc->sc_dev = self;
sys/arch/mips/ingenic/ingenic_dme.c
130
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/mips/ingenic/ingenic_dme.c
135
if (! ether_getaddr(self, enaddr)) {
sys/arch/mips/ingenic/ingenic_dme.c
141
aprint_error_dev(self, "reading MAC address from chip\n");
sys/arch/mips/ingenic/ingenic_dme.c
75
ingenic_dme_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ingenic/ingenic_dme.c
77
struct dme_softc *sc = device_private(self);
sys/arch/mips/ingenic/ingenic_dme.c
83
sc->sc_dev = self;
sys/arch/mips/ingenic/ingenic_dme.c
95
aprint_error_dev(self,
sys/arch/mips/ingenic/ingenic_dwctwo.c
115
ingenic_dwc2_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ingenic/ingenic_dwctwo.c
117
struct ingenic_dwc2_softc *sc = device_private(self);
sys/arch/mips/ingenic/ingenic_dwctwo.c
122
sc->sc_dwc2.sc_dev = self;
sys/arch/mips/ingenic/ingenic_dwctwo.c
134
aprint_error_dev(self,
sys/arch/mips/ingenic/ingenic_dwctwo.c
195
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/mips/ingenic/ingenic_dwctwo.c
200
config_defer(self, ingenic_dwc2_deferred);
sys/arch/mips/ingenic/ingenic_dwctwo.c
213
ingenic_dwc2_deferred(device_t self)
sys/arch/mips/ingenic/ingenic_dwctwo.c
215
struct ingenic_dwc2_softc *sc = device_private(self);
sys/arch/mips/ingenic/ingenic_dwctwo.c
220
aprint_error_dev(self, "couldn't initialize host, error=%d\n",
sys/arch/mips/ingenic/ingenic_efuse.c
81
ingenic_efuse_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ingenic/ingenic_efuse.c
83
struct efuse_softc *sc = device_private(self);
sys/arch/mips/ingenic/ingenic_efuse.c
87
sc->sc_dev = self;
sys/arch/mips/ingenic/ingenic_efuse.c
96
aprint_error_dev(self,
sys/arch/mips/ingenic/ingenic_ehci.c
152
ingenic_ehci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ingenic/ingenic_ehci.c
154
struct ehci_softc *sc = device_private(self);
sys/arch/mips/ingenic/ingenic_ehci.c
160
sc->sc_dev = self;
sys/arch/mips/ingenic/ingenic_ehci.c
173
aprint_error_dev(self,
sys/arch/mips/ingenic/ingenic_ehci.c
189
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/mips/ingenic/ingenic_ehci.c
207
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/mips/ingenic/ingenic_ehci.c
220
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/mips/ingenic/ingenic_ohci.c
109
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/mips/ingenic/ingenic_ohci.c
118
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/mips/ingenic/ingenic_ohci.c
123
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/mips/ingenic/ingenic_ohci.c
124
ingenic_ohci = self;
sys/arch/mips/ingenic/ingenic_ohci.c
75
ingenic_ohci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ingenic/ingenic_ohci.c
77
struct ohci_softc *sc = device_private(self);
sys/arch/mips/ingenic/ingenic_ohci.c
82
sc->sc_dev = self;
sys/arch/mips/ingenic/ingenic_ohci.c
94
aprint_error_dev(self,
sys/arch/mips/ingenic/ingenic_rng.c
100
rnd_attach_source(&sc->sc_rndsource, device_xname(self), RND_TYPE_RNG,
sys/arch/mips/ingenic/ingenic_rng.c
77
ingenic_rng_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ingenic/ingenic_rng.c
79
struct ingenic_rng_softc * const sc = device_private(self);
sys/arch/mips/ingenic/ingenic_rng.c
84
sc->sc_dev = self;
sys/arch/mips/ingenic/ingenic_rng.c
91
aprint_error_dev(self,
sys/arch/mips/ingenic/jziic.c
116
jziic_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ingenic/jziic.c
118
struct jziic_softc *sc = device_private(self);
sys/arch/mips/ingenic/jziic.c
127
sc->sc_dev = self;
sys/arch/mips/ingenic/jziic.c
133
aprint_error_dev(self,
sys/arch/mips/ingenic/jziic.c
139
cv_init(&sc->sc_ping, device_xname(self));
sys/arch/mips/ingenic/jziic.c
147
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/mips/mips/cpu_subr.c
235
cpu_attach_common(device_t self, struct cpu_info *ci)
sys/arch/mips/mips/cpu_subr.c
237
const char * const xname = device_xname(self);
sys/arch/mips/mips/cpu_subr.c
247
ci->ci_dev = self;
sys/arch/mips/mips/cpu_subr.c
248
self->dv_private = ci;
sys/arch/mips/ralink/ralink_cfi.c
122
ra_cfi_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_cfi.c
124
struct ra_cfi_softc *sc = device_private(self);
sys/arch/mips/ralink/ralink_cfi.c
133
sc->sc_dev = self;
sys/arch/mips/ralink/ralink_cfi.c
141
aprint_error_dev(self, "could not map error %d\n", error);
sys/arch/mips/ralink/ralink_cfi.c
151
aprint_error_dev(self, "could not map error %d\n", error);
sys/arch/mips/ralink/ralink_cfi.c
161
cfi_print(self, &sc->sc_cfi);
sys/arch/mips/ralink/ralink_cfi.c
166
aprint_error_dev(self, "could not map error %d\n", error);
sys/arch/mips/ralink/ralink_cfi.c
170
if (! pmf_device_register1(self, NULL, NULL, NULL))
sys/arch/mips/ralink/ralink_cfi.c
171
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/mips/ralink/ralink_cfi.c
173
sc->sc_nordev = nor_attach_mi(&sc->sc_nor_if, self);
sys/arch/mips/ralink/ralink_cfi.c
178
ra_cfi_detach(device_t self, int flags)
sys/arch/mips/ralink/ralink_cfi.c
180
struct ra_cfi_softc *sc = device_private(self);
sys/arch/mips/ralink/ralink_cfi.c
183
error = config_detach_children(self, flags);
sys/arch/mips/ralink/ralink_cfi.c
187
pmf_device_deregister(self);
sys/arch/mips/ralink/ralink_com.c
317
ralink_com_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_com.c
320
struct ralink_com_softc * const rtsc = device_private(self);
sys/arch/mips/ralink/ralink_com.c
337
sc->sc_dev = self;
sys/arch/mips/ralink/ralink_ehci.c
107
aprint_normal_dev(self, "sc %p ma %p\n", sc, ma);
sys/arch/mips/ralink/ralink_ehci.c
108
aprint_normal_dev(self, "memt %p dmat %p\n", ma->ma_memt, ma->ma_dmat);
sys/arch/mips/ralink/ralink_ehci.c
109
aprint_normal_dev(self, "EHCI HCCAPBASE=%#x\n",
sys/arch/mips/ralink/ralink_ehci.c
111
aprint_normal_dev(self, "EHCI HCSPARAMS=%#x\n",
sys/arch/mips/ralink/ralink_ehci.c
113
aprint_normal_dev(self, "EHCI HCCPARAMS=%#x\n",
sys/arch/mips/ralink/ralink_ehci.c
115
aprint_normal_dev(self, "EHCI HCSP_PORTROUTE=%#x\n",
sys/arch/mips/ralink/ralink_ehci.c
124
aprint_normal_dev(self, "EHCI USBCMD=%#x USBSTS=%#x USBINTR=%#x\n",
sys/arch/mips/ralink/ralink_ehci.c
133
aprint_error_dev(self, "unable to establish irq %d\n",
sys/arch/mips/ralink/ralink_ehci.c
145
aprint_normal_dev(self, "companion %s\n",
sys/arch/mips/ralink/ralink_ehci.c
156
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/arch/mips/ralink/ralink_ehci.c
160
if (!pmf_device_register1(self, ehci_suspend, ehci_resume,
sys/arch/mips/ralink/ralink_ehci.c
162
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/mips/ralink/ralink_ehci.c
165
sc->sc_ehci.sc_child = config_found(self, &sc->sc_ehci.sc_bus,
sys/arch/mips/ralink/ralink_ehci.c
179
ralink_ehci_detach(device_t self, int flags)
sys/arch/mips/ralink/ralink_ehci.c
181
struct ralink_ehci_softc * const sc = device_private(self);
sys/arch/mips/ralink/ralink_ehci.c
184
pmf_device_deregister(self);
sys/arch/mips/ralink/ralink_ehci.c
80
ralink_ehci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_ehci.c
82
struct ralink_ehci_softc * const sc = device_private(self);
sys/arch/mips/ralink/ralink_ehci.c
90
sc->sc_ehci.sc_dev = self;
sys/arch/mips/ralink/ralink_ehci.c
98
aprint_error_dev(self, "can't map EHCI registers, "
sys/arch/mips/ralink/ralink_eth.c
1682
ralink_eth_mii_read(device_t self, int phy_addr, int phy_reg, uint16_t *val)
sys/arch/mips/ralink/ralink_eth.c
1684
ralink_eth_softc_t *sc = device_private(self);
sys/arch/mips/ralink/ralink_eth.c
1750
ralink_eth_mii_write(device_t self, int phy_addr, int phy_reg, uint16_t val)
sys/arch/mips/ralink/ralink_eth.c
1752
ralink_eth_softc_t *sc = device_private(self);
sys/arch/mips/ralink/ralink_eth.c
309
ralink_eth_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_eth.c
311
ralink_eth_softc_t * const sc = device_private(self);
sys/arch/mips/ralink/ralink_eth.c
321
device_xname(self), "spurious intr");
sys/arch/mips/ralink/ralink_eth.c
323
device_xname(self), "rxintr");
sys/arch/mips/ralink/ralink_eth.c
326
device_xname(self), "rxintr skip: no room for VLAN header");
sys/arch/mips/ralink/ralink_eth.c
329
device_xname(self), "rxintr skip: no VLAN tag");
sys/arch/mips/ralink/ralink_eth.c
332
device_xname(self), "rxintr skip: invalid VLAN tag");
sys/arch/mips/ralink/ralink_eth.c
335
device_xname(self), "rxintr skip: partition inactive");
sys/arch/mips/ralink/ralink_eth.c
337
device_xname(self), "txintr");
sys/arch/mips/ralink/ralink_eth.c
339
device_xname(self), "input");
sys/arch/mips/ralink/ralink_eth.c
341
device_xname(self), "output");
sys/arch/mips/ralink/ralink_eth.c
343
device_xname(self), "watchdog");
sys/arch/mips/ralink/ralink_eth.c
346
device_xname(self), "watchdog TX timeout");
sys/arch/mips/ralink/ralink_eth.c
349
device_xname(self), "watchdog spurious");
sys/arch/mips/ralink/ralink_eth.c
352
device_xname(self), "watchdog reactivate");
sys/arch/mips/ralink/ralink_eth.c
355
device_xname(self), "add rxbuf hdr fail");
sys/arch/mips/ralink/ralink_eth.c
358
device_xname(self), "add rxbuf mcl fail");
sys/arch/mips/ralink/ralink_eth.c
372
sc->sc_dev = self;
sys/arch/mips/ralink/ralink_eth.c
387
aprint_error_dev(self, "unable to map Sysctl registers, "
sys/arch/mips/ralink/ralink_eth.c
393
aprint_error_dev(self, "unable to map Frame Engine registers, "
sys/arch/mips/ralink/ralink_eth.c
399
aprint_error_dev(self, "unable to map Ether Switch registers, "
sys/arch/mips/ralink/ralink_eth.c
407
aprint_error_dev(self, "unable to allocate transmit descs, "
sys/arch/mips/ralink/ralink_eth.c
415
aprint_error_dev(self, "unable to map control data, "
sys/arch/mips/ralink/ralink_eth.c
422
aprint_error_dev(self, "unable to create control data DMA map, "
sys/arch/mips/ralink/ralink_eth.c
429
aprint_error_dev(self, "unable to load control data DMA map, "
sys/arch/mips/ralink/ralink_eth.c
439
aprint_error_dev(self,
sys/arch/mips/ralink/ralink_eth.c
450
aprint_error_dev(self,
sys/arch/mips/ralink/ralink_eth.c
475
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/arch/mips/ralink/ralink_eth.c
574
ralink_eth_activate(device_t self, enum devact act)
sys/arch/mips/ralink/ralink_eth.c
576
ralink_eth_softc_t * const sc = device_private(self);
sys/arch/mips/ralink/ralink_eth.c
647
ralink_eth_detach(device_t self, int flags)
sys/arch/mips/ralink/ralink_eth.c
650
ralink_eth_softc_t * const sc = device_private(self);
sys/arch/mips/ralink/ralink_gpio.c
570
ra_gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_gpio.c
574
ra_gpio_softc_t * const sc = device_private(self);
sys/arch/mips/ralink/ralink_gpio.c
581
sc->sc_dev = self;
sys/arch/mips/ralink/ralink_i2c.c
117
ra_i2c_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_i2c.c
119
ra_i2c_softc_t * const sc = device_private(self);
sys/arch/mips/ralink/ralink_i2c.c
133
aprint_error_dev(self, "unable to map Sysctl registers, "
sys/arch/mips/ralink/ralink_i2c.c
141
aprint_error_dev(self, "unable to map registers, "
sys/arch/mips/ralink/ralink_i2c.c
158
iicbus_attach(self, &sc->sc_i2c);
sys/arch/mips/ralink/ralink_mainbus.c
122
config_search(self, &ma,
sys/arch/mips/ralink/ralink_mainbus.c
86
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_mainbus.c
88
mainbus_softc_t * const sc = device_private(self);
sys/arch/mips/ralink/ralink_mainbus.c
97
sc->sc_dev = self;
sys/arch/mips/ralink/ralink_ohci.c
103
aprint_error_dev(self, "can't map OHCI registers, "
sys/arch/mips/ralink/ralink_ohci.c
130
aprint_error_dev(self, "unable to establish irq %d\n",
sys/arch/mips/ralink/ralink_ohci.c
138
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/mips/ralink/ralink_ohci.c
143
ralink_usb_hc_add(&sc->sc_hc, self);
sys/arch/mips/ralink/ralink_ohci.c
146
if (!pmf_device_register1(self, ohci_suspend, ohci_resume,
sys/arch/mips/ralink/ralink_ohci.c
148
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/mips/ralink/ralink_ohci.c
151
sc->sc_ohci.sc_child = config_found(self, &sc->sc_ohci.sc_bus,
sys/arch/mips/ralink/ralink_ohci.c
162
ralink_ohci_detach(device_t self, int flags)
sys/arch/mips/ralink/ralink_ohci.c
164
struct ralink_ohci_softc *sc = device_private(self);
sys/arch/mips/ralink/ralink_ohci.c
171
error = config_detach_children(self, flags);
sys/arch/mips/ralink/ralink_ohci.c
190
ohci_shutdown(self, 0);
sys/arch/mips/ralink/ralink_ohci.c
191
pmf_device_deregister(self);
sys/arch/mips/ralink/ralink_ohci.c
83
ralink_ohci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_ohci.c
85
struct ralink_ohci_softc * const sc = device_private(self);
sys/arch/mips/ralink/ralink_ohci.c
89
const char * const devname = device_xname(self);
sys/arch/mips/ralink/ralink_ohci.c
95
sc->sc_ohci.sc_dev = self;
sys/arch/mips/ralink/ralink_pci.c
62
ralink_pci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_pci.c
64
struct ralink_pci_softc * const sc = device_private(self);
sys/arch/mips/ralink/ralink_pci.c
66
sc->sc_dev = self;
sys/arch/mips/ralink/ralink_wdog.c
151
ra_wdog_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/ralink/ralink_wdog.c
153
ra_wdog_softc_t * const sc = device_private(self);
sys/arch/mips/ralink/ralink_wdog.c
160
aprint_normal_dev(self, "max period %d sec.\n", WDOG_MAX_PERIOD);
sys/arch/mips/ralink/ralink_wdog.c
164
aprint_error_dev(self, "unable to map registers, "
sys/arch/mips/ralink/ralink_wdog.c
172
sc->sc_smw.smw_name = device_xname(self);
sys/arch/mips/ralink/ralink_wdog.c
180
aprint_error_dev(self, "unable to register with sysmon, "
sys/arch/mips/ralink/ralink_wdog.c
185
aprint_error_dev(self, "unable to establish interrupt\n");
sys/arch/mips/ralink/ralink_wdog.c
194
aprint_normal_dev(self, "%s mode\n",
sys/arch/mips/ralink/ralink_wdog.c
208
aprint_error_dev(self, "unable to set sysmon wdog, "
sys/arch/mips/ralink/ralink_wdog.c
212
aprint_normal_dev(self, "%s mode, period %d sec.\n",
sys/arch/mips/rmi/rmixl_com.c
253
rmixl_com_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_com.c
255
struct rmixl_com_softc *rsc = device_private(self);
sys/arch/mips/rmi/rmixl_com.c
263
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_cpu.c
170
cpu_rmixl_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_cpu.c
172
struct rmixl_cpu_softc * const sc = device_private(self);
sys/arch/mips/rmi/rmixl_cpu.c
181
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_cpu.c
205
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_cpu.c
239
cpu_attach_common(self, ci);
sys/arch/mips/rmi/rmixl_cpucore.c
123
aprint_normal_dev(self, "%lu.%02luMHz (hz cycles = %lu, "
sys/arch/mips/rmi/rmixl_cpucore.c
129
aprint_normal("%s: ", device_xname(self));
sys/arch/mips/rmi/rmixl_cpucore.c
130
cpu_identify(self);
sys/arch/mips/rmi/rmixl_cpucore.c
133
aprint_normal_dev(self, "%d %s on core\n", nthreads,
sys/arch/mips/rmi/rmixl_cpucore.c
148
aprint_normal_dev(self, "threads");
sys/arch/mips/rmi/rmixl_cpucore.c
166
if (config_found(self, &ca, cpucore_rmixl_print,
sys/arch/mips/rmi/rmixl_cpucore.c
185
cpucore_rmixl_run(self);
sys/arch/mips/rmi/rmixl_cpucore.c
209
cpucore_rmixl_run(device_t self)
sys/arch/mips/rmi/rmixl_cpucore.c
211
struct cpucore_softc * const sc = device_private(self);
sys/arch/mips/rmi/rmixl_cpucore.c
227
cpucore_rmixl_hatch(device_t self)
sys/arch/mips/rmi/rmixl_cpucore.c
229
struct cpucore_softc * const sc = device_private(self);
sys/arch/mips/rmi/rmixl_cpucore.c
84
cpucore_rmixl_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_cpucore.c
86
struct cpucore_softc * const sc = device_private(self);
sys/arch/mips/rmi/rmixl_cpucore.c
92
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_cpunode.c
108
" unified L2 cache\n", device_xname(self),
sys/arch/mips/rmi/rmixl_cpunode.c
117
aprint_normal("%s: %d %s on node\n", device_xname(self), ncores,
sys/arch/mips/rmi/rmixl_cpunode.c
127
config_found(self, &na, cpunode_rmixl_print, CFARGS_NONE);
sys/arch/mips/rmi/rmixl_cpunode.c
134
config_found(self, &na, NULL, CFARGS_NONE);
sys/arch/mips/rmi/rmixl_cpunode.c
84
cpunode_rmixl_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_cpunode.c
88
struct cpunode_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_cpunode.c
96
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_ehci.c
113
aprint_error_dev(self, "unable to map registers\n");
sys/arch/mips/rmi/rmixl_ehci.c
129
device_xname(self));
sys/arch/mips/rmi/rmixl_ehci.c
134
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/arch/mips/rmi/rmixl_ehci.c
141
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/mips/rmi/rmixl_ehci.c
77
rmixl_ehci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_ehci.c
79
ehci_softc_t * const sc = device_private(self);
sys/arch/mips/rmi/rmixl_ehci.c
88
aprint_error_dev(self,
sys/arch/mips/rmi/rmixl_ehci.c
93
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_gpio.c
139
gpio_defer(device_t self)
sys/arch/mips/rmi/rmixl_gpio.c
141
struct gpio_softc * const gpio = device_private(self);
sys/arch/mips/rmi/rmixl_gpio.c
182
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/arch/mips/rmi/rmixl_gpio.c
198
gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_gpio.c
201
struct gpio_softc * const gpio = device_private(self);
sys/arch/mips/rmi/rmixl_gpio.c
204
gpio->gpio_dev = self;
sys/arch/mips/rmi/rmixl_gpio.c
207
panic("\n%s: no intr assigned", device_xname(self));
sys/arch/mips/rmi/rmixl_gpio.c
233
config_interrupts(self, gpio_defer);
sys/arch/mips/rmi/rmixl_iobus.c
115
rmixl_iobus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_iobus.c
117
rmixl_iobus_softc_t *sc = device_private(self);
sys/arch/mips/rmi/rmixl_iobus.c
126
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_iobus.c
134
aprint_error_dev(self,
sys/arch/mips/rmi/rmixl_iobus.c
145
aprint_debug_dev(self,
sys/arch/mips/rmi/rmixl_iobus.c
164
config_search(self, NULL,
sys/arch/mips/rmi/rmixl_mainbus.c
77
mainbusattach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_mainbus.c
79
struct mainbus_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_mainbus.c
84
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_mainbus.c
93
config_search(self, NULL,
sys/arch/mips/rmi/rmixl_nand.c
149
rmixl_nand_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_nand.c
151
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
159
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_nand.c
170
aprint_debug_dev(self, "CS#%d cstime_parma %#x, cstime_parmb %#x\n",
sys/arch/mips/rmi/rmixl_nand.c
180
aprint_error_dev(self,
sys/arch/mips/rmi/rmixl_nand.c
203
aprint_debug_dev(self, "bus width %d bits\n", 8 * sc->sc_buswidth);
sys/arch/mips/rmi/rmixl_nand.c
225
rmixl_nand_command(self, ONFI_RESET);
sys/arch/mips/rmi/rmixl_nand.c
226
rmixl_nand_busy(self);
sys/arch/mips/rmi/rmixl_nand.c
228
if (! pmf_device_register1(self, NULL, NULL, NULL))
sys/arch/mips/rmi/rmixl_nand.c
229
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/mips/rmi/rmixl_nand.c
231
sc->sc_nanddev = nand_attach_mi(&sc->sc_nand_if, self);
sys/arch/mips/rmi/rmixl_nand.c
235
rmixl_nand_detach(device_t self, int flags)
sys/arch/mips/rmi/rmixl_nand.c
237
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
240
error = config_detach_children(self, flags);
sys/arch/mips/rmi/rmixl_nand.c
244
pmf_device_deregister(self);
sys/arch/mips/rmi/rmixl_nand.c
252
rmixl_nand_command(device_t self, uint8_t command)
sys/arch/mips/rmi/rmixl_nand.c
254
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
261
rmixl_nand_address(device_t self, uint8_t address)
sys/arch/mips/rmi/rmixl_nand.c
263
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
270
rmixl_nand_busy(device_t self)
sys/arch/mips/rmi/rmixl_nand.c
272
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
291
rmixl_nand_read_1(device_t self, uint8_t *data)
sys/arch/mips/rmi/rmixl_nand.c
293
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
299
rmixl_nand_write_1(device_t self, uint8_t data)
sys/arch/mips/rmi/rmixl_nand.c
301
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
307
rmixl_nand_read_2(device_t self, uint16_t *data)
sys/arch/mips/rmi/rmixl_nand.c
309
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
315
rmixl_nand_write_2(device_t self, uint16_t data)
sys/arch/mips/rmi/rmixl_nand.c
317
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
323
rmixl_nand_read_buf(device_t self, void *buf, size_t len)
sys/arch/mips/rmi/rmixl_nand.c
325
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_nand.c
370
rmixl_nand_write_buf(device_t self, const void *buf, size_t len)
sys/arch/mips/rmi/rmixl_nand.c
372
struct rmixl_nand_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_obio.c
101
struct obio_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_obio.c
105
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_obio.c
119
config_search(self, NULL,
sys/arch/mips/rmi/rmixl_obio.c
99
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_ohci.c
101
aprint_error_dev(self, "unable to map registers\n");
sys/arch/mips/rmi/rmixl_ohci.c
115
device_xname(self));
sys/arch/mips/rmi/rmixl_ohci.c
123
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/arch/mips/rmi/rmixl_ohci.c
130
psc->sc_ohci_devs[0] = self;
sys/arch/mips/rmi/rmixl_ohci.c
132
psc->sc_ohci_devs[1] = self;
sys/arch/mips/rmi/rmixl_ohci.c
138
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/arch/mips/rmi/rmixl_ohci.c
78
rmixl_ohci_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_ohci.c
80
ohci_softc_t * const sc = device_private(self);
sys/arch/mips/rmi/rmixl_ohci.c
89
aprint_error_dev(self,
sys/arch/mips/rmi/rmixl_ohci.c
94
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_pcie.c
279
rmixl_pcie_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_pcie.c
281
struct rmixl_pcie_softc *sc = device_private(self);
sys/arch/mips/rmi/rmixl_pcie.c
288
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_pcie.c
399
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/mips/rmi/rmixl_pcie.c
815
rmixl_pcie_attach_hook(device_t parent, device_t self,
sys/arch/mips/rmi/rmixl_pcix.c
300
rmixl_pcix_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_pcix.c
302
rmixl_pcix_softc_t *sc = device_private(self);
sys/arch/mips/rmi/rmixl_pcix.c
309
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_pcix.c
354
aprint_error_dev(self, "HostBAR0 addr %#x, size %#x\n",
sys/arch/mips/rmi/rmixl_pcix.c
357
aprint_error_dev(self, "HostBAR1 addr %#x, size %#x\n",
sys/arch/mips/rmi/rmixl_pcix.c
359
aprint_error_dev(self, "WARNING: firmware PCI-X setup error: "
sys/arch/mips/rmi/rmixl_pcix.c
477
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/mips/rmi/rmixl_pcix.c
597
rmixl_pcix_attach_hook(device_t parent, device_t self,
sys/arch/mips/rmi/rmixl_usbi.c
100
rmixl_usbi_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/rmi/rmixl_usbi.c
102
rmixl_usbi_softc_t *sc = device_private(self);
sys/arch/mips/rmi/rmixl_usbi.c
110
sc->sc_dev = self;
sys/arch/mips/rmi/rmixl_usbi.c
117
aprint_normal("\n%s", device_xname(self));
sys/arch/mips/rmi/rmixl_usbi.c
161
device_xname(self));
sys/arch/mips/rmi/rmixl_usbi.c
167
config_search(self, NULL,
sys/arch/mips/sibyte/dev/sbgbus.c
73
sbgbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/dev/sbgbus.c
77
config_search(self, NULL,
sys/arch/mips/sibyte/dev/sbjcn.c
261
sbjcn_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/dev/sbjcn.c
263
struct sbjcn_softc *sc = device_private(self);
sys/arch/mips/sibyte/dev/sbjcn.c
266
sc->sc_dev = self;
sys/arch/mips/sibyte/dev/sbmac.c
2223
sbmac_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/dev/sbmac.c
2225
struct sbmac_softc * const sc = device_private(self);
sys/arch/mips/sibyte/dev/sbmac.c
2234
sc->sc_dev = self;
sys/arch/mips/sibyte/dev/sbmac.c
2289
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(eaddr));
sys/arch/mips/sibyte/dev/sbmac.c
263
static uint32_t sbmac_mii_bitbang_read(device_t self);
sys/arch/mips/sibyte/dev/sbmac.c
264
static void sbmac_mii_bitbang_write(device_t self, uint32_t val);
sys/arch/mips/sibyte/dev/sbmac.c
279
sbmac_mii_bitbang_read(device_t self)
sys/arch/mips/sibyte/dev/sbmac.c
281
struct sbmac_softc *sc = device_private(self);
sys/arch/mips/sibyte/dev/sbmac.c
289
sbmac_mii_bitbang_write(device_t self, uint32_t val)
sys/arch/mips/sibyte/dev/sbmac.c
291
struct sbmac_softc *sc = device_private(self);
sys/arch/mips/sibyte/dev/sbmac.c
304
sbmac_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/mips/sibyte/dev/sbmac.c
307
return mii_bitbang_readreg(self, &sbmac_mii_bitbang_ops, phy, reg,
sys/arch/mips/sibyte/dev/sbmac.c
315
sbmac_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/mips/sibyte/dev/sbmac.c
318
return mii_bitbang_writereg(self, &sbmac_mii_bitbang_ops, phy, reg,
sys/arch/mips/sibyte/dev/sbobio.c
199
sbobio_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/dev/sbobio.c
244
config_found(self, &sa, sbobio_print,
sys/arch/mips/sibyte/dev/sbscd.c
102
sbscd_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/dev/sbscd.c
120
config_found(self, &sa, sbscd_print,
sys/arch/mips/sibyte/dev/sbscn.c
282
sbscn_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/dev/sbscn.c
284
struct sbscn_softc *sc = device_private(self);
sys/arch/mips/sibyte/dev/sbscn.c
288
sc->sc_dev = self;
sys/arch/mips/sibyte/dev/sbsmbus.c
103
config_found(self, &sa, smbus_print,
sys/arch/mips/sibyte/dev/sbsmbus.c
83
smbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/dev/sbsmbus.c
93
if (device_unit(self) != smbus_devs[i].sa_interface)
sys/arch/mips/sibyte/dev/sbtimer.c
88
sbtimer_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/dev/sbtimer.c
91
struct sbtimer_softc *sc = device_private(self);
sys/arch/mips/sibyte/dev/sbtimer.c
96
sc->sc_dev = self;
sys/arch/mips/sibyte/dev/sbwdog.c
101
sc->sc_dev = self;
sys/arch/mips/sibyte/dev/sbwdog.c
114
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/mips/sibyte/dev/sbwdog.c
96
sbwdog_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/dev/sbwdog.c
98
struct sbwdog_softc *sc = device_private(self);
sys/arch/mips/sibyte/pci/sbbrz.c
169
sbbrz_attach(device_t parent, device_t self, void *aux)
sys/arch/mips/sibyte/pci/sbbrz.c
183
sc->sc_dev = self;
sys/arch/mips/sibyte/pci/sbbrz.c
184
device_set_private(self, sc);
sys/arch/mips/sibyte/pci/sbbrz.c
204
config_found(self, &pba, sbbrz_print, CFARGS_NONE);
sys/arch/mips/sibyte/pci/sbbrz_pci.c
134
sbbrz_pci_attach_hook(device_t parent, device_t self,
sys/arch/mips/sibyte/pci/sbpcihb.c
79
sbpcihb_attach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/isa/isa_machdep.c
107
isabusattach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/isa/isa_machdep.c
109
struct isabus_softc *sc = device_private(self);
sys/arch/mipsco/isa/isa_machdep.c
143
device_xname(self), "intr");
sys/arch/mipsco/isa/isa_machdep.c
149
config_found(self, &iba, mipscoisabusprint, CFARGS_NONE);
sys/arch/mipsco/isa/isa_machdep.c
161
isa_attach_hook(device_t parent, device_t self, struct isabus_attach_args *iba)
sys/arch/mipsco/isa/isa_machdep.c
166
isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/mipsco/mipsco/cpu.c
64
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/mipsco/cpu.c
68
ci->ci_dev = self;
sys/arch/mipsco/mipsco/cpu.c
69
device_set_private(self, ci);
sys/arch/mipsco/mipsco/cpu.c
72
cpu_identify(self);
sys/arch/mipsco/mipsco/mainbus.c
59
mbattach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/mipsco/mainbus.c
69
config_found(self, &nca, mbprint, CFARGS_NONE);
sys/arch/mipsco/mipsco/mainbus.c
73
config_found(self, &nca, NULL, CFARGS_NONE);
sys/arch/mipsco/mipsco/mainbus.c
77
config_found(self, &nca, NULL, CFARGS_NONE);
sys/arch/mipsco/obio/asc.c
126
ascattach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/obio/asc.c
128
struct asc_softc *esc = device_private(self);
sys/arch/mipsco/obio/asc.c
135
sc->sc_dev = self;
sys/arch/mipsco/obio/asc.c
163
device_xname(self), "intr");
sys/arch/mipsco/obio/i82072.c
105
fd_attach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/obio/i82072.c
107
struct fd_softc *sc = device_private(self);
sys/arch/mipsco/obio/i82072.c
115
printf("%s: cannot map registers\n", device_xname(self));
sys/arch/mipsco/obio/i82072.c
119
device_xname(self), "intr");
sys/arch/mipsco/obio/if_le.c
141
le_attach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/obio/if_le.c
143
struct le_softc *lesc = device_private(self);
sys/arch/mipsco/obio/if_le.c
154
sc->sc_dev = self;
sys/arch/mipsco/obio/if_le.c
214
device_xname(self), "intr");
sys/arch/mipsco/obio/mkclock.c
76
mkclock_attach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/obio/mkclock.c
78
struct mkclock_softc *sc = device_private(self);
sys/arch/mipsco/obio/mkclock.c
81
sc->sc_dev = self;
sys/arch/mipsco/obio/mkclock.c
93
sc->sc_todr.todr_dev = self;
sys/arch/mipsco/obio/obio.c
73
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/obio/obio.c
89
config_search(self, ca,
sys/arch/mipsco/obio/rambo.c
78
rambo_attach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/obio/rambo.c
81
struct rambo_softc *sc = device_private(self);
sys/arch/mipsco/obio/zs.c
195
zs_attach(device_t parent, device_t self, void *aux)
sys/arch/mipsco/obio/zs.c
197
struct zsc_softc *zsc = device_private(self);
sys/arch/mipsco/obio/zs.c
204
zsc->zsc_dev = self;
sys/arch/mipsco/obio/zs.c
214
zs_unit = device_unit(self);
sys/arch/mipsco/obio/zs.c
238
aprint_error_dev(self, ": cannot map regs\n");
sys/arch/mipsco/obio/zs.c
270
if (!config_found(self, (void *)&zsc_args, zs_print,
sys/arch/mipsco/obio/zs.c
287
device_xname(self), "intr");
sys/arch/mmeye/dev/com_mainbus.c
82
com_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mmeye/dev/com_mainbus.c
85
struct com_mainbus_softc *sc = device_private(self);
sys/arch/mmeye/dev/com_mainbus.c
99
csc->sc_dev = self;
sys/arch/mmeye/dev/if_ne_mainbus.c
100
struct ne2000_softc *sc = device_private(self);
sys/arch/mmeye/dev/if_ne_mainbus.c
109
dsc->sc_dev = self;
sys/arch/mmeye/dev/if_ne_mainbus.c
115
aprint_error_dev(self, "can't map i/o space\n");
sys/arch/mmeye/dev/if_ne_mainbus.c
121
aprint_error_dev(self, "can't subregion i/o space\n");
sys/arch/mmeye/dev/if_ne_mainbus.c
145
aprint_error_dev(self, "where did the card go?!\n");
sys/arch/mmeye/dev/if_ne_mainbus.c
149
aprint_normal_dev(self, "%s Ethernet\n", typestr);
sys/arch/mmeye/dev/if_ne_mainbus.c
164
aprint_error_dev(self,
sys/arch/mmeye/dev/if_ne_mainbus.c
98
ne_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mmeye/dev/mmeyepcmcia.c
275
mmeyepcmcia_attach(device_t parent, device_t self, void *aux)
sys/arch/mmeye/dev/mmeyepcmcia.c
278
struct mmeyepcmcia_softc *sc = device_private(self);
sys/arch/mmeye/dev/mmeyepcmcia.c
282
sc->dev = self;
sys/arch/mmeye/dev/rtciic.c
108
rtciic_attach(device_t parent, device_t self, void *aux)
sys/arch/mmeye/dev/rtciic.c
110
struct rtciic_softc *sc = device_private(self);
sys/arch/mmeye/dev/rtciic.c
113
sc->sc_dev = self;
sys/arch/mmeye/dev/rtciic.c
121
aprint_error_dev(self, "can't map registers\n");
sys/arch/mmeye/dev/wdc_mainbus.c
121
wdc_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mmeye/dev/wdc_mainbus.c
123
struct wdc_mainbus_softc *sc = device_private(self);
sys/arch/mmeye/dev/wdc_mainbus.c
126
int wdc_cf_flags = device_cfdata(self)->cf_flags;
sys/arch/mmeye/dev/wdc_mainbus.c
129
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/mmeye/mmeye/mainbus.c
55
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/mmeye/mmeye/mainbus.c
67
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/mmeye/mmeye/mainbus.c
69
config_found(self, &maa, mainbus_print, CFARGS_NONE);
sys/arch/mmeye/mmeye/mainbus.c
72
config_search(self, NULL,
sys/arch/mvme68k/dev/clock_pcc.c
101
clock_pcc_attach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/clock_pcc.c
106
sc = device_private(self);
sys/arch/mvme68k/dev/clock_pcc.c
117
clock_config(self, &sc->sc_clock_args, pccintr_evcnt(pa->pa_ipl));
sys/arch/mvme68k/dev/if_le.c
160
le_pcc_attach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/if_le.c
168
lsc = device_private(self);
sys/arch/mvme68k/dev/if_le.c
170
sc->sc_dev = self;
sys/arch/mvme68k/dev/if_le.c
208
pccintr_evcnt(pa->pa_ipl), "ether", device_xname(self));
sys/arch/mvme68k/dev/lpt_pcc.c
100
lpt_pcc_attach(device_t parent, device_t self, void *args)
sys/arch/mvme68k/dev/lpt_pcc.c
105
sc = device_private(self);
sys/arch/mvme68k/dev/lpt_pcc.c
106
sc->sc_dev = self;
sys/arch/mvme68k/dev/mainbus.c
146
mainbus_attach(device_t parent, device_t self, void *args)
sys/arch/mvme68k/dev/mainbus.c
202
(void)config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/mvme68k/dev/mainbus.c
222
(void)config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/mvme68k/dev/mainbus.c
224
(void)config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/mvme68k/dev/mainbus.c
240
(void)config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/mvme68k/dev/memc_68k.c
102
struct memc_softc *sc = device_private(self);
sys/arch/mvme68k/dev/memc_68k.c
104
sc->sc_dev = self;
sys/arch/mvme68k/dev/memc_68k.c
99
memc_attach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/pcc.c
158
pccattach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/pcc.c
167
sc = sys_pcc = device_private(self);
sys/arch/mvme68k/dev/pcc.c
224
(void)config_found(self, &npa, pccprint, CFARGS_NONE);
sys/arch/mvme68k/dev/pcctwo_68k.c
184
pcctwoattach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/pcctwo_68k.c
191
sc = sys_pcctwo = device_private(self);
sys/arch/mvme68k/dev/pcctwo_68k.c
192
sc->sc_dev = self;
sys/arch/mvme68k/dev/timekeeper.c
100
aprint_normal_dev(self, "%ld bytes NVRAM plus Realtime Clock\n",
sys/arch/mvme68k/dev/timekeeper.c
77
timekeeper_attach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/timekeeper.c
79
struct mk48txx_softc *sc = device_private(self);
sys/arch/mvme68k/dev/timekeeper.c
83
sc->sc_dev = self;
sys/arch/mvme68k/dev/vme_pcc.c
148
vme_pcc_attach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/vme_pcc.c
155
sc = device_private(self);
sys/arch/mvme68k/dev/vme_pcc.c
156
sc->sc_mvmebus.sc_dev = self;
sys/arch/mvme68k/dev/vme_two_68k.c
104
sc = device_private(self);
sys/arch/mvme68k/dev/vme_two_68k.c
105
sc->sc_mvmebus.sc_dev = self;
sys/arch/mvme68k/dev/vme_two_68k.c
99
vmetwo_attach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/wdsc.c
120
wdsc_pcc_attach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/wdsc.c
127
sc = device_private(self);
sys/arch/mvme68k/dev/wdsc.c
128
sc->sc_dev = self;
sys/arch/mvme68k/dev/wdsc.c
145
sc->sc_adapter.adapt_dev = self;
sys/arch/mvme68k/dev/wdsc.c
188
"disk", device_xname(self));
sys/arch/mvme68k/dev/wdsc.c
194
(void)config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/mvme68k/dev/zs_pcc.c
106
zsc_pcc_attach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/zs_pcc.c
108
struct zsc_softc *zsc = device_private(self);
sys/arch/mvme68k/dev/zs_pcc.c
115
zsc->zsc_dev = self;
sys/arch/mvme68k/dev/zs_pcctwo.c
107
zsc_pcctwo_attach(device_t parent, device_t self, void *aux)
sys/arch/mvme68k/dev/zs_pcctwo.c
109
struct zsc_softc *zsc = device_private(self);
sys/arch/mvme68k/dev/zs_pcctwo.c
116
zsc->zsc_dev = self;
sys/arch/mvmeppc/isa/mkclock_isa.c
159
mkclock_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/mvmeppc/isa/mkclock_isa.c
161
struct mk48txx_softc *sc = device_private(self);
sys/arch/mvmeppc/isa/mkclock_isa.c
164
sc->sc_dev = self;
sys/arch/mvmeppc/mvmeppc/cpu.c
62
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/mvmeppc/mvmeppc/cpu.c
64
cpu_attach_common(self, 0);
sys/arch/mvmeppc/mvmeppc/cpu.c
66
(*platform->cpu_setup)(self);
sys/arch/mvmeppc/mvmeppc/mainbus.c
101
config_found(self, NULL, mainbus_print,
sys/arch/mvmeppc/mvmeppc/mainbus.c
142
config_found(self, &pba, pcibusprint,
sys/arch/mvmeppc/mvmeppc/mainbus.c
89
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/netwinder/pci/pci_machdep.c
14
netwinder_pci_attach_hook(device_t parent, device_t self,
sys/arch/netwinder/pci/pcib.c
100
printf("%s: %s (rev. 0x%02x)\n", device_xname(self), devinfo,
sys/arch/netwinder/pci/pcib.c
104
config_defer(self, pcib_callback);
sys/arch/netwinder/pci/pcib.c
108
pcib_callback(device_t self)
sys/arch/netwinder/pci/pcib.c
121
isabus_attach(self, &iba);
sys/arch/netwinder/pci/pcib.c
88
pcibattach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/hb.c
66
hb_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/hb.c
73
config_search(self, &ha,
sys/arch/news68k/dev/if_le.c
149
le_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/if_le.c
151
struct le_softc *lesc = device_private(self);
sys/arch/news68k/dev/if_le.c
156
sc->sc_dev = self;
sys/arch/news68k/dev/kb_hb.c
122
sc->sc_wskbddev = config_found(self, &wsa, wskbddevprint, CFARGS_NONE);
sys/arch/news68k/dev/kb_hb.c
86
kb_hb_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/kb_hb.c
88
struct kb_softc *sc = device_private(self);
sys/arch/news68k/dev/kb_hb.c
95
sc->sc_dev = self;
sys/arch/news68k/dev/kb_kbc.c
72
kb_kbc_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/kb_kbc.c
74
struct kb_softc *sc = device_private(self);
sys/arch/news68k/dev/kb_kbc.c
79
sc->sc_dev = self;
sys/arch/news68k/dev/kb_kbc.c
97
sc->sc_wskbddev = config_found(self, &wsa, wskbddevprint, CFARGS_NONE);
sys/arch/news68k/dev/kbc.c
102
config_found(self, (void *)&ka, kbc_print, CFARGS_NONE);
sys/arch/news68k/dev/kbc.c
77
kbc_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/kbc.c
99
config_found(self, (void *)&ka, kbc_print, CFARGS_NONE);
sys/arch/news68k/dev/mkclock_hb.c
80
mkclock_hb_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/mkclock_hb.c
82
struct mk48txx_softc *sc = device_private(self);
sys/arch/news68k/dev/mkclock_hb.c
85
sc->sc_dev = self;
sys/arch/news68k/dev/ms_hb.c
115
ms_hb_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/ms_hb.c
117
struct ms_softc *sc = device_private(self);
sys/arch/news68k/dev/ms_hb.c
124
sc->sc_dev = self;
sys/arch/news68k/dev/ms_hb.c
145
sc->sc_wsmousedev = config_found(self, &wsa, wsmousedevprint,
sys/arch/news68k/dev/ms_kbc.c
102
ms_kbc_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/ms_kbc.c
104
struct ms_softc *sc = device_private(self);
sys/arch/news68k/dev/ms_kbc.c
109
sc->sc_dev = self;
sys/arch/news68k/dev/ms_kbc.c
123
sc->sc_wsmousedev = config_found(self, &wsa, wsmousedevprint,
sys/arch/news68k/dev/si.c
160
si_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/si.c
162
struct si_softc *sc = device_private(self);
sys/arch/news68k/dev/si.c
164
struct cfdata *cf = device_cfdata(self);
sys/arch/news68k/dev/si.c
167
ncr_sc->sc_dev = self;
sys/arch/news68k/dev/timer_hb.c
103
timer_hb_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/zs.c
181
zs_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/dev/zs.c
183
struct zsc_softc *zsc = device_private(self);
sys/arch/news68k/dev/zs.c
184
struct cfdata *cf = device_cfdata(self);
sys/arch/news68k/dev/zs.c
192
zsc->zsc_dev = self;
sys/arch/news68k/dev/zs.c
257
if (!config_found(self, (void *)&zsc_args, zs_print,
sys/arch/news68k/news68k/mainbus.c
65
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/news68k/mainbus.c
72
config_search(self, &ma,
sys/arch/news68k/news68k/romcons.c
123
romcons_attach(device_t parent, device_t self, void *aux)
sys/arch/news68k/news68k/romcons.c
125
struct romcons_softc *sc = device_private(self);
sys/arch/news68k/news68k/romcons.c
127
sc->sc_dev = self;
sys/arch/newsmips/apbus/apbus.c
152
config_found(self, &child, apbusprint,
sys/arch/newsmips/apbus/apbus.c
96
apbusattach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/dmac3.c
84
dmac3_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/dmac3.c
86
struct dmac3_softc *sc = device_private(self);
sys/arch/newsmips/apbus/dmac3.c
92
sc->sc_dev = self;
sys/arch/newsmips/apbus/if_sn_ap.c
146
snintr, sc, device_xname(self), apa->apa_ctlnum);
sys/arch/newsmips/apbus/if_sn_ap.c
86
sn_ap_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/if_sn_ap.c
88
struct sn_softc *sc = device_private(self);
sys/arch/newsmips/apbus/if_sn_ap.c
93
sc->sc_dev = self;
sys/arch/newsmips/apbus/if_tlp_ap.c
110
tlp_ap_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/if_tlp_ap.c
112
struct tulip_ap_softc *psc = device_private(self);
sys/arch/newsmips/apbus/if_tlp_ap.c
119
sc->sc_dev = self;
sys/arch/newsmips/apbus/if_tlp_ap.c
150
aprint_error_dev(self, "cannot allocate memory\n");
sys/arch/newsmips/apbus/if_tlp_ap.c
206
aprint_error_dev(self, "srom read failed\n");
sys/arch/newsmips/apbus/if_tlp_ap.c
224
tlp_intr, sc, device_xname(self), apa->apa_ctlnum);
sys/arch/newsmips/apbus/kb_ap.c
118
kb_ap_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/kb_ap.c
120
struct kb_ap_softc *sc = device_private(self);
sys/arch/newsmips/apbus/kb_ap.c
127
sc->sc_dev = self;
sys/arch/newsmips/apbus/kb_ap.c
148
device_xname(self), apa->apa_ctlnum);
sys/arch/newsmips/apbus/kb_ap.c
155
sc->sc_wskbddev = config_found(self, &waa, wskbddevprint, CFARGS_NONE);
sys/arch/newsmips/apbus/mkclock_ap.c
73
mkclock_ap_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/mkclock_ap.c
75
struct mk48txx_softc *sc = device_private(self);
sys/arch/newsmips/apbus/mkclock_ap.c
78
sc->sc_dev = self;
sys/arch/newsmips/apbus/ms_ap.c
104
device_xname(self), apa->apa_ctlnum);
sys/arch/newsmips/apbus/ms_ap.c
108
sc->sc_wsmousedev = config_found(self, &aa, wsmousedevprint, CFARGS_NONE);
sys/arch/newsmips/apbus/ms_ap.c
87
ms_ap_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/ms_ap.c
89
struct ms_ap_softc *sc = device_private(self);
sys/arch/newsmips/apbus/ms_ap.c
94
sc->sc_dev = self;
sys/arch/newsmips/apbus/spifi.c
153
spifi_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/spifi.c
155
struct spifi_softc *sc = device_private(self);
sys/arch/newsmips/apbus/spifi.c
160
sc->sc_dev = self;
sys/arch/newsmips/apbus/spifi.c
189
sc->sc_adapter.adapt_dev = self;
sys/arch/newsmips/apbus/spifi.c
209
apbus_intr_establish(0, intr, 0, spifi_intr, sc, device_xname(self),
sys/arch/newsmips/apbus/spifi.c
212
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/newsmips/apbus/xafb.c
142
xafb_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/xafb.c
144
struct xafb_softc *sc = device_private(self);
sys/arch/newsmips/apbus/xafb.c
151
sc->sc_dev = self;
sys/arch/newsmips/apbus/xafb.c
190
config_found(self, &wsa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/newsmips/apbus/zs_ap.c
246
zs_ap_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/apbus/zs_ap.c
248
struct zsc_softc *zsc = device_private(self);
sys/arch/newsmips/apbus/zs_ap.c
262
zsc->zsc_dev = self;
sys/arch/newsmips/apbus/zs_ap.c
263
zs_unit = device_unit(self);
sys/arch/newsmips/apbus/zs_ap.c
383
if (!config_found(self, (void *)&zsc_args, zs_print,
sys/arch/newsmips/apbus/zs_ap.c
404
device_xname(self), apa->apa_ctlnum);
sys/arch/newsmips/apbus/zs_ap.c
411
device_xname(self), apa->apa_ctlnum);
sys/arch/newsmips/dev/fb.c
183
fb_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/dev/fb.c
185
struct fb_softc *sc = device_private(self);
sys/arch/newsmips/dev/fb.c
192
sc->sc_dev = self;
sys/arch/newsmips/dev/fb.c
235
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/newsmips/dev/hb.c
42
hb_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/dev/hb.c
56
config_search(self, &ha,
sys/arch/newsmips/dev/if_le.c
138
le_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/dev/if_le.c
140
struct le_softc *lesc = device_private(self);
sys/arch/newsmips/dev/if_le.c
146
sc->sc_dev = self;
sys/arch/newsmips/dev/kb_hb.c
103
kb_hb_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/dev/kb_hb.c
105
struct kb_hb_softc *sc = device_private(self);
sys/arch/newsmips/dev/kb_hb.c
112
sc->sc_dev = self;
sys/arch/newsmips/dev/kb_hb.c
138
sc->sc_wskbddev = config_found(self, &aa, wskbddevprint, CFARGS_NONE);
sys/arch/newsmips/dev/mkclock_hb.c
76
mkclock_hb_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/dev/mkclock_hb.c
78
struct mk48txx_softc *sc = device_private(self);
sys/arch/newsmips/dev/mkclock_hb.c
81
sc->sc_dev = self;
sys/arch/newsmips/dev/ms_hb.c
114
sc->sc_wsmousedev = config_found(self, &aa, wsmousedevprint, CFARGS_NONE);
sys/arch/newsmips/dev/ms_hb.c
87
ms_hb_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/dev/ms_hb.c
89
struct ms_hb_softc *sc = device_private(self);
sys/arch/newsmips/dev/ms_hb.c
95
sc->sc_dev = self;
sys/arch/newsmips/dev/sc_wrap.c
129
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/newsmips/dev/sc_wrap.c
73
cxd1185_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/dev/sc_wrap.c
75
struct sc_softc *sc = device_private(self);
sys/arch/newsmips/dev/sc_wrap.c
80
sc->sc_dev = self;
sys/arch/newsmips/dev/sc_wrap.c
99
sc->sc_adapter.adapt_dev = self;
sys/arch/newsmips/dev/zs_hb.c
193
zs_hb_attach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/dev/zs_hb.c
195
struct zsc_softc *zsc = device_private(self);
sys/arch/newsmips/dev/zs_hb.c
202
zsc->zsc_dev = self;
sys/arch/newsmips/dev/zs_hb.c
203
zs_unit = device_unit(self);
sys/arch/newsmips/dev/zs_hb.c
234
if ((device_cfdata(self)->cf_flags & ZSCFLAG_EX) == 0)
sys/arch/newsmips/dev/zs_hb.c
273
if (!config_found(self, (void *)&zsc_args, zs_print,
sys/arch/newsmips/newsmips/cpu.c
64
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/newsmips/cpu.c
68
ci->ci_dev = self;
sys/arch/newsmips/newsmips/cpu.c
69
device_set_private(self, ci);
sys/arch/newsmips/newsmips/cpu.c
72
cpu_identify(self);
sys/arch/newsmips/newsmips/mainbus.c
64
mbattach(device_t parent, device_t self, void *aux)
sys/arch/newsmips/newsmips/mainbus.c
72
config_found(self, &nca, mbprint, CFARGS_NONE);
sys/arch/newsmips/newsmips/mainbus.c
77
config_found(self, &nca, NULL, CFARGS_NONE);
sys/arch/newsmips/newsmips/mainbus.c
80
config_found(self, &nca, NULL, CFARGS_NONE);
sys/arch/next68k/dev/esp.c
231
findchannel_defer(device_t self)
sys/arch/next68k/dev/esp.c
233
struct esp_softc *esc = device_private(self);
sys/arch/next68k/dev/esp.c
289
espattach_intio(device_t parent, device_t self, void *aux)
sys/arch/next68k/dev/esp.c
291
struct esp_softc *esc = device_private(self);
sys/arch/next68k/dev/esp.c
295
sc->sc_dev = self;
sys/arch/next68k/dev/esp.c
306
device_xname(self));
sys/arch/next68k/dev/esp.c
406
findchannel_defer(self);
sys/arch/next68k/dev/esp.c
409
config_defer(self, findchannel_defer);
sys/arch/next68k/dev/if_xe.c
150
findchannel_defer(device_t self)
sys/arch/next68k/dev/if_xe.c
152
struct xe_softc *xsc = device_private(self);
sys/arch/next68k/dev/if_xe.c
223
xe_attach(device_t parent, device_t self, void *aux)
sys/arch/next68k/dev/if_xe.c
226
struct xe_softc *xsc = device_private(self);
sys/arch/next68k/dev/if_xe.c
229
sc->sc_dev = self;
sys/arch/next68k/dev/if_xe.c
230
DPRINTF(("%s: xe_attach()\n", device_xname(self)));
sys/arch/next68k/dev/if_xe.c
242
device_xname(self),
sys/arch/next68k/dev/if_xe.c
250
device_xname(self));
sys/arch/next68k/dev/if_xe.c
256
panic("\n%s: can't map bmap registers", device_xname(self));
sys/arch/next68k/dev/if_xe.c
264
findchannel_defer(self);
sys/arch/next68k/dev/if_xe.c
266
config_defer(self, findchannel_defer);
sys/arch/next68k/dev/intio.c
72
intioattach(device_t parent, device_t self, void *aux)
sys/arch/next68k/dev/intio.c
78
config_search(self, aux,
sys/arch/next68k/dev/nextdisplay.c
224
nextdisplay_attach(device_t parent, device_t self, void *aux)
sys/arch/next68k/dev/nextdisplay.c
226
struct nextdisplay_softc *sc = device_private(self);
sys/arch/next68k/dev/nextdisplay.c
231
sc->sc_dev = self;
sys/arch/next68k/dev/nextdisplay.c
273
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/next68k/dev/nextdma.c
234
nextdma_attach(device_t parent, device_t self, void *aux)
sys/arch/next68k/dev/nextdma.c
236
struct nextdma_softc *nsc = device_private(self);
sys/arch/next68k/dev/nextdma.c
242
nsc->sc_dev = self;
sys/arch/next68k/dev/nextdma.c
251
device_xname(self), nsc->sc_chan->nd_name);
sys/arch/next68k/dev/nextkbd.c
142
nextkbd_attach(device_t parent, device_t self, void *aux)
sys/arch/next68k/dev/nextkbd.c
144
struct nextkbd_softc *sc = device_private(self);
sys/arch/next68k/dev/nextkbd.c
162
device_xname(self));
sys/arch/next68k/dev/nextkbd.c
183
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/next68k/dev/zs.c
198
zs_attach(device_t parent, device_t self, void *aux)
sys/arch/next68k/dev/zs.c
200
struct zsc_softc *zsc = device_private(self);
sys/arch/next68k/dev/zs.c
208
zsc->zsc_dev = self;
sys/arch/next68k/dev/zs.c
260
if (!config_found(self, (void *)&zsc_args, zs_print,
sys/arch/next68k/next68k/mainbus.c
85
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/next68k/next68k/mainbus.c
94
config_search(self, &mba,
sys/arch/ofppc/ofppc/cpu.c
113
cpu_OFgetspeed(device_t self, struct cpu_info *ci)
sys/arch/ofppc/ofppc/cpu.c
135
aprint_normal_dev(self, "%u.%02u MHz\n",
sys/arch/ofppc/ofppc/cpu.c
171
cpu_OFgetcache(device_t self, struct cpu_info *ci)
sys/arch/ofppc/ofppc/cpu.c
193
aprint_normal_dev(self, "L1 ");
sys/arch/ofppc/ofppc/cpu.c
198
aprint_normal_dev(self, "L2 ");
sys/arch/ofppc/ofppc/cpu.c
201
aprint_normal_dev(self, "L3 ");
sys/arch/ofppc/ofppc/cpu.c
210
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/ofppc/ofppc/cpu.c
216
ci = cpu_attach_common(self, id);
sys/arch/ofppc/ofppc/cpu.c
222
cpu_spinup(self, ci);
sys/arch/ofppc/ofppc/cpu.c
226
cpu_OFgetspeed(self, ci);
sys/arch/ofppc/ofppc/cpu.c
228
cpu_OFgetcache(self, ci);
sys/arch/ofppc/ofppc/mainbus.c
226
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/ofppc/ofppc/mainbus.c
248
config_found(self, &ca, NULL, CFARGS_NONE);
sys/arch/ofppc/ofppc/mainbus.c
257
config_found(self, &ca, NULL, CFARGS_NONE);
sys/arch/ofppc/ofppc/mainbus.c
264
config_found(self, &oba, NULL, CFARGS_NONE);
sys/arch/ofppc/ofppc/mainbus.c
274
config_found(self, &ca, NULL, CFARGS_NONE);
sys/arch/ofppc/ofppc/mainbus.c
293
config_found(self, &ca, NULL, CFARGS_NONE);
sys/arch/ofppc/pci/gt_mainbus.c
161
gt_attach(device_t parent, device_t self, void *aux)
sys/arch/ofppc/pci/gt_mainbus.c
163
struct gt_softc *sc = device_private(self);
sys/arch/ofppc/pci/gt_mainbus.c
174
sc->sc_dev = self;
sys/arch/ofppc/pci/gt_mainbus.c
268
gtpci_md_attach_hook(device_t parent, device_t self,
sys/arch/ofppc/pci/gt_mainbus.c
288
gtpci_attach_hook(parent, self, pba);
sys/arch/ofppc/pci/ofwpci.c
129
ofwpci_attach(device_t parent, device_t self, void *aux)
sys/arch/ofppc/pci/ofwpci.c
131
struct ofwpci_softc *sc = device_private(self);
sys/arch/ofppc/pci/ofwpci.c
143
sc->sc_dev = self;
sys/arch/ofppc/pci/ofwpci.c
219
modeldata.pciiodata[device_unit(self)].start,
sys/arch/ofppc/pci/ofwpci.c
220
(modeldata.pciiodata[device_unit(self)].limit -
sys/arch/ofppc/pci/ofwpci.c
221
modeldata.pciiodata[device_unit(self)].start) + 1);
sys/arch/ofppc/pci/ofwpci.c
241
config_found(self, &pba, pcibusprint,
sys/arch/ofppc/pci/ofwpci.c
242
CFARGS(.devhandle = device_handle(self)));
sys/arch/playstation2/dev/emac3.c
316
emac3_phy_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/playstation2/dev/emac3.c
332
emac3_phy_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/playstation2/dev/if_smap.c
147
smap_attach(struct device *parent, struct device *self, void *aux)
sys/arch/playstation2/dev/if_smap.c
150
struct smap_softc *sc = device_private(self);
sys/arch/playstation2/dev/if_smap.c
161
sc->emac3.dev = self;
sys/arch/playstation2/dev/ohci_sbus.c
120
ohci_sbus_attach(struct device *parent, struct device *self, void *aux)
sys/arch/playstation2/dev/ohci_sbus.c
122
struct ohci_sbus_softc *sc = device_private(self);
sys/arch/playstation2/dev/ohci_sbus.c
126
sc->sc.sc_dev = self;
sys/arch/playstation2/dev/ohci_sbus.c
153
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/arch/playstation2/dev/sbus.c
106
sbus_attach(device_t parent, device_t self, void *aux)
sys/arch/playstation2/dev/sbus.c
115
config_search(self, NULL,
sys/arch/playstation2/dev/spd.c
112
config_found(self, &spa, spd_print, CFARGS_NONE);
sys/arch/playstation2/dev/spd.c
116
config_found(self, &spa, spd_print, CFARGS_NONE);
sys/arch/playstation2/dev/spd.c
82
spd_attach(device_t parent, device_t self, void *aux)
sys/arch/playstation2/dev/wdc_spd.c
185
wdc_spd_attach(device_t parent, device_t self, void *aux)
sys/arch/playstation2/dev/wdc_spd.c
188
struct wdc_spd_softc *sc = device_private(self);
sys/arch/playstation2/dev/wdc_spd.c
194
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/playstation2/ee/gsfb.c
282
gsfb_attach(device_t parent, device_t self, void *aux)
sys/arch/playstation2/ee/gsfb.c
285
struct gsfb_softc *sc = device_private(self);
sys/arch/playstation2/ee/gsfb.c
291
sc->sc_dev = self;
sys/arch/playstation2/ee/gsfb.c
303
config_found(self, &wa, wsdisplaydevprint, CFARGS_NONE);
sys/arch/playstation2/playstation2/cpu.c
61
cpuattach(struct device *parent, struct device *self, void *aux)
sys/arch/playstation2/playstation2/cpu.c
67
cpu_identify(self);
sys/arch/playstation2/playstation2/mainbus.c
55
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/playstation2/playstation2/mainbus.c
61
config_found(self, &(struct mainbus_attach_args){.ma_name = "cpu"},
sys/arch/playstation2/playstation2/mainbus.c
64
config_search(self, NULL,
sys/arch/pmax/ibus/dz_ibus.c
152
dz_ibus_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/ibus/dz_ibus.c
155
struct dz_softc *sc = device_private(self);
sys/arch/pmax/ibus/dz_ibus.c
165
sc->sc_dev = self;
sys/arch/pmax/ibus/dz_ibus.c
215
config_found(self, &daa, dz_ibus_print, CFARGS_NONE);
sys/arch/pmax/ibus/dz_ibus.c
223
config_found(self, &daa, dz_ibus_print, CFARGS_NONE);
sys/arch/pmax/ibus/ibus.c
47
ibusattach(device_t parent, device_t self, void *aux)
sys/arch/pmax/ibus/ibus.c
69
config_found(self, ia, ibusprint,
sys/arch/pmax/ibus/ibus_3max.c
64
kn02sys_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/ibus/ibus_3max.c
73
ibusattach(parent, self, &ida);
sys/arch/pmax/ibus/ibus_pmax.c
109
ibus_pmax_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/ibus/ibus_pmax.c
134
ibusattach(parent, self, &ida);
sys/arch/pmax/ibus/if_le_ibus.c
70
le_pmax_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/ibus/if_le_ibus.c
72
struct le_softc *lesc = device_private(self);
sys/arch/pmax/ibus/if_le_ibus.c
80
sc->sc_dev = self;
sys/arch/pmax/ibus/mcclock_ibus.c
67
mcclock_ibus_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/ibus/mcclock_ibus.c
70
struct mcclock_pad32_softc *sc = device_private(self);
sys/arch/pmax/ibus/mcclock_ibus.c
72
sc->sc_mcclock.sc_dev = self;
sys/arch/pmax/ibus/pm.c
165
pm_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/ibus/pm.c
172
sc = device_private(self);
sys/arch/pmax/ibus/pm.c
173
sc->sc_dev = self;
sys/arch/pmax/ibus/pm.c
198
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/pmax/ibus/sii_ds.c
88
sii_ds_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/ibus/sii_ds.c
91
struct siisoftc *sc = device_private(self);
sys/arch/pmax/ibus/sii_ds.c
93
sc->sc_dev = self;
sys/arch/pmax/pmax/cpu.c
63
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/pmax/pmax/cpu.c
68
ci->ci_dev = self;
sys/arch/pmax/pmax/cpu.c
69
device_set_private(self, ci);
sys/arch/pmax/pmax/cpu.c
72
cpu_identify(self);
sys/arch/pmax/pmax/mainbus.c
64
mbattach(device_t parent, device_t self, void *aux)
sys/arch/pmax/pmax/mainbus.c
81
config_found(self, &ma, mbprint, CFARGS_NONE);
sys/arch/pmax/pmax/mainbus.c
85
config_found(self, &ma, mbprint, CFARGS_NONE);
sys/arch/pmax/tc/asc_ioasic.c
120
asc_ioasic_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/tc/asc_ioasic.c
122
struct asc_softc *asc = device_private(self);
sys/arch/pmax/tc/asc_ioasic.c
130
sc->sc_dev = self;
sys/arch/pmax/tc/dt.c
204
dt_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/tc/dt.c
213
sc = device_private(self);
sys/arch/pmax/tc/dt.c
214
sc->sc_dev = self;
sys/arch/pmax/tc/dt.c
221
printf("%s: memory exhausted\n", device_xname(self));
sys/arch/pmax/tc/dt.c
235
config_found(self, &dta, dt_print, CFARGS_NONE);
sys/arch/pmax/tc/dt.c
237
config_found(self, &dta, dt_print, CFARGS_NONE);
sys/arch/pmax/tc/dtkbd.c
109
dtkbd_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/tc/dtkbd.c
116
sc = device_private(self);
sys/arch/pmax/tc/dtkbd.c
117
sc->sc_dev = self;
sys/arch/pmax/tc/dtkbd.c
122
printf("%s: unable to establish handler\n", device_xname(self));
sys/arch/pmax/tc/dtkbd.c
132
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/pmax/tc/dtms.c
102
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/pmax/tc/dtms.c
83
dtms_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/tc/dtms.c
90
sc = device_private(self);
sys/arch/pmax/tc/dtms.c
91
sc->sc_dev = self;
sys/arch/pmax/tc/dtms.c
96
printf("%s: unable to establish handler\n", device_xname(self));
sys/arch/pmax/tc/ioasic.c
125
ioasicattach(device_t parent, device_t self, void *aux)
sys/arch/pmax/tc/ioasic.c
127
struct ioasic_softc *sc = device_private(self);
sys/arch/pmax/tc/ioasic.c
134
sc->sc_dev = self;
sys/arch/pmax/tc/ioasic.c
145
printf("%s: unable to map device\n", device_xname(self));
sys/arch/pmax/tc/mcclock_ioasic.c
66
mcclock_ioasic_attach(device_t parent, device_t self, void *aux)
sys/arch/pmax/tc/mcclock_ioasic.c
69
struct mcclock_pad32_softc *sc = device_private(self);
sys/arch/pmax/tc/mcclock_ioasic.c
71
sc->sc_mcclock.sc_dev = self;
sys/arch/pmax/tc/tcbus.c
122
tcattach(parent, self, tba);
sys/arch/pmax/tc/tcbus.c
87
tcbus_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/cpunode.c
114
aprint_normal_dev(self, "dev=%s[%u], addr=%x@%x",
sys/arch/powerpc/booke/dev/cpunode.c
156
config_found(self, &cna, cpunode_print,
sys/arch/powerpc/booke/dev/cpunode.c
164
(*cpu_md_ops.md_cpunode_attach)(parent, self, aux);
sys/arch/powerpc/booke/dev/cpunode.c
189
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/cpunode.c
198
(*cpu_md_ops.md_cpu_attach)(self, cna->cna_locs.cnl_instance);
sys/arch/powerpc/booke/dev/cpunode.c
88
cpunode_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/cpunode.c
91
struct cpunode_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/cpunode.c
95
sc->sc_dev = self;
sys/arch/powerpc/booke/dev/cpunode.c
98
aprint_normal_dev(self,
sys/arch/powerpc/booke/dev/e500wdog.c
140
e500wdog_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/e500wdog.c
143
struct e500wdog_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/e500wdog.c
147
sc->sc_dev = self;
sys/arch/powerpc/booke/dev/e500wdog.c
175
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/powerpc/booke/dev/e500wdog.c
182
aprint_error_dev(self,
sys/arch/powerpc/booke/dev/pq3cfi.c
108
pq3cfi_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3cfi.c
110
struct pq3cfi_softc *sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3cfi.c
119
sc->sc_dev = self;
sys/arch/powerpc/booke/dev/pq3cfi.c
127
aprint_error_dev(self, "could not map error %d\n", error);
sys/arch/powerpc/booke/dev/pq3cfi.c
137
aprint_error_dev(self, "could not map error %d\n", error);
sys/arch/powerpc/booke/dev/pq3cfi.c
147
cfi_print(self, &sc->sc_cfi);
sys/arch/powerpc/booke/dev/pq3cfi.c
152
aprint_error_dev(self, "could not map error %d\n", error);
sys/arch/powerpc/booke/dev/pq3cfi.c
156
if (! pmf_device_register1(self, NULL, NULL, NULL))
sys/arch/powerpc/booke/dev/pq3cfi.c
157
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/powerpc/booke/dev/pq3cfi.c
159
sc->sc_nordev = nor_attach_mi(&sc->sc_nor_if, self);
sys/arch/powerpc/booke/dev/pq3cfi.c
164
pq3cfi_detach(device_t self, int flags)
sys/arch/powerpc/booke/dev/pq3cfi.c
166
struct pq3cfi_softc *sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3cfi.c
169
error = config_detach_children(self, flags);
sys/arch/powerpc/booke/dev/pq3cfi.c
173
pmf_device_deregister(self);
sys/arch/powerpc/booke/dev/pq3ddrc.c
100
struct pq3ddrc_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3ddrc.c
106
sc->sc_dev = self;
sys/arch/powerpc/booke/dev/pq3ddrc.c
123
device_xname(self), "single-bit ecc errors");
sys/arch/powerpc/booke/dev/pq3ddrc.c
148
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/powerpc/booke/dev/pq3ddrc.c
151
aprint_normal_dev(self, "interrupting on irq %d\n",
sys/arch/powerpc/booke/dev/pq3ddrc.c
97
pq3ddrc_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3diic.c
103
aprint_error_dev(self,
sys/arch/powerpc/booke/dev/pq3diic.c
119
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/powerpc/booke/dev/pq3diic.c
122
aprint_normal_dev(self, "interrupting on irq %d\n",
sys/arch/powerpc/booke/dev/pq3diic.c
86
pq3diic_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3diic.c
89
struct motoi2c_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3diic.c
95
sc->sc_dev = self;
sys/arch/powerpc/booke/dev/pq3duart.c
153
pq3duart_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3duart.c
156
struct pq3duart_softc * const dsc = device_private(self);
sys/arch/powerpc/booke/dev/pq3duart.c
163
dsc->dsc_dev = self;
sys/arch/powerpc/booke/dev/pq3duart.c
172
config_found(self, &da, pq3duart_print, CFARGS_NONE);
sys/arch/powerpc/booke/dev/pq3duart.c
179
aprint_error_dev(self,
sys/arch/powerpc/booke/dev/pq3duart.c
183
aprint_normal_dev(self,
sys/arch/powerpc/booke/dev/pq3duart.c
190
com_pq3duart_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3duart.c
193
struct com_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3duart.c
197
sc->sc_dev = self;
sys/arch/powerpc/booke/dev/pq3ehci.c
100
pq3ehci_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3ehci.c
103
struct pq3ehci_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3ehci.c
110
sc->sc.sc_dev = self;
sys/arch/powerpc/booke/dev/pq3ehci.c
124
aprint_error_dev(self,
sys/arch/powerpc/booke/dev/pq3ehci.c
144
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/powerpc/booke/dev/pq3ehci.c
148
aprint_normal_dev(self, "interrupting on irq %d\n",
sys/arch/powerpc/booke/dev/pq3ehci.c
155
DPRINTF(("%s: offs=%d\n", device_xname(self), sc->sc.sc_offs));
sys/arch/powerpc/booke/dev/pq3ehci.c
160
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/powerpc/booke/dev/pq3ehci.c
165
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/arch/powerpc/booke/dev/pq3etsec.c
374
pq3mdio_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3etsec.c
376
struct pq3mdio_softc * const mdio = device_private(self);
sys/arch/powerpc/booke/dev/pq3etsec.c
380
mdio->mdio_dev = self;
sys/arch/powerpc/booke/dev/pq3etsec.c
411
pq3mdio_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/powerpc/booke/dev/pq3etsec.c
413
struct pq3mdio_softc * const mdio = device_private(self);
sys/arch/powerpc/booke/dev/pq3etsec.c
438
pq3mdio_mii_writereg(device_t self, int phy, int reg, uint16_t data)
sys/arch/powerpc/booke/dev/pq3etsec.c
440
struct pq3mdio_softc * const mdio = device_private(self);
sys/arch/powerpc/booke/dev/pq3etsec.c
561
pq3etsec_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3etsec.c
564
struct pq3etsec_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3etsec.c
568
cfdata_t cf = device_cfdata(self);
sys/arch/powerpc/booke/dev/pq3etsec.c
572
sc->sc_dev = self;
sys/arch/powerpc/booke/dev/pq3etsec.c
710
cfdata_t mdio_cf = config_search(self, cna,
sys/arch/powerpc/booke/dev/pq3etsec.c
714
config_attach(self, mdio_cf, cna, NULL, CFARGS_NONE);
sys/arch/powerpc/booke/dev/pq3gpio.c
203
pq3gpio_group_create(device_t self, bus_space_tag_t bst, bus_space_handle_t bsh,
sys/arch/powerpc/booke/dev/pq3gpio.c
240
config_found(self, &gba, gpiobus_print,
sys/arch/powerpc/booke/dev/pq3gpio.c
246
pq3gpio_mpc8536_attach(device_t self, bus_space_tag_t bst,
sys/arch/powerpc/booke/dev/pq3gpio.c
283
aprint_normal_dev(self, "%zu input/output/opendrain pins\n",
sys/arch/powerpc/booke/dev/pq3gpio.c
285
pq3gpio_group_create(self, bst, bsh, GPDAT, pinmask,
sys/arch/powerpc/booke/dev/pq3gpio.c
293
pq3gpio_mpc8544_attach(device_t self, bus_space_tag_t bst,
sys/arch/powerpc/booke/dev/pq3gpio.c
303
aprint_normal_dev(self, "8 input pins, 8 output pins\n");
sys/arch/powerpc/booke/dev/pq3gpio.c
308
pq3gpio_group_create(self, bst, bsh, GPINDR, 0xff000000,
sys/arch/powerpc/booke/dev/pq3gpio.c
310
pq3gpio_group_create(self, bst, bsh, GPOUTDR, 0xff000000,
sys/arch/powerpc/booke/dev/pq3gpio.c
317
pq3gpio_mpc8548_attach(device_t self, bus_space_tag_t bst,
sys/arch/powerpc/booke/dev/pq3gpio.c
330
aprint_normal_dev(self, "GPIOCR %#x, DEVDISR %#x, PORDEVSR %#x\n",
sys/arch/powerpc/booke/dev/pq3gpio.c
332
aprint_normal_dev(self, "GPINDR %#x, GPOUTDR %#x, GPPORCR %#x\n",
sys/arch/powerpc/booke/dev/pq3gpio.c
364
aprint_normal_dev(self, "GPIOCR: %#x\n", gpiocr);
sys/arch/powerpc/booke/dev/pq3gpio.c
372
aprint_normal_dev(self, "%zu input pins, %zu output pins\n",
sys/arch/powerpc/booke/dev/pq3gpio.c
376
pq3gpio_group_create(self, bst, bsh, GPINDR, inmask,
sys/arch/powerpc/booke/dev/pq3gpio.c
379
pq3gpio_group_create(self, bst, bsh, GPOUTDR, outmask,
sys/arch/powerpc/booke/dev/pq3gpio.c
386
pq3gpio_p1025_attach(device_t self, bus_space_tag_t bst,
sys/arch/powerpc/booke/dev/pq3gpio.c
420
aprint_normal_dev(self,
sys/arch/powerpc/booke/dev/pq3gpio.c
424
pq3gpio_group_create(self, bst, bsh2, CPDAT,
sys/arch/powerpc/booke/dev/pq3gpio.c
435
pq3gpio_p20x0_attach(device_t self, bus_space_tag_t bst,
sys/arch/powerpc/booke/dev/pq3gpio.c
462
aprint_normal_dev(self, "%zu input/output/opendrain pins\n",
sys/arch/powerpc/booke/dev/pq3gpio.c
464
pq3gpio_group_create(self, bst, bsh, GPDAT, pinmask,
sys/arch/powerpc/booke/dev/pq3gpio.c
472
pq3gpio_p1023_attach(device_t self, bus_space_tag_t bst,
sys/arch/powerpc/booke/dev/pq3gpio.c
501
aprint_normal_dev(self, "%zu input/output/opendrain pins\n", pincnt);
sys/arch/powerpc/booke/dev/pq3gpio.c
502
pq3gpio_group_create(self, bst, bsh, GPDAT, pinmask,
sys/arch/powerpc/booke/dev/pq3gpio.c
544
pq3gpio_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3gpio.c
557
aprint_error_dev(self,
sys/arch/powerpc/booke/dev/pq3gpio.c
562
(*si->si_attach)(self, bst, bsh, svr);
sys/arch/powerpc/booke/dev/pq3gpio.c
566
aprint_normal_dev(self,
sys/arch/powerpc/booke/dev/pq3nandfcm.c
101
struct pq3nandfcm_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
105
sc->sc_dev = self;
sys/arch/powerpc/booke/dev/pq3nandfcm.c
111
pq3nandfcm_detach(device_t self, int flags)
sys/arch/powerpc/booke/dev/pq3nandfcm.c
113
struct pq3nandfcm_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
116
error = config_detach_children(self, flags);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
120
pmf_device_deregister(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
127
pq3nandfcm_command(device_t self, uint8_t command)
sys/arch/powerpc/booke/dev/pq3nandfcm.c
129
struct pq3nandfcm_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
140
pq3nandfcm_address(device_t self, uint8_t address)
sys/arch/powerpc/booke/dev/pq3nandfcm.c
142
struct pq3nandfcm_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
152
pq3nandfcm_busy(device_t self)
sys/arch/powerpc/booke/dev/pq3nandfcm.c
154
struct pq3nandfcm_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
172
pq3nandfcm_read_byte(device_t self, uint8_t *valp)
sys/arch/powerpc/booke/dev/pq3nandfcm.c
174
struct pq3nandfcm_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
189
pq3nandfcm_write_byte(device_t self, uint8_t val)
sys/arch/powerpc/booke/dev/pq3nandfcm.c
191
struct pq3nandfcm_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
204
pq3nandfcm_read_buf(device_t self, void *buf, size_t len)
sys/arch/powerpc/booke/dev/pq3nandfcm.c
206
struct pq3nandfcm_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
234
pq3nandfcm_write_buf(device_t self, const void *buf, size_t len)
sys/arch/powerpc/booke/dev/pq3nandfcm.c
236
struct pq3nandfcm_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3nandfcm.c
98
pq3nandfcm_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3obio.c
173
pq3obio_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3obio.c
176
struct pq3obio_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3obio.c
184
sc->sc_dev = self;
sys/arch/powerpc/booke/dev/pq3obio.c
290
config_search(self, NULL,
sys/arch/powerpc/booke/dev/pq3sdhc.c
100
aprint_error_dev(self,
sys/arch/powerpc/booke/dev/pq3sdhc.c
121
aprint_error_dev(self, "failed to establish interrupt %d\n",
sys/arch/powerpc/booke/dev/pq3sdhc.c
125
aprint_normal_dev(self, "interrupting on irq %d\n",
sys/arch/powerpc/booke/dev/pq3sdhc.c
131
aprint_error_dev(self, "couldn't initialize host, error=%d\n",
sys/arch/powerpc/booke/dev/pq3sdhc.c
79
pq3sdhc_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/dev/pq3sdhc.c
82
struct pq3sdhc_softc * const sc = device_private(self);
sys/arch/powerpc/booke/dev/pq3sdhc.c
89
sc->sc.sc_dev = self;
sys/arch/powerpc/booke/pci/pq3pci.c
1000
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/powerpc/booke/pci/pq3pci.c
1004
pq3pci_attach_hook(device_t parent, device_t self,
sys/arch/powerpc/booke/pci/pq3pci.c
740
pq3pci_cpunode_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/booke/pci/pq3pci.c
743
struct pq3pci_softc * const sc = device_private(self);
sys/arch/powerpc/booke/pci/pq3pci.c
748
sc->sc_dev = self;
sys/arch/powerpc/booke/pci/pq3pci.c
777
device_xname(self), "spurious intr");
sys/arch/powerpc/booke/pci/pq3pci.c
803
aprint_normal_dev(self,
sys/arch/powerpc/booke/pci/pq3pci.c
842
aprint_normal_dev(self,
sys/arch/powerpc/ibm4xx/cpu.c
318
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/cpu.c
358
__func__, device_xname(self));
sys/arch/powerpc/ibm4xx/cpu.c
360
aprint_normal_dev(self, "%uKB/%uB L1 instruction cache\n",
sys/arch/powerpc/ibm4xx/cpu.c
362
aprint_normal_dev(self, "%uKB/%uB L1 data cache\n",
sys/arch/powerpc/ibm4xx/dev/com_opb.c
110
com_opb_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/com_opb.c
112
struct com_opb_softc *msc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/com_opb.c
118
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/com_opb.c
137
device_xname(self));
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
1009
dwcsata_intr, sc, device_xname(self));
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
251
dwcsata_dma_setup(device_t self, struct dwcsata_softc *sc,
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
258
aprint_error_dev(self, "can't map the AHB DMAC\n");
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
262
aprint_debug_dev(self, "AHB DMAC id 0x%08x\n",
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
271
aprint_normal_dev(self, "SDR0_AHB_CFG 0x%08x", ahbcfg);
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
278
aprint_normal_dev(self,
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
865
dwcsata_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
867
struct dwcsata_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
911
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
926
aprint_error_dev(self, "couldn't subregion registers\n");
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
943
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
953
if (dwcsata_dma_setup(self, sc, paa)) {
sys/arch/powerpc/ibm4xx/dev/dwcsata.c
965
aprint_error_dev(self, "DMA setup failed, PIO only\n");
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
116
device_xname(self));
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
125
config_defer(self, dwctwo_plb_deferred);
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
129
dwctwo_plb_deferred(device_t self)
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
131
struct dwc2_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
136
aprint_error_dev(self, "couldn't initialize host, error=%d\n",
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
90
dwctwo_plb_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
92
struct dwc2_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
94
prop_dictionary_t dict = device_properties(self);
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
97
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/ecc_plb.c
111
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/ecc_plb.c
122
config_defer(self, ecc_plb_deferred);
sys/arch/powerpc/ibm4xx/dev/ecc_plb.c
126
ecc_plb_deferred(device_t self)
sys/arch/powerpc/ibm4xx/dev/ecc_plb.c
128
struct ecc_plb_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/ecc_plb.c
131
sc, device_xname(self));
sys/arch/powerpc/ibm4xx/dev/ecc_plb.c
91
ecc_plbattach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/ecc_plb.c
93
struct ecc_plb_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
115
ehci_plb_set_arb_priority(device_t self)
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
124
aprint_error_dev(self, "can't map AHB arbiter\n");
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
133
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
140
ehci_plb_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
142
struct ehci_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
145
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
173
ehci_plb_set_arb_priority(self);
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
179
sc, device_xname(self));
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
182
config_defer(self, ehci_plb_deferred);
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
186
ehci_plb_deferred(device_t self)
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
188
struct ehci_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
200
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/powerpc/ibm4xx/dev/ehci_plb.c
204
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint,
sys/arch/powerpc/ibm4xx/dev/exb.c
104
config_found(self, &ec1, exb_print,
sys/arch/powerpc/ibm4xx/dev/exb.c
69
exb_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/exb.c
79
switch (device_unit(self)) {
sys/arch/powerpc/ibm4xx/dev/gpiic_opb.c
132
iicbus_attach(self, &sc->sc_i2c);
sys/arch/powerpc/ibm4xx/dev/gpiic_opb.c
91
gpiic_attach(device_t parent, device_t self, void *args)
sys/arch/powerpc/ibm4xx/dev/gpiic_opb.c
93
struct gpiic_softc * const sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/gpiic_opb.c
99
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/gpio_opb.c
102
gpio_opb_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/gpio_opb.c
104
struct gpio_opb_softc * const sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/gpio_opb.c
112
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/gpio_opb.c
155
(void) config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2189
emac_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2191
struct emac_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2196
sc->sc_rmii_enable(device_parent(self), sc->sc_instance);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2221
sc->sc_rmii_disable(device_parent(self), sc->sc_instance);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2226
emac_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2228
struct emac_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2233
sc->sc_rmii_enable(device_parent(self), sc->sc_instance);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2256
sc->sc_rmii_disable(device_parent(self), sc->sc_instance);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
415
emac_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/if_emac.c
418
struct emac_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
421
const char * xname = device_xname(self);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
428
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/if_emac.c
439
if (! ether_getaddr(self, enaddr)) {
sys/arch/powerpc/ibm4xx/dev/if_emac.c
440
aprint_error_dev(self, "unable to get mac-address\n");
sys/arch/powerpc/ibm4xx/dev/if_emac.c
443
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(enaddr));
sys/arch/powerpc/ibm4xx/dev/if_emac.c
447
prop_dictionary_get_uint32(device_properties(self),
sys/arch/powerpc/ibm4xx/dev/if_emac.c
468
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/if_emac.c
479
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/if_emac.c
487
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/if_emac.c
496
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/if_emac.c
511
aprint_normal_dev(self,
sys/arch/powerpc/ibm4xx/dev/if_emac.c
515
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/if_emac.c
537
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/if_emac.c
553
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/if_emac.c
599
aprint_error_dev(self, "unsupported OPB frequency %dMHz\n",
sys/arch/powerpc/ibm4xx/dev/if_emac.c
653
device_xname(self));
sys/arch/powerpc/ibm4xx/dev/if_emac.c
674
mii_attach(self, mii, 0xffffffff, mii_phy, MII_OFFSET_ANY,
sys/arch/powerpc/ibm4xx/dev/if_emac.c
774
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/dev/ohci_plb.c
100
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/ohci_plb.c
129
sc, device_xname(self));
sys/arch/powerpc/ibm4xx/dev/ohci_plb.c
133
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/powerpc/ibm4xx/dev/ohci_plb.c
137
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint,
sys/arch/powerpc/ibm4xx/dev/ohci_plb.c
94
ohci_plb_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/ohci_plb.c
96
struct ohci_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/opb.c
242
opb_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/opb.c
244
struct opb_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/opb.c
253
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/opb.c
289
config_found(self, &oaa, opb_print,
sys/arch/powerpc/ibm4xx/dev/plb.c
166
plb_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/plb.c
190
config_found(self, &paa, plb_print, CFARGS_NONE);
sys/arch/powerpc/ibm4xx/dev/plb.c
202
config_found(self, &paa, plb_print, CFARGS_NONE);
sys/arch/powerpc/ibm4xx/dev/rgmii.c
49
rgmii_attach(device_t self, int instance,
sys/arch/powerpc/ibm4xx/dev/rgmii.c
54
struct opb_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/rgmii.c
59
rgmii_disable(self, instance);
sys/arch/powerpc/ibm4xx/dev/rgmii.c
70
rgmii_enable(device_t self, int instance)
sys/arch/powerpc/ibm4xx/dev/rgmii.c
72
struct opb_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/rgmii.c
84
rgmii_disable(device_t self, int instance)
sys/arch/powerpc/ibm4xx/dev/rgmii.c
86
struct opb_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/rgmii.c
97
rgmii_speed(device_t self, int instance, int speed)
sys/arch/powerpc/ibm4xx/dev/rgmii.c
99
struct opb_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/dev/wdog.c
126
aprint_normal_dev(self,
sys/arch/powerpc/ibm4xx/dev/wdog.c
135
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/dev/wdog.c
136
sc->sc_smw.smw_name = device_xname(self);
sys/arch/powerpc/ibm4xx/dev/wdog.c
143
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/powerpc/ibm4xx/dev/wdog.c
95
wdog_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/dev/wdog.c
97
struct wdog_softc * const sc = device_private(self);
sys/arch/powerpc/ibm4xx/pci/pchb.c
120
pchbattach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/pci/pchb.c
149
aprint_normal_dev(self, "%s (rev. 0x%02x)\n", devinfo,
sys/arch/powerpc/ibm4xx/pci/pchb.c
188
config_found(self, &pba, pchbprint, CFARGS_NONE);
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
97
ibm4xx_pci_attach_hook(device_t parent, device_t self,
sys/arch/powerpc/ibm4xx/pci/pciex.c
187
pciex_attach_hook(device_t parent, device_t self,
sys/arch/powerpc/ibm4xx/pci/pciex.c
325
pciex_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/pci/pciex.c
327
struct pciex_softc *sc = device_private(self);
sys/arch/powerpc/ibm4xx/pci/pciex.c
332
sc->sc_dev = self;
sys/arch/powerpc/ibm4xx/pci/pciex.c
333
sc->sc_port = device_unit(self);
sys/arch/powerpc/ibm4xx/pci/pciex.c
348
aprint_normal_dev(self,
sys/arch/powerpc/ibm4xx/pci/pciex.c
357
aprint_error_dev(self, "can't map config window\n");
sys/arch/powerpc/ibm4xx/pci/pciex.c
361
aprint_error_dev(self, "can't init MEM tag\n");
sys/arch/powerpc/ibm4xx/pci/pciex.c
392
aprint_error_dev(self,
sys/arch/powerpc/ibm4xx/pci/pciex.c
405
config_found(self, &pba, pciex_print, CFARGS_NONE);
sys/arch/powerpc/ibm4xx/pci/pcix.c
169
pcix_attach_hook(device_t parent, device_t self,
sys/arch/powerpc/ibm4xx/pci/pcix.c
276
pcix_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/ibm4xx/pci/pcix.c
321
config_found(self, &pba, pcix_print, CFARGS_NONE);
sys/arch/powerpc/include/pci_machdep.h
204
pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/powerpc/include/pci_machdep.h
206
(*pcibus_attach_args_pc(pba)->pc_attach_hook)(parent, self, pba);
sys/arch/powerpc/isa/isa_machdep_common.c
79
genppc_isa_attach_hook(device_t parent, device_t self,
sys/arch/powerpc/isa/isa_machdep_common.c
87
genppc_isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/powerpc/mpc5200/bestcomm.c
115
bestcomm_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/bestcomm.c
117
struct bestcomm_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/bestcomm.c
124
sc->sc_dev = self;
sys/arch/powerpc/mpc5200/bestcomm.c
153
strlcpy(pic->pic_name, device_xname(self), sizeof(pic->pic_name));
sys/arch/powerpc/mpc5200/bestcomm.c
168
config_interrupts(self, bestcomm_load_image);
sys/arch/powerpc/mpc5200/bestcomm.c
392
bestcomm_load_image(device_t self)
sys/arch/powerpc/mpc5200/bestcomm.c
394
struct bestcomm_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/bestcomm.c
402
aprint_error_dev(self, "no SRAM; SDMA image not loaded\n");
sys/arch/powerpc/mpc5200/bestcomm.c
408
aprint_error_dev(self, "no SRAM space for %u-byte SDMA image\n",
sys/arch/powerpc/mpc5200/bestcomm.c
430
aprint_normal_dev(self,
sys/arch/powerpc/mpc5200/cdm.c
242
cdm_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/cdm.c
244
struct cdm_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/cdm.c
249
sc->sc_dev = self;
sys/arch/powerpc/mpc5200/fec.c
122
fec_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/fec.c
124
struct fec_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/fec.c
132
sc->sc_dev = self;
sys/arch/powerpc/mpc5200/fec.c
174
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY,
sys/arch/powerpc/mpc5200/fec.c
177
aprint_error_dev(self, "no PHY found\n");
sys/arch/powerpc/mpc5200/fec.c
186
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/arch/powerpc/mpc5200/fec.c
241
fec_miibus_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/powerpc/mpc5200/fec.c
243
struct fec_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/fec.c
255
fec_miibus_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/powerpc/mpc5200/fec.c
257
struct fec_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
220
mpcac97_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
222
struct mpcac97_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
227
sc->sc_dev = self;
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
235
aprint_error_dev(self, "BestComm SDMA not available\n");
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
247
aprint_error_dev(self, "can't map registers\n");
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
272
aprint_debug_dev(self, "calling ac97_attach\n");
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
273
if (ac97_attach(&sc->sc_host_if, self, &sc->sc_lock) != 0) {
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
274
aprint_error_dev(self, "no AC97 codec found\n");
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
277
aprint_debug_dev(self, "ac97_attach returned ok\n");
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
285
aprint_debug_dev(self, "spdif unlocked\n");
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
294
aprint_error_dev(self, "can't establish SDMA interrupt\n");
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
297
aprint_debug_dev(self, "SDMA intr established\n");
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
299
sc->sc_audiodev = audio_attach_mi(&mpcac97_hw_if, sc, self);
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
300
aprint_debug_dev(self, "audio_attach_mi done\n");
sys/arch/powerpc/mpc5200/mpc5200_ata.c
119
mpcata_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/mpc5200_ata.c
121
struct mpcata_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/mpc5200_ata.c
141
aprint_error_dev(self, "can't map registers\n");
sys/arch/powerpc/mpc5200/mpc5200_ata.c
145
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/powerpc/mpc5200/mpc5200_ata.c
158
aprint_error_dev(self, "can't subregion taskfile\n");
sys/arch/powerpc/mpc5200/mpc5200_ata.c
164
aprint_error_dev(self, "can't subregion control register\n");
sys/arch/powerpc/mpc5200/mpc5200_ata.c
206
aprint_error_dev(self,
sys/arch/powerpc/mpc5200/mpc5200_ata.c
210
aprint_normal_dev(self, "interrupting at irq %d\n", irq);
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
100
sc->sc_dev = self;
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
118
aprint_error_dev(self, "can't map registers\n");
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
127
aprint_error_dev(self, "can't decode interrupt\n");
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
132
aprint_error_dev(self, "can't establish interrupt\n");
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
138
aprint_error_dev(self, "init failed, error=%d\n", error);
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
142
if (!pmf_device_register1(self, NULL, NULL, ohci_shutdown))
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
143
aprint_error_dev(self, "can't establish power handler\n");
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
145
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint,
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
91
mpc5200_ohci_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/mpc5200_ohci.c
93
struct mpc5200_ohci_softc *msc = device_private(self);
sys/arch/powerpc/mpc5200/mpc5200_pci.c
367
mpcpci_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/mpc5200_pci.c
369
struct mpcpci_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/mpc5200_pci.c
379
sc->sc_dev = self;
sys/arch/powerpc/mpc5200/mpc5200_pci.c
382
aprint_error_dev(self, "no bus-range property\n");
sys/arch/powerpc/mpc5200/mpc5200_pci.c
429
modeldata.pciiodata[device_unit(self)].start,
sys/arch/powerpc/mpc5200/mpc5200_pci.c
430
(modeldata.pciiodata[device_unit(self)].limit -
sys/arch/powerpc/mpc5200/mpc5200_pci.c
431
modeldata.pciiodata[device_unit(self)].start) + 1);
sys/arch/powerpc/mpc5200/mpc5200_pci.c
438
aprint_error_dev(self, "pci_configure_bus() failed\n");
sys/arch/powerpc/mpc5200/mpc5200_pci.c
452
config_found(self, &pba, pcibusprint,
sys/arch/powerpc/mpc5200/mpc5200_pci.c
453
CFARGS(.devhandle = device_handle(self)));
sys/arch/powerpc/mpc5200/obio.c
101
struct obio_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/obio.c
114
sc->sc_dev = self;
sys/arch/powerpc/mpc5200/obio.c
139
aprint_error_dev(self, "can't init bus space tag\n");
sys/arch/powerpc/mpc5200/obio.c
165
config_found(self, &oba, obio_print, CFARGS_NONE);
sys/arch/powerpc/mpc5200/obio.c
178
config_found(self, &oba, obio_print, CFARGS_NONE);
sys/arch/powerpc/mpc5200/obio.c
99
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/pic_mpc5200.c
143
mpc5200pic_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/pic_mpc5200.c
145
struct mpc5200pic_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/pic_mpc5200.c
151
sc->sc_dev = self;
sys/arch/powerpc/mpc5200/pic_mpc5200.c
169
strlcpy(pic->pic_name, device_xname(self), sizeof(pic->pic_name));
sys/arch/powerpc/mpc5200/pic_mpc5200.c
190
aprint_verbose_dev(self, "main_mask=0x%08x per_mask=0x%08x\n",
sys/arch/powerpc/mpc5200/psc.c
173
psc_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/psc.c
175
struct psc_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/psc.c
181
sc->sc_dev = self;
sys/arch/powerpc/mpc5200/psc.c
236
aprint_error_dev(self, "can't establish soft interrupt\n");
sys/arch/powerpc/mpc5200/psc.c
244
aprint_error_dev(self, "can't establish interrupt\n");
sys/arch/powerpc/mpc5200/psc.c
262
makedev(maj, device_unit(self));
sys/arch/powerpc/mpc5200/sram.c
106
sc->sc_arena = vmem_create(device_xname(self), sc->sc_pa, size,
sys/arch/powerpc/mpc5200/sram.c
82
sram_attach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/mpc5200/sram.c
84
struct sram_softc *sc = device_private(self);
sys/arch/powerpc/mpc5200/sram.c
88
sc->sc_dev = self;
sys/arch/powerpc/oea/cpu_subr.c
1460
cpu_spinup(device_t self, struct cpu_info *ci)
sys/arch/powerpc/oea/cpu_subr.c
1488
h->hatch_self = self;
sys/arch/powerpc/oea/cpu_subr.c
526
cpu_attach_common(device_t self, int id)
sys/arch/powerpc/oea/cpu_subr.c
540
aprint_normal_dev(self,
sys/arch/powerpc/oea/cpu_subr.c
549
ci->ci_dev = self;
sys/arch/powerpc/oea/cpu_subr.c
578
cpu_setup(self, ci);
sys/arch/powerpc/oea/cpu_subr.c
598
cpu_setup(device_t self, struct cpu_info *ci)
sys/arch/powerpc/oea/cpu_subr.c
601
const char * const xname = device_xname(self);
sys/arch/powerpc/oea/cpu_subr.c
812
aprint_normal_dev(self, "HID0 %s %s, powersave: %d\n",
sys/arch/powerpc/oea/cpu_subr.c
818
aprint_normal_dev(self, "HID0 %s, powersave: %d\n",
sys/arch/powerpc/oea/cpu_subr.c
838
aprint_normal_dev(self, "HID4 %s\n", hidbuf);
sys/arch/powerpc/oea/cpu_subr.c
842
aprint_normal_dev(self, "HID5 %s\n", hidbuf);
sys/arch/powerpc/oea/cpu_subr.c
865
aprint_normal_dev(self, "");
sys/arch/powerpc/pci/pchb.c
121
mpc106_print(struct pci_attach_args *pa, device_t self)
sys/arch/powerpc/pci/pchb.c
128
aprint_normal_dev(self, "L2 cache: ");
sys/arch/powerpc/pci/pchb.c
180
ibm82660_print(struct pci_attach_args *pa, device_t self)
sys/arch/powerpc/pci/pchb.c
212
aprint_normal_dev(self, "L1 %s L2 %s%s\n",
sys/arch/powerpc/pci/pchb.c
217
aprint_verbose_dev(self, "MCP# assertion %s "
sys/arch/powerpc/pci/pchb.c
221
aprint_verbose_dev(self, "PCI/ISA I/O mapping %s\n",
sys/arch/powerpc/pci/pchb.c
225
aprint_normal_dev(self, "DRAM %s (%s) SRAM %s\n",
sys/arch/powerpc/pci/pchb.c
229
aprint_verbose_dev(self, "Snoop mode %s\n",
sys/arch/powerpc/pci/pchb.c
234
pchbattach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/pci/pchb.c
254
aprint_normal_dev(self, "%s (rev. 0x%02x)\n", devinfo,
sys/arch/powerpc/pci/pchb.c
261
ibm82660_print(pa, self);
sys/arch/powerpc/pci/pchb.c
275
mpc105_print(pa, self);
sys/arch/powerpc/pci/pchb.c
278
mpc106_print(pa, self);
sys/arch/powerpc/pci/pchb.c
288
config_found(self, &apa, agpbusprint,
sys/arch/powerpc/pci/pchb.c
78
mpc105_print(struct pci_attach_args *pa, device_t self)
sys/arch/powerpc/pci/pchb.c
85
aprint_normal_dev(self, "L2 cache: ");
sys/arch/powerpc/pci/pcib.c
101
pcibattach(device_t parent, device_t self, void *aux)
sys/arch/powerpc/pci/pcib.c
104
struct pcib_softc *sc = device_private(self);
sys/arch/powerpc/pci/pcib.c
109
sc->sc_dev = self;
sys/arch/powerpc/pci/pcib.c
121
aprint_verbose_dev(self, "PIRQ[0-3] not used\n");
sys/arch/powerpc/pci/pcib.c
125
aprint_verbose_dev(self, "PIRQ[0-3] disabled\n");
sys/arch/powerpc/pci/pcib.c
128
aprint_verbose("%s:", device_xname(self));
sys/arch/powerpc/pci/pcib.c
183
aprint_verbose_dev(self, "setting pciide irq to 14\n");
sys/arch/powerpc/pci/pcib.c
189
config_defer(self, pcib_callback);
sys/arch/powerpc/pci/pcib.c
193
pcib_callback(device_t self)
sys/arch/powerpc/pci/pcib.c
196
struct pcib_softc *sc = device_private(self);
sys/arch/powerpc/pci/pciconf_indirect.c
62
genppc_pci_indirect_attach_hook(device_t parent, device_t self,
sys/arch/powerpc/pci/pciconf_ofmethod.c
63
genppc_pci_ofmethod_attach_hook(device_t parent, device_t self,
sys/arch/powerpc/pic/pic_mpcsoc.c
108
self->pic_numintrs = ((x & 0x07ff0000) >> 16) + 1;
sys/arch/powerpc/pic/pic_mpcsoc.c
109
self->pic_cookie = addr;
sys/arch/powerpc/pic/pic_mpcsoc.c
110
self->pic_enable_irq = mpcpic_enable_irq;
sys/arch/powerpc/pic/pic_mpcsoc.c
111
self->pic_reenable_irq = mpcpic_enable_irq;
sys/arch/powerpc/pic/pic_mpcsoc.c
112
self->pic_disable_irq = mpcpic_disable_irq;
sys/arch/powerpc/pic/pic_mpcsoc.c
113
self->pic_get_irq = opic_get_irq;
sys/arch/powerpc/pic/pic_mpcsoc.c
114
self->pic_ack_irq = opic_ack_irq;
sys/arch/powerpc/pic/pic_mpcsoc.c
115
self->pic_establish_irq = mpcpic_establish_irq;
sys/arch/powerpc/pic/pic_mpcsoc.c
116
self->pic_finish_setup = mpcpic_finish_setup;
sys/arch/powerpc/pic/pic_mpcsoc.c
121
strcpy(self->pic_name, "mpcpic");
sys/arch/powerpc/pic/pic_mpcsoc.c
122
pic_add(self);
sys/arch/powerpc/pic/pic_mpcsoc.c
125
for (irq = 0; irq < self->pic_numintrs; irq++) {
sys/arch/powerpc/pic/pic_mpcsoc.c
135
for (irq = 0; irq < self->pic_numintrs; irq++) {
sys/arch/powerpc/pic/pic_mpcsoc.c
143
return self;
sys/arch/powerpc/pic/pic_mpcsoc.c
89
struct pic_ops *self;
sys/arch/powerpc/pic/pic_mpcsoc.c
95
self = &ops->pic;
sys/arch/powerpc/powerpc/rtas.c
101
struct rtas_softc *sc = device_private(self);
sys/arch/powerpc/powerpc/rtas.c
112
sc->ra_dev = self;
sys/arch/powerpc/powerpc/rtas.c
168
sc->ra_todr_handle.todr_dev = self;
sys/arch/powerpc/powerpc/rtas.c
182
rtas_detach(device_t self, int flags)
sys/arch/powerpc/powerpc/rtas.c
188
rtas_activate(device_t self, enum devact act)
sys/arch/powerpc/powerpc/rtas.c
98
rtas_attach(device_t parent, device_t self, void *aux)
sys/arch/prep/eisa/eisa_machdep.c
109
eisa_attach_hook(device_t parent, device_t self,
sys/arch/prep/isa/isabeep.c
65
isabeepattach(device_t parent, device_t self, void *aux)
sys/arch/prep/isa/paud_isa.c
142
paud_attach_isa(device_t parent, device_t self, void *aux)
sys/arch/prep/isa/paud_isa.c
147
sc = device_private(self);
sys/arch/prep/isa/paud_isa.c
148
sc->sc_ad1848.sc_dev = self;
sys/arch/prep/isa/paud_isa.c
166
audio_attach_mi(&paud_hw_if, &sc->sc_ad1848, self);
sys/arch/prep/pci/gten.c
120
gten_attach(device_t parent, device_t self, void *aux)
sys/arch/prep/pci/gten.c
122
struct gten_softc *gt = device_private(self);
sys/arch/prep/pci/gten.c
137
gt->gt_dev = self;
sys/arch/prep/pci/gten.c
174
aprint_normal_dev(self, "%s: %s, %dx%d, %dbpp\n", pbuf,
sys/arch/prep/pci/gten.c
178
aprint_debug_dev(self, "%s: text %dx%d, =+%d+%d\n",
sys/arch/prep/pci/gten.c
211
config_found(self, &a, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/prep/pci/pceb.c
110
aprint_normal_dev(self, "%s (rev. 0x%02x)\n", devinfo,
sys/arch/prep/pci/pceb.c
123
config_defer(self, pceb_callback);
sys/arch/prep/pci/pceb.c
127
pceb_callback(device_t self)
sys/arch/prep/pci/pceb.c
140
eisabus_attach(self, &ea.ea_eba);
sys/arch/prep/pci/pceb.c
151
isabus_attach(self, &ea.ea_iba);
sys/arch/prep/pci/pceb.c
97
pcebattach(device_t parent, device_t self, void *aux)
sys/arch/prep/pci/prep_pciconf_direct.c
130
prep_pci_direct_attach_hook(device_t parent, device_t self,
sys/arch/prep/pnpbus/fdc_pnpbus.c
106
aprint_error_dev(self, "can't get iobase size\n");
sys/arch/prep/pnpbus/fdc_pnpbus.c
121
aprint_error_dev(self,
sys/arch/prep/pnpbus/fdc_pnpbus.c
127
aprint_error_dev(self, "unknown size: %d of io mapping\n", size);
sys/arch/prep/pnpbus/fdc_pnpbus.c
140
aprint_error_dev(self,
sys/arch/prep/pnpbus/fdc_pnpbus.c
146
aprint_error_dev(self, "unable to map CTL I/O space\n");
sys/arch/prep/pnpbus/fdc_pnpbus.c
151
aprint_error_dev(self, "unable to get DMA channel\n");
sys/arch/prep/pnpbus/fdc_pnpbus.c
156
aprint_normal_dev(self,
sys/arch/prep/pnpbus/fdc_pnpbus.c
85
fdc_pnpbus_attach(device_t parent, device_t self, void *aux)
sys/arch/prep/pnpbus/fdc_pnpbus.c
87
struct fdc_pnpbus_softc *pdc = device_private(self);
sys/arch/prep/pnpbus/fdc_pnpbus.c
92
fdc->sc_dev = self;
sys/arch/prep/pnpbus/fdc_pnpbus.c
96
aprint_error_dev(self, "unable to map I/O space\n");
sys/arch/prep/pnpbus/if_we_pnpbus.c
145
we_pnpbus_attach(device_t parent, device_t self, void *aux)
sys/arch/prep/pnpbus/if_we_pnpbus.c
147
struct we_softc *wsc = device_private(self);
sys/arch/prep/pnpbus/if_we_pnpbus.c
157
sc->sc_dev = self;
sys/arch/prep/pnpbus/if_we_pnpbus.c
166
device_xname(self));
sys/arch/prep/pnpbus/if_we_pnpbus.c
173
device_xname(self));
sys/arch/prep/pnpbus/if_we_pnpbus.c
181
device_xname(self));
sys/arch/prep/pnpbus/if_we_pnpbus.c
193
device_xname(self));
sys/arch/prep/pnpbus/if_we_pnpbus.c
217
if (we_config(self, wsc, typestr))
sys/arch/prep/pnpbus/if_we_pnpbus.c
253
device_xname(self));
sys/arch/prep/pnpbus/mcclock_pnpbus.c
100
mcclock_pnpbus_attach(device_t parent, device_t self, void *aux)
sys/arch/prep/pnpbus/mcclock_pnpbus.c
102
struct mc146818_softc *sc = device_private(self);
sys/arch/prep/pnpbus/mcclock_pnpbus.c
105
sc->sc_dev = self;
sys/arch/prep/pnpbus/nvram_pnpbus.c
126
nvram_pnpbus_attach(device_t parent, device_t self, void *aux)
sys/arch/prep/pnpbus/nvram_pnpbus.c
128
struct nvram_pnpbus_softc *sc = device_private(self);
sys/arch/prep/pnpbus/nvram_pnpbus.c
134
sc->sc_mksc.sc_mk48txx.sc_dev = self;
sys/arch/prep/pnpbus/nvram_pnpbus.c
183
device_xname(self), i, nvlen);
sys/arch/prep/pnpbus/nvram_pnpbus.c
210
aprint_normal("%s: attaching clock", device_xname(self));
sys/arch/prep/pnpbus/pnpbus.c
78
pnpbus_attach(device_t parent, device_t self, void *aux)
sys/arch/prep/pnpbus/pnpbus.c
80
struct pnpbus_softc *sc = device_private(self);
sys/arch/prep/pnpbus/pnpbus.c
86
sc->sc_dev = self;
sys/arch/prep/pnpbus/pnpbus.c
93
isa_dmainit(sc->sc_ic, sc->sc_iot, sc->sc_dmat, self);
sys/arch/prep/pnpbus/pnpbus.c
96
config_search(self, aux,
sys/arch/prep/pnpbus/wdc_pnpbus.c
104
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/arch/prep/pnpbus/wdc_pnpbus.c
114
aprint_error_dev(self, "couldn't map registers\n");
sys/arch/prep/pnpbus/wdc_pnpbus.c
97
wdc_pnpbus_attach(device_t parent, device_t self, void *aux)
sys/arch/prep/pnpbus/wdc_pnpbus.c
99
struct wdc_pnpbus_softc *sc = device_private(self);
sys/arch/prep/prep/cpu.c
76
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/prep/prep/cpu.c
82
ci = cpu_attach_common(self, id);
sys/arch/prep/prep/cpu.c
88
cpu_spinup(self, ci);
sys/arch/prep/prep/cpu.c
93
cpu_setup_prep_generic(self);
sys/arch/prep/prep/mainbus.c
103
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/prep/prep/mainbus.c
123
config_found(self, &ca, NULL,
sys/arch/prep/prep/mainbus.c
171
config_found(self, &mba.mba_pba, mainbus_print,
sys/arch/prep/prep/mainbus.c
186
config_found(self, &mba.mba_pba, pcibusprint,
sys/arch/riscv/dev/plic_fdt.c
111
plic_fdt_attach_source(device_t self, int phandle, int context, int xref,
sys/arch/riscv/dev/plic_fdt.c
114
struct plic_softc * const sc = device_private(self);
sys/arch/riscv/dev/plic_fdt.c
121
aprint_error_dev(self, "incompatible CLINT "
sys/arch/riscv/dev/plic_fdt.c
128
aprint_verbose_dev(self, "inactive HART "
sys/arch/riscv/dev/plic_fdt.c
136
plic_intr, sc, device_xname(self));
sys/arch/riscv/dev/plic_fdt.c
138
aprint_error_dev(self, "couldn't install "
sys/arch/riscv/dev/plic_fdt.c
144
aprint_verbose_dev(self, "interrupt %s handler "
sys/arch/riscv/dev/plic_fdt.c
155
aprint_verbose_dev(self, "hart %"PRId64" context %d\n",
sys/arch/riscv/dev/plic_fdt.c
162
plic_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/dev/plic_fdt.c
164
struct plic_softc * const sc = device_private(self);
sys/arch/riscv/dev/plic_fdt.c
177
sc->sc_dev = self;
sys/arch/riscv/dev/plic_fdt.c
218
aprint_error_dev(self, "couldn't get context data\n");
sys/arch/riscv/dev/plic_fdt.c
230
aprint_error_dev(self, "couldn't get cell length "
sys/arch/riscv/dev/plic_fdt.c
236
plic_fdt_attach_source(self, phandle, context, xref,
sys/arch/riscv/dev/plic_fdt.c
244
aprint_verbose_dev(self, "attaching");
sys/arch/riscv/dev/plic_fdt.c
251
error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/riscv/fdt/clint_fdt.c
154
clint_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/fdt/clint_fdt.c
156
struct clint_fdt_softc * const sc = device_private(self);
sys/arch/riscv/fdt/clint_fdt.c
180
sc->sc_dev = self;
sys/arch/riscv/fdt/clint_fdt.c
201
aprint_error_dev(self, "couldn't get context data\n");
sys/arch/riscv/fdt/clint_fdt.c
218
aprint_error_dev(self, "couldn't get cell length "
sys/arch/riscv/fdt/clint_fdt.c
236
aprint_error_dev(self, "unknown interrupt source %d",
sys/arch/riscv/fdt/clint_fdt.c
243
handler, arg, device_xname(self));
sys/arch/riscv/fdt/clint_fdt.c
245
aprint_error_dev(self, "couldn't install "
sys/arch/riscv/fdt/clint_fdt.c
251
aprint_verbose_dev(self, "interrupt %s handler "
sys/arch/riscv/fdt/cpu_fdt.c
196
cpu_fdt_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/fdt/cpu_fdt.c
206
cpu_attach(self, hartid);
sys/arch/riscv/fdt/cpu_fdt.c
208
fdt_add_bus(self, phandle, faa);
sys/arch/riscv/fdt/cpus_fdt.c
43
fdtbus_cpus_md_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/fdt/intc_fdt.c
322
intc_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/fdt/intc_fdt.c
327
int error = fdtbus_register_interrupt_controller(self, phandle,
sys/arch/riscv/fdt/intc_fdt.c
343
struct intc_fdt_softc * const sc = device_private(self);
sys/arch/riscv/fdt/intc_fdt.c
347
sc->sc_dev = self;
sys/arch/riscv/fdt/pcihost_fdt.c
110
pcihost_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/fdt/pcihost_fdt.c
112
struct pcihost_softc * const sc = device_private(self);
sys/arch/riscv/fdt/pcihost_fdt.c
123
sc->sc_dev = self;
sys/arch/riscv/fdt/pcihost_fdt.c
358
pcihost_attach_hook(device_t parent, device_t self,
sys/arch/riscv/riscv/autoconf.c
84
device_register(device_t self, void *aux)
sys/arch/riscv/riscv/autoconf.c
87
if (device_is_a(self, "mainbus")) {
sys/arch/riscv/riscv/cpu.c
130
cpu_identify(device_t self, struct cpu_info *ci)
sys/arch/riscv/riscv/cpu_mainbus.c
60
cpu_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/riscv/mainbus.c
106
mainbus_attach_devicetree(device_t self)
sys/arch/riscv/riscv/mainbus.c
116
config_found(self, &faa, NULL, CFARGS(.iattr = "fdt"));
sys/arch/riscv/riscv/mainbus.c
120
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/riscv/mainbus.c
123
mainbus_attach_devicetree(self);
sys/arch/riscv/sifive/fu540_ccache.c
139
fu540_ccache_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/sifive/fu540_ccache.c
141
struct fu540_ccache_softc * const sc = device_private(self);
sys/arch/riscv/sifive/fu540_ccache.c
154
sc->sc_dev = self;
sys/arch/riscv/sifive/fu540_ccache.c
205
aprint_debug_dev(self, "l2config %#10" PRIx32 "\n",
sys/arch/riscv/sifive/fu540_ccache.c
207
aprint_verbose_dev(self, "No. of banks %4" __PRIuBIT "\n",
sys/arch/riscv/sifive/fu540_ccache.c
209
aprint_verbose_dev(self, "No. of ways per bank %4" __PRIuBIT "\n",
sys/arch/riscv/sifive/fu540_ccache.c
211
aprint_verbose_dev(self, "Sets per bank %4lu\n",
sys/arch/riscv/sifive/fu540_ccache.c
213
aprint_verbose_dev(self, "Bytes per cache block %4lu\n",
sys/arch/riscv/sifive/fu540_ccache.c
218
aprint_verbose_dev(self, "Largest way enabled %4" PRIu32 "\n",
sys/arch/riscv/sifive/fu540_prci.c
222
fu540_prci_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/sifive/fu540_prci.c
224
struct fu540_prci_softc * const sc = device_private(self);
sys/arch/riscv/sifive/fu540_prci.c
238
sc->sc_dev = self;
sys/arch/riscv/sifive/fu540_prci.c
259
sc->sc_clkdom.name = device_xname(self);
sys/arch/riscv/sifive/fu540_prci.c
277
aprint_debug_dev(self, "clkid %u [%s]: %u Hz\n", clkid,
sys/arch/riscv/sifive/fu540_prci.c
282
fdtbus_register_clock_controller(self, phandle, &fu540_prci_fdt_funcs);
sys/arch/riscv/starfive/jh7100_clkc.c
462
jh7100_clkc_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7100_clkc.c
464
struct jh71x0_clkc_softc * const sc = device_private(self);
sys/arch/riscv/starfive/jh7100_clkc.c
478
sc->sc_dev = self;
sys/arch/riscv/starfive/jh7100_clkc.c
510
sc->sc_clkdom.name = device_xname(self);
sys/arch/riscv/starfive/jh7100_clkc.c
533
aprint_debug_dev(self, "id %zu [%s]: %u Hz\n", id,
sys/arch/riscv/starfive/jh7100_clkc.c
537
fdtbus_register_clock_controller(self, phandle, &jh7100_clkc_fdt_funcs);
sys/arch/riscv/starfive/jh7100_gmac.c
110
jh7100_gmac_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7100_gmac.c
112
struct jh7100_gmac_softc * const sc = device_private(self);
sys/arch/riscv/starfive/jh7100_gmac.c
120
sc->sc_gmac.sc_dev = self;
sys/arch/riscv/starfive/jh7100_gmac.c
123
sc->sc_jh71x0eth.sc_dev = self;
sys/arch/riscv/starfive/jh7100_gmac.c
148
FDT_INTR_MPSAFE, jh7100_gmac_intr, sc, device_xname(self));
sys/arch/riscv/starfive/jh7100_gmac.c
150
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/riscv/starfive/jh7100_gmac.c
155
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/riscv/starfive/jh7100_pinctrl.c
435
jh7100_pinctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7100_pinctrl.c
437
struct jh7100_pinctrl_softc *sc = device_private(self);
sys/arch/riscv/starfive/jh7100_pinctrl.c
443
sc->sc_dev = self;
sys/arch/riscv/starfive/jh7100_pinctrl.c
500
aprint_verbose_dev(self, "selector %d\n", sel);
sys/arch/riscv/starfive/jh7100_pinctrl.c
506
fdtbus_register_pinctrl_config(self, child,
sys/arch/riscv/starfive/jh7110_clkc.c
1097
jh7110_clkc_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7110_clkc.c
1099
struct jh71x0_clkc_softc * const sc = device_private(self);
sys/arch/riscv/starfive/jh7110_clkc.c
1110
sc->sc_dev = self;
sys/arch/riscv/starfive/jh7110_clkc.c
1118
sc->sc_clkdom.name = device_xname(self);
sys/arch/riscv/starfive/jh7110_clkc.c
1156
aprint_debug_dev(self, "id %zu [%s]: %u Hz\n", id,
sys/arch/riscv/starfive/jh7110_clkc.c
1161
fdtbus_register_clock_controller(self, phandle, &jh7110_clkc_fdtclock_funcs);
sys/arch/riscv/starfive/jh7110_clkc.c
1162
fdtbus_register_reset_controller(self, phandle, &jh7110_clkc_fdtreset_funcs);
sys/arch/riscv/starfive/jh7110_eqos.c
117
jh7110_eqos_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7110_eqos.c
119
struct jh7110_eqos_softc * const sc = device_private(self);
sys/arch/riscv/starfive/jh7110_eqos.c
127
sc->sc_eqos.sc_dev = self;
sys/arch/riscv/starfive/jh7110_eqos.c
130
sc->sc_jh71x0eth.sc_dev = self;
sys/arch/riscv/starfive/jh7110_eqos.c
153
FDT_INTR_MPSAFE, eqos_intr, eqos_sc, device_xname(self));
sys/arch/riscv/starfive/jh7110_eqos.c
155
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/riscv/starfive/jh7110_eqos.c
160
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/riscv/starfive/jh7110_pcie.c
579
jh7110_pcie_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7110_pcie.c
581
struct jh7110_pcie_softc * const sc = device_private(self);
sys/arch/riscv/starfive/jh7110_pcie.c
589
phsc->sc_dev = self;
sys/arch/riscv/starfive/jh7110_pcie.c
689
FDT_INTR_MPSAFE, jh7110_pcie_intr, sc, device_xname(self));
sys/arch/riscv/starfive/jh7110_pcie.c
691
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/riscv/starfive/jh7110_pcie.c
696
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/riscv/starfive/jh7110_pcie.c
698
fdtbus_register_interrupt_controller(self,
sys/arch/riscv/starfive/jh7110_pciephy.c
108
jh7110_pciephy_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7110_pciephy.c
110
struct jh7110_pciephy_softc *sc = device_private(self);
sys/arch/riscv/starfive/jh7110_pciephy.c
130
sc->sc_dev = self;
sys/arch/riscv/starfive/jh7110_pciephy.c
140
fdtbus_register_phy_controller(self, faa->faa_phandle,
sys/arch/riscv/starfive/jh7110_pinctrl.c
708
jh7110_pinctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7110_pinctrl.c
710
struct jh7110_pinctrl_softc *sc = device_private(self);
sys/arch/riscv/starfive/jh7110_pinctrl.c
717
sc->sc_dev = self;
sys/arch/riscv/starfive/jh7110_pinctrl.c
744
fdtbus_register_pinctrl_config(self, child,
sys/arch/riscv/starfive/jh7110_syscon.c
110
jh7110_syscon_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7110_syscon.c
112
struct jh7110_syscon_softc *sc = device_private(self);
sys/arch/riscv/starfive/jh7110_syscon.c
120
sc->sc_dev = self;
sys/arch/riscv/starfive/jh7110_syscon.c
147
fdtbus_register_syscon(self, phandle, &sc->sc_syscon);
sys/arch/riscv/starfive/jh7110_trng.c
291
jh7110_trng_attach_i(device_t self)
sys/arch/riscv/starfive/jh7110_trng.c
293
struct jh7110_trng_softc * const sc = device_private(self);
sys/arch/riscv/starfive/jh7110_trng.c
299
rnd_attach_source(&sc->sc_rndsource, device_xname(self), RND_TYPE_RNG,
sys/arch/riscv/starfive/jh7110_trng.c
319
jh7110_trng_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh7110_trng.c
321
struct jh7110_trng_softc * const sc = device_private(self);
sys/arch/riscv/starfive/jh7110_trng.c
364
sc->sc_dev = self;
sys/arch/riscv/starfive/jh7110_trng.c
386
aprint_error_dev(self, "failed to decode interrupt\n");
sys/arch/riscv/starfive/jh7110_trng.c
391
FDT_INTR_MPSAFE, jh7110_trng_intr, sc, device_xname(self));
sys/arch/riscv/starfive/jh7110_trng.c
393
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/arch/riscv/starfive/jh7110_trng.c
397
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/arch/riscv/starfive/jh7110_trng.c
399
config_interrupts(self, jh7110_trng_attach_i);
sys/arch/riscv/starfive/jh71x0_temp.c
123
jh71x0_temp_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh71x0_temp.c
125
struct jh71x0_temp_softc * const sc = device_private(self);
sys/arch/riscv/starfive/jh71x0_temp.c
137
sc->sc_dev = self;
sys/arch/riscv/starfive/jh71x0_temp.c
178
(void)strlcpy(sc->sc_sensor.desc, device_xname(self),
sys/arch/riscv/starfive/jh71x0_temp.c
186
sc->sc_sme->sme_name = device_xname(self);
sys/arch/riscv/starfive/jh71x0_temp.c
191
aprint_error_dev(self, "unable to register with sysmon\n");
sys/arch/riscv/starfive/jh71x0_usb.c
194
jh71x0_usb_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/starfive/jh71x0_usb.c
196
struct jh71x0_usb_softc *sc = device_private(self);
sys/arch/riscv/starfive/jh71x0_usb.c
200
sc->sc_dev = self;
sys/arch/riscv/sunxi/sun20i_d1_ccu.c
528
sun20i_d1_ccu_attach(device_t parent, device_t self, void *aux)
sys/arch/riscv/sunxi/sun20i_d1_ccu.c
530
struct sunxi_ccu_softc * const sc = device_private(self);
sys/arch/riscv/sunxi/sun20i_d1_ccu.c
533
sc->sc_dev = self;
sys/arch/rs6000/ioplanar/com_iop.c
130
aprint_error_dev(self,
sys/arch/rs6000/ioplanar/com_iop.c
83
com_iop_attach(device_t parent, device_t self, void *aux)
sys/arch/rs6000/ioplanar/com_iop.c
85
struct com_iop_softc *isc = device_private(self);
sys/arch/rs6000/ioplanar/com_iop.c
91
sc->sc_dev = self;
sys/arch/rs6000/mca/ioplanar.c
74
ioplanar_attach(device_t parent, device_t self, void *aux)
sys/arch/rs6000/mca/ioplanar.c
76
struct ioplanar_softc *sc = device_private(self);
sys/arch/rs6000/mca/ioplanar.c
82
sc->sc_dev = self;
sys/arch/rs6000/mca/ioplanar.c
89
config_search(self, aux,
sys/arch/rs6000/mca/mca_machdep.c
118
mca_attach_hook(device_t parent, device_t self, struct mcabus_attach_args *mba)
sys/arch/rs6000/rs6000/cpu.c
64
cpuattach(device_t parent, device_t self, void *aux)
sys/arch/rs6000/rs6000/cpu.c
68
ci = cpu_attach_common(self, 0);
sys/arch/rs6000/rs6000/mainbus.c
118
mcabus_attach(self, &mba.mba_mba);
sys/arch/rs6000/rs6000/mainbus.c
84
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/rs6000/rs6000/mainbus.c
97
config_found(self, &ca, mainbus_print,
sys/arch/sandpoint/isa/mcclock_isa.c
208
mcclock_isa_attach(device_t parent, device_t self, void *aux)
sys/arch/sandpoint/isa/mcclock_isa.c
210
struct mc146818_softc *sc = device_private(self);
sys/arch/sandpoint/isa/mcclock_isa.c
213
sc->sc_dev = self;
sys/arch/sandpoint/pci/pci_machdep.c
105
pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/sandpoint/sandpoint/com_eumb.c
110
if (device_cfdata(self)->cf_flags & COM_EUMB_FLAG_BROKEN_ETXRDY) {
sys/arch/sandpoint/sandpoint/com_eumb.c
118
comintr, sc, device_xname(self));
sys/arch/sandpoint/sandpoint/com_eumb.c
119
aprint_normal_dev(self, "interrupting at irq %d\n",
sys/arch/sandpoint/sandpoint/com_eumb.c
80
com_eumb_attach(device_t parent, device_t self, void *aux)
sys/arch/sandpoint/sandpoint/com_eumb.c
82
struct com_softc *sc = device_private(self);
sys/arch/sandpoint/sandpoint/com_eumb.c
88
sc->sc_dev = self;
sys/arch/sandpoint/sandpoint/eumb.c
67
eumb_attach(device_t parent, device_t self, void *aux)
sys/arch/sandpoint/sandpoint/eumb.c
72
config_search(self, aux,
sys/arch/sandpoint/sandpoint/flash_cfi.c
111
sc = device_private(self);
sys/arch/sandpoint/sandpoint/flash_cfi.c
112
sc->sc_dev = self;
sys/arch/sandpoint/sandpoint/flash_cfi.c
119
aprint_error_dev(self, "could not map error %d\n", error);
sys/arch/sandpoint/sandpoint/flash_cfi.c
129
aprint_error_dev(self, "could not map error %d\n", error);
sys/arch/sandpoint/sandpoint/flash_cfi.c
143
cfi_print(self, &sc->sc_cfi);
sys/arch/sandpoint/sandpoint/flash_cfi.c
148
aprint_error_dev(self, "could not map error %d\n", error);
sys/arch/sandpoint/sandpoint/flash_cfi.c
152
if (!pmf_device_register1(self, NULL, NULL, NULL))
sys/arch/sandpoint/sandpoint/flash_cfi.c
153
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/sandpoint/sandpoint/flash_cfi.c
155
sc->sc_nordev = nor_attach_mi(&sc->sc_nor_if, self);
sys/arch/sandpoint/sandpoint/flash_cfi.c
159
sandpointcfi_detach(device_t self, int flags)
sys/arch/sandpoint/sandpoint/flash_cfi.c
161
struct sandpointcfi_softc *sc device_private(self);
sys/arch/sandpoint/sandpoint/flash_cfi.c
164
error = config_detach_children(self, flags);
sys/arch/sandpoint/sandpoint/flash_cfi.c
168
pmf_device_deregister(self);
sys/arch/sandpoint/sandpoint/flash_cfi.c
99
sandpointcfi_attach(device_t parent, device_t self, void *aux)
sys/arch/sandpoint/sandpoint/iic_eumb.c
57
iic_eumb_attach(device_t parent, device_t self, void *aux)
sys/arch/sandpoint/sandpoint/iic_eumb.c
59
struct motoi2c_softc *sc = device_private(self);
sys/arch/sandpoint/sandpoint/iic_eumb.c
63
sc->sc_dev = self;
sys/arch/sandpoint/sandpoint/mainbus.c
106
config_found(self, &mba, mainbus_print,
sys/arch/sandpoint/sandpoint/mainbus.c
112
config_found(self, &mba, mainbus_print,
sys/arch/sandpoint/sandpoint/mainbus.c
144
config_found(self, &pba, pcibusprint,
sys/arch/sandpoint/sandpoint/mainbus.c
171
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/sandpoint/sandpoint/mainbus.c
183
ci = cpu_attach_common(self, 0);
sys/arch/sandpoint/sandpoint/mainbus.c
193
aprint_normal_dev(self, "%u.%02u MHz\n",
sys/arch/sandpoint/sandpoint/mainbus.c
83
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sandpoint/sandpoint/mainbus.c
93
config_found(self, &mba, mainbus_print,
sys/arch/sandpoint/sandpoint/mainbus.c
98
config_found(self, &mba, mainbus_print,
sys/arch/sandpoint/sandpoint/nhpow.c
123
nhpow_attach(device_t parent, device_t self, void *aux)
sys/arch/sandpoint/sandpoint/nhpow.c
135
sc = device_private(self);
sys/arch/sandpoint/sandpoint/nhpow.c
136
sc->sc_dev = self;
sys/arch/sandpoint/sandpoint/nhpow.c
156
sc, device_xname(self));
sys/arch/sandpoint/sandpoint/nhpow.c
157
aprint_normal_dev(self, "interrupting at irq %d\n", I8259_ICU + 4);
sys/arch/sandpoint/sandpoint/nhpow.c
211
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/arch/sandpoint/sandpoint/satmgr.c
205
satmgr_attach(device_t parent, device_t self, void *aux)
sys/arch/sandpoint/sandpoint/satmgr.c
208
struct satmgr_softc *sc = device_private(self);
sys/arch/sandpoint/sandpoint/satmgr.c
231
sc->sc_dev = self;
sys/arch/sandpoint/sandpoint/satmgr.c
256
hwintr, sc, device_xname(self));
sys/arch/sandpoint/sandpoint/satmgr.c
257
aprint_normal_dev(self, "interrupting at irq %d\n",
sys/arch/sandpoint/sandpoint/satmgr.c
327
device_xname(self));
sys/arch/sandpoint/sandpoint/satmgr.c
334
config_interrupts(self, ops->init);
sys/arch/sandpoint/sandpoint/satmgr.c
788
sinit(device_t self)
sys/arch/sandpoint/sandpoint/satmgr.c
790
struct satmgr_softc *sc = device_private(self);
sys/arch/sandpoint/sandpoint/satmgr.c
825
qinit(device_t self)
sys/arch/sandpoint/sandpoint/satmgr.c
827
struct satmgr_softc *sc = device_private(self);
sys/arch/sandpoint/sandpoint/satmgr.c
893
iinit(device_t self)
sys/arch/sandpoint/sandpoint/satmgr.c
895
struct satmgr_softc *sc = device_private(self);
sys/arch/sandpoint/sandpoint/satmgr.c
961
minit(device_t self)
sys/arch/sandpoint/sandpoint/satmgr.c
963
struct satmgr_softc *sc = device_private(self);
sys/arch/sandpoint/stand/altboot/dsk.c
89
dskdv_init(void *self)
sys/arch/sandpoint/stand/altboot/dsk.c
91
struct pcidev *pci = self;
sys/arch/sandpoint/stand/altboot/nif.c
66
netif_init(void *self)
sys/arch/sandpoint/stand/altboot/nif.c
68
struct pcidev *pci = self;
sys/arch/sbmips/sbmips/cpu.c
129
cpu->sb1cpu_dev = self;
sys/arch/sbmips/sbmips/cpu.c
140
cpu->sb1cpu_dev = self;
sys/arch/sbmips/sbmips/cpu.c
163
aprint_normal_dev(self,
sys/arch/sbmips/sbmips/cpu.c
174
cpu_identify(self);
sys/arch/sbmips/sbmips/cpu.c
176
cpu_attach_common(self, ci);
sys/arch/sbmips/sbmips/cpu.c
85
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/sbmips/sbmips/cpu.c
88
struct cpu_softc * const cpu = device_private(self);
sys/arch/sbmips/sbmips/cpu.c
89
const char * const xname = device_xname(self);
sys/arch/sbmips/sbmips/rtc.c
125
xirtc_attach(device_t parent, device_t self, void *aux)
sys/arch/sbmips/sbmips/rtc.c
128
struct rtc_softc *sc = device_private(self);
sys/arch/sbmips/sbmips/rtc.c
133
sc->sc_dev = self;
sys/arch/sbmips/sbmips/rtc.c
140
sc->sc_ct.todr_dev = self;
sys/arch/sbmips/sbmips/rtc.c
236
strtc_attach(device_t parent, device_t self, void *aux)
sys/arch/sbmips/sbmips/rtc.c
239
struct rtc_softc *sc = device_private(self);
sys/arch/sbmips/sbmips/rtc.c
244
sc->sc_dev = self;
sys/arch/sbmips/sbmips/rtc.c
250
sc->sc_ct.todr_dev = self;
sys/arch/sbmips/sbmips/zbbus.c
78
zbbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sbmips/sbmips/zbbus.c
91
config_found(self, &za, zbbus_print,
sys/arch/sgimips/dev/crime.c
107
crime_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/crime.c
111
struct crime_softc *sc = device_private(self);
sys/arch/sgimips/dev/crime.c
120
sc->sc_dev = self;
sys/arch/sgimips/dev/crmfb.c
245
crmfb_attach(device_t parent, device_t self, void *opaque)
sys/arch/sgimips/dev/crmfb.c
260
sc = device_private(self);
sys/arch/sgimips/dev/crmfb.c
261
sc->sc_dev = self;
sys/arch/sgimips/dev/crmfb.c
417
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/sgimips/dev/ctl.c
89
ctl_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/ctl.c
92
struct ctl_softc * const sc = device_private(self);
sys/arch/sgimips/dev/ctl.c
98
sc->sc_dev = self;
sys/arch/sgimips/dev/dpclock.c
108
dpclock_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/dpclock.c
110
struct dpclock_softc *sc = device_private(self);
sys/arch/sgimips/dev/dpclock.c
116
sc->sc_dev = self;
sys/arch/sgimips/dev/dpclock.c
133
sc->sc_todrch.todr_dev = self;
sys/arch/sgimips/dev/dsclock.c
103
aprint_error_dev(self,
sys/arch/sgimips/dev/dsclock.c
108
sc->sc_todrch.todr_dev = self;
sys/arch/sgimips/dev/dsclock.c
91
dsclock_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/dsclock.c
93
struct dsclock_softc *sc = device_private(self);
sys/arch/sgimips/dev/dsclock.c
99
sc->sc_dev = self;
sys/arch/sgimips/dev/imc.c
233
eisabus_attach(self, &iaa);
sys/arch/sgimips/dev/imc.c
239
config_found(self, &iaa, imc_print,
sys/arch/sgimips/dev/imc.c
99
imc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/int.c
110
int_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/int.c
209
curcpu()->ci_cpu_freq = int2_cpu_freq(self);
sys/arch/sgimips/dev/int.c
456
int2_cpu_freq(device_t self)
sys/arch/sgimips/dev/int.c
478
device_xname(self), cps / 10000, cps / 5000);
sys/arch/sgimips/dev/pic.c
187
(void)config_found(self, (void *)&iaa, pic_print, CFARGS_NONE);
sys/arch/sgimips/dev/pic.c
92
pic_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/scn.c
798
scn_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/scn.c
820
sc = device_private(self);
sys/arch/sgimips/dev/scn.c
821
unit = device_unit(self);
sys/arch/sgimips/dev/zs.c
209
zs_hpc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/zs.c
211
struct zsc_softc *zsc = device_private(self);
sys/arch/sgimips/dev/zs.c
221
zsc->zsc_dev = self;
sys/arch/sgimips/dev/zs.c
231
zs_unit = device_unit(self);
sys/arch/sgimips/dev/zs.c
260
aprint_error_dev(self, "cannot map regs\n");
sys/arch/sgimips/dev/zs.c
320
if (!config_found(self, (void *)&zsc_args, zs_print,
sys/arch/sgimips/dev/zs.c
337
device_xname(self), "intr");
sys/arch/sgimips/dev/zs_kbd.c
189
zskbd_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/zs_kbd.c
199
sc = device_private(self);
sys/arch/sgimips/dev/zs_kbd.c
200
sc->sc_dev = self;
sys/arch/sgimips/dev/zs_kbd.c
250
sc->sc_dc->wskbddev = config_found(self, &wskaa, wskbddevprint,
sys/arch/sgimips/dev/zs_ms.c
136
zsms_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/dev/zs_ms.c
146
sc = device_private(self);
sys/arch/sgimips/dev/zs_ms.c
147
sc->sc_dev = self;
sys/arch/sgimips/dev/zs_ms.c
173
sc->wsmousedev = config_found(self, &wsmaa, wsmousedevprint,
sys/arch/sgimips/eisa/eisa_machdep.c
82
eisa_attach_hook(device_t parent, device_t self, struct eisabus_attach_args *eba)
sys/arch/sgimips/gio/gio.c
180
gio_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/gio/gio.c
222
if (config_found(self, &ga, gio_print,
sys/arch/sgimips/gio/gio.c
270
config_found(self, &ga, gio_print,
sys/arch/sgimips/gio/gio.c
274
config_search(self, &ga,
sys/arch/sgimips/gio/grtwo.c
499
grtwo_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/gio/grtwo.c
502
struct grtwo_softc *sc = device_private(self);
sys/arch/sgimips/gio/grtwo.c
531
config_found(self, &wa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/sgimips/gio/light.c
312
light_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/gio/light.c
315
struct light_softc *sc = device_private(self);
sys/arch/sgimips/gio/light.c
339
config_found(self, &wa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/sgimips/gio/newport.c
1002
newport_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/gio/newport.c
1005
struct newport_softc *sc = device_private(self);
sys/arch/sgimips/gio/newport.c
1009
sc->sc_dev = self;
sys/arch/sgimips/gio/newport.c
1032
device_xname(self),
sys/arch/sgimips/gio/newport.c
947
newport_match(device_t parent, struct cfdata *self, void *aux)
sys/arch/sgimips/gio/pci_gio.c
132
giopci_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/gio/pci_gio.c
134
struct giopci_softc *sc = device_private(self);
sys/arch/sgimips/gio/pci_gio.c
201
printf("%s: unable to map PCI registers\n", device_xname(self));
sys/arch/sgimips/gio/pci_gio.c
239
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/sgimips/hpc/button.c
120
pmf_device_register(self, NULL, NULL);
sys/arch/sgimips/hpc/button.c
86
button_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/hpc/button.c
91
sc = device_private(self);
sys/arch/sgimips/hpc/button.c
92
sc->sc_dev = self;
sys/arch/sgimips/hpc/haltwo.c
289
haltwo_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/hpc/haltwo.c
295
sc = device_private(self);
sys/arch/sgimips/hpc/haltwo.c
297
sc->sc_dev = self;
sys/arch/sgimips/hpc/haltwo.c
361
audio_attach_mi(&haltwo_hw_if, sc, self);
sys/arch/sgimips/hpc/haltwo.c
363
if (!pmf_device_register1(self, NULL, NULL, haltwo_shutdown))
sys/arch/sgimips/hpc/haltwo.c
364
aprint_error_dev(self,
sys/arch/sgimips/hpc/haltwo.c
765
haltwo_shutdown(device_t self, int howto)
sys/arch/sgimips/hpc/haltwo.c
769
sc = device_private(self);
sys/arch/sgimips/hpc/haud.c
805
haud_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/hpc/haud.c
807
struct haud_softc *sc = device_private(self);
sys/arch/sgimips/hpc/haud.c
810
sc->sc_dev = self;
sys/arch/sgimips/hpc/haud.c
858
audio_attach_mi(&haud_hw_if, sc, self);
sys/arch/sgimips/hpc/hpc.c
400
hpc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/hpc/hpc.c
402
struct hpc_softc *sc = device_private(self);
sys/arch/sgimips/hpc/hpc.c
411
sc->sc_dev = self;
sys/arch/sgimips/hpc/hpc.c
545
config_found(self, &ha, NULL,
sys/arch/sgimips/hpc/hpc.c
548
config_found(self, &ha, hpc_print,
sys/arch/sgimips/hpc/if_sq.c
180
sq_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/hpc/if_sq.c
184
struct sq_softc *sc = device_private(self);
sys/arch/sgimips/hpc/if_sq.c
188
sc->sc_dev = self;
sys/arch/sgimips/hpc/if_sq.c
302
device_xname(self), "intr");
sys/arch/sgimips/hpc/if_sq.c
329
device_xname(self), ether_sprintf(sc->sc_enaddr));
sys/arch/sgimips/hpc/if_sq.c
331
strcpy(ifp->if_xname, device_xname(self));
sys/arch/sgimips/hpc/pckbc_hpc.c
83
pckbc_hpc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/hpc/pckbc_hpc.c
85
struct pckbc_hpc_softc *msc = device_private(self);
sys/arch/sgimips/hpc/pckbc_hpc.c
91
sc->sc_dv = self;
sys/arch/sgimips/hpc/pi1ppc.c
144
static void pi1ppc_attach(device_t parent, device_t self, void *aux);
sys/arch/sgimips/hpc/pi1ppc.c
172
pi1ppc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/hpc/pi1ppc.c
177
sc = device_private(self);
sys/arch/sgimips/hpc/pi1ppc.c
178
sc->sc_dev = self;
sys/arch/sgimips/hpc/wdsc.c
138
wdsc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/hpc/wdsc.c
140
struct wdsc_softc *wsc = device_private(self);
sys/arch/sgimips/hpc/wdsc.c
145
sc->sc_dev = self;
sys/arch/sgimips/ioc/if_le_oioc.c
151
le_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/ioc/if_le_oioc.c
153
struct le_softc *lesc = device_private(self);
sys/arch/sgimips/ioc/if_le_oioc.c
162
sc->sc_dev = self;
sys/arch/sgimips/ioc/if_le_oioc.c
232
aprint_normal("%s", device_xname(self));
sys/arch/sgimips/ioc/ioc.c
164
config_search(self, NULL,
sys/arch/sgimips/ioc/ioc.c
212
ioc_blink(void *self)
sys/arch/sgimips/ioc/ioc.c
214
struct ioc_softc *sc = device_private(self);
sys/arch/sgimips/ioc/ioc.c
95
ioc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/ioc/ioc.c
97
struct ioc_softc *sc = device_private(self);
sys/arch/sgimips/ioc/oioc.c
151
config_found(self, &oa, oioc_print, CFARGS_NONE);
sys/arch/sgimips/ioc/oioc.c
94
oioc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/ioc/oioc.c
96
struct oioc_softc *sc = device_private(self);
sys/arch/sgimips/ioc/oiocsc.c
124
oiocsc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/ioc/oiocsc.c
126
struct oiocsc_softc *osc = device_private(self);
sys/arch/sgimips/ioc/oiocsc.c
131
sc->sc_dev = self;
sys/arch/sgimips/mace/com_mace.c
85
com_mace_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/mace/com_mace.c
87
struct com_mace_softc *msc = device_private(self);
sys/arch/sgimips/mace/com_mace.c
92
sc->sc_dev = self;
sys/arch/sgimips/mace/if_mec.c
1903
mec_shutdown(device_t self, int howto)
sys/arch/sgimips/mace/if_mec.c
1905
struct mec_softc *sc = device_private(self);
sys/arch/sgimips/mace/if_mec.c
427
mec_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/mace/if_mec.c
429
struct mec_softc *sc = device_private(self);
sys/arch/sgimips/mace/if_mec.c
440
sc->sc_dev = self;
sys/arch/sgimips/mace/if_mec.c
566
aprint_normal_dev(self,
sys/arch/sgimips/mace/if_mec.c
570
aprint_normal_dev(self, "Ethernet address %s\n",
sys/arch/sgimips/mace/if_mec.c
583
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY, 0);
sys/arch/sgimips/mace/if_mec.c
596
strcpy(ifp->if_xname, device_xname(self));
sys/arch/sgimips/mace/if_mec.c
621
rnd_attach_source(&sc->sc_rnd_source, device_xname(self),
sys/arch/sgimips/mace/if_mec.c
626
NULL, device_xname(self), "TX pkts queued total");
sys/arch/sgimips/mace/if_mec.c
628
NULL, device_xname(self), "TX pkts padded in txdesc buf");
sys/arch/sgimips/mace/if_mec.c
630
NULL, device_xname(self), "TX pkts copied to txdesc buf");
sys/arch/sgimips/mace/if_mec.c
632
NULL, device_xname(self), "TX pkts using concat ptr1");
sys/arch/sgimips/mace/if_mec.c
634
NULL, device_xname(self), "TX pkts w/ptr1 ~160bytes");
sys/arch/sgimips/mace/if_mec.c
636
NULL, device_xname(self), "TX pkts w/ptr1 ~256bytes");
sys/arch/sgimips/mace/if_mec.c
638
NULL, device_xname(self), "TX pkts w/ptr1 ~512bytes");
sys/arch/sgimips/mace/if_mec.c
640
NULL, device_xname(self), "TX pkts w/ptr1 ~1024bytes");
sys/arch/sgimips/mace/if_mec.c
642
NULL, device_xname(self), "TX pkts w/ptr1 >1024bytes");
sys/arch/sgimips/mace/if_mec.c
644
NULL, device_xname(self), "TX pkts using concat ptr1,2");
sys/arch/sgimips/mace/if_mec.c
646
NULL, device_xname(self), "TX pkts w/ptr2 ~160bytes");
sys/arch/sgimips/mace/if_mec.c
648
NULL, device_xname(self), "TX pkts w/ptr2 ~256bytes");
sys/arch/sgimips/mace/if_mec.c
650
NULL, device_xname(self), "TX pkts w/ptr2 ~512bytes");
sys/arch/sgimips/mace/if_mec.c
652
NULL, device_xname(self), "TX pkts w/ptr2 ~1024bytes");
sys/arch/sgimips/mace/if_mec.c
654
NULL, device_xname(self), "TX pkts w/ptr2 >1024bytes");
sys/arch/sgimips/mace/if_mec.c
656
NULL, device_xname(self), "TX pkts using concat ptr1,2,3");
sys/arch/sgimips/mace/if_mec.c
658
NULL, device_xname(self), "TX pkts w/ptr3 ~160bytes");
sys/arch/sgimips/mace/if_mec.c
660
NULL, device_xname(self), "TX pkts w/ptr3 ~256bytes");
sys/arch/sgimips/mace/if_mec.c
662
NULL, device_xname(self), "TX pkts w/ptr3 ~512bytes");
sys/arch/sgimips/mace/if_mec.c
664
NULL, device_xname(self), "TX pkts w/ptr3 ~1024bytes");
sys/arch/sgimips/mace/if_mec.c
666
NULL, device_xname(self), "TX pkts w/ptr3 >1024bytes");
sys/arch/sgimips/mace/if_mec.c
668
NULL, device_xname(self), "TX pkts copied to new mbufs");
sys/arch/sgimips/mace/if_mec.c
670
NULL, device_xname(self), "TX pkts w/mbuf ~160bytes");
sys/arch/sgimips/mace/if_mec.c
672
NULL, device_xname(self), "TX pkts w/mbuf ~256bytes");
sys/arch/sgimips/mace/if_mec.c
674
NULL, device_xname(self), "TX pkts w/mbuf ~512bytes");
sys/arch/sgimips/mace/if_mec.c
676
NULL, device_xname(self), "TX pkts w/mbuf ~1024bytes");
sys/arch/sgimips/mace/if_mec.c
678
NULL, device_xname(self), "TX pkts w/mbuf >1024bytes");
sys/arch/sgimips/mace/if_mec.c
680
NULL, device_xname(self), "TX pkts using ptrs total");
sys/arch/sgimips/mace/if_mec.c
682
NULL, device_xname(self), "TX pkts w/ptrs no hdr chain");
sys/arch/sgimips/mace/if_mec.c
684
NULL, device_xname(self), "TX pkts w/ptrs 1 hdr chain");
sys/arch/sgimips/mace/if_mec.c
686
NULL, device_xname(self), "TX pkts w/ptrs 2 hdr chains");
sys/arch/sgimips/mace/if_mec.c
688
NULL, device_xname(self), "TX pkts w/ptrs 3 hdr chains");
sys/arch/sgimips/mace/if_mec.c
690
NULL, device_xname(self), "TX pkts w/ptrs 4 hdr chains");
sys/arch/sgimips/mace/if_mec.c
692
NULL, device_xname(self), "TX pkts w/ptrs 5 hdr chains");
sys/arch/sgimips/mace/if_mec.c
694
NULL, device_xname(self), "TX pkts w/ptrs >5 hdr chains");
sys/arch/sgimips/mace/if_mec.c
696
NULL, device_xname(self), "TX pkts w/ptrs ~8bytes hdr");
sys/arch/sgimips/mace/if_mec.c
698
NULL, device_xname(self), "TX pkts w/ptrs ~16bytes hdr");
sys/arch/sgimips/mace/if_mec.c
700
NULL, device_xname(self), "TX pkts w/ptrs ~32bytes hdr");
sys/arch/sgimips/mace/if_mec.c
702
NULL, device_xname(self), "TX pkts w/ptrs ~64bytes hdr");
sys/arch/sgimips/mace/if_mec.c
704
NULL, device_xname(self), "TX pkts w/ptrs ~80bytes hdr");
sys/arch/sgimips/mace/if_mec.c
706
NULL, device_xname(self), "TX pkts w/ptrs ~96bytes hdr");
sys/arch/sgimips/mace/if_mec.c
708
NULL, device_xname(self), "TX stalled due to no txdesc");
sys/arch/sgimips/mace/if_mec.c
710
NULL, device_xname(self), "TX empty interrupts");
sys/arch/sgimips/mace/if_mec.c
712
NULL, device_xname(self), "TX sent interrupts");
sys/arch/sgimips/mace/if_mec.c
716
if (pmf_device_register1(self, NULL, NULL, mec_shutdown))
sys/arch/sgimips/mace/if_mec.c
717
pmf_class_network_register(self, ifp);
sys/arch/sgimips/mace/if_mec.c
719
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/sgimips/mace/if_mec.c
746
mec_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/arch/sgimips/mace/if_mec.c
748
struct mec_softc *sc = device_private(self);
sys/arch/sgimips/mace/if_mec.c
778
mec_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/arch/sgimips/mace/if_mec.c
780
struct mec_softc *sc = device_private(self);
sys/arch/sgimips/mace/lpt_mace.c
83
lpt_mace_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/mace/lpt_mace.c
85
struct lpt_mace_softc *msc = device_private(self);
sys/arch/sgimips/mace/lpt_mace.c
89
sc->sc_dev = self;
sys/arch/sgimips/mace/mace.c
143
mace_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/mace/mace.c
145
struct mace_softc *sc = device_private(self);
sys/arch/sgimips/mace/mace.c
149
sc->sc_dev = self;
sys/arch/sgimips/mace/mace.c
163
aprint_debug("%s: isa sts %#"PRIx64"\n", device_xname(self),
sys/arch/sgimips/mace/mace.c
165
aprint_debug("%s: isa msk %#"PRIx64"\n", device_xname(self),
sys/arch/sgimips/mace/mace.c
198
config_search(self, NULL,
sys/arch/sgimips/mace/mace.c
341
mace_blink(void *self)
sys/arch/sgimips/mace/mace.c
343
struct mace_softc *sc = device_private(self);
sys/arch/sgimips/mace/macekbc.c
114
macekbc_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/mace/macekbc.c
123
sc = device_private(self);
sys/arch/sgimips/mace/macekbc.c
135
device_xname(self));
sys/arch/sgimips/mace/macekbc.c
141
device_xname(self));
sys/arch/sgimips/mace/macekbc.c
148
device_xname(self));
sys/arch/sgimips/mace/macekbc.c
162
if (pckbport_attach_slot(self, t->t_pt, PCKBPORT_KBD_SLOT))
sys/arch/sgimips/mace/macekbc.c
164
if (pckbport_attach_slot(self, t->t_pt, PCKBPORT_AUX_SLOT))
sys/arch/sgimips/mace/mavb.c
1022
audio_attach_mi(&mavb_sa_hw_if, sc, self);
sys/arch/sgimips/mace/mavb.c
895
mavb_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/mace/mavb.c
897
struct mavb_softc *sc = device_private(self);
sys/arch/sgimips/mace/mavb.c
904
sc->sc_dev = self;
sys/arch/sgimips/mace/mcclock_mace.c
122
mcclock_mace_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/mace/mcclock_mace.c
124
struct mcclock_mace_softc *sc = device_private(self);
sys/arch/sgimips/mace/mcclock_mace.c
127
sc->sc_dev = self;
sys/arch/sgimips/mace/mcclock_mace.c
150
sc->sc_todrch.todr_dev = self;
sys/arch/sgimips/mace/pci_mace.c
120
macepci_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/mace/pci_mace.c
122
struct macepci_softc *sc = device_private(self);
sys/arch/sgimips/mace/pci_mace.c
207
config_found(self, &pba, pcibusprint, CFARGS_NONE);
sys/arch/sgimips/pci/pci_machdep.c
62
pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/sgimips/sgimips/cpu.c
89
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/sgimips/cpu.c
93
ci->ci_dev = self;
sys/arch/sgimips/sgimips/cpu.c
94
device_set_private(self, ci);
sys/arch/sgimips/sgimips/cpu.c
97
cpu_identify(self);
sys/arch/sgimips/sgimips/machdep.c
973
device_t self = atc->atc_cookie;
sys/arch/sgimips/sgimips/machdep.c
980
panic("%s: split L2 cache", device_xname(self));
sys/arch/sgimips/sgimips/mainbus.c
67
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sgimips/sgimips/mainbus.c
76
config_search(self, &ma,
sys/arch/sh3/dev/adc.c
72
adc_attach(device_t parent, device_t self, void *aux)
sys/arch/sh3/dev/adc.c
81
config_search(self, NULL,
sys/arch/sh3/dev/adc.c
90
if (!pmf_device_register(self, NULL, NULL))
sys/arch/sh3/dev/adc.c
91
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/sh3/dev/rtc.c
120
sc->sc_todr.todr_dev = self;
sys/arch/sh3/dev/rtc.c
124
sc->sc_year0 = device_getprop_uint_default(self, "start-year",
sys/arch/sh3/dev/rtc.c
126
aprint_debug_dev(self, "using start-year %u\n", sc->sc_year0);
sys/arch/sh3/dev/rtc.c
137
if (!pmf_device_register(self, NULL, NULL))
sys/arch/sh3/dev/rtc.c
138
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/sh3/dev/rtc.c
84
rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/sh3/dev/rtc.c
95
sc = device_private(self);
sys/arch/sh3/dev/rtc.c
96
sc->sc_dev = self;
sys/arch/sh3/dev/sci.c
385
sci_attach(device_t parent, device_t self, void *aux)
sys/arch/sh3/dev/sci.c
387
struct sci_softc *sc = device_private(self);
sys/arch/sh3/dev/sci.c
392
sc->sc_dev = self;
sys/arch/sh3/dev/sci.c
400
printf("\n%s: console\n", device_xname(self));
sys/arch/sh3/dev/scif.c
442
scif_attach(device_t parent, device_t self, void *aux)
sys/arch/sh3/dev/scif.c
447
sc = device_private(self);
sys/arch/sh3/dev/scif.c
448
sc->sc_dev = self;
sys/arch/sh3/dev/scif.c
459
aprint_normal_dev(self, "console\n");
sys/arch/sh3/dev/scif.c
466
aprint_normal_dev(self, "kgdb\n");
sys/arch/sh3/dev/scif.c
512
if (!pmf_device_register(self, NULL, NULL))
sys/arch/sh3/dev/scif.c
513
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/sh3/dev/shb.c
61
shb_attach(device_t parent, device_t self, void *aux)
sys/arch/sh3/dev/shb.c
67
config_search(self, NULL,
sys/arch/sh3/dev/shb.c
74
if (!pmf_device_register(self, NULL, NULL))
sys/arch/sh3/dev/shb.c
75
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/sh3/dev/shpcic.c
125
shpcic_attach(device_t parent, device_t self, void *aux)
sys/arch/sh3/dev/shpcic.c
246
config_found(self, &pba, NULL, CFARGS_NONE);
sys/arch/sh3/dev/wdog.c
114
wdogattach(device_t parent, device_t self, void *aux)
sys/arch/sh3/dev/wdog.c
118
sc = device_private(self);
sys/arch/sh3/dev/wdog.c
119
sc->sc_dev = self;
sys/arch/sh3/sh3/cpu.c
65
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/sh3/sh3/cpu.c
81
if (!pmf_device_register(self, NULL, NULL))
sys/arch/sh3/sh3/cpu.c
82
aprint_error_dev(self, "unable to establish power handler\n");
sys/arch/shark/isa/isa_shark_machdep.c
217
isa_attach_hook(device_t parent, device_t self, struct isabus_attach_args *iba)
sys/arch/shark/isa/isa_shark_machdep.c
229
isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/shark/ofw/chipsfb_ofbus.c
166
chipsfb_ofbus_attach(device_t parent, device_t self, void *aux)
sys/arch/shark/ofw/chipsfb_ofbus.c
168
struct chipsfb_softc *sc = device_private(self);
sys/arch/shark/ofw/chipsfb_ofbus.c
176
sc->sc_dev = self;
sys/arch/shark/ofw/com_ofisa_machdep.c
77
com_ofisa_md_intr_fixup(device_t parent, device_t self, void *aux, struct ofisa_intr_desc *descp, int ndescs, int ndescsfilled)
sys/arch/shark/ofw/cpu_ofbus.c
41
cpu_ofbus_attach(device_t parent, device_t self, void *aux)
sys/arch/shark/ofw/cpu_ofbus.c
43
cpu_attach(self);
sys/arch/shark/ofw/if_cs_ofisa_machdep.c
102
cs_ofisa_md_reg_fixup(device_t parent, device_t self, void *aux,
sys/arch/shark/ofw/if_cs_ofisa_machdep.c
127
cs_ofisa_md_intr_fixup(device_t parent, device_t self, void *aux,
sys/arch/shark/ofw/if_cs_ofisa_machdep.c
138
cs_ofisa_md_media_fixup(device_t parent, device_t self, void *aux, int *media,
sys/arch/shark/ofw/if_cs_ofisa_machdep.c
155
cs_ofisa_md_dma_fixup(device_t parent, device_t self, void *aux,
sys/arch/shark/ofw/if_cs_ofisa_machdep.c
170
cs_ofisa_md_cfgflags_fixup(device_t parent, device_t self, void *aux)
sys/arch/shark/ofw/igsfb_ofbus.c
220
igsfb_ofbus_attach(device_t parent, device_t self, void *aux)
sys/arch/shark/ofw/igsfb_ofbus.c
222
struct igsfb_softc *sc = device_private(self);
sys/arch/shark/ofw/igsfb_ofbus.c
227
sc->sc_dev = self;
sys/arch/shark/ofw/lpt_ofisa_machdep.c
78
lpt_ofisa_md_intr_fixup(device_t parent, device_t self, void *aux, struct ofisa_intr_desc *descp, int ndescs, int ndescsfilled)
sys/arch/shark/ofw/ofrom.c
102
ofromattach(device_t parent, device_t self, void *aux)
sys/arch/shark/ofw/ofrom.c
104
struct ofrom_softc *sc = device_private(self);
sys/arch/shark/ofw/vga_ofbus.c
101
vga_ofbus_attach(device_t parent, device_t self, void *aux)
sys/arch/shark/ofw/vga_ofbus.c
103
struct vga_ofbus_softc *osc = device_private(self);
sys/arch/shark/ofw/vga_ofbus.c
108
sc->sc_dev = self;
sys/arch/shark/ofw/vga_ofbus.c
118
aprint_debug_dev(self, "vga_reg[%2d] = 0x%08x\n",
sys/arch/shark/ofw/vga_ofbus.c
125
aprint_normal_dev(self, "aperture at 0x%08x\n", vga_reg[10]);
sys/arch/shark/ofw/vlpci.c
203
vlpci_attach(device_t parent, device_t self, void *aux)
sys/arch/shark/ofw/vlpci.c
206
struct vlpci_softc * const sc = device_private(self);
sys/arch/shark/ofw/vlpci.c
214
sc->sc_dev = self;
sys/arch/shark/ofw/vlpci.c
220
aprint_error_dev(self, "failed to map internal reg port\n");
sys/arch/shark/ofw/vlpci.c
225
aprint_error_dev(self, "failed to map configuration port\n");
sys/arch/shark/ofw/vlpci.c
331
config_found(self, &pba, pcibusprint,
sys/arch/shark/ofw/vlpci.c
332
CFARGS(.devhandle = device_handle(self)));
sys/arch/shark/ofw/vlpci.c
336
vlpci_pc_attach_hook(device_t parent, device_t self,
sys/arch/shark/ofw/wdc_ofisa_machdep.c
76
wdc_ofisa_md_intr_fixup(device_t parent, device_t self, void *aux, struct ofisa_intr_desc *descp, int ndescs, int ndescsfilled)
sys/arch/shark/shark/scr.c
757
scrattach(device_t parent, device_t self, void *aux)
sys/arch/shark/shark/scr.c
759
struct scr_softc *sc = device_private(self);
sys/arch/shark/shark/sequoia.c
782
sequoia_attach(device_t parent, device_t self, void *aux)
sys/arch/shark/shark/sequoia.c
794
config_found(self, &noba, sequoia_cfprint,
sys/arch/shark/shark/sequoia.c
798
config_found(self, aux, ofisaprint,
sys/arch/shark/shark/shark_iic.c
266
sharkiic_attach(device_t parent, device_t self, void *aux)
sys/arch/shark/shark/shark_iic.c
268
struct sharkiic_softc *sc = device_private(self);
sys/arch/shark/shark/shark_iic.c
283
iicbus_attach(self, &sc->sc_i2c);
sys/arch/sparc/dev/apc.c
72
apcattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/apc.c
75
struct apc_softc *sc = device_private(self);
sys/arch/sparc/dev/audioamd.c
155
audioamd_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/audioamd.c
162
sc = device_private(self);
sys/arch/sparc/dev/audioamd.c
163
sc->sc_am7930.sc_dev = self;
sys/arch/sparc/dev/audioamd.c
172
printf("%s: cannot map registers\n", device_xname(self));
sys/arch/sparc/dev/audioamd.c
180
audioamd_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/audioamd.c
189
sc = device_private(self);
sys/arch/sparc/dev/audioamd.c
190
sc->sc_am7930.sc_dev = self;
sys/arch/sparc/dev/audioamd.c
197
printf("%s: cannot map registers\n", device_xname(self));
sys/arch/sparc/dev/audioamd.c
205
audioamd_sbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/audioamd.c
212
sc = device_private(self);
sys/arch/sparc/dev/audioamd.c
213
sc->sc_am7930.sc_dev = self;
sys/arch/sparc/dev/audioamd.c
220
printf("%s: cannot map registers\n", device_xname(self));
sys/arch/sparc/dev/audioamd.c
231
device_t self;
sys/arch/sparc/dev/audioamd.c
244
self = amsc->sc_dev;
sys/arch/sparc/dev/audioamd.c
246
device_xname(self), "intr");
sys/arch/sparc/dev/audioamd.c
248
audio_attach_mi(&sa_hw_if, sc, self);
sys/arch/sparc/dev/bootbus.c
113
device_xname(self), error);
sys/arch/sparc/dev/bootbus.c
118
devhandle_t selfh = device_handle(self);
sys/arch/sparc/dev/bootbus.c
126
config_found(self, &baa, bootbus_print,
sys/arch/sparc/dev/bootbus.c
85
bootbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/bootbus.c
87
struct bootbus_softc *sc = device_private(self);
sys/arch/sparc/dev/bwtwo_obio.c
135
bwtwoattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/bwtwo_obio.c
137
struct bwtwo_softc *sc = device_private(self);
sys/arch/sparc/dev/bwtwo_obio.c
146
sc->sc_dev = self;
sys/arch/sparc/dev/bwtwo_obio.c
153
fb->fb_flags = device_cfdata(self)->cf_flags;
sys/arch/sparc/dev/bwtwo_obio.c
176
device_xname(self));
sys/arch/sparc/dev/bwtwo_obio.c
213
device_xname(self));
sys/arch/sparc/dev/bwtwo_obio.c
232
printf("%s: cannot map pixels\n", device_xname(self));
sys/arch/sparc/dev/cgeight.c
213
cgeightattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/cgeight.c
218
struct cgeight_softc *sc = device_private(self);
sys/arch/sparc/dev/cgeight.c
233
device_xname(self));
sys/arch/sparc/dev/cgeight.c
239
fb->fb_device = self;
sys/arch/sparc/dev/cgeight.c
241
fb->fb_flags = device_cfdata(self)->cf_flags & FB_USERMASK;
sys/arch/sparc/dev/cgeight.c
298
device_xname(self));
sys/arch/sparc/dev/cgfour.c
277
cgfourattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/cgfour.c
280
struct cgfour_softc *sc = device_private(self);
sys/arch/sparc/dev/cgfour.c
301
device_xname(self));
sys/arch/sparc/dev/cgfour.c
307
fb->fb_device = self;
sys/arch/sparc/dev/cgfour.c
309
fb->fb_flags = device_cfdata(self)->cf_flags & FB_USERMASK;
sys/arch/sparc/dev/cgfour.c
348
device_xname(self));
sys/arch/sparc/dev/cgfour.c
359
device_xname(self));
sys/arch/sparc/dev/cgfour.c
370
device_xname(self));
sys/arch/sparc/dev/cgfour.c
383
device_xname(self));
sys/arch/sparc/dev/cgfour.c
447
config_found(self, &wsemul_aa, wsemuldisplaydevprint,
sys/arch/sparc/dev/cgfourteen.c
234
cgfourteenattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/cgfourteen.c
238
struct cgfourteen_softc *sc = device_private(self);
sys/arch/sparc/dev/cgfourteen.c
252
sc->sc_dev = self;
sys/arch/sparc/dev/cgfourteen.c
273
device_xname(self), sa->sa_nreg);
sys/arch/sparc/dev/cgfourteen.c
298
device_xname(self));
sys/arch/sparc/dev/cgsix_obio.c
106
cgsixattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/cgsix_obio.c
108
struct cgsix_softc *sc = device_private(self);
sys/arch/sparc/dev/cgsix_obio.c
117
sc->sc_dev = self;
sys/arch/sparc/dev/cgsix_obio.c
143
printf("%s: cannot map brooktree registers\n", device_xname(self));
sys/arch/sparc/dev/cgsix_obio.c
153
printf("%s: cannot map FHC registers\n", device_xname(self));
sys/arch/sparc/dev/cgsix_obio.c
163
printf("%s: cannot map THC registers\n", device_xname(self));
sys/arch/sparc/dev/cgsix_obio.c
173
printf("%s: cannot map TEC registers\n", device_xname(self));
sys/arch/sparc/dev/cgsix_obio.c
183
printf("%s: cannot map FBC registers\n", device_xname(self));
sys/arch/sparc/dev/cgsix_obio.c
211
printf("%s: cannot map pixels\n", device_xname(self));
sys/arch/sparc/dev/cgtwo.c
154
cgtwoattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/cgtwo.c
162
struct cgtwo_softc *sc = device_private(self);
sys/arch/sparc/dev/cgtwo.c
169
fb->fb_device = self;
sys/arch/sparc/dev/cgtwo.c
171
fb->fb_flags = device_cfdata(self)->cf_flags;
sys/arch/sparc/dev/com_ebus.c
84
com_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/com_ebus.c
86
struct com_ebus_softc *ebsc = device_private(self);
sys/arch/sparc/dev/com_ebus.c
93
sc->sc_dev = self;
sys/arch/sparc/dev/com_obio.c
161
com_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/com_obio.c
163
struct com_obio_softc *osc = device_private(self);
sys/arch/sparc/dev/com_obio.c
171
sc->sc_dev = self;
sys/arch/sparc/dev/com_obio.c
220
device_xname(self), "intr");
sys/arch/sparc/dev/com_obio.c
223
if (!pmf_device_register1(self, com_suspend, com_resume, com_cleanup)) {
sys/arch/sparc/dev/com_obio.c
224
aprint_error_dev(self, "could not establish shutdown hook");
sys/arch/sparc/dev/dma_obio.c
76
dmaattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/dma_obio.c
78
struct lsi64854_softc *sc = device_private(self);
sys/arch/sparc/dev/dma_obio.c
82
sc->sc_dev = self;
sys/arch/sparc/dev/ebus.c
242
ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/ebus.c
244
struct ebus_softc *sc = device_private(self);
sys/arch/sparc/dev/ebus.c
254
sc->sc_dev = self;
sys/arch/sparc/dev/ebus.c
266
panic("%s: unable to find ebus node", device_xname(self));
sys/arch/sparc/dev/ebus.c
304
device_xname(self), error);
sys/arch/sparc/dev/ebus.c
310
devhandle_t selfh = device_handle(self);
sys/arch/sparc/dev/ebus.c
320
(void)config_found(self, &ea, ebus_print,
sys/arch/sparc/dev/esp_obio.c
122
espattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/esp_obio.c
124
struct esp_softc *esc = device_private(self);
sys/arch/sparc/dev/esp_obio.c
130
sc->sc_dev = self;
sys/arch/sparc/dev/esp_obio.c
142
dma_dev = device_find_by_driver_unit("dma", device_unit(self));
sys/arch/sparc/dev/esp_obio.c
144
panic("%s: no corresponding DMA device", device_xname(self));
sys/arch/sparc/dev/esp_obio.c
248
device_xname(self), "intr");
sys/arch/sparc/dev/fd.c
555
fdcattach_mainbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/fd.c
557
struct fdc_softc *fdc = device_private(self);
sys/arch/sparc/dev/fd.c
560
fdc->sc_dev = self;
sys/arch/sparc/dev/fd.c
569
printf("%s: cannot map registers\n", device_xname(self));
sys/arch/sparc/dev/fd.c
584
fdcattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/fd.c
586
struct fdc_softc *fdc = device_private(self);
sys/arch/sparc/dev/fd.c
595
fdc->sc_dev = self;
sys/arch/sparc/dev/fd.c
602
device_xname(self));
sys/arch/sparc/dev/fd.c
779
fdattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/fd.c
782
struct fd_softc *fd = device_private(self);
sys/arch/sparc/dev/fd.c
787
fd->sc_dv = self;
sys/arch/sparc/dev/fd.c
824
if (!pmf_device_register1(self, fdsuspend, NULL, fdshutdown))
sys/arch/sparc/dev/fd.c
825
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/sparc/dev/fd.c
828
bool fdshutdown(device_t self, int how)
sys/arch/sparc/dev/fd.c
830
struct fd_softc *fd = device_private(self);
sys/arch/sparc/dev/fd.c
836
bool fdsuspend(device_t self, const pmf_qual_t *qual)
sys/arch/sparc/dev/fd.c
839
return fdshutdown(self, boothowto);
sys/arch/sparc/dev/if_ie_obio.c
246
ie_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/if_ie_obio.c
250
struct ie_softc *sc = device_private(self);
sys/arch/sparc/dev/if_ie_obio.c
261
sc->sc_dev = self;
sys/arch/sparc/dev/if_ie_obio.c
278
printf("%s: cannot map registers\n", device_xname(self));
sys/arch/sparc/dev/if_ie_obio.c
287
device_xname(self), error);
sys/arch/sparc/dev/if_ie_obio.c
293
device_xname(self), error);
sys/arch/sparc/dev/if_ie_obio.c
301
device_xname(self), error);
sys/arch/sparc/dev/if_ie_obio.c
310
device_xname(self), error);
sys/arch/sparc/dev/if_le_obio.c
129
leattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/if_le_obio.c
133
struct le_softc *lesc = device_private(self);
sys/arch/sparc/dev/if_le_obio.c
140
sc->sc_dev = self;
sys/arch/sparc/dev/kbd_pckbport.c
195
kbd_pckbport_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/kbd_pckbport.c
197
struct kbd_pckbport_softc *sc = device_private(self);
sys/arch/sparc/dev/kbd_pckbport.c
206
kbd->k_dev = self;
sys/arch/sparc/dev/kbd_pckbport.c
242
aprint_error_dev(self,
sys/arch/sparc/dev/kbd_pckbport.c
249
kbd_pckbport_input, sc, device_xname(self));
sys/arch/sparc/dev/ms_pckbport.c
101
ms->ms_dev = self;
sys/arch/sparc/dev/ms_pckbport.c
125
ms_pckbport_input, sc, device_xname(self));
sys/arch/sparc/dev/ms_pckbport.c
138
ms_pckbport_iopen(device_t self, int flags)
sys/arch/sparc/dev/ms_pckbport.c
140
struct ms_pckbport_softc *sc = device_private(self);
sys/arch/sparc/dev/ms_pckbport.c
165
ms_pckbport_iclose(device_t self, int flags)
sys/arch/sparc/dev/ms_pckbport.c
167
struct ms_pckbport_softc *sc = device_private(self);
sys/arch/sparc/dev/ms_pckbport.c
92
ms_pckbport_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/ms_pckbport.c
94
struct ms_pckbport_softc *sc = device_private(self);
sys/arch/sparc/dev/obio.c
130
obioattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/obio.c
140
union obio_softc *usc = device_private(self);
sys/arch/sparc/dev/obio.c
151
sc->sc_dev = self;
sys/arch/sparc/dev/obio.c
166
config_search(self, &oa,
sys/arch/sparc/dev/obio.c
172
config_search(self, &oa,
sys/arch/sparc/dev/obio.c
182
union obio_softc *usc = device_private(self);
sys/arch/sparc/dev/obio.c
198
sc->sc_dev = self;
sys/arch/sparc/dev/pckbc_js.c
100
pckbc_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/pckbc_js.c
102
struct pckbc_js_softc *jsc = device_private(self);
sys/arch/sparc/dev/pckbc_js.c
109
jsc->jsc_pckbc.sc_dv = self;
sys/arch/sparc/dev/pckbc_js.c
128
pckbc_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/pckbc_js.c
130
struct pckbc_js_softc *jsc = device_private(self);
sys/arch/sparc/dev/pckbc_js.c
138
jsc->jsc_pckbc.sc_dv = self;
sys/arch/sparc/dev/power.c
81
powerattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/power.c
91
printf("%s: cannot map register\n", device_xname(self));
sys/arch/sparc/dev/rtc.c
109
rtcattach_ebus(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/rtc.c
111
struct rtc_ebus_softc *sc = device_private(self);
sys/arch/sparc/dev/rtc.c
115
sc->sc_dev = self;
sys/arch/sparc/dev/rtc.c
136
handle->todr_dev = self;
sys/arch/sparc/dev/sbus.c
241
sbus_attach_mainbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/sbus.c
243
struct sbus_softc *sc = device_private(self);
sys/arch/sparc/dev/sbus.c
249
sc->sc_dev = self;
sys/arch/sparc/dev/sbus.c
255
printf("%s: no Sbus registers", device_xname(self));
sys/arch/sparc/dev/sbus.c
262
panic("%s: can't map sbusbusreg", device_xname(self));
sys/arch/sparc/dev/sbus.c
284
sbus_attach_iommu(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/sbus.c
286
struct sbus_softc *sc = device_private(self);
sys/arch/sparc/dev/sbus.c
290
sc->sc_dev = self;
sys/arch/sparc/dev/sbus.c
295
panic("%s: no Sbus registers", device_xname(self));
sys/arch/sparc/dev/sbus.c
303
panic("%s: can't map sbusbusreg", device_xname(self));
sys/arch/sparc/dev/sbus.c
324
sbus_attach_xbox(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/sbus.c
326
struct sbus_softc *sc = device_private(self);
sys/arch/sparc/dev/sw.c
244
sw_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/sw.c
246
struct sw_softc *sc = device_private(self);
sys/arch/sparc/dev/sw.c
254
ncr_sc->sc_dev = self;
sys/arch/sparc/dev/sw.c
296
if ((device_cfdata(self)->cf_flags & SW_OPTIONS_MASK) != 0)
sys/arch/sparc/dev/sw.c
298
device_cfdata(self)->cf_flags & SW_OPTIONS_MASK;
sys/arch/sparc/dev/sw.c
352
aprint_error_dev(self, "DMA buffer map create error\n");
sys/arch/sparc/dev/sw.c
360
aprint_normal_dev(self, "options=%s\n", bits);
sys/arch/sparc/dev/sx.c
71
sx_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/sx.c
73
struct sx_softc *sc = device_private(self);
sys/arch/sparc/dev/sx.c
83
sc->sc_dev = self;
sys/arch/sparc/dev/sx.c
89
aprint_error_dev(self, "failed to map registers\n");
sys/arch/sparc/dev/sx.c
94
aprint_normal_dev(self, "architecture rev. %d chip rev. %d\n",
sys/arch/sparc/dev/tctrl.c
238
tctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/tctrl.c
240
struct tctrl_softc *sc = device_private(self);
sys/arch/sparc/dev/tctrl.c
248
sc->sc_dev = self;
sys/arch/sparc/dev/ts102.c
302
tslot_attach(device_t parent, device_t self, void *args)
sys/arch/sparc/dev/ts102.c
305
struct tslot_softc *sc = device_private(self);
sys/arch/sparc/dev/ts102.c
314
sc->sc_dev = self;
sys/arch/sparc/dev/ts102.c
322
printf("%s: cannot map registers\n", device_xname(self));
sys/arch/sparc/dev/ts102.c
329
printf("%s: attach: out of memory\n", device_xname(self));
sys/arch/sparc/dev/ts102.c
357
&sc->sc_thread, "%s", device_xname(self)) != 0) {
sys/arch/sparc/dev/ts102.c
359
device_xname(self));
sys/arch/sparc/dev/ts102.c
382
device_xname(self));
sys/arch/sparc/dev/vme_machdep.c
288
vmeattach_mainbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/vme_machdep.c
292
struct sparcvme_softc *sc = device_private(self);
sys/arch/sparc/dev/vme_machdep.c
329
(void)config_found(self, &vba, 0, CFARGS_NONE);
sys/arch/sparc/dev/vme_machdep.c
337
vmeattach_iommu(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/vme_machdep.c
340
struct sparcvme_softc *sc = device_private(self);
sys/arch/sparc/dev/vme_machdep.c
368
printf("%s: only %d register sets\n", device_xname(self),
sys/arch/sparc/dev/vme_machdep.c
379
panic("%s: can't map vmebusreg", device_xname(self));
sys/arch/sparc/dev/vme_machdep.c
389
panic("%s: can't map vmebusvec", device_xname(self));
sys/arch/sparc/dev/vme_machdep.c
403
panic("%s: can't map IOC tags", device_xname(self));
sys/arch/sparc/dev/vme_machdep.c
414
panic("%s: can't map IOC flush registers", device_xname(self));
sys/arch/sparc/dev/vme_machdep.c
423
panic("%s: can't get ranges property", device_xname(self));
sys/arch/sparc/dev/vme_machdep.c
442
(void)config_found(self, &vba, 0,
sys/arch/sparc/dev/vme_machdep.c
443
CFARGS(.devhandle = device_handle(self)));
sys/arch/sparc/dev/zs.c
235
zs_attach_mainbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/zs.c
237
struct zsc_softc *zsc = device_private(self);
sys/arch/sparc/dev/zs.c
240
zsc->zsc_dev = self;
sys/arch/sparc/dev/zs.c
254
zs_attach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/zs.c
256
struct zsc_softc *zsc = device_private(self);
sys/arch/sparc/dev/zs.c
259
zsc->zsc_dev = self;
sys/arch/sparc/dev/zs.c
349
zs_attach_bootbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/dev/zs.c
351
struct zsc_softc *zsc = device_private(self);
sys/arch/sparc/dev/zs.c
355
zsc->zsc_dev = self;
sys/arch/sparc/sparc/auxiotwo.c
78
auxiotwoattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/auxreg.c
124
auxregattach_mainbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/auxreg.c
145
auxregattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/clkctrl.c
62
clkctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/cpu.c
218
cpu_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/cpu.c
230
sc = device_private(self);
sys/arch/sparc/sparc/cpu.c
231
sc->sc_dev = self;
sys/arch/sparc/sparc/cpu.c
253
printf("%s: mailbox in mem space\n", device_xname(self));
sys/arch/sparc/sparc/cpu.c
260
panic("%s: can't map CPU mailbox", device_xname(self));
sys/arch/sparc/sparc/cpu.c
283
panic("%s: can't map CPU regs", device_xname(self));
sys/arch/sparc/sparc/cpu.c
291
panic("%s: can't map CPU regs", device_xname(self));
sys/arch/sparc/sparc/cpu.c
308
cpu_cpuunit_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/cpu.c
311
struct cpu_softc *sc = device_private(self);
sys/arch/sparc/sparc/cpu.c
313
sc->sc_dev = self;
sys/arch/sparc/sparc/cpuunit.c
117
device_xname(self), error);
sys/arch/sparc/sparc/cpuunit.c
129
(void) config_found(self, &cpua, cpuunit_print,
sys/arch/sparc/sparc/cpuunit.c
84
cpuunit_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/cpuunit.c
86
struct cpuunit_softc *sc = device_private(self);
sys/arch/sparc/sparc/cpuunit.c
88
devhandle_t selfh = device_handle(self);
sys/arch/sparc/sparc/eeprom.c
115
device_xname(self));
sys/arch/sparc/sparc/eeprom.c
99
eeprom_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/iommu.c
145
iommu_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/iommu.c
148
struct iommu_softc *sc = device_private(self);
sys/arch/sparc/sparc/iommu.c
288
devhandle_t selfh = device_handle(self);
sys/arch/sparc/sparc/iommu.c
310
config_found(self, (void *)&ia, iommu_print,
sys/arch/sparc/sparc/iommu.c
334
config_found(self, (void *)&ia, iommu_print,
sys/arch/sparc/sparc/memecc.c
74
memecc_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/memecc.c
76
struct memecc_softc *sc = device_private(self);
sys/arch/sparc/sparc/memreg.c
117
memregattach_mainbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/memreg.c
141
memregattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/mkclock.c
137
clockattach_mainbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/mkclock.c
139
struct mk48txx_softc *sc = device_private(self);
sys/arch/sparc/sparc/mkclock.c
142
sc->sc_dev = self;
sys/arch/sparc/sparc/mkclock.c
166
clockattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/mkclock.c
168
struct mk48txx_softc *sc = device_private(self);
sys/arch/sparc/sparc/mkclock.c
172
sc->sc_dev = self;
sys/arch/sparc/sparc/mkclock.c
210
clockattach_bootbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/mkclock.c
212
struct mk48txx_softc *sc = device_private(self);
sys/arch/sparc/sparc/mkclock.c
216
sc->sc_dev = self;
sys/arch/sparc/sparc/msiiep.c
208
msiiep_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/msiiep.c
230
devhandle_t selfh = device_handle(self);
sys/arch/sparc/sparc/msiiep.c
238
config_found(self, &msa, NULL, CFARGS_NONE);
sys/arch/sparc/sparc/msiiep.c
242
config_found(self, &msa, NULL,
sys/arch/sparc/sparc/msiiep.c
274
mspcic_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/msiiep.c
276
struct mspcic_softc *sc = device_private(self);
sys/arch/sparc/sparc/msiiep.c
277
devhandle_t selfh = device_handle(self);
sys/arch/sparc/sparc/msiiep.c
371
config_found(self, &pba, mspcic_print,
sys/arch/sparc/sparc/oclock.c
113
oclockattach(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/oclock.c
116
struct intersil7170_softc *sc = device_private(self);
sys/arch/sparc/sparc/oclock.c
122
sc->sc_dev = self;
sys/arch/sparc/sparc/oclock.c
170
aprint_error_dev(self, "calibration failing; "
sys/arch/sparc/sparc/pci_machdep.c
183
pci_attach_hook(device_t parent, device_t self,
sys/arch/sparc/sparc/timer.c
325
timerattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/timer.c
332
timerattach_obio_4m(parent, self, aux);
sys/arch/sparc/sparc/timer.c
340
timerattach_obio_4(parent, self, aux);
sys/arch/sparc/sparc/timer.c
364
timerattach_mainbus(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/timer.c
368
timerattach_mainbus_4c(parent, self, aux);
sys/arch/sparc/sparc/timer_msiiep.c
138
timerattach_msiiep(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/timer_sun4.c
156
timerattach_obio_4(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/timer_sun4.c
178
timerattach_mainbus_4c(device_t parent, device_t self, void *aux)
sys/arch/sparc/sparc/timer_sun4m.c
234
timerattach_obio_4m(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/auxio_ebus.c
70
auxio_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/auxio_ebus.c
72
struct auxio_softc *sc = device_private(self);
sys/arch/sparc64/dev/auxio_ebus.c
75
sc->sc_dev = self;
sys/arch/sparc64/dev/auxio_sbus.c
70
auxio_sbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/auxio_sbus.c
72
struct auxio_softc *sc = device_private(self);
sys/arch/sparc64/dev/auxio_sbus.c
75
sc->sc_dev = self;
sys/arch/sparc64/dev/bq4802_ebus.c
100
struct bq4802rtc_softc *sc = device_private(self);
sys/arch/sparc64/dev/bq4802_ebus.c
107
sc->sc_dev = self;
sys/arch/sparc64/dev/bq4802_ebus.c
122
tch->todr_dev = self;
sys/arch/sparc64/dev/bq4802_ebus.c
131
aprint_error_dev(self,
sys/arch/sparc64/dev/bq4802_ebus.c
145
CTLTYPE_NODE, device_xname(self), NULL,
sys/arch/sparc64/dev/bq4802_ebus.c
149
aprint_error_dev(self, "unable to add sysctl root\n");
sys/arch/sparc64/dev/bq4802_ebus.c
157
aprint_error_dev(self, "unable to add sysctl node\n");
sys/arch/sparc64/dev/bq4802_ebus.c
98
bq4802rtc_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/cbus.c
104
devhandle_t selfh = device_handle(self);
sys/arch/sparc64/dev/cbus.c
125
config_found(self, &ca, cbus_print,
sys/arch/sparc64/dev/cbus.c
82
cbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/cbus.c
84
struct cbus_softc *sc = device_private(self);
sys/arch/sparc64/dev/central.c
100
devhandle_t selfh = device_handle(self);
sys/arch/sparc64/dev/central.c
116
(void)config_found(self, (void *)&ca, central_print,
sys/arch/sparc64/dev/central.c
85
central_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/central.c
87
struct central_softc *sc = device_private(self);
sys/arch/sparc64/dev/com_ebus.c
100
struct com_softc *sc = device_private(self);
sys/arch/sparc64/dev/com_ebus.c
116
sc->sc_dev = self;
sys/arch/sparc64/dev/com_ebus.c
237
config_found(self, (void *)&kma, NULL, CFARGS_NONE);
sys/arch/sparc64/dev/com_ebus.c
243
config_found(self, (void *)&kma, NULL, CFARGS_NONE);
sys/arch/sparc64/dev/com_ebus.c
98
com_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/ebus.c
141
ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/ebus.c
143
struct ebus_softc *sc = device_private(self);
sys/arch/sparc64/dev/ebus.c
150
sc->sc_dev = self;
sys/arch/sparc64/dev/ebus.c
207
devhandle_t selfh = device_handle(self);
sys/arch/sparc64/dev/ebus.c
217
(void)config_found(self, &eba, ebus_print,
sys/arch/sparc64/dev/ebus_mainbus.c
100
sc->sc_dev = self;
sys/arch/sparc64/dev/ebus_mainbus.c
167
devhandle_t selfh = device_handle(self);
sys/arch/sparc64/dev/ebus_mainbus.c
177
(void)config_found(self, &eba, ebus_print,
sys/arch/sparc64/dev/ebus_mainbus.c
90
ebus_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/ebus_mainbus.c
92
struct ebus_softc *sc = device_private(self);
sys/arch/sparc64/dev/fdc.c
1001
bool fdshutdown(device_t self, int how)
sys/arch/sparc64/dev/fdc.c
1003
struct fd_softc *fd = device_private(self);
sys/arch/sparc64/dev/fdc.c
1009
bool fdsuspend(device_t self, const pmf_qual_t *qual)
sys/arch/sparc64/dev/fdc.c
1012
return fdshutdown(self, boothowto);
sys/arch/sparc64/dev/fdc.c
612
fdcattach_mainbus(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/fdc.c
614
struct fdc_softc *fdc = device_private(self);
sys/arch/sparc64/dev/fdc.c
617
fdc->sc_dev = self;
sys/arch/sparc64/dev/fdc.c
626
aprint_error_dev(self, "cannot map registers\n");
sys/arch/sparc64/dev/fdc.c
641
fdcattach_obio(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/fdc.c
643
struct fdc_softc *fdc = device_private(self);
sys/arch/sparc64/dev/fdc.c
652
fdc->sc_dev = self;
sys/arch/sparc64/dev/fdc.c
658
aprint_error_dev(self, "cannot map control registers\n");
sys/arch/sparc64/dev/fdc.c
680
fdcattach_sbus(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/fdc.c
682
struct fdc_softc *fdc = device_private(self);
sys/arch/sparc64/dev/fdc.c
695
fdc->sc_dev = self;
sys/arch/sparc64/dev/fdc.c
724
fdcattach_ebus(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/fdc.c
726
struct fdc_softc *fdc = device_private(self);
sys/arch/sparc64/dev/fdc.c
741
fdc->sc_dev = self;
sys/arch/sparc64/dev/fdc.c
951
fdattach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/fdc.c
954
struct fd_softc *fd = device_private(self);
sys/arch/sparc64/dev/fdc.c
959
fd->sc_dev = self;
sys/arch/sparc64/dev/fdc.c
997
if (!pmf_device_register1(self, fdsuspend, NULL, fdshutdown))
sys/arch/sparc64/dev/fdc.c
998
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/sparc64/dev/ffb.c
191
ffb_attach(device_t self)
sys/arch/sparc64/dev/ffb.c
193
struct ffb_softc *sc = device_private(self);
sys/arch/sparc64/dev/ffb.c
309
prop_dictionary_set(device_properties(self), "EDID", data);
sys/arch/sparc64/dev/ffb_mainbus.c
126
ffb_attach(self);
sys/arch/sparc64/dev/ffb_mainbus.c
76
ffb_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/ffb_mainbus.c
78
struct ffb_softc *sc = device_private(self);
sys/arch/sparc64/dev/ffb_mainbus.c
82
sc->sc_dev = self;
sys/arch/sparc64/dev/fhc_central.c
119
sc->sc_dev = self;
sys/arch/sparc64/dev/fhc_central.c
65
fhc_central_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/fhc_central.c
67
struct fhc_softc *sc = device_private(self);
sys/arch/sparc64/dev/fhc_mainbus.c
109
sc->sc_dev = self;
sys/arch/sparc64/dev/fhc_mainbus.c
63
fhc_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/fhc_mainbus.c
65
struct fhc_softc *sc = device_private(self);
sys/arch/sparc64/dev/fire_i2c.c
108
firei2c_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/fire_i2c.c
110
struct firei2c_softc *sc = device_private(self);
sys/arch/sparc64/dev/fire_i2c.c
116
sc->sc_dev = self;
sys/arch/sparc64/dev/gfb.c
124
gfb_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/gfb.c
126
struct gfb_softc *sc = device_private(self);
sys/arch/sparc64/dev/gfb.c
135
sc->sc_dev = self;
sys/arch/sparc64/dev/gfb.c
140
device_xname(self));
sys/arch/sparc64/dev/gfb.c
156
device_xname(self));
sys/arch/sparc64/dev/jbus-i2c.c
111
jbusi2c_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/jbus-i2c.c
113
struct jbusi2c_softc *sc = device_private(self);
sys/arch/sparc64/dev/jbus-i2c.c
118
sc->sc_dev = self;
sys/arch/sparc64/dev/lom.c
262
lom_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/lom.c
264
struct lom_softc *sc = device_private(self);
sys/arch/sparc64/dev/lom.c
279
sc->sc_dev = self;
sys/arch/sparc64/dev/lom.c
330
aprint_verbose_dev(self, "%d fan(s), %d PSU(s), %d temp sensor(s)\n",
sys/arch/sparc64/dev/lom.c
336
aprint_error_dev(self, "can't read fan information\n");
sys/arch/sparc64/dev/lom.c
345
0, CTLTYPE_NODE, device_xname(self), NULL,
sys/arch/sparc64/dev/lom.c
361
aprint_error_dev(self, "can't attach alarm sensor\n");
sys/arch/sparc64/dev/lom.c
383
aprint_error_dev(self, "can't attach fan sensor\n");
sys/arch/sparc64/dev/lom.c
394
aprint_error_dev(self, "can't attach PSU sensor\n");
sys/arch/sparc64/dev/lom.c
405
aprint_error_dev(self, "can't attach temp sensor\n");
sys/arch/sparc64/dev/lom.c
410
aprint_error_dev(self, "can't read sensor names\n");
sys/arch/sparc64/dev/lom.c
415
sc->sc_sme->sme_name = device_xname(self);
sys/arch/sparc64/dev/lom.c
420
aprint_error_dev(self,
sys/arch/sparc64/dev/lom.c
434
sc->sc_smw.smw_name = device_xname(self);
sys/arch/sparc64/dev/lom.c
440
aprint_error_dev(self,
sys/arch/sparc64/dev/lom.c
445
aprint_verbose_dev(self, "Watchdog timer configured.\n");
sys/arch/sparc64/dev/lom.c
447
if (!pmf_device_register1(self, NULL, NULL, lom_shutdown))
sys/arch/sparc64/dev/lom.c
448
aprint_error_dev(self, "unable to register power handler\n");
sys/arch/sparc64/dev/lpt_ebus.c
71
lpt_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/lpt_ebus.c
73
struct lpt_softc *sc = device_private(self);
sys/arch/sparc64/dev/lpt_ebus.c
77
sc->sc_dev = self;
sys/arch/sparc64/dev/mkclock.c
167
mkclock_sbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/mkclock.c
169
struct mk48txx_softc *sc = device_private(self);
sys/arch/sparc64/dev/mkclock.c
173
sc->sc_dev = self;
sys/arch/sparc64/dev/mkclock.c
194
mkclock_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/mkclock.c
196
struct mk48txx_softc *sc = device_private(self);
sys/arch/sparc64/dev/mkclock.c
200
sc->sc_dev = self;
sys/arch/sparc64/dev/mkclock.c
223
mkclock_fhc_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/mkclock.c
225
struct mk48txx_softc *sc = device_private(self);
sys/arch/sparc64/dev/mkclock.c
228
sc->sc_dev = self;
sys/arch/sparc64/dev/pcf8591_envctrl.c
119
ecadc_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/pcf8591_envctrl.c
122
struct ecadc_softc *sc = device_private(self);
sys/arch/sparc64/dev/pcf8591_envctrl.c
129
int node = devhandle_to_of(device_handle(self));
sys/arch/sparc64/dev/pcf8591_envctrl.c
132
sc->sc_dev = self;
sys/arch/sparc64/dev/pcf8591_envctrl.c
256
sc->sc_sme->sme_name = device_xname(self);
sys/arch/sparc64/dev/pcf8591_envctrl.c
268
aprint_error_dev(self, "error %d registering with sysmon\n",
sys/arch/sparc64/dev/pcf8591_envctrl.c
286
ecadc_detach(device_t self, int flags)
sys/arch/sparc64/dev/pcf8591_envctrl.c
288
struct ecadc_softc *sc = device_private(self);
sys/arch/sparc64/dev/pcfiic_ebus.c
111
sc->sc_dev = self;
sys/arch/sparc64/dev/pcfiic_ebus.c
86
pcfiic_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/pcfiic_ebus.c
88
struct pcfiic_ebus_softc *esc = device_private(self);
sys/arch/sparc64/dev/pci_machdep.c
122
pci_attach_hook(device_t parent, device_t self,
sys/arch/sparc64/dev/pckbc_ebus.c
83
pckbc_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/pckbc_ebus.c
85
struct pckbc_ebus_softc *sc = device_private(self);
sys/arch/sparc64/dev/pckbc_ebus.c
94
psc->sc_dv = self;
sys/arch/sparc64/dev/pcons.c
113
pconsattach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/pcons.c
115
struct pconssoftc *sc = device_private(self);
sys/arch/sparc64/dev/pcons.c
116
sc->of_dev = self;
sys/arch/sparc64/dev/pld_wdog.c
171
pldwdog_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/pld_wdog.c
173
struct pldwdog_softc *sc = device_private(self);
sys/arch/sparc64/dev/pld_wdog.c
178
sc->sc_dev = self;
sys/arch/sparc64/dev/psm.c
141
psm_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/psm.c
143
struct psm_softc *sc = device_private(self);
sys/arch/sparc64/dev/psm.c
149
sc->sc_dev = self;
sys/arch/sparc64/dev/psycho.c
297
psycho_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/psycho.c
299
struct psycho_softc *sc = device_private(self);
sys/arch/sparc64/dev/psycho.c
314
sc->sc_dev = self;
sys/arch/sparc64/dev/psycho.c
419
aprint_normal_dev(self, "%s: impl %d, version %d: ign %x ",
sys/arch/sparc64/dev/psycho.c
669
dict = device_properties(self);
sys/arch/sparc64/dev/psycho.c
687
config_found(self, &pba, psycho_print,
sys/arch/sparc64/dev/psycho.c
688
CFARGS(.devhandle = device_handle(self)));
sys/arch/sparc64/dev/pyro.c
143
pyro_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/pyro.c
145
struct pyro_softc *sc = device_private(self);
sys/arch/sparc64/dev/pyro.c
150
sc->sc_dev = self;
sys/arch/sparc64/dev/rtc.c
132
rtc_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/rtc.c
134
struct mc146818_softc *sc = device_private(self);
sys/arch/sparc64/dev/rtc.c
139
sc->sc_dev = self;
sys/arch/sparc64/dev/sab.c
252
sab_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/sab.c
254
struct sab_softc *sc = device_private(self);
sys/arch/sparc64/dev/sab.c
260
sc->sc_dev = self;
sys/arch/sparc64/dev/sab.c
324
config_found(self, &stax, sab_print,
sys/arch/sparc64/dev/sab.c
387
sabtty_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/sab.c
389
struct sabtty_softc *sc = device_private(self);
sys/arch/sparc64/dev/sab.c
395
sc->sc_dev = self;
sys/arch/sparc64/dev/sab.c
474
cn_tab->cn_dev = makedev(maj, device_unit(self));
sys/arch/sparc64/dev/sab.c
475
pmf_device_register1(self, NULL, NULL, sabtty_shutdown);
sys/arch/sparc64/dev/sab.c
485
cn_tab->cn_dev = makedev(maj, device_unit(self));
sys/arch/sparc64/dev/sbus.c
167
sbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/sbus.c
169
struct sbus_softc *sc = device_private(self);
sys/arch/sparc64/dev/sbus.c
179
sc->sc_dev = self;
sys/arch/sparc64/dev/sbus.c
199
aprint_error_dev(self, "cannot map registers\n");
sys/arch/sparc64/dev/sbus.c
230
panic("%s: error getting ranges property", device_xname(self));
sys/arch/sparc64/dev/sbus.c
250
name = kmem_asprintf("%s dvma", device_xname(self));
sys/arch/sparc64/dev/sbus.c
282
devhandle_t selfh = device_handle(self);
sys/arch/sparc64/dev/sbus.c
292
(void) config_found(self, &sa, sbus_print,
sys/arch/sparc64/dev/schizo.c
143
schizo_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/schizo.c
145
struct schizo_softc *sc = device_private(self);
sys/arch/sparc64/dev/schizo.c
160
sc->sc_dev = self;
sys/arch/sparc64/dev/schizo.c
369
CFARGS(.devhandle = device_handle(self)));
sys/arch/sparc64/dev/tda.c
111
tda_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/tda.c
113
struct tda_softc *sc = device_private(self);
sys/arch/sparc64/dev/tda.c
117
sc->sc_dev = self;
sys/arch/sparc64/dev/tda.c
150
aprint_error_dev(self,
sys/arch/sparc64/dev/tda.c
158
aprint_error_dev(self,
sys/arch/sparc64/dev/tda.c
162
sc->sc_sme->sme_name = device_xname(self);
sys/arch/sparc64/dev/tda.c
167
aprint_error_dev(self,
sys/arch/sparc64/dev/tda.c
175
tda_detach(device_t self, int flags)
sys/arch/sparc64/dev/tda.c
177
struct tda_softc *sc = device_private(self);
sys/arch/sparc64/dev/upa.c
89
upa_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/upa.c
91
struct upa_softc *sc = device_private(self);
sys/arch/sparc64/dev/upa.c
95
sc->sc_dev = self;
sys/arch/sparc64/dev/vbus.c
100
config_found(self, &va, vbus_print,
sys/arch/sparc64/dev/vbus.c
108
config_found(self, &va, vbus_print, CFARGS_NONE);
sys/arch/sparc64/dev/vbus.c
74
vbus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/vbus.c
76
struct vbus_softc *sc = device_private(self);
sys/arch/sparc64/dev/vbus.c
84
devhandle_t selfh = device_handle(self);
sys/arch/sparc64/dev/vdsk.c
244
vdsk_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/vdsk.c
246
struct vdsk_softc *sc = device_private(self);
sys/arch/sparc64/dev/vdsk.c
386
sc->sc_dv = self;
sys/arch/sparc64/dev/vdsk.c
404
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/sparc64/dev/vnet.c
243
vnet_attach(struct device *parent, struct device *self, void *aux)
sys/arch/sparc64/dev/vnet.c
245
struct vnet_softc *sc = device_private(self);
sys/arch/sparc64/dev/vnet.c
250
sc->sc_dv = self;
sys/arch/sparc64/dev/vnet.c
320
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/arch/sparc64/dev/vpci.c
149
vpci_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/vpci.c
151
struct vpci_softc *sc = device_private(self);
sys/arch/sparc64/dev/vpci.c
158
sc->sc_dev = self;
sys/arch/sparc64/dev/vrtc.c
57
vrtc_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/vrtc.c
59
struct vrtc_softc *sc = device_private(self);
sys/arch/sparc64/dev/vrtc.c
63
sc->sc_dev = self;
sys/arch/sparc64/dev/wb_ebus.c
64
wb_ebus_attach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/wb_ebus.c
66
struct wb_softc *sc = device_private(self);
sys/arch/sparc64/dev/wb_ebus.c
69
sc->wb_dev = self;
sys/arch/sparc64/dev/zs.c
215
zs_attach_sbus(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/zs.c
217
struct zsc_softc *zsc = device_private(self);
sys/arch/sparc64/dev/zs.c
222
zsc->zsc_dev = self;
sys/arch/sparc64/dev/zs.c
223
zs_unit = device_unit(self);
sys/arch/sparc64/dev/zs.c
269
zs_attach_fhc(device_t parent, device_t self, void *aux)
sys/arch/sparc64/dev/zs.c
271
struct zsc_softc *zsc = device_private(self);
sys/arch/sparc64/dev/zs.c
276
zsc->zsc_dev = self;
sys/arch/sparc64/dev/zs.c
277
zs_unit = device_unit(self);
sys/arch/sparc64/sparc64/clock.c
248
timerattach(device_t parent, device_t self, void *aux)
sys/arch/sparc64/sparc64/rbus_machdep.c
121
pccbb_attach_hook(device_t parent, device_t self, struct pci_attach_args *pa)
sys/arch/sparc64/sparc64/rbus_machdep.c
150
(*pc->spc_busnode)[bus].arg = device_private(self);
sys/arch/sparc64/sparc64/rbus_machdep.c
170
(*pc->spc_busnode)[bus].arg = device_private(self);
sys/arch/sun2/dev/bwtwo_any.c
138
bwtwoattach_any(device_t parent, device_t self, void *aux)
sys/arch/sun2/dev/bwtwo_any.c
140
struct bwtwosun2_softc *scsun2 = device_private(self);
sys/arch/sun2/dev/bwtwo_any.c
148
sc->sc_dev = self;
sys/arch/sun2/dev/bwtwo_any.c
154
fb->fb_flags = device_cfdata(self)->cf_flags;
sys/arch/sun2/dev/bwtwo_any.c
171
printf("%s: cannot map regs\n", device_xname(self));
sys/arch/sun2/dev/bwtwo_any.c
181
printf("%s: cannot map pixels\n", device_xname(self));
sys/arch/sun2/dev/if_ec.c
185
ec_attach(device_t parent, device_t self, void *aux)
sys/arch/sun2/dev/if_ec.c
187
struct ec_softc *sc = device_private(self);
sys/arch/sun2/dev/if_ec.c
192
sc->sc_dev = self;
sys/arch/sun2/dev/if_ec.c
217
strcpy(ifp->if_xname, device_xname(self));
sys/arch/sun2/dev/if_ec.c
237
aprint_normal_dev(self, "address %s\n", ether_sprintf(myaddr));
sys/arch/sun2/dev/if_ec.c
242
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/arch/sun2/dev/if_ie_mbmem.c
397
ie_mbmem_attach(device_t parent, device_t self, void *aux)
sys/arch/sun2/dev/if_ie_mbmem.c
400
struct ie_mbmem_softc *vsc = device_private(self);
sys/arch/sun2/dev/if_ie_mbmem.c
408
sc->sc_dev = self;
sys/arch/sun2/dev/if_ie_mbmem.c
490
printf("\n%s:", device_xname(self));
sys/arch/sun2/dev/if_ie_obio.c
256
ie_obio_attach(device_t parent, device_t self, void *aux)
sys/arch/sun2/dev/if_ie_obio.c
259
struct ie_softc *sc = device_private(self);
sys/arch/sun2/dev/if_ie_obio.c
270
sc->sc_dev = self;
sys/arch/sun2/dev/if_ie_obio.c
296
device_xname(self), error);
sys/arch/sun2/dev/if_ie_obio.c
302
device_xname(self), error);
sys/arch/sun2/dev/if_ie_obio.c
310
device_xname(self), error);
sys/arch/sun2/dev/if_ie_obio.c
319
device_xname(self), error);
sys/arch/sun2/dev/pcons.c
112
pconsattach(device_t parent, device_t self, void *aux)
sys/arch/sun2/dev/pcons.c
114
struct pconssoftc *sc = device_private(self);
sys/arch/sun2/dev/sc_mbmem.c
140
sunsc_mbmem_attach(device_t parent, device_t self, void *args)
sys/arch/sun2/dev/sc_mbmem.c
142
struct sunscpal_softc *sc = device_private(self);
sys/arch/sun2/dev/sc_mbmem.c
143
struct cfdata *cf = device_cfdata(self);
sys/arch/sun2/dev/sc_mbmem.c
147
sc->sc_dev = self;
sys/arch/sun2/dev/zs_any.c
120
zs_any_attach(device_t parent, device_t self, void *aux)
sys/arch/sun2/dev/zs_any.c
122
struct zsc_softc *zsc = device_private(self);
sys/arch/sun2/dev/zs_any.c
126
zsc->zsc_dev = self;
sys/arch/sun2/dev/zs_any.c
130
zsc->zsc_promunit = device_unit(self);
sys/arch/sun2/sun2/clock.c
176
clock_attach(device_t parent, device_t self, void *args)
sys/arch/sun2/sun2/mbio.c
109
sc->sc_dev = self;
sys/arch/sun2/sun2/mbio.c
132
config_search(self, &mba,
sys/arch/sun2/sun2/mbio.c
138
config_search(self, &mba,
sys/arch/sun2/sun2/mbio.c
96
mbio_attach(device_t parent, device_t self, void *aux)
sys/arch/sun2/sun2/mbio.c
99
struct mbio_softc *sc = device_private(self);
sys/arch/sun2/sun2/mbmem.c
104
mbmem_attach(device_t parent, device_t self, void *aux)
sys/arch/sun2/sun2/mbmem.c
107
struct mbmem_softc *sc = device_private(self);
sys/arch/sun2/sun2/mbmem.c
117
sc->sc_dev = self;
sys/arch/sun2/sun2/mbmem.c
146
config_search(self, &mbma,
sys/arch/sun2/sun2/mbmem.c
152
config_search(self, &mbma,
sys/arch/sun2/sun2/obio.c
101
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/sun2/sun2/obio.c
104
struct obio_softc *sc = device_private(self);
sys/arch/sun2/sun2/obio.c
114
sc->sc_dev = self;
sys/arch/sun2/sun2/obio.c
137
config_search(self, &oba,
sys/arch/sun2/sun2/obio.c
143
config_search(self, &oba,
sys/arch/sun2/sun2/obmem.c
104
sc->sc_dev = self;
sys/arch/sun2/sun2/obmem.c
127
config_search(self, &obma,
sys/arch/sun2/sun2/obmem.c
133
config_search(self, &obma,
sys/arch/sun2/sun2/obmem.c
91
obmem_attach(device_t parent, device_t self, void *aux)
sys/arch/sun2/sun2/obmem.c
94
struct obmem_softc *sc = device_private(self);
sys/arch/sun2/sun2/tod.c
146
tod_obio_attach(device_t parent, device_t self, void *args)
sys/arch/sun2/sun2/tod.c
153
sc = device_private(self);
sys/arch/sun2/sun2/tod.c
154
sc->mm58167_dev = self;
sys/arch/sun2/sun2/tod.c
184
tod_vme_attach(device_t parent, device_t self, void *aux)
sys/arch/sun2/sun2/tod.c
194
sc = device_private(self);
sys/arch/sun2/sun2/tod.c
195
sc->mm58167_dev = self;
sys/arch/sun3/dev/bw2.c
192
bw2attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/bw2.c
194
struct bw2_softc *sc = device_private(self);
sys/arch/sun3/dev/bw2.c
202
sc->sc_dev = self;
sys/arch/sun3/dev/bw2.c
213
fb->fb_name = device_xname(self);
sys/arch/sun3/dev/bw2.c
214
fb->fb_flags = device_cfdata(self)->cf_flags;
sys/arch/sun3/dev/bw2.c
257
else if (device_unit(self) == 0)
sys/arch/sun3/dev/cg2.c
166
cg2attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/cg2.c
168
struct cg2_softc *sc = device_private(self);
sys/arch/sun3/dev/cg2.c
173
sc->sc_dev = self;
sys/arch/sun3/dev/cg2.c
190
fb->fb_name = device_xname(self);
sys/arch/sun3/dev/cg4.c
246
cg4attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/cg4.c
248
struct cg4_softc *sc = device_private(self);
sys/arch/sun3/dev/cg4.c
254
sc->sc_dev = self;
sys/arch/sun3/dev/cg4.c
265
fb->fb_name = device_xname(self);
sys/arch/sun3/dev/cg4.c
266
fb->fb_flags = device_cfdata(self)->cf_flags;
sys/arch/sun3/dev/cg4.c
312
else if (device_unit(self) == 0)
sys/arch/sun3/dev/dma.c
85
dmaattach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/dma.c
87
struct dma_softc *sc = device_private(self);
sys/arch/sun3/dev/dma.c
91
sc->sc_dev = self;
sys/arch/sun3/dev/eeprom.c
91
eeprom_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/esp.c
124
espattach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/esp.c
126
struct esp_softc *esc = device_private(self);
sys/arch/sun3/dev/esp.c
133
sc->sc_dev = self;
sys/arch/sun3/dev/esp.c
153
esc->sc_dma = espdmafind(device_unit(self));
sys/arch/sun3/dev/esp.c
237
device_xname(self), "intr");
sys/arch/sun3/dev/fd.c
418
fdcattach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/fd.c
421
struct fdc_softc *fdc = device_private(self);
sys/arch/sun3/dev/fd.c
426
fdc->sc_dev = self;
sys/arch/sun3/dev/fd.c
491
device_xname(self), "intr");
sys/arch/sun3/dev/fd.c
497
(void)config_found(self, (void *)&fa, fdprint, CFARGS_NONE);
sys/arch/sun3/dev/fd.c
563
fdattach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/fd.c
566
struct fd_softc *fd = device_private(self);
sys/arch/sun3/dev/fd.c
571
fd->sc_dv = self;
sys/arch/sun3/dev/fd.c
593
disk_init(&fd->sc_dk, device_xname(self), &fddkdriver);
sys/arch/sun3/dev/fd.c
601
fa->fa_bootpath->dev = self;
sys/arch/sun3/dev/fd.c
629
mountroothook_establish(fd_mountroot_hook, self);
sys/arch/sun3/dev/fd.c
632
if (!pmf_device_register1(self, NULL, NULL, fd_shutdown))
sys/arch/sun3/dev/fd.c
633
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/sun3/dev/fd.c
637
fd_shutdown(device_t self, int howto)
sys/arch/sun3/dev/fd.c
641
fd = device_private(self);
sys/arch/sun3/dev/if_ie_obio.c
100
struct ie_softc *sc = device_private(self);
sys/arch/sun3/dev/if_ie_obio.c
103
sc->sc_dev = self;
sys/arch/sun3/dev/if_ie_obio.c
98
ie_obio_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/if_ie_sebuf.c
107
ie_sebuf_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/if_ie_sebuf.c
109
struct ie_softc *sc = device_private(self);
sys/arch/sun3/dev/if_ie_sebuf.c
114
sc->sc_dev = self;
sys/arch/sun3/dev/if_ie_vme.c
115
ie_vme_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/if_ie_vme.c
117
struct ie_softc *sc = device_private(self);
sys/arch/sun3/dev/if_ie_vme.c
123
sc->sc_dev = self;
sys/arch/sun3/dev/if_le.c
142
le_attach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/if_le.c
144
struct le_softc *lesc = device_private(self);
sys/arch/sun3/dev/if_le.c
148
sc->sc_dev = self;
sys/arch/sun3/dev/memerr.c
103
memerr_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/memerr.c
105
struct memerr_softc *sc = device_private(self);
sys/arch/sun3/dev/memerr.c
109
sc->sc_dev = self;
sys/arch/sun3/dev/memerr.c
133
panic("%s: can not map register", device_xname(self));
sys/arch/sun3/dev/sebuf.c
136
sebuf_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/sebuf.c
138
struct sebuf_softc *sc = device_private(self);
sys/arch/sun3/dev/sebuf.c
143
sc->sc_dev = self;
sys/arch/sun3/dev/sebuf.c
163
(void)config_found(self, (void *)&aa, sebuf_print, CFARGS_NONE);
sys/arch/sun3/dev/sebuf.c
172
(void)config_found(self, (void *)&aa, sebuf_print, CFARGS_NONE);
sys/arch/sun3/dev/si_obio.c
155
si_obio_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/si_obio.c
157
struct si_softc *sc = device_private(self);
sys/arch/sun3/dev/si_obio.c
159
struct cfdata *cf = device_cfdata(self);
sys/arch/sun3/dev/si_obio.c
162
ncr_sc->sc_dev = self;
sys/arch/sun3/dev/si_sebuf.c
164
se_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/si_sebuf.c
166
struct se_softc *sc = device_private(self);
sys/arch/sun3/dev/si_sebuf.c
168
struct cfdata *cf = device_cfdata(self);
sys/arch/sun3/dev/si_sebuf.c
173
ncr_sc->sc_dev = self;
sys/arch/sun3/dev/si_vme.c
171
si_vme_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/dev/si_vme.c
173
struct si_softc *sc = device_private(self);
sys/arch/sun3/dev/si_vme.c
175
struct cfdata *cf = device_cfdata(self);
sys/arch/sun3/dev/si_vme.c
178
ncr_sc->sc_dev = self;
sys/arch/sun3/dev/xd.c
417
xdcattach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/xd.c
419
struct xdc_softc *xdc = device_private(self);
sys/arch/sun3/dev/xd.c
428
xdc->sc_dev = self;
sys/arch/sun3/dev/xd.c
503
aprint_error_dev(self, "controller config error: %s\n",
sys/arch/sun3/dev/xd.c
511
device_xname(self), "intr");
sys/arch/sun3/dev/xd.c
516
(void)config_found(self, (void *)&xa, xdc_print, CFARGS_NONE);
sys/arch/sun3/dev/xd.c
562
xdattach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/xd.c
564
struct xd_softc *xd = device_private(self);
sys/arch/sun3/dev/xd.c
568
xd->sc_dev = self;
sys/arch/sun3/dev/xd.c
576
disk_init(&xd->sc_dk, device_xname(self), &xddkdriver);
sys/arch/sun3/dev/xy.c
348
xycattach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/xy.c
350
struct xyc_softc *xyc = device_private(self);
sys/arch/sun3/dev/xy.c
360
xyc->sc_dev = self;
sys/arch/sun3/dev/xy.c
432
aprint_error_dev(self, "error: %s\n", xyc_e2str(err));
sys/arch/sun3/dev/xy.c
436
aprint_error_dev(self, "24 bit addressing turned off\n");
sys/arch/sun3/dev/xy.c
445
device_xname(self), "intr");
sys/arch/sun3/dev/xy.c
451
(void)config_found(self, (void *)&xa, xyc_print, CFARGS_NONE);
sys/arch/sun3/dev/xy.c
497
xyattach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/xy.c
499
struct xy_softc *xy = device_private(self);
sys/arch/sun3/dev/xy.c
503
xy->sc_dev = self;
sys/arch/sun3/dev/xy.c
511
disk_init(&xy->sc_dk, device_xname(self), &xydkdriver);
sys/arch/sun3/dev/zs.c
255
zs_attach(device_t parent, device_t self, void *aux)
sys/arch/sun3/dev/zs.c
257
struct zsc_softc *zsc = device_private(self);
sys/arch/sun3/dev/zs.c
264
zsc->zsc_dev = self;
sys/arch/sun3/dev/zs.c
265
zs_unit = device_unit(self);
sys/arch/sun3/dev/zs.c
322
if (!config_found(self, (void *)&zsc_args, zs_print,
sys/arch/sun3/sun3/clock.c
152
oclock_attach(device_t parent, device_t self, void *aux)
sys/arch/sun3/sun3/clock.c
154
struct intersil7170_softc *sc = device_private(self);
sys/arch/sun3/sun3/clock.c
157
sc->sc_dev = self;
sys/arch/sun3/sun3/intreg.c
105
intreg_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/sun3/intreg.c
107
struct intreg_softc *sc = device_private(self);
sys/arch/sun3/sun3/intreg.c
109
sc->sc_dev = self;
sys/arch/sun3/sun3/mainbus.c
63
main_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/sun3/mainbus.c
79
(void)config_found(self, &ca, NULL, CFARGS_NONE);
sys/arch/sun3/sun3/obio.c
117
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/sun3/sun3/obio.c
120
struct obio_softc *sc = device_private(self);
sys/arch/sun3/sun3/obio.c
125
sc->sc_dev = self;
sys/arch/sun3/sun3/obio.c
150
config_found(self, &oba, obio_print,
sys/arch/sun3/sun3/obmem.c
100
obmem_attach(device_t parent, device_t self, void *aux)
sys/arch/sun3/sun3/obmem.c
103
struct obmem_softc *sc = device_private(self);
sys/arch/sun3/sun3/obmem.c
107
sc->sc_dev = self;
sys/arch/sun3/sun3/obmem.c
121
config_search(self, &obma,
sys/arch/sun3/sun3/vme.c
128
vme_attach(device_t parent, device_t self, void *aux)
sys/arch/sun3/sun3/vme.c
131
struct vme_softc *sc = device_private(self);
sys/arch/sun3/sun3/vme.c
135
sc->sc_dev = self;
sys/arch/sun3/sun3/vme.c
137
unit = device_unit(self);
sys/arch/sun3/sun3/vme.c
156
config_search(self, &vmea,
sys/arch/sun3/sun3x/clock.c
197
oclock_attach(device_t parent, device_t self, void *aux)
sys/arch/sun3/sun3x/clock.c
199
struct intersil7170_softc *sc = device_private(self);
sys/arch/sun3/sun3x/clock.c
202
sc->sc_dev = self;
sys/arch/sun3/sun3x/clock.c
219
aprint_error_dev(self, "warning - mostek found also!\n");
sys/arch/sun3/sun3x/clock.c
282
clock_attach(device_t parent, device_t self, void *aux)
sys/arch/sun3/sun3x/clock.c
284
struct mk48txx_softc *sc = device_private(self);
sys/arch/sun3/sun3x/clock.c
287
sc->sc_dev = self;
sys/arch/sun3/sun3x/iommu.c
72
iommu_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/sun3x/obio.c
160
obio_attach(device_t parent, device_t self, void *aux)
sys/arch/sun3/sun3x/obio.c
163
struct obio_softc *sc = device_private(self);
sys/arch/sun3/sun3x/obio.c
168
sc->sc_dev = self;
sys/arch/sun3/sun3x/obio.c
193
config_found(self, &oba, obio_print,
sys/arch/sun3/sun3x/vme.c
128
vme_attach(device_t parent, device_t self, void *args)
sys/arch/sun3/sun3x/vme.c
131
struct vme_softc *sc = device_private(self);
sys/arch/sun3/sun3x/vme.c
135
sc->sc_dev = self;
sys/arch/sun3/sun3x/vme.c
137
unit = device_unit(self);
sys/arch/sun3/sun3x/vme.c
156
config_search(self, args,
sys/arch/sun68k/sun68k/autoconf.c
127
mainbus_attach(device_t parent, device_t self, void *args)
sys/arch/sun68k/sun68k/autoconf.c
148
(void)config_found(self, &ma, NULL, CFARGS_NONE);
sys/arch/sun68k/sun68k/autoconf.c
153
(void)config_found(self, &ma, NULL, CFARGS_NONE);
sys/arch/sun68k/sun68k/autoconf.c
157
(void)config_found(self, &ma, NULL, CFARGS_NONE);
sys/arch/sun68k/sun68k/vme_sun68k.c
146
sun68kvme_attach(device_t parent, device_t self, void *aux)
sys/arch/sun68k/sun68k/vme_sun68k.c
149
struct sun68kvme_softc *sc = device_private(self);
sys/arch/sun68k/sun68k/vme_sun68k.c
156
sc->sc_dev = self;
sys/arch/sun68k/sun68k/vme_sun68k.c
171
(void)config_found(self, &vba, 0, CFARGS_NONE);
sys/arch/usermode/dev/clock.c
92
clock_attach(device_t parent, device_t self, void *opaque)
sys/arch/usermode/dev/clock.c
94
struct clock_softc *sc = device_private(self);
sys/arch/usermode/dev/clock.c
99
sc->sc_dev = self;
sys/arch/usermode/dev/cpu.c
110
cpu_attach(device_t parent, device_t self, void *opaque)
sys/arch/usermode/dev/cpu.c
112
cpu_softc_t *sc = device_private(self);
sys/arch/usermode/dev/cpu.c
117
cpu_info_primary.ci_dev = self;
sys/arch/usermode/dev/cpu.c
118
sc->sc_dev = self;
sys/arch/usermode/dev/if_veth.c
100
veth_attach(device_t parent, device_t self, void *opaque)
sys/arch/usermode/dev/if_veth.c
102
struct veth_softc *sc = device_private(self);
sys/arch/usermode/dev/if_veth.c
106
sc->sc_dev = self;
sys/arch/usermode/dev/if_veth.c
108
pmf_device_register1(self, NULL, NULL, veth_shutdown);
sys/arch/usermode/dev/if_veth.c
126
aprint_normal_dev(self, "Ethernet address %s\n",
sys/arch/usermode/dev/if_veth.c
129
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/arch/usermode/dev/if_veth.c
166
veth_shutdown(device_t self, int flags)
sys/arch/usermode/dev/if_veth.c
168
struct veth_softc *sc = device_private(self);
sys/arch/usermode/dev/ld_thunkbus.c
104
ld->sc_dv = self;
sys/arch/usermode/dev/ld_thunkbus.c
95
ld_thunkbus_attach(device_t parent, device_t self, void *opaque)
sys/arch/usermode/dev/ld_thunkbus.c
97
struct ld_thunkbus_softc *sc = device_private(self);
sys/arch/usermode/dev/mainbus.c
103
config_found(self, &taa, mainbus_print, CFARGS_NONE);
sys/arch/usermode/dev/mainbus.c
109
config_found(self, &taa, mainbus_print, CFARGS_NONE);
sys/arch/usermode/dev/mainbus.c
115
config_found(self, &taa, mainbus_print, CFARGS_NONE);
sys/arch/usermode/dev/mainbus.c
121
config_found(self, &taa, mainbus_print, CFARGS_NONE);
sys/arch/usermode/dev/mainbus.c
71
mainbus_attach(device_t parent, device_t self, void *opaque)
sys/arch/usermode/dev/mainbus.c
73
mainbus_softc_t *sc = device_private(self);
sys/arch/usermode/dev/mainbus.c
80
sc->sc_dev = self;
sys/arch/usermode/dev/mainbus.c
83
config_found(self, &taa, mainbus_print, CFARGS_NONE);
sys/arch/usermode/dev/mainbus.c
86
config_found(self, &taa, mainbus_print, CFARGS_NONE);
sys/arch/usermode/dev/mainbus.c
93
config_found(self, &taa, mainbus_print, CFARGS_NONE);
sys/arch/usermode/dev/mainbus.c
97
config_found(self, &taa, mainbus_print, CFARGS_NONE);
sys/arch/usermode/dev/ttycons.c
124
ttycons_attach(device_t parent, device_t self, void *opaque)
sys/arch/usermode/dev/ttycons.c
126
struct ttycons_softc *sc = device_private(self);
sys/arch/usermode/dev/ttycons.c
132
sc->sc_dev = self;
sys/arch/usermode/dev/ttycons.c
140
cn_tab->cn_dev = makedev(maj, device_unit(self));
sys/arch/usermode/dev/vatapi.c
123
vatapi_attach(device_t parent, device_t self, void *opaque)
sys/arch/usermode/dev/vatapi.c
125
struct vatapi_softc *sc = device_private(self);
sys/arch/usermode/dev/vatapi.c
128
sc->sc_dev = self;
sys/arch/usermode/dev/vatapi.c
145
config_interrupts(self, vatapi_callback);
sys/arch/usermode/dev/vatapi.c
149
vatapi_callback(device_t self)
sys/arch/usermode/dev/vatapi.c
151
struct vatapi_softc *sc = device_private(self);
sys/arch/usermode/dev/vatapi.c
62
static void vatapi_callback(device_t self);
sys/arch/usermode/dev/vaudio.c
143
vaudio_attach(device_t parent, device_t self, void *opaque)
sys/arch/usermode/dev/vaudio.c
145
struct vaudio_softc *sc = device_private(self);
sys/arch/usermode/dev/vaudio.c
151
sc->sc_dev = self;
sys/arch/usermode/dev/vaudio.c
153
pmf_device_register1(self, NULL, NULL, vaudio_shutdown);
sys/arch/usermode/dev/vaudio.c
158
aprint_error_dev(self, "couldn't open audio device: %d\n",
sys/arch/usermode/dev/vaudio.c
178
sc->sc_audiodev = audio_attach_mi(&vaudio_hw_if, sc, self);
sys/arch/usermode/dev/vaudio.c
182
vaudio_shutdown(device_t self, int flags)
sys/arch/usermode/dev/vaudio.c
184
struct vaudio_softc *sc = device_private(self);
sys/arch/usermode/dev/vncfb.c
193
vncfb_attach(device_t parent, device_t self, void *priv)
sys/arch/usermode/dev/vncfb.c
195
struct vncfb_softc *sc = device_private(self);
sys/arch/usermode/dev/vncfb.c
203
sc->sc_dev = self;
sys/arch/usermode/dev/vncfb.c
264
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/usermode/dev/vncfb.c
273
sc->sc_wskbddev = config_found(self, &kaa, wskbddevprint,
sys/arch/usermode/dev/vncfb.c
279
sc->sc_wsmousedev = config_found(self, &maa, wsmousedevprint,
sys/arch/vax/bi/bi_mainbus.c
62
bi_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/bi/bi_mainbus.c
64
struct bi_softc * const sc = device_private(self);
sys/arch/vax/bi/bi_mainbus.c
67
sc->sc_dev = self;
sys/arch/vax/bi/bi_nmi.c
60
bi_nmi_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/bi/bi_nmi.c
63
struct bi_softc * const sc = device_private(self);
sys/arch/vax/bi/bi_nmi.c
68
sc->sc_dev = self;
sys/arch/vax/if/if_le.c
160
le_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/if/if_le.c
162
struct le_softc * const sc = device_private(self);
sys/arch/vax/if/if_le.c
166
sc->sc_am7990.lsc.sc_dev = self;
sys/arch/vax/if/if_le.c
186
device_xname(self), "intr");
sys/arch/vax/if/if_le.c
188
aprint_normal(": vec %o ipl %x\n%s", vec, br, device_xname(self));
sys/arch/vax/if/if_le.c
222
memcpy(sc->sc_am7990.lsc.sc_ethercom.ec_if.if_xname, device_xname(self),
sys/arch/vax/if/if_le_vsbus.c
192
le_vsbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/if/if_le_vsbus.c
195
struct le_softc * const sc = device_private(self);
sys/arch/vax/if/if_le_vsbus.c
200
sc->sc_am7990.lsc.sc_dev = self;
sys/arch/vax/if/if_le_vsbus.c
214
device_xname(self), "intr");
sys/arch/vax/if/if_le_vsbus.c
268
memcpy(sc->sc_am7990.lsc.sc_ethercom.ec_if.if_xname, device_xname(self),
sys/arch/vax/if/if_le_vsbus.c
272
aprint_normal("\n%s", device_xname(self));
sys/arch/vax/if/if_ze.c
124
ze_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/if/if_ze.c
127
struct ze_softc * const sc = device_private(self);
sys/arch/vax/if/if_ze.c
133
sc->sc_dev = self;
sys/arch/vax/mba/hp.c
146
hpattach(device_t parent, device_t self, void *aux)
sys/arch/vax/mba/hp.c
148
struct hp_softc * const sc = device_private(self);
sys/arch/vax/mba/hp.c
154
sc->sc_dev = self;
sys/arch/vax/mba/hp.c
189
if ((msg = readdisklabel(makedev(0, device_unit(self) * 8), hpstrategy,
sys/arch/vax/mba/mba.c
118
mbaattach(device_t parent, device_t self, void *aux)
sys/arch/vax/mba/mba.c
120
struct mba_softc * const sc = device_private(self);
sys/arch/vax/mba/mba.c
127
sc->sc_dev = self;
sys/arch/vax/mba/mba.c
137
device_xname(self), "intr");
sys/arch/vax/uba/qv.c
403
qv_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/uba/qv.c
405
struct qv_softc *sc = device_private(self);
sys/arch/vax/uba/qv.c
415
sc->sc_dev = self;
sys/arch/vax/uba/qv.c
422
aprint_error_dev(self, "Couldn't alloc graphics memory.\n");
sys/arch/vax/uba/qv.c
432
aprint_error_dev(self,
sys/arch/vax/uba/qv.c
464
aprint_error_dev(self, "could not find 8x15 font\n");
sys/arch/vax/uba/qv.c
468
aprint_error_dev(self, "could not lock 8x15 font\n");
sys/arch/vax/uba/qv.c
478
if (config_search(self, &aa,
sys/arch/vax/uba/qv.c
480
config_found(self, &aa, qvauxprint,
sys/arch/vax/uba/qv.c
488
emulaa.accesscookie = self;
sys/arch/vax/uba/qv.c
489
if (config_search(self, &emulaa,
sys/arch/vax/uba/qv.c
491
config_found(self, &emulaa, wsemuldisplaydevprint,
sys/arch/vax/uba/qvaux.c
255
qvaux_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/uba/qvaux.c
257
struct qvaux_softc *sc = device_private(self);
sys/arch/vax/uba/qvaux.c
269
sc->sc_dev = self;
sys/arch/vax/uba/qvaux.c
317
config_found(self, &daa, qvaux_print, CFARGS_NONE);
sys/arch/vax/uba/qvaux.c
329
config_found(self, &daa, qvaux_print, CFARGS_NONE);
sys/arch/vax/uba/qvkbd.c
153
qvkbd_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/uba/qvkbd.c
156
struct qvkbd_softc *qvkbd = device_private(self);
sys/arch/vax/uba/qvkbd.c
199
qvkbd->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/vax/uba/qvms.c
121
qvms_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/uba/qvms.c
124
struct qvms_softc *qvms = device_private(self);
sys/arch/vax/uba/qvms.c
141
qvms->sc_wsmousedev = config_found(self, &a, wsmousedevprint,
sys/arch/vax/uba/uba_cmi.c
123
dw750_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/uba/uba_cmi.c
125
struct uba_vsoftc * const sc = device_private(self);
sys/arch/vax/uba/uba_cmi.c
130
sc->uv_sc.uh_dev = self;
sys/arch/vax/uba/uba_mainbus.c
114
qba_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/uba/uba_mainbus.c
117
struct uba_vsoftc * const sc = device_private(self);
sys/arch/vax/uba/uba_mainbus.c
127
sc->uv_sc.uh_dev = self;
sys/arch/vax/uba/uba_sbi.c
165
dw780_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/uba/uba_sbi.c
167
struct uba_vsoftc * const sc = device_private(self);
sys/arch/vax/uba/uba_sbi.c
177
sc->uv_sc.uh_dev = self;
sys/arch/vax/uba/uba_ubi.c
125
dw730_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/uba/uba_ubi.c
127
struct uba_vsoftc *sc = device_private(self);
sys/arch/vax/uba/uba_ubi.c
135
sc->uv_sc.uh_dev = self;
sys/arch/vax/vax/autoconf.c
127
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/autoconf.c
139
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/vax/vax/autoconf.c
161
cpu_mainbus_match(device_t self, cfdata_t cf, void *aux)
sys/arch/vax/vax/autoconf.c
169
cpu_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/autoconf.c
173
KASSERT(device_private(self) == NULL);
sys/arch/vax/vax/autoconf.c
175
device_set_private(self, ci);
sys/arch/vax/vax/autoconf.c
176
ci->ci_dev = self;
sys/arch/vax/vax/autoconf.c
177
ci->ci_cpuid = device_unit(self);
sys/arch/vax/vax/autoconf.c
180
(*dep_call->cpu_attach_cpu)(self);
sys/arch/vax/vax/cmi.c
102
config_found(self, (void*)&sa, cmi_print, CFARGS_NONE);
sys/arch/vax/vax/cmi.c
113
config_found(self, (void*)&sa, cmi_print, CFARGS_NONE);
sys/arch/vax/vax/cmi.c
122
config_found(self, (void*)&sa, cmi_print, CFARGS_NONE);
sys/arch/vax/vax/cmi.c
70
cmi_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/cmi.c
88
config_found(self, (void*)&sa, cmi_print, CFARGS_NONE);
sys/arch/vax/vax/ka53.c
92
ka53_attach_cpu(device_t self)
sys/arch/vax/vax/ka610.c
67
ka610_attach_cpu(device_t self)
sys/arch/vax/vax/ka6400.c
125
ka6400_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka6400.c
133
aprint_normal_dev(self, "KA6400 (%s) rev %d%s\n",
sys/arch/vax/vax/ka6400.c
141
cpu_slavesetup(self, xa->xa_nodenr);
sys/arch/vax/vax/ka6400.c
149
device_set_private(self, ci);
sys/arch/vax/vax/ka6400.c
150
ci->ci_dev = self;
sys/arch/vax/vax/ka6400.c
151
ci->ci_cpuid = device_unit(self);
sys/arch/vax/vax/ka6400.c
215
ms6400_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka6400.c
217
struct mem_xmi_softc * const sc = device_private(self);
sys/arch/vax/vax/ka6400.c
220
sc->sc_dev = self;
sys/arch/vax/vax/ka650.c
118
ka650_attach_cpu(device_t self)
sys/arch/vax/vax/ka660.c
86
ka660_attach_cpu(device_t self)
sys/arch/vax/vax/ka670.c
212
ka670_attach_cpu(device_t self)
sys/arch/vax/vax/ka680.c
117
ka680_attach_cpu(device_t self)
sys/arch/vax/vax/ka730.c
111
ka730_attach_cpu(device_t self)
sys/arch/vax/vax/ka730.c
144
ka730_memenable(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka750.c
115
ka750_attach_cpu(device_t self)
sys/arch/vax/vax/ka750.c
168
ka750_memenable(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka750.c
174
mcraddr[device_unit(self)] = (void *)sa->sa_ioh;
sys/arch/vax/vax/ka780.c
172
mem_sbi_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka780.c
175
struct mem_softc * const sc = device_private(self);
sys/arch/vax/vax/ka780.c
178
sc->sc_dev = self;
sys/arch/vax/vax/ka780.c
362
ka780_attach_cpu(device_t self)
sys/arch/vax/vax/ka780.c
368
aprint_normal_dev(self, "4KB L1 cache");
sys/arch/vax/vax/ka820.c
143
ka820_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka820.c
166
cpu_slavesetup(self, ba->ba_nodenr);
sys/arch/vax/vax/ka820.c
172
device_set_private(self, ci); /* eww. but curcpu() is already too */
sys/arch/vax/vax/ka820.c
175
ci->ci_cpuid = device_unit(self);
sys/arch/vax/vax/ka820.c
176
ci->ci_dev = self;
sys/arch/vax/vax/ka820.c
307
ms820_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka820.c
309
struct mem_bi_softc * const sc = device_private(self);
sys/arch/vax/vax/ka820.c
312
sc->sc_dev = self;
sys/arch/vax/vax/ka860.c
299
ka86_attach_cpu(device_t self)
sys/arch/vax/vax/ka860.c
312
aprint_naive_dev(self,
sys/arch/vax/vax/ka860.c
315
aprint_normal_dev(self,
sys/arch/vax/vax/ka860.c
320
aprint_naive_dev(self, "no FPA\n");
sys/arch/vax/vax/ka860.c
321
aprint_normal_dev(self, "no FPA\n");
sys/arch/vax/vax/ka860.c
384
int abus_mainbus_match(device_t parent, cfdata_t self, void *aux)
sys/arch/vax/vax/ka860.c
389
void abus_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka860.c
429
config_found(self, &aa, abus_print, CFARGS_NONE);
sys/arch/vax/vax/ka88.c
128
ka88_cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka88.c
146
cpu_slavesetup(self, na->na_slot);
sys/arch/vax/vax/ka88.c
151
device_set_private(self, ci);
sys/arch/vax/vax/ka88.c
152
ci->ci_dev = self;
sys/arch/vax/vax/ka88.c
153
ci->ci_cpuid = device_unit(self);
sys/arch/vax/vax/ka88.c
180
ms88_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ka88.c
183
struct mem_nmi_softc * const sc = device_private(self);
sys/arch/vax/vax/ka88.c
187
sc->sc_dev = self;
sys/arch/vax/vax/multicpu.c
80
cpu_slavesetup(device_t self, int slotid)
sys/arch/vax/vax/multicpu.c
87
KASSERT(device_private(self) == NULL);
sys/arch/vax/vax/multicpu.c
90
device_set_private(self, ci);
sys/arch/vax/vax/multicpu.c
91
ci->ci_dev = self;
sys/arch/vax/vax/multicpu.c
93
ci->ci_cpuid = device_unit(self);
sys/arch/vax/vax/nmi_mainbus.c
104
config_found(self, (void *)&na, nmi_mainbus_print, CFARGS_NONE);
sys/arch/vax/vax/nmi_mainbus.c
119
config_found(self, (void *)&na, nmi_mainbus_print,
sys/arch/vax/vax/nmi_mainbus.c
123
config_found(self, (void *)&na, nmi_mainbus_print,
sys/arch/vax/vax/nmi_mainbus.c
78
nmi_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/nmi_mainbus.c
92
config_found(self, (void *)&na, nmi_mainbus_print, CFARGS_NONE);
sys/arch/vax/vax/nmi_mainbus.c
98
config_found(self, (void *)&na, nmi_mainbus_print, CFARGS_NONE);
sys/arch/vax/vax/sbi.c
129
config_found(self, (void*)&sa, sbi_print, CFARGS_NONE);
sys/arch/vax/vax/sbi.c
149
sbi_abus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/sbi.c
180
config_found(self, (void*)&sa, sbi_print, CFARGS_NONE);
sys/arch/vax/vax/sbi.c
99
sbi_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ubi.c
103
config_found(self, (void*)&sa, ubi_print, CFARGS_NONE);
sys/arch/vax/vax/ubi.c
112
config_found(self, (void*)&sa, ubi_print, CFARGS_NONE);
sys/arch/vax/vax/ubi.c
69
ubi_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/ubi.c
91
config_found(self, (void*)&sa, ubi_print, CFARGS_NONE);
sys/arch/vax/vax/xmi_mainbus.c
63
xmi_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vax/xmi_mainbus.c
65
struct xmi_softc * const sc = device_private(self);
sys/arch/vax/vax/xmi_mainbus.c
71
sc->sc_dev = self;
sys/arch/vax/vsa/asc_vsbus.c
174
asc_vsbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/asc_vsbus.c
177
struct asc_vsbus_softc * const asc = device_private(self);
sys/arch/vax/vsa/asc_vsbus.c
185
sc->sc_dev = self;
sys/arch/vax/vsa/asc_vsbus.c
234
printf("\n%s: adrh=0x%08lx dirh=0x%08lx", device_xname(self),
sys/arch/vax/vsa/asc_vsbus.c
258
device_xname(self), "intr");
sys/arch/vax/vsa/asc_vsbus.c
292
aprint_normal("\n%s", device_xname(self)); /* Pretty print */
sys/arch/vax/vsa/dz_vsbus.c
130
dz_vsbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/dz_vsbus.c
132
struct dz_softc * const sc = device_private(self);
sys/arch/vax/vsa/dz_vsbus.c
137
sc->sc_dev = self;
sys/arch/vax/vsa/dz_vsbus.c
169
aprint_normal_dev(self, "4 lines");
sys/arch/vax/vsa/dz_vsbus.c
185
config_defer(self, dz_vsbus_attach_deferred);
sys/arch/vax/vsa/dz_vsbus.c
191
dz_vsbus_attach_deferred(device_t self)
sys/arch/vax/vsa/dz_vsbus.c
204
config_found(self, &daa, dz_print, CFARGS_NONE);
sys/arch/vax/vsa/dz_vsbus.c
212
config_found(self, &daa, dz_print, CFARGS_NONE);
sys/arch/vax/vsa/gpx.c
335
gpx_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/gpx.c
337
struct gpx_softc *sc = device_private(self);
sys/arch/vax/vsa/gpx.c
344
sc->sc_dev = self;
sys/arch/vax/vsa/gpx.c
398
aprint_normal_dev(self, "%dx%d %d plane color framebuffer\n",
sys/arch/vax/vsa/gpx.c
406
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/vax/vsa/hdc9224.c
278
hdcattach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/hdc9224.c
281
struct hdcsoftc * const sc = device_private(self);
sys/arch/vax/vsa/hdc9224.c
287
sc->sc_dev = self;
sys/arch/vax/vsa/hdc9224.c
294
device_xname(self), "intr");
sys/arch/vax/vsa/hdc9224.c
311
aprint_error_dev(self, "RESET failed, status 0x%x\n", status);
sys/arch/vax/vsa/hdc9224.c
327
config_found(self, (void *)&ha, hdcprint, CFARGS_NONE);
sys/arch/vax/vsa/hdc9224.c
350
rdattach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/hdc9224.c
353
struct rdsoftc * const rd = device_private(self);
sys/arch/vax/vsa/hdc9224.c
358
rd->sc_dev = self;
sys/arch/vax/vsa/hdc9224.c
379
aprint_normal_dev(self, "%s: size %u sectors",
sys/arch/vax/vsa/hdc9224.c
382
aprint_normal_dev(self, "size %u sectors\n", dl->d_secperunit);
sys/arch/vax/vsa/lcg.c
1007
if (self != NULL) {
sys/arch/vax/vsa/lcg.c
1010
device_printf(self,
sys/arch/vax/vsa/lcg.c
1033
if (self != NULL) {
sys/arch/vax/vsa/lcg.c
1040
if (self != NULL) {
sys/arch/vax/vsa/lcg.c
1080
if (self != NULL)
sys/arch/vax/vsa/lcg.c
1081
aprint_normal_dev(self,
sys/arch/vax/vsa/lcg.c
1099
if (self != NULL) {
sys/arch/vax/vsa/lcg.c
1100
aprint_normal_dev(self, "using font %s (%dx%d), ",
sys/arch/vax/vsa/lcg.c
1116
if (self != NULL) {
sys/arch/vax/vsa/lcg.c
1120
device_printf(self,
sys/arch/vax/vsa/lcg.c
1143
device_printf(self,
sys/arch/vax/vsa/lcg.c
1149
device_printf(self, "unable to map FIFO window\n");
sys/arch/vax/vsa/lcg.c
1157
device_printf(self,
sys/arch/vax/vsa/lcg.c
1166
device_printf(self,
sys/arch/vax/vsa/lcg.c
1176
device_printf(self,
sys/arch/vax/vsa/lcg.c
1187
device_printf(self,
sys/arch/vax/vsa/lcg.c
1317
if (self != NULL)
sys/arch/vax/vsa/lcg.c
1318
device_printf(self, "video config register set 0x%08lx\n",
sys/arch/vax/vsa/lcg.c
469
lcg_attach(struct device *parent, struct device *self, void *aux)
sys/arch/vax/vsa/lcg.c
477
lcg_init_common(self, va);
sys/arch/vax/vsa/lcg.c
488
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/vax/vsa/lcg.c
985
lcg_init_common(struct device *self, struct vsbus_attach_args *va)
sys/arch/vax/vsa/lcg.c
994
struct lcg_softc *sc = device_private(self);
sys/arch/vax/vsa/ncr.c
134
si_vsbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/ncr.c
137
struct si_softc * const sc = device_private(self);
sys/arch/vax/vsa/ncr.c
141
ncr_sc->sc_dev = self;
sys/arch/vax/vsa/ncr.c
146
device_xname(self), "intr");
sys/arch/vax/vsa/ncr.c
223
aprint_normal_dev(self, "NCR5380, SCSI ID %d\n", target);
sys/arch/vax/vsa/smg.c
290
smg_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/smg.c
292
struct smg_softc *sc = device_private(self);
sys/arch/vax/vsa/smg.c
340
aprint_normal_dev(self, "%dx%d on-board monochrome framebuffer\n",
sys/arch/vax/vsa/smg.c
348
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/vax/vsa/spx.c
1231
spx_map_regs(device_t self,
sys/arch/vax/vsa/spx.c
1236
if (!self) {
sys/arch/vax/vsa/spx.c
1250
aprint_error_dev(self,
sys/arch/vax/vsa/spx.c
1257
aprint_error_dev(self,
sys/arch/vax/vsa/spx.c
1266
SPX_map_fb(device_t self, struct vsbus_attach_args *va)
sys/arch/vax/vsa/spx.c
1271
if (!self) {
sys/arch/vax/vsa/spx.c
1297
aprint_error_dev(self, "unable to map framebuffer memory.\n");
sys/arch/vax/vsa/spx.c
1304
aprint_error_dev(self,
sys/arch/vax/vsa/spx.c
1311
aprint_error_dev(self,
sys/arch/vax/vsa/spx.c
1318
aprint_error_dev(self,
sys/arch/vax/vsa/spx.c
1325
aprint_error_dev(self,
sys/arch/vax/vsa/spx.c
1334
SPXg_map_fb(device_t self, struct vsbus_attach_args *va)
sys/arch/vax/vsa/spx.c
1339
if (!self) {
sys/arch/vax/vsa/spx.c
1358
aprint_error_dev(self,
sys/arch/vax/vsa/spx.c
1365
aprint_error_dev(self,
sys/arch/vax/vsa/spx.c
1444
spx_init_common(device_t self, struct vsbus_attach_args *va)
sys/arch/vax/vsa/spx.c
1475
SPX_MAP_REGS(self, SPX);
sys/arch/vax/vsa/spx.c
1477
SPX_MAP_REGS(self, SPXg);
sys/arch/vax/vsa/spx.c
1510
if (self != NULL) {
sys/arch/vax/vsa/spx.c
1511
aprint_normal_dev(self, "Using %s %dx%d font\n", wf->name,
sys/arch/vax/vsa/spx.c
1533
SPX_MAP_FB(self, va, SPX);
sys/arch/vax/vsa/spx.c
1535
SPX_MAP_FB(self, va, SPXg);
sys/arch/vax/vsa/spx.c
219
#define SPX_MAP_FB(self, va, type) if (! type ## _map_fb(self, va)) return
sys/arch/vax/vsa/spx.c
220
#define SPX_MAP_REGS(self, type) if (!spx_map_regs(self, \
sys/arch/vax/vsa/spx.c
631
spx_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/spx.c
633
struct spx_softc *sc = device_private(self);
sys/arch/vax/vsa/spx.c
637
sc->ss_dev = self;
sys/arch/vax/vsa/spx.c
642
spx_init_common(self, va);
sys/arch/vax/vsa/spx.c
647
aprint_normal_dev(self,
sys/arch/vax/vsa/spx.c
653
aprint_normal_dev(self,
sys/arch/vax/vsa/spx.c
658
aprint_error_dev(self, "unknown RAMDAC type 0x%x\n",
sys/arch/vax/vsa/spx.c
671
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/vax/vsa/tc_vsbus.c
193
tc_vsbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/tc_vsbus.c
197
struct tc_vsbus_softc * const sc = device_private(self);
sys/arch/vax/vsa/tc_vsbus.c
268
error = tc_vsbus_dma_init(self);
sys/arch/vax/vsa/tc_vsbus.c
276
device_xname(self), "intr");
sys/arch/vax/vsa/tc_vsbus.c
286
tcattach(parent, self, &tba);
sys/arch/vax/vsa/vsaudio.c
194
vsaudio_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/vsaudio.c
197
struct vsaudio_softc *sc = device_private(self);
sys/arch/vax/vsa/vsaudio.c
206
amsc->sc_dev = self;
sys/arch/vax/vsa/vsaudio.c
212
device_xname(self), "intr");
sys/arch/vax/vsa/vsaudio.c
215
audio_attach_mi(&vsaudio_hw_if, sc, self);
sys/arch/vax/vsa/vsaudio.c
97
static void vsaudio_attach(device_t parent, device_t self, void *);
sys/arch/vax/vsa/vsbus.c
103
vsbus_attach(device_t parent, device_t self, void *aux)
sys/arch/vax/vsa/vsbus.c
106
struct vsbus_softc *sc = device_private(self);
sys/arch/vax/vsa/vsbus.c
111
sc->sc_dev = self;
sys/arch/vax/vsa/vsbus.c
168
aprint_normal_dev(self, "interrupt mask %x\n", sc->sc_mask);
sys/arch/vax/vsa/vsbus.c
172
config_search(self, NULL,
sys/arch/virt68k/dev/gfpic_mainbus.c
59
gfpic_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/virt68k/dev/gfpic_mainbus.c
61
struct gfpic_softc * const sc = device_private(self);
sys/arch/virt68k/dev/gfpic_mainbus.c
64
sc->sc_dev = self;
sys/arch/virt68k/dev/gfpic_mainbus.c
74
aprint_normal_dev(self, "interrupting at IPL %d\n", ma->ma_irq);
sys/arch/virt68k/dev/gfpic_mainbus.c
75
intr_register_pic(self, ma->ma_irq);
sys/arch/virt68k/dev/gfrtc_mainbus.c
121
gfrtc_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/virt68k/dev/gfrtc_mainbus.c
123
struct gfrtc_mainbus_softc * const sc = device_private(self);
sys/arch/virt68k/dev/gfrtc_mainbus.c
128
sc->sc_gfrtc.sc_dev = self;
sys/arch/virt68k/dev/gfrtc_mainbus.c
149
aprint_normal_dev(self, "%s interrupting at %s\n",
sys/arch/virt68k/dev/gfrtc_mainbus.c
155
clock_attach(self, &sc->sc_clock_args, gfrtc_delay);
sys/arch/virt68k/dev/gftty_mainbus.c
60
gftty_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/virt68k/dev/gftty_mainbus.c
62
struct gftty_softc * const sc = device_private(self);
sys/arch/virt68k/dev/gftty_mainbus.c
66
sc->sc_dev = self;
sys/arch/virt68k/dev/gftty_mainbus.c
87
aprint_error_dev(self,
sys/arch/virt68k/dev/gftty_mainbus.c
91
aprint_normal_dev(self, "interrupting at %s\n",
sys/arch/virt68k/dev/mainbus.c
101
device_t self = v;
sys/arch/virt68k/dev/mainbus.c
111
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/virt68k/dev/mainbus.c
125
device_t self = v;
sys/arch/virt68k/dev/mainbus.c
145
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/virt68k/dev/mainbus.c
154
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/virt68k/dev/mainbus.c
164
mainbus_attach_virtio(device_t self, struct mainbus_attach_args *ma)
sys/arch/virt68k/dev/mainbus.c
174
aprint_error_dev(self,
sys/arch/virt68k/dev/mainbus.c
182
config_found(self, ma, mainbus_print, CFARGS_NONE);
sys/arch/virt68k/dev/mainbus.c
193
device_t self = v;
sys/arch/virt68k/dev/mainbus.c
211
mainbus_attach_virtio(self, &ma);
sys/arch/virt68k/dev/mainbus.c
220
config_found(self, &ma, mainbus_print, CFARGS_NONE);
sys/arch/virt68k/dev/mainbus.c
225
aprint_error_dev(self,
sys/arch/virt68k/dev/mainbus.c
234
mainbus_attach(device_t parent __unused, device_t self, void *args __unused)
sys/arch/virt68k/dev/mainbus.c
240
bootinfo_enumerate(mainbus_attach_gfpic, self);
sys/arch/virt68k/dev/mainbus.c
243
bootinfo_enumerate(mainbus_attach_gfother, self);
sys/arch/virt68k/dev/mainbus.c
246
bootinfo_enumerate(mainbus_attach_other, self);
sys/arch/virt68k/dev/virtctrl.c
102
sc->sc_dev = self;
sys/arch/virt68k/dev/virtctrl.c
114
aprint_normal_dev(self, "features=0x%08x\n", feat);
sys/arch/virt68k/dev/virtctrl.c
96
virtctrl_attach(device_t parent, device_t self, void *aux)
sys/arch/virt68k/dev/virtctrl.c
98
struct virtctrl_softc * const sc = device_private(self);
sys/arch/virt68k/dev/virtio_mainbus.c
107
vsc->sc_dev = self;
sys/arch/virt68k/dev/virtio_mainbus.c
111
virtio_mainbus_rescan(self, NULL, NULL);
sys/arch/virt68k/dev/virtio_mainbus.c
117
virtio_mainbus_rescan(device_t self, const char *ifattr, const int *locs)
sys/arch/virt68k/dev/virtio_mainbus.c
119
struct virtio_mainbus_softc *sc = device_private(self);
sys/arch/virt68k/dev/virtio_mainbus.c
130
config_found(self, &va, NULL, CFARGS_NONE);
sys/arch/virt68k/dev/virtio_mainbus.c
139
virtio_mainbus_detach(device_t self, int flags)
sys/arch/virt68k/dev/virtio_mainbus.c
141
struct virtio_mainbus_softc *sc = device_private(self);
sys/arch/virt68k/dev/virtio_mainbus.c
83
virtio_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/virt68k/dev/virtio_mainbus.c
85
struct virtio_mainbus_softc *sc = device_private(self);
sys/arch/x68k/dev/bmd.c
177
bmd_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/bmd.c
179
struct bmd_softc *sc = device_private(self);
sys/arch/x68k/dev/bmd.c
190
aprint_error_dev(self, "can't map I/O space\n");
sys/arch/x68k/dev/bmd.c
202
aprint_error_dev(self, "disabled by DIP-SW 8\n");
sys/arch/x68k/dev/bmd.c
218
aprint_error_dev(self, "can't map bank area: 0x%x\n",
sys/arch/x68k/dev/bmd.c
223
aprint_normal_dev(self, "%d MB, 0x%x(64KB) x %d pages\n",
sys/arch/x68k/dev/bmd.c
226
disk_init(&sc->sc_dkdev, device_xname(self), &bmddkdriver);
sys/arch/x68k/dev/com_intio.c
103
sc->sc_dev = self;
sys/arch/x68k/dev/com_intio.c
127
if (intio_intr_establish(ia->ia_intr, device_xname(self),
sys/arch/x68k/dev/com_intio.c
129
aprint_error_dev(self, "can't establish interrupt handler\n");
sys/arch/x68k/dev/com_intio.c
93
com_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/com_intio.c
95
struct com_softc *sc = device_private(self);
sys/arch/x68k/dev/fd.c
459
fdcattach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/fd.c
461
struct fdc_softc *fdc = device_private(self);
sys/arch/x68k/dev/fd.c
474
aprint_error_dev(self, "unable to map I/O space\n");
sys/arch/x68k/dev/fd.c
498
aprint_error_dev(self, "can't set up intio DMA map\n");
sys/arch/x68k/dev/fd.c
512
aprint_normal_dev(self, "uPD72065 FDC\n");
sys/arch/x68k/dev/fd.c
519
(void)config_found(self, (void *)&fa, fdprint, CFARGS_NONE);
sys/arch/x68k/dev/fd.c
626
fdattach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/fd.c
629
struct fd_softc *fd = device_private(self);
sys/arch/x68k/dev/fd.c
639
fd->sc_dev = self;
sys/arch/x68k/dev/grf_machdep.c
100
grfbussearch(device_t self, cfdata_t match, const int *ldesc, void *aux)
sys/arch/x68k/dev/grf_machdep.c
103
config_found(self, &match->cf_loc[GRFBCF_ADDR], grfbusprint, CFARGS_NONE);
sys/arch/x68k/dev/grf_machdep.c
134
grfattach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/grf_machdep.c
140
cf = device_cfdata(self);
sys/arch/x68k/dev/grf_machdep.c
143
gp = device_private(self);
sys/arch/x68k/dev/grf_machdep.c
144
gp->g_device = self;
sys/arch/x68k/dev/grf_machdep.c
159
config_found(self, gp, grfprint, CFARGS_NONE);
sys/arch/x68k/dev/grf_machdep.c
91
grfbusattach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/grf_machdep.c
95
config_search(self, NULL,
sys/arch/x68k/dev/if_ne_intio.c
132
ne_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/if_ne_intio.c
134
struct ne_intio_softc *sc = device_private(self);
sys/arch/x68k/dev/if_ne_intio.c
144
dsc->sc_dev = self;
sys/arch/x68k/dev/if_ne_intio.c
150
aprint_error_dev(self, "can't map I/O space\n");
sys/arch/x68k/dev/if_ne_intio.c
157
aprint_error_dev(self, "can't subregion I/O space\n");
sys/arch/x68k/dev/if_ne_intio.c
187
aprint_error_dev(self, "where did the card go?!\n");
sys/arch/x68k/dev/if_ne_intio.c
191
aprint_normal_dev(self, "%s Ethernet\n", typestr);
sys/arch/x68k/dev/if_ne_intio.c
204
aprint_error_dev(self,
sys/arch/x68k/dev/if_ne_neptune.c
115
ne_neptune_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/if_ne_neptune.c
117
struct ne_neptune_softc *nsc = device_private(self);
sys/arch/x68k/dev/if_ne_neptune.c
127
dsc->sc_dev = self;
sys/arch/x68k/dev/if_ne_neptune.c
132
aprint_error_dev(self, "can't map i/o space\n");
sys/arch/x68k/dev/if_ne_neptune.c
138
aprint_error_dev(self, "can't subregion i/o space\n");
sys/arch/x68k/dev/if_ne_neptune.c
167
aprint_error_dev(self, "where did the card go?!\n");
sys/arch/x68k/dev/if_ne_neptune.c
171
aprint_normal_dev(self, "%s Ethernet\n", typestr);
sys/arch/x68k/dev/if_ne_neptune.c
184
aprint_error_dev(self,
sys/arch/x68k/dev/intio.c
152
intio_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/intio.c
154
struct intio_softc *sc = device_private(self);
sys/arch/x68k/dev/intio.c
168
sc->sc_bst->x68k_bus_device = self;
sys/arch/x68k/dev/intio.c
177
config_search(self, &ia,
sys/arch/x68k/dev/intio_dmac.c
108
dmac_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/intio_dmac.c
110
struct dmac_softc *sc = device_private(self);
sys/arch/x68k/dev/intio_dmac.c
115
sc->sc_dev = self;
sys/arch/x68k/dev/intio_dmac.c
126
intio->sc_dmac = self;
sys/arch/x68k/dev/intio_dmac.c
132
aprint_normal_dev(self, "4 channels available.\n");
sys/arch/x68k/dev/intio_dmac.c
162
dmac_alloc_channel(device_t self, int ch, const char *name,
sys/arch/x68k/dev/intio_dmac.c
167
struct intio_softc *intio = device_private(self);
sys/arch/x68k/dev/intio_dmac.c
245
dmac_free_channel(device_t self, int ch, void *channel)
sys/arch/x68k/dev/intio_dmac.c
247
struct intio_softc *intio = device_private(self);
sys/arch/x68k/dev/intio_dmac.c
444
dmac_program_arraychain(device_t self, struct dmac_dma_xfer *xf,
sys/arch/x68k/dev/ite.c
208
iteattach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/ite.c
214
ip = device_private(self);
sys/arch/x68k/dev/ite.c
215
ip->device = self;
sys/arch/x68k/dev/ite.c
228
iteinit(device_unit(self)); /* XXX */
sys/arch/x68k/dev/kbd.c
132
kbdattach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/kbd.c
134
struct kbd_softc *sc = device_private(self);
sys/arch/x68k/dev/kbd.c
138
sc->sc_dev = self;
sys/arch/x68k/dev/kbd.c
146
rnd_attach_source(&sc->sc_rndsource, device_xname(self),
sys/arch/x68k/dev/mfp.c
109
config_search(self, NULL,
sys/arch/x68k/dev/mfp.c
90
mfp_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/mfp.c
92
struct mfp_softc *sc = device_private(self);
sys/arch/x68k/dev/mha.c
306
mhaattach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/mha.c
308
struct mha_softc *sc = device_private(self);
sys/arch/x68k/dev/mha.c
312
sc->sc_dev = self;
sys/arch/x68k/dev/mha.c
340
sc->sc_adapter.adapt_dev = self;
sys/arch/x68k/dev/mha.c
390
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/arch/x68k/dev/ms.c
213
ms_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/ms.c
215
struct ms_softc *ms = device_private(self);
sys/arch/x68k/dev/ms.c
220
ms->ms_dev = self;
sys/arch/x68k/dev/neptune.c
113
sc->sc_bst->x68k_bus_device = self;
sys/arch/x68k/dev/neptune.c
120
cf = config_search(self, &na,
sys/arch/x68k/dev/neptune.c
124
config_attach(self, cf, &na, neptune_print, CFARGS_NONE);
sys/arch/x68k/dev/neptune.c
96
neptune_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/neptune.c
98
struct neptune_softc *sc = device_private(self);
sys/arch/x68k/dev/opm.c
111
if (device_unit(self) == 0)
sys/arch/x68k/dev/opm.c
86
opm_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/opm.c
88
struct opm_softc *sc = device_private(self);
sys/arch/x68k/dev/par.c
167
parattach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/par.c
169
struct par_softc *sc = device_private(self);
sys/arch/x68k/dev/par.c
175
sc->sc_dev = self;
sys/arch/x68k/dev/powsw.c
125
powsw_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/powsw.c
127
struct powsw_softc *sc = device_private(self);
sys/arch/x68k/dev/powsw.c
133
unit = device_unit(self);
sys/arch/x68k/dev/powsw.c
134
xname = device_xname(self);
sys/arch/x68k/dev/powsw.c
138
sc->sc_dev = self;
sys/arch/x68k/dev/rtclock.c
107
sc->sc_todr.todr_dev = self;
sys/arch/x68k/dev/rtclock.c
88
rtc_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/rtclock.c
90
struct rtc_softc *sc = device_private(self);
sys/arch/x68k/dev/scsirom.c
131
scsirom_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/scsirom.c
133
struct scsirom_softc *sc = device_private(self);
sys/arch/x68k/dev/scsirom.c
159
cf = config_search(self, ia,
sys/arch/x68k/dev/scsirom.c
162
config_attach(self, cf, ia, NULL, CFARGS_NONE);
sys/arch/x68k/dev/scsirom.c
164
aprint_normal_dev(self, "no matching device; ignored.\n");
sys/arch/x68k/dev/slhci_intio.c
117
slhci_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/slhci_intio.c
119
struct slhci_intio_softc *isc = device_private(self);
sys/arch/x68k/dev/slhci_intio.c
127
sc->sc_dev = self;
sys/arch/x68k/dev/slhci_intio.c
136
device_xname(self));
sys/arch/x68k/dev/slhci_intio.c
145
device_xname(self));
sys/arch/x68k/dev/slhci_intio.c
156
device_xname(self));
sys/arch/x68k/dev/spc.c
86
spc_intio_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/spc.c
88
struct spc_softc *sc = device_private(self);
sys/arch/x68k/dev/spc.c
93
sc->sc_dev = self;
sys/arch/x68k/dev/sram.c
116
sramattach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/sram.c
118
struct sram_softc *sc = device_private(self);
sys/arch/x68k/dev/vs.c
194
vs_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/vs.c
201
sc = device_private(self);
sys/arch/x68k/dev/vs.c
202
sc->sc_dev = self;
sys/arch/x68k/dev/vs.c
233
aprint_normal_dev(self, "MSM6258V ADPCM voice synthesizer\n");
sys/arch/x68k/dev/xel.c
185
xel_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/xel.c
187
struct xel_softc *sc = device_private(self);
sys/arch/x68k/dev/xel.c
189
cfdata_t cf = device_cfdata(self);
sys/arch/x68k/dev/zs.c
173
zs_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/dev/zs.c
175
struct zsc_softc *zsc = device_private(self);
sys/arch/x68k/dev/zs.c
183
zsc->zsc_dev = self;
sys/arch/x68k/dev/zs.c
253
child = config_found(self, (void *)&zsc_args, zs_print,
sys/arch/x68k/x68k/clock.c
85
clock_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/x68k/mainbus.c
61
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/x68k/x68k/mainbus.c
68
config_found(self, __UNCONST("intio") , NULL, CFARGS_NONE);
sys/arch/x68k/x68k/mainbus.c
69
config_found(self, __UNCONST("grfbus") , NULL, CFARGS_NONE);
sys/arch/x86/acpi/acpi_cpu_md.c
137
acpicpu_md_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/isa/clock.c
528
sysbeepattach(device_t parent, device_t self, void *aux)
sys/arch/x86/isa/clock.c
536
if (!pmf_device_register(self, NULL, NULL))
sys/arch/x86/isa/clock.c
537
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/isa/clock.c
541
sysbeepdetach(device_t self, int flags)
sys/arch/x86/isa/clock.c
543
pmf_device_deregister(self);
sys/arch/x86/isa/isa_machdep.c
262
isa_attach_hook(device_t parent, device_t self, struct isabus_attach_args *iba)
sys/arch/x86/isa/isa_machdep.c
284
isa_detach_hook(isa_chipset_tag_t ic, device_t self)
sys/arch/x86/pci/aapic.c
41
aapic_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/amdnb_misc.c
123
amdnb_misc_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/amdnb_misc.c
125
struct amdnb_misc_softc *sc = device_private(self);
sys/arch/x86/pci/amdnb_misc.c
133
if (!pmf_device_register(self, NULL, NULL))
sys/arch/x86/pci/amdnb_misc.c
134
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/pci/amdnb_misc.c
136
config_search(self, &sc->sc_pa,
sys/arch/x86/pci/amdnb_misc.c
143
amdnb_misc_detach(device_t self, int flags)
sys/arch/x86/pci/amdnb_misc.c
147
rv = config_detach_children(self, flags);
sys/arch/x86/pci/amdnb_misc.c
151
pmf_device_deregister(self);
sys/arch/x86/pci/amdnb_misc.c
156
amdnb_misc_rescan(device_t self, const char *ifattr, const int *locators)
sys/arch/x86/pci/amdnb_misc.c
158
struct amdnb_misc_softc *sc = device_private(self);
sys/arch/x86/pci/amdnb_misc.c
160
config_search(self, &sc->sc_pa,
sys/arch/x86/pci/amdnb_misc.c
167
amdnb_misc_childdet(device_t self, device_t child)
sys/arch/x86/pci/amdpcib.c
69
amdpcib_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/amdpcib.c
73
pcibattach(parent, self, aux);
sys/arch/x86/pci/amdpcib.c
75
config_search(self, pa,
sys/arch/x86/pci/amdpcib_hpet.c
108
hpet_attach_subr(self);
sys/arch/x86/pci/amdpcib_hpet.c
112
amdpcib_hpet_detach(device_t self, int flags)
sys/arch/x86/pci/amdpcib_hpet.c
114
struct hpet_softc *sc = device_private(self);
sys/arch/x86/pci/amdpcib_hpet.c
120
rv = hpet_detach(self, flags);
sys/arch/x86/pci/amdpcib_hpet.c
81
amdpcib_hpet_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/amdpcib_hpet.c
83
struct hpet_softc *sc = device_private(self);
sys/arch/x86/pci/amdsmn.c
163
amdsmn_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/amdsmn.c
165
struct amdsmn_softc *sc = device_private(self);
sys/arch/x86/pci/amdsmn.c
183
pmf_device_register(self, NULL, NULL);
sys/arch/x86/pci/amdsmn.c
184
amdsmn_rescan(self, NULL, NULL);
sys/arch/x86/pci/amdsmn.c
188
amdsmn_rescan(device_t self, const char *ifattr, const int *locators)
sys/arch/x86/pci/amdsmn.c
190
struct amdsmn_softc *sc = device_private(self);
sys/arch/x86/pci/amdsmn.c
192
config_search(self, &sc->pa,
sys/arch/x86/pci/amdsmn.c
199
amdsmn_detach(device_t self, int flags)
sys/arch/x86/pci/amdsmn.c
201
struct amdsmn_softc *sc = device_private(self);
sys/arch/x86/pci/amdsmn.c
203
pmf_device_deregister(self);
sys/arch/x86/pci/amdsmn.c
206
aprint_normal_dev(self,"detach!\n");
sys/arch/x86/pci/amdtemp.c
216
amdtemp_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/amdtemp.c
218
struct amdtemp_softc *sc = device_private(self);
sys/arch/x86/pci/amdtemp.c
267
aprint_debug_dev(self, "Workaround enabled\n");
sys/arch/x86/pci/amdtemp.c
275
amdtemp_k8_setup_sensors(sc, device_unit(self));
sys/arch/x86/pci/amdtemp.c
283
amdtemp_family10_setup_sensors(sc, device_unit(self));
sys/arch/x86/pci/amdtemp.c
298
sc->sc_sme->sme_name = device_xname(self);
sys/arch/x86/pci/amdtemp.c
317
aprint_error_dev(self, "unable to register with sysmon "
sys/arch/x86/pci/amdtemp.c
322
(void)pmf_device_register(self, NULL, NULL);
sys/arch/x86/pci/amdtemp.c
339
amdtemp_detach(device_t self, int flags)
sys/arch/x86/pci/amdtemp.c
341
struct amdtemp_softc *sc = device_private(self);
sys/arch/x86/pci/amdtemp.c
343
pmf_device_deregister(self);
sys/arch/x86/pci/amdzentemp.c
162
amdzentemp_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/amdzentemp.c
164
struct amdzentemp_softc *sc = device_private(self);
sys/arch/x86/pci/amdzentemp.c
170
sc->sc_dev = self;
sys/arch/x86/pci/amdzentemp.c
202
sc->sc_sme->sme_name = device_xname(self);
sys/arch/x86/pci/amdzentemp.c
221
aprint_error_dev(self, "unable to register with sysmon "
sys/arch/x86/pci/amdzentemp.c
226
(void)pmf_device_register(self, NULL, NULL);
sys/arch/x86/pci/amdzentemp.c
241
amdzentemp_detach(device_t self, int flags)
sys/arch/x86/pci/amdzentemp.c
243
struct amdzentemp_softc *sc = device_private(self);
sys/arch/x86/pci/amdzentemp.c
245
pmf_device_deregister(self);
sys/arch/x86/pci/dwiic_pci.c
213
pci_dwiic_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/dwiic_pci.c
215
struct pci_dwiic_softc *sc = device_private(self);
sys/arch/x86/pci/dwiic_pci.c
224
sc->sc_dwiic.sc_dev = self;
sys/arch/x86/pci/dwiic_pci.c
251
aprint_error_dev(self, "can't map interrupt\n");
sys/arch/x86/pci/dwiic_pci.c
260
aprint_error_dev(self, "couldn't establish interrupt");
sys/arch/x86/pci/dwiic_pci.c
266
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/arch/x86/pci/dwiic_pci.c
277
iicbus_attach(self, &sc->sc_dwiic.sc_i2c_tag);
sys/arch/x86/pci/dwiic_pci.c
279
pmf_device_register(self, dwiic_suspend, dwiic_resume);
sys/arch/x86/pci/fwhrng.c
117
fwhrng_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/fwhrng.c
123
sc = device_private(self);
sys/arch/x86/pci/fwhrng.c
124
sc->sc_dev = self;
sys/arch/x86/pci/fwhrng.c
133
aprint_error_dev(self, "unable to map registers\n");
sys/arch/x86/pci/fwhrng.c
143
aprint_error_dev(self, "unable to enable\n");
sys/arch/x86/pci/fwhrng.c
205
fwhrng_detach(device_t self, int flags)
sys/arch/x86/pci/fwhrng.c
210
sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
1060
lpcib_fwh_configure(device_t self)
sys/arch/x86/pci/ichlpcib.c
1065
sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
1081
sc->sc_fwhbus = config_found(self, NULL, NULL,
sys/arch/x86/pci/ichlpcib.c
314
lpcibattach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/ichlpcib.c
317
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
332
pcibattach(parent, self, aux);
sys/arch/x86/pci/ichlpcib.c
349
aprint_error_dev(self,
sys/arch/x86/pci/ichlpcib.c
356
aprint_error_dev(self, "can't map TCO space\n");
sys/arch/x86/pci/ichlpcib.c
373
aprint_error_dev(self, "RCBA is not enabled\n");
sys/arch/x86/pci/ichlpcib.c
380
aprint_error_dev(self, "RCBA could not be mapped\n");
sys/arch/x86/pci/ichlpcib.c
386
pmtimer_configure(self);
sys/arch/x86/pci/ichlpcib.c
389
tcotimer_configure(self);
sys/arch/x86/pci/ichlpcib.c
392
speedstep_configure(self);
sys/arch/x86/pci/ichlpcib.c
395
lpcib_hpet_configure(self);
sys/arch/x86/pci/ichlpcib.c
399
lpcib_gpio_configure(self);
sys/arch/x86/pci/ichlpcib.c
403
lpcib_fwh_configure(self);
sys/arch/x86/pci/ichlpcib.c
407
if (!pmf_device_register1(self, lpcib_suspend, lpcib_resume,
sys/arch/x86/pci/ichlpcib.c
409
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/pci/ichlpcib.c
413
lpcibchilddet(device_t self, device_t child)
sys/arch/x86/pci/ichlpcib.c
415
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
436
pcibchilddet(self, child);
sys/arch/x86/pci/ichlpcib.c
474
lpcibrescan(device_t self, const char *ifattr, const int *locators)
sys/arch/x86/pci/ichlpcib.c
476
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
479
tcotimer_configure(self);
sys/arch/x86/pci/ichlpcib.c
483
lpcib_fwh_configure(self);
sys/arch/x86/pci/ichlpcib.c
487
lpcib_hpet_configure(self);
sys/arch/x86/pci/ichlpcib.c
491
lpcib_gpio_configure(self);
sys/arch/x86/pci/ichlpcib.c
494
return pcibrescan(self, ifattr, locators);
sys/arch/x86/pci/ichlpcib.c
498
lpcibdetach(device_t self, int flags)
sys/arch/x86/pci/ichlpcib.c
500
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
503
error = config_detach_children(self, flags);
sys/arch/x86/pci/ichlpcib.c
507
pmf_device_deregister(self);
sys/arch/x86/pci/ichlpcib.c
510
lpcib_gpio_unconfigure(self);
sys/arch/x86/pci/ichlpcib.c
514
speedstep_unconfigure(self);
sys/arch/x86/pci/ichlpcib.c
516
pmtimer_unconfigure(self, flags);
sys/arch/x86/pci/ichlpcib.c
523
error = pcibdetach(self, flags);
sys/arch/x86/pci/ichlpcib.c
594
pmtimer_configure(device_t self)
sys/arch/x86/pci/ichlpcib.c
596
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
613
sc->sc_pmtimer = acpipmtimer_attach(self, sc->sc_pmt, sc->sc_pmh,
sys/arch/x86/pci/ichlpcib.c
618
pmtimer_unconfigure(device_t self, int flags)
sys/arch/x86/pci/ichlpcib.c
620
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
636
tcotimer_configure(device_t self)
sys/arch/x86/pci/ichlpcib.c
638
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
653
sc->sc_tco = config_found(self, &arg, NULL,
sys/arch/x86/pci/ichlpcib.c
687
speedstep_configure(device_t self)
sys/arch/x86/pci/ichlpcib.c
689
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
723
aprint_verbose_dev(self, "SpeedStep enabled\n");
sys/arch/x86/pci/ichlpcib.c
733
speedstep_unconfigure(device_t self)
sys/arch/x86/pci/ichlpcib.c
735
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
810
lpcib_hpet_configure(device_t self)
sys/arch/x86/pci/ichlpcib.c
812
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
868
sc->sc_hpetbus = config_found(self, &arg, NULL,
sys/arch/x86/pci/ichlpcib.c
874
lpcib_gpio_configure(device_t self)
sys/arch/x86/pci/ichlpcib.c
876
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib.c
913
aprint_error_dev(self, "can't map general purpose i/o space(rv = %d)\n", rv);
sys/arch/x86/pci/ichlpcib.c
964
sc->sc_gpiobus = config_found(self, &gba, gpiobus_print,
sys/arch/x86/pci/ichlpcib.c
969
lpcib_gpio_unconfigure(device_t self)
sys/arch/x86/pci/ichlpcib.c
971
struct lpcib_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib_hpet.c
103
rv = hpet_detach(self, flags);
sys/arch/x86/pci/ichlpcib_hpet.c
71
lpcib_hpet_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/ichlpcib_hpet.c
73
struct hpet_softc *sc = device_private(self);
sys/arch/x86/pci/ichlpcib_hpet.c
91
hpet_attach_subr(self);
sys/arch/x86/pci/ichlpcib_hpet.c
95
lpcib_hpet_detach(device_t self, int flags)
sys/arch/x86/pci/ichlpcib_hpet.c
97
struct hpet_softc *sc = device_private(self);
sys/arch/x86/pci/imcsmb/imc.c
205
imc_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/imcsmb/imc.c
207
struct imc_softc *sc = device_private(self);
sys/arch/x86/pci/imcsmb/imc.c
211
sc->sc_dev = self;
sys/arch/x86/pci/imcsmb/imc.c
219
aprint_normal_dev(self, "%s\n",
sys/arch/x86/pci/imcsmb/imc.c
225
if (!pmf_device_register(self, NULL, NULL))
sys/arch/x86/pci/imcsmb/imc.c
226
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/pci/imcsmb/imc.c
228
imc_rescan(self, NULL, NULL);
sys/arch/x86/pci/imcsmb/imc.c
234
imc_rescan(device_t self, const char *ifattr, const int *locs)
sys/arch/x86/pci/imcsmb/imc.c
236
struct imc_softc *sc = device_private(self);
sys/arch/x86/pci/imcsmb/imc.c
249
config_found(self, &imca, NULL, CFARGS_NONE);
sys/arch/x86/pci/imcsmb/imc.c
260
imc_detach(device_t self, int flags)
sys/arch/x86/pci/imcsmb/imc.c
264
error = config_detach_children(self, flags);
sys/arch/x86/pci/imcsmb/imc.c
268
pmf_device_deregister(self);
sys/arch/x86/pci/imcsmb/imc.c
303
imc_chdet(device_t self, device_t child)
sys/arch/x86/pci/imcsmb/imc.c
305
struct imc_softc *sc = device_private(self);
sys/arch/x86/pci/imcsmb/imcsmb.c
120
imcsmb_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/imcsmb/imcsmb.c
122
struct imcsmb_softc *sc = device_private(self);
sys/arch/x86/pci/imcsmb/imcsmb.c
129
sc->sc_dev = self;
sys/arch/x86/pci/imcsmb/imcsmb.c
134
if (!pmf_device_register(self, NULL, NULL))
sys/arch/x86/pci/imcsmb/imcsmb.c
135
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/pci/imcsmb/imcsmb.c
137
imcsmb_rescan(self, NULL, NULL);
sys/arch/x86/pci/imcsmb/imcsmb.c
141
imcsmb_rescan(device_t self, const char *ifattr, const int *locs)
sys/arch/x86/pci/imcsmb/imcsmb.c
143
struct imcsmb_softc *sc = device_private(self);
sys/arch/x86/pci/imcsmb/imcsmb.c
155
sc->sc_smbus = iicbus_attach(self, &sc->sc_i2c_tag);
sys/arch/x86/pci/imcsmb/imcsmb.c
158
aprint_normal_dev(self, "no child found\n");
sys/arch/x86/pci/imcsmb/imcsmb.c
166
imcsmb_chdet(device_t self, device_t child)
sys/arch/x86/pci/imcsmb/imcsmb.c
168
struct imcsmb_softc *sc = device_private(self);
sys/arch/x86/pci/imcsmb/imcsmb.c
180
imcsmb_detach(device_t self, int flags)
sys/arch/x86/pci/imcsmb/imcsmb.c
182
struct imcsmb_softc *sc = device_private(self);
sys/arch/x86/pci/imcsmb/imcsmb.c
185
error = config_detach_children(self, flags);
sys/arch/x86/pci/imcsmb/imcsmb.c
189
pmf_device_deregister(self);
sys/arch/x86/pci/pchb.c
150
pchbattach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/pchb.c
152
struct pchb_softc *sc = device_private(self);
sys/arch/x86/pci/pchb.c
165
sc->sc_dev = self;
sys/arch/x86/pci/pchb.c
206
aprint_error_dev(self,
sys/arch/x86/pci/pchb.c
265
aprint_verbose_dev(self, "fixing "
sys/arch/x86/pci/pchb.c
283
aprint_error_dev(self, "bdnum=%x (reserved)\n",
sys/arch/x86/pci/pchb.c
287
aprint_verbose_dev(self,
sys/arch/x86/pci/pchb.c
291
aprint_verbose_dev(self,
sys/arch/x86/pci/pchb.c
308
aprint_verbose_dev(self,
sys/arch/x86/pci/pchb.c
409
if (!pmf_device_register(self, pchb_suspend, pchb_resume))
sys/arch/x86/pci/pchb.c
410
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/pci/pchb.c
420
config_found(self, &apa, agpbusprint,
sys/arch/x86/pci/pchb.c
436
config_found(self, &pba, pcibusprint,
sys/arch/x86/pci/pchb.c
442
pchbdetach(device_t self, int flags)
sys/arch/x86/pci/pchb.c
446
if ((rc = config_detach_children(self, flags)) != 0)
sys/arch/x86/pci/pchb.c
449
pmf_device_deregister(self);
sys/arch/x86/pci/pchtemp.c
170
pchtemp_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/pchtemp.c
172
struct pchtemp_softc *sc = device_private(self);
sys/arch/x86/pci/pchtemp.c
178
sc->sc_dev = self;
sys/arch/x86/pci/pchtemp.c
186
aprint_error_dev(self, "can't map I/O space\n");
sys/arch/x86/pci/pchtemp.c
209
pchtemp_detach(device_t self, int flags)
sys/arch/x86/pci/pchtemp.c
211
struct pchtemp_softc *sc = device_private(self);
sys/arch/x86/pci/pci_machdep.c
480
pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/x86/pci/pci_machdep.c
493
mpbios_pci_attach_hook(parent, self, pba);
sys/arch/x86/pci/pci_machdep.c
496
mpacpi_pci_attach_hook(parent, self, pba);
sys/arch/x86/pci/pci_machdep.c
499
acpimcfg_map_bus(self, pba->pba_pc, pba->pba_bus);
sys/arch/x86/pci/pci_machdep.c
539
aprint_verbose_dev(self,
sys/arch/x86/pci/pci_machdep.c
545
aprint_verbose_dev(self,
sys/arch/x86/pci/pci_machdep.c
554
aprint_verbose_dev(self,
sys/arch/x86/pci/pcib.c
185
pcibattach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/pcib.c
187
struct pcib_softc *sc = device_private(self);
sys/arch/x86/pci/pcib.c
199
if (!pmf_device_register(self, NULL, NULL))
sys/arch/x86/pci/pcib.c
200
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/pci/pcib.c
202
config_defer(self, pcib_callback);
sys/arch/x86/pci/pcib.c
206
pcibdetach(device_t self, int flags)
sys/arch/x86/pci/pcib.c
210
if ((rc = config_detach_children(self, flags)) != 0)
sys/arch/x86/pci/pcib.c
212
pmf_device_deregister(self);
sys/arch/x86/pci/pcib.c
217
pcibchilddet(device_t self, device_t child)
sys/arch/x86/pci/pcib.c
219
struct pcib_softc *sc = device_private(self);
sys/arch/x86/pci/pcib.c
226
pcibrescan(device_t self, const char *ifattr, const int *loc)
sys/arch/x86/pci/pcib.c
228
struct pcib_softc *sc = device_private(self);
sys/arch/x86/pci/pcib.c
246
sc->sc_isabus = isabus_attach(self, &iba);
sys/arch/x86/pci/pcib.c
252
pcib_callback(device_t self)
sys/arch/x86/pci/pcib.c
254
pcibrescan(self, "isabus", NULL);
sys/arch/x86/pci/rdcpcib.c
122
rdcpcibattach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/rdcpcib.c
124
struct rdcpcib_softc *sc = device_private(self);
sys/arch/x86/pci/rdcpcib.c
128
pcibattach(parent, self, aux);
sys/arch/x86/pci/rdcpcib.c
134
rdc_wdtimer_configure(self);
sys/arch/x86/pci/rdcpcib.c
137
if (!pmf_device_register(self, NULL, NULL))
sys/arch/x86/pci/rdcpcib.c
138
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/pci/rdcpcib.c
142
rdcpcibdetach(device_t self, int flags)
sys/arch/x86/pci/rdcpcib.c
144
struct rdcpcib_softc *sc = device_private(self);
sys/arch/x86/pci/rdcpcib.c
147
pmf_device_deregister(self);
sys/arch/x86/pci/rdcpcib.c
150
if ((rc = rdc_wdtimer_unconfigure(self, flags)) != 0)
sys/arch/x86/pci/rdcpcib.c
153
return pcibdetach(self, flags);
sys/arch/x86/pci/rdcpcib.c
202
rdc_wdtimer_configure(device_t self)
sys/arch/x86/pci/rdcpcib.c
204
struct rdcpcib_softc *sc = device_private(self);
sys/arch/x86/pci/rdcpcib.c
211
aprint_error_dev(self,
sys/arch/x86/pci/rdcpcib.c
222
sc->rdc_smw.smw_name = device_xname(self);
sys/arch/x86/pci/rdcpcib.c
229
aprint_error_dev(self, "unable to register wdt"
sys/arch/x86/pci/rdcpcib.c
236
aprint_verbose_dev(self, "watchdog timer configured.\n");
sys/arch/x86/pci/rdcpcib.c
239
aprint_error_dev(self, "watchdog fired bit set, clearing\n");
sys/arch/x86/pci/rdcpcib.c
245
rdc_wdtimer_unconfigure(device_t self, int flags)
sys/arch/x86/pci/rdcpcib.c
247
struct rdcpcib_softc *sc = device_private(self);
sys/arch/x86/pci/tco.c
114
tco_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/tco.c
116
struct tco_softc *sc = device_private(self);
sys/arch/x86/pci/tco.c
142
aprint_error_dev(self, "failed to map TCO\n");
sys/arch/x86/pci/tco.c
156
aprint_debug_dev(self, "SMI_EN=0x%08x\n", ioreg);
sys/arch/x86/pci/tco.c
163
if (tcotimer_disable_noreboot(self)) {
sys/arch/x86/pci/tco.c
167
aprint_debug_dev(self, "SMI_EN:=0x%08x\n", ioreg);
sys/arch/x86/pci/tco.c
169
aprint_debug_dev(self, "SMI_EN=0x%08x\n",
sys/arch/x86/pci/tco.c
179
sc->sc_smw.smw_name = device_xname(self);
sys/arch/x86/pci/tco.c
204
aprint_verbose_dev(self, "Min/Max interval %u/%u seconds\n",
sys/arch/x86/pci/tco.c
209
aprint_error_dev(self, "unable to register TCO timer"
sys/arch/x86/pci/tco.c
212
if (!pmf_device_register(self, tco_suspend, NULL))
sys/arch/x86/pci/tco.c
213
aprint_error_dev(self, "unable to register with pmf\n");
sys/arch/x86/pci/tco.c
219
tco_detach(device_t self, int flags)
sys/arch/x86/pci/tco.c
221
struct tco_softc *sc = device_private(self);
sys/arch/x86/pci/tco.c
238
pmf_device_deregister(self);
sys/arch/x86/pci/tco.c
244
tco_suspend(device_t self, const pmf_qual_t *quals)
sys/arch/x86/pci/tco.c
246
struct tco_softc *sc = device_private(self);
sys/arch/x86/pci/tco.c
359
tcotimer_disable_noreboot(device_t self)
sys/arch/x86/pci/tco.c
361
struct tco_softc *sc = device_private(self);
sys/arch/x86/pci/tco.c
366
error = (*sc->sc_set_noreboot)(self, false);
sys/arch/x86/pci/tco.c
403
aprint_error_dev(self, "TCO timer reboot disabled by hardware; "
sys/arch/x86/pci/tcpcib.c
192
tcpcib_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pci/tcpcib.c
194
struct tcpcib_softc *sc = device_private(self);
sys/arch/x86/pci/tcpcib.c
198
pmf_device_register(self, tcpcib_suspend, tcpcib_resume);
sys/arch/x86/pci/tcpcib.c
201
pcibattach(parent, self, aux);
sys/arch/x86/pci/tcpcib.c
205
tcpcib_rescan(self, "hpetichbus", NULL);
sys/arch/x86/pci/tcpcib.c
215
aprint_error_dev(self,
sys/arch/x86/pci/tcpcib.c
219
aprint_normal_dev(self, "watchdog");
sys/arch/x86/pci/tcpcib.c
245
sc->sc_wdt_smw.smw_name = device_xname(self);
sys/arch/x86/pci/tcpcib.c
262
tcpcib_detach(device_t self, int flags)
sys/arch/x86/pci/tcpcib.c
264
return pcibdetach(self, flags);
sys/arch/x86/pci/tcpcib.c
268
tcpcib_rescan(device_t self, const char *ifattr, const int *locators)
sys/arch/x86/pci/tcpcib.c
270
struct tcpcib_softc *sc = device_private(self);
sys/arch/x86/pci/tcpcib.c
277
config_found(self, &hpet_arg, NULL,
sys/arch/x86/pci/tcpcib.c
281
return pcibrescan(self, ifattr, locators);
sys/arch/x86/pci/tcpcib.c
285
tcpcib_childdet(device_t self, device_t child)
sys/arch/x86/pci/tcpcib.c
287
struct tcpcib_softc *sc = device_private(self);
sys/arch/x86/pci/tcpcib.c
294
pcibchilddet(self, child);
sys/arch/x86/pci/tcpcib.c
298
tcpcib_suspend(device_t self, const pmf_qual_t *qual)
sys/arch/x86/pci/tcpcib.c
300
struct tcpcib_softc *sc = device_private(self);
sys/arch/x86/pci/tcpcib.c
309
tcpcib_resume(device_t self, const pmf_qual_t *qual)
sys/arch/x86/pci/tcpcib.c
311
struct tcpcib_softc *sc = device_private(self);
sys/arch/x86/pv/pvbus.c
79
pv_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/pv/pvbus.c
89
config_found(self, &pvaa, NULL, CFARGS(.search = pv_submatch));
sys/arch/x86/x86/coretemp.c
161
coretemp_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/coretemp.c
163
struct coretemp_softc *sc = device_private(self);
sys/arch/x86/x86/coretemp.c
169
sc->sc_dev = self;
sys/arch/x86/x86/coretemp.c
181
(void)pmf_device_register(self, NULL, NULL);
sys/arch/x86/x86/coretemp.c
191
sc->sc_sme->sme_name = device_xname(self);
sys/arch/x86/x86/coretemp.c
197
if (coretemp_tjmax(self) == 0) {
sys/arch/x86/x86/coretemp.c
210
coretemp_detach(device_t self, int flags)
sys/arch/x86/x86/coretemp.c
212
struct coretemp_softc *sc = device_private(self);
sys/arch/x86/x86/coretemp.c
217
pmf_device_deregister(self);
sys/arch/x86/x86/coretemp.c
263
coretemp_tjmax(device_t self)
sys/arch/x86/x86/coretemp.c
265
struct coretemp_softc *sc = device_private(self);
sys/arch/x86/x86/cpu.c
341
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/cpu.c
343
struct cpu_softc *sc = device_private(self);
sys/arch/x86/x86/cpu.c
352
sc->sc_dev = self;
sys/arch/x86/x86/cpu.c
370
if (!pmf_device_register(self, NULL, NULL))
sys/arch/x86/x86/cpu.c
371
aprint_error_dev(self,
sys/arch/x86/x86/cpu.c
390
aprint_verbose_dev(self, "running CPU at apic %d"
sys/arch/x86/x86/cpu.c
398
aprint_error_dev(self, "unable to reset apic id\n");
sys/arch/x86/x86/cpu.c
405
ci->ci_dev = self;
sys/arch/x86/x86/cpu.c
420
aprint_error_dev(self,
sys/arch/x86/x86/cpu.c
533
if (!pmf_device_register1(self, cpu_suspend, cpu_resume, cpu_shutdown))
sys/arch/x86/x86/cpu.c
534
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/x86/cpu.c
541
aprint_verbose_dev(self,
sys/arch/x86/x86/cpu.c
558
(void)config_defer(self, cpu_defer);
sys/arch/x86/x86/cpu.c
562
cpu_defer(device_t self)
sys/arch/x86/x86/cpu.c
564
cpu_rescan(self, NULL, NULL);
sys/arch/x86/x86/cpu.c
568
cpu_rescan(device_t self, const char *ifattr, const int *locators)
sys/arch/x86/x86/cpu.c
570
struct cpu_softc *sc = device_private(self);
sys/arch/x86/x86/cpu.c
591
config_found(self, &cfaa, NULL,
sys/arch/x86/x86/cpu.c
598
config_found(self, &cfaa, NULL,
sys/arch/x86/x86/cpu.c
605
config_found(self, &cfaa, NULL,
sys/arch/x86/x86/cpu.c
612
config_found(self, &cfaa, NULL,
sys/arch/x86/x86/cpu.c
621
cpu_childdetached(device_t self, device_t child)
sys/arch/x86/x86/cpu.c
623
struct cpu_softc *sc = device_private(self);
sys/arch/x86/x86/est.c
1032
est_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/est.c
1034
struct est_softc *sc = device_private(self);
sys/arch/x86/x86/est.c
1039
sc->sc_dev = self;
sys/arch/x86/x86/est.c
1051
(void)pmf_device_register(self, NULL, NULL);
sys/arch/x86/x86/est.c
1053
if (est_tables(self) != false)
sys/arch/x86/x86/est.c
1054
est_sysctl(self);
sys/arch/x86/x86/est.c
1058
est_detach(device_t self, int flags)
sys/arch/x86/x86/est.c
1060
struct est_softc *sc = device_private(self);
sys/arch/x86/x86/est.c
1072
pmf_device_deregister(self);
sys/arch/x86/x86/est.c
1115
est_tables(device_t self)
sys/arch/x86/x86/est.c
1117
struct est_softc *sc = device_private(self);
sys/arch/x86/x86/est.c
1137
aprint_debug_dev(self, "strange msr value 0x%"PRIx64"\n", msr);
sys/arch/x86/x86/est.c
1152
aprint_debug_dev(self, "strange msr value 0x%"PRIu64"\n", msr);
sys/arch/x86/x86/est.c
1153
aprint_debug_dev(self, " crhi=%u, crlo=%u, crcur=%u\n",
sys/arch/x86/x86/est.c
1190
aprint_debug_dev(self, "idhi == idlo\n");
sys/arch/x86/x86/est.c
1195
aprint_normal_dev(self, "bus_clock = %d\n", sc->sc_bus_clock);
sys/arch/x86/x86/est.c
1196
aprint_normal_dev(self, "idlo = 0x%x\n", idlo);
sys/arch/x86/x86/est.c
1197
aprint_normal_dev(self, "lo %4d mV, %4d MHz\n",
sys/arch/x86/x86/est.c
1199
aprint_normal_dev(self, "raw %4d , %4d \n",
sys/arch/x86/x86/est.c
1201
aprint_normal_dev(self, "idhi = 0x%x\n", idhi);
sys/arch/x86/x86/est.c
1202
aprint_normal_dev(self, "hi %4d mV, %4d MHz\n",
sys/arch/x86/x86/est.c
1204
aprint_normal_dev(self, "raw %4d , %4d \n",
sys/arch/x86/x86/est.c
1206
aprint_normal_dev(self, "cur = 0x%x\n", cur);
sys/arch/x86/x86/est.c
1249
aprint_normal_dev(self, "fake entry %d: %4d mV, "
sys/arch/x86/x86/est.c
1274
aprint_debug_dev(self, "%d mV, %d (MHz): %s\n", mv,
sys/arch/x86/x86/est.c
1296
est_sysctl(device_t self)
sys/arch/x86/x86/est.c
1298
struct est_softc *sc = device_private(self);
sys/arch/x86/x86/est.c
1355
aprint_error_dev(self, "failed to initialize sysctl (err %d)\n", rv);
sys/arch/x86/x86/hyperv.c
595
hyperv_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/hyperv.c
597
struct hyperv_softc *sc = device_private(self);
sys/arch/x86/x86/hyperv.c
599
sc->sc_dev = self;
sys/arch/x86/x86/hyperv.c
607
aprint_error_dev(self, "initialize failed\n");
sys/arch/x86/x86/hyperv.c
614
(void) pmf_device_register(self, NULL, NULL);
sys/arch/x86/x86/hyperv.c
620
hyperv_detach(device_t self, int flags)
sys/arch/x86/x86/hyperv.c
622
struct hyperv_softc *sc = device_private(self);
sys/arch/x86/x86/hyperv.c
635
pmf_device_deregister(self);
sys/arch/x86/x86/ioapic.c
259
ioapic_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/ioapic.c
261
struct ioapic_softc *sc = device_private(self);
sys/arch/x86/x86/ioapic.c
267
sc->sc_dev = self;
sys/arch/x86/x86/ioapic.c
270
sc->sc_pic.pic_name = device_xname(self);
sys/arch/x86/x86/ioapic.c
398
if (!pmf_device_register(self, NULL, NULL))
sys/arch/x86/x86/ioapic.c
399
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/x86/x86/ipi.c
134
struct cpu_info *ci, *self = curcpu();
sys/arch/x86/x86/ipi.c
139
if (ci == self)
sys/arch/x86/x86/mainbus.c
143
x86_cpubus_attach(device_t self)
sys/arch/x86/x86/mainbus.c
174
if ((boothowto & RB_MD2) == 0 && acpi_check(self, "acpibus"))
sys/arch/x86/x86/mainbus.c
182
mpacpi_active = mpacpi_scan_apics(self, &numcpus) != 0;
sys/arch/x86/x86/mainbus.c
187
if (mpbios_probe(self))
sys/arch/x86/x86/mainbus.c
188
mpbios_scan(self, &numcpus);
sys/arch/x86/x86/mainbus.c
199
config_found(self, &caa, mainbus_cpu_print,
sys/arch/x86/x86/mainbus.c
215
mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/mainbus.c
228
x86_cpubus_attach(self);
sys/arch/x86/x86/mainbus.c
238
xen_mainbus_attach(parent, self, aux);
sys/arch/x86/x86/mainbus.c
241
i386_mainbus_attach(parent, self, aux);
sys/arch/x86/x86/mainbus.c
243
amd64_mainbus_attach(parent, self, aux);
sys/arch/x86/x86/mainbus.c
248
mainbus_rescan(device_t self, const char *ifattr, const int *locators)
sys/arch/x86/x86/mainbus.c
251
return i386_mainbus_rescan(self, ifattr, locators);
sys/arch/x86/x86/mainbus.c
257
mainbus_childdetached(device_t self, device_t child)
sys/arch/x86/x86/mainbus.c
260
i386_mainbus_childdetached(self, child);
sys/arch/x86/x86/mp.c
105
mp_pci_childdetached(device_t self, device_t child)
sys/arch/x86/x86/mp.c
83
mp_pci_scan(device_t self, struct pcibus_attach_args *pba,
sys/arch/x86/x86/mp.c
96
mpb->mb_dev = config_found(self, pba, print,
sys/arch/x86/x86/mpacpi.c
1011
mpacpi_set_devhandle(self, pba);
sys/arch/x86/x86/mpacpi.c
1013
mpb->mb_dev = self;
sys/arch/x86/x86/mpacpi.c
444
mpacpi_scan_apics(device_t self, int *ncpup)
sys/arch/x86/x86/mpacpi.c
452
acpi_madt_walk(mpacpi_count, self);
sys/arch/x86/x86/mpacpi.c
454
acpi_madt_walk(mpacpi_config_ioapic, self);
sys/arch/x86/x86/mpacpi.c
460
acpi_madt_walk(mpacpi_config_cpu, self);
sys/arch/x86/x86/mpacpi.c
896
mpacpi_find_interrupts(void *self)
sys/arch/x86/x86/mpacpi.c
901
struct acpi_softc *acpi = self;
sys/arch/x86/x86/mpacpi.c
949
mpacpi_set_devhandle(device_t self, struct pcibus_attach_args *pba)
sys/arch/x86/x86/mpacpi.c
951
devhandle_t devhandle = device_handle(self);
sys/arch/x86/x86/mpacpi.c
965
device_set_handle(self, mpr->mpr_devhandle);
sys/arch/x86/x86/mpacpi.c
972
mpacpi_pci_attach_hook(device_t parent, device_t self,
sys/arch/x86/x86/mpbios.c
1226
mpbios_bus(const uint8_t *ent, device_t self)
sys/arch/x86/x86/mpbios.c
1277
aprint_error_dev(self, "unsupported bus type %6.6s\n",
sys/arch/x86/x86/mpbios.c
1283
mpbios_ioapic(const uint8_t *ent, device_t self)
sys/arch/x86/x86/mpbios.c
1305
config_found(self, &aaa, mp_ioapicprint,
sys/arch/x86/x86/mpbios.c
1463
mpbios_pci_attach_hook(device_t parent, device_t self,
sys/arch/x86/x86/mpbios.c
1487
mpb->mb_dev = self;
sys/arch/x86/x86/mpbios.c
289
mpbios_probe(device_t self)
sys/arch/x86/x86/mpbios.c
320
mp_fps = mpbios_search(self, ebda, 1024, &mp_fp_map);
sys/arch/x86/x86/mpbios.c
328
mp_fps = mpbios_search(self, memtop - 1024, 1024, &mp_fp_map);
sys/arch/x86/x86/mpbios.c
335
mp_fps = mpbios_search(self, BIOS_BASE, BIOS_COUNT, &mp_fp_map);
sys/arch/x86/x86/mpbios.c
346
mp_fps = mpbios_search(self, 639 * 1024, 1024 / 4, &mp_fp_map);
sys/arch/x86/x86/mpbios.c
357
aprint_verbose_dev(self,
sys/arch/x86/x86/mpbios.c
363
aprint_error_dev(self, "MP fps invalid: "
sys/arch/x86/x86/mpbios.c
380
aprint_verbose_dev(self,
sys/arch/x86/x86/mpbios.c
385
aprint_error_dev(self, "MP signature mismatch (%x vs %x)\n",
sys/arch/x86/x86/mpbios.c
391
aprint_error_dev(self,
sys/arch/x86/x86/mpbios.c
436
mpbios_search(device_t self, paddr_t start, int count,
sys/arch/x86/x86/mpbios.c
447
aprint_verbose_dev(self,
sys/arch/x86/x86/mpbios.c
592
mpbios_scan(device_t self, int *ncpup)
sys/arch/x86/x86/mpbios.c
610
aprint_normal_dev(self, "Intel MP Specification ");
sys/arch/x86/x86/mpbios.c
651
aprint_normal_dev(self, "MP default configuration %d\n",
sys/arch/x86/x86/mpbios.c
661
mpbios_dflt_conf_cpu(self);
sys/arch/x86/x86/mpbios.c
666
mpbios_dflt_conf_ioapic(self);
sys/arch/x86/x86/mpbios.c
703
mpbios_dflt_conf_bus(self, dflt_conf);
sys/arch/x86/x86/mpbios.c
704
mpbios_dflt_conf_int(self, dflt_conf, dflt_bus_irq);
sys/arch/x86/x86/mpbios.c
736
aprint_error_dev(self, "unknown entry type %x"
sys/arch/x86/x86/mpbios.c
789
mpbios_cpu(position, self);
sys/arch/x86/x86/mpbios.c
792
mpbios_bus(position, self);
sys/arch/x86/x86/mpbios.c
800
mpbios_ioapic(position, self);
sys/arch/x86/x86/mpbios.c
826
aprint_error_dev(self, "unknown entry type %x"
sys/arch/x86/x86/mpbios.c
835
aprint_verbose_dev(self, "MP WARNING: %d bytes of"
sys/arch/x86/x86/mpbios.c
852
mpbios_cpu(const uint8_t *ent, device_t self)
sys/arch/x86/x86/mpbios.c
876
config_found(self, &caa, mp_cpuprint,
sys/arch/x86/x86/mpbios.c
883
mpbios_dflt_conf_cpu(device_t self)
sys/arch/x86/x86/mpbios.c
895
mpbios_cpu((uint8_t *)&mpp, self);
sys/arch/x86/x86/mpbios.c
899
mpbios_cpu((uint8_t *)&mpp, self);
sys/arch/x86/x86/mpbios.c
903
mpbios_dflt_conf_bus(device_t self, const struct dflt_conf_entry *dflt_conf)
sys/arch/x86/x86/mpbios.c
913
mpbios_bus((u_int8_t *)&mpb, self);
sys/arch/x86/x86/mpbios.c
920
mpbios_dflt_conf_ioapic(device_t self)
sys/arch/x86/x86/mpbios.c
930
mpbios_ioapic((uint8_t *)&mpio, self);
sys/arch/x86/x86/mpbios.c
934
mpbios_dflt_conf_int(device_t self, const struct dflt_conf_entry *dflt_conf,
sys/arch/x86/x86/odcm.c
118
odcm_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/odcm.c
120
struct odcm_softc *sc = device_private(self);
sys/arch/x86/x86/odcm.c
122
sc->sc_dev = self;
sys/arch/x86/x86/odcm.c
128
if (odcm_init(self) != true) {
sys/arch/x86/x86/odcm.c
137
(void)pmf_device_register(self, NULL, NULL);
sys/arch/x86/x86/odcm.c
141
odcm_detach(device_t self, int flags)
sys/arch/x86/x86/odcm.c
143
struct odcm_softc *sc = device_private(self);
sys/arch/x86/x86/odcm.c
157
pmf_device_deregister(self);
sys/arch/x86/x86/odcm.c
192
odcm_init(device_t self)
sys/arch/x86/x86/odcm.c
194
struct odcm_softc *sc = device_private(self);
sys/arch/x86/x86/odcm.c
218
return odcm_sysctl(self);
sys/arch/x86/x86/odcm.c
222
odcm_sysctl(device_t self)
sys/arch/x86/x86/odcm.c
224
struct odcm_softc *sc = device_private(self);
sys/arch/x86/x86/powernow.c
176
powernow_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/powernow.c
178
struct powernow_softc *sc = device_private(self);
sys/arch/x86/x86/powernow.c
185
sc->sc_dev = self;
sys/arch/x86/x86/powernow.c
199
rv = powernow_k7_init(self);
sys/arch/x86/x86/powernow.c
203
rv = powernow_k8_init(self);
sys/arch/x86/x86/powernow.c
215
rv = powernow_sysctl(self);
sys/arch/x86/x86/powernow.c
227
(void)pmf_device_register(self, NULL, NULL);
sys/arch/x86/x86/powernow.c
231
powernow_detach(device_t self, int flags)
sys/arch/x86/x86/powernow.c
233
struct powernow_softc *sc = device_private(self);
sys/arch/x86/x86/powernow.c
244
pmf_device_deregister(self);
sys/arch/x86/x86/powernow.c
250
powernow_sysctl(device_t self)
sys/arch/x86/x86/powernow.c
253
struct powernow_softc *sc = device_private(self);
sys/arch/x86/x86/powernow.c
376
powernow_k7_init(device_t self)
sys/arch/x86/x86/powernow.c
378
struct powernow_softc *sc = device_private(self);
sys/arch/x86/x86/powernow.c
397
if (powernow_k7_states(self, maxfid, startvid) == 0) {
sys/arch/x86/x86/powernow.c
445
powernow_k7_states(device_t self, unsigned int fid, unsigned int vid)
sys/arch/x86/x86/powernow.c
447
struct powernow_softc *sc = device_private(self);
sys/arch/x86/x86/powernow.c
521
powernow_k7_setperf(device_t self, unsigned int freq)
sys/arch/x86/x86/powernow.c
523
struct powernow_softc *sc = device_private(self);
sys/arch/x86/x86/powernow.c
657
powernow_k8_init(device_t self)
sys/arch/x86/x86/powernow.c
659
struct powernow_softc *sc = device_private(self);
sys/arch/x86/x86/powernow.c
671
if (powernow_k8_states(self, maxfid, maxvid) == 0) {
sys/arch/x86/x86/powernow.c
719
powernow_k8_states(device_t self, unsigned int fid, unsigned int vid)
sys/arch/x86/x86/powernow.c
721
struct powernow_softc *sc = device_private(self);
sys/arch/x86/x86/powernow.c
784
powernow_k8_setperf(device_t self, unsigned int freq)
sys/arch/x86/x86/powernow.c
786
struct powernow_softc *sc = device_private(self);
sys/arch/x86/x86/via_padlock.c
524
via_padlock_attach(device_t parent, device_t self, void *opaque)
sys/arch/x86/x86/via_padlock.c
526
struct via_padlock_softc *sc = device_private(self);
sys/arch/x86/x86/via_padlock.c
528
sc->sc_dev = self;
sys/arch/x86/x86/via_padlock.c
533
pmf_device_register(self, NULL, NULL);
sys/arch/x86/x86/via_padlock.c
535
config_interrupts(self, via_padlock_attach_intr);
sys/arch/x86/x86/via_padlock.c
539
via_padlock_attach_intr(device_t self)
sys/arch/x86/x86/via_padlock.c
541
struct via_padlock_softc *sc = device_private(self);
sys/arch/x86/x86/via_padlock.c
543
aprint_normal("%s:", device_xname(self));
sys/arch/x86/x86/via_padlock.c
555
via_padlock_detach(device_t self, int flags)
sys/arch/x86/x86/via_padlock.c
557
struct via_padlock_softc *sc = device_private(self);
sys/arch/x86/x86/via_padlock.c
571
pmf_device_deregister(self);
sys/arch/x86/x86/viac7temp.c
113
sc->sc_sme->sme_name = device_xname(self);
sys/arch/x86/x86/viac7temp.c
122
(void)pmf_device_register(self, NULL, NULL);
sys/arch/x86/x86/viac7temp.c
132
viac7temp_detach(device_t self, int flags)
sys/arch/x86/x86/viac7temp.c
134
struct viac7temp_softc *sc = device_private(self);
sys/arch/x86/x86/viac7temp.c
139
pmf_device_deregister(self);
sys/arch/x86/x86/viac7temp.c
89
viac7temp_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/viac7temp.c
91
struct viac7temp_softc *sc = device_private(self);
sys/arch/x86/x86/viac7temp.c
96
sc->sc_dev = self;
sys/arch/x86/x86/vmt.c
59
vmt_attach(device_t parent, device_t self, void *aux)
sys/arch/x86/x86/vmt.c
61
struct vmt_softc *sc = device_private(self);
sys/arch/x86/x86/vmt.c
66
sc->sc_dev = self;
sys/arch/x86/x86/vmt.c
71
vmt_detach(device_t self, int flags)
sys/arch/x86/x86/vmt.c
73
struct vmt_softc *sc = device_private(self);
sys/arch/x86/x86/x86_tlb.c
330
const struct cpu_info * const self = curcpu();
sys/arch/x86/x86/x86_tlb.c
337
if (__predict_false(lci == self) ||
sys/arch/xen/x86/cpu.c
195
cpu_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/x86/cpu.c
197
struct cpu_softc *sc = device_private(self);
sys/arch/xen/x86/cpu.c
203
sc->sc_dev = self;
sys/arch/xen/x86/cpu.c
231
ci->ci_dev = self;
sys/arch/xen/x86/cpu.c
238
if (!pmf_device_register(self, NULL, NULL))
sys/arch/xen/x86/cpu.c
239
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/xen/x86/cpu.c
241
(void)config_defer(self, cpu_defer);
sys/arch/xen/x86/cpu.c
245
cpu_defer(device_t self)
sys/arch/xen/x86/cpu.c
247
cpu_rescan(self, NULL, NULL);
sys/arch/xen/x86/cpu.c
251
cpu_rescan(device_t self, const char *ifattr, const int *locators)
sys/arch/xen/x86/cpu.c
253
struct cpu_softc *sc = device_private(self);
sys/arch/xen/x86/cpu.c
265
config_found(self, &cfaa, NULL,
sys/arch/xen/x86/cpu.c
274
cpu_childdetached(device_t self, device_t child)
sys/arch/xen/x86/cpu.c
276
struct cpu_softc *sc = device_private(self);
sys/arch/xen/x86/cpu.c
307
vcpu_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/x86/cpu.c
313
cpu_attach_common(parent, self, &vcaa->vcaa_caa);
sys/arch/xen/x86/cpu.c
315
if (!pmf_device_register(self, NULL, NULL))
sys/arch/xen/x86/cpu.c
316
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/xen/x86/cpu.c
364
cpu_attach_common(device_t parent, device_t self, void *aux)
sys/arch/xen/x86/cpu.c
366
struct cpu_softc *sc = device_private(self);
sys/arch/xen/x86/cpu.c
373
sc->sc_dev = self;
sys/arch/xen/x86/cpu.c
394
ci->ci_dev = self;
sys/arch/xen/x86/cpu.c
417
aprint_error_dev(self,
sys/arch/xen/x86/cpu.c
515
aprint_verbose_dev(self,
sys/arch/xen/x86/xen_ipi.c
192
struct cpu_info *ci, *self = curcpu();
sys/arch/xen/x86/xen_ipi.c
206
if (ci == self)
sys/arch/xen/x86/xen_mainbus.c
120
xen_mainbus_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/x86/xen_mainbus.c
131
config_found(self, &mba.mba_ipmi, NULL,
sys/arch/xen/x86/xen_mainbus.c
138
config_found(self, &mba.mba_haa, xen_mainbus_print,
sys/arch/xen/x86/xen_mainbus.c
147
if (!pmf_device_register(self, NULL, NULL))
sys/arch/xen/x86/xen_mainbus.c
148
aprint_error_dev(self,
sys/arch/xen/xen/balloon.c
193
balloon_xenbus_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/xen/balloon.c
197
struct balloon_xenbus_softc *sc = balloon_sc = device_private(self);
sys/arch/xen/xen/balloon.c
200
sc->sc_dev = self;
sys/arch/xen/xen/balloon.c
221
aprint_normal_dev(self, "current reservation: %"PRIu64" KiB\n",
sys/arch/xen/xen/balloon.c
224
aprint_normal_dev(self, "min reservation: %"PRIu64" KiB\n",
sys/arch/xen/xen/balloon.c
226
aprint_normal_dev(self, "max reservation: %"PRIu64" KiB\n",
sys/arch/xen/xen/balloon.c
241
aprint_error_dev(self, "unable to watch memory/target\n");
sys/arch/xen/xen/balloon.c
248
aprint_error_dev(self, "unable to create balloon thread\n");
sys/arch/xen/xen/balloon.c
253
if (!pmf_device_register(self, NULL, NULL))
sys/arch/xen/xen/balloon.c
254
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/xen/xen/hypervisor.c
573
hypervisor_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/xen/hypervisor.c
594
aprint_error_dev(self,
sys/arch/xen/xen/hypervisor.c
622
aprint_verbose_dev(self, "features: ");
sys/arch/xen/xen/hypervisor.c
650
config_found(self, &hac.hac_vcaa, hypervisor_print,
sys/arch/xen/xen/hypervisor.c
670
if (NULL == config_found(self, &hac.hac_vcaa,
sys/arch/xen/xen/hypervisor.c
685
config_found(self, &hac.hac_xenbus, hypervisor_print,
sys/arch/xen/xen/hypervisor.c
692
config_found(self, &hac.hac_xencons, hypervisor_print,
sys/arch/xen/xen/hypervisor.c
704
self);
sys/arch/xen/xen/hypervisor.c
725
config_found(self, &hac.hac_acpi, NULL,
sys/arch/xen/xen/hypervisor.c
743
mp_pci_scan(self, &hac.hac_pba, pcibusprint);
sys/arch/xen/xen/hypervisor.c
748
mp_pci_scan(self, &hac.hac_pba, pcibusprint);
sys/arch/xen/xen/hypervisor.c
751
config_found(self, &hac.hac_pba, pcibusprint,
sys/arch/xen/xen/hypervisor.c
765
isabus_attach(self, &hac.hac_iba);
sys/arch/xen/xen/hypervisor.c
778
if (!pmf_device_register(self, hypervisor_suspend, hypervisor_resume))
sys/arch/xen/xen/hypervisor.c
779
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/xen/xen/if_xennet_xenbus.c
279
xennet_xenbus_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/xen/if_xennet_xenbus.c
281
struct xennet_xenbus_softc *sc = device_private(self);
sys/arch/xen/xen/if_xennet_xenbus.c
297
sc->sc_dev = self;
sys/arch/xen/xen/if_xennet_xenbus.c
373
aprint_error_dev(self, "failed to allocate rx memory\n");
sys/arch/xen/xen/if_xennet_xenbus.c
381
aprint_error_dev(self, "can't read mac address, err %d\n", err);
sys/arch/xen/xen/if_xennet_xenbus.c
387
aprint_error_dev(self,
sys/arch/xen/xen/if_xennet_xenbus.c
393
aprint_normal_dev(self, "MAC address %s\n",
sys/arch/xen/xen/if_xennet_xenbus.c
397
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/arch/xen/xen/if_xennet_xenbus.c
439
panic("%s: can't alloc rings", device_xname(self));
sys/arch/xen/xen/if_xennet_xenbus.c
462
if (!pmf_device_register(self, xennet_xenbus_suspend,
sys/arch/xen/xen/if_xennet_xenbus.c
464
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/xen/xen/if_xennet_xenbus.c
466
pmf_class_network_register(self, ifp);
sys/arch/xen/xen/if_xennet_xenbus.c
469
if (xennet_xenbus_resume(self, PMF_Q_NONE) == false) {
sys/arch/xen/xen/if_xennet_xenbus.c
479
xennet_xenbus_detach(device_t self, int flags)
sys/arch/xen/xen/if_xennet_xenbus.c
481
struct xennet_xenbus_softc *sc = device_private(self);
sys/arch/xen/xen/if_xennet_xenbus.c
490
DPRINTF(("%s: xennet_xenbus_detach\n", device_xname(self)));
sys/arch/xen/xen/if_xennet_xenbus.c
544
pmf_device_deregister(self);
sys/arch/xen/xen/if_xennet_xenbus.c
548
DPRINTF(("%s: xennet_xenbus_detach done\n", device_xname(self)));
sys/arch/xen/xen/pciback.c
216
pciback_pci_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/xen/pciback.c
219
struct pciback_pci_softc *sc = device_private(self);
sys/arch/xen/xen/pciback.c
228
sc->sc_dev = self;
sys/arch/xen/xen/pciback.c
251
aprint_verbose_dev(self, "%s: 0x%08jx - 0x%08jx\n",
sys/arch/xen/xen/pciback.c
266
aprint_error_dev(self, "couldn't map interrupt\n");
sys/arch/xen/xen/pciback.c
270
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/arch/xen/xen/xbd_xenbus.c
1124
xbd_diskstart(device_t self, struct buf *bp)
sys/arch/xen/xen/xbd_xenbus.c
1126
struct xbd_xenbus_softc *sc = device_private(self);
sys/arch/xen/xen/xbd_xenbus.c
280
xbd_xenbus_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/xen/xbd_xenbus.c
282
struct xbd_xenbus_softc *sc = device_private(self);
sys/arch/xen/xen/xbd_xenbus.c
287
config_pending_incr(self);
sys/arch/xen/xen/xbd_xenbus.c
290
dk_init(&sc->sc_dksc, self, DKTYPE_ESDI);
sys/arch/xen/xen/xbd_xenbus.c
291
disk_init(&sc->sc_dksc.sc_dkdev, device_xname(self), &xbddkdriver);
sys/arch/xen/xen/xbd_xenbus.c
318
aprint_error_dev(self,
sys/arch/xen/xen/xbd_xenbus.c
333
panic("%s: can't alloc ring", device_xname(self));
sys/arch/xen/xen/xbd_xenbus.c
337
NULL, device_xname(self), "map unaligned");
sys/arch/xen/xen/xbd_xenbus.c
339
NULL, device_xname(self), "map unaligned");
sys/arch/xen/xen/xbd_xenbus.c
341
NULL, device_xname(self), "queue full");
sys/arch/xen/xen/xbd_xenbus.c
343
NULL, device_xname(self), "indirect segment");
sys/arch/xen/xen/xbd_xenbus.c
350
aprint_error_dev(self, "can't alloc dma maps\n");
sys/arch/xen/xen/xbd_xenbus.c
357
aprint_error_dev(self, "can't alloc align buffer\n");
sys/arch/xen/xen/xbd_xenbus.c
362
if (xbd_xenbus_resume(self, PMF_Q_NONE) == false) {
sys/arch/xen/xen/xbd_xenbus.c
368
if (!pmf_device_register(self, xbd_xenbus_suspend, xbd_xenbus_resume))
sys/arch/xen/xen/xbd_xenbus.c
369
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/xen/xen/xencons.c
169
xencons_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/xen/xencons.c
171
struct xencons_softc *sc = device_private(self);
sys/arch/xen/xen/xencons.c
175
sc->sc_dev = self;
sys/arch/xen/xen/xencons.c
188
cn_tab->cn_dev = makedev(maj, device_unit(self));
sys/arch/xen/xen/xencons.c
190
aprint_verbose_dev(self, "console major %d, unit %d\n",
sys/arch/xen/xen/xencons.c
191
maj, device_unit(self));
sys/arch/xen/xen/xencons.c
202
xencons_resume(self, PMF_Q_NONE);
sys/arch/xen/xen/xencons.c
206
if (!pmf_device_register(self, xencons_suspend, xencons_resume))
sys/arch/xen/xen/xencons.c
207
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/xen/xen/xpci_xenbus.c
130
xpci_xenbus_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/xen/xpci_xenbus.c
132
struct xpci_xenbus_softc *sc = device_private(self);
sys/arch/xen/xen/xpci_xenbus.c
142
config_pending_incr(self);
sys/arch/xen/xen/xpci_xenbus.c
144
sc->sc_dev = self;
sys/arch/xen/xen/xpci_xenbus.c
368
pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/arch/xen/xenbus/xenbus_probe.c
104
xenbus_attach(device_t parent, device_t self, void *aux)
sys/arch/xen/xenbus/xenbus_probe.c
110
xenbus_dev = self;
sys/arch/xen/xenbus/xenbus_probe.c
112
config_pending_incr(self);
sys/arch/xen/xenbus/xenbus_probe.c
120
if (!pmf_device_register(self, xenbus_suspend, xenbus_resume))
sys/arch/xen/xenbus/xenbus_probe.c
121
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/zaurus/dev/ioexp.c
106
ioexp_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/ioexp.c
108
struct ioexp_softc *sc = device_private(self);
sys/arch/zaurus/dev/ioexp.c
111
sc->sc_dev = self;
sys/arch/zaurus/dev/lcdctl.c
105
lcdctl_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/lcdctl.c
107
struct lcdctl_softc *sc = device_private(self);
sys/arch/zaurus/dev/lcdctl.c
109
sc->sc_dev = self;
sys/arch/zaurus/dev/lcdctl.c
132
if (!pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_UP,
sys/arch/zaurus/dev/lcdctl.c
134
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/lcdctl.c
135
if (!pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_DOWN,
sys/arch/zaurus/dev/lcdctl.c
137
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/lcdctl.c
138
if (!pmf_event_register(self, PMFE_DISPLAY_ON,
sys/arch/zaurus/dev/lcdctl.c
140
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/lcdctl.c
141
if (!pmf_event_register(self, PMFE_DISPLAY_OFF,
sys/arch/zaurus/dev/lcdctl.c
143
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/scoop.c
85
scoopattach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/scoop.c
87
struct scoop_softc *sc = device_private(self);
sys/arch/zaurus/dev/scoop.c
92
sc->sc_dev = self;
sys/arch/zaurus/dev/scoop_pcic.c
70
scoop_pcic_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/scoop_pcic.c
72
struct pxapcic_softc *sc = device_private(self);
sys/arch/zaurus/dev/scoop_pcic.c
75
sc->sc_dev = self;
sys/arch/zaurus/dev/w100lcd.c
133
w100lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/w100lcd.c
135
struct w100_softc *sc = device_private(self);
sys/arch/zaurus/dev/w100lcd.c
139
sc->dev = self;
sys/arch/zaurus/dev/w100lcd.c
148
(void)config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/zaurus/dev/w100lcd.c
150
if (!pmf_device_register(self, w100lcd_suspend, w100lcd_resume))
sys/arch/zaurus/dev/w100lcd.c
151
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/zaurus/dev/wm8731_zaudio.c
207
wm8731_attach(device_t parent, device_t self, struct i2c_attach_args *ia)
sys/arch/zaurus/dev/wm8731_zaudio.c
209
struct zaudio_softc *sc = device_private(self);
sys/arch/zaurus/dev/wm8731_zaudio.c
220
aprint_error_dev(self, "codec failed to respond\n");
sys/arch/zaurus/dev/wm8731_zaudio.c
248
config_finalize_register(self, wm8731_finalize);
sys/arch/zaurus/dev/wm8731_zaudio.c
250
audio_attach_mi(&wm8731_hw_if, sc, self);
sys/arch/zaurus/dev/wm8731_zaudio.c
252
if (!pmf_device_register(self, wm8731_suspend, wm8731_resume))
sys/arch/zaurus/dev/wm8731_zaudio.c
253
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/zaurus/dev/wm8731_zaudio.c
254
if (!pmf_event_register(self, PMFE_AUDIO_VOLUME_UP,
sys/arch/zaurus/dev/wm8731_zaudio.c
256
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/wm8731_zaudio.c
257
if (!pmf_event_register(self, PMFE_AUDIO_VOLUME_DOWN,
sys/arch/zaurus/dev/wm8731_zaudio.c
259
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/wm8731_zaudio.c
260
if (!pmf_event_register(self, PMFE_AUDIO_VOLUME_TOGGLE,
sys/arch/zaurus/dev/wm8731_zaudio.c
262
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/wm8750_zaudio.c
239
wm8750_attach(device_t parent, device_t self, struct i2c_attach_args *ia)
sys/arch/zaurus/dev/wm8750_zaudio.c
241
struct zaudio_softc *sc = device_private(self);
sys/arch/zaurus/dev/wm8750_zaudio.c
252
aprint_error_dev(self, "codec failed to respond\n");
sys/arch/zaurus/dev/wm8750_zaudio.c
282
config_finalize_register(self, wm8750_finalize);
sys/arch/zaurus/dev/wm8750_zaudio.c
284
audio_attach_mi(&wm8750_hw_if, sc, self);
sys/arch/zaurus/dev/wm8750_zaudio.c
286
if (!pmf_device_register(self, wm8750_suspend, wm8750_resume))
sys/arch/zaurus/dev/wm8750_zaudio.c
287
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/zaurus/dev/wm8750_zaudio.c
288
if (!pmf_event_register(self, PMFE_AUDIO_VOLUME_UP,
sys/arch/zaurus/dev/wm8750_zaudio.c
290
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/wm8750_zaudio.c
291
if (!pmf_event_register(self, PMFE_AUDIO_VOLUME_DOWN,
sys/arch/zaurus/dev/wm8750_zaudio.c
293
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/wm8750_zaudio.c
294
if (!pmf_event_register(self, PMFE_AUDIO_VOLUME_TOGGLE,
sys/arch/zaurus/dev/wm8750_zaudio.c
296
aprint_error_dev(self, "couldn't register event handler\n");
sys/arch/zaurus/dev/zapm.c
133
zapm_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/zapm.c
135
struct zapm_softc *sc = device_private(self);
sys/arch/zaurus/dev/zapm.c
138
sc->sc_dev = self;
sys/arch/zaurus/dev/zapm.c
198
sc->sc_apmdev = config_found(self, &aaa, apmprint, CFARGS_NONE);
sys/arch/zaurus/dev/zaudio.c
117
zaudio_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/zaudio.c
119
struct zaudio_softc *sc = device_private(self);
sys/arch/zaurus/dev/zaudio.c
122
sc->sc_dev = self;
sys/arch/zaurus/dev/zaudio.c
134
aprint_error_dev(self, "unable to attach I2S\n");
sys/arch/zaurus/dev/zaudio.c
140
wm8750_attach(parent, self, ia);
sys/arch/zaurus/dev/zaudio.c
144
wm8731_attach(parent, self, ia);
sys/arch/zaurus/dev/ziic.c
103
aprint_error_dev(self, "unable to attach PXA I2C controller\n");
sys/arch/zaurus/dev/ziic.c
113
aprint_error_dev(self, "unable to establish intr\n");
sys/arch/zaurus/dev/ziic.c
88
pxaiic_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/ziic.c
90
struct pxaiic_softc *sc = device_private(self);
sys/arch/zaurus/dev/ziic.c
97
psc->sc_dev = self;
sys/arch/zaurus/dev/zkbd.c
221
zkbd_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/zkbd.c
223
struct zkbd_softc *sc = device_private(self);
sys/arch/zaurus/dev/zkbd.c
227
sc->sc_dev = self;
sys/arch/zaurus/dev/zkbd.c
339
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/zaurus/dev/zlcd.c
147
lcd_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/zlcd.c
149
struct pxa2x0_lcd_softc *sc = device_private(self);
sys/arch/zaurus/dev/zlcd.c
152
sc->dev = self;
sys/arch/zaurus/dev/zlcd.c
161
(void) config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/arch/zaurus/dev/zlcd.c
163
if (!pmf_device_register(self, lcd_suspend, lcd_resume))
sys/arch/zaurus/dev/zlcd.c
164
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/zaurus/dev/zmci.c
115
aprint_error_dev(self,
sys/arch/zaurus/dev/zmci.c
127
if (pxamci_attach_sub(self, pxa)) {
sys/arch/zaurus/dev/zmci.c
128
aprint_error_dev(self, "unable to attach MMC controller\n");
sys/arch/zaurus/dev/zmci.c
132
if (!pmf_device_register(self, NULL, NULL)) {
sys/arch/zaurus/dev/zmci.c
133
aprint_error_dev(self, "couldn't establish power handler\n");
sys/arch/zaurus/dev/zmci.c
89
pxamci_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/zmci.c
91
struct zmci_softc *sc = device_private(self);
sys/arch/zaurus/dev/zmci.c
94
sc->sc.sc_dev = self;
sys/arch/zaurus/dev/zrc.c
178
zrc_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/zrc.c
180
struct zrc_softc *sc = device_private(self);
sys/arch/zaurus/dev/zrc.c
183
sc->sc_dev = self;
sys/arch/zaurus/dev/zrc.c
202
config_finalize_register(self, zrc_finalize);
sys/arch/zaurus/dev/zrc.c
211
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/arch/zaurus/dev/zssp.c
101
sc->sc_dev = self;
sys/arch/zaurus/dev/zssp.c
147
config_search(self, NULL,
sys/arch/zaurus/dev/zssp.c
97
zssp_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/zssp.c
99
struct zssp_softc *sc = device_private(self);
sys/arch/zaurus/dev/ztp.c
159
ztp_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/ztp.c
161
struct ztp_softc *sc = device_private(self);
sys/arch/zaurus/dev/ztp.c
164
sc->sc_dev = self;
sys/arch/zaurus/dev/ztp.c
173
config_finalize_register(self, ztp_finalize);
sys/arch/zaurus/dev/ztp.c
208
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/arch/zaurus/dev/zusb.c
84
zusb_attach(device_t parent, device_t self, void *aux)
sys/arch/zaurus/dev/zusb.c
86
struct zusb_softc *sc = device_private(self);
sys/arch/zaurus/dev/zusb.c
92
sc->sc_dev = self;
sys/dev/acpi/acpi.c
1006
acpi_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/acpi/acpi.c
1008
struct acpi_softc *sc = device_private(self);
sys/dev/acpi/acpi.c
1189
acpi_rescan_capabilities(device_t self)
sys/dev/acpi/acpi.c
1191
struct acpi_softc *sc = device_private(self);
sys/dev/acpi/acpi.c
434
acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi.c
436
struct acpi_softc *sc = device_private(self);
sys/dev/acpi/acpi.c
451
aprint_error_dev(self, "X/RSDT: Not found\n");
sys/dev/acpi/acpi.c
453
aprint_verbose_dev(self,
sys/dev/acpi/acpi.c
462
sc->sc_dev = self;
sys/dev/acpi/acpi.c
481
if (pmf_device_register(self, acpi_suspend, acpi_resume) != true)
sys/dev/acpi/acpi.c
482
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/acpi.c
496
config_found(self, aa, NULL,
sys/dev/acpi/acpi.c
543
aprint_verbose_dev(self, "SCI interrupting at int %u\n",
sys/dev/acpi/acpi.c
595
aprint_normal_dev(self,
sys/dev/acpi/acpi.c
615
acpi_detach(device_t self, int flags)
sys/dev/acpi/acpi.c
617
struct acpi_softc *sc = device_private(self);
sys/dev/acpi/acpi.c
633
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/acpi/acpi.c
644
pmf_device_deregister(self);
sys/dev/acpi/acpi.c
652
acpi_childdet(device_t self, device_t child)
sys/dev/acpi/acpi.c
654
struct acpi_softc *sc = device_private(self);
sys/dev/acpi/acpi_acad.c
102
acpiacad_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_acad.c
104
struct acpiacad_softc *sc = device_private(self);
sys/dev/acpi/acpi_acad.c
114
acpiacad_init_envsys(self);
sys/dev/acpi/acpi_acad.c
116
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/dev/acpi/acpi_acad.c
120
(void)pmf_device_register(self, NULL, acpiacad_resume);
sys/dev/acpi/acpi_acad.c
130
acpiacad_detach(device_t self, int flags)
sys/dev/acpi/acpi_acad.c
132
struct acpiacad_softc *sc = device_private(self);
sys/dev/acpi/acpi_acad.c
139
pmf_device_deregister(self);
sys/dev/acpi/acpi_apm.c
117
acpiapm_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_apm.c
119
struct apm_softc *sc = device_private(self);
sys/dev/acpi/acpi_apm.c
121
sc->sc_dev = self;
sys/dev/acpi/acpi_bat.c
220
acpibat_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_bat.c
222
struct acpibat_softc *sc = device_private(self);
sys/dev/acpi/acpi_bat.c
233
cv_init(&sc->sc_condvar, device_xname(self));
sys/dev/acpi/acpi_bat.c
238
config_interrupts(self, acpibat_init_envsys);
sys/dev/acpi/acpi_bat.c
245
aprint_verbose_dev(self, "ACPI 4.0 functionality present\n");
sys/dev/acpi/acpi_bat.c
254
acpibat_detach(device_t self, int flags)
sys/dev/acpi/acpi_bat.c
256
struct acpibat_softc *sc = device_private(self);
sys/dev/acpi/acpi_bat.c
264
pmf_device_deregister(self);
sys/dev/acpi/acpi_bat.c
780
device_t self = sme->sme_cookie;
sys/dev/acpi/acpi_bat.c
785
sc = device_private(self);
sys/dev/acpi/acpi_bat.c
798
rv = AcpiOsExecute(OSL_NOTIFY_HANDLER, acpibat_update_status, self);
sys/dev/acpi/acpi_button.c
113
acpibut_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_button.c
115
struct acpibut_softc *sc = device_private(self);
sys/dev/acpi/acpi_button.c
121
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/dev/acpi/acpi_button.c
141
(void)pmf_device_register(self, NULL, NULL);
sys/dev/acpi/acpi_button.c
152
acpibut_detach(device_t self, int flags)
sys/dev/acpi/acpi_button.c
154
struct acpibut_softc *sc = device_private(self);
sys/dev/acpi/acpi_button.c
156
pmf_device_deregister(self);
sys/dev/acpi/acpi_cppc.c
138
cppc_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_cppc.c
140
struct cppc_softc * const sc = device_private(self);
sys/dev/acpi/acpi_cppc.c
152
sc->sc_dev = self;
sys/dev/acpi/acpi_cppc.c
158
aprint_error_dev(self, "failed to parse CPC package: %s\n",
sys/dev/acpi/acpi_cpu.c
130
acpicpu_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_cpu.c
132
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu.c
138
ci = acpicpu_md_attach(parent, self, aux);
sys/dev/acpi/acpi_cpu.c
144
sc->sc_dev = self;
sys/dev/acpi/acpi_cpu.c
178
aprint_verbose_dev(self, "failed to obtain CPU object\n");
sys/dev/acpi/acpi_cpu.c
190
sc->sc_node->ad_device = self;
sys/dev/acpi/acpi_cpu.c
194
acpicpu_cstate_attach(self);
sys/dev/acpi/acpi_cpu.c
196
acpicpu_pstate_attach(self);
sys/dev/acpi/acpi_cpu.c
197
acpicpu_tstate_attach(self);
sys/dev/acpi/acpi_cpu.c
199
acpicpu_debug_print(self);
sys/dev/acpi/acpi_cpu.c
200
acpicpu_evcnt_attach(self);
sys/dev/acpi/acpi_cpu.c
202
(void)config_interrupts(self, acpicpu_start);
sys/dev/acpi/acpi_cpu.c
204
(void)pmf_device_register(self, acpicpu_suspend, acpicpu_resume);
sys/dev/acpi/acpi_cpu.c
208
acpicpu_detach(device_t self, int flags)
sys/dev/acpi/acpi_cpu.c
210
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu.c
214
acpicpu_evcnt_detach(self);
sys/dev/acpi/acpi_cpu.c
217
acpicpu_cstate_detach(self);
sys/dev/acpi/acpi_cpu.c
218
acpicpu_pstate_detach(self);
sys/dev/acpi/acpi_cpu.c
219
acpicpu_tstate_detach(self);
sys/dev/acpi/acpi_cpu.c
266
acpicpu_start(device_t self)
sys/dev/acpi/acpi_cpu.c
268
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu.c
288
acpicpu_cstate_start(self);
sys/dev/acpi/acpi_cpu.c
293
acpicpu_pstate_start(self);
sys/dev/acpi/acpi_cpu.c
296
acpicpu_tstate_start(self);
sys/dev/acpi/acpi_cpu.c
298
aprint_debug_dev(self, "ACPI CPUs started\n");
sys/dev/acpi/acpi_cpu.c
325
aprint_error_dev(self, "failed to register cpufreq\n");
sys/dev/acpi/acpi_cpu.c
554
device_t self = aux;
sys/dev/acpi/acpi_cpu.c
556
sc = device_private(self);
sys/dev/acpi/acpi_cpu.c
599
acpicpu_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/acpi_cpu.c
601
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu.c
604
(void)acpicpu_cstate_suspend(self);
sys/dev/acpi/acpi_cpu.c
607
(void)acpicpu_pstate_suspend(self);
sys/dev/acpi/acpi_cpu.c
610
(void)acpicpu_tstate_suspend(self);
sys/dev/acpi/acpi_cpu.c
618
acpicpu_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/acpi_cpu.c
620
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu.c
626
(void)AcpiOsExecute(handler, acpicpu_cstate_resume, self);
sys/dev/acpi/acpi_cpu.c
629
(void)AcpiOsExecute(handler, acpicpu_pstate_resume, self);
sys/dev/acpi/acpi_cpu.c
632
(void)AcpiOsExecute(handler, acpicpu_tstate_resume, self);
sys/dev/acpi/acpi_cpu.c
638
acpicpu_evcnt_attach(device_t self)
sys/dev/acpi/acpi_cpu.c
640
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu.c
699
acpicpu_evcnt_detach(device_t self)
sys/dev/acpi/acpi_cpu.c
701
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu.c
733
acpicpu_debug_print(device_t self)
sys/dev/acpi/acpi_cpu.c
735
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu_cstate.c
112
acpicpu_cstate_detach(device_t self)
sys/dev/acpi/acpi_cpu_cstate.c
114
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu_cstate.c
125
acpicpu_cstate_start(device_t self)
sys/dev/acpi/acpi_cpu_cstate.c
127
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu_cstate.c
148
device_t self = aux;
sys/dev/acpi/acpi_cpu_cstate.c
150
sc = device_private(self);
sys/dev/acpi/acpi_cpu_cstate.c
76
acpicpu_cstate_attach(device_t self)
sys/dev/acpi/acpi_cpu_cstate.c
78
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu_pstate.c
112
aprint_debug_dev(self, "_PPC missing\n");
sys/dev/acpi/acpi_cpu_pstate.c
147
aprint_verbose_dev(self, "P-states not supported\n");
sys/dev/acpi/acpi_cpu_pstate.c
151
aprint_error_dev(self, "failed to evaluate "
sys/dev/acpi/acpi_cpu_pstate.c
157
acpicpu_pstate_detach(device_t self)
sys/dev/acpi/acpi_cpu_pstate.c
159
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu_pstate.c
176
acpicpu_pstate_start(device_t self)
sys/dev/acpi/acpi_cpu_pstate.c
178
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu_pstate.c
184
aprint_error_dev(self, "failed to start P-states\n");
sys/dev/acpi/acpi_cpu_pstate.c
191
device_t self = aux;
sys/dev/acpi/acpi_cpu_pstate.c
196
sc = device_private(self);
sys/dev/acpi/acpi_cpu_pstate.c
212
device_t self = aux;
sys/dev/acpi/acpi_cpu_pstate.c
215
sc = device_private(self);
sys/dev/acpi/acpi_cpu_pstate.c
61
acpicpu_pstate_attach(device_t self)
sys/dev/acpi/acpi_cpu_pstate.c
63
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu_tstate.c
100
aprint_debug_dev(self, "_TPC missing\n");
sys/dev/acpi/acpi_cpu_tstate.c
125
acpicpu_tstate_detach(device_t self)
sys/dev/acpi/acpi_cpu_tstate.c
127
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_cpu_tstate.c
142
acpicpu_tstate_start(device_t self)
sys/dev/acpi/acpi_cpu_tstate.c
151
device_t self = aux;
sys/dev/acpi/acpi_cpu_tstate.c
153
sc = device_private(self);
sys/dev/acpi/acpi_cpu_tstate.c
170
device_t self = aux;
sys/dev/acpi/acpi_cpu_tstate.c
174
sc = device_private(self);
sys/dev/acpi/acpi_cpu_tstate.c
57
acpicpu_tstate_attach(device_t self)
sys/dev/acpi/acpi_cpu_tstate.c
59
struct acpicpu_softc *sc = device_private(self);
sys/dev/acpi/acpi_display.c
1980
acpidisp_print_odinfo(device_t self, const struct acpidisp_odinfo *oi)
sys/dev/acpi/acpi_display.c
1987
aprint_verbose_dev(self, "connected output devices:\n");
sys/dev/acpi/acpi_display.c
1989
aprint_verbose_dev(self, " 0x%04"PRIx16, od->od_attrs.device_id);
sys/dev/acpi/acpi_display.c
2026
acpidisp_print_brctl(device_t self, const struct acpidisp_brctl *bc)
sys/dev/acpi/acpi_display.c
2030
aprint_verbose_dev(self, "brightness levels: ");
sys/dev/acpi/acpi_display.c
514
acpidisp_vga_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_display.c
516
struct acpidisp_vga_softc *asc = device_private(self);
sys/dev/acpi/acpi_display.c
524
asc->sc_dev = self;
sys/dev/acpi/acpi_display.c
533
acpidisp_vga_print_capabilities(self, asc->sc_caps);
sys/dev/acpi/acpi_display.c
546
acpidisp_print_odinfo(self, asc->sc_odinfo);
sys/dev/acpi/acpi_display.c
565
(void)pmf_device_register(self, NULL, acpidisp_vga_resume);
sys/dev/acpi/acpi_display.c
570
acpidisp_vga_detach(device_t self, int flags)
sys/dev/acpi/acpi_display.c
572
struct acpidisp_vga_softc *asc = device_private(self);
sys/dev/acpi/acpi_display.c
576
pmf_device_deregister(self);
sys/dev/acpi/acpi_display.c
586
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/acpi/acpi_display.c
601
acpidisp_vga_childdetached(device_t self, device_t child)
sys/dev/acpi/acpi_display.c
603
struct acpidisp_vga_softc *asc = device_private(self);
sys/dev/acpi/acpi_display.c
692
acpidisp_out_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_display.c
694
struct acpidisp_out_softc *osc = device_private(self);
sys/dev/acpi/acpi_display.c
702
osc->sc_dev = self;
sys/dev/acpi/acpi_display.c
709
acpidisp_out_print_capabilities(self, osc->sc_caps);
sys/dev/acpi/acpi_display.c
728
aprint_error_dev(self,
sys/dev/acpi/acpi_display.c
731
acpidisp_print_brctl(self, osc->sc_brctl);
sys/dev/acpi/acpi_display.c
742
if (!pmf_device_register(self, acpidisp_out_suspend,
sys/dev/acpi/acpi_display.c
744
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/acpi_display.c
748
acpidisp_out_detach(device_t self, int flags)
sys/dev/acpi/acpi_display.c
750
struct acpidisp_out_softc *osc = device_private(self);
sys/dev/acpi/acpi_display.c
753
pmf_device_deregister(self);
sys/dev/acpi/acpi_display.c
774
acpidisp_vga_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/acpi_display.c
776
struct acpidisp_vga_softc *asc = device_private(self);
sys/dev/acpi/acpi_display.c
786
acpidisp_out_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/acpi_display.c
788
struct acpidisp_out_softc *osc = device_private(self);
sys/dev/acpi/acpi_display.c
799
acpidisp_out_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/acpi_display.c
801
struct acpidisp_out_softc *osc = device_private(self);
sys/dev/acpi/acpi_display.c
844
acpidisp_vga_print_capabilities(device_t self, uint16_t cap)
sys/dev/acpi/acpi_display.c
846
aprint_debug_dev(self, "capabilities:%s%s%s%s%s%s\n",
sys/dev/acpi/acpi_display.c
894
acpidisp_out_print_capabilities(device_t self, uint16_t cap)
sys/dev/acpi/acpi_display.c
896
aprint_debug_dev(self, "capabilities:%s%s%s%s%s%s%s\n",
sys/dev/acpi/acpi_ec.c
296
acpiecdt_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_ec.c
309
acpiec_common_attach(parent, self, ec_handle, aa->aa_iot, cmd_reg,
sys/dev/acpi/acpi_ec.c
322
acpiec_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_ec.c
342
if (!acpiec_parse_gpe_package(self, aa->aa_node->ad_handle,
sys/dev/acpi/acpi_ec.c
346
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/acpi_ec.c
349
aprint_error_dev(self, "resource parsing failed: %s\n",
sys/dev/acpi/acpi_ec.c
355
aprint_error_dev(self, "no data register resource\n");
sys/dev/acpi/acpi_ec.c
359
aprint_error_dev(self, "no CSR register resource\n");
sys/dev/acpi/acpi_ec.c
363
acpiec_common_attach(parent, self, aa->aa_node->ad_handle,
sys/dev/acpi/acpi_ec.c
371
fail0: if (!pmf_device_register(self, NULL, NULL))
sys/dev/acpi/acpi_ec.c
372
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/acpi_ec.c
376
acpiec_common_attach(device_t parent, device_t self,
sys/dev/acpi/acpi_ec.c
381
struct acpiec_softc *sc = device_private(self);
sys/dev/acpi/acpi_ec.c
385
sc->sc_dev = self;
sys/dev/acpi/acpi_ec.c
402
aprint_error_dev(self, "unable to map data register\n");
sys/dev/acpi/acpi_ec.c
407
aprint_error_dev(self, "unable to map CSR register\n");
sys/dev/acpi/acpi_ec.c
415
aprint_error_dev(self, "unable to evaluate _GLK: %s\n",
sys/dev/acpi/acpi_ec.c
422
aprint_normal_dev(self, "using global ACPI lock\n");
sys/dev/acpi/acpi_ec.c
430
aprint_error_dev(self,
sys/dev/acpi/acpi_ec.c
439
aprint_error_dev(self, "unable to install GPE handler: %s\n",
sys/dev/acpi/acpi_ec.c
446
aprint_error_dev(self, "unable to enable GPE: %s\n",
sys/dev/acpi/acpi_ec.c
453
aprint_error_dev(self, "unable to create query kthread\n");
sys/dev/acpi/acpi_ec.c
457
ec_singleton = self;
sys/dev/acpi/acpi_ec.c
459
if (!pmf_device_register1(self, acpiec_suspend, acpiec_resume,
sys/dev/acpi/acpi_ec.c
461
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/acpi_ec.c
473
if (!pmf_device_register(self, NULL, NULL))
sys/dev/acpi/acpi_ec.c
474
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/acpi_ec.c
526
acpiec_parse_gpe_package(device_t self, ACPI_HANDLE ec_handle,
sys/dev/acpi/acpi_ec.c
535
aprint_error_dev(self, "unable to evaluate _GPE: %s\n",
sys/dev/acpi/acpi_ec.c
550
aprint_error_dev(self, "_GPE is neither integer nor package\n");
sys/dev/acpi/acpi_ec.c
556
aprint_error_dev(self,
sys/dev/acpi/acpi_ec.c
566
aprint_error_dev(self, "failed to evaluate _GPE handle\n");
sys/dev/acpi/acpi_ec.c
574
aprint_error_dev(self,
sys/dev/acpi/acpi_fan.c
102
aprint_verbose_dev(self, "ACPI 4.0 functionality present\n");
sys/dev/acpi/acpi_fan.c
106
acpifan_detach(device_t self, int flags)
sys/dev/acpi/acpi_fan.c
108
struct acpifan_softc *sc = device_private(self);
sys/dev/acpi/acpi_fan.c
112
pmf_device_deregister(self);
sys/dev/acpi/acpi_fan.c
122
acpifan_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/acpi_fan.c
124
struct acpifan_softc *sc = device_private(self);
sys/dev/acpi/acpi_fan.c
132
acpifan_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/acpi_fan.c
134
struct acpifan_softc *sc = device_private(self);
sys/dev/acpi/acpi_fan.c
142
acpifan_shutdown(device_t self, int how)
sys/dev/acpi/acpi_fan.c
144
struct acpifan_softc *sc = device_private(self);
sys/dev/acpi/acpi_fan.c
152
acpifan_sensor_init(device_t self)
sys/dev/acpi/acpi_fan.c
154
struct acpifan_softc *sc = device_private(self);
sys/dev/acpi/acpi_fan.c
162
acpifan_sensor_state(self);
sys/dev/acpi/acpi_fan.c
167
sc->sc_sme->sme_cookie = self;
sys/dev/acpi/acpi_fan.c
169
sc->sc_sme->sme_name = device_xname(self);
sys/dev/acpi/acpi_fan.c
191
device_t self;
sys/dev/acpi/acpi_fan.c
194
self = arg;
sys/dev/acpi/acpi_fan.c
195
sc = device_private(self);
sys/dev/acpi/acpi_fan.c
223
device_t self = sme->sme_cookie;
sys/dev/acpi/acpi_fan.c
225
(void)AcpiOsExecute(OSL_NOTIFY_HANDLER, acpifan_sensor_state, self);
sys/dev/acpi/acpi_fan.c
78
acpifan_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_fan.c
80
struct acpifan_softc *sc = device_private(self);
sys/dev/acpi/acpi_fan.c
86
sc->sc_dev = self;
sys/dev/acpi/acpi_fan.c
92
if (acpifan_sensor_init(self) != true)
sys/dev/acpi/acpi_fan.c
93
aprint_error_dev(self, "failed to initialize\n");
sys/dev/acpi/acpi_fan.c
96
(void)pmf_device_register1(self, acpifan_suspend,
sys/dev/acpi/acpi_ged.c
69
acpi_ged_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_ged.c
74
if (ACPI_FAILURE(acpi_event_create_int(self, handle, acpi_ged_register_event, self)))
sys/dev/acpi/acpi_ged.c
75
aprint_error_dev(self, "failed to create events\n");
sys/dev/acpi/acpi_hed.c
104
pmf_device_deregister(self);
sys/dev/acpi/acpi_hed.c
76
acpihed_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_hed.c
78
struct acpihed_softc *sc = device_private(self);
sys/dev/acpi/acpi_hed.c
84
pmf_device_register(self, NULL, NULL);
sys/dev/acpi/acpi_hed.c
86
sc->sc_dev = self;
sys/dev/acpi/acpi_hed.c
93
acpihed_detach(device_t self, int flags)
sys/dev/acpi/acpi_hed.c
95
struct acpihed_softc *sc = device_private(self);
sys/dev/acpi/acpi_hed.c
98
error = config_detach_children(self, flags);
sys/dev/acpi/acpi_lid.c
107
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/dev/acpi/acpi_lid.c
110
(void)pmf_device_register(self, NULL, NULL);
sys/dev/acpi/acpi_lid.c
116
acpilid_detach(device_t self, int flags)
sys/dev/acpi/acpi_lid.c
118
struct acpilid_softc *sc = device_private(self);
sys/dev/acpi/acpi_lid.c
120
pmf_device_deregister(self);
sys/dev/acpi/acpi_lid.c
97
acpilid_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_lid.c
99
struct acpilid_softc *sc = device_private(self);
sys/dev/acpi/acpi_mcfg.c
547
acpimcfg_map_bus(device_t self, pci_chipset_tag_t pc, int bus)
sys/dev/acpi/acpi_mcfg.c
549
struct pci_softc *sc = device_private(self);
sys/dev/acpi/acpi_mcfg.c
779
acpimcfg_configure_bus(device_t self, pci_chipset_tag_t pc, ACPI_HANDLE handle,
sys/dev/acpi/acpi_mcfg.c
887
acpimcfg_configure_bus(device_t self, pci_chipset_tag_t pc, ACPI_HANDLE handle,
sys/dev/acpi/acpi_pcc.c
103
pcc_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_pcc.c
105
struct pcc_softc * const sc = device_private(self);
sys/dev/acpi/acpi_pcc.c
124
sc->sc_dev = self;
sys/dev/acpi/acpi_pcd.c
65
acpi_pcd_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_pmtr.c
116
acpipmtr_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_pmtr.c
118
struct acpipmtr_softc *sc = device_private(self);
sys/dev/acpi/acpi_pmtr.c
123
sc->sc_dev = self;
sys/dev/acpi/acpi_pmtr.c
129
(void)pmf_device_register(self, NULL, NULL);
sys/dev/acpi/acpi_pmtr.c
132
if (acpipmtr_cap_get(self, true) != true)
sys/dev/acpi/acpi_pmtr.c
135
if (acpipmtr_sensor_init(self) != true)
sys/dev/acpi/acpi_pmtr.c
138
(void)acpipmtr_dev_print(self);
sys/dev/acpi/acpi_pmtr.c
144
aprint_verbose_dev(self,
sys/dev/acpi/acpi_pmtr.c
149
aprint_debug_dev(self, "%s hw-limits, capabilities 0x%02x\n",
sys/dev/acpi/acpi_pmtr.c
155
acpipmtr_detach(device_t self, int flags)
sys/dev/acpi/acpi_pmtr.c
157
struct acpipmtr_softc *sc = device_private(self);
sys/dev/acpi/acpi_pmtr.c
159
pmf_device_deregister(self);
sys/dev/acpi/acpi_pmtr.c
171
acpipmtr_cap_get(device_t self, bool print)
sys/dev/acpi/acpi_pmtr.c
173
struct acpipmtr_softc *sc = device_private(self);
sys/dev/acpi/acpi_pmtr.c
233
aprint_debug_dev(self, "%s, serial %s, "
sys/dev/acpi/acpi_pmtr.c
239
aprint_error_dev(self, "failed to evaluate _PMC: %s\n",
sys/dev/acpi/acpi_pmtr.c
249
acpipmtr_dev_print(device_t self)
sys/dev/acpi/acpi_pmtr.c
251
struct acpipmtr_softc *sc = device_private(self);
sys/dev/acpi/acpi_pmtr.c
282
aprint_debug_dev(self, "measured devices: ");
sys/dev/acpi/acpi_pmtr.c
304
aprint_debug_dev(self, "failed to evaluate _PMD: %s\n",
sys/dev/acpi/acpi_pmtr.c
314
acpipmtr_sensor_init(device_t self)
sys/dev/acpi/acpi_pmtr.c
316
struct acpipmtr_softc *sc = device_private(self);
sys/dev/acpi/acpi_pmtr.c
320
val = acpipmtr_sensor_get_reading(self);
sys/dev/acpi/acpi_pmtr.c
321
sc->sc_interval = acpipmtr_sensor_get_interval(self);
sys/dev/acpi/acpi_pmtr.c
324
aprint_error_dev(self, "failed to get sensor reading\n");
sys/dev/acpi/acpi_pmtr.c
330
aprint_error_dev(self, "invalid measurement unit\n");
sys/dev/acpi/acpi_pmtr.c
339
acpipmtr_sensor_type(self);
sys/dev/acpi/acpi_pmtr.c
344
sc->sc_sme->sme_cookie = self;
sys/dev/acpi/acpi_pmtr.c
346
sc->sc_sme->sme_name = device_xname(self);
sys/dev/acpi/acpi_pmtr.c
361
aprint_error_dev(self, "failed to initialize sysmon\n");
sys/dev/acpi/acpi_pmtr.c
370
acpipmtr_sensor_type(device_t self)
sys/dev/acpi/acpi_pmtr.c
372
struct acpipmtr_softc *sc = device_private(self);
sys/dev/acpi/acpi_pmtr.c
398
acpipmtr_sensor_get(device_t self, const char *path)
sys/dev/acpi/acpi_pmtr.c
400
struct acpipmtr_softc *sc = device_private(self);
sys/dev/acpi/acpi_pmtr.c
417
aprint_debug_dev(self, "failed to evaluate "
sys/dev/acpi/acpi_pmtr.c
424
acpipmtr_sensor_get_reading(device_t self)
sys/dev/acpi/acpi_pmtr.c
426
return acpipmtr_sensor_get(self, "_PMM");
sys/dev/acpi/acpi_pmtr.c
430
acpipmtr_sensor_get_interval(device_t self)
sys/dev/acpi/acpi_pmtr.c
432
return acpipmtr_sensor_get(self, "_GAI");
sys/dev/acpi/acpi_pmtr.c
438
device_t self = sme->sme_cookie;
sys/dev/acpi/acpi_pmtr.c
442
sc = device_private(self);
sys/dev/acpi/acpi_pmtr.c
447
val = acpipmtr_sensor_get_reading(self) * 1000;
sys/dev/acpi/acpi_pmtr.c
455
acpipmtr_sensor_type(self);
sys/dev/acpi/acpi_pmtr.c
462
device_t self = aux;
sys/dev/acpi/acpi_pmtr.c
465
sc = device_private(self);
sys/dev/acpi/acpi_pmtr.c
473
if (acpipmtr_cap_get(self, false) != true) {
sys/dev/acpi/acpi_pmtr.c
480
acpipmtr_sensor_type(self);
sys/dev/acpi/acpi_pmtr.c
484
val = acpipmtr_sensor_get_interval(self);
sys/dev/acpi/acpi_pmtr.c
489
aprint_debug_dev(self, "averaging interval changed "
sys/dev/acpi/acpi_pmtr.c
501
aprint_debug_dev(self, "unknown notify 0x%02x\n", evt);
sys/dev/acpi/acpi_tz.c
163
acpitz_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_tz.c
165
struct acpitz_softc *sc = device_private(self);
sys/dev/acpi/acpi_tz.c
176
acpitz_print_processor_list(self);
sys/dev/acpi/acpi_tz.c
189
aprint_debug_dev(self, "polling interval %d.%d seconds\n",
sys/dev/acpi/acpi_tz.c
199
if (acpitz_get_fanspeed(self, &sc->sc_zone.fanmin,
sys/dev/acpi/acpi_tz.c
203
acpitz_get_zone(self, 1);
sys/dev/acpi/acpi_tz.c
204
acpitz_get_status(self);
sys/dev/acpi/acpi_tz.c
206
(void)pmf_device_register(self, NULL, NULL);
sys/dev/acpi/acpi_tz.c
211
callout_setfunc(&sc->sc_callout, acpitz_tick, self);
sys/dev/acpi/acpi_tz.c
213
acpitz_init_envsys(self);
sys/dev/acpi/acpi_tz.c
219
acpitz_detach(device_t self, int flags)
sys/dev/acpi/acpi_tz.c
221
struct acpitz_softc *sc = device_private(self);
sys/dev/acpi/acpi_tz.c
230
pmf_device_deregister(self);
sys/dev/acpi/acpi_tz.c
240
acpitz_get_zone(self, 0);
sys/dev/acpi/acpi_verbose.c
194
device_t self = sc->sc_dev;
sys/dev/acpi/acpi_verbose.c
203
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
213
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
223
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
234
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
243
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
253
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
261
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
271
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
283
aprint_normal_dev(self, "[MADT] %-15s: ID %u, EID %u, "
sys/dev/acpi/acpi_verbose.c
296
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
306
aprint_normal_dev(self, "[MADT] %-15s: "
sys/dev/acpi/acpi_verbose.c
315
aprint_normal_dev(self, "[MADT] %-15s", "UNKNOWN");
sys/dev/acpi/acpi_vmgenid.c
102
acpivmgenid_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/acpi_vmgenid.c
104
struct acpivmgenid_softc *const sc = device_private(self);
sys/dev/acpi/acpi_vmgenid.c
117
sc->sc_dev = self;
sys/dev/acpi/acpi_vmgenid.c
128
aprint_error_dev(self, "failed to get ADDR: %s\n",
sys/dev/acpi/acpi_vmgenid.c
135
aprint_error_dev(self, "invalid ADDR\n");
sys/dev/acpi/acpi_vmgenid.c
143
aprint_error_dev(self, "invalid ADDR\n");
sys/dev/acpi/acpi_vmgenid.c
148
aprint_normal_dev(self, "paddr=0x%"PRIx64"\n", (uint64_t)sc->sc_paddr);
sys/dev/acpi/acpi_vmgenid.c
155
aprint_error_dev(self, "failed to map address\n");
sys/dev/acpi/acpi_vmgenid.c
162
rnd_attach_source(&sc->sc_rndsource, device_xname(self),
sys/dev/acpi/acpi_vmgenid.c
180
CTLFLAG_PERMANENT, CTLTYPE_NODE, device_xname(self),
sys/dev/acpi/acpi_vmgenid.c
185
aprint_error_dev(self, "failed to create sysctl hw.%s: %d\n",
sys/dev/acpi/acpi_vmgenid.c
186
device_xname(self), error);
sys/dev/acpi/acpi_vmgenid.c
199
aprint_error_dev(self,
sys/dev/acpi/acpi_vmgenid.c
201
device_xname(self), error);
sys/dev/acpi/acpi_vmgenid.c
215
aprint_error_dev(self,
sys/dev/acpi/acpi_vmgenid.c
217
device_xname(self), error);
sys/dev/acpi/acpi_vmgenid.c
225
acpivmgenid_detach(device_t self, int flags)
sys/dev/acpi/acpi_vmgenid.c
227
struct acpivmgenid_softc *const sc = device_private(self);
sys/dev/acpi/acpi_vmgenid.c
230
error = config_detach_children(self, flags);
sys/dev/acpi/acpi_vmgenid.c
279
const device_t self = opaque;
sys/dev/acpi/acpi_vmgenid.c
280
struct acpivmgenid_softc *const sc = device_private(self);
sys/dev/acpi/acpi_vmgenid.c
283
aprint_debug_dev(self, "unknown notify 0x%02x\n", notify);
sys/dev/acpi/acpi_wdrt.c
159
acpi_wdrt_attach(device_t parent, device_t self, void *opaque)
sys/dev/acpi/acpi_wdrt.c
161
struct acpi_wdrt_softc *sc = device_private(self);
sys/dev/acpi/acpi_wdrt.c
165
sc->sc_dev = self;
sys/dev/acpi/acpi_wdrt.c
167
pmf_device_register(self, acpi_wdrt_suspend, NULL);
sys/dev/acpi/acpi_wdrt.c
215
aprint_normal_dev(self, "watchdog interval 1-%d sec.\n",
sys/dev/acpi/acpi_wdrt.c
218
sc->sc_smw.smw_name = device_xname(self);
sys/dev/acpi/acpi_wdrt.c
225
aprint_error_dev(self, "couldn't register with sysmon\n");
sys/dev/acpi/acpi_wdrt.c
231
acpi_wdrt_detach(device_t self, int flags)
sys/dev/acpi/acpi_wdrt.c
233
struct acpi_wdrt_softc *sc = device_private(self);
sys/dev/acpi/acpi_wdrt.c
245
pmf_device_deregister(self);
sys/dev/acpi/acpi_wdrt.c
251
acpi_wdrt_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/acpi_wdrt.c
253
struct acpi_wdrt_softc *sc = device_private(self);
sys/dev/acpi/ahcisata_acpi.c
108
aprint_verbose_dev(self, "using 64-bit DMA\n");
sys/dev/acpi/ahcisata_acpi.c
111
aprint_verbose_dev(self, "using 32-bit DMA\n");
sys/dev/acpi/ahcisata_acpi.c
115
ih = acpi_intr_establish(self,
sys/dev/acpi/ahcisata_acpi.c
117
IPL_BIO, false, ahci_intr, sc, device_xname(self));
sys/dev/acpi/ahcisata_acpi.c
119
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/dev/acpi/ahcisata_acpi.c
70
ahcisata_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/ahcisata_acpi.c
72
struct ahci_softc * const sc = device_private(self);
sys/dev/acpi/ahcisata_acpi.c
81
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/ahcisata_acpi.c
98
sc->sc_atac.atac_dev = self;
sys/dev/acpi/aibs_acpi.c
131
aibs_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/aibs_acpi.c
133
struct aibs_softc *sc = device_private(self);
sys/dev/acpi/aibs_acpi.c
136
sc->sc_dev = self;
sys/dev/acpi/aibs_acpi.c
145
sc->sc_sme->sme_name = device_xname(self);
sys/dev/acpi/aibs_acpi.c
149
aibs_init(self);
sys/dev/acpi/aibs_acpi.c
153
aibs_init_new(self);
sys/dev/acpi/aibs_acpi.c
155
aibs_init_old(self, AIBS_TYPE_FAN);
sys/dev/acpi/aibs_acpi.c
156
aibs_init_old(self, AIBS_TYPE_TEMP);
sys/dev/acpi/aibs_acpi.c
157
aibs_init_old(self, AIBS_TYPE_VOLT);
sys/dev/acpi/aibs_acpi.c
160
(void)pmf_device_register(self, NULL, NULL);
sys/dev/acpi/aibs_acpi.c
163
aprint_error_dev(self, "no sensors found\n");
sys/dev/acpi/aibs_acpi.c
170
aprint_error_dev(self, "failed to register with sysmon\n");
sys/dev/acpi/aibs_acpi.c
174
aibs_detach(device_t self, int flags)
sys/dev/acpi/aibs_acpi.c
176
struct aibs_softc *sc = device_private(self);
sys/dev/acpi/aibs_acpi.c
179
pmf_device_deregister(self);
sys/dev/acpi/aibs_acpi.c
194
aibs_init(device_t self)
sys/dev/acpi/aibs_acpi.c
196
struct aibs_softc *sc = device_private(self);
sys/dev/acpi/aibs_acpi.c
267
aibs_init_new(device_t self)
sys/dev/acpi/aibs_acpi.c
269
struct aibs_softc *sc = device_private(self);
sys/dev/acpi/aibs_acpi.c
310
aibs_sensor_add(self, &obj->Package.Elements[i]);
sys/dev/acpi/aibs_acpi.c
318
aprint_error_dev(self, "failed to evaluate "
sys/dev/acpi/aibs_acpi.c
324
aibs_init_old(device_t self, int type)
sys/dev/acpi/aibs_acpi.c
326
struct aibs_softc *sc = device_private(self);
sys/dev/acpi/aibs_acpi.c
392
aibs_sensor_add(self, &elm[i]);
sys/dev/acpi/aibs_acpi.c
401
aprint_error_dev(self, "failed to evaluate "
sys/dev/acpi/aibs_acpi.c
407
aibs_sensor_add(device_t self, ACPI_OBJECT *obj)
sys/dev/acpi/aibs_acpi.c
409
struct aibs_softc *sc = device_private(self);
sys/dev/acpi/aibs_acpi.c
512
aprint_error_dev(self, "failed to add "
sys/dev/acpi/aibs_acpi.c
518
aibs_sensor_value(device_t self, struct aibs_sensor *as, uint64_t *val)
sys/dev/acpi/aibs_acpi.c
520
struct aibs_softc *sc = device_private(self);
sys/dev/acpi/aibs_acpi.c
617
aprint_error_dev(self, "failed to evaluate "
sys/dev/acpi/amdccp_acpi.c
106
pmf_device_register(self, NULL, NULL);
sys/dev/acpi/amdccp_acpi.c
63
amdccp_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/amdccp_acpi.c
65
struct amdccp_softc * const sc = device_private(self);
sys/dev/acpi/amdccp_acpi.c
74
sc->sc_dev = self;
sys/dev/acpi/amdccp_acpi.c
83
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/amdccp_acpi.c
90
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/amdccp_acpi.c
95
ih = acpi_intr_establish(self,
sys/dev/acpi/amdccp_acpi.c
97
IPL_VM, true, amdccp_intr, sc, device_xname(self));
sys/dev/acpi/amdccp_acpi.c
99
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/dev/acpi/amdgpio.c
147
amdgpio_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/amdgpio.c
149
struct amdgpio_softc * const sc = device_private(self);
sys/dev/acpi/amdgpio.c
160
sc->sc_dev = self;
sys/dev/acpi/amdgpio.c
175
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/amdgpio.c
181
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/amdgpio.c
188
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/amdgpio.c
218
rv = acpi_event_create_gpio(self, hdl, amdgpio_register_event, sc);
sys/dev/acpi/amdgpio.c
221
aprint_error_dev(self, "failed to create events: %s\n",
sys/dev/acpi/amdgpio.c
227
ih = acpi_intr_establish(self, (uint64_t)(uintptr_t)hdl,
sys/dev/acpi/amdgpio.c
228
IPL_VM, false, amdgpio_intr, sc, device_xname(self));
sys/dev/acpi/amdgpio.c
230
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/amdgpio.c
238
sc->sc_gpiodev = config_found(self, &gba, gpiobus_print,
sys/dev/acpi/amdgpio.c
241
acpi_gpio_register(aa->aa_node, self,
sys/dev/acpi/apei.c
100
struct apei_softc *sc = device_private(self);
sys/dev/acpi/apei.c
107
pmf_device_register(self, NULL, NULL);
sys/dev/acpi/apei.c
109
sc->sc_dev = self;
sys/dev/acpi/apei.c
164
apei_detach(device_t self, int flags)
sys/dev/acpi/apei.c
166
struct apei_softc *sc = device_private(self);
sys/dev/acpi/apei.c
177
error = config_detach_children(self, flags);
sys/dev/acpi/apei.c
204
pmf_device_deregister(self);
sys/dev/acpi/apei.c
98
apei_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/apple_smc_acpi.c
102
aprint_error_dev(self, "couldn't parse SMC resources: %s\n",
sys/dev/acpi/apple_smc_acpi.c
109
aprint_error_dev(self, "no I/O resource\n");
sys/dev/acpi/apple_smc_acpi.c
114
aprint_error_dev(self, "I/O resources too small: %"PRId32"\n",
sys/dev/acpi/apple_smc_acpi.c
121
aprint_error_dev(self, "unable to map I/O registers\n");
sys/dev/acpi/apple_smc_acpi.c
135
apple_smc_acpi_detach(device_t self, int flags)
sys/dev/acpi/apple_smc_acpi.c
137
struct apple_smc_acpi_softc *sc = device_private(self);
sys/dev/acpi/apple_smc_acpi.c
154
apple_smc_acpi_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/acpi/apple_smc_acpi.c
156
struct apple_smc_acpi_softc *const sc = device_private(self);
sys/dev/acpi/apple_smc_acpi.c
162
apple_smc_acpi_child_detached(device_t self, device_t child)
sys/dev/acpi/apple_smc_acpi.c
164
struct apple_smc_acpi_softc *const sc = device_private(self);
sys/dev/acpi/apple_smc_acpi.c
85
apple_smc_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/apple_smc_acpi.c
87
struct apple_smc_acpi_softc *sc = device_private(self);
sys/dev/acpi/apple_smc_acpi.c
94
smc->smc_dev = self;
sys/dev/acpi/apple_smc_acpi.c
99
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/asus_acpi.c
122
asus_attach(device_t parent, device_t self, void *opaque)
sys/dev/acpi/asus_acpi.c
124
struct asus_softc *sc = device_private(self);
sys/dev/acpi/asus_acpi.c
127
sc->sc_dev = self;
sys/dev/acpi/asus_acpi.c
133
asus_init(self);
sys/dev/acpi/asus_acpi.c
142
aprint_error_dev(self, "couldn't register with sysmon\n");
sys/dev/acpi/asus_acpi.c
157
sc->sc_sme->sme_name = device_xname(self);
sys/dev/acpi/asus_acpi.c
163
aprint_error_dev(self, "couldn't register with envsys\n");
sys/dev/acpi/asus_acpi.c
169
(void)pmf_device_register(self, asus_suspend, asus_resume);
sys/dev/acpi/asus_acpi.c
174
asus_detach(device_t self, int flags)
sys/dev/acpi/asus_acpi.c
176
struct asus_softc *sc = device_private(self);
sys/dev/acpi/asus_acpi.c
193
pmf_device_deregister(self);
sys/dev/acpi/asus_acpi.c
202
device_t self = opaque;
sys/dev/acpi/asus_acpi.c
204
sc = device_private(self);
sys/dev/acpi/asus_acpi.c
239
asus_init(device_t self)
sys/dev/acpi/asus_acpi.c
241
struct asus_softc *sc = device_private(self);
sys/dev/acpi/asus_acpi.c
249
aprint_error_dev(self, "couldn't evaluate INIT: %s\n",
sys/dev/acpi/asus_acpi.c
261
asus_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/asus_acpi.c
263
struct asus_softc *sc = device_private(self);
sys/dev/acpi/asus_acpi.c
279
asus_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/asus_acpi.c
281
struct asus_softc *sc = device_private(self);
sys/dev/acpi/asus_acpi.c
284
asus_init(self);
sys/dev/acpi/asus_acpi.c
294
aprint_error_dev(self, "couldn't evaluate PBLS: %s\n",
sys/dev/acpi/atppc_acpi.c
104
sc->sc_dev = self;
sys/dev/acpi/atppc_acpi.c
136
aprint_error_dev(self, "attempt to map bus space failed, device not "
sys/dev/acpi/atppc_acpi.c
141
sc->sc_ieh = acpi_intr_establish(self,
sys/dev/acpi/atppc_acpi.c
143
IPL_TTY, false, atppcintr, self, device_xname(self));
sys/dev/acpi/atppc_acpi.c
145
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/acpi/atppc_acpi.c
92
atppc_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/atppc_acpi.c
94
struct atppc_softc *sc = device_private(self);
sys/dev/acpi/atppc_acpi.c
95
struct atppc_acpi_softc *asc = device_private(self);
sys/dev/acpi/attimer_acpi.c
103
attimer_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/attimer_acpi.c
105
struct attimer_softc *sc = device_private(self);
sys/dev/acpi/attimer_acpi.c
111
sc->sc_dev = self;
sys/dev/acpi/attimer_acpi.c
122
aprint_error_dev(self,
sys/dev/acpi/attimer_acpi.c
131
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/acpi/com_acpi.c
105
com_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/com_acpi.c
107
struct com_acpi_softc *asc = device_private(self);
sys/dev/acpi/com_acpi.c
123
sc->sc_dev = self;
sys/dev/acpi/com_acpi.c
144
aprint_error_dev(self, "unable to find i/o register "
sys/dev/acpi/com_acpi.c
158
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/acpi/com_acpi.c
170
aprint_normal("%s", device_xname(self));
sys/dev/acpi/com_acpi.c
192
asc->sc_ih = acpi_intr_establish(self,
sys/dev/acpi/com_acpi.c
194
IPL_SERIAL, true, comintr, sc, device_xname(self));
sys/dev/acpi/com_acpi.c
197
if (!pmf_device_register(self, NULL, com_resume))
sys/dev/acpi/com_acpi.c
198
aprint_error_dev(self, "couldn't establish a power handler\n");
sys/dev/acpi/com_acpi.c
206
if (!pmf_device_register(self, NULL, NULL))
sys/dev/acpi/com_acpi.c
207
aprint_error_dev(self, "couldn't establish a power handler\n");
sys/dev/acpi/dalb_acpi.c
151
acpi_dalb_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/dalb_acpi.c
153
struct acpi_dalb_softc *sc = device_private(self);
sys/dev/acpi/dalb_acpi.c
159
sc->sc_dev = self;
sys/dev/acpi/dalb_acpi.c
162
config_interrupts(self, acpi_dalb_init);
sys/dev/acpi/dalb_acpi.c
164
(void)pmf_device_register(self, NULL, acpi_dalb_resume);
sys/dev/acpi/dalb_acpi.c
172
acpi_dalb_detach(device_t self, int flags)
sys/dev/acpi/dalb_acpi.c
174
struct acpi_dalb_softc *sc = device_private(self);
sys/dev/acpi/dalb_acpi.c
176
pmf_device_deregister(self);
sys/dev/acpi/dwcmmc_acpi.c
110
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/dwcmmc_acpi.c
116
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/dwcmmc_acpi.c
124
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/dwcmmc_acpi.c
137
ih = acpi_intr_establish(self, (uint64_t)(uintptr_t)handle, IPL_NET,
sys/dev/acpi/dwcmmc_acpi.c
138
false, dwc_mmc_intr, sc, device_xname(self));
sys/dev/acpi/dwcmmc_acpi.c
140
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/dwcmmc_acpi.c
81
dwcmmc_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/dwcmmc_acpi.c
83
struct dwc_mmc_softc * const sc = device_private(self);
sys/dev/acpi/dwcmmc_acpi.c
93
sc->sc_dev = self;
sys/dev/acpi/dwcwdt_acpi.c
60
dwcwdt_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/dwcwdt_acpi.c
62
struct dwcwdt_softc * const sc = device_private(self);
sys/dev/acpi/dwcwdt_acpi.c
78
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/dwcwdt_acpi.c
82
sc->sc_dev = self;
sys/dev/acpi/dwcwdt_acpi.c
86
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/dwiic_acpi.c
100
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/dwiic_acpi.c
106
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/dwiic_acpi.c
112
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/dwiic_acpi.c
116
ih = acpi_intr_establish(self,
sys/dev/acpi/dwiic_acpi.c
118
IPL_VM, true, dwiic_intr, sc, device_xname(self));
sys/dev/acpi/dwiic_acpi.c
120
aprint_error_dev(self, "couldn't install interrupt handler\n");
sys/dev/acpi/dwiic_acpi.c
130
iicbus_attach(self, &sc->sc_i2c_tag);
sys/dev/acpi/dwiic_acpi.c
132
pmf_device_register(self, dwiic_suspend, dwiic_resume);
sys/dev/acpi/dwiic_acpi.c
78
dwiic_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/dwiic_acpi.c
80
struct dwiic_softc * const sc = device_private(self);
sys/dev/acpi/dwiic_acpi.c
89
sc->sc_dev = self;
sys/dev/acpi/ehci_acpi.c
103
sc->sc_dev = self;
sys/dev/acpi/ehci_acpi.c
119
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/ehci_acpi.c
125
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/ehci_acpi.c
133
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/ehci_acpi.c
143
aprint_verbose_dev(self, "64-bit DMA");
sys/dev/acpi/ehci_acpi.c
152
aprint_verbose_dev(self, "32-bit DMA\n");
sys/dev/acpi/ehci_acpi.c
156
ih = acpi_intr_establish(self,
sys/dev/acpi/ehci_acpi.c
158
IPL_USB, true, ehci_intr, sc, device_xname(self));
sys/dev/acpi/ehci_acpi.c
160
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/ehci_acpi.c
166
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/dev/acpi/ehci_acpi.c
171
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/dev/acpi/ehci_acpi.c
87
ehci_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/ehci_acpi.c
89
struct ehci_acpi_softc * const asc = device_private(self);
sys/dev/acpi/ehci_acpi.c
99
acpi_claim_childdevs(self, aa->aa_node, NULL);
sys/dev/acpi/eqos_acpi.c
104
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/eqos_acpi.c
112
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/eqos_acpi.c
122
aprint_normal("%s", device_xname(self));
sys/dev/acpi/eqos_acpi.c
126
ih = acpi_intr_establish(self, (uint64_t)(uintptr_t)handle, IPL_NET,
sys/dev/acpi/eqos_acpi.c
127
true, eqos_intr, sc, device_xname(self));
sys/dev/acpi/eqos_acpi.c
129
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/eqos_acpi.c
77
eqos_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/eqos_acpi.c
79
struct eqos_softc * const sc = device_private(self);
sys/dev/acpi/eqos_acpi.c
89
sc->sc_dev = self;
sys/dev/acpi/eqos_acpi.c
98
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/fdc_acpi.c
106
sc->sc_dev = self;
sys/dev/acpi/fdc_acpi.c
181
sc->sc_ih = acpi_intr_establish(self,
sys/dev/acpi/fdc_acpi.c
183
IPL_BIO, false, fdcintr, sc, device_xname(self));
sys/dev/acpi/fdc_acpi.c
96
fdc_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/fdc_acpi.c
98
struct fdc_acpi_softc *asc = device_private(self);
sys/dev/acpi/fujbp_acpi.c
167
fujitsu_bp_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/fujbp_acpi.c
169
struct fujitsu_bp_softc *sc = device_private(self);
sys/dev/acpi/fujbp_acpi.c
176
sc->sc_dev = self;
sys/dev/acpi/fujbp_acpi.c
187
(void)pmf_device_register(self, fujitsu_bp_suspend, fujitsu_bp_resume);
sys/dev/acpi/fujbp_acpi.c
191
(void)pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_UP,
sys/dev/acpi/fujbp_acpi.c
194
(void)pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_DOWN,
sys/dev/acpi/fujbp_acpi.c
199
fujitsu_bp_detach(device_t self, int flags)
sys/dev/acpi/fujbp_acpi.c
201
struct fujitsu_bp_softc *sc = device_private(self);
sys/dev/acpi/fujbp_acpi.c
203
pmf_event_deregister(self, PMFE_DISPLAY_BRIGHTNESS_DOWN,
sys/dev/acpi/fujbp_acpi.c
206
pmf_event_deregister(self, PMFE_DISPLAY_BRIGHTNESS_UP,
sys/dev/acpi/fujbp_acpi.c
209
pmf_device_deregister(self);
sys/dev/acpi/fujbp_acpi.c
230
fujitsu_bp_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/fujbp_acpi.c
232
struct fujitsu_bp_softc *sc = device_private(self);
sys/dev/acpi/fujbp_acpi.c
242
fujitsu_bp_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/fujbp_acpi.c
244
struct fujitsu_bp_softc *sc = device_private(self);
sys/dev/acpi/fujbp_acpi.c
254
fujitsu_bp_brightness_up(device_t self)
sys/dev/acpi/fujbp_acpi.c
256
struct fujitsu_bp_softc *sc = device_private(self);
sys/dev/acpi/fujbp_acpi.c
269
fujitsu_bp_brightness_down(device_t self)
sys/dev/acpi/fujbp_acpi.c
271
struct fujitsu_bp_softc *sc = device_private(self);
sys/dev/acpi/fujhk_acpi.c
124
fujitsu_hk_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/fujhk_acpi.c
126
struct fujitsu_hk_softc *sc = device_private(self);
sys/dev/acpi/fujhk_acpi.c
134
sc->sc_dev = self;
sys/dev/acpi/fujhk_acpi.c
144
device_xname(self), i);
sys/dev/acpi/fujhk_acpi.c
152
(void)pmf_device_register(self, fujitsu_hk_suspend, fujitsu_hk_resume);
sys/dev/acpi/fujhk_acpi.c
157
fujitsu_hk_detach(device_t self, int flags)
sys/dev/acpi/fujhk_acpi.c
159
struct fujitsu_hk_softc *sc = device_private(self);
sys/dev/acpi/fujhk_acpi.c
162
pmf_device_deregister(self);
sys/dev/acpi/fujhk_acpi.c
182
fujitsu_hk_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/fujhk_acpi.c
184
struct fujitsu_hk_softc *sc = device_private(self);
sys/dev/acpi/fujhk_acpi.c
194
fujitsu_hk_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/fujhk_acpi.c
196
struct fujitsu_hk_softc *sc = device_private(self);
sys/dev/acpi/genet_acpi.c
100
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/genet_acpi.c
108
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/genet_acpi.c
117
aprint_error_dev(self, "missing 'phy-mode' property\n");
sys/dev/acpi/genet_acpi.c
134
aprint_normal("%s", device_xname(self));
sys/dev/acpi/genet_acpi.c
138
ih = acpi_intr_establish(self, (uint64_t)(uintptr_t)handle, IPL_NET,
sys/dev/acpi/genet_acpi.c
139
true, genet_intr, sc, device_xname(self));
sys/dev/acpi/genet_acpi.c
141
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/genet_acpi.c
72
genet_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/genet_acpi.c
74
struct genet_softc * const sc = device_private(self);
sys/dev/acpi/genet_acpi.c
85
sc->sc_dev = self;
sys/dev/acpi/genet_acpi.c
94
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/hpacel_acpi.c
179
hpacel_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/hpacel_acpi.c
181
struct hpacel_softc *sc = device_private(self);
sys/dev/acpi/hpacel_acpi.c
185
sc->sc_dev = self;
sys/dev/acpi/hpacel_acpi.c
192
if (hpacel_reg_init(self) != true)
sys/dev/acpi/hpacel_acpi.c
195
(void)pmf_device_register(self, hpacel_suspend, hpacel_resume);
sys/dev/acpi/hpacel_acpi.c
197
if (hpacel_sensor_init(self) != false)
sys/dev/acpi/hpacel_acpi.c
198
(void)hpacel_power(self, true);
sys/dev/acpi/hpacel_acpi.c
204
hpacel_detach(device_t self, int flags)
sys/dev/acpi/hpacel_acpi.c
206
struct hpacel_softc *sc = device_private(self);
sys/dev/acpi/hpacel_acpi.c
209
(void)hpacel_power(self, false);
sys/dev/acpi/hpacel_acpi.c
218
hpacel_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/hpacel_acpi.c
220
struct hpacel_softc *sc = device_private(self);
sys/dev/acpi/hpacel_acpi.c
223
(void)hpacel_power(self, false);
sys/dev/acpi/hpacel_acpi.c
229
hpacel_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/hpacel_acpi.c
231
struct hpacel_softc *sc = device_private(self);
sys/dev/acpi/hpacel_acpi.c
234
(void)hpacel_power(self, true);
sys/dev/acpi/hpacel_acpi.c
240
hpacel_reg_init(device_t self)
sys/dev/acpi/hpacel_acpi.c
242
struct hpacel_softc *sc = device_private(self);
sys/dev/acpi/hpacel_acpi.c
257
rv = hpacel_reg_info(self);
sys/dev/acpi/hpacel_acpi.c
324
(void)hpacel_reg_info(self);
sys/dev/acpi/hpacel_acpi.c
328
aprint_error_dev(self, "failed to initialize "
sys/dev/acpi/hpacel_acpi.c
335
hpacel_reg_info(device_t self)
sys/dev/acpi/hpacel_acpi.c
337
struct hpacel_softc *sc = device_private(self);
sys/dev/acpi/hpacel_acpi.c
454
hpacel_power(device_t self, bool enable)
sys/dev/acpi/hpacel_acpi.c
456
struct hpacel_softc *sc = device_private(self);
sys/dev/acpi/hpacel_acpi.c
463
rv = hpacel_reg_info(self);
sys/dev/acpi/hpacel_acpi.c
499
hpacel_sensor_init(device_t self)
sys/dev/acpi/hpacel_acpi.c
502
struct hpacel_softc *sc = device_private(self);
sys/dev/acpi/hpacel_acpi.c
533
sc->sc_sme->sme_name = device_xname(self);
sys/dev/acpi/hpacel_acpi.c
544
aprint_error_dev(self, "failed to initialize sensors\n");
sys/dev/acpi/hpet_acpi.c
117
hpet_attach_subr(self);
sys/dev/acpi/hpet_acpi.c
173
hpet_acpi_dev_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/hpet_acpi.c
175
struct hpet_softc *sc = device_private(self);
sys/dev/acpi/hpet_acpi.c
180
addr = hpet_acpi_dev_addr(self, aa, &sc->sc_mems);
sys/dev/acpi/hpet_acpi.c
199
hpet_attach_subr(self);
sys/dev/acpi/hpet_acpi.c
203
hpet_acpi_dev_addr(device_t self, void *aux, bus_size_t *len)
sys/dev/acpi/hpet_acpi.c
211
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/hpet_acpi.c
235
hpet_acpi_detach(device_t self, int flags)
sys/dev/acpi/hpet_acpi.c
237
struct hpet_softc *sc = device_private(self);
sys/dev/acpi/hpet_acpi.c
243
rv = hpet_detach(self, flags);
sys/dev/acpi/hpet_acpi.c
90
hpet_acpi_tab_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/hpet_acpi.c
92
struct hpet_softc *sc = device_private(self);
sys/dev/acpi/hpqlb_acpi.c
113
hpqlb_attach(device_t parent, device_t self, void *opaque)
sys/dev/acpi/hpqlb_acpi.c
115
struct hpqlb_softc *sc = device_private(self);
sys/dev/acpi/hpqlb_acpi.c
119
sc->sc_dev = self;
sys/dev/acpi/hpqlb_acpi.c
124
hpqlb_init(self);
sys/dev/acpi/hpqlb_acpi.c
126
if (config_finalize_register(self, hpqlb_finalize) != 0)
sys/dev/acpi/hpqlb_acpi.c
127
aprint_error_dev(self, "unable to register hpqlb finalizer\n");
sys/dev/acpi/hpqlb_acpi.c
141
sc->sc_smpsw[HP_PSW_SLEEP].smpsw_name = device_xname(self);
sys/dev/acpi/hpqlb_acpi.c
147
(void)pmf_device_register(self, NULL, hpqlb_resume);
sys/dev/acpi/hpqlb_acpi.c
151
hpqlb_detach(device_t self, int flags)
sys/dev/acpi/hpqlb_acpi.c
153
struct hpqlb_softc *sc = device_private(self);
sys/dev/acpi/hpqlb_acpi.c
155
pmf_device_deregister(self);
sys/dev/acpi/hpqlb_acpi.c
238
hpqlb_init(device_t self)
sys/dev/acpi/hpqlb_acpi.c
252
hpqlb_finalize(device_t self)
sys/dev/acpi/hpqlb_acpi.c
256
struct hpqlb_softc *sc = device_private(self);
sys/dev/acpi/hpqlb_acpi.c
276
aprint_normal_dev(self, "registering on %s\n",
sys/dev/acpi/hpqlb_acpi.c
283
aprint_error_dev(self, "WARNING: no matching wskbd found\n");
sys/dev/acpi/hpqlb_acpi.c
295
hpqlb_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/hpqlb_acpi.c
298
hpqlb_init(self);
sys/dev/acpi/igpio_acpi.c
110
igpio_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/igpio_acpi.c
112
struct igpio_acpi_softc * const asc = device_private(self);
sys/dev/acpi/igpio_acpi.c
124
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/igpio_acpi.c
131
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/igpio_acpi.c
135
asc->sc_isc.sc_dev = self;
sys/dev/acpi/igpio_acpi.c
152
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/igpio_acpi.c
164
igpio_acpi_detach(self, 0);
sys/dev/acpi/igpio_acpi.c
168
rv = acpi_event_create_gpio(self, asc->sc_handle, igpio_acpi_register_event, asc);
sys/dev/acpi/igpio_acpi.c
171
aprint_error_dev(self, "failed to create events: %s\n", AcpiFormatException(rv));
sys/dev/acpi/igpio_acpi.c
175
asc->sc_intr = acpi_intr_establish(self,
sys/dev/acpi/igpio_acpi.c
177
IPL_VM, false, igpio_acpi_intr, asc, device_xname(self));
sys/dev/acpi/igpio_acpi.c
179
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/igpio_acpi.c
183
(void)pmf_device_register(self, NULL, NULL);
sys/dev/acpi/igpio_acpi.c
188
igpio_acpi_detach(device_t self, int flags)
sys/dev/acpi/igpio_acpi.c
190
struct igpio_acpi_softc * const asc = device_private(self);
sys/dev/acpi/igpio_acpi.c
214
pmf_device_deregister(self);
sys/dev/acpi/ipmi_acpi.c
111
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/ipmi_acpi.c
115
aprint_error_dev(self, "no resources\n");
sys/dev/acpi/ipmi_acpi.c
122
aprint_error_dev(self, "no resources\n");
sys/dev/acpi/ipmi_acpi.c
128
aprint_normal_dev(self, "IRQ %d type %d\n",
sys/dev/acpi/ipmi_acpi.c
131
aprint_error_dev(self, "no interrupt\n");
sys/dev/acpi/ipmi_acpi.c
159
config_found(self, ia, NULL, CFARGS_NONE);
sys/dev/acpi/ipmi_acpi.c
166
aprint_error_dev(self, "no resources\n");
sys/dev/acpi/ipmi_acpi.c
171
aprint_error_dev(self, "i2c address out of range\n");
sys/dev/acpi/ipmi_acpi.c
180
aprint_error_dev(self, "unknown interface type\n");
sys/dev/acpi/ipmi_acpi.c
186
if (!pmf_device_register(self, NULL, NULL))
sys/dev/acpi/ipmi_acpi.c
187
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/ipmi_acpi.c
191
ipmi_acpi_detach(device_t self, int flags)
sys/dev/acpi/ipmi_acpi.c
193
struct ipmi_acpi_softc *sc = device_private(self);
sys/dev/acpi/ipmi_acpi.c
199
rc = config_detach_children(self, flags);
sys/dev/acpi/ipmi_acpi.c
203
pmf_device_deregister(self);
sys/dev/acpi/ipmi_acpi.c
75
ipmi_acpi_attach(device_t parent, device_t self, void *opaque)
sys/dev/acpi/ipmi_acpi.c
77
ipmi_acpi_softc_t *sc = device_private(self);
sys/dev/acpi/ipmi_acpi.c
91
sc->sc_dev = self;
sys/dev/acpi/joy_acpi.c
106
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/acpi/joy_acpi.c
78
joy_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/joy_acpi.c
80
struct joy_acpi_softc *asc = device_private(self);
sys/dev/acpi/joy_acpi.c
87
sc->sc_dev = self;
sys/dev/acpi/joy_acpi.c
98
aprint_error_dev(self,
sys/dev/acpi/lpt_acpi.c
100
aprint_error_dev(self,
sys/dev/acpi/lpt_acpi.c
108
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/acpi/lpt_acpi.c
114
sc->sc_ih = acpi_intr_establish(self,
sys/dev/acpi/lpt_acpi.c
116
IPL_TTY, false, lptintr, sc, device_xname(self));
sys/dev/acpi/lpt_acpi.c
118
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/acpi/lpt_acpi.c
77
lpt_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/lpt_acpi.c
79
struct lpt_acpi_softc *asc = device_private(self);
sys/dev/acpi/lpt_acpi.c
86
sc->sc_dev = self;
sys/dev/acpi/lpt_acpi.c
88
if (!pmf_device_register(self, NULL, NULL))
sys/dev/acpi/lpt_acpi.c
89
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/mpu_acpi.c
106
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/acpi/mpu_acpi.c
111
sc->sc_dev = self;
sys/dev/acpi/mpu_acpi.c
116
sc->arg = acpi_intr_establish(self,
sys/dev/acpi/mpu_acpi.c
118
IPL_AUDIO, true, mpu_intr, sc, device_xname(self));
sys/dev/acpi/mpu_acpi.c
120
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/acpi/mpu_acpi.c
81
mpu_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/mpu_acpi.c
83
struct mpu_acpi_softc *asc = device_private(self);
sys/dev/acpi/mpu_acpi.c
91
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/mpu_acpi.c
99
aprint_error_dev(self,
sys/dev/acpi/nxpiic_acpi.c
104
sc->sc_dev = self;
sys/dev/acpi/nxpiic_acpi.c
114
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/nxpiic_acpi.c
121
aprint_error_dev(self, "couldn't get clock frequency\n");
sys/dev/acpi/nxpiic_acpi.c
124
aprint_debug_dev(self, "bus clock %u Hz\n", (u_int)clock_freq);
sys/dev/acpi/nxpiic_acpi.c
129
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/nxpiic_acpi.c
93
nxpiic_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/nxpiic_acpi.c
95
struct motoi2c_softc * const sc = device_private(self);
sys/dev/acpi/ohci_acpi.c
112
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/ohci_acpi.c
118
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/ohci_acpi.c
126
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/ohci_acpi.c
134
ih = acpi_intr_establish(self,
sys/dev/acpi/ohci_acpi.c
136
IPL_USB, true, ohci_intr, sc, device_xname(self));
sys/dev/acpi/ohci_acpi.c
138
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/ohci_acpi.c
144
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/dev/acpi/ohci_acpi.c
149
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/dev/acpi/ohci_acpi.c
88
ohci_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/ohci_acpi.c
90
struct ohci_softc * const sc = device_private(self);
sys/dev/acpi/ohci_acpi.c
99
sc->sc_dev = self;
sys/dev/acpi/pckbc_acpi.c
116
pckbc_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/pckbc_acpi.c
118
struct pckbc_acpi_softc *psc = device_private(self);
sys/dev/acpi/pckbc_acpi.c
129
sc->sc_dv = self;
sys/dev/acpi/pckbc_acpi.c
147
aprint_error_dev(self, "unable to find irq resource\n");
sys/dev/acpi/pckbc_acpi.c
161
aprint_error_dev(self,
sys/dev/acpi/pckbc_acpi.c
187
aprint_error_dev(self,
sys/dev/acpi/pckbc_acpi.c
205
if (!pmf_device_register(self, NULL, pckbc_resume))
sys/dev/acpi/pckbc_acpi.c
206
aprint_error_dev(self,
sys/dev/acpi/pckbc_acpi.c
214
if (!pmf_device_register(self, NULL, NULL))
sys/dev/acpi/pckbc_acpi.c
215
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/pcppi_acpi.c
105
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/acpi/pcppi_acpi.c
76
pcppi_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/pcppi_acpi.c
78
struct pcppi_acpi_softc *asc = device_private(self);
sys/dev/acpi/pcppi_acpi.c
85
sc->sc_dv = self;
sys/dev/acpi/pcppi_acpi.c
96
aprint_error_dev(self,
sys/dev/acpi/plgpio_acpi.c
104
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/plgpio_acpi.c
110
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/plgpio_acpi.c
114
sc->sc_dev = self;
sys/dev/acpi/plgpio_acpi.c
118
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/plgpio_acpi.c
124
rv = acpi_event_create_gpio(self, asc->sc_handle, plgpio_acpi_register_event, asc);
sys/dev/acpi/plgpio_acpi.c
127
aprint_error_dev(self, "failed to create events: %s\n", AcpiFormatException(rv));
sys/dev/acpi/plgpio_acpi.c
131
ih = acpi_intr_establish(self,
sys/dev/acpi/plgpio_acpi.c
133
IPL_VM, false, plgpio_acpi_intr, asc, device_xname(self));
sys/dev/acpi/plgpio_acpi.c
135
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/plgpio_acpi.c
82
plgpio_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/plgpio_acpi.c
84
struct plgpio_acpi_softc * const asc = device_private(self);
sys/dev/acpi/plgpio_acpi.c
94
sc->sc_dev = self;
sys/dev/acpi/qcomgpio.c
179
qcomgpio_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/qcomgpio.c
181
struct qcomgpio_softc * const sc = device_private(self);
sys/dev/acpi/qcomgpio.c
192
sc->sc_dev = self;
sys/dev/acpi/qcomgpio.c
207
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/qcomgpio.c
213
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/qcomgpio.c
220
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/qcomgpio.c
230
aprint_debug_dev(self, "IRQ resource %u -> %#x\n",
sys/dev/acpi/qcomgpio.c
235
sc->sc_npins = qcomgpio_acpi_num_pins(self, hdl);
sys/dev/acpi/qcomgpio.c
237
aprint_error_dev(self, "couldn't determine pin count!\n");
sys/dev/acpi/qcomgpio.c
262
rv = acpi_event_create_gpio(self, hdl, qcomgpio_register_event, sc);
sys/dev/acpi/qcomgpio.c
265
aprint_error_dev(self, "failed to create events: %s\n",
sys/dev/acpi/qcomgpio.c
271
ih = acpi_intr_establish(self, (uint64_t)(uintptr_t)hdl,
sys/dev/acpi/qcomgpio.c
272
IPL_VM, false, qcomgpio_intr, sc, device_xname(self));
sys/dev/acpi/qcomgpio.c
274
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/qcomgpio.c
282
sc->sc_gpiodev = config_found(self, &gba, gpiobus_print,
sys/dev/acpi/qcomgpio.c
285
acpi_gpio_register(aa->aa_node, self,
sys/dev/acpi/qcomiic.c
110
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/qcomiic.c
116
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/qcomiic.c
123
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/qcomiic.c
131
iicbus_attach(self, &sc->sc_ic);
sys/dev/acpi/qcomiic.c
88
qciic_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/qcomiic.c
90
struct qciic_softc * const sc = device_private(self);
sys/dev/acpi/qcomiic.c
98
sc->sc_dev = self;
sys/dev/acpi/qcomipcc.c
109
rv = acpi_resource_parse(self, hdl, "_CRS", &res,
sys/dev/acpi/qcomipcc.c
117
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/qcomipcc.c
123
sc->sc_dev = self;
sys/dev/acpi/qcomipcc.c
127
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/qcomipcc.c
133
sc->sc_ih = acpi_intr_establish(self,
sys/dev/acpi/qcomipcc.c
135
IPL_VM, false, qcipcc_intr, sc, device_xname(self));
sys/dev/acpi/qcomipcc.c
137
aprint_error_dev(self,
sys/dev/acpi/qcomipcc.c
93
qcipcc_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/qcomipcc.c
95
struct qcipcc_softc *sc = device_private(self);
sys/dev/acpi/qcompas.c
216
qcpas_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/qcompas.c
218
struct qcpas_softc *sc = device_private(self);
sys/dev/acpi/qcompas.c
225
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS", &res,
sys/dev/acpi/qcompas.c
234
sc->sc_dev = self;
sys/dev/acpi/qcompas.c
256
aprint_error_dev(self, "failed to evaluate _SUB: %s\n",
sys/dev/acpi/qcompas.c
260
aprint_verbose_dev(self, "subsystem ID %s\n", sc->sc_sub);
sys/dev/acpi/qcompas.c
262
sc->sc_ih[0] = acpi_intr_establish(self,
sys/dev/acpi/qcompas.c
264
IPL_VM, false, qcpas_intr_wdog, sc, device_xname(self));
sys/dev/acpi/qcompas.c
277
config_mountroot(self, qcpas_mountroot);
sys/dev/acpi/qcompas.c
434
qcpas_mountroot(device_t self)
sys/dev/acpi/qcompas.c
436
struct qcpas_softc *sc = device_private(self);
sys/dev/acpi/qcompep.c
140
qcpep_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/qcompep.c
142
struct qcpep_softc *sc = device_private(self);
sys/dev/acpi/qcompep.c
151
rv = acpi_resource_parse(self, aa->aa_node->ad_handle,
sys/dev/acpi/qcompep.c
158
sc->sc_dev = self;
sys/dev/acpi/qcompep.c
164
aprint_error_dev(self, "couldn't map aoss registers\n");
sys/dev/acpi/qcompep.c
170
aprint_error_dev(self, "couldn't map cpucp rx registers\n");
sys/dev/acpi/qcompep.c
176
aprint_error_dev(self, "couldn't map cpucp tx registers\n");
sys/dev/acpi/qcompep.c
183
aprint_error_dev(self, "couldn't find ipcc mailbox\n");
sys/dev/acpi/qcompep.c
189
aprint_error_dev(self, "invalid QMP info\n");
sys/dev/acpi/qcompep.c
196
aprint_error_dev(self, "invalid AOSS mailbox size\n");
sys/dev/acpi/qcompep.c
212
aprint_error_dev(self, "didn't get link state ack\n");
sys/dev/acpi/qcompep.c
225
aprint_error_dev(self, "didn't get open channel\n");
sys/dev/acpi/qcompep.c
238
aprint_error_dev(self, "didn't get channel ack\n");
sys/dev/acpi/qcompep.c
253
aprint_error_dev(self, "couldn't map SCMI shared memory\n");
sys/dev/acpi/qcompep.c
257
sc->sc_scmi.sc_dev = self;
sys/dev/acpi/qcompep.c
288
aprint_error_dev(self, "couldn't setup SCMI\n");
sys/dev/acpi/qcomscm.c
166
qcscm_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/qcomscm.c
168
struct qcscm_softc *sc = device_private(self);
sys/dev/acpi/qcomscm.c
171
sc->sc_dev = self;
sys/dev/acpi/qcomscm.c
188
aprint_error_dev(self, "can't retrieve UEFI App: %d\n", error);
sys/dev/acpi/qcomsmem.c
169
qcsmem_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/qcomsmem.c
171
struct qcsmem_softc *sc = device_private(self);
sys/dev/acpi/qcomsmem.c
183
sc->sc_dev = self;
sys/dev/acpi/qcomsmptp.c
130
qcsmptp_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/qcomsmptp.c
132
struct qcsmptp_softc *sc = device_private(self);
sys/dev/acpi/qcomsmptp.c
136
sc->sc_dev = self;
sys/dev/acpi/qcomsmptp.c
159
aprint_error_dev(self, "can't get mailbox\n");
sys/dev/acpi/qcomsmptp.c
165
aprint_error_dev(self, "can't alloc smp2p item\n");
sys/dev/acpi/qcomsmptp.c
171
aprint_error_dev(self, "can't get smp2p item\n");
sys/dev/acpi/qcomsmptp.c
177
aprint_error_dev(self, "can't alloc smp2p item\n");
sys/dev/acpi/qcomsmptp.c
183
aprint_error_dev(self, "can't get smp2p item\n");
sys/dev/acpi/qcomspmi.c
183
qcspmi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/qcomspmi.c
186
struct qcspmi_softc *sc = device_private(self);
sys/dev/acpi/qcomspmi.c
202
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/qcomspmi.c
206
sc->sc_dev = self;
sys/dev/acpi/qcomspmi.c
212
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/qemufwcfg_acpi.c
103
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/qemufwcfg_acpi.c
109
pmf_device_register(self, NULL, NULL);
sys/dev/acpi/qemufwcfg_acpi.c
70
fwcfg_acpi_attach(device_t parent, device_t self, void *opaque)
sys/dev/acpi/qemufwcfg_acpi.c
72
struct fwcfg_softc *sc = device_private(self);
sys/dev/acpi/qemufwcfg_acpi.c
81
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/qemufwcfg_acpi.c
86
sc->sc_dev = self;
sys/dev/acpi/qemufwcfg_acpi.c
97
aprint_error_dev(self, "couldn't acquire resources\n");
sys/dev/acpi/sdhc_acpi.c
173
sdhc_acpi_attach(device_t parent, device_t self, void *opaque)
sys/dev/acpi/sdhc_acpi.c
175
struct sdhc_acpi_softc *sc = device_private(self);
sys/dev/acpi/sdhc_acpi.c
187
sc->sc.sc_dev = self;
sys/dev/acpi/sdhc_acpi.c
204
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/sdhc_acpi.c
223
aprint_error_dev(self, "incomplete resources\n");
sys/dev/acpi/sdhc_acpi.c
227
aprint_error_dev(self, "zero length memory resource\n");
sys/dev/acpi/sdhc_acpi.c
234
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/sdhc_acpi.c
238
sc->sc_ih = acpi_intr_establish(self,
sys/dev/acpi/sdhc_acpi.c
240
IPL_BIO, false, sdhc_intr, &sc->sc, device_xname(self));
sys/dev/acpi/sdhc_acpi.c
242
aprint_error_dev(self,
sys/dev/acpi/sdhc_acpi.c
285
aprint_error_dev(self, "couldn't initialize host\n");
sys/dev/acpi/sdhc_acpi.c
289
if (!pmf_device_register1(self, sdhc_suspend, sdhc_acpi_resume,
sys/dev/acpi/sdhc_acpi.c
291
aprint_error_dev(self, "couldn't establish powerhook\n");
sys/dev/acpi/sdhc_acpi.c
315
sdhc_acpi_detach(device_t self, int flags)
sys/dev/acpi/sdhc_acpi.c
317
struct sdhc_acpi_softc *sc = device_private(self);
sys/dev/acpi/sdhc_acpi.c
320
pmf_device_deregister(self);
sys/dev/acpi/sdhc_acpi.c
342
sdhc_acpi_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/sdhc_acpi.c
344
struct sdhc_acpi_softc *sc = device_private(self);
sys/dev/acpi/sdhc_acpi.c
351
device_xname(self), AcpiFormatException(rv));
sys/dev/acpi/sdhc_acpi.c
354
return sdhc_resume(self, qual);
sys/dev/acpi/smbus_acpi.c
137
acpi_smbus_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/smbus_acpi.c
139
struct acpi_smbus_softc *sc = device_private(self);
sys/dev/acpi/smbus_acpi.c
146
sc->sc_dv = self;
sys/dev/acpi/smbus_acpi.c
162
callout_setfunc(&sc->sc_callout, acpi_smbus_tick, self);
sys/dev/acpi/smbus_acpi.c
172
(void)pmf_device_register(self, NULL, NULL);
sys/dev/acpi/smbus_acpi.c
176
config_found(self, &iba, iicbus_print, CFARGS_NONE);
sys/dev/acpi/smbus_acpi.c
180
acpi_smbus_detach(device_t self, int flags)
sys/dev/acpi/smbus_acpi.c
182
struct acpi_smbus_softc *sc = device_private(self);
sys/dev/acpi/smbus_acpi.c
184
pmf_device_deregister(self);
sys/dev/acpi/sony_acpi.c
231
sony_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/sony_acpi.c
233
struct sony_acpi_softc *sc = device_private(self);
sys/dev/acpi/sony_acpi.c
242
sc->sc_dev = self;
sys/dev/acpi/sony_acpi.c
247
aprint_error_dev(self, "couldn't walk namespace: %s\n",
sys/dev/acpi/sony_acpi.c
260
sc->sc_smpsw[SONY_PSW_SLEEP].smpsw_name = device_xname(self);
sys/dev/acpi/sony_acpi.c
271
aprint_error_dev(self,
sys/dev/acpi/sony_acpi.c
285
aprint_error_dev(self, "Cannot walk ACPI namespace (%u)\n",
sys/dev/acpi/sony_acpi.c
289
if (!pmf_device_register(self, sony_acpi_suspend, sony_acpi_resume))
sys/dev/acpi/sony_acpi.c
290
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/sony_acpi.c
292
if (!pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_UP,
sys/dev/acpi/sony_acpi.c
294
aprint_error_dev(self,
sys/dev/acpi/sony_acpi.c
297
if (!pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_DOWN,
sys/dev/acpi/sony_acpi.c
299
aprint_error_dev(self,
sys/dev/acpi/spic_acpi.c
104
aprint_error_dev(self, "unable to map data register\n");
sys/dev/acpi/spic_acpi.c
109
aprint_error_dev(self, "unable to find irq resource\n");
sys/dev/acpi/spic_acpi.c
114
sc->sc_ih = acpi_intr_establish(self,
sys/dev/acpi/spic_acpi.c
116
IPL_TTY, false, spic_intr, sc, device_xname(self));
sys/dev/acpi/spic_acpi.c
118
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/acpi/spic_acpi.c
123
if (!pmf_device_register(self, spic_suspend, spic_resume))
sys/dev/acpi/spic_acpi.c
124
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/spic_acpi.c
126
pmf_class_input_register(self);
sys/dev/acpi/spic_acpi.c
77
spic_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/spic_acpi.c
79
struct spic_acpi_softc *sc = device_private(self);
sys/dev/acpi/spic_acpi.c
87
sc->sc_spic.sc_dev = self;
sys/dev/acpi/spic_acpi.c
91
rv = acpi_resource_parse(self, sc->sc_node->ad_handle,
sys/dev/acpi/spic_acpi.c
99
aprint_error_dev(self, "unable to find io resource\n");
sys/dev/acpi/thinkpad_acpi.c
1007
thinkpad_call_method(device_t self, const char *path, uint32_t arg)
sys/dev/acpi/thinkpad_acpi.c
1009
thinkpad_softc_t *sc = device_private(self);
sys/dev/acpi/thinkpad_acpi.c
1030
aprint_error_dev(self, "call %s.%s(%x) failed: %s\n",
sys/dev/acpi/thinkpad_acpi.c
1040
thinkpad_battery_probe_support(device_t self)
sys/dev/acpi/thinkpad_acpi.c
1042
thinkpad_softc_t *sc = device_private(self);
sys/dev/acpi/thinkpad_acpi.c
1051
val = thinkpad_call_method(self, THINKPAD_GET_CHARGE_START,
sys/dev/acpi/thinkpad_acpi.c
1062
val = thinkpad_call_method(self, THINKPAD_GET_CHARGE_STOP,
sys/dev/acpi/thinkpad_acpi.c
1070
val = thinkpad_call_method(self, THINKPAD_GET_FORCE_DISCHARGE,
sys/dev/acpi/thinkpad_acpi.c
1078
val = thinkpad_call_method(self, THINKPAD_GET_CHARGE_INHIBIT,
sys/dev/acpi/thinkpad_acpi.c
1085
aprint_verbose_dev(self, "battery control capabilities: %x\n",
sys/dev/acpi/thinkpad_acpi.c
1194
thinkpad_battery_sysctl_setup_controls(device_t self,
sys/dev/acpi/thinkpad_acpi.c
1197
thinkpad_softc_t *sc = device_private(self);
sys/dev/acpi/thinkpad_acpi.c
1233
thinkpad_battery_sysctl_setup(device_t self)
sys/dev/acpi/thinkpad_acpi.c
1235
thinkpad_softc_t *sc = device_private(self);
sys/dev/acpi/thinkpad_acpi.c
1246
0, CTLTYPE_NODE, device_xname(self),
sys/dev/acpi/thinkpad_acpi.c
1260
thinkpad_battery_sysctl_setup_controls(self, cnode,
sys/dev/acpi/thinkpad_acpi.c
1270
thinkpad_battery_sysctl_setup_controls(self, cnode,
sys/dev/acpi/thinkpad_acpi.c
1280
thinkpad_battery_sysctl_setup_controls(self, cnode,
sys/dev/acpi/thinkpad_acpi.c
1287
aprint_error_dev(self, "unable to add sysctl nodes (%d)\n", err);
sys/dev/acpi/thinkpad_acpi.c
251
thinkpad_attach(device_t parent, device_t self, void *opaque)
sys/dev/acpi/thinkpad_acpi.c
253
thinkpad_softc_t *sc = device_private(self);
sys/dev/acpi/thinkpad_acpi.c
262
sc->sc_dev = self;
sys/dev/acpi/thinkpad_acpi.c
283
aprint_debug_dev(self, "using EC at %s\n",
sys/dev/acpi/thinkpad_acpi.c
289
aprint_error_dev(self, "couldn't evaluate MHKV: %s\n",
sys/dev/acpi/thinkpad_acpi.c
293
aprint_normal_dev(self, "version %04x\n", (unsigned)sc->sc_ver);
sys/dev/acpi/thinkpad_acpi.c
300
aprint_error_dev(self, "couldn't evaluate MHKA: %s\n",
sys/dev/acpi/thinkpad_acpi.c
322
aprint_error_dev(self, "couldn't evaluate MHKA(1):"
sys/dev/acpi/thinkpad_acpi.c
328
aprint_error_dev(self, "failed to evaluate MHKA(1)\n");
sys/dev/acpi/thinkpad_acpi.c
335
panic("%s: invalid version %jd", device_xname(self),
sys/dev/acpi/thinkpad_acpi.c
342
aprint_error_dev(self, "couldn't set event mask: %s\n",
sys/dev/acpi/thinkpad_acpi.c
366
psw[TP_PSW_SLEEP].smpsw_name = device_xname(self);
sys/dev/acpi/thinkpad_acpi.c
369
psw[TP_PSW_HIBERNATE].smpsw_name = device_xname(self);
sys/dev/acpi/thinkpad_acpi.c
405
aprint_error_dev(self,
sys/dev/acpi/thinkpad_acpi.c
416
thinkpad_battery_probe_support(self);
sys/dev/acpi/thinkpad_acpi.c
420
sc->sc_scparam[i].sp_dev = self;
sys/dev/acpi/thinkpad_acpi.c
423
thinkpad_battery_sysctl_setup(self);
sys/dev/acpi/thinkpad_acpi.c
427
if (!pmf_device_register(self, NULL, thinkpad_resume))
sys/dev/acpi/thinkpad_acpi.c
428
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/thinkpad_acpi.c
429
if (!pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_UP,
sys/dev/acpi/thinkpad_acpi.c
431
aprint_error_dev(self, "couldn't register event handler\n");
sys/dev/acpi/thinkpad_acpi.c
432
if (!pmf_event_register(self, PMFE_DISPLAY_BRIGHTNESS_DOWN,
sys/dev/acpi/thinkpad_acpi.c
434
aprint_error_dev(self, "couldn't register event handler\n");
sys/dev/acpi/thinkpad_acpi.c
438
thinkpad_detach(device_t self, int flags)
sys/dev/acpi/thinkpad_acpi.c
440
struct thinkpad_softc *sc = device_private(self);
sys/dev/acpi/thinkpad_acpi.c
454
pmf_device_deregister(self);
sys/dev/acpi/thinkpad_acpi.c
456
pmf_event_deregister(self, PMFE_DISPLAY_BRIGHTNESS_UP,
sys/dev/acpi/thinkpad_acpi.c
459
pmf_event_deregister(self, PMFE_DISPLAY_BRIGHTNESS_DOWN,
sys/dev/acpi/thinkpad_acpi.c
468
device_t self = opaque;
sys/dev/acpi/thinkpad_acpi.c
471
sc = device_private(self);
sys/dev/acpi/thinkpad_acpi.c
474
aprint_debug_dev(self, "unknown notify 0x%02x\n", notify);
sys/dev/acpi/thinkpad_acpi.c
489
device_t self = sc->sc_dev;
sys/dev/acpi/thinkpad_acpi.c
497
aprint_error_dev(self, "couldn't evaluate MHKP: %s\n",
sys/dev/acpi/thinkpad_acpi.c
515
thinkpad_brightness_up(self);
sys/dev/acpi/thinkpad_acpi.c
524
thinkpad_brightness_down(self);
sys/dev/acpi/thinkpad_acpi.c
703
aprint_debug_dev(self, "notify event 0x%03x\n", event);
sys/dev/acpi/thinkpad_acpi.c
970
thinkpad_brightness_up(device_t self)
sys/dev/acpi/thinkpad_acpi.c
972
thinkpad_softc_t *sc = device_private(self);
sys/dev/acpi/thinkpad_acpi.c
981
thinkpad_brightness_down(device_t self)
sys/dev/acpi/thinkpad_acpi.c
983
thinkpad_softc_t *sc = device_private(self);
sys/dev/acpi/tpm_acpi.c
107
tpm_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/tpm_acpi.c
109
struct tpm_softc *sc = device_private(self);
sys/dev/acpi/tpm_acpi.c
118
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS", &res,
sys/dev/acpi/tpm_acpi.c
121
aprint_error_dev(self, "cannot parse resources %d\n", rv);
sys/dev/acpi/tpm_acpi.c
127
aprint_error_dev(self, "cannot find mem\n");
sys/dev/acpi/tpm_acpi.c
131
aprint_error_dev(self, "wrong size mem %"PRIu64" < %u\n",
sys/dev/acpi/tpm_acpi.c
141
sc->sc_dev = self;
sys/dev/acpi/tpm_acpi.c
161
if (!pmf_device_register(self, tpm_suspend, tpm_resume))
sys/dev/acpi/tpm_acpi.c
162
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/acpi/ug_acpi.c
102
ug2_attach(self);
sys/dev/acpi/ug_acpi.c
66
ug_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/ug_acpi.c
68
struct ug_softc *sc = device_private(self);
sys/dev/acpi/ug_acpi.c
76
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/ug_acpi.c
84
aprint_error_dev(self,
sys/dev/acpi/ug_acpi.c
92
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/acpi/ug_acpi.c
97
aprint_normal("%s", device_xname(self));
sys/dev/acpi/vald_acpi.c
179
vald_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/vald_acpi.c
181
struct vald_acpi_softc *sc = device_private(self);
sys/dev/acpi/vald_acpi.c
190
sc->sc_dev = self;
sys/dev/acpi/vald_acpi.c
196
aprint_error_dev(self, "Unable to evaluate _PSR: %s\n",
sys/dev/acpi/vald_acpi.c
199
aprint_verbose_dev(self, "AC adaptor %sconnected\n",
sys/dev/acpi/vald_acpi.c
206
aprint_error_dev(self,
sys/dev/acpi/vald_acpi.c
209
aprint_verbose_dev(self, "LCD backlight %s\n",
sys/dev/acpi/vald_acpi.c
217
aprint_error_dev(self,
sys/dev/acpi/vald_acpi.c
222
aprint_error_dev(self, "can't enable HotkeyEvent error=%d\n",
sys/dev/acpi/vald_acpi.c
251
device_t self = context;
sys/dev/acpi/vald_acpi.c
253
sc = device_private(self);
sys/dev/acpi/valz_acpi.c
286
valz_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/valz_acpi.c
288
struct valz_acpi_softc *sc = device_private(self);
sys/dev/acpi/valz_acpi.c
296
sc->sc_dev = self;
sys/dev/acpi/valz_acpi.c
318
device_t self = context;
sys/dev/acpi/valz_acpi.c
320
sc = device_private(self);
sys/dev/acpi/virtio_acpi.c
104
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/virtio_acpi.c
111
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/virtio_acpi.c
117
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/virtio_acpi.c
125
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/virtio_acpi.c
134
virtio_acpi_rescan(self, "virtio", NULL);
sys/dev/acpi/virtio_acpi.c
141
virtio_acpi_detach(device_t self, int flags)
sys/dev/acpi/virtio_acpi.c
143
struct virtio_acpi_softc * const sc = device_private(self);
sys/dev/acpi/virtio_acpi.c
150
virtio_acpi_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/acpi/virtio_acpi.c
152
struct virtio_acpi_softc * const sc = device_private(self);
sys/dev/acpi/virtio_acpi.c
163
config_found(self, &va, NULL, CFARGS_NONE);
sys/dev/acpi/virtio_acpi.c
80
virtio_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/virtio_acpi.c
82
struct virtio_acpi_softc * const sc = device_private(self);
sys/dev/acpi/virtio_acpi.c
94
vsc->sc_dev = self;
sys/dev/acpi/vmbus_acpi.c
103
pmf_device_deregister(self);
sys/dev/acpi/vmbus_acpi.c
76
vmbus_acpi_attach(device_t parent, device_t self, void *opaque)
sys/dev/acpi/vmbus_acpi.c
78
struct vmbus_acpi_softc *sc = device_private(self);
sys/dev/acpi/vmbus_acpi.c
81
sc->sc.sc_dev = self;
sys/dev/acpi/vmbus_acpi.c
90
(void)pmf_device_register(self, NULL, NULL);
sys/dev/acpi/vmbus_acpi.c
94
vmbus_acpi_detach(device_t self, int flags)
sys/dev/acpi/vmbus_acpi.c
96
struct vmbus_acpi_softc *sc = device_private(self);
sys/dev/acpi/wb_acpi.c
104
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
sys/dev/acpi/wb_acpi.c
122
aprint_error_dev(self, "incomplete resources\n");
sys/dev/acpi/wb_acpi.c
127
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/wb_acpi.c
132
sc->sc_ih = acpi_intr_establish(self,
sys/dev/acpi/wb_acpi.c
134
IPL_SDMMC, false, wb_intr, &sc->sc_wb, device_xname(self));
sys/dev/acpi/wb_acpi.c
136
aprint_error_dev(self,
sys/dev/acpi/wb_acpi.c
141
sc->sc_wb.wb_dev = self;
sys/dev/acpi/wb_acpi.c
149
pmf_device_register(self, wb_acpi_suspend, wb_acpi_resume);
sys/dev/acpi/wb_acpi.c
156
wb_acpi_detach(device_t self, int flags)
sys/dev/acpi/wb_acpi.c
158
struct wb_acpi_softc *sc = device_private(self);
sys/dev/acpi/wb_acpi.c
161
pmf_device_deregister(self);
sys/dev/acpi/wb_acpi.c
181
wb_acpi_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wb_acpi.c
183
struct wb_acpi_softc *sc = device_private(self);
sys/dev/acpi/wb_acpi.c
189
wb_acpi_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wb_acpi.c
191
struct wb_acpi_softc *sc = device_private(self);
sys/dev/acpi/wb_acpi.c
198
device_xname(self), AcpiFormatException(rv));
sys/dev/acpi/wb_acpi.c
92
wb_acpi_attach(device_t parent, device_t self, void *opaque)
sys/dev/acpi/wb_acpi.c
94
struct wb_acpi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
101
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
104
sc->sc_dev = self;
sys/dev/acpi/wmi/wmi_acpi.c
120
acpi_wmi_rescan(self, NULL, NULL);
sys/dev/acpi/wmi/wmi_acpi.c
122
(void)pmf_device_register(self, acpi_wmi_suspend, acpi_wmi_resume);
sys/dev/acpi/wmi/wmi_acpi.c
126
acpi_wmi_detach(device_t self, int flags)
sys/dev/acpi/wmi/wmi_acpi.c
128
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
131
error = config_detach_children(self, flags);
sys/dev/acpi/wmi/wmi_acpi.c
143
pmf_device_deregister(self);
sys/dev/acpi/wmi/wmi_acpi.c
149
acpi_wmi_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/acpi/wmi/wmi_acpi.c
151
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
155
config_found(self, NULL, acpi_wmi_print, CFARGS_NONE);
sys/dev/acpi/wmi/wmi_acpi.c
162
acpi_wmi_childdet(device_t self, device_t child)
sys/dev/acpi/wmi/wmi_acpi.c
164
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
373
acpi_wmi_guid_match(device_t self, const char *guid)
sys/dev/acpi/wmi/wmi_acpi.c
375
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
454
acpi_wmi_event_get(device_t self, uint32_t event, ACPI_BUFFER *obuf)
sys/dev/acpi/wmi/wmi_acpi.c
456
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
500
device_t self = aux;
sys/dev/acpi/wmi/wmi_acpi.c
502
sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
514
acpi_wmi_event_register(device_t self, ACPI_NOTIFY_HANDLER handler)
sys/dev/acpi/wmi/wmi_acpi.c
516
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
530
acpi_wmi_event_deregister(device_t self)
sys/dev/acpi/wmi/wmi_acpi.c
532
return acpi_wmi_event_register(self, NULL);
sys/dev/acpi/wmi/wmi_acpi.c
573
acpi_wmi_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_acpi.c
575
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
583
acpi_wmi_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_acpi.c
585
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
636
acpi_wmi_data_query(device_t self, const char *guid,
sys/dev/acpi/wmi/wmi_acpi.c
639
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
708
acpi_wmi_data_write(device_t self, const char *guid,
sys/dev/acpi/wmi/wmi_acpi.c
711
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
750
acpi_wmi_method(device_t self, const char *guid, uint8_t idx,
sys/dev/acpi/wmi/wmi_acpi.c
753
struct acpi_wmi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_acpi.c
99
acpi_wmi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/wmi/wmi_dell.c
129
wmi_dell_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/wmi/wmi_dell.c
131
struct wmi_dell_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_dell.c
138
sc->sc_dev = self;
sys/dev/acpi/wmi/wmi_dell.c
205
(void)pmf_device_register(self, wmi_dell_suspend, wmi_dell_resume);
sys/dev/acpi/wmi/wmi_dell.c
209
wmi_dell_detach(device_t self, int flags)
sys/dev/acpi/wmi/wmi_dell.c
211
struct wmi_dell_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_dell.c
215
(void)pmf_device_deregister(self);
sys/dev/acpi/wmi/wmi_dell.c
228
wmi_dell_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_dell.c
230
struct wmi_dell_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_dell.c
239
wmi_dell_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_dell.c
241
struct wmi_dell_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_dell.c
288
device_t self = aux;
sys/dev/acpi/wmi/wmi_dell.c
297
sc = device_private(self);
sys/dev/acpi/wmi/wmi_eeepc.c
119
wmi_eeepc_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/wmi/wmi_eeepc.c
121
struct wmi_eeepc_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_eeepc.c
124
sc->sc_dev = self;
sys/dev/acpi/wmi/wmi_eeepc.c
157
aprint_error_dev(self,
sys/dev/acpi/wmi/wmi_eeepc.c
162
(void)pmf_device_register(self, wmi_eeepc_suspend, wmi_eeepc_resume);
sys/dev/acpi/wmi/wmi_eeepc.c
166
wmi_eeepc_detach(device_t self, int flags)
sys/dev/acpi/wmi/wmi_eeepc.c
168
struct wmi_eeepc_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_eeepc.c
179
(void)pmf_device_deregister(self);
sys/dev/acpi/wmi/wmi_eeepc.c
186
wmi_eeepc_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_eeepc.c
188
struct wmi_eeepc_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_eeepc.c
197
wmi_eeepc_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_eeepc.c
199
struct wmi_eeepc_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_eeepc.c
230
device_t self = aux;
sys/dev/acpi/wmi/wmi_eeepc.c
238
sc = device_private(self);
sys/dev/acpi/wmi/wmi_eeepc.c
322
device_printf(self, "unknown key 0x%02X for event 0x%02X\n",
sys/dev/acpi/wmi/wmi_eeepc.c
332
device_printf(self, "failed to get data for "
sys/dev/acpi/wmi/wmi_hp.c
190
wmi_hp_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/wmi/wmi_hp.c
192
struct wmi_hp_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_hp.c
195
sc->sc_dev = self;
sys/dev/acpi/wmi/wmi_hp.c
221
wmi_hp_detach(device_t self, int flags)
sys/dev/acpi/wmi/wmi_hp.c
223
struct wmi_hp_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_hp.c
237
pmf_device_deregister(self);
sys/dev/acpi/wmi/wmi_hp.c
248
wmi_hp_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_hp.c
250
struct wmi_hp_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_hp.c
260
wmi_hp_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_hp.c
262
struct wmi_hp_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_hp.c
276
device_t self = aux;
sys/dev/acpi/wmi/wmi_hp.c
284
sc = device_private(self);
sys/dev/acpi/wmi/wmi_hp.c
312
rv = AcpiOsExecute(handler, wmi_hp_sensor_switch_update, self);
sys/dev/acpi/wmi/wmi_hp.c
316
rv = AcpiOsExecute(handler, wmi_hp_hotkey, self);
sys/dev/acpi/wmi/wmi_hp.c
339
device_t self = aux;
sys/dev/acpi/wmi/wmi_hp.c
341
sc = device_private(self);
sys/dev/acpi/wmi/wmi_hp.c
357
aprint_debug_dev(self, "PROG1 hotkey pressed\n");
sys/dev/acpi/wmi/wmi_hp.c
360
aprint_debug_dev(self, "MEDIA1 hotkey pressed\n");
sys/dev/acpi/wmi/wmi_hp.c
363
aprint_debug_dev(self, "MEDIA2 hotkey pressed\n");
sys/dev/acpi/wmi/wmi_hp.c
366
aprint_debug_dev(self, "INFO hotkey pressed\n");
sys/dev/acpi/wmi/wmi_hp.c
369
aprint_debug_dev(self, "DIRECTION hotkey pressed\n");
sys/dev/acpi/wmi/wmi_hp.c
372
aprint_debug_dev(self, "HELP hotkey pressed\n");
sys/dev/acpi/wmi/wmi_hp.c
375
aprint_debug_dev(self, "unknown hotkey 0x%02x\n", sc->sc_val);
sys/dev/acpi/wmi/wmi_hp.c
600
device_t self = aux;
sys/dev/acpi/wmi/wmi_hp.c
602
sc = device_private(self);
sys/dev/acpi/wmi/wmi_msi.c
101
struct wmi_msi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_msi.c
104
(void)pmf_device_deregister(self);
sys/dev/acpi/wmi/wmi_msi.c
111
wmi_msi_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_msi.c
113
struct wmi_msi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_msi.c
122
wmi_msi_resume(device_t self, const pmf_qual_t *qual)
sys/dev/acpi/wmi/wmi_msi.c
124
struct wmi_msi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_msi.c
136
device_t self = aux;
sys/dev/acpi/wmi/wmi_msi.c
144
sc = device_private(self);
sys/dev/acpi/wmi/wmi_msi.c
77
wmi_msi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/wmi/wmi_msi.c
79
struct wmi_msi_softc *sc = device_private(self);
sys/dev/acpi/wmi/wmi_msi.c
82
sc->sc_dev = self;
sys/dev/acpi/wmi/wmi_msi.c
95
(void)pmf_device_register(self, wmi_msi_suspend, wmi_msi_resume);
sys/dev/acpi/wmi/wmi_msi.c
99
wmi_msi_detach(device_t self, int flags)
sys/dev/acpi/wss_acpi.c
107
wss_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/wss_acpi.c
109
struct wss_softc *sc = device_private(self);
sys/dev/acpi/wss_acpi.c
119
sc->sc_ad1848.sc_ad1848.sc_dev = self;
sys/dev/acpi/wss_acpi.c
124
rv = acpi_resource_parse(self,
sys/dev/acpi/wss_acpi.c
135
aprint_error_dev(self,
sys/dev/acpi/wss_acpi.c
141
aprint_error_dev(self, "unable to map i/o registers\n");
sys/dev/acpi/wss_acpi.c
146
aprint_error_dev(self, "unable to map opl i/o registers\n");
sys/dev/acpi/wss_acpi.c
155
aprint_error_dev(self, "unable to find irq resource\n");
sys/dev/acpi/wss_acpi.c
165
aprint_error_dev(self, " unable to find drq resources\n");
sys/dev/acpi/wss_acpi.c
178
aprint_error_dev(self, "ad1848 probe failed\n");
sys/dev/acpi/wss_acpi.c
184
aprint_naive("%s", device_xname(self));
sys/dev/acpi/wss_acpi.c
185
aprint_normal("%s", device_xname(self));
sys/dev/acpi/wss_acpi.c
191
config_found(self, &arg, audioprint, CFARGS(.iattr = "wss"));
sys/dev/acpi/xhci_acpi.c
112
sc->sc_dev = self;
sys/dev/acpi/xhci_acpi.c
125
aprint_error_dev(self, "couldn't find mem resource\n");
sys/dev/acpi/xhci_acpi.c
132
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/xhci_acpi.c
147
aprint_error_dev(self,
sys/dev/acpi/xhci_acpi.c
158
aprint_error_dev(self, "couldn't find irq resource\n");
sys/dev/acpi/xhci_acpi.c
167
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/acpi/xhci_acpi.c
173
aprint_verbose_dev(self, "64-bit DMA");
sys/dev/acpi/xhci_acpi.c
182
aprint_verbose_dev(self, "32-bit DMA\n");
sys/dev/acpi/xhci_acpi.c
186
ih = acpi_intr_establish_irq(self, irq,
sys/dev/acpi/xhci_acpi.c
187
IPL_USB, true, xhci_intr, sc, device_xname(self));
sys/dev/acpi/xhci_acpi.c
189
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/acpi/xhci_acpi.c
195
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/dev/acpi/xhci_acpi.c
199
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/dev/acpi/xhci_acpi.c
200
sc->sc_child2 = config_found(self, &sc->sc_bus2, usbctlprint,
sys/dev/acpi/xhci_acpi.c
93
xhci_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/xhci_acpi.c
95
struct xhci_acpi_softc * const asc = device_private(self);
sys/dev/acpi/ym_acpi.c
125
aprint_error_dev(self,
sys/dev/acpi/ym_acpi.c
131
aprint_error_dev(self, "unable to map i/o registers (sb)\n");
sys/dev/acpi/ym_acpi.c
136
aprint_error_dev(self, "unable to map i/o registers (codec)\n");
sys/dev/acpi/ym_acpi.c
141
aprint_error_dev(self, "unable to map i/o registers (opl)\n");
sys/dev/acpi/ym_acpi.c
147
aprint_error_dev(self, "unable to map i/o registers (mpu)\n");
sys/dev/acpi/ym_acpi.c
153
aprint_error_dev(self,
sys/dev/acpi/ym_acpi.c
163
aprint_error_dev(self, "unable to find irq resource\n");
sys/dev/acpi/ym_acpi.c
173
aprint_error_dev(self, "unable to find drq resources\n");
sys/dev/acpi/ym_acpi.c
188
aprint_error_dev(self, "bus_space_subregion failed\n");
sys/dev/acpi/ym_acpi.c
193
aprint_normal_dev(self, "");
sys/dev/acpi/ym_acpi.c
80
ym_acpi_attach(device_t parent, device_t self, void *aux)
sys/dev/acpi/ym_acpi.c
82
struct ym_softc *sc = device_private(self);
sys/dev/acpi/ym_acpi.c
94
ac->sc_dev = self;
sys/dev/acpi/ym_acpi.c
96
rv = acpi_resource_parse(self,
sys/dev/adb/adb_bt.c
88
adbbt_attach(device_t parent, device_t self, void *aux)
sys/dev/adb/adb_bt.c
90
struct adbbt_softc *sc = device_private(self);
sys/dev/adb/adb_bt.c
93
sc->sc_dev = self;
sys/dev/adb/adb_bus.c
80
nadb_attach(device_t parent, device_t self, void *aux)
sys/dev/adb/adb_bus.c
82
struct nadb_softc *sc = device_private(self);
sys/dev/adb/adb_bus.c
85
sc->sc_dev = self;
sys/dev/adb/adb_bus.c
92
config_interrupts(self, nadb_init);
sys/dev/adb/adb_kbd.c
183
adbkbd_attach(device_t parent, device_t self, void *aux)
sys/dev/adb/adb_kbd.c
185
struct adbkbd_softc *sc = device_private(self);
sys/dev/adb/adb_kbd.c
194
sc->sc_dev = self;
sys/dev/adb/adb_kbd.c
382
sc->sc_wskbddev = config_found(self, &a, wskbddevprint,
sys/dev/adb/adb_kbd.c
441
sc->sc_wsmousedev = config_found(self, &am, wsmousedevprint,
sys/dev/adb/adb_ktm.c
115
ktm_attach(device_t parent, device_t self, void *aux)
sys/dev/adb/adb_ktm.c
117
struct ktm_softc *sc = device_private(self);
sys/dev/adb/adb_ktm.c
121
sc->sc_dev = self;
sys/dev/adb/adb_ktm.c
139
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/dev/adb/adb_ms.c
142
adbms_attach(device_t parent, device_t self, void *aux)
sys/dev/adb/adb_ms.c
144
struct adbms_softc *sc = device_private(self);
sys/dev/adb/adb_ms.c
148
sc->sc_dev = self;
sys/dev/adb/adb_ms.c
240
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/dev/altmem/altmem.c
103
altmem_attach(device_t parent, device_t self, void *opaque)
sys/dev/altmem/altmem.c
105
struct altmem_softc *sc = device_private(self);
sys/dev/altmem/altmem.c
109
sc->sc_dev = self;
sys/dev/altmem/altmem.c
119
disk_init(&sc->sc_dkdev, device_xname(self), &altmemdkdriver);
sys/dev/ata/ata.c
2317
atabus_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/ata/ata.c
2319
struct atabus_softc *sc = device_private(self);
sys/dev/ata/ata.c
590
atabus_attach(device_t parent, device_t self, void *aux)
sys/dev/ata/ata.c
592
struct atabus_softc *sc = device_private(self);
sys/dev/ata/ata.c
602
sc->sc_dev = self;
sys/dev/ata/ata.c
618
&chp->ch_thread, "%s", device_xname(self))) != 0)
sys/dev/ata/ata.c
619
aprint_error_dev(self,
sys/dev/ata/ata.c
622
if (!pmf_device_register(self, atabus_suspend, atabus_resume))
sys/dev/ata/ata.c
623
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/ata/ata.c
632
atabus_detach(device_t self, int flags)
sys/dev/ata/ata.c
634
struct atabus_softc *sc = device_private(self);
sys/dev/ata/ata.c
644
device_xname(self), device_xname(dev)), DEBUG_DETACH);
sys/dev/ata/ata.c
664
__LINE__, device_xname(self), device_xname(dev)),
sys/dev/ata/ata.c
689
device_xname(self), error, device_xname(dev)),
sys/dev/ata/ata.c
697
atabus_childdetached(device_t self, device_t child)
sys/dev/ata/ata.c
700
struct atabus_softc *sc = device_private(self);
sys/dev/ata/ata.c
738
panic("%s: unknown child %p", device_xname(self),
sys/dev/ata/ata_raid.c
117
ataraid_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/ata/ata_raid.c
121
(void)ata_raid_finalize(self);
sys/dev/ata/ata_raid.c
155
ata_raid_finalize(device_t self)
sys/dev/ata/ata_raid.c
201
ataraid_attach(device_t parent, device_t self, void *aux)
sys/dev/ata/ata_raid.c
210
aprint_normal_dev(self, "found %u RAID volume%s\n",
sys/dev/ata/ata_raid.c
218
config_found(self, aai, ataraid_print,
sys/dev/ata/ata_raid.c
247
ata_raid_check_component(device_t self)
sys/dev/ata/ata_raid.c
249
struct wd_softc *sc = device_private(self);
sys/dev/ata/ld_ataraid.c
150
ld_ataraid_attach(device_t parent, device_t self, void *aux)
sys/dev/ata/ld_ataraid.c
152
struct ld_ataraid_softc *sc = device_private(self);
sys/dev/ata/ld_ataraid.c
161
ld->sc_dv = self;
sys/dev/ata/ld_ataraid.c
258
if (bio_register(self, ld_ataraid_bioctl) != 0)
sys/dev/ata/ld_ataraid.c
592
ld_ataraid_bioctl(device_t self, u_long cmd, void *addr)
sys/dev/ata/ld_ataraid.c
594
struct ld_ataraid_softc *sc = device_private(self);
sys/dev/ata/wd.c
1268
wd_firstopen(device_t self, dev_t dev, int flag, int fmt)
sys/dev/ata/wd.c
1270
struct wd_softc *wd = device_private(self);
sys/dev/ata/wd.c
1304
wd_lastclose(device_t self)
sys/dev/ata/wd.c
1306
struct wd_softc *wd = device_private(self);
sys/dev/ata/wd.c
304
wdattach(device_t parent, device_t self, void *aux)
sys/dev/ata/wd.c
306
struct wd_softc *wd = device_private(self);
sys/dev/ata/wd.c
315
dksc->sc_dev = self;
sys/dev/ata/wd.c
343
aprint_error_dev(self, "IDENTIFY failed\n");
sys/dev/ata/wd.c
364
aprint_normal_dev(self, "<%s>\n", wd->sc_typename);
sys/dev/ata/wd.c
373
aprint_normal_dev(self, "quirks %s\n", sbuf);
sys/dev/ata/wd.c
376
aprint_error_dev(self, "drive corrupts write transfers with certain controllers, consider replacing\n");
sys/dev/ata/wd.c
386
aprint_verbose_dev(self, "drive supports %d-sector PIO transfers,",
sys/dev/ata/wd.c
465
aprint_normal_dev(self, "%s, %d cyl, %d head, %d sec, "
sys/dev/ata/wd.c
485
device_xname(self), wd->sc_params.atap_dmatiming_mimi,
sys/dev/ata/wd.c
490
aprint_normal_dev(self, "WARNING: block size %u "
sys/dev/ata/wd.c
503
dk_init(dksc, self, dtype);
sys/dev/ata/wd.c
519
if (!pmf_device_register1(self, wd_suspend, NULL, wd_shutdown))
sys/dev/ata/wd.c
520
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/ata/wd.c
542
wddetach(device_t self, int flags)
sys/dev/ata/wd.c
544
struct wd_softc *wd = device_private(self);
sys/dev/ata/wd.c
548
if ((rc = disk_begindetach(&dksc->sc_dkdev, wd_lastclose, self, flags)) != 0)
sys/dev/ata/wd.c
557
mn = WDMINOR(device_unit(self), i);
sys/dev/ata/wd.c
605
pmf_device_deregister(self);
sys/dev/ata/wd.c
875
device_t self = x;
sys/dev/ata/wd.c
876
struct wd_softc *wd = device_private(self);
sys/dev/ata/wd.c
889
wddone(device_t self, struct ata_xfer *xfer)
sys/dev/ata/wd.c
891
struct wd_softc *wd = device_private(self);
sys/dev/audio/audio.c
1039
aprint_error_dev(self,
sys/dev/audio/audio.c
1046
aprint_error_dev(self, "audio_hw_probe failed: "
sys/dev/audio/audio.c
1051
aprint_error_dev(self, "audio_hw_probe failed: "
sys/dev/audio/audio.c
1062
aprint_error_dev(self,
sys/dev/audio/audio.c
1072
aprint_error_dev(self, "audio_properties failed\n");
sys/dev/audio/audio.c
1078
aprint_error_dev(self,
sys/dev/audio/audio.c
1089
aprint_error_dev(self,
sys/dev/audio/audio.c
1150
callout_setfunc(&sc->sc_idle_counter, audio_idle, self);
sys/dev/audio/audio.c
1153
if (!pmf_device_register(self, audio_suspend, audio_resume))
sys/dev/audio/audio.c
1154
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/audio/audio.c
1156
if (!device_active_register(self, audio_activity))
sys/dev/audio/audio.c
1157
aprint_error_dev(self, "couldn't register activity handler\n");
sys/dev/audio/audio.c
1160
if (!pmf_event_register(self, PMFE_AUDIO_VOLUME_DOWN,
sys/dev/audio/audio.c
1162
aprint_error_dev(self, "couldn't add volume down handler\n");
sys/dev/audio/audio.c
1163
if (!pmf_event_register(self, PMFE_AUDIO_VOLUME_UP,
sys/dev/audio/audio.c
1165
aprint_error_dev(self, "couldn't add volume up handler\n");
sys/dev/audio/audio.c
1166
if (!pmf_event_register(self, PMFE_AUDIO_VOLUME_TOGGLE,
sys/dev/audio/audio.c
1168
aprint_error_dev(self, "couldn't add volume toggle handler\n");
sys/dev/audio/audio.c
1178
audiorescan(self, NULL, NULL);
sys/dev/audio/audio.c
1356
audioactivate(device_t self, enum devact act)
sys/dev/audio/audio.c
1358
struct audio_softc *sc = device_private(self);
sys/dev/audio/audio.c
1373
audiodetach(device_t self, int flags)
sys/dev/audio/audio.c
1380
sc = device_private(self);
sys/dev/audio/audio.c
1388
error = config_detach_children(self, flags);
sys/dev/audio/audio.c
1403
mn = device_unit(self);
sys/dev/audio/audio.c
1464
pmf_event_deregister(self, PMFE_AUDIO_VOLUME_DOWN,
sys/dev/audio/audio.c
1466
pmf_event_deregister(self, PMFE_AUDIO_VOLUME_UP,
sys/dev/audio/audio.c
1468
pmf_event_deregister(self, PMFE_AUDIO_VOLUME_TOGGLE,
sys/dev/audio/audio.c
1474
device_active_deregister(self, audio_activity);
sys/dev/audio/audio.c
1477
pmf_device_deregister(self);
sys/dev/audio/audio.c
1508
audiochilddet(device_t self, device_t child)
sys/dev/audio/audio.c
1526
audiorescan(device_t self, const char *ifattr, const int *locators)
sys/dev/audio/audio.c
1528
struct audio_softc *sc = device_private(self);
sys/dev/audio/audio.c
917
audioattach(device_t parent, device_t self, void *aux)
sys/dev/audio/audio.c
935
sc = device_private(self);
sys/dev/audio/audio.c
936
sc->sc_dev = self;
sys/dev/bi/if_ni.c
226
niattach(device_t parent, device_t self, void *aux)
sys/dev/bi/if_ni.c
229
struct ni_softc *sc = device_private(self);
sys/dev/bi/if_ni.c
237
sc->sc_dev = self;
sys/dev/bi/if_ni.c
249
device_xname(self), "intr");
sys/dev/bi/if_ni.c
280
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/bi/if_ni.c
299
aprint_error_dev(self, "BROKE bit set after reset\n");
sys/dev/bi/if_ni.c
422
aprint_error_dev(self, "no response to set params\n");
sys/dev/bi/if_ni.c
460
aprint_normal_dev(self, "hardware address %s\n",
sys/dev/bi/if_ni.c
469
aprint_error_dev(self,
sys/dev/bi/kdb.c
140
kdbattach(device_t parent, device_t self, void *aux)
sys/dev/bi/kdb.c
142
struct kdb_softc *sc = device_private(self);
sys/dev/bi/kdb.c
149
sc->sc_dev = self;
sys/dev/bi/uba_bi.c
132
uba_bi_attach(device_t parent, device_t self, void *aux)
sys/dev/bi/uba_bi.c
134
struct uba_softc *sc = device_private(self);
sys/dev/bi/uba_bi.c
146
sc->uh_dev = self;
sys/dev/bi/uba_bi.c
169
aprint_error_dev(self, "BROKE bit set\n");
sys/dev/bluetooth/bcsp.c
1646
bcsp_enable(device_t self)
sys/dev/bluetooth/bcsp.c
1648
struct bcsp_softc *sc = device_private(self);
sys/dev/bluetooth/bcsp.c
1665
bcsp_disable(device_t self)
sys/dev/bluetooth/bcsp.c
1667
struct bcsp_softc *sc = device_private(self);
sys/dev/bluetooth/bcsp.c
1723
bcsp_output_cmd(device_t self, struct mbuf *m)
sys/dev/bluetooth/bcsp.c
1725
struct bcsp_softc *sc = device_private(self);
sys/dev/bluetooth/bcsp.c
1742
bcsp_output_acl(device_t self, struct mbuf *m)
sys/dev/bluetooth/bcsp.c
1744
struct bcsp_softc *sc = device_private(self);
sys/dev/bluetooth/bcsp.c
1761
bcsp_output_sco(device_t self, struct mbuf *m)
sys/dev/bluetooth/bcsp.c
1763
struct bcsp_softc *sc = device_private(self);
sys/dev/bluetooth/bcsp.c
1779
bcsp_stats(device_t self, struct bt_stats *dest, int flush)
sys/dev/bluetooth/bcsp.c
1781
struct bcsp_softc *sc = device_private(self);
sys/dev/bluetooth/bcsp.c
248
bcsp_match(device_t self __unused, cfdata_t cfdata __unused,
sys/dev/bluetooth/bcsp.c
262
bcsp_attach(device_t parent __unused, device_t self, void *aux __unused)
sys/dev/bluetooth/bcsp.c
264
struct bcsp_softc *sc = device_private(self);
sys/dev/bluetooth/bcsp.c
271
sc->sc_dev = self;
sys/dev/bluetooth/bcsp.c
287
sc->sc_unit = hci_attach_pcb(&bcsp_hci, self, 0);
sys/dev/bluetooth/bcsp.c
290
0, CTLTYPE_NODE, device_xname(self),
sys/dev/bluetooth/bcsp.c
334
aprint_error_dev(self, "sysctl_createv failed (rc = %d)\n", rc);
sys/dev/bluetooth/bcsp.c
342
bcsp_detach(device_t self, int flags __unused)
sys/dev/bluetooth/bcsp.c
344
struct bcsp_softc *sc = device_private(self);
sys/dev/bluetooth/bth5.c
1713
bth5_enable(device_t self)
sys/dev/bluetooth/bth5.c
1715
struct bth5_softc *sc = device_private(self);
sys/dev/bluetooth/bth5.c
1732
bth5_disable(device_t self)
sys/dev/bluetooth/bth5.c
1734
struct bth5_softc *sc = device_private(self);
sys/dev/bluetooth/bth5.c
1790
bth5_output_cmd(device_t self, struct mbuf *m)
sys/dev/bluetooth/bth5.c
1792
struct bth5_softc *sc = device_private(self);
sys/dev/bluetooth/bth5.c
1809
bth5_output_acl(device_t self, struct mbuf *m)
sys/dev/bluetooth/bth5.c
1811
struct bth5_softc *sc = device_private(self);
sys/dev/bluetooth/bth5.c
1828
bth5_output_sco(device_t self, struct mbuf *m)
sys/dev/bluetooth/bth5.c
1830
struct bth5_softc *sc = device_private(self);
sys/dev/bluetooth/bth5.c
1846
bth5_stats(device_t self, struct bt_stats *dest, int flush)
sys/dev/bluetooth/bth5.c
1848
struct bth5_softc *sc = device_private(self);
sys/dev/bluetooth/bth5.c
253
bthfive_match(device_t self __unused, cfdata_t cfdata __unused,
sys/dev/bluetooth/bth5.c
267
bthfive_attach(device_t parent __unused, device_t self, void *aux __unused)
sys/dev/bluetooth/bth5.c
269
struct bth5_softc *sc = device_private(self);
sys/dev/bluetooth/bth5.c
276
sc->sc_dev = self;
sys/dev/bluetooth/bth5.c
292
sc->sc_unit = hci_attach_pcb(&bth5_hci, self, 0);
sys/dev/bluetooth/bth5.c
295
0, CTLTYPE_NODE, device_xname(self),
sys/dev/bluetooth/bth5.c
339
aprint_error_dev(self, "sysctl_createv failed (rc = %d)\n", rc);
sys/dev/bluetooth/bth5.c
347
bthfive_detach(device_t self, int flags __unused)
sys/dev/bluetooth/bth5.c
349
struct bth5_softc *sc = device_private(self);
sys/dev/bluetooth/bthidev.c
169
bthidev_match(device_t self, cfdata_t cfdata, void *aux)
sys/dev/bluetooth/bthidev.c
182
bthidev_attach(device_t parent, device_t self, void *aux)
sys/dev/bluetooth/bthidev.c
184
struct bthidev_softc *sc = device_private(self);
sys/dev/bluetooth/bthidev.c
201
sc->sc_dev = self;
sys/dev/bluetooth/bthidev.c
213
cv_init(&sc->sc_cv, device_xname(self));
sys/dev/bluetooth/bthidev.c
300
sc, &sc->sc_lwp, "%s", device_xname(self)) != 0) {
sys/dev/bluetooth/bthidev.c
301
aprint_error_dev(self, "failed to create input thread\n");
sys/dev/bluetooth/bthidev.c
322
dev = config_found(self, &bha, bthidev_print,
sys/dev/bluetooth/bthidev.c
329
hidev->sc_parent = self;
sys/dev/bluetooth/bthidev.c
337
pmf_device_register(self, NULL, NULL);
sys/dev/bluetooth/bthidev.c
345
aprint_error_dev(self, "failed to listen (%d)\n", err);
sys/dev/bluetooth/bthidev.c
353
bthidev_detach(device_t self, int flags)
sys/dev/bluetooth/bthidev.c
355
struct bthidev_softc *sc = device_private(self);
sys/dev/bluetooth/bthidev.c
392
pmf_device_deregister(self);
sys/dev/bluetooth/bthub.c
106
bthub_attach(device_t parent, device_t self, void *aux)
sys/dev/bluetooth/bthub.c
112
dict = device_properties(self);
sys/dev/bluetooth/bthub.c
124
if (!pmf_device_register(self, NULL, NULL)) {
sys/dev/bluetooth/bthub.c
130
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/bluetooth/bthub.c
135
bthub_detach(device_t self, int flags)
sys/dev/bluetooth/bthub.c
138
pmf_device_deregister(self);
sys/dev/bluetooth/bthub.c
140
return config_detach_children(self, flags);
sys/dev/bluetooth/bthub.c
181
device_t dev, self;
sys/dev/bluetooth/bthub.c
195
self = device_lookup(&bthub_cd, unit);
sys/dev/bluetooth/bthub.c
196
if (self == NULL)
sys/dev/bluetooth/bthub.c
199
prop = device_properties(self);
sys/dev/bluetooth/bthub.c
219
if (device_parent(dev) != self)
sys/dev/bluetooth/bthub.c
241
dev = config_found(self, dict, bthub_print, CFARGS_NONE);
sys/dev/bluetooth/bthub.c
99
bthub_match(device_t self, cfdata_t cfdata, void *arg)
sys/dev/bluetooth/btkbd.c
197
btkbd_match(device_t self, cfdata_t cfdata, void *aux)
sys/dev/bluetooth/btkbd.c
209
btkbd_attach(device_t parent, device_t self, void *aux)
sys/dev/bluetooth/btkbd.c
211
struct btkbd_softc *sc = device_private(self);
sys/dev/bluetooth/btkbd.c
239
sc->sc_wskbd = config_found(self, &wska, wskbddevprint, CFARGS_NONE);
sys/dev/bluetooth/btkbd.c
241
pmf_device_register(self, NULL, NULL);
sys/dev/bluetooth/btkbd.c
245
btkbd_detach(device_t self, int flags)
sys/dev/bluetooth/btkbd.c
247
struct btkbd_softc *sc = device_private(self);
sys/dev/bluetooth/btkbd.c
250
pmf_device_deregister(self);
sys/dev/bluetooth/btmagic.c
274
btmagic_match(device_t self, cfdata_t cfdata, void *aux)
sys/dev/bluetooth/btmagic.c
289
btmagic_attach(device_t parent, device_t self, void *aux)
sys/dev/bluetooth/btmagic.c
291
struct btmagic_softc *sc = device_private(self);
sys/dev/bluetooth/btmagic.c
300
sc->sc_dev = self;
sys/dev/bluetooth/btmagic.c
351
CTLTYPE_NODE, device_xname(self),
sys/dev/bluetooth/btmagic.c
408
wsma.accesscookie = self;
sys/dev/bluetooth/btmagic.c
409
sc->sc_wsmouse = config_found(self, &wsma, wsmousedevprint, CFARGS_NONE);
sys/dev/bluetooth/btmagic.c
411
aprint_error_dev(self, "failed to attach wsmouse\n");
sys/dev/bluetooth/btmagic.c
415
pmf_device_register(self, NULL, NULL);
sys/dev/bluetooth/btmagic.c
422
aprint_error_dev(self, "failed to listen (%d)\n", err);
sys/dev/bluetooth/btmagic.c
428
btmagic_detach(device_t self, int flags)
sys/dev/bluetooth/btmagic.c
430
struct btmagic_softc *sc = device_private(self);
sys/dev/bluetooth/btmagic.c
468
pmf_device_deregister(self);
sys/dev/bluetooth/btmagic.c
674
btmagic_wsmouse_enable(void *self)
sys/dev/bluetooth/btmagic.c
676
struct btmagic_softc *sc = device_private(self);
sys/dev/bluetooth/btmagic.c
687
btmagic_wsmouse_ioctl(void *self, unsigned long cmd, void *data,
sys/dev/bluetooth/btmagic.c
708
btmagic_wsmouse_disable(void *self)
sys/dev/bluetooth/btmagic.c
710
struct btmagic_softc *sc = device_private(self);
sys/dev/bluetooth/btms.c
199
btms_attach(device_t parent, device_t self, void *aux)
sys/dev/bluetooth/btms.c
201
struct btms_softc *sc = device_private(self);
sys/dev/bluetooth/btms.c
330
sc->sc_wsmouse = config_found(self, &wsma, wsmousedevprint, CFARGS_NONE);
sys/dev/bluetooth/btms.c
332
pmf_device_register(self, NULL, NULL);
sys/dev/bluetooth/btms.c
336
btms_detach(device_t self, int flags)
sys/dev/bluetooth/btms.c
338
struct btms_softc *sc = device_private(self);
sys/dev/bluetooth/btms.c
341
pmf_device_deregister(self);
sys/dev/bluetooth/btsco.c
255
btsco_match(device_t self, cfdata_t cfdata, void *aux)
sys/dev/bluetooth/btsco.c
271
btsco_attach(device_t parent, device_t self, void *aux)
sys/dev/bluetooth/btsco.c
273
struct btsco_softc *sc = device_private(self);
sys/dev/bluetooth/btsco.c
283
sc->sc_name = device_xname(self);
sys/dev/bluetooth/btsco.c
321
aprint_error_dev(self, "softint_establish failed\n");
sys/dev/bluetooth/btsco.c
328
sc->sc_audio = audio_attach_mi(&btsco_if, sc, self);
sys/dev/bluetooth/btsco.c
330
aprint_error_dev(self, "audio_attach_mi failed\n");
sys/dev/bluetooth/btsco.c
334
pmf_device_register(self, NULL, NULL);
sys/dev/bluetooth/btsco.c
338
btsco_detach(device_t self, int flags)
sys/dev/bluetooth/btsco.c
340
struct btsco_softc *sc = device_private(self);
sys/dev/bluetooth/btsco.c
344
pmf_device_deregister(self);
sys/dev/bluetooth/btsco.c
378
aprint_error_dev(self, "tx_refcnt=%d!\n", sc->sc_tx_refcnt);
sys/dev/bluetooth/btuart.c
166
btuart_match(device_t self __unused, cfdata_t cfdata __unused,
sys/dev/bluetooth/btuart.c
179
btuart_attach(device_t parent __unused, device_t self, void *aux __unused)
sys/dev/bluetooth/btuart.c
181
struct btuart_softc *sc = device_private(self);
sys/dev/bluetooth/btuart.c
183
sc->sc_dev = self;
sys/dev/bluetooth/btuart.c
190
sc->sc_unit = hci_attach_pcb(&btuart_hci, self, 0);
sys/dev/bluetooth/btuart.c
192
aprint_error_dev(self, "HCI attach failed\n");
sys/dev/bluetooth/btuart.c
200
btuart_detach(device_t self, int flags __unused)
sys/dev/bluetooth/btuart.c
202
struct btuart_softc *sc = device_private(self);
sys/dev/bluetooth/btuart.c
204
btuart_disable(self);
sys/dev/bluetooth/btuart.c
556
btuart_enable(device_t self)
sys/dev/bluetooth/btuart.c
558
struct btuart_softc *sc = device_private(self);
sys/dev/bluetooth/btuart.c
575
btuart_disable(device_t self)
sys/dev/bluetooth/btuart.c
577
struct btuart_softc *sc = device_private(self);
sys/dev/bluetooth/btuart.c
601
btuart_output_cmd(device_t self, struct mbuf *m)
sys/dev/bluetooth/btuart.c
603
struct btuart_softc *sc = device_private(self);
sys/dev/bluetooth/btuart.c
619
btuart_output_acl(device_t self, struct mbuf *m)
sys/dev/bluetooth/btuart.c
621
struct btuart_softc *sc = device_private(self);
sys/dev/bluetooth/btuart.c
637
btuart_output_sco(device_t self, struct mbuf *m)
sys/dev/bluetooth/btuart.c
639
struct btuart_softc *sc = device_private(self);
sys/dev/bluetooth/btuart.c
653
btuart_stats(device_t self, struct bt_stats *dest, int flush)
sys/dev/bluetooth/btuart.c
655
struct btuart_softc *sc = device_private(self);
sys/dev/cadence/if_cemac.c
684
cemac_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/cadence/if_cemac.c
686
struct cemac_softc * const sc = device_private(self);
sys/dev/cadence/if_cemac.c
700
cemac_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/cadence/if_cemac.c
702
struct cemac_softc * const sc = device_private(self);
sys/dev/cardbus/adv_cardbus.c
103
adv_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/adv_cardbus.c
106
struct adv_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/adv_cardbus.c
114
sc->sc_dev = self;
sys/dev/cardbus/adv_cardbus.c
177
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/cardbus/adv_cardbus.c
212
aprint_error_dev(self, "adv_init failed\n");
sys/dev/cardbus/adv_cardbus.c
221
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/cardbus/adv_cardbus.c
232
adv_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/adv_cardbus.c
234
struct adv_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/ahc_cardbus.c
107
ahc_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/ahc_cardbus.c
110
struct ahc_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/ahc_cardbus.c
120
ahc->sc_dev = self;
sys/dev/cardbus/ahc_cardbus.c
245
ahc_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/ahc_cardbus.c
247
struct ahc_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/cardbus.c
107
cardbusattach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/cardbus.c
109
struct cardbus_softc *sc = device_private(self);
sys/dev/cardbus/cardbus.c
112
sc->sc_dev = self;
sys/dev/cardbus/cardbus.c
1222
device_t self = device_parent(child);
sys/dev/cardbus/cardbus.c
1223
struct cardbus_softc *sc = device_private(self);
sys/dev/cardbus/cardbus.c
134
if (!pmf_device_register(self, NULL, NULL))
sys/dev/cardbus/cardbus.c
135
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/cardbus.c
139
cardbusdetach(device_t self, int flags)
sys/dev/cardbus/cardbus.c
143
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/cardbus/cardbus.c
146
pmf_device_deregister(self);
sys/dev/cardbus/cardbus.c
436
cardbus_rescan(device_t self, const char *ifattr,
sys/dev/cardbus/cardbus.c
439
struct cardbus_softc *sc = device_private(self);
sys/dev/cardbus/cardbus.c
492
aprint_debug_dev(self, "id reg valid in %d iterations\n", i);
sys/dev/cardbus/cardbus.c
710
cardbus_childdetached(device_t self, device_t child)
sys/dev/cardbus/cardbus.c
712
struct cardbus_softc *sc = device_private(self);
sys/dev/cardbus/cardslot.c
101
cardslotchilddet(device_t self, device_t child)
sys/dev/cardbus/cardslot.c
103
struct cardslot_softc *sc = device_private(self);
sys/dev/cardbus/cardslot.c
115
cardslotattach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/cardslot.c
117
struct cardslot_softc *sc = device_private(self);
sys/dev/cardbus/cardslot.c
126
sc->sc_dev = self;
sys/dev/cardbus/cardslot.c
138
DPRINTF(("%s attaching CardBus bus...\n", device_xname(self)));
sys/dev/cardbus/cardslot.c
140
csc = device_private(config_found(self, cba, cardslot_cb_print,
sys/dev/cardbus/cardslot.c
145
device_xname(self)));
sys/dev/cardbus/cardslot.c
151
sc->sc_16_softc = config_found(self, pa, cardslot_16_print,
sys/dev/cardbus/cardslot.c
163
config_pending_incr(self);
sys/dev/cardbus/cardslot.c
165
sc, &sc->sc_event_thread, "%s", device_xname(self))) {
sys/dev/cardbus/cardslot.c
184
if (!pmf_device_register(self, NULL, NULL))
sys/dev/cardbus/cardslot.c
185
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/cardslot.c
189
cardslotdetach(device_t self, int flags)
sys/dev/cardbus/cardslot.c
192
struct cardslot_softc *sc = device_private(self);
sys/dev/cardbus/cardslot.c
194
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/cardbus/cardslot.c
208
aprint_error_dev(self, "events outstanding");
sys/dev/cardbus/cardslot.c
215
pmf_device_deregister(self);
sys/dev/cardbus/com_cardbus.c
204
com_cardbus_attach (device_t parent, device_t self, void *aux)
sys/dev/cardbus/com_cardbus.c
206
struct com_softc *sc = device_private(self);
sys/dev/cardbus/com_cardbus.c
207
struct com_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/com_cardbus.c
212
sc->sc_dev = self;
sys/dev/cardbus/com_cardbus.c
321
com_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/com_cardbus.c
323
struct com_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/com_cardbus.c
324
struct com_softc *sc = device_private(self);
sys/dev/cardbus/com_cardbus.c
328
if ((error = com_detach(self, flags)) != 0)
sys/dev/cardbus/ehci_cardbus.c
123
ehci_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/ehci_cardbus.c
125
struct ehci_cardbus_softc *sc = device_private(self);
sys/dev/cardbus/ehci_cardbus.c
133
const char *devname = device_xname(self);
sys/dev/cardbus/ehci_cardbus.c
136
sc->sc.sc_dev = self;
sys/dev/cardbus/ehci_cardbus.c
201
if (!pmf_device_register1(self, ehci_cardbus_suspend,
sys/dev/cardbus/ehci_cardbus.c
203
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/ehci_cardbus.c
206
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/dev/cardbus/ehci_cardbus.c
211
ehci_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/ehci_cardbus.c
213
struct ehci_cardbus_softc *sc = device_private(self);
sys/dev/cardbus/fwohci_cardbus.c
106
aprint_error_dev(self, "can't map OHCI register space\n");
sys/dev/cardbus/fwohci_cardbus.c
110
sc->sc_sc.fc.dev = self;
sys/dev/cardbus/fwohci_cardbus.c
126
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/cardbus/fwohci_cardbus.c
138
fwohci_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/fwohci_cardbus.c
140
struct fwohci_cardbus_softc *sc = device_private(self);
sys/dev/cardbus/fwohci_cardbus.c
86
fwohci_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/fwohci_cardbus.c
89
struct fwohci_cardbus_softc *sc = device_private(self);
sys/dev/cardbus/if_ath_cardbus.c
110
ath_cardbus_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/cardbus/if_ath_cardbus.c
112
struct ath_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_ath_cardbus.c
123
ath_cardbus_resume(device_t self, const pmf_qual_t *qual)
sys/dev/cardbus/if_ath_cardbus.c
125
struct ath_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_ath_cardbus.c
131
aprint_error_dev(self,
sys/dev/cardbus/if_ath_cardbus.c
154
ath_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_ath_cardbus.c
156
struct ath_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_ath_cardbus.c
162
sc->sc_dev = self;
sys/dev/cardbus/if_ath_cardbus.c
176
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/cardbus/if_ath_cardbus.c
194
if (pmf_device_register(self,
sys/dev/cardbus/if_ath_cardbus.c
196
pmf_class_network_register(self, &sc->sc_if);
sys/dev/cardbus/if_ath_cardbus.c
197
pmf_device_suspend(self, &sc->sc_qual);
sys/dev/cardbus/if_ath_cardbus.c
199
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/if_ath_cardbus.c
203
ath_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_ath_cardbus.c
205
struct ath_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_ath_cardbus.c
219
pmf_device_deregister(self);
sys/dev/cardbus/if_athn_cardbus.c
128
athn_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_athn_cardbus.c
130
struct athn_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_athn_cardbus.c
161
aprint_error_dev(self, "unable to map device (%d)\n", error);
sys/dev/cardbus/if_athn_cardbus.c
177
if (pmf_device_register(self,
sys/dev/cardbus/if_athn_cardbus.c
179
pmf_class_network_register(self, &sc->sc_if);
sys/dev/cardbus/if_athn_cardbus.c
180
pmf_device_suspend(self, &sc->sc_qual);
sys/dev/cardbus/if_athn_cardbus.c
182
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/if_athn_cardbus.c
190
athn_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_athn_cardbus.c
192
struct athn_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_athn_cardbus.c
200
pmf_device_deregister(self);
sys/dev/cardbus/if_athn_cardbus.c
283
athn_cardbus_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/cardbus/if_athn_cardbus.c
285
struct athn_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_athn_cardbus.c
296
athn_cardbus_resume(device_t self, const pmf_qual_t *qual)
sys/dev/cardbus/if_athn_cardbus.c
298
struct athn_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_athn_cardbus.c
304
aprint_error_dev(self,
sys/dev/cardbus/if_atw_cardbus.c
158
atw_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_atw_cardbus.c
160
struct atw_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_atw_cardbus.c
179
sc->sc_dev = self;
sys/dev/cardbus/if_atw_cardbus.c
197
printf("%s: signature %08x\n", device_xname(self),
sys/dev/cardbus/if_atw_cardbus.c
213
device_xname(self), csc->sc_mapsize);
sys/dev/cardbus/if_atw_cardbus.c
223
device_xname(self), csc->sc_mapsize);
sys/dev/cardbus/if_atw_cardbus.c
229
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/cardbus/if_atw_cardbus.c
277
atw_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_atw_cardbus.c
279
struct atw_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_atw_cardbus.c
286
panic("%s: data structure lacks", device_xname(self));
sys/dev/cardbus/if_atw_cardbus.c
310
atw_cardbus_resume(device_t self, const pmf_qual_t *qual)
sys/dev/cardbus/if_atw_cardbus.c
312
struct atw_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_atw_cardbus.c
329
atw_cardbus_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/cardbus/if_atw_cardbus.c
331
struct atw_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_atw_cardbus.c
338
return atw_suspend(self, qual);
sys/dev/cardbus/if_bwi_cardbus.c
113
bwi_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_bwi_cardbus.c
115
struct bwi_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_bwi_cardbus.c
126
sc->sc_dev = self;
sys/dev/cardbus/if_bwi_cardbus.c
140
aprint_error_dev(self, "can't map mem space\n");
sys/dev/cardbus/if_bwi_cardbus.c
159
if (pmf_device_register(self, bwi_suspend, bwi_resume))
sys/dev/cardbus/if_bwi_cardbus.c
160
pmf_class_network_register(self, &sc->sc_if);
sys/dev/cardbus/if_bwi_cardbus.c
162
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/if_bwi_cardbus.c
166
bwi_cardbus_detach(self, 0);
sys/dev/cardbus/if_bwi_cardbus.c
172
bwi_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_bwi_cardbus.c
174
struct bwi_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_bwi_cardbus.c
180
panic("%s: data structure lacks", device_xname(self));
sys/dev/cardbus/if_bwi_cardbus.c
183
pmf_device_deregister(self);
sys/dev/cardbus/if_ex_cardbus.c
212
ex_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_ex_cardbus.c
214
struct ex_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_ex_cardbus.c
221
sc->sc_dev = self;
sys/dev/cardbus/if_ex_cardbus.c
258
aprint_error_dev(self,
sys/dev/cardbus/if_ex_cardbus.c
300
ex_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_ex_cardbus.c
302
struct ex_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_ex_cardbus.c
309
panic("%s: data structure lacks", device_xname(self));
sys/dev/cardbus/if_fxp_cardbus.c
116
fxp_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_fxp_cardbus.c
118
struct fxp_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_fxp_cardbus.c
126
sc->sc_dev = self;
sys/dev/cardbus/if_fxp_cardbus.c
172
if (pmf_device_register(self, NULL, NULL))
sys/dev/cardbus/if_fxp_cardbus.c
173
pmf_class_network_register(self, &sc->sc_ethercom.ec_if);
sys/dev/cardbus/if_fxp_cardbus.c
175
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/if_fxp_cardbus.c
235
fxp_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_fxp_cardbus.c
237
struct fxp_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_fxp_cardbus.c
244
panic("%s: data structure lacks", device_xname(self));
sys/dev/cardbus/if_malo_cardbus.c
103
sc->sc_dev = self;
sys/dev/cardbus/if_malo_cardbus.c
146
malo_cardbus_detach(struct device *self, int flags)
sys/dev/cardbus/if_malo_cardbus.c
148
struct malo_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_malo_cardbus.c
90
malo_cardbus_attach(struct device *parent, struct device *self, void *aux)
sys/dev/cardbus/if_malo_cardbus.c
92
struct malo_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_ral_cardbus.c
126
ral_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_ral_cardbus.c
128
struct ral_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_ral_cardbus.c
144
sc->sc_dev = self;
sys/dev/cardbus/if_ral_cardbus.c
173
ral_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_ral_cardbus.c
175
struct ral_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_re_cardbus.c
137
re_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_re_cardbus.c
139
struct re_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_re_cardbus.c
146
sc->sc_dev = self;
sys/dev/cardbus/if_re_cardbus.c
184
aprint_error_dev(self, "unable to map deviceregisters\n");
sys/dev/cardbus/if_re_cardbus.c
203
re_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_re_cardbus.c
205
struct re_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_re_cardbus.c
213
device_xname(self));
sys/dev/cardbus/if_rtk_cardbus.c
167
rtk_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_rtk_cardbus.c
169
struct rtk_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_rtk_cardbus.c
176
sc->sc_dev = self;
sys/dev/cardbus/if_rtk_cardbus.c
214
aprint_error_dev(self, " unable to map deviceregisters\n");
sys/dev/cardbus/if_rtk_cardbus.c
225
if (pmf_device_register(self, NULL, NULL))
sys/dev/cardbus/if_rtk_cardbus.c
226
pmf_class_network_register(self, &sc->ethercom.ec_if);
sys/dev/cardbus/if_rtk_cardbus.c
228
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/if_rtk_cardbus.c
237
rtk_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_rtk_cardbus.c
239
struct rtk_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_rtk_cardbus.c
246
panic("%s: data structure lacks", device_xname(self));
sys/dev/cardbus/if_rtw_cardbus.c
196
rtw_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_rtw_cardbus.c
198
struct rtw_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_rtw_cardbus.c
206
sc->sc_dev = self;
sys/dev/cardbus/if_rtw_cardbus.c
224
("%s: pass %d.%d signature %08x\n", device_xname(self),
sys/dev/cardbus/if_rtw_cardbus.c
239
device_xname(self), __func__, (uintmax_t)regs->r_sz));
sys/dev/cardbus/if_rtw_cardbus.c
246
device_xname(self), __func__, (uintmax_t)regs->r_sz));
sys/dev/cardbus/if_rtw_cardbus.c
250
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/cardbus/if_rtw_cardbus.c
270
if (pmf_device_register(self,
sys/dev/cardbus/if_rtw_cardbus.c
272
pmf_class_network_register(self, &sc->sc_if);
sys/dev/cardbus/if_rtw_cardbus.c
276
pmf_device_suspend(self, &sc->sc_qual);
sys/dev/cardbus/if_rtw_cardbus.c
278
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/if_rtw_cardbus.c
282
rtw_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_rtw_cardbus.c
284
struct rtw_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_rtw_cardbus.c
292
panic("%s: data structure lacks", device_xname(self));
sys/dev/cardbus/if_rtw_cardbus.c
315
rtw_cardbus_resume(device_t self, const pmf_qual_t *qual)
sys/dev/cardbus/if_rtw_cardbus.c
317
struct rtw_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_rtw_cardbus.c
336
return rtw_resume(self, qual);
sys/dev/cardbus/if_rtw_cardbus.c
340
rtw_cardbus_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/cardbus/if_rtw_cardbus.c
342
struct rtw_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_rtw_cardbus.c
346
if (!rtw_suspend(self, qual))
sys/dev/cardbus/if_tlp_cardbus.c
223
tlp_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/if_tlp_cardbus.c
225
struct tulip_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_tlp_cardbus.c
234
sc->sc_dev = self;
sys/dev/cardbus/if_tlp_cardbus.c
315
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/cardbus/if_tlp_cardbus.c
381
"no bets...\n", device_xname(self));
sys/dev/cardbus/if_tlp_cardbus.c
422
aprint_error_dev(self, "sorry, unable to handle your board\n");
sys/dev/cardbus/if_tlp_cardbus.c
438
tlp_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/if_tlp_cardbus.c
440
struct tulip_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/if_tlp_cardbus.c
447
panic("%s: data structure lacks", device_xname(self));
sys/dev/cardbus/njata_cardbus.c
123
njata_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/njata_cardbus.c
126
struct njata32_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/njata_cardbus.c
134
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/cardbus/njata_cardbus.c
224
njata_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/njata_cardbus.c
226
struct njata32_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/njs_cardbus.c
120
njs_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/njs_cardbus.c
123
struct njsc32_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/njs_cardbus.c
134
sc->sc_dev = self;
sys/dev/cardbus/njs_cardbus.c
162
printf("%s: memory space mapped\n", device_xname(self));
sys/dev/cardbus/njs_cardbus.c
172
printf("%s: io space mapped\n", device_xname(self));
sys/dev/cardbus/njs_cardbus.c
177
aprint_error_dev(self,
sys/dev/cardbus/njs_cardbus.c
207
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/cardbus/njs_cardbus.c
219
njs_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/njs_cardbus.c
221
struct njsc32_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/ohci_cardbus.c
103
ohci_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/ohci_cardbus.c
105
struct ohci_cardbus_softc *sc = device_private(self);
sys/dev/cardbus/ohci_cardbus.c
112
const char *devname = device_xname(self);
sys/dev/cardbus/ohci_cardbus.c
114
sc->sc.sc_dev = self;
sys/dev/cardbus/ohci_cardbus.c
161
usb_cardbus_add(&sc->sc_cardbus, ca, self);
sys/dev/cardbus/ohci_cardbus.c
164
if (!pmf_device_register1(self, ohci_suspend, ohci_resume,
sys/dev/cardbus/ohci_cardbus.c
166
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/ohci_cardbus.c
169
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/dev/cardbus/ohci_cardbus.c
174
ohci_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/ohci_cardbus.c
176
struct ohci_cardbus_softc *sc = device_private(self);
sys/dev/cardbus/ohci_cardbus.c
184
error = config_detach_children(self, flags);
sys/dev/cardbus/ohci_cardbus.c
203
ohci_shutdown(self, 0);
sys/dev/cardbus/ohci_cardbus.c
204
pmf_device_deregister(self);
sys/dev/cardbus/rbus_ppb.c
603
ppb_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/rbus_ppb.c
605
struct ppb_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/rbus_ppb.c
616
csc->sc_dev = self;
sys/dev/cardbus/rbus_ppb.c
628
aprint_error_dev(self, "not configured by system firmware calling pci_bus_fixup(%d)\n", 0);
sys/dev/cardbus/rbus_ppb.c
647
aprint_error_dev(self, "still not configured, not fixable.\n");
sys/dev/cardbus/rbus_ppb.c
697
config_found(self, &pba, rppbprint, CFARGS_NONE);
sys/dev/cardbus/rbus_ppb.c
701
ppb_activate(device_t self, enum devact act)
sys/dev/cardbus/sdhc_cardbus.c
101
struct sdhc_cardbus_softc *sc = device_private(self);
sys/dev/cardbus/sdhc_cardbus.c
114
sc->sc.sc_dev = self;
sys/dev/cardbus/sdhc_cardbus.c
150
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/cardbus/sdhc_cardbus.c
160
aprint_error_dev(self, "couldn't map register\n");
sys/dev/cardbus/sdhc_cardbus.c
165
aprint_error_dev(self, "couldn't initialize host\n");
sys/dev/cardbus/sdhc_cardbus.c
169
if (!pmf_device_register1(self, sdhc_suspend, sdhc_resume,
sys/dev/cardbus/sdhc_cardbus.c
171
aprint_error_dev(self, "couldn't establish powerhook\n");
sys/dev/cardbus/sdhc_cardbus.c
184
sdhc_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/sdhc_cardbus.c
186
struct sdhc_cardbus_softc *sc = device_private(self);
sys/dev/cardbus/sdhc_cardbus.c
99
sdhc_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/siisata_cardbus.c
133
siisata_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/siisata_cardbus.c
136
struct siisata_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/siisata_cardbus.c
150
sc->sc_atac.atac_dev = self;
sys/dev/cardbus/siisata_cardbus.c
259
if (!pmf_device_register(self, NULL, siisata_cardbus_resume))
sys/dev/cardbus/siisata_cardbus.c
260
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/cardbus/siisata_cardbus.c
264
siisata_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/siisata_cardbus.c
266
struct siisata_cardbus_softc *csc = device_private(self);
sys/dev/cardbus/uhci_cardbus.c
101
const char *devname = device_xname(self);
sys/dev/cardbus/uhci_cardbus.c
104
sc->sc.sc_dev = self;
sys/dev/cardbus/uhci_cardbus.c
168
usb_cardbus_add(&sc->sc_cardbus, ca, self);
sys/dev/cardbus/uhci_cardbus.c
172
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/dev/cardbus/uhci_cardbus.c
177
uhci_cardbus_detach(device_t self, int flags)
sys/dev/cardbus/uhci_cardbus.c
179
struct uhci_cardbus_softc *sc = device_private(self);
sys/dev/cardbus/uhci_cardbus.c
92
uhci_cardbus_attach(device_t parent, device_t self, void *aux)
sys/dev/cardbus/uhci_cardbus.c
94
struct uhci_cardbus_softc *sc = device_private(self);
sys/dev/cgd.c
506
cgd_match(device_t self, cfdata_t cfdata, void *aux)
sys/dev/cgd.c
513
cgd_attach(device_t parent, device_t self, void *aux)
sys/dev/cgd.c
515
struct cgd_softc *sc = device_private(self);
sys/dev/cgd.c
519
dk_init(&sc->sc_dksc, self, DKTYPE_CGD);
sys/dev/cgd.c
522
if (!pmf_device_register(self, NULL, NULL))
sys/dev/cgd.c
523
aprint_error_dev(self,
sys/dev/cgd.c
529
cgd_detach(device_t self, int flags)
sys/dev/cgd.c
532
struct cgd_softc *sc = device_private(self);
sys/dev/dec/dzkbd.c
147
dzkbd_attach(device_t parent, device_t self, void *aux)
sys/dev/dec/dzkbd.c
150
struct dzkbd_softc *dzkbd = device_private(self);
sys/dev/dec/dzkbd.c
203
dzkbd->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/dev/dec/dzms.c
118
dzms_attach(device_t parent, device_t self, void *aux)
sys/dev/dec/dzms.c
121
struct dzms_softc *dzms = device_private(self);
sys/dev/dec/dzms.c
138
dzms->sc_wsmousedev = config_found(self, &a, wsmousedevprint,
sys/dev/dkwedge/dk.c
231
dkwedge_attach(device_t parent, device_t self, void *aux)
sys/dev/dkwedge/dk.c
235
int unit = device_unit(self);
sys/dev/dkwedge/dk.c
239
if (!pmf_device_register(self, NULL, NULL))
sys/dev/dkwedge/dk.c
240
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/dkwedge/dk.c
248
sc->sc_dev = self;
sys/dev/dkwedge/dk.c
259
device_set_private(self, sc);
sys/dev/dkwedge/dk.c
732
dkwedge_detach(device_t self, int flags)
sys/dev/dkwedge/dk.c
734
struct dkwedge_softc *const sc = device_private(self);
sys/dev/dkwedge/dk.c
735
const u_int unit = device_unit(self);
sys/dev/dkwedge/dk.c
738
error = disk_begindetach(&sc->sc_dk, /*lastclose*/NULL, self, flags);
sys/dev/dkwedge/dk.c
745
pmf_device_deregister(self);
sys/dev/dm/device-mapper.c
249
dm_attach(device_t parent, device_t self, void *aux)
sys/dev/dm/device-mapper.c
252
if (!pmf_device_register(self, NULL, NULL))
sys/dev/dm/device-mapper.c
253
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/dm/device-mapper.c
264
dm_detach(device_t self, int flags)
sys/dev/dm/device-mapper.c
269
dmv = dm_dev_lookup(NULL, NULL, device_unit(self));
sys/dev/dm/device-mapper.c
277
pmf_device_deregister(self);
sys/dev/dm/device-mapper.c
280
if ((dmv = dm_dev_detach(self)) == NULL)
sys/dev/drm/vbox_drv.c
67
vboxdrm_attach(device_t parent, device_t self, void *opaque)
sys/dev/drm/vbox_drv.c
70
struct drm_device *dev = device_private(self);
sys/dev/drm/vbox_drv.c
72
if (!pmf_device_register(self, NULL, NULL))
sys/dev/drm/vbox_drv.c
73
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/drm/vbox_drv.c
77
drm_attach(self, pa, vboxdrm_pciidlist);
sys/dev/drm/vbox_drv.c
81
vboxdrm_detach(device_t self, int flags)
sys/dev/drm/vbox_drv.c
83
struct drm_device *dev = device_private(self);
sys/dev/drm/vbox_drv.c
86
pmf_device_deregister(self);
sys/dev/drm/vbox_drv.c
88
error = drm_detach(self, flags);
sys/dev/dtv/dtv_device.c
144
dtv_detach(device_t self, int flags)
sys/dev/dtv/dtv_device.c
146
struct dtv_softc *sc = device_private(self);
sys/dev/dtv/dtv_device.c
90
dtv_attach(device_t parent, device_t self, void *aa)
sys/dev/dtv/dtv_device.c
93
struct dtv_softc *sc = device_private(self);
sys/dev/dtv/dtv_device.c
97
sc->sc_dev = self;
sys/dev/ebus/cs4231_ebus.c
170
cs4231_ebus_attach(device_t parent, device_t self, void *aux)
sys/dev/ebus/cs4231_ebus.c
178
ebsc = device_private(self);
sys/dev/ebus/cs4231_ebus.c
249
cs4231_common_attach(sc, self, bh);
sys/dev/eisa/ahb.c
185
ahbattach(device_t parent, device_t self, void *aux)
sys/dev/eisa/ahb.c
188
struct ahb_softc *sc = device_private(self);
sys/dev/eisa/ahb.c
200
sc->sc_dev = self;
sys/dev/eisa/ahb.c
272
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/dev/eisa/ahc_eisa.c
100
ahc_eisa_attach(device_t parent, device_t self, void *aux)
sys/dev/eisa/ahc_eisa.c
102
struct ahc_softc *ahc = device_private(self);
sys/dev/eisa/ahc_eisa.c
120
ahc->sc_dev = self;
sys/dev/eisa/bha_eisa.c
142
bha_eisa_attach(device_t parent, device_t self, void *aux)
sys/dev/eisa/bha_eisa.c
145
struct bha_softc *sc = device_private(self);
sys/dev/eisa/bha_eisa.c
156
sc->sc_dev = self;
sys/dev/eisa/cac_eisa.c
153
cac_eisa_attach(device_t parent, device_t self, void *aux)
sys/dev/eisa/cac_eisa.c
167
sc = device_private(self);
sys/dev/eisa/cac_eisa.c
181
sc->sc_dev = self;
sys/dev/eisa/depca_eisa.c
100
depca_eisa_attach(device_t parent, device_t self, void *aux)
sys/dev/eisa/depca_eisa.c
102
struct depca_eisa_softc *esc = device_private(self);
sys/dev/eisa/depca_eisa.c
108
sc->sc_dev = self;
sys/dev/eisa/depca_eisa.c
121
aprint_error_dev(self, "unable to find network buffer\n");
sys/dev/eisa/depca_eisa.c
125
aprint_normal_dev(self, "shared memory at 0x%lx-0x%lx\n",
sys/dev/eisa/depca_eisa.c
132
aprint_error_dev(self, "unable to map i/o space\n");
sys/dev/eisa/depca_eisa.c
137
aprint_error_dev(self, "unable to map memory space\n");
sys/dev/eisa/depca_eisa.c
143
aprint_error_dev(self, "unable to determine IRQ\n");
sys/dev/eisa/dpt_eisa.c
114
dpt_eisa_attach(device_t parent, device_t self, void *aux)
sys/dev/eisa/dpt_eisa.c
127
sc = device_private(self);
sys/dev/eisa/dpt_eisa.c
128
sc->sc_dev = self;
sys/dev/eisa/eisa.c
134
aprint_error_dev(self,
sys/dev/eisa/eisa.c
147
printf("no device at %s slot %d\n", device_xname(self),
sys/dev/eisa/eisa.c
158
device_xname(self), slot);
sys/dev/eisa/eisa.c
184
config_found(self, &ea, eisaprint,
sys/dev/eisa/eisa.c
91
eisaattach(device_t parent, device_t self, void *aux)
sys/dev/eisa/eisa.c
99
eisa_attach_hook(parent, self, eba);
sys/dev/eisa/if_ep_eisa.c
232
ep_eisa_attach(device_t parent, device_t self, void *aux)
sys/dev/eisa/if_ep_eisa.c
234
struct ep_softc *sc = device_private(self);
sys/dev/eisa/if_ep_eisa.c
258
sc->sc_dev = self;
sys/dev/eisa/if_tlp_eisa.c
137
tlp_eisa_attach(device_t parent, device_t self, void *aux)
sys/dev/eisa/if_tlp_eisa.c
141
struct tulip_eisa_softc *esc = device_private(self);
sys/dev/eisa/if_tlp_eisa.c
165
sc->sc_dev = self;
sys/dev/eisa/if_tlp_eisa.c
233
aprint_error_dev(self, "unable to decode old-style SROM\n");
sys/dev/eisa/if_tlp_eisa.c
254
aprint_error_dev(self, "unable to map interrupt (%u)\n", irq);
sys/dev/eisa/if_tlp_eisa.c
260
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/eisa/if_tlp_eisa.c
267
aprint_normal_dev(self, "interrupting at %s (%s trigger)\n",
sys/dev/eisa/mlx_eisa.c
106
mlx_eisa_attach(device_t parent, device_t self, void *aux)
sys/dev/eisa/mlx_eisa.c
119
mlx = device_private(self);
sys/dev/eisa/mlx_eisa.c
141
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/eisa/mlx_eisa.c
145
mlx->mlx_dv = self;
sys/dev/eisa/mlx_eisa.c
169
aprint_error_dev(self,
sys/dev/eisa/mlx_eisa.c
177
aprint_error_dev(self, "can't map interrupt (%d)\n", irq);
sys/dev/eisa/mlx_eisa.c
184
aprint_error_dev(self, "can't establish interrupt");
sys/dev/eisa/mlx_eisa.c
191
aprint_normal_dev(self, "interrupting at %s (%s trigger)\n",
sys/dev/eisa/mlx_eisa.c
199
mlx_eisa_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/eisa/mlx_eisa.c
202
return mlx_configure(device_private(self), 1);
sys/dev/eisa/uha_eisa.c
113
uha_eisa_attach(device_t parent, device_t self, void *aux)
sys/dev/eisa/uha_eisa.c
116
struct uha_softc *sc = device_private(self);
sys/dev/eisa/uha_eisa.c
136
sc->sc_dev = self;
sys/dev/fdt/ahcisata_fdt.c
107
ahci_intr, sc, device_xname(self)) == NULL) {
sys/dev/fdt/ahcisata_fdt.c
108
aprint_error_dev(self,
sys/dev/fdt/ahcisata_fdt.c
112
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/ahcisata_fdt.c
59
ahcisata_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/ahcisata_fdt.c
61
struct ahci_softc * const sc = device_private(self);
sys/dev/fdt/ahcisata_fdt.c
76
sc->sc_atac.atac_dev = self;
sys/dev/fdt/amdccp_fdt.c
66
amdccp_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/amdccp_fdt.c
68
struct amdccp_fdt_softc * const fsc = device_private(self);
sys/dev/fdt/amdccp_fdt.c
75
fsc->sc_sc.sc_dev = self;
sys/dev/fdt/amdccp_fdt.c
92
pmf_device_register(self, NULL, NULL);
sys/dev/fdt/arasan_sdhc_fdt.c
227
arasan_sdhc_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/arasan_sdhc_fdt.c
229
struct arasan_sdhc_softc * const sc = device_private(self);
sys/dev/fdt/arasan_sdhc_fdt.c
292
sc->sc_base.sc_dev = self;
sys/dev/fdt/arasan_sdhc_fdt.c
314
sc->sc_clkdom.name = device_xname(self);
sys/dev/fdt/arasan_sdhc_fdt.c
321
fdtbus_register_clock_controller(self, phandle, &arasan_sdhc_fdt_clk_funcs);
sys/dev/fdt/arasan_sdhc_fdt.c
324
sdhc_intr, &sc->sc_base, device_xname(self));
sys/dev/fdt/arasan_sdhc_fdt.c
326
aprint_error_dev(self, "couldn't establish interrupt on %s\n", intrstr);
sys/dev/fdt/arasan_sdhc_fdt.c
329
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/arasan_sdhc_fdt.c
331
arasan_sdhc_init(self);
sys/dev/fdt/ausoc.c
516
ausoc_attach_cb(device_t self)
sys/dev/fdt/ausoc.c
518
struct ausoc_softc * const sc = device_private(self);
sys/dev/fdt/ausoc.c
560
ausoc_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/ausoc.c
562
struct ausoc_softc * const sc = device_private(self);
sys/dev/fdt/ausoc.c
566
sc->sc_dev = self;
sys/dev/fdt/ausoc.c
578
config_defer(self, ausoc_attach_cb);
sys/dev/fdt/cdns3_fdt.c
127
sc->sc_dev = self;
sys/dev/fdt/cdns3_fdt.c
178
aprint_error_dev(self, "couldn't enable phy #%d\n", i);
sys/dev/fdt/cdns3_fdt.c
182
aprint_error_dev(self, "failed to decode interrupt\n");
sys/dev/fdt/cdns3_fdt.c
187
FDT_INTR_MPSAFE, xhci_intr, sc, device_xname(self));
sys/dev/fdt/cdns3_fdt.c
189
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/dev/fdt/cdns3_fdt.c
193
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/cdns3_fdt.c
198
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/dev/fdt/cdns3_fdt.c
202
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/dev/fdt/cdns3_fdt.c
203
sc->sc_child2 = config_found(self, &sc->sc_bus2, usbctlprint,
sys/dev/fdt/cdns3_fdt.c
86
cdns3_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/cdns3_fdt.c
88
struct cdns3_fdt_softc * const cfsc = device_private(self);
sys/dev/fdt/cdnsiic_fdt.c
61
cdnsiic_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/cdnsiic_fdt.c
63
struct cdnsiic_softc * const sc = device_private(self);
sys/dev/fdt/cdnsiic_fdt.c
84
sc->sc_dev = self;
sys/dev/fdt/cdnsiic_fdt.c
93
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/dev/fdt/cdnsiic_fdt.c
97
iicbus_attach(self, &sc->sc_ic);
sys/dev/fdt/connector_fdt.c
120
fdt_ports_register(&sc->sc_ports, self, phandle, EP_CONNECTOR);
sys/dev/fdt/connector_fdt.c
89
fdt_connector_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/connector_fdt.c
91
struct fdt_connector_softc *sc = device_private(self);
sys/dev/fdt/connector_fdt.c
95
sc->sc_dev = self;
sys/dev/fdt/cpufreq_dt.c
527
cpufreq_dt_init(device_t self)
sys/dev/fdt/cpufreq_dt.c
529
struct cpufreq_dt_softc * const sc = device_private(self);
sys/dev/fdt/cpufreq_dt.c
557
cpufreq_dt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/cpufreq_dt.c
560
struct cpufreq_dt_softc * const sc = device_private(self);
sys/dev/fdt/cpufreq_dt.c
565
sc->sc_dev = self;
sys/dev/fdt/cpufreq_dt.c
571
config_interrupts(self, cpufreq_dt_init);
sys/dev/fdt/cpus.c
58
cpus_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/cpus.c
67
fdtbus_cpus_md_attach(parent, self, faa);
sys/dev/fdt/cpus.c
72
fdt_add_child(self, child, faa, 0);
sys/dev/fdt/dw_apb_uart.c
103
sc->sc_dev = self;
sys/dev/fdt/dw_apb_uart.c
141
aprint_error_dev(self, "failed to decode interrupt\n");
sys/dev/fdt/dw_apb_uart.c
146
IPL_SERIAL, FDT_INTR_MPSAFE, comintr, sc, device_xname(self));
sys/dev/fdt/dw_apb_uart.c
148
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/dev/fdt/dw_apb_uart.c
151
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/dw_apb_uart.c
75
dw_apb_uart_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/dw_apb_uart.c
77
struct dw_apb_uart_softc * const ssc = device_private(self);
sys/dev/fdt/dwc2_fdt.c
112
dwc2_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/dwc2_fdt.c
114
struct dwc2_fdt_softc *sc = device_private(self);
sys/dev/fdt/dwc2_fdt.c
151
sc->sc_dwc2.sc_dev = self;
sys/dev/fdt/dwc2_fdt.c
175
FDT_INTR_MPSAFE, dwc2_intr, &sc->sc_dwc2, device_xname(self));
sys/dev/fdt/dwc2_fdt.c
177
aprint_error_dev(self, "failed to establish interrupt %s\n",
sys/dev/fdt/dwc2_fdt.c
181
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/dwc2_fdt.c
183
fdt_add_bus(self, phandle, faa);
sys/dev/fdt/dwc2_fdt.c
185
config_interrupts(self, dwc2_fdt_deferred);
sys/dev/fdt/dwc2_fdt.c
198
dwc2_fdt_deferred(device_t self)
sys/dev/fdt/dwc2_fdt.c
200
struct dwc2_fdt_softc *sc = device_private(self);
sys/dev/fdt/dwc2_fdt.c
205
aprint_error_dev(self, "couldn't initialize host, error=%d\n",
sys/dev/fdt/dwc3_fdt.c
230
dwc3_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/dwc3_fdt.c
232
struct xhci_softc * const sc = device_private(self);
sys/dev/fdt/dwc3_fdt.c
307
sc->sc_dev = self;
sys/dev/fdt/dwc3_fdt.c
326
aprint_error_dev(self, "couldn't enable phy #%d\n", n);
sys/dev/fdt/dwc3_fdt.c
334
aprint_error_dev(self, "failed to decode interrupt\n");
sys/dev/fdt/dwc3_fdt.c
339
FDT_INTR_MPSAFE, xhci_intr, sc, device_xname(self));
sys/dev/fdt/dwc3_fdt.c
341
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/dev/fdt/dwc3_fdt.c
345
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/dwc3_fdt.c
350
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/dev/fdt/dwc3_fdt.c
354
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/dev/fdt/dwc3_fdt.c
355
sc->sc_child2 = config_found(self, &sc->sc_bus2, usbctlprint,
sys/dev/fdt/dwcmmc_fdt.c
104
dwcmmc_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/dwcmmc_fdt.c
106
struct dwcmmc_fdt_softc *esc = device_private(self);
sys/dev/fdt/dwcmmc_fdt.c
151
sc->sc_dev = self;
sys/dev/fdt/dwcmmc_fdt.c
191
aprint_error_dev(self, "failed to decode interrupt\n");
sys/dev/fdt/dwcmmc_fdt.c
199
dwc_mmc_intr, sc, device_xname(self));
sys/dev/fdt/dwcmmc_fdt.c
201
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/dev/fdt/dwcmmc_fdt.c
205
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/dwcwdt_fdt.c
59
dwcwdt_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/dwcwdt_fdt.c
61
struct dwcwdt_softc * const sc = device_private(self);
sys/dev/fdt/dwcwdt_fdt.c
89
sc->sc_dev = self;
sys/dev/fdt/dwiic_fdt.c
119
aprint_error_dev(self, "failed to decode interrupt\n");
sys/dev/fdt/dwiic_fdt.c
122
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/dwiic_fdt.c
125
dwiic_intr, &sc->sc_dwiic, device_xname(self));
sys/dev/fdt/dwiic_fdt.c
127
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/fdt/dwiic_fdt.c
134
pmf_device_register(self, dwiic_suspend, dwiic_resume);
sys/dev/fdt/dwiic_fdt.c
136
iicbus_attach(self, &sc->sc_dwiic.sc_i2c_tag);
sys/dev/fdt/dwiic_fdt.c
68
dwiic_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/dwiic_fdt.c
70
struct dwiic_fdt_softc * const sc = device_private(self);
sys/dev/fdt/dwiic_fdt.c
77
sc->sc_dwiic.sc_dev = self;
sys/dev/fdt/ehci_fdt.c
109
sc->sc_dev = self;
sys/dev/fdt/ehci_fdt.c
132
aprint_error_dev(self, "failed to decode interrupt\n");
sys/dev/fdt/ehci_fdt.c
137
ehci_intr, sc, device_xname(self));
sys/dev/fdt/ehci_fdt.c
139
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/dev/fdt/ehci_fdt.c
143
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/ehci_fdt.c
147
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/dev/fdt/ehci_fdt.c
151
pmf_device_register1(self, NULL, NULL, ehci_shutdown);
sys/dev/fdt/ehci_fdt.c
153
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/dev/fdt/ehci_fdt.c
69
ehci_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/ehci_fdt.c
71
struct ehci_softc * const sc = device_private(self);
sys/dev/fdt/fdt_panel.c
135
panel_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/fdt_panel.c
137
struct panel_fdt_softc * const sc = device_private(self);
sys/dev/fdt/fdt_panel.c
144
sc->sc_dev = self;
sys/dev/fdt/fdt_panel.c
149
aprint_error_dev(self, "regulator not found\n");
sys/dev/fdt/fdt_panel.c
159
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_PANEL);
sys/dev/fdt/fdt_panel.c
161
drm_panel_init(&sc->sc_panel, self, &panel_fdt_funcs, DRM_MODE_CONNECTOR_DPI);
sys/dev/fdt/fdt_port.c
254
fdt_ports_register(struct fdt_device_ports *ports, device_t self,
sys/dev/fdt/fdt_port.c
262
ports->dp_dev = self;
sys/dev/fdt/fdt_port.c
301
aprint_debug_dev(self,
sys/dev/fdt/fdtbus.c
124
fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/fdtbus.c
126
struct fdt_softc *sc = device_private(self);
sys/dev/fdt/fdtbus.c
131
sc->sc_dev = self;
sys/dev/fdt/fdtbus.c
144
fdt_add_bus(self, phandle, &sc->sc_faa);
sys/dev/fdt/fdtbus.c
158
fdt_rescan(self, NULL, NULL);
sys/dev/fdt/fdtbus.c
162
fdt_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/fdt/fdtbus.c
164
struct fdt_softc *sc = device_private(self);
sys/dev/fdt/fixedclock.c
102
sc->sc_dev = self;
sys/dev/fdt/fixedclock.c
104
sc->sc_clkdom.name = device_xname(self);
sys/dev/fdt/fixedclock.c
119
fdtbus_register_clock_controller(self, phandle, &fixedclock_fdt_funcs);
sys/dev/fdt/fixedclock.c
91
fixedclock_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/fixedclock.c
93
struct fixedclock_softc * const sc = device_private(self);
sys/dev/fdt/fixedfactorclock.c
100
sc->sc_dev = self;
sys/dev/fdt/fixedfactorclock.c
102
sc->sc_clkdom.name = device_xname(self);
sys/dev/fdt/fixedfactorclock.c
126
fdtbus_register_clock_controller(self, phandle,
sys/dev/fdt/fixedfactorclock.c
93
fixedfactorclock_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/fixedfactorclock.c
95
struct fixedfactorclock_softc * const sc = device_private(self);
sys/dev/fdt/fixedregulator.c
133
fdtbus_register_regulator_controller(self, phandle,
sys/dev/fdt/fixedregulator.c
141
fixedregulator_enable(self, true);
sys/dev/fdt/fixedregulator.c
91
fixedregulator_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/fixedregulator.c
93
struct fixedregulator_softc * const sc = device_private(self);
sys/dev/fdt/fixedregulator.c
99
sc->sc_dev = self;
sys/dev/fdt/genet_fdt.c
124
genet_intr, sc, device_xname(self));
sys/dev/fdt/genet_fdt.c
126
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/dev/fdt/genet_fdt.c
130
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/genet_fdt.c
72
genet_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/genet_fdt.c
74
struct genet_softc * const sc = device_private(self);
sys/dev/fdt/genet_fdt.c
87
sc->sc_dev = self;
sys/dev/fdt/gfrtc_fdt.c
62
gfrtc_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/gfrtc_fdt.c
64
struct gfrtc_softc * const sc = device_private(self);
sys/dev/fdt/gfrtc_fdt.c
75
sc->sc_dev = self;
sys/dev/fdt/gpiokeys.c
157
gpiokeys_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/gpiokeys.c
159
struct gpiokeys_softc * const sc = device_private(self);
sys/dev/fdt/gpiokeys.c
167
sc->sc_dev = self;
sys/dev/fdt/gpiokeys.c
269
config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/dev/fdt/gpioleds.c
79
gpioleds_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/gpioregulator.c
100
gpioregulator_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/gpioregulator.c
102
struct gpioregulator_softc * const sc = device_private(self);
sys/dev/fdt/gpioregulator.c
111
sc->sc_dev = self;
sys/dev/fdt/gpioregulator.c
131
aprint_error_dev(self, "invalid 'states' property\n");
sys/dev/fdt/gpioregulator.c
166
aprint_error_dev(self, "cannot get pin %d\n", n);
sys/dev/fdt/gpioregulator.c
179
fdtbus_register_regulator_controller(self, phandle,
sys/dev/fdt/gpioregulator.c
187
gpioregulator_enable(self, true);
sys/dev/fdt/hdmi_connector.c
196
dispcon_hdmi_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/hdmi_connector.c
198
struct dispcon_hdmi_softc * const sc = device_private(self);
sys/dev/fdt/hdmi_connector.c
212
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_CONNECTOR);
sys/dev/fdt/i2cmux_fdt.c
270
iicmux_fdt_attach(device_t const parent, device_t const self, void * const aux)
sys/dev/fdt/i2cmux_fdt.c
272
struct iicmux_softc * const sc = device_private(self);
sys/dev/fdt/i2cmux_fdt.c
276
sc->sc_dev = self;
sys/dev/fdt/mmc_pwrseq_emmc.c
100
mmcpwrseq_emmc_detach(device_t self, int flags)
sys/dev/fdt/mmc_pwrseq_emmc.c
102
struct mmcpwrseq_emmc_softc * const sc = device_private(self);
sys/dev/fdt/mmc_pwrseq_emmc.c
105
mmcpwrseq_emmc_reset(self);
sys/dev/fdt/mmc_pwrseq_emmc.c
78
mmcpwrseq_emmc_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/mmc_pwrseq_emmc.c
80
struct mmcpwrseq_emmc_softc * const sc = device_private(self);
sys/dev/fdt/mmc_pwrseq_emmc.c
84
sc->sc_dev = self;
sys/dev/fdt/mmc_pwrseq_emmc.c
96
fdtbus_register_mmc_pwrseq(self, phandle, &mmcpwrseq_emmc_funcs);
sys/dev/fdt/mmc_pwrseq_simple.c
116
mmcpwrseq_simple_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/mmc_pwrseq_simple.c
118
struct mmcpwrseq_simple_softc * const sc = device_private(self);
sys/dev/fdt/mmc_pwrseq_simple.c
122
sc->sc_dev = self;
sys/dev/fdt/mmc_pwrseq_simple.c
161
fdtbus_register_mmc_pwrseq(self, phandle, &mmcpwrseq_simple_funcs);
sys/dev/fdt/ns8250_uart.c
103
ns8250_uart_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/ns8250_uart.c
105
struct com_softc * const sc = device_private(self);
sys/dev/fdt/ns8250_uart.c
131
sc->sc_dev = self;
sys/dev/fdt/ns8250_uart.c
163
aprint_error_dev(self, "failed to decode interrupt\n");
sys/dev/fdt/ns8250_uart.c
168
FDT_INTR_MPSAFE, comintr, sc, device_xname(self));
sys/dev/fdt/ns8250_uart.c
170
aprint_error_dev(self, "failed to establish interrupt on %s\n",
sys/dev/fdt/ns8250_uart.c
174
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/ohci_fdt.c
109
sc->sc_dev = self;
sys/dev/fdt/ohci_fdt.c
128
aprint_error_dev(self, "failed to decode interrupt\n");
sys/dev/fdt/ohci_fdt.c
133
ohci_intr, sc, device_xname(self));
sys/dev/fdt/ohci_fdt.c
135
aprint_error_dev(self, "couldn't establish interrupt on %s\n",
sys/dev/fdt/ohci_fdt.c
139
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/fdt/ohci_fdt.c
143
aprint_error_dev(self, "init failed, error = %d\n", error);
sys/dev/fdt/ohci_fdt.c
147
pmf_device_register1(self, NULL, NULL, ohci_shutdown);
sys/dev/fdt/ohci_fdt.c
149
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/dev/fdt/ohci_fdt.c
69
ohci_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/ohci_fdt.c
71
struct ohci_softc * const sc = device_private(self);
sys/dev/fdt/panel_fdt.c
168
aprint_verbose_dev(self, "%d enable GPIO%c\n", i, i > 1 ? 's' : ' ');
sys/dev/fdt/panel_fdt.c
172
fdt_ports_register(&sc->sc_ports, self, phandle, EP_PANEL);
sys/dev/fdt/panel_fdt.c
86
fdt_panel_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/panel_fdt.c
88
struct fdt_panel_softc *sc = device_private(self);
sys/dev/fdt/panel_fdt.c
98
sc->sc_dev = self;
sys/dev/fdt/pcfiic_fdt.c
165
device_xname(self));
sys/dev/fdt/pcfiic_fdt.c
167
aprint_error_dev(self,
sys/dev/fdt/pcfiic_fdt.c
171
aprint_normal_dev(self,
sys/dev/fdt/pcfiic_fdt.c
70
pcfiic_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/pcfiic_fdt.c
72
struct pcfiic_fdt_softc *sc = device_private(self);
sys/dev/fdt/pcfiic_fdt.c
98
sc->sc_pcfdev.sc_dev = self;
sys/dev/fdt/pinctrl_single.c
148
pinctrl_single_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/pinctrl_single.c
150
struct pinctrl_single_softc * const sc = device_private(self);
sys/dev/fdt/pinctrl_single.c
165
sc->sc_dev = self;
sys/dev/fdt/pinctrl_single.c
198
fdtbus_register_pinctrl_config(self, child, &pinctrl_single_pins_funcs);
sys/dev/fdt/pl061gpio_fdt.c
101
sc->sc_dev = self;
sys/dev/fdt/pl061gpio_fdt.c
114
fdtbus_register_gpio_controller(self, faa->faa_phandle,
sys/dev/fdt/pl061gpio_fdt.c
88
plgpio_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/pl061gpio_fdt.c
90
struct plgpio_softc * const sc = device_private(self);
sys/dev/fdt/pwm_backlight.c
83
pwm_backlight_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/pwm_backlight.c
85
struct pwm_backlight_softc * const sc = device_private(self);
sys/dev/fdt/pwm_backlight.c
93
sc->sc_dev = self;
sys/dev/fdt/pwm_fan.c
75
pwm_fan_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/pwm_fan.c
77
struct pwm_fan_softc * const sc = device_private(self);
sys/dev/fdt/pwm_fan.c
84
sc->sc_dev = self;
sys/dev/fdt/pwmregulator.c
103
sc->sc_dev = self;
sys/dev/fdt/pwmregulator.c
179
fdtbus_register_regulator_controller(self, phandle,
sys/dev/fdt/pwmregulator.c
187
pwmregulator_enable(self, true);
sys/dev/fdt/pwmregulator.c
95
pwmregulator_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/pwmregulator.c
97
struct pwmregulator_softc * const sc = device_private(self);
sys/dev/fdt/qemufwcfg_fdt.c
67
fwcfg_fdt_attach(device_t parent, device_t self, void *opaque)
sys/dev/fdt/qemufwcfg_fdt.c
69
struct fwcfg_softc *sc = device_private(self);
sys/dev/fdt/qemufwcfg_fdt.c
75
aprint_error_dev(self, "couldn't get registers\n");
sys/dev/fdt/qemufwcfg_fdt.c
79
sc->sc_dev = self;
sys/dev/fdt/qemufwcfg_fdt.c
83
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/fdt/qemufwcfg_fdt.c
92
pmf_device_register(self, NULL, NULL);
sys/dev/fdt/simple_amplifier.c
120
simple_amplifier_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/simple_amplifier.c
122
struct simple_amplifier_softc * const sc = device_private(self);
sys/dev/fdt/simple_amplifier.c
126
sc->sc_dev = self;
sys/dev/fdt/simple_amplifier.c
134
sc->sc_dai.dai_dev = self;
sys/dev/fdt/simple_amplifier.c
136
fdtbus_register_dai_controller(self, phandle, &simple_amplifier_dai_funcs);
sys/dev/fdt/simplefb.c
248
simplefb_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/simplefb.c
250
struct simplefb_softc * const sc = device_private(self);
sys/dev/fdt/simplefb.c
254
sc->sc_gen.sc_dev = self;
sys/dev/fdt/simplefb.c
61
simplefb_shutdown(device_t self, int flags)
sys/dev/fdt/simplefb.c
63
genfb_enable_polling(self);
sys/dev/fdt/spdif_tx.c
103
sc->sc_dev = self;
sys/dev/fdt/spdif_tx.c
111
sc->sc_dai.dai_dev = self;
sys/dev/fdt/spdif_tx.c
113
fdtbus_register_dai_controller(self, phandle, &spdif_tx_dai_funcs);
sys/dev/fdt/spdif_tx.c
97
spdif_tx_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/spdif_tx.c
99
struct spdif_tx_softc * const sc = device_private(self);
sys/dev/fdt/syscon.c
109
syscon_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/syscon.c
111
struct syscon_softc * const sc = device_private(self);
sys/dev/fdt/syscon.c
123
sc->sc_dev = self;
sys/dev/fdt/syscon.c
139
fdtbus_register_syscon(self, phandle, &sc->sc_syscon);
sys/dev/fdt/syscon.c
141
fdt_add_bus(self, phandle, faa);
sys/dev/fdt/syscon.c
145
fdt_add_bus(self, child, faa);
sys/dev/fdt/usbnode.c
101
sc->sc_dev = self;
sys/dev/fdt/usbnode.c
85
usbnode_detach(device_t self, int flags)
sys/dev/fdt/usbnode.c
87
struct usbnode_softc * const sc = device_private(self);
sys/dev/fdt/usbnode.c
95
usbnode_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/usbnode.c
97
struct usbnode_softc * const sc = device_private(self);
sys/dev/fdt/usbnopphy.c
124
usbnopphy_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/usbnopphy.c
126
struct usbnopphy_softc * const sc = device_private(self);
sys/dev/fdt/usbnopphy.c
130
sc->sc_dev = self;
sys/dev/fdt/usbnopphy.c
139
fdtbus_register_phy_controller(self, phandle, &usbnopphy_funcs);
sys/dev/fdt/virtio_mmio_fdt.c
108
virtio_mmio_fdt_rescan(self, NULL, NULL);
sys/dev/fdt/virtio_mmio_fdt.c
113
virtio_mmio_fdt_rescan(device_t self, const char *attr, const int *scan_flags)
sys/dev/fdt/virtio_mmio_fdt.c
115
struct virtio_mmio_fdt_softc * const fsc = device_private(self);
sys/dev/fdt/virtio_mmio_fdt.c
126
config_found(self, &va, NULL, CFARGS_NONE);
sys/dev/fdt/virtio_mmio_fdt.c
135
virtio_mmio_fdt_detach(device_t self, int flags)
sys/dev/fdt/virtio_mmio_fdt.c
137
struct virtio_mmio_fdt_softc * const fsc = device_private(self);
sys/dev/fdt/virtio_mmio_fdt.c
73
virtio_mmio_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/virtio_mmio_fdt.c
75
struct virtio_mmio_fdt_softc * const fsc = device_private(self);
sys/dev/fdt/virtio_mmio_fdt.c
87
aprint_error_dev(self, "couldn't get registers\n");
sys/dev/fdt/virtio_mmio_fdt.c
93
vsc->sc_dev = self;
sys/dev/fdt/virtio_mmio_fdt.c
98
aprint_error_dev(self, "couldn't map %#" PRIx64 ": %d",
sys/dev/fdt/wdc_fdt.c
173
0, wdcintr, &sc->ata_channel, device_xname(self));
sys/dev/fdt/wdc_fdt.c
175
aprint_error_dev(self, "failed to establish interrupt at %s\n",
sys/dev/fdt/wdc_fdt.c
178
aprint_verbose_dev(self, "using polled I/O\n");
sys/dev/fdt/wdc_fdt.c
181
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/fdt/wdc_fdt.c
187
aprint_normal_dev(self, "no drives present.\n");
sys/dev/fdt/wdc_fdt.c
74
wdc_fdt_attach(device_t parent, device_t self, void *aux)
sys/dev/fdt/wdc_fdt.c
76
struct wdc_fdt_softc *sc = device_private(self);
sys/dev/fdt/wdc_fdt.c
88
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/flash/flash.c
133
flash_attach(device_t parent, device_t self, void *aux)
sys/dev/flash/flash.c
135
struct flash_softc * const sc = device_private(self);
sys/dev/flash/flash.c
139
sc->sc_dev = self;
sys/dev/flash/flash.c
167
aprint_error_dev(self,
sys/dev/flash/flash.c
476
flash_shutdown(device_t self, int how)
sys/dev/flash/flash.c
478
struct flash_softc * const sc = device_private(self);
sys/dev/flash/flash.c
481
flash_sync(self);
sys/dev/flash/flash.c
534
flash_erase(device_t self, struct flash_erase_instruction * const ei)
sys/dev/flash/flash.c
536
struct flash_softc * const sc = device_private(self);
sys/dev/flash/flash.c
551
return sc->flash_if->erase(device_parent(self), &e);
sys/dev/flash/flash.c
555
flash_read(device_t self, flash_off_t offset, size_t len, size_t * const retlen,
sys/dev/flash/flash.c
558
struct flash_softc * const sc = device_private(self);
sys/dev/flash/flash.c
566
return sc->flash_if->read(device_parent(self),
sys/dev/flash/flash.c
571
flash_write(device_t self, flash_off_t offset, size_t len,
sys/dev/flash/flash.c
574
struct flash_softc * const sc = device_private(self);
sys/dev/flash/flash.c
585
return sc->flash_if->write(device_parent(self),
sys/dev/flash/flash.c
590
flash_block_markbad(device_t self, flash_off_t offset)
sys/dev/flash/flash.c
592
struct flash_softc * const sc = device_private(self);
sys/dev/flash/flash.c
604
return sc->flash_if->block_markbad(device_parent(self), offset);
sys/dev/flash/flash.c
608
flash_block_isbad(device_t self, flash_off_t offset, bool * const bad)
sys/dev/flash/flash.c
610
struct flash_softc * const sc = device_private(self);
sys/dev/flash/flash.c
619
return sc->flash_if->block_isbad(device_parent(self), offset, bad);
sys/dev/flash/flash.c
623
flash_sync(device_t self)
sys/dev/flash/flash.c
625
struct flash_softc * const sc = device_private(self);
sys/dev/flash/flash.c
84
void flash_attach(device_t parent, device_t self, void *aux);
sys/dev/fss.c
147
fss_match(device_t self, cfdata_t cfdata, void *aux)
sys/dev/fss.c
153
fss_attach(device_t parent, device_t self, void *aux)
sys/dev/fss.c
155
struct fss_softc *sc = device_private(self);
sys/dev/fss.c
157
sc->sc_dev = self;
sys/dev/fss.c
165
disk_init(sc->sc_dkdev, device_xname(self), NULL);
sys/dev/fss.c
166
if (!pmf_device_register(self, NULL, NULL))
sys/dev/fss.c
167
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/fss.c
174
fss_detach(device_t self, int flags)
sys/dev/fss.c
176
struct fss_softc *sc = device_private(self);
sys/dev/fss.c
188
pmf_device_deregister(self);
sys/dev/goldfish/gftty.c
147
device_t self = sc->sc_dev;
sys/dev/goldfish/gftty.c
162
aprint_normal_dev(self,
sys/dev/goldfish/gftty.c
169
aprint_error_dev(self,
sys/dev/goldfish/gftty.c
178
aprint_error_dev(self,
sys/dev/goldfish/gftty.c
186
aprint_error_dev(self,
sys/dev/goldfish/gftty.c
197
aprint_error_dev(self,
sys/dev/goldfish/gftty.c
226
tp->t_dev = cn_tab->cn_dev = makedev(maj, device_unit(self));
sys/dev/gpib/cs80bus.c
103
cs80busattach(device_t parent, device_t self, void *aux)
sys/dev/gpib/cs80bus.c
105
struct cs80bus_softc *sc = device_private(self);
sys/dev/gpib/cs80bus.c
113
sc->sc_dev = self;
sys/dev/gpib/ct.c
255
ctattach(device_t parent, device_t self, void *aux)
sys/dev/gpib/ct.c
257
struct ct_softc *sc = device_private(self);
sys/dev/gpib/ct.c
263
sc->sc_dev = self;
sys/dev/gpib/gpib.c
109
gpibattach(device_t parent, device_t self, void *aux)
sys/dev/gpib/gpib.c
111
struct gpib_softc *sc = device_private(self);
sys/dev/gpib/gpib.c
112
cfdata_t cf = device_cfdata(self);
sys/dev/gpib/gpib.c
117
sc->sc_dev = self;
sys/dev/gpib/hil_gpib.c
70
hilattach(device_t parent, device_t self, void *aux)
sys/dev/gpib/hil_gpib.c
72
struct hil_softc *sc = device_private(self);
sys/dev/gpib/hil_gpib.c
82
aprint_error_dev(self, "can't register callback\n");
sys/dev/gpib/mt.c
227
mtattach(device_t parent, device_t self, void *aux)
sys/dev/gpib/mt.c
229
struct mt_softc *sc = device_private(self);
sys/dev/gpib/mt.c
233
sc->sc_dev = self;
sys/dev/gpib/ppi.c
163
ppiattach(device_t parent, device_t self, void *aux)
sys/dev/gpib/ppi.c
165
struct ppi_softc *sc = device_private(self);
sys/dev/gpib/ppi.c
170
sc->sc_dev = self;
sys/dev/gpib/rd.c
310
rdattach(device_t parent, device_t self, void *aux)
sys/dev/gpib/rd.c
312
struct rd_softc *sc = device_private(self);
sys/dev/gpib/rd.c
318
sc->sc_dev = self;
sys/dev/gpio/gpio.c
145
gpio_resume(device_t self, const pmf_qual_t *qual)
sys/dev/gpio/gpio.c
147
struct gpio_softc *sc = device_private(self);
sys/dev/gpio/gpio.c
158
gpio_childdetached(device_t self, device_t child)
sys/dev/gpio/gpio.c
170
sc = device_private(self);
sys/dev/gpio/gpio.c
201
gpio_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/gpio/gpio.c
205
config_search(self, NULL,
sys/dev/gpio/gpio.c
230
gpio_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpio.c
232
struct gpio_softc *sc = device_private(self);
sys/dev/gpio/gpio.c
237
sc->sc_dev = self;
sys/dev/gpio/gpio.c
263
if (!pmf_device_register(self, NULL, gpio_resume))
sys/dev/gpio/gpio.c
264
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/gpio/gpio.c
272
gpio_rescan(self, "gpio", NULL);
sys/dev/gpio/gpio.c
276
gpio_detach(device_t self, int flags)
sys/dev/gpio/gpio.c
281
sc = device_private(self);
sys/dev/gpio/gpio.c
283
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/gpio/gpio.c
296
mn = device_unit(self);
sys/dev/gpio/gpiobutton.c
102
gpiobutton_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpiobutton.c
104
struct gpiobutton_softc * const sc = device_private(self);
sys/dev/gpio/gpiobutton.c
112
sc->sc_dev = self;
sys/dev/gpio/gpiobutton.c
130
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/dev/gpio/gpioiic.c
110
gpioiic_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpioiic.c
112
struct gpioiic_softc *sc = device_private(self);
sys/dev/gpio/gpioiic.c
192
sc->sc_i2c_dev = iicbus_attach(self, &sc->sc_i2c_tag);
sys/dev/gpio/gpioiic.c
194
if (!pmf_device_register(self, NULL, NULL))
sys/dev/gpio/gpioiic.c
196
device_xname(self));
sys/dev/gpio/gpioiic.c
204
gpioiic_detach(device_t self, int flags)
sys/dev/gpio/gpioiic.c
206
struct gpioiic_softc *sc = device_private(self);
sys/dev/gpio/gpioiic.c
209
error = config_detach_children(self, flags);
sys/dev/gpio/gpioiic.c
215
pmf_device_deregister(self);
sys/dev/gpio/gpioirq.c
149
gpioirq_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpioirq.c
151
struct gpioirq_softc *sc = device_private(self);
sys/dev/gpio/gpioirq.c
156
sc->sc_dev = self;
sys/dev/gpio/gpioirq.c
193
sc->sc_readpoolname = kmem_asprintf("girqread%d",device_unit(self));
sys/dev/gpio/gpioirq.c
202
aprint_error_dev(self, "failed to decode interrupt\n");
sys/dev/gpio/gpioirq.c
208
aprint_error_dev(self,
sys/dev/gpio/gpioirq.c
235
aprint_error_dev(self,
sys/dev/gpio/gpioirq.c
240
aprint_normal_dev(self, "interrupting on %s\n", sc->sc_intrs[apin].sc_intrstr);
sys/dev/gpio/gpioirq.c
417
gpioirq_detach(device_t self, int flags)
sys/dev/gpio/gpioirq.c
419
struct gpioirq_softc *sc = device_private(self);
sys/dev/gpio/gpioirq.c
466
gpioirq_activate(device_t self, enum devact act)
sys/dev/gpio/gpioirq.c
469
struct gpioirq_softc *sc = device_private(self);
sys/dev/gpio/gpiolock.c
121
if (keylock_register(self, sc->sc_npins, gpiolock_position)) {
sys/dev/gpio/gpiolock.c
126
if (!pmf_device_register(self, NULL, NULL))
sys/dev/gpio/gpiolock.c
127
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/gpio/gpiolock.c
137
gpiolock_detach(device_t self, int flags)
sys/dev/gpio/gpiolock.c
139
struct gpiolock_softc *sc = device_private(self);
sys/dev/gpio/gpiolock.c
141
pmf_device_deregister(self);
sys/dev/gpio/gpiolock.c
143
keylock_unregister(self, gpiolock_position);
sys/dev/gpio/gpiolock.c
151
gpiolock_activate(device_t self, enum devact act)
sys/dev/gpio/gpiolock.c
153
struct gpiolock_softc *sc = device_private(self);
sys/dev/gpio/gpiolock.c
90
gpiolock_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpiolock.c
92
struct gpiolock_softc *sc = device_private(self);
sys/dev/gpio/gpioow.c
101
struct gpioow_softc *sc = device_private(self);
sys/dev/gpio/gpioow.c
152
sc->sc_ow_dev = config_found(self, &oba, onewirebus_print, CFARGS_NONE);
sys/dev/gpio/gpioow.c
154
if (!pmf_device_register(self, NULL, NULL))
sys/dev/gpio/gpioow.c
156
device_xname(self));
sys/dev/gpio/gpioow.c
162
gpioow_detach(device_t self, int flags)
sys/dev/gpio/gpioow.c
164
struct gpioow_softc *sc = device_private(self);
sys/dev/gpio/gpioow.c
167
error = config_detach_children(self, flags);
sys/dev/gpio/gpioow.c
172
pmf_device_deregister(self);
sys/dev/gpio/gpioow.c
177
gpioow_activate(device_t self, enum devact act)
sys/dev/gpio/gpioow.c
179
struct gpioow_softc *sc = device_private(self);
sys/dev/gpio/gpioow.c
99
gpioow_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpiopps.c
119
gpiopps_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpiopps.c
121
struct gpiopps_softc *sc = device_private(self);
sys/dev/gpio/gpiopps.c
128
sc->sc_dev = self;
sys/dev/gpio/gpiopps.c
191
aprint_error_dev(self,
sys/dev/gpio/gpiopps.c
220
aprint_error_dev(self,
sys/dev/gpio/gpiopps.c
235
aprint_normal_dev(self, "ASSERT interrupting on %s\n",
sys/dev/gpio/gpiopps.c
237
aprint_normal_dev(self, "CLEAR interrupting on %s\n",
sys/dev/gpio/gpiopps.c
260
aprint_error_dev(self,
sys/dev/gpio/gpiopps.c
276
aprint_normal_dev(self, "ASSERT%s interrupting on %s\n",
sys/dev/gpio/gpiopps.c
347
gpiopps_detach(device_t self, int flags)
sys/dev/gpio/gpiopps.c
349
struct gpiopps_softc *sc = device_private(self);
sys/dev/gpio/gpiopwm.c
107
if (!pmf_device_register(self, NULL, NULL))
sys/dev/gpio/gpiopwm.c
108
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/gpio/gpiopwm.c
143
gpiopwm_detach(device_t self, int flags)
sys/dev/gpio/gpiopwm.c
145
struct gpiopwm_softc *sc = device_private(self);
sys/dev/gpio/gpiopwm.c
151
pmf_device_deregister(self);
sys/dev/gpio/gpiopwm.c
231
gpiopwm_activate(device_t self, enum devact act)
sys/dev/gpio/gpiopwm.c
233
struct gpiopwm_softc *sc = device_private(self);
sys/dev/gpio/gpiopwm.c
90
gpiopwm_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpiopwm.c
92
struct gpiopwm_softc *sc = device_private(self);
sys/dev/gpio/gpiopwm.c
96
sc->sc_dev = self;
sys/dev/gpio/gpiorfkill.c
82
gpiorfkill_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpiorfkill.c
84
struct gpiorfkill_softc * const sc = device_private(self);
sys/dev/gpio/gpiorfkill.c
88
sc->sc_dev = self;
sys/dev/gpio/gpiosim.c
118
gpiosim_attach(device_t parent, device_t self, void *aux)
sys/dev/gpio/gpiosim.c
120
struct gpiosim_softc *sc = device_private(self);
sys/dev/gpio/gpiosim.c
126
sc->sc_dev = self;
sys/dev/gpio/gpiosim.c
175
if (!pmf_device_register(self, NULL, NULL))
sys/dev/gpio/gpiosim.c
176
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/gpio/gpiosim.c
222
sc->sc_gdev = config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/dev/gpio/gpiosim.c
226
gpiosim_detach(device_t self, int flags)
sys/dev/gpio/gpiosim.c
228
struct gpiosim_softc *sc = device_private(self);
sys/dev/gpio/gpiosim.c
232
error = config_detach_children(self, flags);
sys/dev/gpio/gpiosim.c
236
pmf_device_deregister(self);
sys/dev/hdaudio/hdafg.c
3732
hdafg_attach(device_t parent, device_t self, void *opaque)
sys/dev/hdaudio/hdafg.c
3734
struct hdafg_softc *sc = device_private(self);
sys/dev/hdaudio/hdafg.c
3744
sc->sc_dev = self;
sys/dev/hdaudio/hdafg.c
3749
if (!pmf_device_register(self, hdafg_suspend, hdafg_resume))
sys/dev/hdaudio/hdafg.c
3750
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/hdaudio/hdafg.c
3786
prop_dictionary_set_uint64(device_properties(self),
sys/dev/hdaudio/hdafg.c
3789
prop_dictionary_set_uint64(device_properties(self),
sys/dev/hdaudio/hdafg.c
3882
&sc->sc_audiodev, self);
sys/dev/hdaudio/hdafg.c
3886
hdafg_detach(device_t self, int flags)
sys/dev/hdaudio/hdafg.c
3888
struct hdafg_softc *sc = device_private(self);
sys/dev/hdaudio/hdafg.c
3931
pmf_device_deregister(self);
sys/dev/hdaudio/hdafg.c
3937
hdafg_childdet(device_t self, device_t child)
sys/dev/hdaudio/hdafg.c
3939
struct hdafg_softc *sc = device_private(self);
sys/dev/hdaudio/hdafg.c
3946
hdafg_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/hdaudio/hdafg.c
3948
struct hdafg_softc *sc = device_private(self);
sys/dev/hdaudio/hdafg.c
3961
hdafg_resume(device_t self, const pmf_qual_t *qual)
sys/dev/hdaudio/hdafg.c
3963
struct hdafg_softc *sc = device_private(self);
sys/dev/hdaudio/hdafg.c
4388
hdafg_unsol(device_t self, uint8_t tag)
sys/dev/hdaudio/hdafg.c
4390
struct hdafg_softc *sc = device_private(self);
sys/dev/hdaudio/hdaudio.c
1536
device_t self;
sys/dev/hdaudio/hdaudio.c
1538
self = device_lookup(&hdaudio_cd, HDAUDIOUNIT(dev));
sys/dev/hdaudio/hdaudio.c
1539
if (self == NULL)
sys/dev/hdmicec/hdmicec.c
90
hdmicec_attach(device_t parent, device_t self, void *opaque)
sys/dev/hdmicec/hdmicec.c
92
struct hdmicec_softc *sc = device_private(self);
sys/dev/hdmicec/hdmicec.c
95
sc->sc_dev = self;
sys/dev/hid/hidkbd.c
253
hidkbd_attach(device_t self, struct hidkbd *kbd, int console,
sys/dev/hid/hidkbd.c
271
kbd->sc_device = self;
sys/dev/hid/hidms.c
104
device_xname(self), flags);
sys/dev/hid/hidms.c
111
device_xname(self));
sys/dev/hid/hidms.c
122
device_xname(self), flags);
sys/dev/hid/hidms.c
139
"supported\n", device_xname(self),
sys/dev/hid/hidms.c
177
device_xname(self), flags);
sys/dev/hid/hidms.c
203
aprint_error_dev(self,
sys/dev/hid/hidms.c
213
hidms_attach(device_t self, struct hidms *ms,
sys/dev/hid/hidms.c
250
a.accesscookie = device_private(self);
sys/dev/hid/hidms.c
252
ms->hidms_wsmousedev = config_found(self, &a, wsmousedevprint,
sys/dev/hid/hidms.c
77
hidms_setup(device_t self, struct hidms *ms, int id, void *desc, int size)
sys/dev/hid/hidms.c
93
device_xname(self));
sys/dev/hil/hil.c
193
hil_attach_deferred(device_t self)
sys/dev/hil/hil.c
195
struct hil_softc *sc = device_private(self);
sys/dev/hil/hil.c
232
aprint_debug(self, "%s: loop not ready, retrying...\n");
sys/dev/hil/hil.c
239
aprint_normal_dev(self, "no devices\n");
sys/dev/hil/hil.c
250
aprint_error_dev(self, "unable to create event thread\n");
sys/dev/hil/hilid.c
68
hilidattach(device_t parent, device_t self, void *aux)
sys/dev/hil/hilid.c
70
struct hilid_softc *sc = device_private(self);
sys/dev/hil/hilid.c
75
sc->sc_hildev.sc_dev = self;
sys/dev/hil/hilid.c
86
aprint_normal("%s: security code", device_xname(self));
sys/dev/hil/hilid.c
98
hiliddetach(device_t self, int flags)
sys/dev/hil/hilkbd.c
138
hilkbdattach(device_t parent, device_t self, void *aux)
sys/dev/hil/hilkbd.c
140
struct hilkbd_softc *sc = device_private(self);
sys/dev/hil/hilkbd.c
146
sc->sc_hildev.sc_dev = self;
sys/dev/hil/hilkbd.c
208
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/dev/hil/hilkbd.c
222
hilkbddetach(device_t self, int flags)
sys/dev/hil/hilkbd.c
224
struct hilkbd_softc *sc = device_private(self);
sys/dev/hil/hilms.c
103
sc->sc_hildev.sc_dev = self;
sys/dev/hil/hilms.c
149
aprint_normal_dev(self, "%d", rx);
sys/dev/hil/hilms.c
164
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/dev/hil/hilms.c
168
hilmsdetach(device_t self, int flags)
sys/dev/hil/hilms.c
172
error = config_detach_children(self, flags);
sys/dev/hil/hilms.c
96
hilmsattach(device_t parent, device_t self, void *aux)
sys/dev/hil/hilms.c
98
struct hilms_softc *sc = device_private(self);
sys/dev/hpc/apm/apmdev.c
608
apmdevattach(device_t parent, device_t self, void *aux)
sys/dev/hpc/apm/apmdev.c
613
sc = device_private(self);
sys/dev/hpc/apm/apmdev.c
614
sc->sc_dev = self;
sys/dev/hpc/apm_apmdevif.c
52
apm_apmdevif_attach(device_t parent, device_t self, void *aux)
sys/dev/hpc/apm_apmdevif.c
57
sc = device_private(self);
sys/dev/hpc/apm_apmdevif.c
58
sc->sc_dev = self;
sys/dev/hpc/bivideo.c
153
bivideoattach(device_t parent, device_t self, void *aux)
sys/dev/hpc/bivideo.c
155
struct bivideo_softc *sc = device_private(self);
sys/dev/hpc/bivideo.c
175
device_xname(self), (u_long)bootinfo->fb_addr);
sys/dev/hpc/bivideo.c
179
if (!pmf_device_register(self, bivideo_suspend, bivideo_resume))
sys/dev/hpc/bivideo.c
180
aprint_error_dev(self, "unable to establish power handler\n");
sys/dev/hpc/bivideo.c
198
config_found(self, &ha, hpcfbprint, CFARGS_NONE);
sys/dev/hpc/bivideo.c
372
bivideo_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/hpc/bivideo.c
374
struct bivideo_softc *sc = device_private(self);
sys/dev/hpc/bivideo.c
381
bivideo_resume(device_t self, const pmf_qual_t *qual)
sys/dev/hpc/bivideo.c
383
struct bivideo_softc *sc = device_private(self);
sys/dev/hpc/btnmgr.c
197
device_t self, void *aux)
sys/dev/hpc/btnmgr.c
200
struct btnmgr_softc *sc = device_private(self);
sys/dev/hpc/btnmgr.c
222
sc->sc_wskbddev = config_found(self, &wa, wskbddevprint, CFARGS_NONE);
sys/dev/hpc/btnmgr.c
224
if (!pmf_device_register(self, NULL, NULL))
sys/dev/hpc/btnmgr.c
225
aprint_error_dev(self, "unable to establish power handler\n");
sys/dev/hpc/button.c
87
button_attach(device_t parent, device_t self, void *aux)
sys/dev/hpc/button.c
91
struct button_softc *sc = device_private(self);
sys/dev/hpc/button.c
94
loc = device_cfdata(self)->cf_loc;
sys/dev/hpc/hpcapm.c
115
hpcapm_attach(device_t parent, device_t self, void *aux)
sys/dev/hpc/hpcapm.c
120
sc = device_private(self);
sys/dev/hpc/hpcapm.c
152
sc->sc_apmdev = config_found(self, &aaa, apmprint, CFARGS_NONE);
sys/dev/hpc/hpcapm.c
154
if (!pmf_device_register(self, NULL, NULL))
sys/dev/hpc/hpcapm.c
155
aprint_error_dev(self, "unable to establish power handler\n");
sys/dev/hpc/hpcfb.c
289
hpcfbattach(device_t parent, device_t self, void *aux)
sys/dev/hpc/hpcfb.c
295
sc = device_private(self);
sys/dev/hpc/hpcfb.c
296
sc->sc_dev = self;
sys/dev/hpc/hpcfb.c
327
sc->sc_wsdisplay = config_found(self, &wa, wsemuldisplaydevprint,
sys/dev/hpc/hpcfb.c
345
if (!pmf_device_register(self, hpcfb_suspend, hpcfb_resume))
sys/dev/hpc/hpcfb.c
346
aprint_error_dev(self, "unable to establish power handler\n");
sys/dev/hpc/hpcfb.c
675
hpcfb_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/hpc/hpcfb.c
677
struct hpcfb_softc *sc = device_private(self);
sys/dev/hpc/hpcfb.c
684
hpcfb_resume(device_t self, const pmf_qual_t *qual)
sys/dev/hpc/hpcfb.c
686
struct hpcfb_softc *sc = device_private(self);
sys/dev/hpc/hpcin.c
77
hpcin_attach(device_t parent, device_t self, void *aux)
sys/dev/hpc/hpcin.c
80
struct hpcin_softc *sc = device_private(self);
sys/dev/hpc/hpcioman.c
72
hpcioman_attach(device_t parent, device_t self, void *aux)
sys/dev/hpc/hpcioman.c
76
config_search(self, aux,
sys/dev/hpc/hpckbd.c
149
hpckbd_attach(device_t parent, device_t self, void *aux)
sys/dev/hpc/hpckbd.c
152
struct hpckbd_softc *sc = device_private(self);
sys/dev/hpc/hpckbd.c
156
sc->sc_dev = self;
sys/dev/hpc/hpckbd.c
186
sc->sc_core->hc_wskbddev = config_found(self, &wa, wskbddevprint,
sys/dev/hpc/hpckbd.c
189
if (!pmf_device_register(self, NULL, NULL))
sys/dev/hpc/hpckbd.c
190
aprint_error_dev(self, "unable to establish power handler\n");
sys/dev/hpc/hpcout.c
74
hpcout_attach(device_t parent, device_t self, void *aux)
sys/dev/hpc/hpcout.c
77
struct hpcout_softc *sc = device_private(self);
sys/dev/hpc/hpf1275a_tty.c
246
hpf1275a_match(device_t self, cfdata_t cfdata, void *arg)
sys/dev/hpc/hpf1275a_tty.c
259
hpf1275a_attach(device_t parent, device_t self, void *aux)
sys/dev/hpc/hpf1275a_tty.c
261
struct hpf1275a_softc *sc = device_private(self);
sys/dev/hpc/hpf1275a_tty.c
269
sc->sc_dev = self;
sys/dev/hpc/hpf1275a_tty.c
274
sc->sc_wskbd = config_found(self, &wska, wskbddevprint, CFARGS_NONE);
sys/dev/hpc/hpf1275a_tty.c
282
hpf1275a_detach(device_t self, int flags)
sys/dev/hpc/hpf1275a_tty.c
287
error = config_detach_children(self, flags);
sys/dev/hpc/hpf1275a_tty.c
309
device_t self;
sys/dev/hpc/hpf1275a_tty.c
323
self = config_attach_pseudo(&hpf1275a_cfdata);
sys/dev/hpc/hpf1275a_tty.c
324
if (self == NULL) {
sys/dev/hpc/hpf1275a_tty.c
329
sc = device_private(self);
sys/dev/hpc/hpf1275a_tty.c
411
hpf1275a_wskbd_enable(void *self, int on)
sys/dev/hpc/hpf1275a_tty.c
413
struct hpf1275a_softc *sc = self;
sys/dev/hpc/hpf1275a_tty.c
422
hpf1275a_wskbd_set_leds(void *self, int leds)
sys/dev/hpc/hpf1275a_tty.c
431
hpf1275a_wskbd_ioctl(void *self, u_long cmd, void *data, int flag,
sys/dev/hpc/hpf1275a_tty.c
435
struct hpf1275a_softc *sc = self;
sys/dev/hpc/pwctl.c
110
pwctl_attach(device_t parent, device_t self, void *aux)
sys/dev/hpc/pwctl.c
114
struct pwctl_softc *sc = device_private(self);
sys/dev/hpc/pwctl.c
116
loc = device_cfdata(self)->cf_loc;
sys/dev/hyperv/genfb_vmbus.c
100
pmf_device_register1(self,
sys/dev/hyperv/genfb_vmbus.c
106
aprint_debug_dev(self, "not configured by firmware\n");
sys/dev/hyperv/genfb_vmbus.c
117
config_found(self, aux, genfb_vmbus_drm_print,
sys/dev/hyperv/genfb_vmbus.c
154
genfb_vmbus_shutdown(device_t self, int flags)
sys/dev/hyperv/genfb_vmbus.c
157
genfb_enable_polling(self);
sys/dev/hyperv/genfb_vmbus.c
80
genfb_vmbus_attach(device_t parent, device_t self, void *aux)
sys/dev/hyperv/genfb_vmbus.c
83
struct genfb_vmbus_softc *sc = device_private(self);
sys/dev/hyperv/genfb_vmbus.c
90
sc->sc_gen.sc_dev = self;
sys/dev/hyperv/genfb_vmbus.c
97
pmf_device_register1(self, NULL, NULL,
sys/dev/hyperv/hvheartbeat.c
101
pmf_device_deregister(self);
sys/dev/hyperv/hvheartbeat.c
77
hvheartbeat_attach(device_t parent, device_t self, void *aux)
sys/dev/hyperv/hvheartbeat.c
85
error = vmbusic_attach(self, aa, hvheartbeat_channel_cb);
sys/dev/hyperv/hvheartbeat.c
89
(void) pmf_device_register(self, NULL, NULL);
sys/dev/hyperv/hvheartbeat.c
93
hvheartbeat_detach(device_t self, int flags)
sys/dev/hyperv/hvheartbeat.c
97
error = vmbusic_detach(self, flags);
sys/dev/hyperv/hvkbd.c
195
hvkbd_attach(device_t parent, device_t self, void *aux)
sys/dev/hyperv/hvkbd.c
197
struct hvkbd_softc *sc = device_private(self);
sys/dev/hyperv/hvkbd.c
201
sc->sc_dev = self;
sys/dev/hyperv/hvkbd.c
217
aprint_error_dev(self, "failed to open channel\n");
sys/dev/hyperv/hvkbd.c
224
if (!pmf_device_register(self, NULL, NULL))
sys/dev/hyperv/hvkbd.c
225
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/hyperv/hvkbd.c
240
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/dev/hyperv/hvs.c
324
hvs_attach(device_t parent, device_t self, void *aux)
sys/dev/hyperv/hvs.c
327
struct hvs_softc *sc = device_private(self);
sys/dev/hyperv/hvs.c
334
sc->sc_dev = self;
sys/dev/hyperv/hvs.c
353
if (vmbus_channel_setdeferred(sc->sc_chan, device_xname(self))) {
sys/dev/hyperv/hvs.c
354
aprint_error_dev(self,
sys/dev/hyperv/hvs.c
361
aprint_error_dev(self, "failed to open channel\n");
sys/dev/hyperv/hvs.c
371
aprint_normal_dev(self, "protocol %u.%u\n",
sys/dev/hyperv/hvs.c
376
adapt->adapt_dev = self;
sys/dev/hyperv/hvs.c
394
sc->sc_scsibus = config_found(self, &sc->sc_channel, scsiprint,
sys/dev/hyperv/hvs.c
429
hvs_detach(device_t self, int flags)
sys/dev/hyperv/hvshutdown.c
105
hvshutdown_detach(device_t self, int flags)
sys/dev/hyperv/hvshutdown.c
107
struct hvshutdown_softc *sc = device_private(self);
sys/dev/hyperv/hvshutdown.c
110
error = vmbusic_detach(self, flags);
sys/dev/hyperv/hvshutdown.c
114
pmf_device_deregister(self);
sys/dev/hyperv/hvshutdown.c
82
hvshutdown_attach(device_t parent, device_t self, void *aux)
sys/dev/hyperv/hvshutdown.c
84
struct hvshutdown_softc *sc = device_private(self);
sys/dev/hyperv/hvshutdown.c
91
error = vmbusic_attach(self, aa, hvshutdown_channel_cb);
sys/dev/hyperv/hvshutdown.c
95
(void) pmf_device_register(self, NULL, NULL);
sys/dev/hyperv/hvshutdown.c
99
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/dev/hyperv/hvtimesync.c
102
(void) pmf_device_register(self, NULL, NULL);
sys/dev/hyperv/hvtimesync.c
104
(void) hvtimesync_sysctl_setup(self);
sys/dev/hyperv/hvtimesync.c
108
hvtimesync_detach(device_t self, int flags)
sys/dev/hyperv/hvtimesync.c
112
error = vmbusic_detach(self, flags);
sys/dev/hyperv/hvtimesync.c
116
pmf_device_deregister(self);
sys/dev/hyperv/hvtimesync.c
253
hvtimesync_sysctl_setup(device_t self)
sys/dev/hyperv/hvtimesync.c
255
struct hvtimesync_softc *sc = device_private(self);
sys/dev/hyperv/hvtimesync.c
90
hvtimesync_attach(device_t parent, device_t self, void *aux)
sys/dev/hyperv/hvtimesync.c
98
error = vmbusic_attach(self, aa, hvtimesync_channel_cb);
sys/dev/hyperv/if_hvn.c
573
hvn_attach(device_t parent, device_t self, void *aux)
sys/dev/hyperv/if_hvn.c
575
struct hvn_softc *sc = device_private(self);
sys/dev/hyperv/if_hvn.c
584
sc->sc_dev = self;
sys/dev/hyperv/if_hvn.c
607
device_xname(self))) {
sys/dev/hyperv/if_hvn.c
608
aprint_error_dev(self, "failed to create link thread\n");
sys/dev/hyperv/if_hvn.c
612
snprintf(xnamebuf, sizeof(xnamebuf), "%srxtx", device_xname(self));
sys/dev/hyperv/if_hvn.c
615
aprint_error_dev(self, "failed to create workqueue\n");
sys/dev/hyperv/if_hvn.c
633
aprint_error_dev(self, "failed to create Tx ring\n");
sys/dev/hyperv/if_hvn.c
638
aprint_error_dev(self, "failed to create Rx ring\n");
sys/dev/hyperv/if_hvn.c
672
aprint_error_dev(self, "failed to attach synth\n");
sys/dev/hyperv/if_hvn.c
676
aprint_normal_dev(self, "NVS %d.%d NDIS %d.%d\n",
sys/dev/hyperv/if_hvn.c
681
aprint_error_dev(self,
sys/dev/hyperv/if_hvn.c
685
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(enaddr));
sys/dev/hyperv/if_hvn.c
727
if (pmf_device_register(self, NULL, NULL))
sys/dev/hyperv/if_hvn.c
728
pmf_class_network_register(self, ifp);
sys/dev/hyperv/if_hvn.c
730
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/hyperv/if_hvn.c
757
hvn_detach(device_t self, int flags)
sys/dev/hyperv/if_hvn.c
759
struct hvn_softc *sc = device_private(self);
sys/dev/hyperv/if_hvn.c
768
pmf_device_deregister(self);
sys/dev/hyperv/vmbus.c
316
vmbus_attach_deferred(device_t self)
sys/dev/hyperv/vmbus.c
318
struct vmbus_softc *sc = device_private(self);
sys/dev/i2c/ac100.c
145
ac100_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/ac100.c
147
struct ac100_softc *sc = device_private(self);
sys/dev/i2c/ac100.c
150
sc->sc_dev = self;
sys/dev/i2c/ac100.c
162
if (devhandle_type(device_handle(self)) == DEVHANDLE_TYPE_OF) {
sys/dev/i2c/ac100.c
163
int phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/ac100.c
164
fdt_add_bus(self, phandle, NULL);
sys/dev/i2c/ac100.c
184
ac100rtc_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/ac100.c
186
struct ac100rtc_softc *sc = device_private(self);
sys/dev/i2c/ac100.c
188
sc->sc_dev = self;
sys/dev/i2c/ac100.c
194
sc->sc_todr.todr_dev = self;
sys/dev/i2c/act8846.c
160
act8846_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/act8846.c
162
struct act8846_softc *sc = device_private(self);
sys/dev/i2c/act8846.c
166
sc->sc_dev = self;
sys/dev/i2c/act8846.c
177
sc->sc_ctrl[n].c_dev = self;
sys/dev/i2c/adadc.c
125
adadc_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/adadc.c
127
struct adadc_softc *sc = device_private(self);
sys/dev/i2c/adadc.c
134
int phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/adadc.c
136
sc->sc_dev = self;
sys/dev/i2c/adadc.c
144
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/adadc.c
234
aprint_debug_dev(self, "monitoring CPU %d\n", which_cpu);
sys/dev/i2c/adm1021.c
332
admtemp_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/adm1021.c
334
struct admtemp_softc *sc = device_private(self);
sys/dev/i2c/adm1021.c
344
aprint_error_dev(self, "cannot acquire iic bus\n");
sys/dev/i2c/adm1021.c
351
aprint_error_dev(self, "cannot get control register\n");
sys/dev/i2c/adm1021.c
358
aprint_error_dev(self,
sys/dev/i2c/adm1021.c
366
aprint_error_dev(self,
sys/dev/i2c/adm1021.c
381
aprint_error_dev(self,
sys/dev/i2c/adm1021.c
409
device_getprop_string(self, "s00", iname, sizeof(iname));
sys/dev/i2c/adm1021.c
410
device_getprop_string(self, "s01", ename, sizeof(ename));
sys/dev/i2c/adm1021.c
422
aprint_error_dev(self,
sys/dev/i2c/adm1021.c
431
aprint_error_dev(self,
sys/dev/i2c/adm1021.c
435
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/adm1021.c
449
aprint_error_dev(self,
sys/dev/i2c/adm1026.c
254
adm1026_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/adm1026.c
256
struct adm1026_softc *sc = device_private(self);
sys/dev/i2c/adm1026.c
258
prop_dictionary_t props = device_properties(self);
sys/dev/i2c/adm1026.c
264
sc->sc_dev = self;
sys/dev/i2c/adm1026.c
323
aprint_normal_dev(self, "%d fans, %d temperatures, %d voltages\n",
sys/dev/i2c/adm1026.c
326
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/adm1026.c
332
aprint_error_dev(self,
sys/dev/i2c/adm1026.c
337
if (!pmf_device_register(self, adm1026_pmf_suspend, adm1026_pmf_resume))
sys/dev/i2c/adm1026.c
338
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/adm1026.c
375
adm1026_detach(device_t self, int flags)
sys/dev/i2c/adm1026.c
377
struct adm1026_softc *sc = device_private(self);
sys/dev/i2c/adm1026.c
379
pmf_device_deregister(self);
sys/dev/i2c/adt7462.c
262
adt7462_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/adt7462.c
264
struct adt7462_softc *sc = device_private(self);
sys/dev/i2c/adt7462.c
266
prop_dictionary_t props = device_properties(self);
sys/dev/i2c/adt7462.c
271
sc->sc_dev = self;
sys/dev/i2c/adt7462.c
325
aprint_normal_dev(self, "%d fans, %d temperatures, %d voltages\n",
sys/dev/i2c/adt7462.c
328
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/adt7462.c
334
aprint_error_dev(self,
sys/dev/i2c/adt7462.c
339
if (!pmf_device_register(self,
sys/dev/i2c/adt7462.c
341
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/adt7462.c
387
adt7462_detach(device_t self, int flags)
sys/dev/i2c/adt7462.c
389
struct adt7462_softc *sc = device_private(self);
sys/dev/i2c/adt7462.c
391
pmf_device_deregister(self);
sys/dev/i2c/aht20.c
279
aht20_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/aht20.c
287
sc = device_private(self);
sys/dev/i2c/aht20.c
289
sc->sc_dev = self;
sys/dev/i2c/aht20.c
303
aprint_error_dev(self,
sys/dev/i2c/aht20.c
309
aprint_error_dev(self, "Can't setup sysctl tree (%d)\n", error);
sys/dev/i2c/aht20.c
315
aprint_error_dev(self, "Could not acquire iic bus: %d\n",
sys/dev/i2c/aht20.c
323
aprint_error_dev(self, "Reset failed: %d\n", error);
sys/dev/i2c/aht20.c
328
aprint_error_dev(self, "Unable to setup device\n");
sys/dev/i2c/aht20.c
345
aprint_error_dev(self,
sys/dev/i2c/aht20.c
358
aprint_error_dev(self,
sys/dev/i2c/aht20.c
365
aprint_normal_dev(self, "Guangzhou Aosong AHT20\n");
sys/dev/i2c/aht20.c
509
aht20_detach(device_t self, int flags)
sys/dev/i2c/aht20.c
513
sc = device_private(self);
sys/dev/i2c/am2315.c
187
am2315_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/am2315.c
189
struct am2315_sc *sc = device_private(self);
sys/dev/i2c/am2315.c
198
sc->sc_dev = self;
sys/dev/i2c/am2315.c
215
aprint_error_dev(self, "unable to create sysmon structure\n");
sys/dev/i2c/am2315.c
223
CTLTYPE_NODE, device_xname(self),
sys/dev/i2c/am2315.c
254
aprint_error_dev(self,
sys/dev/i2c/am2315.c
263
device_xname(self), buf[0], buf[1], buf[2], buf[3], \
sys/dev/i2c/am2315.c
279
aprint_error_dev(self, "read chipver: %d\n", error);
sys/dev/i2c/am2315.c
289
aprint_error_dev(self, "read id 1: %d\n", error);
sys/dev/i2c/am2315.c
299
aprint_error_dev(self, "read id 2: %d\n", error);
sys/dev/i2c/am2315.c
323
aprint_error_dev(self, "unable to attach sensor %d\n",
sys/dev/i2c/am2315.c
337
aprint_error_dev(self, "unable to register with sysmon %d\n",
sys/dev/i2c/am2315.c
341
aprint_normal_dev(self, "Aosong AM2315, Model: %04x%s Version: %02x%s"
sys/dev/i2c/am2315.c
349
aprint_error_dev(self, ": can't setup sysctl tree (%d)\n", error);
sys/dev/i2c/am2315.c
454
am2315_detach(device_t self, int flags)
sys/dev/i2c/am2315.c
456
struct am2315_sc *sc = device_private(self);
sys/dev/i2c/anxedp.c
404
anxedp_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/anxedp.c
406
struct anxedp_softc * const sc = device_private(self);
sys/dev/i2c/anxedp.c
409
sc->sc_dev = self;
sys/dev/i2c/anxedp.c
412
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/anxedp.c
419
fdt_ports_register(&sc->sc_ports, self, sc->sc_phandle, EP_DRM_BRIDGE);
sys/dev/i2c/as3722.c
258
as3722_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/as3722.c
260
struct as3722_softc * const sc = device_private(self);
sys/dev/i2c/as3722.c
263
sc->sc_dev = self;
sys/dev/i2c/as3722.c
268
if (devhandle_type(device_handle(self)) == DEVHANDLE_TYPE_OF) {
sys/dev/i2c/as3722.c
269
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/as3722.c
281
fdtbus_register_power_controller(self, sc->sc_phandle,
sys/dev/i2c/as3722.c
531
as3722reg_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/as3722.c
533
struct as3722reg_softc *sc = device_private(self);
sys/dev/i2c/as3722.c
538
sc->sc_dev = self;
sys/dev/i2c/as3722.c
542
fdtbus_register_regulator_controller(self, sc->sc_phandle,
sys/dev/i2c/asms.c
105
asms_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/asms.c
107
struct asms_softc *sc = device_private(self);
sys/dev/i2c/asms.c
111
sc->sc_dev = self;
sys/dev/i2c/asms.c
121
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/at24cxx.c
148
seeprom_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/at24cxx.c
150
struct seeprom_softc *sc = device_private(self);
sys/dev/i2c/at24cxx.c
156
sc->sc_dev = self;
sys/dev/i2c/at24cxx.c
180
if (device_cfdata(self)->cf_flags)
sys/dev/i2c/at24cxx.c
181
sc->sc_size = (device_cfdata(self)->cf_flags << 7);
sys/dev/i2c/at24cxx.c
219
aprint_error_dev(self, "invalid size specified; "
sys/dev/i2c/axp20x.c
233
axp20x_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/axp20x.c
235
struct axp20x_softc *sc = device_private(self);
sys/dev/i2c/axp20x.c
241
sc->sc_dev = self;
sys/dev/i2c/axp20x.c
244
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/axp20x.c
300
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/axp20x.c
767
axp20xreg_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/axp20x.c
769
struct axp20xreg_softc * const sc = device_private(self);
sys/dev/i2c/axp20x.c
773
sc->sc_dev = self;
sys/dev/i2c/axp20x.c
785
fdtbus_register_regulator_controller(self, sc->sc_phandle, &axp20xreg_funcs);
sys/dev/i2c/axp22x.c
83
axp22x_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/axp22x.c
85
struct axp22x_softc *sc = device_private(self);
sys/dev/i2c/axp22x.c
88
sc->sc_dev = self;
sys/dev/i2c/axp22x.c
96
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/axp809.c
120
axp809_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/axp809.c
122
struct axp809_softc *sc = device_private(self);
sys/dev/i2c/axp809.c
126
sc->sc_dev = self;
sys/dev/i2c/axp809.c
137
sc->sc_ctrl[n].c_dev = self;
sys/dev/i2c/axppmic.c
1170
axppmic_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/axppmic.c
1172
struct axppmic_softc *sc = device_private(self);
sys/dev/i2c/axppmic.c
1185
sc->sc_dev = self;
sys/dev/i2c/axppmic.c
1188
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/axppmic.c
1209
aprint_error_dev(self, "couldn't read chipid\n");
sys/dev/i2c/axppmic.c
1212
aprint_debug_dev(self, "chipid %#x\n", val);
sys/dev/i2c/axppmic.c
1214
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/dev/i2c/axppmic.c
1225
aprint_error_dev(self,
sys/dev/i2c/axppmic.c
1233
aprint_error_dev(self,
sys/dev/i2c/axppmic.c
1237
error = workqueue_create(&sc->sc_wq, device_xname(self),
sys/dev/i2c/axppmic.c
1243
aprint_error_dev(self,
sys/dev/i2c/axppmic.c
1278
fdtbus_register_gpio_controller(self, phandle,
sys/dev/i2c/axppmic.c
1380
axpreg_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/axppmic.c
1382
struct axpreg_softc *sc = device_private(self);
sys/dev/i2c/axppmic.c
1388
sc->sc_dev = self;
sys/dev/i2c/axppmic.c
1393
fdtbus_register_regulator_controller(self, phandle,
sys/dev/i2c/axppmic.c
1403
int error = axpreg_get_voltage(self, &uvol);
sys/dev/i2c/axppmic.c
1410
aprint_debug_dev(self, "fix voltage %u uV -> %u/%u uV\n",
sys/dev/i2c/axppmic.c
1412
axpreg_set_voltage(self, min_uvol, max_uvol);
sys/dev/i2c/axppmic.c
1418
axpreg_enable(self, true);
sys/dev/i2c/bmx280thpi2c.c
191
bmx280thpi2c_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/bmx280thpi2c.c
193
struct bmx280_i2c_softc *isc = device_private(self);
sys/dev/i2c/bmx280thpi2c.c
197
sc->sc_dev = self;
sys/dev/i2c/bmx280thpi2c.c
207
bmx280thpi2c_detach(device_t self, int flags)
sys/dev/i2c/bmx280thpi2c.c
209
struct bmx280_i2c_softc *isc = device_private(self);
sys/dev/i2c/cwfg.c
431
cwfg_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/cwfg.c
433
struct cwfg_softc *sc = device_private(self);
sys/dev/i2c/cwfg.c
438
sc->sc_dev = self;
sys/dev/i2c/cwfg.c
441
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/cwfg.c
456
aprint_error_dev(self, "failed to parse resources\n");
sys/dev/i2c/cwfg.c
461
aprint_error_dev(self, "failed to initialize device\n");
sys/dev/i2c/dbcool.c
1489
dbcool_setup(device_t self)
sys/dev/i2c/dbcool.c
1491
struct dbcool_softc *sc = device_private(self);
sys/dev/i2c/dbcool.c
1523
CTLTYPE_NODE, device_xname(self), NULL,
sys/dev/i2c/dbcool.c
1531
aprint_debug_dev(self,
sys/dev/i2c/dbcool.c
1583
aprint_normal_dev(self, "configuration locked\n");
sys/dev/i2c/dbcool.c
1585
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/dbcool.c
1592
aprint_error_dev(self,
sys/dev/i2c/dbcool.c
766
dbcool_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/dbcool.c
768
struct dbcool_softc *sc = device_private(self);
sys/dev/i2c/dbcool.c
777
sc->sc_dev = self;
sys/dev/i2c/dbcool.c
789
aprint_normal_dev(self, "SMSC %s Controller "
sys/dev/i2c/dbcool.c
793
aprint_normal_dev(self, "%s dBCool(tm) Controller "
sys/dev/i2c/dbcool.c
798
aprint_normal_dev(self, "%s dBCool(tm) Controller "
sys/dev/i2c/dbcool.c
807
dbcool_setup(self);
sys/dev/i2c/dbcool.c
809
if (!pmf_device_register(self, dbcool_pmf_suspend, dbcool_pmf_resume))
sys/dev/i2c/dbcool.c
810
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/dbcool.c
814
dbcool_detach(device_t self, int flags)
sys/dev/i2c/dbcool.c
816
struct dbcool_softc *sc = device_private(self);
sys/dev/i2c/dbcool.c
818
pmf_device_deregister(self);
sys/dev/i2c/ddc.c
78
ddc_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/ddc.c
80
struct ddc_softc *sc = device_private(self);
sys/dev/i2c/ds1307.c
295
dsrtc_attach(device_t parent, device_t self, void *arg)
sys/dev/i2c/ds1307.c
297
struct dsrtc_softc *sc = device_private(self);
sys/dev/i2c/ds1307.c
302
dm = dsrtc_model_by_number(device_cfdata(self)->cf_flags);
sys/dev/i2c/ds1307.c
317
sc->sc_dev = self;
sys/dev/i2c/ds1307.c
319
sc->sc_todr.todr_dev = self;
sys/dev/i2c/ds1307.c
329
sc->sc_base_year = device_getprop_uint_default(self, "start-year",
sys/dev/i2c/ds1307.c
337
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/ds1307.c
348
aprint_error_dev(self, "unable to attach sensor\n");
sys/dev/i2c/ds1307.c
354
aprint_error_dev(self,
sys/dev/i2c/ds2482ow.c
555
ds2482_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/ds2482ow.c
565
sc = device_private(self);
sys/dev/i2c/ds2482ow.c
567
sc->sc_dev = self;
sys/dev/i2c/ds2482ow.c
618
aprint_error_dev(self, "Could not acquire iic bus: %d\n",
sys/dev/i2c/ds2482ow.c
625
aprint_error_dev(self, "Reset failed: %d\n", error);
sys/dev/i2c/ds2482ow.c
638
aprint_error_dev(self, "Unable to setup device\n");
sys/dev/i2c/ds2482ow.c
646
aprint_normal_dev(self, "Maxim DS2482-%s I2C to 1-Wire bridge,"
sys/dev/i2c/ds2482ow.c
671
config_found(self, &oba, onewirebus_print, CFARGS_NONE);
sys/dev/i2c/ds2482ow.c
805
ds2482_detach(device_t self, int flags)
sys/dev/i2c/ds2482ow.c
809
sc = device_private(self);
sys/dev/i2c/dstemp.c
101
dstemp_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/dstemp.c
103
struct dstemp_softc *sc = device_private(self);
sys/dev/i2c/dstemp.c
107
sc->sc_dev = self;
sys/dev/i2c/dstemp.c
117
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/dstemp.c
125
if (device_getprop_string(self, "s00", name, sizeof(name)) < 0) {
sys/dev/i2c/dstemp.c
126
device_getprop_string(self, "saa", name, sizeof(name));
sys/dev/i2c/em3027.c
143
em3027rtc_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/em3027.c
145
struct em3027rtc_softc *sc = device_private(self);
sys/dev/i2c/em3027.c
158
sc->sc_dev = self;
sys/dev/i2c/em3027.c
237
sc->sc_todr.todr_dev = self;
sys/dev/i2c/emcfan.c
1902
emcfan_detach(device_t self, int flags)
sys/dev/i2c/emcfan.c
1907
sc = device_private(self);
sys/dev/i2c/emcfan.c
1912
err = config_detach_children(self, flags);
sys/dev/i2c/emcfan.c
1934
emcfan_activate(device_t self, enum devact act)
sys/dev/i2c/emcfan.c
1936
struct emcfan_sc *sc = device_private(self);
sys/dev/i2c/emcfan.c
323
emcfan_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/emcfan.c
331
sc = device_private(self);
sys/dev/i2c/emcfan.c
333
sc->sc_dev = self;
sys/dev/i2c/emcfan.c
349
aprint_error_dev(self,
sys/dev/i2c/emcfan.c
357
aprint_error_dev(self, "Could not acquire iic bus: %d\n",
sys/dev/i2c/emcfan.c
364
aprint_error_dev(self, "Could not get the product id\n");
sys/dev/i2c/emcfan.c
368
aprint_error_dev(self, "Could not get the revision of the chip\n");
sys/dev/i2c/emcfan.c
374
aprint_error_dev(self, "Unable to setup device\n");
sys/dev/i2c/emcfan.c
380
aprint_error_dev(self, "Unknown product id: %02x\n",product_id);
sys/dev/i2c/emcfan.c
386
aprint_error_dev(self, "Can't setup sysctl tree (%d)\n", error);
sys/dev/i2c/emcfan.c
413
aprint_error_dev(self,
sys/dev/i2c/emcfan.c
444
aprint_error_dev(self,
sys/dev/i2c/emcfan.c
475
aprint_error_dev(self,
sys/dev/i2c/emcfan.c
508
aprint_error_dev(self,
sys/dev/i2c/emcfan.c
527
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/i2c/emcfan.c
533
aprint_normal_dev(self, "Microchip Technology %s fan controller, "
sys/dev/i2c/emcfan.c
540
aprint_normal_dev(self, "Fans: %d, Tachometers: %d, Internal Temperature: %s, External Sensors: %d, GPIO: %s\n",
sys/dev/i2c/es8316ac.c
689
escodec_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/es8316ac.c
691
struct escodec_softc * const sc = device_private(self);
sys/dev/i2c/es8316ac.c
694
sc->sc_dev = self;
sys/dev/i2c/es8316ac.c
717
sc->sc_dai.dai_dev = self;
sys/dev/i2c/es8316ac.c
719
fdtbus_register_dai_controller(self, phandle, &escodec_dai_funcs);
sys/dev/i2c/fan53555.c
301
fan53555_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/fan53555.c
303
struct fan53555_softc * const sc = device_private(self);
sys/dev/i2c/fan53555.c
307
sc->sc_dev = self;
sys/dev/i2c/fan53555.c
310
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/fan53555.c
318
fdtbus_register_regulator_controller(self, sc->sc_phandle,
sys/dev/i2c/fusbtc.c
249
fusbtc_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/fusbtc.c
251
struct fusbtc_softc * const sc = device_private(self);
sys/dev/i2c/fusbtc.c
263
sc->sc_dev = self;
sys/dev/i2c/fusbtc.c
266
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/fusbtc.c
300
fusbtc_intr, sc, device_xname(self));
sys/dev/i2c/g760a.c
90
g760a_attach(device_t parent, device_t self, void* arg)
sys/dev/i2c/g760a.c
93
struct g760a_softc* sc = device_private(self);
sys/dev/i2c/g760a.c
97
sc->sc_dev = self;
sys/dev/i2c/gttwsi_core.c
122
gttwsi_attach_subr(device_t self, bus_space_tag_t iot, bus_space_handle_t ioh,
sys/dev/i2c/gttwsi_core.c
125
struct gttwsi_softc * const sc = device_private(self);
sys/dev/i2c/gttwsi_core.c
130
sc->sc_dev = self;
sys/dev/i2c/gttwsi_core.c
136
cv_init(&sc->sc_cv, device_xname(self));
sys/dev/i2c/gttwsi_core.c
155
gttwsi_config_children(device_t self)
sys/dev/i2c/gttwsi_core.c
157
struct gttwsi_softc * const sc = device_private(self);
sys/dev/i2c/gttwsi_core.c
159
iicbus_attach(self, &sc->sc_i2c);
sys/dev/i2c/hytp14.c
149
hytp14_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/hytp14.c
157
sc = device_private(self);
sys/dev/i2c/hytp14.c
159
sc->sc_dev = self;
sys/dev/i2c/hytp14.c
236
aprint_error_dev(self, "unable to create intr thread\n");
sys/dev/i2c/hytp14.c
242
hytp14_detach(device_t self, int flags)
sys/dev/i2c/hytp14.c
246
sc = device_private(self);
sys/dev/i2c/i2c.c
622
iic_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/i2c/i2c.c
624
config_search(self, NULL,
sys/dev/i2c/i2c.c
668
i2c_enumerate_devices_callback(device_t self,
sys/dev/i2c/i2c.c
671
struct iic_softc *sc = device_private(self);
sys/dev/i2c/i2c.c
776
iic_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/i2c.c
778
struct iic_softc *sc = device_private(self);
sys/dev/i2c/i2c.c
779
devhandle_t devhandle = device_handle(self);
sys/dev/i2c/i2c.c
785
sc->sc_dev = self;
sys/dev/i2c/i2c.c
792
if (!pmf_device_register(self, NULL, NULL))
sys/dev/i2c/i2c.c
793
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/i2c.c
799
acpi_i2c_register(self, sc->sc_tag);
sys/dev/i2c/i2c.c
804
fdtbus_register_i2c_controller(self, sc->sc_tag);
sys/dev/i2c/i2c.c
816
iic_rescan(self, "iic", NULL);
sys/dev/i2c/i2c.c
821
iic_detach(device_t self, int flags)
sys/dev/i2c/i2c.c
825
error = config_detach_children(self, flags);
sys/dev/i2c/i2c.c
829
pmf_device_deregister(self);
sys/dev/i2c/ibmhawk.c
117
ibmhawk_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/ibmhawk.c
119
struct ibmhawk_softc *sc = device_private(self);
sys/dev/i2c/ibmhawk.c
124
sc->sc_dev = self;
sys/dev/i2c/ibmhawk.c
128
if (!pmf_device_register(self, NULL, NULL))
sys/dev/i2c/ibmhawk.c
129
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/ibmhawk.c
131
aprint_error_dev(self, "communication failed\n");
sys/dev/i2c/ibmhawk.c
181
ibmhawk_detach(device_t self, int flags)
sys/dev/i2c/ibmhawk.c
183
struct ibmhawk_softc *sc = device_private(self);
sys/dev/i2c/ihidev.c
157
ihidev_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/ihidev.c
159
struct ihidev_softc *sc = device_private(self);
sys/dev/i2c/ihidev.c
167
sc->sc_dev = self;
sys/dev/i2c/ihidev.c
172
if (devhandle_type(device_handle(self)) != DEVHANDLE_TYPE_ACPI) {
sys/dev/i2c/ihidev.c
195
aprint_normal_dev(self, "%d report id%s\n", sc->sc_nrepid,
sys/dev/i2c/ihidev.c
227
dev = config_found(self, &iha, ihidev_print,
sys/dev/i2c/ihidev.c
248
dev = config_found(self, &iha, ihidev_print,
sys/dev/i2c/ihidev.c
261
if (!pmf_device_register(self, ihidev_suspend, ihidev_resume))
sys/dev/i2c/ihidev.c
262
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/ihidev.c
266
ihidev_detach(device_t self, int flags)
sys/dev/i2c/ihidev.c
268
struct ihidev_softc *sc = device_private(self);
sys/dev/i2c/ihidev.c
271
error = config_detach_children(self, flags);
sys/dev/i2c/ihidev.c
275
pmf_device_deregister(self);
sys/dev/i2c/ihidev.c
296
ihidev_suspend(device_t self, const pmf_qual_t *q)
sys/dev/i2c/ihidev.c
298
struct ihidev_softc *sc = device_private(self);
sys/dev/i2c/ihidev.c
312
ihidev_resume(device_t self, const pmf_qual_t *q)
sys/dev/i2c/ihidev.c
314
struct ihidev_softc *sc = device_private(self);
sys/dev/i2c/ikbd.c
102
sc->sc_hdev.sc_idev = self;
sys/dev/i2c/ikbd.c
113
if (hidkbd_attach(self, kbd, 1, 0, repid, desc, dlen) != 0)
sys/dev/i2c/ikbd.c
128
ikbd_detach(device_t self, int flags)
sys/dev/i2c/ikbd.c
130
struct ikbd_softc *sc = device_private(self);
sys/dev/i2c/ikbd.c
94
ikbd_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/ikbd.c
96
struct ikbd_softc *sc = device_private(self);
sys/dev/i2c/ims.c
102
sc->sc_hdev.sc_idev = self;
sys/dev/i2c/ims.c
107
if (!pmf_device_register(self, NULL, NULL))
sys/dev/i2c/ims.c
108
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/ims.c
116
if (!hidms_setup(self, ms, iha->reportid, desc, size) != 0)
sys/dev/i2c/ims.c
143
hidms_attach(self, ms, &ims_accessops);
sys/dev/i2c/ims.c
147
ims_detach(device_t self, int flags)
sys/dev/i2c/ims.c
152
error = config_detach_children(self, flags);
sys/dev/i2c/ims.c
156
pmf_device_deregister(self);
sys/dev/i2c/ims.c
161
ims_childdet(device_t self, device_t child)
sys/dev/i2c/ims.c
163
struct ims_softc *sc = device_private(self);
sys/dev/i2c/ims.c
92
ims_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/ims.c
94
struct ims_softc *sc = device_private(self);
sys/dev/i2c/lm75.c
192
lmtemp_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/lm75.c
194
struct lmtemp_softc *sc = device_private(self);
sys/dev/i2c/lm75.c
201
sc->sc_dev = self;
sys/dev/i2c/lm75.c
207
if (i == device_cfdata(self)->cf_flags) {
sys/dev/i2c/lm75.c
230
aprint_error_dev(self,
sys/dev/i2c/lm75.c
239
aprint_error_dev(self,
sys/dev/i2c/lm75.c
246
aprint_error_dev(self,
sys/dev/i2c/lm75.c
253
aprint_error_dev(self,
sys/dev/i2c/lm75.c
261
aprint_error_dev(self, "unable to read Tos register\n");
sys/dev/i2c/lm75.c
277
aprint_error_dev(self, "unable to write config register\n");
sys/dev/i2c/lm75.c
290
ia->ia_name? ia->ia_name : device_xname(self),
sys/dev/i2c/lm75.c
293
device_getprop_string(self, "s00", name, sizeof(name));
sys/dev/i2c/lm75.c
303
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/lm75.c
310
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/i2c/lm87.c
182
lmenv_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/lm87.c
184
struct lmenv_softc *sc = device_private(self);
sys/dev/i2c/lm87.c
342
aprint_error_dev(self,
sys/dev/i2c/lm87.c
346
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/lm87.c
350
aprint_error_dev(self,
sys/dev/i2c/lm95221.c
101
struct lm95221ts_softc *sc = device_private(self);
sys/dev/i2c/lm95221.c
108
sc->sc_dev = self;
sys/dev/i2c/lm95221.c
161
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/lm95221.c
205
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/i2c/lm95221.c
213
lm95221ts_detach(device_t self, int flags)
sys/dev/i2c/lm95221.c
215
struct lm95221ts_softc *sc = device_private(self);
sys/dev/i2c/lm95221.c
99
lm95221ts_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/lm_i2c.c
100
sc->sc_lmsc.sc_dev = self;
sys/dev/i2c/lm_i2c.c
108
lm_i2c_detach(device_t self, int flags)
sys/dev/i2c/lm_i2c.c
110
struct lm_i2c_softc *sc = device_private(self);
sys/dev/i2c/lm_i2c.c
91
lm_i2c_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/lm_i2c.c
93
struct lm_i2c_softc *sc = device_private(self);
sys/dev/i2c/m41st84.c
200
strtc_attach(device_t parent, device_t self, void *arg)
sys/dev/i2c/m41st84.c
202
struct strtc_softc *sc = device_private(self);
sys/dev/i2c/m41st84.c
207
sm = strtc_model_by_number(device_cfdata(self)->cf_flags);
sys/dev/i2c/m41st84.c
222
sc->sc_dev = self;
sys/dev/i2c/m41st84.c
224
sc->sc_todr.todr_dev = self;
sys/dev/i2c/m41t00.c
112
m41t00_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/m41t00.c
114
struct m41t00_softc *sc = device_private(self);
sys/dev/i2c/m41t00.c
119
sc->sc_dev = self;
sys/dev/i2c/m41t00.c
125
sc->sc_todr.todr_dev = self;
sys/dev/i2c/max6900.c
107
maxrtc_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/max6900.c
109
struct maxrtc_softc *sc = device_private(self);
sys/dev/i2c/max6900.c
114
sc->sc_dev = self;
sys/dev/i2c/max6900.c
121
sc->sc_todr.todr_dev = self;
sys/dev/i2c/max77620.c
276
max77620_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/max77620.c
278
struct max77620_softc * const sc = device_private(self);
sys/dev/i2c/max77620.c
281
sc->sc_dev = self;
sys/dev/i2c/max77620.c
284
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/mcp23xxxgpio_i2c.c
150
mcpgpio_i2c_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/mcp23xxxgpio_i2c.c
152
struct mcpgpio_i2c_softc *isc = device_private(self);
sys/dev/i2c/mcp23xxxgpio_i2c.c
163
sc->sc_dev = self;
sys/dev/i2c/mcp980x.c
118
mcp980x_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/mcp980x.c
120
struct mcp980x_softc *sc = device_private(self);
sys/dev/i2c/mcp980x.c
123
sc->sc_dev = self;
sys/dev/i2c/mpl115a.c
105
mpl115a_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/mpl115a.c
107
struct mpl115a_softc *sc = device_private(self);
sys/dev/i2c/mpl115a.c
110
sc->sc_dev = self;
sys/dev/i2c/nxp75a.c
103
sc->sc_dev = self;
sys/dev/i2c/nxp75a.c
108
aprint_error_dev(self,
sys/dev/i2c/nxp75a.c
155
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/nxp75a.c
175
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/i2c/nxp75a.c
183
nxp75a_detach(device_t self, int flags)
sys/dev/i2c/nxp75a.c
185
struct nxp75a_softc *sc = device_private(self);
sys/dev/i2c/nxp75a.c
94
nxp75a_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/nxp75a.c
96
struct nxp75a_softc *sc = device_private(self);
sys/dev/i2c/pca9685.c
524
pcapwm_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/pca9685.c
526
struct pcapwm_softc * const sc = device_private(self);
sys/dev/i2c/pca9685.c
529
const int phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/pca9685.c
533
sc->sc_dev = self;
sys/dev/i2c/pca9685.c
595
fdtbus_register_pwm_controller(self, phandle,
sys/dev/i2c/pcagpio.c
147
pcagpio_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/pcagpio.c
149
struct pcagpio_softc *sc = device_private(self);
sys/dev/i2c/pcagpio.c
152
prop_dictionary_t dict = device_properties(self);
sys/dev/i2c/pcagpio.c
157
sc->sc_dev = self;
sys/dev/i2c/pcagpio.c
225
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/pcagpio.c
229
aprint_error_dev(self,
sys/dev/i2c/pcagpio.c
239
pcagpio_detach(device_t self, int flags)
sys/dev/i2c/pcagpio.c
241
struct pcagpio_softc *sc = device_private(self);
sys/dev/i2c/pcai2cmux.c
348
pcaiicmux_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/pcai2cmux.c
350
struct pcaiicmux_softc * const sc = device_private(self);
sys/dev/i2c/pcai2cmux.c
352
devhandle_t devhandle = device_handle(self);
sys/dev/i2c/pcai2cmux.c
355
sc->sc_iicmux.sc_dev = self;
sys/dev/i2c/pcai2cmux.c
388
aprint_error_dev(self,
sys/dev/i2c/pcai2cmux.c
395
aprint_error_dev(self,
sys/dev/i2c/pcf8563.c
83
pcf8563rtc_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/pcf8563.c
85
struct pcf8563rtc_softc *sc = device_private(self);
sys/dev/i2c/pcf8563.c
92
sc->sc_dev = self;
sys/dev/i2c/pcf8563.c
95
sc->sc_todr.todr_dev = self;
sys/dev/i2c/pcf8574.c
129
pcf8574_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/pcf8574.c
131
struct pcf8574_softc *sc = device_private(self);
sys/dev/i2c/pcf8574.c
133
prop_dictionary_t dict = device_properties(self);
sys/dev/i2c/pcf8574.c
143
sc->sc_dev = self;
sys/dev/i2c/pcf8574.c
224
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/pcf8574.c
228
aprint_error_dev(self,
sys/dev/i2c/pcf8574.c
244
pcf8574_detach(device_t self, int flags)
sys/dev/i2c/pcf8574.c
246
struct pcf8574_softc *sc = device_private(self);
sys/dev/i2c/pcf8583.c
118
pcfrtc_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/pcf8583.c
120
struct pcfrtc_softc *sc = device_private(self);
sys/dev/i2c/pcf8583.c
126
sc->sc_dev = self;
sys/dev/i2c/pcf8583.c
134
aprint_error_dev(self, "unable to read CSR\n");
sys/dev/i2c/pcf8583.c
163
sc->sc_todr.todr_dev = self;
sys/dev/i2c/r2025.c
87
r2025rtc_attach(device_t parent, device_t self, void *arg)
sys/dev/i2c/r2025.c
89
struct r2025rtc_softc *sc = device_private(self);
sys/dev/i2c/r2025.c
96
sc->sc_dev = self;
sys/dev/i2c/r2025.c
98
sc->sc_todr.todr_dev = self;
sys/dev/i2c/rkpmic.c
460
rkpmic_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/rkpmic.c
462
struct rkpmic_softc * const sc = device_private(self);
sys/dev/i2c/rkpmic.c
472
sc->sc_dev = self;
sys/dev/i2c/rkpmic.c
475
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/rkpmic.c
479
sc->sc_todr.todr_dev = self;
sys/dev/i2c/rkpmic.c
490
aprint_debug_dev(self, "Chip ID 0x%04x\n", chipid);
sys/dev/i2c/rkpmic.c
499
sc->sc_clkdom.name = device_xname(self);
sys/dev/i2c/rkpmic.c
511
fdtbus_register_clock_controller(self, sc->sc_phandle,
sys/dev/i2c/rkpmic.c
516
fdtbus_register_power_controller(self, sc->sc_phandle,
sys/dev/i2c/rkpmic.c
529
config_found(self, &raa, NULL, CFARGS_NONE);
sys/dev/i2c/rkpmic.c
631
rkreg_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/rkpmic.c
633
struct rkreg_softc * const sc = device_private(self);
sys/dev/i2c/rkpmic.c
638
sc->sc_dev = self;
sys/dev/i2c/rkpmic.c
642
fdtbus_register_regulator_controller(self, phandle,
sys/dev/i2c/rs5c372.c
87
rs5c372rtc_attach(device_t parent, device_t self, void *arg)
sys/dev/i2c/rs5c372.c
89
struct rs5c372rtc_softc *sc = device_private(self);
sys/dev/i2c/rs5c372.c
97
sc->sc_dev = self;
sys/dev/i2c/rs5c372.c
98
sc->sc_todr.todr_dev = self;
sys/dev/i2c/s390.c
118
sc->sc_todr.todr_dev = self;
sys/dev/i2c/s390.c
87
s390rtc_attach(device_t parent, device_t self, void *arg)
sys/dev/i2c/s390.c
89
struct s390rtc_softc *sc = device_private(self);
sys/dev/i2c/s390.c
98
sc->sc_dev = self;
sys/dev/i2c/sc16is7xxi2c.c
279
sc16is7xxi2c_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/sc16is7xxi2c.c
281
struct sc16is7xx_i2c_softc *isc = device_private(self);
sys/dev/i2c/sc16is7xxi2c.c
285
sc->sc_dev = self;
sys/dev/i2c/sc16is7xxi2c.c
296
sc16is7xxi2c_detach(device_t self, int flags)
sys/dev/i2c/sc16is7xxi2c.c
298
struct sc16is7xx_i2c_softc *isc = device_private(self);
sys/dev/i2c/scmdi2c.c
165
scmdi2c_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/scmdi2c.c
171
sc = device_private(self);
sys/dev/i2c/scmdi2c.c
173
sc->sc_dev = self;
sys/dev/i2c/scmdi2c.c
197
scmdi2c_detach(device_t self, int flags)
sys/dev/i2c/scmdi2c.c
201
sc = device_private(self);
sys/dev/i2c/scmdi2c.c
229
scmdi2c_activate(device_t self, enum devact act)
sys/dev/i2c/scmdi2c.c
231
struct scmd_sc *sc = device_private(self);
sys/dev/i2c/sdtemp.c
252
sdtemp_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/sdtemp.c
254
struct sdtemp_softc *sc = device_private(self);
sys/dev/i2c/sdtemp.c
261
sc->sc_dev = self;
sys/dev/i2c/sdtemp.c
283
aprint_normal_dev(self, "TSE2004av compliant. "
sys/dev/i2c/sdtemp.c
287
aprint_error_dev(self,
sys/dev/i2c/sdtemp.c
291
aprint_error_dev(self, "It should no happen. "
sys/dev/i2c/sdtemp.c
298
aprint_debug_dev(self, "capability reg = %04x\n", sc->sc_capability);
sys/dev/i2c/sdtemp.c
313
aprint_normal_dev(self, "%s accuracy",
sys/dev/i2c/sdtemp.c
331
aprint_error_dev(self,
sys/dev/i2c/sdtemp.c
339
aprint_error_dev(self, "error %d writing config register\n",
sys/dev/i2c/sdtemp.c
347
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/sdtemp.c
359
(void)strlcpy(sc->sc_sensor->desc, device_xname(self),
sys/dev/i2c/sdtemp.c
366
aprint_error_dev(self, "unable to attach sensor\n");
sys/dev/i2c/sdtemp.c
373
aprint_error_dev(self, "error %d registering with sysmon\n",
sys/dev/i2c/sdtemp.c
378
if (!pmf_device_register(self, sdtemp_pmf_suspend, sdtemp_pmf_resume))
sys/dev/i2c/sdtemp.c
379
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/sdtemp.c
384
aprint_normal_dev(self, "Hardware limits: ");
sys/dev/i2c/sdtemp.c
412
sdtemp_detach(device_t self, int flags)
sys/dev/i2c/sdtemp.c
414
struct sdtemp_softc *sc = device_private(self);
sys/dev/i2c/sdtemp.c
416
pmf_device_deregister(self);
sys/dev/i2c/sgp40.c
570
sgp40_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/sgp40.c
585
sc = device_private(self);
sys/dev/i2c/sgp40.c
587
sc->sc_dev = self;
sys/dev/i2c/sgp40.c
608
aprint_error_dev(self,
sys/dev/i2c/sgp40.c
614
aprint_error_dev(self, "Can't setup sysctl tree (%d)\n", error);
sys/dev/i2c/sgp40.c
620
aprint_error_dev(self, "Could not acquire iic bus: %d\n",
sys/dev/i2c/sgp40.c
635
aprint_error_dev(self, "Failed to turn off the heater: %d\n",
sys/dev/i2c/sgp40.c
642
aprint_error_dev(self, "Failed to get serial number: %d\n",
sys/dev/i2c/sgp40.c
667
aprint_error_dev(self, "Failed to get featureset: %d\n",
sys/dev/i2c/sgp40.c
682
aprint_error_dev(self, "Failed to perform a chip test: %d\n",
sys/dev/i2c/sgp40.c
694
aprint_error_dev(self, "Unable to setup device\n");
sys/dev/i2c/sgp40.c
714
aprint_error_dev(self,
sys/dev/i2c/sgp40.c
727
aprint_error_dev(self,
sys/dev/i2c/sgp40.c
737
aprint_error_dev(self,"Unable to create measurement thread\n");
sys/dev/i2c/sgp40.c
741
aprint_normal_dev(self, "Sensirion SGP40, Serial number: %jx%s"
sys/dev/i2c/sgp40.c
776
sgp40_detach(device_t self, int flags)
sys/dev/i2c/sgp40.c
780
sc = device_private(self);
sys/dev/i2c/sgsmix.c
106
sgsmix_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/sgsmix.c
108
struct sgsmix_softc *sc = device_private(self);
sys/dev/i2c/sgsmix.c
111
sc->sc_dev = self;
sys/dev/i2c/sht3x.c
1077
sht3x_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/sht3x.c
1088
sc = device_private(self);
sys/dev/i2c/sht3x.c
1090
sc->sc_dev = self;
sys/dev/i2c/sht3x.c
1121
aprint_error_dev(self,
sys/dev/i2c/sht3x.c
1127
aprint_error_dev(self, "Can't setup sysctl tree (%d)\n", error);
sys/dev/i2c/sht3x.c
1131
sc->sc_readpoolname = kmem_asprintf("sht3xrp%d",device_unit(self));
sys/dev/i2c/sht3x.c
1140
aprint_error_dev(self, "Could not acquire iic bus: %d\n",
sys/dev/i2c/sht3x.c
1147
aprint_error_dev(self, "Reset failed: %d\n", error);
sys/dev/i2c/sht3x.c
1151
aprint_error_dev(self, "Failed to clear status register: %d\n",
sys/dev/i2c/sht3x.c
1159
aprint_error_dev(self, "Failed to read status register: %d\n",
sys/dev/i2c/sht3x.c
1169
aprint_error_dev(self, "Failed to read serial number: %d\n",
sys/dev/i2c/sht3x.c
1184
aprint_error_dev(self, "Unable to setup device\n");
sys/dev/i2c/sht3x.c
1201
aprint_error_dev(self,
sys/dev/i2c/sht3x.c
1214
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/i2c/sht3x.c
1227
aprint_normal_dev(self, "Sensirion SHT30/SHT31/SHT35, "
sys/dev/i2c/sht3x.c
1579
sht3x_detach(device_t self, int flags)
sys/dev/i2c/sht3x.c
1584
sc = device_private(self);
sys/dev/i2c/sht3x.c
1647
sht3x_activate(device_t self, enum devact act)
sys/dev/i2c/sht3x.c
1649
struct sht3x_sc *sc = device_private(self);
sys/dev/i2c/sht4x.c
533
sht4x_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/sht4x.c
543
sc = device_private(self);
sys/dev/i2c/sht4x.c
545
sc->sc_dev = self;
sys/dev/i2c/sht4x.c
563
aprint_error_dev(self,
sys/dev/i2c/sht4x.c
569
aprint_error_dev(self, "Can't setup sysctl tree (%d)\n", error);
sys/dev/i2c/sht4x.c
575
aprint_error_dev(self, "Could not acquire iic bus: %d\n",
sys/dev/i2c/sht4x.c
582
aprint_error_dev(self, "Reset failed: %d\n", error);
sys/dev/i2c/sht4x.c
588
aprint_error_dev(self, "Failed to read serial number: %d\n",
sys/dev/i2c/sht4x.c
601
aprint_error_dev(self, "Unable to setup device\n");
sys/dev/i2c/sht4x.c
618
aprint_error_dev(self,
sys/dev/i2c/sht4x.c
631
aprint_error_dev(self,
sys/dev/i2c/sht4x.c
644
aprint_normal_dev(self, "Sensirion SHT40/SHT41/SHT45, "
sys/dev/i2c/sht4x.c
834
sht4x_detach(device_t self, int flags)
sys/dev/i2c/sht4x.c
838
sc = device_private(self);
sys/dev/i2c/si70xx.c
1011
si70xx_detach(device_t self, int flags)
sys/dev/i2c/si70xx.c
1015
sc = device_private(self);
sys/dev/i2c/si70xx.c
601
si70xx_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/si70xx.c
616
sc = device_private(self);
sys/dev/i2c/si70xx.c
618
sc->sc_dev = self;
sys/dev/i2c/si70xx.c
635
aprint_error_dev(self,
sys/dev/i2c/si70xx.c
643
aprint_error_dev(self, "Could not acquire iic bus: %d\n",
sys/dev/i2c/si70xx.c
649
aprint_error_dev(self, "Reset failed: %d\n", error);
sys/dev/i2c/si70xx.c
656
aprint_error_dev(self, "Failed to read first part of ID: %d\n",
sys/dev/i2c/si70xx.c
688
aprint_error_dev(self, "Failed to read second part of ID: %d\n",
sys/dev/i2c/si70xx.c
721
aprint_error_dev(self, "Failed to read firmware version: Error %d\n",
sys/dev/i2c/si70xx.c
734
aprint_error_dev(self, "Failed to read heater register: Error %d\n",
sys/dev/i2c/si70xx.c
744
aprint_error_dev(self, "Can't setup sysctl tree (%d)\n", error);
sys/dev/i2c/si70xx.c
749
aprint_error_dev(self, "Failed to update status: %x\n", error);
sys/dev/i2c/si70xx.c
750
aprint_error_dev(self, "Unable to setup device\n");
sys/dev/i2c/si70xx.c
767
aprint_error_dev(self,
sys/dev/i2c/si70xx.c
781
aprint_error_dev(self,
sys/dev/i2c/si70xx.c
817
aprint_normal_dev(self, "Silicon Labs Model: %s, "
sys/dev/i2c/smscmon.c
190
smscmon_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/smscmon.c
192
struct smscmon_sc *sc = device_private(self);
sys/dev/i2c/smscmon.c
197
sc->sc_dev = self;
sys/dev/i2c/spdmem_i2c.c
237
spdmem_i2c_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/spdmem_i2c.c
239
struct spdmem_i2c_softc *sc = device_private(self);
sys/dev/i2c/spdmem_i2c.c
248
if (!pmf_device_register(self, NULL, NULL))
sys/dev/i2c/spdmem_i2c.c
249
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/spdmem_i2c.c
251
spdmem_common_attach(&sc->sc_base, self);
sys/dev/i2c/spdmem_i2c.c
255
spdmem_i2c_detach(device_t self, int flags)
sys/dev/i2c/spdmem_i2c.c
257
struct spdmem_i2c_softc *sc = device_private(self);
sys/dev/i2c/spdmem_i2c.c
259
pmf_device_deregister(self);
sys/dev/i2c/spdmem_i2c.c
261
return spdmem_common_detach(&sc->sc_base, self);
sys/dev/i2c/ssdfb_i2c.c
100
struct ssdfb_i2c_softc *sc = device_private(self);
sys/dev/i2c/ssdfb_i2c.c
101
struct cfdata *cf = device_cfdata(self);
sys/dev/i2c/ssdfb_i2c.c
116
sc->sc.sc_dev = self;
sys/dev/i2c/ssdfb_i2c.c
127
ssdfb_i2c_detach(device_t self, int flags)
sys/dev/i2c/ssdfb_i2c.c
129
struct ssdfb_i2c_softc *sc = device_private(self);
sys/dev/i2c/ssdfb_i2c.c
98
ssdfb_i2c_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/sy8106a.c
197
sy8106a_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/sy8106a.c
199
struct sy8106a_softc * const sc = device_private(self);
sys/dev/i2c/sy8106a.c
202
sc->sc_dev = self;
sys/dev/i2c/sy8106a.c
205
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/sy8106a.c
213
fdtbus_register_regulator_controller(self, sc->sc_phandle,
sys/dev/i2c/tcagpio.c
258
tcagpio_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/tcagpio.c
260
struct tcagpio_softc * const sc = device_private(self);
sys/dev/i2c/tcagpio.c
263
sc->sc_dev = self;
sys/dev/i2c/tcagpio.c
266
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/tcakp.c
374
tcakp_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/tcakp.c
376
struct tcakp_softc * const sc = device_private(self);
sys/dev/i2c/tcakp.c
380
sc->sc_dev = self;
sys/dev/i2c/tcakp.c
388
if (devhandle_type(device_handle(self)) == DEVHANDLE_TYPE_OF) {
sys/dev/i2c/tcakp.c
389
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/tcakp.c
421
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/dev/i2c/tda19988.c
881
tda19988_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/tda19988.c
883
struct tda19988_softc *sc = device_private(self);
sys/dev/i2c/tda19988.c
885
const int phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/tda19988.c
887
sc->sc_dev = self;
sys/dev/i2c/tda19988.c
907
fdt_ports_register(&sc->sc_ports, self, phandle, EP_DRM_ENCODER);
sys/dev/i2c/tea5767.c
109
tea5767_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/tea5767.c
111
struct tea5767_softc *sc = device_private(self);
sys/dev/i2c/tea5767.c
112
int tea5767_flags = device_cfdata(self)->cf_flags;
sys/dev/i2c/tea5767.c
118
sc->sc_dev = self;
sys/dev/i2c/tea5767.c
146
radio_attach_mi(&tea5767_hw_if, sc, self);
sys/dev/i2c/titemp.c
118
titemp_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/titemp.c
120
struct titemp_softc *sc = device_private(self);
sys/dev/i2c/titemp.c
123
sc->sc_dev = self;
sys/dev/i2c/titemp.c
131
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/tps65217pmic.c
1057
tps65217reg_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/tps65217pmic.c
1059
struct tps65217reg_softc *sc = device_private(self);
sys/dev/i2c/tps65217pmic.c
1063
sc->sc_dev = self;
sys/dev/i2c/tps65217pmic.c
1067
fdtbus_register_regulator_controller(self, sc->sc_phandle,
sys/dev/i2c/tps65217pmic.c
326
tps65217pmic_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/tps65217pmic.c
328
struct tps65217pmic_softc *sc = device_private(self);
sys/dev/i2c/tps65217pmic.c
336
sc->sc_dev = self;
sys/dev/i2c/tps65217pmic.c
341
if (devhandle_type(device_handle(self)) == DEVHANDLE_TYPE_OF) {
sys/dev/i2c/tps65217pmic.c
342
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/tps65217pmic.c
346
dict = device_properties(self);
sys/dev/i2c/tps65217pmic.c
379
sc->sc_smpsw.smpsw_name = device_xname(self);
sys/dev/i2c/tps65217pmic.c
884
tps65217pmic_set_volt(device_t self, const char *name, int mvolt)
sys/dev/i2c/tps65217pmic.c
887
struct tps65217pmic_softc *sc = device_private(self);
sys/dev/i2c/tsllux.c
144
tsllux_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/tsllux.c
146
struct tsllux_softc *sc = device_private(self);
sys/dev/i2c/tsllux.c
153
sc->sc_dev = self;
sys/dev/i2c/tsllux.c
157
if (device_cfdata(self)->cf_flags & TSLLUX_F_CS_PACKAGE)
sys/dev/i2c/tsllux.c
169
aprint_error_dev(self, ": unable to power on device\n");
sys/dev/i2c/tsllux.c
176
aprint_error_dev(self, ": unable to disable interrupts\n");
sys/dev/i2c/tsllux.c
188
aprint_error_dev(self, ": unable to set integration time\n");
sys/dev/i2c/tsllux.c
200
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/twl4030.c
372
twl_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/twl4030.c
374
struct twl_softc * const sc = device_private(self);
sys/dev/i2c/twl4030.c
378
sc->sc_dev = self;
sys/dev/i2c/twl4030.c
387
if (devhandle_type(device_handle(self)) == DEVHANDLE_TYPE_OF) {
sys/dev/i2c/twl4030.c
388
sc->sc_phandle = devhandle_to_of(device_handle(self));
sys/dev/i2c/w83795g.c
164
w83795g_attach(device_t parent, device_t self, void *aux)
sys/dev/i2c/w83795g.c
166
struct w83795g_softc *sc = device_private(self);
sys/dev/i2c/w83795g.c
172
sc->sc_dev = self;
sys/dev/i2c/w83795g.c
180
sc->sc_sme->sme_name = device_xname(self);
sys/dev/i2c/w83795g.c
184
sc->sc_smw.smw_name = device_xname(self);
sys/dev/i2c/w83795g.c
209
aprint_debug_dev(self, "register bank %d:\n", i / 256);
sys/dev/i2c/w83795g.c
212
aprint_debug_dev(self, "%02x ", i % 256);
sys/dev/i2c/w83795g.c
258
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/i2c/w83795g.c
261
aprint_error_dev(self, "couldn't register watchdog\n");
sys/dev/i2c/w83795g.c
263
if (!pmf_device_register(self, NULL, NULL))
sys/dev/i2c/w83795g.c
264
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/i2c/w83795g.c
266
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/dev/i2c/x1226.c
116
xrtc_attach(device_t parent, device_t self, void *arg)
sys/dev/i2c/x1226.c
118
struct xrtc_softc *sc = device_private(self);
sys/dev/i2c/x1226.c
126
sc->sc_dev = self;
sys/dev/i2c/x1226.c
128
sc->sc_todr.todr_dev = self;
sys/dev/i2o/dpti.c
178
dpti_attach(device_t parent, device_t self, void *aux)
sys/dev/i2o/dpti.c
189
sc = device_private(self);
sys/dev/i2o/dpti.c
190
sc->sc_dev = self;
sys/dev/i2o/iop.c
469
iop_config_interrupts(device_t self)
sys/dev/i2o/iop.c
477
sc = device_private(self);
sys/dev/i2o/iop.c
555
sc->sc_eventii.ii_dv = self;
sys/dev/i2o/iop.c
586
config_found(self, &ia, iop_print,
sys/dev/i2o/iopsp.c
111
iopsp_attach(device_t parent, device_t self, void *aux)
sys/dev/i2o/iopsp.c
129
sc = device_private(self);
sys/dev/i2o/iopsp.c
133
sc->sc_ii.ii_dv = self;
sys/dev/i2o/iopsp.c
198
if (iopsp_reconfig(self) != 0) {
sys/dev/i2o/iopsp.c
202
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/dev/i2o/ld_iop.c
116
ld_iop_attach(device_t parent, device_t self, void *aux)
sys/dev/i2o/ld_iop.c
119
struct ld_iop_softc *sc = device_private(self);
sys/dev/i2o/ld_iop.c
135
ld->sc_dv = self;
sys/dev/i2o/ld_iop.c
139
sc->sc_ii.ii_dv = self;
sys/dev/i2o/ld_iop.c
147
sc->sc_eventii.ii_dv = self;
sys/dev/i2o/ld_iop.c
159
aprint_error_dev(self, "unable to register for events");
sys/dev/i2o/ld_iop.c
269
aprint_error_dev(self, "device not yet supported\n");
sys/dev/i2o/ld_iop.c
314
ld_iop_detach(device_t self, int flags)
sys/dev/i2o/ld_iop.c
320
sc = device_private(self);
sys/dev/i2o/ld_iop.c
321
iop = device_private(device_parent(self));
sys/dev/ic/aic6360.c
302
aic_detach(device_t self, int flags)
sys/dev/ic/aic6360.c
306
error = config_detach_children(self, flags);
sys/dev/ic/aic6915.c
1357
sf_mii_read(device_t self, int phy, int reg, uint16_t *data)
sys/dev/ic/aic6915.c
1359
struct sf_softc *sc = device_private(self);
sys/dev/ic/aic6915.c
1386
sf_mii_write(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/aic6915.c
1388
struct sf_softc *sc = device_private(self);
sys/dev/ic/aic6915.c
334
sf_shutdown(device_t self, int howto)
sys/dev/ic/aic6915.c
338
sc = device_private(self);
sys/dev/ic/an.c
437
an_activate(device_t self, enum devact act)
sys/dev/ic/an.c
439
struct an_softc *sc = device_private(self);
sys/dev/ic/apple_smc_fan.c
139
apple_smc_fan_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/apple_smc_fan.c
141
struct apple_smc_fan_softc *sc = device_private(self);
sys/dev/ic/apple_smc_fan.c
150
sc->sc_dev = self;
sys/dev/ic/apple_smc_fan.c
169
aprint_error_dev(self, "no fans\n");
sys/dev/ic/apple_smc_fan.c
178
aprint_error_dev(self, "too many fans: %"PRIu8"\n",
sys/dev/ic/apple_smc_fan.c
214
apple_smc_fan_detach(device_t self, int flags)
sys/dev/ic/apple_smc_fan.c
216
struct apple_smc_fan_softc *sc = device_private(self);
sys/dev/ic/apple_smc_temp.c
107
apple_smc_temp_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/apple_smc_temp.c
109
struct apple_smc_temp_softc *const sc = device_private(self);
sys/dev/ic/apple_smc_temp.c
117
sc->sc_dev = self;
sys/dev/ic/apple_smc_temp.c
122
sc->sc_sme->sme_name = device_xname(self);
sys/dev/ic/apple_smc_temp.c
129
aprint_error_dev(self, "failed to find sensors: %d\n", error);
sys/dev/ic/apple_smc_temp.c
136
aprint_error_dev(self, "failed to register with sysmon_envsys:"
sys/dev/ic/apple_smc_temp.c
149
apple_smc_temp_detach(device_t self, int flags)
sys/dev/ic/apple_smc_temp.c
151
struct apple_smc_temp_softc *const sc = device_private(self);
sys/dev/ic/arcofi.c
1126
device_t self;
sys/dev/ic/arcofi.c
1130
self = sc->sc_dev;
sys/dev/ic/arcofi.c
1185
strlcpy(sc->sc_audio_device.config, device_xname(self),
sys/dev/ic/arcofi.c
1188
audio_attach_mi(&arcofi_hw_if, sc, self);
sys/dev/ic/athn.c
114
Static void athn_pmf_wlan_off(device_t self);
sys/dev/ic/athn.c
3003
athn_pmf_wlan_off(device_t self)
sys/dev/ic/athn.c
3005
struct athn_softc *sc = device_private(self);
sys/dev/ic/attimer.c
62
attimer_detach(device_t self, int flags)
sys/dev/ic/attimer.c
64
struct attimer_softc *sc = device_private(self);
sys/dev/ic/attimer.c
69
pmf_device_deregister(self);
sys/dev/ic/atw.c
2743
atw_shutdown(device_t self, int flags)
sys/dev/ic/atw.c
2745
struct atw_softc *sc = device_private(self);
sys/dev/ic/atw.c
310
atw_activate(device_t self, enum devact act)
sys/dev/ic/atw.c
312
struct atw_softc *sc = device_private(self);
sys/dev/ic/atw.c
324
atw_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/ic/atw.c
326
struct atw_softc *sc = device_private(self);
sys/dev/ic/awi.c
319
awi_activate(device_t self, enum devact act)
sys/dev/ic/awi.c
321
struct awi_softc *sc = device_private(self);
sys/dev/ic/ax88190.c
168
ax88190_mii_bitbang_read(device_t self)
sys/dev/ic/ax88190.c
170
struct ne2000_softc *sc = device_private(self);
sys/dev/ic/ax88190.c
176
ax88190_mii_bitbang_write(device_t self, uint32_t val)
sys/dev/ic/ax88190.c
178
struct ne2000_softc *sc = device_private(self);
sys/dev/ic/ax88190.c
184
ax88190_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/ax88190.c
187
return mii_bitbang_readreg(self, &ax88190_mii_bitbang_ops, phy, reg,
sys/dev/ic/ax88190.c
192
ax88190_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/ax88190.c
195
return mii_bitbang_writereg(self, &ax88190_mii_bitbang_ops, phy, reg,
sys/dev/ic/cac.c
220
cac_rescan(device_t self, const char *attr, const int *locs)
sys/dev/ic/cac.c
227
sc = device_private(self);
sys/dev/ic/cac.c
235
if (config_found(self, &caca, cac_print,
sys/dev/ic/com.c
1016
mn = device_unit(self);
sys/dev/ic/com.c
3029
com_cleanup(device_t self, int how)
sys/dev/ic/com.c
3031
struct com_softc *sc = device_private(self);
sys/dev/ic/com.c
3040
com_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/ic/com.c
3042
struct com_softc *sc = device_private(self);
sys/dev/ic/com.c
3051
com_resume(device_t self, const pmf_qual_t *qual)
sys/dev/ic/com.c
3053
struct com_softc *sc = device_private(self);
sys/dev/ic/com.c
990
com_detach(device_t self, int flags)
sys/dev/ic/com.c
992
struct com_softc *sc = device_private(self);
sys/dev/ic/com_cpcbus.c
68
com_cpc_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/com_cpcbus.c
71
struct com_cpc_softc *sc = device_private(self);
sys/dev/ic/com_cpcbus.c
76
sc->sc_com.sc_dev = self;
sys/dev/ic/com_cpcbus.c
80
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/ic/cpc700.c
128
cpc_attach(device_t self, pci_chipset_tag_t pc, bus_space_tag_t mem,
sys/dev/ic/cpc700.c
162
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/ic/cpc700.c
172
config_found(self, &aa.cba, cpc_print,
sys/dev/ic/cpc700.c
209
config_found(self, &aa.pba, pcibusprint,
sys/dev/ic/cpc700.c
80
cpc_attach(device_t self, pci_chipset_tag_t pc, bus_space_tag_t mem,
sys/dev/ic/cs4231.c
111
cs4231_common_attach(struct cs4231_softc *sc, device_t self,
sys/dev/ic/cs4231.c
118
sc->sc_ad1848.sc_dev = self;
sys/dev/ic/cs89x0.c
2137
cs_activate(device_t self, enum devact act)
sys/dev/ic/cs89x0.c
2139
struct cs_softc *sc = device_private(self);
sys/dev/ic/cs89x0.c
542
cs_shutdown(device_t self, int howto)
sys/dev/ic/cs89x0.c
546
sc = device_private(self);
sys/dev/ic/depca.c
239
le_depca_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/depca.c
242
struct le_depca_softc *lesc = device_private(self);
sys/dev/ic/depca.c
247
sc->sc_dev = self;
sys/dev/ic/depca.c
253
aprint_error_dev(self, "can't read PROM\n");
sys/dev/ic/depca.c
270
aprint_error_dev(self,
sys/dev/ic/depca.c
297
aprint_error("%s", device_xname(self));
sys/dev/ic/dl10019.c
204
dl10019_mii_bitbang_read(device_t self)
sys/dev/ic/dl10019.c
206
struct dp8390_softc *sc = device_private(self);
sys/dev/ic/dl10019.c
214
dl10019_mii_bitbang_write(device_t self, u_int32_t val)
sys/dev/ic/dl10019.c
216
struct dp8390_softc *sc = device_private(self);
sys/dev/ic/dl10019.c
226
dl10019_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/dl10019.c
228
struct ne2000_softc *nsc = device_private(self);
sys/dev/ic/dl10019.c
234
return mii_bitbang_readreg(self, ops, phy, reg, val);
sys/dev/ic/dl10019.c
238
dl10019_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/dl10019.c
240
struct ne2000_softc *nsc = device_private(self);
sys/dev/ic/dl10019.c
246
return mii_bitbang_writereg(self, ops, phy, reg, val);
sys/dev/ic/dm9000.c
514
mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/dm9000.c
516
struct dme_softc *sc = device_private(self);
sys/dev/ic/dm9000.c
539
mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/dm9000.c
541
struct dme_softc *sc = device_private(self);
sys/dev/ic/dp8390.c
1205
dp8390_activate(device_t self, enum devact act)
sys/dev/ic/dp8390.c
1207
struct dp8390_softc *sc = device_private(self);
sys/dev/ic/dp83932.c
268
sonic_shutdown(device_t self, int howto)
sys/dev/ic/dp83932.c
270
struct sonic_softc *sc = device_private(self);
sys/dev/ic/dwc_gmac.c
413
dwc_gmac_miibus_read_reg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/dwc_gmac.c
415
struct dwc_gmac_softc * const sc = device_private(self);
sys/dev/ic/dwc_gmac.c
446
dwc_gmac_miibus_write_reg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/dwc_gmac.c
448
struct dwc_gmac_softc * const sc = device_private(self);
sys/dev/ic/dwc_mmc.c
161
dwc_mmc_attach_i(device_t self)
sys/dev/ic/dwc_mmc.c
163
struct dwc_mmc_softc *sc = device_private(self);
sys/dev/ic/dwc_mmc.c
202
sc->sc_sdmmc_dev = config_found(self, &saa, NULL, CFARGS_NONE);
sys/dev/ic/dwiic.c
205
dwiic_detach(device_t self, int flags)
sys/dev/ic/dwiic.c
207
struct dwiic_softc *sc = device_private(self);
sys/dev/ic/dwiic.c
219
dwiic_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/ic/dwiic.c
221
struct dwiic_softc *sc = device_private(self);
sys/dev/ic/dwiic.c
238
dwiic_resume(device_t self, const pmf_qual_t *qual)
sys/dev/ic/dwiic.c
240
struct dwiic_softc *sc = device_private(self);
sys/dev/ic/elink3.c
1772
epshutdown(device_t self, int howto)
sys/dev/ic/elink3.c
1774
struct ep_softc *sc = device_private(self);
sys/dev/ic/elink3.c
1966
ep_activate(device_t self, enum devact act)
sys/dev/ic/elink3.c
1968
struct ep_softc *sc = device_private(self);
sys/dev/ic/elink3.c
1985
ep_detach(device_t self, int flags)
sys/dev/ic/elink3.c
1987
struct ep_softc *sc = device_private(self);
sys/dev/ic/elink3.c
2017
ep_mii_bitbang_read(device_t self)
sys/dev/ic/elink3.c
2019
struct ep_softc *sc = device_private(self);
sys/dev/ic/elink3.c
2027
ep_mii_bitbang_write(device_t self, u_int32_t val)
sys/dev/ic/elink3.c
2029
struct ep_softc *sc = device_private(self);
sys/dev/ic/elink3.c
2037
ep_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/elink3.c
2039
struct ep_softc *sc = device_private(self);
sys/dev/ic/elink3.c
2044
rv = mii_bitbang_readreg(self, &ep_mii_bitbang_ops, phy, reg, val);
sys/dev/ic/elink3.c
2052
ep_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/elink3.c
2054
struct ep_softc *sc = device_private(self);
sys/dev/ic/elink3.c
2059
rv = mii_bitbang_writereg(self, &ep_mii_bitbang_ops, phy, reg, val);
sys/dev/ic/elinkxl.c
1657
ex_activate(device_t self, enum devact act)
sys/dev/ic/elinkxl.c
1659
struct ex_softc *sc = device_private(self);
sys/dev/ic/elinkxl.c
1733
ex_shutdown(device_t self, int flags)
sys/dev/ic/elinkxl.c
1735
struct ex_softc *sc = device_private(self);
sys/dev/ic/elinkxl.c
1875
ex_mii_bitbang_read(device_t self)
sys/dev/ic/elinkxl.c
1877
struct ex_softc *sc = device_private(self);
sys/dev/ic/elinkxl.c
1884
ex_mii_bitbang_write(device_t self, uint32_t val)
sys/dev/ic/elinkxl.c
1886
struct ex_softc *sc = device_private(self);
sys/dev/ic/gcscpcib.c
107
tc->tc_name = device_xname(self);
sys/dev/ic/gcscpcib.c
118
aprint_error_dev(self, "can't map memory space for WDT\n");
sys/dev/ic/gcscpcib.c
122
aprint_error_dev(self, "can't alloc an MFGPT for WDT\n");
sys/dev/ic/gcscpcib.c
140
sc->sc_smw.smw_name = device_xname(self);
sys/dev/ic/gcscpcib.c
145
aprint_normal_dev(self, "Watchdog Timer via MFGPT%d",
sys/dev/ic/gcscpcib.c
159
aprint_normal_dev(self, "GPIO");
sys/dev/ic/gcscpcib.c
193
config_found(self, &gba, gpiobus_print,
sys/dev/ic/gcscpcib.c
200
aprint_error_dev(self,
sys/dev/ic/gcscpcib.c
86
gcscpcib_attach(device_t self, struct gcscpcib_softc *sc,
sys/dev/ic/gem.c
2366
gem_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/gem.c
2368
struct gem_softc *sc = device_private(self);
sys/dev/ic/gem.c
2398
gem_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/gem.c
2400
struct gem_softc *sc = device_private(self);
sys/dev/ic/gem.c
2672
gem_resume(device_t self, const pmf_qual_t *qual)
sys/dev/ic/gem.c
2674
struct gem_softc *sc = device_private(self);
sys/dev/ic/gem.c
2682
gem_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/ic/gem.c
2684
struct gem_softc *sc = device_private(self);
sys/dev/ic/gem.c
2694
gem_shutdown(device_t self, int howto)
sys/dev/ic/gem.c
2696
struct gem_softc *sc = device_private(self);
sys/dev/ic/hme.c
1210
hme_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/hme.c
1212
struct hme_softc *sc = device_private(self);
sys/dev/ic/hme.c
1284
hme_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/hme.c
1286
struct hme_softc *sc = device_private(self);
sys/dev/ic/hme.c
1531
hme_shutdown(device_t self, int howto)
sys/dev/ic/hme.c
1536
sc = device_private(self);
sys/dev/ic/i82365.c
235
device_t self;
sys/dev/ic/i82365.c
239
self = sc->dev;
sys/dev/ic/i82365.c
248
h->ph_parent = self;
sys/dev/ic/i82365.c
322
aprint_normal_dev(self, "controller %d (%s) has ",
sys/dev/ic/i82557.c
2114
fxp_mdi_read(device_t self, int phy, int reg, uint16_t *value)
sys/dev/ic/i82557.c
2116
struct fxp_softc *sc = device_private(self);
sys/dev/ic/i82557.c
2129
"%s: fxp_mdi_read: timed out\n", device_xname(self));
sys/dev/ic/i82557.c
2145
fxp_mdi_write(device_t self, int phy, int reg, uint16_t value)
sys/dev/ic/i82557.c
2147
struct fxp_softc *sc = device_private(self);
sys/dev/ic/i82557.c
2159
"%s: fxp_mdi_write: timed out\n", device_xname(self));
sys/dev/ic/i82557.c
2474
fxp_activate(device_t self, enum devact act)
sys/dev/ic/i82557.c
2476
struct fxp_softc *sc = device_private(self);
sys/dev/ic/icpsp.c
100
sc = device_private(self);
sys/dev/ic/icpsp.c
103
sc->sc_dv = self;
sys/dev/ic/icpsp.c
126
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/dev/ic/icpsp.c
329
icpsp_adjqparam(device_t self, int openings)
sys/dev/ic/icpsp.c
331
struct icpsp_softc *sc = device_private(self);
sys/dev/ic/icpsp.c
93
icpsp_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/igpio.c
225
device_t self = sc->sc_dev;
sys/dev/ic/igpio.c
251
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/ic/igpio.c
258
aprint_error_dev(self, "couldn't find revid\n");
sys/dev/ic/iic_cpcbus.c
64
iic_cpcbus_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/iic_cpcbus.c
67
struct iic_cpcbus_softc *sc = device_private(self);
sys/dev/ic/iic_cpcbus.c
72
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/ic/isp_netbsd.c
122
device_xname(self))) {
sys/dev/ic/isp_netbsd.c
158
config_interrupts(self, isp_config_interrupts);
sys/dev/ic/isp_netbsd.c
162
isp_config_interrupts(device_t self)
sys/dev/ic/isp_netbsd.c
165
struct ispsoftc *isp = device_private(self);
sys/dev/ic/isp_netbsd.c
180
config_found(self, &isp->isp_osinfo.chan[i], scsiprint,
sys/dev/ic/isp_netbsd.c
93
device_t self = isp->isp_osinfo.dev;
sys/dev/ic/isp_netbsd.c
98
isp->isp_osinfo.adapter.adapt_dev = self;
sys/dev/ic/lance.c
549
lance_shutdown(device_t self, int howto)
sys/dev/ic/lance.c
551
struct lance_softc *sc = device_private(self);
sys/dev/ic/ld_aac.c
79
ld_aac_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/ld_aac.c
82
struct ld_aac_softc *sc = device_private(self);
sys/dev/ic/ld_aac.c
87
ld->sc_dv = self;
sys/dev/ic/ld_cac.c
85
ld_cac_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/ld_cac.c
89
struct ld_cac_softc *sc = device_private(self);
sys/dev/ic/ld_cac.c
95
ld->sc_dv = self;
sys/dev/ic/ld_icp.c
105
ld->sc_dv = self;
sys/dev/ic/ld_icp.c
94
ld_icp_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/ld_icp.c
97
struct ld_icp_softc *sc = device_private(self);
sys/dev/ic/ld_mlx.c
85
ld_mlx_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/ld_mlx.c
88
struct ld_mlx_softc *sc = device_private(self);
sys/dev/ic/ld_mlx.c
94
ld->sc_dv = self;
sys/dev/ic/ld_nvme.c
116
ld_nvme_detach(device_t self, int flags)
sys/dev/ic/ld_nvme.c
118
struct ld_nvme_softc *sc = device_private(self);
sys/dev/ic/ld_nvme.c
81
ld_nvme_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/ld_nvme.c
83
struct ld_nvme_softc *sc = device_private(self);
sys/dev/ic/ld_nvme.c
90
ld->sc_dv = self;
sys/dev/ic/lpt.c
138
lpt_detach_subr(device_t self, int flags)
sys/dev/ic/lpt.c
140
struct lpt_softc *sc = device_private(self);
sys/dev/ic/mb86950.c
941
mb86950_activate(device_t self, enum devact act)
sys/dev/ic/mb86950.c
943
struct mb86950_softc *sc = device_private(self);
sys/dev/ic/mb86960.c
1775
mb86960_activate(device_t self, enum devact act)
sys/dev/ic/mb86960.c
1777
struct mb86960_softc *sc = device_private(self);
sys/dev/ic/mb89352.c
313
spc_childdet(device_t self, device_t child)
sys/dev/ic/mb89352.c
315
struct spc_softc *sc = device_private(self);
sys/dev/ic/mb89352.c
322
spc_detach(device_t self, int flags)
sys/dev/ic/mb89352.c
326
error = config_detach_children(self, flags);
sys/dev/ic/mfi.c
906
mfi_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/ic/mfi.c
908
struct mfi_softc *sc = device_private(self);
sys/dev/ic/mfi.c
913
sc->sc_child = config_found(self, &sc->sc_chan, scsiprint, CFARGS_NONE);
sys/dev/ic/mfi.c
919
mfi_childdetached(device_t self, device_t child)
sys/dev/ic/mfi.c
921
struct mfi_softc *sc = device_private(self);
sys/dev/ic/mfi.c
923
KASSERT(self == sc->sc_dev);
sys/dev/ic/mtd803.c
407
mtd_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/mtd803.c
409
struct mtd_softc *sc = device_private(self);
sys/dev/ic/mtd803.c
418
mtd_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/mtd803.c
420
struct mtd_softc *sc = device_private(self);
sys/dev/ic/ne2000.c
883
ne2000_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/ic/ne2000.c
885
struct ne2000_softc *sc = device_private(self);
sys/dev/ic/ne2000.c
899
ne2000_resume(device_t self, const pmf_qual_t *qual)
sys/dev/ic/ne2000.c
901
struct ne2000_softc *sc = device_private(self);
sys/dev/ic/nvme.c
491
nvme_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/ic/nvme.c
493
struct nvme_softc *sc = device_private(self);
sys/dev/ic/nvme.c
513
aprint_error_dev(self, "couldn't identify namespace #%d\n", i);
sys/dev/ic/nvme.c
530
aprint_error_dev(self,
sys/dev/ic/nvme.c
683
nvme_childdet(device_t self, device_t child)
sys/dev/ic/nvme.c
685
struct nvme_softc *sc = device_private(self);
sys/dev/ic/pckbc.c
398
pckbc_xt_translation(void *self, pckbc_slot_t slot, int on)
sys/dev/ic/pckbc.c
400
struct pckbc_internal *t = self;
sys/dev/ic/pckbc.c
443
pckbc_slot_enable(void *self, pckbc_slot_t slot, int on)
sys/dev/ic/pckbc.c
445
struct pckbc_internal *t = (struct pckbc_internal *)self;
sys/dev/ic/pckbc.c
456
pckbc_set_poll(void *self, pckbc_slot_t slot, int on)
sys/dev/ic/pckbc.c
458
struct pckbc_internal *t = (struct pckbc_internal *)self;
sys/dev/ic/rs5c313.c
103
device_t self = sc->sc_dev;
sys/dev/ic/rs5c313.c
118
aprint_error_dev(self, "time not valid\n");
sys/dev/ic/rs5c313.c
63
device_t self = sc->sc_dev;
sys/dev/ic/rs5c313.c
87
sc->sc_todr.todr_dev = self;
sys/dev/ic/rs5c313.c
92
aprint_error_dev(self, "init failed\n");
sys/dev/ic/rt2860.c
325
rt2860_attachhook(device_t self)
sys/dev/ic/rt2860.c
327
struct rt2860_softc *sc = device_private(self);
sys/dev/ic/rt2860.c
478
rt2860_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/ic/rt2860.c
480
struct rt2860_softc *sc = device_private(self);
sys/dev/ic/rt2860.c
490
rt2860_wakeup(device_t self, const pmf_qual_t *qual)
sys/dev/ic/rt2860.c
492
struct rt2860_softc *sc = device_private(self);
sys/dev/ic/rt2860.c
77
static bool rt2860_suspend(device_t self, const pmf_qual_t *qual);
sys/dev/ic/rt2860.c
78
static bool rt2860_wakeup(device_t self, const pmf_qual_t *qual);
sys/dev/ic/rtl8169.c
1032
re_activate(device_t self, enum devact act)
sys/dev/ic/rtl8169.c
1034
struct rtk_softc *sc = device_private(self);
sys/dev/ic/rtl81x9.c
413
rtk_phy_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/rtl81x9.c
415
struct rtk_softc *sc = device_private(self);
sys/dev/ic/rtl81x9.c
446
printf("%s: bad phy register\n", device_xname(self));
sys/dev/ic/rtl81x9.c
465
rtk_phy_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/rtl81x9.c
467
struct rtk_softc *sc = device_private(self);
sys/dev/ic/rtl81x9.c
493
printf("%s: bad phy register\n", device_xname(self));
sys/dev/ic/rtl81x9.c
619
device_t self = sc->sc_dev;
sys/dev/ic/rtl81x9.c
655
aprint_error_dev(self,
sys/dev/ic/rtl81x9.c
663
aprint_error_dev(self,
sys/dev/ic/rtl81x9.c
671
aprint_error_dev(self,
sys/dev/ic/rtl81x9.c
679
aprint_error_dev(self,
sys/dev/ic/rtl81x9.c
689
aprint_error_dev(self,
sys/dev/ic/rtl81x9.c
710
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(eaddr));
sys/dev/ic/rtl81x9.c
714
strcpy(ifp->if_xname, device_xname(self));
sys/dev/ic/rtl81x9.c
733
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY, 0);
sys/dev/ic/rtl81x9.c
749
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/dev/ic/rtl81x9.c
796
rtk_activate(device_t self, enum devact act)
sys/dev/ic/rtl81x9.c
798
struct rtk_softc *sc = device_private(self);
sys/dev/ic/rtw.c
2554
rtw_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/ic/rtw.c
2557
struct rtw_softc *sc = device_private(self);
sys/dev/ic/rtw.c
2561
if (!device_has_power(self))
sys/dev/ic/rtw.c
2566
aprint_error_dev(self, "failed to turn off PHY (%d)\n", rc);
sys/dev/ic/rtw.c
2576
rtw_resume(device_t self, const pmf_qual_t *qual)
sys/dev/ic/rtw.c
2578
struct rtw_softc *sc = device_private(self);
sys/dev/ic/sc16is7xx_tty.c
119
sc16is7xx_tty_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/sc16is7xx_tty.c
122
struct sc16is7xx_tty_softc *sc = device_private(self);
sys/dev/ic/sc16is7xx_tty.c
125
sc->sc_com.sc_dev = self;
sys/dev/ic/sc16is7xx_tty.c
128
device_setprop_bool(self, "is-console", false);
sys/dev/ic/sc16is7xx_tty.c
129
device_setprop_bool(self, "force-console", false);
sys/dev/ic/sc16is7xx_tty.c
164
sc16is7xx_tty_detach(device_t self, int flags)
sys/dev/ic/sc16is7xx_tty.c
168
error = com_detach(self, flags);
sys/dev/ic/sl811hs.c
1306
slhci_activate(device_t self, enum devact act)
sys/dev/ic/sl811hs.c
1308
struct slhci_softc *sc = device_private(self);
sys/dev/ic/smc83c170.c
1346
epic_mii_read(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/smc83c170.c
1348
struct epic_softc *sc = device_private(self);
sys/dev/ic/smc83c170.c
1369
epic_mii_write(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/smc83c170.c
1371
struct epic_softc *sc = device_private(self);
sys/dev/ic/smc83c170.c
343
epic_shutdown(device_t self, int howto)
sys/dev/ic/smc83c170.c
345
struct epic_softc *sc = device_private(self);
sys/dev/ic/smc91cxx.c
1361
smc91cxx_activate(device_t self, enum devact act)
sys/dev/ic/smc91cxx.c
1363
struct smc91cxx_softc *sc = device_private(self);
sys/dev/ic/smc91cxx.c
1375
smc91cxx_detach(device_t self, int flags)
sys/dev/ic/smc91cxx.c
1377
struct smc91cxx_softc *sc = device_private(self);
sys/dev/ic/smc91cxx.c
1401
smc91cxx_mii_bitbang_read(device_t self)
sys/dev/ic/smc91cxx.c
1403
struct smc91cxx_softc *sc = device_private(self);
sys/dev/ic/smc91cxx.c
1410
smc91cxx_mii_bitbang_write(device_t self, uint32_t val)
sys/dev/ic/smc91cxx.c
1412
struct smc91cxx_softc *sc = device_private(self);
sys/dev/ic/smc91cxx.c
1419
smc91cxx_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/smc91cxx.c
1421
struct smc91cxx_softc *sc = device_private(self);
sys/dev/ic/smc91cxx.c
1426
rv = mii_bitbang_readreg(self, &smc91cxx_mii_bitbang_ops, phy, reg,
sys/dev/ic/smc91cxx.c
1435
smc91cxx_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/smc91cxx.c
1437
struct smc91cxx_softc *sc = device_private(self);
sys/dev/ic/smc91cxx.c
1442
rv = mii_bitbang_writereg(self, &smc91cxx_mii_bitbang_ops, phy, reg,
sys/dev/ic/spdmem.c
1003
aprint_verbose_dev(self, LATENCY, __DDR4_ROUND(tAA_clocks),
sys/dev/ic/spdmem.c
287
spdmem_common_attach(struct spdmem_softc *sc, device_t self)
sys/dev/ic/spdmem.c
350
device_xname(self), NULL, NULL, 0, NULL, 0,
sys/dev/ic/spdmem.c
436
aprint_normal_dev(self, "%s, SPD Revision %s", type, rambus_rev);
sys/dev/ic/spdmem.c
449
decode_edofpm(node, self, s);
sys/dev/ic/spdmem.c
452
decode_rom(node, self, s);
sys/dev/ic/spdmem.c
455
decode_sdram(node, self, s, spd_len);
sys/dev/ic/spdmem.c
458
decode_ddr(node, self, s);
sys/dev/ic/spdmem.c
461
decode_ddr2(node, self, s);
sys/dev/ic/spdmem.c
464
decode_ddr3(node, self, s);
sys/dev/ic/spdmem.c
468
decode_fbdimm(node, self, s);
sys/dev/ic/spdmem.c
471
decode_ddr4(node, self, s);
sys/dev/ic/spdmem.c
478
aprint_debug_dev(self, "0x%02x:", i);
sys/dev/ic/spdmem.c
487
spdmem_common_detach(struct spdmem_softc *sc, device_t self)
sys/dev/ic/spdmem.c
495
decode_size_speed(device_t self, const struct sysctlnode *node,
sys/dev/ic/spdmem.c
500
struct spdmem_softc *sc = device_private(self);
sys/dev/ic/spdmem.c
549
decode_voltage_refresh(device_t self, struct spdmem *s)
sys/dev/ic/spdmem.c
563
aprint_verbose_dev(self, "voltage %s, refresh time %s%s\n",
sys/dev/ic/spdmem.c
569
decode_edofpm(const struct sysctlnode *node, device_t self, struct spdmem *s)
sys/dev/ic/spdmem.c
574
aprint_normal_dev(self, "%s", spdmem_basic_types[s->sm_type]);
sys/dev/ic/spdmem.c
577
aprint_verbose_dev(self,
sys/dev/ic/spdmem.c
584
decode_rom(const struct sysctlnode *node, device_t self, struct spdmem *s)
sys/dev/ic/spdmem.c
589
aprint_normal_dev(self, "%s", spdmem_basic_types[s->sm_type]);
sys/dev/ic/spdmem.c
592
aprint_verbose_dev(self, "%d rows, %d cols, %d banks\n",
sys/dev/ic/spdmem.c
597
decode_sdram(const struct sysctlnode *node, device_t self, struct spdmem *s,
sys/dev/ic/spdmem.c
604
aprint_normal_dev(self, "%s", spdmem_basic_types[s->sm_type]);
sys/dev/ic/spdmem.c
642
decode_size_speed(self, node, dimm_size, cycle_time, 1, bits, FALSE,
sys/dev/ic/spdmem.c
645
aprint_verbose_dev(self,
sys/dev/ic/spdmem.c
656
aprint_verbose_dev(self, LATENCY, tAA, s->sm_sdr.sdr_tRCD,
sys/dev/ic/spdmem.c
659
decode_voltage_refresh(self, s);
sys/dev/ic/spdmem.c
663
decode_ddr(const struct sysctlnode *node, device_t self, struct spdmem *s)
sys/dev/ic/spdmem.c
669
aprint_normal_dev(self, "%s", spdmem_basic_types[s->sm_type]);
sys/dev/ic/spdmem.c
685
decode_size_speed(self, node, dimm_size, cycle_time, 2, bits, TRUE,
sys/dev/ic/spdmem.c
688
aprint_verbose_dev(self,
sys/dev/ic/spdmem.c
703
aprint_verbose_dev(self, LATENCY, tAA, __DDR_ROUND(250, ddr_tRCD),
sys/dev/ic/spdmem.c
708
decode_voltage_refresh(self, s);
sys/dev/ic/spdmem.c
712
decode_ddr2(const struct sysctlnode *node, device_t self, struct spdmem *s)
sys/dev/ic/spdmem.c
718
aprint_normal_dev(self, "%s", spdmem_basic_types[s->sm_type]);
sys/dev/ic/spdmem.c
735
decode_size_speed(self, node, dimm_size, cycle_time, 2, bits, TRUE,
sys/dev/ic/spdmem.c
738
aprint_verbose_dev(self,
sys/dev/ic/spdmem.c
752
aprint_verbose_dev(self, LATENCY, tAA, __DDR2_ROUND(250, ddr2_tRCD),
sys/dev/ic/spdmem.c
757
decode_voltage_refresh(self, s);
sys/dev/ic/spdmem.c
794
decode_ddr3(const struct sysctlnode *node, device_t self, struct spdmem *s)
sys/dev/ic/spdmem.c
800
aprint_normal_dev(self, "%s", spdmem_basic_types[s->sm_type]);
sys/dev/ic/spdmem.c
825
decode_size_speed(self, node, dimm_size, cycle_time, 2, bits, FALSE,
sys/dev/ic/spdmem.c
828
aprint_verbose_dev(self,
sys/dev/ic/spdmem.c
839
aprint_verbose_dev(self, LATENCY,
sys/dev/ic/spdmem.c
852
aprint_verbose("%s:", device_xname(self));
sys/dev/ic/spdmem.c
864
decode_fbdimm(const struct sysctlnode *node, device_t self, struct spdmem *s)
sys/dev/ic/spdmem.c
870
aprint_normal_dev(self, "%s", spdmem_basic_types[s->sm_type]);
sys/dev/ic/spdmem.c
883
decode_size_speed(self, node, dimm_size, cycle_time, 2, bits, TRUE,
sys/dev/ic/spdmem.c
886
aprint_verbose_dev(self,
sys/dev/ic/spdmem.c
894
aprint_verbose_dev(self, LATENCY, __FBDIMM_CYCLES(fbdimm_tAAmin),
sys/dev/ic/spdmem.c
901
decode_voltage_refresh(self, s);
sys/dev/ic/spdmem.c
905
decode_ddr4(const struct sysctlnode *node, device_t self, struct spdmem *s)
sys/dev/ic/spdmem.c
913
aprint_normal_dev(self, "%s", spdmem_basic_types[s->sm_type]);
sys/dev/ic/spdmem.c
971
decode_size_speed(self, node, dimm_size, cycle_time, 2,
sys/dev/ic/spdmem.c
976
aprint_verbose_dev(self,
sys/dev/ic/spdmem.c
984
aprint_verbose_dev(self, "%d.%03dns cycle time\n",
sys/dev/ic/timer_cpcbus.c
61
cpctim_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/timer_cpcbus.c
65
struct cpctim_softc *sc = device_private(self);
sys/dev/ic/tulip.c
187
device_t self = sc->sc_dev;
sys/dev/ic/tulip.c
3370
tlp_bitbang_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/tulip.c
3372
struct tulip_softc *sc = device_private(self);
sys/dev/ic/tulip.c
3374
return mii_bitbang_readreg(self, sc->sc_bitbang_ops, phy, reg, val);
sys/dev/ic/tulip.c
3383
tlp_bitbang_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/tulip.c
3385
struct tulip_softc *sc = device_private(self);
sys/dev/ic/tulip.c
3387
return mii_bitbang_writereg(self, sc->sc_bitbang_ops, phy, reg, val);
sys/dev/ic/tulip.c
3396
tlp_sio_mii_bitbang_read(device_t self)
sys/dev/ic/tulip.c
3398
struct tulip_softc *sc = device_private(self);
sys/dev/ic/tulip.c
3409
tlp_sio_mii_bitbang_write(device_t self, uint32_t val)
sys/dev/ic/tulip.c
3411
struct tulip_softc *sc = device_private(self);
sys/dev/ic/tulip.c
3422
tlp_pnic_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/tulip.c
3424
struct tulip_softc *sc = device_private(self);
sys/dev/ic/tulip.c
3455
tlp_pnic_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/tulip.c
3457
struct tulip_softc *sc = device_private(self);
sys/dev/ic/tulip.c
3497
tlp_al981_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/ic/tulip.c
3499
struct tulip_softc *sc = device_private(self);
sys/dev/ic/tulip.c
3519
tlp_al981_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/ic/tulip.c
3521
struct tulip_softc *sc = device_private(self);
sys/dev/ic/tulip.c
396
aprint_error_dev(self,
sys/dev/ic/tulip.c
404
aprint_error_dev(self,
sys/dev/ic/tulip.c
413
aprint_error_dev(self,
sys/dev/ic/tulip.c
422
aprint_error_dev(self,
sys/dev/ic/tulip.c
456
aprint_error_dev(self,
sys/dev/ic/tulip.c
470
aprint_error_dev(self,
sys/dev/ic/tulip.c
491
aprint_normal_dev(self, "%s%sEthernet address %s\n",
sys/dev/ic/tulip.c
509
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/ic/tulip.c
533
rnd_attach_source(&sc->sc_rnd_source, device_xname(self),
sys/dev/ic/tulip.c
536
if (pmf_device_register(self, NULL, NULL))
sys/dev/ic/tulip.c
537
pmf_class_network_register(self, ifp);
sys/dev/ic/tulip.c
539
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/ic/tulip.c
577
tlp_activate(device_t self, enum devact act)
sys/dev/ic/tulip.c
579
struct tulip_softc *sc = device_private(self);
sys/dev/ic/tulip.c
601
device_t self = sc->sc_dev;
sys/dev/ic/tulip.c
656
pmf_device_deregister(self);
sys/dev/ic/wdc.c
873
wdc_childdetached(device_t self, device_t child)
sys/dev/ic/wdc.c
875
struct atac_softc *atac = device_private(self);
sys/dev/ic/wdc.c
889
wdcdetach(device_t self, int flags)
sys/dev/ic/wdc.c
891
struct atac_softc *atac = device_private(self);
sys/dev/ic/we.c
134
we_config(device_t self, struct we_softc *wsc, const char *typestr)
sys/dev/ic/we.c
143
if (device_cfdata(self)->cf_flags & DP8390_FORCE_16BIT_MODE) {
sys/dev/ic/we.c
147
if (device_cfdata(self)->cf_flags & DP8390_FORCE_8BIT_MODE)
sys/dev/ic/we.c
156
aprint_normal_dev(self, "%s Ethernet (%s-bit)\n",
sys/dev/ic/we.c
253
sc->sc_flags = device_cfdata(self)->cf_flags;
sys/dev/ic/we.c
261
aprint_error_dev(self, "configuration failed\n");
sys/dev/ic/wevar.h
36
int we_config(device_t self, struct we_softc *, const char *);
sys/dev/ic/wi.c
619
wi_activate(device_t self, enum devact act)
sys/dev/ic/wi.c
621
struct wi_softc *sc = device_private(self);
sys/dev/ic/z8530tty.c
327
zstty_attach(device_t parent, device_t self, void *aux)
sys/dev/ic/z8530tty.c
329
struct zstty_softc *zst = device_private(self);
sys/dev/ic/z8530tty.c
331
cfdata_t cf = device_cfdata(self);
sys/dev/ic/z8530tty.c
341
zst->zst_dev = self;
sys/dev/ic/z8530tty.c
346
tty_unit = device_unit(self);
sys/dev/ieee1394/firewire.c
194
firewireattach(device_t parent, device_t self, void *aux)
sys/dev/ieee1394/firewire.c
196
struct firewire_softc *sc = device_private(self);
sys/dev/ieee1394/firewire.c
204
fc->bdev = sc->dev = self;
sys/dev/ieee1394/firewire.c
235
config_pending_incr(self);
sys/dev/ieee1394/firewire.c
240
aprint_error_dev(self, "kthread_create failed\n");
sys/dev/ieee1394/firewire.c
241
config_pending_decr(self);
sys/dev/ieee1394/firewire.c
259
if (!pmf_device_register(self, NULL, NULL))
sys/dev/ieee1394/firewire.c
260
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/ieee1394/firewire.c
266
firewiredetach(device_t self, int flags)
sys/dev/ieee1394/firewire.c
268
struct firewire_softc *sc = device_private(self);
sys/dev/ieee1394/firewire.c
281
aprint_error_dev(self,
sys/dev/ieee1394/if_fwip.c
165
fwipattach(device_t parent, device_t self, void *aux)
sys/dev/ieee1394/if_fwip.c
167
struct fwip_softc *sc = device_private(self);
sys/dev/ieee1394/if_fwip.c
175
sc->sc_fd.dev = self;
sys/dev/ieee1394/if_fwip.c
208
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/ieee1394/if_fwip.c
220
if (!pmf_device_register(self, NULL, NULL))
sys/dev/ieee1394/if_fwip.c
221
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/ieee1394/if_fwip.c
223
pmf_class_network_register(self, ifp);
sys/dev/ieee1394/if_fwip.c
230
fwipdetach(device_t self, int flags)
sys/dev/ieee1394/if_fwip.c
232
struct fwip_softc *sc = device_private(self);
sys/dev/ieee1394/if_fwip.c
244
fwipactivate(device_t self, enum devact act)
sys/dev/ieee1394/if_fwip.c
246
struct fwip_softc *sc = device_private(self);
sys/dev/ieee1394/sbp.c
465
sbpattach(device_t parent, device_t self, void *aux)
sys/dev/ieee1394/sbp.c
467
struct sbp_softc *sc = device_private(self);
sys/dev/ieee1394/sbp.c
478
sc->sc_fd.dev = self;
sys/dev/ieee1394/sbp.c
523
aprint_error_dev(self, "attach failed\n");
sys/dev/ieee1394/sbp.c
547
sbpdetach(device_t self, int flags)
sys/dev/ieee1394/sbp.c
549
struct sbp_softc *sc = device_private(self);
sys/dev/ipmi.c
1994
device_t self = cookie;
sys/dev/ipmi.c
1995
struct ipmi_softc *sc = device_private(self);
sys/dev/ipmi.c
2018
if (!pmf_device_register(self, ipmi_suspend, NULL))
sys/dev/ipmi.c
2019
aprint_error_dev(self, "couldn't establish a power handler\n");
sys/dev/ipmi.c
2025
config_pending_decr(self);
sys/dev/ipmi.c
2029
aprint_error_dev(self, "Failed to re-query device ID\n");
sys/dev/ipmi.c
2080
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/ipmi.c
2089
aprint_verbose_dev(self, "version %d.%d interface %s %sbase "
sys/dev/ipmi.c
2096
aprint_verbose_dev(self, " irq %d\n", ia->iaa_if_irq);
sys/dev/ipmi.c
2099
aprint_normal_dev(self, "ID %u.%u IPMI %x.%x%s%s\n",
sys/dev/ipmi.c
2105
aprint_verbose_dev(self, "Additional%s%s%s%s%s%s%s%s\n",
sys/dev/ipmi.c
2114
aprint_verbose_dev(self, "Manufacturer %05x Product %04x\n",
sys/dev/ipmi.c
2120
aprint_verbose_dev(self, "Firmware %u.%x\n",
sys/dev/ipmi.c
2151
ipmi_attach(device_t parent, device_t self, void *aux)
sys/dev/ipmi.c
2153
struct ipmi_softc *sc = device_private(self);
sys/dev/ipmi.c
2156
sc->sc_dev = self;
sys/dev/ipmi.c
2167
if (kthread_create(PRI_NONE, KTHREAD_MUSTJOIN, NULL, ipmi_thread, self,
sys/dev/ipmi.c
2168
&sc->sc_kthread, "%s", device_xname(self)) != 0) {
sys/dev/ipmi.c
2169
aprint_error_dev(self, "unable to create thread, disabled\n");
sys/dev/ipmi.c
2171
config_pending_incr(self);
sys/dev/ipmi.c
2175
ipmi_detach(device_t self, int flags)
sys/dev/ipmi.c
2179
struct ipmi_softc *sc = device_private(self);
sys/dev/ir/cir.c
114
cir_detach(device_t self, int flags)
sys/dev/ir/cir.c
116
struct cir_softc *sc = device_private(self);
sys/dev/ir/cir.c
123
mn = device_unit(self);
sys/dev/ir/cir.c
73
void cir_attach(device_t parent, device_t self, void *aux);
sys/dev/ir/cir.c
74
int cir_detach(device_t self, int flags);
sys/dev/ir/cir.c
92
cir_attach(device_t parent, device_t self, void *aux)
sys/dev/ir/cir.c
94
struct cir_softc *sc = device_private(self);
sys/dev/ir/cir.c
97
sc->sc_dev = self;
sys/dev/ir/irframe.c
110
irframe_attach(device_t parent, device_t self, void *aux)
sys/dev/ir/irframe.c
112
struct irframe_softc *sc = device_private(self);
sys/dev/ir/irframe.c
117
sc->sc_dev = self;
sys/dev/ir/irframe.c
129
panic("%s: missing methods", device_xname(self));
sys/dev/ir/irframe.c
153
if (!pmf_device_register(self, NULL, NULL))
sys/dev/ir/irframe.c
154
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/ir/irframe.c
158
irframe_detach(device_t self, int flags)
sys/dev/ir/irframe.c
163
pmf_device_deregister(self);
sys/dev/ir/irframe.c
171
mn = device_unit(self);
sys/dev/ir/irframe_tty.c
220
irframet_attach(device_t parent, device_t self, void *aux)
sys/dev/ir/irframe_tty.c
222
struct irframet_softc *sc = device_private(self);
sys/dev/ir/irframe_tty.c
225
aprint_normal("%s", device_xname(self));
sys/dev/ir/irframe_tty.c
238
irframe_attach(parent, self, &ia);
sys/dev/isa/addcom_isa.c
115
addcomprobe(device_t parent, cfdata_t self, void *aux)
sys/dev/isa/addcom_isa.c
186
addcomattach(device_t parent, device_t self, void *aux)
sys/dev/isa/addcom_isa.c
188
struct addcom_softc *sc = device_private(self);
sys/dev/isa/addcom_isa.c
201
aprint_error_dev(self, "can't map status space\n");
sys/dev/isa/addcom_isa.c
212
aprint_error_dev(self,
sys/dev/isa/addcom_isa.c
227
sc->sc_slaves[i] = config_found(self, &ca, commultiprint,
sys/dev/isa/adv_isa.c
201
adv_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/adv_isa.c
204
ASC_SOFTC *sc = device_private(self);
sys/dev/isa/adv_isa.c
212
sc->sc_dev = self;
sys/dev/isa/aha_isa.c
121
aha_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/aha_isa.c
124
struct aha_softc *sc = device_private(self);
sys/dev/isa/aha_isa.c
131
sc->sc_dev = self;
sys/dev/isa/aha_isa.c
136
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/isa/aha_isa.c
144
aprint_error_dev(self, "aha_find failed\n");
sys/dev/isa/aha_isa.c
150
aprint_error_dev(self,
sys/dev/isa/aha_isa.c
159
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/isa/aic_isa.c
144
aic_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/aic_isa.c
147
struct aic_isa_softc *isc = device_private(self);
sys/dev/isa/aic_isa.c
153
sc->sc_dev = self;
sys/dev/isa/aic_isa.c
158
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/isa/aic_isa.c
165
aprint_error_dev(self, "aic_find failed\n");
sys/dev/isa/aic_isa.c
172
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/isa/aps.c
297
aps_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/aps.c
299
struct aps_softc *sc = device_private(self);
sys/dev/isa/aps.c
319
aprint_error_dev(self, "failed to initialize\n");
sys/dev/isa/aps.c
358
sc->sc_sme->sme_name = device_xname(self);
sys/dev/isa/aps.c
362
aprint_error_dev(self,
sys/dev/isa/aps.c
369
if (!pmf_device_register(self, aps_suspend, aps_resume))
sys/dev/isa/aps.c
370
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/aps.c
430
aps_detach(device_t self, int flags)
sys/dev/isa/aps.c
432
struct aps_softc *sc = device_private(self);
sys/dev/isa/aria.c
399
ariaattach(device_t parent, device_t self, void *aux)
sys/dev/isa/aria.c
406
sc = device_private(self);
sys/dev/isa/aria.c
407
sc->sc_dev = self;
sys/dev/isa/aria.c
411
panic("%s: can map io port range", device_xname(self));
sys/dev/isa/ast.c
144
astattach(device_t parent, device_t self, void *aux)
sys/dev/isa/ast.c
146
struct ast_softc *sc = device_private(self);
sys/dev/isa/ast.c
163
aprint_error_dev(self,
sys/dev/isa/ast.c
181
slave = config_found(self, &ca, commultiprint, CFARGS_NONE);
sys/dev/isa/ast.c
74
astprobe(device_t parent, cfdata_t self, void *aux)
sys/dev/isa/atppc_isa.c
132
atppc_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/atppc_isa.c
134
struct atppc_isa_softc *sc = device_private(self);
sys/dev/isa/atppc_isa.c
148
aprint_error_dev(self, "attempt to map bus space failed, device not "
sys/dev/isa/atppc_isa.c
154
lsc->sc_dev = self;
sys/dev/isa/atppc_isa.c
158
if (!(device_cfdata(self)->cf_flags & ATPPC_FLAG_DISABLE_INTR)
sys/dev/isa/atppc_isa.c
174
if (!(device_cfdata(self)->cf_flags & ATPPC_FLAG_DISABLE_DMA)
sys/dev/isa/attimer_isa.c
126
attimer_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/attimer_isa.c
128
struct attimer_softc *sc = device_private(self);
sys/dev/isa/attimer_isa.c
131
sc->sc_dev = self;
sys/dev/isa/attimer_isa.c
140
aprint_error_dev(self, "could not map registers\n");
sys/dev/isa/aztech.c
162
az_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/aztech.c
164
struct az_softc *sc = device_private(self);
sys/dev/isa/aztech.c
177
panic(": bus_space_map() of %s failed", device_xname(self));
sys/dev/isa/aztech.c
194
radio_attach_mi(&az_hw_if, sc, self);
sys/dev/isa/bha_isa.c
120
bha_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/bha_isa.c
123
struct bha_softc *sc = device_private(self);
sys/dev/isa/bha_isa.c
132
sc->sc_dev = self;
sys/dev/isa/boca.c
150
bocaattach(device_t parent, device_t self, void *aux)
sys/dev/isa/boca.c
152
struct boca_softc *sc = device_private(self);
sys/dev/isa/boca.c
160
sc->sc_dev = self;
sys/dev/isa/boca.c
183
sc->sc_slaves[i] = config_found(self, &ca, commultiprint,
sys/dev/isa/boca.c
79
bocaprobe(device_t parent, cfdata_t self, void *aux)
sys/dev/isa/cec.c
181
cecattach(device_t parent, device_t self, void *aux)
sys/dev/isa/cec.c
183
struct cec_softc *sc = device_private(self);
sys/dev/isa/cec.c
192
sc->sc_dev = self;
sys/dev/isa/cec.c
235
(struct gpib_softc *)config_found(self, &ga, gpibdevprint,
sys/dev/isa/cms.c
158
cms_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/cms.c
160
struct cms_softc *sc = device_private(self);
sys/dev/isa/cms.c
175
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/isa/cms.c
195
midi_attach_mi(&midisyn_hw_if, ms, self);
sys/dev/isa/com_isa.c
163
com_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/com_isa.c
165
struct com_isa_softc *isc = device_private(self);
sys/dev/isa/com_isa.c
188
sc->sc_dev = self;
sys/dev/isa/com_isa.c
210
if (!pmf_device_register1(self, com_isa_suspend, com_isa_resume,
sys/dev/isa/com_isa.c
212
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/com_isa.c
221
com_isa_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/isa/com_isa.c
223
struct com_isa_softc *isc = device_private(self);
sys/dev/isa/com_isa.c
225
if (!com_suspend(self, qual))
sys/dev/isa/com_isa.c
235
com_isa_resume(device_t self, const pmf_qual_t *qual)
sys/dev/isa/com_isa.c
237
struct com_isa_softc *isc = device_private(self);
sys/dev/isa/com_isa.c
243
return com_resume(self, qual);
sys/dev/isa/com_isa.c
247
com_isa_detach(device_t self, int flags)
sys/dev/isa/com_isa.c
249
struct com_isa_softc *isc = device_private(self);
sys/dev/isa/com_isa.c
254
if ((rc = com_detach(self, flags)) != 0)
sys/dev/isa/com_isa.c
260
pmf_device_deregister(self);
sys/dev/isa/com_isa.c
262
com_cleanup(self, 0);
sys/dev/isa/com_multi.c
121
com_multi_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/com_multi.c
123
struct com_softc *sc = device_private(self);
sys/dev/isa/com_multi.c
126
sc->sc_dev = self;
sys/dev/isa/cy_isa.c
82
cy_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/cy_isa.c
84
struct cy_softc *sc = device_private(self);
sys/dev/isa/cy_isa.c
87
sc->sc_dev = self;
sys/dev/isa/depca_isa.c
193
depca_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/depca_isa.c
195
struct depca_isa_softc *isc = device_private(self);
sys/dev/isa/depca_isa.c
199
sc->sc_dev = self;
sys/dev/isa/depca_isa.c
209
aprint_error_dev(self, "unable to map i/o space\n");
sys/dev/isa/depca_isa.c
214
aprint_error_dev(self, "unable to map memory space\n");
sys/dev/isa/dpt_isa.c
255
dpt_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/dpt_isa.c
266
sc = device_private(self);
sys/dev/isa/dpt_isa.c
267
sc->sc_dev = self;
sys/dev/isa/ega.c
486
ega_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/ega.c
489
struct ega_softc *sc = device_private(self);
sys/dev/isa/ega.c
523
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/isa/esp_isa.c
357
esp_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/esp_isa.c
359
struct esp_isa_softc *esc = device_private(self);
sys/dev/isa/esp_isa.c
368
sc->sc_dev = self;
sys/dev/isa/esp_isa.c
373
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/isa/esp_isa.c
378
aprint_error_dev(self, "esp_isa_find failed\n");
sys/dev/isa/esp_isa.c
384
aprint_error_dev(self,
sys/dev/isa/esp_isa.c
393
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/isa/esp_isa.c
401
aprint_normal_dev(self, "%ssync,%sparity\n",
sys/dev/isa/esp_isa.c
403
aprint_normal("%s", device_xname(self));
sys/dev/isa/ess_isa.c
123
ess_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/ess_isa.c
129
sc = device_private(self);
sys/dev/isa/ess_isa.c
131
sc->sc_dev = self;
sys/dev/isa/ess_isa.c
155
if (device_cfdata(self)->cf_flags & 1) {
sys/dev/isa/ess_isa.c
163
aprint_normal_dev(self, "");
sys/dev/isa/fd.c
305
fdcresume(device_t self, const pmf_qual_t *qual)
sys/dev/isa/fd.c
307
struct fdc_softc *fdc = device_private(self);
sys/dev/isa/fd.c
316
fdcsuspend(device_t self, const pmf_qual_t *qual)
sys/dev/isa/fd.c
318
struct fdc_softc *fdc = device_private(self);
sys/dev/isa/fd.c
336
fdc_childdet(device_t self, device_t child)
sys/dev/isa/fd.c
338
struct fdc_softc *fdc = device_private(self);
sys/dev/isa/fd.c
347
fdcdetach(device_t self, int flags)
sys/dev/isa/fd.c
350
struct fdc_softc *fdc = device_private(self);
sys/dev/isa/fd.c
352
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/isa/fd.c
355
pmf_device_deregister(self);
sys/dev/isa/fd.c
403
fdcfinishattach(device_t self)
sys/dev/isa/fd.c
405
struct fdc_softc *fdc = device_private(self);
sys/dev/isa/fd.c
557
fdattach(device_t parent, device_t self, void *aux)
sys/dev/isa/fd.c
560
struct fd_softc *fd = device_private(self);
sys/dev/isa/fd.c
565
fd->sc_dev = self;
sys/dev/isa/fd.c
601
if (!pmf_device_register(self, NULL, NULL))
sys/dev/isa/fd.c
602
aprint_error_dev(self, "cannot set power mgmt handler\n");
sys/dev/isa/fd.c
606
fddetach(device_t self, int flags)
sys/dev/isa/fd.c
608
struct fd_softc *fd = device_private(self);
sys/dev/isa/fd.c
619
mn = DISKMINOR(device_unit(self), i);
sys/dev/isa/fd.c
624
pmf_device_deregister(self);
sys/dev/isa/fdc_isa.c
182
fdc_isa_detach(device_t self, int flags)
sys/dev/isa/fdc_isa.c
185
struct fdc_isa_softc *isc = device_private(self);
sys/dev/isa/fdc_isa.c
188
if ((rc = fdcdetach(self, flags)) != 0)
sys/dev/isa/fdc_isa.c
201
fdc_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/fdc_isa.c
203
struct fdc_isa_softc *isc = device_private(self);
sys/dev/isa/fdc_isa.c
210
fdc->sc_dev = self;
sys/dev/isa/fdcvar.h
148
int fdcdetach(device_t self, int flags);
sys/dev/isa/finsio_isa.c
460
finsio_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/finsio_isa.c
462
struct finsio_softc *sc = device_private(self);
sys/dev/isa/finsio_isa.c
562
sc->sc_sme->sme_name = device_xname(self);
sys/dev/isa/finsio_isa.c
570
aprint_normal_dev(self,
sys/dev/isa/finsio_isa.c
581
finsio_isa_detach(device_t self, int flags)
sys/dev/isa/finsio_isa.c
583
struct finsio_softc *sc = device_private(self);
sys/dev/isa/gus.c
810
gusattach(device_t parent, device_t self, void *aux)
sys/dev/isa/gus.c
821
sc = device_private(self);
sys/dev/isa/gus.c
822
sc->sc_dev = self;
sys/dev/isa/gus.c
835
panic("%s: can't map io port range 1", device_xname(self));
sys/dev/isa/gus.c
838
panic("%s: can't map io port range 2", device_xname(self));
sys/dev/isa/gus.c
844
panic("%s: can't map io port range 3", device_xname(self));
sys/dev/isa/gus.c
848
panic("%s: can't map io port range 4", device_xname(self));
sys/dev/isa/i82365_isa.c
184
pcic_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/i82365_isa.c
186
struct pcic_isa_softc *isc = device_private(self);
sys/dev/isa/i82365_isa.c
196
sc->dev = self;
sys/dev/isa/i82365_isa.c
234
config_interrupts(self, pcic_isa_config_interrupts);
sys/dev/isa/i82365_isasubr.c
268
pcic_isa_config_interrupts(device_t self)
sys/dev/isa/i82365_isasubr.c
276
isc = device_private(self);
sys/dev/isa/i82365_isasubr.c
322
if ((device_cfdata(self)->cf_flags & 1) == 0) {
sys/dev/isa/i82365_isasubr.c
327
device_xname(self), sc->irq);
sys/dev/isa/i82365_isasubr.c
330
aprint_error_dev(self, "no available irq; ");
sys/dev/isa/i82365_isasubr.c
333
aprint_error_dev(self, "can't share irq with cards; ");
sys/dev/isa/i82365_isasubr.c
337
printf("%s: ", device_xname(self));
sys/dev/isa/i82365_isasubr.c
345
aprint_error_dev(self, "can't establish interrupt");
sys/dev/isa/i82365_isasubr.c
353
device_xname(self), sc->irq);
sys/dev/isa/if_ai.c
298
ai_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_ai.c
300
struct ai_softc *asc = device_private(self);
sys/dev/isa/if_ai.c
308
sc->sc_dev = self;
sys/dev/isa/if_ai.c
313
device_xname(self),
sys/dev/isa/if_ai.c
322
device_xname(self),
sys/dev/isa/if_ai.c
381
device_xname(self)));
sys/dev/isa/if_ai.c
399
device_xname(self)));
sys/dev/isa/if_ate.c
348
ate_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_ate.c
350
struct ate_softc *isc = device_private(self);
sys/dev/isa/if_ate.c
359
sc->sc_dev = self;
sys/dev/isa/if_cs_isa.c
211
cs_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_cs_isa.c
213
struct cs_softc_isa *isc = device_private(self);
sys/dev/isa/if_cs_isa.c
217
sc->sc_dev = self;
sys/dev/isa/if_cs_isa.c
236
aprint_error_dev(self, "unable to map i/o space\n");
sys/dev/isa/if_cs_isa.c
244
aprint_error_dev(self, "invalid IRQ %d\n", sc->sc_irq);
sys/dev/isa/if_cs_isa.c
258
aprint_error_dev(self, "unable to map memory space\n");
sys/dev/isa/if_cs_isa.c
268
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/isa/if_ec.c
244
ec_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_ec.c
246
struct ec_softc *esc = device_private(self);
sys/dev/isa/if_ec.c
255
sc->sc_dev = self;
sys/dev/isa/if_ec.c
270
aprint_error_dev(self, "can't map nic i/o space\n");
sys/dev/isa/if_ec.c
277
aprint_error_dev(self, "can't map asic i/o space\n");
sys/dev/isa/if_ec.c
283
aprint_error_dev(self, "can't map shared memory\n");
sys/dev/isa/if_ec.c
364
aprint_normal_dev(self, "3Com 3c503 Ethernet (%s-bit)\n",
sys/dev/isa/if_ec.c
399
aprint_error_dev(self, " configuration failed\n");
sys/dev/isa/if_ec.c
455
aprint_error_dev(self, "wildcarded IRQ is not allowed\n");
sys/dev/isa/if_ec.c
459
aprint_error_dev(self, "invalid IRQ %d, must be 3, 4, 5, "
sys/dev/isa/if_ec.c
487
aprint_error_dev(self, "memory test failed\n");
sys/dev/isa/if_ec.c
495
aprint_error_dev(self, "can't establish interrupt\n");
sys/dev/isa/if_ef.c
448
ef_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_ef.c
450
struct ef_softc *esc = device_private(self);
sys/dev/isa/if_ef.c
462
sc->sc_dev = self;
sys/dev/isa/if_ef.c
497
panic("%s: Can't find parent bus!", device_xname(self));
sys/dev/isa/if_ef.c
504
device_xname(self)));
sys/dev/isa/if_ef.c
521
device_xname(self), ia->ia_io[0].ir_addr,
sys/dev/isa/if_ef.c
533
device_xname(self), ia->ia_iomem[0].ir_addr,
sys/dev/isa/if_ef.c
570
device_xname(self)));
sys/dev/isa/if_ef.c
622
device_xname(self)));
sys/dev/isa/if_eg.c
362
egattach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_eg.c
364
struct eg_softc *sc = device_private(self);
sys/dev/isa/if_eg.c
371
sc->sc_dev = self;
sys/dev/isa/if_eg.c
377
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/isa/if_eg.c
387
aprint_error_dev(self, "error requesting adapter info\n");
sys/dev/isa/if_eg.c
392
aprint_error_dev(self, "error reading adapter info\n");
sys/dev/isa/if_eg.c
399
aprint_error_dev(self, "bogus adapter info\n");
sys/dev/isa/if_eg.c
412
aprint_error_dev(self, "can't send Get Station Address\n");
sys/dev/isa/if_eg.c
416
aprint_error_dev(self, "can't read station address\n");
sys/dev/isa/if_eg.c
423
aprint_error_dev(self, "card responded with garbage (1)\n");
sys/dev/isa/if_eg.c
429
aprint_normal_dev(self, "ROM v%d.%02d %dk address %s\n",
sys/dev/isa/if_eg.c
435
aprint_error_dev(self, "can't send Set Station Address\n");
sys/dev/isa/if_eg.c
439
aprint_error_dev(self,
sys/dev/isa/if_eg.c
446
aprint_error_dev(self, "card responded with garbage (2)\n");
sys/dev/isa/if_el.c
195
elattach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_el.c
197
struct el_softc *sc = device_private(self);
sys/dev/isa/if_el.c
205
sc->sc_dev = self;
sys/dev/isa/if_el.c
213
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/isa/if_el.c
249
printf("%s: address %s\n", device_xname(self), ether_sprintf(myaddr));
sys/dev/isa/if_ep_isa.c
351
ep_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_ep_isa.c
353
struct ep_softc *sc = device_private(self);
sys/dev/isa/if_ep_isa.c
365
sc->sc_dev = self;
sys/dev/isa/if_fmv_isa.c
263
fmv_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_fmv_isa.c
265
struct fmv_isa_softc *isc = device_private(self);
sys/dev/isa/if_fmv_isa.c
271
sc->sc_dev = self;
sys/dev/isa/if_ix.c
618
ix_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_ix.c
620
struct ix_softc *isc = device_private(self);
sys/dev/isa/if_ix.c
634
sc->sc_dev = self;
sys/dev/isa/if_ix.c
648
device_xname(self), ia->ia_io[0].ir_addr,
sys/dev/isa/if_ix.c
658
device_xname(self), ia->ia_iomem[0].ir_addr,
sys/dev/isa/if_ix.c
772
device_xname(self)));
sys/dev/isa/if_ix.c
824
device_xname(self)));
sys/dev/isa/if_ix.c
863
aprint_error_dev(self, "unsupported memory config, using PIO "
sys/dev/isa/if_ix.c
870
device_xname(self)));
sys/dev/isa/if_iy.c
275
iyattach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_iy.c
277
struct iy_softc *sc = device_private(self);
sys/dev/isa/if_iy.c
287
sc->sc_dev = self;
sys/dev/isa/if_lc_isa.c
202
lemac_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_lc_isa.c
204
lemac_softc_t *sc = device_private(self);
sys/dev/isa/if_lc_isa.c
207
sc->sc_dev = self;
sys/dev/isa/if_lc_isa.c
208
(void) lemac_isa_find(sc, device_xname(self), ia, 1);
sys/dev/isa/if_le_isa.c
260
le_dummyattach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_le_isa.c
265
config_found(self, aux, 0, CFARGS_NONE);
sys/dev/isa/if_le_isa.c
276
le_ne2100_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_le_isa.c
278
struct le_softc *lesc = device_private(self);
sys/dev/isa/if_le_isa.c
281
sc->sc_dev = self;
sys/dev/isa/if_le_isa.c
286
le_bicc_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_le_isa.c
288
struct le_softc *lesc = device_private(self);
sys/dev/isa/if_le_isa.c
291
sc->sc_dev = self;
sys/dev/isa/if_ne_isa.c
131
ne_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_ne_isa.c
133
struct ne_isa_softc *isc = device_private(self);
sys/dev/isa/if_ne_isa.c
144
dsc->sc_dev = self;
sys/dev/isa/if_ne_isa.c
150
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/isa/if_ne_isa.c
156
aprint_error_dev(self, "can't subregion i/o space\n");
sys/dev/isa/if_ne_isa.c
185
aprint_error_dev(self, "where did the card go?!\n");
sys/dev/isa/if_ne_isa.c
189
aprint_normal_dev(self, "%s Ethernet\n", typestr);
sys/dev/isa/if_ne_isa.c
204
aprint_error_dev(self,
sys/dev/isa/if_ntwoc_isa.c
383
ntwoc_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_ntwoc_isa.c
395
sc = device_private(self);
sys/dev/isa/if_ntwoc_isa.c
396
sc->sc_dev = self;
sys/dev/isa/if_ntwoc_isa.c
572
aprint_error_dev(self,
sys/dev/isa/if_ntwoc_isa.c
620
config_interrupts(self, ntwoc_isa_config_interrupts);
sys/dev/isa/if_ntwoc_isa.c
808
ntwoc_isa_config_interrupts(device_t self)
sys/dev/isa/if_ntwoc_isa.c
812
sc = device_private(self);
sys/dev/isa/if_sm_isa.c
154
sm_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_sm_isa.c
156
struct sm_isa_softc *isc = device_private(self);
sys/dev/isa/if_sm_isa.c
168
sc->sc_dev = self;
sys/dev/isa/if_sm_isa.c
184
aprint_error_dev(self, "couldn't establish interrupt handler\n");
sys/dev/isa/if_tscs_isa.c
166
tscs_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_tscs_isa.c
168
struct cs_softc_isa *isc = device_private(self);
sys/dev/isa/if_tscs_isa.c
172
sc->sc_dev = self;
sys/dev/isa/if_tscs_isa.c
187
aprint_error_dev(self, "unable to map i/o space\n");
sys/dev/isa/if_tscs_isa.c
194
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/isa/if_we_isa.c
260
we_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/if_we_isa.c
262
struct we_softc *wsc = device_private(self);
sys/dev/isa/if_we_isa.c
271
sc->sc_dev = self;
sys/dev/isa/if_we_isa.c
277
aprint_error_dev(self, "can't map nic i/o space\n");
sys/dev/isa/if_we_isa.c
283
aprint_error_dev(self, "can't subregion i/o space\n");
sys/dev/isa/if_we_isa.c
290
aprint_error_dev(self, "where did the card go?\n");
sys/dev/isa/if_we_isa.c
300
aprint_error_dev(self, "can't map shared memory\n");
sys/dev/isa/if_we_isa.c
319
if (we_config(self, wsc, typestr))
sys/dev/isa/if_we_isa.c
333
aprint_error_dev(self, "can't wildcard IRQ on a %s\n",
sys/dev/isa/if_we_isa.c
342
aprint_error_dev(self, "can't establish interrupt\n");
sys/dev/isa/ioat66.c
144
ioat66attach(device_t parent, device_t self, void *aux)
sys/dev/isa/ioat66.c
146
struct ioat66_softc *sc = device_private(self);
sys/dev/isa/ioat66.c
163
aprint_error_dev(self,
sys/dev/isa/ioat66.c
170
aprint_error_dev(self, "can't map shared interrupt mask\n");
sys/dev/isa/ioat66.c
182
sc->sc_slaves[i] = config_found(self, &ca, commultiprint,
sys/dev/isa/ioat66.c
78
ioat66probe(device_t parent, cfdata_t self, void *aux)
sys/dev/isa/isa.c
115
isa_dmainit(sc->sc_ic, sc->sc_iot, sc->sc_dmat, self);
sys/dev/isa/isa.c
119
isarescan(self, NULL, wildcard);
sys/dev/isa/isa.c
121
if (!pmf_device_register(self, NULL, NULL))
sys/dev/isa/isa.c
122
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/isa.c
126
isadetach(device_t self, int flags)
sys/dev/isa/isa.c
128
struct isa_softc *sc = device_private(self);
sys/dev/isa/isa.c
131
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/isa/isa.c
134
pmf_device_deregister(self);
sys/dev/isa/isa.c
139
isa_detach_hook(sc->sc_ic, self);
sys/dev/isa/isa.c
145
isarescan(device_t self, const char *ifattr, const int *locators)
sys/dev/isa/isa.c
149
if (device_getprop_bool(self, "no-legacy-devices")) {
sys/dev/isa/isa.c
150
aprint_debug_dev(self, "platform reports no legacy devices\n");
sys/dev/isa/isa.c
167
config_search(self, NULL,
sys/dev/isa/isa.c
79
isaattach(device_t parent, device_t self, void *aux)
sys/dev/isa/isa.c
81
struct isa_softc *sc = device_private(self);
sys/dev/isa/isa.c
93
sc->sc_dev = self;
sys/dev/isa/isa.c
95
isa_attach_hook(parent, self, iba);
sys/dev/isa/isv.c
238
isv_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/isv.c
240
struct isv_softc *sc = device_private(self);
sys/dev/isa/isv.c
252
sc->sc_dev = self;
sys/dev/isa/isv.c
444
isv_detach(device_t self, int flags)
sys/dev/isa/isv.c
446
struct isv_softc *sc = device_private(self);
sys/dev/isa/itesio_isa.c
211
itesio_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/itesio_isa.c
213
struct itesio_softc *sc = device_private(self);
sys/dev/isa/itesio_isa.c
281
aprint_normal_dev(self, "Hardware Monitor registers at 0x%x\n",
sys/dev/isa/itesio_isa.c
286
aprint_error_dev(self, "cannot map hwmon i/o space\n");
sys/dev/isa/itesio_isa.c
321
sc->sc_sme->sme_name = device_xname(self);
sys/dev/isa/itesio_isa.c
326
aprint_error_dev(self,
sys/dev/isa/itesio_isa.c
334
if (!pmf_device_register(self, NULL, NULL))
sys/dev/isa/itesio_isa.c
335
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/itesio_isa.c
344
sc->sc_smw.smw_name = device_xname(self);
sys/dev/isa/itesio_isa.c
351
aprint_error_dev(self, "unable to register watchdog timer\n");
sys/dev/isa/itesio_isa.c
355
aprint_normal_dev(self, "Watchdog Timer present\n");
sys/dev/isa/itesio_isa.c
357
pmf_device_deregister(self);
sys/dev/isa/itesio_isa.c
358
if (!pmf_device_register(self, itesio_wdt_suspend, NULL))
sys/dev/isa/itesio_isa.c
359
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/itesio_isa.c
370
itesio_isa_detach(device_t self, int flags)
sys/dev/isa/itesio_isa.c
372
struct itesio_softc *sc = device_private(self);
sys/dev/isa/joy_ess.c
35
joy_ess_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/joy_ess.c
38
struct joy_softc *sc = device_private(self);
sys/dev/isa/joy_ess.c
44
sc->sc_dev = self;
sys/dev/isa/joy_isa.c
102
joy_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/joy_isa.c
104
struct joy_isa_softc *isc = device_private(self);
sys/dev/isa/joy_isa.c
111
sc->sc_dev = self;
sys/dev/isa/joy_isa.c
115
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/isa/lm_isa_common.c
109
lm_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/lm_isa_common.c
111
struct lm_isa_softc *sc = device_private(self);
sys/dev/isa/lm_isa_common.c
123
sc->lmsc.sc_dev = self;
sys/dev/isa/lm_isa_common.c
133
lm_isa_detach(device_t self, int flags)
sys/dev/isa/lm_isa_common.c
135
struct lm_isa_softc *sc = device_private(self);
sys/dev/isa/lpt_isa.c
217
lpt_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/lpt_isa.c
219
struct lpt_isa_softc *sc = device_private(self);
sys/dev/isa/lpt_isa.c
225
lsc->sc_dev = self;
sys/dev/isa/lpt_isa.c
236
if (!pmf_device_register(self, NULL, NULL))
sys/dev/isa/lpt_isa.c
237
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/lpt_isa.c
241
aprint_normal_dev(self, "can't map i/o space\n");
sys/dev/isa/lpt_isa.c
255
lpt_isa_detach(device_t self, int flags)
sys/dev/isa/lpt_isa.c
258
struct lpt_isa_softc *sc = device_private(self);
sys/dev/isa/lpt_isa.c
261
if ((rc = lpt_detach_subr(self, flags)) != 0)
sys/dev/isa/mcd.c
257
mcdattach(device_t parent, device_t self, void *aux)
sys/dev/isa/mcd.c
259
struct mcd_softc *sc = device_private(self);
sys/dev/isa/mcd.c
265
sc->sc_dev = self;
sys/dev/isa/midi_pcppi.c
107
sc->sc_mididev.dev = self;
sys/dev/isa/midi_pcppi.c
114
midi_pcppi_detach(device_t self, int flags)
sys/dev/isa/midi_pcppi.c
119
return mididetach(self, flags);
sys/dev/isa/midi_pcppi.c
91
midi_pcppi_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/midi_pcppi.c
93
struct midi_pcppi_softc *sc = device_private(self);
sys/dev/isa/moxa_isa.c
143
moxa_isaattach(device_t parent, device_t self, void *aux)
sys/dev/isa/moxa_isa.c
145
struct moxa_isa_softc *sc = device_private(self);
sys/dev/isa/moxa_isa.c
161
aprint_error_dev(self,
sys/dev/isa/moxa_isa.c
174
sc->sc_slaves[i] = config_found(self, &ca, commultiprint,
sys/dev/isa/moxa_isa.c
74
moxa_isaprobe(device_t parent, cfdata_t self, void *aux)
sys/dev/isa/mpu_isa.c
104
mpu_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/mpu_isa.c
106
struct mpu_isa_softc *sc = device_private(self);
sys/dev/isa/mpu_isa.c
114
aprint_error_dev(self,
sys/dev/isa/mpu_isa.c
123
sc->sc_dev = self;
sys/dev/isa/mpu_sb.c
75
mpu_sb_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/mpu_sb.c
78
struct mpu_softc *sc = device_private(self);
sys/dev/isa/mpu_sb.c
85
sc->sc_dev = self;
sys/dev/isa/mpu_ym.c
82
mpu_ym_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/mpu_ym.c
85
struct mpu_softc *sc = device_private(self);
sys/dev/isa/mpu_ym.c
97
sc->sc_dev = self;
sys/dev/isa/nca_isa.c
301
nca_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/nca_isa.c
303
struct nca_isa_softc *esc = device_private(self);
sys/dev/isa/nca_isa.c
311
sc->sc_dev = self;
sys/dev/isa/nca_isa.c
318
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/isa/nca_isa.c
326
aprint_error_dev(self, "can't map mem space\n");
sys/dev/isa/nca_isa.c
334
aprint_error_dev(self, "nca_isa_find failed\n");
sys/dev/isa/nca_isa.c
337
aprint_normal_dev(self, "NCR 53C80 detected\n");
sys/dev/isa/nca_isa.c
349
aprint_normal_dev(self, "NCR 53C400 detected\n");
sys/dev/isa/nca_isa.c
361
aprint_normal_dev(self, "ProAudio Spectrum 16 detected\n");
sys/dev/isa/nca_isa.c
385
aprint_error_dev(self,
sys/dev/isa/nct.c
299
nct_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/nct.c
301
struct nct_softc *sc = device_private(self);
sys/dev/isa/nct.c
317
sc->sc_dev = self;
sys/dev/isa/nct.c
395
aprint_normal_dev(self,
sys/dev/isa/nct.c
451
nct_detach(device_t self, int flags)
sys/dev/isa/nct.c
453
struct nct_softc *sc = device_private(self);
sys/dev/isa/nsclpcsio_isa.c
340
nsclpcsio_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/nsclpcsio_isa.c
342
struct nsclpcsio_softc *sc = device_private(self);
sys/dev/isa/nsclpcsio_isa.c
351
sc->sc_dev = self;
sys/dev/isa/nsclpcsio_isa.c
404
config_found(self, &gba, NULL, CFARGS_NONE);
sys/dev/isa/nsclpcsio_isa.c
410
nsclpcsio_isa_detach(device_t self, int flags)
sys/dev/isa/nsclpcsio_isa.c
413
struct nsclpcsio_softc *sc = device_private(self);
sys/dev/isa/nsclpcsio_isa.c
415
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/isa/opl_ess.c
76
opl_ess_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/opl_ess.c
79
struct opl_softc *sc = device_private(self);
sys/dev/isa/opl_ess.c
81
sc->dev = self;
sys/dev/isa/opl_isa.c
101
opl_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/opl_isa.c
103
struct opl_softc *sc = device_private(self);
sys/dev/isa/opl_isa.c
104
struct opl_isa_softc *isa = device_private(self);
sys/dev/isa/opl_isa.c
107
sc->dev = self;
sys/dev/isa/opl_sb.c
74
opl_sb_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/opl_sb.c
77
struct opl_softc *sc = device_private(self);
sys/dev/isa/opl_sb.c
79
sc->dev = self;
sys/dev/isa/opl_wss.c
74
opl_wss_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/opl_wss.c
77
struct opl_softc *sc = device_private(self);
sys/dev/isa/opl_wss.c
79
sc->dev = self;
sys/dev/isa/opl_ym.c
80
opl_ym_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/opl_ym.c
83
struct opl_softc *sc = device_private(self);
sys/dev/isa/opl_ym.c
85
sc->dev = self;
sys/dev/isa/pas.c
451
pasattach(device_t parent, device_t self, void *aux)
sys/dev/isa/pas.c
457
sc = device_private(self);
sys/dev/isa/pas.c
458
sc->sc_sbdsp.sc_dev = self;
sys/dev/isa/pas.c
461
if (!pasfind(device_cfdata(self), sc, ia, PASATTACH)) {
sys/dev/isa/pas.c
462
aprint_error_dev(self, "pasfind failed\n");
sys/dev/isa/pcdisplay.c
282
pcdisplay_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/pcdisplay.c
285
struct pcdisplay_softc *sc = device_private(self);
sys/dev/isa/pcdisplay.c
322
sc->sc_weasel.wh_parent = self;
sys/dev/isa/pcdisplay.c
332
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/isa/pckbc_isa.c
147
pckbc_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/pckbc_isa.c
149
struct pckbc_isa_softc *isc = device_private(self);
sys/dev/isa/pckbc_isa.c
156
sc->sc_dv = self;
sys/dev/isa/pckbc_isa.c
207
if (!pmf_device_register(self, NULL, pckbc_resume))
sys/dev/isa/pckbc_isa.c
208
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/pcppi.c
158
pcppi_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/pcppi.c
160
struct pcppi_softc *sc = device_private(self);
sys/dev/isa/pcppi.c
164
sc->sc_dv = self;
sys/dev/isa/pcppi.c
177
pcppi_childdet(device_t self, device_t child)
sys/dev/isa/pcppi.c
184
pcppi_detach(device_t self, int flags)
sys/dev/isa/pcppi.c
187
struct pcppi_softc *sc = device_private(self);
sys/dev/isa/pcppi.c
196
pmf_device_deregister(self);
sys/dev/isa/pcppi.c
218
device_t self = sc->sc_dv;
sys/dev/isa/pcppi.c
233
if (!pmf_device_register(self, NULL, NULL))
sys/dev/isa/pcppi.c
234
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/pcppi.c
236
pcppi_rescan(self, NULL, NULL);
sys/dev/isa/pcppi.c
240
pcppi_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/isa/pcppi.c
242
struct pcppi_softc *sc = device_private(self);
sys/dev/isa/pcppi.c
276
pcppi_attach_speaker(device_t self)
sys/dev/isa/pcppi.c
278
struct pcppi_softc *sc = device_private(self);
sys/dev/isa/pcppi.c
281
aprint_error_dev(self, "could not find any available timer\n");
sys/dev/isa/pcppi.c
284
device_xname(self));
sys/dev/isa/pcppi.c
290
pcppi_bell(pcppi_tag_t self, int pitch, int period, int slp)
sys/dev/isa/pcppi.c
294
pcppi_bell_locked(self, pitch, period, slp);
sys/dev/isa/pcppi.c
299
pcppi_bell_locked(pcppi_tag_t self, int pitch, int period, int slp)
sys/dev/isa/pcppi.c
301
struct pcppi_softc *sc = self;
sys/dev/isa/ptcd.c
112
ptcd_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/ptcd.c
118
sc = device_private(self);
sys/dev/isa/ptcd.c
146
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/dev/isa/radiotrack.c
175
rt_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/radiotrack.c
177
struct rt_softc *sc = device_private(self);
sys/dev/isa/radiotrack.c
190
panic(": bus_space_map() of %s failed", device_xname(self));
sys/dev/isa/radiotrack.c
224
radio_attach_mi(&rt_hw_if, sc, self);
sys/dev/isa/radiotrack.c
94
void rt_attach(device_t, device_t self, void *);
sys/dev/isa/radiotrack2.c
165
rtii_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/radiotrack2.c
167
struct rtii_softc *sc = device_private(self);
sys/dev/isa/radiotrack2.c
194
radio_attach_mi(&rtii_hw_if, sc, self);
sys/dev/isa/radiotrack2.c
84
void rtii_attach(device_t, device_t self, void *);
sys/dev/isa/rtfps.c
142
rtfpsattach(device_t parent, device_t self, void *aux)
sys/dev/isa/rtfps.c
144
struct rtfps_softc *sc = device_private(self);
sys/dev/isa/rtfps.c
162
aprint_error_dev(self, "invalid irq\n");
sys/dev/isa/rtfps.c
172
aprint_error_dev(self,
sys/dev/isa/rtfps.c
178
aprint_error_dev(self, "can't map irq port at 0x%x\n",
sys/dev/isa/rtfps.c
192
sc->sc_slaves[i] = config_found(self, &ca, commultiprint,
sys/dev/isa/rtfps.c
76
rtfpsprobe(device_t parent, cfdata_t self, void *aux)
sys/dev/isa/sb_isa.c
159
sb_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/sb_isa.c
161
struct sbdsp_softc *sc = device_private(self);
sys/dev/isa/sb_isa.c
164
sc->sc_dev = self;
sys/dev/isa/sb_isa.c
166
if (!sbfind(parent, sc, 0, ia, device_cfdata(self)) ||
sys/dev/isa/sb_isa.c
169
aprint_error_dev(self, "sbfind failed\n");
sys/dev/isa/seagate.c
386
seaattach(device_t parent, device_t self, void *aux)
sys/dev/isa/seagate.c
389
struct sea_softc *sea = device_private(self);
sys/dev/isa/seagate.c
395
sea->sc_dev = self;
sys/dev/isa/seagate.c
474
config_found(self, &sea->sc_channel, scsiprint, CFARGS_NONE);
sys/dev/isa/sf16fmr2.c
165
sf2r_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/sf16fmr2.c
167
struct sf2r_softc *sc = device_private(self);
sys/dev/isa/sf16fmr2.c
194
radio_attach_mi(&sf2r_hw_if, sc, self);
sys/dev/isa/sf16fmr2.c
84
void sf2r_attach(device_t, device_t self, void *);
sys/dev/isa/slhci_isa.c
117
slhci_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/slhci_isa.c
119
struct slhci_isa_softc *isc = device_private(self);
sys/dev/isa/slhci_isa.c
125
sc->sc_dev = self;
sys/dev/isa/smsc.c
140
smsc_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/smsc.c
142
struct smsc_softc *sc = device_private(self);
sys/dev/isa/smsc.c
226
sc->sc_sme->sme_name = device_xname(self);
sys/dev/isa/smsc.c
251
aprint_normal_dev(self, "Hardware Monitor registers at 0x%04x\n",
sys/dev/isa/smsc.c
256
smsc_detach(device_t self, int flags)
sys/dev/isa/smsc.c
258
struct smsc_softc *sc = device_private(self);
sys/dev/isa/soekrisgpio.c
123
soekris_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/soekrisgpio.c
125
struct soekris_softc *sc = device_private(self);
sys/dev/isa/soekrisgpio.c
139
sc->sc_dev = self;
sys/dev/isa/soekrisgpio.c
185
soekris_detach(device_t self, int flags)
sys/dev/isa/soekrisgpio.c
187
struct soekris_softc *sc = device_private(self);
sys/dev/isa/spkr_pcppi.c
102
struct spkr_pcppi_softc *sc = device_private(self);
sys/dev/isa/spkr_pcppi.c
109
spkr_attach(self, spkr_pcppi_tone);
sys/dev/isa/spkr_pcppi.c
110
if (!pmf_device_register(self, NULL, NULL))
sys/dev/isa/spkr_pcppi.c
111
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/spkr_pcppi.c
115
spkr_pcppi_detach(device_t self, int flags)
sys/dev/isa/spkr_pcppi.c
117
struct spkr_pcppi_softc *sc = device_private(self);
sys/dev/isa/spkr_pcppi.c
120
if ((error = spkr_detach(self, flags)) != 0)
sys/dev/isa/spkr_pcppi.c
124
pmf_device_deregister(self);
sys/dev/isa/spkr_pcppi.c
129
spkr_pcppi_rescan(device_t self, const char *iattr, const int *locators)
sys/dev/isa/spkr_pcppi.c
132
return spkr_rescan(self, iattr, locators);
sys/dev/isa/spkr_pcppi.c
136
spkr_pcppi_childdet(device_t self, device_t child)
sys/dev/isa/spkr_pcppi.c
139
spkr_childdet(self, child);
sys/dev/isa/spkr_pcppi.c
83
spkr_pcppi_tone(device_t self, u_int xhz, u_int ticks)
sys/dev/isa/spkr_pcppi.c
86
device_printf(self, "%s: %u %u\n", __func__, xhz, ticks);
sys/dev/isa/spkr_pcppi.c
88
struct spkr_pcppi_softc *sc = device_private(self);
sys/dev/isa/spkr_pcppi.c
99
spkr_pcppi_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/tcic2_isa.c
216
tcic_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/tcic2_isa.c
218
struct tcic_softc *sc = device_private(self);
sys/dev/isa/tcic2_isa.c
226
sc->sc_dev = self;
sys/dev/isa/tcic2_isa.c
276
aprint_error_dev(self, "can't allocate interrupt\n");
sys/dev/isa/tcic2_isa.c
318
device_xname(self), (long) sc->iobase,
sys/dev/isa/tcic2_isa.c
326
"(config override)\n", device_xname(self),
sys/dev/isa/tcic2_isa.c
332
aprint_error_dev(self, "can't establish interrupt\n");
sys/dev/isa/tcom.c
114
tcomprobe(device_t parent, cfdata_t self, void *aux)
sys/dev/isa/tcom.c
183
tcomattach(device_t parent, device_t self, void *aux)
sys/dev/isa/tcom.c
185
struct tcom_softc *sc = device_private(self);
sys/dev/isa/tcom.c
194
sc->sc_dev = self;
sys/dev/isa/tcom.c
222
slave = config_found(self, &ca, commultiprint, CFARGS_NONE);
sys/dev/isa/tpm_isa.c
105
tpm_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/tpm_isa.c
107
struct tpm_softc *sc = device_private(self);
sys/dev/isa/tpm_isa.c
119
sc->sc_dev = self;
sys/dev/isa/tpm_isa.c
136
if (!pmf_device_register(self, tpm_suspend, tpm_resume))
sys/dev/isa/tpm_isa.c
137
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/tsdio.c
104
tsdio_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/tsdio.c
106
struct tsdio_softc *sc = device_private(self);
sys/dev/isa/tsdio.c
118
aprint_error_dev(self, "unable to map i/o space\n");
sys/dev/isa/tsdio.c
125
config_search(self, NULL,
sys/dev/isa/ug_isa.c
118
ug_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/ug_isa.c
120
struct ug_softc *sc = device_private(self);
sys/dev/isa/ug_isa.c
134
ug2_attach(self);
sys/dev/isa/ug_isa.c
141
aprint_error_dev(self, "reset failed.\n");
sys/dev/isa/ug_isa.c
159
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/isa/ug_isa.c
173
ug_isa_detach(device_t self, int flags)
sys/dev/isa/ug_isa.c
175
struct ug_softc *sc = device_private(self);
sys/dev/isa/uha_isa.c
135
uha_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/uha_isa.c
138
struct uha_softc *sc = device_private(self);
sys/dev/isa/uha_isa.c
146
sc->sc_dev = self;
sys/dev/isa/vga_isa.c
104
vga_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/vga_isa.c
106
struct vga_softc *sc = device_private(self);
sys/dev/isa/vga_isa.c
109
sc->sc_dev = self;
sys/dev/isa/wbsio.c
237
wbsio_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/wbsio.c
239
struct wbsio_softc *sc = device_private(self);
sys/dev/isa/wbsio.c
246
sc->sc_dev = self;
sys/dev/isa/wbsio.c
272
aprint_error_dev(self, "Unknown device. Failed to attach\n");
sys/dev/isa/wbsio.c
290
if (!pmf_device_register(self, wbsio_suspend, NULL))
sys/dev/isa/wbsio.c
291
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isa/wbsio.c
294
wbsio_rescan(self, "wbsio", NULL);
sys/dev/isa/wbsio.c
298
wbsio_rescan(self, "gpiobus", NULL);
sys/dev/isa/wbsio.c
303
wbsio_detach(device_t self, int flags)
sys/dev/isa/wbsio.c
305
struct wbsio_softc *sc = device_private(self);
sys/dev/isa/wbsio.c
308
if ((rc = wbsio_wdog_detach(self)) != 0)
sys/dev/isa/wbsio.c
311
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/isa/wbsio.c
314
pmf_device_deregister(self);
sys/dev/isa/wbsio.c
332
wbsio_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/isa/wbsio.c
337
config_search(self, NULL,
sys/dev/isa/wbsio.c
344
config_search(self, NULL,
sys/dev/isa/wbsio.c
349
wbsio_wdog_attach(self);
sys/dev/isa/wbsio.c
355
wbsio_childdet(device_t self, device_t child)
sys/dev/isa/wbsio.c
357
struct wbsio_softc *sc = device_private(self);
sys/dev/isa/wbsio.c
440
wbsio_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/isa/wbsio.c
442
struct wbsio_softc *sc = device_private(self);
sys/dev/isa/wbsio.c
807
wbsio_wdog_attach(device_t self)
sys/dev/isa/wbsio.c
809
struct wbsio_softc *sc = device_private(self);
sys/dev/isa/wbsio.c
857
sc->sc_smw.smw_name = device_xname(self);
sys/dev/isa/wbsio.c
864
aprint_error_dev(self, "couldn't register with sysmon\n");
sys/dev/isa/wbsio.c
870
wbsio_wdog_detach(device_t self)
sys/dev/isa/wbsio.c
872
struct wbsio_softc *sc = device_private(self);
sys/dev/isa/wdc_isa.c
141
wdc_isa_detach(device_t self, int flags)
sys/dev/isa/wdc_isa.c
143
struct wdc_isa_softc *sc = device_private(self);
sys/dev/isa/wdc_isa.c
147
if ((rc = wdcdetach(self, flags)) != 0)
sys/dev/isa/wdc_isa.c
159
wdc_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/wdc_isa.c
161
struct wdc_isa_softc *sc = device_private(self);
sys/dev/isa/wdc_isa.c
164
int wdc_cf_flags = device_cfdata(self)->cf_flags;
sys/dev/isa/wdc_isa.c
167
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/isa/wds.c
308
wdsattach(device_t parent, device_t self, void *aux)
sys/dev/isa/wds.c
311
struct wds_softc *sc = device_private(self);
sys/dev/isa/wds.c
318
sc->sc_dev = self;
sys/dev/isa/wss_isa.c
232
wss_isa_attach(device_t parent, device_t self, void *aux)
sys/dev/isa/wss_isa.c
238
sc = device_private(self);
sys/dev/isa/wss_isa.c
240
ac->sc_dev = self;
sys/dev/isa/wss_isa.c
242
if (!wssfind(parent, device_cfdata(self), sc, 0, ia)) {
sys/dev/isa/wss_isa.c
243
aprint_error_dev(self, "wssfind failed\n");
sys/dev/isa/wt.c
277
wtattach(device_t parent, device_t self, void *aux)
sys/dev/isa/wt.c
279
struct wt_softc *sc = device_private(self);
sys/dev/isa/wt.c
285
sc->sc_dev = self;
sys/dev/isa/wt.c
318
aprint_error_dev(self, "lost controller\n");
sys/dev/isa/ym.c
1122
ym_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/isa/ym.c
1124
struct ym_softc *sc = device_private(self);
sys/dev/isa/ym.c
1159
ym_resume(device_t self, const pmf_qual_t *qual)
sys/dev/isa/ym.c
1161
struct ym_softc *sc = device_private(self);
sys/dev/isapnp/aha_isapnp.c
100
aprint_error_dev(self,
sys/dev/isapnp/aha_isapnp.c
105
aprint_error_dev(self, "card drq # (%d) != PnP # (%d)\n",
sys/dev/isapnp/aha_isapnp.c
111
aprint_error_dev(self,
sys/dev/isapnp/aha_isapnp.c
118
aprint_error_dev(self, "card irq # (%d) != PnP # (%d)\n",
sys/dev/isapnp/aha_isapnp.c
128
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/isapnp/aha_isapnp.c
74
aha_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/aha_isapnp.c
76
struct aha_softc *sc = device_private(self);
sys/dev/isapnp/aha_isapnp.c
80
sc->sc_dev = self;
sys/dev/isapnp/aha_isapnp.c
85
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/aha_isapnp.c
94
aprint_error_dev(self, "aha_find failed\n");
sys/dev/isapnp/aic_isapnp.c
107
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/isapnp/aic_isapnp.c
78
aic_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/aic_isapnp.c
80
struct aic_isapnp_softc *isc = device_private(self);
sys/dev/isapnp/aic_isapnp.c
84
sc->sc_dev = self;
sys/dev/isapnp/aic_isapnp.c
89
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/aic_isapnp.c
97
aprint_error_dev(self, "couldn't find device\n");
sys/dev/isapnp/atppc_isapnp.c
110
sc->sc_dev = self;
sys/dev/isapnp/atppc_isapnp.c
94
atppc_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/atppc_isapnp.c
96
struct atppc_softc *sc = device_private(self);
sys/dev/isapnp/atppc_isapnp.c
97
struct atppc_isapnp_softc *asc = device_private(self);
sys/dev/isapnp/com_isapnp.c
81
com_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/com_isapnp.c
83
struct com_isapnp_softc *isc = device_private(self);
sys/dev/isapnp/com_isapnp.c
87
sc->sc_dev = self;
sys/dev/isapnp/com_isapnp.c
90
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/ess_isapnp.c
106
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/ess_isapnp.c
123
aprint_error_dev(self, "essmatch failed\n");
sys/dev/isapnp/ess_isapnp.c
127
aprint_normal_dev(self, "");
sys/dev/isapnp/ess_isapnp.c
93
ess_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/ess_isapnp.c
98
sc = device_private(self);
sys/dev/isapnp/ess_isapnp.c
99
sc->sc_dev = self;
sys/dev/isapnp/gus_isapnp.c
121
gus_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/gus_isapnp.c
126
sc = device_private(self);
sys/dev/isapnp/gus_isapnp.c
136
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/gus_isapnp.c
140
sc->sc_dev = self;
sys/dev/isapnp/gus_isapnp.c
167
aprint_error_dev(self, "can't reserve drq %d\n",
sys/dev/isapnp/gus_isapnp.c
173
aprint_error_dev(self, "can't create map for drq %d\n",
sys/dev/isapnp/gus_isapnp.c
182
aprint_error_dev(self, "can't reserve drq %d\n",
sys/dev/isapnp/gus_isapnp.c
188
aprint_error_dev(self, "can't create map for drq %d\n",
sys/dev/isapnp/gus_isapnp.c
201
aprint_normal_dev(self, "%s %s", ipa->ipa_devident, ipa->ipa_devclass);
sys/dev/isapnp/i82365_isapnp.c
105
pcic_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/i82365_isapnp.c
107
struct pcic_isa_softc *isc = device_private(self);
sys/dev/isapnp/i82365_isapnp.c
119
sc->dev = self;
sys/dev/isapnp/i82365_isapnp.c
125
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/i82365_isapnp.c
129
aprint_normal_dev(self, "%s %s", ipa->ipa_devident, ipa->ipa_devclass);
sys/dev/isapnp/i82365_isapnp.c
133
aprint_error_dev(self,
sys/dev/isapnp/i82365_isapnp.c
186
config_interrupts(self, pcic_isa_config_interrupts);
sys/dev/isapnp/if_an_isapnp.c
105
aprint_error_dev(self, "can't configure isapnp resources\n");
sys/dev/isapnp/if_an_isapnp.c
109
sc->sc_dev = self;
sys/dev/isapnp/if_an_isapnp.c
113
printf("%s: %s %s\n", device_xname(self), ipa->ipa_devident,
sys/dev/isapnp/if_an_isapnp.c
123
aprint_error_dev(self,
sys/dev/isapnp/if_an_isapnp.c
129
aprint_error_dev(self, "failed to attach controller\n");
sys/dev/isapnp/if_an_isapnp.c
96
an_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/if_an_isapnp.c
98
struct an_isapnp_softc *isc = device_private(self);
sys/dev/isapnp/if_cs_isapnp.c
101
aprint_error_dev(self, "unexpected io size\n");
sys/dev/isapnp/if_cs_isapnp.c
106
aprint_error_dev(self, "unable to allocate resources\n");
sys/dev/isapnp/if_cs_isapnp.c
110
aprint_normal_dev(self, "%s %s\n", ipa->ipa_devident,
sys/dev/isapnp/if_cs_isapnp.c
134
aprint_verbose_dev(self, "unexpected id(%u)\n",
sys/dev/isapnp/if_cs_isapnp.c
138
aprint_verbose_dev(self,"correct id(%u) from mem=%u\n",
sys/dev/isapnp/if_cs_isapnp.c
146
aprint_normal_dev(self, "memory mode\n");
sys/dev/isapnp/if_cs_isapnp.c
155
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/isapnp/if_cs_isapnp.c
160
aprint_error_dev(self, "unable to attach\n");
sys/dev/isapnp/if_cs_isapnp.c
78
cs_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/if_cs_isapnp.c
84
struct cs_softc *sc = device_private(self);
sys/dev/isapnp/if_cs_isapnp.c
91
sc->sc_dev = self;
sys/dev/isapnp/if_cs_isapnp.c
96
aprint_error_dev(self, "unexpected resource requirements\n");
sys/dev/isapnp/if_ep_isapnp.c
84
ep_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/if_ep_isapnp.c
86
struct ep_softc *sc = device_private(self);
sys/dev/isapnp/if_ep_isapnp.c
93
sc->sc_dev = self;
sys/dev/isapnp/if_fmv_isapnp.c
83
fmv_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/if_fmv_isapnp.c
85
struct fmv_isapnp_softc *isc = device_private(self);
sys/dev/isapnp/if_fmv_isapnp.c
89
sc->sc_dev = self;
sys/dev/isapnp/if_le_isapnp.c
167
le_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/if_le_isapnp.c
169
struct le_isapnp_softc *lesc = device_private(self);
sys/dev/isapnp/if_le_isapnp.c
178
sc->sc_dev = self;
sys/dev/isapnp/if_le_isapnp.c
254
aprint_normal("%s", device_xname(self));
sys/dev/isapnp/if_ne_isapnp.c
106
dsc->sc_dev = self;
sys/dev/isapnp/if_ne_isapnp.c
109
aprint_error_dev(self, "can't configure isapnp resources\n");
sys/dev/isapnp/if_ne_isapnp.c
120
aprint_error_dev(self, "can't subregion i/o space\n");
sys/dev/isapnp/if_ne_isapnp.c
149
aprint_error_dev(self, "where did the card go?!\n");
sys/dev/isapnp/if_ne_isapnp.c
153
aprint_normal_dev(self, "%s Ethernet\n", typestr);
sys/dev/isapnp/if_ne_isapnp.c
168
aprint_error_dev(self,
sys/dev/isapnp/if_ne_isapnp.c
91
ne_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/if_ne_isapnp.c
93
struct ne_isapnp_softc * const isc = device_private(self);
sys/dev/isapnp/isapnp.c
895
isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/isapnp.c
897
struct isapnp_softc *sc = device_private(self);
sys/dev/isapnp/isapnp.c
900
sc->sc_dev = self;
sys/dev/isapnp/isapnp.c
911
aprint_error_dev(self, "unable to map PnP register\n");
sys/dev/isapnp/isapnp.c
920
config_defer(self, isapnp_callback);
sys/dev/isapnp/isapnp.c
922
isapnp_callback(self);
sys/dev/isapnp/isapnp.c
925
if (!pmf_device_register(self, NULL, NULL))
sys/dev/isapnp/isapnp.c
926
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/isapnp/isapnp.c
933
isapnp_callback(device_t self)
sys/dev/isapnp/isapnp.c
935
struct isapnp_softc *sc = device_private(self);
sys/dev/isapnp/isapnp.c
995
if (config_found(self, lpa, isapnp_print,
sys/dev/isapnp/joy_isapnp.c
102
aprint_normal_dev(self, "%s %s\n", ipa->ipa_devident,
sys/dev/isapnp/joy_isapnp.c
72
joy_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/joy_isapnp.c
74
struct joy_isapnp_softc *isc = device_private(self);
sys/dev/isapnp/joy_isapnp.c
82
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/joy_isapnp.c
89
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/joy_isapnp.c
99
sc->sc_dev = self;
sys/dev/isapnp/mpu_isapnp.c
55
mpu_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/mpu_isapnp.c
57
struct mpu_isapnp_softc *sc = device_private(self);
sys/dev/isapnp/mpu_isapnp.c
63
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/mpu_isapnp.c
76
aprint_error_dev(self, "find failed\n");
sys/dev/isapnp/mpu_isapnp.c
84
aprint_normal_dev(self, "%s %s\n", ipa->ipa_devident,
sys/dev/isapnp/mpu_isapnp.c
89
midi_attach_mi(&mpu_midi_hw_if, &sc->sc_mpu, self);
sys/dev/isapnp/sb_isapnp.c
100
sc->sc_dev = self;
sys/dev/isapnp/sb_isapnp.c
112
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/sb_isapnp.c
156
if (!sbmatch(sc, 0, device_cfdata(self))) {
sys/dev/isapnp/sb_isapnp.c
157
aprint_error_dev(self, "sbmatch failed\n");
sys/dev/isapnp/sb_isapnp.c
167
aprint_normal_dev(self, "%s %s", ipa->ipa_devident, ipa->ipa_devclass);
sys/dev/isapnp/sb_isapnp.c
94
sb_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/sb_isapnp.c
99
sc = device_private(self);
sys/dev/isapnp/wdc_isapnp.c
110
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/isapnp/wdc_isapnp.c
87
wdc_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/wdc_isapnp.c
89
struct wdc_isapnp_softc *sc = device_private(self);
sys/dev/isapnp/wss_isapnp.c
101
aprint_error_dev(self, "match failed?\n");
sys/dev/isapnp/wss_isapnp.c
106
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/wss_isapnp.c
157
aprint_error_dev(self, "ad1848_probe failed\n");
sys/dev/isapnp/wss_isapnp.c
161
aprint_error_dev(self, "%s %s", ipa->ipa_devident,
sys/dev/isapnp/wss_isapnp.c
177
config_found(self, &arg, audioprint, CFARGS(.iattr = "wss"));
sys/dev/isapnp/wss_isapnp.c
87
wss_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/wss_isapnp.c
94
sc = device_private(self);
sys/dev/isapnp/wss_isapnp.c
96
ac->sc_dev = self;
sys/dev/isapnp/ym_isapnp.c
103
ym_isapnp_attach(device_t parent, device_t self, void *aux)
sys/dev/isapnp/ym_isapnp.c
109
sc = device_private(self);
sys/dev/isapnp/ym_isapnp.c
111
ac->sc_dev = self;
sys/dev/isapnp/ym_isapnp.c
116
aprint_error_dev(self, "error in region allocation\n");
sys/dev/isapnp/ym_isapnp.c
138
aprint_error_dev(self, "bus_space_subregion failed\n");
sys/dev/isapnp/ym_isapnp.c
146
printf("%s: %s %s", device_xname(self), ipa->ipa_devident,
sys/dev/iscsi/iscsi_main.c
197
iscsi_match(device_t self, cfdata_t cfdata, void *arg)
sys/dev/iscsi/iscsi_main.c
239
iscsi_attach(device_t parent, device_t self, void *aux)
sys/dev/iscsi/iscsi_main.c
244
self, aux));
sys/dev/iscsi/iscsi_main.c
245
sc = (struct iscsi_softc *) device_private(self);
sys/dev/iscsi/iscsi_main.c
246
sc->dev = self;
sys/dev/iscsi/iscsi_main.c
254
if (!pmf_device_register(self, NULL, NULL))
sys/dev/iscsi/iscsi_main.c
255
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/iscsi/iscsi_main.c
266
iscsi_detach(device_t self, int flags)
sys/dev/iscsi/iscsi_main.c
272
sc = (struct iscsi_softc *) device_private(self);
sys/dev/iscsi/iscsi_main.c
71
static void iscsi_attach(device_t parent, device_t self, void *aux);
sys/dev/ld.c
129
device_t self = sc->sc_dv;
sys/dev/ld.c
146
dk_init(dksc, self, DKTYPE_LD);
sys/dev/ld.c
363
ld_lastclose(device_t self)
sys/dev/ld.c
365
ld_flush(self, false);
sys/dev/ld.c
453
ld_flush(device_t self, bool poll)
sys/dev/ld.c
456
struct ld_softc *sc = device_private(self);
sys/dev/ld.c
465
device_printf(self, "unable to flush cache\n");
sys/dev/marvell/com_mv.c
102
prop_dictionary_t dict = device_properties(self);
sys/dev/marvell/com_mv.c
104
sc->sc_dev = self;
sys/dev/marvell/com_mv.c
96
mvuart_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/com_mv.c
98
struct com_softc *sc = device_private(self);
sys/dev/marvell/ehci_mv.c
197
mvusb_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/ehci_mv.c
199
struct mvusb_softc *sc = device_private(self);
sys/dev/marvell/ehci_mv.c
205
sc->sc.sc_dev = self;
sys/dev/marvell/ehci_mv.c
215
aprint_error_dev(self, "can't map registers\n");
sys/dev/marvell/ehci_mv.c
224
aprint_error_dev(self, "can't subregion registers\n");
sys/dev/marvell/ehci_mv.c
232
DPRINTF(("%s: offs=%d\n", device_xname(self), sc->sc.sc_offs));
sys/dev/marvell/ehci_mv.c
244
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/dev/marvell/ehci_mv.c
249
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/dev/marvell/gtidmac.c
369
gtidmac_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/gtidmac.c
371
struct gtidmac_softc *sc = device_private(self);
sys/dev/marvell/gtidmac.c
373
prop_dictionary_t dict = device_properties(self);
sys/dev/marvell/gtidmac.c
416
aprint_normal_dev(self,
sys/dev/marvell/gtidmac.c
420
aprint_normal_dev(self, "XOR Engine %d channels", xore_nchan);
sys/dev/marvell/gtidmac.c
432
sc->sc_dev = self;
sys/dev/marvell/gtidmac.c
438
aprint_error_dev(self, "can't map registers\n");
sys/dev/marvell/gtidmac.c
453
aprint_error_dev(self,
sys/dev/marvell/gtidmac.c
459
aprint_error_dev(self,
sys/dev/marvell/gtidmac.c
468
aprint_error_dev(self, "no dmb_speed property\n");
sys/dev/marvell/gtidmac.c
494
sc->sc_dmb.dmb_name = device_xname(self);
sys/dev/marvell/gtmpsc.c
231
gtmpscattach(device_t parent, device_t self, void *aux)
sys/dev/marvell/gtmpsc.c
233
struct gtmpsc_softc *sc = device_private(self);
sys/dev/marvell/gtmpsc.c
251
gtmpsc_cn_softc.sc_dev = self;
sys/dev/marvell/gtmpsc.c
259
aprint_error_dev(self, "Cannot map MPSC registers\n");
sys/dev/marvell/gtmpsc.c
264
aprint_error_dev(self, "Cannot map SDMA registers\n");
sys/dev/marvell/gtmpsc.c
267
sc->sc_dev = self;
sys/dev/marvell/gtmpsc.c
325
aprint_normal_dev(self, "with SDMA offset 0x%04x-0x%04x\n",
sys/dev/marvell/gtmpsc.c
371
aprint_normal_dev(self, "console\n");
sys/dev/marvell/gtmpsc.c
382
aprint_error_dev(self,
sys/dev/marvell/gtmpsc.c
389
aprint_normal_dev(self, "kgdb\n");
sys/dev/marvell/gtpci.c
112
gtpci_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/gtpci.c
114
struct gtpci_softc *sc = device_private(self);
sys/dev/marvell/gtpci.c
117
prop_dictionary_t dict = device_properties(self);
sys/dev/marvell/gtpci.c
137
aprint_verbose_dev(self, "no protection property\n");
sys/dev/marvell/gtpci.c
146
aprint_error_dev(self, "no io-bus-tag property\n");
sys/dev/marvell/gtpci.c
154
aprint_error_dev(self, "no mem-bus-tag property\n");
sys/dev/marvell/gtpci.c
159
aprint_error_dev(self, "no pci-chipset property\n");
sys/dev/marvell/gtpci.c
166
aprint_error_dev(self, "no iostart property\n");
sys/dev/marvell/gtpci.c
170
aprint_error_dev(self, "no ioend property\n");
sys/dev/marvell/gtpci.c
174
aprint_error_dev(self, "no memstart property\n");
sys/dev/marvell/gtpci.c
178
aprint_error_dev(self, "no memend property\n");
sys/dev/marvell/gtpci.c
182
aprint_error_dev(self, "no cache-line-size property\n");
sys/dev/marvell/gtpci.c
188
sc->sc_dev = self;
sys/dev/marvell/gtpci.c
196
aprint_error_dev(self, "can't map registers\n");
sys/dev/marvell/gtpci.c
206
aprint_error_dev(self, "int2gpp not an array\n");
sys/dev/marvell/gtpci.c
209
aprint_normal_dev(self, "use interrupt pin:");
sys/dev/marvell/gtpci.c
216
aprint_error_dev(self,
sys/dev/marvell/gtpci.c
504
gtpci_attach_hook(device_t parent, device_t self,
sys/dev/marvell/gttwsi.c
126
gttwsi_attach(device_t parent, device_t self, void *args)
sys/dev/marvell/gttwsi.c
137
gttwsi_attach_subr(self, mva->mva_iot, ioh, marvell_twsi_regmap);
sys/dev/marvell/gttwsi.c
140
device_private(self));
sys/dev/marvell/gttwsi.c
142
gttwsi_config_children(self);
sys/dev/marvell/if_gfe.c
224
gfec_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/if_gfe.c
226
struct gfec_softc *sc = device_private(self);
sys/dev/marvell/if_gfe.c
234
sc->sc_dev = self;
sys/dev/marvell/if_gfe.c
238
aprint_error_dev(self, "Cannot map registers\n");
sys/dev/marvell/if_gfe.c
403
gfe_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/if_gfe.c
406
struct gfe_softc * const sc = device_private(self);
sys/dev/marvell/if_gfe.c
418
aprint_error_dev(self, "failed to map registers\n");
sys/dev/marvell/if_gfe.c
421
sc->sc_dev = self;
sys/dev/marvell/if_gfe.c
432
aprint_error_dev(self, "unable to get mac-address\n");
sys/dev/marvell/if_gfe.c
440
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(enaddr));
sys/dev/marvell/if_gfe.c
447
if (device_cfdata(self)->cf_flags & 1) {
sys/dev/marvell/if_gfe.c
448
aprint_normal_dev(self, "phy %d (rmii)\n", phyaddr);
sys/dev/marvell/if_gfe.c
451
aprint_normal_dev(self, "phy %d (mii)\n", phyaddr);
sys/dev/marvell/if_gfe.c
454
if (device_cfdata(self)->cf_flags & 2)
sys/dev/marvell/if_gfe.c
470
aprint_error_dev(self, "Abort TX/RX failed\n");
sys/dev/marvell/if_gfe.c
533
aprint_error_dev(self,
sys/dev/marvell/if_gfe.c
540
rnd_attach_source(&sc->sc_rnd_source, device_xname(self), RND_TYPE_NET,
sys/dev/marvell/if_mvgbe.c
422
mvgbec_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/if_mvgbe.c
424
struct mvgbec_softc *csc = device_private(self);
sys/dev/marvell/if_mvgbe.c
435
csc->sc_dev = self;
sys/dev/marvell/if_mvgbe.c
439
aprint_error_dev(self, "Cannot map registers\n");
sys/dev/marvell/if_mvgbe.c
444
mvgbec0 = self;
sys/dev/marvell/if_mvgbe.c
704
mvgbe_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/if_mvgbe.c
707
struct mvgbe_softc *sc = device_private(self);
sys/dev/marvell/if_mvgbe.c
722
sc->sc_dev = self;
sys/dev/marvell/if_mvgbe.c
730
aprint_error_dev(self, "Cannot map registers\n");
sys/dev/marvell/if_mvgbe.c
736
aprint_error_dev(self,
sys/dev/marvell/if_mvgbe.c
745
aprint_normal_dev(self, "Port Version 0x%x\n", sc->sc_version);
sys/dev/marvell/if_mvgbe.c
755
aprint_error_dev(self, "Cannot map linkup register\n");
sys/dev/marvell/if_mvgbe.c
763
aprint_error_dev(self, "Cannot map linkup register\n");
sys/dev/marvell/if_mvgbe.c
788
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/marvell/if_mvgbe.c
800
aprint_error_dev(self, "can't alloc rx buffers\n");
sys/dev/marvell/if_mvgbe.c
805
aprint_error_dev(self, "can't map dma buffers (%lu bytes)\n",
sys/dev/marvell/if_mvgbe.c
812
aprint_error_dev(self, "can't create dma map\n");
sys/dev/marvell/if_mvgbe.c
817
aprint_error_dev(self, "can't load dma map\n");
sys/dev/marvell/if_mvgbe.c
830
aprint_error_dev(self, "Can't create TX dmamap\n");
sys/dev/marvell/if_mvgbe.c
851
aprint_error_dev(self, "jumbo buffer allocation failed\n");
sys/dev/marvell/if_mvgbe.c
890
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/dev/marvell/if_mvgbe.c
893
aprint_error_dev(self, "no PHY found!\n");
sys/dev/marvell/if_mvxpe.c
286
mvxpe_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/if_mvxpe.c
288
struct mvxpe_softc *sc = device_private(self);
sys/dev/marvell/if_mvxpe.c
300
sc->sc_dev = self;
sys/dev/marvell/if_mvxpe.c
313
aprint_error_dev(self, "Cannot map registers\n");
sys/dev/marvell/if_mvxpe.c
319
aprint_error_dev(self,
sys/dev/marvell/if_mvxpe.c
324
aprint_normal_dev(self, "Port Version %#x\n", sc->sc_version);
sys/dev/marvell/if_mvxpe.c
331
aprint_error_dev(self, "no Buffer Manager.\n");
sys/dev/marvell/if_mvxpe.c
334
aprint_normal_dev(self,
sys/dev/marvell/if_mvxpe.c
355
if (ether_getaddr(self, enaddr)) {
sys/dev/marvell/if_mvxpe.c
373
aprint_error_dev(self, "No Ethernet address\n");
sys/dev/marvell/if_mvxpe.c
383
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/marvell/if_mvxpe.c
479
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, device_unit(sc->sc_dev),
sys/dev/marvell/if_mvxpe.c
483
aprint_error_dev(self, "no PHY found!\n");
sys/dev/marvell/mvcesa.c
118
mvcesa_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/mvcesa.c
120
struct mvcesa_softc *sc = device_private(self);
sys/dev/marvell/mvcesa.c
127
sc->sc_dev = self;
sys/dev/marvell/mvcesa.c
132
aprint_error_dev(self, "can't map registers\n");
sys/dev/marvell/mvcesa.c
142
aprint_error_dev(self, "couldn't get crypto driver id\n");
sys/dev/marvell/mvpex.c
103
mvpex_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/mvpex.c
105
struct mvpex_softc *sc = device_private(self);
sys/dev/marvell/mvpex.c
108
prop_dictionary_t dict = device_properties(self);
sys/dev/marvell/mvpex.c
123
aprint_error_dev(self, "no io-bus-tag property\n");
sys/dev/marvell/mvpex.c
130
aprint_error_dev(self, "no mem-bus-tag property\n");
sys/dev/marvell/mvpex.c
137
aprint_error_dev(self, "no pci-chipset property\n");
sys/dev/marvell/mvpex.c
144
aprint_error_dev(self, "no iostart property\n");
sys/dev/marvell/mvpex.c
148
aprint_error_dev(self, "no ioend property\n");
sys/dev/marvell/mvpex.c
152
aprint_error_dev(self, "no memstart property\n");
sys/dev/marvell/mvpex.c
156
aprint_error_dev(self, "no memend property\n");
sys/dev/marvell/mvpex.c
160
aprint_error_dev(self, "no cache-line-size property\n");
sys/dev/marvell/mvpex.c
166
sc->sc_dev = self;
sys/dev/marvell/mvpex.c
175
aprint_error_dev(self, "can't map registers\n");
sys/dev/marvell/mvpex.c
447
mvpex_attach_hook(device_t parent, device_t self,
sys/dev/marvell/mvsata_mv.c
142
mvsatahc_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/mvsata_mv.c
144
struct mvsata_softc *sc = device_private(self);
sys/dev/marvell/mvsata_mv.c
152
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/marvell/mvsata_mv.c
157
aprint_error_dev(self, "can't map registers\n");
sys/dev/marvell/mvsdio.c
154
mvsdio_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/mvsdio.c
156
struct mvsdio_softc *sc = device_private(self);
sys/dev/marvell/mvsdio.c
165
sc->sc_dev = self;
sys/dev/marvell/mvsdio.c
169
aprint_error_dev(self, "Cannot map registers\n");
sys/dev/marvell/mvspi.c
103
mvspi_attach(struct device *parent, struct device *self, void *aux)
sys/dev/marvell/mvspi.c
105
struct mvspi_softc *sc = device_private(self);
sys/dev/marvell/mvspi.c
119
aprint_error_dev(self, "Cannot map registers\n");
sys/dev/marvell/mvspi.c
149
spibus_attach(self, &sc->sc_spi);
sys/dev/marvell/mvxpbm.c
126
mvxpbm_attach(device_t parnet, device_t self, void *aux)
sys/dev/marvell/mvxpbm.c
129
struct mvxpbm_softc *sc = device_private(self);
sys/dev/marvell/mvxpbm.c
134
sc->sc_dev = self;
sys/dev/marvell/mvxpsec.c
341
mvxpsec_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/mvxpsec.c
344
struct mvxpsec_softc *sc = device_private(self);
sys/dev/marvell/mvxpsec.c
348
sc->sc_dev = self;
sys/dev/marvell/mvxpsec.c
385
aprint_error_dev(self, "Cannot map registers\n");
sys/dev/marvell/mvxpsec.c
409
aprint_normal_dev(self,
sys/dev/marvell/obio.c
101
obio_attach(device_t parent, device_t self, void *aux)
sys/dev/marvell/obio.c
103
struct obio_softc *sc = device_private(self);
sys/dev/marvell/obio.c
111
sc->sc_dev = self;
sys/dev/marvell/obio.c
114
aprint_error_dev(self, "unknown unit number %d\n",
sys/dev/marvell/obio.c
120
aprint_normal_dev(self, "disabled\n");
sys/dev/marvell/obio.c
133
aprint_normal_dev(self, "unused\n");
sys/dev/marvell/obio.c
137
aprint_normal_dev(self, "addr %#x-%#x\n",
sys/dev/marvell/obio.c
140
config_search(self, NULL,
sys/dev/marvell/pchb.c
74
pchb_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/aha_mca.c
102
struct aha_softc *sc = device_private(self);
sys/dev/mca/aha_mca.c
109
sc->sc_dev =self;
sys/dev/mca/aha_mca.c
155
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/mca/aha_mca.c
170
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/mca/aha_mca.c
99
aha_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/com_mca.c
148
com_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/com_mca.c
150
struct com_mca_softc *isc = device_private(self);
sys/dev/mca/com_mca.c
157
sc->sc_dev = self;
sys/dev/mca/com_mca.c
177
aprint_normal_dev(self, "%s\n", cpp->cp_name);
sys/dev/mca/com_mca.c
182
aprint_error_dev(self,
sys/dev/mca/com_mca.c
192
if (!pmf_device_register1(self, com_suspend, com_resume, com_cleanup))
sys/dev/mca/com_mca.c
193
aprint_error_dev(self, "could not establish shutdown hook\n");
sys/dev/mca/ed_mca.c
151
ed_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/ed_mca.c
153
struct ed_softc *ed = device_private(self);
sys/dev/mca/ed_mca.c
159
ed->sc_dev = self;
sys/dev/mca/edc_mca.c
142
edc_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/edc_mca.c
144
struct edc_mca_softc *sc = device_private(self);
sys/dev/mca/edc_mca.c
153
sc->sc_dev = self;
sys/dev/mca/edc_mca.c
218
aprint_normal_dev(self, "Fairness %s, Release %s, ",
sys/dev/mca/edc_mca.c
273
aprint_normal_dev(self, "controller busy, "
sys/dev/mca/edc_mca.c
303
config_found(self, &eda, NULL,
sys/dev/mca/edc_mca.c
335
config_pending_incr(self);
sys/dev/mca/esp_mca.c
135
esp_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/esp_mca.c
137
struct esp_softc *esc = device_private(self);
sys/dev/mca/esp_mca.c
149
sc->sc_dev = self;
sys/dev/mca/esp_mca.c
255
aprint_normal("%s", device_xname(self));
sys/dev/mca/if_ate_mca.c
121
ate_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/if_ate_mca.c
123
struct ate_softc *isc = device_private(self);
sys/dev/mca/if_ate_mca.c
133
sc->sc_dev = self;
sys/dev/mca/if_elmc_mca.c
102
elmc_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/if_elmc_mca.c
104
struct elmc_mca_softc *asc = device_private(self);
sys/dev/mca/if_elmc_mca.c
147
sc->sc_dev = self;
sys/dev/mca/if_elmc_mca.c
155
aprint_error_dev(self, "unable to map i/o space\n");
sys/dev/mca/if_elmc_mca.c
165
aprint_error_dev(self, "unable to map memory space\n");
sys/dev/mca/if_elmc_mca.c
167
aprint_error_dev(self,
sys/dev/mca/if_elmc_mca.c
238
aprint_error_dev(self, "can't talk to i82586!\n");
sys/dev/mca/if_elmc_mca.c
252
device_xname(self), revision,
sys/dev/mca/if_elmc_mca.c
264
printf("%s:", device_xname(self));
sys/dev/mca/if_elmc_mca.c
271
aprint_error_dev(self,
sys/dev/mca/if_ep_mca.c
148
ep_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/if_ep_mca.c
150
struct ep_softc *sc = device_private(self);
sys/dev/mca/if_ep_mca.c
188
sc->sc_dev = self;
sys/dev/mca/if_le_mca.c
129
le_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/if_le_mca.c
131
struct le_mca_softc *lesc = device_private(self);
sys/dev/mca/if_le_mca.c
138
sc->sc_dev = self;
sys/dev/mca/if_le_mca.c
263
aprint_error_dev(self,
sys/dev/mca/if_le_mca.c
268
aprint_normal("%s", device_xname(self));
sys/dev/mca/if_ne_mca.c
129
ne_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/if_ne_mca.c
131
struct ne_mca_softc *psc = device_private(self);
sys/dev/mca/if_ne_mca.c
142
dsc->sc_dev = self;
sys/dev/mca/if_ne_mca.c
171
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/mca/if_ne_mca.c
178
aprint_error_dev(self, "can't subregion i/o space\n");
sys/dev/mca/if_ne_mca.c
213
aprint_error_dev(self,
sys/dev/mca/if_tra_mca.c
122
tiara_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/if_tra_mca.c
124
struct tiara_softc *isc = device_private(self);
sys/dev/mca/if_tra_mca.c
188
aprint_error_dev(self, "unsupported irq selected\n");
sys/dev/mca/if_tra_mca.c
206
aprint_error_dev(self, "where did the card go?\n");
sys/dev/mca/if_tra_mca.c
216
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/mca/if_tra_mca.c
220
sc->sc_dev = self;
sys/dev/mca/if_tra_mca.c
244
aprint_error_dev(self,
sys/dev/mca/if_we_mca.c
149
we_mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/if_we_mca.c
151
struct we_softc *wsc = device_private(self);
sys/dev/mca/if_we_mca.c
161
sc->sc_dev = self;
sys/dev/mca/if_we_mca.c
217
device_xname(self));
sys/dev/mca/if_we_mca.c
248
aprint_error_dev(self, "can't map nic i/o space\n");
sys/dev/mca/if_we_mca.c
254
aprint_error_dev(self, "can't subregion i/o space\n");
sys/dev/mca/if_we_mca.c
268
aprint_error_dev(self, "can't map shared memory %#x-%#x\n",
sys/dev/mca/if_we_mca.c
289
if (we_config(self, wsc, typestr))
sys/dev/mca/if_we_mca.c
296
aprint_error_dev(self, "can't establish interrupt\n");
sys/dev/mca/mca.c
108
mca_attach(device_t parent, device_t self, void *aux)
sys/dev/mca/mca.c
116
mca_attach_hook(parent, self, mba);
sys/dev/mca/mca.c
156
config_found(self, &ma, mca_print,
sys/dev/mca/mca.c
160
mca_print(&ma, device_xname(self));
sys/dev/md.c
162
md_attach(device_t parent, device_t self, void *aux)
sys/dev/md.c
164
struct md_softc *sc = device_private(self);
sys/dev/md.c
166
sc->sc_dev = self;
sys/dev/md.c
179
md_attach_hook(device_unit(self), &sc->sc_md);
sys/dev/md.c
185
disk_init(&sc->sc_dkdev, device_xname(self), &mddkdriver);
sys/dev/md.c
191
if (!pmf_device_register(self, NULL, NULL))
sys/dev/md.c
192
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/md.c
196
md_detach(device_t self, int flags)
sys/dev/md.c
198
struct md_softc *sc = device_private(self);
sys/dev/md.c
212
pmf_device_deregister(self);
sys/dev/midi.c
150
midiattach(device_t parent, device_t self, void *aux)
sys/dev/midi.c
152
struct midi_softc *sc = device_private(self);
sys/dev/midi.c
170
aprint_error_dev(self, "missing method\n");
sys/dev/midi.c
175
sc->dev = self;
sys/dev/midi.c
182
midiactivate(device_t self, enum devact act)
sys/dev/midi.c
184
struct midi_softc *sc = device_private(self);
sys/dev/midi.c
198
mididetach(device_t self, int flags)
sys/dev/midi.c
200
struct midi_softc *sc = device_private(self);
sys/dev/midi.c
205
pmf_device_deregister(self);
sys/dev/midi.c
215
aprint_error_dev(self, "refcnt failed to drain,"
sys/dev/midi.c
232
mn = device_unit(self);
sys/dev/mii/acphy.c
107
sc->mii_dev = self;
sys/dev/mii/acphy.c
96
acphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/acphy.c
98
struct mii_softc *sc = device_private(self);
sys/dev/mii/amhphy.c
102
sc->mii_dev = self;
sys/dev/mii/amhphy.c
91
amhphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/amhphy.c
93
struct mii_softc *sc = device_private(self);
sys/dev/mii/atphy.c
168
atphy_attach(device_t parent, device_t self, void *aux)
sys/dev/mii/atphy.c
170
struct atphy_softc *asc = device_private(self);
sys/dev/mii/atphy.c
171
prop_dictionary_t prop = device_properties(self);
sys/dev/mii/atphy.c
182
sc->mii_dev = self;
sys/dev/mii/bmtphy.c
119
bmtphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/bmtphy.c
121
struct mii_softc *sc = device_private(self);
sys/dev/mii/bmtphy.c
130
sc->mii_dev = self;
sys/dev/mii/brgphy.c
198
brgphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/brgphy.c
200
struct brgphy_softc *bsc = device_private(self);
sys/dev/mii/brgphy.c
211
sc->mii_dev = self;
sys/dev/mii/brgphy.c
229
aprint_error_dev(self, "failed to get phyflags\n");
sys/dev/mii/brgphy.c
232
aprint_error_dev(self, "failed to get chipid\n");
sys/dev/mii/brgphy.c
239
aprint_error_dev(self, "failed to get shared_hwcfg\n");
sys/dev/mii/brgphy.c
242
aprint_error_dev(self, "failed to get port_hwcfg\n");
sys/dev/mii/brgphy.c
300
aprint_normal_dev(self, "2500baseSX-FDX\n");
sys/dev/mii/ciphy.c
103
ciphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/ciphy.c
105
struct mii_softc *sc = device_private(self);
sys/dev/mii/ciphy.c
114
sc->mii_dev = self;
sys/dev/mii/dmphy.c
117
dmphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/dmphy.c
119
struct mii_softc *sc = device_private(self);
sys/dev/mii/dmphy.c
128
sc->mii_dev = self;
sys/dev/mii/etphy.c
149
etphy_attach(device_t parent, device_t self, void *aux)
sys/dev/mii/etphy.c
151
struct mii_softc *sc = device_private(self);
sys/dev/mii/etphy.c
159
sc->mii_dev = self;
sys/dev/mii/exphy.c
112
exphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/exphy.c
114
struct mii_softc *sc = device_private(self);
sys/dev/mii/exphy.c
121
sc->mii_dev = self;
sys/dev/mii/exphy.c
133
aprint_error_dev(self,
sys/dev/mii/gentbi.c
136
gentbiattach(device_t parent, device_t self, void *aux)
sys/dev/mii/gentbi.c
138
struct mii_softc *sc = device_private(self);
sys/dev/mii/gentbi.c
156
sc->mii_dev = self;
sys/dev/mii/glxtphy.c
111
glxtphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/glxtphy.c
113
struct mii_softc *sc = device_private(self);
sys/dev/mii/glxtphy.c
122
sc->mii_dev = self;
sys/dev/mii/gphyter.c
120
gphyterattach(device_t parent, device_t self, void *aux)
sys/dev/mii/gphyter.c
122
struct mii_softc *sc = device_private(self);
sys/dev/mii/gphyter.c
132
sc->mii_dev = self;
sys/dev/mii/gphyter.c
167
aprint_normal_dev(self, "strapped to %s mode",
sys/dev/mii/icsphy.c
115
icsphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/icsphy.c
117
struct mii_softc *sc = device_private(self);
sys/dev/mii/icsphy.c
126
sc->mii_dev = self;
sys/dev/mii/igphy.c
132
igphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/igphy.c
134
struct mii_softc *sc = device_private(self);
sys/dev/mii/igphy.c
151
sc->mii_dev = self;
sys/dev/mii/ihphy.c
116
ihphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/ihphy.c
118
struct mii_softc *sc = device_private(self);
sys/dev/mii/ihphy.c
128
sc->mii_dev = self;
sys/dev/mii/ikphy.c
111
ikphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/ikphy.c
113
struct mii_softc *sc = device_private(self);
sys/dev/mii/ikphy.c
122
sc->mii_dev = self;
sys/dev/mii/inphy.c
115
inphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/inphy.c
117
struct mii_softc *sc = device_private(self);
sys/dev/mii/inphy.c
126
sc->mii_dev = self;
sys/dev/mii/iophy.c
110
iophyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/iophy.c
112
struct mii_softc *sc = device_private(self);
sys/dev/mii/iophy.c
121
sc->mii_dev = self;
sys/dev/mii/ipgphy.c
107
sc->mii_dev = self;
sys/dev/mii/ipgphy.c
94
ipgphy_attach(device_t parent, device_t self, void *aux)
sys/dev/mii/ipgphy.c
96
struct ipgphy_softc *isc = device_private(self);
sys/dev/mii/jmphy.c
83
jmphy_attach(device_t parent, device_t self, void *aux)
sys/dev/mii/jmphy.c
85
struct mii_softc *sc = device_private(self);
sys/dev/mii/jmphy.c
94
sc->mii_dev = self;
sys/dev/mii/lxtphy.c
120
lxtphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/lxtphy.c
122
struct mii_softc *sc = device_private(self);
sys/dev/mii/lxtphy.c
131
sc->mii_dev = self;
sys/dev/mii/lxtphy.c
159
aprint_normal_dev(self, "100baseFX, 100baseFX-FDX\n");
sys/dev/mii/makphy.c
154
makphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/makphy.c
156
struct mii_softc *sc = device_private(self);
sys/dev/mii/makphy.c
176
sc->mii_dev = self;
sys/dev/mii/makphy.c
202
aprint_verbose_dev(self,
sys/dev/mii/makphy.c
214
aprint_verbose_dev(self, "Failed to read EXTSR. "
sys/dev/mii/makphy.c
247
aprint_verbose_dev(self, "Failed to access "
sys/dev/mii/makphy.c
275
aprint_debug_dev(self, "both copper and fiber are set "
sys/dev/mii/mcommphy.c
536
mcommphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/mcommphy.c
538
struct mcomm_softc *msc = device_private(self);
sys/dev/mii/mcommphy.c
554
sc->mii_dev = self;
sys/dev/mii/micphy.c
194
micphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/micphy.c
196
struct micphy_softc *msc = device_private(self);
sys/dev/mii/micphy.c
208
sc->mii_dev = self;
sys/dev/mii/mii_physubr.c
506
device_t self = sc->mii_dev;
sys/dev/mii/mii_physubr.c
510
aprint_normal_dev(self, "");
sys/dev/mii/mii_physubr.c
652
if (!pmf_device_register(self, NULL, mii_phy_resume)) {
sys/dev/mii/mii_physubr.c
653
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/mii/mii_physubr.c
666
mii_phy_activate(device_t self, enum devact act)
sys/dev/mii/mii_physubr.c
680
mii_phy_detach(device_t self, int flags)
sys/dev/mii/mii_physubr.c
682
struct mii_softc *sc = device_private(self);
sys/dev/mii/mvphy.c
177
mvphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/mvphy.c
179
struct mii_softc *sc = device_private(self);
sys/dev/mii/mvphy.c
188
sc->mii_dev = self;
sys/dev/mii/nsphy.c
112
nsphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/nsphy.c
114
struct mii_softc *sc = device_private(self);
sys/dev/mii/nsphy.c
123
sc->mii_dev = self;
sys/dev/mii/nsphyter.c
118
nsphyterattach(device_t parent, device_t self, void *aux)
sys/dev/mii/nsphyter.c
120
struct mii_softc *sc = device_private(self);
sys/dev/mii/nsphyter.c
129
sc->mii_dev = self;
sys/dev/mii/pnaphy.c
101
pnaphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/pnaphy.c
103
struct mii_softc *sc = device_private(self);
sys/dev/mii/pnaphy.c
112
sc->mii_dev = self;
sys/dev/mii/qsphy.c
111
qsphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/qsphy.c
113
struct mii_softc *sc = device_private(self);
sys/dev/mii/qsphy.c
122
sc->mii_dev = self;
sys/dev/mii/rdcphy.c
108
sc->mii_dev = self;
sys/dev/mii/rdcphy.c
95
rdcphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/rdcphy.c
97
struct rdcphy_softc *rsc = device_private(self);
sys/dev/mii/rgephy.c
105
rgephy_attach(device_t parent, device_t self, void *aux)
sys/dev/mii/rgephy.c
107
struct rgephy_softc *rsc = device_private(self);
sys/dev/mii/rgephy.c
108
prop_dictionary_t prop = device_properties(self);
sys/dev/mii/rgephy.c
117
sc->mii_dev = self;
sys/dev/mii/rlphy.c
112
rlphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/rlphy.c
114
struct rlphy_softc *rsc = device_private(self);
sys/dev/mii/rlphy.c
134
sc->mii_dev = self;
sys/dev/mii/smscphy.c
105
sc->mii_dev = self;
sys/dev/mii/smscphy.c
94
smscphy_attach(device_t parent, device_t self, void *aux)
sys/dev/mii/smscphy.c
96
struct mii_softc *sc = device_private(self);
sys/dev/mii/sqphy.c
118
sqphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/sqphy.c
120
struct mii_softc *sc = device_private(self);
sys/dev/mii/sqphy.c
129
sc->mii_dev = self;
sys/dev/mii/sqphy.c
138
aprint_normal_dev(self,
sys/dev/mii/tlphy.c
126
tlphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/tlphy.c
128
struct tlphy_softc *tsc = device_private(self);
sys/dev/mii/tlphy.c
130
struct tl_softc *tlsc = device_private(device_parent(self));
sys/dev/mii/tlphy.c
140
sc->mii_dev = self;
sys/dev/mii/tlphy.c
177
aprint_normal_dev(self, "");
sys/dev/mii/tlphy.c
197
if (!pmf_device_register(self, NULL, mii_phy_resume)) {
sys/dev/mii/tlphy.c
198
aprint_error_dev(self,
sys/dev/mii/tqphy.c
119
tqphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/tqphy.c
121
struct mii_softc *sc = device_private(self);
sys/dev/mii/tqphy.c
130
sc->mii_dev = self;
sys/dev/mii/ukphy.c
104
ukphyattach(device_t parent, device_t self, void *aux)
sys/dev/mii/ukphy.c
106
struct mii_softc *sc = device_private(self);
sys/dev/mii/ukphy.c
122
sc->mii_dev = self;
sys/dev/mii/urlphy.c
102
DPRINTF(("%s: %s: enter\n", device_xname(self), __func__));
sys/dev/mii/urlphy.c
104
sc->mii_dev = self;
sys/dev/mii/urlphy.c
117
aprint_error_dev(self,
sys/dev/mii/urlphy.c
93
urlphy_attach(device_t parent, device_t self, void *aux)
sys/dev/mii/urlphy.c
95
struct mii_softc *sc = device_private(self);
sys/dev/mscp/mscp_disk.c
678
raattach(device_t parent, device_t self, void *aux)
sys/dev/mscp/mscp_disk.c
680
struct rx_softc *rx = device_private(self);
sys/dev/mscp/mscp_disk.c
686
rx->ra_dev = self;
sys/dev/mscp/mscp_disk.c
690
mi->mi_dp[mp->mscp_unit] = self;
sys/dev/mscp/mscp_disk.c
720
device_xname(self), mp->mscp_guse.guse_nspt, mp->mscp_guse.guse_group,
sys/dev/mscp/mscp_subr.c
175
mscp_attach(device_t parent, device_t self, void *aux)
sys/dev/mscp/mscp_subr.c
178
struct mscp_softc *mi = device_private(self);
sys/dev/mscp/mscp_subr.c
184
mi->mi_dev = self;
sys/dev/mscp/mscp_tape.c
175
mtattach(device_t parent, device_t self, void *aux)
sys/dev/mscp/mscp_tape.c
177
struct mt_softc *mt = device_private(self);
sys/dev/mscp/mscp_tape.c
182
mt->mt_dev = self;
sys/dev/mscp/mscp_tape.c
184
mi->mi_dp[mp->mscp_unit] = self;
sys/dev/mvme/clmpcc_pcctwo.c
116
clmpcc_pcctwo_attach(device_t parent, device_t self, void *aux)
sys/dev/mvme/clmpcc_pcctwo.c
122
sc = device_private(self);
sys/dev/mvme/clmpcc_pcctwo.c
123
sc->sc_dev = self;
sys/dev/mvme/clock_pcctwo.c
103
sc = clock_pcctwo_sc = device_private(self);
sys/dev/mvme/clock_pcctwo.c
113
clock_config(self, &sc->sc_clock_args, pcctwointr_evcnt(pa->pa_ipl));
sys/dev/mvme/clock_pcctwo.c
98
clock_pcctwo_attach(device_t parent, device_t self, void *aux)
sys/dev/mvme/if_ie_mvme.c
234
ie_pcctwo_attach(device_t parent, device_t self, void *aux)
sys/dev/mvme/if_ie_mvme.c
243
ps = device_private(self);
sys/dev/mvme/if_ie_mvme.c
245
sc->sc_dev = self;
sys/dev/mvme/if_ie_mvme.c
256
aprint_error_dev(self, "Failed to allocate ether buffer\n");
sys/dev/mvme/if_ie_mvme.c
261
aprint_error_dev(self, "Failed to map ether buffer\n");
sys/dev/mvme/if_ie_mvme.c
309
pcctwointr_evcnt(pa->pa_ipl), "ether", device_xname(self));
sys/dev/mvme/lpt_pcctwo.c
109
lpt_pcctwo_attach(device_t parent, device_t self, void *args)
sys/dev/mvme/lpt_pcctwo.c
115
sc = device_private(self);
sys/dev/mvme/lpt_pcctwo.c
116
sc->sc_dev = self;
sys/dev/mvme/osiop_pcctwo.c
106
osiop_pcctwo_attach(device_t parent, device_t self, void *aux)
sys/dev/mvme/osiop_pcctwo.c
112
sc = device_private(self);
sys/dev/mvme/osiop_pcctwo.c
133
sc->sc_osiop.sc_dev = self;
sys/dev/nand/nand.c
1002
if (nand_iswornoutbad(self, offset))
sys/dev/nand/nand.c
1010
nand_erase_block(device_t self, size_t offset)
sys/dev/nand/nand.c
1016
nand_command(self, ONFI_BLOCK_ERASE);
sys/dev/nand/nand.c
1017
nand_address_row(self, offset);
sys/dev/nand/nand.c
1018
nand_command(self, ONFI_BLOCK_ERASE_START);
sys/dev/nand/nand.c
1020
nand_busy(self);
sys/dev/nand/nand.c
1022
status = nand_get_status(self);
sys/dev/nand/nand.c
1025
aprint_error_dev(self, "block erase failed!\n");
sys/dev/nand/nand.c
1026
nand_markbad(self, offset);
sys/dev/nand/nand.c
1037
nand_default_ecc_compute(device_t self, const uint8_t *data, uint8_t *code)
sys/dev/nand/nand.c
1045
nand_default_ecc_correct(device_t self, uint8_t *data, const uint8_t *origcode,
sys/dev/nand/nand.c
1052
nand_default_select(device_t self, bool enable)
sys/dev/nand/nand.c
1061
nand_flash_submit(device_t self, struct buf * const bp)
sys/dev/nand/nand.c
1063
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
1072
nand_flash_write_unaligned(device_t self, flash_off_t offset, size_t len,
sys/dev/nand/nand.c
1075
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
1094
if (nand_isbad(self, addr)) {
sys/dev/nand/nand.c
1095
aprint_error_dev(self,
sys/dev/nand/nand.c
1102
error = nand_read_page(self, addr, chip->nc_page_cache);
sys/dev/nand/nand.c
1109
error = nand_program_page(self, addr, chip->nc_page_cache);
sys/dev/nand/nand.c
1122
if (nand_isbad(self, addr)) {
sys/dev/nand/nand.c
1123
aprint_error_dev(self,
sys/dev/nand/nand.c
1131
error = nand_read_page(self,
sys/dev/nand/nand.c
1141
error = nand_program_page(self,
sys/dev/nand/nand.c
1152
error = nand_read_page(self,
sys/dev/nand/nand.c
1160
error = nand_program_page(self,
sys/dev/nand/nand.c
1177
error = nand_program_page(self, addr, bufp);
sys/dev/nand/nand.c
1198
nand_flash_write(device_t self, flash_off_t offset, size_t len, size_t *retlen,
sys/dev/nand/nand.c
1201
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
1218
return nand_flash_write_unaligned(self,
sys/dev/nand/nand.c
1232
if (nand_isbad(self, addr)) {
sys/dev/nand/nand.c
1233
aprint_error_dev(self,
sys/dev/nand/nand.c
1240
error = nand_program_page(self, addr, bufp);
sys/dev/nand/nand.c
1260
nand_flash_read_unaligned(device_t self, size_t offset,
sys/dev/nand/nand.c
1263
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
128
nand_attach(device_t parent, device_t self, void *aux)
sys/dev/nand/nand.c
1283
error = nand_read_page(self, addr, chip->nc_page_cache);
sys/dev/nand/nand.c
1295
error = nand_read_page(self, addr, chip->nc_page_cache);
sys/dev/nand/nand.c
130
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
1331
nand_flash_read(device_t self, flash_off_t offset, size_t len, size_t *retlen,
sys/dev/nand/nand.c
1334
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
134
sc->sc_dev = self;
sys/dev/nand/nand.c
1365
return nand_flash_read_unaligned(self,
sys/dev/nand/nand.c
1376
if (nand_isbad(self, addr)) {
sys/dev/nand/nand.c
1377
aprint_error_dev(self, "bad block encountered\n");
sys/dev/nand/nand.c
1381
error = nand_read_page(self, addr, bufp);
sys/dev/nand/nand.c
1396
nand_flash_isbad(device_t self, flash_off_t ofs, bool *is_bad)
sys/dev/nand/nand.c
1398
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
140
if (nand_check_wp(self)) {
sys/dev/nand/nand.c
1417
result = nand_isbad(self, ofs);
sys/dev/nand/nand.c
1426
nand_flash_markbad(device_t self, flash_off_t ofs)
sys/dev/nand/nand.c
1428
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
1444
nand_markbad(self, ofs);
sys/dev/nand/nand.c
145
if (nand_scan_media(self, chip)) {
sys/dev/nand/nand.c
1451
nand_flash_erase(device_t self,
sys/dev/nand/nand.c
1454
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
1469
aprint_error_dev(self,
sys/dev/nand/nand.c
1478
aprint_error_dev(self,
sys/dev/nand/nand.c
1489
if (nand_isbad(self, addr)) {
sys/dev/nand/nand.c
1490
aprint_error_dev(self, "bad block encountered\n");
sys/dev/nand/nand.c
1496
error = nand_erase_block(self, addr);
sys/dev/nand/nand.c
159
if (flash_sync_thread_init(&sc->sc_flash_io, self, &nand_flash_if)) {
sys/dev/nand/nand.c
168
nand_bbt_init(self);
sys/dev/nand/nand.c
169
nand_bbt_scan(self);
sys/dev/nand/nand.c
175
config_search(self, NULL,
sys/dev/nand/nand.c
235
nand_detach(device_t self, int flags)
sys/dev/nand/nand.c
237
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
241
error = config_detach_children(self, flags);
sys/dev/nand/nand.c
248
nand_bbt_detach(self);
sys/dev/nand/nand.c
329
nand_quirks(device_t self, struct nand_chip *chip)
sys/dev/nand/nand.c
346
nand_fill_chip_structure_legacy(device_t self, struct nand_chip *chip)
sys/dev/nand/nand.c
350
return nand_read_parameters_micron(self, chip);
sys/dev/nand/nand.c
352
return nand_read_parameters_samsung(self, chip);
sys/dev/nand/nand.c
354
return nand_read_parameters_toshiba(self, chip);
sys/dev/nand/nand.c
367
nand_scan_media(device_t self, struct nand_chip *chip)
sys/dev/nand/nand.c
369
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
373
nand_select(self, true);
sys/dev/nand/nand.c
374
nand_command(self, ONFI_RESET);
sys/dev/nand/nand.c
375
KASSERT(nand_get_status(self) & ONFI_STATUS_RDY);
sys/dev/nand/nand.c
376
nand_select(self, false);
sys/dev/nand/nand.c
379
nand_select(self, true);
sys/dev/nand/nand.c
380
nand_command(self, ONFI_READ_ID);
sys/dev/nand/nand.c
381
nand_address(self, 0x20);
sys/dev/nand/nand.c
382
nand_read_1(self, &onfi_signature[0]);
sys/dev/nand/nand.c
383
nand_read_1(self, &onfi_signature[1]);
sys/dev/nand/nand.c
384
nand_read_1(self, &onfi_signature[2]);
sys/dev/nand/nand.c
385
nand_read_1(self, &onfi_signature[3]);
sys/dev/nand/nand.c
386
nand_select(self, false);
sys/dev/nand/nand.c
389
device_printf(self, "signature: %02x %02x %02x %02x\n",
sys/dev/nand/nand.c
400
nand_read_id(self, &chip->nc_manf_id, &chip->nc_dev_id);
sys/dev/nand/nand.c
402
if (nand_fill_chip_structure_legacy(self, chip)) {
sys/dev/nand/nand.c
403
aprint_error_dev(self,
sys/dev/nand/nand.c
412
nand_read_id(self, &chip->nc_manf_id, &chip->nc_dev_id);
sys/dev/nand/nand.c
414
if (nand_fill_chip_structure(self, chip)) {
sys/dev/nand/nand.c
415
aprint_error_dev(self,
sys/dev/nand/nand.c
421
aprint_normal_dev(self,
sys/dev/nand/nand.c
427
aprint_normal_dev(self,
sys/dev/nand/nand.c
432
aprint_normal_dev(self,
sys/dev/nand/nand.c
438
aprint_normal_dev(self, "column cycles: %" PRIu8 ", row cycles: %"
sys/dev/nand/nand.c
504
nand_read_id(device_t self, uint8_t *manf, uint8_t *dev)
sys/dev/nand/nand.c
506
nand_select(self, true);
sys/dev/nand/nand.c
507
nand_command(self, ONFI_READ_ID);
sys/dev/nand/nand.c
508
nand_address(self, 0x00);
sys/dev/nand/nand.c
510
nand_read_1(self, manf);
sys/dev/nand/nand.c
511
nand_read_1(self, dev);
sys/dev/nand/nand.c
513
nand_select(self, false);
sys/dev/nand/nand.c
517
nand_read_parameter_page(device_t self, struct onfi_parameter_page *params)
sys/dev/nand/nand.c
528
nand_select(self, true);
sys/dev/nand/nand.c
529
nand_command(self, ONFI_READ_PARAMETER_PAGE);
sys/dev/nand/nand.c
530
nand_address(self, 0x00);
sys/dev/nand/nand.c
532
nand_busy(self);
sys/dev/nand/nand.c
539
nand_read_1(self, &bufp[i]);
sys/dev/nand/nand.c
541
nand_select(self, false);
sys/dev/nand/nand.c
547
aprint_error_dev(self, "parameter page crc check failed\n");
sys/dev/nand/nand.c
556
nand_fill_chip_structure(device_t self, struct nand_chip *chip)
sys/dev/nand/nand.c
562
if (nand_read_parameter_page(self, &params)) {
sys/dev/nand/nand.c
574
aprint_normal_dev(self, "vendor: %s, model: %s\n", vendor, model);
sys/dev/nand/nand.c
605
nand_shutdown(device_t self, int howto)
sys/dev/nand/nand.c
611
nand_address_column(device_t self, size_t row, size_t column)
sys/dev/nand/nand.c
613
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
627
nand_address(self, column & 0xff);
sys/dev/nand/nand.c
631
nand_address(self, row & 0xff);
sys/dev/nand/nand.c
635
nand_address_row(device_t self, size_t row)
sys/dev/nand/nand.c
637
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
646
nand_address(self, row & 0xff);
sys/dev/nand/nand.c
650
nand_get_status(device_t self)
sys/dev/nand/nand.c
654
nand_command(self, ONFI_READ_STATUS);
sys/dev/nand/nand.c
655
nand_busy(self);
sys/dev/nand/nand.c
656
nand_read_1(self, &status);
sys/dev/nand/nand.c
662
nand_check_wp(device_t self)
sys/dev/nand/nand.c
664
if (nand_get_status(self) & ONFI_STATUS_WP)
sys/dev/nand/nand.c
671
nand_prepare_read(device_t self, flash_off_t row, flash_off_t column)
sys/dev/nand/nand.c
673
nand_command(self, ONFI_READ);
sys/dev/nand/nand.c
674
nand_address_column(self, row, column);
sys/dev/nand/nand.c
675
nand_command(self, ONFI_READ_START);
sys/dev/nand/nand.c
677
nand_busy(self);
sys/dev/nand/nand.c
682
nand_default_read_page(device_t self, size_t offset, uint8_t *data)
sys/dev/nand/nand.c
684
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
690
nand_prepare_read(self, offset, 0);
sys/dev/nand/nand.c
698
nand_ecc_prepare(self, NAND_ECC_READ);
sys/dev/nand/nand.c
699
nand_read_buf_2(self, data + b, bs);
sys/dev/nand/nand.c
700
nand_ecc_compute(self, data + b,
sys/dev/nand/nand.c
705
nand_ecc_prepare(self, NAND_ECC_READ);
sys/dev/nand/nand.c
706
nand_read_buf_1(self, data + b, bs);
sys/dev/nand/nand.c
707
nand_ecc_compute(self, data + b,
sys/dev/nand/nand.c
717
nand_read_oob(self, offset, chip->nc_oob_cache);
sys/dev/nand/nand.c
738
result = nand_ecc_correct(self, data + b, ecc + e,
sys/dev/nand/nand.c
745
aprint_error_dev(self,
sys/dev/nand/nand.c
750
aprint_error_dev(self,
sys/dev/nand/nand.c
756
aprint_error_dev(self,
sys/dev/nand/nand.c
770
nand_default_program_page(device_t self, size_t page, const uint8_t *data)
sys/dev/nand/nand.c
772
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
778
nand_command(self, ONFI_PAGE_PROGRAM);
sys/dev/nand/nand.c
779
nand_address_column(self, page, 0);
sys/dev/nand/nand.c
781
nand_busy(self);
sys/dev/nand/nand.c
791
nand_ecc_prepare(self, NAND_ECC_WRITE);
sys/dev/nand/nand.c
792
nand_write_buf_2(self, data + b, bs);
sys/dev/nand/nand.c
793
nand_ecc_compute(self, data + b, ecc + e);
sys/dev/nand/nand.c
796
nand_write_buf_2(self, chip->nc_oob_cache,
sys/dev/nand/nand.c
800
nand_ecc_prepare(self, NAND_ECC_WRITE);
sys/dev/nand/nand.c
801
nand_write_buf_1(self, data + b, bs);
sys/dev/nand/nand.c
802
nand_ecc_compute(self, data + b, ecc + e);
sys/dev/nand/nand.c
805
nand_write_buf_1(self, chip->nc_oob_cache,
sys/dev/nand/nand.c
809
nand_command(self, ONFI_PAGE_PROGRAM_START);
sys/dev/nand/nand.c
811
nand_busy(self);
sys/dev/nand/nand.c
826
status = nand_get_status(self);
sys/dev/nand/nand.c
829
aprint_error_dev(self, "page program failed!\n");
sys/dev/nand/nand.c
838
nand_read_oob(device_t self, size_t page, uint8_t *oob)
sys/dev/nand/nand.c
840
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
843
nand_prepare_read(self, page, chip->nc_page_size);
sys/dev/nand/nand.c
846
nand_read_buf_2(self, oob, chip->nc_spare_size);
sys/dev/nand/nand.c
848
nand_read_buf_1(self, oob, chip->nc_spare_size);
sys/dev/nand/nand.c
859
nand_write_oob(device_t self, size_t offset, const void *oob)
sys/dev/nand/nand.c
861
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
865
nand_command(self, ONFI_PAGE_PROGRAM);
sys/dev/nand/nand.c
866
nand_address_column(self, offset, chip->nc_page_size);
sys/dev/nand/nand.c
867
nand_command(self, ONFI_PAGE_PROGRAM_START);
sys/dev/nand/nand.c
869
nand_busy(self);
sys/dev/nand/nand.c
872
nand_write_buf_2(self, oob, chip->nc_spare_size);
sys/dev/nand/nand.c
874
nand_write_buf_1(self, oob, chip->nc_spare_size);
sys/dev/nand/nand.c
876
status = nand_get_status(self);
sys/dev/nand/nand.c
885
nand_markbad(device_t self, size_t offset)
sys/dev/nand/nand.c
887
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
895
nand_bbt_block_markbad(self, block);
sys/dev/nand/nand.c
900
if (nand_isbad(self, blockoffset))
sys/dev/nand/nand.c
903
nand_read_oob(self, blockoffset, chip->nc_oob_cache);
sys/dev/nand/nand.c
908
nand_write_oob(self, blockoffset, chip->nc_oob_cache);
sys/dev/nand/nand.c
912
nand_isfactorybad(device_t self, flash_off_t offset)
sys/dev/nand/nand.c
914
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
930
nand_prepare_read(self, page, chip->nc_page_size);
sys/dev/nand/nand.c
934
nand_read_2(self, &word);
sys/dev/nand/nand.c
939
nand_read_1(self, &byte);
sys/dev/nand/nand.c
949
nand_iswornoutbad(device_t self, flash_off_t offset)
sys/dev/nand/nand.c
951
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
962
nand_prepare_read(self, block,
sys/dev/nand/nand.c
965
nand_read_2(self, &word);
sys/dev/nand/nand.c
974
nand_prepare_read(self, block,
sys/dev/nand/nand.c
977
nand_read_1(self, &byte);
sys/dev/nand/nand.c
986
nand_isbad(device_t self, flash_off_t offset)
sys/dev/nand/nand.c
989
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand.c
995
return nand_bbt_block_isbad(self, block);
sys/dev/nand/nand.c
998
if (nand_isfactorybad(self, offset))
sys/dev/nand/nand.h
222
nand_select(device_t self, bool enable)
sys/dev/nand/nand.h
224
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
233
nand_address(device_t self, uint32_t address)
sys/dev/nand/nand.h
235
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
244
nand_command(device_t self, uint8_t command)
sys/dev/nand/nand.h
246
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
255
nand_read_1(device_t self, uint8_t *data)
sys/dev/nand/nand.h
257
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
266
nand_write_1(device_t self, uint8_t data)
sys/dev/nand/nand.h
268
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
277
nand_read_2(device_t self, uint16_t *data)
sys/dev/nand/nand.h
279
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
288
nand_write_2(device_t self, uint16_t data)
sys/dev/nand/nand.h
290
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
299
nand_read_buf_1(device_t self, void *buf, size_t size)
sys/dev/nand/nand.h
301
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
310
nand_read_buf_2(device_t self, void *buf, size_t size)
sys/dev/nand/nand.h
312
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
321
nand_write_buf_1(device_t self, const void *buf, size_t size)
sys/dev/nand/nand.h
323
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
332
nand_write_buf_2(device_t self, const void *buf, size_t size)
sys/dev/nand/nand.h
334
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
343
nand_ecc_correct(device_t self, uint8_t *data, const uint8_t *oldcode,
sys/dev/nand/nand.h
346
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
355
nand_ecc_compute(device_t self, const uint8_t *data, uint8_t *code)
sys/dev/nand/nand.h
357
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
366
nand_ecc_prepare(device_t self, int mode)
sys/dev/nand/nand.h
368
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
377
nand_program_page(device_t self, size_t offset, const uint8_t *data)
sys/dev/nand/nand.h
379
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
383
return sc->nand_if->program_page(self, offset, data);
sys/dev/nand/nand.h
387
nand_read_page(device_t self, size_t offset, uint8_t *data)
sys/dev/nand/nand.h
389
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand.h
393
return sc->nand_if->read_page(self, offset, data);
sys/dev/nand/nand.h
398
nand_block_isbad(device_t self, flash_off_t block)
sys/dev/nand/nand.h
400
struct nand_softc * const sc = device_private(self);
sys/dev/nand/nand_bbt.c
100
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand_bbt.c
104
nand_read_oob(self, addr, oob);
sys/dev/nand/nand_bbt.c
116
nand_bbt_get_bbt_from_page(device_t self, flash_off_t addr)
sys/dev/nand/nand_bbt.c
118
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand_bbt.c
128
if (nand_isbad(self, addr)) {
sys/dev/nand/nand_bbt.c
132
if (nand_bbt_page_has_bbt(self, addr)) {
sys/dev/nand/nand_bbt.c
137
nand_read_page(self, addr, buf);
sys/dev/nand/nand_bbt.c
158
nand_bbt_load(device_t self)
sys/dev/nand/nand_bbt.c
160
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand_bbt.c
168
if (nand_bbt_get_bbt_from_page(self, blockaddr)) {
sys/dev/nand/nand_bbt.c
179
nand_bbt_block_markbad(device_t self, flash_off_t block)
sys/dev/nand/nand_bbt.c
181
if (nand_bbt_block_isbad(self, block)) {
sys/dev/nand/nand_bbt.c
182
aprint_error_dev(self,
sys/dev/nand/nand_bbt.c
186
nand_bbt_block_mark(self, block, NAND_BBT_MARKER_WORNOUT_BAD);
sys/dev/nand/nand_bbt.c
190
nand_bbt_block_markfactorybad(device_t self, flash_off_t block)
sys/dev/nand/nand_bbt.c
192
if (nand_bbt_block_isbad(self, block)) {
sys/dev/nand/nand_bbt.c
193
aprint_error_dev(self,
sys/dev/nand/nand_bbt.c
197
nand_bbt_block_mark(self, block, NAND_BBT_MARKER_FACTORY_BAD);
sys/dev/nand/nand_bbt.c
201
nand_bbt_block_mark(device_t self, flash_off_t block, uint8_t marker)
sys/dev/nand/nand_bbt.c
203
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand_bbt.c
220
nand_bbt_block_isbad(device_t self, flash_off_t block)
sys/dev/nand/nand_bbt.c
222
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand_bbt.c
48
nand_bbt_init(device_t self)
sys/dev/nand/nand_bbt.c
50
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand_bbt.c
61
nand_bbt_detach(device_t self)
sys/dev/nand/nand_bbt.c
63
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand_bbt.c
70
nand_bbt_scan(device_t self)
sys/dev/nand/nand_bbt.c
72
struct nand_softc *sc = device_private(self);
sys/dev/nand/nand_bbt.c
78
aprint_normal_dev(self, "scanning for bad blocks\n");
sys/dev/nand/nand_bbt.c
82
if (nand_isfactorybad(self, addr)) {
sys/dev/nand/nand_bbt.c
83
nand_bbt_block_markfactorybad(self, i);
sys/dev/nand/nand_bbt.c
84
} else if (nand_iswornoutbad(self, addr)) {
sys/dev/nand/nand_bbt.c
85
nand_bbt_block_markbad(self, i);
sys/dev/nand/nand_bbt.c
93
nand_bbt_update(device_t self)
sys/dev/nand/nand_bbt.c
99
nand_bbt_page_has_bbt(device_t self, flash_off_t addr) {
sys/dev/nand/nand_micron.c
107
nand_select(self, true);
sys/dev/nand/nand_micron.c
108
nand_command(self, ONFI_READ_ID);
sys/dev/nand/nand_micron.c
109
nand_address(self, 0x00);
sys/dev/nand/nand_micron.c
110
nand_read_1(self, &mfgrid);
sys/dev/nand/nand_micron.c
111
nand_read_1(self, &devid);
sys/dev/nand/nand_micron.c
112
nand_read_1(self, &dontcare);
sys/dev/nand/nand_micron.c
113
nand_read_1(self, &params);
sys/dev/nand/nand_micron.c
114
nand_select(self, false);
sys/dev/nand/nand_micron.c
124
return mt29fxgx_parameters(self, chip, devid, params);
sys/dev/nand/nand_micron.c
126
aprint_error_dev(self, "unsupported device id %#x\n", devid);
sys/dev/nand/nand_micron.c
132
mt29fxgx_parameters(device_t self, struct nand_chip * const chip,
sys/dev/nand/nand_micron.c
140
aprint_error_dev(self, "unknown device id %#x\n", devid);
sys/dev/nand/nand_micron.c
161
aprint_normal_dev(self, "%s %s, size %" PRIu64 "MB\n",
sys/dev/nand/nand_micron.c
92
nand_read_parameters_micron(device_t self, struct nand_chip * const chip)
sys/dev/nand/nand_samsung.c
199
aprint_normal_dev(self, "vendor: Samsung, model: K9XXG08UXA\n");
sys/dev/nand/nand_samsung.c
58
nand_read_parameters_samsung(device_t self, struct nand_chip * const chip)
sys/dev/nand/nand_samsung.c
71
nand_select(self, true);
sys/dev/nand/nand_samsung.c
72
nand_command(self, ONFI_READ_ID);
sys/dev/nand/nand_samsung.c
73
nand_address(self, 0x00);
sys/dev/nand/nand_samsung.c
74
nand_read_1(self, &mfgrid);
sys/dev/nand/nand_samsung.c
75
nand_read_1(self, &devid);
sys/dev/nand/nand_samsung.c
76
nand_read_1(self, &params1);
sys/dev/nand/nand_samsung.c
77
nand_read_1(self, &params2);
sys/dev/nand/nand_samsung.c
78
nand_read_1(self, &params3);
sys/dev/nand/nand_samsung.c
79
nand_select(self, false);
sys/dev/nand/nand_samsung.c
81
aprint_debug_dev(self,
sys/dev/nand/nand_toshiba.c
54
nand_read_parameters_toshiba(device_t self, struct nand_chip * const chip)
sys/dev/nand/nand_toshiba.c
62
nand_select(self, true);
sys/dev/nand/nand_toshiba.c
63
nand_command(self, ONFI_READ_ID);
sys/dev/nand/nand_toshiba.c
64
nand_address(self, 0x00);
sys/dev/nand/nand_toshiba.c
65
nand_read_1(self, &mfgrid);
sys/dev/nand/nand_toshiba.c
66
nand_read_1(self, &devid);
sys/dev/nand/nand_toshiba.c
67
nand_read_1(self, &params1);
sys/dev/nand/nand_toshiba.c
68
nand_read_1(self, &params2);
sys/dev/nand/nand_toshiba.c
69
nand_read_1(self, &params3);
sys/dev/nand/nand_toshiba.c
70
nand_select(self, false);
sys/dev/nand/nand_toshiba.c
72
aprint_debug_dev(self,
sys/dev/nand/nandemulator.c
174
nandemulator_attach(device_t parent, device_t self, void *aux)
sys/dev/nand/nandemulator.c
176
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
179
aprint_normal_dev(self, "NAND emulator\n");
sys/dev/nand/nandemulator.c
181
sc->sc_dev = self;
sys/dev/nand/nandemulator.c
275
nandemulator_device_reset(self);
sys/dev/nand/nandemulator.c
281
nandemulator_detach(device_t self, int flags)
sys/dev/nand/nandemulator.c
283
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
288
error = config_detach_children(self, flags);
sys/dev/nand/nandemulator.c
303
nandemulator_device_reset(device_t self)
sys/dev/nand/nandemulator.c
305
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
320
nandemulator_address_chip(device_t self)
sys/dev/nand/nandemulator.c
322
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
330
aprint_error_dev(self, "incorrect number of address cycles\n");
sys/dev/nand/nandemulator.c
331
aprint_error_dev(self, "cc: %d, rc: %d, ac: %d\n",
sys/dev/nand/nandemulator.c
336
page = nandemulator_address_to_page(self);
sys/dev/nand/nandemulator.c
346
aprint_error_dev(self, "address > device size!\n");
sys/dev/nand/nandemulator.c
350
nandemulator_page_to_backend_offset(self, page);
sys/dev/nand/nandemulator.c
352
nandemulator_column_address_to_subpage(self);
sys/dev/nand/nandemulator.c
367
nandemulator_command(device_t self, uint8_t command)
sys/dev/nand/nandemulator.c
369
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
383
nandemulator_device_reset(self);
sys/dev/nand/nandemulator.c
401
nandemulator_address_chip(self);
sys/dev/nand/nandemulator.c
404
page = nandemulator_address_to_page(self);
sys/dev/nand/nandemulator.c
413
aprint_error_dev(self, "address > device size!\n");
sys/dev/nand/nandemulator.c
416
nandemulator_page_to_backend_offset(self, page);
sys/dev/nand/nandemulator.c
433
aprint_error_dev(self,
sys/dev/nand/nandemulator.c
441
nandemulator_address(device_t self, uint8_t address)
sys/dev/nand/nandemulator.c
443
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
478
nandemulator_address_chip(self);
sys/dev/nand/nandemulator.c
489
nandemulator_busy(device_t self)
sys/dev/nand/nandemulator.c
492
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
508
nandemulator_read_1(device_t self, uint8_t *data)
sys/dev/nand/nandemulator.c
510
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
520
aprint_error_dev(self, "reading byte from invalid location\n");
sys/dev/nand/nandemulator.c
526
nandemulator_write_1(device_t self, uint8_t data)
sys/dev/nand/nandemulator.c
528
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
533
aprint_error_dev(self,
sys/dev/nand/nandemulator.c
546
aprint_error_dev(self, "write to invalid location\n");
sys/dev/nand/nandemulator.c
551
nandemulator_read_2(device_t self, uint16_t *data)
sys/dev/nand/nandemulator.c
553
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
558
aprint_error_dev(self,
sys/dev/nand/nandemulator.c
571
aprint_error_dev(self, "reading word from invalid location\n");
sys/dev/nand/nandemulator.c
577
nandemulator_write_2(device_t self, uint16_t data)
sys/dev/nand/nandemulator.c
579
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
584
aprint_error_dev(self,
sys/dev/nand/nandemulator.c
592
aprint_error_dev(self,
sys/dev/nand/nandemulator.c
605
aprint_error_dev(self, "writing to invalid location");
sys/dev/nand/nandemulator.c
610
nandemulator_read_buf_1(device_t self, void *buf, size_t len)
sys/dev/nand/nandemulator.c
619
nandemulator_read_1(self, addr);
sys/dev/nand/nandemulator.c
625
nandemulator_read_buf_2(device_t self, void *buf, size_t len)
sys/dev/nand/nandemulator.c
636
nandemulator_read_2(self, addr);
sys/dev/nand/nandemulator.c
642
nandemulator_write_buf_1(device_t self, const void *buf, size_t len)
sys/dev/nand/nandemulator.c
651
nandemulator_write_1(self, *addr);
sys/dev/nand/nandemulator.c
657
nandemulator_write_buf_2(device_t self, const void *buf, size_t len)
sys/dev/nand/nandemulator.c
668
nandemulator_write_2(self, *addr);
sys/dev/nand/nandemulator.c
674
nandemulator_address_to_page(device_t self)
sys/dev/nand/nandemulator.c
676
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
694
nandemulator_column_address_to_subpage(device_t self)
sys/dev/nand/nandemulator.c
696
struct nandemulator_softc *sc = device_private(self);
sys/dev/nand/nandemulator.c
717
nandemulator_page_to_backend_offset(device_t self, size_t page)
sys/dev/nand/nandemulator.c
719
struct nandemulator_softc *sc = device_private(self);
sys/dev/nor/cfi.c
456
cfi_scan_media(device_t self, struct nor_chip *chip)
sys/dev/nor/cfi.c
458
struct nor_softc *sc = device_private(self);
sys/dev/nor/cfi.c
492
cfi_init(device_t self)
sys/dev/nor/cfi.c
498
cfi_select(device_t self, bool select)
sys/dev/nor/cfi.c
504
cfi_read_1(device_t self, flash_off_t offset, uint8_t *datap)
sys/dev/nor/cfi.c
509
cfi_read_2(device_t self, flash_off_t offset, uint16_t *datap)
sys/dev/nor/cfi.c
51
static int cfi_scan_media(device_t self, struct nor_chip *chip);
sys/dev/nor/cfi.c
514
cfi_read_4(device_t self, flash_off_t offset, uint32_t *datap)
sys/dev/nor/cfi.c
519
cfi_read_buf_1(device_t self, flash_off_t offset, uint8_t *datap, size_t size)
sys/dev/nor/cfi.c
524
cfi_read_buf_2(device_t self, flash_off_t offset, uint16_t *datap, size_t size)
sys/dev/nor/cfi.c
529
cfi_read_buf_4(device_t self, flash_off_t offset, uint32_t *datap, size_t size)
sys/dev/nor/cfi.c
534
cfi_write_1(device_t self, flash_off_t offset, uint8_t data)
sys/dev/nor/cfi.c
539
cfi_write_2(device_t self, flash_off_t offset, uint16_t data)
sys/dev/nor/cfi.c
544
cfi_write_4(device_t self, flash_off_t offset, uint32_t data)
sys/dev/nor/cfi.c
549
cfi_write_buf_1(device_t self, flash_off_t offset, const uint8_t *datap,
sys/dev/nor/cfi.c
555
cfi_write_buf_2(device_t self, flash_off_t offset, const uint16_t *datap,
sys/dev/nor/cfi.c
561
cfi_write_buf_4(device_t self, flash_off_t offset, const uint32_t *datap,
sys/dev/nor/cfi.c
854
cfi_print(device_t self, struct cfi * const cfi)
sys/dev/nor/cfi.c
861
aprint_normal_dev(self, "%s NOR flash %s %s\n",
sys/dev/nor/cfi.c
865
aprint_normal_dev(self, "CFI NOR flash %s %s\n", pbuf,
sys/dev/nor/cfi.c
869
aprint_normal_dev(self, "manufacturer id %#x, device id %#x %#x %#x\n",
sys/dev/nor/cfi.c
874
aprint_normal_dev(self, "x%u device operating in %u-bit mode\n",
sys/dev/nor/cfi.c
876
aprint_normal_dev(self, "sw bits lo=%#x hi=%#x\n",
sys/dev/nor/cfi.c
879
aprint_normal_dev(self, "max multibyte write size %d\n",
sys/dev/nor/cfi.c
881
aprint_normal_dev(self, "%d Erase Block Region(s)\n",
sys/dev/nor/cfi.c
894
cfi_0002_print(self, cfi);
sys/dev/nor/cfi_0002.c
210
cfi_0002_print(device_t self, struct cfi * const cfi)
sys/dev/nor/cfi_0002.c
215
aprint_normal_dev(self, "AMD/Fujitsu cmdset (0x0002) version=%c.%c\n",
sys/dev/nor/cfi_0002.c
217
aprint_normal_dev(self, "page mode type: %s\n",
sys/dev/nor/cfi_0002.c
219
aprint_normal_dev(self, "wp protection: %s\n",
sys/dev/nor/cfi_0002.c
221
aprint_normal_dev(self, "program suspend %ssupported\n",
sys/dev/nor/cfi_0002.c
223
aprint_normal_dev(self, "unlock bypass %ssupported\n",
sys/dev/nor/cfi_0002.c
225
aprint_normal_dev(self, "secure silicon sector size %#x\n",
sys/dev/nor/cfi_0002.c
227
aprint_normal_dev(self, "SW features %#x\n", pri->soft_feat);
sys/dev/nor/cfi_0002.c
228
aprint_normal_dev(self, "page size %d\n", 1 << pri->page_size);
sys/dev/nor/cfi_0002.c
233
cfi_0002_read_page(device_t self, flash_off_t offset, uint8_t *datap)
sys/dev/nor/cfi_0002.c
235
struct nor_softc * const sc = device_private(self);
sys/dev/nor/cfi_0002.c
277
cfi_0002_program_page(device_t self, flash_off_t offset, const uint8_t *datap)
sys/dev/nor/cfi_0002.c
279
struct nor_softc * const sc = device_private(self);
sys/dev/nor/cfi_0002.c
333
cfi_0002_erase_all(device_t self)
sys/dev/nor/cfi_0002.c
335
struct nor_softc * const sc = device_private(self);
sys/dev/nor/cfi_0002.c
360
cfi_0002_erase_block(device_t self, flash_off_t offset)
sys/dev/nor/cfi_0002.c
362
struct nor_softc * const sc = device_private(self);
sys/dev/nor/cfi_0002.c
392
cfi_0002_busy(device_t self, flash_off_t offset, u_long usec)
sys/dev/nor/cfi_0002.c
394
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.c
140
nor_attach(device_t parent, device_t self, void *aux)
sys/dev/nor/nor.c
142
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
146
sc->sc_dev = self;
sys/dev/nor/nor.c
153
if (nor_scan_media(self, chip))
sys/dev/nor/nor.c
169
if (flash_sync_thread_init(&sc->sc_flash_io, self, &sc->sc_flash_if)) {
sys/dev/nor/nor.c
178
nor_bbt_init(self);
sys/dev/nor/nor.c
179
nor_bbt_scan(self);
sys/dev/nor/nor.c
185
config_search(self, NULL,
sys/dev/nor/nor.c
234
nor_detach(device_t self, int flags)
sys/dev/nor/nor.c
236
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
240
error = config_detach_children(self, flags);
sys/dev/nor/nor.c
247
nor_bbt_detach(self);
sys/dev/nor/nor.c
295
nor_default_select(device_t self, bool n)
sys/dev/nor/nor.c
302
nor_flash_submit(device_t self, buf_t * const bp)
sys/dev/nor/nor.c
304
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
333
nor_quirks(device_t self, struct nor_chip * const chip)
sys/dev/nor/nor.c
354
nor_scan_media(device_t self, struct nor_chip * const chip)
sys/dev/nor/nor.c
356
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
361
int error = sc->sc_nor_if->scan_media(self, chip);
sys/dev/nor/nor.c
366
aprint_normal_dev(self,
sys/dev/nor/nor.c
376
aprint_normal_dev(self,
sys/dev/nor/nor.c
381
aprint_normal_dev(self,
sys/dev/nor/nor.c
407
nor_quirks(self, chip);
sys/dev/nor/nor.c
415
nor_shutdown(device_t self, int howto)
sys/dev/nor/nor.c
424
nor_default_read_page(device_t self, flash_off_t offset, uint8_t * const data)
sys/dev/nor/nor.c
426
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
435
nor_read_buf_1(self, offset, data, chip->nc_page_size);
sys/dev/nor/nor.c
438
nor_read_buf_2(self, offset, data, chip->nc_page_size);
sys/dev/nor/nor.c
441
nor_read_buf_4(self, offset, data, chip->nc_page_size);
sys/dev/nor/nor.c
445
nor_read_buf_8(self, offset, data, chip->nc_page_size);
sys/dev/nor/nor.c
462
nor_default_program_page(device_t self, flash_off_t offset,
sys/dev/nor/nor.c
465
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
474
nor_write_buf_1(self, offset, data, chip->nc_page_size);
sys/dev/nor/nor.c
477
nor_write_buf_2(self, offset, data, chip->nc_page_size);
sys/dev/nor/nor.c
480
nor_write_buf_4(self, offset, data, chip->nc_page_size);
sys/dev/nor/nor.c
484
nor_write_buf_8(self, offset, data, chip->nc_page_size);
sys/dev/nor/nor.c
506
nor_flash_erase_all(device_t self)
sys/dev/nor/nor.c
508
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
512
error = nor_erase_all(self);
sys/dev/nor/nor.c
519
nor_flash_erase(device_t self, struct flash_erase_instruction * const ei)
sys/dev/nor/nor.c
521
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
537
return nor_flash_erase_all(self);
sys/dev/nor/nor.c
541
aprint_error_dev(self,
sys/dev/nor/nor.c
550
aprint_error_dev(self,
sys/dev/nor/nor.c
562
if (nor_isbad(self, addr)) {
sys/dev/nor/nor.c
563
aprint_error_dev(self, "bad block encountered\n");
sys/dev/nor/nor.c
570
error = nor_erase_block(self, addr);
sys/dev/nor/nor.c
596
nor_flash_write_unaligned(device_t self, flash_off_t offset, size_t len,
sys/dev/nor/nor.c
599
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
619
if (nor_isbad(self, addr)) {
sys/dev/nor/nor.c
620
aprint_error_dev(self,
sys/dev/nor/nor.c
628
error = nor_read_page(self, addr, chip->nc_page_cache);
sys/dev/nor/nor.c
635
error = nor_program_page(self, addr, chip->nc_page_cache);
sys/dev/nor/nor.c
649
if (nor_isbad(self, addr)) {
sys/dev/nor/nor.c
650
aprint_error_dev(self,
sys/dev/nor/nor.c
659
error = nor_read_page(self, addr, chip->nc_page_cache);
sys/dev/nor/nor.c
668
error = nor_program_page(self, addr,
sys/dev/nor/nor.c
679
error = nor_read_page(self, addr, chip->nc_page_cache);
sys/dev/nor/nor.c
686
error = nor_program_page(self, addr,
sys/dev/nor/nor.c
703
error = nor_program_page(self, addr, bufp);
sys/dev/nor/nor.c
724
nor_flash_write(device_t self, flash_off_t offset, size_t len,
sys/dev/nor/nor.c
727
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
744
return nor_flash_write_unaligned(self,
sys/dev/nor/nor.c
759
if (nor_isbad(self, addr)) {
sys/dev/nor/nor.c
760
aprint_error_dev(self,
sys/dev/nor/nor.c
768
error = nor_program_page(self, addr, bufp);
sys/dev/nor/nor.c
788
nor_flash_read_unaligned(device_t self, flash_off_t offset, size_t len,
sys/dev/nor/nor.c
791
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
811
error = nor_read_page(self, addr, chip->nc_page_cache);
sys/dev/nor/nor.c
824
error = nor_read_page(self, addr, chip->nc_page_cache);
sys/dev/nor/nor.c
860
nor_flash_read(device_t self, flash_off_t offset, size_t len,
sys/dev/nor/nor.c
863
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
894
return nor_flash_read_unaligned(self,
sys/dev/nor/nor.c
906
if (nor_isbad(self, addr)) {
sys/dev/nor/nor.c
907
aprint_error_dev(self, "bad block encountered\n");
sys/dev/nor/nor.c
912
error = nor_read_page(self, addr, bufp);
sys/dev/nor/nor.c
927
nor_flash_isbad(device_t self, flash_off_t ofs, bool * const isbad)
sys/dev/nor/nor.c
929
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.c
951
result = nor_isbad(self, ofs);
sys/dev/nor/nor.c
963
nor_flash_markbad(device_t self, flash_off_t ofs)
sys/dev/nor/nor.c
965
struct nor_softc * const sc = device_private(self);
sys/dev/nor/nor.h
104
int (*scan_media)(device_t self, struct nor_chip *chip);
sys/dev/nor/nor.h
163
nor_select(device_t self, bool enable)
sys/dev/nor/nor.h
165
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
174
nor_read_1(device_t self, flash_off_t offset, uint8_t *data)
sys/dev/nor/nor.h
176
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
185
nor_read_2(device_t self, flash_off_t offset, uint16_t *data)
sys/dev/nor/nor.h
187
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
196
nor_read_4(device_t self, flash_off_t offset, uint32_t *data)
sys/dev/nor/nor.h
198
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
207
nor_write_1(device_t self, flash_off_t offset, uint8_t data)
sys/dev/nor/nor.h
209
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
218
nor_write_2(device_t self, flash_off_t offset, uint16_t data)
sys/dev/nor/nor.h
220
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
229
nor_write_4(device_t self, flash_off_t offset, uint16_t data)
sys/dev/nor/nor.h
231
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
240
nor_read_buf_1(device_t self, flash_off_t offset, void *buf, size_t size)
sys/dev/nor/nor.h
242
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
251
nor_read_buf_2(device_t self, flash_off_t offset, void *buf, size_t size)
sys/dev/nor/nor.h
253
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
262
nor_read_buf_4(device_t self, flash_off_t offset, void *buf, size_t size)
sys/dev/nor/nor.h
264
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
273
nor_write_buf_1(device_t self, flash_off_t offset, const void *buf, size_t size)
sys/dev/nor/nor.h
275
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
284
nor_write_buf_2(device_t self, flash_off_t offset, const void *buf, size_t size)
sys/dev/nor/nor.h
286
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
295
nor_write_buf_4(device_t self, flash_off_t offset, const void *buf, size_t size)
sys/dev/nor/nor.h
297
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
306
nor_read_page(device_t self, flash_off_t offset, uint8_t *data)
sys/dev/nor/nor.h
308
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
312
return sc->sc_nor_if->read_page(self, offset, data);
sys/dev/nor/nor.h
316
nor_program_page(device_t self, flash_off_t offset, const uint8_t *data)
sys/dev/nor/nor.h
318
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
322
return sc->sc_nor_if->program_page(self, offset, data);
sys/dev/nor/nor.h
326
nor_erase_all(device_t self)
sys/dev/nor/nor.h
328
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
332
return sc->sc_nor_if->erase_all(self);
sys/dev/nor/nor.h
336
nor_erase_block(device_t self, flash_off_t offset)
sys/dev/nor/nor.h
338
struct nor_softc *sc = device_private(self);
sys/dev/nor/nor.h
342
return sc->sc_nor_if->erase_block(self, offset);
sys/dev/nvmm/nvmm.c
1296
nvmm_match(device_t self, cfdata_t cfdata, void *arg)
sys/dev/nvmm/nvmm.c
1302
nvmm_attach(device_t parent, device_t self, void *aux)
sys/dev/nvmm/nvmm.c
1309
aprint_normal_dev(self, "attached, using backend %s\n",
sys/dev/nvmm/nvmm.c
1312
pmf_device_register(self, nvmm_suspend, nvmm_resume);
sys/dev/nvmm/nvmm.c
1316
nvmm_detach(device_t self, int flags)
sys/dev/nvmm/nvmm.c
1320
pmf_device_deregister(self);
sys/dev/nvmm/nvmm.c
1382
nvmm_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/nvmm/nvmm.c
1429
nvmm_resume(device_t self, const pmf_qual_t *qual)
sys/dev/ofisa/atppc_ofisa.c
100
atppc_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/atppc_ofisa.c
102
struct atppc_softc *sc = device_private(self);
sys/dev/ofisa/atppc_ofisa.c
103
struct atppc_ofisa_softc *asc = device_private(self);
sys/dev/ofisa/atppc_ofisa.c
117
n = lpt_ofisa_md_reg_fixup(parent, self, aux, &reg, 1, n);
sys/dev/ofisa/atppc_ofisa.c
127
n = lpt_ofisa_md_intr_fixup(parent, self, aux, &intr, 1, n);
sys/dev/ofisa/atppc_ofisa.c
142
sc->sc_dev = self;
sys/dev/ofisa/atppc_ofisa.c
151
aprint_error_dev(self, "attempt to map bus space failed, device not "
sys/dev/ofisa/com_ofisa.c
105
sc->sc_dev = self;
sys/dev/ofisa/com_ofisa.c
116
n = com_ofisa_md_reg_fixup(parent, self, aux, &reg, 1, n);
sys/dev/ofisa/com_ofisa.c
130
n = com_ofisa_md_intr_fixup(parent, self, aux, &intr, 1, n);
sys/dev/ofisa/com_ofisa.c
91
com_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/com_ofisa.c
93
struct com_ofisa_softc *osc = device_private(self);
sys/dev/ofisa/ess_ofisa.c
159
ofisa_print_model(self, aa->oba.oba_phandle);
sys/dev/ofisa/ess_ofisa.c
76
ess_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/ess_ofisa.c
78
struct ess_softc *sc = device_private(self);
sys/dev/ofisa/ess_ofisa.c
85
sc->sc_dev = self;
sys/dev/ofisa/if_cs_ofisa.c
104
sc->sc_dev = self;
sys/dev/ofisa/if_cs_ofisa.c
125
n = cs_ofisa_md_reg_fixup(parent, self, aux, reg, 2, n);
sys/dev/ofisa/if_cs_ofisa.c
160
n = cs_ofisa_md_intr_fixup(parent, self, aux, &intr, 1, n);
sys/dev/ofisa/if_cs_ofisa.c
176
n = cs_ofisa_md_dma_fixup(parent, self, aux, &dma, 1, n);
sys/dev/ofisa/if_cs_ofisa.c
212
media = cs_ofisa_md_media_fixup(parent, self, aux, media, &nmedia,
sys/dev/ofisa/if_cs_ofisa.c
222
aprint_normal_dev(self, "%s\n", message);
sys/dev/ofisa/if_cs_ofisa.c
225
aprint_error_dev(self, "unable to get default media\n");
sys/dev/ofisa/if_cs_ofisa.c
232
aprint_error_dev(self, "unable to establish interrupt\n");
sys/dev/ofisa/if_cs_ofisa.c
237
sc->sc_cfgflags |= cs_ofisa_md_cfgflags_fixup(parent, self, aux);
sys/dev/ofisa/if_cs_ofisa.c
91
cs_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/if_cs_ofisa.c
93
struct cs_softc_isa *isc = device_private(self);
sys/dev/ofisa/joy_ofisa.c
108
sc->sc_dev = self;
sys/dev/ofisa/joy_ofisa.c
75
joy_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/joy_ofisa.c
77
struct joy_ofisa_softc *osc = device_private(self);
sys/dev/ofisa/lpt_ofisa.c
107
sc->sc_dev = self;
sys/dev/ofisa/lpt_ofisa.c
111
n = lpt_ofisa_md_reg_fixup(parent, self, aux, &reg, 1, n);
sys/dev/ofisa/lpt_ofisa.c
125
n = lpt_ofisa_md_intr_fixup(parent, self, aux, &intr, 1, n);
sys/dev/ofisa/lpt_ofisa.c
91
lpt_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/lpt_ofisa.c
93
struct lpt_ofisa_softc *osc = device_private(self);
sys/dev/ofisa/mcclock_ofisa.c
122
mcclock_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/mcclock_ofisa.c
124
struct mc146818_softc *sc = device_private(self);
sys/dev/ofisa/mcclock_ofisa.c
131
sc->sc_dev = self;
sys/dev/ofisa/mcclock_ofisa.c
135
n = mcclock_ofisa_md_reg_fixup(parent, self, aux, &reg, 1, n);
sys/dev/ofisa/mcclock_ofisa.c
181
aprint_error_dev(self,
sys/dev/ofisa/ofisa.c
109
ofisaattach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/ofisa.c
127
isa_dmainit(iba.iba_ic, iba.iba_iot, iba.iba_dmat, self);
sys/dev/ofisa/ofisa.c
130
devhandle_t selfh = device_handle(self);
sys/dev/ofisa/ofisa.c
145
config_found(self, &aa, ofisaprint,
sys/dev/ofisa/ofisa.c
399
ofisa_print_model(device_t self, int phandle)
sys/dev/ofisa/ofisa.c
417
if (self)
sys/dev/ofisa/ofisa.c
418
aprint_normal_dev(self, "");
sys/dev/ofisa/pckbc_ofisa.c
100
sc->sc_dv = self;
sys/dev/ofisa/pckbc_ofisa.c
87
pckbc_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/pckbc_ofisa.c
89
struct pckbc_ofisa_softc *osc = device_private(self);
sys/dev/ofisa/sb_ofisa.c
179
ofisa_print_model(self, aa->oba.oba_phandle);
sys/dev/ofisa/sb_ofisa.c
82
sb_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/sb_ofisa.c
84
struct sbdsp_softc *sc = device_private(self);
sys/dev/ofisa/sb_ofisa.c
91
sc->sc_dev = self;
sys/dev/ofisa/wdc_ofisa.c
110
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/ofisa/wdc_ofisa.c
115
n = wdc_ofisa_md_reg_fixup(parent, self, aux, reg, 2, n);
sys/dev/ofisa/wdc_ofisa.c
129
n = wdc_ofisa_md_intr_fixup(parent, self, aux, &intr, 1, n);
sys/dev/ofisa/wdc_ofisa.c
171
aprint_verbose_dev(self, "registers: ");
sys/dev/ofisa/wdc_ofisa.c
174
aprint_verbose_dev(self, "interrupts: ");
sys/dev/ofisa/wdc_ofisa.c
93
wdc_ofisa_attach(device_t parent, device_t self, void *aux)
sys/dev/ofisa/wdc_ofisa.c
95
struct wdc_ofisa_softc *sc = device_private(self);
sys/dev/ofw/ofcons.c
111
ofcons_attach(device_t parent, device_t self, void *aux)
sys/dev/ofw/ofcons.c
113
struct ofcons_softc *sc = device_private(self);
sys/dev/ofw/ofdisk.c
138
ofdisk_attach(device_t parent, device_t self, void *aux)
sys/dev/ofw/ofdisk.c
140
struct ofdisk_softc *of = device_private(self);
sys/dev/ofw/ofdisk.c
145
of->sc_dev = self;
sys/dev/ofw/ofnet.c
105
ofnet_attach(device_t parent, device_t self, void *aux)
sys/dev/ofw/ofnet.c
107
struct ofnet_softc *of = device_private(self);
sys/dev/ofw/ofnet.c
114
of->sc_dev = self;
sys/dev/ofw/ofrtc.c
119
ofrtc_attach(device_t parent, device_t self, void *aux)
sys/dev/ofw/ofrtc.c
121
struct ofrtc_softc *of = device_private(self);
sys/dev/ofw/ofrtc.c
153
of->sc_todr.todr_dev = self;
sys/dev/onewire/ds28e17iic.c
603
ds28e17iic_attach(device_t parent, device_t self, void *aux)
sys/dev/onewire/ds28e17iic.c
605
struct ds28e17iic_softc *sc = device_private(self);
sys/dev/onewire/ds28e17iic.c
613
sc->sc_dv = self;
sys/dev/onewire/ds28e17iic.c
623
aprint_error_dev(self, "Can't setup sysctl tree (%d)\n", err);
sys/dev/onewire/ds28e17iic.c
664
sc->sc_i2c_dev = iicbus_attach(self, &sc->sc_i2c_tag);
sys/dev/onewire/ds28e17iic.c
668
ds28e17iic_detach(device_t self, int flags)
sys/dev/onewire/ds28e17iic.c
670
struct ds28e17iic_softc *sc = device_private(self);
sys/dev/onewire/ds28e17iic.c
675
err = config_detach_children(self, flags);
sys/dev/onewire/ds28e17iic.c
685
ds28e17iic_activate(device_t self, enum devact act)
sys/dev/onewire/ds28e17iic.c
687
struct ds28e17iic_softc *sc = device_private(self);
sys/dev/onewire/onewire.c
121
onewire_attach(device_t parent, device_t self, void *aux)
sys/dev/onewire/onewire.c
123
struct onewire_softc *sc = device_private(self);
sys/dev/onewire/onewire.c
126
sc->sc_dev = self;
sys/dev/onewire/onewire.c
135
onewire_thread, sc, &sc->sc_thread, "%s", device_xname(self)) != 0) {
sys/dev/onewire/onewire.c
136
aprint_error_dev(self, "can't create kernel thread\n");
sys/dev/onewire/onewire.c
144
onewire_detach(device_t self, int flags)
sys/dev/onewire/onewire.c
146
struct onewire_softc *sc = device_private(self);
sys/dev/onewire/onewire.c
165
onewire_activate(device_t self, enum devact act)
sys/dev/onewire/onewire.c
167
struct onewire_softc *sc = device_private(self);
sys/dev/onewire/oweeprom.c
82
oweeprom_attach(device_t parent, device_t self, void *aux)
sys/dev/onewire/oweeprom.c
84
struct oweeprom_softc *sc = device_private(self);
sys/dev/onewire/oweeprom.c
91
sc->sc_dev = self;
sys/dev/onewire/owtemp.c
120
owtemp_attach(device_t parent, device_t self, void *aux)
sys/dev/onewire/owtemp.c
122
struct owtemp_softc *sc = device_private(self);
sys/dev/onewire/owtemp.c
127
sc->sc_dv = self;
sys/dev/onewire/owtemp.c
147
device_xname(self), "update");
sys/dev/onewire/owtemp.c
149
device_xname(self), "reset error");
sys/dev/onewire/owtemp.c
151
device_xname(self), "crc error");
sys/dev/onewire/owtemp.c
159
device_xname(self), sizeof(sc->sc_sensor.desc));
sys/dev/onewire/owtemp.c
169
sc->sc_sme->sme_name = device_xname(self);
sys/dev/onewire/owtemp.c
174
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/onewire/owtemp.c
184
owtemp_detach(device_t self, int flags)
sys/dev/onewire/owtemp.c
186
struct owtemp_softc *sc = device_private(self);
sys/dev/onewire/owtemp.c
198
owtemp_activate(device_t self, enum devact act)
sys/dev/onewire/owtemp.c
200
struct owtemp_softc *sc = device_private(self);
sys/dev/pad/pad.c
210
pad_attach(device_t parent, device_t self, void *opaque)
sys/dev/pad/pad.c
212
struct pad_softc *sc = device_private(self);
sys/dev/pad/pad.c
216
aprint_normal_dev(self, "outputs: 44100Hz, 16-bit, stereo\n");
sys/dev/pad/pad.c
218
sc->sc_dev = self;
sys/dev/pad/pad.c
239
pad_detach(device_t self, int flags)
sys/dev/pad/pad.c
241
struct pad_softc *sc = device_private(self);
sys/dev/pad/pad.c
251
error = config_detach_children(self, flags);
sys/dev/pad/pad.c
270
pad_childdet(device_t self, device_t child)
sys/dev/pad/pad.c
272
struct pad_softc *sc = device_private(self);
sys/dev/pad/pad.c
357
device_t self;
sys/dev/pad/pad.c
372
self = config_attach_pseudo(cf);
sys/dev/pad/pad.c
373
if (self == NULL) {
sys/dev/pad/pad.c
377
sc = device_private(self);
sys/dev/pad/pad.c
378
KASSERT(sc->sc_dev == self);
sys/dev/pad/pad.c
398
device_t self = sc->sc_dev;
sys/dev/pad/pad.c
399
cfdata_t cf = device_cfdata(self);
sys/dev/pad/pad.c
434
(void)config_detach(self, DETACH_FORCE);
sys/dev/pci/aac_pci.c
529
aac_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/aac_pci.c
545
pcisc = device_private(self);
sys/dev/pci/aac_pci.c
548
sc->sc_dv = self;
sys/dev/pci/aac_pci.c
590
aac_intr, sc, device_xname(self));
sys/dev/pci/aac_pci.c
605
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/aac_pci.c
643
aac_pci_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/pci/aac_pci.c
646
return aac_devscan(device_private(self));
sys/dev/pci/acardide.c
100
struct pciide_softc *sc = device_private(self);
sys/dev/pci/acardide.c
102
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/acardide.c
97
acardide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/aceride.c
85
aceride_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/aceride.c
88
struct pciide_softc *sc = device_private(self);
sys/dev/pci/aceride.c
90
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/adv_pci.c
108
adv_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/adv_pci.c
111
ASC_SOFTC *sc = device_private(self);
sys/dev/pci/adv_pci.c
122
sc->sc_dev = self;
sys/dev/pci/adv_pci.c
227
device_xname(self));
sys/dev/pci/adw_pci.c
107
sc->sc_dev = self;
sys/dev/pci/adw_pci.c
153
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/adw_pci.c
164
aprint_error_dev(self, "adw_init failed");
sys/dev/pci/adw_pci.c
172
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/adw_pci.c
181
device_xname(self));
sys/dev/pci/adw_pci.c
183
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/adw_pci.c
189
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/adw_pci.c
95
adw_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/adw_pci.c
98
ADW_SOFTC *sc = device_private(self);
sys/dev/pci/agp.c
336
agpattach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp.c
340
struct agp_softc *sc = device_private(self);
sys/dev/pci/agp.c
350
sc->as_dev = self;
sys/dev/pci/agp.c
377
ret = (*ap->ap_attach)(parent, self, pa);
sys/dev/pci/agp.c
385
if (!pmf_device_register(self, NULL, agp_resume))
sys/dev/pci/agp.c
386
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/agp_ali.c
75
agp_ali_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp_ali.c
77
struct agp_softc *sc = device_private(self);
sys/dev/pci/agp_amd.c
167
agp_amd_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp_amd.c
169
struct agp_softc *sc = device_private(self);
sys/dev/pci/agp_amd64.c
200
agp_amd64_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp_amd64.c
202
struct agp_softc *sc = device_private(self);
sys/dev/pci/agp_amd64.c
239
aprint_normal("%s", device_xname(self));
sys/dev/pci/agp_apple.c
79
agp_apple_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp_apple.c
82
struct agp_softc *sc = device_private(self);
sys/dev/pci/agp_i810.c
312
agp_i810_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp_i810.c
314
struct agp_softc *sc = device_private(self);
sys/dev/pci/agp_i810.c
337
return agp_intel_attach(parent, self, aux);
sys/dev/pci/agp_i810.c
459
aprint_error_dev(self, "non-memory device MMIO registers\n");
sys/dev/pci/agp_i810.c
512
aprint_error_dev(self, "can't map aperture: %d\n", error);
sys/dev/pci/agp_i810.c
519
aprint_error_dev(self, "can't find MMIO registers\n");
sys/dev/pci/agp_i810.c
524
aprint_error_dev(self, "MMIO registers too small"
sys/dev/pci/agp_i810.c
534
aprint_error_dev(self, "can't map MMIO registers: %d\n",
sys/dev/pci/agp_i810.c
549
aprint_error_dev(self,
sys/dev/pci/agp_i810.c
574
aprint_error_dev(self, "GTTMMADR too small for GTT"
sys/dev/pci/agp_i810.c
595
aprint_error_dev(self, "can't map GTT: %d\n", error);
sys/dev/pci/agp_i810.c
610
aprint_error_dev(self, "can't map GTT\n");
sys/dev/pci/agp_i810.c
615
aprint_error_dev(self,
sys/dev/pci/agp_i810.c
626
if (!pmf_device_register(self, NULL, agp_i810_resume))
sys/dev/pci/agp_i810.c
627
aprint_error_dev(self, "can't establish power handler\n");
sys/dev/pci/agp_i810.c
630
aprint_normal("%s", device_xname(self));
sys/dev/pci/agp_i810.c
636
pmf_device_deregister(self);
sys/dev/pci/agp_intel.c
107
agp_intel_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp_intel.c
109
struct agp_softc *sc = device_private(self);
sys/dev/pci/agp_intel.c
184
if (!pmf_device_register(self, NULL, agp_intel_resume))
sys/dev/pci/agp_intel.c
185
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/agp_nvidia.c
103
agp_nvidia_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp_nvidia.c
105
struct agp_softc *sc = device_private(self);
sys/dev/pci/agp_nvidia.c
121
aprint_error_dev(self, "Bad chip id\n");
sys/dev/pci/agp_sis.c
74
agp_sis_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp_sis.c
76
struct agp_softc *sc = device_private(self);
sys/dev/pci/agp_via.c
85
agp_via_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/agp_via.c
88
struct agp_softc *sc = device_private(self);
sys/dev/pci/ahc_pci.c
1006
override_ultra = device_getprop_bool(self, "aic7xxx-override-ultra");
sys/dev/pci/ahc_pci.c
756
ahc_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ahc_pci.c
760
struct ahc_softc *ahc = device_private(self);
sys/dev/pci/ahc_pci.c
785
ahc->sc_dev = self;
sys/dev/pci/ahc_pci.c
953
ahc, device_xname(self));
sys/dev/pci/ahcisata_pci.c
312
device_t self = sc->sc_atac.atac_dev;
sys/dev/pci/ahcisata_pci.c
323
snprintf(intr_xname, sizeof(intr_xname), "%s", device_xname(self));
sys/dev/pci/ahcisata_pci.c
361
aprint_error_dev(self,
sys/dev/pci/ahcisata_pci.c
375
device_xname(self), port);
sys/dev/pci/ahcisata_pci.c
384
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/ahcisata_pci.c
390
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/ahcisata_pci.c
400
ahci_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ahcisata_pci.c
403
struct ahci_pci_softc *psc = device_private(self);
sys/dev/pci/ahcisata_pci.c
409
sc->sc_atac.atac_dev = self;
sys/dev/pci/ahcisata_pci.c
415
aprint_error_dev(self, "can't map ahci registers\n");
sys/dev/pci/ahcisata_pci.c
431
aprint_error_dev(self, "can't allocate handler\n");
sys/dev/pci/ahcisata_pci.c
450
aprint_verbose_dev(self, "64-bit DMA%s\n",
sys/dev/pci/ahcisata_pci.c
467
if (!pmf_device_register(self, NULL, ahci_pci_resume))
sys/dev/pci/ahcisata_pci.c
468
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/ahd_pci.c
309
ahd_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ahd_pci.c
312
struct ahd_softc *ahd = device_private(self);
sys/dev/pci/ahd_pci.c
329
ahd->sc_dev = self;
sys/dev/pci/ahd_pci.c
330
ahd_set_name(ahd, device_xname(self));
sys/dev/pci/ahd_pci.c
396
aprint_error_dev(self,
sys/dev/pci/ahd_pci.c
479
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/ahd_pci.c
481
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/ahd_pci.c
531
ahd, device_xname(self));
sys/dev/pci/alipm.c
132
alipm_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/alipm.c
134
struct alipm_softc *sc = device_private(self);
sys/dev/pci/alipm.c
139
sc->sc_dev = self;
sys/dev/pci/amdccp_pci.c
101
amdccp_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/amdccp_pci.c
103
struct amdccp_softc * const sc = device_private(self);
sys/dev/pci/amdccp_pci.c
107
sc->sc_dev = self;
sys/dev/pci/amdccp_pci.c
114
aprint_error_dev(self, "expected MEM register, got IO\n");
sys/dev/pci/amdccp_pci.c
120
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/amdccp_pci.c
125
pmf_device_register(self, NULL, NULL);
sys/dev/pci/amdpm.c
101
struct amdpm_softc *sc = device_private(self);
sys/dev/pci/amdpm.c
109
sc->sc_dev = self;
sys/dev/pci/amdpm.c
133
aprint_error_dev(self, "PMxx space isn't enabled\n");
sys/dev/pci/amdpm.c
139
aprint_normal_dev(self, "power management at 0x%04x\n",
sys/dev/pci/amdpm.c
143
aprint_error_dev(self, "failed to map PMxx space\n");
sys/dev/pci/amdpm.c
150
aprint_error_dev(self, "failed to map PMxx space\n");
sys/dev/pci/amdpm.c
158
acpipmtimer_attach(self, sc->sc_iot, sc->sc_ioh,
sys/dev/pci/amdpm.c
183
aprint_normal_dev(self, ""
sys/dev/pci/amdpm.c
189
NULL, device_xname(self), "rnd hits");
sys/dev/pci/amdpm.c
191
NULL, device_xname(self), "rnd miss");
sys/dev/pci/amdpm.c
194
EVCNT_TYPE_MISC, NULL, device_xname(self),
sys/dev/pci/amdpm.c
201
device_xname(self), RND_TYPE_RNG,
sys/dev/pci/amdpm.c
99
amdpm_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/amr.c
272
amr_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/amr.c
287
amr = device_private(self);
sys/dev/pci/amr.c
288
amr->amr_dv = self;
sys/dev/pci/amr.c
345
device_xname(self));
sys/dev/pci/amr.c
490
amr_rescan(self, NULL, NULL);
sys/dev/pci/amr.c
514
amr_rescan(device_t self, const char *ifattr, const int *ulocs)
sys/dev/pci/amr.c
521
amr = device_private(self);
sys/dev/pci/arcmsr.c
204
arc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/arcmsr.c
206
struct arc_softc *sc = device_private(self);
sys/dev/pci/arcmsr.c
2083
arc_alloc_ccbs(device_t self)
sys/dev/pci/arcmsr.c
2085
struct arc_softc *sc = device_private(self);
sys/dev/pci/arcmsr.c
2099
aprint_error_dev(self, "unable to allocate ccb dmamem\n");
sys/dev/pci/arcmsr.c
2109
aprint_error_dev(self,
sys/dev/pci/arcmsr.c
211
sc->sc_dev = self;
sys/dev/pci/arcmsr.c
217
if (arc_map_pci_resources(self, pa) != 0) {
sys/dev/pci/arcmsr.c
222
if (arc_query_firmware(self) != 0) {
sys/dev/pci/arcmsr.c
227
if (arc_alloc_ccbs(self) != 0) {
sys/dev/pci/arcmsr.c
232
if (!pmf_device_register1(self, NULL, NULL, arc_shutdown))
sys/dev/pci/arcmsr.c
234
device_xname(self));
sys/dev/pci/arcmsr.c
237
adapt->adapt_dev = self;
sys/dev/pci/arcmsr.c
257
sc->sc_scsibus_dv = config_found(self, &sc->sc_chan, scsiprint,
sys/dev/pci/arcmsr.c
268
if (bio_register(self, arc_bioctl) != 0)
sys/dev/pci/arcmsr.c
269
panic("%s: bioctl registration failed\n", device_xname(self));
sys/dev/pci/arcmsr.c
279
device_xname(self));
sys/dev/pci/arcmsr.c
289
arc_detach(device_t self, int flags)
sys/dev/pci/arcmsr.c
291
struct arc_softc *sc = device_private(self);
sys/dev/pci/arcmsr.c
294
aprint_error_dev(self, "timeout waiting to stop bg rebuild\n");
sys/dev/pci/arcmsr.c
297
aprint_error_dev(self, "timeout waiting to flush cache\n");
sys/dev/pci/arcmsr.c
306
arc_shutdown(device_t self, int how)
sys/dev/pci/arcmsr.c
308
struct arc_softc *sc = device_private(self);
sys/dev/pci/arcmsr.c
311
aprint_error_dev(self, "timeout waiting to stop bg rebuild\n");
sys/dev/pci/arcmsr.c
314
aprint_error_dev(self, "timeout waiting to flush cache\n");
sys/dev/pci/arcmsr.c
606
arc_map_pci_resources(device_t self, struct pci_attach_args *pa)
sys/dev/pci/arcmsr.c
608
struct arc_softc *sc = device_private(self);
sys/dev/pci/arcmsr.c
632
arc_intr, sc, device_xname(self));
sys/dev/pci/arcmsr.c
639
aprint_normal_dev(self, "interrupting at %s\n",
sys/dev/pci/arcmsr.c
659
arc_query_firmware(device_t self)
sys/dev/pci/arcmsr.c
661
struct arc_softc *sc = device_private(self);
sys/dev/pci/arcmsr.c
667
aprint_debug_dev(self, "timeout waiting for firmware ok\n");
sys/dev/pci/arcmsr.c
672
aprint_debug_dev(self, "timeout waiting for get config\n");
sys/dev/pci/arcmsr.c
677
aprint_debug_dev(self, "timeout waiting to start bg rebuild\n");
sys/dev/pci/arcmsr.c
684
device_xname(self), htole32(fwinfo.signature));
sys/dev/pci/arcmsr.c
687
aprint_error_dev(self, "invalid firmware info from iop\n");
sys/dev/pci/arcmsr.c
692
device_xname(self), htole32(fwinfo.request_len));
sys/dev/pci/arcmsr.c
694
device_xname(self), htole32(fwinfo.queue_len));
sys/dev/pci/arcmsr.c
696
device_xname(self), htole32(fwinfo.sdram_size));
sys/dev/pci/arcmsr.c
698
device_xname(self), htole32(fwinfo.sata_ports));
sys/dev/pci/arcmsr.c
703
device_xname(self), string);
sys/dev/pci/arcmsr.c
707
aprint_normal_dev(self, "Areca %s Host Adapter RAID controller\n",
sys/dev/pci/arcmsr.c
713
device_xname(self), string);
sys/dev/pci/arcmsr.c
715
aprint_normal_dev(self, "%d ports, %dMB SDRAM, firmware <%s>\n",
sys/dev/pci/arcmsr.c
719
aprint_error_dev(self,
sys/dev/pci/arcmsr.c
732
arc_bioctl(device_t self, u_long cmd, void *addr)
sys/dev/pci/arcmsr.c
734
struct arc_softc *sc = device_private(self);
sys/dev/pci/artsata.c
108
artsata_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/artsata.c
111
struct pciide_softc *sc = device_private(self);
sys/dev/pci/artsata.c
113
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/atppc_puc.c
112
sc->sc_dev = self;
sys/dev/pci/atppc_puc.c
121
atppcintr, sc, device_xname(self));
sys/dev/pci/atppc_puc.c
94
atppc_puc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/atppc_puc.c
96
struct atppc_softc *sc = device_private(self);
sys/dev/pci/atppc_puc.c
97
struct atppc_puc_softc *psc = device_private(self);
sys/dev/pci/auacer.c
242
auacer_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/auacer.c
253
sc = device_private(self);
sys/dev/pci/auacer.c
254
sc->sc_dev = self;
sys/dev/pci/auacer.c
287
auacer_intr, sc, device_xname(self));
sys/dev/pci/auacer.c
319
if (ac97_attach(&sc->host_if, self, &sc->sc_lock) != 0) {
sys/dev/pci/auacer.c
346
if (!pmf_device_register(self, NULL, auacer_resume))
sys/dev/pci/auacer.c
347
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/auich.c
461
auich_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/auich.c
463
struct auich_softc *sc = device_private(self);
sys/dev/pci/auich.c
472
sc->sc_dev = self;
sys/dev/pci/auich.c
522
aprint_error_dev(self, "can't map codec i/o space\n");
sys/dev/pci/auich.c
527
aprint_error_dev(self, "can't map device i/o space\n");
sys/dev/pci/auich.c
544
aprint_error_dev(self, "can't map interrupt\n");
sys/dev/pci/auich.c
551
aprint_error_dev(self, "can't establish interrupt");
sys/dev/pci/auich.c
557
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/auich.c
562
strlcpy(sc->sc_audev.config, device_xname(self), MAX_AUDIO_DEV_LEN);
sys/dev/pci/auich.c
589
aprint_normal_dev(self, "DMA bug workaround enabled\n");
sys/dev/pci/auich.c
626
if (ac97_attach_type(&sc->host_if, self, sc->sc_codectype,
sys/dev/pci/auich.c
656
if (!pmf_device_register(self, NULL, auich_resume))
sys/dev/pci/auich.c
657
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/auich.c
659
config_interrupts(self, auich_finish_attach);
sys/dev/pci/auich.c
666
CTLTYPE_NODE, device_xname(self), NULL, NULL, 0,
sys/dev/pci/auich.c
688
aprint_error_dev(self, "failed to add sysctl nodes. (%d)\n", err);
sys/dev/pci/auich.c
693
auich_childdet(device_t self, device_t child)
sys/dev/pci/auich.c
695
struct auich_softc *sc = device_private(self);
sys/dev/pci/auich.c
702
auich_detach(device_t self, int flags)
sys/dev/pci/auich.c
704
struct auich_softc *sc = device_private(self);
sys/dev/pci/auich.c
708
error = config_detach_children(self, flags);
sys/dev/pci/auich.c
762
auich_finish_attach(device_t self)
sys/dev/pci/auich.c
764
struct auich_softc *sc = device_private(self);
sys/dev/pci/auixp.c
1039
auixp_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/auixp.c
1052
sc = device_private(self);
sys/dev/pci/auixp.c
1053
sc->sc_dev = self;
sys/dev/pci/auixp.c
1119
sc, device_xname(self));
sys/dev/pci/auixp.c
1130
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/auixp.c
1144
if (!pmf_device_register(self, NULL, auixp_resume))
sys/dev/pci/auixp.c
1145
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/auixp.c
1151
config_interrupts(self, auixp_post_config);
sys/dev/pci/auixp.c
1157
auixp_post_config(device_t self)
sys/dev/pci/auixp.c
1164
sc = device_private(self);
sys/dev/pci/auixp.c
1296
auixp_detach(device_t self, int flags)
sys/dev/pci/auixp.c
1300
sc = device_private(self);
sys/dev/pci/auixp.c
1310
pmf_device_deregister(self);
sys/dev/pci/autri.c
497
autri_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/autri.c
509
sc = device_private(self);
sys/dev/pci/autri.c
510
sc->sc_dev = self;
sys/dev/pci/autri.c
537
sc, device_xname(self));
sys/dev/pci/autri.c
570
r = ac97_attach(&codec->host_if, self, &sc->sc_lock);
sys/dev/pci/autri.c
572
aprint_error_dev(self, "can't attach codec (error 0x%X)\n", r);
sys/dev/pci/autri.c
576
if (!pmf_device_register(self, NULL, autri_resume))
sys/dev/pci/autri.c
577
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/auvia.c
283
auvia_childdet(device_t self, device_t child)
sys/dev/pci/auvia.c
289
auvia_detach(device_t self, int flags)
sys/dev/pci/auvia.c
292
struct auvia_softc *sc = device_private(self);
sys/dev/pci/auvia.c
294
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/pci/auvia.c
296
pmf_device_deregister(self);
sys/dev/pci/auvia.c
325
auvia_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/auvia.c
339
sc = device_private(self);
sys/dev/pci/auvia.c
340
sc->sc_dev = self;
sys/dev/pci/auvia.c
421
device_xname(self));
sys/dev/pci/auvia.c
455
if ((r = ac97_attach(&sc->host_if, self, &sc->sc_lock)) != 0) {
sys/dev/pci/auvia.c
481
if (!pmf_device_register(self, NULL, auvia_resume))
sys/dev/pci/auvia.c
482
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/bha_pci.c
101
sc->sc_dev = self;
sys/dev/pci/bha_pci.c
89
bha_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/bha_pci.c
92
struct bha_softc *sc = device_private(self);
sys/dev/pci/bktr/bktr_os.c
1392
bktr_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/bktr/bktr_os.c
1409
bktr = (bktr_ptr_t)self;
sys/dev/pci/bktr/bktr_os.c
1464
bktr = device_private(self);
sys/dev/pci/bktr/bktr_os.c
1465
bktr->bktr_dev = self;
sys/dev/pci/bochsfb.c
108
bochsfb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/bochsfb.c
110
struct bochsfb_softc *sc = device_private(self);
sys/dev/pci/bochsfb.c
111
prop_dictionary_t dict = device_properties(self);
sys/dev/pci/bochsfb.c
121
sc->sc_dev = self;
sys/dev/pci/btvmei.c
115
aprint_error_dev(self, "can't map CSR space\n");
sys/dev/pci/btvmei.c
122
aprint_error_dev(self, "can't map map space\n");
sys/dev/pci/btvmei.c
129
aprint_error_dev(self, "can't get VME range\n");
sys/dev/pci/btvmei.c
145
device_xname(self));
sys/dev/pci/btvmei.c
161
sc->sc_vct.cookie = self;
sys/dev/pci/btvmei.c
180
config_found(self, &vaa, 0, CFARGS_NONE);
sys/dev/pci/btvmei.c
87
b3_617_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/btvmei.c
89
struct b3_617_softc *sc = device_private(self);
sys/dev/pci/btvmei.c
98
sc->sc_dev = self;
sys/dev/pci/btvmeii.c
180
b3_2706_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/btvmeii.c
182
struct b3_2706_softc *sc = device_private(self);
sys/dev/pci/btvmeii.c
214
if (univ_pci_attach(&sc->univdata, &aa, device_xname(self),
sys/dev/pci/btvmeii.c
216
aprint_error_dev(self, "error initializing universe chip\n");
sys/dev/pci/btvmeii.c
230
aprint_error_dev(self, "can't map byteswap register\n");
sys/dev/pci/btvmeii.c
246
aprint_error_dev(self, "VME range not assigned\n");
sys/dev/pci/btvmeii.c
250
aprint_debug_dev(self, "VME window @%lx\n",
sys/dev/pci/btvmeii.c
268
sc->sc_vct.cookie = self;
sys/dev/pci/btvmeii.c
284
config_found(self, &vaa, 0, CFARGS_NONE);
sys/dev/pci/cac_pci.c
143
cac_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/cac_pci.c
157
sc = device_private(self);
sys/dev/pci/cac_pci.c
158
sc->sc_dev = self;
sys/dev/pci/cac_pci.c
193
aprint_error_dev(self, "can't map i/o or memory space\n");
sys/dev/pci/cac_pci.c
211
device_xname(self));
sys/dev/pci/chipsfb.c
87
chipsfb_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/chipsfb.c
89
struct chipsfb_pci_softc *scp = device_private(self);
sys/dev/pci/chipsfb.c
96
sc->sc_dev = self;
sys/dev/pci/ciss_pci.c
151
ciss_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ciss_pci.c
153
struct ciss_softc *sc = device_private(self);
sys/dev/pci/ciss_pci.c
164
sc->sc_dev = self;
sys/dev/pci/ciss_pci.c
182
aprint_error_dev(self, "wrong BAR type\n");
sys/dev/pci/ciss_pci.c
187
aprint_error_dev(self, "can't map controller i/o space\n");
sys/dev/pci/ciss_pci.c
205
aprint_error_dev(self,
sys/dev/pci/ciss_pci.c
216
aprint_error_dev(self, "unfit config space\n");
sys/dev/pci/ciss_pci.c
252
aprint_error_dev(self, "can't map interrupt\n");
sys/dev/pci/ciss_pci.c
272
intr_handler, sc, device_xname(self));
sys/dev/pci/ciss_pci.c
284
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/cmdide.c
116
cmdide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/cmdide.c
119
struct pciide_softc *sc = device_private(self);
sys/dev/pci/cmdide.c
121
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/cmpci.c
355
cmpci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/cmpci.c
365
sc = device_private(self);
sys/dev/pci/cmpci.c
366
sc->sc_dev = self;
sys/dev/pci/cmpci.c
402
cmpci_intr, sc, device_xname(self));
sys/dev/pci/com_puc.c
113
IPL_SERIAL, comintr, sc, device_xname(self));
sys/dev/pci/com_puc.c
155
if (!pmf_device_register(self, NULL, com_resume))
sys/dev/pci/com_puc.c
156
aprint_error_dev(self,
sys/dev/pci/com_puc.c
160
aprint_normal("%s", device_xname(self));
sys/dev/pci/com_puc.c
89
com_puc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/com_puc.c
91
struct com_puc_softc *psc = device_private(self);
sys/dev/pci/com_puc.c
98
sc->sc_dev = self;
sys/dev/pci/coram.c
158
coram_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/coram.c
160
struct coram_softc *sc = device_private(self);
sys/dev/pci/coram.c
170
sc->sc_dev = self;
sys/dev/pci/coram.c
180
aprint_error_dev(self, "couldn't map memory space\n");
sys/dev/pci/coram.c
188
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/coram.c
193
self, device_xname(self));
sys/dev/pci/coram.c
195
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/coram.c
201
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/coram.c
223
cic->cic_i2cdev = iicbus_attach(self, &cic->cic_i2c);
sys/dev/pci/coram.c
266
aprint_error_dev(self, "couldn't open cx24227\n");
sys/dev/pci/coram.c
269
aprint_error_dev(self, "couldn't open mt2131\n");
sys/dev/pci/coram.c
273
if (!pmf_device_register(self, NULL, coram_resume))
sys/dev/pci/coram.c
274
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/coram.c
280
coram_detach(device_t self, int flags)
sys/dev/pci/coram.c
282
struct coram_softc *sc = device_private(self);
sys/dev/pci/coram.c
301
pmf_device_deregister(self);
sys/dev/pci/coram.c
312
coram_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/pci/coram.c
314
struct coram_softc *sc = device_private(self);
sys/dev/pci/coram.c
328
coram_childdet(device_t self, device_t child)
sys/dev/pci/coram.c
330
struct coram_softc *sc = device_private(self);
sys/dev/pci/coram.c
347
device_t self = v;
sys/dev/pci/coram.c
351
sc = device_private(self);
sys/dev/pci/cs4280.c
243
cs4280_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/cs4280.c
257
sc = device_private(self);
sys/dev/pci/cs4280.c
258
sc->sc_dev = self;
sys/dev/pci/cs4280.c
295
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/cs4280.c
328
cs4280_intr, sc, device_xname(self));
sys/dev/pci/cs4280.c
365
if (ac97_attach(&sc->host_if, self, &sc->sc_lock) != 0) {
sys/dev/pci/cs4280.c
376
if (!pmf_device_register(self, cs4280_suspend, cs4280_resume))
sys/dev/pci/cs4280.c
377
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/cs4281.c
183
cs4281_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/cs4281.c
193
sc = device_private(self);
sys/dev/pci/cs4281.c
194
sc->sc_dev = self;
sys/dev/pci/cs4281.c
220
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/cs4281.c
252
cs4281_intr, sc, device_xname(self));
sys/dev/pci/cs4281.c
285
if (ac97_attach(&sc->host_if, self, &sc->sc_lock) != 0) {
sys/dev/pci/cs4281.c
297
if (!pmf_device_register(self, cs4281_suspend, cs4281_resume))
sys/dev/pci/cs4281.c
298
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/cxdtv.c
180
cxdtv_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/cxdtv.c
189
sc = device_private(self);
sys/dev/pci/cxdtv.c
191
sc->sc_dev = self;
sys/dev/pci/cxdtv.c
206
aprint_error_dev(self, "couldn't map memory space\n");
sys/dev/pci/cxdtv.c
213
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/cxdtv.c
218
sc, device_xname(self));
sys/dev/pci/cxdtv.c
220
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/cxdtv.c
226
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/cxdtv.c
253
iicbus_attach(self, &sc->sc_i2c);
sys/dev/pci/cxdtv.c
255
if (!pmf_device_register(self, NULL, cxdtv_resume))
sys/dev/pci/cxdtv.c
256
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/cxdtv.c
262
cxdtv_detach(device_t self, int flags)
sys/dev/pci/cxdtv.c
264
struct cxdtv_softc *sc = device_private(self);
sys/dev/pci/cxdtv.c
267
error = config_detach_children(self, flags);
sys/dev/pci/cxdtv.c
285
cxdtv_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/pci/cxdtv.c
287
struct cxdtv_softc *sc = device_private(self);
sys/dev/pci/cxdtv.c
301
cxdtv_childdet(device_t self, device_t child)
sys/dev/pci/cxdtv.c
303
struct cxdtv_softc *sc = device_private(self);
sys/dev/pci/cxgb/cxgb_main.c
118
static void cxgb_port_attach(device_t dev, device_t self, void *context);
sys/dev/pci/cxgb/cxgb_main.c
688
cxgb_port_attach(device_t parent, device_t self, void *context)
sys/dev/pci/cxgb/cxgb_main.c
696
pd = device_private(self);
sys/dev/pci/cxgb/cxgb_main.c
697
pd->dev = self;
sys/dev/pci/cxgb/cxgb_main.c
708
device_printf(self, "Cannot allocate ifnet\n");
sys/dev/pci/cxgb/cxgb_main.c
791
cxgb_port_detach(device_t self, int flags)
sys/dev/pci/cxgb/cxgb_main.c
795
p = device_private(self);
sys/dev/pci/cy_pci.c
141
sc, device_xname(self));
sys/dev/pci/cy_pci.c
87
cy_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/cy_pci.c
89
struct cy_pci_softc *psc = device_private(self);
sys/dev/pci/cy_pci.c
98
sc->sc_dev = self;
sys/dev/pci/cypide.c
78
cypide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/cypide.c
81
struct pciide_softc *sc = device_private(self);
sys/dev/pci/cypide.c
83
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/cz.c
284
cz_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/cz.c
287
struct cz_softc *cz = device_private(self);
sys/dev/pci/cz.c
299
cz->cz_dev = self;
sys/dev/pci/cz.c
348
cz_intr, cz, device_xname(self));
sys/dev/pci/dpt_pci.c
125
device_xname(self));
sys/dev/pci/dpt_pci.c
80
dpt_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/dpt_pci.c
93
sc = device_private(self);
sys/dev/pci/dpt_pci.c
94
sc->sc_dev = self;
sys/dev/pci/eap.c
524
eap_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/eap.c
543
sc = device_private(self);
sys/dev/pci/eap.c
544
sc->sc_dev = self;
sys/dev/pci/eap.c
610
device_xname(self));
sys/dev/pci/eap.c
618
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/eap.c
620
sc->sc_ei[EAP_I1].parent = self;
sys/dev/pci/eap.c
622
sc->sc_ei[EAP_I2].parent = self;
sys/dev/pci/eap.c
716
if (ac97_attach(&sc->host_if, self, &sc->sc_lock) == 0) {
sys/dev/pci/eap.c
729
aprint_normal_dev(self, "attaching secondary DAC\n");
sys/dev/pci/eap.c
748
eap_detach(device_t self, int flags)
sys/dev/pci/eap.c
755
sc = device_private(self);
sys/dev/pci/eap.c
764
sc = device_private(self);
sys/dev/pci/ehci_pci.c
117
ehci_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ehci_pci.c
119
struct ehci_pci_softc *sc = device_private(self);
sys/dev/pci/ehci_pci.c
130
sc->sc.sc_dev = self;
sys/dev/pci/ehci_pci.c
143
aprint_error_dev(self, "can't map memory space\n");
sys/dev/pci/ehci_pci.c
153
aprint_verbose_dev(self, "64-bit DMA");
sys/dev/pci/ehci_pci.c
162
aprint_verbose_dev(self, "32-bit DMA\n");
sys/dev/pci/ehci_pci.c
168
DPRINTF(("%s: offs=%d\n", device_xname(self), sc->sc.sc_offs));
sys/dev/pci/ehci_pci.c
194
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/ehci_pci.c
204
ehci_intr, sc, device_xname(self));
sys/dev/pci/ehci_pci.c
206
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/ehci_pci.c
212
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/ehci_pci.c
219
aprint_verbose_dev(self, "pre-2.0 USB rev, device ignored\n");
sys/dev/pci/ehci_pci.c
234
aprint_normal_dev(self, "dropped intr workaround enabled\n");
sys/dev/pci/ehci_pci.c
266
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/dev/pci/ehci_pci.c
271
pmf_device_register1(self, ehci_pci_suspend, ehci_pci_resume,
sys/dev/pci/ehci_pci.c
275
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/dev/pci/ehci_pci.c
281
pmf_device_register(self, NULL, NULL);
sys/dev/pci/ehci_pci.c
308
ehci_pci_detach(device_t self, int flags)
sys/dev/pci/ehci_pci.c
310
struct ehci_pci_softc *sc = device_private(self);
sys/dev/pci/ehci_pci.c
319
pmf_device_deregister(self);
sys/dev/pci/ehci_pci.c
320
ehci_shutdown(self, flags);
sys/dev/pci/emuxki.c
373
emuxki_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/emuxki.c
383
sc = device_private(self);
sys/dev/pci/emuxki.c
384
sc->sc_dev = self;
sys/dev/pci/emuxki.c
394
aprint_normal_dev(self, "%s [%s]\n", sb->sb_name, sb->sb_board);
sys/dev/pci/emuxki.c
406
aprint_error_dev(self,
sys/dev/pci/emuxki.c
424
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/emuxki.c
430
emuxki_intr, sc, device_xname(self));
sys/dev/pci/emuxki.c
432
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/emuxki.c
438
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/emuxki.c
467
sc->sc_audev = audio_attach_mi(&emuxki_hw_if, sc, self);
sys/dev/pci/emuxki.c
483
emuxki_detach(device_t self, int flags)
sys/dev/pci/emuxki.c
485
struct emuxki_softc *sc = device_private(self);
sys/dev/pci/emuxki.c
488
error = config_detach_children(self, flags);
sys/dev/pci/esa.c
1000
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/esa.c
1065
if (ac97_attach(&sc->host_if, self, &sc->sc_lock) != 0) {
sys/dev/pci/esa.c
1079
if (!pmf_device_register(self, esa_suspend, esa_resume))
sys/dev/pci/esa.c
1080
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/esa.c
1086
esa_childdet(device_t self, device_t child)
sys/dev/pci/esa.c
1088
struct esa_softc *sc = device_private(self);
sys/dev/pci/esa.c
1101
esa_detach(device_t self, int flags)
sys/dev/pci/esa.c
1103
struct esa_softc *sc = device_private(self);
sys/dev/pci/esa.c
1106
error = config_detach_children(self, flags);
sys/dev/pci/esa.c
926
esa_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/esa.c
939
sc = device_private(self);
sys/dev/pci/esa.c
970
sc->sc_dev = self;
sys/dev/pci/esa.c
987
device_xname(self));
sys/dev/pci/esiop_pci.c
71
esiop_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/esiop_pci.c
74
struct esiop_pci_softc *sc = device_private(self);
sys/dev/pci/esiop_pci.c
76
sc->esiop.sc_c.sc_dev = self;
sys/dev/pci/esm.c
1492
esm_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/esm.c
1506
ess = device_private(self);
sys/dev/pci/esm.c
1507
ess->sc_dev = self;
sys/dev/pci/esm.c
1553
device_xname(self));
sys/dev/pci/esm.c
1570
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/esm.c
1622
if (ac97_attach(&ess->host_if, self, &ess->sc_lock) != 0) {
sys/dev/pci/esm.c
1645
if (!pmf_device_register(self, esm_suspend, esm_resume))
sys/dev/pci/esm.c
1646
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/esm.c
1650
esm_childdet(device_t self, device_t child)
sys/dev/pci/esm.c
1656
esm_detach(device_t self, int flags)
sys/dev/pci/esm.c
1659
struct esm_softc *ess = device_private(self);
sys/dev/pci/esm.c
1661
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/pci/esm.c
1663
pmf_device_deregister(self);
sys/dev/pci/eso.c
234
eso_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/eso.c
246
sc = device_private(self);
sys/dev/pci/eso.c
247
sc->sc_dev = self;
sys/dev/pci/eso.c
378
eso_intr, sc, device_xname(self));
sys/dev/pci/eso.c
421
config_defer(self, eso_defer);
sys/dev/pci/eso.c
454
eso_defer(device_t self)
sys/dev/pci/eso.c
460
sc = device_private(self);
sys/dev/pci/fms.c
228
fms_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/fms.c
241
sc = device_private(self);
sys/dev/pci/fms.c
242
sc->sc_dev = self;
sys/dev/pci/fms.c
271
device_xname(self));
sys/dev/pci/fms.c
317
if (ac97_attach(&sc->host_if, self, &sc->sc_lock) != 0) {
sys/dev/pci/fwohci_pci.c
109
psc->psc_sc.fc.dev = self;
sys/dev/pci/fwohci_pci.c
117
aprint_error_dev(self, "can't map OHCI register space\n");
sys/dev/pci/fwohci_pci.c
140
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/fwohci_pci.c
145
fwohci_intr, &psc->psc_sc, device_xname(self));
sys/dev/pci/fwohci_pci.c
147
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/fwohci_pci.c
153
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/fwohci_pci.c
158
if (!pmf_device_register(self, fwohci_pci_suspend, fwohci_pci_resume))
sys/dev/pci/fwohci_pci.c
159
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/fwohci_pci.c
165
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/fwohci_pci.c
166
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/fwohci_pci.c
172
fwohci_pci_detach(device_t self, int flags)
sys/dev/pci/fwohci_pci.c
174
struct fwohci_pci_softc *psc = device_private(self);
sys/dev/pci/fwohci_pci.c
177
pmf_device_deregister(self);
sys/dev/pci/fwohci_pci.c
96
fwohci_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/fwohci_pci.c
99
struct fwohci_pci_softc *psc = device_private(self);
sys/dev/pci/gcscaudio.c
255
gcscaudio_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/gcscaudio.c
264
sc = device_private(self);
sys/dev/pci/gcscaudio.c
266
sc->sc_dev = self;
sys/dev/pci/gcscaudio.c
294
gcscaudio_intr, sc, device_xname(self));
sys/dev/pci/gcscaudio.c
318
if ((rc = ac97_attach(&sc->host_if, self, &sc->sc_lock)) != 0) {
sys/dev/pci/gcscaudio.c
324
if (!pmf_device_register(self, NULL, gcscaudio_resume))
sys/dev/pci/gcscaudio.c
325
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/genfb_pci.c
109
sc->sc_gen.sc_dev = self;
sys/dev/pci/genfb_pci.c
120
pmf_device_register1(self, NULL, NULL,
sys/dev/pci/genfb_pci.c
123
pmf_device_register1(self,
sys/dev/pci/genfb_pci.c
129
aprint_debug_dev(self, "not configured by firmware\n");
sys/dev/pci/genfb_pci.c
142
aprint_error_dev(self,
sys/dev/pci/genfb_pci.c
196
config_found(self, aux, pci_genfb_drm_print,
sys/dev/pci/genfb_pci.c
356
pci_genfb_shutdown(device_t self, int flags)
sys/dev/pci/genfb_pci.c
358
genfb_enable_polling(self);
sys/dev/pci/genfb_pci.c
97
pci_genfb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/genfb_pci.c
99
struct pci_genfb_softc *sc = device_private(self);
sys/dev/pci/geodeide.c
91
geodeide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/geodeide.c
94
struct pciide_softc *sc = device_private(self);
sys/dev/pci/geodeide.c
96
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/gffb.c
211
gffb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/gffb.c
213
struct gffb_softc *sc = device_private(self);
sys/dev/pci/gffb.c
230
sc->sc_dev = self;
sys/dev/pci/gffb.c
261
dict = device_properties(self);
sys/dev/pci/gffb.c
263
aprint_error("%s: no width property\n", device_xname(self));
sys/dev/pci/gffb.c
267
aprint_error("%s: no height property\n", device_xname(self));
sys/dev/pci/gffb.c
277
aprint_error("%s: no depth property\n", device_xname(self));
sys/dev/pci/gffb.c
282
device_xname(self));
sys/dev/pci/gffb.c
330
aprint_normal("%s: %d MB aperture at 0x%08x\n", device_xname(self),
sys/dev/pci/gtp.c
140
gtp_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/gtp.c
142
struct gtp_softc *sc = device_private(self);
sys/dev/pci/gtp.c
144
cfdata_t cf = device_cfdata(self);
sys/dev/pci/gtp.c
177
radio_attach_mi(&gtp_hw_if, sc, self);
sys/dev/pci/hdaudio_pci.c
123
hdaudio_pci_attach(device_t parent, device_t self, void *opaque)
sys/dev/pci/hdaudio_pci.c
125
struct hdaudio_pci_softc *sc = device_private(self);
sys/dev/pci/hdaudio_pci.c
156
aprint_error_dev(self, "couldn't map mmio space\n");
sys/dev/pci/hdaudio_pci.c
167
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/hdaudio_pci.c
173
IPL_AUDIO, hdaudio_pci_intr, sc, device_xname(self));
sys/dev/pci/hdaudio_pci.c
175
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/hdaudio_pci.c
181
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/hdaudio_pci.c
186
if (hdaudio_attach(self, &sc->sc_hdaudio)) {
sys/dev/pci/hdaudio_pci.c
201
if (!pmf_device_register(self, NULL, NULL)) {
sys/dev/pci/hdaudio_pci.c
202
aprint_error_dev(self,
sys/dev/pci/hdaudio_pci.c
205
} else if (!pmf_device_register(self, NULL, hdaudio_pci_resume)) {
sys/dev/pci/hdaudio_pci.c
206
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/hdaudio_pci.c
211
hdaudio_pci_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/pci/hdaudio_pci.c
213
struct hdaudio_pci_softc *sc = device_private(self);
sys/dev/pci/hdaudio_pci.c
219
hdaudio_pci_childdet(device_t self, device_t child)
sys/dev/pci/hdaudio_pci.c
221
struct hdaudio_pci_softc *sc = device_private(self);
sys/dev/pci/hdaudio_pci.c
227
hdaudio_pci_detach(device_t self, int flags)
sys/dev/pci/hdaudio_pci.c
229
struct hdaudio_pci_softc *sc = device_private(self);
sys/dev/pci/hdaudio_pci.c
251
pmf_device_deregister(self);
sys/dev/pci/hdaudio_pci.c
313
hdaudio_pci_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/hdaudio_pci.c
315
struct hdaudio_pci_softc *sc = device_private(self);
sys/dev/pci/hifn7751.c
254
hifn_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/hifn7751.c
256
struct hifn_softc *sc = device_private(self);
sys/dev/pci/hifn7751.c
280
sc->sc_dv = self;
sys/dev/pci/hifn7751.c
378
device_xname(self));
sys/dev/pci/hifn7751.c
472
hifn_detach(device_t self, int flags)
sys/dev/pci/hifn7751.c
474
struct hifn_softc *sc = device_private(self);
sys/dev/pci/hptide.c
100
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/hptide.c
95
hptide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/hptide.c
98
struct pciide_softc *sc = device_private(self);
sys/dev/pci/i82365_pci.c
111
pcic_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/i82365_pci.c
113
struct pcic_pci_softc *psc = device_private(self);
sys/dev/pci/i82365_pci.c
121
sc->dev = self;
sys/dev/pci/i82365_pci.c
188
aprint_error_dev(self, "PCI interrupts not supported\n");
sys/dev/pci/i82365_pci.c
199
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/i82365_pci.c
210
config_defer(self, pcic_pci_callback);
sys/dev/pci/i82365_pci.c
211
config_interrupts(self, pcic_isa_config_interrupts);
sys/dev/pci/i82365_pci.c
215
pcic_pci_callback(device_t self)
sys/dev/pci/i82365_pci.c
217
struct pcic_softc *sc = device_private(self);
sys/dev/pci/ibmcd.c
100
struct ibmcd_softc *sc = device_private(self);
sys/dev/pci/ibmcd.c
110
aprint_error_dev(self, "PCI %s region not found\n",
sys/dev/pci/ibmcd.c
117
if (!pmf_device_register(self, ibmcd_suspend, ibmcd_resume))
sys/dev/pci/ibmcd.c
118
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/ibmcd.c
139
config_found(self, &gba, gpiobus_print, CFARGS_NONE);
sys/dev/pci/ibmcd.c
144
ibmcd_detach(device_t self, int flags)
sys/dev/pci/ibmcd.c
146
struct ibmcd_softc *sc = device_private(self);
sys/dev/pci/ibmcd.c
149
pmf_device_deregister(self);
sys/dev/pci/ibmcd.c
158
ibmcd_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/ibmcd.c
164
ibmcd_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/ibmcd.c
98
ibmcd_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ichsmb.c
186
ichsmb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ichsmb.c
188
struct ichsmb_softc *sc = device_private(self);
sys/dev/pci/ichsmb.c
194
sc->sc_dev = self;
sys/dev/pci/ichsmb.c
200
cv_init(&sc->sc_exec_wait, device_xname(self));
sys/dev/pci/ichsmb.c
207
aprint_error_dev(self, "SMBus disabled\n");
sys/dev/pci/ichsmb.c
214
aprint_error_dev(self, "can't map I/O space\n");
sys/dev/pci/ichsmb.c
222
aprint_normal_dev(self, "interrupting at SMI\n");
sys/dev/pci/ichsmb.c
234
aprint_normal_dev(self, "interrupting at %s\n",
sys/dev/pci/ichsmb.c
243
aprint_normal_dev(self, "polling\n");
sys/dev/pci/ichsmb.c
258
ichsmb_rescan(self, NULL, NULL);
sys/dev/pci/ichsmb.c
260
out: if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/ichsmb.c
261
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/ichsmb.c
267
const device_t self = sc->sc_dev;
sys/dev/pci/ichsmb.c
292
aprint_debug_dev(self, "TCOCTL=0x%"PRIx32"\n", tcoctl);
sys/dev/pci/ichsmb.c
294
aprint_debug_dev(self, "TCO disabled\n");
sys/dev/pci/ichsmb.c
304
aprint_debug_dev(self, "TCOBASE=0x%"PRIx32"\n", tcobase);
sys/dev/pci/ichsmb.c
306
aprint_error_dev(self, "unrecognized TCO space\n");
sys/dev/pci/ichsmb.c
317
aprint_error_dev(self, "failed to map TCO: %d\n", error);
sys/dev/pci/ichsmb.c
341
aprint_debug_dev(self, "P2SBC=0x%x\n", p2sbc);
sys/dev/pci/ichsmb.c
343
aprint_debug_dev(self, "P2SBC=0x%x -> 0x%x\n", p2sbc,
sys/dev/pci/ichsmb.c
347
aprint_debug_dev(self, "SBREG_BAR=0x%08x 0x%08x\n", sbreglo, sbreghi);
sys/dev/pci/ichsmb.c
357
aprint_error_dev(self, "can't map 64-bit SBREG\n");
sys/dev/pci/ichsmb.c
364
aprint_error_dev(self, "failed to map SMBUS sideband: %d\n",
sys/dev/pci/ichsmb.c
382
aprint_debug_dev(self, "PMBASE=0x%"PRIxBUSADDR"\n", pmbase);
sys/dev/pci/ichsmb.c
384
aprint_error_dev(self, "unrecognized PMC space\n");
sys/dev/pci/ichsmb.c
391
aprint_error_dev(self, "failed to map PMC space: %d\n", error);
sys/dev/pci/ichsmb.c
417
device_t self = device_parent(tco);
sys/dev/pci/ichsmb.c
418
struct ichsmb_softc *sc = device_private(self);
sys/dev/pci/ichsmb.c
423
KASSERTMSG(device_is_a(self, "ichsmb"), "%s@%s",
sys/dev/pci/ichsmb.c
424
device_xname(tco), device_xname(self));
sys/dev/pci/ichsmb.c
440
aprint_debug_dev(self, "gc=0x%x -> 0x%x\n", gc, gc1);
sys/dev/pci/ichsmb.c
447
ichsmb_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/pci/ichsmb.c
449
struct ichsmb_softc *sc = device_private(self);
sys/dev/pci/ichsmb.c
452
sc->sc_i2c_device = iicbus_attach(self, &sc->sc_i2c_tag);
sys/dev/pci/ichsmb.c
466
sc->sc_tco_device = config_found(self, &ta, NULL,
sys/dev/pci/ichsmb.c
474
ichsmb_detach(device_t self, int flags)
sys/dev/pci/ichsmb.c
476
struct ichsmb_softc *sc = device_private(self);
sys/dev/pci/ichsmb.c
479
error = config_detach_children(self, flags);
sys/dev/pci/ichsmb.c
511
ichsmb_chdet(device_t self, device_t child)
sys/dev/pci/ichsmb.c
513
struct ichsmb_softc *sc = device_private(self);
sys/dev/pci/icp_pci.c
232
icp_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/icp_pci.c
253
icp = device_private(self);
sys/dev/pci/icp_pci.c
254
icp->icp_dv = self;
sys/dev/pci/icp_pci.c
549
icp, device_xname(self));
sys/dev/pci/icp_pci.c
588
icp_pci_rescan(device_t self, const char *attr, const int *flags)
sys/dev/pci/icp_pci.c
591
icp_rescan_all(device_private(self));
sys/dev/pci/if_age.c
1133
age_shutdown(device_t self, int howto)
sys/dev/pci/if_age.c
1138
sc = device_private(self);
sys/dev/pci/if_age.c
139
age_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_age.c
141
struct age_softc *sc = device_private(self);
sys/dev/pci/if_age.c
154
sc->sc_dev = self;
sys/dev/pci/if_age.c
173
aprint_error_dev(self, "invalid base address register\n");
sys/dev/pci/if_age.c
179
aprint_error_dev(self, "could not map mem space\n");
sys/dev/pci/if_age.c
184
aprint_error_dev(self, "could not map interrupt\n");
sys/dev/pci/if_age.c
193
age_intr, sc, device_xname(self));
sys/dev/pci/if_age.c
195
aprint_error_dev(self, "could not establish interrupt");
sys/dev/pci/if_age.c
201
aprint_normal_dev(self, "%s\n", intrstr);
sys/dev/pci/if_age.c
217
aprint_debug_dev(self, "PCI device revision : 0x%04x\n", sc->age_rev);
sys/dev/pci/if_age.c
218
aprint_debug_dev(self, "Chip id/revision : 0x%04x\n", sc->age_chip_rev);
sys/dev/pci/if_age.c
221
aprint_debug_dev(self, "%d Tx FIFO, %d Rx FIFO\n",
sys/dev/pci/if_age.c
241
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_age.c
280
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/dev/pci/if_age.c
284
aprint_error_dev(self, "no PHY found!\n");
sys/dev/pci/if_age.c
294
if (pmf_device_register1(self, NULL, age_resume, age_shutdown))
sys/dev/pci/if_age.c
295
pmf_class_network_register(self, ifp);
sys/dev/pci/if_age.c
297
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_age.c
314
age_detach(device_t self, int flags)
sys/dev/pci/if_age.c
316
struct age_softc *sc = device_private(self);
sys/dev/pci/if_age.c
320
pmf_device_deregister(self);
sys/dev/pci/if_alc.c
1258
alc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_alc.c
1261
struct alc_softc *sc = device_private(self);
sys/dev/pci/if_alc.c
1279
sc->sc_dev = self;
sys/dev/pci/if_alc.c
1298
aprint_error_dev(self, "invalid base address register\n");
sys/dev/pci/if_alc.c
1304
aprint_error_dev(self, "could not map mem space\n");
sys/dev/pci/if_alc.c
1318
sc, device_xname(self));
sys/dev/pci/if_alc.c
1326
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_alc.c
1447
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_alc.c
1503
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/dev/pci/if_alc.c
1518
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_alc.c
1519
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_alc.c
1521
pmf_class_network_register(self, ifp);
sys/dev/pci/if_alc.c
1537
alc_detach(device_t self, int flags)
sys/dev/pci/if_alc.c
1539
struct alc_softc *sc = device_private(self);
sys/dev/pci/if_ale.c
383
ale_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ale.c
385
struct ale_softc *sc = device_private(self);
sys/dev/pci/if_ale.c
401
sc->sc_dev = self;
sys/dev/pci/if_ale.c
416
aprint_error_dev(self, "invalid base address register\n");
sys/dev/pci/if_ale.c
422
aprint_error_dev(self, "could not map mem space\n");
sys/dev/pci/if_ale.c
427
aprint_error_dev(self, "could not map interrupt\n");
sys/dev/pci/if_ale.c
436
sc, device_xname(self));
sys/dev/pci/if_ale.c
438
aprint_error_dev(self, "could not establish interrupt");
sys/dev/pci/if_ale.c
471
aprint_normal_dev(self, "%s, %s\n", chipname, intrstr);
sys/dev/pci/if_ale.c
495
aprint_debug_dev(self, "PCI device revision : 0x%04x\n", sc->ale_rev);
sys/dev/pci/if_ale.c
496
aprint_debug_dev(self, "Chip id/revision : 0x%04x\n", sc->ale_chip_rev);
sys/dev/pci/if_ale.c
506
aprint_error_dev(self, "chip revision : 0x%04x, %u Tx FIFO "
sys/dev/pci/if_ale.c
531
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_ale.c
570
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/dev/pci/if_ale.c
574
aprint_error_dev(self, "no PHY found!\n");
sys/dev/pci/if_ale.c
584
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_ale.c
585
pmf_class_network_register(self, ifp);
sys/dev/pci/if_ale.c
587
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_ale.c
603
ale_detach(device_t self, int flags)
sys/dev/pci/if_ale.c
605
struct ale_softc *sc = device_private(self);
sys/dev/pci/if_ale.c
609
pmf_device_deregister(self);
sys/dev/pci/if_an_pci.c
116
an_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_an_pci.c
119
struct an_pci_softc *psc = device_private(self);
sys/dev/pci/if_an_pci.c
127
sc->sc_dev = self;
sys/dev/pci/if_an_pci.c
136
aprint_error_dev(self, "unable to map registers\n");
sys/dev/pci/if_an_pci.c
147
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_an_pci.c
152
sc, device_xname(self));
sys/dev/pci/if_an_pci.c
154
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_an_pci.c
160
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_an_pci.c
164
aprint_error_dev(self, "failed to attach controller\n");
sys/dev/pci/if_an_pci.c
169
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_an_pci.c
170
pmf_class_network_register(self, &sc->sc_if);
sys/dev/pci/if_an_pci.c
172
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_aq.c
1708
aq_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_aq.c
1710
struct aq_softc * const sc = device_private(self);
sys/dev/pci/if_aq.c
1719
sc->sc_dev = self;
sys/dev/pci/if_aq.c
1887
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_aq.c
1957
sc->sc_sme->sme_name = device_xname(self);
sys/dev/pci/if_aq.c
2009
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_aq.c
2010
pmf_class_network_register(self, ifp);
sys/dev/pci/if_aq.c
2012
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_aq.c
2018
aq_detach(self, 0);
sys/dev/pci/if_aq.c
2022
aq_detach(device_t self, int flags __unused)
sys/dev/pci/if_aq.c
2024
struct aq_softc * const sc = device_private(self);
sys/dev/pci/if_ath_pci.c
123
ath_pci_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_ath_pci.c
125
struct ath_pci_softc *sc = device_private(self);
sys/dev/pci/if_ath_pci.c
136
ath_pci_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_ath_pci.c
138
struct ath_pci_softc *sc = device_private(self);
sys/dev/pci/if_ath_pci.c
142
ath_intr, &sc->sc_sc, device_xname(self));
sys/dev/pci/if_ath_pci.c
144
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_ath_pci.c
151
ath_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ath_pci.c
153
struct ath_pci_softc *psc = device_private(self);
sys/dev/pci/if_ath_pci.c
162
sc->sc_dev = self;
sys/dev/pci/if_ath_pci.c
179
aprint_error_dev(self, "bad pci register type %d\n",
sys/dev/pci/if_ath_pci.c
185
aprint_error_dev(self, "cannot map register space\n");
sys/dev/pci/if_ath_pci.c
202
ath_intr, sc, device_xname(self));
sys/dev/pci/if_ath_pci.c
208
aprint_verbose_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_ath_pci.c
213
if (pmf_device_register(self, ath_pci_suspend, ath_pci_resume)) {
sys/dev/pci/if_ath_pci.c
214
pmf_class_network_register(self, &sc->sc_if);
sys/dev/pci/if_ath_pci.c
215
pmf_device_suspend(self, &sc->sc_qual);
sys/dev/pci/if_ath_pci.c
217
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_ath_pci.c
230
ath_pci_detach(device_t self, int flags)
sys/dev/pci/if_ath_pci.c
232
struct ath_pci_softc *psc = device_private(self);
sys/dev/pci/if_ath_pci.c
238
pmf_device_deregister(self);
sys/dev/pci/if_athn_pci.c
127
athn_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_athn_pci.c
129
struct athn_pci_softc *psc = device_private(self);
sys/dev/pci/if_athn_pci.c
139
sc->sc_dev = self;
sys/dev/pci/if_athn_pci.c
188
aprint_error_dev(self, "bad pci register type %d\n",
sys/dev/pci/if_athn_pci.c
195
aprint_error_dev(self, "cannot map register space\n");
sys/dev/pci/if_athn_pci.c
203
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_athn_pci.c
209
IPL_NET, athn_intr, sc, device_xname(self));
sys/dev/pci/if_athn_pci.c
211
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_athn_pci.c
219
aprint_verbose_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_athn_pci.c
221
if (pmf_device_register(self, athn_pci_suspend, athn_pci_resume)) {
sys/dev/pci/if_athn_pci.c
222
pmf_class_network_register(self, &sc->sc_if);
sys/dev/pci/if_athn_pci.c
223
pmf_device_suspend(self, &sc->sc_qual);
sys/dev/pci/if_athn_pci.c
226
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_athn_pci.c
242
athn_pci_detach(device_t self, int flags)
sys/dev/pci/if_athn_pci.c
244
struct athn_pci_softc *psc = device_private(self);
sys/dev/pci/if_athn_pci.c
260
athn_pci_activate(device_t self, enum devact act)
sys/dev/pci/if_athn_pci.c
262
struct athn_pci_softc *psc = device_private(self);
sys/dev/pci/if_athn_pci.c
274
athn_pci_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_athn_pci.c
276
struct athn_pci_softc *psc = device_private(self);
sys/dev/pci/if_athn_pci.c
288
athn_pci_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_athn_pci.c
290
struct athn_pci_softc *psc = device_private(self);
sys/dev/pci/if_athn_pci.c
303
IPL_NET, athn_intr, sc, device_xname(self));
sys/dev/pci/if_athn_pci.c
305
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_atw_pci.c
136
atw_pci_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_atw_pci.c
138
struct atw_pci_softc *psc = device_private(self);
sys/dev/pci/if_atw_pci.c
143
IPL_NET, atw_intr, sc, device_xname(self));
sys/dev/pci/if_atw_pci.c
153
atw_pci_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_atw_pci.c
155
struct atw_pci_softc *psc = device_private(self);
sys/dev/pci/if_atw_pci.c
161
return atw_suspend(self, qual);
sys/dev/pci/if_atw_pci.c
165
atw_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_atw_pci.c
167
struct atw_pci_softc *psc = device_private(self);
sys/dev/pci/if_atw_pci.c
179
sc->sc_dev = self;
sys/dev/pci/if_atw_pci.c
199
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/if_atw_pci.c
201
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_atw_pci.c
222
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_atw_pci.c
255
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_atw_pci.c
260
atw_intr, sc, device_xname(self));
sys/dev/pci/if_atw_pci.c
262
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_atw_pci.c
269
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_atw_pci.c
280
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_bce.c
1368
bce_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_bce.c
1370
struct bce_softc *sc = device_private(self);
sys/dev/pci/if_bce.c
1379
bce_mii_read(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_bce.c
1381
struct bce_softc *sc = device_private(self);
sys/dev/pci/if_bce.c
1413
bce_mii_write(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_bce.c
1415
struct bce_softc *sc = device_private(self);
sys/dev/pci/if_bce.c
238
bce_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_bce.c
240
struct bce_softc *sc = device_private(self);
sys/dev/pci/if_bce.c
258
sc->bce_dev = self;
sys/dev/pci/if_bce.c
268
aprint_error_dev(self,
sys/dev/pci/if_bce.c
286
aprint_error_dev(self, "failed to enable memory mapping!\n");
sys/dev/pci/if_bce.c
298
aprint_error_dev(self, "unable to find mem space\n");
sys/dev/pci/if_bce.c
311
aprint_error_dev(self,
sys/dev/pci/if_bce.c
316
aprint_normal_dev(self,
sys/dev/pci/if_bce.c
322
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_bce.c
328
sc, device_xname(self));
sys/dev/pci/if_bce.c
331
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/pci/if_bce.c
337
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_bce.c
354
aprint_error_dev(self,
sys/dev/pci/if_bce.c
362
aprint_error_dev(self,
sys/dev/pci/if_bce.c
371
aprint_error_dev(self,
sys/dev/pci/if_bce.c
393
aprint_error_dev(self,
sys/dev/pci/if_bce.c
403
aprint_error_dev(self,
sys/dev/pci/if_bce.c
411
strcpy(ifp->if_xname, device_xname(self));
sys/dev/pci/if_bce.c
469
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_bce.c
472
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/dev/pci/if_bce.c
477
if (pmf_device_register(self, NULL, bce_resume))
sys/dev/pci/if_bce.c
478
pmf_class_network_register(self, ifp);
sys/dev/pci/if_bce.c
480
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_bge.c
3223
bge_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_bge.c
3225
struct bge_softc * const sc = device_private(self);
sys/dev/pci/if_bge.c
3252
sc->bge_dev = self;
sys/dev/pci/if_bge.c
3599
if (device_getprop_bool(self, "without-seeprom"))
sys/dev/pci/if_bge.c
3652
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_bge.c
3799
aprint_error_dev(self,
sys/dev/pci/if_bge.c
3944
dict = device_properties(self);
sys/dev/pci/if_bge.c
4083
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_bge.c
4084
pmf_class_network_register(self, ifp);
sys/dev/pci/if_bge.c
4086
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_bge.c
4102
bge_detach(device_t self, int flags __unused)
sys/dev/pci/if_bge.c
4104
struct bge_softc * const sc = device_private(self);
sys/dev/pci/if_bnx.c
573
bnx_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_bnx.c
576
struct bnx_softc *sc = device_private(self);
sys/dev/pci/if_bnx.c
600
sc->bnx_dev = self;
sys/dev/pci/if_bnx.c
862
memcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_bnx.c
874
if (workqueue_create(&sc->bnx_wq, device_xname(self),
sys/dev/pci/if_bnx.c
876
aprint_error_dev(self, "failed to create workqueue\n");
sys/dev/pci/if_bnx.c
892
dict = device_properties(self);
sys/dev/pci/if_bnx.c
904
mii_attach(self, mii, 0xffffffff,
sys/dev/pci/if_bnx.c
908
aprint_error_dev(self, "no PHY found!\n");
sys/dev/pci/if_bnx.c
924
bnx_intr, sc, device_xname(self));
sys/dev/pci/if_bnx.c
926
aprint_error_dev(self, "couldn't establish interrupt%s%s\n",
sys/dev/pci/if_bnx.c
932
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_bnx.c
933
pmf_class_network_register(self, ifp);
sys/dev/pci/if_bnx.c
935
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_bwfm_pci.c
409
bwfm_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_bwfm_pci.c
411
struct bwfm_pci_softc *sc = device_private(self);
sys/dev/pci/if_bwfm_pci.c
416
sc->sc_sc.sc_dev = self;
sys/dev/pci/if_bwfm_pci.c
449
bwfm_pci_intr, sc, device_xname(self));
sys/dev/pci/if_bwfm_pci.c
459
config_mountroot(self, bwfm_pci_attachhook);
sys/dev/pci/if_bwfm_pci.c
469
bwfm_pci_attachhook(device_t self)
sys/dev/pci/if_bwfm_pci.c
471
struct bwfm_pci_softc *sc = device_private(self);
sys/dev/pci/if_bwfm_pci.c
840
bwfm_pci_detach(device_t self, int flags)
sys/dev/pci/if_bwfm_pci.c
842
struct bwfm_pci_softc *sc = device_private(self);
sys/dev/pci/if_bwi_pci.c
125
bwi_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_bwi_pci.c
127
struct bwi_pci_softc *psc = device_private(self);
sys/dev/pci/if_bwi_pci.c
139
sc->sc_dev = self;
sys/dev/pci/if_bwi_pci.c
151
aprint_error_dev(self, "invalid base address register\n");
sys/dev/pci/if_bwi_pci.c
157
aprint_error_dev(self, "could not map mem space\n");
sys/dev/pci/if_bwi_pci.c
163
aprint_error_dev(self, "could not map interrupt\n");
sys/dev/pci/if_bwi_pci.c
170
sc, device_xname(self));
sys/dev/pci/if_bwi_pci.c
172
aprint_error_dev(self, "could not establish interrupt");
sys/dev/pci/if_bwi_pci.c
178
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_bwi_pci.c
191
if (!pmf_device_register(self, bwi_suspend, bwi_resume))
sys/dev/pci/if_bwi_pci.c
192
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_bwi_pci.c
212
bwi_pci_detach(device_t self, int flags)
sys/dev/pci/if_bwi_pci.c
214
struct bwi_pci_softc *psc = device_private(self);
sys/dev/pci/if_bwi_pci.c
217
pmf_device_deregister(self);
sys/dev/pci/if_cas.c
1651
cas_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_cas.c
1653
struct cas_softc *sc = device_private(self);
sys/dev/pci/if_cas.c
1683
cas_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_cas.c
1685
struct cas_softc *sc = device_private(self);
sys/dev/pci/if_cas.c
1766
cas_pcs_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_cas.c
1768
struct cas_softc *sc = device_private(self);
sys/dev/pci/if_cas.c
1805
cas_pcs_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_cas.c
1807
struct cas_softc *sc = device_private(self);
sys/dev/pci/if_cas.c
1908
cas_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_cas.c
1910
struct cas_softc *sc = device_private(self);
sys/dev/pci/if_cas.c
1924
cas_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_cas.c
1926
struct cas_softc *sc = device_private(self);
sys/dev/pci/if_cas.c
1976
cas_shutdown(device_t self, int howto)
sys/dev/pci/if_cas.c
1978
struct cas_softc *sc = device_private(self);
sys/dev/pci/if_cas.c
397
cas_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_cas.c
401
struct cas_softc *sc = device_private(self);
sys/dev/pci/if_cas.c
404
sc->sc_dev = self;
sys/dev/pci/if_cas.c
732
cas_detach(device_t self, int flags)
sys/dev/pci/if_cas.c
735
struct cas_softc *sc = device_private(self);
sys/dev/pci/if_cas.c
747
pmf_device_deregister(self);
sys/dev/pci/if_dge.c
1002
if (pmf_device_register1(self, NULL, NULL, dge_shutdown))
sys/dev/pci/if_dge.c
1003
pmf_class_network_register(self, ifp);
sys/dev/pci/if_dge.c
1005
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_dge.c
1043
dge_shutdown(device_t self, int howto)
sys/dev/pci/if_dge.c
1047
sc = device_private(self);
sys/dev/pci/if_dge.c
688
dge_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_dge.c
690
struct dge_softc *sc = device_private(self);
sys/dev/pci/if_dge.c
709
sc->sc_dev = self;
sys/dev/pci/if_dge.c
743
device_xname(self));
sys/dev/pci/if_ena.c
3144
ena_rss_init_default(device_t self)
sys/dev/pci/if_ena.c
3146
struct ena_adapter *adapter = device_private(self);
sys/dev/pci/if_ena.c
3678
ena_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ena.c
3683
struct ena_adapter *adapter = device_private(self);
sys/dev/pci/if_ena.c
3692
adapter->pdev = self;
sys/dev/pci/if_ena.c
3731
ena_dev->dmadev = self;
sys/dev/pci/if_ena.c
3741
rc = ena_device_init(adapter, self, &get_feat_ctx, &adapter->wd_active);
sys/dev/pci/if_ena.c
3743
device_printf(self, "ENA device init failed! (err: %d)\n", rc);
sys/dev/pci/if_ena.c
3787
device_printf(self, "Failed to create TX DMA tag\n");
sys/dev/pci/if_ena.c
3793
device_printf(self, "Failed to create RX DMA tag\n");
sys/dev/pci/if_ena.c
3799
device_printf(self, "initialize %d io queues\n", io_queue_num);
sys/dev/pci/if_ena.c
3803
rc = ena_setup_ifnet(self, adapter, &get_feat_ctx);
sys/dev/pci/if_ena.c
3805
device_printf(self, "Error with network interface setup\n");
sys/dev/pci/if_ena.c
3811
device_printf(self,
sys/dev/pci/if_ena.c
3835
config_interrupts(self, ena_rss_init_default);
sys/dev/pci/if_ep_pci.c
176
ep_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ep_pci.c
178
struct ep_softc *sc = device_private(self);
sys/dev/pci/if_ep_pci.c
202
sc->sc_dev = self;
sys/dev/pci/if_ep_pci.c
222
device_xname(self));
sys/dev/pci/if_epic_pci.c
152
epic_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_epic_pci.c
154
struct epic_pci_softc *psc = device_private(self);
sys/dev/pci/if_epic_pci.c
168
sc->sc_dev = self;
sys/dev/pci/if_epic_pci.c
179
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/if_epic_pci.c
181
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_epic_pci.c
202
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_epic_pci.c
217
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_epic_pci.c
222
device_xname(self));
sys/dev/pci/if_epic_pci.c
224
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_epic_pci.c
230
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_eqos_pci.c
101
struct eqos_pci_softc * const psc = device_private(self);
sys/dev/pci/if_eqos_pci.c
126
sc->sc_dev = self;
sys/dev/pci/if_eqos_pci.c
188
IPL_NET, eqos_intr, sc, device_xname(self));
sys/dev/pci/if_eqos_pci.c
190
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
sys/dev/pci/if_eqos_pci.c
192
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_eqos_pci.c
193
pmf_class_network_register(self, &sc->sc_ec.ec_if);
sys/dev/pci/if_eqos_pci.c
195
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_eqos_pci.c
99
eqos_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_et.c
167
et_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_et.c
169
struct et_softc *sc = device_private(self);
sys/dev/pci/if_et.c
184
sc->sc_dev = self;
sys/dev/pci/if_et.c
197
aprint_error_dev(self, "could not map mem space\n");
sys/dev/pci/if_et.c
202
aprint_error_dev(self, "could not map interrupt\n");
sys/dev/pci/if_et.c
208
sc, device_xname(self));
sys/dev/pci/if_et.c
210
aprint_error_dev(self, "could not establish interrupt");
sys/dev/pci/if_et.c
216
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_et.c
236
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_et.c
262
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_et.c
274
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY, 0);
sys/dev/pci/if_et.c
276
aprint_error_dev(self, "no PHY found!\n");
sys/dev/pci/if_et.c
292
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_et.c
293
pmf_class_network_register(self, ifp);
sys/dev/pci/if_et.c
295
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_et.c
312
et_detach(device_t self, int flags)
sys/dev/pci/if_et.c
314
struct et_softc *sc = device_private(self);
sys/dev/pci/if_et.c
318
pmf_device_deregister(self);
sys/dev/pci/if_et.c
347
et_shutdown(device_t self)
sys/dev/pci/if_et.c
349
struct et_softc *sc = device_private(self);
sys/dev/pci/if_ex_pci.c
203
ex_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ex_pci.c
205
struct ex_pci_softc *psc = device_private(self);
sys/dev/pci/if_ex_pci.c
218
sc->sc_dev = self;
sys/dev/pci/if_ex_pci.c
257
aprint_error_dev(self,
sys/dev/pci/if_ex_pci.c
270
error = pci_activate(pa->pa_pc, pa->pa_tag, self, ex_d3tod0);
sys/dev/pci/if_ex_pci.c
279
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_ex_pci.c
286
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_ex_pci.c
292
device_xname(self));
sys/dev/pci/if_ex_pci.c
294
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_ex_pci.c
300
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_ex_pci.c
322
ex_d3tod0(pci_chipset_tag_t pc, pcitag_t tag, device_t self, pcireg_t state)
sys/dev/pci/if_ex_pci.c
338
aprint_normal_dev(self, "found in power state D%d, "
sys/dev/pci/if_ex_pci.c
356
aprint_normal_dev(self, "changed power state to D0.\n");
sys/dev/pci/if_fxp_pci.c
291
fxp_pci_detach(device_t self, int flags)
sys/dev/pci/if_fxp_pci.c
293
struct fxp_pci_softc *psc = device_private(self);
sys/dev/pci/if_fxp_pci.c
301
pmf_device_deregister(self);
sys/dev/pci/if_fxp_pci.c
311
fxp_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_fxp_pci.c
313
struct fxp_pci_softc *psc = device_private(self);
sys/dev/pci/if_fxp_pci.c
330
sc->sc_dev = self;
sys/dev/pci/if_fxp_pci.c
509
switch ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/if_fxp_pci.c
518
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_fxp_pci.c
531
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_fxp_pci.c
536
device_xname(self));
sys/dev/pci/if_fxp_pci.c
538
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_fxp_pci.c
544
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_fxp_pci.c
552
if (pmf_device_register(self, NULL, fxp_pci_resume))
sys/dev/pci/if_fxp_pci.c
553
pmf_class_network_register(self, &sc->sc_ethercom.ec_if);
sys/dev/pci/if_fxp_pci.c
555
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_fxp_pci.c
564
printf("%s: going to power state D0\n", device_xname(self));
sys/dev/pci/if_gem_pci.c
166
gem_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_gem_pci.c
169
struct gem_pci_softc *gsc = device_private(self);
sys/dev/pci/if_gem_pci.c
194
sc->sc_dev = self;
sys/dev/pci/if_gem_pci.c
381
gem_pci_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_gem_pci.c
383
struct gem_pci_softc *gsc = device_private(self);
sys/dev/pci/if_gem_pci.c
416
gem_pci_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_gem_pci.c
418
struct gem_pci_softc *gsc = device_private(self);
sys/dev/pci/if_gem_pci.c
424
gem_pci_detach(device_t self, int flags)
sys/dev/pci/if_gem_pci.c
427
struct gem_pci_softc *gsc = device_private(self);
sys/dev/pci/if_gem_pci.c
432
pmf_device_deregister(self);
sys/dev/pci/if_hme_pci.c
112
hmeattach_pci(device_t parent, device_t self, void *aux)
sys/dev/pci/if_hme_pci.c
115
struct hme_pci_softc *hsc = device_private(self);
sys/dev/pci/if_hme_pci.c
142
sc->sc_dev = self;
sys/dev/pci/if_hme_pci.c
184
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_hme_pci.c
190
aprint_error_dev(self, "unable to subregion ETX registers\n");
sys/dev/pci/if_hme_pci.c
195
aprint_error_dev(self, "unable to subregion ERX registers\n");
sys/dev/pci/if_hme_pci.c
200
aprint_error_dev(self, "unable to subregion MAC registers\n");
sys/dev/pci/if_hme_pci.c
205
aprint_error_dev(self, "unable to subregion MIF registers\n");
sys/dev/pci/if_hme_pci.c
213
if (ether_getaddr(self, sc->sc_enaddr)) {
sys/dev/pci/if_hme_pci.c
292
aprint_error_dev(self, "no Ethernet address found\n");
sys/dev/pci/if_hme_pci.c
299
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_hme_pci.c
304
sc, device_xname(self));
sys/dev/pci/if_hme_pci.c
306
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_hme_pci.c
312
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_iavf.c
1019
iavf_finalize_teardown(device_t self)
sys/dev/pci/if_iavf.c
1021
struct iavf_softc *sc = device_private(self);
sys/dev/pci/if_iavf.c
713
iavf_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_iavf.c
723
sc = device_private(self);
sys/dev/pci/if_iavf.c
724
sc->sc_dev = self;
sys/dev/pci/if_iavf.c
826
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_iavf.c
854
"%s_adminq_cv", device_xname(self));
sys/dev/pci/if_iavf.c
864
snprintf(xnamebuf, sizeof(xnamebuf), "%s_wq_cfg", device_xname(self));
sys/dev/pci/if_iavf.c
870
snprintf(xnamebuf, sizeof(xnamebuf), "%s_wq_txrx", device_xname(self));
sys/dev/pci/if_iavf.c
881
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_iavf.c
932
config_finalize_register(self, iavf_finalize_teardown);
sys/dev/pci/if_iavf.c
963
iavf_detach(device_t self, int flags)
sys/dev/pci/if_iavf.c
965
struct iavf_softc *sc = device_private(self);
sys/dev/pci/if_ipw.c
168
ipw_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ipw.c
170
struct ipw_softc *sc = device_private(self);
sys/dev/pci/if_ipw.c
184
sc->sc_dev = self;
sys/dev/pci/if_ipw.c
224
sc, device_xname(self));
sys/dev/pci/if_ipw.c
329
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_ipw.c
330
pmf_class_network_register(self, ifp);
sys/dev/pci/if_ipw.c
332
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_ipw.c
338
fail: ipw_detach(self, 0);
sys/dev/pci/if_ipw.c
342
ipw_detach(device_t self, int flags)
sys/dev/pci/if_ipw.c
344
struct ipw_softc *sc = device_private(self);
sys/dev/pci/if_iwi.c
196
iwi_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_iwi.c
198
struct iwi_softc *sc = device_private(self);
sys/dev/pci/if_iwi.c
211
sc->sc_dev = self;
sys/dev/pci/if_iwi.c
221
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/if_iwi.c
223
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_iwi.c
242
aprint_error_dev(self, "could not map memory space\n");
sys/dev/pci/if_iwi.c
255
aprint_error_dev(self, "could not establish softint\n");
sys/dev/pci/if_iwi.c
262
aprint_error_dev(self, "could not map interrupt\n");
sys/dev/pci/if_iwi.c
268
sc, device_xname(self));
sys/dev/pci/if_iwi.c
272
aprint_error_dev(self, "could not establish interrupt");
sys/dev/pci/if_iwi.c
278
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_iwi.c
284
aprint_error_dev(self, "could not reset adapter\n");
sys/dev/pci/if_iwi.c
317
aprint_verbose_dev(self, "802.11 address %s\n",
sys/dev/pci/if_iwi.c
324
DPRINTF(("%s: NIC type %d\n", device_xname(self), sc->nictype));
sys/dev/pci/if_iwi.c
365
memcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_iwi.c
390
aprint_error_dev(self, "could not allocate command ring\n");
sys/dev/pci/if_iwi.c
397
aprint_error_dev(self, "could not allocate Tx ring 1\n");
sys/dev/pci/if_iwi.c
404
aprint_error_dev(self, "could not allocate Tx ring 2\n");
sys/dev/pci/if_iwi.c
411
aprint_error_dev(self, "could not allocate Tx ring 3\n");
sys/dev/pci/if_iwi.c
418
aprint_error_dev(self, "could not allocate Tx ring 4\n");
sys/dev/pci/if_iwi.c
423
aprint_error_dev(self, "could not allocate Rx ring\n");
sys/dev/pci/if_iwi.c
440
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_iwi.c
441
pmf_class_network_register(self, ifp);
sys/dev/pci/if_iwi.c
443
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_iwi.c
449
fail: iwi_detach(self, 0);
sys/dev/pci/if_iwi.c
453
iwi_detach(device_t self, int flags)
sys/dev/pci/if_iwi.c
455
struct iwi_softc *sc = device_private(self);
sys/dev/pci/if_iwi.c
459
pmf_device_deregister(self);
sys/dev/pci/if_iwm.c
8925
iwm_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_iwm.c
8927
struct iwm_softc *sc = device_private(self);
sys/dev/pci/if_iwm.c
8936
sc->sc_dev = self;
sys/dev/pci/if_iwm.c
8949
device_xname(self));
sys/dev/pci/if_iwm.c
8952
panic("%s: could not establish softint", device_xname(self));
sys/dev/pci/if_iwm.c
8961
aprint_error_dev(self,
sys/dev/pci/if_iwm.c
8979
aprint_error_dev(self, "can't map mem space\n");
sys/dev/pci/if_iwm.c
8986
aprint_error_dev(self, "can't allocate interrupt\n");
sys/dev/pci/if_iwm.c
8998
IPL_NET, iwm_intr, sc, device_xname(self));
sys/dev/pci/if_iwm.c
9000
aprint_error_dev(self, "can't establish interrupt");
sys/dev/pci/if_iwm.c
9006
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_iwm.c
9101
aprint_error_dev(self, "unknown product %#x",
sys/dev/pci/if_iwm.c
9248
device_xname(self));
sys/dev/pci/if_iwm.c
9254
device_xname(self));
sys/dev/pci/if_iwm.c
9258
device_xname(self));
sys/dev/pci/if_iwm.c
9269
config_mountroot(self, iwm_attach_hook);
sys/dev/pci/if_iwm.c
9285
device_t self = sc->sc_dev;
sys/dev/pci/if_iwm.c
9381
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_iwm.c
9382
pmf_class_network_register(self, ifp);
sys/dev/pci/if_iwm.c
9384
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_iwm.c
9441
iwm_activate(device_t self, enum devact act)
sys/dev/pci/if_iwm.c
9443
struct iwm_softc *sc = device_private(self);
sys/dev/pci/if_iwn.c
421
iwn_attach(device_t parent __unused, device_t self, void *aux)
sys/dev/pci/if_iwn.c
423
struct iwn_softc *sc = device_private(self);
sys/dev/pci/if_iwn.c
432
sc->sc_dev = self;
sys/dev/pci/if_iwn.c
450
aprint_error_dev(self,
sys/dev/pci/if_iwn.c
470
aprint_error_dev(self, "can't map mem space\n");
sys/dev/pci/if_iwn.c
476
aprint_error_dev(self, "can't establish soft interrupt\n");
sys/dev/pci/if_iwn.c
483
aprint_error_dev(self, "can't allocate interrupt\n");
sys/dev/pci/if_iwn.c
495
IPL_NET, iwn_intr, sc, device_xname(self));
sys/dev/pci/if_iwn.c
497
aprint_error_dev(self, "can't establish interrupt");
sys/dev/pci/if_iwn.c
503
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_iwn.c
514
aprint_error_dev(self, "could not attach device\n");
sys/dev/pci/if_iwn.c
519
aprint_error_dev(self, "hardware not ready\n");
sys/dev/pci/if_iwn.c
525
aprint_error_dev(self, "could not read EEPROM\n");
sys/dev/pci/if_iwn.c
531
aprint_error_dev(self,
sys/dev/pci/if_iwn.c
538
aprint_error_dev(self, "could not allocate keep warm page\n");
sys/dev/pci/if_iwn.c
545
aprint_error_dev(self, "could not allocate ICT table\n");
sys/dev/pci/if_iwn.c
551
aprint_error_dev(self,
sys/dev/pci/if_iwn.c
559
aprint_error_dev(self, "could not allocate RX buffers\n");
sys/dev/pci/if_iwn.c
567
aprint_error_dev(self,
sys/dev/pci/if_iwn.c
575
aprint_error_dev(self, "could not allocate RX ring\n");
sys/dev/pci/if_iwn.c
591
aprint_normal_dev(self, "MIMO %dT%dR, %.4s, address %s\n",
sys/dev/pci/if_iwn.c
661
memcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_iwn.c
706
if (pmf_device_register(self, NULL, iwn_resume))
sys/dev/pci/if_iwn.c
707
pmf_class_network_register(self, ifp);
sys/dev/pci/if_iwn.c
709
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_iwn.c
918
iwn_detach(device_t self, int flags __unused)
sys/dev/pci/if_iwn.c
920
struct iwn_softc *sc = device_private(self);
sys/dev/pci/if_ixl.c
1019
ixl_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ixl.c
1029
sc = device_private(self);
sys/dev/pci/if_ixl.c
1030
sc->sc_dev = self;
sys/dev/pci/if_ixl.c
1068
aprint_normal_dev(self, "port %u", sc->sc_port);
sys/dev/pci/if_ixl.c
1084
device_xname(self));
sys/dev/pci/if_ixl.c
1096
device_xname(self));
sys/dev/pci/if_ixl.c
1102
device_xname(self));
sys/dev/pci/if_ixl.c
1153
aprint_error_dev(self, ", unable to allocate nvm buffer\n");
sys/dev/pci/if_ixl.c
1196
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_ixl.c
1201
aprint_debug_dev(self, "CLEAR PXE MODE %s\n",
sys/dev/pci/if_ixl.c
1234
aprint_error_dev(self, "GET LINK STATUS %s\n",
sys/dev/pci/if_ixl.c
1251
aprint_error_dev(self, "unable to allocate scratch buffer\n");
sys/dev/pci/if_ixl.c
1257
aprint_error_dev(self, "GET VSI %s %d\n",
sys/dev/pci/if_ixl.c
1264
aprint_error_dev(self, "UPDATE VSI error %s %d\n",
sys/dev/pci/if_ixl.c
1280
aprint_error_dev(self, "failed to setup event counters\n");
sys/dev/pci/if_ixl.c
1289
snprintf(xnamebuf, sizeof(xnamebuf), "%s_wq_cfg", device_xname(self));
sys/dev/pci/if_ixl.c
1295
snprintf(xnamebuf, sizeof(xnamebuf), "%s_wq_txrx", device_xname(self));
sys/dev/pci/if_ixl.c
1303
snprintf(xnamebuf, sizeof(xnamebuf), "%s_atq_cv", device_xname(self));
sys/dev/pci/if_ixl.c
1306
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_ixl.c
1375
aprint_debug_dev(self,
sys/dev/pci/if_ixl.c
1381
aprint_debug_dev(self,
sys/dev/pci/if_ixl.c
1386
aprint_debug_dev(self,
sys/dev/pci/if_ixl.c
1401
if (pmf_device_register(self, NULL, NULL) != true)
sys/dev/pci/if_ixl.c
1402
aprint_debug_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_ixl.c
1411
config_finalize_register(self, ixl_workqs_teardown);
sys/dev/pci/if_ixl.c
1462
ixl_detach(device_t self, int flags)
sys/dev/pci/if_ixl.c
1464
struct ixl_softc *sc = device_private(self);
sys/dev/pci/if_ixl.c
1546
ixl_workqs_teardown(device_t self)
sys/dev/pci/if_ixl.c
1548
struct ixl_softc *sc = device_private(self);
sys/dev/pci/if_jme.c
244
jme_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_jme.c
246
jme_softc_t *sc = device_private(self);
sys/dev/pci/if_jme.c
262
sc->jme_dev = self;
sys/dev/pci/if_jme.c
284
aprint_error_dev(self, "can't subregion PHY space\n");
sys/dev/pci/if_jme.c
291
aprint_error_dev(self, "can't subregion misc space\n");
sys/dev/pci/if_jme.c
298
aprint_error_dev(self, "can't map I/O space 1\n");
sys/dev/pci/if_jme.c
305
aprint_error_dev(self, "can't map I/O space 2\n");
sys/dev/pci/if_jme.c
314
aprint_error_dev(self, "can't subregion misc space\n");
sys/dev/pci/if_jme.c
331
aprint_normal_dev(self, "%s\n", (const char *)dce->data);
sys/dev/pci/if_jme.c
340
aprint_verbose_dev(self, "PCI device revision : 0x%x, Chip revision: "
sys/dev/pci/if_jme.c
364
aprint_error_dev(self, "error reading Ethernet address\n");
sys/dev/pci/if_jme.c
367
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_jme.c
372
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_jme.c
378
jme_intr, sc, device_xname(self));
sys/dev/pci/if_jme.c
380
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_jme.c
386
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_jme.c
398
aprint_error_dev(self, "can't allocate DMA memory TX ring\n");
sys/dev/pci/if_jme.c
411
aprint_error_dev(self, "can't allocate DMA memory RX ring\n");
sys/dev/pci/if_jme.c
420
aprint_error_dev(self, "can't allocate DMA TX map\n");
sys/dev/pci/if_jme.c
426
aprint_error_dev(self, "can't allocate DMA RX map\n");
sys/dev/pci/if_jme.c
446
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY, 0);
sys/dev/pci/if_jme.c
464
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_jme.c
486
if (pmf_device_register1(self, NULL, NULL, jme_shutdown))
sys/dev/pci/if_jme.c
487
pmf_class_network_register(self, ifp);
sys/dev/pci/if_jme.c
489
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_jme.c
491
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/dev/pci/if_jme.c
604
jme_shutdown(device_t self, int howto)
sys/dev/pci/if_jme.c
609
sc = device_private(self);
sys/dev/pci/if_jme.c
954
jme_mii_read(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_jme.c
956
struct jme_softc *sc = device_private(self);
sys/dev/pci/if_jme.c
988
jme_mii_write(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_jme.c
990
struct jme_softc *sc = device_private(self);
sys/dev/pci/if_kse.c
1419
kse_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_kse.c
1421
struct kse_softc *sc = device_private(self);
sys/dev/pci/if_kse.c
1430
kse_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_kse.c
1432
struct kse_softc *sc = device_private(self);
sys/dev/pci/if_kse.c
374
kse_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_kse.c
376
struct kse_softc *sc = device_private(self);
sys/dev/pci/if_kse.c
395
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_kse.c
405
if ((error = pci_activate(pc, pa->pa_tag, self, NULL))
sys/dev/pci/if_kse.c
407
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_kse.c
413
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_kse.c
418
device_xname(self));
sys/dev/pci/if_kse.c
420
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_kse.c
426
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_kse.c
428
sc->sc_dev = self;
sys/dev/pci/if_kse.c
445
aprint_normal_dev(self,
sys/dev/pci/if_kse.c
460
aprint_error_dev(self,
sys/dev/pci/if_kse.c
468
aprint_error_dev(self,
sys/dev/pci/if_kse.c
476
aprint_error_dev(self,
sys/dev/pci/if_kse.c
484
aprint_error_dev(self,
sys/dev/pci/if_kse.c
493
aprint_error_dev(self,
sys/dev/pci/if_kse.c
502
aprint_error_dev(self,
sys/dev/pci/if_kse.c
543
aprint_normal_dev(self,
sys/dev/pci/if_kse.c
577
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/dev/pci/if_lii.c
234
lii_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_lii.c
236
struct lii_softc *sc = device_private(self);
sys/dev/pci/if_lii.c
250
sc->sc_dev = self;
sys/dev/pci/if_lii.c
266
aprint_error_dev(self, "invalid base address register\n");
sys/dev/pci/if_lii.c
271
aprint_error_dev(self, "failed to map registers\n");
sys/dev/pci/if_lii.c
289
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_lii.c
293
aprint_error_dev(self, "failed to map interrupt\n");
sys/dev/pci/if_lii.c
298
sc, device_xname(self));
sys/dev/pci/if_lii.c
300
aprint_error_dev(self, "failed to establish interrupt");
sys/dev/pci/if_lii.c
306
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_lii.c
324
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_lii.c
344
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_lii.c
345
pmf_class_network_register(self, ifp);
sys/dev/pci/if_lii.c
347
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_malo_pci.c
108
sc->sc_dev = self;
sys/dev/pci/if_malo_pci.c
113
aprint_normal_dev(self,"Marvell Libertas Wireless\n");
sys/dev/pci/if_malo_pci.c
122
aprint_error_dev(self, "invalid base address register\n");
sys/dev/pci/if_malo_pci.c
130
aprint_error_dev(self, "can't map 1st mem space\n");
sys/dev/pci/if_malo_pci.c
141
aprint_error_dev(self, "invalid base address register\n");
sys/dev/pci/if_malo_pci.c
149
aprint_error_dev(self, "can't map 2nd mem space\n");
sys/dev/pci/if_malo_pci.c
155
aprint_error_dev(self, "could not establish softint\n");
sys/dev/pci/if_malo_pci.c
161
aprint_error_dev(self, "can't map interrupt\n");
sys/dev/pci/if_malo_pci.c
168
malo_intr, sc, device_xname(self));
sys/dev/pci/if_malo_pci.c
170
aprint_error_dev(self, "could not establish interrupt");
sys/dev/pci/if_malo_pci.c
176
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_malo_pci.c
181
if (pmf_device_register(self, malo_pci_suspend, malo_pci_resume))
sys/dev/pci/if_malo_pci.c
182
pmf_class_network_register(self, &sc->sc_if);
sys/dev/pci/if_malo_pci.c
184
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_malo_pci.c
196
malo_pci_detach(device_t self, int flags)
sys/dev/pci/if_malo_pci.c
198
struct malo_pci_softc *psc = device_private(self);
sys/dev/pci/if_malo_pci.c
217
malo_pci_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_malo_pci.c
219
struct malo_pci_softc *psc = device_private(self);
sys/dev/pci/if_malo_pci.c
229
malo_pci_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_malo_pci.c
231
struct malo_pci_softc *psc = device_private(self);
sys/dev/pci/if_malo_pci.c
97
malo_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_malo_pci.c
99
struct malo_pci_softc *psc = device_private(self);
sys/dev/pci/if_mcx.c
2743
mcx_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_mcx.c
2745
struct mcx_softc *sc = device_private(self);
sys/dev/pci/if_mcx.c
2759
sc->sc_dev = self;
sys/dev/pci/if_mcx.c
2794
aprint_error_dev(self,
sys/dev/pci/if_mcx.c
2799
aprint_error_dev(self,
sys/dev/pci/if_mcx.c
2804
aprint_error_dev(self, "command queue page overflow\n");
sys/dev/pci/if_mcx.c
2810
aprint_error_dev(self, "unable to allocate doorbell memory\n");
sys/dev/pci/if_mcx.c
2816
aprint_error_dev(self, "unable to allocate command queue\n");
sys/dev/pci/if_mcx.c
2828
aprint_error_dev(self, "timeout waiting for init\n");
sys/dev/pci/if_mcx.c
2913
aprint_error_dev(self, "unable to allocate interrupt\n");
sys/dev/pci/if_mcx.c
2917
aprint_error_dev(self, "not enough MSI-X vectors\n");
sys/dev/pci/if_mcx.c
2925
aprint_error_dev(self, "couldn't establish adminq interrupt\n");
sys/dev/pci/if_mcx.c
3024
aprint_error_dev(self, "unable to alloc uar %d\n", i);
sys/dev/pci/if_mcx.c
3029
aprint_error_dev(self,
sys/dev/pci/if_mcx.c
3055
aprint_error_dev(self, "couldn't create port change workq\n");
sys/dev/pci/if_msk.c
1176
msk_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_msk.c
1178
struct sk_if_softc *sc_if = device_private(self);
sys/dev/pci/if_msk.c
1189
sc_if->sk_dev = self;
sys/dev/pci/if_msk.c
1337
mii_attach(self, mii, 0xffffffff, 0, MII_OFFSET_ANY, mii_flags);
sys/dev/pci/if_msk.c
1360
if (pmf_device_register(self, NULL, msk_resume))
sys/dev/pci/if_msk.c
1361
pmf_class_network_register(self, ifp);
sys/dev/pci/if_msk.c
1363
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_msk.c
1384
msk_detach(device_t self, int flags)
sys/dev/pci/if_msk.c
1386
struct sk_if_softc *sc_if = device_private(self);
sys/dev/pci/if_msk.c
1419
pmf_device_deregister(self);
sys/dev/pci/if_msk.c
1458
mskc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_msk.c
1460
struct sk_softc *sc = device_private(self);
sys/dev/pci/if_msk.c
1475
sc->sk_dev = self;
sys/dev/pci/if_msk.c
1818
if (!pmf_device_register(self, mskc_suspend, mskc_resume))
sys/dev/pci/if_msk.c
1819
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_msk.c
1843
mskc_detach(device_t self, int flags)
sys/dev/pci/if_msk.c
1845
struct sk_softc *sc = device_private(self);
sys/dev/pci/if_msk.c
1858
rv = config_detach_children(self, flags);
sys/dev/pci/if_mtd_pci.c
124
device_xname(self)) == NULL) {
sys/dev/pci/if_mtd_pci.c
81
mtd_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_mtd_pci.c
84
struct mtd_softc * const sc = device_private(self);
sys/dev/pci/if_mtd_pci.c
92
sc->dev = self;
sys/dev/pci/if_ne_pci.c
168
ne_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ne_pci.c
170
struct ne_pci_softc *psc = device_private(self);
sys/dev/pci/if_ne_pci.c
191
dsc->sc_dev = self;
sys/dev/pci/if_ne_pci.c
241
dsc, device_xname(self));
sys/dev/pci/if_nfe.c
1995
nfe_poweron(device_t self)
sys/dev/pci/if_nfe.c
1997
struct nfe_softc *sc = device_private(self);
sys/dev/pci/if_nfe.c
210
nfe_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_nfe.c
212
struct nfe_softc *sc = device_private(self);
sys/dev/pci/if_nfe.c
223
sc->sc_dev = self;
sys/dev/pci/if_nfe.c
236
aprint_error_dev(self, "could not map mem space\n");
sys/dev/pci/if_nfe.c
241
aprint_error_dev(self, "could not map interrupt\n");
sys/dev/pci/if_nfe.c
247
device_xname(self));
sys/dev/pci/if_nfe.c
249
aprint_error_dev(self, "could not establish interrupt");
sys/dev/pci/if_nfe.c
255
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_nfe.c
330
aprint_error_dev(self,
sys/dev/pci/if_nfe.c
338
nfe_poweron(self);
sys/dev/pci/if_nfe.c
351
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_nfe.c
358
aprint_error_dev(self, "could not allocate Tx ring\n");
sys/dev/pci/if_nfe.c
365
aprint_error_dev(self, "could not allocate Rx ring\n");
sys/dev/pci/if_nfe.c
382
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_nfe.c
409
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, 0, mii_flags);
sys/dev/pci/if_nfe.c
412
aprint_error_dev(self, "no PHY found!\n");
sys/dev/pci/if_nfe.c
426
if (pmf_device_register(self, NULL, nfe_resume))
sys/dev/pci/if_nfe.c
427
pmf_class_network_register(self, ifp);
sys/dev/pci/if_nfe.c
429
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_nfe.c
445
nfe_detach(device_t self, int flags)
sys/dev/pci/if_nfe.c
447
struct nfe_softc *sc = device_private(self);
sys/dev/pci/if_nfe.c
455
pmf_device_deregister(self);
sys/dev/pci/if_ntwoc_pci.c
190
ntwoc_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ntwoc_pci.c
192
struct ntwoc_pci_softc *sc = device_private(self);
sys/dev/pci/if_ntwoc_pci.c
207
flags = device_cfdata(self)->cf_flags;
sys/dev/pci/if_ntwoc_pci.c
214
aprint_error_dev(self, "Can't map register space (ASIC)\n");
sys/dev/pci/if_ntwoc_pci.c
222
aprint_error_dev(self, "Can't map register space (SCA)\n");
sys/dev/pci/if_ntwoc_pci.c
236
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_ntwoc_pci.c
241
ntwoc_pci_intr, sc, device_xname(self));
sys/dev/pci/if_ntwoc_pci.c
243
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_ntwoc_pci.c
249
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_ntwoc_pci.c
295
device_xname(self), frontend_cr));
sys/dev/pci/if_ntwoc_pci.c
304
aprint_error_dev(self, "no ports available\n");
sys/dev/pci/if_ntwoc_pci.c
316
aprint_normal_dev(self, "%d port%s\n", numports,
sys/dev/pci/if_ntwoc_pci.c
318
aprint_normal_dev(self, "port 0 interface card: %s\n",
sys/dev/pci/if_ntwoc_pci.c
321
aprint_normal_dev(self, "port 1 interface card: %s\n",
sys/dev/pci/if_ntwoc_pci.c
338
sca->sc_parent = self;
sys/dev/pci/if_ntwoc_pci.c
394
config_interrupts(self, ntwoc_pci_config_interrupts);
sys/dev/pci/if_ntwoc_pci.c
727
ntwoc_pci_config_interrupts(device_t self)
sys/dev/pci/if_ntwoc_pci.c
731
sc = device_private(self);
sys/dev/pci/if_pcn.c
2143
pcn_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_pcn.c
2145
struct pcn_softc *sc = device_private(self);
sys/dev/pci/if_pcn.c
2161
pcn_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_pcn.c
2163
struct pcn_softc *sc = device_private(self);
sys/dev/pci/if_pcn.c
562
pcn_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_pcn.c
564
struct pcn_softc *sc = device_private(self);
sys/dev/pci/if_pcn.c
580
sc->sc_dev = self;
sys/dev/pci/if_pcn.c
602
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_pcn.c
614
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/if_pcn.c
616
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_pcn.c
674
aprint_normal_dev(self, "%s rev %d, Ethernet address %s\n",
sys/dev/pci/if_pcn.c
685
aprint_verbose_dev(self,
sys/dev/pci/if_pcn.c
695
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_pcn.c
700
device_xname(self));
sys/dev/pci/if_pcn.c
702
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_pcn.c
708
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_pcn.c
717
aprint_error_dev(self, "unable to allocate control data, "
sys/dev/pci/if_pcn.c
725
aprint_error_dev(self, "unable to map control data, "
sys/dev/pci/if_pcn.c
733
aprint_error_dev(self, "unable to create control data DMA map, "
sys/dev/pci/if_pcn.c
741
aprint_error_dev(self,
sys/dev/pci/if_pcn.c
751
aprint_error_dev(self,
sys/dev/pci/if_pcn.c
762
aprint_error_dev(self,
sys/dev/pci/if_pcn.c
816
strcpy(ifp->if_xname, device_xname(self));
sys/dev/pci/if_pcn.c
830
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/dev/pci/if_pcn.c
836
NULL, device_xname(self), "txdstall");
sys/dev/pci/if_pcn.c
838
NULL, device_xname(self), "txintr");
sys/dev/pci/if_pcn.c
840
NULL, device_xname(self), "rxintr");
sys/dev/pci/if_pcn.c
842
NULL, device_xname(self), "babl");
sys/dev/pci/if_pcn.c
844
NULL, device_xname(self), "miss");
sys/dev/pci/if_pcn.c
846
NULL, device_xname(self), "merr");
sys/dev/pci/if_pcn.c
849
NULL, device_xname(self), "txseg1");
sys/dev/pci/if_pcn.c
851
NULL, device_xname(self), "txseg2");
sys/dev/pci/if_pcn.c
853
NULL, device_xname(self), "txseg3");
sys/dev/pci/if_pcn.c
855
NULL, device_xname(self), "txseg4");
sys/dev/pci/if_pcn.c
857
NULL, device_xname(self), "txseg5");
sys/dev/pci/if_pcn.c
859
NULL, device_xname(self), "txsegmore");
sys/dev/pci/if_pcn.c
861
NULL, device_xname(self), "txcopy");
sys/dev/pci/if_pcn.c
868
if (pmf_device_register1(self, NULL, NULL, pcn_shutdown))
sys/dev/pci/if_pcn.c
869
pmf_class_network_register(self, ifp);
sys/dev/pci/if_pcn.c
871
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_pcn.c
909
pcn_shutdown(device_t self, int howto)
sys/dev/pci/if_pcn.c
911
struct pcn_softc *sc = device_private(self);
sys/dev/pci/if_ral_pci.c
161
ral_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ral_pci.c
163
struct ral_pci_softc *psc = device_private(self);
sys/dev/pci/if_ral_pci.c
194
sc->sc_dev = self;
sys/dev/pci/if_ral_pci.c
220
psc->sc_opns->intr, sc, device_xname(self));
sys/dev/pci/if_ral_pci.c
235
ral_pci_detach(device_t self, int flags)
sys/dev/pci/if_ral_pci.c
237
struct ral_pci_softc *psc = device_private(self);
sys/dev/pci/if_re_pci.c
184
re_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_re_pci.c
186
struct re_pci_softc *psc = device_private(self);
sys/dev/pci/if_re_pci.c
201
sc->sc_dev = self;
sys/dev/pci/if_re_pci.c
295
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_re_pci.c
303
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_re_pci.c
310
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_re_pci.c
323
re_pci_detach(self, 0);
sys/dev/pci/if_re_pci.c
324
aprint_error_dev(self, "disabled\n");
sys/dev/pci/if_re_pci.c
330
re_pci_detach(device_t self, int flags)
sys/dev/pci/if_re_pci.c
332
struct re_pci_softc *psc = device_private(self);
sys/dev/pci/if_rge.c
193
rge_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_rge.c
195
struct rge_softc *sc = device_private(self);
sys/dev/pci/if_rge.c
213
sc->sc_dev = self;
sys/dev/pci/if_rge.c
397
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_rge.c
398
pmf_class_network_register(self, ifp);
sys/dev/pci/if_rge.c
400
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_rge.c
404
rge_detach(device_t self, int flags)
sys/dev/pci/if_rge.c
406
struct rge_softc *sc = device_private(self);
sys/dev/pci/if_rge.c
412
pmf_device_deregister(self);
sys/dev/pci/if_rtk_pci.c
152
rtk_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_rtk_pci.c
154
struct rtk_pci_softc *psc = device_private(self);
sys/dev/pci/if_rtk_pci.c
168
sc->sc_dev = self;
sys/dev/pci/if_rtk_pci.c
207
aprint_error_dev(self, "can't map registers\n");
sys/dev/pci/if_rtk_pci.c
213
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_rtk_pci.c
218
device_xname(self));
sys/dev/pci/if_rtk_pci.c
220
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_rtk_pci.c
230
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_rtk_pci.c
239
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_rtk_pci.c
240
pmf_class_network_register(self, &sc->ethercom.ec_if);
sys/dev/pci/if_rtk_pci.c
242
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_rtk_pci.c
248
rtk_pci_detach(device_t self, int flags)
sys/dev/pci/if_rtk_pci.c
250
struct rtk_pci_softc *psc = device_private(self);
sys/dev/pci/if_rtw_pci.c
182
rtw_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_rtw_pci.c
184
struct rtw_pci_softc *psc = device_private(self);
sys/dev/pci/if_rtw_pci.c
192
sc->sc_dev = self;
sys/dev/pci/if_rtw_pci.c
222
device_xname(self), __func__, (uintmax_t)regs->r_sz));
sys/dev/pci/if_rtw_pci.c
228
device_xname(self), __func__, (uintmax_t)regs->r_sz));
sys/dev/pci/if_rtw_pci.c
231
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_rtw_pci.c
246
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_rtw_pci.c
251
IPL_NET, rtw_intr, sc, device_xname(self));
sys/dev/pci/if_rtw_pci.c
253
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_rtw_pci.c
260
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_rtw_pci.c
267
if (pmf_device_register(self, rtw_pci_suspend, rtw_pci_resume)) {
sys/dev/pci/if_rtw_pci.c
268
pmf_class_network_register(self, &sc->sc_if);
sys/dev/pci/if_rtw_pci.c
272
pmf_device_suspend(self, &sc->sc_qual);
sys/dev/pci/if_rtw_pci.c
274
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_rtw_pci.c
278
rtw_pci_detach(device_t self, int flags)
sys/dev/pci/if_rtw_pci.c
280
struct rtw_pci_softc *psc = device_private(self);
sys/dev/pci/if_rtw_pci.c
295
rtw_pci_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_rtw_pci.c
297
struct rtw_pci_softc *psc = device_private(self);
sys/dev/pci/if_rtw_pci.c
302
IPL_NET, rtw_intr, sc, device_xname(self));
sys/dev/pci/if_rtw_pci.c
308
return rtw_resume(self, qual);
sys/dev/pci/if_rtw_pci.c
312
rtw_pci_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_rtw_pci.c
314
struct rtw_pci_softc *psc = device_private(self);
sys/dev/pci/if_rtw_pci.c
316
if (!rtw_suspend(self, qual))
sys/dev/pci/if_rtw_pci.c
330
device_t self = psc->psc_rtw.sc_dev;
sys/dev/pci/if_rtw_pci.c
334
rc = pci_activate(psc->psc_pc, psc->psc_tag, self, NULL);
sys/dev/pci/if_rtw_pci.c
337
aprint_error_dev(self, "cannot activate (%d)\n", rc);
sys/dev/pci/if_rtwn.c
212
rtwn_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_rtwn.c
214
struct rtwn_softc *sc = device_private(self);
sys/dev/pci/if_rtwn.c
223
sc->sc_dev = self;
sys/dev/pci/if_rtwn.c
246
aprint_error_dev(self, "can't map mem space\n");
sys/dev/pci/if_rtwn.c
252
aprint_error_dev(self, "can't map interrupt\n");
sys/dev/pci/if_rtwn.c
258
rtwn_intr, sc, device_xname(self));
sys/dev/pci/if_rtwn.c
260
aprint_error_dev(self, "can't establish interrupt");
sys/dev/pci/if_rtwn.c
266
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_rtwn.c
270
aprint_error_dev(self, "unsupported test or unknown chip\n");
sys/dev/pci/if_rtwn.c
287
aprint_error_dev(self, "could not allocate Rx buffers\n");
sys/dev/pci/if_rtwn.c
293
aprint_error_dev(self,
sys/dev/pci/if_rtwn.c
309
aprint_normal_dev(self, "MAC/BB RTL%s, RF 6052 %dT%dR, address %s\n",
sys/dev/pci/if_rtwn.c
393
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_rtwn.c
394
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_rtwn.c
398
rtwn_detach(device_t self, int flags)
sys/dev/pci/if_rtwn.c
400
struct rtwn_softc *sc = device_private(self);
sys/dev/pci/if_rtwn.c
413
pmf_device_deregister(self);
sys/dev/pci/if_rtwn.c
444
rtwn_activate(device_t self, enum devact act)
sys/dev/pci/if_rtwn.c
446
struct rtwn_softc *sc = device_private(self);
sys/dev/pci/if_sf_pci.c
166
sf_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_sf_pci.c
168
struct sf_pci_softc *psc = device_private(self);
sys/dev/pci/if_sf_pci.c
180
sc->sc_dev = self;
sys/dev/pci/if_sf_pci.c
190
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self, NULL)) &&
sys/dev/pci/if_sf_pci.c
192
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_sf_pci.c
224
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_sf_pci.c
239
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_sf_pci.c
244
sc, device_xname(self));
sys/dev/pci/if_sf_pci.c
246
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_sf_pci.c
252
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_sip.c
1039
sipcom_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_sip.c
1041
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
1047
sipcom_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_sip.c
1049
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
1056
sipcom_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_sip.c
1058
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
1076
cfdata_t cf = device_cfdata(self);
sys/dev/pci/if_sip.c
1087
sc->sc_dev = self;
sys/dev/pci/if_sip.c
1090
pmf_self_suspensor_init(self, &sc->sc_suspensor, &sc->sc_qual);
sys/dev/pci/if_sip.c
1172
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_sip.c
1189
error = pci_activate(pa->pa_pc, pa->pa_tag, self, pci_activate_null);
sys/dev/pci/if_sip.c
1204
device_xname(self));
sys/dev/pci/if_sip.c
1210
sipcom_do_detach(self, SIP_ATTACH_MAP);
sys/dev/pci/if_sip.c
1227
sipcom_do_detach(self, SIP_ATTACH_INTR);
sys/dev/pci/if_sip.c
1236
sipcom_do_detach(self, SIP_ATTACH_ALLOC_MEM);
sys/dev/pci/if_sip.c
1242
aprint_error_dev(self, "unable to create control data DMA map"
sys/dev/pci/if_sip.c
1244
sipcom_do_detach(self, SIP_ATTACH_MAP_MEM);
sys/dev/pci/if_sip.c
1250
aprint_error_dev(self, "unable to load control data DMA map"
sys/dev/pci/if_sip.c
1252
sipcom_do_detach(self, SIP_ATTACH_CREATE_MAP);
sys/dev/pci/if_sip.c
1262
aprint_error_dev(self, "unable to create tx DMA map %d"
sys/dev/pci/if_sip.c
1264
sipcom_do_detach(self, SIP_ATTACH_CREATE_TXMAP);
sys/dev/pci/if_sip.c
1274
aprint_error_dev(self, "unable to create rx DMA map %d"
sys/dev/pci/if_sip.c
1276
sipcom_do_detach(self, SIP_ATTACH_CREATE_RXMAP);
sys/dev/pci/if_sip.c
1307
aprint_normal_dev(self, "Ethernet address %s\n",ether_sprintf(enaddr));
sys/dev/pci/if_sip.c
1466
if (pmf_device_register(self, sipcom_suspend, sipcom_resume))
sys/dev/pci/if_sip.c
1467
pmf_class_network_register(self, ifp);
sys/dev/pci/if_sip.c
1469
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_sip.c
3342
sipcom_dp83820_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_sip.c
3344
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
3397
return mii_bitbang_readreg(self, &sipcom_mii_bitbang_ops, phy, reg,
sys/dev/pci/if_sip.c
3407
sipcom_dp83820_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_sip.c
3409
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
3429
return mii_bitbang_writereg(self, &sipcom_mii_bitbang_ops, phy, reg,
sys/dev/pci/if_sip.c
3504
sipcom_mii_bitbang_read(device_t self)
sys/dev/pci/if_sip.c
3506
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
3517
sipcom_mii_bitbang_write(device_t self, uint32_t val)
sys/dev/pci/if_sip.c
3519
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
3530
sipcom_sis900_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_sip.c
3532
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
3540
return mii_bitbang_readreg(self, &sipcom_mii_bitbang_ops,
sys/dev/pci/if_sip.c
3569
sipcom_sis900_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_sip.c
3571
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
3575
return mii_bitbang_writereg(self, &sipcom_mii_bitbang_ops,
sys/dev/pci/if_sip.c
3661
sipcom_dp83815_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_sip.c
3663
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
3697
sipcom_dp83815_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_sip.c
3699
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
941
sipcom_detach(device_t self, int flags)
sys/dev/pci/if_sip.c
946
sipcom_do_detach(self, SIP_ATTACH_FIN);
sys/dev/pci/if_sip.c
953
sipcom_do_detach(device_t self, enum sip_attach_stage stage)
sys/dev/pci/if_sip.c
956
struct sip_softc *sc = device_private(self);
sys/dev/pci/if_sip.c
966
pmf_device_deregister(self);
sys/dev/pci/if_sk.c
1200
sk_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_sk.c
1202
struct sk_if_softc *sc_if = device_private(self);
sys/dev/pci/if_sk.c
1216
sc_if->sk_dev = self;
sys/dev/pci/if_sk.c
1237
if (! ether_getaddr(self, sc_if->sk_enaddr)) {
sys/dev/pci/if_sk.c
1423
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/dev/pci/if_sk.c
1450
if (pmf_device_register(self, NULL, sk_resume))
sys/dev/pci/if_sk.c
1451
pmf_class_network_register(self, ifp);
sys/dev/pci/if_sk.c
1453
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_sk.c
1482
skc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_sk.c
1484
struct sk_softc *sc = device_private(self);
sys/dev/pci/if_sk.c
1501
sc->sk_dev = self;
sys/dev/pci/if_sk.c
1826
if (!pmf_device_register(self, skc_suspend, skc_resume))
sys/dev/pci/if_sk.c
1827
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_ste.c
1667
ste_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_ste.c
1669
struct ste_softc *sc = device_private(self);
sys/dev/pci/if_ste.c
1674
return mii_bitbang_readreg(self, &ste_mii_bitbang_ops, phy, reg, val);
sys/dev/pci/if_ste.c
1683
ste_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_ste.c
1685
struct ste_softc *sc = device_private(self);
sys/dev/pci/if_ste.c
1690
return mii_bitbang_writereg(self, &ste_mii_bitbang_ops, phy, reg, val);
sys/dev/pci/if_ste.c
1719
ste_mii_bitbang_read(device_t self)
sys/dev/pci/if_ste.c
1721
struct ste_softc *sc = device_private(self);
sys/dev/pci/if_ste.c
1732
ste_mii_bitbang_write(device_t self, uint32_t val)
sys/dev/pci/if_ste.c
1734
struct ste_softc *sc = device_private(self);
sys/dev/pci/if_ste.c
338
ste_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ste.c
340
struct ste_softc *sc = device_private(self);
sys/dev/pci/if_ste.c
357
sc->sc_dev = self;
sys/dev/pci/if_ste.c
387
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_ste.c
399
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/if_ste.c
414
device_xname(self));
sys/dev/pci/if_ste.c
576
if (pmf_device_register1(self, NULL, NULL, ste_shutdown))
sys/dev/pci/if_ste.c
577
pmf_class_network_register(self, ifp);
sys/dev/pci/if_ste.c
579
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_ste.c
617
ste_shutdown(device_t self, int howto)
sys/dev/pci/if_ste.c
621
sc = device_private(self);
sys/dev/pci/if_stge.c
1963
stge_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_stge.c
1966
return mii_bitbang_readreg(self, &stge_mii_bitbang_ops, phy, reg, val);
sys/dev/pci/if_stge.c
1975
stge_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_stge.c
1978
return mii_bitbang_writereg(self, &stge_mii_bitbang_ops, phy, reg,
sys/dev/pci/if_stge.c
2011
stge_mii_bitbang_read(device_t self)
sys/dev/pci/if_stge.c
2013
struct stge_softc *sc = device_private(self);
sys/dev/pci/if_stge.c
2024
stge_mii_bitbang_write(device_t self, uint32_t val)
sys/dev/pci/if_stge.c
2026
struct stge_softc *sc = device_private(self);
sys/dev/pci/if_stge.c
389
stge_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_stge.c
391
struct stge_softc *sc = device_private(self);
sys/dev/pci/if_stge.c
407
sc->sc_dev = self;
sys/dev/pci/if_stge.c
438
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_stge.c
453
aprint_error_dev(self,
sys/dev/pci/if_stge.c
468
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self, NULL)) &&
sys/dev/pci/if_stge.c
470
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_stge.c
477
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_stge.c
482
device_xname(self));
sys/dev/pci/if_stge.c
484
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_stge.c
490
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_stge.c
499
aprint_error_dev(self,
sys/dev/pci/if_stge.c
507
aprint_error_dev(self,
sys/dev/pci/if_stge.c
515
aprint_error_dev(self,
sys/dev/pci/if_stge.c
524
aprint_error_dev(self,
sys/dev/pci/if_stge.c
540
aprint_error_dev(self,
sys/dev/pci/if_stge.c
553
aprint_error_dev(self,
sys/dev/pci/if_stge.c
591
if (! ether_getaddr(self, enaddr)) {
sys/dev/pci/if_stge.c
606
device_setprop_bool(self, "need_loaddspcode", true);
sys/dev/pci/if_stge.c
609
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_stge.c
628
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/dev/pci/if_stge.c
637
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_stge.c
694
NULL, device_xname(self), "txstall");
sys/dev/pci/if_stge.c
696
NULL, device_xname(self), "txdmaintr");
sys/dev/pci/if_stge.c
698
NULL, device_xname(self), "txindintr");
sys/dev/pci/if_stge.c
700
NULL, device_xname(self), "rxintr");
sys/dev/pci/if_stge.c
703
NULL, device_xname(self), "txseg1");
sys/dev/pci/if_stge.c
705
NULL, device_xname(self), "txseg2");
sys/dev/pci/if_stge.c
707
NULL, device_xname(self), "txseg3");
sys/dev/pci/if_stge.c
709
NULL, device_xname(self), "txseg4");
sys/dev/pci/if_stge.c
711
NULL, device_xname(self), "txseg5");
sys/dev/pci/if_stge.c
713
NULL, device_xname(self), "txsegmore");
sys/dev/pci/if_stge.c
715
NULL, device_xname(self), "txcopy");
sys/dev/pci/if_stge.c
718
NULL, device_xname(self), "rxipsum");
sys/dev/pci/if_stge.c
720
NULL, device_xname(self), "rxtcpsum");
sys/dev/pci/if_stge.c
722
NULL, device_xname(self), "rxudpsum");
sys/dev/pci/if_stge.c
724
NULL, device_xname(self), "txipsum");
sys/dev/pci/if_stge.c
726
NULL, device_xname(self), "txtcpsum");
sys/dev/pci/if_stge.c
728
NULL, device_xname(self), "txudpsum");
sys/dev/pci/if_stge.c
734
if (pmf_device_register1(self, NULL, NULL, stge_shutdown))
sys/dev/pci/if_stge.c
735
pmf_class_network_register(self, ifp);
sys/dev/pci/if_stge.c
737
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_stge.c
775
stge_shutdown(device_t self, int howto)
sys/dev/pci/if_stge.c
777
struct stge_softc *sc = device_private(self);
sys/dev/pci/if_ti.c
1612
ti_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_ti.c
1636
sc = device_private(self);
sys/dev/pci/if_ti.c
1637
sc->sc_dev = self;
sys/dev/pci/if_ti.c
1651
aprint_error_dev(self, "can't map memory space\n");
sys/dev/pci/if_ti.c
1671
device_xname(self));
sys/dev/pci/if_ti.c
1682
aprint_error_dev(self, "chip initialization failed\n");
sys/dev/pci/if_ti.c
1694
aprint_error_dev(self,
sys/dev/pci/if_ti.c
1704
aprint_error_dev(self, "Unknown chip version: %d\n",
sys/dev/pci/if_ti.c
1714
aprint_error_dev(self, "chip initialization failed\n");
sys/dev/pci/if_ti.c
1727
aprint_error_dev(self, "failed to read station address\n");
sys/dev/pci/if_ti.c
1734
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(eaddr));
sys/dev/pci/if_ti.c
1742
aprint_error_dev(self,
sys/dev/pci/if_ti.c
1750
aprint_error_dev(self,
sys/dev/pci/if_ti.c
1759
aprint_error_dev(self,
sys/dev/pci/if_ti.c
1767
aprint_error_dev(self,
sys/dev/pci/if_ti.c
1778
aprint_error_dev(self, "jumbo buffer allocation failed\n");
sys/dev/pci/if_ti.c
1884
if (pmf_device_register1(self, NULL, NULL, ti_shutdown))
sys/dev/pci/if_ti.c
1885
pmf_class_network_register(self, ifp);
sys/dev/pci/if_ti.c
1887
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_ti.c
2849
ti_shutdown(device_t self, int howto)
sys/dev/pci/if_ti.c
2853
sc = device_private(self);
sys/dev/pci/if_tl.c
276
tl_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_tl.c
278
tl_softc_t *sc = device_private(self);
sys/dev/pci/if_tl.c
293
sc->sc_dev = self;
sys/dev/pci/if_tl.c
345
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_tl.c
355
aprint_normal_dev(self, "%s\n", tp->tp_desc);
sys/dev/pci/if_tl.c
369
aprint_debug_dev(self, "default values of INTreg: 0x%x\n",
sys/dev/pci/if_tl.c
376
aprint_error_dev(self, "error reading Ethernet address\n");
sys/dev/pci/if_tl.c
379
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_tl.c
384
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_tl.c
391
tl_intr, sc, device_xname(self));
sys/dev/pci/if_tl.c
393
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_tl.c
399
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_tl.c
411
aprint_error_dev(self, "can't allocate DMA memory for lists\n");
sys/dev/pci/if_tl.c
431
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY, 0);
sys/dev/pci/if_tl.c
443
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_tl.c
460
if (pmf_device_register1(self, NULL, NULL, tl_shutdown))
sys/dev/pci/if_tl.c
461
pmf_class_network_register(self, ifp);
sys/dev/pci/if_tl.c
463
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_tl.c
465
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/dev/pci/if_tl.c
510
tl_shutdown(device_t self, int howto)
sys/dev/pci/if_tl.c
512
tl_softc_t *sc = device_private(self);
sys/dev/pci/if_tl.c
830
tl_mii_read(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_tl.c
832
struct tl_softc *sc = device_private(self);
sys/dev/pci/if_tl.c
870
tl_mii_write(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_tl.c
872
struct tl_softc *sc = device_private(self);
sys/dev/pci/if_tlp_pci.c
1007
aprint_normal_dev(self, "sharing interrupt with %s\n",
sys/dev/pci/if_tlp_pci.c
1014
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_tlp_pci.c
1020
tlp_pci_shared_intr : tlp_intr, sc, device_xname(self));
sys/dev/pci/if_tlp_pci.c
1022
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_tlp_pci.c
1028
aprint_normal_dev(self, "interrupting at %s\n",
sys/dev/pci/if_tlp_pci.c
1055
tlp_pci_detach(device_t self, int flags)
sys/dev/pci/if_tlp_pci.c
1057
struct tulip_pci_softc *psc = device_private(self);
sys/dev/pci/if_tlp_pci.c
349
tlp_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_tlp_pci.c
351
struct tulip_pci_softc *psc = device_private(self);
sys/dev/pci/if_tlp_pci.c
369
sc->sc_dev = self;
sys/dev/pci/if_tlp_pci.c
474
aprint_normal_dev(self,
sys/dev/pci/if_tlp_pci.c
482
aprint_normal_dev(self,
sys/dev/pci/if_tlp_pci.c
527
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/if_tlp_pci.c
529
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_tlp_pci.c
560
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_tlp_pci.c
628
aprint_error_dev(self, "EEPROM timed out\n");
sys/dev/pci/if_tlp_pci.c
647
ea = prop_dictionary_get(device_properties(self),
sys/dev/pci/if_tlp_pci.c
937
device_properties(self), "mac-address");
sys/dev/pci/if_tlp_pci.c
986
aprint_error_dev(self, "sorry, unable to handle your board\n");
sys/dev/pci/if_txp.c
182
txp_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_txp.c
184
struct txp_softc *sc = device_private(self);
sys/dev/pci/if_txp.c
200
sc->sc_dev = self;
sys/dev/pci/if_txp.c
256
device_xname(self));
sys/dev/pci/if_txp.c
292
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_txp.c
358
if (pmf_device_register1(self, NULL, NULL, txp_shutdown))
sys/dev/pci/if_txp.c
359
pmf_class_network_register(self, ifp);
sys/dev/pci/if_txp.c
361
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_txp.c
960
txp_shutdown(device_t self, int howto)
sys/dev/pci/if_txp.c
964
sc = device_private(self);
sys/dev/pci/if_vge.c
1039
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/dev/pci/if_vge.c
1061
if (pmf_device_register1(self, NULL, NULL, vge_shutdown))
sys/dev/pci/if_vge.c
1062
pmf_class_network_register(self, ifp);
sys/dev/pci/if_vge.c
1064
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_vge.c
2171
vge_shutdown(device_t self, int howto)
sys/dev/pci/if_vge.c
2175
sc = device_private(self);
sys/dev/pci/if_vge.c
896
vge_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_vge.c
899
struct vge_softc *sc = device_private(self);
sys/dev/pci/if_vge.c
909
sc->sc_dev = self;
sys/dev/pci/if_vge.c
923
aprint_error_dev(self, "couldn't map memory\n");
sys/dev/pci/if_vge.c
931
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/if_vge.c
936
sc, device_xname(self));
sys/dev/pci/if_vge.c
938
aprint_error_dev(self, "unable to establish interrupt");
sys/dev/pci/if_vge.c
944
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_vge.c
963
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_vge.c
980
aprint_error_dev(self,
sys/dev/pci/if_vge.c
994
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_vioif.c
458
vioif_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_vioif.c
460
struct vioif_softc *sc = device_private(self);
sys/dev/pci/if_vioif.c
477
sc->sc_dev = self;
sys/dev/pci/if_vioif.c
492
snprintf(xnamebuf, sizeof(xnamebuf), "%s_txrx", device_xname(self));
sys/dev/pci/if_vioif.c
514
virtio_child_attach_start(vsc, self, IPL_NET,
sys/dev/pci/if_vioif.c
540
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_vioif.c
605
aprint_error_dev(self, "failed to allocate "
sys/dev/pci/if_vioif.c
618
aprint_error_dev(self, "cannot establish ctl softint\n");
sys/dev/pci/if_vioif.c
631
aprint_error_dev(self, "unable to create sysctl node\n");
sys/dev/pci/if_vioif.c
637
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_vioif.c
680
config_finalize_register(self, vioif_finalize_teardown);
sys/dev/pci/if_vioif.c
686
vioif_finalize_teardown(device_t self)
sys/dev/pci/if_vioif.c
688
struct vioif_softc *sc = device_private(self);
sys/dev/pci/if_vmx.c
577
vmxnet3_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_vmx.c
579
struct vmxnet3_softc *sc = device_private(self);
sys/dev/pci/if_vmx.c
585
sc->vmx_dev = self;
sys/dev/pci/if_vmx.c
664
vmxnet3_detach(device_t self, int flags)
sys/dev/pci/if_vmx.c
669
sc = device_private(self);
sys/dev/pci/if_vr.c
1448
vr_shutdown(device_t self, int howto)
sys/dev/pci/if_vr.c
1450
struct vr_softc *sc = device_private(self);
sys/dev/pci/if_vr.c
1462
vr_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_vr.c
1464
struct vr_softc *sc = device_private(self);
sys/dev/pci/if_vr.c
1477
sc->vr_dev = self;
sys/dev/pci/if_vr.c
1495
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
sys/dev/pci/if_vr.c
1497
aprint_error_dev(self, "cannot activate %d\n", error);
sys/dev/pci/if_vr.c
1544
aprint_error_dev(self,
sys/dev/pci/if_vr.c
1551
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_vr.c
1557
IPL_NET, vr_intr, sc, device_xname(self));
sys/dev/pci/if_vr.c
1559
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_vr.c
1565
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_vr.c
1616
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(eaddr));
sys/dev/pci/if_vr.c
1629
aprint_error_dev(self,
sys/dev/pci/if_vr.c
1637
aprint_error_dev(self,
sys/dev/pci/if_vr.c
1646
aprint_error_dev(self,
sys/dev/pci/if_vr.c
1655
aprint_error_dev(self,
sys/dev/pci/if_vr.c
1668
aprint_error_dev(self,
sys/dev/pci/if_vr.c
1682
aprint_error_dev(self,
sys/dev/pci/if_vr.c
1701
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_vr.c
1714
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/dev/pci/if_vr.c
1731
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/dev/pci/if_vr.c
1734
if (pmf_device_register1(self, NULL, vr_resume, vr_shutdown))
sys/dev/pci/if_vr.c
1735
pmf_class_network_register(self, ifp);
sys/dev/pci/if_vr.c
1737
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_vr.c
1766
vr_restore_state(pci_chipset_tag_t pc, pcitag_t tag, device_t self,
sys/dev/pci/if_vr.c
1769
struct vr_softc *sc = device_private(self);
sys/dev/pci/if_vr.c
1785
vr_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_vr.c
1787
struct vr_softc *sc = device_private(self);
sys/dev/pci/if_vr.c
371
vr_mii_bitbang_read(device_t self)
sys/dev/pci/if_vr.c
373
struct vr_softc *sc = device_private(self);
sys/dev/pci/if_vr.c
379
vr_mii_bitbang_write(device_t self, uint32_t val)
sys/dev/pci/if_vr.c
381
struct vr_softc *sc = device_private(self);
sys/dev/pci/if_vr.c
390
vr_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pci/if_vr.c
392
struct vr_softc *sc = device_private(self);
sys/dev/pci/if_vr.c
395
return (mii_bitbang_readreg(self, &vr_mii_bitbang_ops, phy, reg, val));
sys/dev/pci/if_vr.c
402
vr_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/pci/if_vr.c
404
struct vr_softc *sc = device_private(self);
sys/dev/pci/if_vr.c
407
return mii_bitbang_writereg(self, &vr_mii_bitbang_ops, phy, reg, val);
sys/dev/pci/if_vte.c
161
vte_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_vte.c
163
struct vte_softc *sc = device_private(self);
sys/dev/pci/if_vte.c
176
sc->vte_dev = self;
sys/dev/pci/if_vte.c
198
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/if_vte.c
218
aprint_normal_dev(self, "Ethernet address %s\n",
sys/dev/pci/if_vte.c
223
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_vte.c
229
vte_intr, sc, device_xname(self));
sys/dev/pci/if_vte.c
231
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_vte.c
237
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_vte.c
247
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY,
sys/dev/pci/if_vte.c
260
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_vte.c
273
if (pmf_device_register1(self, vte_suspend, vte_resume, vte_shutdown))
sys/dev/pci/if_vte.c
274
pmf_class_network_register(self, ifp);
sys/dev/pci/if_vte.c
276
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_vte.c
278
rnd_attach_source(&sc->rnd_source, device_xname(self),
sys/dev/pci/if_wi_pci.c
130
wi_pci_enable(device_t self, int onoff)
sys/dev/pci/if_wi_pci.c
132
struct wi_pci_softc *psc = device_private(self);
sys/dev/pci/if_wi_pci.c
138
psc->psc_ih, IPL_NET, wi_intr, sc, device_xname(self));
sys/dev/pci/if_wi_pci.c
211
wi_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_wi_pci.c
213
struct wi_pci_softc *psc = device_private(self);
sys/dev/pci/if_wi_pci.c
224
sc->sc_dev = self;
sys/dev/pci/if_wi_pci.c
317
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/if_wi_pci.c
324
device_xname(self));
sys/dev/pci/if_wi_pci.c
326
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/if_wi_pci.c
333
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_wi_pci.c
357
printf("%s:", device_xname(self));
sys/dev/pci/if_wi_pci.c
360
aprint_error_dev(self, "failed to attach controller\n");
sys/dev/pci/if_wi_pci.c
368
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/if_wi_pci.c
369
pmf_class_network_register(self, &sc->sc_if);
sys/dev/pci/if_wi_pci.c
371
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_wm.c
2006
wm_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_wm.c
2008
struct wm_softc *sc = device_private(self);
sys/dev/pci/if_wm.c
2037
sc->sc_dev = self;
sys/dev/pci/if_wm.c
2194
if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self, NULL))
sys/dev/pci/if_wm.c
3531
if (pmf_device_register(self, wm_suspend, wm_resume))
sys/dev/pci/if_wm.c
3532
pmf_class_network_register(self, ifp);
sys/dev/pci/if_wm.c
3534
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_wm.c
3543
wm_detach(device_t self, int flags __unused)
sys/dev/pci/if_wm.c
3545
struct wm_softc *sc = device_private(self);
sys/dev/pci/if_wm.c
3558
pmf_device_deregister(self);
sys/dev/pci/if_wm.c
3748
wm_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_wm.c
3750
struct wm_softc *sc = device_private(self);
sys/dev/pci/if_wm.c
3760
wm_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/if_wm.c
3762
struct wm_softc *sc = device_private(self);
sys/dev/pci/if_wpi.c
203
wpi_attach(device_t parent __unused, device_t self, void *aux)
sys/dev/pci/if_wpi.c
205
struct wpi_softc *sc = device_private(self);
sys/dev/pci/if_wpi.c
219
sc->sc_dev = self;
sys/dev/pci/if_wpi.c
224
sc->sc_rsw.smpsw_name = device_xname(self);
sys/dev/pci/if_wpi.c
228
aprint_error_dev(self,
sys/dev/pci/if_wpi.c
237
wpi_rsw_thread, sc, &sc->sc_rsw_lwp, "%s", device_xname(self))) {
sys/dev/pci/if_wpi.c
238
aprint_error_dev(self, "couldn't create switch thread\n");
sys/dev/pci/if_wpi.c
255
aprint_error_dev(self, "could not map memory space\n");
sys/dev/pci/if_wpi.c
265
aprint_error_dev(self, "could not establish softint\n");
sys/dev/pci/if_wpi.c
270
aprint_error_dev(self, "could not map interrupt\n");
sys/dev/pci/if_wpi.c
277
IPL_NET, wpi_intr, sc, device_xname(self));
sys/dev/pci/if_wpi.c
279
aprint_error_dev(self, "could not establish interrupt");
sys/dev/pci/if_wpi.c
285
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/if_wpi.c
291
aprint_error_dev(self, "could not reset adapter\n");
sys/dev/pci/if_wpi.c
299
aprint_error_dev(self, "could not allocate firmware memory\n");
sys/dev/pci/if_wpi.c
307
aprint_error_dev(self, "could not allocate shared area\n");
sys/dev/pci/if_wpi.c
312
aprint_error_dev(self, "could not allocate Rx buffers\n");
sys/dev/pci/if_wpi.c
320
aprint_error_dev(self,
sys/dev/pci/if_wpi.c
328
aprint_error_dev(self, "could not allocate command ring\n");
sys/dev/pci/if_wpi.c
334
aprint_error_dev(self, "could not allocate Rx ring\n");
sys/dev/pci/if_wpi.c
371
memcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pci/if_wpi.c
398
if (pmf_device_register(self, NULL, wpi_resume))
sys/dev/pci/if_wpi.c
399
pmf_class_network_register(self, ifp);
sys/dev/pci/if_wpi.c
401
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/if_wpi.c
436
wpi_detach(device_t self, int flags __unused)
sys/dev/pci/if_wpi.c
438
struct wpi_softc *sc = device_private(self);
sys/dev/pci/if_xge.c
173
static void xge_attach(device_t parent, device_t self, void *aux);
sys/dev/pci/if_xge.c
273
xge_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/if_xge.c
287
sc = device_private(self);
sys/dev/pci/if_xge.c
288
sc->sc_dev = self;
sys/dev/pci/if_xge.c
570
device_xname(self));
sys/dev/pci/igc/if_igc.c
348
igc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/igc/if_igc.c
351
struct igc_softc *sc = device_private(self);
sys/dev/pci/igc/if_igc.c
357
sc->sc_dev = self;
sys/dev/pci/igc/if_igc.c
484
if (pmf_device_register(self, NULL, NULL))
sys/dev/pci/igc/if_igc.c
485
pmf_class_network_register(self, &sc->sc_ec.ec_if);
sys/dev/pci/igc/if_igc.c
487
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/igc/if_igc.c
511
igc_detach(device_t self, int flags)
sys/dev/pci/igc/if_igc.c
513
struct igc_softc *sc = device_private(self);
sys/dev/pci/igma.c
332
igma_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/igma.c
334
struct igma_softc *sc = device_private(self);
sys/dev/pci/igma.c
343
sc->sc_dev = self;
sys/dev/pci/igma/igmafb.c
116
igmafb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/igma/igmafb.c
118
struct igmafb_softc *sc = device_private(self);
sys/dev/pci/igma/igmafb.c
125
sc->sc_dev = self;
sys/dev/pci/igma/igmafb.c
130
device_getprop_bool(self, "is_console");
sys/dev/pci/igma/igmafb.c
141
aprint_normal("%s: %d x %d, %d bit, stride %d\n", device_xname(self),
sys/dev/pci/igma/igmafb.c
144
aprint_normal("%s: %d MB video memory at %p\n", device_xname(self),
sys/dev/pci/igsfb_pci.c
154
igsfb_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/igsfb_pci.c
156
struct igsfb_softc *sc = device_private(self);
sys/dev/pci/igsfb_pci.c
160
sc->sc_dev = self;
sys/dev/pci/iha_pci.c
104
iha_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/iha_pci.c
106
struct iha_softc *sc = device_private(self);
sys/dev/pci/iha_pci.c
116
sc->sc_dev = self;
sys/dev/pci/iha_pci.c
133
aprint_error_dev(self, "unable to map registers\n");
sys/dev/pci/iha_pci.c
142
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/iha_pci.c
148
sc, device_xname(self));
sys/dev/pci/iha_pci.c
151
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/iha_pci.c
157
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/iop_pci.c
108
iop_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/iop_pci.c
119
sc = device_private(self);
sys/dev/pci/iop_pci.c
120
sc->sc_dev = self;
sys/dev/pci/iop_pci.c
144
aprint_error_dev(self, "can't map register window\n");
sys/dev/pci/iop_pci.c
164
aprint_error_dev(self,
sys/dev/pci/iop_pci.c
192
device_xname(self));
sys/dev/pci/ips.c
620
ips_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ips.c
622
struct ips_softc *sc = device_private(self);
sys/dev/pci/ips.c
637
sc->sc_dev = self;
sys/dev/pci/ips.c
770
adapt->adapt_dev = self;
sys/dev/pci/ips.c
817
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/dev/pci/ismt.c
624
ismt_detach(device_t self, int flags)
sys/dev/pci/ismt.c
626
struct ismt_softc *sc = device_private(self);
sys/dev/pci/ismt.c
629
ISMT_DEBUG(self, "%s\n", __func__);
sys/dev/pci/ismt.c
630
error = config_detach_children(self, flags);
sys/dev/pci/ismt.c
658
ismt_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ismt.c
660
struct ismt_softc *sc = device_private(self);
sys/dev/pci/ismt.c
667
sc->pcidev = self;
sys/dev/pci/ismt.c
681
aprint_error_dev(self, "can't map mem space\n");
sys/dev/pci/ismt.c
734
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/ismt.c
740
IPL_BIO, ismt_intr, sc, device_xname(self));
sys/dev/pci/ismt.c
754
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/ismt.c
755
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/ismt.c
757
config_interrupts(self, ismt_config_interrupts);
sys/dev/pci/ismt.c
789
ismt_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/pci/ismt.c
791
struct ismt_softc *sc = device_private(self);
sys/dev/pci/ismt.c
801
sc->smbdev = iicbus_attach(self, &sc->sc_i2c_tag);
sys/dev/pci/ismt.c
807
ismt_config_interrupts(device_t self)
sys/dev/pci/ismt.c
810
ismt_rescan(self, NULL, NULL);
sys/dev/pci/ismt.c
814
ismt_chdet(device_t self, device_t child)
sys/dev/pci/ismt.c
816
struct ismt_softc *sc = device_private(self);
sys/dev/pci/isp_pci.c
481
isp_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/isp_pci.c
485
struct isp_pcisoftc *pcs = device_private(self);
sys/dev/pci/isp_pci.c
497
isp->isp_osinfo.dev = self;
sys/dev/pci/isp_pci.c
748
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/isp_pci.c
757
isp_pci_intr, isp, device_xname(self));
sys/dev/pci/isp_pci.c
759
aprint_error_dev(self, "couldn't establish interrupt at %s\n",
sys/dev/pci/isp_pci.c
766
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/isp_pci.c
768
isp->isp_confopts = device_cfdata(self)->cf_flags;
sys/dev/pci/iteide.c
85
iteide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/iteide.c
88
struct pciide_softc *sc = device_private(self);
sys/dev/pci/iteide.c
90
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/ixpide.c
83
ixpide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ixpide.c
86
struct pciide_softc *sc = device_private(self);
sys/dev/pci/ixpide.c
88
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/ixpide.c
93
if (!pmf_device_register(self, ixpide_suspend, ixpide_resume))
sys/dev/pci/ixpide.c
94
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/jmide.c
149
jmide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/jmide.c
152
struct jmide_softc *sc = device_private(self);
sys/dev/pci/jmide.c
165
sc->sc_pciide.sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/jmide.c
169
aprint_error_dev(self, "jmide_attach: WTF?\n");
sys/dev/pci/jmide.c
193
intrhandle, IPL_BIO, jmide_intr, sc, device_xname(self));
sys/dev/pci/jmide.c
447
jmahci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/jmide.c
451
struct ahci_softc *sc = device_private(self);
sys/dev/pci/jmide.c
457
sc->sc_atac.atac_dev = self;
sys/dev/pci/jmide.c
473
if (!pmf_device_register(self, NULL, jmahci_resume))
sys/dev/pci/jmide.c
474
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/joy_eap.c
101
joy_eap_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/joy_eap.c
103
struct joy_softc *sc = device_private(self);
sys/dev/pci/joy_eap.c
111
sc->sc_dev = self;
sys/dev/pci/joy_eap.c
118
joy_eap_detach(device_t self, int flags)
sys/dev/pci/joy_eap.c
121
return joydetach(device_private(self), flags);
sys/dev/pci/joy_eso.c
67
joy_eso_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/joy_eso.c
70
struct joy_softc *sc = device_private(self);
sys/dev/pci/joy_eso.c
76
sc->sc_dev = self;
sys/dev/pci/joy_pci.c
104
aprint_error_dev(self,
sys/dev/pci/joy_pci.c
111
aprint_error_dev(self, "could not map IO space\n");
sys/dev/pci/joy_pci.c
118
aprint_error_dev(self, "error mapping subregion\n");
sys/dev/pci/joy_pci.c
124
sc->sc_dev = self;
sys/dev/pci/joy_pci.c
89
joy_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/joy_pci.c
91
struct joy_pci_softc *psc = device_private(self);
sys/dev/pci/ld_amr.c
79
ld_amr_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ld_amr.c
82
struct ld_amr_softc *sc = device_private(self);
sys/dev/pci/ld_amr.c
88
ld->sc_dv = self;
sys/dev/pci/ld_twa.c
105
ld_twa_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ld_twa.c
108
struct ld_twa_softc *sc = device_private(self);
sys/dev/pci/ld_twa.c
112
ld->sc_dv = self;
sys/dev/pci/ld_twa.c
129
ld_twa_detach(device_t self, int flags)
sys/dev/pci/ld_twa.c
131
struct ld_twa_softc *sc = device_private(self);
sys/dev/pci/ld_twa.c
299
ld_twa_adjqparam(device_t self, int openings)
sys/dev/pci/ld_twa.c
301
struct ld_twa_softc *sc = device_private(self);
sys/dev/pci/ld_twe.c
104
ld->sc_dv = self;
sys/dev/pci/ld_twe.c
158
ld_twe_detach(device_t self, int flags)
sys/dev/pci/ld_twe.c
160
struct ld_twe_softc *sc = device_private(self);
sys/dev/pci/ld_twe.c
342
ld_twe_adjqparam(device_t self, int openings)
sys/dev/pci/ld_twe.c
344
struct ld_twe_softc *sc = device_private(self);
sys/dev/pci/ld_twe.c
92
ld_twe_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ld_twe.c
95
struct ld_twe_softc *sc = device_private(self);
sys/dev/pci/ld_virtio.c
311
ld_virtio_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ld_virtio.c
313
struct ld_virtio_softc *sc = device_private(self);
sys/dev/pci/ld_virtio.c
325
sc->sc_dev = self;
sys/dev/pci/ld_virtio.c
328
virtio_child_attach_start(vsc, self, IPL_BIO,
sys/dev/pci/ld_virtio.c
413
ld->sc_dv = self;
sys/dev/pci/ld_virtio.c
868
ld_virtio_detach(device_t self, int flags)
sys/dev/pci/ld_virtio.c
870
struct ld_virtio_softc *sc = device_private(self);
sys/dev/pci/lpt_puc.c
111
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/lpt_puc.c
112
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/lpt_puc.c
68
lpt_puc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/lpt_puc.c
70
struct lpt_softc *sc = device_private(self);
sys/dev/pci/lpt_puc.c
75
sc->sc_dev = self;
sys/dev/pci/lpt_puc.c
90
lptintr, sc, device_xname(self));
sys/dev/pci/lynxfb.c
266
lynxfb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/lynxfb.c
268
struct lynxfb_softc *sc = device_private(self);
sys/dev/pci/lynxfb.c
277
sc->sc_dev = self;
sys/dev/pci/lynxfb.c
296
aprint_error_dev(self, "can't map frame buffer\n");
sys/dev/pci/lynxfb.c
300
dict = device_properties(self);
sys/dev/pci/lynxfb.c
317
aprint_error_dev(self, "can't setup frame buffer\n");
sys/dev/pci/lynxfb.c
325
aprint_normal_dev(self, "%d x %d, %d bpp, stride %d\n", fb->width,
sys/dev/pci/lynxfb.c
367
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/pci/machfb.c
411
mach64_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/machfb.c
413
struct mach64_softc *sc = device_private(self);
sys/dev/pci/machfb.c
430
sc->sc_dev = self;
sys/dev/pci/machfb.c
446
printf(prop_dictionary_externalize(device_properties(self)));
sys/dev/pci/machfb.c
516
prop_dictionary_get_uint32(device_properties(self), "width", &width);
sys/dev/pci/machfb.c
517
prop_dictionary_get_uint32(device_properties(self), "height", &height);
sys/dev/pci/machfb.c
527
(edid_data = prop_dictionary_get(device_properties(self), "EDID"))
sys/dev/pci/machfb.c
787
config_found(self, &aa, wsemuldisplaydevprint,
sys/dev/pci/machfb.c
809
config_found(self, aux, machfb_drm_print,
sys/dev/pci/mfi_pci.c
173
mfi_pci_detach(device_t self, int flags)
sys/dev/pci/mfi_pci.c
175
struct mfi_pci_softc *psc = device_private(self);
sys/dev/pci/mfi_pci.c
189
mfi_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mfi_pci.c
191
struct mfi_pci_softc *psc = device_private(self);
sys/dev/pci/mfi_pci.c
204
sc->sc_dev = self;
sys/dev/pci/mfi_pci.c
244
mfi_tbolt_intrh, sc, device_xname(self));
sys/dev/pci/mfi_pci.c
247
mfi_intr, sc, device_xname(self));
sys/dev/pci/mfii.c
1043
mfii_detach(device_t self, int flags)
sys/dev/pci/mfii.c
1045
struct mfii_softc *sc = device_private(self);
sys/dev/pci/mfii.c
1074
mfii_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/pci/mfii.c
1076
struct mfii_softc *sc = device_private(self);
sys/dev/pci/mfii.c
1081
sc->sc_child = config_found(self, &sc->sc_chan, scsiprint,
sys/dev/pci/mfii.c
1087
mfii_childdetached(device_t self, device_t child)
sys/dev/pci/mfii.c
1089
struct mfii_softc *sc = device_private(self);
sys/dev/pci/mfii.c
1091
KASSERT(self == sc->sc_dev);
sys/dev/pci/mfii.c
705
mfii_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mfii.c
707
struct mfii_softc *sc = device_private(self);
sys/dev/pci/mfii.c
720
sc->sc_dev = self;
sys/dev/pci/mfii.c
738
snprintf(intrbuf, sizeof(intrbuf) - 1, "%saen", device_xname(self));
sys/dev/pci/mfii.c
742
snprintf(intrbuf, sizeof(intrbuf) - 1, "%sabrt", device_xname(self));
sys/dev/pci/mfii.c
883
aprint_error_dev(self, "can't establish interrupt");
sys/dev/pci/mfii.c
889
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/mfii.c
899
aprint_verbose_dev(self, "Max 256 VD support\n");
sys/dev/pci/mfii.c
937
aprint_error_dev(self,
sys/dev/pci/mfii.c
959
aprint_error_dev(self, "unable to create sensors\n");
sys/dev/pci/mfii.c
963
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/mgafb.c
256
mgafb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mgafb.c
258
struct mgafb_softc *sc = device_private(self);
sys/dev/pci/mgafb.c
271
prop_dictionary_get_bool(device_properties(self), "is_console",
sys/dev/pci/mgafb.c
275
sc->sc_dev = self;
sys/dev/pci/mgafb.c
308
aprint_error_dev(self,
sys/dev/pci/mgafb.c
316
aprint_error_dev(self,
sys/dev/pci/mgafb.c
321
aprint_normal_dev(self,
sys/dev/pci/mgafb.c
344
aprint_normal_dev(self,
sys/dev/pci/mgafb.c
356
aprint_normal_dev(self, "videomode: %dx%d, %d kHz dot clock\n",
sys/dev/pci/mgafb.c
364
aprint_normal_dev(self, "setting %dx%d %dbpp\n",
sys/dev/pci/mlx_pci.c
148
mlx_pci_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/pci/mlx_pci.c
151
return mlx_configure(device_private(self), 1);
sys/dev/pci/mlx_pci.c
201
mlx_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mlx_pci.c
215
mlx = device_private(self);
sys/dev/pci/mlx_pci.c
220
mlx->mlx_dv = self;
sys/dev/pci/mlx_pci.c
260
aprint_error_dev(self, "can't map i/o or memory space\n");
sys/dev/pci/mlx_pci.c
271
aprint_error_dev(self, "can't map interrupt\n");
sys/dev/pci/mlx_pci.c
276
device_xname(self));
sys/dev/pci/mlx_pci.c
278
aprint_error_dev(self, "can't establish interrupt");
sys/dev/pci/mly.c
278
mly_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mly.c
295
mly = device_private(self);
sys/dev/pci/mly.c
296
mly->mly_dv = self;
sys/dev/pci/mly.c
341
aprint_error_dev(self, "can't map i/o or memory space\n");
sys/dev/pci/mly.c
356
aprint_error_dev(self, "can't map interrupt\n");
sys/dev/pci/mly.c
361
device_xname(self));
sys/dev/pci/mly.c
363
aprint_error_dev(self, "can't establish interrupt");
sys/dev/pci/mly.c
371
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/mly.c
408
device_xname(self));
sys/dev/pci/mly.c
420
aprint_error_dev(self, "unable to allocate mailboxes\n");
sys/dev/pci/mly.c
442
aprint_error_dev(self, "unable to bring controller online\n");
sys/dev/pci/mly.c
452
aprint_error_dev(self, "unable to allocate CCBs\n");
sys/dev/pci/mly.c
457
aprint_error_dev(self, "unable to retrieve controller info\n");
sys/dev/pci/mly.c
462
aprint_error_dev(self, "unable to allocate CCBs\n");
sys/dev/pci/mly.c
472
aprint_error_dev(self, "unable to retrieve event status\n");
sys/dev/pci/mly.c
480
aprint_error_dev(self, "unable to enable memory mailbox\n");
sys/dev/pci/mly.c
490
"(%02d%02d%02d%02d), %dMB RAM\n", device_xname(self),
sys/dev/pci/mly.c
518
adapt->adapt_dev = self;
sys/dev/pci/mly.c
536
config_found(self, chan, scsiprint, CFARGS_NONE);
sys/dev/pci/mly.c
549
&mly->mly_thread, "%s", device_xname(self));
sys/dev/pci/mly.c
551
aprint_error_dev(self, "unable to create thread (%d)\n", rv);
sys/dev/pci/mpii.c
457
mpii_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mpii.c
459
struct mpii_softc *sc = device_private(self);
sys/dev/pci/mpii.c
474
sc->sc_dev = self;
sys/dev/pci/mpii.c
486
aprint_error_dev(self,
sys/dev/pci/mpii.c
493
aprint_error_dev(self,
sys/dev/pci/mpii.c
510
aprint_error_dev(self, "unable to map interrupt\n");
sys/dev/pci/mpii.c
517
mpii_intr, sc, device_xname(self));
sys/dev/pci/mpii.c
519
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/mpii.c
525
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/mpii.c
529
aprint_error_dev(self, "unable to get iocfacts\n");
sys/dev/pci/mpii.c
534
aprint_error_dev(self, "unable to initialize ioc\n");
sys/dev/pci/mpii.c
544
aprint_error_dev(self, "unable to allocated reply space\n");
sys/dev/pci/mpii.c
549
aprint_error_dev(self, "unable to allocate reply queues\n");
sys/dev/pci/mpii.c
554
aprint_error_dev(self, "unable to send iocinit\n");
sys/dev/pci/mpii.c
560
aprint_error_dev(self, "state: 0x%08x\n",
sys/dev/pci/mpii.c
562
aprint_error_dev(self, "operational state timeout\n");
sys/dev/pci/mpii.c
570
aprint_error_dev(self, "unable to get manufacturing page 0\n");
sys/dev/pci/mpii.c
575
aprint_error_dev(self, "unable to get portfacts\n");
sys/dev/pci/mpii.c
580
aprint_error_dev(self, "unable to setup target mappings\n");
sys/dev/pci/mpii.c
585
aprint_error_dev(self, "unable to configure coalescing\n");
sys/dev/pci/mpii.c
594
aprint_error_dev(self, "unable to enable events\n");
sys/dev/pci/mpii.c
604
aprint_error_dev(self, "unable to enable port\n");
sys/dev/pci/mpii.c
627
mpii_rescan(self, NULL, NULL);
sys/dev/pci/mpii.c
639
aprint_error_dev(self, "unable to create sensors\n");
sys/dev/pci/mpii.c
675
mpii_detach(device_t self, int flags)
sys/dev/pci/mpii.c
677
struct mpii_softc *sc = device_private(self);
sys/dev/pci/mpii.c
722
mpii_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/pci/mpii.c
724
struct mpii_softc *sc = device_private(self);
sys/dev/pci/mpii.c
729
sc->sc_child = config_found(self, &sc->sc_chan, scsiprint, CFARGS_NONE);
sys/dev/pci/mpii.c
735
mpii_childdetached(device_t self, device_t child)
sys/dev/pci/mpii.c
737
struct mpii_softc *sc = device_private(self);
sys/dev/pci/mpii.c
739
KASSERT(self == sc->sc_dev);
sys/dev/pci/mpt_pci.c
126
mpt_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mpt_pci.c
128
struct mpt_pci_softc *psc = device_private(self);
sys/dev/pci/mpt_pci.c
144
mpt->sc_dev = self;
sys/dev/pci/mpt_pci.c
166
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/mpt_pci.c
223
aprint_error_dev(self, "unable to allocate DMA memory\n");
sys/dev/pci/mpu_cmpci.c
71
mpu_cmpci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mpu_cmpci.c
74
struct mpu_softc *sc = device_private(self);
sys/dev/pci/mpu_cmpci.c
81
sc->sc_dev = self;
sys/dev/pci/mpu_eso.c
72
mpu_eso_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mpu_eso.c
75
struct mpu_softc *sc = device_private(self);
sys/dev/pci/mpu_eso.c
82
sc->sc_dev = self;
sys/dev/pci/mpu_fms.c
73
mpu_fms_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mpu_fms.c
76
struct mpu_softc *sc = device_private(self);
sys/dev/pci/mpu_fms.c
83
sc->sc_dev = self;
sys/dev/pci/mpu_yds.c
74
mpu_yds_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mpu_yds.c
77
struct mpu_softc *sc = device_private(self);
sys/dev/pci/mpu_yds.c
88
sc->sc_dev = self;
sys/dev/pci/mvsata_pci.c
148
mvsata_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/mvsata_pci.c
151
struct mvsata_pci_softc *psc = device_private(self);
sys/dev/pci/mvsata_pci.c
161
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/mvsata_pci.c
173
aprint_error_dev(self, "can't map registers\n");
sys/dev/pci/mvsata_pci.c
182
aprint_error_dev(self, "can't subregion registers\n");
sys/dev/pci/mvsata_pci.c
193
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/mvsata_pci.c
198
mvsata_pci_intr, sc, device_xname(self));
sys/dev/pci/mvsata_pci.c
200
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/pci/mvsata_pci.c
203
aprint_normal_dev(self, "interrupting at %s\n",
sys/dev/pci/mvsata_pci.c
237
if (!pmf_device_register(self, NULL, mvsata_pci_resume))
sys/dev/pci/mvsata_pci.c
238
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/mvsata_pci.c
242
mvsata_pci_detach(device_t self, int flags)
sys/dev/pci/mvsata_pci.c
244
struct mvsata_pci_softc *psc = device_private(self);
sys/dev/pci/mvsata_pci.c
249
pmf_device_deregister(self);
sys/dev/pci/nca_pci.c
73
nca_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/nca_pci.c
75
struct ncr5380_softc *sc = device_private(self);
sys/dev/pci/nca_pci.c
78
sc->sc_dev = self;
sys/dev/pci/nca_pci.c
84
aprint_error_dev(self, "could not map IO space\n");
sys/dev/pci/neo.c
550
neo_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/neo.c
561
sc = device_private(self);
sys/dev/pci/neo.c
562
sc->dev = self;
sys/dev/pci/neo.c
574
aprint_error_dev(self, "can't map buffer\n");
sys/dev/pci/neo.c
580
aprint_error_dev(self, "can't map registers\n");
sys/dev/pci/neo.c
586
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/neo.c
595
device_xname(self));
sys/dev/pci/neo.c
598
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/neo.c
606
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/neo.c
629
if (ac97_attach(&sc->host_if, self, &sc->lock) != 0) {
sys/dev/pci/neo.c
635
if (!pmf_device_register(self, NULL, neo_resume))
sys/dev/pci/neo.c
636
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/neo.c
638
audio_attach_mi(&neo_hw_if, sc, self);
sys/dev/pci/nfsmb.c
134
nfsmbc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/nfsmb.c
136
struct nfsmbc_softc *sc = device_private(self);
sys/dev/pci/nfsmb.c
144
sc->sc_dev = self;
sys/dev/pci/nfsmb.c
182
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/nfsmb.c
183
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/nfsmb.c
214
nfsmb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/nfsmb.c
216
struct nfsmb_softc *sc = device_private(self);
sys/dev/pci/nfsmb.c
222
sc->sc_dev = self;
sys/dev/pci/nfsmb.c
234
aprint_error_dev(self, "failed to map SMBus space\n");
sys/dev/pci/nfsmb.c
243
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/nfsmb.c
244
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/njs_pci.c
118
njs_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/njs_pci.c
121
struct njsc32_pci_softc *psc = device_private(self);
sys/dev/pci/njs_pci.c
135
sc->sc_dev = self;
sys/dev/pci/njs_pci.c
162
printf("%s: memory space mapped\n", device_xname(self));
sys/dev/pci/njs_pci.c
171
printf("%s: io space mapped\n", device_xname(self));
sys/dev/pci/njs_pci.c
175
aprint_error_dev(self,
sys/dev/pci/njs_pci.c
185
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/njs_pci.c
196
device_xname(self));
sys/dev/pci/njs_pci.c
198
aprint_error_dev(self, "unable to establish interrupt%s%s\n",
sys/dev/pci/njs_pci.c
202
aprint_normal_dev(self, "interrupting%s%s\n", str_at, str_intr);
sys/dev/pci/njs_pci.c
209
njs_pci_detach(device_t self, int flags)
sys/dev/pci/njs_pci.c
211
struct njsc32_pci_softc *psc = device_private(self);
sys/dev/pci/nside.c
79
nside_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/nside.c
82
struct pciide_softc *sc = device_private(self);
sys/dev/pci/nside.c
84
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/nvme_pci.c
147
nvme_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/nvme_pci.c
149
struct nvme_pci_softc *psc = device_private(self);
sys/dev/pci/nvme_pci.c
158
sc->sc_dev = self;
sys/dev/pci/nvme_pci.c
174
aprint_error_dev(self, "invalid type (type=0x%x)\n", memtype);
sys/dev/pci/nvme_pci.c
193
aprint_error_dev(self, "can't get map info\n");
sys/dev/pci/nvme_pci.c
215
aprint_error_dev(self, "can't map mem space (error=%d)\n",
sys/dev/pci/nvme_pci.c
222
aprint_error_dev(self, "unable to allocate interrupt\n");
sys/dev/pci/nvme_pci.c
237
if (!pmf_device_register(self, nvme_pci_suspend, nvme_pci_resume))
sys/dev/pci/nvme_pci.c
238
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/nvme_pci.c
255
nvme_pci_rescan(device_t self, const char *attr, const int *flags)
sys/dev/pci/nvme_pci.c
258
return nvme_rescan(self, attr, flags);
sys/dev/pci/nvme_pci.c
262
nvme_pci_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/nvme_pci.c
264
struct nvme_pci_softc *psc = device_private(self);
sys/dev/pci/nvme_pci.c
276
nvme_pci_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/nvme_pci.c
278
struct nvme_pci_softc *psc = device_private(self);
sys/dev/pci/nvme_pci.c
290
nvme_pci_detach(device_t self, int flags)
sys/dev/pci/nvme_pci.c
292
struct nvme_pci_softc *psc = device_private(self);
sys/dev/pci/oboe.c
172
oboe_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/oboe.c
174
struct oboe_softc *sc = device_private(self);
sys/dev/pci/oboe.c
188
aprint_error_dev(self, "can't map I/O space\n");
sys/dev/pci/oboe.c
208
aprint_error_dev(self, "can't reset\n");
sys/dev/pci/oboe.c
213
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/oboe.c
218
sc, device_xname(self));
sys/dev/pci/oboe.c
220
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/oboe.c
226
aprint_normal_dev(self, "interrupting at %s\n", intrstring);
sys/dev/pci/oboe.c
240
sc->sc_child = config_found(self, &ia, ir_print, CFARGS_NONE);
sys/dev/pci/oboe.c
244
oboe_detach(device_t self, int flags)
sys/dev/pci/oboe.c
246
struct oboe_softc *sc = device_private(self);
sys/dev/pci/oboe.c
67
static void oboe_attach(device_t parent, device_t self, void *aux);
sys/dev/pci/oboe.c
68
static int oboe_detach(device_t self, int flags);
sys/dev/pci/ohci_pci.c
110
aprint_error_dev(self, "memory access is disabled\n");
sys/dev/pci/ohci_pci.c
118
aprint_error_dev(self, "can't map mem space\n");
sys/dev/pci/ohci_pci.c
136
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/ohci_pci.c
145
device_xname(self));
sys/dev/pci/ohci_pci.c
147
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/ohci_pci.c
153
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/ohci_pci.c
157
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/dev/pci/ohci_pci.c
162
usb_pci_add(&sc->sc_pci, pa, self);
sys/dev/pci/ohci_pci.c
165
if (!pmf_device_register1(self, ohci_suspend, ohci_resume,
sys/dev/pci/ohci_pci.c
167
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/ohci_pci.c
170
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/dev/pci/ohci_pci.c
187
ohci_pci_detach(device_t self, int flags)
sys/dev/pci/ohci_pci.c
189
struct ohci_pci_softc *sc = device_private(self);
sys/dev/pci/ohci_pci.c
196
error = config_detach_children(self, flags);
sys/dev/pci/ohci_pci.c
215
ohci_shutdown(self, 0);
sys/dev/pci/ohci_pci.c
216
pmf_device_deregister(self);
sys/dev/pci/ohci_pci.c
83
ohci_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ohci_pci.c
85
struct ohci_pci_softc *sc = device_private(self);
sys/dev/pci/ohci_pci.c
94
sc->sc.sc_dev = self;
sys/dev/pci/opl_cmpci.c
70
opl_cmpci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/opl_cmpci.c
73
struct opl_softc *sc = device_private(self);
sys/dev/pci/opl_cmpci.c
75
sc->dev = self;
sys/dev/pci/opl_eso.c
69
opl_eso_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/opl_eso.c
72
struct opl_softc *sc = device_private(self);
sys/dev/pci/opl_eso.c
74
sc->dev = self;
sys/dev/pci/opl_fms.c
70
opl_fms_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/opl_fms.c
73
struct opl_softc *sc = device_private(self);
sys/dev/pci/opl_fms.c
75
sc->dev = self;
sys/dev/pci/opl_sv.c
69
opl_sv_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/opl_sv.c
72
struct opl_softc *sc = device_private(self);
sys/dev/pci/opl_sv.c
74
sc->dev = self;
sys/dev/pci/opl_yds.c
72
opl_yds_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/opl_yds.c
75
struct opl_softc *sc = device_private(self);
sys/dev/pci/opl_yds.c
77
sc->dev = self;
sys/dev/pci/optiide.c
91
optiide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/optiide.c
94
struct pciide_softc *sc = device_private(self);
sys/dev/pci/optiide.c
96
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/pccbb.c
361
pccbbchilddet(device_t self, device_t child)
sys/dev/pci/pccbb.c
363
struct pccbb_softc *sc = device_private(self);
sys/dev/pci/pccbb.c
375
pccbbattach(device_t parent, device_t self, void *aux)
sys/dev/pci/pccbb.c
377
struct pccbb_softc *sc = device_private(self);
sys/dev/pci/pccbb.c
385
pccbb_attach_hook(parent, self, pa);
sys/dev/pci/pccbb.c
388
sc->sc_dev = self;
sys/dev/pci/pccbb.c
427
aprint_error_dev(self,
sys/dev/pci/pccbb.c
437
aprint_error_dev(self,
sys/dev/pci/pccbb.c
447
device_xname(self), (unsigned long)sockbase));
sys/dev/pci/pccbb.c
460
aprint_debug_dev(self, "intrpin %s, intrtag %d\n",
sys/dev/pci/pccbb.c
500
if (!pmf_device_register(self, pccbb_suspend, pccbb_resume))
sys/dev/pci/pccbb.c
501
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/pccbb.c
503
config_defer(self, pccbb_pci_callback);
sys/dev/pci/pccbb.c
507
pccbbdetach(device_t self, int flags)
sys/dev/pci/pccbb.c
509
struct pccbb_softc *sc = device_private(self);
sys/dev/pci/pccbb.c
516
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/pci/pccbb.c
521
device_xname(self));
sys/dev/pci/pccbb.c
555
aprint_error_dev(self, "i/o windows not empty\n");
sys/dev/pci/pccbb.c
557
aprint_error_dev(self, "memory windows not empty\n");
sys/dev/pci/pccbb.c
579
pccbb_pci_callback(device_t self)
sys/dev/pci/pccbb.c
581
struct pccbb_softc *sc = device_private(self);
sys/dev/pci/pccbb.c
601
device_xname(self), (unsigned long)sockbase,
sys/dev/pci/pccbb.c
616
device_xname(self), (unsigned long)sock_base,
sys/dev/pci/pccbb.c
663
aprint_verbose_dev(self, "cacheline 0x%x lattimer 0x%x\n",
sys/dev/pci/pccbb.c
665
aprint_verbose_dev(self, "bhlc 0x%x\n", bhlc);
sys/dev/pci/pccbb.c
675
aprint_error_dev(self,
sys/dev/pci/pccbb.c
683
if (NULL != (csc = config_found(self, &caa, cbbprint,
sys/dev/pci/pci.c
103
pcirescan(device_t self, const char *ifattr, const int *locators)
sys/dev/pci/pci.c
105
struct pci_softc *sc = device_private(self);
sys/dev/pci/pci.c
1359
device_t self = device_parent(child);
sys/dev/pci/pci.c
1360
struct pci_softc *sc = device_private(self);
sys/dev/pci/pci.c
137
pciattach(device_t parent, device_t self, void *aux)
sys/dev/pci/pci.c
140
struct pci_softc *sc = device_private(self);
sys/dev/pci/pci.c
147
sc->sc_dev = self;
sys/dev/pci/pci.c
149
pci_attach_hook(parent, self, pba);
sys/dev/pci/pci.c
161
aprint_error_dev(self, "no spaces enabled!\n");
sys/dev/pci/pci.c
171
aprint_verbose_dev(self, "");
sys/dev/pci/pci.c
210
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/pci.c
211
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/pci.c
215
pcidetach(device_t self, int flags)
sys/dev/pci/pci.c
219
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/pci/pci.c
221
pmf_device_deregister(self);
sys/dev/pci/pci.c
500
pcidevdetached(device_t self, device_t child)
sys/dev/pci/pci.c
502
struct pci_softc *sc = device_private(self);
sys/dev/pci/pciide.c
106
pciide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/pciide.c
109
struct pciide_softc *sc = device_private(self);
sys/dev/pci/pciide.c
111
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/pciide_common.c
229
pciide_detach(device_t self, int flags)
sys/dev/pci/pciide_common.c
231
struct pciide_softc *sc = device_private(self);
sys/dev/pci/pcscp.c
152
pcscp_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/pcscp.c
154
struct pcscp_softc *esc = device_private(self);
sys/dev/pci/pcscp.c
166
sc->sc_dev = self;
sys/dev/pci/pcscp.c
288
ncr53c9x_intr, esc, device_xname(self));
sys/dev/pci/pdcide.c
130
pdcide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/pdcide.c
133
struct pciide_softc *sc = device_private(self);
sys/dev/pci/pdcide.c
135
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/pdcsata.c
211
pdcsata_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/pdcsata.c
214
struct pciide_softc *sc = device_private(self);
sys/dev/pci/pdcsata.c
216
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/piixide.c
386
piixide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/piixide.c
389
struct pciide_softc *sc = device_private(self);
sys/dev/pci/piixide.c
391
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/piixide.c
396
if (!pmf_device_register(self, piixide_suspend, piixide_resume))
sys/dev/pci/piixide.c
397
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/piixpm.c
187
piixpm_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/piixpm.c
189
struct piixpm_softc *sc = device_private(self);
sys/dev/pci/piixpm.c
199
sc->sc_dev = self;
sys/dev/pci/piixpm.c
210
cv_init(&sc->sc_exec_wait, device_xname(self));
sys/dev/pci/piixpm.c
212
if (!pmf_device_register(self, piixpm_suspend, piixpm_resume))
sys/dev/pci/piixpm.c
213
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/piixpm.c
228
aprint_error_dev(self,
sys/dev/pci/piixpm.c
238
acpipmtimer_attach(self, sc->sc_iot, sc->sc_pm_ioh, PIIX_PM_PMTMR,
sys/dev/pci/piixpm.c
261
aprint_normal_dev(self, "SMBus initialization failed\n");
sys/dev/pci/piixpm.c
267
DPRINTF(("%s: conf 0x%08x\n", device_xname(self), conf));
sys/dev/pci/piixpm.c
270
aprint_normal_dev(self, "SMBus disabled\n");
sys/dev/pci/piixpm.c
280
aprint_error_dev(self, "can't map smbus I/O space\n");
sys/dev/pci/piixpm.c
286
aprint_normal_dev(self, "");
sys/dev/pci/piixpm.c
317
piixpm_rescan(self, NULL, NULL);
sys/dev/pci/piixpm.c
336
piixpm_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/pci/piixpm.c
338
struct piixpm_softc *sc = device_private(self);
sys/dev/pci/piixpm.c
364
config_found(self, &iba, piixpm_iicbus_print, CFARGS_NONE);
sys/dev/pci/piixpm.c
373
piixpm_chdet(device_t self, device_t child)
sys/dev/pci/piixpm.c
375
struct piixpm_softc *sc = device_private(self);
sys/dev/pci/pm2fb.c
307
pm2fb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/pm2fb.c
309
struct pm2fb_softc *sc = device_private(self);
sys/dev/pci/pm2fb.c
323
sc->sc_dev = self;
sys/dev/pci/pm2fb.c
340
dict = device_properties(self);
sys/dev/pci/pm2fb.c
342
aprint_error("%s: no width property\n", device_xname(self));
sys/dev/pci/pm2fb.c
346
aprint_error("%s: no height property\n", device_xname(self));
sys/dev/pci/pm2fb.c
350
aprint_error("%s: no depth property\n", device_xname(self));
sys/dev/pci/pm2fb.c
376
aprint_normal("%s: %d MB aperture at 0x%08x\n", device_xname(self),
sys/dev/pci/pm3fb.c
217
pm3fb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/pm3fb.c
219
struct pm3fb_softc *sc = device_private(self);
sys/dev/pci/pm3fb.c
232
sc->sc_dev = self;
sys/dev/pci/pm3fb.c
242
dict = device_properties(self);
sys/dev/pci/pm3fb.c
244
aprint_error("%s: no width property\n", device_xname(self));
sys/dev/pci/pm3fb.c
248
aprint_error("%s: no height property\n", device_xname(self));
sys/dev/pci/pm3fb.c
252
aprint_error("%s: no depth property\n", device_xname(self));
sys/dev/pci/pm3fb.c
286
aprint_normal("%s: %d MB aperture at 0x%08x\n", device_xname(self),
sys/dev/pci/ppb.c
117
ppb_print_pcie(device_t self)
sys/dev/pci/ppb.c
119
struct ppb_softc *sc = device_private(self);
sys/dev/pci/ppb.c
129
aprint_normal_dev(self, "PCI Express capability version ");
sys/dev/pci/ppb.c
138
aprint_normal_dev(self, "unsupported (%d)\n", capversion);
sys/dev/pci/ppb.c
192
aprint_normal_dev(self,
sys/dev/pci/ppb.c
196
aprint_normal_dev(self,
sys/dev/pci/ppb.c
210
ppbattach(device_t parent, device_t self, void *aux)
sys/dev/pci/ppb.c
212
struct ppb_softc *sc = device_private(self);
sys/dev/pci/ppb.c
227
sc->sc_dev = self;
sys/dev/pci/ppb.c
232
aprint_normal_dev(self, "not configured by system firmware\n");
sys/dev/pci/ppb.c
236
ppb_print_pcie(self);
sys/dev/pci/ppb.c
284
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/ppb.c
418
if (!pmf_device_register(self, ppb_suspend, ppb_resume))
sys/dev/pci/ppb.c
419
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/ppb.c
439
config_found(self, &pba, pcibusprint,
sys/dev/pci/ppb.c
444
CFARGS(.devhandle = device_handle(self)));
sys/dev/pci/ppb.c
448
ppbdetach(device_t self, int flags)
sys/dev/pci/ppb.c
451
struct ppb_softc *sc = device_private(self);
sys/dev/pci/ppb.c
456
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/pci/ppb.c
483
pmf_device_deregister(self);
sys/dev/pci/ppb.c
518
ppbchilddet(device_t self, device_t child)
sys/dev/pci/puc.c
142
puc_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/puc.c
144
struct puc_softc *sc = device_private(self);
sys/dev/pci/puc.c
167
device_xname(self));
sys/dev/pci/puc.c
169
device_xname(self));
sys/dev/pci/puc.c
171
device_xname(self));
sys/dev/pci/puc.c
213
aprint_debug_dev(self, "couldn't map BAR at offset 0x%lx\n",
sys/dev/pci/puc.c
243
aprint_error_dev(self,
sys/dev/pci/puc.c
252
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pci/puc.c
253
aprint_error_dev(self,
sys/dev/pci/puc.c
277
aprint_error_dev(self,
sys/dev/pci/puc.c
305
aprint_error_dev(self,
sys/dev/pci/puc.c
313
device_xname(self), paa.port, puc_port_type_name(paa.type),
sys/dev/pci/puc.c
320
sc->sc_ports[i].dev = config_found(self, &paa, puc_print,
sys/dev/pci/pwdog.c
100
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/pwdog.c
103
sc->sc_smw.smw_name = device_xname(self);
sys/dev/pci/pwdog.c
110
aprint_error_dev(self, "couldn't register with sysmon\n");
sys/dev/pci/pwdog.c
116
pwdog_detach(device_t self, int flags)
sys/dev/pci/pwdog.c
118
struct pwdog_softc *sc = device_private(self);
sys/dev/pci/pwdog.c
130
pmf_device_deregister(self);
sys/dev/pci/pwdog.c
138
pwdog_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/pwdog.c
140
struct pwdog_softc *sc = device_private(self);
sys/dev/pci/pwdog.c
155
pwdog_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/pwdog.c
157
struct pwdog_softc *sc = device_private(self);
sys/dev/pci/pwdog.c
80
pwdog_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/pwdog.c
82
struct pwdog_softc *sc = device_private(self);
sys/dev/pci/pwdog.c
91
aprint_error_dev(self, "PCI %s region not found\n",
sys/dev/pci/pwdog.c
97
sc->sc_dev = self;
sys/dev/pci/pwdog.c
99
if (!pmf_device_register(self, pwdog_suspend, pwdog_resume))
sys/dev/pci/qat/qat.c
394
qat_attach(struct device *parent, struct device *self, void *aux)
sys/dev/pci/qat/qat.c
396
struct qat_softc *sc = device_private(self);
sys/dev/pci/qat/qat.c
405
sc->sc_dev = self;
sys/dev/pci/qat/qat.c
525
config_mountroot(self, qat_init);
sys/dev/pci/qat/qat.c
533
qat_init(struct device *self)
sys/dev/pci/qat/qat.c
536
struct qat_softc *sc = device_private(self);
sys/dev/pci/qat/qat.c
607
error = qat_start(self);
sys/dev/pci/qat/qat.c
616
qat_start(struct device *self)
sys/dev/pci/qat/qat.c
618
struct qat_softc *sc = device_private(self);
sys/dev/pci/qat/qat.c
638
qat_detach(struct device *self, int flags)
sys/dev/pci/r128fb.c
190
r128fb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/r128fb.c
192
struct r128fb_softc *sc = device_private(self);
sys/dev/pci/r128fb.c
208
sc->sc_dev = self;
sys/dev/pci/r128fb.c
213
dict = device_properties(self);
sys/dev/pci/r128fb.c
215
aprint_error("%s: no width property\n", device_xname(self));
sys/dev/pci/r128fb.c
219
aprint_error("%s: no height property\n", device_xname(self));
sys/dev/pci/r128fb.c
229
aprint_error("%s: no depth property\n", device_xname(self));
sys/dev/pci/r128fb.c
234
device_xname(self));
sys/dev/pci/r128fb.c
252
aprint_normal("%s: %d MB aperture at 0x%08x\n", device_xname(self),
sys/dev/pci/r128fb.c
349
" control\n", device_xname(self));
sys/dev/pci/rccide.c
101
rccide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/rccide.c
104
struct pciide_softc *sc = device_private(self);
sys/dev/pci/rccide.c
106
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/rdcide.c
77
rdcide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/rdcide.c
80
struct pciide_softc *sc = device_private(self);
sys/dev/pci/rdcide.c
82
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/rdcide.c
87
if (!pmf_device_register(self, rdcide_suspend, rdcide_resume))
sys/dev/pci/rdcide.c
88
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/rtsx_pci.c
109
sc->sc.sc_dev = self;
sys/dev/pci/rtsx_pci.c
144
aprint_error_dev(self, "no asic\n");
sys/dev/pci/rtsx_pci.c
150
aprint_error_dev(self, "couldn't map registers\n");
sys/dev/pci/rtsx_pci.c
155
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/rtsx_pci.c
160
rtsx_intr, &sc->sc, device_xname(self));
sys/dev/pci/rtsx_pci.c
162
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/pci/rtsx_pci.c
165
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/rtsx_pci.c
176
aprint_error_dev(self, "couldn't initialize chip\n");
sys/dev/pci/rtsx_pci.c
180
if (!pmf_device_register1(self, rtsx_suspend, rtsx_resume,
sys/dev/pci/rtsx_pci.c
182
aprint_error_dev(self, "couldn't establish powerhook\n");
sys/dev/pci/rtsx_pci.c
186
rtsx_pci_detach(device_t self, int flags)
sys/dev/pci/rtsx_pci.c
188
struct rtsx_pci_softc *sc = device_private(self);
sys/dev/pci/rtsx_pci.c
94
rtsx_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/rtsx_pci.c
96
struct rtsx_pci_softc *sc = device_private(self);
sys/dev/pci/satalink.c
317
satalink_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/satalink.c
320
struct pciide_softc *sc = device_private(self);
sys/dev/pci/satalink.c
322
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/schide.c
105
schide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/schide.c
108
struct pciide_softc *sc = device_private(self);
sys/dev/pci/schide.c
110
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/sdhc_pci.c
334
sdhc_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/sdhc_pci.c
336
struct sdhc_pci_softc *sc = device_private(self);
sys/dev/pci/sdhc_pci.c
354
sc->sc.sc_dev = self;
sys/dev/pci/sdhc_pci.c
398
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/sdhc_pci.c
404
&sc->sc, device_xname(self));
sys/dev/pci/sdhc_pci.c
406
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/pci/sdhc_pci.c
409
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/sdhc_pci.c
439
aprint_error_dev(self,
sys/dev/pci/sdhc_pci.c
444
aprint_error_dev(self, "couldn't map register\n");
sys/dev/pci/sdhc_pci.c
448
if (!pmf_device_register1(self, sdhc_suspend, sdhc_resume,
sys/dev/pci/sdhc_pci.c
450
aprint_error_dev(self, "couldn't establish powerhook\n");
sys/dev/pci/sdhc_pci.c
463
sdhc_pci_detach(device_t self, int flags)
sys/dev/pci/sdhc_pci.c
465
struct sdhc_pci_softc * const sc = device_private(self);
sys/dev/pci/siisata_pci.c
152
siisata_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/siisata_pci.c
155
struct siisata_pci_softc *psc = device_private(self);
sys/dev/pci/siisata_pci.c
170
sc->sc_atac.atac_dev = self;
sys/dev/pci/siisata_pci.c
193
aprint_error_dev(self, "couldn't map global registers\n");
sys/dev/pci/siisata_pci.c
214
aprint_error_dev(self, "couldn't map port registers\n");
sys/dev/pci/siisata_pci.c
238
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/siisata_pci.c
244
IPL_BIO, siisata_intr, sc, device_xname(self));
sys/dev/pci/siisata_pci.c
251
aprint_error_dev(self, "couldn't establish interrupt at %s\n",
sys/dev/pci/siisata_pci.c
255
aprint_normal_dev(self, "interrupting at %s\n",
sys/dev/pci/siisata_pci.c
269
aprint_verbose_dev(self, "SiI%d, %sGb/s\n",
sys/dev/pci/siisata_pci.c
296
aprint_verbose_dev(self, "%hd-bit %hdMHz PCI%s\n",
sys/dev/pci/siisata_pci.c
302
if (!pmf_device_register(self, NULL, siisata_pci_resume))
sys/dev/pci/siisata_pci.c
303
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/siop_pci.c
66
siop_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/siop_pci.c
69
struct siop_pci_softc *sc = device_private(self);
sys/dev/pci/siop_pci.c
71
sc->siop.sc_c.sc_dev = self;
sys/dev/pci/sisfb.c
227
sisfb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/sisfb.c
229
struct sisfb_softc *sc = device_private(self);
sys/dev/pci/sisfb.c
237
sc->sc_dev = self;
sys/dev/pci/sisfb.c
261
aprint_error_dev(self, ": can't map frame buffer\n");
sys/dev/pci/sisfb.c
268
aprint_error_dev(self, ": can't map mmio area\n");
sys/dev/pci/sisfb.c
274
aprint_error_dev(self, ": can't map registers\n");
sys/dev/pci/sisfb.c
280
aprint_error_dev(self, ": can't setup frame buffer\n");
sys/dev/pci/sisfb.c
285
aprint_normal_dev(self, ": %dx%dx%d frame buffer\n",
sys/dev/pci/sisfb.c
289
aprint_debug_dev(self, ": fb 0x%" PRIxBUSSIZE "@0x%" PRIxBUSADDR
sys/dev/pci/siside.c
103
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/siside.c
95
siside_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/siside.c
98
struct pciide_softc *sc = device_private(self);
sys/dev/pci/slide.c
100
struct pciide_softc *sc = device_private(self);
sys/dev/pci/slide.c
103
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/slide.c
97
slide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/sti_pci.c
102
spc->sc_dev = self;
sys/dev/pci/sti_pci.c
106
spc->sc_base.sc_dev = self;
sys/dev/pci/sti_pci.c
115
aprint_normal("%s", device_xname(self));
sys/dev/pci/sti_pci.c
123
config_interrupts(self, sti_pci_end_attach);
sys/dev/pci/sti_pci.c
96
sti_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/sti_pci.c
98
struct sti_pci_softc *spc = device_private(self);
sys/dev/pci/stpcide.c
75
stpcide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/stpcide.c
78
struct pciide_softc *sc = device_private(self);
sys/dev/pci/stpcide.c
80
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/sv.c
277
sv_defer(device_t self)
sys/dev/pci/sv.c
284
sc = device_private(self);
sys/dev/pci/sv.c
322
sv_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/sv.c
335
sc = device_private(self);
sys/dev/pci/sv.c
346
aprint_error_dev(self, "can't map enhanced i/o space\n");
sys/dev/pci/sv.c
352
aprint_error_dev(self, "can't map FM i/o space\n");
sys/dev/pci/sv.c
358
aprint_error_dev(self, "can't map MIDI i/o space\n");
sys/dev/pci/sv.c
410
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/sv.c
419
device_xname(self));
sys/dev/pci/sv.c
421
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/sv.c
429
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/sv.c
430
aprint_normal_dev(self, "rev %d",
sys/dev/pci/sv.c
447
audio_attach_mi(&sv_hw_if, sc, self);
sys/dev/pci/sv.c
452
(void)config_found(self, &arg, audioprint, CFARGS(.iattr = "sv"));
sys/dev/pci/sv.c
455
config_defer(self, sv_defer);
sys/dev/pci/svwsata.c
94
svwsata_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/svwsata.c
97
struct pciide_softc *sc = device_private(self);
sys/dev/pci/svwsata.c
99
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/tdvfb.c
152
tdvfb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/tdvfb.c
154
struct tdvfb_softc *sc = device_private(self);
sys/dev/pci/tdvfb.c
170
sc->sc_dev = self;
sys/dev/pci/tga.c
388
tgaattach(device_t parent, device_t self, void *aux)
sys/dev/pci/tga.c
391
struct tga_softc *sc = device_private(self);
sys/dev/pci/tga.c
400
sc->sc_dev = self;
sys/dev/pci/tga.c
429
tga_intr, sc->sc_dc, device_xname(self));
sys/dev/pci/tga.c
498
aprint_normal_dev(self, "%d x %d, %dbpp, %s RAMDAC\n",
sys/dev/pci/tga.c
504
aprint_normal_dev(self, "interrupting at %s\n",
sys/dev/pci/tga.c
512
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/pci/tga.c
514
config_interrupts(self, tga_config_interrupts);
sys/dev/pci/tga.c
518
tga_config_interrupts(device_t self)
sys/dev/pci/tga.c
522
sc = device_private(self);
sys/dev/pci/toshide.c
100
struct pciide_softc *sc = device_private(self);
sys/dev/pci/toshide.c
103
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/toshide.c
97
piccolo_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/trm.c
406
trm_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/trm.c
408
struct trm_softc *sc = device_private(self);
sys/dev/pci/trm.c
418
sc->sc_dev = self;
sys/dev/pci/trm.c
440
aprint_verbose_dev(self, "couldn't map MMIO registers, trying PIO\n");
sys/dev/pci/trm.c
475
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/trm.c
481
device_xname(self)) == NULL) {
sys/dev/pci/trm.c
482
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/trm.c
489
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/trm.c
491
sc->sc_adapter.adapt_dev = self;
sys/dev/pci/trm.c
505
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/dev/pci/twa.c
1438
twa_setup(device_t self)
sys/dev/pci/twa.c
1445
sc = device_private(self);
sys/dev/pci/twa.c
1492
error = twa_request_bus_scan(self, NULL, NULL);
sys/dev/pci/twa.c
1505
twa_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/twa.c
1519
sc = device_private(self);
sys/dev/pci/twa.c
1521
sc->twa_dv = self;
sys/dev/pci/twa.c
1580
aprint_verbose_dev(self, "64-bit DMA addressing active\n");
sys/dev/pci/twa.c
1601
device_xname(self));
sys/dev/pci/twa.c
1612
twa_setup(self);
sys/dev/pci/twa.c
974
twa_request_bus_scan(device_t self, const char *attr, const int *flags)
sys/dev/pci/twa.c
976
struct twa_softc *sc = device_private(self);
sys/dev/pci/twe.c
309
twe_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/twe.c
325
sc = device_private(self);
sys/dev/pci/twe.c
326
sc->sc_dev = self;
sys/dev/pci/twe.c
339
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/pci/twe.c
350
aprint_error_dev(self, "can't map interrupt\n");
sys/dev/pci/twe.c
356
device_xname(self));
sys/dev/pci/twe.c
358
aprint_error_dev(self, "can't establish interrupt%s%s\n",
sys/dev/pci/twe.c
365
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/twe.c
374
aprint_error_dev(self,
sys/dev/pci/twe.c
382
aprint_error_dev(self,
sys/dev/pci/twe.c
389
aprint_error_dev(self,
sys/dev/pci/twe.c
396
aprint_error_dev(self,
sys/dev/pci/twe.c
420
aprint_error_dev(self,
sys/dev/pci/twe.c
433
aprint_error_dev(self, "microcontroller not ready\n");
sys/dev/pci/twe.c
444
aprint_error_dev(self, "reset failed\n");
sys/dev/pci/twe.c
454
twe_rescan(self, NULL, NULL);
sys/dev/pci/twe.c
463
0, CTLTYPE_NODE, device_xname(self),
sys/dev/pci/twe.c
467
aprint_error_dev(self, "could not create %s.%s sysctl node\n",
sys/dev/pci/twe.c
468
"hw", device_xname(self));
sys/dev/pci/twe.c
477
aprint_error_dev(self,
sys/dev/pci/twe.c
479
"hw", device_xname(self));
sys/dev/pci/twe.c
485
twe_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/pci/twe.c
490
sc = device_private(self);
sys/dev/pci/ubsec.c
340
ubsec_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/ubsec.c
342
struct ubsec_softc *sc = device_private(self);
sys/dev/pci/ubsec.c
353
sc->sc_dev = self;
sys/dev/pci/ubsec.c
383
aprint_error_dev(self, "can't find mem space");
sys/dev/pci/ubsec.c
390
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/ubsec.c
395
device_xname(self));
sys/dev/pci/ubsec.c
397
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/ubsec.c
403
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/ubsec.c
407
aprint_error_dev(self, "couldn't get crypto driver id\n");
sys/dev/pci/ubsec.c
423
aprint_error_dev(self, "can't allocate dma buffers\n");
sys/dev/pci/ubsec.c
499
aprint_normal_dev(self,
sys/dev/pci/ubsec.c
502
aprint_error_dev(self,
sys/dev/pci/ubsec.c
520
ubsec_detach(device_t self, int flags)
sys/dev/pci/ubsec.c
522
struct ubsec_softc *sc = device_private(self);
sys/dev/pci/uhci_pci.c
100
sc->sc.sc_dev = self;
sys/dev/pci/uhci_pci.c
108
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/pci/uhci_pci.c
132
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/uhci_pci.c
137
device_xname(self));
sys/dev/pci/uhci_pci.c
139
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/uhci_pci.c
145
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/uhci_pci.c
176
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/dev/pci/uhci_pci.c
182
usb_pci_add(&sc->sc_pci, pa, self);
sys/dev/pci/uhci_pci.c
185
if (!pmf_device_register(self, uhci_suspend, uhci_pci_resume))
sys/dev/pci/uhci_pci.c
186
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/uhci_pci.c
191
sc->sc.sc_child = config_found(self, &sc->sc.sc_bus, usbctlprint,
sys/dev/pci/uhci_pci.c
196
uhci_pci_detach(device_t self, int flags)
sys/dev/pci/uhci_pci.c
198
struct uhci_pci_softc *sc = device_private(self);
sys/dev/pci/uhci_pci.c
208
pmf_device_deregister(self);
sys/dev/pci/uhci_pci.c
88
uhci_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/uhci_pci.c
90
struct uhci_pci_softc *sc = device_private(self);
sys/dev/pci/unichromefb.c
253
unichromefb_attach(device_t parent, device_t self, void *opaque)
sys/dev/pci/unichromefb.c
255
struct unichromefb_softc *sc = device_private(self);
sys/dev/pci/unichromefb.c
264
sc->sc_dev = self;
sys/dev/pci/unichromefb.c
315
aprint_normal_dev(self, "MMIO @0x%08x/0x%x\n",
sys/dev/pci/unichromefb.c
334
aprint_normal_dev(self, "FB @0x%08x (%dx%dx%d)\n",
sys/dev/pci/unichromefb.c
353
config_found(self, &aa, wsemuldisplaydevprint,
sys/dev/pci/unichromefb.c
356
config_found(self, opaque, unichromefb_drm_print,
sys/dev/pci/veritefb.c
3223
veritefb_load_firmware(device_t self)
sys/dev/pci/veritefb.c
3225
struct veritefb_softc *sc = device_private(self);
sys/dev/pci/veritefb.c
499
veritefb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/veritefb.c
501
struct veritefb_softc *sc = device_private(self);
sys/dev/pci/veritefb.c
513
prop_dictionary_get_bool(device_properties(self), "is_console",
sys/dev/pci/veritefb.c
517
sc->sc_dev = self;
sys/dev/pci/veritefb.c
723
config_mountroot(self, veritefb_load_firmware);
sys/dev/pci/vga_pci.c
183
vga_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/vga_pci.c
185
struct vga_pci_softc *psc = device_private(self);
sys/dev/pci/vga_pci.c
190
sc->sc_dev = self;
sys/dev/pci/vga_pci.c
217
aprint_error_dev(self,
sys/dev/pci/vga_pci.c
228
aprint_error_dev(self,
sys/dev/pci/vga_pci.c
251
aprint_error_dev(self,
sys/dev/pci/vga_pci.c
260
if (!pmf_device_register(self, NULL, vga_pci_resume))
sys/dev/pci/vga_pci.c
261
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/vga_pci.c
262
config_found(self, aux, vga_drm_print,
sys/dev/pci/vga_pci.c
267
vga_pci_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/pci/vga_pci.c
269
struct vga_pci_softc *psc = device_private(self);
sys/dev/pci/vga_pci.c
271
config_found(self, &psc->sc_paa, vga_drm_print,
sys/dev/pci/viaenv.c
277
viaenv_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/viaenv.c
279
struct viaenv_softc *sc = device_private(self);
sys/dev/pci/viaenv.c
301
DPRINTF(("%s: iobase 0x%x\n", device_xname(self), iobase));
sys/dev/pci/viaenv.c
306
aprint_normal_dev(self, "Hardware Monitor disabled\n");
sys/dev/pci/viaenv.c
313
aprint_error_dev(self, "failed to map I/O space\n");
sys/dev/pci/viaenv.c
365
sc->sc_sme->sme_name = device_xname(self);
sys/dev/pci/viaenv.c
370
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/pci/viaenv.c
379
aprint_normal_dev(self,
sys/dev/pci/viaenv.c
388
aprint_error_dev(self, "failed to map PM I/O space\n");
sys/dev/pci/viaenv.c
393
acpipmtimer_attach(self, sc->sc_iot, sc->sc_pm_ioh,
sys/dev/pci/viaide.c
431
viaide_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/viaide.c
434
struct pciide_softc *sc = device_private(self);
sys/dev/pci/viaide.c
437
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pci/viaide.c
444
if (!pmf_device_register(self, viaide_suspend, viaide_resume))
sys/dev/pci/viaide.c
445
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/vio9p.c
487
vio9p_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/vio9p.c
489
struct vio9p_softc *sc = device_private(self);
sys/dev/pci/vio9p.c
501
sc->sc_dev = self;
sys/dev/pci/vio9p.c
504
virtio_child_attach_start(vsc, self, IPL_VM,
sys/dev/pci/vio9p.c
555
aprint_normal_dev(self, "tagged as %s\n", sc->sc_tag);
sys/dev/pci/vio9p.c
562
device_xname(self), SYSCTL_DESCR("VirtIO 9p device"),
sys/dev/pci/viogpu.c
204
viogpu_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/viogpu.c
206
struct viogpu_softc *sc = device_private(self);
sys/dev/pci/viogpu.c
216
sc->sc_dev = self;
sys/dev/pci/viogpu.c
227
virtio_child_attach_start(vsc, self, IPL_VM,
sys/dev/pci/viogpu.c
256
config_interrupts(self, viogpu_attach_postintr);
sys/dev/pci/viogpu.c
272
viogpu_attach_postintr(device_t self)
sys/dev/pci/viogpu.c
274
struct viogpu_softc *sc = device_private(self);
sys/dev/pci/viogpu.c
363
sc->is_console = device_getprop_bool(self, "is_console");
sys/dev/pci/viogpu.c
404
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/pci/viomb.c
123
viomb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/viomb.c
125
struct viomb_softc *sc = device_private(self);
sys/dev/pci/viomb.c
148
sc->sc_dev = self;
sys/dev/pci/viomb.c
151
virtio_child_attach_start(vsc, self, IPL_VM,
sys/dev/pci/viornd.c
128
viornd_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/viornd.c
130
struct viornd_softc *sc = device_private(self);
sys/dev/pci/viornd.c
139
sc->sc_dev = self;
sys/dev/pci/viornd.c
179
virtio_child_attach_start(vsc, self, IPL_NET,
sys/dev/pci/vioscsi.c
114
vioscsi_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/vioscsi.c
116
struct vioscsi_softc *sc = device_private(self);
sys/dev/pci/vioscsi.c
129
sc->sc_dev = self;
sys/dev/pci/vioscsi.c
131
virtio_child_attach_start(vsc, self, ipl,
sys/dev/pci/vioscsi.c
204
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
sys/dev/pci/vioscsi.c
219
vioscsi_detach(device_t self, int flags)
sys/dev/pci/vioscsi.c
221
struct vioscsi_softc *sc = device_private(self);
sys/dev/pci/vioscsi.c
233
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/pci/virtio.c
1528
device_t self = sc->sc_dev;
sys/dev/pci/virtio.c
1537
aprint_error_dev(self,
sys/dev/pci/virtio.c
1541
aprint_error_dev(self,
sys/dev/pci/virtio.c
1546
aprint_error_dev(self,
sys/dev/pci/virtio.c
1557
aprint_error_dev(self, "virtio internal error, child driver "
sys/dev/pci/virtio.c
1566
virtio_print_device_type(device_t self, int id, int revision)
sys/dev/pci/virtio.c
1568
aprint_normal_dev(self, "%s device (id %d, rev. 0x%02x)\n",
sys/dev/pci/virtio_pci.c
1016
aprint_error_dev(self,
sys/dev/pci/virtio_pci.c
1033
aprint_error_dev(self,
sys/dev/pci/virtio_pci.c
1042
aprint_normal_dev(self, "config interrupting at %s\n", intrstr);
sys/dev/pci/virtio_pci.c
1062
aprint_normal_dev(self,
sys/dev/pci/virtio_pci.c
1067
aprint_normal_dev(self,
sys/dev/pci/virtio_pci.c
1077
aprint_normal_dev(self, "queues interrupting at %s\n",
sys/dev/pci/virtio_pci.c
1113
device_t self = sc->sc_dev;
sys/dev/pci/virtio_pci.c
1124
aprint_error_dev(self, "couldn't establish INTx\n");
sys/dev/pci/virtio_pci.c
1130
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/virtio_pci.c
1140
device_t self = sc->sc_dev;
sys/dev/pci/virtio_pci.c
1151
aprint_debug_dev(self, "pci_msix_count=%d\n", nmsix);
sys/dev/pci/virtio_pci.c
1176
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/virtio_pci.c
238
virtio_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/virtio_pci.c
240
struct virtio_pci_softc * const psc = device_private(self);
sys/dev/pci/virtio_pci.c
268
virtio_print_device_type(self, id, revision);
sys/dev/pci/virtio_pci.c
274
sc->sc_dev = self;
sys/dev/pci/virtio_pci.c
286
ret = virtio_pci_attach_10(self, aux);
sys/dev/pci/virtio_pci.c
300
ret = virtio_pci_attach_10(self, aux);
sys/dev/pci/virtio_pci.c
302
aprint_error_dev(self,
sys/dev/pci/virtio_pci.c
306
ret = virtio_pci_attach_09(self, aux);
sys/dev/pci/virtio_pci.c
309
ret = virtio_pci_attach_09(self, aux);
sys/dev/pci/virtio_pci.c
313
aprint_error_dev(self, "cannot attach (%d)\n", ret);
sys/dev/pci/virtio_pci.c
330
virtio_pci_rescan(self, NULL, NULL);
sys/dev/pci/virtio_pci.c
336
virtio_pci_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/pci/virtio_pci.c
338
struct virtio_pci_softc * const psc = device_private(self);
sys/dev/pci/virtio_pci.c
348
config_found(self, &va, NULL, CFARGS_NONE);
sys/dev/pci/virtio_pci.c
357
virtio_pci_detach(device_t self, int flags)
sys/dev/pci/virtio_pci.c
359
struct virtio_pci_softc * const psc = device_private(self);
sys/dev/pci/virtio_pci.c
364
r = config_detach_children(self, flags);
sys/dev/pci/virtio_pci.c
393
virtio_pci_attach_09(device_t self, void *aux)
sys/dev/pci/virtio_pci.c
395
struct virtio_pci_softc * const psc = device_private(self);
sys/dev/pci/virtio_pci.c
404
aprint_error_dev(self, "can't map BAR0 (%s)\n",
sys/dev/pci/virtio_pci.c
412
aprint_error_dev(self, "can't map notify i/o space\n");
sys/dev/pci/virtio_pci.c
421
aprint_error_dev(self, "can't map isr i/o space\n");
sys/dev/pci/virtio_pci.c
435
virtio_pci_attach_10(device_t self, void *aux)
sys/dev/pci/virtio_pci.c
437
struct virtio_pci_softc * const psc = device_private(self);
sys/dev/pci/virtio_pci.c
489
aprint_error_dev(self, "can't map bar %u \n", i);
sys/dev/pci/virtio_pci.c
493
aprint_debug_dev(self,
sys/dev/pci/virtio_pci.c
503
aprint_error_dev(self, "can't map notify i/o space\n");
sys/dev/pci/virtio_pci.c
516
aprint_error_dev(self, "can't map devcfg i/o space\n");
sys/dev/pci/virtio_pci.c
520
aprint_debug_dev(self,
sys/dev/pci/virtio_pci.c
530
aprint_error_dev(self, "can't map isr i/o space\n");
sys/dev/pci/virtio_pci.c
540
aprint_error_dev(self, "can't map common i/o space\n");
sys/dev/pci/virtio_pci.c
572
device_t self = psc->sc_sc.sc_dev;
sys/dev/pci/virtio_pci.c
603
aprint_error_dev(self, "%s cap too large\n", __func__);
sys/dev/pci/virtio_pci.c
635
device_t self = sc->sc_dev;
sys/dev/pci/virtio_pci.c
645
aprint_error_dev(self, "can't map config i/o space\n");
sys/dev/pci/virtio_pci.c
827
device_t self = sc->sc_dev;
sys/dev/pci/virtio_pci.c
860
aprint_error_dev(self, "feature negotiation failed\n");
sys/dev/pci/virtio_pci.c
867
aprint_error_dev(self, "host rejected version 1\n");
sys/dev/pci/virtio_pci.c
975
device_t self = sc->sc_dev;
sys/dev/pci/virtio_pci.c
993
aprint_error_dev(self,
sys/dev/pci/voodoofb.c
352
voodoofb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/voodoofb.c
354
struct voodoofb_softc *sc = device_private(self);
sys/dev/pci/voodoofb.c
368
sc->sc_dev = self;
sys/dev/pci/voodoofb.c
388
aprint_error_dev(self, "failed to map the frame buffer.\n");
sys/dev/pci/voodoofb.c
395
aprint_error_dev(self,
sys/dev/pci/voodoofb.c
403
aprint_error_dev(self, "failed to map IO-mapped registers.\n");
sys/dev/pci/voodoofb.c
411
dict = device_properties(self);
sys/dev/pci/voodoofb.c
413
aprint_error_dev(self, "no width property\n");
sys/dev/pci/voodoofb.c
417
aprint_error_dev(self, "no height property\n");
sys/dev/pci/voodoofb.c
421
aprint_error_dev(self, "no depth property\n");
sys/dev/pci/voodoofb.c
433
printf("%s: initial resolution %dx%d, %d bit\n", device_xname(self),
sys/dev/pci/voodoofb.c
474
device_xname(self), (u_int)(sc->sc_fbsize >> 20),
sys/dev/pci/voodoofb.c
520
aprint_error_dev(self, "failed to map interrupt\n");
sys/dev/pci/voodoofb.c
526
voodoofb_intr, sc, device_xname(self));
sys/dev/pci/voodoofb.c
528
aprint_error_dev(self, "failed to establish interrupt");
sys/dev/pci/voodoofb.c
534
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/voodoofb.c
548
config_found(self, &aa, wsemuldisplaydevprint,
sys/dev/pci/voodoofb.c
550
config_found(self, aux, voodoofb_drm_print,
sys/dev/pci/voyager.c
146
voyager_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/voyager.c
148
struct voyager_softc *sc = device_private(self);
sys/dev/pci/voyager.c
161
sc->sc_dev = self;
sys/dev/pci/voyager.c
198
aprint_normal_dev(self,
sys/dev/pci/voyager.c
206
device_xname(self));
sys/dev/pci/voyager.c
208
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/voyager.c
214
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/voyager.c
263
iicbus_attach(self, &sc->sc_i2c);
sys/dev/pci/voyager/pwmclock.c
121
pwmclock_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/voyager/pwmclock.c
123
struct pwmclock_softc *sc = device_private(self);
sys/dev/pci/voyager/pwmclock.c
129
sc->sc_dev = self;
sys/dev/pci/voyager/vac.c
673
vac_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/voyager/vac.c
675
struct vac_softc * const sc = device_private(self);
sys/dev/pci/voyager/vac.c
679
sc->sc_dev = self;
sys/dev/pci/voyager/vac.c
697
aprint_debug_dev(self,
sys/dev/pci/voyager/vac.c
725
error = ac97_attach(&sc->sc_ac97_host, self, &sc->sc_lock);
sys/dev/pci/voyager/vac.c
727
aprint_error_dev(self, "couldn't attach codec (%d)\n", error);
sys/dev/pci/voyager/vac.c
736
sc->sc_audiodev = audio_attach_mi(&vac_hw_if, sc, self);
sys/dev/pci/voyager/voyagerfb.c
599
voyagerfb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/voyager/voyagerfb.c
601
struct voyagerfb_softc *sc = device_private(self);
sys/dev/pci/voyager/voyagerfb.c
615
sc->sc_dev = self;
sys/dev/pci/voyager/voyagerfb.c
619
dict = device_properties(self);
sys/dev/pci/voyager/voyagerfb.c
674
aprint_normal_dev(self,
sys/dev/pci/voyager/voyagerfb.c
690
aprint_normal_dev(self,
sys/dev/pci/voyager/voyagerfb.c
707
aprint_normal_dev(self, "%d MB video memory at 0x%08x\n",
sys/dev/pci/voyager/voyagerfb.c
713
aprint_normal_dev(self, "%d x %d, %d bit, stride %d\n",
sys/dev/pci/wcfb.c
157
wcfb_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/wcfb.c
159
struct wcfb_softc *sc = device_private(self);
sys/dev/pci/wcfb.c
169
sc->sc_dev = self;
sys/dev/pci/wcfb.c
173
is_console = device_getprop_bool(self, "is_console");
sys/dev/pci/wcfb.c
229
aprint_normal_dev(self, "%d x %d, %d\n",
sys/dev/pci/weasel_pci.c
100
struct weasel_softc *sc = device_private(self);
sys/dev/pci/weasel_pci.c
108
sc->sc_dev = self;
sys/dev/pci/weasel_pci.c
115
aprint_error_dev(self, "unable to map device registers\n");
sys/dev/pci/weasel_pci.c
121
aprint_error_dev(self, "Weasel didn't respond to PING\n");
sys/dev/pci/weasel_pci.c
127
aprint_error_dev(self,
sys/dev/pci/weasel_pci.c
134
aprint_error_dev(self,
sys/dev/pci/weasel_pci.c
142
aprint_error_dev(self,
sys/dev/pci/weasel_pci.c
149
aprint_error_dev(self,
sys/dev/pci/weasel_pci.c
181
printf("%s: %s mode\n", device_xname(self), mode);
sys/dev/pci/weasel_pci.c
184
device_xname(self), cfg.cfg_version);
sys/dev/pci/weasel_pci.c
190
aprint_error_dev(self,
sys/dev/pci/weasel_pci.c
198
device_xname(self), v);
sys/dev/pci/weasel_pci.c
203
device_xname(self));
sys/dev/pci/weasel_pci.c
210
printf("%s: sw: %s", device_xname(self), buf);
sys/dev/pci/weasel_pci.c
217
aprint_error_dev(self,
sys/dev/pci/weasel_pci.c
228
aprint_error_dev(self,
sys/dev/pci/weasel_pci.c
239
aprint_error_dev(self,
sys/dev/pci/weasel_pci.c
246
printf("\n%s: break passthrough %s", device_xname(self),
sys/dev/pci/weasel_pci.c
263
aprint_error_dev(self, "unable to register PC-Weasel watchdog "
sys/dev/pci/weasel_pci.c
98
weasel_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/wsdisplay_pci.c
41
wsdisplayio_busid_pci(device_t self, pci_chipset_tag_t pc,
sys/dev/pci/wsdisplay_pci.c
46
KASSERT(device_is_a(device_parent(self), "pci"));
sys/dev/pci/wsdisplay_pci.c
48
busid->ubus.pci.domain = device_unit(device_parent(self));
sys/dev/pci/xhci_pci.c
119
xhci_pci_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/xhci_pci.c
121
struct xhci_pci_softc * const psc = device_private(self);
sys/dev/pci/xhci_pci.c
135
sc->sc_dev = self;
sys/dev/pci/xhci_pci.c
159
aprint_error_dev(self, "BAR not 64 or 32-bit MMIO\n");
sys/dev/pci/xhci_pci.c
167
aprint_error_dev(self, "can't get map info\n");
sys/dev/pci/xhci_pci.c
188
aprint_error_dev(self, "can't map mem space\n");
sys/dev/pci/xhci_pci.c
198
aprint_verbose_dev(self, "64-bit DMA");
sys/dev/pci/xhci_pci.c
207
aprint_verbose_dev(self, "32-bit DMA\n");
sys/dev/pci/xhci_pci.c
227
aprint_error_dev(self, "can't allocate handler\n");
sys/dev/pci/xhci_pci.c
238
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/xhci_pci.c
244
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/xhci_pci.c
256
aprint_error_dev(self, "Unknown revision (%02x). Set to 3.0.\n",
sys/dev/pci/xhci_pci.c
261
aprint_normal_dev(self,
sys/dev/pci/xhci_pci.c
279
aprint_error_dev(self, "init failed, error=%d\n", err);
sys/dev/pci/xhci_pci.c
286
if (!pmf_device_register1(self, xhci_suspend, xhci_resume,
sys/dev/pci/xhci_pci.c
288
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/xhci_pci.c
293
config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/dev/pci/xhci_pci.c
297
config_found(self, &sc->sc_bus2, usbctlprint, CFARGS_NONE);
sys/dev/pci/xhci_pci.c
318
xhci_pci_detach(device_t self, int flags)
sys/dev/pci/xhci_pci.c
320
struct xhci_pci_softc * const psc = device_private(self);
sys/dev/pci/xhci_pci.c
329
pmf_device_deregister(self);
sys/dev/pci/xhci_pci.c
331
xhci_shutdown(self, flags);
sys/dev/pci/xmm7360.c
2133
wwanc_attach_finish(struct device *self)
sys/dev/pci/xmm7360.c
2135
struct wwanc_softc *sc = device_private(self);
sys/dev/pci/xmm7360.c
2146
sc->sc_net = config_found(self, &wa, wwancprint, CFARGS_NONE);
sys/dev/pci/xmm7360.c
2150
wwanc_attach(struct device *parent, struct device *self, void *aux)
sys/dev/pci/xmm7360.c
2152
struct wwanc_softc *sc = device_private(self);
sys/dev/pci/xmm7360.c
2167
sc->sc_dev = self;
sys/dev/pci/xmm7360.c
2198
sc->sc_xmm.dev = self;
sys/dev/pci/xmm7360.c
2227
device_printf(self, "can't establish interrupt\n");
sys/dev/pci/xmm7360.c
2232
if (!pmf_device_register(self, wwanc_pmf_suspend, wwanc_pmf_resume))
sys/dev/pci/xmm7360.c
2233
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/xmm7360.c
2240
config_mountroot(self, wwanc_attach_finish);
sys/dev/pci/xmm7360.c
2252
wwanc_detach(struct device *self, int flags)
sys/dev/pci/xmm7360.c
2255
struct wwanc_softc *sc = device_private(self);
sys/dev/pci/xmm7360.c
2263
error = config_detach_children(self, flags);
sys/dev/pci/xmm7360.c
2269
pmf_device_deregister(self);
sys/dev/pci/xmm7360.c
2291
wwanc_suspend(struct device *self)
sys/dev/pci/xmm7360.c
2293
struct wwanc_softc *sc = device_private(self);
sys/dev/pci/xmm7360.c
2311
wwanc_resume(struct device *self)
sys/dev/pci/xmm7360.c
2313
struct wwanc_softc *sc = device_private(self);
sys/dev/pci/xmm7360.c
2333
struct device *self = xarg;
sys/dev/pci/xmm7360.c
2334
struct wwanc_softc *sc = device_private(self);
sys/dev/pci/xmm7360.c
2338
wwanc_resume(self);
sys/dev/pci/xmm7360.c
2340
(void)config_activate_children(self, DVACT_RESUME);
sys/dev/pci/xmm7360.c
2347
wwanc_activate(struct device *self, int act)
sys/dev/pci/xmm7360.c
2349
struct wwanc_softc *sc = device_private(self);
sys/dev/pci/xmm7360.c
2353
(void)config_activate_children(self, act);
sys/dev/pci/xmm7360.c
2358
device_printf(self,
sys/dev/pci/xmm7360.c
2363
(void)config_activate_children(self, act);
sys/dev/pci/xmm7360.c
2364
wwanc_suspend(self);
sys/dev/pci/xmm7360.c
2372
kthread_create(wwanc_defer_resume, self, NULL, "wwancres");
sys/dev/pci/xmm7360.c
2386
wwanc_pmf_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/xmm7360.c
2388
wwanc_suspend(self);
sys/dev/pci/xmm7360.c
2393
wwanc_pmf_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pci/xmm7360.c
2395
wwanc_resume(self);
sys/dev/pci/xmm7360.c
2862
dma_alloc_coherent(struct device *self, size_t sz, dma_addr_t *physp, int flags)
sys/dev/pci/xmm7360.c
2864
struct wwanc_softc *sc = device_private(self);
sys/dev/pci/xmm7360.c
2874
device_xname(self), (unsigned long)sz, error);
sys/dev/pci/xmm7360.c
2885
device_xname(self), (unsigned long)sz, error);
sys/dev/pci/xmm7360.c
2895
dma_free_coherent(struct device *self, size_t sz, volatile void *vaddr, dma_addr_t phys)
sys/dev/pci/xmm7360.c
2897
struct wwanc_softc *sc = device_private(self);
sys/dev/pci/xmm7360.c
3222
wwan_attach(struct device *parent, struct device *self, void *aux)
sys/dev/pci/xmm7360.c
3224
struct wwan_softc *sc_if = device_private(self);
sys/dev/pci/xmm7360.c
3229
sc_if->sc_dev = self;
sys/dev/pci/xmm7360.c
3275
if (pmf_device_register(self, wwan_pmf_suspend, NULL))
sys/dev/pci/xmm7360.c
3276
pmf_class_network_register(self, ifp);
sys/dev/pci/xmm7360.c
3278
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pci/xmm7360.c
3283
wwan_detach(struct device *self, int flags)
sys/dev/pci/xmm7360.c
3285
struct wwan_softc *sc_if = device_private(self);
sys/dev/pci/xmm7360.c
3291
pmf_device_deregister(self);
sys/dev/pci/xmm7360.c
3304
wwan_suspend(struct device *self)
sys/dev/pci/xmm7360.c
3306
struct wwan_softc *sc_if = device_private(self);
sys/dev/pci/xmm7360.c
3321
wwan_activate(struct device *self, int act)
sys/dev/pci/xmm7360.c
3326
wwan_suspend(self);
sys/dev/pci/xmm7360.c
3348
wwan_pmf_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pci/xmm7360.c
3350
wwan_suspend(self);
sys/dev/pci/yds.c
553
yds_configure_legacy(device_t self)
sys/dev/pci/yds.c
564
sc = device_private(self);
sys/dev/pci/yds.c
595
dev = config_found(self, &aa, audioprint,
sys/dev/pci/yds.c
632
dev = config_found(self, &aa, audioprint,
sys/dev/pci/yds.c
737
yds_attach(device_t parent, device_t self, void *aux)
sys/dev/pci/yds.c
751
sc = device_private(self);
sys/dev/pci/yds.c
752
sc->sc_dev = self;
sys/dev/pci/yds.c
762
aprint_error_dev(self, "can't map memory space\n");
sys/dev/pci/yds.c
768
aprint_error_dev(self, "couldn't map interrupt\n");
sys/dev/pci/yds.c
777
device_xname(self));
sys/dev/pci/yds.c
779
aprint_error_dev(self, "couldn't establish interrupt");
sys/dev/pci/yds.c
787
aprint_normal_dev(self, "interrupting at %s\n", intrstr);
sys/dev/pci/yds.c
801
printf("%s: chip has %s\n", device_xname(self), bits);
sys/dev/pci/yds.c
823
aprint_error_dev(self, "initialize failed\n");
sys/dev/pci/yds.c
844
aprint_error_dev(self, "no AC97 available\n");
sys/dev/pci/yds.c
921
r = ac97_attach(&codec->host_if, self, &sc->sc_lock);
sys/dev/pci/yds.c
923
aprint_error_dev(self,
sys/dev/pci/yds.c
931
audio_attach_mi(&yds_hw_if, sc, self);
sys/dev/pci/yds.c
934
config_defer(self, yds_configure_legacy);
sys/dev/pci/yds.c
936
if (!pmf_device_register(self, yds_suspend, yds_resume))
sys/dev/pci/yds.c
937
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pckbport/pckbd.c
398
pckbdattach(device_t parent, device_t self, void *aux)
sys/dev/pckbport/pckbd.c
400
struct pckbd_softc *sc = device_private(self);
sys/dev/pckbport/pckbd.c
409
sc->sc_dev = self;
sys/dev/pckbport/pckbd.c
446
if (!pmf_device_register(self, pckbd_suspend, pckbd_resume))
sys/dev/pckbport/pckbd.c
447
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pckbport/pckbd.c
453
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/dev/pckbport/pckbport.c
357
pckbport_cleanup(void *self)
sys/dev/pckbport/pckbport.c
359
struct pckbport_tag *t = self;
sys/dev/pckbport/pms.c
173
pmsattach(device_t parent, device_t self, void *aux)
sys/dev/pckbport/pms.c
175
struct pms_softc *sc = device_private(self);
sys/dev/pckbport/pms.c
181
sc->sc_dev = self;
sys/dev/pckbport/pms.c
231
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/dev/pckbport/pms.c
243
if (!pmf_device_register(self, pms_suspend, pms_resume))
sys/dev/pckbport/pms.c
244
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pcmcia/aic_pcmcia.c
110
aic_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/aic_pcmcia.c
112
struct aic_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/aic_pcmcia.c
119
sc->sc_dev = self;
sys/dev/pcmcia/aic_pcmcia.c
124
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/aic_pcmcia.c
132
error = aic_pcmcia_enable(self, 1);
sys/dev/pcmcia/aic_pcmcia.c
137
aprint_error_dev(self, "unable to detect chip!\n");
sys/dev/pcmcia/aic_pcmcia.c
151
aic_pcmcia_enable(self, 0);
sys/dev/pcmcia/aic_pcmcia.c
157
aic_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/aic_pcmcia.c
159
struct aic_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/aic_pcmcia.c
165
error = aic_detach(self, flags);
sys/dev/pcmcia/aic_pcmcia.c
175
aic_pcmcia_enable(device_t self, int onoff)
sys/dev/pcmcia/aic_pcmcia.c
177
struct aic_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/bt3c.c
1016
bt3c_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pcmcia/bt3c.c
1018
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
1029
bt3c_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pcmcia/bt3c.c
1031
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
1035
sc->sc_unit = hci_attach_pcb(&bt3c_hci, self, BTF_POWER_UP_NOOP);
sys/dev/pcmcia/bt3c.c
763
bt3c_output_cmd(device_t self, struct mbuf *m)
sys/dev/pcmcia/bt3c.c
765
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
781
bt3c_output_acl(device_t self, struct mbuf *m)
sys/dev/pcmcia/bt3c.c
783
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
799
bt3c_output_sco(device_t self, struct mbuf *m)
sys/dev/pcmcia/bt3c.c
801
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
821
bt3c_enable(device_t self)
sys/dev/pcmcia/bt3c.c
823
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
869
bt3c_disable(device_t self)
sys/dev/pcmcia/bt3c.c
871
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
901
bt3c_stats(device_t self, struct bt_stats *dest, int flush)
sys/dev/pcmcia/bt3c.c
903
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
933
bt3c_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/bt3c.c
935
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
939
sc->sc_dev = self;
sys/dev/pcmcia/bt3c.c
960
aprint_error_dev(self, "cannot allocate io space\n");
sys/dev/pcmcia/bt3c.c
970
aprint_error_dev(self, "cannot map io space\n");
sys/dev/pcmcia/bt3c.c
975
sc->sc_unit = hci_attach_pcb(&bt3c_hci, self, BTF_POWER_UP_NOOP);
sys/dev/pcmcia/bt3c.c
977
aprint_error_dev(self, "HCI attach failed\n");
sys/dev/pcmcia/bt3c.c
979
if (!pmf_device_register(self, bt3c_suspend, bt3c_resume))
sys/dev/pcmcia/bt3c.c
980
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pcmcia/bt3c.c
993
bt3c_detach(device_t self, int flags)
sys/dev/pcmcia/bt3c.c
995
struct bt3c_softc *sc = device_private(self);
sys/dev/pcmcia/bt3c.c
998
pmf_device_deregister(self);
sys/dev/pcmcia/bt3c.c
999
bt3c_disable(self);
sys/dev/pcmcia/btbc.c
166
btbc_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/btbc.c
168
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/btbc.c
173
sc->sc_dev = self;
sys/dev/pcmcia/btbc.c
182
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/btbc.c
190
sc->sc_unit = hci_attach_pcb(&btbc_hci, self, 0);
sys/dev/pcmcia/btbc.c
192
aprint_error_dev(self, "HCI attach failed\n");
sys/dev/pcmcia/btbc.c
194
if (!pmf_device_register(self, btbc_suspend, btbc_resume))
sys/dev/pcmcia/btbc.c
195
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pcmcia/btbc.c
205
btbc_detach(device_t self, int flags)
sys/dev/pcmcia/btbc.c
207
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/btbc.c
210
pmf_device_deregister(self);
sys/dev/pcmcia/btbc.c
227
btbc_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/pcmcia/btbc.c
229
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/btbc.c
241
btbc_resume(device_t self, const pmf_qual_t *qual)
sys/dev/pcmcia/btbc.c
243
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/btbc.c
786
btbc_enable(device_t self)
sys/dev/pcmcia/btbc.c
788
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/btbc.c
896
btbc_disable(device_t self)
sys/dev/pcmcia/btbc.c
898
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/btbc.c
942
btbc_output_cmd(device_t self, struct mbuf *m)
sys/dev/pcmcia/btbc.c
944
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/btbc.c
960
btbc_output_acl(device_t self, struct mbuf *m)
sys/dev/pcmcia/btbc.c
962
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/btbc.c
978
btbc_output_sco(device_t self, struct mbuf *m)
sys/dev/pcmcia/btbc.c
980
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/btbc.c
994
btbc_stats(device_t self, struct bt_stats *dest, int flush)
sys/dev/pcmcia/btbc.c
996
struct btbc_softc *sc = device_private(self);
sys/dev/pcmcia/com_pcmcia.c
173
com_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/com_pcmcia.c
175
struct com_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/com_pcmcia.c
181
sc->sc_dev = self;
sys/dev/pcmcia/com_pcmcia.c
186
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/com_pcmcia.c
205
aprint_normal("%s", device_xname(self));
sys/dev/pcmcia/com_pcmcia.c
209
if (!pmf_device_register1(self, com_suspend, com_resume,
sys/dev/pcmcia/com_pcmcia.c
211
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pcmcia/com_pcmcia.c
224
com_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/com_pcmcia.c
226
struct com_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/com_pcmcia.c
232
if ((error = com_detach(self, flags)) != 0)
sys/dev/pcmcia/com_pcmcia.c
235
pmf_device_deregister(self);
sys/dev/pcmcia/esp_pcmcia.c
150
esp_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/esp_pcmcia.c
152
struct esp_pcmcia_softc *esc = device_private(self);
sys/dev/pcmcia/esp_pcmcia.c
159
sc->sc_dev = self;
sys/dev/pcmcia/esp_pcmcia.c
165
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/esp_pcmcia.c
174
aprint_normal("%s", device_xname(self));
sys/dev/pcmcia/esp_pcmcia.c
215
esp_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/esp_pcmcia.c
217
struct esp_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/esp_pcmcia.c
233
esp_pcmcia_enable(device_t self, int onoff)
sys/dev/pcmcia/esp_pcmcia.c
235
struct esp_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/fdc_pcmcia.c
140
fdc_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/fdc_pcmcia.c
142
struct fdc_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/fdc_pcmcia.c
150
fdc->sc_dev = self;
sys/dev/pcmcia/fdc_pcmcia.c
155
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/fdc_pcmcia.c
171
aprint_error_dev(self, "couldn't find fdc\n");
sys/dev/pcmcia/fdc_pcmcia.c
186
(void)config_found(self, (void *)&fa, fdprint, CFARGS_NONE);
sys/dev/pcmcia/if_an_pcmcia.c
120
an_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_an_pcmcia.c
122
struct an_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_an_pcmcia.c
128
sc->sc_dev = self;
sys/dev/pcmcia/if_an_pcmcia.c
133
aprint_error_dev(self, "configure failed, error=%d\n",
sys/dev/pcmcia/if_an_pcmcia.c
152
aprint_error_dev(self, "failed to attach controller\n");
sys/dev/pcmcia/if_an_pcmcia.c
156
if (pmf_device_register(self, NULL, NULL))
sys/dev/pcmcia/if_an_pcmcia.c
157
pmf_class_network_register(self, &sc->sc_if);
sys/dev/pcmcia/if_an_pcmcia.c
159
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pcmcia/if_an_pcmcia.c
175
an_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/if_an_pcmcia.c
177
struct an_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_an_pcmcia.c
183
pmf_device_deregister(self);
sys/dev/pcmcia/if_awi_pcmcia.c
180
awi_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_awi_pcmcia.c
182
struct awi_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_awi_pcmcia.c
188
sc->sc_dev = self;
sys/dev/pcmcia/if_awi_pcmcia.c
193
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/if_awi_pcmcia.c
223
aprint_error_dev(self, "failed to attach controller\n");
sys/dev/pcmcia/if_awi_pcmcia.c
240
awi_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/if_awi_pcmcia.c
242
struct awi_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_cnw.c
1160
cnw_activate(device_t self, enum devact act)
sys/dev/pcmcia/if_cnw.c
1162
struct cnw_softc *sc = device_private(self);
sys/dev/pcmcia/if_cnw.c
1174
cnw_detach(device_t self, int flags)
sys/dev/pcmcia/if_cnw.c
1176
struct cnw_softc *sc = device_private(self);
sys/dev/pcmcia/if_cnw.c
476
cnw_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_cnw.c
478
struct cnw_softc *sc = device_private(self);
sys/dev/pcmcia/if_cnw.c
485
sc->sc_dev = self;
sys/dev/pcmcia/if_cnw.c
492
aprint_error_dev(self, "function enable failed\n");
sys/dev/pcmcia/if_cnw.c
501
aprint_error_dev(self, "can't allocate i/o space\n");
sys/dev/pcmcia/if_cnw.c
506
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/pcmcia/if_cnw.c
520
aprint_error_dev(self, "can't allocate memory\n");
sys/dev/pcmcia/if_cnw.c
526
aprint_error_dev(self, "can't map memory\n");
sys/dev/pcmcia/if_cs_pcmcia.c
106
sc->sc_dev = self;
sys/dev/pcmcia/if_cs_pcmcia.c
111
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/if_cs_pcmcia.c
150
cs_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/if_cs_pcmcia.c
152
struct cs_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_cs_pcmcia.c
97
cs_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_cs_pcmcia.c
99
struct cs_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_ep_pcmcia.c
214
ep_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_ep_pcmcia.c
216
struct ep_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_ep_pcmcia.c
226
sc->sc_dev = self;
sys/dev/pcmcia/if_ep_pcmcia.c
271
aprint_error_dev(self, "failed to allocate I/O space\n");
sys/dev/pcmcia/if_ep_pcmcia.c
284
aprint_error_dev(self, "can't map i/o space\n");
sys/dev/pcmcia/if_ep_pcmcia.c
323
aprint_error_dev(self, "couldn't configure controller\n");
sys/dev/pcmcia/if_ep_pcmcia.c
338
ep_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/if_ep_pcmcia.c
340
struct ep_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_ep_pcmcia.c
347
rv = ep_detach(self, flags);
sys/dev/pcmcia/if_malo_pcmcia.c
165
malo_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_malo_pcmcia.c
167
struct malo_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_malo_pcmcia.c
173
sc->sc_dev = self;
sys/dev/pcmcia/if_malo_pcmcia.c
178
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/if_malo_pcmcia.c
184
aprint_error_dev(self, "couldn't establish softint\n");
sys/dev/pcmcia/if_malo_pcmcia.c
198
if (pmf_device_register(self, NULL, NULL))
sys/dev/pcmcia/if_malo_pcmcia.c
199
pmf_class_network_register(self, &sc->sc_if);
sys/dev/pcmcia/if_malo_pcmcia.c
201
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pcmcia/if_mbe_pcmcia.c
160
mbe_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_mbe_pcmcia.c
162
struct mbe_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_mbe_pcmcia.c
170
sc->sc_dev = self;
sys/dev/pcmcia/if_mbe_pcmcia.c
175
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/if_mbe_pcmcia.c
192
aprint_error_dev(self, "couldn't get ethernet address "
sys/dev/pcmcia/if_mbe_pcmcia.c
200
aprint_error_dev(self,
sys/dev/pcmcia/if_mbe_pcmcia.c
206
aprint_error_dev(self,
sys/dev/pcmcia/if_mbe_pcmcia.c
236
mbe_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/if_mbe_pcmcia.c
238
struct mbe_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_ne_pcmcia.c
576
ne_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_ne_pcmcia.c
578
struct ne_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_ne_pcmcia.c
590
dsc->sc_dev = self;
sys/dev/pcmcia/if_ne_pcmcia.c
595
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/if_ne_pcmcia.c
607
aprint_error_dev(self,
sys/dev/pcmcia/if_ne_pcmcia.c
642
aprint_error_dev(self, "can't match ethernet vendor code\n");
sys/dev/pcmcia/if_ne_pcmcia.c
644
aprint_error_dev(self,
sys/dev/pcmcia/if_ne_pcmcia.c
732
if (!pmf_device_register(self, ne2000_suspend, ne2000_resume)) {
sys/dev/pcmcia/if_ne_pcmcia.c
733
aprint_error_dev(self, "cannot set power mgmt handler\n");
sys/dev/pcmcia/if_ne_pcmcia.c
736
if (pmf_device_register(self, ne2000_suspend, ne2000_resume)) {
sys/dev/pcmcia/if_ne_pcmcia.c
738
pmf_class_network_register(self, &dsc->sc_ec.ec_if);
sys/dev/pcmcia/if_ne_pcmcia.c
741
aprint_error_dev(self, "unable to establish power handler\n");
sys/dev/pcmcia/if_ne_pcmcia.c
754
ne_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/if_ne_pcmcia.c
756
struct ne_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_ne_pcmcia.c
763
pmf_device_deregister(self);
sys/dev/pcmcia/if_ray.c
492
ray_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_ray.c
494
struct ray_softc *sc = device_private(self);
sys/dev/pcmcia/if_ray.c
501
sc->sc_dev = self;
sys/dev/pcmcia/if_ray.c
507
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/if_ray.c
530
aprint_error_dev(self, "card failed self test: status %d\n",
sys/dev/pcmcia/if_ray.c
537
aprint_error_dev(self, "unsupported firmware version %d\n",
sys/dev/pcmcia/if_ray.c
560
aprint_normal_dev(self, "firmware version %d\n",
sys/dev/pcmcia/if_ray.c
563
aprint_normal_dev(self,
sys/dev/pcmcia/if_ray.c
568
aprint_normal_dev(self, "802.11 address %s\n",
sys/dev/pcmcia/if_ray.c
571
memcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/pcmcia/if_ray.c
594
if (pmf_device_register(self, NULL, NULL))
sys/dev/pcmcia/if_ray.c
595
pmf_class_network_register(self, ifp);
sys/dev/pcmcia/if_ray.c
597
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pcmcia/if_ray.c
611
ray_activate(device_t self, enum devact act)
sys/dev/pcmcia/if_ray.c
613
struct ray_softc *sc = device_private(self);
sys/dev/pcmcia/if_ray.c
616
RAY_DPRINTF(("%s: activate\n", device_xname(self)));
sys/dev/pcmcia/if_ray.c
628
ray_detach(device_t self, int flags)
sys/dev/pcmcia/if_ray.c
633
sc = device_private(self);
sys/dev/pcmcia/if_ray.c
640
pmf_device_deregister(self);
sys/dev/pcmcia/if_sm_pcmcia.c
135
sm_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_sm_pcmcia.c
137
struct sm_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_sm_pcmcia.c
144
sc->sc_dev = self;
sys/dev/pcmcia/if_sm_pcmcia.c
149
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/if_sm_pcmcia.c
173
aprint_error_dev(self,
sys/dev/pcmcia/if_sm_pcmcia.c
189
sm_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/if_sm_pcmcia.c
191
struct sm_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_wi_pcmcia.c
269
wi_pcmcia_enable(device_t self, int onoff)
sys/dev/pcmcia/if_wi_pcmcia.c
271
struct wi_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_wi_pcmcia.c
296
wi_pcmcia_enable(self, 0);
sys/dev/pcmcia/if_wi_pcmcia.c
329
wi_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/if_wi_pcmcia.c
331
struct wi_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_wi_pcmcia.c
340
sc->sc_dev = self;
sys/dev/pcmcia/if_wi_pcmcia.c
345
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/if_wi_pcmcia.c
366
error = wi_pcmcia_enable(self, 1);
sys/dev/pcmcia/if_wi_pcmcia.c
373
printf("%s:", device_xname(self));
sys/dev/pcmcia/if_wi_pcmcia.c
377
aprint_error_dev(self, "failed to attach controller\n");
sys/dev/pcmcia/if_wi_pcmcia.c
381
if (pmf_device_register(self, NULL, NULL))
sys/dev/pcmcia/if_wi_pcmcia.c
382
pmf_class_network_register(self, &sc->sc_if);
sys/dev/pcmcia/if_wi_pcmcia.c
384
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pcmcia/if_wi_pcmcia.c
386
wi_pcmcia_enable(self, 0);
sys/dev/pcmcia/if_wi_pcmcia.c
391
wi_pcmcia_enable(self, 0);
sys/dev/pcmcia/if_wi_pcmcia.c
397
wi_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/if_wi_pcmcia.c
399
struct wi_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/if_xi.c
249
xi_detach(device_t self, int flags)
sys/dev/pcmcia/if_xi.c
251
struct xi_softc *sc = device_private(self);
sys/dev/pcmcia/if_xi.c
552
xi_mdi_read(device_t self, int phy, int reg, uint16_t *val)
sys/dev/pcmcia/if_xi.c
554
struct xi_softc *sc = device_private(self);
sys/dev/pcmcia/if_xi.c
583
xi_mdi_write(device_t self, int phy, int reg, uint16_t val)
sys/dev/pcmcia/if_xi.c
585
struct xi_softc *sc = device_private(self);
sys/dev/pcmcia/mhzc.c
173
mhzc_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/mhzc.c
175
struct mhzc_softc *sc = device_private(self);
sys/dev/pcmcia/mhzc.c
180
sc->sc_dev = self;
sys/dev/pcmcia/mhzc.c
216
aprint_error_dev(self, "unable to find suitable config table entry\n");
sys/dev/pcmcia/mhzc.c
221
aprint_error_dev(self, "unable to allocate space for Ethernet portion\n");
sys/dev/pcmcia/mhzc.c
247
sc->sc_modem = config_found(self, __UNCONST("com"), mhzc_print,
sys/dev/pcmcia/mhzc.c
250
sc->sc_ethernet = config_found(self, __UNCONST("sm"), mhzc_print,
sys/dev/pcmcia/mhzc.c
323
mhzc_childdet(device_t self, device_t child)
sys/dev/pcmcia/mhzc.c
325
struct mhzc_softc *sc = device_private(self);
sys/dev/pcmcia/mhzc.c
334
mhzc_detach(device_t self, int flags)
sys/dev/pcmcia/mhzc.c
336
struct mhzc_softc *sc = device_private(self);
sys/dev/pcmcia/mhzc.c
339
error = config_detach_children(self, flags);
sys/dev/pcmcia/mhzc.c
610
com_mhzc_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/mhzc.c
612
struct com_softc *sc = device_private(self);
sys/dev/pcmcia/mhzc.c
615
sc->sc_dev = self;
sys/dev/pcmcia/mhzc.c
630
aprint_normal("%s", device_xname(self));
sys/dev/pcmcia/mhzc.c
682
sm_mhzc_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/mhzc.c
684
struct smc91cxx_softc *sc = device_private(self);
sys/dev/pcmcia/mhzc.c
690
sc->sc_dev = self;
sys/dev/pcmcia/nca_pcmcia.c
111
nca_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/nca_pcmcia.c
113
struct nca_pcmcia_softc *esc = device_private(self);
sys/dev/pcmcia/nca_pcmcia.c
121
sc->sc_dev = self;
sys/dev/pcmcia/nca_pcmcia.c
126
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/nca_pcmcia.c
176
error = nca_pcmcia_enable(self, 1);
sys/dev/pcmcia/nca_pcmcia.c
193
nca_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/nca_pcmcia.c
195
struct nca_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/nca_pcmcia.c
211
nca_pcmcia_enable(device_t self, int onoff)
sys/dev/pcmcia/nca_pcmcia.c
213
struct nca_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/pcmcia.c
125
pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/pcmcia.c
128
struct pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/pcmcia.c
133
sc->dev = self;
sys/dev/pcmcia/pcmcia.c
139
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pcmcia/pcmcia.c
140
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/pcmcia/pcmcia.c
144
pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/pcmcia.c
148
if ((rc = config_detach_children(self, flags)) != 0)
sys/dev/pcmcia/pcmcia.c
151
pmf_device_deregister(self);
sys/dev/pcmcia/pcmcia.c
217
pcmcia_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/pcmcia/pcmcia.c
219
struct pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/pcmcia.c
248
pf->child = config_found(self, &paa, pcmcia_print,
sys/dev/pcmcia/pcmcia.c
293
pcmcia_childdetached(device_t self, device_t child)
sys/dev/pcmcia/pcmcia.c
295
struct pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/pcmcia.c
309
aprint_error_dev(self, "pcmcia_childdetached: %s not found\n",
sys/dev/pcmcia/pcmcom.c
137
pcmcom_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/pcmcom.c
139
struct pcmcom_softc *sc = device_private(self);
sys/dev/pcmcia/pcmcom.c
146
sc->sc_dev = self;
sys/dev/pcmcia/pcmcom.c
152
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/pcmcom.c
167
printf("%s: slave %d\n", device_xname(self), slave);
sys/dev/pcmcia/pcmcom.c
190
pcmcom_childdet(device_t self, device_t child)
sys/dev/pcmcia/pcmcom.c
192
struct pcmcom_softc *sc = device_private(self);
sys/dev/pcmcia/pcmcom.c
202
pcmcom_detach(device_t self, int flags)
sys/dev/pcmcia/pcmcom.c
204
struct pcmcom_softc *sc = device_private(self);
sys/dev/pcmcia/pcmcom.c
207
error = config_detach_children(self, flags);
sys/dev/pcmcia/pcmcom.c
309
com_pcmcom_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/pcmcom.c
311
struct com_softc *sc = device_private(self);
sys/dev/pcmcia/pcmcom.c
314
sc->sc_dev = self;
sys/dev/pcmcia/slhci_pcmcia.c
103
slhci_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/slhci_pcmcia.c
105
struct slhci_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/slhci_pcmcia.c
85
slhci_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/slhci_pcmcia.c
87
struct slhci_pcmcia_softc *psc = device_private(self);
sys/dev/pcmcia/slhci_pcmcia.c
91
psc->sc_slhci.sc_dev = self;
sys/dev/pcmcia/spc_pcmcia.c
103
spc_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/spc_pcmcia.c
105
struct spc_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/spc_pcmcia.c
112
spc->sc_dev = self;
sys/dev/pcmcia/spc_pcmcia.c
117
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/spc_pcmcia.c
125
error = spc_pcmcia_enable(self, 1);
sys/dev/pcmcia/spc_pcmcia.c
146
spc_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/spc_pcmcia.c
148
struct spc_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/spc_pcmcia.c
154
error = spc_detach(self, flags);
sys/dev/pcmcia/spc_pcmcia.c
164
spc_pcmcia_enable(device_t self, int onoff)
sys/dev/pcmcia/spc_pcmcia.c
166
struct spc_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/wdc_pcmcia.c
205
wdc_pcmcia_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/wdc_pcmcia.c
207
struct wdc_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/wdc_pcmcia.c
218
sc->sc_wdcdev.sc_atac.atac_dev = self;
sys/dev/pcmcia/wdc_pcmcia.c
228
aprint_error_dev(self, "configure failed, error=%d\n", error);
sys/dev/pcmcia/wdc_pcmcia.c
269
aprint_error_dev(self, "can't subregion I/O space\n");
sys/dev/pcmcia/wdc_pcmcia.c
275
aprint_normal_dev(self, "memory mapped mode\n");
sys/dev/pcmcia/wdc_pcmcia.c
285
aprint_normal_dev(self, "i/o mapped mode\n");
sys/dev/pcmcia/wdc_pcmcia.c
302
error = wdc_pcmcia_enable(self, 1);
sys/dev/pcmcia/wdc_pcmcia.c
316
config_pending_incr(self);
sys/dev/pcmcia/wdc_pcmcia.c
321
if (!pmf_device_register(self, NULL, NULL))
sys/dev/pcmcia/wdc_pcmcia.c
322
aprint_error_dev(self, "unable to establish power handler\n");
sys/dev/pcmcia/wdc_pcmcia.c
324
config_pending_decr(self);
sys/dev/pcmcia/wdc_pcmcia.c
334
wdc_pcmcia_detach(device_t self, int flags)
sys/dev/pcmcia/wdc_pcmcia.c
336
struct wdc_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/wdc_pcmcia.c
342
pmf_device_deregister(self);
sys/dev/pcmcia/wdc_pcmcia.c
344
if ((error = wdcdetach(self, flags)) != 0)
sys/dev/pcmcia/wdc_pcmcia.c
353
wdc_pcmcia_enable(device_t self, int onoff)
sys/dev/pcmcia/wdc_pcmcia.c
355
struct wdc_pcmcia_softc *sc = device_private(self);
sys/dev/pcmcia/xirc.c
165
xirc_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/xirc.c
167
struct xirc_softc *sc = device_private(self);
sys/dev/pcmcia/xirc.c
173
sc->sc_dev = self;
sys/dev/pcmcia/xirc.c
181
aprint_error_dev(self, "failed to find ID\n");
sys/dev/pcmcia/xirc.c
207
aprint_error_dev(self, "unknown ID %04x\n",
sys/dev/pcmcia/xirc.c
212
aprint_normal_dev(self, "id=%04x\n", sc->sc_id);
sys/dev/pcmcia/xirc.c
229
aprint_error_dev(self, "failed to allocate I/O space\n");
sys/dev/pcmcia/xirc.c
239
aprint_error_dev(self, "unable to map I/O space\n");
sys/dev/pcmcia/xirc.c
248
aprint_error_dev(self, "unable to map I/O space\n");
sys/dev/pcmcia/xirc.c
263
sc->sc_modem = config_found(self, __UNCONST("com"), xirc_print,
sys/dev/pcmcia/xirc.c
267
sc->sc_ethernet = config_found(self, __UNCONST("xi"),
sys/dev/pcmcia/xirc.c
384
xirc_childdet(device_t self, device_t child)
sys/dev/pcmcia/xirc.c
386
struct xirc_softc *sc = device_private(self);
sys/dev/pcmcia/xirc.c
396
xirc_detach(device_t self, int flags)
sys/dev/pcmcia/xirc.c
398
struct xirc_softc *sc = device_private(self);
sys/dev/pcmcia/xirc.c
401
error = config_detach_children(self, flags);
sys/dev/pcmcia/xirc.c
541
com_xirc_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/xirc.c
543
struct com_softc *sc = device_private(self);
sys/dev/pcmcia/xirc.c
546
sc->sc_dev = self;
sys/dev/pcmcia/xirc.c
562
aprint_normal("%s", device_xname(self));
sys/dev/pcmcia/xirc.c
616
xi_xirc_attach(device_t parent, device_t self, void *aux)
sys/dev/pcmcia/xirc.c
618
struct xi_softc *sc = device_private(self);
sys/dev/pcmcia/xirc.c
622
sc->sc_dev = self;
sys/dev/pcmcia/xirc.c
636
aprint_error_dev(self, "can't find MAC address\n");
sys/dev/podulebus/acemidi.c
112
device_xname(self), "intr");
sys/dev/podulebus/acemidi.c
75
acemidi_attach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/acemidi.c
81
config_found(self, aux, NULL, CFARGS_NONE);
sys/dev/podulebus/acemidi.c
92
com_acemidi_attach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/acemidi.c
94
struct com_acemidi_softc *sc = device_private(self);
sys/dev/podulebus/dtide.c
79
dtide_attach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/dtide.c
82
struct dtide_softc *sc = device_private(self);
sys/dev/podulebus/dtide.c
88
sc->sc_wdc.sc_atac.atac_dev = self;
sys/dev/podulebus/esp_podule.c
121
esp_podule_attach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/esp_podule.c
123
struct esp_podule_softc *esc = device_private(self);
sys/dev/podulebus/esp_podule.c
138
sc->sc_dev = self;
sys/dev/podulebus/esp_podule.c
160
device_xname(self), "intr");
sys/dev/podulebus/hcide.c
79
hcide_attach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/hcide.c
81
struct hcide_softc *sc = device_private(self);
sys/dev/podulebus/hcide.c
87
sc->sc_wdc.sc_atac.atac_dev = self;
sys/dev/podulebus/hcsc.c
142
hcsc_attach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/hcsc.c
144
struct hcsc_softc *sc = device_private(self);
sys/dev/podulebus/hcsc.c
150
char hi_option[sizeof(device_xname(self)) + 8];
sys/dev/podulebus/hcsc.c
152
ncr_sc->sc_dev = self;
sys/dev/podulebus/hcsc.c
203
device_xname(self));
sys/dev/podulebus/hcsc.c
211
device_xname(self), "intr");
sys/dev/podulebus/if_ea.c
104
eaattach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/if_ea.c
106
struct ea_softc *sc = device_private(self);
sys/dev/podulebus/if_ea.c
112
sc->sc_8005.sc_dev = self;
sys/dev/podulebus/if_ea.c
147
device_xname(self), "intr");
sys/dev/podulebus/if_eb.c
104
ebattach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/if_eb.c
106
struct eb_softc *sc = device_private(self);
sys/dev/podulebus/if_eb.c
110
sc->sc_8005.sc_dev = self;
sys/dev/podulebus/if_eb.c
130
device_xname(self), "intr");
sys/dev/podulebus/if_ei.c
114
ei_attach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/if_ei.c
117
struct ei_softc *sc = device_private(self);
sys/dev/podulebus/if_ei.c
121
sc->sc_ie.sc_dev = self;
sys/dev/podulebus/if_ei.c
199
device_xname(self), "intr");
sys/dev/podulebus/if_ei.c
201
self, &sc->sc_intrcnt);
sys/dev/podulebus/oak.c
137
oak_attach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/oak.c
139
struct oak_softc *sc = device_private(self);
sys/dev/podulebus/oak.c
145
char hi_option[sizeof(device_xname(self)) + 8];
sys/dev/podulebus/oak.c
147
ncr_sc->sc_dev = self;
sys/dev/podulebus/oak.c
198
device_xname(self));
sys/dev/podulebus/sec.c
166
sec_attach(device_t parent, device_t self, void *aux)
sys/dev/podulebus/sec.c
169
struct sec_softc *sc = device_private(self);
sys/dev/podulebus/sec.c
172
sc->sc_sbic.sc_dev = self;
sys/dev/podulebus/sec.c
211
device_xname(self), "intr");
sys/dev/ppbus/if_plip.c
218
lp_attach(device_t parent, device_t self, void *aux)
sys/dev/ppbus/if_plip.c
220
struct lp_softc * lp = device_private(self);
sys/dev/ppbus/if_plip.c
223
lp->ppbus_dev.sc_dev = self;
sys/dev/ppbus/if_plip.c
230
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/ppbus/if_plip.c
253
lp_detach(device_t self, int flags)
sys/dev/ppbus/if_plip.c
256
struct lp_softc * lp = device_private(self);
sys/dev/ppbus/if_plip.c
257
device_t ppbus = device_parent(self);
sys/dev/ppbus/if_plip.c
263
device_xname(self));
sys/dev/ppbus/if_plip.c
276
device_xname(self));
sys/dev/ppbus/if_plip.c
280
error = ppbus_release_bus(ppbus, self, 0, 0);
sys/dev/ppbus/if_plip.c
284
__func__, device_xname(self),
sys/dev/ppbus/lpt.c
145
lpt_attach(device_t parent, device_t self, void *aux)
sys/dev/ppbus/lpt.c
147
struct lpt_softc * sc = device_private(self);
sys/dev/ppbus/lpt.c
153
ppbdev->sc_dev = self;
sys/dev/ppbus/lpt.c
158
"properly attached.\n", __func__, device_xname(self),
sys/dev/ppbus/lpt.c
203
lpt_detach(device_t self, int flags)
sys/dev/ppbus/lpt.c
205
struct lpt_softc * lpt = device_private(self);
sys/dev/ppbus/lpt.c
213
device_xname(self), err);
sys/dev/ppbus/lpt.c
229
ppbus_dma_free(device_parent(self), &(lpt->sc_inbuf),
sys/dev/ppbus/lpt.c
231
ppbus_dma_free(device_parent(self), &(lpt->sc_outbuf),
sys/dev/ppbus/ppbus_conf.c
108
ppbus_attach(device_t parent, device_t self, void *aux)
sys/dev/ppbus/ppbus_conf.c
110
struct ppbus_softc *ppbus = device_private(self);
sys/dev/ppbus/ppbus_conf.c
117
ppbus->sc_dev = self;
sys/dev/ppbus/ppbus_conf.c
142
ppbus->sc_mode = ppbus->ppbus_getmode(device_parent(self));
sys/dev/ppbus/ppbus_conf.c
152
if (ppbus_scan_bus(self)) {
sys/dev/ppbus/ppbus_conf.c
153
printf("%s: No IEEE1284 device found.\n", device_xname(self));
sys/dev/ppbus/ppbus_conf.c
155
printf("%s: IEEE1284 device found.\n", device_xname(self));
sys/dev/ppbus/ppbus_conf.c
162
if(ppbus_write_ivar(self, PPBUS_IVAR_INTR, &val) != 0) {
sys/dev/ppbus/ppbus_conf.c
167
ppbus_pnp_detect(self);
sys/dev/ppbus/ppbus_conf.c
173
config_search(self, &args,
sys/dev/ppbus/ppbus_conf.c
184
ppbus_childdet(device_t self, device_t target)
sys/dev/ppbus/ppbus_conf.c
186
struct ppbus_softc * ppbus = device_private(self);
sys/dev/ppbus/ppbus_conf.c
200
ppbus_detach(device_t self, int flag)
sys/dev/ppbus/ppbus_conf.c
202
struct ppbus_softc * ppbus = device_private(self);
sys/dev/ppbus/pps_ppbus.c
94
pps_attach(device_t parent, device_t self, void *aux)
sys/dev/ppbus/pps_ppbus.c
96
struct pps_softc *sc = device_private(self);
sys/dev/ppbus/pps_ppbus.c
99
sc->pps_dev.sc_dev = self;
sys/dev/qbus/dhu.c
250
dhu_attach(device_t parent, device_t self, void *aux)
sys/dev/qbus/dhu.c
252
struct dhu_softc *sc = device_private(self);
sys/dev/qbus/dhu.c
257
sc->sc_dev = self;
sys/dev/qbus/dhu.c
270
aprint_error_dev(self, "rom(%d) version %d\n",
sys/dev/qbus/dhu.c
273
aprint_error_dev(self, "diag-error(proc%d)=%x\n",
sys/dev/qbus/dhu.c
286
aprint_normal_dev(self, "DH%s-11\n",
sys/dev/qbus/dl.c
242
dl_attach (device_t parent, device_t self, void *aux)
sys/dev/qbus/dl.c
244
struct dl_softc *sc = device_private(self);
sys/dev/qbus/dl.c
247
sc->sc_dev = self;
sys/dev/qbus/dz_uba.c
106
dz_uba_attach(device_t parent, device_t self, void *aux)
sys/dev/qbus/dz_uba.c
108
struct dz_softc *sc = device_private(self);
sys/dev/qbus/dz_uba.c
111
sc->sc_dev = self;
sys/dev/qbus/dz_uba.c
134
uba_reset_establish(dzreset, self);
sys/dev/qbus/if_de.c
196
deattach(device_t parent, device_t self, void *aux)
sys/dev/qbus/if_de.c
199
struct de_softc *sc = device_private(self);
sys/dev/qbus/if_de.c
205
sc->sc_dev = self;
sys/dev/qbus/if_dmc.c
249
dmcattach(device_t parent, device_t self, void *aux)
sys/dev/qbus/if_dmc.c
252
struct dmc_softc *sc = device_private(self);
sys/dev/qbus/if_dmc.c
254
sc->sc_dev = self;
sys/dev/qbus/if_il.c
156
ilattach(device_t parent, device_t self, void *aux)
sys/dev/qbus/if_il.c
159
struct il_softc *sc = device_private(self);
sys/dev/qbus/if_il.c
163
sc->sc_dev = self;
sys/dev/qbus/if_qe.c
205
qeattach(device_t parent, device_t self, void *aux)
sys/dev/qbus/if_qe.c
208
struct qe_softc *sc = device_private(self);
sys/dev/qbus/if_qe.c
215
sc->sc_dev = self;
sys/dev/qbus/if_qt.c
251
qtattach(device_t parent, device_t self, void *aux)
sys/dev/qbus/if_qt.c
253
struct qt_softc *sc = device_private(self);
sys/dev/qbus/if_qt.c
257
sc->sc_dev = self;
sys/dev/qbus/qd.c
733
qd_attach(device_t parent, device_t self, void *aux)
sys/dev/qbus/qd.c
740
unit = device_unit(self); /* get QDSS number */
sys/dev/qbus/qd.c
744
uba_intr_establish(ua->ua_icookie, ua->ua_cvec , qddint, self);
sys/dev/qbus/qd.c
745
uba_intr_establish(ua->ua_icookie, ua->ua_cvec + 4, qdaint, self);
sys/dev/qbus/qd.c
746
uba_intr_establish(ua->ua_icookie, ua->ua_cvec + 8, qdiint, self);
sys/dev/qbus/rf.c
334
rfc_attach(device_t parent, device_t self, void *aux)
sys/dev/qbus/rf.c
336
struct rfc_softc *rfc_sc = device_private(self);
sys/dev/qbus/rf.c
341
rfc_sc->sc_dev = self;
sys/dev/qbus/rf.c
451
rf_attach(device_t parent, device_t self, void *aux)
sys/dev/qbus/rf.c
453
struct rf_softc *rf_sc = device_private(self);
sys/dev/qbus/rf.c
458
rf_sc->sc_dev = self;
sys/dev/qbus/rl.c
207
rlcattach(device_t parent, device_t self, void *aux)
sys/dev/qbus/rl.c
209
struct rlc_softc *sc = device_private(self);
sys/dev/qbus/rl.c
214
sc->sc_dev = self;
sys/dev/qbus/rl.c
223
uba_reset_establish(rlcreset, self);
sys/dev/qbus/rl.c
263
rlattach(device_t parent, device_t self, void *aux)
sys/dev/qbus/rl.c
265
struct rl_softc *rc = device_private(self);
sys/dev/qbus/rl.c
269
rc->rc_dev = self;
sys/dev/qbus/ts.c
249
tsattach(device_t parent, device_t self, void *aux)
sys/dev/qbus/ts.c
251
struct ts_softc *sc = device_private(self);
sys/dev/qbus/ts.c
256
sc->sc_dev = self;
sys/dev/qbus/ts.c
262
sc->sc_uu.uu_dev = self;
sys/dev/qbus/uda.c
192
udaattach(device_t parent, device_t self, void *aux)
sys/dev/qbus/uda.c
194
struct uda_softc *sc = device_private(self);
sys/dev/qbus/uda.c
201
sc->sc_dev = self;
sys/dev/qbus/uda.c
220
sc->sc_unit.uu_dev = self; /* Backpointer to softc */
sys/dev/qbus/uda.c
240
ma.ma_type = (device_is_a(self, "mtc") ? MSCPBUS_TAPE : MSCPBUS_DISK);
sys/dev/radio.c
100
sc->sc_dev = self;
sys/dev/radio.c
192
radiodetach(device_t self, int flags)
sys/dev/radio.c
200
mn = device_unit(self);
sys/dev/radio.c
89
radioattach(device_t parent, device_t self, void *aux)
sys/dev/radio.c
91
struct radio_softc *sc = device_private(self);
sys/dev/raidframe/rf_netbsdkintf.c
1000
raid_lastclose(device_t self)
sys/dev/raidframe/rf_netbsdkintf.c
1002
struct raid_softc *rs = raidsoftc(self);
sys/dev/raidframe/rf_netbsdkintf.c
3787
raid_match(device_t self, cfdata_t cfdata, void *aux)
sys/dev/raidframe/rf_netbsdkintf.c
3793
raid_attach(device_t parent, device_t self, void *aux)
sys/dev/raidframe/rf_netbsdkintf.c
3799
raid_detach(device_t self, int flags)
sys/dev/raidframe/rf_netbsdkintf.c
3802
struct raid_softc *rs = raidsoftc(self);
sys/dev/raidframe/rf_netbsdkintf.c
395
rf_autoconfig(device_t self)
sys/dev/sbus/be.c
1281
be_mii_readreg(device_t self, int phy, int reg, uint16_t *val)
sys/dev/sbus/be.c
1283
struct be_softc *sc = device_private(self);
sys/dev/sbus/be.c
1311
be_mii_writereg(device_t self, int phy, int reg, uint16_t val)
sys/dev/sbus/be.c
1313
struct be_softc *sc = device_private(self);
sys/dev/sbus/be.c
1337
device_t self = sc->sc_dev;
sys/dev/sbus/be.c
1340
be_mii_writereg(self, phy, MII_BMCR, BMCR_LOOP | BMCR_PDOWN | BMCR_ISO);
sys/dev/sbus/be.c
1341
be_mii_writereg(self, phy, MII_BMCR, BMCR_RESET);
sys/dev/sbus/be.c
1346
be_mii_readreg(self, phy, MII_BMCR, &bmcr);
sys/dev/sbus/be.c
1352
aprint_error_dev(self, "bmcr reset failed\n");
sys/dev/sbus/be.c
1438
device_t self = sc->sc_dev;
sys/dev/sbus/be.c
1459
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMCR, &bmcr);
sys/dev/sbus/be.c
1460
be_mii_writereg(self,
sys/dev/sbus/be.c
1471
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMCR, &bmcr);
sys/dev/sbus/be.c
1496
be_mii_writereg(self, BE_PHY_INTERNAL, MII_BMCR, bmcr);
sys/dev/sbus/be.c
1521
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMSR, &bmsr);
sys/dev/sbus/be.c
1522
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMSR, &bmsr);
sys/dev/sbus/be.c
1526
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMCR, &bmcr);
sys/dev/sbus/be.c
1529
be_mii_readreg(self,
sys/dev/sbus/be.c
1537
be_mii_writereg(self,
sys/dev/sbus/be.c
1541
device_xname(self),
sys/dev/sbus/be.c
1551
printf("%s: link down\n", device_xname(self));
sys/dev/sbus/be.c
1559
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMCR, &bmcr);
sys/dev/sbus/be.c
1562
be_mii_writereg(self, BE_PHY_INTERNAL, MII_BMCR, bmcr);
sys/dev/sbus/be.c
1568
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMCR, &bmcr);
sys/dev/sbus/be.c
1569
be_mii_writereg(self,
sys/dev/sbus/be.c
1592
device_t self = sc->sc_dev;
sys/dev/sbus/be.c
1602
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMCR, &bmcr);
sys/dev/sbus/be.c
1620
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMSR, &bmsr);
sys/dev/sbus/be.c
1621
be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMSR, &bmsr);
sys/dev/sbus/be.c
209
beattach(device_t parent, device_t self, void *aux)
sys/dev/sbus/be.c
213
struct be_softc *sc = device_private(self);
sys/dev/sbus/be.c
225
sc->sc_dev = self;
sys/dev/sbus/be.c
281
ether_getaddr(self, sc->sc_enaddr);
sys/dev/sbus/be.c
301
aprint_error_dev(self, "DMA map create error %d\n", error);
sys/dev/sbus/be.c
308
aprint_error_dev(self, "DMA buffer alloc error %d\n", error);
sys/dev/sbus/be.c
315
aprint_error_dev(self, "DMA buffer map error %d\n", error);
sys/dev/sbus/be.c
323
aprint_error_dev(self, "DMA buffer map load error %d\n", error);
sys/dev/sbus/be.c
351
mii_attach(self, mii, 0xffffffff, BE_PHY_EXTERNAL,
sys/dev/sbus/be.c
369
aprint_error_dev(self,
sys/dev/sbus/be.c
376
aprint_error_dev(self,
sys/dev/sbus/be.c
422
device_xname(self));
sys/dev/sbus/be.c
431
be_mii_writereg(self,
sys/dev/sbus/be.c
435
memcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/sbus/be.c
721
device_t self = sc->sc_dev;
sys/dev/sbus/be.c
732
aprint_error_dev(self, "bigmac error\n");
sys/dev/sbus/be.c
738
aprint_error_dev(self, "bogus tx descriptor\n");
sys/dev/sbus/be.c
744
aprint_error_dev(self, "tx DMA error ( ");
sys/dev/sbus/be.c
757
aprint_error_dev(self, "out of rx descriptors\n");
sys/dev/sbus/be.c
763
aprint_error_dev(self, "rx descriptor too small\n");
sys/dev/sbus/be.c
769
aprint_error_dev(self, "rx DMA error ( ");
sys/dev/sbus/be.c
781
aprint_error_dev(self, "unexpected error interrupt %08x\n",
sys/dev/sbus/be.c
786
printf("%s: resetting\n", device_xname(self));
sys/dev/sbus/be.c
799
device_t self = sc->sc_dev;
sys/dev/sbus/be.c
805
aprint_error_dev(self, "receive fifo overrun\n");
sys/dev/sbus/be.c
810
aprint_error_dev(self, "transmit fifo underrun\n");
sys/dev/sbus/be.c
815
aprint_error_dev(self, "max packet size error\n");
sys/dev/sbus/be.c
820
aprint_error_dev(self, "unexpected error interrupt %08x\n",
sys/dev/sbus/be.c
825
printf("%s: resetting\n", device_xname(self));
sys/dev/sbus/bpp.c
155
bppattach(device_t parent, device_t self, void *aux)
sys/dev/sbus/bpp.c
157
struct bpp_softc *dsc = device_private(self);
sys/dev/sbus/bpp.c
164
sc->sc_dev = self;
sys/dev/sbus/bwtwo_sbus.c
133
bwtwoattach_sbus(device_t parent, device_t self, void *args)
sys/dev/sbus/bwtwo_sbus.c
135
struct bwtwo_softc *sc = device_private(self);
sys/dev/sbus/bwtwo_sbus.c
142
sc->sc_dev = self;
sys/dev/sbus/bwtwo_sbus.c
149
fb->fb_flags = device_cfdata(self)->cf_flags;
sys/dev/sbus/bwtwo_sbus.c
164
aprint_error_dev(self, "cannot map control registers\n");
sys/dev/sbus/bwtwo_sbus.c
187
aprint_error_dev(self, "cannot map pixels\n");
sys/dev/sbus/cgsix_sbus.c
100
sc->sc_dev = self;
sys/dev/sbus/cgsix_sbus.c
121
aprint_error_dev(self, "cannot map brooktree registers\n");
sys/dev/sbus/cgsix_sbus.c
131
aprint_error_dev(self, "cannot map FHC registers\n");
sys/dev/sbus/cgsix_sbus.c
141
aprint_error_dev(self, "cannot map THC registers\n");
sys/dev/sbus/cgsix_sbus.c
151
aprint_error_dev(self, "cannot map TEC registers\n");
sys/dev/sbus/cgsix_sbus.c
161
aprint_error_dev(self, "cannot map FBC registers\n");
sys/dev/sbus/cgsix_sbus.c
181
aprint_error_dev(self, "cannot map pixels\n");
sys/dev/sbus/cgsix_sbus.c
88
cgsixattach(device_t parent, device_t self, void *aux)
sys/dev/sbus/cgsix_sbus.c
90
struct cgsix_softc *sc = device_private(self);
sys/dev/sbus/cgthree_sbus.c
131
cgthreeattach_sbus(device_t parent, device_t self, void *args)
sys/dev/sbus/cgthree_sbus.c
133
struct cgthree_softc *sc = device_private(self);
sys/dev/sbus/cgthree_sbus.c
141
sc->sc_dev = self;
sys/dev/sbus/cgthree_sbus.c
147
fb->fb_device = self;
sys/dev/sbus/cgthree_sbus.c
148
fb->fb_flags = device_cfdata(self)->cf_flags & FB_USERMASK;
sys/dev/sbus/cgthree_sbus.c
164
aprint_error_dev(self, "cannot map control registers\n");
sys/dev/sbus/cgthree_sbus.c
184
aprint_error_dev(self, "cannot map pixels\n");
sys/dev/sbus/cgtwelve.c
147
cgtwelve_attach(device_t parent, device_t self, void *args)
sys/dev/sbus/cgtwelve.c
149
struct cgtwelve_softc *sc = device_private(self);
sys/dev/sbus/cgtwelve.c
159
sc->sc_dev = self;
sys/dev/sbus/cgtwelve.c
181
aprint_error_dev(self, "cannot map framebuffer\n");
sys/dev/sbus/cgtwelve.c
187
aprint_normal_dev(self, "%d x %d\n", sc->sc_width, sc->sc_height);
sys/dev/sbus/cgtwelve.c
259
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/sbus/cs4231_sbus.c
139
cs4231_sbus_attach(device_t parent, device_t self, void *aux)
sys/dev/sbus/cs4231_sbus.c
146
sbsc = device_private(self);
sys/dev/sbus/cs4231_sbus.c
168
device_xname(self));
sys/dev/sbus/cs4231_sbus.c
176
cs4231_common_attach(sc, self, bh);
sys/dev/sbus/cs4231_sbus.c
186
audio_attach_mi(&audiocs_sbus_hw_if, sbsc, self);
sys/dev/sbus/dbri.c
2069
dbri_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/sbus/dbri.c
2071
struct dbri_softc *sc = device_private(self);
sys/dev/sbus/dbri.c
2080
dbri_resume(device_t self, const pmf_qual_t *qual)
sys/dev/sbus/dbri.c
2082
struct dbri_softc *sc = device_private(self);
sys/dev/sbus/dbri.c
255
dbri_attach_sbus(device_t parent, device_t self, void *aux)
sys/dev/sbus/dbri.c
257
struct dbri_softc *sc = device_private(self);
sys/dev/sbus/dbri.c
264
sc->sc_dev = self;
sys/dev/sbus/dbri.c
283
if (!pmf_device_register(self, dbri_suspend, dbri_resume)) {
sys/dev/sbus/dbri.c
284
aprint_error_dev(self,
sys/dev/sbus/dbri.c
306
device_xname(self));
sys/dev/sbus/dbri.c
318
aprint_error_dev(self, "DMA map create error %d\n",
sys/dev/sbus/dbri.c
326
aprint_error_dev(self, "DMA buffer alloc error %d\n",
sys/dev/sbus/dbri.c
335
aprint_error_dev(self, "DMA buffer map error %d\n",
sys/dev/sbus/dbri.c
344
aprint_error_dev(self, "DMA buffer map load error %d\n",
sys/dev/sbus/dbri.c
374
config_finalize_register(self, dbri_config_interrupts);
sys/dev/sbus/dma_sbus.c
123
dmaattach_sbus(device_t parent, device_t self, void *aux)
sys/dev/sbus/dma_sbus.c
125
struct dma_softc *dsc = device_private(self);
sys/dev/sbus/dma_sbus.c
135
sc->sc_dev = self;
sys/dev/sbus/dma_sbus.c
171
if (device_is_a(self, "ledma")) {
sys/dev/sbus/dma_sbus.c
206
devhandle_t selfh = device_handle(self);
sys/dev/sbus/dma_sbus.c
210
(void)config_found(self, (void *)&sax, dmaprint_sbus,
sys/dev/sbus/esp_sbus.c
149
espattach_sbus(device_t parent, device_t self, void *aux)
sys/dev/sbus/esp_sbus.c
151
struct esp_softc *esc = device_private(self);
sys/dev/sbus/esp_sbus.c
159
sc->sc_dev = self;
sys/dev/sbus/esp_sbus.c
175
aprint_normal_dev(self, "%s: sc_id %d, freq %d\n",
sys/dev/sbus/esp_sbus.c
177
aprint_normal("%s", device_xname(self));
sys/dev/sbus/esp_sbus.c
237
aprint_normal("%s", device_xname(self));
sys/dev/sbus/esp_sbus.c
293
dma_dev = device_find_by_driver_unit("dma", device_unit(self));
sys/dev/sbus/esp_sbus.c
343
espattach_dma(device_t parent, device_t self, void *aux)
sys/dev/sbus/esp_sbus.c
345
struct esp_softc *esc = device_private(self);
sys/dev/sbus/esp_sbus.c
353
sc->sc_dev = self;
sys/dev/sbus/genfb_sbus.c
102
sc->sc_gen.sc_dev = self;
sys/dev/sbus/genfb_sbus.c
117
aprint_normal_dev(self, "%d x %d at %d bit\n",
sys/dev/sbus/genfb_sbus.c
123
aprint_normal_dev(self, "framebuffer at offset 0x%x\n",
sys/dev/sbus/genfb_sbus.c
136
device_setprop_bool(self, "is_console", fb_is_console(node));
sys/dev/sbus/genfb_sbus.c
143
aprint_error_dev(self, "cannot map framebuffer\n");
sys/dev/sbus/genfb_sbus.c
90
genfb_attach_sbus(device_t parent, device_t self, void *args)
sys/dev/sbus/genfb_sbus.c
92
struct genfb_sbus_softc *sc = device_private(self);
sys/dev/sbus/if_gem_sbus.c
102
if (! ether_getaddr(self, enaddr)) {
sys/dev/sbus/if_gem_sbus.c
119
aprint_error_dev(self, "cannot map registers\n");
sys/dev/sbus/if_gem_sbus.c
127
aprint_error_dev(self, "cannot map registers\n");
sys/dev/sbus/if_gem_sbus.c
83
gemattach_sbus(device_t parent, device_t self, void *aux)
sys/dev/sbus/if_gem_sbus.c
86
struct gem_sbus_softc *gsc = device_private(self);
sys/dev/sbus/if_gem_sbus.c
90
sc->sc_dev = self;
sys/dev/sbus/if_gem_sbus.c
98
device_xname(self), sa->sa_nreg);
sys/dev/sbus/if_hme_sbus.c
102
aprint_error_dev(self, "only %d register sets\n",
sys/dev/sbus/if_hme_sbus.c
107
if (! ether_getaddr(self, sc->sc_enaddr)) {
sys/dev/sbus/if_hme_sbus.c
108
aprint_error_dev(self, "unable to get MAC address\n");
sys/dev/sbus/if_hme_sbus.c
127
aprint_error_dev(self, "cannot map SEB registers\n");
sys/dev/sbus/if_hme_sbus.c
135
aprint_error_dev(self, "cannot map ETX registers\n");
sys/dev/sbus/if_hme_sbus.c
143
aprint_error_dev(self, "cannot map ERX registers\n");
sys/dev/sbus/if_hme_sbus.c
151
aprint_error_dev(self, "cannot map MAC registers\n");
sys/dev/sbus/if_hme_sbus.c
159
aprint_error_dev(self, "cannot map MIF registers\n");
sys/dev/sbus/if_hme_sbus.c
82
hmeattach_sbus(device_t parent, device_t self, void *aux)
sys/dev/sbus/if_hme_sbus.c
85
struct hmesbus_softc *hsc = device_private(self);
sys/dev/sbus/if_hme_sbus.c
91
sc->sc_dev = self;
sys/dev/sbus/if_le.c
141
leattach_sbus(device_t parent, device_t self, void *aux)
sys/dev/sbus/if_le.c
143
struct le_softc *lesc = device_private(self);
sys/dev/sbus/if_le.c
149
sc->sc_dev = self;
sys/dev/sbus/if_le.c
153
if (! ether_getaddr(self, sc->sc_enaddr)) {
sys/dev/sbus/if_le_lebuffer.c
144
leattach_lebuffer(device_t parent, device_t self, void *aux)
sys/dev/sbus/if_le_lebuffer.c
146
struct le_softc *lesc = device_private(self);
sys/dev/sbus/if_le_lebuffer.c
151
sc->sc_dev = self;
sys/dev/sbus/if_le_lebuffer.c
155
if (! ether_getaddr(self, sc->sc_enaddr)) {
sys/dev/sbus/if_le_ledma.c
321
leattach_ledma(device_t parent, device_t self, void *aux)
sys/dev/sbus/if_le_ledma.c
323
struct le_softc *lesc = device_private(self);
sys/dev/sbus/if_le_ledma.c
331
sc->sc_dev = self;
sys/dev/sbus/if_le_ledma.c
390
if (! ether_getaddr(self, sc->sc_enaddr)) {
sys/dev/sbus/isp_sbus.c
119
isp_sbus_attach(device_t parent, device_t self, void *aux)
sys/dev/sbus/isp_sbus.c
123
struct isp_sbussoftc *sbc = device_private(self);
sys/dev/sbus/isp_sbus.c
127
isp->isp_osinfo.dev = self;
sys/dev/sbus/isp_sbus.c
144
aprint_error_dev(self, "cannot map registers\n");
sys/dev/sbus/isp_sbus.c
223
isp->isp_confopts = device_cfdata(self)->cf_flags;
sys/dev/sbus/lebuffer.c
122
devhandle_t selfh = device_handle(self);
sys/dev/sbus/lebuffer.c
127
(void)config_found(self, (void *)&sax, lebufprint,
sys/dev/sbus/lebuffer.c
75
lebufattach(device_t parent, device_t self, void *aux)
sys/dev/sbus/lebuffer.c
78
struct lebuf_softc *sc = device_private(self);
sys/dev/sbus/lebuffer.c
86
sc->sc_dev = self;
sys/dev/sbus/magma.c
352
magma_attach(device_t parent, device_t self, void *aux)
sys/dev/sbus/magma.c
355
struct magma_softc *sc = device_private(self);
sys/dev/sbus/magma.c
362
sc->ms_dev = self;
sys/dev/sbus/magma.c
398
device_xname(self));
sys/dev/sbus/magma.c
474
device_xname(self), chip, cd->cd_reg);
sys/dev/sbus/magma.c
478
(void)config_found(self, mtty_match, NULL, CFARGS_NONE);
sys/dev/sbus/magma.c
479
(void)config_found(self, mbpp_match, NULL, CFARGS_NONE);
sys/dev/sbus/magma.c
846
mtty_attach(device_t parent, device_t self, void *args)
sys/dev/sbus/magma.c
849
struct mtty_softc *ms = device_private(self);
sys/dev/sbus/magma.c
852
sc->ms_dev = self;
sys/dev/sbus/mgx.c
251
mgx_attach(device_t parent, device_t self, void *args)
sys/dev/sbus/mgx.c
253
struct mgx_softc *sc = device_private(self);
sys/dev/sbus/mgx.c
264
sc->sc_dev = self;
sys/dev/sbus/mgx.c
285
aprint_error_dev(self, "couldn't map framebuffer\n");
sys/dev/sbus/mgx.c
311
aprint_normal_dev(self, "[%s] %d MB framebuffer, %d x %d\n",
sys/dev/sbus/mgx.c
385
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/sbus/p9100.c
293
p9100_sbus_attach(device_t parent, device_t self, void *args)
sys/dev/sbus/p9100.c
295
struct p9100_softc *sc = device_private(self);
sys/dev/sbus/p9100.c
308
sc->sc_dev = self;
sys/dev/sbus/p9100.c
340
device_xname(self));
sys/dev/sbus/p9100.c
361
device_xname(self));
sys/dev/sbus/p9100.c
392
aprint_error_dev(self, "fatal error: PROM didn't configure device\n");
sys/dev/sbus/p9100.c
432
if (!pmf_device_register(self, p9100_suspend, p9100_resume)) {
sys/dev/sbus/p9100.c
500
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/sbus/p9100.c
504
device_xname(self),
sys/dev/sbus/qe.c
175
qeattach(device_t parent, device_t self, void *aux)
sys/dev/sbus/qe.c
179
struct qe_softc *sc = device_private(self);
sys/dev/sbus/qe.c
187
sc->sc_dev = self;
sys/dev/sbus/qe.c
191
device_xname(self), sa->sa_nreg);
sys/dev/sbus/qe.c
201
aprint_error_dev(self, "cannot map registers\n");
sys/dev/sbus/qe.c
211
aprint_error_dev(self, "cannot map registers\n");
sys/dev/sbus/qe.c
230
ether_getaddr(self, sc->sc_enaddr);
sys/dev/sbus/qe.c
248
aprint_error_dev(self, "DMA map create error %d\n",
sys/dev/sbus/qe.c
256
aprint_error_dev(self, "DMA buffer alloc error %d\n",
sys/dev/sbus/qe.c
265
aprint_error_dev(self, "DMA buffer map error %d\n",
sys/dev/sbus/qe.c
275
aprint_error_dev(self, "DMA buffer map load error %d\n",
sys/dev/sbus/qe.c
297
memcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/sbus/qe.c
696
device_t self = sc->sc_dev;
sys/dev/sbus/qe.c
697
const char *xname = device_xname(self);
sys/dev/sbus/qe.c
855
aprint_error_dev(self, "unexpected interrupt error: %08x\n",
sys/dev/sbus/qec.c
100
struct qec_softc *sc = device_private(self);
sys/dev/sbus/qec.c
108
sc->sc_dev = self;
sys/dev/sbus/qec.c
115
device_xname(self), sa->sa_nreg);
sys/dev/sbus/qec.c
124
aprint_error_dev(self, "attach: cannot map registers\n");
sys/dev/sbus/qec.c
138
aprint_error_dev(self, "attach: cannot map registers\n");
sys/dev/sbus/qec.c
169
aprint_error_dev(self, "attach: out of memory\n");
sys/dev/sbus/qec.c
186
panic("%s: error getting ranges property", device_xname(self));
sys/dev/sbus/qec.c
205
devhandle_t selfh = device_handle(self);
sys/dev/sbus/qec.c
210
(void)config_found(self, (void *)&sax, qecprint,
sys/dev/sbus/qec.c
97
qecattach(device_t parent, device_t self, void *aux)
sys/dev/sbus/sio16.c
125
sio16_attach(device_t parent, device_t self, void *aux)
sys/dev/sbus/sio16.c
128
struct sio16_softc *sc = device_private(self);
sys/dev/sbus/sio16.c
133
sc->sc_dev = self;
sys/dev/sbus/sio16.c
153
device_xname(self));
sys/dev/sbus/sio16.c
163
device_xname(self));
sys/dev/sbus/sio16.c
173
device_xname(self));
sys/dev/sbus/sio16.c
183
device_xname(self));
sys/dev/sbus/sio16.c
233
(void)config_found(self, (void *)&cd, NULL, CFARGS_NONE);
sys/dev/sbus/sio16.c
284
clcd_attach(device_t parent, device_t self, void *aux)
sys/dev/sbus/sio16.c
286
struct cd18xx_softc *sc = device_private(self);
sys/dev/sbus/sio16.c
289
sc->sc_dev = self;
sys/dev/sbus/spif.c
174
spif_attach(device_t parent, device_t self, void *aux)
sys/dev/sbus/spif.c
176
struct spif_softc *sc = device_private(self);
sys/dev/sbus/spif.c
179
sc->sc_dev = self;
sys/dev/sbus/spif.c
281
(void)config_found(self, stty_match, NULL, CFARGS_NONE);
sys/dev/sbus/spif.c
282
(void)config_found(self, sbpp_match, NULL, CFARGS_NONE);
sys/dev/sbus/stp4020.c
316
stp4020attach(device_t parent, device_t self, void *aux)
sys/dev/sbus/stp4020.c
319
struct stp4020_softc *sc = device_private(self);
sys/dev/sbus/stp4020.c
324
sc->sc_dev = self;
sys/dev/sbus/stp4020.c
332
aprint_error_dev(self, "attach: out of memory\n");
sys/dev/sbus/stp4020.c
396
device_xname(self), sa->sa_nreg);
sys/dev/sbus/stp4020.c
402
device_xname(self), sa->sa_nintr);
sys/dev/sbus/stp4020.c
427
aprint_error_dev(self, "attach: cannot map registers\n");
sys/dev/sbus/stp4020.c
477
&sc->event_thread, "%s", device_xname(self))) {
sys/dev/sbus/stp4020.c
478
panic("%s: unable to create event thread", device_xname(self));
sys/dev/sbus/tcx.c
211
tcxattach(device_t parent, device_t self, void *args)
sys/dev/sbus/tcx.c
213
struct tcx_softc *sc = device_private(self);
sys/dev/sbus/tcx.c
224
sc->sc_dev = self;
sys/dev/sbus/tcx.c
264
aprint_normal_dev(self, "%s, %d x %d\n", OBPNAME,
sys/dev/sbus/tcx.c
272
aprint_error_dev(self, "only %d register sets\n",
sys/dev/sbus/tcx.c
278
aprint_error_dev(self, "STIP register too small (0x%x)\n",
sys/dev/sbus/tcx.c
292
aprint_error_dev(self,
sys/dev/sbus/tcx.c
302
aprint_error_dev(self, "tcxattach: cannot map DAC registers\n");
sys/dev/sbus/tcx.c
313
aprint_error_dev(self, "tcxattach: cannot map framebuffer\n");
sys/dev/sbus/tcx.c
331
aprint_error_dev(self,
sys/dev/sbus/tcx.c
344
aprint_error_dev(self,
sys/dev/sbus/tcx.c
357
aprint_error_dev(self,
sys/dev/sbus/tcx.c
370
aprint_error_dev(self,
sys/dev/sbus/tcx.c
379
aprint_normal_dev(self, "id %d, rev %d, sense %d\n",
sys/dev/sbus/tcx.c
397
aprint_normal_dev(self, "(console)\n");
sys/dev/sbus/tcx.c
432
config_found(self, &aa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/sbus/xbox.c
121
xbox_attach(device_t parent, device_t self, void *aux)
sys/dev/sbus/xbox.c
123
struct xbox_softc *sc = device_private(self);
sys/dev/sbus/xbox.c
151
(void) config_found(self, (void *)&xa, xbox_print,
sys/dev/sbus/xbox.c
152
CFARGS(.devhandle = device_handle(self)));
sys/dev/sbus/zx.c
197
zx_attach(device_t parent, device_t self, void *args)
sys/dev/sbus/zx.c
209
sc = device_private(self);
sys/dev/sbus/zx.c
210
sc->sc_dv = self;
sys/dev/sbus/zx.c
220
aprint_error_dev(self, "can't map bits\n");
sys/dev/sbus/zx.c
228
aprint_error_dev(self, "can't map zc\n");
sys/dev/sbus/zx.c
236
aprint_error_dev(self, "can't map ld/ss0\n");
sys/dev/sbus/zx.c
243
aprint_error_dev(self, "can't map ld/ss1\n");
sys/dev/sbus/zx.c
250
aprint_error_dev(self, "can't map zx\n");
sys/dev/sbus/zx.c
257
aprint_error_dev(self, "can't map zcu\n");
sys/dev/scsipi/atapiconf.c
141
atapibusattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/atapiconf.c
143
struct atapibus_softc *sc = device_private(self);
sys/dev/scsipi/atapiconf.c
147
sc->sc_dev = self;
sys/dev/scsipi/atapiconf.c
169
if (!pmf_device_register(self, NULL, NULL))
sys/dev/scsipi/atapiconf.c
170
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/scsipi/atapiconf.c
177
atapibuschilddet(device_t self, device_t child)
sys/dev/scsipi/atapiconf.c
179
struct atapibus_softc *sc = device_private(self);
sys/dev/scsipi/atapiconf.c
198
atapibusdetach(device_t self, int flags)
sys/dev/scsipi/atapiconf.c
200
struct atapibus_softc *sc = device_private(self);
sys/dev/scsipi/atapiconf.c
211
pmf_device_deregister(self);
sys/dev/scsipi/cd.c
1464
cd_label(device_t self, struct disklabel *lp)
sys/dev/scsipi/cd.c
1466
struct cd_softc *cd = device_private(self);
sys/dev/scsipi/cd.c
272
cdattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/cd.c
274
struct cd_softc *cd = device_private(self);
sys/dev/scsipi/cd.c
301
dk_init(dksc, self, dtype);
sys/dev/scsipi/cd.c
331
if (!pmf_device_register(self, NULL, NULL))
sys/dev/scsipi/cd.c
332
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/scsipi/cd.c
336
cddetach(device_t self, int flags)
sys/dev/scsipi/cd.c
338
struct cd_softc *cd = device_private(self);
sys/dev/scsipi/cd.c
344
if ((rc = disk_begindetach(&dksc->sc_dkdev, cd_lastclose, self, flags)) != 0)
sys/dev/scsipi/cd.c
353
mn = CDMINOR(device_unit(self), i);
sys/dev/scsipi/cd.c
378
pmf_device_deregister(self);
sys/dev/scsipi/cd.c
387
cd_firstopen(device_t self, dev_t dev, int flag, int fmt)
sys/dev/scsipi/cd.c
389
struct cd_softc *cd = device_private(self);
sys/dev/scsipi/cd.c
523
cd_lastclose(device_t self)
sys/dev/scsipi/cd.c
525
struct cd_softc *cd = device_private(self);
sys/dev/scsipi/ch.c
201
chattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/ch.c
203
struct ch_softc *sc = device_private(self);
sys/dev/scsipi/ch.c
207
sc->sc_dev = self;
sys/dev/scsipi/if_dse.c
346
dseattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/if_dse.c
348
struct dse_softc *sc = device_private(self);
sys/dev/scsipi/if_dse.c
356
sc->sc_dev = self;
sys/dev/scsipi/if_dse.c
438
dsedetach(device_t self, int flags)
sys/dev/scsipi/if_dse.c
440
struct dse_softc *sc = device_private(self);
sys/dev/scsipi/if_se.c
321
seattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/if_se.c
323
struct se_softc *sc = device_private(self);
sys/dev/scsipi/if_se.c
331
sc->sc_dev = self;
sys/dev/scsipi/if_se.c
407
sedetach(device_t self, int flags)
sys/dev/scsipi/if_se.c
409
struct se_softc *sc = device_private(self);
sys/dev/scsipi/scsiconf.c
156
scsibusattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/scsiconf.c
158
struct scsibus_softc *sc = device_private(self);
sys/dev/scsipi/scsiconf.c
162
if (!pmf_device_register(self, NULL, NULL))
sys/dev/scsipi/scsiconf.c
163
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/scsipi/scsiconf.c
165
sc->sc_dev = self;
sys/dev/scsipi/scsiconf.c
281
scsibusdetach(device_t self, int flags)
sys/dev/scsipi/scsiconf.c
283
struct scsibus_softc *sc = device_private(self);
sys/dev/scsipi/scsiconf.c
300
pmf_device_deregister(self);
sys/dev/scsipi/scsiconf.c
520
scsidevdetached(device_t self, device_t child)
sys/dev/scsipi/scsiconf.c
522
struct scsibus_softc *sc = device_private(self);
sys/dev/scsipi/sd.c
1037
sd_label(device_t self, struct disklabel *lp)
sys/dev/scsipi/sd.c
1039
struct sd_softc *sd = device_private(self);
sys/dev/scsipi/sd.c
1083
sd_discard(device_t self, off_t pos, off_t len)
sys/dev/scsipi/sd.c
1085
struct sd_softc *sd = device_private(self);
sys/dev/scsipi/sd.c
1093
sd_shutdown(device_t self, int how)
sys/dev/scsipi/sd.c
1095
struct sd_softc *sd = device_private(self);
sys/dev/scsipi/sd.c
252
sdattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/sd.c
254
struct sd_softc *sd = device_private(self);
sys/dev/scsipi/sd.c
289
dk_init(dksc, self, dtype);
sys/dev/scsipi/sd.c
382
if (!pmf_device_register1(self, sd_suspend, NULL, sd_shutdown))
sys/dev/scsipi/sd.c
383
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/scsipi/sd.c
387
sddetach(device_t self, int flags)
sys/dev/scsipi/sd.c
389
struct sd_softc *sd = device_private(self);
sys/dev/scsipi/sd.c
395
rc = disk_begindetach(&dksc->sc_dkdev, sd_lastclose, self, flags);
sys/dev/scsipi/sd.c
405
mn = SDMINOR(device_unit(self), i);
sys/dev/scsipi/sd.c
433
pmf_device_deregister(self);
sys/dev/scsipi/sd.c
442
sd_firstopen(device_t self, dev_t dev, int flag, int fmt)
sys/dev/scsipi/sd.c
444
struct sd_softc *sd = device_private(self);
sys/dev/scsipi/sd.c
575
sd_lastclose(device_t self)
sys/dev/scsipi/sd.c
577
struct sd_softc *sd = device_private(self);
sys/dev/scsipi/ses.c
227
ses_attach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/ses.c
230
struct ses_softc *softc = device_private(self);
sys/dev/scsipi/ses.c
234
softc->sc_dev = self;
sys/dev/scsipi/ses.c
237
periph->periph_dev = self;
sys/dev/scsipi/ses.c
828
ses_detach(device_t self, int flags)
sys/dev/scsipi/ses.c
830
struct ses_softc *ssc = device_private(self);
sys/dev/scsipi/ss.c
158
ssattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/ss.c
160
struct ss_softc *ss = device_private(self);
sys/dev/scsipi/ss.c
165
ss->sc_dev = self;
sys/dev/scsipi/ss.c
199
ssdetach(device_t self, int flags)
sys/dev/scsipi/ss.c
201
struct ss_softc *ss = device_private(self);
sys/dev/scsipi/ss.c
225
mn = SSUNIT(device_unit(self));
sys/dev/scsipi/ss.c
73
static int ssdetach(device_t self, int flags);
sys/dev/scsipi/st.c
380
stattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/st.c
382
struct st_softc *st = device_private(self);
sys/dev/scsipi/st.c
387
st->sc_dev = self;
sys/dev/scsipi/st.c
411
aprint_normal_dev(self, "%s", st->quirkdata ? "quirks apply, " : "");
sys/dev/scsipi/st.c
435
stdetach(device_t self, int flags)
sys/dev/scsipi/st.c
437
struct st_softc *st = device_private(self);
sys/dev/scsipi/st.c
465
mn = STUNIT(device_unit(self));
sys/dev/scsipi/st_atapi.c
106
aprint_error_dev(self,
sys/dev/scsipi/st_atapi.c
113
stattach(parent, self, aux);
sys/dev/scsipi/st_atapi.c
82
st_atapibus_attach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/st_atapi.c
84
struct st_softc *st = device_private(self);
sys/dev/scsipi/st_atapi.c
97
aprint_error_dev(self,
sys/dev/scsipi/st_scsi.c
110
st_scsibus_attach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/st_scsi.c
112
struct st_softc *st = device_private(self);
sys/dev/scsipi/st_scsi.c
115
stattach(parent, self, aux);
sys/dev/scsipi/uk.c
104
ukattach(device_t parent, device_t self, void *aux)
sys/dev/scsipi/uk.c
106
struct uk_softc *uk = device_private(self);
sys/dev/scsipi/uk.c
111
uk->sc_dev = self;
sys/dev/scsipi/uk.c
120
if (!pmf_device_register(self, NULL, NULL))
sys/dev/scsipi/uk.c
121
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/scsipi/uk.c
125
ukdetach(device_t self, int flags)
sys/dev/scsipi/uk.c
133
mn = device_unit(self);
sys/dev/sdmmc/if_bwfm_sdio.c
367
bwfm_sdio_attach(device_t parent, device_t self, void *aux)
sys/dev/sdmmc/if_bwfm_sdio.c
369
struct bwfm_sdio_softc *sc = device_private(self);
sys/dev/sdmmc/if_bwfm_sdio.c
375
sc->sc_sc.sc_dev = self;
sys/dev/sdmmc/if_bwfm_sdio.c
381
sc->sc_phandle = bwfm_fdt_find_phandle(self, parent);
sys/dev/sdmmc/if_bwfm_sdio.c
423
aprint_error_dev(self, "cannot attach chip\n");
sys/dev/sdmmc/if_bwfm_sdio.c
429
aprint_error_dev(self, "cannot find chipcommon core\n");
sys/dev/sdmmc/if_bwfm_sdio.c
460
config_mountroot(self, bwfm_sdio_attachhook);
sys/dev/sdmmc/if_bwfm_sdio.c
468
bwfm_sdio_attachhook(device_t self)
sys/dev/sdmmc/if_bwfm_sdio.c
470
struct bwfm_sdio_softc *sc = device_private(self);
sys/dev/sdmmc/if_bwfm_sdio.c
566
aprint_normal_dev(self, "enabling GPIO interrupt\n");
sys/dev/sdmmc/if_bwfm_sdio.c
568
sc->sc_ih = sdmmc_intr_establish(device_parent(self),
sys/dev/sdmmc/if_bwfm_sdio.c
573
aprint_error_dev(self, "could not establish interrupt\n");
sys/dev/sdmmc/if_bwfm_sdio.c
597
bwfm_fdt_find_phandle(device_t self, device_t parent)
sys/dev/sdmmc/if_bwfm_sdio.c
605
dict = device_properties(self);
sys/dev/sdmmc/if_bwfm_sdio.c
652
bwfm_sdio_detach(device_t self, int flags)
sys/dev/sdmmc/if_bwfm_sdio.c
654
struct bwfm_sdio_softc *sc = device_private(self);
sys/dev/sdmmc/if_bwi_sdio.c
157
bwi_sdio_attach(device_t parent, device_t self, void *aux)
sys/dev/sdmmc/if_bwi_sdio.c
159
struct bwi_sdio_softc * const ssc = device_private(self);
sys/dev/sdmmc/if_bwi_sdio.c
170
sc->sc_dev = self;
sys/dev/sdmmc/if_bwi_sdio.c
190
aprint_error_dev(self, "couldn't enable function\n");
sys/dev/sdmmc/if_bwi_sdio.c
197
device_xname(self));
sys/dev/sdmmc/if_bwi_sdio.c
199
aprint_error_dev(self, "couldn't establish interrupt\n");
sys/dev/sdmmc/ld_sdmmc.c
243
ld_sdmmc_attach(device_t parent, device_t self, void *aux)
sys/dev/sdmmc/ld_sdmmc.c
245
struct ld_sdmmc_softc *sc = device_private(self);
sys/dev/sdmmc/ld_sdmmc.c
253
ld->sc_dv = self;
sys/dev/sdmmc/ld_sdmmc.c
269
NULL, device_xname(self), "sdmmc discard count");
sys/dev/sdmmc/ld_sdmmc.c
271
NULL, device_xname(self), "sdmmc discard errors");
sys/dev/sdmmc/ld_sdmmc.c
273
NULL, device_xname(self), "sdmmc discard busy");
sys/dev/sdmmc/ld_sdmmc.c
312
config_pending_incr(self);
sys/dev/sdmmc/ld_sdmmc.c
314
ld_sdmmc_doattach, sc, &lwp, "%sattach", device_xname(self))) {
sys/dev/sdmmc/ld_sdmmc.c
315
aprint_error_dev(self, "couldn't create thread\n");
sys/dev/sdmmc/sbt.c
162
sbt_attach(device_t parent, device_t self, void *aux)
sys/dev/sdmmc/sbt.c
164
struct sbt_softc *sc = device_private(self);
sys/dev/sdmmc/sbt.c
170
sc->sc_dev = self;
sys/dev/sdmmc/sbt.c
201
sc->sc_unit = hci_attach_pcb(&sbt_hci, self, 0);
sys/dev/sdmmc/sbt.c
205
sbt_detach(device_t self, int flags)
sys/dev/sdmmc/sbt.c
207
struct sbt_softc *sc = device_private(self);
sys/dev/sdmmc/sbt.c
400
sbt_enable(device_t self)
sys/dev/sdmmc/sbt.c
402
struct sbt_softc *sc = device_private(self);
sys/dev/sdmmc/sbt.c
419
sbt_disable(device_t self)
sys/dev/sdmmc/sbt.c
421
struct sbt_softc *sc = device_private(self);
sys/dev/sdmmc/sbt.c
507
sbt_start_cmd(device_t self, struct mbuf *m)
sys/dev/sdmmc/sbt.c
509
struct sbt_softc *sc = device_private(self);
sys/dev/sdmmc/sbt.c
526
sbt_start_acl(device_t self, struct mbuf *m)
sys/dev/sdmmc/sbt.c
528
struct sbt_softc *sc = device_private(self);
sys/dev/sdmmc/sbt.c
545
sbt_start_sco(device_t self, struct mbuf *m)
sys/dev/sdmmc/sbt.c
547
struct sbt_softc *sc = device_private(self);
sys/dev/sdmmc/sbt.c
562
sbt_stats(device_t self, struct bt_stats *dest, int flush)
sys/dev/sdmmc/sbt.c
564
struct sbt_softc *sc = device_private(self);
sys/dev/sdmmc/sdmmc.c
114
sdmmc_attach(device_t parent, device_t self, void *aux)
sys/dev/sdmmc/sdmmc.c
116
struct sdmmc_softc *sc = device_private(self);
sys/dev/sdmmc/sdmmc.c
123
sc->sc_dev = self;
sys/dev/sdmmc/sdmmc.c
159
device_xname(self), "xfer");
sys/dev/sdmmc/sdmmc.c
161
&sc->sc_ev_xfer, device_xname(self), "xfer 512");
sys/dev/sdmmc/sdmmc.c
163
&sc->sc_ev_xfer, device_xname(self), "xfer 1024");
sys/dev/sdmmc/sdmmc.c
165
&sc->sc_ev_xfer, device_xname(self), "xfer 2048");
sys/dev/sdmmc/sdmmc.c
167
&sc->sc_ev_xfer, device_xname(self), "xfer 4096");
sys/dev/sdmmc/sdmmc.c
169
&sc->sc_ev_xfer, device_xname(self), "xfer 8192");
sys/dev/sdmmc/sdmmc.c
171
&sc->sc_ev_xfer, device_xname(self), "xfer 16384");
sys/dev/sdmmc/sdmmc.c
173
&sc->sc_ev_xfer, device_xname(self), "xfer 32768");
sys/dev/sdmmc/sdmmc.c
175
&sc->sc_ev_xfer, device_xname(self), "xfer 65536");
sys/dev/sdmmc/sdmmc.c
177
&sc->sc_ev_xfer, device_xname(self), "xfer unaligned");
sys/dev/sdmmc/sdmmc.c
179
&sc->sc_ev_xfer, device_xname(self), "xfer error");
sys/dev/sdmmc/sdmmc.c
187
if (!pmf_device_register(self, NULL, NULL)) {
sys/dev/sdmmc/sdmmc.c
188
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/sdmmc/sdmmc.c
197
config_pending_incr(self);
sys/dev/sdmmc/sdmmc.c
198
config_interrupts(self, sdmmc_doattach);
sys/dev/sdmmc/sdmmc.c
202
sdmmc_detach(device_t self, int flags)
sys/dev/sdmmc/sdmmc.c
204
struct sdmmc_softc *sc = device_private(self);
sys/dev/sdmmc/sdmmc.c
214
pmf_device_deregister(self);
sys/dev/sdmmc/sdmmc.c
216
error = config_detach_children(self, flags);
sys/dev/spi/bmx280thpspi.c
166
bmx280thpspi_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/bmx280thpspi.c
168
struct bmx280_spi_softc *ssc = device_private(self);
sys/dev/spi/bmx280thpspi.c
173
sc->sc_dev = self;
sys/dev/spi/bmx280thpspi.c
182
error = spi_configure(self, sa->sa_handle, SPI_MODE_0, SPI_FREQ_MHz(1));
sys/dev/spi/bmx280thpspi.c
194
bmx280thpspi_detach(device_t self, int flags)
sys/dev/spi/bmx280thpspi.c
196
struct bmx280_spi_softc *ssc = device_private(self);
sys/dev/spi/m25p.c
138
m25p_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/m25p.c
140
struct m25p_softc *sc = device_private(self);
sys/dev/spi/m25p.c
150
error = spi_configure(self, sa->sa_handle, SPI_MODE_0,
sys/dev/spi/m25p.c
156
config_interrupts(self, m25p_doattach);
sys/dev/spi/m25p.c
160
m25p_doattach(device_t self)
sys/dev/spi/m25p.c
162
struct m25p_softc *sc = device_private(self);
sys/dev/spi/m25p.c
173
aprint_error_dev(self, "failed to get JEDEC identification\n");
sys/dev/spi/m25p.c
182
aprint_error_dev(self,
sys/dev/spi/m25p.c
200
aprint_error_dev(self,
sys/dev/spi/m25p.c
214
aprint_normal_dev(self, "JEDEC ID mfgid:0x%02X, devid:0x%04X",
sys/dev/spi/m25p.c
218
spiflash_attach_mi(&m25p_hw_if, sc, self);
sys/dev/spi/mcp23xxxgpio_spi.c
234
mcpgpio_spi_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/mcp23xxxgpio_spi.c
236
struct mcpgpio_spi_softc *ssc = device_private(self);
sys/dev/spi/mcp23xxxgpio_spi.c
238
devhandle_t devhandle = device_handle(self);
sys/dev/spi/mcp23xxxgpio_spi.c
246
sc->sc_dev = self;
sys/dev/spi/mcp23xxxgpio_spi.c
255
error = spi_configure(self, sa->sa_handle, SPI_MODE_0,
sys/dev/spi/mcp23xxxgpio_spi.c
279
aprint_error_dev(self,
sys/dev/spi/mcp23xxxgpio_spi.c
299
spi_present_mask = __BIT(device_cfdata(self)->cf_flags & 0x7);
sys/dev/spi/mcp23xxxgpio_spi.c
311
aprint_error_dev(self,
sys/dev/spi/mcp23xxxgpio_spi.c
332
aprint_verbose_dev(self, "pins %d..%d at HA %d\n",
sys/dev/spi/mcp3k.c
300
mcp3kadc_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/mcp3k.c
304
struct mcp3kadc_softc *sc = device_private(self);
sys/dev/spi/mcp3k.c
305
devhandle_t devhandle = device_handle(self);
sys/dev/spi/mcp3k.c
310
sc->sc_dev = self;
sys/dev/spi/mcp3k.c
313
model = mcp3kadc_lookup(sa, device_cfdata(self));
sys/dev/spi/mcp3k.c
324
error = spi_configure(self, sa->sa_handle, SPI_MODE_0, SPI_FREQ_MHz(1));
sys/dev/spi/mcp3k.c
387
sc->sc_sme->sme_name = device_xname(self);
sys/dev/spi/mcp3k.c
391
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/spi/mcp48x1.c
166
mcp48x1dac_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/mcp48x1.c
168
struct mcp48x1dac_softc *sc = device_private(self);
sys/dev/spi/mcp48x1.c
173
sc->sc_dev = self;
sys/dev/spi/mcp48x1.c
176
model = mcp48x1dac_lookup(sa, device_cfdata(self));
sys/dev/spi/mcp48x1.c
191
error = spi_configure(self, sa->sa_handle, SPI_MODE_0,
sys/dev/spi/oj6sh.c
148
oj6sh_doattach(device_t self)
sys/dev/spi/oj6sh.c
150
struct oj6sh_softc *sc = device_private(self);
sys/dev/spi/oj6sh.c
169
aprint_error_dev(self,
sys/dev/spi/oj6sh.c
182
oj6sh_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/oj6sh.c
184
struct oj6sh_softc *sc = device_private(self);
sys/dev/spi/oj6sh.c
192
error = spi_configure(self, sa->sa_handle, SPI_MODE_0,
sys/dev/spi/oj6sh.c
200
sc->sc_dev = self;
sys/dev/spi/oj6sh.c
212
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/dev/spi/oj6sh.c
214
config_interrupts(self, oj6sh_doattach);
sys/dev/spi/sc16is7xxspi.c
245
sc16is7xxspi_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/sc16is7xxspi.c
247
struct sc16is7xx_spi_softc *ssc = device_private(self);
sys/dev/spi/sc16is7xxspi.c
252
sc->sc_dev = self;
sys/dev/spi/sc16is7xxspi.c
264
error = spi_configure(self, sa->sa_handle, SPI_MODE_0, SPI_FREQ_MHz(SC16IS7XX_SPI_FREQUENCY));
sys/dev/spi/sc16is7xxspi.c
272
sc16is7xxspi_detach(device_t self, int flags)
sys/dev/spi/sc16is7xxspi.c
274
struct sc16is7xx_spi_softc *ssc = device_private(self);
sys/dev/spi/scmdspi.c
185
scmdspi_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/scmdspi.c
192
sc = device_private(self);
sys/dev/spi/scmdspi.c
194
sc->sc_dev = self;
sys/dev/spi/scmdspi.c
212
error = spi_configure(self, sa->sa_handle, SPI_MODE_0, SPI_FREQ_MHz(1));
sys/dev/spi/scmdspi.c
231
scmdspi_detach(device_t self, int flags)
sys/dev/spi/scmdspi.c
235
sc = device_private(self);
sys/dev/spi/scmdspi.c
263
scmdspi_activate(device_t self, enum devact act)
sys/dev/spi/scmdspi.c
265
struct scmd_sc *sc = device_private(self);
sys/dev/spi/spi.c
254
spi_enumerate_devices_callback(device_t self,
sys/dev/spi/spi.c
257
struct spi_softc *sc = device_private(self);
sys/dev/spi/spi.c
302
spi_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/spi.c
304
struct spi_softc *sc = device_private(self);
sys/dev/spi/spi.c
316
sc->sc_dev = self;
sys/dev/spi/spi.c
358
fdtbus_register_spi_controller(self, sc->sc_controller);
sys/dev/spi/spi.c
375
device_call(self, SPI_ENUMERATE_DEVICES(&enumargs));
sys/dev/spi/spi.c
378
config_search(self, NULL,
sys/dev/spi/spi.c
383
spi_detach(device_t self, int flags)
sys/dev/spi/spi.c
387
error = config_detach_children(self, flags);
sys/dev/spi/spiflash.c
202
spiflash_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/spiflash.c
204
struct spiflash_softc *sc = device_private(self);
sys/dev/spi/spiflash.c
228
aprint_normal_dev(self, "%d KB, %d sectors of %d KB each\n",
sys/dev/spi/spiflash.c
238
disk_init(&sc->sc_dk, device_xname(self), &spiflash_dkdriver);
sys/dev/spi/ssdfb_spi.c
115
ssdfb_spi_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/ssdfb_spi.c
117
struct ssdfb_spi_softc *sc = device_private(self);
sys/dev/spi/ssdfb_spi.c
118
struct cfdata *cf = device_cfdata(self);
sys/dev/spi/ssdfb_spi.c
123
sc->sc.sc_dev = self;
sys/dev/spi/ssdfb_spi.c
139
error = spi_configure(self, sa->sa_handle, SPI_MODE_0,
sys/dev/spi/ssdfb_spi.c
154
devhandle_t devhandle = device_handle(self);
sys/dev/spi/ssdfb_spi.c
222
aprint_normal_dev(self, "%d-wire SPI interface\n",
sys/dev/spi/tmp121.c
104
tmp121temp_attach(device_t parent, device_t self, void *aux)
sys/dev/spi/tmp121.c
106
struct tmp121temp_softc *sc = device_private(self);
sys/dev/spi/tmp121.c
114
error = spi_configure(self, sa->sa_handle, SPI_MODE_0,
sys/dev/spi/tmp121.c
125
strlcpy(sc->sc_sensor.desc, device_xname(self),
sys/dev/spi/tmp121.c
132
sc->sc_sme->sme_name = device_xname(self);
sys/dev/spi/tmp121.c
137
aprint_error_dev(self, "unable to register with sysmon\n");
sys/dev/spkr.c
424
spkr_attach(device_t self, void (*tone)(device_t, u_int, u_int))
sys/dev/spkr.c
426
struct spkr_softc *sc = device_private(self);
sys/dev/spkr.c
430
device_unit(self));
sys/dev/spkr.c
432
sc->sc_dev = self;
sys/dev/spkr.c
437
spkr_rescan(self, NULL, NULL);
sys/dev/spkr.c
441
spkr_detach(device_t self, int flags)
sys/dev/spkr.c
443
struct spkr_softc *sc = device_private(self);
sys/dev/spkr.c
448
device_unit(self));
sys/dev/spkr.c
459
rc = config_detach_children(self, flags);
sys/dev/spkr.c
466
spkr_rescan(device_t self, const char *iattr, const int *locators)
sys/dev/spkr.c
469
struct spkr_softc *sc = device_private(self);
sys/dev/spkr.c
474
sc->sc_wsbelldev = config_found(self, &a, wsbelldevprint,
sys/dev/spkr.c
482
spkr_childdet(device_t self, device_t child)
sys/dev/spkr.c
484
struct spkr_softc *sc = device_private(self);
sys/dev/spkr_audio.c
102
if (!pmf_device_register(self, NULL, NULL))
sys/dev/spkr_audio.c
103
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/spkr_audio.c
105
spkr_attach(self, spkr_audio_tone);
sys/dev/spkr_audio.c
109
spkr_audio_detach(device_t self, int flags)
sys/dev/spkr_audio.c
113
if ((error = spkr_detach(self, flags)) != 0)
sys/dev/spkr_audio.c
116
pmf_device_deregister(self);
sys/dev/spkr_audio.c
122
spkr_audio_rescan(device_t self, const char *iattr, const int *locators)
sys/dev/spkr_audio.c
125
return spkr_rescan(self, iattr, locators);
sys/dev/spkr_audio.c
129
spkr_audio_childdet(device_t self, device_t child)
sys/dev/spkr_audio.c
132
spkr_childdet(self, child);
sys/dev/spkr_audio.c
66
spkr_audio_tone(device_t self, u_int xhz, u_int ticks)
sys/dev/spkr_audio.c
68
struct spkr_audio_softc *sc = device_private(self);
sys/dev/spkr_audio.c
71
device_printf(self, "%s: %u %u\n", __func__, xhz, ticks);
sys/dev/spkr_audio.c
92
spkr_audio_attach(device_t parent, device_t self, void *aux)
sys/dev/spkr_audio.c
94
struct spkr_audio_softc *sc = device_private(self);
sys/dev/sun/cgthree.c
319
cgthreeunblank(device_t self)
sys/dev/sun/cgthree.c
321
struct cgthree_softc *sc = device_private(self);
sys/dev/sun/kbd_zs.c
125
kbd_zs_attach(device_t parent, device_t self, void *aux)
sys/dev/sun/kbd_zs.c
127
struct kbd_sun_softc *k = device_private(self);
sys/dev/sun/kbd_zs.c
135
k->k_kbd.k_dev = self;
sys/dev/sun/ms_zs.c
121
ms_zs_attach(device_t parent, device_t self, void *aux)
sys/dev/sun/ms_zs.c
125
struct ms_softc *ms = device_private(self);
sys/dev/sun/ms_zs.c
132
ms->ms_dev = self;
sys/dev/sun/sunkbd.c
130
sunkbd_attach(device_t parent, device_t self, void *aux)
sys/dev/sun/sunkbd.c
132
struct kbd_sun_softc *k = device_private(self);
sys/dev/sun/sunkbd.c
137
k->k_kbd.k_dev = self;
sys/dev/sun/sunms.c
140
sunms_attach(device_t parent, device_t self, void *aux)
sys/dev/sun/sunms.c
142
struct ms_softc *ms = device_private(self);
sys/dev/sun/sunms.c
149
ms->ms_dev = self;
sys/dev/sun/sunms.c
177
ms->ms_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/dev/sysmon/swwdog.c
153
swwdog_attach(device_t parent, device_t self, void *aux)
sys/dev/sysmon/swwdog.c
155
struct swwdog_softc *sc = device_private(self);
sys/dev/sysmon/swwdog.c
157
sc->sc_dev = self;
sys/dev/sysmon/swwdog.c
158
sc->sc_smw.smw_name = device_xname(self);
sys/dev/sysmon/swwdog.c
168
aprint_normal_dev(self, "software watchdog initialized\n");
sys/dev/sysmon/swwdog.c
170
aprint_error_dev(self, "unable to register software "
sys/dev/sysmon/swwdog.c
176
if (!pmf_device_register(self, swwdog_suspend, NULL))
sys/dev/sysmon/swwdog.c
177
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/sysmon/swwdog.c
181
swwdog_detach(device_t self, int flags)
sys/dev/sysmon/swwdog.c
183
struct swwdog_softc *sc = device_private(self);
sys/dev/sysmon/swwdog.c
185
pmf_device_deregister(self);
sys/dev/tc/asc_tc.c
125
asc_tc_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/asc_tc.c
127
struct asc_softc *asc = device_private(self);
sys/dev/tc/asc_tc.c
134
sc->sc_dev = self;
sys/dev/tc/asc_tcds.c
144
asc_tcds_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/asc_tcds.c
146
struct asc_softc *asc = device_private(self);
sys/dev/tc/asc_tcds.c
154
sc->sc_dev = self;
sys/dev/tc/bba.c
195
bba_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/bba.c
203
sc = device_private(self);
sys/dev/tc/bba.c
205
amsc->sc_dev = self;
sys/dev/tc/bba.c
213
aprint_error_dev(self, "unable to map device\n");
sys/dev/tc/bba.c
234
audio_attach_mi(&sa_hw_if, sc, self);
sys/dev/tc/cfb.c
245
cfbattach(device_t parent, device_t self, void *aux)
sys/dev/tc/cfb.c
247
struct cfb_softc *sc = device_private(self);
sys/dev/tc/cfb.c
285
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/tc/if_le_ioasic.c
103
le_ioasic_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/if_le_ioasic.c
105
struct le_ioasic_softc *sc = device_private(self);
sys/dev/tc/if_le_ioasic.c
118
le->sc_dev = self;
sys/dev/tc/if_le_tc.c
85
le_tc_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/if_le_tc.c
87
struct le_softc *lesc = device_private(self);
sys/dev/tc/if_le_tc.c
91
sc->sc_dev = self;
sys/dev/tc/mfb.c
223
mfbattach(device_t parent, device_t self, void *aux)
sys/dev/tc/mfb.c
225
struct mfb_softc *sc = device_private(self);
sys/dev/tc/mfb.c
265
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/tc/px.c
125
px_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/px.c
133
px = device_private(self);
sys/dev/tc/px.c
136
px->px_dev = self;
sys/dev/tc/px.c
153
si->si_dv = self;
sys/dev/tc/px.c
166
stic_attach(self, si, console);
sys/dev/tc/pxg.c
127
pxg_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/pxg.c
134
pxg = device_private(self);
sys/dev/tc/pxg.c
152
si->si_dv = self;
sys/dev/tc/pxg.c
158
stic_attach(self, si, console);
sys/dev/tc/sfb.c
257
sfbattach(device_t parent, device_t self, void *aux)
sys/dev/tc/sfb.c
259
struct sfb_softc *sc = device_private(self);
sys/dev/tc/sfb.c
300
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/tc/sfbplus.c
249
sfbpattach(device_t parent, device_t self, void *aux)
sys/dev/tc/sfbplus.c
251
struct sfbp_softc *sc = device_private(self);
sys/dev/tc/sfbplus.c
306
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/tc/slhci_tcu.c
100
aprint_error_dev(self, "slhci_attach() failed\n");
sys/dev/tc/slhci_tcu.c
73
slhci_tcu_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/slhci_tcu.c
75
struct slhci_tcu_softc *tsc = device_private(self);
sys/dev/tc/slhci_tcu.c
82
sc->sc_dev = self;
sys/dev/tc/slhci_tcu.c
90
aprint_error_dev(self, "bus_space_map() failed (%d)\n", error);
sys/dev/tc/stic.c
406
stic_attach(device_t self, struct stic_info *si, int console)
sys/dev/tc/stic.c
432
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/tc/tc.c
140
config_found(self, &ta, tcprint,
sys/dev/tc/tc.c
185
config_found(self, &ta, tcprint,
sys/dev/tc/tc.c
70
tcattach(device_t parent, device_t self, void *aux)
sys/dev/tc/tc.c
72
struct tc_softc *sc = device_private(self);
sys/dev/tc/tc.c
81
sc->sc_dev = self;
sys/dev/tc/tcds.c
147
tcdsattach(device_t parent, device_t self, void *aux)
sys/dev/tc/tcds.c
149
struct tcds_softc *sc = device_private(self);
sys/dev/tc/tcds.c
159
sc->sc_dev = self;
sys/dev/tc/tcds.c
180
aprint_error_dev(self, "unable to map device\n");
sys/dev/tc/tcds.c
191
aprint_error_dev(self, "unable to subregion SCSI chip space\n");
sys/dev/tc/tcds.c
229
pevcnt, device_xname(self), cp);
sys/dev/tc/tcds.c
296
config_found(self, &tcdsdev, tcdsprint,
sys/dev/tc/tcu.c
103
tcu_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/tcu.c
117
aprint_error_dev(self, "bus_space_map() failed (%d)\n", error);
sys/dev/tc/tcu.c
142
aprint_normal_dev(self, "config %s\n", buf);
sys/dev/tc/tcu.c
145
aprint_error_dev(self, "warning: switch S1-1 asserted with "
sys/dev/tc/tcu.c
150
(void)config_found(self, aux, tcu_print,
sys/dev/tc/tcu.c
155
tcu_gpio_attach(parent, self, aux);
sys/dev/tc/tcu.c
174
tcu_gpio_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/tcu.c
176
struct tcu_softc *sc = device_private(self);
sys/dev/tc/tcu.c
188
aprint_error_dev(self, "bus_space_map() failed (%d)\n", error);
sys/dev/tc/tcu.c
216
config_found(self, &gba, gpiobus_print,
sys/dev/tc/tfb.c
279
tfbattach(device_t parent, device_t self, void *aux)
sys/dev/tc/tfb.c
281
struct tfb_softc *sc = device_private(self);
sys/dev/tc/tfb.c
319
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/tc/xcfb.c
213
xcfbattach(device_t parent, device_t self, void *aux)
sys/dev/tc/xcfb.c
215
struct xcfb_softc *sc = device_private(self);
sys/dev/tc/xcfb.c
248
config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
sys/dev/tc/zs_ioasic.c
225
zs_ioasic_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/zs_ioasic.c
227
struct zsc_softc *zs = device_private(self);
sys/dev/tc/zs_ioasic.c
236
zs->zsc_dev = self;
sys/dev/tc/zs_ioasic.c
311
if (config_found(self, (void *)&zs_args, zs_ioasic_print,
sys/dev/tc/zskbd.c
180
zskbd_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/zskbd.c
183
struct zskbd_softc *zskbd = device_private(self);
sys/dev/tc/zskbd.c
190
zskbd->zskbd_dev = self;
sys/dev/tc/zskbd.c
237
zskbd->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/dev/tc/zsms.c
147
zsms_attach(device_t parent, device_t self, void *aux)
sys/dev/tc/zsms.c
150
struct zsms_softc *zsms = device_private(self);
sys/dev/tc/zsms.c
156
zsms->zsms_dev = self;
sys/dev/tc/zsms.c
185
zsms->sc_wsmousedev = config_found(self, &a, wsmousedevprint,
sys/dev/usb/aubtfwl.c
101
struct aubtfwl_softc * const sc = device_private(self);
sys/dev/usb/aubtfwl.c
103
usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, self);
sys/dev/usb/aubtfwl.c
110
aubtfwl_firmware_load(device_t self, const char *name) {
sys/dev/usb/aubtfwl.c
111
struct aubtfwl_softc * const sc = device_private(self);
sys/dev/usb/aubtfwl.c
127
aprint_error_dev(self, "'%s' open fail %d\n", name, error);
sys/dev/usb/aubtfwl.c
134
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/aubtfwl.c
141
aprint_error_dev(self, "failed to get interface, %s\n",
sys/dev/usb/aubtfwl.c
148
aprint_error_dev(self, "failed to open pipe, %s\n",
sys/dev/usb/aubtfwl.c
155
aprint_verbose_dev(self, "cannot create xfer(%d)\n",
sys/dev/usb/aubtfwl.c
163
aprint_error_dev(self, "firmware_read failed %d\n", error);
sys/dev/usb/aubtfwl.c
173
aprint_verbose_dev(self, "beginning firmware load\n");
sys/dev/usb/aubtfwl.c
177
aprint_error_dev(self, "%s\n", usbd_errstr(error));
sys/dev/usb/aubtfwl.c
191
aprint_error_dev(self, "xfer failed, %s\n",
sys/dev/usb/aubtfwl.c
199
aprint_verbose_dev(self, "firmware load complete\n");
sys/dev/usb/aubtfwl.c
273
aubtfwl_attach_hook(device_t self)
sys/dev/usb/aubtfwl.c
275
struct aubtfwl_softc * const sc = device_private(self);
sys/dev/usb/aubtfwl.c
288
aprint_error_dev(self,
sys/dev/usb/aubtfwl.c
293
aprint_verbose_dev(self, "state is 0x%02x\n", state);
sys/dev/usb/aubtfwl.c
298
error = aubtfwl_firmware_load(self, fw_name);
sys/dev/usb/aubtfwl.c
319
aubtfwl_firmware_load(self, fw_name);
sys/dev/usb/aubtfwl.c
325
aprint_error_dev(self,
sys/dev/usb/aubtfwl.c
335
aubtfwl_firmware_load(self, "ath3k-1.fw");
sys/dev/usb/aubtfwl.c
83
aubtfwl_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/aubtfwl.c
86
struct aubtfwl_softc * const sc = device_private(self);
sys/dev/usb/aubtfwl.c
95
config_mountroot(self, aubtfwl_attach_hook);
sys/dev/usb/aubtfwl.c
99
aubtfwl_detach(device_t self, int flags)
sys/dev/usb/auvitek.c
104
sc->sc_dev = self;
sys/dev/usb/auvitek.c
123
aprint_error_dev(self, "couldn't set config index: %s\n",
sys/dev/usb/auvitek.c
129
aprint_error_dev(self, "couldn't get interface handle: %s\n",
sys/dev/usb/auvitek.c
135
aprint_error_dev(self, "couldn't get interface handle: %s\n",
sys/dev/usb/auvitek.c
145
aprint_error_dev(self, "couldn't set interface: %s\n",
sys/dev/usb/auvitek.c
157
aprint_error_dev(self,
sys/dev/usb/auvitek.c
176
aprint_error_dev(self, "couldn't set interface: %s\n",
sys/dev/usb/auvitek.c
182
aprint_error_dev(self, "couldn't find isoc endpoint\n");
sys/dev/usb/auvitek.c
187
aprint_error_dev(self, "couldn't determine packet length\n");
sys/dev/usb/auvitek.c
192
aprint_debug_dev(self, "isoc endpoint 0x%02x size %d\n",
sys/dev/usb/auvitek.c
202
aprint_error_dev(self,
sys/dev/usb/auvitek.c
217
aprint_error_dev(self, "couldn't find bulk endpoint\n");
sys/dev/usb/auvitek.c
222
aprint_debug_dev(self, "bulk endpoint 0x%02x size %d\n",
sys/dev/usb/auvitek.c
229
sc->sc_au8522 = au8522_open(self, &sc->sc_i2c, 0x8e >> 1,
sys/dev/usb/auvitek.c
237
config_mountroot(self, auvitek_attach_tuner);
sys/dev/usb/auvitek.c
245
auvitek_attach_tuner(device_t self)
sys/dev/usb/auvitek.c
247
struct auvitek_softc *sc = device_private(self);
sys/dev/usb/auvitek.c
260
auvitek_detach(device_t self, int flags)
sys/dev/usb/auvitek.c
262
struct auvitek_softc *sc = device_private(self);
sys/dev/usb/auvitek.c
267
error = config_detach_children(self, flags);
sys/dev/usb/auvitek.c
278
pmf_device_deregister(self);
sys/dev/usb/auvitek.c
297
auvitek_activate(device_t self, enum devact act)
sys/dev/usb/auvitek.c
299
struct auvitek_softc *sc = device_private(self);
sys/dev/usb/auvitek.c
311
auvitek_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/usb/auvitek.c
313
struct auvitek_softc *sc = device_private(self);
sys/dev/usb/auvitek.c
323
auvitek_childdet(device_t self, device_t child)
sys/dev/usb/auvitek.c
325
struct auvitek_softc *sc = device_private(self);
sys/dev/usb/auvitek.c
91
auvitek_attach(device_t parent, device_t self, void *opaque)
sys/dev/usb/auvitek.c
93
struct auvitek_softc *sc = device_private(self);
sys/dev/usb/ehci.c
1388
ehci_childdet(device_t self, device_t child)
sys/dev/usb/ehci.c
1390
struct ehci_softc *sc = device_private(self);
sys/dev/usb/ehci.c
1449
ehci_activate(device_t self, enum devact act)
sys/dev/usb/ehci.c
1451
struct ehci_softc *sc = device_private(self);
sys/dev/usb/ehci.c
1583
ehci_shutdown(device_t self, int flags)
sys/dev/usb/ehci.c
1585
ehci_softc_t *sc = device_private(self);
sys/dev/usb/emdtv.c
155
emdtv_detach(device_t self, int flags)
sys/dev/usb/emdtv.c
157
struct emdtv_softc *sc = device_private(self);
sys/dev/usb/emdtv.c
163
error = config_detach_children(self, flags);
sys/dev/usb/emdtv.c
185
emdtv_activate(device_t self, enum devact act)
sys/dev/usb/emdtv.c
187
struct emdtv_softc *sc = device_private(self);
sys/dev/usb/emdtv.c
199
emdtv_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/usb/emdtv.c
201
struct emdtv_softc *sc = device_private(self);
sys/dev/usb/emdtv.c
209
emdtv_childdet(device_t self, device_t child)
sys/dev/usb/emdtv.c
211
struct emdtv_softc *sc = device_private(self);
sys/dev/usb/emdtv.c
81
emdtv_attach(device_t parent, device_t self, void *opaque)
sys/dev/usb/emdtv.c
83
struct emdtv_softc *sc = device_private(self);
sys/dev/usb/emdtv.c
94
sc->sc_dev = self;
sys/dev/usb/if_athn_usb.c
245
athn_usb_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_athn_usb.c
253
usc = device_private(self);
sys/dev/usb/if_athn_usb.c
256
sc->sc_dev = self;
sys/dev/usb/if_athn_usb.c
331
config_mountroot(self, athn_usb_attachhook);
sys/dev/usb/if_athn_usb.c
334
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/if_athn_usb.c
335
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/if_athn_usb.c
481
athn_usb_detach(device_t self, int flags)
sys/dev/usb/if_athn_usb.c
483
struct athn_usb_softc *usc = device_private(self);
sys/dev/usb/if_athn_usb.c
492
pmf_device_deregister(self);
sys/dev/usb/if_athn_usb.c
560
athn_usb_activate(device_t self, enum devact act)
sys/dev/usb/if_athn_usb.c
562
struct athn_usb_softc *usc = device_private(self);
sys/dev/usb/if_atu.c
1231
atu_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_atu.c
1233
struct atu_softc *sc = device_private(self);
sys/dev/usb/if_atu.c
1241
sc->atu_dev = self;
sys/dev/usb/if_atu.c
1248
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_atu.c
1253
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_atu.c
1260
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/if_atu.c
1264
sc->atu_unit = device_unit(self);
sys/dev/usb/if_atu.c
1467
atu_detach(device_t self, int flags)
sys/dev/usb/if_atu.c
1469
struct atu_softc *sc = device_private(self);
sys/dev/usb/if_atu.c
1486
atu_activate(device_t self, enum devact act)
sys/dev/usb/if_atu.c
1488
struct atu_softc *sc = device_private(self);
sys/dev/usb/if_aue.c
764
aue_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_aue.c
767
struct aue_softc * const sc = device_private(self);
sys/dev/usb/if_aue.c
779
device_unit(self), (uintptr_t)sc, 0, 0);
sys/dev/usb/if_aue.c
786
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_aue.c
789
un->un_dev = self;
sys/dev/usb/if_aue.c
807
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_aue.c
814
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/if_aue.c
826
aprint_error_dev(self,
sys/dev/usb/if_aue.c
845
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/if_axe.c
845
axe_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_axe.c
849
struct axe_softc *sc = device_private(self);
sys/dev/usb/if_axe.c
865
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_axe.c
868
un->un_dev = self;
sys/dev/usb/if_axe.c
879
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_axe.c
888
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/if_axe.c
910
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/if_axe.c
932
aprint_error_dev(self, "failed to read phyaddrs\n");
sys/dev/usb/if_axe.c
961
aprint_error_dev(self, "failed to read ipg\n");
sys/dev/usb/if_axen.c
573
axen_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_axen.c
576
struct usbnet * const un = device_private(self);
sys/dev/usb/if_axen.c
588
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_axen.c
591
un->un_dev = self;
sys/dev/usb/if_axen.c
602
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_axen.c
616
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/if_axen.c
640
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/if_axen.c
661
DPRINTF(("%s: phyno %d\n", device_xname(self), un->un_phyno));
sys/dev/usb/if_axen.c
685
aprint_normal_dev(self, "AX88178a\n");
sys/dev/usb/if_axen.c
687
aprint_normal_dev(self, "AX88179\n");
sys/dev/usb/if_axen.c
689
aprint_normal_dev(self, "AX88179A\n");
sys/dev/usb/if_axen.c
691
aprint_normal_dev(self, "(unknown)\n");
sys/dev/usb/if_bwfm_usb.c
260
bwfm_usb_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_bwfm_usb.c
262
struct bwfm_usb_softc *sc = device_private(self);
sys/dev/usb/if_bwfm_usb.c
270
sc->sc_sc.sc_dev = self;
sys/dev/usb/if_bwfm_usb.c
282
aprint_error_dev(self, "failed to set configuration\n");
sys/dev/usb/if_bwfm_usb.c
286
aprint_error_dev(self, "failed to get interface handle\n");
sys/dev/usb/if_bwfm_usb.c
330
config_mountroot(self, bwfm_usb_attachhook);
sys/dev/usb/if_bwfm_usb.c
334
bwfm_usb_attachhook(device_t self)
sys/dev/usb/if_bwfm_usb.c
336
struct bwfm_usb_softc *sc = device_private(self);
sys/dev/usb/if_bwfm_usb.c
625
bwfm_usb_detach(device_t self, int flags)
sys/dev/usb/if_bwfm_usb.c
627
struct bwfm_usb_softc *sc = device_private(self);
sys/dev/usb/if_cdce.c
113
cdce_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_cdce.c
115
struct usbnet * const un = device_private(self);
sys/dev/usb/if_cdce.c
132
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_cdce.c
135
un->un_dev = self;
sys/dev/usb/if_cdce.c
157
aprint_error_dev(self, "no union descriptor\n");
sys/dev/usb/if_cdce.c
175
aprint_error_dev(self, "no data interface\n");
sys/dev/usb/if_cdce.c
213
aprint_error_dev(self,
sys/dev/usb/if_cdce.c
228
aprint_error_dev(self, "unexpected endpoint\n");
sys/dev/usb/if_cdce.c
237
aprint_error_dev(self, "could not find data bulk in\n");
sys/dev/usb/if_cdce.c
241
aprint_error_dev(self, "could not find data bulk out\n");
sys/dev/usb/if_cdce.c
250
aprint_normal_dev(self, "faking address\n");
sys/dev/usb/if_cue.c
458
cue_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_cue.c
460
struct cue_softc *sc = device_private(self);
sys/dev/usb/if_cue.c
477
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_cue.c
482
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_cue.c
487
un->un_dev = self;
sys/dev/usb/if_cue.c
500
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/if_cue.c
510
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/if_gscan.c
604
gscan_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_gscan.c
607
struct gscan_softc *sc = device_private(self);
sys/dev/usb/if_gscan.c
622
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_gscan.c
625
sc->sc_dev = self;
sys/dev/usb/if_gscan.c
630
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_gscan.c
637
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/if_gscan.c
643
aprint_error_dev(self, "%d endpoints < 2\n", id->bNumEndpoints);
sys/dev/usb/if_gscan.c
652
aprint_error_dev(self, "SET_HOST_FORMAT: %s\n",
sys/dev/usb/if_gscan.c
660
aprint_error_dev(self, "GET_DEVICE_CONFIG: %s\n",
sys/dev/usb/if_gscan.c
664
aprint_normal_dev(self, "%d port%s, sw version %d, hw version %d\n",
sys/dev/usb/if_gscan.c
671
aprint_error_dev(self, "GET_BT_CONST: %s\n",
sys/dev/usb/if_gscan.c
675
aprint_debug_dev(self, "feat 0x%x clk %dHz tseg1 %d -> %d tseg2 %d -> %d max swj %d brp %d -> %d/%d\n",
sys/dev/usb/if_gscan.c
713
aprint_error_dev(self, "couldn't get ep 1\n");
sys/dev/usb/if_gscan.c
720
aprint_error_dev(self,
sys/dev/usb/if_gscan.c
728
aprint_error_dev(self, "couldn't get ep 2\n");
sys/dev/usb/if_gscan.c
735
aprint_error_dev(self,
sys/dev/usb/if_gscan.c
748
strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/usb/if_gscan.c
763
rnd_attach_source(&sc->sc_rnd_source, device_xname(self),
sys/dev/usb/if_gscan.c
775
gscan_detach(device_t self, int flags)
sys/dev/usb/if_gscan.c
778
struct gscan_softc * const sc = device_private(self);
sys/dev/usb/if_gscan.c
816
gscan_activate(device_t self, devact_t act)
sys/dev/usb/if_gscan.c
819
struct gscan_softc * const sc = device_private(self);
sys/dev/usb/if_kue.c
413
kue_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_kue.c
415
struct kue_softc *sc = device_private(self);
sys/dev/usb/if_kue.c
432
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_kue.c
435
un->un_dev = self;
sys/dev/usb/if_kue.c
448
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_kue.c
455
aprint_error_dev(self, "loading firmware failed\n");
sys/dev/usb/if_kue.c
461
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/if_kue.c
471
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/if_kue.c
492
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/if_kue.c
503
aprint_error_dev(self, "could not read Ethernet descriptor\n");
sys/dev/usb/if_kue.c
516
kue_detach(device_t self, int flags)
sys/dev/usb/if_kue.c
518
struct kue_softc *sc = device_private(self);
sys/dev/usb/if_kue.c
526
return usbnet_detach(self, flags);
sys/dev/usb/if_mos.c
569
mos_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_mos.c
572
struct usbnet * un = device_private(self);
sys/dev/usb/if_mos.c
584
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_mos.c
587
un->un_dev = self;
sys/dev/usb/if_mos.c
599
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_mos.c
606
aprint_error_dev(self, "failed getting interface handle"
sys/dev/usb/if_mos.c
619
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/if_mos.c
635
aprint_normal_dev(self, "MCS7730\n");
sys/dev/usb/if_mos.c
637
aprint_normal_dev(self, "MCS7830\n");
sys/dev/usb/if_mos.c
639
aprint_normal_dev(self, "MCS7832\n");
sys/dev/usb/if_mos.c
651
aprint_error_dev(self, "couldn't read MAC address\n");
sys/dev/usb/if_mue.c
761
mue_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_mue.c
764
struct usbnet * const un = device_private(self);
sys/dev/usb/if_mue.c
780
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_mue.c
783
un->un_dev = self;
sys/dev/usb/if_mue.c
793
aprint_error_dev(self, "failed to set configuration: %s\n",
sys/dev/usb/if_mue.c
801
aprint_error_dev(self, "failed to get interface handle: %s\n",
sys/dev/usb/if_mue.c
830
aprint_error_dev(self, "failed to get ep %hhd\n", i);
sys/dev/usb/if_mue.c
847
aprint_error_dev(self, "failed to find endpoints\n");
sys/dev/usb/if_mue.c
857
aprint_error_dev(self, "failed to initialize chip\n");
sys/dev/usb/if_mue.c
864
aprint_normal_dev(self, "%s id %#x rev %#x\n", descr,
sys/dev/usb/if_mue.c
869
aprint_error_dev(self, "failed to read MAC address\n");
sys/dev/usb/if_ncm.c
111
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_ncm.c
114
un->un_dev = self;
sys/dev/usb/if_ncm.c
125
aprint_error_dev(self, "no union descriptor\n");
sys/dev/usb/if_ncm.c
142
aprint_error_dev(self, "no data interface\n");
sys/dev/usb/if_ncm.c
180
aprint_error_dev(self,
sys/dev/usb/if_ncm.c
195
aprint_error_dev(self, "unexpected endpoint\n");
sys/dev/usb/if_ncm.c
204
aprint_error_dev(self, "could not find data bulk in\n");
sys/dev/usb/if_ncm.c
208
aprint_error_dev(self, "could not find data bulk out\n");
sys/dev/usb/if_ncm.c
217
aprint_normal_dev(self, "faking address\n");
sys/dev/usb/if_ncm.c
89
ncm_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_ncm.c
91
struct ncm_softc *sc = device_private(self);
sys/dev/usb/if_otus.c
611
otus_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_otus.c
618
sc = device_private(self);
sys/dev/usb/if_otus.c
622
sc->sc_dev = self;
sys/dev/usb/if_otus.c
672
config_mountroot(self, otus_attachhook);
sys/dev/usb/if_otus.c
690
otus_detach(device_t self, int flags)
sys/dev/usb/if_otus.c
696
sc = device_private(self);
sys/dev/usb/if_otus.c
734
otus_activate(device_t self, devact_t act)
sys/dev/usb/if_otus.c
738
sc = device_private(self);
sys/dev/usb/if_rum.c
2282
rum_activate(device_t self, enum devact act)
sys/dev/usb/if_rum.c
296
rum_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_rum.c
298
struct rum_softc *sc = device_private(self);
sys/dev/usb/if_rum.c
309
sc->sc_dev = self;
sys/dev/usb/if_rum.c
317
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_rum.c
322
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_rum.c
331
aprint_error_dev(self, "could not get interface handle\n");
sys/dev/usb/if_rum.c
344
aprint_error_dev(self,
sys/dev/usb/if_rum.c
357
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/if_rum.c
375
aprint_error_dev(self, "timeout waiting for chip to settle\n");
sys/dev/usb/if_rum.c
382
aprint_normal_dev(self,
sys/dev/usb/if_rum.c
481
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/if_rum.c
482
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/if_rum.c
488
rum_detach(device_t self, int flags)
sys/dev/usb/if_rum.c
490
struct rum_softc *sc = device_private(self);
sys/dev/usb/if_rum.c
498
pmf_device_deregister(self);
sys/dev/usb/if_run.c
563
run_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_run.c
565
struct run_softc *sc = device_private(self);
sys/dev/usb/if_run.c
578
sc->sc_dev = self;
sys/dev/usb/if_run.c
771
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/if_run.c
772
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/if_run.c
776
run_detach(device_t self, int flags)
sys/dev/usb/if_run.c
778
struct run_softc *sc = device_private(self);
sys/dev/usb/if_run.c
786
pmf_device_deregister(self);
sys/dev/usb/if_run.c
819
run_activate(device_t self, enum devact act)
sys/dev/usb/if_run.c
821
struct run_softc *sc = device_private(self);
sys/dev/usb/if_smsc.c
757
smsc_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_smsc.c
760
struct smsc_softc * const sc = device_private(self);
sys/dev/usb/if_smsc.c
776
un->un_dev = self;
sys/dev/usb/if_smsc.c
786
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_smsc.c
791
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_smsc.c
799
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/if_smsc.c
817
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/if_smsc.c
859
if (! ether_getaddr(self, un->un_eaddr)) {
sys/dev/usb/if_udav.c
155
udav_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_udav.c
159
struct usbnet * const un = device_private(self);
sys/dev/usb/if_udav.c
172
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_udav.c
175
un->un_dev = self;
sys/dev/usb/if_udav.c
189
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_udav.c
197
aprint_error_dev(self, "failed to get interface, err=%s\n",
sys/dev/usb/if_udav.c
215
aprint_error_dev(self, "couldn't get endpoint %d\n", i);
sys/dev/usb/if_udav.c
232
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/if_udav.c
247
aprint_error_dev(self, "read MAC address failed\n");
sys/dev/usb/if_umb.c
292
umb_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_umb.c
294
struct umb_softc *sc = device_private(self);
sys/dev/usb/if_umb.c
316
sc->sc_dev = self;
sys/dev/usb/if_umb.c
323
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_umb.c
395
aprint_error_dev(self, "missing MBIM descriptor\n");
sys/dev/usb/if_umb.c
399
aprint_normal_dev(self, "version %d.%d\n", sc->sc_ver_maj,
sys/dev/usb/if_umb.c
414
aprint_error_dev(self, "no data interface found\n");
sys/dev/usb/if_umb.c
439
aprint_error_dev(self, "missing interrupt endpoint\n");
sys/dev/usb/if_umb.c
461
aprint_error_dev(self, "missing alt setting for interface #%d\n",
sys/dev/usb/if_umb.c
467
aprint_error_dev(self, "select alt setting %d for interface #%d "
sys/dev/usb/if_umb.c
486
aprint_error_dev(self, "missing bulk endpoints\n");
sys/dev/usb/if_umb.c
505
aprint_error_dev(self, "failed to open control pipe\n");
sys/dev/usb/if_umb.c
565
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/if_umb.c
566
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/if_umb.c
576
umb_detach(device_t self, int flags)
sys/dev/usb/if_umb.c
578
struct umb_softc *sc = device_private(self);
sys/dev/usb/if_umb.c
582
pmf_device_deregister(self);
sys/dev/usb/if_umb.c
624
umb_activate(device_t self, enum devact act)
sys/dev/usb/if_umb.c
626
struct umb_softc *sc = device_private(self);
sys/dev/usb/if_upgt.c
224
upgt_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_upgt.c
226
struct upgt_softc *sc = device_private(self);
sys/dev/usb/if_upgt.c
240
sc->sc_dev = self;
sys/dev/usb/if_upgt.c
343
config_mountroot(self, upgt_attach_hook);
sys/dev/usb/if_upgt.c
498
upgt_detach(device_t self, int flags)
sys/dev/usb/if_upgt.c
500
struct upgt_softc *sc = device_private(self);
sys/dev/usb/if_upgt.c
564
upgt_activate(device_t self, devact_t act)
sys/dev/usb/if_upgt.c
566
struct upgt_softc *sc = device_private(self);
sys/dev/usb/if_upl.c
141
upl_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_upl.c
143
struct usbnet * const un = device_private(self);
sys/dev/usb/if_upl.c
157
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_upl.c
160
un->un_dev = self;
sys/dev/usb/if_upl.c
173
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_upl.c
180
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/if_upl.c
190
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/if_upl.c
204
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/if_ural.c
2273
ural_activate(device_t self, enum devact act)
sys/dev/usb/if_ural.c
2275
struct ural_softc *sc = device_private(self);
sys/dev/usb/if_ural.c
356
ural_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_ural.c
358
struct ural_softc *sc = device_private(self);
sys/dev/usb/if_ural.c
368
sc->sc_dev = self;
sys/dev/usb/if_ural.c
376
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_ural.c
381
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_ural.c
390
aprint_error_dev(self, "could not get interface handle\n");
sys/dev/usb/if_ural.c
403
aprint_error_dev(self,
sys/dev/usb/if_ural.c
416
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/if_ural.c
432
aprint_normal_dev(self, "MAC/BBP RT2570 (rev 0x%02x), RF %s\n",
sys/dev/usb/if_ural.c
525
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/if_ural.c
526
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/if_ural.c
532
ural_detach(device_t self, int flags)
sys/dev/usb/if_ural.c
534
struct ural_softc *sc = device_private(self);
sys/dev/usb/if_ural.c
542
pmf_device_deregister(self);
sys/dev/usb/if_ure.c
795
ure_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_ure.c
798
struct usbnet * const un = device_private(self);
sys/dev/usb/if_ure.c
812
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_ure.c
818
un->un_dev = self;
sys/dev/usb/if_ure.c
837
aprint_error_dev(self, "failed to set configuration: %s\n",
sys/dev/usb/if_ure.c
845
aprint_error_dev(self, "failed to get interface handle: %s\n",
sys/dev/usb/if_ure.c
854
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/if_ure.c
895
aprint_normal_dev(self, "RTL%d %sver %04x\n",
sys/dev/usb/if_url.c
156
url_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_url.c
159
struct usbnet * const un = device_private(self);
sys/dev/usb/if_url.c
172
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_url.c
175
un->un_dev = self;
sys/dev/usb/if_url.c
189
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_url.c
197
aprint_error_dev(self, "failed to get interface, err=%s\n",
sys/dev/usb/if_url.c
220
aprint_error_dev(self,
sys/dev/usb/if_url.c
238
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/if_url.c
252
aprint_error_dev(self, "read MAC address failed\n");
sys/dev/usb/if_urndis.c
923
urndis_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_urndis.c
925
struct urndis_softc *sc = device_private(self);
sys/dev/usb/if_urndis.c
949
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_urndis.c
952
un->un_dev = self;
sys/dev/usb/if_urtw.c
603
urtw_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_urtw.c
605
struct urtw_softc *sc = device_private(self);
sys/dev/usb/if_urtw.c
614
sc->sc_dev = self;
sys/dev/usb/if_urtw.c
735
memcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
sys/dev/usb/if_urtw.c
774
urtw_detach(device_t self, int flags)
sys/dev/usb/if_urtw.c
776
struct urtw_softc *sc = device_private(self);
sys/dev/usb/if_urtw.c
813
urtw_activate(device_t self, enum devact act)
sys/dev/usb/if_urtw.c
815
struct urtw_softc *sc = device_private(self);
sys/dev/usb/if_urtwn.c
372
urtwn_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_urtwn.c
374
struct urtwn_softc *sc = device_private(self);
sys/dev/usb/if_urtwn.c
386
sc->sc_dev = self;
sys/dev/usb/if_urtwn.c
400
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_urtwn.c
430
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/if_urtwn.c
438
aprint_error_dev(self, "could not get interface handle\n");
sys/dev/usb/if_urtwn.c
444
aprint_error_dev(self, "unsupported test chip\n");
sys/dev/usb/if_urtwn.c
466
aprint_normal_dev(self, "MAC/BB RTL%s, RF 6052 %zdT%zdR, address %s\n",
sys/dev/usb/if_urtwn.c
480
aprint_normal_dev(self, "%d rx pipe%s, %d tx pipe%s\n",
sys/dev/usb/if_urtwn.c
560
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/if_urtwn.c
561
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/if_urtwn.c
568
aprint_error_dev(self, "attach failed\n");
sys/dev/usb/if_urtwn.c
572
urtwn_detach(device_t self, int flags)
sys/dev/usb/if_urtwn.c
574
struct urtwn_softc *sc = device_private(self);
sys/dev/usb/if_urtwn.c
580
pmf_device_deregister(self);
sys/dev/usb/if_urtwn.c
625
urtwn_activate(device_t self, enum devact act)
sys/dev/usb/if_urtwn.c
627
struct urtwn_softc *sc = device_private(self);
sys/dev/usb/if_zyd.c
251
zyd_attachhook(device_t self)
sys/dev/usb/if_zyd.c
253
struct zyd_softc *sc = device_private(self);
sys/dev/usb/if_zyd.c
2661
zyd_activate(device_t self, enum devact act)
sys/dev/usb/if_zyd.c
2663
struct zyd_softc *sc = device_private(self);
sys/dev/usb/if_zyd.c
300
zyd_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/if_zyd.c
302
struct zyd_softc *sc = device_private(self);
sys/dev/usb/if_zyd.c
308
sc->sc_dev = self;
sys/dev/usb/if_zyd.c
315
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/if_zyd.c
322
aprint_error_dev(self, "device version mismatch: %#x "
sys/dev/usb/if_zyd.c
342
config_mountroot(self, zyd_attachhook);
sys/dev/usb/if_zyd.c
461
zyd_detach(device_t self, int flags)
sys/dev/usb/if_zyd.c
463
struct zyd_softc *sc = device_private(self);
sys/dev/usb/irmce.c
144
irmce_attach(device_t parent, device_t self, void *opaque)
sys/dev/usb/irmce.c
146
struct irmce_softc *sc = device_private(self);
sys/dev/usb/irmce.c
153
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/irmce.c
154
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/irmce.c
162
sc->sc_dev = self;
sys/dev/usb/irmce.c
174
aprint_error_dev(self,
sys/dev/usb/irmce.c
199
aprint_debug_dev(self, "in 0x%02x/%d out 0x%02x/%d\n",
sys/dev/usb/irmce.c
204
aprint_error_dev(self, "bad maxpktsize\n");
sys/dev/usb/irmce.c
242
irmce_rescan(self, NULL, NULL);
sys/dev/usb/irmce.c
253
irmce_detach(device_t self, int flags)
sys/dev/usb/irmce.c
255
struct irmce_softc *sc = device_private(self);
sys/dev/usb/irmce.c
258
error = config_detach_children(self, flags);
sys/dev/usb/irmce.c
287
pmf_device_deregister(self);
sys/dev/usb/irmce.c
293
irmce_activate(device_t self, enum devact act)
sys/dev/usb/irmce.c
299
irmce_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/usb/irmce.c
301
struct irmce_softc *sc = device_private(self);
sys/dev/usb/irmce.c
309
config_found(self, &iaa, irmce_print, CFARGS_NONE);
sys/dev/usb/irmce.c
325
irmce_childdet(device_t self, device_t child)
sys/dev/usb/irmce.c
327
struct irmce_softc *sc = device_private(self);
sys/dev/usb/ohci.c
1160
ohci_shutdown(device_t self, int flags)
sys/dev/usb/ohci.c
1162
ohci_softc_t *sc = device_private(self);
sys/dev/usb/ohci.c
349
ohci_activate(device_t self, enum devact act)
sys/dev/usb/ohci.c
351
struct ohci_softc *sc = device_private(self);
sys/dev/usb/ohci.c
363
ohci_childdet(device_t self, device_t child)
sys/dev/usb/ohci.c
365
struct ohci_softc *sc = device_private(self);
sys/dev/usb/pseye.c
187
pseye_attach(device_t parent, device_t self, void *opaque)
sys/dev/usb/pseye.c
189
struct pseye_softc *sc = device_private(self);
sys/dev/usb/pseye.c
201
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/pseye.c
204
sc->sc_dev = self;
sys/dev/usb/pseye.c
212
cv_init(&sc->sc_cv, device_xname(self));
sys/dev/usb/pseye.c
217
aprint_error_dev(self, "failed to get interface descriptor\n");
sys/dev/usb/pseye.c
225
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/pseye.c
238
aprint_error_dev(self, "no bulk-in endpoint found\n");
sys/dev/usb/pseye.c
247
aprint_error_dev(self, "couldn't open pipes\n");
sys/dev/usb/pseye.c
254
aprint_error_dev(self, "couldn't create transfer\n");
sys/dev/usb/pseye.c
263
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/pseye.c
264
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/pseye.c
266
sc->sc_videodev = video_attach_mi(&pseye_hw_if, self, sc);
sys/dev/usb/pseye.c
268
aprint_error_dev(self, "couldn't attach video layer\n");
sys/dev/usb/pseye.c
273
usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, self);
sys/dev/usb/pseye.c
278
pseye_detach(device_t self, int flags)
sys/dev/usb/pseye.c
280
struct pseye_softc *sc = device_private(self);
sys/dev/usb/pseye.c
284
pmf_device_deregister(self);
sys/dev/usb/pseye.c
321
pseye_activate(device_t self, enum devact act)
sys/dev/usb/pseye.c
323
struct pseye_softc *sc = device_private(self);
sys/dev/usb/pseye.c
335
pseye_childdet(device_t self, device_t child)
sys/dev/usb/pseye.c
337
struct pseye_softc *sc = device_private(self);
sys/dev/usb/slurm.c
121
slurm_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/slurm.c
123
struct slurm_softc * const sc = device_private(self);
sys/dev/usb/slurm.c
126
sc->sc_dev = self;
sys/dev/usb/slurm.c
140
device_printf(self, "%02x -> %04x\n", i, val);
sys/dev/usb/slurm.c
145
radio_attach_mi(&slurm_radio, sc, self);
sys/dev/usb/slurm.c
149
slurm_detach(device_t self, int flags)
sys/dev/usb/slurm.c
151
struct slurm_softc * const sc = device_private(self);
sys/dev/usb/slurm.c
154
if ((rv = config_detach_children(self, flags)) != 0)
sys/dev/usb/stuirda.c
127
stuirda_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/stuirda.c
129
struct stuirda_softc *sc = device_private(self);
sys/dev/usb/stuirda.c
135
uirda_attach(parent,self,aux);
sys/dev/usb/u3g.c
347
u3g_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/u3g.c
349
struct u3g_softc *sc = device_private(self);
sys/dev/usb/u3g.c
362
sc->sc_dev = self;
sys/dev/usb/u3g.c
388
aprint_error_dev(self, "no endpoint descriptor "
sys/dev/usb/u3g.c
410
aprint_error_dev(self, "Need to configure "
sys/dev/usb/u3g.c
420
com->c_dev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/u3g.c
428
aprint_error_dev(self, "Missing bulk in/out for interface %d\n",
sys/dev/usb/u3g.c
446
aprint_error_dev(self, "cannot open interrupt pipe "
sys/dev/usb/u3g.c
455
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/u3g.c
456
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/u3g.c
460
u3g_detach(device_t self, int flags)
sys/dev/usb/u3g.c
462
struct u3g_softc *sc = device_private(self);
sys/dev/usb/u3g.c
483
aprint_verbose_dev(self, "Can't deallocate "
sys/dev/usb/u3g.c
490
pmf_device_deregister(self);
sys/dev/usb/u3g.c
496
u3g_childdet(device_t self, device_t child)
sys/dev/usb/u3g.c
498
struct u3g_softc *sc = device_private(self);
sys/dev/usb/ualea.c
102
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/ualea.c
106
sc->sc_dev = self;
sys/dev/usb/ualea.c
142
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/ualea.c
149
rnd_attach_source(&sc->sc_rnd, device_xname(self), RND_TYPE_RNG,
sys/dev/usb/ualea.c
154
ualea_detach(device_t self, int flags)
sys/dev/usb/ualea.c
156
struct ualea_softc *sc = device_private(self);
sys/dev/usb/ualea.c
90
ualea_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ualea.c
93
struct ualea_softc *sc = device_private(self);
sys/dev/usb/uark.c
116
uark_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uark.c
118
struct uark_softc *sc = device_private(self);
sys/dev/usb/uark.c
129
sc->sc_dev = self;
sys/dev/usb/uark.c
134
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uark.c
141
aprint_error_dev(self, "could not set configuration no\n");
sys/dev/usb/uark.c
150
aprint_error_dev(self, "could not get interface handle\n");
sys/dev/usb/uark.c
161
aprint_error_dev(self,
sys/dev/usb/uark.c
176
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/uark.c
193
sc->sc_subdev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/uark.c
200
uark_detach(device_t self, int flags)
sys/dev/usb/uark.c
202
struct uark_softc *sc = device_private(self);
sys/dev/usb/uatp.c
1170
uatp_childdet(device_t self, device_t child)
sys/dev/usb/uatp.c
1172
struct uatp_softc *sc = device_private(self);
sys/dev/usb/uatp.c
1183
uatp_detach(device_t self, int flags)
sys/dev/usb/uatp.c
1185
struct uatp_softc *sc = device_private(self);
sys/dev/usb/uatp.c
1190
error = config_detach_children(self, flags);
sys/dev/usb/uatp.c
1199
pmf_device_deregister(self);
sys/dev/usb/uatp.c
1210
uatp_activate(device_t self, enum devact act)
sys/dev/usb/uatp.c
1212
struct uatp_softc *sc = device_private(self);
sys/dev/usb/uatp.c
927
uatp_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uatp.c
929
struct uatp_softc *sc = device_private(self);
sys/dev/usb/uatp.c
936
sc->sc_dev = self;
sys/dev/usb/uatp.c
945
aprint_verbose_dev(self,
sys/dev/usb/uatp.c
964
aprint_verbose_dev(self,
sys/dev/usb/uatp.c
968
aprint_verbose_dev(self,
sys/dev/usb/uatp.c
976
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uatp.c
977
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uatp.c
989
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/dev/usb/uaudio.c
449
uaudio_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uaudio.c
451
struct uaudio_softc *sc = device_private(self);
sys/dev/usb/uaudio.c
459
sc->sc_dev = self;
sys/dev/usb/uaudio.c
473
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uaudio.c
478
aprint_error_dev(self,
sys/dev/usb/uaudio.c
485
aprint_error_dev(self,
sys/dev/usb/uaudio.c
512
aprint_error_dev(self,
sys/dev/usb/uaudio.c
518
aprint_normal_dev(self, "audio rev %d.%02x\n",
sys/dev/usb/uaudio.c
550
aprint_normal_dev(self, "%d mixer controls\n",
sys/dev/usb/uaudio.c
558
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uaudio.c
559
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uaudio.c
565
uaudio_activate(device_t self, enum devact act)
sys/dev/usb/uaudio.c
567
struct uaudio_softc *sc = device_private(self);
sys/dev/usb/uaudio.c
579
uaudio_childdet(device_t self, device_t child)
sys/dev/usb/uaudio.c
581
struct uaudio_softc *sc = device_private(self);
sys/dev/usb/uaudio.c
588
uaudio_detach(device_t self, int flags)
sys/dev/usb/uaudio.c
590
struct uaudio_softc *sc = device_private(self);
sys/dev/usb/uaudio.c
595
pmf_device_deregister(self);
sys/dev/usb/uberry.c
162
uberry_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uberry.c
164
struct uberry_softc *sc = device_private(self);
sys/dev/usb/uberry.c
171
sc->sc_dev = self;
sys/dev/usb/uberry.c
178
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uberry.c
187
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uberry.c
188
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uberry.c
195
uberry_detach(device_t self, int flags)
sys/dev/usb/uberry.c
197
struct uberry_softc *sc = device_private(self);
sys/dev/usb/uberry.c
200
pmf_device_deregister(self);
sys/dev/usb/ubsa.c
151
ubsa_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ubsa.c
153
struct ubsa_softc *sc = device_private(self);
sys/dev/usb/ubsa.c
164
sc->sc_dev = self;
sys/dev/usb/ubsa.c
171
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/ubsa.c
196
aprint_error_dev(self,
sys/dev/usb/ubsa.c
206
aprint_error_dev(self,
sys/dev/usb/ubsa.c
232
aprint_error_dev(self,
sys/dev/usb/ubsa.c
253
aprint_error_dev(self, "Could not find interrupt in\n");
sys/dev/usb/ubsa.c
258
aprint_error_dev(self, "Could not find data bulk in\n");
sys/dev/usb/ubsa.c
263
aprint_error_dev(self, "Could not find data bulk out\n");
sys/dev/usb/ubsa.c
278
sc->sc_subdevs[0] = config_found(self, &ucaa, ucomprint,
sys/dev/usb/ubsa.c
292
ubsa_childdet(device_t self, device_t child)
sys/dev/usb/ubsa.c
295
struct ubsa_softc *sc = device_private(self);
sys/dev/usb/ubsa.c
306
ubsa_detach(device_t self, int flags)
sys/dev/usb/ubsa.c
308
struct ubsa_softc *sc = device_private(self);
sys/dev/usb/ubt.c
1112
ubt_disable(device_t self)
sys/dev/usb/ubt.c
1114
struct ubt_softc *sc = device_private(self);
sys/dev/usb/ubt.c
1130
ubt_xmit_cmd(device_t self, struct mbuf *m)
sys/dev/usb/ubt.c
1132
struct ubt_softc *sc = device_private(self);
sys/dev/usb/ubt.c
1239
ubt_xmit_acl(device_t self, struct mbuf *m)
sys/dev/usb/ubt.c
1241
struct ubt_softc *sc = device_private(self);
sys/dev/usb/ubt.c
1347
ubt_xmit_sco(device_t self, struct mbuf *m)
sys/dev/usb/ubt.c
1349
struct ubt_softc *sc = device_private(self);
sys/dev/usb/ubt.c
1841
ubt_stats(device_t self, struct bt_stats *dest, int flush)
sys/dev/usb/ubt.c
1843
struct ubt_softc *sc = device_private(self);
sys/dev/usb/ubt.c
479
ubt_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ubt.c
481
struct ubt_softc *sc = device_private(self);
sys/dev/usb/ubt.c
492
sc->sc_dev = self;
sys/dev/usb/ubt.c
503
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/ubt.c
511
aprint_error_dev(self,
sys/dev/usb/ubt.c
526
aprint_error_dev(self,
sys/dev/usb/ubt.c
545
aprint_error_dev(self,
sys/dev/usb/ubt.c
563
aprint_error_dev(self,
sys/dev/usb/ubt.c
569
aprint_error_dev(self,
sys/dev/usb/ubt.c
575
aprint_error_dev(self,
sys/dev/usb/ubt.c
592
aprint_error_dev(self,
sys/dev/usb/ubt.c
601
aprint_error_dev(self, "could not get config descriptor\n");
sys/dev/usb/ubt.c
611
aprint_error_dev(self, "ISOC config failed\n");
sys/dev/usb/ubt.c
671
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/ubt.c
672
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/ubt.c
678
ubt_detach(device_t self, int flags)
sys/dev/usb/ubt.c
680
struct ubt_softc *sc = device_private(self);
sys/dev/usb/ubt.c
685
pmf_device_deregister(self);
sys/dev/usb/ubt.c
725
ubt_activate(device_t self, enum devact act)
sys/dev/usb/ubt.c
727
struct ubt_softc *sc = device_private(self);
sys/dev/usb/ubt.c
984
ubt_enable(device_t self)
sys/dev/usb/ubt.c
986
struct ubt_softc *sc = device_private(self);
sys/dev/usb/uchcom.c
222
uchcom_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uchcom.c
224
struct uchcom_softc *sc = device_private(self);
sys/dev/usb/uchcom.c
235
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uchcom.c
238
sc->sc_dev = self;
sys/dev/usb/uchcom.c
274
sc->sc_subdev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/uchcom.c
285
uchcom_childdet(device_t self, device_t child)
sys/dev/usb/uchcom.c
287
struct uchcom_softc *sc = device_private(self);
sys/dev/usb/uchcom.c
294
uchcom_detach(device_t self, int flags)
sys/dev/usb/uchcom.c
296
struct uchcom_softc *sc = device_private(self);
sys/dev/usb/ucom.c
616
ucom_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ucom.c
618
struct ucom_softc *sc = device_private(self);
sys/dev/usb/ucom.c
627
prop_dictionary_set_int32(device_properties(self), "port",
sys/dev/usb/ucom.c
630
sc->sc_dev = self;
sys/dev/usb/ucom.c
724
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/ucom.c
725
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/ucom.c
755
aprint_error_dev(self, "attach failed, error=%d\n", error);
sys/dev/usb/ucom.c
778
ucom_detach(device_t self, int flags)
sys/dev/usb/ucom.c
780
struct ucom_softc *sc = device_private(self);
sys/dev/usb/ucom.c
804
pmf_device_deregister(self);
sys/dev/usb/ucom.c
818
mn = device_unit(self);
sys/dev/usb/ucycom.c
219
ucycom_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ucycom.c
221
struct ucycom_softc *sc = device_private(self);
sys/dev/usb/ucycom.c
226
sc->sc_dev = self;
sys/dev/usb/ucycom.c
262
ucycom_detach(device_t self, int flags)
sys/dev/usb/ucycom.c
264
struct ucycom_softc *sc = device_private(self);
sys/dev/usb/ucycom.c
289
mn = device_unit(self);
sys/dev/usb/ucycom.c
310
ucycom_activate(device_t self, enum devact act)
sys/dev/usb/ucycom.c
312
struct ucycom_softc *sc = device_private(self);
sys/dev/usb/udl.c
360
udl_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/udl.c
362
struct udl_softc *sc = device_private(self);
sys/dev/usb/udl.c
372
sc->sc_dev = self;
sys/dev/usb/udl.c
385
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/udl.c
494
udl_detach(device_t self, int flags)
sys/dev/usb/udl.c
496
struct udl_softc *sc = device_private(self);
sys/dev/usb/udsbr.c
127
udsbr_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/udsbr.c
129
struct udsbr_softc *sc = device_private(self);
sys/dev/usb/udsbr.c
137
sc->sc_dev = self;
sys/dev/usb/udsbr.c
143
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/udsbr.c
148
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/udsbr.c
165
udsbr_childdet(device_t self, device_t child)
sys/dev/usb/udsbr.c
170
udsbr_detach(device_t self, int flags)
sys/dev/usb/udsbr.c
172
struct udsbr_softc *sc = device_private(self);
sys/dev/usb/udsbr.c
175
error = config_detach_children(self, flags);
sys/dev/usb/udsbr.c
187
udsbr_activate(device_t self, enum devact act)
sys/dev/usb/udsbr.c
189
struct udsbr_softc *sc = device_private(self);
sys/dev/usb/udsir.c
173
udsir_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/udsir.c
175
struct udsir_softc *sc = device_private(self);
sys/dev/usb/udsir.c
187
sc->sc_dev = self;
sys/dev/usb/udsir.c
193
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/udsir.c
207
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/udsir.c
221
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/udsir.c
233
sc->sc_child = config_found(self, &ia, ir_print, CFARGS_NONE);
sys/dev/usb/udsir.c
241
udsir_detach(device_t self, int flags)
sys/dev/usb/udsir.c
243
struct udsir_softc *sc = device_private(self);
sys/dev/usb/udsir.c
304
udsir_childdet(device_t self, device_t child)
sys/dev/usb/udsir.c
306
struct udsir_softc *sc = device_private(self);
sys/dev/usb/udsir.c
313
udsir_activate(device_t self, enum devact act)
sys/dev/usb/udsir.c
315
struct udsir_softc *sc = device_private(self);
sys/dev/usb/uep.c
132
uep_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uep.c
134
struct uep_softc *sc = device_private(self);
sys/dev/usb/uep.c
147
sc->sc_dev = self;
sys/dev/usb/uep.c
153
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uep.c
172
aprint_error_dev(self,
sys/dev/usb/uep.c
194
aprint_error_dev(self,
sys/dev/usb/uep.c
208
aprint_error_dev(self, "Could not find interrupt in\n");
sys/dev/usb/uep.c
226
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/dev/usb/uep.c
236
uep_detach(device_t self, int flags)
sys/dev/usb/uep.c
238
struct uep_softc *sc = device_private(self);
sys/dev/usb/uep.c
259
uep_childdet(device_t self, device_t child)
sys/dev/usb/uep.c
261
struct uep_softc *sc = device_private(self);
sys/dev/usb/uep.c
268
uep_activate(device_t self, enum devact act)
sys/dev/usb/uep.c
270
struct uep_softc *sc = device_private(self);
sys/dev/usb/uftdi.c
315
uftdi_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uftdi.c
317
struct uftdi_softc *sc = device_private(self);
sys/dev/usb/uftdi.c
334
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uftdi.c
337
sc->sc_dev = self;
sys/dev/usb/uftdi.c
393
aprint_error_dev(self,
sys/dev/usb/uftdi.c
417
aprint_error_dev(self, "unexpected endpoint\n");
sys/dev/usb/uftdi.c
422
aprint_error_dev(self, "Could not find data bulk in\n");
sys/dev/usb/uftdi.c
426
aprint_error_dev(self, "Could not find data bulk out\n");
sys/dev/usb/uftdi.c
446
sc->sc_subdev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/uftdi.c
451
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uftdi.c
452
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uftdi.c
463
uftdi_childdet(device_t self, device_t child)
sys/dev/usb/uftdi.c
465
struct uftdi_softc *sc = device_private(self);
sys/dev/usb/uftdi.c
472
uftdi_detach(device_t self, int flags)
sys/dev/usb/uftdi.c
474
struct uftdi_softc *sc = device_private(self);
sys/dev/usb/ugen.c
1227
ugen_activate(device_t self, enum devact act)
sys/dev/usb/ugen.c
1229
struct ugen_softc *sc = device_private(self);
sys/dev/usb/ugen.c
1241
ugen_detach(device_t self, int flags)
sys/dev/usb/ugen.c
1243
struct ugen_softc *sc = device_private(self);
sys/dev/usb/ugen.c
1266
pmf_device_deregister(self);
sys/dev/usb/ugen.c
385
ugen_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ugen.c
399
ugenif_attach(parent, self, &uiaa);
sys/dev/usb/ugen.c
403
ugenif_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ugen.c
405
struct ugen_softc *sc = device_private(self);
sys/dev/usb/ugen.c
419
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/ugen.c
422
sc->sc_dev = self;
sys/dev/usb/ugen.c
435
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/ugen.c
436
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/ugen.c
445
aprint_error_dev(self,
sys/dev/usb/ugen.c
457
aprint_error_dev(self, "setting configuration %d failed\n",
sys/dev/usb/ugensa.c
135
ugensa_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ugensa.c
137
struct ugensa_softc *sc = device_private(self);
sys/dev/usb/ugensa.c
144
const char *devname = device_xname(self);
sys/dev/usb/ugensa.c
151
sc->sc_dev = self;
sys/dev/usb/ugensa.c
159
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/ugensa.c
178
aprint_normal_dev(self, "WARNING: This device is marked as "
sys/dev/usb/ugensa.c
203
aprint_error_dev(self,
sys/dev/usb/ugensa.c
224
aprint_error_dev(self, "unexpected endpoint\n");
sys/dev/usb/ugensa.c
227
aprint_error_dev(self, "Could not find data bulk in\n");
sys/dev/usb/ugensa.c
231
aprint_error_dev(self, "Could not find data bulk out\n");
sys/dev/usb/ugensa.c
240
sc->sc_subdev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/ugensa.c
243
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/ugensa.c
244
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/ugensa.c
254
ugensa_childdet(device_t self, device_t child)
sys/dev/usb/ugensa.c
256
struct ugensa_softc *sc = device_private(self);
sys/dev/usb/ugensa.c
263
ugensa_detach(device_t self, int flags)
sys/dev/usb/ugensa.c
265
struct ugensa_softc *sc = device_private(self);
sys/dev/usb/ugensa.c
282
pmf_device_deregister(self);
sys/dev/usb/uhci.c
608
uhci_activate(device_t self, enum devact act)
sys/dev/usb/uhci.c
610
struct uhci_softc *sc = device_private(self);
sys/dev/usb/uhci.c
622
uhci_childdet(device_t self, device_t child)
sys/dev/usb/uhci.c
624
struct uhci_softc *sc = device_private(self);
sys/dev/usb/uhid.c
114
uhid_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uhid.c
116
struct uhid_usb_softc *usc = device_private(self);
sys/dev/usb/uhid.c
120
sc->sc_dev = self;
sys/dev/usb/uhid.c
131
uhid_detach(device_t self, int flags)
sys/dev/usb/uhid.c
133
struct uhid_usb_softc *usc = device_private(self);
sys/dev/usb/uhidev.c
176
uhidev_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uhidev.c
178
struct uhidev_softc *sc = device_private(self);
sys/dev/usb/uhidev.c
194
sc->sc_dev = self;
sys/dev/usb/uhidev.c
212
aprint_normal_dev(self, "%s, iclass %d/%d\n",
sys/dev/usb/uhidev.c
216
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uhidev.c
217
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uhidev.c
238
aprint_error_dev(self,
sys/dev/usb/uhidev.c
260
aprint_verbose_dev(self, "endpoint %d: ignored\n", i);
sys/dev/usb/uhidev.c
269
aprint_error_dev(self, "no input interrupt endpoint\n");
sys/dev/usb/uhidev.c
329
aprint_error_dev(self, "no report descriptor\n");
sys/dev/usb/uhidev.c
388
aprint_normal_dev(self, "%d report ids\n", nrepid);
sys/dev/usb/uhidev.c
427
dev = config_found(self, &uha, uhidevprint,
sys/dev/usb/uhidev.c
475
uhidev_childdet(device_t self, device_t child)
sys/dev/usb/uhidev.c
478
struct uhidev_softc *sc = device_private(self);
sys/dev/usb/uhidev.c
497
uhidev_detach(device_t self, int flags)
sys/dev/usb/uhidev.c
499
struct uhidev_softc *sc = device_private(self);
sys/dev/usb/uhidev.c
512
rv = config_detach_children(self, flags);
sys/dev/usb/uhidev.c
534
pmf_device_deregister(self);
sys/dev/usb/uhmodem.c
188
uhmodem_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uhmodem.c
190
struct ubsa_softc *sc = device_private(self);
sys/dev/usb/uhmodem.c
207
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uhmodem.c
210
sc->sc_dev = self;
sys/dev/usb/uhmodem.c
220
aprint_error_dev(self, "failed to change mode: %s\n",
sys/dev/usb/uhmodem.c
224
aprint_error_dev(self,
sys/dev/usb/uhmodem.c
246
aprint_error_dev(self, "failed to set configuration: %s\n",
sys/dev/usb/uhmodem.c
254
aprint_error_dev(self,
sys/dev/usb/uhmodem.c
285
aprint_error_dev(self,
sys/dev/usb/uhmodem.c
305
aprint_error_dev(self, "HUAWEI E220 need to re-attach "
sys/dev/usb/uhmodem.c
314
aprint_error_dev(self,
sys/dev/usb/uhmodem.c
320
aprint_error_dev(self,
sys/dev/usb/uhmodem.c
354
sc->sc_subdevs[i] = config_found(self, &ucaa, ucomprint,
sys/dev/usb/uhmodem.c
368
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uhmodem.c
369
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uhmodem.c
379
uhmodem_childdet(device_t self, device_t child)
sys/dev/usb/uhmodem.c
382
struct ubsa_softc *sc = device_private(self);
sys/dev/usb/uhmodem.c
393
uhmodem_detach(device_t self, int flags)
sys/dev/usb/uhmodem.c
395
struct ubsa_softc *sc = device_private(self);
sys/dev/usb/uhso.c
456
uhso_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uhso.c
458
struct uhso_softc *sc = device_private(self);
sys/dev/usb/uhso.c
465
DPRINTF(1, ": sc = %p, self=%p", sc, self);
sys/dev/usb/uhso.c
467
sc->sc_dev = self;
sys/dev/usb/uhso.c
474
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uhso.c
481
aprint_error_dev(self, "failed to set configuration"
sys/dev/usb/uhso.c
487
aprint_verbose_dev(self,
sys/dev/usb/uhso.c
490
aprint_error_dev(self, "modem switch failed\n");
sys/dev/usb/uhso.c
502
aprint_error_dev(self,
sys/dev/usb/uhso.c
510
aprint_error_dev(self,
sys/dev/usb/uhso.c
526
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uhso.c
527
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uhso.c
531
uhso_detach(device_t self, int flags)
sys/dev/usb/uhso.c
533
struct uhso_softc *sc = device_private(self);
sys/dev/usb/uhso.c
540
pmf_device_deregister(self);
sys/dev/usb/uhub.c
300
uhub_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uhub.c
302
struct uhub_softc *sc = device_private(self);
sys/dev/usb/uhub.c
318
config_pending_incr(self);
sys/dev/usb/uhub.c
320
sc->sc_dev = self;
sys/dev/usb/uhub.c
330
aprint_normal_dev(self, "%s transaction translator%s\n",
sys/dev/usb/uhub.c
343
aprint_error_dev(self,
sys/dev/usb/uhub.c
355
device_unit(self), err, 0, 0);
sys/dev/usb/uhub.c
362
aprint_verbose_dev(self, "%d port%s with %d removable, %s powered\n",
sys/dev/usb/uhub.c
367
aprint_debug_dev(self, "no ports, hub ignored\n");
sys/dev/usb/uhub.c
379
aprint_debug_dev(self, "setting hub depth %u\n",
sys/dev/usb/uhub.c
383
aprint_error_dev(self, "can't set depth\n");
sys/dev/usb/uhub.c
391
aprint_error_dev(self, "no interface handle\n");
sys/dev/usb/uhub.c
398
aprint_error_dev(self, "can't enable multiple TTs\n");
sys/dev/usb/uhub.c
403
aprint_error_dev(self, "no endpoint descriptor\n");
sys/dev/usb/uhub.c
407
aprint_error_dev(self, "bad interrupt endpoint\n");
sys/dev/usb/uhub.c
427
aprint_error_dev(self, "cannot open interrupt pipe\n");
sys/dev/usb/uhub.c
495
aprint_error_dev(self, "port %d power on failed, %s\n",
sys/dev/usb/uhub.c
497
DPRINTF("uhub%jd turn on port %jd power", device_unit(self),
sys/dev/usb/uhub.c
509
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uhub.c
510
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uhub.c
526
config_pending_decr(self);
sys/dev/usb/uhub.c
909
uhub_detach(device_t self, int flags)
sys/dev/usb/uhub.c
911
struct uhub_softc *sc = device_private(self);
sys/dev/usb/uhub.c
918
DPRINTF("uhub%jd flags=%jd", device_unit(self), flags, 0, 0);
sys/dev/usb/uhub.c
931
if ((rc = usb_disconnect_port(rup, self, flags)) != 0) {
sys/dev/usb/uhub.c
939
pmf_device_deregister(self);
sys/dev/usb/uhub.c
969
uhub_rescan(device_t self, const char *ifattr, const int *locators)
sys/dev/usb/uhub.c
971
struct uhub_softc *sc = device_private(self);
sys/dev/usb/uhub.c
990
uhub_childdet(device_t self, device_t child)
sys/dev/usb/uhub.c
992
struct uhub_softc *sc = device_private(self);
sys/dev/usb/uintuos.c
110
uintuos_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uintuos.c
112
struct uintuos_softc *sc = device_private(self);
sys/dev/usb/uintuos.c
120
sc->sc_hdev.sc_dev = self;
sys/dev/usb/uintuos.c
141
aprint_error_dev(self, "unsupported product\n");
sys/dev/usb/uintuos.c
146
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uintuos.c
147
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uintuos.c
152
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint);
sys/dev/usb/uintuos.c
163
uintuos_detach(device_t self, int flags)
sys/dev/usb/uintuos.c
165
struct uintuos_softc *sc = device_private(self);
sys/dev/usb/uintuos.c
173
pmf_device_deregister(self);
sys/dev/usb/uintuos.c
179
uintuos_childdet(device_t self, device_t child)
sys/dev/usb/uintuos.c
181
struct uintuos_softc *sc = device_private(self);
sys/dev/usb/uintuos.c
188
uintuos_activate(device_t self, enum devact act)
sys/dev/usb/uintuos.c
190
struct uintuos_softc *sc = device_private(self);
sys/dev/usb/uipad.c
136
uipad_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uipad.c
138
struct uipad_softc *sc = device_private(self);
sys/dev/usb/uipad.c
145
sc->sc_dev = self;
sys/dev/usb/uipad.c
152
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uipad.c
159
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uipad.c
160
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uipad.c
167
uipad_detach(device_t self, int flags)
sys/dev/usb/uipad.c
169
struct uipad_softc *sc = device_private(self);
sys/dev/usb/uipad.c
172
pmf_device_deregister(self);
sys/dev/usb/uipaq.c
150
uipaq_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uipaq.c
152
struct uipaq_softc *sc = device_private(self);
sys/dev/usb/uipaq.c
159
const char *devname = device_xname(self);
sys/dev/usb/uipaq.c
166
sc->sc_dev = self;
sys/dev/usb/uipaq.c
173
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uipaq.c
179
aprint_error_dev(self, "failed to set configuration, err=%s\n",
sys/dev/usb/uipaq.c
222
aprint_error_dev(self,
sys/dev/usb/uipaq.c
235
aprint_error_dev(self, "no proper endpoints found (%d,%d) \n",
sys/dev/usb/uipaq.c
240
sc->sc_subdev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/uipaq.c
379
uipaq_childdet(device_t self, device_t child)
sys/dev/usb/uipaq.c
381
struct uipaq_softc *sc = device_private(self);
sys/dev/usb/uipaq.c
388
uipaq_detach(device_t self, int flags)
sys/dev/usb/uipaq.c
390
struct uipaq_softc *sc = device_private(self);
sys/dev/usb/uirda.c
176
uirda_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uirda.c
178
struct uirda_softc *sc = device_private(self);
sys/dev/usb/uirda.c
192
sc->sc_dev = self;
sys/dev/usb/uirda.c
198
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uirda.c
219
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/uirda.c
231
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/uirda.c
242
aprint_error_dev(self, "error %d reading class desc\n", err);
sys/dev/usb/uirda.c
247
aprint_error_dev(self, "error %d reading desc\n", err);
sys/dev/usb/uirda.c
259
aprint_error_dev(self,
sys/dev/usb/uirda.c
280
aprint_normal_dev(self, "USB-IrDA protocol version %x.%02x\n",
sys/dev/usb/uirda.c
291
sc->sc_child = config_found(self, &ia, ir_print, CFARGS_NONE);
sys/dev/usb/uirda.c
297
uirda_detach(device_t self, int flags)
sys/dev/usb/uirda.c
299
struct uirda_softc *sc = device_private(self);
sys/dev/usb/uirda.c
353
uirda_childdet(device_t self, device_t child)
sys/dev/usb/uirda.c
355
struct uirda_softc *sc = device_private(self);
sys/dev/usb/uirda.c
362
uirda_activate(device_t self, enum devact act)
sys/dev/usb/uirda.c
364
struct uirda_softc *sc = device_private(self);
sys/dev/usb/ukbd.c
424
ukbd_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ukbd.c
426
struct ukbd_softc *sc = device_private(self);
sys/dev/usb/ukbd.c
433
sc->sc_dev = self;
sys/dev/usb/ukbd.c
442
if (!pmf_device_register(self, NULL, NULL)) {
sys/dev/usb/ukbd.c
444
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/ukbd.c
450
aprint_error_dev(self, "attach failed, %s\n", parseerr);
sys/dev/usb/ukbd.c
523
sc->sc_wskbddev = config_found(self, &a, wskbddevprint, CFARGS_NONE);
sys/dev/usb/ukbd.c
558
ukbd_childdet(device_t self, device_t child)
sys/dev/usb/ukbd.c
560
struct ukbd_softc *sc = device_private(self);
sys/dev/usb/ukbd.c
567
ukbd_activate(device_t self, enum devact act)
sys/dev/usb/ukbd.c
569
struct ukbd_softc *sc = device_private(self);
sys/dev/usb/ukbd.c
581
ukbd_detach(device_t self, int flags)
sys/dev/usb/ukbd.c
583
struct ukbd_softc *sc = device_private(self);
sys/dev/usb/ukbd.c
588
pmf_device_deregister(self);
sys/dev/usb/ukyopon.c
127
ukyopon_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ukyopon.c
129
struct ukyopon_softc *sc = device_private(self);
sys/dev/usb/ukyopon.c
141
if (umodem_common_attach(self, &sc->sc_umodem, uiaa, &ucaa))
sys/dev/usb/ukyopon.c
221
ukyopon_detach(device_t self, int flags)
sys/dev/usb/ukyopon.c
223
struct ukyopon_softc *sc = device_private(self);
sys/dev/usb/ulpt.c
196
ulpt_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ulpt.c
198
struct ulpt_softc *sc = device_private(self);
sys/dev/usb/ulpt.c
211
sc->sc_dev = self;
sys/dev/usb/ulpt.c
217
aprint_normal_dev(self, "%s, iclass %d/%d\n",
sys/dev/usb/ulpt.c
244
aprint_error_dev(self,
sys/dev/usb/ulpt.c
259
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/ulpt.c
271
aprint_error_dev(self, "could not find bulk out endpoint\n");
sys/dev/usb/ulpt.c
281
aprint_normal_dev(self, "using %s-directional mode\n",
sys/dev/usb/ulpt.c
333
ulpt_activate(device_t self, enum devact act)
sys/dev/usb/ulpt.c
335
struct ulpt_softc *sc = device_private(self);
sys/dev/usb/ulpt.c
347
ulpt_detach(device_t self, int flags)
sys/dev/usb/ulpt.c
349
struct ulpt_softc *sc = device_private(self);
sys/dev/usb/ulpt.c
373
mn = device_unit(self);
sys/dev/usb/umass.c
374
umass_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/umass.c
377
struct umass_softc *sc = device_private(self);
sys/dev/usb/umass.c
389
sc->sc_dev = self;
sys/dev/usb/umass.c
397
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/umass.c
502
aprint_verbose_dev(self, "using %s over %s\n", sCommand, sWire);
sys/dev/usb/umass.c
507
aprint_error_dev(self, "quirk init failed\n");
sys/dev/usb/umass.c
529
aprint_error_dev(self,
sys/dev/usb/umass.c
559
aprint_error_dev(self, "endpoint not found %u/%u/%u\n",
sys/dev/usb/umass.c
573
aprint_error_dev(self, "unable to get Max Lun: %s\n",
sys/dev/usb/umass.c
591
aprint_error_dev(self, "cannot open %u-out pipe (bulk)\n",
sys/dev/usb/umass.c
603
aprint_error_dev(self, "could not open %u-in pipe (bulk)\n",
sys/dev/usb/umass.c
629
aprint_error_dev(self, "couldn't open %u-in (intr)\n",
sys/dev/usb/umass.c
740
aprint_error_dev(self, "failed to create xfers\n");
sys/dev/usb/umass.c
801
aprint_error_dev(self, "scsibus not configured\n");
sys/dev/usb/umass.c
810
aprint_error_dev(self, "atapibus not configured\n");
sys/dev/usb/umass.c
815
aprint_error_dev(self, "command protocol=%#x not supported\n",
sys/dev/usb/umass.c
821
aprint_error_dev(self, "bus attach failed\n");
sys/dev/usb/umass.c
830
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/umass.c
831
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/umass.c
841
umass_childdet(device_t self, device_t child)
sys/dev/usb/umass.c
843
struct umass_softc *sc = device_private(self);
sys/dev/usb/umass.c
851
umass_detach(device_t self, int flags)
sys/dev/usb/umass.c
854
struct umass_softc *sc = device_private(self);
sys/dev/usb/umass.c
865
pmf_device_deregister(self);
sys/dev/usb/umass.c
885
aprint_error_dev(self, "scsibus not configured\n");
sys/dev/usb/umass.c
894
aprint_error_dev(self, "atapibus not configured\n");
sys/dev/usb/umcpmio.c
1514
umcpmio_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/umcpmio.c
1516
struct umcpmio_softc *sc = device_private(self);
sys/dev/usb/umcpmio.c
1521
sc->sc_dev = self;
sys/dev/usb/umcpmio.c
1556
aprint_error_dev(self, "Can't setup sysctl tree (%d)\n", err);
sys/dev/usb/umcpmio.c
1613
umcpmio_detach(device_t self, int flags)
sys/dev/usb/umcpmio.c
1615
struct umcpmio_softc *sc = device_private(self);
sys/dev/usb/umcpmio.c
1625
err = config_detach_children(self, flags);
sys/dev/usb/umcpmio.c
1655
umcpmio_activate(device_t self, enum devact act)
sys/dev/usb/umcpmio.c
1657
struct umcpmio_softc *sc = device_private(self);
sys/dev/usb/umcs.c
185
umcs7840_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/umcs.c
187
struct umcs7840_softc *sc = device_private(self);
sys/dev/usb/umcs.c
197
sc->sc_dev = self;
sys/dev/usb/umcs.c
244
aprint_verbose_dev(self, "found %d active ports\n", sc->sc_numports);
sys/dev/usb/umcs.c
247
aprint_verbose_dev(self, "On-die configuration: RST: active %s, "
sys/dev/usb/umcs.c
275
aprint_error_dev(self, "interrupt pipe not found\n");
sys/dev/usb/umcs.c
280
aprint_error_dev(self, "invalid interrupt endpoint"
sys/dev/usb/umcs.c
291
aprint_error_dev(self, "cannot open interrupt pipe "
sys/dev/usb/umcs.c
328
aprint_error_dev(self,
sys/dev/usb/umcs.c
338
aprint_error_dev(self,
sys/dev/usb/umcs.c
349
config_found(self, &ucaa, ucomprint,
sys/dev/usb/umcs.c
516
umcs7840_detach(device_t self, int flags)
sys/dev/usb/umcs.c
518
struct umcs7840_softc *sc = device_private(self);
sys/dev/usb/umcs.c
555
umcs7840_childdet(device_t self, device_t child)
sys/dev/usb/umcs.c
557
struct umcs7840_softc *sc = device_private(self);
sys/dev/usb/umcs.c
569
umcs7840_get_status(void *self, int portno, u_char *lsr, u_char *msr)
sys/dev/usb/umcs.c
571
struct umcs7840_softc *sc = self;
sys/dev/usb/umcs.c
588
umcs7840_set(void *self, int portno, int reg, int onoff)
sys/dev/usb/umcs.c
590
struct umcs7840_softc *sc = self;
sys/dev/usb/umcs.c
611
umcs7840_param(void *self, int portno, struct termios *t)
sys/dev/usb/umcs.c
613
struct umcs7840_softc *sc = self;
sys/dev/usb/umcs.c
728
umcs7840_port_open(void *self, int portno)
sys/dev/usb/umcs.c
730
struct umcs7840_softc *sc = self;
sys/dev/usb/umcs.c
838
umcs7840_port_close(void *self, int portno)
sys/dev/usb/umcs.c
840
struct umcs7840_softc *sc = self;
sys/dev/usb/umct.c
168
umct_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/umct.c
170
struct umct_softc *sc = device_private(self);
sys/dev/usb/umct.c
182
sc->sc_dev = self;
sys/dev/usb/umct.c
189
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/umct.c
205
aprint_error_dev(self, "failed to set configuration, err=%s\n",
sys/dev/usb/umct.c
215
aprint_error_dev(self,
sys/dev/usb/umct.c
225
aprint_error_dev(self, "failed to get interface, err=%s\n",
sys/dev/usb/umct.c
239
aprint_error_dev(self,
sys/dev/usb/umct.c
265
aprint_error_dev(self, "Could not find data bulk in\n");
sys/dev/usb/umct.c
271
aprint_error_dev(self, "Could not find data bulk out\n");
sys/dev/usb/umct.c
277
aprint_error_dev(self, "Could not find interrupt in\n");
sys/dev/usb/umct.c
304
sc->sc_subdev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/umct.c
311
umct_childdet(device_t self, device_t child)
sys/dev/usb/umct.c
313
struct umct_softc *sc = device_private(self);
sys/dev/usb/umct.c
335
umct_detach(device_t self, int flags)
sys/dev/usb/umct.c
337
struct umct_softc *sc = device_private(self);
sys/dev/usb/umidi.c
339
umidi_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/umidi.c
342
struct umidi_softc *sc = device_private(self);
sys/dev/usb/umidi.c
348
sc->sc_dev = self;
sys/dev/usb/umidi.c
354
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/umidi.c
363
aprint_normal_dev(self, "");
sys/dev/usb/umidi.c
373
aprint_error_dev(self,
sys/dev/usb/umidi.c
379
aprint_error_dev(self, "alloc_all_jacks failed. (err=%d)\n",
sys/dev/usb/umidi.c
383
aprint_normal_dev(self, "out=%d, in=%d\n",
sys/dev/usb/umidi.c
388
aprint_error_dev(self,
sys/dev/usb/umidi.c
394
aprint_error_dev(self,
sys/dev/usb/umidi.c
415
aprint_error_dev(self, "disabled.\n");
sys/dev/usb/umidi.c
421
umidi_childdet(device_t self, device_t child)
sys/dev/usb/umidi.c
424
struct umidi_softc *sc = device_private(self);
sys/dev/usb/umidi.c
437
umidi_activate(device_t self, enum devact act)
sys/dev/usb/umidi.c
439
struct umidi_softc *sc = device_private(self);
sys/dev/usb/umidi.c
454
umidi_detach(device_t self, int flags)
sys/dev/usb/umidi.c
456
struct umidi_softc *sc = device_private(self);
sys/dev/usb/umidi.c
464
aprint_error_dev(self, ": didn't detach\n");
sys/dev/usb/umodem.c
111
umodem_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/umodem.c
113
struct umodem_softc *sc = device_private(self);
sys/dev/usb/umodem.c
123
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/umodem.c
124
aprint_error_dev(self, "couldn't establish power handler");
sys/dev/usb/umodem.c
126
if (umodem_common_attach(self, sc, uiaa, &ucaa))
sys/dev/usb/umodem.c
132
umodem_detach(device_t self, int flags)
sys/dev/usb/umodem.c
134
struct umodem_softc *sc = device_private(self);
sys/dev/usb/umodem.c
136
pmf_device_deregister(self);
sys/dev/usb/umodem_common.c
116
umodem_common_attach(device_t self, struct umodem_softc *sc,
sys/dev/usb/umodem_common.c
127
sc->sc_dev = self;
sys/dev/usb/umodem_common.c
137
aprint_normal_dev(self, "%s, iclass %d/%d\n",
sys/dev/usb/umodem_common.c
148
aprint_error_dev(self, "no pointer to data interface\n");
sys/dev/usb/umodem_common.c
152
aprint_normal_dev(self,
sys/dev/usb/umodem_common.c
168
aprint_error_dev(self, "no data interface\n");
sys/dev/usb/umodem_common.c
182
aprint_error_dev(self,
sys/dev/usb/umodem_common.c
196
aprint_error_dev(self, "Could not find data bulk in\n");
sys/dev/usb/umodem_common.c
200
aprint_error_dev(self, "Could not find data bulk out\n");
sys/dev/usb/umodem_common.c
214
aprint_error_dev(self,
sys/dev/usb/umodem_common.c
241
aprint_verbose_dev(self,
sys/dev/usb/umodem_common.c
276
sc->sc_subdev = config_found(self, ucaa, ucomprint,
sys/dev/usb/umodeswitch.c
460
umodeswitch_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/umodeswitch.c
484
umodeswitch_detach(device_t self, int flags)
sys/dev/usb/ums.c
181
ums_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ums.c
183
struct ums_softc *sc = device_private(self);
sys/dev/usb/ums.c
204
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/ums.c
205
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/ums.c
209
if (!hidms_setup(self, &sc->sc_ms, uha->reportid, desc, size))
sys/dev/usb/ums.c
280
hidms_attach(self, &sc->sc_ms, &ums_accessops);
sys/dev/usb/ums.c
285
aprint_error_dev(self,
sys/dev/usb/ums.c
293
ums_activate(device_t self, enum devact act)
sys/dev/usb/ums.c
295
struct ums_softc *sc = device_private(self);
sys/dev/usb/ums.c
307
ums_childdet(device_t self, device_t child)
sys/dev/usb/ums.c
309
struct ums_softc *sc = device_private(self);
sys/dev/usb/ums.c
316
ums_detach(device_t self, int flags)
sys/dev/usb/ums.c
318
struct ums_softc *sc = device_private(self);
sys/dev/usb/ums.c
332
pmf_device_deregister(self);
sys/dev/usb/uplcom.c
270
uplcom_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uplcom.c
272
struct uplcom_softc *sc = device_private(self);
sys/dev/usb/uplcom.c
281
const char *devname = device_xname(self);
sys/dev/usb/uplcom.c
290
sc->sc_dev = self;
sys/dev/usb/uplcom.c
297
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uplcom.c
348
aprint_error_dev(self, "failed to set configuration: %s\n",
sys/dev/usb/uplcom.c
358
aprint_error_dev(self,
sys/dev/usb/uplcom.c
382
aprint_error_dev(self,
sys/dev/usb/uplcom.c
396
aprint_error_dev(self, "Could not find interrupt in\n");
sys/dev/usb/uplcom.c
435
aprint_error_dev(self,
sys/dev/usb/uplcom.c
451
aprint_error_dev(self, "Could not find data bulk in\n");
sys/dev/usb/uplcom.c
457
aprint_error_dev(self, "Could not find data bulk out\n");
sys/dev/usb/uplcom.c
478
aprint_error_dev(self, "reset failed, %s\n", usbd_errstr(err));
sys/dev/usb/uplcom.c
487
sc->sc_subdev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/uplcom.c
490
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uplcom.c
491
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uplcom.c
497
uplcom_childdet(device_t self, device_t child)
sys/dev/usb/uplcom.c
499
struct uplcom_softc *sc = device_private(self);
sys/dev/usb/uplcom.c
523
uplcom_detach(device_t self, int flags)
sys/dev/usb/uplcom.c
525
struct uplcom_softc *sc = device_private(self);
sys/dev/usb/uplcom.c
542
pmf_device_deregister(self);
sys/dev/usb/usb.c
1373
usb_activate(device_t self, enum devact act)
sys/dev/usb/usb.c
1375
struct usb_softc *sc = device_private(self);
sys/dev/usb/usb.c
1387
usb_childdet(device_t self, device_t child)
sys/dev/usb/usb.c
1390
struct usb_softc *sc = device_private(self);
sys/dev/usb/usb.c
1402
usb_detach(device_t self, int flags)
sys/dev/usb/usb.c
1404
struct usb_softc *sc = device_private(self);
sys/dev/usb/usb.c
1412
(rc = usb_disconnect_port(&sc->sc_port, self, flags)) != 0)
sys/dev/usb/usb.c
1416
pmf_device_deregister(self);
sys/dev/usb/usb.c
1434
ue->u.ue_ctrlr.ue_bus = device_unit(self);
sys/dev/usb/usb.c
293
usb_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/usb.c
296
struct usb_softc *sc = device_private(self);
sys/dev/usb/usb.c
327
device_xname(self));
sys/dev/usb/usb.c
336
config_interrupts(self, usb_doattach);
sys/dev/usb/usb.c
452
usb_doattach(device_t self)
sys/dev/usb/usb.c
454
struct usb_softc *sc = device_private(self);
sys/dev/usb/usb.c
467
sc->sc_bus->ub_usbctl = self;
sys/dev/usb/usb.c
489
ue->u.ue_ctrlr.ue_bus = device_unit(self);
sys/dev/usb/usb.c
493
err = usbd_new_device(self, sc->sc_bus, 0, speed, 0,
sys/dev/usb/usb.c
501
device_xname(self));
sys/dev/usb/usb.c
505
usb_create_event_thread(self);
sys/dev/usb/usb.c
508
device_xname(self), usbd_errstr(err));
sys/dev/usb/usb.c
516
config_pending_incr(self);
sys/dev/usb/usb.c
518
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/usb.c
519
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/usb.c
527
usb_create_event_thread(device_t self)
sys/dev/usb/usb.c
529
struct usb_softc *sc = device_private(self);
sys/dev/usb/usb.c
533
"%s", device_xname(self))) {
sys/dev/usb/usb.c
535
device_xname(self));
sys/dev/usb/usbnet.c
1574
usbnet_detach(device_t self, int flags)
sys/dev/usb/usbnet.c
1577
struct usbnet * const un = device_private(self);
sys/dev/usb/usbnet.c
1658
usbnet_activate(device_t self, devact_t act)
sys/dev/usb/usbnet.c
1661
struct usbnet * const un = device_private(self);
sys/dev/usb/uslsa.c
169
uslsa_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uslsa.c
179
sc = device_private(self);
sys/dev/usb/uslsa.c
181
sc->sc_dev = self;
sys/dev/usb/uslsa.c
190
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uslsa.c
216
aprint_error_dev(self,
sys/dev/usb/uslsa.c
229
aprint_error_dev(self, "unexpected endpoint\n");
sys/dev/usb/uslsa.c
235
aprint_error_dev(self, "could not find endpoints\n");
sys/dev/usb/uslsa.c
240
sc->sc_subdev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/uslsa.c
243
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uslsa.c
244
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uslsa.c
250
uslsa_childdet(device_t self, device_t child)
sys/dev/usb/uslsa.c
252
struct uslsa_softc *sc = device_private(self);
sys/dev/usb/uslsa.c
259
uslsa_detach(device_t self, int flags)
sys/dev/usb/uslsa.c
261
struct uslsa_softc *sc = device_private(self);
sys/dev/usb/uslsa.c
264
DPRINTF((self, "%s(%p, %#x)\n", __func__, self, flags));
sys/dev/usb/usscanner.c
179
usscanner_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/usscanner.c
181
struct usscanner_softc *sc = device_private(self);
sys/dev/usb/usscanner.c
194
sc->sc_dev = self;
sys/dev/usb/usscanner.c
200
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/usscanner.c
205
aprint_error_dev(self, "failed to set configuration, err=%s\n",
sys/dev/usb/usscanner.c
212
aprint_error_dev(self, "getting interface handle failed\n");
sys/dev/usb/usscanner.c
228
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/usscanner.c
244
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/usscanner.c
251
aprint_error_dev(self, "open in pipe failed, err=%d\n", err);
sys/dev/usb/usscanner.c
260
aprint_error_dev(self, "open intr pipe failed, err=%d\n", err);
sys/dev/usb/usscanner.c
267
aprint_error_dev(self, "open out pipe failed, err=%d\n", err);
sys/dev/usb/usscanner.c
276
aprint_error_dev(self, "alloc cmd xfer failed, error=%d\n",
sys/dev/usb/usscanner.c
286
aprint_error_dev(self, "alloc intr xfer failed, error=%d\n",
sys/dev/usb/usscanner.c
295
aprint_error_dev(self, "alloc data xfer failed, error=%d\n",
sys/dev/usb/usscanner.c
305
aprint_error_dev(self, "alloc data xfer failed, err=%d\n", err);
sys/dev/usb/usscanner.c
345
aprint_error_dev(self,
sys/dev/usb/usscanner.c
354
usscanner_childdet(device_t self, device_t child)
sys/dev/usb/usscanner.c
356
struct usscanner_softc *sc = device_private(self);
sys/dev/usb/usscanner.c
363
usscanner_detach(device_t self, int flags)
sys/dev/usb/usscanner.c
365
struct usscanner_softc *sc = device_private(self);
sys/dev/usb/usscanner.c
428
usscanner_activate(device_t self, enum devact act)
sys/dev/usb/usscanner.c
430
struct usscanner_softc *sc = device_private(self);
sys/dev/usb/ustir.c
241
ustir_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/ustir.c
243
struct ustir_softc *sc = device_private(self);
sys/dev/usb/ustir.c
255
sc->sc_dev = self;
sys/dev/usb/ustir.c
262
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/ustir.c
267
aprint_error_dev(self, "Configuration failed\n");
sys/dev/usb/ustir.c
282
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/ustir.c
294
aprint_error_dev(self, "missing endpoint\n");
sys/dev/usb/ustir.c
306
sc->sc_child = config_found(self, &ia, ir_print, CFARGS_NONE);
sys/dev/usb/ustir.c
315
ustir_childdet(device_t self, device_t child)
sys/dev/usb/ustir.c
317
struct ustir_softc *sc = device_private(self);
sys/dev/usb/ustir.c
324
ustir_detach(device_t self, int flags)
sys/dev/usb/ustir.c
326
struct ustir_softc *sc = device_private(self);
sys/dev/usb/ustir.c
686
ustir_activate(device_t self, enum devact act)
sys/dev/usb/ustir.c
688
struct ustir_softc *sc = device_private(self);
sys/dev/usb/uthum.c
129
uthum_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uthum.c
131
struct uthum_softc *sc = device_private(self);
sys/dev/usb/uthum.c
137
sc->sc_dev = self;
sys/dev/usb/uthum.c
161
sc->sc_sme->sme_name = device_xname(self);
sys/dev/usb/uthum.c
208
aprint_error_dev(self,
sys/dev/usb/uthum.c
220
uthum_detach(device_t self, int flags)
sys/dev/usb/uthum.c
222
struct uthum_softc *sc = device_private(self);
sys/dev/usb/uthum.c
236
uthum_activate(device_t self, enum devact act)
sys/dev/usb/uthum.c
238
struct uthum_softc *sc = device_private(self);
sys/dev/usb/utoppy.c
226
utoppy_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/utoppy.c
228
struct utoppy_softc *sc = device_private(self);
sys/dev/usb/utoppy.c
237
sc->sc_dev = self;
sys/dev/usb/utoppy.c
243
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/utoppy.c
252
aprint_error_dev(self, "Configuration failed\n");
sys/dev/usb/utoppy.c
259
aprint_error_dev(self, "Expected %d endpoints, got %d\n",
sys/dev/usb/utoppy.c
270
aprint_error_dev(self, "couldn't get ep %d\n", i);
sys/dev/usb/utoppy.c
284
aprint_error_dev(self,
sys/dev/usb/utoppy.c
299
aprint_error_dev(self, "could not open OUT pipe\n");
sys/dev/usb/utoppy.c
307
aprint_error_dev(self, "could not open IN pipe\n");
sys/dev/usb/utoppy.c
319
aprint_error_dev(self, "could not allocate bulk out xfer\n");
sys/dev/usb/utoppy.c
326
aprint_error_dev(self, "could not allocate bulk in xfer\n");
sys/dev/usb/utoppy.c
345
utoppy_activate(device_t self, enum devact act)
sys/dev/usb/utoppy.c
347
struct utoppy_softc *sc = device_private(self);
sys/dev/usb/utoppy.c
359
utoppy_detach(device_t self, int flags)
sys/dev/usb/utoppy.c
361
struct utoppy_softc *sc = device_private(self);
sys/dev/usb/utoppy.c
390
mn = device_unit(self);
sys/dev/usb/uts.c
137
uts_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uts.c
139
struct uts_softc *sc = device_private(self);
sys/dev/usb/uts.c
150
sc->sc_dev = self;
sys/dev/usb/uts.c
155
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uts.c
156
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uts.c
237
sc->sc_wsmousedev = config_found(self, &a, wsmousedevprint, CFARGS_NONE);
sys/dev/usb/uts.c
270
uts_detach(device_t self, int flags)
sys/dev/usb/uts.c
272
struct uts_softc *sc = device_private(self);
sys/dev/usb/uts.c
278
error = config_detach_children(self, flags);
sys/dev/usb/uts.c
282
pmf_device_deregister(self);
sys/dev/usb/uts.c
287
uts_childdet(device_t self, device_t child)
sys/dev/usb/uts.c
289
struct uts_softc *sc = device_private(self);
sys/dev/usb/uts.c
296
uts_activate(device_t self, enum devact act)
sys/dev/usb/uts.c
298
struct uts_softc *sc = device_private(self);
sys/dev/usb/uvideo.c
492
uvideo_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uvideo.c
494
struct uvideo_softc *sc = device_private(self);
sys/dev/usb/uvideo.c
501
sc->sc_dev = self;
sys/dev/usb/uvideo.c
608
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uvideo.c
609
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/usb/uvideo.c
639
uvideo_activate(device_t self, enum devact act)
sys/dev/usb/uvideo.c
641
struct uvideo_softc *sc = device_private(self);
sys/dev/usb/uvideo.c
656
uvideo_childdet(device_t self, device_t child)
sys/dev/usb/uvideo.c
658
struct uvideo_softc *sc = device_private(self);
sys/dev/usb/uvideo.c
668
device_xname(self), device_xname(child), child);
sys/dev/usb/uvideo.c
673
uvideo_detach(device_t self, int flags)
sys/dev/usb/uvideo.c
675
struct uvideo_softc *sc = device_private(self);
sys/dev/usb/uvideo.c
679
error = config_detach_children(self, flags);
sys/dev/usb/uvideo.c
685
pmf_device_deregister(self);
sys/dev/usb/uvisor.c
211
uvisor_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uvisor.c
213
struct uvisor_softc *sc = device_private(self);
sys/dev/usb/uvisor.c
222
const char *devname = device_xname(self);
sys/dev/usb/uvisor.c
229
sc->sc_dev = self;
sys/dev/usb/uvisor.c
236
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uvisor.c
257
aprint_error_dev(self,
sys/dev/usb/uvisor.c
278
aprint_error_dev(self, "init failed, %s\n", usbd_errstr(err));
sys/dev/usb/uvisor.c
330
config_found(self, &ucaa, ucomprint,
sys/dev/usb/uvisor.c
334
aprint_error_dev(self,
sys/dev/usb/uvisor.c
363
config_found(self, &ucaa, ucomprint,
sys/dev/usb/uvisor.c
377
uvisor_childdet(device_t self, device_t child)
sys/dev/usb/uvisor.c
380
struct uvisor_softc *sc = device_private(self);
sys/dev/usb/uvisor.c
391
uvisor_detach(device_t self, int flags)
sys/dev/usb/uvisor.c
393
struct uvisor_softc *sc = device_private(self);
sys/dev/usb/uvscom.c
232
uvscom_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uvscom.c
234
struct uvscom_softc *sc = device_private(self);
sys/dev/usb/uvscom.c
249
aprint_normal_dev(self, "%s\n", devinfop);
sys/dev/usb/uvscom.c
252
sc->sc_dev = self;
sys/dev/usb/uvscom.c
266
aprint_error_dev(self, "failed to set configuration, err=%s\n",
sys/dev/usb/uvscom.c
276
aprint_error_dev(self,
sys/dev/usb/uvscom.c
286
aprint_error_dev(self, "failed to get interface, err=%s\n",
sys/dev/usb/uvscom.c
299
aprint_error_dev(self,
sys/dev/usb/uvscom.c
319
aprint_error_dev(self, "Could not find data bulk in\n");
sys/dev/usb/uvscom.c
324
aprint_error_dev(self, "Could not find data bulk out\n");
sys/dev/usb/uvscom.c
329
aprint_error_dev(self, "Could not find interrupt in\n");
sys/dev/usb/uvscom.c
352
aprint_error_dev(self, "reset failed, %s\n", usbd_errstr(err));
sys/dev/usb/uvscom.c
364
sc->sc_subdev = config_found(self, &ucaa, ucomprint,
sys/dev/usb/uvscom.c
371
uvscom_childdet(device_t self, device_t child)
sys/dev/usb/uvscom.c
373
struct uvscom_softc *sc = device_private(self);
sys/dev/usb/uvscom.c
395
uvscom_detach(device_t self, int flags)
sys/dev/usb/uvscom.c
397
struct uvscom_softc *sc = device_private(self);
sys/dev/usb/uxrcom.c
141
uxrcom_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/uxrcom.c
143
struct umodem_softc *sc = device_private(self);
sys/dev/usb/uxrcom.c
157
if (!pmf_device_register(self, NULL, NULL))
sys/dev/usb/uxrcom.c
158
aprint_error_dev(self, "couldn't establish power handler");
sys/dev/usb/uxrcom.c
160
umodem_common_attach(self, sc, uiaa, &ucaa);
sys/dev/usb/uxrcom.c
164
uxrcom_detach(device_t self, int flags)
sys/dev/usb/uxrcom.c
166
struct umodem_softc *sc = device_private(self);
sys/dev/usb/uxrcom.c
168
pmf_device_deregister(self);
sys/dev/usb/vhci.c
1242
vhci_activate(device_t self, enum devact act)
sys/dev/usb/vhci.c
1244
vhci_softc_t *sc = device_private(self);
sys/dev/usb/vhci.c
1262
vhci_attach(device_t parent, device_t self, void *aux)
sys/dev/usb/vhci.c
1264
vhci_softc_t *sc = device_private(self);
sys/dev/usb/vhci.c
1269
sc->sc_dev = self;
sys/dev/usb/vhci.c
1272
sc->sc_bus.ub_busnum = device_unit(self);
sys/dev/usb/vhci.c
1292
sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/dev/usb/xhci.c
1006
device_printf(self, "resume timeout, USBSTS.RSS\n");
sys/dev/usb/xhci.c
1096
device_printf(self,
sys/dev/usb/xhci.c
1133
device_printf(self, "resume error, USBSTS.SRE\n");
sys/dev/usb/xhci.c
1158
xhci_shutdown(device_t self, int flags)
sys/dev/usb/xhci.c
620
xhci_childdet(device_t self, device_t child)
sys/dev/usb/xhci.c
622
struct xhci_softc * const sc = device_private(self);
sys/dev/usb/xhci.c
694
xhci_activate(device_t self, enum devact act)
sys/dev/usb/xhci.c
696
struct xhci_softc * const sc = device_private(self);
sys/dev/usb/xhci.c
708
xhci_suspend(device_t self, const pmf_qual_t *qual)
sys/dev/usb/xhci.c
710
struct xhci_softc * const sc = device_private(self);
sys/dev/usb/xhci.c
773
device_printf(self, "failed to stop endpoint"
sys/dev/usb/xhci.c
840
device_printf(self,
sys/dev/usb/xhci.c
896
device_printf(self, "suspend timeout, USBSTS.SSS\n");
sys/dev/usb/xhci.c
910
device_printf(self, "suspend error, USBSTS.SRE\n");
sys/dev/usb/xhci.c
934
xhci_resume(device_t self, const pmf_qual_t *qual)
sys/dev/usb/xhci.c
936
struct xhci_softc * const sc = device_private(self);
sys/dev/veriexec.c
74
veriexecattach(device_t parent, device_t self, void *aux)
sys/dev/video.c
344
video_attach(device_t parent, device_t self, void *aux)
sys/dev/video.c
349
sc = device_private(self);
sys/dev/video.c
352
sc->sc_dev = self;
sys/dev/video.c
362
video_stream_init(&sc->sc_stream_in, device_xname(self));
sys/dev/video.c
369
if (!pmf_device_register(self, NULL, NULL))
sys/dev/video.c
370
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/video.c
375
video_activate(device_t self, enum devact act)
sys/dev/video.c
377
struct video_softc *sc = device_private(self);
sys/dev/video.c
391
video_detach(device_t self, int flags)
sys/dev/video.c
396
sc = device_private(self);
sys/dev/video.c
401
pmf_device_deregister(self);
sys/dev/video.c
404
mn = device_unit(self);
sys/dev/video.c
444
video_submit_payload(device_t self, const struct video_payload *payload)
sys/dev/video.c
448
sc = device_private(self);
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
190
virtio_mmio_cmdline_attach(device_t parent, device_t self, void *aux)
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
192
struct virtio_mmio_cmdline_softc *sc = device_private(self);
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
204
aprint_verbose_dev(self, "kernel parameters: %s\n",
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
222
aprint_normal_dev(self, "viommio: %s\n", parg);
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
225
if (virtio_mmio_cmdline_do_attach(self, pvaa, margs))
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
236
virtio_mmio_cmdline_do_attach(device_t self,
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
240
struct virtio_mmio_cmdline_softc *sc = device_private(self);
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
248
vsc->sc_dev = self;
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
253
aprint_error_dev(self, "couldn't map %#" PRIx64 ": %d",
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
262
virtio_mmio_cmdline_rescan(self, "virtio", NULL);
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
268
virtio_mmio_cmdline_detach(device_t self, int flags)
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
270
struct virtio_mmio_cmdline_softc * const sc = device_private(self);
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
277
virtio_mmio_cmdline_rescan(device_t self, const char *ifattr, const int *locs)
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
279
struct virtio_mmio_cmdline_softc *const sc = device_private(self);
sys/dev/virtio/arch/x86/virtio_mmio_cmdline.c
290
config_found(self, &va, NULL, CFARGS_NONE);
sys/dev/virtio/viocon.c
195
viocon_attach(struct device *parent, struct device *self, void *aux)
sys/dev/virtio/viocon.c
197
struct viocon_softc *sc = device_private(self);
sys/dev/virtio/viocon.c
202
sc->sc_dev = self;
sys/dev/virtio/viocon.c
217
virtio_child_attach_start(vsc, self, IPL_TTY,
sys/dev/virtio/virtio_mmio.c
270
device_t self = vsc->sc_dev;
sys/dev/virtio/virtio_mmio.c
316
aprint_normal_dev(self, "VirtIO-MMIO-v%u\n", sc->sc_mmio_vers);
sys/dev/virtio/virtio_mmio.c
324
virtio_print_device_type(self, id, virtio_vers);
sys/dev/virtio/virtio_mmio.c
332
aprint_error_dev(self, "can't map config i/o space\n");
sys/dev/virtio/virtio_mmio.c
378
device_t self = vsc->sc_dev;
sys/dev/virtio/virtio_mmio.c
400
aprint_error_dev(self, "MMIO-v%u requires version 1\n",
sys/dev/virtio/virtio_mmio.c
411
aprint_error_dev(self, "device rejected version 1\n");
sys/dev/virtio/virtio_mmio.c
436
aprint_error_dev(self, "feature negotiation failed\n");
sys/dev/vme/if_ie_vme.c
456
ie_vme_attach(device_t parent, device_t self, void *aux)
sys/dev/vme/if_ie_vme.c
459
struct ie_vme_softc *vsc = device_private(self);
sys/dev/vme/if_ie_vme.c
482
sc->sc_dev = self;
sys/dev/vme/if_ie_vme.c
553
printf("\n%s:", device_xname(self));
sys/dev/vme/if_ie_vme.c
555
ether_getaddr(self, myaddr);
sys/dev/vme/sc_vme.c
141
sc_vme_attach(device_t parent, device_t self, void *aux)
sys/dev/vme/sc_vme.c
143
struct sunscpal_softc *sc = device_private(self);
sys/dev/vme/sc_vme.c
153
sc->sc_dev = self;
sys/dev/vme/sc_vme.c
160
panic("%s: vme_space_map", device_xname(self));
sys/dev/vme/sc_vme.c
208
aprint_error_dev(self, "DMA buffer map create error\n");
sys/dev/vme/sc_vme.c
219
printf("%s", device_xname(self));
sys/dev/vme/sc_vme.c
220
sunscpal_attach(sc, (device_cfdata(self)->cf_flags ?
sys/dev/vme/sc_vme.c
221
device_cfdata(self)->cf_flags : sunsc_vme_options));
sys/dev/vme/si.c
224
si_attach(device_t parent, device_t self, void *aux)
sys/dev/vme/si.c
226
struct si_softc *sc = device_private(self);
sys/dev/vme/si.c
238
ncr_sc->sc_dev = self;
sys/dev/vme/si.c
246
panic("%s: vme_space_map", device_xname(self));
sys/dev/vme/si.c
269
if ((device_cfdata(self)->cf_flags & SI_OPTIONS_MASK) != 0)
sys/dev/vme/si.c
271
device_cfdata(self)->cf_flags & SI_OPTIONS_MASK;
sys/dev/vme/si.c
326
aprint_error_dev(self, "DMA buffer map create error\n");
sys/dev/vme/si.c
333
aprint_normal_dev(self, "options=%s\n", bits);
sys/dev/vme/vme.c
164
vmeattach(device_t parent, device_t self, void *aux)
sys/dev/vme/vme.c
166
struct vmebus_softc *sc = device_private(self);
sys/dev/vme/vme.c
194
device_printf(self, "error creating A32 map\n");
sys/dev/vme/vme.c
209
device_printf(self, "error creating A24 map\n");
sys/dev/vme/vme.c
224
device_printf(self, "error creating A16 map\n");
sys/dev/vme/vme.c
231
config_search(self, NULL,
sys/dev/vme/vme.c
234
config_search(self, NULL,
sys/dev/vme/xd.c
489
xdcattach(device_t parent, device_t self, void *aux)
sys/dev/vme/xd.c
497
struct xdc_softc *xdc = device_private(self);
sys/dev/vme/xd.c
506
xdc->sc_dev = self;
sys/dev/vme/xd.c
675
(void) config_found(self, (void *) &xa, NULL, CFARGS_NONE);
sys/dev/vme/xd.c
709
xdattach(device_t parent, device_t self, void *aux)
sys/dev/vme/xd.c
711
struct xd_softc *xd = device_private(self);
sys/dev/vme/xd.c
722
xd->sc_dev = self;
sys/dev/vme/xy.c
400
xycattach(device_t parent, device_t self, void *aux)
sys/dev/vme/xy.c
402
struct xyc_softc *xyc = device_private(self);
sys/dev/vme/xy.c
416
xyc->sc_dev = self;
sys/dev/vme/xy.c
574
(void) config_found(self, (void *) &xa, NULL, CFARGS_NONE);
sys/dev/vme/xy.c
608
xyattach(device_t parent, device_t self, void *aux)
sys/dev/vme/xy.c
610
struct xy_softc *xy = device_private(self), *oxy;
sys/dev/vme/xy.c
620
xy->sc_dev = self;
sys/dev/vmt/vmt_subr.c
171
device_t self;
sys/dev/vmt/vmt_subr.c
175
self = sc->sc_dev;
sys/dev/vmt/vmt_subr.c
182
aprint_error_dev(self, "failed to get VMware version\n");
sys/dev/vmt/vmt_subr.c
218
rv = vmt_sysctl_setup_root(self);
sys/dev/vmt/vmt_subr.c
220
aprint_error_dev(self, "failed to initialize sysctl "
sys/dev/vmt/vmt_subr.c
228
aprint_error_dev(self, "failed to open backdoor RPC channel "
sys/dev/vmt/vmt_subr.c
237
aprint_error_dev(self,
sys/dev/vmt/vmt_subr.c
242
pmf_device_register1(self, NULL, NULL, vmt_shutdown);
sys/dev/vmt/vmt_subr.c
247
sc->sc_ev_power.ev_smpsw.smpsw_name = device_xname(self);
sys/dev/vmt/vmt_subr.c
251
sc->sc_ev_reset.ev_smpsw.smpsw_name = device_xname(self);
sys/dev/vmt/vmt_subr.c
255
sc->sc_ev_sleep.ev_smpsw.smpsw_name = device_xname(self);
sys/dev/vmt/vmt_subr.c
278
pmf_device_register(self, NULL, NULL);
sys/dev/vmt/vmt_subr.c
316
vmt_sysctl_setup_root(device_t self)
sys/dev/vmt/vmt_subr.c
319
struct vmt_softc *sc = device_private(self);
sys/dev/vmt/vmt_subr.c
329
0, CTLTYPE_NODE, device_xname(self), NULL,
sys/dev/vmt/vmt_subr.c
340
rv = vmt_sysctl_setup_clock_sync(self, vmt_node);
sys/dev/vmt/vmt_subr.c
354
vmt_sysctl_setup_clock_sync(device_t self, const struct sysctlnode *root_node)
sys/dev/vmt/vmt_subr.c
357
struct vmt_softc *sc = device_private(self);
sys/dev/vmt/vmt_subr.c
549
vmt_shutdown(device_t self, int flags)
sys/dev/vmt/vmt_subr.c
551
struct vmt_softc *sc = device_private(self);
sys/dev/vnd.c
259
vnd_match(device_t self, cfdata_t cfdata, void *aux)
sys/dev/vnd.c
266
vnd_attach(device_t parent, device_t self, void *aux)
sys/dev/vnd.c
268
struct vnd_softc *sc = device_private(self);
sys/dev/vnd.c
270
sc->sc_dev = self;
sys/dev/vnd.c
275
disk_init(&sc->sc_dkdev, device_xname(self), &vnddkdriver);
sys/dev/vnd.c
276
if (!pmf_device_register(self, NULL, NULL))
sys/dev/vnd.c
277
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/vnd.c
281
vnd_detach(device_t self, int flags)
sys/dev/vnd.c
284
struct vnd_softc *sc = device_private(self);
sys/dev/vnd.c
292
pmf_device_deregister(self);
sys/dev/wscons/wsbell.c
210
wsbell_attach(device_t parent, device_t self, void *aux)
sys/dev/wscons/wsbell.c
212
struct wsbell_softc *sc = device_private(self);
sys/dev/wscons/wsbell.c
218
sc->sc_base.me_dv = self;
sys/dev/wscons/wsbell.c
226
mux = device_cfdata(self)->wsbelldevcf_mux;
sys/dev/wscons/wsbell.c
235
if (device_cfdata(self)->wsbelldevcf_mux >= 0)
sys/dev/wscons/wsbell.c
242
if (!pmf_device_register(self, NULL, NULL))
sys/dev/wscons/wsbell.c
243
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/wscons/wsbell.c
249
bell_thread, sc, &sc->sc_bellthread, "%s", device_xname(self));
sys/dev/wscons/wsbell.c
253
wsbell_activate(device_t self, enum devact act)
sys/dev/wscons/wsbell.c
255
struct wsbell_softc *sc = device_private(self);
sys/dev/wscons/wsbell.c
263
wsbell_detach(device_t self, int flags)
sys/dev/wscons/wsbell.c
265
struct wsbell_softc *sc = device_private(self);
sys/dev/wscons/wsbell.c
294
device_xname(self));
sys/dev/wscons/wsbell.c
303
mn = device_unit(self);
sys/dev/wscons/wsdisplay.c
634
wsdisplay_emul_attach(device_t parent, device_t self, void *aux)
sys/dev/wscons/wsdisplay.c
636
struct wsdisplay_softc *sc = device_private(self);
sys/dev/wscons/wsdisplay.c
639
sc->sc_dev = self;
sys/dev/wscons/wsdisplay.c
646
device_cfdata(self)->cf_loc[WSEMULDISPLAYDEVCF_KBDMUX],
sys/dev/wscons/wsdisplay.c
655
cn_tab->cn_dev = makedev(maj, WSDISPLAYMINOR(device_unit(self),
sys/dev/wscons/wsdisplay.c
708
wsdisplay_noemul_attach(device_t parent, device_t self, void *aux)
sys/dev/wscons/wsdisplay.c
710
struct wsdisplay_softc *sc = device_private(self);
sys/dev/wscons/wsdisplay.c
713
sc->sc_dev = self;
sys/dev/wscons/wsdisplay.c
716
device_cfdata(self)->cf_loc[WSDISPLAYDEVCF_KBDMUX], NULL,
sys/dev/wscons/wskbd.c
1681
wskbd_hotkey_register(device_t self, void *cookie, wskbd_hotkey_plugin *hotkey)
sys/dev/wscons/wskbd.c
1683
struct wskbd_softc *sc = device_private(self);
sys/dev/wscons/wskbd.c
1695
wskbd_hotkey_deregister(device_t self)
sys/dev/wscons/wskbd.c
1697
struct wskbd_softc *sc = device_private(self);
sys/dev/wscons/wskbd.c
408
wskbd_attach(device_t parent, device_t self, void *aux)
sys/dev/wscons/wskbd.c
410
struct wskbd_softc *sc = device_private(self);
sys/dev/wscons/wskbd.c
416
sc->sc_base.me_dv = self;
sys/dev/wscons/wskbd.c
502
if (!pmf_device_register(self, wskbd_suspend, NULL))
sys/dev/wscons/wskbd.c
503
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/wscons/wskbd.c
504
else if (!pmf_class_input_register(self))
sys/dev/wscons/wskbd.c
505
aprint_error_dev(self, "couldn't register as input device\n");
sys/dev/wscons/wskbd.c
591
wskbd_activate(device_t self, enum devact act)
sys/dev/wscons/wskbd.c
593
struct wskbd_softc *sc = device_private(self);
sys/dev/wscons/wskbd.c
609
wskbd_detach(device_t self, int flags)
sys/dev/wscons/wskbd.c
611
struct wskbd_softc *sc = device_private(self);
sys/dev/wscons/wskbd.c
630
pmf_device_deregister(self);
sys/dev/wscons/wskbd.c
647
device_xname(self));
sys/dev/wscons/wskbd.c
656
mn = device_unit(self);
sys/dev/wscons/wsmouse.c
256
wsmouse_attach(device_t parent, device_t self, void *aux)
sys/dev/wscons/wsmouse.c
258
struct wsmouse_softc *sc = device_private(self);
sys/dev/wscons/wsmouse.c
264
sc->sc_base.me_dv = self;
sys/dev/wscons/wsmouse.c
280
mux = device_cfdata(self)->wsmousedevcf_mux;
sys/dev/wscons/wsmouse.c
289
if (device_cfdata(self)->wsmousedevcf_mux >= 0)
sys/dev/wscons/wsmouse.c
296
if (!pmf_device_register(self, NULL, NULL))
sys/dev/wscons/wsmouse.c
297
aprint_error_dev(self, "couldn't establish power handler\n");
sys/dev/wscons/wsmouse.c
301
wsmouse_activate(device_t self, enum devact act)
sys/dev/wscons/wsmouse.c
303
struct wsmouse_softc *sc = device_private(self);
sys/dev/wscons/wsmouse.c
319
wsmouse_detach(device_t self, int flags)
sys/dev/wscons/wsmouse.c
321
struct wsmouse_softc *sc = device_private(self);
sys/dev/wscons/wsmouse.c
350
device_xname(self));
sys/dev/wscons/wsmouse.c
359
mn = device_unit(self);
sys/dev/xmi/bi_xmi.c
70
bi_xmi_attach(device_t parent, device_t self, void *aux)
sys/dev/xmi/bi_xmi.c
72
struct bi_softc *sc = device_private(self);
sys/dev/xmi/bi_xmi.c
78
sc->sc_dev = self;
sys/fs/sysvbfs/bfs_sysvbfs.c
101
bc_read(void *self, uint8_t *buf, daddr_t block)
sys/fs/sysvbfs/bfs_sysvbfs.c
103
struct bc_io_ops *bio = self;
sys/fs/sysvbfs/bfs_sysvbfs.c
122
bc_write_n(void *self, uint8_t *buf, daddr_t block, int count)
sys/fs/sysvbfs/bfs_sysvbfs.c
127
if (!bc_write(self, buf, block))
sys/fs/sysvbfs/bfs_sysvbfs.c
137
bc_write(void *self, uint8_t *buf, daddr_t block)
sys/fs/sysvbfs/bfs_sysvbfs.c
139
struct bc_io_ops *bio = self;
sys/fs/sysvbfs/bfs_sysvbfs.c
86
bc_read_n(void *self, uint8_t *buf, daddr_t block, int count)
sys/fs/sysvbfs/bfs_sysvbfs.c
91
if (!bc_read(self, buf, block))
sys/fs/v7fs/v7fs_io_kern.c
150
v7fs_os_read_n(void *self, uint8_t *buf, daddr_t block, int count)
sys/fs/v7fs/v7fs_io_kern.c
155
if (!v7fs_os_read(self, buf, block))
sys/fs/v7fs/v7fs_io_kern.c
165
v7fs_os_read(void *self, uint8_t *buf, daddr_t block)
sys/fs/v7fs/v7fs_io_kern.c
167
struct local_io *bio = (struct local_io *)self;
sys/fs/v7fs/v7fs_io_kern.c
185
v7fs_os_write_n(void *self, uint8_t *buf, daddr_t block, int count)
sys/fs/v7fs/v7fs_io_kern.c
190
if (!v7fs_os_write(self, buf, block))
sys/fs/v7fs/v7fs_io_kern.c
200
v7fs_os_write(void *self, uint8_t *buf, daddr_t block)
sys/fs/v7fs/v7fs_io_kern.c
202
struct local_io *bio = (struct local_io *)self;
sys/fs/v7fs/v7fs_io_kern.c
221
v7fs_os_lock(void *self)
sys/fs/v7fs/v7fs_io_kern.c
224
mutex_enter((kmutex_t *)self);
sys/fs/v7fs/v7fs_io_kern.c
228
v7fs_os_unlock(void *self)
sys/fs/v7fs/v7fs_io_kern.c
231
mutex_exit((kmutex_t *)self);
sys/kern/subr_autoconf.c
4026
null_childdetached(device_t self, device_t child)
sys/kern/subr_disk.c
215
device_t self, int flags)
sys/kern/subr_disk.c
226
rc = (*lastclose)(self);
sys/kern/subr_ipi.c
375
const struct cpu_info * const self = curcpu();
sys/kern/subr_ipi.c
383
local = !!kcpuset_isset(target, cpu_index(self));
sys/kern/subr_ipi.c
390
if (__predict_false(ci == self)) {
sys/kern/subr_ipi.c
413
const struct cpu_info * const self = curcpu();
sys/kern/subr_ipi.c
427
if (__predict_false(ci == self)) {
sys/kern/vfs_lookup.c
533
struct lwp *self = curlwp; /* thread doing namei() */
sys/kern/vfs_lookup.c
544
cwdi = self->l_proc->p_cwdi;
sys/kern/vfs_lookup.c
641
struct lwp *self = curlwp; /* thread doing namei() */
sys/kern/vfs_lookup.c
657
emul_path = self->l_proc->p_emul->e_path;
sys/kern/vfs_lookup.c
740
struct lwp *self = curlwp; /* thread doing namei() */
sys/kern/vfs_lookup.c
790
symlink_magic(self->l_proc, cp, &linklen)) ||
sys/modules/examples/luareadhappy/luareadhappy.c
133
happy_open(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/luareadhappy/luareadhappy.c
146
happy_close(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/luareadhappy/luareadhappy.c
155
happy_read(dev_t self __unused, struct uio *uio, int flags __unused)
sys/modules/examples/mapper/mapper.c
76
mapper_open(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/mapper/mapper.c
88
mapper_close(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/panic_string/panic_string.c
118
panic_string_open(dev_t self __unused, int flag __unused, int mod __unused, struct lwp *l)
sys/modules/examples/panic_string/panic_string.c
131
panic_string_close(dev_t self __unused, int flag __unused, int mod __unused, struct lwp *l __unused)
sys/modules/examples/panic_string/panic_string.c
139
panic_string_write(dev_t self, struct uio *uio, int flags)
sys/modules/examples/ping/ping.c
75
ping_open(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/ping/ping.c
87
ping_close(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/ping/ping.c
96
ping_ioctl(dev_t self __unused, u_long cmd, void *data, int flag,
sys/modules/examples/ping_block/ping.c
106
ping_ioctl(dev_t self __unused, u_long cmd, void *data, int flag,
sys/modules/examples/ping_block/ping.c
85
ping_open(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/ping_block/ping.c
97
ping_close(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/readhappy/readhappy.c
124
happy_open(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/readhappy/readhappy.c
137
happy_close(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/readhappy/readhappy.c
146
happy_read(dev_t self __unused, struct uio *uio, int flags __unused)
sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c
142
happy_open(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c
169
happy_close(dev_t self __unused, int flag __unused, int mode __unused,
sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c
187
happy_read(dev_t self __unused, struct uio *uio, int flags __unused)
sys/modules/lua/lua.c
128
lua_attach(device_t parent, device_t self, void *aux)
sys/modules/lua/lua.c
136
sc = device_private(self);
sys/modules/lua/lua.c
137
sc->sc_dev = self;
sys/modules/lua/lua.c
138
sc_self = self;
sys/modules/lua/lua.c
146
if (!pmf_device_register(self, NULL, NULL))
sys/modules/lua/lua.c
147
aprint_error_dev(self, "couldn't establish power handler\n");
sys/modules/lua/lua.c
201
aprint_normal_dev(self, "%s\n", LUA_COPYRIGHT);
sys/modules/lua/lua.c
205
lua_detach(device_t self, int flags)
sys/modules/lua/lua.c
210
sc = device_private(self);
sys/modules/lua/lua.c
211
pmf_device_deregister(self);
sys/modules/lua/lua.c
223
device_printf(self, "state %s destroyed\n",
sys/net/if_tap.c
287
tap_attach(device_t parent, device_t self, void *aux)
sys/net/if_tap.c
289
struct tap_softc *sc = device_private(self);
sys/net/if_tap.c
297
sc->sc_dev = self;
sys/net/if_tap.c
307
if (!pmf_device_register(self, NULL, NULL))
sys/net/if_tap.c
308
aprint_error_dev(self, "couldn't establish power handler\n");
sys/net/if_tap.c
317
aprint_verbose_dev(self, "Ethernet address %s\n",
sys/net/if_tap.c
325
strcpy(ifp->if_xname, device_xname(self));
sys/net/if_tap.c
363
CTLTYPE_STRING, device_xname(self), NULL,
sys/net/if_tap.c
367
aprint_error_dev(self,
sys/net/if_tap.c
376
tap_detach(device_t self, int flags)
sys/net/if_tap.c
378
struct tap_softc *sc = device_private(self);
sys/net/if_tap.c
398
aprint_error_dev(self,
sys/net/if_tap.c
406
pmf_device_deregister(self);
sys/opencrypto/crypto.c
598
crypto_init_finalize(device_t self __unused)
sys/rump/dev/lib/libpci/rumpdev_pci.c
40
pci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
sys/rump/dev/lib/libugenhc/ugenhc.c
911
ugenhc_attach(device_t parent, device_t self, void *aux)
sys/rump/dev/lib/libugenhc/ugenhc.c
914
struct ugenhc_softc *sc = device_private(self);
sys/rump/dev/lib/libugenhc/ugenhc.c
931
config_found(self, &sc->sc_bus, usbctlprint, CFARGS_NONE);
sys/rump/librump/rumpkern/rump_autoconf.c
105
mainbus_attach(device_t parent, device_t self, void *aux)
sys/rump/librump/rumpkern/rump_autoconf.c
109
config_search(self, NULL,
tests/dev/scsipi/libscsitest/scsitest.c
235
scsitest_attach(device_t parent, device_t self, void *aux)
tests/dev/scsipi/libscsitest/scsitest.c
237
struct scsitest *sc = device_private(self);
tests/dev/scsipi/libscsitest/scsitest.c
246
sc->sc_adapter.adapt_dev = self;
tests/dev/scsipi/libscsitest/scsitest.c
258
config_found(self, &sc->sc_channel, scsiprint,
tests/lib/libpthread/h_resolv.c
104
self, n, host, (int)i);
tests/lib/libpthread/h_resolv.c
110
self, host, error ? "not found" : "ok");
tests/lib/libpthread/h_resolv.c
136
pthread_t self = pthread_self();
tests/lib/libpthread/h_resolv.c
137
if (pthread_create(&self, NULL, resolvloop, nhosts) != 0)
tests/lib/libpthread/h_resolv.c
139
return self;
tests/lib/libpthread/h_resolv.c
97
pthread_t self = pthread_self();
tests/lib/libpthread/t_kill.c
118
pthread_t self;
tests/lib/libpthread/t_kill.c
130
self = pthread_self();
tests/lib/libpthread/t_kill.c
131
ATF_REQUIRE_EQ_MSG(self, mainthread, "thread id changed");
tests/lib/libpthread/t_kill.c
82
pthread_t self;
tests/lib/libpthread/t_kill.c
85
self = pthread_self();
tests/lib/libpthread/t_kill.c
86
ATF_REQUIRE_MSG((self != mainthread) && (signo == SIGUSR1),
tests/lib/libpthread/t_kill.c
90
if (self == th[i].id)
tests/lib/libpthread/t_name.c
54
pthread_t self = pthread_self();
tests/lib/libpthread/t_name.c
57
PTHREAD_REQUIRE(pthread_getname_np(self, retname, sizeof(retname)));
tests/lib/libpthread/t_name.c
60
PTHREAD_REQUIRE(pthread_setname_np(self, non_const_name, NULL));
tests/lib/libpthread/t_name.c
62
PTHREAD_REQUIRE(pthread_getname_np(self, retname, sizeof(retname)));
tests/lib/libpthread/t_name.c
76
pthread_t thr, self = pthread_self();
tests/lib/libpthread/t_name.c
89
PTHREAD_REQUIRE(pthread_getname_np(self, retname, sizeof(retname)));
tests/lib/libpthread/t_sem.c
146
pthread_t self = pthread_self();
tests/lib/libpthread/t_sem.c
149
printf("Thread %p waiting for semaphore...\n", self);
tests/lib/libpthread/t_sem.c
151
printf("Thread %p got semaphore\n", self);
tests/lib/libpthread/t_sigalarm.c
91
pthread_t self = pthread_self();
tests/lib/libpthread/t_sigalarm.c
93
PTHREAD_REQUIRE(pthread_create(&self, NULL, setup, NULL));
tests/libexec/ld.elf_so/t_rtld_r_debug.c
161
ATF_TC(self);
tests/libexec/ld.elf_so/t_rtld_r_debug.c
162
ATF_TC_HEAD(self, tc)
tests/libexec/ld.elf_so/t_rtld_r_debug.c
166
ATF_TC_BODY(self, tc)
tests/libexec/ld.elf_so/t_rtld_r_debug.c
196
ATF_TP_ADD_TC(tp, self);
tests/usr.bin/indent/edge_cases.c
100
my ($self, $name) = @_;
tests/usr.bin/indent/edge_cases.c
101
return exists($self->[EXTRA]->{$name});
tests/usr.bin/indent/edge_cases.c
126
my($self) = ([$fname, $lines, $text, $physlines, false, [], [], {
tests/usr.bin/indent/edge_cases.c
131
bless($self, $class);
tests/usr.bin/indent/edge_cases.c
132
return $self;
tests/usr.bin/indent/edge_cases.c
142
my($self, $name) = @_;
tests/usr.bin/indent/edge_cases.c
143
return exists($self->[EXTRA]->{
tests/usr.bin/indent/edge_cases.c
91
my ($self) = ([$fname, $lines, $text, $physlines, false, [], [], {}]);
tests/usr.bin/indent/edge_cases.c
92
bless($self, $class);
tests/usr.bin/indent/edge_cases.c
93
return $self;
usr.sbin/timed/timed/correct.c
63
for (htp = self.l_fwd; htp != &self; htp = htp->l_fwd) {
usr.sbin/timed/timed/globals.h
123
#define hostname (self.name)
usr.sbin/timed/timed/master.c
392
for (htp = self.l_fwd; htp != &self; htp = htp->l_fwd) {
usr.sbin/timed/timed/master.c
466
for (htp = self.l_fwd; htp != &self; htp = htp->l_fwd) {
usr.sbin/timed/timed/master.c
513
htp = self.l_fwd;
usr.sbin/timed/timed/master.c
624
ret->l_fwd = &self;
usr.sbin/timed/timed/master.c
625
ret->l_bak = self.l_bak;
usr.sbin/timed/timed/master.c
626
self.l_bak->l_fwd = ret;
usr.sbin/timed/timed/master.c
627
self.l_bak = ret;
usr.sbin/timed/timed/master.c
703
for (htp = self.l_fwd; htp != &self; htp = htp->l_fwd) {
usr.sbin/timed/timed/networkdelta.c
118
htp = &self;
usr.sbin/timed/timed/networkdelta.c
128
} while (&self != (htp = htp->l_fwd));
usr.sbin/timed/timed/networkdelta.c
86
for (htp = self.l_fwd; htp != &self; htp = htp->l_fwd) {
usr.sbin/timed/timed/timed.c
208
self.l_bak = &self;
usr.sbin/timed/timed/timed.c
209
self.l_fwd = &self;
usr.sbin/timed/timed/timed.c
210
self.h_bak = &self;
usr.sbin/timed/timed/timed.c
211
self.h_fwd = &self;
usr.sbin/timed/timed/timed.c
212
self.head = 1;
usr.sbin/timed/timed/timed.c
213
self.good = 1;
usr.sbin/timed/timed/timed.c
767
for (htp = self.l_fwd; htp != &self; htp = htp->l_fwd) {