Symbol: index
bin/ksh/c_ksh.c
822
vp->name, vp->index);
bin/ksh/table.h
26
int index; /* index for an array */
bin/ksh/var.c
1139
vp->index = 0;
bin/ksh/var.c
1145
while (curr && curr->index < val) {
bin/ksh/var.c
1149
if (curr && curr->index == val) {
bin/ksh/var.c
1162
new->index = val;
games/adventure/io.c
416
int index;
games/adventure/io.c
420
index = rnum();
games/adventure/io.c
421
if (index < 0)
games/adventure/io.c
432
vocab(buf, -2, index);
games/battlestar/extern.h
42
#define TestBit(array, index) (array[index/BITS] & (1U << (index % BITS)))
games/battlestar/extern.h
43
#define SetBit(array, index) (array[index/BITS] |= (1U << (index % BITS)))
games/battlestar/extern.h
44
#define ClearBit(array, index) (array[index/BITS] &= ~(1U << (index % BITS)))
games/hack/makedefs.c
107
index++;
games/hack/makedefs.c
121
printf("/* #define %s %d */\n", string, index);
games/hack/makedefs.c
123
printf("#define %s %d\n", string, index);
games/hack/makedefs.c
124
index++;
games/hack/makedefs.c
129
printf("#define NROFOBJECTS %d\n", index-1);
games/hack/makedefs.c
88
int index = 0;
games/hunt/huntd/draw.c
227
int index;
games/hunt/huntd/draw.c
239
index = y * sizeof Maze[0] + x;
games/hunt/huntd/draw.c
240
ch = ((char *) Maze)[index];
games/hunt/huntd/draw.c
241
if (ch != ((char *) pp->p_maze)[index]) {
games/hunt/huntd/draw.c
250
((char *) rpp->p_maze)[index] = ch;
games/sail/assorted.c
236
Write(W_UNGRAP, from, to->file->index, all, 0, 0);
games/sail/assorted.c
237
Write(W_UNGRAP, to, from->file->index, all, 0, 0);
games/sail/assorted.c
240
Write(W_UNFOUL, from, to->file->index, all, 0, 0);
games/sail/assorted.c
241
Write(W_UNFOUL, to, from->file->index, all, 0, 0);
games/sail/dr_1.c
136
int index, totalfrom = 0, totalto = 0;
games/sail/dr_1.c
164
index = fromstrength/10;
games/sail/dr_1.c
165
if (index > 8)
games/sail/dr_1.c
166
index = 8;
games/sail/dr_1.c
167
toinjured = MT[index][2 - die() / 3];
games/sail/dr_1.c
169
index = strengthto/10;
games/sail/dr_1.c
170
if (index > 8)
games/sail/dr_1.c
171
index = 8;
games/sail/dr_1.c
172
frominjured = MT[index][2 - die() / 3];
games/sail/dr_1.c
207
Write(W_CAPTURED, from, to->file->index, 0, 0, 0);
games/sail/dr_1.c
271
int index, rakehim, sternrake;
games/sail/dr_1.c
343
index = guns;
games/sail/dr_1.c
345
index += car;
games/sail/dr_1.c
346
index = (index - 1) / 3;
games/sail/dr_1.c
347
index = index > 8 ? 8 : index;
games/sail/dr_1.c
349
hit = HDT[index][target-1];
games/sail/dr_1.c
351
hit = HDTrake[index][target-1];
games/sail/dr_1.c
354
hit += QUAL[index][capship(sp)->specs->qual - 1];
games/sail/dr_1.c
357
if (index <= 5)
games/sail/dr_1.c
367
if (index <= 3)
games/sail/dr_1.c
373
if (index <= 1)
games/sail/dr_1.c
378
hit += AMMO[index][load - 1];
games/sail/dr_3.c
269
n, turn, to->file->index, sections);
games/sail/dr_4.c
59
Write(W_GRAP, from, to->file->index, 0, 0, 0);
games/sail/dr_4.c
60
Write(W_GRAP, to, from->file->index, 0, 0, 0);
games/sail/dr_main.c
67
sp->file->index = sp - SHIP(0);
games/sail/extern.h
183
int index;
games/sail/extern.h
68
#define grappled2(a, b) ((a)->file->grap[(b)->file->index].sn_count)
games/sail/extern.h
69
#define fouled2(a, b) ((a)->file->foul[(b)->file->index].sn_count)
games/sail/extern.h
72
#define Xgrappled2(a, b) ((a)->file->grap[(b)->file->index].sn_turn < turn-1 ? grappled2(a, b) : 0)
games/sail/extern.h
73
#define Xfouled2(a, b) ((a)->file->foul[(b)->file->index].sn_turn < turn-1 ? fouled2(a, b) : 0)
games/sail/misc.c
229
log[NLOG-1].l_shipnum = s->file->index;
games/sail/pl_3.c
133
index = guns;
games/sail/pl_3.c
135
index += car;
games/sail/pl_3.c
136
index = (index - 1)/3;
games/sail/pl_3.c
137
index = index > 8 ? 8 : index;
games/sail/pl_3.c
139
hit = HDT[index][target-1];
games/sail/pl_3.c
141
hit = HDTrake[index][target-1];
games/sail/pl_3.c
144
hit += QUAL[index][mc->qual-1];
games/sail/pl_3.c
147
if (index <= 5)
games/sail/pl_3.c
153
if (index <= 3)
games/sail/pl_3.c
159
if (index <= 1)
games/sail/pl_3.c
164
hit += AMMO[index][load - 1];
games/sail/pl_3.c
229
Write(W_GRAP, ms, sp->file->index, 0, 0, 0);
games/sail/pl_3.c
46
int index, rakehim, sternrake;
games/sail/pl_5.c
223
j, turn, to->file->index, men);
games/sail/pl_main.c
131
sp->file->index,
games/sail/pl_main.c
90
sp->file->index = sp - SHIP(0);
games/sail/sync.c
177
type, ship->file->index, a, b, c, d);
games/sail/sync.c
191
type, ship->file->index, a);
include/strings.h
68
char *index(const char *, int);
lib/libagentx/agentx.c
2675
uint16_t error = 0, index = 0;
lib/libagentx/agentx.c
2709
index = j + 1;
lib/libagentx/agentx.c
2740
axg->axg_packetid, 0, error, index, vbl, nvarbind) == -1) {
lib/libagentx/agentx.c
2755
struct agentx_varbind_index *index;
lib/libagentx/agentx.c
2768
index = &(axv->axv_index[j]);
lib/libagentx/agentx.c
2773
free(index->axv_idata.avb_ostring.aos_string);
lib/libagentx/agentx.c
2789
struct agentx_varbind_index *index;
lib/libagentx/agentx.c
2888
index = &(axv->axv_index[i]);
lib/libagentx/agentx.c
2889
index->axv_axi = axo->axo_index[i];
lib/libagentx/agentx.c
2890
data = &(index->axv_idata);
lib/libagentx/agentx.c
2895
if (index->axv_axi->axi_type != AXI_TYPE_DYNAMIC) {
lib/libagentx/agentx.c
2896
index->axv_idata.avb_int32 =
lib/libagentx/agentx.c
2897
index->axv_axi->axi_vb.avb_data.avb_int32;
lib/libagentx/agentx.c
2899
if ((uint32_t)index->axv_idata.avb_int32 >
lib/libagentx/agentx.c
2902
else if ((uint32_t)index->axv_idata.avb_int32 <
lib/libagentx/agentx.c
2907
index->axv_idata.avb_int32 = INT32_MAX;
lib/libagentx/agentx.c
2909
index->axv_idata.avb_int32 = 0;
lib/libagentx/agentx.c
2912
index->axv_idata.avb_int32 = INT32_MAX;
lib/libagentx/agentx.c
2915
index->axv_idata.avb_int32 =
lib/libagentx/agentx.c
2929
if (agentx_object_implied(axo, index->axv_axi))
lib/libagentx/agentx.c
2975
if (agentx_object_implied(axo, index->axv_axi))
lib/libagentx/agentx.c
3442
struct agentx_varbind_index *index;
lib/libagentx/agentx.c
3460
index = &(axv->axv_index[i]);
lib/libagentx/agentx.c
3461
vb = &(index->axv_axi->axi_vb);
lib/libagentx/agentx.c
3464
free(index->axv_idata.avb_ostring.aos_string);
lib/libagentx/agentx.c
3530
struct agentx_varbind_index *index;
lib/libagentx/agentx.c
3547
index = &(axv->axv_index[i]);
lib/libagentx/agentx.c
3548
*slen = index->axv_idata.avb_ostring.aos_slen;
lib/libagentx/agentx.c
3550
return index->axv_idata.avb_ostring.aos_string;
lib/libagentx/agentx.c
3569
struct agentx_varbind_index *index;
lib/libagentx/agentx.c
3586
index = &(axv->axv_index[i]);
lib/libagentx/agentx.c
3587
*oidlen = index->axv_idata.avb_oid.aoi_idlen;
lib/libagentx/agentx.c
3589
return index->axv_idata.avb_oid.aoi_id;
lib/libagentx/agentx.c
3609
struct agentx_varbind_index *index;
lib/libagentx/agentx.c
3624
index = &(axv->axv_index[i]);
lib/libagentx/agentx.c
3625
if (index->axv_idata.avb_ostring.aos_string == NULL)
lib/libagentx/agentx.c
3628
index->axv_idata.avb_ostring.aos_string;
lib/libagentx/ax.c
556
uint32_t packetid, uint32_t sysuptime, uint16_t error, uint16_t index,
lib/libagentx/ax.c
565
ax_pdu_add_uint16(ax, index) == -1)
lib/libc/db/btree/bt_delete.c
102
status = __bt_dleaf(t, NULL, h, c->pg.index);
lib/libc/db/btree/bt_delete.c
178
if (parent->index != NEXTINDEX(h) - 1) {
lib/libc/db/btree/bt_delete.c
179
idx = parent->index + 1;
lib/libc/db/btree/bt_delete.c
233
if (parent->index != 0) {
lib/libc/db/btree/bt_delete.c
234
idx = parent->index - 1;
lib/libc/db/btree/bt_delete.c
303
if (__bt_dleaf(t, key, h, e->index)) {
lib/libc/db/btree/bt_delete.c
316
} while (e->index < NEXTINDEX(h) && __bt_cmp(t, key, e) == 0);
lib/libc/db/btree/bt_delete.c
319
if (e->index == NEXTINDEX(h))
lib/libc/db/btree/bt_delete.c
323
while (e->index-- > 0) {
lib/libc/db/btree/bt_delete.c
326
if (__bt_dleaf(t, key, h, e->index) == RET_ERROR) {
lib/libc/db/btree/bt_delete.c
330
if (e->index == 0)
lib/libc/db/btree/bt_delete.c
390
idx = parent->index;
lib/libc/db/btree/bt_delete.c
469
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index == idx &&
lib/libc/db/btree/bt_delete.c
499
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.index;
lib/libc/db/btree/bt_delete.c
542
e.index = idx;
lib/libc/db/btree/bt_delete.c
552
e.index = idx - 1;
lib/libc/db/btree/bt_delete.c
561
e.index = idx + 1;
lib/libc/db/btree/bt_delete.c
572
e.index = NEXTINDEX(pg) - 1;
lib/libc/db/btree/bt_delete.c
584
e.index = 0;
lib/libc/db/btree/bt_delete.c
589
c->pg.index = e.index;
lib/libc/db/btree/bt_delete.c
596
e.index = idx;
lib/libc/db/btree/bt_put.c
148
idx = t->bt_cursor.pg.index;
lib/libc/db/btree/bt_put.c
160
idx = e->index;
lib/libc/db/btree/bt_put.c
215
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= idx)
lib/libc/db/btree/bt_put.c
216
++t->bt_cursor.pg.index;
lib/libc/db/btree/bt_put.c
222
t->bt_last.index = idx;
lib/libc/db/btree/bt_put.c
228
t->bt_last.index = 0;
lib/libc/db/btree/bt_put.c
238
__bt_setcur(t, e->page->pgno, e->index);
lib/libc/db/btree/bt_put.c
270
t->bt_cur.index = t->bt_last.index;
lib/libc/db/btree/bt_put.c
283
if (t->bt_cur.index != NEXTINDEX(h) - 1)
lib/libc/db/btree/bt_put.c
287
t->bt_last.index = cmp ? ++t->bt_cur.index : t->bt_cur.index;
lib/libc/db/btree/bt_put.c
291
if (t->bt_cur.index != 0)
lib/libc/db/btree/bt_put.c
295
t->bt_last.index = 0;
lib/libc/db/btree/bt_search.c
109
t->bt_cur.index = base;
lib/libc/db/btree/bt_search.c
152
e.index = 0;
lib/libc/db/btree/bt_search.c
187
e.index = NEXTINDEX(e.page) - 1;
lib/libc/db/btree/bt_search.c
75
t->bt_cur.index = idx = base + (lim >> 1);
lib/libc/db/btree/bt_seq.c
109
__bt_setcur(t, e.page->pgno, e.index);
lib/libc/db/btree/bt_seq.c
184
ep->index = 0;
lib/libc/db/btree/bt_seq.c
206
ep->index = NEXTINDEX(h) - 1;
lib/libc/db/btree/bt_seq.c
269
idx = c->pg.index;
lib/libc/db/btree/bt_seq.c
289
ep->index = c->pg.index;
lib/libc/db/btree/bt_seq.c
292
idx = c->pg.index;
lib/libc/db/btree/bt_seq.c
307
ep->index = idx;
lib/libc/db/btree/bt_seq.c
360
save.index = ep->index;
lib/libc/db/btree/bt_seq.c
367
if (ep->index == 0) {
lib/libc/db/btree/bt_seq.c
380
ep->index = NEXTINDEX(h);
lib/libc/db/btree/bt_seq.c
382
--ep->index;
lib/libc/db/btree/bt_seq.c
398
if (ep->index == NEXTINDEX(ep->page)) {
lib/libc/db/btree/bt_seq.c
406
ep->index = 0;
lib/libc/db/btree/bt_seq.c
435
t->bt_cursor.pg.index = idx;
lib/libc/db/btree/bt_split.c
152
skip = parent->index + 1;
lib/libc/db/btree/bt_split.c
682
if (c->pg.index >= skip)
lib/libc/db/btree/bt_split.c
683
++c->pg.index;
lib/libc/db/btree/bt_split.c
684
if (c->pg.index < nxt) /* Left page. */
lib/libc/db/btree/bt_split.c
688
c->pg.index -= nxt;
lib/libc/db/btree/bt_utils.c
156
if (e->index == 0 && h->prevpg == P_INVALID && !(h->flags & P_BLEAF))
lib/libc/db/btree/bt_utils.c
161
bl = GETBLEAF(h, e->index);
lib/libc/db/btree/bt_utils.c
169
bi = GETBINTERNAL(h, e->index);
lib/libc/db/btree/bt_utils.c
66
bl = GETBLEAF(e->page, e->index);
lib/libc/db/btree/btree.h
241
indx_t index; /* the index on the page */
lib/libc/db/btree/btree.h
246
indx_t index; /* the index on the page */
lib/libc/db/btree/btree.h
314
t->bt_sp->index = i; \
lib/libc/db/recno/rec_delete.c
123
status = __rec_dleaf(t, h, e->index);
lib/libc/db/recno/rec_put.c
216
idx = e->index;
lib/libc/db/recno/rec_search.c
110
--GETRINTERNAL(h, parent->index)->nrecs;
lib/libc/db/recno/rec_search.c
112
++GETRINTERNAL(h, parent->index)->nrecs;
lib/libc/db/recno/rec_search.c
75
t->bt_cur.index = recno - total;
lib/libc/db/recno/rec_utils.c
82
rl = GETRLEAF(e->page, e->index);
lib/libc/gen/auth_subr.c
1044
for (s = as->spool + as->index; as->index < sizeof(as->spool) - 1; ) {
lib/libc/gen/auth_subr.c
1045
r = read(fd, as->spool + as->index,
lib/libc/gen/auth_subr.c
1046
sizeof(as->spool) - as->index);
lib/libc/gen/auth_subr.c
1048
as->spool[as->index] = '\0';
lib/libc/gen/auth_subr.c
1051
b = as->spool + as->index;
lib/libc/gen/auth_subr.c
1052
as->index += r;
lib/libc/gen/auth_subr.c
109
int index; /* how much returned thus far */
lib/libc/gen/auth_subr.c
242
as->index = 0;
lib/libc/gen/auth_subr.c
325
as->index = 0; /* toss our data */
lib/libc/gen/auth_subr.c
343
for (line = as->spool; line < as->spool + as->index;) {
lib/libc/gen/auth_subr.c
395
for (line = as->spool; line < as->spool + as->index;) {
lib/libc/gen/auth_subr.c
672
for (line = as->spool; line < as->spool + as->index;) {
lib/libc/gen/auth_subr.c
898
as->index = 0;
lib/libc/gen/auth_subr.c
919
for (line = as->spool; line < as->spool + as->index;) {
lib/libc/hidden/string.h
32
PROTO_DEPRECATED(index);
lib/libc/net/getifaddrs.c
104
index = ifm->ifm_index;
lib/libc/net/getifaddrs.c
118
index = 0;
lib/libc/net/getifaddrs.c
123
if (index && ifam->ifam_index != index)
lib/libc/net/getifaddrs.c
127
if (index == 0 || (ifam->ifam_addrs & RTA_MASKS) == 0)
lib/libc/net/getifaddrs.c
187
index = 0;
lib/libc/net/getifaddrs.c
196
index = ifm->ifm_index;
lib/libc/net/getifaddrs.c
225
index = 0;
lib/libc/net/getifaddrs.c
230
if (index && ifam->ifam_index != index)
lib/libc/net/getifaddrs.c
233
if (index == 0 || (ifam->ifam_addrs & RTA_MASKS) == 0)
lib/libc/net/getifaddrs.c
65
u_short index = 0;
lib/libc/net/if_nametoindex.c
60
unsigned int index;
lib/libc/net/if_nametoindex.c
67
index = ifni2->if_index;
lib/libc/net/if_nametoindex.c
69
return index;
lib/libc/nls/catopen.c
221
int hdr_offset, i, index, j, msgs, nmsgs, nsets, off, txt_offset;
lib/libc/nls/catopen.c
253
index = ntohl(set[i].__index);
lib/libc/nls/catopen.c
256
if (index < 0 || nmsgs < 1)
lib/libc/nls/catopen.c
259
if (INT_MAX - nmsgs < index)
lib/libc/nls/catopen.c
261
msgs = index + nmsgs;
lib/libc/nls/catopen.c
268
for (j = index; j < nmsgs; j++) {
lib/libc/softfloat/softfloat-macros.h
532
int8 index;
lib/libc/softfloat/softfloat-macros.h
535
index = ( a>>27 ) & 15;
lib/libc/softfloat/softfloat-macros.h
537
z = 0x4000 + ( a>>17 ) - sqrtOddAdjustments[ index ];
lib/libc/softfloat/softfloat-macros.h
542
z = 0x8000 + ( a>>17 ) - sqrtEvenAdjustments[ index ];
lib/libc/stdlib/malloc.c
2387
print_chunk_details(struct dir_info *pool, void *p, size_t sz, size_t index)
lib/libc/stdlib/malloc.c
2418
p, index * sizeof(uint64_t), (index + 1) * sizeof(uint64_t) - 1,
lib/libc/stdlib/malloc.c
625
size_t index = hash(q) & mask;
lib/libc/stdlib/malloc.c
627
while (p[index].p != NULL) {
lib/libc/stdlib/malloc.c
628
index = (index - 1) & mask;
lib/libc/stdlib/malloc.c
631
p[index] = d->r[i];
lib/libc/stdlib/malloc.c
654
size_t index;
lib/libc/stdlib/malloc.c
663
index = hash(p) & mask;
lib/libc/stdlib/malloc.c
664
q = d->r[index].p;
lib/libc/stdlib/malloc.c
667
index = (index - 1) & mask;
lib/libc/stdlib/malloc.c
668
q = d->r[index].p;
lib/libc/stdlib/malloc.c
671
d->r[index].p = p;
lib/libc/stdlib/malloc.c
672
d->r[index].size = sz;
lib/libc/stdlib/malloc.c
673
STATS_SETF(&d->r[index], f);
lib/libc/stdlib/malloc.c
681
size_t index;
lib/libc/stdlib/malloc.c
691
index = hash(p) & mask;
lib/libc/stdlib/malloc.c
692
r = d->r[index].p;
lib/libc/stdlib/malloc.c
695
index = (index - 1) & mask;
lib/libc/stdlib/malloc.c
696
r = d->r[index].p;
lib/libc/stdlib/malloc.c
699
return (q == p && r != NULL) ? &d->r[index] : NULL;
lib/libc/string/strchr.c
33
__weak_alias(index, strchr);
lib/libcbor/src/cbor/arrays.c
22
cbor_item_t *cbor_array_get(const cbor_item_t *item, size_t index) {
lib/libcbor/src/cbor/arrays.c
23
return cbor_incref(((cbor_item_t **)item->data)[index]);
lib/libcbor/src/cbor/arrays.c
26
bool cbor_array_set(cbor_item_t *item, size_t index, cbor_item_t *value) {
lib/libcbor/src/cbor/arrays.c
27
if (index == item->metadata.array_metadata.end_ptr) {
lib/libcbor/src/cbor/arrays.c
29
} else if (index < item->metadata.array_metadata.end_ptr) {
lib/libcbor/src/cbor/arrays.c
30
return cbor_array_replace(item, index, value);
lib/libcbor/src/cbor/arrays.c
36
bool cbor_array_replace(cbor_item_t *item, size_t index, cbor_item_t *value) {
lib/libcbor/src/cbor/arrays.c
37
if (index >= item->metadata.array_metadata.end_ptr) return false;
lib/libcbor/src/cbor/arrays.c
39
cbor_intermediate_decref(((cbor_item_t **)item->data)[index]);
lib/libcbor/src/cbor/arrays.c
40
((cbor_item_t **)item->data)[index] = cbor_incref(value);
lib/libcbor/src/cbor/arrays.h
41
CBOR_EXPORT cbor_item_t* cbor_array_get(const cbor_item_t* item, size_t index);
lib/libcbor/src/cbor/arrays.h
54
CBOR_EXPORT bool cbor_array_set(cbor_item_t* item, size_t index,
lib/libcbor/src/cbor/arrays.h
67
CBOR_EXPORT bool cbor_array_replace(cbor_item_t* item, size_t index,
lib/libcrypto/bio/bio_lib.c
123
int index;
lib/libcrypto/bio/bio_lib.c
126
index = CRYPTO_add(&bio_type_index, 1, CRYPTO_LOCK_BIO);
lib/libcrypto/bio/bio_lib.c
127
if (index > 255)
lib/libcrypto/bio/bio_lib.c
130
return index;
lib/libcrypto/bn/bn_ctx.c
122
if (bctx->index == bctx->len) {
lib/libcrypto/bn/bn_ctx.c
130
if ((bn = bctx->bignums[bctx->index]) == NULL) {
lib/libcrypto/bn/bn_ctx.c
136
bctx->bignums[bctx->index] = bn;
lib/libcrypto/bn/bn_ctx.c
138
bctx->groups[bctx->index] = bctx->group;
lib/libcrypto/bn/bn_ctx.c
139
bctx->index++;
lib/libcrypto/bn/bn_ctx.c
153
while (bctx->index > 0 && bctx->groups[bctx->index - 1] == bctx->group) {
lib/libcrypto/bn/bn_ctx.c
154
BN_zero(bctx->bignums[bctx->index - 1]);
lib/libcrypto/bn/bn_ctx.c
155
bctx->groups[bctx->index - 1] = 0;
lib/libcrypto/bn/bn_ctx.c
156
bctx->index--;
lib/libcrypto/bn/bn_ctx.c
32
size_t index;
lib/libcrypto/crypto_ex_data.c
121
if ((index = calloc(1, sizeof(*index))) == NULL)
lib/libcrypto/crypto_ex_data.c
124
index->new_func = new_func;
lib/libcrypto/crypto_ex_data.c
125
index->dup_func = dup_func;
lib/libcrypto/crypto_ex_data.c
126
index->free_func = free_func;
lib/libcrypto/crypto_ex_data.c
128
index->argl = argl;
lib/libcrypto/crypto_ex_data.c
129
index->argp = argp;
lib/libcrypto/crypto_ex_data.c
134
class->indexes[idx] = index;
lib/libcrypto/crypto_ex_data.c
135
index = NULL;
lib/libcrypto/crypto_ex_data.c
145
free(index);
lib/libcrypto/crypto_ex_data.c
229
struct crypto_ex_data_index *index;
lib/libcrypto/crypto_ex_data.c
251
if ((index = class->indexes[i]) == NULL)
lib/libcrypto/crypto_ex_data.c
253
if (index->new_func == NULL)
lib/libcrypto/crypto_ex_data.c
255
if (!index->new_func(parent, NULL, exdata, i, index->argl,
lib/libcrypto/crypto_ex_data.c
256
index->argp))
lib/libcrypto/crypto_ex_data.c
275
struct crypto_ex_data_index *index;
lib/libcrypto/crypto_ex_data.c
313
if ((index = class->indexes[i]) == NULL)
lib/libcrypto/crypto_ex_data.c
318
if (index->dup_func != NULL) {
lib/libcrypto/crypto_ex_data.c
319
if (!index->dup_func(dst, src, &val, i, index->argl,
lib/libcrypto/crypto_ex_data.c
320
index->argp))
lib/libcrypto/crypto_ex_data.c
344
struct crypto_ex_data_index *index;
lib/libcrypto/crypto_ex_data.c
366
if ((index = class->indexes[i]) == NULL)
lib/libcrypto/crypto_ex_data.c
368
if (index->free_func == NULL)
lib/libcrypto/crypto_ex_data.c
370
index->free_func(parent, ced->slots[i], exdata, i, index->argl,
lib/libcrypto/crypto_ex_data.c
371
index->argp);
lib/libcrypto/crypto_ex_data.c
92
struct crypto_ex_data_index *index = NULL;
lib/libcrypto/curve25519/curve25519.c
1226
signed char index = 0;
lib/libcrypto/curve25519/curve25519.c
1230
index |= (bit << j);
lib/libcrypto/curve25519/curve25519.c
1237
cmov(&e, &multiples[j-1], equal(index, j));
lib/libcrypto/curve25519/curve25519.c
3593
uint8_t index = scalar[31 - i/8];
lib/libcrypto/curve25519/curve25519.c
3594
index >>= 4 - (i & 4);
lib/libcrypto/curve25519/curve25519.c
3595
index &= 0xf;
lib/libcrypto/curve25519/curve25519.c
3601
cmov_cached(&selected, &Ai[j], equal(j, index));
lib/libcrypto/txt_db/txt_db.c
100
ret->index[i] = NULL;
lib/libcrypto/txt_db/txt_db.c
179
free(ret->index);
lib/libcrypto/txt_db/txt_db.c
199
lh = db->index[idx];
lib/libcrypto/txt_db/txt_db.c
240
if (db->index[field] != NULL)
lib/libcrypto/txt_db/txt_db.c
241
lh_OPENSSL_STRING_free(db->index[field]);
lib/libcrypto/txt_db/txt_db.c
242
db->index[field] = idx;
lib/libcrypto/txt_db/txt_db.c
306
if (db->index[i] != NULL) {
lib/libcrypto/txt_db/txt_db.c
309
r = lh_OPENSSL_STRING_retrieve(db->index[i], row);
lib/libcrypto/txt_db/txt_db.c
325
if (db->index[i] != NULL) {
lib/libcrypto/txt_db/txt_db.c
328
(void)lh_OPENSSL_STRING_insert(db->index[i], row);
lib/libcrypto/txt_db/txt_db.c
347
if (db->index != NULL) {
lib/libcrypto/txt_db/txt_db.c
349
if (db->index[i] != NULL)
lib/libcrypto/txt_db/txt_db.c
350
lh_OPENSSL_STRING_free(db->index[i]);
lib/libcrypto/txt_db/txt_db.c
351
free(db->index);
lib/libcrypto/txt_db/txt_db.c
91
ret->index = NULL;
lib/libcrypto/txt_db/txt_db.c
95
if ((ret->index = reallocarray(NULL, num, sizeof(*ret->index))) == NULL)
lib/libcrypto/txt_db/txt_db.h
87
LHASH_OF(OPENSSL_STRING) **index;
lib/libcrypto/x509/x509_addr.c
518
int index;
lib/libcrypto/x509/x509_addr.c
522
if ((index = sk_IPAddressFamily_find(parent, child_af)) < 0)
lib/libcrypto/x509/x509_addr.c
525
return sk_IPAddressFamily_value(parent, index);
lib/libcurses/term_entry.h
62
#define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i]
lib/libcurses/term_entry.h
67
#define EXT_NAMES(tp,i,limit,index,table) table[i]
lib/libelf/elf_scn.c
132
elf_getscn(Elf *e, size_t index)
lib/libelf/elf_scn.c
153
if (s->s_ndx == index)
lib/libelf/gelf_phdr.c
49
gelf_getphdr(Elf *e, int index, GElf_Phdr *d)
lib/libelf/gelf_phdr.c
60
(e->e_kind != ELF_K_ELF) || index < 0 ||
lib/libelf/gelf_phdr.c
66
if ((size_t)index >= phnum) {
lib/libelf/gelf_phdr.c
76
ep32 += index;
lib/libelf/gelf_phdr.c
92
ep64 += index;
lib/libexpat/tests/handlers.c
1731
_handler_record_get(const struct handler_record_list *storage, int index,
lib/libexpat/tests/handlers.c
1733
if (storage->count <= index) {
lib/libexpat/tests/handlers.c
1736
return &storage->entries[index];
lib/libexpat/tests/handlers.h
511
_handler_record_get(const struct handler_record_list *storage, int index,
lib/libexpat/tests/handlers.h
514
# define handler_record_get(storage, index) \
lib/libexpat/tests/handlers.h
515
_handler_record_get((storage), (index), __FILE__, __LINE__)
lib/libexpat/tests/handlers.h
517
# define assert_record_handler_called(storage, index, expected_name, \
lib/libexpat/tests/handlers.h
521
= handler_record_get(storage, index); \
lib/libform/fld_current.c
162
returnCode((field != 0 && field->form != 0) ? (int)field->index : -1);
lib/libform/form.h
104
short index; /* into form -> field */
lib/libform/frm_def.c
237
fields[j]->index = (short)j;
lib/libform/frm_def.c
243
form->page[page_nr].smin = fld->index;
lib/libform/frm_def.c
244
form->page[page_nr].smax = fld->sprev->index;
lib/libform/frm_driver.c
3302
FIELD **field_on_page = &form->field[field->index];
lib/libform/frm_driver.c
3342
FIELD **field = &form->field[proposed->index];
lib/libform/frm_driver.c
3385
FIELD **field_on_page = &form->field[field->index];
lib/libmenu/m_driver.c
131
idx = (*item)->index;
lib/libmenu/m_driver.c
176
if (!((idx == (*item)->index) && passed))
lib/libmenu/m_driver.c
342
if ((item->index + 1) >= menu->nitems)
lib/libmenu/m_driver.c
350
item = menu->items[item->index + 1];
lib/libmenu/m_driver.c
355
if (item->index <= 0)
lib/libmenu/m_driver.c
363
item = menu->items[item->index - 1];
lib/libmenu/m_driver.c
409
if ((item->index + 1) < menu->nitems)
lib/libmenu/m_driver.c
410
item = menu->items[item->index + 1];
lib/libmenu/m_driver.c
428
if (item->index)
lib/libmenu/m_driver.c
429
item = menu->items[item->index - 1];
lib/libmenu/m_global.c
154
(*item)->index = 0;
lib/libmenu/m_global.c
202
(*item)->index = (short)ItemCount++;
lib/libmenu/m_item_cur.c
113
returnCode((item && item->imenu) ? item->index : ERR);
lib/libmenu/menu.h
97
short index; /* Item number if connected to a menu */
lib/libpcap/gencode.c
2664
gen_load(int proto, struct arth *index, int size)
lib/libpcap/gencode.c
2670
free_reg(index->regno);
lib/libpcap/gencode.c
2693
s = xfer_to_x(index);
lib/libpcap/gencode.c
2696
sappend(index->s, s);
lib/libpcap/gencode.c
2714
sappend(s, xfer_to_a(index));
lib/libpcap/gencode.c
2718
s = xfer_to_x(index);
lib/libpcap/gencode.c
2723
sappend(index->s, s);
lib/libpcap/gencode.c
2726
if (index->b)
lib/libpcap/gencode.c
2727
gen_and(index->b, b);
lib/libpcap/gencode.c
2728
index->b = b;
lib/libpcap/gencode.c
2738
sappend(s, xfer_to_a(index));
lib/libpcap/gencode.c
2743
sappend(index->s, s);
lib/libpcap/gencode.c
2746
if (index->b)
lib/libpcap/gencode.c
2747
gen_and(index->b, b);
lib/libpcap/gencode.c
2751
index->b = b;
lib/libpcap/gencode.c
2759
index->regno = regno;
lib/libpcap/gencode.c
2762
sappend(index->s, s);
lib/libpcap/gencode.c
2764
return index;
lib/libsndio/sioctl_sun.c
103
return mi.index;
lib/libsndio/sioctl_sun.c
113
for (dev.index = 0; ; dev.index++) {
lib/libsndio/sioctl_sun.c
118
cls.index = dev.mixer_class;
lib/libsndio/sioctl_sun.c
124
vol->level_idx = dev.index;
lib/libsndio/sioctl_sun.c
89
for (mi.index = info->next; mi.index != -1; mi.index = mi.next) {
lib/libsndio/sioctl_sun.c
93
return mi.index;
lib/libsndio/sioctl_sun.c
98
for (mi.index = 0; ; mi.index++) {
lib/libssl/ssl_local.h
1409
int tls1_get_shared_group_by_index(const SSL *ssl, size_t index, int *out_nid);
lib/libssl/ssl_srvr.c
1054
size_t index = SSL3_RANDOM_SIZE - sizeof(tls13_downgrade_12);
lib/libssl/ssl_srvr.c
1055
uint8_t *magic = &s->s3->server_random[index];
lib/libssl/t1_lib.c
566
tls1_get_shared_group_by_index(const SSL *ssl, size_t index, int *out_nid)
lib/libssl/t1_lib.c
568
return tls1_group_by_index(ssl, index, out_nid,
libexec/ld.so/aarch64/rtld_machine.c
44
Elf_Addr _dl_bind(elf_object_t *object, int index);
libexec/ld.so/amd64/rtld_machine.c
311
_dl_bind(elf_object_t *object, int index)
libexec/ld.so/amd64/rtld_machine.c
323
rel = (Elf_RelA *)(object->Dyn.info[DT_JMPREL]) + index;
libexec/ld.so/i386/rtld_machine.c
314
_dl_bind(elf_object_t *object, int index)
libexec/ld.so/i386/rtld_machine.c
328
rel += index/sizeof(Elf_Rel);
libexec/ld.so/malloc.c
272
size_t index = hash(q) & mask;
libexec/ld.so/malloc.c
273
while (p[index].p != NULL) {
libexec/ld.so/malloc.c
274
index = (index - 1) & mask;
libexec/ld.so/malloc.c
276
p[index] = d->r[i];
libexec/ld.so/malloc.c
295
size_t index;
libexec/ld.so/malloc.c
304
index = hash(p) & mask;
libexec/ld.so/malloc.c
305
q = d->r[index].p;
libexec/ld.so/malloc.c
307
index = (index - 1) & mask;
libexec/ld.so/malloc.c
308
q = d->r[index].p;
libexec/ld.so/malloc.c
310
d->r[index].p = p;
libexec/ld.so/malloc.c
311
d->r[index].size = sz;
libexec/ld.so/malloc.c
319
size_t index;
libexec/ld.so/malloc.c
327
index = hash(p) & mask;
libexec/ld.so/malloc.c
328
r = d->r[index].p;
libexec/ld.so/malloc.c
331
index = (index - 1) & mask;
libexec/ld.so/malloc.c
332
r = d->r[index].p;
libexec/ld.so/malloc.c
335
return (q == p && r != NULL) ? &d->r[index] : NULL;
libexec/ld.so/resolve.h
258
Elf_Addr _dl_bind(elf_object_t *object, int index);
libexec/ld.so/riscv64/rtld_machine.c
45
Elf_Addr _dl_bind(elf_object_t *object, int index);
libexec/ld.so/sparc64/rtld_machine.c
577
_dl_bind(elf_object_t *object, int index)
libexec/ld.so/sparc64/rtld_machine.c
614
rela += index - 4;
libexec/ld.so/sparc64/rtld_machine.c
616
rela += index;
libexec/login_yubikey/yubikey.c
308
yubikey_keymap_decode(wchar_t *wpassword, char *token, int index)
libexec/login_yubikey/yubikey.c
314
if (wpassword[j] == keymaps[index][c]) {
libexec/login_yubikey/yubikey.c
328
yubikey_token_t out, int index)
libexec/login_yubikey/yubikey.c
335
if (index < 0 || index >= YUBIKEY_KEYMAP_COUNT)
libexec/login_yubikey/yubikey.c
362
if (yubikey_keymap_decode(pp, token, index)) {
libexec/login_yubikey/yubikey.h
65
const uint8_t key[YUBIKEY_KEY_SIZE], yubikey_token_t out, int index);
libexec/snmpd/snmpd_metrics/mib.c
1453
pl.index = PF_LIMIT_STATES;
libexec/snmpd/snmpd_metrics/mib.c
1455
pl.index = PF_LIMIT_SRC_NODES;
libexec/snmpd/snmpd_metrics/mib.c
1457
pl.index = PF_LIMIT_FRAGS;
libexec/snmpd/snmpd_metrics/mib.c
1459
pl.index = PF_LIMIT_TABLES;
libexec/snmpd/snmpd_metrics/mib.c
1461
pl.index = PF_LIMIT_TABLE_ENTRIES;
regress/lib/libc/popen/popen.c
51
int index, in;
regress/lib/libc/popen/popen.c
57
for (index=0; index<BUFSIZE; index++)
regress/lib/libc/popen/popen.c
58
buffer[index]=arc4random();
regress/lib/libc/popen/popen.c
76
index = 0;
regress/lib/libc/popen/popen.c
78
if (index == BUFSIZE) {
regress/lib/libc/popen/popen.c
83
if ((char)in != buffer[index++]) {
regress/lib/libc/popen/popen.c
88
if (index < BUFSIZE) {
regress/sys/dev/video/videotest.c
228
fmtdesc.index = 0;
regress/sys/dev/video/videotest.c
234
fmtdesc.index);
regress/sys/dev/video/videotest.c
236
fmtdesc.index++;
regress/sys/dev/video/videotest.c
245
test_ioctl_enum_fsizes(int fd, uint32_t pixelformat, int index)
regress/sys/dev/video/videotest.c
253
fsizes.index = 0;
regress/sys/dev/video/videotest.c
262
dev_fmts[index].pixelformat = pixelformat;
regress/sys/dev/video/videotest.c
263
dev_fmts[index].s[fsizes.index].width =
regress/sys/dev/video/videotest.c
265
dev_fmts[index].s[fsizes.index].height =
regress/sys/dev/video/videotest.c
269
fsizes.index++;
regress/sys/dev/video/videotest.c
496
buffer.index = i;
regress/sys/dev/video/videotest.c
514
buffer.index = i;
regress/sys/dev/video/videotest.c
554
memcpy(buf, fbuffer[buffer.index].buf, buffer.bytesused);
regress/usr.sbin/snmpd/agentx.c
2695
uint8_t flags, uint32_t packetid, enum error error, uint16_t index,
regress/usr.sbin/snmpd/agentx.c
2739
if (p16toh(header, u16) != index)
regress/usr.sbin/snmpd/agentx.c
2741
test, p16toh(header, u16), index);
regress/usr.sbin/snmpd/agentx.c
2894
agentx_response(int s, void *buf, enum error error, uint16_t index,
regress/usr.sbin/snmpd/agentx.c
2911
message_add_uint16(&msg, index);
regress/usr.sbin/snmpd/snmp.c
1136
int32_t requestid, int32_t error, int32_t index, struct varbind *varbindlist,
regress/usr.sbin/snmpd/snmp.c
1160
if (index != mindex)
regress/usr.sbin/snmpd/snmp.c
1162
__func__, mindex, index);
regress/usr.sbin/snmpd/snmp.c
236
int32_t requestid, int32_t error, int32_t index,
regress/usr.sbin/snmpd/snmp.c
244
snmp_pdu(request, requestid, error, index, varbindlist, nvarbind));
regress/usr.sbin/snmpd/snmp.c
253
int32_t requestid, int32_t error, int32_t index,
regress/usr.sbin/snmpd/snmp.c
264
message = snmpv2_build(community, request, requestid, error, index,
regress/usr.sbin/snmpd/snmp.c
288
int32_t requestid, int32_t error, int32_t index,
regress/usr.sbin/snmpd/snmp.c
300
requestid, error, index, varbindlist, nvarbind);
regress/usr.sbin/snmpd/snmp.c
361
int32_t error, int32_t index, struct varbind *varbindlist, size_t nvarbind)
regress/usr.sbin/snmpd/snmp.c
378
index, varbindlist, nvarbind));
regress/usr.sbin/snmpd/snmp.c
620
union securityparams *sp, int32_t requestid, int32_t error, int32_t index,
regress/usr.sbin/snmpd/snmp.c
630
snmp_pdu_validate(pdu, REQUEST_RESPONSE, requestid, error, index,
regress/usr.sbin/snmpd/snmp.c
653
int32_t index, struct varbind *varbindlist, size_t nvarbind)
regress/usr.sbin/snmpd/snmp.c
658
request, requestid, error, index,
sbin/atactl/atactl.c
1447
if (data->index == 0) {
sbin/atactl/atactl.c
1461
i = data->index - 1;
sbin/atactl/atactl.c
1477
if (data->index == 0) {
sbin/atactl/atactl.c
1482
i = data->index - 1;
sbin/atactl/atactl.c
1526
if (data->index == 0) {
sbin/atactl/atactl.c
1532
i = data->index - 1;
sbin/atactl/atasmart.h
166
u_int8_t index;
sbin/atactl/atasmart.h
176
u_int8_t index;
sbin/atactl/atasmart.h
202
u_int8_t index;
sbin/pfctl/pfctl.c
1554
pl.index = pf_limits[i].index;
sbin/pfctl/pfctl.c
1573
pl.index = pf_limits[i].index;
sbin/pfctl/pfctl.c
1590
pl.index = pf_limits[i].index;
sbin/pfctl/pfctl.c
197
int index;
sbin/pfctl/pfctl.c
2366
pl.index = pf_limits[PF_LIMIT_STATES].index;
sbin/pfctl/pfctl.c
2386
pf->limit[pf_limits[i].index] = limit;
sbin/pfctl/pfctl.c
2387
pf->limit_set[pf_limits[i].index] = 1;
sbin/pfctl/pfctl.c
2406
pfctl_load_limit(struct pfctl *pf, unsigned int index, unsigned int limit)
sbin/pfctl/pfctl.c
2412
pl.index = index;
sbin/pfctl/pfctl.c
2417
pf_limits[index].name, limit);
sbin/pfctl/pfctl.c
2420
pf_limits[index].name, limit);
sbin/pfctl/pfctl.c
3050
pf.limit_set[pf_limits[i].index] = 1;
sbin/pfctl/pfctl_parser.c
75
void print_bwspec(const char *index, struct pf_queue_bwspec *);
sbin/unwind/libunbound/services/authzone.c
1203
size_t index = 0;
sbin/unwind/libunbound/services/authzone.c
1207
if(packed_rrset_find_rr(rrset->data, rdata, rdatalen, &index)) {
sbin/unwind/libunbound/services/authzone.c
1229
if(!rrset_remove_rr(rrset, index))
sbin/unwind/libunbound/services/authzone.c
1237
if(!rrset_remove_rr(rrset, index))
sbin/unwind/libunbound/services/authzone.c
1250
&index)) {
sbin/unwind/libunbound/services/authzone.c
1255
if(!rrset_remove_rr(rrset, index))
sbin/unwind/libunbound/services/authzone.c
1839
size_t index, int scheme, int hashalgo)
sbin/unwind/libunbound/services/authzone.c
1847
if(index == j) {
sbin/unwind/libunbound/services/authzone.c
689
size_t* index)
sbin/unwind/libunbound/services/authzone.c
696
*index = i;
sbin/unwind/libunbound/services/authzone.c
733
rrset_remove_rr(struct auth_rrset* rrset, size_t index)
sbin/unwind/libunbound/services/authzone.c
737
if(index >= old->count + old->rrsig_count)
sbin/unwind/libunbound/services/authzone.c
741
old->rr_len[index]));
sbin/unwind/libunbound/services/authzone.c
749
if(index < d->count) d->count--;
sbin/unwind/libunbound/services/authzone.c
757
if(index > 0)
sbin/unwind/libunbound/services/authzone.c
758
memmove(d->rr_len, old->rr_len, (index)*sizeof(size_t));
sbin/unwind/libunbound/services/authzone.c
759
if(index+1 < old->count+old->rrsig_count)
sbin/unwind/libunbound/services/authzone.c
760
memmove(&d->rr_len[index], &old->rr_len[index+1],
sbin/unwind/libunbound/services/authzone.c
761
(old->count+old->rrsig_count - (index+1))*sizeof(size_t));
sbin/unwind/libunbound/services/authzone.c
765
if(index > 0)
sbin/unwind/libunbound/services/authzone.c
766
memmove(d->rr_ttl, old->rr_ttl, (index)*sizeof(time_t));
sbin/unwind/libunbound/services/authzone.c
767
if(index+1 < old->count+old->rrsig_count)
sbin/unwind/libunbound/services/authzone.c
768
memmove(&d->rr_ttl[index], &old->rr_ttl[index+1],
sbin/unwind/libunbound/services/authzone.c
769
(old->count+old->rrsig_count - (index+1))*sizeof(time_t));
sbin/unwind/libunbound/services/authzone.c
774
if(i < index) oldi = i;
sbin/unwind/libunbound/services/localzone.c
440
local_rrset_remove_rr(struct packed_rrset_data* pd, size_t index)
sbin/unwind/libunbound/services/localzone.c
443
if(index >= pd->count) {
sbin/unwind/libunbound/services/localzone.c
447
if(index + 1 < pd->count) {
sbin/unwind/libunbound/services/localzone.c
449
size_t nexti = index + 1;
sbin/unwind/libunbound/services/localzone.c
451
memmove(pd->rr_len+index, pd->rr_len+nexti, sizeof(*pd->rr_len)*num);
sbin/unwind/libunbound/services/localzone.c
452
memmove(pd->rr_ttl+index, pd->rr_ttl+nexti, sizeof(*pd->rr_ttl)*num);
sbin/unwind/libunbound/services/localzone.c
453
memmove(pd->rr_data+index, pd->rr_data+nexti, sizeof(*pd->rr_data)*num);
sbin/unwind/libunbound/services/localzone.h
536
local_rrset_remove_rr(struct packed_rrset_data* pd, size_t index);
sbin/unwind/libunbound/services/outside_network.c
1439
pif->out[pc->index] = pif->out[pif->inuse];
sbin/unwind/libunbound/services/outside_network.c
1440
pif->out[pc->index]->index = pc->index;
sbin/unwind/libunbound/services/outside_network.c
2187
pend->pc->index = pif->inuse;
sbin/unwind/libunbound/services/outside_network.h
237
int index;
sbin/unwind/libunbound/services/rpz.c
1293
size_t index;
sbin/unwind/libunbound/services/rpz.c
1305
if(packed_rrset_find_rr(d, rdata, rdatalen, &index)) {
sbin/unwind/libunbound/services/rpz.c
1312
if(!local_rrset_remove_rr(d, index))
sbin/unwind/libunbound/services/rpz.c
1334
size_t index;
sbin/unwind/libunbound/services/rpz.c
1342
if(packed_rrset_find_rr(d, rdata, rdatalen, &index)) {
sbin/unwind/libunbound/services/rpz.c
1350
if(!local_rrset_remove_rr(d, index))
sbin/unwind/libunbound/services/rpz.c
1457
size_t index;
sbin/unwind/libunbound/services/rpz.c
1462
if(!packed_rrset_find_rr(d, rdatawl, rdatalen, &index))
sbin/unwind/libunbound/services/rpz.c
1472
if(!local_rrset_remove_rr(d, index))
sbin/unwind/libunbound/sldns/rrdef.c
690
size_t index)
sbin/unwind/libunbound/sldns/rrdef.c
693
assert(index < descriptor->_maximum
sbin/unwind/libunbound/sldns/rrdef.c
695
if (index < descriptor->_maximum) {
sbin/unwind/libunbound/sldns/rrdef.c
696
return descriptor->_wireformat[index];
sbin/unwind/libunbound/util/data/packed_rrset.c
403
size_t* index)
sbin/unwind/libunbound/util/data/packed_rrset.c
410
*index = i;
sbin/unwind/libunbound/util/data/packed_rrset.h
474
size_t* index);
sbin/unwind/libunbound/validator/val_utils.c
1080
void val_reply_remove_auth(struct reply_info* rep, size_t index)
sbin/unwind/libunbound/validator/val_utils.c
1082
log_assert(index < rep->rrset_count);
sbin/unwind/libunbound/validator/val_utils.c
1083
log_assert(index >= rep->an_numrrsets);
sbin/unwind/libunbound/validator/val_utils.c
1084
log_assert(index < rep->an_numrrsets+rep->ns_numrrsets);
sbin/unwind/libunbound/validator/val_utils.c
1085
memmove(rep->rrsets+index, rep->rrsets+index+1,
sbin/unwind/libunbound/validator/val_utils.c
1087
(rep->rrset_count - index - 1));
sbin/unwind/libunbound/validator/val_utils.h
322
void val_reply_remove_auth(struct reply_info* rep, size_t index);
sbin/wsconsctl/display.c
283
display_next_device(int index)
sbin/wsconsctl/display.c
287
if (index > 7)
sbin/wsconsctl/display.c
290
snprintf(devname, sizeof(devname), "/dev/tty%c0", index + 'C');
sbin/wsconsctl/keyboard.c
250
keyboard_next_device(int index)
sbin/wsconsctl/keyboard.c
254
snprintf(devname, sizeof(devname), "/dev/wskbd%d", index);
sbin/wsconsctl/mouse.c
218
mouse_next_device(int index)
sbin/wsconsctl/mouse.c
222
snprintf(devname, sizeof(devname), "/dev/wsmouse%d", index);
sys/arch/alpha/alpha/db_disasm.c
81
unsigned index : 5,
sys/arch/alpha/alpha/db_disasm.c
984
p.mXpr_format.index);
sys/arch/amd64/amd64/db_disasm.c
1001
if (addrp->index)
sys/arch/amd64/amd64/db_disasm.c
1002
db_printf(",%s,%d", addrp->index, 1<<addrp->ss);
sys/arch/amd64/amd64/db_disasm.c
876
char * index;
sys/arch/amd64/amd64/db_disasm.c
938
int mod, rm, sib, index, disp, size;
sys/arch/amd64/amd64/db_disasm.c
950
addrp->index = 0;
sys/arch/amd64/amd64/db_disasm.c
955
index = sib_index(sib, rex);
sys/arch/amd64/amd64/db_disasm.c
956
if (index != 4)
sys/arch/amd64/amd64/db_disasm.c
957
addrp->index = db_reg[size][index];
sys/arch/amd64/amd64/db_disasm.c
997
if (addrp->base != 0 || addrp->index != 0) {
sys/arch/amd64/amd64/intr.c
181
int *index)
sys/arch/amd64/amd64/intr.c
224
*index = slot;
sys/arch/amd64/amd64/intr.c
233
struct cpu_info **cip, int *index, int *idt_slot)
sys/arch/amd64/amd64/intr.c
338
*index = slot;
sys/arch/amd64/amd64/pmap.c
1168
unsigned long index;
sys/arch/amd64/amd64/pmap.c
1175
index = pl_i(va, level + 1);
sys/arch/amd64/amd64/pmap.c
1176
pmap_pte_set(&normal_pdes[level - 1][index], 0);
sys/arch/amd64/amd64/pmap.c
1179
pmap_pte_set(&pmap->pm_pdir_intel[index], 0);
sys/arch/amd64/amd64/pmap.c
1181
"(va range start 0x%llx)\n", __func__, index,
sys/arch/amd64/amd64/pmap.c
1182
(uint64_t)(index << L4_SHIFT));
sys/arch/amd64/amd64/pmap.c
1186
pmap_tlb_shootpage(pmap, invaladdr + index * PAGE_SIZE,
sys/arch/amd64/amd64/pmap.c
1208
unsigned long index;
sys/arch/amd64/amd64/pmap.c
1227
index = pl_i(va, i);
sys/arch/amd64/amd64/pmap.c
1230
if (pmap_valid_entry(pva[index])) {
sys/arch/amd64/amd64/pmap.c
1231
ppa = pva[index] & pg_frame;
sys/arch/amd64/amd64/pmap.c
1247
pva[index] = (pd_entry_t) (pa | PG_u | PG_RW | PG_V | pg_crypt);
sys/arch/amd64/amd64/pmap.c
1257
pva_intel[index] = pva[index];
sys/arch/amd64/amd64/pmap.c
1259
"from 0x%llx -> 0x%llx\n", __func__, pva[index],
sys/arch/amd64/amd64/pmap.c
1260
(uint64_t)&pva[index], (uint64_t)&pva_intel[index]);
sys/arch/amd64/amd64/pmap.c
1544
unsigned long index;
sys/arch/amd64/amd64/pmap.c
1548
index = pl_i(va, i);
sys/arch/amd64/amd64/pmap.c
1549
pde = normal_pdes[i - 2][index];
sys/arch/amd64/amd64/pmap.c
3012
unsigned long index, endindex;
sys/arch/amd64/amd64/pmap.c
3022
index = pl_i(kva, level);
sys/arch/amd64/amd64/pmap.c
3023
endindex = index + needed_ptps[level - 1];
sys/arch/amd64/amd64/pmap.c
3028
index++;
sys/arch/amd64/amd64/pmap.c
3032
for (i = index; i <= endindex; i++) {
sys/arch/arm64/dev/acpipci.c
545
uint64_t addr, pin, source, index;
sys/arch/arm64/dev/acpipci.c
587
index = val->v_package[3]->v_integer;
sys/arch/arm64/dev/acpipci.c
590
index = acpipci_intr_link(sc, node, val->v_package[2]);
sys/arch/arm64/dev/acpipci.c
592
if (source != 0 || index == -1)
sys/arch/arm64/dev/acpipci.c
597
ihp->ih_intrpin = index;
sys/arch/armv7/exynos/ec_commands.h
1223
uint8_t index;
sys/arch/armv7/exynos/ec_commands.h
1233
uint8_t index;
sys/arch/armv7/exynos/ec_commands.h
890
uint8_t index;
sys/arch/armv7/exynos/ec_commands.h
904
uint8_t index;
sys/arch/armv7/marvell/mvmbus.c
397
win->index = i;
sys/arch/armv7/marvell/mvmbusvar.h
24
uint8_t index;
sys/arch/hppa/gsc/harmony.c
688
switch (dip->index) {
sys/arch/i386/i386/db_disasm.c
841
char * index;
sys/arch/i386/i386/db_disasm.c
897
int mod, rm, sib, index, disp;
sys/arch/i386/i386/db_disasm.c
908
addrp->index = 0;
sys/arch/i386/i386/db_disasm.c
911
addrp->index = 0;
sys/arch/i386/i386/db_disasm.c
940
index = sib_index(sib);
sys/arch/i386/i386/db_disasm.c
941
if (index != 4)
sys/arch/i386/i386/db_disasm.c
942
addrp->index = db_reg[LONG][index];
sys/arch/i386/i386/db_disasm.c
983
if (addrp->base != 0 || addrp->index != 0) {
sys/arch/i386/i386/db_disasm.c
987
if (addrp->index)
sys/arch/i386/i386/db_disasm.c
988
db_printf(",%s,%d", addrp->index, 1<<addrp->ss);
sys/arch/i386/i386/esm.c
500
req.index = dev;
sys/arch/i386/i386/esm.c
517
printf(" index: %.2x\n", resp.devmap[0].index);
sys/arch/i386/i386/esm.c
844
req.h_dev = devmap->index;
sys/arch/i386/i386/esm.c
857
DEVNAME(sc), devmap->index, i, sensor_map[i].name,
sys/arch/i386/i386/esm.c
876
es->es_dev = devmap->index;
sys/arch/i386/i386/esm.c
962
req.h_dev = devmap->index;
sys/arch/i386/i386/esm.c
974
DEVNAME(sc), devmap->index, es->es_id, thr->t_lo_fail,
sys/arch/i386/i386/esmreg.h
114
u_int8_t index;
sys/arch/i386/i386/esmreg.h
131
u_int8_t index;
sys/arch/i386/i386/powernow.c
100
k6_multipliers[index].magic << 5;
sys/arch/i386/i386/powernow.c
89
int index;
sys/arch/i386/i386/powernow.c
91
index = level * k6_maxindex / 100;
sys/arch/i386/isa/ahc_isa.c
112
#define AHC_ISA_PRIMING_VID(index) (AHC_ISA_VID + (index))
sys/arch/i386/isa/ahc_isa.c
113
#define AHC_ISA_PRIMING_PID(index) (AHC_ISA_PID + (index))
sys/arch/loongson/dev/glx.c
298
int index;
sys/arch/loongson/dev/glx.c
331
index = (reg - PCI_MAPREG_START) / 4;
sys/arch/loongson/dev/glx.c
332
if (pcib_bar_msr[index] == 0)
sys/arch/loongson/dev/glx.c
335
data = pcib_bar_values[index];
sys/arch/loongson/dev/glx.c
339
data = (pcireg_t)rdmsr(pcib_bar_msr[index]);
sys/arch/loongson/dev/glx.c
340
data &= ~(pcib_bar_sizes[index] - 1);
sys/arch/loongson/dev/glx.c
361
int index;
sys/arch/loongson/dev/glx.c
365
for (index = 0; index < nitems(pcib_bar_msr); index++) {
sys/arch/loongson/dev/glx.c
366
if (pcib_bar_msr[index] == 0)
sys/arch/loongson/dev/glx.c
368
msr = rdmsr(pcib_bar_msr[index]);
sys/arch/loongson/dev/glx.c
373
wrmsr(pcib_bar_msr[index], msr);
sys/arch/loongson/dev/glx.c
395
index = (reg - PCI_MAPREG_START) / 4;
sys/arch/loongson/dev/glx.c
397
pcib_bar_values[index] = data;
sys/arch/loongson/dev/glx.c
398
} else if (pcib_bar_msr[index] != 0) {
sys/arch/loongson/dev/glx.c
402
data &= ~(pcib_bar_sizes[index] - 1);
sys/arch/loongson/dev/glx.c
403
wrmsr(pcib_bar_msr[index],
sys/arch/loongson/dev/glx.c
406
wrmsr(pcib_bar_msr[index], 0UL);
sys/arch/loongson/dev/glx.c
408
pcib_bar_values[index] = 0;
sys/arch/loongson/dev/sisfb.c
322
sisfb_loadcmap(fb, cm->index, cm->count);
sys/arch/loongson/dev/sisfb.c
516
uint index = cm->index, count = cm->count, i;
sys/arch/loongson/dev/sisfb.c
520
if (index >= 256 || count > 256 - index)
sys/arch/loongson/dev/sisfb.c
523
index *= 3;
sys/arch/loongson/dev/sisfb.c
525
src = cmap + index;
sys/arch/loongson/dev/sisfb.c
533
src = cmap + index + 1;
sys/arch/loongson/dev/sisfb.c
541
src = cmap + index + 2;
sys/arch/loongson/dev/sisfb.c
555
uint index = cm->index, count = cm->count, i;
sys/arch/loongson/dev/sisfb.c
559
if (index >= 256 || count > 256 - index)
sys/arch/loongson/dev/sisfb.c
562
index *= 3;
sys/arch/loongson/dev/sisfb.c
567
dst = cmap + index;
sys/arch/loongson/dev/sisfb.c
575
dst = cmap + index + 1;
sys/arch/loongson/dev/sisfb.c
583
dst = cmap + index + 2;
sys/arch/luna88k/cbus/nec86.c
107
nec86_ym_write(struct nec86_softc *sc, u_int8_t index, u_int8_t data) {
sys/arch/luna88k/cbus/nec86.c
109
sc->sc_ym_iobase + sc->sc_ym_ioh, YM_INDEX, index);
sys/arch/luna88k/cbus/nec86.c
97
nec86_ym_read(struct nec86_softc *sc, u_int8_t index, u_int8_t *data) {
sys/arch/luna88k/cbus/nec86.c
99
sc->sc_ym_iobase + sc->sc_ym_ioh, YM_INDEX, index);
sys/arch/luna88k/dev/lunafb.c
318
u_int index = p->index, count = p->count;
sys/arch/luna88k/dev/lunafb.c
328
if (index >= cmsize || count > cmsize - index)
sys/arch/luna88k/dev/lunafb.c
331
error = copyout(&sc->sc_dc->dc_cmap.r[index], p->red, count);
sys/arch/luna88k/dev/lunafb.c
334
error = copyout(&sc->sc_dc->dc_cmap.g[index], p->green, count);
sys/arch/luna88k/dev/lunafb.c
337
error = copyout(&sc->sc_dc->dc_cmap.b[index], p->blue, count);
sys/arch/luna88k/dev/lunafb.c
348
u_int index = p->index, count = p->count;
sys/arch/luna88k/dev/lunafb.c
358
if (index >= cmsize || count > cmsize - index)
sys/arch/luna88k/dev/lunafb.c
361
error = copyin(p->red, &cmap.r[index], count);
sys/arch/luna88k/dev/lunafb.c
364
error = copyin(p->green, &cmap.g[index], count);
sys/arch/luna88k/dev/lunafb.c
367
error = copyin(p->blue, &cmap.b[index], count);
sys/arch/luna88k/dev/lunafb.c
371
memcpy(&sc->sc_dc->dc_cmap.r[index], &cmap.r[index], count);
sys/arch/luna88k/dev/lunafb.c
372
memcpy(&sc->sc_dc->dc_cmap.g[index], &cmap.g[index], count);
sys/arch/luna88k/dev/lunafb.c
373
memcpy(&sc->sc_dc->dc_cmap.b[index], &cmap.b[index], count);
sys/arch/luna88k/dev/lunafb.c
377
odac->bt_addr = (u_int8_t)index;
sys/arch/luna88k/dev/lunafb.c
378
for (i = index; i < index + count; i++) {
sys/arch/luna88k/dev/lunafb.c
386
ndac->bt_addr = (u_int8_t)index;
sys/arch/luna88k/dev/lunafb.c
387
for (i = index; i < index + count; i++) {
sys/arch/luna88k/dev/lunafb.c
689
int index = i % 16;
sys/arch/luna88k/dev/lunafb.c
691
= rasops_cmap[index * 3];
sys/arch/luna88k/dev/lunafb.c
693
= rasops_cmap[index * 3 + 1];
sys/arch/luna88k/dev/lunafb.c
695
= rasops_cmap[index * 3 + 2];
sys/arch/macppc/dev/adb.c
1351
get_ind_adb_info(struct adb_softc *sc, ADBDataBlock * info, int index)
sys/arch/macppc/dev/adb.c
1353
if ((index < 1) || (index > 15)) /* check range 1-15 */
sys/arch/macppc/dev/adb.c
1358
printf_intr("index 0x%x handler id 0x%x\n", index,
sys/arch/macppc/dev/adb.c
1359
sc->sc_devtable[index].handler_id);
sys/arch/macppc/dev/adb.c
1361
if (0 == sc->sc_devtable[index].handler_id) /* make sure it's a valid entry */
sys/arch/macppc/dev/adb.c
1364
info->devType = sc->sc_devtable[index].handler_id;
sys/arch/macppc/dev/adb.c
1365
info->origADBAddr = sc->sc_devtable[index].orig_addr;
sys/arch/macppc/dev/adb.c
1366
info->dbServiceRtPtr = (Ptr)sc->sc_devtable[index].handler;
sys/arch/macppc/dev/adb.c
1367
info->dbDataAreaAddr = (Ptr)sc->sc_devtable[index].data;
sys/arch/macppc/dev/adb.c
1369
return (sc->sc_devtable[index].curr_addr);
sys/arch/macppc/dev/awacs.c
783
DPRINTF("query_devinfo %d\n", dip->index);
sys/arch/macppc/dev/awacs.c
785
switch (dip->index) {
sys/arch/macppc/dev/i2s.c
460
switch (dip->index) {
sys/arch/macppc/macppc/ofw_machdep.c
578
of_setcolors(const uint8_t *cmap, unsigned int index, unsigned int count)
sys/arch/macppc/macppc/ofw_machdep.c
581
OF_call_method_1("set-colors", display_ofh, 3, &of_cmap, index, count);
sys/arch/macppc/pci/vgafb.c
250
of_setcolors(sc->sc_cmap, cm->index, cm->count);
sys/arch/macppc/pci/vgafb.c
369
uint index = cm->index, count = cm->count, i;
sys/arch/macppc/pci/vgafb.c
373
if (index >= 256 || count > 256 - index)
sys/arch/macppc/pci/vgafb.c
376
index *= 3;
sys/arch/macppc/pci/vgafb.c
378
src = cmap + index;
sys/arch/macppc/pci/vgafb.c
386
src = cmap + index + 1;
sys/arch/macppc/pci/vgafb.c
394
src = cmap + index + 2;
sys/arch/macppc/pci/vgafb.c
408
uint index = cm->index, count = cm->count, i;
sys/arch/macppc/pci/vgafb.c
412
if (index >= 256 || count > 256 - index)
sys/arch/macppc/pci/vgafb.c
415
index *= 3;
sys/arch/macppc/pci/vgafb.c
420
dst = cmap + index;
sys/arch/macppc/pci/vgafb.c
428
dst = cmap + index + 1;
sys/arch/macppc/pci/vgafb.c
436
dst = cmap + index + 2;
sys/arch/octeon/dev/cn30xxfauvar.h
66
cn30xxfau_op_iobdma(int index, uint64_t args)
sys/arch/octeon/dev/cn30xxfauvar.h
71
((uint64_t)(index & 0xff) << 56) |
sys/arch/octeon/dev/cn30xxgmx.c
506
int index = GMX_PORT_INDEX(sc->sc_port_no);
sys/arch/octeon/dev/cn30xxgmx.c
510
CLR(ovr_bp, (1 << index) << TX_OVR_BP_EN_SHIFT);
sys/arch/octeon/dev/cn30xxgmx.c
511
SET(ovr_bp, (1 << index) << TX_OVR_BP_BP_SHIFT);
sys/arch/octeon/dev/cn30xxgmx.c
513
SET(ovr_bp, (1 << index) << TX_OVR_BP_IGN_FULL_SHIFT);
sys/arch/octeon/dev/cn30xxgmx.c
515
SET(ovr_bp, (1 << index) << TX_OVR_BP_EN_SHIFT);
sys/arch/octeon/dev/cn30xxgmx.c
516
CLR(ovr_bp, (1 << index) << TX_OVR_BP_BP_SHIFT);
sys/arch/octeon/dev/cn30xxgmx.c
518
SET(ovr_bp, (1 << index) << TX_OVR_BP_IGN_FULL_SHIFT);
sys/arch/octeon/dev/cn30xxpowvar.h
160
int index, /* 0-8191 */
sys/arch/octeon/dev/cn30xxpowvar.h
177
__BITS64_SET(POW_STORE_DATA_INDEX, index) |
sys/arch/octeon/dev/cn30xxpowvar.h
293
cn30xxpow_ops_clr_nsched(paddr_t addr, int index)
sys/arch/octeon/dev/cn30xxpowvar.h
299
index,
sys/arch/sparc64/dev/ce4231.c
899
switch (dip->index) {
sys/arch/sparc64/dev/creator.c
276
curs->cmap.index = 0;
sys/arch/sparc64/dev/gfxp.c
374
u_int index = cm->index;
sys/arch/sparc64/dev/gfxp.c
378
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/gfxp.c
381
error = copyout(&sc->sc_cmap_red[index], cm->red, count);
sys/arch/sparc64/dev/gfxp.c
384
error = copyout(&sc->sc_cmap_green[index], cm->green, count);
sys/arch/sparc64/dev/gfxp.c
387
error = copyout(&sc->sc_cmap_blue[index], cm->blue, count);
sys/arch/sparc64/dev/gfxp.c
396
u_int index = cm->index;
sys/arch/sparc64/dev/gfxp.c
402
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/gfxp.c
405
if ((error = copyin(cm->red, &sc->sc_cmap_red[index], count)) != 0)
sys/arch/sparc64/dev/gfxp.c
407
if ((error = copyin(cm->green, &sc->sc_cmap_green[index], count)) != 0)
sys/arch/sparc64/dev/gfxp.c
409
if ((error = copyin(cm->blue, &sc->sc_cmap_blue[index], count)) != 0)
sys/arch/sparc64/dev/gfxp.c
412
r = &sc->sc_cmap_red[index];
sys/arch/sparc64/dev/gfxp.c
413
g = &sc->sc_cmap_green[index];
sys/arch/sparc64/dev/gfxp.c
414
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/gfxp.c
418
PM2_PALETTE_WRITE_ADDR, index);
sys/arch/sparc64/dev/gfxp.c
433
gfxp_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/gfxp.c
437
sc->sc_cmap_red[index] = r;
sys/arch/sparc64/dev/gfxp.c
438
sc->sc_cmap_green[index] = g;
sys/arch/sparc64/dev/gfxp.c
439
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/gfxp.c
443
PM2_PALETTE_WRITE_ADDR, index);
sys/arch/sparc64/dev/ifb.c
618
u_int index = cm->index;
sys/arch/sparc64/dev/ifb.c
622
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/ifb.c
625
error = copyout(&sc->sc_cmap_red[index], cm->red, count);
sys/arch/sparc64/dev/ifb.c
628
error = copyout(&sc->sc_cmap_green[index], cm->green, count);
sys/arch/sparc64/dev/ifb.c
631
error = copyout(&sc->sc_cmap_blue[index], cm->blue, count);
sys/arch/sparc64/dev/ifb.c
640
u_int index = cm->index;
sys/arch/sparc64/dev/ifb.c
646
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/ifb.c
649
if ((error = copyin(cm->red, &sc->sc_cmap_red[index], count)) != 0)
sys/arch/sparc64/dev/ifb.c
651
if ((error = copyin(cm->green, &sc->sc_cmap_green[index], count)) != 0)
sys/arch/sparc64/dev/ifb.c
653
if ((error = copyin(cm->blue, &sc->sc_cmap_blue[index], count)) != 0)
sys/arch/sparc64/dev/ifb.c
656
r = &sc->sc_cmap_red[index];
sys/arch/sparc64/dev/ifb.c
657
g = &sc->sc_cmap_green[index];
sys/arch/sparc64/dev/ifb.c
658
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/ifb.c
662
IFB_REG_CMAP_INDEX, index);
sys/arch/sparc64/dev/ifb.c
665
r++, g++, b++, index++;
sys/arch/sparc64/dev/ifb.c
671
ifb_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/ifb.c
675
sc->sc_cmap_red[index] = r;
sys/arch/sparc64/dev/ifb.c
676
sc->sc_cmap_green[index] = g;
sys/arch/sparc64/dev/ifb.c
677
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/ifb.c
680
index);
sys/arch/sparc64/dev/machfb.c
438
u_int index = cm->index;
sys/arch/sparc64/dev/machfb.c
442
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/machfb.c
445
error = copyout(&sc->sc_cmap_red[index], cm->red, count);
sys/arch/sparc64/dev/machfb.c
448
error = copyout(&sc->sc_cmap_green[index], cm->green, count);
sys/arch/sparc64/dev/machfb.c
451
error = copyout(&sc->sc_cmap_blue[index], cm->blue, count);
sys/arch/sparc64/dev/machfb.c
460
u_int index = cm->index;
sys/arch/sparc64/dev/machfb.c
466
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/machfb.c
469
if ((error = copyin(cm->red, &sc->sc_cmap_red[index], count)) != 0)
sys/arch/sparc64/dev/machfb.c
471
if ((error = copyin(cm->green, &sc->sc_cmap_green[index], count)) != 0)
sys/arch/sparc64/dev/machfb.c
473
if ((error = copyin(cm->blue, &sc->sc_cmap_blue[index], count)) != 0)
sys/arch/sparc64/dev/machfb.c
476
r = &sc->sc_cmap_red[index];
sys/arch/sparc64/dev/machfb.c
477
g = &sc->sc_cmap_green[index];
sys/arch/sparc64/dev/machfb.c
478
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/machfb.c
481
bus_space_write_1(sc->sc_regt, sc->sc_regh, M64_DAC_WINDEX, index);
sys/arch/sparc64/dev/machfb.c
495
machfb_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/machfb.c
499
sc->sc_cmap_red[index] = r;
sys/arch/sparc64/dev/machfb.c
500
sc->sc_cmap_green[index] = g;
sys/arch/sparc64/dev/machfb.c
501
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/machfb.c
504
bus_space_write_1(sc->sc_regt, sc->sc_regh, M64_DAC_WINDEX, index);
sys/arch/sparc64/dev/radeonfb.c
382
u_int index = cm->index;
sys/arch/sparc64/dev/radeonfb.c
386
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/radeonfb.c
389
error = copyout(&sc->sc_cmap_red[index], cm->red, count);
sys/arch/sparc64/dev/radeonfb.c
392
error = copyout(&sc->sc_cmap_green[index], cm->green, count);
sys/arch/sparc64/dev/radeonfb.c
395
error = copyout(&sc->sc_cmap_blue[index], cm->blue, count);
sys/arch/sparc64/dev/radeonfb.c
404
u_int index = cm->index;
sys/arch/sparc64/dev/radeonfb.c
410
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/radeonfb.c
413
if ((error = copyin(cm->red, &sc->sc_cmap_red[index], count)) != 0)
sys/arch/sparc64/dev/radeonfb.c
415
if ((error = copyin(cm->green, &sc->sc_cmap_green[index], count)) != 0)
sys/arch/sparc64/dev/radeonfb.c
417
if ((error = copyin(cm->blue, &sc->sc_cmap_blue[index], count)) != 0)
sys/arch/sparc64/dev/radeonfb.c
420
r = &sc->sc_cmap_red[index];
sys/arch/sparc64/dev/radeonfb.c
421
g = &sc->sc_cmap_green[index];
sys/arch/sparc64/dev/radeonfb.c
422
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/radeonfb.c
425
RADEON_PALETTE_INDEX, index);
sys/arch/sparc64/dev/radeonfb.c
435
radeonfb_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/radeonfb.c
439
sc->sc_cmap_red[index] = r;
sys/arch/sparc64/dev/radeonfb.c
440
sc->sc_cmap_green[index] = g;
sys/arch/sparc64/dev/radeonfb.c
441
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/radeonfb.c
444
RADEON_PALETTE_INDEX, index);
sys/arch/sparc64/dev/raptor.c
348
u_int index = cm->index;
sys/arch/sparc64/dev/raptor.c
352
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/raptor.c
355
error = copyout(&sc->sc_cmap_red[index], cm->red, count);
sys/arch/sparc64/dev/raptor.c
358
error = copyout(&sc->sc_cmap_green[index], cm->green, count);
sys/arch/sparc64/dev/raptor.c
361
error = copyout(&sc->sc_cmap_blue[index], cm->blue, count);
sys/arch/sparc64/dev/raptor.c
370
u_int index = cm->index;
sys/arch/sparc64/dev/raptor.c
376
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/raptor.c
379
if ((error = copyin(cm->red, &sc->sc_cmap_red[index], count)) != 0)
sys/arch/sparc64/dev/raptor.c
381
if ((error = copyin(cm->green, &sc->sc_cmap_green[index], count)) != 0)
sys/arch/sparc64/dev/raptor.c
383
if ((error = copyin(cm->blue, &sc->sc_cmap_blue[index], count)) != 0)
sys/arch/sparc64/dev/raptor.c
386
r = &sc->sc_cmap_red[index];
sys/arch/sparc64/dev/raptor.c
387
g = &sc->sc_cmap_green[index];
sys/arch/sparc64/dev/raptor.c
388
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/raptor.c
393
I128_WR_ADR, index);
sys/arch/sparc64/dev/raptor.c
400
r++, g++, b++, index++;
sys/arch/sparc64/dev/raptor.c
406
raptor_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/raptor.c
410
sc->sc_cmap_red[index] = r;
sys/arch/sparc64/dev/raptor.c
411
sc->sc_cmap_green[index] = g;
sys/arch/sparc64/dev/raptor.c
412
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/raptor.c
415
bus_space_write_4(sc->sc_mmiot, sc->sc_mmioh, I128_WR_ADR, index);
sys/arch/sparc64/dev/vgafb.c
263
u_int index = cm->index;
sys/arch/sparc64/dev/vgafb.c
267
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/vgafb.c
270
error = copyout(&sc->sc_cmap_red[index], cm->red, count);
sys/arch/sparc64/dev/vgafb.c
273
error = copyout(&sc->sc_cmap_green[index], cm->green, count);
sys/arch/sparc64/dev/vgafb.c
276
error = copyout(&sc->sc_cmap_blue[index], cm->blue, count);
sys/arch/sparc64/dev/vgafb.c
285
u_int index = cm->index;
sys/arch/sparc64/dev/vgafb.c
291
if (index >= 256 || count > 256 - index)
sys/arch/sparc64/dev/vgafb.c
294
if ((error = copyin(cm->red, &sc->sc_cmap_red[index], count)) != 0)
sys/arch/sparc64/dev/vgafb.c
296
if ((error = copyin(cm->green, &sc->sc_cmap_green[index], count)) != 0)
sys/arch/sparc64/dev/vgafb.c
298
if ((error = copyin(cm->blue, &sc->sc_cmap_blue[index], count)) != 0)
sys/arch/sparc64/dev/vgafb.c
301
r = &sc->sc_cmap_red[index];
sys/arch/sparc64/dev/vgafb.c
302
g = &sc->sc_cmap_green[index];
sys/arch/sparc64/dev/vgafb.c
303
b = &sc->sc_cmap_blue[index];
sys/arch/sparc64/dev/vgafb.c
307
index);
sys/arch/sparc64/dev/vgafb.c
308
r++, g++, b++, index++;
sys/arch/sparc64/dev/vgafb.c
314
vgafb_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/arch/sparc64/dev/vgafb.c
318
sc->sc_cmap_red[index] = r;
sys/arch/sparc64/dev/vgafb.c
319
sc->sc_cmap_green[index] = g;
sys/arch/sparc64/dev/vgafb.c
320
sc->sc_cmap_blue[index] = b;
sys/arch/sparc64/dev/vgafb.c
321
OF_call_method("color!", sc->sc_ofhandle, 4, 0, r, g, b, index);
sys/arch/sparc64/include/sparc64.h
53
int prom_itlb_load(int index, u_int64_t data, vaddr_t vaddr);
sys/arch/sparc64/include/sparc64.h
54
int prom_dtlb_load(int index, u_int64_t data, vaddr_t vaddr);
sys/arch/sparc64/sparc64/ofw_machdep.c
519
prom_itlb_load(int index, u_int64_t data, vaddr_t vaddr)
sys/arch/sparc64/sparc64/ofw_machdep.c
529
cell_t index;
sys/arch/sparc64/sparc64/ofw_machdep.c
544
args.index = index;
sys/arch/sparc64/sparc64/ofw_machdep.c
553
prom_dtlb_load(int index, u_int64_t data, vaddr_t vaddr)
sys/arch/sparc64/sparc64/ofw_machdep.c
563
cell_t index;
sys/arch/sparc64/sparc64/ofw_machdep.c
578
args.index = index;
sys/arch/sparc64/sparc64/pmap.c
1227
int index;
sys/arch/sparc64/sparc64/pmap.c
1239
index = 15; /* XXX */
sys/arch/sparc64/sparc64/pmap.c
1243
prom_itlb_load(index, data, va);
sys/arch/sparc64/sparc64/pmap.c
1244
prom_dtlb_load(index, data, va);
sys/arch/sparc64/sparc64/pmap.c
1245
index--;
sys/arch/sparc64/sparc64/pmap.c
1251
prom_dtlb_load(index, data, va);
sys/arch/sparc64/sparc64/pmap.c
1252
index--;
sys/arch/sparc64/sparc64/pmap.c
1270
index--;
sys/arch/sparc64/sparc64/pmap.c
1274
prom_dtlb_load(index, data, va - (CPUINFO_VA - INTSTACK));
sys/arch/sparc64/sparc64/pmap.c
1287
prom_dtlb_load(index, data, INTSTACK);
sys/ddb/db_ctf.c
379
db_ctf_type_by_index(uint16_t index)
sys/ddb/db_ctf.c
392
if (idx == index)
sys/dev/acpi/acpidebug.c
99
db_printf("refof: %x {\n", value->v_objref.index);
sys/dev/acpi/amltypes.h
299
int index;
sys/dev/acpi/dsdt.c
1981
aml_match(struct aml_value *pkg, int index,
sys/dev/acpi/dsdt.c
1988
while (index < pkg->length) {
sys/dev/acpi/dsdt.c
1990
tmp = aml_convert(pkg->v_package[index],
sys/dev/acpi/dsdt.c
1999
return index;
sys/dev/acpi/dsdt.c
2000
index++;
sys/dev/acpi/dsdt.c
2248
aml_mid(struct aml_value *src, int index, int length)
sys/dev/acpi/dsdt.c
2250
if (index > src->length)
sys/dev/acpi/dsdt.c
2251
index = src->length;
sys/dev/acpi/dsdt.c
2252
if ((index + length) > src->length)
sys/dev/acpi/dsdt.c
2253
length = src->length - index;
sys/dev/acpi/dsdt.c
2254
return aml_allocvalue(src->type, length, src->v_buffer + index);
sys/dev/acpi/dsdt.c
2930
struct aml_value *index, int indexval, int flags)
sys/dev/acpi/dsdt.c
2936
if (index) {
sys/dev/acpi/dsdt.c
2937
dnprintf(10, " index:%s:%.2x\n", aml_nodename(index->node),
sys/dev/acpi/dsdt.c
2955
field->v_field.ref2 = index;
sys/dev/acpi/dsdt.c
2961
aml_addref(index, "Field.Index");
sys/dev/acpi/dsdt.c
2967
struct aml_value *data, struct aml_value *index, int indexval)
sys/dev/acpi/dsdt.c
3008
conn ? conn : index, indexval, flags);
sys/dev/acpi/dsdt.c
4220
my_ret->v_objref.index = idx;
sys/dev/acpi/dsdt.c
868
val->v_objref.index, aml_mnem(val->v_objref.type, 0));
sys/dev/audio.c
1275
mi->index = 0;
sys/dev/audio.c
1279
mi->index++;
sys/dev/audio.c
1281
sc->mix_nent = mi->index;
sys/dev/audio.c
1288
mi->index = 0;
sys/dev/audio.c
1298
ent->dev = mi->index;
sys/dev/audio.c
1301
mi->index++;
sys/dev/audio.c
1825
if (devinfo->index < sc->mix_nent)
sys/dev/audio.c
1830
switch (devinfo->index - sc->mix_nent) {
sys/dev/audio.c
2282
int index = -1;
sys/dev/audio.c
2286
for (mi->index = vol->next; mi->index != -1; mi->index = mi->next) {
sys/dev/audio.c
2290
index = mi->index;
sys/dev/audio.c
2296
return index;
sys/dev/audio.c
2308
for (dev->index = 0; ; dev->index++) {
sys/dev/audio.c
2313
cls->index = dev->mixer_class;
sys/dev/audio.c
2318
vol->val = dev->index;
sys/dev/cardbus/com_cardbus.c
171
int i, index = -1;
sys/dev/cardbus/com_cardbus.c
197
if (index != -1)
sys/dev/cardbus/com_cardbus.c
199
index = i;
sys/dev/cardbus/com_cardbus.c
201
if (index == -1) {
sys/dev/cardbus/com_cardbus.c
205
csc->cc_reg = CARDBUS_CIS_ASI_BAR(ca->ca_cis.bar[index].flags);
sys/dev/cardbus/com_cardbus.c
206
if ((ca->ca_cis.bar[index].flags & 0x10) == 0)
sys/dev/dt/dtvar.h
330
#define DT_INDEX_ENTER(func, index, args...) do { \
sys/dev/dt/dtvar.h
334
__predict_false(index > 0) && \
sys/dev/dt/dtvar.h
336
struct dt_probe *dtp = _DT_INDEX_P(func)[index]; \
sys/dev/eisa/eisareg.h
64
#define EISA_PRIMING_VID(index) (0x80 + (index)) /* value for vendor */
sys/dev/eisa/eisareg.h
65
#define EISA_PRIMING_PID(index) (0x82 + (index)) /* value for product */
sys/dev/fdt/bcm2835_dmac.c
142
int index;
sys/dev/fdt/bcm2835_dmac.c
178
for (index = 0; index < sc->sc_nchannels; index++) {
sys/dev/fdt/bcm2835_dmac.c
179
ch = &sc->sc_channels[index];
sys/dev/fdt/bcm2835_dmac.c
181
ch->ch_index = index;
sys/dev/fdt/bcm2835_dmac.c
185
if (!ISSET(sc->sc_channelmask, (1 << index)))
sys/dev/fdt/bcm2835_dmac.c
188
printf(" DMA%d", index);
sys/dev/fdt/bcm2835_dmac.c
190
ch->ch_debug = bcmdmac_read(sc, DMAC_DEBUG(index));
sys/dev/fdt/bcm2835_dmac.c
192
val = bcmdmac_read(sc, DMAC_CS(index));
sys/dev/fdt/bcm2835_dmac.c
194
bcmdmac_write(sc, DMAC_CS(index), val);
sys/dev/fdt/bcm2835_dmac.c
227
int index;
sys/dev/fdt/bcm2835_dmac.c
233
for (index = 0; index < sc->sc_nchannels; index++) {
sys/dev/fdt/bcm2835_dmac.c
234
if (!ISSET(sc->sc_channelmask, (1 << index)))
sys/dev/fdt/bcm2835_dmac.c
236
if (bcmdmac_channel_type(&sc->sc_channels[index]) != type)
sys/dev/fdt/bcm2835_dmac.c
238
if (bcmdmac_channel_used(&sc->sc_channels[index]))
sys/dev/fdt/bcm2835_dmac.c
241
ch = &sc->sc_channels[index];
sys/dev/fdt/dwpcie.c
1724
dwpcie_atu_write(struct dwpcie_softc *sc, int index, off_t reg,
sys/dev/fdt/dwpcie.c
1729
IATU_OFFSET_UNROLL(index) + reg, val);
sys/dev/fdt/dwpcie.c
1733
if (sc->sc_atu_viewport != index) {
sys/dev/fdt/dwpcie.c
1734
HWRITE4(sc, IATU_VIEWPORT, index);
sys/dev/fdt/dwpcie.c
1735
sc->sc_atu_viewport = index;
sys/dev/fdt/dwpcie.c
1742
dwpcie_atu_read(struct dwpcie_softc *sc, int index, off_t reg)
sys/dev/fdt/dwpcie.c
1746
IATU_OFFSET_UNROLL(index) + reg);
sys/dev/fdt/dwpcie.c
1749
if (sc->sc_atu_viewport != index) {
sys/dev/fdt/dwpcie.c
1750
HWRITE4(sc, IATU_VIEWPORT, index);
sys/dev/fdt/dwpcie.c
1751
sc->sc_atu_viewport = index;
sys/dev/fdt/dwpcie.c
1758
dwpcie_atu_disable(struct dwpcie_softc *sc, int index)
sys/dev/fdt/dwpcie.c
1760
dwpcie_atu_write(sc, index, IATU_REGION_CTRL_2, 0);
sys/dev/fdt/dwpcie.c
1764
dwpcie_atu_config(struct dwpcie_softc *sc, int index, int type,
sys/dev/fdt/dwpcie.c
1770
dwpcie_atu_write(sc, index, IATU_LWR_BASE_ADDR, cpu_addr);
sys/dev/fdt/dwpcie.c
1771
dwpcie_atu_write(sc, index, IATU_UPPER_BASE_ADDR, cpu_addr >> 32);
sys/dev/fdt/dwpcie.c
1772
dwpcie_atu_write(sc, index, IATU_LIMIT_ADDR, cpu_addr + size - 1);
sys/dev/fdt/dwpcie.c
1773
dwpcie_atu_write(sc, index, IATU_LWR_TARGET_ADDR, pci_addr);
sys/dev/fdt/dwpcie.c
1774
dwpcie_atu_write(sc, index, IATU_UPPER_TARGET_ADDR, pci_addr >> 32);
sys/dev/fdt/dwpcie.c
1775
dwpcie_atu_write(sc, index, IATU_REGION_CTRL_1, type);
sys/dev/fdt/dwpcie.c
1776
dwpcie_atu_write(sc, index, IATU_REGION_CTRL_2,
sys/dev/fdt/dwpcie.c
1780
reg = dwpcie_atu_read(sc, index, IATU_REGION_CTRL_2);
sys/dev/fdt/es8316ac.c
515
escodec_get_mixer(u_int index)
sys/dev/fdt/es8316ac.c
517
if (index >= ESCODEC_MIXER_CTRL_LAST)
sys/dev/fdt/es8316ac.c
520
return &escodec_mixers[index];
sys/dev/fdt/es8316ac.c
616
if ((mix = escodec_get_mixer(di->index)) == NULL)
sys/dev/fdt/if_mvpp.c
1002
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_L2);
sys/dev/fdt/if_mvpp.c
1003
sc->sc_prs_shadow[pe.index].udf = MVPP2_PRS_UDF_L2_DEF;
sys/dev/fdt/if_mvpp.c
1004
sc->sc_prs_shadow[pe.index].finish = 0;
sys/dev/fdt/if_mvpp.c
1005
mvpp2_prs_shadow_ri_set(sc, pe.index, MVPP2_PRS_RI_L3_IP6,
sys/dev/fdt/if_mvpp.c
1012
pe.index = MVPP2_PE_ETH_TYPE_UN;
sys/dev/fdt/if_mvpp.c
1020
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_L2);
sys/dev/fdt/if_mvpp.c
1021
sc->sc_prs_shadow[pe.index].udf = MVPP2_PRS_UDF_L2_DEF;
sys/dev/fdt/if_mvpp.c
1022
sc->sc_prs_shadow[pe.index].finish = 1;
sys/dev/fdt/if_mvpp.c
1023
mvpp2_prs_shadow_ri_set(sc, pe.index, MVPP2_PRS_RI_L3_UN,
sys/dev/fdt/if_mvpp.c
1058
pe.index = MVPP2_PE_VLAN_DBL;
sys/dev/fdt/if_mvpp.c
1066
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_VLAN);
sys/dev/fdt/if_mvpp.c
1071
pe.index = MVPP2_PE_VLAN_NONE;
sys/dev/fdt/if_mvpp.c
1076
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_VLAN);
sys/dev/fdt/if_mvpp.c
1095
pe.index = tid;
sys/dev/fdt/if_mvpp.c
1104
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_PPPOE);
sys/dev/fdt/if_mvpp.c
1112
pe.index = tid;
sys/dev/fdt/if_mvpp.c
1119
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_PPPOE);
sys/dev/fdt/if_mvpp.c
1129
pe.index = tid;
sys/dev/fdt/if_mvpp.c
1138
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_PPPOE);
sys/dev/fdt/if_mvpp.c
1148
pe.index = tid;
sys/dev/fdt/if_mvpp.c
1155
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_PPPOE);
sys/dev/fdt/if_mvpp.c
1195
pe.index = tid;
sys/dev/fdt/if_mvpp.c
1204
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP4);
sys/dev/fdt/if_mvpp.c
1209
pe.index = MVPP2_PE_IP6_PROTO_UN;
sys/dev/fdt/if_mvpp.c
1219
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP4);
sys/dev/fdt/if_mvpp.c
1224
pe.index = MVPP2_PE_IP6_EXT_PROTO_UN;
sys/dev/fdt/if_mvpp.c
1232
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP4);
sys/dev/fdt/if_mvpp.c
1237
pe.index = MVPP2_PE_IP6_ADDR_UN;
sys/dev/fdt/if_mvpp.c
1246
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP6);
sys/dev/fdt/if_mvpp.c
1280
pe.index = MVPP2_PE_IP4_PROTO_UN;
sys/dev/fdt/if_mvpp.c
1291
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP4);
sys/dev/fdt/if_mvpp.c
1296
pe.index = MVPP2_PE_IP4_ADDR_UN;
sys/dev/fdt/if_mvpp.c
1304
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP4);
sys/dev/fdt/if_mvpp.c
3455
mvpp2_prs_shadow_ri_set(struct mvpp2_softc *sc, int index,
sys/dev/fdt/if_mvpp.c
3458
sc->sc_prs_shadow[index].ri_mask = ri_mask;
sys/dev/fdt/if_mvpp.c
3459
sc->sc_prs_shadow[index].ri = ri;
sys/dev/fdt/if_mvpp.c
3556
int index, position;
sys/dev/fdt/if_mvpp.c
3559
for (index = 0; index < 4; index++) {
sys/dev/fdt/if_mvpp.c
3560
position = (data_offset * sizeof(int)) + index;
sys/dev/fdt/if_mvpp.c
3562
((uint8_t *)word)[index] = byte;
sys/dev/fdt/if_mvpp.c
3563
((uint8_t *)enable)[index] = mask;
sys/dev/fdt/if_mvpp.c
3713
mvpp2_prs_shadow_set(struct mvpp2_softc *sc, int index, uint32_t lu)
sys/dev/fdt/if_mvpp.c
3715
sc->sc_prs_shadow[index].valid = 1;
sys/dev/fdt/if_mvpp.c
3716
sc->sc_prs_shadow[index].lu = lu;
sys/dev/fdt/if_mvpp.c
3724
if (pe->index > MVPP2_PRS_TCAM_SRAM_SIZE - 1)
sys/dev/fdt/if_mvpp.c
3728
mvpp2_write(sc, MVPP2_PRS_TCAM_IDX_REG, pe->index);
sys/dev/fdt/if_mvpp.c
3731
mvpp2_write(sc, MVPP2_PRS_SRAM_IDX_REG, pe->index);
sys/dev/fdt/if_mvpp.c
3747
pe->index = tid;
sys/dev/fdt/if_mvpp.c
3749
mvpp2_write(sc, MVPP2_PRS_TCAM_IDX_REG, pe->index);
sys/dev/fdt/if_mvpp.c
3758
mvpp2_write(sc, MVPP2_PRS_SRAM_IDX_REG, pe->index);
sys/dev/fdt/if_mvpp.c
3818
pe.index = MVPP2_PE_DROP_ALL;
sys/dev/fdt/if_mvpp.c
3823
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_MAC);
sys/dev/fdt/if_mvpp.c
3855
pe.index = tid;
sys/dev/fdt/if_mvpp.c
3863
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_MAC);
sys/dev/fdt/if_mvpp.c
3890
pe.index = tid;
sys/dev/fdt/if_mvpp.c
3893
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_DSA);
sys/dev/fdt/if_mvpp.c
3934
pe.index = tid;
sys/dev/fdt/if_mvpp.c
3941
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_DSA);
sys/dev/fdt/if_mvpp.c
4036
pe->index = tid;
sys/dev/fdt/if_mvpp.c
4051
mvpp2_prs_shadow_set(sc, pe->index, MVPP2_PRS_LU_VLAN);
sys/dev/fdt/if_mvpp.c
4151
pe->index = tid;
sys/dev/fdt/if_mvpp.c
4162
mvpp2_prs_shadow_set(sc, pe->index, MVPP2_PRS_LU_VLAN);
sys/dev/fdt/if_mvpp.c
4191
pe.index = tid;
sys/dev/fdt/if_mvpp.c
4204
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP4);
sys/dev/fdt/if_mvpp.c
4212
pe.index = tid;
sys/dev/fdt/if_mvpp.c
4220
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP4);
sys/dev/fdt/if_mvpp.c
4239
pe.index = tid;
sys/dev/fdt/if_mvpp.c
4266
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP4);
sys/dev/fdt/if_mvpp.c
4290
pe.index = tid;
sys/dev/fdt/if_mvpp.c
4300
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP6);
sys/dev/fdt/if_mvpp.c
4322
pe.index = tid;
sys/dev/fdt/if_mvpp.c
4333
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_IP6);
sys/dev/fdt/if_mvpp.c
4344
int index;
sys/dev/fdt/if_mvpp.c
4346
for (index = 0; index < ETHER_ADDR_LEN; index++) {
sys/dev/fdt/if_mvpp.c
4347
mvpp2_prs_tcam_data_byte_get(pe, index, &tcam_byte,
sys/dev/fdt/if_mvpp.c
4349
if (tcam_mask != mask[index])
sys/dev/fdt/if_mvpp.c
4351
if ((tcam_mask & tcam_byte) != (da[index] & mask[index]))
sys/dev/fdt/if_mvpp.c
4406
pe.index = tid;
sys/dev/fdt/if_mvpp.c
4421
mvpp2_prs_hw_inv(sc, pe.index);
sys/dev/fdt/if_mvpp.c
4422
sc->sc_prs_shadow[pe.index].valid = 0;
sys/dev/fdt/if_mvpp.c
4441
mvpp2_prs_shadow_ri_set(sc, pe.index, ri, MVPP2_PRS_RI_L2_CAST_MASK |
sys/dev/fdt/if_mvpp.c
4445
sc->sc_prs_shadow[pe.index].udf = MVPP2_PRS_UDF_MAC_DEF;
sys/dev/fdt/if_mvpp.c
4446
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_MAC);
sys/dev/fdt/if_mvpp.c
4458
int index, tid;
sys/dev/fdt/if_mvpp.c
4475
for (index = 0; index < ETHER_ADDR_LEN; index++)
sys/dev/fdt/if_mvpp.c
4476
mvpp2_prs_tcam_data_byte_get(&pe, index, &da[index],
sys/dev/fdt/if_mvpp.c
4477
&da_mask[index]);
sys/dev/fdt/if_mvpp.c
4545
pe.index = tid;
sys/dev/fdt/if_mvpp.c
4549
mvpp2_prs_shadow_set(port->sc, pe.index, MVPP2_PRS_LU_FLOWS);
sys/dev/fdt/if_mvpp.c
4563
mvpp2_write(sc, MVPP2_CLS_FLOW_INDEX_REG, fe->index);
sys/dev/fdt/if_mvpp.c
4584
int index;
sys/dev/fdt/if_mvpp.c
4588
for (index = 0; index < MVPP2_CLS_FLOWS_TBL_SIZE; index++) {
sys/dev/fdt/if_mvpp.c
4589
fe.index = index;
sys/dev/fdt/if_mvpp.c
4593
for (index = 0; index < MVPP2_CLS_LKP_TBL_SIZE; index++) {
sys/dev/fdt/if_mvpp.c
4594
le.lkpid = index;
sys/dev/fdt/if_mvpp.c
758
mvpp2_prs_hw_inv(struct mvpp2_softc *sc, int index)
sys/dev/fdt/if_mvpp.c
760
mvpp2_write(sc, MVPP2_PRS_TCAM_IDX_REG, index);
sys/dev/fdt/if_mvpp.c
796
pe.index = MVPP2_PE_FIRST_DEFAULT_FLOW - i;
sys/dev/fdt/if_mvpp.c
800
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_FLOWS);
sys/dev/fdt/if_mvpp.c
811
pe.index = MVPP2_PE_MH_DEFAULT;
sys/dev/fdt/if_mvpp.c
817
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_MH);
sys/dev/fdt/if_mvpp.c
827
pe.index = MVPP2_PE_MAC_NON_PROMISCUOUS;
sys/dev/fdt/if_mvpp.c
834
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_MAC);
sys/dev/fdt/if_mvpp.c
856
pe.index = MVPP2_PE_DSA_DEFAULT;
sys/dev/fdt/if_mvpp.c
859
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_MAC);
sys/dev/fdt/if_mvpp.c
878
pe.index = tid;
sys/dev/fdt/if_mvpp.c
885
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_L2);
sys/dev/fdt/if_mvpp.c
886
sc->sc_prs_shadow[pe.index].udf = MVPP2_PRS_UDF_L2_DEF;
sys/dev/fdt/if_mvpp.c
887
sc->sc_prs_shadow[pe.index].finish = 0;
sys/dev/fdt/if_mvpp.c
888
mvpp2_prs_shadow_ri_set(sc, pe.index, MVPP2_PRS_RI_PPPOE_MASK,
sys/dev/fdt/if_mvpp.c
899
pe.index = tid;
sys/dev/fdt/if_mvpp.c
907
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_L2);
sys/dev/fdt/if_mvpp.c
908
sc->sc_prs_shadow[pe.index].udf = MVPP2_PRS_UDF_L2_DEF;
sys/dev/fdt/if_mvpp.c
909
sc->sc_prs_shadow[pe.index].finish = 1;
sys/dev/fdt/if_mvpp.c
910
mvpp2_prs_shadow_ri_set(sc, pe.index, MVPP2_PRS_RI_L3_ARP,
sys/dev/fdt/if_mvpp.c
921
pe.index = tid;
sys/dev/fdt/if_mvpp.c
930
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_L2);
sys/dev/fdt/if_mvpp.c
931
sc->sc_prs_shadow[pe.index].udf = MVPP2_PRS_UDF_L2_DEF;
sys/dev/fdt/if_mvpp.c
932
sc->sc_prs_shadow[pe.index].finish = 1;
sys/dev/fdt/if_mvpp.c
933
mvpp2_prs_shadow_ri_set(sc, pe.index, MVPP2_PRS_RI_CPU_CODE_RX_SPEC |
sys/dev/fdt/if_mvpp.c
945
pe.index = tid;
sys/dev/fdt/if_mvpp.c
957
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_L2);
sys/dev/fdt/if_mvpp.c
958
sc->sc_prs_shadow[pe.index].udf = MVPP2_PRS_UDF_L2_DEF;
sys/dev/fdt/if_mvpp.c
959
sc->sc_prs_shadow[pe.index].finish = 0;
sys/dev/fdt/if_mvpp.c
960
mvpp2_prs_shadow_ri_set(sc, pe.index, MVPP2_PRS_RI_L3_IP4,
sys/dev/fdt/if_mvpp.c
969
pe.index = tid;
sys/dev/fdt/if_mvpp.c
979
mvpp2_prs_shadow_set(sc, pe.index, MVPP2_PRS_LU_L2);
sys/dev/fdt/if_mvpp.c
980
sc->sc_prs_shadow[pe.index].udf = MVPP2_PRS_UDF_L2_DEF;
sys/dev/fdt/if_mvpp.c
981
sc->sc_prs_shadow[pe.index].finish = 0;
sys/dev/fdt/if_mvpp.c
982
mvpp2_prs_shadow_ri_set(sc, pe.index, MVPP2_PRS_RI_L3_IP4_OPT,
sys/dev/fdt/if_mvpp.c
993
pe.index = tid;
sys/dev/fdt/if_mvppreg.h
1236
uint32_t index;
sys/dev/fdt/if_mvppreg.h
1257
uint32_t index;
sys/dev/fdt/qccpu.c
208
int index = 0;
sys/dev/fdt/qccpu.c
220
while (index < sc->sc_num_lut[group]) {
sys/dev/fdt/qccpu.c
221
if (freq == qccpu_lut_to_freq(sc, index, group))
sys/dev/fdt/qccpu.c
224
if (freq < qccpu_lut_to_freq(sc, index, group)) {
sys/dev/fdt/qccpu.c
226
if (index != 0)
sys/dev/fdt/qccpu.c
227
index = index - 1;
sys/dev/fdt/qccpu.c
231
index++;
sys/dev/fdt/qccpu.c
235
printf("%s called freq %u index %d\n", __func__, freq, index);
sys/dev/fdt/qccpu.c
240
numcores = qccpu_lut_to_cores(sc, index, group);
sys/dev/fdt/qccpu.c
244
bus_space_write_4(iot, ioh, CPUF_PERF_STATE + i * 4, index);
sys/dev/fdt/qccpu.c
250
qccpu_lut_to_freq(struct qccpu_softc *sc, int index, uint32_t group)
sys/dev/fdt/qccpu.c
253
((sc->sc_freq[group][index] >> CPUF_FREQ_LUT_LVAL_S)
sys/dev/fdt/qccpu.c
258
qccpu_lut_to_cores(struct qccpu_softc *sc, int index, uint32_t group)
sys/dev/fdt/qccpu.c
260
return ((sc->sc_freq[group][index] >> CPUF_FREQ_LUT_CORES_S)
sys/dev/fdt/sncodec.c
324
switch (di->index) {
sys/dev/fdt/tascodec.c
312
switch (di->index) {
sys/dev/fdt/virtio_mmio.c
437
virtio_mmio_read_device_config_1(struct virtio_softc *vsc, int index)
sys/dev/fdt/virtio_mmio.c
441
sc->sc_config_offset + index);
sys/dev/fdt/virtio_mmio.c
445
virtio_mmio_read_device_config_2(struct virtio_softc *vsc, int index)
sys/dev/fdt/virtio_mmio.c
449
sc->sc_config_offset + index);
sys/dev/fdt/virtio_mmio.c
453
virtio_mmio_read_device_config_4(struct virtio_softc *vsc, int index)
sys/dev/fdt/virtio_mmio.c
457
sc->sc_config_offset + index);
sys/dev/fdt/virtio_mmio.c
461
virtio_mmio_read_device_config_8(struct virtio_softc *vsc, int index)
sys/dev/fdt/virtio_mmio.c
467
sc->sc_config_offset + index + sizeof(uint32_t));
sys/dev/fdt/virtio_mmio.c
470
sc->sc_config_offset + index);
sys/dev/fdt/virtio_mmio.c
476
int index, uint8_t value)
sys/dev/fdt/virtio_mmio.c
480
sc->sc_config_offset + index, value);
sys/dev/fdt/virtio_mmio.c
485
int index, uint16_t value)
sys/dev/fdt/virtio_mmio.c
489
sc->sc_config_offset + index, value);
sys/dev/fdt/virtio_mmio.c
494
int index, uint32_t value)
sys/dev/fdt/virtio_mmio.c
498
sc->sc_config_offset + index, value);
sys/dev/fdt/virtio_mmio.c
503
int index, uint64_t value)
sys/dev/fdt/virtio_mmio.c
507
sc->sc_config_offset + index,
sys/dev/fdt/virtio_mmio.c
510
sc->sc_config_offset + index + sizeof(uint32_t),
sys/dev/i2c/adt7460.c
268
if (worklist[i].index >= 32768 &&
sys/dev/i2c/adt7460.c
269
sc->chip->ratio[worklist[i].index - 32768] == 0)
sys/dev/i2c/adt7460.c
291
if (worklist[i].index >= 32768) {
sys/dev/i2c/adt7460.c
292
ratio = sc->chip->ratio[worklist[i].index - 32768];
sys/dev/i2c/adt7460.c
97
u_short index;
sys/dev/i2c/maxim6690.c
150
int index)
sys/dev/i2c/maxim6690.c
166
sc->sc_sensor[index].value = 273150000 +
sys/dev/i2c/maxim6690.c
171
sc->sc_sensor[index].flags |= SENSOR_FINVALID;
sys/dev/i2c/tmp451.c
126
int index)
sys/dev/i2c/tmp451.c
137
sc->sc_sensor[index].value = 273150000 +
sys/dev/i2c/tmp451.c
139
sc->sc_sensor[index].value += sc->sc_offset[index];
sys/dev/i2c/tmp451.c
143
sc->sc_sensor[index].flags |= SENSOR_FINVALID;
sys/dev/ic/aacvar.h
484
#define AACQ_COMMAND_QUEUE(name, index) \
sys/dev/ic/aacvar.h
489
AACQ_INIT(sc, index); \
sys/dev/ic/aacvar.h
501
cm->cm_flags |= AAC_ON_ ## index; \
sys/dev/ic/aacvar.h
502
AACQ_ADD(cm->cm_sc, index); \
sys/dev/ic/aacvar.h
514
cm->cm_flags |= AAC_ON_ ## index; \
sys/dev/ic/aacvar.h
515
AACQ_ADD(cm->cm_sc, index); \
sys/dev/ic/aacvar.h
524
if ((cm->cm_flags & AAC_ON_ ## index) == 0) { \
sys/dev/ic/aacvar.h
527
AAC_ON_ ## index); \
sys/dev/ic/aacvar.h
531
cm->cm_flags &= ~AAC_ON_ ## index; \
sys/dev/ic/aacvar.h
532
AACQ_REMOVE(sc, index); \
sys/dev/ic/aacvar.h
540
if ((cm->cm_flags & AAC_ON_ ## index) == 0) { \
sys/dev/ic/aacvar.h
543
AAC_ON_ ## index); \
sys/dev/ic/aacvar.h
547
cm->cm_flags &= ~AAC_ON_ ## index; \
sys/dev/ic/aacvar.h
548
AACQ_REMOVE(cm->cm_sc, index); \
sys/dev/ic/ac97.c
1001
if (dip->index < as->num_source_info && dip->index >= 0) {
sys/dev/ic/ac97.c
1002
struct ac97_source_info *si = &as->source_info[dip->index];
sys/dev/ic/acx111.c
203
uint8_t index; /* XXX ?? */
sys/dev/ic/advlib.h
1247
#define ASC_SYN_INDEX_TO_PERIOD(sc, index) (u_int8_t)((sc)->sdtr_period_tbl[ (index) ])
sys/dev/ic/aic79xx.c
10175
ahd_targetcmd_offset(struct ahd_softc *ahd, u_int index)
sys/dev/ic/aic79xx.c
10177
return (((uint8_t *)&ahd->targetcmds[index])
sys/dev/ic/aic79xx.c
4223
u_int index;
sys/dev/ic/aic79xx.c
4226
index = 0;
sys/dev/ic/aic79xx.c
4228
while (index < ahd->msgout_len) {
sys/dev/ic/aic79xx.c
4229
if (ahd->msgout_buf[index] == MSG_EXTENDED) {
sys/dev/ic/aic79xx.c
4232
end_index = index + 1 + ahd->msgout_buf[index + 1];
sys/dev/ic/aic79xx.c
4233
if (ahd->msgout_buf[index+2] == msgval
sys/dev/ic/aic79xx.c
4239
} else if (ahd->msgout_index > index)
sys/dev/ic/aic79xx.c
4242
index = end_index;
sys/dev/ic/aic79xx.c
4243
} else if (ahd->msgout_buf[index] >= MSG_SIMPLE_TASK
sys/dev/ic/aic79xx.c
4244
&& ahd->msgout_buf[index] <= MSG_IGN_WIDE_RESIDUE) {
sys/dev/ic/aic79xx.c
4247
index += 2;
sys/dev/ic/aic79xx.c
4251
&& ahd->msgout_index > index
sys/dev/ic/aic79xx.c
4252
&& (ahd->msgout_buf[index] == msgval
sys/dev/ic/aic79xx.c
4253
|| ((ahd->msgout_buf[index] & MSG_IDENTIFYFLAG) != 0
sys/dev/ic/aic79xx.c
4256
index++;
sys/dev/ic/aic7xxx.c
2987
u_int index;
sys/dev/ic/aic7xxx.c
2990
index = 0;
sys/dev/ic/aic7xxx.c
2992
while (index < ahc->msgout_len) {
sys/dev/ic/aic7xxx.c
2993
if (ahc->msgout_buf[index] == MSG_EXTENDED) {
sys/dev/ic/aic7xxx.c
2996
end_index = index + 1 + ahc->msgout_buf[index + 1];
sys/dev/ic/aic7xxx.c
2997
if (ahc->msgout_buf[index+2] == msgval
sys/dev/ic/aic7xxx.c
3003
} else if (ahc->msgout_index > index)
sys/dev/ic/aic7xxx.c
3006
index = end_index;
sys/dev/ic/aic7xxx.c
3007
} else if (ahc->msgout_buf[index] >= MSG_SIMPLE_TASK
sys/dev/ic/aic7xxx.c
3008
&& ahc->msgout_buf[index] <= MSG_IGN_WIDE_RESIDUE) {
sys/dev/ic/aic7xxx.c
3011
index += 2;
sys/dev/ic/aic7xxx.c
3015
&& ahc->msgout_buf[index] == msgval
sys/dev/ic/aic7xxx.c
3016
&& ahc->msgout_index > index)
sys/dev/ic/aic7xxx.c
3018
index++;
sys/dev/ic/aic7xxx_inline.h
175
ahc_hscb_busaddr(struct ahc_softc *ahc, u_int index);
sys/dev/ic/aic7xxx_inline.h
181
u_int index);
sys/dev/ic/aic7xxx_inline.h
210
ahc_hscb_busaddr(struct ahc_softc *ahc, u_int index)
sys/dev/ic/aic7xxx_inline.h
213
+ (sizeof(struct hardware_scb) * index));
sys/dev/ic/aic7xxx_inline.h
227
ahc_targetcmd_offset(struct ahc_softc *ahc, u_int index)
sys/dev/ic/aic7xxx_inline.h
229
return (((uint8_t *)&ahc->targetcmds[index]) - ahc->qoutfifo);
sys/dev/ic/am7930.c
425
switch(dip->index) {
sys/dev/ic/ar5210.c
1232
ar5k_ar5210_set_mcast_filterindex(struct ath_hal *hal, u_int32_t index)
sys/dev/ic/ar5210.c
1234
if (index >= 64) {
sys/dev/ic/ar5210.c
1236
} else if (index >= 32) {
sys/dev/ic/ar5210.c
1238
(1 << (index - 32)));
sys/dev/ic/ar5210.c
1241
(1 << index));
sys/dev/ic/ar5210.c
1248
ar5k_ar5210_clear_mcast_filter_idx(struct ath_hal *hal, u_int32_t index)
sys/dev/ic/ar5210.c
1250
if (index >= 64) {
sys/dev/ic/ar5210.c
1252
} else if (index >= 32) {
sys/dev/ic/ar5210.c
1254
(1 << (index - 32)));
sys/dev/ic/ar5210.c
1257
(1 << index));
sys/dev/ic/ar5211.c
1339
ar5k_ar5211_set_mcast_filterindex(struct ath_hal *hal, u_int32_t index)
sys/dev/ic/ar5211.c
1341
if (index >= 64) {
sys/dev/ic/ar5211.c
1343
} else if (index >= 32) {
sys/dev/ic/ar5211.c
1345
(1 << (index - 32)));
sys/dev/ic/ar5211.c
1348
(1 << index));
sys/dev/ic/ar5211.c
1355
ar5k_ar5211_clear_mcast_filter_idx(struct ath_hal *hal, u_int32_t index)
sys/dev/ic/ar5211.c
1358
if (index >= 64) {
sys/dev/ic/ar5211.c
1360
} else if (index >= 32) {
sys/dev/ic/ar5211.c
1362
(1 << (index - 32)));
sys/dev/ic/ar5211.c
1365
(1 << index));
sys/dev/ic/ar5212.c
1598
ar5k_ar5212_set_mcast_filterindex(struct ath_hal *hal, u_int32_t index)
sys/dev/ic/ar5212.c
1600
if (index >= 64) {
sys/dev/ic/ar5212.c
1602
} else if (index >= 32) {
sys/dev/ic/ar5212.c
1604
(1 << (index - 32)));
sys/dev/ic/ar5212.c
1607
(1 << index));
sys/dev/ic/ar5212.c
1614
ar5k_ar5212_clear_mcast_filter_idx(struct ath_hal *hal, u_int32_t index)
sys/dev/ic/ar5212.c
1617
if (index >= 64) {
sys/dev/ic/ar5212.c
1619
} else if (index >= 32) {
sys/dev/ic/ar5212.c
1621
(1 << (index - 32)));
sys/dev/ic/ar5212.c
1624
(1 << index));
sys/dev/ic/ar5xxx.h
968
u_int32_t index); \
sys/dev/ic/ar5xxx.h
970
u_int32_t index); \
sys/dev/ic/arcofi.c
807
switch (md->index) {
sys/dev/ic/bcmgenet.c
192
genet_setup_txdesc(struct genet_softc *sc, int index, int flags,
sys/dev/ic/bcmgenet.c
199
WR4(sc, GENET_TX_DESC_ADDRESS_LO(index), (uint32_t)paddr);
sys/dev/ic/bcmgenet.c
200
WR4(sc, GENET_TX_DESC_ADDRESS_HI(index), (uint32_t)(paddr >> 32));
sys/dev/ic/bcmgenet.c
201
WR4(sc, GENET_TX_DESC_STATUS(index), status);
sys/dev/ic/bcmgenet.c
205
genet_setup_txbuf(struct genet_softc *sc, int index, struct mbuf *m)
sys/dev/ic/bcmgenet.c
222
sc->sc_tx.buf_map[index].map, m, BUS_DMA_WRITE | BUS_DMA_NOWAIT);
sys/dev/ic/bcmgenet.c
227
sc->sc_tx.buf_map[index].map, m,
sys/dev/ic/bcmgenet.c
233
segs = sc->sc_tx.buf_map[index].map->dm_segs;
sys/dev/ic/bcmgenet.c
234
nsegs = sc->sc_tx.buf_map[index].map->dm_nsegs;
sys/dev/ic/bcmgenet.c
240
for (cur = index, i = 0; i < nsegs; i++) {
sys/dev/ic/bcmgenet.c
255
bus_dmamap_sync(sc->sc_tx.buf_tag, sc->sc_tx.buf_map[index].map,
sys/dev/ic/bcmgenet.c
256
0, sc->sc_tx.buf_map[index].map->dm_mapsize, BUS_DMASYNC_PREWRITE);
sys/dev/ic/bcmgenet.c
262
genet_setup_rxdesc(struct genet_softc *sc, int index,
sys/dev/ic/bcmgenet.c
265
WR4(sc, GENET_RX_DESC_ADDRESS_LO(index), (uint32_t)paddr);
sys/dev/ic/bcmgenet.c
266
WR4(sc, GENET_RX_DESC_ADDRESS_HI(index), (uint32_t)(paddr >> 32));
sys/dev/ic/bcmgenet.c
270
genet_setup_rxbuf(struct genet_softc *sc, int index, struct mbuf *m)
sys/dev/ic/bcmgenet.c
275
sc->sc_rx.buf_map[index].map, m, BUS_DMA_READ | BUS_DMA_NOWAIT);
sys/dev/ic/bcmgenet.c
279
bus_dmamap_sync(sc->sc_rx.buf_tag, sc->sc_rx.buf_map[index].map,
sys/dev/ic/bcmgenet.c
280
0, sc->sc_rx.buf_map[index].map->dm_mapsize,
sys/dev/ic/bcmgenet.c
283
sc->sc_rx.buf_map[index].mbuf = m;
sys/dev/ic/bcmgenet.c
284
genet_setup_rxdesc(sc, index,
sys/dev/ic/bcmgenet.c
285
sc->sc_rx.buf_map[index].map->dm_segs[0].ds_addr,
sys/dev/ic/bcmgenet.c
286
sc->sc_rx.buf_map[index].map->dm_segs[0].ds_len);
sys/dev/ic/bcmgenet.c
307
uint32_t cidx, index, total;
sys/dev/ic/bcmgenet.c
315
index = sc->sc_rx.cidx & (RX_DESC_COUNT - 1);
sys/dev/ic/bcmgenet.c
323
error = genet_setup_rxbuf(sc, index, m);
sys/dev/ic/bcmgenet.c
332
index = RX_NEXT(index);
sys/dev/ic/bcmgenet.c
686
int index, len, n;
sys/dev/ic/bcmgenet.c
694
index = sc->sc_rx.next;
sys/dev/ic/bcmgenet.c
696
status = RD4(sc, GENET_RX_DESC_STATUS(index));
sys/dev/ic/bcmgenet.c
701
bus_dmamap_sync(sc->sc_rx.buf_tag, sc->sc_rx.buf_map[index].map,
sys/dev/ic/bcmgenet.c
702
0, sc->sc_rx.buf_map[index].map->dm_mapsize,
sys/dev/ic/bcmgenet.c
704
bus_dmamap_unload(sc->sc_rx.buf_tag, sc->sc_rx.buf_map[index].map);
sys/dev/ic/bcmgenet.c
707
n, index, status, len, len - ETHER_ALIGN);
sys/dev/ic/bcmgenet.c
709
m = sc->sc_rx.buf_map[index].mbuf;
sys/dev/ic/bcmgenet.c
710
sc->sc_rx.buf_map[index].mbuf = NULL;
sys/dev/ic/bcmgenet.c
726
index = RX_NEXT(index);
sys/dev/ic/bcmgenet.c
730
sc->sc_rx.next = index;
sys/dev/ic/bcmgenet.c
780
int queued, nsegs, index, cnt;
sys/dev/ic/bcmgenet.c
782
index = sc->sc_tx.pidx & (TX_DESC_COUNT - 1);
sys/dev/ic/bcmgenet.c
794
nsegs = genet_setup_txbuf(sc, index, m);
sys/dev/ic/bcmgenet.c
804
index = TX_SKIP(index, nsegs);
sys/dev/ic/bt463.c
350
u_int count, index;
sys/dev/ic/bt463.c
353
index = cmapp->index;
sys/dev/ic/bt463.c
356
if (index >= BT463_NCMAP_ENTRIES || count > BT463_NCMAP_ENTRIES - index)
sys/dev/ic/bt463.c
361
if ((error = copyin(cmapp->red, &data->cmap_r[index], count)) != 0) {
sys/dev/ic/bt463.c
365
if ((error = copyin(cmapp->green, &data->cmap_g[index], count)) != 0) {
sys/dev/ic/bt463.c
369
if ((error = copyin(cmapp->blue, &data->cmap_b[index], count)) != 0) {
sys/dev/ic/bt463.c
386
u_int count, index;
sys/dev/ic/bt463.c
390
index = cmapp->index;
sys/dev/ic/bt463.c
392
if (index >= BT463_NCMAP_ENTRIES || count > BT463_NCMAP_ENTRIES - index)
sys/dev/ic/bt463.c
395
error = copyout(&data->cmap_r[index], cmapp->red, count);
sys/dev/ic/bt463.c
398
error = copyout(&data->cmap_g[index], cmapp->green, count);
sys/dev/ic/bt463.c
401
error = copyout(&data->cmap_b[index], cmapp->blue, count);
sys/dev/ic/bt463.c
408
u_int index, count;
sys/dev/ic/bt463.c
412
index = cursorp->cmap.index;
sys/dev/ic/bt463.c
415
if (index >= 2 || count > 2 - index)
sys/dev/ic/bt463.c
432
int count, index;
sys/dev/ic/bt463.c
436
index = cursorp->cmap.index;
sys/dev/ic/bt463.c
437
copyin(cursorp->cmap.red, &data->curcmap_r[index], count);
sys/dev/ic/bt463.c
438
copyin(cursorp->cmap.green, &data->curcmap_g[index], count);
sys/dev/ic/bt463.c
439
copyin(cursorp->cmap.blue, &data->curcmap_b[index], count);
sys/dev/ic/bt463.c
450
cursorp->cmap.index = 0; /* DOCMAP */
sys/dev/ic/bt485.c
258
u_int count, index;
sys/dev/ic/bt485.c
267
index = cmapp->index;
sys/dev/ic/bt485.c
270
if (index >= 256 || count > 256 - index)
sys/dev/ic/bt485.c
275
if ((error = copyin(cmapp->red, &data->cmap_r[index], count)) != 0) {
sys/dev/ic/bt485.c
279
if ((error = copyin(cmapp->green, &data->cmap_g[index], count)) != 0) {
sys/dev/ic/bt485.c
283
if ((error = copyin(cmapp->blue, &data->cmap_b[index], count)) != 0) {
sys/dev/ic/bt485.c
303
u_int count, index;
sys/dev/ic/bt485.c
306
if (cmapp->index >= 256 || cmapp->count > 256 - cmapp->index)
sys/dev/ic/bt485.c
310
index = cmapp->index;
sys/dev/ic/bt485.c
312
error = copyout(&data->cmap_r[index], cmapp->red, count);
sys/dev/ic/bt485.c
315
error = copyout(&data->cmap_g[index], cmapp->green, count);
sys/dev/ic/bt485.c
318
error = copyout(&data->cmap_b[index], cmapp->blue, count);
sys/dev/ic/bt485.c
326
u_int count, index;
sys/dev/ic/bt485.c
337
index = cursorp->cmap.index;
sys/dev/ic/bt485.c
339
if (index >= 2 || count > 2 - index)
sys/dev/ic/bt485.c
364
index = cursorp->cmap.index;
sys/dev/ic/bt485.c
367
&data->curcmap_r[index], count)) != 0) {
sys/dev/ic/bt485.c
372
&data->curcmap_g[index], count)) != 0) {
sys/dev/ic/bt485.c
377
&data->curcmap_b[index], count)) != 0) {
sys/dev/ic/bt485.c
421
cursorp->cmap.index = 0; /* DOCMAP */
sys/dev/ic/bt8xx.h
385
u_int index; /* Index in supported pixfmt list */
sys/dev/ic/bt8xx.h
447
short index;
sys/dev/ic/bwfm.c
2868
key.index = htole32(k->k_id);
sys/dev/ic/bwfm.c
2935
key.index = htole32(k->k_id);
sys/dev/ic/bwfmreg.h
629
uint32_t index;
sys/dev/ic/dwhdmi.c
802
switch (di->index) {
sys/dev/ic/dwhdmi.c
804
di->mixer_class = di->index;
sys/dev/ic/dwhdmi.c
811
di->mixer_class = di->index;
sys/dev/ic/gdt_common.c
950
gdt_sync_event(struct gdt_softc *sc, int service, u_int8_t index,
sys/dev/ic/gdt_common.c
954
("gdt_sync_event(%p, %d, %d, %p) ", sc, service, index, xs));
sys/dev/ic/hmereg.h
268
#define HME_XD_FLAGS(base, index) ((base) + ((index) * HME_XD_SIZE) + 0)
sys/dev/ic/hmereg.h
269
#define HME_XD_ADDR(base, index) ((base) + ((index) * HME_XD_SIZE) + 4)
sys/dev/ic/ibm561.c
259
u_int count, index;
sys/dev/ic/ibm561.c
263
index = cmapp->index;
sys/dev/ic/ibm561.c
266
if (index >= IBM561_NCMAP_ENTRIES ||
sys/dev/ic/ibm561.c
267
count > IBM561_NCMAP_ENTRIES - index)
sys/dev/ic/ibm561.c
271
if ((error = copyin(cmapp->red, &data->cmap_r[index], count)) != 0) {
sys/dev/ic/ibm561.c
275
if ((error = copyin(cmapp->green, &data->cmap_g[index], count)) != 0) {
sys/dev/ic/ibm561.c
279
if ((error = copyin(cmapp->blue, &data->cmap_b[index], count)) != 0) {
sys/dev/ic/ibm561.c
293
u_int count, index;
sys/dev/ic/ibm561.c
296
if (cmapp->index >= IBM561_NCMAP_ENTRIES ||
sys/dev/ic/ibm561.c
297
cmapp->count > IBM561_NCMAP_ENTRIES - cmapp->index)
sys/dev/ic/ibm561.c
300
index = cmapp->index;
sys/dev/ic/ibm561.c
301
error = copyout(&data->cmap_r[index], cmapp->red, count);
sys/dev/ic/ibm561.c
304
error = copyout(&data->cmap_g[index], cmapp->green, count);
sys/dev/ic/ibm561.c
307
error = copyout(&data->cmap_b[index], cmapp->blue, count);
sys/dev/ic/p9000.h
152
#define P9100_RAMDAC_REGISTER(index) (0x00000200 + ((index) << 2))
sys/dev/ic/p9000.h
184
#define P9000_PE_PIXEL1(index) (0x00000080 + ((index) << 2))
sys/dev/ic/p9000.h
267
#define P9000_DE_PATTERN(index) (0x00000280 + ((index) << 2))
sys/dev/ic/p9000.h
270
#define P9000_DE_USER(index) (0x00000290 + ((index) << 2))
sys/dev/ic/p9000.h
296
#define P9000_DC_COORD(index) (0x00001000 + ((index) * 0x40))
sys/dev/ic/pcdisplay_chars.c
329
pcdisplay_mapchar(void *id, int uni, unsigned int *index)
sys/dev/ic/pcdisplay_chars.c
334
*index = uni;
sys/dev/ic/pcdisplay_chars.c
337
*index = isomappings[uni - 128];
sys/dev/ic/pcdisplay_chars.c
343
*index = unimappings[i].ibm;
sys/dev/ic/pcdisplay_chars.c
349
*index = replacements[i].ibm;
sys/dev/ic/pcdisplay_chars.c
353
*index = NOTPRINTABLE;
sys/dev/ic/sti.c
1205
idx = cmapp->index;
sys/dev/ic/sti.c
1221
idx = cmapp->index;
sys/dev/ic/sti.c
1349
sti_mapchar(void *v, int uni, u_int *index)
sys/dev/ic/sti.c
1372
*index = '?';
sys/dev/ic/sti.c
1376
*index = c;
sys/dev/ic/sti.c
1409
a.in.index = uc;
sys/dev/ic/sti.c
970
a.in.index = uc;
sys/dev/ic/stireg.h
331
u_int16_t index; /* character index in the font */
sys/dev/ic/ti.c
446
u_int32_t index;
sys/dev/ic/ti.c
448
index = sc->ti_cmd_saved_prodidx;
sys/dev/ic/ti.c
449
CSR_WRITE_4(sc, TI_GCR_CMDRING + (index * 4), *(u_int32_t *)(cmd));
sys/dev/ic/ti.c
450
TI_INC(index, TI_CMD_RING_CNT);
sys/dev/ic/ti.c
451
CSR_WRITE_4(sc, TI_MB_CMDPROD_IDX, index);
sys/dev/ic/ti.c
452
sc->ti_cmd_saved_prodidx = index;
sys/dev/ic/ti.c
463
u_int32_t index;
sys/dev/ic/ti.c
466
index = sc->ti_cmd_saved_prodidx;
sys/dev/ic/ti.c
467
CSR_WRITE_4(sc, TI_GCR_CMDRING + (index * 4), *(u_int32_t *)(cmd));
sys/dev/ic/ti.c
468
TI_INC(index, TI_CMD_RING_CNT);
sys/dev/ic/ti.c
470
CSR_WRITE_4(sc, TI_GCR_CMDRING + (index * 4),
sys/dev/ic/ti.c
472
TI_INC(index, TI_CMD_RING_CNT);
sys/dev/ic/ti.c
474
CSR_WRITE_4(sc, TI_MB_CMDPROD_IDX, index);
sys/dev/ic/ti.c
475
sc->ti_cmd_saved_prodidx = index;
sys/dev/ic/trm.c
2885
int syncXfer, index;
sys/dev/ic/trm.c
2887
index = pDCB->SyncPeriod & ~(WIDE_SYNC | ALT_SYNC);
sys/dev/ic/trm.c
2898
syncXfer = 100000 / (trm_clock_period[index] * 4);
sys/dev/ic/vga.c
1104
_vga_mapchar(void *id, struct vgafont *font, int uni, unsigned int *index)
sys/dev/ic/vga.c
1110
*index = uni;
sys/dev/ic/vga.c
1113
*index = '?';
sys/dev/ic/vga.c
1118
return (pcdisplay_mapchar(id, uni, index));
sys/dev/ic/vga.c
1123
*index = '?';
sys/dev/ic/vga.c
1129
vga_mapchar(void *id, int uni, unsigned int *index)
sys/dev/ic/vga.c
1145
*index = idx2 | 0x0800; /* attribute bit 3 */
sys/dev/ic/vga.c
1148
*index = idx1;
sys/dev/ic/vga.c
880
if (data->index < 0) {
sys/dev/ic/vga.c
885
slot = data->index;
sys/dev/ic/vga.c
911
data->index = slot;
sys/dev/ic/vga.c
922
if (data->index < 0 || data->index >= VGA_MAXFONT)
sys/dev/ic/vga.c
925
if ((f = vc->vc_fonts[data->index]) == NULL)
sys/dev/isa/ess.c
1751
sc->sc_model, dip->index));
sys/dev/isa/ess.c
1762
switch (dip->index) {
sys/dev/isa/ess.c
1960
switch (dip->index) {
sys/dev/isa/ess.c
2205
di.index = ESS_RECORD_SOURCE;
sys/dev/isa/ess.c
2236
di.index = ESS_RECORD_SOURCE;
sys/dev/isa/gus.c
2671
DPRINTF(("gusmax_query_devinfo: index=%d\n", dip->index));
sys/dev/isa/gus.c
2673
switch(dip->index) {
sys/dev/isa/gus.c
2887
DPRINTF(("gusmax_query_devinfo: index=%d\n", dip->index));
sys/dev/isa/gus.c
2889
if (!HAS_MIXER(sc) && dip->index > GUSICS_MASTER_MUTE)
sys/dev/isa/gus.c
2892
switch(dip->index) {
sys/dev/isa/sbdsp.c
1783
sc->sc_mixer_model, dip->index));
sys/dev/isa/sbdsp.c
1785
if (dip->index < 0)
sys/dev/isa/sbdsp.c
1795
switch (dip->index) {
sys/dev/isa/sbdsp.c
1842
switch (dip->index) {
sys/dev/isa/sbdsp.c
1962
switch(dip->index) {
sys/dev/isa/viasio.c
101
bus_space_write_1(iot, ioh, VT1211_INDEX, index);
sys/dev/isa/viasio.c
106
viasio_conf_write(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t index,
sys/dev/isa/viasio.c
109
bus_space_write_1(iot, ioh, VT1211_INDEX, index);
sys/dev/isa/viasio.c
99
viasio_conf_read(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t index)
sys/dev/isa/wbsio.c
73
wbsio_conf_read(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t index)
sys/dev/isa/wbsio.c
75
bus_space_write_1(iot, ioh, WBSIO_INDEX, index);
sys/dev/isa/wbsio.c
80
wbsio_conf_write(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t index,
sys/dev/isa/wbsio.c
83
bus_space_write_1(iot, ioh, WBSIO_INDEX, index);
sys/dev/mii/etphy.c
103
uint16_t index;
sys/dev/mii/etphy.c
284
PHY_WRITE(sc, ETPHY_INDEX, dsp->index);
sys/dev/mii/etphy.c
287
PHY_WRITE(sc, ETPHY_INDEX, dsp->index);
sys/dev/pci/autri.c
218
autri_read_codec(void *sc_, u_int8_t index, u_int16_t *data)
sys/dev/pci/autri.c
271
TWRITE4(sc, addr, (index & 0x7f) | cmd);
sys/dev/pci/autri.c
293
autri_write_codec(void *sc_, u_int8_t index, u_int16_t data)
sys/dev/pci/autri.c
345
TWRITE4(sc, addr, (data << 16) | (index & 0x7f) | cmd);
sys/dev/pci/azalia.c
2304
azalia_codec_find_defdac(codec_t *this, int index, int depth)
sys/dev/pci/azalia.c
2309
w = &this->w[index];
sys/dev/pci/azalia.c
2314
return index;
sys/dev/pci/azalia.c
2328
index = w->connections[i];
sys/dev/pci/azalia.c
2329
if (!azalia_widget_enabled(this, index))
sys/dev/pci/azalia.c
2331
ret = azalia_codec_find_defdac(this, index,
sys/dev/pci/azalia.c
2346
index = w->connections[w->selected];
sys/dev/pci/azalia.c
2347
if (VALID_WIDGET_NID(index, this)) {
sys/dev/pci/azalia.c
2349
index, depth);
sys/dev/pci/azalia.c
2360
azalia_codec_find_defadc_sub(codec_t *this, nid_t node, int index, int depth)
sys/dev/pci/azalia.c
2365
w = &this->w[index];
sys/dev/pci/azalia.c
2367
return index;
sys/dev/pci/azalia.c
2400
index = w->connections[w->selected];
sys/dev/pci/azalia.c
2401
if (VALID_WIDGET_NID(index, this)) {
sys/dev/pci/azalia.c
2403
node, index, depth);
sys/dev/pci/azalia.c
2413
azalia_codec_find_defadc(codec_t *this, int index, int depth)
sys/dev/pci/azalia.c
2419
j = azalia_codec_find_defadc_sub(this, index,
sys/dev/pci/azalia.c
3446
azalia_widget_check_conn(codec_t *codec, int index, int depth)
sys/dev/pci/azalia.c
3451
w = &codec->w[index];
sys/dev/pci/azalia.c
3740
int err, index;
sys/dev/pci/azalia.c
3756
for (index = 0; index < HDA_BDL_MAX; index++) {
sys/dev/pci/azalia.c
3757
bdlist[index].low = htole32(dmaaddr);
sys/dev/pci/azalia.c
3758
bdlist[index].high = htole32(PTR_UPPER32(dmaaddr));
sys/dev/pci/azalia.c
3759
bdlist[index].length = htole32(this->blk);
sys/dev/pci/azalia.c
3760
bdlist[index].flags = htole32(BDLIST_ENTRY_IOC);
sys/dev/pci/azalia.c
3763
index++;
sys/dev/pci/azalia.c
3769
__func__, this->bufsize, this->fmt, index));
sys/dev/pci/azalia.c
3774
STR_WRITE_2(this, LVI, (index - 1) & HDA_SD_LVI_LVI);
sys/dev/pci/azalia.c
4112
if (mdev->index < 0 || mdev->index >= co->nmixers)
sys/dev/pci/azalia.c
4114
*mdev = co->mixers[mdev->index].devinfo;
sys/dev/pci/azalia_codec.c
1468
if (d->index != 0 && d->index != i)
sys/dev/pci/azalia_codec.c
1470
d->index, i);
sys/dev/pci/azalia_codec.c
1472
d->index = i;
sys/dev/pci/azalia_codec.c
704
azalia_codec_fnode(codec_t *this, nid_t node, int index, int depth)
sys/dev/pci/azalia_codec.c
709
w = &this->w[index];
sys/dev/pci/azalia_codec.c
711
return index;
sys/dev/pci/azalia_codec.c
861
m->devinfo.index = AZ_CLASS_INPUT;
sys/dev/pci/azalia_codec.c
871
m->devinfo.index = AZ_CLASS_OUTPUT;
sys/dev/pci/azalia_codec.c
881
m->devinfo.index = AZ_CLASS_RECORD;
sys/dev/pci/bktr/bktr_core.c
2248
pixfmt = pf_pub->index;
sys/dev/pci/bktr/bktr_core.c
2257
pf_pub->index = pixfmt;
sys/dev/pci/bktr/bktr_tuner.c
1000
chnlset->max_channel=freqTable[chnlset->index].ptr[0];
sys/dev/pci/bktr/bktr_tuner.c
993
if (( chnlset->index < CHNLSET_MIN ) ||
sys/dev/pci/bktr/bktr_tuner.c
994
( chnlset->index > CHNLSET_MAX ))
sys/dev/pci/bktr/bktr_tuner.c
997
memcpy(&chnlset->name, &freqTable[chnlset->index].name,
sys/dev/pci/cmpci.c
304
cmpci_index_to_rate(int index)
sys/dev/pci/cmpci.c
306
return cmpci_rate_table[index].rate;
sys/dev/pci/cmpci.c
310
cmpci_index_to_divider(int index)
sys/dev/pci/cmpci.c
312
return cmpci_rate_table[index].divider;
sys/dev/pci/cmpci.c
871
switch (dip->index) {
sys/dev/pci/cmpci.c
878
dip->mixer_class = dip->index;
sys/dev/pci/cmpci.c
880
mixer_classes[dip->index - CMPCI_INPUT_CLASS],
sys/dev/pci/cmpci.c
894
dip->next = dip->index + 6; /* CMPCI_xxx_MUTE */
sys/dev/pci/cmpci.c
895
strlcpy(dip->label.name, mixer_port_names[dip->index],
sys/dev/pci/cmpci.c
897
dip->un.v.num_channels = (dip->index == CMPCI_MIC_VOL ? 1 : 2);
sys/dev/pci/cmpci.c
912
dip->prev = dip->index - 6; /* CMPCI_xxx_VOL */
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1492
unsigned long index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1494
xa_for_each(&numa_info_xa, index, numa_info) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1496
xa_erase(&numa_info_xa, index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c
190
.drm_render_minor = adev_to_drm(adev)->render->index,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1022
int index = GetIndexIntoMasterTable(COMMAND, ComputeMemoryEnginePLL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1028
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1041
index, (uint32_t *)&args, sizeof(args)))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1063
index, (uint32_t *)&args, sizeof(args)))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1083
index, (uint32_t *)&args, sizeof(args)))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1096
index, (uint32_t *)&args, sizeof(args)))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1120
int index = GetIndexIntoMasterTable(COMMAND, ComputeMemoryClockParam);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1126
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1140
index, (uint32_t *)&args, sizeof(args)))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1171
int index = GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1183
return amdgpu_atom_execute_table(adev->mode_info.atom_context, index,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1191
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1200
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
121
int index = GetIndexIntoMasterTable(DATA, GPIO_I2C_Info);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1224
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1227
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1239
index, (uint32_t *)&args, sizeof(args)))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1250
index, (uint32_t *)&args, sizeof(args)))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
127
if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1304
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1310
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1348
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1353
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1384
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1391
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1455
int index = GetIndexIntoMasterTable(DATA, VRAM_Info);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1463
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
152
int index = GetIndexIntoMasterTable(DATA, GPIO_I2C_Info);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1547
int index = GetIndexIntoMasterTable(DATA, GPUVirtualizationInfo);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1551
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
158
if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1667
int index = GetIndexIntoMasterTable(DATA, VRAM_UsageByFirmware);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1674
if (amdgpu_atom_parse_data_header(ctx, index, NULL, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
1840
int index)
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
185
int index = GetIndexIntoMasterTable(DATA, GPIO_Pin_LUT);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
194
if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
288
int index = GetIndexIntoMasterTable(DATA, Object_Header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
294
if (!amdgpu_atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
315
int index = GetIndexIntoMasterTable(DATA, Object_Header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
331
if (!amdgpu_atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset))
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
581
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
586
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
734
int index = GetIndexIntoMasterTable(DATA, GFX_Info);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
739
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
773
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
779
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
800
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
807
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
88
int index = GetIndexIntoMasterTable(DATA, GPIO_I2C_Info);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
904
int index = GetIndexIntoMasterTable(DATA, ASIC_InternalSS_Info);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
921
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
96
if (amdgpu_atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
176
int index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
184
if (amdgpu_atom_parse_data_header(ctx, index, NULL, &frev, &crev, &data_offset)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
302
int index, i = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
316
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
322
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1, umc_info);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
325
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1, vram_info);
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
329
index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
50
int index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
551
int index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
56
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
560
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
564
index, &size, &frev, &crev, &data_offset)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
60
index, &size, &frev, &crev, &data_offset)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
660
int index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
665
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
669
index, &size, &frev, &crev,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
721
int ret = -EINVAL, index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
723
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
725
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
742
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
744
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
768
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
770
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
794
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
796
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
821
int index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
825
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
827
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
90
int index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
910
int index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
915
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
918
if (!amdgpu_atom_parse_data_header(ctx, index, &size,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
94
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
961
int index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
971
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
973
if (amdgpu_atom_parse_data_header(ctx, index, NULL,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
987
index = get_index_into_master_table(atom_master_list_of_command_functions_v2_1,
sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
989
if (amdgpu_atom_parse_cmd_header(mode_info->atom_context, index, &frev, &crev)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
100
return WREG32_GC_CAC(index, value);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
102
return WREG32_SE_CAC(index, value);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
59
unsigned int index)
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
64
return RREG32_PCIE(index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
66
return RREG32_SMC(index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
68
return RREG32_UVD_CTX(index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
70
return RREG32_DIDT(index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
72
return RREG32_GC_CAC(index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
74
return RREG32_SE_CAC(index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
87
unsigned int index, uint32_t value)
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
92
return WREG32_PCIE(index, value);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
94
return WREG32_SMC(index, value);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
96
return WREG32_UVD_CTX(index, value);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
98
return WREG32_DIDT(index, value);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
1210
unsigned long index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
1221
drm_exec_for_each_locked_object(&p->exec, index, obj) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
1289
unsigned long index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
1339
drm_exec_for_each_locked_object(&p->exec, index, gobj) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
863
unsigned long index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
970
drm_exec_for_each_locked_object(&p->exec, index, obj) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_dev_coredump.c
370
dev->primary->index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
4350
int index = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
4369
index++;
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
4379
switch (index++) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
4400
if (index == 1) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
1679
unsigned int pipe = crtc->index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell.h
351
u32 amdgpu_mm_rdoorbell(struct amdgpu_device *adev, u32 index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell.h
352
void amdgpu_mm_wdoorbell(struct amdgpu_device *adev, u32 index, u32 v);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell.h
353
u64 amdgpu_mm_rdoorbell64(struct amdgpu_device *adev, u32 index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell.h
354
void amdgpu_mm_wdoorbell64(struct amdgpu_device *adev, u32 index, u64 v);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell.h
367
#define RDOORBELL32(index) amdgpu_mm_rdoorbell(adev, (index))
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell.h
368
#define WDOORBELL32(index, v) amdgpu_mm_wdoorbell(adev, (index), (v))
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell.h
369
#define RDOORBELL64(index) amdgpu_mm_rdoorbell64(adev, (index))
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell.h
370
#define WDOORBELL64(index, v) amdgpu_mm_wdoorbell64(adev, (index), (v))
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
103
void amdgpu_mm_wdoorbell64(struct amdgpu_device *adev, u32 index, u64 v)
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
108
if (index < adev->doorbell.num_kernel_doorbells)
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
109
atomic64_set((atomic64_t *)(adev->doorbell.cpu_addr + index), v);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
112
"writing beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
36
u32 amdgpu_mm_rdoorbell(struct amdgpu_device *adev, u32 index)
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
41
if (index < adev->doorbell.num_kernel_doorbells)
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
42
return readl(adev->doorbell.cpu_addr + index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
45
index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
59
void amdgpu_mm_wdoorbell(struct amdgpu_device *adev, u32 index, u32 v)
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
64
if (index < adev->doorbell.num_kernel_doorbells)
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
65
writel(v, adev->doorbell.cpu_addr + index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
68
"writing beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
80
u64 amdgpu_mm_rdoorbell64(struct amdgpu_device *adev, u32 index)
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
85
if (index < adev->doorbell.num_kernel_doorbells)
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
86
return atomic64_read((atomic64_t *)(adev->doorbell.cpu_addr + index));
sys/dev/pci/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
89
index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_eviction_fence.c
52
unsigned long index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_eviction_fence.c
80
drm_exec_for_each_locked_object(exec, index, obj) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c
446
uint64_t index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c
453
index = ALIGN(adev->uvd.fw->size, 8);
sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c
454
ring->fence_drv.cpu_addr = adev->uvd.inst[ring->me].cpu_addr + index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c
455
ring->fence_drv.gpu_addr = adev->uvd.inst[ring->me].gpu_addr + index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1575
unsigned int pipe = crtc->index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1643
unsigned int pipe = crtc->index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1660
unsigned int pipe = crtc->index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1790
query_fw.index = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1799
query_fw.index = 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1809
query_fw.index = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1835
query_fw.index = i;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1859
query_fw.index = i;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
273
if (query_fw->index == 0) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
276
} else if (query_fw->index == 1) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
287
switch (query_fw->index) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
324
if (query_fw->index >= adev->sdma.num_instances)
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
326
fw_info->ver = adev->sdma.instance[query_fw->index].fw_version;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
327
fw_info->feature = adev->sdma.instance[query_fw->index].feature_version;
sys/dev/pci/drm/amd/amdgpu/amdgpu_pmu.c
546
adev_to_drm(pmu_entry->adev)->primary->index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
3434
int index)
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
3474
write_frame->fence_value = index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
698
int index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
710
index = atomic_inc_return(&psp->fence_value);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
711
ret = psp_ring_cmd_submit(psp, psp->cmd_buf_mc_addr, fence_mc_addr, index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
718
while (*((unsigned int *)psp->fence_buf) != index) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.h
592
int index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.h
192
unsigned int index : 16;
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
53
int amdgpu_sdma_get_index_from_ring(struct amdgpu_ring *ring, uint32_t *index)
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
61
*index = i;
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
74
uint32_t index = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
81
r = amdgpu_sdma_get_index_from_ring(ring, &index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
83
if (r || index > 31)
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
88
index * AMDGPU_CSA_SDMA_SIZE;
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.h
183
int amdgpu_sdma_get_index_from_ring(struct amdgpu_ring *ring, uint32_t *index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.c
310
uint64_t index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.c
361
index = amdgpu_doorbell_index_on_bar(uq_mgr->adev, db_obj->obj,
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.c
364
"[Usermode queues] doorbell index=%lld\n", index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.c
366
return index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.c
487
uint64_t index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.c
550
index = amdgpu_userq_get_doorbell_index(uq_mgr, &db_info, filp);
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.c
551
if (index == (uint64_t)-EINVAL) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.c
558
queue->doorbell_index = index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
143
unsigned long index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
149
xa_for_each(xa, index, fence_drv) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
150
__xa_erase(xa, index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
208
unsigned long index, flags;
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
226
xa_for_each(xa, index, xa_fence_drv)
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
228
__xa_erase(xa, index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
281
unsigned long index, count = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
285
xa_for_each(&userq->fence_drv_xa, index, stored_fence_drv)
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
294
xa_for_each(&userq->fence_drv_xa, index, stored_fence_drv) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
296
__xa_erase(&userq->fence_drv_xa, index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
963
u32 index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
988
r = xa_alloc(&waitq->fence_drv_xa, &index, fence_drv,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
602
unsigned int size, int32_t index)
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
604
int64_t offset = ((uint64_t)size) * ((int64_t)index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
614
if (index >= 0) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
626
addr, lo, hi, size, index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
652
int lo, int hi, unsigned int size, uint32_t index)
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
659
if (index == 0xffffffff)
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
660
index = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
664
addr += ((uint64_t)size) * ((uint64_t)index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
669
addr, lo, hi, size, index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
682
addr -= ((uint64_t)size) * ((uint64_t)index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
33
int index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
42
index = adev->virt.vf_errors.write_count % AMDGPU_VF_ERROR_ENTRY_SIZE;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
43
adev->virt.vf_errors.code [index] = error_code;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
44
adev->virt.vf_errors.flags [index] = error_flags;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
45
adev->virt.vf_errors.data [index] = error_data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
55
int index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
76
index =adev->virt.vf_errors.read_count % AMDGPU_VF_ERROR_ENTRY_SIZE;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
77
data1 = AMDGIM_ERROR_CODE_FLAGS_TO_MAILBOX(adev->virt.vf_errors.code[index],
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
78
adev->virt.vf_errors.flags[index]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
79
data2 = adev->virt.vf_errors.data[index] & 0xFFFFFFFF;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vf_error.c
80
data3 = (adev->virt.vf_errors.data[index] >> 32) & 0xFFFFFFFF;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
500
uint32_t index = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
507
index * AMDGPU_CSA_VPE_SIZE;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
778
uint32_t index, i;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
782
ret = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
788
adev->wb.wb[index] = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
789
wb_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
804
if (le32_to_cpu(adev->wb.wb[index]) == test_pattern)
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
811
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
822
uint32_t index;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
826
ret = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
832
adev->wb.wb[index] = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
833
wb_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
859
ret = (le32_to_cpu(adev->wb.wb[index]) == test_pattern) ? 0 : -EINVAL;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vpe.c
865
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.c
450
file_priv->minor->index, i);
sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.c
454
file_priv->minor->index, i);
sys/dev/pci/drm/amd/amdgpu/atom.c
111
uint32_t index, uint32_t data)
sys/dev/pci/drm/amd/amdgpu/atom.c
1221
static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, int params_size)
sys/dev/pci/drm/amd/amdgpu/atom.c
1223
int base = CU16(ctx->cmd_table + 4 + 2 * index);
sys/dev/pci/drm/amd/amdgpu/atom.c
1291
int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_size)
sys/dev/pci/drm/amd/amdgpu/atom.c
1307
r = amdgpu_atom_execute_table_locked(ctx, index, params, params_size);
sys/dev/pci/drm/amd/amdgpu/atom.c
145
((index >> CU8(base + 2)) &
sys/dev/pci/drm/amd/amdgpu/atom.c
1618
bool amdgpu_atom_parse_data_header(struct atom_context *ctx, int index,
sys/dev/pci/drm/amd/amdgpu/atom.c
1622
int offset = index * 2 + 4;
sys/dev/pci/drm/amd/amdgpu/atom.c
1626
if (!mdt[index])
sys/dev/pci/drm/amd/amdgpu/atom.c
1639
bool amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t *frev,
sys/dev/pci/drm/amd/amdgpu/atom.c
1642
int offset = index * 2 + 4;
sys/dev/pci/drm/amd/amdgpu/atom.c
1646
if (!mct[index])
sys/dev/pci/drm/amd/amdgpu/atom.c
74
static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, int params_size);
sys/dev/pci/drm/amd/amdgpu/atom.c
75
int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_size);
sys/dev/pci/drm/amd/amdgpu/atom.h
161
int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_size);
sys/dev/pci/drm/amd/amdgpu/atom.h
164
bool amdgpu_atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size,
sys/dev/pci/drm/amd/amdgpu/atom.h
166
bool amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index,
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
109
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
117
int index =
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
126
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
134
int index = GetIndexIntoMasterTable(COMMAND, EnableCRTC);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
142
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
150
int index = GetIndexIntoMasterTable(COMMAND, BlankCRTC);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
158
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
166
int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
174
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
179
int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
186
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
196
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_UsingDTDTiming);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
231
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
247
int index = GetIndexIntoMasterTable(COMMAND, EnableSpreadSpectrumOnPPLL);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
296
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
321
int index;
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
378
index = GetIndexIntoMasterTable(COMMAND, AdjustDisplayPll);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
379
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev,
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
398
index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
431
index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
46
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_OverScan);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
474
int index;
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
479
index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
480
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev,
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
517
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
529
int index;
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
535
index = GetIndexIntoMasterTable(COMMAND, SetDCEClock);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
536
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev,
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
547
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
592
int index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
597
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev,
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
743
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
80
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_crtc.c
89
int index = GetIndexIntoMasterTable(COMMAND, EnableScaler);
sys/dev/pci/drm/amd/amdgpu/atombios_dp.c
295
int index = GetIndexIntoMasterTable(COMMAND, DPEncoderService);
sys/dev/pci/drm/amd/amdgpu/atombios_dp.c
304
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_dp.c
66
int index = GetIndexIntoMasterTable(COMMAND, ProcessAuxChannelTransaction);
sys/dev/pci/drm/amd/amdgpu/atombios_dp.c
86
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1139
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1150
int index = GetIndexIntoMasterTable(COMMAND, UNIPHYTransmitterControl);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1160
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1167
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1200
int index = GetIndexIntoMasterTable(COMMAND, ExternalEncoderControl);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1225
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1291
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1440
int index = GetIndexIntoMasterTable(COMMAND, SelectCRTC_Source);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1446
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1636
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1679
int index = GetIndexIntoMasterTable(COMMAND, DAC_LoadDetection);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1684
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1709
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1971
int index = GetIndexIntoMasterTable(DATA, LVDS_Info);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
1978
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
204
"amdgpu_bl%d", dev->primary->index);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
319
int index = 0;
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
326
index = GetIndexIntoMasterTable(COMMAND, DAC1EncoderControl);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
330
index = GetIndexIntoMasterTable(COMMAND, DAC2EncoderControl);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
338
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
382
int index = GetIndexIntoMasterTable(COMMAND, DVOEncoderControl);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
387
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
435
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
569
int index = GetIndexIntoMasterTable(COMMAND, DIGxEncoderControl);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
591
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
735
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
758
int index = 0;
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
805
index = GetIndexIntoMasterTable(COMMAND, DVOOutputControl);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
811
index = GetIndexIntoMasterTable(COMMAND, UNIPHYTransmitterControl);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
814
index = GetIndexIntoMasterTable(COMMAND, LVTMATransmitterControl);
sys/dev/pci/drm/amd/amdgpu/atombios_encoders.c
818
if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/amd/amdgpu/atombios_i2c.c
165
int index = GetIndexIntoMasterTable(COMMAND, ProcessI2cChannelTransaction);
sys/dev/pci/drm/amd/amdgpu/atombios_i2c.c
175
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/atombios_i2c.c
45
int index = GetIndexIntoMasterTable(COMMAND, ProcessI2cChannelTransaction);
sys/dev/pci/drm/amd/amdgpu/atombios_i2c.c
89
amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
604
unsigned index;
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
609
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
613
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
615
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
629
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
639
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
657
unsigned index;
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
662
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
666
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
668
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
693
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
703
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2710
static int dce_v10_0_crtc_init(struct amdgpu_device *adev, int index)
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2722
amdgpu_crtc->crtc_id = index;
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2723
adev->mode_info.crtcs[index] = amdgpu_crtc;
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2677
static int dce_v6_0_crtc_init(struct amdgpu_device *adev, int index)
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2689
amdgpu_crtc->crtc_id = index;
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2690
adev->mode_info.crtcs[index] = amdgpu_crtc;
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2635
static int dce_v8_0_crtc_init(struct amdgpu_device *adev, int index)
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2647
amdgpu_crtc->crtc_id = index;
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2648
adev->mode_info.crtcs[index] = amdgpu_crtc;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
4076
unsigned int index;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
4083
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
4087
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
4088
adev->wb.wb[index] = cpu_to_le32(0xCAFEDEAD);
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
4089
cpu_ptr = &adev->wb.wb[index];
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
4124
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9652
uint32_t i, j, k, reg, index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9681
adev->gfx.ip_dump_compute_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9685
adev->gfx.ip_dump_compute_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9687
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9696
index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9710
adev->gfx.ip_dump_gfx_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9712
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9721
uint32_t i, j, k, reg, index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9747
adev->gfx.ip_dump_compute_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9750
adev->gfx.ip_dump_compute_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9754
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9766
index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9776
adev->gfx.ip_dump_gfx_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
9780
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
604
unsigned index;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
616
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
620
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
621
adev->wb.wb[index] = cpu_to_le32(0xCAFEDEAD);
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
622
cpu_ptr = &adev->wb.wb[index];
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
657
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7021
uint32_t i, j, k, reg, index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7050
adev->gfx.ip_dump_compute_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7054
adev->gfx.ip_dump_compute_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7056
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7065
index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7079
adev->gfx.ip_dump_gfx_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7081
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7090
uint32_t i, j, k, reg, index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7117
adev->gfx.ip_dump_compute_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7121
adev->gfx.ip_dump_compute_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7125
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7137
index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7147
adev->gfx.ip_dump_gfx_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
7151
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
497
unsigned index;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
509
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5105
uint32_t i, j, k, reg, index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
513
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5133
adev->gfx.ip_dump_compute_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5135
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
514
adev->wb.wb[index] = cpu_to_le32(0xCAFEDEAD);
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5144
index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
515
cpu_ptr = &adev->wb.wb[index];
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5158
adev->gfx.ip_dump_gfx_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5160
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5169
uint32_t i, j, k, reg, index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5193
adev->gfx.ip_dump_compute_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5197
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5209
index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5219
adev->gfx.ip_dump_gfx_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
5223
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
550
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
874
unsigned int index;
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
879
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
883
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
884
adev->wb.wb[index] = cpu_to_le32(0xCAFEDEAD);
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
910
tmp = adev->wb.wb[index];
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
920
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
1230
unsigned index;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
1235
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
1239
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
1240
adev->wb.wb[index] = cpu_to_le32(0xCAFEDEAD);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
1266
tmp = adev->wb.wb[index];
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
1276
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
7252
uint32_t i, j, k, reg, index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
7281
adev->gfx.ip_dump_compute_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
7285
adev->gfx.ip_dump_compute_queues[index + reg]);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
7287
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
7297
uint32_t i, j, k, reg, index = 0;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
7323
adev->gfx.ip_dump_compute_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
7326
adev->gfx.ip_dump_compute_queues[index + reg] =
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
7330
index += reg_count;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
457
unsigned index;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
462
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
466
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
467
adev->wb.wb[index] = cpu_to_le32(0xCAFEDEAD);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
493
tmp = adev->wb.wb[index];
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
503
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
535
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
540
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
544
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
546
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
561
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
571
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
589
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
594
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
598
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
600
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
629
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
639
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
809
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
814
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
818
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
820
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
835
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
845
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
863
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
868
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
872
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
874
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
903
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
912
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1467
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1472
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1476
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1478
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1493
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1503
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1521
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1526
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1530
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1532
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1561
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1571
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1063
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1068
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1072
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1074
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1089
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1099
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1117
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1122
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1126
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1128
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1157
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
1167
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1016
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1023
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1029
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1030
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1035
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1048
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1060
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1079
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1087
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1093
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1094
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1128
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1139
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1630
u32 index = 0;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1633
amdgpu_sdma_get_index_from_ring(ring, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
1634
if (index == 0)
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
1027
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
1038
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
1541
u32 index = 0;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
1544
amdgpu_sdma_get_index_from_ring(ring, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
1546
sdma_v5_2_get_reg_offset(adev, index, mmSDMA0_GFX_PREEMPT);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
916
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
923
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
929
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
930
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
935
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
948
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
960
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
979
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
987
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
993
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
994
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
1000
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
1033
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
1044
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
1525
u32 index = 0;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
1528
amdgpu_sdma_get_index_from_ring(ring, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
1530
sdma_v6_0_get_reg_offset(adev, index, regSDMA0_QUEUE0_PREEMPT);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
922
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
929
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
935
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
936
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
941
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
954
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
966
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
985
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
993
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
999
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
1002
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
1010
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
1016
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
1017
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
1050
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
1061
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
1481
u32 index = 0;
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
1484
amdgpu_sdma_get_index_from_ring(ring, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
1486
sdma_v7_0_get_reg_offset(adev, index, regSDMA0_QUEUE0_PREEMPT);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
939
unsigned index;
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
946
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
952
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
953
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
958
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
971
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
983
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
212
unsigned index;
sys/dev/pci/drm/amd/amdgpu/si_dma.c
217
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
221
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
223
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
236
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
246
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
264
unsigned index;
sys/dev/pci/drm/amd/amdgpu/si_dma.c
269
r = amdgpu_device_wb_get(adev, &index);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
273
gpu_addr = adev->wb.gpu_addr + (index * 4);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
275
adev->wb.wb[index] = cpu_to_le32(tmp);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
298
tmp = le32_to_cpu(adev->wb.wb[index]);
sys/dev/pci/drm/amd/amdgpu/si_dma.c
308
amdgpu_device_wb_free(adev, index);
sys/dev/pci/drm/amd/amdgpu/umc_v12_0.c
39
uint32_t index = umc_inst * adev->umc.channel_inst_num + ch_inst;
sys/dev/pci/drm/amd/amdgpu/umc_v12_0.c
42
umc_inst = index / 4;
sys/dev/pci/drm/amd/amdgpu/umc_v12_0.c
43
ch_inst = index % 4;
sys/dev/pci/drm/amd/amdgpu/umc_v6_7.c
50
uint32_t index = umc_inst * adev->umc.channel_inst_num + ch_inst;
sys/dev/pci/drm/amd/amdgpu/umc_v6_7.c
54
umc_inst = index / 4;
sys/dev/pci/drm/amd/amdgpu/umc_v6_7.c
55
ch_inst = index % 4;
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
1570
ddev->render->index,
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
4187
int index, nattr_common = 4, ret = 0;
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
4215
for (index = 0; index < num_devices; index++) {
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
4216
struct kfd_process_device *pdd = p->pdds[index];
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
4218
query_attr[index + nattr_common].type =
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
4220
query_attr[index + nattr_common].value = pdd->user_gpu_id;
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
4231
index = 0;
sys/dev/pci/drm/amd/amdkfd/kfd_topology.c
2110
dev->node_props.drm_render_minor = gpu->xcp->ddev->render->index;
sys/dev/pci/drm/amd/amdxcp/amdgpu_xcp_drv.c
108
static void free_xcp_dev(int8_t index)
sys/dev/pci/drm/amd/amdxcp/amdgpu_xcp_drv.c
112
if ((index < MAX_XCP_PLATFORM_DEVICE) && (xcp_dev[index])) {
sys/dev/pci/drm/amd/amdxcp/amdgpu_xcp_drv.c
113
struct platform_device *pdev = xcp_dev[index]->pdev;
sys/dev/pci/drm/amd/amdxcp/amdgpu_xcp_drv.c
118
xcp_dev[index] = NULL;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10517
connector->index, connector->status, connector->dpms);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10586
hdcp_w->hdcp_content_type[connector->index] =
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10588
hdcp_w->content_protection[connector->index] =
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
12612
if (connector->index == mst_state->mgr->conn_base_id) {
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4221
hdcp_handle_cpirq(adev->dm.hdcp_workqueue, aconnector->base.index);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5258
drm->primary->index + aconnector->bl_idx);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5574
dm->hpd_rx_offload_wq[aconnector->base.index].aconnector =
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5834
int index = GetIndexIntoMasterTable(DATA, Object_Header);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5838
if (!amdgpu_atom_parse_data_header(ctx, index, NULL, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
599
trace_amdgpu_refresh_rate_track(acrtc->base.index,
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9227
connector->index, connector->status, connector->dpms);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9826
new_plane_state->plane->index,
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1207
plane_state->plane->index);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1222
plane_state->plane->index);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
323
flush_work(&dm->secure_display_ctx.crtc_ctx[crtc->index].notify_ta_work);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
324
flush_work(&dm->secure_display_ctx.crtc_ctx[crtc->index].forward_roi_work);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
489
src_name, crtc->index);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
562
src_name, crtc->index);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
631
DRM_DEBUG_DRIVER("No amd connector matching CRTC-%d\n", crtc->index);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
203
unsigned int conn_index = aconnector->base.index;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
254
unsigned int conn_index = aconnector->base.index;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
267
aconnector->base.index, conn_state->hdcp_content_type,
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
271
mod_hdcp_remove_display(&hdcp_w->hdcp, aconnector->base.index, &hdcp_w->output);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
421
mod_hdcp_query_display(&hdcp_work->hdcp, aconnector->base.index,
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
425
aconnector->base.index,
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
531
unsigned int conn_index = aconnector->base.index;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
546
display->index = aconnector->base.index;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
578
hdcp_w->encryption_status[display->index] = MOD_HDCP_ENCRYPTION_STATUS_HDCP_OFF;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
580
DRM_DEBUG_DRIVER("[HDCP_DM] display %d, CP %d, type %d\n", aconnector->base.index,
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
469
hdcp_w->hdcp_content_type[connector->index];
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
471
hdcp_w->content_protection[connector->index];
sys/dev/pci/drm/amd/display/dc/basics/vector.c
155
uint32_t index)
sys/dev/pci/drm/amd/display/dc/basics/vector.c
157
if (vector->container == NULL || index >= vector->count)
sys/dev/pci/drm/amd/display/dc/basics/vector.c
159
return vector->container + (index * vector->struct_size);
sys/dev/pci/drm/amd/display/dc/basics/vector.c
164
uint32_t index)
sys/dev/pci/drm/amd/display/dc/basics/vector.c
166
if (index >= vector->count)
sys/dev/pci/drm/amd/display/dc/basics/vector.c
169
if (index != vector->count - 1)
sys/dev/pci/drm/amd/display/dc/basics/vector.c
171
vector->container + (index * vector->struct_size),
sys/dev/pci/drm/amd/display/dc/basics/vector.c
172
vector->container + ((index + 1) * vector->struct_size),
sys/dev/pci/drm/amd/display/dc/basics/vector.c
173
(size_t)(vector->count - index - 1) * vector->struct_size);
sys/dev/pci/drm/amd/display/dc/basics/vector.c
182
uint32_t index)
sys/dev/pci/drm/amd/display/dc/basics/vector.c
184
void *where = dal_vector_at_index(vector, index);
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
186
struct graphics_object_id object_id, uint32_t index,
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
206
if (number <= index)
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
209
*src_object_id = object_id_from_bios_object_id(id[index]);
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
463
uint32_t index,
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
473
uint32_t index;
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
503
index = 0;
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
510
ASIC_INTERNAL_MEMORY_SS, index, &internalSS) == BP_RESULT_OK) {
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
526
index = 1;
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
533
ASIC_INTERNAL_ENGINE_SS, index, &internalSS) == BP_RESULT_OK) {
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
556
uint32_t index;
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
588
index = 0;
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
595
ASIC_INTERNAL_MEMORY_SS, index, &internal_ss) == BP_RESULT_OK) {
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
611
index = 1;
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
618
ASIC_INTERNAL_ENGINE_SS, index, &internal_ss) == BP_RESULT_OK) {
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
647
uint32_t index,
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
682
if (table_index != index) {
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
924
uint32_t index,
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
939
if (!index)
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
953
if (!index)
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
965
return get_ss_info_v3_1(bp, clk_id_ss, index, ss_info);
sys/dev/pci/drm/amd/display/dc/bios/bios_parser2.c
1069
uint32_t index,
sys/dev/pci/drm/amd/display/dc/bios/bios_parser2.c
1091
return get_ss_info_v4_1(bp, signal, index, ss_info);
sys/dev/pci/drm/amd/display/dc/bios/bios_parser2.c
1095
return get_ss_info_v4_2(bp, signal, index, ss_info);
sys/dev/pci/drm/amd/display/dc/bios/bios_parser2.c
1097
return get_ss_info_v4_5(bp, signal, index, ss_info);
sys/dev/pci/drm/amd/display/dc/bios/bios_parser2.c
205
struct graphics_object_id object_id, uint32_t index,
sys/dev/pci/drm/amd/display/dc/bios/bios_parser2.c
809
uint32_t index,
sys/dev/pci/drm/amd/display/dc/bios/bios_parser2.c
897
uint32_t index,
sys/dev/pci/drm/amd/display/dc/bios/bios_parser2.c
977
uint32_t index,
sys/dev/pci/drm/amd/display/dc/bios/command_table.c
84
uint32_t index)
sys/dev/pci/drm/amd/display/dc/bios/command_table.c
90
index,
sys/dev/pci/drm/amd/display/dc/bios/command_table2.c
65
uint32_t index)
sys/dev/pci/drm/amd/display/dc/bios/command_table2.c
71
index,
sys/dev/pci/drm/amd/display/dc/core/dc.c
3088
surface->time.time_elapsed_in_us[surface->time.index] =
sys/dev/pci/drm/amd/display/dc/core/dc.c
3093
surface->time.index++;
sys/dev/pci/drm/amd/display/dc/core/dc.c
3094
if (surface->time.index >= DC_PLANE_UPDATE_TIMES_MAX)
sys/dev/pci/drm/amd/display/dc/core/dc.c
3095
surface->time.index = 0;
sys/dev/pci/drm/amd/display/dc/core/dc.c
5941
uint8_t index, link_index = 0xFF;
sys/dev/pci/drm/amd/display/dc/core/dc.c
5943
for (index = 0; index < dc->link_count; index++) {
sys/dev/pci/drm/amd/display/dc/core/dc.c
5947
if (!dc->links[index]->ddc->ddc_pin) {
sys/dev/pci/drm/amd/display/dc/core/dc.c
5948
if (dc->links[index]->ddc_hw_inst == dpia_port_index) {
sys/dev/pci/drm/amd/display/dc/core/dc.c
5949
link_index = index;
sys/dev/pci/drm/amd/display/dc/core/dc_resource.c
2077
int index = 0;
sys/dev/pci/drm/amd/display/dc/core/dc_resource.c
2080
index++;
sys/dev/pci/drm/amd/display/dc/core/dc_resource.c
2084
return index;
sys/dev/pci/drm/amd/display/dc/core/dc_resource.c
2120
int index = 0;
sys/dev/pci/drm/amd/display/dc/core/dc_resource.c
2127
index++;
sys/dev/pci/drm/amd/display/dc/core/dc_resource.c
2131
return index;
sys/dev/pci/drm/amd/display/dc/dc_bios_types.h
49
struct graphics_object_id object_id, uint32_t index,
sys/dev/pci/drm/amd/display/dc/dc_bios_types.h
67
uint32_t index,
sys/dev/pci/drm/amd/display/dc/dc_helper.c
481
uint32_t index, uint32_t data)
sys/dev/pci/drm/amd/display/dc/dc_helper.c
483
dm_write_reg(ctx, addr_index, index);
sys/dev/pci/drm/amd/display/dc/dc_helper.c
489
uint32_t index)
sys/dev/pci/drm/amd/display/dc/dc_helper.c
499
dm_write_reg(ctx, addr_index, index);
sys/dev/pci/drm/amd/display/dc/dc_helper.c
507
uint32_t index, int n,
sys/dev/pci/drm/amd/display/dc/dc_helper.c
519
value = generic_read_indirect_reg(ctx, addr_index, addr_data, index);
sys/dev/pci/drm/amd/display/dc/dc_helper.c
538
uint32_t index, uint32_t reg_val, int n,
sys/dev/pci/drm/amd/display/dc/dc_helper.c
560
generic_write_indirect_reg(ctx, addr_index, addr_data, index, reg_val);
sys/dev/pci/drm/amd/display/dc/dc_helper.c
568
uint32_t index, uint32_t reg_val, int n,
sys/dev/pci/drm/amd/display/dc/dc_helper.c
590
dm_write_index_reg(ctx, CGS_IND_REG__PCIE, index, reg_val);
sys/dev/pci/drm/amd/display/dc/dc_helper.c
597
uint32_t index, int n,
sys/dev/pci/drm/amd/display/dc/dc_helper.c
609
value = dm_read_index_reg(ctx, CGS_IND_REG__PCIE, index);
sys/dev/pci/drm/amd/display/dc/dc_trace.h
26
#define TRACE_DC_PIPE_STATE(pipe_ctx, index, max_pipes) \
sys/dev/pci/drm/amd/display/dc/dc_trace.h
27
for (index = 0; index < max_pipes; ++index) { \
sys/dev/pci/drm/amd/display/dc/dc_trace.h
28
struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[index]; \
sys/dev/pci/drm/amd/display/dc/dc_types.h
576
unsigned int index;
sys/dev/pci/drm/amd/display/dc/dce/dce_audio.c
100
if (audio_info->modes[index].format_code == audio_format_code) {
sys/dev/pci/drm/amd/display/dc/dce/dce_audio.c
104
if (audio_info->modes[index].channel_count >
sys/dev/pci/drm/amd/display/dc/dce/dce_audio.c
106
max_channe_index = index;
sys/dev/pci/drm/amd/display/dc/dce/dce_audio.c
111
max_channe_index = index;
sys/dev/pci/drm/amd/display/dc/dce/dce_audio.c
677
uint32_t index;
sys/dev/pci/drm/amd/display/dc/dce/dce_audio.c
789
audio_info, audio_format_code, &index)) {
sys/dev/pci/drm/amd/display/dc/dce/dce_audio.c
791
&audio_info->modes[index];
sys/dev/pci/drm/amd/display/dc/dce/dce_audio.c
91
uint32_t index;
sys/dev/pci/drm/amd/display/dc/dce/dce_audio.c
99
for (index = 0; index < audio_info->mode_count; index++) {
sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.h
103
#define CS_COMMON_REG_LIST_DCN3_0(index, pllid) \
sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.h
118
#define CS_COMMON_REG_LIST_DCN3_01(index, pllid) \
sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.h
133
#define CS_COMMON_REG_LIST_DCN3_02(index, pllid) \
sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.h
151
#define CS_COMMON_REG_LIST_DCN3_03(index, pllid) \
sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.h
174
#define CS_COMMON_REG_LIST_DCN1_0(index, pllid) \
sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.h
58
#define CS_COMMON_REG_LIST_DCN2_0(index, pllid) \
sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.h
79
#define CS_COMMON_REG_LIST_DCN201(index, pllid) \
sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.h
88
#define CS_COMMON_REG_LIST_DCN2_1(index, pllid) \
sys/dev/pci/drm/amd/display/dc/dce/dce_link_encoder.c
275
uint32_t index)
sys/dev/pci/drm/amd/display/dc/dce/dce_link_encoder.c
280
REG_WRITE(DP_DPHY_TRAINING_PATTERN_SEL, index);
sys/dev/pci/drm/amd/display/dc/dce/dce_link_encoder.h
303
uint32_t index);
sys/dev/pci/drm/amd/display/dc/dce/dce_stream_encoder.c
1178
uint32_t index;
sys/dev/pci/drm/amd/display/dc/dce/dce_stream_encoder.c
1202
for (index = 0; index < audio_array_size; index++) {
sys/dev/pci/drm/amd/display/dc/dce/dce_stream_encoder.c
1203
if (clock_info[index].pixel_clock_in_10khz >
sys/dev/pci/drm/amd/display/dc/dce/dce_stream_encoder.c
1206
else if (clock_info[index].pixel_clock_in_10khz ==
sys/dev/pci/drm/amd/display/dc/dce/dce_stream_encoder.c
1209
*audio_clock_info = clock_info[index];
sys/dev/pci/drm/amd/display/dc/dce110/dce110_timing_generator.c
722
uint32_t index;
sys/dev/pci/drm/amd/display/dc/dce110/dce110_timing_generator.c
831
for (index = 0; index < 6; index++) {
sys/dev/pci/drm/amd/display/dc/dce110/dce110_timing_generator.c
835
dst_color[index] =
sys/dev/pci/drm/amd/display/dc/dce110/dce110_timing_generator.c
836
src_color[index] >> (src_bpc - dst_bpc);
sys/dev/pci/drm/amd/display/dc/dce110/dce110_timing_generator.c
843
dst_color[index] <<= (16 - dst_bpc);
sys/dev/pci/drm/amd/display/dc/dce110/dce110_timing_generator.c
878
for (index = 0; index < 6; index++) {
sys/dev/pci/drm/amd/display/dc/dce110/dce110_timing_generator.c
884
(1 << index),
sys/dev/pci/drm/amd/display/dc/dce110/dce110_timing_generator.c
894
dst_color[index],
sys/dev/pci/drm/amd/display/dc/dce120/dce120_timing_generator.c
812
uint32_t index;
sys/dev/pci/drm/amd/display/dc/dce120/dce120_timing_generator.c
889
for (index = 0; index < 6; index++) {
sys/dev/pci/drm/amd/display/dc/dce120/dce120_timing_generator.c
893
dst_color[index] =
sys/dev/pci/drm/amd/display/dc/dce120/dce120_timing_generator.c
894
src_color[index] >> (src_bpc - dst_bpc);
sys/dev/pci/drm/amd/display/dc/dce120/dce120_timing_generator.c
901
dst_color[index] <<= (16 - dst_bpc);
sys/dev/pci/drm/amd/display/dc/dce120/dce120_timing_generator.c
933
for (index = 0; index < 6; index++) {
sys/dev/pci/drm/amd/display/dc/dce120/dce120_timing_generator.c
939
(1 << index),
sys/dev/pci/drm/amd/display/dc/dce120/dce120_timing_generator.c
949
dst_color[index],
sys/dev/pci/drm/amd/display/dc/dcn201/dcn201_link_encoder.c
49
#define IND_REG(index) \
sys/dev/pci/drm/amd/display/dc/dcn201/dcn201_link_encoder.c
50
(enc10->link_regs->index)
sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_link_encoder.c
50
#define IND_REG(index) \
sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_link_encoder.c
51
(enc10->link_regs->index)
sys/dev/pci/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
208
uint32_t index)
sys/dev/pci/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
213
REG_WRITE(DP_DPHY_TRAINING_PATTERN_SEL, index);
sys/dev/pci/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.h
636
uint32_t index);
sys/dev/pci/drm/amd/display/dc/dio/dcn10/dcn10_stream_encoder.c
1170
uint32_t index;
sys/dev/pci/drm/amd/display/dc/dio/dcn10/dcn10_stream_encoder.c
1194
for (index = 0; index < audio_array_size; index++) {
sys/dev/pci/drm/amd/display/dc/dio/dcn10/dcn10_stream_encoder.c
1195
if (clock_info[index].pixel_clock_in_10khz >
sys/dev/pci/drm/amd/display/dc/dio/dcn10/dcn10_stream_encoder.c
1198
else if (clock_info[index].pixel_clock_in_10khz ==
sys/dev/pci/drm/amd/display/dc/dio/dcn10/dcn10_stream_encoder.c
1201
*audio_clock_info = clock_info[index];
sys/dev/pci/drm/amd/display/dc/dio/dcn20/dcn20_link_encoder.c
48
#define IND_REG(index) \
sys/dev/pci/drm/amd/display/dc/dio/dcn20/dcn20_link_encoder.c
49
(enc10->link_regs->index)
sys/dev/pci/drm/amd/display/dc/dio/dcn30/dcn30_dio_link_encoder.c
47
#define IND_REG(index) \
sys/dev/pci/drm/amd/display/dc/dio/dcn30/dcn30_dio_link_encoder.c
48
(enc10->link_regs->index)
sys/dev/pci/drm/amd/display/dc/dio/dcn301/dcn301_dio_link_encoder.c
47
#define IND_REG(index) \
sys/dev/pci/drm/amd/display/dc/dio/dcn301/dcn301_dio_link_encoder.c
48
(enc10->link_regs->index)
sys/dev/pci/drm/amd/display/dc/dio/dcn31/dcn31_dio_link_encoder.c
54
#define IND_REG(index) \
sys/dev/pci/drm/amd/display/dc/dio/dcn31/dcn31_dio_link_encoder.c
55
(enc10->link_regs->index)
sys/dev/pci/drm/amd/display/dc/dm_services.h
74
uint32_t index)
sys/dev/pci/drm/amd/display/dc/dm_services.h
76
return cgs_read_ind_register(ctx->cgs_device, addr_space, index);
sys/dev/pci/drm/amd/display/dc/dm_services.h
82
uint32_t index,
sys/dev/pci/drm/amd/display/dc/dm_services.h
85
cgs_write_ind_register(ctx->cgs_device, addr_space, index, value);
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1096
int index = 0;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1103
pipe_ctx->subvp_index = index++;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2657
unsigned int index)
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2664
for (i = index; i < *num_entries - 1; i++) {
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
422
int index = 0;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
430
while (entry->net_bw_in_kbytes_sec > table[index].net_bw_in_kbytes_sec) {
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
431
index++;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
432
if (index >= *num_entries)
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
436
for (i = *num_entries; i > index; i--)
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
439
table[index] = *entry;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
601
unsigned int *index)
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
650
*index = i;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
731
uint32_t index = 0;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
757
subvp_pipes[index] = pipe;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
758
index++;
sys/dev/pci/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
761
if (index == 2)
sys/dev/pci/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c
215
int index = 0;
sys/dev/pci/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c
223
while (entry->net_bw_in_kbytes_sec > table[index].net_bw_in_kbytes_sec) {
sys/dev/pci/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c
224
index++;
sys/dev/pci/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c
225
if (index >= *num_entries)
sys/dev/pci/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c
229
for (i = *num_entries; i > index; i--)
sys/dev/pci/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c
232
table[index] = *entry;
sys/dev/pci/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c
238
unsigned int index)
sys/dev/pci/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c
245
for (i = index; i < *num_entries - 1; i++) {
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
102
if (index >= table_size) {
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
107
memcpy(qps, table[index].qps, sizeof(qp_set));
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
70
int index;
sys/dev/pci/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
99
index = (bpp - table[0].bpp) * 2;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
7091
unsigned int index = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
7097
index = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
7099
index = i - 1;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
7107
DML_LOG_VERBOSE("DML::%s: index = %d\n", __func__, index);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
7108
return index;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_utils.c
511
unsigned int index = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_utils.c
517
index = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_utils.c
519
index = i - 1;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_utils.c
528
DML_LOG_VERBOSE("DML::%s: index = %d\n", __func__, index);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_utils.c
530
return index;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
261
int index = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
264
while (index < clock_table->num_clk_values && clock_table->clk_values_khz[index] < min_value)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
265
index++;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
267
if (index < clock_table->num_clk_values) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
268
*rounded_value = clock_table->clk_values_khz[index];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
324
int index;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
327
for (index = 0; index < state_table->uclk.num_clk_values; index++) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
328
if (display_cfg->min_clocks.dcn4x.active.dcfclk_khz <= state_table->dcfclk.clk_values_khz[index] &&
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
329
display_cfg->min_clocks.dcn4x.active.fclk_khz <= state_table->fclk.clk_values_khz[index] &&
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
330
display_cfg->min_clocks.dcn4x.active.uclk_khz <= state_table->uclk.clk_values_khz[index]) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
331
display_cfg->min_clocks.dcn4x.active.dcfclk_khz = state_table->dcfclk.clk_values_khz[index];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
332
display_cfg->min_clocks.dcn4x.active.fclk_khz = state_table->fclk.clk_values_khz[index];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
333
display_cfg->min_clocks.dcn4x.active.uclk_khz = state_table->uclk.clk_values_khz[index];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
341
for (index = 0; index < state_table->uclk.num_clk_values; index++) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
342
if (display_cfg->min_clocks.dcn4x.idle.dcfclk_khz <= state_table->dcfclk.clk_values_khz[index] &&
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
343
display_cfg->min_clocks.dcn4x.idle.fclk_khz <= state_table->fclk.clk_values_khz[index] &&
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
344
display_cfg->min_clocks.dcn4x.idle.uclk_khz <= state_table->uclk.clk_values_khz[index]) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
345
display_cfg->min_clocks.dcn4x.idle.dcfclk_khz = state_table->dcfclk.clk_values_khz[index];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
346
display_cfg->min_clocks.dcn4x.idle.fclk_khz = state_table->fclk.clk_values_khz[index];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c
347
display_cfg->min_clocks.dcn4x.idle.uclk_khz = state_table->uclk.clk_values_khz[index];
sys/dev/pci/drm/amd/display/dc/dml2/dml2_mall_phantom.c
228
static bool assign_subvp_pipe(struct dml2_context *ctx, struct dc_state *context, unsigned int *index)
sys/dev/pci/drm/amd/display/dc/dml2/dml2_mall_phantom.c
269
*index = i;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_mall_phantom.c
278
*index = i;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_mall_phantom.c
362
uint32_t index = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_mall_phantom.c
388
subvp_pipes[index] = pipe;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_mall_phantom.c
389
index++;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_mall_phantom.c
392
if (index == 2)
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
101
table->state_array[index] = *entry;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
102
table->state_array[index].dcfclk_mhz = (int)entry->dcfclk_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
103
table->state_array[index].fabricclk_mhz = (int)entry->fabricclk_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
104
table->state_array[index].dram_speed_mts = (int)entry->dram_speed_mts;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
109
unsigned int index)
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
116
for (i = index; i < (int) table->num_states - 1; i++) {
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
79
int index = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
86
index = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
89
while (net_bw_of_new_state > calculate_net_bw_in_mbytes_sec(socbb, &table->state_array[index])) {
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
90
index++;
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
91
if (index >= (int) table->num_states)
sys/dev/pci/drm/amd/display/dc/dml2/dml2_policy.c
95
for (i = table->num_states; i > index; i--) {
sys/dev/pci/drm/amd/display/dc/dml2/dml2_utils.h
84
bool dml2_predict_pipe_split(struct dc_state *context, display_pipe_params_st pipe, int index);
sys/dev/pci/drm/amd/display/dc/dpp/dcn20/dcn20_dpp_cm.c
39
#define IND_REG(index) \
sys/dev/pci/drm/amd/display/dc/dpp/dcn20/dcn20_dpp_cm.c
40
(index)
sys/dev/pci/drm/amd/display/dc/inc/core_types.h
213
unsigned int index);
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
446
#define IX_REG_SET_N(index_reg_name, data_reg_name, index, n, initial_val, ...) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
448
REG(index_reg_name), REG(data_reg_name), IND_REG(index), \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
452
#define IX_REG_SET_2(index_reg_name, data_reg_name, index, init_value, f1, v1, f2, v2) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
453
IX_REG_SET_N(index_reg_name, data_reg_name, index, 2, init_value, \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
458
#define IX_REG_READ(index_reg_name, data_reg_name, index) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
459
generic_read_indirect_reg(CTX, REG(index_reg_name), REG(data_reg_name), IND_REG(index))
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
461
#define IX_REG_GET_N(index_reg_name, data_reg_name, index, n, ...) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
463
IND_REG(index), \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
466
#define IX_REG_GET(index_reg_name, data_reg_name, index, field, val) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
467
IX_REG_GET_N(index_reg_name, data_reg_name, index, 1, \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
470
#define IX_REG_UPDATE_N(index_reg_name, data_reg_name, index, n, ...) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
472
REG(index_reg_name), REG(data_reg_name), IND_REG(index), \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
473
IX_REG_READ(index_reg_name, data_reg_name, index), \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
476
#define IX_REG_UPDATE_2(index_reg_name, data_reg_name, index, f1, v1, f2, v2) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
477
IX_REG_UPDATE_N(index_reg_name, data_reg_name, index, 2,\
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
483
uint32_t index, uint32_t data);
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
487
uint32_t index);
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
491
uint32_t index, int n,
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
497
uint32_t index, uint32_t reg_val, int n,
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
505
#define IX_REG_SET_N_SYNC(index, n, initial_val, ...) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
507
IND_REG(index), \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
511
#define IX_REG_SET_SYNC(index, init_value, f1, v1) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
512
IX_REG_SET_N_SYNC(index, 1, init_value, \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
515
#define IX_REG_SET_2_SYNC(index, init_value, f1, v1, f2, v2) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
516
IX_REG_SET_N_SYNC(index, 2, init_value, \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
520
#define IX_REG_GET_N_SYNC(index, n, ...) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
522
IND_REG(index), \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
525
#define IX_REG_GET_SYNC(index, field, val) \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
526
IX_REG_GET_N_SYNC(index, 1, \
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
530
uint32_t index, int n,
sys/dev/pci/drm/amd/display/dc/inc/reg_helper.h
535
uint32_t index, uint32_t reg_val, int n,
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.c
258
uint32_t index)
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.c
261
nibble = buf[index / 2];
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.c
263
if (index % 2)
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.h
186
uint32_t index);
sys/dev/pci/drm/amd/display/dc/mpc/dcn20/dcn20_mpc.c
36
#define IND_REG(index) \
sys/dev/pci/drm/amd/display/dc/mpc/dcn20/dcn20_mpc.c
37
(index)
sys/dev/pci/drm/amd/display/dc/opp/dcn20/dcn20_opp.c
158
for (index = 0; index < 6; index++) {
sys/dev/pci/drm/amd/display/dc/opp/dcn20/dcn20_opp.c
162
dst_color[index] =
sys/dev/pci/drm/amd/display/dc/opp/dcn20/dcn20_opp.c
163
src_color[index] >> (src_bpc - dst_bpc);
sys/dev/pci/drm/amd/display/dc/opp/dcn20/dcn20_opp.c
169
dst_color[index] <<= (16 - dst_bpc);
sys/dev/pci/drm/amd/display/dc/opp/dcn20/dcn20_opp.c
61
uint32_t index;
sys/dev/pci/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
1065
for (index = 0; index < 6; index++) {
sys/dev/pci/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
1069
dst_color[index] =
sys/dev/pci/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
1070
src_color[index] >> (src_bpc - dst_bpc);
sys/dev/pci/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
1077
dst_color[index] <<= (16 - dst_bpc);
sys/dev/pci/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
1109
for (index = 0; index < 6; index++) {
sys/dev/pci/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
1113
pattern_mask = (1 << index);
sys/dev/pci/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
1123
pattern_data = dst_color[index];
sys/dev/pci/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
988
uint32_t index;
sys/dev/pci/drm/amd/display/dc/resource/dce112/dce112_resource.c
365
#define clk_src_regs(index, id)\
sys/dev/pci/drm/amd/display/dc/resource/dce112/dce112_resource.c
366
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dce120/dce120_resource.c
404
#define clk_src_regs(index, id)\
sys/dev/pci/drm/amd/display/dc/resource/dce120/dce120_resource.c
405
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
469
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
470
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
471
CS_COMMON_REG_LIST_DCN1_0(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
188
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
189
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
190
CS_COMMON_REG_LIST_DCN2_0(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn201/dcn201_resource.c
305
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn201/dcn201_resource.c
306
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn201/dcn201_resource.c
307
CS_COMMON_REG_LIST_DCN201(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
147
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
148
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
149
CS_COMMON_REG_LIST_DCN2_1(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
195
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
196
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
197
CS_COMMON_REG_LIST_DCN2_0(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn301/dcn301_resource.c
198
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn301/dcn301_resource.c
199
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn301/dcn301_resource.c
200
CS_COMMON_REG_LIST_DCN3_01(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn302/dcn302_resource.c
423
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn302/dcn302_resource.c
424
[index] = { CS_COMMON_REG_LIST_DCN3_02(index, pllid) }
sys/dev/pci/drm/amd/display/dc/resource/dcn303/dcn303_resource.c
410
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn303/dcn303_resource.c
411
[index] = { CS_COMMON_REG_LIST_DCN3_03(index, pllid) }
sys/dev/pci/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
206
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
207
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
208
CS_COMMON_REG_LIST_DCN3_0(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn314/dcn314_resource.c
223
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn314/dcn314_resource.c
224
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn314/dcn314_resource.c
225
CS_COMMON_REG_LIST_DCN3_0(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
217
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
218
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
219
CS_COMMON_REG_LIST_DCN3_0(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
203
#define clk_src_regs(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
204
[index] = {\
sys/dev/pci/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
205
CS_COMMON_REG_LIST_DCN3_0(index, pllid),\
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
141
#define SRI_ARR_ALPHABET(reg_name, block, index, id)\
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
142
REG_STRUCT[index].reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1715
unsigned int index)
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1723
phantom_stream = dcn32_enable_phantom_stream(dc, context, pipes, pipe_cnt, index);
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1727
dcn32_enable_phantom_plane(dc, context, phantom_stream, index);
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
209
#define clk_src_regs_init(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
210
CS_COMMON_REG_LIST_DCN3_0_RI(index, pllid)
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
198
#define CS_COMMON_REG_LIST_DCN3_0_RI(index, pllid) \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
199
SRI_ARR_ALPHABET(PIXCLK_RESYNC_CNTL, PHYPLL, index, pllid), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
200
SRII_ARR_2(PHASE, DP_DTO, 0, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
201
SRII_ARR_2(PHASE, DP_DTO, 1, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
202
SRII_ARR_2(PHASE, DP_DTO, 2, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
203
SRII_ARR_2(PHASE, DP_DTO, 3, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
204
SRII_ARR_2(MODULO, DP_DTO, 0, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
205
SRII_ARR_2(MODULO, DP_DTO, 1, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
206
SRII_ARR_2(MODULO, DP_DTO, 2, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
207
SRII_ARR_2(MODULO, DP_DTO, 3, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
208
SRII_ARR_2(PIXEL_RATE_CNTL, OTG, 0, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
209
SRII_ARR_2(PIXEL_RATE_CNTL, OTG, 1, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
210
SRII_ARR_2(PIXEL_RATE_CNTL, OTG, 2, index), \
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
211
SRII_ARR_2(PIXEL_RATE_CNTL, OTG, 3, index)
sys/dev/pci/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
99
unsigned int index);
sys/dev/pci/drm/amd/display/dc/resource/dcn321/dcn321_resource.c
141
#define SRI_ARR_ALPHABET(reg_name, block, index, id)\
sys/dev/pci/drm/amd/display/dc/resource/dcn321/dcn321_resource.c
142
REG_STRUCT[index].reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
sys/dev/pci/drm/amd/display/dc/resource/dcn321/dcn321_resource.c
208
#define clk_src_regs_init(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn321/dcn321_resource.c
209
CS_COMMON_REG_LIST_DCN3_0_RI(index, pllid)
sys/dev/pci/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
156
#define SRI_ARR_ALPHABET(reg_name, block, index, id)\
sys/dev/pci/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
157
REG_STRUCT[index].reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
sys/dev/pci/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
221
#define clk_src_regs_init(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
222
CS_COMMON_REG_LIST_DCN3_0_RI(index, pllid)
sys/dev/pci/drm/amd/display/dc/resource/dcn351/dcn351_resource.c
136
#define SRI_ARR_ALPHABET(reg_name, block, index, id)\
sys/dev/pci/drm/amd/display/dc/resource/dcn351/dcn351_resource.c
137
REG_STRUCT[index].reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
sys/dev/pci/drm/amd/display/dc/resource/dcn351/dcn351_resource.c
201
#define clk_src_regs_init(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn351/dcn351_resource.c
202
CS_COMMON_REG_LIST_DCN3_0_RI(index, pllid)
sys/dev/pci/drm/amd/display/dc/resource/dcn36/dcn36_resource.c
141
#define SRI_ARR_ALPHABET(reg_name, block, index, id)\
sys/dev/pci/drm/amd/display/dc/resource/dcn36/dcn36_resource.c
142
REG_STRUCT[index].reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
sys/dev/pci/drm/amd/display/dc/resource/dcn36/dcn36_resource.c
206
#define clk_src_regs_init(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn36/dcn36_resource.c
207
CS_COMMON_REG_LIST_DCN3_0_RI(index, pllid)
sys/dev/pci/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
128
#define SRI_ARR_ALPHABET(reg_name, block, index, id)\
sys/dev/pci/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
129
REG_STRUCT[index].reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
sys/dev/pci/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
193
#define clk_src_regs_init(index, pllid)\
sys/dev/pci/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
194
CS_COMMON_REG_LIST_DCN3_0_RI(index, pllid)
sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c
523
uint32_t index = 0;
sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c
526
index = REG_READ(DMCUB_SCRATCH15);
sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c
527
if (index) {
sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c
534
REG_WRITE(DMCUB_SCRATCH15, !index);
sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c
536
index = REG_READ(DMCUB_SCRATCH23);
sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c
537
if (index) {
sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c
544
REG_WRITE(DMCUB_SCRATCH23, !index);
sys/dev/pci/drm/amd/display/include/vector.h
100
uint32_t index);
sys/dev/pci/drm/amd/display/include/vector.h
136
uint32_t index) \
sys/dev/pci/drm/amd/display/include/vector.h
138
return dal_vector_at_index(vector, index); \
sys/dev/pci/drm/amd/display/include/vector.h
145
uint32_t index) \
sys/dev/pci/drm/amd/display/include/vector.h
147
dal_vector_set_at_index(vector, what, index); \
sys/dev/pci/drm/amd/display/include/vector.h
84
uint32_t index);
sys/dev/pci/drm/amd/display/include/vector.h
89
uint32_t index);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1437
int32_t index = 0, index_next = 0;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1456
index = dc_fixpt_floor(norm_y);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1457
index_f = dc_fixpt_from_int(index);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1459
if (index < 0)
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1462
if (index <= max_lut_index)
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1463
index_next = (index == max_lut_index) ? index : index+1;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1470
index = max_lut_index - 1;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1476
lut1 = ramp->entries.red[index];
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1479
lut1 = ramp->entries.green[index];
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
1482
lut1 = ramp->entries.blue[index];
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
170
uint32_t index;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
183
for (index = seg_offset + 1;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
184
index < seg_offset + NUM_PTS_IN_REGION;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
185
index++) {
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
186
coordinates_x[index].x = dc_fixpt_add
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
187
(coordinates_x[index-1].x, increment);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
402
uint32_t index = 0;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
406
index = 0;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
408
index = 1;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
410
index = 2;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
412
index = 3;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
414
index = 4;
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
422
numerator01[index], 10000000);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
424
numerator02[index], 1000);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
426
numerator03[index], 1000);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
428
numerator04[index], 1000);
sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
430
numerator05[index], 1000);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
327
HDCP_TOP_INTERFACE_TRACE_WITH_INDEX(hdcp, display->index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
337
if (get_active_display_at_index(hdcp, display->index)) {
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
380
uint8_t index, struct mod_hdcp_output *output)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
385
HDCP_TOP_INTERFACE_TRACE_WITH_INDEX(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
389
display = get_active_display_at_index(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
407
status = mod_hdcp_remove_display_from_topology(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
423
uint8_t index,
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
431
HDCP_TOP_INTERFACE_TRACE_WITH_INDEX(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
435
display = get_active_display_at_index(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
486
uint8_t index, struct mod_hdcp_display_query *query)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.c
492
display = get_active_display_at_index(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.h
551
struct mod_hdcp *hdcp, uint8_t index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp.h
557
if (hdcp->displays[i].index == index &&
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
106
hdcp->config.index, msg_name,\
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
111
hdcp->config.index, i)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
114
hdcp->config.index, i)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
117
hdcp->config.index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
120
hdcp->config.index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
122
HDCP_LOG_TOP(hdcp, "[Link %d]\treset authentication", hdcp->config.index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
124
HDCP_LOG_TOP(hdcp, "[Link %d]\treset connection", hdcp->config.index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
127
HDCP_LOG_TOP(hdcp, "[Link %d] %s", hdcp->config.index, __func__); \
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
131
HDCP_LOG_TOP(hdcp, "[Link %d] %s display %d", hdcp->config.index, __func__, i); \
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
39
hdcp->config.index, \
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
46
hdcp->config.index, displayIndex)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
50
hdcp->config.index, displayIndex)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
54
hdcp->config.index, displayIndex)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
58
hdcp->config.index, displayIndex)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
64
hdcp->config.index, displayIndex)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
68
hdcp->config.index, str)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
72
hdcp->config.index, str)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
77
hdcp->config.index, \
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
81
"[Link %d] > %s", hdcp->config.index, \
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
85
HDCP_LOG_FSM(hdcp, "[Link %d] --> TIMEOUT", hdcp->config.index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
87
HDCP_LOG_FSM(hdcp, "[Link %d] --> CPIRQ", hdcp->config.index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
99
HDCP_LOG_DDC(hdcp, "[Link %d] Read %s%s", hdcp->config.index, \
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
103
dtm_cmd->dtm_in_message.topology_update_v3.display_handle = display->index;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
111
status = remove_display_from_topology_v2(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
116
HDCP_TOP_REMOVE_DISPLAY_TRACE(hdcp, display->index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
142
dtm_cmd->dtm_in_message.topology_update_v2.display_handle = display->index;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
162
HDCP_TOP_ADD_DISPLAY_TRACE(hdcp, display->index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
189
dtm_cmd->dtm_in_message.topology_update_v3.display_handle = display->index;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
218
HDCP_TOP_ADD_DISPLAY_TRACE(hdcp, display->index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
225
struct mod_hdcp *hdcp, uint8_t index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
230
status = remove_display_from_topology_v3(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
232
status = remove_display_from_topology_v2(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
271
hdcp_cmd->in_msg.hdcp1_create_session.display_handle = display->index;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
318
hdcp, hdcp->displays[i].index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
390
HDCP_HDCP1_ENABLED_TRACE(hdcp, display->index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
457
hdcp_cmd->in_msg.hdcp1_enable_dp_stream_encryption.display_handle = hdcp->displays[i].index;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
468
HDCP_HDCP1_ENABLED_TRACE(hdcp, hdcp->displays[i].index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
49
struct mod_hdcp *hdcp, uint8_t index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
522
hdcp_cmd->in_msg.hdcp2_create_session_v2.display_handle = display->index;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
54
get_active_display_at_index(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
573
hdcp, hdcp->displays[i].index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
67
dtm_cmd->dtm_in_message.topology_update_v2.display_handle = display->index;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
77
HDCP_TOP_REMOVE_DISPLAY_TRACE(hdcp, display->index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
85
struct mod_hdcp *hdcp, uint8_t index)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
856
HDCP_HDCP2_ENABLED_TRACE(hdcp, display->index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
90
get_active_display_at_index(hdcp, index);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
937
hdcp_cmd->in_msg.hdcp2_enable_dp_stream_encryption.display_handle = hdcp->displays[i].index;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
947
HDCP_HDCP2_ENABLED_TRACE(hdcp, hdcp->displays[i].index);
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
267
uint8_t index;
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
310
uint8_t index;
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
330
uint8_t index, struct mod_hdcp_output *output);
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
334
uint8_t index,
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
341
uint8_t index, struct mod_hdcp_display_query *query);
sys/dev/pci/drm/amd/include/cgs_common.h
109
unsigned index);
sys/dev/pci/drm/amd/include/cgs_common.h
118
unsigned index, uint32_t value);
sys/dev/pci/drm/amd/include/cgs_common.h
168
#define cgs_read_ind_register(dev, space, index) \
sys/dev/pci/drm/amd/include/cgs_common.h
169
CGS_CALL(read_ind_register, dev, space, index)
sys/dev/pci/drm/amd/include/cgs_common.h
170
#define cgs_write_ind_register(dev, space, index, value) \
sys/dev/pci/drm/amd/include/cgs_common.h
171
CGS_CALL(write_ind_register, dev, space, index, value)
sys/dev/pci/drm/amd/include/pptable.h
461
UCHAR index;
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
2763
int channel = to_sensor_dev_attr(attr)->index;
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
2801
int hyst = to_sensor_dev_attr(attr)->index;
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
2817
int hyst = to_sensor_dev_attr(attr)->index;
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
2833
int hyst = to_sensor_dev_attr(attr)->index;
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
2848
int channel = to_sensor_dev_attr(attr)->index;
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
2861
int channel = to_sensor_dev_attr(attr)->index;
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
3312
enum pp_power_type power_type = to_sensor_dev_attr(attr)->index;
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
3374
to_sensor_dev_attr(attr)->index == PP_PWR_TYPE_FAST ?
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
3386
int limit_type = to_sensor_dev_attr(attr)->index;
sys/dev/pci/drm/amd/pm/amdgpu_pm.c
3646
struct attribute *attr, int index)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2313
u32 index, bool enable)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2317
pi->graphics_level[index].EnabledForThrottle = enable ? 1 : 0;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2554
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2560
if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2672
struct amdgpu_ps *rps, int index,
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2677
struct kv_pl *pl = &ps->levels[index];
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2685
ps->num_levels = index + 1;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2704
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2710
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
652
u32 index, u32 sclk)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
663
pi->graphics_level[index].SclkDid = (u8)dividers.post_div;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
664
pi->graphics_level[index].SclkFrequency = cpu_to_be32(sclk);
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
687
static int kv_set_vid(struct amdgpu_device *adev, u32 index, u32 vid)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
691
pi->graphics_level[index].VoltageDownH = (u8)pi->voltage_drop_t;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
692
pi->graphics_level[index].MinVddNb =
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
698
static int kv_set_at(struct amdgpu_device *adev, u32 index, u32 at)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
702
pi->graphics_level[index].AT = cpu_to_be16((u16)at);
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
708
u32 index, bool enable)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
712
pi->graphics_level[index].EnabledForActivity = enable ? 1 : 0;
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
137
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
141
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
200
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
205
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
652
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
658
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
3771
u32 index, u16 *leakage_voltage)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
3779
if ((index & 0xff00) != 0xff00)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
3782
if ((index & 0xff) > SISLANDS_MAX_LEAKAGE_COUNT + 1)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
3785
if (index < SISLANDS_LEAKAGE_INDEX0)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
3789
if (si_pi->leakage_voltage.entries[i].leakage_index == index) {
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
4631
voltage->index = (u8)i;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
4651
voltage->index = 0;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
4653
voltage->index = (u8)(si_pi->mvdd_voltage_table.count) - 1;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
4655
voltage->value = cpu_to_be16(si_pi->mvdd_voltage_table.entries[voltage->index].value);
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
4703
if ((u32)voltage->index < adev->pm.dpm.dyn_state.cac_leakage_table.count)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
4704
*std_voltage = adev->pm.dpm.dyn_state.cac_leakage_table.entries[voltage->index].vddc;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
4712
u16 value, u8 index,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
4715
voltage->index = index;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
4948
table->initialState.level.vddc.index,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
5065
table->ACPIState.level.vddc.index,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
5089
table->ACPIState.level.vddc.index,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
5597
level->vddc.index, &level->std_vddc);
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7230
struct amdgpu_ps *rps, int index,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7238
struct rv7xx_pl *pl = &ps->performance_levels[index];
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7241
ps->performance_level_count = index + 1;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7269
index == 0) {
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7321
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7327
if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.h
410
uint8_t index;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.h
748
uint8_t index;
sys/dev/pci/drm/amd/pm/legacy-dpm/sislands_smc.h
127
uint8_t index;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
921
uint32_t index;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
936
index = fls(hwmgr->workload_mask);
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
937
index = index > 0 && index <= Workload_Policy_Max ? index - 1 : 0;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
938
workload[0] = hwmgr->workload_setting[index];
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
941
index = fls(hwmgr->workload_mask);
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
942
index = index <= Workload_Policy_Max ? index - 1 : 0;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
943
workload[0] = hwmgr->workload_setting[index];
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
297
int index = 0;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
308
for (index = 0; index < display_config->num_path_including_non_display; index++) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
309
if (display_config->displays[index].controller_id != 0)
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
353
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
360
return hwmgr->hwmgr_func->get_performance_level(hwmgr, state, designation, index, level);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/pp_psm.c
274
uint32_t index;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/pp_psm.c
298
index = fls(hwmgr->workload_mask);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/pp_psm.c
299
index = index > 0 && index <= Workload_Policy_Max ? index - 1 : 0;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/pp_psm.c
300
workload[0] = hwmgr->workload_setting[index];
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
248
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
254
smu_atom_get_data_table(device, index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
47
uint8_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
62
if (index == tmem_id) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
136
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
145
index, &size, &frev, &crev);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/processpptables.h
36
unsigned int index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
1111
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
1121
if (index == 0) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
892
unsigned int index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
897
smu10_ps->levels[index].engine_clock = 0;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
899
smu10_ps->levels[index].vddc_index = 0;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
900
smu10_ps->level = index + 1;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
903
smu10_ps->levels[index].ds_divider_index = 5;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
904
smu10_ps->levels[index].ss_divider_index = 5;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2149
uint32_t index;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2152
for (index = 0; index < leakage_table->count; index++) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2155
if (leakage_table->leakage_id[index] == *voltage) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2156
*voltage = leakage_table->actual_voltage[index];
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2632
uint32_t index;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2635
for (index = 0; index < leakage_table->count; index++) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2638
if (leakage_table->leakage_id[index] == *voltage) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2639
*voltage = leakage_table->actual_voltage[index];
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3539
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3544
fw_info = (ATOM_FIRMWARE_INFO_V2_2 *)smu_atom_get_data_table(hwmgr->adev, index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3793
unsigned int index, const void *clock_info)
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
5710
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
5721
i = index > ps->performance_level_count - 1 ?
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
5722
ps->performance_level_count - 1 : index;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1388
unsigned int index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1397
uint8_t clock_info_index = smu8_clock_info->index;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1402
smu8_ps->levels[index].engineClock = table->entries[clock_info_index].clk;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1403
smu8_ps->levels[index].vddcIndex = (uint8_t)table->entries[clock_info_index].v;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1405
smu8_ps->level = index + 1;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1408
smu8_ps->levels[index].dsDividerIndex = 5;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1409
smu8_ps->levels[index].ssDividerIndex = 5;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1608
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1622
level_index = index > ps->level - 1 ? ps->level - 1 : index;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
110
int phm_wait_on_register(struct pp_hwmgr *hwmgr, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
122
cur_value = cgs_read_register(hwmgr->device, index);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
142
uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
151
cgs_write_register(hwmgr->device, indirect_port, index);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
156
uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
167
index);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
181
uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
188
cgs_write_register(hwmgr->device, indirect_port, index);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
363
uint32_t index, uint32_t pcie_gen,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
367
dpm_table->dpm_level[index].value = pcie_gen;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
368
dpm_table->dpm_level[index].param1 = pcie_lanes;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.c
369
dpm_table->dpm_level[index].enabled = 1;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
104
uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
176
#define PHM_WAIT_INDIRECT_REGISTER_GIVEN_INDEX(hwmgr, port, index, value, mask) \
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
177
phm_wait_on_indirect_register(hwmgr, mm##port##_INDEX, index, value, mask)
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
187
#define PHM_WAIT_INDIRECT_REGISTER_UNEQUAL_GIVEN_INDEX(hwmgr, port, index, value, mask) \
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
189
mm##port##_INDEX, index, value, mask)
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
201
port, index, value, mask) \
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
203
mm##port##_INDEX_11, index, value, mask)
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
215
port, index, value, mask) \
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
217
mm##port##_INDEX_11, index, value, mask)
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
228
index, value, mask) \
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
230
index, value, mask)
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
63
uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
67
uint32_t indirect_port, uint32_t index,
sys/dev/pci/drm/amd/pm/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/pci/drm/amd/pm/powerplay/hwmgr/smu_helper.h
99
extern int phm_wait_on_register(struct pp_hwmgr *hwmgr, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
5682
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
5695
i = index > vega10_ps->performance_level_count - 1 ?
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
5696
vega10_ps->performance_level_count - 1 : index;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
620
uint32_t index;
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
623
for (index = 0; index < leakage_table->count; index++) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
626
if (leakage_table->leakage_id[index] == *voltage) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
627
*voltage = leakage_table->actual_voltage[index];
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c
48
int index = GetIndexIntoMasterDataTable(powerplayinfo);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c
56
smu_atom_get_data_table(hwmgr->adev, index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
2835
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
595
PPCLK_e clkID, uint32_t index, uint32_t *clock)
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
602
PPSMC_MSG_GetDpmFreqByIndex, (clkID << 16 | index),
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c
45
int index = GetIndexIntoMasterDataTable(powerplayinfo);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c
53
smu_atom_get_data_table(hwmgr->adev, index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c
1402
uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c
1416
switch (index) {
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c
2341
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c
553
PPCLK_e clk_id, uint32_t index, uint32_t *clk)
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c
559
(clk_id << 16 | index),
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c
144
int index = GetIndexIntoMasterDataTable(smc_dpm_info);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c
148
smc_dpm_table = smu_atom_get_data_table(hwmgr->adev, index, NULL, NULL, NULL),
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c
47
int index = GetIndexIntoMasterDataTable(powerplayinfo);
sys/dev/pci/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c
55
smu_atom_get_data_table(hwmgr->adev, index,
sys/dev/pci/drm/amd/pm/powerplay/inc/hardwaremanager.h
437
PHM_PerformanceLevelDesignation designation, uint32_t index,
sys/dev/pci/drm/amd/pm/powerplay/inc/smu72.h
82
uint8_t index;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu73.h
73
uint8_t index;
sys/dev/pci/drm/amd/pm/powerplay/inc/smu74.h
107
uint8_t index;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
758
uint8_t index;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
771
index = phm_get_voltage_index(lookup_table,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
774
convert_to_vid(lookup_table->entries[index].us_cac_low);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
776
convert_to_vid(lookup_table->entries[index].us_cac_high);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
745
uint8_t index;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
757
index = phm_get_voltage_index(lookup_table,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
759
table->BapmVddcVidLoSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_low);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
760
table->BapmVddcVidHiSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_mid);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
761
table->BapmVddcVidHiSidd2[count] = convert_to_vid(lookup_table->entries[index].us_cac_high);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
150
uint32_t index = SMN_MP1_SRAM_START_ADDR +
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
157
cgs_write_register(hwmgr->device, mmMP0PUB_IND_INDEX, index);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
736
uint32_t index = SMN_MP1_SRAM_START_ADDR +
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
745
cgs_write_register(hwmgr->device, mmMP0PUB_IND_INDEX, index);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
395
uint8_t index = 0;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
412
index = phm_get_voltage_index(vddc_lookup_table,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
415
convert_to_vid(vddc_lookup_table->entries[index].us_cac_low);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
417
convert_to_vid(vddc_lookup_table->entries[index].us_cac_mid);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
419
convert_to_vid(vddc_lookup_table->entries[index].us_cac_high);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
425
index = phm_get_voltage_index(vddgfx_lookup_table,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
426
convert_to_vid(vddgfx_lookup_table->entries[index].us_cac_mid));
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
428
convert_to_vid(vddgfx_lookup_table->entries[index].us_cac_high);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
432
index = phm_get_voltage_index(vddc_lookup_table,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
435
convert_to_vid(vddc_lookup_table->entries[index].us_cac_low);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
437
convert_to_vid(vddc_lookup_table->entries[index].us_cac_mid);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
439
convert_to_vid(vddc_lookup_table->entries[index].us_cac_high);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
504
uint8_t index;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
516
index = phm_get_voltage_index(lookup_table,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
519
convert_to_vid(lookup_table->entries[index].us_cac_low);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
521
convert_to_vid(lookup_table->entries[index].us_cac_mid);
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
523
convert_to_vid(lookup_table->entries[index].us_cac_high);
sys/dev/pci/drm/amd/pm/swsmu/inc/amdgpu_smu.h
1596
#define MSG_MAP(msg, index, flags) \
sys/dev/pci/drm/amd/pm/swsmu/inc/amdgpu_smu.h
1597
[SMU_MSG_##msg] = {1, (index), (flags)}
sys/dev/pci/drm/amd/pm/swsmu/inc/amdgpu_smu.h
1599
#define CLK_MAP(clk, index) \
sys/dev/pci/drm/amd/pm/swsmu/inc/amdgpu_smu.h
1600
[SMU_##clk] = {1, (index)}
sys/dev/pci/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
514
int index, ret;
sys/dev/pci/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
516
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
519
ret = amdgpu_atombios_get_data_table(smu->adev, index, NULL, NULL, NULL,
sys/dev/pci/drm/amd/pm/swsmu/smu11/navi10_ppt.c
413
int index, ret;
sys/dev/pci/drm/amd/pm/swsmu/smu11/navi10_ppt.c
415
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu11/navi10_ppt.c
418
ret = amdgpu_atombios_get_data_table(adev, index, NULL, NULL, NULL,
sys/dev/pci/drm/amd/pm/swsmu/smu11/navi10_ppt.c
438
ret = amdgpu_atombios_get_data_table(adev, index, NULL, NULL, NULL,
sys/dev/pci/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
3085
int ret = 0, index;
sys/dev/pci/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
3089
index = smu_cmn_to_asic_specific_index(smu, CMN2ASIC_MAPPING_MSG,
sys/dev/pci/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
3094
ret = smu_cmn_send_msg_without_waiting(smu, (uint16_t)index,
sys/dev/pci/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
437
int index, ret;
sys/dev/pci/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
446
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
449
ret = amdgpu_atombios_get_data_table(smu->adev, index, NULL, NULL, NULL,
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
317
int ret, index;
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
349
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
352
ret = amdgpu_atombios_get_data_table(adev, index, &atom_table_size, &frev, &crev,
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
507
int ret, index;
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
512
index = get_index_into_master_table(atom_master_list_of_command_functions_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
515
ret = amdgpu_atom_execute_table(adev->mode_info.atom_context, index,
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
528
int ret, index;
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
535
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
538
ret = amdgpu_atombios_get_data_table(smu->adev, index, &size, &frev, &crev,
sys/dev/pci/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
2268
int ret = 0, index = 0;
sys/dev/pci/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
2270
index = smu_cmn_to_asic_specific_index(smu, CMN2ASIC_MAPPING_MSG,
sys/dev/pci/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
2272
if (index < 0)
sys/dev/pci/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
2273
return index == -EACCES ? 0 : index;
sys/dev/pci/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
2277
ret = smu_cmn_send_msg_without_waiting(smu, (uint16_t)index, type);
sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
295
int ret, index;
sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
300
index = get_index_into_master_table(atom_master_list_of_command_functions_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
303
ret = amdgpu_atom_execute_table(adev->mode_info.atom_context, index,
sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
316
int ret, index;
sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
323
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
326
ret = amdgpu_atombios_get_data_table(smu->adev, index, &size, &frev, &crev,
sys/dev/pci/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1950
int ret = 0, index;
sys/dev/pci/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1954
index = smu_cmn_to_asic_specific_index(smu, CMN2ASIC_MAPPING_MSG,
sys/dev/pci/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1956
if (index < 0 )
sys/dev/pci/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1960
ret = smu_cmn_send_msg_without_waiting(smu, (uint16_t)index, SMU_RESET_MODE_2);
sys/dev/pci/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
505
int index, ret;
sys/dev/pci/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
507
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
510
ret = amdgpu_atombios_get_data_table(smu->adev, index, NULL, NULL, NULL,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
2258
uint16_t index;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
2266
index = smu_cmn_to_asic_specific_index(smu, CMN2ASIC_MAPPING_MSG,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
2268
return smu_cmn_send_msg_without_waiting(smu, index,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
350
int ret, index;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
353
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
356
ret = amdgpu_atombios_get_data_table(adev, index, &atom_table_size, &frev, &crev,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
582
int ret, index;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
592
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
595
ret = amdgpu_atombios_get_data_table(smu->adev, index, &size, &frev, &crev,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
656
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
658
if (!amdgpu_atombios_get_data_table(smu->adev, index, &size, &frev, &crev,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
412
int index, ret;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
414
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
417
ret = amdgpu_atombios_get_data_table(smu->adev, index, NULL, NULL, NULL,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2973
int ret = 0, index;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2977
index = smu_cmn_to_asic_specific_index(smu, CMN2ASIC_MAPPING_MSG,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2979
if (index < 0)
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2980
return index;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2984
ret = smu_cmn_send_msg_without_waiting(smu, (uint16_t)index,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
425
int index, ret;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
427
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
430
ret = amdgpu_atombios_get_data_table(smu->adev, index, NULL, NULL, NULL,
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1848
uint16_t index;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1856
index = smu_cmn_to_asic_specific_index(smu, CMN2ASIC_MAPPING_MSG,
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1858
return smu_cmn_send_msg_without_waiting(smu, index, ENABLE_IMU_ARG_GFXOFF_ENABLE);
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
340
int ret, index;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
343
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
346
ret = amdgpu_atombios_get_data_table(adev, index, &atom_table_size, &frev, &crev,
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
567
int ret, index;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
577
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
580
ret = amdgpu_atombios_get_data_table(smu->adev, index, &size, &frev, &crev,
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
641
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
643
if (!amdgpu_atombios_get_data_table(smu->adev, index, &size, &frev, &crev,
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
427
int res, index;
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
434
index = smu_cmn_to_asic_specific_index(smu,
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
437
if (index < 0)
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
438
return index == -EACCES ? 0 : index;
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
462
__smu_cmn_reg_print_error(smu, reg, index, param, msg);
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
466
__smu_cmn_send_msg(smu, (uint16_t) index, param);
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
472
__smu_cmn_reg_print_error(smu, reg, index, param, msg);
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
477
smu_get_message_name(smu, msg), index, param, reg, *read_arg);
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
480
smu_get_message_name(smu, msg), index, param, reg);
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
516
uint32_t index)
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
523
if (index >= SMU_MSG_MAX_COUNT ||
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
527
msg_mapping = smu->message_map[index];
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
538
if (index >= SMU_CLK_COUNT ||
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
542
mapping = smu->clock_map[index];
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
549
if (index >= SMU_FEATURE_COUNT ||
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
553
mapping = smu->feature_map[index];
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
560
if (index >= SMU_TABLE_COUNT ||
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
564
mapping = smu->table_map[index];
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
571
if (index >= SMU_POWER_SOURCE_COUNT ||
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
575
mapping = smu->pwr_src_map[index];
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
582
if (index >= PP_SMC_POWER_PROFILE_COUNT ||
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
586
mapping = smu->workload_map[index];
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
692
int ret = 0, index = 0;
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
700
index = smu_cmn_to_asic_specific_index(smu,
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.c
703
if (index > 0) {
sys/dev/pci/drm/amd/pm/swsmu/smu_cmn.h
126
uint32_t index);
sys/dev/pci/drm/apple/dcp-internal.h
148
u32 index;
sys/dev/pci/drm/apple/dcp.c
802
&dcp->index);
sys/dev/pci/drm/apple/dcp.c
807
if (dcp->index || dcp->dptx_phy || dcp->dptx_die)
sys/dev/pci/drm/apple/dcp.c
809
dcp->index, dcp->dptx_phy, dcp->dptx_die);
sys/dev/pci/drm/apple/dcp_backlight.c
100
size_t index = interpolated / SCALE_FACTOR;
sys/dev/pci/drm/apple/dcp_backlight.c
102
if (WARN(index + 1 >= tbl_size, "invalid index %zu for brightness %u\n", index, val))
sys/dev/pci/drm/apple/dcp_backlight.c
106
low = tbl[index];
sys/dev/pci/drm/apple/dcp_backlight.c
107
high = tbl[index + 1];
sys/dev/pci/drm/apple/dptxep.c
451
phy_set_mode_ext(dptx->atcphy, PHY_MODE_DP, dcp->index);
sys/dev/pci/drm/apple/iomfb_template.c
459
if (req->index >= dcp->nr_disp_registers) {
sys/dev/pci/drm/apple/iomfb_template.c
461
req->index);
sys/dev/pci/drm/apple/iomfb_template.c
465
struct resource *rsrc = dcp->disp_registers[req->index];
sys/dev/pci/drm/apple/iomfb_template.c
671
u32 index = dcp->disp_bw_scratch_index;
sys/dev/pci/drm/apple/iomfb_template.c
672
rt_bw.reg_scratch = dcp->disp_registers[index]->start + offset;
sys/dev/pci/drm/apple/iomfb_template.c
676
u32 index = dcp->disp_bw_doorbell_index;
sys/dev/pci/drm/apple/iomfb_template.c
677
rt_bw.reg_doorbell = dcp->disp_registers[index]->start;
sys/dev/pci/drm/apple/iomfb_template.c
678
rt_bw.doorbell_bit = REG_DOORBELL_BIT(dcp->index);
sys/dev/pci/drm/apple/iomfb_template.h
149
u32 index;
sys/dev/pci/drm/clients/drm_log.c
388
con->index = -1;
sys/dev/pci/drm/display/drm_dp_aux_dev.c
288
idr_remove(&aux_idr, aux_dev->index);
sys/dev/pci/drm/display/drm_dp_aux_dev.c
294
minor = aux_dev->index;
sys/dev/pci/drm/display/drm_dp_aux_dev.c
313
MKDEV(drm_dev_major, aux_dev->index), NULL,
sys/dev/pci/drm/display/drm_dp_aux_dev.c
314
"drm_dp_aux%d", aux_dev->index);
sys/dev/pci/drm/display/drm_dp_aux_dev.c
322
aux->name, aux_dev->index);
sys/dev/pci/drm/display/drm_dp_aux_dev.c
46
unsigned index;
sys/dev/pci/drm/display/drm_dp_aux_dev.c
60
static struct drm_dp_aux_dev *drm_dp_aux_dev_get_by_minor(unsigned index)
sys/dev/pci/drm/display/drm_dp_aux_dev.c
65
aux_dev = idr_find(&aux_idr, index);
sys/dev/pci/drm/display/drm_dp_aux_dev.c
76
int index;
sys/dev/pci/drm/display/drm_dp_aux_dev.c
86
index = idr_alloc(&aux_idr, aux_dev, 0, DRM_AUX_MINORS, GFP_KERNEL);
sys/dev/pci/drm/display/drm_dp_aux_dev.c
88
if (index < 0) {
sys/dev/pci/drm/display/drm_dp_aux_dev.c
90
return ERR_PTR(index);
sys/dev/pci/drm/display/drm_dp_aux_dev.c
92
aux_dev->index = index;
sys/dev/pci/drm/dma-resv.c
369
cursor->index = 0;
sys/dev/pci/drm/dma-resv.c
387
if (cursor->index >= cursor->num_fences) {
sys/dev/pci/drm/dma-resv.c
393
dma_resv_list_entry(cursor->fences, cursor->index++,
sys/dev/pci/drm/dma-resv.c
477
cursor->index = 0;
sys/dev/pci/drm/dma-resv.c
503
cursor->index >= cursor->fences->num_fences)
sys/dev/pci/drm/dma-resv.c
506
dma_resv_list_entry(cursor->fences, cursor->index++,
sys/dev/pci/drm/dma-resv.c
70
static void dma_resv_list_entry(struct dma_resv_list *list, unsigned int index,
sys/dev/pci/drm/dma-resv.c
76
tmp = (long)rcu_dereference_check(list->table[index],
sys/dev/pci/drm/dma-resv.c
85
unsigned int index,
sys/dev/pci/drm/dma-resv.c
91
RCU_INIT_POINTER(list->table[index], (struct dma_fence *)tmp);
sys/dev/pci/drm/drm_atomic.c
1136
int ret, index;
sys/dev/pci/drm/drm_atomic.c
1146
index = drm_connector_index(connector);
sys/dev/pci/drm/drm_atomic.c
1148
if (index >= state->num_connector) {
sys/dev/pci/drm/drm_atomic.c
1150
int alloc = max(index + 1, config->num_connector);
sys/dev/pci/drm/drm_atomic.c
1174
if (state->connectors[index].state)
sys/dev/pci/drm/drm_atomic.c
1175
return state->connectors[index].state;
sys/dev/pci/drm/drm_atomic.c
1182
state->connectors[index].state = connector_state;
sys/dev/pci/drm/drm_atomic.c
1183
state->connectors[index].old_state = connector->state;
sys/dev/pci/drm/drm_atomic.c
1184
state->connectors[index].new_state = connector_state;
sys/dev/pci/drm/drm_atomic.c
1185
state->connectors[index].ptr = connector;
sys/dev/pci/drm/drm_atomic.c
347
int ret, index = drm_crtc_index(crtc);
sys/dev/pci/drm/drm_atomic.c
364
state->crtcs[index].state = crtc_state;
sys/dev/pci/drm/drm_atomic.c
365
state->crtcs[index].old_state = crtc->state;
sys/dev/pci/drm/drm_atomic.c
366
state->crtcs[index].new_state = crtc_state;
sys/dev/pci/drm/drm_atomic.c
367
state->crtcs[index].ptr = crtc;
sys/dev/pci/drm/drm_atomic.c
527
int ret, index = drm_plane_index(plane);
sys/dev/pci/drm/drm_atomic.c
549
state->planes[index].state = plane_state;
sys/dev/pci/drm/drm_atomic.c
550
state->planes[index].ptr = plane;
sys/dev/pci/drm/drm_atomic.c
551
state->planes[index].old_state = plane->state;
sys/dev/pci/drm/drm_atomic.c
552
state->planes[index].new_state = plane_state;
sys/dev/pci/drm/drm_atomic.c
834
int index, num_objs, i, ret;
sys/dev/pci/drm/drm_atomic.c
863
index = state->num_private_objs;
sys/dev/pci/drm/drm_atomic.c
864
memset(&state->private_objs[index], 0, sizeof(*state->private_objs));
sys/dev/pci/drm/drm_atomic.c
870
state->private_objs[index].state = obj_state;
sys/dev/pci/drm/drm_atomic.c
871
state->private_objs[index].old_state = obj->state;
sys/dev/pci/drm/drm_atomic.c
872
state->private_objs[index].new_state = obj_state;
sys/dev/pci/drm/drm_atomic.c
873
state->private_objs[index].ptr = obj;
sys/dev/pci/drm/drm_atomic_uapi.c
343
unsigned int index = drm_connector_index(connector);
sys/dev/pci/drm/drm_atomic_uapi.c
351
state->connectors[index].out_fence_ptr = fence_ptr;
sys/dev/pci/drm/drm_atomic_uapi.c
359
unsigned int index = drm_connector_index(connector);
sys/dev/pci/drm/drm_atomic_uapi.c
362
fence_ptr = state->connectors[index].out_fence_ptr;
sys/dev/pci/drm/drm_atomic_uapi.c
363
state->connectors[index].out_fence_ptr = NULL;
sys/dev/pci/drm/drm_connector.c
257
connector->index = ret;
sys/dev/pci/drm/drm_connector.c
326
ida_free(&config->connector_ida, connector->index);
sys/dev/pci/drm/drm_connector.c
797
ida_free(&dev->mode_config.connector_ida, connector->index);
sys/dev/pci/drm/drm_crtc.c
284
crtc->index = config->num_crtc++;
sys/dev/pci/drm/drm_crtc.c
92
if (idx == crtc->index)
sys/dev/pci/drm/drm_debugfs.c
110
priv->minor->index,
sys/dev/pci/drm/drm_debugfs.c
833
name = kasprintf(GFP_KERNEL, "crtc-%d", crtc->index);
sys/dev/pci/drm/drm_debugfs.c
857
name = kasprintf(GFP_KERNEL, "encoder-%d", encoder->index);
sys/dev/pci/drm/drm_displayid.c
41
displayid_get_header(const u8 *displayid, int length, int index)
sys/dev/pci/drm/drm_displayid.c
45
if (sizeof(*base) > length - index)
sys/dev/pci/drm/drm_displayid.c
48
base = (const struct displayid_header *)&displayid[index];
sys/dev/pci/drm/drm_drv.c
1103
name = kasprintf(GFP_KERNEL, "controlD%d", minor->index + 64);
sys/dev/pci/drm/drm_drv.c
1128
name = kasprintf(GFP_KERNEL, "controlD%d", minor->index + 64);
sys/dev/pci/drm/drm_drv.c
1213
dev->primary ? dev->primary->index : dev->accel->index);
sys/dev/pci/drm/drm_drv.c
188
xa_erase(drm_minor_get_xa(minor->type), minor->index);
sys/dev/pci/drm/drm_drv.c
1936
dm->index = minor(kdev);
sys/dev/pci/drm/drm_drv.c
217
r = xa_alloc(drm_minor_get_xa(type), &minor->index,
sys/dev/pci/drm/drm_drv.c
220
r = xa_alloc(&drm_minors_xa, &minor->index,
sys/dev/pci/drm/drm_drv.c
253
ret = drm_debugfs_register(minor, minor->index);
sys/dev/pci/drm/drm_drv.c
266
entry = xa_store(drm_minor_get_xa(type), minor->index, minor, GFP_KERNEL);
sys/dev/pci/drm/drm_drv.c
273
DRM_DEBUG("new minor registered %d\n", minor->index);
sys/dev/pci/drm/drm_drv.c
294
xa_store(drm_minor_get_xa(type), minor->index, NULL, GFP_KERNEL);
sys/dev/pci/drm/drm_edid.c
1638
static const void *edid_block_data(const struct edid *edid, int index)
sys/dev/pci/drm/drm_edid.c
1642
return edid + index;
sys/dev/pci/drm/drm_edid.c
1645
static const void *edid_extension_block_data(const struct edid *edid, int index)
sys/dev/pci/drm/drm_edid.c
1647
return edid_block_data(edid, index + 1);
sys/dev/pci/drm/drm_edid.c
1688
static const void *drm_edid_block_data(const struct drm_edid *drm_edid, int index)
sys/dev/pci/drm/drm_edid.c
1690
return edid_block_data(drm_edid->edid, index);
sys/dev/pci/drm/drm_edid.c
1694
int index)
sys/dev/pci/drm/drm_edid.c
1696
return edid_extension_block_data(drm_edid->edid, index);
sys/dev/pci/drm/drm_edid.c
1733
int index;
sys/dev/pci/drm/drm_edid.c
1751
if (iter->index < drm_edid_block_count(iter->drm_edid))
sys/dev/pci/drm/drm_edid.c
1752
block = drm_edid_block_data(iter->drm_edid, iter->index++);
sys/dev/pci/drm/drm_edid.c
5020
int index;
sys/dev/pci/drm/drm_edid.c
5083
db = (const struct cea_db *)&iter->collection[iter->index];
sys/dev/pci/drm/drm_edid.c
5085
if (iter->index + sizeof(*db) <= iter->end &&
sys/dev/pci/drm/drm_edid.c
5086
iter->index + sizeof(*db) + cea_db_payload_len(db) <= iter->end)
sys/dev/pci/drm/drm_edid.c
5126
iter->index = 4;
sys/dev/pci/drm/drm_edid.c
5127
iter->end = iter->index + size;
sys/dev/pci/drm/drm_edid.c
5155
iter->index = sizeof(*block);
sys/dev/pci/drm/drm_edid.c
5156
iter->end = iter->index + block->num_bytes;
sys/dev/pci/drm/drm_edid.c
5177
iter->index += sizeof(*db) + cea_db_payload_len(db);
sys/dev/pci/drm/drm_encoder.c
133
encoder->index = dev->mode_config.num_encoder++;
sys/dev/pci/drm/drm_exec.c
59
unsigned long index;
sys/dev/pci/drm/drm_exec.c
61
drm_exec_for_each_locked_object_reverse(exec, index, obj) {
sys/dev/pci/drm/drm_file.c
346
current->comm, task_pid_nr(current), minor->index);
sys/dev/pci/drm/drm_gpuvm.c
1517
unsigned long index;
sys/dev/pci/drm/drm_gpuvm.c
1519
drm_exec_for_each_locked_object(exec, index, obj) {
sys/dev/pci/drm/drm_ioctl.c
912
unsigned int index = nr - DRM_COMMAND_BASE;
sys/dev/pci/drm/drm_ioctl.c
914
if (index >= dev->driver->num_ioctls)
sys/dev/pci/drm/drm_ioctl.c
916
index = array_index_nospec(index, dev->driver->num_ioctls);
sys/dev/pci/drm/drm_ioctl.c
917
ioctl = &dev->driver->ioctls[index];
sys/dev/pci/drm/drm_linux.c
1124
__xa_erase(struct xarray *xa, unsigned long index)
sys/dev/pci/drm/drm_linux.c
1129
find.id = index;
sys/dev/pci/drm/drm_linux.c
1140
__xa_load(struct xarray *xa, unsigned long index)
sys/dev/pci/drm/drm_linux.c
1144
find.id = index;
sys/dev/pci/drm/drm_linux.c
1152
__xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
sys/dev/pci/drm/drm_linux.c
1158
return __xa_erase(xa, index);
sys/dev/pci/drm/drm_linux.c
1160
find.id = index;
sys/dev/pci/drm/drm_linux.c
1180
res->id = index;
sys/dev/pci/drm/drm_linux.c
1188
xa_get_next(struct xarray *xa, unsigned long *index)
sys/dev/pci/drm/drm_linux.c
1193
if (res->id >= *index) {
sys/dev/pci/drm/drm_linux.c
1194
*index = res->id;
sys/dev/pci/drm/drm_modes.c
1193
int index)
sys/dev/pci/drm/drm_modes.c
1198
ret = of_get_videomode(np, &vm, index);
sys/dev/pci/drm/drm_modes.c
1787
int index = status + 3;
sys/dev/pci/drm/drm_modes.c
1789
if (WARN_ON(index < 0 || index >= ARRAY_SIZE(drm_mode_status_names)))
sys/dev/pci/drm/drm_modes.c
1792
return drm_mode_status_names[index];
sys/dev/pci/drm/drm_panic.c
945
static void debugfs_register_plane(struct drm_plane *plane, int index)
sys/dev/pci/drm/drm_panic.c
949
snprintf(fname, 32, "drm_panic_plane_%d", index);
sys/dev/pci/drm/drm_panic.c
954
static void debugfs_register_plane(struct drm_plane *plane, int index) {}
sys/dev/pci/drm/drm_plane.c
459
plane->index = config->num_total_plane++;
sys/dev/pci/drm/drm_plane.c
727
if (idx == plane->index)
sys/dev/pci/drm/drm_property.c
394
int index = 0;
sys/dev/pci/drm/drm_property.c
414
index++;
sys/dev/pci/drm/drm_property.c
417
if (WARN_ON(index >= property->num_values))
sys/dev/pci/drm/drm_property.c
427
property->values[index] = value;
sys/dev/pci/drm/drm_vblank.c
703
unsigned int pipe = crtc->index;
sys/dev/pci/drm/drm_vblank_work.c
285
vblank->dev->primary->index,
sys/dev/pci/drm/i915/display/intel_backlight.c
1001
display->drm->primary->index,
sys/dev/pci/drm/i915/display/intel_bios.c
104
int index = 0;
sys/dev/pci/drm/i915/display/intel_bios.c
109
index += bdb->header_size;
sys/dev/pci/drm/i915/display/intel_bios.c
1109
int index;
sys/dev/pci/drm/i915/display/intel_bios.c
1111
index = display->params.vbt_sdvo_panel_type;
sys/dev/pci/drm/i915/display/intel_bios.c
1112
if (index == -2) {
sys/dev/pci/drm/i915/display/intel_bios.c
1118
if (index == -1) {
sys/dev/pci/drm/i915/display/intel_bios.c
1125
index = sdvo_lvds_options->panel_type;
sys/dev/pci/drm/i915/display/intel_bios.c
113
while (index + 3 < total) {
sys/dev/pci/drm/i915/display/intel_bios.c
1138
if (index >= ARRAY_SIZE(dtd->dtd)) {
sys/dev/pci/drm/i915/display/intel_bios.c
114
current_id = *(base + index);
sys/dev/pci/drm/i915/display/intel_bios.c
1141
index);
sys/dev/pci/drm/i915/display/intel_bios.c
1149
fill_detail_timing_data(display, panel_fixed_mode, &dtd->dtd[index]);
sys/dev/pci/drm/i915/display/intel_bios.c
115
current_size = _get_blocksize(base + index);
sys/dev/pci/drm/i915/display/intel_bios.c
116
index += 3;
sys/dev/pci/drm/i915/display/intel_bios.c
118
if (index + current_size > total)
sys/dev/pci/drm/i915/display/intel_bios.c
122
return base + index;
sys/dev/pci/drm/i915/display/intel_bios.c
124
index += current_size;
sys/dev/pci/drm/i915/display/intel_bios.c
1778
int index = 0;
sys/dev/pci/drm/i915/display/intel_bios.c
1785
for (i = 0; i < MAX_MIPI_CONFIGURATIONS && index < total; i++) {
sys/dev/pci/drm/i915/display/intel_bios.c
1786
if (index + header_size > total) {
sys/dev/pci/drm/i915/display/intel_bios.c
1792
current_id = *(data + index);
sys/dev/pci/drm/i915/display/intel_bios.c
1794
current_size = *((const u32 *)(data + index + 1));
sys/dev/pci/drm/i915/display/intel_bios.c
1796
current_size = *((const u16 *)(data + index + 1));
sys/dev/pci/drm/i915/display/intel_bios.c
1798
index += header_size;
sys/dev/pci/drm/i915/display/intel_bios.c
1800
if (index + current_size > total) {
sys/dev/pci/drm/i915/display/intel_bios.c
1807
return data + index;
sys/dev/pci/drm/i915/display/intel_bios.c
1810
index += current_size;
sys/dev/pci/drm/i915/display/intel_bios.c
1820
const u8 *data, int index, int total)
sys/dev/pci/drm/i915/display/intel_bios.c
1825
for (index = index + 1; index < total; index += len) {
sys/dev/pci/drm/i915/display/intel_bios.c
1826
u8 operation_byte = *(data + index);
sys/dev/pci/drm/i915/display/intel_bios.c
1827
index++;
sys/dev/pci/drm/i915/display/intel_bios.c
1831
return index;
sys/dev/pci/drm/i915/display/intel_bios.c
1833
if (index + 4 > total)
sys/dev/pci/drm/i915/display/intel_bios.c
1836
len = *((const u16 *)(data + index + 2)) + 4;
sys/dev/pci/drm/i915/display/intel_bios.c
1845
if (index + 7 > total)
sys/dev/pci/drm/i915/display/intel_bios.c
1847
len = *(data + index + 6) + 7;
sys/dev/pci/drm/i915/display/intel_bios.c
1859
const u8 *data, int index, int total)
sys/dev/pci/drm/i915/display/intel_bios.c
1875
index++;
sys/dev/pci/drm/i915/display/intel_bios.c
1882
size_of_sequence = *((const u32 *)(data + index));
sys/dev/pci/drm/i915/display/intel_bios.c
1883
index += 4;
sys/dev/pci/drm/i915/display/intel_bios.c
1885
seq_end = index + size_of_sequence;
sys/dev/pci/drm/i915/display/intel_bios.c
1891
for (; index < total; index += len) {
sys/dev/pci/drm/i915/display/intel_bios.c
1892
u8 operation_byte = *(data + index);
sys/dev/pci/drm/i915/display/intel_bios.c
1893
index++;
sys/dev/pci/drm/i915/display/intel_bios.c
1896
if (index != seq_end) {
sys/dev/pci/drm/i915/display/intel_bios.c
1901
return index;
sys/dev/pci/drm/i915/display/intel_bios.c
1904
len = *(data + index);
sys/dev/pci/drm/i915/display/intel_bios.c
1905
index++;
sys/dev/pci/drm/i915/display/intel_bios.c
1937
int index, len;
sys/dev/pci/drm/i915/display/intel_bios.c
1944
for (index = 1; data[index] != MIPI_SEQ_ELEM_END; index += len) {
sys/dev/pci/drm/i915/display/intel_bios.c
1945
switch (data[index]) {
sys/dev/pci/drm/i915/display/intel_bios.c
1947
return index == 1 ? 0 : index;
sys/dev/pci/drm/i915/display/intel_bios.c
2054
int index = 0;
sys/dev/pci/drm/i915/display/intel_bios.c
2088
u8 seq_id = *(data + index);
sys/dev/pci/drm/i915/display/intel_bios.c
2103
panel->vbt.dsi.sequence[seq_id] = data + index;
sys/dev/pci/drm/i915/display/intel_bios.c
2106
index = goto_next_sequence_v3(display, data, index, seq_size);
sys/dev/pci/drm/i915/display/intel_bios.c
2108
index = goto_next_sequence(display, data, index, seq_size);
sys/dev/pci/drm/i915/display/intel_bios.c
2109
if (!index) {
sys/dev/pci/drm/i915/display/intel_bios.c
2136
int index;
sys/dev/pci/drm/i915/display/intel_bios.c
2176
index = child->compression_structure_index;
sys/dev/pci/drm/i915/display/intel_bios.c
2178
devdata->dsc = kmemdup(&params->data[index],
sys/dev/pci/drm/i915/display/intel_bios.c
593
int index)
sys/dev/pci/drm/i915/display/intel_bios.c
595
return (const void *)data + ptrs->ptr[index].dvo_timing.offset;
sys/dev/pci/drm/i915/display/intel_bios.c
601
int index)
sys/dev/pci/drm/i915/display/intel_bios.c
603
return (const void *)data + ptrs->ptr[index].fp_timing.offset;
sys/dev/pci/drm/i915/display/intel_bios.c
609
int index)
sys/dev/pci/drm/i915/display/intel_bios.c
614
return (const void *)data + ptrs->ptr[index].panel_pnp_id.offset;
sys/dev/pci/drm/i915/display/intel_display_debugfs.c
633
drm_printf(&p, "DPLL%i: %s, id: %i\n", pll->index,
sys/dev/pci/drm/i915/display/intel_display_types.h
1792
u32 (*get_aux_clock_divider)(struct intel_dp *dp, int index);
sys/dev/pci/drm/i915/display/intel_display_types.h
1801
i915_reg_t (*aux_ch_data_reg)(struct intel_dp *dp, int index);
sys/dev/pci/drm/i915/display/intel_dp.c
354
int intel_dp_common_rate(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp.c
359
index < 0 || index >= intel_dp->num_common_rates))
sys/dev/pci/drm/i915/display/intel_dp.c
362
return intel_dp->common_rates[index];
sys/dev/pci/drm/i915/display/intel_dp.h
105
int intel_dp_common_rate(struct intel_dp *intel_dp, int index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
112
static u32 hsw_get_aux_clock_divider(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
119
switch (index) {
sys/dev/pci/drm/i915/display/intel_dp_aux.c
126
return ilk_get_aux_clock_divider(intel_dp, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
129
static u32 skl_get_aux_clock_divider(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
136
return index ? 0 : 1;
sys/dev/pci/drm/i915/display/intel_dp_aux.c
571
static i915_reg_t vlv_aux_data_reg(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
580
return VLV_DP_AUX_CH_DATA(aux_ch, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
583
return VLV_DP_AUX_CH_DATA(AUX_CH_B, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
603
static i915_reg_t g4x_aux_data_reg(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
612
return DP_AUX_CH_DATA(aux_ch, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
615
return DP_AUX_CH_DATA(AUX_CH_B, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
637
static i915_reg_t ilk_aux_data_reg(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
644
return DP_AUX_CH_DATA(aux_ch, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
648
return PCH_DP_AUX_CH_DATA(aux_ch, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
651
return DP_AUX_CH_DATA(AUX_CH_A, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
674
static i915_reg_t skl_aux_data_reg(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
686
return DP_AUX_CH_DATA(aux_ch, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
689
return DP_AUX_CH_DATA(AUX_CH_A, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
715
static i915_reg_t tgl_aux_data_reg(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
730
return DP_AUX_CH_DATA(aux_ch, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
733
return DP_AUX_CH_DATA(AUX_CH_A, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
757
static i915_reg_t xelpdp_aux_data_reg(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
77
static u32 g4x_get_aux_clock_divider(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
770
return XELPDP_DP_AUX_CH_DATA(display, aux_ch, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
773
return XELPDP_DP_AUX_CH_DATA(display, AUX_CH_A, index);
sys/dev/pci/drm/i915/display/intel_dp_aux.c
81
if (index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
91
static u32 ilk_get_aux_clock_divider(struct intel_dp *intel_dp, int index)
sys/dev/pci/drm/i915/display/intel_dp_aux.c
97
if (index)
sys/dev/pci/drm/i915/display/intel_dp_test.c
50
int index;
sys/dev/pci/drm/i915/display/intel_dp_test.c
57
index = intel_dp_rate_index(intel_dp->common_rates,
sys/dev/pci/drm/i915/display/intel_dp_test.c
60
if (index >= 0) {
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
132
dpll_state[pll->index] = pll->state;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
384
if (dpll_state[pll->index].pipe_mask == 0) {
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
391
&dpll_state[pll->index].hw_state,
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
397
dpll_state[pll->index].pipe_mask,
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
4364
display->dpll.dplls[i].index = i;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
447
if (dpll_state[pll->index].pipe_mask == 0)
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
448
dpll_state[pll->index].hw_state = *dpll_hw_state;
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
450
intel_dpll_crtc_get(crtc, pll, &dpll_state[pll->index]);
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
484
intel_dpll_crtc_put(crtc, pll, &dpll_state[pll->index]);
sys/dev/pci/drm/i915/display/intel_dpll_mgr.c
525
swap(pll->state, dpll_state[pll->index]);
sys/dev/pci/drm/i915/display/intel_dpll_mgr.h
368
u8 index;
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
336
int index;
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
344
index = gpio == MIPI_RESET_1 ? HPD_PORT_A : HPD_PORT_B;
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
357
SHOTPLUG_CTL_DDI_HPD_ENABLE(index) |
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
358
SHOTPLUG_CTL_DDI_HPD_OUTPUT_DATA(index),
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
359
value ? SHOTPLUG_CTL_DDI_HPD_OUTPUT_DATA(index) : 0);
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
364
index = gpio == MIPI_AVDD_EN_1 ? 0 : 1;
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
366
intel_de_rmw(display, PP_CONTROL(display, index), PANEL_POWER_ON,
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
371
index = gpio == MIPI_BKLT_EN_1 ? 0 : 1;
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
373
intel_de_rmw(display, PP_CONTROL(display, index), EDP_BLC_ENABLE,
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
378
index = gpio == MIPI_AVEE_EN_1 ? 1 : 2;
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
380
intel_de_rmw(display, GPIO(display, index),
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
387
index = gpio == MIPI_VIO_EN_1 ? 1 : 2;
sys/dev/pci/drm/i915/display/intel_dsi_vbt.c
389
intel_de_rmw(display, GPIO(display, index),
sys/dev/pci/drm/i915/display/intel_global_state.c
179
int index, num_objs, i;
sys/dev/pci/drm/i915/display/intel_global_state.c
206
index = state->num_global_objs;
sys/dev/pci/drm/i915/display/intel_global_state.c
207
memset(&state->global_objs[index], 0, sizeof(*state->global_objs));
sys/dev/pci/drm/i915/display/intel_global_state.c
220
state->global_objs[index].state = obj_state;
sys/dev/pci/drm/i915/display/intel_global_state.c
221
state->global_objs[index].old_state =
sys/dev/pci/drm/i915/display/intel_global_state.c
223
state->global_objs[index].new_state = obj_state;
sys/dev/pci/drm/i915/display/intel_global_state.c
224
state->global_objs[index].ptr = obj;
sys/dev/pci/drm/i915/display/intel_psr_regs.h
229
#define _PSR2_SU_STATUS(dev_priv, tran, index) _MMIO_TRANS2(dev_priv, tran, _PSR2_SU_STATUS_A + (index) * 4)
sys/dev/pci/drm/i915/display/skl_universal_plane_regs.h
273
#define PLANE_INPUT_CSC_COEFF(pipe, plane, index) _MMIO_SKL_PLANE_DW((pipe), (plane), (index), \
sys/dev/pci/drm/i915/display/skl_universal_plane_regs.h
281
#define PLANE_INPUT_CSC_PREOFF(pipe, plane, index) _MMIO_SKL_PLANE_DW((pipe), (plane), (index), \
sys/dev/pci/drm/i915/display/skl_universal_plane_regs.h
289
#define PLANE_INPUT_CSC_POSTOFF(pipe, plane, index) _MMIO_SKL_PLANE_DW((pipe), (plane), (index), \
sys/dev/pci/drm/i915/display/skl_universal_plane_regs.h
297
#define PLANE_CSC_COEFF(pipe, plane, index) _MMIO_SKL_PLANE_DW((pipe), (plane), (index), \
sys/dev/pci/drm/i915/display/skl_universal_plane_regs.h
305
#define PLANE_CSC_PREOFF(pipe, plane, index) _MMIO_SKL_PLANE_DW((pipe), (plane), (index), \
sys/dev/pci/drm/i915/display/skl_universal_plane_regs.h
313
#define PLANE_CSC_POSTOFF(pipe, plane, index) _MMIO_SKL_PLANE_DW((pipe), (plane), (index), \
sys/dev/pci/drm/i915/gem/i915_gem_context.c
131
if (lut->handle != iter.index)
sys/dev/pci/drm/i915/gem/i915_gem_pages.c
184
radix_tree_delete(&obj->mm.get_page.radix, iter.index);
sys/dev/pci/drm/i915/gem/i915_gem_pages.c
186
radix_tree_delete(&obj->mm.get_dma_page.radix, iter.index);
sys/dev/pci/drm/i915/gem/i915_gem_ttm.c
410
radix_tree_delete(&obj->ttm.get_io_page.radix, iter.index);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
526
u16 index, max, nent, i;
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
535
index = __gen8_pte_index(start, 1);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
541
index = __gen8_pte_index(start, 0);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
555
end - start >= SZ_2M && !index) {
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
556
index = __gen8_pte_index(start, 0) / 16;
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
567
!(index % 16)) {
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
581
vaddr[index++] =
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
604
} while (rem >= page_size && index < max);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
632
u16 index;
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
638
index = __gen8_pte_index(start, 1);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
647
index = __gen8_pte_index(start, 0);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
650
if (!index &&
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
654
rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE))
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
662
vaddr[index++] = encode | iter->dma;
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
679
if (maybe_64K != -1 && index < I915_PDES &&
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
682
rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE)))
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
688
} while (rem >= page_size && index < I915_PDES);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
699
(index == I915_PDES ||
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
724
for (i = 1; i < index; i += 16)
sys/dev/pci/drm/i915/gt/intel_gt_regs.h
338
#define GEN10_PAT_INDEX(index) _MMIO(0x40e0 + (index) * 4)
sys/dev/pci/drm/i915/gt/intel_gt_regs.h
364
#define GEN12_PAT_INDEX(index) _MMIO(0x4800 + (index) * 4)
sys/dev/pci/drm/i915/gt/intel_gt_regs.h
365
#define _PAT_INDEX(index) _PICK_EVEN_2RANGES(index, 8, \
sys/dev/pci/drm/i915/gt/intel_gt_regs.h
368
#define XEHP_PAT_INDEX(index) MCR_REG(_PAT_INDEX(index))
sys/dev/pci/drm/i915/gt/intel_gt_regs.h
369
#define XELPMP_PAT_INDEX(index) _MMIO(_PAT_INDEX(index))
sys/dev/pci/drm/i915/gt/intel_mocs.c
541
unsigned int index)
sys/dev/pci/drm/i915/gt/intel_mocs.c
543
if (index < table->size && table->table[index].used)
sys/dev/pci/drm/i915/gt/intel_mocs.c
544
return table->table[index].control_value;
sys/dev/pci/drm/i915/gt/intel_mocs.c
593
unsigned int index)
sys/dev/pci/drm/i915/gt/intel_mocs.c
595
if (index < table->size && table->table[index].used)
sys/dev/pci/drm/i915/gt/intel_mocs.c
596
return table->table[index].l3cc_value;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1080
unsigned long index, flags;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1084
xa_for_each(&guc->context_lookup, index, ce) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1528
unsigned long index;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1574
xa_for_each(&guc->context_lookup, index, ce)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1930
unsigned long index;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1939
xa_for_each(&guc->context_lookup, index, ce) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
2028
unsigned long index;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
2032
xa_for_each(&guc->context_lookup, index, ce) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
525
static struct guc_lrc_desc_v69 *__get_lrc_desc_v69(struct intel_guc *guc, u32 index)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
532
GEM_BUG_ON(index >= GUC_MAX_CONTEXT_ID);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
534
return &base[index];
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
5395
unsigned long index;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
5403
xa_for_each(&guc->context_lookup, index, ce) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
5456
unsigned long index;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
5464
xa_for_each(&guc->context_lookup, index, ce) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
5572
unsigned long index;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
5576
xa_for_each(&guc->context_lookup, index, ce) {
sys/dev/pci/drm/i915/gvt/cmd_parser.c
1000
patch_value(s, cmd_ptr(s, index+1), cmdval_new);
sys/dev/pci/drm/i915/gvt/cmd_parser.c
1023
u32 data = cmd_val(s, index + 1);
sys/dev/pci/drm/i915/gvt/cmd_parser.c
1539
static unsigned long get_gma_bb_from_cmd(struct parser_exec_state *s, int index)
sys/dev/pci/drm/i915/gvt/cmd_parser.c
1551
gma_low = cmd_val(s, index) & BATCH_BUFFER_ADDR_MASK;
sys/dev/pci/drm/i915/gvt/cmd_parser.c
1555
gma_high = cmd_val(s, index + 1) & BATCH_BUFFER_ADDR_HIGH_MASK;
sys/dev/pci/drm/i915/gvt/cmd_parser.c
718
static inline u32 *cmd_ptr(struct parser_exec_state *s, int index)
sys/dev/pci/drm/i915/gvt/cmd_parser.c
720
return s->ip_va + (index << 2);
sys/dev/pci/drm/i915/gvt/cmd_parser.c
723
static inline u32 cmd_val(struct parser_exec_state *s, int index)
sys/dev/pci/drm/i915/gvt/cmd_parser.c
725
return *cmd_ptr(s, index);
sys/dev/pci/drm/i915/gvt/cmd_parser.c
861
unsigned int offset, unsigned int index)
sys/dev/pci/drm/i915/gvt/cmd_parser.c
895
unsigned int offset, unsigned int index, char *cmd)
sys/dev/pci/drm/i915/gvt/cmd_parser.c
960
cmd_pdp_mmio_update_handler(s, offset, index))
sys/dev/pci/drm/i915/gvt/cmd_parser.c
966
patch_value(s, cmd_ptr(s, index), VGT_PVINFO_PAGE);
sys/dev/pci/drm/i915/gvt/cmd_parser.c
970
*vreg = cmd_val(s, index + 1);
sys/dev/pci/drm/i915/gvt/cmd_parser.c
978
cmdval = cmd_val(s, index + 1);
sys/dev/pci/drm/i915/gvt/execlist.c
102
status.current_execlist_pointer = !!running->index;
sys/dev/pci/drm/i915/gvt/execlist.c
103
status.execlist_write_pointer = !!!running->index;
sys/dev/pci/drm/i915/gvt/execlist.c
105
!!!(running->index);
sys/dev/pci/drm/i915/gvt/execlist.c
107
!!(running->index);
sys/dev/pci/drm/i915/gvt/execlist.c
298
slot->index, ctx[0].context_id,
sys/dev/pci/drm/i915/gvt/execlist.c
313
execlist->running_slot->index,
sys/dev/pci/drm/i915/gvt/execlist.c
329
running->index, ctx0->context_id, ctx1->context_id);
sys/dev/pci/drm/i915/gvt/execlist.c
512
execlist->slot[0].index = 0;
sys/dev/pci/drm/i915/gvt/execlist.c
513
execlist->slot[1].index = 1;
sys/dev/pci/drm/i915/gvt/execlist.c
68
execlist->running_slot->index : -1,
sys/dev/pci/drm/i915/gvt/execlist.c
72
execlist->pending_slot->index : -1);
sys/dev/pci/drm/i915/gvt/execlist.c
81
execlist->running_slot->index : -1,
sys/dev/pci/drm/i915/gvt/execlist.c
85
execlist->pending_slot->index : -1);
sys/dev/pci/drm/i915/gvt/execlist.h
160
u32 index;
sys/dev/pci/drm/i915/gvt/execlist.h
165
u32 index;
sys/dev/pci/drm/i915/gvt/fb_decoder.c
348
u32 val, mode, index;
sys/dev/pci/drm/i915/gvt/fb_decoder.c
362
index = cursor_mode_to_drm(mode);
sys/dev/pci/drm/i915/gvt/fb_decoder.c
364
if (!cursor_pixel_formats[index].bpp) {
sys/dev/pci/drm/i915/gvt/fb_decoder.c
369
plane->bpp = cursor_pixel_formats[index].bpp;
sys/dev/pci/drm/i915/gvt/fb_decoder.c
370
plane->drm_format = cursor_pixel_formats[index].drm_format;
sys/dev/pci/drm/i915/gvt/fb_decoder.c
371
plane->width = cursor_pixel_formats[index].width;
sys/dev/pci/drm/i915/gvt/fb_decoder.c
372
plane->height = cursor_pixel_formats[index].height;
sys/dev/pci/drm/i915/gvt/gtt.c
1086
struct intel_vgpu_ppgtt_spt *spt, unsigned long index,
sys/dev/pci/drm/i915/gvt/gtt.c
1097
gvt_dbg_mm("Split 2M gtt entry, index %lu\n", index);
sys/dev/pci/drm/i915/gvt/gtt.c
1126
ppgtt_set_shadow_entry(spt, se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1142
struct intel_vgpu_ppgtt_spt *spt, unsigned long index,
sys/dev/pci/drm/i915/gvt/gtt.c
1151
gvt_vdbg_mm("Split 64K gtt entry, index %lu\n", index);
sys/dev/pci/drm/i915/gvt/gtt.c
1153
GEM_BUG_ON(index % GTT_64K_PTE_STRIDE);
sys/dev/pci/drm/i915/gvt/gtt.c
1167
ppgtt_set_shadow_entry(spt, &entry, index + i);
sys/dev/pci/drm/i915/gvt/gtt.c
1173
struct intel_vgpu_ppgtt_spt *spt, unsigned long index,
sys/dev/pci/drm/i915/gvt/gtt.c
1201
return split_64KB_gtt_entry(vgpu, spt, index, &se);
sys/dev/pci/drm/i915/gvt/gtt.c
1207
return split_2MB_gtt_entry(vgpu, spt, index, &se);
sys/dev/pci/drm/i915/gvt/gtt.c
1219
ppgtt_set_shadow_entry(spt, &se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1258
struct intel_gvt_gtt_entry *se, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
1265
spt->shadow_page.type, se->val64, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1268
se->type, index, se->val64);
sys/dev/pci/drm/i915/gvt/gtt.c
1303
struct intel_gvt_gtt_entry *we, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
1311
we->val64, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1314
we->type, index, we->val64);
sys/dev/pci/drm/i915/gvt/gtt.c
1322
ppgtt_get_shadow_entry(spt, &m, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1324
ppgtt_set_shadow_entry(spt, &m, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1326
ret = ppgtt_populate_shadow_entry(vgpu, spt, index, we);
sys/dev/pci/drm/i915/gvt/gtt.c
1345
int index;
sys/dev/pci/drm/i915/gvt/gtt.c
1354
for (index = 0; index < (I915_GTT_PAGE_SIZE >>
sys/dev/pci/drm/i915/gvt/gtt.c
1355
info->gtt_entry_size_shift); index++) {
sys/dev/pci/drm/i915/gvt/gtt.c
1356
ops->get_entry(oos_page->mem, &old, index, false, 0, vgpu);
sys/dev/pci/drm/i915/gvt/gtt.c
1357
ops->get_entry(NULL, &new, index, true,
sys/dev/pci/drm/i915/gvt/gtt.c
1361
&& !test_and_clear_bit(index, spt->post_shadow_bitmap))
sys/dev/pci/drm/i915/gvt/gtt.c
1366
new.val64, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1368
ret = ppgtt_populate_shadow_entry(vgpu, spt, index, &new);
sys/dev/pci/drm/i915/gvt/gtt.c
1372
ops->set_entry(oos_page->mem, &new, index, false, 0, vgpu);
sys/dev/pci/drm/i915/gvt/gtt.c
1509
struct intel_gvt_gtt_entry *we, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
1525
ppgtt_get_shadow_entry(spt, &old_se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1528
ret = ppgtt_handle_guest_entry_add(spt, we, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1533
ret = ppgtt_handle_guest_entry_removal(spt, &old_se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1540
!(index % GTT_64K_PTE_STRIDE)) {
sys/dev/pci/drm/i915/gvt/gtt.c
1546
ppgtt_set_shadow_entry(spt, &old_se, index + i);
sys/dev/pci/drm/i915/gvt/gtt.c
1553
ppgtt_set_shadow_entry(spt, &old_se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1557
ppgtt_set_shadow_entry(spt, &old_se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1578
unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
1580
set_bit(index, spt->post_shadow_bitmap);
sys/dev/pci/drm/i915/gvt/gtt.c
1603
unsigned long index;
sys/dev/pci/drm/i915/gvt/gtt.c
1610
for_each_set_bit(index, spt->post_shadow_bitmap,
sys/dev/pci/drm/i915/gvt/gtt.c
1612
ppgtt_get_guest_entry(spt, &ge, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1615
&ge, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1618
clear_bit(index, spt->post_shadow_bitmap);
sys/dev/pci/drm/i915/gvt/gtt.c
1633
unsigned long index;
sys/dev/pci/drm/i915/gvt/gtt.c
1636
index = (pa & (PAGE_SIZE - 1)) >> info->gtt_entry_size_shift;
sys/dev/pci/drm/i915/gvt/gtt.c
1638
ppgtt_get_guest_entry(spt, &we, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1646
(index % GTT_64K_PTE_STRIDE)) {
sys/dev/pci/drm/i915/gvt/gtt.c
1648
index);
sys/dev/pci/drm/i915/gvt/gtt.c
1653
ret = ppgtt_handle_guest_write_page_table(spt, &we, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1657
if (!test_bit(index, spt->post_shadow_bitmap)) {
sys/dev/pci/drm/i915/gvt/gtt.c
1660
ppgtt_get_shadow_entry(spt, &se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1661
ret = ppgtt_handle_guest_entry_removal(spt, &se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1665
ppgtt_set_shadow_entry(spt, &se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1667
ppgtt_set_post_shadow(spt, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1676
ops->set_entry(spt->guest_page.oos_page->mem, &we, index,
sys/dev/pci/drm/i915/gvt/gtt.c
1697
int index;
sys/dev/pci/drm/i915/gvt/gtt.c
1702
for (index = 0; index < ARRAY_SIZE(mm->ppgtt_mm.shadow_pdps); index++) {
sys/dev/pci/drm/i915/gvt/gtt.c
1703
ppgtt_get_shadow_root_entry(mm, &se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1710
ppgtt_set_shadow_root_entry(mm, &se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1713
NULL, se.type, se.val64, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1728
int index, ret;
sys/dev/pci/drm/i915/gvt/gtt.c
1738
for (index = 0; index < ARRAY_SIZE(mm->ppgtt_mm.guest_pdps); index++) {
sys/dev/pci/drm/i915/gvt/gtt.c
1739
ppgtt_get_guest_root_entry(mm, &ge, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1745
ge.type, ge.val64, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1754
ppgtt_set_shadow_root_entry(mm, &se, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1757
NULL, se.type, se.val64, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1977
struct intel_gvt_gtt_entry *e, unsigned long index, bool guest)
sys/dev/pci/drm/i915/gvt/gtt.c
1988
ppgtt_get_shadow_entry(s, e, index);
sys/dev/pci/drm/i915/gvt/gtt.c
1990
ppgtt_get_guest_entry(s, e, index);
sys/dev/pci/drm/i915/gvt/gtt.c
2084
unsigned long index = off >> info->gtt_entry_size_shift;
sys/dev/pci/drm/i915/gvt/gtt.c
2091
gma = index << I915_GTT_PAGE_SHIFT;
sys/dev/pci/drm/i915/gvt/gtt.c
2099
ggtt_get_guest_entry(ggtt_mm, &e, index);
sys/dev/pci/drm/i915/gvt/gtt.c
214
static u64 read_pte64(struct i915_ggtt *ggtt, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
216
void __iomem *addr = (gen8_pte_t __iomem *)ggtt->gsm + index;
sys/dev/pci/drm/i915/gvt/gtt.c
230
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
sys/dev/pci/drm/i915/gvt/gtt.c
232
void __iomem *addr = (gen8_pte_t __iomem *)ggtt->gsm + index;
sys/dev/pci/drm/i915/gvt/gtt.c
239
unsigned long index, bool hypervisor_access, unsigned long gpa,
sys/dev/pci/drm/i915/gvt/gtt.c
250
(index << info->gtt_entry_size_shift),
sys/dev/pci/drm/i915/gvt/gtt.c
255
e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
sys/dev/pci/drm/i915/gvt/gtt.c
257
e->val64 = *((u64 *)pt + index);
sys/dev/pci/drm/i915/gvt/gtt.c
264
unsigned long index, bool hypervisor_access, unsigned long gpa,
sys/dev/pci/drm/i915/gvt/gtt.c
2728
u32 index;
sys/dev/pci/drm/i915/gvt/gtt.c
2734
index = vgpu_aperture_gmadr_base(vgpu) >> PAGE_SHIFT;
sys/dev/pci/drm/i915/gvt/gtt.c
2738
ggtt_get_host_entry(vgpu->gtt.ggtt_mm, &old_entry, index);
sys/dev/pci/drm/i915/gvt/gtt.c
2741
ggtt_set_host_entry(vgpu->gtt.ggtt_mm, &entry, index++);
sys/dev/pci/drm/i915/gvt/gtt.c
2744
index = vgpu_hidden_gmadr_base(vgpu) >> PAGE_SHIFT;
sys/dev/pci/drm/i915/gvt/gtt.c
2748
ggtt_get_host_entry(vgpu->gtt.ggtt_mm, &old_entry, index);
sys/dev/pci/drm/i915/gvt/gtt.c
275
(index << info->gtt_entry_size_shift),
sys/dev/pci/drm/i915/gvt/gtt.c
2751
ggtt_set_host_entry(vgpu->gtt.ggtt_mm, &entry, index++);
sys/dev/pci/drm/i915/gvt/gtt.c
280
write_pte64(vgpu->gvt->gt->ggtt, index, e->val64);
sys/dev/pci/drm/i915/gvt/gtt.c
282
*((u64 *)pt + index) = e->val64;
sys/dev/pci/drm/i915/gvt/gtt.c
487
struct intel_gvt_gtt_entry *entry, unsigned long index,
sys/dev/pci/drm/i915/gvt/gtt.c
497
entry, index, false, 0, mm->vgpu);
sys/dev/pci/drm/i915/gvt/gtt.c
502
struct intel_gvt_gtt_entry *entry, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
504
_ppgtt_get_root_entry(mm, entry, index, true);
sys/dev/pci/drm/i915/gvt/gtt.c
508
struct intel_gvt_gtt_entry *entry, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
510
_ppgtt_get_root_entry(mm, entry, index, false);
sys/dev/pci/drm/i915/gvt/gtt.c
514
struct intel_gvt_gtt_entry *entry, unsigned long index,
sys/dev/pci/drm/i915/gvt/gtt.c
521
entry, index, false, 0, mm->vgpu);
sys/dev/pci/drm/i915/gvt/gtt.c
525
struct intel_gvt_gtt_entry *entry, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
527
_ppgtt_set_root_entry(mm, entry, index, false);
sys/dev/pci/drm/i915/gvt/gtt.c
531
struct intel_gvt_gtt_entry *entry, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
538
pte_ops->get_entry(mm->ggtt_mm.virtual_ggtt, entry, index,
sys/dev/pci/drm/i915/gvt/gtt.c
543
struct intel_gvt_gtt_entry *entry, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
549
pte_ops->set_entry(mm->ggtt_mm.virtual_ggtt, entry, index,
sys/dev/pci/drm/i915/gvt/gtt.c
554
struct intel_gvt_gtt_entry *entry, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
560
pte_ops->get_entry(NULL, entry, index, false, 0, mm->vgpu);
sys/dev/pci/drm/i915/gvt/gtt.c
564
struct intel_gvt_gtt_entry *entry, unsigned long index)
sys/dev/pci/drm/i915/gvt/gtt.c
567
unsigned long offset = index;
sys/dev/pci/drm/i915/gvt/gtt.c
571
if (vgpu_gmadr_is_aperture(mm->vgpu, index << I915_GTT_PAGE_SHIFT)) {
sys/dev/pci/drm/i915/gvt/gtt.c
574
} else if (vgpu_gmadr_is_hidden(mm->vgpu, index << I915_GTT_PAGE_SHIFT)) {
sys/dev/pci/drm/i915/gvt/gtt.c
579
pte_ops->set_entry(NULL, entry, index, false, 0, mm->vgpu);
sys/dev/pci/drm/i915/gvt/gtt.c
588
struct intel_gvt_gtt_entry *e, unsigned long index,
sys/dev/pci/drm/i915/gvt/gtt.c
600
ret = ops->get_entry(page_table, e, index, guest,
sys/dev/pci/drm/i915/gvt/gtt.c
610
type, e->type, index, e->val64);
sys/dev/pci/drm/i915/gvt/gtt.c
617
struct intel_gvt_gtt_entry *e, unsigned long index,
sys/dev/pci/drm/i915/gvt/gtt.c
627
type, e->type, index, e->val64);
sys/dev/pci/drm/i915/gvt/gtt.c
629
return ops->set_entry(page_table, e, index, guest,
sys/dev/pci/drm/i915/gvt/gtt.c
634
#define ppgtt_get_guest_entry(spt, e, index) \
sys/dev/pci/drm/i915/gvt/gtt.c
636
spt->guest_page.type, e, index, true)
sys/dev/pci/drm/i915/gvt/gtt.c
638
#define ppgtt_set_guest_entry(spt, e, index) \
sys/dev/pci/drm/i915/gvt/gtt.c
640
spt->guest_page.type, e, index, true)
sys/dev/pci/drm/i915/gvt/gtt.c
642
#define ppgtt_get_shadow_entry(spt, e, index) \
sys/dev/pci/drm/i915/gvt/gtt.c
644
spt->shadow_page.type, e, index, false)
sys/dev/pci/drm/i915/gvt/gtt.c
646
#define ppgtt_set_shadow_entry(spt, e, index) \
sys/dev/pci/drm/i915/gvt/gtt.c
648
spt->shadow_page.type, e, index, false)
sys/dev/pci/drm/i915/gvt/gtt.c
939
unsigned long index;
sys/dev/pci/drm/i915/gvt/gtt.c
948
for_each_present_shadow_entry(spt, &e, index) {
sys/dev/pci/drm/i915/gvt/gtt.h
60
unsigned long index,
sys/dev/pci/drm/i915/gvt/gtt.h
66
unsigned long index,
sys/dev/pci/drm/i915/gvt/handlers.c
2022
execlist->elsp_dwords.data[3 - execlist->elsp_dwords.index] = data;
sys/dev/pci/drm/i915/gvt/handlers.c
2023
if (execlist->elsp_dwords.index == 3) {
sys/dev/pci/drm/i915/gvt/handlers.c
2030
++execlist->elsp_dwords.index;
sys/dev/pci/drm/i915/gvt/handlers.c
2031
execlist->elsp_dwords.index &= 0x3;
sys/dev/pci/drm/i915/gvt/handlers.c
920
unsigned int index;
sys/dev/pci/drm/i915/gvt/handlers.c
924
index = FDI_RX_CTL_TO_PIPE(offset);
sys/dev/pci/drm/i915/gvt/handlers.c
926
index = FDI_TX_CTL_TO_PIPE(offset);
sys/dev/pci/drm/i915/gvt/handlers.c
928
index = FDI_RX_IMR_TO_PIPE(offset);
sys/dev/pci/drm/i915/gvt/handlers.c
936
fdi_rx_iir = FDI_RX_IIR(index);
sys/dev/pci/drm/i915/gvt/handlers.c
938
ret = check_fdi_rx_train_status(vgpu, index, FDI_LINK_TRAIN_PATTERN1);
sys/dev/pci/drm/i915/gvt/handlers.c
944
ret = check_fdi_rx_train_status(vgpu, index, FDI_LINK_TRAIN_PATTERN2);
sys/dev/pci/drm/i915/gvt/handlers.c
964
unsigned int index;
sys/dev/pci/drm/i915/gvt/handlers.c
969
index = DP_TP_CTL_TO_PORT(offset);
sys/dev/pci/drm/i915/gvt/handlers.c
972
status_reg = DP_TP_STATUS(index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1017
unsigned int index;
sys/dev/pci/drm/i915/gvt/kvmgt.c
1022
index = vma->vm_pgoff >> (VFIO_PCI_OFFSET_SHIFT - PAGE_SHIFT);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1023
if (index >= VFIO_PCI_ROM_REGION_INDEX)
sys/dev/pci/drm/i915/gvt/kvmgt.c
1030
if (index != VFIO_PCI_BAR2_REGION_INDEX)
sys/dev/pci/drm/i915/gvt/kvmgt.c
1060
unsigned int index, unsigned int start,
sys/dev/pci/drm/i915/gvt/kvmgt.c
1068
unsigned int index, unsigned int start,
sys/dev/pci/drm/i915/gvt/kvmgt.c
1075
unsigned int index, unsigned int start, unsigned int count,
sys/dev/pci/drm/i915/gvt/kvmgt.c
1082
unsigned int index, unsigned int start, unsigned int count,
sys/dev/pci/drm/i915/gvt/kvmgt.c
1103
unsigned int index, unsigned int start, unsigned int count,
sys/dev/pci/drm/i915/gvt/kvmgt.c
1106
int (*func)(struct intel_vgpu *vgpu, unsigned int index,
sys/dev/pci/drm/i915/gvt/kvmgt.c
1110
switch (index) {
sys/dev/pci/drm/i915/gvt/kvmgt.c
1140
return func(vgpu, index, start, count, flags, data);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1188
switch (info.index) {
sys/dev/pci/drm/i915/gvt/kvmgt.c
1190
info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1196
info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1197
info.size = vgpu->cfg_space.bar[info.index].size;
sys/dev/pci/drm/i915/gvt/kvmgt.c
1207
info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1212
info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1234
info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1238
gvt_dbg_core("get region info bar:%d\n", info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1243
info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1247
gvt_dbg_core("get region info index:%d\n", info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1255
if (info.index >= VFIO_PCI_NUM_REGIONS +
sys/dev/pci/drm/i915/gvt/kvmgt.c
1258
info.index =
sys/dev/pci/drm/i915/gvt/kvmgt.c
1259
array_index_nospec(info.index,
sys/dev/pci/drm/i915/gvt/kvmgt.c
1263
i = info.index - VFIO_PCI_NUM_REGIONS;
sys/dev/pci/drm/i915/gvt/kvmgt.c
1266
VFIO_PCI_INDEX_TO_OFFSET(info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1330
if (info.argsz < minsz || info.index >= VFIO_PCI_NUM_IRQS)
sys/dev/pci/drm/i915/gvt/kvmgt.c
1333
switch (info.index) {
sys/dev/pci/drm/i915/gvt/kvmgt.c
1343
info.count = intel_vgpu_get_irq_count(vgpu, info.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1345
if (info.index == VFIO_PCI_INTX_IRQ_INDEX)
sys/dev/pci/drm/i915/gvt/kvmgt.c
1365
int max = intel_vgpu_get_irq_count(vgpu, hdr.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1381
ret = intel_vgpu_set_irqs(vgpu, hdr.flags, hdr.index,
sys/dev/pci/drm/i915/gvt/kvmgt.c
62
#define VFIO_PCI_INDEX_TO_OFFSET(index) ((u64)(index) << VFIO_PCI_OFFSET_SHIFT)
sys/dev/pci/drm/i915/gvt/kvmgt.c
802
unsigned int index = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
sys/dev/pci/drm/i915/gvt/kvmgt.c
807
if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) {
sys/dev/pci/drm/i915/gvt/kvmgt.c
808
gvt_vgpu_err("invalid index: %u\n", index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
812
switch (index) {
sys/dev/pci/drm/i915/gvt/kvmgt.c
836
if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions)
sys/dev/pci/drm/i915/gvt/kvmgt.c
839
index -= VFIO_PCI_NUM_REGIONS;
sys/dev/pci/drm/i915/gvt/kvmgt.c
840
return vgpu->region[index].ops->rw(vgpu, buf, count,
sys/dev/pci/drm/i915/gvt/kvmgt.c
849
unsigned int index = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
sys/dev/pci/drm/i915/gvt/kvmgt.c
854
if (index != PCI_BASE_ADDRESS_0)
sys/dev/pci/drm/i915/gvt/mmio_context.c
258
unsigned int index;
sys/dev/pci/drm/i915/gvt/mmio_context.c
267
for (index = 0; index < GEN9_MOCS_SIZE; index++) {
sys/dev/pci/drm/i915/gvt/mmio_context.c
268
*cs++ = i915_mmio_reg_offset(GEN9_GFX_MOCS(index));
sys/dev/pci/drm/i915/gvt/mmio_context.c
269
*cs++ = vgpu_vreg_t(vgpu, GEN9_GFX_MOCS(index));
sys/dev/pci/drm/i915/gvt/mmio_context.c
285
unsigned int index;
sys/dev/pci/drm/i915/gvt/mmio_context.c
294
for (index = 0; index < GEN9_MOCS_SIZE / 2; index++) {
sys/dev/pci/drm/i915/gvt/mmio_context.c
295
*cs++ = i915_mmio_reg_offset(GEN9_LNCFCMOCS(index));
sys/dev/pci/drm/i915/gvt/mmio_context.c
296
*cs++ = vgpu_vreg_t(vgpu, GEN9_LNCFCMOCS(index));
sys/dev/pci/drm/i915/gvt/trace.h
101
TP_ARGS(prefix, gma, index),
sys/dev/pci/drm/i915/gvt/trace.h
109
"%s gma 0x%lx index 0x%lx\n", prefix, gma, index);
sys/dev/pci/drm/i915/gvt/trace.h
173
unsigned long index),
sys/dev/pci/drm/i915/gvt/trace.h
175
TP_ARGS(id, tag, spt, type, v, index),
sys/dev/pci/drm/i915/gvt/trace.h
184
id, tag, spt, type, v, index);
sys/dev/pci/drm/i915/gvt/trace.h
210
unsigned long index),
sys/dev/pci/drm/i915/gvt/trace.h
212
TP_ARGS(id, page_id, gpt, type, v, index),
sys/dev/pci/drm/i915/gvt/trace.h
221
id, page_id, gpt, type, v, index);
sys/dev/pci/drm/i915/gvt/trace.h
99
unsigned long index),
sys/dev/pci/drm/i915/i915_gpu_error.c
2312
i915->drm.primary->index);
sys/dev/pci/drm/i915/i915_hwmon.c
262
struct attribute *attr, int index)
sys/dev/pci/drm/i915/i915_perf.c
4982
u32 index = __oa_engine_group(engine);
sys/dev/pci/drm/i915/i915_perf.c
4985
if (index < num_groups) {
sys/dev/pci/drm/i915/i915_perf.c
4986
g[index].num_engines++;
sys/dev/pci/drm/i915/i915_perf.c
4987
engine->oa_group = &g[index];
sys/dev/pci/drm/i915/soc/intel_rom.c
139
loff_t index;
sys/dev/pci/drm/i915/soc/intel_rom.c
146
for (index = 0; index < size; index += 4)
sys/dev/pci/drm/i915/soc/intel_rom.c
147
*ptr++ = rom->read32(rom, offset + index);
sys/dev/pci/drm/include/drm/drm_atomic.h
749
int index = drm_connector_index(connector);
sys/dev/pci/drm/include/drm/drm_atomic.h
751
if (index >= state->num_connector)
sys/dev/pci/drm/include/drm/drm_atomic.h
754
return state->connectors[index].state;
sys/dev/pci/drm/include/drm/drm_atomic.h
769
int index = drm_connector_index(connector);
sys/dev/pci/drm/include/drm/drm_atomic.h
771
if (index >= state->num_connector)
sys/dev/pci/drm/include/drm/drm_atomic.h
774
return state->connectors[index].old_state;
sys/dev/pci/drm/include/drm/drm_atomic.h
789
int index = drm_connector_index(connector);
sys/dev/pci/drm/include/drm/drm_atomic.h
791
if (index >= state->num_connector)
sys/dev/pci/drm/include/drm/drm_atomic.h
794
return state->connectors[index].new_state;
sys/dev/pci/drm/include/drm/drm_connector.h
1948
unsigned index;
sys/dev/pci/drm/include/drm/drm_connector.h
2358
return connector->index;
sys/dev/pci/drm/include/drm/drm_connector.h
2363
return 1 << connector->index;
sys/dev/pci/drm/include/drm/drm_crtc.h
1267
return crtc->index;
sys/dev/pci/drm/include/drm/drm_crtc.h
986
unsigned index;
sys/dev/pci/drm/include/drm/drm_encoder.h
143
unsigned index;
sys/dev/pci/drm/include/drm/drm_encoder.h
274
return encoder->index;
sys/dev/pci/drm/include/drm/drm_exec.h
63
drm_exec_obj(struct drm_exec *exec, unsigned long index)
sys/dev/pci/drm/include/drm/drm_exec.h
65
return index < exec->num_objects ? exec->objects[index] : NULL;
sys/dev/pci/drm/include/drm/drm_exec.h
76
#define drm_exec_for_each_locked_object(exec, index, obj) \
sys/dev/pci/drm/include/drm/drm_exec.h
77
for ((index) = 0; ((obj) = drm_exec_obj(exec, index)); ++(index))
sys/dev/pci/drm/include/drm/drm_exec.h
90
#define drm_exec_for_each_locked_object_reverse(exec, index, obj) \
sys/dev/pci/drm/include/drm/drm_exec.h
91
for ((index) = (exec)->num_objects - 1; \
sys/dev/pci/drm/include/drm/drm_exec.h
92
((obj) = drm_exec_obj(exec, index)); --(index))
sys/dev/pci/drm/include/drm/drm_file.h
82
int index; /* Minor device number */
sys/dev/pci/drm/include/drm/drm_modes.h
512
int index);
sys/dev/pci/drm/include/drm/drm_modes.h
518
u32 *bus_flags, int index)
sys/dev/pci/drm/include/drm/drm_plane.h
722
unsigned index;
sys/dev/pci/drm/include/drm/drm_plane.h
920
return plane->index;
sys/dev/pci/drm/include/linux/bitops.h
97
sign_extend64(uint64_t value, int index)
sys/dev/pci/drm/include/linux/bitops.h
99
uint8_t shift = 63 - index;
sys/dev/pci/drm/include/linux/dma-resv.h
208
unsigned int index;
sys/dev/pci/drm/include/linux/radix-tree.h
57
unsigned long index;
sys/dev/pci/drm/include/linux/radix-tree.h
68
for ((iter)->index = (start); \
sys/dev/pci/drm/include/linux/radix-tree.h
69
radix_tree_iter_find(root, iter, &(slot)); (iter)->index++)
sys/dev/pci/drm/include/linux/xarray.h
140
xa_load(struct xarray *xa, unsigned long index)
sys/dev/pci/drm/include/linux/xarray.h
143
r = __xa_load(xa, index);
sys/dev/pci/drm/include/linux/xarray.h
149
xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
sys/dev/pci/drm/include/linux/xarray.h
153
r = __xa_store(xa, index, entry, gfp);
sys/dev/pci/drm/include/linux/xarray.h
159
xa_erase(struct xarray *xa, unsigned long index)
sys/dev/pci/drm/include/linux/xarray.h
163
r = __xa_erase(xa, index);
sys/dev/pci/drm/include/linux/xarray.h
169
xa_store_irq(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
sys/dev/pci/drm/include/linux/xarray.h
173
r = __xa_store(xa, index, entry, gfp);
sys/dev/pci/drm/include/linux/xarray.h
179
xa_erase_irq(struct xarray *xa, unsigned long index)
sys/dev/pci/drm/include/linux/xarray.h
183
r = __xa_erase(xa, index);
sys/dev/pci/drm/include/linux/xarray.h
57
#define xa_for_each(xa, index, entry) \
sys/dev/pci/drm/include/linux/xarray.h
58
for (index = 0; ((entry) = xa_get_next(xa, &(index))) != NULL; index++)
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
1294
__u32 index;
sys/dev/pci/drm/linux_radix.c
101
index += step;
sys/dev/pci/drm/linux_radix.c
102
index &= -step;
sys/dev/pci/drm/linux_radix.c
103
if ((index & mask) == 0)
sys/dev/pci/drm/linux_radix.c
110
iter->index = index;
sys/dev/pci/drm/linux_radix.c
115
radix_tree_delete(struct radix_tree_root *root, unsigned long index)
sys/dev/pci/drm/linux_radix.c
126
if (index > radix_max(root))
sys/dev/pci/drm/linux_radix.c
133
node = node->slots[radix_pos(index, height--)];
sys/dev/pci/drm/linux_radix.c
135
idx = radix_pos(index, 0);
sys/dev/pci/drm/linux_radix.c
155
idx = radix_pos(index, height);
sys/dev/pci/drm/linux_radix.c
165
radix_tree_delete(root, iter->index);
sys/dev/pci/drm/linux_radix.c
169
radix_tree_insert(struct radix_tree_root *root, unsigned long index, void *item)
sys/dev/pci/drm/linux_radix.c
193
while (radix_max(root) < index) {
sys/dev/pci/drm/linux_radix.c
219
idx = radix_pos(index, height);
sys/dev/pci/drm/linux_radix.c
244
idx = radix_pos(index, height);
sys/dev/pci/drm/linux_radix.c
253
idx = radix_pos(index, 0);
sys/dev/pci/drm/linux_radix.c
55
radix_tree_lookup(struct radix_tree_root *root, unsigned long index)
sys/dev/pci/drm/linux_radix.c
64
if (index > radix_max(root))
sys/dev/pci/drm/linux_radix.c
67
node = node->slots[radix_pos(index, height--)];
sys/dev/pci/drm/linux_radix.c
69
item = node->slots[radix_pos(index, 0)];
sys/dev/pci/drm/linux_radix.c
80
unsigned long index = iter->index;
sys/dev/pci/drm/linux_radix.c
88
if (height == -1 || index > radix_max(root))
sys/dev/pci/drm/linux_radix.c
93
int pos = radix_pos(index, height);
sys/dev/pci/drm/radeon/atom.c
114
uint32_t index, uint32_t data)
sys/dev/pci/drm/radeon/atom.c
1174
static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, int params_size)
sys/dev/pci/drm/radeon/atom.c
1176
int base = CU16(ctx->cmd_table + 4 + 2 * index);
sys/dev/pci/drm/radeon/atom.c
1238
int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uint32_t *params, int params_size)
sys/dev/pci/drm/radeon/atom.c
1254
r = atom_execute_table_locked(ctx, index, params, params_size);
sys/dev/pci/drm/radeon/atom.c
1259
int atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_size)
sys/dev/pci/drm/radeon/atom.c
1263
r = atom_execute_table_scratch_unlocked(ctx, index, params, params_size);
sys/dev/pci/drm/radeon/atom.c
1380
bool atom_parse_data_header(struct atom_context *ctx, int index,
sys/dev/pci/drm/radeon/atom.c
1384
int offset = index * 2 + 4;
sys/dev/pci/drm/radeon/atom.c
1388
if (!mdt[index])
sys/dev/pci/drm/radeon/atom.c
1401
bool atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t *frev,
sys/dev/pci/drm/radeon/atom.c
1404
int offset = index * 2 + 4;
sys/dev/pci/drm/radeon/atom.c
1408
if (!mct[index])
sys/dev/pci/drm/radeon/atom.c
1420
int index = GetIndexIntoMasterTable(DATA, VRAM_UsageByFirmware);
sys/dev/pci/drm/radeon/atom.c
1425
if (atom_parse_data_header(ctx, index, NULL, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/radeon/atom.c
151
((index >> CU8(base + 2)) &
sys/dev/pci/drm/radeon/atom.c
72
static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, int params_size);
sys/dev/pci/drm/radeon/atom.c
73
int atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_size);
sys/dev/pci/drm/radeon/atom.h
152
bool atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size,
sys/dev/pci/drm/radeon/atom.h
154
bool atom_parse_cmd_header(struct atom_context *ctx, int index,
sys/dev/pci/drm/radeon/atombios_crtc.c
1270
unsigned index, num_banks;
sys/dev/pci/drm/radeon/atombios_crtc.c
1280
for (index = 0; tileb > 64; index++)
sys/dev/pci/drm/radeon/atombios_crtc.c
1283
if (index >= 16) {
sys/dev/pci/drm/radeon/atombios_crtc.c
1290
num_banks = (rdev->config.cik.macrotile_mode_array[index] >> 6) & 0x3;
sys/dev/pci/drm/radeon/atombios_crtc.c
1294
index = 10;
sys/dev/pci/drm/radeon/atombios_crtc.c
1297
index = SI_TILE_MODE_COLOR_2D_SCANOUT_16BPP;
sys/dev/pci/drm/radeon/atombios_crtc.c
1301
index = SI_TILE_MODE_COLOR_2D_SCANOUT_32BPP;
sys/dev/pci/drm/radeon/atombios_crtc.c
1305
num_banks = (rdev->config.si.tile_mode_array[index] >> 20) & 0x3;
sys/dev/pci/drm/radeon/atombios_crtc.c
160
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
172
int index =
sys/dev/pci/drm/radeon/atombios_crtc.c
181
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
189
int index = GetIndexIntoMasterTable(COMMAND, EnableCRTC);
sys/dev/pci/drm/radeon/atombios_crtc.c
197
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
205
int index = GetIndexIntoMasterTable(COMMAND, EnableCRTCMemReq);
sys/dev/pci/drm/radeon/atombios_crtc.c
213
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
231
int index = GetIndexIntoMasterTable(COMMAND, BlankCRTC);
sys/dev/pci/drm/radeon/atombios_crtc.c
245
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
256
int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
sys/dev/pci/drm/radeon/atombios_crtc.c
264
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
309
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_UsingDTDTiming);
sys/dev/pci/drm/radeon/atombios_crtc.c
346
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
356
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_Timing);
sys/dev/pci/drm/radeon/atombios_crtc.c
392
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
450
int index = GetIndexIntoMasterTable(COMMAND, EnableSpreadSpectrumOnPPLL);
sys/dev/pci/drm/radeon/atombios_crtc.c
46
int index = GetIndexIntoMasterTable(COMMAND, SetCRTC_OverScan);
sys/dev/pci/drm/radeon/atombios_crtc.c
549
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
673
int index;
sys/dev/pci/drm/radeon/atombios_crtc.c
675
index = GetIndexIntoMasterTable(COMMAND, AdjustDisplayPll);
sys/dev/pci/drm/radeon/atombios_crtc.c
676
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev,
sys/dev/pci/drm/radeon/atombios_crtc.c
695
index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
728
index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
770
int index;
sys/dev/pci/drm/radeon/atombios_crtc.c
775
index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
sys/dev/pci/drm/radeon/atombios_crtc.c
776
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev,
sys/dev/pci/drm/radeon/atombios_crtc.c
80
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
812
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_crtc.c
832
int index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
sys/dev/pci/drm/radeon/atombios_crtc.c
837
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev,
sys/dev/pci/drm/radeon/atombios_crtc.c
89
int index = GetIndexIntoMasterTable(COMMAND, EnableScaler);
sys/dev/pci/drm/radeon/atombios_crtc.c
952
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_dp.c
115
atom_execute_table_scratch_unlocked(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_dp.c
343
int index = GetIndexIntoMasterTable(COMMAND, DPEncoderService);
sys/dev/pci/drm/radeon/atombios_dp.c
352
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_dp.c
789
int index;
sys/dev/pci/drm/radeon/atombios_dp.c
810
index = GetIndexIntoMasterTable(COMMAND, DPEncoderService);
sys/dev/pci/drm/radeon/atombios_dp.c
811
if (atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) {
sys/dev/pci/drm/radeon/atombios_dp.c
93
int index = GetIndexIntoMasterTable(COMMAND, ProcessAuxChannelTransaction);
sys/dev/pci/drm/radeon/atombios_encoders.c
1009
int index = 0;
sys/dev/pci/drm/radeon/atombios_encoders.c
105
int index;
sys/dev/pci/drm/radeon/atombios_encoders.c
1058
index = GetIndexIntoMasterTable(COMMAND, DVOOutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1064
index = GetIndexIntoMasterTable(COMMAND, UNIPHYTransmitterControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1067
index = GetIndexIntoMasterTable(COMMAND, LVTMATransmitterControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1071
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/atombios_encoders.c
119
index = GetIndexIntoMasterTable(COMMAND, LCD1OutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
122
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
125
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
127
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1364
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1380
int index = GetIndexIntoMasterTable(COMMAND, UNIPHYTransmitterControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1393
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/atombios_encoders.c
1400
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1433
int index = GetIndexIntoMasterTable(COMMAND, ExternalEncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1458
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/atombios_encoders.c
1522
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1533
int index = GetIndexIntoMasterTable(COMMAND, EnableYUV);
sys/dev/pci/drm/radeon/atombios_encoders.c
1557
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1569
int index = 0;
sys/dev/pci/drm/radeon/atombios_encoders.c
1576
index = GetIndexIntoMasterTable(COMMAND, TMDSAOutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1581
index = GetIndexIntoMasterTable(COMMAND, DVOOutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1584
index = GetIndexIntoMasterTable(COMMAND, LCD1OutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1588
index = GetIndexIntoMasterTable(COMMAND, LCD1OutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1590
index = GetIndexIntoMasterTable(COMMAND, LVTMAOutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1595
index = GetIndexIntoMasterTable(COMMAND, TV1OutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1597
index = GetIndexIntoMasterTable(COMMAND, CV1OutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1599
index = GetIndexIntoMasterTable(COMMAND, DAC1OutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1604
index = GetIndexIntoMasterTable(COMMAND, TV1OutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1606
index = GetIndexIntoMasterTable(COMMAND, CV1OutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1608
index = GetIndexIntoMasterTable(COMMAND, DAC2OutputControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
1621
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1624
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1632
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1640
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1643
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
1852
int index = GetIndexIntoMasterTable(COMMAND, SelectCRTC_Source);
sys/dev/pci/drm/radeon/atombios_encoders.c
1858
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/atombios_encoders.c
1986
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
2283
int index = GetIndexIntoMasterTable(COMMAND, DAC_LoadDetection);
sys/dev/pci/drm/radeon/atombios_encoders.c
2288
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/atombios_encoders.c
231
"radeon_bl%d", dev->primary->index);
sys/dev/pci/drm/radeon/atombios_encoders.c
2313
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
351
int index = 0;
sys/dev/pci/drm/radeon/atombios_encoders.c
359
index = GetIndexIntoMasterTable(COMMAND, DAC1EncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
363
index = GetIndexIntoMasterTable(COMMAND, DAC2EncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
392
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
403
int index = 0;
sys/dev/pci/drm/radeon/atombios_encoders.c
408
index = GetIndexIntoMasterTable(COMMAND, TVEncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
448
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
492
int index = GetIndexIntoMasterTable(COMMAND, DVOEncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
497
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/atombios_encoders.c
549
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
565
int index = 0;
sys/dev/pci/drm/radeon/atombios_encoders.c
579
index = GetIndexIntoMasterTable(COMMAND, LVDSEncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
583
index = GetIndexIntoMasterTable(COMMAND, TMDS1EncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
587
index = GetIndexIntoMasterTable(COMMAND, LVDSEncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
589
index = GetIndexIntoMasterTable(COMMAND, TMDS2EncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
593
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/atombios_encoders.c
667
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_encoders.c
839
int index = 0;
sys/dev/pci/drm/radeon/atombios_encoders.c
862
index = GetIndexIntoMasterTable(COMMAND, DIGxEncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
865
index = GetIndexIntoMasterTable(COMMAND, DIG2EncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
867
index = GetIndexIntoMasterTable(COMMAND, DIG1EncoderControl);
sys/dev/pci/drm/radeon/atombios_encoders.c
870
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/atombios_encoders.c
982
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/atombios_i2c.c
43
int index = GetIndexIntoMasterTable(COMMAND, ProcessI2cChannelTransaction);
sys/dev/pci/drm/radeon/atombios_i2c.c
81
atom_execute_table_scratch_unlocked(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/ci_dpm.c
3344
u32 index, u32 pcie_gen, u32 pcie_lanes)
sys/dev/pci/drm/radeon/ci_dpm.c
3346
dpm_table->dpm_levels[index].value = pcie_gen;
sys/dev/pci/drm/radeon/ci_dpm.c
3347
dpm_table->dpm_levels[index].param1 = pcie_lanes;
sys/dev/pci/drm/radeon/ci_dpm.c
3348
dpm_table->dpm_levels[index].enabled = true;
sys/dev/pci/drm/radeon/ci_dpm.c
5419
struct radeon_ps *rps, int index,
sys/dev/pci/drm/radeon/ci_dpm.c
5424
struct ci_pl *pl = &ps->performance_levels[index];
sys/dev/pci/drm/radeon/ci_dpm.c
5426
ps->performance_level_count = index + 1;
sys/dev/pci/drm/radeon/ci_dpm.c
5498
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/ci_dpm.c
5505
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/ci_dpm.c
5593
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/pci/drm/radeon/ci_dpm.c
5598
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/ci_dpm.c
5631
int index = GetIndexIntoMasterTable(DATA, ASIC_InternalSS_Info);
sys/dev/pci/drm/radeon/ci_dpm.c
5866
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/cik.c
1728
u32 cik_mm_rdoorbell(struct radeon_device *rdev, u32 index)
sys/dev/pci/drm/radeon/cik.c
1730
if (index < rdev->doorbell.num_doorbells) {
sys/dev/pci/drm/radeon/cik.c
1731
return readl(rdev->doorbell.ptr + index);
sys/dev/pci/drm/radeon/cik.c
1733
DRM_ERROR("reading beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/pci/drm/radeon/cik.c
1748
void cik_mm_wdoorbell(struct radeon_device *rdev, u32 index, u32 v)
sys/dev/pci/drm/radeon/cik.c
1750
if (index < rdev->doorbell.num_doorbells) {
sys/dev/pci/drm/radeon/cik.c
1751
writel(v, rdev->doorbell.ptr + index);
sys/dev/pci/drm/radeon/cik.c
1753
DRM_ERROR("writing beyond doorbell aperture: 0x%08x!\n", index);
sys/dev/pci/drm/radeon/cik_sdma.c
649
unsigned index;
sys/dev/pci/drm/radeon/cik_sdma.c
654
index = R600_WB_DMA_RING_TEST_OFFSET;
sys/dev/pci/drm/radeon/cik_sdma.c
656
index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
sys/dev/pci/drm/radeon/cik_sdma.c
658
gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/pci/drm/radeon/cik_sdma.c
661
rdev->wb.wb[index/4] = cpu_to_le32(tmp);
sys/dev/pci/drm/radeon/cik_sdma.c
676
tmp = le32_to_cpu(rdev->wb.wb[index/4]);
sys/dev/pci/drm/radeon/cik_sdma.c
705
unsigned index;
sys/dev/pci/drm/radeon/cik_sdma.c
711
index = R600_WB_DMA_RING_TEST_OFFSET;
sys/dev/pci/drm/radeon/cik_sdma.c
713
index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
sys/dev/pci/drm/radeon/cik_sdma.c
715
gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/pci/drm/radeon/cik_sdma.c
718
rdev->wb.wb[index/4] = cpu_to_le32(tmp);
sys/dev/pci/drm/radeon/cik_sdma.c
750
tmp = le32_to_cpu(rdev->wb.wb[index/4]);
sys/dev/pci/drm/radeon/cypress_dpm.c
1231
voltage->index = eg_pi->mvdd_high_index;
sys/dev/pci/drm/radeon/cypress_dpm.c
410
voltage->index = (u8)i;
sys/dev/pci/drm/radeon/cypress_dpm.c
662
voltage->index = eg_pi->mvdd_high_index;
sys/dev/pci/drm/radeon/cypress_dpm.c
668
voltage->index = eg_pi->mvdd_low_index;
sys/dev/pci/drm/radeon/cypress_dpm.c
671
voltage->index = eg_pi->mvdd_high_index;
sys/dev/pci/drm/radeon/kv_dpm.c
2051
u32 index, bool enable)
sys/dev/pci/drm/radeon/kv_dpm.c
2055
pi->graphics_level[index].EnabledForThrottle = enable ? 1 : 0;
sys/dev/pci/drm/radeon/kv_dpm.c
2289
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/radeon/kv_dpm.c
2295
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/kv_dpm.c
2407
struct radeon_ps *rps, int index,
sys/dev/pci/drm/radeon/kv_dpm.c
2412
struct kv_pl *pl = &ps->levels[index];
sys/dev/pci/drm/radeon/kv_dpm.c
2420
ps->num_levels = index + 1;
sys/dev/pci/drm/radeon/kv_dpm.c
2439
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/kv_dpm.c
2445
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/kv_dpm.c
376
u32 index, u32 sclk)
sys/dev/pci/drm/radeon/kv_dpm.c
387
pi->graphics_level[index].SclkDid = (u8)dividers.post_div;
sys/dev/pci/drm/radeon/kv_dpm.c
388
pi->graphics_level[index].SclkFrequency = cpu_to_be32(sclk);
sys/dev/pci/drm/radeon/kv_dpm.c
457
static int kv_set_vid(struct radeon_device *rdev, u32 index, u32 vid)
sys/dev/pci/drm/radeon/kv_dpm.c
461
pi->graphics_level[index].VoltageDownH = (u8)pi->voltage_drop_t;
sys/dev/pci/drm/radeon/kv_dpm.c
462
pi->graphics_level[index].MinVddNb =
sys/dev/pci/drm/radeon/kv_dpm.c
468
static int kv_set_at(struct radeon_device *rdev, u32 index, u32 at)
sys/dev/pci/drm/radeon/kv_dpm.c
472
pi->graphics_level[index].AT = cpu_to_be16((u16)at);
sys/dev/pci/drm/radeon/kv_dpm.c
478
u32 index, bool enable)
sys/dev/pci/drm/radeon/kv_dpm.c
482
pi->graphics_level[index].EnabledForActivity = enable ? 1 : 0;
sys/dev/pci/drm/radeon/ni_dpm.c
1308
voltage->index = (u8)i;
sys/dev/pci/drm/radeon/ni_dpm.c
1328
voltage->index = eg_pi->mvdd_high_index;
sys/dev/pci/drm/radeon/ni_dpm.c
1334
voltage->index = eg_pi->mvdd_low_index;
sys/dev/pci/drm/radeon/ni_dpm.c
1337
voltage->index = eg_pi->mvdd_high_index;
sys/dev/pci/drm/radeon/ni_dpm.c
1347
((u32)voltage->index < rdev->pm.dpm.dyn_state.cac_leakage_table.count))
sys/dev/pci/drm/radeon/ni_dpm.c
1348
*std_voltage = rdev->pm.dpm.dyn_state.cac_leakage_table.entries[voltage->index].vddc;
sys/dev/pci/drm/radeon/ni_dpm.c
1356
u16 value, u8 index,
sys/dev/pci/drm/radeon/ni_dpm.c
1359
voltage->index = index;
sys/dev/pci/drm/radeon/ni_dpm.c
1675
voltage->index = eg_pi->mvdd_high_index;
sys/dev/pci/drm/radeon/ni_dpm.c
1739
table->initialState.level.vddc.index,
sys/dev/pci/drm/radeon/ni_dpm.c
1824
table->ACPIState.level.vddc.index,
sys/dev/pci/drm/radeon/ni_dpm.c
1849
table->ACPIState.level.vddc.index,
sys/dev/pci/drm/radeon/ni_dpm.c
2380
level->vddc.index, &level->std_vddc);
sys/dev/pci/drm/radeon/ni_dpm.c
3921
struct radeon_ps *rps, int index,
sys/dev/pci/drm/radeon/ni_dpm.c
3927
struct rv7xx_pl *pl = &ps->performance_levels[index];
sys/dev/pci/drm/radeon/ni_dpm.c
3929
ps->performance_level_count = index + 1;
sys/dev/pci/drm/radeon/ni_dpm.c
3993
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/ni_dpm.c
3998
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/nislands_smc.h
85
uint8_t index;
sys/dev/pci/drm/radeon/r600_dma.c
234
unsigned index;
sys/dev/pci/drm/radeon/r600_dma.c
239
index = R600_WB_DMA_RING_TEST_OFFSET;
sys/dev/pci/drm/radeon/r600_dma.c
241
index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
sys/dev/pci/drm/radeon/r600_dma.c
243
gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/pci/drm/radeon/r600_dma.c
246
rdev->wb.wb[index/4] = cpu_to_le32(tmp);
sys/dev/pci/drm/radeon/r600_dma.c
260
tmp = le32_to_cpu(rdev->wb.wb[index/4]);
sys/dev/pci/drm/radeon/r600_dma.c
340
unsigned index;
sys/dev/pci/drm/radeon/r600_dma.c
346
index = R600_WB_DMA_RING_TEST_OFFSET;
sys/dev/pci/drm/radeon/r600_dma.c
348
index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
sys/dev/pci/drm/radeon/r600_dma.c
350
gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/pci/drm/radeon/r600_dma.c
381
tmp = le32_to_cpu(rdev->wb.wb[index/4]);
sys/dev/pci/drm/radeon/r600_dpm.c
350
u32 index, u32 u_t, u32 d_t)
sys/dev/pci/drm/radeon/r600_dpm.c
352
WREG32(CG_FFCT_0 + (index * 4), UTC_0(u_t) | DTC_0(d_t));
sys/dev/pci/drm/radeon/r600_dpm.c
444
u32 index, bool enable)
sys/dev/pci/drm/radeon/r600_dpm.c
447
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
450
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
455
u32 index, bool enable)
sys/dev/pci/drm/radeon/r600_dpm.c
458
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
461
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
466
u32 index, bool enable)
sys/dev/pci/drm/radeon/r600_dpm.c
469
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
472
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART2 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
477
u32 index, u32 divider)
sys/dev/pci/drm/radeon/r600_dpm.c
479
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART1 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
484
u32 index, u32 divider)
sys/dev/pci/drm/radeon/r600_dpm.c
486
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART1 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
491
u32 index, u32 divider)
sys/dev/pci/drm/radeon/r600_dpm.c
493
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART1 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
498
u32 index, u32 step_time)
sys/dev/pci/drm/radeon/r600_dpm.c
500
WREG32_P(SCLK_FREQ_SETTING_STEP_0_PART1 + (index * 4 * 2),
sys/dev/pci/drm/radeon/r600_dpm.c
528
enum r600_power_level index, u64 pins)
sys/dev/pci/drm/radeon/r600_dpm.c
531
u32 ix = 3 - (3 & index);
sys/dev/pci/drm/radeon/r600_dpm.c
560
enum r600_power_level index, bool enable)
sys/dev/pci/drm/radeon/r600_dpm.c
562
u32 ix = 3 - (3 & index);
sys/dev/pci/drm/radeon/r600_dpm.c
573
enum r600_power_level index, u32 voltage_index)
sys/dev/pci/drm/radeon/r600_dpm.c
575
u32 ix = 3 - (3 & index);
sys/dev/pci/drm/radeon/r600_dpm.c
582
enum r600_power_level index, u32 mem_clock_index)
sys/dev/pci/drm/radeon/r600_dpm.c
584
u32 ix = 3 - (3 & index);
sys/dev/pci/drm/radeon/r600_dpm.c
591
enum r600_power_level index, u32 eng_clock_index)
sys/dev/pci/drm/radeon/r600_dpm.c
593
u32 ix = 3 - (3 & index);
sys/dev/pci/drm/radeon/r600_dpm.c
600
enum r600_power_level index,
sys/dev/pci/drm/radeon/r600_dpm.c
603
u32 ix = 3 - (3 & index);
sys/dev/pci/drm/radeon/r600_dpm.c
612
enum r600_power_level index, bool compatible)
sys/dev/pci/drm/radeon/r600_dpm.c
614
u32 ix = 3 - (3 & index);
sys/dev/pci/drm/radeon/r600_dpm.c
641
enum r600_power_level index)
sys/dev/pci/drm/radeon/r600_dpm.c
643
WREG32_P(TARGET_AND_CURRENT_PROFILE_INDEX, DYN_PWR_ENTER_INDEX(index),
sys/dev/pci/drm/radeon/r600_dpm.c
648
enum r600_power_level index)
sys/dev/pci/drm/radeon/r600_dpm.c
653
if (r600_power_level_get_target_index(rdev) != index)
sys/dev/pci/drm/radeon/r600_dpm.c
659
if (r600_power_level_get_current_index(rdev) != index)
sys/dev/pci/drm/radeon/r600_dpm.c
666
enum r600_power_level index)
sys/dev/pci/drm/radeon/r600_dpm.c
671
if (r600_power_level_get_target_index(rdev) == index)
sys/dev/pci/drm/radeon/r600_dpm.c
677
if (r600_power_level_get_current_index(rdev) == index)
sys/dev/pci/drm/radeon/r600_dpm.c
847
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/r600_dpm.c
851
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/r600_dpm.c
877
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/r600_dpm.c
882
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/r600_dpm.h
156
void r600_set_tc(struct radeon_device *rdev, u32 index, u32 u_t, u32 d_t);
sys/dev/pci/drm/radeon/r600_dpm.h
174
u32 index, bool enable);
sys/dev/pci/drm/radeon/r600_dpm.h
176
u32 index, bool enable);
sys/dev/pci/drm/radeon/r600_dpm.h
178
u32 index, bool enable);
sys/dev/pci/drm/radeon/r600_dpm.h
180
u32 index, u32 divider);
sys/dev/pci/drm/radeon/r600_dpm.h
182
u32 index, u32 divider);
sys/dev/pci/drm/radeon/r600_dpm.h
184
u32 index, u32 divider);
sys/dev/pci/drm/radeon/r600_dpm.h
186
u32 index, u32 step_time);
sys/dev/pci/drm/radeon/r600_dpm.h
193
enum r600_power_level index, u64 pins);
sys/dev/pci/drm/radeon/r600_dpm.h
197
enum r600_power_level index, bool enable);
sys/dev/pci/drm/radeon/r600_dpm.h
199
enum r600_power_level index, u32 voltage_index);
sys/dev/pci/drm/radeon/r600_dpm.h
201
enum r600_power_level index, u32 mem_clock_index);
sys/dev/pci/drm/radeon/r600_dpm.h
203
enum r600_power_level index, u32 eng_clock_index);
sys/dev/pci/drm/radeon/r600_dpm.h
205
enum r600_power_level index,
sys/dev/pci/drm/radeon/r600_dpm.h
208
enum r600_power_level index, bool compatible);
sys/dev/pci/drm/radeon/r600_dpm.h
212
enum r600_power_level index);
sys/dev/pci/drm/radeon/r600_dpm.h
214
enum r600_power_level index);
sys/dev/pci/drm/radeon/r600_dpm.h
216
enum r600_power_level index);
sys/dev/pci/drm/radeon/radeon.h
2520
u32 cik_mm_rdoorbell(struct radeon_device *rdev, u32 index);
sys/dev/pci/drm/radeon/radeon.h
2521
void cik_mm_wdoorbell(struct radeon_device *rdev, u32 index, u32 v);
sys/dev/pci/drm/radeon/radeon.h
2607
#define RDOORBELL32(index) cik_mm_rdoorbell(rdev, (index))
sys/dev/pci/drm/radeon/radeon.h
2608
#define WDOORBELL32(index, v) cik_mm_wdoorbell(rdev, (index), (v))
sys/dev/pci/drm/radeon/radeon_atombios.c
1115
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
1120
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
1133
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
1143
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
1302
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
1311
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
1338
int index = GetIndexIntoMasterTable(DATA, TMDS_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
134
int index = GetIndexIntoMasterTable(DATA, GPIO_I2C_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
1345
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
1386
int index = GetIndexIntoMasterTable(DATA, PPLL_SS_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
1394
if (atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
142
if (atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/radeon/radeon_atombios.c
1426
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
1433
if (atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
1514
int index = GetIndexIntoMasterTable(DATA, ASIC_InternalSS_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
1531
if (atom_parse_data_header(mode_info->atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
1627
int index = GetIndexIntoMasterTable(DATA, LVDS_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
1634
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
170
int index = GetIndexIntoMasterTable(DATA, GPIO_I2C_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
176
if (atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/radeon/radeon_atombios.c
1768
int index = GetIndexIntoMasterTable(DATA, CompassionateData);
sys/dev/pci/drm/radeon/radeon_atombios.c
1775
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
1793
bool radeon_atom_get_tv_timings(struct radeon_device *rdev, int index,
sys/dev/pci/drm/radeon/radeon_atombios.c
1811
if (index >= MAX_SUPPORTED_TV_TIMING)
sys/dev/pci/drm/radeon/radeon_atombios.c
1814
mode->crtc_htotal = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_Total);
sys/dev/pci/drm/radeon/radeon_atombios.c
1815
mode->crtc_hdisplay = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_Disp);
sys/dev/pci/drm/radeon/radeon_atombios.c
1816
mode->crtc_hsync_start = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncStart);
sys/dev/pci/drm/radeon/radeon_atombios.c
1817
mode->crtc_hsync_end = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncStart) +
sys/dev/pci/drm/radeon/radeon_atombios.c
1818
le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncWidth);
sys/dev/pci/drm/radeon/radeon_atombios.c
1820
mode->crtc_vtotal = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_Total);
sys/dev/pci/drm/radeon/radeon_atombios.c
1821
mode->crtc_vdisplay = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_Disp);
sys/dev/pci/drm/radeon/radeon_atombios.c
1822
mode->crtc_vsync_start = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncStart);
sys/dev/pci/drm/radeon/radeon_atombios.c
1823
mode->crtc_vsync_end = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncStart) +
sys/dev/pci/drm/radeon/radeon_atombios.c
1824
le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncWidth);
sys/dev/pci/drm/radeon/radeon_atombios.c
1827
misc = le16_to_cpu(tv_info->aModeTimings[index].susModeMiscInfo.usAccess);
sys/dev/pci/drm/radeon/radeon_atombios.c
1840
le16_to_cpu(tv_info->aModeTimings[index].usPixelClock) * 10;
sys/dev/pci/drm/radeon/radeon_atombios.c
1842
if (index == 1) {
sys/dev/pci/drm/radeon/radeon_atombios.c
1850
if (index >= MAX_SUPPORTED_TV_TIMING_V1_2)
sys/dev/pci/drm/radeon/radeon_atombios.c
1853
dtd_timings = &tv_info_v1_2->aModeTimings[index];
sys/dev/pci/drm/radeon/radeon_atombios.c
1894
int index = GetIndexIntoMasterTable(DATA, AnalogTV_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
1900
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
1954
int index = GetIndexIntoMasterTable(DATA, CompassionateData);
sys/dev/pci/drm/radeon/radeon_atombios.c
1961
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
203
int index = GetIndexIntoMasterTable(DATA, GPIO_Pin_LUT);
sys/dev/pci/drm/radeon/radeon_atombios.c
2093
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
2097
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
212
if (atom_parse_data_header(ctx, index, &size, NULL, NULL, &data_offset)) {
sys/dev/pci/drm/radeon/radeon_atombios.c
2386
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
2395
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
2590
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
2594
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
2683
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
2688
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
2770
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
2777
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/radeon_atombios.c
2850
int index = GetIndexIntoMasterTable(COMMAND, ComputeMemoryEnginePLL);
sys/dev/pci/drm/radeon/radeon_atombios.c
2856
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/radeon_atombios.c
2865
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
2879
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
2894
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
2914
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
2933
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
2944
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
2966
int index = GetIndexIntoMasterTable(COMMAND, ComputeMemoryClockParam);
sys/dev/pci/drm/radeon/radeon_atombios.c
2972
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/radeon_atombios.c
2985
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3014
int index = GetIndexIntoMasterTable(COMMAND, DynamicClockGating);
sys/dev/pci/drm/radeon/radeon_atombios.c
3018
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3024
int index = GetIndexIntoMasterTable(COMMAND, GetEngineClock);
sys/dev/pci/drm/radeon/radeon_atombios.c
3026
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3033
int index = GetIndexIntoMasterTable(COMMAND, GetMemoryClock);
sys/dev/pci/drm/radeon/radeon_atombios.c
3035
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3043
int index = GetIndexIntoMasterTable(COMMAND, SetEngineClock);
sys/dev/pci/drm/radeon/radeon_atombios.c
3047
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3054
int index = GetIndexIntoMasterTable(COMMAND, SetMemoryClock);
sys/dev/pci/drm/radeon/radeon_atombios.c
3061
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3068
int index = GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings);
sys/dev/pci/drm/radeon/radeon_atombios.c
3080
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3087
int index = GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings);
sys/dev/pci/drm/radeon/radeon_atombios.c
3091
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3098
int index = GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings);
sys/dev/pci/drm/radeon/radeon_atombios.c
3103
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3116
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/pci/drm/radeon/radeon_atombios.c
3119
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/radeon_atombios.c
3147
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3154
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/pci/drm/radeon/radeon_atombios.c
3157
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/radeon_atombios.c
3168
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3177
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3200
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/pci/drm/radeon/radeon_atombios.c
3203
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/radeon_atombios.c
3213
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3230
int index = GetIndexIntoMasterTable(DATA, ASIC_ProfilingInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
3240
if (!atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
3320
int index = GetIndexIntoMasterTable(COMMAND, GetVoltageInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
3340
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3352
int index = GetIndexIntoMasterTable(COMMAND, SetVoltage);
sys/dev/pci/drm/radeon/radeon_atombios.c
3355
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
sys/dev/pci/drm/radeon/radeon_atombios.c
3366
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3374
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args));
sys/dev/pci/drm/radeon/radeon_atombios.c
3453
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
3459
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
3512
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
3518
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
3555
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
3561
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
3614
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
3620
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
3664
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
3670
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
3732
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
3739
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
3832
int index = GetIndexIntoMasterTable(DATA, VRAM_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
3839
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
3922
int index = GetIndexIntoMasterTable(DATA, VRAM_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
3931
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
3995
int index = GetIndexIntoMasterTable(DATA, VRAM_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
4003
if (atom_parse_data_header(rdev->mode_info.atom_context, index, &size,
sys/dev/pci/drm/radeon/radeon_atombios.c
49
u8 index)
sys/dev/pci/drm/radeon/radeon_atombios.c
526
int index = GetIndexIntoMasterTable(DATA, Object_Header);
sys/dev/pci/drm/radeon/radeon_atombios.c
542
if (!atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset))
sys/dev/pci/drm/radeon/radeon_atombios.c
593
index =
sys/dev/pci/drm/radeon/radeon_atombios.c
597
if (atom_parse_data_header(ctx, index, &size, &frev,
sys/dev/pci/drm/radeon/radeon_atombios.c
65
if ((index == 7) &&
sys/dev/pci/drm/radeon/radeon_atombios.c
78
if ((index == 4) &&
sys/dev/pci/drm/radeon/radeon_atombios.c
851
int index = GetIndexIntoMasterTable(DATA, XTMDS_Info);
sys/dev/pci/drm/radeon/radeon_atombios.c
856
if (atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset)) {
sys/dev/pci/drm/radeon/radeon_atombios.c
895
int index = GetIndexIntoMasterTable(DATA, SupportedDevicesInfo);
sys/dev/pci/drm/radeon/radeon_atombios.c
913
if (!atom_parse_data_header(ctx, index, &size, &frev, &crev,
sys/dev/pci/drm/radeon/radeon_atombios.h
37
bool radeon_atom_get_tv_timings(struct radeon_device *rdev, int index,
sys/dev/pci/drm/radeon/radeon_combios.c
2888
uint32_t index, id;
sys/dev/pci/drm/radeon/radeon_combios.c
2902
index = offset + 4;
sys/dev/pci/drm/radeon/radeon_combios.c
2904
id = RBIOS16(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2905
index += 2;
sys/dev/pci/drm/radeon/radeon_combios.c
2909
val = RBIOS32(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2910
index += 4;
sys/dev/pci/drm/radeon/radeon_combios.c
2915
and_mask = RBIOS32(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2916
index += 4;
sys/dev/pci/drm/radeon/radeon_combios.c
2917
or_mask = RBIOS32(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2918
index += 4;
sys/dev/pci/drm/radeon/radeon_combios.c
2924
val = RBIOS16(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2925
index += 2;
sys/dev/pci/drm/radeon/radeon_combios.c
2929
val = RBIOS16(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2930
index += 2;
sys/dev/pci/drm/radeon/radeon_combios.c
2936
index++;
sys/dev/pci/drm/radeon/radeon_combios.c
2937
reg = RBIOS8(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2938
index++;
sys/dev/pci/drm/radeon/radeon_combios.c
2939
val = RBIOS8(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2940
index++;
sys/dev/pci/drm/radeon/radeon_combios.c
2957
index = offset + 10;
sys/dev/pci/drm/radeon/radeon_combios.c
2958
id = RBIOS16(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2960
index += 2;
sys/dev/pci/drm/radeon/radeon_combios.c
2964
val = RBIOS32(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2969
and_mask = RBIOS32(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2970
index += 4;
sys/dev/pci/drm/radeon/radeon_combios.c
2971
or_mask = RBIOS32(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2972
index += 4;
sys/dev/pci/drm/radeon/radeon_combios.c
2978
val = RBIOS16(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2979
index += 2;
sys/dev/pci/drm/radeon/radeon_combios.c
2984
and_mask = RBIOS32(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2985
index += 4;
sys/dev/pci/drm/radeon/radeon_combios.c
2986
or_mask = RBIOS32(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2987
index += 4;
sys/dev/pci/drm/radeon/radeon_combios.c
2994
val = RBIOS8(index);
sys/dev/pci/drm/radeon/radeon_combios.c
2995
index += 1;
sys/dev/pci/drm/radeon/radeon_combios.c
3004
id = RBIOS16(index);
sys/dev/pci/drm/radeon/radeon_display.c
1990
unsigned int pipe = crtc->index;
sys/dev/pci/drm/radeon/radeon_display.c
681
static void radeon_crtc_init(struct drm_device *dev, int index)
sys/dev/pci/drm/radeon/radeon_display.c
699
radeon_crtc->crtc_id = index;
sys/dev/pci/drm/radeon/radeon_display.c
700
rdev->mode_info.crtcs[index] = radeon_crtc;
sys/dev/pci/drm/radeon/radeon_drv.c
893
radeondrm_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/pci/drm/radeon/radeon_drv.c
900
WREG8(RADEON_PALETTE_INDEX, index);
sys/dev/pci/drm/radeon/radeon_drv.c
916
int i, index, ret = 0;
sys/dev/pci/drm/radeon/radeon_drv.c
933
for (index = 0; index < 256; index++) {
sys/dev/pci/drm/radeon/radeon_drv.c
934
r_base[index] = *p++ << 8;
sys/dev/pci/drm/radeon/radeon_drv.c
935
g_base[index] = *p++ << 8;
sys/dev/pci/drm/radeon/radeon_drv.c
936
b_base[index] = *p++ << 8;
sys/dev/pci/drm/radeon/radeon_fence.c
761
uint64_t index;
sys/dev/pci/drm/radeon/radeon_fence.c
768
index = R600_WB_EVENT_OFFSET + ring * 4;
sys/dev/pci/drm/radeon/radeon_fence.c
769
rdev->fence_drv[ring].cpu_addr = &rdev->wb.wb[index/4];
sys/dev/pci/drm/radeon/radeon_fence.c
771
index;
sys/dev/pci/drm/radeon/radeon_fence.c
775
index = ALIGN(rdev->uvd_fw->size, 8);
sys/dev/pci/drm/radeon/radeon_fence.c
776
rdev->fence_drv[ring].cpu_addr = rdev->uvd.cpu_addr + index;
sys/dev/pci/drm/radeon/radeon_fence.c
777
rdev->fence_drv[ring].gpu_addr = rdev->uvd.gpu_addr + index;
sys/dev/pci/drm/radeon/radeon_fence.c
786
index = RADEON_WB_SCRATCH_OFFSET +
sys/dev/pci/drm/radeon/radeon_fence.c
789
rdev->fence_drv[ring].cpu_addr = &rdev->wb.wb[index/4];
sys/dev/pci/drm/radeon/radeon_fence.c
790
rdev->fence_drv[ring].gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/pci/drm/radeon/radeon_kms.c
763
unsigned int pipe = crtc->index;
sys/dev/pci/drm/radeon/radeon_kms.c
833
unsigned int pipe = crtc->index;
sys/dev/pci/drm/radeon/radeon_kms.c
860
unsigned int pipe = crtc->index;
sys/dev/pci/drm/radeon/radeon_legacy_encoders.c
407
"radeon_bl%d", dev->primary->index);
sys/dev/pci/drm/radeon/radeon_pm.c
708
int hyst = to_sensor_dev_attr(attr)->index;
sys/dev/pci/drm/radeon/radeon_pm.c
787
struct attribute *attr, int index)
sys/dev/pci/drm/radeon/radeon_ring.c
423
u32 index = RADEON_WB_RING0_NEXT_RPTR + (ring->idx * 4);
sys/dev/pci/drm/radeon/radeon_ring.c
424
ring->next_rptr_gpu_addr = rdev->wb.gpu_addr + index;
sys/dev/pci/drm/radeon/radeon_ring.c
425
ring->next_rptr_cpu_addr = &rdev->wb.wb[index/4];
sys/dev/pci/drm/radeon/radeon_trace.h
138
__entry->dev = dev->primary->index;
sys/dev/pci/drm/radeon/rs690.c
68
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/radeon/rs690.c
74
if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL,
sys/dev/pci/drm/radeon/rs780_dpm.c
797
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/rs780_dpm.c
802
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/rs780_dpm.c
850
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/radeon/rs780_dpm.c
872
if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL,
sys/dev/pci/drm/radeon/rv6xx_dpm.c
1817
struct radeon_ps *rps, int index,
sys/dev/pci/drm/radeon/rv6xx_dpm.c
1825
switch (index) {
sys/dev/pci/drm/radeon/rv6xx_dpm.c
1880
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/rv6xx_dpm.c
1885
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/rv6xx_dpm.c
297
u32 clock, u32 index)
sys/dev/pci/drm/radeon/rv6xx_dpm.c
302
rv6xx_output_stepping(rdev, index, &step);
sys/dev/pci/drm/radeon/rv6xx_dpm.c
315
u32 index, u32 clk_s)
sys/dev/pci/drm/radeon/rv6xx_dpm.c
317
WREG32_P(CG_SPLL_SPREAD_SPECTRUM_LOW + (index * 4),
sys/dev/pci/drm/radeon/rv6xx_dpm.c
322
u32 index, u32 clk_v)
sys/dev/pci/drm/radeon/rv6xx_dpm.c
324
WREG32_P(CG_SPLL_SPREAD_SPECTRUM_LOW + (index * 4),
sys/dev/pci/drm/radeon/rv6xx_dpm.c
329
u32 index, bool enable)
sys/dev/pci/drm/radeon/rv6xx_dpm.c
332
WREG32_P(CG_SPLL_SPREAD_SPECTRUM_LOW + (index * 4),
sys/dev/pci/drm/radeon/rv6xx_dpm.c
335
WREG32_P(CG_SPLL_SPREAD_SPECTRUM_LOW + (index * 4),
sys/dev/pci/drm/radeon/rv6xx_dpm.c
370
u32 index, bool enable)
sys/dev/pci/drm/radeon/rv6xx_dpm.c
373
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4),
sys/dev/pci/drm/radeon/rv6xx_dpm.c
376
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4), 0, ~LEVEL0_MPLL_DIV_EN);
sys/dev/pci/drm/radeon/rv6xx_dpm.c
380
u32 index, u32 divider)
sys/dev/pci/drm/radeon/rv6xx_dpm.c
382
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4),
sys/dev/pci/drm/radeon/rv6xx_dpm.c
387
u32 index, u32 divider)
sys/dev/pci/drm/radeon/rv6xx_dpm.c
389
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4), LEVEL0_MPLL_FB_DIV(divider),
sys/dev/pci/drm/radeon/rv6xx_dpm.c
394
u32 index, u32 divider)
sys/dev/pci/drm/radeon/rv6xx_dpm.c
396
WREG32_P(MPLL_FREQ_LEVEL_0 + (index * 4),
sys/dev/pci/drm/radeon/rv770_dpm.c
1014
voltage->index = MVDD_LOW_INDEX;
sys/dev/pci/drm/radeon/rv770_dpm.c
1017
voltage->index = MVDD_HIGH_INDEX;
sys/dev/pci/drm/radeon/rv770_dpm.c
2176
struct radeon_ps *rps, int index,
sys/dev/pci/drm/radeon/rv770_dpm.c
2185
switch (index) {
sys/dev/pci/drm/radeon/rv770_dpm.c
2276
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/rv770_dpm.c
2281
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/rv770_dpm.c
574
voltage->index = 0;
sys/dev/pci/drm/radeon/rv770_dpm.c
581
voltage->index = pi->vddc_table[i].vddc_index;
sys/dev/pci/drm/radeon/rv770_dpm.c
599
voltage->index = MVDD_HIGH_INDEX;
sys/dev/pci/drm/radeon/rv770_dpm.c
605
voltage->index = MVDD_LOW_INDEX;
sys/dev/pci/drm/radeon/rv770_dpm.c
608
voltage->index = MVDD_HIGH_INDEX;
sys/dev/pci/drm/radeon/rv770_smc.h
75
uint8_t index;
sys/dev/pci/drm/radeon/si_dpm.c
3196
u32 index, u16 *leakage_voltage)
sys/dev/pci/drm/radeon/si_dpm.c
3204
if ((index & 0xff00) != 0xff00)
sys/dev/pci/drm/radeon/si_dpm.c
3207
if ((index & 0xff) > SISLANDS_MAX_LEAKAGE_COUNT + 1)
sys/dev/pci/drm/radeon/si_dpm.c
3210
if (index < SISLANDS_LEAKAGE_INDEX0)
sys/dev/pci/drm/radeon/si_dpm.c
3214
if (si_pi->leakage_voltage.entries[i].leakage_index == index) {
sys/dev/pci/drm/radeon/si_dpm.c
4061
voltage->index = (u8)i;
sys/dev/pci/drm/radeon/si_dpm.c
4081
voltage->index = 0;
sys/dev/pci/drm/radeon/si_dpm.c
4083
voltage->index = (u8)(si_pi->mvdd_voltage_table.count) - 1;
sys/dev/pci/drm/radeon/si_dpm.c
4085
voltage->value = cpu_to_be16(si_pi->mvdd_voltage_table.entries[voltage->index].value);
sys/dev/pci/drm/radeon/si_dpm.c
4133
if ((u32)voltage->index < rdev->pm.dpm.dyn_state.cac_leakage_table.count)
sys/dev/pci/drm/radeon/si_dpm.c
4134
*std_voltage = rdev->pm.dpm.dyn_state.cac_leakage_table.entries[voltage->index].vddc;
sys/dev/pci/drm/radeon/si_dpm.c
4142
u16 value, u8 index,
sys/dev/pci/drm/radeon/si_dpm.c
4145
voltage->index = index;
sys/dev/pci/drm/radeon/si_dpm.c
4374
table->initialState.level.vddc.index,
sys/dev/pci/drm/radeon/si_dpm.c
4465
table->ACPIState.level.vddc.index,
sys/dev/pci/drm/radeon/si_dpm.c
4489
table->ACPIState.level.vddc.index,
sys/dev/pci/drm/radeon/si_dpm.c
5001
level->vddc.index, &level->std_vddc);
sys/dev/pci/drm/radeon/si_dpm.c
6676
struct radeon_ps *rps, int index,
sys/dev/pci/drm/radeon/si_dpm.c
6684
struct rv7xx_pl *pl = &ps->performance_levels[index];
sys/dev/pci/drm/radeon/si_dpm.c
6687
ps->performance_level_count = index + 1;
sys/dev/pci/drm/radeon/si_dpm.c
6715
index == 0) {
sys/dev/pci/drm/radeon/si_dpm.c
6762
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/si_dpm.c
6768
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/sislands_smc.h
131
uint8_t index;
sys/dev/pci/drm/radeon/sumo_dpm.c
1428
struct radeon_ps *rps, int index,
sys/dev/pci/drm/radeon/sumo_dpm.c
1433
struct sumo_pl *pl = &ps->levels[index];
sys/dev/pci/drm/radeon/sumo_dpm.c
1442
ps->num_levels = index + 1;
sys/dev/pci/drm/radeon/sumo_dpm.c
1461
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/sumo_dpm.c
1467
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/sumo_dpm.c
1661
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/radeon/sumo_dpm.c
1667
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/sumo_dpm.c
362
u32 index, u32 value)
sys/dev/pci/drm/radeon/sumo_dpm.c
364
if (index == 0)
sys/dev/pci/drm/radeon/sumo_dpm.c
366
else if (index == 1)
sys/dev/pci/drm/radeon/sumo_dpm.c
368
else if (index == 2)
sys/dev/pci/drm/radeon/sumo_dpm.c
370
else if (index == 3)
sys/dev/pci/drm/radeon/sumo_dpm.c
372
else if (index == 4)
sys/dev/pci/drm/radeon/sumo_dpm.c
374
else if (index == 5)
sys/dev/pci/drm/radeon/sumo_dpm.c
376
else if (index == 6)
sys/dev/pci/drm/radeon/sumo_dpm.c
378
else if (index == 7)
sys/dev/pci/drm/radeon/sumo_dpm.c
472
u32 index, u32 divider)
sys/dev/pci/drm/radeon/sumo_dpm.c
474
u32 reg_index = index / 4;
sys/dev/pci/drm/radeon/sumo_dpm.c
475
u32 field_index = index % 4;
sys/dev/pci/drm/radeon/sumo_dpm.c
492
u32 index, u32 divider)
sys/dev/pci/drm/radeon/sumo_dpm.c
499
dpm_ctrl &= ~(0x7 << (index * 3));
sys/dev/pci/drm/radeon/sumo_dpm.c
500
dpm_ctrl |= (divider << (index * 3));
sys/dev/pci/drm/radeon/sumo_dpm.c
506
u32 index, u32 divider)
sys/dev/pci/drm/radeon/sumo_dpm.c
513
dpm_ctrl &= ~(0x7 << (index * 3));
sys/dev/pci/drm/radeon/sumo_dpm.c
514
dpm_ctrl |= (divider << (index * 3));
sys/dev/pci/drm/radeon/sumo_dpm.c
519
static void sumo_set_vid(struct radeon_device *rdev, u32 index, u32 vid)
sys/dev/pci/drm/radeon/sumo_dpm.c
523
voltage_cntl &= ~(DPM_STATE0_LEVEL_MASK << (index * 2));
sys/dev/pci/drm/radeon/sumo_dpm.c
524
voltage_cntl |= (vid << (DPM_STATE0_LEVEL_SHIFT + index * 2));
sys/dev/pci/drm/radeon/sumo_dpm.c
528
static void sumo_set_allos_gnb_slow(struct radeon_device *rdev, u32 index, u32 gnb_slow)
sys/dev/pci/drm/radeon/sumo_dpm.c
538
cg_sclk_dpm_ctrl_3 &= ~(GNB_SLOW_FSTATE_0_MASK << index);
sys/dev/pci/drm/radeon/sumo_dpm.c
539
cg_sclk_dpm_ctrl_3 |= (temp << (GNB_SLOW_FSTATE_0_SHIFT + index));
sys/dev/pci/drm/radeon/sumo_dpm.c
545
struct sumo_pl *pl, u32 index)
sys/dev/pci/drm/radeon/sumo_dpm.c
557
sumo_set_divider_value(rdev, index, dividers.post_div);
sys/dev/pci/drm/radeon/sumo_dpm.c
559
sumo_set_vid(rdev, index, pl->vddc_index);
sys/dev/pci/drm/radeon/sumo_dpm.c
565
sumo_set_ss_dividers(rdev, index, pl->ss_divider_index);
sys/dev/pci/drm/radeon/sumo_dpm.c
566
sumo_set_ds_dividers(rdev, index, pl->ds_divider_index);
sys/dev/pci/drm/radeon/sumo_dpm.c
572
sumo_set_allos_gnb_slow(rdev, index, pl->allow_gnb_slow);
sys/dev/pci/drm/radeon/sumo_dpm.c
575
sumo_set_tdp_limit(rdev, index, pl->sclk_dpm_tdp_limit);
sys/dev/pci/drm/radeon/sumo_dpm.c
578
static void sumo_power_level_enable(struct radeon_device *rdev, u32 index, bool enable)
sys/dev/pci/drm/radeon/sumo_dpm.c
580
u32 reg_index = index / 4;
sys/dev/pci/drm/radeon/sumo_dpm.c
581
u32 field_index = index % 4;
sys/dev/pci/drm/radeon/sumo_dpm.c
724
static void sumo_set_forced_level(struct radeon_device *rdev, u32 index)
sys/dev/pci/drm/radeon/sumo_dpm.c
726
WREG32_P(CG_SCLK_DPM_CTRL_3, FORCE_SCLK_STATE(index), ~FORCE_SCLK_STATE_MASK);
sys/dev/pci/drm/radeon/sumo_dpm.h
215
void sumo_set_tdp_limit(struct radeon_device *rdev, u32 index, u32 tdp_limit);
sys/dev/pci/drm/radeon/sumo_smc.c
163
void sumo_set_tdp_limit(struct radeon_device *rdev, u32 index, u32 tdp_limit)
sys/dev/pci/drm/radeon/sumo_smc.c
170
switch (index) {
sys/dev/pci/drm/radeon/trinity_dpm.c
1384
struct trinity_ps *ps, u32 index)
sys/dev/pci/drm/radeon/trinity_dpm.c
1389
if (index == 0)
sys/dev/pci/drm/radeon/trinity_dpm.c
1394
if (index == 0)
sys/dev/pci/drm/radeon/trinity_dpm.c
1396
else if (ps->levels[index].sclk < 30000)
sys/dev/pci/drm/radeon/trinity_dpm.c
1660
struct radeon_ps *rps, int index,
sys/dev/pci/drm/radeon/trinity_dpm.c
1665
struct trinity_pl *pl = &ps->levels[index];
sys/dev/pci/drm/radeon/trinity_dpm.c
1673
ps->num_levels = index + 1;
sys/dev/pci/drm/radeon/trinity_dpm.c
1692
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
sys/dev/pci/drm/radeon/trinity_dpm.c
1698
if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/trinity_dpm.c
1804
int index = GetIndexIntoMasterTable(DATA, IntegratedSystemInfo);
sys/dev/pci/drm/radeon/trinity_dpm.c
1810
if (atom_parse_data_header(mode_info->atom_context, index, NULL,
sys/dev/pci/drm/radeon/trinity_dpm.c
536
u32 index, u32 sclk)
sys/dev/pci/drm/radeon/trinity_dpm.c
541
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/radeon/trinity_dpm.c
565
u32 index, u32 divider)
sys/dev/pci/drm/radeon/trinity_dpm.c
568
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/radeon/trinity_dpm.c
577
u32 index, u32 divider)
sys/dev/pci/drm/radeon/trinity_dpm.c
580
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/radeon/trinity_dpm.c
588
static void trinity_set_vid(struct radeon_device *rdev, u32 index, u32 vid)
sys/dev/pci/drm/radeon/trinity_dpm.c
593
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/radeon/trinity_dpm.c
607
u32 index, u32 gnb_slow)
sys/dev/pci/drm/radeon/trinity_dpm.c
610
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/radeon/trinity_dpm.c
619
u32 index, u32 force_nbp_state)
sys/dev/pci/drm/radeon/trinity_dpm.c
622
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/radeon/trinity_dpm.c
631
u32 index, u32 wm)
sys/dev/pci/drm/radeon/trinity_dpm.c
634
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/radeon/trinity_dpm.c
643
u32 index, u32 wm)
sys/dev/pci/drm/radeon/trinity_dpm.c
646
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/radeon/trinity_dpm.c
655
u32 index, u32 at)
sys/dev/pci/drm/radeon/trinity_dpm.c
658
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/radeon/trinity_dpm.c
667
struct trinity_pl *pl, u32 index)
sys/dev/pci/drm/radeon/trinity_dpm.c
671
if (index >= SUMO_MAX_HARDWARE_POWERLEVELS)
sys/dev/pci/drm/radeon/trinity_dpm.c
674
trinity_set_divider_value(rdev, index, pl->sclk);
sys/dev/pci/drm/radeon/trinity_dpm.c
675
trinity_set_vid(rdev, index, pl->vddc_index);
sys/dev/pci/drm/radeon/trinity_dpm.c
676
trinity_set_ss_dividers(rdev, index, pl->ss_divider_index);
sys/dev/pci/drm/radeon/trinity_dpm.c
677
trinity_set_ds_dividers(rdev, index, pl->ds_divider_index);
sys/dev/pci/drm/radeon/trinity_dpm.c
678
trinity_set_allos_gnb_slow(rdev, index, pl->allow_gnb_slow);
sys/dev/pci/drm/radeon/trinity_dpm.c
679
trinity_set_force_nbp_state(rdev, index, pl->force_nbp_state);
sys/dev/pci/drm/radeon/trinity_dpm.c
680
trinity_set_display_wm(rdev, index, pl->display_wm);
sys/dev/pci/drm/radeon/trinity_dpm.c
681
trinity_set_vce_wm(rdev, index, pl->vce_wm);
sys/dev/pci/drm/radeon/trinity_dpm.c
682
trinity_set_at(rdev, index, pi->at[index]);
sys/dev/pci/drm/radeon/trinity_dpm.c
686
u32 index, bool enable)
sys/dev/pci/drm/radeon/trinity_dpm.c
689
u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE;
sys/dev/pci/drm/scheduler/sched_entity.c
187
unsigned long index;
sys/dev/pci/drm/scheduler/sched_entity.c
190
xa_for_each(&job->dependencies, index, f) {
sys/dev/pci/drm/scheduler/sched_entity.c
208
xa_erase(&job->dependencies, index);
sys/dev/pci/drm/scheduler/sched_entity.c
606
unsigned long index;
sys/dev/pci/drm/scheduler/sched_entity.c
608
xa_for_each(&sched_job->dependencies, index, entry)
sys/dev/pci/drm/scheduler/sched_main.c
1024
unsigned long index;
sys/dev/pci/drm/scheduler/sched_main.c
1026
xa_for_each(&job->dependencies, index, f) {
sys/dev/pci/drm/scheduler/sched_main.c
1054
unsigned long index;
sys/dev/pci/drm/scheduler/sched_main.c
1071
xa_for_each(&job->dependencies, index, fence) {
sys/dev/pci/drm/scheduler/sched_main.c
892
unsigned long index;
sys/dev/pci/drm/scheduler/sched_main.c
903
xa_for_each(&job->dependencies, index, entry) {
sys/dev/pci/drm/scheduler/sched_main.c
909
xa_store(&job->dependencies, index, fence, GFP_KERNEL);
sys/dev/pci/eap.c
1283
switch (dip->index) {
sys/dev/pci/envy.c
1085
envy_cci_read(struct envy_softc *sc, int index)
sys/dev/pci/envy.c
1087
envy_ccs_write(sc, ENVY_CCI_INDEX, index);
sys/dev/pci/envy.c
1092
envy_cci_write(struct envy_softc *sc, int index, int data)
sys/dev/pci/envy.c
1094
envy_ccs_write(sc, ENVY_CCI_INDEX, index);
sys/dev/pci/envy.c
2266
if (dev->index < 0)
sys/dev/pci/envy.c
2269
idx = dev->index;
sys/dev/pci/esa.c
1031
sc->voice[i].index = i;
sys/dev/pci/esa.c
1059
esa_read_assp(struct esa_softc *sc, u_int16_t region, u_int16_t index)
sys/dev/pci/esa.c
1067
bus_space_write_2(iot, ioh, ESA_DSP_PORT_MEMORY_INDEX, index);
sys/dev/pci/esa.c
1074
esa_write_assp(struct esa_softc *sc, u_int16_t region, u_int16_t index,
sys/dev/pci/esa.c
1082
bus_space_write_2(iot, ioh, ESA_DSP_PORT_MEMORY_INDEX, index);
sys/dev/pci/esa.c
1441
u_int16_t val, int index)
sys/dev/pci/esa.c
1445
el->indexmap[index] = el->currlen;
sys/dev/pci/esa.c
1454
esa_remove_list(struct esa_voice *vc, struct esa_list *el, int index)
sys/dev/pci/esa.c
1459
int vindex = el->indexmap[index];
sys/dev/pci/esa.c
1463
el->indexmap[index] = -1;
sys/dev/pci/esa.c
1515
int i, index;
sys/dev/pci/esa.c
1517
index = 0;
sys/dev/pci/esa.c
1527
sc->savemem[index++] = esa_read_assp(sc,
sys/dev/pci/esa.c
1531
sc->savemem[index++] = esa_read_assp(sc,
sys/dev/pci/esa.c
1540
int i, index;
sys/dev/pci/esa.c
1543
index = 0;
sys/dev/pci/esa.c
1555
sc->savemem[index++]);
sys/dev/pci/esa.c
1559
sc->savemem[index++]);
sys/dev/pci/esa.c
266
vc->play.data_offset = ESA_DAC_DATA + (data_bytes * vc->index);
sys/dev/pci/esa.c
288
vc->rec.data_offset = ESA_DAC_DATA + (data_bytes * vc->index) +
sys/dev/pci/esa.c
357
sc->mixer_list.indexmap[vc->index]);
sys/dev/pci/esa.c
359
esa_remove_list(vc, &sc->mixer_list, vc->index);
sys/dev/pci/esa.c
360
esa_remove_list(vc, &sc->dma_list, vc->index);
sys/dev/pci/esa.c
361
esa_remove_list(vc, &sc->msrc_list, vc->index);
sys/dev/pci/esa.c
398
esa_remove_list(vc, &sc->adc1_list, vc->index + ESA_NUM_VOICES);
sys/dev/pci/esa.c
399
esa_remove_list(vc, &sc->dma_list, vc->index + ESA_NUM_VOICES);
sys/dev/pci/esa.c
400
esa_remove_list(vc, &sc->msrc_list, vc->index + ESA_NUM_VOICES);
sys/dev/pci/esa.c
505
int dac_data = ESA_DAC_DATA + (data_bytes * vc->index);
sys/dev/pci/esa.c
589
vc->index);
sys/dev/pci/esa.c
591
vc->index);
sys/dev/pci/esa.c
593
vc->index);
sys/dev/pci/esa.c
613
sc->mixer_list.indexmap[vc->index]);
sys/dev/pci/esa.c
636
int adc_data = ESA_DAC_DATA + (data_bytes * vc->index) +
sys/dev/pci/esa.c
645
if (vc->index > 0)
sys/dev/pci/esa.c
719
vc->index + ESA_NUM_VOICES);
sys/dev/pci/esa.c
721
vc->index + ESA_NUM_VOICES);
sys/dev/pci/esa.c
723
vc->index + ESA_NUM_VOICES);
sys/dev/pci/esavar.h
75
int index;
sys/dev/pci/esavar.h
96
int index; /* 0: play, 1: record */
sys/dev/pci/eso.c
1095
switch (dip->index) {
sys/dev/pci/eso.c
1743
di.index = ESO_RECORD_SOURCE;
sys/dev/pci/eso.c
1768
di.index = ESO_MONOOUT_SOURCE;
sys/dev/pci/eso.c
1796
di.index = ESO_MONOIN_BYPASS;
sys/dev/pci/eso.c
1824
di.index = ESO_MIC_PREAMP;
sys/dev/pci/if_age.c
1269
uint32_t status, index;
sys/dev/pci/if_age.c
1274
index = letoh32(rxrd->index);
sys/dev/pci/if_age.c
1275
rx_cons = AGE_RX_CONS(index);
sys/dev/pci/if_age.c
1276
nsegs = AGE_RX_NSEGS(index);
sys/dev/pci/if_age.c
1430
nsegs = AGE_RX_NSEGS(letoh32(rxrd->index));
sys/dev/pci/if_age.c
1448
rxrd->index = 0;
sys/dev/pci/if_agereg.h
565
uint32_t index;
sys/dev/pci/if_aq_pci.c
2650
aq_set_mac_addr(struct aq_softc *sc, int index, uint8_t *enaddr)
sys/dev/pci/if_aq_pci.c
2654
if (index >= AQ_HW_MAC_NUM)
sys/dev/pci/if_aq_pci.c
2660
RPF_L2UC_MSW_REG(index), RPF_L2UC_MSW_EN, 0);
sys/dev/pci/if_aq_pci.c
2669
AQ_WRITE_REG_BIT(sc, RPF_L2UC_MSW_REG(index), RPF_L2UC_MSW_EN, 0);
sys/dev/pci/if_aq_pci.c
2670
AQ_WRITE_REG(sc, RPF_L2UC_LSW_REG(index), l);
sys/dev/pci/if_aq_pci.c
2671
AQ_WRITE_REG_BIT(sc, RPF_L2UC_MSW_REG(index),
sys/dev/pci/if_aq_pci.c
2673
AQ_WRITE_REG_BIT(sc, RPF_L2UC_MSW_REG(index),
sys/dev/pci/if_aq_pci.c
2676
AQ_WRITE_REG_BIT(sc, RPF_L2UC_MSW_REG(index),
sys/dev/pci/if_aq_pci.c
2678
AQ_WRITE_REG_BIT(sc, RPF_L2UC_MSW_REG(index), RPF_L2UC_MSW_EN, 1);
sys/dev/pci/if_bnxt.c
2415
uint32_t index, int enable)
sys/dev/pci/if_bnxt.c
2420
val = index & DBC_DBC_INDEX_MASK;
sys/dev/pci/if_bnxt.c
2438
CMPL_DOORBELL_IDX_VALID | (index & CMPL_DOORBELL_IDX_MASK);
sys/dev/pci/if_bnxt.c
2452
uint32_t index)
sys/dev/pci/if_bnxt.c
2457
val = index & DBC_DBC_INDEX_MASK;
sys/dev/pci/if_bnxt.c
2472
CMPL_DOORBELL_IDX_VALID | (index & CMPL_DOORBELL_IDX_MASK);
sys/dev/pci/if_bnxt.c
2483
bnxt_write_rx_doorbell(struct bnxt_softc *sc, struct bnxt_ring *ring, int index)
sys/dev/pci/if_bnxt.c
2488
val = index & DBC_DBC_INDEX_MASK;
sys/dev/pci/if_bnxt.c
2501
uint32_t val = RX_DOORBELL_KEY_RX | index;
sys/dev/pci/if_bnxt.c
2516
bnxt_write_tx_doorbell(struct bnxt_softc *sc, struct bnxt_ring *ring, int index)
sys/dev/pci/if_bnxt.c
2521
val = index & DBC_DBC_INDEX_MASK;
sys/dev/pci/if_bnxt.c
2533
uint32_t val = TX_DOORBELL_KEY_TX | index;
sys/dev/pci/if_bnxtreg.h
54951
uint32_t index;
sys/dev/pci/if_bnxtreg.h
55054
uint32_t index;
sys/dev/pci/if_bnxtreg.h
56131
uint32_t index;
sys/dev/pci/if_bnxtreg.h
56221
uint32_t index;
sys/dev/pci/if_bnxtreg.h
59023
uint16_t index;
sys/dev/pci/if_bnxtreg.h
59111
uint16_t index;
sys/dev/pci/if_bnxtreg.h
59148
uint16_t index;
sys/dev/pci/if_bnxtreg.h
88414
uint32_t index;
sys/dev/pci/if_bnxtreg.h
89076
uint32_t index;
sys/dev/pci/if_bnxtreg.h
89553
uint32_t index;
sys/dev/pci/if_em.c
4090
uint32_t ivar, newitr, index;
sys/dev/pci/if_em.c
4114
index = que->me >> 1;
sys/dev/pci/if_em.c
4115
ivar = E1000_READ_REG_ARRAY(&sc->hw, IVAR0, index);
sys/dev/pci/if_em.c
4123
E1000_WRITE_REG_ARRAY(&sc->hw, IVAR0, index, ivar);
sys/dev/pci/if_em.c
4128
index = que->me >> 1;
sys/dev/pci/if_em.c
4129
ivar = E1000_READ_REG_ARRAY(&sc->hw, IVAR0, index);
sys/dev/pci/if_em.c
4137
E1000_WRITE_REG_ARRAY(&sc->hw, IVAR0, index, ivar);
sys/dev/pci/if_em.c
4149
index = que->me & 0x7; /* Each IVAR has two entries */
sys/dev/pci/if_em.c
4150
ivar = E1000_READ_REG_ARRAY(&sc->hw, IVAR0, index);
sys/dev/pci/if_em.c
4158
E1000_WRITE_REG_ARRAY(&sc->hw, IVAR0, index, ivar);
sys/dev/pci/if_em.c
4163
index = que->me & 0x7; /* Each IVAR has two entries */
sys/dev/pci/if_em.c
4164
ivar = E1000_READ_REG_ARRAY(&sc->hw, IVAR0, index);
sys/dev/pci/if_em.c
4172
E1000_WRITE_REG_ARRAY(&sc->hw, IVAR0, index, ivar);
sys/dev/pci/if_em_hw.c
10472
em_read_ich8_data(struct em_hw *hw, uint32_t index, uint32_t size,
sys/dev/pci/if_em_hw.c
10484
index > ICH_FLASH_LINEAR_ADDR_MASK)
sys/dev/pci/if_em_hw.c
10487
flash_linear_address = (ICH_FLASH_LINEAR_ADDR_MASK & index) +
sys/dev/pci/if_em_hw.c
10638
em_write_ich8_data(struct em_hw *hw, uint32_t index, uint32_t size,
sys/dev/pci/if_em_hw.c
10652
index > ICH_FLASH_LINEAR_ADDR_MASK)
sys/dev/pci/if_em_hw.c
10655
flash_linear_address = (ICH_FLASH_LINEAR_ADDR_MASK & index) +
sys/dev/pci/if_em_hw.c
10723
em_read_ich8_byte(struct em_hw *hw, uint32_t index, uint8_t *data)
sys/dev/pci/if_em_hw.c
10731
status = em_read_ich8_data(hw, index, 1, &word);
sys/dev/pci/if_em_hw.c
10748
em_verify_write_ich8_byte(struct em_hw *hw, uint32_t index, uint8_t byte)
sys/dev/pci/if_em_hw.c
10752
DEBUGOUT2("Byte := %2.2X Offset := %d\n", byte, index);
sys/dev/pci/if_em_hw.c
10754
error = em_write_ich8_byte(hw, index, byte);
sys/dev/pci/if_em_hw.c
10760
byte, index);
sys/dev/pci/if_em_hw.c
10761
error = em_write_ich8_byte(hw, index, byte);
sys/dev/pci/if_em_hw.c
10781
em_write_ich8_byte(struct em_hw *hw, uint32_t index, uint8_t data)
sys/dev/pci/if_em_hw.c
10785
status = em_write_ich8_data(hw, index, 1, word);
sys/dev/pci/if_em_hw.c
10798
em_read_ich8_dword(struct em_hw *hw, uint32_t index, uint32_t *data)
sys/dev/pci/if_em_hw.c
10801
status = em_read_ich8_data32(hw, index, data);
sys/dev/pci/if_em_hw.c
10813
em_read_ich8_word(struct em_hw *hw, uint32_t index, uint16_t *data)
sys/dev/pci/if_em_hw.c
10816
status = em_read_ich8_data(hw, index, 2, data);
sys/dev/pci/if_em_hw.c
8068
em_rar_set(struct em_hw *hw, uint8_t *addr, uint32_t index)
sys/dev/pci/if_em_hw.c
8108
E1000_WRITE_REG_ARRAY(hw, RA, (index << 1), rar_low);
sys/dev/pci/if_em_hw.c
8110
E1000_WRITE_REG_ARRAY(hw, RA, ((index << 1) + 1), rar_high);
sys/dev/pci/if_em_osdep.h
125
#define EM_READ_REG_ARRAY(hw, reg, index) \
sys/dev/pci/if_em_osdep.h
128
reg + ((index) << 2))
sys/dev/pci/if_em_osdep.h
130
#define EM_WRITE_REG_ARRAY(hw, reg, index, value) \
sys/dev/pci/if_em_osdep.h
133
reg + ((index) << 2), value)
sys/dev/pci/if_em_osdep.h
135
#define E1000_READ_REG_ARRAY(hw, reg, index) \
sys/dev/pci/if_em_osdep.h
138
E1000_REG_TR(hw, E1000_##reg) + ((index) << 2))
sys/dev/pci/if_em_osdep.h
140
#define E1000_WRITE_REG_ARRAY(hw, reg, index, value) \
sys/dev/pci/if_em_osdep.h
143
E1000_REG_TR(hw, E1000_##reg) + ((index) << 2), \
sys/dev/pci/if_em_osdep.h
149
#define E1000_WRITE_REG_ARRAY_BYTE(hw, reg, index, value) \
sys/dev/pci/if_em_osdep.h
152
E1000_REG_TR(hw, E1000_##reg) + index, \
sys/dev/pci/if_em_osdep.h
155
#define E1000_WRITE_REG_ARRAY_WORD(hw, reg, index, value) \
sys/dev/pci/if_em_osdep.h
158
E1000_REG_TR(hw, E1000_##reg) + (index << 1), \
sys/dev/pci/if_ice.c
15863
void *section, uint32_t index, uint32_t *offset))
sys/dev/pci/if_ice.c
15910
ice_label_enum_handler(uint32_t sect_type, void *section, uint32_t index,
sys/dev/pci/if_ice.c
15918
if (index > ICE_MAX_LABELS_IN_BUF)
sys/dev/pci/if_ice.c
15925
if (index >= le16toh(labels->count))
sys/dev/pci/if_ice.c
15928
return labels->label + index;
sys/dev/pci/if_ice.c
15973
ice_boost_tcam_handler(uint32_t sect_type, void *section, uint32_t index,
sys/dev/pci/if_ice.c
15984
if (index > ICE_MAX_BST_TCAMS_IN_BUF)
sys/dev/pci/if_ice.c
15991
if (index >= le16toh(boost->count))
sys/dev/pci/if_ice.c
15994
return boost->tcam + index;
sys/dev/pci/if_ice.c
17542
ice_sw_fv_handler(uint32_t sect_type, void *section, uint32_t index,
sys/dev/pci/if_ice.c
17550
if (index >= le16toh(fv_section->count))
sys/dev/pci/if_ice.c
17558
*offset = le16toh(fv_section->base_offset) + index;
sys/dev/pci/if_ice.c
17559
return fv_section->fv + index;
sys/dev/pci/if_ice.c
28758
#define ICE_PF_STAT_PFC(name, location, index) \
sys/dev/pci/if_ice.c
28759
ice_stat_update40(hw, name(lport, index), \
sys/dev/pci/if_ice.c
28761
&prev_ps->location[index], &cur_ps->location[index])
sys/dev/pci/if_ice.c
29073
uint8_t index, errtype, objtype;
sys/dev/pci/if_ice.c
29079
index = (uint8_t)(info & PFHMC_ERRORINFO_PMF_INDEX_M);
sys/dev/pci/if_ice.c
29089
sc->sc_dev.dv_xname, isvf ? "VF" : "PF", index,
sys/dev/pci/if_ice.c
4810
uint8_t index = (uint8_t)(cap - ICE_AQC_CAPS_EXT_TOPO_DEV_IMG0);
sys/dev/pci/if_ice.c
4812
caps->ext_topo_dev_img_ver_high[index] = number;
sys/dev/pci/if_ice.c
4813
caps->ext_topo_dev_img_ver_low[index] = logical_id;
sys/dev/pci/if_ice.c
4814
caps->ext_topo_dev_img_part_num[index] =
sys/dev/pci/if_ice.c
4817
caps->ext_topo_dev_img_load_en[index] =
sys/dev/pci/if_ice.c
4819
caps->ext_topo_dev_img_prog_en[index] =
sys/dev/pci/if_ice.c
4821
caps->ext_topo_dev_img_ver_schema[index] =
sys/dev/pci/if_ice.c
4825
prefix, index,
sys/dev/pci/if_ice.c
4826
caps->ext_topo_dev_img_ver_high[index]);
sys/dev/pci/if_ice.c
4829
prefix, index,
sys/dev/pci/if_ice.c
4830
caps->ext_topo_dev_img_ver_low[index]);
sys/dev/pci/if_ice.c
4833
prefix, index,
sys/dev/pci/if_ice.c
4834
caps->ext_topo_dev_img_part_num[index]);
sys/dev/pci/if_ice.c
4837
prefix, index,
sys/dev/pci/if_ice.c
4838
caps->ext_topo_dev_img_load_en[index]);
sys/dev/pci/if_ice.c
4841
prefix, index,
sys/dev/pci/if_ice.c
4842
caps->ext_topo_dev_img_prog_en[index]);
sys/dev/pci/if_ice.c
4845
prefix, index,
sys/dev/pci/if_ice.c
4846
caps->ext_topo_dev_img_ver_schema[index]);
sys/dev/pci/if_ice.c
8183
s_rule->index = htole16(f_info->fltr_rule_id);
sys/dev/pci/if_ice.c
8386
f_entry->fltr_info.fltr_rule_id = le16toh(s_rule->index);
sys/dev/pci/if_ice.c
8387
fm_entry->fltr_info.fltr_rule_id = le16toh(s_rule->index);
sys/dev/pci/if_ice.c
8555
s_rule->index = htole16(vsi_list_id);
sys/dev/pci/if_ice.c
8611
s_rule->index = htole16(f_info->fltr_rule_id);
sys/dev/pci/if_ice.c
8702
lg_act->index = htole16(l_id);
sys/dev/pci/if_ice.c
8745
rx_tx->index = htole16(m_ent->fltr_info.fltr_rule_id);
sys/dev/pci/if_ice.c
9064
f_info->fltr_rule_id = le16toh(r_iter->index);
sys/dev/pci/if_icereg.h
10367
uint16_t index; /* The index of the rule in the lookup table */
sys/dev/pci/if_icereg.h
10382
uint16_t index; /* Index in large action table */
sys/dev/pci/if_icereg.h
10444
uint16_t index; /* Index of VSI/Prune list */
sys/dev/pci/if_icereg.h
10451
uint16_t index;
sys/dev/pci/if_icereg.h
11361
uint8_t index;
sys/dev/pci/if_icevar.h
3402
void *(*handler)(uint32_t sect_type, void *section, uint32_t index,
sys/dev/pci/if_igc.c
1737
uint32_t ivar, index;
sys/dev/pci/if_igc.c
1739
index = entry >> 1;
sys/dev/pci/if_igc.c
1740
ivar = IGC_READ_REG_ARRAY(hw, IGC_IVAR0, index);
sys/dev/pci/if_igc.c
1758
IGC_WRITE_REG_ARRAY(hw, IGC_IVAR0, index, ivar);
sys/dev/pci/if_iwireg.h
366
uint32_t index;
sys/dev/pci/if_iwm.c
3255
uint16_t sn = 0, index = 0;
sys/dev/pci/if_iwm.c
3268
index = (buf->head_sn + i) % buf->buf_size;
sys/dev/pci/if_iwm.c
3270
if (ml_empty(&entries[index].frames)) {
sys/dev/pci/if_iwm.c
3278
timeradd(&entries[index].reorder_time, &timeout, &expiry);
sys/dev/pci/if_iwm.c
5043
int index = ssn % reorder_buf->buf_size;
sys/dev/pci/if_iwm.c
5050
chanidx = entries[index].chanidx;
sys/dev/pci/if_iwm.c
5051
rx_pkt_status = entries[index].rx_pkt_status;
sys/dev/pci/if_iwm.c
5052
is_shortpre = entries[index].is_shortpre;
sys/dev/pci/if_iwm.c
5053
rate_n_flags = entries[index].rate_n_flags;
sys/dev/pci/if_iwm.c
5054
device_timestamp = entries[index].device_timestamp;
sys/dev/pci/if_iwm.c
5055
rxi = &entries[index].rxi;
sys/dev/pci/if_iwm.c
5062
while ((m = ml_dequeue(&entries[index].frames)) != NULL) {
sys/dev/pci/if_iwm.c
5160
int index;
sys/dev/pci/if_iwm.c
5276
index = sn % buffer->buf_size;
sys/dev/pci/if_iwm.c
5286
if (!ml_empty(&entries[index].frames)) {
sys/dev/pci/if_iwm.c
5297
entries[index].chanidx = chanidx;
sys/dev/pci/if_iwm.c
5298
entries[index].is_shortpre = is_shortpre;
sys/dev/pci/if_iwm.c
5299
entries[index].rate_n_flags = rate_n_flags;
sys/dev/pci/if_iwm.c
5300
entries[index].device_timestamp = device_timestamp;
sys/dev/pci/if_iwm.c
5301
memcpy(&entries[index].rxi, rxi, sizeof(entries[index].rxi));
sys/dev/pci/if_iwm.c
5305
ml_enqueue(&entries[index].frames, m);
sys/dev/pci/if_iwm.c
5307
getmicrouptime(&entries[index].reorder_time);
sys/dev/pci/if_iwx.c
4989
int index = ssn % reorder_buf->buf_size;
sys/dev/pci/if_iwx.c
4996
chanidx = entries[index].chanidx;
sys/dev/pci/if_iwx.c
4997
rx_pkt_status = entries[index].rx_pkt_status;
sys/dev/pci/if_iwx.c
4998
is_shortpre = entries[index].is_shortpre;
sys/dev/pci/if_iwx.c
4999
rate_n_flags = entries[index].rate_n_flags;
sys/dev/pci/if_iwx.c
5000
device_timestamp = entries[index].device_timestamp;
sys/dev/pci/if_iwx.c
5001
rxi = &entries[index].rxi;
sys/dev/pci/if_iwx.c
5008
while ((m = ml_dequeue(&entries[index].frames)) != NULL) {
sys/dev/pci/if_iwx.c
5049
int index;
sys/dev/pci/if_iwx.c
5145
index = sn % buffer->buf_size;
sys/dev/pci/if_iwx.c
5147
if (ml_empty(&entries[index].frames)) {
sys/dev/pci/if_iwx.c
5149
entries[index].chanidx = chanidx;
sys/dev/pci/if_iwx.c
5150
entries[index].is_shortpre = is_shortpre;
sys/dev/pci/if_iwx.c
5151
entries[index].rate_n_flags = rate_n_flags;
sys/dev/pci/if_iwx.c
5152
entries[index].device_timestamp = device_timestamp;
sys/dev/pci/if_iwx.c
5153
memcpy(&entries[index].rxi, rxi, sizeof(entries[index].rxi));
sys/dev/pci/if_iwx.c
5157
ml_enqueue(&entries[index].frames, m);
sys/dev/pci/if_ix.c
3564
uint32_t ivar, index;
sys/dev/pci/if_ix.c
3575
index = (entry >> 2) & 0x1F;
sys/dev/pci/if_ix.c
3576
ivar = IXGBE_READ_REG(hw, IXGBE_IVAR(index));
sys/dev/pci/if_ix.c
3579
IXGBE_WRITE_REG(&sc->hw, IXGBE_IVAR(index), ivar);
sys/dev/pci/if_ix.c
3588
index = (entry & 1) * 8;
sys/dev/pci/if_ix.c
3590
ivar &= ~((uint32_t)0xFF << index);
sys/dev/pci/if_ix.c
3591
ivar |= ((uint32_t)vector << index);
sys/dev/pci/if_ix.c
3594
index = (16 * (entry & 1)) + (8 * type);
sys/dev/pci/if_ix.c
3596
ivar &= ~((uint32_t)0xFF << index);
sys/dev/pci/if_ix.c
3597
ivar |= ((uint32_t)vector << index);
sys/dev/pci/if_ixl.c
5354
uint32_t index;
sys/dev/pci/if_ixl.c
5370
r = c->c_base + (state->index * 8);
sys/dev/pci/if_ixl.c
5427
const struct ixl_counter *counters, size_t n, uint32_t index)
sys/dev/pci/if_ixl.c
5458
state->index = index;
sys/dev/pci/if_ixv.c
1141
uint32_t ivar, index;
sys/dev/pci/if_ixv.c
1151
index = (16 * (entry & 1)) + (8 * type);
sys/dev/pci/if_ixv.c
1153
ivar &= ~(0xFF << index);
sys/dev/pci/if_ixv.c
1154
ivar |= (vector << index);
sys/dev/pci/if_mcx.c
5904
mcx_set_flow_table_entry_mac(struct mcx_softc *sc, int group, int index,
sys/dev/pci/if_mcx.c
5938
mbin->cmd_flow_index = htobe32(mfg->g_start + index);
sys/dev/pci/if_mcx.c
5981
mcx_set_flow_table_entry_proto(struct mcx_softc *sc, int group, int index,
sys/dev/pci/if_mcx.c
6015
mbin->cmd_flow_index = htobe32(mfg->g_start + index);
sys/dev/pci/if_mcx.c
6055
mcx_delete_flow_table_entry(struct mcx_softc *sc, int group, int index)
sys/dev/pci/if_mcx.c
6086
mbin->cmd_flow_index = htobe32(mfg->g_start + index);
sys/dev/pci/if_mcx.c
6104
DEVNAME(sc), group, index, out->cmd_status,
sys/dev/pci/if_mcx.c
6189
mcx_dump_flow_table_entry(struct mcx_softc *sc, int flow_table_id, int index)
sys/dev/pci/if_mcx.c
6223
mbin->cmd_flow_index = htobe32(index);
sys/dev/pci/if_mcx.c
6419
mcx_dump_flow_counter(struct mcx_softc *sc, int index, const char *what)
sys/dev/pci/if_mcx.c
6445
mbin->cmd_flow_counter_id = htobe16(sc->sc_flow_counter_id[index]);
sys/dev/pci/if_ngbe.c
3855
uint32_t ivar, index;
sys/dev/pci/if_ngbe.c
3861
index = 0;
sys/dev/pci/if_ngbe.c
3863
ivar &= ~((uint32_t)0xff << index);
sys/dev/pci/if_ngbe.c
3864
ivar |= ((uint32_t)vector << index);
sys/dev/pci/if_ngbe.c
3868
index = ((16 * (entry & 1)) + (8 * type));
sys/dev/pci/if_ngbe.c
3870
ivar &= ~((uint32_t)0xff << index);
sys/dev/pci/if_ngbe.c
3871
ivar |= ((uint32_t)vector << index);
sys/dev/pci/if_ngbe.c
3950
ngbe_set_rar(struct ngbe_softc *sc, uint32_t index, uint8_t *addr,
sys/dev/pci/if_ngbe.c
3958
if (index >= rar_entries) {
sys/dev/pci/if_ngbe.c
3960
DEVNAME(sc), index);
sys/dev/pci/if_ngbe.c
3965
NGBE_WRITE_REG(hw, NGBE_PSR_MAC_SWC_IDX, index);
sys/dev/pci/if_nge.c
569
int bit, index;
sys/dev/pci/if_nge.c
609
index = (h >> 4) & 0x7F;
sys/dev/pci/if_nge.c
612
NGE_FILTADDR_MCAST_LO + (index * 2));
sys/dev/pci/if_oce.c
1071
rq->ring->index = 0;
sys/dev/pci/if_oce.c
166
int index;
sys/dev/pci/if_oce.c
2603
int index = ring->index;
sys/dev/pci/if_oce.c
2605
if (++ring->index == ring->nitems)
sys/dev/pci/if_oce.c
2606
ring->index = 0;
sys/dev/pci/if_oce.c
2607
return ((void *)(ring->dma.vaddr + index * ring->isize));
sys/dev/pci/if_oce.c
2613
return ((void *)(ring->dma.vaddr + ring->index * ring->isize));
sys/dev/pci/if_oce.c
2619
if (++ring->index == ring->nitems)
sys/dev/pci/if_oce.c
2620
ring->index = 0;
sys/dev/pci/if_oce.c
2621
return ((void *)(ring->dma.vaddr + ring->index * ring->isize));
sys/dev/pci/if_sis.c
786
int bit, index;
sys/dev/pci/if_sis.c
831
index = h >> 3;
sys/dev/pci/if_sis.c
834
CSR_WRITE_4(sc, SIS_RXFILT_CTL, NS_FILTADDR_FMEM_LO + index);
sys/dev/pci/if_wpi.c
2320
idx = interpolate(pwr, sample[0].power, sample[0].index,
sys/dev/pci/if_wpi.c
2321
sample[1].power, sample[1].index, 19);
sys/dev/pci/if_wpi.c
968
group->samples[i].index = rgroup.samples[i].index;
sys/dev/pci/if_wpi.c
972
group->samples[i].index, group->samples[i].power));
sys/dev/pci/if_wpireg.h
662
uint8_t index;
sys/dev/pci/if_wpivar.h
103
uint8_t index;
sys/dev/pci/igc_api.c
303
igc_rar_set(struct igc_hw *hw, uint8_t *addr, uint32_t index)
sys/dev/pci/igc_api.c
306
return hw->mac.ops.rar_set(hw, addr, index);
sys/dev/pci/igc_mac.c
162
igc_rar_set_generic(struct igc_hw *hw, uint8_t *addr, uint32_t index)
sys/dev/pci/igc_mac.c
184
IGC_WRITE_REG(hw, IGC_RAL(index), rar_low);
sys/dev/pci/igc_mac.c
186
IGC_WRITE_REG(hw, IGC_RAH(index), rar_high);
sys/dev/pci/ixgb_hw.c
593
ixgb_rar_set(struct ixgb_hw *hw, uint8_t *addr, uint32_t index)
sys/dev/pci/ixgb_hw.c
610
IXGB_WRITE_REG_ARRAY(hw, RA, (index << 1), rar_low);
sys/dev/pci/ixgb_hw.c
611
IXGB_WRITE_REG_ARRAY(hw, RA, ((index << 1) + 1), rar_high);
sys/dev/pci/ixgb_hw.h
820
extern void ixgb_rar_set(struct ixgb_hw *hw, uint8_t *addr, uint32_t index);
sys/dev/pci/ixgbe.c
1908
int32_t ixgbe_set_rar_generic(struct ixgbe_hw *hw, uint32_t index, uint8_t *addr,
sys/dev/pci/ixgbe.c
1917
if (index >= rar_entries) {
sys/dev/pci/ixgbe.c
1919
"RAR index %d is out of range.\n", index);
sys/dev/pci/ixgbe.c
1924
hw->mac.ops.set_vmdq(hw, index, vmdq);
sys/dev/pci/ixgbe.c
1939
rar_high = IXGBE_READ_REG(hw, IXGBE_RAH(index));
sys/dev/pci/ixgbe.c
1946
IXGBE_WRITE_REG(hw, IXGBE_RAL(index), rar_low);
sys/dev/pci/ixgbe.c
1947
IXGBE_WRITE_REG(hw, IXGBE_RAH(index), rar_high);
sys/dev/pci/ixgbe.c
1959
int32_t ixgbe_clear_rar_generic(struct ixgbe_hw *hw, uint32_t index)
sys/dev/pci/ixgbe.c
1967
if (index >= rar_entries) {
sys/dev/pci/ixgbe.c
1969
"RAR index %d is out of range.\n", index);
sys/dev/pci/ixgbe.c
1978
rar_high = IXGBE_READ_REG(hw, IXGBE_RAH(index));
sys/dev/pci/ixgbe.c
1981
IXGBE_WRITE_REG(hw, IXGBE_RAL(index), 0);
sys/dev/pci/ixgbe.c
1982
IXGBE_WRITE_REG(hw, IXGBE_RAH(index), rar_high);
sys/dev/pci/ixgbe.c
1985
hw->mac.ops.clear_vmdq(hw, index, IXGBE_CLEAR_VMDQ_ALL);
sys/dev/pci/ixgbe.c
2917
int32_t ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, uint32_t index)
sys/dev/pci/ixgbe.c
2928
if (index > 3)
sys/dev/pci/ixgbe.c
2953
led_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/pci/ixgbe.c
2954
led_reg |= IXGBE_LED_BLINK(index);
sys/dev/pci/ixgbe.c
2967
int32_t ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, uint32_t index)
sys/dev/pci/ixgbe.c
2976
if (index > 3)
sys/dev/pci/ixgbe.c
2990
led_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/pci/ixgbe.c
2991
led_reg &= ~IXGBE_LED_BLINK(index);
sys/dev/pci/ixgbe.c
2992
led_reg |= IXGBE_LED_LINK_ACTIVE << IXGBE_LED_MODE_SHIFT(index);
sys/dev/pci/ixgbe.c
4395
int32_t ixgbe_set_rar(struct ixgbe_hw *hw, uint32_t index, uint8_t *addr,
sys/dev/pci/ixgbe.c
4399
return hw->mac.ops.set_rar(hw, index, addr, vmdq, enable_addr);
sys/dev/pci/ixgbe.c
4924
int32_t ixgbe_check_for_bit_pf(struct ixgbe_hw *hw, uint32_t mask, int32_t index)
sys/dev/pci/ixgbe.c
4926
uint32_t pfmbicr = IXGBE_READ_REG(hw, IXGBE_PFMBICR(index));
sys/dev/pci/ixgbe.c
4944
int32_t index = IXGBE_PFMBICR_INDEX(vf_id);
sys/dev/pci/ixgbe.c
4948
index))
sys/dev/pci/ixgbe.c
4957
int32_t index = IXGBE_PFMBICR_INDEX(vf_id);
sys/dev/pci/ixgbe.c
4960
pfmbicr = IXGBE_READ_REG(hw, IXGBE_PFMBICR(index));
sys/dev/pci/ixgbe.c
4965
IXGBE_WRITE_REG(hw, IXGBE_PFMBICR(index),
sys/dev/pci/ixgbe.c
4972
int32_t index = IXGBE_PFMBICR_INDEX(vf_id);
sys/dev/pci/ixgbe.c
4975
pfmbicr = IXGBE_READ_REG(hw, IXGBE_PFMBICR(index));
sys/dev/pci/ixgbe.c
4980
IXGBE_WRITE_REG(hw, IXGBE_PFMBICR(index),
sys/dev/pci/ixgbe.c
4994
int32_t index = IXGBE_PFMBICR_INDEX(vf_id);
sys/dev/pci/ixgbe.c
5000
index)) {
sys/dev/pci/ixgbe.c
5019
uint32_t index = IXGBE_PFVFLRE_INDEX(vf_id);
sys/dev/pci/ixgbe.c
5027
vflre = IXGBE_READ_REG(hw, IXGBE_PFVFLRE(index));
sys/dev/pci/ixgbe.c
5033
vflre = IXGBE_READ_REG(hw, IXGBE_PFVFLREC(index));
sys/dev/pci/ixgbe.c
5041
IXGBE_WRITE_REG(hw, IXGBE_PFVFLREC(index), (1 << vf_shift));
sys/dev/pci/ixgbe.c
74
int32_t index);
sys/dev/pci/ixgbe.c
871
int32_t ixgbe_led_on_generic(struct ixgbe_hw *hw, uint32_t index)
sys/dev/pci/ixgbe.c
877
if (index > 3)
sys/dev/pci/ixgbe.c
881
led_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/pci/ixgbe.c
882
led_reg |= IXGBE_LED_ON << IXGBE_LED_MODE_SHIFT(index);
sys/dev/pci/ixgbe.c
894
int32_t ixgbe_led_off_generic(struct ixgbe_hw *hw, uint32_t index)
sys/dev/pci/ixgbe.c
900
if (index > 3)
sys/dev/pci/ixgbe.c
904
led_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/pci/ixgbe.c
905
led_reg |= IXGBE_LED_OFF << IXGBE_LED_MODE_SHIFT(index);
sys/dev/pci/ixgbe.h
176
int32_t ixgbe_led_on_generic(struct ixgbe_hw *hw, uint32_t index);
sys/dev/pci/ixgbe.h
177
int32_t ixgbe_led_off_generic(struct ixgbe_hw *hw, uint32_t index);
sys/dev/pci/ixgbe.h
191
int32_t ixgbe_set_rar_generic(struct ixgbe_hw *hw, uint32_t index, uint8_t *addr, uint32_t vmdq,
sys/dev/pci/ixgbe.h
193
int32_t ixgbe_clear_rar_generic(struct ixgbe_hw *hw, uint32_t index);
sys/dev/pci/ixgbe.h
216
int32_t ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, uint32_t index);
sys/dev/pci/ixgbe.h
217
int32_t ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, uint32_t index);
sys/dev/pci/ixgbe.h
274
int32_t ixgbe_set_rar(struct ixgbe_hw *hw, uint32_t index, uint8_t *addr,
sys/dev/pci/ixgbe.h
371
int32_t ixgbe_set_rar_vf(struct ixgbe_hw *hw, uint32_t index, uint8_t *addr, uint32_t vmdq,
sys/dev/pci/ixgbe.h
373
int32_t ixgbevf_set_uc_addr_vf(struct ixgbe_hw *hw, uint32_t index, uint8_t *addr);
sys/dev/pci/ixgbe_vf.c
339
int32_t ixgbe_set_rar_vf(struct ixgbe_hw *hw, uint32_t index, uint8_t *addr,
sys/dev/pci/ixgbe_vf.c
540
int32_t ixgbevf_set_uc_addr_vf(struct ixgbe_hw *hw, uint32_t index, uint8_t *addr)
sys/dev/pci/ixgbe_vf.c
553
msgbuf[0] |= index << IXGBE_VT_MSGINFO_SHIFT;
sys/dev/pci/ixgbe_x540.c
73
int32_t ixgbe_blink_led_start_X540(struct ixgbe_hw *hw, uint32_t index);
sys/dev/pci/ixgbe_x540.c
74
int32_t ixgbe_blink_led_stop_X540(struct ixgbe_hw *hw, uint32_t index);
sys/dev/pci/ixgbe_x540.c
928
int32_t ixgbe_blink_led_start_X540(struct ixgbe_hw *hw, uint32_t index)
sys/dev/pci/ixgbe_x540.c
937
if (index > 3)
sys/dev/pci/ixgbe_x540.c
953
ledctl_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/pci/ixgbe_x540.c
954
ledctl_reg |= IXGBE_LED_BLINK(index);
sys/dev/pci/ixgbe_x540.c
969
int32_t ixgbe_blink_led_stop_X540(struct ixgbe_hw *hw, uint32_t index)
sys/dev/pci/ixgbe_x540.c
974
if (index > 3)
sys/dev/pci/ixgbe_x540.c
981
ledctl_reg &= ~IXGBE_LED_MODE_MASK(index);
sys/dev/pci/ixgbe_x540.c
982
ledctl_reg |= IXGBE_LED_LINK_ACTIVE << IXGBE_LED_MODE_SHIFT(index);
sys/dev/pci/ixgbe_x540.c
983
ledctl_reg &= ~IXGBE_LED_BLINK(index);
sys/dev/pci/pciide.c
6324
pdc268_config_read(struct channel_softc *chp, int index)
sys/dev/pci/pciide.c
6331
PDC268_INDEX(channel), index);
sys/dev/pci/sv.c
870
if (dip->index < 0)
sys/dev/pci/sv.c
874
if (dip->index <= SV_LAST_CLASS) {
sys/dev/pci/sv.c
876
dip->mixer_class = dip->index;
sys/dev/pci/sv.c
878
strlcpy(dip->label.name, mixer_classes[dip->index],
sys/dev/pci/sv.c
883
if (dip->index >= SV_FIRST_MIXER &&
sys/dev/pci/sv.c
884
dip->index <= SV_LAST_MIXER) {
sys/dev/pci/sv.c
885
int off = dip->index - SV_FIRST_MIXER;
sys/dev/pci/sv.c
895
dip->next = dip->index + 1;
sys/dev/pci/sv.c
906
dip->prev = dip->index - 1;
sys/dev/pci/sv.c
923
switch (dip->index) {
sys/dev/pci/viapm.c
707
val_to_uV(unsigned int val, int index)
sys/dev/pci/viapm.c
712
KASSERT(index >= 0 && index <= 4);
sys/dev/pci/viapm.c
714
return (25LL * val + 133) * mult[index] / 2628;
sys/dev/pci/virtio_pci.c
908
virtio_pci_read_device_config_1(struct virtio_softc *vsc, int index)
sys/dev/pci/virtio_pci.c
911
return bus_space_read_1(sc->sc_devcfg_iot, sc->sc_devcfg_ioh, index);
sys/dev/pci/virtio_pci.c
915
virtio_pci_read_device_config_2(struct virtio_softc *vsc, int index)
sys/dev/pci/virtio_pci.c
918
return bus_space_read_2(sc->sc_devcfg_iot, sc->sc_devcfg_ioh, index);
sys/dev/pci/virtio_pci.c
922
virtio_pci_read_device_config_4(struct virtio_softc *vsc, int index)
sys/dev/pci/virtio_pci.c
925
return bus_space_read_4(sc->sc_devcfg_iot, sc->sc_devcfg_ioh, index);
sys/dev/pci/virtio_pci.c
929
virtio_pci_read_device_config_8(struct virtio_softc *vsc, int index)
sys/dev/pci/virtio_pci.c
935
index + sizeof(uint32_t));
sys/dev/pci/virtio_pci.c
937
r += bus_space_read_4(sc->sc_devcfg_iot, sc->sc_devcfg_ioh, index);
sys/dev/pci/virtio_pci.c
942
virtio_pci_write_device_config_1(struct virtio_softc *vsc, int index,
sys/dev/pci/virtio_pci.c
946
bus_space_write_1(sc->sc_devcfg_iot, sc->sc_devcfg_ioh, index, value);
sys/dev/pci/virtio_pci.c
950
virtio_pci_write_device_config_2(struct virtio_softc *vsc, int index,
sys/dev/pci/virtio_pci.c
954
bus_space_write_2(sc->sc_devcfg_iot, sc->sc_devcfg_ioh, index, value);
sys/dev/pci/virtio_pci.c
959
int index, uint32_t value)
sys/dev/pci/virtio_pci.c
962
bus_space_write_4(sc->sc_devcfg_iot, sc->sc_devcfg_ioh, index, value);
sys/dev/pci/virtio_pci.c
967
int index, uint64_t value)
sys/dev/pci/virtio_pci.c
971
index, value & 0xffffffff);
sys/dev/pci/virtio_pci.c
973
index + sizeof(uint32_t), value >> 32);
sys/dev/pci/xspd.c
97
xhp.index = HVM_PARAM_CALLBACK_IRQ;
sys/dev/pcmcia/if_malo.c
1470
cmalo_cmd_set_wep(struct malo_softc *sc, uint16_t index,
sys/dev/pcmcia/if_malo.c
1487
body->key_index = htole16(index);
sys/dev/pv/hypervic.c
654
kvp_pool_export(struct kvp_pool *kvpl, uint32_t index, char *key,
sys/dev/pv/hypervic.c
662
if (kpe->kpe_index == index)
sys/dev/pv/virtio.c
357
virtio_alloc_vq(struct virtio_softc *sc, struct virtqueue *vq, int index,
sys/dev/pv/virtio.c
367
vq_size = virtio_read_queue_size(sc, index);
sys/dev/pv/virtio.c
369
printf("virtqueue not exist, index %d for %s\n", index, name);
sys/dev/pv/virtio.c
401
index, name, r);
sys/dev/pv/virtio.c
407
printf("virtqueue %d for %s map failed, error %d\n", index,
sys/dev/pv/virtio.c
415
"error %d\n", index, name, r);
sys/dev/pv/virtio.c
422
index, name, r);
sys/dev/pv/virtio.c
430
vq->vq_index = index;
sys/dev/pv/virtio.c
458
allocsize, index, name, vq_size);
sys/dev/pv/xen.c
534
xhp.index = HVM_PARAM_CALLBACK_IRQ;
sys/dev/pv/xenreg.h
264
uint32_t index; /* IN */
sys/dev/pv/xenstore.c
214
xhv.index = HVM_PARAM_STORE_EVTCHN;
sys/dev/pv/xenstore.c
226
xhv.index = HVM_PARAM_STORE_PFN;
sys/dev/rasops/rasops.c
1822
font->index = -1; /* do not store in wsdisplay_softc */
sys/dev/rasops/rasops.c
1909
if (font->index < 0)
sys/dev/rasops/rasops.c
1913
ctx.cnt = font->index;
sys/dev/rasops/rasops.c
1920
idx = font->index;
sys/dev/rasops/rasops.c
1922
font->index = idx;
sys/dev/sbus/agten.c
303
agten_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/agten.c
307
sc->sc_cmap.cm_red[index] = r;
sys/dev/sbus/agten.c
308
sc->sc_cmap.cm_green[index] = g;
sys/dev/sbus/agten.c
309
sc->sc_cmap.cm_blue[index] = b;
sys/dev/sbus/agten.c
311
agten_loadcmap(sc, index, 1);
sys/dev/sbus/agten.c
317
u_int index = rcm->index, count = rcm->count;
sys/dev/sbus/agten.c
320
if (index >= 256 || count > 256 - index)
sys/dev/sbus/agten.c
323
if ((error = copyout(&cm->cm_red[index], rcm->red, count)) != 0)
sys/dev/sbus/agten.c
325
if ((error = copyout(&cm->cm_green[index], rcm->green, count)) != 0)
sys/dev/sbus/agten.c
327
if ((error = copyout(&cm->cm_blue[index], rcm->blue, count)) != 0)
sys/dev/sbus/agten.c
336
u_int index = rcm->index, count = rcm->count;
sys/dev/sbus/agten.c
339
if (index >= 256 || count > 256 - index)
sys/dev/sbus/agten.c
342
if ((error = copyin(rcm->red, &cm->cm_red[index], count)) != 0)
sys/dev/sbus/agten.c
344
if ((error = copyin(rcm->green, &cm->cm_green[index], count)) != 0)
sys/dev/sbus/agten.c
346
if ((error = copyin(rcm->blue, &cm->cm_blue[index], count)) != 0)
sys/dev/sbus/cgsix.c
293
cgsix_loadcmap_deferred(sc, cm->index, cm->count);
sys/dev/sbus/cgsix.c
295
cgsix_loadcmap_immediate(sc, cm->index, cm->count);
sys/dev/sbus/cgsix.c
313
curs->cmap.index = 0;
sys/dev/sbus/cgsix.c
562
u_int index = rcm->index, count = rcm->count, i;
sys/dev/sbus/cgsix.c
565
if (index >= 256 || count > 256 - index)
sys/dev/sbus/cgsix.c
568
if ((error = copyout(&bcm->cm_map[index + i][0],
sys/dev/sbus/cgsix.c
571
if ((error = copyout(&bcm->cm_map[index + i][1],
sys/dev/sbus/cgsix.c
574
if ((error = copyout(&bcm->cm_map[index + i][2],
sys/dev/sbus/cgsix.c
584
u_int index = rcm->index, count = rcm->count, i;
sys/dev/sbus/cgsix.c
587
if (index >= 256 || count > 256 - index)
sys/dev/sbus/cgsix.c
591
&bcm->cm_map[index + i][0], 1)) != 0)
sys/dev/sbus/cgsix.c
594
&bcm->cm_map[index + i][1], 1)) != 0)
sys/dev/sbus/cgsix.c
597
&bcm->cm_map[index + i][2], 1)) != 0)
sys/dev/sbus/cgsix.c
635
cgsix_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/cgsix.c
640
bcm->cm_map[index][0] = r;
sys/dev/sbus/cgsix.c
641
bcm->cm_map[index][1] = g;
sys/dev/sbus/cgsix.c
642
bcm->cm_map[index][2] = b;
sys/dev/sbus/cgsix.c
643
cgsix_loadcmap_immediate(sc, index, 1);
sys/dev/sbus/cgthree.c
305
cgthree_loadcmap(sc, cm->index, cm->count);
sys/dev/sbus/cgthree.c
366
cgthree_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/cgthree.c
371
bcm->cm_map[index][0] = r;
sys/dev/sbus/cgthree.c
372
bcm->cm_map[index][1] = g;
sys/dev/sbus/cgthree.c
373
bcm->cm_map[index][2] = b;
sys/dev/sbus/cgthree.c
374
cgthree_loadcmap(sc, index, 1);
sys/dev/sbus/cgthree.c
395
u_int index = rcm->index, count = rcm->count, i;
sys/dev/sbus/cgthree.c
398
if (index >= 256 || count > 256 - index)
sys/dev/sbus/cgthree.c
401
if ((error = copyout(&bcm->cm_map[index + i][0],
sys/dev/sbus/cgthree.c
404
if ((error = copyout(&bcm->cm_map[index + i][1],
sys/dev/sbus/cgthree.c
407
if ((error = copyout(&bcm->cm_map[index + i][2],
sys/dev/sbus/cgthree.c
417
u_int index = rcm->index, count = rcm->count, i;
sys/dev/sbus/cgthree.c
420
if (index >= 256 || count > 256 - index)
sys/dev/sbus/cgthree.c
424
&bcm->cm_map[index + i][0], 1)) != 0)
sys/dev/sbus/cgthree.c
427
&bcm->cm_map[index + i][1], 1)) != 0)
sys/dev/sbus/cgthree.c
430
&bcm->cm_map[index + i][2], 1)) != 0)
sys/dev/sbus/cs4231.c
986
switch (dip->index) {
sys/dev/sbus/mgx.c
381
mgx_loadcmap(sc, cm->index, cm->count);
sys/dev/sbus/mgx.c
449
mgx_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/mgx.c
452
u_int i = index * 3;
sys/dev/sbus/mgx.c
458
mgx_loadcmap(sc, index, 1);
sys/dev/sbus/mgx.c
476
u_int index = rcm->index, count = rcm->count, i;
sys/dev/sbus/mgx.c
479
if (index >= 256 || count > 256 - index)
sys/dev/sbus/mgx.c
482
index *= 3;
sys/dev/sbus/mgx.c
485
copyout(cm + index++, &rcm->red[i], 1)) != 0)
sys/dev/sbus/mgx.c
488
copyout(cm + index++, &rcm->green[i], 1)) != 0)
sys/dev/sbus/mgx.c
491
copyout(cm + index++, &rcm->blue[i], 1)) != 0)
sys/dev/sbus/mgx.c
501
u_int index = rcm->index, count = rcm->count, i;
sys/dev/sbus/mgx.c
504
if (index >= 256 || count > 256 - index)
sys/dev/sbus/mgx.c
507
index *= 3;
sys/dev/sbus/mgx.c
510
copyin(&rcm->red[i], cm + index++, 1)) != 0)
sys/dev/sbus/mgx.c
513
copyin(&rcm->green[i], cm + index++, 1)) != 0)
sys/dev/sbus/mgx.c
516
copyin(&rcm->blue[i], cm + index++, 1)) != 0)
sys/dev/sbus/rfx.c
343
rfx_loadcmap(sc, cm->index, cm->count);
sys/dev/sbus/rfx.c
393
rfx_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/rfx.c
397
sc->sc_cmap.red[index] = r;
sys/dev/sbus/rfx.c
398
sc->sc_cmap.green[index] = g;
sys/dev/sbus/rfx.c
399
sc->sc_cmap.blue[index] = b;
sys/dev/sbus/rfx.c
401
rfx_loadcmap(sc, index, 1);
sys/dev/sbus/rfx.c
407
u_int index = rcm->index, count = rcm->count;
sys/dev/sbus/rfx.c
410
if (index >= 256 || count > 256 - index)
sys/dev/sbus/rfx.c
413
if ((error = copyout(cm->red + index, rcm->red, count)) != 0)
sys/dev/sbus/rfx.c
415
if ((error = copyout(cm->green + index, rcm->green, count)) != 0)
sys/dev/sbus/rfx.c
417
if ((error = copyout(cm->blue + index, rcm->blue, count)) != 0)
sys/dev/sbus/rfx.c
426
u_int index = rcm->index, count = rcm->count;
sys/dev/sbus/rfx.c
430
if (index >= 256 || count > 256 - index)
sys/dev/sbus/rfx.c
440
bcopy(red, cm->red + index, count);
sys/dev/sbus/rfx.c
441
bcopy(green, cm->green + index, count);
sys/dev/sbus/rfx.c
442
bcopy(blue, cm->blue + index, count);
sys/dev/sbus/tvtwo.c
434
tvtwo_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/tvtwo.c
439
tvtwo_ramdac_wraddr(sc, index);
sys/dev/sbus/vigra.c
354
vigra_loadcmap_deferred(sc, cm->index, cm->count);
sys/dev/sbus/vigra.c
356
vigra_loadcmap_immediate(sc, cm->index, cm->count);
sys/dev/sbus/vigra.c
396
vigra_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/vigra.c
401
sc->sc_cmap.cm_map[index][3] = r;
sys/dev/sbus/vigra.c
402
sc->sc_cmap.cm_map[index][2] = g;
sys/dev/sbus/vigra.c
403
sc->sc_cmap.cm_map[index][1] = b;
sys/dev/sbus/vigra.c
405
sc->sc_cmap.cm_map[index][3] = b;
sys/dev/sbus/vigra.c
406
sc->sc_cmap.cm_map[index][2] = g;
sys/dev/sbus/vigra.c
407
sc->sc_cmap.cm_map[index][1] = r;
sys/dev/sbus/vigra.c
409
sc->sc_cmap.cm_map[index][0] = 0; /* no alpha channel */
sys/dev/sbus/vigra.c
411
vigra_loadcmap_immediate(sc, index, 1);
sys/dev/sbus/vigra.c
417
u_int index = rcm->index, count = rcm->count, i;
sys/dev/sbus/vigra.c
420
if (index >= 256 || count > 256 - index)
sys/dev/sbus/vigra.c
425
if ((error = copyout(&cm->cm_map[index + i][3],
sys/dev/sbus/vigra.c
428
if ((error = copyout(&cm->cm_map[index + i][1],
sys/dev/sbus/vigra.c
434
if ((error = copyout(&cm->cm_map[index + i][1],
sys/dev/sbus/vigra.c
437
if ((error = copyout(&cm->cm_map[index + i][3],
sys/dev/sbus/vigra.c
444
if ((error = copyout(&cm->cm_map[index + i][2],
sys/dev/sbus/vigra.c
454
u_int index = rcm->index, count = rcm->count, i;
sys/dev/sbus/vigra.c
457
if (index >= 256 || count > 256 - index)
sys/dev/sbus/vigra.c
463
&cm->cm_map[index + i][3], 1)) != 0)
sys/dev/sbus/vigra.c
466
&cm->cm_map[index + i][1], 1)) != 0)
sys/dev/sbus/vigra.c
472
&cm->cm_map[index + i][1], 1)) != 0)
sys/dev/sbus/vigra.c
475
&cm->cm_map[index + i][3], 1)) != 0)
sys/dev/sbus/vigra.c
482
&cm->cm_map[index + i][2], 1)) != 0)
sys/dev/sbus/vigra.c
484
cm->cm_map[index + i][0] = 0; /* no alpha channel */
sys/dev/sbus/zx.c
383
zx_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
sys/dev/sbus/zx.c
387
sc->sc_cmap.cm_red[index] = r;
sys/dev/sbus/zx.c
388
sc->sc_cmap.cm_green[index] = g;
sys/dev/sbus/zx.c
389
sc->sc_cmap.cm_blue[index] = b;
sys/dev/sbus/zx.c
494
zx_cross_loadwid(struct zx_softc *sc, u_int type, u_int index, u_int value)
sys/dev/sbus/zx.c
506
tmp = (index & 0x0f) + 0x40;
sys/dev/sbus/zx.c
508
tmp = index & 0x3f;
sys/dev/sdmmc/sdmmc_mem.c
628
sdmmc_mem_mmc_switch(struct sdmmc_function *sf, uint8_t set, uint8_t index,
sys/dev/sdmmc/sdmmc_mem.c
637
(index << 16) | (value << 8) | set;
sys/dev/usb/dwc2/bitmap.h
113
u_long index, end, i;
sys/dev/usb/dwc2/bitmap.h
116
index = (((find_next_zero_bit(p, size, start) +
sys/dev/usb/dwc2/bitmap.h
119
end = index + n;
sys/dev/usb/dwc2/bitmap.h
123
i = find_next_bit(p, end, index);
sys/dev/usb/dwc2/bitmap.h
129
return index;
sys/dev/usb/dwc2/dwc2.c
615
int value, index, l, s, totlen;
sys/dev/usb/dwc2/dwc2.c
630
index = UGETW(req->wIndex);
sys/dev/usb/dwc2/dwc2.c
736
C(req->bRequest, req->bmRequestType), value, index,
sys/dev/usb/dwc2/dwc2_core.h
185
unsigned char index;
sys/dev/usb/dwc2/dwc2_hcdqueue.c
668
bool only_one_period, int index)
sys/dev/usb/dwc2/dwc2_hcdqueue.c
670
struct dwc2_hs_transfer_time *trans_time = qh->hs_transfers + index;
sys/dev/usb/dwc2/dwc2_hcdqueue.c
694
struct dwc2_qh *qh, int index)
sys/dev/usb/dwc2/dwc2_hcdqueue.c
696
struct dwc2_hs_transfer_time *trans_time = qh->hs_transfers + index;
sys/dev/usb/ehci.c
1800
int s, len, value, index, l, totlen = 0;
sys/dev/usb/ehci.c
1822
index = UGETW(req->wIndex);
sys/dev/usb/ehci.c
1959
"port=%d feature=%d\n", index, value));
sys/dev/usb/ehci.c
1960
if (index < 1 || index > sc->sc_noport) {
sys/dev/usb/ehci.c
1964
port = EHCI_PORTSC(index);
sys/dev/usb/ehci.c
1978
"clear port test %d\n", index));
sys/dev/usb/ehci.c
1982
"clear port index %d\n", index));
sys/dev/usb/ehci.c
2034
index));
sys/dev/usb/ehci.c
2035
if (index < 1 || index > sc->sc_noport) {
sys/dev/usb/ehci.c
2043
v = EOREAD4(sc, EHCI_PORTSC(index));
sys/dev/usb/ehci.c
2069
if (index < 1 || index > sc->sc_noport) {
sys/dev/usb/ehci.c
2073
port = EHCI_PORTSC(index);
sys/dev/usb/ehci.c
2086
ehci_disown(sc, index, 0);
sys/dev/usb/ehci.c
2090
index));
sys/dev/usb/ehci.c
2093
ehci_disown(sc, index, 1);
sys/dev/usb/ehci.c
2124
ehci_disown(sc, index, 0);
sys/dev/usb/ehci.c
2129
index, v));
sys/dev/usb/ehci.c
2133
"set port power %d\n", index));
sys/dev/usb/ehci.c
2138
"set port test %d\n", index));
sys/dev/usb/ehci.c
2142
"set port ind %d\n", index));
sys/dev/usb/ehci.c
2170
ehci_disown(struct ehci_softc *sc, int index, int lowspeed)
sys/dev/usb/ehci.c
2175
port = EHCI_PORTSC(index);
sys/dev/usb/if_athn_usb.c
2608
hvif.index = 0;
sys/dev/usb/if_athn_usb.c
2641
sta.vif_index = hvif.index;
sys/dev/usb/if_athn_usb.c
2728
hvif.index = 0;
sys/dev/usb/if_athn_usb.h
154
uint8_t index;
sys/dev/usb/if_atu.c
245
u_int8_t request, u_int16_t value, u_int16_t index,
sys/dev/usb/if_atu.c
253
u_int8_t size, u_int8_t index, void *data);
sys/dev/usb/if_atu.c
255
u_int8_t size, u_int8_t index, u_int8_t *buf);
sys/dev/usb/if_atu.c
284
u_int8_t request, u_int16_t value, u_int16_t index, u_int16_t length,
sys/dev/usb/if_atu.c
295
USETW(req.wIndex, index);
sys/dev/usb/if_atu.c
303
value, index, length));
sys/dev/usb/if_atu.c
307
request, value, index, length, data, " "));
sys/dev/usb/if_atu.c
410
u_int8_t index, void *data)
sys/dev/usb/if_atu.c
427
request.MIBIndex = index;
sys/dev/usb/if_atu.c
461
u_int8_t index, u_int8_t *buf)
sys/dev/usb/if_atu.c
466
type << 8, index, size, buf);
sys/dev/usb/if_axe.c
231
axe_cmd(struct axe_softc *sc, int cmd, int index, int val, void *buf)
sys/dev/usb/if_axe.c
245
USETW(req.wIndex, index);
sys/dev/usb/if_axen.c
139
axen_cmd(struct axen_softc *sc, int cmd, int index, int val, void *buf)
sys/dev/usb/if_axen.c
153
USETW(req.wIndex, index);
sys/dev/usb/if_uaq.c
311
uint16_t index, void *buf, int len)
sys/dev/usb/if_uaq.c
325
USETW(req.wIndex, index);
sys/dev/usb/if_uaq.c
329
rw, val, index, len));
sys/dev/usb/if_uaq.c
340
uaq_read_mem(struct uaq_softc *sc, uint8_t cmd, uint16_t addr, uint16_t index,
sys/dev/usb/if_uaq.c
343
return (uaq_ctl(sc, UAQ_CTL_READ, cmd, addr, index, buf, len));
sys/dev/usb/if_uaq.c
347
uaq_write_mem(struct uaq_softc *sc, uint8_t cmd, uint16_t addr, uint16_t index,
sys/dev/usb/if_uaq.c
350
return (uaq_ctl(sc, UAQ_CTL_WRITE, cmd, addr, index, buf, len));
sys/dev/usb/if_uaq.c
354
uaq_read_1(struct uaq_softc *sc, uint8_t cmd, uint16_t reg, uint16_t index)
sys/dev/usb/if_uaq.c
358
uaq_read_mem(sc, cmd, reg, index, &val, 1);
sys/dev/usb/if_uaq.c
360
index, val));
sys/dev/usb/if_uaq.c
365
uaq_read_2(struct uaq_softc *sc, uint8_t cmd, uint16_t reg, uint16_t index)
sys/dev/usb/if_uaq.c
369
uaq_read_mem(sc, cmd, reg, index, &val, 2);
sys/dev/usb/if_uaq.c
371
index, UGETW(&val)));
sys/dev/usb/if_uaq.c
377
uaq_read_4(struct uaq_softc *sc, uint8_t cmd, uint16_t reg, uint16_t index)
sys/dev/usb/if_uaq.c
381
uaq_read_mem(sc, cmd, reg, index, &val, 4);
sys/dev/usb/if_uaq.c
383
index, UGETDW(&val)));
sys/dev/usb/if_uaq.c
388
uaq_write_1(struct uaq_softc *sc, uint8_t cmd, uint16_t reg, uint16_t index,
sys/dev/usb/if_uaq.c
394
index, val));
sys/dev/usb/if_uaq.c
396
return (uaq_write_mem(sc, cmd, reg, index, &temp, 1));
sys/dev/usb/if_uaq.c
400
uaq_write_2(struct uaq_softc *sc, uint8_t cmd, uint16_t reg, uint16_t index,
sys/dev/usb/if_uaq.c
406
index, val));
sys/dev/usb/if_uaq.c
408
return (uaq_write_mem(sc, cmd, reg, index, &temp, 2));
sys/dev/usb/if_uaq.c
412
uaq_write_4(struct uaq_softc *sc, uint8_t cmd, uint16_t reg, uint16_t index,
sys/dev/usb/if_uaq.c
418
index, val));
sys/dev/usb/if_uaq.c
420
return (uaq_write_mem(sc, cmd, reg, index, &temp, 4));
sys/dev/usb/if_uath.c
1695
uath_set_key(struct uath_softc *sc, const struct ieee80211_key *k, int index)
sys/dev/usb/if_uath.c
1701
crypto.keyidx = htobe32(index);
sys/dev/usb/if_uath.c
1706
if (index != UATH_DEFAULT_KEY)
sys/dev/usb/if_uath.c
1707
crypto.flags |= htobe32(index << 16);
sys/dev/usb/if_uath.c
1717
DPRINTF(("setting crypto key index=%d len=%d\n", index, k->k_len));
sys/dev/usb/if_umb.c
332
id = usbd_find_idesc(uaa->device->cdesc, uaa->iface->index, 1);
sys/dev/usb/if_umb.c
541
id = usbd_find_idesc(cd, sc->sc_data_iface->index, i);
sys/dev/usb/if_ure.c
214
#define URE_SETBIT_1(sc, reg, index, x) \
sys/dev/usb/if_ure.c
215
ure_write_1(sc, reg, index, ure_read_1(sc, reg, index) | (x))
sys/dev/usb/if_ure.c
216
#define URE_SETBIT_2(sc, reg, index, x) \
sys/dev/usb/if_ure.c
217
ure_write_2(sc, reg, index, ure_read_2(sc, reg, index) | (x))
sys/dev/usb/if_ure.c
218
#define URE_SETBIT_4(sc, reg, index, x) \
sys/dev/usb/if_ure.c
219
ure_write_4(sc, reg, index, ure_read_4(sc, reg, index) | (x))
sys/dev/usb/if_ure.c
221
#define URE_CLRBIT_1(sc, reg, index, x) \
sys/dev/usb/if_ure.c
222
ure_write_1(sc, reg, index, ure_read_1(sc, reg, index) & ~(x))
sys/dev/usb/if_ure.c
223
#define URE_CLRBIT_2(sc, reg, index, x) \
sys/dev/usb/if_ure.c
224
ure_write_2(sc, reg, index, ure_read_2(sc, reg, index) & ~(x))
sys/dev/usb/if_ure.c
225
#define URE_CLRBIT_4(sc, reg, index, x) \
sys/dev/usb/if_ure.c
226
ure_write_4(sc, reg, index, ure_read_4(sc, reg, index) & ~(x))
sys/dev/usb/if_ure.c
237
ure_ctl(struct ure_softc *sc, uint8_t rw, uint16_t val, uint16_t index,
sys/dev/usb/if_ure.c
252
USETW(req.wIndex, index);
sys/dev/usb/if_ure.c
256
rw, val, index, len));
sys/dev/usb/if_ure.c
267
ure_read_mem(struct ure_softc *sc, uint16_t addr, uint16_t index,
sys/dev/usb/if_ure.c
270
return (ure_ctl(sc, URE_CTL_READ, addr, index, buf, len));
sys/dev/usb/if_ure.c
274
ure_write_mem(struct ure_softc *sc, uint16_t addr, uint16_t index,
sys/dev/usb/if_ure.c
277
return (ure_ctl(sc, URE_CTL_WRITE, addr, index, buf, len));
sys/dev/usb/if_ure.c
281
ure_read_1(struct ure_softc *sc, uint16_t reg, uint16_t index)
sys/dev/usb/if_ure.c
290
ure_read_mem(sc, reg, index, &temp, 4);
sys/dev/usb/if_ure.c
298
ure_read_2(struct ure_softc *sc, uint16_t reg, uint16_t index)
sys/dev/usb/if_ure.c
307
ure_read_mem(sc, reg, index, &temp, 4);
sys/dev/usb/if_ure.c
315
ure_read_4(struct ure_softc *sc, uint16_t reg, uint16_t index)
sys/dev/usb/if_ure.c
319
ure_read_mem(sc, reg, index, &temp, 4);
sys/dev/usb/if_ure.c
324
ure_write_1(struct ure_softc *sc, uint16_t reg, uint16_t index, uint32_t val)
sys/dev/usb/if_ure.c
341
return (ure_write_mem(sc, reg, index | byen, &temp, 4));
sys/dev/usb/if_ure.c
345
ure_write_2(struct ure_softc *sc, uint16_t reg, uint16_t index, uint32_t val)
sys/dev/usb/if_ure.c
362
return (ure_write_mem(sc, reg, index | byen, &temp, 4));
sys/dev/usb/if_ure.c
366
ure_write_4(struct ure_softc *sc, uint16_t reg, uint16_t index, uint32_t val)
sys/dev/usb/if_ure.c
371
return (ure_write_mem(sc, reg, index | URE_BYTE_EN_DWORD, &temp, 4));
sys/dev/usb/if_urndis.c
132
uint16_t index, uint16_t value, void *buf, size_t buflen)
sys/dev/usb/if_urndis.c
139
USETW(req.wIndex, index);
sys/dev/usb/if_urtw.c
1064
urtw_8225_write_s16(struct urtw_softc *sc, uint8_t addr, int index,
sys/dev/usb/if_urtw.c
1072
USETW(req.wIndex, index);
sys/dev/usb/ohci.c
2273
int s, len, value, index, l, totlen = 0;
sys/dev/usb/ohci.c
2295
index = UGETW(req->wIndex);
sys/dev/usb/ohci.c
2418
index, value));
sys/dev/usb/ohci.c
2419
if (index < 1 || index > sc->sc_noport) {
sys/dev/usb/ohci.c
2423
port = OHCI_RH_PORT_STATUS(index);
sys/dev/usb/ohci.c
2500
index));
sys/dev/usb/ohci.c
2501
if (index < 1 || index > sc->sc_noport) {
sys/dev/usb/ohci.c
2509
v = OREAD4(sc, OHCI_RH_PORT_STATUS(index));
sys/dev/usb/ohci.c
2524
if (index < 1 || index > sc->sc_noport) {
sys/dev/usb/ohci.c
2528
port = OHCI_RH_PORT_STATUS(index);
sys/dev/usb/ohci.c
2538
index));
sys/dev/usb/ohci.c
2551
index, OREAD4(sc, port)));
sys/dev/usb/ohci.c
2555
"%d\n", index));
sys/dev/usb/uark.c
306
uark_cmd(struct uark_softc *sc, uint16_t index, uint16_t value)
sys/dev/usb/uark.c
314
USETW(req.wIndex, index);
sys/dev/usb/uaudio.c
1862
mi.index = 0;
sys/dev/usb/uaudio.c
1868
ctl.dev = mi.index;
sys/dev/usb/uaudio.c
1870
printf("%02u: failed to get port\n", mi.index);
sys/dev/usb/uaudio.c
1876
mi.index, mi.label.name, mi.next, mi.prev, mi.mixer_class);
sys/dev/usb/uaudio.c
1900
mi.index++;
sys/dev/usb/uaudio.c
1903
printf("%d controls\n", mi.index);
sys/dev/usb/uaudio.c
1986
uaudio_mixer_byindex(struct uaudio_softc *sc, int index,
sys/dev/usb/uaudio.c
2001
if (index == i) {
sys/dev/usb/uaudio.c
3265
int index;
sys/dev/usb/uaudio.c
3272
index = s->data_nextxfer + s->ubuf_xfer;
sys/dev/usb/uaudio.c
3273
if (index >= s->nxfers)
sys/dev/usb/uaudio.c
3274
index -= s->nxfers;
sys/dev/usb/uaudio.c
3275
xfer = s->data_xfers + index;
sys/dev/usb/uaudio.c
4446
switch (devinfo->index) {
sys/dev/usb/uaudio.c
4462
if (!uaudio_mixer_byindex(sc, devinfo->index, &u, &m))
sys/dev/usb/uchcom.c
168
uint8_t reqno, uint16_t value, uint16_t index);
sys/dev/usb/uchcom.c
420
uint16_t value, uint16_t index)
sys/dev/usb/uchcom.c
427
USETW(req.wIndex, index);
sys/dev/usb/uchcom.c
435
uint16_t value, uint16_t index, void *buf, int buflen, int *actlen)
sys/dev/usb/uchcom.c
442
USETW(req.wIndex, index);
sys/dev/usb/udl.c
1161
uint16_t index, uint16_t value, uint8_t *buf, size_t len)
sys/dev/usb/udl.c
1168
USETW(req.wIndex, index);
sys/dev/usb/udl.c
2044
int index = MAX_DL_MODES, i;
sys/dev/usb/udl.c
2062
index = udl_lookup_mode(mode.hdisplay, mode.vdisplay, mode.freq,
sys/dev/usb/udl.c
2064
sc->sc_cur_mode = index;
sys/dev/usb/udl.c
2069
if (index == MAX_DL_MODES) {
sys/dev/usb/udl.c
2085
index = udl_lookup_mode(mode.hdisplay, mode.vdisplay,
sys/dev/usb/udl.c
2087
if (index < MAX_DL_MODES)
sys/dev/usb/udl.c
2089
(index > sc->sc_cur_mode))
sys/dev/usb/udl.c
2090
sc->sc_cur_mode = index;
sys/dev/usb/udsbr.c
165
udsbr_req(struct udsbr_softc *sc, int ureq, int value, int index)
sys/dev/usb/udsbr.c
172
ureq, value, index));
sys/dev/usb/udsbr.c
176
USETW(req.wIndex, index);
sys/dev/usb/udsbr.c
87
int udsbr_req(struct udsbr_softc *sc, int ureq, int value, int index);
sys/dev/usb/uhci.c
2774
uhci_portreset(struct uhci_softc *sc, int index)
sys/dev/usb/uhci.c
2778
if (index == 1)
sys/dev/usb/uhci.c
2780
else if (index == 2)
sys/dev/usb/uhci.c
2791
index, UREAD2(sc, port)));
sys/dev/usb/uhci.c
2799
index, UREAD2(sc, port)));
sys/dev/usb/uhci.c
2810
index, lim, x));
sys/dev/usb/uhci.c
2822
index, lim));
sys/dev/usb/uhci.c
2846
index, UREAD2(sc, port)));
sys/dev/usb/uhci.c
2849
DPRINTFN(1,("uhci port %d reset timed out\n", index));
sys/dev/usb/uhci.c
2884
int s, len, value, index, status, change, l, totlen = 0;
sys/dev/usb/uhci.c
2903
index = UGETW(req->wIndex);
sys/dev/usb/uhci.c
3026
index, value));
sys/dev/usb/uhci.c
3027
if (index == 1)
sys/dev/usb/uhci.c
3029
else if (index == 2)
sys/dev/usb/uhci.c
3075
if (index == 1)
sys/dev/usb/uhci.c
3077
else if (index == 2)
sys/dev/usb/uhci.c
3108
if (index == 1)
sys/dev/usb/uhci.c
3110
else if (index == 2)
sys/dev/usb/uhci.c
3153
if (index == 1)
sys/dev/usb/uhci.c
3155
else if (index == 2)
sys/dev/usb/uhci.c
3171
err = uhci_portreset(sc, index);
sys/dev/usb/umidi.c
1074
packet->index = 0;
sys/dev/usb/umidi.c
1268
packet->index = 2;
sys/dev/usb/umidi.c
1272
if (packet->index == 0)
sys/dev/usb/umidi.c
1273
packet->index = 1;
sys/dev/usb/umidi.c
1275
packet->buf[packet->index++] = data;
sys/dev/usb/umidi.c
1276
packet->buf[0] = (0x4 - 1 + packet->index) | cable_number << 4;
sys/dev/usb/umidi.c
1281
packet->index = 1;
sys/dev/usb/umidi.c
1291
packet->index = 0;
sys/dev/usb/umidi.c
1299
if (packet->index == 0)
sys/dev/usb/umidi.c
1300
packet->index = 1;
sys/dev/usb/umidi.c
1302
packet->buf[packet->index++] = data;
sys/dev/usb/umidi.c
1303
if (packet->index >= UMIDI_PACKET_SIZE) {
sys/dev/usb/umidi.c
1313
packet->index = 3;
sys/dev/usb/umidi.c
1316
if (packet->index == 0) {
sys/dev/usb/umidi.c
1318
packet->index = 1;
sys/dev/usb/umidi.c
1320
packet->buf[packet->index++] = data;
sys/dev/usb/umidi.c
1321
if (packet->index >= UMIDI_PACKET_SIZE) {
sys/dev/usb/umidi.c
1332
if (packet->index == 0) {
sys/dev/usb/umidi.c
1335
packet->index = 2;
sys/dev/usb/umidi.c
1337
packet->buf[packet->index++] = data;
sys/dev/usb/umidi.c
1338
if (packet->index >= UMIDI_VOICELEN(packet->status))
sys/dev/usb/umidi.c
1345
while (packet->index < UMIDI_PACKET_SIZE)
sys/dev/usb/umidi.c
1346
packet->buf[packet->index++] = 0;
sys/dev/usb/umidi.c
1347
packet->index = 0;
sys/dev/usb/umidivar.h
35
unsigned index;
sys/dev/usb/usb_subr.c
1404
usbd_get_cdesc(struct usbd_device *dev, int index, u_int *lenp)
sys/dev/usb/usb_subr.c
1410
if (index == USB_CURRENT_CONFIG_INDEX) {
sys/dev/usb/usb_subr.c
1421
err = usbd_get_desc(dev, UDESC_CONFIG, index,
sys/dev/usb/usb_subr.c
1426
DPRINTFN(5,("%s: index=%d, len=%u\n", __func__, index, len));
sys/dev/usb/usb_subr.c
1430
err = usbd_get_desc(dev, UDESC_CONFIG, index, len, cdesc);
sys/dev/usb/usb_subr.c
494
ifc->index = ifaceno;
sys/dev/usb/usb_subr.c
606
int index;
sys/dev/usb/usb_subr.c
612
for (index = 0; index < dev->ddesc.bNumConfigurations; index++) {
sys/dev/usb/usb_subr.c
613
err = usbd_get_desc(dev, UDESC_CONFIG, index,
sys/dev/usb/usb_subr.c
618
return (usbd_set_config_index(dev, index, msg));
sys/dev/usb/usb_subr.c
624
usbd_set_config_index(struct usbd_device *dev, int index, int msg)
sys/dev/usb/usb_subr.c
631
DPRINTFN(5,("%s: dev=%p index=%d\n", __func__, dev, index));
sys/dev/usb/usb_subr.c
647
if (index == USB_UNCONFIG_INDEX) {
sys/dev/usb/usb_subr.c
658
err = usbd_get_desc(dev, UDESC_CONFIG, index,
sys/dev/usb/usb_subr.c
670
err = usbd_get_desc(dev, UDESC_CONFIG, index, cdplen, cdp);
sys/dev/usb/usbdi.c
119
iface->device, iface->idesc, iface->index, iface->altindex,
sys/dev/usb/usbdi.c
542
usbd_interface2endpoint_descriptor(struct usbd_interface *iface, u_int8_t index)
sys/dev/usb/usbdi.c
544
if (index >= iface->idesc->bNumEndpoints)
sys/dev/usb/usbdi.c
546
return (iface->endpoints[index].edesc);
sys/dev/usb/usbdi.c
677
err = usbd_fill_iface_data(iface->device, iface->index, altno);
sys/dev/usb/usbdi_util.c
57
usbd_get_desc(struct usbd_device *dev, int type, int index, int len, void *desc)
sys/dev/usb/usbdi_util.c
61
DPRINTFN(3,("%s: type=%d, index=%d, len=%d\n", __func__, type, index,
sys/dev/usb/usbdi_util.c
66
USETW2(req.wValue, type, index);
sys/dev/usb/usbdi_util.h
36
int index, int len, void *desc);
sys/dev/usb/usbdi_util.h
60
usbd_status usbd_set_config_index(struct usbd_device *dev, int index,
sys/dev/usb/usbdivar.h
177
int index;
sys/dev/usb/utvfu.c
1682
sc->sc_mmap[i].v4l2_buf.index = i;
sys/dev/usb/utvfu.c
1693
sc->sc_mmap[i].v4l2_buf.index,
sys/dev/usb/utvfu.c
1713
qb->index >= sc->sc_mmap_count)
sys/dev/usb/utvfu.c
1716
memcpy(qb, &sc->sc_mmap[qb->index].v4l2_buf,
sys/dev/usb/utvfu.c
1720
DEVNAME(sc), __func__, qb->index, qb->m.offset, qb->length);
sys/dev/usb/utvfu.c
1732
qb->index >= sc->sc_mmap_count)
sys/dev/usb/utvfu.c
1735
sc->sc_mmap[qb->index].v4l2_buf.flags &= ~V4L2_BUF_FLAG_DONE;
sys/dev/usb/utvfu.c
1736
sc->sc_mmap[qb->index].v4l2_buf.flags |= V4L2_BUF_FLAG_MAPPED;
sys/dev/usb/utvfu.c
1737
sc->sc_mmap[qb->index].v4l2_buf.flags |= V4L2_BUF_FLAG_QUEUED;
sys/dev/usb/utvfu.c
1740
DEVNAME(sc), __func__, qb->index);
sys/dev/usb/utvfu.c
1773
DEVNAME(sc), __func__, mmap->v4l2_buf.index);
sys/dev/usb/utvfu.c
1983
if (mi->index != 0)
sys/dev/usb/utvfu.c
501
switch (i->index) {
sys/dev/usb/utvfu.c
521
if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || f->index != 0)
sys/dev/usb/utvfu.c
540
if (fsizes->index >= 1)
sys/dev/usb/uvideo.c
3624
if (fmtdesc->index >= sc->sc_fmtgrp_num)
sys/dev/usb/uvideo.c
3627
idx = fmtdesc->index;
sys/dev/usb/uvideo.c
3692
if (fsizes->index >= sc->sc_fmtgrp[idx].frame_num)
sys/dev/usb/uvideo.c
3696
frame = sc->sc_fmtgrp[idx].frame[fsizes->index];
sys/dev/usb/uvideo.c
3738
if (fivals->index != 0)
sys/dev/usb/uvideo.c
3751
if (fivals->index >= UVIDEO_FRAME_NUM_INTERVALS(frame))
sys/dev/usb/uvideo.c
3753
p += sizeof(uDWord) * fivals->index;
sys/dev/usb/uvideo.c
3919
if (input->index != 0)
sys/dev/usb/uvideo.c
3995
sc->sc_mmap[i].v4l2_buf.index = i;
sys/dev/usb/uvideo.c
4006
sc->sc_mmap[i].v4l2_buf.index,
sys/dev/usb/uvideo.c
4029
qb->index >= sc->sc_mmap_count)
sys/dev/usb/uvideo.c
4032
bcopy(&sc->sc_mmap[qb->index].v4l2_buf, qb,
sys/dev/usb/uvideo.c
4037
qb->index,
sys/dev/usb/uvideo.c
4051
qb->index >= sc->sc_mmap_count)
sys/dev/usb/uvideo.c
4054
sc->sc_mmap[qb->index].v4l2_buf.flags &= ~V4L2_BUF_FLAG_DONE;
sys/dev/usb/uvideo.c
4055
sc->sc_mmap[qb->index].v4l2_buf.flags |= V4L2_BUF_FLAG_QUEUED;
sys/dev/usb/uvideo.c
4058
DEVNAME(sc), __func__, qb->index);
sys/dev/usb/uvideo.c
4091
DEVNAME(sc), __func__, mmap->v4l2_buf.index);
sys/dev/usb/uxrcom.c
260
uint16_t index;
sys/dev/usb/uxrcom.c
263
index = onoff ? XR_GPIO_SET : XR_GPIO_CLEAR;
sys/dev/usb/uxrcom.c
281
USETW(req.wIndex, index);
sys/dev/usb/xhci.c
1033
KASSERT(xx->index >= 0);
sys/dev/usb/xhci.c
1045
((xx->index + xp->ring.ntrb) - xx->ntrb) % (xp->ring.ntrb - 1);
sys/dev/usb/xhci.c
1083
if (xx->index != trb_idx)
sys/dev/usb/xhci.c
1216
if (xx->index < 0 || xp->pending_xfers[xx->index] == NULL) {
sys/dev/usb/xhci.c
1218
xfer, xx->index, xx->ntrb);
sys/dev/usb/xhci.c
1225
for (ntrb = 0, i = xx->index; ntrb < xx->ntrb; ntrb++, i--) {
sys/dev/usb/xhci.c
1232
xx->index = -1;
sys/dev/usb/xhci.c
1845
ring->index = 0;
sys/dev/usb/xhci.c
1868
struct xhci_trb *trb = &ring->trbs[ring->index];
sys/dev/usb/xhci.c
1870
KASSERT(ring->index < ring->ntrb);
sys/dev/usb/xhci.c
1879
ring->index++;
sys/dev/usb/xhci.c
1881
if (ring->index == ring->ntrb) {
sys/dev/usb/xhci.c
1882
ring->index = 0;
sys/dev/usb/xhci.c
1894
KASSERT(ring->index < ring->ntrb);
sys/dev/usb/xhci.c
1897
if (ring->index == 0) {
sys/dev/usb/xhci.c
1918
trb = &ring->trbs[ring->index++];
sys/dev/usb/xhci.c
1924
if (ring->index == (ring->ntrb - 1)) {
sys/dev/usb/xhci.c
1925
ring->index = 0;
sys/dev/usb/xhci.c
1945
xp->pending_xfers[xp->ring.index] = NULL;
sys/dev/usb/xhci.c
1949
xp->pending_xfers[xp->ring.index] = xfer;
sys/dev/usb/xhci.c
1950
xx->index = -2;
sys/dev/usb/xhci.c
1954
xp->pending_xfers[xp->ring.index] = xfer;
sys/dev/usb/xhci.c
1955
xx->index = xp->ring.index;
sys/dev/usb/xhci.c
1960
xp->trb_processed[xp->ring.index] = TRB_PROCESSED_NO;
sys/dev/usb/xhci.c
2344
xfer->actlen, xfer->length, ((struct xhci_xfer *)xfer)->index));
sys/dev/usb/xhci.c
2454
int s, len, value, index;
sys/dev/usb/xhci.c
2471
index = UGETW(req->wIndex);
sys/dev/usb/xhci.c
2600
"port=%d feature=%d\n", index, value));
sys/dev/usb/xhci.c
2601
if (index < 1 || index > sc->sc_noport) {
sys/dev/usb/xhci.c
2605
port = XHCI_PORTSC(index);
sys/dev/usb/xhci.c
2679
index));
sys/dev/usb/xhci.c
2680
if (index < 1 || index > sc->sc_noport) {
sys/dev/usb/xhci.c
2688
v = XOREAD4(sc, XHCI_PORTSC(index));
sys/dev/usb/xhci.c
2737
i = index >> 8;
sys/dev/usb/xhci.c
2738
index &= 0x00ff;
sys/dev/usb/xhci.c
2740
if (index < 1 || index > sc->sc_noport) {
sys/dev/usb/xhci.c
2744
port = XHCI_PORTSC(index);
sys/dev/usb/xhci.c
2752
DPRINTFN(6, ("suspend port %u (LPM=%u)\n", index, i));
sys/dev/usb/xhci.c
2761
DPRINTFN(6, ("reset port %d\n", index));
sys/dev/usb/xhci.c
2765
DPRINTFN(3, ("set port power %d\n", index));
sys/dev/usb/xhci.c
2769
DPRINTFN(3, ("set port indicator %d\n", index));
sys/dev/usb/xhci.c
55
#define DEQPTR(r) ((r).dma.paddr + (sizeof(struct xhci_trb) * (r).index))
sys/dev/usb/xhci.c
918
((xx->index + xp->ring.ntrb) - xx->ntrb) % (xp->ring.ntrb - 1);
sys/dev/usb/xhci.c
970
if (xx->index != trb_idx) {
sys/dev/usb/xhci.c
972
DEVNAME(sc), xfer, xx->index));
sys/dev/usb/xhcivar.h
41
int index; /* Index of the last TRB */
sys/dev/usb/xhcivar.h
51
uint32_t index;
sys/dev/wscons/wsconsio.h
481
u_int index; /* first element (0 origin) */
sys/dev/wscons/wsconsio.h
538
int index;
sys/dev/wsfont/gallant12x22.h
43
.index = 0,
sys/dev/wsfont/spleen12x24.h
33
.index = 0,
sys/dev/wsfont/spleen16x32.h
33
.index = 0,
sys/dev/wsfont/spleen32x64.h
33
.index = 0,
sys/dev/wsfont/spleen5x8.h
33
.index = 0,
sys/dev/wsfont/spleen6x12.h
33
.index = 0,
sys/dev/wsfont/spleen8x16-ibm.h
33
.index = 0,
sys/dev/wsfont/spleen8x16.h
33
.index = 0,
sys/kern/subr_witness.c
1737
int index;
sys/kern/subr_witness.c
1755
index = w->w_index;
sys/kern/subr_witness.c
1756
KASSERT(index > 0 && index == w_max_used_index + 1 &&
sys/kern/subr_witness.c
1757
index < witness_count);
sys/kern/subr_witness.c
1759
w->w_index = index;
sys/kern/subr_witness.c
1760
if (index > w_max_used_index)
sys/kern/subr_witness.c
1761
w_max_used_index = index;
sys/lib/libkern/softfloat-macros.h
631
int8 index;
sys/lib/libkern/softfloat-macros.h
634
index = ( a>>27 ) & 15;
sys/lib/libkern/softfloat-macros.h
636
z = 0x4000 + ( a>>17 ) - sqrtOddAdjustments[ index ];
sys/lib/libkern/softfloat-macros.h
641
z = 0x8000 + ( a>>17 ) - sqrtEvenAdjustments[ index ];
sys/net/fq_codel.c
518
unsigned int index = 0;
sys/net/fq_codel.c
521
index = m->m_pkthdr.ph_flowid % fqc->nflows;
sys/net/fq_codel.c
523
DPRINTF("%s: %u\n", __func__, index);
sys/net/fq_codel.c
525
return (&fqc->flows[index]);
sys/net/if.c
1984
if_get(unsigned int index)
sys/net/if.c
1988
if (index == 0)
sys/net/if.c
1992
ifp = if_idxmap_get(index);
sys/net/if.c
1994
KASSERT(ifp->if_index == index);
sys/net/if.c
2003
if_get_smr(unsigned int index)
sys/net/if.c
2006
return if_idxmap_get(index);
sys/net/if.c
348
unsigned int index, i;
sys/net/if.c
360
index = if_idxmap.serial++ & USHRT_MAX;
sys/net/if.c
362
if (index >= limit) {
sys/net/if.c
405
if (index != 0 && isclr(if_idxmap.usedidx, index))
sys/net/if.c
408
index = if_idxmap.serial++ & USHRT_MAX;
sys/net/if.c
410
KASSERT(index != 0 && index < limit);
sys/net/if.c
411
KASSERT(isclr(if_idxmap.usedidx, index));
sys/net/if.c
413
setbit(if_idxmap.usedidx, index);
sys/net/if.c
414
ifp->if_index = index;
sys/net/if.c
438
unsigned int index = ifp->if_index;
sys/net/if.c
444
KASSERTMSG(index != 0 && index < if_idxmap_limit(if_map),
sys/net/if.c
445
"%s(%p) index %u vs limit %u", ifp->if_xname, ifp, index,
sys/net/if.c
447
KASSERT(SMR_PTR_GET_LOCKED(&if_map[index]) == NULL);
sys/net/if.c
448
KASSERT(isset(if_idxmap.usedidx, index));
sys/net/if.c
451
SMR_PTR_SET_LOCKED(&if_map[index], if_ref(ifp));
sys/net/if.c
460
unsigned int index = ifp->if_index;
sys/net/if.c
466
KASSERT(index != 0 && index < if_idxmap_limit(if_map));
sys/net/if.c
467
KASSERT(SMR_PTR_GET_LOCKED(&if_map[index]) == ifp);
sys/net/if.c
468
KASSERT(isset(if_idxmap.usedidx, index));
sys/net/if.c
470
SMR_PTR_SET_LOCKED(&if_map[index], NULL);
sys/net/if.c
473
clrbit(if_idxmap.usedidx, index);
sys/net/if.c
483
if_idxmap_get(unsigned int index)
sys/net/if.c
488
if (index == 0)
sys/net/if.c
492
if (index < if_idxmap_limit(if_map))
sys/net/if.c
493
ifp = SMR_PTR_GET(&if_map[index]);
sys/net/if_gre.c
4927
htobem32(&erspanh->index, ISSET(ifp->if_flags, IFF_LINK0) ?
sys/net/if_gre.c
560
uint32_t index;
sys/net/if_wg.c
2014
struct wg_index *index, *iter;
sys/net/if_wg.c
2022
index = SLIST_FIRST(&peer->p_unused_index);
sys/net/if_wg.c
2023
KASSERT(index != NULL);
sys/net/if_wg.c
2026
index->i_value = remote;
sys/net/if_wg.c
2030
key = index->i_key = arc4random();
sys/net/if_wg.c
2033
if (iter->i_key == index->i_key)
sys/net/if_wg.c
2036
LIST_INSERT_HEAD(&sc->sc_index[key], index, i_entry);
sys/net/if_wg.c
2041
return index->i_key;
sys/net/pf_ioctl.c
3061
if (pl->index < 0 || pl->index >= PF_LIMIT_MAX) {
sys/net/pf_ioctl.c
3066
pl->limit = pf_pool_limits[pl->index].limit;
sys/net/pf_ioctl.c
3075
if (pl->index < 0 || pl->index >= PF_LIMIT_MAX) {
sys/net/pf_ioctl.c
3080
if (((struct pool *)pf_pool_limits[pl->index].pp)->pr_nout >
sys/net/pf_ioctl.c
3087
if (pl->index == PF_LIMIT_FRAGS &&
sys/net/pf_ioctl.c
3094
error = pool_sethardlimit(pf_pool_limits[pl->index].pp,
sys/net/pf_ioctl.c
3097
pf_pool_limits[pl->index].limit_new = pl->limit;
sys/net/pf_ioctl.c
3098
pf_pool_limits[pl->index].limit = pl->limit;
sys/net/pf_norm.c
382
int index;
sys/net/pf_norm.c
389
index = pf_frent_index(frent);
sys/net/pf_norm.c
390
if (frag->fr_entries[index] >= PF_FRAG_ENTRY_LIMIT)
sys/net/pf_norm.c
392
frag->fr_entries[index]++;
sys/net/pf_norm.c
402
if (frag->fr_firstoff[index] == NULL) {
sys/net/pf_norm.c
403
KASSERT(prev == NULL || pf_frent_index(prev) < index);
sys/net/pf_norm.c
404
frag->fr_firstoff[index] = frent;
sys/net/pf_norm.c
406
if (frent->fe_off < frag->fr_firstoff[index]->fe_off) {
sys/net/pf_norm.c
407
KASSERT(prev == NULL || pf_frent_index(prev) < index);
sys/net/pf_norm.c
408
frag->fr_firstoff[index] = frent;
sys/net/pf_norm.c
411
KASSERT(pf_frent_index(prev) == index);
sys/net/pf_norm.c
427
int index;
sys/net/pf_norm.c
431
index = pf_frent_index(frent);
sys/net/pf_norm.c
432
KASSERT(frag->fr_firstoff[index] != NULL);
sys/net/pf_norm.c
433
if (frag->fr_firstoff[index]->fe_off == frent->fe_off) {
sys/net/pf_norm.c
435
frag->fr_firstoff[index] = NULL;
sys/net/pf_norm.c
438
if (pf_frent_index(next) == index) {
sys/net/pf_norm.c
439
frag->fr_firstoff[index] = next;
sys/net/pf_norm.c
441
frag->fr_firstoff[index] = NULL;
sys/net/pf_norm.c
445
KASSERT(frag->fr_firstoff[index]->fe_off < frent->fe_off);
sys/net/pf_norm.c
448
KASSERT(pf_frent_index(prev) == index);
sys/net/pf_norm.c
454
KASSERT(frag->fr_entries[index] > 0);
sys/net/pf_norm.c
455
frag->fr_entries[index]--;
sys/net/pf_norm.c
462
int index;
sys/net/pf_norm.c
479
for (index = pf_frent_index(frent); index < PF_FRAG_ENTRY_POINTS;
sys/net/pf_norm.c
480
index++) {
sys/net/pf_norm.c
481
prev = frag->fr_firstoff[index];
sys/net/pfvar.h
1442
int index;
sys/net/wg_noise.c
1007
static uint32_t index;
sys/net/wg_noise.c
1213
if (noise_remote_encrypt(&br, &index, &nonce,
sys/net/wg_noise.c
1218
if (noise_remote_encrypt(&ar, &index, &nonce,
sys/net/wg_noise.c
1221
if (noise_remote_decrypt(&br, index, nonce,
sys/net/wg_noise.c
1230
if (noise_remote_encrypt(&br, &index, &nonce,
sys/net/wg_noise.c
1233
if (noise_remote_decrypt(&ar, index, nonce,
sys/net/wg_noise.c
1313
if (noise_remote_encrypt(&ar, &index, &nonce,
sys/net/wg_noise.c
1323
if (noise_remote_encrypt(&ar, &index, &nonce,
sys/nfs/nfs_socket.c
170
int index = nfs_ptimers[rep->r_procnum] - 1;
sys/nfs/nfs_socket.c
171
int *srtt = &rep->r_nmp->nm_srtt[index];
sys/nfs/nfs_socket.c
172
int *sdrtt = &rep->r_nmp->nm_sdrtt[index];
sys/nfs/nfs_socket.c
200
int index = timer - 1;
sys/nfs/nfs_socket.c
206
rto = ((nmp->nm_srtt[index] + 3) >> 2) +
sys/nfs/nfs_socket.c
207
((nmp->nm_sdrtt[index] + 1) >> 1);
sys/nfs/nfs_socket.c
211
rto = ((nmp->nm_srtt[index] + 7) >> 3) +
sys/nfs/nfs_socket.c
212
(nmp->nm_sdrtt[index] + 1);
sys/sys/audioio.h
127
int index;
sys/sys/tracepoint.h
29
#define TRACEINDEX(func, index, args...) DT_INDEX_ENTER(func, index, args)
sys/sys/tracepoint.h
34
#define TRACEINDEX(func, index, args...)
sys/sys/videoio.h
1674
u_int8_t index;
sys/sys/videoio.h
4512
u_int32_t index; /* Format number */
sys/sys/videoio.h
4561
u_int32_t index; /* Frame size number */
sys/sys/videoio.h
4589
u_int32_t index; /* Frame format index */
sys/sys/videoio.h
4756
u_int32_t index;
sys/sys/videoio.h
4854
u_int32_t index;
sys/sys/videoio.h
5113
u_int32_t index;
sys/sys/videoio.h
5304
u_int32_t index;
sys/sys/videoio.h
5363
u_int32_t index; /* Which input */
sys/sys/videoio.h
5415
u_int32_t index; /* Which output */
sys/sys/videoio.h
5596
u_int32_t index;
sys/sys/videoio.h
5633
u_int32_t index;
sys/sys/videoio.h
5647
u_int32_t index;
sys/sys/videoio.h
5703
u_int32_t index;
sys/sys/videoio.h
5747
u_int32_t index;
sys/sys/videoio.h
5762
u_int32_t index;
sys/sys/videoio.h
6263
u_int32_t index;
sys/sys/videoio.h
6281
u_int32_t index;
usr.bin/bc/bc.y
55
ssize_t index;
usr.bin/bc/bc.y
767
instructions[current].index = CONST_STRING;
usr.bin/bc/bc.y
776
instructions[current].index = ALLOC_STRING;
usr.bin/bc/bc.y
793
instructions[current++].index = arg;
usr.bin/bc/bc.y
798
instructions[current++].index = arg;
usr.bin/bc/bc.y
810
if (instructions[i].index >= 0) {
usr.bin/bc/bc.y
811
while (instructions[i].index != END_NODE &&
usr.bin/bc/bc.y
812
instructions[i].index != i) {
usr.bin/bc/bc.y
813
emit(instructions[i].index, level + 1);
usr.bin/bc/bc.y
816
} else if (instructions[i].index != END_NODE)
usr.bin/bc/bc.y
835
if (instructions[i].index == ALLOC_STRING)
usr.bin/ctfconv/parse.c
192
it_new(uint64_t index, size_t off, const char *name, uint32_t size,
usr.bin/ctfconv/parse.c
218
it->it_idx = index;
usr.bin/dc/stack.c
306
array_assign(struct array *array, size_t index, const struct value *v)
usr.bin/dc/stack.c
308
if (index >= array->size)
usr.bin/dc/stack.c
309
array_grow(array, index+1);
usr.bin/dc/stack.c
310
stack_free_value(&array->data[index]);
usr.bin/dc/stack.c
311
array->data[index] = *v;
usr.bin/dc/stack.c
315
array_retrieve(const struct array *array, size_t index)
usr.bin/dc/stack.c
317
if (index >= array->size)
usr.bin/dc/stack.c
319
return &array->data[index];
usr.bin/dc/stack.c
323
frame_assign(struct stack *stack, size_t index, const struct value *v)
usr.bin/dc/stack.c
337
array_assign(a, index, v);
usr.bin/dc/stack.c
341
frame_retrieve(const struct stack *stack, size_t index)
usr.bin/dc/stack.c
350
return array_retrieve(a, index);
usr.bin/dig/lib/isc/heap.c
134
if (heap->index != NULL)
usr.bin/dig/lib/isc/heap.c
135
(heap->index)(heap->array[i], i);
usr.bin/dig/lib/isc/heap.c
138
if (heap->index != NULL)
usr.bin/dig/lib/isc/heap.c
139
(heap->index)(heap->array[i], i);
usr.bin/dig/lib/isc/heap.c
158
if (heap->index != NULL)
usr.bin/dig/lib/isc/heap.c
159
(heap->index)(heap->array[i], i);
usr.bin/dig/lib/isc/heap.c
163
if (heap->index != NULL)
usr.bin/dig/lib/isc/heap.c
164
(heap->index)(heap->array[i], i);
usr.bin/dig/lib/isc/heap.c
191
if (heap->index != NULL)
usr.bin/dig/lib/isc/heap.c
192
(heap->index)(heap->array[idx], 0);
usr.bin/dig/lib/isc/heap.c
63
isc_heapindex_t index;
usr.bin/dig/lib/isc/heap.c
87
heap->index = idx;
usr.bin/dig/lib/isc/include/isc/heap.h
100
isc_heap_delete(isc_heap_t *heap, unsigned int index);
usr.bin/dig/lib/isc/include/isc/heap.h
111
isc_heap_increased(isc_heap_t *heap, unsigned int index);
usr.bin/dig/lib/isc/include/isc/heap.h
123
isc_heap_decreased(isc_heap_t *heap, unsigned int index);
usr.bin/dig/lib/isc/include/isc/heap.h
135
isc_heap_element(isc_heap_t *heap, unsigned int index);
usr.bin/dig/lib/isc/include/isc/heap.h
52
isc_heapindex_t index, unsigned int size_increment,
usr.bin/dig/lib/isc/result.c
161
int index;
usr.bin/dig/lib/isc/result.c
170
index = (int)(result - table->base);
usr.bin/dig/lib/isc/result.c
171
text = table->text[index];
usr.bin/dig/lib/isc/timer.c
116
if (timer->index == 1 && timespeccmp(&timer->due, &manager->due, <))
usr.bin/dig/lib/isc/timer.c
131
if (timer->index > 0) {
usr.bin/dig/lib/isc/timer.c
132
isc_heap_delete(manager->heap, timer->index);
usr.bin/dig/lib/isc/timer.c
133
timer->index = 0;
usr.bin/dig/lib/isc/timer.c
213
timer->index = 0;
usr.bin/dig/lib/isc/timer.c
361
timer->index = 0;
usr.bin/dig/lib/isc/timer.c
393
set_index(void *what, unsigned int index) {
usr.bin/dig/lib/isc/timer.c
398
timer->index = index;
usr.bin/dig/lib/isc/timer.c
42
unsigned int index;
usr.bin/dig/lib/isc/timer.c
90
if (timer->index > 0) {
usr.bin/dig/lib/isc/timer.c
95
isc_heap_increased(manager->heap, timer->index);
usr.bin/dig/lib/isc/timer.c
97
isc_heap_decreased(manager->heap, timer->index);
usr.bin/gprof/arcs.c
113
long index;
usr.bin/gprof/arcs.c
200
for ( index = 0 ; index < nname ; index += 1 ) {
usr.bin/gprof/arcs.c
201
topsortnlp[ index ] = &nl[ index ];
usr.bin/gprof/arcs.c
207
for ( index = 0 ; index < nname ; index += 1 ) {
usr.bin/gprof/arcs.c
209
printf( "%d:" , topsortnlp[ index ] -> toporder );
usr.bin/gprof/arcs.c
210
printname( topsortnlp[ index ] );
usr.bin/gprof/arcs.c
236
for ( index = 0 ; index < nname ; index++ ) {
usr.bin/gprof/arcs.c
237
timesortnlp[index] = &nl[index];
usr.bin/gprof/arcs.c
239
for ( index = 1 ; index <= ncycle ; index++ ) {
usr.bin/gprof/arcs.c
240
timesortnlp[nname+index-1] = &cyclenl[index];
usr.bin/gprof/arcs.c
243
for ( index = 0 ; index < nname + ncycle ; index++ ) {
usr.bin/gprof/arcs.c
244
timesortnlp[ index ] -> index = index + 1;
usr.bin/gprof/arcs.c
252
int index;
usr.bin/gprof/arcs.c
255
for ( index = 0 ; index < nname ; index += 1 ) {
usr.bin/gprof/arcs.c
256
timepropagate( topsortnlp[ index ] );
usr.bin/gprof/arcs.c
397
cyclenlp -> index = 0; /* index in the graph list */
usr.bin/gprof/arcs.c
787
int index;
usr.bin/gprof/arcs.c
792
for ( index = nname-1 ; index >= 0 ; index -= 1 ) {
usr.bin/gprof/arcs.c
793
childp = topsortnlp[ index ];
usr.bin/gprof/dfn.c
156
int index;
usr.bin/gprof/dfn.c
216
for ( index = cycletop + 1 ; index <= dfn_depth ; index += 1 ) {
usr.bin/gprof/dfn.c
217
childp = dfn_stack[ index ].nlentryp;
usr.bin/gprof/gprof.h
113
int index; /* index in the graph list */
usr.bin/gprof/printgprof.c
167
snprintf(kirkbuffer, sizeof kirkbuffer, "[%d]" , np -> index );
usr.bin/gprof/printgprof.c
188
int index;
usr.bin/gprof/printgprof.c
195
for ( index = 0 ; index < nname + ncycle ; index ++ ) {
usr.bin/gprof/printgprof.c
196
parentp = timesortnlp[ index ];
usr.bin/gprof/printgprof.c
371
if ( selfp -> index != 0 ) {
usr.bin/gprof/printgprof.c
373
printf( " [%d]" , selfp -> index );
usr.bin/gprof/printgprof.c
375
printf( " (%d)" , selfp -> index );
usr.bin/gprof/printgprof.c
45
int index;
usr.bin/gprof/printgprof.c
463
snprintf(kirkbuffer, sizeof kirkbuffer, "[%d]" , cyclep->index);
usr.bin/gprof/printgprof.c
472
cyclep->cycleno , cyclep->index );
usr.bin/gprof/printgprof.c
56
for ( index = 0 ; index < nname ; index += 1 ) {
usr.bin/gprof/printgprof.c
57
sortednlp[ index ] = &nl[ index ];
usr.bin/gprof/printgprof.c
60
for ( index = 0 ; index < nname ; index += 1 ) {
usr.bin/gprof/printgprof.c
61
np = sortednlp[ index ];
usr.bin/gprof/printgprof.c
666
int index, nnames, todo, i, j;
usr.bin/gprof/printgprof.c
676
for ( index = 0 , nnames = 0 ; index < nname ; index++ ) {
usr.bin/gprof/printgprof.c
677
if ( zflag == 0 && nl[index].ncall == 0 && nl[index].time == 0 )
usr.bin/gprof/printgprof.c
679
namesortnlp[nnames++] = &nl[index];
usr.bin/gprof/printgprof.c
682
for ( index = 1 , todo = nnames ; index <= ncycle ; index++ ) {
usr.bin/gprof/printgprof.c
683
namesortnlp[todo++] = &cyclenl[index];
usr.bin/gprof/printgprof.c
686
index = ( todo + 2 ) / 3;
usr.bin/gprof/printgprof.c
687
for ( i = 0; i < index ; i++ ) {
usr.bin/gprof/printgprof.c
688
for ( j = i; j < todo ; j += index ) {
usr.bin/gprof/printgprof.c
691
snprintf(peterbuffer, sizeof peterbuffer, "[%d]" , nlp -> index );
usr.bin/gprof/printgprof.c
693
snprintf(peterbuffer, sizeof peterbuffer, "(%d)" , nlp -> index );
usr.bin/lex/scanopt.c
148
(s)->index += (n); \
usr.bin/lex/scanopt.c
163
s->index = 1;
usr.bin/lex/scanopt.c
524
if (s->index > 0 && s->index < s->argc) {
usr.bin/lex/scanopt.c
527
s->argv[s->index][s->subscript];
usr.bin/lex/scanopt.c
532
optname = s->argv[s->index];
usr.bin/lex/scanopt.c
690
SAFE_ASSIGN (optindex, s->index);
usr.bin/lex/scanopt.c
692
if (s->index >= s->argc)
usr.bin/lex/scanopt.c
696
pstart = s->argv[s->index] + s->subscript;
usr.bin/lex/scanopt.c
704
SAFE_ASSIGN (optindex, s->index + 1);
usr.bin/lex/scanopt.c
72
int index; /* Used as: argv[index][subscript]. */
usr.bin/lex/scanopt.c
771
has_next = s->index + 1 < s->argc
usr.bin/lex/scanopt.c
772
&& strcmp ("--", s->argv[s->index + 1]) != 0;
usr.bin/lex/scanopt.c
800
SAFE_ASSIGN (arg, s->argv[s->index + 1]);
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 index;
usr.bin/mail/strings.c
62
index = 0;
usr.bin/mail/strings.c
64
if (sp->s_topFree == NULL && (STRINGSIZE << index) >= s)
usr.bin/mail/strings.c
68
index++;
usr.bin/mail/strings.c
73
index = sp - &stringdope[0];
usr.bin/mail/strings.c
74
sp->s_topFree = malloc(STRINGSIZE << 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/mixerctl/mixerctl.c
297
dinfo.index = ndev;
usr.bin/mixerctl/mixerctl.c
312
infos[i].index = i;
usr.bin/openssl/certhash.c
109
hi->index, hi->is_crl);
usr.bin/openssl/certhash.c
207
(hi->is_crl ? "r" : ""), hi->index) == -1)
usr.bin/openssl/certhash.c
285
hi->index = (unsigned int)val;
usr.bin/openssl/certhash.c
384
link->index == hi->index &&
usr.bin/openssl/certhash.c
400
int index = 0;
usr.bin/openssl/certhash.c
416
index++;
usr.bin/openssl/certhash.c
418
index = 0;
usr.bin/openssl/certhash.c
421
entry->index = index;
usr.bin/openssl/certhash.c
61
unsigned int index;
usr.bin/snmp/snmpc.c
1141
int index, const char *hint)
usr.bin/snmp/snmpc.c
1148
if (index >= 1) {
usr.bin/snmp/snmpc.c
1150
for (i = 1; varbind != NULL && i < index;
usr.bin/snmp/snmpc.c
830
uint32_t index;
usr.bin/snmp/snmpc.c
920
df[i].index = oid.bo_id[oid.bo_n - 1];
usr.bin/snmp/snmpc.c
951
reqoid[(j * 3) + 0].bo_n++] = df[i + j].index;
usr.bin/snmp/snmpc.c
955
reqoid[(j * 3) + 1].bo_n++] = df[i + j].index;
usr.bin/snmp/snmpc.c
959
reqoid[(j * 3) + 2].bo_n++] = df[i + j].index;
usr.bin/snmp/snmpc.c
983
unitsoid.bo_id[unitsoid.bo_n++] = df[i].index;
usr.bin/snmp/snmpc.c
989
sizeoid.bo_id[sizeoid.bo_n++] = df[i].index;
usr.bin/snmp/snmpc.c
995
usedoid.bo_id[usedoid.bo_n++] = df[i].index;
usr.bin/ssh/libcrux_mlkem768_sha3.h
1848
libcrux_sha3_generic_keccak_KeccakState_17 *self, size_t_x2 index) {
usr.bin/ssh/libcrux_mlkem768_sha3.h
1849
return libcrux_sha3_traits_get_ij_04(self->st, index.fst, index.snd);
usr.bin/ssh/libcrux_mlkem768_sha3.h
520
size_t index;
usr.bin/ssh/libcrux_mlkem768_sha3.h
524
((Eurydice_slice_iterator){.s = x, .index = 0})
usr.bin/ssh/libcrux_mlkem768_sha3.h
528
(((iter)->index == (iter)->s.len) \
usr.bin/ssh/libcrux_mlkem768_sha3.h
532
.f0 = ((iter)->index++, \
usr.bin/ssh/libcrux_mlkem768_sha3.h
533
&((t *)((iter)->s.ptr))[(iter)->index - 1])}))
usr.bin/tic/dump_entry.c
51
#define OkIndex(index,array) ((int)(index) >= 0 && (int)(index) < (int) SIZEOF(array))
usr.bin/tmux/cmd-display-panes.c
232
u_int index;
usr.bin/tmux/cmd-display-panes.c
236
index = event->key - '0';
usr.bin/tmux/cmd-display-panes.c
240
index = 10 + (key - 'a');
usr.bin/tmux/cmd-display-panes.c
246
wp = window_pane_at_index(w, index);
usr.bin/tmux/format-draw.c
28
u_int index;
usr.bin/tmux/format-draw.c
957
fr->index = current;
usr.bin/tmux/format-draw.c
981
fr->argument, names[fr->index], fr->start, fr->end);
usr.bin/tmux/options.c
35
u_int index;
usr.bin/tmux/options.c
385
a.index = idx;
usr.bin/tmux/options.c
395
a->index = idx;
usr.bin/tmux/options.c
42
if (a1->index < a2->index)
usr.bin/tmux/options.c
44
if (a1->index > a2->index)
usr.bin/tmux/options.c
568
return (a->index);
usr.bin/tmux/utf8.c
219
u_int index;
usr.bin/tmux/utf8.c
242
if (ui1->index < ui2->index)
usr.bin/tmux/utf8.c
244
if (ui1->index > ui2->index)
usr.bin/tmux/utf8.c
275
utf8_item_by_index(u_int index)
usr.bin/tmux/utf8.c
279
ui.index = index;
usr.bin/tmux/utf8.c
434
utf8_put_item(const u_char *data, size_t size, u_int *index)
usr.bin/tmux/utf8.c
440
*index = ui->index;
usr.bin/tmux/utf8.c
442
*index);
usr.bin/tmux/utf8.c
450
ui->index = utf8_next_index++;
usr.bin/tmux/utf8.c
457
*index = ui->index;
usr.bin/tmux/utf8.c
458
log_debug("%s: added %.*s = %u", __func__, (int)size, data, *index);
usr.bin/tmux/utf8.c
466
u_int index;
usr.bin/tmux/utf8.c
474
index = (((utf8_char)ud->data[2] << 16)|
usr.bin/tmux/utf8.c
477
} else if (utf8_put_item(ud->data, ud->size, &index) != 0)
usr.bin/tmux/utf8.c
479
*uc = UTF8_SET_SIZE(ud->size)|UTF8_SET_WIDTH(ud->width)|index;
usr.bin/tmux/utf8.c
499
u_int index;
usr.bin/tmux/utf8.c
510
index = (uc & 0xffffff);
usr.bin/tmux/utf8.c
511
if ((ui = utf8_item_by_index(index)) == NULL)
usr.bin/yacc/defs.h
152
short index;
usr.bin/yacc/reader.c
1673
v[i]->index = i;
usr.bin/yacc/reader.c
1675
goal->index = start_symbol + 1;
usr.bin/yacc/reader.c
1679
v[i]->index = k;
usr.bin/yacc/reader.c
1733
k = v[i]->index;
usr.bin/yacc/reader.c
1767
ritem[1] = goal->index;
usr.bin/yacc/reader.c
1779
rlhs[i] = plhs[i]->index;
usr.bin/yacc/reader.c
1784
ritem[j] = pitem[j]->index;
usr.bin/yacc/symtab.c
125
bp->index = 1;
usr.bin/yacc/symtab.c
83
bp->index = 0;
usr.sbin/apmd/apmd.c
559
int rv, event, index;
usr.sbin/apmd/apmd.c
579
index = -1;
usr.sbin/apmd/apmd.c
583
index = APM_EVENT_INDEX(ev->data);
usr.sbin/apmd/apmd.c
586
logmsg(LOG_DEBUG, "apmevent %04x index %d", event, index);
usr.sbin/bgpd/rde_filter.c
546
rde_filter_fill(struct rde_filter *rf, size_t index,
usr.sbin/bgpd/rde_filter.c
551
if (rf->len <= index)
usr.sbin/bgpd/rde_filter.c
554
rule = &rf->rules[index];
usr.sbin/btrace/bt_parse.y
273
get_varg(int index)
usr.sbin/btrace/bt_parse.y
280
if (1 <= index && index <= nargs) {
usr.sbin/btrace/bt_parse.y
281
val = (long)strtonum(vargs[index-1], LONG_MIN, LONG_MAX,
usr.sbin/btrace/bt_parse.y
285
return ba_new(vargs[index-1], B_AT_STR);
usr.sbin/btrace/bt_parse.y
640
bi_find(struct bt_arg *ba, unsigned long index)
usr.sbin/btrace/bt_parse.y
645
ba->ba_key = (void *)index;
usr.sbin/btrace/btrace.c
1223
struct bt_arg *arg, *index;
usr.sbin/btrace/btrace.c
1231
index = SLIST_NEXT(arg, ba_next);
usr.sbin/btrace/btrace.c
1232
if (index != NULL) {
usr.sbin/btrace/btrace.c
1234
assert(SLIST_NEXT(index, ba_next) == NULL);
usr.sbin/btrace/btrace.c
1235
len = MINIMUM(ba2long(index, dtev) + 1, STRLEN);
usr.sbin/config/mkioconf.c
213
addlocnami(short index)
usr.sbin/config/mkioconf.c
219
locnami[nlocnami++] = index;
usr.sbin/crunchgen/elf_hide.c
273
int index;
usr.sbin/crunchgen/elf_hide.c
277
index = 0;
usr.sbin/crunchgen/elf_hide.c
279
while (index < strtabsize) {
usr.sbin/crunchgen/elf_hide.c
282
index = pnstr - strtab;
usr.sbin/dhcpd/dhcpd.h
272
u_int16_t index;
usr.sbin/dhcpd/dispatch.c
148
tmp->index = sdl->sdl_index;
usr.sbin/dhcpd/dispatch.c
186
if (tmp->index == 0) {
usr.sbin/dhcpd/udpsock.c
159
iface.index = sdl->sdl_index;
usr.sbin/dhcrelay/dhcpd.h
108
u_int16_t index;
usr.sbin/dhcrelay/dhcrelay.c
532
buf[0] = (uint8_t)(intf->index << 8);
usr.sbin/dhcrelay/dhcrelay.c
533
buf[1] = intf->index & 0xff;
usr.sbin/dhcrelay/dispatch.c
154
intf->index = sdl->sdl_index;
usr.sbin/dhcrelay6/bpf.c
240
ss2sin6(&ss)->sin6_scope_id = intf->index;
usr.sbin/dhcrelay6/bpf.c
257
ipi6->ipi6_ifindex = intf->index;
usr.sbin/dhcrelay6/dhcpd.h
105
uint16_t index;
usr.sbin/dhcrelay6/dhcrelay6.c
376
mreq6.ipv6mr_interface = intf->index;
usr.sbin/dhcrelay6/dispatch.c
178
intf->index = sdl->sdl_index;
usr.sbin/dhcrelay6/dispatch.c
87
iflist_getbyindex(unsigned int index)
usr.sbin/dhcrelay6/dispatch.c
92
if (intf->index != index)
usr.sbin/httpd/config.c
547
(void)strlcpy(srv_conf->index, parent->index,
usr.sbin/httpd/config.c
548
sizeof(srv_conf->index));
usr.sbin/httpd/httpd.h
480
char index[PATH_MAX];
usr.sbin/httpd/parse.y
1083
if (strlcpy(srv_conf->index, $2,
usr.sbin/httpd/parse.y
1084
sizeof(srv_conf->index)) >=
usr.sbin/httpd/parse.y
1085
sizeof(srv_conf->index)) {
usr.sbin/httpd/parse.y
264
strlcpy(s->srv_conf.index, HTTPD_INDEX,
usr.sbin/httpd/parse.y
265
sizeof(s->srv_conf.index));
usr.sbin/httpd/server_file.c
120
srv_conf->index) == -1) {
usr.sbin/httpd/server_file.c
132
if (strlcat(path, srv_conf->index, len) >= len) {
usr.sbin/ikectl/ikeca.c
1011
ca_setenv("$ENV::CADB", ca->index);
usr.sbin/ikectl/ikeca.c
285
ca_setenv("$ENV::CADB", ca->index);
usr.sbin/ikectl/ikeca.c
68
char index[PATH_MAX];
usr.sbin/ikectl/ikeca.c
957
len = snprintf(ca->index, sizeof(ca->index), "%s/index.txt",
usr.sbin/ikectl/ikeca.c
959
if (len < 0 || (size_t)len >= sizeof(ca->index))
usr.sbin/ikectl/ikeca.c
961
if (stat(ca->index, &st) != 0) {
usr.sbin/ikectl/ikeca.c
963
if ((fd = open(ca->index, O_WRONLY | O_CREAT, 0644))
usr.sbin/ikectl/ikeca.c
965
err(1, "could not create file %s", ca->index);
usr.sbin/ikectl/ikeca.c
968
err(1, "could not access %s", ca->index);
usr.sbin/ldapd/ldapd.h
143
TAILQ_ENTRY(index) next;
usr.sbin/ldapd/ldapd.h
153
TAILQ_HEAD(, index) indices;
usr.sbin/ldapd/ldapd.h
195
struct index *cindx; /* current index */
usr.sbin/ldapd/search.c
635
struct index *indx;
usr.sbin/ldapd/search.c
687
struct index *indx;
usr.sbin/ldapd/search.c
831
struct index *indx;
usr.sbin/ldomctl/mdesc.c
362
md_find_index(struct md *md, uint64_t index)
usr.sbin/ldomctl/mdesc.c
367
if (node->index == index)
usr.sbin/ldomctl/mdesc.c
384
md_find_index(md, prop->d.arc.index);
usr.sbin/ldomctl/mdesc.c
394
root->index = 1;
usr.sbin/ldomctl/mdesc.c
408
node->index = 0;
usr.sbin/ldomctl/mdesc.c
413
if (node->index == 0)
usr.sbin/ldomctl/mdesc.c
433
uint64_t index;
usr.sbin/ldomctl/mdesc.c
456
for (index = 0; index < node_blk_size / sizeof(*mde); index++, mde++) {
usr.sbin/ldomctl/mdesc.c
461
node->index = index;
usr.sbin/ldomctl/mdesc.c
490
prop->d.arc.index = betoh64(mde->d.val);
usr.sbin/ldomctl/mdesc.c
516
uint64_t index;
usr.sbin/ldomctl/mdesc.c
537
index = 0;
usr.sbin/ldomctl/mdesc.c
539
node->index = index;
usr.sbin/ldomctl/mdesc.c
541
index++;
usr.sbin/ldomctl/mdesc.c
542
index += 2;
usr.sbin/ldomctl/mdesc.c
544
node_blk_size = (index + 1) * sizeof(struct md_element);
usr.sbin/ldomctl/mdesc.c
565
mde->d.val = htobe64(TAILQ_NEXT(node, link)->index);
usr.sbin/ldomctl/mdesc.c
567
mde->d.val = htobe64(index);
usr.sbin/ldomctl/mdesc.c
587
htobe64(prop->d.arc.node->index);
usr.sbin/ldomctl/mdesc.h
68
uint64_t index;
usr.sbin/ldomctl/mdesc.h
77
uint64_t index;
usr.sbin/mtrace/mtrace.c
146
void print_trace(int index, struct resp_buf *buf);
usr.sbin/mtrace/mtrace.c
737
print_trace(int index, struct resp_buf *buf)
usr.sbin/mtrace/mtrace.c
745
i = abs(index);
usr.sbin/mtrace/mtrace.c
749
if (index > 0) printf("%3d ", -i);
usr.sbin/npppd/l2tp/l2tp.h
303
uint16_t index;
usr.sbin/npppd/l2tp/l2tpd.c
178
plistener->index = idx;
usr.sbin/npppd/l2tp/l2tpd.c
644
l2tp_ctrl_input(_l2tpd, _this->index,
usr.sbin/npppd/l2tp/l2tpd.c
650
l2tp_ctrl_input(_l2tpd, _this->index,
usr.sbin/npppd/pppoe/pppoe.h
119
uint16_t index;
usr.sbin/npppd/pppoe/pppoed.c
177
listener->index = PPPOED_LISTENER_INVALID_INDEX;
usr.sbin/npppd/pppoe/pppoed.c
530
if (session->listener_index == l->index)
usr.sbin/npppd/pppoe/pppoed.c
545
if (l->index != i && l->index != PPPOED_LISTENER_INVALID_INDEX){
usr.sbin/npppd/pppoe/pppoed.c
547
l->index, i));
usr.sbin/npppd/pppoe/pppoed.c
551
if (session->listener_index == l->index)
usr.sbin/npppd/pppoe/pppoed.c
555
l->index = i;
usr.sbin/npppd/pppoe/pppoed.c
837
if (pppoe_session_init(session, _pppoed, _this->index, session_id,
usr.sbin/npppd/pptp/pptp.h
229
uint16_t index;
usr.sbin/npppd/pptp/pptpd.c
204
plistener->index = idx;
usr.sbin/npppd/pptp/pptpd.c
636
listener->index, (struct sockaddr *)&peer);
usr.sbin/npppd/pptp/pptpd.c
790
listener->index));
usr.sbin/npppd/pptp/pptpd.c
813
seq, ack, listener->index);
usr.sbin/nsd/ixfr.c
1411
for (size_t index=0; index < rdata_len; ) {
usr.sbin/nsd/ixfr.c
1412
uint8_t label_size = rdata[index];
usr.sbin/nsd/ixfr.c
1414
return index + 1;
usr.sbin/nsd/ixfr.c
1416
return (index + 1 < rdata_len) ? index + 2 : 0;
usr.sbin/nsd/ixfr.c
1419
index += label_size + 1;
usr.sbin/nsd/ixfr.c
1431
size_t capacity = 0, index, count;
usr.sbin/nsd/ixfr.c
1441
index = count;
usr.sbin/nsd/ixfr.c
1442
if (!(count = skip_dname(rdata+index, rdata_len-index)))
usr.sbin/nsd/ixfr.c
1444
index += count;
usr.sbin/nsd/ixfr.c
1445
if (rdata_len - index < 4)
usr.sbin/nsd/ixfr.c
1447
memcpy(&serial, rdata+index, sizeof(serial));
usr.sbin/nsd/ixfrcreate.c
333
uint16_t rdlen, uint16_t* index)
usr.sbin/nsd/ixfrcreate.c
340
*index = i;
usr.sbin/nsd/ixfrcreate.c
370
uint16_t rdlen, index;
usr.sbin/nsd/ixfrcreate.c
396
if(rrset_find_rdata(rrset, ttl, buf, rdlen, &index)) {
usr.sbin/nsd/ixfrcreate.c
398
marked[marked_num++] = index;
usr.sbin/nsd/namedb.c
729
if(iter->index == -1) {
usr.sbin/nsd/namedb.c
736
assert(iter->index == 0);
usr.sbin/nsd/namedb.c
741
if(iter->index < iter->rrset->rr_count) {
usr.sbin/nsd/namedb.c
742
return iter->rrset->rrs[iter->index++];
usr.sbin/nsd/namedb.c
744
iter->index = 0;
usr.sbin/nsd/namedb.c
773
iter->index = -1;
usr.sbin/nsd/namedb.h
436
ssize_t index;
usr.sbin/nsd/rdata.c
1053
size_t index, const rr_type* rr, uint16_t offset, uint16_t* field_len,
usr.sbin/nsd/rdata.c
1057
&descriptor->rdata.fields[index];
usr.sbin/nsd/rdata.c
1118
const nsd_type_descriptor_type* descriptor, size_t index,
usr.sbin/nsd/rdata.c
1123
&descriptor->rdata.fields[index];
usr.sbin/nsd/rdata.h
550
size_t index, const rr_type* rr, uint16_t offset, uint16_t* field_len,
usr.sbin/nsd/rdata.h
557
const nsd_type_descriptor_type* descriptor, size_t index,
usr.sbin/nsd/simdzone/include/zone.h
354
size_t index, length, size;
usr.sbin/nsd/simdzone/src/fallback/bits.h
17
unsigned long index;
usr.sbin/nsd/simdzone/src/fallback/bits.h
18
if (_BitScanForward64(&index, mask))
usr.sbin/nsd/simdzone/src/fallback/bits.h
19
return index;
usr.sbin/nsd/simdzone/src/fallback/bits.h
26
unsigned long index;
usr.sbin/nsd/simdzone/src/fallback/bits.h
27
if (_BitScanReverse64(&index, mask))
usr.sbin/nsd/simdzone/src/fallback/bits.h
28
return 63 - index;
usr.sbin/nsd/simdzone/src/fallback/scanner.h
138
assert(parser->file->buffer.index <= parser->file->buffer.length);
usr.sbin/nsd/simdzone/src/fallback/scanner.h
139
size_t left = parser->file->buffer.length - parser->file->buffer.index;
usr.sbin/nsd/simdzone/src/fallback/scanner.h
140
const char *data = parser->file->buffer.data + parser->file->buffer.index;
usr.sbin/nsd/simdzone/src/fallback/scanner.h
149
parser->file->buffer.index += ZONE_BLOCK_SIZE;
usr.sbin/nsd/simdzone/src/fallback/scanner.h
154
assert(parser->file->buffer.index <= parser->file->buffer.length);
usr.sbin/nsd/simdzone/src/fallback/scanner.h
155
left = parser->file->buffer.length - parser->file->buffer.index;
usr.sbin/nsd/simdzone/src/fallback/scanner.h
166
parser->file->buffer.index += left;
usr.sbin/nsd/simdzone/src/generic/algorithm.h
134
const uint8_t index = algorithm_hash(input);
usr.sbin/nsd/simdzone/src/generic/algorithm.h
135
assert(index < 16);
usr.sbin/nsd/simdzone/src/generic/algorithm.h
136
const algorithm_t *algorithm = algorithm_hash_map[index].algorithm;
usr.sbin/nsd/simdzone/src/generic/algorithm.h
143
memcpy(&mask, algorithm_hash_map[index].mask + 8, 8);
usr.sbin/nsd/simdzone/src/generic/algorithm.h
148
memcpy(&mask, algorithm_hash_map[index].mask + 16, 8);
usr.sbin/nsd/simdzone/src/generic/cert.h
92
const uint8_t index = certificate_hash(input);
usr.sbin/nsd/simdzone/src/generic/cert.h
93
assert(index < 16);
usr.sbin/nsd/simdzone/src/generic/cert.h
94
const certificate_type_t *certificate_type = certificate_type_map[index];
usr.sbin/nsd/simdzone/src/generic/loc.h
138
uint64_t meters = 0, index = negative;
usr.sbin/nsd/simdzone/src/generic/loc.h
139
for (;; index++) {
usr.sbin/nsd/simdzone/src/generic/loc.h
140
const uint8_t digit = (uint8_t)text[index] - '0';
usr.sbin/nsd/simdzone/src/generic/loc.h
147
if (text[index] == '.') {
usr.sbin/nsd/simdzone/src/generic/loc.h
150
digits[0] = (uint8_t)text[index+1] - '0';
usr.sbin/nsd/simdzone/src/generic/loc.h
151
digits[1] = (uint8_t)text[index+2] - '0';
usr.sbin/nsd/simdzone/src/generic/loc.h
152
switch (length - index) {
usr.sbin/nsd/simdzone/src/generic/loc.h
154
index += 1;
usr.sbin/nsd/simdzone/src/generic/loc.h
160
index += 2;
usr.sbin/nsd/simdzone/src/generic/loc.h
166
index += 3;
usr.sbin/nsd/simdzone/src/generic/loc.h
173
if (index == negative || index > limit || index != length || centimeters > maximum)
usr.sbin/nsd/simdzone/src/generic/loc.h
197
size_t index = 0;
usr.sbin/nsd/simdzone/src/generic/loc.h
198
for (;; index++) {
usr.sbin/nsd/simdzone/src/generic/loc.h
199
const uint8_t digit = (uint8_t)text[index] - '0';
usr.sbin/nsd/simdzone/src/generic/loc.h
205
if (index == 0 || index > 8) // 0 .. 90000000.00
usr.sbin/nsd/simdzone/src/generic/loc.h
209
if (text[index] == '.') {
usr.sbin/nsd/simdzone/src/generic/loc.h
211
digits[0] = (uint8_t)text[index+1] - '0';
usr.sbin/nsd/simdzone/src/generic/loc.h
212
digits[1] = (uint8_t)text[index+2] - '0';
usr.sbin/nsd/simdzone/src/generic/loc.h
213
switch (length - index) {
usr.sbin/nsd/simdzone/src/generic/loc.h
215
index += 1;
usr.sbin/nsd/simdzone/src/generic/loc.h
220
index += 2;
usr.sbin/nsd/simdzone/src/generic/loc.h
226
index += 3;
usr.sbin/nsd/simdzone/src/generic/loc.h
234
if (index != length)
usr.sbin/nsd/simdzone/src/generic/parser.h
276
char *data = parser->file->buffer.data + parser->file->buffer.index;
usr.sbin/nsd/simdzone/src/generic/parser.h
286
assert((parser->file->buffer.data + parser->file->buffer.index) >= data);
usr.sbin/nsd/simdzone/src/generic/parser.h
287
size_t index = (size_t)
usr.sbin/nsd/simdzone/src/generic/parser.h
288
((parser->file->buffer.data + parser->file->buffer.index) - data);
usr.sbin/nsd/simdzone/src/generic/parser.h
291
parser->file->buffer.index = index;
usr.sbin/nsd/simdzone/src/generic/scanner.h
207
const char *base = parser->file->buffer.data + parser->file->buffer.index;
usr.sbin/nsd/simdzone/src/generic/scanner.h
294
assert(parser->file->buffer.index <= parser->file->buffer.length);
usr.sbin/nsd/simdzone/src/generic/scanner.h
295
size_t left = parser->file->buffer.length - parser->file->buffer.index;
usr.sbin/nsd/simdzone/src/generic/scanner.h
296
const char *data = parser->file->buffer.data + parser->file->buffer.index;
usr.sbin/nsd/simdzone/src/generic/scanner.h
307
parser->file->buffer.index += ZONE_BLOCK_SIZE;
usr.sbin/nsd/simdzone/src/generic/scanner.h
312
assert(parser->file->buffer.index <= parser->file->buffer.length);
usr.sbin/nsd/simdzone/src/generic/scanner.h
313
left = parser->file->buffer.length - parser->file->buffer.index;
usr.sbin/nsd/simdzone/src/generic/scanner.h
331
parser->file->buffer.index += left;
usr.sbin/nsd/simdzone/src/generic/type.h
142
const uint8_t index = hash(input0);
usr.sbin/nsd/simdzone/src/generic/type.h
143
*code = (uint16_t)types_and_classes[index].mnemonic->value;
usr.sbin/nsd/simdzone/src/generic/type.h
144
*mnemonic = types_and_classes[index].mnemonic;
usr.sbin/nsd/simdzone/src/generic/type.h
151
return types_and_classes[index].code;
usr.sbin/nsd/simdzone/src/generic/type.h
185
const uint8_t index = hash(input0);
usr.sbin/nsd/simdzone/src/generic/type.h
186
*code = (uint16_t)types_and_classes[index].mnemonic->value;
usr.sbin/nsd/simdzone/src/generic/type.h
187
*mnemonic = types_and_classes[index].mnemonic;
usr.sbin/nsd/simdzone/src/generic/type.h
194
return types_and_classes[index].code;
usr.sbin/nsd/simdzone/src/generic/wks.h
233
uint8_t index = service_hash(key & zero_mask0, length);
usr.sbin/nsd/simdzone/src/generic/wks.h
234
assert(index < 64);
usr.sbin/nsd/simdzone/src/generic/wks.h
242
memcpy(&name0, services[index].key.name, 8);
usr.sbin/nsd/simdzone/src/generic/wks.h
243
memcpy(&name1, services[index].key.name+8, 8);
usr.sbin/nsd/simdzone/src/generic/wks.h
245
*port = services[index].port;
usr.sbin/nsd/simdzone/src/generic/wks.h
248
(services[index].key.length == length);
usr.sbin/nsd/simdzone/src/westmere/type.h
128
const uint8_t index = hash(prefix);
usr.sbin/nsd/simdzone/src/westmere/type.h
129
*code = (uint16_t)types_and_classes[index].mnemonic->value;
usr.sbin/nsd/simdzone/src/westmere/type.h
130
*mnemonic = types_and_classes[index].mnemonic;
usr.sbin/nsd/simdzone/src/westmere/type.h
136
return types_and_classes[index].code;
usr.sbin/nsd/simdzone/src/westmere/type.h
164
const uint8_t index = hash(prefix);
usr.sbin/nsd/simdzone/src/westmere/type.h
165
*code = (uint16_t)types_and_classes[index].mnemonic->value;
usr.sbin/nsd/simdzone/src/westmere/type.h
166
*mnemonic = types_and_classes[index].mnemonic;
usr.sbin/nsd/simdzone/src/westmere/type.h
173
return types_and_classes[index].code == 1;
usr.sbin/nsd/util.c
256
set_bit(uint8_t bits[], size_t index)
usr.sbin/nsd/util.c
262
bits[index / 8] |= (1 << (7 - index % 8));
usr.sbin/nsd/util.c
266
clear_bit(uint8_t bits[], size_t index)
usr.sbin/nsd/util.c
272
bits[index / 8] &= ~(1 << (7 - index % 8));
usr.sbin/nsd/util.c
276
get_bit(const uint8_t bits[], size_t index)
usr.sbin/nsd/util.c
282
return bits[index / 8] & (1 << (7 - index % 8));
usr.sbin/nsd/util.h
124
void set_bit(uint8_t bits[], size_t index);
usr.sbin/nsd/util.h
129
void clear_bit(uint8_t bits[], size_t index);
usr.sbin/nsd/util.h
134
int get_bit(const uint8_t bits[], size_t index);
usr.sbin/nsd/xdp-dns-redirect_kern.c
130
if (bpf_map_lookup_elem(&xsks_map, &index)) {
usr.sbin/nsd/xdp-dns-redirect_kern.c
131
return (int) bpf_redirect_map(&xsks_map, index, XDP_PASS);
usr.sbin/nsd/xdp-dns-redirect_kern.c
99
__u32 index = ctx->rx_queue_index;
usr.sbin/nsd/xfrd-notify.c
155
reply_pkt_is_ack(struct notify_zone* zone, buffer_type* packet, int index)
usr.sbin/nsd/xfrd-notify.c
160
zone->apex_str, zone->pkts[index].dest->ip_address_spec);
usr.sbin/nsd/xfrd-notify.c
165
if(ID(packet) != zone->pkts[index].notify_query_id) {
usr.sbin/nsd/xfrd-notify.c
167
zone->apex_str, zone->pkts[index].dest->ip_address_spec);
usr.sbin/nsd/xfrd-notify.c
174
zone->pkts[index].dest->ip_address_spec);
usr.sbin/nsd/xfrd-notify.c
180
zone->apex_str, zone->pkts[index].dest->ip_address_spec));
usr.sbin/nsd/xfrd-notify.c
225
notify_pkt_done(struct notify_zone* zone, int index)
usr.sbin/nsd/xfrd-notify.c
227
zone->pkts[index].dest = NULL;
usr.sbin/nsd/xfrd-notify.c
228
zone->pkts[index].notify_retry = 0;
usr.sbin/nsd/xfrd-notify.c
229
zone->pkts[index].send_time = 0;
usr.sbin/nsd/xfrd-notify.c
230
zone->pkts[index].notify_query_id = 0;
usr.sbin/nsd/xfrd-notify.c
235
notify_pkt_retry(struct notify_zone* zone, int index)
usr.sbin/nsd/xfrd-notify.c
237
if(++zone->pkts[index].notify_retry >=
usr.sbin/nsd/xfrd-notify.c
241
zone->pkts[index].dest->ip_address_spec);
usr.sbin/nsd/xfrd-notify.c
242
notify_pkt_done(zone, index);
usr.sbin/nsd/xfrd-notify.c
245
if(!xfrd_notify_send_udp(zone, index)) {
usr.sbin/nsd/xfrd-notify.c
246
notify_pkt_retry(zone, index);
usr.sbin/nsd/xfrd-notify.c
275
xfrd_notify_send_udp(struct notify_zone* zone, int index)
usr.sbin/nsd/xfrd-notify.c
279
if(!zone->pkts[index].dest) return 0;
usr.sbin/nsd/xfrd-notify.c
283
zone->pkts[index].notify_query_id = ID(packet);
usr.sbin/nsd/xfrd-notify.c
292
if(zone->pkts[index].dest->key_options) {
usr.sbin/nsd/xfrd-notify.c
293
xfrd_tsig_sign_request(packet, &zone->notify_tsig, zone->pkts[index].dest);
usr.sbin/nsd/xfrd-notify.c
297
if((zone->pkts[index].dest->is_ipv6
usr.sbin/nsd/xfrd-notify.c
299
(!zone->pkts[index].dest->is_ipv6
usr.sbin/nsd/xfrd-notify.c
302
int fd = xfrd_send_udp(zone->pkts[index].dest, packet,
usr.sbin/nsd/xfrd-notify.c
306
zone->apex_str, zone->pkts[index].notify_retry,
usr.sbin/nsd/xfrd-notify.c
307
zone->pkts[index].dest->ip_address_spec);
usr.sbin/nsd/xfrd-notify.c
31
static int xfrd_notify_send_udp(struct notify_zone* zone, int index);
usr.sbin/nsd/xfrd-notify.c
310
if(zone->pkts[index].dest->is_ipv6)
usr.sbin/nsd/xfrd-notify.c
322
zone->pkts[index].dest, &to);
usr.sbin/nsd/xfrd-notify.c
323
if(zone->pkts[index].dest->is_ipv6
usr.sbin/nsd/xfrd-notify.c
330
zone->pkts[index].dest->ip_address_spec,
usr.sbin/nsd/xfrd-notify.c
338
zone->pkts[index].dest->ip_address_spec,
usr.sbin/nsd/xfrd-notify.c
343
zone->pkts[index].send_time = time(NULL);
usr.sbin/nsd/xfrd-notify.c
345
zone->apex_str, zone->pkts[index].notify_retry,
usr.sbin/nsd/xfrd-notify.c
346
zone->pkts[index].dest->ip_address_spec));
usr.sbin/route6d/route6d.c
83
#define SET_IN6_LINKLOCAL_IFINDEX(addr, index) \
usr.sbin/route6d/route6d.c
85
(addr).s6_addr[2] = ((index) >> 8) & 0xff; \
usr.sbin/route6d/route6d.c
86
(addr).s6_addr[3] = (index) & 0xff; \
usr.sbin/snmpd/application.c
1319
enum appl_error error, int16_t index, struct appl_varbind *vblist)
usr.sbin/snmpd/application.c
1331
appl_pdu_log(backend, SNMP_C_RESPONSE, requestid, error, index, vblist);
usr.sbin/snmpd/application.c
1363
if (error != APPL_ERROR_NOERROR && i == index)
usr.sbin/snmpd/application.c
1420
if (error != APPL_ERROR_NOERROR && (index <= 0 || index >= i)) {
usr.sbin/snmpd/application.c
1426
if (error == APPL_ERROR_NOERROR && index != 0) {
usr.sbin/snmpd/application.c
1863
int32_t requestid, uint16_t error, uint16_t index,
usr.sbin/snmpd/application.c
1902
snmpe_pdutype2string(pdutype), requestid, error, index, buf);
usr.sbin/snmpd/application_agentx.c
876
uint16_t index;
usr.sbin/snmpd/application_agentx.c
889
index = pdu->ap_payload.ap_response.ap_index;
usr.sbin/snmpd/application_agentx.c
901
index = i + 1;
usr.sbin/snmpd/application_agentx.c
911
index = i + 1;
usr.sbin/snmpd/application_agentx.c
916
error, index, response);
usr.sbin/snmpd/ax.c
696
uint32_t packetid, uint32_t sysuptime, uint16_t error, uint16_t index,
usr.sbin/snmpd/ax.c
705
ax_pdu_add_uint16(ax, index) == -1)
usr.sbin/snmpd/mib.y
101
void *index;
usr.sbin/snmpd/mib.y
1533
const char *reference, void *index, void *defval,
usr.sbin/snmpd/mib.y
683
indextype : IMPLIED index
usr.sbin/snmpd/mib.y
684
| index
usr.sbin/snmpd/mib.y
687
index : descriptor
usr.sbin/snmpd/snmpe.c
742
int32_t error, uint32_t index, struct ber_element *varbindlist)
usr.sbin/snmpd/snmpe.c
747
msg->sm_errorindex = index;
usr.sbin/tcpdump/print-gre.c
517
uint32_t hdr, ver, vlan, cos, en, sid, index;
usr.sbin/tcpdump/print-gre.c
583
index = (hdr & ERSPAN2_INDEX_MASK) >> ERSPAN2_INDEX_SHIFT;
usr.sbin/tcpdump/print-gre.c
584
printf(" index %u", index);
usr.sbin/tcpdump/print-gtp.c
473
gtp_print_str(const char **strs, u_int bound, u_int index)
usr.sbin/tcpdump/print-gtp.c
475
if (index >= bound)
usr.sbin/tcpdump/print-gtp.c
476
printf(": %u", index);
usr.sbin/tcpdump/print-gtp.c
477
else if (strs[index] != NULL)
usr.sbin/tcpdump/print-gtp.c
478
printf(": %s", strs[index]);
usr.sbin/unbound/edns-subnet/addrtree.c
218
int index;
usr.sbin/unbound/edns-subnet/addrtree.c
225
index = parent_edge->parent_index;
usr.sbin/unbound/edns-subnet/addrtree.c
229
child_edge->parent_index = index;
usr.sbin/unbound/edns-subnet/addrtree.c
231
parent_edge->parent_node->edge[index] = child_edge;
usr.sbin/unbound/edns-subnet/addrtree.c
367
int index;
usr.sbin/unbound/edns-subnet/addrtree.c
392
index = getbit(addr, sourcemask, depth);
usr.sbin/unbound/edns-subnet/addrtree.c
394
edge = node->edge[index];
usr.sbin/unbound/edns-subnet/addrtree.c
400
edge = node->edge[index];
usr.sbin/unbound/edns-subnet/addrtree.c
407
index)) {
usr.sbin/unbound/edns-subnet/addrtree.c
433
node->edge[index] = NULL;
usr.sbin/unbound/edns-subnet/addrtree.c
434
if (!edge_create(newnode, addr, common, node, index)) {
usr.sbin/unbound/edns-subnet/addrtree.c
435
node->edge[index] = edge;
usr.sbin/unbound/edns-subnet/addrtree.c
443
index = getbit(edge->str, edge->len, common);
usr.sbin/unbound/edns-subnet/addrtree.c
444
newnode->edge[index] = edge;
usr.sbin/unbound/edns-subnet/addrtree.c
446
edge->parent_index = (int)index;
usr.sbin/unbound/edns-subnet/addrtree.c
463
index^1)) {
usr.sbin/unbound/services/authzone.c
1203
size_t index = 0;
usr.sbin/unbound/services/authzone.c
1207
if(packed_rrset_find_rr(rrset->data, rdata, rdatalen, &index)) {
usr.sbin/unbound/services/authzone.c
1229
if(!rrset_remove_rr(rrset, index))
usr.sbin/unbound/services/authzone.c
1237
if(!rrset_remove_rr(rrset, index))
usr.sbin/unbound/services/authzone.c
1250
&index)) {
usr.sbin/unbound/services/authzone.c
1255
if(!rrset_remove_rr(rrset, index))
usr.sbin/unbound/services/authzone.c
1839
size_t index, int scheme, int hashalgo)
usr.sbin/unbound/services/authzone.c
1847
if(index == j) {
usr.sbin/unbound/services/authzone.c
689
size_t* index)
usr.sbin/unbound/services/authzone.c
696
*index = i;
usr.sbin/unbound/services/authzone.c
733
rrset_remove_rr(struct auth_rrset* rrset, size_t index)
usr.sbin/unbound/services/authzone.c
737
if(index >= old->count + old->rrsig_count)
usr.sbin/unbound/services/authzone.c
741
old->rr_len[index]));
usr.sbin/unbound/services/authzone.c
749
if(index < d->count) d->count--;
usr.sbin/unbound/services/authzone.c
757
if(index > 0)
usr.sbin/unbound/services/authzone.c
758
memmove(d->rr_len, old->rr_len, (index)*sizeof(size_t));
usr.sbin/unbound/services/authzone.c
759
if(index+1 < old->count+old->rrsig_count)
usr.sbin/unbound/services/authzone.c
760
memmove(&d->rr_len[index], &old->rr_len[index+1],
usr.sbin/unbound/services/authzone.c
761
(old->count+old->rrsig_count - (index+1))*sizeof(size_t));
usr.sbin/unbound/services/authzone.c
765
if(index > 0)
usr.sbin/unbound/services/authzone.c
766
memmove(d->rr_ttl, old->rr_ttl, (index)*sizeof(time_t));
usr.sbin/unbound/services/authzone.c
767
if(index+1 < old->count+old->rrsig_count)
usr.sbin/unbound/services/authzone.c
768
memmove(&d->rr_ttl[index], &old->rr_ttl[index+1],
usr.sbin/unbound/services/authzone.c
769
(old->count+old->rrsig_count - (index+1))*sizeof(time_t));
usr.sbin/unbound/services/authzone.c
774
if(i < index) oldi = i;
usr.sbin/unbound/services/localzone.c
440
local_rrset_remove_rr(struct packed_rrset_data* pd, size_t index)
usr.sbin/unbound/services/localzone.c
443
if(index >= pd->count) {
usr.sbin/unbound/services/localzone.c
447
if(index + 1 < pd->count) {
usr.sbin/unbound/services/localzone.c
449
size_t nexti = index + 1;
usr.sbin/unbound/services/localzone.c
451
memmove(pd->rr_len+index, pd->rr_len+nexti, sizeof(*pd->rr_len)*num);
usr.sbin/unbound/services/localzone.c
452
memmove(pd->rr_ttl+index, pd->rr_ttl+nexti, sizeof(*pd->rr_ttl)*num);
usr.sbin/unbound/services/localzone.c
453
memmove(pd->rr_data+index, pd->rr_data+nexti, sizeof(*pd->rr_data)*num);
usr.sbin/unbound/services/localzone.h
536
local_rrset_remove_rr(struct packed_rrset_data* pd, size_t index);
usr.sbin/unbound/services/outside_network.c
1439
pif->out[pc->index] = pif->out[pif->inuse];
usr.sbin/unbound/services/outside_network.c
1440
pif->out[pc->index]->index = pc->index;
usr.sbin/unbound/services/outside_network.c
2187
pend->pc->index = pif->inuse;
usr.sbin/unbound/services/outside_network.h
237
int index;
usr.sbin/unbound/services/rpz.c
1293
size_t index;
usr.sbin/unbound/services/rpz.c
1305
if(packed_rrset_find_rr(d, rdata, rdatalen, &index)) {
usr.sbin/unbound/services/rpz.c
1312
if(!local_rrset_remove_rr(d, index))
usr.sbin/unbound/services/rpz.c
1334
size_t index;
usr.sbin/unbound/services/rpz.c
1342
if(packed_rrset_find_rr(d, rdata, rdatalen, &index)) {
usr.sbin/unbound/services/rpz.c
1350
if(!local_rrset_remove_rr(d, index))
usr.sbin/unbound/services/rpz.c
1457
size_t index;
usr.sbin/unbound/services/rpz.c
1462
if(!packed_rrset_find_rr(d, rdatawl, rdatalen, &index))
usr.sbin/unbound/services/rpz.c
1472
if(!local_rrset_remove_rr(d, index))
usr.sbin/unbound/sldns/rrdef.c
690
size_t index)
usr.sbin/unbound/sldns/rrdef.c
693
assert(index < descriptor->_maximum
usr.sbin/unbound/sldns/rrdef.c
695
if (index < descriptor->_maximum) {
usr.sbin/unbound/sldns/rrdef.c
696
return descriptor->_wireformat[index];
usr.sbin/unbound/util/data/packed_rrset.c
403
size_t* index)
usr.sbin/unbound/util/data/packed_rrset.c
410
*index = i;
usr.sbin/unbound/util/data/packed_rrset.h
474
size_t* index);
usr.sbin/unbound/validator/val_utils.c
1080
void val_reply_remove_auth(struct reply_info* rep, size_t index)
usr.sbin/unbound/validator/val_utils.c
1082
log_assert(index < rep->rrset_count);
usr.sbin/unbound/validator/val_utils.c
1083
log_assert(index >= rep->an_numrrsets);
usr.sbin/unbound/validator/val_utils.c
1084
log_assert(index < rep->an_numrrsets+rep->ns_numrrsets);
usr.sbin/unbound/validator/val_utils.c
1085
memmove(rep->rrsets+index, rep->rrsets+index+1,
usr.sbin/unbound/validator/val_utils.c
1087
(rep->rrset_count - index - 1));
usr.sbin/unbound/validator/val_utils.h
322
void val_reply_remove_auth(struct reply_info* rep, size_t index);
usr.sbin/vmd/vm_agentx.c
141
size_t i, j, index;
usr.sbin/vmd/vm_agentx.c
182
index = agentx_varbind_get_index_integer(vminfo[i],
usr.sbin/vmd/vm_agentx.c
186
if (vir[j].vir_id < index)
usr.sbin/vmd/vm_agentx.c
188
if (vir[j].vir_id == index &&
usr.sbin/vmd/vm_agentx.c
193
if (vir[j].vir_id > index &&
usr.sbin/wsfontload/wsfontload.c
147
f.index = i;
usr.sbin/wsfontload/wsfontload.c
156
f.index, f.name,
usr.sbin/wsfontload/wsfontload.c
193
f.index = -1;