bin/mined/mined1.c
1474
int index; /* Index in key table */
bin/mined/mined1.c
1515
index = getchar();
bin/mined/mined1.c
1521
(*key_map[index])(index);
bin/mined/mined1.c
1654
int index;
bin/mined/mined1.c
1656
index = getchar();
bin/mined/mined1.c
1657
while (index >= '0' && index <= '9' && quit == FALSE) {
bin/mined/mined1.c
1659
count += index - '0';
bin/mined/mined1.c
1660
index = getchar();
bin/mined/mined1.c
1664
func = escfunc(index);
bin/mined/mined1.c
1666
func = key_map[index];
bin/mined/mined1.c
1679
(*func)(index);
bin/mined/mined1.c
1848
int index;
bin/mined/mined1.c
1853
index = getchar();
bin/mined/mined1.c
1854
if (quit == FALSE && (index < '0' || index > '9')) {
bin/mined/mined1.c
1860
while (index >= '0' && index <= '9' && quit == FALSE) {
bin/mined/mined1.c
1862
count += index - '0';
bin/mined/mined1.c
1863
index = getchar();
bin/mined/mined1.c
1872
return index;
bin/sh/eval.c
1000
cmdentry.u.index, flags & EV_BACKCMD ? pip : NULL);
bin/sh/eval.c
1075
mode = (cmdentry.u.index == EXECCMD)? 0 : REDIR_PUSH;
bin/sh/eval.c
1107
exitstatus = (*builtinfunc[cmdentry.u.index])(argc, argv);
bin/sh/eval.c
1134
if (cmdentry.u.index != EXECCMD)
bin/sh/eval.c
1151
shellexec(argv, envp, path, cmdentry.u.index);
bin/sh/eval.c
882
cmdentry.u.index = BLTINCMD;
bin/sh/eval.c
919
cmdentry.u.index = find_builtin(*argv, &cmdentry.special);
bin/sh/eval.c
920
if (cmdentry.u.index < 0) {
bin/sh/eval.c
921
cmdentry.u.index = BLTINCMD;
bin/sh/eval.c
931
if (cmdentry.u.index == BLTINCMD) {
bin/sh/eval.c
937
} else if (cmdentry.u.index == COMMANDCMD) {
bin/sh/eval.c
986
!safe_builtin(cmdentry.u.index, argc, argv)))) {
bin/sh/exec.c
317
idx = cmdp->param.index;
bin/sh/exec.c
368
entry->u.index = 0;
bin/sh/exec.c
390
cmdp->param.index = i;
bin/sh/exec.c
446
cmdp->param.index = idx;
bin/sh/exec.c
459
entry->u.index = 0;
bin/sh/exec.c
758
int j = entry.u.index;
bin/sh/exec.h
53
int index;
crypto/libressl/apps/openssl/certhash.c
109
hi->index, hi->is_crl);
crypto/libressl/apps/openssl/certhash.c
207
(hi->is_crl ? "r" : ""), hi->index) == -1)
crypto/libressl/apps/openssl/certhash.c
285
hi->index = (unsigned int)val;
crypto/libressl/apps/openssl/certhash.c
388
link->index == hi->index &&
crypto/libressl/apps/openssl/certhash.c
404
int index = 0;
crypto/libressl/apps/openssl/certhash.c
420
index++;
crypto/libressl/apps/openssl/certhash.c
422
index = 0;
crypto/libressl/apps/openssl/certhash.c
425
entry->index = index;
crypto/libressl/apps/openssl/certhash.c
61
unsigned int index;
crypto/libressl/crypto/bio/bio_lib.c
123
int index;
crypto/libressl/crypto/bio/bio_lib.c
126
index = CRYPTO_add(&bio_type_index, 1, CRYPTO_LOCK_BIO);
crypto/libressl/crypto/bio/bio_lib.c
127
if (index > 255)
crypto/libressl/crypto/bio/bio_lib.c
130
return index;
crypto/libressl/crypto/curve25519/curve25519.c
1244
signed char index = 0;
crypto/libressl/crypto/curve25519/curve25519.c
1248
index |= (bit << j);
crypto/libressl/crypto/curve25519/curve25519.c
1255
cmov(&e, &multiples[j-1], equal(index, j));
crypto/libressl/crypto/curve25519/curve25519.c
3611
uint8_t index = scalar[31 - i/8];
crypto/libressl/crypto/curve25519/curve25519.c
3612
index >>= 4 - (i & 4);
crypto/libressl/crypto/curve25519/curve25519.c
3613
index &= 0xf;
crypto/libressl/crypto/curve25519/curve25519.c
3619
cmov_cached(&selected, &Ai[j], equal(j, index));
crypto/libressl/crypto/txt_db/txt_db.c
100
ret->index[i] = NULL;
crypto/libressl/crypto/txt_db/txt_db.c
179
free(ret->index);
crypto/libressl/crypto/txt_db/txt_db.c
198
lh = db->index[idx];
crypto/libressl/crypto/txt_db/txt_db.c
238
if (db->index[field] != NULL)
crypto/libressl/crypto/txt_db/txt_db.c
239
lh_OPENSSL_STRING_free(db->index[field]);
crypto/libressl/crypto/txt_db/txt_db.c
240
db->index[field] = idx;
crypto/libressl/crypto/txt_db/txt_db.c
302
if (db->index[i] != NULL) {
crypto/libressl/crypto/txt_db/txt_db.c
305
r = lh_OPENSSL_STRING_retrieve(db->index[i], row);
crypto/libressl/crypto/txt_db/txt_db.c
321
if (db->index[i] != NULL) {
crypto/libressl/crypto/txt_db/txt_db.c
324
(void)lh_OPENSSL_STRING_insert(db->index[i], row);
crypto/libressl/crypto/txt_db/txt_db.c
342
if (db->index != NULL) {
crypto/libressl/crypto/txt_db/txt_db.c
344
if (db->index[i] != NULL)
crypto/libressl/crypto/txt_db/txt_db.c
345
lh_OPENSSL_STRING_free(db->index[i]);
crypto/libressl/crypto/txt_db/txt_db.c
346
free(db->index);
crypto/libressl/crypto/txt_db/txt_db.c
91
ret->index = NULL;
crypto/libressl/crypto/txt_db/txt_db.c
95
if ((ret->index = reallocarray(NULL, num, sizeof(*ret->index))) == NULL)
crypto/libressl/crypto/x509/x509_addr.c
487
int index;
crypto/libressl/crypto/x509/x509_addr.c
491
if ((index = sk_IPAddressFamily_find(parent, child_af)) < 0)
crypto/libressl/crypto/x509/x509_addr.c
494
return sk_IPAddressFamily_value(parent, index);
crypto/libressl/include/openssl/txt_db.h
87
LHASH_OF(OPENSSL_STRING) **index;
crypto/libressl/ssl/ssl_locl.h
1534
int tls1_get_shared_group_by_index(const SSL *ssl, size_t index, int *out_nid);
crypto/libressl/ssl/ssl_srvr.c
1052
size_t index = SSL3_RANDOM_SIZE - sizeof(tls13_downgrade_12);
crypto/libressl/ssl/ssl_srvr.c
1053
uint8_t *magic = &s->s3->server_random[index];
crypto/libressl/ssl/t1_lib.c
525
tls1_get_shared_group_by_index(const SSL *ssl, size_t index, int *out_nid)
crypto/libressl/ssl/t1_lib.c
527
return tls1_group_by_index(ssl, index, out_nid,
crypto/openssh/sshkey-xmss.c
1027
(r = sshbuf_get_u32(encoded, &index)) != 0 ||
crypto/openssh/sshkey-xmss.c
1047
POKE_U32(iv, index);
crypto/openssh/sshkey-xmss.c
989
u_int blocksize, encrypted_len, index;
crypto/openssh/xmss_fast.c
178
static void treehash_setup(unsigned char *node, int height, int index, bds_state *state, const unsigned char *sk_seed, const xmss_params *params, const unsigned char *pub_seed, const uint32_t addr[8])
crypto/openssh/xmss_fast.c
180
unsigned int idx = index;
games/arithmetic/arithmetic.c
112
if (!index(keylist, *p)) {
games/arithmetic/arithmetic.c
364
if (op == 0 || (p = index(keylist, op)) == NULL) {
games/atc/log.c
260
cp = index(score[i].host, '.');
games/atc/update.c
223
comm_start = bp = index(buf, '\0');
games/atc/update.c
231
bp = index(buf, '\0');
games/atc/update.c
235
bp = index(buf, '\0');
games/battlestar/extern.h
50
#define testbit(array, index) (array[index/BITS] & (1U << (index % BITS)))
games/battlestar/extern.h
51
#define setbit(array, index) (array[index/BITS] |= (1U << (index % BITS)))
games/battlestar/extern.h
52
#define clearbit(array, index) (array[index/BITS] &= ~(1U << (index % BITS)))
games/pig/pig.c
89
if (index("aeiouAEIOU", buf[0]) != NULL) {
games/pig/pig.c
99
start < olen && !index("aeiouyAEIOUY", buf[start]);) {
games/sail/assorted.c
252
send_ungrap(from, to->file->index, all);
games/sail/assorted.c
253
send_ungrap(to, from->file->index, all);
games/sail/assorted.c
256
send_unfoul(from, to->file->index, all);
games/sail/assorted.c
257
send_unfoul(to, from->file->index, all);
games/sail/dr_1.c
211
send_captured(from, to->file->index);
games/sail/dr_3.c
279
send_dbp(from, n, turn, to->file->index, sections);
games/sail/dr_3.c
281
send_obp(from, n, turn, to->file->index, sections);
games/sail/dr_4.c
67
send_grap(from, to->file->index);
games/sail/dr_4.c
68
send_grap(to, from->file->index);
games/sail/dr_main.c
86
sp->file->index = sp - SHIP(0);
games/sail/extern.h
141
int index;
games/sail/extern.h
64
#define grappled2(a, b) ((a)->file->grap[(b)->file->index].sn_count)
games/sail/extern.h
65
#define fouled2(a, b) ((a)->file->foul[(b)->file->index].sn_count)
games/sail/extern.h
68
#define Xgrappled2(a, b) ((a)->file->grap[(b)->file->index].sn_turn < turn-1 \
games/sail/extern.h
70
#define Xfouled2(a, b) ((a)->file->foul[(b)->file->index].sn_turn < turn-1 \
games/sail/misc.c
232
log[NLOG-1].l_shipnum = s->file->index;
games/sail/pl_3.c
140
index = guns;
games/sail/pl_3.c
142
index += car;
games/sail/pl_3.c
143
index = (index - 1)/3;
games/sail/pl_3.c
144
index = index > 8 ? 8 : index;
games/sail/pl_3.c
146
hit = HDT[index][target-1];
games/sail/pl_3.c
148
hit = HDTrake[index][target-1];
games/sail/pl_3.c
151
hit += QUAL[index][mc->qual-1];
games/sail/pl_3.c
154
if (index <= 5)
games/sail/pl_3.c
160
if (index <= 3)
games/sail/pl_3.c
166
if (index <= 1)
games/sail/pl_3.c
171
hit += AMMO[index][load - 1];
games/sail/pl_3.c
233
send_grap(ms, sp->file->index);
games/sail/pl_3.c
52
int index, rakehim, sternrake;
games/sail/pl_5.c
232
send_dbp(ms, j, turn, to->file->index, men);
games/sail/pl_5.c
234
send_obp(ms, j, turn, to->file->index, men);
games/sail/pl_7.c
914
sp->file->index,
games/sail/pl_main.c
75
sp->file->index = sp - SHIP(0);
games/sail/sync.c
289
int shipindex = (ship == NULL) ? 0 : ship->file->index;
games/sail/sync.c
305
int shipindex = (ship == NULL) ? 0 : ship->file->index;
include/strings.h
63
char *index(const char *, int) __pure; /* LEGACY */
lib/libalias/alias_db.c
1076
aux_tcp->state.index = 0;
lib/libalias/alias_db.c
2177
i = link->data.tcp->state.index;
lib/libalias/alias_db.c
2182
link->data.tcp->state.index = 0;
lib/libalias/alias_db.c
2184
link->data.tcp->state.index = i;
lib/libalias/alias_db.c
262
int index; /* Index to ACK data array */
lib/libc/db/btree/bt_delete.c
103
status = __bt_dleaf(t, NULL, h, c->pg.index);
lib/libc/db/btree/bt_delete.c
179
if (parent->index != NEXTINDEX(h) - 1) {
lib/libc/db/btree/bt_delete.c
180
idx = parent->index + 1;
lib/libc/db/btree/bt_delete.c
234
if (parent->index != 0) {
lib/libc/db/btree/bt_delete.c
235
idx = parent->index - 1;
lib/libc/db/btree/bt_delete.c
304
if (__bt_dleaf(t, key, h, e->index)) {
lib/libc/db/btree/bt_delete.c
317
} while (e->index < NEXTINDEX(h) && __bt_cmp(t, key, e) == 0);
lib/libc/db/btree/bt_delete.c
320
if (e->index == NEXTINDEX(h))
lib/libc/db/btree/bt_delete.c
324
while (e->index-- > 0) {
lib/libc/db/btree/bt_delete.c
327
if (__bt_dleaf(t, key, h, e->index) == RET_ERROR) {
lib/libc/db/btree/bt_delete.c
331
if (e->index == 0)
lib/libc/db/btree/bt_delete.c
391
idx = parent->index;
lib/libc/db/btree/bt_delete.c
470
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index == idx &&
lib/libc/db/btree/bt_delete.c
500
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index > idx)
lib/libc/db/btree/bt_delete.c
501
--t->bt_cursor.pg.index;
lib/libc/db/btree/bt_delete.c
543
e.index = idx;
lib/libc/db/btree/bt_delete.c
553
e.index = idx - 1;
lib/libc/db/btree/bt_delete.c
562
e.index = idx + 1;
lib/libc/db/btree/bt_delete.c
573
e.index = NEXTINDEX(pg) - 1;
lib/libc/db/btree/bt_delete.c
585
e.index = 0;
lib/libc/db/btree/bt_delete.c
590
c->pg.index = e.index;
lib/libc/db/btree/bt_delete.c
597
e.index = idx;
lib/libc/db/btree/bt_put.c
149
idx = t->bt_cursor.pg.index;
lib/libc/db/btree/bt_put.c
161
idx = e->index;
lib/libc/db/btree/bt_put.c
216
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= idx)
lib/libc/db/btree/bt_put.c
217
++t->bt_cursor.pg.index;
lib/libc/db/btree/bt_put.c
223
t->bt_last.index = idx;
lib/libc/db/btree/bt_put.c
229
t->bt_last.index = 0;
lib/libc/db/btree/bt_put.c
239
__bt_setcur(t, e->page->pgno, e->index);
lib/libc/db/btree/bt_put.c
271
t->bt_cur.index = t->bt_last.index;
lib/libc/db/btree/bt_put.c
284
if (t->bt_cur.index != NEXTINDEX(h) - 1)
lib/libc/db/btree/bt_put.c
288
t->bt_last.index = cmp ? ++t->bt_cur.index : t->bt_cur.index;
lib/libc/db/btree/bt_put.c
292
if (t->bt_cur.index != 0)
lib/libc/db/btree/bt_put.c
296
t->bt_last.index = 0;
lib/libc/db/btree/bt_search.c
110
t->bt_cur.index = base;
lib/libc/db/btree/bt_search.c
153
e.index = 0;
lib/libc/db/btree/bt_search.c
188
e.index = NEXTINDEX(e.page) - 1;
lib/libc/db/btree/bt_search.c
76
t->bt_cur.index = idx = base + (lim >> 1);
lib/libc/db/btree/bt_seq.c
110
__bt_setcur(t, e.page->pgno, e.index);
lib/libc/db/btree/bt_seq.c
185
ep->index = 0;
lib/libc/db/btree/bt_seq.c
207
ep->index = NEXTINDEX(h) - 1;
lib/libc/db/btree/bt_seq.c
270
idx = c->pg.index;
lib/libc/db/btree/bt_seq.c
290
ep->index = c->pg.index;
lib/libc/db/btree/bt_seq.c
293
idx = c->pg.index;
lib/libc/db/btree/bt_seq.c
308
ep->index = idx;
lib/libc/db/btree/bt_seq.c
361
save.index = ep->index;
lib/libc/db/btree/bt_seq.c
368
if (ep->index == 0) {
lib/libc/db/btree/bt_seq.c
381
ep->index = NEXTINDEX(h);
lib/libc/db/btree/bt_seq.c
383
--ep->index;
lib/libc/db/btree/bt_seq.c
399
if (ep->index == NEXTINDEX(ep->page)) {
lib/libc/db/btree/bt_seq.c
407
ep->index = 0;
lib/libc/db/btree/bt_seq.c
436
t->bt_cursor.pg.index = idx;
lib/libc/db/btree/bt_split.c
154
skip = parent->index + 1;
lib/libc/db/btree/bt_split.c
683
if (c->pg.index >= skip)
lib/libc/db/btree/bt_split.c
684
++c->pg.index;
lib/libc/db/btree/bt_split.c
685
if (c->pg.index < nxt) /* Left page. */
lib/libc/db/btree/bt_split.c
689
c->pg.index -= nxt;
lib/libc/db/btree/bt_utils.c
157
if (e->index == 0 && h->prevpg == P_INVALID && !(h->flags & P_BLEAF))
lib/libc/db/btree/bt_utils.c
162
bl = GETBLEAF(h, e->index);
lib/libc/db/btree/bt_utils.c
170
bi = GETBINTERNAL(h, e->index);
lib/libc/db/btree/bt_utils.c
67
bl = GETBLEAF(e->page, e->index);
lib/libc/db/btree/btree.h
242
indx_t index; /* the index on the page */
lib/libc/db/btree/btree.h
247
indx_t index; /* the index on the page */
lib/libc/db/btree/btree.h
315
t->bt_sp->index = i; \
lib/libc/db/recno/rec_delete.c
124
status = __rec_dleaf(t, h, e->index);
lib/libc/db/recno/rec_put.c
222
idx = e->index;
lib/libc/db/recno/rec_search.c
111
--GETRINTERNAL(h, parent->index)->nrecs;
lib/libc/db/recno/rec_search.c
113
++GETRINTERNAL(h, parent->index)->nrecs;
lib/libc/db/recno/rec_search.c
76
t->bt_cur.index = recno - total;
lib/libc/db/recno/rec_utils.c
86
rl = GETRLEAF(e->page, e->index);
lib/libc/db/test/dbtest.c
499
char *p, *index();
lib/libc/db/test/dbtest.c
504
if ((p = index(s, '\n')) != NULL)
lib/libc/db/test/dbtest.c
557
char *eq, *index();
lib/libc/db/test/dbtest.c
559
if ((eq = index(s, '=')) == NULL)
lib/libc/db/test/dbtest.c
651
char *np, *index();
lib/libc/db/test/dbtest.c
654
if ((np = index(name, '\n')) != NULL)
lib/libc/gen/getttyent.c
171
if ( (p = index(p, '\n')) )
lib/libc/gen/getttyent.c
219
return ((p = index(p, '=')) ? ++p : NULL);
lib/libc/gen/getttyent.c
97
while (!index(p, '\n') && !feof(tf)) {
lib/libc/gen/telldir.c
102
lp->loc_next = dd_hash[LOCHASH(index)];
lib/libc/gen/telldir.c
103
dd_hash[LOCHASH(index)] = lp;
lib/libc/gen/telldir.c
110
return (index);
lib/libc/gen/telldir.c
72
long index;
lib/libc/gen/telldir.c
87
index = lp->loc_index;
lib/libc/gen/telldir.c
93
index = -1;
lib/libc/gen/telldir.c
96
index = dd_loccnt++;
lib/libc/gen/telldir.c
97
lp->loc_index = index;
lib/libc/isc/ev_timers.c
251
if (heap_element(ctx->timers, del->index) != del)
lib/libc/isc/ev_timers.c
254
if (heap_delete(ctx->timers, del->index) < 0)
lib/libc/isc/ev_timers.c
278
if (heap_element(ctx->timers, timer->index) != timer)
lib/libc/isc/ev_timers.c
304
if (heap_element(ctx->timers, timer->index) != timer)
lib/libc/isc/ev_timers.c
333
result = heap_increased(ctx->timers, timer->index);
lib/libc/isc/ev_timers.c
339
result = heap_decreased(ctx->timers, timer->index);
lib/libc/isc/ev_timers.c
449
set_index(void *what, int index) {
lib/libc/isc/ev_timers.c
453
timer->index = index;
lib/libc/isc/eventlib_p.h
150
int index;
lib/libc/net/gethostbynis.c
93
if ((cp = index(result, '\n')))
lib/libc/net/getnetbynis.c
82
if ((cp = index(result, '\n')))
lib/libc/rpc/clnt_bcast.c
103
int index;
lib/libc/rpc/clnt_bcast.c
149
bip->index = if_nametoindex(ifap->ifa_name);
lib/libc/rpc/clnt_bcast.c
172
sin6->sin6_scope_id = bip->index;
lib/libc/rpc/clnt_bcast.c
210
fprintf(stderr, "set v6 multicast if to %d\n", bip->index);
lib/libc/rpc/clnt_bcast.c
211
if (_setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_IF, &bip->index,
lib/libc/rpc/clnt_bcast.c
212
sizeof bip->index) < 0)
lib/libc/string/index.c
45
index
lib/libc/string/strchr.c
51
__weak_reference(strchr, index);
lib/libexecinfo/private_libelf.h
2689
elf_getscn(Elf *e, size_t index)
lib/libexecinfo/private_libelf.h
2710
if (s->s_ndx == index)
lib/libftpio/ftpio.c
464
if ((cp = index(host, ':')) != NULL) {
lib/libftpio/ftpio.c
473
if ((name = index(cp ? cp : host, '/')) != NULL)
lib/libldns/ldns/util.h
187
int ldns_get_bit(uint8_t bits[], size_t index);
lib/libldns/ldns/util.h
198
int ldns_get_bit_r(uint8_t bits[], size_t index);
lib/libnvmm/libnvmm_x86.c
2091
get_register_idx(struct x86_instr *instr, uint8_t index)
lib/libnvmm/libnvmm_x86.c
2093
uint8_t enc = index;
lib/libnvmm/libnvmm_x86.c
2127
uint8_t scale, index, base;
lib/libnvmm/libnvmm_x86.c
2136
index = ((byte & 0b00111000) >> 3);
lib/libnvmm/libnvmm_x86.c
2144
if (index == 0b100 && !instr->rexpref.x) {
lib/libnvmm/libnvmm_x86.c
2158
instr->strm->u.sib.idx = get_register_idx(instr, index);
lib/libusb/libusb.h
472
uint8_t *libusb_get_iso_packet_buffer(struct libusb_transfer *transfer, uint32_t index);
lib/libusb/libusb.h
473
uint8_t *libusb_get_iso_packet_buffer_simple(struct libusb_transfer *transfer, uint32_t index);
lib/libusb/libusb20.h
248
int libusb20_dev_req_string_sync(struct libusb20_device *pdev, uint8_t index, uint16_t langid, void *ptr, uint16_t len);
lib/libusb/libusb20.h
249
int libusb20_dev_req_string_simple_sync(struct libusb20_device *pdev, uint8_t index, void *ptr, uint16_t len);
lib/libusb/libusb20.h
276
int libusb20_be_get_dev_quirk(struct libusb20_backend *pbe, uint16_t index, struct libusb20_quirk *pq);
lib/libusb/libusb20.h
277
int libusb20_be_get_quirk_name(struct libusb20_backend *pbe, uint16_t index, struct libusb20_quirk *pq);
lib/libusb/libusb20_int.h
101
typedef int (libusb20_get_config_desc_full_t)(struct libusb20_device *pdev, uint8_t **ppbuf, uint16_t *plen, uint8_t index);
lib/libusb/libusb20_int.h
111
typedef int (libusb20_set_config_index_t)(struct libusb20_device *pdev, uint8_t index);
lib/libusb/libusb20_int.h
53
typedef int (libusb20_root_get_dev_quirk_t)(struct libusb20_backend *pbe, uint16_t index, struct libusb20_quirk *pq);
lib/libusb/libusb20_int.h
54
typedef int (libusb20_root_get_quirk_name_t)(struct libusb20_backend *pbe, uint16_t index, struct libusb20_quirk *pq);
lib/libusb/libusb20_ugen20.c
971
q.index = quirk_index;
lib/libusb/libusb20_ugen20.c
998
q.index = quirk_index;
lib/libusb/usb.h
275
int usb_get_string(usb_dev_handle * dev, int index, int langid, char *buf, size_t buflen);
lib/libusb/usb.h
276
int usb_get_string_simple(usb_dev_handle * dev, int index, char *buf, size_t buflen);
lib/libusb/usb.h
277
int usb_get_descriptor_by_endpoint(usb_dev_handle * udev, int ep, uint8_t type, uint8_t index, void *buf, int size);
lib/libusb/usb.h
278
int usb_get_descriptor(usb_dev_handle * udev, uint8_t type, uint8_t index, void *buf, int size);
lib/libusb/usb.h
287
int usb_control_msg(usb_dev_handle * dev, int requesttype, int request, int value, int index, char *bytes, int size, int timeout);
libexec/mknetid/parse_group.c
112
if (!index(line, '\n')) {
libexec/rpc.rquotad/rquotad.c
291
if ((cp = index(opt, '=')))
libexec/rtld-elf/rtld.c
2310
int index;
libexec/rtld-elf/rtld.c
2316
for (index = 0; index < obj_main->preinit_array_num; index++) {
libexec/rtld-elf/rtld.c
2317
if (preinit_addr[index] != 0 && preinit_addr[index] != 1) {
libexec/rtld-elf/rtld.c
2319
(void *)preinit_addr[index]);
libexec/rtld-elf/rtld.c
2320
LD_UTRACE(UTRACE_INIT_CALL, obj_main, (void *)preinit_addr[index],
libexec/rtld-elf/rtld.c
2322
call_init_pointer(obj_main, preinit_addr[index]);
libexec/rtld-elf/rtld.c
2340
int index;
libexec/rtld-elf/rtld.c
2375
for (index = elm->obj->fini_array_num - 1; index >= 0; index--) {
libexec/rtld-elf/rtld.c
2376
if (fini_addr[index] != 0 && fini_addr[index] != 1) {
libexec/rtld-elf/rtld.c
2378
elm->obj->path, (void *)fini_addr[index]);
libexec/rtld-elf/rtld.c
2380
(void *)fini_addr[index], 0, 0, elm->obj->path);
libexec/rtld-elf/rtld.c
2381
call_initfini_pointer(elm->obj, fini_addr[index]);
libexec/rtld-elf/rtld.c
2419
int index;
libexec/rtld-elf/rtld.c
2461
for (index = 0; index < elm->obj->init_array_num; index++) {
libexec/rtld-elf/rtld.c
2462
if (init_addr[index] != 0 && init_addr[index] != 1) {
libexec/rtld-elf/rtld.c
2464
(void *)init_addr[index]);
libexec/rtld-elf/rtld.c
2466
(void *)init_addr[index], 0, 0, elm->obj->path);
libexec/rtld-elf/rtld.c
2467
call_init_pointer(elm->obj, init_addr[index]);
libexec/rtld-elf/rtld.c
4414
tls_get_addr_common(Elf_Addr** dtvp, int index, size_t offset)
libexec/rtld-elf/rtld.c
4439
if (!dtv[index + 1]) {
libexec/rtld-elf/rtld.c
4443
if (!dtv[index + 1])
libexec/rtld-elf/rtld.c
4444
dtv[index + 1] = (Elf_Addr)allocate_module_tls(index);
libexec/rtld-elf/rtld.c
4447
return ((void *)(dtv[index + 1] + offset));
libexec/rtld-elf/rtld.c
4545
allocate_module_tls(int index)
libexec/rtld-elf/rtld.c
4551
if (obj->tlsindex == index)
libexec/rtld-elf/rtld.c
4555
_rtld_error("Can't find module with TLS index %d", index);
libexec/rtld-elf/rtld.c
4570
_rtld_error("Cannot allocate TLS block for index %d", index);
libexec/rtld-elf/rtld.h
367
void *tls_get_addr_common(Elf_Addr** dtvp, int index, size_t offset);
libexec/rtld-elf/rtld.h
370
void *allocate_module_tls(int index);
sbin/camcontrol/camcontrol.c
289
ccb->cgdl.index = 0;
sbin/camcontrol/camcontrol.c
320
ccb->cgdl.index,
sbin/camcontrol/camcontrol.c
328
ccb->cgdl.index = 0;
sbin/dhclient/dhclient.c
184
if (ifam->ifam_index != ifi->index)
sbin/dhclient/dhclient.c
216
if (ifam->ifam_index != ifi->index)
sbin/dhclient/dhclient.c
227
if (ifm->ifm_index != ifi->index)
sbin/dhclient/dhclient.c
252
ifan->ifan_index == ifi->index) {
sbin/dhclient/dhcpd.h
187
u_int16_t index;
sbin/dhclient/dispatch.c
83
ifi->index = foo->sdl_index;
sbin/fsck/memzone.c
54
if (bytes > chunk->bytes - zone->index) {
sbin/fsck/memzone.c
74
zone->index = 0;
sbin/fsck/memzone.c
78
ptr = chunk->base + zone->index;
sbin/fsck/memzone.c
79
zone->index += (bytes + 7) & ~7;
sbin/fsck/memzone.h
44
int index;
sbin/fsck_hammer2/test.c
1029
info.index = -1;
sbin/fsck_hammer2/test.c
133
int index;
sbin/fsck_hammer2/test.c
527
__print_blockref(fp, info->depth, info->index, &info->bref, NULL);
sbin/fsck_hammer2/test.c
535
__print_blockref(fp, info->depth, info->index, &info->bref, msg);
sbin/fsck_hammer2/test.c
549
fprintf(fp, "%-2d %-3d ", depth, index);
sbin/fsck_hammer2/test.c
790
delta_stats_t *dstats, int depth, int index)
sbin/fsck_hammer2/test.c
812
info.index = -1;
sbin/fsck_hammer2/test.c
814
parent->index = index; /* our bref ref'd from idx in parent */
sbin/hammer/cmd_cleanup.c
1001
dsnapshot->snaps[dsnapshot->index].tid,
sbin/hammer/cmd_cleanup.c
1003
if (++dsnapshot->index < dsnapshot->count)
sbin/hammer/cmd_cleanup.c
1008
dsnapshot->index = 0;
sbin/hammer/cmd_cleanup.c
697
++snapshot->index;
sbin/hammer/cmd_cleanup.c
703
printf("index %d\n", snapshot->index);
sbin/hammer/cmd_cleanup.c
704
snapshot->index = 0;
sbin/hammer/cmd_snapshot.c
464
snapshot.index = 0;
sbin/hammer/cmd_softprune.c
360
while (snapshot.index < snapshot.count) {
sbin/hammer/cmd_softprune.c
361
snap = &snapshot.snaps[snapshot.index];
sbin/hammer/cmd_softprune.c
371
++snapshot.index;
sbin/hammer/cmd_softprune.c
375
snapshot.index = 0;
sbin/hammer/cmd_softprune.c
390
while (dsnap->index < dsnap->count) {
sbin/hammer/cmd_softprune.c
395
++dsnap->index;
sbin/hammer/cmd_softprune.c
397
dsnap->index = 0;
sbin/hammer2/cmd_service.c
348
if (msgconf->index < 0 ||
sbin/hammer2/cmd_service.c
349
msgconf->index >= HAMMER2_COPYID_COUNT) {
sbin/hammer2/cmd_service.c
352
msgconf->index);
sbin/hammer2/cmd_service.c
359
msgconf->index);
sbin/hammer2/cmd_service.c
362
conf += msgconf->index;
sbin/ifconfig/af_inet6.c
224
u_short index;
sbin/ifconfig/af_inet6.c
226
index = *(u_short *)&sin->sin6_addr.s6_addr[2];
sbin/ifconfig/af_inet6.c
229
sin->sin6_scope_id = ntohs(index);
sbin/ifconfig/af_inet6.c
257
u_short index;
sbin/ifconfig/af_inet6.c
259
index = *(u_short *)&sin->sin6_addr.s6_addr[2];
sbin/ifconfig/af_inet6.c
262
sin->sin6_scope_id = ntohs(index);
sbin/mountctl/mountctl.c
424
statreq.index = MC_JOURNAL_INDEX_ID;
sbin/mountctl/mountctl.c
430
statreq.index = MC_JOURNAL_INDEX_ALL;
sbin/newfs_hammer2/mkfs_hammer2.c
513
format_hammer2(hammer2_ondisk_t *fso, hammer2_mkfs_options_t *opt, int index)
sbin/newfs_hammer2/mkfs_hammer2.c
516
hammer2_volume_t *vol = &fso->volumes[index];
sbin/vinum/commands.c
1015
msg.index = find_object(objname, &msg.type); /* find the object to rename */
sbin/vinum/commands.c
1018
get_sd_info(&sd, msg.index);
sbin/vinum/commands.c
1021
if (plex.sdnos[sdno] == msg.index) /* found our subdisk */
sbin/vinum/commands.c
1030
get_plex_info(&plex, msg.index);
sbin/vinum/commands.c
1033
if (vol.plex[plexno] == msg.index) /* found our subdisk */
sbin/vinum/commands.c
1069
msg.index = find_object(argv[0], &msg.type); /* find the object to detach */
sbin/vinum/commands.c
1165
msg.index = find_object(oldname, &msg.type); /* find the object to rename */
sbin/vinum/commands.c
1179
plexno = msg.index;
sbin/vinum/commands.c
1191
msg.index = sd.sdno; /* number of the subdisk */
sbin/vinum/commands.c
1198
volno = msg.index;
sbin/vinum/commands.c
1210
msg.index = vol.plex[plexno]; /* number of the plex */
sbin/vinum/commands.c
1219
msg.index = sd.sdno; /* number of the subdisk */
sbin/vinum/commands.c
1290
msg->index = destobj;
sbin/vinum/commands.c
1297
msg->index = destobj;
sbin/vinum/commands.c
1326
msg->index = destobj;
sbin/vinum/commands.c
2333
message->index = vol.volno;
sbin/vinum/commands.c
2351
int index;
sbin/vinum/commands.c
2355
for (index = 1; index < argc; index++) {
sbin/vinum/commands.c
2356
object = find_object(argv[index], &type); /* look for it */
sbin/vinum/commands.c
2358
fprintf(stderr, "Can't find object: %s\n", argv[index]);
sbin/vinum/commands.c
2401
message->index = object; /* pass object number */
sbin/vinum/commands.c
2409
argv[index],
sbin/vinum/commands.c
2453
int index;
sbin/vinum/commands.c
2462
for (index = 0; index < argc; index++) {
sbin/vinum/commands.c
2463
object = find_object(argv[index], &type); /* look for it */
sbin/vinum/commands.c
2465
fprintf(stderr, "%s is not a plex\n", argv[index]);
sbin/vinum/commands.c
2469
fprintf(stderr, "%s is not a RAID-4 or RAID-5 plex\n", argv[index]);
sbin/vinum/commands.c
247
int index;
sbin/vinum/commands.c
2472
message->index = object; /* pass object number */
sbin/vinum/commands.c
250
for (index = 0; index < argc; index++) {
sbin/vinum/commands.c
2506
fprintf(stderr, "%s has correct parity\n", argv[index]);
sbin/vinum/commands.c
2508
fprintf(stderr, "Rebuilt parity on %s\n", argv[index]);
sbin/vinum/commands.c
251
object = find_object(argv[index], &type); /* look for it */
sbin/vinum/commands.c
253
fprintf(stderr, "Can't find object: %s\n", argv[index]);
sbin/vinum/commands.c
255
message->index = object; /* pass object number */
sbin/vinum/commands.c
263
argv[index],
sbin/vinum/commands.c
267
fprintf(stderr, "%s removed\n", argv[index]);
sbin/vinum/commands.c
406
message->index = plexno; /* pass object number */
sbin/vinum/commands.c
459
message->index = sd.sdno; /* pass object number */
sbin/vinum/commands.c
479
message->index = sd.sdno; /* pass object number */
sbin/vinum/commands.c
496
message->index = sd.sdno; /* pass object number */
sbin/vinum/commands.c
563
int index;
sbin/vinum/commands.c
566
for (index = 0; index < argc; index++) {
sbin/vinum/commands.c
567
object = find_object(argv[index], &type); /* look for it */
sbin/vinum/commands.c
569
fprintf(stderr, "Can't find object: %s\n", argv[index]);
sbin/vinum/commands.c
603
message->index = plex.plexno; /* pass object number */
sbin/vinum/commands.c
612
message->index = sd.sdno; /* pass object number */
sbin/vinum/commands.c
659
message->index = object; /* pass object number */
sbin/vinum/commands.c
684
argv[index],
sbin/vinum/commands.c
736
message->index = object; /* pass object number */
sbin/vinum/commands.c
795
msg.index = volno;
sbin/vinum/commands.c
818
msg.index = plexno;
sbin/vinum/commands.c
844
msg.index = sdno;
sbin/vinum/commands.c
863
msg.index = driveno;
sbin/vinum/commands.c
946
msg.index = find_object(objname, &msg.type); /* find the object to attach */
sbin/vinum/commands.c
975
sdno = msg.index; /* note the subdisk number for later */
sbin/vinum/v.c
423
get_drive_info(struct drive *drive, int index)
sbin/vinum/v.c
425
*(int *) drive = index; /* put in drive to hand to driver */
sbin/vinum/v.c
429
index,
sbin/vinum/v.c
436
get_sd_info(struct sd *sd, int index)
sbin/vinum/v.c
438
*(int *) sd = index; /* put in sd to hand to driver */
sbin/vinum/v.c
442
index,
sbin/vinum/v.c
466
get_plex_info(struct plex *plex, int index)
sbin/vinum/v.c
468
*(int *) plex = index; /* put in plex to hand to driver */
sbin/vinum/v.c
472
index,
sbin/vinum/v.c
479
get_volume_info(struct volume *volume, int index)
sbin/vinum/v.c
481
*(int *) volume = index; /* put in volume to hand to driver */
sbin/vinum/v.c
485
index,
sbin/vinum/v.c
775
message->index = sdno; /* pass sd number */
sbin/vinum/vext.h
128
void get_drive_info(struct drive *drive, int index);
sbin/vinum/vext.h
129
void get_sd_info(struct sd *sd, int index);
sbin/vinum/vext.h
131
void get_plex_info(struct plex *plex, int index);
sbin/vinum/vext.h
132
void get_volume_info(struct volume *volume, int index);
sbin/vinum/vext.h
55
void checkentry(int index);
stand/boot/common/interp_parse.c
151
PARSE_FAIL((q = index(p, token)) == NULL);
sys/bus/cam/cam.h
233
pinfo->index = CAM_UNQUEUED_INDEX;
sys/bus/cam/cam.h
72
int index;
sys/bus/cam/cam_ccb.h
325
u_int32_t index;
sys/bus/cam/cam_extend.c
54
cam_extend_set(struct extend_array *ea, int index, void *value)
sys/bus/cam/cam_extend.c
56
if (index >= ea->nelem) {
sys/bus/cam/cam_extend.c
58
space = kmalloc(sizeof(void *) * (index + EXTEND_CHUNK),
sys/bus/cam/cam_extend.c
68
ea->nelem = index + EXTEND_CHUNK;
sys/bus/cam/cam_extend.c
70
if (ea->ps[index]) {
sys/bus/cam/cam_extend.c
71
kprintf("extend_set: entry %d already has storage.\n", index);
sys/bus/cam/cam_extend.c
75
ea->ps[index] = value;
sys/bus/cam/cam_extend.c
82
int index)
sys/bus/cam/cam_extend.c
84
if (ea == NULL || index >= ea->nelem || index < 0)
sys/bus/cam/cam_extend.c
86
return ea->ps[index];
sys/bus/cam/cam_extend.c
90
cam_extend_release(struct extend_array *ea, int index)
sys/bus/cam/cam_extend.c
92
void *p = cam_extend_get(ea, index);
sys/bus/cam/cam_extend.c
94
ea->ps[index] = NULL;
sys/bus/cam/cam_extend.h
25
void *cam_extend_get(struct extend_array *ea, int index);
sys/bus/cam/cam_extend.h
27
void *cam_extend_set(struct extend_array *ea, int index, void *value);
sys/bus/cam/cam_extend.h
28
void cam_extend_release(struct extend_array *ea, int index);
sys/bus/cam/cam_periph.c
868
while ((ccb->ccb_h.pinfo.index != CAM_UNQUEUED_INDEX)
sys/bus/cam/cam_periph.c
902
ccb->cgdl.index = 0;
sys/bus/cam/cam_queue.c
154
new_entry->index = queue->entries;
sys/bus/cam/cam_queue.c
170
camq_remove(struct camq *queue, int index)
sys/bus/cam/cam_queue.c
174
if (index == 0 || index > queue->entries)
sys/bus/cam/cam_queue.c
176
removed_entry = queue->queue_array[index];
sys/bus/cam/cam_queue.c
177
if (queue->entries != index) {
sys/bus/cam/cam_queue.c
178
queue->queue_array[index] = queue->queue_array[queue->entries];
sys/bus/cam/cam_queue.c
179
queue->queue_array[index]->index = index;
sys/bus/cam/cam_queue.c
180
heap_down(queue->queue_array, index, queue->entries - 1);
sys/bus/cam/cam_queue.c
183
removed_entry->index = CAM_UNQUEUED_INDEX;
sys/bus/cam/cam_queue.c
195
camq_change_priority(struct camq *queue, int index, u_int32_t new_priority)
sys/bus/cam/cam_queue.c
197
if (new_priority > queue->queue_array[index]->priority) {
sys/bus/cam/cam_queue.c
198
queue->queue_array[index]->priority = new_priority;
sys/bus/cam/cam_queue.c
199
heap_down(queue->queue_array, index, queue->entries);
sys/bus/cam/cam_queue.c
202
queue->queue_array[index]->priority = new_priority;
sys/bus/cam/cam_queue.c
203
heap_up(queue->queue_array, index);
sys/bus/cam/cam_queue.c
364
queue_array[j]->index = j;
sys/bus/cam/cam_queue.c
365
queue_array[i]->index = i;
sys/bus/cam/cam_queue.c
397
heap_down(cam_pinfo **queue_array, int index, int num_entries)
sys/bus/cam/cam_queue.c
402
parent = index;
sys/bus/cam/cam_queue.c
51
static void heap_down(cam_pinfo **queue_array, int index,
sys/bus/cam/cam_queue.h
142
cam_pinfo *camq_remove(struct camq *queue, int index);
sys/bus/cam/cam_queue.h
152
void camq_change_priority(struct camq *queue, int index,
sys/bus/cam/cam_queue.h
168
cam_ccbq_peek_ccb(struct cam_ccbq *ccbq, int index);
sys/bus/cam/cam_queue.h
203
camq_remove(&ccbq->queue, ccb->ccb_h.pinfo.index);
sys/bus/cam/cam_queue.h
207
cam_ccbq_peek_ccb(struct cam_ccbq *ccbq, int index)
sys/bus/cam/cam_queue.h
209
return((union ccb *)ccbq->queue.queue_array[index]);
sys/bus/cam/cam_queue.h
219
send_ccb->ccb_h.pinfo.index = CAM_ACTIVE_INDEX;
sys/bus/cam/cam_xpt.c
1310
ccb->cgdl.index = i;
sys/bus/cam/cam_xpt.c
3082
if (abort_ccb->ccb_h.pinfo.index >= 0) {
sys/bus/cam/cam_xpt.c
3094
if (abort_ccb->ccb_h.pinfo.index == CAM_UNQUEUED_INDEX
sys/bus/cam/cam_xpt.c
3110
&& (abort_ccb->ccb_h.pinfo.index == CAM_DONEQ_INDEX)) {
sys/bus/cam/cam_xpt.c
3225
if ((cgdl->index != 0) &&
sys/bus/cam/cam_xpt.c
3236
(nperiph != NULL) && (i <= cgdl->index);
sys/bus/cam/cam_xpt.c
3238
if (i == cgdl->index) {
sys/bus/cam/cam_xpt.c
3256
cgdl->index++;
sys/bus/cam/cam_xpt.c
3617
perph->pinfo.index,
sys/bus/cam/cam_xpt.c
3669
if (pinfo->index != CAM_UNQUEUED_INDEX) {
sys/bus/cam/cam_xpt.c
3672
camq_change_priority(queue, pinfo->index,
sys/bus/cam/cam_xpt.c
3920
ccb_h->pinfo.index = CAM_UNQUEUED_INDEX;
sys/bus/cam/cam_xpt.c
4907
done_ccb->ccb_h.pinfo.index = CAM_DONEQ_INDEX;
sys/bus/cam/cam_xpt.c
5199
if (device->alloc_ccb_entry.pinfo.index !=
sys/bus/cam/cam_xpt.c
5201
device->send_ccb_entry.pinfo.index !=
sys/bus/cam/cam_xpt.c
7419
ccb_h->pinfo.index = CAM_UNQUEUED_INDEX;
sys/bus/cam/cam_xpt.c
923
return (periph->pinfo.index != CAM_UNQUEUED_INDEX);
sys/bus/cam/cam_xpt.c
929
return (device->alloc_ccb_entry.pinfo.index != CAM_UNQUEUED_INDEX);
sys/bus/cam/cam_xpt.c
935
return (device->send_ccb_entry.pinfo.index != CAM_UNQUEUED_INDEX);
sys/bus/cam/scsi/scsi_cd.c
1151
if ((softc->pinfo.index == CAM_UNQUEUED_INDEX)
sys/bus/cam/scsi/scsi_cd.c
1397
if (softc->pinfo.index == CAM_UNQUEUED_INDEX) {
sys/bus/cam/scsi/scsi_cd.c
418
&& (softc->pinfo.index != CAM_UNQUEUED_INDEX))
sys/bus/cam/scsi/scsi_cd.c
419
camq_remove(&softc->changer->devq, softc->pinfo.index);
sys/bus/cam/scsi/scsi_cd.c
851
nsoftc->pinfo.index =CAM_UNQUEUED_INDEX;
sys/bus/cam/scsi/scsi_cd.c
868
softc->pinfo.index = CAM_UNQUEUED_INDEX;
sys/bus/cam/scsi/scsi_cd.c
952
nsoftc->pinfo.index = CAM_UNQUEUED_INDEX;
sys/bus/cam/scsi/scsi_cd.c
966
softc->pinfo.index = CAM_UNQUEUED_INDEX;
sys/bus/firewire/fwcrom.c
102
return (&ptr->dir->entry[ptr->index]);
sys/bus/firewire/fwcrom.c
123
ptr->index = 0;
sys/bus/firewire/fwcrom.c
128
ptr->index ++;
sys/bus/firewire/fwcrom.c
130
if (ptr->index < ptr->dir->crc_len &&
sys/bus/firewire/fwcrom.c
134
if (ptr->index < ptr->dir->crc_len)
sys/bus/firewire/fwcrom.c
397
int index;
sys/bus/firewire/fwcrom.c
399
index = chunk->data.crc_len;
sys/bus/firewire/fwcrom.c
400
if (index >= CROM_MAX_CHUNK_LEN - 1) {
sys/bus/firewire/fwcrom.c
401
kprintf("too large chunk %d\n", index);
sys/bus/firewire/fwcrom.c
404
chunk->data.buf[index] = entry;
sys/bus/firewire/fwcrom.c
406
return(index);
sys/bus/firewire/fwcrom.c
425
int index;
sys/bus/firewire/fwcrom.c
432
index = crom_add_entry(parent, key, 0);
sys/bus/firewire/fwcrom.c
433
if (index < 0) {
sys/bus/firewire/fwcrom.c
437
child->ref_index = index;
sys/bus/firewire/fwcrom.c
439
return(index);
sys/bus/firewire/fwcrom.c
93
cc->stack[0].index = 0;
sys/bus/firewire/fwdma.h
60
fwdma_v_addr(struct fwdma_alloc_multi *am, int index)
sys/bus/firewire/fwdma.h
63
int offset = am->esize * index;
sys/bus/firewire/fwdma.h
69
fwdma_bus_addr(struct fwdma_alloc_multi *am, int index)
sys/bus/firewire/fwdma.h
72
int offset = am->esize * index;
sys/bus/firewire/iec13213.h
203
int index;
sys/bus/iicbus/iicbb.c
332
iicbb_callback(device_t dev, int index, caddr_t data)
sys/bus/iicbus/iicbb.c
334
return (IICBB_CALLBACK(device_get_parent(dev), index, data));
sys/bus/iicbus/iicbus.c
181
iicbus_null_callback(device_t dev, int index, caddr_t data)
sys/bus/iicbus/iicsmb.c
250
iicsmb_callback(device_t dev, int index, void *data)
sys/bus/iicbus/iicsmb.c
256
switch (index) {
sys/bus/iicbus/iicsmb.c
84
static int iicsmb_callback(device_t dev, int index, void *data);
sys/bus/isa/isa_common.c
619
isa_read_ivar(device_t bus, device_t dev, int index, uintptr_t * result)
sys/bus/isa/isa_common.c
625
switch (index) {
sys/bus/isa/isa_common.c
747
int index, uintptr_t value)
sys/bus/isa/isa_common.c
751
switch (index) {
sys/bus/mmc/mmc_subr.c
153
uint8_t index, uint8_t value, u_int timeout, bool status)
sys/bus/mmc/mmc_subr.c
162
cmd.arg = (MMC_SWITCH_FUNC_WR << 24) | (index << 16) | (value << 8) |
sys/bus/mmc/mmc_subr.h
64
uint8_t index, uint8_t value, u_int timeout, bool send_status);
sys/bus/pci/pci.c
108
static void pci_setup_msix_vector(device_t dev, u_int index,
sys/bus/pci/pci.c
110
static void pci_mask_msix_vector(device_t dev, u_int index);
sys/bus/pci/pci.c
111
static void pci_unmask_msix_vector(device_t dev, u_int index);
sys/bus/pci/pci.c
1423
pci_setup_msix_vector(device_t dev, u_int index, uint64_t address,
sys/bus/pci/pci.c
1430
KASSERT(msix->msix_msgnum > index, ("bogus index"));
sys/bus/pci/pci.c
1431
offset = msix->msix_table_offset + index * 16;
sys/bus/pci/pci.c
1441
pci_mask_msix_vector(device_t dev, u_int index)
sys/bus/pci/pci.c
1447
KASSERT(msix->msix_msgnum > index, ("bogus index"));
sys/bus/pci/pci.c
1448
offset = msix->msix_table_offset + index * 16 + 12;
sys/bus/pci/pci.c
1457
pci_unmask_msix_vector(device_t dev, u_int index)
sys/bus/pci/pci.c
1463
KASSERT(msix->msix_msgnum > index, ("bogus index"));
sys/bus/pci/pci.c
1464
offset = msix->msix_table_offset + index * 16 + 12;
sys/bus/pci/pci.c
1473
pci_pending_msix_vector(device_t dev, u_int index)
sys/bus/pci/pci.c
1482
KASSERT(msix->msix_msgnum > index, ("bogus index"));
sys/bus/pci/pci.c
1483
offset = msix->msix_pba_offset + (index / 32) * 4;
sys/bus/pci/pci.c
1484
bit = 1 << index % 32;
sys/bus/pci/pcivar.h
512
int pci_pending_msix_vector(device_t dev, u_int index);
sys/bus/pci/x86_64/legacy.c
239
static int cpu_read_ivar(device_t dev, device_t child, int index,
sys/bus/pci/x86_64/legacy.c
338
cpu_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/bus/pci/x86_64/legacy.c
342
if (index != CPU_IVAR_PCPU)
sys/bus/ppbus/ppb_msq.c
104
return (&table[index]);
sys/bus/ppbus/ppb_msq.c
57
int index, epp;
sys/bus/ppbus/ppb_msq.c
76
index = COMPAT_MSQ;
sys/bus/ppbus/ppb_msq.c
79
index = NIBBLE_MSQ;
sys/bus/ppbus/ppb_msq.c
82
index = PS2_MSQ;
sys/bus/ppbus/ppb_msq.c
87
index = EPP17_MSQ;
sys/bus/ppbus/ppb_msq.c
90
index = EPP19_MSQ;
sys/bus/ppbus/ppb_msq.c
98
index = ECP_MSQ;
sys/bus/ppbus/ppbconf.c
104
ppbus_read_ivar(device_t bus, device_t dev, int index, uintptr_t* val)
sys/bus/ppbus/ppbconf.c
108
switch (index) {
sys/bus/ppbus/ppbconf.c
128
ppbus_write_ivar(device_t bus, device_t dev, int index, u_long val)
sys/bus/ppbus/ppbconf.c
132
switch (index) {
sys/bus/smbus/amdsmb/amdsmb.c
194
amdsmb_callback(device_t dev, int index, void *data)
sys/bus/smbus/amdsmb/amdsmb.c
198
switch (index) {
sys/bus/smbus/ichiic/ig4_iic.c
710
ig4iic_smb_callback(device_t dev, int index, void *data)
sys/bus/smbus/ichiic/ig4_iic.c
717
switch (index) {
sys/bus/smbus/ichsmb/ichsmb.c
149
ichsmb_callback(device_t dev, int index, void *data)
sys/bus/smbus/ichsmb/ichsmb.c
153
DBG("index=%d how=%d\n", index, data ? *(int *)data : -1);
sys/bus/smbus/ichsmb/ichsmb.c
154
switch (index) {
sys/bus/u4b/controller/ehci.c
3084
ehci_disown(ehci_softc_t *sc, uint16_t index, uint8_t lowspeed)
sys/bus/u4b/controller/ehci.c
3089
DPRINTF("index=%d lowspeed=%d\n", index, lowspeed);
sys/bus/u4b/controller/ehci.c
3091
port = EHCI_PORTSC(index);
sys/bus/u4b/controller/ehci.c
3108
uint16_t index;
sys/bus/u4b/controller/ehci.c
3119
index = UGETW(req->wIndex);
sys/bus/u4b/controller/ehci.c
3124
UGETW(req->wLength), value, index);
sys/bus/u4b/controller/ehci.c
3246
if ((index < 1) ||
sys/bus/u4b/controller/ehci.c
3247
(index > sc->sc_noport)) {
sys/bus/u4b/controller/ehci.c
3251
port = EHCI_PORTSC(index);
sys/bus/u4b/controller/ehci.c
3280
"%d\n", index);
sys/bus/u4b/controller/ehci.c
3284
"%d\n", index);
sys/bus/u4b/controller/ehci.c
3339
index);
sys/bus/u4b/controller/ehci.c
3340
if ((index < 1) ||
sys/bus/u4b/controller/ehci.c
3341
(index > sc->sc_noport)) {
sys/bus/u4b/controller/ehci.c
3345
v = EOREAD4(sc, EHCI_PORTSC(index));
sys/bus/u4b/controller/ehci.c
3390
if ((index < 1) ||
sys/bus/u4b/controller/ehci.c
3391
(index > sc->sc_noport)) {
sys/bus/u4b/controller/ehci.c
3395
port = EHCI_PORTSC(index);
sys/bus/u4b/controller/ehci.c
3405
DPRINTFN(6, "reset port %d\n", index);
sys/bus/u4b/controller/ehci.c
3412
ehci_disown(sc, index, 1);
sys/bus/u4b/controller/ehci.c
3419
ehci_disown(sc, index, 1);
sys/bus/u4b/controller/ehci.c
3449
ehci_disown(sc, index, 0);
sys/bus/u4b/controller/ehci.c
3454
index, v);
sys/bus/u4b/controller/ehci.c
3458
DPRINTFN(3, "set port power %d\n", index);
sys/bus/u4b/controller/ehci.c
3463
DPRINTFN(3, "set port test %d\n", index);
sys/bus/u4b/controller/ehci.c
3467
DPRINTFN(3, "set port ind %d\n", index);
sys/bus/u4b/controller/ohci.c
2093
uint16_t index;
sys/bus/u4b/controller/ohci.c
2105
index = UGETW(req->wIndex);
sys/bus/u4b/controller/ohci.c
2110
UGETW(req->wLength), value, index);
sys/bus/u4b/controller/ohci.c
2220
index, value);
sys/bus/u4b/controller/ohci.c
2221
if ((index < 1) ||
sys/bus/u4b/controller/ohci.c
2222
(index > sc->sc_noport)) {
sys/bus/u4b/controller/ohci.c
2226
port = OHCI_RH_PORT_STATUS(index);
sys/bus/u4b/controller/ohci.c
2305
index);
sys/bus/u4b/controller/ohci.c
2306
if ((index < 1) ||
sys/bus/u4b/controller/ohci.c
2307
(index > sc->sc_noport)) {
sys/bus/u4b/controller/ohci.c
2311
v = OREAD4(sc, OHCI_RH_PORT_STATUS(index));
sys/bus/u4b/controller/ohci.c
2324
if ((index < 1) ||
sys/bus/u4b/controller/ohci.c
2325
(index > sc->sc_noport)) {
sys/bus/u4b/controller/ohci.c
2329
port = OHCI_RH_PORT_STATUS(index);
sys/bus/u4b/controller/ohci.c
2338
DPRINTFN(6, "reset port %d\n", index);
sys/bus/u4b/controller/ohci.c
2354
index, OREAD4(sc, port));
sys/bus/u4b/controller/ohci.c
2357
DPRINTFN(3, "set port power %d\n", index);
sys/bus/u4b/controller/uhci.c
2376
uhci_portreset(uhci_softc_t *sc, uint16_t index)
sys/bus/u4b/controller/uhci.c
2382
if (index == 1)
sys/bus/u4b/controller/uhci.c
2384
else if (index == 2)
sys/bus/u4b/controller/uhci.c
2402
index, UREAD2(sc, port));
sys/bus/u4b/controller/uhci.c
2419
index, UREAD2(sc, port));
sys/bus/u4b/controller/uhci.c
2432
index, lim, x);
sys/bus/u4b/controller/uhci.c
2444
index, lim);
sys/bus/u4b/controller/uhci.c
2465
DPRINTFN(2, "uhci port %d reset timed out\n", index);
sys/bus/u4b/controller/uhci.c
2470
index, UREAD2(sc, port));
sys/bus/u4b/controller/uhci.c
2486
uint16_t index;
sys/bus/u4b/controller/uhci.c
2500
index = UGETW(req->wIndex);
sys/bus/u4b/controller/uhci.c
2505
UGETW(req->wLength), value, index);
sys/bus/u4b/controller/uhci.c
2615
index, value);
sys/bus/u4b/controller/uhci.c
2616
if (index == 1)
sys/bus/u4b/controller/uhci.c
2618
else if (index == 2)
sys/bus/u4b/controller/uhci.c
2654
sc->sc_isresumed &= ~(1 << index);
sys/bus/u4b/controller/uhci.c
2666
if (index == 1)
sys/bus/u4b/controller/uhci.c
2668
else if (index == 2)
sys/bus/u4b/controller/uhci.c
2692
if (index == 1)
sys/bus/u4b/controller/uhci.c
2694
else if (index == 2)
sys/bus/u4b/controller/uhci.c
2730
sc->sc_isresumed |= (1 << index);
sys/bus/u4b/controller/uhci.c
2736
if (sc->sc_isresumed & (1 << index))
sys/bus/u4b/controller/uhci.c
2750
if (index == 1)
sys/bus/u4b/controller/uhci.c
2752
else if (index == 2)
sys/bus/u4b/controller/uhci.c
2768
err = uhci_portreset(sc, index);
sys/bus/u4b/controller/xhci.c
1391
uint8_t index;
sys/bus/u4b/controller/xhci.c
1397
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
1399
hdev = &sc->sc_hw.devs[index];
sys/bus/u4b/controller/xhci.c
1459
(address == 0), index);
sys/bus/u4b/controller/xhci.c
1471
"for slot %u.\n", index);
sys/bus/u4b/controller/xhci.c
2279
xhci_set_slot_pointer(struct xhci_softc *sc, uint8_t index, uint64_t dev_addr)
sys/bus/u4b/controller/xhci.c
2288
DPRINTF("addr[%u]=0x%016llx\n", index, (long long)dev_addr);
sys/bus/u4b/controller/xhci.c
2290
pdctxa->qwBaaDevCtxAddr[index] = htole64(dev_addr);
sys/bus/u4b/controller/xhci.c
2302
uint8_t index;
sys/bus/u4b/controller/xhci.c
2305
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
2307
usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp);
sys/bus/u4b/controller/xhci.c
2336
if (x > sc->sc_hw.devs[index].context_num)
sys/bus/u4b/controller/xhci.c
2337
sc->sc_hw.devs[index].context_num = x;
sys/bus/u4b/controller/xhci.c
2339
x = sc->sc_hw.devs[index].context_num;
sys/bus/u4b/controller/xhci.c
2347
usb_pc_cpu_flush(&sc->sc_hw.devs[index].input_pc);
sys/bus/u4b/controller/xhci.c
2363
uint8_t index;
sys/bus/u4b/controller/xhci.c
2367
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
2369
usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp);
sys/bus/u4b/controller/xhci.c
2505
usb_pc_cpu_flush(&sc->sc_hw.devs[index].input_pc);
sys/bus/u4b/controller/xhci.c
2565
uint8_t index;
sys/bus/u4b/controller/xhci.c
2568
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
2570
DPRINTF("index=%u\n", index);
sys/bus/u4b/controller/xhci.c
2572
pcinp = &sc->sc_hw.devs[index].input_pc;
sys/bus/u4b/controller/xhci.c
2611
sc->sc_hw.devs[index].context_num + 1);
sys/bus/u4b/controller/xhci.c
2625
if (sc->sc_hw.devs[index].nports != 0 &&
sys/bus/u4b/controller/xhci.c
2645
is_hub = sc->sc_hw.devs[index].nports != 0 &&
sys/bus/u4b/controller/xhci.c
2659
sc->sc_hw.devs[index].nports);
sys/bus/u4b/controller/xhci.c
2664
switch (sc->sc_hw.devs[index].state) {
sys/bus/u4b/controller/xhci.c
2685
sc->sc_hw.devs[index].tt);
sys/bus/u4b/controller/xhci.c
2734
uint8_t index;
sys/bus/u4b/controller/xhci.c
2737
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
2739
pc = &sc->sc_hw.devs[index].device_pc;
sys/bus/u4b/controller/xhci.c
2740
pg = &sc->sc_hw.devs[index].device_pg;
sys/bus/u4b/controller/xhci.c
2752
pc = &sc->sc_hw.devs[index].input_pc;
sys/bus/u4b/controller/xhci.c
2753
pg = &sc->sc_hw.devs[index].input_pg;
sys/bus/u4b/controller/xhci.c
2768
pc = &sc->sc_hw.devs[index].endpoint_pc[i];
sys/bus/u4b/controller/xhci.c
2769
pg = &sc->sc_hw.devs[index].endpoint_pg[i];
sys/bus/u4b/controller/xhci.c
2798
xhci_set_slot_pointer(sc, index, buf_dev.physaddr);
sys/bus/u4b/controller/xhci.c
2812
uint8_t index;
sys/bus/u4b/controller/xhci.c
2815
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
2816
xhci_set_slot_pointer(sc, index, 0);
sys/bus/u4b/controller/xhci.c
2818
usb_pc_free_mem(&sc->sc_hw.devs[index].device_pc);
sys/bus/u4b/controller/xhci.c
2819
usb_pc_free_mem(&sc->sc_hw.devs[index].input_pc);
sys/bus/u4b/controller/xhci.c
2821
usb_pc_free_mem(&sc->sc_hw.devs[index].endpoint_pc[i]);
sys/bus/u4b/controller/xhci.c
2832
uint8_t index;
sys/bus/u4b/controller/xhci.c
2840
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
2842
pc = &sc->sc_hw.devs[index].endpoint_pc[epno];
sys/bus/u4b/controller/xhci.c
2846
pepext = &sc->sc_hw.devs[index].endp[epno];
sys/bus/u4b/controller/xhci.c
2859
uint8_t index;
sys/bus/u4b/controller/xhci.c
2866
index = xfer->xroot->udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
2869
XWRITE4(sc, door, XHCI_DOORBELL(index),
sys/bus/u4b/controller/xhci.c
3308
uint16_t index;
sys/bus/u4b/controller/xhci.c
3320
index = UGETW(req->wIndex);
sys/bus/u4b/controller/xhci.c
3325
UGETW(req->wLength), value, index);
sys/bus/u4b/controller/xhci.c
3443
if ((index < 1) ||
sys/bus/u4b/controller/xhci.c
3444
(index > sc->sc_noport)) {
sys/bus/u4b/controller/xhci.c
3448
port = XHCI_PORTSC(index);
sys/bus/u4b/controller/xhci.c
3551
DPRINTFN(9, "UR_GET_STATUS i=%d\n", index);
sys/bus/u4b/controller/xhci.c
3553
if ((index < 1) ||
sys/bus/u4b/controller/xhci.c
3554
(index > sc->sc_noport)) {
sys/bus/u4b/controller/xhci.c
3559
v = XREAD4(sc, oper, XHCI_PORTSC(index));
sys/bus/u4b/controller/xhci.c
3626
i = index >> 8;
sys/bus/u4b/controller/xhci.c
3627
index &= 0x00FF;
sys/bus/u4b/controller/xhci.c
3629
if ((index < 1) ||
sys/bus/u4b/controller/xhci.c
3630
(index > sc->sc_noport)) {
sys/bus/u4b/controller/xhci.c
3635
port = XHCI_PORTSC(index);
sys/bus/u4b/controller/xhci.c
3644
port = XHCI_PORTPMSC(index);
sys/bus/u4b/controller/xhci.c
3655
port = XHCI_PORTPMSC(index);
sys/bus/u4b/controller/xhci.c
3671
DPRINTFN(3, "set port enable %d\n", index);
sys/bus/u4b/controller/xhci.c
3674
DPRINTFN(6, "suspend port %u (LPM=%u)\n", index, i);
sys/bus/u4b/controller/xhci.c
3685
DPRINTFN(6, "reset port %d\n", index);
sys/bus/u4b/controller/xhci.c
3689
DPRINTFN(3, "set port power %d\n", index);
sys/bus/u4b/controller/xhci.c
3693
DPRINTFN(3, "set port test %d\n", index);
sys/bus/u4b/controller/xhci.c
3696
DPRINTFN(3, "set port indicator %d\n", index);
sys/bus/u4b/controller/xhci.c
3860
uint8_t index;
sys/bus/u4b/controller/xhci.c
3868
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
3870
pcinp = &sc->sc_hw.devs[index].input_pc;
sys/bus/u4b/controller/xhci.c
3910
err = xhci_cmd_reset_ep(sc, 0, epno, index);
sys/bus/u4b/controller/xhci.c
3917
err = xhci_cmd_stop_ep(sc, 0, epno, index);
sys/bus/u4b/controller/xhci.c
3926
stream_id, epno, index);
sys/bus/u4b/controller/xhci.c
3947
err = xhci_cmd_configure_ep(sc, buf_inp.physaddr, 0, index);
sys/bus/u4b/controller/xhci.c
3950
"endpoint %u at slot %u.\n", epno, index);
sys/bus/u4b/controller/xhci.c
3952
sc->sc_hw.devs[index].ep_configured &= ~mask;
sys/bus/u4b/controller/xhci.c
3962
err = xhci_cmd_evaluate_ctx(sc, buf_inp.physaddr, index);
sys/bus/u4b/controller/xhci.c
3967
if (!(sc->sc_hw.devs[index].ep_configured & mask)) {
sys/bus/u4b/controller/xhci.c
3968
err = xhci_cmd_configure_ep(sc, buf_inp.physaddr, 0, index);
sys/bus/u4b/controller/xhci.c
3970
sc->sc_hw.devs[index].ep_configured |= mask;
sys/bus/u4b/controller/xhci.c
3972
err = xhci_cmd_evaluate_ctx(sc, buf_inp.physaddr, index);
sys/bus/u4b/controller/xhci.c
4091
uint8_t index;
sys/bus/u4b/controller/xhci.c
4112
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
4114
sc->sc_hw.devs[index].ep_configured &= ~(1U << epno);
sys/bus/u4b/controller/xhci.c
4128
uint8_t index;
sys/bus/u4b/controller/xhci.c
4143
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
4147
if (sc->sc_hw.devs[index].ep_configured & mask) {
sys/bus/u4b/controller/xhci.c
4152
pcinp = &sc->sc_hw.devs[index].input_pc;
sys/bus/u4b/controller/xhci.c
4154
err = xhci_cmd_configure_ep(sc, buf_inp.physaddr, 0, index);
sys/bus/u4b/controller/xhci.c
4159
sc->sc_hw.devs[index].ep_configured &= ~mask;
sys/bus/u4b/controller/xhci.c
4258
uint8_t index;
sys/bus/u4b/controller/xhci.c
4266
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
4268
if (index <= sc->sc_noslot) {
sys/bus/u4b/controller/xhci.c
4269
xhci_cmd_disable_slot(sc, index);
sys/bus/u4b/controller/xhci.c
4270
sc->sc_hw.devs[index].state = XHCI_ST_DISABLED;
sys/bus/u4b/controller/xhci.c
4293
uint8_t index;
sys/bus/u4b/controller/xhci.c
4303
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
4313
XWRITE4(sc, door, XHCI_DOORBELL(index),
sys/bus/u4b/controller/xhci.c
4327
uint8_t index;
sys/bus/u4b/controller/xhci.c
4337
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
4344
err = xhci_cmd_stop_ep(sc, 1, n, index);
sys/bus/u4b/controller/xhci.c
4347
"%u on slot %u (ignored).\n", n, index);
sys/bus/u4b/controller/xhci.c
4366
uint8_t index;
sys/bus/u4b/controller/xhci.c
4372
index = udev->controller_slot_id;
sys/bus/u4b/controller/xhci.c
4377
err = uhub_query_info(udev, &sc->sc_hw.devs[index].nports,
sys/bus/u4b/controller/xhci.c
4378
&sc->sc_hw.devs[index].tt);
sys/bus/u4b/controller/xhci.c
4380
sc->sc_hw.devs[index].nports = 0;
sys/bus/u4b/controller/xhci.c
4387
if (sc->sc_hw.devs[index].state == XHCI_ST_DEFAULT)
sys/bus/u4b/controller/xhci.c
4391
sc->sc_hw.devs[index].state = XHCI_ST_DEFAULT;
sys/bus/u4b/controller/xhci.c
4392
sc->sc_hw.devs[index].ep_configured = 3U;
sys/bus/u4b/controller/xhci.c
4395
sc->sc_hw.devs[index].context_num = 0;
sys/bus/u4b/controller/xhci.c
4397
err = xhci_cmd_reset_dev(sc, index);
sys/bus/u4b/controller/xhci.c
4401
"for slot %u.\n", index);
sys/bus/u4b/controller/xhci.c
4406
if (sc->sc_hw.devs[index].state == XHCI_ST_ADDRESSED)
sys/bus/u4b/controller/xhci.c
4409
sc->sc_hw.devs[index].state = XHCI_ST_ADDRESSED;
sys/bus/u4b/controller/xhci.c
4410
sc->sc_hw.devs[index].ep_configured = 3U;
sys/bus/u4b/controller/xhci.c
4412
err = xhci_cmd_configure_ep(sc, 0, 1, index);
sys/bus/u4b/controller/xhci.c
4416
"slot %u.\n", index);
sys/bus/u4b/controller/xhci.c
4421
if (sc->sc_hw.devs[index].state == XHCI_ST_CONFIGURED)
sys/bus/u4b/controller/xhci.c
4425
sc->sc_hw.devs[index].state = XHCI_ST_CONFIGURED;
sys/bus/u4b/controller/xhci.c
4426
sc->sc_hw.devs[index].ep_configured = 3U;
sys/bus/u4b/controller/xhci.c
4429
sc->sc_hw.devs[index].context_num = 0;
sys/bus/u4b/controller/xhci.c
4431
usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp);
sys/bus/u4b/controller/xhci.c
4438
"at slot %u.\n", index);
sys/bus/u4b/controller/xhci.c
4441
err = xhci_cmd_evaluate_ctx(sc, buf_inp.physaddr, index);
sys/bus/u4b/controller/xhci.c
4444
"context at slot %u.\n", index);
sys/bus/u4b/controller/xhci.c
900
uint8_t index;
sys/bus/u4b/controller/xhci.c
912
index = XHCI_TRB_3_SLOT_GET(temp);
sys/bus/u4b/controller/xhci.c
919
index, epno, stream_id, remainder, status);
sys/bus/u4b/controller/xhci.c
921
if (index > sc->sc_noslot) {
sys/bus/u4b/controller/xhci.c
931
pepext = &sc->sc_hw.devs[index].endp[epno];
sys/bus/u4b/gadget/g_keyboard.c
277
g_keyboard_get_keycode(struct g_keyboard_softc *sc, int index)
sys/bus/u4b/gadget/g_keyboard.c
283
index = 0;
sys/bus/u4b/gadget/g_keyboard.c
285
index %= mod;
sys/bus/u4b/gadget/g_keyboard.c
287
if ((index >= 0) && (index < sc->sc_pattern_len))
sys/bus/u4b/gadget/g_keyboard.c
288
key = sc->sc_pattern[index];
sys/bus/u4b/input/ums.c
461
uint16_t len, uint8_t index)
sys/bus/u4b/input/ums.c
463
struct ums_info *info = &sc->sc_info[index];
sys/bus/u4b/input/ums.c
469
hid_input, index, &info->sc_loc_x, &flags, &info->sc_iid_x)) {
sys/bus/u4b/input/ums.c
476
hid_input, index, &info->sc_loc_y, &flags, &info->sc_iid_y)) {
sys/bus/u4b/input/ums.c
484
HUG_WHEEL), hid_input, index, &info->sc_loc_z, &flags,
sys/bus/u4b/input/ums.c
487
HUG_TWHEEL), hid_input, index, &info->sc_loc_z, &flags,
sys/bus/u4b/input/ums.c
497
HUG_Z), hid_input, index, &info->sc_loc_w, &flags,
sys/bus/u4b/input/ums.c
505
HUG_Z), hid_input, index, &info->sc_loc_z, &flags,
sys/bus/u4b/input/ums.c
520
HUG_TWHEEL), hid_input, index, &info->sc_loc_t,
sys/bus/u4b/input/ums.c
529
HUC_AC_PAN), hid_input, index, &info->sc_loc_t,
sys/bus/u4b/input/ums.c
539
hid_input, index, &info->sc_loc_btn[i], NULL,
sys/bus/u4b/input/ums.c
549
hid_input, index, &info->sc_loc_btn[i], NULL,
sys/bus/u4b/input/wsp.c
1027
} else if (sc->index[0]->touch_major >= tun.pressure_touch_threshold &&
sys/bus/u4b/input/wsp.c
1030
} else if (sc->index[0]->touch_major >= tun.pressure_touch_threshold &&
sys/bus/u4b/input/wsp.c
1040
sc->index[0]->touch_major >= tun.pressure_touch_threshold) {
sys/bus/u4b/input/wsp.c
1053
if (ntouch == 1 && sc->index[0]->tool_major > 1200)
sys/bus/u4b/input/wsp.c
1069
if (sc->index[0]->origin == 0 || sc->index[1]->origin == 0 ||
sys/bus/u4b/input/wsp.c
1074
if ((abs(sc->index[0]->rel_x) + abs(sc->index[0]->rel_y)) <
sys/bus/u4b/input/wsp.c
1075
(abs(sc->index[1]->rel_x) + abs(sc->index[1]->rel_y)) &&
sys/bus/u4b/input/wsp.c
1081
if ((abs(sc->index[0]->rel_x) + abs(sc->index[0]->rel_y)) >=
sys/bus/u4b/input/wsp.c
1082
(abs(sc->index[1]->rel_x) + abs(sc->index[1]->rel_y)) &&
sys/bus/u4b/input/wsp.c
550
struct tp_finger *index[MAX_FINGERS]; /* finger index data */
sys/bus/u4b/input/wsp.c
920
sc->index[i] = f;
sys/bus/u4b/input/wsp.c
942
if (sc->index[0]->touch_major > tun.pressure_tap_threshold &&
sys/bus/u4b/input/wsp.c
943
sc->index[0]->tool_major <= 1200)
sys/bus/u4b/input/wsp.c
947
if (sc->index[0]->touch_major > tun.pressure_tap_threshold-30 &&
sys/bus/u4b/input/wsp.c
948
sc->index[1]->touch_major > tun.pressure_tap_threshold-30)
sys/bus/u4b/input/wsp.c
952
if (sc->index[0]->touch_major > tun.pressure_tap_threshold-40 &&
sys/bus/u4b/input/wsp.c
953
sc->index[1]->touch_major > tun.pressure_tap_threshold-40 &&
sys/bus/u4b/input/wsp.c
954
sc->index[2]->touch_major > tun.pressure_tap_threshold-40)
sys/bus/u4b/input/wsp.c
966
if (sc->index[0]->touch_major < tun.pressure_untouch_threshold &&
sys/bus/u4b/misc/ufm.c
178
uint16_t value, uint16_t index, uint8_t *retbuf)
sys/bus/u4b/misc/ufm.c
188
USETW(req.wIndex, index);
sys/bus/u4b/net/if_axe.c
291
axe_cmd(struct axe_softc *sc, int cmd, int index, int val, void *buf)
sys/bus/u4b/net/if_axe.c
303
USETW(req.wIndex, index);
sys/bus/u4b/net/if_axge.c
207
axge_read_mem(struct axge_softc *sc, uint8_t cmd, uint16_t index,
sys/bus/u4b/net/if_axge.c
217
USETW(req.wIndex, index);
sys/bus/u4b/net/if_axge.c
224
axge_write_mem(struct axge_softc *sc, uint8_t cmd, uint16_t index,
sys/bus/u4b/net/if_axge.c
234
USETW(req.wIndex, index);
sys/bus/u4b/net/if_axge.c
252
axge_read_cmd_2(struct axge_softc *sc, uint8_t cmd, uint16_t index,
sys/bus/u4b/net/if_axge.c
257
axge_read_mem(sc, cmd, index, reg, &val, 2);
sys/bus/u4b/net/if_axge.c
268
axge_write_cmd_2(struct axge_softc *sc, uint8_t cmd, uint16_t index,
sys/bus/u4b/net/if_axge.c
274
axge_write_mem(sc, cmd, index, reg, &temp, 2);
sys/bus/u4b/net/if_cdce.c
1212
cdce_ncm_fill_tx_frames(struct usb_xfer *xfer, uint8_t index)
sys/bus/u4b/net/if_cdce.c
1216
struct usb_page_cache *pc = usbd_xfer_get_frame(xfer, index);
sys/bus/u4b/net/if_cdce.c
1224
usbd_xfer_set_frame_offset(xfer, index * CDCE_NCM_TX_MAXLEN, index);
sys/bus/u4b/net/if_cdce.c
1335
usbd_xfer_set_frame_len(xfer, index, offset);
sys/bus/u4b/net/if_urndis.c
408
uint16_t index, uint16_t value, void *buf, uint16_t buflen)
sys/bus/u4b/net/if_urndis.c
415
USETW(req.wIndex, index);
sys/bus/u4b/quirk/usb_quirk.c
847
x = pgq->index % USB_SUB_QUIRKS_MAX;
sys/bus/u4b/quirk/usb_quirk.c
848
y = pgq->index / USB_SUB_QUIRKS_MAX;
sys/bus/u4b/quirk/usb_quirk.c
866
x = pgq->index;
sys/bus/u4b/serial/uark.c
418
uark_cfg_write(struct uark_softc *sc, uint16_t index, uint16_t value)
sys/bus/u4b/serial/uark.c
426
USETW(req.wIndex, index);
sys/bus/u4b/serial/ubsa.c
347
ubsa_cfg_request(struct ubsa_softc *sc, uint8_t index, uint16_t value)
sys/bus/u4b/serial/ubsa.c
353
req.bRequest = index;
sys/bus/u4b/serial/uchcom.c
371
uint16_t value, uint16_t index)
sys/bus/u4b/serial/uchcom.c
378
USETW(req.wIndex, index);
sys/bus/u4b/serial/uchcom.c
387
uint16_t value, uint16_t index, void *buf, uint16_t buflen)
sys/bus/u4b/serial/uchcom.c
394
USETW(req.wIndex, index);
sys/bus/u4b/serial/uplcom.c
477
uint16_t value, uint16_t index, uint16_t length)
sys/bus/u4b/serial/uplcom.c
486
USETW(req.wIndex, index);
sys/bus/u4b/serial/uvscom.c
695
uvscom_cfg_write(struct uvscom_softc *sc, uint8_t index, uint16_t value)
sys/bus/u4b/serial/uvscom.c
701
req.bRequest = index;
sys/bus/u4b/storage/rio500_usb.h
39
int index;
sys/bus/u4b/storage/urio.c
466
USETW(ur.ucr_request.wIndex, rio_cmd->index);
sys/bus/u4b/template/usb_template.c
1034
uint16_t *pLength, uint8_t index)
sys/bus/u4b/template/usb_template.c
1046
if (index >= dd->bNumConfigurations) {
sys/bus/u4b/template/usb_template.c
1050
while (index--) {
sys/bus/u4b/template/usb_template.c
108
uint16_t index);
sys/bus/u4b/template/usb_template.c
1342
usb_temp_setup_by_index(struct usb_device *udev, uint16_t index)
sys/bus/u4b/template/usb_template.c
1346
switch (index) {
sys/bus/u4b/usb_device.c
2250
uint8_t no[128], tmp[16], index = 128;
sys/bus/u4b/usb_device.c
2260
while (udev && udev->device_index != USB_ROOT_HUB_ADDR && index) {
sys/bus/u4b/usb_device.c
2261
no[--index] = udev->port_no;
sys/bus/u4b/usb_device.c
2266
while (index < 128) {
sys/bus/u4b/usb_device.c
2267
ksnprintf(tmp, 16, "%d.", no[index]);
sys/bus/u4b/usb_device.c
2271
index++;
sys/bus/u4b/usb_device.c
2273
index = strlen(phys) - 1;
sys/bus/u4b/usb_device.c
2274
phys[index] = '\0';
sys/bus/u4b/usb_device.c
236
uint8_t index = setup->ep_index;
sys/bus/u4b/usb_device.c
316
if (!index--) {
sys/bus/u4b/usb_device.c
330
(!index)) {
sys/bus/u4b/usb_device.c
542
usbd_set_config_index(struct usb_device *udev, uint8_t index)
sys/bus/u4b/usb_device.c
552
DPRINTFN(6, "udev=%p index=%d\n", udev, index);
sys/bus/u4b/usb_device.c
559
if (index == USB_UNCONFIG_INDEX) {
sys/bus/u4b/usb_device.c
574
(UDESC_CONFIG << 8) | index);
sys/bus/u4b/usb_device.c
578
NULL, &cdp, index);
sys/bus/u4b/usb_device.c
634
udev->curr_config_index = index;
sys/bus/u4b/usb_device.h
308
usb_error_t usbd_set_config_index(struct usb_device *udev, uint8_t index);
sys/bus/u4b/usb_dynamic.c
68
usb_temp_setup_by_index_w(struct usb_device *udev, uint16_t index)
sys/bus/u4b/usb_dynamic.h
39
uint16_t index);
sys/bus/u4b/usb_generic.c
1011
ugen_fs_set_complete(struct usb_fifo *f, uint8_t index)
sys/bus/u4b/usb_generic.c
1024
*((uint8_t *)(m->cur_data_ptr)) = index;
sys/bus/u4b/usb_generic.c
605
ugen_set_config(struct usb_fifo *f, uint8_t index)
sys/bus/u4b/usb_generic.c
607
DPRINTFN(2, "index %u\n", index);
sys/bus/u4b/usb_generic.c
621
if (usbd_start_set_config(f->udev, index) != 0)
sys/bus/u4b/usb_hid.c
612
uint8_t index, struct hid_location *loc, uint32_t *flags, uint8_t *id)
sys/bus/u4b/usb_hid.c
619
if (index--)
sys/bus/u4b/usb_hub.c
2900
usbd_start_set_config(struct usb_device *udev, uint8_t index)
sys/bus/u4b/usb_hub.c
2903
if (udev->curr_config_index == index) {
sys/bus/u4b/usb_hub.c
2907
udev->next_config_index = index;
sys/bus/u4b/usb_hub.c
2912
if (udev->next_config_index == index) {
sys/bus/u4b/usb_ioctl.h
244
uint16_t index; /* Quirk Index */
sys/bus/u4b/usb_request.c
1007
uint16_t id, uint8_t type, uint8_t index,
sys/bus/u4b/usb_request.c
1015
id, type, index, max_len);
sys/bus/u4b/usb_request.c
1019
USETW2(req.wValue, type, index);
sys/bus/u4b/usb_request.c
1342
struct usb_config_descriptor **ppcd, uint8_t index)
sys/bus/u4b/usb_request.c
1349
DPRINTFN(4, "index=%d\n", index);
sys/bus/u4b/usb_request.c
1353
err = usbd_req_get_config_desc(udev, lock, &cd, index);
sys/bus/u4b/usb_request.c
1370
UDESC_CONFIG, index, 3);
sys/bus/u4b/usb_request.h
51
uint8_t index, uint8_t retries);
sys/bus/u4b/usb_transfer.c
1346
int index;
sys/bus/u4b/usb_transfer.c
1349
index = atomic_fetchadd_int(&dfree_index, 1);
sys/bus/u4b/usb_transfer.c
1350
index &= DFREE_MASK;
sys/bus/u4b/usb_transfer.c
1351
slot = dfree_slots[index];
sys/bus/u4b/usb_transfer.c
1352
dfree_slots[index].data = data;
sys/bus/u4b/usb_transfer.c
1353
dfree_slots[index].mtype = mtype;
sys/bus/u4b/usbhid.h
230
enum hid_kind kind, uint8_t index, struct hid_location *loc,
sys/bus/u4b/uvc/uvc_buf.c
149
buf->index, buf->status, buf->mem, buf->offset);
sys/bus/u4b/uvc/uvc_buf.c
466
if (vbuf->index >= bq->buf_count) {
sys/bus/u4b/uvc/uvc_buf.c
476
buf = bq->buf + vbuf->index;
sys/bus/u4b/uvc/uvc_buf.c
500
if (vbuf->index >= bq->buf_count) {
sys/bus/u4b/uvc/uvc_buf.c
505
uvc_buf_queue_query_buf_locked(bq->buf + vbuf->index, vbuf);
sys/bus/u4b/uvc/uvc_buf.c
571
buf->index = i;
sys/bus/u4b/uvc/uvc_buf.c
596
buf->index = ind;
sys/bus/u4b/uvc/uvc_buf.c
91
uvc_buf_fill_v4l2(struct v4l2_buffer *buf, uint32_t index, uint32_t size,
sys/bus/u4b/uvc/uvc_buf.c
94
buf->index = index;
sys/bus/u4b/uvc/uvc_buf.c
95
buf->m.offset = index * size;
sys/bus/u4b/uvc/uvc_buf.h
58
uint64_t index;
sys/bus/u4b/uvc/uvc_ctrls.c
1129
int index = qm->index;
sys/bus/u4b/uvc/uvc_ctrls.c
1133
qm->index = index;
sys/bus/u4b/uvc/uvc_ctrls.c
295
info->index = bit_idx;
sys/bus/u4b/uvc/uvc_ctrls.c
433
info->index = bit_idx;
sys/bus/u4b/uvc/uvc_ctrls.c
814
uint8_t bit_idx = ctrl->index;
sys/bus/u4b/uvc/uvc_ctrls.c
969
ctrl->index = i;
sys/bus/u4b/uvc/uvc_drv.c
1459
if (fmt->index == req->bFormatIndex) {
sys/bus/u4b/uvc/uvc_drv.c
1475
if (frm->index == req->bFrameIndex) {
sys/bus/u4b/uvc/uvc_drv.c
1530
if (fmt->index == req->bFormatIndex) {
sys/bus/u4b/uvc/uvc_drv.c
1540
DPRINTF("format:%u-%s\n", fmt->index, fmt->name);
sys/bus/u4b/uvc/uvc_drv.c
1544
if (frm->index == req->bFrameIndex) {
sys/bus/u4b/uvc/uvc_drv.c
1550
req->bFormatIndex = fmt->index;
sys/bus/u4b/uvc/uvc_drv.c
1551
req->bFrameIndex = frm->index;
sys/bus/u4b/uvc/uvc_drv.c
1624
DPRINTF("frm index:%u width:%u height:%u\n", frm->index,
sys/bus/u4b/uvc/uvc_drv.c
1642
fmt->index, fmt->name, fmt->fcc, fmt->bpp, fmt->colorspace);
sys/bus/u4b/uvc/uvc_drv.c
169
uint8_t index = -1;
sys/bus/u4b/uvc/uvc_drv.c
176
index = ips.iface_index;
sys/bus/u4b/uvc/uvc_drv.c
181
return index;
sys/bus/u4b/uvc/uvc_drv.c
1855
fmt->index = raw->bFormatIndex;
sys/bus/u4b/uvc/uvc_drv.c
1881
fmt->index = fbraw->bFormatIndex;
sys/bus/u4b/uvc/uvc_drv.c
1902
frm->index = frmd->bFrameIndex;
sys/bus/u4b/uvc/uvc_drv.c
1929
frm->index = fbrmd->bFrameIndex;
sys/bus/u4b/uvc/uvc_drv.c
282
if (req->bFormatIndex == video->data->fmt[i].index) {
sys/bus/u4b/uvc/uvc_drv.c
291
if (req->bFrameIndex == fmt->frm[i].index) {
sys/bus/u4b/uvc/uvc_drv.c
641
DPRINTF("format:%d\n", fmt->index);
sys/bus/u4b/uvc/uvc_drv.c
681
req->bFormatIndex = fmt->index;
sys/bus/u4b/uvc/uvc_drv.c
682
req->bFrameIndex = frm->index;
sys/bus/u4b/uvc/uvc_drv.c
737
int i, index, nintervals;
sys/bus/u4b/uvc/uvc_drv.c
750
index = itv->index;
sys/bus/u4b/uvc/uvc_drv.c
756
if (index < nintervals)
sys/bus/u4b/uvc/uvc_drv.c
758
index -= nintervals;
sys/bus/u4b/uvc/uvc_drv.c
768
itv->x.discrete.numerator = frm->interval[index].val;
sys/bus/u4b/uvc/uvc_drv.c
810
if (fs->index >= fmt->nfrm)
sys/bus/u4b/uvc/uvc_drv.c
813
frm = fmt->frm + fs->index;
sys/bus/u4b/uvc/uvc_drv.c
826
if (v->data->nfmt <= vfmt->index)
sys/bus/u4b/uvc/uvc_drv.c
829
fmt = v->data->fmt + vfmt->index;
sys/bus/u4b/uvc/uvc_drv.h
476
uint8_t index; /* Bit index in bmControls */
sys/bus/u4b/uvc/uvc_drv.h
523
uint8_t index; /*
sys/bus/u4b/uvc/uvc_drv.h
616
uint8_t index;
sys/bus/u4b/uvc/uvc_drv.h
638
uint8_t index;
sys/bus/u4b/uvc/uvc_v4l2.c
307
uint32_t index = input->index;
sys/bus/u4b/uvc/uvc_v4l2.c
311
if (index)
sys/bus/u4b/uvc/uvc_v4l2.c
319
input->index = index;
sys/bus/u4b/wlan/if_mtw.c
164
u_int index);
sys/bus/u4b/wlan/if_mtw.c
2778
mtw_bulk_tx_callbackN(struct usb_xfer *xfer, usb_error_t error, u_int index)
sys/bus/u4b/wlan/if_mtw.c
2785
struct mtw_endpoint_queue *pq = &sc->sc_epq[index];
sys/bus/u4b/wlan/if_mtw.c
2795
"transfer complete: %d bytes @ index %d\n", actlen, index);
sys/bus/u4b/wlan/if_mtw.c
2847
tap->wt_hwqueue = index;
sys/bus/u4b/wlan/if_mtw.c
2858
size, index);
sys/bus/u4b/wlan/if_run.c
3055
run_bulk_tx_callbackN(struct usb_xfer *xfer, usb_error_t error, u_int index)
sys/bus/u4b/wlan/if_run.c
3062
struct run_endpoint_queue *pq = &sc->sc_epq[index];
sys/bus/u4b/wlan/if_run.c
3073
"bytes @ index %d\n", actlen, index);
sys/bus/u4b/wlan/if_run.c
3121
tap->wt_hwqueue = index;
sys/bus/u4b/wlan/if_run.c
3129
m->m_pkthdr.len, size, index);
sys/bus/u4b/wlan/if_run.c
339
usb_error_t error, u_int index);
sys/cpu/x86_64/misc/db_disasm.c
1002
index = sib_index(rex, sib);
sys/cpu/x86_64/misc/db_disasm.c
1003
if (index != 4)
sys/cpu/x86_64/misc/db_disasm.c
1004
addrp->index = db_reg[1][size][index];
sys/cpu/x86_64/misc/db_disasm.c
1053
if (addrp->disp != 0 || (addrp->base == NULL && addrp->index == NULL))
sys/cpu/x86_64/misc/db_disasm.c
1055
if (addrp->base != NULL || addrp->index != NULL) {
sys/cpu/x86_64/misc/db_disasm.c
1059
if (addrp->index)
sys/cpu/x86_64/misc/db_disasm.c
1060
db_printf(",%s,%d", addrp->index, 1<<addrp->ss);
sys/cpu/x86_64/misc/db_disasm.c
919
const char * index;
sys/cpu/x86_64/misc/db_disasm.c
981
int mod, rm, sib, index, disp, size, have_sib;
sys/cpu/x86_64/misc/db_disasm.c
992
addrp->index = NULL;
sys/ddb/db_input.c
249
db_le = index(db_lbuf_start, '\0');
sys/dev/acpica/acpi.c
1002
acpi_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/acpica/acpi.c
1011
switch(index) {
sys/dev/acpica/acpi.c
1028
panic("bad ivar write request (%d)", index);
sys/dev/acpica/acpi.c
113
static int acpi_read_ivar(device_t dev, device_t child, int index,
sys/dev/acpica/acpi.c
115
static int acpi_write_ivar(device_t dev, device_t child, int index,
sys/dev/acpica/acpi.c
2259
acpi_FindIndexedResource(ACPI_BUFFER *buf, int index, ACPI_RESOURCE **resp)
sys/dev/acpica/acpi.c
2265
i = index;
sys/dev/acpica/acpi.c
960
acpi_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/acpica/acpi.c
970
switch(index) {
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
267
acpi_panasonic_sinf(ACPI_HANDLE h, UINT64 index)
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
280
ret = res->Package.Elements[index].Integer.Value;
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
287
acpi_panasonic_sset(ACPI_HANDLE h, UINT64 index, UINT64 val)
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
294
obj[0].Integer.Value = index;
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
83
static UINT64 acpi_panasonic_sinf(ACPI_HANDLE h, UINT64 index);
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
84
static void acpi_panasonic_sset(ACPI_HANDLE h, UINT64 index, UINT64 val);
sys/dev/acpica/acpi_pci_link.c
1045
acpi_pci_link_route_interrupt(device_t dev, int index)
sys/dev/acpica/acpi_pci_link.c
1053
link = acpi_pci_link_lookup(dev, index);
sys/dev/acpica/acpi_pci_link.c
1055
panic("%s: apparently invalid index %d", __func__, index);
sys/dev/acpica/acpi_pci_link.c
633
acpi_pci_link_add_reference(device_t dev, int index, device_t pcib, int slot,
sys/dev/acpica/acpi_pci_link.c
653
link = acpi_pci_link_lookup(dev, index);
sys/dev/acpica/acpi_pci_link.c
655
device_printf(dev, "apparently invalid index %d\n", index);
sys/dev/acpica/acpi_pcibvar.h
34
void acpi_pci_link_add_reference(device_t dev, int index, device_t pcib,
sys/dev/acpica/acpi_pcibvar.h
36
int acpi_pci_link_route_interrupt(device_t dev, int index);
sys/dev/acpica/acpivar.h
365
ACPI_STATUS acpi_FindIndexedResource(ACPI_BUFFER *buf, int index,
sys/dev/agp/intel-gtt.c
1003
bus_write_4(sc->sc_res[0], index * 4, pte);
sys/dev/agp/intel-gtt.c
1007
agp_i965_install_gtt_pte(device_t dev, u_int index, vm_offset_t physical,
sys/dev/agp/intel-gtt.c
101
static void agp_g4x_install_gtt_pte(device_t dev, u_int index,
sys/dev/agp/intel-gtt.c
1017
agp_i965_write_gtt(dev, index, pte);
sys/dev/agp/intel-gtt.c
1021
agp_i965_write_gtt(device_t dev, u_int index, uint32_t pte)
sys/dev/agp/intel-gtt.c
1026
bus_write_4(sc->sc_res[0], index * 4 + (512 * 1024), pte);
sys/dev/agp/intel-gtt.c
1030
agp_g4x_install_gtt_pte(device_t dev, u_int index, vm_offset_t physical,
sys/dev/agp/intel-gtt.c
104
static void agp_i915_write_gtt(device_t dev, u_int index, uint32_t pte);
sys/dev/agp/intel-gtt.c
1040
agp_g4x_write_gtt(dev, index, pte);
sys/dev/agp/intel-gtt.c
1044
agp_g4x_write_gtt(device_t dev, u_int index, uint32_t pte)
sys/dev/agp/intel-gtt.c
1049
bus_write_4(sc->sc_res[0], index * 4 + (2 * 1024 * 1024), pte);
sys/dev/agp/intel-gtt.c
105
static void agp_i965_write_gtt(device_t dev, u_int index, uint32_t pte);
sys/dev/agp/intel-gtt.c
1056
u_int index;
sys/dev/agp/intel-gtt.c
106
static void agp_g4x_write_gtt(device_t dev, u_int index, uint32_t pte);
sys/dev/agp/intel-gtt.c
1064
index = offset >> AGP_PAGE_SHIFT;
sys/dev/agp/intel-gtt.c
1065
if (sc->stolen != 0 && index < sc->stolen) {
sys/dev/agp/intel-gtt.c
1069
sc->match->driver->install_gtt_pte(dev, index, physical, 0);
sys/dev/agp/intel-gtt.c
1077
u_int index;
sys/dev/agp/intel-gtt.c
108
static void agp_i915_sync_gtt_pte(device_t dev, u_int index);
sys/dev/agp/intel-gtt.c
1082
index = offset >> AGP_PAGE_SHIFT;
sys/dev/agp/intel-gtt.c
1083
if (sc->stolen != 0 && index < sc->stolen) {
sys/dev/agp/intel-gtt.c
1087
sc->match->driver->install_gtt_pte(dev, index, 0, 0);
sys/dev/agp/intel-gtt.c
109
static void agp_i965_sync_gtt_pte(device_t dev, u_int index);
sys/dev/agp/intel-gtt.c
1092
agp_i915_sync_gtt_pte(device_t dev, u_int index)
sys/dev/agp/intel-gtt.c
1097
bus_read_4(sc->sc_res[1], index * 4);
sys/dev/agp/intel-gtt.c
110
static void agp_g4x_sync_gtt_pte(device_t dev, u_int index);
sys/dev/agp/intel-gtt.c
1101
agp_i965_sync_gtt_pte(device_t dev, u_int index)
sys/dev/agp/intel-gtt.c
1106
bus_read_4(sc->sc_res[0], index * 4 + (512 * 1024));
sys/dev/agp/intel-gtt.c
1110
agp_g4x_sync_gtt_pte(device_t dev, u_int index)
sys/dev/agp/intel-gtt.c
1115
bus_read_4(sc->sc_res[0], index * 4 + (2 * 1024 * 1024));
sys/dev/agp/intel-gtt.c
97
static void agp_i915_install_gtt_pte(device_t dev, u_int index,
sys/dev/agp/intel-gtt.c
985
agp_i915_install_gtt_pte(device_t dev, u_int index, vm_offset_t physical,
sys/dev/agp/intel-gtt.c
99
static void agp_i965_install_gtt_pte(device_t dev, u_int index,
sys/dev/agp/intel-gtt.c
994
agp_i915_write_gtt(dev, index, pte);
sys/dev/agp/intel-gtt.c
998
agp_i915_write_gtt(device_t dev, u_int index, uint32_t pte)
sys/dev/apple/ir/appleir.c
195
int index;
sys/dev/apple/ir/appleir.c
226
index = sc->sc_prev_key_idx;
sys/dev/apple/ir/appleir.c
237
index = (report[4] >> 1) & APPLEIR_KEY_MASK;
sys/dev/apple/ir/appleir.c
240
new_key = (index < (int)APPLEIR_NKEYS) ?
sys/dev/apple/ir/appleir.c
241
apple_ir_keymap[index] : KEY_RESERVED;
sys/dev/apple/smc/smc_io.c
186
apple_smc_key_dump_by_index(device_t dev, int index, char *key_out,
sys/dev/apple/smc/smc_io.c
197
error = apple_smc_mmio_key_getbyindex(dev, index, key_out);
sys/dev/apple/smc/smc_io.c
206
index_buf[0] = (index >> 24) & 0xff;
sys/dev/apple/smc/smc_io.c
207
index_buf[1] = (index >> 16) & 0xff;
sys/dev/apple/smc/smc_io.c
208
index_buf[2] = (index >> 8) & 0xff;
sys/dev/apple/smc/smc_io.c
209
index_buf[3] = index & 0xff;
sys/dev/apple/smc/smc_mmio.c
158
apple_smc_mmio_key_getbyindex(device_t dev, int index, char *key)
sys/dev/apple/smc/smc_mmio.c
168
idx_val = htobe32(index);
sys/dev/disk/amd/amd.c
1407
int index;
sys/dev/disk/amd/amd.c
1410
index = 0;
sys/dev/disk/amd/amd.c
1412
while (index < amd->msgout_len) {
sys/dev/disk/amd/amd.c
1413
if ((amd->msgout_buf[index] & MSG_IDENTIFYFLAG) != 0
sys/dev/disk/amd/amd.c
1414
|| amd->msgout_buf[index] == MSG_MESSAGE_REJECT)
sys/dev/disk/amd/amd.c
1415
index++;
sys/dev/disk/amd/amd.c
1416
else if (amd->msgout_buf[index] >= MSG_SIMPLE_Q_TAG
sys/dev/disk/amd/amd.c
1417
&& amd->msgout_buf[index] < MSG_IGN_WIDE_RESIDUE) {
sys/dev/disk/amd/amd.c
1419
index += 2;
sys/dev/disk/amd/amd.c
1420
} else if (amd->msgout_buf[index] == MSG_EXTENDED) {
sys/dev/disk/amd/amd.c
1422
if (amd->msgout_buf[index+2] == msgtype) {
sys/dev/disk/amd/amd.c
1425
end_index = index + 1
sys/dev/disk/amd/amd.c
1426
+ amd->msgout_buf[index + 1];
sys/dev/disk/amd/amd.c
1430
} else if (amd->msgout_index > index)
sys/dev/disk/buslogic/bt.c
113
u_int index;
sys/dev/disk/buslogic/bt.c
115
index = (u_int)(bccb - bt->bt_ccb_array);
sys/dev/disk/buslogic/bt.c
117
+ (index * sizeof(struct scsi_sense_data)));
sys/dev/disk/buslogic/bt.c
123
u_int index;
sys/dev/disk/buslogic/bt.c
125
index = (u_int)(bccb - bt->bt_ccb_array);
sys/dev/disk/buslogic/bt.c
126
return (bt->sense_buffers + index);
sys/dev/disk/mpt/mpt.c
1200
if (req == NULL || req != &mpt->request_pool[req->index]) {
sys/dev/disk/mpt/mpt.c
1263
KASSERT(req == &mpt->request_pool[req->index],
sys/dev/disk/mpt/mpt.c
1267
req, req->serno, req->state, req->index,
sys/dev/disk/mpt/mpt.c
1614
cfgp->MsgContext = htole32(req->index | MPT_REPLY_HANDLER_CONFIG);
sys/dev/disk/mpt/mpt.c
2077
enable_req->MsgContext = htole32(req->index | MPT_REPLY_HANDLER_CONFIG);
sys/dev/disk/mpt/mpt.c
2112
enable_req->MsgContext = htole32(req->index | MPT_REPLY_HANDLER_EVENTS);
sys/dev/disk/mpt/mpt.c
2577
req->index = i++;
sys/dev/disk/mpt/mpt.c
583
context = req->index | MPT_REPLY_HANDLER_EVENTS;
sys/dev/disk/mpt/mpt.c
788
req->index | mpt->scsi_tgt_handler_id;
sys/dev/disk/mpt/mpt.h
295
uint16_t index; /* Index of this entry */
sys/dev/disk/mpt/mpt.h
355
((ioindex << 18) | (((mpt->sequence++) & 0x3f) << 12) | (req->index & 0xfff))
sys/dev/disk/mpt/mpt_cam.c
2126
mpt_req->MsgContext = htole32(req->index | scsi_io_handler_id);
sys/dev/disk/mpt/mpt_cam.c
2346
fc->MsgContext = htole32(req->index | fc_els_handler_id);
sys/dev/disk/mpt/mpt_cam.c
2794
rsp->MsgContext = htole32(req->index | fc_els_handler_id);
sys/dev/disk/mpt/mpt_cam.c
3957
htole32(mpt->tmf_req->index | scsi_tmf_handler_id);
sys/dev/disk/mpt/mpt_cam.c
4073
htole32(req->index | scsi_io_handler_id), TRUE);
sys/dev/disk/mpt/mpt_cam.c
4136
fc->MsgContext = htole32(req->index | fc_els_handler_id);
sys/dev/disk/mpt/mpt_cam.c
4164
req->index, ioindex, req, req->serno);
sys/dev/disk/mpt/mpt_cam.c
4185
fc->MsgContext = htole32(req->index | mpt->scsi_tgt_handler_id);
sys/dev/disk/mpt/mpt_cam.c
4426
ta->MsgContext = htole32(req->index | mpt->scsi_tgt_handler_id);
sys/dev/disk/mpt/mpt_cam.c
4574
ta->MsgContext = htole32(req->index | mpt->scsi_tgt_handler_id);
sys/dev/disk/mpt/mpt_cam.c
4678
abtp->MsgContext = htole32(req->index | mpt->scsi_tgt_handler_id);
sys/dev/disk/mpt/mpt_cam.c
4823
tp->MsgContext = htole32(req->index | mpt->scsi_tgt_handler_id);
sys/dev/disk/mpt/mpt_cam.c
5192
req->index, req->index, req->state);
sys/dev/disk/mpt/mpt_cam.c
816
pass->MsgContext = htole32(req->index | sata_pass_handler_id);
sys/dev/disk/mpt/mpt_debug.c
844
req->index, (uintmax_t) req->req_pbuf);
sys/dev/disk/mpt/mpt_raid.c
616
rap->MsgContext = htole32(req->index | raid_handler_id);
sys/dev/disk/mpt/mpt_user.c
550
rap->MsgContext = htole32(req->index | user_handler_id);
sys/dev/disk/nata/ata-disk.c
511
if ((marker = index(atadev->param.model, ' ')) ||
sys/dev/disk/nata/ata-disk.c
512
(marker = index(atadev->param.model, '-'))) {
sys/dev/disk/nata/ata-pci.c
640
ata_match_chip(device_t dev, const struct ata_chip_id *index)
sys/dev/disk/nata/ata-pci.c
642
while (index->chipid != 0) {
sys/dev/disk/nata/ata-pci.c
643
if (pci_get_devid(dev) == index->chipid &&
sys/dev/disk/nata/ata-pci.c
644
pci_get_revid(dev) >= index->chiprev)
sys/dev/disk/nata/ata-pci.c
645
return index;
sys/dev/disk/nata/ata-pci.c
646
index++;
sys/dev/disk/nata/ata-pci.c
652
ata_find_chip(device_t dev, const struct ata_chip_id *index, int slot)
sys/dev/disk/nata/ata-pci.c
660
while (index->chipid != 0) {
sys/dev/disk/nata/ata-pci.c
664
pci_get_devid(children[i]) == index->chipid &&
sys/dev/disk/nata/ata-pci.c
665
pci_get_revid(children[i]) >= index->chiprev) {
sys/dev/disk/nata/ata-pci.c
667
return index;
sys/dev/disk/nata/ata-pci.c
670
index++;
sys/dev/disk/nata/ata-pci.h
506
const struct ata_chip_id *ata_match_chip(device_t dev, const struct ata_chip_id *index);
sys/dev/disk/nata/ata-pci.h
507
const struct ata_chip_id *ata_find_chip(device_t dev, const struct ata_chip_id *index, int slot);
sys/dev/disk/nata/ata-queue.c
493
int index = 0;
sys/dev/disk/nata/ata-queue.c
507
index = composite->wr_needed & ~composite->wr_done;
sys/dev/disk/nata/ata-queue.c
513
if (index) {
sys/dev/disk/nata/ata-queue.c
517
if (index & (1 << bit))
sys/dev/drm/amd/amdgpu/amdgpu.h
1076
u32 amdgpu_mm_rdoorbell(struct amdgpu_device *adev, u32 index);
sys/dev/drm/amd/amdgpu/amdgpu.h
1077
void amdgpu_mm_wdoorbell(struct amdgpu_device *adev, u32 index, u32 v);
sys/dev/drm/amd/amdgpu/amdgpu.h
1078
u64 amdgpu_mm_rdoorbell64(struct amdgpu_device *adev, u32 index);
sys/dev/drm/amd/amdgpu/amdgpu.h
1079
void amdgpu_mm_wdoorbell64(struct amdgpu_device *adev, u32 index, u64 v);
sys/dev/drm/amd/amdgpu/amdgpu.h
1142
#define RDOORBELL32(index) amdgpu_mm_rdoorbell(adev, (index))
sys/dev/drm/amd/amdgpu/amdgpu.h
1143
#define WDOORBELL32(index, v) amdgpu_mm_wdoorbell(adev, (index), (v))
sys/dev/drm/amd/amdgpu/amdgpu.h
1144
#define RDOORBELL64(index) amdgpu_mm_rdoorbell64(adev, (index))
sys/dev/drm/amd/amdgpu/amdgpu.h
1145
#define WDOORBELL64(index, v) amdgpu_mm_wdoorbell64(adev, (index), (v))
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd.c
137
.drm_render_minor = adev->ddev->render->index
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1019
int index = GetIndexIntoMasterTable(COMMAND, ComputeMemoryEnginePLL);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1025
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
103
if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1037
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1057
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1075
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1086
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1108
int index = GetIndexIntoMasterTable(COMMAND, ComputeMemoryClockParam);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1114
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1127
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1157
int index = GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1169
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1176
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1185
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1209
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1212
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1223
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1232
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1255
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1258
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1268
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1285
int index = GetIndexIntoMasterTable(DATA, ASIC_ProfilingInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1295
if (!amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
131
int index = GetIndexIntoMasterTable(DATA, GPIO_I2C_Info);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
137
if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1375
int index = GetIndexIntoMasterTable(COMMAND, GetVoltageInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1395
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1436
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1442
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1480
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1485
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1516
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1523
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1587
int index = GetIndexIntoMasterTable(DATA, VRAM_Info);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1595
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
165
int index = GetIndexIntoMasterTable(DATA, GPIO_Pin_LUT);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1676
int index = GetIndexIntoMasterTable(DATA, GPUVirtualizationInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1680
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
174
if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1784
int index = GetIndexIntoMasterTable(DATA, VRAM_UsageByFirmware);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
1791
if (amdgpu_atom_parse_data_header(ctx, index, NULL, NULL, NULL, &data_offset)) {
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
268
int index = GetIndexIntoMasterTable(DATA, Object_Header);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
274
if (!amdgpu_atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset))
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
295
int index = GetIndexIntoMasterTable(DATA, Object_Header);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
311
if (!amdgpu_atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset))
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
41
u8 index)
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
577
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
582
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
731
int index = GetIndexIntoMasterTable(DATA, GFX_Info);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
736
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
770
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
776
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
797
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
804
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
901
int index = GetIndexIntoMasterTable(DATA, ASIC_InternalSS_Info);
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
918
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atombios.c
95
int index = GetIndexIntoMasterTable(DATA, GPIO_I2C_Info);
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
131
int index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
138
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
199
int index;
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
207
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
210
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
213
index, &size,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
256
int ret = -EINVAL, index;
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
258
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
260
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
281
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
283
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
304
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
306
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
337
int index;
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
341
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
343
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
35
int index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
39
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
54
int index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
58
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
72
int index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/drm/amd/amdgpu/amdgpu_atomfirmware.c
79
if (amdgpu_atom_parse_data_header(ctx, index, NULL, NULL, NULL, &data_offset)) {
sys/dev/drm/amd/amdgpu/amdgpu_bo_list.h
67
amdgpu_bo_list_array_entry(struct amdgpu_bo_list *list, unsigned index)
sys/dev/drm/amd/amdgpu/amdgpu_bo_list.h
71
return &array[index];
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
101
return WREG32_GC_CAC(index, value);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
103
return WREG32_SE_CAC(index, value);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
58
unsigned index)
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
63
return RREG32_IDX(index);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
65
return RREG32_PCIE(index);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
67
return RREG32_SMC(index);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
69
return RREG32_UVD_CTX(index);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
71
return RREG32_DIDT(index);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
73
return RREG32_GC_CAC(index);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
75
return RREG32_SE_CAC(index);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
86
unsigned index, uint32_t value)
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
91
return WREG32_IDX(index, value);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
93
return WREG32_PCIE(index, value);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
95
return WREG32_SMC(index, value);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
97
return WREG32_UVD_CTX(index, value);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
99
return WREG32_DIDT(index, value);
sys/dev/drm/amd/amdgpu/amdgpu_device.c
283
u32 amdgpu_mm_rdoorbell(struct amdgpu_device *adev, u32 index)
sys/dev/drm/amd/amdgpu/amdgpu_device.c
285
if (index < adev->doorbell.num_doorbells) {
sys/dev/drm/amd/amdgpu/amdgpu_device.c
286
return readl(adev->doorbell.ptr + index);
sys/dev/drm/amd/amdgpu/amdgpu_device.c
288
DRM_ERROR("reading beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/drm/amd/amdgpu/amdgpu_device.c
303
void amdgpu_mm_wdoorbell(struct amdgpu_device *adev, u32 index, u32 v)
sys/dev/drm/amd/amdgpu/amdgpu_device.c
305
if (index < adev->doorbell.num_doorbells) {
sys/dev/drm/amd/amdgpu/amdgpu_device.c
306
writel(v, adev->doorbell.ptr + index);
sys/dev/drm/amd/amdgpu/amdgpu_device.c
308
DRM_ERROR("writing beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/drm/amd/amdgpu/amdgpu_device.c
321
u64 amdgpu_mm_rdoorbell64(struct amdgpu_device *adev, u32 index)
sys/dev/drm/amd/amdgpu/amdgpu_device.c
323
if (index < adev->doorbell.num_doorbells) {
sys/dev/drm/amd/amdgpu/amdgpu_device.c
324
return atomic64_read((atomic64_t *)(adev->doorbell.ptr + index));
sys/dev/drm/amd/amdgpu/amdgpu_device.c
326
DRM_ERROR("reading beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/drm/amd/amdgpu/amdgpu_device.c
341
void amdgpu_mm_wdoorbell64(struct amdgpu_device *adev, u32 index, u64 v)
sys/dev/drm/amd/amdgpu/amdgpu_device.c
343
if (index < adev->doorbell.num_doorbells) {
sys/dev/drm/amd/amdgpu/amdgpu_device.c
344
atomic64_set((atomic64_t *)(adev->doorbell.ptr + index), v);
sys/dev/drm/amd/amdgpu/amdgpu_device.c
346
DRM_ERROR("writing beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/drm/amd/amdgpu/amdgpu_dpm.c
311
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/amd/amdgpu/amdgpu_dpm.c
315
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_dpm.c
343
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/amd/amdgpu/amdgpu_dpm.c
348
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_dpm.c
821
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/amd/amdgpu/amdgpu_dpm.c
827
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/amdgpu_fence.c
383
uint64_t index;
sys/dev/drm/amd/amdgpu/amdgpu_fence.c
390
index = ALIGN(adev->uvd.fw->datasize, 8);
sys/dev/drm/amd/amdgpu/amdgpu_fence.c
391
ring->fence_drv.cpu_addr = adev->uvd.inst[ring->me].cpu_addr + index;
sys/dev/drm/amd/amdgpu/amdgpu_fence.c
392
ring->fence_drv.gpu_addr = adev->uvd.inst[ring->me].gpu_addr + index;
sys/dev/drm/amd/amdgpu/amdgpu_kms.c
1314
query_fw.index = 0;
sys/dev/drm/amd/amdgpu/amdgpu_kms.c
1324
query_fw.index = 1;
sys/dev/drm/amd/amdgpu/amdgpu_kms.c
1360
query_fw.index = i;
sys/dev/drm/amd/amdgpu/amdgpu_kms.c
301
if (query_fw->index == 0) {
sys/dev/drm/amd/amdgpu/amdgpu_kms.c
304
} else if (query_fw->index == 1) {
sys/dev/drm/amd/amdgpu/amdgpu_kms.c
315
if (query_fw->index >= adev->sdma.num_instances)
sys/dev/drm/amd/amdgpu/amdgpu_kms.c
317
fw_info->ver = adev->sdma.instance[query_fw->index].fw_version;
sys/dev/drm/amd/amdgpu/amdgpu_kms.c
318
fw_info->feature = adev->sdma.instance[query_fw->index].feature_version;
sys/dev/drm/amd/amdgpu/amdgpu_pm.c
1066
int hyst = to_sensor_dev_attr(attr)->index;
sys/dev/drm/amd/amdgpu/amdgpu_pm.c
1634
struct attribute *attr, int index)
sys/dev/drm/amd/amdgpu/amdgpu_psp.c
122
int index)
sys/dev/drm/amd/amdgpu/amdgpu_psp.c
131
fence_mc_addr, index);
sys/dev/drm/amd/amdgpu/amdgpu_psp.c
133
while (*((unsigned int *)psp->fence_buf) != index) {
sys/dev/drm/amd/amdgpu/amdgpu_psp.h
166
#define psp_cmd_submit(psp, ucode, cmd_mc, fence_mc, index) \
sys/dev/drm/amd/amdgpu/amdgpu_psp.h
167
(psp)->funcs->cmd_submit((psp), (ucode), (cmd_mc), (fence_mc), (index))
sys/dev/drm/amd/amdgpu/amdgpu_psp.h
77
int index);
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
576
int lo, int hi, unsigned size, int32_t index)
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
578
int64_t offset = ((uint64_t)size) * ((int64_t)index);
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
588
if (index >= 0) {
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
600
addr, lo, hi, size, index);
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
624
int lo, int hi, unsigned size, uint32_t index)
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
631
if (index == 0xffffffff)
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
632
index = 0;
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
636
addr += ((uint64_t)size) * ((uint64_t)index);
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
641
addr, lo, hi, size, index);
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
654
addr -= ((uint64_t)size) * ((uint64_t)index);
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
33
int index;
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
42
index = adev->virt.vf_errors.write_count % AMDGPU_VF_ERROR_ENTRY_SIZE;
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
43
adev->virt.vf_errors.code [index] = error_code;
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
44
adev->virt.vf_errors.flags [index] = error_flags;
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
45
adev->virt.vf_errors.data [index] = error_data;
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
55
int index;
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
76
index =adev->virt.vf_errors.read_count % AMDGPU_VF_ERROR_ENTRY_SIZE;
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
77
data1 = AMDGIM_ERROR_CODE_FLAGS_TO_MAILBOX(adev->virt.vf_errors.code[index],
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
78
adev->virt.vf_errors.flags[index]);
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
79
data2 = adev->virt.vf_errors.data[index] & 0xFFFFFFFF;
sys/dev/drm/amd/amdgpu/amdgpu_vf_error.c
80
data3 = (adev->virt.vf_errors.data[index] >> 32) & 0xFFFFFFFF;
sys/dev/drm/amd/amdgpu/atom.c
102
uint32_t index, uint32_t data)
sys/dev/drm/amd/amdgpu/atom.c
1198
static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params)
sys/dev/drm/amd/amdgpu/atom.c
1200
int base = CU16(ctx->cmd_table + 4 + 2 * index);
sys/dev/drm/amd/amdgpu/atom.c
1259
int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t * params)
sys/dev/drm/amd/amdgpu/atom.c
1275
r = amdgpu_atom_execute_table_locked(ctx, index, params);
sys/dev/drm/amd/amdgpu/atom.c
136
((index >> CU8(base + 2)) &
sys/dev/drm/amd/amdgpu/atom.c
1384
bool amdgpu_atom_parse_data_header(struct atom_context *ctx, int index,
sys/dev/drm/amd/amdgpu/atom.c
1388
int offset = index * 2 + 4;
sys/dev/drm/amd/amdgpu/atom.c
1392
if (!mdt[index])
sys/dev/drm/amd/amdgpu/atom.c
1405
bool amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t * frev,
sys/dev/drm/amd/amdgpu/atom.c
1408
int offset = index * 2 + 4;
sys/dev/drm/amd/amdgpu/atom.c
1412
if (!mct[index])
sys/dev/drm/amd/amdgpu/atom.c
66
static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params);
sys/dev/drm/amd/amdgpu/atom.h
152
bool amdgpu_atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size,
sys/dev/drm/amd/amdgpu/atom.h
154
bool amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index,
sys/dev/drm/amd/amdgpu/atombios_crtc.c
110
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
118
int index =
sys/dev/drm/amd/amdgpu/atombios_crtc.c
127
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
135
int index = GetIndexIntoMasterTable(COMMAND, EnableCRTC);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
143
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
151
int index = GetIndexIntoMasterTable(COMMAND, BlankCRTC);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
159
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
167
int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
175
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
180
int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
187
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
197
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_UsingDTDTiming);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
232
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
248
int index = GetIndexIntoMasterTable(COMMAND, EnableSpreadSpectrumOnPPLL);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
297
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
322
int index;
sys/dev/drm/amd/amdgpu/atombios_crtc.c
379
index = GetIndexIntoMasterTable(COMMAND, AdjustDisplayPll);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
380
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev,
sys/dev/drm/amd/amdgpu/atombios_crtc.c
399
index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
432
index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
47
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_OverScan);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
475
int index;
sys/dev/drm/amd/amdgpu/atombios_crtc.c
480
index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
481
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev,
sys/dev/drm/amd/amdgpu/atombios_crtc.c
518
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
530
int index;
sys/dev/drm/amd/amdgpu/atombios_crtc.c
536
index = GetIndexIntoMasterTable(COMMAND, SetDCEClock);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
537
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev,
sys/dev/drm/amd/amdgpu/atombios_crtc.c
548
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
593
int index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
598
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev,
sys/dev/drm/amd/amdgpu/atombios_crtc.c
744
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
81
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_crtc.c
90
int index = GetIndexIntoMasterTable(COMMAND, EnableScaler);
sys/dev/drm/amd/amdgpu/atombios_dp.c
298
int index = GetIndexIntoMasterTable(COMMAND, DPEncoderService);
sys/dev/drm/amd/amdgpu/atombios_dp.c
307
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_dp.c
65
int index = GetIndexIntoMasterTable(COMMAND, ProcessAuxChannelTransaction);
sys/dev/drm/amd/amdgpu/atombios_dp.c
85
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1242
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1253
int index = GetIndexIntoMasterTable(COMMAND, UNIPHYTransmitterControl);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1263
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1270
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1303
int index = GetIndexIntoMasterTable(COMMAND, ExternalEncoderControl);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1328
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1394
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1543
int index = GetIndexIntoMasterTable(COMMAND, SelectCRTC_Source);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1549
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1739
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1782
int index = GetIndexIntoMasterTable(COMMAND, DAC_LoadDetection);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1787
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/atombios_encoders.c
1812
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
2074
int index = GetIndexIntoMasterTable(DATA, LVDS_Info);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
2081
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/atombios_encoders.c
244
"amdgpu_bl%d", dev->primary->index);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
395
int index = 0;
sys/dev/drm/amd/amdgpu/atombios_encoders.c
402
index = GetIndexIntoMasterTable(COMMAND, DAC1EncoderControl);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
406
index = GetIndexIntoMasterTable(COMMAND, DAC2EncoderControl);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
414
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
458
int index = GetIndexIntoMasterTable(COMMAND, DVOEncoderControl);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
463
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/atombios_encoders.c
511
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
651
int index = GetIndexIntoMasterTable(COMMAND, DIGxEncoderControl);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
673
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/atombios_encoders.c
817
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
840
int index = 0;
sys/dev/drm/amd/amdgpu/atombios_encoders.c
888
index = GetIndexIntoMasterTable(COMMAND, DVOOutputControl);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
894
index = GetIndexIntoMasterTable(COMMAND, UNIPHYTransmitterControl);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
897
index = GetIndexIntoMasterTable(COMMAND, LVTMATransmitterControl);
sys/dev/drm/amd/amdgpu/atombios_encoders.c
901
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/amd/amdgpu/atombios_i2c.c
170
int index = GetIndexIntoMasterTable(COMMAND, ProcessI2cChannelTransaction);
sys/dev/drm/amd/amdgpu/atombios_i2c.c
180
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/atombios_i2c.c
45
int index = GetIndexIntoMasterTable(COMMAND, ProcessI2cChannelTransaction);
sys/dev/drm/amd/amdgpu/atombios_i2c.c
94
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/amd/amdgpu/ci_dpm.c
3527
u32 index, u32 pcie_gen, u32 pcie_lanes)
sys/dev/drm/amd/amdgpu/ci_dpm.c
3529
dpm_table->dpm_levels[index].value = pcie_gen;
sys/dev/drm/amd/amdgpu/ci_dpm.c
3530
dpm_table->dpm_levels[index].param1 = pcie_lanes;
sys/dev/drm/amd/amdgpu/ci_dpm.c
3531
dpm_table->dpm_levels[index].enabled = true;
sys/dev/drm/amd/amdgpu/ci_dpm.c
5580
struct amdgpu_ps *rps, int index,
sys/dev/drm/amd/amdgpu/ci_dpm.c
5585
struct ci_pl *pl = &ps->performance_levels[index];
sys/dev/drm/amd/amdgpu/ci_dpm.c
5587
ps->performance_level_count = index + 1;
sys/dev/drm/amd/amdgpu/ci_dpm.c
5659
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/amd/amdgpu/ci_dpm.c
5665
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/ci_dpm.c
5744
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/drm/amd/amdgpu/ci_dpm.c
5749
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/ci_dpm.c
5835
int index = GetIndexIntoMasterTable(DATA, ASIC_InternalSS_Info);
sys/dev/drm/amd/amdgpu/ci_dpm.c
6052
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/drm/amd/amdgpu/cik_sdma.c
615
unsigned index;
sys/dev/drm/amd/amdgpu/cik_sdma.c
620
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/cik_sdma.c
626
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/cik_sdma.c
628
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/drm/amd/amdgpu/cik_sdma.c
633
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/cik_sdma.c
644
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/drm/amd/amdgpu/cik_sdma.c
657
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/cik_sdma.c
675
unsigned index;
sys/dev/drm/amd/amdgpu/cik_sdma.c
680
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/cik_sdma.c
686
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/cik_sdma.c
688
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/drm/amd/amdgpu/cik_sdma.c
716
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/drm/amd/amdgpu/cik_sdma.c
729
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/dce_v10_0.c
2665
static int dce_v10_0_crtc_init(struct amdgpu_device *adev, int index)
sys/dev/drm/amd/amdgpu/dce_v10_0.c
2677
amdgpu_crtc->crtc_id = index;
sys/dev/drm/amd/amdgpu/dce_v10_0.c
2678
adev->mode_info.crtcs[index] = amdgpu_crtc;
sys/dev/drm/amd/amdgpu/dce_v11_0.c
2773
static int dce_v11_0_crtc_init(struct amdgpu_device *adev, int index)
sys/dev/drm/amd/amdgpu/dce_v11_0.c
2785
amdgpu_crtc->crtc_id = index;
sys/dev/drm/amd/amdgpu/dce_v11_0.c
2786
adev->mode_info.crtcs[index] = amdgpu_crtc;
sys/dev/drm/amd/amdgpu/dce_v8_0.c
2573
static int dce_v8_0_crtc_init(struct amdgpu_device *adev, int index)
sys/dev/drm/amd/amdgpu/dce_v8_0.c
2585
amdgpu_crtc->crtc_id = index;
sys/dev/drm/amd/amdgpu/dce_v8_0.c
2586
adev->mode_info.crtcs[index] = amdgpu_crtc;
sys/dev/drm/amd/amdgpu/dce_virtual.c
234
static int dce_virtual_crtc_init(struct amdgpu_device *adev, int index)
sys/dev/drm/amd/amdgpu/dce_virtual.c
246
amdgpu_crtc->crtc_id = index;
sys/dev/drm/amd/amdgpu/dce_virtual.c
247
adev->mode_info.crtcs[index] = amdgpu_crtc;
sys/dev/drm/amd/amdgpu/dce_virtual.c
47
int index);
sys/dev/drm/amd/amdgpu/dce_virtual.c
601
int index)
sys/dev/drm/amd/amdgpu/dce_virtual.c
610
encoder->possible_crtcs = 1 << index;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
883
unsigned int index;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
888
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
894
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
895
adev->wb.wb[index] = cpu_to_le32(0xCAFEDEAD);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
923
tmp = adev->wb.wb[index];
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
936
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
440
unsigned index;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
445
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
451
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
452
adev->wb.wb[index] = cpu_to_le32(0xCAFEDEAD);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
480
tmp = adev->wb.wb[index];
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
493
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/kv_dpm.c
2322
u32 index, bool enable)
sys/dev/drm/amd/amdgpu/kv_dpm.c
2326
pi->graphics_level[index].EnabledForThrottle = enable ? 1 : 0;
sys/dev/drm/amd/amdgpu/kv_dpm.c
2563
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/amd/amdgpu/kv_dpm.c
2569
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/kv_dpm.c
2681
struct amdgpu_ps *rps, int index,
sys/dev/drm/amd/amdgpu/kv_dpm.c
2686
struct kv_pl *pl = &ps->levels[index];
sys/dev/drm/amd/amdgpu/kv_dpm.c
2694
ps->num_levels = index + 1;
sys/dev/drm/amd/amdgpu/kv_dpm.c
2713
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/amd/amdgpu/kv_dpm.c
2719
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/kv_dpm.c
663
u32 index, u32 sclk)
sys/dev/drm/amd/amdgpu/kv_dpm.c
674
pi->graphics_level[index].SclkDid = (u8)dividers.post_div;
sys/dev/drm/amd/amdgpu/kv_dpm.c
675
pi->graphics_level[index].SclkFrequency = cpu_to_be32(sclk);
sys/dev/drm/amd/amdgpu/kv_dpm.c
698
static int kv_set_vid(struct amdgpu_device *adev, u32 index, u32 vid)
sys/dev/drm/amd/amdgpu/kv_dpm.c
702
pi->graphics_level[index].VoltageDownH = (u8)pi->voltage_drop_t;
sys/dev/drm/amd/amdgpu/kv_dpm.c
703
pi->graphics_level[index].MinVddNb =
sys/dev/drm/amd/amdgpu/kv_dpm.c
709
static int kv_set_at(struct amdgpu_device *adev, u32 index, u32 at)
sys/dev/drm/amd/amdgpu/kv_dpm.c
713
pi->graphics_level[index].AT = cpu_to_be16((u16)at);
sys/dev/drm/amd/amdgpu/kv_dpm.c
719
u32 index, bool enable)
sys/dev/drm/amd/amdgpu/kv_dpm.c
723
pi->graphics_level[index].EnabledForActivity = enable ? 1 : 0;
sys/dev/drm/amd/amdgpu/psp_v10_0.c
282
int index)
sys/dev/drm/amd/amdgpu/psp_v10_0.c
318
write_frame->fence_value = index;
sys/dev/drm/amd/amdgpu/psp_v11_0.c
345
int index)
sys/dev/drm/amd/amdgpu/psp_v11_0.c
383
write_frame->fence_value = index;
sys/dev/drm/amd/amdgpu/psp_v3_1.c
400
int index)
sys/dev/drm/amd/amdgpu/psp_v3_1.c
438
write_frame->fence_value = index;
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
547
unsigned index;
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
552
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
558
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
560
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
565
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
578
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
591
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
609
unsigned index;
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
614
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
620
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
622
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
654
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
667
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
819
unsigned index;
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
824
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
830
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
832
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
837
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
850
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
863
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
881
unsigned index;
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
886
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
892
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
894
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
926
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
938
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1002
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1004
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1009
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1022
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1035
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1053
unsigned index;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1058
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1064
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1066
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1098
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
1110
amdgpu_device_wb_free(adev, index);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
991
unsigned index;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
996
r = amdgpu_device_wb_get(adev, &index);
sys/dev/drm/amd/amdgpu/si_dpm.c
3710
u32 index, u16 *leakage_voltage)
sys/dev/drm/amd/amdgpu/si_dpm.c
3718
if ((index & 0xff00) != 0xff00)
sys/dev/drm/amd/amdgpu/si_dpm.c
3721
if ((index & 0xff) > SISLANDS_MAX_LEAKAGE_COUNT + 1)
sys/dev/drm/amd/amdgpu/si_dpm.c
3724
if (index < SISLANDS_LEAKAGE_INDEX0)
sys/dev/drm/amd/amdgpu/si_dpm.c
3728
if (si_pi->leakage_voltage.entries[i].leakage_index == index) {
sys/dev/drm/amd/amdgpu/si_dpm.c
4580
voltage->index = (u8)i;
sys/dev/drm/amd/amdgpu/si_dpm.c
4600
voltage->index = 0;
sys/dev/drm/amd/amdgpu/si_dpm.c
4602
voltage->index = (u8)(si_pi->mvdd_voltage_table.count) - 1;
sys/dev/drm/amd/amdgpu/si_dpm.c
4604
voltage->value = cpu_to_be16(si_pi->mvdd_voltage_table.entries[voltage->index].value);
sys/dev/drm/amd/amdgpu/si_dpm.c
4652
if ((u32)voltage->index < adev->pm.dpm.dyn_state.cac_leakage_table.count)
sys/dev/drm/amd/amdgpu/si_dpm.c
4653
*std_voltage = adev->pm.dpm.dyn_state.cac_leakage_table.entries[voltage->index].vddc;
sys/dev/drm/amd/amdgpu/si_dpm.c
4661
u16 value, u8 index,
sys/dev/drm/amd/amdgpu/si_dpm.c
4664
voltage->index = index;
sys/dev/drm/amd/amdgpu/si_dpm.c
4895
table->initialState.levels[0].vddc.index,
sys/dev/drm/amd/amdgpu/si_dpm.c
4984
table->ACPIState.levels[0].vddc.index,
sys/dev/drm/amd/amdgpu/si_dpm.c
5008
table->ACPIState.levels[0].vddc.index,
sys/dev/drm/amd/amdgpu/si_dpm.c
5518
level->vddc.index, &level->std_vddc);
sys/dev/drm/amd/amdgpu/si_dpm.c
7130
struct amdgpu_ps *rps, int index,
sys/dev/drm/amd/amdgpu/si_dpm.c
7138
struct rv7xx_pl *pl = &ps->performance_levels[index];
sys/dev/drm/amd/amdgpu/si_dpm.c
7141
ps->performance_level_count = index + 1;
sys/dev/drm/amd/amdgpu/si_dpm.c
7169
index == 0) {
sys/dev/drm/amd/amdgpu/si_dpm.c
7221
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/amd/amdgpu/si_dpm.c
7227
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/amd/amdgpu/si_dpm.h
410
uint8_t index;
sys/dev/drm/amd/amdgpu/si_dpm.h
741
uint8_t index;
sys/dev/drm/amd/amdgpu/sislands_smc.h
135
uint8_t index;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1718
dm->adev->ddev->primary->index);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
57
src_name, crtc->index);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
74
src_name, crtc->index);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
79
DRM_ERROR("No stream state for CRTC%d\n", crtc->index);
sys/dev/drm/amd/display/dc/basics/vector.c
157
uint32_t index)
sys/dev/drm/amd/display/dc/basics/vector.c
159
if (vector->container == NULL || index >= vector->count)
sys/dev/drm/amd/display/dc/basics/vector.c
161
return vector->container + (index * vector->struct_size);
sys/dev/drm/amd/display/dc/basics/vector.c
166
uint32_t index)
sys/dev/drm/amd/display/dc/basics/vector.c
168
if (index >= vector->count)
sys/dev/drm/amd/display/dc/basics/vector.c
171
if (index != vector->count - 1)
sys/dev/drm/amd/display/dc/basics/vector.c
173
vector->container + (index * vector->struct_size),
sys/dev/drm/amd/display/dc/basics/vector.c
174
vector->container + ((index + 1) * vector->struct_size),
sys/dev/drm/amd/display/dc/basics/vector.c
175
(vector->count - index - 1) * vector->struct_size);
sys/dev/drm/amd/display/dc/basics/vector.c
184
uint32_t index)
sys/dev/drm/amd/display/dc/basics/vector.c
186
void *where = dal_vector_at_index(vector, index);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
187
struct graphics_object_id object_id, uint32_t index,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
207
if (number <= index)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
210
*src_object_id = object_id_from_bios_object_id(id[index]);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
464
uint32_t index,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
474
uint32_t index;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
504
index = 0;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
511
ASIC_INTERNAL_MEMORY_SS, index, &internalSS) == BP_RESULT_OK) {
sys/dev/drm/amd/display/dc/bios/bios_parser.c
527
index = 1;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
534
ASIC_INTERNAL_ENGINE_SS, index, &internalSS) == BP_RESULT_OK) {
sys/dev/drm/amd/display/dc/bios/bios_parser.c
557
uint32_t index;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
589
index = 0;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
596
ASIC_INTERNAL_MEMORY_SS, index, &internal_ss) == BP_RESULT_OK) {
sys/dev/drm/amd/display/dc/bios/bios_parser.c
612
index = 1;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
619
ASIC_INTERNAL_ENGINE_SS, index, &internal_ss) == BP_RESULT_OK) {
sys/dev/drm/amd/display/dc/bios/bios_parser.c
648
uint32_t index,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
679
if (table_index != index) {
sys/dev/drm/amd/display/dc/bios/bios_parser.c
933
uint32_t index,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
948
if (!index)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
962
if (!index)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
974
return get_ss_info_v3_1(bp, clk_id_ss, index, ss_info);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
193
struct graphics_object_id object_id, uint32_t index,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
636
uint32_t index,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
701
uint32_t index,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
788
uint32_t index,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
810
return get_ss_info_v4_1(bp, signal, index, ss_info);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
812
return get_ss_info_v4_2(bp, signal, index, ss_info);
sys/dev/drm/amd/display/dc/bios/command_table.c
86
uint32_t index)
sys/dev/drm/amd/display/dc/bios/command_table.c
92
index,
sys/dev/drm/amd/display/dc/bios/command_table2.c
65
uint32_t index)
sys/dev/drm/amd/display/dc/bios/command_table2.c
71
index,
sys/dev/drm/amd/display/dc/core/dc_link_dp.c
304
uint32_t index)
sys/dev/drm/amd/display/dc/core/dc_link_dp.c
307
nibble = buf[index / 2];
sys/dev/drm/amd/display/dc/core/dc_link_dp.c
309
if (index % 2)
sys/dev/drm/amd/display/dc/dc_bios_types.h
49
struct graphics_object_id object_id, uint32_t index,
sys/dev/drm/amd/display/dc/dc_bios_types.h
70
uint32_t index,
sys/dev/drm/amd/display/dc/dc_helper.c
300
uint32_t index, uint32_t data);
sys/dev/drm/amd/display/dc/dc_helper.c
303
uint32_t index, uint32_t data)
sys/dev/drm/amd/display/dc/dc_helper.c
305
dm_write_reg(ctx, addr_index, index);
sys/dev/drm/amd/display/dc/dc_helper.c
311
uint32_t index);
sys/dev/drm/amd/display/dc/dc_helper.c
314
uint32_t index)
sys/dev/drm/amd/display/dc/dc_helper.c
318
dm_write_reg(ctx, addr_index, index);
sys/dev/drm/amd/display/dc/dc_helper.c
326
uint32_t index, uint32_t reg_val, int n,
sys/dev/drm/amd/display/dc/dc_helper.c
331
uint32_t index, uint32_t reg_val, int n,
sys/dev/drm/amd/display/dc/dc_helper.c
353
generic_write_indirect_reg(ctx, addr_index, addr_data, index, reg_val);
sys/dev/drm/amd/display/dc/dc_types.h
537
unsigned int index;
sys/dev/drm/amd/display/dc/dce/dce_audio.c
105
for (index = 0; index < audio_info->mode_count; index++) {
sys/dev/drm/amd/display/dc/dce/dce_audio.c
106
if (audio_info->modes[index].format_code == audio_format_code) {
sys/dev/drm/amd/display/dc/dce/dce_audio.c
110
if (audio_info->modes[index].channel_count >
sys/dev/drm/amd/display/dc/dce/dce_audio.c
112
max_channe_index = index;
sys/dev/drm/amd/display/dc/dce/dce_audio.c
117
max_channe_index = index;
sys/dev/drm/amd/display/dc/dce/dce_audio.c
410
uint32_t index;
sys/dev/drm/amd/display/dc/dce/dce_audio.c
507
audio_info, audio_format_code, &index)) {
sys/dev/drm/amd/display/dc/dce/dce_audio.c
509
&audio_info->modes[index];
sys/dev/drm/amd/display/dc/dce/dce_audio.c
97
uint32_t index;
sys/dev/drm/amd/display/dc/dce/dce_clock_source.h
60
#define CS_COMMON_REG_LIST_DCN1_0(index, pllid) \
sys/dev/drm/amd/display/dc/dce/dce_link_encoder.c
236
uint32_t index)
sys/dev/drm/amd/display/dc/dce/dce_link_encoder.c
241
REG_WRITE(DP_DPHY_TRAINING_PATTERN_SEL, index);
sys/dev/drm/amd/display/dc/dce/dce_link_encoder.h
260
uint32_t index);
sys/dev/drm/amd/display/dc/dce/dce_stream_encoder.c
1262
uint32_t index;
sys/dev/drm/amd/display/dc/dce/dce_stream_encoder.c
1286
for (index = 0; index < audio_array_size; index++) {
sys/dev/drm/amd/display/dc/dce/dce_stream_encoder.c
1287
if (clock_info[index].pixel_clock_in_10khz >
sys/dev/drm/amd/display/dc/dce/dce_stream_encoder.c
1290
else if (clock_info[index].pixel_clock_in_10khz ==
sys/dev/drm/amd/display/dc/dce/dce_stream_encoder.c
1293
*audio_clock_info = clock_info[index];
sys/dev/drm/amd/display/dc/dce110/dce110_compressor.c
493
unsigned int index = 0;
sys/dev/drm/amd/display/dc/dce110/dce110_compressor.c
497
index = 0;
sys/dev/drm/amd/display/dc/dce110/dce110_compressor.c
500
index = 1;
sys/dev/drm/amd/display/dc/dce110/dce110_compressor.c
503
index = 2;
sys/dev/drm/amd/display/dc/dce110/dce110_compressor.c
506
index = 3;
sys/dev/drm/amd/display/dc/dce110/dce110_compressor.c
511
return index;
sys/dev/drm/amd/display/dc/dce110/dce110_timing_generator.c
718
uint32_t index;
sys/dev/drm/amd/display/dc/dce110/dce110_timing_generator.c
827
for (index = 0; index < 6; index++) {
sys/dev/drm/amd/display/dc/dce110/dce110_timing_generator.c
831
dst_color[index] =
sys/dev/drm/amd/display/dc/dce110/dce110_timing_generator.c
832
src_color[index] >> (src_bpc - dst_bpc);
sys/dev/drm/amd/display/dc/dce110/dce110_timing_generator.c
839
dst_color[index] <<= (16 - dst_bpc);
sys/dev/drm/amd/display/dc/dce110/dce110_timing_generator.c
874
for (index = 0; index < 6; index++) {
sys/dev/drm/amd/display/dc/dce110/dce110_timing_generator.c
880
(1 << index),
sys/dev/drm/amd/display/dc/dce110/dce110_timing_generator.c
890
dst_color[index],
sys/dev/drm/amd/display/dc/dce112/dce112_resource.c
359
#define clk_src_regs(index, id)\
sys/dev/drm/amd/display/dc/dce112/dce112_resource.c
360
[index] = {\
sys/dev/drm/amd/display/dc/dce120/dce120_resource.c
344
#define clk_src_regs(index, id)\
sys/dev/drm/amd/display/dc/dce120/dce120_resource.c
345
[index] = {\
sys/dev/drm/amd/display/dc/dce120/dce120_timing_generator.c
1003
(1 << index),
sys/dev/drm/amd/display/dc/dce120/dce120_timing_generator.c
1013
dst_color[index],
sys/dev/drm/amd/display/dc/dce120/dce120_timing_generator.c
876
uint32_t index;
sys/dev/drm/amd/display/dc/dce120/dce120_timing_generator.c
953
for (index = 0; index < 6; index++) {
sys/dev/drm/amd/display/dc/dce120/dce120_timing_generator.c
957
dst_color[index] =
sys/dev/drm/amd/display/dc/dce120/dce120_timing_generator.c
958
src_color[index] >> (src_bpc - dst_bpc);
sys/dev/drm/amd/display/dc/dce120/dce120_timing_generator.c
965
dst_color[index] <<= (16 - dst_bpc);
sys/dev/drm/amd/display/dc/dce120/dce120_timing_generator.c
997
for (index = 0; index < 6; index++) {
sys/dev/drm/amd/display/dc/dcn10/dcn10_link_encoder.c
206
uint32_t index)
sys/dev/drm/amd/display/dc/dcn10/dcn10_link_encoder.c
211
REG_WRITE(DP_DPHY_TRAINING_PATTERN_SEL, index);
sys/dev/drm/amd/display/dc/dcn10/dcn10_link_encoder.h
325
uint32_t index);
sys/dev/drm/amd/display/dc/dcn10/dcn10_optc.c
1007
pattern_data = dst_color[index];
sys/dev/drm/amd/display/dc/dcn10/dcn10_optc.c
872
uint32_t index;
sys/dev/drm/amd/display/dc/dcn10/dcn10_optc.c
949
for (index = 0; index < 6; index++) {
sys/dev/drm/amd/display/dc/dcn10/dcn10_optc.c
953
dst_color[index] =
sys/dev/drm/amd/display/dc/dcn10/dcn10_optc.c
954
src_color[index] >> (src_bpc - dst_bpc);
sys/dev/drm/amd/display/dc/dcn10/dcn10_optc.c
961
dst_color[index] <<= (16 - dst_bpc);
sys/dev/drm/amd/display/dc/dcn10/dcn10_optc.c
993
for (index = 0; index < 6; index++) {
sys/dev/drm/amd/display/dc/dcn10/dcn10_optc.c
997
pattern_mask = (1 << index);
sys/dev/drm/amd/display/dc/dcn10/dcn10_resource.c
479
#define clk_src_regs(index, pllid)\
sys/dev/drm/amd/display/dc/dcn10/dcn10_resource.c
480
[index] = {\
sys/dev/drm/amd/display/dc/dcn10/dcn10_resource.c
481
CS_COMMON_REG_LIST_DCN1_0(index, pllid),\
sys/dev/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
1101
uint32_t index;
sys/dev/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
1125
for (index = 0; index < audio_array_size; index++) {
sys/dev/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
1126
if (clock_info[index].pixel_clock_in_10khz >
sys/dev/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
1129
else if (clock_info[index].pixel_clock_in_10khz ==
sys/dev/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
1132
*audio_clock_info = clock_info[index];
sys/dev/drm/amd/display/dc/dm_services.h
100
return cgs_read_ind_register(ctx->cgs_device, addr_space, index);
sys/dev/drm/amd/display/dc/dm_services.h
106
uint32_t index,
sys/dev/drm/amd/display/dc/dm_services.h
109
cgs_write_ind_register(ctx->cgs_device, addr_space, index, value);
sys/dev/drm/amd/display/dc/dm_services.h
98
uint32_t index)
sys/dev/drm/amd/display/dc/inc/reg_helper.h
452
#define IX_REG_SET_N(index_reg_name, data_reg_name, index, n, initial_val, ...) \
sys/dev/drm/amd/display/dc/inc/reg_helper.h
454
REG(index_reg_name), REG(data_reg_name), IND_REG(index), \
sys/dev/drm/amd/display/dc/inc/reg_helper.h
458
#define IX_REG_SET_2(index_reg_name, data_reg_name, index, init_value, f1, v1, f2, v2) \
sys/dev/drm/amd/display/dc/inc/reg_helper.h
459
IX_REG_SET_N(index_reg_name, data_reg_name, index, 2, init_value, \
sys/dev/drm/amd/display/dc/inc/reg_helper.h
464
#define IX_REG_READ(index_reg_name, data_reg_name, index) \
sys/dev/drm/amd/display/dc/inc/reg_helper.h
465
generic_read_indirect_reg(CTX, REG(index_reg_name), REG(data_reg_name), IND_REG(index))
sys/dev/drm/amd/display/dc/inc/reg_helper.h
469
#define IX_REG_UPDATE_N(index_reg_name, data_reg_name, index, n, ...) \
sys/dev/drm/amd/display/dc/inc/reg_helper.h
471
REG(index_reg_name), REG(data_reg_name), IND_REG(index), \
sys/dev/drm/amd/display/dc/inc/reg_helper.h
472
IX_REG_READ(index_reg_name, data_reg_name, index), \
sys/dev/drm/amd/display/dc/inc/reg_helper.h
475
#define IX_REG_UPDATE_2(index_reg_name, data_reg_name, index, f1, v1, f2, v2) \
sys/dev/drm/amd/display/dc/inc/reg_helper.h
476
IX_REG_UPDATE_N(index_reg_name, data_reg_name, index, 2,\
sys/dev/drm/amd/display/dc/inc/reg_helper.h
482
uint32_t index, uint32_t data);
sys/dev/drm/amd/display/dc/inc/reg_helper.h
486
uint32_t index);
sys/dev/drm/amd/display/dc/inc/reg_helper.h
490
uint32_t index, uint32_t reg_val, int n,
sys/dev/drm/amd/display/include/vector.h
100
uint32_t index);
sys/dev/drm/amd/display/include/vector.h
136
uint32_t index) \
sys/dev/drm/amd/display/include/vector.h
138
return dal_vector_at_index(vector, index); \
sys/dev/drm/amd/display/include/vector.h
145
uint32_t index) \
sys/dev/drm/amd/display/include/vector.h
147
dal_vector_set_at_index(vector, what, index); \
sys/dev/drm/amd/display/include/vector.h
84
uint32_t index);
sys/dev/drm/amd/display/include/vector.h
89
uint32_t index);
sys/dev/drm/amd/display/modules/color/color_gamma.c
1018
int32_t index = 0, index_next = 0;
sys/dev/drm/amd/display/modules/color/color_gamma.c
1037
index = dc_fixpt_floor(norm_y);
sys/dev/drm/amd/display/modules/color/color_gamma.c
1038
index_f = dc_fixpt_from_int(index);
sys/dev/drm/amd/display/modules/color/color_gamma.c
1040
if (index < 0 || index > max_lut_index)
sys/dev/drm/amd/display/modules/color/color_gamma.c
1043
index_next = (index == max_lut_index) ? index : index+1;
sys/dev/drm/amd/display/modules/color/color_gamma.c
1046
lut1 = ramp->entries.red[index];
sys/dev/drm/amd/display/modules/color/color_gamma.c
1049
lut1 = ramp->entries.green[index];
sys/dev/drm/amd/display/modules/color/color_gamma.c
1052
lut1 = ramp->entries.blue[index];
sys/dev/drm/amd/display/modules/color/color_gamma.c
1197
int32_t index;
sys/dev/drm/amd/display/modules/color/color_gamma.c
1238
index = dc_fixpt_floor(norm_x);
sys/dev/drm/amd/display/modules/color/color_gamma.c
1239
if (index < 0 || index > 255)
sys/dev/drm/amd/display/modules/color/color_gamma.c
1242
index_f = dc_fixpt_from_int(index);
sys/dev/drm/amd/display/modules/color/color_gamma.c
1243
index_next = (index == 255) ? index : index + 1;
sys/dev/drm/amd/display/modules/color/color_gamma.c
1246
lut1 = rgb_user[index].r;
sys/dev/drm/amd/display/modules/color/color_gamma.c
1249
lut1 = rgb_user[index].g;
sys/dev/drm/amd/display/modules/color/color_gamma.c
1252
lut1 = rgb_user[index].b;
sys/dev/drm/amd/display/modules/color/color_gamma.c
252
uint32_t index = is_2_4 == true ? 0:1;
sys/dev/drm/amd/display/modules/color/color_gamma.c
256
numerator01[index], 10000000);
sys/dev/drm/amd/display/modules/color/color_gamma.c
258
numerator02[index], 1000);
sys/dev/drm/amd/display/modules/color/color_gamma.c
260
numerator03[index], 1000);
sys/dev/drm/amd/display/modules/color/color_gamma.c
262
numerator04[index], 1000);
sys/dev/drm/amd/display/modules/color/color_gamma.c
264
numerator05[index], 1000);
sys/dev/drm/amd/display/modules/color/color_gamma.c
49
uint32_t index;
sys/dev/drm/amd/display/modules/color/color_gamma.c
62
for (index = seg_offset + 1;
sys/dev/drm/amd/display/modules/color/color_gamma.c
63
index < seg_offset + NUM_PTS_IN_REGION;
sys/dev/drm/amd/display/modules/color/color_gamma.c
64
index++) {
sys/dev/drm/amd/display/modules/color/color_gamma.c
65
coordinates_x[index].x = dc_fixpt_add
sys/dev/drm/amd/display/modules/color/color_gamma.c
66
(coordinates_x[index-1].x, increment);
sys/dev/drm/amd/display/modules/freesync/freesync.c
862
unsigned int oldest_index = plane->time.index + 1;
sys/dev/drm/amd/display/modules/stats/stats.c
166
core_stats->index = 1;
sys/dev/drm/amd/display/modules/stats/stats.c
204
unsigned int index = 0;
sys/dev/drm/amd/display/modules/stats/stats.c
239
} else if (time_index < core_stats->index &&
sys/dev/drm/amd/display/modules/stats/stats.c
276
unsigned int index = 0;
sys/dev/drm/amd/display/modules/stats/stats.c
289
core_stats->index = 1;
sys/dev/drm/amd/display/modules/stats/stats.c
302
unsigned int index = 0;
sys/dev/drm/amd/display/modules/stats/stats.c
314
index = core_stats->event_index;
sys/dev/drm/amd/display/modules/stats/stats.c
320
memcpy(&events[index].event_string, event_string, copy_length);
sys/dev/drm/amd/display/modules/stats/stats.c
321
events[index].event_string[copy_length - 1] = '\0';
sys/dev/drm/amd/display/modules/stats/stats.c
323
events[index].entry_id = core_stats->entry_id;
sys/dev/drm/amd/display/modules/stats/stats.c
333
unsigned int index = 0;
sys/dev/drm/amd/display/modules/stats/stats.c
340
if (core_stats->index >= core_stats->entries)
sys/dev/drm/amd/display/modules/stats/stats.c
344
index = core_stats->index;
sys/dev/drm/amd/display/modules/stats/stats.c
346
time[index].flip_timestamp_in_ns = timestamp_in_ns;
sys/dev/drm/amd/display/modules/stats/stats.c
347
time[index].render_time_in_us =
sys/dev/drm/amd/display/modules/stats/stats.c
348
(timestamp_in_ns - time[index - 1].flip_timestamp_in_ns) / 1000;
sys/dev/drm/amd/display/modules/stats/stats.c
350
if (index >= 10) {
sys/dev/drm/amd/display/modules/stats/stats.c
352
time[index].avg_render_time_in_us_last_ten +=
sys/dev/drm/amd/display/modules/stats/stats.c
353
time[index - i].render_time_in_us;
sys/dev/drm/amd/display/modules/stats/stats.c
354
time[index].avg_render_time_in_us_last_ten /= 10;
sys/dev/drm/amd/display/modules/stats/stats.c
357
if (time[index].num_vsync_between_flips > 0)
sys/dev/drm/amd/display/modules/stats/stats.c
358
time[index].vsync_to_flip_time_in_us =
sys/dev/drm/amd/display/modules/stats/stats.c
360
time[index].vupdate_timestamp_in_ns) / 1000;
sys/dev/drm/amd/display/modules/stats/stats.c
362
time[index].vsync_to_flip_time_in_us =
sys/dev/drm/amd/display/modules/stats/stats.c
364
time[index - 1].vupdate_timestamp_in_ns) / 1000;
sys/dev/drm/amd/display/modules/stats/stats.c
366
time[index].entry_id = core_stats->entry_id;
sys/dev/drm/amd/display/modules/stats/stats.c
367
core_stats->index++;
sys/dev/drm/amd/display/modules/stats/stats.c
376
unsigned int index = 0;
sys/dev/drm/amd/display/modules/stats/stats.c
385
if (core_stats->index >= core_stats->entries)
sys/dev/drm/amd/display/modules/stats/stats.c
389
index = core_stats->index;
sys/dev/drm/amd/display/modules/stats/stats.c
390
num_vsyncs = time[index].num_vsync_between_flips;
sys/dev/drm/amd/display/modules/stats/stats.c
395
time[index - 1].vupdate_timestamp_in_ns;
sys/dev/drm/amd/display/modules/stats/stats.c
397
time[index].flip_to_vsync_time_in_us =
sys/dev/drm/amd/display/modules/stats/stats.c
399
time[index - 1].flip_timestamp_in_ns) /
sys/dev/drm/amd/display/modules/stats/stats.c
403
time[index].vupdate_timestamp_in_ns;
sys/dev/drm/amd/display/modules/stats/stats.c
406
time[index].v_sync_time_in_us[num_vsyncs] =
sys/dev/drm/amd/display/modules/stats/stats.c
410
time[index].vupdate_timestamp_in_ns = timestamp_in_ns;
sys/dev/drm/amd/display/modules/stats/stats.c
411
time[index].num_vsync_between_flips++;
sys/dev/drm/amd/display/modules/stats/stats.c
426
unsigned int index = 0;
sys/dev/drm/amd/display/modules/stats/stats.c
433
if (core_stats->index >= core_stats->entries)
sys/dev/drm/amd/display/modules/stats/stats.c
437
index = core_stats->index;
sys/dev/drm/amd/display/modules/stats/stats.c
439
time[index].v_total_min = v_total_min;
sys/dev/drm/amd/display/modules/stats/stats.c
440
time[index].v_total_max = v_total_max;
sys/dev/drm/amd/display/modules/stats/stats.c
441
time[index].event_triggers = event_triggers;
sys/dev/drm/amd/display/modules/stats/stats.c
442
time[index].min_window = window_min;
sys/dev/drm/amd/display/modules/stats/stats.c
443
time[index].max_window = window_max;
sys/dev/drm/amd/display/modules/stats/stats.c
444
time[index].lfc_mid_point_in_us = lfc_mid_point_in_us;
sys/dev/drm/amd/display/modules/stats/stats.c
445
time[index].num_frames_inserted = inserted_frames;
sys/dev/drm/amd/display/modules/stats/stats.c
446
time[index].inserted_duration_in_us = inserted_duration_in_us;
sys/dev/drm/amd/display/modules/stats/stats.c
86
unsigned int index;
sys/dev/drm/amd/include/cgs_common.h
110
unsigned index);
sys/dev/drm/amd/include/cgs_common.h
119
unsigned index, uint32_t value);
sys/dev/drm/amd/include/cgs_common.h
170
#define cgs_read_ind_register(dev,space,index) \
sys/dev/drm/amd/include/cgs_common.h
171
CGS_CALL(read_ind_register,dev,space,index)
sys/dev/drm/amd/include/cgs_common.h
172
#define cgs_write_ind_register(dev,space,index,value) \
sys/dev/drm/amd/include/cgs_common.h
173
CGS_CALL(write_ind_register,dev,space,index,value)
sys/dev/drm/amd/include/pptable.h
461
UCHAR index;
sys/dev/drm/amd/powerplay/amd_powerplay.c
932
uint32_t index;
sys/dev/drm/amd/powerplay/amd_powerplay.c
949
index = fls(hwmgr->workload_mask);
sys/dev/drm/amd/powerplay/amd_powerplay.c
950
index = index > 0 && index <= Workload_Policy_Max ? index - 1 : 0;
sys/dev/drm/amd/powerplay/amd_powerplay.c
951
workload = hwmgr->workload_setting[index];
sys/dev/drm/amd/powerplay/amd_powerplay.c
954
index = fls(hwmgr->workload_mask);
sys/dev/drm/amd/powerplay/amd_powerplay.c
955
index = index <= Workload_Policy_Max ? index - 1 : 0;
sys/dev/drm/amd/powerplay/amd_powerplay.c
956
workload = hwmgr->workload_setting[index];
sys/dev/drm/amd/powerplay/hwmgr/hardwaremanager.c
283
int index = 0;
sys/dev/drm/amd/powerplay/hwmgr/hardwaremanager.c
294
for (index = 0; index < display_config->num_path_including_non_display; index++) {
sys/dev/drm/amd/powerplay/hwmgr/hardwaremanager.c
295
if (display_config->displays[index].controller_id != 0)
sys/dev/drm/amd/powerplay/hwmgr/hardwaremanager.c
339
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/hardwaremanager.c
346
return hwmgr->hwmgr_func->get_performance_level(hwmgr, state, designation, index, level);
sys/dev/drm/amd/powerplay/hwmgr/pp_psm.c
262
uint32_t index;
sys/dev/drm/amd/powerplay/hwmgr/pp_psm.c
285
index = fls(hwmgr->workload_mask);
sys/dev/drm/amd/powerplay/hwmgr/pp_psm.c
286
index = index > 0 && index <= Workload_Policy_Max ? index - 1 : 0;
sys/dev/drm/amd/powerplay/hwmgr/pp_psm.c
287
workload = hwmgr->workload_setting[index];
sys/dev/drm/amd/powerplay/hwmgr/ppatomctrl.c
204
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/amd/powerplay/hwmgr/ppatomctrl.c
210
smu_atom_get_data_table(device, index,
sys/dev/drm/amd/powerplay/hwmgr/ppatomctrl.c
49
uint8_t index,
sys/dev/drm/amd/powerplay/hwmgr/ppatomctrl.c
64
if (index == tmem_id) {
sys/dev/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c
136
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c
145
index, &size, &frev, &crev);
sys/dev/drm/amd/powerplay/hwmgr/processpptables.h
36
unsigned int index,
sys/dev/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
739
unsigned int index,
sys/dev/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
744
smu10_ps->levels[index].engine_clock = 0;
sys/dev/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
746
smu10_ps->levels[index].vddc_index = 0;
sys/dev/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
747
smu10_ps->level = index + 1;
sys/dev/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
750
smu10_ps->levels[index].ds_divider_index = 5;
sys/dev/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
751
smu10_ps->levels[index].ss_divider_index = 5;
sys/dev/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
920
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
930
if (index == 0) {
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
1793
uint32_t index;
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
1796
for (index = 0; index < leakage_table->count; index++) {
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
1799
if (leakage_table->leakage_id[index] == *voltage) {
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
1800
*voltage = leakage_table->actual_voltage[index];
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
2245
uint32_t index;
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
2248
for (index = 0; index < leakage_table->count; index++) {
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
2251
if (leakage_table->leakage_id[index] == *voltage) {
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
2252
*voltage = leakage_table->actual_voltage[index];
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
3062
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
3067
fw_info = (ATOM_FIRMWARE_INFO_V2_2 *)smu_atom_get_data_table(hwmgr->adev, index,
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
3316
unsigned int index, const void *clock_info)
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
5024
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
5037
i = index > ps->performance_level_count - 1 ?
sys/dev/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
5038
ps->performance_level_count - 1 : index;
sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
1341
unsigned int index,
sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
1350
uint8_t clock_info_index = smu8_clock_info->index;
sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
1355
smu8_ps->levels[index].engineClock = table->entries[clock_info_index].clk;
sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
1356
smu8_ps->levels[index].vddcIndex = (uint8_t)table->entries[clock_info_index].v;
sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
1358
smu8_ps->level = index + 1;
sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
1361
smu8_ps->levels[index].dsDividerIndex = 5;
sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
1362
smu8_ps->levels[index].ssDividerIndex = 5;
sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
1557
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
1571
level_index = index > ps->level - 1 ? ps->level - 1 : index;
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
106
int phm_wait_on_register(struct pp_hwmgr *hwmgr, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
118
cur_value = cgs_read_register(hwmgr->device, index);
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
138
uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
147
cgs_write_register(hwmgr->device, indirect_port, index);
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
152
uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
163
index);
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
177
uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
184
cgs_write_register(hwmgr->device, indirect_port, index);
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
359
uint32_t index, uint32_t pcie_gen,
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
363
dpm_table->dpm_level[index].value = pcie_gen;
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
364
dpm_table->dpm_level[index].param1 = pcie_lanes;
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c
365
dpm_table->dpm_level[index].enabled = 1;
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
104
uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
163
#define PHM_WAIT_INDIRECT_REGISTER_GIVEN_INDEX(hwmgr, port, index, value, mask) \
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
164
phm_wait_on_indirect_register(hwmgr, mm##port##_INDEX, index, value, mask)
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
174
#define PHM_WAIT_INDIRECT_REGISTER_UNEQUAL_GIVEN_INDEX(hwmgr, port, index, value, mask) \
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
176
mm##port##_INDEX, index, value, mask)
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
188
port, index, value, mask) \
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
190
mm##port##_INDEX_11, index, value, mask)
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
202
port, index, value, mask) \
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
204
mm##port##_INDEX_11, index, value, mask)
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
215
index, value, mask) \
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
217
index, value, mask)
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
63
uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
67
uint32_t indirect_port, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
81
extern void phm_setup_pcie_table_entry(void *table, uint32_t index, uint32_t pcie_gen, uint32_t pcie_lanes);
sys/dev/drm/amd/powerplay/hwmgr/smu_helper.h
99
extern int phm_wait_on_register(struct pp_hwmgr *hwmgr, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
4905
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
4918
i = index > ps->performance_level_count - 1 ?
sys/dev/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
4919
ps->performance_level_count - 1 : index;
sys/dev/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
588
uint32_t index;
sys/dev/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
591
for (index = 0; index < leakage_table->count; index++) {
sys/dev/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
594
if (leakage_table->leakage_id[index] == *voltage) {
sys/dev/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
595
*voltage = leakage_table->actual_voltage[index];
sys/dev/drm/amd/powerplay/hwmgr/vega10_processpptables.c
48
int index = GetIndexIntoMasterDataTable(powerplayinfo);
sys/dev/drm/amd/powerplay/hwmgr/vega10_processpptables.c
56
smu_atom_get_data_table(hwmgr->adev, index,
sys/dev/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
2360
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
489
PPCLK_e clkID, uint32_t index, uint32_t *clock)
sys/dev/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
498
PPSMC_MSG_GetDpmFreqByIndex, (clkID << 16 | index)) == 0,
sys/dev/drm/amd/powerplay/hwmgr/vega12_processpptables.c
46
int index = GetIndexIntoMasterDataTable(powerplayinfo);
sys/dev/drm/amd/powerplay/hwmgr/vega12_processpptables.c
54
smu_atom_get_data_table(hwmgr->adev, index,
sys/dev/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
1244
uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
1258
switch(index) {
sys/dev/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
2074
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
487
PPCLK_e clk_id, uint32_t index, uint32_t *clk)
sys/dev/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
493
(clk_id << 16 | index));
sys/dev/drm/amd/powerplay/hwmgr/vega20_processpptables.c
46
int index = GetIndexIntoMasterDataTable(powerplayinfo);
sys/dev/drm/amd/powerplay/hwmgr/vega20_processpptables.c
54
smu_atom_get_data_table(hwmgr->adev, index,
sys/dev/drm/amd/powerplay/hwmgr/vega20_processpptables.c
717
int index = GetIndexIntoMasterDataTable(smc_dpm_info);
sys/dev/drm/amd/powerplay/hwmgr/vega20_processpptables.c
721
smc_dpm_table = smu_atom_get_data_table(hwmgr->adev, index, NULL, NULL, NULL),
sys/dev/drm/amd/powerplay/inc/hardwaremanager.h
442
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/drm/amd/powerplay/inc/smu72.h
82
uint8_t index;
sys/dev/drm/amd/powerplay/inc/smu73.h
76
uint8_t index;
sys/dev/drm/amd/powerplay/inc/smu74.h
107
uint8_t index;
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
760
uint8_t index;
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
773
index = phm_get_voltage_index(lookup_table,
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
776
convert_to_vid(lookup_table->entries[index].us_cac_low);
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
778
convert_to_vid(lookup_table->entries[index].us_cac_high);
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
701
uint8_t index;
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
713
index = phm_get_voltage_index(lookup_table,
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
715
table->BapmVddcVidLoSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_low);
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
716
table->BapmVddcVidHiSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_mid);
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
717
table->BapmVddcVidHiSidd2[count] = convert_to_vid(lookup_table->entries[index].us_cac_high);
sys/dev/drm/amd/powerplay/smumgr/smu8_smumgr.c
153
uint32_t index = SMN_MP1_SRAM_START_ADDR +
sys/dev/drm/amd/powerplay/smumgr/smu8_smumgr.c
160
cgs_write_register(hwmgr->device, mmMP0PUB_IND_INDEX, index);
sys/dev/drm/amd/powerplay/smumgr/smu8_smumgr.c
730
uint32_t index = SMN_MP1_SRAM_START_ADDR +
sys/dev/drm/amd/powerplay/smumgr/smu8_smumgr.c
738
cgs_write_register(hwmgr->device, mmMP0PUB_IND_INDEX, index);
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
394
uint8_t index = 0;
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
411
index = phm_get_voltage_index(vddc_lookup_table,
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
414
convert_to_vid(vddc_lookup_table->entries[index].us_cac_low);
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
416
convert_to_vid(vddc_lookup_table->entries[index].us_cac_mid);
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
418
convert_to_vid(vddc_lookup_table->entries[index].us_cac_high);
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
424
index = phm_get_voltage_index(vddgfx_lookup_table,
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
425
convert_to_vid(vddgfx_lookup_table->entries[index].us_cac_mid));
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
427
convert_to_vid(vddgfx_lookup_table->entries[index].us_cac_high);
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
431
index = phm_get_voltage_index(vddc_lookup_table,
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
434
convert_to_vid(vddc_lookup_table->entries[index].us_cac_low);
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
436
convert_to_vid(vddc_lookup_table->entries[index].us_cac_mid);
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
438
convert_to_vid(vddc_lookup_table->entries[index].us_cac_high);
sys/dev/drm/amd/powerplay/smumgr/vegam_smumgr.c
504
uint8_t index;
sys/dev/drm/amd/powerplay/smumgr/vegam_smumgr.c
516
index = phm_get_voltage_index(lookup_table,
sys/dev/drm/amd/powerplay/smumgr/vegam_smumgr.c
519
convert_to_vid(lookup_table->entries[index].us_cac_low);
sys/dev/drm/amd/powerplay/smumgr/vegam_smumgr.c
521
convert_to_vid(lookup_table->entries[index].us_cac_mid);
sys/dev/drm/amd/powerplay/smumgr/vegam_smumgr.c
523
convert_to_vid(lookup_table->entries[index].us_cac_high);
sys/dev/drm/drm_atomic.c
288
int ret, index = drm_crtc_index(crtc);
sys/dev/drm/drm_atomic.c
305
state->crtcs[index].state = crtc_state;
sys/dev/drm/drm_atomic.c
306
state->crtcs[index].old_state = crtc->state;
sys/dev/drm/drm_atomic.c
307
state->crtcs[index].new_state = crtc_state;
sys/dev/drm/drm_atomic.c
308
state->crtcs[index].ptr = crtc;
sys/dev/drm/drm_atomic.c
447
int ret, index = drm_plane_index(plane);
sys/dev/drm/drm_atomic.c
469
state->planes[index].state = plane_state;
sys/dev/drm/drm_atomic.c
470
state->planes[index].ptr = plane;
sys/dev/drm/drm_atomic.c
471
state->planes[index].old_state = plane->state;
sys/dev/drm/drm_atomic.c
472
state->planes[index].new_state = plane_state;
sys/dev/drm/drm_atomic.c
715
int index, num_objs, i;
sys/dev/drm/drm_atomic.c
731
index = state->num_private_objs;
sys/dev/drm/drm_atomic.c
732
memset(&state->private_objs[index], 0, sizeof(*state->private_objs));
sys/dev/drm/drm_atomic.c
738
state->private_objs[index].state = obj_state;
sys/dev/drm/drm_atomic.c
739
state->private_objs[index].old_state = obj->state;
sys/dev/drm/drm_atomic.c
740
state->private_objs[index].new_state = obj_state;
sys/dev/drm/drm_atomic.c
741
state->private_objs[index].ptr = obj;
sys/dev/drm/drm_atomic.c
772
int ret, index;
sys/dev/drm/drm_atomic.c
782
index = drm_connector_index(connector);
sys/dev/drm/drm_atomic.c
784
if (index >= state->num_connector) {
sys/dev/drm/drm_atomic.c
786
int alloc = max(index + 1, config->num_connector);
sys/dev/drm/drm_atomic.c
801
if (state->connectors[index].state)
sys/dev/drm/drm_atomic.c
802
return state->connectors[index].state;
sys/dev/drm/drm_atomic.c
809
state->connectors[index].state = connector_state;
sys/dev/drm/drm_atomic.c
810
state->connectors[index].old_state = connector->state;
sys/dev/drm/drm_atomic.c
811
state->connectors[index].new_state = connector_state;
sys/dev/drm/drm_atomic.c
812
state->connectors[index].ptr = connector;
sys/dev/drm/drm_atomic_uapi.c
361
unsigned int index = drm_connector_index(connector);
sys/dev/drm/drm_atomic_uapi.c
369
state->connectors[index].out_fence_ptr = fence_ptr;
sys/dev/drm/drm_atomic_uapi.c
377
unsigned int index = drm_connector_index(connector);
sys/dev/drm/drm_atomic_uapi.c
380
fence_ptr = state->connectors[index].out_fence_ptr;
sys/dev/drm/drm_atomic_uapi.c
381
state->connectors[index].out_fence_ptr = NULL;
sys/dev/drm/drm_connector.c
226
connector->index = ret;
sys/dev/drm/drm_connector.c
289
ida_simple_remove(&config->connector_ida, connector->index);
sys/dev/drm/drm_connector.c
402
connector->index);
sys/dev/drm/drm_crtc.c
323
crtc->index = config->num_crtc++;
sys/dev/drm/drm_crtc.c
89
if (idx == crtc->index)
sys/dev/drm/drm_dp_aux_dev.c
279
idr_remove(&aux_idr, aux_dev->index);
sys/dev/drm/drm_dp_aux_dev.c
285
minor = aux_dev->index;
sys/dev/drm/drm_dp_aux_dev.c
304
MKDEV(drm_dev_major, aux_dev->index), NULL,
sys/dev/drm/drm_dp_aux_dev.c
305
"drm_dp_aux%d", aux_dev->index);
sys/dev/drm/drm_dp_aux_dev.c
313
aux->name, aux_dev->index);
sys/dev/drm/drm_dp_aux_dev.c
43
unsigned index;
sys/dev/drm/drm_dp_aux_dev.c
58
static struct drm_dp_aux_dev *drm_dp_aux_dev_get_by_minor(unsigned index)
sys/dev/drm/drm_dp_aux_dev.c
63
aux_dev = idr_find(&aux_idr, index);
sys/dev/drm/drm_dp_aux_dev.c
74
int index;
sys/dev/drm/drm_dp_aux_dev.c
84
index = idr_alloc_cyclic(&aux_idr, aux_dev, 0, DRM_AUX_MINORS,
sys/dev/drm/drm_dp_aux_dev.c
87
if (index < 0) {
sys/dev/drm/drm_dp_aux_dev.c
89
return ERR_PTR(index);
sys/dev/drm/drm_dp_aux_dev.c
91
aux_dev->index = index;
sys/dev/drm/drm_drv.c
156
minor->index = r;
sys/dev/drm/drm_drv.c
169
idr_remove(&drm_minors_idr, minor->index);
sys/dev/drm/drm_drv.c
191
idr_remove(&drm_minors_idr, minor->index);
sys/dev/drm/drm_drv.c
211
ret = drm_debugfs_init(minor, minor->index, drm_debugfs_root);
sys/dev/drm/drm_drv.c
224
idr_replace(&drm_minors_idr, minor, minor->index);
sys/dev/drm/drm_drv.c
227
DRM_DEBUG("new minor registered %d\n", minor->index);
sys/dev/drm/drm_drv.c
252
idr_replace(&drm_minors_idr, NULL, minor->index);
sys/dev/drm/drm_drv.c
817
name = kasprintf(GFP_KERNEL, "controlD%d", minor->index + 64);
sys/dev/drm/drm_drv.c
846
name = kasprintf(GFP_KERNEL, "controlD%d", minor->index + 64);
sys/dev/drm/drm_drv.c
913
dev->primary->index);
sys/dev/drm/drm_encoder.c
141
encoder->index = dev->mode_config.num_encoder++;
sys/dev/drm/drm_fb_helper.c
1078
start = page->index << PAGE_SHIFT;
sys/dev/drm/drm_file.c
490
DRM_DEBUG("pid = %d, minor = %d\n", DRM_CURRENTPID, minor->index);
sys/dev/drm/drm_modes.c
1266
int index = status + 3;
sys/dev/drm/drm_modes.c
1268
if (WARN_ON(index < 0 || index >= ARRAY_SIZE(drm_mode_status_names)))
sys/dev/drm/drm_modes.c
1271
return drm_mode_status_names[index];
sys/dev/drm/drm_modes.c
704
int index)
sys/dev/drm/drm_modes.c
709
ret = of_get_videomode(np, &vm, index);
sys/dev/drm/drm_plane.c
260
plane->index = config->num_total_plane++;
sys/dev/drm/drm_plane.c
396
if (idx == plane->index)
sys/dev/drm/drm_prime.c
951
u32 len, index;
sys/dev/drm/drm_prime.c
954
index = 0;
sys/dev/drm/drm_prime.c
961
if (WARN_ON(index >= max_entries))
sys/dev/drm/drm_prime.c
964
pages[index] = page;
sys/dev/drm/drm_prime.c
966
addrs[index] = addr;
sys/dev/drm/drm_prime.c
971
index++;
sys/dev/drm/drm_property.c
389
int index = 0;
sys/dev/drm/drm_property.c
409
index++;
sys/dev/drm/drm_property.c
412
if (WARN_ON(index >= property->num_values))
sys/dev/drm/drm_property.c
423
property->values[index] = value;
sys/dev/drm/drm_sysfs.c
41
dev->primary->index,
sys/dev/drm/drm_sysfs.c
87
ksnprintf(dev_str, sizeof(dev_str), "card%d", minor->index);
sys/dev/drm/drm_sysfs.c
89
ksnprintf(dev_str, sizeof(dev_str), "renderD%d", minor->index);
sys/dev/drm/drm_sysfs.c
97
devnode = make_dev(&drm_cdevsw, minor->index,
sys/dev/drm/i915/i915_gem.c
2766
radix_tree_delete(&obj->mm.get_page.radix, iter.index);
sys/dev/drm/i915/i915_gem_gtt.c
1127
u16 index, max;
sys/dev/drm/i915/i915_gem_gtt.c
1132
index = idx.pde;
sys/dev/drm/i915/i915_gem_gtt.c
1142
index = idx.pte;
sys/dev/drm/i915/i915_gem_gtt.c
1146
if (!index &&
sys/dev/drm/i915/i915_gem_gtt.c
1150
rem >= (max - index) * I915_GTT_PAGE_SIZE))
sys/dev/drm/i915/i915_gem_gtt.c
1158
vaddr[index++] = encode | iter->dma;
sys/dev/drm/i915/i915_gem_gtt.c
1172
if (maybe_64K && index < max &&
sys/dev/drm/i915/i915_gem_gtt.c
1175
rem >= (max - index) * I915_GTT_PAGE_SIZE)))
sys/dev/drm/i915/i915_gem_gtt.c
1181
} while (rem >= page_size && index < max);
sys/dev/drm/i915/i915_gem_gtt.c
1192
(index == max ||
sys/dev/drm/i915/i915_gem_gtt.c
1217
for (i = 1; i < index; i += 16)
sys/dev/drm/i915/i915_gem_gtt.c
3103
__alloc_ppat_entry(struct intel_ppat *ppat, unsigned int index, u8 value)
sys/dev/drm/i915/i915_gem_gtt.c
3105
struct intel_ppat_entry *entry = &ppat->entries[index];
sys/dev/drm/i915/i915_gem_gtt.c
3107
GEM_BUG_ON(index >= ppat->max_entries);
sys/dev/drm/i915/i915_gem_gtt.c
3108
GEM_BUG_ON(test_bit(index, ppat->used));
sys/dev/drm/i915/i915_gem_gtt.c
3113
set_bit(index, ppat->used);
sys/dev/drm/i915/i915_gem_gtt.c
3114
set_bit(index, ppat->dirty);
sys/dev/drm/i915/i915_gem_gtt.c
3122
unsigned int index = entry - ppat->entries;
sys/dev/drm/i915/i915_gem_gtt.c
3124
GEM_BUG_ON(index >= ppat->max_entries);
sys/dev/drm/i915/i915_gem_gtt.c
3125
GEM_BUG_ON(!test_bit(index, ppat->used));
sys/dev/drm/i915/i915_gem_gtt.c
3128
clear_bit(index, ppat->used);
sys/dev/drm/i915/i915_gem_gtt.c
3129
set_bit(index, ppat->dirty);
sys/dev/drm/i915/i915_gem_gtt.c
3205
unsigned int index = entry - ppat->entries;
sys/dev/drm/i915/i915_gem_gtt.c
3209
kref_put(&ppat->entries[index].ref, release_ppat);
sys/dev/drm/i915/i915_gpu_error.c
1903
i915->drm.primary->index);
sys/dev/drm/i915/i915_reg.h
2383
#define GEN10_PAT_INDEX(index) _MMIO(0x40e0 + (index) * 4)
sys/dev/drm/i915/intel_bios.c
100
return base + index;
sys/dev/drm/i915/intel_bios.c
102
index += current_size;
sys/dev/drm/i915/intel_bios.c
1022
int index, len;
sys/dev/drm/i915/intel_bios.c
1028
for (index = 1; data[index] != MIPI_SEQ_ELEM_END; index += len) {
sys/dev/drm/i915/intel_bios.c
1029
switch (data[index]) {
sys/dev/drm/i915/intel_bios.c
1031
return index == 1 ? 0 : index;
sys/dev/drm/i915/intel_bios.c
1104
int index = 0;
sys/dev/drm/i915/intel_bios.c
1135
u8 seq_id = *(data + index);
sys/dev/drm/i915/intel_bios.c
1148
dev_priv->vbt.dsi.sequence[seq_id] = data + index;
sys/dev/drm/i915/intel_bios.c
1151
index = goto_next_sequence_v3(data, index, seq_size);
sys/dev/drm/i915/intel_bios.c
1153
index = goto_next_sequence(data, index, seq_size);
sys/dev/drm/i915/intel_bios.c
1154
if (!index) {
sys/dev/drm/i915/intel_bios.c
161
int index)
sys/dev/drm/i915/intel_bios.c
175
char *entry = (char *)lvds_lfp_data->data + lfp_data_size * index;
sys/dev/drm/i915/intel_bios.c
187
int index)
sys/dev/drm/i915/intel_bios.c
193
if (index >= ARRAY_SIZE(ptrs->ptr))
sys/dev/drm/i915/intel_bios.c
195
ofs = ptrs->ptr[index].fp_timing_offset;
sys/dev/drm/i915/intel_bios.c
355
int index;
sys/dev/drm/i915/intel_bios.c
357
index = i915_modparams.vbt_sdvo_panel_type;
sys/dev/drm/i915/intel_bios.c
358
if (index == -2) {
sys/dev/drm/i915/intel_bios.c
363
if (index == -1) {
sys/dev/drm/i915/intel_bios.c
370
index = sdvo_lvds_options->panel_type;
sys/dev/drm/i915/intel_bios.c
381
fill_detail_timing_data(panel_fixed_mode, dvo_timing + index);
sys/dev/drm/i915/intel_bios.c
82
int index = 0;
sys/dev/drm/i915/intel_bios.c
869
int index = 0;
sys/dev/drm/i915/intel_bios.c
87
index += bdb->header_size;
sys/dev/drm/i915/intel_bios.c
876
for (i = 0; i < MAX_MIPI_CONFIGURATIONS && index < total; i++) {
sys/dev/drm/i915/intel_bios.c
877
if (index + header_size > total) {
sys/dev/drm/i915/intel_bios.c
882
current_id = *(data + index);
sys/dev/drm/i915/intel_bios.c
884
current_size = *((const u32 *)(data + index + 1));
sys/dev/drm/i915/intel_bios.c
886
current_size = *((const u16 *)(data + index + 1));
sys/dev/drm/i915/intel_bios.c
888
index += header_size;
sys/dev/drm/i915/intel_bios.c
890
if (index + current_size > total) {
sys/dev/drm/i915/intel_bios.c
897
return data + index;
sys/dev/drm/i915/intel_bios.c
900
index += current_size;
sys/dev/drm/i915/intel_bios.c
908
static int goto_next_sequence(const u8 *data, int index, int total)
sys/dev/drm/i915/intel_bios.c
91
while (index + 3 < total) {
sys/dev/drm/i915/intel_bios.c
913
for (index = index + 1; index < total; index += len) {
sys/dev/drm/i915/intel_bios.c
914
u8 operation_byte = *(data + index);
sys/dev/drm/i915/intel_bios.c
915
index++;
sys/dev/drm/i915/intel_bios.c
919
return index;
sys/dev/drm/i915/intel_bios.c
92
current_id = *(base + index);
sys/dev/drm/i915/intel_bios.c
921
if (index + 4 > total)
sys/dev/drm/i915/intel_bios.c
924
len = *((const u16 *)(data + index + 2)) + 4;
sys/dev/drm/i915/intel_bios.c
93
current_size = _get_blocksize(base + index);
sys/dev/drm/i915/intel_bios.c
933
if (index + 7 > total)
sys/dev/drm/i915/intel_bios.c
935
len = *(data + index + 6) + 7;
sys/dev/drm/i915/intel_bios.c
94
index += 3;
sys/dev/drm/i915/intel_bios.c
946
static int goto_next_sequence_v3(const u8 *data, int index, int total)
sys/dev/drm/i915/intel_bios.c
96
if (index + current_size > total)
sys/dev/drm/i915/intel_bios.c
962
index++;
sys/dev/drm/i915/intel_bios.c
969
size_of_sequence = *((const u32 *)(data + index));
sys/dev/drm/i915/intel_bios.c
970
index += 4;
sys/dev/drm/i915/intel_bios.c
972
seq_end = index + size_of_sequence;
sys/dev/drm/i915/intel_bios.c
978
for (; index < total; index += len) {
sys/dev/drm/i915/intel_bios.c
979
u8 operation_byte = *(data + index);
sys/dev/drm/i915/intel_bios.c
980
index++;
sys/dev/drm/i915/intel_bios.c
983
if (index != seq_end) {
sys/dev/drm/i915/intel_bios.c
987
return index;
sys/dev/drm/i915/intel_bios.c
990
len = *(data + index);
sys/dev/drm/i915/intel_bios.c
991
index++;
sys/dev/drm/i915/intel_dp.c
1146
static uint32_t g4x_get_aux_clock_divider(struct intel_dp *intel_dp, int index)
sys/dev/drm/i915/intel_dp.c
1150
if (index)
sys/dev/drm/i915/intel_dp.c
1160
static uint32_t ilk_get_aux_clock_divider(struct intel_dp *intel_dp, int index)
sys/dev/drm/i915/intel_dp.c
1164
if (index)
sys/dev/drm/i915/intel_dp.c
1178
static uint32_t hsw_get_aux_clock_divider(struct intel_dp *intel_dp, int index)
sys/dev/drm/i915/intel_dp.c
1184
switch (index) {
sys/dev/drm/i915/intel_dp.c
1191
return ilk_get_aux_clock_divider(intel_dp, index);
sys/dev/drm/i915/intel_dp.c
1194
static uint32_t skl_get_aux_clock_divider(struct intel_dp *intel_dp, int index)
sys/dev/drm/i915/intel_dp.c
1201
return index ? 0 : 1;
sys/dev/drm/i915/intel_dp.c
1596
static i915_reg_t g4x_aux_data_reg(struct intel_dp *intel_dp, int index)
sys/dev/drm/i915/intel_dp.c
1605
return DP_AUX_CH_DATA(aux_ch, index);
sys/dev/drm/i915/intel_dp.c
1608
return DP_AUX_CH_DATA(AUX_CH_B, index);
sys/dev/drm/i915/intel_dp.c
1630
static i915_reg_t ilk_aux_data_reg(struct intel_dp *intel_dp, int index)
sys/dev/drm/i915/intel_dp.c
1637
return DP_AUX_CH_DATA(aux_ch, index);
sys/dev/drm/i915/intel_dp.c
1641
return PCH_DP_AUX_CH_DATA(aux_ch, index);
sys/dev/drm/i915/intel_dp.c
1644
return DP_AUX_CH_DATA(AUX_CH_A, index);
sys/dev/drm/i915/intel_dp.c
1667
static i915_reg_t skl_aux_data_reg(struct intel_dp *intel_dp, int index)
sys/dev/drm/i915/intel_dp.c
1679
return DP_AUX_CH_DATA(aux_ch, index);
sys/dev/drm/i915/intel_dp.c
1682
return DP_AUX_CH_DATA(AUX_CH_A, index);
sys/dev/drm/i915/intel_dp.c
1904
int index;
sys/dev/drm/i915/intel_dp.c
1911
index = intel_dp_rate_index(intel_dp->common_rates,
sys/dev/drm/i915/intel_dp.c
1914
if (index >= 0)
sys/dev/drm/i915/intel_dp.c
1915
limits->min_clock = limits->max_clock = index;
sys/dev/drm/i915/intel_dp.c
580
int index;
sys/dev/drm/i915/intel_dp.c
582
index = intel_dp_rate_index(intel_dp->common_rates,
sys/dev/drm/i915/intel_dp.c
585
if (index > 0) {
sys/dev/drm/i915/intel_dp.c
588
intel_dp->common_rates[index - 1],
sys/dev/drm/i915/intel_dp.c
593
intel_dp->max_link_rate = intel_dp->common_rates[index - 1];
sys/dev/drm/i915/intel_dp.c
6063
enum drrs_refresh_rate_type index = DRRS_HIGH_RR;
sys/dev/drm/i915/intel_dp.c
6090
index = DRRS_LOW_RR;
sys/dev/drm/i915/intel_dp.c
6092
if (index == dev_priv->drrs.refresh_rate_type) {
sys/dev/drm/i915/intel_dp.c
6104
switch (index) {
sys/dev/drm/i915/intel_dp.c
6120
if (index > DRRS_HIGH_RR) {
sys/dev/drm/i915/intel_dp.c
6134
dev_priv->drrs.refresh_rate_type = index;
sys/dev/drm/i915/intel_dpll_mgr.c
2561
int index, n_entries, link_clock;
sys/dev/drm/i915/intel_dpll_mgr.c
2582
for (index = 0; index < n_entries; index++) {
sys/dev/drm/i915/intel_dpll_mgr.c
2583
if (dco_integer == params[index].dco_integer &&
sys/dev/drm/i915/intel_dpll_mgr.c
2584
dco_fraction == params[index].dco_fraction &&
sys/dev/drm/i915/intel_dpll_mgr.c
2585
pdiv == params[index].pdiv &&
sys/dev/drm/i915/intel_dpll_mgr.c
2586
kdiv == params[index].kdiv &&
sys/dev/drm/i915/intel_dpll_mgr.c
2587
qdiv_mode == params[index].qdiv_mode &&
sys/dev/drm/i915/intel_dpll_mgr.c
2588
qdiv_ratio == params[index].qdiv_ratio)
sys/dev/drm/i915/intel_dpll_mgr.c
2593
switch (index) {
sys/dev/drm/i915/intel_dpll_mgr.c
2595
MISSING_CASE(index);
sys/dev/drm/i915/intel_drv.h
1153
uint32_t (*get_aux_clock_divider)(struct intel_dp *dp, int index);
sys/dev/drm/i915/intel_drv.h
1163
i915_reg_t (*aux_ch_data_reg)(struct intel_dp *dp, int index);
sys/dev/drm/i915/intel_mocs.c
208
static i915_reg_t mocs_register(enum intel_engine_id engine_id, int index)
sys/dev/drm/i915/intel_mocs.c
212
return GEN9_GFX_MOCS(index);
sys/dev/drm/i915/intel_mocs.c
214
return GEN9_MFX0_MOCS(index);
sys/dev/drm/i915/intel_mocs.c
216
return GEN9_BLT_MOCS(index);
sys/dev/drm/i915/intel_mocs.c
218
return GEN9_VEBOX_MOCS(index);
sys/dev/drm/i915/intel_mocs.c
220
return GEN9_MFX1_MOCS(index);
sys/dev/drm/i915/intel_mocs.c
222
return GEN11_MFX2_MOCS(index);
sys/dev/drm/i915/intel_mocs.c
240
unsigned int index;
sys/dev/drm/i915/intel_mocs.c
247
for (index = 0; index < table.size; index++)
sys/dev/drm/i915/intel_mocs.c
248
I915_WRITE(mocs_register(engine->id, index),
sys/dev/drm/i915/intel_mocs.c
249
table.table[index].control_value);
sys/dev/drm/i915/intel_mocs.c
259
for (; index < GEN9_NUM_MOCS_ENTRIES; index++)
sys/dev/drm/i915/intel_mocs.c
260
I915_WRITE(mocs_register(engine->id, index),
sys/dev/drm/i915/intel_mocs.c
278
unsigned int index;
sys/dev/drm/i915/intel_mocs.c
290
for (index = 0; index < table->size; index++) {
sys/dev/drm/i915/intel_mocs.c
291
*cs++ = i915_mmio_reg_offset(mocs_register(engine, index));
sys/dev/drm/i915/intel_mocs.c
292
*cs++ = table->table[index].control_value;
sys/dev/drm/i915/intel_mocs.c
303
for (; index < GEN9_NUM_MOCS_ENTRIES; index++) {
sys/dev/drm/i915/intel_mocs.c
304
*cs++ = i915_mmio_reg_offset(mocs_register(engine, index));
sys/dev/drm/include/drm/drm_atomic.h
514
int index = drm_connector_index(connector);
sys/dev/drm/include/drm/drm_atomic.h
516
if (index >= state->num_connector)
sys/dev/drm/include/drm/drm_atomic.h
519
return state->connectors[index].state;
sys/dev/drm/include/drm/drm_atomic.h
534
int index = drm_connector_index(connector);
sys/dev/drm/include/drm/drm_atomic.h
536
if (index >= state->num_connector)
sys/dev/drm/include/drm/drm_atomic.h
539
return state->connectors[index].old_state;
sys/dev/drm/include/drm/drm_atomic.h
554
int index = drm_connector_index(connector);
sys/dev/drm/include/drm/drm_atomic.h
556
if (index >= state->num_connector)
sys/dev/drm/include/drm/drm_atomic.h
559
return state->connectors[index].new_state;
sys/dev/drm/include/drm/drm_connector.h
1145
return connector->index;
sys/dev/drm/include/drm/drm_connector.h
1150
return 1 << connector->index;
sys/dev/drm/include/drm/drm_connector.h
866
unsigned index;
sys/dev/drm/include/drm/drm_crtc.h
1128
return crtc->index;
sys/dev/drm/include/drm/drm_crtc.h
907
unsigned index;
sys/dev/drm/include/drm/drm_encoder.h
137
unsigned index;
sys/dev/drm/include/drm/drm_encoder.h
197
return encoder->index;
sys/dev/drm/include/drm/drm_file.h
78
int index; /* Minor device number */
sys/dev/drm/include/drm/drm_modes.h
498
int index);
sys/dev/drm/include/drm/drm_plane.h
635
unsigned index;
sys/dev/drm/include/drm/drm_plane.h
729
return plane->index;
sys/dev/drm/include/linux/bitops.h
419
int index; /* index first long of region in bitmap */
sys/dev/drm/include/linux/bitops.h
432
index = pos / BITS_PER_LONG;
sys/dev/drm/include/linux/bitops.h
433
offset = pos - (index * BITS_PER_LONG);
sys/dev/drm/include/linux/bitops.h
448
if (bitmap[index + i] & mask)
sys/dev/drm/include/linux/bitops.h
456
bitmap[index + i] |= mask;
sys/dev/drm/include/linux/bitops.h
461
bitmap[index + i] &= ~mask;
sys/dev/drm/include/linux/bitops.h
534
sign_extend64(uint64_t value, int index)
sys/dev/drm/include/linux/bitops.h
536
uint8_t shift = 63 - index;
sys/dev/drm/include/linux/radix-tree.h
58
unsigned long index;
sys/dev/drm/include/linux/radix-tree.h
69
for ((iter)->index = (start); \
sys/dev/drm/include/linux/radix-tree.h
70
radix_tree_iter_find(root, iter, &(slot)); (iter)->index++)
sys/dev/drm/include/linux/shmem_fs.h
43
pgoff_t index, gfp_t gfp_mask);
sys/dev/drm/include/linux/xarray.h
125
xa_load(struct xarray *xa, unsigned long index)
sys/dev/drm/include/linux/xarray.h
128
r = __xa_load(xa, index);
sys/dev/drm/include/linux/xarray.h
134
xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
sys/dev/drm/include/linux/xarray.h
138
r = __xa_store(xa, index, entry, gfp);
sys/dev/drm/include/linux/xarray.h
144
xa_erase(struct xarray *xa, unsigned long index)
sys/dev/drm/include/linux/xarray.h
148
r = __xa_erase(xa, index);
sys/dev/drm/include/linux/xarray.h
154
xa_store_irq(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
sys/dev/drm/include/linux/xarray.h
158
r = __xa_store(xa, index, entry, gfp);
sys/dev/drm/include/linux/xarray.h
164
xa_erase_irq(struct xarray *xa, unsigned long index)
sys/dev/drm/include/linux/xarray.h
168
r = __xa_erase(xa, index);
sys/dev/drm/include/linux/xarray.h
41
#define xa_for_each(xa, index, entry) \
sys/dev/drm/include/linux/xarray.h
42
for (index = 0; ((entry) = xa_get_next(xa, &(index))) != NULL; index++)
sys/dev/drm/include/uapi/drm/amdgpu_drm.h
741
__u32 index;
sys/dev/drm/linux_radix.c
101
index += step;
sys/dev/drm/linux_radix.c
102
index &= -step;
sys/dev/drm/linux_radix.c
103
if ((index & mask) == 0)
sys/dev/drm/linux_radix.c
110
iter->index = index;
sys/dev/drm/linux_radix.c
115
radix_tree_delete(struct radix_tree_root *root, unsigned long index)
sys/dev/drm/linux_radix.c
126
if (index > radix_max(root))
sys/dev/drm/linux_radix.c
133
node = node->slots[radix_pos(index, height--)];
sys/dev/drm/linux_radix.c
135
idx = radix_pos(index, 0);
sys/dev/drm/linux_radix.c
155
idx = radix_pos(index, height);
sys/dev/drm/linux_radix.c
165
radix_tree_delete(root, iter->index);
sys/dev/drm/linux_radix.c
169
radix_tree_insert(struct radix_tree_root *root, unsigned long index, void *item)
sys/dev/drm/linux_radix.c
193
while (radix_max(root) < index) {
sys/dev/drm/linux_radix.c
219
idx = radix_pos(index, height);
sys/dev/drm/linux_radix.c
244
idx = radix_pos(index, height);
sys/dev/drm/linux_radix.c
253
idx = radix_pos(index, 0);
sys/dev/drm/linux_radix.c
55
radix_tree_lookup(struct radix_tree_root *root, unsigned long index)
sys/dev/drm/linux_radix.c
64
if (index > radix_max(root))
sys/dev/drm/linux_radix.c
67
node = node->slots[radix_pos(index, height--)];
sys/dev/drm/linux_radix.c
69
item = node->slots[radix_pos(index, 0)];
sys/dev/drm/linux_radix.c
80
unsigned long index = iter->index;
sys/dev/drm/linux_radix.c
88
if (height == -1 || index > radix_max(root))
sys/dev/drm/linux_radix.c
93
int pos = radix_pos(index, height);
sys/dev/drm/linux_shmem.c
91
pgoff_t index, gfp_t gfp_mask)
sys/dev/drm/linux_shmem.c
93
return shmem_read_mapping_page(mapping, index);
sys/dev/drm/radeon/atom.c
103
uint32_t index, uint32_t data)
sys/dev/drm/radeon/atom.c
1163
static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params)
sys/dev/drm/radeon/atom.c
1165
int base = CU16(ctx->cmd_table + 4 + 2 * index);
sys/dev/drm/radeon/atom.c
1224
int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uint32_t * params)
sys/dev/drm/radeon/atom.c
1240
r = atom_execute_table_locked(ctx, index, params);
sys/dev/drm/radeon/atom.c
1245
int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params)
sys/dev/drm/radeon/atom.c
1249
r = atom_execute_table_scratch_unlocked(ctx, index, params);
sys/dev/drm/radeon/atom.c
1366
bool atom_parse_data_header(struct atom_context *ctx, int index,
sys/dev/drm/radeon/atom.c
1370
int offset = index * 2 + 4;
sys/dev/drm/radeon/atom.c
1374
if (!mdt[index])
sys/dev/drm/radeon/atom.c
1387
bool atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t * frev,
sys/dev/drm/radeon/atom.c
1390
int offset = index * 2 + 4;
sys/dev/drm/radeon/atom.c
1394
if (!mct[index])
sys/dev/drm/radeon/atom.c
140
((index >> CU8(base + 2)) &
sys/dev/drm/radeon/atom.c
1406
int index = GetIndexIntoMasterTable(DATA, VRAM_UsageByFirmware);
sys/dev/drm/radeon/atom.c
1411
if (atom_parse_data_header(ctx, index, NULL, NULL, NULL, &data_offset)) {
sys/dev/drm/radeon/atom.c
66
static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params);
sys/dev/drm/radeon/atom.h
152
bool atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size,
sys/dev/drm/radeon/atom.h
154
bool atom_parse_cmd_header(struct atom_context *ctx, int index,
sys/dev/drm/radeon/atombios_crtc.c
1268
unsigned index, num_banks;
sys/dev/drm/radeon/atombios_crtc.c
1278
for (index = 0; tileb > 64; index++)
sys/dev/drm/radeon/atombios_crtc.c
1281
if (index >= 16) {
sys/dev/drm/radeon/atombios_crtc.c
1288
num_banks = (rdev->config.cik.macrotile_mode_array[index] >> 6) & 0x3;
sys/dev/drm/radeon/atombios_crtc.c
1292
index = 10;
sys/dev/drm/radeon/atombios_crtc.c
1295
index = SI_TILE_MODE_COLOR_2D_SCANOUT_16BPP;
sys/dev/drm/radeon/atombios_crtc.c
1299
index = SI_TILE_MODE_COLOR_2D_SCANOUT_32BPP;
sys/dev/drm/radeon/atombios_crtc.c
1303
num_banks = (rdev->config.si.tile_mode_array[index] >> 20) & 0x3;
sys/dev/drm/radeon/atombios_crtc.c
157
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
169
int index =
sys/dev/drm/radeon/atombios_crtc.c
178
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
186
int index = GetIndexIntoMasterTable(COMMAND, EnableCRTC);
sys/dev/drm/radeon/atombios_crtc.c
194
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
202
int index = GetIndexIntoMasterTable(COMMAND, EnableCRTCMemReq);
sys/dev/drm/radeon/atombios_crtc.c
210
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
228
int index = GetIndexIntoMasterTable(COMMAND, BlankCRTC);
sys/dev/drm/radeon/atombios_crtc.c
242
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
254
int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
sys/dev/drm/radeon/atombios_crtc.c
262
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
307
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_UsingDTDTiming);
sys/dev/drm/radeon/atombios_crtc.c
344
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
354
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_Timing);
sys/dev/drm/radeon/atombios_crtc.c
390
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
43
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_OverScan);
sys/dev/drm/radeon/atombios_crtc.c
448
int index = GetIndexIntoMasterTable(COMMAND, EnableSpreadSpectrumOnPPLL);
sys/dev/drm/radeon/atombios_crtc.c
547
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
678
int index;
sys/dev/drm/radeon/atombios_crtc.c
680
index = GetIndexIntoMasterTable(COMMAND, AdjustDisplayPll);
sys/dev/drm/radeon/atombios_crtc.c
681
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev,
sys/dev/drm/radeon/atombios_crtc.c
700
index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
733
index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
77
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
775
int index;
sys/dev/drm/radeon/atombios_crtc.c
780
index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
sys/dev/drm/radeon/atombios_crtc.c
781
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev,
sys/dev/drm/radeon/atombios_crtc.c
817
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_crtc.c
837
int index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
sys/dev/drm/radeon/atombios_crtc.c
842
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev,
sys/dev/drm/radeon/atombios_crtc.c
86
int index = GetIndexIntoMasterTable(COMMAND, EnableScaler);
sys/dev/drm/radeon/atombios_crtc.c
957
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_dp.c
115
atom_execute_table_scratch_unlocked(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_dp.c
347
int index = GetIndexIntoMasterTable(COMMAND, DPEncoderService);
sys/dev/drm/radeon/atombios_dp.c
356
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_dp.c
796
int index;
sys/dev/drm/radeon/atombios_dp.c
817
index = GetIndexIntoMasterTable(COMMAND, DPEncoderService);
sys/dev/drm/radeon/atombios_dp.c
818
if (atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) {
sys/dev/drm/radeon/atombios_dp.c
93
int index = GetIndexIntoMasterTable(COMMAND, ProcessAuxChannelTransaction);
sys/dev/drm/radeon/atombios_encoders.c
1050
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1077
int index = 0;
sys/dev/drm/radeon/atombios_encoders.c
108
index = GetIndexIntoMasterTable(COMMAND, LCD1OutputControl);
sys/dev/drm/radeon/atombios_encoders.c
111
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1126
index = GetIndexIntoMasterTable(COMMAND, DVOOutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1132
index = GetIndexIntoMasterTable(COMMAND, UNIPHYTransmitterControl);
sys/dev/drm/radeon/atombios_encoders.c
1135
index = GetIndexIntoMasterTable(COMMAND, LVTMATransmitterControl);
sys/dev/drm/radeon/atombios_encoders.c
1139
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/atombios_encoders.c
114
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
116
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1432
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1448
int index = GetIndexIntoMasterTable(COMMAND, UNIPHYTransmitterControl);
sys/dev/drm/radeon/atombios_encoders.c
1461
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/atombios_encoders.c
1468
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1501
int index = GetIndexIntoMasterTable(COMMAND, ExternalEncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
1526
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/atombios_encoders.c
1590
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1601
int index = GetIndexIntoMasterTable(COMMAND, EnableYUV);
sys/dev/drm/radeon/atombios_encoders.c
1625
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1637
int index = 0;
sys/dev/drm/radeon/atombios_encoders.c
1644
index = GetIndexIntoMasterTable(COMMAND, TMDSAOutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1649
index = GetIndexIntoMasterTable(COMMAND, DVOOutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1652
index = GetIndexIntoMasterTable(COMMAND, LCD1OutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1656
index = GetIndexIntoMasterTable(COMMAND, LCD1OutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1658
index = GetIndexIntoMasterTable(COMMAND, LVTMAOutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1663
index = GetIndexIntoMasterTable(COMMAND, TV1OutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1665
index = GetIndexIntoMasterTable(COMMAND, CV1OutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1667
index = GetIndexIntoMasterTable(COMMAND, DAC1OutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1672
index = GetIndexIntoMasterTable(COMMAND, TV1OutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1674
index = GetIndexIntoMasterTable(COMMAND, CV1OutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1676
index = GetIndexIntoMasterTable(COMMAND, DAC2OutputControl);
sys/dev/drm/radeon/atombios_encoders.c
1689
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1692
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1700
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1708
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1711
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
1924
int index = GetIndexIntoMasterTable(COMMAND, SelectCRTC_Source);
sys/dev/drm/radeon/atombios_encoders.c
1930
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/atombios_encoders.c
2059
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
2071
int index = GetIndexIntoMasterTable(COMMAND, SelectCRTC_Source);
sys/dev/drm/radeon/atombios_encoders.c
2077
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/atombios_encoders.c
2109
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
2403
int index = GetIndexIntoMasterTable(COMMAND, DAC_LoadDetection);
sys/dev/drm/radeon/atombios_encoders.c
2408
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/atombios_encoders.c
2433
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
260
"radeon_bl%d", dev->primary->index);
sys/dev/drm/radeon/atombios_encoders.c
411
int index = 0;
sys/dev/drm/radeon/atombios_encoders.c
419
index = GetIndexIntoMasterTable(COMMAND, DAC1EncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
423
index = GetIndexIntoMasterTable(COMMAND, DAC2EncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
452
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
463
int index = 0;
sys/dev/drm/radeon/atombios_encoders.c
468
index = GetIndexIntoMasterTable(COMMAND, TVEncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
508
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
552
int index = GetIndexIntoMasterTable(COMMAND, DVOEncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
557
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/atombios_encoders.c
609
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
625
int index = 0;
sys/dev/drm/radeon/atombios_encoders.c
639
index = GetIndexIntoMasterTable(COMMAND, LVDSEncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
643
index = GetIndexIntoMasterTable(COMMAND, TMDS1EncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
647
index = GetIndexIntoMasterTable(COMMAND, LVDSEncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
649
index = GetIndexIntoMasterTable(COMMAND, TMDS2EncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
653
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/atombios_encoders.c
727
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/atombios_encoders.c
907
int index = 0;
sys/dev/drm/radeon/atombios_encoders.c
930
index = GetIndexIntoMasterTable(COMMAND, DIGxEncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
933
index = GetIndexIntoMasterTable(COMMAND, DIG2EncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
935
index = GetIndexIntoMasterTable(COMMAND, DIG1EncoderControl);
sys/dev/drm/radeon/atombios_encoders.c
938
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/atombios_encoders.c
94
int index;
sys/dev/drm/radeon/atombios_i2c.c
43
int index = GetIndexIntoMasterTable(COMMAND, ProcessI2cChannelTransaction);
sys/dev/drm/radeon/atombios_i2c.c
86
atom_execute_table_scratch_unlocked(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/ci_dpm.c
3420
u32 index, u32 pcie_gen, u32 pcie_lanes)
sys/dev/drm/radeon/ci_dpm.c
3422
dpm_table->dpm_levels[index].value = pcie_gen;
sys/dev/drm/radeon/ci_dpm.c
3423
dpm_table->dpm_levels[index].param1 = pcie_lanes;
sys/dev/drm/radeon/ci_dpm.c
3424
dpm_table->dpm_levels[index].enabled = true;
sys/dev/drm/radeon/ci_dpm.c
5507
struct radeon_ps *rps, int index,
sys/dev/drm/radeon/ci_dpm.c
5512
struct ci_pl *pl = &ps->performance_levels[index];
sys/dev/drm/radeon/ci_dpm.c
5514
ps->performance_level_count = index + 1;
sys/dev/drm/radeon/ci_dpm.c
5586
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/ci_dpm.c
5593
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/ci_dpm.c
5680
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/drm/radeon/ci_dpm.c
5685
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/ci_dpm.c
5718
int index = GetIndexIntoMasterTable(DATA, ASIC_InternalSS_Info);
sys/dev/drm/radeon/ci_dpm.c
5953
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/cik.c
1723
u32 cik_mm_rdoorbell(struct radeon_device *rdev, u32 index)
sys/dev/drm/radeon/cik.c
1725
if (index < rdev->doorbell.num_doorbells) {
sys/dev/drm/radeon/cik.c
1726
return readl(rdev->doorbell.ptr + index);
sys/dev/drm/radeon/cik.c
1728
DRM_ERROR("reading beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/drm/radeon/cik.c
1743
void cik_mm_wdoorbell(struct radeon_device *rdev, u32 index, u32 v)
sys/dev/drm/radeon/cik.c
1745
if (index < rdev->doorbell.num_doorbells) {
sys/dev/drm/radeon/cik.c
1746
writel(v, rdev->doorbell.ptr + index);
sys/dev/drm/radeon/cik.c
1748
DRM_ERROR("writing beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/drm/radeon/cik_sdma.c
648
unsigned index;
sys/dev/drm/radeon/cik_sdma.c
653
index = R600_WB_DMA_RING_TEST_OFFSET;
sys/dev/drm/radeon/cik_sdma.c
655
index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
sys/dev/drm/radeon/cik_sdma.c
657
gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/drm/radeon/cik_sdma.c
660
rdev->wb.wb[index/4] = cpu_to_le32(tmp);
sys/dev/drm/radeon/cik_sdma.c
675
tmp = le32_to_cpu(rdev->wb.wb[index/4]);
sys/dev/drm/radeon/cik_sdma.c
704
unsigned index;
sys/dev/drm/radeon/cik_sdma.c
710
index = R600_WB_DMA_RING_TEST_OFFSET;
sys/dev/drm/radeon/cik_sdma.c
712
index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
sys/dev/drm/radeon/cik_sdma.c
714
gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/drm/radeon/cik_sdma.c
717
rdev->wb.wb[index/4] = cpu_to_le32(tmp);
sys/dev/drm/radeon/cik_sdma.c
749
tmp = le32_to_cpu(rdev->wb.wb[index/4]);
sys/dev/drm/radeon/cypress_dpm.c
1232
voltage->index = eg_pi->mvdd_high_index;
sys/dev/drm/radeon/cypress_dpm.c
411
voltage->index = (u8)i;
sys/dev/drm/radeon/cypress_dpm.c
663
voltage->index = eg_pi->mvdd_high_index;
sys/dev/drm/radeon/cypress_dpm.c
669
voltage->index = eg_pi->mvdd_low_index;
sys/dev/drm/radeon/cypress_dpm.c
672
voltage->index = eg_pi->mvdd_high_index;
sys/dev/drm/radeon/kv_dpm.c
2251
u32 index, bool enable)
sys/dev/drm/radeon/kv_dpm.c
2255
pi->graphics_level[index].EnabledForThrottle = enable ? 1 : 0;
sys/dev/drm/radeon/kv_dpm.c
2489
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/radeon/kv_dpm.c
2495
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/kv_dpm.c
2607
struct radeon_ps *rps, int index,
sys/dev/drm/radeon/kv_dpm.c
2612
struct kv_pl *pl = &ps->levels[index];
sys/dev/drm/radeon/kv_dpm.c
2620
ps->num_levels = index + 1;
sys/dev/drm/radeon/kv_dpm.c
2639
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/kv_dpm.c
2645
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/kv_dpm.c
531
u32 index, u32 sclk)
sys/dev/drm/radeon/kv_dpm.c
542
pi->graphics_level[index].SclkDid = (u8)dividers.post_div;
sys/dev/drm/radeon/kv_dpm.c
543
pi->graphics_level[index].SclkFrequency = cpu_to_be32(sclk);
sys/dev/drm/radeon/kv_dpm.c
612
static int kv_set_vid(struct radeon_device *rdev, u32 index, u32 vid)
sys/dev/drm/radeon/kv_dpm.c
616
pi->graphics_level[index].VoltageDownH = (u8)pi->voltage_drop_t;
sys/dev/drm/radeon/kv_dpm.c
617
pi->graphics_level[index].MinVddNb =
sys/dev/drm/radeon/kv_dpm.c
623
static int kv_set_at(struct radeon_device *rdev, u32 index, u32 at)
sys/dev/drm/radeon/kv_dpm.c
627
pi->graphics_level[index].AT = cpu_to_be16((u16)at);
sys/dev/drm/radeon/kv_dpm.c
633
u32 index, bool enable)
sys/dev/drm/radeon/kv_dpm.c
637
pi->graphics_level[index].EnabledForActivity = enable ? 1 : 0;
sys/dev/drm/radeon/ni_dpm.c
1308
voltage->index = (u8)i;
sys/dev/drm/radeon/ni_dpm.c
1328
voltage->index = eg_pi->mvdd_high_index;
sys/dev/drm/radeon/ni_dpm.c
1334
voltage->index = eg_pi->mvdd_low_index;
sys/dev/drm/radeon/ni_dpm.c
1337
voltage->index = eg_pi->mvdd_high_index;
sys/dev/drm/radeon/ni_dpm.c
1347
((u32)voltage->index < rdev->pm.dpm.dyn_state.cac_leakage_table.count))
sys/dev/drm/radeon/ni_dpm.c
1348
*std_voltage = rdev->pm.dpm.dyn_state.cac_leakage_table.entries[voltage->index].vddc;
sys/dev/drm/radeon/ni_dpm.c
1356
u16 value, u8 index,
sys/dev/drm/radeon/ni_dpm.c
1359
voltage->index = index;
sys/dev/drm/radeon/ni_dpm.c
1675
voltage->index = eg_pi->mvdd_high_index;
sys/dev/drm/radeon/ni_dpm.c
1739
table->initialState.levels[0].vddc.index,
sys/dev/drm/radeon/ni_dpm.c
1824
table->ACPIState.levels[0].vddc.index,
sys/dev/drm/radeon/ni_dpm.c
1849
table->ACPIState.levels[0].vddc.index,
sys/dev/drm/radeon/ni_dpm.c
2378
level->vddc.index, &level->std_vddc);
sys/dev/drm/radeon/ni_dpm.c
3921
struct radeon_ps *rps, int index,
sys/dev/drm/radeon/ni_dpm.c
3927
struct rv7xx_pl *pl = &ps->performance_levels[index];
sys/dev/drm/radeon/ni_dpm.c
3929
ps->performance_level_count = index + 1;
sys/dev/drm/radeon/ni_dpm.c
3993
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/ni_dpm.c
3998
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/nislands_smc.h
90
uint8_t index;
sys/dev/drm/radeon/r600_dma.c
233
unsigned index;
sys/dev/drm/radeon/r600_dma.c
238
index = R600_WB_DMA_RING_TEST_OFFSET;
sys/dev/drm/radeon/r600_dma.c
240
index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
sys/dev/drm/radeon/r600_dma.c
242
gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/drm/radeon/r600_dma.c
245
rdev->wb.wb[index/4] = cpu_to_le32(tmp);
sys/dev/drm/radeon/r600_dma.c
259
tmp = le32_to_cpu(rdev->wb.wb[index/4]);
sys/dev/drm/radeon/r600_dma.c
339
unsigned index;
sys/dev/drm/radeon/r600_dma.c
345
index = R600_WB_DMA_RING_TEST_OFFSET;
sys/dev/drm/radeon/r600_dma.c
347
index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
sys/dev/drm/radeon/r600_dma.c
349
gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/drm/radeon/r600_dma.c
380
tmp = le32_to_cpu(rdev->wb.wb[index/4]);
sys/dev/drm/radeon/r600_dpm.c
353
u32 index, u32 u_t, u32 d_t)
sys/dev/drm/radeon/r600_dpm.c
355
WREG32(CG_FFCT_0 + (index * 4), UTC_0(u_t) | DTC_0(d_t));
sys/dev/drm/radeon/r600_dpm.c
447
u32 index, bool enable)
sys/dev/drm/radeon/r600_dpm.c
450
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
453
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
458
u32 index, bool enable)
sys/dev/drm/radeon/r600_dpm.c
461
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
464
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
469
u32 index, bool enable)
sys/dev/drm/radeon/r600_dpm.c
472
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
475
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
480
u32 index, u32 divider)
sys/dev/drm/radeon/r600_dpm.c
482
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART1 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
487
u32 index, u32 divider)
sys/dev/drm/radeon/r600_dpm.c
489
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART1 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
494
u32 index, u32 divider)
sys/dev/drm/radeon/r600_dpm.c
496
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART1 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
501
u32 index, u32 step_time)
sys/dev/drm/radeon/r600_dpm.c
503
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART1 + (index * 4 * 2),
sys/dev/drm/radeon/r600_dpm.c
531
enum r600_power_level index, u64 pins)
sys/dev/drm/radeon/r600_dpm.c
534
u32 ix = 3 - (3 & index);
sys/dev/drm/radeon/r600_dpm.c
563
enum r600_power_level index, bool enable)
sys/dev/drm/radeon/r600_dpm.c
565
u32 ix = 3 - (3 & index);
sys/dev/drm/radeon/r600_dpm.c
576
enum r600_power_level index, u32 voltage_index)
sys/dev/drm/radeon/r600_dpm.c
578
u32 ix = 3 - (3 & index);
sys/dev/drm/radeon/r600_dpm.c
585
enum r600_power_level index, u32 mem_clock_index)
sys/dev/drm/radeon/r600_dpm.c
587
u32 ix = 3 - (3 & index);
sys/dev/drm/radeon/r600_dpm.c
594
enum r600_power_level index, u32 eng_clock_index)
sys/dev/drm/radeon/r600_dpm.c
596
u32 ix = 3 - (3 & index);
sys/dev/drm/radeon/r600_dpm.c
603
enum r600_power_level index,
sys/dev/drm/radeon/r600_dpm.c
606
u32 ix = 3 - (3 & index);
sys/dev/drm/radeon/r600_dpm.c
615
enum r600_power_level index, bool compatible)
sys/dev/drm/radeon/r600_dpm.c
617
u32 ix = 3 - (3 & index);
sys/dev/drm/radeon/r600_dpm.c
644
enum r600_power_level index)
sys/dev/drm/radeon/r600_dpm.c
646
WREG32_P(TARGET_AND_CURRENT_PROFILE_INDEX, DYN_PWR_ENTER_INDEX(index),
sys/dev/drm/radeon/r600_dpm.c
651
enum r600_power_level index)
sys/dev/drm/radeon/r600_dpm.c
656
if (r600_power_level_get_target_index(rdev) != index)
sys/dev/drm/radeon/r600_dpm.c
662
if (r600_power_level_get_current_index(rdev) != index)
sys/dev/drm/radeon/r600_dpm.c
669
enum r600_power_level index)
sys/dev/drm/radeon/r600_dpm.c
674
if (r600_power_level_get_target_index(rdev) == index)
sys/dev/drm/radeon/r600_dpm.c
680
if (r600_power_level_get_current_index(rdev) == index)
sys/dev/drm/radeon/r600_dpm.c
850
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/r600_dpm.c
854
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/r600_dpm.c
880
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/r600_dpm.c
885
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/r600_dpm.h
155
void r600_set_tc(struct radeon_device *rdev, u32 index, u32 u_t, u32 d_t);
sys/dev/drm/radeon/r600_dpm.h
173
u32 index, bool enable);
sys/dev/drm/radeon/r600_dpm.h
175
u32 index, bool enable);
sys/dev/drm/radeon/r600_dpm.h
177
u32 index, bool enable);
sys/dev/drm/radeon/r600_dpm.h
179
u32 index, u32 divider);
sys/dev/drm/radeon/r600_dpm.h
181
u32 index, u32 divider);
sys/dev/drm/radeon/r600_dpm.h
183
u32 index, u32 divider);
sys/dev/drm/radeon/r600_dpm.h
185
u32 index, u32 step_time);
sys/dev/drm/radeon/r600_dpm.h
192
enum r600_power_level index, u64 pins);
sys/dev/drm/radeon/r600_dpm.h
196
enum r600_power_level index, bool enable);
sys/dev/drm/radeon/r600_dpm.h
198
enum r600_power_level index, u32 voltage_index);
sys/dev/drm/radeon/r600_dpm.h
200
enum r600_power_level index, u32 mem_clock_index);
sys/dev/drm/radeon/r600_dpm.h
202
enum r600_power_level index, u32 eng_clock_index);
sys/dev/drm/radeon/r600_dpm.h
204
enum r600_power_level index,
sys/dev/drm/radeon/r600_dpm.h
207
enum r600_power_level index, bool compatible);
sys/dev/drm/radeon/r600_dpm.h
211
enum r600_power_level index);
sys/dev/drm/radeon/r600_dpm.h
213
enum r600_power_level index);
sys/dev/drm/radeon/r600_dpm.h
215
enum r600_power_level index);
sys/dev/drm/radeon/radeon.h
2511
u32 cik_mm_rdoorbell(struct radeon_device *rdev, u32 index);
sys/dev/drm/radeon/radeon.h
2512
void cik_mm_wdoorbell(struct radeon_device *rdev, u32 index, u32 v);
sys/dev/drm/radeon/radeon.h
2592
#define RDOORBELL32(index) cik_mm_rdoorbell(rdev, (index))
sys/dev/drm/radeon/radeon.h
2593
#define WDOORBELL32(index, v) cik_mm_wdoorbell(rdev, (index), (v))
sys/dev/drm/radeon/radeon.h
2968
bool radeon_atom_get_tv_timings(struct radeon_device *rdev, int index,
sys/dev/drm/radeon/radeon_atombios.c
1112
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/radeon/radeon_atombios.c
1117
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
1130
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/drm/radeon/radeon_atombios.c
1140
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
127
int index = GetIndexIntoMasterTable(DATA, GPIO_I2C_Info);
sys/dev/drm/radeon/radeon_atombios.c
1299
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/radeon/radeon_atombios.c
1308
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
1335
int index = GetIndexIntoMasterTable(DATA, TMDS_Info);
sys/dev/drm/radeon/radeon_atombios.c
1342
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
135
if (atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/drm/radeon/radeon_atombios.c
1383
int index = GetIndexIntoMasterTable(DATA, PPLL_SS_Info);
sys/dev/drm/radeon/radeon_atombios.c
1391
if (atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
1423
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/radeon/radeon_atombios.c
1430
if (atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
1511
int index = GetIndexIntoMasterTable(DATA, ASIC_InternalSS_Info);
sys/dev/drm/radeon/radeon_atombios.c
1528
if (atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
1624
int index = GetIndexIntoMasterTable(DATA, LVDS_Info);
sys/dev/drm/radeon/radeon_atombios.c
163
int index = GetIndexIntoMasterTable(DATA, GPIO_I2C_Info);
sys/dev/drm/radeon/radeon_atombios.c
1631
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
169
if (atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/drm/radeon/radeon_atombios.c
1764
int index = GetIndexIntoMasterTable(DATA, CompassionateData);
sys/dev/drm/radeon/radeon_atombios.c
1771
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
1789
bool radeon_atom_get_tv_timings(struct radeon_device *rdev, int index,
sys/dev/drm/radeon/radeon_atombios.c
1807
if (index >= MAX_SUPPORTED_TV_TIMING)
sys/dev/drm/radeon/radeon_atombios.c
1810
mode->crtc_htotal = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_Total);
sys/dev/drm/radeon/radeon_atombios.c
1811
mode->crtc_hdisplay = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_Disp);
sys/dev/drm/radeon/radeon_atombios.c
1812
mode->crtc_hsync_start = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncStart);
sys/dev/drm/radeon/radeon_atombios.c
1813
mode->crtc_hsync_end = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncStart) +
sys/dev/drm/radeon/radeon_atombios.c
1814
le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncWidth);
sys/dev/drm/radeon/radeon_atombios.c
1816
mode->crtc_vtotal = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_Total);
sys/dev/drm/radeon/radeon_atombios.c
1817
mode->crtc_vdisplay = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_Disp);
sys/dev/drm/radeon/radeon_atombios.c
1818
mode->crtc_vsync_start = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncStart);
sys/dev/drm/radeon/radeon_atombios.c
1819
mode->crtc_vsync_end = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncStart) +
sys/dev/drm/radeon/radeon_atombios.c
1820
le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncWidth);
sys/dev/drm/radeon/radeon_atombios.c
1823
misc = le16_to_cpu(tv_info->aModeTimings[index].susModeMiscInfo.usAccess);
sys/dev/drm/radeon/radeon_atombios.c
1836
le16_to_cpu(tv_info->aModeTimings[index].usPixelClock) * 10;
sys/dev/drm/radeon/radeon_atombios.c
1838
if (index == 1) {
sys/dev/drm/radeon/radeon_atombios.c
1846
if (index >= MAX_SUPPORTED_TV_TIMING_V1_2)
sys/dev/drm/radeon/radeon_atombios.c
1849
dtd_timings = &tv_info_v1_2->aModeTimings[index];
sys/dev/drm/radeon/radeon_atombios.c
1890
int index = GetIndexIntoMasterTable(DATA, AnalogTV_Info);
sys/dev/drm/radeon/radeon_atombios.c
1896
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
1950
int index = GetIndexIntoMasterTable(DATA, CompassionateData);
sys/dev/drm/radeon/radeon_atombios.c
1957
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
196
int index = GetIndexIntoMasterTable(DATA, GPIO_Pin_LUT);
sys/dev/drm/radeon/radeon_atombios.c
205
if (atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/drm/radeon/radeon_atombios.c
2089
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/radeon_atombios.c
2093
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
2376
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/drm/radeon/radeon_atombios.c
2385
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
2580
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/radeon_atombios.c
2584
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
2671
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/radeon_atombios.c
2676
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
2756
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/radeon_atombios.c
2763
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/radeon_atombios.c
2834
int index = GetIndexIntoMasterTable(COMMAND, ComputeMemoryEnginePLL);
sys/dev/drm/radeon/radeon_atombios.c
2840
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/radeon_atombios.c
2849
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
2863
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
2878
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
2898
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
2917
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
2928
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
2950
int index = GetIndexIntoMasterTable(COMMAND, ComputeMemoryClockParam);
sys/dev/drm/radeon/radeon_atombios.c
2956
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/radeon_atombios.c
2969
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
2998
int index = GetIndexIntoMasterTable(COMMAND, DynamicClockGating);
sys/dev/drm/radeon/radeon_atombios.c
3002
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3008
int index = GetIndexIntoMasterTable(COMMAND, GetEngineClock);
sys/dev/drm/radeon/radeon_atombios.c
3010
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3017
int index = GetIndexIntoMasterTable(COMMAND, GetMemoryClock);
sys/dev/drm/radeon/radeon_atombios.c
3019
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3027
int index = GetIndexIntoMasterTable(COMMAND, SetEngineClock);
sys/dev/drm/radeon/radeon_atombios.c
3031
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3038
int index = GetIndexIntoMasterTable(COMMAND, SetMemoryClock);
sys/dev/drm/radeon/radeon_atombios.c
3045
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3052
int index = GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings);
sys/dev/drm/radeon/radeon_atombios.c
3064
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3071
int index = GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings);
sys/dev/drm/radeon/radeon_atombios.c
3075
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3082
int index = GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings);
sys/dev/drm/radeon/radeon_atombios.c
3087
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3100
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/drm/radeon/radeon_atombios.c
3103
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/radeon_atombios.c
3131
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3138
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/drm/radeon/radeon_atombios.c
3141
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/radeon_atombios.c
3152
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3161
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3184
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/drm/radeon/radeon_atombios.c
3187
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/radeon_atombios.c
3197
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3214
int index = GetIndexIntoMasterTable(DATA, ASIC_ProfilingInfo);
sys/dev/drm/radeon/radeon_atombios.c
3224
if (!atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
3304
int index = GetIndexIntoMasterTable(COMMAND, GetVoltageInfo);
sys/dev/drm/radeon/radeon_atombios.c
3324
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3336
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/drm/radeon/radeon_atombios.c
3339
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/drm/radeon/radeon_atombios.c
3350
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3358
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
sys/dev/drm/radeon/radeon_atombios.c
3437
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/radeon/radeon_atombios.c
3443
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
3496
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/radeon/radeon_atombios.c
3502
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
3539
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/radeon/radeon_atombios.c
3545
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
3598
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/radeon/radeon_atombios.c
3604
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
3648
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/radeon/radeon_atombios.c
3654
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
3716
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/drm/radeon/radeon_atombios.c
3723
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
3816
int index = GetIndexIntoMasterTable(DATA, VRAM_Info);
sys/dev/drm/radeon/radeon_atombios.c
3823
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
3906
int index = GetIndexIntoMasterTable(DATA, VRAM_Info);
sys/dev/drm/radeon/radeon_atombios.c
3915
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
3979
int index = GetIndexIntoMasterTable(DATA, VRAM_Info);
sys/dev/drm/radeon/radeon_atombios.c
3987
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/drm/radeon/radeon_atombios.c
42
u8 index)
sys/dev/drm/radeon/radeon_atombios.c
514
int index = GetIndexIntoMasterTable(DATA, Object_Header);
sys/dev/drm/radeon/radeon_atombios.c
530
if (!atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset))
sys/dev/drm/radeon/radeon_atombios.c
58
if ((index == 7) &&
sys/dev/drm/radeon/radeon_atombios.c
584
index =
sys/dev/drm/radeon/radeon_atombios.c
588
if (atom_parse_data_header(ctx, index, &size, &frev,
sys/dev/drm/radeon/radeon_atombios.c
71
if ((index == 4) &&
sys/dev/drm/radeon/radeon_atombios.c
852
int index = GetIndexIntoMasterTable(DATA, XTMDS_Info);
sys/dev/drm/radeon/radeon_atombios.c
857
if (atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset)) {
sys/dev/drm/radeon/radeon_atombios.c
896
int index = GetIndexIntoMasterTable(DATA, SupportedDevicesInfo);
sys/dev/drm/radeon/radeon_atombios.c
914
if (!atom_parse_data_header(ctx, index, &size, &frev, &crev,
sys/dev/drm/radeon/radeon_combios.c
2881
uint32_t index, id;
sys/dev/drm/radeon/radeon_combios.c
2895
index = offset + 4;
sys/dev/drm/radeon/radeon_combios.c
2897
id = RBIOS16(index);
sys/dev/drm/radeon/radeon_combios.c
2898
index += 2;
sys/dev/drm/radeon/radeon_combios.c
2902
val = RBIOS32(index);
sys/dev/drm/radeon/radeon_combios.c
2903
index += 4;
sys/dev/drm/radeon/radeon_combios.c
2908
and_mask = RBIOS32(index);
sys/dev/drm/radeon/radeon_combios.c
2909
index += 4;
sys/dev/drm/radeon/radeon_combios.c
2910
or_mask = RBIOS32(index);
sys/dev/drm/radeon/radeon_combios.c
2911
index += 4;
sys/dev/drm/radeon/radeon_combios.c
2917
val = RBIOS16(index);
sys/dev/drm/radeon/radeon_combios.c
2918
index += 2;
sys/dev/drm/radeon/radeon_combios.c
2922
val = RBIOS16(index);
sys/dev/drm/radeon/radeon_combios.c
2923
index += 2;
sys/dev/drm/radeon/radeon_combios.c
2929
index++;
sys/dev/drm/radeon/radeon_combios.c
2930
reg = RBIOS8(index);
sys/dev/drm/radeon/radeon_combios.c
2931
index++;
sys/dev/drm/radeon/radeon_combios.c
2932
val = RBIOS8(index);
sys/dev/drm/radeon/radeon_combios.c
2933
index++;
sys/dev/drm/radeon/radeon_combios.c
2950
index = offset + 10;
sys/dev/drm/radeon/radeon_combios.c
2951
id = RBIOS16(index);
sys/dev/drm/radeon/radeon_combios.c
2953
index += 2;
sys/dev/drm/radeon/radeon_combios.c
2957
val = RBIOS32(index);
sys/dev/drm/radeon/radeon_combios.c
2962
and_mask = RBIOS32(index);
sys/dev/drm/radeon/radeon_combios.c
2963
index += 4;
sys/dev/drm/radeon/radeon_combios.c
2964
or_mask = RBIOS32(index);
sys/dev/drm/radeon/radeon_combios.c
2965
index += 4;
sys/dev/drm/radeon/radeon_combios.c
2971
val = RBIOS16(index);
sys/dev/drm/radeon/radeon_combios.c
2972
index += 2;
sys/dev/drm/radeon/radeon_combios.c
2977
and_mask = RBIOS32(index);
sys/dev/drm/radeon/radeon_combios.c
2978
index += 4;
sys/dev/drm/radeon/radeon_combios.c
2979
or_mask = RBIOS32(index);
sys/dev/drm/radeon/radeon_combios.c
2980
index += 4;
sys/dev/drm/radeon/radeon_combios.c
2987
val = RBIOS8(index);
sys/dev/drm/radeon/radeon_combios.c
2988
index += 1;
sys/dev/drm/radeon/radeon_combios.c
2997
id = RBIOS16(index);
sys/dev/drm/radeon/radeon_display.c
669
static void radeon_crtc_init(struct drm_device *dev, int index)
sys/dev/drm/radeon/radeon_display.c
682
radeon_crtc->crtc_id = index;
sys/dev/drm/radeon/radeon_display.c
684
rdev->mode_info.crtcs[index] = radeon_crtc;
sys/dev/drm/radeon/radeon_fence.c
828
uint64_t index;
sys/dev/drm/radeon/radeon_fence.c
835
index = R600_WB_EVENT_OFFSET + ring * 4;
sys/dev/drm/radeon/radeon_fence.c
836
rdev->fence_drv[ring].cpu_addr = &rdev->wb.wb[index/4];
sys/dev/drm/radeon/radeon_fence.c
838
index;
sys/dev/drm/radeon/radeon_fence.c
842
index = ALIGN(rdev->uvd_fw->datasize, 8);
sys/dev/drm/radeon/radeon_fence.c
843
rdev->fence_drv[ring].cpu_addr = (void*)((uint8_t*)rdev->uvd.cpu_addr + index);
sys/dev/drm/radeon/radeon_fence.c
844
rdev->fence_drv[ring].gpu_addr = rdev->uvd.gpu_addr + index;
sys/dev/drm/radeon/radeon_fence.c
853
index = RADEON_WB_SCRATCH_OFFSET +
sys/dev/drm/radeon/radeon_fence.c
856
rdev->fence_drv[ring].cpu_addr = &rdev->wb.wb[index/4];
sys/dev/drm/radeon/radeon_fence.c
857
rdev->fence_drv[ring].gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/drm/radeon/radeon_legacy_encoders.c
396
"radeon_bl%d", dev->primary->index);
sys/dev/drm/radeon/radeon_pm.c
698
int hyst = to_sensor_dev_attr(attr)->index;
sys/dev/drm/radeon/radeon_pm.c
730
struct attribute *attr, int index)
sys/dev/drm/radeon/radeon_ring.c
413
u32 index = RADEON_WB_RING0_NEXT_RPTR + (ring->idx * 4);
sys/dev/drm/radeon/radeon_ring.c
414
ring->next_rptr_gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/drm/radeon/radeon_ring.c
415
ring->next_rptr_cpu_addr = &rdev->wb.wb[index/4];
sys/dev/drm/radeon/rs690.c
66
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/radeon/rs690.c
72
if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL,
sys/dev/drm/radeon/rs780_dpm.c
797
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/rs780_dpm.c
802
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/rs780_dpm.c
849
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/radeon/rs780_dpm.c
871
if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL,
sys/dev/drm/radeon/rv6xx_dpm.c
1818
struct radeon_ps *rps, int index,
sys/dev/drm/radeon/rv6xx_dpm.c
1826
switch (index) {
sys/dev/drm/radeon/rv6xx_dpm.c
1881
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/rv6xx_dpm.c
1886
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/rv6xx_dpm.c
298
u32 clock, u32 index)
sys/dev/drm/radeon/rv6xx_dpm.c
303
rv6xx_output_stepping(rdev, index, &step);
sys/dev/drm/radeon/rv6xx_dpm.c
316
u32 index, u32 clk_s)
sys/dev/drm/radeon/rv6xx_dpm.c
318
WREG32_P(CG_SPLL_SPREAD_SPECTRUM_LOW + (index * 4),
sys/dev/drm/radeon/rv6xx_dpm.c
323
u32 index, u32 clk_v)
sys/dev/drm/radeon/rv6xx_dpm.c
325
WREG32_P(CG_SPLL_SPREAD_SPECTRUM_LOW + (index * 4),
sys/dev/drm/radeon/rv6xx_dpm.c
330
u32 index, bool enable)
sys/dev/drm/radeon/rv6xx_dpm.c
333
WREG32_P(CG_SPLL_SPREAD_SPECTRUM_LOW + (index * 4),
sys/dev/drm/radeon/rv6xx_dpm.c
336
WREG32_P(CG_SPLL_SPREAD_SPECTRUM_LOW + (index * 4),
sys/dev/drm/radeon/rv6xx_dpm.c
371
u32 index, bool enable)
sys/dev/drm/radeon/rv6xx_dpm.c
374
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4),
sys/dev/drm/radeon/rv6xx_dpm.c
377
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4), 0, ~LEVEL0_MPLL_DIV_EN);
sys/dev/drm/radeon/rv6xx_dpm.c
381
u32 index, u32 divider)
sys/dev/drm/radeon/rv6xx_dpm.c
383
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4),
sys/dev/drm/radeon/rv6xx_dpm.c
388
u32 index, u32 divider)
sys/dev/drm/radeon/rv6xx_dpm.c
390
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4), LEVEL0_MPLL_FB_DIV(divider),
sys/dev/drm/radeon/rv6xx_dpm.c
395
u32 index, u32 divider)
sys/dev/drm/radeon/rv6xx_dpm.c
397
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4),
sys/dev/drm/radeon/rv770_dpm.c
1017
voltage->index = MVDD_LOW_INDEX;
sys/dev/drm/radeon/rv770_dpm.c
1020
voltage->index = MVDD_HIGH_INDEX;
sys/dev/drm/radeon/rv770_dpm.c
2179
struct radeon_ps *rps, int index,
sys/dev/drm/radeon/rv770_dpm.c
2188
switch (index) {
sys/dev/drm/radeon/rv770_dpm.c
2279
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/rv770_dpm.c
2284
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/rv770_dpm.c
577
voltage->index = 0;
sys/dev/drm/radeon/rv770_dpm.c
584
voltage->index = pi->vddc_table[i].vddc_index;
sys/dev/drm/radeon/rv770_dpm.c
602
voltage->index = MVDD_HIGH_INDEX;
sys/dev/drm/radeon/rv770_dpm.c
608
voltage->index = MVDD_LOW_INDEX;
sys/dev/drm/radeon/rv770_dpm.c
611
voltage->index = MVDD_HIGH_INDEX;
sys/dev/drm/radeon/rv770_smc.h
79
uint8_t index;
sys/dev/drm/radeon/si_dpm.c
3255
u32 index, u16 *leakage_voltage)
sys/dev/drm/radeon/si_dpm.c
3263
if ((index & 0xff00) != 0xff00)
sys/dev/drm/radeon/si_dpm.c
3266
if ((index & 0xff) > SISLANDS_MAX_LEAKAGE_COUNT + 1)
sys/dev/drm/radeon/si_dpm.c
3269
if (index < SISLANDS_LEAKAGE_INDEX0)
sys/dev/drm/radeon/si_dpm.c
3273
if (si_pi->leakage_voltage.entries[i].leakage_index == index) {
sys/dev/drm/radeon/si_dpm.c
4121
voltage->index = (u8)i;
sys/dev/drm/radeon/si_dpm.c
4141
voltage->index = 0;
sys/dev/drm/radeon/si_dpm.c
4143
voltage->index = (u8)(si_pi->mvdd_voltage_table.count) - 1;
sys/dev/drm/radeon/si_dpm.c
4145
voltage->value = cpu_to_be16(si_pi->mvdd_voltage_table.entries[voltage->index].value);
sys/dev/drm/radeon/si_dpm.c
4193
if ((u32)voltage->index < rdev->pm.dpm.dyn_state.cac_leakage_table.count)
sys/dev/drm/radeon/si_dpm.c
4194
*std_voltage = rdev->pm.dpm.dyn_state.cac_leakage_table.entries[voltage->index].vddc;
sys/dev/drm/radeon/si_dpm.c
4202
u16 value, u8 index,
sys/dev/drm/radeon/si_dpm.c
4205
voltage->index = index;
sys/dev/drm/radeon/si_dpm.c
4434
table->initialState.levels[0].vddc.index,
sys/dev/drm/radeon/si_dpm.c
4525
table->ACPIState.levels[0].vddc.index,
sys/dev/drm/radeon/si_dpm.c
4549
table->ACPIState.levels[0].vddc.index,
sys/dev/drm/radeon/si_dpm.c
5059
level->vddc.index, &level->std_vddc);
sys/dev/drm/radeon/si_dpm.c
6733
struct radeon_ps *rps, int index,
sys/dev/drm/radeon/si_dpm.c
6741
struct rv7xx_pl *pl = &ps->performance_levels[index];
sys/dev/drm/radeon/si_dpm.c
6744
ps->performance_level_count = index + 1;
sys/dev/drm/radeon/si_dpm.c
6772
index == 0) {
sys/dev/drm/radeon/si_dpm.c
6819
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/si_dpm.c
6825
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/sislands_smc.h
135
uint8_t index;
sys/dev/drm/radeon/sumo_dpm.c
1433
struct radeon_ps *rps, int index,
sys/dev/drm/radeon/sumo_dpm.c
1438
struct sumo_pl *pl = &ps->levels[index];
sys/dev/drm/radeon/sumo_dpm.c
1447
ps->num_levels = index + 1;
sys/dev/drm/radeon/sumo_dpm.c
1466
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/sumo_dpm.c
1472
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/sumo_dpm.c
1661
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/radeon/sumo_dpm.c
1667
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/sumo_dpm.c
367
u32 index, u32 value)
sys/dev/drm/radeon/sumo_dpm.c
369
if (index == 0)
sys/dev/drm/radeon/sumo_dpm.c
371
else if (index == 1)
sys/dev/drm/radeon/sumo_dpm.c
373
else if (index == 2)
sys/dev/drm/radeon/sumo_dpm.c
375
else if (index == 3)
sys/dev/drm/radeon/sumo_dpm.c
377
else if (index == 4)
sys/dev/drm/radeon/sumo_dpm.c
379
else if (index == 5)
sys/dev/drm/radeon/sumo_dpm.c
381
else if (index == 6)
sys/dev/drm/radeon/sumo_dpm.c
383
else if (index == 7)
sys/dev/drm/radeon/sumo_dpm.c
477
u32 index, u32 divider)
sys/dev/drm/radeon/sumo_dpm.c
479
u32 reg_index = index / 4;
sys/dev/drm/radeon/sumo_dpm.c
480
u32 field_index = index % 4;
sys/dev/drm/radeon/sumo_dpm.c
497
u32 index, u32 divider)
sys/dev/drm/radeon/sumo_dpm.c
504
dpm_ctrl &= ~(0x7 << (index * 3));
sys/dev/drm/radeon/sumo_dpm.c
505
dpm_ctrl |= (divider << (index * 3));
sys/dev/drm/radeon/sumo_dpm.c
511
u32 index, u32 divider)
sys/dev/drm/radeon/sumo_dpm.c
518
dpm_ctrl &= ~(0x7 << (index * 3));
sys/dev/drm/radeon/sumo_dpm.c
519
dpm_ctrl |= (divider << (index * 3));
sys/dev/drm/radeon/sumo_dpm.c
524
static void sumo_set_vid(struct radeon_device *rdev, u32 index, u32 vid)
sys/dev/drm/radeon/sumo_dpm.c
528
voltage_cntl &= ~(DPM_STATE0_LEVEL_MASK << (index * 2));
sys/dev/drm/radeon/sumo_dpm.c
529
voltage_cntl |= (vid << (DPM_STATE0_LEVEL_SHIFT + index * 2));
sys/dev/drm/radeon/sumo_dpm.c
533
static void sumo_set_allos_gnb_slow(struct radeon_device *rdev, u32 index, u32 gnb_slow)
sys/dev/drm/radeon/sumo_dpm.c
543
cg_sclk_dpm_ctrl_3 &= ~(GNB_SLOW_FSTATE_0_MASK << index);
sys/dev/drm/radeon/sumo_dpm.c
544
cg_sclk_dpm_ctrl_3 |= (temp << (GNB_SLOW_FSTATE_0_SHIFT + index));
sys/dev/drm/radeon/sumo_dpm.c
550
struct sumo_pl *pl, u32 index)
sys/dev/drm/radeon/sumo_dpm.c
562
sumo_set_divider_value(rdev, index, dividers.post_div);
sys/dev/drm/radeon/sumo_dpm.c
564
sumo_set_vid(rdev, index, pl->vddc_index);
sys/dev/drm/radeon/sumo_dpm.c
570
sumo_set_ss_dividers(rdev, index, pl->ss_divider_index);
sys/dev/drm/radeon/sumo_dpm.c
571
sumo_set_ds_dividers(rdev, index, pl->ds_divider_index);
sys/dev/drm/radeon/sumo_dpm.c
577
sumo_set_allos_gnb_slow(rdev, index, pl->allow_gnb_slow);
sys/dev/drm/radeon/sumo_dpm.c
580
sumo_set_tdp_limit(rdev, index, pl->sclk_dpm_tdp_limit);
sys/dev/drm/radeon/sumo_dpm.c
583
static void sumo_power_level_enable(struct radeon_device *rdev, u32 index, bool enable)
sys/dev/drm/radeon/sumo_dpm.c
585
u32 reg_index = index / 4;
sys/dev/drm/radeon/sumo_dpm.c
586
u32 field_index = index % 4;
sys/dev/drm/radeon/sumo_dpm.c
729
static void sumo_set_forced_level(struct radeon_device *rdev, u32 index)
sys/dev/drm/radeon/sumo_dpm.c
731
WREG32_P(CG_SCLK_DPM_CTRL_3, FORCE_SCLK_STATE(index), ~FORCE_SCLK_STATE_MASK);
sys/dev/drm/radeon/sumo_dpm.h
213
void sumo_set_tdp_limit(struct radeon_device *rdev, u32 index, u32 tdp_limit);
sys/dev/drm/radeon/sumo_smc.c
166
void sumo_set_tdp_limit(struct radeon_device *rdev, u32 index, u32 tdp_limit)
sys/dev/drm/radeon/sumo_smc.c
173
switch (index) {
sys/dev/drm/radeon/trinity_dpm.c
1437
struct trinity_ps *ps, u32 index)
sys/dev/drm/radeon/trinity_dpm.c
1442
if (index == 0)
sys/dev/drm/radeon/trinity_dpm.c
1447
if (index == 0)
sys/dev/drm/radeon/trinity_dpm.c
1449
else if (ps->levels[index].sclk < 30000)
sys/dev/drm/radeon/trinity_dpm.c
1713
struct radeon_ps *rps, int index,
sys/dev/drm/radeon/trinity_dpm.c
1718
struct trinity_pl *pl = &ps->levels[index];
sys/dev/drm/radeon/trinity_dpm.c
1726
ps->num_levels = index + 1;
sys/dev/drm/radeon/trinity_dpm.c
1745
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/drm/radeon/trinity_dpm.c
1751
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/trinity_dpm.c
1854
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/drm/radeon/trinity_dpm.c
1860
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/drm/radeon/trinity_dpm.c
589
u32 index, u32 sclk)
sys/dev/drm/radeon/trinity_dpm.c
594
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/radeon/trinity_dpm.c
618
u32 index, u32 divider)
sys/dev/drm/radeon/trinity_dpm.c
621
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/radeon/trinity_dpm.c
630
u32 index, u32 divider)
sys/dev/drm/radeon/trinity_dpm.c
633
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/radeon/trinity_dpm.c
641
static void trinity_set_vid(struct radeon_device *rdev, u32 index, u32 vid)
sys/dev/drm/radeon/trinity_dpm.c
646
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/radeon/trinity_dpm.c
660
u32 index, u32 gnb_slow)
sys/dev/drm/radeon/trinity_dpm.c
663
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/radeon/trinity_dpm.c
672
u32 index, u32 force_nbp_state)
sys/dev/drm/radeon/trinity_dpm.c
675
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/radeon/trinity_dpm.c
684
u32 index, u32 wm)
sys/dev/drm/radeon/trinity_dpm.c
687
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/radeon/trinity_dpm.c
696
u32 index, u32 wm)
sys/dev/drm/radeon/trinity_dpm.c
699
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/radeon/trinity_dpm.c
708
u32 index, u32 at)
sys/dev/drm/radeon/trinity_dpm.c
711
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/radeon/trinity_dpm.c
720
struct trinity_pl *pl, u32 index)
sys/dev/drm/radeon/trinity_dpm.c
724
if (index >= SUMO_MAX_HARDWARE_POWERLEVELS)
sys/dev/drm/radeon/trinity_dpm.c
727
trinity_set_divider_value(rdev, index, pl->sclk);
sys/dev/drm/radeon/trinity_dpm.c
728
trinity_set_vid(rdev, index, pl->vddc_index);
sys/dev/drm/radeon/trinity_dpm.c
729
trinity_set_ss_dividers(rdev, index, pl->ss_divider_index);
sys/dev/drm/radeon/trinity_dpm.c
730
trinity_set_ds_dividers(rdev, index, pl->ds_divider_index);
sys/dev/drm/radeon/trinity_dpm.c
731
trinity_set_allos_gnb_slow(rdev, index, pl->allow_gnb_slow);
sys/dev/drm/radeon/trinity_dpm.c
732
trinity_set_force_nbp_state(rdev, index, pl->force_nbp_state);
sys/dev/drm/radeon/trinity_dpm.c
733
trinity_set_display_wm(rdev, index, pl->display_wm);
sys/dev/drm/radeon/trinity_dpm.c
734
trinity_set_vce_wm(rdev, index, pl->vce_wm);
sys/dev/drm/radeon/trinity_dpm.c
735
trinity_set_at(rdev, index, pi->at[index]);
sys/dev/drm/radeon/trinity_dpm.c
739
u32 index, bool enable)
sys/dev/drm/radeon/trinity_dpm.c
742
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/drm/ttm/ttm_bo_vm.c
268
page->index = drm_vma_node_start(&bo->vma_node) +
sys/dev/drm/ttm/ttm_page_alloc_dma.c
832
unsigned index)
sys/dev/drm/ttm/ttm_page_alloc_dma.c
843
ttm->pages[index] = d_page->p;
sys/dev/drm/ttm/ttm_page_alloc_dma.c
844
ttm_dma->dma_address[index] = d_page->dma;
sys/dev/drm/ttm/ttm_tt.c
495
(*page++)->index = 0;
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
332
atkbdc_read_ivar(device_t bus, device_t dev, int index, u_long *val)
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
338
switch (index) {
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
367
atkbdc_write_ivar(device_t bus, device_t dev, int index, u_long val)
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
373
switch (index) {
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
69
static int atkbdc_read_ivar(device_t bus, device_t dev, int index,
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
71
static int atkbdc_write_ivar(device_t bus, device_t dev, int index,
sys/dev/misc/evdev/input.h
72
uint16_t index;
sys/dev/misc/kbd/kbd.c
189
int index;
sys/dev/misc/kbd/kbd.c
194
for (index = 0; index < KBD_MAXKEYBOARDS; ++index) {
sys/dev/misc/kbd/kbd.c
195
if (keyboard[index] == NULL)
sys/dev/misc/kbd/kbd.c
198
if (index >= KBD_MAXKEYBOARDS) {
sys/dev/misc/kbd/kbd.c
203
kbd->kb_index = index;
sys/dev/misc/kbd/kbd.c
214
keyboard[index] = kbd;
sys/dev/misc/kbd/kbd.c
215
kbdsw[index] = p->kbdsw;
sys/dev/misc/kbd/kbd.c
225
return index;
sys/dev/misc/kbd/kbd.c
231
keyboard[index] = kbd;
sys/dev/misc/kbd/kbd.c
232
kbdsw[index] = p->kbdsw;
sys/dev/misc/kbd/kbd.c
242
return index;
sys/dev/misc/kbd/kbd.c
329
kbd_find_keyboard2(char *driver, int unit, int index, int legacy)
sys/dev/misc/kbd/kbd.c
339
if ((index < 0) || (index >= KBD_MAXKEYBOARDS)) {
sys/dev/misc/kbd/kbd.c
344
for (i = index; i < KBD_MAXKEYBOARDS; ++i) {
sys/dev/misc/kbd/kbd.c
387
int index;
sys/dev/misc/kbd/kbd.c
394
index = kbd_find_keyboard(driver, unit);
sys/dev/misc/kbd/kbd.c
395
if (index >= 0) {
sys/dev/misc/kbd/kbd.c
396
if (KBD_IS_BUSY(keyboard[index])) {
sys/dev/misc/kbd/kbd.c
400
keyboard[index]->kb_token = id;
sys/dev/misc/kbd/kbd.c
401
KBD_BUSY(keyboard[index]);
sys/dev/misc/kbd/kbd.c
402
keyboard[index]->kb_callback.kc_func = func;
sys/dev/misc/kbd/kbd.c
403
keyboard[index]->kb_callback.kc_arg = arg;
sys/dev/misc/kbd/kbd.c
404
kbd_clear_state(keyboard[index]);
sys/dev/misc/kbd/kbd.c
408
return index;
sys/dev/misc/kbd/kbd.c
461
kbd_get_keyboard(int index)
sys/dev/misc/kbd/kbd.c
466
if ((index < 0) || (index >= KBD_MAXKEYBOARDS)) {
sys/dev/misc/kbd/kbd.c
470
if (keyboard[index] == NULL) {
sys/dev/misc/kbd/kbd.c
474
if (!KBD_IS_VALID(keyboard[index])) {
sys/dev/misc/kbd/kbd.c
478
kbd = keyboard[index];
sys/dev/misc/kbd/kbdreg.h
268
int kbd_find_keyboard2(char *driver, int unit, int index, int legacy);
sys/dev/misc/kbd/kbdreg.h
269
keyboard_t *kbd_get_keyboard(int index);
sys/dev/misc/lpbb/lpbb.c
90
lpbb_callback(device_t dev, int index, caddr_t *data)
sys/dev/misc/lpbb/lpbb.c
96
switch (index) {
sys/dev/misc/ppc/ppc.c
2048
ppc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val)
sys/dev/misc/ppc/ppc.c
2052
switch (index) {
sys/dev/misc/ppc/ppc.c
435
static int index = 0;
sys/dev/misc/ppc/ppc.c
439
while ((idport = pc873xx_basetab[index++])) {
sys/dev/misc/ppc/ppc.c
67
static int ppc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val);
sys/dev/misc/puc/puc.c
418
#define checkreg(val, index) \
sys/dev/misc/puc/puc.c
419
(((val) & puc_devices[i].rmask[(index)]) == puc_devices[i].rval[(index)])
sys/dev/misc/puc/puc.c
720
puc_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/misc/puc/puc.c
728
switch(index) {
sys/dev/misc/syscons/scterm.c
118
sc_term_match_by_number(int index)
sys/dev/misc/syscons/scterm.c
122
if (index <= 0)
sys/dev/misc/syscons/scterm.c
125
if (--index <= 0)
sys/dev/misc/syscons/scvidctl.c
954
tp = VIRTUAL_TTY(scp->sc, scp->index);
sys/dev/misc/syscons/syscons.c
1095
ptr->m_num = sc->cur_scp->index;
sys/dev/misc/syscons/syscons.c
1323
i = (*(int *)data == 0) ? scp->index : (*(int *)data - 1);
sys/dev/misc/syscons/syscons.c
1332
i = (*(int *)data == 0) ? scp->index : (*(int *)data - 1);
sys/dev/misc/syscons/syscons.c
1364
*(int *)data = sc->cur_scp->index + 1;
sys/dev/misc/syscons/syscons.c
1369
*(int *)data = scp->index + 1;
sys/dev/misc/syscons/syscons.c
1916
tp = VIRTUAL_TTY(scp->sc, scp->index);
sys/dev/misc/syscons/syscons.c
1988
sc_switch_scr(sc_console->sc, sc_console->index);
sys/dev/misc/syscons/syscons.c
2905
tp = VIRTUAL_TTY(sc, cur_scp->index);
sys/dev/misc/syscons/syscons.c
2906
if ((cur_scp->index != next_scr)
sys/dev/misc/syscons/syscons.c
2921
if ((sc_console == NULL) || (next_scr != sc_console->index)) {
sys/dev/misc/syscons/syscons.c
3528
sc_switch_scr(sc_console->sc, sc_console->index);
sys/dev/misc/syscons/syscons.c
3623
scp->index = vty;
sys/dev/misc/syscons/syscons.c
3934
tp = VIRTUAL_TTY(sc, scp->index);
sys/dev/misc/syscons/syscons.c
4022
this_scr = scp->index;
sys/dev/misc/syscons/syscons.c
4037
this_scr = scp->index;
sys/dev/misc/syscons/syscons.c
4312
tp = VIRTUAL_TTY(scp->sc, scp->sc->cur_scp->index);
sys/dev/misc/syscons/syscons.c
910
cur_tty = VIRTUAL_TTY(sc, sc->cur_scp->index);
sys/dev/misc/syscons/syscons.h
258
int index; /* index of this vty */
sys/dev/misc/syscons/syscons.h
632
sc_term_sw_t *sc_term_match_by_number(int index);
sys/dev/netif/age/if_age.c
1991
uint32_t status, index, vtag;
sys/dev/netif/age/if_age.c
1996
index = le32toh(rxrd->index);
sys/dev/netif/age/if_age.c
1997
rx_cons = AGE_RX_CONS(index);
sys/dev/netif/age/if_age.c
1998
nsegs = AGE_RX_NSEGS(index);
sys/dev/netif/age/if_age.c
2151
nsegs = AGE_RX_NSEGS(le32toh(rxrd->index));
sys/dev/netif/age/if_age.c
2170
rxrd->index = 0;
sys/dev/netif/age/if_agereg.h
560
uint32_t index;
sys/dev/netif/ath/ath/if_ath_tx.c
2594
int index, cindex;
sys/dev/netif/ath/ath/if_ath_tx.c
2637
index = ATH_BA_INDEX(tap->txa_start, SEQNO(bf->bf_state.bfs_seqno));
sys/dev/netif/ath/ath/if_ath_tx.c
2638
cindex = (tid->baw_head + index) & (ATH_TID_MAX_BUFS - 1);
sys/dev/netif/ath/ath/if_ath_tx.c
2643
tap->txa_start, tap->txa_wnd, index, cindex, tid->baw_head,
sys/dev/netif/ath/ath/if_ath_tx.c
2654
__func__, index, cindex, tid->baw_head, tid->baw_tail);
sys/dev/netif/ath/ath/if_ath_tx.c
2666
if (index >= ((tid->baw_tail - tid->baw_head) &
sys/dev/netif/ath/ath/if_ath_tx.c
2686
int index, cindex;
sys/dev/netif/ath/ath/if_ath_tx.c
2693
index = ATH_BA_INDEX(tap->txa_start, seqno);
sys/dev/netif/ath/ath/if_ath_tx.c
2694
cindex = (tid->baw_head + index) & (ATH_TID_MAX_BUFS - 1);
sys/dev/netif/ath/ath/if_ath_tx.c
2733
int index, cindex;
sys/dev/netif/ath/ath/if_ath_tx.c
2740
index = ATH_BA_INDEX(tap->txa_start, seqno);
sys/dev/netif/ath/ath/if_ath_tx.c
2741
cindex = (tid->baw_head + index) & (ATH_TID_MAX_BUFS - 1);
sys/dev/netif/ath/ath/if_ath_tx.c
2746
__func__, tid->tid, tap->txa_start, tap->txa_wnd, seqno, index,
sys/dev/netif/ath/ath_hal/ah.h
1439
uint32_t index);
sys/dev/netif/ath/ath_hal/ah.h
1441
uint32_t index);
sys/dev/netif/ath/ath_rate/sample/sample.h
85
bin_to_size(int index)
sys/dev/netif/ath/ath_rate/sample/sample.h
87
return packet_size_bins[index];
sys/dev/netif/bfe/if_bfe.c
844
bfe_cam_write(struct bfe_softc *sc, u_char *data, int index)
sys/dev/netif/bfe/if_bfe.c
858
((uint32_t)index << BFE_CAM_INDEX_SHIFT)));
sys/dev/netif/bwn/bwn/if_bwn.c
2519
int index)
sys/dev/netif/bwn/bwn/if_bwn.c
2525
tq->tq_base = bwn_pio_idx2base(mac, index) + BWN_PIO_TXQOFFSET(mac);
sys/dev/netif/bwn/bwn/if_bwn.c
2526
tq->tq_index = index;
sys/dev/netif/bwn/bwn/if_bwn.c
2546
bwn_pio_idx2base(struct bwn_mac *mac, int index)
sys/dev/netif/bwn/bwn/if_bwn.c
2569
if (index >= N(bases_rev11))
sys/dev/netif/bwn/bwn/if_bwn.c
2571
return (bases_rev11[index]);
sys/dev/netif/bwn/bwn/if_bwn.c
2573
if (index >= N(bases))
sys/dev/netif/bwn/bwn/if_bwn.c
2575
return (bases[index]);
sys/dev/netif/bwn/bwn/if_bwn.c
2580
int index)
sys/dev/netif/bwn/bwn/if_bwn.c
2586
prq->prq_base = bwn_pio_idx2base(mac, index) + BWN_PIO_RXQOFFSET(mac);
sys/dev/netif/bwn/bwn/if_bwn.c
2587
bwn_dma_rxdirectfifo(mac, index, 1);
sys/dev/netif/bwn/bwn/if_bwn.c
4571
bwn_key_dowrite(struct bwn_mac *mac, uint8_t index, uint8_t algorithm,
sys/dev/netif/bwn/bwn/if_bwn.c
4580
KASSERT(index < mac->mac_max_nr_keys,
sys/dev/netif/bwn/bwn/if_bwn.c
4585
if (index >= per_sta_keys_start)
sys/dev/netif/bwn/bwn/if_bwn.c
4586
bwn_key_macwrite(mac, index, NULL);
sys/dev/netif/bwn/bwn/if_bwn.c
4589
bwn_key_write(mac, index, algorithm, buf);
sys/dev/netif/bwn/bwn/if_bwn.c
4590
if (index >= per_sta_keys_start)
sys/dev/netif/bwn/bwn/if_bwn.c
4591
bwn_key_macwrite(mac, index, mac_addr);
sys/dev/netif/bwn/bwn/if_bwn.c
4593
mac->mac_key[index].algorithm = algorithm;
sys/dev/netif/bwn/bwn/if_bwn.c
4597
bwn_key_macwrite(struct bwn_mac *mac, uint8_t index, const uint8_t *addr)
sys/dev/netif/bwn/bwn/if_bwn.c
4606
KASSERT(index >= start,
sys/dev/netif/bwn/bwn/if_bwn.c
4608
index -= start;
sys/dev/netif/bwn/bwn/if_bwn.c
4620
bwn_shm_write_4(mac, BWN_RCMTA, (index * 2) + 0, addrtmp[0]);
sys/dev/netif/bwn/bwn/if_bwn.c
4621
bwn_shm_write_2(mac, BWN_RCMTA, (index * 2) + 1, addrtmp[1]);
sys/dev/netif/bwn/bwn/if_bwn.c
4623
if (index >= 8) {
sys/dev/netif/bwn/bwn/if_bwn.c
4625
BWN_SHARED_PSM + (index * 6) + 0, addrtmp[0]);
sys/dev/netif/bwn/bwn/if_bwn.c
4627
BWN_SHARED_PSM + (index * 6) + 4, addrtmp[1]);
sys/dev/netif/bwn/bwn/if_bwn.c
4633
bwn_key_write(struct bwn_mac *mac, uint8_t index, uint8_t algorithm,
sys/dev/netif/bwn/bwn/if_bwn.c
4640
kidx = BWN_SEC_KEY2FW(mac, index);
sys/dev/netif/bwn/bwn/if_bwn.c
4644
offset = mac->mac_ktp + (index * BWN_SEC_KEYSIZE);
sys/dev/netif/bwn/bwn/if_bwn.c
6731
unsigned int index;
sys/dev/netif/bwn/bwn/if_bwn.c
6753
index = (cookie & 0x0fff);
sys/dev/netif/bwn/bwn/if_bwn.c
6754
KASSERT(index < N(tq->tq_pkts), ("%s:%d: fail", __func__, __LINE__));
sys/dev/netif/bwn/bwn/if_bwn.c
6755
if (index >= N(tq->tq_pkts))
sys/dev/netif/bwn/bwn/if_bwn.c
6757
*pack = &tq->tq_pkts[index];
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
1219
radio0, radio1, radio2, reg0, reg1, reg2, radio78, reg, index;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
1288
index = (reg & 0x001e) >> 1;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
1289
rcc = (((rcc_table[index] << 1) | (reg & 0x0001)) | 0x0020);
sys/dev/netif/bwn/bwn/if_bwn_phy_lp.c
3451
int i, index = -1;
sys/dev/netif/bwn/bwn/if_bwn_phy_lp.c
3473
index = i;
sys/dev/netif/bwn/bwn/if_bwn_phy_lp.c
3478
return (index);
sys/dev/netif/ig_hal/e1000_80003es2lan.c
761
u16 phy_data, index;
sys/dev/netif/ig_hal/e1000_80003es2lan.c
772
index = phy_data & GG82563_DSPD_CABLE_LENGTH;
sys/dev/netif/ig_hal/e1000_80003es2lan.c
774
if (index >= GG82563_CABLE_LENGTH_TABLE_SIZE - 5)
sys/dev/netif/ig_hal/e1000_80003es2lan.c
777
phy->min_cable_length = e1000_gg82563_cable_length_table[index];
sys/dev/netif/ig_hal/e1000_80003es2lan.c
778
phy->max_cable_length = e1000_gg82563_cable_length_table[index + 5];
sys/dev/netif/ig_hal/e1000_82542.c
414
static int e1000_rar_set_82542(struct e1000_hw *hw, u8 *addr, u32 index)
sys/dev/netif/ig_hal/e1000_82542.c
433
E1000_WRITE_REG_ARRAY(hw, E1000_RA, (index << 1), rar_low);
sys/dev/netif/ig_hal/e1000_82542.c
434
E1000_WRITE_REG_ARRAY(hw, E1000_RA, ((index << 1) + 1), rar_high);
sys/dev/netif/ig_hal/e1000_82542.c
50
static int e1000_rar_set_82542(struct e1000_hw *hw, u8 *addr, u32 index);
sys/dev/netif/ig_hal/e1000_api.c
880
int e1000_rar_set(struct e1000_hw *hw, u8 *addr, u32 index)
sys/dev/netif/ig_hal/e1000_api.c
883
return hw->mac.ops.rar_set(hw, addr, index);
sys/dev/netif/ig_hal/e1000_api.h
72
int e1000_rar_set(struct e1000_hw *hw, u8 *addr, u32 index);
sys/dev/netif/ig_hal/e1000_ich8lan.c
2003
static int e1000_rar_set_pch2lan(struct e1000_hw *hw, u8 *addr, u32 index)
sys/dev/netif/ig_hal/e1000_ich8lan.c
2022
if (index == 0) {
sys/dev/netif/ig_hal/e1000_ich8lan.c
2023
E1000_WRITE_REG(hw, E1000_RAL(index), rar_low);
sys/dev/netif/ig_hal/e1000_ich8lan.c
2025
E1000_WRITE_REG(hw, E1000_RAH(index), rar_high);
sys/dev/netif/ig_hal/e1000_ich8lan.c
2033
if (index < (u32) (hw->mac.rar_entry_count)) {
sys/dev/netif/ig_hal/e1000_ich8lan.c
2040
E1000_WRITE_REG(hw, E1000_SHRAL(index - 1), rar_low);
sys/dev/netif/ig_hal/e1000_ich8lan.c
2042
E1000_WRITE_REG(hw, E1000_SHRAH(index - 1), rar_high);
sys/dev/netif/ig_hal/e1000_ich8lan.c
2048
if ((E1000_READ_REG(hw, E1000_SHRAL(index - 1)) == rar_low) &&
sys/dev/netif/ig_hal/e1000_ich8lan.c
2049
(E1000_READ_REG(hw, E1000_SHRAH(index - 1)) == rar_high))
sys/dev/netif/ig_hal/e1000_ich8lan.c
2053
(index - 1), E1000_READ_REG(hw, E1000_FWSM));
sys/dev/netif/ig_hal/e1000_ich8lan.c
2057
DEBUGOUT1("Failed to write receive address at index %d\n", index);
sys/dev/netif/ig_hal/e1000_ich8lan.c
2072
static int e1000_rar_set_pch_lpt(struct e1000_hw *hw, u8 *addr, u32 index)
sys/dev/netif/ig_hal/e1000_ich8lan.c
2091
if (index == 0) {
sys/dev/netif/ig_hal/e1000_ich8lan.c
2092
E1000_WRITE_REG(hw, E1000_RAL(index), rar_low);
sys/dev/netif/ig_hal/e1000_ich8lan.c
2094
E1000_WRITE_REG(hw, E1000_RAH(index), rar_high);
sys/dev/netif/ig_hal/e1000_ich8lan.c
2102
if (index < hw->mac.rar_entry_count) {
sys/dev/netif/ig_hal/e1000_ich8lan.c
2111
if ((wlock_mac == 0) || (index <= wlock_mac)) {
sys/dev/netif/ig_hal/e1000_ich8lan.c
2119
E1000_WRITE_REG(hw, E1000_SHRAL_PCH_LPT(index - 1),
sys/dev/netif/ig_hal/e1000_ich8lan.c
2122
E1000_WRITE_REG(hw, E1000_SHRAH_PCH_LPT(index - 1),
sys/dev/netif/ig_hal/e1000_ich8lan.c
2129
if ((E1000_READ_REG(hw, E1000_SHRAL_PCH_LPT(index - 1)) == rar_low) &&
sys/dev/netif/ig_hal/e1000_ich8lan.c
2130
(E1000_READ_REG(hw, E1000_SHRAH_PCH_LPT(index - 1)) == rar_high))
sys/dev/netif/ig_hal/e1000_ich8lan.c
2136
DEBUGOUT1("Failed to write receive address at index %d\n", index);
sys/dev/netif/ig_hal/e1000_ich8lan.c
80
static int e1000_rar_set_pch2lan(struct e1000_hw *hw, u8 *addr, u32 index);
sys/dev/netif/ig_hal/e1000_ich8lan.c
81
static int e1000_rar_set_pch_lpt(struct e1000_hw *hw, u8 *addr, u32 index);
sys/dev/netif/ig_hal/e1000_mac.c
484
int e1000_rar_set_generic(struct e1000_hw *hw, u8 *addr, u32 index)
sys/dev/netif/ig_hal/e1000_mac.c
506
E1000_WRITE_REG(hw, E1000_RAL(index), rar_low);
sys/dev/netif/ig_hal/e1000_mac.c
508
E1000_WRITE_REG(hw, E1000_RAH(index), rar_high);
sys/dev/netif/ig_hal/e1000_mac.h
73
int e1000_rar_set_generic(struct e1000_hw *hw, u8 *addr, u32 index);
sys/dev/netif/ig_hal/e1000_osdep.h
120
#define E1000_READ_REG_ARRAY(hw, reg, index) \
sys/dev/netif/ig_hal/e1000_osdep.h
123
E1000_REGISTER(hw, reg) + ((index)<< 2))
sys/dev/netif/ig_hal/e1000_osdep.h
125
#define E1000_WRITE_REG_ARRAY(hw, reg, index, value) \
sys/dev/netif/ig_hal/e1000_osdep.h
128
E1000_REGISTER(hw, reg) + ((index)<< 2), value)
sys/dev/netif/ig_hal/e1000_osdep.h
133
#define E1000_READ_REG_ARRAY_BYTE(hw, reg, index) \
sys/dev/netif/ig_hal/e1000_osdep.h
136
E1000_REGISTER(hw, reg) + index)
sys/dev/netif/ig_hal/e1000_osdep.h
138
#define E1000_WRITE_REG_ARRAY_BYTE(hw, reg, index, value) \
sys/dev/netif/ig_hal/e1000_osdep.h
141
E1000_REGISTER(hw, reg) + index, value)
sys/dev/netif/ig_hal/e1000_osdep.h
143
#define E1000_WRITE_REG_ARRAY_WORD(hw, reg, index, value) \
sys/dev/netif/ig_hal/e1000_osdep.h
146
E1000_REGISTER(hw, reg) + (index << 1), value)
sys/dev/netif/ig_hal/e1000_phy.c
2416
u16 phy_data, index;
sys/dev/netif/ig_hal/e1000_phy.c
2424
index = ((phy_data & M88E1000_PSSR_CABLE_LENGTH) >>
sys/dev/netif/ig_hal/e1000_phy.c
2427
if (index >= M88E1000_CABLE_LENGTH_TABLE_SIZE - 1)
sys/dev/netif/ig_hal/e1000_phy.c
2430
phy->min_cable_length = e1000_m88_cable_length_table[index];
sys/dev/netif/ig_hal/e1000_phy.c
2431
phy->max_cable_length = e1000_m88_cable_length_table[index + 1];
sys/dev/netif/ig_hal/e1000_phy.c
2443
u16 index, default_page;
sys/dev/netif/ig_hal/e1000_phy.c
2524
index = (phy_data & M88E1000_PSSR_CABLE_LENGTH) >>
sys/dev/netif/ig_hal/e1000_phy.c
2527
if (index >= M88E1000_CABLE_LENGTH_TABLE_SIZE - 1)
sys/dev/netif/ig_hal/e1000_phy.c
2530
phy->min_cable_length = e1000_m88_cable_length_table[index];
sys/dev/netif/ig_hal/e1000_phy.c
2531
phy->max_cable_length = e1000_m88_cable_length_table[index + 1];
sys/dev/netif/ig_hal/e1000_vf.c
324
u32 E1000_UNUSEDARG index)
sys/dev/netif/igb/if_igb.c
3950
uint32_t ivar, index;
sys/dev/netif/igb/if_igb.c
4032
index = i >> 1;
sys/dev/netif/igb/if_igb.c
4033
ivar = E1000_READ_REG_ARRAY(hw, E1000_IVAR0, index);
sys/dev/netif/igb/if_igb.c
4044
E1000_WRITE_REG_ARRAY(hw, E1000_IVAR0, index, ivar);
sys/dev/netif/igb/if_igb.c
4050
index = i >> 1;
sys/dev/netif/igb/if_igb.c
4051
ivar = E1000_READ_REG_ARRAY(hw, E1000_IVAR0, index);
sys/dev/netif/igb/if_igb.c
4062
E1000_WRITE_REG_ARRAY(hw, E1000_IVAR0, index, ivar);
sys/dev/netif/igb/if_igb.c
4075
index = i & 0x7; /* Each IVAR has two entries */
sys/dev/netif/igb/if_igb.c
4076
ivar = E1000_READ_REG_ARRAY(hw, E1000_IVAR0, index);
sys/dev/netif/igb/if_igb.c
4087
E1000_WRITE_REG_ARRAY(hw, E1000_IVAR0, index, ivar);
sys/dev/netif/igb/if_igb.c
4093
index = i & 0x7; /* Each IVAR has two entries */
sys/dev/netif/igb/if_igb.c
4094
ivar = E1000_READ_REG_ARRAY(hw, E1000_IVAR0, index);
sys/dev/netif/igb/if_igb.c
4105
E1000_WRITE_REG_ARRAY(hw, E1000_IVAR0, index, ivar);
sys/dev/netif/ix/if_ix.c
3362
uint32_t ivar, index;
sys/dev/netif/ix/if_ix.c
3372
index = (entry >> 2) & 0x1F;
sys/dev/netif/ix/if_ix.c
3373
ivar = IXGBE_READ_REG(hw, IXGBE_IVAR(index));
sys/dev/netif/ix/if_ix.c
3376
IXGBE_WRITE_REG(hw, IXGBE_IVAR(index), ivar);
sys/dev/netif/ix/if_ix.c
3385
index = (entry & 1) * 8;
sys/dev/netif/ix/if_ix.c
3387
ivar &= ~(0xFF << index);
sys/dev/netif/ix/if_ix.c
3388
ivar |= (vector << index);
sys/dev/netif/ix/if_ix.c
3391
index = (16 * (entry & 1)) + (8 * type);
sys/dev/netif/ix/if_ix.c
3393
ivar &= ~(0xFF << index);
sys/dev/netif/ix/if_ix.c
3394
ivar |= (vector << index);
sys/dev/netif/ix/ixgbe_api.c
737
s32 ixgbe_led_on(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_api.c
739
return ixgbe_call_func(hw, hw->mac.ops.led_on, (hw, index),
sys/dev/netif/ix/ixgbe_api.c
750
s32 ixgbe_led_off(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_api.c
752
return ixgbe_call_func(hw, hw->mac.ops.led_off, (hw, index),
sys/dev/netif/ix/ixgbe_api.c
763
s32 ixgbe_blink_led_start(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_api.c
765
return ixgbe_call_func(hw, hw->mac.ops.blink_led_start, (hw, index),
sys/dev/netif/ix/ixgbe_api.c
776
s32 ixgbe_blink_led_stop(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_api.c
778
return ixgbe_call_func(hw, hw->mac.ops.blink_led_stop, (hw, index),
sys/dev/netif/ix/ixgbe_api.c
911
s32 ixgbe_set_rar(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq,
sys/dev/netif/ix/ixgbe_api.c
914
return ixgbe_call_func(hw, hw->mac.ops.set_rar, (hw, index, addr, vmdq,
sys/dev/netif/ix/ixgbe_api.c
925
s32 ixgbe_clear_rar(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_api.c
927
return ixgbe_call_func(hw, hw->mac.ops.clear_rar, (hw, index),
sys/dev/netif/ix/ixgbe_api.h
111
s32 ixgbe_set_rar(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq,
sys/dev/netif/ix/ixgbe_api.h
113
s32 ixgbe_clear_rar(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_api.h
94
s32 ixgbe_led_on(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_api.h
95
s32 ixgbe_led_off(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_api.h
96
s32 ixgbe_blink_led_start(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_api.h
97
s32 ixgbe_blink_led_stop(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_common.c
1201
s32 ixgbe_led_on_generic(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_common.c
1207
if (index > 3)
sys/dev/netif/ix/ixgbe_common.c
1211
led_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/netif/ix/ixgbe_common.c
1212
led_reg |= IXGBE_LED_ON << IXGBE_LED_MODE_SHIFT(index);
sys/dev/netif/ix/ixgbe_common.c
1224
s32 ixgbe_led_off_generic(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_common.c
1230
if (index > 3)
sys/dev/netif/ix/ixgbe_common.c
1234
led_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/netif/ix/ixgbe_common.c
1235
led_reg |= IXGBE_LED_OFF << IXGBE_LED_MODE_SHIFT(index);
sys/dev/netif/ix/ixgbe_common.c
2384
s32 ixgbe_set_rar_generic(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq,
sys/dev/netif/ix/ixgbe_common.c
2393
if (index >= rar_entries) {
sys/dev/netif/ix/ixgbe_common.c
2395
"RAR index %d is out of range.\n", index);
sys/dev/netif/ix/ixgbe_common.c
2400
hw->mac.ops.set_vmdq(hw, index, vmdq);
sys/dev/netif/ix/ixgbe_common.c
2415
rar_high = IXGBE_READ_REG(hw, IXGBE_RAH(index));
sys/dev/netif/ix/ixgbe_common.c
2422
IXGBE_WRITE_REG(hw, IXGBE_RAL(index), rar_low);
sys/dev/netif/ix/ixgbe_common.c
2423
IXGBE_WRITE_REG(hw, IXGBE_RAH(index), rar_high);
sys/dev/netif/ix/ixgbe_common.c
2435
s32 ixgbe_clear_rar_generic(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_common.c
2443
if (index >= rar_entries) {
sys/dev/netif/ix/ixgbe_common.c
2445
"RAR index %d is out of range.\n", index);
sys/dev/netif/ix/ixgbe_common.c
2454
rar_high = IXGBE_READ_REG(hw, IXGBE_RAH(index));
sys/dev/netif/ix/ixgbe_common.c
2457
IXGBE_WRITE_REG(hw, IXGBE_RAL(index), 0);
sys/dev/netif/ix/ixgbe_common.c
2458
IXGBE_WRITE_REG(hw, IXGBE_RAH(index), rar_high);
sys/dev/netif/ix/ixgbe_common.c
2461
hw->mac.ops.clear_vmdq(hw, index, IXGBE_CLEAR_VMDQ_ALL);
sys/dev/netif/ix/ixgbe_common.c
3461
s32 ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_common.c
3472
if (index > 3)
sys/dev/netif/ix/ixgbe_common.c
3497
led_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/netif/ix/ixgbe_common.c
3498
led_reg |= IXGBE_LED_BLINK(index);
sys/dev/netif/ix/ixgbe_common.c
3511
s32 ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_common.c
3520
if (index > 3)
sys/dev/netif/ix/ixgbe_common.c
3535
led_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/netif/ix/ixgbe_common.c
3536
led_reg &= ~IXGBE_LED_BLINK(index);
sys/dev/netif/ix/ixgbe_common.c
3537
led_reg |= IXGBE_LED_LINK_ACTIVE << IXGBE_LED_MODE_SHIFT(index);
sys/dev/netif/ix/ixgbe_common.h
100
s32 ixgbe_set_rar_generic(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq,
sys/dev/netif/ix/ixgbe_common.h
102
s32 ixgbe_clear_rar_generic(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_common.h
128
s32 ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_common.h
129
s32 ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_common.h
76
s32 ixgbe_led_on_generic(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_common.h
77
s32 ixgbe_led_off_generic(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_mbx.c
527
static s32 ixgbe_check_for_bit_pf(struct ixgbe_hw *hw, u32 mask, s32 index)
sys/dev/netif/ix/ixgbe_mbx.c
529
u32 mbvficr = IXGBE_READ_REG(hw, IXGBE_MBVFICR(index));
sys/dev/netif/ix/ixgbe_mbx.c
534
IXGBE_WRITE_REG(hw, IXGBE_MBVFICR(index), mask);
sys/dev/netif/ix/ixgbe_mbx.c
550
s32 index = IXGBE_MBVFICR_INDEX(vf_number);
sys/dev/netif/ix/ixgbe_mbx.c
556
index)) {
sys/dev/netif/ix/ixgbe_mbx.c
574
s32 index = IXGBE_MBVFICR_INDEX(vf_number);
sys/dev/netif/ix/ixgbe_mbx.c
580
index)) {
sys/dev/netif/ix/ixgbe_x540.c
1003
s32 ixgbe_blink_led_start_X540(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_x540.c
1012
if (index > 3)
sys/dev/netif/ix/ixgbe_x540.c
1028
ledctl_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/netif/ix/ixgbe_x540.c
1029
ledctl_reg |= IXGBE_LED_BLINK(index);
sys/dev/netif/ix/ixgbe_x540.c
1044
s32 ixgbe_blink_led_stop_X540(struct ixgbe_hw *hw, u32 index)
sys/dev/netif/ix/ixgbe_x540.c
1049
if (index > 3)
sys/dev/netif/ix/ixgbe_x540.c
1056
ledctl_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/netif/ix/ixgbe_x540.c
1057
ledctl_reg |= IXGBE_LED_LINK_ACTIVE << IXGBE_LED_MODE_SHIFT(index);
sys/dev/netif/ix/ixgbe_x540.c
1058
ledctl_reg &= ~IXGBE_LED_BLINK(index);
sys/dev/netif/ix/ixgbe_x540.h
65
s32 ixgbe_blink_led_start_X540(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/ix/ixgbe_x540.h
66
s32 ixgbe_blink_led_stop_X540(struct ixgbe_hw *hw, u32 index);
sys/dev/netif/mii_layer/truephy.c
286
PHY_WRITE(sc, TRUEPHY_INDEX, dsp->index);
sys/dev/netif/mii_layer/truephy.c
289
PHY_WRITE(sc, TRUEPHY_INDEX, dsp->index);
sys/dev/netif/mii_layer/truephy.c
86
uint16_t index;
sys/dev/netif/nge/if_nge.c
618
int bit, index;
sys/dev/netif/nge/if_nge.c
656
index = (h >> 4) & 0x7F;
sys/dev/netif/nge/if_nge.c
659
NGE_FILTADDR_MCAST_LO + (index * 2));
sys/dev/netif/sis/if_sis.c
769
int bit, index;
sys/dev/netif/sis/if_sis.c
799
index = h >> 3;
sys/dev/netif/sis/if_sis.c
801
CSR_WRITE_4(sc, SIS_RXFILT_CTL, NS_FILTADDR_FMEM_LO + index);
sys/dev/netif/sn/if_sn.c
1369
u_int index, index2;
sys/dev/netif/sn/if_sn.c
1378
index = smc_crc(LLADDR((struct sockaddr_dl *)ifma->ifma_addr)) & 0x3f;
sys/dev/netif/sn/if_sn.c
1382
index2 |= (index & 0x01);
sys/dev/netif/sn/if_sn.c
1383
index >>= 1;
sys/dev/netif/ti/if_ti.c
462
uint32_t index;
sys/dev/netif/ti/if_ti.c
467
index = sc->ti_cmd_saved_prodidx;
sys/dev/netif/ti/if_ti.c
468
CSR_WRITE_4(sc, TI_GCR_CMDRING + (index * 4), *(uint32_t *)(cmd));
sys/dev/netif/ti/if_ti.c
469
TI_INC(index, TI_CMD_RING_CNT);
sys/dev/netif/ti/if_ti.c
470
CSR_WRITE_4(sc, TI_MB_CMDPROD_IDX, index);
sys/dev/netif/ti/if_ti.c
471
sc->ti_cmd_saved_prodidx = index;
sys/dev/netif/ti/if_ti.c
481
uint32_t index;
sys/dev/netif/ti/if_ti.c
487
index = sc->ti_cmd_saved_prodidx;
sys/dev/netif/ti/if_ti.c
488
CSR_WRITE_4(sc, TI_GCR_CMDRING + (index * 4), *(uint32_t *)(cmd));
sys/dev/netif/ti/if_ti.c
489
TI_INC(index, TI_CMD_RING_CNT);
sys/dev/netif/ti/if_ti.c
491
CSR_WRITE_4(sc, TI_GCR_CMDRING + (index * 4),
sys/dev/netif/ti/if_ti.c
493
TI_INC(index, TI_CMD_RING_CNT);
sys/dev/netif/ti/if_ti.c
495
CSR_WRITE_4(sc, TI_MB_CMDPROD_IDX, index);
sys/dev/netif/ti/if_ti.c
496
sc->ti_cmd_saved_prodidx = index;
sys/dev/netif/wpi/if_wpi.c
1599
group->samples[i].index = rgroup.samples[i].index;
sys/dev/netif/wpi/if_wpi.c
1604
group->samples[i].index, group->samples[i].power);
sys/dev/netif/wpi/if_wpi.c
3812
idx = interpolate(pwr, sample[0].power, sample[0].index,
sys/dev/netif/wpi/if_wpi.c
3813
sample[1].power, sample[1].index, 19);
sys/dev/netif/wpi/if_wpireg.h
867
uint8_t index;
sys/dev/netif/wpi/if_wpivar.h
103
uint8_t index;
sys/dev/powermng/alpm/alpm.c
247
alpm_callback(device_t dev, int index, void *data)
sys/dev/powermng/alpm/alpm.c
251
switch (index) {
sys/dev/powermng/amdpm/amdpm.c
244
amdpm_callback(device_t dev, int index, void *data)
sys/dev/powermng/amdpm/amdpm.c
248
switch (index) {
sys/dev/powermng/intpm/intpm.c
381
intsmb_callback(device_t dev, int index, void *data)
sys/dev/powermng/intpm/intpm.c
385
switch (index) {
sys/dev/powermng/intpm/intpm.c
73
static int intsmb_callback(device_t dev, int index, void *data);
sys/dev/powermng/viapm/viapm.c
465
viabb_callback(device_t dev, int index, caddr_t *data)
sys/dev/powermng/viapm/viapm.c
608
viasmb_callback(device_t dev, int index, caddr_t *data)
sys/dev/powermng/viapm/viapm.c
612
switch (index) {
sys/dev/powermng/wbsio/wbsio.c
85
wbsio_conf_read(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t index)
sys/dev/powermng/wbsio/wbsio.c
87
bus_space_write_1(iot, ioh, WBSIO_INDEX, index);
sys/dev/powermng/wbsio/wbsio.c
92
wbsio_conf_write(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t index,
sys/dev/powermng/wbsio/wbsio.c
95
bus_space_write_1(iot, ioh, WBSIO_INDEX, index);
sys/dev/raid/aac/aac.c
140
static void aac_rx_set_outb_queue(struct aac_softc *sc, int index);
sys/dev/raid/aac/aac.c
167
static void aac_rkt_set_outb_queue(struct aac_softc *sc, int index);
sys/dev/raid/aac/aac.c
2592
u_int32_t index, device;
sys/dev/raid/aac/aac.c
2596
index = AAC_MEM0_GETREG4(sc, AAC_RX_IQUE);
sys/dev/raid/aac/aac.c
2597
if (index == 0xffffffffL)
sys/dev/raid/aac/aac.c
2598
index = AAC_MEM0_GETREG4(sc, AAC_RX_IQUE);
sys/dev/raid/aac/aac.c
2599
if (index == 0xffffffffL)
sys/dev/raid/aac/aac.c
2600
return index;
sys/dev/raid/aac/aac.c
2602
device = index;
sys/dev/raid/aac/aac.c
2608
AAC_MEM0_SETREG4(sc, AAC_RX_IQUE, index);
sys/dev/raid/aac/aac.c
2615
u_int32_t index, device;
sys/dev/raid/aac/aac.c
2619
index = AAC_MEM0_GETREG4(sc, AAC_RKT_IQUE);
sys/dev/raid/aac/aac.c
2620
if (index == 0xffffffffL)
sys/dev/raid/aac/aac.c
2621
index = AAC_MEM0_GETREG4(sc, AAC_RKT_IQUE);
sys/dev/raid/aac/aac.c
2622
if (index == 0xffffffffL)
sys/dev/raid/aac/aac.c
2623
return index;
sys/dev/raid/aac/aac.c
2625
device = index;
sys/dev/raid/aac/aac.c
2631
AAC_MEM0_SETREG4(sc, AAC_RKT_IQUE, index);
sys/dev/raid/aac/aac.c
2655
aac_rx_set_outb_queue(struct aac_softc *sc, int index)
sys/dev/raid/aac/aac.c
2659
AAC_MEM0_SETREG4(sc, AAC_RX_OQUE, index);
sys/dev/raid/aac/aac.c
2663
aac_rkt_set_outb_queue(struct aac_softc *sc, int index)
sys/dev/raid/aac/aac.c
2667
AAC_MEM0_SETREG4(sc, AAC_RKT_OQUE, index);
sys/dev/raid/aac/aac.c
814
u_int32_t index, fast;
sys/dev/raid/aac/aac.c
824
index = AAC_GET_OUTB_QUEUE(sc);
sys/dev/raid/aac/aac.c
825
if (index == 0xffffffff)
sys/dev/raid/aac/aac.c
826
index = AAC_GET_OUTB_QUEUE(sc);
sys/dev/raid/aac/aac.c
827
if (index == 0xffffffff)
sys/dev/raid/aac/aac.c
829
if (index & 2) {
sys/dev/raid/aac/aac.c
830
if (index == 0xfffffffe) {
sys/dev/raid/aac/aac.c
839
index &= ~2;
sys/dev/raid/aac/aac.c
841
((u_int32_t *)fib)[i] = AAC_MEM1_GETREG4(sc, index + i*4);
sys/dev/raid/aac/aac.c
849
AAC_SET_OUTB_QUEUE(sc, index);
sys/dev/raid/aac/aac.c
852
fast = index & 1;
sys/dev/raid/aac/aac.c
853
cm = sc->aac_commands + (index >> 2);
sys/dev/raid/aac/aacvar.h
249
void (*aif_set_outb_queue)(struct aac_softc *sc, int index);
sys/dev/raid/aac/aacvar.h
534
#define AACQ_COMMAND_QUEUE(name, index) \
sys/dev/raid/aac/aacvar.h
539
AACQ_INIT(sc, index); \
sys/dev/raid/aac/aacvar.h
549
cm->cm_flags |= AAC_ON_ ## index; \
sys/dev/raid/aac/aacvar.h
550
AACQ_ADD(cm->cm_sc, index); \
sys/dev/raid/aac/aacvar.h
560
cm->cm_flags |= AAC_ON_ ## index; \
sys/dev/raid/aac/aacvar.h
561
AACQ_ADD(cm->cm_sc, index); \
sys/dev/raid/aac/aacvar.h
569
if ((cm->cm_flags & AAC_ON_ ## index) == 0) { \
sys/dev/raid/aac/aacvar.h
571
cm, cm->cm_flags, AAC_ON_ ## index); \
sys/dev/raid/aac/aacvar.h
574
cm->cm_flags &= ~AAC_ON_ ## index; \
sys/dev/raid/aac/aacvar.h
575
AACQ_REMOVE(sc, index); \
sys/dev/raid/aac/aacvar.h
582
if ((cm->cm_flags & AAC_ON_ ## index) == 0) { \
sys/dev/raid/aac/aacvar.h
584
cm, cm->cm_flags, AAC_ON_ ## index); \
sys/dev/raid/aac/aacvar.h
587
cm->cm_flags &= ~AAC_ON_ ## index; \
sys/dev/raid/aac/aacvar.h
588
AACQ_REMOVE(cm->cm_sc, index); \
sys/dev/raid/arcmsr/arcmsr.c
1077
int ending_index, index;
sys/dev/raid/arcmsr/arcmsr.c
1079
index = phbbmu->postq_index;
sys/dev/raid/arcmsr/arcmsr.c
1080
ending_index = ((index+1) % ARCMSR_MAX_HBB_POSTQUEUE);
sys/dev/raid/arcmsr/arcmsr.c
1083
phbbmu->post_qbuffer[index] = cdb_phyaddr_low | ARCMSR_SRBPOST_FLAG_SGL_BSIZE;
sys/dev/raid/arcmsr/arcmsr.c
1085
phbbmu->post_qbuffer[index] = cdb_phyaddr_low;
sys/dev/raid/arcmsr/arcmsr.c
1087
index++;
sys/dev/raid/arcmsr/arcmsr.c
1088
index %= ARCMSR_MAX_HBB_POSTQUEUE; /*if last index number set it to 0 */
sys/dev/raid/arcmsr/arcmsr.c
1089
phbbmu->postq_index = index;
sys/dev/raid/arcmsr/arcmsr.c
1993
int index;
sys/dev/raid/arcmsr/arcmsr.c
2003
index = phbbmu->doneq_index;
sys/dev/raid/arcmsr/arcmsr.c
2004
while((flag_srb = phbbmu->done_qbuffer[index]) != 0) {
sys/dev/raid/arcmsr/arcmsr.c
2005
phbbmu->done_qbuffer[index] = 0;
sys/dev/raid/arcmsr/arcmsr.c
2006
index++;
sys/dev/raid/arcmsr/arcmsr.c
2007
index %= ARCMSR_MAX_HBB_POSTQUEUE; /*if last index number set it to 0 */
sys/dev/raid/arcmsr/arcmsr.c
2008
phbbmu->doneq_index = index;
sys/dev/raid/arcmsr/arcmsr.c
3392
int index;
sys/dev/raid/arcmsr/arcmsr.c
3400
index = phbbmu->doneq_index;
sys/dev/raid/arcmsr/arcmsr.c
3401
if((flag_srb = phbbmu->done_qbuffer[index]) == 0) {
sys/dev/raid/arcmsr/arcmsr.c
3412
phbbmu->done_qbuffer[index] = 0;
sys/dev/raid/arcmsr/arcmsr.c
3413
index++;
sys/dev/raid/arcmsr/arcmsr.c
3414
index %= ARCMSR_MAX_HBB_POSTQUEUE; /*if last index number set it to 0 */
sys/dev/raid/arcmsr/arcmsr.c
3415
phbbmu->doneq_index = index;
sys/dev/raid/asr/asr.c
676
new_ccb->ccb_h.pinfo.index = CAM_UNQUEUED_INDEX;
sys/dev/raid/ciss/ciss.c
2032
u_int32_t tag, index;
sys/dev/raid/ciss/ciss.c
2045
index = tag >> 2;
sys/dev/raid/ciss/ciss.c
2046
debug(2, "completed command %d%s", index,
sys/dev/raid/ciss/ciss.c
2048
if (index >= sc->ciss_max_requests) {
sys/dev/raid/ciss/ciss.c
2049
ciss_printf(sc, "completed invalid request %d (0x%x)\n", index, tag);
sys/dev/raid/ciss/ciss.c
2052
cr = &(sc->ciss_request[index]);
sys/dev/raid/ciss/ciss.c
2065
u_int32_t tag, index;
sys/dev/raid/ciss/ciss.c
2077
index = tag >> 2;
sys/dev/raid/ciss/ciss.c
2078
debug(2, "completed command %d%s\n", index,
sys/dev/raid/ciss/ciss.c
2080
if (index < sc->ciss_max_requests) {
sys/dev/raid/ciss/ciss.c
2081
cr = &(sc->ciss_request[index]);
sys/dev/raid/ciss/ciss.c
2086
ciss_printf(sc, "completed invalid request %d (0x%x)\n", index, tag);
sys/dev/raid/ciss/cissvar.h
314
#define CISSQ_REQUEST_QUEUE(name, index) \
sys/dev/raid/ciss/cissvar.h
319
CISSQ_INIT(sc, index); \
sys/dev/raid/ciss/cissvar.h
326
CISSQ_ADD(cr->cr_sc, index); \
sys/dev/raid/ciss/cissvar.h
327
cr->cr_onq = index; \
sys/dev/raid/ciss/cissvar.h
334
CISSQ_ADD(cr->cr_sc, index); \
sys/dev/raid/ciss/cissvar.h
335
cr->cr_onq = index; \
sys/dev/raid/ciss/cissvar.h
344
CISSQ_REMOVE(sc, index); \
sys/dev/raid/dpt/dpt_scsi.c
1221
int index;
sys/dev/raid/dpt/dpt_scsi.c
1423
index = string_sizes[i] - 1;
sys/dev/raid/dpt/dpt_scsi.c
1424
while (index && (strp[index] == ' '))
sys/dev/raid/dpt/dpt_scsi.c
1425
strp[index--] = '\0';
sys/dev/raid/hpt27xx/him.h
264
typedef void (*PROBE_CALLBACK)(void *arg, void *dev, int index);
sys/dev/raid/hpt27xx/himfuncs.h
40
_HIM_INTERFACE(HPT_BOOL, get_supported_device_id, (int index, PCI_ID *id))
sys/dev/raid/hpt27xx/himfuncs.h
65
_HIM_INTERFACE(HPT_BOOL, probe_device, (void *adapter, int index, void *devhandle, PROBE_CALLBACK done, void *arg))
sys/dev/raid/hpt27xx/himfuncs.h
66
_HIM_INTERFACE(void *, get_device, (void *adapter, int index))
sys/dev/raid/hpt27xx/himfuncs.h
84
_HIM_INTERFACE(int, get_channel_config, (void * adapter, int index, PHIM_CHANNEL_CONFIG pInfo))
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
100
int index,
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
108
hba->pcibar[index].rid = 0x10 + index * 4;
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
109
base = pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4);
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
112
hba->pcibar[index].type = SYS_RES_IOPORT;
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
113
hba->pcibar[index].res = bus_alloc_resource(hba->pcidev,
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
114
hba->pcibar[index].type, &hba->pcibar[index].rid, 0, ~0, length, RF_ACTIVE);
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
115
hba->pcibar[index].base = (void *)(unsigned long)(base & ~0x1);
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
117
hba->pcibar[index].type = SYS_RES_MEMORY;
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
118
hba->pcibar[index].res = bus_alloc_resource(hba->pcidev,
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
119
hba->pcibar[index].type, &hba->pcibar[index].rid, 0, ~0, length, RF_ACTIVE);
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
120
hba->pcibar[index].base = (char *)rman_get_virtual(hba->pcibar[index].res) + offset;
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
123
return hba->pcibar[index].base;
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
129
int index;
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
131
for (index=0; index<6; index++) {
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
132
if (hba->pcibar[index].base==base) {
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
133
bus_release_resource(hba->pcidev, hba->pcibar[index].type,
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
134
hba->pcibar[index].rid, hba->pcibar[index].res);
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
135
hba->pcibar[index].base = 0;
sys/dev/raid/hpt27xx/ldm.h
271
int index;
sys/dev/raid/hpt27xx/osm.h
165
int index,
sys/dev/raid/hptiop/hptiop.c
1297
u_int32_t index;
sys/dev/raid/hptiop/hptiop.c
1325
index = hba->u.mvfrey.inlist_wptr & 0x3fff;
sys/dev/raid/hptiop/hptiop.c
1327
if (index == hba->u.mvfrey.list_count) {
sys/dev/raid/hptiop/hptiop.c
1328
index = 0;
sys/dev/raid/hptiop/hptiop.c
1333
hba->u.mvfrey.inlist[index].addr = phy_addr;
sys/dev/raid/hptiop/hptiop.c
1334
hba->u.mvfrey.inlist[index].intrfc_len = (req->header.size + 3) / 4;
sys/dev/raid/hptiop/hptiop.c
2494
req->header.context = (u_int64_t)srb->index |
sys/dev/raid/hptiop/hptiop.c
2570
req->header.context = (u_int64_t)srb->index
sys/dev/raid/hptiop/hptiop.c
2584
int idx, index;
sys/dev/raid/hptiop/hptiop.c
2629
| srb->index << 4
sys/dev/raid/hptiop/hptiop.c
2633
index = hba->u.mvfrey.inlist_wptr & 0x3fff;
sys/dev/raid/hptiop/hptiop.c
2635
if (index == hba->u.mvfrey.list_count) {
sys/dev/raid/hptiop/hptiop.c
2636
index = 0;
sys/dev/raid/hptiop/hptiop.c
2641
hba->u.mvfrey.inlist[index].addr = req_phy;
sys/dev/raid/hptiop/hptiop.c
2642
hba->u.mvfrey.inlist[index].intrfc_len = (req->header.size + 3) / 4;
sys/dev/raid/hptiop/hptiop.c
2750
tmp_srb->index = i;
sys/dev/raid/hptiop/hptiop.c
327
u_int32_t index)
sys/dev/raid/hptiop/hptiop.c
336
if (index & IOPMU_QUEUE_MASK_HOST_BITS) { /*host req*/
sys/dev/raid/hptiop/hptiop.c
339
srb = hba->srb[index & ~(u_int32_t)
sys/dev/raid/hptiop/hptiop.c
343
if (index & IOPMU_QUEUE_REQUEST_RESULT_BIT)
sys/dev/raid/hptiop/hptiop.c
348
srb = hba->srb[index &
sys/dev/raid/hptiop/hptiop.c
358
temp = bus_space_read_4(hba->bar0t, hba->bar0h, index +
sys/dev/raid/hptiop/hptiop.c
360
result = bus_space_read_4(hba->bar0t, hba->bar0h, index +
sys/dev/raid/hptiop/hptiop.c
366
bus_space_write_region_4(hba->bar0t, hba->bar0h, index +
sys/dev/raid/hptiop/hptiop.c
369
wakeup((void *)((unsigned long)hba->u.itl.mu + index));
sys/dev/raid/hptiop/hptiop.c
374
bus_space_read_region_4(hba->bar0t, hba->bar0h, index +
sys/dev/raid/hptiop/hptiop.c
379
index + offsetof(struct hpt_iop_request_scsi_command,
sys/dev/raid/hptiop/hptiop.c
436
index + offsetof(struct hpt_iop_request_scsi_command,
sys/dev/raid/hptiop/hptiop.c
453
BUS_SPACE_WRT4_ITL(outbound_queue, index);
sys/dev/raid/hptiop/hptiop.c
853
u_int32_t i, index;
sys/dev/raid/hptiop/hptiop.c
868
index = hba->u.mvfrey.inlist_wptr & 0x3fff;
sys/dev/raid/hptiop/hptiop.c
870
if (index == hba->u.mvfrey.list_count) {
sys/dev/raid/hptiop/hptiop.c
871
index = 0;
sys/dev/raid/hptiop/hptiop.c
876
hba->u.mvfrey.inlist[index].addr = phy_addr;
sys/dev/raid/hptiop/hptiop.c
877
hba->u.mvfrey.inlist[index].intrfc_len = (reqhdr->size + 3) / 4;
sys/dev/raid/hptiop/hptiop.h
460
int index;
sys/dev/raid/hptmv/entry.c
2032
ccb->ccb_h.pinfo.index = CAM_UNQUEUED_INDEX;
sys/dev/raid/hptrr/him.h
238
typedef void (*PROBE_CALLBACK)(void *arg, void *dev, int index);
sys/dev/raid/hptrr/himfuncs.h
41
_HIM_INTERFACE(HPT_BOOL, get_supported_device_id, (int index, PCI_ID *id))
sys/dev/raid/hptrr/himfuncs.h
66
_HIM_INTERFACE(HPT_BOOL, probe_device, (void *adapter, int index, void *devhandle, PROBE_CALLBACK done, void *arg))
sys/dev/raid/hptrr/himfuncs.h
67
_HIM_INTERFACE(void *, get_device, (void *adapter, int index))
sys/dev/raid/hptrr/himfuncs.h
85
_HIM_INTERFACE(int, get_channel_config, (void * adapter, int index, PHIM_CHANNEL_CONFIG pInfo))
sys/dev/raid/hptrr/hptrr_os_bsd.c
101
hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev,
sys/dev/raid/hptrr/hptrr_os_bsd.c
102
hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
sys/dev/raid/hptrr/hptrr_os_bsd.c
104
hba->pcibar[index].base = (char *)rman_get_virtual(hba->pcibar[index].res) + offset;
sys/dev/raid/hptrr/hptrr_os_bsd.c
105
return hba->pcibar[index].base;
sys/dev/raid/hptrr/hptrr_os_bsd.c
111
int index;
sys/dev/raid/hptrr/hptrr_os_bsd.c
113
for (index=0; index<6; index++) {
sys/dev/raid/hptrr/hptrr_os_bsd.c
114
if (hba->pcibar[index].base==base) {
sys/dev/raid/hptrr/hptrr_os_bsd.c
115
bus_release_resource(hba->pcidev, hba->pcibar[index].type,
sys/dev/raid/hptrr/hptrr_os_bsd.c
116
hba->pcibar[index].rid, hba->pcibar[index].res);
sys/dev/raid/hptrr/hptrr_os_bsd.c
117
hba->pcibar[index].base = 0;
sys/dev/raid/hptrr/hptrr_os_bsd.c
87
int index,
sys/dev/raid/hptrr/hptrr_os_bsd.c
94
hba->pcibar[index].rid = 0x10 + index * 4;
sys/dev/raid/hptrr/hptrr_os_bsd.c
96
if (pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4) & 1)
sys/dev/raid/hptrr/hptrr_os_bsd.c
97
hba->pcibar[index].type = SYS_RES_IOPORT;
sys/dev/raid/hptrr/hptrr_os_bsd.c
99
hba->pcibar[index].type = SYS_RES_MEMORY;
sys/dev/raid/hptrr/ldm.h
267
int index;
sys/dev/raid/hptrr/osm.h
131
int index,
sys/dev/raid/iir/iir.c
1589
gdt->sc_dvr.eu.driver.index = ctx.istatus;
sys/dev/raid/iir/iir.c
170
u_int8_t index, struct gdt_ccb *gccb);
sys/dev/raid/iir/iir.c
1708
u_int8_t index, struct gdt_ccb *gccb)
sys/dev/raid/iir/iir.c
1713
("gdt_sync_event(%p, %d, %d, %p)\n", gdt,service,index,gccb));
sys/dev/raid/iir/iir.h
522
u_int32_t index;
sys/dev/raid/mfi/mfi_tbolt.c
1096
uint16_t index;
sys/dev/raid/mfi/mfi_tbolt.c
1100
mfi_cmd->cm_extra_frames = cmd->index;
sys/dev/raid/mfi/mfi_tbolt.c
1103
index = cmd->index;
sys/dev/raid/mfi/mfi_tbolt.c
1104
req_desc = mfi_tbolt_get_request_descriptor(sc, index-1);
sys/dev/raid/mfi/mfi_tbolt.c
1107
req_desc->header.SMID = index;
sys/dev/raid/mfi/mfi_tbolt.c
1115
uint16_t index;
sys/dev/raid/mfi/mfi_tbolt.c
1122
index = cmd->cm_extra_frames;
sys/dev/raid/mfi/mfi_tbolt.c
1124
req_desc = mfi_tbolt_get_request_descriptor(sc, index - 1);
sys/dev/raid/mfi/mfi_tbolt.c
1131
req_desc->header.SMID = index;
sys/dev/raid/mfi/mfi_tbolt.c
500
cmd->index = i + 1;
sys/dev/raid/mfi/mfi_tbolt.c
57
mfi_tbolt_get_request_descriptor(struct mfi_softc *sc, uint16_t index);
sys/dev/raid/mfi/mfi_tbolt.c
793
mfi_tbolt_get_request_descriptor(struct mfi_softc *sc, uint16_t index)
sys/dev/raid/mfi/mfi_tbolt.c
797
if (index >= sc->mfi_max_fw_cmds) {
sys/dev/raid/mfi/mfi_tbolt.c
799
"for descriptor\n", index);
sys/dev/raid/mfi/mfi_tbolt.c
803
* index;
sys/dev/raid/mfi/mfi_tbolt.c
820
mfi_cmd->cm_extra_frames = cmd->index; /* Frame count used as SMID */
sys/dev/raid/mfi/mfivar.h
400
uint16_t index;
sys/dev/raid/mfi/mfivar.h
455
#define MFIQ_COMMAND_QUEUE(name, index) \
sys/dev/raid/mfi/mfivar.h
460
MFIQ_INIT(sc, index); \
sys/dev/raid/mfi/mfivar.h
471
cm->cm_flags |= MFI_ON_ ## index; \
sys/dev/raid/mfi/mfivar.h
472
MFIQ_ADD(cm->cm_sc, index); \
sys/dev/raid/mfi/mfivar.h
483
cm->cm_flags |= MFI_ON_ ## index; \
sys/dev/raid/mfi/mfivar.h
484
MFIQ_ADD(cm->cm_sc, index); \
sys/dev/raid/mfi/mfivar.h
492
if ((cm->cm_flags & MFI_ON_ ## index) == 0) { \
sys/dev/raid/mfi/mfivar.h
495
cm->cm_flags, MFI_ON_ ## index); \
sys/dev/raid/mfi/mfivar.h
499
cm->cm_flags &= ~MFI_ON_ ## index; \
sys/dev/raid/mfi/mfivar.h
500
MFIQ_REMOVE(sc, index); \
sys/dev/raid/mfi/mfivar.h
507
if ((cm->cm_flags & MFI_ON_ ## index) == 0) { \
sys/dev/raid/mfi/mfivar.h
510
MFI_ON_ ## index); \
sys/dev/raid/mfi/mfivar.h
514
cm->cm_flags &= ~MFI_ON_ ## index; \
sys/dev/raid/mfi/mfivar.h
515
MFIQ_REMOVE(cm->cm_sc, index); \
sys/dev/raid/mly/mlyvar.h
309
#define MLYQ_COMMAND_QUEUE(name, index) \
sys/dev/raid/mly/mlyvar.h
314
MLYQ_INIT(sc, index); \
sys/dev/raid/mly/mlyvar.h
321
MLYQ_ADD(mc->mc_sc, index); \
sys/dev/raid/mly/mlyvar.h
329
MLYQ_ADD(mc->mc_sc, index); \
sys/dev/raid/mly/mlyvar.h
340
MLYQ_REMOVE(sc, index); \
sys/dev/raid/mly/mlyvar.h
350
MLYQ_REMOVE(mc->mc_sc, index); \
sys/dev/raid/mpr/mpr_mapping.c
1147
u32 map_idx, index, device_info;
sys/dev/raid/mpr/mpr_mapping.c
1293
for (index = map_idx; index < (et_entry->num_slots
sys/dev/raid/mpr/mpr_mapping.c
1294
+ map_idx); index++, mt_entry++) {
sys/dev/raid/mpr/mpr_mapping.c
1324
u32 map_idx, index;
sys/dev/raid/mpr/mpr_mapping.c
1444
for (index = map_idx; index < (et_entry->num_slots
sys/dev/raid/mpr/mpr_mapping.c
1445
+ map_idx); index++, mt_entry++) {
sys/dev/raid/mpr/mpr_user.c
1237
uint8_t index;
sys/dev/raid/mpr/mpr_user.c
1239
for (index = 0; index < MPI2_DIAG_BUF_TYPE_COUNT; index++) {
sys/dev/raid/mpr/mpr_user.c
1240
if (sc->fw_diag_buffer_list[index].unique_id == unique_id) {
sys/dev/raid/mpr/mpr_user.c
1241
return (index);
sys/dev/raid/mps/mps_config.c
355
uint8_t index, stripe_exp = 0, block_exp = 0;
sys/dev/raid/mps/mps_config.c
422
for (index = 0; index < 32; index++) {
sys/dev/raid/mps/mps_config.c
428
if (index == 32) {
sys/dev/raid/mps/mps_config.c
441
for (index = 0; index < 16; index++) {
sys/dev/raid/mps/mps_config.c
447
if (index == 16) {
sys/dev/raid/mps/mps_config.c
461
for (index = 0; index < raid_vol_pg0->NumPhysDisks; index++) {
sys/dev/raid/mps/mps_config.c
491
for (index = 0; index < raid_vol_pg0->NumPhysDisks; index++) {
sys/dev/raid/mps/mps_config.c
494
sc->DD_column_map[index].phys_disk_num;
sys/dev/raid/mps/mps_config.c
508
sc->DD_column_map[index].dev_handle =
sys/dev/raid/mps/mps_mapping.c
888
u32 map_idx, index, device_info;
sys/dev/raid/mps/mps_mapping.c
993
for (index = map_idx; index < (et_entry->num_slots
sys/dev/raid/mps/mps_mapping.c
994
+ map_idx); index++, mt_entry++) {
sys/dev/raid/mps/mps_user.c
1129
uint8_t index;
sys/dev/raid/mps/mps_user.c
1131
for (index = 0; index < MPI2_DIAG_BUF_TYPE_COUNT; index++) {
sys/dev/raid/mps/mps_user.c
1132
if (sc->fw_diag_buffer_list[index].unique_id == unique_id) {
sys/dev/raid/mps/mps_user.c
1133
return (index);
sys/dev/raid/mrsas/mrsas.c
147
u_int16_t index);
sys/dev/raid/mrsas/mrsas.c
2047
cmd->index = i + 1;
sys/dev/raid/mrsas/mrsas.c
2777
u_int16_t index;
sys/dev/raid/mrsas/mrsas.c
2784
index = cmd->cmd_id.context.smid;
sys/dev/raid/mrsas/mrsas.c
2786
req_desc = mrsas_get_request_desc(sc, index-1);
sys/dev/raid/mrsas/mrsas.c
2793
req_desc->SCSIIO.SMID = index;
sys/dev/raid/mrsas/mrsas.c
2819
mfi_cmd->cmd_id.context.smid = mpt_cmd->index;
sys/dev/raid/mrsas/mrsas.c
2821
mpt_cmd->sync_cmd_idx = mfi_cmd->index;
sys/dev/raid/mrsas/mrsas.c
3486
abort_fr->abort_context = cmd_to_abort->index;
sys/dev/raid/mrsas/mrsas.h
1269
u_int32_t index;
sys/dev/raid/mrsas/mrsas.h
1294
u_int32_t index;
sys/dev/raid/mrsas/mrsas_cam.c
481
req_desc = mrsas_get_request_desc(sc, (cmd->index)-1);
sys/dev/raid/mrsas/mrsas_cam.c
522
req_desc->SCSIIO.SMID = cmd->index;
sys/dev/raid/mrsas/mrsas_cam.c
625
mrsas_get_request_desc(struct mrsas_softc *sc, u_int16_t index)
sys/dev/raid/mrsas/mrsas_cam.c
629
if (index >= sc->max_fw_cmds) {
sys/dev/raid/mrsas/mrsas_cam.c
630
device_printf(sc->mrsas_dev, "Invalid SMID (0x%x)request for desc\n", index);
sys/dev/raid/mrsas/mrsas_cam.c
633
p = sc->req_desc + sizeof(MRSAS_REQUEST_DESCRIPTOR_UNION) * index;
sys/dev/raid/mrsas/mrsas_cam.c
91
u_int16_t index);
sys/dev/raid/mrsas/mrsas_ioctl.c
206
cmd->frame->hdr.context = cmd->index;
sys/dev/raid/mrsas/mrsas_ioctl.c
415
cmd->index = i;
sys/dev/raid/mrsas/mrsas_ioctl.c
472
cmd->frame->io.context = cmd->index;
sys/dev/raid/twe/twevar.h
218
#define TWEQ_REQUEST_QUEUE(name, index) \
sys/dev/raid/twe/twevar.h
223
TWEQ_INIT(sc, index); \
sys/dev/raid/twe/twevar.h
229
TWEQ_ADD(tr->tr_sc, index); \
sys/dev/raid/twe/twevar.h
235
TWEQ_ADD(tr->tr_sc, index); \
sys/dev/raid/twe/twevar.h
244
TWEQ_REMOVE(sc, index); \
sys/dev/raid/twe/twevar.h
252
TWEQ_REMOVE(tr->tr_sc, index); \
sys/dev/raid/tws/tws_services.c
132
tws_log(struct tws_softc *sc, int index)
sys/dev/raid/tws/tws_services.c
134
device_printf((sc)->tws_dev, array[index].fmt,
sys/dev/raid/tws/tws_services.c
135
array[index].error_str,
sys/dev/raid/tws/tws_services.c
136
array[index].error_code,
sys/dev/raid/tws/tws_services.c
137
array[index].severity_level,
sys/dev/raid/tws/tws_services.c
138
array[index].desc );
sys/dev/raid/tws/tws_services.h
42
void tws_log(struct tws_softc *sc, int index);
sys/dev/raid/tws/tws_user.c
191
u_int16_t index=0;
sys/dev/raid/tws/tws_user.c
214
index = sc->aen_q.head;
sys/dev/raid/tws/tws_user.c
218
index = (sc->aen_q.depth + sc->aen_q.tail - 1) % sc->aen_q.depth;
sys/dev/raid/tws/tws_user.c
222
index = sc->aen_q.head;
sys/dev/raid/tws/tws_user.c
224
if ( qp[index].sequence_id ==
sys/dev/raid/tws/tws_user.c
227
index = (index+1) % sc->aen_q.depth;
sys/dev/raid/tws/tws_user.c
228
}while ( index != sc->aen_q.tail );
sys/dev/raid/tws/tws_user.c
229
if ( index == sc->aen_q.tail ) {
sys/dev/raid/tws/tws_user.c
236
index = sc->aen_q.head;
sys/dev/raid/tws/tws_user.c
238
if ( qp[index].sequence_id ==
sys/dev/raid/tws/tws_user.c
241
index = (index+1) % sc->aen_q.depth;
sys/dev/raid/tws/tws_user.c
242
}while ( index != sc->aen_q.tail );
sys/dev/raid/tws/tws_user.c
243
if ( index == sc->aen_q.tail ) {
sys/dev/raid/tws/tws_user.c
254
memcpy(ubuf->data_buf, &qp[index],
sys/dev/raid/tws/tws_user.c
256
qp[index].retrieved = TWS_AEN_RETRIEVED;
sys/dev/raid/vinum/vinum.c
376
unsigned int index;
sys/dev/raid/vinum/vinum.c
387
index = Volno(dev);
sys/dev/raid/vinum/vinum.c
388
if (index >= vinum_conf.volumes_allocated)
sys/dev/raid/vinum/vinum.c
390
vol = &VOL[index];
sys/dev/raid/vinum/vinum.c
414
index = Plexno(dev); /* get plex index in vinum_conf */
sys/dev/raid/vinum/vinum.c
415
if (index >= vinum_conf.plexes_allocated)
sys/dev/raid/vinum/vinum.c
417
plex = &PLEX[index];
sys/dev/raid/vinum/vinum.c
437
index = Sdno(dev); /* get the subdisk number */
sys/dev/raid/vinum/vinum.c
438
if ((index >= vinum_conf.subdisks_allocated) /* not a valid SD entry */
sys/dev/raid/vinum/vinum.c
439
||(SD[index].state < sd_init)) /* or SD is not real */
sys/dev/raid/vinum/vinum.c
441
sd = &SD[index];
sys/dev/raid/vinum/vinum.c
483
unsigned int index;
sys/dev/raid/vinum/vinum.c
488
index = Volno(dev);
sys/dev/raid/vinum/vinum.c
492
if (index >= vinum_conf.volumes_allocated)
sys/dev/raid/vinum/vinum.c
494
vol = &VOL[index];
sys/dev/raid/vinum/vinum.c
518
index = Plexno(dev); /* get plex index in vinum_conf */
sys/dev/raid/vinum/vinum.c
519
if (index >= vinum_conf.plexes_allocated)
sys/dev/raid/vinum/vinum.c
521
PLEX[index].flags &= ~VF_OPEN; /* reset our flags */
sys/dev/raid/vinum/vinum.c
531
index = Sdno(dev); /* get the subdisk number */
sys/dev/raid/vinum/vinum.c
532
if (index >= vinum_conf.subdisks_allocated)
sys/dev/raid/vinum/vinum.c
534
SD[index].flags &= ~VF_OPEN; /* reset our flags */
sys/dev/raid/vinum/vinumconfig.c
1699
remove_drive_entry(message.index, message.force);
sys/dev/raid/vinum/vinumconfig.c
1704
remove_sd_entry(message.index, message.force, message.recurse);
sys/dev/raid/vinum/vinumconfig.c
1709
remove_plex_entry(message.index, message.force, message.recurse);
sys/dev/raid/vinum/vinumconfig.c
1714
remove_volume_entry(message.index, message.force, message.recurse);
sys/dev/raid/vinum/vinumio.h
103
int index;
sys/dev/raid/vinum/vinumio.h
80
int index;
sys/dev/raid/vinum/vinumioctl.c
134
index = *(int *) data;
sys/dev/raid/vinum/vinumioctl.c
135
if (index >= (unsigned)vinum_conf.drives_allocated) {
sys/dev/raid/vinum/vinumioctl.c
138
bcopy(&DRIVE[index], data, sizeof(struct drive));
sys/dev/raid/vinum/vinumioctl.c
143
index = *(int *) data;
sys/dev/raid/vinum/vinumioctl.c
144
if (index >= (unsigned) vinum_conf.subdisks_allocated) {
sys/dev/raid/vinum/vinumioctl.c
147
bcopy(&SD[index], data, sizeof(struct sd));
sys/dev/raid/vinum/vinumioctl.c
152
index = *(int *) data;
sys/dev/raid/vinum/vinumioctl.c
153
if (index >= (unsigned) vinum_conf.plexes_allocated) {
sys/dev/raid/vinum/vinumioctl.c
156
bcopy(&PLEX[index], data, sizeof(struct plex));
sys/dev/raid/vinum/vinumioctl.c
161
index = *(int *) data;
sys/dev/raid/vinum/vinumioctl.c
162
if (index >= (unsigned) vinum_conf.volumes_allocated) {
sys/dev/raid/vinum/vinumioctl.c
165
bcopy(&VOL[index], data, sizeof(struct volume));
sys/dev/raid/vinum/vinumioctl.c
170
index = ((int *)data)[0]; /* get the plex index */
sys/dev/raid/vinum/vinumioctl.c
172
if ((index >= (unsigned) vinum_conf.plexes_allocated)
sys/dev/raid/vinum/vinumioctl.c
173
||(sdno >= PLEX[index].subdisks)) {
sys/dev/raid/vinum/vinumioctl.c
176
bcopy(&SD[PLEX[index].sdnos[sdno]], data, sizeof(struct sd));
sys/dev/raid/vinum/vinumioctl.c
259
index = *(int *) data; /* get the drive index */
sys/dev/raid/vinum/vinumioctl.c
261
if ((index >= (unsigned) vinum_conf.drives_allocated) /* plex doesn't exist */
sys/dev/raid/vinum/vinumioctl.c
262
||(DRIVE[index].state == drive_unallocated)) {
sys/dev/raid/vinum/vinumioctl.c
264
} else if (fe >= DRIVE[index].freelist_entries) {
sys/dev/raid/vinum/vinumioctl.c
267
bcopy(&DRIVE[index].freelist[fe], data,
sys/dev/raid/vinum/vinumioctl.c
433
if (msg->index < vinum_conf.drives_allocated) {
sys/dev/raid/vinum/vinumioctl.c
434
struct drive *drive = &DRIVE[msg->index];
sys/dev/raid/vinum/vinumioctl.c
447
if (msg->index < vinum_conf.subdisks_allocated) {
sys/dev/raid/vinum/vinumioctl.c
448
struct sd *sd = &SD[msg->index];
sys/dev/raid/vinum/vinumioctl.c
463
if (msg->index < vinum_conf.plexes_allocated) {
sys/dev/raid/vinum/vinumioctl.c
464
struct plex *plex = &PLEX[msg->index];
sys/dev/raid/vinum/vinumioctl.c
484
if (msg->index < vinum_conf.volumes_allocated) {
sys/dev/raid/vinum/vinumioctl.c
485
struct volume *vol = &VOL[msg->index];
sys/dev/raid/vinum/vinumioctl.c
523
sd = validsd(msg->index, reply);
sys/dev/raid/vinum/vinumioctl.c
559
plex = validplex(msg->index, reply); /* get plex */
sys/dev/raid/vinum/vinumioctl.c
577
give_plex_to_volume(msg->otherobject, msg->index); /* and give it to the volume */
sys/dev/raid/vinum/vinumioctl.c
604
sd = validsd(msg->index, reply);
sys/dev/raid/vinum/vinumioctl.c
627
if (plex->sdnos[sdno] == msg->index) /* found our subdisk */
sys/dev/raid/vinum/vinumioctl.c
656
plex = validplex(msg->index, reply); /* get plex */
sys/dev/raid/vinum/vinumioctl.c
676
if (vol->plex[plexno] == msg->index) /* found our plex */
sys/dev/raid/vinum/vinumioctl.c
71
unsigned int index; /* for transferring config info */
sys/dev/raid/vinum/vinumioctl.c
738
drive = validdrive(msg->index, reply);
sys/dev/raid/vinum/vinumioctl.c
752
sd = validsd(msg->index, reply);
sys/dev/raid/vinum/vinumioctl.c
767
plex = validplex(msg->index, reply);
sys/dev/raid/vinum/vinumioctl.c
782
vol = validvol(msg->index, reply);
sys/dev/raid/vinum/vinumioctl.c
785
update_volume_config(msg->index, 0);
sys/dev/raid/vinum/vinumioctl.c
821
drive = validdrive(msg->index, (struct _ioctl_reply *) msg);
sys/dev/raid/vinum/vinumioctl.c
827
if (sd->driveno == msg->index) /* sd already belongs to drive */
sys/dev/raid/vinum/vinumioctl.c
845
sd->driveno = msg->index;
sys/dev/raid/vinum/vinumrevive.c
259
plexno = data->index;
sys/dev/raid/vinum/vinumstate.c
1005
plex = &PLEX[msg->index];
sys/dev/raid/vinum/vinumstate.c
1006
if ((msg->index >= vinum_conf.plexes_allocated)
sys/dev/raid/vinum/vinumstate.c
1008
ksprintf(ioctl_reply->msg, "Invalid plex %d", msg->index);
sys/dev/raid/vinum/vinumstate.c
1012
set_plex_state(msg->index, plex_initializing, msg->force);
sys/dev/raid/vinum/vinumstate.c
1038
sd = &SD[msg->index];
sys/dev/raid/vinum/vinumstate.c
1039
if ((msg->index >= vinum_conf.subdisks_allocated)
sys/dev/raid/vinum/vinumstate.c
1041
ksprintf(ioctl_reply->msg, "Invalid subdisk %d", msg->index);
sys/dev/raid/vinum/vinumstate.c
1045
set_sd_state(msg->index, sd_initialized, msg->force);
sys/dev/raid/vinum/vinumstate.c
1074
DRIVE[msg->index].state = msg->state;
sys/dev/raid/vinum/vinumstate.c
1078
SD[msg->index].state = msg->state;
sys/dev/raid/vinum/vinumstate.c
1082
PLEX[msg->index].state = msg->state;
sys/dev/raid/vinum/vinumstate.c
1086
VOL[msg->index].state = msg->state;
sys/dev/raid/vinum/vinumstate.c
851
int objindex = data->index; /* data gets overwritten */
sys/dev/raid/vinum/vinumstate.c
937
int objindex = data->index; /* save the number from change */
sys/dev/raid/vinum/vinumstate.c
989
sd = &SD[msg->index];
sys/dev/raid/vinum/vinumstate.c
990
if ((msg->index >= vinum_conf.subdisks_allocated)
sys/dev/raid/vinum/vinumstate.c
992
ksprintf(ioctl_reply->msg, "Invalid subdisk %d", msg->index);
sys/dev/raid/vinum/vinumstate.c
996
set_sd_state(msg->index, sd_initializing, msg->force);
sys/dev/sound/pci/als4000.c
108
als_gcr_rd(struct sc_info *sc, int index)
sys/dev/sound/pci/als4000.c
110
bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index);
sys/dev/sound/pci/als4000.c
115
als_gcr_wr(struct sc_info *sc, int index, int data)
sys/dev/sound/pci/als4000.c
117
bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index);
sys/dev/sound/pci/als4000.c
134
als_mix_rd(struct sc_info *sc, u_int8_t index)
sys/dev/sound/pci/als4000.c
136
bus_space_write_1(sc->st, sc->sh, ALS_MIXER_INDEX, index);
sys/dev/sound/pci/als4000.c
141
als_mix_wr(struct sc_info *sc, u_int8_t index, u_int8_t data)
sys/dev/sound/pci/als4000.c
143
bus_space_write_1(sc->st, sc->sh, ALS_MIXER_INDEX, index);
sys/dev/sound/pci/es137x.c
141
int dir, num, index;
sys/dev/sound/pci/es137x.c
447
uint32_t index;
sys/dev/sound/pci/es137x.c
452
index = ES_GP(es->escfg);
sys/dev/sound/pci/es137x.c
453
es->escfg = ES_SET_GP(es->escfg, index + 1);
sys/dev/sound/pci/es137x.c
454
if (index == 0)
sys/dev/sound/pci/es137x.c
455
index = ES_DAC_FIRST(es->escfg);
sys/dev/sound/pci/es137x.c
456
else if (index == 1)
sys/dev/sound/pci/es137x.c
457
index = ES_DAC_SECOND(es->escfg);
sys/dev/sound/pci/es137x.c
460
"Invalid ES_GP index: %d\n", index);
sys/dev/sound/pci/es137x.c
464
if (!(index == ES_DAC1 || index == ES_DAC2)) {
sys/dev/sound/pci/es137x.c
465
device_printf(es->dev, "Unknown DAC: %d\n", index + 1);
sys/dev/sound/pci/es137x.c
469
if (es->ch[index].channel != NULL) {
sys/dev/sound/pci/es137x.c
471
index + 1);
sys/dev/sound/pci/es137x.c
476
index = ES_ADC;
sys/dev/sound/pci/es137x.c
478
ch = &es->ch[index];
sys/dev/sound/pci/es137x.c
479
ch->index = index;
sys/dev/sound/pci/es137x.c
483
if (ch->index == ES_DAC1) {
sys/dev/sound/pci/es137x.c
507
if (ch->index == ES_DAC1) {
sys/dev/sound/pci/es137x.c
541
if (ch->index == ES_DAC1) {
sys/dev/sound/pci/es137x.c
583
if (ch->index == ES_DAC1) {
sys/dev/sound/pci/es137x.c
622
i = es1371_dac_rate(es, speed, ch->index); /* play */
sys/dev/sound/pci/es137x.c
624
i = es1371_adc_rate(es, speed, ch->index); /* record */
sys/dev/sound/pci/es137x.c
698
if (ch->index == ES_DAC1)
sys/dev/sound/pci/es137x.c
772
if (ch->index == ES_DAC1) {
sys/dev/sound/pci/es137x.c
806
es->ctrl &= ~((ch->index == ES_DAC1) ?
sys/dev/sound/pci/es137x.c
864
if (ch->index == ES_DAC1)
sys/dev/sound/pci/hda/hda_reg.h
164
#define HDA_CMD_SET_AMP_GAIN_MUTE_INDEX(index) \
sys/dev/sound/pci/hda/hda_reg.h
165
(((index) << HDA_CMD_SET_AMP_GAIN_MUTE_INDEX_SHIFT) & \
sys/dev/sound/pci/hda/hda_reg.h
167
#define HDA_CMD_SET_AMP_GAIN_MUTE_GAIN(index) \
sys/dev/sound/pci/hda/hda_reg.h
168
(((index) << HDA_CMD_SET_AMP_GAIN_MUTE_GAIN_SHIFT) & \
sys/dev/sound/pci/hda/hdaa.c
1683
int index, int lmute, int rmute,
sys/dev/sound/pci/hda/hdaa.c
1691
nid,index,dir ? "in" : "out",lmute,rmute,left,right);
sys/dev/sound/pci/hda/hdaa.c
1694
v = (1 << (15 - dir)) | (1 << 13) | (index << 8) |
sys/dev/sound/pci/hda/hdaa.c
1698
v = (1 << (15 - dir)) | (1 << 12) | (index << 8) |
sys/dev/sound/pci/hda/hdaa.c
1701
v = (1 << (15 - dir)) | (3 << 12) | (index << 8) |
sys/dev/sound/pci/hda/hdaa.c
1738
hdaa_audio_ctl_amp_set_internal(ctl->widget->devinfo, nid, ctl->index,
sys/dev/sound/pci/hda/hdaa.c
1741
hdaa_audio_ctl_amp_set_internal(ctl->widget->devinfo, nid, ctl->index,
sys/dev/sound/pci/hda/hdaa.c
1746
hdaa_widget_connection_select(struct hdaa_widget *w, uint8_t index)
sys/dev/sound/pci/hda/hdaa.c
1748
if (w == NULL || w->nconns < 1 || index > (w->nconns - 1))
sys/dev/sound/pci/hda/hdaa.c
1752
"Setting selector nid=%d index=%d\n", w->nid, index);
sys/dev/sound/pci/hda/hdaa.c
1755
HDA_CMD_SET_CONNECTION_SELECT_CONTROL(0, w->nid, index));
sys/dev/sound/pci/hda/hdaa.c
1756
w->selconn = index;
sys/dev/sound/pci/hda/hdaa.c
200
hdaa_audio_ctl_each(struct hdaa_devinfo *devinfo, int *index)
sys/dev/sound/pci/hda/hdaa.c
203
index == NULL || devinfo->ctl == NULL ||
sys/dev/sound/pci/hda/hdaa.c
205
*index < 0 || *index >= devinfo->ctlcnt)
sys/dev/sound/pci/hda/hdaa.c
207
return (&devinfo->ctl[(*index)++]);
sys/dev/sound/pci/hda/hdaa.c
212
int index, int cnt)
sys/dev/sound/pci/hda/hdaa.c
228
if (index >= 0 && ctl->ndir == HDAA_CTL_IN &&
sys/dev/sound/pci/hda/hdaa.c
229
ctl->dir == ctl->ndir && ctl->index != index)
sys/dev/sound/pci/hda/hdaa.c
2385
int ossdev, nid_t nid, int index, int mute, int left, int right, int depth)
sys/dev/sound/pci/hda/hdaa.c
2413
index, 1);
sys/dev/sound/pci/hda/hdaa.c
2435
w->selconn != index))
sys/dev/sound/pci/hda/hdaa.c
2461
int ossdev, nid_t nid, int index, int mute, int left, int right, int depth)
sys/dev/sound/pci/hda/hdaa.c
2514
if (index >= 0 && i != index)
sys/dev/sound/pci/hda/hdaa.c
2557
if (pdevinfo->index != 0)
sys/dev/sound/pci/hda/hdaa.c
2838
(pdevinfo->index == 0 &&
sys/dev/sound/pci/hda/hdaa.c
3146
ctls[cnt].index = j;
sys/dev/sound/pci/hda/hdaa.c
3266
as[cnt].index = j;
sys/dev/sound/pci/hda/hdaa.c
3326
i, as[i].index, (as[i].dir == HDAA_CTL_IN)?"in":"out",
sys/dev/sound/pci/hda/hdaa.c
3738
asid, as->index);
sys/dev/sound/pci/hda/hdaa.c
4228
ctl->widget->connsenable[ctl->index] = 0;
sys/dev/sound/pci/hda/hdaa.c
4525
ctl->widget->connsenable[ctl->index] = 0;
sys/dev/sound/pci/hda/hdaa.c
4542
hdaa_audio_ctl_source_amp(struct hdaa_devinfo *devinfo, nid_t nid, int index,
sys/dev/sound/pci/hda/hdaa.c
4570
index, 1);
sys/dev/sound/pci/hda/hdaa.c
4648
hdaa_audio_ctl_dest_amp(struct hdaa_devinfo *devinfo, nid_t nid, int index,
sys/dev/sound/pci/hda/hdaa.c
4708
if (index >= 0 && i != index)
sys/dev/sound/pci/hda/hdaa.c
4900
"Tracing association %d (%d)\n", j, as[j].index);
sys/dev/sound/pci/hda/hdaa.c
4920
j, as[j].index);
sys/dev/sound/pci/hda/hdaa.c
4926
j, as[j].index);
sys/dev/sound/pci/hda/hdaa.c
5529
devinfo->devs[i].index = i;
sys/dev/sound/pci/hda/hdaa.c
5604
(ctl->widget->bindas == -2 && pdevinfo->index == 0)))
sys/dev/sound/pci/hda/hdaa.c
5630
kprintf(" %2d): ", ctl->index);
sys/dev/sound/pci/hda/hdaa.c
6267
ctl->index);
sys/dev/sound/pci/hda/hdaa.h
140
int index, dir, ndir;
sys/dev/sound/pci/hda/hdaa.h
153
u_char index;
sys/dev/sound/pci/hda/hdaa.h
173
int index;
sys/dev/sound/pci/t4dwave.c
315
bank = (ch->index & 0x20) ? 1 : 0;
sys/dev/sound/pci/t4dwave.c
316
chan = ch->index & 0x1f;
sys/dev/sound/pci/t4dwave.c
327
bank = (ch->index & 0x20) ? 1 : 0;
sys/dev/sound/pci/t4dwave.c
328
chan = ch->index & 0x1f;
sys/dev/sound/pci/t4dwave.c
340
bank = (ch->index & 0x20) ? 1 : 0;
sys/dev/sound/pci/t4dwave.c
341
chan = ch->index & 0x1f;
sys/dev/sound/pci/t4dwave.c
363
i |= ch->index & 0x3f;
sys/dev/sound/pci/t4dwave.c
373
bank = (ch->index & 0x20) ? 1 : 0;
sys/dev/sound/pci/t4dwave.c
374
chan = ch->index & 0x1f;
sys/dev/sound/pci/t4dwave.c
384
bank = (ch->index & 0x20) ? 1 : 0;
sys/dev/sound/pci/t4dwave.c
385
chan = ch->index & 0x1f;
sys/dev/sound/pci/t4dwave.c
513
ch->index = tr->playchns++;
sys/dev/sound/pci/t4dwave.c
75
int index, bufhalf;
sys/dev/sound/pci/via8233.c
618
uint32_t v, index, count, ptr;
sys/dev/sound/pci/via8233.c
627
index = v >> 24; /* Last completed buffer */
sys/dev/sound/pci/via8233.c
629
ptr = (index + 1) * ch->blksz - count;
sys/dev/sound/pci/via8233.c
776
uint32_t v, index, count;
sys/dev/sound/pci/via8233.c
785
index = v >> 24;
sys/dev/sound/pci/via8233.c
787
ptr = ((index + 1) * ch->blksz) - count;
sys/dev/video/bktr/bktr_core.c
2345
pixfmt = pf_pub->index;
sys/dev/video/bktr/bktr_core.c
2354
pf_pub->index = pixfmt;
sys/dev/video/bktr/bktr_tuner.c
1014
if (( chnlset->index < CHNLSET_MIN ) ||
sys/dev/video/bktr/bktr_tuner.c
1015
( chnlset->index > CHNLSET_MAX ))
sys/dev/video/bktr/bktr_tuner.c
1018
memcpy(&chnlset->name, &freqTable[chnlset->index].name,
sys/dev/video/bktr/bktr_tuner.c
1021
chnlset->max_channel=freqTable[chnlset->index].ptr[0];
sys/dev/video/bktr/ioctl_bt848.h
197
u_int index; /* Index in supported pixfmt list */
sys/dev/video/bktr/ioctl_bt848.h
257
short index;
sys/dev/video/cxm/cxm.c
2072
cxm_read_ivar(device_t dev, device_t child, int index, uintptr_t* val)
sys/dev/video/cxm/cxm.c
2079
switch (index) {
sys/dev/video/cxm/cxm.c
2101
cxm_write_ivar(device_t dev, device_t child, int index, uintptr_t val)
sys/dev/video/cxm/cxm.c
2108
switch (index) {
sys/dev/video/cxm/cxm.c
89
int index, uintptr_t* val);
sys/dev/video/cxm/cxm.c
91
int index, uintptr_t val);
sys/dev/video/cxm/cxm_i2c.c
266
cxm_iic_callback(device_t dev, int index, caddr_t *data)
sys/dev/video/fb/bmp/splash_bmp.c
235
const u_char *index; /* running pointer to the data while drawing */
sys/dev/video/fb/bmp/splash_bmp.c
323
if (*info->index) {
sys/dev/video/fb/bmp/splash_bmp.c
324
for (count = 0; count < *info->index; count++, x++) {
sys/dev/video/fb/bmp/splash_bmp.c
326
bmp_SetPix(info, x, y, *(info->index+1) & 0x0f);
sys/dev/video/fb/bmp/splash_bmp.c
328
bmp_SetPix(info, x, y, (*(info->index+1) >>4) & 0x0f);
sys/dev/video/fb/bmp/splash_bmp.c
331
info->index += 2;
sys/dev/video/fb/bmp/splash_bmp.c
337
switch (*(info->index+1)) {
sys/dev/video/fb/bmp/splash_bmp.c
339
info->index += 2;
sys/dev/video/fb/bmp/splash_bmp.c
342
info->index = NULL;
sys/dev/video/fb/bmp/splash_bmp.c
345
x += *(info->index + 2); /* new coords */
sys/dev/video/fb/bmp/splash_bmp.c
346
y += *(info->index + 3);
sys/dev/video/fb/bmp/splash_bmp.c
347
info->index += 4;
sys/dev/video/fb/bmp/splash_bmp.c
350
for (count = 0; count < *(info->index + 1); count++, x++) {
sys/dev/video/fb/bmp/splash_bmp.c
351
val = *(info->index + 2 + (count / 2)); /* byte with nybbles */
sys/dev/video/fb/bmp/splash_bmp.c
360
info->index += 2 + ((count + 3) / 4) * 2;
sys/dev/video/fb/bmp/splash_bmp.c
387
if (*info->index) {
sys/dev/video/fb/bmp/splash_bmp.c
388
for (count = 0; count < *info->index; count++, x++)
sys/dev/video/fb/bmp/splash_bmp.c
389
bmp_SetPix(info, x, y, *(info->index+1));
sys/dev/video/fb/bmp/splash_bmp.c
390
info->index += 2;
sys/dev/video/fb/bmp/splash_bmp.c
396
switch(*(info->index+1)) {
sys/dev/video/fb/bmp/splash_bmp.c
398
info->index += 2;
sys/dev/video/fb/bmp/splash_bmp.c
401
info->index = NULL;
sys/dev/video/fb/bmp/splash_bmp.c
404
x += *(info->index + 2); /* new coords */
sys/dev/video/fb/bmp/splash_bmp.c
405
y += *(info->index + 3);
sys/dev/video/fb/bmp/splash_bmp.c
406
info->index += 4;
sys/dev/video/fb/bmp/splash_bmp.c
409
for (count = 0; count < *(info->index + 1); count++, x++)
sys/dev/video/fb/bmp/splash_bmp.c
410
bmp_SetPix(info, x, y, *(info->index + 2 + count));
sys/dev/video/fb/bmp/splash_bmp.c
412
info->index += 2 + count + (count & 1);
sys/dev/video/fb/bmp/splash_bmp.c
436
for (x = 0; x < info->width; x++, info->index++)
sys/dev/video/fb/bmp/splash_bmp.c
437
bmp_SetPix(info, x, line, *info->index);
sys/dev/video/fb/bmp/splash_bmp.c
438
info->index += 3 - (--x % 4);
sys/dev/video/fb/bmp/splash_bmp.c
441
p = info->index;
sys/dev/video/fb/bmp/splash_bmp.c
452
info->index += ((x + 7) / 8) * 4;
sys/dev/video/fb/bmp/splash_bmp.c
455
p = info->index;
sys/dev/video/fb/bmp/splash_bmp.c
467
info->index += ((x + 31) / 32) * 4;
sys/dev/video/fb/bmp/splash_bmp.c
585
bmp_info.index = bmp_info.data;
sys/dev/video/fb/bmp/splash_bmp.c
610
for (line = 0; (line < bmp_info.height) && bmp_info.index; line++) {
sys/dev/video/fb/fb.c
155
int index;
sys/dev/video/fb/fb.c
157
for (index = 0; index < adapters; ++index) {
sys/dev/video/fb/fb.c
158
if (adapter[index] == NULL)
sys/dev/video/fb/fb.c
161
if (index >= adapters) {
sys/dev/video/fb/fb.c
166
adp->va_index = index;
sys/dev/video/fb/fb.c
172
adapter[index] = adp;
sys/dev/video/fb/fb.c
173
vidsw[index] = p->vidsw;
sys/dev/video/fb/fb.c
175
return index;
sys/dev/video/fb/fb.c
251
int index;
sys/dev/video/fb/fb.c
254
index = vid_find_adapter(driver, unit);
sys/dev/video/fb/fb.c
255
if (index >= 0) {
sys/dev/video/fb/fb.c
256
if (adapter[index]->va_token) {
sys/dev/video/fb/fb.c
260
adapter[index]->va_token = id;
sys/dev/video/fb/fb.c
263
return index;
sys/dev/video/fb/fb.c
286
vid_get_adapter(int index)
sys/dev/video/fb/fb.c
288
if ((index < 0) || (index >= adapters))
sys/dev/video/fb/fb.c
290
return adapter[index];
sys/dev/video/fb/fbreg.h
168
video_adapter_t *vid_get_adapter(int index);
sys/dev/video/fb/vga.c
1925
return get_palette(adp, ((video_color_palette_t *)arg)->index,
sys/dev/video/fb/vga.c
1933
return set_palette(adp, ((video_color_palette_t *)arg)->index,
sys/dev/video/fb/vga.c
1953
return get_palette(adp, ((struct fbcmap *)arg)->index,
sys/dev/video/fb/vga.c
1960
return set_palette(adp, ((struct fbcmap *)arg)->index,
sys/dev/virtual/amazon/ena/ena.h
162
unsigned int index;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
345
vtmmio_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
354
switch (index) {
sys/dev/virtual/virtio/mmio/virtio_mmio.c
366
vtmmio_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
375
switch (index) {
sys/dev/virtual/virtio/pci/virtio_pci.c
372
vtpci_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
sys/dev/virtual/virtio/pci/virtio_pci.c
381
switch (index) {
sys/dev/virtual/virtio/pci/virtio_pci.c
393
vtpci_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
sys/dev/virtual/virtio/pci/virtio_pci.c
402
switch (index) {
sys/kern/kern_clock.c
271
int index;
sys/kern/kern_clock.c
278
index = basetime_index;
sys/kern/kern_clock.c
280
bt = &basetime[index];
sys/kern/kern_nrandom.c
321
int index;
sys/kern/kern_nrandom.c
323
index = ibaa->IBAA_byte_index;
sys/kern/kern_nrandom.c
324
if (index == sizeof(ibaa->IBAA_results)) {
sys/kern/kern_nrandom.c
326
index = 0;
sys/kern/kern_nrandom.c
328
result = ((u_char *)ibaa->IBAA_results)[index];
sys/kern/kern_nrandom.c
329
ibaa->IBAA_byte_index = index + 1;
sys/kern/kern_plimit.c
210
plimit_modify(struct proc *p, int index, struct rlimit *rlim)
sys/kern/kern_plimit.c
236
if (index >= 0) {
sys/kern/kern_plimit.c
238
p->p_limit->pl_rlimit[index] = *rlim;
sys/kern/kern_plimit.c
241
p->p_limit->pl_rlimit[index].rlim_cur = rlim->rlim_cur;
sys/kern/kern_plimit.c
242
p->p_limit->pl_rlimit[index].rlim_max = rlim->rlim_max;
sys/kern/md4c.c
111
unsigned int i, index, partLen;
sys/kern/md4c.c
114
index = (unsigned int)((context->count[0] >> 3) & 0x3F);
sys/kern/md4c.c
121
partLen = 64 - index;
sys/kern/md4c.c
125
bcopy(input, &context->buffer[index], partLen);
sys/kern/md4c.c
131
index = 0;
sys/kern/md4c.c
137
bcopy(&input[i], &context->buffer[index], inputLen-i);
sys/kern/md4c.c
145
unsigned int index, padLen;
sys/kern/md4c.c
152
index = (unsigned int)((context->count[0] >> 3) & 0x3f);
sys/kern/md4c.c
153
padLen = (index < 56) ? (56 - index) : (120 - index);
sys/kern/md5c.c
156
unsigned int i, index, partLen;
sys/kern/md5c.c
160
index = (unsigned int)((context->Nl >> 3) & 0x3F);
sys/kern/md5c.c
168
partLen = 64 - index;
sys/kern/md5c.c
172
memcpy((void *)&((char *)context->data)[index], (const void *)input,
sys/kern/md5c.c
179
index = 0;
sys/kern/md5c.c
185
memcpy ((void *)&((char *)context->data)[index], (const void *)&input[i],
sys/kern/md5c.c
197
unsigned int index, padLen;
sys/kern/md5c.c
203
index = (unsigned int)((context->Nl >> 3) & 0x3f);
sys/kern/md5c.c
204
padLen = (index < 56) ? (56 - index) : (120 - index);
sys/kern/subr_bus.c
2972
bus_generic_read_ivar(device_t dev, device_t child, int index,
sys/kern/subr_bus.c
2978
error = BUS_READ_IVAR(dev->parent, child, index, result);
sys/kern/subr_bus.c
2985
bus_generic_write_ivar(device_t dev, device_t child, int index,
sys/kern/subr_bus.c
2991
error = BUS_WRITE_IVAR(dev->parent, child, index, value);
sys/kern/subr_bus.c
3863
int index;
sys/kern/subr_bus.c
3874
index = name[1];
sys/kern/subr_bus.c
3880
if (index-- == 0)
sys/kern/uipc_usrreq.c
1847
int index;
sys/kern/uipc_usrreq.c
1924
info.index = 0;
sys/kern/uipc_usrreq.c
1930
for (i = info.index, fpp = info.extra_ref; --i >= 0; ++fpp) {
sys/kern/uipc_usrreq.c
1935
for (i = info.index, fpp = info.extra_ref; --i >= 0; ++fpp)
sys/kern/uipc_usrreq.c
1937
} while (info.index == info.maxindex);
sys/kern/uipc_usrreq.c
1954
if (info->index == info->maxindex)
sys/kern/uipc_usrreq.c
1964
info->extra_ref[info->index++] = fp;
sys/kern/vfs_bio.c
773
int index = bio - &bio->bio_buf->b_bio_array[0];
sys/kern/vfs_bio.c
774
if (index >= NBUF_BIO - 1) {
sys/kern/vfs_bio.c
776
index, bio->bio_buf);
sys/kern/vfs_bio.c
778
nbio = &bio->bio_buf->b_bio_array[index + 1];
sys/kern/vfs_jops.c
468
int index;
sys/kern/vfs_jops.c
470
index = 0;
sys/kern/vfs_jops.c
473
if (info->index == MC_JOURNAL_INDEX_ID) {
sys/kern/vfs_jops.c
476
} else if (info->index >= 0) {
sys/kern/vfs_jops.c
477
if (info->index < index)
sys/kern/vfs_jops.c
479
} else if (info->index != MC_JOURNAL_INDEX_ALL) {
sys/kern/vfs_jops.c
492
rstat->index = index;
sys/kern/vfs_jops.c
499
++index;
sys/kern/vfs_journal.c
1221
int index;
sys/kern/vfs_journal.c
1247
index = pathlen;
sys/kern/vfs_journal.c
1251
if (scan->nc_nlen >= index) {
sys/kern/vfs_journal.c
1256
if (index == pathlen)
sys/kern/vfs_journal.c
1257
base[--index] = 0;
sys/kern/vfs_journal.c
1259
base[--index] = '/';
sys/kern/vfs_journal.c
1260
index -= scan->nc_nlen;
sys/kern/vfs_journal.c
1261
bcopy(scan->nc_name, base + index, scan->nc_nlen);
sys/kern/vfs_journal.c
1263
jrecord_leaf(jrec, rectype, base + index, pathlen - index);
sys/libkern/fnmatch.c
105
if ((string = index(string, '/')) == NULL)
sys/libkern/fnmatch.c
99
index(string, '/') == NULL ?
sys/net/netmap/netmap_mem2.c
279
netmap_obj_malloc(struct netmap_obj_pool *p, u_int len, uint32_t *start, uint32_t *index)
sys/net/netmap/netmap_mem2.c
313
if (index)
sys/net/netmap/netmap_mem2.c
314
*index = i * 32 + j;
sys/net/netmap/netmap_mem2.c
382
uint32_t index = 0; /* buffer index */
sys/net/netmap/netmap_mem2.c
385
void *vaddr = netmap_buf_malloc(nmd, &pos, &index);
sys/net/netmap/netmap_mem2.c
390
slot[i].buf_idx = index;
sys/net/netmap/netmap_user.h
75
#define NETMAP_TXRING(nifp, index) _NETMAP_OFFSET(struct netmap_ring *, \
sys/net/netmap/netmap_user.h
76
nifp, (nifp)->ring_ofs[index] )
sys/net/netmap/netmap_user.h
78
#define NETMAP_RXRING(nifp, index) _NETMAP_OFFSET(struct netmap_ring *, \
sys/net/netmap/netmap_user.h
79
nifp, (nifp)->ring_ofs[index + (nifp)->ni_tx_rings + 1] )
sys/net/netmap/netmap_user.h
81
#define NETMAP_BUF(ring, index) \
sys/net/netmap/netmap_user.h
82
((char *)(ring) + (ring)->buf_ofs + ((index)*(ring)->nr_buf_size))
sys/net/pf/pf_ioctl.c
1912
if (pl->index < 0 || pl->index >= PF_LIMIT_MAX) {
sys/net/pf/pf_ioctl.c
1916
pl->limit = pf_pool_limits[pl->index].limit;
sys/net/pf/pf_ioctl.c
1924
if (pl->index < 0 || pl->index >= PF_LIMIT_MAX ||
sys/net/pf/pf_ioctl.c
1925
pf_pool_limits[pl->index].pp == NULL) {
sys/net/pf/pf_ioctl.c
1931
old_limit = pf_pool_limits[pl->index].limit;
sys/net/pf/pf_ioctl.c
1932
pf_pool_limits[pl->index].limit = pl->limit;
sys/net/pf/pfvar.h
1587
int index;
sys/net/wg/wg_noise.c
896
unsigned long index, index_current, top, i, bit;
sys/net/wg/wg_noise.c
912
index = recv >> COUNTER_ORDER;
sys/net/wg/wg_noise.c
920
top = MIN(index - index_current, COUNTER_NUM);
sys/net/wg/wg_noise.c
930
index &= COUNTER_MASK;
sys/net/wg/wg_noise.c
932
if (kp->kp_backtrack[index] & bit) {
sys/net/wg/wg_noise.c
937
kp->kp_backtrack[index] |= bit;
sys/net/zlib.c
3570
uInt index; /* index into blens (or border) */
sys/net/zlib.c
3856
s->sub.trees.index = 0;
sys/net/zlib.c
3860
while (s->sub.trees.index < 4 + (s->sub.trees.table >> 10))
sys/net/zlib.c
3863
s->sub.trees.blens[border[s->sub.trees.index++]] = (uInt)b & 7;
sys/net/zlib.c
3866
while (s->sub.trees.index < 19)
sys/net/zlib.c
3867
s->sub.trees.blens[border[s->sub.trees.index++]] = 0;
sys/net/zlib.c
3880
s->sub.trees.index = 0;
sys/net/zlib.c
3885
s->sub.trees.index < 258 + (t & 0x1f) + ((t >> 5) & 0x1f))
sys/net/zlib.c
3898
s->sub.trees.blens[s->sub.trees.index++] = c;
sys/net/zlib.c
3908
i = s->sub.trees.index;
sys/net/zlib.c
3924
s->sub.trees.index = i;
sys/netgraph/fec/ng_fec.c
264
int index, bit;
sys/netgraph/fec/ng_fec.c
266
for (index = 0; index < ng_fec_units_len
sys/netgraph/fec/ng_fec.c
267
&& ng_fec_units[index] == 0; index++);
sys/netgraph/fec/ng_fec.c
268
if (index == ng_fec_units_len) { /* extend array */
sys/netgraph/fec/ng_fec.c
285
bit = ffs(ng_fec_units[index]) - 1;
sys/netgraph/fec/ng_fec.c
287
("%s: word=%d bit=%d", __func__, ng_fec_units[index], bit));
sys/netgraph/fec/ng_fec.c
288
ng_fec_units[index] &= ~(1 << bit);
sys/netgraph/fec/ng_fec.c
289
*unit = (index * UNITS_BITSPERWORD) + bit;
sys/netgraph/fec/ng_fec.c
300
int index, bit;
sys/netgraph/fec/ng_fec.c
302
index = unit / UNITS_BITSPERWORD;
sys/netgraph/fec/ng_fec.c
304
KASSERT(index < ng_fec_units_len,
sys/netgraph/fec/ng_fec.c
306
KASSERT((ng_fec_units[index] & (1 << bit)) == 0,
sys/netgraph/fec/ng_fec.c
308
ng_fec_units[index] |= (1 << bit);
sys/netgraph/iface/ng_iface.c
278
int index, bit;
sys/netgraph/iface/ng_iface.c
280
for (index = 0; index < ng_iface_units_len
sys/netgraph/iface/ng_iface.c
281
&& ng_iface_units[index] == 0; index++);
sys/netgraph/iface/ng_iface.c
282
if (index == ng_iface_units_len) { /* extend array */
sys/netgraph/iface/ng_iface.c
299
bit = ffs(ng_iface_units[index]) - 1;
sys/netgraph/iface/ng_iface.c
301
("%s: word=%d bit=%d", __func__, ng_iface_units[index], bit));
sys/netgraph/iface/ng_iface.c
302
ng_iface_units[index] &= ~(1 << bit);
sys/netgraph/iface/ng_iface.c
303
*unit = (index * UNITS_BITSPERWORD) + bit;
sys/netgraph/iface/ng_iface.c
313
int index, bit;
sys/netgraph/iface/ng_iface.c
315
index = unit / UNITS_BITSPERWORD;
sys/netgraph/iface/ng_iface.c
317
KASSERT(index < ng_iface_units_len,
sys/netgraph/iface/ng_iface.c
319
KASSERT((ng_iface_units[index] & (1 << bit)) == 0,
sys/netgraph/iface/ng_iface.c
321
ng_iface_units[index] |= (1 << bit);
sys/netgraph/ksocket/ng_ksocket.c
222
if ((t = index(s + *off, '/')) == NULL)
sys/netgraph/ksocket/ng_ksocket.c
579
if ((s2 = index(s1, '/')) == NULL)
sys/netgraph/ksocket/ng_ksocket.c
586
if ((s2 = index(s1, '/')) == NULL)
sys/netgraph/netgraph/ng_parse.c
103
ng_parse_type *type, int index, enum comptype ctype);
sys/netgraph/netgraph/ng_parse.c
105
int index, enum comptype ctype, int posn);
sys/netgraph/netgraph/ng_parse.c
1058
u_int index; /* field or element index */
sys/netgraph/netgraph/ng_parse.c
1097
index = nextIndex++;
sys/netgraph/netgraph/ng_parse.c
1110
index = nextIndex++;
sys/netgraph/netgraph/ng_parse.c
1115
index = (u_int)strtoul(s + *off, &eptr, 0);
sys/netgraph/netgraph/ng_parse.c
1116
if (index < 0 || eptr - (s + *off) != len) {
sys/netgraph/netgraph/ng_parse.c
1120
nextIndex = index + 1;
sys/netgraph/netgraph/ng_parse.c
1133
for (index = 0; index < num; index++) {
sys/netgraph/netgraph/ng_parse.c
1135
field = &fields[index];
sys/netgraph/netgraph/ng_parse.c
1141
if (index == num) {
sys/netgraph/netgraph/ng_parse.c
1156
if (index >= num) {
sys/netgraph/netgraph/ng_parse.c
1162
if (foff[index] != 0) {
sys/netgraph/netgraph/ng_parse.c
1168
foff[index] = *off;
sys/netgraph/netgraph/ng_parse.c
1175
for (blen = index = 0; index < num; index++) {
sys/netgraph/netgraph/ng_parse.c
1177
etype = ng_get_composite_etype(type, index, ctype);
sys/netgraph/netgraph/ng_parse.c
1181
pad = ng_parse_get_elem_pad(type, index, ctype, blen);
sys/netgraph/netgraph/ng_parse.c
1192
if (foff[index] == 0) { /* use default value */
sys/netgraph/netgraph/ng_parse.c
1193
error = ng_get_composite_elem_default(type, index,
sys/netgraph/netgraph/ng_parse.c
1196
*off = foff[index];
sys/netgraph/netgraph/ng_parse.c
1236
int error, index;
sys/netgraph/netgraph/ng_parse.c
1248
for (index = 0; index < num; index++) {
sys/netgraph/netgraph/ng_parse.c
1250
etype = ng_get_composite_etype(type, index, ctype);
sys/netgraph/netgraph/ng_parse.c
1253
*off += ng_parse_get_elem_pad(type, index, ctype, *off);
sys/netgraph/netgraph/ng_parse.c
1263
if (ng_get_composite_elem_default(type, index, workBuf
sys/netgraph/netgraph/ng_parse.c
1276
if (index != nextIndex) {
sys/netgraph/netgraph/ng_parse.c
1277
nextIndex = index;
sys/netgraph/netgraph/ng_parse.c
1278
NG_PARSE_APPEND("%d=", index);
sys/netgraph/netgraph/ng_parse.c
1285
NG_PARSE_APPEND("%s=", fields[index].name);
sys/netgraph/netgraph/ng_parse.c
1312
int index, const u_char *const start, u_char *buf, int *buflen,
sys/netgraph/netgraph/ng_parse.c
1327
index, start, buf, buflen);
sys/netgraph/netgraph/ng_parse.c
1337
index, start, buf, buflen);
sys/netgraph/netgraph/ng_parse.c
1346
etype = ng_get_composite_etype(type, index, ctype);
sys/netgraph/netgraph/ng_parse.c
1399
int index, const enum comptype ctype)
sys/netgraph/netgraph/ng_parse.c
1408
etype = fields[index].type;
sys/netgraph/netgraph/ng_parse.c
1437
int index, enum comptype ctype, int posn)
sys/netgraph/netgraph/ng_parse.c
1440
etype = ng_get_composite_etype(type, index, ctype);
sys/netgraph/netgraph/ng_parse.c
1448
if (fields[index].alignment != 0)
sys/netgraph/netgraph/ng_parse.c
1449
align = fields[index].alignment;
sys/netgraph/netgraph/ng_parse.c
97
int index, const u_char *start, u_char *buf,
sys/netgraph/ng_parse.h
338
int index, const u_char *start,
sys/netgraph/ppp/ng_ppp.c
592
const int index = HOOK_INDEX(hook);
sys/netgraph/ppp/ng_ppp.c
598
if (index < 0) {
sys/netgraph/ppp/ng_ppp.c
602
linkNum = (u_int16_t)~index;
sys/netgraph/ppp/ng_ppp.c
604
("%s: bogus index 0x%x", __func__, index));
sys/netgraph/ppp/ng_ppp.c
627
switch (index) {
sys/netgraph/ppp/ng_ppp.c
726
panic("%s: bogus index 0x%x", __func__, index);
sys/netgraph/ppp/ng_ppp.c
730
switch (index) {
sys/netgraph/ppp/ng_ppp.c
819
const int index = HOOK_INDEX(hook);
sys/netgraph/ppp/ng_ppp.c
822
if (index < 0)
sys/netgraph/ppp/ng_ppp.c
823
priv->links[~index].hook = NULL;
sys/netgraph/ppp/ng_ppp.c
825
priv->hooks[index] = NULL;
sys/netgraph/pptpgre/ng_pptpgre.c
641
const int index = ack - priv->recvAck - 1;
sys/netgraph/pptpgre/ng_pptpgre.c
655
sample = ng_pptpgre_time(node) - a->timeSent[index];
sys/netgraph/pptpgre/ng_pptpgre.c
668
bcopy(a->timeSent + index + 1, a->timeSent,
sys/netgraph/pptpgre/ng_pptpgre.c
669
sizeof(*a->timeSent) * (PPTP_XMIT_WIN - (index + 1)));
sys/netgraph/vjc/ng_vjc.c
342
u_int16_t index;
sys/netgraph/vjc/ng_vjc.c
354
index = sl0->last_cs - sl0->tstate;
sys/netgraph/vjc/ng_vjc.c
356
*((u_int16_t *)&sl->last_cs) = index;
sys/netgraph/vjc/ng_vjc.c
361
index = sl0->tstate[i].cs_next - sl0->tstate;
sys/netgraph/vjc/ng_vjc.c
363
*((u_int16_t *)&cs->cs_next) = index;
sys/netgraph7/iface/ng_iface.c
284
int index, bit;
sys/netgraph7/iface/ng_iface.c
286
for (index = 0; index < ng_iface_units_len
sys/netgraph7/iface/ng_iface.c
287
&& ng_iface_units[index] == 0; index++);
sys/netgraph7/iface/ng_iface.c
288
if (index == ng_iface_units_len) { /* extend array */
sys/netgraph7/iface/ng_iface.c
305
bit = ffs(ng_iface_units[index]) - 1;
sys/netgraph7/iface/ng_iface.c
307
("%s: word=%d bit=%d", __func__, ng_iface_units[index], bit));
sys/netgraph7/iface/ng_iface.c
308
ng_iface_units[index] &= ~(1 << bit);
sys/netgraph7/iface/ng_iface.c
309
*unit = (index * UNITS_BITSPERWORD) + bit;
sys/netgraph7/iface/ng_iface.c
319
int index, bit;
sys/netgraph7/iface/ng_iface.c
321
index = unit / UNITS_BITSPERWORD;
sys/netgraph7/iface/ng_iface.c
323
KASSERT(index < ng_iface_units_len,
sys/netgraph7/iface/ng_iface.c
325
KASSERT((ng_iface_units[index] & (1 << bit)) == 0,
sys/netgraph7/iface/ng_iface.c
327
ng_iface_units[index] |= (1 << bit);
sys/netgraph7/ksocket/ng_ksocket.c
224
if ((t = index(s + *off, '/')) == NULL)
sys/netgraph7/ksocket/ng_ksocket.c
565
if ((s2 = index(s1, '/')) == NULL)
sys/netgraph7/ksocket/ng_ksocket.c
572
if ((s2 = index(s1, '/')) == NULL)
sys/netgraph7/netflow/ng_netflow.c
315
const uint16_t *index;
sys/netgraph7/netflow/ng_netflow.c
320
index = (uint16_t *)msg->data;
sys/netgraph7/netflow/ng_netflow.c
321
if (*index >= NG_NETFLOW_MAXIFACES)
sys/netgraph7/netflow/ng_netflow.c
325
if (priv->ifaces[*index].hook == NULL)
sys/netgraph7/netflow/ng_netflow.c
331
memcpy((void *)i, (void *)&priv->ifaces[*index].info,
sys/netgraph7/netflow/ng_netflow.c
332
sizeof(priv->ifaces[*index].info));
sys/netgraph7/netflow/ng_netflow.c
382
iface->info.ifinfo_index = set->index;
sys/netgraph7/netflow/ng_netflow.h
86
u_int16_t index; /* new index */
sys/netgraph7/netgraph/ng_parse.c
110
int index, const u_char *start, u_char *buf,
sys/netgraph7/netgraph/ng_parse.c
116
ng_parse_type *type, int index, enum comptype ctype);
sys/netgraph7/netgraph/ng_parse.c
118
int index, enum comptype ctype, int posn);
sys/netgraph7/netgraph/ng_parse.c
1216
u_int index; /* field or element index */
sys/netgraph7/netgraph/ng_parse.c
1256
index = nextIndex++;
sys/netgraph7/netgraph/ng_parse.c
1269
index = nextIndex++;
sys/netgraph7/netgraph/ng_parse.c
1274
index = (u_int)strtoul(s + *off, &eptr, 0);
sys/netgraph7/netgraph/ng_parse.c
1275
if (index < 0 || eptr - (s + *off) != len) {
sys/netgraph7/netgraph/ng_parse.c
1279
nextIndex = index + 1;
sys/netgraph7/netgraph/ng_parse.c
1290
for (index = 0; index < num; index++) {
sys/netgraph7/netgraph/ng_parse.c
1292
field = &fields[index];
sys/netgraph7/netgraph/ng_parse.c
1298
if (index == num) {
sys/netgraph7/netgraph/ng_parse.c
1314
if (index >= num) {
sys/netgraph7/netgraph/ng_parse.c
1320
if (foff[index] != 0) {
sys/netgraph7/netgraph/ng_parse.c
1326
foff[index] = *off;
sys/netgraph7/netgraph/ng_parse.c
1333
for (blen = index = 0; index < num; index++) {
sys/netgraph7/netgraph/ng_parse.c
1335
etype = ng_get_composite_etype(type, index, ctype);
sys/netgraph7/netgraph/ng_parse.c
1339
pad = ng_parse_get_elem_pad(type, index, ctype, blen);
sys/netgraph7/netgraph/ng_parse.c
1350
if (foff[index] == 0) { /* use default value */
sys/netgraph7/netgraph/ng_parse.c
1351
error = ng_get_composite_elem_default(type, index,
sys/netgraph7/netgraph/ng_parse.c
1354
*off = foff[index];
sys/netgraph7/netgraph/ng_parse.c
1394
int error, index;
sys/netgraph7/netgraph/ng_parse.c
1408
for (index = 0; index < num; index++) {
sys/netgraph7/netgraph/ng_parse.c
1410
etype = ng_get_composite_etype(type, index, ctype);
sys/netgraph7/netgraph/ng_parse.c
1413
*off += ng_parse_get_elem_pad(type, index, ctype, *off);
sys/netgraph7/netgraph/ng_parse.c
1423
if (ng_get_composite_elem_default(type, index, workBuf
sys/netgraph7/netgraph/ng_parse.c
1437
if (index != nextIndex) {
sys/netgraph7/netgraph/ng_parse.c
1438
nextIndex = index;
sys/netgraph7/netgraph/ng_parse.c
1440
&cbuflen, "%d=", index)) != 0)
sys/netgraph7/netgraph/ng_parse.c
1449
&cbuflen, "%s=", fields[index].name)) != 0)
sys/netgraph7/netgraph/ng_parse.c
1480
int index, const u_char *const start, u_char *buf, int *buflen,
sys/netgraph7/netgraph/ng_parse.c
1495
index, start, buf, buflen);
sys/netgraph7/netgraph/ng_parse.c
1505
index, start, buf, buflen);
sys/netgraph7/netgraph/ng_parse.c
1514
etype = ng_get_composite_etype(type, index, ctype);
sys/netgraph7/netgraph/ng_parse.c
1567
int index, const enum comptype ctype)
sys/netgraph7/netgraph/ng_parse.c
1576
etype = fields[index].type;
sys/netgraph7/netgraph/ng_parse.c
1605
int index, enum comptype ctype, int posn)
sys/netgraph7/netgraph/ng_parse.c
1608
etype = ng_get_composite_etype(type, index, ctype);
sys/netgraph7/netgraph/ng_parse.c
1616
if (fields[index].alignment != 0)
sys/netgraph7/netgraph/ng_parse.c
1617
align = fields[index].alignment;
sys/netgraph7/ng_fec.c
280
int index, bit;
sys/netgraph7/ng_fec.c
283
for (index = 0; index < ng_fec_units_len
sys/netgraph7/ng_fec.c
284
&& ng_fec_units[index] == 0; index++);
sys/netgraph7/ng_fec.c
285
if (index == ng_fec_units_len) { /* extend array */
sys/netgraph7/ng_fec.c
304
bit = ffs(ng_fec_units[index]) - 1;
sys/netgraph7/ng_fec.c
306
("%s: word=%d bit=%d", __func__, ng_fec_units[index], bit));
sys/netgraph7/ng_fec.c
307
ng_fec_units[index] &= ~(1 << bit);
sys/netgraph7/ng_fec.c
308
*unit = (index * UNITS_BITSPERWORD) + bit;
sys/netgraph7/ng_fec.c
320
int index, bit;
sys/netgraph7/ng_fec.c
322
index = unit / UNITS_BITSPERWORD;
sys/netgraph7/ng_fec.c
325
KASSERT(index < ng_fec_units_len,
sys/netgraph7/ng_fec.c
327
KASSERT((ng_fec_units[index] & (1 << bit)) == 0,
sys/netgraph7/ng_fec.c
329
ng_fec_units[index] |= (1 << bit);
sys/netgraph7/ng_parse.h
335
int index, const u_char *start,
sys/netgraph7/ng_source.c
468
if (embed->index >= NG_SOURCE_COUNTERS ||
sys/netgraph7/ng_source.c
474
bcopy(embed, &sc->embed_counter[embed->index],
sys/netgraph7/ng_source.c
481
uint8_t index = *(uint8_t *)msg->data;
sys/netgraph7/ng_source.c
484
if (index >= NG_SOURCE_COUNTERS) {
sys/netgraph7/ng_source.c
494
bcopy(&sc->embed_counter[index], embed, sizeof(*embed));
sys/netgraph7/ng_source.h
108
uint8_t index; /* which counter (0..3) */
sys/netgraph7/ng_sppp.c
113
int index, bit;
sys/netgraph7/ng_sppp.c
116
for (index = 0; index < ng_sppp_units_len
sys/netgraph7/ng_sppp.c
117
&& ng_sppp_units[index] == 0xFF; index++);
sys/netgraph7/ng_sppp.c
118
if (index == ng_sppp_units_len) { /* extend array */
sys/netgraph7/ng_sppp.c
136
mask = ng_sppp_units[index];
sys/netgraph7/ng_sppp.c
140
("%s: word=%d bit=%d", __func__, ng_sppp_units[index], bit));
sys/netgraph7/ng_sppp.c
141
ng_sppp_units[index] |= (1 << bit);
sys/netgraph7/ng_sppp.c
142
*unit = (index * NBBY) + bit;
sys/netgraph7/ng_sppp.c
153
int index, bit;
sys/netgraph7/ng_sppp.c
155
index = unit / NBBY;
sys/netgraph7/ng_sppp.c
157
KASSERT (index < ng_sppp_units_len,
sys/netgraph7/ng_sppp.c
159
KASSERT ((ng_sppp_units[index] & (1 << bit)) != 0,
sys/netgraph7/ng_sppp.c
161
ng_sppp_units[index] &= ~(1 << bit);
sys/netgraph7/ppp/ng_ppp.c
1384
const int index = (intptr_t)NG_HOOK_PRIVATE(hook);
sys/netgraph7/ppp/ng_ppp.c
1385
const uint16_t linkNum = (uint16_t)~index;
sys/netgraph7/ppp/ng_ppp.c
1392
("%s: bogus index 0x%x", __func__, index));
sys/netgraph7/ppp/ng_ppp.c
763
const int index = (intptr_t)NG_HOOK_PRIVATE(hook);
sys/netgraph7/ppp/ng_ppp.c
766
if (index < 0)
sys/netgraph7/ppp/ng_ppp.c
767
priv->links[~index].hook = NULL;
sys/netgraph7/ppp/ng_ppp.c
769
priv->hooks[index] = NULL;
sys/netgraph7/pptpgre/ng_pptpgre.c
729
const int index = ack - hpriv->recvAck - 1;
sys/netgraph7/pptpgre/ng_pptpgre.c
744
sample = ng_pptpgre_time() - hpriv->timeSent[index];
sys/netgraph7/pptpgre/ng_pptpgre.c
758
bcopy(hpriv->timeSent + index + 1, hpriv->timeSent,
sys/netgraph7/pptpgre/ng_pptpgre.c
760
* (PPTP_XMIT_WIN - (index + 1)));
sys/netgraph7/vjc/ng_vjc.c
336
u_int16_t index;
sys/netgraph7/vjc/ng_vjc.c
348
index = sl0->last_cs - sl0->tstate;
sys/netgraph7/vjc/ng_vjc.c
350
*((u_int16_t *)&sl->last_cs) = index;
sys/netgraph7/vjc/ng_vjc.c
355
index = sl0->tstate[i].cs_next - sl0->tstate;
sys/netgraph7/vjc/ng_vjc.c
357
*((u_int16_t *)&cs->cs_next) = index;
sys/netinet/ip_carp.c
1559
int index, count = 0;
sys/netinet/ip_carp.c
1580
index = ntohl(isaddr->s_addr) % count;
sys/netinet/ip_carp.c
1590
if (count == index) {
sys/netproto/802_11/wlan/ieee80211_ht.c
313
ht_getrate(struct ieee80211com *ic, int index, enum ieee80211_phymode mode,
sys/netproto/802_11/wlan/ieee80211_ht.c
318
mword = ieee80211_rate2media(ic, index | IEEE80211_RATE_MCS, mode);
sys/netproto/802_11/wlan/ieee80211_ht.c
323
rate = ieee80211_htrates[index].ht20_rate_800ns;
sys/netproto/802_11/wlan/ieee80211_ht.c
326
rate = ieee80211_htrates[index].ht20_rate_400ns;
sys/netproto/802_11/wlan/ieee80211_ht.c
329
rate = ieee80211_htrates[index].ht40_rate_800ns;
sys/netproto/802_11/wlan/ieee80211_ht.c
332
rate = ieee80211_htrates[index].ht40_rate_400ns;
sys/sys/bio.h
77
int index;
sys/sys/bio.h
85
int index;
sys/sys/cdrio.h
69
u_int8_t index;
sys/sys/fbio.h
123
int index; /* first element (0 origin) */
sys/sys/fbio.h
386
int index; /* first element (zero-based) */
sys/sys/libkern.h
122
char *index(const char *, int);
sys/sys/libkern.h
167
return (index(p, ch));
sys/sys/mountctl.h
119
int index;
sys/sys/mountctl.h
128
int index;
sys/vfs/devfs/devfs_vnops.c
1907
nbp->b_bio1.bio_caller_info2.index = chunksize;
sys/vfs/devfs/devfs_vnops.c
1937
int chunksize = nbio->bio_caller_info2.index; /* chunking */
sys/vfs/ext2fs/ext2_extents.c
106
ext4_ext_index_pblock(struct ext4_extent_index *index)
sys/vfs/ext2fs/ext2_extents.c
112
ext4_index_store_pblock(struct ext4_extent_index *index, e4fs_daddr_t pb)
sys/vfs/hammer/hammer.h
1037
int index);
sys/vfs/hammer/hammer.h
1095
int index);
sys/vfs/hammer/hammer.h
1097
int index);
sys/vfs/hammer/hammer.h
1103
void hammer_cursor_inserted_element(hammer_node_t node, int index);
sys/vfs/hammer/hammer.h
1104
void hammer_cursor_deleted_element(hammer_node_t node, int index);
sys/vfs/hammer/hammer.h
720
int index; /* index of this node in parent */
sys/vfs/hammer/hammer_btree.c
1139
cursor->index = 0;
sys/vfs/hammer/hammer_btree.c
1175
cursor->index = i;
sys/vfs/hammer/hammer_btree.c
1208
cursor->index = i;
sys/vfs/hammer/hammer_btree.c
1246
i = cursor->index;
sys/vfs/hammer/hammer_btree.c
1331
cursor->index = i;
sys/vfs/hammer/hammer_btree.c
1356
cursor->index = i;
sys/vfs/hammer/hammer_btree.c
140
if (cursor->index < node->count &&
sys/vfs/hammer/hammer_btree.c
142
++cursor->index;
sys/vfs/hammer/hammer_btree.c
1472
if (cursor->index == ondisk->count &&
sys/vfs/hammer/hammer_btree.c
1485
if (cursor->index <= split)
sys/vfs/hammer/hammer_btree.c
1645
if (cursor->index >= split) {
sys/vfs/hammer/hammer_btree.c
1647
cursor->index -= split;
sys/vfs/hammer/hammer_btree.c
1714
if (cursor->index == ondisk->count &&
sys/vfs/hammer/hammer_btree.c
1727
if (cursor->index == split)
sys/vfs/hammer/hammer_btree.c
174
if (cursor->index == node->count) {
sys/vfs/hammer/hammer_btree.c
178
cursor->index,
sys/vfs/hammer/hammer_btree.c
1884
if (cursor->index > split ||
sys/vfs/hammer/hammer_btree.c
1885
(cursor->index == split &&
sys/vfs/hammer/hammer_btree.c
1888
cursor->index -= split;
sys/vfs/hammer/hammer_btree.c
190
KKASSERT(cursor->index != node->count);
sys/vfs/hammer/hammer_btree.c
1961
cursor->index = 0;
sys/vfs/hammer/hammer_btree.c
2011
node, cursor->node, cursor->index);
sys/vfs/hammer/hammer_btree.c
203
++cursor->index;
sys/vfs/hammer/hammer_btree.c
214
elm = &node->elms[cursor->index];
sys/vfs/hammer/hammer_btree.c
2198
elm = &node->ondisk->elms[cursor->index].internal;
sys/vfs/hammer/hammer_btree.c
2209
cursor->index);
sys/vfs/hammer/hammer_btree.c
2332
parent->index = -1;
sys/vfs/hammer/hammer_btree.c
2472
item->index = i;
sys/vfs/hammer/hammer_btree.c
271
KKASSERT(cursor->index == 0);
sys/vfs/hammer/hammer_btree.c
276
elm = &node->elms[cursor->index];
sys/vfs/hammer/hammer_btree.c
2789
cursor->index,
sys/vfs/hammer/hammer_btree.c
308
++cursor->index;
sys/vfs/hammer/hammer_btree.c
321
++cursor->index;
sys/vfs/hammer/hammer_btree.c
338
elm = &cursor->node->ondisk->elms[cursor->index];
sys/vfs/hammer/hammer_btree.c
366
elm = &ondisk->elms[cursor->index];
sys/vfs/hammer/hammer_btree.c
367
if (cursor->index == 0)
sys/vfs/hammer/hammer_btree.c
371
while (cursor->index < ondisk->count) {
sys/vfs/hammer/hammer_btree.c
374
++cursor->index;
sys/vfs/hammer/hammer_btree.c
377
if (cursor->index == ondisk->count)
sys/vfs/hammer/hammer_btree.c
416
if (cursor->index != -1 &&
sys/vfs/hammer/hammer_btree.c
418
--cursor->index;
sys/vfs/hammer/hammer_btree.c
420
if (cursor->index == cursor->node->ondisk->count)
sys/vfs/hammer/hammer_btree.c
421
--cursor->index;
sys/vfs/hammer/hammer_btree.c
443
if (cursor->index == -1) {
sys/vfs/hammer/hammer_btree.c
446
cursor->index = 0; /* sanity */
sys/vfs/hammer/hammer_btree.c
451
KKASSERT(cursor->index != node->count);
sys/vfs/hammer/hammer_btree.c
452
--cursor->index;
sys/vfs/hammer/hammer_btree.c
462
KKASSERT(cursor->index != node->count);
sys/vfs/hammer/hammer_btree.c
464
elm = &node->elms[cursor->index];
sys/vfs/hammer/hammer_btree.c
492
KKASSERT(cursor->index == 0);
sys/vfs/hammer/hammer_btree.c
497
cursor->index = node->count - 1;
sys/vfs/hammer/hammer_btree.c
500
elm = &node->elms[cursor->index];
sys/vfs/hammer/hammer_btree.c
523
--cursor->index;
sys/vfs/hammer/hammer_btree.c
540
elm = &cursor->node->ondisk->elms[cursor->index];
sys/vfs/hammer/hammer_btree.c
704
elm = &node->elms[cursor->index];
sys/vfs/hammer/hammer_btree.c
815
i = cursor->index;
sys/vfs/hammer/hammer_btree.c
898
i = cursor->index;
sys/vfs/hammer/hammer_btree.c
931
KKASSERT(cursor->index <= ondisk->count);
sys/vfs/hammer/hammer_cursor.c
1030
if (cursor->index != oindex)
sys/vfs/hammer/hammer_cursor.c
1037
cursor->index = nindex;
sys/vfs/hammer/hammer_cursor.c
1060
if (cursor->index != pindex)
sys/vfs/hammer/hammer_cursor.c
1072
cursor->index = nindex;
sys/vfs/hammer/hammer_cursor.c
1113
hammer_cursor_deleted_element(hammer_node_t node, int index)
sys/vfs/hammer/hammer_cursor.c
1122
if (cursor->index == index) {
sys/vfs/hammer/hammer_cursor.c
1124
if (cursor->leaf == &ondisk->elms[cursor->index].leaf)
sys/vfs/hammer/hammer_cursor.c
1126
} else if (cursor->index > index) {
sys/vfs/hammer/hammer_cursor.c
1127
if (cursor->leaf == &ondisk->elms[cursor->index].leaf)
sys/vfs/hammer/hammer_cursor.c
1128
cursor->leaf = &ondisk->elms[cursor->index - 1].leaf;
sys/vfs/hammer/hammer_cursor.c
1129
--cursor->index;
sys/vfs/hammer/hammer_cursor.c
1140
hammer_cursor_inserted_element(hammer_node_t node, int index)
sys/vfs/hammer/hammer_cursor.c
1149
if (cursor->index >= index) {
sys/vfs/hammer/hammer_cursor.c
1150
if (cursor->leaf == &ondisk->elms[cursor->index].leaf)
sys/vfs/hammer/hammer_cursor.c
1151
cursor->leaf = &ondisk->elms[cursor->index + 1].leaf;
sys/vfs/hammer/hammer_cursor.c
1152
++cursor->index;
sys/vfs/hammer/hammer_cursor.c
458
hammer_cursor_seek(hammer_cursor_t cursor, hammer_node_t node, int index)
sys/vfs/hammer/hammer_cursor.c
481
cursor->index = index;
sys/vfs/hammer/hammer_cursor.c
547
cursor->index = cursor->parent_index;
sys/vfs/hammer/hammer_cursor.c
579
save_index = cursor->index;
sys/vfs/hammer/hammer_cursor.c
585
cursor->index = cursor->parent_index;
sys/vfs/hammer/hammer_cursor.c
601
cursor->parent_index = cursor->index;
sys/vfs/hammer/hammer_cursor.c
603
cursor->index = save_index;
sys/vfs/hammer/hammer_cursor.c
626
KKASSERT(cursor->index >= 0 && cursor->index < node->ondisk->count);
sys/vfs/hammer/hammer_cursor.c
632
cursor->parent_index = cursor->index;
sys/vfs/hammer/hammer_cursor.c
634
cursor->index = 0;
sys/vfs/hammer/hammer_cursor.c
685
cursor->index = 0;
sys/vfs/hammer/hammer_cursor.c
927
if (cursor->leaf == &ondisk->elms[cursor->index].leaf)
sys/vfs/hammer/hammer_cursor.c
928
cursor->leaf = &nndisk->elms[cursor->index].leaf;
sys/vfs/hammer/hammer_cursor.c
949
hammer_cursor_removed_node(hammer_node_t node, hammer_node_t parent, int index)
sys/vfs/hammer/hammer_cursor.c
959
KKASSERT(cursor->index == 0);
sys/vfs/hammer/hammer_cursor.c
962
if (cursor->leaf == &ondisk->elms[cursor->index].leaf)
sys/vfs/hammer/hammer_cursor.c
967
cursor->index = index;
sys/vfs/hammer/hammer_cursor.c
977
hammer_cursor_split_node(hammer_node_t onode, hammer_node_t nnode, int index)
sys/vfs/hammer/hammer_cursor.c
989
if (cursor->index < index)
sys/vfs/hammer/hammer_cursor.c
993
if (cursor->leaf == &ondisk->elms[cursor->index].leaf)
sys/vfs/hammer/hammer_cursor.c
994
cursor->leaf = &nndisk->elms[cursor->index - index].leaf;
sys/vfs/hammer/hammer_cursor.c
996
cursor->index -= index;
sys/vfs/hammer/hammer_cursor.h
63
int index;
sys/vfs/hammer/hammer_inode.c
524
ip->ino_leaf = cursor.node->ondisk->elms[cursor.index].leaf;
sys/vfs/hammer/hammer_io.c
1577
bio->bio_caller_info2.index = 1;
sys/vfs/hammer/hammer_io.c
1579
bio->bio_caller_info2.index = 0;
sys/vfs/hammer/hammer_io.c
1658
} else if (obio->bio_caller_info2.index &&
sys/vfs/hammer/hammer_ioctl.c
388
elm = &cursor.node->ondisk->elms[cursor.index];
sys/vfs/hammer/hammer_ioctl.c
724
if (snap->index >= snap->count)
sys/vfs/hammer/hammer_ioctl.c
750
while (snap->index < snap->count) {
sys/vfs/hammer/hammer_ioctl.c
751
leaf.base.key = (int64_t)snap->snaps[snap->index].tid;
sys/vfs/hammer/hammer_ioctl.c
767
&snap->snaps[snap->index],
sys/vfs/hammer/hammer_ioctl.c
776
++snap->index;
sys/vfs/hammer/hammer_ioctl.c
801
if (snap->index >= snap->count)
sys/vfs/hammer/hammer_ioctl.c
825
while (snap->index < snap->count) {
sys/vfs/hammer/hammer_ioctl.c
826
cursor.key_beg.key = (int64_t)snap->snaps[snap->index].tid;
sys/vfs/hammer/hammer_ioctl.c
841
++snap->index;
sys/vfs/hammer/hammer_ioctl.c
870
if (snap->index != 0)
sys/vfs/hammer/hammer_ioctl.h
417
uint32_t index;
sys/vfs/hammer/hammer_mirror.c
185
elm = &cursor.node->ondisk->elms[cursor.index].leaf;
sys/vfs/hammer/hammer_mirror.c
736
elm = &cursor->node->ondisk->elms[cursor->index].leaf;
sys/vfs/hammer/hammer_object.c
1288
cursor->index,
sys/vfs/hammer/hammer_object.c
1448
cursor->index);
sys/vfs/hammer/hammer_object.c
1504
elm = &cursor->node->ondisk->elms[cursor->index];
sys/vfs/hammer/hammer_object.c
1649
elm = &cursor->node->ondisk->elms[cursor->index];
sys/vfs/hammer/hammer_object.c
1734
elm = &cursor->node->ondisk->elms[cursor->index];
sys/vfs/hammer/hammer_object.c
1889
cursor->leaf = &cursor->node->ondisk->elms[cursor->index].leaf;
sys/vfs/hammer/hammer_object.c
2446
elm = &node->ondisk->elms[cursor->index];
sys/vfs/hammer/hammer_pfs.c
476
key_cur = cursor.node->ondisk->elms[cursor.index].base;
sys/vfs/hammer/hammer_pfs.c
513
elm = &cursor->node->ondisk->elms[cursor->index].leaf;
sys/vfs/hammer/hammer_prune.c
153
elm = &cursor.node->ondisk->elms[cursor.index].leaf;
sys/vfs/hammer/hammer_rebalance.c
163
if (cursor.index == cursor.node->ondisk->count - 1) {
sys/vfs/hammer/hammer_rebalance.c
174
cursor.index = cursor.node->ondisk->count - 1;
sys/vfs/hammer/hammer_rebalance.c
194
elm = &cursor.node->ondisk->elms[cursor.index].leaf;
sys/vfs/hammer/hammer_rebalance.c
379
item->index];
sys/vfs/hammer/hammer_rebalance.c
41
static void rebalance_parent_ptrs(hammer_node_lock_t base_item, int index,
sys/vfs/hammer/hammer_rebalance.c
450
item->index,
sys/vfs/hammer/hammer_rebalance.c
463
hammer_cursor_moved_element(item->parent->node, item->index,
sys/vfs/hammer/hammer_rebalance.c
501
if (cursor->index > lockroot.copy->count)
sys/vfs/hammer/hammer_rebalance.c
502
--cursor->index;
sys/vfs/hammer/hammer_rebalance.c
589
rbound_elm = &parent->copy->elms[base_item->index + 1];
sys/vfs/hammer/hammer_rebalance.c
597
base_item->index + 1);
sys/vfs/hammer/hammer_rebalance.c
610
rebalance_parent_ptrs(hammer_node_lock_t base_item, int index,
sys/vfs/hammer/hammer_rebalance.c
617
item->node, base_item->node, index);
sys/vfs/hammer/hammer_reblock.c
146
KKASSERT(cursor.index < cursor.node->ondisk->count);
sys/vfs/hammer/hammer_reblock.c
147
elm = &cursor.node->ondisk->elms[cursor.index];
sys/vfs/hammer/hammer_reblock.c
356
elm = &ondisk->elms[cursor->index];
sys/vfs/hammer/hammer_reblock.c
361
cursor->index >= ondisk->count) {
sys/vfs/hammer/hammer_reblock.c
371
KKASSERT(cursor->index < ondisk->count);
sys/vfs/hammer/hammer_reblock.c
400
if (cursor->index == 0 &&
sys/vfs/hammer2/hammer2.h
1932
void hammer2_volconf_update(hammer2_dev_t *hmp, int index);
sys/vfs/hammer2/hammer2_disk.h
533
int32_t index;
sys/vfs/hammer2/hammer2_freemap.c
105
index = (int)(off - HAMMER2_ZONE_FREEMAP_00) /
sys/vfs/hammer2/hammer2_freemap.c
107
KKASSERT(index >= 0 && index < HAMMER2_NFREEMAPS);
sys/vfs/hammer2/hammer2_freemap.c
108
if (++index == HAMMER2_NFREEMAPS)
sys/vfs/hammer2/hammer2_freemap.c
109
index = 0;
sys/vfs/hammer2/hammer2_freemap.c
117
index_inc = index * HAMMER2_ZONE_FREEMAP_INC;
sys/vfs/hammer2/hammer2_freemap.c
82
int index;
sys/vfs/hammer2/hammer2_freemap.c
98
index = 0;
sys/vfs/hammer2/hammer2_iocom.c
371
hammer2_volconf_update(hammer2_dev_t *hmp, int index)
sys/vfs/hammer2/hammer2_iocom.c
382
H2_LNK_VOLCONF(msg)->copy = hmp->voldata.copyinfo[index];
sys/vfs/hammer2/hammer2_iocom.c
384
H2_LNK_VOLCONF(msg)->index = index;
sys/vfs/hammer2/hammer2_strategy.c
192
if bio->bio_caller_info2.index &&
sys/vfs/smbfs/smbfs_vfsops.c
170
pc=index(strncpy(pc, vcp->vc_username, pe - pc - 2), 0);
sys/vfs/smbfs/smbfs_vfsops.c
173
pc = index(strncpy(pc, vcp->vc_srvname, pe - pc - 2), 0);
sys/vfs/smbfs/smbfs_vnops.c
1000
if (index(badchars, *cp) != NULL)
sys/vfs/smbfs/smbfs_vnops.c
975
if (index(name, '\\') != NULL)
sys/vfs/smbfs/smbfs_vnops.c
987
cp = index(name, '.');
sys/vfs/smbfs/smbfs_vnops.c
992
cp = index(cp + 1, '.');
sys/vfs/smbfs/smbfs_vnops.c
996
if (index(badchars83, *cp) != NULL)
sys/vfs/udf/osta.c
319
int index, newIndex = 0, needsCRC = FALSE;
sys/vfs/udf/osta.c
328
for (index = 0; index < udfLen; index++) {
sys/vfs/udf/osta.c
329
current = udfName[index];
sys/vfs/udf/osta.c
340
while(index+1 < udfLen && (IsIllegal(udfName[index+1])
sys/vfs/udf/osta.c
341
|| !UnicodeIsPrint(udfName[index+1]))) {
sys/vfs/udf/osta.c
342
index++;
sys/vfs/udf/osta.c
347
if (current == PERIOD && (udfLen - index -1) <= EXT_SIZE) {
sys/vfs/udf/osta.c
348
if (udfLen == index + 1) {
sys/vfs/udf/osta.c
353
extIndex = index;
sys/vfs/udf/osta.c
388
for(index = 0; index<EXT_SIZE &&
sys/vfs/udf/osta.c
389
extIndex + index +1 < udfLen; index++ ) {
sys/vfs/udf/osta.c
390
current = udfName[extIndex + index + 1];
sys/vfs/udf/osta.c
401
while(index + 1 < EXT_SIZE
sys/vfs/udf/osta.c
403
index + 2]) ||
sys/vfs/udf/osta.c
405
index + 2]))) {
sys/vfs/udf/osta.c
406
index++;
sys/vfs/udf/osta.c
438
for (index = 0;index < localExtIndex ;index++ ) {
sys/vfs/udf/osta.c
439
newName[newIndex++] = ext[index];
sys/vm/swap_pager.c
1459
bio->bio_caller_info1.index = SWBIO_READ;
sys/vm/swap_pager.c
1759
bio->bio_caller_info1.index = SWBIO_WRITE;
sys/vm/swap_pager.c
1782
bio->bio_caller_info1.index |= SWBIO_SYNC;
sys/vm/swap_pager.c
1784
bio->bio_caller_info1.index |= SWBIO_TTC;
sys/vm/swap_pager.c
1859
((bio->bio_caller_info1.index & SWBIO_READ) ?
sys/vm/swap_pager.c
1875
if (bio->bio_caller_info1.index & SWBIO_WRITE) {
sys/vm/swap_pager.c
1917
if (bio->bio_caller_info1.index & SWBIO_READ) {
sys/vm/swap_pager.c
1995
} else if (bio->bio_caller_info1.index & SWBIO_READ) {
sys/vm/swap_pager.c
2075
if (bio->bio_caller_info1.index & SWBIO_TTC)
sys/vm/swap_pager.c
2100
if (bio->bio_caller_info1.index & SWBIO_READ)
sys/vm/swap_pager.c
2102
else if (bio->bio_caller_info1.index & SWBIO_SYNC)
sys/vm/swap_pager.c
2238
vm_pindex_t index;
sys/vm/swap_pager.c
2242
index = swap->swb_index;
sys/vm/swap_pager.c
2261
&object->swblock_root, index) != swap) {
sys/vm/swap_pager.c
2288
swp_pager_lookup(vm_object_t object, vm_pindex_t index)
sys/vm/swap_pager.c
2291
index &= ~(vm_pindex_t)SWAP_META_MASK;
sys/vm/swap_pager.c
2292
return (RB_LOOKUP(swblock_rb_tree, &object->swblock_root, index));
sys/vm/swap_pager.c
2335
swp_pager_meta_build(vm_object_t object, vm_pindex_t index, swblk_t swapblk)
sys/vm/swap_pager.c
2356
swap = swp_pager_lookup(object, index);
sys/vm/swap_pager.c
2366
swap->swb_index = index & ~(vm_pindex_t)SWAP_META_MASK;
sys/vm/swap_pager.c
2383
index &= SWAP_META_MASK;
sys/vm/swap_pager.c
2385
while ((v = swap->swb_pages[index]) != SWAPBLK_NONE) {
sys/vm/swap_pager.c
2386
swap->swb_pages[index] = SWAPBLK_NONE;
sys/vm/swap_pager.c
2396
swap->swb_pages[index] = swapblk;
sys/vm/swap_pager.c
2418
swp_pager_meta_free(vm_object_t object, vm_pindex_t index, vm_pindex_t count)
sys/vm/swap_pager.c
2439
info.basei = index & ~(vm_pindex_t)SWAP_META_MASK;
sys/vm/swap_pager.c
2440
info.begi = index;
sys/vm/swap_pager.c
2441
info.endi = index + count - 1;
sys/vm/swap_pager.c
2455
int index;
sys/vm/swap_pager.c
2464
index = (int)info->begi & SWAP_META_MASK;
sys/vm/swap_pager.c
2466
index = 0;
sys/vm/swap_pager.c
2480
while (index <= eindex) {
sys/vm/swap_pager.c
2481
swblk_t v = swap->swb_pages[index];
sys/vm/swap_pager.c
2484
swap->swb_pages[index] = SWAPBLK_NONE;
sys/vm/swap_pager.c
2495
++index;
sys/vm/swap_pager.c
2566
swp_pager_meta_ctl(vm_object_t object, vm_pindex_t index, int flags)
sys/vm/swap_pager.c
2575
swap = swp_pager_lookup(object, index);
sys/vm/swap_pager.c
2578
index &= SWAP_META_MASK;
sys/vm/swap_pager.c
2579
r1 = swap->swb_pages[index];
sys/vm/swap_pager.c
2583
swap->swb_pages[index] = SWAPBLK_NONE;
sys/vm/vm_contig.c
565
vm_pindex_t index;
sys/vm/vm_contig.c
568
index = vm_contig_pg_alloc(size, low, high, alignment, boundary, flags);
sys/vm/vm_contig.c
569
if (index == (vm_pindex_t)-1) {
sys/vm/vm_contig.c
577
rv = (void *)vm_contig_pg_kmap(index, size, map, flags);
sys/vm/vm_contig.c
579
vm_contig_pg_free(index, size);
sys/vm/vm_fault.c
2926
vm_pindex_t index;
sys/vm/vm_fault.c
3040
index = ((addr - entry->ba.start) + entry->ba.offset) >>
sys/vm/vm_fault.c
3044
pindex = index;
sys/vm/vm_fault.c
3064
m = vm_page_alloc(object, index,
sys/vm/vm_page.c
129
static vm_page_t _vm_page_list_find_wide(int basequeue, int index, int *lastp);
sys/vm/vm_page.c
130
static vm_page_t _vm_page_list_find2_wide(int bq1, int bq2, int index,
sys/vm/vm_page.c
2008
_vm_page_list_find(int basequeue, int index)
sys/vm/vm_page.c
2013
index &= PQ_L2_MASK;
sys/vm/vm_page.c
2014
pq = &vm_page_queues[basequeue + index];
sys/vm/vm_page.c
2027
KKASSERT(m->queue == basequeue + index);
sys/vm/vm_page.c
2034
m = _vm_page_list_find_wide(basequeue, index, &pq->lastq);
sys/vm/vm_page.c
2044
_vm_page_list_find_wide(int basequeue, int index, int *lastp)
sys/vm/vm_page.c
2060
index = *lastp;
sys/vm/vm_page.c
2062
index &= PQ_L2_MASK;
sys/vm/vm_page.c
2082
pqi = index;
sys/vm/vm_page.c
2120
_vm_page_list_find2(int bq1, int bq2, int index)
sys/vm/vm_page.c
2126
index &= PQ_L2_MASK;
sys/vm/vm_page.c
2127
pq1 = &vm_page_queues[bq1 + index];
sys/vm/vm_page.c
2128
pq2 = &vm_page_queues[bq2 + index];
sys/vm/vm_page.c
2141
KKASSERT(m->queue == bq1 + index);
sys/vm/vm_page.c
2149
m = _vm_page_list_find2_wide(bq1, bq2, index, &pq1->lastq, &pq2->lastq);
sys/vm/vm_page.c
2162
_vm_page_list_find2_wide(int basequeue1, int basequeue2, int index,
sys/vm/vm_page.c
2180
index = *lastp1;
sys/vm/vm_page.c
2182
index &= PQ_L2_MASK;
sys/vm/vm_page.c
2212
pqi = index;
sys/vm/vm_page.c
2248
pqi = index;
sys/vm/vm_page.c
2294
vm_page_list_find(int basequeue, int index)
sys/vm/vm_page.c
2298
m = _vm_page_list_find(basequeue, index);
sys/vm/vm_page.h
553
vm_page_t vm_page_list_find(int basequeue, int index);
sys/vm/vm_swap.c
119
index = seg % nswdev;
sys/vm/vm_swap.c
123
index = 0;
sys/vm/vm_swap.c
127
sp = &swdevt[index];
sys/vm/vm_swap.c
257
int index;
sys/vm/vm_swap.c
280
for (sp = swdevt, index = 0 ; index < nswdev; index++, sp++) {
sys/vm/vm_swap.c
379
vsbase = index * SWB_DMMAX + dvbase * nswdev;
sys/vm/vm_swap.c
408
int error, index;
sys/vm/vm_swap.c
425
for (sp = swdevt, index = 0; index < nswdev; index++, sp++) {
sys/vm/vm_swap.c
432
error = swapoff_one(index);
sys/vm/vm_swap.c
441
swapoff_one(int index)
sys/vm/vm_swap.c
453
sp = &swdevt[index];
sys/vm/vm_swap.c
541
vsbase = index * SWB_DMMAX + dvbase * nswdev;
sys/vm/vm_swap.c
549
if (swap_pager_swapoff(index) && swap_pager_swapoff(index)) {
sys/vm/vm_swap.c
558
bzero(swdevt + index, sizeof(struct swdevt));
sys/vm/vm_swap.c
594
int index;
sys/vm/vm_swap.c
599
index = seg % nswdev;
sys/vm/vm_swap.c
600
swdevt[index].sw_nused -= count;
sys/vm/vm_swap.c
78
static int swapoff_one(int index);
sys/vm/vm_swap.c
99
int index;
test/debug/wildcardinfo.c
147
dumpinpcontainerhead(kvm_t *kd, int index, void *kptr)
test/debug/wildcardinfo.c
156
printf("\tinpcontainer list at index %d {\n", index);
test/debug/wildcardinfo.c
78
static void dumpinpcontainerhead(kvm_t *kd, int index, void *kptr);
test/interbench/interbench.c
1463
inline int bit_is_on(const unsigned int mask, int index)
test/interbench/interbench.c
1465
return (mask & (1 << index)) != 0;
test/interbench/interbench.c
1468
inline void set_bit_on(unsigned int *mask, int index)
test/interbench/interbench.c
1470
*mask |= (1 << index);
test/stress/stress2/testcases/rw/rw.c
126
int buf[1024], index, to;
test/stress/stress2/testcases/rw/rw.c
139
index = 0;
test/stress/stress2/testcases/rw/rw.c
140
while (index < size) {
test/stress/stress2/testcases/rw/rw.c
141
if (index + to > size)
test/stress/stress2/testcases/rw/rw.c
142
to = size - index;
test/stress/stress2/testcases/rw/rw.c
145
buf[i] = index + i;
test/stress/stress2/testcases/rw/rw.c
147
index += to;
test/stress/stress2/testcases/rw/rw.c
157
index = 0;
test/stress/stress2/testcases/rw/rw.c
158
while (index < size && done_testing == 0) {
test/stress/stress2/testcases/rw/rw.c
159
if (index + to > size)
test/stress/stress2/testcases/rw/rw.c
160
to = size - index;
test/stress/stress2/testcases/rw/rw.c
165
if (buf[i] != index + i) {
test/stress/stress2/testcases/rw/rw.c
168
getprogname(), getpid(), index+i, index+i,
test/stress/stress2/testcases/rw/rw.c
174
index += to;
tools/tools/usbtest/usb_msc_test.c
869
int index;
tools/tools/usbtest/usb_msc_test.c
877
index = 0;
tools/tools/usbtest/usb_msc_test.c
886
if (index < USB_DEVICES_MAX) {
tools/tools/usbtest/usb_msc_test.c
889
printf("%s%d) %s\n", indent[level], index, ptr);
tools/tools/usbtest/usb_msc_test.c
890
vid[index] = ddesc->idVendor;
tools/tools/usbtest/usb_msc_test.c
891
pid[index] = ddesc->idProduct;
tools/tools/usbtest/usb_msc_test.c
892
index++;
tools/tools/usbtest/usb_msc_test.c
909
if ((sel < 0) || (sel >= index)) {
usr.bin/bc/bc.y
58
ssize_t index;
usr.bin/bc/bc.y
770
instructions[current].index = CONST_STRING;
usr.bin/bc/bc.y
779
instructions[current].index = ALLOC_STRING;
usr.bin/bc/bc.y
796
instructions[current++].index = arg;
usr.bin/bc/bc.y
801
instructions[current++].index = arg;
usr.bin/bc/bc.y
811
if (instructions[i].index >= 0)
usr.bin/bc/bc.y
812
while (instructions[i].index != END_NODE)
usr.bin/bc/bc.y
813
emit(instructions[i++].index);
usr.bin/bc/bc.y
833
if (instructions[i].index == ALLOC_STRING)
usr.bin/calendar/calendar.h
95
int (*find_days_mdow)(int month, int dow, int index,
usr.bin/calendar/days.c
424
find_days_mdow(int month, int dow, int index,
usr.bin/calendar/days.c
434
if (index != 0 &&
usr.bin/calendar/days.c
435
(index != dp->dow[1] && index != dp->dow[2])) {
usr.bin/calendar/days.h
76
int find_days_mdow(int month, int dow, int index,
usr.bin/calendar/parsedata.c
168
if (parse_index(date2+len, &di->index)) {
usr.bin/calendar/parsedata.c
229
if (parse_index(p2+len, &di->index)) {
usr.bin/calendar/parsedata.c
264
if (parse_index(p2+len, &di->index)) {
usr.bin/calendar/parsedata.c
296
fprintf(stderr, " index(%d)", di->index);
usr.bin/calendar/parsedata.c
325
int index, offset;
usr.bin/calendar/parsedata.c
340
index = (di.flags & F_INDEX) ? di.index : 0;
usr.bin/calendar/parsedata.c
376
index, dayp, edp);
usr.bin/calendar/parsedata.c
385
return (Calendar->find_days_mdow)(-1, di.dayofweek, index,
usr.bin/calendar/parsedata.c
497
parse_index(const char *s, int *index)
usr.bin/calendar/parsedata.c
512
*index = v;
usr.bin/calendar/parsedata.c
520
*index = nname->value;
usr.bin/calendar/parsedata.c
526
__func__, s, *index, (parsed ? "ok" : "fail"));
usr.bin/calendar/parsedata.c
59
int index;
usr.bin/calendar/parsedata.c
69
static bool parse_index(const char *s, int *index);
usr.bin/dc/bcode.c
1500
int index, elseindex;
usr.bin/dc/bcode.c
1506
index = readreg();
usr.bin/dc/bcode.c
1524
index = elseindex;
usr.bin/dc/bcode.c
1526
if (index >= 0 && (ok || (!ok && elseindex != NO_ELSE))) {
usr.bin/dc/bcode.c
1527
v = stack_tos(&bmachine.reg[index]);
usr.bin/dc/bcode.c
1529
warnx("register '%c' (0%o) is empty", index, index);
usr.bin/dc/bcode.c
1534
index, index);
usr.bin/dc/bcode.c
766
int index, ch1, ch2;
usr.bin/dc/bcode.c
768
index = readch();
usr.bin/dc/bcode.c
769
if (index == 0xff && bmachine.extended_regs) {
usr.bin/dc/bcode.c
774
index = -1;
usr.bin/dc/bcode.c
776
index = (ch1 << 8) + ch2 + UCHAR_MAX + 1;
usr.bin/dc/bcode.c
778
if (index < 0 || index >= bmachine.reg_array_size) {
usr.bin/dc/bcode.c
779
warnx("internal error: reg num = %d", index);
usr.bin/dc/bcode.c
780
index = -1;
usr.bin/dc/bcode.c
782
return index;
usr.bin/dc/bcode.c
788
int index;
usr.bin/dc/bcode.c
792
index = readreg();
usr.bin/dc/bcode.c
793
if (index >= 0) {
usr.bin/dc/bcode.c
794
v = stack_tos(&bmachine.reg[index]);
usr.bin/dc/bcode.c
807
int index;
usr.bin/dc/bcode.c
810
index = readreg();
usr.bin/dc/bcode.c
811
if (index >= 0) {
usr.bin/dc/bcode.c
816
stack_set_tos(&bmachine.reg[index], val);
usr.bin/dc/bcode.c
823
int index;
usr.bin/dc/bcode.c
827
index = readreg();
usr.bin/dc/bcode.c
828
if (index >= 0) {
usr.bin/dc/bcode.c
829
stack = &bmachine.reg[index];
usr.bin/dc/bcode.c
838
index, index);
usr.bin/dc/bcode.c
845
int index;
usr.bin/dc/bcode.c
848
index = readreg();
usr.bin/dc/bcode.c
849
if (index >= 0) {
usr.bin/dc/bcode.c
853
stack_push(&bmachine.reg[index], value);
usr.bin/dc/bcode.c
862
u_long index;
usr.bin/dc/bcode.c
871
index = get_ulong(inumber);
usr.bin/dc/bcode.c
874
else if (index == BN_MASK2 || index > MAX_ARRAY_INDEX)
usr.bin/dc/bcode.c
878
v = frame_retrieve(stack, index);
usr.bin/dc/bcode.c
896
u_long index;
usr.bin/dc/bcode.c
910
index = get_ulong(inumber);
usr.bin/dc/bcode.c
914
} else if (index == BN_MASK2 || index > MAX_ARRAY_INDEX) {
usr.bin/dc/bcode.c
919
frame_assign(stack, index, value);
usr.bin/dc/stack.c
318
array_assign(struct array *array, size_t index, const struct value *v)
usr.bin/dc/stack.c
320
if (index >= array->size)
usr.bin/dc/stack.c
321
array_grow(array, index+1);
usr.bin/dc/stack.c
322
stack_free_value(&array->data[index]);
usr.bin/dc/stack.c
323
array->data[index] = *v;
usr.bin/dc/stack.c
327
array_retrieve(const struct array *array, size_t index)
usr.bin/dc/stack.c
329
if (index >= array->size)
usr.bin/dc/stack.c
331
return &array->data[index];
usr.bin/dc/stack.c
335
frame_assign(struct stack *stack, size_t index, const struct value *v)
usr.bin/dc/stack.c
349
array_assign(a, index, v);
usr.bin/dc/stack.c
353
frame_retrieve(const struct stack *stack, size_t index)
usr.bin/dc/stack.c
362
return array_retrieve(a, index);
usr.bin/dsynth/build.c
1081
work->index, pkg->portdir,
usr.bin/dsynth/build.c
1101
work->index, work->state, work->index);
usr.bin/dsynth/build.c
1193
work->index, pkg->portdir,
usr.bin/dsynth/build.c
1202
work->index, pkg->portdir,
usr.bin/dsynth/build.c
1215
work->index, pkg->portdir, skipbuf,
usr.bin/dsynth/build.c
122
work->index = (slot_override >= 0) ? slot_override : i;
usr.bin/dsynth/build.c
124
asprintf(&work->basedir, "%s/SL%02d", BuildBase, work->index);
usr.bin/dsynth/build.c
1243
work->index, pkg->portdir, h, m, s);
usr.bin/dsynth/build.c
1255
work->index);
usr.bin/dsynth/build.c
1259
work->index, pkg->portdir);
usr.bin/dsynth/build.c
1480
setNumaDomain(work->index);
usr.bin/dsynth/build.c
1507
snprintf(slotbuf, sizeof(slotbuf), "%d", work->index);
usr.bin/dsynth/build.c
1658
work->index, work->state, work->index);
usr.bin/dsynth/build.c
2319
work->index, pkg.portdir, b1, b2);
usr.bin/dsynth/build.c
2391
work->index, phase, pkg->portdir, WorkerFlavorPrt);
usr.bin/dsynth/build.c
2396
work->index, pkg->portdir);
usr.bin/dsynth/build.c
2615
work->index, pkg->logfile, strerror(errno));
usr.bin/dsynth/build.c
2625
work->index, pkg->portdir,
usr.bin/dsynth/build.c
2649
work->index, pkg->portdir, phase);
usr.bin/dsynth/build.c
2705
work->index, pkg->portdir, phase,
usr.bin/dsynth/build.c
2734
work->index, pkg->portdir, WorkerFlavorPrt);
usr.bin/dsynth/build.c
2783
work->index, pkg->portdir, phase,
usr.bin/dsynth/build.c
2789
work->index, pkg->portdir, phase);
usr.bin/dsynth/build.c
2838
work->index, pkg->portdir,
usr.bin/dsynth/dsynth.h
298
int index; /* worker number 0..N-1 */
usr.bin/dsynth/html.c
170
int i = work->index;
usr.bin/dsynth/html.c
414
slot = work->index;
usr.bin/dsynth/monitor.c
144
int i = work->index;
usr.bin/dsynth/mount.c
191
setNumaDomain(work->index);
usr.bin/dsynth/mount.c
276
setNumaDomain(work->index);
usr.bin/dsynth/mount.c
395
asprintf(&tmp, discretefmt, work->index);
usr.bin/dsynth/ncurses.c
250
int i = work->index;
usr.bin/locate/locate/fastfind.c
163
if (index(LOCATE_REG, *p) != NULL)
usr.bin/locate/locate/util.c
158
if (index(LOCATE_REG, *p) == NULL)
usr.bin/locate/locate/util.c
168
(index(p, '[') != NULL || index(p, ']') != NULL)) {
usr.bin/locate/locate/util.c
179
if (p >= name && index(LOCATE_REG, *p) != NULL)
usr.bin/locate/locate/util.c
189
if (index(LOCATE_REG, *p) != NULL)
usr.bin/mail/strings.c
104
sp->s_nleft = STRINGSIZE << index;
usr.bin/mail/strings.c
105
index++;
usr.bin/mail/strings.c
57
int s, index;
usr.bin/mail/strings.c
63
index = 0;
usr.bin/mail/strings.c
65
if (sp->s_topFree == NULL && (STRINGSIZE << index) >= s)
usr.bin/mail/strings.c
69
index++;
usr.bin/mail/strings.c
74
index = sp - &stringdope[0];
usr.bin/mail/strings.c
75
if ((sp->s_topFree = malloc(STRINGSIZE << index)) == NULL)
usr.bin/mail/strings.c
76
err(1, "No room for space %d", index);
usr.bin/mail/strings.c
78
sp->s_nleft = STRINGSIZE << index;
usr.bin/mail/strings.c
95
int index;
usr.bin/mail/strings.c
99
index = 0;
usr.bin/tip/remote.c
264
if ((cp = index(next, ',')) == NULL) {
usr.bin/tip/unidialer.c
680
if (index(buf, '0') ||
usr.bin/tip/unidialer.c
681
(index(buf, 'O') && index(buf, 'K')))
usr.bin/tip/value.c
170
if ((cp = index(s, '='))) {
usr.bin/tip/value.c
183
} else if ((cp = index(s, '?'))) {
usr.bin/top/os.h
61
#define strchr(a, b) index((a), (b))
usr.bin/top/utils.c
613
static int index = 0;
usr.bin/top/utils.c
617
ret = retarray[index];
usr.bin/top/utils.c
618
index = (index + 1) % NUM_STRINGS;
usr.bin/top/utils.c
631
snprintf(ret, sizeof(retarray[index])-1, "%ld%c", amt, tag);
usr.sbin/bootparamd/bootparamd/bootparamd.c
113
char *where, *index();
usr.sbin/bootparamd/bootparamd/bootparamd.c
132
if ( (where = index(buffer,':')) ) {
usr.sbin/burncd/burncd.c
547
cue->index = idx;
usr.sbin/makefs/hammer2/hammer2.h
2005
void hammer2_volconf_update(hammer2_dev_t *hmp, int index);
usr.sbin/makefs/hammer2/hammer2_freemap.c
102
index = 0;
usr.sbin/makefs/hammer2/hammer2_freemap.c
109
index = (int)(off - HAMMER2_ZONE_FREEMAP_00) /
usr.sbin/makefs/hammer2/hammer2_freemap.c
111
KKASSERT(index >= 0 && index < HAMMER2_NFREEMAPS);
usr.sbin/makefs/hammer2/hammer2_freemap.c
112
if (++index == HAMMER2_NFREEMAPS)
usr.sbin/makefs/hammer2/hammer2_freemap.c
113
index = 0;
usr.sbin/makefs/hammer2/hammer2_freemap.c
121
index_inc = index * HAMMER2_ZONE_FREEMAP_INC;
usr.sbin/makefs/hammer2/hammer2_freemap.c
86
int index;
usr.sbin/makefs/hammer2/hammer2_strategy.c
200
if bio->bio_caller_info2.index &&
usr.sbin/nscd/cacheplcs.c
378
int index;
usr.sbin/nscd/cacheplcs.c
394
index = ((double)lfu_item->parent_data.request_count *
usr.sbin/nscd/cacheplcs.c
399
if (index >= CACHELIB_MAX_FREQUENCY)
usr.sbin/nscd/cacheplcs.c
400
index = CACHELIB_MAX_FREQUENCY - 1;
usr.sbin/nscd/cacheplcs.c
402
index = CACHELIB_MAX_FREQUENCY - 1;
usr.sbin/nscd/cacheplcs.c
406
lfu_item->frequency = index;
usr.sbin/nscd/cacheplcs.c
407
TAILQ_INSERT_HEAD(&(lfu_policy->groups[index]), lfu_item, entries);
usr.sbin/nscd/config.c
298
configuration_get_entry(struct configuration *config, size_t index)
usr.sbin/nscd/config.c
302
assert(index < config->entries_size);
usr.sbin/nscd/config.c
304
return (config->entries[index]);
usr.sbin/pfctl/pfctl.c
1137
pl.index = pf_limits[i].index;
usr.sbin/pfctl/pfctl.c
134
int index;
usr.sbin/pfctl/pfctl.c
1646
pf->limit[pf_limits[i].index] = limit;
usr.sbin/pfctl/pfctl.c
1647
pf->limit_set[pf_limits[i].index] = 1;
usr.sbin/pfctl/pfctl.c
1668
pl.index = his_index;
usr.sbin/ppp/iface.c
154
iface->index = ifm->ifm_index;
usr.sbin/ppp/iface.c
657
prompt_Printf(arg->prompt, "%s (idx %d) <", iface->name, iface->index);
usr.sbin/ppp/iface.h
40
int index; /* Interface index */
usr.sbin/ppp/route.c
391
log_Printf(LogDEBUG, "route_IfDelete (%d)\n", bundle->iface->index);
usr.sbin/ppp/route.c
431
if (rtm->rtm_index == bundle->iface->index &&
usr.sbin/ppp/route.c
482
log_Printf(LogDEBUG, "route_UpdateMTU (%d)\n", bundle->iface->index);
usr.sbin/ppp/route.c
516
sa[RTAX_GATEWAY] && rtm->rtm_index == bundle->iface->index) {
usr.sbin/ppp/route.c
771
add_scope((struct sockaddr *)&sadst, bundle->iface->index);
usr.sbin/ppp/route.c
784
add_scope((struct sockaddr *)&sagw, bundle->iface->index);
usr.sbin/route6d/route6d.c
87
#define SET_IN6_LINKLOCAL_IFINDEX(addr, index) \
usr.sbin/route6d/route6d.c
89
(addr).s6_addr[2] = ((index) >> 8) & 0xff; \
usr.sbin/route6d/route6d.c
90
(addr).s6_addr[3] = (index) & 0xff; \
usr.sbin/rpcbind/rpcb_svc_com.c
1030
free_slot_by_index(int index)
usr.sbin/rpcbind/rpcb_svc_com.c
1034
fi = &FINFO[index];
usr.sbin/usbconfig/dump.h
33
void dump_string_by_index(struct libusb20_device *pdev, uint8_t index);