bin/setfacl/mask.c
53
acl_tag_t tag;
bin/setfacl/mask.c
94
if (acl_get_tag_type(entry, &tag) == -1)
bin/setfacl/mask.c
98
if (tag == ACL_MASK) {
bin/setfacl/merge.c
100
acl_tag_t tag, tag_new;
bin/setfacl/merge.c
128
if (acl_get_tag_type(entry, &tag) == -1)
bin/setfacl/merge.c
131
if (tag == ACL_MASK)
bin/setfacl/merge.c
139
if (acl_get_tag_type(entry, &tag) == -1)
bin/setfacl/merge.c
145
if (tag != tag_new)
bin/setfacl/merge.c
163
switch(tag) {
bin/setfacl/merge.c
201
errx(1, "%s: invalid tag type: %i", filename, tag);
bin/setfacl/remove.c
106
acl_tag_t tag;
bin/setfacl/remove.c
116
tag = ACL_UNDEFINED_TAG;
bin/setfacl/remove.c
130
if (acl_get_tag_type(entry, &tag) == -1)
bin/setfacl/remove.c
132
if (tag == ACL_MASK)
bin/setfacl/remove.c
54
acl_tag_t tag;
bin/setfacl/remove.c
75
tag = ACL_UNDEFINED_TAG;
bin/setfacl/remove.c
81
if (acl_get_tag_type(entry, &tag) == -1)
bin/setfacl/remove.c
83
if (tag == ACL_MASK)
common/lib/libc/gen/radixtree.c
1421
printops(const char *title, const char *name, int tag, unsigned int n,
common/lib/libc/gen/radixtree.c
1427
printf("RESULT %s %s %d %lf op/s\n", title, name, tag,
common/lib/libc/gen/radixtree.c
1449
unsigned int tag;
common/lib/libc/gen/radixtree.c
1451
for (tag = 0; tag < RADIX_TREE_TAG_ID_MAX; tag++) {
common/lib/libc/gen/radixtree.c
1452
if ((tagmask & (1 << tag)) == 0) {
common/lib/libc/gen/radixtree.c
1456
assert(count == ntagged[tag]);
common/lib/libc/gen/radixtree.c
1458
assert(count >= ntagged[tag]);
common/lib/libc/gen/radixtree.c
1472
unsigned int tag;
common/lib/libc/gen/radixtree.c
1480
for (tag = 0; tag < RADIX_TREE_TAG_ID_MAX; tag++) {
common/lib/libc/gen/radixtree.c
1481
ntagged[tag] = 0;
common/lib/libc/gen/radixtree.c
1498
for (tag = 0; tag < RADIX_TREE_TAG_ID_MAX; tag++) {
common/lib/libc/gen/radixtree.c
1499
tagmask = 1 << tag;
common/lib/libc/gen/radixtree.c
1501
n->tagged[tag] = test2_should_tag(i, tag);
common/lib/libc/gen/radixtree.c
1502
if (n->tagged[tag]) {
common/lib/libc/gen/radixtree.c
1504
ntagged[tag]++;
common/lib/libc/gen/radixtree.c
1506
assert((n->tagged[tag] ? tagmask : 0) ==
common/lib/libc/gen/radixtree.c
1529
for (tag = 0; tag < RADIX_TREE_TAG_ID_MAX; tag++) {
common/lib/libc/gen/radixtree.c
1530
assert((tagmask & (1 << tag)) == 0 ||
common/lib/libc/gen/radixtree.c
1531
n->tagged[tag] == !!(tagged & (1 << tag)));
common/lib/libc/gen/radixtree.c
1558
for (tag = 0; tag < RADIX_TREE_TAG_ID_MAX; tag++) {
common/lib/libc/gen/radixtree.c
1559
tagmask = 1 << tag;
common/lib/libc/gen/radixtree.c
1561
ntagged[tag] = 0;
common/lib/libc/gen/radixtree.c
1565
if (n->tagged[tag]) {
common/lib/libc/gen/radixtree.c
1567
ntagged[tag]++;
common/lib/libc/gen/radixtree.c
1571
printops(title, "set_tag", tag, ntagged[tag], &stv, &etv);
common/lib/libc/gen/radixtree.c
1670
for (tag = 0; tag < RADIX_TREE_TAG_ID_MAX; tag++) {
common/lib/libc/gen/radixtree.c
1674
tagmask = 1 << tag;
common/lib/libc/gen/radixtree.c
1697
if (tag == 0) {
common/lib/libc/gen/radixtree.c
1700
assert(total <= ntagged[tag]);
common/lib/libprop/prop_intern.c
101
taglen = tag != NULL ? strlen(tag) : 0;
common/lib/libprop/prop_intern.c
167
if (tag != NULL &&
common/lib/libprop/prop_intern.c
169
memcmp(tag, ctx->poic_tagname, taglen) != 0)) {
common/lib/libprop/prop_intern.c
96
const char *tag, _prop_tag_type_t type)
crypto/dist/ipsec-tools/src/setkey/parse.y
1113
setkeymsg_spdaddr_tag(unsigned int type, char *tag, vchar_t *policy)
crypto/dist/ipsec-tools/src/setkey/parse.y
1135
if (strlcpy(m_tag.sadb_x_tag_name, tag,
dist/pf/sbin/pfctl/parse.y
204
char *tag;
dist/pf/sbin/pfctl/parse.y
2133
filter_opts.tag = $2;
dist/pf/sbin/pfctl/parse.y
3499
natrule : nataction interface af proto fromto tag tagged rtable
dist/pf/sbin/pfctl/parse.y
3665
binatrule : no BINAT natpasslog interface af proto FROM host TO ipspec tag
dist/pf/sbin/pfctl/parse.y
3832
tag : /* empty */ { $$ = NULL; }
dist/pf/sbin/pfctl/parse.y
452
%type <v.string> label string tag anchorname
dist/pf/sbin/pfctl/pfctl_optimize.c
194
PF_RULE_FIELD(tag, DC),
lib/libc/citrus/modules/citrus_iso2022.c
310
const char *tag;
lib/libc/citrus/modules/citrus_iso2022.c
332
for (i = 0; tags[i].tag; i++) {
lib/libc/citrus/modules/citrus_iso2022.c
333
if (!strcmp(token, tags[i].tag)) {
lib/libc/gen/fmtmsg.c
145
const char *tag)
lib/libc/gen/fmtmsg.c
170
((which & MM_VERBTAG) && tag != MM_NULLTAG) ?
lib/libc/gen/fmtmsg.c
171
tag : "",
lib/libc/gen/fmtmsg.c
173
((which & MM_VERBTAG) && tag != MM_NULLTAG) ?
lib/libc/gen/fmtmsg.c
181
const char *text, const char *action, const char *tag)
lib/libc/gen/fmtmsg.c
211
label, sevstr, text, action, tag) < 0)
lib/libc/gen/fmtmsg.c
218
label, sevstr, text, action, tag) < 0)
lib/libc/isc/eventlib_p.h
157
const void * tag;
lib/libc/posix1e/acl_from_text.c
100
tag = string_skip_whitespace(tag);
lib/libc/posix1e/acl_from_text.c
101
if ((*tag == '\0') && (!entry)) {
lib/libc/posix1e/acl_from_text.c
108
string_trim_trailing_whitespace(tag);
lib/libc/posix1e/acl_from_text.c
126
t = acl_string_to_tag(tag, qualifier);
lib/libc/posix1e/acl_from_text.c
276
_acl_name_to_id(acl_tag_t tag, char *name, uid_t *id)
lib/libc/posix1e/acl_from_text.c
283
switch(tag) {
lib/libc/posix1e/acl_from_text.c
52
static acl_tag_t acl_string_to_tag(char *tag, char *qualifier);
lib/libc/posix1e/acl_from_text.c
55
acl_string_to_tag(char *tag, char *qualifier)
lib/libc/posix1e/acl_from_text.c
59
if ((!strcmp(tag, "user")) || (!strcmp(tag, "u"))) {
lib/libc/posix1e/acl_from_text.c
62
if ((!strcmp(tag, "group")) || (!strcmp(tag, "g"))) {
lib/libc/posix1e/acl_from_text.c
65
if ((!strcmp(tag, "mask")) || (!strcmp(tag, "m"))) {
lib/libc/posix1e/acl_from_text.c
68
if ((!strcmp(tag, "other")) || (!strcmp(tag, "o"))) {
lib/libc/posix1e/acl_from_text.c
73
if ((!strcmp(tag, "user")) || (!strcmp(tag, "u"))) {
lib/libc/posix1e/acl_from_text.c
76
if ((!strcmp(tag, "group")) || (!strcmp(tag, "g"))) {
lib/libc/posix1e/acl_from_text.c
88
char *tag, *qualifier, *permission;
lib/libc/posix1e/acl_from_text.c
95
tag = strsep(&entry, ":");
lib/libc/posix1e/acl_from_text.c
96
if (tag == NULL) {
lib/libc/posix1e/acl_from_text_nfs4.c
109
error = acl_get_tag_type(entry, &tag);
lib/libc/posix1e/acl_from_text_nfs4.c
113
error = _acl_name_to_id(tag, str, &id);
lib/libc/posix1e/acl_from_text_nfs4.c
97
acl_tag_t tag;
lib/libc/posix1e/acl_id_to_name.c
62
_posix1e_acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len, char *buf,
lib/libc/posix1e/acl_id_to_name.c
69
switch(tag) {
lib/libc/posix1e/acl_strip.c
69
acl_tag_t tag;
lib/libc/posix1e/acl_strip.c
86
tag = ACL_UNDEFINED_TAG;
lib/libc/posix1e/acl_strip.c
95
if (acl_get_tag_type(entry, &tag) == -1)
lib/libc/posix1e/acl_strip.c
98
switch(tag) {
lib/libc/posix1e/acl_support.c
352
_posix1e_acl_add_entry(acl_t acl, acl_tag_t tag, uid_t id, acl_perm_t perm)
lib/libc/posix1e/acl_support.c
366
e->ae_tag = tag;
lib/libc/posix1e/acl_support.h
59
int _posix1e_acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len,
lib/libc/posix1e/acl_support.h
64
int _posix1e_acl_add_entry(acl_t acl, acl_tag_t tag, uid_t id,
lib/libc/posix1e/acl_support.h
68
int _acl_name_to_id(acl_tag_t tag, char *name, uid_t *id);
lib/libc/posix1e/acl_to_text_nfs4.c
149
acl_tag_t tag;
lib/libc/posix1e/acl_to_text_nfs4.c
152
error = acl_get_tag_type(entry, &tag);
lib/libc/posix1e/acl_to_text_nfs4.c
156
switch (tag) {
lib/libc/posix1e/acl_to_text_nfs4.c
56
acl_tag_t tag;
lib/libc/posix1e/acl_to_text_nfs4.c
61
error = acl_get_tag_type(entry, &tag);
lib/libc/posix1e/acl_to_text_nfs4.c
65
switch (tag) {
lib/libcurses/EXAMPLES/view.c
485
static void show_all(const char *tag)
lib/libcurses/EXAMPLES/view.c
492
sprintf(temp, "%s (%3dx%3d) col %d ", tag, LINES, COLS, shift);
lib/libcurses/EXAMPLES/view.c
67
static void show_all(const char *tag);
lib/libintl/sysdep.c
212
cmp_sysdep_tag(const void *tag, const void *elem)
lib/libintl/sysdep.c
216
return strcmp(tag, pair->tag);
lib/libintl/sysdep.c
220
__intl_sysdep_get_string_by_tag(const char *tag, size_t *rlen)
lib/libintl/sysdep.c
224
found = bsearch(tag, sysdep_pair_table, numof(sysdep_pair_table),
lib/libintl/sysdep.c
45
const char *tag;
lib/libintl/sysdep.c
50
#define T_(tag) { #tag, tag, sizeof (tag)-1 }
lib/libisns/isns_pdu.c
576
isns_add_string(ISNS_TRANS trans, uint32_t tag, const char *s)
lib/libisns/isns_pdu.c
579
return isns_add_tlv(trans, tag, (uint32_t)strlen(s) + 1, s);
lib/libisns/isns_pdu.c
587
isns_add_tlv(ISNS_TRANS trans, uint32_t tag, uint32_t data_len,
lib/libisns/isns_pdu.c
595
trans, tag, data_len, data_p);
lib/libisns/isns_pdu.c
610
ISNS_TLV_SET_TAG(tlv_buf, tag);
lib/libisns/isns_pdu.h
112
uint32_t tag;
lib/libisns/isns_pdu.h
113
memcpy(&tag, buf, sizeof(tag));
lib/libisns/isns_pdu.h
114
return isns_ntohl(tag);
lib/libisns/isns_pdu.h
117
static inline void ISNS_TLV_SET_TAG(void *buf, uint32_t tag) {
lib/libisns/isns_pdu.h
118
tag = isns_htonl(tag);
lib/libisns/isns_pdu.h
119
memcpy(buf, &tag, sizeof(tag));
lib/libm/arch/i387/fenv.c
114
.tag = 0xffff, /* Tag word register */
lib/libm/arch/x86_64/fenv.c
431
__fe_dfl_env.x87.tag = (fenv.x87.tag & 0xffff0000)
lib/libm/arch/x86_64/fenv.c
432
| (__fe_dfl_env.x87.tag & 0x0000ffff);
lib/libm/arch/x86_64/fenv.c
469
__fe_dfl_env.x87.tag = (fenv.x87.tag & 0xffff0000)
lib/libm/arch/x86_64/fenv.c
470
| (__fe_dfl_env.x87.tag & 0x0000ffff);
lib/libwrap/diag.c
47
tcpd_diag(int severity, const char *tag, const char *fmt, va_list ap)
lib/libwrap/diag.c
58
tag, tcpd_context.file, tcpd_context.line, buf);
lib/libwrap/diag.c
60
syslog(severity, "%s: %s", tag, buf);
libexec/httpd/ssl-bozo.c
190
bozo_check_error_queue(bozohttpd_t *httpd, const char *tag, int ret)
libexec/httpd/ssl-bozo.c
201
bozo_ssl_warn(httpd, "%s: SSL_ERROR %d", tag, sslerr);
libexec/telnetd/utility.c
1058
printdata(const char *tag, char *ptr, int cnt)
libexec/telnetd/utility.c
1070
output_data("%s: ", tag);
sbin/fsck_udf/main.c
1056
extid = udf_rw16(ext->tag.id);
sbin/fsck_udf/main.c
1234
if (udf_rw16(avdp->tag.id) != TAGID_ANCHOR)
sbin/fsck_udf/main.c
1251
context.dscrver = udf_rw16(avdp->tag.descriptor_ver);
sbin/fsck_udf/main.c
1423
if (udf_rw16(dscr->tag.id) == TAGID_TERM) {
sbin/fsck_udf/main.c
1428
if (udf_rw16(dscr->tag.id) != TAGID_LOGVOL_INTEGRITY) {
sbin/fsck_udf/main.c
1616
terminator->tag.serial_num = lvint->tag.serial_num;
sbin/fsck_udf/main.c
1662
tagid = udf_rw16(dscr->tag.id);
sbin/fsck_udf/main.c
1741
int tag_id = udf_rw16(dscr->tag.id);
sbin/fsck_udf/main.c
1768
tag_id = udf_rw16(dscr->tag.id);
sbin/fsck_udf/main.c
1823
tag_id = udf_rw16(dscr->tag.id);
sbin/fsck_udf/main.c
2215
if (udf_rw16(dscr->tag.id) == TAGID_SPARING_TABLE) {
sbin/fsck_udf/main.c
2293
tagid = udf_rw16(dscr1->tag.id);
sbin/fsck_udf/main.c
2307
tagid = udf_rw16(dscr2->tag.id);
sbin/fsck_udf/main.c
2354
tagid = udf_rw16(dscr3->tag.id);
sbin/fsck_udf/main.c
2642
if (udf_rw16(dscr->tag.id) != TAGID_FSD) {
sbin/fsck_udf/main.c
2671
switch (udf_rw16(dscr->tag.id)) {
sbin/fsck_udf/main.c
2729
udf_rw16(dscr->tag.id));
sbin/fsck_udf/main.c
2750
if (udf_rw16(dscr->tag.id) == TAGID_TERM)
sbin/fsck_udf/main.c
3192
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
sbin/fsck_udf/main.c
3205
if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
sbin/fsck_udf/main.c
323
struct desc_tag *tag = &dscrptr->tag;
sbin/fsck_udf/main.c
3337
if (udf_rw16(dscr->tag.desc_crc_len) !=
sbin/fsck_udf/main.c
3341
udf_node_path(node), udf_rw16(dscr->tag.desc_crc_len),
sbin/fsck_udf/main.c
335
id = udf_rw16(tag->id);
sbin/fsck_udf/main.c
3667
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
sbin/fsck_udf/main.c
3674
if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
sbin/fsck_udf/main.c
3686
dscr->tag.desc_crc_len = udf_rw16(crc_len);
sbin/fsck_udf/main.c
3769
udf_mark_allocated(udf_rw32(context.fileset_desc->tag.tag_loc),
sbin/fsck_udf/main.c
3816
fsd_loc.loc.lb_num = context.fileset_desc->tag.tag_loc;
sbin/fsck_udf/main.c
4139
assert(udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY);
sbin/fsck_udf/main.c
418
dfid->tag.desc_crc_len = udf_rw16(fidsize - UDF_DESC_TAG_LENGTH);
sbin/fsck_udf/main.c
469
if (udf_rw16(sfid->tag.id) != TAGID_FID) {
sbin/fsck_udf/main.c
548
if (udf_rw16(fid->tag.id) == TAGID_FID) {
sbin/fsck_udf/main.c
557
assert(udf_rw16(fid->tag.id) == TAGID_FID);
sbin/fsck_udf/main.c
561
if (udf_rw32(fid->tag.tag_loc) != location)
sbin/fsck_udf/main.c
593
assert(udf_rw16(fid->tag.id) == TAGID_FID);
sbin/fsck_udf/main.c
596
fid->tag.tag_loc = udf_rw32(location);
sbin/fsck_udf/main.c
751
struct desc_tag *tag = &dscrptr->tag;
sbin/fsck_udf/main.c
765
id = udf_rw16(tag->id);
sbin/fsck_udf/main.c
769
dscr_lb_num = udf_rw32(fe->tag.tag_loc);
sbin/fsck_udf/main.c
775
dscr_lb_num = udf_rw32(efe->tag.tag_loc);
sbin/fsck_udf/main.c
939
struct desc_tag *tag = &dscrptr->tag;
sbin/fsck_udf/main.c
951
id = udf_rw16(tag->id);
sbin/fsck_udf/main.c
977
udf_mark_allocated(udf_rw32(tag->tag_loc), vpart_num, 1);
sbin/ifconfig/ieee80211.c
1029
printwpaie(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen)
sbin/ifconfig/ieee80211.c
1033
printf("%s", tag);
sbin/ifconfig/ieee80211.c
1115
printrsnie(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen)
sbin/ifconfig/ieee80211.c
1120
printf("%s", tag);
sbin/ifconfig/ieee80211.c
1204
printssid(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen)
sbin/ifconfig/ieee80211.c
1208
printf("%s<%.*s>", tag, copy_essid(ssid, maxlen, ie+2, ie[1]), ssid);
sbin/ifconfig/ieee80211.c
1212
printrates(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen)
sbin/ifconfig/ieee80211.c
1217
printf("%s", tag);
sbin/ifconfig/ieee80211.c
1229
printcountry(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen)
sbin/ifconfig/ieee80211.c
1235
printf("%s<%c%c%c", tag, cie->cc[0], cie->cc[1], cie->cc[2]);
sbin/ifconfig/ieee80211.c
910
printie(const char* tag, const uint8_t *ie, size_t ielen, int maxlen)
sbin/ifconfig/ieee80211.c
912
printf("%s", tag);
sbin/ifconfig/ieee80211.c
914
maxlen -= strlen(tag)+2;
sbin/ifconfig/ieee80211.c
946
printwmeparam(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen)
sbin/ifconfig/ieee80211.c
954
printf("%s", tag);
sbin/ifconfig/ieee80211.c
977
printwmeinfo(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen)
sbin/ifconfig/ieee80211.c
979
printf("%s", tag);
sbin/ifconfig/vlan.c
116
int64_t tag;
sbin/ifconfig/vlan.c
121
if (!prop_dictionary_get_int64(env, "vlantag", &tag)) {
sbin/ifconfig/vlan.c
126
vlr.vlr_tag = tag;
sbin/ifconfig/vlan.c
138
int64_t tag;
sbin/ifconfig/vlan.c
150
else if (!prop_dictionary_get_int64(env, "vlantag", &tag)) {
sbin/ifconfig/vlan.c
154
vlr.vlr_tag = (unsigned short)tag;
sbin/iscsid/iscsid_discover.c
106
uint32_t tag;
sbin/iscsid/iscsid_discover.c
142
if (isns_get_tlv(t, ISNS_TLV_FIRST, &tag, &data_len, &data_p)) {
sbin/iscsid/iscsid_discover.c
147
if (tag != isnst_iSCSIName) {
sbin/iscsid/iscsid_discover.c
149
tag, data_len));
sbin/iscsid/iscsid_discover.c
154
isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p);
sbin/iscsid/iscsid_discover.c
155
if (tag != isnst_Delimiter) {
sbin/iscsid/iscsid_discover.c
157
tag, data_len));
sbin/iscsid/iscsid_discover.c
162
isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p);
sbin/iscsid/iscsid_discover.c
163
if (tag != isnst_iSCSIName || !data_len || data_len >= ISCSI_STRING_LENGTH) {
sbin/iscsid/iscsid_discover.c
165
"length = %d)", tag, data_len));
sbin/iscsid/iscsid_discover.c
171
isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p);
sbin/iscsid/iscsid_discover.c
172
if (tag != isnst_iSCSINodeType || data_len != 4) {
sbin/iscsid/iscsid_discover.c
174
"length = %d)", tag, data_len));
sbin/iscsid/iscsid_discover.c
185
isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p);
sbin/iscsid/iscsid_discover.c
186
if (tag == isnst_iSCSIAlias) {
sbin/iscsid/iscsid_discover.c
189
tag, data_len));
sbin/iscsid/iscsid_discover.c
194
isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p);
sbin/iscsid/iscsid_discover.c
223
if (isns_get_tlv(t, ISNS_TLV_FIRST, &tag, &data_len, &data_p)) {
sbin/iscsid/iscsid_discover.c
228
if (tag != isnst_iSCSIName) {
sbin/iscsid/iscsid_discover.c
230
tag, data_len));
sbin/iscsid/iscsid_discover.c
235
isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p);
sbin/iscsid/iscsid_discover.c
236
if (tag != isnst_Delimiter) {
sbin/iscsid/iscsid_discover.c
238
tag, data_len));
sbin/iscsid/iscsid_discover.c
243
while (!isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p)) {
sbin/iscsid/iscsid_discover.c
244
if (tag != isnst_PGiSCSIName || !data_len ||
sbin/iscsid/iscsid_discover.c
247
"length=%d)", tag, data_len));
sbin/iscsid/iscsid_discover.c
253
isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p);
sbin/iscsid/iscsid_discover.c
254
if (tag != isnst_PGPortIPAddr || data_len != 16) {
sbin/iscsid/iscsid_discover.c
256
"length=%d)", tag, data_len));
sbin/iscsid/iscsid_discover.c
263
isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p);
sbin/iscsid/iscsid_discover.c
264
if (tag != isnst_PGPortIPPort || data_len != 4) {
sbin/iscsid/iscsid_discover.c
266
"length=%d)", tag, data_len));
sbin/iscsid/iscsid_discover.c
280
isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p);
sbin/iscsid/iscsid_discover.c
281
if (tag != isnst_PGTag || (data_len && data_len != 4)) {
sbin/iscsid/iscsid_discover.c
283
"length=%d)", tag, data_len));
sbin/iscsid/iscsid_discover.c
575
uint32_t tag;
sbin/iscsid/iscsid_discover.c
622
if (isns_get_tlv(t, ISNS_TLV_FIRST, &tag, &data_len, &data_p)) {
sbin/iscsid/iscsid_discover.c
629
if (tag != isnst_iSCSIName || !data_len ||
sbin/iscsid/iscsid_discover.c
632
"length=%d)", tag, data_len));
sbin/iscsid/iscsid_discover.c
639
if (isns_get_tlv(t, ISNS_TLV_NEXT, &tag, &data_len, &data_p)) {
sbin/iscsid/iscsid_discover.c
644
if (tag == isnst_Delimiter && isns_get_tlv(t, ISNS_TLV_NEXT, &tag,
sbin/iscsid/iscsid_discover.c
650
if (tag != isnst_iSCSINodeType || data_len != 4) {
sbin/iscsid/iscsid_discover.c
652
"length=%d)", tag, data_len));
sbin/iscsid/iscsid_globals.h
216
uint32_t tag; /* the group tag */
sbin/iscsid/iscsid_targets.c
102
curr->tag = tag;
sbin/iscsid/iscsid_targets.c
64
u_short tag = addr->group_tag;
sbin/iscsid/iscsid_targets.c
92
if (curr->tag == tag)
sbin/newfs_udf/udf_core.c
1030
udf_inittag(&pri->tag, TAGID_PRI_VOL, /* loc */ 0);
sbin/newfs_udf/udf_core.c
1059
pri->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1111
udf_inittag(&pd->tag, TAGID_PARTITION, /* loc */ 0);
sbin/newfs_udf/udf_core.c
1140
pd->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1158
udf_inittag(&usd->tag, TAGID_UNALLOC_SPACE, /* loc */ 0);
sbin/newfs_udf/udf_core.c
1166
usd->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1187
udf_inittag(&lvd->tag, TAGID_LOGVOL, /* loc */ 0);
sbin/newfs_udf/udf_core.c
1213
lvd->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1250
crclen = udf_rw16(logvol->tag.desc_crc_len) + pmap1_size;
sbin/newfs_udf/udf_core.c
1251
logvol->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1287
crclen = udf_rw16(logvol->tag.desc_crc_len) + pmapv_size;
sbin/newfs_udf/udf_core.c
1288
logvol->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1340
crclen = udf_rw16(logvol->tag.desc_crc_len) + pmaps_size;
sbin/newfs_udf/udf_core.c
1341
logvol->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1358
udf_inittag(&spt->tag, TAGID_SPARING_TABLE, /* loc */ 0);
sbin/newfs_udf/udf_core.c
1378
spt->tag.desc_crc_len = udf_rw16((uint16_t)crclen);
sbin/newfs_udf/udf_core.c
1426
crclen = udf_rw16(logvol->tag.desc_crc_len) + pmapv_size;
sbin/newfs_udf/udf_core.c
1427
logvol->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1472
udf_inittag(&ivd->tag, TAGID_IMP_VOL, /* loc */ 0);
sbin/newfs_udf/udf_core.c
1490
ivd->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1558
if (lvid->tag.desc_crc_len == 0)
sbin/newfs_udf/udf_core.c
1559
lvid->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1575
udf_inittag(&lvid->tag, TAGID_LOGVOL_INTEGRITY, /* loc */ 0);
sbin/newfs_udf/udf_core.c
1598
udf_inittag(&fsd->tag, TAGID_FSD, /* loc */ 0);
sbin/newfs_udf/udf_core.c
1629
fsd->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1650
udf_inittag(&sbd->tag, TAGID_SPACE_BITMAP, /* loc */ 0);
sbin/newfs_udf/udf_core.c
1661
sbd->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
1961
tag_id = udf_rw16(dscr->tag.id);
sbin/newfs_udf/udf_core.c
2024
if (udf_rw16(fid->tag.id) != TAGID_FID)
sbin/newfs_udf/udf_core.c
2040
udf_inittag(&fid->tag, TAGID_FID, udf_rw32(parent->loc.lb_num));
sbin/newfs_udf/udf_core.c
2045
fid->tag.desc_crc_len = udf_rw16(fidsize - UDF_DESC_TAG_LENGTH);
sbin/newfs_udf/udf_core.c
2063
udf_inittag(&fid->tag, TAGID_FID, udf_rw32(ref->loc.lb_num));
sbin/newfs_udf/udf_core.c
2091
fid->tag.desc_crc_len = udf_rw16(fidsize - UDF_DESC_TAG_LENGTH);
sbin/newfs_udf/udf_core.c
2110
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
sbin/newfs_udf/udf_core.c
2114
} else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
sbin/newfs_udf/udf_core.c
2142
dscr->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
2216
tag_id = udf_rw16(dscr->tag.id);
sbin/newfs_udf/udf_core.c
2234
if (udf_rw16(eahdr->tag.id) != TAGID_EXTATTR_HDR)
sbin/newfs_udf/udf_core.c
2319
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
sbin/newfs_udf/udf_core.c
2324
} else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
sbin/newfs_udf/udf_core.c
2344
udf_inittag(&extattrhdr->tag, TAGID_EXTATTR_HDR, /* loc */ 0);
sbin/newfs_udf/udf_core.c
2347
extattrhdr->tag.desc_crc_len = udf_rw16(8);
sbin/newfs_udf/udf_core.c
2434
udf_inittag(&fe->tag, TAGID_FENTRY, /* loc */ 0);
sbin/newfs_udf/udf_core.c
2513
fe->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
2534
udf_inittag(&efe->tag, TAGID_EXTFENTRY, /* loc */ 0);
sbin/newfs_udf/udf_core.c
2599
efe->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
2624
crclen = udf_rw16(efe->tag.desc_crc_len);
sbin/newfs_udf/udf_core.c
2645
efe->tag.desc_crc_len = udf_rw16(crclen);
sbin/newfs_udf/udf_core.c
2952
fe->tag.desc_crc_len = udf_rw16(vat_len);
sbin/newfs_udf/udf_core.c
2983
efe->tag.desc_crc_len = udf_rw16(vat_len);
sbin/newfs_udf/udf_core.c
3013
fe->tag.desc_crc_len = udf_rw16(vat_len);
sbin/newfs_udf/udf_core.c
4193
dscr->tag.tag_loc = udf_rw32(location);
sbin/newfs_udf/udf_core.c
4274
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
sbin/newfs_udf/udf_core.c
4279
if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
sbin/newfs_udf/udf_core.c
4285
extattrhdr->tag.tag_loc = udf_rw32(location);
sbin/newfs_udf/udf_core.c
4289
dscr->tag.tag_loc = udf_rw32(location);
sbin/newfs_udf/udf_core.c
518
struct desc_tag *tag = blob;
sbin/newfs_udf/udf_core.c
522
pos = (uint8_t *) tag;
sbin/newfs_udf/udf_core.c
530
if (sum != tag->cksum) {
sbin/newfs_udf/udf_core.c
546
struct desc_tag *tag = blob;
sbin/newfs_udf/udf_core.c
549
crc_len = udf_rw16(tag->desc_crc_len);
sbin/newfs_udf/udf_core.c
558
crc = udf_cksum(((uint8_t *) tag) + UDF_DESC_TAG_LENGTH, crc_len);
sbin/newfs_udf/udf_core.c
559
if (crc != udf_rw16(tag->desc_crc)) {
sbin/newfs_udf/udf_core.c
571
struct desc_tag *tag = blob;
sbin/newfs_udf/udf_core.c
575
if (udf_rw32(tag->tag_loc) != location)
sbin/newfs_udf/udf_core.c
584
struct desc_tag *tag = &dscr->tag;
sbin/newfs_udf/udf_core.c
588
pos = (uint8_t *) tag;
sbin/newfs_udf/udf_core.c
595
tag->cksum = sum; /* 8 bit */
sbin/newfs_udf/udf_core.c
605
struct desc_tag *tag = &dscr->tag;
sbin/newfs_udf/udf_core.c
609
if (udf_rw16(tag->desc_crc_len) > 0) {
sbin/newfs_udf/udf_core.c
610
crc = udf_cksum(((uint8_t *) tag) + UDF_DESC_TAG_LENGTH,
sbin/newfs_udf/udf_core.c
611
udf_rw16(tag->desc_crc_len));
sbin/newfs_udf/udf_core.c
612
tag->desc_crc = udf_rw16(crc);
sbin/newfs_udf/udf_core.c
621
udf_inittag(struct desc_tag *tag, int tagid, uint32_t loc)
sbin/newfs_udf/udf_core.c
623
tag->id = udf_rw16(tagid);
sbin/newfs_udf/udf_core.c
624
tag->descriptor_ver = udf_rw16(context.dscrver);
sbin/newfs_udf/udf_core.c
625
tag->cksum = 0;
sbin/newfs_udf/udf_core.c
626
tag->reserved = 0;
sbin/newfs_udf/udf_core.c
627
tag->serial_num = udf_rw16(context.serialnum);
sbin/newfs_udf/udf_core.c
628
tag->tag_loc = udf_rw32(loc);
sbin/newfs_udf/udf_core.c
644
udf_inittag(&avdp->tag, TAGID_ANCHOR, layout.anchors[num]);
sbin/newfs_udf/udf_core.c
653
avdp->tag.desc_crc_len = udf_rw16(512-UDF_DESC_TAG_LENGTH);
sbin/newfs_udf/udf_core.c
664
udf_inittag(&dscr->tag, TAGID_TERM, loc);
sbin/newfs_udf/udf_core.c
667
dscr->tag.desc_crc_len = udf_rw16(512-UDF_DESC_TAG_LENGTH);
sbin/newfs_udf/udf_core.h
313
extern void udf_inittag(struct desc_tag *tag, int tagid, uint32_t loc);
sbin/resize_ffs/resize_ffs.c
281
nfmalloc(size_t nb, const char *tag)
sbin/resize_ffs/resize_ffs.c
289
(unsigned long int) nb, tag);
sbin/resize_ffs/resize_ffs.c
295
nfrealloc(void *blk, size_t nb, const char *tag)
sbin/resize_ffs/resize_ffs.c
303
(unsigned long int) nb, tag);
sbin/resize_ffs/resize_ffs.c
313
alloconce(size_t nb, const char *tag)
sbin/resize_ffs/resize_ffs.c
321
(unsigned long int) nb, tag);
sbin/routed/table.c
293
u_short tag,
sbin/routed/table.c
317
nc_ag.ag_tag = tag;
sbin/routed/table.c
404
ag->ag_tag = tag;
sbin/routed/table.c
462
if (ag->ag_tag != tag)
sbin/routed/table.c
463
tag = 0;
sbin/routed/table.c
491
ag->ag_tag = tag;
sbin/routed/table.c
492
tag = x;
sbin/routed/table.c
596
nag->ag_tag = tag;
share/examples/refuse/ian/libfetch/http.c
758
int comment, tag;
share/examples/refuse/ian/libfetch/http.c
760
comment = tag = 0;
share/examples/refuse/ian/libfetch/http.c
768
tag = comment = 0;
share/examples/refuse/ian/libfetch/http.c
771
} else if (tag && !comment && *q == '>') {
share/examples/refuse/ian/libfetch/http.c
773
tag = 0;
share/examples/refuse/ian/libfetch/http.c
774
} else if (!tag && *q == '<') {
share/examples/refuse/ian/libfetch/http.c
777
tag = 1;
share/examples/refuse/ian/libfetch/http.c
785
if (!tag && q > p)
sys/arch/acorn32/podulebus/podulebus.c
554
podulebus_shift_tag(bus_space_tag_t tag, u_int shift, bus_space_tag_t *tagp)
sys/arch/acorn32/podulebus/podulebus.c
565
**tagp = *tag;
sys/arch/algor/pci/vtpbc.c
151
vtpbc_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/algor/pci/vtpbc.c
155
*bp = (tag >> 16) & 0xff;
sys/arch/algor/pci/vtpbc.c
157
*dp = (tag >> 11) & 0x1f;
sys/arch/algor/pci/vtpbc.c
159
*fp = (tag >> 8) & 0x7;
sys/arch/algor/pci/vtpbc.c
163
vtpbc_conf_addr(struct vtpbc_config *vt, pcitag_t tag, int offset,
sys/arch/algor/pci/vtpbc.c
171
vtpbc_decompose_tag(vt, tag, &b, &d, &f);
sys/arch/algor/pci/vtpbc.c
180
*cfgoff = tag | offset;
sys/arch/algor/pci/vtpbc.c
189
vtpbc_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/algor/pci/vtpbc.c
197
if (vtpbc_conf_addr(vt, tag, offset, &cfgoff, &ad_low))
sys/arch/algor/pci/vtpbc.c
227
vtpbc_conf_write(void *v, pcitag_t tag, int offset, pcireg_t data)
sys/arch/algor/pci/vtpbc.c
233
if (vtpbc_conf_addr(vt, tag, offset, &cfgoff, &ad_low))
sys/arch/alpha/alpha/sys_machdep.c
195
pcitag_t tag;
sys/arch/alpha/alpha/sys_machdep.c
213
tag = pci_make_tag(alpha_pci_chipset, args.bus, args.device,
sys/arch/alpha/alpha/sys_machdep.c
217
pci_conf_write(alpha_pci_chipset, tag, args.reg,
sys/arch/alpha/alpha/sys_machdep.c
220
args.val = pci_conf_read(alpha_pci_chipset, tag,
sys/arch/alpha/include/bus_funcs.h
347
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/alpha/include/bus_funcs.h
350
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/alpha/include/bus_funcs.h
354
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/alpha/include/bus_funcs.h
356
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/alpha/include/bus_funcs.h
358
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/alpha/include/bus_funcs.h
360
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/alpha/pci/apecs_pci.c
105
apecs_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
sys/arch/alpha/pci/apecs_pci.c
119
pci_decompose_tag(&acp->ac_pc, tag, &secondary, 0, 0);
sys/arch/alpha/pci/apecs_pci.c
129
tag << 5UL | /* XXX */
sys/arch/alpha/pci/apecs_pci.c
147
printf("apecs_conf_write: tag 0x%lx, reg 0x%lx -> 0x%x @ %p\n", tag,
sys/arch/alpha/pci/apecs_pci.c
57
apecs_conf_read(void *cpv, pcitag_t tag, int offset)
sys/arch/alpha/pci/apecs_pci.c
71
pci_decompose_tag(&acp->ac_pc, tag, &secondary, 0, 0);
sys/arch/alpha/pci/apecs_pci.c
81
tag << 5UL | /* XXX */
sys/arch/alpha/pci/apecs_pci.c
97
printf("apecs_conf_read: tag 0x%lx, reg 0x%lx -> %x @ %p%s\n", tag, reg,
sys/arch/alpha/pci/cia_pci.c
105
tag | (offset & ~0x03));
sys/arch/alpha/pci/cia_pci.c
109
tag | (offset & ~0x03));
sys/arch/alpha/pci/cia_pci.c
113
tag << 5UL | /* XXX */
sys/arch/alpha/pci/cia_pci.c
147
printf("cia_conf_read: tag 0x%lx, reg 0x%lx -> %x @ %p%s\n", tag, reg,
sys/arch/alpha/pci/cia_pci.c
155
cia_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
sys/arch/alpha/pci/cia_pci.c
171
pci_decompose_tag(&ccp->cc_pc, tag, &secondary, 0, 0);
sys/arch/alpha/pci/cia_pci.c
188
tag | (offset & ~0x03));
sys/arch/alpha/pci/cia_pci.c
192
tag | (offset & ~0x03));
sys/arch/alpha/pci/cia_pci.c
196
tag << 5UL | /* XXX */
sys/arch/alpha/pci/cia_pci.c
214
printf("cia_conf_write: tag 0x%lx, reg 0x%lx -> 0x%x @ %p\n", tag,
sys/arch/alpha/pci/cia_pci.c
57
cia_conf_read(void *cpv, pcitag_t tag, int offset)
sys/arch/alpha/pci/cia_pci.c
88
pci_decompose_tag(&ccp->cc_pc, tag, &secondary, 0, 0);
sys/arch/alpha/pci/dwlpx_pci.c
103
*fp = (tag >> 13) & 0x7;
sys/arch/alpha/pci/dwlpx_pci.c
107
dwlpx_conf_read(void *cpv, pcitag_t tag, int offset)
sys/arch/alpha/pci/dwlpx_pci.c
123
secondary = tag >> 24;
sys/arch/alpha/pci/dwlpx_pci.c
125
tag &= 0x1fffff;
sys/arch/alpha/pci/dwlpx_pci.c
126
tag |= (secondary << 21);
sys/arch/alpha/pci/dwlpx_pci.c
130
secondary, offset, tag);
sys/arch/alpha/pci/dwlpx_pci.c
146
paddr = (unsigned long) tag;
sys/arch/alpha/pci/dwlpx_pci.c
176
dwlpx_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
sys/arch/alpha/pci/dwlpx_pci.c
192
secondary = tag >> 24;
sys/arch/alpha/pci/dwlpx_pci.c
194
tag &= 0x1fffff;
sys/arch/alpha/pci/dwlpx_pci.c
195
tag |= (secondary << 21);
sys/arch/alpha/pci/dwlpx_pci.c
198
secondary, offset, tag, data);
sys/arch/alpha/pci/dwlpx_pci.c
214
paddr = (unsigned long) tag;
sys/arch/alpha/pci/dwlpx_pci.c
77
pcitag_t tag;
sys/arch/alpha/pci/dwlpx_pci.c
82
tag = (b << 24) | (hpcdev << 22) | (pci_idsel << 16) | (f << 13);
sys/arch/alpha/pci/dwlpx_pci.c
83
return (tag);
sys/arch/alpha/pci/dwlpx_pci.c
87
dwlpx_decompose_tag(void *cpv, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/alpha/pci/dwlpx_pci.c
91
*bp = (tag >> 24) & 0xff;
sys/arch/alpha/pci/dwlpx_pci.c
93
int j, i = (tag >> 18) & 0xf;
sys/arch/alpha/pci/dwlpx_pci.c
99
j += (((tag >> 22) & 3) << 2);
sys/arch/alpha/pci/irongate.c
127
pcitag_t tag;
sys/arch/alpha/pci/irongate.c
153
tag = pci_make_tag(&icp->ic_pc, 0, IRONGATE_PCIHOST_DEV, 0);
sys/arch/alpha/pci/irongate.c
166
if (pci_get_capability(&icp->ic_pc, tag, PCI_CAP_AGP,
sys/arch/alpha/pci/irongate.c
175
apa.apa_pci_args.pa_tag = tag;
sys/arch/alpha/pci/irongate.c
177
irongate_conf_read0(icp, tag, PCI_ID_REG);
sys/arch/alpha/pci/irongate.c
179
irongate_conf_read0(icp, tag, PCI_CLASS_REG);
sys/arch/alpha/pci/irongate.c
74
pcitag_t tag;
sys/arch/alpha/pci/irongate.c
84
tag = pci_make_tag(&icp->ic_pc, 0, IRONGATE_PCIHOST_DEV, 0);
sys/arch/alpha/pci/irongate.c
87
reg = irongate_conf_read0(icp, tag, PCI_CLASS_REG);
sys/arch/alpha/pci/irongate_pci.c
106
REGVAL(PCI_CONF_ADDR) = (CONFADDR_ENABLE | tag | (offset & 0xff));
sys/arch/alpha/pci/irongate_pci.c
118
irongate_conf_write(void *ipv, pcitag_t tag, int offset, pcireg_t data)
sys/arch/alpha/pci/irongate_pci.c
126
REGVAL(PCI_CONF_ADDR) = (CONFADDR_ENABLE | tag | (offset & 0xff));
sys/arch/alpha/pci/irongate_pci.c
73
irongate_conf_read(void *ipv, pcitag_t tag, int offset)
sys/arch/alpha/pci/irongate_pci.c
89
pci_decompose_tag(&icp->ic_pc, tag, &b, &d, NULL);
sys/arch/alpha/pci/irongate_pci.c
93
return (irongate_conf_read0(ipv, tag, offset));
sys/arch/alpha/pci/irongate_pci.c
97
irongate_conf_read0(void *ipv, pcitag_t tag, int offset)
sys/arch/alpha/pci/lca_pci.c
117
printf("lca_conf_read: tag 0x%lx, reg 0x%lx -> %x @ %p%s\n", tag, reg,
sys/arch/alpha/pci/lca_pci.c
125
lca_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
sys/arch/alpha/pci/lca_pci.c
138
pci_decompose_tag(&lcp->lc_pc, tag, &secondary, &d, &f);
sys/arch/alpha/pci/lca_pci.c
144
confaddr = tag;
sys/arch/alpha/pci/lca_pci.c
164
printf("lca_conf_write: tag 0x%lx, reg 0x%lx -> 0x%x @ %p\n", tag,
sys/arch/alpha/pci/lca_pci.c
76
lca_conf_read(void *cpv, pcitag_t tag, int offset)
sys/arch/alpha/pci/lca_pci.c
89
pci_decompose_tag(&lcp->lc_pc, tag, &secondary, &d, &f);
sys/arch/alpha/pci/lca_pci.c
95
confaddr = tag;
sys/arch/alpha/pci/mcpcia_pci.c
104
if ((tag >> 21) == 0 && ((uint32_t) tag & 0x1f0000) == 0)
sys/arch/alpha/pci/mcpcia_pci.c
110
paddr = (unsigned long) tag;
sys/arch/alpha/pci/mcpcia_pci.c
123
mcpcia_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
sys/arch/alpha/pci/mcpcia_pci.c
135
if ((tag >> 21) == 0 && ((uint32_t) tag & 0x1f0000) == 0)
sys/arch/alpha/pci/mcpcia_pci.c
141
paddr = (unsigned long) tag;
sys/arch/alpha/pci/mcpcia_pci.c
75
pcitag_t tag;
sys/arch/alpha/pci/mcpcia_pci.c
76
tag = (b << 21) | (d << 16) | (f << 13);
sys/arch/alpha/pci/mcpcia_pci.c
77
return (tag);
sys/arch/alpha/pci/mcpcia_pci.c
81
mcpcia_decompose_tag(void *cpv, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/alpha/pci/mcpcia_pci.c
84
*bp = (tag >> 21) & 0xff;
sys/arch/alpha/pci/mcpcia_pci.c
86
*dp = (tag >> 16) & 0x1f;
sys/arch/alpha/pci/mcpcia_pci.c
88
*fp = (tag >> 13) & 0x7;
sys/arch/alpha/pci/mcpcia_pci.c
92
mcpcia_conf_read(void *cpv, pcitag_t tag, int offset)
sys/arch/alpha/pci/pci_machdep.c
109
tag = pci_make_tag(pc, bus, device, function);
sys/arch/alpha/pci/pci_machdep.c
110
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/alpha/pci/pci_machdep.c
115
class = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/alpha/pci/pci_machdep.c
132
nmatch = tga_cnmatch(iot, memt, pc, tag);
sys/arch/alpha/pci/pci_machdep.c
535
pci_decompose_tag(pci_chipset_tag_t const pc, pcitag_t const tag,
sys/arch/alpha/pci/pci_machdep.c
540
*busp = __SHIFTOUT(tag, PCI_CONF_TYPE1_BUS);
sys/arch/alpha/pci/pci_machdep.c
542
*devp = __SHIFTOUT(tag, PCI_CONF_TYPE1_DEVICE);
sys/arch/alpha/pci/pci_machdep.c
544
*funcp = __SHIFTOUT(tag, PCI_CONF_TYPE1_FUNCTION);
sys/arch/alpha/pci/pci_machdep.c
548
pc->pc_decompose_tag(pc->pc_conf_v, tag, busp, devp, funcp);
sys/arch/alpha/pci/pci_machdep.c
552
pci_conf_read(pci_chipset_tag_t const pc, pcitag_t const tag, int const reg)
sys/arch/alpha/pci/pci_machdep.c
555
return pc->pc_conf_read(pc->pc_conf_v, tag, reg);
sys/arch/alpha/pci/pci_machdep.c
559
pci_conf_write(pci_chipset_tag_t const pc, pcitag_t const tag, int const reg,
sys/arch/alpha/pci/pci_machdep.c
563
pc->pc_conf_write(pc->pc_conf_v, tag, reg, val);
sys/arch/alpha/pci/pci_machdep.c
98
pcitag_t tag;
sys/arch/alpha/pci/sio_pic.c
190
pcitag_t tag;
sys/arch/alpha/pci/sio_pic.c
208
tag = pci_make_tag(sio_pc, 0, device, 0);
sys/arch/alpha/pci/sio_pic.c
209
id = pci_conf_read(sio_pc, tag, PCI_ID_REG);
sys/arch/alpha/pci/tsp_pci.c
70
tsp_conf_read(void *cpv, pcitag_t tag, int offset)
sys/arch/alpha/pci/tsp_pci.c
78
datap = S_PAGE(pcp->pc_iobase | P_PCI_CONFIG | tag | (offset & ~3));
sys/arch/alpha/pci/tsp_pci.c
86
tsp_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
sys/arch/alpha/pci/tsp_pci.c
94
datap = S_PAGE(pcp->pc_iobase | P_PCI_CONFIG | tag | (offset & ~3));
sys/arch/alpha/pci/ttwoga_pci.c
108
ttwoga_conf_read(void *cpv, pcitag_t tag, int offset)
sys/arch/alpha/pci/ttwoga_pci.c
119
pci_decompose_tag(&tcp->tc_pc, tag, &b, &d, &f);
sys/arch/alpha/pci/ttwoga_pci.c
121
addr = b ? tag : ttwoga_make_type0addr(d, f);
sys/arch/alpha/pci/ttwoga_pci.c
154
tag, offset, data, datap, ba ? " (badaddr)" : "");
sys/arch/alpha/pci/ttwoga_pci.c
161
ttwoga_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
sys/arch/alpha/pci/ttwoga_pci.c
172
pci_decompose_tag(&tcp->tc_pc, tag, &b, &d, &f);
sys/arch/alpha/pci/ttwoga_pci.c
174
addr = b ? tag : ttwoga_make_type0addr(d, f);
sys/arch/alpha/pci/ttwoga_pci.c
205
tag, offset, data, datap);
sys/arch/amd64/include/fenv.h
95
uint32_t tag; /* Tag word register */
sys/arch/amiga/amiga/amiga_bus_simple_1word.c
60
oabs(bsm_absolute_)(bus_space_tag_t tag, bus_addr_t address,
sys/arch/amiga/amiga/amiga_bus_simple_1word.c
63
uint32_t pa = kvtop((void*) tag->base);
sys/arch/amiga/amiga/amiga_bus_simple_1word.c
64
*handlep = tag->base + (address - pa) * AMIGA_SIMPLE_BUS_STRIDE;
sys/arch/amiga/amiga/simple_busfuncs.c
77
bus_space_tag_t tag,
sys/arch/amiga/amiga/simple_busfuncs.c
83
*handlep = tag->base + address * AMIGA_SIMPLE_BUS_STRIDE;
sys/arch/amiga/dev/repulse.c
625
rep_intr(void *tag)
sys/arch/amiga/dev/repulse.c
634
sc = tag;
sys/arch/amiga/dev/toccata.c
292
toccata_intr(void *tag) {
sys/arch/amiga/dev/toccata.c
299
sc = tag;
sys/arch/amiga/include/pci_machdep.h
128
void amiga_pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/amiga/pci/cv3dpb.c
147
cv3dpb_pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/amiga/pci/cv3dpb.c
155
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/cv3dpb.c
168
cv3dpb_pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t val)
sys/arch/amiga/pci/cv3dpb.c
175
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/em4k.c
310
em4k_pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/amiga/pci/em4k.c
318
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/em4k.c
332
em4k_pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t val)
sys/arch/amiga/pci/em4k.c
339
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/empb.c
387
empb_pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/amiga/pci/empb.c
399
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/empb.c
421
empb_pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t val)
sys/arch/amiga/pci/empb.c
432
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/mppb.c
192
mppb_pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/amiga/pci/mppb.c
200
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/mppb.c
213
mppb_pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t val)
sys/arch/amiga/pci/mppb.c
220
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/p5pb.c
340
p5pb_pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/amiga/pci/p5pb.c
349
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/p5pb.c
376
p5pb_pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t val)
sys/arch/amiga/pci/p5pb.c
384
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/amiga/pci/pci_machdep.c
63
amiga_pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp,
sys/arch/amiga/pci/pci_machdep.c
67
*bp = (tag >> 16) & 0xff;
sys/arch/amiga/pci/pci_machdep.c
69
*dp = (tag >> 11) & 0x1f;
sys/arch/amiga/pci/pci_machdep.c
71
*fp = (tag >> 8) & 0x07;
sys/arch/arc/include/bus_funcs.h
233
#define bus_space_read_stream_2(tag, bsh, offset) \
sys/arch/arc/include/bus_funcs.h
234
bus_space_read_2(tag, bsh, offset)
sys/arch/arc/include/bus_funcs.h
235
#define bus_space_read_stream_4(tag, bsh, offset) \
sys/arch/arc/include/bus_funcs.h
236
bus_space_read_4(tag, bsh, offset)
sys/arch/arc/include/bus_funcs.h
237
#define bus_space_read_stream_8(tag, bsh, offset) \
sys/arch/arc/include/bus_funcs.h
238
bus_space_read_8(tag, bsh, offset)
sys/arch/arc/include/bus_funcs.h
239
#define bus_space_read_multi_stream_2(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
240
bus_space_read_multi_2(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
241
#define bus_space_read_multi_stream_4(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
242
bus_space_read_multi_4(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
243
#define bus_space_read_multi_stream_8(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
244
bus_space_read_multi_8(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
245
#define bus_space_read_region_stream_2(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
246
bus_space_read_region_2(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
247
#define bus_space_read_region_stream_4(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
248
bus_space_read_region_4(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
249
#define bus_space_read_region_stream_8(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
250
bus_space_read_region_8(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
251
#define bus_space_write_stream_2(tag, bsh, offset, data) \
sys/arch/arc/include/bus_funcs.h
252
bus_space_write_2(tag, bsh, offset, data)
sys/arch/arc/include/bus_funcs.h
253
#define bus_space_write_stream_4(tag, bsh, offset, data) \
sys/arch/arc/include/bus_funcs.h
254
bus_space_write_4(tag, bsh, offset, data)
sys/arch/arc/include/bus_funcs.h
255
#define bus_space_write_stream_8(tag, bsh, offset, data) \
sys/arch/arc/include/bus_funcs.h
256
bus_space_write_8(tag, bsh, offset, data)
sys/arch/arc/include/bus_funcs.h
257
#define bus_space_write_multi_stream_2(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
258
bus_space_write_multi_2(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
259
#define bus_space_write_multi_stream_4(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
260
bus_space_write_multi_4(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
261
#define bus_space_write_multi_stream_8(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
262
bus_space_write_multi_8(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
263
#define bus_space_write_region_stream_2(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
264
bus_space_write_region_2(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
265
#define bus_space_write_region_stream_4(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
266
bus_space_write_region_4(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
267
#define bus_space_write_region_stream_8(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
268
bus_space_write_region_8(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
269
#define bus_space_write_region_stream_2(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
270
bus_space_write_region_2(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
271
#define bus_space_write_region_stream_4(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
272
bus_space_write_region_4(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
273
#define bus_space_write_region_stream_8(tag, bsh, offset, datap, count) \
sys/arch/arc/include/bus_funcs.h
274
bus_space_write_region_8(tag, bsh, offset, datap, count)
sys/arch/arc/include/bus_funcs.h
275
#define bus_space_set_multi_stream_2(tag, bsh, offset, data, count) \
sys/arch/arc/include/bus_funcs.h
276
bus_space_set_multi_2(tag, bsh, offset, data, count)
sys/arch/arc/include/bus_funcs.h
277
#define bus_space_set_multi_stream_4(tag, bsh, offset, data, count) \
sys/arch/arc/include/bus_funcs.h
278
bus_space_set_multi_4(tag, bsh, offset, data, count)
sys/arch/arc/include/bus_funcs.h
279
#define bus_space_set_multi_stream_8(tag, bsh, offset, data, count) \
sys/arch/arc/include/bus_funcs.h
280
bus_space_set_multi_8(tag, bsh, offset, data, count)
sys/arch/arc/include/bus_funcs.h
281
#define bus_space_set_region_stream_2(tag, bsh, offset, data, count) \
sys/arch/arc/include/bus_funcs.h
282
bus_space_set_region_2(tag, bsh, offset, data, count)
sys/arch/arc/include/bus_funcs.h
283
#define bus_space_set_region_stream_4(tag, bsh, offset, data, count) \
sys/arch/arc/include/bus_funcs.h
284
bus_space_set_region_4(tag, bsh, offset, data, count)
sys/arch/arc/include/bus_funcs.h
285
#define bus_space_set_region_stream_8(tag, bsh, offset, data, count) \
sys/arch/arc/include/bus_funcs.h
286
bus_space_set_region_8(tag, bsh, offset, data, count)
sys/arch/arc/include/bus_funcs.h
351
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/arc/include/bus_funcs.h
354
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/arc/include/bus_funcs.h
358
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/arc/include/bus_funcs.h
360
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/arc/include/bus_funcs.h
362
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/arc/include/bus_funcs.h
364
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/arc/include/bus_funcs.h
367
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/arc/include/bus_funcs.h
373
void _bus_dma_tag_init(bus_dma_tag_t tag);
sys/arch/arc/include/bus_funcs.h
374
void jazz_bus_dma_tag_init(bus_dma_tag_t tag);
sys/arch/arc/include/bus_funcs.h
375
void isadma_bounce_tag_init(bus_dma_tag_t tag);
sys/arch/arc/pci/necpb.c
176
pcitag_t tag;
sys/arch/arc/pci/necpb.c
220
tag = necpb_make_tag(pc, 0, dev, 0);
sys/arch/arc/pci/necpb.c
221
id = necpb_conf_read(pc, tag, PCI_ID_REG);
sys/arch/arc/pci/necpb.c
226
class = necpb_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/arc/pci/necpb.c
227
csr = necpb_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/arc/pci/necpb.c
231
necpb_conf_write(pc, tag, PCI_MAPREG_ROM, 0);
sys/arch/arc/pci/necpb.c
234
necpb_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/arch/arc/pci/necpb.c
304
pcitag_t tag;
sys/arch/arc/pci/necpb.c
309
tag = 0x80000000 | (bus << 16) | (device << 11) | (function << 8);
sys/arch/arc/pci/necpb.c
310
return tag;
sys/arch/arc/pci/necpb.c
314
necpb_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp,
sys/arch/arc/pci/necpb.c
319
*bp = (tag >> 16) & 0xff;
sys/arch/arc/pci/necpb.c
321
*dp = (tag >> 11) & 0x1f;
sys/arch/arc/pci/necpb.c
323
*fp = (tag >> 8) & 0x07;
sys/arch/arc/pci/necpb.c
327
necpb_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/arc/pci/necpb.c
336
out32(RD94_SYS_PCI_CONFADDR, tag | reg);
sys/arch/arc/pci/necpb.c
345
necpb_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/arc/pci/necpb.c
353
out32(RD94_SYS_PCI_CONFADDR, tag | reg);
sys/arch/arm/acpi/acpi_pci_graviton.c
55
acpi_pci_graviton_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t *data)
sys/arch/arm/acpi/acpi_pci_graviton.c
60
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_graviton.c
71
return acpimcfg_conf_read(pc, tag, reg, data);
sys/arch/arm/acpi/acpi_pci_graviton.c
75
acpi_pci_graviton_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/arm/acpi/acpi_pci_graviton.c
80
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_graviton.c
90
return acpimcfg_conf_write(pc, tag, reg, data);
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
120
pci_chipset_tag_t pc, pcitag_t tag)
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
124
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
134
acpi_pci_layerscape_gen4_is_tag_okay(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
139
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
145
return acpimcfg_conf_valid(pc, tag, reg);
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
151
acpi_pci_layerscape_gen4_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t *data)
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
157
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
159
if (!acpi_pci_layerscape_gen4_is_tag_okay(pc, tag, reg)) {
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
172
acpi_pci_layerscape_gen4_select_target(pcie, pc, tag);
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
185
acpi_pci_layerscape_gen4_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
191
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
193
if (!acpi_pci_layerscape_gen4_is_tag_okay(pc, tag, reg))
sys/arch/arm/acpi/acpi_pci_layerscape_gen4.c
201
acpi_pci_layerscape_gen4_select_target(pcie, pc, tag);
sys/arch/arm/acpi/acpi_pci_machdep.c
284
acpi_pci_md_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/acpi/acpi_pci_machdep.c
287
*bp = (tag >> 16) & 0xff;
sys/arch/arm/acpi/acpi_pci_machdep.c
289
*dp = (tag >> 11) & 0x1f;
sys/arch/arm/acpi/acpi_pci_machdep.c
291
*fp = (tag >> 8) & 0x7;
sys/arch/arm/acpi/acpi_pci_machdep.c
319
acpi_pci_md_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/acpi/acpi_pci_machdep.c
328
ap->ap_conf_read(&ap->ap_pc, tag, offset, &val);
sys/arch/arm/acpi/acpi_pci_machdep.c
330
acpimcfg_conf_read(&ap->ap_pc, tag, offset, &val);
sys/arch/arm/acpi/acpi_pci_machdep.c
336
acpi_pci_md_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/acpi/acpi_pci_machdep.c
344
ap->ap_conf_write(&ap->ap_pc, tag, offset, val);
sys/arch/arm/acpi/acpi_pci_machdep.c
346
acpimcfg_conf_write(&ap->ap_pc, tag, offset, val);
sys/arch/arm/acpi/acpi_pci_n1sdp.c
104
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_n1sdp.c
115
if (!acpi_pci_n1sdp_valid(pc, tag)) {
sys/arch/arm/acpi/acpi_pci_n1sdp.c
120
return acpimcfg_conf_read(pc, tag, reg, data);
sys/arch/arm/acpi/acpi_pci_n1sdp.c
124
acpi_pci_n1sdp_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/arm/acpi/acpi_pci_n1sdp.c
129
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_n1sdp.c
139
if (!acpi_pci_n1sdp_valid(pc, tag))
sys/arch/arm/acpi/acpi_pci_n1sdp.c
142
return acpimcfg_conf_write(pc, tag, reg, data);
sys/arch/arm/acpi/acpi_pci_n1sdp.c
75
acpi_pci_n1sdp_valid(pci_chipset_tag_t pc, pcitag_t tag)
sys/arch/arm/acpi/acpi_pci_n1sdp.c
84
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_n1sdp.c
99
acpi_pci_n1sdp_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t *data)
sys/arch/arm/acpi/acpi_pci_smccc.c
48
acpi_pci_smccc_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg,
sys/arch/arm/acpi/acpi_pci_smccc.c
55
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_pci_smccc.c
73
acpi_pci_smccc_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg,
sys/arch/arm/acpi/acpi_pci_smccc.c
80
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/acpi/acpi_platform.c
354
pci_decompose_tag(paa->pc, paa->tag, &b, &d, &f);
sys/arch/arm/apple/apple_pcie.c
469
pcitag_t tag = pa->pa_tag;
sys/arch/arm/apple/apple_pcie.c
473
if (!pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL))
sys/arch/arm/apple/apple_pcie.c
476
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/apple/apple_pcie.c
478
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/apple/apple_pcie.c
480
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/apple/apple_pcie.c
483
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/apple/apple_pcie.c
488
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/apple/apple_pcie.c
490
pci_conf_write(pc, tag, off + PCI_MSI_MADDR64_LO,
sys/arch/arm/apple/apple_pcie.c
492
pci_conf_write(pc, tag, off + PCI_MSI_MADDR64_HI,
sys/arch/arm/apple/apple_pcie.c
494
pci_conf_write(pc, tag, off + PCI_MSI_MDATA64, data);
sys/arch/arm/apple/apple_pcie.c
496
pci_conf_write(pc, tag, off + PCI_MSI_MADDR,
sys/arch/arm/apple/apple_pcie.c
498
pci_conf_write(pc, tag, off + PCI_MSI_MDATA, data);
sys/arch/arm/apple/apple_pcie.c
501
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/apple/apple_pcie.c
509
pcitag_t tag = pa->pa_tag;
sys/arch/arm/apple/apple_pcie.c
513
if (!pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL))
sys/arch/arm/apple/apple_pcie.c
516
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/apple/apple_pcie.c
518
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/apple/apple_pcie.c
527
pcitag_t tag = pa->pa_tag;
sys/arch/arm/apple/apple_pcie.c
532
if (!pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL))
sys/arch/arm/apple/apple_pcie.c
535
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/arm/apple/apple_pcie.c
537
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/arm/apple/apple_pcie.c
554
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/arm/apple/apple_pcie.c
556
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/arm/apple/apple_pcie.c
564
pcitag_t tag = pa->pa_tag;
sys/arch/arm/apple/apple_pcie.c
568
if (!pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL))
sys/arch/arm/apple/apple_pcie.c
571
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/arm/apple/apple_pcie.c
573
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/arm/apple/apple_platform.c
162
apple_platform_get_mac_address(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/arm/apple/apple_platform.c
175
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/arm32/bus_dma.c
1955
_bus_dmatag_subregion(bus_dma_tag_t tag, bus_addr_t min_addr,
sys/arch/arm/arm32/bus_dma.c
1966
for (i = 0, dr = tag->_ranges; i < tag->_nranges; i++, dr++) {
sys/arch/arm/arm32/bus_dma.c
1987
*newtag = tag;
sys/arch/arm/arm32/bus_dma.c
1989
if (tag->_tag_needs_free)
sys/arch/arm/arm32/bus_dma.c
1990
(tag->_tag_needs_free)++;
sys/arch/arm/arm32/bus_dma.c
1994
const size_t tagsize = sizeof(*tag) + nranges * sizeof(*dr);
sys/arch/arm/arm32/bus_dma.c
2000
**newtag = *tag;
sys/arch/arm/arm32/bus_dma.c
2005
if (tag->_ranges == NULL) {
sys/arch/arm/arm32/bus_dma.c
2012
for (i = 0, pdr = tag->_ranges; i < tag->_nranges; i++, pdr++) {
sys/arch/arm/arm32/bus_dma.c
2050
_bus_dmatag_destroy(bus_dma_tag_t tag)
sys/arch/arm/arm32/bus_dma.c
2053
switch (tag->_tag_needs_free) {
sys/arch/arm/arm32/bus_dma.c
2057
const size_t tagsize = sizeof(*tag)
sys/arch/arm/arm32/bus_dma.c
2058
+ tag->_nranges * sizeof(*tag->_ranges);
sys/arch/arm/arm32/bus_dma.c
2059
kmem_intr_free(tag, tagsize); /* last reference to tag */
sys/arch/arm/arm32/bus_dma.c
2063
(tag->_tag_needs_free)--; /* one less reference */
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
179
!vcprop_tag_success_p(&vb_vpu.vbt_vpuclockrate.tag) ||
sys/arch/arm/broadcom/bcm2835_bsc_acpi.c
71
.tag = {
sys/arch/arm/broadcom/bcm2835_com_acpi.c
163
!vcprop_tag_success_p(&vb.vbt_clockrate.tag)) {
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
211
!vcprop_tag_success_p(&vb_emmc.vbt_emmcclockrate.tag) ||
sys/arch/arm/broadcom/bcm2835_emmc_acpi.c
75
.tag = {
sys/arch/arm/broadcom/bcm2838_pcie.c
572
bcmstb_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/broadcom/bcm2838_pcie.c
575
*bp = (tag >> 20) & 0xff;
sys/arch/arm/broadcom/bcm2838_pcie.c
577
*dp = (tag >> 15) & 0x1f;
sys/arch/arm/broadcom/bcm2838_pcie.c
579
*fp = (tag >> 12) & 0x7;
sys/arch/arm/broadcom/bcm2838_pcie.c
591
bcmstb_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/broadcom/bcm2838_pcie.c
601
bcmstb_decompose_tag(v, tag, &bus, &dev, &fn);
sys/arch/arm/broadcom/bcm2838_pcie.c
621
bcmstb_conf_write(void *v, pcitag_t tag, int offset, pcireg_t data)
sys/arch/arm/broadcom/bcm2838_pcie.c
630
bcmstb_decompose_tag(v, tag, &bus, &dev, &fn);
sys/arch/arm/broadcom/bcm283x_platform.c
1001
!vcprop_tag_success_p(&vb_setfb.vbt_res.tag) ||
sys/arch/arm/broadcom/bcm283x_platform.c
1002
!vcprop_tag_success_p(&vb_setfb.vbt_vres.tag) ||
sys/arch/arm/broadcom/bcm283x_platform.c
1003
!vcprop_tag_success_p(&vb_setfb.vbt_depth.tag) ||
sys/arch/arm/broadcom/bcm283x_platform.c
1004
!vcprop_tag_success_p(&vb_setfb.vbt_allocbuf.tag) ||
sys/arch/arm/broadcom/bcm283x_platform.c
1005
!vcprop_tag_success_p(&vb_setfb.vbt_blank.tag) ||
sys/arch/arm/broadcom/bcm283x_platform.c
1006
!vcprop_tag_success_p(&vb_setfb.vbt_pitch.tag)) {
sys/arch/arm/broadcom/bcm283x_platform.c
1450
vcprop_tag_success_p(&vb.vbt_dmachan.tag)) {
sys/arch/arm/broadcom/bcm283x_platform.c
1465
vcprop_tag_success_p(&vb.vbt_macaddr.tag)) {
sys/arch/arm/broadcom/bcm283x_platform.c
359
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
368
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
401
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
408
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
415
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
422
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
429
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
436
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
443
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
450
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
457
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
465
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
473
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
481
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
507
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
535
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
544
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
553
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
561
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
569
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
578
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
586
.tag = {
sys/arch/arm/broadcom/bcm283x_platform.c
616
if (vcprop_tag_success_p(&vb_uart.vbt_uartclockrate.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
625
if (vcprop_tag_success_p(&vb.vbt_vpuclockrate.tag) &&
sys/arch/arm/broadcom/bcm283x_platform.c
636
if (vcprop_tag_success_p(&vb.vbt_emmcclockrate.tag) &&
sys/arch/arm/broadcom/bcm283x_platform.c
647
if (vcprop_tag_success_p(&vb.vbt_emmc2clockrate.tag) &&
sys/arch/arm/broadcom/bcm283x_platform.c
673
if (vcprop_tag_success_p(&vb_uart.vbt_uartclockrate.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
675
if (vcprop_tag_success_p(&vb_uart.vbt_vpuclockrate.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
761
if (vcprop_tag_success_p(&vptp_mem->tag)) {
sys/arch/arm/broadcom/bcm283x_platform.c
762
size_t n = vcprop_tag_resplen(&vptp_mem->tag) /
sys/arch/arm/broadcom/bcm283x_platform.c
779
if (vcprop_tag_success_p(&vb.vbt_armclockrate.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
785
if (vcprop_tag_success_p(&vb.vbt_memory.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
788
if (vcprop_tag_success_p(&vb.vbt_armclockrate.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
791
if (vcprop_tag_success_p(&vb.vbt_vpuclockrate.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
794
if (vcprop_tag_success_p(&vb.vbt_emmcclockrate.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
797
if (vcprop_tag_success_p(&vb.vbt_emmc2clockrate.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
800
if (vcprop_tag_success_p(&vb.vbt_fwrev.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
803
if (vcprop_tag_success_p(&vb.vbt_boardmodel.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
806
if (vcprop_tag_success_p(&vb.vbt_macaddr.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
809
if (vcprop_tag_success_p(&vb.vbt_boardrev.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
812
if (vcprop_tag_success_p(&vb.vbt_serial.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
815
if (vcprop_tag_success_p(&vb.vbt_dmachan.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
819
if (vcprop_tag_success_p(&vb.vbt_cmdline.tag))
sys/arch/arm/broadcom/bcm283x_platform.c
934
!vcprop_tag_success_p(&vb_edid.vbt_edid.tag) ||
sys/arch/arm/broadcom/bcm53xx_pax.c
390
bcmpax_decompose_tag(void *v, pcitag_t tag, int *busp, int *devp, int *funcp)
sys/arch/arm/broadcom/bcm53xx_pax.c
393
*busp = __SHIFTOUT(tag, CFG_ADDR_BUS);
sys/arch/arm/broadcom/bcm53xx_pax.c
395
*devp = __SHIFTOUT(tag, CFG_ADDR_DEV);
sys/arch/arm/broadcom/bcm53xx_pax.c
397
*funcp = __SHIFTOUT(tag, CFG_ADDR_FUNC);
sys/arch/arm/broadcom/bcm53xx_pax.c
410
bcmpax_conf_addr_write(struct bcmpax_softc *sc, pcitag_t tag)
sys/arch/arm/broadcom/bcm53xx_pax.c
412
if ((tag & (CFG_ADDR_BUS|CFG_ADDR_DEV)) == 0) {
sys/arch/arm/broadcom/bcm53xx_pax.c
413
uint32_t reg = __SHIFTOUT(tag, CFG_ADDR_REG);
sys/arch/arm/broadcom/bcm53xx_pax.c
414
uint32_t func = __SHIFTOUT(tag, CFG_ADDR_FUNC);
sys/arch/arm/broadcom/bcm53xx_pax.c
422
bcmpax_write_4(sc, PCIE_CFG_ADDR, tag);
sys/arch/arm/broadcom/bcm53xx_pax.c
430
bcmpax_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/arm/broadcom/bcm53xx_pax.c
442
if ((tag & (CFG_ADDR_BUS|CFG_ADDR_DEV|CFG_ADDR_FUNC)) == 0
sys/arch/arm/broadcom/bcm53xx_pax.c
451
bus_size_t data_reg = bcmpax_conf_addr_write(sc, tag | reg);
sys/arch/arm/broadcom/bcm53xx_pax.c
469
bcmpax_conf_write(void *v, pcitag_t tag, int reg, pcireg_t val)
sys/arch/arm/broadcom/bcm53xx_pax.c
477
bus_size_t data_reg = bcmpax_conf_addr_write(sc, tag | reg);
sys/arch/arm/cortex/gic_v2m.c
126
pcitag_t tag = pa->pa_tag;
sys/arch/arm/cortex/gic_v2m.c
130
if (!pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL))
sys/arch/arm/cortex/gic_v2m.c
133
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/cortex/gic_v2m.c
135
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/cortex/gic_v2m.c
137
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/cortex/gic_v2m.c
140
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/cortex/gic_v2m.c
145
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/cortex/gic_v2m.c
147
pci_conf_write(pc, tag, off + PCI_MSI_MADDR64_LO,
sys/arch/arm/cortex/gic_v2m.c
149
pci_conf_write(pc, tag, off + PCI_MSI_MADDR64_HI,
sys/arch/arm/cortex/gic_v2m.c
151
pci_conf_write(pc, tag, off + PCI_MSI_MDATA64, data);
sys/arch/arm/cortex/gic_v2m.c
153
pci_conf_write(pc, tag, off + PCI_MSI_MADDR,
sys/arch/arm/cortex/gic_v2m.c
155
pci_conf_write(pc, tag, off + PCI_MSI_MDATA, data);
sys/arch/arm/cortex/gic_v2m.c
158
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/cortex/gic_v2m.c
166
pcitag_t tag = pa->pa_tag;
sys/arch/arm/cortex/gic_v2m.c
170
if (!pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL))
sys/arch/arm/cortex/gic_v2m.c
173
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/cortex/gic_v2m.c
175
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/cortex/gic_v2m.c
184
pcitag_t tag = pa->pa_tag;
sys/arch/arm/cortex/gic_v2m.c
189
if (!pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL))
sys/arch/arm/cortex/gic_v2m.c
192
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/arm/cortex/gic_v2m.c
194
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/arm/cortex/gic_v2m.c
206
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/arm/cortex/gic_v2m.c
208
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/arm/cortex/gic_v2m.c
216
pcitag_t tag = pa->pa_tag;
sys/arch/arm/cortex/gic_v2m.c
220
if (!pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL))
sys/arch/arm/cortex/gic_v2m.c
223
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/arm/cortex/gic_v2m.c
225
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/arm/cortex/gicv3_its.c
449
gicv3_its_devid(pci_chipset_tag_t pc, pcitag_t tag)
sys/arch/arm/cortex/gicv3_its.c
454
pci_decompose_tag(pc, tag, &b, &d, &f);
sys/arch/arm/cortex/gicv3_its.c
550
pcitag_t tag = pa->pa_tag;
sys/arch/arm/cortex/gicv3_its.c
554
if (!pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL))
sys/arch/arm/cortex/gicv3_its.c
557
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/cortex/gicv3_its.c
560
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/cortex/gicv3_its.c
563
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/cortex/gicv3_its.c
565
pci_conf_write(pc, tag, off + PCI_MSI_MADDR64_LO,
sys/arch/arm/cortex/gicv3_its.c
567
pci_conf_write(pc, tag, off + PCI_MSI_MADDR64_HI,
sys/arch/arm/cortex/gicv3_its.c
569
pci_conf_write(pc, tag, off + PCI_MSI_MDATA64, data);
sys/arch/arm/cortex/gicv3_its.c
572
pci_conf_write(pc, tag, off + PCI_MSI_MADDR,
sys/arch/arm/cortex/gicv3_its.c
574
pci_conf_write(pc, tag, off + PCI_MSI_MDATA, data);
sys/arch/arm/cortex/gicv3_its.c
577
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/cortex/gicv3_its.c
585
pcitag_t tag = pa->pa_tag;
sys/arch/arm/cortex/gicv3_its.c
589
if (!pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL))
sys/arch/arm/cortex/gicv3_its.c
592
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/arm/cortex/gicv3_its.c
594
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/arm/cortex/gicv3_its.c
603
pcitag_t tag = pa->pa_tag;
sys/arch/arm/cortex/gicv3_its.c
608
if (!pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL))
sys/arch/arm/cortex/gicv3_its.c
623
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/arm/cortex/gicv3_its.c
625
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/arm/cortex/gicv3_its.c
633
pcitag_t tag = pa->pa_tag;
sys/arch/arm/cortex/gicv3_its.c
637
if (!pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL))
sys/arch/arm/cortex/gicv3_its.c
640
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/arm/cortex/gicv3_its.c
642
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/arm/fdt/pcihost_fdt.c
395
pcihost_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/fdt/pcihost_fdt.c
398
*bp = (tag >> 16) & 0xff;
sys/arch/arm/fdt/pcihost_fdt.c
400
*dp = (tag >> 11) & 0x1f;
sys/arch/arm/fdt/pcihost_fdt.c
402
*fp = (tag >> 8) & 0x7;
sys/arch/arm/fdt/pcihost_fdt.c
414
pcihost_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/fdt/pcihost_fdt.c
420
pcihost_decompose_tag(v, tag, &b, &d, &f);
sys/arch/arm/fdt/pcihost_fdt.c
441
pcihost_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/fdt/pcihost_fdt.c
447
pcihost_decompose_tag(v, tag, &b, &d, &f);
sys/arch/arm/footbridge/footbridge_pci.c
158
footbridge_pci_decompose_tag(void *pcv, pcitag_t tag, int *busp, int *devicep, int *functionp)
sys/arch/arm/footbridge/footbridge_pci.c
162
pcv, (uint32_t)tag, busp, devicep, functionp);
sys/arch/arm/footbridge/footbridge_pci.c
166
*busp = (tag >> 16) & 0xff;
sys/arch/arm/footbridge/footbridge_pci.c
168
*devicep = (tag >> 11) & 0x1f;
sys/arch/arm/footbridge/footbridge_pci.c
170
*functionp = (tag >> 8) & 0x7;
sys/arch/arm/footbridge/footbridge_pci.c
174
footbridge_pci_conf_read(void *pcv, pcitag_t tag, int reg)
sys/arch/arm/footbridge/footbridge_pci.c
183
footbridge_pci_decompose_tag(pcv, tag, &bus, &device, &function);
sys/arch/arm/footbridge/footbridge_pci.c
196
pcv, (uint32_t)tag, reg, data);
sys/arch/arm/footbridge/footbridge_pci.c
202
footbridge_pci_conf_write(void *pcv, pcitag_t tag, int reg, pcireg_t data)
sys/arch/arm/footbridge/footbridge_pci.c
210
footbridge_pci_decompose_tag(pcv, tag, &bus, &device, &function);
sys/arch/arm/footbridge/footbridge_pci.c
221
pcv, (uint32_t)tag, reg, data);
sys/arch/arm/gemini/gemini_ipm.c
159
gemini_ipm_register(uint8_t tag, unsigned int ipl, size_t quota,
sys/arch/arm/gemini/gemini_ipm.c
170
tag, ipl, quota, consume, counter, arg));
sys/arch/arm/gemini/gemini_ipm.c
174
if (tag == 0)
sys/arch/arm/gemini/gemini_ipm.c
178
disp = &sc->sc_dispatch_tab[tag];
sys/arch/arm/gemini/gemini_ipm.c
236
KASSERT(desc.tag != IPM_TAG_NONE);
sys/arch/arm/gemini/gemini_ipm.c
237
disp = &sc->sc_dispatch_tab[desc.tag];
sys/arch/arm/gemini/gemini_ipm.c
277
__FUNCTION__, __LINE__, descp, ndesc, descp->tag));
sys/arch/arm/gemini/gemini_ipm.c
320
uint8_t tag = IPM_TAG_GPN;
sys/arch/arm/gemini/gemini_ipm.c
328
disp = &sc->sc_dispatch_tab[tag];
sys/arch/arm/gemini/gemini_ipm.c
81
KASSERT(desc_dst->tag != IPM_TAG_NONE);
sys/arch/arm/gemini/gemini_ipm.c
97
KASSERT(desc_src->tag != IPM_TAG_NONE);
sys/arch/arm/gemini/gemini_ipm.h
15
uint8_t tag;
sys/arch/arm/gemini/gemini_lpc.c
163
it8712_pnp_read(lpctag_t tag, int ldn, uint index)
sys/arch/arm/gemini/gemini_lpc.c
165
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpc.c
178
it8712_pnp_write(lpctag_t tag, int ldn, uint index, uint8_t val)
sys/arch/arm/gemini/gemini_lpc.c
180
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpc.c
193
it8712_pnp_enter(lpctag_t tag)
sys/arch/arm/gemini/gemini_lpc.c
195
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpc.c
206
it8712_pnp_exit(lpctag_t tag)
sys/arch/arm/gemini/gemini_lpc.c
208
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpc.c
217
it8712_intr_establish(lpctag_t tag, uint intr, int ipl, int ist,
sys/arch/arm/gemini/gemini_lpc.c
220
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpc.c
229
it8712_intr_disestablish(lpctag_t tag, void *ih)
sys/arch/arm/gemini/gemini_lpc.c
231
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpchc.c
144
gemini_lpchc_init(lpcintrtag_t tag)
sys/arch/arm/gemini/gemini_lpchc.c
146
gemini_lpchc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpchc.c
157
gemini_lpchc_intr_establish(lpcintrtag_t tag, uint irq,
sys/arch/arm/gemini/gemini_lpchc.c
160
gemini_lpchc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpchc.c
201
gemini_lpchc_intr_disestablish(lpcintrtag_t tag, void *ih)
sys/arch/arm/gemini/gemini_lpchc.c
203
gemini_lpchc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpcvar.h
50
lpc_pnp_read(lpctag_t tag, int ldn, uint off)
sys/arch/arm/gemini/gemini_lpcvar.h
52
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpcvar.h
53
return (*sc->sc_bus_ops->lpc_pnp_read)(tag, ldn, off);
sys/arch/arm/gemini/gemini_lpcvar.h
57
lpc_pnp_write(lpctag_t tag, int ldn, uint off, uint8_t val)
sys/arch/arm/gemini/gemini_lpcvar.h
59
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpcvar.h
60
return (*sc->sc_bus_ops->lpc_pnp_write)(tag, ldn, off, val);
sys/arch/arm/gemini/gemini_lpcvar.h
64
lpc_pnp_enter(lpctag_t tag)
sys/arch/arm/gemini/gemini_lpcvar.h
66
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpcvar.h
67
return (*sc->sc_bus_ops->lpc_pnp_enter)(tag);
sys/arch/arm/gemini/gemini_lpcvar.h
71
lpc_pnp_exit(lpctag_t tag)
sys/arch/arm/gemini/gemini_lpcvar.h
73
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpcvar.h
74
return (*sc->sc_bus_ops->lpc_pnp_exit)(tag);
sys/arch/arm/gemini/gemini_lpcvar.h
78
lpc_intr_establish(lpctag_t tag, uint intr, int ipl, int ist,
sys/arch/arm/gemini/gemini_lpcvar.h
81
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpcvar.h
85
(tag, intr, ipl, ist, func, arg);
sys/arch/arm/gemini/gemini_lpcvar.h
91
lpc_intr_disestablish(lpctag_t tag, void *ih)
sys/arch/arm/gemini/gemini_lpcvar.h
93
gemini_lpc_softc_t *sc = tag;
sys/arch/arm/gemini/gemini_lpcvar.h
94
return (*sc->sc_bus_ops->lpc_intr_disestablish)(tag, ih);
sys/arch/arm/gemini/gemini_pci.c
257
gemini_pci_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/gemini/gemini_pci.c
260
*bp = (tag >> 16) & 0xff;
sys/arch/arm/gemini/gemini_pci.c
262
*dp = (tag >> 11) & 0x1f;
sys/arch/arm/gemini/gemini_pci.c
264
*fp = (tag >> 8) & 0x7;
sys/arch/arm/gemini/gemini_pci.c
273
gemini_pci_conf_setup(struct obio_softc *sc, pcitag_t tag, int offset,
sys/arch/arm/gemini/gemini_pci.c
280
gemini_pci_decompose_tag(sc, tag, &ps->ps_b, &ps->ps_d, &ps->ps_f);
sys/arch/arm/gemini/gemini_pci.c
293
gemini_pci_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/gemini/gemini_pci.c
301
if (gemini_pci_conf_setup(sc, tag, offset, &ps))
sys/arch/arm/gemini/gemini_pci.c
330
gemini_pci_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/gemini/gemini_pci.c
336
if (gemini_pci_conf_setup(sc, tag, offset, &ps))
sys/arch/arm/include/bus_funcs.h
748
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/arm/include/bus_funcs.h
751
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/arm/include/bus_funcs.h
753
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/arm/include/bus_funcs.h
755
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/arm/include/bus_funcs.h
757
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/arm/include/bus_funcs.h
767
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/arm/ixp12x0/ixp12x0_pci.c
144
ixp12x0_pci_decompose_tag(void *v, pcitag_t tag, int *busp, int *devicep, int *functionp)
sys/arch/arm/ixp12x0/ixp12x0_pci.c
148
v, tag, (int)busp, (int)devicep, (int)functionp);
sys/arch/arm/ixp12x0/ixp12x0_pci.c
152
*busp = (tag >> 16) & 0xff;
sys/arch/arm/ixp12x0/ixp12x0_pci.c
154
*devicep = (tag >> 11) & 0x1f;
sys/arch/arm/ixp12x0/ixp12x0_pci.c
156
*functionp = (tag >> 8) & 0x7;
sys/arch/arm/ixp12x0/ixp12x0_pci.c
160
ixp12x0_pci_conf_setup(void *v, struct ixp12x0_softc *sc, pcitag_t tag, int offset)
sys/arch/arm/ixp12x0/ixp12x0_pci.c
168
ixp12x0_pci_decompose_tag(v, tag, &bus, &device, &function);
sys/arch/arm/ixp12x0/ixp12x0_pci.c
184
ixp12x0_pci_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/ixp12x0/ixp12x0_pci.c
187
vaddr_t va = ixp12x0_pci_conf_setup(v, sc, tag, offset);
sys/arch/arm/ixp12x0/ixp12x0_pci.c
193
sc->sc_conf0_ioh, va, tag, offset);
sys/arch/arm/ixp12x0/ixp12x0_pci.c
213
ixp12x0_pci_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/ixp12x0/ixp12x0_pci.c
216
vaddr_t va = ixp12x0_pci_conf_setup(v, sc, tag, offset);
sys/arch/arm/ixp12x0/ixp12x0_pci.c
221
tag, offset, va, sc->sc_conf0_ioh);
sys/arch/arm/marvell/mvsoc.c
1151
marvell_winparams_by_tag(device_t dev, int tag, int *target, int *attribute,
sys/arch/arm/marvell/mvsoc.c
1157
rv = mvsoc_target(tag, target, attribute, &base32, size);
sys/arch/arm/marvell/mvsoc.c
1237
mvsoc_target(int tag, uint32_t *target, uint32_t *attr, uint32_t *base,
sys/arch/arm/marvell/mvsoc.c
1244
if (tag == MVSOC_TAG_INTERNALREG) {
sys/arch/arm/marvell/mvsoc.c
1260
if (mvsoc_tags[i].tag == tag)
sys/arch/arm/marvell/mvsoc.c
1271
if (tag == MARVELL_TAG_SDRAM_CS0 ||
sys/arch/arm/marvell/mvsoc.c
1272
tag == MARVELL_TAG_SDRAM_CS1 ||
sys/arch/arm/marvell/mvsoc.c
1273
tag == MARVELL_TAG_SDRAM_CS2 ||
sys/arch/arm/marvell/mvsoc.c
1274
tag == MARVELL_TAG_SDRAM_CS3)
sys/arch/arm/marvell/mvsoc.c
1276
else if (tag == MARVELL_TAG_AXI_CS0 ||
sys/arch/arm/marvell/mvsoc.c
1277
tag == MARVELL_TAG_AXI_CS1)
sys/arch/arm/marvell/mvsoc.c
1278
return mvsoc_target_axi(tag, base, size);
sys/arch/arm/marvell/mvsoc.c
138
int tag;
sys/arch/arm/marvell/mvsoc.c
1385
mvsoc_target_axi(int tag, uint32_t *base, uint32_t *size)
sys/arch/arm/marvell/mvsoc.c
1394
switch (tag) {
sys/arch/arm/marvell/mvsoc.c
1402
aprint_error("unknown TAG: 0x%x", tag);
sys/arch/arm/marvell/mvsoc_space.c
426
int tag = (int)space;
sys/arch/arm/marvell/mvsoc_space.c
428
if (tag != 0) {
sys/arch/arm/marvell/mvsoc_space.c
433
window = mvsoc_target(tag, NULL, NULL, &base, NULL);
sys/arch/arm/marvell/pci_machdep.c
271
gtpci_mbus_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/arm/marvell/pci_machdep.c
274
const pcireg_t addr = tag | reg;
sys/arch/arm/marvell/pci_machdep.c
289
gtpci_mbus_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/arm/marvell/pci_machdep.c
292
pcireg_t addr = tag | (reg & 0xfc);
sys/arch/arm/marvell/pci_machdep.c
384
mvpex_mbus_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/arm/marvell/pci_machdep.c
394
mvpex_decompose_tag(v, tag, &bus, &dev, &func);
sys/arch/arm/marvell/pci_machdep.c
415
addr = ((reg & 0xf00) << 24) | tag | (reg & 0xfc);
sys/arch/arm/nvidia/tegra_pcie.c
655
tegra_pcie_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/nvidia/tegra_pcie.c
658
*bp = (tag >> 16) & 0xff;
sys/arch/arm/nvidia/tegra_pcie.c
660
*dp = (tag >> 11) & 0x1f;
sys/arch/arm/nvidia/tegra_pcie.c
662
*fp = (tag >> 8) & 0x7;
sys/arch/arm/nvidia/tegra_pcie.c
666
tegra_pcie_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/nvidia/tegra_pcie.c
676
tegra_pcie_decompose_tag(v, tag, &b, &d, &f);
sys/arch/arm/nvidia/tegra_pcie.c
697
tegra_pcie_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/nvidia/tegra_pcie.c
707
tegra_pcie_decompose_tag(v, tag, &b, &d, &f);
sys/arch/arm/nxp/imxpcie.c
652
imxpcie_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/nxp/imxpcie.c
655
*bp = (tag >> 16) & 0xff;
sys/arch/arm/nxp/imxpcie.c
657
*dp = (tag >> 11) & 0x1f;
sys/arch/arm/nxp/imxpcie.c
659
*fp = (tag >> 8) & 0x7;
sys/arch/arm/nxp/imxpcie.c
678
imxpcie_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/nxp/imxpcie.c
686
imxpcie_decompose_tag(v, tag, &b, &d, &f);
sys/arch/arm/nxp/imxpcie.c
702
PCIE_WRITE(sc, PCIE_PL_IATURLTA, tag << 8);
sys/arch/arm/nxp/imxpcie.c
726
imxpcie_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/nxp/imxpcie.c
733
imxpcie_decompose_tag(v, tag, &b, &d, &f);
sys/arch/arm/nxp/imxpcie.c
749
PCIE_WRITE(sc, PCIE_PL_IATURLTA, tag << 8);
sys/arch/arm/rockchip/rk3399_pcie.c
549
rkpcie_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/rockchip/rk3399_pcie.c
552
*bp = (tag >> 20) & 0xff;
sys/arch/arm/rockchip/rk3399_pcie.c
554
*dp = (tag >> 15) & 0x1f;
sys/arch/arm/rockchip/rk3399_pcie.c
556
*fp = (tag >> 12) & 0x7;
sys/arch/arm/rockchip/rk3399_pcie.c
574
rkpcie_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/rockchip/rk3399_pcie.c
585
rkpcie_decompose_tag(sc, tag, &bus, &dev, &fn);
sys/arch/arm/rockchip/rk3399_pcie.c
612
rkpcie_conf_write(void *v, pcitag_t tag, int offset, pcireg_t data)
sys/arch/arm/rockchip/rk3399_pcie.c
622
rkpcie_decompose_tag(sc, tag, &bus, &dev, &fn);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
135
#define tag_to_devno(tag) (((tag)&DEVNO_MASK)>>DEVNO_SHIFT)
sys/arch/arm/s3c2xx0/s3c2800_pci.c
428
s3c2800_pci_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/s3c2xx0/s3c2800_pci.c
431
*bp = (tag >> BUSNO_SHIFT) & 0xff;
sys/arch/arm/s3c2xx0/s3c2800_pci.c
433
*dp = (tag >> DEVNO_SHIFT) & 0x1f;
sys/arch/arm/s3c2xx0/s3c2800_pci.c
435
*fp = (tag >> FUNNO_SHIFT) & 0x7;
sys/arch/arm/s3c2xx0/s3c2800_pci.c
439
make_pci_conf_va(struct sspci_softc * sc, pcitag_t tag, int offset)
sys/arch/arm/s3c2xx0/s3c2800_pci.c
445
if ((tag & BUSNO_MASK) == 0) {
sys/arch/arm/s3c2xx0/s3c2800_pci.c
447
int devno = tag_to_devno(tag);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
453
(tag & (DEVNO_MASK | FUNNO_MASK)) + offset;
sys/arch/arm/s3c2xx0/s3c2800_pci.c
462
s3c2800_pci_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/s3c2xx0/s3c2800_pci.c
465
vaddr_t va = make_pci_conf_va(sc, tag, offset);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
471
sc->sc_conf0_ioh, tag, offset);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
490
s3c2800_pci_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/s3c2xx0/s3c2800_pci.c
493
vaddr_t va = make_pci_conf_va(sc, tag, offset);
sys/arch/arm/s3c2xx0/s3c2800_pci.c
497
printf("s3c2800_pci_conf_write: tag=%lx offset=%x -> va=%lx\n", tag, offset, va);
sys/arch/arm/sunxi/sunxi_hdmi.c
637
i2c_tag_t tag = &sc->sc_ic;
sys/arch/arm/sunxi/sunxi_hdmi.c
641
if ((error = iic_acquire_bus(tag, 0)) != 0)
sys/arch/arm/sunxi/sunxi_hdmi.c
646
error = iic_exec(tag, I2C_OP_READ_WITH_STOP, DDC_ADDR, wbuf, 1,
sys/arch/arm/sunxi/sunxi_hdmi.c
648
iic_release_bus(tag, 0);
sys/arch/arm/sunxi/sunxi_hdmi.c
745
const uint8_t tag = edid[0];
sys/arch/arm/sunxi/sunxi_hdmi.c
751
tag, rev, off);
sys/arch/arm/sunxi/sunxi_hdmi.c
756
if (tag != 0x02 || rev != 3)
sys/arch/arm/xscale/becc_pci.c
171
becc_pci_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/xscale/becc_pci.c
175
*bp = (tag >> 16) & 0xff;
sys/arch/arm/xscale/becc_pci.c
177
*dp = (tag >> 11) & 0x1f;
sys/arch/arm/xscale/becc_pci.c
179
*fp = (tag >> 8) & 0x7;
sys/arch/arm/xscale/becc_pci.c
190
becc_pci_conf_setup(struct becc_softc *sc, pcitag_t tag, int offset,
sys/arch/arm/xscale/becc_pci.c
197
becc_pci_decompose_tag(sc, tag, &ps->ps_b, &ps->ps_d, &ps->ps_f);
sys/arch/arm/xscale/becc_pci.c
212
ps->ps_offset = tag | offset | 1;
sys/arch/arm/xscale/becc_pci.c
270
becc_pci_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/xscale/becc_pci.c
278
if (becc_pci_conf_setup(sc, tag, offset, &ps))
sys/arch/arm/xscale/becc_pci.c
311
becc_pci_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/xscale/becc_pci.c
318
if (becc_pci_conf_setup(sc, tag, offset, &ps))
sys/arch/arm/xscale/i80312_pci.c
153
i80312_pci_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/xscale/i80312_pci.c
157
*bp = (tag >> 16) & 0xff;
sys/arch/arm/xscale/i80312_pci.c
159
*dp = (tag >> 11) & 0x1f;
sys/arch/arm/xscale/i80312_pci.c
161
*fp = (tag >> 8) & 0x7;
sys/arch/arm/xscale/i80312_pci.c
174
i80312_pci_conf_setup(struct i80312_softc *sc, pcitag_t tag, int offset,
sys/arch/arm/xscale/i80312_pci.c
183
i80312_pci_decompose_tag(sc, tag, &ps->ps_b, &ps->ps_d, &ps->ps_f);
sys/arch/arm/xscale/i80312_pci.c
218
ps->ps_addr_val = tag | offset | 1;
sys/arch/arm/xscale/i80312_pci.c
225
i80312_pci_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/xscale/i80312_pci.c
233
if (i80312_pci_conf_setup(sc, tag, offset, &ps))
sys/arch/arm/xscale/i80312_pci.c
262
i80312_pci_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/xscale/i80312_pci.c
268
if (i80312_pci_conf_setup(sc, tag, offset, &ps))
sys/arch/arm/xscale/i80321_pci.c
162
i80321_pci_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/arm/xscale/i80321_pci.c
166
*bp = (tag >> 16) & 0xff;
sys/arch/arm/xscale/i80321_pci.c
168
*dp = (tag >> 11) & 0x1f;
sys/arch/arm/xscale/i80321_pci.c
170
*fp = (tag >> 8) & 0x7;
sys/arch/arm/xscale/i80321_pci.c
180
i80321_pci_conf_setup(struct i80321_softc *sc, pcitag_t tag, int offset,
sys/arch/arm/xscale/i80321_pci.c
188
i80321_pci_decompose_tag(sc, tag, &ps->ps_b, &ps->ps_d, &ps->ps_f);
sys/arch/arm/xscale/i80321_pci.c
218
ps->ps_addr_val = tag | offset | 1;
sys/arch/arm/xscale/i80321_pci.c
225
i80321_pci_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/xscale/i80321_pci.c
234
if (i80321_pci_conf_setup(sc, tag, offset, &ps))
sys/arch/arm/xscale/i80321_pci.c
261
i80321_pci_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/xscale/i80321_pci.c
267
if (i80321_pci_conf_setup(sc, tag, offset, &ps))
sys/arch/arm/xscale/ixp425_pci.c
137
ixp425_pci_decompose_tag(void *v, pcitag_t tag, int *busp, int *devicep,
sys/arch/arm/xscale/ixp425_pci.c
142
v, tag, (int)busp, (int)devicep, (int)functionp);
sys/arch/arm/xscale/ixp425_pci.c
145
*busp = (tag >> 16) & 0xff;
sys/arch/arm/xscale/ixp425_pci.c
147
*devicep = (tag >> 11) & 0x1f;
sys/arch/arm/xscale/ixp425_pci.c
149
*functionp = (tag >> 8) & 0x7;
sys/arch/arm/xscale/ixp425_pci.c
153
ixp425_pci_conf_setup(void *v, struct ixp425_softc *sc, pcitag_t tag, int offset)
sys/arch/arm/xscale/ixp425_pci.c
157
ixp425_pci_decompose_tag(v, tag, &bus, &device, &function);
sys/arch/arm/xscale/ixp425_pci.c
178
ixp425_pci_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/arm/xscale/ixp425_pci.c
193
ixp425_pci_conf_setup(v, sc, tag, offset);
sys/arch/arm/xscale/ixp425_pci.c
197
tag, offset);
sys/arch/arm/xscale/ixp425_pci.c
225
ixp425_pci_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/arm/xscale/ixp425_pci.c
236
ixp425_pci_conf_setup(v, sc, tag, offset);
sys/arch/arm/xscale/ixp425_pci.c
239
tag, offset, val);
sys/arch/atari/atari/bus.c
64
static int _bus_dmamap_load_buffer(bus_dma_tag_t tag, bus_dmamap_t,
sys/arch/atari/dev/grfabs_et.c
403
pcitag_t tag;
sys/arch/atari/dev/grfabs_et.c
407
tag = 0;
sys/arch/atari/dev/grfabs_et.c
413
tag = pci_make_tag(pc, 0, device, 0);
sys/arch/atari/dev/grfabs_et.c
414
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/atari/dev/grfabs_et.c
453
et_priv.pci_tag = tag;
sys/arch/atari/include/bus_funcs.h
377
int bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/atari/include/bus_funcs.h
380
int bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/atari/include/bus_funcs.h
384
void bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs);
sys/arch/atari/include/bus_funcs.h
385
int bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/atari/include/bus_funcs.h
387
void bus_dmamem_unmap(bus_dma_tag_t tag, void *kva, size_t size);
sys/arch/atari/include/bus_funcs.h
388
paddr_t bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/atari/pci/pci_hades.c
228
ati_vga_init(pci_chipset_tag_t pc, pcitag_t tag, int id, volatile uint8_t *ba,
sys/arch/atari/pci/pci_hades.c
235
pci_conf_write(pc, tag, PCI_MAPREG_START, PCI_LINMEMBASE);
sys/arch/atari/pci/pci_hades.c
236
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/atari/pci/pci_hades.c
239
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/arch/atari/pci/pci_hades.c
71
pci_config_offset(pcitag_t tag)
sys/arch/atari/pci/pci_hades.c
75
device = (tag >> 11) & 0x1f;
sys/arch/atari/pci/pci_hades.c
81
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/atari/pci/pci_hades.c
88
data = *(uint32_t *)(pci_conf_addr + pci_config_offset(tag) + reg);
sys/arch/atari/pci/pci_hades.c
93
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/atari/pci/pci_hades.c
99
*((uint32_t *)(pci_conf_addr + pci_config_offset(tag) + reg))
sys/arch/atari/pci/pci_machdep.c
228
pcitag_t tag;
sys/arch/atari/pci/pci_machdep.c
233
tag = 0;
sys/arch/atari/pci/pci_machdep.c
240
tag = pci_make_tag(pc, 0, device, 0);
sys/arch/atari/pci/pci_machdep.c
241
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/atari/pci/pci_machdep.c
245
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/atari/pci/pci_machdep.c
248
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/arch/atari/pci/pci_machdep.c
332
pcitag_t tag;
sys/arch/atari/pci/pci_machdep.c
339
tag = 0;
sys/arch/atari/pci/pci_machdep.c
350
tag = pci_make_tag(pc, 0, dev, 0);
sys/arch/atari/pci/pci_machdep.c
351
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/atari/pci/pci_machdep.c
355
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/atari/pci/pci_machdep.c
364
class = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/atari/pci/pci_machdep.c
374
p->tag = tag;
sys/arch/atari/pci/pci_machdep.c
387
address = pci_conf_read(pc, tag, reg);
sys/arch/atari/pci/pci_machdep.c
388
pci_conf_write(pc, tag, reg, 0xffffffff);
sys/arch/atari/pci/pci_machdep.c
389
mask = pci_conf_read(pc, tag, reg);
sys/arch/atari/pci/pci_machdep.c
390
pci_conf_write(pc, tag, reg, address);
sys/arch/atari/pci/pci_machdep.c
398
p->tag = tag;
sys/arch/atari/pci/pci_machdep.c
462
pci_conf_write(pc, tag, PCI_INTERRUPT_REG, csr);
sys/arch/atari/pci/pci_machdep.c
481
csr = pci_conf_read(pc, tag, PIIX_PCIB_MBIRQ0);
sys/arch/atari/pci/pci_machdep.c
485
pci_conf_write(pc, tag, PIIX_PCIB_MBIRQ0, csr);
sys/arch/atari/pci/pci_machdep.c
553
pci_conf_write(pc, p->tag, p->reg, p->address);
sys/arch/atari/pci/pci_machdep.c
554
csr = pci_conf_read(pc, p->tag,
sys/arch/atari/pci/pci_machdep.c
558
pci_conf_write(pc, p->tag,
sys/arch/atari/pci/pci_machdep.c
598
pci_conf_write(pc, p->tag, p->reg, p->address);
sys/arch/atari/pci/pci_machdep.c
599
csr = pci_conf_read(pc, p->tag,
sys/arch/atari/pci/pci_machdep.c
603
pci_conf_write(pc, p->tag,
sys/arch/atari/pci/pci_machdep.c
657
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/atari/pci/pci_machdep.c
661
*bp = (tag >> 16) & 0xff;
sys/arch/atari/pci/pci_machdep.c
663
*dp = (tag >> 11) & 0x1f;
sys/arch/atari/pci/pci_machdep.c
665
*fp = (tag >> 8) & 0x7;
sys/arch/atari/pci/pci_machdep.c
94
pcitag_t tag;
sys/arch/atari/pci/pci_milan.c
169
milan_vga_init(pci_chipset_tag_t pc, pcitag_t tag, int id,
sys/arch/atari/pci/pci_milan.c
176
pci_conf_write(pc, tag, PCI_MAPREG_START, PCI_LINMEMBASE);
sys/arch/atari/pci/pci_milan.c
177
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/atari/pci/pci_milan.c
180
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/arch/atari/pci/pci_milan.c
67
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/atari/pci/pci_milan.c
74
data = bswap32(milan_pci_confread(tag | reg));
sys/arch/atari/pci/pci_milan.c
86
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/atari/pci/pci_milan.c
92
milan_pci_confwrite(tag | reg, bswap32(data));
sys/arch/atari/pci/pci_tseng.c
79
tseng_init(pci_chipset_tag_t pc, pcitag_t tag, int id, volatile uint8_t *ba,
sys/arch/atari/pci/pci_tseng.c
89
pci_conf_write(pc, tag, PCI_MAPREG_START, PCI_LINMEMBASE);
sys/arch/atari/pci/pci_tseng.c
91
pci_conf_write(pc, tag, PCI_MAPREG_START + 4,
sys/arch/atari/pci/pci_tseng.c
93
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/atari/pci/pci_tseng.c
96
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/arch/atari/pci/pci_vga.c
121
pcitag_t tag;
sys/arch/atari/pci/pci_vga.c
130
tag = 0;
sys/arch/atari/pci/pci_vga.c
155
tag = pci_make_tag(pc, 0, device, 0);
sys/arch/atari/pci/pci_vga.c
156
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/atari/pci/pci_vga.c
163
class = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/atari/pci/pci_vga.c
176
milan_vga_init(pc, tag, id, regs, fb);
sys/arch/atari/pci/pci_vga.c
190
tseng_init(pc, tag, id, regs, fb);
sys/arch/atari/pci/pci_vga.c
194
ati_vga_init(pc, tag, id, regs, fb);
sys/arch/bebox/bebox/machdep.c
266
bus_space_tag_t tag = &genppc_isa_io_space_tag;
sys/arch/bebox/bebox/machdep.c
268
if(comcnattach(tag, consinfo->addr, consinfo->speed,
sys/arch/bebox/stand/boot/pci.c
140
u_long *tag;
sys/arch/bebox/stand/boot/pci.c
148
tag = PCI_CONFIG_SPACE(dev, func);
sys/arch/bebox/stand/boot/pci.c
150
if (tag == PCI_slots[i].config_addr)
sys/arch/bebox/stand/boot/siop.c
261
int offset, target, lun, tag, restart = 0, need_reset = 0;
sys/arch/bebox/stand/boot/siop.c
405
tag = readb(adp->addr + SIOP_SCRATCHA + 2);
sys/arch/bebox/stand/boot/siop.c
408
tag != 0) {
sys/arch/bebox/stand/boot/siop.c
411
target, lun, tag);
sys/arch/cobalt/pci/pci_machdep.c
106
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/cobalt/pci/pci_machdep.c
120
PCICFG_ENABLE | tag | reg);
sys/arch/cobalt/pci/pci_machdep.c
128
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/cobalt/pci/pci_machdep.c
135
PCICFG_ENABLE | tag | reg);
sys/arch/cobalt/pci/pci_machdep.c
274
pcitag_t tag;
sys/arch/cobalt/pci/pci_machdep.c
279
tag = pci_make_tag(pc, bus, dev, func);
sys/arch/cobalt/pci/pci_machdep.c
280
csr = pci_conf_read(pc, tag, APO_VIAIDECONF);
sys/arch/cobalt/pci/pci_machdep.c
281
pci_conf_write(pc, tag, APO_VIAIDECONF,
sys/arch/cobalt/pci/pci_machdep.c
84
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/cobalt/pci/pci_machdep.c
88
*bp = (tag >> 16) & 0xff;
sys/arch/cobalt/pci/pci_machdep.c
90
*dp = (tag >> 11) & 0x1f;
sys/arch/cobalt/pci/pci_machdep.c
92
*fp = (tag >> 8) & 0x07;
sys/arch/cobalt/pci/pci_machdep.c
96
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/cobalt/stand/boot/boot.c
388
uint32_t tag, reg;
sys/arch/cobalt/stand/boot/boot.c
396
tag = (PCIB_PCI_BUS << 16) | (PCIB_PCI_DEV << 11) |
sys/arch/cobalt/stand/boot/boot.c
398
reg = pcicfgread(tag, PCIB_BOARD_ID_REG);
sys/arch/cobalt/stand/boot/pci.c
40
pcicfgread(uint32_t tag, uint32_t off)
sys/arch/cobalt/stand/boot/pci.c
48
*pcicfg_addr = PCICFG_ENABLE | tag | (off & ~3U);
sys/arch/cobalt/stand/boot/tlp.c
165
uint32_t val, tag;
sys/arch/cobalt/stand/boot/tlp.c
189
tag = (0 << 16) | ( 7 << 11) | (0 << 8);
sys/arch/cobalt/stand/boot/tlp.c
191
l->csr = MIPS_PHYS_TO_KSEG1(pcicfgread(tag, 0x10) & ~3U);
sys/arch/dreamcast/dev/g2/gapspci_dma.c
73
int gaps_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/dreamcast/dev/g2/gapspci_dma.c
76
void gaps_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs);
sys/arch/dreamcast/dev/g2/gapspci_dma.c
77
int gaps_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs,
sys/arch/dreamcast/dev/g2/gapspci_dma.c
79
void gaps_dmamem_unmap(bus_dma_tag_t tag, void *kva, size_t size);
sys/arch/dreamcast/dev/g2/gapspci_dma.c
80
paddr_t gaps_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs,
sys/arch/dreamcast/dev/g2/gapspci_pci.c
130
gaps_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/dreamcast/dev/g2/gapspci_pci.c
134
if (tag == GAPS_PCITAG_MAGIC)
sys/arch/dreamcast/dev/g2/gapspci_pci.c
155
gaps_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/dreamcast/dev/g2/gapspci_pci.c
159
if (tag != GAPS_PCITAG_MAGIC)
sys/arch/dreamcast/dev/g2/gapspci_pci.c
177
gaps_conf_write(void *v, pcitag_t tag, int reg, pcireg_t val)
sys/arch/dreamcast/dev/g2/gapspci_pci.c
181
if (tag != GAPS_PCITAG_MAGIC)
sys/arch/dreamcast/dreamcast/kloader_machdep.c
61
struct kloader_bootinfo *info, struct kloader_page_tag *tag)
sys/arch/dreamcast/dreamcast/kloader_machdep.c
71
: : "r"(info), "r"(tag), "r"(func), "r"(sp));
sys/arch/emips/emips/machdep.c
662
uint16_t tag = Pmt->Tag;
sys/arch/emips/emips/machdep.c
664
if (tag == PMTTAG_END_OF_TABLE)
sys/arch/emips/emips/machdep.c
667
if ((tag != PMTTAG_SRAM) && (tag != PMTTAG_DDRAM))
sys/arch/emips/emips/machdep.c
676
for (;(ram->BaseAddressAndTag & SRAMBT_TAG) == tag;) {
sys/arch/emips/emips/machdep.c
689
ram = (tag == PMTTAG_SRAM) ? ram+1 : ram+2;
sys/arch/emips/include/bus.h
612
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/emips/include/bus.h
615
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/emips/include/bus.h
617
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/emips/include/bus.h
619
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/emips/include/bus.h
621
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/emips/include/bus.h
624
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/emips/stand/common/prom_iface.c
184
uint16_t tag;
sys/arch/emips/stand/common/prom_iface.c
197
tag = Pmt->Tag;
sys/arch/emips/stand/common/prom_iface.c
199
switch (tag) {
sys/arch/emips/stand/common/prom_iface.c
209
if (tag != (Ram->BaseAddressAndTag & RAMBT_TAG))
sys/arch/emips/stand/common/prom_iface.c
212
if ((tag != PMTTAG_FLASH) && (addr < base)) {
sys/arch/emips/stand/common/prom_iface.c
222
switch (tag) {
sys/arch/emips/stand/common/prom_iface.c
251
tag = Pmt->Tag;
sys/arch/emips/stand/common/prom_iface.c
253
switch (tag) {
sys/arch/emips/stand/common/prom_iface.c
263
if (tag != (Ram->BaseAddressAndTag & RAMBT_TAG))
sys/arch/emips/stand/common/prom_iface.c
272
if (tag == PMTTAG_FLASH)
sys/arch/emips/stand/common/prom_iface.c
290
if (tag == PMTTAG_DDRAM) Ram++; /* yeach */
sys/arch/emips/stand/common/prom_iface.c
301
tag = Pmt->Tag;
sys/arch/emips/stand/common/prom_iface.c
303
switch (tag) {
sys/arch/emips/stand/common/prom_iface.c
311
if (tag != (Ram->BaseAddressAndTag & RAMBT_TAG))
sys/arch/epoc32/stand/e32boot/ldd/epoc32.cpp
112
TUint *l2Tbl, tag;
sys/arch/epoc32/stand/e32boot/ldd/epoc32.cpp
115
tag = MapPhysicalAddress(l2Tbl, (TAny **)&l2Tbl);
sys/arch/epoc32/stand/e32boot/ldd/epoc32.cpp
117
UnmapPhysicalAddress(l2Tbl, tag);
sys/arch/epoc32/stand/e32boot/ldd/epoc32.cpp
141
TUint *l1Tbl, l1Index, l1, tag;
sys/arch/epoc32/stand/e32boot/ldd/epoc32.cpp
150
tag = *(l1Tbl + l1Index);
sys/arch/epoc32/stand/e32boot/ldd/epoc32.cpp
156
return tag;
sys/arch/epoc32/stand/e32boot/ldd/epoc32.cpp
160
EPOC32::UnmapPhysicalAddress(TAny *address, TUint tag)
sys/arch/epoc32/stand/e32boot/ldd/epoc32.cpp
170
*(l1Tbl + l1Index) = tag;
sys/arch/evbarm/armadaxp/armadaxp_machdep.c
463
marvell_startend_by_tag(int tag, uint64_t *start, uint64_t *end)
sys/arch/evbarm/armadaxp/armadaxp_machdep.c
469
win = mvsoc_target(tag, NULL, NULL, &base, &size);
sys/arch/evbarm/armadillo/armadillo9_machdep.c
485
while (bootparam_p->hdr.tag != BOOTPARAM_TAG_NONE) {
sys/arch/evbarm/armadillo/armadillo9_machdep.c
486
switch (bootparam_p->hdr.tag) {
sys/arch/evbarm/armadillo/armadillo9var.h
52
unsigned long tag;
sys/arch/evbarm/g42xxeb/g42xxeb_kmkbd.c
178
(tag == kmkbd_consdata.t_kbctag) &&
sys/arch/evbarm/ifpga/ifpga_pci.c
185
ifpga_pci_decompose_tag(void *pcv, pcitag_t tag, int *busp, int *devicep,
sys/arch/evbarm/ifpga/ifpga_pci.c
190
"fp=%p)\n", pcv, tag, busp, devicep, functionp);
sys/arch/evbarm/ifpga/ifpga_pci.c
194
*busp = (tag >> 16) & 0xff;
sys/arch/evbarm/ifpga/ifpga_pci.c
196
*devicep = (tag >> 11) & 0x1f;
sys/arch/evbarm/ifpga/ifpga_pci.c
198
*functionp = (tag >> 8) & 0x7;
sys/arch/evbarm/ifpga/ifpga_pci.c
202
ifpga_pci_conf_read(void *pcv, pcitag_t tag, int reg)
sys/arch/evbarm/ifpga/ifpga_pci.c
212
ifpga_pci_decompose_tag(pcv, tag, &bus, &device, &function);
sys/arch/evbarm/ifpga/ifpga_pci.c
235
tag | reg);
sys/arch/evbarm/ifpga/ifpga_pci.c
247
pcv, tag, reg, data);
sys/arch/evbarm/ifpga/ifpga_pci.c
253
ifpga_pci_conf_write(void *pcv, pcitag_t tag, int reg, pcireg_t data)
sys/arch/evbarm/ifpga/ifpga_pci.c
261
pcv, tag, reg, data);
sys/arch/evbarm/ifpga/ifpga_pci.c
267
ifpga_pci_decompose_tag(pcv, tag, &bus, &device, &function);
sys/arch/evbarm/ifpga/ifpga_pci.c
289
bus_space_write_4(sc->sc_iot, sc->sc_conf_ioh, tag | reg,
sys/arch/evbarm/iq80310/iq80310_pci.c
130
pcitag_t tag;
sys/arch/evbarm/iq80310/iq80310_pci.c
166
tag = pci_make_tag(pa->pa_pc, sbus, 7, 0);
sys/arch/evbarm/iq80310/iq80310_pci.c
169
reg = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG);
sys/arch/evbarm/iq80310/iq80310_pci.c
182
reg = pci_conf_read(pa->pa_pc, tag, PCI_CLASS_REG);
sys/arch/evbarm/iq80310/iq80310_pci.c
195
reg = pci_conf_read(pa->pa_pc, tag, PCI_BRIDGE_BUS_REG);
sys/arch/evbarm/iyonix/iyonix_pci.c
166
pci_conf_write_byte(pci_chipset_tag_t pc, pcitag_t tag, int addr, int value)
sys/arch/evbarm/iyonix/iyonix_pci.c
169
temp = pci_conf_read(pc, tag, addr&~3);
sys/arch/evbarm/iyonix/iyonix_pci.c
172
pci_conf_write(pc, tag, addr&~3, temp);
sys/arch/evbarm/iyonix/iyonix_pci.c
176
pci_conf_read_byte(pci_chipset_tag_t pc, pcitag_t tag, int addr)
sys/arch/evbarm/iyonix/iyonix_pci.c
179
temp = pci_conf_read(pc, tag, addr&~3);
sys/arch/evbarm/iyonix/iyonix_pci.c
197
pcitag_t tag;
sys/arch/evbarm/iyonix/iyonix_pci.c
201
tag = pci_make_tag(pc, bus, dev, func);
sys/arch/evbarm/iyonix/iyonix_pci.c
206
pci_conf_write_byte(pc, tag, 0x53, 0x40);
sys/arch/evbarm/iyonix/iyonix_pci.c
207
pci_conf_write_byte(pc, tag, 0x52, 0x00);
sys/arch/evbarm/iyonix/iyonix_pci.c
209
status = pci_conf_read_byte(pc, tag, 0x7e);
sys/arch/evbarm/iyonix/iyonix_pci.c
210
pci_conf_write_byte(pc, tag, 0x7e, status & ~0x80);
sys/arch/evbarm/iyonix/iyonix_pci.c
213
pci_conf_write_byte(pc, tag, 0x77, 1 << 6);
sys/arch/evbarm/iyonix/iyonix_pci.c
216
pci_conf_write_byte(pc, tag, 0x78, 1 << 7);
sys/arch/evbarm/marvell/marvell_machdep.c
838
marvell_startend_by_tag(int tag, uint64_t *start, uint64_t *end)
sys/arch/evbarm/marvell/marvell_machdep.c
843
win = mvsoc_target(tag, NULL, NULL, &base, &size);
sys/arch/evbarm/rpi/rpi_vcmbox.c
153
vcmbox_read_temp(struct vcmbox_softc *sc, uint32_t tag, int id, uint32_t *val)
sys/arch/evbarm/rpi/rpi_vcmbox.c
160
VCMBOX_INIT_TAG(vb.vbt_temp, tag);
sys/arch/evbarm/rpi/rpi_vcmbox.c
166
!vcprop_tag_success_p(&vb.vbt_temp.tag)) {
sys/arch/evbarm/rpi/rpi_vcmbox.c
175
vcmbox_read_clockrate(struct vcmbox_softc *sc, uint32_t tag, int id,
sys/arch/evbarm/rpi/rpi_vcmbox.c
183
VCMBOX_INIT_TAG(vb.vbt_clockrate, tag);
sys/arch/evbarm/rpi/rpi_vcmbox.c
189
!vcprop_tag_success_p(&vb.vbt_clockrate.tag)) {
sys/arch/evbarm/rpi/rpi_vcmbox.c
198
vcmbox_write_clockrate(struct vcmbox_softc *sc, uint32_t tag, int id,
sys/arch/evbarm/rpi/rpi_vcmbox.c
206
VCMBOX_INIT_TAG(vb.vbt_clockrate, tag);
sys/arch/evbarm/rpi/rpi_vcmbox.c
213
!vcprop_tag_success_p(&vb.vbt_clockrate.tag)) {
sys/arch/evbarm/rpi/vcprop.h
192
(s).tag.vpt_tag = htole32(t); \
sys/arch/evbarm/rpi/vcprop.h
193
(s).tag.vpt_rcode = htole32(VCPROPTAG_REQUEST); \
sys/arch/evbarm/rpi/vcprop.h
194
(s).tag.vpt_len = htole32(VCPROPTAG_LEN(s)); \
sys/arch/evbarm/rpi/vcprop.h
204
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
209
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
214
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
219
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
261
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
266
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
289
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
297
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
302
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
307
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
313
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
320
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
332
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
340
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
380
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
386
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
392
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
401
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
406
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
412
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
420
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
425
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
434
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
439
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
446
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
451
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
456
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
466
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
474
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
494
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
499
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop.h
504
struct vcprop_tag tag;
sys/arch/evbarm/rpi/vcprop_subr.c
121
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
141
le32toh(vb_allocmem.vbt_am.tag.vpt_rcode));
sys/arch/evbarm/rpi/vcprop_subr.c
147
!vcprop_tag_success_p(&vb_allocmem.vbt_am.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
172
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
190
le32toh(vb_lockmem.vbt_lm.tag.vpt_rcode));
sys/arch/evbarm/rpi/vcprop_subr.c
196
!vcprop_tag_success_p(&vb_lockmem.vbt_lm.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
220
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
238
le32toh(vb_unlockmem.vbt_lm.tag.vpt_rcode));
sys/arch/evbarm/rpi/vcprop_subr.c
244
!vcprop_tag_success_p(&vb_unlockmem.vbt_lm.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
268
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
286
le32toh(vb_releasemem.vbt_lm.tag.vpt_rcode));
sys/arch/evbarm/rpi/vcprop_subr.c
292
!vcprop_tag_success_p(&vb_releasemem.vbt_lm.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
316
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
337
le32toh(vb_cursorstate.vbt_cs.tag.vpt_rcode));
sys/arch/evbarm/rpi/vcprop_subr.c
343
!vcprop_tag_success_p(&vb_cursorstate.vbt_cs.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
368
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
391
le32toh(vb_cursorinfo.vbt_ci.tag.vpt_rcode));
sys/arch/evbarm/rpi/vcprop_subr.c
397
!vcprop_tag_success_p(&vb_cursorinfo.vbt_ci.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
422
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
439
le32toh(vb_pixelorder.vbt_po.tag.vpt_rcode));
sys/arch/evbarm/rpi/vcprop_subr.c
445
!vcprop_tag_success_p(&vb_pixelorder.vbt_po.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
472
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
490
le32toh(vb_pixelorder.vbt_po.tag.vpt_rcode));
sys/arch/evbarm/rpi/vcprop_subr.c
496
!vcprop_tag_success_p(&vb_pixelorder.vbt_po.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
507
uint32_t tag, res;
sys/arch/evbarm/rpi/vcprop_subr.c
509
tag = VCPROPTAG_SET_DOMAIN_STATE;
sys/arch/evbarm/rpi/vcprop_subr.c
512
tag = VCPROPTAG_SET_POWERSTATE;
sys/arch/evbarm/rpi/vcprop_subr.c
531
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
532
.vpt_tag = tag,
sys/arch/evbarm/rpi/vcprop_subr.c
548
tag, domain, state,
sys/arch/evbarm/rpi/vcprop_subr.c
549
vb_setpower.vbt_power.tag.vpt_tag,
sys/arch/evbarm/rpi/vcprop_subr.c
553
vb_setpower.vbt_power.tag.vpt_rcode);
sys/arch/evbarm/rpi/vcprop_subr.c
559
!vcprop_tag_success_p(&vb_setpower.vbt_power.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
570
uint32_t tag, res;
sys/arch/evbarm/rpi/vcprop_subr.c
572
tag = VCPROPTAG_GET_DOMAIN_STATE;
sys/arch/evbarm/rpi/vcprop_subr.c
575
tag = VCPROPTAG_GET_POWERSTATE;
sys/arch/evbarm/rpi/vcprop_subr.c
594
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
595
.vpt_tag = tag,
sys/arch/evbarm/rpi/vcprop_subr.c
611
tag, domain, *statep,
sys/arch/evbarm/rpi/vcprop_subr.c
612
vb_setpower.vbt_power.tag.vpt_tag,
sys/arch/evbarm/rpi/vcprop_subr.c
616
vb_setpower.vbt_power.tag.vpt_rcode);
sys/arch/evbarm/rpi/vcprop_subr.c
622
!vcprop_tag_success_p(&vb_setpower.vbt_power.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
635
uint32_t tag, res;
sys/arch/evbarm/rpi/vcprop_subr.c
642
tag = VCPROPTAG_VCHIQ_INIT;
sys/arch/evbarm/rpi/vcprop_subr.c
645
VCPROP_INIT_TAG(vb.vbt_vchiq, tag);
sys/arch/evbarm/rpi/vcprop_subr.c
653
!vcprop_tag_success_p(&vb.vbt_vchiq.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
665
uint32_t tag, res;
sys/arch/evbarm/rpi/vcprop_subr.c
672
tag = VCPROPTAG_NOTIFY_XHCI_RESET;
sys/arch/evbarm/rpi/vcprop_subr.c
675
VCPROP_INIT_TAG(vb.vbt_nhr, tag);
sys/arch/evbarm/rpi/vcprop_subr.c
683
!vcprop_tag_success_p(&vb.vbt_nhr.tag)) {
sys/arch/evbarm/rpi/vcprop_subr.c
72
.tag = {
sys/arch/evbarm/rpi/vcprop_subr.c
91
le32toh(vb_setblank.vbt_blank.tag.vpt_rcode));
sys/arch/evbarm/rpi/vcprop_subr.c
97
!vcprop_tag_success_p(&vb_setblank.vbt_blank.tag)) {
sys/arch/evbarm/stand/boot2440/dev_net.c
43
extern int netif_init(unsigned int tag);
sys/arch/evbarm/stand/boot2440/dev_sdmmc.c
155
static int sdmmc_init(unsigned int tag);
sys/arch/evbarm/stand/boot2440/dev_sdmmc.c
354
sdmmc_init(unsigned int tag)
sys/arch/evbarm/stand/boot2440/dev_sdmmc.c
369
if ((*dv->match)(tag) > 0)
sys/arch/evbarm/stand/boot2440/dev_sdmmc.c
377
sc->sdifdv->priv = (*dv->init)(tag, &sc->caps);
sys/arch/evbarm/stand/boot2440/dm9000.c
162
dm9k_match(unsigned int tag, void *aux)
sys/arch/evbarm/stand/boot2440/dm9000.c
189
dm9k_init(unsigned int tag, void *aux)
sys/arch/evbarm/stand/boot2440/dm9k.h
32
int dm9k_match(unsigned int tag, void *macaddr);
sys/arch/evbarm/stand/boot2440/dm9k.h
33
void *dm9k_init(unsigned int tag, void *macaddr);
sys/arch/evbarm/stand/boot2440/main.c
90
extern void* dm9k_init(unsigned int tag, void *macaddr);
sys/arch/evbarm/stand/boot2440/main.c
96
extern void netif_match(unsigned int tag, uint8_t *macaddr);
sys/arch/evbarm/stand/boot2440/netif.c
111
dv->priv = (*dv->init)(tag, enaddr);
sys/arch/evbarm/stand/boot2440/netif.c
117
bi_rdev.cookie = tag;
sys/arch/evbarm/stand/boot2440/netif.c
120
bi_net.cookie = tag;
sys/arch/evbarm/stand/boot2440/netif.c
66
void netif_match(unsigned int tag, uint8_t *macaddr);
sys/arch/evbarm/stand/boot2440/netif.c
67
int netif_init(unsigned int tag, uint8_t *macaddr);
sys/arch/evbarm/stand/boot2440/netif.c
72
netif_match(unsigned int tag, uint8_t *macaddr)
sys/arch/evbarm/stand/boot2440/netif.c
80
if ((*dv->match)(tag, macaddr) > 0) {
sys/arch/evbarm/stand/boot2440/netif.c
83
bi_rdev.cookie = tag;
sys/arch/evbarm/stand/boot2440/netif.c
86
bi_net.cookie = tag;
sys/arch/evbarm/stand/boot2440/netif.c
96
netif_init(unsigned int tag, uint8_t *macaddr)
sys/arch/evbarm/stand/boot2440/s3csdi.c
61
s3csd_match(unsigned int tag)
sys/arch/evbarm/stand/boot2440/s3csdi.c
68
s3csd_init(unsigned int tag, uint32_t *caps)
sys/arch/evbarm/stand/boot2440/s3csdi.h
34
int s3csd_match(unsigned int tag);
sys/arch/evbarm/stand/boot2440/s3csdi.h
35
void *s3csd_init(unsigned int tag, uint32_t *caps);
sys/arch/evbcf/include/bus_dma.h
237
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/evbcf/include/bus_dma.h
240
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/evbcf/include/bus_dma.h
242
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/evbcf/include/bus_dma.h
244
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva, size_t size);
sys/arch/evbcf/include/bus_dma.h
245
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/evbcf/include/bus_space.h
120
#define bus_space_map(tag, offset, size, flags, handlep) \
sys/arch/evbcf/include/bus_space.h
121
(*((tag)->bs_map))((tag)->bs_cookie, (offset), (size), (flags), (handlep))
sys/arch/evbcf/include/bus_space.h
136
#define bus_space_unmap(tag, handle, size) \
sys/arch/evbcf/include/bus_space.h
137
(*((tag)->bs_unmap))((tag)->bs_cookie, (handle), (size))
sys/arch/evbmips/ingenic/intr.c
176
uint32_t tag;
sys/arch/evbmips/ingenic/intr.c
177
tag = mips_cp0_corembox_read(id);
sys/arch/evbmips/ingenic/intr.c
179
ipi_process(curcpu(), tag);
sys/arch/evbmips/ingenic/intr.c
182
"IPI for core 0, msg %08x\n", tag);
sys/arch/evbmips/ingenic/intr.c
193
uint32_t tag;
sys/arch/evbmips/ingenic/intr.c
194
tag = mips_cp0_corembox_read(id);
sys/arch/evbmips/ingenic/intr.c
196
if (tag & 0x400)
sys/arch/evbmips/ingenic/intr.c
201
"IPI for core 1, msg %08x\n", tag);
sys/arch/evbmips/ingenic/machdep.c
145
ingenic_send_ipi(struct cpu_info *ci, int tag)
sys/arch/evbmips/ingenic/machdep.c
149
msg = 1 << tag;
sys/arch/evbmips/loongson/dev/glx.c
111
glx_init(pci_chipset_tag_t pc, pcitag_t tag, int dev)
sys/arch/evbmips/loongson/dev/glx.c
117
glxbase_tag = tag;
sys/arch/evbmips/loongson/dev/glx.c
213
glx_pci_read_hook(void *v, pcitag_t tag, int offset)
sys/arch/evbmips/loongson/dev/glx.c
224
if (tag == glxbase_tag && offset >= PCI_MSR_CTRL)
sys/arch/evbmips/loongson/dev/glx.c
225
return gen_pci_conf_read(v, tag, offset);
sys/arch/evbmips/loongson/dev/glx.c
227
pci_decompose_tag(glxbase_pc, tag, &bus, &dev, &fn);
sys/arch/evbmips/loongson/dev/glx.c
229
return gen_pci_conf_read(v, tag, offset);
sys/arch/evbmips/loongson/dev/glx.c
261
glx_pci_write_hook(void *v, pcitag_t tag,
sys/arch/evbmips/loongson/dev/glx.c
272
if (tag == glxbase_tag && offset >= PCI_MSR_CTRL) {
sys/arch/evbmips/loongson/dev/glx.c
273
gen_pci_conf_write(v, tag, offset, data);
sys/arch/evbmips/loongson/dev/glx.c
278
pci_decompose_tag(glxbase_pc, tag, &bus, &dev, &fn);
sys/arch/evbmips/loongson/dev/glx.c
280
gen_pci_conf_write(v, tag, offset, data);
sys/arch/evbmips/loongson/gdium_machdep.c
101
pcitag_t tag;
sys/arch/evbmips/loongson/gdium_machdep.c
118
tag = pci_make_tag(pc, 0, 13, 0);
sys/arch/evbmips/loongson/gdium_machdep.c
120
pci_conf_write(pc, tag, bar, 0);
sys/arch/evbmips/loongson/gdium_machdep.c
127
tag = pci_make_tag(pc, 0, 13, 0);
sys/arch/evbmips/loongson/gdium_machdep.c
128
pci_conf_write(pc, tag, PCI_MAPREG_START, 0x06228000);
sys/arch/evbmips/loongson/gdium_machdep.c
135
tag = pci_make_tag(pc, 0, 17, 0);
sys/arch/evbmips/loongson/gdium_machdep.c
136
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/evbmips/loongson/gdium_machdep.c
145
tag = pci_make_tag(pc, 0, dev, 0);
sys/arch/evbmips/loongson/gdium_machdep.c
146
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/evbmips/loongson/gdium_machdep.c
150
reg = pci_conf_read(pc, tag, 0xe0);
sys/arch/evbmips/loongson/gdium_machdep.c
153
pci_conf_write(pc, tag, 0xe0, reg);
sys/arch/evbmips/loongson/gdium_machdep.c
156
tag = pci_make_tag(pc, 0, dev, func);
sys/arch/evbmips/loongson/gdium_machdep.c
157
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/evbmips/loongson/gdium_machdep.c
164
reg = pci_conf_read(pc, tag, 0xe0);
sys/arch/evbmips/loongson/gdium_machdep.c
168
pci_conf_write(pc, tag, 0xe0, reg);
sys/arch/evbmips/loongson/gdium_machdep.c
169
pci_conf_write(pc, tag, 0xe4, 0x00000020);
sys/arch/evbmips/loongson/gdium_machdep.c
331
pci_chipset_tag_t pc, pcitag_t tag, pcireg_t id)
sys/arch/evbmips/loongson/gdium_machdep.c
355
reg = pci_conf_read(pc, tag, PCI_MAPREG_START);
sys/arch/evbmips/loongson/generic2e_machdep.c
175
pcitag_t tag;
sys/arch/evbmips/loongson/generic2e_machdep.c
187
tag = pci_make_tag(pc, 0, dev, 0);
sys/arch/evbmips/loongson/generic2e_machdep.c
188
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/evbmips/loongson/generic2e_machdep.c
504
pcitag_t tag;
sys/arch/evbmips/loongson/generic2e_machdep.c
508
tag = pci_make_tag(pc, 0, dev, 0);
sys/arch/evbmips/loongson/generic2e_machdep.c
514
reg = pci_conf_read(pc, tag, VIA686_ISA_ROM_CONTROL);
sys/arch/evbmips/loongson/generic2e_machdep.c
516
pci_conf_write(pc, tag, VIA686_ISA_ROM_CONTROL, reg);
sys/arch/evbmips/loongson/generic2e_machdep.c
518
reg = pci_conf_read(pc, tag, VIA686_KBC_DMA_MISC12);
sys/arch/evbmips/loongson/generic2e_machdep.c
527
pci_conf_write(pc, tag, VIA686_KBC_DMA_MISC12, reg);
sys/arch/evbmips/loongson/generic2e_machdep.c
533
reg = pci_conf_read(pc, tag, VIA686_MISC3_IDE_INTR);
sys/arch/evbmips/loongson/generic2e_machdep.c
538
pci_conf_write(pc, tag, VIA686_MISC3_IDE_INTR, reg);
sys/arch/evbmips/loongson/generic2e_machdep.c
540
reg = pci_conf_read(pc, tag, VIA686_PNP_DMA_IRQ);
sys/arch/evbmips/loongson/generic2e_machdep.c
548
reg = pci_conf_read(pc, tag, VIA686_PCI_LEVEL_PNP_IRQ2);
sys/arch/evbmips/loongson/generic2e_machdep.c
605
tag = pci_make_tag(pc, 0, dev, 2);
sys/arch/evbmips/loongson/generic2e_machdep.c
606
reg = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/arch/evbmips/loongson/generic2e_machdep.c
609
pci_conf_write(pc, tag, PCI_INTERRUPT_REG, reg);
sys/arch/evbmips/loongson/generic2e_machdep.c
611
tag = pci_make_tag(pc, 0, dev, 3);
sys/arch/evbmips/loongson/generic2e_machdep.c
612
reg = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/arch/evbmips/loongson/generic2e_machdep.c
615
pci_conf_write(pc, tag, PCI_INTERRUPT_REG, reg);
sys/arch/evbmips/loongson/generic2e_machdep.c
617
tag = pci_make_tag(pc, 0, dev, 5);
sys/arch/evbmips/loongson/generic2e_machdep.c
618
reg = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/arch/evbmips/loongson/generic2e_machdep.c
621
pci_conf_write(pc, tag, PCI_INTERRUPT_REG, reg);
sys/arch/evbmips/loongson/yeeloong_machdep.c
251
pcitag_t tag;
sys/arch/evbmips/loongson/yeeloong_machdep.c
264
tag = pci_make_tag(pc, 0, dev, 0);
sys/arch/evbmips/loongson/yeeloong_machdep.c
265
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/evbmips/loongson/yeeloong_machdep.c
269
glx_init(pc, tag, dev);
sys/arch/evbmips/malta/dev/gt.c
151
gt_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/evbmips/malta/dev/gt.c
155
*bp = (tag >> 16) & 0xff;
sys/arch/evbmips/malta/dev/gt.c
157
*dp = (tag >> 11) & 0x1f;
sys/arch/evbmips/malta/dev/gt.c
159
*fp = (tag >> 8) & 0x7;
sys/arch/evbmips/malta/dev/gt.c
169
gt_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/evbmips/malta/dev/gt.c
177
gt_decompose_tag(NULL /* XXX */, tag, &bus, &dev, &func);
sys/arch/evbmips/malta/dev/gt.c
192
GT_REGVAL(GT_PCI0_CFG_ADDR) = htole32((1 << 31) | tag | offset);
sys/arch/evbmips/malta/dev/gt.c
209
gt_conf_write(void *v, pcitag_t tag, int offset, pcireg_t data)
sys/arch/evbmips/malta/dev/gt.c
216
gt_decompose_tag(NULL /* XXX */, tag, &bus, &dev, &func);
sys/arch/evbmips/malta/dev/gt.c
231
GT_REGVAL(GT_PCI0_CFG_ADDR) = htole32((1 << 31) | tag | offset);
sys/arch/evbmips/sbmips/sb1250_icu.c
177
sb1250_lsw_send_ipi(struct cpu_info *ci, int tag)
sys/arch/evbmips/sbmips/sb1250_icu.c
180
const uint64_t mbox_mask = 1LLU << tag;
sys/arch/evbppc/explora/consinit.c
70
bus_space_tag_t tag;
sys/arch/evbppc/explora/consinit.c
79
tag = elb_get_bus_space_tag(BASE_COM);
sys/arch/evbppc/explora/consinit.c
80
comcnattach(tag, _BUS_SPACE_UNSTRIDE(tag, BASE_COM), COM_CONSOLE_SPEED,
sys/arch/evbppc/explora/consinit.c
84
tag = elb_get_bus_space_tag(BASE_FB);
sys/arch/evbppc/explora/consinit.c
85
fb_cnattach(tag, BASE_FB2, (void *)BASE_FB);
sys/arch/evbppc/explora/consinit.c
89
tag = elb_get_bus_space_tag(BASE_PCKBC);
sys/arch/evbppc/explora/consinit.c
90
pckbc_cnattach(tag, _BUS_SPACE_UNSTRIDE(tag, BASE_PCKBC),
sys/arch/evbppc/explora/consinit.c
91
_BUS_SPACE_UNSTRIDE(tag, BASE_PCKBC2-BASE_PCKBC), PCKBC_KBD_SLOT,
sys/arch/evbppc/nintendo/dev/avenc.c
106
iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, ®, 1,
sys/arch/evbppc/nintendo/dev/avenc.c
111
avenc_write_4(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint32_t val)
sys/arch/evbppc/nintendo/dev/avenc.c
120
iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, ®, 1,
sys/arch/evbppc/nintendo/dev/avenc.c
125
avenc_write_buf(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint8_t *buf,
sys/arch/evbppc/nintendo/dev/avenc.c
128
iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, ®, 1,
sys/arch/evbppc/nintendo/dev/avenc.c
168
avenc_dump_regs(const char *pfx, i2c_tag_t tag, i2c_addr_t addr)
sys/arch/evbppc/nintendo/dev/avenc.c
173
iic_acquire_bus(tag, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
176
regdump[reg] = RD1(tag, addr, reg);
sys/arch/evbppc/nintendo/dev/avenc.c
179
iic_release_bus(tag, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
185
avenc_init(i2c_tag_t tag, i2c_addr_t addr)
sys/arch/evbppc/nintendo/dev/avenc.c
205
iic_acquire_bus(tag, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
206
WR1(tag, addr, 0x6a, 1);
sys/arch/evbppc/nintendo/dev/avenc.c
207
WR1(tag, addr, 0x65, 3);
sys/arch/evbppc/nintendo/dev/avenc.c
208
WR1(tag, addr, 0x01, video_fmt);
sys/arch/evbppc/nintendo/dev/avenc.c
209
WR1(tag, addr, 0x00, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
210
WR1(tag, addr, 0x02, 7);
sys/arch/evbppc/nintendo/dev/avenc.c
211
WR2(tag, addr, 0x05, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
212
WR2(tag, addr, 0x08, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
213
WR4(tag, addr, 0x7a, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
214
WRBUF(tag, addr, 0x40, mvinit, sizeof(mvinit));
sys/arch/evbppc/nintendo/dev/avenc.c
215
WR1(tag, addr, 0x0a, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
216
WR1(tag, addr, 0x03, 1);
sys/arch/evbppc/nintendo/dev/avenc.c
217
WRBUF(tag, addr, 0x10, ginit, sizeof(ginit));
sys/arch/evbppc/nintendo/dev/avenc.c
218
WR1(tag, addr, 0x04, 1);
sys/arch/evbppc/nintendo/dev/avenc.c
219
WR4(tag, addr, 0x7a, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
220
WR2(tag, addr, 0x08, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
221
WR1(tag, addr, 0x03, 1);
sys/arch/evbppc/nintendo/dev/avenc.c
222
WR1(tag, addr, 0x6e, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
223
iic_release_bus(tag, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
241
i2c_tag_t tag = ia->ia_tag;
sys/arch/evbppc/nintendo/dev/avenc.c
250
avenc_dump_regs("avenc pre ", tag, addr);
sys/arch/evbppc/nintendo/dev/avenc.c
253
avenc_tag = tag;
sys/arch/evbppc/nintendo/dev/avenc.c
256
avenc_init(tag, addr);
sys/arch/evbppc/nintendo/dev/avenc.c
259
avenc_dump_regs("avenc post", tag, addr);
sys/arch/evbppc/nintendo/dev/avenc.c
68
avenc_read_1(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg)
sys/arch/evbppc/nintendo/dev/avenc.c
72
if (iic_smbus_read_byte(tag, addr, reg, &val, 0) != 0) {
sys/arch/evbppc/nintendo/dev/avenc.c
80
avenc_read_2(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg)
sys/arch/evbppc/nintendo/dev/avenc.c
84
if (iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, ®, 1,
sys/arch/evbppc/nintendo/dev/avenc.c
93
avenc_write_1(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint8_t val)
sys/arch/evbppc/nintendo/dev/avenc.c
95
iic_smbus_write_byte(tag, addr, reg, val, 0);
sys/arch/evbppc/nintendo/dev/avenc.c
99
avenc_write_2(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint16_t val)
sys/arch/evbppc/obs405/dev/obsled.c
124
gpio_tag_t tag = sc->sc_tag;
sys/arch/evbppc/obs405/dev/obsled.c
125
(*(tag)->io_or_write)((tag)->cookie, sc->sc_addr, 0);
sys/arch/evbppc/obs405/dev/obsled.c
158
gpio_tag_t tag = sc->sc_tag;
sys/arch/evbppc/obs405/dev/obsled.c
160
(*(tag)->io_or_write)((tag)->cookie,
sys/arch/evbppc/pmppc/dev/cpc_mainbus.c
59
bus_space_tag_t pciio, bus_dma_tag_t tag, int attachpci,
sys/arch/evbppc/pmppc/machdep.c
287
bus_space_tag_t tag;
sys/arch/evbppc/pmppc/machdep.c
295
tag = &pmppc_mem_tag;
sys/arch/evbppc/pmppc/machdep.c
297
if(comcnattach(tag, CPC_COM0, 9600, CPC_COM_SPEED(a_config.a_bus_freq),
sys/arch/evbppc/pmppc/machdep.c
315
bus_space_tag_t tag = &pmppc_mem_tag;
sys/arch/evbppc/pmppc/machdep.c
316
com_kgdb_attach(tag, comkgdbaddr, comkgdbrate,
sys/arch/evbppc/stand/wii/miniipc.c
115
req->tag = ++request_tag;
sys/arch/evbppc/stand/wii/miniipc.c
119
index_in, req->code, req->tag,
sys/arch/evbppc/stand/wii/miniipc.c
155
index_out, req->code, req->tag,
sys/arch/evbppc/stand/wii/miniipc.c
168
n, req->code, req->tag,
sys/arch/evbppc/stand/wii/miniipc.h
45
uint32_t tag;
sys/arch/evbppc/walnut/consinit.c
102
bus_space_tag_t tag = opb_get_bus_space_tag();
sys/arch/evbppc/walnut/consinit.c
103
com_kgdb_attach(tag, comkgdbaddr, comkgdbrate, COM_FREQ * 6,
sys/arch/evbsh3/evbsh3/kloader_machdep.c
75
struct kloader_bootinfo *info, struct kloader_page_tag *tag)
sys/arch/evbsh3/evbsh3/kloader_machdep.c
85
: : "r"(info), "r"(tag), "r"(func), "r"(sp));
sys/arch/evbsh3/include/bus_funcs.h
354
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/evbsh3/include/bus_funcs.h
357
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/evbsh3/include/bus_funcs.h
359
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs,
sys/arch/evbsh3/include/bus_funcs.h
361
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva, size_t size);
sys/arch/evbsh3/include/bus_funcs.h
362
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
141
boot->tag = VTOC_TAG_BOOT;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
147
bfs->tag = VTOC_TAG_STAND;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
155
bsdraw->tag = VTOC_TAG_NONAME;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
189
up->tag = VTOC_TAG_BOOT;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
193
up->tag = VTOC_TAG_STAND;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
196
up->tag = VTOC_TAG_SWAP;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
200
up->tag = __VTOC_TAG_BSDFFS;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
204
up->tag = VTOC_TAG_RAWDISK;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
243
switch (up->tag) {
sys/arch/ews4800mips/ews4800mips/vtoc.c
130
i, p->tag, p->flags, p->start_sector, p->nsectors,
sys/arch/ews4800mips/ews4800mips/vtoc.c
80
if (vtoc->partition[i].tag == VTOC_TAG_STAND)
sys/arch/ews4800mips/include/bus.h
285
PREFIX##_read_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/ews4800mips/include/bus.h
296
PREFIX##_read_multi_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/ews4800mips/include/bus.h
309
PREFIX##_read_region_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/ews4800mips/include/bus.h
323
PREFIX##_write_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/ews4800mips/include/bus.h
334
PREFIX##_write_multi_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/ews4800mips/include/bus.h
348
PREFIX##_write_region_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/ews4800mips/include/bus.h
362
PREFIX##_set_multi_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/ews4800mips/include/bus.h
376
PREFIX##_set_region_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/ews4800mips/include/bus.h
847
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/ews4800mips/include/bus.h
850
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/ews4800mips/include/bus.h
852
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/ews4800mips/include/bus.h
854
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/ews4800mips/include/bus.h
856
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/ews4800mips/include/bus.h
859
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/ews4800mips/include/vtoc.h
59
uint16_t tag; /* 0 */
sys/arch/ews4800mips/stand/common/boot.c
148
if (partition->tag != __VTOC_TAG_BSDFFS)
sys/arch/ews4800mips/stand/common/diskutil.c
137
if (p->tag == VTOC_TAG_STAND)
sys/arch/ews4800mips/stand/common/diskutil.c
61
printf(" %d %d %d\t%d\t%d\n", i, partition->tag,
sys/arch/ews4800mips/stand/common/fileread_bfs.c
90
if (partition->tag == VTOC_TAG_STAND)
sys/arch/hp300/hp300/autoconf.c
816
struct bus_space_tag tag;
sys/arch/hp300/hp300/autoconf.c
819
bst = &tag;
sys/arch/hp300/hp300/autoconf.c
960
struct bus_space_tag tag;
sys/arch/hp300/hp300/autoconf.c
964
bst = &tag;
sys/arch/hpcarm/dev/nbppcon.c
142
int tag, int (*func)(void *, int, char *), void *arg)
sys/arch/hpcarm/dev/nbppcon.c
149
sc->sc_cbs[i].cb_tag = tag;
sys/arch/hpcarm/dev/nbppcon.c
176
nbppcon_poll(device_t self, int tag, int buflen, char *buf)
sys/arch/hpcarm/dev/nbppcon.c
191
if (rv > 0 && buf[0] == tag)
sys/arch/hpcarm/dev/nbppcon.c
193
} while (rv == 0 || buf[0] != tag);
sys/arch/hpcarm/hpcarm/kloader_machdep.c
78
struct kloader_bootinfo *kbi, struct kloader_page_tag *tag)
sys/arch/hpcarm/hpcarm/kloader_machdep.c
85
(*func)(kbi, tag);
sys/arch/hpcmips/hpcmips/kloader_machdep.c
64
struct kloader_bootinfo *info, struct kloader_page_tag *tag)
sys/arch/hpcmips/hpcmips/kloader_machdep.c
69
(*func)(info, tag); /* 2nd-bootloader don't use stack */
sys/arch/hpcmips/include/bus_dma_hpcmips.h
76
int _hpcmips_bd_mem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/hpcmips/vr/vrc4172pci.c
246
vrc4172pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp,
sys/arch/hpcmips/vr/vrc4172pci.c
251
*bp = (tag >> 16) & 0xff;
sys/arch/hpcmips/vr/vrc4172pci.c
253
*dp = (tag >> 11) & 0x1f;
sys/arch/hpcmips/vr/vrc4172pci.c
255
*fp = (tag >> 8) & 0x07;
sys/arch/hpcmips/vr/vrc4172pci.c
259
vrc4172pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/hpcmips/vr/vrc4172pci.c
269
tag == vrc4172pci_make_tag(pc, 0, 0, 1) &&
sys/arch/hpcmips/vr/vrc4172pci.c
276
tag |= VRC4172PCI_CONFADDR_CONFIGEN;
sys/arch/hpcmips/vr/vrc4172pci.c
278
vrc4172pci_write(sc, VRC4172PCI_CONFAREG, tag | reg);
sys/arch/hpcmips/vr/vrc4172pci.c
285
device_xname(sc->sc_dev), (u_int32_t)tag, reg, val));
sys/arch/hpcmips/vr/vrc4172pci.c
291
vrc4172pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg,
sys/arch/hpcmips/vr/vrc4172pci.c
297
device_xname(sc->sc_dev), (u_int32_t)tag, reg, (u_int32_t)data));
sys/arch/hpcmips/vr/vrc4172pci.c
304
tag == vrc4172pci_make_tag(pc, 0, 0, 1) &&
sys/arch/hpcmips/vr/vrc4172pci.c
311
tag |= VRC4172PCI_CONFADDR_CONFIGEN;
sys/arch/hpcmips/vr/vrc4172pci.c
313
vrc4172pci_write(sc, VRC4172PCI_CONFAREG, tag | reg);
sys/arch/hpcmips/vr/vrc4173bcu.c
250
pcitag_t tag = pa->pa_tag;
sys/arch/hpcmips/vr/vrc4173bcu.c
292
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/hpcmips/vr/vrc4173bcu.c
294
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/arch/hpcmips/vr/vrc4173bcu.c
296
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/hpcmips/vr/vrc4173bcu.c
299
csr = pci_conf_read(pc, tag, VRC4173BCU_BADR);
sys/arch/hpcmips/vr/vrpciu.c
408
vrpciu_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp,
sys/arch/hpcmips/vr/vrpciu.c
413
*bp = (tag >> 16) & 0xff;
sys/arch/hpcmips/vr/vrpciu.c
415
*dp = (tag >> 11) & 0x1f;
sys/arch/hpcmips/vr/vrpciu.c
417
*fp = (tag >> 8) & 0x07;
sys/arch/hpcmips/vr/vrpciu.c
421
vrpciu_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/hpcmips/vr/vrpciu.c
430
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/arch/hpcmips/vr/vrpciu.c
434
tag = (1 << (device + 11)) | (function << 8); /* Type 0 */
sys/arch/hpcmips/vr/vrpciu.c
436
tag |= VRPCIU_CONF_TYPE1;
sys/arch/hpcmips/vr/vrpciu.c
438
vrpciu_write(sc, VRPCIU_CONFAREG, tag | reg);
sys/arch/hpcmips/vr/vrpciu.c
442
device_xname(sc->sc_dev), (u_int32_t)tag, reg, val);
sys/arch/hpcmips/vr/vrpciu.c
448
vrpciu_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg,
sys/arch/hpcmips/vr/vrpciu.c
456
device_xname(sc->sc_dev), (u_int32_t)tag, reg, (u_int32_t)data);
sys/arch/hpcmips/vr/vrpciu.c
462
vrpciu_decompose_tag(pc, tag, &bus, &device, &function);
sys/arch/hpcmips/vr/vrpciu.c
466
tag = (1 << (device + 11)) | (function << 8); /* Type 0 */
sys/arch/hpcmips/vr/vrpciu.c
468
tag |= VRPCIU_CONF_TYPE1;
sys/arch/hpcmips/vr/vrpciu.c
470
vrpciu_write(sc, VRPCIU_CONFAREG, tag | reg);
sys/arch/hpcsh/dev/hd64461/hd64461uart.c
92
hd64461uart_init_regs(struct com_regs *regs, bus_space_tag_t tag,
sys/arch/hpcsh/dev/hd64461/hd64461uart.c
96
com_init_regs_stride(regs, tag, hdl, addr, 1);
sys/arch/hpcsh/hpcsh/kloader_machdep.c
71
struct kloader_bootinfo *info, struct kloader_page_tag *tag)
sys/arch/hpcsh/hpcsh/kloader_machdep.c
81
: : "r"(info), "r"(tag), "r"(func), "r"(sp));
sys/arch/hpcsh/include/bus_funcs.h
324
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/hpcsh/include/bus_funcs.h
327
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/hpcsh/include/bus_funcs.h
329
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/hpcsh/include/bus_funcs.h
331
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/hpcsh/include/bus_funcs.h
333
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/hpcsh/include/bus_funcs.h
336
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/hpcsh/include/bus_util.h
13
PREFIX##_read_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/hpcsh/include/bus_util.h
25
PREFIX##_read_multi_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/hpcsh/include/bus_util.h
40
PREFIX##_read_region_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/hpcsh/include/bus_util.h
55
PREFIX##_write_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/hpcsh/include/bus_util.h
67
PREFIX##_write_multi_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/hpcsh/include/bus_util.h
83
PREFIX##_write_region_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/hpcsh/include/bus_util.h
99
PREFIX##_set_multi_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/hppa/dev/apic.c
127
pcitag_t tag = pa->pa_tag;
sys/arch/hppa/dev/apic.c
131
reg = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/arch/hppa/dev/dino.c
292
pcitag_t tag;
sys/arch/hppa/dev/dino.c
297
tag = dino_make_tag(sc, bus, dev, 0);
sys/arch/hppa/dev/dino.c
298
if (tag != -1 && dino_conf_read(sc, tag, 0) != 0xffffffff) {
sys/arch/hppa/dev/dino.c
300
tag = dino_make_tag(sc, bus, dev, func);
sys/arch/hppa/dev/dino.c
301
if (dino_conf_read(sc, tag, 0) != 0xffffffff) {
sys/arch/hppa/dev/dino.c
302
data = dino_conf_read(sc, tag,
sys/arch/hppa/dev/dino.c
304
dino_conf_write(sc, tag,
sys/arch/hppa/dev/dino.c
311
class = dino_conf_read(sc, tag, PCI_CLASS_REG);
sys/arch/hppa/dev/dino.c
335
dino_decompose_tag(void *v, pcitag_t tag, int *bus, int *dev, int *func)
sys/arch/hppa/dev/dino.c
337
*bus = (tag >> 16) & 0xff;
sys/arch/hppa/dev/dino.c
338
*dev = (tag >> 11) & 0x1f;
sys/arch/hppa/dev/dino.c
339
*func= (tag >> 8) & 0x07;
sys/arch/hppa/dev/dino.c
343
dino_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/hppa/dev/dino.c
368
if ((tag & 0xff00) == 0xff00)
sys/arch/hppa/dev/dino.c
375
r->pci_addr = tag | reg;
sys/arch/hppa/dev/dino.c
385
dino_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/hppa/dev/dino.c
397
if ((tag & 0xff00) == 0xff00) return;
sys/arch/hppa/dev/dino.c
403
r->pci_addr = tag | reg;
sys/arch/hppa/dev/dino.c
407
r->pci_addr = tag | PCI_ID_REG;
sys/arch/hppa/dev/dino.c
459
bus_space_tag_t tag;
sys/arch/hppa/dev/dino.c
465
tag = pa->pa_iot;
sys/arch/hppa/dev/dino.c
470
tag = pa->pa_memt;
sys/arch/hppa/dev/dino.c
479
return rbus_new_root_share(tag, ex, start, size, start);
sys/arch/hppa/dev/elroy.c
249
elroy_decompose_tag(void *v, pcitag_t tag, int *bus, int *dev, int *func)
sys/arch/hppa/dev/elroy.c
251
*bus = (tag >> 16) & 0xff;
sys/arch/hppa/dev/elroy.c
252
*dev = (tag >> 11) & 0x1f;
sys/arch/hppa/dev/elroy.c
253
*func= (tag >> 8) & 0x07;
sys/arch/hppa/dev/elroy.c
257
elroy_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/hppa/dev/elroy.c
279
elroy_write32(&r->pci_conf_addr, htole32(tag | reg));
sys/arch/hppa/dev/elroy.c
296
elroy_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/hppa/dev/elroy.c
318
elroy_write32(&r->pci_conf_addr, htole32(tag | PCI_ID_REG));
sys/arch/hppa/dev/elroy.c
322
elroy_write32(&r->pci_conf_addr, htole32(tag | reg));
sys/arch/hppa/dev/elroy.c
446
bus_space_tag_t tag;
sys/arch/hppa/dev/elroy.c
452
tag = pa->pa_iot;
sys/arch/hppa/dev/elroy.c
477
tag = pa->pa_memt;
sys/arch/hppa/dev/elroy.c
487
return rbus_new_root_share(tag, ex, start, size, 0);
sys/arch/hppa/dev/ssio.c
131
pcitag_t tag;
sys/arch/hppa/dev/ssio.c
145
tag = pci_make_tag(pa->pa_pc, pa->pa_bus, pa->pa_device, 1);
sys/arch/hppa/dev/ssio.c
146
id = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG);
sys/arch/hppa/dev/ssio.c
179
pcitag_t tag;
sys/arch/hppa/dev/ssio.c
295
tag = pci_make_tag(pa->pa_pc, pa->pa_bus, pa->pa_device, 2);
sys/arch/hppa/dev/ssio.c
296
reg = pci_conf_read(pa->pa_pc, tag, PCI_CBMEM);
sys/arch/i386/i386/mtrr_k6.c
85
k6_mtrr_dump(const char *tag)
sys/arch/i386/i386/mtrr_k6.c
93
printf("%s: %x: 0x%08llx\n", tag, mtrr_var_raw[i].msraddr,
sys/arch/i386/include/fenv.h
95
uint16_t tag; /* Tag word register */
sys/arch/i386/isa/ahc_isa.c
409
ahc->tag = iot;
sys/arch/i386/isa/ahc_isa.c
473
sd.sd_tag = ahc->tag;
sys/arch/i386/pci/ali1543.c
155
ali1543_init(pci_chipset_tag_t pc, bus_space_tag_t iot, pcitag_t tag,
sys/arch/i386/pci/ali1543.c
159
if (piix_init(pc, iot, tag, ptagp, phandp) == 0) {
sys/arch/i386/pci/amd756.c
106
amd756_init(pci_chipset_tag_t pc, bus_space_tag_t iot, pcitag_t tag,
sys/arch/i386/pci/amd756.c
117
ph->ph_tag = tag;
sys/arch/i386/pci/elan520.c
162
pcitag_t tag;
sys/arch/i386/pci/elan520.c
174
tag = pci_make_tag(pba->pba_pc, 0, 0, 0);
sys/arch/i386/pci/elan520.c
175
id = pci_conf_read(pba->pba_pc, tag, PCI_ID_REG);
sys/arch/i386/pci/gcscehci.c
125
sc->sc_tag = tag;
sys/arch/i386/pci/gcscehci.c
96
pcitag_t tag = pa->pa_tag;
sys/arch/i386/pci/opti82c558.c
124
pcitag_t tag, pciintr_icu_tag_t *ptagp, pciintr_icu_handle_t *phandp)
sys/arch/i386/pci/opti82c558.c
133
ph->ph_tag = tag;
sys/arch/i386/pci/opti82c700.c
112
pcitag_t tag, pciintr_icu_tag_t *ptagp, pciintr_icu_handle_t *phandp)
sys/arch/i386/pci/opti82c700.c
121
ph->ph_tag = tag;
sys/arch/i386/pci/opti82c700.c
333
pcitag_t tag = ph->ph_tag;
sys/arch/i386/pci/opti82c700.c
340
r = pci_conf_read(pc, tag, 0xb0 + i);
sys/arch/i386/pci/opti82c700.c
352
r = pci_conf_read(pc, tag, 0xb8);
sys/arch/i386/pci/pci_intr_fixup.c
657
pciintr_do_header_fixup(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/i386/pci/pci_intr_fixup.c
666
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/arch/i386/pci/pci_intr_fixup.c
667
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/i386/pci/pci_intr_fixup.c
669
intr = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/arch/i386/pci/pci_intr_fixup.c
768
pci_conf_write(pc, tag, PCI_INTERRUPT_REG, intr);
sys/arch/i386/pci/pcibios.c
640
pcitag_t tag;
sys/arch/i386/pci/pcibios.c
653
tag = pci_make_tag(pc, MM20_PCI_BUS, MM20_PCI_EHCI_DEV,
sys/arch/i386/pci/pcibios.c
656
pci_conf_write(pc, tag, PCI_INTERRUPT_REG,
sys/arch/i386/pci/pcibios.c
658
tag = pci_make_tag(pc, MM20_PCI_BUS, MM20_PCI_ISA_DEV,
sys/arch/i386/pci/pcibios.c
661
pci_conf_write(pc, tag, 0x58, 0xd87f5300);
sys/arch/i386/pci/pcibios.c
662
pci_conf_write(pc, tag, 0x74, 0x00000009);
sys/arch/i386/pci/piix.c
121
piix_init(pci_chipset_tag_t pc, bus_space_tag_t iot, pcitag_t tag,
sys/arch/i386/pci/piix.c
132
ph->ph_tag = tag;
sys/arch/i386/pci/piix.c
162
ich_init(pci_chipset_tag_t pc, bus_space_tag_t iot, pcitag_t tag,
sys/arch/i386/pci/piix.c
167
rv = piix_init(pc, iot, tag, ptagp, phandp);
sys/arch/i386/pci/sis85c503.c
93
sis85c503_init(pci_chipset_tag_t pc, bus_space_tag_t iot, pcitag_t tag,
sys/arch/i386/pci/sis85c503.c
97
if (piix_init(pc, iot, tag, ptagp, phandp) == 0) {
sys/arch/i386/pci/via8231.c
140
via8231_init(pci_chipset_tag_t pc, bus_space_tag_t iot, pcitag_t tag,
sys/arch/i386/pci/via8231.c
152
ph->ph_tag = tag;
sys/arch/i386/pci/via8231.c
153
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/i386/pci/via82c586.c
118
via82c586_init(pci_chipset_tag_t pc, bus_space_tag_t iot, pcitag_t tag,
sys/arch/i386/pci/via82c586.c
123
if (piix_init(pc, iot, tag, ptagp, phandp) == 0) {
sys/arch/i386/pci/via82c586.c
129
reg = pci_conf_read(pc, tag, VP3_CFG_KBDMISCCTRL12_REG);
sys/arch/i386/pci/via82c586.c
132
pci_conf_write(pc, tag, VP3_CFG_KBDMISCCTRL12_REG, reg);
sys/arch/i386/pnpbios/pnpbios.c
1037
type = (tag >> 3) & 0x0f;
sys/arch/i386/pnpbios/pnpbios.c
1038
len = tag & 0x07;
sys/arch/i386/pnpbios/pnpbios.c
1104
aprint_normal("tag %d end dep?\n", tag);
sys/arch/i386/pnpbios/pnpbios.c
1285
int idx, bus_space_tag_t tag, bus_space_handle_t hdl)
sys/arch/i386/pnpbios/pnpbios.c
1296
bus_space_unmap(tag, hdl, io->len);
sys/arch/i386/pnpbios/pnpbios.c
918
int tag, type, len;
sys/arch/i386/pnpbios/pnpbios.c
936
tag = *p;
sys/arch/i386/pnpbios/pnpbios.c
937
if (tag & ISAPNP_LARGE_TAG) {
sys/arch/i386/pnpbios/pnpbios.c
941
switch (tag) {
sys/arch/i386/stand/boot/boot2.c
565
u_int tag;
sys/arch/i386/stand/boot/boot2.c
596
if (cdp->tag == CONSDEV_PC)
sys/arch/i386/stand/boot/boot2.c
605
initio(cdp->tag);
sys/arch/i386/stand/efiboot/boot.c
550
u_int tag;
sys/arch/i386/stand/efiboot/boot.c
637
if (cdp->tag == CONSDEV_PC || cdp->tag == CONSDEV_AUTO) {
sys/arch/i386/stand/efiboot/boot.c
664
efi_consinit(cdp->tag, ioport, unit, speed, switchcons);
sys/arch/i386/stand/efiboot/efinet.c
263
bi_netif.addr.tag = eni->bus.tag;
sys/arch/i386/stand/efiboot/efinet.c
311
eni->bus.tag = (bus & 0xff) << 8;
sys/arch/i386/stand/efiboot/efinet.c
312
eni->bus.tag |= (pci->Device & 0x1f) << 3;
sys/arch/i386/stand/efiboot/efinet.c
313
eni->bus.tag |= pci->Function & 0x7;
sys/arch/i386/stand/efiboot/efinet.c
453
printf(" pci%d,%d,%d", (eni->bus.tag >> 8) & 0xff,
sys/arch/i386/stand/efiboot/efinet.c
454
(eni->bus.tag >> 3) & 0x1f, eni->bus.tag & 0x7);
sys/arch/i386/stand/efiboot/efinet.c
62
u_int tag;
sys/arch/i386/stand/lib/exec_multiboot2.c
1199
is_tag_required(struct multiboot_package *mbp, uint16_t tag)
sys/arch/i386/stand/lib/exec_multiboot2.c
1218
if (info_req->requests[i] == tag) {
sys/arch/i386/stand/pxeboot/main.c
237
u_int tag;
sys/arch/i386/stand/pxeboot/main.c
267
if (cdp->tag == CONSDEV_PC)
sys/arch/i386/stand/pxeboot/main.c
276
initio(cdp->tag);
sys/arch/i386/stand/pxeboot/pxe.c
406
bi_netif.addr.tag = gnt->info.pci.BusDevFunc;
sys/arch/ia64/ia64/pmap.c
1028
uint64_t chain, tag;
sys/arch/ia64/ia64/pmap.c
1030
tag = ia64_ttag(va);
sys/arch/ia64/ia64/pmap.c
1037
while (chain != 0 && pte->tag != tag) {
sys/arch/ia64/ia64/pmap.c
1141
pte->tag = 1UL << 63;
sys/arch/ia64/ia64/pmap.c
1208
pte->tag = ia64_ttag(va);
sys/arch/ia64/ia64/pmap.c
323
pte[i].tag = 1UL << 63; /* Invalid tag */
sys/arch/ia64/ia64/pmap.c
547
uint64_t tag;
sys/arch/ia64/ia64/pmap.c
556
tag = ia64_ttag(va);
sys/arch/ia64/ia64/pmap.c
560
atomic_cmpset_64(&pte->tag, tag, 1UL << 63);
sys/arch/ia64/ia64/pmap.c
987
uint64_t chain, tag;
sys/arch/ia64/ia64/pmap.c
989
tag = ia64_ttag(va);
sys/arch/ia64/ia64/pmap.c
997
while (chain != 0 && pte->tag != tag) {
sys/arch/ia64/include/pte.h
79
uint64_t tag; /* includes ti */
sys/arch/ia64/pci/pci_machdep.c
101
tag | reg, sizeof(pcireg_t), val, 0, 0, 0, 0);
sys/arch/ia64/pci/pci_machdep.c
65
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/ia64/pci/pci_machdep.c
69
*bp = (tag >> 16) & 0xff;
sys/arch/ia64/pci/pci_machdep.c
71
*dp = (tag >> 11) & 0x1f;
sys/arch/ia64/pci/pci_machdep.c
73
*fp = (tag >> 8) & 0x07;
sys/arch/ia64/pci/pci_machdep.c
77
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/ia64/pci/pci_machdep.c
85
tag | reg, sizeof(pcireg_t), 0, 0, 0, 0, 0);
sys/arch/ia64/pci/pci_machdep.c
93
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t val)
sys/arch/ibmnws/ibmnws/machdep.c
100
tag = genppc_pci_indirect_make_tag(NULL, 0, 0, 0);
sys/arch/ibmnws/ibmnws/machdep.c
102
out32rb(PCI_MODE1_ADDRESS_REG, tag | IBM_82660_MEM_BANK0_START);
sys/arch/ibmnws/ibmnws/machdep.c
105
out32rb(PCI_MODE1_ADDRESS_REG, tag | IBM_82660_MEM_BANK0_END);
sys/arch/ibmnws/ibmnws/machdep.c
109
out32rb(PCI_MODE1_ADDRESS_REG, tag | IBM_82660_MEM_BANK_ENABLE);
sys/arch/ibmnws/ibmnws/machdep.c
93
pcitag_t tag;
sys/arch/iyonix/iyonix/iyonix_pci.c
167
pci_conf_write_byte(pci_chipset_tag_t pc, pcitag_t tag, int addr, int value)
sys/arch/iyonix/iyonix/iyonix_pci.c
170
temp = pci_conf_read(pc, tag, addr&~3);
sys/arch/iyonix/iyonix/iyonix_pci.c
173
pci_conf_write(pc, tag, addr&~3, temp);
sys/arch/iyonix/iyonix/iyonix_pci.c
177
pci_conf_read_byte(pci_chipset_tag_t pc, pcitag_t tag, int addr)
sys/arch/iyonix/iyonix/iyonix_pci.c
180
temp = pci_conf_read(pc, tag, addr&~3);
sys/arch/iyonix/iyonix/iyonix_pci.c
198
pcitag_t tag;
sys/arch/iyonix/iyonix/iyonix_pci.c
202
tag = pci_make_tag(pc, bus, dev, func);
sys/arch/iyonix/iyonix/iyonix_pci.c
207
pci_conf_write_byte(pc, tag, 0x53, 0x40);
sys/arch/iyonix/iyonix/iyonix_pci.c
208
pci_conf_write_byte(pc, tag, 0x52, 0x00);
sys/arch/iyonix/iyonix/iyonix_pci.c
210
status = pci_conf_read_byte(pc, tag, 0x7e);
sys/arch/iyonix/iyonix/iyonix_pci.c
211
pci_conf_write_byte(pc, tag, 0x7e, status & ~0x80);
sys/arch/iyonix/iyonix/iyonix_pci.c
214
pci_conf_write_byte(pc, tag, 0x77, 1 << 6);
sys/arch/iyonix/iyonix/iyonix_pci.c
217
pci_conf_write_byte(pc, tag, 0x78, 1 << 7);
sys/arch/landisk/include/bootinfo.h
60
unsigned int tag; /* PCI, BIOS format */
sys/arch/landisk/include/bus_funcs.h
331
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/landisk/include/bus_funcs.h
334
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/landisk/include/bus_funcs.h
336
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs,
sys/arch/landisk/include/bus_funcs.h
338
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva, size_t size);
sys/arch/landisk/include/bus_funcs.h
339
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/landisk/include/pci_machdep.h
75
#define pci_decompose_tag(v, tag, bp, dp, fp) \
sys/arch/landisk/include/pci_machdep.h
76
shpcic_decompose_tag(v, tag, bp, dp, fp)
sys/arch/landisk/include/pci_machdep.h
77
#define pci_conf_read(v, tag, reg) \
sys/arch/landisk/include/pci_machdep.h
78
shpcic_conf_read(v, tag, reg)
sys/arch/landisk/include/pci_machdep.h
79
#define pci_conf_write(v, tag, reg, data) \
sys/arch/landisk/include/pci_machdep.h
80
shpcic_conf_write(v, tag, reg, data)
sys/arch/landisk/landisk/kloader_machdep.c
63
struct kloader_bootinfo *info, struct kloader_page_tag *tag)
sys/arch/landisk/landisk/kloader_machdep.c
73
: : "r" (info), "r" (tag), "r" (func), "r" (sp));
sys/arch/m68k/fpsp/fpsp.h
184
STAG equ LV-40 ;source tag (1 byte)
sys/arch/m68k/fpsp/fpsp.h
188
stag_mask equ $E0 ;upper 3 bits are source tag type
sys/arch/m68k/fpsp/fpsp.h
208
DTAG equ LV-32 ;dest tag (1 byte)
sys/arch/m68k/fpsp/fpsp.h
209
dtag_mask equ $E0 ;upper 3 bits are dest type tag
sys/arch/m68k/fpsp/fpsp.h
342
norm_tag equ $00 tag bits in {7:5} position
sys/arch/m68k/fpsp/l_fpsp.h
158
STAG equ LV+192 ;source tag (1 byte)
sys/arch/m68k/fpsp/l_fpsp.h
160
DTAG equ LV+193 ;dest tag (1 byte)
sys/arch/m68k/fpsp/l_fpsp.h
272
norm_tag equ $00 tag bits in {7:5} position
sys/arch/m68k/include/bus_dma.h
256
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/m68k/include/bus_dma.h
259
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/m68k/include/bus_dma.h
261
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/m68k/include/bus_dma.h
263
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/m68k/include/bus_dma.h
265
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/m68k/include/bus_space_simple.h
116
#define bus_space_map(tag, offset, size, flags, handlep) \
sys/arch/m68k/include/bus_space_simple.h
117
(*((tag)->bs_map))((tag)->bs_cookie, (offset), (size), (flags), (handlep))
sys/arch/m68k/include/bus_space_simple.h
132
#define bus_space_unmap(tag, handle, size) \
sys/arch/m68k/include/bus_space_simple.h
133
(*((tag)->bs_unmap))((tag)->bs_cookie, (handle), (size))
sys/arch/m68k/include/bus_space_simple.h
142
#define bus_space_mmap(tag, addr, offset, prot, flags) \
sys/arch/m68k/include/bus_space_simple.h
143
(*((tag)->bs_mmap))((tag)->bs_cookie, (addr), (offset), (prot), (flags))
sys/arch/m68k/m68k/linux_bootinfo.c
427
uint32_t tag;
sys/arch/m68k/m68k/linux_bootinfo.c
436
if (bi->bi_tag == ctx->tag) {
sys/arch/m68k/m68k/linux_bootinfo.c
450
bootinfo_find(uint32_t tag)
sys/arch/m68k/m68k/linux_bootinfo.c
453
.tag = tag,
sys/arch/m68k/m68k/linux_bootinfo.c
465
bootinfo_find_machdep(uint32_t mtype, uint32_t tag)
sys/arch/m68k/m68k/linux_bootinfo.c
468
bootinfo_find(tag) : NULL;
sys/arch/mac68k/mac68k/bus_space.c
414
mac68k_bsr4(bus_space_tag_t tag, bus_space_handle_t *h, bus_size_t offset)
sys/arch/mac68k/mac68k/bus_space.c
773
mac68k_bsw4(bus_space_tag_t tag, bus_space_handle_t *h, bus_size_t offset,
sys/arch/macppc/dev/ofw_i2c_machdep.c
55
of_i2c_get_address(device_t dev, int i2c_node, i2c_tag_t tag, int node,
sys/arch/macppc/dev/ofw_i2c_machdep.c
95
__func__, tag->ic_channel, i2c_node, ctlr_node);
sys/arch/macppc/dev/ofw_i2c_machdep.c
96
if (tag->ic_channel != I2C_CHANNEL_DEFAULT && i2c_node == ctlr_node &&
sys/arch/macppc/dev/ofw_i2c_machdep.c
97
tag->ic_channel != channel) {
sys/arch/macppc/macppc/rbus_machdep.c
129
macppc_cardbus_init(pci_chipset_tag_t pc, pcitag_t tag)
sys/arch/macppc/macppc/rbus_machdep.c
140
x = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/macppc/macppc/rbus_machdep.c
144
pci_conf_write(pc, tag, 0x18, 0x10010100);
sys/arch/macppc/macppc/rbus_machdep.c
147
x = pci_conf_read(pc, tag, 0x8c);
sys/arch/macppc/macppc/rbus_machdep.c
149
pci_conf_write(pc, tag, 0x8c, x);
sys/arch/macppc/macppc/rbus_machdep.c
151
tag = pci_make_tag(pc, 0, 0, 0);
sys/arch/macppc/macppc/rbus_machdep.c
152
x = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/macppc/macppc/rbus_machdep.c
156
x = pci_conf_read(pc, tag, 0x40);
sys/arch/macppc/macppc/rbus_machdep.c
158
pci_conf_write(pc, tag, 0x40, x);
sys/arch/macppc/pci/bandit.c
160
bandit_conf_read(void *cookie, pcitag_t tag, int reg)
sys/arch/macppc/pci/bandit.c
170
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/macppc/pci/bandit.c
184
x = tag | reg | 1;
sys/arch/macppc/pci/bandit.c
203
bandit_conf_write(void *cookie, pcitag_t tag, int reg, pcireg_t data)
sys/arch/macppc/pci/bandit.c
212
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/macppc/pci/bandit.c
222
x = tag | reg | 1;
sys/arch/macppc/pci/bandit.c
241
chaos_conf_write(void *cookie, pcitag_t tag, int reg, pcireg_t data)
sys/arch/macppc/pci/bandit.c
255
pcitag_t tag;
sys/arch/macppc/pci/bandit.c
258
tag = pci_make_tag(pc, pc->pc_bus, PCI_BANDIT, 0);
sys/arch/macppc/pci/bandit.c
259
if ((pci_conf_read(pc, tag, PCI_ID_REG) & 0xffff) == 0xffff)
sys/arch/macppc/pci/bandit.c
262
mode = pci_conf_read(pc, tag, PCI_REG_MODE_SELECT);
sys/arch/macppc/pci/bandit.c
266
pci_conf_write(pc, tag, PCI_REG_MODE_SELECT, mode);
sys/arch/macppc/pci/grackle.c
153
grackle_conf_read(void *cookie, pcitag_t tag, int reg)
sys/arch/macppc/pci/grackle.c
164
out32rb(pc->pc_addr, tag | reg);
sys/arch/macppc/pci/grackle.c
176
grackle_conf_write(void *cookie, pcitag_t tag, int reg, pcireg_t data)
sys/arch/macppc/pci/grackle.c
186
out32rb(pc->pc_addr, tag | reg);
sys/arch/macppc/pci/pci_machdep.c
158
pcitag_t tag;
sys/arch/macppc/pci/pci_machdep.c
176
tag = pci_make_tag(pc, 0, 17, 0);
sys/arch/macppc/pci/pci_machdep.c
177
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/macppc/pci/pci_machdep.c
196
pci_conf_write(pc, tag, 0x14, 0x80000000);
sys/arch/macppc/pci/pci_machdep.c
199
reg = pci_conf_read(pc, tag,
sys/arch/macppc/pci/pci_machdep.c
203
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/arch/macppc/pci/pci_machdep.c
207
reg = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/arch/macppc/pci/pci_machdep.c
210
pci_conf_write(pc, tag, PCI_INTERRUPT_REG, reg);
sys/arch/macppc/pci/pci_machdep.c
224
tag = pci_make_tag(pc, pcibus(addr[0].phys_hi),
sys/arch/macppc/pci/pci_machdep.c
231
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/macppc/pci/pci_machdep.c
247
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/arch/macppc/pci/pci_machdep.c
293
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/macppc/pci/pci_machdep.c
294
if ((tag == pci_make_tag(pc, 0, 13, 0)) &&
sys/arch/macppc/pci/pci_machdep.c
306
intr = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/arch/macppc/pci/pci_machdep.c
309
pci_conf_write(pc, tag, PCI_INTERRUPT_REG, intr);
sys/arch/macppc/pci/pci_machdep.c
312
cr = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/macppc/pci/pci_machdep.c
321
bi = pci_conf_read(pc, tag, PCI_BRIDGE_BUS_REG);
sys/arch/macppc/pci/pci_machdep.c
324
fix_cardbus_bridge(node, pc, tag);
sys/arch/macppc/pci/pci_machdep.c
331
fix_cardbus_bridge(int node, pci_chipset_tag_t pc, pcitag_t tag)
sys/arch/macppc/pci/pci_machdep.c
362
pci_decompose_tag(pc, tag, &bus, &dev, &fn);
sys/arch/macppc/pci/pci_machdep.c
363
bi = pci_conf_read(pc, tag, PCI_BRIDGE_BUS_REG);
sys/arch/macppc/pci/pci_machdep.c
367
pci_conf_write(pc, tag, PCI_BRIDGE_BUS_REG, bi);
sys/arch/macppc/pci/u3.c
176
ibmcpc_conf_read(void *cookie, pcitag_t tag, int reg)
sys/arch/macppc/pci/u3.c
187
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/macppc/pci/u3.c
215
ibmcpc_conf_write(void *cookie, pcitag_t tag, int reg, pcireg_t data)
sys/arch/macppc/pci/u3.c
226
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/macppc/pci/uninorth.c
191
uninorth_conf_read(void *cookie, pcitag_t tag, int reg)
sys/arch/macppc/pci/uninorth.c
206
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/macppc/pci/uninorth.c
220
x = tag | reg | 1;
sys/arch/macppc/pci/uninorth.c
237
uninorth_conf_write(void *cookie, pcitag_t tag, int reg, pcireg_t data)
sys/arch/macppc/pci/uninorth.c
251
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/macppc/pci/uninorth.c
261
x = tag | reg | 1;
sys/arch/macppc/pci/uninorth.c
275
uninorth_conf_read_v3(void *cookie, pcitag_t tag, int reg)
sys/arch/macppc/pci/uninorth.c
290
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/macppc/pci/uninorth.c
316
uninorth_conf_write_v3(void *cookie, pcitag_t tag, int reg, pcireg_t data)
sys/arch/macppc/pci/uninorth.c
330
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/mips/adm5120/dev/admpci.c
227
pcitag_t tag = pci_make_tag(&sc->sc_pc, 0, 0, 0);
sys/arch/mips/adm5120/dev/admpci.c
229
pci_conf_read(&sc->sc_pc, tag, PCI_MAPREG_START));
sys/arch/mips/adm5120/dev/admpci.c
300
admpci_decompose_tag(void *v, pcitag_t tag, int *b, int *d, int *f)
sys/arch/mips/adm5120/dev/admpci.c
304
bus = __SHIFTOUT(tag, ADMPCI_TAG_BUS_MASK);
sys/arch/mips/adm5120/dev/admpci.c
305
device = __SHIFTOUT(tag, ADMPCI_TAG_DEVICE_MASK);
sys/arch/mips/adm5120/dev/admpci.c
306
function = __SHIFTOUT(tag, ADMPCI_TAG_FUNCTION_MASK);
sys/arch/mips/adm5120/dev/admpci.c
317
admpci_tag_to_addr(void *v, pcitag_t tag, int reg, bus_addr_t *addrp)
sys/arch/mips/adm5120/dev/admpci.c
327
admpci_decompose_tag(v, tag, &bus, &device, &function);
sys/arch/mips/adm5120/dev/admpci.c
331
*addrp = 0x80000000 | tag | __SHIFTIN(reg, ADMPCI_TAG_REGISTER_MASK);
sys/arch/mips/adm5120/dev/admpci.c
337
admpci_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/mips/adm5120/dev/admpci.c
344
ADMPCI_DPRINTF("%s: sc %p tag %lx reg %d\n", __func__, (void *)sc, tag,
sys/arch/mips/adm5120/dev/admpci.c
347
if (admpci_tag_to_addr(v, tag, reg, &addr) == -1)
sys/arch/mips/adm5120/dev/admpci.c
363
admpci_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/mips/adm5120/dev/admpci.c
369
ADMPCI_DPRINTF("%s: sc %p tag %lx reg %d\n", __func__, (void *)sc, tag,
sys/arch/mips/adm5120/dev/admpci.c
372
if (admpci_tag_to_addr(v, tag, reg, &addr) == -1)
sys/arch/mips/alchemy/dev/aupci.c
305
pcitag_t tag;
sys/arch/mips/alchemy/dev/aupci.c
310
tag = (bus << 16) | (device << 11) | (function << 8);
sys/arch/mips/alchemy/dev/aupci.c
312
return tag;
sys/arch/mips/alchemy/dev/aupci.c
316
aupci_decompose_tag(void *v, pcitag_t tag, int *b, int *d, int *f)
sys/arch/mips/alchemy/dev/aupci.c
320
*b = (tag >> 16) & 0xff;
sys/arch/mips/alchemy/dev/aupci.c
322
*d = (tag >> 11) & 0x1f;
sys/arch/mips/alchemy/dev/aupci.c
324
*f = (tag >> 8) & 0x07;
sys/arch/mips/alchemy/dev/aupci.c
328
aupci_conf_access(void *v, int dir, pcitag_t tag, int reg, pcireg_t *datap)
sys/arch/mips/alchemy/dev/aupci.c
340
aupci_decompose_tag(v, tag, &b, &d, &f);
sys/arch/mips/alchemy/dev/aupci.c
343
addr = 0x80000000 | tag;
sys/arch/mips/alchemy/dev/aupci.c
384
aupci_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/mips/alchemy/dev/aupci.c
388
if (aupci_conf_access(v, PCI_CFG_READ, tag, reg, &data) == false)
sys/arch/mips/alchemy/dev/aupci.c
395
aupci_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/mips/alchemy/dev/aupci.c
398
aupci_conf_access(v, PCI_CFG_WRITE, tag, reg, &data);
sys/arch/mips/atheros/dev/arpci.c
108
arpci_decompose_tag(void *v, pcitag_t tag, int *busp, int *devp, int *funcp)
sys/arch/mips/atheros/dev/arpci.c
110
if (tag & 1) {
sys/arch/mips/atheros/dev/arpci.c
112
*busp = (tag >> 16) & 255;
sys/arch/mips/atheros/dev/arpci.c
114
*devp = (tag >> 11) & 31;
sys/arch/mips/atheros/dev/arpci.c
119
if (tag & ~0x7ff) {
sys/arch/mips/atheros/dev/arpci.c
120
*devp = ffs(tag >> 11) - 1;
sys/arch/mips/atheros/dev/arpci.c
127
*funcp = (tag >> 8) & 7;
sys/arch/mips/atheros/dev/arpci.c
131
arpci_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/mips/atheros/dev/arpci.c
139
if ((tag & 0x00ff0001) == 1) {
sys/arch/mips/atheros/dev/arpci.c
140
KASSERT(((tag >> 11) & 31) > 20);
sys/arch/mips/atheros/dev/arpci.c
148
tag |= reg & -4;
sys/arch/mips/atheros/dev/arpci.c
157
if ((tag & ~0x7fe) == 0) {
sys/arch/mips/atheros/dev/arpci.c
159
AR7100_PCI_LCL_CFG_CMD, AR7100_PCI_LCL_CFG_CMD_READ | tag);
sys/arch/mips/atheros/dev/arpci.c
161
printf("%s: tag %#lx: ", __func__, tag);
sys/arch/mips/atheros/dev/arpci.c
164
AR7100_PCI_CFG_ADDR, tag);
sys/arch/mips/atheros/dev/arpci.c
168
printf("%s: AD[0:31] 0x%08lx: ", __func__, tag);
sys/arch/mips/atheros/dev/arpci.c
178
arpci_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/mips/atheros/dev/arpci.c
185
if ((tag & 0x00ff0001) == 1) {
sys/arch/mips/atheros/dev/arpci.c
186
KASSERT(((tag >> 11) & 31) > 20);
sys/arch/mips/atheros/dev/arpci.c
194
tag |= reg & -4;
sys/arch/mips/atheros/dev/arpci.c
196
if ((tag & ~0x7fe) == 0) {
sys/arch/mips/atheros/dev/arpci.c
198
AR7100_PCI_LCL_CFG_CMD, AR7100_PCI_LCL_CFG_CMD_WRITE | tag);
sys/arch/mips/atheros/dev/arpci.c
203
AR7100_PCI_CFG_ADDR, tag);
sys/arch/mips/atheros/dev/if_ath_arbus.c
151
asc->sc_config.tag = asc->sc_iot;
sys/arch/mips/bonito/bonito_iobc.c
105
uint32_t line, tag;
sys/arch/mips/bonito/bonito_iobc.c
113
tag = REGVAL(BONITO_PCICACHETAG);
sys/arch/mips/bonito/bonito_iobc.c
114
if (tag & TAG_AVAL) {
sys/arch/mips/bonito/bonito_iobc.c
115
tagaddr = (tag & TAG_ADDR) << IOBC_LINESHIFT;
sys/arch/mips/bonito/bonito_iobc.c
134
uint32_t line, tag;
sys/arch/mips/bonito/bonito_iobc.c
142
tag = REGVAL(BONITO_PCICACHETAG);
sys/arch/mips/bonito/bonito_iobc.c
143
if (tag & TAG_AVAL) {
sys/arch/mips/bonito/bonito_iobc.c
144
tagaddr = (tag & TAG_ADDR) << IOBC_LINESHIFT;
sys/arch/mips/bonito/bonito_pci.c
105
bonito_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/mips/bonito/bonito_pci.c
109
*bp = (tag >> 16) & 0xff;
sys/arch/mips/bonito/bonito_pci.c
111
*dp = (tag >> 11) & 0x1f;
sys/arch/mips/bonito/bonito_pci.c
113
*fp = (tag >> 8) & 0x7;
sys/arch/mips/bonito/bonito_pci.c
117
bonito_conf_addr(struct bonito_config *bc, pcitag_t tag, int offset,
sys/arch/mips/bonito/bonito_pci.c
125
bonito_decompose_tag(bc, tag, &b, &d, &f);
sys/arch/mips/bonito/bonito_pci.c
133
*cfgoff = tag | offset;
sys/arch/mips/bonito/bonito_pci.c
141
bonito_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/mips/bonito/bonito_pci.c
148
if (bonito_conf_addr(bc, tag, offset, &cfgoff, &pcimap_cfg))
sys/arch/mips/bonito/bonito_pci.c
178
bonito_conf_write(void *v, pcitag_t tag, int offset, pcireg_t data)
sys/arch/mips/bonito/bonito_pci.c
184
if (bonito_conf_addr(vt, tag, offset, &cfgoff, &pcimap_cfg))
sys/arch/mips/cavium/dev/octeon_powvar.h
158
uint32_t tag) /* 0-0xffff.ffff */
sys/arch/mips/cavium/dev/octeon_powvar.h
172
__SHIFTIN(tag, POW_STORE_DATA_TAG);
sys/arch/mips/cavium/dev/octeon_powvar.h
180
octpow_ops_swtag(int type, uint32_t tag)
sys/arch/mips/cavium/dev/octeon_powvar.h
192
tag);
sys/arch/mips/cavium/dev/octeon_powvar.h
199
octpow_ops_swtag_full(paddr_t addr, int grp, int type, uint32_t tag)
sys/arch/mips/cavium/dev/octeon_powvar.h
211
tag);
sys/arch/mips/cavium/dev/octeon_powvar.h
217
octpow_ops_swtag_desched(int no_sched, int grp, int type, uint32_t tag)
sys/arch/mips/cavium/dev/octeon_powvar.h
229
tag);
sys/arch/mips/cavium/dev/octeon_powvar.h
253
octpow_ops_addwq(paddr_t addr, int qos, int grp, int type, uint32_t tag)
sys/arch/mips/cavium/dev/octeon_powvar.h
265
tag);
sys/arch/mips/include/bus_dma_funcs.h
122
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/mips/include/bus_dma_funcs.h
125
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/mips/include/bus_dma_funcs.h
129
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/mips/include/bus_dma_funcs.h
131
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/mips/include/bus_dma_funcs.h
133
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/mips/include/bus_dma_funcs.h
135
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/mips/mips/bus_dma.c
1334
_bus_dmatag_subregion(bus_dma_tag_t tag, bus_addr_t min_addr,
sys/arch/mips/mips/bus_dma.c
1339
if (((tag->_bounce_thresh != 0 &&
sys/arch/mips/mips/bus_dma.c
1340
max_addr >= tag->_bounce_thresh - 1 &&
sys/arch/mips/mips/bus_dma.c
1341
tag->_bounce_alloc_hi != 0 &&
sys/arch/mips/mips/bus_dma.c
1342
max_addr >= tag->_bounce_alloc_hi - 1) ||
sys/arch/mips/mips/bus_dma.c
1343
(tag->_bounce_alloc_hi == 0 && max_addr > _BUS_AVAIL_END)) &&
sys/arch/mips/mips/bus_dma.c
1344
(min_addr <= tag->_bounce_alloc_lo)) {
sys/arch/mips/mips/bus_dma.c
1345
*newtag = tag;
sys/arch/mips/mips/bus_dma.c
1347
if (tag->_tag_needs_free)
sys/arch/mips/mips/bus_dma.c
1348
tag->_tag_needs_free++;
sys/arch/mips/mips/bus_dma.c
1356
**newtag = *tag;
sys/arch/mips/mips/bus_dma.c
1359
if (tag->_bounce_thresh == 0 || max_addr < tag->_bounce_thresh)
sys/arch/mips/mips/bus_dma.c
1361
if (tag->_bounce_alloc_hi == 0 || max_addr < tag->_bounce_alloc_hi)
sys/arch/mips/mips/bus_dma.c
1363
if (min_addr > tag->_bounce_alloc_lo)
sys/arch/mips/mips/bus_dma.c
1366
(*newtag)->_bounce_alloc_lo - tag->_bounce_alloc_lo;
sys/arch/mips/mips/bus_dma.c
1375
_bus_dmatag_destroy(bus_dma_tag_t tag)
sys/arch/mips/mips/bus_dma.c
1378
switch (tag->_tag_needs_free) {
sys/arch/mips/mips/bus_dma.c
1382
kmem_free(tag, sizeof(*tag)); /* last reference to tag */
sys/arch/mips/mips/bus_dma.c
1385
tag->_tag_needs_free--; /* one less reference */
sys/arch/mips/mips/cpu_subr.c
645
cpu_broadcast_ipi(int tag)
sys/arch/mips/mips/cpu_subr.c
649
cpu_multicast_ipi(cpus_running, tag);
sys/arch/mips/mips/cpu_subr.c
653
cpu_multicast_ipi(const kcpuset_t *kcp, int tag)
sys/arch/mips/mips/cpu_subr.c
665
(void)cpu_send_ipi(cpu_lookup(cii), tag);
sys/arch/mips/mips/cpu_subr.c
670
cpu_send_ipi(struct cpu_info *ci, int tag)
sys/arch/mips/mips/cpu_subr.c
673
return (*mips_locoresw.lsw_send_ipi)(ci, tag);
sys/arch/mips/rmi/rmixl_intr.c
951
rmixl_send_ipi(struct cpu_info *ci, int tag)
sys/arch/mips/rmi/rmixl_intr.c
956
uint64_t req = 1 << tag;
sys/arch/mips/rmi/rmixl_intr.c
962
KASSERT((tag >= 0) && (tag < NIPIS));
sys/arch/mips/rmi/rmixl_intr.c
966
| (RMIXL_INTRVEC_IPI + tag);
sys/arch/mips/rmi/rmixl_pcie.c
1008
if (rmixl_pcie_conf_setup(sc, tag, &offset, &bst, &bsh) == 0) {
sys/arch/mips/rmi/rmixl_pcie.c
1015
rmixl_pcie_decompose_tag(v, tag, &bus, &dev, &fun);
sys/arch/mips/rmi/rmixl_pcie.c
1475
pcitag_t tag;
sys/arch/mips/rmi/rmixl_pcie.c
1481
tag = rmixl_pcie_make_tag(v, 0, 0, 0); /* XXX */
sys/arch/mips/rmi/rmixl_pcie.c
1485
r = rmixl_pcie_conf_read(v, tag, offset);
sys/arch/mips/rmi/rmixl_pcie.c
1493
rmixl_pcie_conf_write(v, tag, offset, rw1c);
sys/arch/mips/rmi/rmixl_pcie.c
719
pcitag_t tag;
sys/arch/mips/rmi/rmixl_pcie.c
723
tag = rmixl_pcie_make_tag(v, 0, 0, 0);
sys/arch/mips/rmi/rmixl_pcie.c
732
r = rmixl_pcie_conf_read(v, tag, offset);
sys/arch/mips/rmi/rmixl_pcie.c
736
r = rmixl_pcie_conf_read(v, tag, 0x100);
sys/arch/mips/rmi/rmixl_pcie.c
741
r = rmixl_pcie_conf_read(v, tag, RMIXL_PCIE_ECFG_UESR);
sys/arch/mips/rmi/rmixl_pcie.c
748
r = rmixl_pcie_conf_read(v, tag, RMIXL_PCIE_ECFG_UEMR);
sys/arch/mips/rmi/rmixl_pcie.c
750
rmixl_pcie_conf_write(v, tag, RMIXL_PCIE_ECFG_UEMR, r);
sys/arch/mips/rmi/rmixl_pcie.c
753
r = rmixl_pcie_conf_read(v, tag, RMIXL_PCIE_ECFG_UEVR);
sys/arch/mips/rmi/rmixl_pcie.c
756
rmixl_pcie_conf_write(v, tag, RMIXL_PCIE_ECFG_UEVR, r);
sys/arch/mips/rmi/rmixl_pcie.c
759
r = rmixl_pcie_conf_read(v, tag, RMIXL_PCIE_ECFG_CESR);
sys/arch/mips/rmi/rmixl_pcie.c
768
r = rmixl_pcie_conf_read(v, tag, RMIXL_PCIE_ECFG_CEMR);
sys/arch/mips/rmi/rmixl_pcie.c
770
rmixl_pcie_conf_write(v, tag, RMIXL_PCIE_ECFG_UEMR, r);
sys/arch/mips/rmi/rmixl_pcie.c
773
r = rmixl_pcie_conf_read(v, tag, RMIXL_PCIE_ECFG_RESR);
sys/arch/mips/rmi/rmixl_pcie.c
781
rmixl_pcie_conf_write(v, tag, RMIXL_PCIE_ECFG_RECR, r);
sys/arch/mips/rmi/rmixl_pcie.c
841
rmixl_tag_to_ecfg(pcitag_t tag)
sys/arch/mips/rmi/rmixl_pcie.c
843
KASSERT((tag & __BITS(7,0)) == 0);
sys/arch/mips/rmi/rmixl_pcie.c
844
return (tag << 4);
sys/arch/mips/rmi/rmixl_pcie.c
865
rmixl_pcie_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/mips/rmi/rmixl_pcie.c
868
*bp = (tag >> 16) & 0xff;
sys/arch/mips/rmi/rmixl_pcie.c
870
*dp = (tag >> 11) & 0x1f;
sys/arch/mips/rmi/rmixl_pcie.c
872
*fp = (tag >> 8) & 0x7;
sys/arch/mips/rmi/rmixl_pcie.c
876
rmixl_pcie_tag_print(const char *restrict s, void *v, pcitag_t tag, int offset,
sys/arch/mips/rmi/rmixl_pcie.c
881
rmixl_pcie_decompose_tag(v, tag, &bus, &dev, &fun);
sys/arch/mips/rmi/rmixl_pcie.c
888
pcitag_t tag, int *offp, bus_space_tag_t *bstp,
sys/arch/mips/rmi/rmixl_pcie.c
910
ba += (tag & ~mask);
sys/arch/mips/rmi/rmixl_pcie.c
911
*offp += (tag & mask);
sys/arch/mips/rmi/rmixl_pcie.c
929
tag = rmixl_tag_to_ecfg(tag); /* convert to ECFG format */
sys/arch/mips/rmi/rmixl_pcie.c
932
ba += (tag & ~mask);
sys/arch/mips/rmi/rmixl_pcie.c
933
*offp += (tag & mask);
sys/arch/mips/rmi/rmixl_pcie.c
965
rmixl_pcie_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/mips/rmi/rmixl_pcie.c
975
if (rmixl_pcie_conf_setup(sc, tag, &offset, &bst, &bsh) == 0) {
sys/arch/mips/rmi/rmixl_pcie.c
982
rmixl_pcie_decompose_tag(v, tag, &bus, &dev, &fun);
sys/arch/mips/rmi/rmixl_pcie.c
999
rmixl_pcie_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/mips/rmi/rmixl_pcix.c
629
rmixl_pcix_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/mips/rmi/rmixl_pcix.c
632
*bp = (tag >> 16) & 0xff;
sys/arch/mips/rmi/rmixl_pcix.c
634
*dp = (tag >> 11) & 0x1f;
sys/arch/mips/rmi/rmixl_pcix.c
636
*fp = (tag >> 8) & 0x7;
sys/arch/mips/rmi/rmixl_pcix.c
640
rmixl_pcix_tag_print(const char *restrict s, void *v, pcitag_t tag, int offset,
sys/arch/mips/rmi/rmixl_pcix.c
645
rmixl_pcix_decompose_tag(v, tag, &bus, &dev, &fun);
sys/arch/mips/rmi/rmixl_pcix.c
652
pcitag_t tag, int *offp, bus_space_tag_t *bstp,
sys/arch/mips/rmi/rmixl_pcix.c
672
ba += (tag & ~mask);
sys/arch/mips/rmi/rmixl_pcix.c
673
*offp += (tag & mask);
sys/arch/mips/rmi/rmixl_pcix.c
700
rmixl_pcix_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/mips/rmi/rmixl_pcix.c
710
if (rmixl_pcix_conf_setup(sc, tag, &offset, &bst, &bsh) == 0) {
sys/arch/mips/rmi/rmixl_pcix.c
717
rmixl_pcix_decompose_tag(v, tag, &bus, &dev, &fun);
sys/arch/mips/rmi/rmixl_pcix.c
734
rmixl_pcix_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/mips/rmi/rmixl_pcix.c
743
if (rmixl_pcix_conf_setup(sc, tag, &offset, &bst, &bsh) == 0) {
sys/arch/mips/rmi/rmixl_pcix.c
750
rmixl_pcix_decompose_tag(v, tag, &bus, &dev, &fun);
sys/arch/mips/sibyte/pci/sbbrz_pci.c
164
sbbrz_pci_decompose_tag(void *cpv, pcitag_t tag,
sys/arch/mips/sibyte/pci/sbbrz_pci.c
169
*bp = (tag >> 16) & 0xff;
sys/arch/mips/sibyte/pci/sbbrz_pci.c
171
*dp = (tag >> 11) & 0x1f;
sys/arch/mips/sibyte/pci/sbbrz_pci.c
173
*fp = (tag >> 8) & 0x7;
sys/arch/mips/sibyte/pci/sbbrz_pci.c
177
sbbrz_pci_conf_read(void *cpv, pcitag_t tag, int offset)
sys/arch/mips/sibyte/pci/sbbrz_pci.c
189
addr = A_PHYS_LDTPCI_CFG_MATCH_BITS + tag + offset;
sys/arch/mips/sibyte/pci/sbbrz_pci.c
201
sbbrz_pci_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
sys/arch/mips/sibyte/pci/sbbrz_pci.c
213
addr = A_PHYS_LDTPCI_CFG_MATCH_BITS + tag + offset;
sys/arch/mipsco/include/bus.h
927
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/mipsco/include/bus.h
930
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/mipsco/include/bus.h
934
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/mipsco/include/bus.h
936
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/mipsco/include/bus.h
938
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/mipsco/include/bus.h
940
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/mipsco/include/bus.h
943
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/mipsco/include/bus.h
949
void _bus_dma_tag_init(bus_dma_tag_t tag);
sys/arch/mvmeppc/mvmeppc/machdep.c
241
bus_space_tag_t tag = &genppc_isa_io_space_tag;
sys/arch/mvmeppc/mvmeppc/machdep.c
244
rv = comcnattach(tag, caddr[bootinfo.bi_consolechan],
sys/arch/netwinder/pci/pci_machdep.c
100
pci_conf_write(pba->pba_pc, tag, 0x14, 0x03f4 | PCI_MAPREG_TYPE_IO);
sys/arch/netwinder/pci/pci_machdep.c
101
pci_conf_write(pba->pba_pc, tag, 0x18, 0x0170 | PCI_MAPREG_TYPE_IO);
sys/arch/netwinder/pci/pci_machdep.c
102
pci_conf_write(pba->pba_pc, tag, 0x1c, 0x0374 | PCI_MAPREG_TYPE_IO);
sys/arch/netwinder/pci/pci_machdep.c
103
pci_conf_write(pba->pba_pc, tag, 0x20, 0xe800 | PCI_MAPREG_TYPE_IO);
sys/arch/netwinder/pci/pci_machdep.c
104
intreg = pci_conf_read(pba->pba_pc, tag, PCI_INTERRUPT_REG);
sys/arch/netwinder/pci/pci_machdep.c
110
pci_conf_write(pba->pba_pc, tag, PCI_INTERRUPT_REG, intreg);
sys/arch/netwinder/pci/pci_machdep.c
115
regval = pci_conf_read(pba->pba_pc, tag, 0x40);
sys/arch/netwinder/pci/pci_machdep.c
117
pci_conf_write(pba->pba_pc, tag, 0x40, regval);
sys/arch/netwinder/pci/pci_machdep.c
19
pcitag_t tag;
sys/arch/netwinder/pci/pci_machdep.c
24
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 9, 0);
sys/arch/netwinder/pci/pci_machdep.c
25
pci_conf_write(pba->pba_pc, tag,
sys/arch/netwinder/pci/pci_machdep.c
30
intreg = pci_conf_read(pba->pba_pc, tag, PCI_INTERRUPT_REG);
sys/arch/netwinder/pci/pci_machdep.c
36
pci_conf_write(pba->pba_pc, tag, PCI_INTERRUPT_REG, intreg);
sys/arch/netwinder/pci/pci_machdep.c
37
pci_conf_write(pba->pba_pc, tag, 0x10, 0x400 | PCI_MAPREG_TYPE_IO);
sys/arch/netwinder/pci/pci_machdep.c
38
pci_conf_write(pba->pba_pc, tag, 0x14, 0x00800000);
sys/arch/netwinder/pci/pci_machdep.c
43
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 12, 0);
sys/arch/netwinder/pci/pci_machdep.c
44
pci_conf_write(pba->pba_pc, tag,
sys/arch/netwinder/pci/pci_machdep.c
48
intreg = pci_conf_read(pba->pba_pc, tag, PCI_INTERRUPT_REG);
sys/arch/netwinder/pci/pci_machdep.c
54
pci_conf_write(pba->pba_pc, tag, PCI_INTERRUPT_REG, intreg);
sys/arch/netwinder/pci/pci_machdep.c
55
pci_conf_write(pba->pba_pc, tag, 0x10, 0x300 | PCI_MAPREG_TYPE_IO);
sys/arch/netwinder/pci/pci_machdep.c
61
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 11, 0);
sys/arch/netwinder/pci/pci_machdep.c
62
pci_conf_write(pba->pba_pc, tag,
sys/arch/netwinder/pci/pci_machdep.c
67
pci_conf_write(pba->pba_pc, tag, 0x10, 0);
sys/arch/netwinder/pci/pci_machdep.c
68
pci_conf_write(pba->pba_pc, tag, 0x48,
sys/arch/netwinder/pci/pci_machdep.c
69
pci_conf_read(pba->pba_pc, tag, 0x48)|0xff);
sys/arch/netwinder/pci/pci_machdep.c
71
regval = pci_conf_read(pba->pba_pc, tag, 0x40);
sys/arch/netwinder/pci/pci_machdep.c
74
pci_conf_write(pba->pba_pc, tag, 0x40, regval);
sys/arch/netwinder/pci/pci_machdep.c
76
regval = pci_conf_read(pba->pba_pc, tag, 0x80);
sys/arch/netwinder/pci/pci_machdep.c
79
pci_conf_write(pba->pba_pc, tag, 0x80, regval);
sys/arch/netwinder/pci/pci_machdep.c
85
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 11, 1);
sys/arch/netwinder/pci/pci_machdep.c
86
pci_conf_write(pba->pba_pc, tag,
sys/arch/netwinder/pci/pci_machdep.c
91
regval = pci_conf_read(pba->pba_pc, tag, PCI_CLASS_REG);
sys/arch/netwinder/pci/pci_machdep.c
93
pci_conf_write(pba->pba_pc, tag, PCI_CLASS_REG, regval);
sys/arch/netwinder/pci/pci_machdep.c
95
regval = pci_conf_read(pba->pba_pc, tag, 0x40);
sys/arch/netwinder/pci/pci_machdep.c
97
pci_conf_write(pba->pba_pc, tag, 0x40, regval);
sys/arch/netwinder/pci/pci_machdep.c
99
pci_conf_write(pba->pba_pc, tag, 0x10, 0x01f0 | PCI_MAPREG_TYPE_IO);
sys/arch/news68k/dev/dmac_0266.h
42
volatile uint32_t tag; /* Tag Register */
sys/arch/news68k/dev/si.c
299
dmac->tag = 0;
sys/arch/news68k/dev/si.c
307
dmac->tag = i;
sys/arch/news68k/dev/si.c
313
dmac->tag = 0;
sys/arch/newsmips/dev/scsi_1185.c
1496
uint8_t tag;
sys/arch/newsmips/dev/scsi_1185.c
1551
tag = 0;
sys/arch/newsmips/dev/scsi_1185.c
1563
dmac_ctag = (uint8_t)tag++;
sys/arch/newsmips/dev/scsi_1185.c
1570
dmac_ctag = (uint8_t)tag++;
sys/arch/newsmips/dev/scsi_1185.c
1583
dmac_ctag = (uint8_t)tag++;
sys/arch/newsmips/include/bus.h
612
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/newsmips/include/bus.h
615
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/newsmips/include/bus.h
617
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/newsmips/include/bus.h
619
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/newsmips/include/bus.h
621
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/newsmips/include/bus.h
624
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/or1k/include/bus_funcs.h
540
int _bus_dmamem_alloc (bus_dma_tag_t tag, bus_size_t size,
sys/arch/or1k/include/bus_funcs.h
543
void _bus_dmamem_free (bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/or1k/include/bus_funcs.h
545
int _bus_dmamem_map (bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/or1k/include/bus_funcs.h
547
void _bus_dmamem_unmap (bus_dma_tag_t tag, void *kva,
sys/arch/or1k/include/bus_funcs.h
549
paddr_t _bus_dmamem_mmap (bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/or1k/include/bus_funcs.h
552
int _bus_dmamem_alloc_range (bus_dma_tag_t tag, bus_size_t size,
sys/arch/playstation2/include/bus.h
327
PREFIX##_read_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/playstation2/include/bus.h
338
PREFIX##_read_multi_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/playstation2/include/bus.h
351
PREFIX##_read_region_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/playstation2/include/bus.h
365
PREFIX##_write_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/playstation2/include/bus.h
376
PREFIX##_write_multi_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/playstation2/include/bus.h
390
PREFIX##_write_region_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/playstation2/include/bus.h
404
PREFIX##_set_multi_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/playstation2/include/bus.h
418
PREFIX##_set_region_##BYTES(void *tag, bus_space_handle_t bsh, \
sys/arch/playstation2/include/bus.h
887
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/playstation2/include/bus.h
890
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/playstation2/include/bus.h
892
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/playstation2/include/bus.h
894
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/playstation2/include/bus.h
896
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/playstation2/include/bus.h
899
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/playstation2/playstation2/kloader_machdep.c
59
struct kloader_bootinfo *info, struct kloader_page_tag *tag)
sys/arch/playstation2/playstation2/kloader_machdep.c
64
(*func)(info, tag); /* 2nd-bootloader don't use stack */
sys/arch/powerpc/booke/pci/pq3pci.c
1018
pq3pci_decompose_tag(void *v, pcitag_t tag, int *bus, int *dev, int *func)
sys/arch/powerpc/booke/pci/pq3pci.c
1021
*bus = (tag >> 16) & 0xff;
sys/arch/powerpc/booke/pci/pq3pci.c
1023
*dev = (tag >> 11) & 0x1f;
sys/arch/powerpc/booke/pci/pq3pci.c
1025
*func = (tag >> 8) & 0x07;
sys/arch/powerpc/booke/pci/pq3pci.c
1069
pq3pci_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/powerpc/booke/pci/pq3pci.c
1081
if (sc->sc_pcie && ((tag >> 16) & 0xff) != 0) {
sys/arch/powerpc/booke/pci/pq3pci.c
1091
pq3pci_config_addr_write(pc, tag | reg | PEX_CONFIG_ADDR_EN);
sys/arch/powerpc/booke/pci/pq3pci.c
1100
__func__, tag, reg, pq3pci_config_addr_read(pc));
sys/arch/powerpc/booke/pci/pq3pci.c
1109
pq3pci_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/powerpc/booke/pci/pq3pci.c
1126
__func__, tag, reg, data);
sys/arch/powerpc/booke/pci/pq3pci.c
1128
pq3pci_config_addr_write(pc, tag | reg | PEX_CONFIG_ADDR_EN);
sys/arch/powerpc/booke/pci/pq3pci.c
1377
pcitag_t tag = (pa->pa_intrpin - PCI_INTERRUPT_PIN_A) * intrinc;
sys/arch/powerpc/booke/pci/pq3pci.c
1380
tag & sc->sc_intrmask);
sys/arch/powerpc/booke/pci/pq3pci.c
1385
tag, sc->sc_intrmask, tag & sc->sc_intrmask, prop_name);
sys/arch/powerpc/booke/pci/pq3pci.c
1464
const pcitag_t tag = msih->msih_tag;
sys/arch/powerpc/booke/pci/pq3pci.c
1473
msictl = pci_conf_read(pc, tag, off);
sys/arch/powerpc/booke/pci/pq3pci.c
1480
pci_conf_write(pc, tag, off,
sys/arch/powerpc/booke/pci/pq3pci.c
1488
pci_conf_write(pc, tag, off, 0);
sys/arch/powerpc/booke/pci/pq3pci.c
1498
pci_conf_write(pc, tag, off, PIH_IRQ(handle));
sys/arch/powerpc/booke/pci/pq3pci.c
1505
pci_conf_write(pc, tag, off, 0);
sys/arch/powerpc/booke/pci/pq3pci.c
1513
cmdsts = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/powerpc/booke/pci/pq3pci.c
1515
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, cmdsts);
sys/arch/powerpc/booke/pci/pq3pci.c
1522
pci_conf_write(pc, tag, msih->msih_msioff, msictl);
sys/arch/powerpc/booke/pci/pq3pci.c
1571
const pcitag_t tag = msih->msih_tag;
sys/arch/powerpc/booke/pci/pq3pci.c
1578
pcireg_t msictl = pci_conf_read(pc, tag, msih->msih_msioff);
sys/arch/powerpc/booke/pci/pq3pci.c
1580
pci_conf_write(pc, tag, msih->msih_msioff, msictl);
sys/arch/powerpc/ibm4xx/dev/ibm405gp.c
120
pcitag_t tag;
sys/arch/powerpc/ibm4xx/dev/ibm405gp.c
140
tag = pci_make_tag(pc, 0, 0, 0);
sys/arch/powerpc/ibm4xx/dev/ibm405gp.c
146
pci_conf_write(pc, tag, PCIC_PTM1BAR, 0); /* Set up proper PCI->Local address base. Always enabled */
sys/arch/powerpc/ibm4xx/dev/ibm405gp.c
147
pci_conf_write(pc, tag, PCIC_PTM2BAR, 0);
sys/arch/powerpc/ibm4xx/dev/ibm405gp.c
155
pcitag_t tag;
sys/arch/powerpc/ibm4xx/dev/ibm405gp.c
183
tag = pci_make_tag(pc, 0, 0, 0);
sys/arch/powerpc/ibm4xx/dev/ibm405gp.c
184
pl = pci_conf_read(pc, tag, PCIC_PTM1BAR);
sys/arch/powerpc/ibm4xx/dev/ibm405gp.c
189
pl = pci_conf_read(pc, tag, PCIC_PTM2BAR);
sys/arch/powerpc/ibm4xx/pci/pchb.c
100
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/powerpc/ibm4xx/pci/pchb.c
131
pcitag_t tag;
sys/arch/powerpc/ibm4xx/pci/pchb.c
135
tag = pci_make_tag(pc, 0, 0, 0);
sys/arch/powerpc/ibm4xx/pci/pchb.c
137
class = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/powerpc/ibm4xx/pci/pchb.c
138
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/powerpc/ibm4xx/pci/pchb.c
206
pcitag_t tag;
sys/arch/powerpc/ibm4xx/pci/pchb.c
210
tag = pci_make_tag(pc, 0, i, 0);
sys/arch/powerpc/ibm4xx/pci/pchb.c
211
x = pci_conf_read(pc, tag, 0);
sys/arch/powerpc/ibm4xx/pci/pchb.c
212
printf("%d tag=%08x : %08x\n", i, tag, x);
sys/arch/powerpc/ibm4xx/pci/pchb.c
219
x = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/powerpc/ibm4xx/pci/pchb.c
221
pci_conf_write(0, tag, PCI_COMMAND_STATUS_REG, x);
sys/arch/powerpc/ibm4xx/pci/pchb.c
89
pcitag_t tag;
sys/arch/powerpc/ibm4xx/pci/pchb.c
97
tag = pci_make_tag(pc, 0, 0, 0);
sys/arch/powerpc/ibm4xx/pci/pchb.c
99
class = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
114
pcitag_t tag;
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
120
tag = 0x80000000 | (bus << 16) | (device << 11) | (function << 8);
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
122
return tag;
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
126
ibm4xx_pci_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
130
*bp = (tag >> 16) & 0xff;
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
132
*dp = (tag >> 11) & 0x1f;
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
134
*fp = (tag >> 8) & 0x07;
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
138
ibm4xx_pci_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
146
bus_space_write_4(&pci_iot, pci_ioh, PCIC_CFGADDR, tag | reg);
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
154
ibm4xx_pci_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
160
bus_space_write_4(&pci_iot, pci_ioh, PCIC_CFGADDR, tag | reg);
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
198
pcitag_t tag;
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
201
tag = ibm4xx_pci_make_tag(v, bus, dev, func);
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
202
csr = ibm4xx_pci_conf_read(v, tag, PCI_CLASS_REG);
sys/arch/powerpc/ibm4xx/pci/pci_machdep.c
205
ibm4xx_pci_conf_write(v, tag, PCI_CLASS_REG, csr);
sys/arch/powerpc/ibm4xx/pci/pciex.c
224
pciex_conf_ok(void *v, pcitag_t tag)
sys/arch/powerpc/ibm4xx/pci/pciex.c
228
ibm4xx_pci_decompose_tag(v, tag, &bus, &dev, NULL);
sys/arch/powerpc/ibm4xx/pci/pciex.c
237
pciex_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/powerpc/ibm4xx/pci/pciex.c
245
if (!pciex_conf_ok(v, tag))
sys/arch/powerpc/ibm4xx/pci/pciex.c
253
(tag << 4) | reg);
sys/arch/powerpc/ibm4xx/pci/pciex.c
259
pciex_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/powerpc/ibm4xx/pci/pciex.c
266
if (!pciex_conf_ok(v, tag))
sys/arch/powerpc/ibm4xx/pci/pciex.c
274
(tag << 4) | reg, data);
sys/arch/powerpc/ibm4xx/pci/pcix.c
185
pcix_cfg_addr(pcitag_t tag, int reg)
sys/arch/powerpc/ibm4xx/pci/pcix.c
187
uint32_t addr = (tag & 0x00ffff00) | (reg & 0xfc);
sys/arch/powerpc/ibm4xx/pci/pcix.c
189
if (tag & 0x00ff0000) /* bus number != 0 -> Type 1 */
sys/arch/powerpc/ibm4xx/pci/pcix.c
195
pcix_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/powerpc/ibm4xx/pci/pcix.c
203
pcix_cfg_addr(tag, reg));
sys/arch/powerpc/ibm4xx/pci/pcix.c
210
pcix_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/powerpc/ibm4xx/pci/pcix.c
217
pcix_cfg_addr(tag, reg));
sys/arch/powerpc/include/bus_funcs.h
549
int _bus_dmamem_alloc (bus_dma_tag_t tag, bus_size_t size,
sys/arch/powerpc/include/bus_funcs.h
552
void _bus_dmamem_free (bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/powerpc/include/bus_funcs.h
554
int _bus_dmamem_map (bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/powerpc/include/bus_funcs.h
556
void _bus_dmamem_unmap (bus_dma_tag_t tag, void *kva,
sys/arch/powerpc/include/bus_funcs.h
558
paddr_t _bus_dmamem_mmap (bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/powerpc/include/bus_funcs.h
561
int _bus_dmamem_alloc_range (bus_dma_tag_t tag, bus_size_t size,
sys/arch/powerpc/include/pci_machdep.h
222
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/powerpc/include/pci_machdep.h
224
return (*pc->pc_conf_read)(pc->pc_conf_v, tag, reg);
sys/arch/powerpc/include/pci_machdep.h
228
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t val)
sys/arch/powerpc/include/pci_machdep.h
230
(*pc->pc_conf_write)(pc->pc_conf_v, tag, reg, val);
sys/arch/powerpc/include/pci_machdep.h
234
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/powerpc/include/pci_machdep.h
236
(*pc->pc_decompose_tag)(pc->pc_conf_v, tag, bp, dp, fp);
sys/arch/powerpc/mpc5200/mpc5200_pci.c
104
out32(pc->pc_addr, tag | reg); /* PCICAR: big-endian */
sys/arch/powerpc/mpc5200/mpc5200_pci.c
113
mpcpci_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/powerpc/mpc5200/mpc5200_pci.c
122
out32(pc->pc_addr, tag | reg); /* PCICAR: big-endian */
sys/arch/powerpc/mpc5200/mpc5200_pci.c
94
mpcpci_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/powerpc/oea/ofw_autoconf.c
562
pcidev_to_ofdev(pci_chipset_tag_t pc, pcitag_t tag)
sys/arch/powerpc/oea/ofw_autoconf.c
569
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/powerpc/oea/ofwoea_machdep.c
559
struct powerpc_bus_space *tag, const char *name)
sys/arch/powerpc/oea/ofwoea_machdep.c
604
tag->pbs_offset = list[i].addr;
sys/arch/powerpc/oea/ofwoea_machdep.c
605
tag->pbs_limit = size;
sys/arch/powerpc/oea/ofwoea_machdep.c
606
error = bus_space_init(tag, name,
sys/arch/powerpc/oea/ofwoea_machdep.c
617
tag->pbs_offset = list[i].addr;
sys/arch/powerpc/oea/ofwoea_machdep.c
618
tag->pbs_limit = size;
sys/arch/powerpc/oea/ofwoea_machdep.c
619
error = bus_space_init(tag, name,
sys/arch/powerpc/oea/ofwoea_machdep.c
679
tag->pbs_offset = region.addr;
sys/arch/powerpc/oea/ofwoea_machdep.c
680
tag->pbs_base = 0;
sys/arch/powerpc/oea/ofwoea_machdep.c
681
tag->pbs_limit = region.size;
sys/arch/powerpc/oea/ofwoea_machdep.c
684
tag->pbs_offset = 0;
sys/arch/powerpc/oea/ofwoea_machdep.c
685
tag->pbs_base = region.addr;
sys/arch/powerpc/oea/ofwoea_machdep.c
686
tag->pbs_limit = region.size + region.addr;
sys/arch/powerpc/oea/ofwoea_machdep.c
689
error = bus_space_init(tag, name, ex_storage[exmap],
sys/arch/powerpc/oea/ofwoea_machdep.c
696
error = extent_alloc_region(tag->pbs_extent,
sys/arch/powerpc/oea/ofwoea_machdep.c
697
holes[i].addr - tag->pbs_offset,
sys/arch/powerpc/oea/ofwoea_machdep.c
700
error = extent_alloc_region(tag->pbs_extent,
sys/arch/powerpc/pci/pci_machdep_ofw.c
333
pcitag_t tag;
sys/arch/powerpc/pci/pci_machdep_ofw.c
341
tag = pci_make_tag(pc, pc->pc_bus, dev, func);
sys/arch/powerpc/pci/pci_machdep_ofw.c
342
irq = PCI_INTERRUPT_LINE(pci_conf_read(pc, tag,
sys/arch/powerpc/pci/pci_machdep_ofw.c
479
pcitag_t tag;
sys/arch/powerpc/pci/pci_machdep_ofw.c
519
tag = pci_make_tag(pct, bus, dev, func);
sys/arch/powerpc/pci/pci_machdep_ofw.c
520
class = pci_conf_read(pct, tag, PCI_CLASS_REG);
sys/arch/powerpc/pci/pciconf_indirect.c
100
genppc_pci_indirect_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/powerpc/pci/pciconf_indirect.c
110
out32rb(pc->pc_addr, tag | reg);
sys/arch/powerpc/pci/pciconf_indirect.c
119
genppc_pci_indirect_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/powerpc/pci/pciconf_indirect.c
128
out32rb(pc->pc_addr, tag | reg);
sys/arch/powerpc/pci/pciconf_indirect.c
75
pcitag_t tag;
sys/arch/powerpc/pci/pciconf_indirect.c
80
tag = PCI_MODE1_ENABLE |
sys/arch/powerpc/pci/pciconf_indirect.c
82
return tag;
sys/arch/powerpc/pci/pciconf_indirect.c
86
genppc_pci_indirect_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp,
sys/arch/powerpc/pci/pciconf_indirect.c
91
*bp = (tag >> 16) & 0xff;
sys/arch/powerpc/pci/pciconf_indirect.c
93
*dp = (tag >> 11) & 0x1f;
sys/arch/powerpc/pci/pciconf_indirect.c
95
*fp = (tag >> 8) & 0x7;
sys/arch/powerpc/pci/pciconf_ofmethod.c
105
tag &= OFW_PCI_PHYS_HI_BUSMASK | OFW_PCI_PHYS_HI_DEVICEMASK |
sys/arch/powerpc/pci/pciconf_ofmethod.c
107
tag |= reg & OFW_PCI_PHYS_HI_REGISTERMASK;
sys/arch/powerpc/pci/pciconf_ofmethod.c
108
if (OF_call_method("config-l@", pc->pc_ihandle, 1, 1, tag, &data) < 0)
sys/arch/powerpc/pci/pciconf_ofmethod.c
115
genppc_pci_ofmethod_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/powerpc/pci/pciconf_ofmethod.c
122
tag &= OFW_PCI_PHYS_HI_BUSMASK | OFW_PCI_PHYS_HI_DEVICEMASK |
sys/arch/powerpc/pci/pciconf_ofmethod.c
124
tag |= reg & OFW_PCI_PHYS_HI_REGISTERMASK;
sys/arch/powerpc/pci/pciconf_ofmethod.c
125
OF_call_method("config-l!", pc->pc_ihandle, 2, 0, data, tag);
sys/arch/powerpc/pci/pciconf_ofmethod.c
83
genppc_pci_ofmethod_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp,
sys/arch/powerpc/pci/pciconf_ofmethod.c
88
*bp = OFW_PCI_PHYS_HI_BUS(tag);
sys/arch/powerpc/pci/pciconf_ofmethod.c
90
*dp = OFW_PCI_PHYS_HI_DEVICE(tag);
sys/arch/powerpc/pci/pciconf_ofmethod.c
92
*fp = OFW_PCI_PHYS_HI_FUNCTION(tag);
sys/arch/powerpc/pci/pciconf_ofmethod.c
97
genppc_pci_ofmethod_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/prep/include/pcipnp.h
63
uint8_t tag; /* large tag = 0x84 */
sys/arch/prep/pci/gten.c
327
pcitag_t tag;
sys/arch/prep/pci/gten.c
332
tag = pci_make_tag(pc, 0, 14, 0);
sys/arch/prep/pci/gten.c
334
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/prep/pci/gten.c
339
mapreg = pci_conf_read(pc, tag, 0x14);
sys/arch/prep/pci/gten.c
345
pci_conf_write(pc, tag, 0x14, 0xffffffff);
sys/arch/prep/pci/gten.c
346
mask = pci_conf_read(pc, tag, 0x14);
sys/arch/prep/pci/gten.c
347
pci_conf_write(pc, tag, 0x14, mapreg);
sys/arch/prep/pci/gten.c
362
gten_console_pcitag = tag;
sys/arch/prep/pci/pci_machdep.c
276
pcitag_t tag;
sys/arch/prep/pci/pci_machdep.c
311
tag = genppc_pci_indirect_make_tag(pc, bus, dev, func);
sys/arch/prep/pci/pci_machdep.c
312
class = genppc_pci_indirect_conf_read(pc, tag,
sys/arch/prep/pci/pci_machdep.c
315
tag = prep_pci_direct_make_tag(pc, bus, dev, func);
sys/arch/prep/pci/pci_machdep.c
316
class = prep_pci_direct_conf_read(pc, tag,
sys/arch/prep/pci/prep_pciconf_direct.c
141
pcitag_t tag;
sys/arch/prep/pci/prep_pciconf_direct.c
146
tag = (bus << 16) | (device << 11) | (function << 8);
sys/arch/prep/pci/prep_pciconf_direct.c
148
return tag;
sys/arch/prep/pci/prep_pciconf_direct.c
152
prep_pci_direct_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp,
sys/arch/prep/pci/prep_pciconf_direct.c
157
*bp = (tag >> 16) & 0xff;
sys/arch/prep/pci/prep_pciconf_direct.c
159
*dp = (tag >> 11) & 0x1f;
sys/arch/prep/pci/prep_pciconf_direct.c
161
*fp = (tag >> 8) & 0x7;
sys/arch/prep/pci/prep_pciconf_direct.c
166
prep_pci_direct_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/prep/pci/prep_pciconf_direct.c
175
prep_pci_direct_decompose_tag(v, tag, &bus, &device, &function);
sys/arch/prep/pci/prep_pciconf_direct.c
183
tag = (1 << device) | (function << PCI_DCONF_FUNC_SHIFT);
sys/arch/prep/pci/prep_pciconf_direct.c
187
data = in32rb(PCI_DCONF_BASE | tag | reg);
sys/arch/prep/pci/prep_pciconf_direct.c
195
prep_pci_direct_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/prep/pci/prep_pciconf_direct.c
201
(unsigned long)v, tag, reg, (unsigned long)data));
sys/arch/prep/pci/prep_pciconf_direct.c
206
prep_pci_direct_decompose_tag(v, tag, &bus, &device, &function);
sys/arch/prep/pci/prep_pciconf_direct.c
215
tag = (1 << device) | (function << PCI_DCONF_FUNC_SHIFT);
sys/arch/prep/pci/prep_pciconf_direct.c
219
out32rb(PCI_DCONF_BASE | tag | reg, data);
sys/arch/prep/pnpbus/pnpbus.c
263
int tag, size, item;
sys/arch/prep/pnpbus/pnpbus.c
272
tag = *p;
sys/arch/prep/pnpbus/pnpbus.c
275
size = tag_small_count(tag) + 1;
sys/arch/prep/pnpbus/pnpbus.c
276
item = tag_small_item_name(tag);
sys/arch/prep/pnpbus/pnpbus.c
297
item = tag_large_item_name(tag);
sys/arch/prep/pnpbus/pnpbus.c
315
tag = *p;
sys/arch/prep/pnpbus/pnpbus.c
318
size = tag_small_count(tag) + 1;
sys/arch/prep/pnpbus/pnpbus.c
319
item = tag_small_item_name(tag);
sys/arch/prep/pnpbus/pnpbus.c
347
int tag, size, item;
sys/arch/prep/pnpbus/pnpbus.c
371
tag = *p;
sys/arch/prep/pnpbus/pnpbus.c
374
size = tag_small_count(tag) + 1;
sys/arch/prep/pnpbus/pnpbus.c
375
item = tag_small_item_name(tag);
sys/arch/prep/pnpbus/pnpbus.c
597
pnpbus_io_unmap(struct pnpresources *r, int idx, bus_space_tag_t tag,
sys/arch/prep/pnpbus/pnpbus.c
609
bus_space_unmap(tag, hdl, io->len);
sys/arch/prep/pnpbus/pnpbus.c
650
pnpbus_iomem_unmap(struct pnpresources *r, int idx, bus_space_tag_t tag,
sys/arch/prep/pnpbus/pnpbus.c
662
bus_space_unmap(tag, hdl, mem->len);
sys/arch/prep/pnpbus/pnpbusvar.h
136
void pnpbus_io_unmap(struct pnpresources *r, int idx, bus_space_tag_t tag,
sys/arch/prep/pnpbus/pnpbusvar.h
142
void pnpbus_iomem_unmap(struct pnpresources *r, int idx, bus_space_tag_t tag,
sys/arch/prep/prep/consinit.c
135
bus_space_tag_t tag = &genppc_isa_io_space_tag;
sys/arch/prep/prep/consinit.c
137
if(comcnattach(tag, consinfo->addr, consinfo->speed, COM_FREQ,
sys/arch/prep/prep/machdep.c
311
int tag, size, item, i;
sys/arch/prep/prep/machdep.c
325
tag = *p;
sys/arch/prep/prep/machdep.c
327
size = tag_small_count(tag) + 1;
sys/arch/prep/prep/machdep.c
331
item = tag_large_item_name(tag);
sys/arch/prep/prep/machdep.c
379
int tag, size, item;
sys/arch/prep/prep/machdep.c
389
tag = *p;
sys/arch/prep/prep/machdep.c
391
size = tag_small_count(tag) + 1;
sys/arch/prep/prep/machdep.c
395
item = tag_large_item_name(tag);
sys/arch/prep/prep/platform.c
149
int tag = *(unsigned char *)v;
sys/arch/prep/prep/platform.c
154
item = tag_large_item_name(tag);
sys/arch/prep/prep/platform.c
174
int tag = *(unsigned char *)v;
sys/arch/prep/prep/platform.c
176
return tag_small_count(tag) + 1 /* tag */;
sys/arch/prep/prep/platform.c
225
int tag = *(unsigned char *)v;
sys/arch/prep/prep/platform.c
231
item = tag_large_item_name(tag);
sys/arch/prep/prep/residual.c
1081
int tag = *(unsigned char *)v;
sys/arch/prep/prep/residual.c
1109
item = tag_large_item_name(tag);
sys/arch/prep/prep/residual.c
250
int item, size, tag = *(unsigned char *)v;
sys/arch/prep/prep/residual.c
253
item = tag_large_item_name(tag);
sys/arch/prep/prep/residual.c
275
int item, size, tag = *(unsigned char *)v;
sys/arch/prep/prep/residual.c
278
item = tag_large_item_name(tag);
sys/arch/prep/prep/residual.c
646
int tag = *(unsigned char *)v;
sys/arch/prep/prep/residual.c
651
item = tag_small_item_name(tag);
sys/arch/prep/prep/residual.c
652
size = tag_small_count(tag) + 1 /* tag */;
sys/arch/prep/stand/boot/pci.c
103
u_long *tag;
sys/arch/prep/stand/boot/pci.c
111
tag = PCI_CONFIG_SPACE(dev, func);
sys/arch/prep/stand/boot/pci.c
113
if (tag == PCI_slots[i].config_addr)
sys/arch/prep/stand/boot/siop.c
238
int offset, target, lun, tag, restart = 0, need_reset = 0;
sys/arch/prep/stand/boot/siop.c
384
tag = readb(adp->addr + SIOP_SCRATCHA + 2);
sys/arch/prep/stand/boot/siop.c
387
tag != 0) {
sys/arch/prep/stand/boot/siop.c
390
target, lun, tag);
sys/arch/riscv/fdt/pcihost_fdt.c
376
pcihost_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/riscv/fdt/pcihost_fdt.c
379
*bp = (tag >> 16) & 0xff;
sys/arch/riscv/fdt/pcihost_fdt.c
381
*dp = (tag >> 11) & 0x1f;
sys/arch/riscv/fdt/pcihost_fdt.c
383
*fp = (tag >> 8) & 0x7;
sys/arch/riscv/fdt/pcihost_fdt.c
395
pcihost_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/riscv/fdt/pcihost_fdt.c
401
pcihost_decompose_tag(v, tag, &b, &d, &f);
sys/arch/riscv/fdt/pcihost_fdt.c
422
pcihost_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/riscv/fdt/pcihost_fdt.c
428
pcihost_decompose_tag(v, tag, &b, &d, &f);
sys/arch/riscv/include/bus_funcs.h
698
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/riscv/include/bus_funcs.h
701
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/riscv/include/bus_funcs.h
703
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/riscv/include/bus_funcs.h
705
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/riscv/include/bus_funcs.h
707
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/riscv/include/bus_funcs.h
717
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/riscv/riscv/bus_dma.c
1815
_bus_dmatag_subregion(bus_dma_tag_t tag, bus_addr_t min_addr,
sys/arch/riscv/riscv/bus_dma.c
1826
for (i = 0, dr = tag->_ranges; i < tag->_nranges; i++, dr++) {
sys/arch/riscv/riscv/bus_dma.c
1847
*newtag = tag;
sys/arch/riscv/riscv/bus_dma.c
1849
if (tag->_tag_needs_free)
sys/arch/riscv/riscv/bus_dma.c
1850
(tag->_tag_needs_free)++;
sys/arch/riscv/riscv/bus_dma.c
1854
const size_t tagsize = sizeof(*tag) + nranges * sizeof(*dr);
sys/arch/riscv/riscv/bus_dma.c
1860
**newtag = *tag;
sys/arch/riscv/riscv/bus_dma.c
1865
if (tag->_ranges == NULL) {
sys/arch/riscv/riscv/bus_dma.c
1872
for (i = 0, pdr = tag->_ranges; i < tag->_nranges; i++, pdr++) {
sys/arch/riscv/riscv/bus_dma.c
1910
_bus_dmatag_destroy(bus_dma_tag_t tag)
sys/arch/riscv/riscv/bus_dma.c
1913
switch (tag->_tag_needs_free) {
sys/arch/riscv/riscv/bus_dma.c
1917
const size_t tagsize = sizeof(*tag)
sys/arch/riscv/riscv/bus_dma.c
1918
+ tag->_nranges * sizeof(*tag->_ranges);
sys/arch/riscv/riscv/bus_dma.c
1919
kmem_intr_free(tag, tagsize); /* last reference to tag */
sys/arch/riscv/riscv/bus_dma.c
1923
(tag->_tag_needs_free)--; /* one less reference */
sys/arch/riscv/riscv/cpu_subr.c
181
cpu_broadcast_ipi(int tag)
sys/arch/riscv/riscv/cpu_subr.c
188
cpu_multicast_ipi(cpus_running, tag);
sys/arch/riscv/riscv/cpu_subr.c
192
cpu_multicast_ipi(const kcpuset_t *kcp, int tag)
sys/arch/riscv/riscv/cpu_subr.c
204
(void)cpu_send_ipi(cpu_lookup(cii), tag);
sys/arch/riscv/starfive/jh7110_pcie.c
201
jh7110_pcie_decompose_tag(void *v, pcitag_t tag,
sys/arch/riscv/starfive/jh7110_pcie.c
207
*busp = __SHIFTOUT(tag, ECAM_BUS_MASK);
sys/arch/riscv/starfive/jh7110_pcie.c
209
*devp = __SHIFTOUT(tag, ECAM_DEV_MASK);
sys/arch/riscv/starfive/jh7110_pcie.c
211
*fnp = __SHIFTOUT(tag, ECAM_FUNC_MASK);
sys/arch/riscv/starfive/jh7110_pcie.c
227
jh7110_pcie_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/riscv/starfive/jh7110_pcie.c
237
jh7110_pcie_decompose_tag(phsc, tag, &bus, &dev, &fn);
sys/arch/riscv/starfive/jh7110_pcie.c
252
jh7110_pcie_conf_write(void *v, pcitag_t tag, int offset, pcireg_t data)
sys/arch/riscv/starfive/jh7110_pcie.c
262
jh7110_pcie_decompose_tag(phsc, tag, &bus, &dev, &fn);
sys/arch/rs6000/rs6000/consinit.c
80
bus_space_tag_t tag = &rs6000_iocc0_io_space_tag;
sys/arch/rs6000/rs6000/consinit.c
82
if(comcnattach(tag, consinfo->addr, consinfo->speed, COM_FREQ,
sys/arch/sandpoint/pci/pci_machdep.c
107
pcitag_t tag;
sys/arch/sandpoint/pci/pci_machdep.c
110
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 11, 0);
sys/arch/sandpoint/pci/pci_machdep.c
111
dev11 = pci_conf_read(pba->pba_pc, tag, PCI_CLASS_REG);
sys/arch/sandpoint/pci/pci_machdep.c
121
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 22, 0);
sys/arch/sandpoint/pci/pci_machdep.c
122
dev22 = pci_conf_read(pba->pba_pc, tag, PCI_CLASS_REG);
sys/arch/sandpoint/pci/pci_machdep.c
128
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 11, 0);
sys/arch/sandpoint/pci/pci_machdep.c
129
dev11 = pci_conf_read(pba->pba_pc, tag, PCI_CLASS_REG);
sys/arch/sandpoint/pci/pci_machdep.c
135
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 15, 0);
sys/arch/sandpoint/pci/pci_machdep.c
136
dev15 = pci_conf_read(pba->pba_pc, tag, PCI_ID_REG);
sys/arch/sandpoint/pci/pci_machdep.c
142
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 13, 0);
sys/arch/sandpoint/pci/pci_machdep.c
143
dev13 = pci_conf_read(pba->pba_pc, tag, PCI_ID_REG);
sys/arch/sandpoint/pci/pci_machdep.c
149
tag = pci_make_tag(pba->pba_pc, pba->pba_bus, 16, 0);
sys/arch/sandpoint/pci/pci_machdep.c
150
dev16 = pci_conf_read(pba->pba_pc, tag, PCI_ID_REG);
sys/arch/sandpoint/pci/pci_machdep.c
181
pcitag_t tag;
sys/arch/sandpoint/pci/pci_machdep.c
186
tag = PCI_CONFIG_ENABLE |
sys/arch/sandpoint/pci/pci_machdep.c
188
return tag;
sys/arch/sandpoint/pci/pci_machdep.c
192
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/sandpoint/pci/pci_machdep.c
197
*bp = (tag >> 16) & 0xff;
sys/arch/sandpoint/pci/pci_machdep.c
199
*dp = (tag >> 11) & 0x1f;
sys/arch/sandpoint/pci/pci_machdep.c
201
*fp = (tag >> 8) & 0x7;
sys/arch/sandpoint/pci/pci_machdep.c
212
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/sandpoint/pci/pci_machdep.c
219
out32rb(SANDPOINT_PCI_CONFIG_ADDR, tag | reg);
sys/arch/sandpoint/pci/pci_machdep.c
226
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sandpoint/pci/pci_machdep.c
232
out32rb(SANDPOINT_PCI_CONFIG_ADDR, tag | reg);
sys/arch/sandpoint/sandpoint/autoconf.c
214
pcitag_t tag;
sys/arch/sandpoint/sandpoint/autoconf.c
230
tag = pa->pa_tag;
sys/arch/sandpoint/sandpoint/autoconf.c
232
tag = boot_tag;
sys/arch/sandpoint/sandpoint/autoconf.c
234
tag = net_tag;
sys/arch/sandpoint/sandpoint/autoconf.c
236
tag = 0;
sys/arch/sandpoint/sandpoint/autoconf.c
239
&& bi_rdev->cookie == tag)
sys/arch/sandpoint/sandpoint/autoconf.c
243
&& bi_net->cookie == tag) {
sys/arch/sandpoint/sandpoint/com_eumb.c
124
eumbcnattach(bus_space_tag_t tag,
sys/arch/sandpoint/sandpoint/com_eumb.c
136
cnregs.cr_iot = tag;
sys/arch/sandpoint/sandpoint/com_eumb.c
139
com_init_regs(&cnregs, tag, dummy_bsh, conaddr);
sys/arch/sandpoint/sandpoint/machdep.c
332
bus_space_tag_t tag = &genppc_isa_io_space_tag;
sys/arch/sandpoint/sandpoint/machdep.c
333
if (comcnattach(tag, bi->addr, bi->speed,
sys/arch/sandpoint/sandpoint/machdep.c
342
bus_space_tag_t tag = &sandpoint_eumb_space_tag;
sys/arch/sandpoint/sandpoint/machdep.c
345
if (eumbcnattach(tag, bi->addr, bi->speed,
sys/arch/sandpoint/stand/altboot/brdsetup.c
1297
set_mem_bounds(unsigned tag, unsigned bk_en, ...)
sys/arch/sandpoint/stand/altboot/brdsetup.c
1323
pcicfgwrite(tag, MPC106_MEMSTARTADDR1, mbst);
sys/arch/sandpoint/stand/altboot/brdsetup.c
1324
pcicfgwrite(tag, MPC106_EXTMEMSTARTADDR1, mbxst);
sys/arch/sandpoint/stand/altboot/brdsetup.c
1325
pcicfgwrite(tag, MPC106_MEMENDADDR1, mben);
sys/arch/sandpoint/stand/altboot/brdsetup.c
1326
pcicfgwrite(tag, MPC106_EXTMEMENDADDR1, mbxen);
sys/arch/sandpoint/stand/altboot/brdsetup.c
1327
pcicfgwrite(tag, MPC106_MEMEN,
sys/arch/sandpoint/stand/altboot/brdsetup.c
1328
(pcicfgread(tag, MPC106_MEMEN) & ~0xff) | (bk_en & 0xff));
sys/arch/sandpoint/stand/altboot/brdsetup.c
1334
unsigned bankn, end, n, tag, val;
sys/arch/sandpoint/stand/altboot/brdsetup.c
1336
tag = pcimaketag(0, 0, 0);
sys/arch/sandpoint/stand/altboot/brdsetup.c
1340
set_mem_bounds(tag, 1, 0x00000000, (128 << 20) - 1);
sys/arch/sandpoint/stand/altboot/brdsetup.c
1346
set_mem_bounds(tag, 1, 0x00000000, 0x03ffffff);
sys/arch/sandpoint/stand/altboot/brdsetup.c
1350
val = pcicfgread(tag, MPC106_MEMEN);
sys/arch/sandpoint/stand/altboot/brdsetup.c
1358
val = pcicfgread(tag, MPC106_EXTMEMENDADDR1);
sys/arch/sandpoint/stand/altboot/brdsetup.c
1360
val = pcicfgread(tag, MPC106_MEMENDADDR1);
sys/arch/sandpoint/stand/altboot/dsk.c
104
pci->drv = (*dv->init)(tag, NULL);
sys/arch/sandpoint/stand/altboot/dsk.c
93
unsigned tag;
sys/arch/sandpoint/stand/altboot/dsk.c
96
tag = pci->bdf;
sys/arch/sandpoint/stand/altboot/dsk.c
99
if ((*dv->match)(tag, NULL) > 0)
sys/arch/sandpoint/stand/altboot/fxp.c
175
fxp_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/fxp.c
179
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/fxp.c
189
fxp_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/fxp.c
200
sc->iobase = DEVTOV(pcicfgread(tag, 0x10)); /* use mem space */
sys/arch/sandpoint/stand/altboot/globals.h
244
unsigned tag;
sys/arch/sandpoint/stand/altboot/kse.c
112
kse_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/kse.c
116
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/kse.c
126
kse_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/kse.c
135
l->csr = DEVTOV(pcicfgread(tag, 0x10));
sys/arch/sandpoint/stand/altboot/kse.c
155
val = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/nif.c
71
unsigned tag;
sys/arch/sandpoint/stand/altboot/nif.c
77
tag = pci->bdf;
sys/arch/sandpoint/stand/altboot/nif.c
80
if ((*dv->match)(tag, NULL) > 0)
sys/arch/sandpoint/stand/altboot/nif.c
86
pci->drv = dv->priv = (*dv->init)(tag, enaddr);
sys/arch/sandpoint/stand/altboot/nif.c
93
bi_net.cookie = tag;
sys/arch/sandpoint/stand/altboot/nif.c
95
bi_rdev.cookie = tag;
sys/arch/sandpoint/stand/altboot/nvt.c
157
nvt_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/nvt.c
161
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/nvt.c
171
nvt_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/nvt.c
180
l->csr = ~01 & DEVTOV(pcicfgread(tag, 0x10)); /* use IO space */
sys/arch/sandpoint/stand/altboot/pci.c
103
pcidecomposetag(unsigned tag, int *b, int *d, int *f)
sys/arch/sandpoint/stand/altboot/pci.c
107
*b = (tag >> 16) & 0xff;
sys/arch/sandpoint/stand/altboot/pci.c
109
*d = (tag >> 11) & 0x1f;
sys/arch/sandpoint/stand/altboot/pci.c
111
*f = (tag >> 8) & 0x7;
sys/arch/sandpoint/stand/altboot/pci.c
116
pcicfgread(unsigned tag, int off)
sys/arch/sandpoint/stand/altboot/pci.c
120
cfg = tag | (off &~ 03);
sys/arch/sandpoint/stand/altboot/pci.c
126
pcicfgwrite(unsigned tag, int off, unsigned val)
sys/arch/sandpoint/stand/altboot/pci.c
130
cfg = tag | (off &~ 03);
sys/arch/sandpoint/stand/altboot/pci.c
71
pcifinddev(unsigned vend, unsigned prod, unsigned *tag)
sys/arch/sandpoint/stand/altboot/pci.c
78
*tag = target.bdf;
sys/arch/sandpoint/stand/altboot/pci.c
81
*tag = ~0;
sys/arch/sandpoint/stand/altboot/pciide.c
105
l->bar[0] = pciiobase + (pcicfgread(tag, 0x10) &~ 01);
sys/arch/sandpoint/stand/altboot/pciide.c
106
l->bar[1] = pciiobase + (pcicfgread(tag, 0x14) &~ 01);
sys/arch/sandpoint/stand/altboot/pciide.c
107
l->bar[2] = pciiobase + (pcicfgread(tag, 0x18) &~ 01);
sys/arch/sandpoint/stand/altboot/pciide.c
108
l->bar[3] = pciiobase + (pcicfgread(tag, 0x1c) &~ 01);
sys/arch/sandpoint/stand/altboot/pciide.c
109
l->bar[4] = pciiobase + (pcicfgread(tag, 0x20) &~ 01);
sys/arch/sandpoint/stand/altboot/pciide.c
171
v = pcicfgread(l->tag, 0x80);
sys/arch/sandpoint/stand/altboot/pciide.c
172
pcicfgwrite(l->tag, 0x80, (v & ~0xff) | 0x01);
sys/arch/sandpoint/stand/altboot/pciide.c
173
v = pcicfgread(l->tag, 0x84);
sys/arch/sandpoint/stand/altboot/pciide.c
174
pcicfgwrite(l->tag, 0x84, (v & ~0xff) | 0x01);
sys/arch/sandpoint/stand/altboot/pciide.c
175
v = pcicfgread(l->tag, 0xa4);
sys/arch/sandpoint/stand/altboot/pciide.c
176
pcicfgwrite(l->tag, 0xa4, (v & ~0xffff) | 0x328a);
sys/arch/sandpoint/stand/altboot/pciide.c
177
v = pcicfgread(l->tag, 0xb4);
sys/arch/sandpoint/stand/altboot/pciide.c
178
pcicfgwrite(l->tag, 0xb4, (v & ~0xffff) | 0x328a);
sys/arch/sandpoint/stand/altboot/pciide.c
187
v = pcicfgread(l->tag, 0x40) & ~0x03;
sys/arch/sandpoint/stand/altboot/pciide.c
188
pcicfgwrite(l->tag, 0x40, v | 0x03);
sys/arch/sandpoint/stand/altboot/pciide.c
197
v = pcicfgread(l->tag, 0x50);
sys/arch/sandpoint/stand/altboot/pciide.c
198
pcicfgwrite(l->tag, 0x50, v & ~0x83);
sys/arch/sandpoint/stand/altboot/pciide.c
201
v = pcicfgread(l->tag, 0x40);
sys/arch/sandpoint/stand/altboot/pciide.c
202
pcicfgwrite(l->tag, 0x40, (v & ~0xffffff) | 0x36a0f3);
sys/arch/sandpoint/stand/altboot/pciide.c
55
pciide_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/pciide.c
59
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/pciide.c
83
pciide_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/pciide.c
93
l->tag = tag;
sys/arch/sandpoint/stand/altboot/pciide.c
99
val = pcicfgread(tag, PCI_CLASS_REG);
sys/arch/sandpoint/stand/altboot/pcn.c
135
pcn_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/pcn.c
139
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/pcn.c
144
pcn_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/pcn.c
154
l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* use mem space */
sys/arch/sandpoint/stand/altboot/rge.c
133
rge_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/rge.c
137
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/rge.c
147
rge_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/rge.c
157
l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* use mem space */
sys/arch/sandpoint/stand/altboot/siisata.c
109
pcicfgwrite(tag, 0x80, 0x00);
sys/arch/sandpoint/stand/altboot/siisata.c
110
pcicfgwrite(tag, 0x84, 0x00);
sys/arch/sandpoint/stand/altboot/siisata.c
51
siisata_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/siisata.c
55
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/siisata.c
66
siisata_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/siisata.c
75
l->tag = tag;
sys/arch/sandpoint/stand/altboot/siisata.c
77
idreg = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/siisata.c
78
l->bar[0] = pciiobase + (pcicfgread(tag, 0x10) &~ 01);
sys/arch/sandpoint/stand/altboot/siisata.c
79
l->bar[1] = pciiobase + (pcicfgread(tag, 0x14) &~ 01);
sys/arch/sandpoint/stand/altboot/siisata.c
80
l->bar[2] = pciiobase + (pcicfgread(tag, 0x18) &~ 01);
sys/arch/sandpoint/stand/altboot/siisata.c
81
l->bar[3] = pciiobase + (pcicfgread(tag, 0x1c) &~ 01);
sys/arch/sandpoint/stand/altboot/siisata.c
82
l->bar[4] = pciiobase + (pcicfgread(tag, 0x20) &~ 01);
sys/arch/sandpoint/stand/altboot/siisata.c
83
l->bar[5] = pcicfgread(tag, 0x24) &~ 0x3ff;
sys/arch/sandpoint/stand/altboot/sip.c
120
sip_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/sip.c
124
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/sip.c
133
sip_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/sip.c
141
val = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/sip.c
147
l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* use mem space */
sys/arch/sandpoint/stand/altboot/skg.c
190
skg_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/skg.c
194
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/skg.c
204
skg_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/skg.c
214
l->csr = DEVTOV(pcicfgread(tag, 0x10)); /* use mem space */
sys/arch/sandpoint/stand/altboot/skg.c
217
i = pcicfgread(tag, 0x44);
sys/arch/sandpoint/stand/altboot/skg.c
218
pcicfgwrite(tag, 0x44, i & ~4);
sys/arch/sandpoint/stand/altboot/sme.c
106
sme_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/sme.c
110
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/sme.c
119
sme_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/sme.c
128
l->csr = DEVTOV(pcicfgread(tag, 0x1c)); /* BAR3 mem space, LE */
sys/arch/sandpoint/stand/altboot/stg.c
146
stg_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/stg.c
150
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/stg.c
159
stg_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/stg.c
173
l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* first try mem space */
sys/arch/sandpoint/stand/altboot/stg.c
175
l->csr = DEVTOV(PCI_XIOBASE + (pcicfgread(tag, 0x10) & ~01));
sys/arch/sandpoint/stand/altboot/stg.c
242
if (PCI_REVISION(pcicfgread(tag, PCI_CLASS_REG)) >= 6) {
sys/arch/sandpoint/stand/altboot/tlp.c
116
tlp_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/tlp.c
120
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/tlp.c
129
tlp_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/tlp.c
138
l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* use mem space */
sys/arch/sandpoint/stand/altboot/vge.c
203
vge_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/vge.c
207
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/vge.c
216
vge_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/vge.c
227
l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* use mem space */
sys/arch/sandpoint/stand/altboot/wm.c
123
wm_match(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/wm.c
127
v = pcicfgread(tag, PCI_ID_REG);
sys/arch/sandpoint/stand/altboot/wm.c
136
wm_init(unsigned tag, void *data)
sys/arch/sandpoint/stand/altboot/wm.c
146
l->csr = pcicfgread(tag, 0x10); /* use mem space */
sys/arch/sbmips/sbmips/sb1250_icu.c
177
sb1250_lsw_send_ipi(struct cpu_info *ci, int tag)
sys/arch/sbmips/sbmips/sb1250_icu.c
180
const uint64_t mbox_mask = 1LLU << tag;
sys/arch/sgimips/gio/pci_gio.c
250
giopci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/sgimips/gio/pci_gio.c
259
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/sgimips/gio/pci_gio.c
277
giopci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sgimips/gio/pci_gio.c
285
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/sgimips/mace/pci_mace.c
222
macepci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/sgimips/mace/pci_mace.c
229
bus_space_write_4(pc->iot, pc->ioh, MACE_PCI_CONFIG_ADDR, (tag | reg));
sys/arch/sgimips/mace/pci_mace.c
237
macepci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sgimips/mace/pci_mace.c
243
bus_space_write_4(pc->iot, pc->ioh, MACE_PCI_CONFIG_ADDR, (tag | reg));
sys/arch/sgimips/pci/pci_machdep.c
103
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/sgimips/pci/pci_machdep.c
106
return (*pc->pc_conf_read)(pc, tag, reg);
sys/arch/sgimips/pci/pci_machdep.c
110
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sgimips/pci/pci_machdep.c
113
(*pc->pc_conf_write)(pc, tag, reg, data);
sys/arch/sgimips/pci/pci_machdep.c
91
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/sgimips/pci/pci_machdep.c
95
*bp = (tag >> 16) & 0xff;
sys/arch/sgimips/pci/pci_machdep.c
97
*dp = (tag >> 11) & 0x1f;
sys/arch/sgimips/pci/pci_machdep.c
99
*fp = (tag >> 8) & 0x07;
sys/arch/sh3/dev/shpcic.c
263
pcitag_t tag;
sys/arch/sh3/dev/shpcic.c
268
tag = PCI_MODE1_ENABLE |
sys/arch/sh3/dev/shpcic.c
271
return (tag);
sys/arch/sh3/dev/shpcic.c
275
shpcic_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/sh3/dev/shpcic.c
279
*bp = (tag >> 16) & 0xff;
sys/arch/sh3/dev/shpcic.c
281
*dp = (tag >> 11) & 0x1f;
sys/arch/sh3/dev/shpcic.c
283
*fp = (tag >> 8) & 0x7;
sys/arch/sh3/dev/shpcic.c
287
shpcic_conf_read(void *v, pcitag_t tag, int reg)
sys/arch/sh3/dev/shpcic.c
296
_reg_write_4(SH4_PCIPAR, tag | reg);
sys/arch/sh3/dev/shpcic.c
305
shpcic_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sh3/dev/shpcic.c
313
_reg_write_4(SH4_PCIPAR, tag | reg);
sys/arch/sh3/dev/shpcicvar.h
39
void shpcic_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp);
sys/arch/sh3/dev/shpcicvar.h
40
pcireg_t shpcic_conf_read(void *v, pcitag_t tag, int reg);
sys/arch/sh3/dev/shpcicvar.h
41
void shpcic_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data);
sys/arch/sh3/sh3/sh3_bus_space.c
101
*addr++ = bus_space_read_1(tag, bsh, offset);
sys/arch/sh3/sh3/sh3_bus_space.c
105
bus_space_read_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
110
*addr++ = bus_space_read_2(tag, bsh, offset);
sys/arch/sh3/sh3/sh3_bus_space.c
114
bus_space_read_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
119
*addr++ = bus_space_read_4(tag, bsh, offset);
sys/arch/sh3/sh3/sh3_bus_space.c
123
bus_space_read_multi_stream_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
132
bus_space_read_multi_stream_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
150
bus_space_read_region_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
160
bus_space_read_region_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
170
bus_space_read_region_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
189
bus_space_read_region_stream_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
199
bus_space_read_region_stream_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
209
bus_space_read_region_stream_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
227
bus_space_write_region_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
237
bus_space_write_region_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
247
bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
265
bus_space_write_region_stream_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
275
bus_space_write_region_stream_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
285
bus_space_write_region_stream_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
303
bus_space_write_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
311
bus_space_write_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
319
bus_space_write_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
327
bus_space_write_stream_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
335
bus_space_write_stream_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
351
bus_space_write_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
356
bus_space_write_1(tag, bsh, offset, *addr++);
sys/arch/sh3/sh3/sh3_bus_space.c
360
bus_space_write_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
365
bus_space_write_2(tag, bsh, offset, *addr++);
sys/arch/sh3/sh3/sh3_bus_space.c
369
bus_space_write_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
374
bus_space_write_4(tag, bsh, offset, *addr++);
sys/arch/sh3/sh3/sh3_bus_space.c
378
bus_space_write_multi_stream_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
383
bus_space_write_stream_2(tag, bsh, offset, *addr++);
sys/arch/sh3/sh3/sh3_bus_space.c
387
bus_space_write_multi_stream_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
392
bus_space_write_stream_4(tag, bsh, offset, *addr++);
sys/arch/sh3/sh3/sh3_bus_space.c
404
bus_space_set_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
409
bus_space_write_1(tag, bsh, offset, val);
sys/arch/sh3/sh3/sh3_bus_space.c
413
bus_space_set_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
418
bus_space_write_2(tag, bsh, offset, val);
sys/arch/sh3/sh3/sh3_bus_space.c
422
bus_space_set_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
427
bus_space_write_4(tag, bsh, offset, val);
sys/arch/sh3/sh3/sh3_bus_space.c
439
bus_space_set_region_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
449
bus_space_set_region_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
460
bus_space_set_region_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
479
bus_space_set_region_stream_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
48
bus_space_read_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
489
bus_space_set_region_stream_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
499
bus_space_set_region_stream_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
56
bus_space_read_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
64
bus_space_read_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
72
bus_space_read_stream_2(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
80
bus_space_read_stream_4(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/sh3/sh3/sh3_bus_space.c
96
bus_space_read_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/shark/ofw/vlpci.c
209
pcitag_t tag;
sys/arch/shark/ofw/vlpci.c
311
tag = vlpci_pc_make_tag(sc, 0, VLPCI_ADDON_DEV_NO, 0);
sys/arch/shark/ofw/vlpci.c
312
cmd = vlpci_pc_conf_read(sc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/shark/ofw/vlpci.c
313
vlpci_pc_conf_write(sc, tag, PCI_COMMAND_STATUS_REG,
sys/arch/shark/ofw/vlpci.c
356
vlpci_pc_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/shark/ofw/vlpci.c
360
*bp = (tag >> 16) & 0xff;
sys/arch/shark/ofw/vlpci.c
362
*dp = (tag >> 11) & 0x1f;
sys/arch/shark/ofw/vlpci.c
364
*fp = (tag >> 8) & 0x7;
sys/arch/shark/ofw/vlpci.c
368
vlpci_pc_conf_read(void *v, pcitag_t tag, int offset)
sys/arch/shark/ofw/vlpci.c
380
VLPCI_CFGREG_ADDR_OFF, 0x80000000UL|tag|offset);
sys/arch/shark/ofw/vlpci.c
387
__func__, (unsigned int)tag, offset, ret);
sys/arch/shark/ofw/vlpci.c
394
vlpci_pc_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
sys/arch/shark/ofw/vlpci.c
405
__func__, (unsigned int)tag, offset, val);
sys/arch/shark/ofw/vlpci.c
410
VLPCI_CFGREG_ADDR_OFF, 0x80000000UL|tag|offset);
sys/arch/sparc/dev/fd.c
431
bus_space_tag_t tag, bus_addr_t addr, bus_size_t size,
sys/arch/sparc/dev/fd.c
449
if (bus_space_probe(tag, addr,
sys/arch/sparc/dev/fd.c
459
v = bus_space_read_1(tag, handle, FDREG77_DOR);
sys/arch/sparc/dev/fd.c
464
bus_space_write_1(tag, handle, FDREG77_DOR, FDC_250KBPS);
sys/arch/sparc/dev/fd.c
465
v = bus_space_read_1(tag, handle, FDREG77_DOR);
sys/arch/sparc/dev/sbusvar.h
92
#define sbus_promaddr_to_handle(tag, promaddr, hp) sparc_promaddr_to_handle(tag, promaddr, hp)
sys/arch/sparc/dev/sbusvar.h
95
sparc_promaddr_to_handle(bus_space_tag_t tag, u_int promaddr, bus_space_handle_t *hp)
sys/arch/sparc/dev/ts102.c
312
bus_space_tag_t tag;
sys/arch/sparc/dev/ts102.c
327
tag = bus_space_tag_alloc(sa->sa_bustag, sc);
sys/arch/sparc/dev/ts102.c
328
if (tag == NULL) {
sys/arch/sparc/dev/ts102.c
332
tag->sparc_read_2 = ts102_read_2;
sys/arch/sparc/dev/ts102.c
333
tag->sparc_read_4 = ts102_read_4;
sys/arch/sparc/dev/ts102.c
334
tag->sparc_read_8 = ts102_read_8;
sys/arch/sparc/dev/ts102.c
335
tag->sparc_write_2 = ts102_write_2;
sys/arch/sparc/dev/ts102.c
336
tag->sparc_write_4 = ts102_write_4;
sys/arch/sparc/dev/ts102.c
337
tag->sparc_write_8 = ts102_write_8;
sys/arch/sparc/dev/ts102.c
390
td->td_pcmciat = tag;
sys/arch/sparc/dev/vme_machdep.c
486
bus_space_tag_t tag;
sys/arch/sparc/dev/vme_machdep.c
497
a->res = (*a->cb)(a->cbarg, a->tag, (bus_space_handle_t)bh);
sys/arch/sparc/dev/vme_machdep.c
521
myarg.tag = sc->sc_bustag;
sys/arch/sparc/include/bus_funcs.h
225
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/sparc/include/bus_funcs.h
228
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/sparc/include/bus_funcs.h
230
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/sparc/include/bus_funcs.h
232
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/sparc/include/bus_funcs.h
235
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/sparc/include/cpu.h
146
volatile int tag;
sys/arch/sparc/sparc/cache.c
877
int tag = lda(tagaddr, ASI_DCACHETAG);
sys/arch/sparc/sparc/cache.c
878
if ((tag & 1) == 1) {
sys/arch/sparc/sparc/cache.c
947
uint64_t tag;
sys/arch/sparc/sparc/cache.c
991
tag = ldda(tagaddr | (i << 26), ASI_DCACHETAG);
sys/arch/sparc/sparc/cache.c
996
if ((tag & VIKING_DCACHETAG_PAMASK) == pa_tag &&
sys/arch/sparc/sparc/cache.c
997
(tag & VIKING_DCACHETAG_V) != 0)
sys/arch/sparc/sparc/cpu.c
1006
cpi->msg_lev15.tag = XPMSG15_PAUSECPU;
sys/arch/sparc/sparc/cpu.c
2337
ci->msg.tag,
sys/arch/sparc/sparc/cpu.c
780
if (cpuinfo.msg.tag) {
sys/arch/sparc/sparc/cpu.c
811
cpi->msg.tag = XPMSG_FUNC;
sys/arch/sparc/sparc/intr.c
342
switch (cpuinfo.msg_lev15.tag) {
sys/arch/sparc/sparc/intr.c
354
cpuinfo.msg_lev15.tag = 0;
sys/arch/sparc/sparc/intr.c
396
cpuinfo.msg.tag, (uint32_t)p->func, p->arg0, p->arg1);
sys/arch/sparc/sparc/intr.c
403
switch (cpuinfo.msg.tag) {
sys/arch/sparc/sparc/intr.c
413
cpuinfo.msg.tag = 0;
sys/arch/sparc/sparc/machdep.c
2947
sparc_bus_subregion(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/sparc/sparc/machdep.c
2990
bus_space_probe(bus_space_tag_t tag, bus_addr_t paddr, bus_size_t size,
sys/arch/sparc/sparc/machdep.c
2998
if (bus_space_map2(tag, paddr, size, flags, TMPMAP_VA, &bh) != 0)
sys/arch/sparc/sparc/machdep.c
3005
bus_space_unmap(tag, bh, size);
sys/arch/sparc/sparc/msiiep.c
682
mspcic_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs,
sys/arch/sparc/sparc/pci_fixup.c
121
tag = PCITAG_CREATE(node, bus, dev, fun);
sys/arch/sparc/sparc/pci_fixup.c
124
PCITAG_BUS(tag), PCITAG_DEV(tag), PCITAG_FUN(tag));
sys/arch/sparc/sparc/pci_fixup.c
127
pci_conf_write(NULL, tag, PCI_COMMAND_STATUS_REG,
sys/arch/sparc/sparc/pci_fixup.c
155
val = pci_conf_read(NULL, tag, PCI_BHLC_REG);
sys/arch/sparc/sparc/pci_fixup.c
166
saved = pci_conf_read(NULL, tag, PCI_BAR(i));
sys/arch/sparc/sparc/pci_fixup.c
167
pci_conf_write(NULL, tag, PCI_BAR(i), (pcireg_t) ~0x0);
sys/arch/sparc/sparc/pci_fixup.c
168
val = pci_conf_read(NULL, tag, PCI_BAR(i));
sys/arch/sparc/sparc/pci_fixup.c
169
pci_conf_write(NULL, tag, PCI_BAR(i), saved);
sys/arch/sparc/sparc/pci_fixup.c
195
saved = pci_conf_read(NULL, tag, PCI_MAPREG_ROM);
sys/arch/sparc/sparc/pci_fixup.c
196
pci_conf_write(NULL, tag, PCI_MAPREG_ROM, (pcireg_t) ~0x0);
sys/arch/sparc/sparc/pci_fixup.c
197
val = pci_conf_read(NULL, tag, PCI_MAPREG_ROM);
sys/arch/sparc/sparc/pci_fixup.c
198
pci_conf_write(NULL, tag, PCI_MAPREG_ROM, saved);
sys/arch/sparc/sparc/pci_fixup.c
267
tag = PCITAG_CREATE(node, bus, dev, fun);
sys/arch/sparc/sparc/pci_fixup.c
288
mspcic_pci_fixup(1, tag, &maxbus, &io[i], &mem[j],
sys/arch/sparc/sparc/pci_fixup.c
301
pcitag_t tag;
sys/arch/sparc/sparc/pci_fixup.c
332
tag = PCITAG_CREATE(0, startbus, i / 8, i % 8);
sys/arch/sparc/sparc/pci_fixup.c
334
pci_conf_write(NULL, tag, PCI_COMMAND_STATUS_REG,
sys/arch/sparc/sparc/pci_fixup.c
337
val = pci_conf_read(NULL, tag, PCI_ID_REG);
sys/arch/sparc/sparc/pci_fixup.c
348
val = pci_conf_read(NULL, tag, PCI_INTERRUPT_REG);
sys/arch/sparc/sparc/pci_fixup.c
352
pci_conf_write(NULL, tag, PCI_INTERRUPT_REG, val);
sys/arch/sparc/sparc/pci_fixup.c
356
val = pci_conf_read(NULL, tag, PCI_CLASS_REG);
sys/arch/sparc/sparc/pci_fixup.c
361
mspcic_pci_fixup(depth + 1, tag, maxbus, io, mem,
sys/arch/sparc/sparc/pci_fixup.c
365
pci_conf_write(NULL, tag, PCI_MAPREG_ROM, (pcireg_t) ~0x0);
sys/arch/sparc/sparc/pci_fixup.c
366
val = pci_conf_read(NULL, tag, PCI_MAPREG_ROM);
sys/arch/sparc/sparc/pci_fixup.c
372
pci_conf_write(NULL, tag, PCI_MAPREG_ROM,
sys/arch/sparc/sparc/pci_fixup.c
381
val = pci_conf_read(NULL, tag, PCI_BHLC_REG);
sys/arch/sparc/sparc/pci_fixup.c
394
pci_conf_write(NULL, tag, PCI_BAR(j),
sys/arch/sparc/sparc/pci_fixup.c
396
val = pci_conf_read(NULL, tag, PCI_BAR(j));
sys/arch/sparc/sparc/pci_fixup.c
405
pci_conf_write(NULL, tag, PCI_BAR(j),
sys/arch/sparc/sparc/pci_fixup.c
413
pci_conf_write(NULL, tag,
sys/arch/sparc/sparc/pci_fixup.c
423
pci_conf_write(NULL, tag, PCI_BAR(j),
sys/arch/sparc/sparc/pci_fixup.c
431
pci_conf_write(NULL, tag,
sys/arch/sparc/sparc/pci_fixup.c
75
pcitag_t tag;
sys/arch/sparc/sparc/pci_machdep.c
171
int node = PCITAG_NODE(args->tag);
sys/arch/sparc/sparc/pci_machdep.c
227
pcitag_t tag;
sys/arch/sparc/sparc/pci_machdep.c
234
tag = PCITAG_CREATE(-1, b, d, f);
sys/arch/sparc/sparc/pci_machdep.c
237
return tag; /* a dead one */
sys/arch/sparc/sparc/pci_machdep.c
330
tag = PCITAG_CREATE(node, b, d, f);
sys/arch/sparc/sparc/pci_machdep.c
332
return tag;
sys/arch/sparc/sparc/pci_machdep.c
336
return tag;
sys/arch/sparc/sparc/pci_machdep.c
341
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/sparc/sparc/pci_machdep.c
346
*bp = PCITAG_BUS(tag);
sys/arch/sparc/sparc/pci_machdep.c
348
*dp = PCITAG_DEV(tag);
sys/arch/sparc/sparc/pci_machdep.c
350
*fp = PCITAG_FUN(tag);
sys/arch/sparc/sparc/pci_machdep.c
355
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/sparc/sparc/pci_machdep.c
363
PCITAG_NODE(tag), PCITAG_OFFSET(tag),
sys/arch/sparc/sparc/pci_machdep.c
364
PCITAG_BUS(tag), PCITAG_DEV(tag), PCITAG_FUN(tag),
sys/arch/sparc/sparc/pci_machdep.c
372
if (PCITAG_NODE(tag) == -1) {
sys/arch/sparc/sparc/pci_machdep.c
380
mode1_addr = PCITAG_OFFSET(tag) | reg;
sys/arch/sparc/sparc/pci_machdep.c
394
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sparc/sparc/pci_machdep.c
401
PCITAG_NODE(tag), PCITAG_OFFSET(tag),
sys/arch/sparc/sparc/pci_machdep.c
402
PCITAG_BUS(tag), PCITAG_DEV(tag), PCITAG_FUN(tag),
sys/arch/sparc/sparc/pci_machdep.c
410
if (PCITAG_NODE(tag) == -1) {
sys/arch/sparc/sparc/pci_machdep.c
418
mode1_addr = PCITAG_OFFSET(tag) | reg;
sys/arch/sparc/sparc/pci_machdep.c
438
pcitag_t tag;
sys/arch/sparc/sparc/pci_machdep.c
446
tag = pci_make_tag(pa->pa_pc, pa->pa_bus, pa->pa_device,
sys/arch/sparc/sparc/pci_machdep.c
448
node = PCITAG_NODE(tag);
sys/arch/sparc/sparc/pci_machdep.c
449
val = pci_conf_read(NULL, tag, PCI_INTERRUPT_REG);
sys/arch/sparc64/dev/cbus.c
284
for (; elem[idx].tag != 'E'; idx++) {
sys/arch/sparc64/dev/cbus.c
286
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/fdc.c
485
bus_space_tag_t tag, bus_addr_t addr, bus_size_t size,
sys/arch/sparc64/dev/fdc.c
504
if (bus_space_probe(tag, addr,
sys/arch/sparc64/dev/fdc.c
515
v = bus_space_read_1(tag, handle, FDREG77_DOR);
sys/arch/sparc64/dev/fdc.c
520
bus_space_write_1(tag, handle, FDREG77_DOR, FDC_250KBPS);
sys/arch/sparc64/dev/fdc.c
521
v = bus_space_read_1(tag, handle, FDREG77_DOR);
sys/arch/sparc64/dev/pci_machdep.c
106
int node = PCITAG_NODE(args->tag);
sys/arch/sparc64/dev/pci_machdep.c
138
pcitag_t tag;
sys/arch/sparc64/dev/pci_machdep.c
169
tag = PCITAG_CREATE(-1, b, d, f);
sys/arch/sparc64/dev/pci_machdep.c
248
tag = ofpci_make_tag(pc, node, b, d, f);
sys/arch/sparc64/dev/pci_machdep.c
250
return (tag);
sys/arch/sparc64/dev/pci_machdep.c
253
return (tag);
sys/arch/sparc64/dev/pci_machdep.c
257
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp, int *fp)
sys/arch/sparc64/dev/pci_machdep.c
261
*bp = PCITAG_BUS(tag);
sys/arch/sparc64/dev/pci_machdep.c
263
*dp = PCITAG_DEV(tag);
sys/arch/sparc64/dev/pci_machdep.c
265
*fp = PCITAG_FUN(tag);
sys/arch/sparc64/dev/pci_machdep.c
275
pcitag_t tag;
sys/arch/sparc64/dev/pci_machdep.c
307
tag = ofpci_make_tag(pc, node, sc->sc_bus, 0, 0);
sys/arch/sparc64/dev/pci_machdep.c
308
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/sparc64/dev/pci_machdep.c
310
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/arch/sparc64/dev/pci_machdep.c
316
bhlc = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/arch/sparc64/dev/pci_machdep.c
319
pci_conf_write(pc, tag, PCI_BHLC_REG, bhlc);
sys/arch/sparc64/dev/pci_machdep.c
322
pci_conf_print(pc, tag, NULL);
sys/arch/sparc64/dev/pci_machdep.c
354
tag = ofpci_make_tag(pc, node, b, d, f);
sys/arch/sparc64/dev/pci_machdep.c
359
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/sparc64/dev/pci_machdep.c
363
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/arch/sparc64/dev/pci_machdep.c
372
bhlc = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/arch/sparc64/dev/pci_machdep.c
373
ic = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/arch/sparc64/dev/pci_machdep.c
387
pci_conf_write(pc, tag, PCI_BHLC_REG, bhlc);
sys/arch/sparc64/dev/pci_machdep.c
389
ret = pci_probe_device1(sc, tag, match, cookie, pap);
sys/arch/sparc64/dev/pci_machdep.c
434
pcitag_t tag = pa->pa_tag;
sys/arch/sparc64/dev/pci_machdep.c
436
int len, node = PCITAG_NODE(tag);
sys/arch/sparc64/dev/pci_machdep.c
78
pcitag_t tag;
sys/arch/sparc64/dev/pci_machdep.c
81
tag = PCITAG_CREATE(node, b, d, f);
sys/arch/sparc64/dev/pci_machdep.c
88
reg = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/sparc64/dev/pci_machdep.c
91
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, reg);
sys/arch/sparc64/dev/pci_machdep.c
93
return (tag);
sys/arch/sparc64/dev/psycho.c
1382
psycho_pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/sparc64/dev/psycho.c
1390
(long)tag, reg));
sys/arch/sparc64/dev/psycho.c
1391
if (PCITAG_NODE(tag) != -1 && (unsigned int)reg < PCI_CONF_SIZE) {
sys/arch/sparc64/dev/psycho.c
1396
PCITAG_OFFSET(tag) + reg),
sys/arch/sparc64/dev/psycho.c
1397
(int)PCITAG_OFFSET(tag) + reg));
sys/arch/sparc64/dev/psycho.c
1404
PCITAG_OFFSET(tag) + reg);
sys/arch/sparc64/dev/psycho.c
1413
(int)PCITAG_OFFSET(tag)));
sys/arch/sparc64/dev/psycho.c
1421
psycho_pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sparc64/dev/psycho.c
1427
(long)PCITAG_OFFSET(tag), reg, (int)data));
sys/arch/sparc64/dev/psycho.c
1430
(long long)(sc->sc_configaddr._ptr + PCITAG_OFFSET(tag) + reg),
sys/arch/sparc64/dev/psycho.c
1431
(int)PCITAG_OFFSET(tag) + reg));
sys/arch/sparc64/dev/psycho.c
1434
if (PCITAG_NODE(tag) == -1) {
sys/arch/sparc64/dev/psycho.c
1443
PCITAG_OFFSET(tag) + reg, data);
sys/arch/sparc64/dev/psychoreg.h
379
#define TAG2BUS(tag) ((tag) >> 16) & 0xff;
sys/arch/sparc64/dev/psychoreg.h
380
#define TAG2DEV(tag) ((tag) >> 11) & 0x1f;
sys/arch/sparc64/dev/psychoreg.h
381
#define TAG2FN(tag) ((tag) >> 8) & 0x7;
sys/arch/sparc64/dev/pyro.c
284
pyro_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/sparc64/dev/pyro.c
290
DPRINTF(PDB_CONF, ("%s: tag %lx reg %x ", __func__, (long)tag, reg));
sys/arch/sparc64/dev/pyro.c
291
if (PCITAG_NODE(tag) != -1 && (unsigned int)reg < PCI_CONF_SIZE) {
sys/arch/sparc64/dev/pyro.c
297
(PCITAG_OFFSET(tag) << 4) + reg);
sys/arch/sparc64/dev/pyro.c
309
pyro_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sparc64/dev/pyro.c
314
(long)tag, reg, (int)data));
sys/arch/sparc64/dev/pyro.c
317
if (PCITAG_NODE(tag) == -1) {
sys/arch/sparc64/dev/pyro.c
326
(PCITAG_OFFSET(tag) << 4) + reg, data);
sys/arch/sparc64/dev/sbusvar.h
82
#define sbus_promaddr_to_handle(tag, promaddr, hp) \
sys/arch/sparc64/dev/sbusvar.h
83
sparc_promaddr_to_handle(tag, promaddr, hp)
sys/arch/sparc64/dev/schizo.c
527
schizo_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/sparc64/dev/schizo.c
533
DPRINTF(SDB_CONF, ("%s: tag %lx reg %x ", __func__, (long)tag, reg));
sys/arch/sparc64/dev/schizo.c
534
if (PCITAG_NODE(tag) != -1 && (unsigned int)reg < PCI_CONF_SIZE) {
sys/arch/sparc64/dev/schizo.c
540
PCITAG_OFFSET(tag) + reg);
sys/arch/sparc64/dev/schizo.c
552
schizo_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sparc64/dev/schizo.c
557
(long)tag, reg, (int)data));
sys/arch/sparc64/dev/schizo.c
560
if (PCITAG_NODE(tag) == -1) {
sys/arch/sparc64/dev/schizo.c
569
PCITAG_OFFSET(tag) + reg, data);
sys/arch/sparc64/dev/vdsk.c
1284
dm.tag.type = VIO_TYPE_DATA;
sys/arch/sparc64/dev/vdsk.c
1285
dm.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vdsk.c
1286
dm.tag.stype_env = VIO_DRING_DATA;
sys/arch/sparc64/dev/vdsk.c
1287
dm.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vdsk.c
54
struct vio_msg_tag tag;
sys/arch/sparc64/dev/vdsk.c
573
struct vio_msg_tag *tag = (struct vio_msg_tag *)&vm->type;
sys/arch/sparc64/dev/vdsk.c
575
switch (tag->stype_env) {
sys/arch/sparc64/dev/vdsk.c
577
vdsk_rx_vio_ver_info(sc, tag);
sys/arch/sparc64/dev/vdsk.c
580
vdsk_rx_vio_attr_info(sc, tag);
sys/arch/sparc64/dev/vdsk.c
583
vdsk_rx_vio_dring_reg(sc, tag);
sys/arch/sparc64/dev/vdsk.c
586
vdsk_rx_vio_rdx(sc, tag);
sys/arch/sparc64/dev/vdsk.c
589
DPRINTF(("CTRL/0x%02x/0x%04x\n", tag->stype, tag->stype_env));
sys/arch/sparc64/dev/vdsk.c
595
vdsk_rx_vio_ver_info(struct vdsk_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vdsk.c
597
struct vio_ver_info *vi = (struct vio_ver_info *)tag;
sys/arch/sparc64/dev/vdsk.c
599
switch (vi->tag.stype) {
sys/arch/sparc64/dev/vdsk.c
616
DPRINTF(("CTRL/0x%02x/VER_INFO\n", vi->tag.stype));
sys/arch/sparc64/dev/vdsk.c
625
vdsk_rx_vio_attr_info(struct vdsk_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vdsk.c
627
struct vd_attr_info *ai = (struct vd_attr_info *)tag;
sys/arch/sparc64/dev/vdsk.c
629
switch (ai->tag.stype) {
sys/arch/sparc64/dev/vdsk.c
652
DPRINTF(("CTRL/0x%02x/ATTR_INFO\n", ai->tag.stype));
sys/arch/sparc64/dev/vdsk.c
662
vdsk_rx_vio_dring_reg(struct vdsk_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vdsk.c
664
struct vio_dring_reg *dr = (struct vio_dring_reg *)tag;
sys/arch/sparc64/dev/vdsk.c
666
switch (dr->tag.stype) {
sys/arch/sparc64/dev/vdsk.c
685
DPRINTF(("CTRL/0x%02x/DRING_REG\n", dr->tag.stype));
sys/arch/sparc64/dev/vdsk.c
694
vdsk_rx_vio_rdx(struct vdsk_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vdsk.c
696
switch(tag->stype) {
sys/arch/sparc64/dev/vdsk.c
734
DPRINTF(("CTRL/0x%02x/RDX (VIO)\n", tag->stype));
sys/arch/sparc64/dev/vdsk.c
742
struct vio_msg_tag *tag = (struct vio_msg_tag *)&vm->type;
sys/arch/sparc64/dev/vdsk.c
745
DPRINTF(("Spurious DATA/0x%02x/0x%04x\n", tag->stype,
sys/arch/sparc64/dev/vdsk.c
746
tag->stype_env));
sys/arch/sparc64/dev/vdsk.c
750
switch(tag->stype_env) {
sys/arch/sparc64/dev/vdsk.c
752
vdsk_rx_vio_dring_data(sc, tag);
sys/arch/sparc64/dev/vdsk.c
756
DPRINTF(("DATA/0x%02x/0x%04x\n", tag->stype, tag->stype_env));
sys/arch/sparc64/dev/vdsk.c
762
vdsk_rx_vio_dring_data(struct vdsk_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vdsk.c
764
switch(tag->stype) {
sys/arch/sparc64/dev/vdsk.c
793
DPRINTF(("DATA/0x%02x/DRING_DATA\n", tag->stype));
sys/arch/sparc64/dev/vdsk.c
834
vi.tag.type = VIO_TYPE_CTRL;
sys/arch/sparc64/dev/vdsk.c
835
vi.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vdsk.c
836
vi.tag.stype_env = VIO_VER_INFO;
sys/arch/sparc64/dev/vdsk.c
837
vi.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vdsk.c
852
ai.tag.type = VIO_TYPE_CTRL;
sys/arch/sparc64/dev/vdsk.c
853
ai.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vdsk.c
854
ai.tag.stype_env = VIO_ATTR_INFO;
sys/arch/sparc64/dev/vdsk.c
855
ai.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vdsk.c
872
dr.tag.type = VIO_TYPE_CTRL;
sys/arch/sparc64/dev/vdsk.c
873
dr.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vdsk.c
874
dr.tag.stype_env = VIO_DRING_REG;
sys/arch/sparc64/dev/vdsk.c
875
dr.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vdsk.c
894
rdx.tag.type = VIO_TYPE_CTRL;
sys/arch/sparc64/dev/vdsk.c
895
rdx.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vdsk.c
896
rdx.tag.stype_env = VIO_RDX;
sys/arch/sparc64/dev/vdsk.c
897
rdx.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/viovar.h
110
struct vio_msg_tag tag;
sys/arch/sparc64/dev/viovar.h
125
struct vio_msg_tag tag;
sys/arch/sparc64/dev/viovar.h
63
struct vio_msg_tag tag;
sys/arch/sparc64/dev/viovar.h
78
struct vio_msg_tag tag;
sys/arch/sparc64/dev/vnet.c
1024
vi.tag.type = VIO_TYPE_CTRL;
sys/arch/sparc64/dev/vnet.c
1025
vi.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vnet.c
1026
vi.tag.stype_env = VIO_VER_INFO;
sys/arch/sparc64/dev/vnet.c
1027
vi.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
1043
ai.tag.type = VIO_TYPE_CTRL;
sys/arch/sparc64/dev/vnet.c
1044
ai.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vnet.c
1045
ai.tag.stype_env = VIO_ATTR_INFO;
sys/arch/sparc64/dev/vnet.c
1046
ai.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
1067
dr.tag.type = VIO_TYPE_CTRL;
sys/arch/sparc64/dev/vnet.c
1068
dr.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vnet.c
1069
dr.tag.stype_env = VIO_DRING_REG;
sys/arch/sparc64/dev/vnet.c
1070
dr.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
1086
struct vio_msg_tag tag;
sys/arch/sparc64/dev/vnet.c
1088
tag.type = VIO_TYPE_CTRL;
sys/arch/sparc64/dev/vnet.c
1089
tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vnet.c
1090
tag.stype_env = VIO_RDX;
sys/arch/sparc64/dev/vnet.c
1091
tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
1092
vnet_sendmsg(sc, &tag, sizeof(tag));
sys/arch/sparc64/dev/vnet.c
1110
dm.tag.type = VIO_TYPE_DATA;
sys/arch/sparc64/dev/vnet.c
1111
dm.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vnet.c
1112
dm.tag.stype_env = VIO_DRING_DATA;
sys/arch/sparc64/dev/vnet.c
1113
dm.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
1304
dm.tag.type = VIO_TYPE_DATA;
sys/arch/sparc64/dev/vnet.c
1305
dm.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vnet.c
1306
dm.tag.stype_env = VIO_DESC_DATA;
sys/arch/sparc64/dev/vnet.c
1307
dm.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
1430
mi.tag.type = VIO_TYPE_CTRL;
sys/arch/sparc64/dev/vnet.c
1431
mi.tag.stype = VIO_SUBTYPE_INFO;
sys/arch/sparc64/dev/vnet.c
1432
mi.tag.stype_env = VNET_MCAST_INFO;
sys/arch/sparc64/dev/vnet.c
1433
mi.tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
501
struct vio_msg_tag *tag = (struct vio_msg_tag *)&vm->type;
sys/arch/sparc64/dev/vnet.c
503
switch (tag->stype_env) {
sys/arch/sparc64/dev/vnet.c
505
vnet_rx_vio_ver_info(sc, tag);
sys/arch/sparc64/dev/vnet.c
508
vnet_rx_vio_attr_info(sc, tag);
sys/arch/sparc64/dev/vnet.c
511
vnet_rx_vio_dring_reg(sc, tag);
sys/arch/sparc64/dev/vnet.c
514
vnet_rx_vio_rdx(sc, tag);
sys/arch/sparc64/dev/vnet.c
517
vnet_rx_vio_mcast_info(sc, tag);
sys/arch/sparc64/dev/vnet.c
521
__func__, tag->stype, tag->stype_env);
sys/arch/sparc64/dev/vnet.c
527
vnet_rx_vio_ver_info(struct vnet_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vnet.c
529
struct vio_ver_info *vi = (struct vio_ver_info *)tag;
sys/arch/sparc64/dev/vnet.c
531
switch (vi->tag.stype) {
sys/arch/sparc64/dev/vnet.c
541
vi->tag.stype = VIO_SUBTYPE_NACK;
sys/arch/sparc64/dev/vnet.c
549
vi->tag.stype = VIO_SUBTYPE_NACK;
sys/arch/sparc64/dev/vnet.c
556
vi->tag.stype = VIO_SUBTYPE_ACK;
sys/arch/sparc64/dev/vnet.c
557
vi->tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
573
DPRINTF(("CTRL/0x%02x/VER_INFO\n", vi->tag.stype));
sys/arch/sparc64/dev/vnet.c
583
vnet_rx_vio_attr_info(struct vnet_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vnet.c
585
struct vnet_attr_info *ai = (struct vnet_attr_info *)tag;
sys/arch/sparc64/dev/vnet.c
587
switch (ai->tag.stype) {
sys/arch/sparc64/dev/vnet.c
591
ai->tag.stype = VIO_SUBTYPE_ACK;
sys/arch/sparc64/dev/vnet.c
592
ai->tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
607
DPRINTF(("CTRL/0x%02x/ATTR_INFO\n", ai->tag.stype));
sys/arch/sparc64/dev/vnet.c
61
struct vio_msg_tag tag;
sys/arch/sparc64/dev/vnet.c
621
vnet_rx_vio_dring_reg(struct vnet_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vnet.c
623
struct vio_dring_reg *dr = (struct vio_dring_reg *)tag;
sys/arch/sparc64/dev/vnet.c
625
switch (dr->tag.stype) {
sys/arch/sparc64/dev/vnet.c
632
dr->tag.stype = VIO_SUBTYPE_ACK;
sys/arch/sparc64/dev/vnet.c
633
dr->tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
652
DPRINTF(("CTRL/0x%02x/DRING_REG\n", dr->tag.stype));
sys/arch/sparc64/dev/vnet.c
662
vnet_rx_vio_rdx(struct vnet_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vnet.c
666
switch(tag->stype) {
sys/arch/sparc64/dev/vnet.c
669
tag->stype = VIO_SUBTYPE_ACK;
sys/arch/sparc64/dev/vnet.c
670
tag->sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
671
vnet_sendmsg(sc, tag, sizeof(*tag));
sys/arch/sparc64/dev/vnet.c
685
DPRINTF(("CTRL/0x%02x/RDX (VIO)\n", tag->stype));
sys/arch/sparc64/dev/vnet.c
704
vnet_rx_vio_mcast_info(struct vnet_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vnet.c
706
switch(tag->stype) {
sys/arch/sparc64/dev/vnet.c
722
__func__, tag->stype, tag->stype_env);
sys/arch/sparc64/dev/vnet.c
730
struct vio_msg_tag *tag = (struct vio_msg_tag *)&vm->type;
sys/arch/sparc64/dev/vnet.c
734
DPRINTF(("Spurious DATA/0x%02x/0x%04x\n", tag->stype,
sys/arch/sparc64/dev/vnet.c
735
tag->stype_env));
sys/arch/sparc64/dev/vnet.c
739
switch(tag->stype_env) {
sys/arch/sparc64/dev/vnet.c
741
vnet_rx_vio_desc_data(sc, tag);
sys/arch/sparc64/dev/vnet.c
745
vnet_rx_vio_dring_data(sc, tag);
sys/arch/sparc64/dev/vnet.c
749
DPRINTF(("DATA/0x%02x/0x%04x\n", tag->stype, tag->stype_env));
sys/arch/sparc64/dev/vnet.c
755
vnet_rx_vio_desc_data(struct vnet_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vnet.c
758
struct vnet_desc_msg *dm = (struct vnet_desc_msg *)tag;
sys/arch/sparc64/dev/vnet.c
769
switch(tag->stype) {
sys/arch/sparc64/dev/vnet.c
80
struct vio_msg_tag tag;
sys/arch/sparc64/dev/vnet.c
803
dm->tag.stype = VIO_SUBTYPE_ACK;
sys/arch/sparc64/dev/vnet.c
804
dm->tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
832
DPRINTF(("DATA/0x%02x/DESC_DATA\n", tag->stype));
sys/arch/sparc64/dev/vnet.c
838
vnet_rx_vio_dring_data(struct vnet_softc *sc, struct vio_msg_tag *tag)
sys/arch/sparc64/dev/vnet.c
840
struct vio_dring_msg *dm = (struct vio_dring_msg *)tag;
sys/arch/sparc64/dev/vnet.c
848
switch(tag->stype) {
sys/arch/sparc64/dev/vnet.c
916
dm->tag.stype = VIO_SUBTYPE_NACK;
sys/arch/sparc64/dev/vnet.c
918
dm->tag.stype = VIO_SUBTYPE_ACK;
sys/arch/sparc64/dev/vnet.c
921
dm->tag.sid = sc->sc_local_sid;
sys/arch/sparc64/dev/vnet.c
95
struct vio_msg_tag tag;
sys/arch/sparc64/dev/vnet.c
967
DPRINTF(("DATA/0x%02x/DRING_DATA\n", tag->stype));
sys/arch/sparc64/dev/vpci.c
333
vpci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/sparc64/dev/vpci.c
339
DPRINTF(VDB_CONF_READ, ("%s: tag %lx reg %x ", __func__, (long)tag, reg));
sys/arch/sparc64/dev/vpci.c
340
hv_rc = hv_pci_config_get(pbm->vp_devhandle, PCITAG_OFFSET(tag), reg, 4,
sys/arch/sparc64/dev/vpci.c
352
vpci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/sparc64/dev/vpci.c
359
(long)tag, reg, (int)data));
sys/arch/sparc64/dev/vpci.c
360
hv_rc = hv_pci_config_put(pbm->vp_devhandle, PCITAG_OFFSET(tag), reg, 4,
sys/arch/sparc64/include/bus_defs.h
117
#define sparc_promaddr_to_handle(tag, promaddr, hp) \
sys/arch/sparc64/include/bus_funcs.h
425
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/sparc64/include/bus_funcs.h
428
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/sparc64/include/bus_funcs.h
430
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/sparc64/include/bus_funcs.h
432
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/sparc64/include/bus_funcs.h
434
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/sparc64/include/bus_funcs.h
437
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/sparc64/include/mdesc.h
30
uint8_t tag;
sys/arch/sparc64/include/pci_machdep.h
103
#define pci_conf_read(pc, tag, reg) \
sys/arch/sparc64/include/pci_machdep.h
104
((pc)->spc_conf_read(pc, tag, reg))
sys/arch/sparc64/include/pci_machdep.h
105
#define pci_conf_write(pc, tag, reg, val) \
sys/arch/sparc64/include/pci_machdep.h
106
((pc)->spc_conf_write(pc, tag, reg, val))
sys/arch/sparc64/include/pte.h
102
union sun4u_tag { struct sun4u_tag_fields f; int64_t tag; };
sys/arch/sparc64/include/pte.h
126
union sun4u_tag tag;
sys/arch/sparc64/include/pte.h
131
int64_t tag;
sys/arch/sparc64/include/pte.h
83
#define TSBVA(i) ((tsb[(i)].tag.f.tag_va<<22)|(((i)<<13)&0x3ff000))
sys/arch/sparc64/sparc64/db_interface.c
638
uint64_t tag, data;
sys/arch/sparc64/sparc64/db_interface.c
642
tag = tsb[i].tag;
sys/arch/sparc64/sparc64/db_interface.c
645
(int)((tag & TSB_TAG_G) ? -1 : TSB_TAG_CTX(tag)),
sys/arch/sparc64/sparc64/db_interface.c
646
(int)((i << 13) | TSB_TAG_VA(tag)),
sys/arch/sparc64/sparc64/db_interface.c
649
tag = tsb[i].tag;
sys/arch/sparc64/sparc64/db_interface.c
652
(int)((tag & TSB_TAG_G) ? -1 : TSB_TAG_CTX(tag)),
sys/arch/sparc64/sparc64/db_interface.c
653
(int)((i << 13) | TSB_TAG_VA(tag)),
sys/arch/sparc64/sparc64/machdep.c
2337
sparc_bus_subregion(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/sparc64/sparc64/mdesc.c
101
while (elem[idx].tag != 'E') {
sys/arch/sparc64/sparc64/mdesc.c
103
if (elem[idx].tag == 's' && strcmp(str, name) == 0)
sys/arch/sparc64/sparc64/mdesc.c
125
while (elem[idx].tag != 'E') {
sys/arch/sparc64/sparc64/mdesc.c
127
if (elem[idx].tag == 'd' && strcmp(str, name) == 0) {
sys/arch/sparc64/sparc64/mdesc.c
150
for (idx = 0; elem[idx].tag == 'N'; idx = elem[idx].d.val) {
sys/arch/sparc64/sparc64/mdesc.c
174
for (; elem[idx].tag != 'E'; idx++) {
sys/arch/sparc64/sparc64/mdesc.c
176
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/sparc64/mdesc.c
201
for ( ; elem[idx].tag == 'N'; idx = elem[idx].d.val) {
sys/arch/sparc64/sparc64/mdesc.c
77
while (elem[idx].tag != 'E') {
sys/arch/sparc64/sparc64/mdesc.c
79
if (elem[idx].tag == 'v' && strcmp(str, name) == 0)
sys/arch/sparc64/sparc64/pmap.c
1686
(int)(curcpu()->ci_tsb_dmmu[i].tag>>32), (int)curcpu()->ci_tsb_dmmu[i].tag,
sys/arch/sparc64/sparc64/pmap.c
1952
(int)(curcpu()->ci_tsb_dmmu[i].tag>>32), (int)curcpu()->ci_tsb_dmmu[i].tag,
sys/arch/sparc64/sparc64/pmap.c
1970
tte.tag = TSB_TAG(0, pmap_ctx(pm), va);
sys/arch/sparc64/sparc64/pmap.c
1976
curcpu()->ci_tsb_dmmu[i].tag = tte.tag;
sys/arch/sparc64/sparc64/pmap.c
1981
curcpu()->ci_tsb_immu[i].tag = tte.tag;
sys/arch/sparc64/sparc64/pmap.c
252
int64_t tag;
sys/arch/sparc64/sparc64/pmap.c
264
tag = TSB_TAG(0, ctx, va);
sys/arch/sparc64/sparc64/pmap.c
265
if (ci->ci_tsb_dmmu[i].tag == tag) {
sys/arch/sparc64/sparc64/pmap.c
268
if (ci->ci_tsb_immu[i].tag == tag) {
sys/arch/sparc64/sparc64/pmap.c
3208
if (TSB_TAG_CTX(curcpu()->ci_tsb_dmmu[i].tag) != 0) {
sys/arch/sparc64/sparc64/pmap.c
3211
if (TSB_TAG_CTX(curcpu()->ci_tsb_immu[i].tag) != 0) {
sys/arch/sparc64/sparc64/pmap.c
547
tp[i].tag = kernel_tlbs[i].te_va;
sys/arch/sparc64/sparc64/pmap.c
568
PRIx64 "\n", i, tp[i].tag, tp[i].data));
sys/arch/sun68k/sun68k/bus.c
599
sun68k_bus_subregion(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/sun68k/sun68k/bus.c
622
sun68k_bus_peek(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/sun68k/sun68k/bus.c
639
bus_space_read_1(tag, handle, offset);
sys/arch/sun68k/sun68k/bus.c
643
bus_space_read_2(tag, handle, offset);
sys/arch/sun68k/sun68k/bus.c
647
bus_space_read_4(tag, handle, offset);
sys/arch/sun68k/sun68k/bus.c
660
sun68k_bus_poke(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/sun68k/sun68k/bus.c
672
bus_space_write_1(tag, handle, offset, (uint8_t)v);
sys/arch/sun68k/sun68k/bus.c
675
bus_space_write_2(tag, handle, offset, (uint16_t)v);
sys/arch/sun68k/sun68k/bus.c
678
bus_space_write_4(tag, handle, offset, (uint32_t)v);
sys/arch/vax/include/bus.h
964
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/vax/include/bus.h
967
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs);
sys/arch/vax/include/bus.h
968
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/vax/include/bus.h
970
void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva, size_t size);
sys/arch/vax/include/bus.h
971
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/vax/uba/uba_dma.c
247
uba_bus_dmamap_sync(bus_dma_tag_t tag, bus_dmamap_t dmam, bus_addr_t offset,
sys/arch/vax/vsa/vsbus_dma.c
251
sgmap_bus_dmamap_sync(bus_dma_tag_t tag, bus_dmamap_t dmam, bus_addr_t offset,
sys/arch/x68k/include/bus.h
264
#define __X68K_BUS_ADDR(tag, handle, offset) \
sys/arch/x68k/include/bus.h
661
int x68k_bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/x68k/include/bus.h
664
void x68k_bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/x68k/include/bus.h
666
int x68k_bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/x68k/include/bus.h
668
void x68k_bus_dmamem_unmap(bus_dma_tag_t tag, void *kva,
sys/arch/x68k/include/bus.h
670
paddr_t x68k_bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/x68k/include/bus.h
675
int x68k_bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/x86/include/bootinfo.h
98
unsigned int tag; /* PCI, BIOS format */
sys/arch/x86/include/mtrr.h
124
void (*dump)(const char *tag);
sys/arch/x86/pci/aapic.c
46
pcitag_t tag;
sys/arch/x86/pci/aapic.c
67
tag = pci_make_tag(pa->pa_pc, bus, dev, func);
sys/arch/x86/pci/aapic.c
68
reg = pci_conf_read(pa->pa_pc, tag, AMD8131_PCIX_MISC);
sys/arch/x86/pci/aapic.c
70
pci_conf_write(pa->pa_pc, tag, AMD8131_PCIX_MISC, reg);
sys/arch/x86/pci/ichlpcib.c
545
pcitag_t tag = sc->sc_pcib.sc_tag;
sys/arch/x86/pci/ichlpcib.c
548
sc->sc_pirq[0] = pci_conf_read(pc, tag, LPCIB_PCI_PIRQA_ROUT);
sys/arch/x86/pci/ichlpcib.c
549
sc->sc_pirq[1] = pci_conf_read(pc, tag, LPCIB_PCI_PIRQE_ROUT);
sys/arch/x86/pci/ichlpcib.c
551
sc->sc_pmcon = pci_conf_read(pc, tag, LPCIB_PCI_GEN_PMCON_1);
sys/arch/x86/pci/ichlpcib.c
552
sc->sc_fwhsel2 = pci_conf_read(pc, tag, LPCIB_PCI_GEN_STA);
sys/arch/x86/pci/ichlpcib.c
555
sc->sc_rcba_reg = pci_conf_read(pc, tag, LPCIB_RCBA);
sys/arch/x86/pci/ichlpcib.c
559
sc->sc_hpet_reg = pci_conf_read(pc, tag, LPCIB_PCI_GEN_CNTL);
sys/arch/x86/pci/ichlpcib.c
570
pcitag_t tag = sc->sc_pcib.sc_tag;
sys/arch/x86/pci/ichlpcib.c
573
pci_conf_write(pc, tag, LPCIB_PCI_PIRQA_ROUT, sc->sc_pirq[0]);
sys/arch/x86/pci/ichlpcib.c
574
pci_conf_write(pc, tag, LPCIB_PCI_PIRQE_ROUT, sc->sc_pirq[1]);
sys/arch/x86/pci/ichlpcib.c
576
pci_conf_write(pc, tag, LPCIB_PCI_GEN_PMCON_1, sc->sc_pmcon);
sys/arch/x86/pci/ichlpcib.c
577
pci_conf_write(pc, tag, LPCIB_PCI_GEN_STA, sc->sc_fwhsel2);
sys/arch/x86/pci/ichlpcib.c
580
pci_conf_write(pc, tag, LPCIB_RCBA, sc->sc_rcba_reg);
sys/arch/x86/pci/ichlpcib.c
584
pci_conf_write(pc, tag, LPCIB_PCI_GEN_CNTL, sc->sc_hpet_reg);
sys/arch/x86/pci/msipic.c
138
pcitag_t tag;
sys/arch/x86/pci/msipic.c
144
tag = pa->pa_tag;
sys/arch/x86/pci/msipic.c
145
pci_decompose_tag(pc, tag, &bus, &dev, &fun);
sys/arch/x86/pci/msipic.c
339
pcitag_t tag;
sys/arch/x86/pci/msipic.c
345
tag = pa->pa_tag;
sys/arch/x86/pci/msipic.c
346
err = pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL);
sys/arch/x86/pci/msipic.c
353
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/x86/pci/msipic.c
360
pci_conf_write16(pc, tag, off + PCI_MSI_CTL + 2, ctl >> 16);
sys/arch/x86/pci/msipic.c
362
pci_conf_write(pc, tag, off, ctl);
sys/arch/x86/pci/msipic.c
390
pcitag_t tag;
sys/arch/x86/pci/msipic.c
399
tag = pa->pa_tag;
sys/arch/x86/pci/msipic.c
400
err = pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL);
sys/arch/x86/pci/msipic.c
403
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/x86/pci/msipic.c
429
pci_conf_write(pc, tag, off + PCI_MSI_MADDR64_LO, addr);
sys/arch/x86/pci/msipic.c
430
pci_conf_write(pc, tag, off + PCI_MSI_MADDR64_HI, 0);
sys/arch/x86/pci/msipic.c
431
pci_conf_write(pc, tag, off + PCI_MSI_MDATA64, data);
sys/arch/x86/pci/msipic.c
433
pci_conf_write(pc, tag, off + PCI_MSI_MADDR, addr);
sys/arch/x86/pci/msipic.c
434
pci_conf_write(pc, tag, off + PCI_MSI_MDATA, data);
sys/arch/x86/pci/msipic.c
439
pci_conf_write16(pc, tag, off + PCI_MSI_CTL + 2, ctl >> 16);
sys/arch/x86/pci/msipic.c
441
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/x86/pci/msipic.c
566
pcitag_t tag;
sys/arch/x86/pci/msipic.c
584
tag = pa->pa_tag;
sys/arch/x86/pci/msipic.c
585
err = pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL);
sys/arch/x86/pci/msipic.c
590
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/x86/pci/msipic.c
592
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/x86/pci/msipic.c
621
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/arch/x86/pci/msipic.c
627
pci_conf_write16(pc, tag, off + PCI_MSIX_CTL + 2, ctl >> 16);
sys/arch/x86/pci/msipic.c
629
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/arch/x86/pci/msipic.c
63
#define BUS_SPACE_WRITE_FLUSH(pc, tag) (void)bus_space_read_4(pc, tag, 0)
sys/arch/x86/pci/msipic.c
668
pcitag_t tag;
sys/arch/x86/pci/msipic.c
688
tag = pa->pa_tag;
sys/arch/x86/pci/msipic.c
689
if (pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL) == 0) {
sys/arch/x86/pci/msipic.c
707
tbl = pci_conf_read(pc, tag, off + PCI_MSIX_TBLOFFSET);
sys/arch/x86/pci/msipic.c
735
memtype = pci_mapreg_type(pc, tag, bar);
sys/arch/x86/pci/msipic.c
814
pcitag_t tag;
sys/arch/x86/pci/msipic.c
820
tag = pa->pa_tag;
sys/arch/x86/pci/msipic.c
821
err = pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL);
sys/arch/x86/pci/msipic.c
824
ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/arch/x86/pci/msipic.c
827
pci_conf_write(pc, tag, off + PCI_MSI_CTL, ctl);
sys/arch/x86/pci/pchb.c
101
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/x86/pci/pchb.c
103
dev_id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/x86/pci/pchb.c
106
return pci_conf_read(pc, tag, 0x44) & 0xff;
sys/arch/x86/pci/pchb.c
110
bcreg = pci_conf_read(pc, tag, 0x40);
sys/arch/x86/pci/pchb.c
117
bcreg = pci_conf_read(pc, tag, PCISET_BUSCONFIG_REG);
sys/arch/x86/pci/pchb.c
126
tag = pci_make_tag(pc, 0, 16, 0);
sys/arch/x86/pci/pchb.c
127
bcreg = pci_conf_read(pc, tag, 0xd0);
sys/arch/x86/pci/pchb.c
132
tag = pci_make_tag(pc, 0, 16, 0);
sys/arch/x86/pci/pchb.c
133
bcreg = pci_conf_read(pc, tag, 0xd0);
sys/arch/x86/pci/pchb.c
138
tag = pci_make_tag(pc, 0, 16, 0);
sys/arch/x86/pci/pchb.c
139
bcreg = pci_conf_read(pc, tag, 0xd4);
sys/arch/x86/pci/pchb.c
158
pcitag_t tag;
sys/arch/x86/pci/pchb.c
335
tag = pci_make_tag(pa->pa_pc, 0, 16, 0);
sys/arch/x86/pci/pchb.c
336
bcreg = pci_conf_read(pa->pa_pc, tag, 0xd0);
sys/arch/x86/pci/pchb.c
341
tag = pci_make_tag(pa->pa_pc, 0, 16, 0);
sys/arch/x86/pci/pchb.c
342
bcreg = pci_conf_read(pa->pa_pc, tag, 0xd0);
sys/arch/x86/pci/pchb.c
347
tag = pci_make_tag(pa->pa_pc, 0, 16, 0);
sys/arch/x86/pci/pchb.c
348
bcreg = pci_conf_read(pa->pa_pc, tag, 0xd4);
sys/arch/x86/pci/pchb.c
459
pcitag_t tag;
sys/arch/x86/pci/pchb.c
463
tag = sc->sc_tag;
sys/arch/x86/pci/pchb.c
466
sc->sc_pciconfext[(off - 0x40) / 4] = pci_conf_read(pc, tag, off);
sys/arch/x86/pci/pchb.c
476
pcitag_t tag;
sys/arch/x86/pci/pchb.c
480
tag = sc->sc_tag;
sys/arch/x86/pci/pchb.c
483
pci_conf_write(pc, tag, off, sc->sc_pciconfext[(off - 0x40) / 4]);
sys/arch/x86/pci/pchb.c
95
pchb_get_bus_number(pci_chipset_tag_t pc, pcitag_t tag)
sys/arch/x86/pci/pci_addr_fixup.c
146
pciaddr_resource_reserve(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/x86/pci/pci_addr_fixup.c
149
pciaddr_print_devid(pc, tag);
sys/arch/x86/pci/pci_addr_fixup.c
150
pciaddr_resource_manage(pc, tag,
sys/arch/x86/pci/pci_addr_fixup.c
156
pciaddr_resource_allocate(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/x86/pci/pci_addr_fixup.c
159
pciaddr_print_devid(pc, tag);
sys/arch/x86/pci/pci_addr_fixup.c
160
pciaddr_resource_manage(pc, tag,
sys/arch/x86/pci/pci_addr_fixup.c
166
pciaddr_resource_manage(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/x86/pci/pci_addr_fixup.c
174
val = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/arch/x86/pci/pci_addr_fixup.c
197
val = pci_conf_read(pc, tag, mapreg);
sys/arch/x86/pci/pci_addr_fixup.c
198
pci_conf_write(pc, tag, mapreg, ~0);
sys/arch/x86/pci/pci_addr_fixup.c
200
mask = pci_conf_read(pc, tag, mapreg);
sys/arch/x86/pci/pci_addr_fixup.c
201
pci_conf_write(pc, tag, mapreg, val);
sys/arch/x86/pci/pci_addr_fixup.c
234
error += (*func) (pc, tag, mapreg, ctx, type, &addr, size);
sys/arch/x86/pci/pci_addr_fixup.c
242
val = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/x86/pci/pci_addr_fixup.c
249
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, val);
sys/arch/x86/pci/pci_addr_fixup.c
258
pciaddr_do_resource_allocate(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/x86/pci/pci_addr_fixup.c
273
if (device_is_agp(pc, tag))
sys/arch/x86/pci/pci_addr_fixup.c
293
pci_conf_write(pc, tag, mapreg, *addr);
sys/arch/x86/pci/pci_addr_fixup.c
296
pciaddr_print_devid(pc, tag);
sys/arch/x86/pci/pci_addr_fixup.c
297
if (pciaddr_ioaddr(pci_conf_read(pc, tag, mapreg)) != *addr) {
sys/arch/x86/pci/pci_addr_fixup.c
298
pci_conf_write(pc, tag, mapreg, 0); /* clear */
sys/arch/x86/pci/pci_addr_fixup.c
308
pciaddr_do_resource_reserve(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/x86/pci/pci_addr_fixup.c
324
pci_conf_write(pc, tag, mapreg, 0); /* clear */
sys/arch/x86/pci/pci_addr_fixup.c
340
pciaddr_print_devid(pci_chipset_tag_t pc, pcitag_t tag)
sys/arch/x86/pci/pci_addr_fixup.c
345
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/x86/pci/pci_addr_fixup.c
346
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/arch/x86/pci/pci_addr_fixup.c
352
device_is_agp(pci_chipset_tag_t pc, pcitag_t tag)
sys/arch/x86/pci/pci_addr_fixup.c
358
class = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/x86/pci/pci_addr_fixup.c
360
status = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/arch/x86/pci/pci_addr_fixup.c
362
rval = pci_conf_read(pc, tag, PCI_CAPLISTPTR_REG);
sys/arch/x86/pci/pci_addr_fixup.c
366
rval = pci_conf_read(pc, tag, off);
sys/arch/x86/pci/pci_bus_fixup.c
100
reg = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/x86/pci/pci_bus_fixup.c
112
reg = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/x86/pci/pci_bus_fixup.c
122
reg = pci_conf_read(pc, tag,
sys/arch/x86/pci/pci_bus_fixup.c
126
pci_conf_write(pc, tag, PCI_BRIDGE_BUS_REG,
sys/arch/x86/pci/pci_bus_fixup.c
135
pci_conf_write(pc, tag, PCI_BRIDGE_BUS_REG,
sys/arch/x86/pci/pci_bus_fixup.c
141
pci_bus_tag[bus_max]=tag;
sys/arch/x86/pci/pci_bus_fixup.c
159
pci_bridge_reset(pci_chipset_tag_t pc, pcitag_t tag, void *ctx)
sys/arch/x86/pci/pci_bus_fixup.c
163
reg = pci_conf_read(pc, tag, PCI_BRIDGE_BUS_REG);
sys/arch/x86/pci/pci_bus_fixup.c
166
pci_conf_write(pc, tag, PCI_BRIDGE_BUS_REG, reg);
sys/arch/x86/pci/pci_bus_fixup.c
64
pcitag_t tag;
sys/arch/x86/pci/pci_bus_fixup.c
78
tag = pci_make_tag(pc, bus, device, 0);
sys/arch/x86/pci/pci_bus_fixup.c
79
reg = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/x86/pci/pci_bus_fixup.c
90
reg = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/arch/x86/pci/pci_bus_fixup.c
99
tag = pci_make_tag(pc, bus, device, function);
sys/arch/x86/pci/pci_machdep.c
1219
if (bin->addr.tag == ((b << 8) | (d << 3) | f)) {
sys/arch/x86/pci/pci_machdep.c
1237
if (bin->addr.tag == ((b << 8) | (d << 3) | f))
sys/arch/x86/pci/pci_machdep.c
202
pcitag_t tag;
sys/arch/x86/pci/pci_machdep.c
387
pci_conf_selector(pcitag_t tag, int reg)
sys/arch/x86/pci/pci_machdep.c
398
return tag.mode1 | reg;
sys/arch/x86/pci/pci_machdep.c
400
return tag.mode1 & mode2_mask.mode1;
sys/arch/x86/pci/pci_machdep.c
407
pci_conf_port(pcitag_t tag, int reg)
sys/arch/x86/pci/pci_machdep.c
413
return tag.mode2.port | reg;
sys/arch/x86/pci/pci_machdep.c
422
pcitag_t tag;
sys/arch/x86/pci/pci_machdep.c
429
tag.mode1 = sel;
sys/arch/x86/pci/pci_machdep.c
430
outb(PCI_MODE2_ENABLE_REG, tag.mode2.enable);
sys/arch/x86/pci/pci_machdep.c
431
if (tag.mode2.enable != 0)
sys/arch/x86/pci/pci_machdep.c
432
outb(PCI_MODE2_FORWARD_REG, tag.mode2.forward);
sys/arch/x86/pci/pci_machdep.c
484
pcitag_t tag;
sys/arch/x86/pci/pci_machdep.c
514
tag = pci_make_tag(pc, 0, device, function);
sys/arch/x86/pci/pci_machdep.c
515
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/x86/pci/pci_machdep.c
516
class = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/x86/pci/pci_machdep.c
571
tag = pci_make_tag(pc, 0, 24, 0);
sys/arch/x86/pci/pci_machdep.c
572
if (pci_get_capability(pc, tag, PCI_CAP_LDT, NULL, NULL)) {
sys/arch/x86/pci/pci_machdep.c
600
pcitag_t tag;
sys/arch/x86/pci/pci_machdep.c
615
tag.mode1 = PCI_MODE1_ENABLE |
sys/arch/x86/pci/pci_machdep.c
617
return tag;
sys/arch/x86/pci/pci_machdep.c
623
tag.mode2.port = 0xc000 | (device << 8);
sys/arch/x86/pci/pci_machdep.c
624
tag.mode2.enable = 0xf0 | (function << 1);
sys/arch/x86/pci/pci_machdep.c
625
tag.mode2.forward = bus;
sys/arch/x86/pci/pci_machdep.c
626
return tag;
sys/arch/x86/pci/pci_machdep.c
633
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/x86/pci/pci_machdep.c
642
pc, tag, bp, dp, fp);
sys/arch/x86/pci/pci_machdep.c
649
*bp = (tag.mode1 >> 16) & 0xff;
sys/arch/x86/pci/pci_machdep.c
651
*dp = (tag.mode1 >> 11) & 0x1f;
sys/arch/x86/pci/pci_machdep.c
653
*fp = (tag.mode1 >> 8) & 0x7;
sys/arch/x86/pci/pci_machdep.c
657
*bp = tag.mode2.forward & 0xff;
sys/arch/x86/pci/pci_machdep.c
659
*dp = (tag.mode2.port >> 8) & 0xf;
sys/arch/x86/pci/pci_machdep.c
661
*fp = (tag.mode2.enable >> 1) & 0x7;
sys/arch/x86/pci/pci_machdep.c
669
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/x86/pci/pci_machdep.c
681
return (*ipc->pc_ov->ov_conf_read)(ipc->pc_ctx, pc, tag, reg);
sys/arch/x86/pci/pci_machdep.c
684
pci_decompose_tag(pc, tag, NULL, &dev, NULL);
sys/arch/x86/pci/pci_machdep.c
694
acpimcfg_conf_read(pc, tag, reg, &data);
sys/arch/x86/pci/pci_machdep.c
701
pci_conf_lock(&ocl, pci_conf_selector(tag, reg));
sys/arch/x86/pci/pci_machdep.c
702
data = inl(pci_conf_port(tag, reg));
sys/arch/x86/pci/pci_machdep.c
708
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/x86/pci/pci_machdep.c
719
(*ipc->pc_ov->ov_conf_write)(ipc->pc_ctx, pc, tag, reg,
sys/arch/x86/pci/pci_machdep.c
724
pci_decompose_tag(pc, tag, NULL, &dev, NULL);
sys/arch/x86/pci/pci_machdep.c
735
acpimcfg_conf_write(pc, tag, reg, data);
sys/arch/x86/pci/pci_machdep.c
740
pci_conf_lock(&ocl, pci_conf_selector(tag, reg));
sys/arch/x86/pci/pci_machdep.c
741
outl(pci_conf_port(tag, reg), data);
sys/arch/x86/pci/pci_machdep.c
747
pci_conf_write16(pci_chipset_tag_t pc, pcitag_t tag, int reg, uint16_t data)
sys/arch/x86/pci/pci_machdep.c
761
pci_decompose_tag(pc, tag, NULL, &dev, NULL);
sys/arch/x86/pci/pci_machdep.c
777
pci_conf_lock(&ocl, pci_conf_selector(tag, reg & ~0x3));
sys/arch/x86/pci/pci_machdep.c
778
outl(pci_conf_port(tag, reg & ~0x3) + (reg & 0x3), data);
sys/arch/x86/pci/pci_machdep.c
816
t.mode1 = pcim1_quirk_tbl[i].tag.mode1;
sys/arch/x86/pci/pci_machdep.c
910
pcitag_t tag;
sys/arch/x86/pci/pci_machdep.c
915
tag = pci_make_tag(pc, bus, device, 0);
sys/arch/x86/pci/pci_machdep.c
916
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/x86/pci/pci_machdep.c
928
bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/arch/x86/pci/pci_machdep.c
937
tag = pci_make_tag(pc, bus, device, function);
sys/arch/x86/pci/pci_machdep.c
938
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/arch/x86/pci/pci_machdep.c
949
(*func)(pc, tag, context);
sys/arch/x86/pci/pci_machdep.c
969
pci_bridge_hook(pci_chipset_tag_t pc, pcitag_t tag, void *ctx)
sys/arch/x86/pci/pci_machdep.c
974
reg = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/arch/x86/pci/pci_machdep.c
978
(*bridge_hook->func)(pc, tag, bridge_hook->arg);
sys/arch/x86/pci/pci_ranges.c
301
io_range_infer(pci_chipset_tag_t pc, pcitag_t tag, void *ctx)
sys/arch/x86/pci/pci_ranges.c
308
bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/arch/x86/pci/pci_ranges.c
312
pci_decompose_tag(pc, tag, &bus, &dev, &fun);
sys/arch/x86/pci/pci_ranges.c
321
pci_conf_read(pc, tag, PCI_BRIDGE_STATIO_REG),
sys/arch/x86/pci/pci_ranges.c
322
pci_conf_read(pc, tag, PCI_BRIDGE_IOHIGH_REG));
sys/arch/x86/pci/pci_ranges.c
324
pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG),
sys/arch/x86/pci/pci_ranges.c
325
pci_conf_read(pc, tag, PCI_BRIDGE_CONTROL_REG));
sys/arch/x86/pci/pci_ranges.c
329
io = pci_conf_read(pc, tag, PCI_CB_IOBASE0);
sys/arch/x86/pci/pci_ranges.c
330
limit = pci_conf_read(pc, tag, PCI_CB_IOLIMIT0);
sys/arch/x86/pci/pci_ranges.c
333
io = pci_conf_read(pc, tag, PCI_CB_IOBASE1);
sys/arch/x86/pci/pci_ranges.c
334
limit = pci_conf_read(pc, tag, PCI_CB_IOLIMIT1);
sys/arch/x86/pci/pci_ranges.c
351
basebar = pci_conf_read(pc, tag, PCI_BAR(bar));
sys/arch/x86/pci/pci_ranges.c
352
pci_conf_write(pc, tag, PCI_BAR(bar), 0xffffffff);
sys/arch/x86/pci/pci_ranges.c
353
sizebar = pci_conf_read(pc, tag, PCI_BAR(bar));
sys/arch/x86/pci/pci_ranges.c
354
pci_conf_write(pc, tag, PCI_BAR(bar), basebar);
sys/arch/x86/pci/pci_ranges.c
608
mmio_range_infer(pci_chipset_tag_t pc, pcitag_t tag, void *ctx)
sys/arch/x86/pci/pci_ranges.c
615
bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/arch/x86/pci/pci_ranges.c
619
pci_decompose_tag(pc, tag, &bus, &dev, &fun);
sys/arch/x86/pci/pci_ranges.c
627
pci_conf_read(pc, tag, PCI_BRIDGE_MEMORY_REG));
sys/arch/x86/pci/pci_ranges.c
628
premem = pci_conf_read(pc, tag, PCI_BRIDGE_PREFETCHMEM_REG);
sys/arch/x86/pci/pci_ranges.c
632
hiprebase = pci_conf_read(pc, tag,
sys/arch/x86/pci/pci_ranges.c
634
hiprelimit = pci_conf_read(pc, tag,
sys/arch/x86/pci/pci_ranges.c
644
pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG),
sys/arch/x86/pci/pci_ranges.c
645
pci_conf_read(pc, tag, PCI_BRIDGE_CONTROL_REG));
sys/arch/x86/pci/pci_ranges.c
649
bcr = pci_conf_read(pc, tag, PCI_BRIDGE_CONTROL_REG);
sys/arch/x86/pci/pci_ranges.c
650
mem = pci_conf_read(pc, tag, PCI_CB_MEMBASE0);
sys/arch/x86/pci/pci_ranges.c
651
limit = pci_conf_read(pc, tag, PCI_CB_MEMLIMIT0);
sys/arch/x86/pci/pci_ranges.c
655
mem = pci_conf_read(pc, tag, PCI_CB_MEMBASE1);
sys/arch/x86/pci/pci_ranges.c
656
limit = pci_conf_read(pc, tag, PCI_CB_MEMLIMIT1);
sys/arch/x86/pci/pci_ranges.c
674
basebar = pci_conf_read(pc, tag, PCI_BAR(bar));
sys/arch/x86/pci/pci_ranges.c
675
pci_conf_write(pc, tag, PCI_BAR(bar), 0xffffffff);
sys/arch/x86/pci/pci_ranges.c
676
sizebar = pci_conf_read(pc, tag, PCI_BAR(bar));
sys/arch/x86/pci/pci_ranges.c
677
pci_conf_write(pc, tag, PCI_BAR(bar), basebar);
sys/arch/x86/x86/bus_dma.c
1328
_bus_dmatag_subregion(bus_dma_tag_t tag, bus_addr_t min_addr,
sys/arch/x86/x86/bus_dma.c
1332
if ((tag->_bounce_thresh != 0 && max_addr >= tag->_bounce_thresh - 1) &&
sys/arch/x86/x86/bus_dma.c
1333
(tag->_bounce_alloc_hi != 0 && max_addr >= tag->_bounce_alloc_hi - 1) &&
sys/arch/x86/x86/bus_dma.c
1334
(min_addr <= tag->_bounce_alloc_lo)) {
sys/arch/x86/x86/bus_dma.c
1335
*newtag = tag;
sys/arch/x86/x86/bus_dma.c
1337
if (tag->_tag_needs_free)
sys/arch/x86/x86/bus_dma.c
1338
(tag->_tag_needs_free)++;
sys/arch/x86/x86/bus_dma.c
1346
**newtag = *tag;
sys/arch/x86/x86/bus_dma.c
1349
if (tag->_bounce_thresh == 0 || max_addr < tag->_bounce_thresh)
sys/arch/x86/x86/bus_dma.c
1351
if (tag->_bounce_alloc_hi == 0 || max_addr < tag->_bounce_alloc_hi)
sys/arch/x86/x86/bus_dma.c
1353
if (min_addr > tag->_bounce_alloc_lo)
sys/arch/x86/x86/bus_dma.c
1360
_bus_dmatag_destroy(bus_dma_tag_t tag)
sys/arch/x86/x86/bus_dma.c
1363
switch (tag->_tag_needs_free) {
sys/arch/x86/x86/bus_dma.c
1367
free(tag, M_DMAMAP); /* last reference to tag */
sys/arch/x86/x86/bus_dma.c
1370
(tag->_tag_needs_free)--; /* one less reference */
sys/arch/x86/x86/bus_dma.c
160
static int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
sys/arch/x86/x86/bus_dma.c
163
static void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/x86/x86/bus_dma.c
165
static int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/x86/x86/bus_dma.c
167
static void _bus_dmamem_unmap(bus_dma_tag_t tag, void *kva, size_t size);
sys/arch/x86/x86/bus_dma.c
168
static paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
sys/arch/x86/x86/bus_dma.c
171
static int _bus_dmatag_subregion(bus_dma_tag_t tag, bus_addr_t min_addr,
sys/arch/x86/x86/bus_dma.c
173
static void _bus_dmatag_destroy(bus_dma_tag_t tag);
sys/arch/x86/x86/bus_dma.c
185
static int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
sys/arch/x86/x86/bus_space.c
877
bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/arch/x86/x86/bus_space.c
882
if (x86_bus_space_is_io(tag))
sys/arch/x86/x86/bus_space.c
929
bus_space_vaddr(bus_space_tag_t tag, bus_space_handle_t bsh)
sys/arch/x86/x86/bus_space.c
932
return x86_bus_space_is_mem(tag) ? (void *)bsh : NULL;
sys/arch/x86/x86/convert_xmm_s87.c
101
tag <<= 2;
sys/arch/x86/x86/convert_xmm_s87.c
109
tag |= 1; /* Zero */
sys/arch/x86/x86/convert_xmm_s87.c
111
tag |= 2; /* Denormal */
sys/arch/x86/x86/convert_xmm_s87.c
113
tag |= 2; /* Infinity or NaN */
sys/arch/x86/x86/convert_xmm_s87.c
115
tag |= 3; /* Empty */
sys/arch/x86/x86/convert_xmm_s87.c
118
s87->s87_tw = tag;
sys/arch/x86/x86/convert_xmm_s87.c
124
unsigned int tag, ab_tag;
sys/arch/x86/x86/convert_xmm_s87.c
149
tag = s87->s87_tw; /* 0b11 => unused */
sys/arch/x86/x86/convert_xmm_s87.c
150
if (tag == 0xffff) {
sys/arch/x86/x86/convert_xmm_s87.c
157
tag ^= 0xffff; /* So 0b00 is unused */
sys/arch/x86/x86/convert_xmm_s87.c
158
tag |= tag >> 1; /* Look at even bits */
sys/arch/x86/x86/convert_xmm_s87.c
162
ab_tag |= tag & i;
sys/arch/x86/x86/convert_xmm_s87.c
163
while ((tag >>= 1) >= (i <<= 1));
sys/arch/x86/x86/convert_xmm_s87.c
42
unsigned int tag, ab_tag, st;
sys/arch/x86/x86/convert_xmm_s87.c
99
tag = 0;
sys/arch/x86/x86/mtrr_i686.c
142
i686_mtrr_dump(const char *tag)
sys/arch/x86/x86/mtrr_i686.c
148
tag, mtrr_raw[i].msraddr,
sys/arch/x86/x86/mtrr_i686.c
60
static void i686_mtrr_dump(const char *tag);
sys/arch/x86/x86/x86_machdep.c
1440
u_quad_t value, int tag)
sys/arch/x86/x86/x86_machdep.c
1445
CTL_MACHDEP, tag, CTL_EOL);
sys/arch/xen/x86/consinit.c
232
bus_space_tag_t tag = x86_bus_space_io;
sys/arch/xen/x86/consinit.c
234
com_kgdb_attach(tag, comkgdbaddr, comkgdbrate, COM_FREQ,
sys/arch/xen/xen/xpci_xenbus.c
382
pcitag_t tag;
sys/arch/xen/xen/xpci_xenbus.c
386
tag.mode1 = (bus << 8) | (device << 3) | (function << 0);
sys/arch/xen/xen/xpci_xenbus.c
387
return tag;
sys/arch/xen/xen/xpci_xenbus.c
391
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag,
sys/arch/xen/xen/xpci_xenbus.c
395
*bp = (tag.mode1 >> 8) & 0xff;
sys/arch/xen/xen/xpci_xenbus.c
397
*dp = (tag.mode1 >> 3) & 0x1f;
sys/arch/xen/xen/xpci_xenbus.c
399
*fp = (tag.mode1 >> 0) & 0x7;
sys/arch/xen/xen/xpci_xenbus.c
429
xpci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg, int size,
sys/arch/xen/xen/xpci_xenbus.c
438
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/xen/xen/xpci_xenbus.c
454
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/arch/xen/xen/xpci_xenbus.c
458
xpci_conf_read(pc, tag, reg, 4, &v);
sys/arch/xen/xen/xpci_xenbus.c
463
xpci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, int size,
sys/arch/xen/xen/xpci_xenbus.c
472
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/arch/xen/xen/xpci_xenbus.c
488
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/arch/xen/xen/xpci_xenbus.c
490
xpci_conf_write(pc, tag, reg, 4, data);
sys/arch/xen/xen/xpci_xenbus.c
506
pcitag_t tag;
sys/arch/xen/xen/xpci_xenbus.c
553
tag = pci_make_tag(pc, busn, devn, funcn);
sys/arch/xen/xen/xpci_xenbus.c
554
err = pci_probe_device1(sc, tag, match, pap);
sys/arch/xen/xen/xpci_xenbus.c
563
pcitag_t tag;
sys/arch/xen/xen/xpci_xenbus.c
579
tag = pci_make_tag(pc, sc->sc_bus, devn, funcn);
sys/arch/xen/xen/xpci_xenbus.c
581
if (xpci_conf_read(pc, tag, PCI_ID_REG, 4, &csr) != 0)
sys/arch/xen/xen/xpci_xenbus.c
584
if (xpci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG, 4,
sys/arch/xen/xen/xpci_xenbus.c
598
if (xpci_conf_read(pc, tag, reg, 4,
sys/arch/xen/xen/xpci_xenbus.c
614
if (xpci_conf_write(pc, tag,
sys/arch/xen/xen/xpci_xenbus.c
623
err = pci_probe_device1(sc, tag, match, pap);
sys/arch/zaurus/stand/zboot/boot.c
358
int tag;
sys/arch/zaurus/stand/zboot/boot.c
380
consinit(cdp->tag, speed);
sys/arch/zaurus/zaurus/kloader_machdep.c
126
(*bootinfop)(kbi, tag);
sys/arch/zaurus/zaurus/kloader_machdep.c
75
struct kloader_bootinfo *kbi, struct kloader_page_tag *tag)
sys/compat/linux/arch/i386/linux_machdep.h
111
unsigned long tag;
sys/compat/linux/arch/i386/linux_machdep.h
60
uint32_t tag;
sys/compat/linux32/arch/amd64/linux32_signal.h
135
u_int32_t tag;
sys/crypto/aes/aes_ccm.c
331
aes_ccm_verify(struct aes_ccm *C, const void *tag)
sys/crypto/aes/aes_ccm.c
337
result = consttime_memequal(tag, expected, C->M);
sys/crypto/aes/aes_ccm.c
380
const uint8_t tag[16];
sys/crypto/aes/aes_ccm.c
394
.tag = {0x17,0xe8,0xd1,0x2c,0xfd, 0xf9,0x26,0xe0},
sys/crypto/aes/aes_ccm.c
412
.tag = {0xa0,0x91,0xd5,0x6e, 0x10,0x40,0x09,0x16},
sys/crypto/aes/aes_ccm.c
430
.tag = {0x4a,0xda,0xa7,0x6f, 0xbd,0x9f,0xb0,0xc5},
sys/crypto/aes/aes_ccm.c
449
.tag = {0x96,0xc8,0x61,0xb9, 0xc9,0xe6,0x1e,0xf1},
sys/crypto/aes/aes_ccm.c
467
.tag = {0x51,0xe8,0x3f,0x07, 0x7d,0x9c,0x2d,0x93},
sys/crypto/aes/aes_ccm.c
485
.tag = {0x40,0x5a,0x04,0x43, 0xac,0x91,0xcb,0x94},
sys/crypto/aes/aes_ccm.c
503
.tag = {0x6d,0xce,0x9e,0x82, 0xef,0xa1,0x6d,0xa6, 0x20,0x59},
sys/crypto/aes/aes_ccm.c
520
uint8_t tag[16 + 2], *tagp = tag + 1;
sys/crypto/aes/aes_ccm.c
546
if (memcmp(tagp, T[i].tag, T[i].M)) {
sys/crypto/aes/aes_ccm.c
561
if (!aes_ccm_verify(C, T[i].tag)) {
sys/crypto/aes/aes_ccm.c
574
memcpy(tagp, T[i].tag, T[i].M);
sys/crypto/aes/aes_ccm_mbuf.c
43
void *tag)
sys/crypto/aes/aes_ccm_mbuf.c
61
aes_ccm_tag(C, tag);
sys/crypto/aes/aes_ccm_mbuf.c
66
const void *tag)
sys/crypto/aes/aes_ccm_mbuf.c
88
if (aes_ccm_verify(C, tag))
sys/dev/acpi/acpi_display.c
469
pcitag_t tag;
sys/dev/acpi/acpi_display.c
494
tag = pci_make_tag(aa->aa_pc, ap->ap_bus,
sys/dev/acpi/acpi_display.c
497
id = pci_conf_read(aa->aa_pc, tag, PCI_ID_REG);
sys/dev/acpi/acpi_display.c
502
class = pci_conf_read(aa->aa_pc, tag, PCI_CLASS_REG);
sys/dev/acpi/acpi_i2c.c
271
i2c_tag_t tag = context->tag;
sys/dev/acpi/acpi_i2c.c
387
iic_acquire_bus(tag, flags);
sys/dev/acpi/acpi_i2c.c
388
buf[0] = iic_exec(tag, op, i2c_addr,
sys/dev/acpi/acpi_i2c.c
390
iic_release_bus(tag, flags);
sys/dev/acpi/acpi_i2c.c
408
acpi_i2c_register(device_t dev, i2c_tag_t tag)
sys/dev/acpi/acpi_i2c.c
416
context->tag = tag;
sys/dev/acpi/acpi_i2c.c
56
i2c_tag_t tag;
sys/dev/acpi/acpi_mcfg.c
435
acpimcfg_ext_conf_is_aliased(pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/acpi/acpi_mcfg.c
440
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/acpi/acpi_mcfg.c
442
if (pci_conf_read(pc, tag, i) != id)
sys/dev/acpi/acpi_mcfg.c
471
pcitag_t tag;
sys/dev/acpi/acpi_mcfg.c
488
tag = pci_make_tag(pc, bus, dev, func);
sys/dev/acpi/acpi_mcfg.c
503
mb->last_probed = tag;
sys/dev/acpi/acpi_mcfg.c
505
reg = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/acpi/acpi_mcfg.c
514
((reg = pci_conf_read(pc, tag, PCI_CONF_SIZE)) == (pcireg_t)-1)
sys/dev/acpi/acpi_mcfg.c
516
|| (alias = acpimcfg_ext_conf_is_aliased(pc, tag)))) {
sys/dev/acpi/acpi_mcfg.c
554
pcitag_t tag;
sys/dev/acpi/acpi_mcfg.c
609
tag = pci_make_tag(pc, 0, 0, 1);
sys/dev/acpi/acpi_mcfg.c
610
reg = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/acpi/acpi_mcfg.c
614
reg = pci_conf_read(pc, tag, 0x54);
sys/dev/acpi/acpi_mcfg.c
615
pci_conf_write(pc, tag, 0x54, reg | 0x20);
sys/dev/acpi/acpi_mcfg.c
621
pci_conf_write(pc, tag, 0x54, reg);
sys/dev/acpi/acpi_mcfg.c
895
acpimcfg_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t *data)
sys/dev/acpi/acpi_mcfg.c
909
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/dev/acpi/acpi_mcfg.c
932
acpimcfg_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/dev/acpi/acpi_mcfg.c
944
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/dev/acpi/acpi_mcfg.c
961
acpimcfg_conf_valid(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/dev/acpi/acpi_mcfg.c
970
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/dev/acpi/acpi_pci.c
329
pcitag_t tag;
sys/dev/acpi/acpi_pci.c
335
tag = pci_make_tag(pc, bus, device, function);
sys/dev/acpi/acpi_pci.c
338
val = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/acpi/acpi_pci.c
345
val = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/dev/acpi/acpi_pci.c
351
val = pci_conf_read(pc, tag, PCI_BRIDGE_BUS_REG);
sys/dev/acpi/acpi_pci.c
497
pci_decompose_tag(args->pc, args->tag, &b, &d, &f);
sys/dev/acpi/acpi_pci_link.c
567
pcitag_t tag;
sys/dev/acpi/acpi_pci_link.c
569
tag = pci_make_tag(pc, bus, device, 0);
sys/dev/acpi/acpi_pci_link.c
571
value = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/dev/acpi/acpi_pci_link.c
581
tag = pci_make_tag(pc, bus, device, func);
sys/dev/acpi/acpi_pci_link.c
582
value = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/acpi/acpi_pci_link.c
585
value = pci_conf_read(pc, tag,
sys/dev/acpi/acpi_pci_link.c
599
link->l_devices[link->l_dev_count] = tag;
sys/dev/acpi/acpi_pci_link.c
610
pcitag_t tag;
sys/dev/acpi/acpi_pci_link.c
612
tag = pci_make_tag(pc, bus, device, 0);
sys/dev/acpi/acpi_pci_link.c
614
value = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/dev/acpi/acpi_pci_link.c
624
tag = pci_make_tag(pc, bus, device, func);
sys/dev/acpi/acpi_pci_link.c
625
value = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/acpi/acpi_pci_link.c
628
value = pci_conf_read(pc, tag,
sys/dev/acpi/acpica/OsdHardware.c
217
pcitag_t tag;
sys/dev/acpi/acpica/OsdHardware.c
225
tag = pci_make_tag(pc, PciId->Bus, PciId->Device, PciId->Function);
sys/dev/acpi/acpica/OsdHardware.c
226
tmp = pci_conf_read(pc, tag, Register & ~3);
sys/dev/acpi/acpica/OsdHardware.c
262
pcitag_t tag;
sys/dev/acpi/acpica/OsdHardware.c
266
tag = pci_make_tag(pc, PciId->Bus, PciId->Device, PciId->Function);
sys/dev/acpi/acpica/OsdHardware.c
270
tmp = pci_conf_read(pc, tag, Register & ~3);
sys/dev/acpi/acpica/OsdHardware.c
276
tmp = pci_conf_read(pc, tag, Register & ~3);
sys/dev/acpi/acpica/OsdHardware.c
289
pci_conf_write(pc, tag, Register & ~3, tmp);
sys/dev/cardbus/ahc_cardbus.c
166
ahc->tag = bst;
sys/dev/cardbus/ahc_cardbus.c
263
ahc->tag, ahc->bsh, csc->sc_size);
sys/dev/cardbus/cardbus.c
1000
if (!cardbus_get_capability(cc, cf, tag, PCI_CAP_PWRMGMT, &offset, &value))
sys/dev/cardbus/cardbus.c
1003
return cardbus_get_powerstate_int(ct, tag, state, offset);
sys/dev/cardbus/cardbus.c
1007
cardbus_set_powerstate_int(cardbus_devfunc_t ct, pcitag_t tag,
sys/dev/cardbus/cardbus.c
1018
value = cardbus_conf_read(cc, cf, tag, offset + PCI_PMCSR);
sys/dev/cardbus/cardbus.c
1053
cardbus_conf_write(cc, cf, tag, offset + PCI_PMCSR, value);
sys/dev/cardbus/cardbus.c
1063
cardbus_set_powerstate(cardbus_devfunc_t ct, pcitag_t tag, pcireg_t state)
sys/dev/cardbus/cardbus.c
1070
if (!cardbus_get_capability(cc, cf, tag, PCI_CAP_PWRMGMT, &offset,
sys/dev/cardbus/cardbus.c
1074
return cardbus_set_powerstate_int(ct, tag, state, offset, value);
sys/dev/cardbus/cardbus.c
1138
pcitag_t tag, struct cardbus_conf_state *pcs)
sys/dev/cardbus/cardbus.c
1143
pcs->reg[off] = cardbus_conf_read(cc, cf, tag, (off * 4));
sys/dev/cardbus/cardbus.c
1148
pcitag_t tag, struct cardbus_conf_state *pcs)
sys/dev/cardbus/cardbus.c
1154
val = cardbus_conf_read(cc, cf, tag, (off * 4));
sys/dev/cardbus/cardbus.c
1156
cardbus_conf_write(cc, cf,tag, (off * 4), pcs->reg[off]);
sys/dev/cardbus/cardbus.c
157
pcitag_t tag = ca->ca_tag;
sys/dev/cardbus/cardbus.c
178
u_int32_t e = (*cf->cardbus_conf_read)(cc, tag, i);
sys/dev/cardbus/cardbus.c
212
cardbus_conf_write(cc, cf, tag, reg, 0);
sys/dev/cardbus/cardbus.c
230
exrom = cardbus_conf_read(cc, cf, tag, reg);
sys/dev/cardbus/cardbus.c
231
cardbus_conf_write(cc, cf, tag, reg, exrom | 1);
sys/dev/cardbus/cardbus.c
233
command = cardbus_conf_read(cc, cf, tag,
sys/dev/cardbus/cardbus.c
235
cardbus_conf_write(cc, cf, tag,
sys/dev/cardbus/cardbus.c
257
exrom = cardbus_conf_read(cc, cf, tag, reg);
sys/dev/cardbus/cardbus.c
258
cardbus_conf_write(cc, cf, tag, reg, exrom & ~1);
sys/dev/cardbus/cardbus.c
261
command = cardbus_conf_read(cc, cf, tag,
sys/dev/cardbus/cardbus.c
263
cardbus_conf_write(cc, cf, tag,
sys/dev/cardbus/cardbus.c
290
command = cardbus_conf_read(cc, cf, tag,
sys/dev/cardbus/cardbus.c
292
cardbus_conf_write(cc, cf, tag, PCI_COMMAND_STATUS_REG,
sys/dev/cardbus/cardbus.c
294
cardbus_conf_write(cc, cf, tag, reg, 0);
sys/dev/cardbus/cardbus.c
442
pcitag_t tag;
sys/dev/cardbus/cardbus.c
467
tag = cardbus_make_tag(cc, cf, sc->sc_bus, function);
sys/dev/cardbus/cardbus.c
479
id = cardbus_conf_read(cc, cf, tag, PCI_ID_REG);
sys/dev/cardbus/cardbus.c
498
bhlc = cardbus_conf_read(cc, cf, tag, PCI_BHLC_REG);
sys/dev/cardbus/cardbus.c
514
tag = cardbus_make_tag(cc, cf, sc->sc_bus, function);
sys/dev/cardbus/cardbus.c
516
id = cardbus_conf_read(cc, cf, tag, PCI_ID_REG);
sys/dev/cardbus/cardbus.c
517
class = cardbus_conf_read(cc, cf, tag, PCI_CLASS_REG);
sys/dev/cardbus/cardbus.c
518
cis_ptr = cardbus_conf_read(cc, cf, tag, CARDBUS_CIS_REG);
sys/dev/cardbus/cardbus.c
532
cardbus_conf_write(cc, cf, tag, PCI_BAR0, 0);
sys/dev/cardbus/cardbus.c
533
cardbus_conf_write(cc, cf, tag, PCI_BAR1, 0);
sys/dev/cardbus/cardbus.c
534
cardbus_conf_write(cc, cf, tag, PCI_BAR2, 0);
sys/dev/cardbus/cardbus.c
535
cardbus_conf_write(cc, cf, tag, PCI_BAR3, 0);
sys/dev/cardbus/cardbus.c
536
cardbus_conf_write(cc, cf, tag, PCI_BAR4, 0);
sys/dev/cardbus/cardbus.c
537
cardbus_conf_write(cc, cf, tag, PCI_BAR5, 0);
sys/dev/cardbus/cardbus.c
538
cardbus_conf_write(cc, cf, tag, CARDBUS_ROM_REG, 0);
sys/dev/cardbus/cardbus.c
541
bhlc = cardbus_conf_read(cc, cf, tag, PCI_BHLC_REG);
sys/dev/cardbus/cardbus.c
542
icr = cardbus_conf_read(cc, cf, tag, PCI_INTERRUPT_REG);
sys/dev/cardbus/cardbus.c
571
cardbus_conf_write(cc, cf, tag, PCI_BHLC_REG, bhlc);
sys/dev/cardbus/cardbus.c
572
bhlc = cardbus_conf_read(cc, cf, tag, PCI_BHLC_REG);
sys/dev/cardbus/cardbus.c
600
ca.ca_tag = tag;
sys/dev/cardbus/cardbus.c
829
pcitag_t tag;
sys/dev/cardbus/cardbus.c
840
tag = cardbus_make_tag(cc, cf, sc->sc_bus, func);
sys/dev/cardbus/cardbus.c
842
command = cardbus_conf_read(cc, cf, tag, PCI_COMMAND_STATUS_REG);
sys/dev/cardbus/cardbus.c
846
cardbus_conf_write(cc, cf, tag, PCI_COMMAND_STATUS_REG, command);
sys/dev/cardbus/cardbus.c
849
Cardbus_conf_write(ct, tag, PCI_BHLC_REG, ct->ct_bhlc);
sys/dev/cardbus/cardbus.c
882
pcitag_t tag, int capid, int *offset, pcireg_t *value)
sys/dev/cardbus/cardbus.c
887
reg = cardbus_conf_read(cc, cf, tag, PCI_COMMAND_STATUS_REG);
sys/dev/cardbus/cardbus.c
891
ofs = PCI_CAPLIST_PTR(cardbus_conf_read(cc, cf, tag,
sys/dev/cardbus/cardbus.c
898
reg = cardbus_conf_read(cc, cf, tag, ofs);
sys/dev/cardbus/cardbus.c
971
cardbus_get_powerstate_int(cardbus_devfunc_t ct, pcitag_t tag,
sys/dev/cardbus/cardbus.c
978
value = cardbus_conf_read(cc, cf, tag, offset + PCI_PMCSR);
sys/dev/cardbus/cardbus.c
993
cardbus_get_powerstate(cardbus_devfunc_t ct, pcitag_t tag, pcireg_t *state)
sys/dev/cardbus/cardbus_exrom.c
157
pci_exrom_parse_data_structure(bus_space_tag_t tag,
sys/dev/cardbus/cardbus_exrom.c
163
bus_space_read_region_1(tag, handle, dataptr, hdr, sizeof(hdr));
sys/dev/cardbus/cardbus_exrom.c
178
bus_space_read_region_1(tag, handle, dataptr + 0x18 + offset,
sys/dev/cardbus/cardbus_map.c
103
address = cardbus_conf_read(cc, cf, tag, reg);
sys/dev/cardbus/cardbus_map.c
104
cardbus_conf_write(cc, cf, tag, reg, 0xffffffff);
sys/dev/cardbus/cardbus_map.c
105
mask = cardbus_conf_read(cc, cf, tag, reg);
sys/dev/cardbus/cardbus_map.c
106
cardbus_conf_write(cc, cf, tag, reg, address);
sys/dev/cardbus/cardbus_map.c
142
cardbus_mem_find(cardbus_chipset_tag_t cc, cardbus_function_tag_t cf, pcitag_t tag, int reg, pcireg_t type, bus_addr_t *basep, bus_size_t *sizep, int *flagsp)
sys/dev/cardbus/cardbus_map.c
163
address = cardbus_conf_read(cc, cf, tag, reg);
sys/dev/cardbus/cardbus_map.c
164
cardbus_conf_write(cc, cf, tag, reg, 0xffffffff);
sys/dev/cardbus/cardbus_map.c
165
mask = cardbus_conf_read(cc, cf, tag, reg);
sys/dev/cardbus/cardbus_map.c
166
cardbus_conf_write(cc, cf, tag, reg, address);
sys/dev/cardbus/cardbus_map.c
240
pcitag_t tag;
sys/dev/cardbus/cardbus_map.c
245
tag = cardbus_make_tag(cc, cf, sc->sc_bus, func);
sys/dev/cardbus/cardbus_map.c
251
if (cardbus_io_find(cc, cf, tag, reg, type, &base, &size, &flags)) {
sys/dev/cardbus/cardbus_map.c
257
if (cardbus_mem_find(cc, cf, tag, reg, type, &base, &size, &flags)){
sys/dev/cardbus/cardbus_map.c
273
cardbus_conf_write(cc, cf, tag, reg, base);
sys/dev/cardbus/cardbus_map.c
311
cardbus_mapreg_unmap(struct cardbus_softc *sc, int func, int reg, bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t size)
sys/dev/cardbus/cardbus_map.c
319
if (sc->sc_iot == tag) {
sys/dev/cardbus/cardbus_map.c
323
} else if (sc->sc_memt == tag) {
sys/dev/cardbus/cardbus_map.c
73
pcitag_t tag,
sys/dev/cardbus/cardbusvar.h
289
#define Cardbus_mapreg_unmap(ct, reg, tag, handle, size) \
sys/dev/cardbus/cardbusvar.h
290
cardbus_mapreg_unmap((ct)->ct_sc, (ct->ct_func), (reg), (tag), (handle), (size))
sys/dev/cardbus/cardbusvar.h
295
#define Cardbus_conf_read(ct, tag, offs) (*(ct)->ct_cf->cardbus_conf_read)((ct)->ct_cc, (tag), (offs))
sys/dev/cardbus/cardbusvar.h
296
#define cardbus_conf_read(cc, cf, tag, offs) ((cf)->cardbus_conf_read)((cc), (tag), (offs))
sys/dev/cardbus/cardbusvar.h
297
#define Cardbus_conf_write(ct, tag, offs, val) (*(ct)->ct_cf->cardbus_conf_write)((ct)->ct_cc, (tag), (offs), (val))
sys/dev/cardbus/cardbusvar.h
298
#define cardbus_conf_write(cc, cf, tag, offs, val) ((cf)->cardbus_conf_write)((cc), (tag), (offs), (val))
sys/dev/cardbus/if_fxp_cardbus.c
128
csc->tag = ca->ca_tag;
sys/dev/cardbus/if_fxp_cardbus.c
184
pcitag_t tag = csc->tag;
sys/dev/cardbus/if_fxp_cardbus.c
186
command = Cardbus_conf_read(csc->ct, tag, PCI_COMMAND_STATUS_REG);
sys/dev/cardbus/if_fxp_cardbus.c
188
Cardbus_conf_write(csc->ct, tag,
sys/dev/cardbus/if_fxp_cardbus.c
192
Cardbus_conf_write(csc->ct, tag,
sys/dev/cardbus/if_fxp_cardbus.c
198
Cardbus_conf_write(csc->ct, tag, PCI_COMMAND_STATUS_REG, command);
sys/dev/cardbus/if_fxp_cardbus.c
88
pcitag_t tag;
sys/dev/cardbus/if_rtw_cardbus.c
363
pcitag_t tag = csc->sc_tag;
sys/dev/cardbus/if_rtw_cardbus.c
367
(void)cardbus_set_powerstate(ct, tag, PCI_PWR_D0);
sys/dev/cardbus/if_rtw_cardbus.c
372
bhlc = Cardbus_conf_read(ct, tag, PCI_BHLC_REG);
sys/dev/cardbus/if_rtw_cardbus.c
377
Cardbus_conf_write(ct, tag, PCI_BHLC_REG, bhlc);
sys/dev/cardbus/if_rtw_cardbus.c
381
csr = Cardbus_conf_read(ct, tag, PCI_COMMAND_STATUS_REG);
sys/dev/cardbus/if_rtw_cardbus.c
384
Cardbus_conf_write(ct, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/cardbus/rbus_ppb.c
154
rbus_do_header_fixup(pci_chipset_tag_t pc, pcitag_t tag, void *context)
sys/dev/cardbus/rbus_ppb.c
161
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/dev/cardbus/rbus_ppb.c
163
intr = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/dev/cardbus/rbus_ppb.c
167
pci_conf_write(pc, tag, PCI_INTERRUPT_REG, intr);
sys/dev/cardbus/rbus_ppb.c
447
rbus_pci_phys_countspace(pci_chipset_tag_t pc, pcitag_t tag, void *context)
sys/dev/cardbus/rbus_ppb.c
453
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/dev/cardbus/rbus_ppb.c
459
pciaddr_resource_manage(pc, tag,
sys/dev/cardbus/rbus_ppb.c
465
rbus_do_phys_countspace(pci_chipset_tag_t pc, pcitag_t tag, int mapreg, void *ctx, int type, bus_addr_t *addr, bus_size_t size)
sys/dev/cardbus/rbus_ppb.c
471
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/dev/cardbus/rbus_ppb.c
489
rbus_pci_phys_allocate(pci_chipset_tag_t pc, pcitag_t tag, void *context)
sys/dev/cardbus/rbus_ppb.c
495
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/dev/cardbus/rbus_ppb.c
501
pciaddr_resource_manage(pc, tag,
sys/dev/cardbus/rbus_ppb.c
505
command = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/cardbus/rbus_ppb.c
507
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, command);
sys/dev/cardbus/rbus_ppb.c
511
rbus_do_phys_allocate(pci_chipset_tag_t pc, pcitag_t tag, int mapreg, void *ctx, int type, bus_addr_t *addr, bus_size_t size)
sys/dev/cardbus/rbus_ppb.c
527
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/dev/cardbus/rbus_ppb.c
565
pci_conf_write(pc, tag, mapreg, *addr);
sys/dev/cardbus/rbus_ppb.c
576
pci_conf_write(pc, tag, mapreg, *addr);
sys/dev/cardbus/rbus_ppb.c
583
if(rbus_ppb_debug) { pciaddr_print_devid(pc, tag); }
sys/dev/cardbus/rbus_ppb.c
588
if (pciaddr_ioaddr(pci_conf_read(pc, tag, mapreg)) != *addr) {
sys/dev/cardbus/rbus_ppb.c
589
pci_conf_write(pc, tag, mapreg, 0); /* clear */
sys/dev/cardbus/uhci_cardbus.c
120
sc->sc_tag = tag;
sys/dev/cardbus/uhci_cardbus.c
124
csr = Cardbus_conf_read(ct, tag, PCI_COMMAND_STATUS_REG);
sys/dev/cardbus/uhci_cardbus.c
125
Cardbus_conf_write(ct, tag, PCI_COMMAND_STATUS_REG,
sys/dev/cardbus/uhci_cardbus.c
139
Cardbus_conf_write(ct, tag, PCI_LEGSUP, PCI_LEGSUP_USBPIRQDEN);
sys/dev/cardbus/uhci_cardbus.c
141
switch(Cardbus_conf_read(ct, tag, PCI_USBREV) & PCI_USBREV_MASK) {
sys/dev/cardbus/uhci_cardbus.c
99
pcitag_t tag = ca->ca_tag;
sys/dev/dev_verbose.h
100
#define DEV_VERBOSE_DEFINE(tag) \
sys/dev/dev_verbose.h
101
DEV_VERBOSE_KERNEL_DECLARE(tag) \
sys/dev/dev_verbose.h
102
struct tag ## _findvendor_hook_t tag ## _findvendor_hook; \
sys/dev/dev_verbose.h
103
struct tag ## _findproduct_hook_t tag ## _findproduct_hook; \
sys/dev/dev_verbose.h
104
int tag ## verbose_loaded = 0; \
sys/dev/dev_verbose.h
107
tag ## _load_verbose(void) \
sys/dev/dev_verbose.h
110
if (tag ## verbose_loaded == 0) \
sys/dev/dev_verbose.h
111
module_autoload(# tag "verbose", MODULE_CLASS_DRIVER); \
sys/dev/dev_verbose.h
115
tag ## _findvendor(char *buf, size_t len, uint32_t vendor) \
sys/dev/dev_verbose.h
119
tag ## _load_verbose(); \
sys/dev/dev_verbose.h
120
MODULE_HOOK_CALL(tag ## _findvendor_hook, (buf, len, vendor), \
sys/dev/dev_verbose.h
121
(snprintf(buf, len, tag ## _id1_format, vendor), NULL), \
sys/dev/dev_verbose.h
127
tag ## _findproduct(char *buf, size_t len, uint32_t vendor, \
sys/dev/dev_verbose.h
132
tag ## _load_verbose(); \
sys/dev/dev_verbose.h
133
MODULE_HOOK_CALL(tag ## _findproduct_hook, \
sys/dev/dev_verbose.h
135
(snprintf(buf, len, tag ## _id2_format, product), NULL), \
sys/dev/dev_verbose.h
142
#define DEV_VERBOSE_DEFINE(tag) \
sys/dev/dev_verbose.h
143
DEV_VERBOSE_COMMON_DEFINE(tag) \
sys/dev/dev_verbose.h
144
const char *tag ## _findvendor(char *buf, size_t len, uint32_t vendor) \
sys/dev/dev_verbose.h
147
return tag ## _findvendor_real(buf, len, vendor); \
sys/dev/dev_verbose.h
150
const char *tag ## _findproduct(char *buf, size_t len, uint32_t vendor, \
sys/dev/dev_verbose.h
154
return tag ## _findproduct_real(buf, len, vendor, product); \
sys/dev/dev_verbose.h
37
#define DEV_VERBOSE_COMMON_DEFINE(tag) \
sys/dev/dev_verbose.h
39
tag ## _findvendor_real(char *buf, size_t len, uint32_t vendor) \
sys/dev/dev_verbose.h
41
return dev_findvendor(buf, len, tag ## _words, \
sys/dev/dev_verbose.h
42
__arraycount(tag ## _words), tag ## _vendors, \
sys/dev/dev_verbose.h
43
__arraycount(tag ## _vendors), vendor, tag ## _id1_format); \
sys/dev/dev_verbose.h
47
tag ## _findproduct_real(char *buf, size_t len, uint32_t vendor, \
sys/dev/dev_verbose.h
50
return dev_findproduct(buf, len, tag ## _words, \
sys/dev/dev_verbose.h
51
__arraycount(tag ## _words), tag ## _products, \
sys/dev/dev_verbose.h
52
__arraycount(tag ## _products), vendor, product, \
sys/dev/dev_verbose.h
53
tag ## _id2_format); \
sys/dev/dev_verbose.h
58
#define DEV_VERBOSE_KERNEL_DECLARE(tag) \
sys/dev/dev_verbose.h
59
MODULE_HOOK(tag ## _findvendor_hook, const char *, \
sys/dev/dev_verbose.h
61
MODULE_HOOK(tag ## _findproduct_hook, const char *, \
sys/dev/dev_verbose.h
63
extern int tag ## verbose_loaded;
sys/dev/dev_verbose.h
65
#define DEV_VERBOSE_MODULE_DEFINE(tag, deps) \
sys/dev/dev_verbose.h
66
DEV_VERBOSE_COMMON_DEFINE(tag) \
sys/dev/dev_verbose.h
67
DEV_VERBOSE_KERNEL_DECLARE(tag) \
sys/dev/dev_verbose.h
70
tag ## verbose_modcmd(modcmd_t cmd, void *arg) \
sys/dev/dev_verbose.h
75
MODULE_HOOK_SET(tag ## _findvendor_hook, \
sys/dev/dev_verbose.h
76
tag ## _findvendor_real); \
sys/dev/dev_verbose.h
77
MODULE_HOOK_SET(tag ## _findproduct_hook, \
sys/dev/dev_verbose.h
78
tag ## _findproduct_real); \
sys/dev/dev_verbose.h
79
tag ## verbose_loaded = 1; \
sys/dev/dev_verbose.h
82
tag ## verbose_loaded = 0; \
sys/dev/dev_verbose.h
83
MODULE_HOOK_UNSET(tag ## _findproduct_hook); \
sys/dev/dev_verbose.h
84
MODULE_HOOK_UNSET(tag ## _findvendor_hook); \
sys/dev/dev_verbose.h
90
MODULE(MODULE_CLASS_DRIVER, tag ## verbose, deps)
sys/dev/dev_verbose.h
94
#define DEV_VERBOSE_DECLARE(tag) \
sys/dev/dev_verbose.h
95
extern const char * tag ## _findvendor(char *, size_t, uint32_t); \
sys/dev/dev_verbose.h
96
extern const char * tag ## _findproduct(char *, size_t, uint32_t, uint32_t)
sys/dev/dkwedge/dkwedge_bsdlabel.c
154
#define FSTYPE_TO_STR_CASE(tag, number, name, fsck, mount) \
sys/dev/dkwedge/dkwedge_bsdlabel.c
155
case __CONCAT(FS_,tag): str = __CONCAT(DKW_PTYPE_,tag); break;
sys/dev/eisa/ahc_eisa.c
143
ahc->tag = iot;
sys/dev/fdt/fdt_i2c.c
82
fdtbus_register_i2c_controller(device_t dev, i2c_tag_t tag)
sys/dev/fdt/fdt_i2c.c
88
i2c->i2c_tag = tag;
sys/dev/hdaudio/hdafg.c
3190
int tag, chn, maxchan, c;
sys/dev/hdaudio/hdafg.c
3217
tag = hdaudio_stream_tag(sc->sc_audiodev.ad_playback);
sys/dev/hdaudio/hdafg.c
3222
tag = hdaudio_stream_tag(sc->sc_audiodev.ad_capture);
sys/dev/hdaudio/hdafg.c
3226
tag = 0;
sys/dev/hdaudio/hdafg.c
3247
c = (tag << 4) | chn;
sys/dev/hdaudio/hdafg.c
4388
hdafg_unsol(device_t self, uint8_t tag)
sys/dev/hdaudio/hdafg.c
4394
switch (tag) {
sys/dev/hdaudio/hdafg.c
4411
hda_print(sc, "unsol: tag=%u\n", tag);
sys/dev/hyperv/if_hvn.c
1555
uint16_t tag;
sys/dev/hyperv/if_hvn.c
1557
tag = vlan_get_tag(m);
sys/dev/hyperv/if_hvn.c
1558
vlan = NDIS_VLAN_INFO_MAKE(EVL_VLANOFTAG(tag),
sys/dev/hyperv/if_hvn.c
1559
EVL_PRIOFTAG(tag), EVL_CFIOFTAG(tag));
sys/dev/i2c/adm1026.c
228
adm1026_ident(i2c_tag_t tag, i2c_addr_t addr, int probe_only, uint8_t *rev)
sys/dev/i2c/adm1026.c
235
err = adm1026_read_reg_int(tag, addr, reg, &val);
sys/dev/i2c/adm1026.c
243
err = adm1026_read_reg_int(tag, addr, reg, rev);
sys/dev/i2c/adm1026.c
887
adm1026_read_reg_int(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint8_t *val)
sys/dev/i2c/adm1026.c
891
if ((err = iic_acquire_bus(tag, 0)) != 0)
sys/dev/i2c/adm1026.c
893
err = iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, ®, 1, val, 1, 0);
sys/dev/i2c/adm1026.c
894
iic_release_bus(tag, 0);
sys/dev/i2c/adt7462.c
1498
adt7462_read_reg(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint8_t *val)
sys/dev/i2c/adt7462.c
1502
if ((err = iic_acquire_bus(tag, 0)) != 0)
sys/dev/i2c/adt7462.c
1504
err = iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, ®, 1, val, 1, 0);
sys/dev/i2c/adt7462.c
1505
iic_release_bus(tag, 0);
sys/dev/i2c/adt7462.c
1510
adt7462_write_reg(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint8_t val)
sys/dev/i2c/adt7462.c
1514
if ((err = iic_acquire_bus(tag, 0)) != 0)
sys/dev/i2c/adt7462.c
1516
err = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, ®, 1, &val, 1, 0);
sys/dev/i2c/adt7462.c
1517
iic_release_bus(tag, 0);
sys/dev/i2c/adt7462.c
228
adt7462_ident(i2c_tag_t tag, i2c_addr_t addr, int probe_only, uint8_t *rev)
sys/dev/i2c/adt7462.c
235
err = adt7462_read_reg(tag, addr, reg, &val);
sys/dev/i2c/adt7462.c
243
err = adt7462_read_reg(tag, addr, reg, &val);
sys/dev/i2c/adt7462.c
251
err = adt7462_read_reg(tag, addr, reg, rev);
sys/dev/i2c/aht20.c
138
aht20_cmd(i2c_tag_t tag, i2c_addr_t addr, uint8_t *cmd,
sys/dev/i2c/aht20.c
144
error = iic_exec(tag,I2C_OP_WRITE_WITH_STOP,addr,cmd,clen,NULL,0,0);
sys/dev/i2c/aht20.c
157
error = iic_exec(tag,I2C_OP_READ_WITH_STOP,addr,NULL,0,buf,blen,0);
sys/dev/i2c/aht20.c
194
aht20_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/aht20.c
200
error = aht20_cmd(tag, addr, ®, 1, buf, 1, 10);
sys/dev/i2c/am2315.c
117
am2315_cmd(i2c_tag_t tag, i2c_addr_t addr, uint8_t dir, uint8_t cmd,
sys/dev/i2c/am2315.c
126
return iic_exec(tag, reg, addr, command,
sys/dev/i2c/am2315.c
146
am2315_poke_m(i2c_tag_t tag, i2c_addr_t addr, const char *name, bool debug)
sys/dev/i2c/am2315.c
151
error = am2315_cmd(tag, addr, AM2315_WRITE_REGISTERS,
sys/dev/i2c/am2315.c
159
error = am2315_cmd(tag, addr, AM2315_READ_REGISTERS,
sys/dev/i2c/at24cxx.c
406
seeprom_bootstrap_read(i2c_tag_t tag, int i2caddr, int offset, int devsize,
sys/dev/i2c/at24cxx.c
419
if (iic_acquire_bus(tag, 0) != 0)
sys/dev/i2c/at24cxx.c
433
if (iic_exec(tag, I2C_OP_READ_WITH_STOP, addr,
sys/dev/i2c/at24cxx.c
435
iic_release_bus(tag, 0);
sys/dev/i2c/at24cxx.c
444
iic_release_bus(tag, 0);
sys/dev/i2c/axppmic.c
582
axppmic_read(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint8_t *val, int flags)
sys/dev/i2c/axppmic.c
584
return iic_smbus_read_byte(tag, addr, reg, val, flags);
sys/dev/i2c/axppmic.c
588
axppmic_write(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint8_t val, int flags)
sys/dev/i2c/axppmic.c
590
return iic_smbus_write_byte(tag, addr, reg, val, flags);
sys/dev/i2c/axppmic.c
594
axppmic_set_voltage(i2c_tag_t tag, i2c_addr_t addr, const struct axppmic_ctrl *c, u_int min, u_int max)
sys/dev/i2c/axppmic.c
626
iic_acquire_bus(tag, 0);
sys/dev/i2c/axppmic.c
627
if ((error = axppmic_read(tag, addr, c->c_voltage_reg, &val, 0)) == 0) {
sys/dev/i2c/axppmic.c
630
error = axppmic_write(tag, addr, c->c_voltage_reg, val, 0);
sys/dev/i2c/axppmic.c
632
iic_release_bus(tag, 0);
sys/dev/i2c/axppmic.c
638
axppmic_get_voltage(i2c_tag_t tag, i2c_addr_t addr, const struct axppmic_ctrl *c, u_int *pvol)
sys/dev/i2c/axppmic.c
646
iic_acquire_bus(tag, 0);
sys/dev/i2c/axppmic.c
647
error = axppmic_read(tag, addr, c->c_voltage_reg, &val, 0);
sys/dev/i2c/axppmic.c
648
iic_release_bus(tag, 0);
sys/dev/i2c/bmx280thpi2c.c
145
bmx280thpi2c_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/bmx280thpi2c.c
151
error = bmx280thpi2c_read_register_direct(tag, addr, reg, buf, 1);
sys/dev/i2c/bmx280thpi2c.c
70
bmx280thpi2c_read_register_direct(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg,
sys/dev/i2c/bmx280thpi2c.c
75
error = iic_exec(tag,I2C_OP_WRITE,addr,®,1,NULL,0,0);
sys/dev/i2c/bmx280thpi2c.c
78
error = iic_exec(tag,I2C_OP_READ_WITH_STOP,addr,NULL,0,
sys/dev/i2c/cx24227.c
111
if ((error = iic_acquire_bus(sc->tag, 0)) != 0)
sys/dev/i2c/cx24227.c
117
error = iic_exec(sc->tag, I2C_OP_WRITE_WITH_STOP, sc->addr,
sys/dev/i2c/cx24227.c
120
iic_release_bus(sc->tag, 0);
sys/dev/i2c/cx24227.c
133
if ((error = iic_acquire_bus(sc->tag, 0)) != 0)
sys/dev/i2c/cx24227.c
136
error = iic_exec(sc->tag, I2C_OP_READ_WITH_STOP, sc->addr,
sys/dev/i2c/cx24227.c
139
iic_release_bus(sc->tag, 0);
sys/dev/i2c/cx24227.c
230
cx24227_open(device_t parent, i2c_tag_t tag, i2c_addr_t addr)
sys/dev/i2c/cx24227.c
238
sc->tag = tag;
sys/dev/i2c/cx24227.c
44
i2c_tag_t tag;
sys/dev/i2c/ddc.c
105
if ((error = iic_acquire_bus(tag, 0)) != 0)
sys/dev/i2c/ddc.c
110
if ((error = iic_exec(tag, I2C_OP_READ_WITH_STOP, DDC_ADDR, wbuf, 1,
sys/dev/i2c/ddc.c
112
iic_release_bus(tag, 0);
sys/dev/i2c/ddc.c
115
iic_release_bus(tag, 0);
sys/dev/i2c/ddc.c
93
ddc_read_edid(i2c_tag_t tag, uint8_t *dest, size_t len)
sys/dev/i2c/ddc.c
95
return ddc_read_edid_block(tag, dest, len, DDC_EDID_START);
sys/dev/i2c/ddc.c
99
ddc_read_edid_block(i2c_tag_t tag, uint8_t *dest, size_t len, uint8_t block)
sys/dev/i2c/ds2482ow.c
106
ds2482_set_pullup(i2c_tag_t tag, i2c_addr_t addr, bool activepullup,
sys/dev/i2c/ds2482ow.c
128
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &cmd, 1, &pu, 1,
sys/dev/i2c/ds2482ow.c
137
ds2482_wait_with_status(i2c_tag_t tag, i2c_addr_t addr, uint8_t *status,
sys/dev/i2c/ds2482ow.c
148
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &xcmd, 1,
sys/dev/i2c/ds2482ow.c
152
error = iic_exec(tag, I2C_OP_READ, addr, NULL, 0, status, 1,
sys/dev/i2c/ds2482ow.c
157
error = iic_exec(tag, I2C_OP_READ, addr,
sys/dev/i2c/ds2482ow.c
171
ds2482_cmd(i2c_tag_t tag, i2c_addr_t addr, uint8_t *cmd,
sys/dev/i2c/ds2482ow.c
192
error = ds2482_wait_with_status(tag, addr, &xbuf,
sys/dev/i2c/ds2482ow.c
197
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr,
sys/dev/i2c/ds2482ow.c
224
error = ds2482_wait_with_status(tag, addr, &xbuf,
sys/dev/i2c/ds2482ow.c
228
error = ds2482_set_pullup(tag, addr,
sys/dev/i2c/ds2482ow.c
234
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr,
sys/dev/i2c/ds2482ow.c
255
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &xcmd, 1,
sys/dev/i2c/ds2482ow.c
258
error = ds2482_wait_with_status(tag, addr, &xbuf,
sys/dev/i2c/ds2482ow.c
267
error = ds2482_set_pullup(tag, addr,
sys/dev/i2c/ds2482ow.c
270
error = iic_exec(tag, I2C_OP_WRITE, addr,
sys/dev/i2c/ds2482ow.c
275
error = ds2482_wait_with_status(tag, addr,
sys/dev/i2c/ds2482ow.c
291
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &xcmd, 1,
sys/dev/i2c/ds2482ow.c
294
error = ds2482_wait_with_status(tag, addr, &xbuf,
sys/dev/i2c/ds2482ow.c
301
error = ds2482_set_pullup(tag, addr,
sys/dev/i2c/ds2482ow.c
304
error = iic_exec(tag, I2C_OP_WRITE, addr,
sys/dev/i2c/ds2482ow.c
309
error = ds2482_wait_with_status(tag, addr,
sys/dev/i2c/ds2482ow.c
329
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &xcmd, 1,
sys/dev/i2c/ds2482ow.c
332
error = ds2482_wait_with_status(tag, addr, &xbuf,
sys/dev/i2c/ds2482ow.c
337
error = ds2482_set_pullup(tag, addr,
sys/dev/i2c/ds2482ow.c
340
error = iic_exec(tag, I2C_OP_WRITE, addr,
sys/dev/i2c/ds2482ow.c
345
error = ds2482_wait_with_status(tag, addr,
sys/dev/i2c/ds2482ow.c
361
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &xcmd, 1,
sys/dev/i2c/ds2482ow.c
364
error = ds2482_wait_with_status(tag, addr, &xbuf,
sys/dev/i2c/ds2482ow.c
369
error = ds2482_set_pullup(tag, addr,
sys/dev/i2c/ds2482ow.c
372
error = iic_exec(tag, I2C_OP_WRITE, addr,
sys/dev/i2c/ds2482ow.c
377
error = ds2482_wait_with_status(tag, addr,
sys/dev/i2c/ds2482ow.c
383
error = iic_exec(tag,
sys/dev/i2c/ds2482ow.c
388
error = iic_exec(tag,
sys/dev/i2c/ds2482ow.c
412
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &xcmd, 1,
sys/dev/i2c/ds2482ow.c
415
error = ds2482_wait_with_status(tag, addr, &xbuf,
sys/dev/i2c/ds2482ow.c
424
error = ds2482_set_pullup(tag, addr,
sys/dev/i2c/ds2482ow.c
427
error = iic_exec(tag, I2C_OP_WRITE, addr,
sys/dev/i2c/ds2482ow.c
432
error = ds2482_wait_with_status(tag, addr,
sys/dev/i2c/ds2482ow.c
508
ds2482_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/ds2482ow.c
515
error = ds2482_cmd(tag, addr, ®, &rbuf, &obuf, 1,
sys/dev/i2c/emcfan.c
108
emcfan_read_registerr(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg,
sys/dev/i2c/emcfan.c
113
error = iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, ®, 1, res, 1, 0);
sys/dev/i2c/emcfan.c
129
emcfan_write_registerr(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg,
sys/dev/i2c/emcfan.c
134
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, ®, 1, &value, 1, 0);
sys/dev/i2c/emcfan.c
149
emcfan_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/emcfan.c
154
error = emcfan_read_registerr(tag, addr, EMCFAN_MANUFACTURER_ID, &res);
sys/dev/i2c/i2c_exec.c
153
iic_acquire_bus(i2c_tag_t tag, int flags)
sys/dev/i2c/i2c_exec.c
161
int error = iic_acquire_bus_lock(&tag->ic_bus_lock, flags);
sys/dev/i2c/i2c_exec.c
166
if (tag->ic_acquire_bus) {
sys/dev/i2c/i2c_exec.c
167
error = (*tag->ic_acquire_bus)(tag->ic_cookie, flags);
sys/dev/i2c/i2c_exec.c
171
iic_release_bus_lock(&tag->ic_bus_lock);
sys/dev/i2c/i2c_exec.c
183
iic_release_bus(i2c_tag_t tag, int flags)
sys/dev/i2c/i2c_exec.c
191
if (tag->ic_release_bus) {
sys/dev/i2c/i2c_exec.c
192
(*tag->ic_release_bus)(tag->ic_cookie, flags);
sys/dev/i2c/i2c_exec.c
195
iic_release_bus_lock(&tag->ic_bus_lock);
sys/dev/i2c/i2c_exec.c
209
iic_exec(i2c_tag_t tag, i2c_op_t op, i2c_addr_t addr, const void *vcmd,
sys/dev/i2c/i2c_exec.c
223
if ((flags & I2C_F_PEC) && cmdlen > 0 && tag->ic_exec != NULL) {
sys/dev/i2c/i2c_exec.c
251
return ((*tag->ic_exec)(tag->ic_cookie, op, addr, cmd,
sys/dev/i2c/i2c_exec.c
259
if (tag->ic_exec != NULL)
sys/dev/i2c/i2c_exec.c
260
return ((*tag->ic_exec)(tag->ic_cookie, op, addr, cmd,
sys/dev/i2c/i2c_exec.c
264
if ((error = iic_initiate_xfer(tag, addr, flags)) != 0)
sys/dev/i2c/i2c_exec.c
267
if ((error = iic_write_byte(tag, *cmd++, flags)) != 0)
sys/dev/i2c/i2c_exec.c
279
if ((error = iic_initiate_xfer(tag, addr, flags)) != 0)
sys/dev/i2c/i2c_exec.c
293
(error = iic_initiate_xfer(tag, addr, flags)) != 0)
sys/dev/i2c/i2c_exec.c
298
if ((error = iic_read_byte(tag, buf++, flags)) != 0)
sys/dev/i2c/i2c_exec.c
303
(error = iic_initiate_xfer(tag, addr, flags)) != 0)
sys/dev/i2c/i2c_exec.c
305
if ((error = iic_write_byte(tag, *buf++, flags)) != 0)
sys/dev/i2c/i2c_exec.c
312
iic_send_stop(tag, flags);
sys/dev/i2c/i2c_exec.c
322
iic_smbus_write_byte(i2c_tag_t tag, i2c_addr_t addr, uint8_t cmd,
sys/dev/i2c/i2c_exec.c
326
return (iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &cmd, 1,
sys/dev/i2c/i2c_exec.c
336
iic_smbus_write_word(i2c_tag_t tag, i2c_addr_t addr, uint8_t cmd,
sys/dev/i2c/i2c_exec.c
344
return (iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &cmd, 1,
sys/dev/i2c/i2c_exec.c
354
iic_smbus_read_byte(i2c_tag_t tag, i2c_addr_t addr, uint8_t cmd,
sys/dev/i2c/i2c_exec.c
358
return (iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, &cmd, 1,
sys/dev/i2c/i2c_exec.c
368
iic_smbus_read_word(i2c_tag_t tag, i2c_addr_t addr, uint8_t cmd,
sys/dev/i2c/i2c_exec.c
372
return (iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, &cmd, 1,
sys/dev/i2c/i2c_exec.c
382
iic_smbus_receive_byte(i2c_tag_t tag, i2c_addr_t addr, uint8_t *valp,
sys/dev/i2c/i2c_exec.c
386
return (iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, NULL, 0,
sys/dev/i2c/i2c_exec.c
396
iic_smbus_send_byte(i2c_tag_t tag, i2c_addr_t addr, uint8_t val, int flags)
sys/dev/i2c/i2c_exec.c
399
return (iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, NULL, 0,
sys/dev/i2c/i2c_exec.c
409
iic_smbus_quick_read(i2c_tag_t tag, i2c_addr_t addr, int flags)
sys/dev/i2c/i2c_exec.c
412
return (iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, NULL, 0,
sys/dev/i2c/i2c_exec.c
422
iic_smbus_quick_write(i2c_tag_t tag, i2c_addr_t addr, int flags)
sys/dev/i2c/i2c_exec.c
425
return (iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, NULL, 0,
sys/dev/i2c/i2c_exec.c
435
iic_smbus_block_read(i2c_tag_t tag, i2c_addr_t addr, uint8_t cmd,
sys/dev/i2c/i2c_exec.c
439
return (iic_exec(tag, I2C_OP_READ_BLOCK, addr, &cmd, 1,
sys/dev/i2c/i2c_exec.c
449
iic_smbus_block_write(i2c_tag_t tag, i2c_addr_t addr, uint8_t cmd,
sys/dev/i2c/i2c_exec.c
453
return (iic_exec(tag, I2C_OP_WRITE_BLOCK, addr, &cmd, 1,
sys/dev/i2c/i2c_exec.c
71
iic_tag_init(i2c_tag_t tag)
sys/dev/i2c/i2c_exec.c
74
memset(tag, 0, sizeof(*tag));
sys/dev/i2c/i2c_exec.c
75
mutex_init(&tag->ic_bus_lock, MUTEX_DEFAULT, IPL_NONE);
sys/dev/i2c/i2c_exec.c
76
tag->ic_channel = I2C_CHANNEL_DEFAULT;
sys/dev/i2c/i2c_exec.c
85
iic_tag_fini(i2c_tag_t tag)
sys/dev/i2c/i2c_exec.c
88
mutex_destroy(&tag->ic_bus_lock);
sys/dev/i2c/i2c_subr.c
66
i2c_tag_t tag = iba->iba_tag;
sys/dev/i2c/i2c_subr.c
71
if (tag->ic_channel != I2C_CHANNEL_DEFAULT) {
sys/dev/i2c/i2c_subr.c
72
aprint_normal(" bus %d", tag->ic_channel);
sys/dev/i2c/i2cvar.h
137
i2c_tag_channel(i2c_tag_t tag)
sys/dev/i2c/i2cvar.h
139
return tag->ic_channel == I2C_CHANNEL_DEFAULT ? 0
sys/dev/i2c/i2cvar.h
140
: tag->ic_channel;
sys/dev/i2c/i2cvar.h
171
iicbus_attach_with_devhandle(device_t dev, i2c_tag_t tag, devhandle_t devhandle)
sys/dev/i2c/i2cvar.h
174
.iba_tag = tag,
sys/dev/i2c/i2cvar.h
182
iicbus_attach(device_t dev, i2c_tag_t tag)
sys/dev/i2c/i2cvar.h
184
return iicbus_attach_with_devhandle(dev, tag, device_handle(dev));
sys/dev/i2c/mt2131.c
108
sc->tag = t;
sys/dev/i2c/mt2131.c
159
rv = iic_acquire_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
161
rv = iic_exec(sc->tag, I2C_OP_WRITE_WITH_STOP, sc->addr, b, 7,
sys/dev/i2c/mt2131.c
163
iic_release_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
200
ret = iic_acquire_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
203
ret = iic_exec(sc->tag, I2C_OP_WRITE_WITH_STOP, sc->addr,
sys/dev/i2c/mt2131.c
205
iic_release_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
214
ret = iic_acquire_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
217
ret = iic_exec(sc->tag, I2C_OP_WRITE_WITH_STOP, sc->addr,
sys/dev/i2c/mt2131.c
220
iic_release_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
232
ret = iic_acquire_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
235
ret = iic_exec(sc->tag, I2C_OP_READ_WITH_STOP, sc->addr,
sys/dev/i2c/mt2131.c
238
iic_release_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
249
ret = iic_acquire_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
253
ret = iic_exec(sc->tag, I2C_OP_READ_WITH_STOP, sc->addr,
sys/dev/i2c/mt2131.c
256
iic_release_bus(sc->tag, 0);
sys/dev/i2c/mt2131.c
67
i2c_tag_t tag;
sys/dev/i2c/nxt2k.c
102
iic_release_bus(nxt->tag, 0);
sys/dev/i2c/nxt2k.c
47
i2c_tag_t tag;
sys/dev/i2c/nxt2k.c
77
if ((error = iic_acquire_bus(nxt->tag, 0)) != 0)
sys/dev/i2c/nxt2k.c
776
nxt2k_open(device_t parent, i2c_tag_t tag, i2c_addr_t addr, unsigned int if_freq)
sys/dev/i2c/nxt2k.c
784
nxt->tag = tag;
sys/dev/i2c/nxt2k.c
83
error = iic_exec(nxt->tag, I2C_OP_WRITE_WITH_STOP, nxt->addr,
sys/dev/i2c/nxt2k.c
86
iic_release_bus(nxt->tag, 0);
sys/dev/i2c/nxt2k.c
96
if ((error = iic_acquire_bus(nxt->tag, 0)) != 0)
sys/dev/i2c/nxt2k.c
99
error = iic_exec(nxt->tag, I2C_OP_READ_WITH_STOP, nxt->addr,
sys/dev/i2c/pcf8583.c
434
pcfrtc_bootstrap_read(i2c_tag_t tag, int i2caddr, int offset,
sys/dev/i2c/pcf8583.c
447
if (iic_acquire_bus(tag, 0) != 0)
sys/dev/i2c/pcf8583.c
453
if (iic_exec(tag, I2C_OP_READ_WITH_STOP, i2caddr,
sys/dev/i2c/pcf8583.c
455
iic_release_bus(tag, 0);
sys/dev/i2c/pcf8583.c
464
iic_release_bus(tag, 0);
sys/dev/i2c/pcf8583.c
469
pcfrtc_bootstrap_write(i2c_tag_t tag, int i2caddr, int offset,
sys/dev/i2c/pcf8583.c
482
if (iic_acquire_bus(tag, 0) != 0)
sys/dev/i2c/pcf8583.c
488
if (iic_exec(tag, I2C_OP_WRITE_WITH_STOP, i2caddr,
sys/dev/i2c/pcf8583.c
490
iic_release_bus(tag, 0);
sys/dev/i2c/pcf8583.c
499
iic_release_bus(tag, 0);
sys/dev/i2c/sc16is7xxi2c.c
233
sc16is7xxi2c_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/sc16is7xxi2c.c
239
error = sc16is7xxi2c_read_register_direct(tag, addr, reg, 0, buf, 1);
sys/dev/i2c/sc16is7xxi2c.c
63
sc16is7xxi2c_read_register_direct(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg,
sys/dev/i2c/sc16is7xxi2c.c
71
error = iic_acquire_bus(tag, 0);
sys/dev/i2c/sc16is7xxi2c.c
73
error = iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, &xreg, 1,
sys/dev/i2c/sc16is7xxi2c.c
76
iic_release_bus(tag, 0);
sys/dev/i2c/sc16is7xxi2c.c
82
sc16is7xxi2c_write_register_direct(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg,
sys/dev/i2c/sc16is7xxi2c.c
90
error = iic_acquire_bus(tag, 0);
sys/dev/i2c/sc16is7xxi2c.c
92
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &xreg, 1,
sys/dev/i2c/sc16is7xxi2c.c
95
iic_release_bus(tag, 0);
sys/dev/i2c/scmdi2c.c
116
scmdi2c_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/scmdi2c.c
122
error = scmdi2c_read_reg_direct(tag, addr, reg, &buf);
sys/dev/i2c/scmdi2c.c
76
scmdi2c_read_reg_direct(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg,
sys/dev/i2c/scmdi2c.c
79
return iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, ®, 1, buf,
sys/dev/i2c/scmdi2c.c
90
scmdi2c_write_reg_direct(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg,
sys/dev/i2c/scmdi2c.c
93
return iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, ®, 1, &buf,
sys/dev/i2c/sgp40.c
362
sgp40_cmd(i2c_tag_t tag, i2c_addr_t addr, uint8_t *cmd,
sys/dev/i2c/sgp40.c
372
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, cmd, clen, NULL, 0,
sys/dev/i2c/sgp40.c
391
error = iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, NULL, 0,
sys/dev/i2c/sgp40.c
454
sgp40_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/sgp40.c
467
error = sgp40_cmd(tag, addr, reg, 2, buf, 9, 10);
sys/dev/i2c/sht3x.c
858
sht3x_cmd(i2c_tag_t tag, i2c_addr_t addr, uint16_t *cmd,
sys/dev/i2c/sht3x.c
874
error = iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, &cmd8[0], clen,
sys/dev/i2c/sht3x.c
877
error = iic_exec(tag, I2C_OP_WRITE_WITH_STOP, addr, &cmd8[0], clen,
sys/dev/i2c/sht3x.c
893
error = iic_exec(tag, I2C_OP_READ_WITH_STOP, addr, NULL, 0, buf,
sys/dev/i2c/sht3x.c
929
sht3x_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/sht3x.c
935
error = sht3x_cmd(tag, addr, ®, 2, buf, 3, 10);
sys/dev/i2c/sht4x.c
355
sht4x_cmd(i2c_tag_t tag, i2c_addr_t addr, uint8_t *cmd,
sys/dev/i2c/sht4x.c
361
error = iic_exec(tag,I2C_OP_WRITE_WITH_STOP,addr,cmd,clen,NULL,0,0);
sys/dev/i2c/sht4x.c
372
error = iic_exec(tag,I2C_OP_READ_WITH_STOP,addr,NULL,0,buf,blen,0);
sys/dev/i2c/sht4x.c
406
sht4x_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/sht4x.c
412
error = sht4x_cmd(tag, addr, ®, 1, buf, 6, 10);
sys/dev/i2c/si70xx.c
234
si70xx_cmd(i2c_tag_t tag, i2c_addr_t addr, uint8_t *cmd,
sys/dev/i2c/si70xx.c
246
return iic_exec(tag, dir, addr, cmd, clen, buf, blen, 0);
sys/dev/i2c/si70xx.c
472
si70xx_poke(i2c_tag_t tag, i2c_addr_t addr, bool matchdebug)
sys/dev/i2c/si70xx.c
478
error = si70xx_cmd(tag, addr, ®, 1, &buf, 1);
sys/dev/i2c/tvpll.c
135
iic_acquire_bus(tvpll->tag, 0);
sys/dev/i2c/tvpll.c
140
rv = iic_exec(tvpll->tag, I2C_OP_WRITE_WITH_STOP, tvpll->addr, ab, 2, NULL, 0, 0);
sys/dev/i2c/tvpll.c
142
rv = iic_exec(tvpll->tag, I2C_OP_WRITE_WITH_STOP, tvpll->addr, b, 4, NULL, 0, 0);
sys/dev/i2c/tvpll.c
143
iic_release_bus(tvpll->tag, 0);
sys/dev/i2c/tvpll.c
45
i2c_tag_t tag;
sys/dev/i2c/tvpll.c
60
tvpll->tag = t;
sys/dev/i2c/tvpll.c
66
iic_acquire_bus(tvpll->tag, 0);
sys/dev/i2c/tvpll.c
67
(void)iic_exec(tvpll->tag, I2C_OP_WRITE_WITH_STOP, tvpll->addr,
sys/dev/i2c/tvpll.c
70
iic_release_bus(tvpll->tag, 0);
sys/dev/ic/aic79xx.c
1392
u_int tag;
sys/dev/ic/aic79xx.c
1399
tag = SCB_LIST_NULL;
sys/dev/ic/aic79xx.c
1403
tag = SCB_GET_TAG(scb);
sys/dev/ic/aic79xx.c
1410
'A', lun, tag, ROLE_INITIATOR,
sys/dev/ic/aic79xx.c
206
char channel, int lun, u_int tag,
sys/dev/ic/aic79xx.c
2148
u_int tag;
sys/dev/ic/aic79xx.c
2150
tag = SCB_LIST_NULL;
sys/dev/ic/aic79xx.c
2170
tag = SCB_GET_TAG(scb);
sys/dev/ic/aic79xx.c
2185
tag = SCB_GET_TAG(scb);
sys/dev/ic/aic79xx.c
2189
tag, ROLE_INITIATOR,
sys/dev/ic/aic79xx.c
2318
u_int tag;
sys/dev/ic/aic79xx.c
2321
tag = SCB_GET_TAG(scb);
sys/dev/ic/aic79xx.c
2323
tag = SCB_LIST_NULL;
sys/dev/ic/aic79xx.c
2326
SCB_GET_LUN(scb), tag,
sys/dev/ic/aic79xx.c
250
static int ahd_createdmamem(bus_dma_tag_t tag,
sys/dev/ic/aic79xx.c
260
static void ahd_freedmamem(bus_dma_tag_t tag,
sys/dev/ic/aic79xx.c
4510
int tag;
sys/dev/ic/aic79xx.c
4517
tag = SCB_LIST_NULL;
sys/dev/ic/aic79xx.c
4519
tag = ahd_inb(ahd, INITIATOR_TAG);
sys/dev/ic/aic79xx.c
4521
devinfo->lun, tag, ROLE_TARGET,
sys/dev/ic/aic79xx.c
4533
/*arg*/tag);
sys/dev/ic/aic79xx.c
5268
cmd = pci_conf_read(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG);
sys/dev/ic/aic79xx.c
5284
pci_conf_write(bd->pc, bd->tag,
sys/dev/ic/aic79xx.c
5311
pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG, cmd |
sys/dev/ic/aic79xx.c
5459
ahd_find_scb_by_tag(struct ahd_softc *ahd, u_int tag)
sys/dev/ic/aic79xx.c
5467
if (SCB_GET_TAG(scb) == tag)
sys/dev/ic/aic79xx.c
5479
if (SCB_GET_TAG(list_scb) == tag)
sys/dev/ic/aic79xx.c
5489
if (SCB_GET_TAG(scb) == tag)
sys/dev/ic/aic79xx.c
5944
next_scb->hscb->tag = ahd_htole16(scb_data->numscbs);
sys/dev/ic/aic79xx.c
6358
AUSCBPTR_EN | offsetof(struct hardware_scb, tag));
sys/dev/ic/aic79xx.c
6963
char channel, int lun, u_int tag, role_t role)
sys/dev/ic/aic79xx.c
6982
&& ((tag == SCB_GET_TAG(scb))
sys/dev/ic/aic79xx.c
6983
|| (tag == SCB_LIST_NULL));
sys/dev/ic/aic79xx.c
6986
&& ((tag == scb->io_ctx->csio.tag_id)
sys/dev/ic/aic79xx.c
6987
|| (tag == SCB_LIST_NULL));
sys/dev/ic/aic79xx.c
6990
match = ((tag == SCB_GET_TAG(scb)) || (tag == SCB_LIST_NULL));
sys/dev/ic/aic79xx.c
7105
int lun, u_int tag, role_t role, uint32_t status,
sys/dev/ic/aic79xx.c
7173
if (ahd_match_scb(ahd, scb, target, channel, lun, tag, role)) {
sys/dev/ic/aic79xx.c
7274
lun, tag, role, status,
sys/dev/ic/aic79xx.c
7291
int lun, u_int tag, role_t role, uint32_t status,
sys/dev/ic/aic79xx.c
7454
int lun, u_int tag, role_t role, uint32_t status)
sys/dev/ic/aic79xx.c
7505
lun, tag, role) == 0)
sys/dev/ic/aic79xx.c
7528
if (ahd_match_scb(ahd, scbp, target, channel, lun, tag, role)) {
sys/dev/ic/aic79xx.c
7543
ahd_platform_abort_scbs(ahd, target, channel, lun, tag, role, status);
sys/dev/ic/aic79xx.c
9738
ahd_createdmamem(bus_dma_tag_t tag, int size, int flags, bus_dmamap_t *mapp,
sys/dev/ic/aic79xx.c
9744
if ((error = bus_dmamem_alloc(tag, size, PAGE_SIZE, 0,
sys/dev/ic/aic79xx.c
9752
if ((error = bus_dmamem_map(tag, seg, *nseg, size, vaddr,
sys/dev/ic/aic79xx.c
9760
if ((error = bus_dmamap_create(tag, size, 1, size, 0,
sys/dev/ic/aic79xx.c
9769
if ((error = bus_dmamap_load(tag, *mapp, *vaddr, size, NULL,
sys/dev/ic/aic79xx.c
9783
bus_dmamap_destroy(tag, *mapp);
sys/dev/ic/aic79xx.c
9786
bus_dmamem_unmap(tag, *vaddr, size);
sys/dev/ic/aic79xx.c
9789
bus_dmamem_free(tag, seg, *nseg);
sys/dev/ic/aic79xx.c
9799
ahd_freedmamem(bus_dma_tag_t tag, int size, bus_dmamap_t map, void *vaddr,
sys/dev/ic/aic79xx.c
9803
bus_dmamap_unload(tag, map);
sys/dev/ic/aic79xx.c
9804
bus_dmamap_destroy(tag, map);
sys/dev/ic/aic79xx.c
9805
bus_dmamem_unmap(tag, vaddr, size);
sys/dev/ic/aic79xx.c
9806
bus_dmamem_free(tag, seg, nseg);
sys/dev/ic/aic79xx_inline.h
706
ahd_lookup_scb(struct ahd_softc *ahd, u_int tag)
sys/dev/ic/aic79xx_inline.h
710
if (tag >= AHD_SCB_MAX)
sys/dev/ic/aic79xx_inline.h
712
scb = ahd->scb_data.scbindex[tag];
sys/dev/ic/aic79xx_osm.h
109
#define ahd_dma_tag_destroy(ahd, tag) \
sys/dev/ic/aic79xx_osm.h
110
bus_dma_tag_destroy(tag)
sys/dev/ic/aic79xx_osm.h
118
#define ahd_dmamap_create(ahd, tag, flags, mapp) \
sys/dev/ic/aic79xx_osm.h
119
bus_dmamap_create(tag, flags, mapp)
sys/dev/ic/aic79xx_osm.h
121
#define ahd_dmamap_destroy(ahd, tag, map) \
sys/dev/ic/aic79xx_osm.h
122
bus_dmamap_destroy(tag, map)
sys/dev/ic/aic79xx_osm.h
128
#define ahd_dmamap_unload(ahd, tag, map) \
sys/dev/ic/aic79xx_osm.h
129
bus_dmamap_unload(tag, map)
sys/dev/ic/aic79xx_osm.h
444
char channel, int lun, u_int tag,
sys/dev/ic/aic79xxvar.h
126
ahd_le16toh(scb->hscb->tag)
sys/dev/ic/aic79xxvar.h
505
/*16*/ uint16_t tag; /* Reused by Sequencer. */
sys/dev/ic/aic79xxvar.h
566
pcitag_t tag;
sys/dev/ic/aic7xxx.c
1252
u_int tag;
sys/dev/ic/aic7xxx.c
1255
tag = SCB_LIST_NULL;
sys/dev/ic/aic7xxx.c
1260
tag = scb->hscb->tag;
sys/dev/ic/aic7xxx.c
1263
scb->hscb->tag, tag == SCB_LIST_NULL ?
sys/dev/ic/aic7xxx.c
1266
saved_lun, tag,
sys/dev/ic/aic7xxx.c
1344
u_int tag;
sys/dev/ic/aic7xxx.c
1347
tag = scb->hscb->tag;
sys/dev/ic/aic7xxx.c
1349
tag = SCB_LIST_NULL;
sys/dev/ic/aic7xxx.c
1352
SCB_GET_LUN(scb), tag,
sys/dev/ic/aic7xxx.c
1542
hscb->tag);
sys/dev/ic/aic7xxx.c
2295
ahc->msgout_buf[ahc->msgout_index++] = scb->hscb->tag;
sys/dev/ic/aic7xxx.c
2338
"SCB flags = %x", scb->hscb->tag, scb->hscb->control,
sys/dev/ic/aic7xxx.c
252
static int ahc_createdmamem(bus_dma_tag_t tag,
sys/dev/ic/aic7xxx.c
261
static void ahc_freedmamem(bus_dma_tag_t tag,
sys/dev/ic/aic7xxx.c
3343
int tag;
sys/dev/ic/aic7xxx.c
3350
tag = SCB_LIST_NULL;
sys/dev/ic/aic7xxx.c
3352
tag = ahc_inb(ahc, INITIATOR_TAG);
sys/dev/ic/aic7xxx.c
3354
devinfo->lun, tag, ROLE_TARGET,
sys/dev/ic/aic7xxx.c
3366
/*arg*/tag);
sys/dev/ic/aic7xxx.c
3534
scb->hscb->tag);
sys/dev/ic/aic7xxx.c
4244
ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag);
sys/dev/ic/aic7xxx.c
4370
next_scb->hscb->tag = ahc->scb_data->numscbs;
sys/dev/ic/aic7xxx.c
509
scb->hscb->tag);
sys/dev/ic/aic7xxx.c
5180
char channel, int lun, u_int tag, role_t role)
sys/dev/ic/aic7xxx.c
5200
&& ((tag == scb->hscb->tag)
sys/dev/ic/aic7xxx.c
5201
|| (tag == SCB_LIST_NULL));
sys/dev/ic/aic7xxx.c
5204
&& ((tag == scb->io_ctx->csio.tag_id)
sys/dev/ic/aic7xxx.c
5205
|| (tag == SCB_LIST_NULL));
sys/dev/ic/aic7xxx.c
5208
match = ((tag == scb->hscb->tag) || (tag == SCB_LIST_NULL));
sys/dev/ic/aic7xxx.c
5261
ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag);
sys/dev/ic/aic7xxx.c
5263
prev_scb->hscb->next = scb->hscb->tag;
sys/dev/ic/aic7xxx.c
5267
ahc->qinfifo[ahc->qinfifonext++] = scb->hscb->tag;
sys/dev/ic/aic7xxx.c
5268
scb->hscb->next = ahc->next_queued_scb->hscb->tag;
sys/dev/ic/aic7xxx.c
5289
int lun, u_int tag, role_t role, uint32_t status,
sys/dev/ic/aic7xxx.c
5327
ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag);
sys/dev/ic/aic7xxx.c
5337
if (ahc_match_scb(ahc, scb, target, channel, lun, tag, role)) {
sys/dev/ic/aic7xxx.c
5409
ahc->scb_data->scbindex[scb->hscb->tag] = NULL;
sys/dev/ic/aic7xxx.c
5412
ahc->qinfifo[qinstart] = scb->hscb->tag;
sys/dev/ic/aic7xxx.c
5415
ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag);
sys/dev/ic/aic7xxx.c
5420
scb->hscb->next = ahc->next_queued_scb->hscb->tag;
sys/dev/ic/aic7xxx.c
5596
int lun, u_int tag, int stop_on_first, int remove,
sys/dev/ic/aic7xxx.c
5636
tag, ROLE_INITIATOR)) {
sys/dev/ic/aic7xxx.c
5759
int lun, u_int tag, role_t role, uint32_t status)
sys/dev/ic/aic7xxx.c
5823
lun, tag, role) == 0)
sys/dev/ic/aic7xxx.c
5835
ahc_search_disc_list(ahc, target, channel, lun, tag,
sys/dev/ic/aic7xxx.c
5855
&& ahc_match_scb(ahc, scbp, target, channel, lun, tag, role)))
sys/dev/ic/aic7xxx.c
5869
if (ahc_match_scb(ahc, scbp, target, channel, lun, tag, role)) {
sys/dev/ic/aic7xxx.c
5884
ahc_platform_abort_scbs(ahc, target, channel, lun, tag, role, status);
sys/dev/ic/aic7xxx.c
6662
printf("Kernel NEXTQSCB = %d\n", ahc->next_queued_scb->hscb->tag);
sys/dev/ic/aic7xxx.c
6735
/*cur_col =*/ printf("\n%3d ", scb->hscb->tag);
sys/dev/ic/aic7xxx.c
6740
ahc_outb(ahc, SCBPTR, scb->hscb->tag);
sys/dev/ic/aic7xxx.c
6755
printf("%d ", scb->hscb->tag);
sys/dev/ic/aic7xxx.c
6769
printf("%d ", scb->hscb->tag);
sys/dev/ic/aic7xxx.c
7377
ahc_createdmamem(bus_dma_tag_t tag, int size, int flags, bus_dmamap_t *mapp,
sys/dev/ic/aic7xxx.c
7383
if ((error = bus_dmamem_alloc(tag, size, PAGE_SIZE, 0,
sys/dev/ic/aic7xxx.c
7391
if ((error = bus_dmamem_map(tag, seg, *nseg, size, vaddr,
sys/dev/ic/aic7xxx.c
7399
if ((error = bus_dmamap_create(tag, size, 1, size, 0,
sys/dev/ic/aic7xxx.c
7408
if ((error = bus_dmamap_load(tag, *mapp, *vaddr, size, NULL,
sys/dev/ic/aic7xxx.c
7422
bus_dmamap_destroy(tag, *mapp);
sys/dev/ic/aic7xxx.c
7425
bus_dmamem_unmap(tag, *vaddr, size);
sys/dev/ic/aic7xxx.c
7428
bus_dmamem_free(tag, seg, *nseg);
sys/dev/ic/aic7xxx.c
7438
ahc_freedmamem(bus_dma_tag_t tag, int size, bus_dmamap_t map, void *vaddr,
sys/dev/ic/aic7xxx.c
7442
bus_dmamap_unload(tag, map);
sys/dev/ic/aic7xxx.c
7443
bus_dmamap_destroy(tag, map);
sys/dev/ic/aic7xxx.c
7444
bus_dmamem_unmap(tag, vaddr, size);
sys/dev/ic/aic7xxx.c
7445
bus_dmamem_free(tag, seg, nseg);
sys/dev/ic/aic7xxx.c
836
scb->hscb->tag);
sys/dev/ic/aic7xxx.c
904
SCB_GET_LUN(scb), scb->hscb->tag,
sys/dev/ic/aic7xxx.c
923
ahc->scb_data->hscbs[scbptr].tag);
sys/dev/ic/aic7xxx_inline.h
388
ahc->scb_data->scbindex[hscb->tag] = NULL;
sys/dev/ic/aic7xxx_inline.h
399
ahc_lookup_scb(struct ahc_softc *ahc, u_int tag)
sys/dev/ic/aic7xxx_inline.h
403
scb = ahc->scb_data->scbindex[tag];
sys/dev/ic/aic7xxx_inline.h
429
saved_tag = q_hscb->tag;
sys/dev/ic/aic7xxx_inline.h
433
ahc_htole32(ahc_hscb_busaddr(ahc, q_hscb->tag)
sys/dev/ic/aic7xxx_inline.h
436
q_hscb->tag = saved_tag;
sys/dev/ic/aic7xxx_inline.h
437
q_hscb->next = scb->hscb->tag;
sys/dev/ic/aic7xxx_inline.h
444
ahc->scb_data->scbindex[scb->hscb->tag] = scb;
sys/dev/ic/aic7xxx_inline.h
455
if (scb->hscb->tag == SCB_LIST_NULL
sys/dev/ic/aic7xxx_inline.h
458
scb->hscb->tag, scb->hscb->next);
sys/dev/ic/aic7xxx_inline.h
462
ahc->qinfifo[ahc->qinfifonext++] = scb->hscb->tag;
sys/dev/ic/aic7xxx_osm.c
1002
lun, scb->hscb->tag,
sys/dev/ic/aic7xxx_osm.c
1015
ahc_outb(ahc, SCBPTR, scb->hscb->tag);
sys/dev/ic/aic7xxx_osm.c
1046
"Flags = 0x%x\n", scb->hscb->tag,
sys/dev/ic/aic7xxx_osm.c
665
ahc->scb_data->scbindex[scb->hscb->tag] = scb;
sys/dev/ic/aic7xxx_osm.c
668
ahc_outb(ahc, SCBPTR, scb->hscb->tag);
sys/dev/ic/aic7xxx_osm.c
669
ahc_outb(ahc, TARG_IMMEDIATE_SCB, scb->hscb->tag);
sys/dev/ic/aic7xxx_osm.c
836
printf("SCB 0x%x - timed out\n", scb->hscb->tag);
sys/dev/ic/aic7xxx_osm.c
927
scb->hscb->tag,
sys/dev/ic/aic7xxx_osm.c
965
scb->hscb->tag, ROLE_INITIATOR,
sys/dev/ic/aic7xxx_osm.h
109
#define ahc_dma_tag_destroy(ahc, tag) \
sys/dev/ic/aic7xxx_osm.h
110
bus_dma_tag_destroy(tag)
sys/dev/ic/aic7xxx_osm.h
118
#define ahc_dmamap_create(ahc, tag, flags, mapp) \
sys/dev/ic/aic7xxx_osm.h
119
bus_dmamap_create(tag, flags, mapp)
sys/dev/ic/aic7xxx_osm.h
121
#define ahc_dmamap_destroy(ahc, tag, map) \
sys/dev/ic/aic7xxx_osm.h
122
bus_dmamap_destroy(tag, map)
sys/dev/ic/aic7xxx_osm.h
128
#define ahc_dmamap_unload(ahc, tag, map) \
sys/dev/ic/aic7xxx_osm.h
129
bus_dmamap_unload(tag, map)
sys/dev/ic/aic7xxx_osm.h
227
bus_space_read_1((ahc)->tag, (ahc)->bsh, port)
sys/dev/ic/aic7xxx_osm.h
230
bus_space_write_1((ahc)->tag, (ahc)->bsh, port, value)
sys/dev/ic/aic7xxx_osm.h
233
bus_space_write_multi_1((ahc)->tag, (ahc)->bsh, port, valp, count)
sys/dev/ic/aic7xxx_osm.h
236
bus_space_read_multi_1((ahc)->tag, (ahc)->bsh, port, valp, count)
sys/dev/ic/aic7xxx_osm.h
425
char channel, int lun, u_int tag,
sys/dev/ic/aic7xxx_seeprom.c
104
sd.sd_tag = ahc->tag;
sys/dev/ic/aic7xxx_seeprom.c
343
devconfig = pci_conf_read(ahc->bd->pc, ahc->bd->tag, DEVCONFIG);
sys/dev/ic/aic7xxx_seeprom.c
347
pci_conf_write(ahc->bd->pc, ahc->bd->tag, DEVCONFIG, devconfig);
sys/dev/ic/aic7xxxvar.h
1033
bus_space_tag_t tag;
sys/dev/ic/aic7xxxvar.h
572
/*27*/ uint8_t tag; /*
sys/dev/ic/aic7xxxvar.h
630
pcitag_t tag;
sys/dev/ic/ath.c
1504
ath_keyprint(const char *tag, u_int ix,
sys/dev/ic/ath.c
1517
printf("%s: [%02u] %-7s ", tag, ix, ciphers[hk->kv_type]);
sys/dev/ic/cissreg.h
371
u_int32_t tag;
sys/dev/ic/cpc700.c
134
pcitag_t tag;
sys/dev/ic/cpc700.c
177
tag = pci_make_tag(pc, 0, 0, 0);
sys/dev/ic/cpc700.c
187
erren = pci_conf_read(pc, tag, CPC_PCI_BRDGERR);
sys/dev/ic/cpc700.c
189
pci_conf_write(pc, tag, CPC_PCI_BRDGERR, 0);
sys/dev/ic/cpc700.c
192
v = pci_conf_read(pc, tag, CPC_BRIDGE_OPTIONS2);
sys/dev/ic/cpc700.c
196
pci_conf_write(pc, tag, CPC_BRIDGE_OPTIONS2, v);
sys/dev/ic/cpc700.c
213
pci_conf_write(pc, tag, CPC_PCI_BRDGERR, erren | CPC_PCI_CLEARERR);
sys/dev/ic/cpc700.c
81
bus_space_tag_t pciio, bus_dma_tag_t tag, int attachpci,
sys/dev/ic/cy.c
121
if (bus_space_read_1(tag, bsh, chip +
sys/dev/ic/cy.c
129
bus_space_write_1(tag, bsh, chip +
sys/dev/ic/cy.c
139
bus_space_read_1(tag, bsh, /* off for chip 0 (0) + */
sys/dev/ic/cy.c
144
bus_space_write_1(tag, bsh, chip +
sys/dev/ic/cy.c
151
firmware_ver = bus_space_read_1(tag, bsh, chip +
sys/dev/ic/cy.c
90
bus_space_tag_t tag = sc->sc_memt;
sys/dev/ic/cy.c
95
bus_space_write_1(tag, bsh, CY16_RESET << bustype, 0);
sys/dev/ic/cy.c
97
bus_space_write_1(tag, bsh, CY_CLEAR_INTR << bustype, 0);
sys/dev/ic/esiop.c
1120
if (tag >= 0)
sys/dev/ic/esiop.c
1121
esiop_lun->tactive[tag] = NULL;
sys/dev/ic/esiop.c
1171
xs->xs_periph->periph_lun, esiop_cmd->cmd_c.tag);
sys/dev/ic/esiop.c
1216
int target, lun, tag;
sys/dev/ic/esiop.c
1266
tag = (slot & A_f_c_tag) ? (slot >> 24) & 0xff : -1;
sys/dev/ic/esiop.c
1280
esiop_cmd = (tag >= 0) ? esiop_lun->tactive[tag] : esiop_lun->active;
sys/dev/ic/esiop.c
1283
target, lun, tag);
sys/dev/ic/esiop.c
1293
target, lun, tag, status);
sys/dev/ic/esiop.c
1300
if (tag >= 0)
sys/dev/ic/esiop.c
1301
esiop_lun->tactive[tag] = NULL;
sys/dev/ic/esiop.c
1319
int slot, tag;
sys/dev/ic/esiop.c
1328
for (tag = 0; tag < ESIOP_NTAG; tag++) {
sys/dev/ic/esiop.c
1330
if (esiop_lun->tactive[tag] == NULL)
sys/dev/ic/esiop.c
1332
esiop_cmd = esiop_lun->tactive[tag];
sys/dev/ic/esiop.c
1345
esiop_lun->tactive[tag] = NULL;
sys/dev/ic/esiop.c
1366
int tag = esiop_cmd->cmd_tables->msg_out[2];
sys/dev/ic/esiop.c
1373
device_xname(sc->sc_c.sc_dev), target, lun, tag,
sys/dev/ic/esiop.c
1374
esiop_cmd->cmd_c.tag, esiop_cmd->cmd_c.status);
sys/dev/ic/esiop.c
1385
esiop_lun->tactive[tag] = NULL;
sys/dev/ic/esiop.c
1389
esiop_cmd->cmd_c.tag = -1;
sys/dev/ic/esiop.c
1409
int target, lun, tag;
sys/dev/ic/esiop.c
1437
for (tag = -1; tag <
sys/dev/ic/esiop.c
1440
tag++) {
sys/dev/ic/esiop.c
1441
if (tag >= 0)
sys/dev/ic/esiop.c
1442
esiop_cmd = esiop_lun->tactive[tag];
sys/dev/ic/esiop.c
1449
printf("command with tag id %d reset\n", tag);
sys/dev/ic/esiop.c
1454
if (tag >= 0)
sys/dev/ic/esiop.c
1455
esiop_lun->tactive[tag] = NULL;
sys/dev/ic/esiop.c
1623
esiop_cmd->cmd_c.tag = xs->xs_tag_id;
sys/dev/ic/esiop.c
1625
esiop_cmd->cmd_c.tag = -1;
sys/dev/ic/esiop.c
1634
htole32(esiop_cmd->cmd_c.tag << 24);
sys/dev/ic/esiop.c
1741
if (esiop_cmd->cmd_c.tag >= ESIOP_NTAG ||
sys/dev/ic/esiop.c
1742
esiop_cmd->cmd_c.tag < 0) {
sys/dev/ic/esiop.c
1744
printf(": tag id %d\n", esiop_cmd->cmd_c.tag);
sys/dev/ic/esiop.c
1747
if (esiop_lun->tactive[esiop_cmd->cmd_c.tag] != NULL)
sys/dev/ic/esiop.c
1762
esiop_lun->tactive[esiop_cmd->cmd_c.tag] = esiop_cmd;
sys/dev/ic/esiop.c
1764
esiop_lun->lun_tagtbl->tbl[esiop_cmd->cmd_c.tag] =
sys/dev/ic/esiop.c
407
int offset, target, lun, tag;
sys/dev/ic/esiop.c
450
tag = (tflags & A_f_c_tag) ? ((tflags >> 24) & 0xff) : -1;
sys/dev/ic/esiop.c
465
(tag >= 0) ? esiop_lun->tactive[tag] : esiop_lun->active;
sys/dev/ic/esiop.c
469
target, lun, tag);
sys/dev/ic/esiop.c
534
target, lun, tag, esiop_cmd->cmd_tables->msg_in[0],
sys/dev/ic/i128.c
101
bus_space_write_4(tag, regh, XY3_DIR, dir);
sys/dev/ic/i128.c
102
bus_space_write_4(tag, regh, XY2_WH, (wi << 16) | he);
sys/dev/ic/i128.c
103
bus_space_write_4(tag, regh, XY0_SRC, (xs << 16) | ys);
sys/dev/ic/i128.c
104
bus_space_write_4(tag, regh, XY1_DST, (xd << 16) | yd);
sys/dev/ic/i128.c
108
i128_rectfill(bus_space_tag_t tag, bus_space_handle_t regh, int x, int y,
sys/dev/ic/i128.c
112
I128_READY(tag, regh);
sys/dev/ic/i128.c
113
bus_space_write_4(tag, regh, CMD,
sys/dev/ic/i128.c
115
bus_space_write_4(tag, regh, FORE, color);
sys/dev/ic/i128.c
116
bus_space_write_4(tag, regh, XY3_DIR, 0);
sys/dev/ic/i128.c
117
bus_space_write_4(tag, regh, XY2_WH, (wi << 16) | he);
sys/dev/ic/i128.c
118
bus_space_write_4(tag, regh, XY0_SRC, 0);
sys/dev/ic/i128.c
119
bus_space_write_4(tag, regh, XY1_DST, (x << 16) | y);
sys/dev/ic/i128.c
45
i128_init(bus_space_tag_t tag, bus_space_handle_t regh, int stride, int depth)
sys/dev/ic/i128.c
50
bus_space_write_4(tag, regh, BUF_CTRL, BC_PSIZ_8B);
sys/dev/ic/i128.c
53
bus_space_write_4(tag, regh, BUF_CTRL, BC_PSIZ_16B);
sys/dev/ic/i128.c
56
bus_space_write_4(tag, regh, BUF_CTRL, BC_PSIZ_32B);
sys/dev/ic/i128.c
64
bus_space_write_4(tag, regh, DE_PGE, 0);
sys/dev/ic/i128.c
65
bus_space_write_4(tag, regh, DE_SORG, 0);
sys/dev/ic/i128.c
66
bus_space_write_4(tag, regh, DE_DORG, 0);
sys/dev/ic/i128.c
67
bus_space_write_4(tag, regh, DE_MSRC, 0);
sys/dev/ic/i128.c
68
bus_space_write_4(tag, regh, DE_WKEY, 0);
sys/dev/ic/i128.c
69
bus_space_write_4(tag, regh, DE_SPTCH, stride);
sys/dev/ic/i128.c
70
bus_space_write_4(tag, regh, DE_DPTCH, stride);
sys/dev/ic/i128.c
71
bus_space_write_4(tag, regh, RMSK, 0);
sys/dev/ic/i128.c
72
bus_space_write_4(tag, regh, XY4_ZM, ZOOM_NONE);
sys/dev/ic/i128.c
73
bus_space_write_4(tag, regh, LPAT, 0xffffffff);
sys/dev/ic/i128.c
74
bus_space_write_4(tag, regh, ACNTRL, 0);
sys/dev/ic/i128.c
75
bus_space_write_4(tag, regh, INTM, 3);
sys/dev/ic/i128.c
76
bus_space_write_4(tag, regh, CLPTL, 0x00000000);
sys/dev/ic/i128.c
77
bus_space_write_4(tag, regh, CLPBR, 0x1fff0fff);
sys/dev/ic/i128.c
78
bus_space_write_4(tag, regh, MASK, 0xffffffff);
sys/dev/ic/i128.c
82
i128_bitblt(bus_space_tag_t tag, bus_space_handle_t regh, int xs, int ys,
sys/dev/ic/i128.c
98
I128_READY(tag, regh);
sys/dev/ic/i128.c
99
bus_space_write_4(tag, regh, CMD,
sys/dev/ic/i128reg.h
189
#define I128_READY(tag, regh) \
sys/dev/ic/i128reg.h
190
do {} while ((bus_space_read_4(tag, regh, BUSY) & BUSY_BUSY) != 0);
sys/dev/ic/i128reg.h
193
#define I128_DONE(tag, regh) \
sys/dev/ic/i128reg.h
194
do {} while ((bus_space_read_4(tag, regh, FLOW) & 0x0f) != 0);
sys/dev/ic/iha.c
2164
uint8_t tag, target, lun, msg, abortmsg;
sys/dev/ic/iha.c
2223
tag = bus_space_read_1(iot, ioh, TUL_SFIFO); /* Read Tag ID */
sys/dev/ic/iha.c
2224
scb = &sc->sc_scb[tag];
sys/dev/ic/isp_target.h
78
#define MATCH_TMD(tmd, iid, lun, tag) \
sys/dev/ic/isp_target.h
83
(tag == TAG_ANY || tag == tmd->cd_tagval) \
sys/dev/ic/ispmbox.h
862
#define ISP_GET_VPIDX(isp, tag) \
sys/dev/ic/ispmbox.h
863
(ISP_CAP_MULTI_ID(isp) ? tag : 0)
sys/dev/ic/mpt.h
191
#define MPT_2_HOST64(ptr, tag) ptr->tag = le64toh(ptr->tag)
sys/dev/ic/mpt.h
192
#define MPT_2_HOST32(ptr, tag) ptr->tag = le32toh(ptr->tag)
sys/dev/ic/mpt.h
193
#define MPT_2_HOST16(ptr, tag) ptr->tag = le16toh(ptr->tag)
sys/dev/ic/mpt.h
195
#define HOST_2_MPT64(ptr, tag) ptr->tag = htole64(ptr->tag)
sys/dev/ic/mpt.h
196
#define HOST_2_MPT32(ptr, tag) ptr->tag = htole32(ptr->tag)
sys/dev/ic/mpt.h
197
#define HOST_2_MPT16(ptr, tag) ptr->tag = htole16(ptr->tag)
sys/dev/ic/ncr53c9x.c
1075
int tag;
sys/dev/ic/ncr53c9x.c
1093
tag = 0;
sys/dev/ic/ncr53c9x.c
1095
tag = 0;
sys/dev/ic/ncr53c9x.c
1097
tag = 0;
sys/dev/ic/ncr53c9x.c
1099
tag = ecb->xs->xs_tag_type;
sys/dev/ic/ncr53c9x.c
1103
tag = 0;
sys/dev/ic/ncr53c9x.c
1120
if (tag == 0) {
sys/dev/ic/ncr53c9x.c
1126
tag = 0;
sys/dev/ic/ncr53c9x.c
1136
ecb->tag[0] = tag;
sys/dev/ic/ncr53c9x.c
1137
if (tag != 0) {
sys/dev/ic/ncr53c9x.c
1139
ecb->tag[1] = ecb->xs->xs_tag_id;
sys/dev/ic/ncr53c9x.c
1150
if (li->untagged == NULL && tag != 0) {
sys/dev/ic/ncr53c9x.c
1304
if (ecb->tag[0] && li->queued[ecb->tag[1]] != NULL) {
sys/dev/ic/ncr53c9x.c
1306
if (li->queued[ecb->tag[1]] != NULL &&
sys/dev/ic/ncr53c9x.c
1307
(li->queued[ecb->tag[1]] != ecb))
sys/dev/ic/ncr53c9x.c
1309
"instead of ecb %p\n", __func__, ecb->tag[1],
sys/dev/ic/ncr53c9x.c
1311
li->queued[ecb->tag[1]], ecb);
sys/dev/ic/ncr53c9x.c
1313
li->queued[ecb->tag[1]] = NULL;
sys/dev/ic/ncr53c9x.c
1675
if (ecb->tag[0] &&
sys/dev/ic/ncr53c9x.c
1676
li->queued[ecb->tag[1]] != NULL) {
sys/dev/ic/ncr53c9x.c
1677
li->queued[ecb->tag[1]] = NULL;
sys/dev/ic/ncr53c9x.c
1680
ecb->tag[0] = ecb->tag[1] = 0;
sys/dev/ic/ncr53c9x.c
1990
sc->sc_omess[0] = ecb->tag[0];
sys/dev/ic/ncr53c9x.c
1991
sc->sc_omess[1] = ecb->tag[1];
sys/dev/ic/ncr53c9x.c
2527
ecb->tag[0] == 0) {
sys/dev/ic/ncr53c9x.c
2546
if (ecb->tag[0])
sys/dev/ic/ncr53c9x.c
683
target, lun, ecb->cmd.cmd.opcode, ecb->tag[0], ecb->tag[1]));
sys/dev/ic/ncr53c9x.c
741
if (ecb->tag[0] != 0) {
sys/dev/ic/ncr53c9x.c
763
cmd[1] = ecb->tag[0]; /* msg[1] */
sys/dev/ic/ncr53c9x.c
764
cmd[2] = ecb->tag[1]; /* msg[2] */
sys/dev/ic/ncr53c9xvar.h
120
u_char tag[2]; /* TAG bytes */
sys/dev/ic/ninjascsi32.c
134
int tag, struct njsc32_cmd **);
sys/dev/ic/ninjascsi32.c
1647
njsc32_resel_tag(struct njsc32_softc *sc, int tag, struct njsc32_cmd **pcmd)
sys/dev/ic/ninjascsi32.c
1653
device_xname(sc->sc_dev), tag));
sys/dev/ic/ninjascsi32.c
1662
if (cmd->c_xs->xs_tag_id == tag) {
sys/dev/ic/siop.c
1029
xs->xs_periph->periph_lun, siop_cmd->cmd_c.tag);
sys/dev/ic/siop.c
1073
int slot, tag;
sys/dev/ic/siop.c
1081
for (tag = 1; tag < SIOP_NTAG; tag++) {
sys/dev/ic/siop.c
1083
if (siop_lun->siop_tag[tag].active == NULL)
sys/dev/ic/siop.c
1085
siop_cmd = siop_lun->siop_tag[tag].active;
sys/dev/ic/siop.c
1105
siop_lun->siop_tag[tag].active = NULL;
sys/dev/ic/siop.c
1127
int tag = siop_cmd->cmd_tables->msg_out[2];
sys/dev/ic/siop.c
1133
device_xname(sc->sc_c.sc_dev), target, lun, tag,
sys/dev/ic/siop.c
1134
siop_cmd->cmd_c.tag,
sys/dev/ic/siop.c
1145
siop_lun->siop_tag[tag].active = NULL;
sys/dev/ic/siop.c
1148
siop_cmd->cmd_c.tag = 0;
sys/dev/ic/siop.c
1171
int target, lun, tag;
sys/dev/ic/siop.c
1198
for (tag = 0; tag <
sys/dev/ic/siop.c
1201
tag++) {
sys/dev/ic/siop.c
1202
siop_cmd = siop_lun->siop_tag[tag].active;
sys/dev/ic/siop.c
1206
printf("command with tag id %d reset\n", tag);
sys/dev/ic/siop.c
1211
siop_lun->siop_tag[tag].active = NULL;
sys/dev/ic/siop.c
1379
siop_cmd->cmd_c.tag = xs->xs_tag_id + 1;
sys/dev/ic/siop.c
1381
siop_cmd->cmd_c.tag = 0;
sys/dev/ic/siop.c
1486
if (siop_lun->siop_tag[siop_cmd->cmd_c.tag].active != NULL)
sys/dev/ic/siop.c
1488
if (siop_cmd->cmd_c.tag >= SIOP_NTAG) {
sys/dev/ic/siop.c
1490
printf(": tag id %d\n", siop_cmd->cmd_c.tag);
sys/dev/ic/siop.c
1528
siop_lun->siop_tag[siop_cmd->cmd_c.tag].active = siop_cmd;
sys/dev/ic/siop.c
1532
if (siop_lun->siop_tag[siop_cmd->cmd_c.tag].reseloff > 0)
sys/dev/ic/siop.c
1534
siop_lun->siop_tag[siop_cmd->cmd_c.tag].reseloff + 1,
sys/dev/ic/siop.c
304
int offset, target, lun, tag;
sys/dev/ic/siop.c
343
tag = siop_cmd->cmd_c.tag;
sys/dev/ic/siop.c
354
tag = -1;
sys/dev/ic/siop.c
357
} else if (siop_lun->siop_tag[tag].active != siop_cmd) {
sys/dev/ic/siop.c
359
"active (%p != %p)\n", lun, tag, siop_cmd,
sys/dev/ic/siop.c
360
siop_lun->siop_tag[tag].active);
sys/dev/ic/siop.c
368
tag = -1;
sys/dev/ic/siop.c
646
tag = bus_space_read_1(sc->sc_c.sc_rt, sc->sc_c.sc_rh,
sys/dev/ic/siop.c
662
if (siop_lun->siop_tag[tag].active == NULL) {
sys/dev/ic/siop.c
666
target, lun, tag);
sys/dev/ic/siop.c
669
siop_cmd = siop_lun->siop_tag[tag].active;
sys/dev/ic/siop.c
989
siop_lun->siop_tag[tag].active = NULL;
sys/dev/ic/siop_common.c
292
siop_cmd->siop_tables->msg_out[2] = siop_cmd->tag;
sys/dev/ic/siopvar_common.h
86
int tag; /* tag used for tagged command queuing */
sys/dev/ic/tpm.c
208
if (be16toh(response.tag) != TPM_TAG_RSP_COMMAND ||
sys/dev/ic/tpm.c
214
be16toh(response.tag),
sys/dev/ic/tpm.c
307
if (be16toh(response.tag) != TPM2_ST_NO_SESSIONS ||
sys/dev/ic/tpm.c
312
be16toh(response.tag),
sys/dev/ic/tpm.c
504
uint16_t tag;
sys/dev/ic/tpm.c
510
command.hdr.tag = htobe16(TPM_TAG_RQU_COMMAND);
sys/dev/ic/tpm.c
552
tag = be16toh(response.hdr.tag);
sys/dev/ic/tpm.c
555
if (tag != TPM_TAG_RSP_COMMAND ||
sys/dev/ic/tpm.c
574
" tag=%u len=%u code=%u\n", tag, pktlen, code);
sys/dev/ic/tpm.c
644
uint16_t tag;
sys/dev/ic/tpm.c
650
command.hdr.tag = htobe16(TPM2_ST_NO_SESSIONS);
sys/dev/ic/tpm.c
692
tag = be16toh(response.hdr.tag);
sys/dev/ic/tpm.c
695
if (tag != TPM2_ST_NO_SESSIONS ||
sys/dev/ic/tpm.c
712
" tag=%u len=%u code=0x%x\n", tag, pktlen, code);
sys/dev/ic/tpmreg.h
108
uint16_t tag;
sys/dev/ic/wd33c93.c
680
int lun, tag, flags;
sys/dev/ic/wd33c93.c
698
tag = 0;
sys/dev/ic/wd33c93.c
700
tag = 0;
sys/dev/ic/wd33c93.c
702
tag = 0;
sys/dev/ic/wd33c93.c
704
tag = 0; /* No tags for polled commands */
sys/dev/ic/wd33c93.c
706
tag = acb->xs->xs_tag_type;
sys/dev/ic/wd33c93.c
724
if (tag == 0 && li->untagged == NULL)
sys/dev/ic/wd33c93.c
728
tag = 0;
sys/dev/ic/wd33c93.c
737
acb->tag_type = tag;
sys/dev/ic/wd33c93.c
738
if (tag != 0) {
sys/dev/ic/wd33c93.c
750
if (li->untagged == NULL && tag != 0) {
sys/dev/ieee1394/firewire.h
49
tag:2;
sys/dev/ieee1394/fwdev.c
435
it->flag |= ((0x3 & ichreq->tag) << 6);
sys/dev/ieee1394/fwdev.c
442
ichreq->tag = it->flag >> 2 & 0x3;
sys/dev/ieee1394/fwdev.c
463
ir->flag |= ((0x3 & ichreq->tag) << 6);
sys/dev/ieee1394/fwdev.c
471
ichreq->tag = ir->flag >> 2 & 0x3;
sys/dev/ieee1394/fwohci.c
806
unsigned short tag, ich;
sys/dev/ieee1394/fwohci.c
813
tag = (ir->flag >> 6) & 3;
sys/dev/ieee1394/fwohci.c
815
OWRITE(sc, OHCI_IRMATCH(dmach), tagbit[tag] | ich);
sys/dev/isapnp/isapnpres.c
218
isapnp_process_tag(u_char tag, u_char len, u_char *buf, struct isapnp_attach_args **card, struct isapnp_attach_args **dev, struct isapnp_attach_args **conf)
sys/dev/isapnp/isapnpres.c
227
switch (tag) {
sys/dev/isapnp/isapnpres.c
302
switch (tag) {
sys/dev/isapnp/isapnpres.c
424
printf("tag %.2x, len %d: ", tag, len);
sys/dev/isapnp/isapnpres.c
442
u_char d, tag;
sys/dev/isapnp/isapnpres.c
484
tag = d;
sys/dev/isapnp/isapnpres.c
492
tag = (d >> 3) & 0xf;
sys/dev/isapnp/isapnpres.c
511
if (isapnp_process_tag(tag, len, buf, &card, &dev,
sys/dev/isapnp/isapnpres.c
520
while (tag != ISAPNP_TAG_END);
sys/dev/kloader.c
458
struct kloader_page_tag *tag;
sys/dev/kloader.c
460
tag = kloader.cur_tag;
sys/dev/kloader.c
461
if (tag != NULL /* has tag */
sys/dev/kloader.c
462
&& tag->sz < BUCKET_SIZE /* that has free space */
sys/dev/kloader.c
463
&& tag->dst + tag->sz == dst) /* and new data are contiguous */
sys/dev/kloader.c
465
DPRINTFN(1, "current tag %x/%x ok\n", tag->dst, tag->sz);
sys/dev/kloader.c
466
return (tag);
sys/dev/kloader.c
474
tag = (void *)addr;
sys/dev/kloader.c
482
tag->src = addr + sizeof(struct kloader_page_tag);
sys/dev/kloader.c
483
tag->dst = dst;
sys/dev/kloader.c
484
tag->sz = 0;
sys/dev/kloader.c
485
tag->next = 0; /* Terminate. this member may overwrite after. */
sys/dev/kloader.c
488
kloader.cur_tag = tag;
sys/dev/kloader.c
490
return (tag);
sys/dev/kloader.c
501
struct kloader_page_tag *tag;
sys/dev/kloader.c
505
tag = kloader_get_tag(dst);
sys/dev/kloader.c
506
KDASSERT(tag != NULL);
sys/dev/kloader.c
507
freesz = BUCKET_SIZE - tag->sz;
sys/dev/kloader.c
513
kloader_read(ofs, freesz, (void *)(tag->src + tag->sz));
sys/dev/kloader.c
515
tag->sz += freesz;
sys/dev/kloader.c
526
struct kloader_page_tag *tag;
sys/dev/kloader.c
530
tag = kloader_get_tag(dst);
sys/dev/kloader.c
531
KDASSERT(tag != NULL);
sys/dev/kloader.c
532
freesz = BUCKET_SIZE - tag->sz;
sys/dev/kloader.c
537
memcpy((void *)(tag->src + tag->sz), src, freesz);
sys/dev/kloader.c
539
tag->sz += freesz;
sys/dev/kloader.c
550
struct kloader_page_tag *tag;
sys/dev/kloader.c
554
tag = kloader_get_tag(dst);
sys/dev/kloader.c
555
KDASSERT(tag != NULL);
sys/dev/kloader.c
556
freesz = BUCKET_SIZE - tag->sz;
sys/dev/kloader.c
561
memset((void *)(tag->src + tag->sz), 0, freesz);
sys/dev/kloader.c
563
tag->sz += freesz;
sys/dev/kloader.c
692
struct kloader_page_tag *tag = kloader.tagstart;
sys/dev/kloader.c
697
p = tag;
sys/dev/marvell/com_mv.c
57
mvuart_init_regs(struct com_regs *regs, bus_space_tag_t tag,
sys/dev/marvell/com_mv.c
61
com_init_regs_stride(regs, tag, hdl, addr, 2);
sys/dev/marvell/gt.c
895
marvell_winparams_by_tag(device_t dev, int tag, int *target, int *attr,
sys/dev/marvell/gt.c
899
int tag;
sys/dev/marvell/gt.c
918
for (i = 0; tagtbl[i].tag != MARVELL_TAG_UNDEFINED; i++)
sys/dev/marvell/gt.c
919
if (tag == tagtbl[i].tag)
sys/dev/marvell/gt.c
921
if (tagtbl[i].tag == MARVELL_TAG_UNDEFINED)
sys/dev/marvell/gtidmac.c
1143
gtidmac_start(void *tag, int chan,
sys/dev/marvell/gtidmac.c
1147
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmac.c
1165
gtidmac_finish(void *tag, int chan, int error)
sys/dev/marvell/gtidmac.c
1167
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmac.c
1208
mvxore_chan_alloc(void *tag, bus_dmamap_t **dmamap_in,
sys/dev/marvell/gtidmac.c
1211
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmac.c
1234
mvxore_chan_free(void *tag, int chan)
sys/dev/marvell/gtidmac.c
1236
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmac.c
1247
mvxore_setup(void *tag, int chan, int ninputs, bus_dmamap_t *dmamap_in,
sys/dev/marvell/gtidmac.c
1250
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmac.c
1422
mvxore_start(void *tag, int chan,
sys/dev/marvell/gtidmac.c
1426
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmac.c
1444
mvxore_finish(void *tag, int chan, int error)
sys/dev/marvell/gtidmac.c
1446
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmac.c
1523
gtidmac_winacctbl[j].tag != MARVELL_TAG_UNDEFINED;
sys/dev/marvell/gtidmac.c
1525
if (gtidmac_winacctbl[j].tag != tags[i])
sys/dev/marvell/gtidmac.c
1594
mvxore_winacctbl[j].tag != MARVELL_TAG_UNDEFINED;
sys/dev/marvell/gtidmac.c
1596
if (gtidmac_winacctbl[j].tag != tags[i])
sys/dev/marvell/gtidmac.c
945
gtidmac_chan_alloc(void *tag, bus_dmamap_t **dmamap_in,
sys/dev/marvell/gtidmac.c
948
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmac.c
971
gtidmac_chan_free(void *tag, int chan)
sys/dev/marvell/gtidmac.c
973
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmac.c
984
gtidmac_setup(void *tag, int chan, int ninputs, bus_dmamap_t *dmamap_in,
sys/dev/marvell/gtidmac.c
987
struct gtidmac_softc *sc = tag;
sys/dev/marvell/gtidmacvar.h
41
enum marvell_tags tag;
sys/dev/marvell/gtpci.c
262
int tag;
sys/dev/marvell/gtpci.c
320
for (map = 0; maps[map].tag != MARVELL_TAG_UNDEFINED; map++) {
sys/dev/marvell/gtpci.c
321
rv = marvell_winparams_by_tag(pdev, maps[map].tag, NULL, NULL,
sys/dev/marvell/gtpci.c
333
pcitag_t tag;
sys/dev/marvell/gtpci.c
339
tag = gtpci_make_tag(NULL, bus, dev, maps[map].func);
sys/dev/marvell/gtpci.c
340
reg = gtpci_conf_read(sc, tag, maps[map].balow);
sys/dev/marvell/gtpci.c
343
gtpci_conf_write(sc, tag, maps[map].balow, reg);
sys/dev/marvell/gtpci.c
344
reg = gtpci_conf_read(sc, tag, maps[map].bahigh);
sys/dev/marvell/gtpci.c
346
gtpci_conf_write(sc, tag, maps[map].bahigh, reg);
sys/dev/marvell/gtpci.c
545
gtpci_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/dev/marvell/gtpci.c
549
*bp = (tag >> 16) & 0xff;
sys/dev/marvell/gtpci.c
551
*dp = (tag >> 11) & 0x1f;
sys/dev/marvell/gtpci.c
553
*fp = (tag >> 8) & 0x07;
sys/dev/marvell/gtpci.c
557
gtpci_conf_read(void *v, pcitag_t tag, int reg)
sys/dev/marvell/gtpci.c
560
const pcireg_t addr = tag | reg;
sys/dev/marvell/gtpci.c
573
gtpci_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/dev/marvell/gtpci.c
576
pcireg_t addr = tag | (reg & 0xfc);
sys/dev/marvell/mvpex.c
484
mvpex_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp, int *fp)
sys/dev/marvell/mvpex.c
488
*bp = (tag >> 16) & 0xff;
sys/dev/marvell/mvpex.c
490
*dp = (tag >> 11) & 0x1f;
sys/dev/marvell/mvpex.c
492
*fp = (tag >> 8) & 0x07;
sys/dev/marvell/mvpex.c
496
mvpex_conf_read(void *v, pcitag_t tag, int reg)
sys/dev/marvell/mvpex.c
506
mvpex_decompose_tag(v, tag, &bus, &dev, &func);
sys/dev/marvell/mvpex.c
527
addr = ((reg & 0xf00) << 24) | tag | (reg & 0xfc);
sys/dev/marvell/mvpex.c
544
mvpex_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
sys/dev/marvell/mvpex.c
554
mvpex_decompose_tag(v, tag, &bus, &dev, &func);
sys/dev/marvell/mvpex.c
575
addr = ((reg & 0xf00) << 24) | tag | (reg & 0xfc);
sys/dev/marvell/mvxpsec.c
1034
uint32_t tag, target, attr, base, size;
sys/dev/marvell/mvxpsec.c
1040
tag = ARMADAXP_TAG_CRYPT0;
sys/dev/marvell/mvxpsec.c
1043
tag = ARMADAXP_TAG_CRYPT1;
sys/dev/marvell/mvxpsec.c
1050
window = mvsoc_target(tag, &target, &attr, &base, &size);
sys/dev/marvell/mvxpsec.c
309
uint32_t tag;
sys/dev/marvell/mvxpsec.c
319
tag = ARMADAXP_TAG_CRYPT0;
sys/dev/marvell/mvxpsec.c
322
tag = ARMADAXP_TAG_CRYPT1;
sys/dev/marvell/mvxpsec.c
330
window = mvsoc_target(tag, NULL, NULL, NULL, NULL);
sys/dev/midi.c
364
enum fst_ret tag;
sys/dev/midi.c
366
[FST_CANON] = { .off=0, .tag=FST_CHN },
sys/dev/midi.c
367
[FST_COMPR] = { .off=1, .tag=FST_CHN },
sys/dev/midi.c
368
[FST_VCOMP] = { .off=0, .tag=FST_CHV }
sys/dev/midi.c
371
FST_RETURN(midi_forms[form].off,endp,midi_forms[form].tag)
sys/dev/mvme/mvmebus.c
245
mvmebus_map(void *vsc, vme_addr_t vmeaddr, vme_size_t len, vme_am_t am, vme_datasize_t datasize, vme_swap_t swap, bus_space_tag_t *tag, bus_space_handle_t *handle, vme_mapresc_t *resc)
sys/dev/mvme/mvmebus.c
290
*tag = sc->sc_bust;
sys/dev/mvme/mvmebus.c
311
bus_space_tag_t tag;
sys/dev/mvme/mvmebus.c
319
&tag, &handle, &resc);
sys/dev/mvme/mvmebus.c
324
rv = (*callback) (arg, tag, handle);
sys/dev/mvme/mvmebus.c
329
rv = bus_space_peek_1(tag, handle, offs, NULL);
sys/dev/mvme/mvmebus.c
334
rv = bus_space_peek_2(tag, handle, offs, NULL);
sys/dev/mvme/mvmebus.c
339
rv = bus_space_peek_4(tag, handle, offs, NULL);
sys/dev/ofw/ofw_pci_subr.c
63
pci_decompose_tag(args->pc, args->tag, NULL, &d, &f);
sys/dev/pci/agp.c
1234
agp_alloc_dmamem(bus_dma_tag_t tag, size_t size, int flags,
sys/dev/pci/agp.c
1241
if ((error = bus_dmamem_alloc(tag, size, PAGE_SIZE, 0,
sys/dev/pci/agp.c
1246
if ((error = bus_dmamem_map(tag, seg, *rseg, size, vaddr,
sys/dev/pci/agp.c
1251
if ((error = bus_dmamap_create(tag, size, *rseg, size, 0,
sys/dev/pci/agp.c
1256
if ((error = bus_dmamap_load(tag, *mapp, *vaddr, size, NULL,
sys/dev/pci/agp.c
1266
bus_dmamap_destroy(tag, *mapp);
sys/dev/pci/agp.c
1269
bus_dmamem_unmap(tag, *vaddr, size);
sys/dev/pci/agp.c
1272
bus_dmamem_free(tag, seg, *rseg);
sys/dev/pci/agp.c
1282
agp_free_dmamem(bus_dma_tag_t tag, size_t size, bus_dmamap_t map,
sys/dev/pci/agp.c
1285
bus_dmamap_unload(tag, map);
sys/dev/pci/agp.c
1286
bus_dmamap_destroy(tag, map);
sys/dev/pci/agp.c
1287
bus_dmamem_unmap(tag, vaddr, size);
sys/dev/pci/agp.c
1288
bus_dmamem_free(tag, seg, nseg);
sys/dev/pci/agp_amd64.c
161
pcitag_t tag;
sys/dev/pci/agp_amd64.c
164
tag = AGP_AMD64_NVIDIA_PCITAG(pa->pa_pc);
sys/dev/pci/agp_amd64.c
166
reg = pci_conf_read(pa->pa_pc, tag, PCI_CLASS_REG);
sys/dev/pci/agp_amd64.c
171
reg = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG);
sys/dev/pci/agp_amd64.c
181
pcitag_t tag;
sys/dev/pci/agp_amd64.c
184
tag = AGP_AMD64_VIA_PCITAG(pa->pa_pc);
sys/dev/pci/agp_amd64.c
186
reg = pci_conf_read(pa->pa_pc, tag, PCI_CLASS_REG);
sys/dev/pci/agp_amd64.c
191
reg = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG);
sys/dev/pci/agp_amd64.c
206
pcitag_t tag;
sys/dev/pci/agp_amd64.c
221
tag = pci_make_tag(pa->pa_pc, 0, i, 3);
sys/dev/pci/agp_amd64.c
222
id = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG);
sys/dev/pci/agp_amd64.c
226
asc->mctrl_tag[n] = tag;
sys/dev/pci/agp_i810.c
677
const pcitag_t tag = sc->as_tag;
sys/dev/pci/agp_i810.c
690
addr = pci_conf_read(pc, tag, AGP_I915_IFPADDR);
sys/dev/pci/agp_i810.c
694
hi = pci_conf_read(pc, tag, AGP_I965_IFPADDR+4);
sys/dev/pci/agp_i810.c
695
lo = pci_conf_read(pc, tag, AGP_I965_IFPADDR);
sys/dev/pci/agp_i810.c
735
pci_conf_write(pc, tag, AGP_I915_IFPADDR, addr);
sys/dev/pci/agp_i810.c
739
pci_conf_write(pc, tag, AGP_I965_IFPADDR+4, hi);
sys/dev/pci/agp_i810.c
740
pci_conf_write(pc, tag, AGP_I965_IFPADDR, lo);
sys/dev/pci/ahc_pci.c
1147
devconfig = pci_conf_read(ahc->bd->pc, ahc->bd->tag, DEVCONFIG);
sys/dev/pci/ahc_pci.c
1190
devconfig = pci_conf_read(ahc->bd->pc, ahc->bd->tag, DEVCONFIG);
sys/dev/pci/ahc_pci.c
1223
pci_conf_write(ahc->bd->pc, ahc->bd->tag, DEVCONFIG, devconfig);
sys/dev/pci/ahc_pci.c
1347
cmd = pci_conf_read(ahc->bd->pc, ahc->bd->tag, PCIR_COMMAND);
sys/dev/pci/ahc_pci.c
1348
pci_conf_write(ahc->bd->pc, ahc->bd->tag, PCIR_COMMAND,
sys/dev/pci/ahc_pci.c
1379
status1 = pci_conf_read(ahc->bd->pc, ahc->bd->tag,
sys/dev/pci/ahc_pci.c
1388
status1 = pci_conf_read(ahc->bd->pc, ahc->bd->tag,
sys/dev/pci/ahc_pci.c
1409
status1 = pci_conf_read(ahc->bd->pc, ahc->bd->tag,
sys/dev/pci/ahc_pci.c
1438
pci_conf_write(ahc->bd->pc, ahc->bd->tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/ahc_pci.c
1637
command = pci_conf_read(ahc->bd->pc, ahc->bd->tag,
sys/dev/pci/ahc_pci.c
1640
pci_conf_write(ahc->bd->pc, ahc->bd->tag,
sys/dev/pci/ahc_pci.c
1658
pci_conf_write(ahc->bd->pc, ahc->bd->tag, CSIZE_LATTIME, 0);
sys/dev/pci/ahc_pci.c
1659
devconfig = pci_conf_read(ahc->bd->pc, ahc->bd->tag, DEVCONFIG);
sys/dev/pci/ahc_pci.c
1661
pci_conf_write(ahc->bd->pc, ahc->bd->tag, DEVCONFIG, devconfig);
sys/dev/pci/ahc_pci.c
800
bd->tag = pa->pa_tag;
sys/dev/pci/ahc_pci.c
851
ahc->tag = st;
sys/dev/pci/ahd_pci.c
1000
pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG , pci_status1);
sys/dev/pci/ahd_pci.c
1025
pcix_status = pci_conf_read(bd->pc, bd->tag,
sys/dev/pci/ahd_pci.c
1075
pci_conf_write(bd->pc, bd->tag, bd->pcix_off + PCIX_STATUS,
sys/dev/pci/ahd_pci.c
342
bd->tag = pa->pa_tag;
sys/dev/pci/ahd_pci.c
589
cmd = pci_conf_read(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/ahd_pci.c
590
pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/ahd_pci.c
622
pci_status1 = pci_conf_read(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/ahd_pci.c
623
pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG, pci_status1);
sys/dev/pci/ahd_pci.c
651
pci_status1 = pci_conf_read(bd->pc, bd->tag,
sys/dev/pci/ahd_pci.c
653
pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/ahd_pci.c
658
pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG, cmd);
sys/dev/pci/ahd_pci.c
809
devconfig = pci_conf_read(bd->pc, bd->tag, DEVCONFIG);
sys/dev/pci/ahd_pci.c
817
pci_conf_write(bd->pc, bd->tag, DEVCONFIG, devconfig);
sys/dev/pci/ahd_pci.c
999
pci_status1 = pci_conf_read(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/auixp.c
1043
pcitag_t tag;
sys/dev/pci/auixp.c
1055
tag = pa->pa_tag;
sys/dev/pci/auixp.c
1074
data = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/auixp.c
1076
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, data);
sys/dev/pci/auixp.c
1086
sc->sc_tag = tag;
sys/dev/pci/bktr/bktr_os.c
1003
fun = pci_conf_read(tag, 0x40);
sys/dev/pci/bktr/bktr_os.c
1016
pci_conf_write(tag, 0x40, fun);
sys/dev/pci/bktr/bktr_os.c
1033
latency = pci_conf_read(tag, PCI_LATENCY_TIMER);
sys/dev/pci/bktr/bktr_os.c
1044
pci_conf_write(tag, PCI_LATENCY_TIMER, latency<<8);
sys/dev/pci/bktr/bktr_os.c
1052
fun = pci_conf_read(tag, PCI_ID_REG);
sys/dev/pci/bktr/bktr_os.c
1053
rev = pci_conf_read(tag, PCIR_REVID) & 0x000000ff;
sys/dev/pci/bktr/bktr_os.c
1413
bktr->tag = pa->pa_tag;
sys/dev/pci/bktr/bktr_os.c
382
old_irq = pci_conf_read(tag, PCI_INTERRUPT_REG);
sys/dev/pci/bktr/bktr_os.c
383
pci_conf_write(tag, PCI_INTERRUPT_REG, BROOKTREE_IRQ);
sys/dev/pci/bktr/bktr_os.c
384
new_irq = pci_conf_read(tag, PCI_INTERRUPT_REG);
sys/dev/pci/bktr/bktr_os.c
859
static const char* bktr_probe(pcici_t tag, pcidi_t type);
sys/dev/pci/bktr/bktr_os.c
860
static void bktr_attach(pcici_t tag, int unit);
sys/dev/pci/bktr/bktr_os.c
911
bktr_probe(pcici_t tag, pcidi_t type)
sys/dev/pci/bktr/bktr_os.c
913
unsigned int rev = pci_conf_read(tag, PCIR_REVID) & 0x000000ff;
sys/dev/pci/bktr/bktr_os.c
937
bktr_attach(pcici_t tag, int unit)
sys/dev/pci/bktr/bktr_os.c
961
fun = pci_conf_read(tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/bktr/bktr_os.c
962
pci_conf_write(tag, PCI_COMMAND_STATUS_REG, fun | 2);
sys/dev/pci/bktr/bktr_os.c
965
fun = pci_conf_read(tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/bktr/bktr_os.c
966
pci_conf_write(tag, PCI_COMMAND_STATUS_REG, fun | 4);
sys/dev/pci/bktr/bktr_os.c
968
bktr->tag = tag;
sys/dev/pci/bktr/bktr_os.c
974
pci_map_mem(tag, PCI_MAP_REG_START, (vm_offset_t *) &base,
sys/dev/pci/bktr/bktr_os.c
988
old_irq = pci_conf_read(tag, PCI_INTERRUPT_REG);
sys/dev/pci/bktr/bktr_os.c
989
pci_conf_write(tag, PCI_INTERRUPT_REG, BROOKTREE_IRQ);
sys/dev/pci/bktr/bktr_os.c
990
new_irq = pci_conf_read(tag, PCI_INTERRUPT_REG);
sys/dev/pci/bktr/bktr_os.c
998
pci_map_int(tag, bktr_intr, (void*) bktr, &tty_imask);
sys/dev/pci/btvmei.c
414
b3_617_map_vme(void *vsc, vme_addr_t vmeaddr, vme_size_t len, vme_am_t am, vme_datasize_t datasizes, vme_swap_t swap, bus_space_tag_t *tag, bus_space_handle_t *handle, vme_mapresc_t *resc)
sys/dev/pci/btvmei.c
465
*tag = sc->sc_vmet;
sys/dev/pci/btvmei.c
498
bus_space_tag_t tag;
sys/dev/pci/btvmei.c
506
&tag, &handle, &resc);
sys/dev/pci/btvmei.c
516
res = (*callback)(cbarg, tag, handle);
sys/dev/pci/btvmei.c
521
dummy = bus_space_read_1(tag, handle, i);
sys/dev/pci/btvmei.c
526
dummy = bus_space_read_2(tag, handle, i);
sys/dev/pci/btvmei.c
531
dummy = bus_space_read_4(tag, handle, i);
sys/dev/pci/btvmeii.c
140
pcitag_t tag;
sys/dev/pci/btvmeii.c
154
tag = pci_make_tag(pc, secbus, 4, 0);
sys/dev/pci/btvmeii.c
155
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/pci/btvmeii.c
165
tag = pci_make_tag(pc, secbus, 8, 0);
sys/dev/pci/btvmeii.c
166
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/pci/btvmeii.c
188
pcitag_t tag;
sys/dev/pci/btvmeii.c
224
tag = pci_make_tag(pc, secbus, 8, 0);
sys/dev/pci/btvmeii.c
226
if (pci_mapreg_info(pc, tag, 0x10,
sys/dev/pci/btvmeii.c
243
if (pci_mapreg_info(pc, tag, 0x14,
sys/dev/pci/btvmeii.c
290
b3_2706_map_vme(void *vsc, vme_addr_t vmeaddr, vme_size_t len, vme_am_t am, vme_datasize_t datasizes, vme_swap_t swap, bus_space_tag_t *tag, bus_space_handle_t *handle, vme_mapresc_t *resc)
sys/dev/pci/btvmeii.c
354
*tag = sc->vmet;
sys/dev/pci/btvmeii.c
385
bus_space_tag_t tag;
sys/dev/pci/btvmeii.c
392
&tag, &handle, &resc);
sys/dev/pci/btvmeii.c
400
res = (*callback)(cbarg, tag, handle);
sys/dev/pci/btvmeii.c
405
dummy = bus_space_read_1(tag, handle, i);
sys/dev/pci/btvmeii.c
410
dummy = bus_space_read_2(tag, handle, i);
sys/dev/pci/btvmeii.c
415
dummy = bus_space_read_4(tag, handle, i);
sys/dev/pci/com_puc.c
100
iface = PCI_INTERFACE(pci_conf_read(aa->pc, aa->tag, PCI_CLASS_REG));
sys/dev/pci/com_puc.c
151
write_siig10x_usrreg(aa->pc, aa->tag, usrregno, 1);
sys/dev/pci/com_puc.c
153
write_siig20x_usrreg(aa->pc, aa->tag, usrregno, 1);
sys/dev/pci/cxgb/cxgb_sge.c
590
void *desc, void *sdesc, bus_dma_tag_t *tag,
sys/dev/pci/cxgb/cxgb_sge.c
601
*tag = sc->pa.pa_dmat;
sys/dev/pci/cxgb/cxgb_sge.c
604
err = bus_dmamem_alloc(*tag, len, PAGE_SIZE, 0, &phys_seg, 1,
sys/dev/pci/cxgb/cxgb_sge.c
614
err = bus_dmamem_map(*tag, &phys_seg, 1, len, &p,
sys/dev/pci/cyber.c
105
newreg = curreg = pci_conf_read(pc, tag, offset);
sys/dev/pci/cyber.c
113
pci_conf_write(pc, tag, offset, newreg);
sys/dev/pci/cyber.c
47
write_siig10x_usrreg(pci_chipset_tag_t pc, pcitag_t tag, int usrregno,
sys/dev/pci/cyber.c
52
newregs = curregs = pci_conf_read(pc, tag, SIIG10x_USR_BASE);
sys/dev/pci/cyber.c
84
pci_conf_write(pc, tag, SIIG10x_USR_BASE, newregs);
sys/dev/pci/cyber.c
88
write_siig20x_usrreg(pci_chipset_tag_t pc, pcitag_t tag, int usrregno,
sys/dev/pci/ehci_pci.c
122
pcitag_t tag = pa->pa_tag;
sys/dev/pci/ehci_pci.c
148
sc->sc_tag = tag;
sys/dev/pci/ehci_pci.c
171
pcireg_t intr = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/dev/pci/ehci_pci.c
175
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/ehci_pci.c
178
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/ehci_pci.c
214
switch (pci_conf_read(pc, tag, PCI_USBREV) & PCI_USBREV_MASK) {
sys/dev/pci/ehci_pci.c
261
ehci_get_ownership(&sc->sc, pc, tag);
sys/dev/pci/ehci_pci.c
351
ehci_dump_caps(ehci_softc_t *sc, pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/ehci_pci.c
359
cap = pci_conf_read(pc, tag, addr);
sys/dev/pci/ehci_pci.c
363
legctlsts = pci_conf_read(pc, tag,
sys/dev/pci/ehci_pci.c
380
ehci_release_ownership(ehci_softc_t *sc, pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/ehci_pci.c
390
cap = pci_conf_read(pc, tag, addr);
sys/dev/pci/ehci_pci.c
393
legsup = pci_conf_read(pc, tag, addr + PCI_EHCI_USBLEGSUP);
sys/dev/pci/ehci_pci.c
394
pci_conf_write(pc, tag, addr + PCI_EHCI_USBLEGSUP,
sys/dev/pci/ehci_pci.c
408
ehci_get_ownership(ehci_softc_t *sc, pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/ehci_pci.c
418
ehci_dump_caps(sc, pc, tag);
sys/dev/pci/ehci_pci.c
423
cap = pci_conf_read(pc, tag, addr);
sys/dev/pci/ehci_pci.c
426
legsup = pci_conf_read(pc, tag, addr + PCI_EHCI_USBLEGSUP);
sys/dev/pci/ehci_pci.c
429
pci_conf_write(pc, tag, addr + PCI_EHCI_USBLEGSUP,
sys/dev/pci/ehci_pci.c
432
legsup = pci_conf_read(pc, tag,
sys/dev/pci/ehci_pci.c
441
pci_conf_write(pc, tag,
sys/dev/pci/ehci_pci.c
449
pci_conf_write(pc, tag, addr + PCI_EHCI_USBLEGCTLSTS, 0);
sys/dev/pci/esa.c
1264
pcitag_t tag;
sys/dev/pci/esa.c
1272
tag = sc->sc_tag;
sys/dev/pci/esa.c
1281
data = pci_conf_read(pc, tag, PCI_LEGACY_AUDIO_CTRL);
sys/dev/pci/esa.c
1283
pci_conf_write(pc, tag, PCI_LEGACY_AUDIO_CTRL, data);
sys/dev/pci/esa.c
1360
pcitag_t tag;
sys/dev/pci/esa.c
1366
tag = sc->sc_tag;
sys/dev/pci/esa.c
1369
data = pci_conf_read(pc, tag, ESA_PCI_ALLEGRO_CONFIG);
sys/dev/pci/esa.c
1372
pci_conf_write(pc, tag, ESA_PCI_ALLEGRO_CONFIG, data);
sys/dev/pci/esa.c
1375
data = pci_conf_read(pc, tag, ESA_PCI_ALLEGRO_CONFIG);
sys/dev/pci/esa.c
1382
pci_conf_write(pc, tag, ESA_PCI_ALLEGRO_CONFIG, data);
sys/dev/pci/esa.c
1385
data = pci_conf_read(pc, tag, ESA_PCI_USER_CONFIG);
sys/dev/pci/esa.c
1387
pci_conf_write(pc, tag, ESA_PCI_USER_CONFIG, data);
sys/dev/pci/esa.c
930
pcitag_t tag;
sys/dev/pci/esa.c
941
tag = pa->pa_tag;
sys/dev/pci/esa.c
957
data = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/esa.c
960
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, data);
sys/dev/pci/esa.c
971
sc->sc_tag = tag;
sys/dev/pci/esm.c
1498
pcitag_t tag;
sys/dev/pci/esm.c
1510
tag = pa->pa_tag;
sys/dev/pci/esm.c
1518
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/esm.c
1519
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/esm.c
1535
ess->tag = tag;
sys/dev/pci/esm.c
1537
ess->subid = pci_conf_read(pc, tag, PCI_SUBSYS_ID_REG);
sys/dev/pci/esm.c
1580
data = pci_conf_read(pc, tag, CONF_LEGACY);
sys/dev/pci/esm.c
1581
pci_conf_write(pc, tag, CONF_LEGACY, data | LEGACY_DISABLED);
sys/dev/pci/esm.c
1587
data = pci_conf_read(pc, tag, CONF_MAESTRO);
sys/dev/pci/esm.c
1590
pci_conf_write(pc, tag, CONF_MAESTRO, data);
sys/dev/pci/esm.c
569
if (pci_conf_read(ess->pc, ess->tag, 0x58) & 1)
sys/dev/pci/esmvar.h
161
pcitag_t tag;
sys/dev/pci/gffb.c
216
bus_space_tag_t tag;
sys/dev/pci/gffb.c
297
&tag, &sc->sc_regh, &sc->sc_reg, &sc->sc_regsize)) {
sys/dev/pci/gffb.c
328
sc->sc_fbaddr = bus_space_vaddr(tag, sc->sc_fbh);
sys/dev/pci/gffb.c
838
gffb_dmastart(struct gffb_softc *sc, uint32_t tag, int size)
sys/dev/pci/gffb.c
842
gffb_dmanext(sc, ((size) << 18) | (tag));
sys/dev/pci/if_aq.c
1714
pcitag_t tag;
sys/dev/pci/if_aq.c
1724
sc->sc_pcitag = tag = pa->pa_tag;
sys/dev/pci/if_aq.c
1739
bar = pci_conf_read(pc, tag, PCI_BAR(0));
sys/dev/pci/if_aq.c
1745
memtype = pci_mapreg_type(pc, tag, PCI_BAR(0));
sys/dev/pci/if_aq.c
3266
uint32_t tag, uint32_t mask, uint32_t action)
sys/dev/pci/if_aq.c
3279
AQ_WRITE_REG(sc, AQ2_RPF_ACT_ART_REQ_TAG_REG(idx), tag);
sys/dev/pci/if_bgereg.h
2222
#define BGE_MEMWIN_READ(pc, tag, x, val) \
sys/dev/pci/if_bgereg.h
2224
pci_conf_write(pc, tag, BGE_PCI_MEMWIN_BASEADDR, \
sys/dev/pci/if_bgereg.h
2229
#define BGE_MEMWIN_WRITE(pc, tag, x, val) \
sys/dev/pci/if_bgereg.h
2231
pci_conf_write(pc, tag, BGE_PCI_MEMWIN_BASEADDR, \
sys/dev/pci/if_bgevar.h
145
#define PCI_SETBIT(pc, tag, reg, x) \
sys/dev/pci/if_bgevar.h
146
pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) | (x)))
sys/dev/pci/if_bgevar.h
147
#define PCI_CLRBIT(pc, tag, reg, x) \
sys/dev/pci/if_bgevar.h
148
pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) & ~(x)))
sys/dev/pci/if_bnxvar.h
93
#define PCI_SETBIT(pc, tag, reg, x) pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) | (x)))
sys/dev/pci/if_bnxvar.h
94
#define PCI_CLRBIT(pc, tag, reg, x) pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) & ~(x)))
sys/dev/pci/if_ena.c
267
dma->tag = adapter->sc_dmat;
sys/dev/pci/if_ena.c
269
if ((error = bus_dmamap_create(dma->tag, maxsize, 1, maxsize, 0,
sys/dev/pci/if_ena.c
276
error = bus_dmamem_alloc(dma->tag, maxsize, 8, 0, &dma->seg, 1, &dma->nseg,
sys/dev/pci/if_ena.c
284
error = bus_dmamem_map(dma->tag, &dma->seg, dma->nseg, maxsize,
sys/dev/pci/if_ena.c
293
error = bus_dmamap_load(dma->tag, dma->map, dma->vaddr,
sys/dev/pci/if_ena.c
304
bus_dmamem_unmap(dma->tag, dma->vaddr, maxsize);
sys/dev/pci/if_ena.c
306
bus_dmamem_free(dma->tag, &dma->seg, dma->nseg);
sys/dev/pci/if_eqos_pci.c
105
const pcitag_t tag = pa->pa_tag;
sys/dev/pci/if_eqos_pci.c
117
psc->sc_tag = tag;
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
341
(void)pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/if_ex_pci.c
342
base0 = pci_conf_read(pc, tag, PCI_BAR0);
sys/dev/pci/if_ex_pci.c
343
base1 = pci_conf_read(pc, tag, PCI_BAR1);
sys/dev/pci/if_ex_pci.c
344
romaddr = pci_conf_read(pc, tag, PCI_EXP_ROM_BAR);
sys/dev/pci/if_ex_pci.c
345
pci_cache_lat= pci_conf_read(pc, tag, PCI_CACHE_LAT_BIST);
sys/dev/pci/if_ex_pci.c
346
pci_int_lat = pci_conf_read(pc, tag, PCI_INT_GNT_LAT);
sys/dev/pci/if_ex_pci.c
348
pci_conf_write(pc, tag, PCI_POWERCTL, 0);
sys/dev/pci/if_ex_pci.c
349
pci_conf_write(pc, tag, PCI_BAR0, base0);
sys/dev/pci/if_ex_pci.c
350
pci_conf_write(pc, tag, PCI_BAR1, base1);
sys/dev/pci/if_ex_pci.c
351
pci_conf_write(pc, tag, PCI_EXP_ROM_BAR, romaddr);
sys/dev/pci/if_ex_pci.c
352
pci_conf_write(pc, tag, PCI_INT_GNT_LAT, pci_int_lat);
sys/dev/pci/if_ex_pci.c
353
pci_conf_write(pc, tag, PCI_CACHE_LAT_BIST, pci_cache_lat);
sys/dev/pci/if_ex_pci.c
354
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/if_iavf.c
1491
iavf_pci_csr_setup(pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/if_iavf.c
1495
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/if_iavf.c
1498
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/if_iwm.c
1249
iwm_dma_contig_alloc(bus_dma_tag_t tag, struct iwm_dma_info *dma,
sys/dev/pci/if_iwm.c
1255
dma->tag = tag;
sys/dev/pci/if_iwm.c
1258
err = bus_dmamap_create(tag, size, 1, size, 0, BUS_DMA_NOWAIT,
sys/dev/pci/if_iwm.c
1263
err = bus_dmamem_alloc(tag, size, alignment, 0, &dma->seg, 1, &nsegs,
sys/dev/pci/if_iwm.c
1268
err = bus_dmamem_map(tag, &dma->seg, 1, size, &va, BUS_DMA_NOWAIT);
sys/dev/pci/if_iwm.c
1273
err = bus_dmamap_load(tag, dma->map, dma->vaddr, size, NULL,
sys/dev/pci/if_iwm.c
1279
bus_dmamap_sync(tag, dma->map, 0, size, BUS_DMASYNC_PREWRITE);
sys/dev/pci/if_iwm.c
1293
bus_dmamap_sync(dma->tag, dma->map, 0, dma->size,
sys/dev/pci/if_iwm.c
1295
bus_dmamap_unload(dma->tag, dma->map);
sys/dev/pci/if_iwm.c
1296
bus_dmamem_unmap(dma->tag, dma->vaddr, dma->size);
sys/dev/pci/if_iwm.c
1297
bus_dmamem_free(dma->tag, &dma->seg, 1);
sys/dev/pci/if_iwm.c
1300
bus_dmamap_destroy(dma->tag, dma->map);
sys/dev/pci/if_iwmvar.h
236
bus_dma_tag_t tag;
sys/dev/pci/if_iwn.c
1231
iwn_dma_contig_alloc(bus_dma_tag_t tag, struct iwn_dma_info *dma, void **kvap,
sys/dev/pci/if_iwn.c
1236
dma->tag = tag;
sys/dev/pci/if_iwn.c
1239
error = bus_dmamap_create(tag, size, 1, size, 0, BUS_DMA_NOWAIT,
sys/dev/pci/if_iwn.c
1244
error = bus_dmamem_alloc(tag, size, alignment, 0, &dma->seg, 1, &nsegs,
sys/dev/pci/if_iwn.c
1249
error = bus_dmamem_map(tag, &dma->seg, 1, size, &dma->vaddr,
sys/dev/pci/if_iwn.c
1254
error = bus_dmamap_load(tag, dma->map, dma->vaddr, size, NULL,
sys/dev/pci/if_iwn.c
1261
bus_dmamap_sync(tag, dma->map, 0, size, BUS_DMASYNC_PREWRITE);
sys/dev/pci/if_iwn.c
1278
bus_dmamap_sync(dma->tag, dma->map, 0, dma->size,
sys/dev/pci/if_iwn.c
1280
bus_dmamap_unload(dma->tag, dma->map);
sys/dev/pci/if_iwn.c
1281
bus_dmamem_unmap(dma->tag, dma->vaddr, dma->size);
sys/dev/pci/if_iwn.c
1282
bus_dmamem_free(dma->tag, &dma->seg, 1);
sys/dev/pci/if_iwn.c
1285
bus_dmamap_destroy(dma->tag, dma->map);
sys/dev/pci/if_iwnvar.h
59
bus_dma_tag_t tag;
sys/dev/pci/if_ixl.c
1888
ixl_pci_csr_setup(pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/if_ixl.c
1892
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/if_ixl.c
1895
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/if_rtw_pci.c
328
pcitag_t tag = psc->psc_tag;
sys/dev/pci/if_rtw_pci.c
344
bhlc = pci_conf_read(psc->psc_pc, tag, PCI_BHLC_REG);
sys/dev/pci/if_rtw_pci.c
349
pci_conf_write(psc->psc_pc, tag, PCI_BHLC_REG, bhlc);
sys/dev/pci/if_rtw_pci.c
353
csr = pci_conf_read(psc->psc_pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/if_rtw_pci.c
356
pci_conf_write(psc->psc_pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/if_vmx.c
2189
bus_dma_tag_t tag;
sys/dev/pci/if_vmx.c
2193
tag = sc->vmx_dmat;
sys/dev/pci/if_vmx.c
2226
bus_dmamap_sync(tag, rxb->vrxb_dmamap,
sys/dev/pci/if_vmx.c
2229
bus_dmamap_unload(tag, rxb->vrxb_dmamap);
sys/dev/pci/if_vmx.c
3067
bus_dma_tag_t tag;
sys/dev/pci/if_vmx.c
3071
tag = txq->vxtxq_sc->vmx_dmat;
sys/dev/pci/if_vmx.c
3073
error = bus_dmamap_load_mbuf(tag, dmap, m, BUS_DMA_NOWAIT);
sys/dev/pci/if_vmx.c
3080
error = bus_dmamap_load_mbuf(tag, dmap, m, BUS_DMA_NOWAIT);
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
1774
if ((error = pci_set_powerstate(pc, tag, PCI_PMCSR_STATE_D0)))
sys/dev/pci/if_wpi.c
1352
bus_dmamap_sync(dma->tag, dma->map, 0, dma->size, BUS_DMASYNC_PREWRITE);
sys/dev/pci/if_wpi.c
1384
bus_dmamap_sync(dma->tag, dma->map, 0, dma->size, BUS_DMASYNC_PREWRITE);
sys/dev/pci/if_wpi.c
2401
bus_dmamap_sync(dma->tag, dma->map, 0, dma->size, BUS_DMASYNC_PREWRITE);
sys/dev/pci/if_wpi.c
2409
bus_dmamap_sync(dma->tag, dma->map, 0, dma->size, BUS_DMASYNC_PREWRITE);
sys/dev/pci/if_wpi.c
490
wpi_dma_contig_alloc(bus_dma_tag_t tag, struct wpi_dma_info *dma, void **kvap,
sys/dev/pci/if_wpi.c
495
dma->tag = tag;
sys/dev/pci/if_wpi.c
498
error = bus_dmamap_create(tag, size, 1, size, 0, flags, &dma->map);
sys/dev/pci/if_wpi.c
502
error = bus_dmamem_alloc(tag, size, alignment, 0, &dma->seg, 1, &nsegs,
sys/dev/pci/if_wpi.c
507
error = bus_dmamem_map(tag, &dma->seg, 1, size, &dma->vaddr, flags);
sys/dev/pci/if_wpi.c
511
error = bus_dmamap_load(tag, dma->map, dma->vaddr, size, NULL, flags);
sys/dev/pci/if_wpi.c
516
bus_dmamap_sync(dma->tag, dma->map, 0, size, BUS_DMASYNC_PREWRITE);
sys/dev/pci/if_wpi.c
533
bus_dmamap_unload(dma->tag, dma->map);
sys/dev/pci/if_wpi.c
534
bus_dmamem_unmap(dma->tag, dma->vaddr, dma->size);
sys/dev/pci/if_wpi.c
535
bus_dmamem_free(dma->tag, &dma->seg, 1);
sys/dev/pci/if_wpi.c
538
bus_dmamap_destroy(dma->tag, dma->map);
sys/dev/pci/if_wpivar.h
56
bus_dma_tag_t tag;
sys/dev/pci/igc/if_igc.h
266
void *tag;
sys/dev/pci/igsfb_pci.c
106
pcitag_t tag;
sys/dev/pci/igsfb_pci.c
110
tag = pci_make_tag(pc, bus, device, function);
sys/dev/pci/igsfb_pci.c
111
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/pci/igsfb_pci.c
117
if (igsfb_pci_map_regs(dc, iot, memt, pc, tag, PCI_PRODUCT(id)) != 0)
sys/dev/pci/igsfb_pci.c
129
igsfb_pci_constag = tag;
sys/dev/pci/igsfb_pci.c
136
igsfb_pci_is_console(pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/igsfb_pci.c
140
!memcmp(&tag, &igsfb_pci_constag, sizeof tag);
sys/dev/pci/igsfb_pci.c
208
pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/igsfb_pci.c
222
if (pci_mapreg_info(pc, tag,
sys/dev/pci/ips.c
1975
ips_dmamem_alloc(struct dmamem *dm, bus_dma_tag_t tag, bus_size_t size)
sys/dev/pci/ips.c
1979
dm->dm_tag = tag;
sys/dev/pci/ips.c
1982
if (bus_dmamap_create(tag, size, 1, size, 0,
sys/dev/pci/ips.c
1985
if (bus_dmamem_alloc(tag, size, 0, 0, &dm->dm_seg, 1, &nsegs,
sys/dev/pci/ips.c
1988
if (bus_dmamem_map(tag, &dm->dm_seg, 1, size, &dm->dm_vaddr,
sys/dev/pci/ips.c
1991
if (bus_dmamap_load(tag, dm->dm_map, dm->dm_vaddr, size, NULL,
sys/dev/pci/ips.c
1998
bus_dmamem_unmap(tag, dm->dm_vaddr, size);
sys/dev/pci/ips.c
2000
bus_dmamem_free(tag, &dm->dm_seg, 1);
sys/dev/pci/ips.c
2002
bus_dmamap_destroy(tag, dm->dm_map);
sys/dev/pci/ixgbe/if_sriov.c
219
uint16_t tag)
sys/dev/pci/ixgbe/if_sriov.c
226
vf->vlan_tag = tag;
sys/dev/pci/ixgbe/if_sriov.c
239
if (tag == 0) {
sys/dev/pci/ixgbe/if_sriov.c
250
vmvir = (tag | IXGBE_VMVIR_VLANA_DEFAULT);
sys/dev/pci/ixgbe/if_sriov.c
463
uint16_t tag;
sys/dev/pci/ixgbe/if_sriov.c
467
tag = msg[1] & IXGBE_VLVF_VLANID_MASK;
sys/dev/pci/ixgbe/if_sriov.c
475
if (tag == 0 && enable != 0) {
sys/dev/pci/ixgbe/if_sriov.c
480
ixgbe_set_vfta(hw, tag, vf->pool, enable, false);
sys/dev/pci/ixgbe/ixgbe.c
2654
if (pci_get_capability(sc->osdep.pc, sc->osdep.tag,
sys/dev/pci/ixgbe/ixgbe.c
2665
link = pci_conf_read(sc->osdep.pc, sc->osdep.tag,
sys/dev/pci/ixgbe/ixgbe.c
7082
msgs = pci_msix_count(sc->osdep.pc, sc->osdep.tag);
sys/dev/pci/ixgbe/ixgbe.c
7138
msgs = pci_msi_count(sc->osdep.pc, sc->osdep.tag);
sys/dev/pci/ixgbe/ixgbe.c
816
sc->osdep.tag = pa->pa_tag;
sys/dev/pci/ixgbe/ixgbe_netbsd.c
123
ixgbe_pci_enable_busmaster(pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/ixgbe/ixgbe_netbsd.c
127
pci_cmd_word = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/ixgbe/ixgbe_netbsd.c
130
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, pci_cmd_word);
sys/dev/pci/ixgbe/ixgbe_osdep.c
53
pcitag_t tag = hw->back->osdep.tag;
sys/dev/pci/ixgbe/ixgbe_osdep.c
57
return pci_conf_read(pc, tag, reg) & __BITS(15, 0);
sys/dev/pci/ixgbe/ixgbe_osdep.c
59
return __SHIFTOUT(pci_conf_read(pc, tag, reg - 2),
sys/dev/pci/ixgbe/ixgbe_osdep.c
71
pcitag_t tag = hw->back->osdep.tag;
sys/dev/pci/ixgbe/ixgbe_osdep.c
76
old = pci_conf_read(pc, tag, reg) & __BITS(31, 16);
sys/dev/pci/ixgbe/ixgbe_osdep.c
77
pci_conf_write(pc, tag, reg, value | old);
sys/dev/pci/ixgbe/ixgbe_osdep.c
80
old = pci_conf_read(pc, tag, reg - 2) & __BITS(15, 0);
sys/dev/pci/ixgbe/ixgbe_osdep.c
81
pci_conf_write(pc, tag, reg - 2,
sys/dev/pci/ixgbe/ixgbe_osdep.h
174
pcitag_t tag;
sys/dev/pci/ixgbe/ixv.c
325
sc->osdep.tag = pa->pa_tag;
sys/dev/pci/ixgbe/ixv.c
3369
pcitag_t tag;
sys/dev/pci/ixgbe/ixv.c
3378
tag = sc->osdep.tag;
sys/dev/pci/ixgbe/ixv.c
3503
pci_get_capability(pc, tag, PCI_CAP_MSIX, &rid, NULL);
sys/dev/pci/ixgbe/ixv.c
3505
msix_ctrl = pci_conf_read(pc, tag, rid);
sys/dev/pci/ixgbe/ixv.c
3507
pci_conf_write(pc, tag, rid, msix_ctrl);
sys/dev/pci/ixgbe/ixv.c
3531
msgs = pci_msix_count(sc->osdep.pc, sc->osdep.tag);
sys/dev/pci/joy_pci.c
53
static int bar_is_io(pci_chipset_tag_t pc, pcitag_t tag, int reg);
sys/dev/pci/joy_pci.c
75
bar_is_io(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/dev/pci/joy_pci.c
79
address = pci_conf_read(pc, tag, reg);
sys/dev/pci/joy_pci.c
80
pci_conf_write(pc, tag, reg, 0xffffffff);
sys/dev/pci/joy_pci.c
81
mask = pci_conf_read(pc, tag, reg);
sys/dev/pci/joy_pci.c
82
pci_conf_write(pc, tag, reg, address);
sys/dev/pci/lynxfb.c
170
pcitag_t tag;
sys/dev/pci/lynxfb.c
197
pcitag_t tag, pcireg_t id)
sys/dev/pci/lynxfb.c
211
if (pci_mapreg_info(pc, tag, PCI_MAPREG_START, PCI_MAPREG_TYPE_MEM,
sys/dev/pci/lynxfb.c
236
lynxfb_console.tag = tag;
sys/dev/pci/lynxfb.c
246
lynxfb_is_console(struct lynxfb_softc *sc, pcitag_t tag)
sys/dev/pci/lynxfb.c
250
!memcmp(&lynxfb_console.tag, &tag, sizeof(tag)));
sys/dev/pci/ohci_pci.c
105
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/ohci_pci.c
127
sc->sc_tag = tag;
sys/dev/pci/ohci_pci.c
131
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/ohci_pci.c
88
pcitag_t tag = pa->pa_tag;
sys/dev/pci/pccbb.c
1815
cb_show_regs(pci_chipset_tag_t pc, pcitag_t tag, bus_space_tag_t memt,
sys/dev/pci/pccbb.c
1823
printf(" %08x", pci_conf_read(pc, tag, i));
sys/dev/pci/pccbb.c
1828
printf(" %08x", pci_conf_read(pc, tag, i));
sys/dev/pci/pccbb.c
1868
pccbb_conf_read(cardbus_chipset_tag_t cc, pcitag_t tag, int offset)
sys/dev/pci/pccbb.c
1880
reg = pci_conf_read(sc->sc_pc, tag, offset);
sys/dev/pci/pccbb.c
1895
pccbb_conf_write(cardbus_chipset_tag_t cc, pcitag_t tag, int reg, pcireg_t val)
sys/dev/pci/pccbb.c
1899
pci_conf_write(sc->sc_pc, tag, reg, val);
sys/dev/pci/pccbb.c
2991
pcitag_t tag;
sys/dev/pci/pccbb.c
3085
tag = sc->sc_tag;
sys/dev/pci/pccbb.c
3086
pci_conf_write(pc, tag, offs, win[0].win_start);
sys/dev/pci/pccbb.c
3087
pci_conf_write(pc, tag, offs + 4, win[0].win_limit);
sys/dev/pci/pccbb.c
3088
pci_conf_write(pc, tag, offs + 8, win[1].win_start);
sys/dev/pci/pccbb.c
3089
pci_conf_write(pc, tag, offs + 12, win[1].win_limit);
sys/dev/pci/pccbb.c
3091
(unsigned long)pci_conf_read(pc, tag, offs),
sys/dev/pci/pccbb.c
3092
(unsigned long)pci_conf_read(pc, tag, offs + 4) + align,
sys/dev/pci/pccbb.c
3093
(unsigned long)pci_conf_read(pc, tag, offs + 8),
sys/dev/pci/pccbb.c
3094
(unsigned long)pci_conf_read(pc, tag, offs + 12) + align));
sys/dev/pci/pccbb.c
3097
pcireg_t bcr = pci_conf_read(pc, tag, PCI_BRIDGE_CONTROL_REG);
sys/dev/pci/pccbb.c
3104
pci_conf_write(pc, tag, PCI_BRIDGE_CONTROL_REG, bcr);
sys/dev/pci/pccbb.c
712
pcitag_t tag = sc->sc_tag;
sys/dev/pci/pccbb.c
722
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pccbb.c
735
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/pccbb.c
740
lscp = pci_conf_read(pc, tag, PCI_CB_LSCP_REG);
sys/dev/pci/pccbb.c
744
pci_conf_write(pc, tag, PCI_CB_LSCP_REG, lscp);
sys/dev/pci/pccbb.c
747
PCI_CB_LATENCY(lscp), pci_conf_read(pc, tag, PCI_CB_LSCP_REG)));
sys/dev/pci/pccbb.c
752
bhlc = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/dev/pci/pccbb.c
756
pci_conf_write(pc, tag, PCI_BHLC_REG, bhlc);
sys/dev/pci/pccbb.c
759
PCI_LATTIMER(bhlc), pci_conf_read(pc, tag, PCI_BHLC_REG)));
sys/dev/pci/pccbb.c
763
bcr = pci_conf_read(pc, tag, PCI_BRIDGE_CONTROL_REG);
sys/dev/pci/pccbb.c
774
pci_conf_write(pc, tag, PCI_BRIDGE_CONTROL_REG, bcr);
sys/dev/pci/pccbb.c
778
cbctl = pci_conf_read(pc, tag, PCI_CBCTRL);
sys/dev/pci/pccbb.c
786
pci_conf_write(pc, tag, PCI_CBCTRL, cbctl);
sys/dev/pci/pccbb.c
790
sysctrl = pci_conf_read(pc, tag, PCI_SYSCTRL);
sys/dev/pci/pccbb.c
801
pci_conf_write(pc, tag, PCI_SYSCTRL, sysctrl);
sys/dev/pci/pccbb.c
808
pci_conf_write(pc, tag, PCI_SYSCTRL, sysctrl);
sys/dev/pci/pccbb.c
821
mfunc = pci_conf_read(pc, tag, PCI12XX_MFUNC);
sys/dev/pci/pccbb.c
827
if ((pci_conf_read(pc, tag, PCI_SYSCTRL) &
sys/dev/pci/pccbb.c
832
pci_conf_write(pc, tag, PCI12XX_MFUNC, mfunc);
sys/dev/pci/pccbb.c
842
pci_conf_write(pc, tag, PCI12XX_MMCTRL, 0);
sys/dev/pci/pccbb.c
844
sysctrl = pci_conf_read(pc, tag, PCI_SYSCTRL);
sys/dev/pci/pccbb.c
846
pci_conf_write(pc, tag, PCI_SYSCTRL, sysctrl);
sys/dev/pci/pccbb.c
847
cbctl = pci_conf_read(pc, tag, PCI_CBCTRL);
sys/dev/pci/pccbb.c
849
pci_conf_write(pc, tag, PCI_CBCTRL, cbctl);
sys/dev/pci/pccbb.c
853
sockctl = pci_conf_read(pc, tag, TOPIC_SOCKET_CTRL);
sys/dev/pci/pccbb.c
855
pci_conf_write(pc, tag, TOPIC_SOCKET_CTRL, sockctl);
sys/dev/pci/pccbb.c
856
slotctl = pci_conf_read(pc, tag, TOPIC_SLOT_CTRL);
sys/dev/pci/pccbb.c
863
pci_conf_write(pc, tag, TOPIC_SLOT_CTRL, slotctl);
sys/dev/pci/pccbb.c
867
slotctl = pci_conf_read(pc, tag, TOPIC_SLOT_CTRL);
sys/dev/pci/pccbb.c
876
pci_conf_write(pc, tag, TOPIC_SLOT_CTRL, slotctl);
sys/dev/pci/pccbb.c
886
pci_conf_write(pc, tag, PCI_CB_MEMBASE0, 0xffffffff);
sys/dev/pci/pccbb.c
887
pci_conf_write(pc, tag, PCI_CB_MEMLIMIT0, 0);
sys/dev/pci/pccbb.c
888
pci_conf_write(pc, tag, PCI_CB_MEMBASE1, 0xffffffff);
sys/dev/pci/pccbb.c
889
pci_conf_write(pc, tag, PCI_CB_MEMLIMIT1, 0);
sys/dev/pci/pccbb.c
890
pci_conf_write(pc, tag, PCI_CB_IOBASE0, 0xffffffff);
sys/dev/pci/pccbb.c
891
pci_conf_write(pc, tag, PCI_CB_IOLIMIT0, 0);
sys/dev/pci/pccbb.c
892
pci_conf_write(pc, tag, PCI_CB_IOBASE1, 0xffffffff);
sys/dev/pci/pccbb.c
893
pci_conf_write(pc, tag, PCI_CB_IOLIMIT1, 0);
sys/dev/pci/pci.c
1003
pcs->msi_maddr = pci_conf_read(pc, tag, off + PCI_MSI_MADDR);
sys/dev/pci/pci.c
1005
pcs->msi_maddr64_hi = pci_conf_read(pc, tag,
sys/dev/pci/pci.c
1009
pcs->msi_mdata = pci_conf_read(pc, tag,
sys/dev/pci/pci.c
1014
pcs->msi_mask = pci_conf_read(pc, tag,
sys/dev/pci/pci.c
1019
if (pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL) != 0)
sys/dev/pci/pci.c
1020
pcs->msix_ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/dev/pci/pci.c
1024
pci_conf_restore(pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci.c
1031
val = pci_conf_read(pc, tag, (off * 4));
sys/dev/pci/pci.c
1033
pci_conf_write(pc, tag, (off * 4), pcs->reg[off]);
sys/dev/pci/pci.c
1037
if (pci_get_capability(pc, tag, PCI_CAP_PCIX, &off, NULL) != 0)
sys/dev/pci/pci.c
1038
pci_conf_write(pc, tag, off + PCIX_CMD, pcs->x_csr);
sys/dev/pci/pci.c
1041
if (pci_get_capability(pc, tag, PCI_CAP_PCIEXPRESS, &off, NULL) != 0) {
sys/dev/pci/pci.c
1042
pcireg_t xcap = pci_conf_read(pc, tag, off + PCIE_XCAP);
sys/dev/pci/pci.c
1046
pci_conf_write(pc, tag, off + PCIE_DCSR, pcs->e_dcr);
sys/dev/pci/pci.c
1053
pci_conf_write(pc, tag, off + PCIE_LCSR, pcs->e_lcr);
sys/dev/pci/pci.c
1056
pci_conf_write(pc, tag, off + PCIE_SLCSR, pcs->e_slcr);
sys/dev/pci/pci.c
1059
pci_conf_write(pc, tag, off + PCIE_RCR, pcs->e_rcr);
sys/dev/pci/pci.c
1062
pci_conf_write(pc, tag, off + PCIE_DCSR2, pcs->e_dcr2);
sys/dev/pci/pci.c
1065
pci_conf_write(pc, tag, off + PCIE_LCSR2,
sys/dev/pci/pci.c
1073
if (pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL) != 0) {
sys/dev/pci/pci.c
1078
reg = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/dev/pci/pci.c
1079
pci_conf_write(pc, tag, off + PCI_MSI_CTL,
sys/dev/pci/pci.c
1086
pci_conf_write(pc, tag, off + PCI_MSI_MADDR, pcs->msi_maddr);
sys/dev/pci/pci.c
1089
pci_conf_write(pc, tag,
sys/dev/pci/pci.c
1093
pci_conf_write(pc, tag,
sys/dev/pci/pci.c
1099
pci_conf_write(pc, tag,
sys/dev/pci/pci.c
1104
pci_conf_write(pc, tag, off + PCI_MSI_CTL, pcs->msi_ctl);
sys/dev/pci/pci.c
1108
if (pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL) != 0)
sys/dev/pci/pci.c
1109
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, pcs->msix_ctl);
sys/dev/pci/pci.c
1116
pci_get_powerstate_int(pci_chipset_tag_t pc, pcitag_t tag , pcireg_t *state,
sys/dev/pci/pci.c
1121
value = pci_conf_read(pc, tag, offset + PCI_PMCSR);
sys/dev/pci/pci.c
1136
pci_get_powerstate(pci_chipset_tag_t pc, pcitag_t tag , pcireg_t *state)
sys/dev/pci/pci.c
1141
if (!pci_get_capability(pc, tag, PCI_CAP_PWRMGMT, &offset, &value))
sys/dev/pci/pci.c
1144
return pci_get_powerstate_int(pc, tag, state, offset);
sys/dev/pci/pci.c
1148
pci_set_powerstate_int(pci_chipset_tag_t pc, pcitag_t tag, pcireg_t state,
sys/dev/pci/pci.c
1154
value = pci_conf_read(pc, tag, offset + PCI_PMCSR);
sys/dev/pci/pci.c
1189
pci_conf_write(pc, tag, offset + PCI_PMCSR, value);
sys/dev/pci/pci.c
1200
pci_set_powerstate(pci_chipset_tag_t pc, pcitag_t tag, pcireg_t state)
sys/dev/pci/pci.c
1205
if (!pci_get_capability(pc, tag, PCI_CAP_PWRMGMT, &offset, &value)) {
sys/dev/pci/pci.c
1210
return pci_set_powerstate_int(pc, tag, state, offset, value);
sys/dev/pci/pci.c
1214
pci_activate(pci_chipset_tag_t pc, pcitag_t tag, device_t dev,
sys/dev/pci/pci.c
1220
if ((error = pci_get_powerstate(pc, tag, &pmode)))
sys/dev/pci/pci.c
1239
error = (*wakefun)(pc, tag, dev, pmode);
sys/dev/pci/pci.c
1245
if ((error = pci_set_powerstate(pc, tag, PCI_PMCSR_STATE_D0)))
sys/dev/pci/pci.c
1252
pci_activate_null(pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci.c
1298
pci_pme_check_and_clear(device_t dv, pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci.c
1303
pmcsr = pci_conf_read(pc, tag, off + PCI_PMCSR);
sys/dev/pci/pci.c
1308
pci_conf_write(pc, tag, off + PCI_PMCSR, pmcsr);
sys/dev/pci/pci.c
273
pci_bus_get_child_devhandle(struct pci_softc *sc, pcitag_t tag)
sys/dev/pci/pci.c
277
.tag = tag,
sys/dev/pci/pci.c
293
pci_probe_device1(struct pci_softc *sc, pcitag_t tag,
sys/dev/pci/pci.c
307
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/dev/pci/pci.c
313
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/pci/pci.c
322
bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/dev/pci/pci.c
327
pciclass = pci_conf_read(pc, tag, PCI_CLASS_REG);
sys/dev/pci/pci.c
349
if (pci_mapreg_probe(pc, tag, bar, &type) == 0)
sys/dev/pci/pci.c
358
if (pci_mapreg_info(pc, tag, bar, type,
sys/dev/pci/pci.c
396
pa.pa_tag = tag;
sys/dev/pci/pci.c
417
pa.pa_intrtag = tag;
sys/dev/pci/pci.c
423
intr = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
sys/dev/pci/pci.c
443
if (pci_get_ht_capability(pc, tag, PCI_HT_CAP_MSIMAP, &off, &cap)) {
sys/dev/pci/pci.c
451
addr = pci_conf_read(pc, tag,
sys/dev/pci/pci.c
453
addr |= (uint64_t)pci_conf_read(pc, tag,
sys/dev/pci/pci.c
482
pci_conf_capture(pc, tag, &c->c_conf);
sys/dev/pci/pci.c
483
if (pci_get_powerstate(pc, tag, &c->c_powerstate) == 0)
sys/dev/pci/pci.c
504
pcitag_t tag;
sys/dev/pci/pci.c
514
tag = pci_make_tag(sc->sc_pc, sc->sc_bus, d, f);
sys/dev/pci/pci.c
516
pci_set_powerstate(sc->sc_pc, tag, c->c_powerstate);
sys/dev/pci/pci.c
517
pci_conf_restore(sc->sc_pc, tag, &c->c_conf);
sys/dev/pci/pci.c
526
pci_get_capability(pci_chipset_tag_t pc, pcitag_t tag, int capid,
sys/dev/pci/pci.c
532
reg = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pci.c
537
reg = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/dev/pci/pci.c
550
ofs = PCI_CAPLIST_PTR(pci_conf_read(pc, tag, ofs));
sys/dev/pci/pci.c
555
pci_decompose_tag(pc, tag, &bus, &device, &function);
sys/dev/pci/pci.c
561
reg = pci_conf_read(pc, tag, ofs);
sys/dev/pci/pci.c
576
pci_get_ht_capability(pci_chipset_tag_t pc, pcitag_t tag, int capid,
sys/dev/pci/pci.c
582
if (pci_get_capability(pc, tag, PCI_CAP_LDT, &ofs, NULL) == 0)
sys/dev/pci/pci.c
590
reg = pci_conf_read(pc, tag, ofs);
sys/dev/pci/pci.c
609
pci_msi_count(pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/pci.c
615
if (pci_get_capability(pc, tag, PCI_CAP_MSI, &offset, NULL) == 0)
sys/dev/pci/pci.c
618
reg = pci_conf_read(pc, tag, offset + PCI_MSI_CTL);
sys/dev/pci/pci.c
634
pci_msix_count(pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/pci.c
639
if (pci_get_capability(pc, tag, PCI_CAP_MSIX, &offset, NULL) == 0)
sys/dev/pci/pci.c
642
reg = pci_conf_read(pc, tag, offset + PCI_MSIX_CTL);
sys/dev/pci/pci.c
648
pci_get_ext_capability(pci_chipset_tag_t pc, pcitag_t tag, int capid,
sys/dev/pci/pci.c
655
if (!pci_get_capability(pc, tag, PCI_CAP_PCIEXPRESS, NULL, NULL))
sys/dev/pci/pci.c
659
reg = pci_conf_read(pc, tag, ofs);
sys/dev/pci/pci.c
678
reg = pci_conf_read(pc, tag, ofs);
sys/dev/pci/pci.c
751
pcitag_t tag;
sys/dev/pci/pci.c
797
tag = pci_make_tag(pc, sc->sc_bus, device, 0);
sys/dev/pci/pci.c
799
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/pci/pci.c
808
bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/dev/pci/pci.c
850
tag = pci_make_tag(pc, sc->sc_bus, device, function);
sys/dev/pci/pci.c
851
ret = pci_probe_device1(sc, tag, match, cookie, pap);
sys/dev/pci/pci.c
866
pci_vpd_read(pci_chipset_tag_t pc, pcitag_t tag, int offset, int count,
sys/dev/pci/pci.c
875
if (pci_get_capability(pc, tag, PCI_CAP_VPD, &ofs, ®) == 0)
sys/dev/pci/pci.c
882
pci_conf_write(pc, tag, ofs, reg);
sys/dev/pci/pci.c
893
reg = pci_conf_read(pc, tag, ofs);
sys/dev/pci/pci.c
895
data[i] = pci_conf_read(pc, tag, PCI_VPD_DATAREG(ofs));
sys/dev/pci/pci.c
902
pci_vpd_write(pci_chipset_tag_t pc, pcitag_t tag, int offset, int count,
sys/dev/pci/pci.c
911
if (pci_get_capability(pc, tag, PCI_CAP_VPD, &ofs, ®) == 0)
sys/dev/pci/pci.c
915
pci_conf_write(pc, tag, PCI_VPD_DATAREG(ofs), data[i]);
sys/dev/pci/pci.c
920
pci_conf_write(pc, tag, ofs, reg);
sys/dev/pci/pci.c
931
reg = pci_conf_read(pc, tag, ofs);
sys/dev/pci/pci.c
949
pci_conf_capture(pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci.c
955
pcs->reg[off] = pci_conf_read(pc, tag, (off * 4));
sys/dev/pci/pci.c
958
if (pci_get_capability(pc, tag, PCI_CAP_PCIX, &off, NULL) != 0)
sys/dev/pci/pci.c
959
pcs->x_csr = pci_conf_read(pc, tag, off + PCIX_CMD);
sys/dev/pci/pci.c
962
if (pci_get_capability(pc, tag, PCI_CAP_PCIEXPRESS, &off, NULL) != 0) {
sys/dev/pci/pci.c
963
pcireg_t xcap = pci_conf_read(pc, tag, off + PCIE_XCAP);
sys/dev/pci/pci.c
967
pcs->e_dcr = (uint16_t)pci_conf_read(pc, tag, off + PCIE_DCSR);
sys/dev/pci/pci.c
970
pcs->e_lcr = (uint16_t)pci_conf_read(pc, tag,
sys/dev/pci/pci.c
974
pcs->e_slcr = (uint16_t)pci_conf_read(pc, tag,
sys/dev/pci/pci.c
978
pcs->e_rcr = (uint16_t)pci_conf_read(pc, tag,
sys/dev/pci/pci.c
982
pcs->e_dcr2 = (uint16_t)pci_conf_read(pc, tag,
sys/dev/pci/pci.c
986
pcs->e_lcr2 = (uint16_t)pci_conf_read(pc, tag,
sys/dev/pci/pci.c
994
if (pci_get_capability(pc, tag, PCI_CAP_MSI, &off, NULL) != 0) {
sys/dev/pci/pci.c
997
pcs->msi_ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
sys/dev/pci/pci_calls.h
70
pcitag_t tag; /* IN */
sys/dev/pci/pci_map.c
113
pci_mem_find(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t type,
sys/dev/pci/pci_map.c
150
address = pci_conf_read(pc, tag, reg);
sys/dev/pci/pci_map.c
151
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pci_map.c
157
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/pci_map.c
159
pci_conf_write(pc, tag, reg, 0xffffffff);
sys/dev/pci/pci_map.c
160
mask = pci_conf_read(pc, tag, reg);
sys/dev/pci/pci_map.c
161
pci_conf_write(pc, tag, reg, address);
sys/dev/pci/pci_map.c
163
address1 = pci_conf_read(pc, tag, reg + 4);
sys/dev/pci/pci_map.c
165
pci_conf_write(pc, tag, reg + 4, 0xffffffff);
sys/dev/pci/pci_map.c
166
mask1 = pci_conf_read(pc, tag, reg + 4);
sys/dev/pci/pci_map.c
167
pci_conf_write(pc, tag, reg + 4, address1);
sys/dev/pci/pci_map.c
170
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/pci_map.c
297
pci_ea_lookup(pci_chipset_tag_t pc, pcitag_t tag, int ea_cap_ptr,
sys/dev/pci/pci_map.c
316
val = pci_conf_read(pc, tag, ea_cap_ptr + PCI_EA_CAP1);
sys/dev/pci/pci_map.c
319
val = pci_conf_read(pc, tag, PCI_BHLC_REG);
sys/dev/pci/pci_map.c
326
val = pci_conf_read(pc, tag, entry.ea_ptrs[EA_ptr_dw0]);
sys/dev/pci/pci_map.c
346
entry.base_lower = pci_conf_read(pc, tag,
sys/dev/pci/pci_map.c
354
entry.base_upper = pci_conf_read(pc, tag,
sys/dev/pci/pci_map.c
365
entry.maxoffset_lower = pci_conf_read(pc, tag,
sys/dev/pci/pci_map.c
374
entry.maxoffset_upper = pci_conf_read(pc, tag,
sys/dev/pci/pci_map.c
392
pci_ea_find(pci_chipset_tag_t pc, pcitag_t tag, int ea_cap_ptr,
sys/dev/pci/pci_map.c
398
int rv = pci_ea_lookup(pc, tag, ea_cap_ptr, reg, &entry);
sys/dev/pci/pci_map.c
49
pci_io_find(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t type,
sys/dev/pci/pci_map.c
499
pci_mapreg_type(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/dev/pci/pci_map.c
502
return _PCI_MAPREG_TYPEBITS(pci_conf_read(pc, tag, reg));
sys/dev/pci/pci_map.c
506
pci_mapreg_probe(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t *typep)
sys/dev/pci/pci_map.c
512
address = pci_conf_read(pc, tag, reg);
sys/dev/pci/pci_map.c
518
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pci_map.c
520
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/pci_map.c
523
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/pci_map.c
526
pci_conf_write(pc, tag, reg, 0xffffffff);
sys/dev/pci/pci_map.c
527
mask = pci_conf_read(pc, tag, reg);
sys/dev/pci/pci_map.c
528
pci_conf_write(pc, tag, reg, address);
sys/dev/pci/pci_map.c
529
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/pci_map.c
541
pci_mapreg_info(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t type,
sys/dev/pci/pci_map.c
546
if (pci_get_capability(pc, tag, PCI_CAP_EA, &ea_cap_ptr, NULL))
sys/dev/pci/pci_map.c
547
return pci_ea_find(pc, tag, ea_cap_ptr, reg, type,
sys/dev/pci/pci_map.c
551
return pci_io_find(pc, tag, reg, type, basep, sizep,
sys/dev/pci/pci_map.c
554
return pci_mem_find(pc, tag, reg, type, basep, sizep,
sys/dev/pci/pci_map.c
572
bus_space_tag_t tag;
sys/dev/pci/pci_map.c
585
tag = pa->pa_iot;
sys/dev/pci/pci_map.c
589
tag = pa->pa_memt;
sys/dev/pci/pci_map.c
650
if (bus_space_map(tag, base, reqsize, busflags, &handle))
sys/dev/pci/pci_map.c
663
*tagp = tag;
sys/dev/pci/pci_map.c
77
address = pci_conf_read(pc, tag, reg);
sys/dev/pci/pci_map.c
83
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pci_map.c
84
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/pci_map.c
86
pci_conf_write(pc, tag, reg, 0xffffffff);
sys/dev/pci/pci_map.c
87
mask = pci_conf_read(pc, tag, reg);
sys/dev/pci/pci_map.c
88
pci_conf_write(pc, tag, reg, address);
sys/dev/pci/pci_map.c
89
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/pci_resource.c
430
pcitag_t tag = pd->pd_tag;
sys/dev/pci/pci_resource.c
437
ocmd = cmd = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pci_resource.c
441
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, cmd);
sys/dev/pci/pci_resource.c
447
bar[0] = pci_conf_read(pc, tag, mapreg);
sys/dev/pci/pci_resource.c
448
pci_conf_write(pc, tag, mapreg, 0xffffffff);
sys/dev/pci/pci_resource.c
449
mask[0] = pci_conf_read(pc, tag, mapreg);
sys/dev/pci/pci_resource.c
450
pci_conf_write(pc, tag, mapreg, bar[0]);
sys/dev/pci/pci_resource.c
461
bar[1] = pci_conf_read(pc, tag, mapreg + 4);
sys/dev/pci/pci_resource.c
462
pci_conf_write(pc, tag, mapreg + 4, 0xffffffff);
sys/dev/pci/pci_resource.c
463
mask[1] = pci_conf_read(pc, tag, mapreg + 4);
sys/dev/pci/pci_resource.c
464
pci_conf_write(pc, tag, mapreg + 4, bar[1]);
sys/dev/pci/pci_resource.c
506
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, ocmd);
sys/dev/pci/pci_resource.c
520
pcitag_t tag = pd->pd_tag;
sys/dev/pci/pci_resource.c
528
res = pci_conf_read(pc, tag, PCI_BRIDGE_BUS_REG);
sys/dev/pci/pci_resource.c
535
res = pci_conf_read(pc, tag, PCI_BRIDGE_STATIO_REG);
sys/dev/pci/pci_resource.c
539
reshigh = pci_conf_read(pc, tag, PCI_BRIDGE_IOHIGH_REG);
sys/dev/pci/pci_resource.c
548
res = pci_conf_read(pc, tag, PCI_BRIDGE_MEMORY_REG);
sys/dev/pci/pci_resource.c
556
res = pci_conf_read(pc, tag, PCI_BRIDGE_PREFETCHMEM_REG);
sys/dev/pci/pci_resource.c
560
reshigh = pci_conf_read(pc, tag,
sys/dev/pci/pci_resource.c
563
reshigh = pci_conf_read(pc, tag,
sys/dev/pci/pci_resource.c
583
pcitag_t tag;
sys/dev/pci/pci_resource.c
587
tag = pci_make_tag(pr->pr_pc, parent_bus->pb_busno, devno, funcno);
sys/dev/pci/pci_resource.c
588
id = pci_conf_read(pr->pr_pc, tag, PCI_ID_REG);
sys/dev/pci/pci_resource.c
596
pd->pd_tag = tag;
sys/dev/pci/pci_resource.c
600
pd->pd_class = pci_conf_read(pr->pr_pc, tag, PCI_CLASS_REG);
sys/dev/pci/pci_resource.c
601
pd->pd_bhlc = pci_conf_read(pr->pr_pc, tag, PCI_BHLC_REG);
sys/dev/pci/pci_resource.c
620
bridge_bus = pci_conf_read(pr->pr_pc, tag, PCI_BRIDGE_BUS_REG);
sys/dev/pci/pci_subr.c
1027
pci_conf_write(pc, tag, reg, 0xffffffff);
sys/dev/pci/pci_subr.c
1028
mask = pci_conf_read(pc, tag, reg);
sys/dev/pci/pci_subr.c
1029
pci_conf_write(pc, tag, reg, rval);
sys/dev/pci/pci_subr.c
1032
pci_conf_write(pc, tag, reg + 4, 0xffffffff);
sys/dev/pci/pci_subr.c
1033
mask64h = pci_conf_read(pc, tag, reg + 4);
sys/dev/pci/pci_subr.c
1034
pci_conf_write(pc, tag, reg + 4, rval64h);
sys/dev/pci/pci_subr.c
2777
pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci_subr.c
4617
pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci_subr.c
4726
pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci_subr.c
4736
width = pci_conf_print_bar(pc, tag, regs, off, NULL);
sys/dev/pci/pci_subr.c
4826
pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci_subr.c
4845
width = pci_conf_print_bar(pc, tag, regs, off, NULL);
sys/dev/pci/pci_subr.c
5008
pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci_subr.c
5024
pci_conf_print_bar(pc, tag, regs, 0x10,
sys/dev/pci/pci_subr.c
5109
pci_conf_print_bar(pc, tag, regs, 0x44, "legacy-mode registers");
sys/dev/pci/pci_subr.c
5118
pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci_subr.c
5140
regs[o2i(off)] = pci_conf_read(pc, tag, off);
sys/dev/pci/pci_subr.c
5154
pci_conf_print_common(pc, tag, regs);
sys/dev/pci/pci_subr.c
5199
(*type_printfn)(pc, tag, regs);
sys/dev/pci/pci_subr.c
5212
pci_conf_print_caplist(pc, tag, regs, capoff);
sys/dev/pci/pci_subr.c
5225
(*printfn)(pc, tag, regs);
sys/dev/pci/pci_subr.c
5236
pci_conf_print_extcaplist(pc, tag, regs);
sys/dev/pci/pci_subr.c
823
pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci_subr.c
978
pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/pci_usrreq.c
102
pci_conf_write(sc->sc_pc, tag, bdfr->cfgreg.reg,
sys/dev/pci/pci_usrreq.c
234
pci_devioctl(pci_chipset_tag_t pc, pcitag_t tag, u_long cmd, void *data,
sys/dev/pci/pci_usrreq.c
241
r->val = pci_conf_read(pc, tag, r->reg);
sys/dev/pci/pci_usrreq.c
247
pci_conf_write(pc, tag, r->reg, r->val);
sys/dev/pci/pci_usrreq.c
84
pcitag_t tag;
sys/dev/pci/pci_usrreq.c
93
tag = pci_make_tag(sc->sc_pc, bdfr->bus, bdfr->device,
sys/dev/pci/pci_usrreq.c
97
bdfr->cfgreg.val = pci_conf_read(sc->sc_pc, tag,
sys/dev/pci/pciconf.c
1007
base = pci_conf_read(pd->pc, pd->tag, pm->reg);
sys/dev/pci/pciconf.c
1020
print_tag(pd->pc, pd->tag);
sys/dev/pci/pciconf.c
1035
print_tag(pd->pc, pd->tag);
sys/dev/pci/pciconf.c
1050
print_tag(pd->pc, pd->tag);
sys/dev/pci/pciconf.c
1056
base = pci_conf_read(pd->pc, pd->tag, pm->reg);
sys/dev/pci/pciconf.c
1059
pci_conf_write(pd->pc, pd->tag, pm->reg, base);
sys/dev/pci/pciconf.c
1064
pci_conf_write(pd->pc, pd->tag, pm->reg + 4,
sys/dev/pci/pciconf.c
1088
print_tag(pd->pc, pd->tag);
sys/dev/pci/pciconf.c
1098
pci_conf_write(pd->pc, pd->tag, pm->reg, base);
sys/dev/pci/pciconf.c
1164
io = pci_conf_read(pb->pc, pd->tag, PCI_BRIDGE_STATIO_REG) &
sys/dev/pci/pciconf.c
1170
pci_conf_write(pb->pc, pd->tag, PCI_BRIDGE_STATIO_REG, io);
sys/dev/pci/pciconf.c
1171
pci_conf_write(pb->pc, pd->tag, PCI_BRIDGE_IOHIGH_REG, iohigh);
sys/dev/pci/pciconf.c
1194
pci_conf_write(pb->pc, pd->tag, PCI_BRIDGE_MEMORY_REG, mem);
sys/dev/pci/pciconf.c
1197
mem = pci_conf_read(pb->pc, pd->tag, PCI_BRIDGE_PREFETCHMEM_REG);
sys/dev/pci/pciconf.c
1220
pci_conf_write(pb->pc, pd->tag, PCI_BRIDGE_PREFETCHMEM_REG, mem);
sys/dev/pci/pciconf.c
1227
pci_conf_write(pb->pc, pd->tag,
sys/dev/pci/pciconf.c
1229
pci_conf_write(pb->pc, pd->tag,
sys/dev/pci/pciconf.c
1240
cmd = pci_conf_read(pd->pc, pd->tag, PCI_BRIDGE_CONTROL_REG);
sys/dev/pci/pciconf.c
1246
pci_conf_write(pd->pc, pd->tag, PCI_BRIDGE_CONTROL_REG, cmd);
sys/dev/pci/pciconf.c
1247
cmd = pci_conf_read(pd->pc, pd->tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pciconf.c
1249
pci_conf_write(pd->pc, pd->tag, PCI_COMMAND_STATUS_REG, cmd);
sys/dev/pci/pciconf.c
1310
print_tag(pd->pc, pd->tag);
sys/dev/pci/pciconf.c
1313
classreg = pci_conf_read(pd->pc, pd->tag, PCI_CLASS_REG);
sys/dev/pci/pciconf.c
1314
misc = pci_conf_read(pd->pc, pd->tag, PCI_BHLC_REG);
sys/dev/pci/pciconf.c
1315
cmd = pci_conf_read(pd->pc, pd->tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pciconf.c
1338
print_tag(pd->pc, pd->tag);
sys/dev/pci/pciconf.c
1343
pci_conf_write(pd->pc, pd->tag, PCI_COMMAND_STATUS_REG, cmd);
sys/dev/pci/pciconf.c
1350
pci_conf_write(pd->pc, pd->tag, PCI_BHLC_REG, misc);
sys/dev/pci/pciconf.c
137
pcitag_t tag;
sys/dev/pci/pciconf.c
254
print_tag(pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/pciconf.c
258
pci_decompose_tag(pc, tag, &bus, &dev, &func);
sys/dev/pci/pciconf.c
322
pcitag_t tag;
sys/dev/pci/pciconf.c
329
tag = pci_make_tag(pb->pc, pb->busno, device, 0);
sys/dev/pci/pciconf.c
331
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
333
id = pci_conf_read(pb->pc, tag, PCI_ID_REG);
sys/dev/pci/pciconf.c
343
bhlcr = pci_conf_read(pb->pc, tag, PCI_BHLC_REG);
sys/dev/pci/pciconf.c
346
tag = pci_make_tag(pb->pc, pb->busno, device, function);
sys/dev/pci/pciconf.c
347
id = pci_conf_read(pb->pc, tag, PCI_ID_REG);
sys/dev/pci/pciconf.c
352
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
372
if (pci_do_device_query(pb, tag, device,
sys/dev/pci/pciconf.c
390
set_busreg(pci_chipset_tag_t pc, pcitag_t tag, int prim, int sec, int sub)
sys/dev/pci/pciconf.c
397
pci_conf_write(pc, tag, PCI_BRIDGE_BUS_REG, busreg);
sys/dev/pci/pciconf.c
416
set_busreg(parent->pc, pd->tag, parent->busno, pb->busno, 0xff);
sys/dev/pci/pciconf.c
429
io = pci_conf_read(parent->pc, pd->tag, PCI_BRIDGE_STATIO_REG);
sys/dev/pci/pciconf.c
436
pmem = pci_conf_read(parent->pc, pd->tag,
sys/dev/pci/pciconf.c
453
set_busreg(parent->pc, pd->tag, parent->busno, pb->busno,
sys/dev/pci/pciconf.c
540
pcitag_t tag;
sys/dev/pci/pciconf.c
549
tag = pd->tag;
sys/dev/pci/pciconf.c
555
base = pci_conf_read(pb->pc, tag, br);
sys/dev/pci/pciconf.c
556
pci_conf_write(pb->pc, tag, br, 0xffffffff);
sys/dev/pci/pciconf.c
557
mask = pci_conf_read(pb->pc, tag, br);
sys/dev/pci/pciconf.c
558
pci_conf_write(pb->pc, tag, br, base);
sys/dev/pci/pciconf.c
568
base64 = pci_conf_read(pb->pc, tag, br + 4);
sys/dev/pci/pciconf.c
569
pci_conf_write(pb->pc, tag, br + 4, 0xffffffff);
sys/dev/pci/pciconf.c
570
mask64 = pci_conf_read(pb->pc, tag, br + 4);
sys/dev/pci/pciconf.c
571
pci_conf_write(pb->pc, tag, br + 4, base64);
sys/dev/pci/pciconf.c
588
pci_do_device_query(pciconf_bus_t *pb, pcitag_t tag, int dev, int func,
sys/dev/pci/pciconf.c
600
pd->tag = tag;
sys/dev/pci/pciconf.c
605
classreg = pci_conf_read(pb->pc, tag, PCI_CLASS_REG);
sys/dev/pci/pciconf.c
607
cmd = pci_conf_read(pb->pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pciconf.c
608
bhlc = pci_conf_read(pb->pc, tag, PCI_BHLC_REG);
sys/dev/pci/pciconf.c
610
if (pci_get_capability(pb->pc, tag, PCI_CAP_EA, &pd->ea_cap_ptr,
sys/dev/pci/pciconf.c
613
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
622
pci_conf_write(pb->pc, tag, PCI_COMMAND_STATUS_REG, cmd);
sys/dev/pci/pciconf.c
624
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
648
busreg = pci_conf_read(pb->pc, tag, PCI_BUSNUM);
sys/dev/pci/pciconf.c
653
pci_conf_write(pb->pc, tag, PCI_BUSNUM, busreg);
sys/dev/pci/pciconf.c
661
icr = pci_conf_read(pb->pc, tag, PCI_INTERRUPT_REG);
sys/dev/pci/pciconf.c
671
pci_conf_write(pb->pc, tag, PCI_INTERRUPT_REG, icr);
sys/dev/pci/pciconf.c
694
bar = pci_conf_read(pb->pc, tag, br);
sys/dev/pci/pciconf.c
695
pci_conf_write(pb->pc, tag, br, 0xffffffff);
sys/dev/pci/pciconf.c
696
mask = pci_conf_read(pb->pc, tag, br);
sys/dev/pci/pciconf.c
697
pci_conf_write(pb->pc, tag, br, bar);
sys/dev/pci/pciconf.c
711
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
731
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
745
bar64 = pci_conf_read(pb->pc, tag, br + 4);
sys/dev/pci/pciconf.c
746
pci_conf_write(pb->pc, tag, br + 4, 0xffffffff);
sys/dev/pci/pciconf.c
747
mask64 = pci_conf_read(pb->pc, tag, br + 4);
sys/dev/pci/pciconf.c
748
pci_conf_write(pb->pc, tag, br + 4, bar64);
sys/dev/pci/pciconf.c
754
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
762
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
771
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
792
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
810
bar = pci_conf_read(pb->pc, tag, PCI_MAPREG_ROM);
sys/dev/pci/pciconf.c
811
pci_conf_write(pb->pc, tag, PCI_MAPREG_ROM, 0xfffffffe);
sys/dev/pci/pciconf.c
812
mask = pci_conf_read(pb->pc, tag, PCI_MAPREG_ROM);
sys/dev/pci/pciconf.c
813
pci_conf_write(pb->pc, tag, PCI_MAPREG_ROM, bar);
sys/dev/pci/pciconf.c
829
print_tag(pb->pc, tag);
sys/dev/pci/pciconf.c
852
bar = pci_conf_read(pb->pc, tag, PCI_MAPREG_ROM);
sys/dev/pci/pciconf.c
853
pci_conf_write(pb->pc, tag, PCI_MAPREG_ROM,
sys/dev/pci/pciconf.c
935
print_tag(pd->pc, pd->tag);
sys/dev/pci/pciconf.c
944
print_tag(pd->pc, pd->tag);
sys/dev/pci/pciconf.c
959
print_tag(pd->pc, pd->tag);
sys/dev/pci/pciconf.c
963
pci_conf_write(pd->pc, pd->tag, pi->reg,
sys/dev/pci/pciide_common.c
122
pcitag_t tag = pa->pa_tag;
sys/dev/pci/pciide_common.c
167
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pciide_common.c
169
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/pciide_common.c
173
pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG)), DEBUG_PROBE);
sys/dev/pci/pcivar.h
349
int pci_probe_device1(struct pci_softc *, pcitag_t tag,
sys/dev/pci/piixpm.c
324
struct i2c_controller *tag = iba->iba_tag;
sys/dev/pci/piixpm.c
325
struct piixpm_smbus *bus = tag->ic_cookie;
sys/dev/pci/piixpm.c
345
struct i2c_controller *tag = &sc->sc_i2c_tags[i];
sys/dev/pci/piixpm.c
351
iic_tag_init(tag);
sys/dev/pci/piixpm.c
352
tag->ic_cookie = &sc->sc_busses[i];
sys/dev/pci/piixpm.c
354
tag->ic_acquire_bus = piixpm_i2c_sb800_acquire_bus;
sys/dev/pci/piixpm.c
355
tag->ic_release_bus = piixpm_i2c_sb800_release_bus;
sys/dev/pci/piixpm.c
357
tag->ic_acquire_bus = NULL;
sys/dev/pci/piixpm.c
358
tag->ic_release_bus = NULL;
sys/dev/pci/piixpm.c
360
tag->ic_exec = piixpm_i2c_exec;
sys/dev/pci/piixpm.c
362
iba.iba_tag = tag;
sys/dev/pci/piixpm.c
366
iic_tag_fini(tag);
sys/dev/pci/piixpm.c
381
struct i2c_controller *tag = &sc->sc_i2c_tags[i];
sys/dev/pci/piixpm.c
383
iic_tag_fini(tag);
sys/dev/pci/puc.c
289
paa.tag = pa->pa_tag;
sys/dev/pci/pucvar.h
99
pcitag_t tag;
sys/dev/pci/pvscsi.c
1430
e->tag = MSG_SIMPLE_Q_TAG;
sys/dev/pci/pvscsi.c
1648
const pcitag_t tag)
sys/dev/pci/pvscsi.c
1652
pci_cmd_word = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/pvscsi.c
1655
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, pci_cmd_word);
sys/dev/pci/pvscsi.h
171
uint8_t tag;
sys/dev/pci/r128fb.c
195
bus_space_tag_t tag;
sys/dev/pci/r128fb.c
247
&tag, &sc->sc_regh, &sc->sc_reg, &sc->sc_regsize)) {
sys/dev/pci/rtsx_pci.c
143
if ((pci_conf_read(pc, tag, RTSX_CFG_PCI) & RTSX_CFG_ASIC) != 0) {
sys/dev/pci/rtsx_pci.c
168
reg = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/rtsx_pci.c
170
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, reg);
sys/dev/pci/rtsx_pci.c
173
pci_set_powerstate(pc, tag, PCI_PMCSR_STATE_D0);
sys/dev/pci/rtsx_pci.c
99
pcitag_t tag = pa->pa_tag;
sys/dev/pci/sdhc_pci.c
339
pcitag_t tag = pa->pa_tag;
sys/dev/pci/sdhc_pci.c
384
slotinfo = pci_conf_read(pc, tag, SDHC_PCI_CONF_SLOT_INFO);
sys/dev/pci/sdhc_pci.c
392
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/sdhc_pci.c
393
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/sdhc_pci.c
504
pcitag_t tag;
sys/dev/pci/sdhc_pci.c
508
tag = pci_make_tag(pc, pa->pa_bus, pa->pa_device, pa->pa_function - 1);
sys/dev/pci/sdhc_pci.c
509
id = pci_conf_read(pc, tag, PCI_ID_REG);
sys/dev/pci/sdhc_pci.c
525
reg = pci_conf_read(pc, tag, SDHC_PCI_GENERAL_CTL);
sys/dev/pci/sdhc_pci.c
527
pci_conf_write(pc, tag, SDHC_PCI_GENERAL_CTL, reg);
sys/dev/pci/siop_pci_common.c
237
pcitag_t tag = pa->pa_tag;
sys/dev/pci/siop_pci_common.c
272
pci_sc->sc_tag = tag;
sys/dev/pci/sisfb.c
767
pci_chipset_tag_t pc, pcitag_t tag, pcireg_t id)
sys/dev/pci/sisfb.c
782
if (pci_mapreg_info(pc, tag, PCI_MAPREG_START,
sys/dev/pci/sisfb.c
798
if (pci_mapreg_info(pc, tag, PCI_MAPREG_START + 4,
sys/dev/pci/sisfb.c
813
if (pci_mapreg_info(pc, tag, PCI_MAPREG_START + 8,
sys/dev/pci/siside.c
100
pcitag_t tag = pa->pa_tag;
sys/dev/pci/siside.c
108
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/siside.c
111
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/tga.c
162
pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/tga.c
165
return tga_matchcommon(memt, pc, tag);
sys/dev/pci/tga.c
197
tga_matchcommon(bus_space_tag_t memt, pci_chipset_tag_t pc, pcitag_t tag)
sys/dev/pci/tga.c
203
tga_mapaddrs(memt, pc, tag, &pcisize, dc);
sys/dev/pci/tga.c
214
tga_mapaddrs(bus_space_tag_t memt, pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/tga.c
223
if (pci_mapreg_info(pc, tag, 0x10,
sys/dev/pci/tga.c
240
tga_init(bus_space_tag_t memt, pci_chipset_tag_t pc, pcitag_t tag,
sys/dev/pci/tga.c
250
dc->dc_pcitag = tag;
sys/dev/pci/tga.c
251
tga_mapaddrs(memt, pc, tag, &pcisize, dc);
sys/dev/pci/tga.c
70
pcitag_t tag, struct tga_devconfig *dc);
sys/dev/pci/trm.c
1013
if (srb->tag[0] != 0) {
sys/dev/pci/trm.c
1018
bus_space_write_1(iot, ioh, TRM_SCSI_FIFO, srb->tag[0]);
sys/dev/pci/trm.c
1019
bus_space_write_1(iot, ioh, TRM_SCSI_FIFO, srb->tag[1]);
sys/dev/pci/trm.c
220
uint8_t tag[2];
sys/dev/pci/trm.c
2351
if (srb->tag[0] != 0 && li->queued[srb->tag[1]] != NULL) {
sys/dev/pci/trm.c
2352
li->queued[srb->tag[1]] = NULL;
sys/dev/pci/trm.c
887
int s, lun, tag;
sys/dev/pci/trm.c
901
tag = 0;
sys/dev/pci/trm.c
903
tag = srb->xs->xs_tag_type;
sys/dev/pci/trm.c
907
tag = 0;
sys/dev/pci/trm.c
922
if (tag == 0) {
sys/dev/pci/trm.c
928
tag = 0;
sys/dev/pci/trm.c
939
srb->tag[0] = tag;
sys/dev/pci/trm.c
940
if (tag != 0) {
sys/dev/pci/trm.c
942
srb->tag[1] = srb->xs->xs_tag_id;
sys/dev/pci/trm.c
954
if (li->untagged == NULL && tag != 0) {
sys/dev/pci/twa.c
1526
sc->tag = pa->pa_tag;
sys/dev/pci/twa.c
3108
pci_conf_write(sc->pc, sc->tag,
sys/dev/pci/twa.c
3116
pci_conf_write(sc->pc, sc->tag,
sys/dev/pci/twavar.h
68
pcitag_t tag;
sys/dev/pci/uhci_pci.c
122
sc->sc_tag = tag;
sys/dev/pci/uhci_pci.c
126
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/uhci_pci.c
127
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/uhci_pci.c
153
pci_conf_write(pc, tag, PCI_LEGSUP, PCI_LEGSUP_USBPIRQDEN);
sys/dev/pci/uhci_pci.c
159
switch (pci_conf_read(pc, tag, PCI_USBREV) & PCI_USBREV_MASK) {
sys/dev/pci/uhci_pci.c
93
pcitag_t tag = pa->pa_tag;
sys/dev/pci/virtio_pci.c
1142
pcitag_t tag = psc->sc_pa.pa_tag;
sys/dev/pci/virtio_pci.c
1215
error = pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, NULL);
sys/dev/pci/virtio_pci.c
1217
ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
sys/dev/pci/virtio_pci.c
1219
pci_conf_write(pc, tag, off + PCI_MSIX_CTL, ctl);
sys/dev/pci/virtio_pci.c
244
pcitag_t tag = pa->pa_tag;
sys/dev/pci/virtio_pci.c
254
id = PCI_SUBSYS_ID(pci_conf_read(pc, tag, PCI_SUBSYS_ID_REG));
sys/dev/pci/virtio_pci.c
270
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/virtio_pci.c
272
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, csr);
sys/dev/pci/virtio_pci.c
441
const pcitag_t tag = pa->pa_tag;
sys/dev/pci/virtio_pci.c
485
type = pci_mapreg_type(pc, tag, reg);
sys/dev/pci/virtio_pci.c
574
pcitag_t tag = psc->sc_pa.pa_tag;
sys/dev/pci/virtio_pci.c
584
if (!pci_get_capability(pc, tag, PCI_CAP_VENDSPEC, &offset,
sys/dev/pci/virtio_pci.c
591
le32toh(pci_conf_read(pc, tag, offset + i * 4));
sys/dev/pci/virtio_pci.c
608
le32toh(pci_conf_read(pc, tag, offset + i * 4));
sys/dev/pci/wsdisplay_pci.c
42
pcitag_t tag, void *data)
sys/dev/pci/wsdisplay_pci.c
49
pci_decompose_tag(pc, tag,
sys/dev/pci/xhci_pci.c
125
const pcitag_t tag = pa->pa_tag;
sys/dev/pci/xhci_pci.c
142
csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/xhci_pci.c
193
psc->sc_tag = tag;
sys/dev/pci/xhci_pci.c
212
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG,
sys/dev/pci/xhci_pci.c
246
usbrev = pci_conf_read(pc, tag, PCI_USBREV) & PCI_USBREV_MASK;
sys/dev/pci/xmm7360.c
1101
static void xmm7360_mux_frame_add_tag(struct mux_frame *frame, uint32_t tag, uint16_t extra, void *data, int data_len)
sys/dev/pci/xmm7360.c
1120
hdr->tag = htonl(tag);
sys/dev/pci/xmm7360.c
1130
hdr->tag = htonl(tag);
sys/dev/pci/xmm7360.c
1283
if (ntohl(first->tag) == XMM_TAG_ACBH)
sys/dev/pci/xmm7360.c
1286
if (ntohl(first->tag) != XMM_TAG_ADBH) {
sys/dev/pci/xmm7360.c
1287
dev_info(xn->xmm->dev, "Unexpected tag %x\n", first->tag);
sys/dev/pci/xmm7360.c
1292
if (ntohl(adth->tag) != XMM_TAG_ADTH) {
sys/dev/pci/xmm7360.c
1293
dev_err(xn->xmm->dev, "Unexpected tag %x, expected ADTH\n", adth->tag);
sys/dev/pci/xmm7360.c
539
uint32_t tag;
sys/dev/pci/xmm7360.c
549
uint32_t tag;
sys/dev/pci/yds.c
686
pcitag_t tag = sc->sc_pcitag;
sys/dev/pci/yds.c
691
sc->sc_dsctrl = pci_conf_read(pc, tag, YDS_PCI_DSCTRL);
sys/dev/pci/yds.c
692
sc->sc_legacy = pci_conf_read(pc, tag, YDS_PCI_LEGACY);
sys/dev/pci/yds.c
693
sc->sc_ba[0] = pci_conf_read(pc, tag, YDS_PCI_FM_BA);
sys/dev/pci/yds.c
694
sc->sc_ba[1] = pci_conf_read(pc, tag, YDS_PCI_MPU_BA);
sys/dev/pci/yds.c
706
pcitag_t tag = sc->sc_pcitag;
sys/dev/pci/yds.c
712
reg = pci_conf_read(pc, tag, YDS_PCI_LEGACY);
sys/dev/pci/yds.c
713
pci_conf_write(pc, tag, YDS_PCI_LEGACY, reg & YDS_PCI_LEGACY_LAD);
sys/dev/pci/yds.c
716
reg = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/yds.c
719
pci_conf_write(pc, tag, PCI_COMMAND_STATUS_REG, reg);
sys/dev/pci/yds.c
720
reg = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG);
sys/dev/pci/yds.c
728
pci_conf_write(pc, tag, YDS_PCI_DSCTRL, sc->sc_dsctrl);
sys/dev/pckbport/alps.c
354
pms_alps_cm_write_nibble(pckbport_tag_t tag, pckbport_slot_t slot, uint8_t nibble)
sys/dev/pckbport/alps.c
366
if ((res = pckbport_poll_cmd(tag, slot, cmd, 1, 3, resp, 0)) != 0) {
sys/dev/pckbport/alps.c
371
if ((res = pckbport_poll_cmd(tag, slot, cmd, 2, 0, NULL, 0)) != 0) {
sys/dev/pckbport/alps.c
375
if ((res = pckbport_poll_cmd(tag, slot, cmd, 1, 0, NULL, 0)) != 0) {
sys/dev/pckbport/alps.c
387
pms_alps_set_address(pckbport_tag_t tag, pckbport_slot_t slot, uint16_t reg)
sys/dev/pckbport/alps.c
394
if ((res = pckbport_poll_cmd(tag, slot, cmd, 1, 0, NULL, 0)) != 0)
sys/dev/pckbport/alps.c
399
if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
sys/dev/pckbport/alps.c
403
if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
sys/dev/pckbport/alps.c
407
if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
sys/dev/pckbport/alps.c
411
if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
sys/dev/pckbport/alps.c
425
pms_alps_cm_read_1(pckbport_tag_t tag, pckbport_slot_t slot, uint16_t reg,
sys/dev/pckbport/alps.c
432
if ((res = pms_alps_set_address(tag, slot, reg)) != 0)
sys/dev/pckbport/alps.c
436
if ((res = pckbport_poll_cmd(tag, slot,
sys/dev/pckbport/alps.c
458
pms_alps_cm_write_1(pckbport_tag_t tag, pckbport_slot_t slot, uint16_t reg,
sys/dev/pckbport/alps.c
464
if ((res = pms_alps_set_address(tag, slot, reg)) != 0)
sys/dev/pckbport/alps.c
468
if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
sys/dev/pckbport/alps.c
473
if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
sys/dev/pckbport/alps.c
492
pckbport_tag_t tag = psc->sc_kbctag;
sys/dev/pckbport/alps.c
503
if ((res = pms_alps_cm_read_1(tag, slot, 0xc397, &ret)) != 0) {
sys/dev/pckbport/alps.c
516
if ((res = pms_alps_cm_read_1(tag, slot, 0xc397 + 1, &ret)) != 0) {
sys/dev/pckbport/elantech.c
133
pms_elantech_read_1(pckbport_tag_t tag, pckbport_slot_t slot, uint8_t reg,
sys/dev/pckbport/elantech.c
141
res = pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
143
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
145
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
147
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
149
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 3, resp, 0);
sys/dev/pckbport/elantech.c
158
pms_elantech_write_1(pckbport_tag_t tag, pckbport_slot_t slot, uint8_t reg,
sys/dev/pckbport/elantech.c
165
res = pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
167
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
169
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
171
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
173
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
175
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/elantech.c
177
res |= pckbport_poll_cmd(tag, slot, &cmd, 1, 0, NULL, 0);
sys/dev/pckbport/pckbd.c
242
pckbd_is_console(pckbport_tag_t tag, pckbport_slot_t slot)
sys/dev/pckbport/pckbd.c
246
tag == pckbd_consdata.t_kbctag && slot == pckbd_consdata.t_kbcslot;
sys/dev/pckbport/pms.c
106
pms_protocol(pckbport_tag_t tag, pckbport_slot_t slot)
sys/dev/pckbport/pms.c
119
res = pckbport_enqueue_cmd(tag, slot, cmd, 2, 0, 1, 0);
sys/dev/pckbport/pms.c
125
res = pckbport_enqueue_cmd(tag, slot, cmd, 1, 1, 1, resp);
sys/dev/pckbport/pms.c
692
pms_sliced_command(pckbport_tag_t tag, pckbport_slot_t slot, u_char scmd)
sys/dev/pckbport/pms.c
698
ret = pckbport_poll_cmd(tag, slot, cmd, 1, 0, NULL, 0);
sys/dev/pckbport/pms.c
707
err = pckbport_poll_cmd(tag, slot, cmd, 2, 0, NULL, 0);
sys/dev/pcmcia/pcmciachip.h
101
#define pcmcia_chip_mem_free(tag, handle, pcmhp) \
sys/dev/pcmcia/pcmciachip.h
102
((*(tag)->mem_free)((handle), (pcmhp)))
sys/dev/pcmcia/pcmciachip.h
104
#define pcmcia_chip_mem_map(tag, handle, kind, card_addr, size, pcmhp, \
sys/dev/pcmcia/pcmciachip.h
106
((*(tag)->mem_map)((handle), (kind), (card_addr), (size), (pcmhp), \
sys/dev/pcmcia/pcmciachip.h
109
#define pcmcia_chip_mem_unmap(tag, handle, window) \
sys/dev/pcmcia/pcmciachip.h
110
((*(tag)->mem_unmap)((handle), (window)))
sys/dev/pcmcia/pcmciachip.h
113
#define pcmcia_chip_io_alloc(tag, handle, start, size, align, pcihp) \
sys/dev/pcmcia/pcmciachip.h
114
((*(tag)->io_alloc)((handle), (start), (size), (align), (pcihp)))
sys/dev/pcmcia/pcmciachip.h
116
#define pcmcia_chip_io_free(tag, handle, pcihp) \
sys/dev/pcmcia/pcmciachip.h
117
((*(tag)->io_free)((handle), (pcihp)))
sys/dev/pcmcia/pcmciachip.h
119
#define pcmcia_chip_io_map(tag, handle, width, card_addr, size, pcihp, \
sys/dev/pcmcia/pcmciachip.h
121
((*(tag)->io_map)((handle), (width), (card_addr), (size), (pcihp), \
sys/dev/pcmcia/pcmciachip.h
124
#define pcmcia_chip_io_unmap(tag, handle, window) \
sys/dev/pcmcia/pcmciachip.h
125
((*(tag)->io_unmap)((handle), (window)))
sys/dev/pcmcia/pcmciachip.h
128
#define pcmcia_chip_intr_establish(tag, handle, pf, ipl, fct, arg) \
sys/dev/pcmcia/pcmciachip.h
129
((*(tag)->intr_establish)((handle), (pf), (ipl), (fct), (arg)))
sys/dev/pcmcia/pcmciachip.h
131
#define pcmcia_chip_intr_disestablish(tag, handle, ih) \
sys/dev/pcmcia/pcmciachip.h
132
((*(tag)->intr_disestablish)((handle), (ih)))
sys/dev/pcmcia/pcmciachip.h
135
#define pcmcia_chip_socket_enable(tag, handle) \
sys/dev/pcmcia/pcmciachip.h
136
((*(tag)->socket_enable)((handle)))
sys/dev/pcmcia/pcmciachip.h
137
#define pcmcia_chip_socket_disable(tag, handle) \
sys/dev/pcmcia/pcmciachip.h
138
((*(tag)->socket_disable)((handle)))
sys/dev/pcmcia/pcmciachip.h
139
#define pcmcia_chip_socket_settype(tag, handle, type) \
sys/dev/pcmcia/pcmciachip.h
140
((*(tag)->socket_settype)((handle), (type)))
sys/dev/pcmcia/pcmciachip.h
98
#define pcmcia_chip_mem_alloc(tag, handle, size, pcmhp) \
sys/dev/pcmcia/pcmciachip.h
99
((*(tag)->mem_alloc)((handle), (size), (pcmhp)))
sys/dev/sbus/sbusvar.h
85
#define sbus_bus_map(tag, slot, offset, sz, flags, hp) \
sys/dev/sbus/sbusvar.h
86
bus_space_map(tag, BUS_ADDR(slot,offset), sz, flags, hp)
sys/dev/sbus/stp4020.c
105
bus_space_tag_t tag; /* socket control io */
sys/dev/sbus/stp4020.c
214
return (bus_space_read_2(h->tag, h->regs, o));
sys/dev/sbus/stp4020.c
221
bus_space_write_2(h->tag, h->regs, o, v);
sys/dev/sbus/stp4020.c
230
bus_space_write_2(h->tag, h->regs, o, v);
sys/dev/sbus/stp4020.c
320
bus_space_tag_t tag;
sys/dev/sbus/stp4020.c
328
tag = sa->sa_bustag;
sys/dev/sbus/stp4020.c
330
tag = bus_space_tag_alloc(sa->sa_bustag, sc);
sys/dev/sbus/stp4020.c
331
if (tag == NULL) {
sys/dev/sbus/stp4020.c
335
tag->sparc_read_2 = stp4020_read_2;
sys/dev/sbus/stp4020.c
336
tag->sparc_read_4 = stp4020_read_4;
sys/dev/sbus/stp4020.c
337
tag->sparc_read_8 = stp4020_read_8;
sys/dev/sbus/stp4020.c
338
tag->sparc_write_2 = stp4020_write_2;
sys/dev/sbus/stp4020.c
339
tag->sparc_write_4 = stp4020_write_4;
sys/dev/sbus/stp4020.c
340
tag->sparc_write_8 = stp4020_write_8;
sys/dev/sbus/stp4020.c
385
sc->sc_socks[0].tag = sc->sc_socks[1].tag = sa->sa_bustag;
sys/dev/sbus/stp4020.c
390
sc->sc_socks[0].pcmciat = sc->sc_socks[1].pcmciat = tag;
sys/dev/scsipi/scsipi_base.c
380
int bit, tag;
sys/dev/scsipi/scsipi_base.c
401
tag = (word << 5) | bit;
sys/dev/scsipi/scsipi_base.c
404
if (tag >= periph->periph_openings) {
sys/dev/scsipi/scsipi_base.c
407
tag, periph->periph_openings);
sys/dev/scsipi/scsipi_base.c
410
xs->xs_tag_id = tag;
sys/dev/scsipi/scsipi_base.c
411
SDT_PROBE3(scsi, base, tag, get,
sys/dev/scsipi/scsipi_base.c
430
SDT_PROBE3(scsi, base, tag, put,
sys/dev/scsipi/scsipi_base.c
68
SDT_PROBE_DEFINE3(scsi, base, tag, get,
sys/dev/scsipi/scsipi_base.c
70
SDT_PROBE_DEFINE3(scsi, base, tag, put,
sys/dev/sdmmc/if_bwfm_sdio.h
199
uint8_t tag[32];
sys/dev/sdmmc/sdmmcchip.h
100
((tag)->card_intr_ack((handle)))
sys/dev/sdmmc/sdmmcchip.h
102
#define sdmmc_chip_signal_voltage(tag, handle, voltage) \
sys/dev/sdmmc/sdmmcchip.h
103
((tag)->signal_voltage ? (tag)->signal_voltage((handle), (voltage)) : EINVAL)
sys/dev/sdmmc/sdmmcchip.h
104
#define sdmmc_chip_execute_tuning(tag, handle, timing) \
sys/dev/sdmmc/sdmmcchip.h
105
((tag)->execute_tuning ? (tag)->execute_tuning((handle), (timing)) : EINVAL)
sys/dev/sdmmc/sdmmcchip.h
107
#define sdmmc_chip_hw_reset(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
108
((tag)->hw_reset ? (tag)->hw_reset((handle)) : /*CONSTCOND*/0)
sys/dev/sdmmc/sdmmcchip.h
128
#define sdmmc_spi_chip_initialize(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
129
((tag)->initialize((handle)))
sys/dev/sdmmc/sdmmcchip.h
71
#define sdmmc_chip_host_reset(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
72
((tag)->host_reset((handle)))
sys/dev/sdmmc/sdmmcchip.h
74
#define sdmmc_chip_host_ocr(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
75
((tag)->host_ocr((handle)))
sys/dev/sdmmc/sdmmcchip.h
76
#define sdmmc_chip_host_maxblklen(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
77
((tag)->host_maxblklen((handle)))
sys/dev/sdmmc/sdmmcchip.h
79
#define sdmmc_chip_card_detect(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
80
((tag)->card_detect((handle)))
sys/dev/sdmmc/sdmmcchip.h
82
#define sdmmc_chip_write_protect(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
83
((tag)->write_protect((handle)))
sys/dev/sdmmc/sdmmcchip.h
85
#define sdmmc_chip_bus_power(tag, handle, ocr) \
sys/dev/sdmmc/sdmmcchip.h
86
((tag)->bus_power((handle), (ocr)))
sys/dev/sdmmc/sdmmcchip.h
87
#define sdmmc_chip_bus_clock(tag, handle, freq, ddr) \
sys/dev/sdmmc/sdmmcchip.h
88
((tag)->bus_clock_ddr ? (tag)->bus_clock_ddr((handle), (freq), (ddr)) : ((ddr) ? EINVAL : ((tag)->bus_clock((handle), (freq)))))
sys/dev/sdmmc/sdmmcchip.h
89
#define sdmmc_chip_bus_width(tag, handle, width) \
sys/dev/sdmmc/sdmmcchip.h
90
((tag)->bus_width((handle), (width)))
sys/dev/sdmmc/sdmmcchip.h
91
#define sdmmc_chip_bus_rod(tag, handle, width) \
sys/dev/sdmmc/sdmmcchip.h
92
((tag)->bus_rod((handle), (width)))
sys/dev/sdmmc/sdmmcchip.h
94
#define sdmmc_chip_exec_command(tag, handle, cmdp) \
sys/dev/sdmmc/sdmmcchip.h
95
((tag)->exec_command((handle), (cmdp)))
sys/dev/sdmmc/sdmmcchip.h
97
#define sdmmc_chip_card_enable_intr(tag, handle, enable) \
sys/dev/sdmmc/sdmmcchip.h
98
((tag)->card_enable_intr((handle), (enable)))
sys/dev/sdmmc/sdmmcchip.h
99
#define sdmmc_chip_card_intr_ack(tag, handle) \
sys/dev/sequencer.c
1058
switch(b->tag) {
sys/dev/sequencer.c
1076
DPRINTFN(-1,("seq_do_command: unimpl command %02x\n", b->tag));
sys/dev/sequencer.c
1330
cmd = ev->tag;
sys/dev/sequencer.c
522
"%02x %02x %02x\n", cmd->tag,
sys/dev/sequencer.c
687
if (cmdbuf.tag == SEQ_FULLSIZE) {
sys/dev/spi/spi.c
624
const struct spi_controller *tag = sh->sh_controller;
sys/dev/spi/spi.c
660
error = (*tag->sct_configure)(tag->sct_cookie,
sys/dev/spi/spi.c
669
error = (*tag->sct_transfer)(tag->sct_cookie, st);
sys/dev/usb/if_athn_usb.c
1993
hdr->tag = htole16(AR_USB_TX_STREAM_TAG);
sys/dev/usb/if_athn_usb.c
2356
if (hdr->tag != htole16(AR_USB_RX_STREAM_TAG)) {
sys/dev/usb/if_athn_usb.c
2357
DPRINTFN(DBG_RX, usc, "invalid tag %#x\n", hdr->tag);
sys/dev/usb/if_athn_usb.c
2511
hdr->tag = htole16(AR_USB_TX_STREAM_TAG);
sys/dev/usb/if_athn_usb.h
336
uint16_t tag;
sys/dev/usb/if_otus.c
1878
if (__predict_false(head->tag != htole16(AR_RX_HEAD_TAG))) {
sys/dev/usb/if_otus.c
1880
le16toh(head->tag));
sys/dev/usb/if_otusreg.h
269
uint16_t tag;
sys/dev/usb/if_zyd.c
2019
if (UGETW(desc->tag) == ZYD_TAG_MULTIFRAME) {
sys/dev/usb/if_zydreg.h
1032
uWord tag;
sys/dev/usb/umass.c
2113
int tag = UGETDW(cbw->dCBWTag);
sys/dev/usb/umass.c
2117
(uintptr_t)sc, tag, clen, 0);
sys/dev/usb/umass.c
2132
int tag = UGETDW(csw->dCSWTag);
sys/dev/usb/umass.c
2137
(uintptr_t)sc, (uintptr_t)csw, sig, tag);
sys/dev/usb/usb_mem.c
108
usb_block_allocmem(bus_dma_tag_t tag, size_t size, size_t align,
sys/dev/usb/usb_mem.c
135
if (b->tag == tag &&
sys/dev/usb/usb_mem.c
144
bus_dmamap_sync(b->tag, b->map, 0, b->size,
sys/dev/usb/usb_mem.c
156
b->tag = tag;
sys/dev/usb/usb_mem.c
170
error = bus_dmamem_alloc(tag, b->size, align, 0, b->segs, b->nsegs,
sys/dev/usb/usb_mem.c
175
error = bus_dmamem_map(tag, b->segs, b->nsegs, b->size, &b->kaddr,
sys/dev/usb/usb_mem.c
180
error = bus_dmamap_create(tag, b->size, b->nsegs, b->size, 0,
sys/dev/usb/usb_mem.c
185
error = bus_dmamap_load(tag, b->map, b->kaddr, b->size, NULL,
sys/dev/usb/usb_mem.c
194
bus_dmamap_sync(b->tag, b->map, 0, b->size,
sys/dev/usb/usb_mem.c
203
bus_dmamap_destroy(tag, b->map);
sys/dev/usb/usb_mem.c
205
bus_dmamem_unmap(tag, b->kaddr, b->size);
sys/dev/usb/usb_mem.c
207
bus_dmamem_free(tag, b->segs, b->nsegs);
sys/dev/usb/usb_mem.c
222
bus_dmamap_unload(b->tag, b->map);
sys/dev/usb/usb_mem.c
223
bus_dmamap_destroy(b->tag, b->map);
sys/dev/usb/usb_mem.c
224
bus_dmamem_unmap(b->tag, b->kaddr, b->size);
sys/dev/usb/usb_mem.c
225
bus_dmamem_free(b->tag, b->segs, b->nsegs);
sys/dev/usb/usb_mem.c
265
usb_allocmem(bus_dma_tag_t tag, size_t size, size_t align, u_int flags,
sys/dev/usb/usb_mem.c
287
err = usb_block_allocmem(tag, size, align, flags,
sys/dev/usb/usb_mem.c
306
if (f->ufd_block->tag == tag &&
sys/dev/usb/usb_mem.c
313
err = usb_block_allocmem(tag, USB_MEM_BLOCK, USB_MEM_SMALL,
sys/dev/usb/usb_mem.c
420
bus_dmamap_sync(p->udma_block->tag, p->udma_block->map,
sys/dev/usb/usb_mem.h
45
bus_dma_tag_t tag;
sys/dev/vme/vmevar.h
108
#define vme_space_map(vc, vmeaddr, len, am, datasize, swap, tag, handle, resc) \
sys/dev/vme/vmevar.h
110
(swap), (tag), (handle), (resc))
sys/dev/vme/vmevar.h
205
#define vme_space_alloc(tag, addr, size, ams) \
sys/dev/vme/vmevar.h
206
_vme_space_alloc(tag->bus, addr, size, ams)
sys/dev/vme/vmevar.h
208
#define vme_space_free(tag, addr, size, ams) \
sys/dev/vme/vmevar.h
209
_vme_space_free(tag->bus, addr, size, ams)
sys/dev/vme/vmevar.h
211
#define vme_space_get(tag, size, ams, align, addr) \
sys/dev/vme/vmevar.h
212
_vme_space_get(tag->bus, size, ams, align, addr)
sys/dev/vme/xd.c
406
xd_dmamem_alloc(bus_dma_tag_t tag, bus_dmamap_t map, bus_dma_segment_t *seg, int *nsegp, bus_size_t len, void * *kvap, bus_addr_t *dmap)
sys/dev/vme/xd.c
411
if ((error = bus_dmamem_alloc(tag, len, 0, 0,
sys/dev/vme/xd.c
416
if ((error = bus_dmamem_map(tag, seg, nseg,
sys/dev/vme/xd.c
419
bus_dmamem_free(tag, seg, nseg);
sys/dev/vme/xd.c
423
if ((error = bus_dmamap_load(tag, map,
sys/dev/vme/xd.c
426
bus_dmamem_unmap(tag, *kvap, len);
sys/dev/vme/xd.c
427
bus_dmamem_free(tag, seg, nseg);
sys/dev/vme/xd.c
437
xd_dmamem_free(bus_dma_tag_t tag, bus_dmamap_t map, bus_dma_segment_t *seg, int nseg, bus_size_t len, void * kva)
sys/dev/vme/xd.c
440
bus_dmamap_unload(tag, map);
sys/dev/vme/xd.c
441
bus_dmamem_unmap(tag, kva, len);
sys/dev/vme/xd.c
442
bus_dmamem_free(tag, seg, nseg);
sys/dev/vme/xd.c
456
xdc_probe(void *arg, bus_space_tag_t tag, bus_space_handle_t handle)
sys/dev/vme/xy.c
322
xy_dmamem_alloc(bus_dma_tag_t tag, bus_dmamap_t map, bus_dma_segment_t *seg, int *nsegp, bus_size_t len, void * *kvap, bus_addr_t *dmap)
sys/dev/vme/xy.c
327
if ((error = bus_dmamem_alloc(tag, len, 0, 0,
sys/dev/vme/xy.c
332
if ((error = bus_dmamem_map(tag, seg, nseg,
sys/dev/vme/xy.c
335
bus_dmamem_free(tag, seg, nseg);
sys/dev/vme/xy.c
339
if ((error = bus_dmamap_load(tag, map, *kvap, len, NULL,
sys/dev/vme/xy.c
341
bus_dmamem_unmap(tag, *kvap, len);
sys/dev/vme/xy.c
342
bus_dmamem_free(tag, seg, nseg);
sys/dev/vme/xy.c
352
xy_dmamem_free(bus_dma_tag_t tag, bus_dmamap_t map, bus_dma_segment_t *seg, int nseg, bus_size_t len, void * kva)
sys/dev/vme/xy.c
355
bus_dmamap_unload(tag, map);
sys/dev/vme/xy.c
356
bus_dmamem_unmap(tag, kva, len);
sys/dev/vme/xy.c
357
bus_dmamem_free(tag, seg, nseg);
sys/dev/vme/xy.c
370
xyc_probe(void *arg, bus_space_tag_t tag, bus_space_handle_t handle)
sys/dev/wscons/wsksymdef.h
689
#define KBF_ENUM(tag, tagf, value, cc, ccf, country) tag=value,
sys/dev/wscons/wsksymdef.h
693
#define KBF_ENCTAB(tag, tagf, value, cc, ccf, country) { tag, cc },
sys/dist/pf/net/pf.c
1077
TH_RST|TH_ACK, 0, 0, 0, 1, cur->tag, NULL, NULL);
sys/dist/pf/net/pf.c
1114
if (cur->tag)
sys/dist/pf/net/pf.c
1115
pf_tag_unref(cur->tag);
sys/dist/pf/net/pf.c
1653
u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag,
sys/dist/pf/net/pf.c
1699
if (tag)
sys/dist/pf/net/pf.c
1701
pf_mtag->tag = rtag;
sys/dist/pf/net/pf.c
1706
if (tag)
sys/dist/pf/net/pf.c
1708
m->m_pkthdr.pf.tag = rtag;
sys/dist/pf/net/pf.c
2014
pf_match_tag(struct mbuf *m, struct pf_rule *r, int *tag)
sys/dist/pf/net/pf.c
2017
if (*tag == -1) {
sys/dist/pf/net/pf.c
2022
*tag = pf_mtag->tag;
sys/dist/pf/net/pf.c
2025
if (*tag == -1)
sys/dist/pf/net/pf.c
2026
*tag = m->m_pkthdr.pf.tag;
sys/dist/pf/net/pf.c
2029
return ((!r->match_tag_not && r->match_tag == *tag) ||
sys/dist/pf/net/pf.c
2030
(r->match_tag_not && r->match_tag != *tag));
sys/dist/pf/net/pf.c
2034
pf_tag_packet(struct mbuf *m, int tag, int rtableid)
sys/dist/pf/net/pf.c
2036
if (tag <= 0 && rtableid < 0)
sys/dist/pf/net/pf.c
2040
if (tag > 0 || rtableid > 0) {
sys/dist/pf/net/pf.c
2045
if (tag > 0)
sys/dist/pf/net/pf.c
2046
pf_mtag->tag = tag;
sys/dist/pf/net/pf.c
2051
if (tag > 0)
sys/dist/pf/net/pf.c
2052
m->m_pkthdr.pf.tag = tag;
sys/dist/pf/net/pf.c
2528
int tag = -1;
sys/dist/pf/net/pf.c
2573
else if (r->match_tag && !pf_match_tag(m, r, &tag))
sys/dist/pf/net/pf.c
2580
if (r->tag)
sys/dist/pf/net/pf.c
2581
tag = r->tag;
sys/dist/pf/net/pf.c
2594
if (pf_tag_packet(m, tag, rtableid))
sys/dist/pf/net/pf.c
3085
int tag = -1, rtableid = -1;
sys/dist/pf/net/pf.c
3313
else if (r->match_tag && !pf_match_tag(m, r, &tag))
sys/dist/pf/net/pf.c
3321
if (r->tag)
sys/dist/pf/net/pf.c
3322
tag = r->tag;
sys/dist/pf/net/pf.c
3473
if (pf_tag_packet(m, tag, rtableid)) {
sys/dist/pf/net/pf.c
3695
if (tag > 0) {
sys/dist/pf/net/pf.c
3696
pf_tag_ref(tag);
sys/dist/pf/net/pf.c
3697
s->tag = tag;
sys/dist/pf/net/pf.c
3746
int tag = -1;
sys/dist/pf/net/pf.c
3775
else if (r->match_tag && !pf_match_tag(m, r, &tag))
sys/dist/pf/net/pf.c
3807
if (pf_tag_packet(m, tag, -1)) {
sys/dist/pf/net/pf.c
3905
(*state)->src.mss, 0, 0, (*state)->tag, NULL, NULL);
sys/dist/pf/net/pf.c
3920
(*state)->tag, NULL, NULL);
sys/dist/pf/net/pf.c
5926
if ((s && s->tag) || r->rtableid)
sys/dist/pf/net/pf.c
5927
pf_tag_packet(m, s ? s->tag : 0, r->rtableid);
sys/dist/pf/net/pf.c
6353
if ((s && s->tag) || r->rtableid)
sys/dist/pf/net/pf.c
6354
pf_tag_packet(m, s ? s->tag : 0, r->rtableid);
sys/dist/pf/net/pf_ioctl.c
1505
if ((rule->tag = pf_tagname2tag(rule->tagname)) == 0)
sys/dist/pf/net/pf_ioctl.c
1756
if ((newrule->tag =
sys/dist/pf/net/pf_ioctl.c
567
pf_tag_unref(rule->tag);
sys/dist/pf/net/pf_ioctl.c
593
struct pf_tagname *tag, *p = NULL;
sys/dist/pf/net/pf_ioctl.c
596
TAILQ_FOREACH(tag, head, entries)
sys/dist/pf/net/pf_ioctl.c
597
if (strcmp(tagname, tag->name) == 0) {
sys/dist/pf/net/pf_ioctl.c
598
tag->ref++;
sys/dist/pf/net/pf_ioctl.c
599
return (tag->tag);
sys/dist/pf/net/pf_ioctl.c
611
p->tag == new_tagid; p = TAILQ_NEXT(p, entries))
sys/dist/pf/net/pf_ioctl.c
612
new_tagid = p->tag + 1;
sys/dist/pf/net/pf_ioctl.c
618
tag = (struct pf_tagname *)malloc(sizeof(struct pf_tagname),
sys/dist/pf/net/pf_ioctl.c
620
if (tag == NULL)
sys/dist/pf/net/pf_ioctl.c
622
bzero(tag, sizeof(struct pf_tagname));
sys/dist/pf/net/pf_ioctl.c
623
strlcpy(tag->name, tagname, sizeof(tag->name));
sys/dist/pf/net/pf_ioctl.c
624
tag->tag = new_tagid;
sys/dist/pf/net/pf_ioctl.c
625
tag->ref++;
sys/dist/pf/net/pf_ioctl.c
628
TAILQ_INSERT_BEFORE(p, tag, entries);
sys/dist/pf/net/pf_ioctl.c
630
TAILQ_INSERT_TAIL(head, tag, entries);
sys/dist/pf/net/pf_ioctl.c
632
return (tag->tag);
sys/dist/pf/net/pf_ioctl.c
638
struct pf_tagname *tag;
sys/dist/pf/net/pf_ioctl.c
640
TAILQ_FOREACH(tag, head, entries)
sys/dist/pf/net/pf_ioctl.c
641
if (tag->tag == tagid) {
sys/dist/pf/net/pf_ioctl.c
642
strlcpy(p, tag->name, PF_TAG_NAME_SIZE);
sys/dist/pf/net/pf_ioctl.c
648
tag_unref(struct pf_tags *head, u_int16_t tag)
sys/dist/pf/net/pf_ioctl.c
652
if (tag == 0)
sys/dist/pf/net/pf_ioctl.c
657
if (tag == p->tag) {
sys/dist/pf/net/pf_ioctl.c
680
pf_tag_ref(u_int16_t tag)
sys/dist/pf/net/pf_ioctl.c
685
if (t->tag == tag)
sys/dist/pf/net/pf_ioctl.c
692
pf_tag_unref(u_int16_t tag)
sys/dist/pf/net/pf_ioctl.c
694
tag_unref(&pf_tags, tag);
sys/dist/pf/net/pf_mtag.h
50
u_int16_t tag; /* tag id */
sys/dist/pf/net/pfvar.h
1312
u_int16_t tag; /* tag id */
sys/dist/pf/net/pfvar.h
1318
u_int16_t tag;
sys/dist/pf/net/pfvar.h
578
u_int16_t tag;
sys/dist/pf/net/pfvar.h
767
u_int16_t tag;
sys/fs/nfs/client/nfs_clcomsubs.c
193
(void) nfsm_strtom(nd, nfsv4_opmap[procnum].tag,
sys/fs/nfs/client/nfs_clcomsubs.c
60
const u_char *tag;
sys/fs/nfs/client/nfs_clstate.c
3152
u_char tag[NFSV4_SMALLSTR + 1], *tagstr;
sys/fs/nfs/client/nfs_clstate.c
3178
tagstr = tag;
sys/fs/nfs/client/nfs_clstate.c
3188
(void) nfsm_strtom(nd, tag, taglen);
sys/fs/nfs/common/bootp_subr.c
1346
unsigned char *start, int len, int tag)
sys/fs/nfs/common/bootp_subr.c
1369
if (code == tag) {
sys/fs/nfs/common/bootp_subr.c
1389
struct bootp_packet *bp, int len, int tag)
sys/fs/nfs/common/bootp_subr.c
1401
(unsigned char *) bp + len - &bp->vend[4], tag);
sys/fs/nfs/common/bootp_subr.c
1407
tag);
sys/fs/nfs/common/bootp_subr.c
1412
tag);
sys/fs/nfs/common/bootp_subr.c
1459
p = bootpc_tag(&gctx->tag, &ifctx->reply, ifctx->replylen,
sys/fs/nfs/common/bootp_subr.c
1462
if (gctx->tag.taglen != 4)
sys/fs/nfs/common/bootp_subr.c
1464
gctx->tag.taglen);
sys/fs/nfs/common/bootp_subr.c
1472
p = bootpc_tag(&gctx->tag, &ifctx->reply, ifctx->replylen,
sys/fs/nfs/common/bootp_subr.c
1476
if (gctx->tag.taglen % 4)
sys/fs/nfs/common/bootp_subr.c
1477
panic("bootpc: Router Len is %d", gctx->tag.taglen);
sys/fs/nfs/common/bootp_subr.c
1478
if (gctx->tag.taglen > 0) {
sys/fs/nfs/common/bootp_subr.c
1503
p = bootpc_tag(&gctx->tag, &ifctx->reply, ifctx->replylen,
sys/fs/nfs/common/bootp_subr.c
1528
p = bootpc_tag(&gctx->tag, &ifctx->reply,
sys/fs/nfs/common/bootp_subr.c
1539
p = bootpc_tag(&gctx->tag, &ifctx->reply, ifctx->replylen,
sys/fs/nfs/common/bootp_subr.c
1542
if (gctx->tag.taglen >= MAXHOSTNAMELEN)
sys/fs/nfs/common/bootp_subr.c
1556
p = bootpc_tag(&gctx->tag, &ifctx->reply, ifctx->replylen,
sys/fs/nfs/common/bootp_subr.c
1565
p = bootpc_tag(&gctx->tag, &ifctx->reply, ifctx->replylen,
sys/fs/nfs/common/bootp_subr.c
200
struct bootpc_tagcontext tag;
sys/fs/nfs/common/bootp_subr.c
274
struct bootp_packet *bp, int len, int tag);
sys/fs/nfs/common/bootp_subr.c
276
unsigned char *start, int len, int tag);
sys/fs/nfs/server/nfs_nfsdkrpc.c
324
u_char tag[NFSV4_SMALLSTR + 1], *tagstr = NULL;
sys/fs/nfs/server/nfs_nfsdkrpc.c
360
nfsd_getminorvers(nd, tag, &tagstr, &taglen,
sys/fs/nfs/server/nfs_nfsdsocket.c
368
u_char *tag, int taglen, u_int32_t minorvers, NFSPROC_T *p);
sys/fs/nfs/server/nfs_nfsdsocket.c
475
nfsrvd_dorpc(struct nfsrv_descript *nd, int isdgram, u_char *tag, int taglen,
sys/fs/nfs/server/nfs_nfsdsocket.c
558
nfsrvd_compound(nd, isdgram, tag, taglen, minorvers, p);
sys/fs/nfs/server/nfs_nfsdsocket.c
620
nfsrvd_compound(struct nfsrv_descript *nd, int isdgram, u_char *tag,
sys/fs/nfs/server/nfs_nfsdsocket.c
740
(void) nfsm_strtom(nd, tag, taglen);
sys/fs/nfs/server/nfs_nfsdsubs.c
2096
nfsd_getminorvers(struct nfsrv_descript *nd, u_char *tag, u_char **tagstrp,
sys/fs/nfs/server/nfs_nfsdsubs.c
2110
tagstr = tag;
sys/fs/udf/ecma167-udf.h
315
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
323
struct desc_tag tag; /* use for extending the volume descriptor space */
sys/fs/udf/ecma167-udf.h
331
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
372
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
384
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
496
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
531
struct desc_tag tag; /* TagId 264 */
sys/fs/udf/ecma167-udf.h
540
struct desc_tag tag; /* TagId 263 */
sys/fs/udf/ecma167-udf.h
560
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
582
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
607
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
624
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
648
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
666
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
741
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
771
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
802
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
810
struct desc_tag tag;
sys/fs/udf/ecma167-udf.h
818
struct desc_tag tag;
sys/fs/udf/udf_allocation.c
1784
fe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
1788
efe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
1801
ext->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
2024
crclen = udf_rw16(dscr->tag.desc_crc_len);
sys/fs/udf/udf_allocation.c
2086
udf_inittag(ump, &ext->tag, TAGID_ALLOCEXTENT, lb_num);
sys/fs/udf/udf_allocation.c
2091
ext->tag.desc_crc_len =
sys/fs/udf/udf_allocation.c
2110
dscr->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
2122
crclen = udf_rw16(dscr->tag.desc_crc_len);
sys/fs/udf/udf_allocation.c
2154
dscr->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
2665
fe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
2670
efe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
2943
fe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
2948
efe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
3109
fe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_allocation.c
3114
efe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_readwrite.c
103
if (udf_rw16(fid->tag.id) != TAGID_FID) {
sys/fs/udf/udf_readwrite.c
109
fid->tag.tag_loc = udf_rw32(lb_num);
sys/fs/udf/udf_readwrite.c
126
struct desc_tag *tag;
sys/fs/udf/udf_readwrite.c
133
tag = (struct desc_tag *) blob;
sys/fs/udf/udf_readwrite.c
134
switch (udf_rw16(tag->id)) {
sys/fs/udf/udf_readwrite.c
163
if (udf_rw16(eahdr->tag.id) != TAGID_EXTATTR_HDR)
sys/fs/udf/udf_readwrite.c
174
eahdr->tag.tag_loc = udf_rw32(lb_num);
sys/fs/udf/udf_readwrite.c
182
struct desc_tag *tag, *sbm_tag;
sys/fs/udf/udf_readwrite.c
204
tag = (struct desc_tag *) blob;
sys/fs/udf/udf_readwrite.c
205
switch (udf_rw16(tag->id)) {
sys/fs/udf/udf_readwrite.c
207
fe = (struct file_entry *) tag;
sys/fs/udf/udf_readwrite.c
215
lb_num = udf_rw32(fe->tag.tag_loc);
sys/fs/udf/udf_readwrite.c
218
efe = (struct extfile_entry *) tag;
sys/fs/udf/udf_readwrite.c
226
lb_num = udf_rw32(efe->tag.tag_loc);
sys/fs/udf/udf_readwrite.c
233
ext = (struct alloc_ext_entry *) tag;
sys/fs/udf/udf_readwrite.c
235
ext->tag.desc_crc_len = udf_rw16(8);
sys/fs/udf/udf_readwrite.c
261
sbm_tag->tag_loc = tag->tag_loc;
sys/fs/udf/udf_readwrite.c
530
dscr->tag.tag_loc = udf_rw32(logsector);
sys/fs/udf/udf_readwrite.c
577
dscr->tag.tag_loc = udf_rw32(logsector);
sys/fs/udf/udf_readwrite.c
89
if (udf_rw16(fid->tag.id) == TAGID_FID) {
sys/fs/udf/udf_strat_direct.c
240
struct desc_tag *tag;
sys/fs/udf/udf_strat_direct.c
339
tag = (struct desc_tag *) buf->b_data;
sys/fs/udf/udf_strat_direct.c
340
tag->tag_loc = udf_rw32(*lmapping);
sys/fs/udf/udf_strat_rmw.c
744
dscrptr->tag.tag_loc = udf_rw32(logsectornr);
sys/fs/udf/udf_strat_rmw.c
773
struct desc_tag *tag;
sys/fs/udf/udf_strat_rmw.c
950
tag = (struct desc_tag *) buf->b_data;
sys/fs/udf/udf_strat_rmw.c
951
tag->tag_loc = udf_rw32(*lmapping);
sys/fs/udf/udf_strat_sequential.c
343
fdscr->tag.tag_loc = udf_rw32_lbmap;
sys/fs/udf/udf_strat_sequential.c
352
lb_num = udf_rw32(fdscr->tag.tag_loc);
sys/fs/udf/udf_strat_sequential.c
446
dscr->tag.tag_loc = udf_rw32(*lmapping + ptov);
sys/fs/udf/udf_subr.c
1020
udf_rw16(dscr->tag.id)));
sys/fs/udf/udf_subr.c
1021
switch (udf_rw16(dscr->tag.id)) {
sys/fs/udf/udf_subr.c
1063
udf_rw16(dscr->tag.id)));
sys/fs/udf/udf_subr.c
1094
if (udf_rw16(dscr->tag.id) == TAGID_TERM) {
sys/fs/udf/udf_subr.c
1211
dscr_type = udf_rw16(dscr->tag.id);
sys/fs/udf/udf_subr.c
1368
dscr_type = udf_rw16(dscr->tag.id);
sys/fs/udf/udf_subr.c
1560
dscr_type = udf_rw16(dscr->tag.id);
sys/fs/udf/udf_subr.c
1619
dscr_type = udf_rw16(dscr->tag.id);
sys/fs/udf/udf_subr.c
1696
KASSERT(udf_rw16(dscr->sbd.tag.id) == TAGID_SPACE_BITMAP);
sys/fs/udf/udf_subr.c
1697
if (udf_rw16(dscr->sbd.tag.desc_crc_len) == 0)
sys/fs/udf/udf_subr.c
1698
dscr->sbd.tag.desc_crc_len = udf_rw16(8);
sys/fs/udf/udf_subr.c
1730
KASSERT(udf_rw16(dscr->sbd.tag.id) == TAGID_SPACE_BITMAP);
sys/fs/udf/udf_subr.c
1731
if (udf_rw16(dscr->sbd.tag.desc_crc_len) == 0)
sys/fs/udf/udf_subr.c
1732
dscr->sbd.tag.desc_crc_len = udf_rw16(8);
sys/fs/udf/udf_subr.c
1794
dscr_type = udf_rw16(dscr->tag.id);
sys/fs/udf/udf_subr.c
2175
udf_inittag(struct udf_mount *ump, struct desc_tag *tag, int tagid,
sys/fs/udf/udf_subr.c
2180
tag->id = udf_rw16(tagid);
sys/fs/udf/udf_subr.c
2181
tag->descriptor_ver = ump->logical_vol->tag.descriptor_ver;
sys/fs/udf/udf_subr.c
2182
tag->cksum = 0;
sys/fs/udf/udf_subr.c
2183
tag->reserved = 0;
sys/fs/udf/udf_subr.c
2184
tag->serial_num = ump->logical_vol->tag.serial_num;
sys/fs/udf/udf_subr.c
2185
tag->tag_loc = udf_rw32(sector);
sys/fs/udf/udf_subr.c
2298
udf_inittag(ump, &fid->tag, TAGID_FID, udf_rw32(parent->loc.lb_num));
sys/fs/udf/udf_subr.c
2303
fid->tag.desc_crc_len = udf_rw16(fidsize - UDF_DESC_TAG_LENGTH);
sys/fs/udf/udf_subr.c
2396
if (udf_rw16(eahdr->tag.id) != TAGID_EXTATTR_HDR)
sys/fs/udf/udf_subr.c
2491
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
sys/fs/udf/udf_subr.c
2496
} else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
sys/fs/udf/udf_subr.c
2516
udf_inittag(ump, &extattrhdr->tag, TAGID_EXTATTR_HDR,
sys/fs/udf/udf_subr.c
2520
extattrhdr->tag.desc_crc_len = udf_rw16(8);
sys/fs/udf/udf_subr.c
2575
if (udf_rw16(ump->logical_vol->tag.descriptor_ver) != 2) {
sys/fs/udf/udf_subr.c
3172
if (udf_rw16(dscr->tag.id) == TAGID_SPARING_TABLE) {
sys/fs/udf/udf_subr.c
3371
dscr_type = udf_rw16(dscr->tag.id);
sys/fs/udf/udf_subr.c
3650
if (udf_rw16(ump->logical_vol->tag.descriptor_ver) == 2) {
sys/fs/udf/udf_subr.c
4115
udf_inittag(ump, &dscr->tag, TAGID_TERM, sector);
sys/fs/udf/udf_subr.c
4118
dscr->tag.desc_crc_len = udf_rw16(512-UDF_DESC_TAG_LENGTH);
sys/fs/udf/udf_subr.c
4682
udf_inittag(ump, &fe->tag, TAGID_FENTRY, lb_num);
sys/fs/udf/udf_subr.c
4742
fe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_subr.c
4764
udf_inittag(ump, &efe->tag, TAGID_EXTFENTRY, lb_num);
sys/fs/udf/udf_subr.c
4811
efe->tag.desc_crc_len = udf_rw16(crclen);
sys/fs/udf/udf_subr.c
5250
udf_inittag(ump, &fid->tag, TAGID_FID, 0);
sys/fs/udf/udf_subr.c
5270
fid->tag.desc_crc_len = udf_rw16(chosen_size - UDF_DESC_TAG_LENGTH);
sys/fs/udf/udf_subr.c
5429
dscr_type = udf_rw16(dscr->tag.id);
sys/fs/udf/udf_subr.c
5582
dscr_type = udf_rw16(dscr->tag.id);
sys/fs/udf/udf_subr.c
5937
if (udf_rw16(ump->logical_vol->tag.descriptor_ver) == 2) {
sys/fs/udf/udf_subr.c
5949
KASSERT(dscr->tag.tag_loc == udf_node->loc.loc.lb_num);
sys/fs/udf/udf_subr.c
624
struct desc_tag *tag = blob;
sys/fs/udf/udf_subr.c
628
pos = (uint8_t *) tag;
sys/fs/udf/udf_subr.c
6350
if (udf_rw16(fid->tag.id) != TAGID_FID) {
sys/fs/udf/udf_subr.c
636
if (sum != tag->cksum) {
sys/fs/udf/udf_subr.c
653
struct desc_tag *tag = blob;
sys/fs/udf/udf_subr.c
656
crc_len = udf_rw16(tag->desc_crc_len);
sys/fs/udf/udf_subr.c
665
crc = udf_cksum(((uint8_t *) tag) + UDF_DESC_TAG_LENGTH, crc_len);
sys/fs/udf/udf_subr.c
666
if (crc != udf_rw16(tag->desc_crc)) {
sys/fs/udf/udf_subr.c
678
struct desc_tag *tag = blob;
sys/fs/udf/udf_subr.c
682
pos = (uint8_t *) tag;
sys/fs/udf/udf_subr.c
689
tag->cksum = sum; /* 8 bit */
sys/fs/udf/udf_subr.c
697
struct desc_tag *tag = blob;
sys/fs/udf/udf_subr.c
698
uint8_t *btag = (uint8_t *) tag;
sys/fs/udf/udf_subr.c
701
crc_len = udf_rw16(tag->desc_crc_len);
sys/fs/udf/udf_subr.c
706
tag->desc_crc = udf_rw16(crc);
sys/fs/udf/udf_subr.c
725
tag_id = udf_rw16(dscr->tag.id);
sys/fs/udf/udf_subr.c
788
if (udf_rw16(fid->tag.id) != TAGID_FID)
sys/fs/udf/udf_subr.c
849
if (udf_rw16((*dst)->tag.id) != TAGID_ANCHOR) {
sys/fs/udf/udf_subr.h
159
void udf_inittag(struct udf_mount *ump, struct desc_tag *tag, int tagid, uint32_t sector);
sys/kern/subr_acl_nfs4.c
106
ae->ae_tag = tag;
sys/kern/subr_acl_nfs4.c
273
int flags, tag;
sys/kern/subr_acl_nfs4.c
283
tag = parent_entry->ae_tag;
sys/kern/subr_acl_nfs4.c
288
if (tag == ACL_USER_OBJ || tag == ACL_GROUP_OBJ ||
sys/kern/subr_acl_nfs4.c
289
tag == ACL_EVERYONE)
sys/kern/subr_acl_nfs4.c
73
_acl_entry_matches(struct acl_entry *ae, acl_tag_t tag, acl_perm_t perm,
sys/kern/subr_acl_nfs4.c
76
if (ae->ae_tag != tag)
sys/kern/subr_acl_nfs4.c
96
_acl_append(struct acl *aclp, acl_tag_t tag, acl_perm_t perm,
sys/kern/subr_acl_posix1e.c
107
acl_posix1e_mode_to_entry(acl_tag_t tag, uid_t uid, gid_t gid, mode_t mode)
sys/kern/subr_acl_posix1e.c
111
acl_entry.ae_tag = tag;
sys/kern/subr_acl_posix1e.c
112
acl_entry.ae_perm = acl_posix1e_mode_to_perm(tag, mode);
sys/kern/subr_acl_posix1e.c
115
switch(tag) {
sys/kern/subr_acl_posix1e.c
130
printf("acl_posix1e_mode_to_entry: invalid tag (%d)\n", tag);
sys/kern/subr_acl_posix1e.c
64
acl_posix1e_mode_to_perm(acl_tag_t tag, mode_t mode)
sys/kern/subr_acl_posix1e.c
68
switch(tag) {
sys/kern/subr_acl_posix1e.c
97
printf("%s: invalid tag (%u)\n", __func__, tag);
sys/kern/subr_asan.c
1003
bus_space_read_region_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_asan.c
1011
void kasan_bus_space_write_multi_##bytes(bus_space_tag_t tag, \
sys/kern/subr_asan.c
1017
bus_space_write_multi_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_asan.c
1023
void kasan_bus_space_write_multi_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_asan.c
1029
bus_space_write_multi_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_asan.c
1035
void kasan_bus_space_write_region_##bytes(bus_space_tag_t tag, \
sys/kern/subr_asan.c
1041
bus_space_write_region_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_asan.c
1047
void kasan_bus_space_write_region_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_asan.c
1053
bus_space_write_region_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_asan.c
961
void kasan_bus_space_read_multi_##bytes(bus_space_tag_t tag, \
sys/kern/subr_asan.c
967
bus_space_read_multi_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_asan.c
973
void kasan_bus_space_read_multi_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_asan.c
979
bus_space_read_multi_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_asan.c
985
void kasan_bus_space_read_region_##bytes(bus_space_tag_t tag, \
sys/kern/subr_asan.c
991
bus_space_read_region_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_asan.c
997
void kasan_bus_space_read_region_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_csan.c
672
void kcsan_bus_space_read_multi_##bytes(bus_space_tag_t tag, \
sys/kern/subr_csan.c
678
bus_space_read_multi_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_csan.c
684
void kcsan_bus_space_read_multi_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_csan.c
690
bus_space_read_multi_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_csan.c
696
void kcsan_bus_space_read_region_##bytes(bus_space_tag_t tag, \
sys/kern/subr_csan.c
702
bus_space_read_region_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_csan.c
708
void kcsan_bus_space_read_region_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_csan.c
714
bus_space_read_region_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_csan.c
722
void kcsan_bus_space_write_multi_##bytes(bus_space_tag_t tag, \
sys/kern/subr_csan.c
728
bus_space_write_multi_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_csan.c
734
void kcsan_bus_space_write_multi_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_csan.c
740
bus_space_write_multi_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_csan.c
746
void kcsan_bus_space_write_region_##bytes(bus_space_tag_t tag, \
sys/kern/subr_csan.c
752
bus_space_write_region_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_csan.c
758
void kcsan_bus_space_write_region_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_csan.c
764
bus_space_write_region_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_msan.c
1381
void kmsan_bus_space_read_multi_##bytes(bus_space_tag_t tag, \
sys/kern/subr_msan.c
1387
bus_space_read_multi_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_msan.c
1393
void kmsan_bus_space_read_multi_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_msan.c
1399
bus_space_read_multi_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_msan.c
1405
void kmsan_bus_space_read_region_##bytes(bus_space_tag_t tag, \
sys/kern/subr_msan.c
1411
bus_space_read_region_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_msan.c
1417
void kmsan_bus_space_read_region_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_msan.c
1423
bus_space_read_region_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_msan.c
1453
void kmsan_bus_space_write_multi_##bytes(bus_space_tag_t tag, \
sys/kern/subr_msan.c
1459
bus_space_write_multi_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_msan.c
1465
void kmsan_bus_space_write_multi_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_msan.c
1471
bus_space_write_multi_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/subr_msan.c
1477
void kmsan_bus_space_write_region_##bytes(bus_space_tag_t tag, \
sys/kern/subr_msan.c
1483
bus_space_write_region_##bytes(tag, hnd, size, buf, count); \
sys/kern/subr_msan.c
1489
void kmsan_bus_space_write_region_stream_##bytes(bus_space_tag_t tag, \
sys/kern/subr_msan.c
1495
bus_space_write_region_stream_##bytes(tag, hnd, size, buf, count);\
sys/kern/uipc_mbufdebug.c
316
if (ntohs(pt.tag) == PPPOE_TAG_EOL)
sys/kern/uipc_mbufdebug.c
77
uint16_t tag;
sys/kern/vfs_lockf.c
135
lf_print(const char *tag, struct lockf *lock)
sys/kern/vfs_lockf.c
138
printf("%s: lock %p for ", tag, lock);
sys/kern/vfs_lockf.c
155
lf_printlist(const char *tag, struct lockf *lock)
sys/kern/vfs_lockf.c
159
printf("%s: Lock list:\n", tag);
sys/lib/libsa/bootp.c
366
u_char tag;
sys/lib/libsa/bootp.c
378
tag = *cp++;
sys/lib/libsa/bootp.c
380
if (tag == TAG_END)
sys/lib/libsa/bootp.c
383
if (tag == TAG_SUBNET_MASK && size >= sizeof(smask)) {
sys/lib/libsa/bootp.c
386
if (tag == TAG_GATEWAY && size >= sizeof(gateip.s_addr)) {
sys/lib/libsa/bootp.c
389
if (tag == TAG_SWAPSERVER && size >= sizeof(rootip.s_addr)) {
sys/lib/libsa/bootp.c
393
if (tag == TAG_ROOTPATH && size < sizeof(rootpath)) {
sys/lib/libsa/bootp.c
397
if (tag == TAG_HOSTNAME && size < sizeof(hostname)) {
sys/lib/libsa/bootp.c
402
if (tag == TAG_DHCP_MSGTYPE) {
sys/lib/libsa/bootp.c
407
if (tag == TAG_SERVERID &&
sys/lib/libsa/bootp.c
415
if (tag == TAG_LINUX_CMDLINE && size < sizeof(linuxcmdline)) {
sys/miscfs/kernfs/kernfs.h
175
#define KERNFS_INITENTRY(dkt, type, name, data, tag, vtype, mode) do { \
sys/miscfs/kernfs/kernfs.h
180
(dkt)->dkt_kt.kt_tag = (tag); \
sys/net/if_ether.h
63
#define EVL_VLANOFTAG(tag) ((tag) & 4095) /* VLAN ID */
sys/net/if_ether.h
64
#define EVL_PRIOFTAG(tag) (((tag) >> 13) & 7) /* Priority */
sys/net/if_ether.h
65
#define EVL_CFIOFTAG(tag) (((tag) >> 12) & 1) /* CFI */
sys/net/if_ethersubr.c
1829
ether_inject_vlantag(struct mbuf **mp, uint16_t etype, uint16_t tag)
sys/net/if_ethersubr.c
1866
evl->evl_tag = htons(tag);
sys/net/if_pppoe.c
636
uint16_t tag, len;
sys/net/if_pppoe.c
692
tag = 0;
sys/net/if_pppoe.c
703
tag = ntohs(pt->tag);
sys/net/if_pppoe.c
708
switch (tag) {
sys/net/if_pppoe.c
95
uint16_t tag;
sys/net/if_vlan.c
404
vlan_config(struct ifvlan *ifv, struct ifnet *p, uint16_t tag)
sys/net/if_vlan.c
412
const uint16_t vid = EVL_VLANOFTAG(tag);
sys/net/if_vlan.c
476
error = ether_add_vlantag(p, tag, NULL);
sys/net/if_vlan.c
718
vlan_tag_hash(uint16_t tag, u_long mask)
sys/net/if_vlan.c
722
hash = (tag >> 8) ^ tag;
sys/net/if_vlan.c
755
vlan_lookup_tag_psref(struct ifnet *ifp, uint16_t tag, struct psref *psref)
sys/net/if_vlan.c
761
idx = vlan_tag_hash(tag, ifv_hash.mask);
sys/net/if_vlan.c
769
if (mib->ifvm_tag != tag)
sys/net/npf/npf_conndb.c
207
const uintptr_t tag = (CONNDB_FORW_BIT * !flow);
sys/net/npf/npf_conndb.c
215
val = (void *)((uintptr_t)(void *)con | tag);
sys/net/route.c
1247
const struct sockaddr *tag;
sys/net/route.c
1248
tag = rt_settag(rt, info->rti_info[RTAX_TAG]);
sys/net/route.c
1249
if (tag == NULL)
sys/net/route.c
1465
const struct sockaddr *tag;
sys/net/route.c
1466
tag = rt_settag(rt, info->rti_info[RTAX_TAG]);
sys/net/route.c
1467
if (tag == NULL) {
sys/net/route.c
2274
rt_settag(struct rtentry *rt, const struct sockaddr *tag)
sys/net/route.c
2276
if (rt->rt_tag != tag) {
sys/net/route.c
2279
rt->rt_tag = sockaddr_dup(tag, M_ZERO | M_NOWAIT);
sys/net80211/ieee80211_input.c
1501
ieee80211_ssid_mismatch(struct ieee80211com *ic, const char *tag,
sys/net80211/ieee80211_input.c
1507
ether_snprintf(ebuf, sizeof(ebuf), mac), tag);
sys/netinet/icmp6.h
672
#define icmp6_ifstat_inc(ifp, tag) \
sys/netinet/icmp6.h
675
((struct in6_ifextra *)((ifp)->if_afdata[AF_INET6]))->icmp6_ifstat->tag++; \
sys/netinet/sctp_pcb.c
2919
sctp_add_vtag_to_timewait(struct sctp_inpcb *inp, u_int32_t tag)
sys/netinet/sctp_pcb.c
2926
chain = &sctppcbinfo.vtag_timewait[(tag % SCTP_STACK_VTAG_HASH_SIZE)];
sys/netinet/sctp_pcb.c
2936
twait_block->vtag_block[0].v_tag = tag;
sys/netinet/sctp_pcb.c
2947
twait_block->vtag_block[0].v_tag = tag;
sys/netinet/sctp_pcb.c
2971
twait_block->vtag_block[0].v_tag = tag;
sys/netinet/sctp_pcb.c
4337
sctp_is_vtag_good(struct sctp_inpcb *inp, u_int32_t tag, struct timeval *now)
sys/netinet/sctp_pcb.c
4353
chain = &sctppcbinfo.vtag_timewait[(tag % SCTP_STACK_VTAG_HASH_SIZE)];
sys/netinet/sctp_pcb.c
4356
head = &sctppcbinfo.sctp_asochash[SCTP_PCBHASH_ASOC(tag,
sys/netinet/sctp_pcb.c
4363
if (stcb->asoc.my_vtag == tag) {
sys/netinet/sctp_pcb.c
4392
tag) {
sys/netinet/sctp_pcb.h
102
#define SCTP_PCBHASH_ASOC(tag, mask) (tag & mask)
sys/netinet/sctputil.c
2967
u_int32_t tag, struct sctp_inpcb *inp)
sys/netinet/sctputil.c
2975
m0->m_pkthdr.csum_data = (int)tag;
sys/netinet/sctputil.c
3001
m->m_pkthdr.csum_data = tag;
sys/netinet/sctputil.c
3020
inp->sctp_vtag_first = tag;
sys/netinet/sctputil.c
3068
m->m_pkthdr.csum_data = (int)tag;
sys/netinet/sctputil.c
3074
inp->sctp_vtag_first = tag;
sys/netinet/sctputil.c
3079
inp->sctp_vtag_first = tag;
sys/netinet/sctputil.c
3098
inp->sctp_vtag_first = tag;
sys/netinet/sctputil.c
3108
m0->m_pkthdr.csum = (int)tag;
sys/netinet/sctputil.c
3130
m->m_pkthdr.csum = (int)tag;
sys/netinet/sctputil.c
3149
inp->sctp_vtag_first = tag;
sys/netinet/tcp_vtw.c
1030
uint32_t tag;
sys/netinet/tcp_vtw.c
1036
tag = v4_port_tag(lport);
sys/netinet/tcp_vtw.c
1038
it->fp = ctl->fat->port[tag & ctl->fat->mask];
sys/netinet/tcp_vtw.c
1062
idx = fp->tag[i] ^ tag ^ fatp_xtra[i];
sys/netinet/tcp_vtw.c
1144
uint32_t tag;
sys/netinet/tcp_vtw.c
1150
tag = v6_port_tag(lport);
sys/netinet/tcp_vtw.c
1152
it->fp = ctl->fat->port[tag & ctl->fat->mask];
sys/netinet/tcp_vtw.c
1176
idx = fp->tag[i] ^ tag ^ fatp_xtra[i];
sys/netinet/tcp_vtw.c
1191
, fp->tag[i], tag, fatp_xtra[i]));
sys/netinet/tcp_vtw.c
355
fatp_vtw_inshash(fatp_ctl_t *fat, uint32_t idx, uint32_t tag, int which,
sys/netinet/tcp_vtw.c
362
fp = hash[tag & fat->mask];
sys/netinet/tcp_vtw.c
378
fp = hash[tag & fat->mask];
sys/netinet/tcp_vtw.c
385
hash[tag & fat->mask] = fq;
sys/netinet/tcp_vtw.c
401
fp->tag[i] = tag ^ idx_encode(fat->vtw, idx) ^ fatp_xtra[i];
sys/netinet/tcp_vtw.c
406
, i, fp->tag[i]));
sys/netinet/tcp_vtw.c
519
uint32_t tag, slot, idx;
sys/netinet/tcp_vtw.c
529
tag = v4_tag(v4->faddr, v4->fport, v4->laddr, v4->lport);
sys/netinet/tcp_vtw.c
531
tag = v6_tag(&v6->faddr, v6->fport, &v6->laddr, v6->lport);
sys/netinet/tcp_vtw.c
533
tag = 0;
sys/netinet/tcp_vtw.c
545
, fp->inuse, slot, idx, key, tag));
sys/netinet/tcp_vtw.c
548
KASSERT(fp->tag[slot] == (tag ^ idx_encode(ctl, idx)
sys/netinet/tcp_vtw.c
552
&& fp->tag[slot] == (tag ^ idx_encode(ctl, idx)
sys/netinet/tcp_vtw.c
555
fp->tag[slot] = 0;
sys/netinet/tcp_vtw.c
563
uint32_t hi = tag & fat->mask;
sys/netinet/tcp_vtw.c
610
tag = v4_port_tag(v4->lport);
sys/netinet/tcp_vtw.c
612
tag = v6_port_tag(v6->lport);
sys/netinet/tcp_vtw.c
625
, fp->inuse, slot, idx, key, tag));
sys/netinet/tcp_vtw.c
628
KASSERT(fp->tag[slot] == (tag ^ idx_encode(ctl, idx)
sys/netinet/tcp_vtw.c
632
&& fp->tag[slot] == (tag ^ idx_encode(ctl, idx)
sys/netinet/tcp_vtw.c
635
fp->tag[slot] = 0;
sys/netinet/tcp_vtw.c
638
uint32_t hi = tag & fat->mask;
sys/netinet/tcp_vtw.c
708
uint32_t tag;
sys/netinet/tcp_vtw.c
717
tag = v4_tag(v4->faddr, v4->fport,
sys/netinet/tcp_vtw.c
720
vtw->key = fatp_vtw_inshash(ctl->fat, idx, tag, 0, vtw);
sys/netinet/tcp_vtw.c
727
, tag
sys/netinet/tcp_vtw.c
730
tag = v4_port_tag(v4->lport);
sys/netinet/tcp_vtw.c
731
vtw->port_key = fatp_vtw_inshash(ctl->fat, idx, tag, 1, vtw);
sys/netinet/tcp_vtw.c
735
, tag
sys/netinet/tcp_vtw.c
747
uint32_t tag;
sys/netinet/tcp_vtw.c
756
tag = v6_tag(&v6->faddr, v6->fport,
sys/netinet/tcp_vtw.c
759
vtw->key = fatp_vtw_inshash(ctl->fat, idx, tag, 0, vtw);
sys/netinet/tcp_vtw.c
761
tag = v6_port_tag(v6->lport);
sys/netinet/tcp_vtw.c
762
vtw->port_key = fatp_vtw_inshash(ctl->fat, idx, tag, 1, vtw);
sys/netinet/tcp_vtw.c
766
, tag
sys/netinet/tcp_vtw.c
779
uint32_t tag;
sys/netinet/tcp_vtw.c
790
tag = v4_port_tag(lport);
sys/netinet/tcp_vtw.c
791
fp = ctl->fat->port[tag & ctl->fat->mask];
sys/netinet/tcp_vtw.c
793
tag = v4_tag(faddr, fport, laddr, lport);
sys/netinet/tcp_vtw.c
794
fp = ctl->fat->hash[tag & ctl->fat->mask];
sys/netinet/tcp_vtw.c
813
idx = fp->tag[i] ^ tag ^ fatp_xtra[i];
sys/netinet/tcp_vtw.c
824
, idx, tag));
sys/netinet/tcp_vtw.c
932
uint32_t tag;
sys/netinet/tcp_vtw.c
943
tag = v6_port_tag(lport);
sys/netinet/tcp_vtw.c
944
fp = ctl->fat->port[tag & ctl->fat->mask];
sys/netinet/tcp_vtw.c
946
tag = v6_tag(faddr, fport, laddr, lport);
sys/netinet/tcp_vtw.c
947
fp = ctl->fat->hash[tag & ctl->fat->mask];
sys/netinet/tcp_vtw.c
966
idx = fp->tag[i] ^ tag ^ fatp_xtra[i];
sys/netinet/tcp_vtw.h
178
fatp_word_t tag[FATP_NTAGS]; /* 15 tags per CL */
sys/netinet/tcp_vtw.h
340
uint32_t tag = lport ^ (lport << 11);
sys/netinet/tcp_vtw.h
342
tag ^= tag << 3;
sys/netinet/tcp_vtw.h
343
tag += tag >> 5;
sys/netinet/tcp_vtw.h
344
tag ^= tag << 4;
sys/netinet/tcp_vtw.h
345
tag += tag >> 17;
sys/netinet/tcp_vtw.h
346
tag ^= tag << 25;
sys/netinet/tcp_vtw.h
347
tag += tag >> 6;
sys/netinet/tcp_vtw.h
349
return tag;
sys/netinet/udp_usrreq.c
1252
struct m_tag *tag;
sys/netinet/udp_usrreq.c
1326
if ((tag = m_tag_get(PACKET_TAG_IPSEC_NAT_T_PORTS,
sys/netinet/udp_usrreq.c
1332
((u_int16_t *)(tag + 1))[0] = sport;
sys/netinet/udp_usrreq.c
1333
((u_int16_t *)(tag + 1))[1] = dport;
sys/netinet/udp_usrreq.c
1334
m_tag_prepend(m, tag);
sys/netinet6/in6_var.h
486
#define in6_ifstat_inc(ifp, tag) \
sys/netinet6/in6_var.h
489
((struct in6_ifextra *)((ifp)->if_afdata[AF_INET6]))->in6_ifstat->tag++; \
sys/netinet6/udp6_usrreq.c
1417
struct m_tag *tag;
sys/netinet6/udp6_usrreq.c
1495
if ((tag = m_tag_get(PACKET_TAG_IPSEC_NAT_T_PORTS,
sys/netinet6/udp6_usrreq.c
1501
((u_int16_t *)(tag + 1))[0] = sport;
sys/netinet6/udp6_usrreq.c
1502
((u_int16_t *)(tag + 1))[1] = dport;
sys/netinet6/udp6_usrreq.c
1503
m_tag_prepend(m, tag);
sys/netipsec/ipsec.c
352
key_get_default_sp(int af, const char *where, int tag)
sys/netipsec/ipsec.c
356
KEYDEBUG_PRINTF(KEYDEBUG_IPSEC_STAMP, "DP from %s:%u\n", where, tag);
sys/netipsec/ipsec_input.c
176
struct m_tag *tag;
sys/netipsec/ipsec_input.c
178
if ((tag = m_tag_find(m, PACKET_TAG_IPSEC_NAT_T_PORTS))) {
sys/netipsec/ipsec_input.c
179
*sport = ((uint16_t *)(tag + 1))[0];
sys/netipsec/ipsec_input.c
180
*dport = ((uint16_t *)(tag + 1))[1];
sys/netipsec/key.c
1003
KEYDEBUG_PRINTF(KEYDEBUG_IPSEC_STAMP, "DP from %s:%u\n", where, tag);
sys/netipsec/key.c
1053
key_sp_ref(sp, where, tag);
sys/netipsec/key.c
1259
const char* where, int tag)
sys/netipsec/key.c
1299
where, tag,
sys/netipsec/key.c
1355
key_sa_ref(sav, where, tag);
sys/netipsec/key.c
1413
key_sp_ref(struct secpolicy *sp, const char* where, int tag)
sys/netipsec/key.c
1420
sp, sp->id, where, tag, key_sp_refcnt(sp));
sys/netipsec/key.c
1428
key_sp_unref(struct secpolicy *sp, const char* where, int tag)
sys/netipsec/key.c
1435
sp, sp->id, where, tag, key_sp_refcnt(sp));
sys/netipsec/key.c
1460
key_sa_ref(struct secasvar *sav, const char* where, int tag)
sys/netipsec/key.c
1467
sav, where, tag);
sys/netipsec/key.c
1471
key_sa_unref(struct secasvar *sav, const char* where, int tag)
sys/netipsec/key.c
1478
sav, where, tag);
sys/netipsec/key.c
1807
key_newsp(const char* where, int tag)
sys/netipsec/key.c
1814
"DP from %s:%u return SP:%p\n", where, tag, newsp);
sys/netipsec/key.c
3291
int *errp, int proto, const char* where, int tag)
sys/netipsec/key.c
3352
where, tag, newsav, ntohl(newsav->spi), proto);
sys/netipsec/key.c
3359
"DP from %s:%u return SA:NULL\n", where, tag);
sys/netipsec/key.c
942
u_int dir, const char* where, int tag)
sys/netipsec/key.c
950
KEYDEBUG_PRINTF(KEYDEBUG_IPSEC_STAMP, "DP from %s:%u\n", where, tag);
sys/netipsec/key.c
976
key_sp_ref(sp, where, tag);
sys/netipsec/key.c
995
const char* where, int tag)
sys/netipsec/key_debug.c
666
kdebug_hexdump(const char *tag, const void *v, size_t len)
sys/netipsec/key_debug.c
672
printf(" %s=", tag);
sys/nfs/nfs_bootdhcp.c
326
u_int tag, len;
sys/nfs/nfs_bootdhcp.c
419
tag = *p++;
sys/nfs/nfs_bootdhcp.c
420
if (tag == TAG_END)
sys/nfs/nfs_bootdhcp.c
422
if (tag == TAG_PAD)
sys/nfs/nfs_bootdhcp.c
426
printf("nfs_boot: option %d too long", tag);
sys/nfs/nfs_bootdhcp.c
429
switch (tag) {
sys/nfs/nfs_bootdhcp.c
709
u_int tag, len;
sys/nfs/nfs_bootdhcp.c
728
tag = *p++;
sys/nfs/nfs_bootdhcp.c
729
if (tag == TAG_END)
sys/nfs/nfs_bootdhcp.c
731
if (tag == TAG_PAD)
sys/nfs/nfs_bootdhcp.c
736
printf("nfs_boot: option %d too long\n", tag);
sys/nfs/nfs_bootdhcp.c
740
switch (tag) {
sys/rump/dev/lib/libpci/rumpdev_pci.c
102
pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag,
sys/rump/dev/lib/libpci/rumpdev_pci.c
105
int *t = (int *)&tag;
sys/rump/dev/lib/libpci/rumpdev_pci.c
57
int *tag;
sys/rump/dev/lib/libpci/rumpdev_pci.c
64
tag = (int *)&pt;
sys/rump/dev/lib/libpci/rumpdev_pci.c
65
*tag = (bus << 16) | (device << 8) | (function << 0);
sys/rump/dev/lib/libpci/rumpdev_pci.c
82
pci_conf_read(pci_chipset_tag_t pc, pcitag_t tag, int reg)
sys/rump/dev/lib/libpci/rumpdev_pci.c
87
pci_decompose_tag(pc, tag, &bus, &device, &fun);
sys/rump/dev/lib/libpci/rumpdev_pci.c
93
pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
sys/rump/dev/lib/libpci/rumpdev_pci.c
97
pci_decompose_tag(pc, tag, &bus, &device, &fun);
sys/stand/efiboot/efinet.c
296
bi_netif.addr.tag = eni->bus.tag;
sys/stand/efiboot/efinet.c
60
u_int tag;
sys/sys/acl.h
288
acl_perm_t acl_posix1e_mode_to_perm(acl_tag_t tag, mode_t mode);
sys/sys/acl.h
289
struct acl_entry acl_posix1e_mode_to_entry(acl_tag_t tag, uid_t uid,
sys/sys/bus_proto.h
110
void bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
sys/sys/disklabel.h
338
#define DKTYPE_NUMS(tag, number, name) __CONCAT(DKTYPE_,tag=number),
sys/sys/disklabel.h
347
#define DKTYPE_NAMES(tag, number, name) [number] = name,
sys/sys/disklabel.h
394
#define FS_TYPENUMS(tag, number, name, fsck, mount) __CONCAT(FS_,tag=number),
sys/sys/disklabel.h
403
#define FS_TYPENAMES(tag, number, name, fsck, mount) [number] = name,
sys/sys/disklabel.h
410
#define FS_FSCKNAMES(tag, number, name, fsck, mount) [number] = fsck,
sys/sys/disklabel.h
418
#define FS_MOUNTNAMES(tag, number, name, fsck, mount) [number] = mount,
sys/sys/midiio.h
415
uint8_t tag
sys/sys/midiio.h
586
(seq_event_t){ ._member = { .tag = (_tag), __VA_ARGS__ } }
sys/sys/midiio.h
601
(seq_event_t){ ._member = { .tag = (_tag), _args } }
sys/sys/midiio.h
630
switch ( e.tag ) {
sys/uvm/uvm_aobj.c
115
voff_t tag; /* our 'tag' */
sys/uvm/uvm_aobj.c
1339
if (elt->tag < taglo || taghi < elt->tag) {
sys/uvm/uvm_aobj.c
1343
if (elt->tag == taglo) {
sys/uvm/uvm_aobj.c
1350
if (elt->tag == taghi) {
sys/uvm/uvm_aobj.c
218
if (elt->tag == page_tag) {
sys/uvm/uvm_aobj.c
235
elt->tag = page_tag;
sys/uvm/uvm_aobj.c
88
((elt)->tag << UAO_SWHASH_CLUSTER_SHIFT)
sys/uvm/uvm_object.c
237
uvm_obj_notag_p(struct uvm_object *uobj, int tag)
sys/uvm/uvm_object.c
241
return radix_tree_empty_tagged_tree_p(&uobj->uo_pages, tag);
sys/uvm/uvm_object.c
259
uvm_obj_page_tag_p(struct vm_page *pg, int tag)
sys/uvm/uvm_object.c
266
return radix_tree_get_tag(&uobj->uo_pages, pgidx, tag) != 0;
sys/uvm/uvm_object.c
270
uvm_obj_page_set_tag(struct vm_page *pg, int tag)
sys/uvm/uvm_object.c
277
radix_tree_set_tag(&uobj->uo_pages, pgidx, tag);
sys/uvm/uvm_object.c
281
uvm_obj_page_clear_tag(struct vm_page *pg, int tag)
sys/uvm/uvm_object.c
288
radix_tree_clear_tag(&uobj->uo_pages, pgidx, tag);
sys/uvm/uvm_page.c
1695
uvm_page_own(struct vm_page *pg, const char *tag)
sys/uvm/uvm_page.c
1702
if (tag) {
sys/uvm/uvm_page.c
1712
pg->owner_tag = tag;
tests/usr.bin/indent/lsym_lparen_or_lbracket.c
130
a = (struct tag)b;
tests/usr.bin/indent/lsym_tag.c
111
struct /* comment */ tag var;
tests/usr.bin/indent/lsym_tag.c
115
struct /* comment */ tag var;
tests/usr.bin/indent/lsym_tag.c
52
} tag;
tests/usr.bin/xlint/lint1/decl_struct_c90.c
11
enum { A, B, C } tag;
tests/usr.bin/xlint/lint1/gcc_attribute_enum.c
16
enum __attribute__(()) __attribute__((__deprecated__)) tag;
tests/usr.bin/xlint/lint1/msg_013.c
12
void function(enum tag);
tests/usr.bin/xlint/lint1/msg_013.c
8
enum tag;
tests/usr.bin/xlint/lint1/msg_044.c
11
void declaration(struct tag *);
tests/usr.bin/xlint/lint1/msg_044.c
16
struct tag;
tests/usr.bin/xlint/lint1/msg_044.c
9
struct tag;
usr.bin/audio/common/libaudio.h
240
u_int16_t tag;
usr.bin/audio/common/wav.c
185
fmttag = getle16(fmt.tag);
usr.bin/logger/logger.c
106
tag = optarg;
usr.bin/logger/logger.c
116
openlog(tag != NULL ? tag : getlogin(), logflags, 0);
usr.bin/logger/logger.c
70
const char *tag;
usr.bin/logger/logger.c
75
tag = NULL;
usr.bin/midirecord/midirecord.c
580
e.tag,
usr.bin/midirecord/midirecord.c
586
switch (e.tag) {
usr.bin/midirecord/midirecord.c
612
errx(1, "don't understand midi tag %x", e.tag);
usr.bin/quota/quota.c
409
const char *tag)
usr.bin/quota/quota.c
416
printf("Default %s disk quotas: %s\n", idtypename, tag);
usr.bin/quota/quota.c
419
idtypename, idname, idtypename[0], id, tag);
usr.bin/quota/quota.c
421
if (!qflag && tag[0] == '\0') {
usr.bin/xlint/lint1/debug.c
443
const char *tag = sou->sou_tag->s_name;
usr.bin/xlint/lint1/debug.c
445
if (tag == unnamed && def != NULL)
usr.bin/xlint/lint1/debug.c
448
debug_printf(" sou='%s'", tag);
usr.bin/xlint/lint1/decl.c
1600
new_tag(sym_t *tag, scl_t scl, bool decl, bool semi)
usr.bin/xlint/lint1/decl.c
1603
if (tag->s_block_level < block_level) {
usr.bin/xlint/lint1/decl.c
1611
tag->s_name);
usr.bin/xlint/lint1/decl.c
1612
tag = pushdown(tag);
usr.bin/xlint/lint1/decl.c
1613
} else if (tag->s_scl != scl)
usr.bin/xlint/lint1/decl.c
1615
warning(45, tag_name(tag->s_scl), tag->s_name);
usr.bin/xlint/lint1/decl.c
1621
warning(43, tag->s_name);
usr.bin/xlint/lint1/decl.c
1622
tag = pushdown(tag);
usr.bin/xlint/lint1/decl.c
1624
} else if (tag->s_scl != scl) {
usr.bin/xlint/lint1/decl.c
1626
warning(45, tag_name(tag->s_scl), tag->s_name);
usr.bin/xlint/lint1/decl.c
1630
warning(44, tag_name(scl), tag->s_name);
usr.bin/xlint/lint1/decl.c
1631
tag = pushdown(tag);
usr.bin/xlint/lint1/decl.c
1635
if (tag->s_scl != scl ||
usr.bin/xlint/lint1/decl.c
1636
(decl && !is_incomplete(tag->s_type))) {
usr.bin/xlint/lint1/decl.c
1638
error(46, tag_name(tag->s_scl),
usr.bin/xlint/lint1/decl.c
1639
tag->s_name, tag_name(scl));
usr.bin/xlint/lint1/decl.c
1640
print_previous_declaration(tag);
usr.bin/xlint/lint1/decl.c
1641
tag = pushdown(tag);
usr.bin/xlint/lint1/decl.c
1646
debug_sym("new_tag: ", tag, "\n");
usr.bin/xlint/lint1/decl.c
1648
return tag;
usr.bin/xlint/lint1/decl.c
1659
make_tag_type(sym_t *tag, tspec_t kind, bool decl, bool semi)
usr.bin/xlint/lint1/decl.c
1673
if (tag != NULL) {
usr.bin/xlint/lint1/decl.c
1674
if (tag->s_scl != NO_SCL)
usr.bin/xlint/lint1/decl.c
1675
tag = new_tag(tag, scl, decl, semi);
usr.bin/xlint/lint1/decl.c
1687
if (tag->s_scl == NO_SCL) {
usr.bin/xlint/lint1/decl.c
1688
tag->s_scl = scl;
usr.bin/xlint/lint1/decl.c
1689
tag->s_type = tp =
usr.bin/xlint/lint1/decl.c
1693
tp = tag->s_type;
usr.bin/xlint/lint1/decl.c
1696
tag = block_zero_alloc(sizeof(*tag), "sym");
usr.bin/xlint/lint1/decl.c
1697
tag->s_name = unnamed;
usr.bin/xlint/lint1/decl.c
1698
tag->s_def_pos = unique_curr_pos();
usr.bin/xlint/lint1/decl.c
1699
tag->s_kind = SK_TAG;
usr.bin/xlint/lint1/decl.c
1700
tag->s_scl = scl;
usr.bin/xlint/lint1/decl.c
1701
tag->s_block_level = -1;
usr.bin/xlint/lint1/decl.c
1702
tag->s_type = tp = block_zero_alloc(sizeof(*tp), "type");
usr.bin/xlint/lint1/decl.c
1713
tp->u.sou->sou_tag = tag;
usr.bin/xlint/lint1/decl.c
1719
tp->u.enumer->en_tag = tag;
usr.bin/xlint/lint1/decl.c
1724
debug_sym(" ", tag, "\n");
usr.bin/xlint/lint1/emit1.c
144
outtt(sym_t *tag, sym_t *tdef)
usr.bin/xlint/lint1/emit1.c
149
if (tag->s_name != unnamed) {
usr.bin/xlint/lint1/emit1.c
151
outname(tag->s_name);
usr.bin/xlint/lint1/emit1.c
157
outint(tag->s_def_pos.p_line);
usr.bin/xlint/lint1/emit1.c
159
outint(get_filename_id(tag->s_def_pos.p_file));
usr.bin/xlint/lint1/emit1.c
161
outint(tag->s_def_pos.p_uniq);
usr.sbin/bootp/bootpd/bootpd.c
1242
byte tag, llen;
usr.sbin/bootp/bootpd/bootpd.c
1248
tag = *p++;
usr.sbin/bootp/bootpd/bootpd.c
1250
if (tag == TAG_PAD)
usr.sbin/bootp/bootpd/bootpd.c
1252
if (tag == TAG_END)
usr.sbin/bootp/bootpd/bootpd.c
1256
switch (tag) {
usr.sbin/bootp/bootptest/print-bootp.c
277
u_char tag;
usr.sbin/bootp/bootptest/print-bootp.c
292
tag = *bp++;
usr.sbin/bootp/bootptest/print-bootp.c
294
if (tag == TAG_PAD)
usr.sbin/bootp/bootptest/print-bootp.c
296
if (tag == TAG_END)
usr.sbin/bootp/bootptest/print-bootp.c
298
if (tag < KNOWN_OPTIONS) {
usr.sbin/bootp/bootptest/print-bootp.c
299
optstr = rfc1048_opts[tag];
usr.sbin/bootp/bootptest/print-bootp.c
302
printf(" T%d:", tag);
usr.sbin/bootp/common/dovend.c
281
insert_ip(byte tag, struct in_addr_list *iplist, byte **dest, int *bytesleft)
usr.sbin/bootp/common/dovend.c
292
**dest = tag;
usr.sbin/bootp/common/dumptab.c
299
u_char tag;
usr.sbin/bootp/common/dumptab.c
303
tag = *bp++;
usr.sbin/bootp/common/dumptab.c
304
if (tag == TAG_PAD)
usr.sbin/bootp/common/dumptab.c
306
if (tag == TAG_END)
usr.sbin/bootp/common/dumptab.c
313
fprintf(fp, "\\\n\t:T%d=", tag);
usr.sbin/btconfig/btconfig.c
1000
case 3: tag("Jacket"); break;
usr.sbin/btconfig/btconfig.c
1001
case 4: tag("Helmet"); break;
usr.sbin/btconfig/btconfig.c
1002
case 5: tag("Glasses"); break;
usr.sbin/btconfig/btconfig.c
1003
default: tag("Wearable"); break;
usr.sbin/btconfig/btconfig.c
1009
case 1: tag("Robot"); break;
usr.sbin/btconfig/btconfig.c
1010
case 2: tag("Vehicle"); break;
usr.sbin/btconfig/btconfig.c
1011
case 3: tag("Doll / Action Figure"); break;
usr.sbin/btconfig/btconfig.c
1012
case 4: tag("Controller"); break;
usr.sbin/btconfig/btconfig.c
1013
case 5: tag("Game"); break;
usr.sbin/btconfig/btconfig.c
1014
default: tag("Toy"); break;
usr.sbin/btconfig/btconfig.c
1020
case 1: tag("Blood Pressure Monitor"); break;
usr.sbin/btconfig/btconfig.c
1021
case 2: tag("Thermometer"); break;
usr.sbin/btconfig/btconfig.c
1022
case 3: tag("Weighing Scale"); break;
usr.sbin/btconfig/btconfig.c
1023
case 4: tag("Glucose Meter"); break;
usr.sbin/btconfig/btconfig.c
1024
case 5: tag("Pulse Oximeter"); break;
usr.sbin/btconfig/btconfig.c
1025
case 6: tag("Heart/Pulse Rate Monitor"); break;
usr.sbin/btconfig/btconfig.c
1026
case 7: tag("Health Data Display"); break;
usr.sbin/btconfig/btconfig.c
1027
default: tag("Health"); break;
usr.sbin/btconfig/btconfig.c
1035
if (class & __BIT(13)) tag("<Limited Discoverable>");
usr.sbin/btconfig/btconfig.c
1036
if (class & __BIT(16)) tag("<Positioning>");
usr.sbin/btconfig/btconfig.c
1037
if (class & __BIT(17)) tag("<Networking>");
usr.sbin/btconfig/btconfig.c
1038
if (class & __BIT(18)) tag("<Rendering>");
usr.sbin/btconfig/btconfig.c
1039
if (class & __BIT(19)) tag("<Capturing>");
usr.sbin/btconfig/btconfig.c
1040
if (class & __BIT(20)) tag("<Object Transfer>");
usr.sbin/btconfig/btconfig.c
1041
if (class & __BIT(21)) tag("<Audio>");
usr.sbin/btconfig/btconfig.c
1042
if (class & __BIT(22)) tag("<Telephony>");
usr.sbin/btconfig/btconfig.c
1043
if (class & __BIT(23)) tag("<Information>");
usr.sbin/btconfig/btconfig.c
254
tag(NULL);
usr.sbin/btconfig/btconfig.c
629
tag(btr.btr_name);
usr.sbin/btconfig/btconfig.c
64
static void tag(const char *);
usr.sbin/btconfig/btconfig.c
693
if (val & HCI_INQUIRY_SCAN_ENABLE) tag("iscan");
usr.sbin/btconfig/btconfig.c
694
else if (level > 0) tag("-iscan");
usr.sbin/btconfig/btconfig.c
696
if (val & HCI_PAGE_SCAN_ENABLE) tag("pscan");
usr.sbin/btconfig/btconfig.c
697
else if (level > 0) tag("-pscan");
usr.sbin/btconfig/btconfig.c
700
if (val) tag("auth");
usr.sbin/btconfig/btconfig.c
701
else if (level > 0) tag("-auth");
usr.sbin/btconfig/btconfig.c
704
if (val) tag("encrypt");
usr.sbin/btconfig/btconfig.c
705
else if (level > 0) tag("-encrypt");
usr.sbin/btconfig/btconfig.c
708
if (val & HCI_LINK_POLICY_ENABLE_ROLE_SWITCH) tag("switch");
usr.sbin/btconfig/btconfig.c
709
else if (level > 0) tag("-switch");
usr.sbin/btconfig/btconfig.c
710
if (val & HCI_LINK_POLICY_ENABLE_HOLD_MODE) tag("hold");
usr.sbin/btconfig/btconfig.c
711
else if (level > 0) tag("-hold");
usr.sbin/btconfig/btconfig.c
712
if (val & HCI_LINK_POLICY_ENABLE_SNIFF_MODE) tag("sniff");
usr.sbin/btconfig/btconfig.c
713
else if (level > 0) tag("-sniff");
usr.sbin/btconfig/btconfig.c
714
if (val & HCI_LINK_POLICY_ENABLE_PARK_MODE) tag("park");
usr.sbin/btconfig/btconfig.c
715
else if (level > 0) tag("-park");
usr.sbin/btconfig/btconfig.c
717
tag(NULL);
usr.sbin/btconfig/btconfig.c
724
if (ptype & HCI_PKT_DM1) tag("DM1");
usr.sbin/btconfig/btconfig.c
725
if (ptype & HCI_PKT_DH1) tag("DH1");
usr.sbin/btconfig/btconfig.c
726
if (ptype & HCI_PKT_DM3) tag("DM3");
usr.sbin/btconfig/btconfig.c
727
if (ptype & HCI_PKT_DH3) tag("DH3");
usr.sbin/btconfig/btconfig.c
728
if (ptype & HCI_PKT_DM5) tag("DM5");
usr.sbin/btconfig/btconfig.c
729
if (ptype & HCI_PKT_DH5) tag("DH5");
usr.sbin/btconfig/btconfig.c
730
if ((ptype & HCI_PKT_2MBPS_DH1) == 0) tag("2-DH1");
usr.sbin/btconfig/btconfig.c
731
if ((ptype & HCI_PKT_3MBPS_DH1) == 0) tag("3-DH1");
usr.sbin/btconfig/btconfig.c
732
if ((ptype & HCI_PKT_2MBPS_DH3) == 0) tag("2-DH3");
usr.sbin/btconfig/btconfig.c
733
if ((ptype & HCI_PKT_3MBPS_DH3) == 0) tag("3-DH3");
usr.sbin/btconfig/btconfig.c
734
if ((ptype & HCI_PKT_2MBPS_DH5) == 0) tag("2-DH5");
usr.sbin/btconfig/btconfig.c
735
if ((ptype & HCI_PKT_3MBPS_DH5) == 0) tag("3-DH5");
usr.sbin/btconfig/btconfig.c
736
tag(NULL);
usr.sbin/btconfig/btconfig.c
751
tag(NULL);
usr.sbin/btconfig/btconfig.c
786
if (*f & HCI_LMP_3SLOT) tag("<3 slot>");
usr.sbin/btconfig/btconfig.c
787
if (*f & HCI_LMP_5SLOT) tag("<5 slot>");
usr.sbin/btconfig/btconfig.c
788
if (*f & HCI_LMP_ENCRYPTION) tag("<encryption>");
usr.sbin/btconfig/btconfig.c
789
if (*f & HCI_LMP_SLOT_OFFSET) tag("<slot offset>");
usr.sbin/btconfig/btconfig.c
790
if (*f & HCI_LMP_TIMIACCURACY) tag("<timing accuracy>");
usr.sbin/btconfig/btconfig.c
791
if (*f & HCI_LMP_ROLE_SWITCH) tag("<role switch>");
usr.sbin/btconfig/btconfig.c
792
if (*f & HCI_LMP_HOLD_MODE) tag("<hold mode>");
usr.sbin/btconfig/btconfig.c
793
if (*f & HCI_LMP_SNIFF_MODE) tag("<sniff mode>");
usr.sbin/btconfig/btconfig.c
797
if (*f & HCI_LMP_PARK_MODE) tag("<park mode>");
usr.sbin/btconfig/btconfig.c
798
if (*f & HCI_LMP_RSSI) tag("<RSSI>");
usr.sbin/btconfig/btconfig.c
799
if (*f & HCI_LMP_CHANNEL_QUALITY) tag("<channel quality>");
usr.sbin/btconfig/btconfig.c
800
if (*f & HCI_LMP_SCO_LINK) tag("<SCO link>");
usr.sbin/btconfig/btconfig.c
801
if (*f & HCI_LMP_HV2_PKT) tag("<HV2>");
usr.sbin/btconfig/btconfig.c
802
if (*f & HCI_LMP_HV3_PKT) tag("<HV3>");
usr.sbin/btconfig/btconfig.c
803
if (*f & HCI_LMP_ULAW_LOG) tag("<u-Law log>");
usr.sbin/btconfig/btconfig.c
804
if (*f & HCI_LMP_ALAW_LOG) tag("<A-Law log>");
usr.sbin/btconfig/btconfig.c
808
if (*f & HCI_LMP_CVSD) tag("<CVSD data>");
usr.sbin/btconfig/btconfig.c
809
if (*f & HCI_LMP_PAGISCHEME) tag("<paging parameter>");
usr.sbin/btconfig/btconfig.c
810
if (*f & HCI_LMP_POWER_CONTROL) tag("<power control>");
usr.sbin/btconfig/btconfig.c
811
if (*f & HCI_LMP_TRANSPARENT_SCO) tag("<transparent SCO>");
usr.sbin/btconfig/btconfig.c
812
if (*f & HCI_LMP_FLOW_CONTROL_LAG0) tag("<flow control lag lsb>");
usr.sbin/btconfig/btconfig.c
813
if (*f & HCI_LMP_FLOW_CONTROL_LAG1) tag("<flow control lag mb>");
usr.sbin/btconfig/btconfig.c
814
if (*f & HCI_LMP_FLOW_CONTROL_LAG2) tag("<flow control lag msb>");
usr.sbin/btconfig/btconfig.c
815
if (*f & HCI_LMP_BC_ENCRYPTION) tag("<broadcast encryption>");
usr.sbin/btconfig/btconfig.c
819
if (*f & HCI_LMP_EDR_ACL_2MBPS) tag("<EDR ACL 2Mbps>");
usr.sbin/btconfig/btconfig.c
820
if (*f & HCI_LMP_EDR_ACL_3MBPS) tag("<EDR ACL 3Mbps>");
usr.sbin/btconfig/btconfig.c
821
if (*f & HCI_LMP_ENHANCED_ISCAN) tag("<enhanced inquiry scan>");
usr.sbin/btconfig/btconfig.c
822
if (*f & HCI_LMP_INTERLACED_ISCAN) tag("<interlaced inquiry scan>");
usr.sbin/btconfig/btconfig.c
823
if (*f & HCI_LMP_INTERLACED_PSCAN) tag("<interlaced page scan>");
usr.sbin/btconfig/btconfig.c
824
if (*f & HCI_LMP_RSSI_INQUIRY) tag("<RSSI with inquiry result>");
usr.sbin/btconfig/btconfig.c
825
if (*f & HCI_LMP_EV3_PKT) tag("<EV3 packets>");
usr.sbin/btconfig/btconfig.c
829
if (*f & HCI_LMP_EV4_PKT) tag("<EV4 packets>");
usr.sbin/btconfig/btconfig.c
830
if (*f & HCI_LMP_EV5_PKT) tag("<EV5 packets>");
usr.sbin/btconfig/btconfig.c
831
if (*f & HCI_LMP_AFH_CAPABLE_SLAVE) tag("<AFH capable slave>");
usr.sbin/btconfig/btconfig.c
832
if (*f & HCI_LMP_AFH_CLASS_SLAVE) tag("<AFH class slave>");
usr.sbin/btconfig/btconfig.c
833
if (*f & HCI_LMP_BR_EDR_UNSUPPORTED)tag("<BR/EDR not supported>");
usr.sbin/btconfig/btconfig.c
834
if (*f & HCI_LMP_LE_CONTROLLER) tag("<LE (controller)>");
usr.sbin/btconfig/btconfig.c
835
if (*f & HCI_LMP_3SLOT_EDR_ACL) tag("<3 slot EDR ACL>");
usr.sbin/btconfig/btconfig.c
839
if (*f & HCI_LMP_5SLOT_EDR_ACL) tag("<5 slot EDR ACL>");
usr.sbin/btconfig/btconfig.c
840
if (*f & HCI_LMP_SNIFF_SUBRATING) tag("<sniff subrating>");
usr.sbin/btconfig/btconfig.c
841
if (*f & HCI_LMP_PAUSE_ENCRYPTION) tag("<pause encryption>");
usr.sbin/btconfig/btconfig.c
842
if (*f & HCI_LMP_AFH_CAPABLE_MASTER)tag("<AFH capable master>");
usr.sbin/btconfig/btconfig.c
843
if (*f & HCI_LMP_AFH_CLASS_MASTER) tag("<AFH class master>");
usr.sbin/btconfig/btconfig.c
844
if (*f & HCI_LMP_EDR_eSCO_2MBPS) tag("<EDR eSCO 2Mbps>");
usr.sbin/btconfig/btconfig.c
845
if (*f & HCI_LMP_EDR_eSCO_3MBPS) tag("<EDR eSCO 3Mbps>");
usr.sbin/btconfig/btconfig.c
846
if (*f & HCI_LMP_3SLOT_EDR_eSCO) tag("<3 slot EDR eSCO>");
usr.sbin/btconfig/btconfig.c
850
if (*f & HCI_LMP_EXTENDED_INQUIRY) tag("<extended inquiry>");
usr.sbin/btconfig/btconfig.c
851
if (*f & HCI_LMP_LE_BR_EDR_CONTROLLER)tag("<simultaneous LE & BR/EDR (controller)>");
usr.sbin/btconfig/btconfig.c
852
if (*f & HCI_LMP_SIMPLE_PAIRING) tag("<secure simple pairing>");
usr.sbin/btconfig/btconfig.c
853
if (*f & HCI_LMP_ENCAPSULATED_PDU) tag("<encapsulated PDU>");
usr.sbin/btconfig/btconfig.c
854
if (*f & HCI_LMP_ERRDATA_REPORTING) tag("<errdata reporting>");
usr.sbin/btconfig/btconfig.c
855
if (*f & HCI_LMP_NOFLUSH_PB_FLAG) tag("<no flush PB flag>");
usr.sbin/btconfig/btconfig.c
859
if (*f & HCI_LMP_LINK_SUPERVISION_TO)tag("<link supervision timeout changed>");
usr.sbin/btconfig/btconfig.c
860
if (*f & HCI_LMP_INQ_RSP_TX_POWER) tag("<inquiry rsp TX power level>");
usr.sbin/btconfig/btconfig.c
861
if (*f & HCI_LMP_ENHANCED_POWER_CONTROL)tag("<enhanced power control>");
usr.sbin/btconfig/btconfig.c
862
if (*f & HCI_LMP_EXTENDED_FEATURES) tag("<extended features>");
usr.sbin/btconfig/btconfig.c
870
if (*f & HCI_LMP_SSP) tag("<secure simple pairing (host)>");
usr.sbin/btconfig/btconfig.c
871
if (*f & HCI_LMP_LE_HOST) tag("<LE (host)>");
usr.sbin/btconfig/btconfig.c
872
if (*f & HCI_LMP_LE_BR_EDR_HOST) tag("<simultaneous LE & BR/EDR (host)>");
usr.sbin/btconfig/btconfig.c
873
if (*f & HCI_LMP_SECURE_CONN_HOST) tag("<secure connections (host)>");
usr.sbin/btconfig/btconfig.c
880
if (*f & HCI_LMP_CONNLESS_MASTER) tag("<connectionless master>");
usr.sbin/btconfig/btconfig.c
881
if (*f & HCI_LMP_CONNLESS_SLAVE) tag("<connectionless slave>");
usr.sbin/btconfig/btconfig.c
882
if (*f & HCI_LMP_SYNC_TRAIN) tag("<synchronization train>");
usr.sbin/btconfig/btconfig.c
883
if (*f & HCI_LMP_SYNC_SCAN) tag("<synchronization scan>");
usr.sbin/btconfig/btconfig.c
884
if (*f & HCI_LMP_INQ_RSP_NOTIFY) tag("<inquiry response notification>");
usr.sbin/btconfig/btconfig.c
885
if (*f & HCI_LMP_INTERLACE_SCAN) tag("<generalized interlace scan>");
usr.sbin/btconfig/btconfig.c
886
if (*f & HCI_LMP_COARSE_CLOCK) tag("<coarse clock adjustment>");
usr.sbin/btconfig/btconfig.c
889
if (*f & HCI_LMP_SECURE_CONN_CONTROLLER)tag("<secure connections (controller)>");
usr.sbin/btconfig/btconfig.c
890
if (*f & HCI_LMP_PING) tag("<ping>");
usr.sbin/btconfig/btconfig.c
891
if (*f & HCI_LMP_TRAIN_NUDGING) tag("<train nudging>");
usr.sbin/btconfig/btconfig.c
906
tag(NULL);
usr.sbin/btconfig/btconfig.c
916
case 1: tag("Desktop workstation"); break;
usr.sbin/btconfig/btconfig.c
917
case 2: tag("Server-class computer"); break;
usr.sbin/btconfig/btconfig.c
918
case 3: tag("Laptop"); break;
usr.sbin/btconfig/btconfig.c
919
case 4: tag("Handheld PC/PDA"); break;
usr.sbin/btconfig/btconfig.c
920
case 5: tag("Palm Sized PC/PDA"); break;
usr.sbin/btconfig/btconfig.c
921
case 6: tag("Wearable computer"); break;
usr.sbin/btconfig/btconfig.c
922
default: tag("Computer"); break;
usr.sbin/btconfig/btconfig.c
928
case 1: tag("Cellular Phone"); break;
usr.sbin/btconfig/btconfig.c
929
case 2: tag("Cordless Phone"); break;
usr.sbin/btconfig/btconfig.c
930
case 3: tag("Smart Phone"); break;
usr.sbin/btconfig/btconfig.c
931
case 4: tag("Wired Modem/Phone Gateway"); break;
usr.sbin/btconfig/btconfig.c
932
case 5: tag("Common ISDN"); break;
usr.sbin/btconfig/btconfig.c
933
default:tag("Phone"); break;
usr.sbin/btconfig/btconfig.c
938
tag("LAN");
usr.sbin/btconfig/btconfig.c
940
case 0: tag("[Fully available]"); break;
usr.sbin/btconfig/btconfig.c
941
case 1: tag("[1-17% utilised]"); break;
usr.sbin/btconfig/btconfig.c
942
case 2: tag("[17-33% utilised]"); break;
usr.sbin/btconfig/btconfig.c
943
case 3: tag("[33-50% utilised]"); break;
usr.sbin/btconfig/btconfig.c
944
case 4: tag("[50-67% utilised]"); break;
usr.sbin/btconfig/btconfig.c
945
case 5: tag("[67-83% utilised]"); break;
usr.sbin/btconfig/btconfig.c
946
case 6: tag("[83-99% utilised]"); break;
usr.sbin/btconfig/btconfig.c
947
case 7: tag("[No service available]"); break;
usr.sbin/btconfig/btconfig.c
953
case 1: tag("Wearable Headset"); break;
usr.sbin/btconfig/btconfig.c
954
case 2: tag("Hands-free Audio"); break;
usr.sbin/btconfig/btconfig.c
955
case 4: tag("Microphone"); break;
usr.sbin/btconfig/btconfig.c
956
case 5: tag("Loudspeaker"); break;
usr.sbin/btconfig/btconfig.c
957
case 6: tag("Headphones"); break;
usr.sbin/btconfig/btconfig.c
958
case 7: tag("Portable Audio"); break;
usr.sbin/btconfig/btconfig.c
959
case 8: tag("Car Audio"); break;
usr.sbin/btconfig/btconfig.c
960
case 9: tag("Set-top Box"); break;
usr.sbin/btconfig/btconfig.c
961
case 10: tag("HiFi Audio"); break;
usr.sbin/btconfig/btconfig.c
962
case 11: tag("VCR"); break;
usr.sbin/btconfig/btconfig.c
963
case 12: tag("Video Camera"); break;
usr.sbin/btconfig/btconfig.c
964
case 13: tag("Camcorder"); break;
usr.sbin/btconfig/btconfig.c
965
case 14: tag("Video Monitor"); break;
usr.sbin/btconfig/btconfig.c
966
case 15: tag("Video Display and Loudspeaker"); break;
usr.sbin/btconfig/btconfig.c
967
case 16: tag("Video Conferencing"); break;
usr.sbin/btconfig/btconfig.c
968
case 18: tag("A/V [Gaming/Toy]"); break;
usr.sbin/btconfig/btconfig.c
969
default: tag("Audio/Visual"); break;
usr.sbin/btconfig/btconfig.c
975
case 1: tag("Joystick"); break;
usr.sbin/btconfig/btconfig.c
976
case 2: tag("Gamepad"); break;
usr.sbin/btconfig/btconfig.c
977
case 3: tag("Remote Control"); break;
usr.sbin/btconfig/btconfig.c
978
case 4: tag("Sensing Device"); break;
usr.sbin/btconfig/btconfig.c
979
case 5: tag("Digitiser Tablet"); break;
usr.sbin/btconfig/btconfig.c
980
case 6: tag("Card Reader"); break;
usr.sbin/btconfig/btconfig.c
981
default: tag("Peripheral"); break;
usr.sbin/btconfig/btconfig.c
984
if (class & __BIT(6)) tag("Keyboard");
usr.sbin/btconfig/btconfig.c
985
if (class & __BIT(7)) tag("Mouse");
usr.sbin/btconfig/btconfig.c
989
if (class & __BIT(4)) tag("Display");
usr.sbin/btconfig/btconfig.c
990
if (class & __BIT(5)) tag("Camera");
usr.sbin/btconfig/btconfig.c
991
if (class & __BIT(6)) tag("Scanner");
usr.sbin/btconfig/btconfig.c
992
if (class & __BIT(7)) tag("Printer");
usr.sbin/btconfig/btconfig.c
993
if ((class & __BITS(4, 7)) == 0) tag("Imaging");
usr.sbin/btconfig/btconfig.c
998
case 1: tag("Wrist Watch"); break;
usr.sbin/btconfig/btconfig.c
999
case 2: tag("Pager"); break;
usr.sbin/fwctl/fwcontrol.c
677
isoreq.tag = (ich >> 6) & 3;
usr.sbin/fwctl/fwdv.c
134
isoreq.tag = (ich >> 6) & 3;
usr.sbin/fwctl/fwdv.c
304
isoreq.tag = (ich >> 6) & 3;
usr.sbin/fwctl/fwmpegts.c
173
isoreq.tag = (ich >> 6) & 3;
usr.sbin/makefs/udf.c
334
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
usr.sbin/makefs/udf.c
337
} else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
usr.sbin/makefs/udf.c
352
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
usr.sbin/makefs/udf.c
355
} else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
usr.sbin/makefs/udf.c
396
assert(udf_rw16(fid->tag.id) == TAGID_FID);
usr.sbin/makefs/udf.c
401
fid->tag.tag_loc = udf_rw32(location);
usr.sbin/makefs/udf.c
422
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
usr.sbin/makefs/udf.c
430
} else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
usr.sbin/makefs/udf.c
441
crclen = udf_rw16(dscr->tag.desc_crc_len);
usr.sbin/makefs/udf.c
477
dscr->tag.desc_crc_len = udf_rw16(crclen);
usr.sbin/makefs/udf.c
510
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
usr.sbin/makefs/udf.c
519
} else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
usr.sbin/makefs/udf.c
531
crclen = udf_rw16(dscr->tag.desc_crc_len);
usr.sbin/makefs/udf.c
617
dscr->tag.desc_crc_len = udf_rw16(crclen);
usr.sbin/makefs/udf.c
618
if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
usr.sbin/makefs/udf.c
622
} else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
usr.sbin/puffs/mount_9p/nineproto.c
236
p9ptag_t tag;
usr.sbin/puffs/mount_9p/nineproto.c
241
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/nineproto.c
243
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/nineproto.c
264
p9ptag_t tag;
usr.sbin/puffs/mount_9p/nineproto.c
268
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/nineproto.c
270
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/nineproto.c
299
p9ptag_t tag;
usr.sbin/puffs/mount_9p/nineproto.c
307
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/nineproto.c
309
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/ninepuffs.h
67
p9ptag_t tag; \
usr.sbin/puffs/mount_9p/node.c
101
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
103
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
124
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
126
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
182
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
184
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
242
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
244
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
340
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
342
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
388
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
390
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
440
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
442
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
464
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
466
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
523
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
525
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
60
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
610
tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/node.c
612
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/node.c
62
p9pbuf_put_2(pb, tag);
usr.sbin/puffs/mount_9p/subr.c
131
p9ptag_t tag = NEXTTAG(p9p);
usr.sbin/puffs/mount_9p/subr.c
133
p9pbuf_put_2(pb, tag);
usr.sbin/services_mkdb/services_mkdb.c
282
getstring(const char *fname, size_t line, char **cp, const char *tag)
usr.sbin/services_mkdb/services_mkdb.c
290
warnx("%s, %zu: no %s found", fname, line, tag);
usr.sbin/sunlabel/sunlabel.c
151
const char *tag;
usr.sbin/sunlabel/sunlabel.c
648
scannum(const char **cpp, uint32_t *np, const char *tag)
usr.sbin/sunlabel/sunlabel.c
666
printf("Missing/invalid %s: %s\n", tag, cp);
usr.sbin/sunlabel/sunlabel.c
885
for (i = 0; fields[i].tag; i++)
usr.sbin/sunlabel/sunlabel.c
886
fields[i].taglen = strlen(fields[i].tag);
usr.sbin/sunlabel/sunlabel.c
893
for (i = 0; fields[i].tag; i++) {
usr.sbin/sunlabel/sunlabel.c
894
if (((int)n == fields[i].taglen) && !memcmp(str, fields[i].tag, n)) {
usr.sbin/sunlabel/sunlabel.c
901
if (!fields[i].tag)
usr.sbin/sunlabel/sunlabel.c
926
printf("%s: %.128s\n", f->tag, (char *)f->loc);
usr.sbin/sunlabel/sunlabel.c
941
printf("%s: %-*u", f->tag, 14 - (int)strlen(f->tag),
usr.sbin/sunlabel/sunlabel.c
957
for (i = 0; fields[i].tag; i++)
usr.sbin/sysinst/gpt.c
1360
#define FSTYPE_TO_STR_CASE(tag, number, name, fsck, mount) \
usr.sbin/sysinst/gpt.c
1361
case __CONCAT(FS_,tag): str = __CONCAT(DKW_PTYPE_,tag); break;
usr.sbin/sysinst/gpt.c
204
gpt_add_info(struct gpt_part_entry *part, const char *tag, char *val,
usr.sbin/sysinst/gpt.c
209
if (details && strcmp(tag, "Start:") == 0) {
usr.sbin/sysinst/gpt.c
211
} else if (details && strcmp(tag, "Size:") == 0) {
usr.sbin/sysinst/gpt.c
213
} else if (details && strcmp(tag, "Type:") == 0) {
usr.sbin/sysinst/gpt.c
222
} else if (strcmp(tag, "TypeID:") == 0) {
usr.sbin/sysinst/gpt.c
224
} else if (strcmp(tag, "GUID:") == 0) {
usr.sbin/sysinst/gpt.c
226
} else if (strcmp(tag, "Label:") == 0) {
usr.sbin/sysinst/gpt.c
228
} else if (strcmp(tag, "Attributes:") == 0) {
usr.sbin/sysinst/wskbd.c
60
#define KB_sysinst(tag, tagf, value, cc, ccf, country) \
usr.sbin/sysinst/wskbd.c
61
{tag | tagf, cc ccf, country},