Symbol: array
arch/powerpc/kvm/e500_mmu.c
773
num_pages = DIV_ROUND_UP(cfg->array + array_len - 1, PAGE_SIZE) -
arch/powerpc/kvm/e500_mmu.c
774
cfg->array / PAGE_SIZE;
arch/powerpc/kvm/e500_mmu.c
779
ret = get_user_pages_fast(cfg->array, num_pages, FOLL_WRITE, pages);
arch/powerpc/kvm/e500_mmu.c
822
(virt + (cfg->array & (PAGE_SIZE - 1)));
arch/s390/include/asm/ccwdev.h
46
ccw_device_id_match(const struct ccw_device_id *array,
arch/s390/include/asm/ccwdev.h
49
const struct ccw_device_id *id = array;
arch/s390/include/asm/ccwdev.h
51
for (id = array; id->match_flags; id++) {
arch/s390/include/asm/ctlreg.h
101
typecheck(struct ctlreg, array[0]); \
arch/s390/include/asm/ctlreg.h
105
: [_arr] "Q" (*(struct addrtype *)(&array)), \
arch/s390/include/asm/ctlreg.h
110
#define __local_ctl_store(low, high, array) do { \
arch/s390/include/asm/ctlreg.h
112
char _[sizeof(array)]; \
arch/s390/include/asm/ctlreg.h
120
typecheck(struct ctlreg, array[0]); \
arch/s390/include/asm/ctlreg.h
123
: [_arr] "=Q" (*(struct addrtype *)(&array)) \
arch/s390/include/asm/ctlreg.h
91
#define __local_ctl_load(low, high, array) do { \
arch/s390/include/asm/ctlreg.h
93
char _[sizeof(array)]; \
arch/s390/kvm/faultin.h
83
#define kvm_s390_release_faultin_array(kvm, array, ignore) \
arch/s390/kvm/faultin.h
84
kvm_s390_release_multiple(kvm, array, ARRAY_SIZE(array), ignore)
arch/s390/kvm/faultin.h
86
#define kvm_s390_array_needs_retry_unsafe(kvm, seq, array) \
arch/s390/kvm/faultin.h
87
kvm_s390_multiple_faults_need_retry(kvm, seq, array, ARRAY_SIZE(array), true)
arch/s390/kvm/faultin.h
89
#define kvm_s390_array_needs_retry_safe(kvm, seq, array) \
arch/s390/kvm/faultin.h
90
kvm_s390_multiple_faults_need_retry(kvm, seq, array, ARRAY_SIZE(array), false)
arch/s390/tools/gen_facilities.c
130
unsigned long long *array;
arch/s390/tools/gen_facilities.c
132
array = calloc(1, 8);
arch/s390/tools/gen_facilities.c
133
if (!array)
arch/s390/tools/gen_facilities.c
140
array = realloc(array, (dword + 1) * 8);
arch/s390/tools/gen_facilities.c
141
if (!array)
arch/s390/tools/gen_facilities.c
143
memset(array + high + 1, 0, (dword - high) * 8);
arch/s390/tools/gen_facilities.c
146
array[dword] |= 1ULL << bit;
arch/s390/tools/gen_facilities.c
150
printf("_AC(0x%016llx,UL)%c", array[i], i < high ? ',' : '\n');
arch/s390/tools/gen_facilities.c
151
free(array);
arch/sparc/kernel/visemul.c
883
array(regs, insn, opf);
arch/x86/include/asm/msr.h
37
struct saved_msr *array;
arch/x86/include/asm/paravirt_types.h
198
#define paravirt_ptr(array, op) [paravirt_opptr] "m" (array.op)
arch/x86/include/asm/paravirt_types.h
348
#define ____PVOP_CALL(ret, array, op, call_clbr, extra_clbr, ...) \
arch/x86/include/asm/paravirt_types.h
354
: paravirt_ptr(array, op), \
arch/x86/include/asm/paravirt_types.h
360
#define ____PVOP_ALT_CALL(ret, array, op, alt, cond, call_clbr, \
arch/x86/include/asm/paravirt_types.h
368
: paravirt_ptr(array, op), \
arch/x86/include/asm/paravirt_types.h
374
#define __PVOP_CALL(rettype, array, op, ...) \
arch/x86/include/asm/paravirt_types.h
375
____PVOP_CALL(PVOP_RETVAL(rettype), array, op, \
arch/x86/include/asm/paravirt_types.h
378
#define __PVOP_ALT_CALL(rettype, array, op, alt, cond, ...) \
arch/x86/include/asm/paravirt_types.h
379
____PVOP_ALT_CALL(PVOP_RETVAL(rettype), array, op, alt, cond, \
arch/x86/include/asm/paravirt_types.h
383
#define __PVOP_CALLEESAVE(rettype, array, op, ...) \
arch/x86/include/asm/paravirt_types.h
384
____PVOP_CALL(PVOP_RETVAL(rettype), array, op.func, \
arch/x86/include/asm/paravirt_types.h
387
#define __PVOP_ALT_CALLEESAVE(rettype, array, op, alt, cond, ...) \
arch/x86/include/asm/paravirt_types.h
388
____PVOP_ALT_CALL(PVOP_RETVAL(rettype), array, op.func, alt, cond, \
arch/x86/include/asm/paravirt_types.h
392
#define __PVOP_VCALL(array, op, ...) \
arch/x86/include/asm/paravirt_types.h
393
(void)____PVOP_CALL(, array, op, PVOP_VCALL_CLOBBERS, \
arch/x86/include/asm/paravirt_types.h
396
#define __PVOP_ALT_VCALL(array, op, alt, cond, ...) \
arch/x86/include/asm/paravirt_types.h
397
(void)____PVOP_ALT_CALL(, array, op, alt, cond, \
arch/x86/include/asm/paravirt_types.h
401
#define __PVOP_VCALLEESAVE(array, op, ...) \
arch/x86/include/asm/paravirt_types.h
402
(void)____PVOP_CALL(, array, op.func, \
arch/x86/include/asm/paravirt_types.h
405
#define __PVOP_ALT_VCALLEESAVE(array, op, alt, cond, ...) \
arch/x86/include/asm/paravirt_types.h
406
(void)____PVOP_ALT_CALL(, array, op.func, alt, cond, \
arch/x86/include/asm/paravirt_types.h
410
#define PVOP_CALL0(rettype, array, op) \
arch/x86/include/asm/paravirt_types.h
411
__PVOP_CALL(rettype, array, op)
arch/x86/include/asm/paravirt_types.h
412
#define PVOP_VCALL0(array, op) \
arch/x86/include/asm/paravirt_types.h
413
__PVOP_VCALL(array, op)
arch/x86/include/asm/paravirt_types.h
414
#define PVOP_ALT_CALL0(rettype, array, op, alt, cond) \
arch/x86/include/asm/paravirt_types.h
415
__PVOP_ALT_CALL(rettype, array, op, alt, cond)
arch/x86/include/asm/paravirt_types.h
416
#define PVOP_ALT_VCALL0(array, op, alt, cond) \
arch/x86/include/asm/paravirt_types.h
417
__PVOP_ALT_VCALL(array, op, alt, cond)
arch/x86/include/asm/paravirt_types.h
419
#define PVOP_CALLEE0(rettype, array, op) \
arch/x86/include/asm/paravirt_types.h
420
__PVOP_CALLEESAVE(rettype, array, op)
arch/x86/include/asm/paravirt_types.h
421
#define PVOP_VCALLEE0(array, op) \
arch/x86/include/asm/paravirt_types.h
422
__PVOP_VCALLEESAVE(array, op)
arch/x86/include/asm/paravirt_types.h
423
#define PVOP_ALT_CALLEE0(rettype, array, op, alt, cond) \
arch/x86/include/asm/paravirt_types.h
424
__PVOP_ALT_CALLEESAVE(rettype, array, op, alt, cond)
arch/x86/include/asm/paravirt_types.h
425
#define PVOP_ALT_VCALLEE0(array, op, alt, cond) \
arch/x86/include/asm/paravirt_types.h
426
__PVOP_ALT_VCALLEESAVE(array, op, alt, cond)
arch/x86/include/asm/paravirt_types.h
429
#define PVOP_CALL1(rettype, array, op, arg1) \
arch/x86/include/asm/paravirt_types.h
430
__PVOP_CALL(rettype, array, op, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/paravirt_types.h
431
#define PVOP_VCALL1(array, op, arg1) \
arch/x86/include/asm/paravirt_types.h
432
__PVOP_VCALL(array, op, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/paravirt_types.h
433
#define PVOP_ALT_VCALL1(array, op, arg1, alt, cond) \
arch/x86/include/asm/paravirt_types.h
434
__PVOP_ALT_VCALL(array, op, alt, cond, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/paravirt_types.h
436
#define PVOP_CALLEE1(rettype, array, op, arg1) \
arch/x86/include/asm/paravirt_types.h
437
__PVOP_CALLEESAVE(rettype, array, op, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/paravirt_types.h
438
#define PVOP_VCALLEE1(array, op, arg1) \
arch/x86/include/asm/paravirt_types.h
439
__PVOP_VCALLEESAVE(array, op, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/paravirt_types.h
440
#define PVOP_ALT_CALLEE1(rettype, array, op, arg1, alt, cond) \
arch/x86/include/asm/paravirt_types.h
441
__PVOP_ALT_CALLEESAVE(rettype, array, op, alt, cond, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/paravirt_types.h
442
#define PVOP_ALT_VCALLEE1(array, op, arg1, alt, cond) \
arch/x86/include/asm/paravirt_types.h
443
__PVOP_ALT_VCALLEESAVE(array, op, alt, cond, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/paravirt_types.h
446
#define PVOP_CALL2(rettype, array, op, arg1, arg2) \
arch/x86/include/asm/paravirt_types.h
447
__PVOP_CALL(rettype, array, op, PVOP_CALL_ARG1(arg1), PVOP_CALL_ARG2(arg2))
arch/x86/include/asm/paravirt_types.h
448
#define PVOP_VCALL2(array, op, arg1, arg2) \
arch/x86/include/asm/paravirt_types.h
449
__PVOP_VCALL(array, op, PVOP_CALL_ARG1(arg1), PVOP_CALL_ARG2(arg2))
arch/x86/include/asm/paravirt_types.h
451
#define PVOP_CALL3(rettype, array, op, arg1, arg2, arg3) \
arch/x86/include/asm/paravirt_types.h
452
__PVOP_CALL(rettype, array, op, PVOP_CALL_ARG1(arg1), \
arch/x86/include/asm/paravirt_types.h
454
#define PVOP_VCALL3(array, op, arg1, arg2, arg3) \
arch/x86/include/asm/paravirt_types.h
455
__PVOP_VCALL(array, op, PVOP_CALL_ARG1(arg1), \
arch/x86/include/asm/paravirt_types.h
458
#define PVOP_CALL4(rettype, array, op, arg1, arg2, arg3, arg4) \
arch/x86/include/asm/paravirt_types.h
459
__PVOP_CALL(rettype, array, op, \
arch/x86/include/asm/paravirt_types.h
462
#define PVOP_VCALL4(array, op, arg1, arg2, arg3, arg4) \
arch/x86/include/asm/paravirt_types.h
463
__PVOP_VCALL(array, op, PVOP_CALL_ARG1(arg1), PVOP_CALL_ARG2(arg2), \
arch/x86/kvm/cpuid.c
1319
static struct kvm_cpuid_entry2 *get_next_cpuid(struct kvm_cpuid_array *array)
arch/x86/kvm/cpuid.c
1321
if (array->nent >= array->maxnent)
arch/x86/kvm/cpuid.c
1324
return &array->entries[array->nent++];
arch/x86/kvm/cpuid.c
1327
static struct kvm_cpuid_entry2 *do_host_cpuid(struct kvm_cpuid_array *array,
arch/x86/kvm/cpuid.c
1330
struct kvm_cpuid_entry2 *entry = get_next_cpuid(array);
arch/x86/kvm/cpuid.c
1407
static int __do_cpuid_func_emulated(struct kvm_cpuid_array *array, u32 func)
arch/x86/kvm/cpuid.c
1409
if (array->nent >= array->maxnent)
arch/x86/kvm/cpuid.c
1412
array->nent += cpuid_func_emulated(&array->entries[array->nent], func, false);
arch/x86/kvm/cpuid.c
1416
static inline int __do_cpuid_func(struct kvm_cpuid_array *array, u32 function)
arch/x86/kvm/cpuid.c
1426
entry = do_host_cpuid(array, function, 0);
arch/x86/kvm/cpuid.c
1465
entry = do_host_cpuid(array, function, i);
arch/x86/kvm/cpuid.c
1485
entry = do_host_cpuid(array, function, 1);
arch/x86/kvm/cpuid.c
1495
entry = do_host_cpuid(array, function, 2);
arch/x86/kvm/cpuid.c
1549
entry = do_host_cpuid(array, function, 1);
arch/x86/kvm/cpuid.c
1573
entry = do_host_cpuid(array, function, i);
arch/x86/kvm/cpuid.c
1586
--array->nent;
arch/x86/kvm/cpuid.c
1612
entry = do_host_cpuid(array, function, 1);
arch/x86/kvm/cpuid.c
1634
if (!do_host_cpuid(array, function, i))
arch/x86/kvm/cpuid.c
1646
if (!do_host_cpuid(array, function, i))
arch/x86/kvm/cpuid.c
1660
entry = do_host_cpuid(array, function, 1);
arch/x86/kvm/cpuid.c
1693
entry = do_host_cpuid(array, function, 1);
arch/x86/kvm/cpuid.c
1913
static int do_cpuid_func(struct kvm_cpuid_array *array, u32 func,
arch/x86/kvm/cpuid.c
1917
return __do_cpuid_func_emulated(array, func);
arch/x86/kvm/cpuid.c
1919
return __do_cpuid_func(array, func);
arch/x86/kvm/cpuid.c
1924
static int get_cpuid_func(struct kvm_cpuid_array *array, u32 func,
arch/x86/kvm/cpuid.c
1935
r = do_cpuid_func(array, func, type);
arch/x86/kvm/cpuid.c
1939
limit = array->entries[array->nent - 1].eax;
arch/x86/kvm/cpuid.c
1941
r = do_cpuid_func(array, func, type);
arch/x86/kvm/cpuid.c
1984
struct kvm_cpuid_array array = {
arch/x86/kvm/cpuid.c
1997
array.entries = kvzalloc_objs(struct kvm_cpuid_entry2, cpuid->nent);
arch/x86/kvm/cpuid.c
1998
if (!array.entries)
arch/x86/kvm/cpuid.c
2001
array.maxnent = cpuid->nent;
arch/x86/kvm/cpuid.c
2004
r = get_cpuid_func(&array, funcs[i], type);
arch/x86/kvm/cpuid.c
2008
cpuid->nent = array.nent;
arch/x86/kvm/cpuid.c
2010
if (copy_to_user(entries, array.entries,
arch/x86/kvm/cpuid.c
2011
array.nent * sizeof(struct kvm_cpuid_entry2)))
arch/x86/kvm/cpuid.c
2015
kvfree(array.entries);
arch/x86/mm/pat/set_memory.c
2121
pgprot_t mask, int array)
arch/x86/mm/pat/set_memory.c
2124
(array ? CPA_ARRAY : 0), NULL);
arch/x86/mm/pat/set_memory.c
2128
pgprot_t mask, int array)
arch/x86/mm/pat/set_memory.c
2131
(array ? CPA_ARRAY : 0), NULL);
arch/x86/mm/pf_in.c
119
#define CHECK_OP_TYPE(opcode, array, type) \
arch/x86/mm/pf_in.c
120
for (i = 0; i < ARRAY_SIZE(array); i++) { \
arch/x86/mm/pf_in.c
121
if (array[i] == opcode) { \
arch/x86/net/bpf_jit_comp.c
874
struct bpf_array *array;
arch/x86/net/bpf_jit_comp.c
888
array = container_of(poke->tail_call.map, struct bpf_array, map);
arch/x86/net/bpf_jit_comp.c
889
mutex_lock(&array->aux->poke_mutex);
arch/x86/net/bpf_jit_comp.c
890
target = array->ptrs[poke->tail_call.key];
arch/x86/net/bpf_jit_comp.c
905
mutex_unlock(&array->aux->poke_mutex);
arch/x86/power/cpu.c
403
if (saved_msrs->array) {
arch/x86/power/cpu.c
408
memcpy(msr_array, saved_msrs->array,
arch/x86/power/cpu.c
411
kfree(saved_msrs->array);
arch/x86/power/cpu.c
422
saved_msrs->array = msr_array;
arch/x86/power/cpu.c
43
struct saved_msr *msr = ctxt->saved_msrs.array;
arch/x86/power/cpu.c
55
struct saved_msr *msr = ctxt->saved_msrs.array;
drivers/accel/habanalabs/common/habanalabs.h
224
#define UNSET_GLBL_SEC_BIT(array, b) ((array)[((b) / 32)] |= (1 << ((b) % 32)))
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
11
#define UNSET_GLBL_SEC_BIT(array, b) ((array)[((b) / 32)] |= (1 << ((b) % 32)))
drivers/base/property.c
558
const char *propname, const char * const *array, size_t n)
drivers/base/property.c
567
ret = match_string(array, n, string);
drivers/clk/clk-si5351.c
1178
u32 array[4];
drivers/clk/clk-si5351.c
1194
sz = of_property_read_variable_u32_array(np, "silabs,pll-source", array, 2, 4);
drivers/clk/clk-si5351.c
1200
"missing pll-source for pll %d\n", array[sz - 1]);
drivers/clk/clk-si5351.c
1203
num = array[i];
drivers/clk/clk-si5351.c
1204
val = array[i + 1];
drivers/clk/clk-si5351.c
1239
sz = of_property_read_variable_u32_array(np, "silabs,pll-reset-mode", array, 2, 4);
drivers/clk/clk-si5351.c
1245
"missing pll-reset-mode for pll %d\n", array[sz - 1]);
drivers/clk/clk-si5351.c
1248
num = array[i];
drivers/clk/clk-si5351.c
1249
val = array[i + 1];
drivers/comedi/drivers/adl_pci9111.c
394
unsigned short *array = data;
drivers/comedi/drivers/adl_pci9111.c
402
array[i] = ((array[i] >> shift) & maxdata) ^ invert;
drivers/comedi/drivers/adl_pci9118.c
603
unsigned short *array = data;
drivers/comedi/drivers/adl_pci9118.c
610
array[i] = be16_to_cpu(barray[i]);
drivers/comedi/drivers/adl_pci9118.c
612
array[i] ^= 0x8000;
drivers/comedi/drivers/adl_pci9118.c
614
array[i] = (array[i] >> 4) & 0x0fff;
drivers/comedi/drivers/amplc_pci224.c
918
unsigned short *array = data;
drivers/comedi/drivers/amplc_pci224.c
919
unsigned int length = num_bytes / sizeof(*array);
drivers/comedi/drivers/amplc_pci224.c
937
array[i] = (array[i] << shift) - offset;
drivers/comedi/drivers/das16.c
791
struct comedi_subdevice *s, void *array,
drivers/comedi/drivers/das16.c
795
unsigned short *data = array;
drivers/comedi/drivers/das16.c
798
__le16 *buf = array;
drivers/comedi/drivers/das16m1.c
125
unsigned short *array = data;
drivers/comedi/drivers/das16m1.c
135
array[i] = DAS16M1_AI_TO_SAMPLE(array[i]);
drivers/comedi/drivers/das1800.c
326
unsigned short *array = data;
drivers/comedi/drivers/das1800.c
334
array[i] = comedi_offset_munge(s, array[i]);
drivers/comedi/drivers/ni_mio_common.c
1418
unsigned short *array = data;
drivers/comedi/drivers/ni_mio_common.c
1431
array[i] = le16_to_cpu(barray[i]);
drivers/comedi/drivers/ni_mio_common.c
1436
array[i] += devpriv->ai_offset[chan_index];
drivers/comedi/drivers/ni_mio_common.c
2540
unsigned short *array = data;
drivers/comedi/drivers/ni_mio_common.c
2548
unsigned short val = array[i];
drivers/comedi/drivers/ni_mio_common.c
2560
array[i] = val;
drivers/counter/counter-sysfs.c
573
const struct counter_array *const array = comp->priv;
drivers/counter/counter-sysfs.c
629
switch (array->type) {
drivers/counter/counter-sysfs.c
769
const struct counter_array *const array = comp->priv;
drivers/counter/counter-sysfs.c
776
for (idx = 0; idx < array->length; idx++) {
drivers/counter/counter-sysfs.c
787
element->type = array->type;
drivers/counter/counter-sysfs.c
788
element->avail = array->avail;
drivers/counter/counter-sysfs.c
813
const struct counter_array *array;
drivers/counter/counter-sysfs.c
821
array = ext->priv;
drivers/counter/counter-sysfs.c
822
id += array->length;
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
83
#define avg_array(array, len) ( \
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
85
typeof(&(array)[0]) _array = (array); \
drivers/dma-buf/dma-fence-array.c
105
struct dma_fence_array *array = to_dma_fence_array(fence);
drivers/dma-buf/dma-fence-array.c
122
num_pending = atomic_read_acquire(&array->num_pending);
drivers/dma-buf/dma-fence-array.c
123
if (test_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT, &array->base.flags)) {
drivers/dma-buf/dma-fence-array.c
129
for (i = 0; i < array->num_fences; ++i) {
drivers/dma-buf/dma-fence-array.c
130
if (dma_fence_is_signaled(array->fences[i]) && !--num_pending)
drivers/dma-buf/dma-fence-array.c
136
dma_fence_array_clear_pending_error(array);
drivers/dma-buf/dma-fence-array.c
142
struct dma_fence_array *array = to_dma_fence_array(fence);
drivers/dma-buf/dma-fence-array.c
145
for (i = 0; i < array->num_fences; ++i)
drivers/dma-buf/dma-fence-array.c
146
dma_fence_put(array->fences[i]);
drivers/dma-buf/dma-fence-array.c
148
kfree(array->fences);
drivers/dma-buf/dma-fence-array.c
155
struct dma_fence_array *array = to_dma_fence_array(fence);
drivers/dma-buf/dma-fence-array.c
158
for (i = 0; i < array->num_fences; ++i)
drivers/dma-buf/dma-fence-array.c
159
dma_fence_set_deadline(array->fences[i], deadline);
drivers/dma-buf/dma-fence-array.c
180
struct dma_fence_array *array;
drivers/dma-buf/dma-fence-array.c
182
return kzalloc_flex(*array, callbacks, num_fences);
drivers/dma-buf/dma-fence-array.c
198
void dma_fence_array_init(struct dma_fence_array *array,
drivers/dma-buf/dma-fence-array.c
205
array->num_fences = num_fences;
drivers/dma-buf/dma-fence-array.c
207
spin_lock_init(&array->lock);
drivers/dma-buf/dma-fence-array.c
208
dma_fence_init(&array->base, &dma_fence_array_ops, &array->lock,
drivers/dma-buf/dma-fence-array.c
210
init_irq_work(&array->work, irq_dma_fence_array_work);
drivers/dma-buf/dma-fence-array.c
212
atomic_set(&array->num_pending, signal_on_any ? 1 : num_fences);
drivers/dma-buf/dma-fence-array.c
213
array->fences = fences;
drivers/dma-buf/dma-fence-array.c
215
array->base.error = PENDING_ERROR;
drivers/dma-buf/dma-fence-array.c
257
struct dma_fence_array *array;
drivers/dma-buf/dma-fence-array.c
259
array = dma_fence_array_alloc(num_fences);
drivers/dma-buf/dma-fence-array.c
260
if (!array)
drivers/dma-buf/dma-fence-array.c
263
dma_fence_array_init(array, num_fences, fences,
drivers/dma-buf/dma-fence-array.c
266
return array;
drivers/dma-buf/dma-fence-array.c
28
static void dma_fence_array_set_pending_error(struct dma_fence_array *array,
drivers/dma-buf/dma-fence-array.c
281
struct dma_fence_array *array = to_dma_fence_array(fence);
drivers/dma-buf/dma-fence-array.c
287
for (i = 0; i < array->num_fences; i++) {
drivers/dma-buf/dma-fence-array.c
288
if (array->fences[i]->context != context)
drivers/dma-buf/dma-fence-array.c
298
struct dma_fence_array *array;
drivers/dma-buf/dma-fence-array.c
303
array = to_dma_fence_array(head);
drivers/dma-buf/dma-fence-array.c
304
if (!array)
drivers/dma-buf/dma-fence-array.c
307
if (!array->num_fences)
drivers/dma-buf/dma-fence-array.c
310
return array->fences[0];
drivers/dma-buf/dma-fence-array.c
317
struct dma_fence_array *array = to_dma_fence_array(head);
drivers/dma-buf/dma-fence-array.c
319
if (!array || index >= array->num_fences)
drivers/dma-buf/dma-fence-array.c
322
return array->fences[index];
drivers/dma-buf/dma-fence-array.c
36
cmpxchg(&array->base.error, PENDING_ERROR, error);
drivers/dma-buf/dma-fence-array.c
39
static void dma_fence_array_clear_pending_error(struct dma_fence_array *array)
drivers/dma-buf/dma-fence-array.c
42
cmpxchg(&array->base.error, PENDING_ERROR, 0);
drivers/dma-buf/dma-fence-array.c
47
struct dma_fence_array *array = container_of(wrk, typeof(*array), work);
drivers/dma-buf/dma-fence-array.c
49
dma_fence_array_clear_pending_error(array);
drivers/dma-buf/dma-fence-array.c
51
dma_fence_signal(&array->base);
drivers/dma-buf/dma-fence-array.c
52
dma_fence_put(&array->base);
drivers/dma-buf/dma-fence-array.c
60
struct dma_fence_array *array = array_cb->array;
drivers/dma-buf/dma-fence-array.c
62
dma_fence_array_set_pending_error(array, f->error);
drivers/dma-buf/dma-fence-array.c
64
if (atomic_dec_and_test(&array->num_pending))
drivers/dma-buf/dma-fence-array.c
65
irq_work_queue(&array->work);
drivers/dma-buf/dma-fence-array.c
67
dma_fence_put(&array->base);
drivers/dma-buf/dma-fence-array.c
72
struct dma_fence_array *array = to_dma_fence_array(fence);
drivers/dma-buf/dma-fence-array.c
73
struct dma_fence_array_cb *cb = array->callbacks;
drivers/dma-buf/dma-fence-array.c
76
for (i = 0; i < array->num_fences; ++i) {
drivers/dma-buf/dma-fence-array.c
77
cb[i].array = array;
drivers/dma-buf/dma-fence-array.c
86
dma_fence_get(&array->base);
drivers/dma-buf/dma-fence-array.c
87
if (dma_fence_add_callback(array->fences[i], &cb[i].cb,
drivers/dma-buf/dma-fence-array.c
89
int error = array->fences[i]->error;
drivers/dma-buf/dma-fence-array.c
91
dma_fence_array_set_pending_error(array, error);
drivers/dma-buf/dma-fence-array.c
92
dma_fence_put(&array->base);
drivers/dma-buf/dma-fence-array.c
93
if (atomic_dec_and_test(&array->num_pending)) {
drivers/dma-buf/dma-fence-array.c
94
dma_fence_array_clear_pending_error(array);
drivers/dma-buf/dma-fence-unwrap.c
122
struct dma_fence *tmp, *unsignaled = NULL, **array;
drivers/dma-buf/dma-fence-unwrap.c
158
array = kmalloc_objs(*array, count);
drivers/dma-buf/dma-fence-unwrap.c
159
if (!array)
drivers/dma-buf/dma-fence-unwrap.c
166
array[count++] = dma_fence_get(tmp);
drivers/dma-buf/dma-fence-unwrap.c
179
count = dma_fence_dedup_array(array, count);
drivers/dma-buf/dma-fence-unwrap.c
182
result = dma_fence_array_create(count, array,
drivers/dma-buf/dma-fence-unwrap.c
187
dma_fence_put(array[i]);
drivers/dma-buf/dma-fence-unwrap.c
198
tmp = array[0];
drivers/dma-buf/dma-fence-unwrap.c
201
kfree(array);
drivers/dma-buf/dma-fence-unwrap.c
21
cursor->array = dma_fence_chain_contained(cursor->chain);
drivers/dma-buf/dma-fence-unwrap.c
23
return dma_fence_array_first(cursor->array);
drivers/dma-buf/dma-fence-unwrap.c
54
tmp = dma_fence_array_next(cursor->array, cursor->index);
drivers/dma-buf/dma-resv.c
630
struct dma_fence_array *array;
drivers/dma-buf/dma-resv.c
650
array = dma_fence_array_create(count, fences,
drivers/dma-buf/dma-resv.c
653
if (!array) {
drivers/dma-buf/dma-resv.c
660
*fence = &array->base;
drivers/dma-buf/st-dma-fence-unwrap.c
102
struct dma_fence *f, *chain, *array;
drivers/dma-buf/st-dma-fence-unwrap.c
111
array = mock_array(1, f);
drivers/dma-buf/st-dma-fence-unwrap.c
112
if (!array)
drivers/dma-buf/st-dma-fence-unwrap.c
115
chain = mock_chain(NULL, array);
drivers/dma-buf/st-dma-fence-unwrap.c
125
struct dma_fence *fence, *f1, *f2, *array;
drivers/dma-buf/st-dma-fence-unwrap.c
143
array = mock_array(2, f1, f2);
drivers/dma-buf/st-dma-fence-unwrap.c
144
if (!array)
drivers/dma-buf/st-dma-fence-unwrap.c
147
dma_fence_unwrap_for_each(fence, &iter, array) {
drivers/dma-buf/st-dma-fence-unwrap.c
163
dma_fence_put(array);
drivers/dma-buf/st-dma-fence-unwrap.c
213
struct dma_fence *fence, *f1, *f2, *array, *chain;
drivers/dma-buf/st-dma-fence-unwrap.c
231
array = mock_array(2, f1, f2);
drivers/dma-buf/st-dma-fence-unwrap.c
232
if (!array)
drivers/dma-buf/st-dma-fence-unwrap.c
235
chain = mock_chain(NULL, array);
drivers/dma-buf/st-dma-fence-unwrap.c
52
struct dma_fence_array *array;
drivers/dma-buf/st-dma-fence-unwrap.c
66
array = dma_fence_array_create(num_fences, fences,
drivers/dma-buf/st-dma-fence-unwrap.c
69
if (!array)
drivers/dma-buf/st-dma-fence-unwrap.c
71
return &array->base;
drivers/firmware/arm_scmi/pinctrl.c
245
u32 *array;
drivers/firmware/arm_scmi/pinctrl.c
279
p->array[st->desc_index + st->loop_idx] =
drivers/firmware/arm_scmi/pinctrl.c
280
le16_to_cpu(r->array[st->loop_idx]);
drivers/firmware/arm_scmi/pinctrl.c
288
u16 size, u32 *array)
drivers/firmware/arm_scmi/pinctrl.c
300
.array = array,
drivers/firmware/arm_scmi/pinctrl.c
303
if (!array || !size || type == PIN_TYPE)
drivers/firmware/arm_scmi/pinctrl.c
92
__le16 array[];
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
388
u32 *array;
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
422
p->array[st->desc_index + st->loop_idx] =
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
429
void *array)
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
437
.array = array,
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
442
if (!array || !size || !*size)
drivers/firmware/efi/libstub/efistub.h
123
#define efi_get_handle_at(array, idx) \
drivers/firmware/efi/libstub/efistub.h
124
(efi_is_native() ? (array)[idx] \
drivers/firmware/efi/libstub/efistub.h
125
: (efi_handle_t)(unsigned long)((u32 *)(array))[idx])
drivers/firmware/efi/libstub/efistub.h
130
#define for_each_efi_handle(handle, array, num) \
drivers/firmware/efi/libstub/efistub.h
132
((handle = efi_get_handle_at((array), __i)) || true); \
drivers/gpio/gpiolib.c
5126
struct gpio_descs *array;
drivers/gpio/gpiolib.c
5131
array = krealloc(descs, descs_size +
drivers/gpio/gpiolib.c
5134
if (!array) {
drivers/gpio/gpiolib.c
5139
descs = array;
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
111
entry = &array[--first_userptr];
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
113
entry = &array[last_entry++];
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
132
sort(array, last_entry, sizeof(struct amdgpu_bo_list_entry),
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
143
amdgpu_bo_unref(&array[i].bo);
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
145
amdgpu_bo_unref(&array[i].bo);
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
74
struct amdgpu_bo_list_entry *array;
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
87
array = list->entries;
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1686
struct dma_fence **array;
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1691
array = kzalloc_objs(struct dma_fence *, fence_count);
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1693
if (array == NULL)
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1704
array[i] = fence;
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1712
r = dma_fence_wait_any_timeout(array, fence_count, true, timeout,
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1722
if (first < fence_count && array[first])
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1723
r = array[first]->error;
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1729
dma_fence_put(array[i]);
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1730
kfree(array);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c
435
static unsigned int count_elements_in_span(int *array, unsigned int array_size, unsigned int span)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c
454
if (array[i] - span_start_value <= span) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c
465
span_start_value = array[span_start_index - 1] + 1;
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
381
VCEClockInfoArray *array = (VCEClockInfoArray *)
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
388
1 + array->ucNumEntries * sizeof(VCEClockInfo));
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
393
1 + (array->ucNumEntries * sizeof (VCEClockInfo)) +
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
410
((u8 *)&array->entries[0] +
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
426
((u8 *)&array->entries[0] +
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
442
UVDClockInfoArray *array = (UVDClockInfoArray *)
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
449
1 + (array->ucNumEntries * sizeof (UVDClockInfo)));
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
462
((u8 *)&array->entries[0] +
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
1206
const UVDClockInfoArray *array)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
1219
&array->entries[table->entries[i].ucUVDClockInfoIndex];
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
1235
const VCEClockInfoArray *array)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
1246
const VCEClockInfo *entry = &array->entries[table->entries[i].ucVCEClockInfoIndex];
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
1336
const VCEClockInfoArray *array = (const VCEClockInfoArray *)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
1344
table, array);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
1351
const UVDClockInfoArray *array = (const UVDClockInfoArray *)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
1358
&hwmgr->dyn_state.uvd_clock_voltage_dependency_table, ptable, array);
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
2769
uint32_t array = smu_data->dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
2792
clk_activity_offset = array + (sizeof(SMU7_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
2804
up_hyst_offset = array + (sizeof(SMU7_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
2806
down_hyst_offset = array + (sizeof(SMU7_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
478
uint32_t array = smu_data->dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
505
result = ci_copy_bytes_to_smc(hwmgr, array,
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
1010
uint32_t array = smu_data->smu7_data.dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
1086
result = smu7_copy_bytes_to_smc(hwmgr, array, (uint8_t *)levels,
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
1226
uint32_t array = smu_data->smu7_data.dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
1265
result = smu7_copy_bytes_to_smc(hwmgr, array, (uint8_t *)levels,
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
2556
uint32_t array = smu_data->smu7_data.dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
2579
clk_activity_offset = array + (sizeof(SMU73_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
2591
up_hyst_offset = array + (sizeof(SMU73_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c
2593
down_hyst_offset = array + (sizeof(SMU73_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
1046
uint32_t array = smu_data->smu7_data.dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
1146
result = smu7_copy_bytes_to_smc(hwmgr, array, (uint8_t *)levels,
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
1215
uint32_t array = smu_data->smu7_data.dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
1246
result = smu7_copy_bytes_to_smc(hwmgr, array, (uint8_t *)levels,
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
2594
uint32_t array = smu_data->smu7_data.dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
2617
clk_activity_offset = array + (sizeof(SMU74_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
2629
up_hyst_offset = array + (sizeof(SMU74_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c
2631
down_hyst_offset = array + (sizeof(SMU74_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
3155
uint32_t array = smu_data->smu7_data.dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
3178
clk_activity_offset = array + (sizeof(SMU72_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
3190
up_hyst_offset = array + (sizeof(SMU72_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c
3192
down_hyst_offset = array + (sizeof(SMU72_Discrete_GraphicsLevel) * i)
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
1041
uint32_t array = smu_data->smu7_data.dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
1079
result = smu7_copy_bytes_to_smc(hwmgr, array, (uint8_t *)levels,
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
874
uint32_t array = smu_data->smu7_data.dpm_table_start +
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
957
result = smu7_copy_bytes_to_smc(hwmgr, array, (uint8_t *)levels,
drivers/gpu/drm/i915/display/intel_dp.c
1522
static void seq_buf_print_array(struct seq_buf *s, const int *array, int nelem)
drivers/gpu/drm/i915/display/intel_dp.c
1527
seq_buf_printf(s, "%s%d", i ? ", " : "", array[i]);
drivers/gpu/drm/i915/gem/i915_gem_busy.c
61
struct dma_fence_array *array = to_dma_fence_array(fence);
drivers/gpu/drm/i915/gem/i915_gem_busy.c
62
struct dma_fence **child = array->fences;
drivers/gpu/drm/i915/gem/i915_gem_busy.c
63
unsigned int nchild = array->num_fences;
drivers/gpu/drm/i915/gem/i915_gem_wait.c
119
struct dma_fence_array *array = to_dma_fence_array(fence);
drivers/gpu/drm/i915/gem/i915_gem_wait.c
122
for (i = 0; i < array->num_fences; i++)
drivers/gpu/drm/i915/gem/i915_gem_wait.c
123
fence_set_priority(array->fences[i], attr);
drivers/gpu/drm/i915/gvt/handlers.c
776
i915_reg_t *array = force_nonpriv_white_list;
drivers/gpu/drm/i915/gvt/handlers.c
781
if (reg > array[mid].reg)
drivers/gpu/drm/i915/gvt/handlers.c
783
else if (reg < array[mid].reg)
drivers/gpu/drm/i915/i915_request.c
1412
struct dma_fence_array *array = to_dma_fence_array(fence);
drivers/gpu/drm/i915/i915_request.c
1416
child = array->fences;
drivers/gpu/drm/i915/i915_request.c
1417
nchild = array->num_fences;
drivers/gpu/drm/i915/i915_request.c
1516
struct dma_fence_array *array = to_dma_fence_array(fence);
drivers/gpu/drm/i915/i915_request.c
1518
child = array->fences;
drivers/gpu/drm/i915/i915_request.c
1519
nchild = array->num_fences;
drivers/gpu/drm/imagination/pvr_drv.c
1206
if (copy_from_user(out_alloc, u64_to_user_ptr(in->array),
drivers/gpu/drm/imagination/pvr_drv.c
1210
void __user *in_ptr = u64_to_user_ptr(in->array);
drivers/gpu/drm/imagination/pvr_drv.c
1243
if (copy_to_user(u64_to_user_ptr(out->array), in,
drivers/gpu/drm/imagination/pvr_drv.c
1248
void __user *out_ptr = u64_to_user_ptr(out->array);
drivers/gpu/drm/imagination/pvr_drv.c
1260
clear_user(u64_to_user_ptr(out->array + obj_size),
drivers/gpu/drm/imagination/pvr_sync.c
107
pvr_sync_signal_array_search(struct xarray *array, u32 handle, u64 point)
drivers/gpu/drm/imagination/pvr_sync.c
112
xa_for_each(array, i, sig_sync) {
drivers/gpu/drm/imagination/pvr_sync.c
121
pvr_sync_signal_array_get(struct xarray *array, struct drm_file *file, u32 handle, u64 point)
drivers/gpu/drm/imagination/pvr_sync.c
125
sig_sync = pvr_sync_signal_array_search(array, handle, point);
drivers/gpu/drm/imagination/pvr_sync.c
129
return pvr_sync_signal_array_add(array, file, handle, point);
drivers/gpu/drm/imagination/pvr_sync.c
133
pvr_sync_signal_array_collect_ops(struct xarray *array,
drivers/gpu/drm/imagination/pvr_sync.c
149
sig_sync = pvr_sync_signal_array_get(array, file,
drivers/gpu/drm/imagination/pvr_sync.c
160
pvr_sync_signal_array_update_fences(struct xarray *array,
drivers/gpu/drm/imagination/pvr_sync.c
172
sig_sync = pvr_sync_signal_array_search(array, sync_ops[i].handle,
drivers/gpu/drm/imagination/pvr_sync.c
189
pvr_sync_signal_array_push_fences(struct xarray *array)
drivers/gpu/drm/imagination/pvr_sync.c
194
xa_for_each(array, i, sig_sync) {
drivers/gpu/drm/imagination/pvr_sync.c
48
pvr_sync_signal_array_cleanup(struct xarray *array)
drivers/gpu/drm/imagination/pvr_sync.c
53
xa_for_each(array, i, sig_sync)
drivers/gpu/drm/imagination/pvr_sync.c
56
xa_destroy(array);
drivers/gpu/drm/imagination/pvr_sync.c
60
pvr_sync_signal_array_add(struct xarray *array, struct drm_file *file, u32 handle, u64 point)
drivers/gpu/drm/imagination/pvr_sync.c
95
err = xa_alloc(array, &id, sig_sync, xa_limit_32b, GFP_KERNEL);
drivers/gpu/drm/imagination/pvr_sync.h
61
pvr_sync_signal_array_cleanup(struct xarray *array);
drivers/gpu/drm/imagination/pvr_sync.h
64
pvr_sync_signal_array_collect_ops(struct xarray *array,
drivers/gpu/drm/imagination/pvr_sync.h
70
pvr_sync_signal_array_update_fences(struct xarray *array,
drivers/gpu/drm/imagination/pvr_sync.h
76
pvr_sync_signal_array_push_fences(struct xarray *array);
drivers/gpu/drm/imagination/pvr_vm.c
1004
if (!query.static_data_areas.array) {
drivers/gpu/drm/imagination/pvr_vm.c
1043
if (!query.heaps.array) {
drivers/gpu/drm/imagination/pvr_vm.c
1053
dest = query.heaps.array;
drivers/gpu/drm/panthor/panthor_drv.c
112
if (copy_from_user(out_alloc, u64_to_user_ptr(in->array),
drivers/gpu/drm/panthor/panthor_drv.c
116
void __user *in_ptr = u64_to_user_ptr(in->array);
drivers/gpu/drm/radeon/r600_dpm.c
1070
VCEClockInfoArray *array = (VCEClockInfoArray *)
drivers/gpu/drm/radeon/r600_dpm.c
1077
1 + array->ucNumEntries * sizeof(VCEClockInfo));
drivers/gpu/drm/radeon/r600_dpm.c
1082
1 + (array->ucNumEntries * sizeof (VCEClockInfo)) +
drivers/gpu/drm/radeon/r600_dpm.c
1101
((u8 *)&array->entries[0] +
drivers/gpu/drm/radeon/r600_dpm.c
1116
((u8 *)&array->entries[0] +
drivers/gpu/drm/radeon/r600_dpm.c
1132
UVDClockInfoArray *array = (UVDClockInfoArray *)
drivers/gpu/drm/radeon/r600_dpm.c
1139
1 + (array->ucNumEntries * sizeof (UVDClockInfo)));
drivers/gpu/drm/radeon/r600_dpm.c
1154
((u8 *)&array->entries[0] +
drivers/gpu/drm/tests/drm_exec_test.c
155
struct drm_gem_object *array[] = {
drivers/gpu/drm/tests/drm_exec_test.c
172
ret = drm_exec_prepare_array(&exec, array, ARRAY_SIZE(array),
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
549
SVGA3dArray array;
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
1586
&decl->array.surfaceId, NULL);
drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c
22
static int emit_choice(char *buf, int choice, const char * const *array, size_t size)
drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c
31
array[n],
drivers/hid/hid-core.c
1487
static int search(__s32 *array, __s32 value, unsigned n)
drivers/hid/hid-core.c
1490
if (*array++ == value)
drivers/iio/accel/adxl372.c
397
static int adxl372_find_closest_match(const int *array,
drivers/iio/accel/adxl372.c
403
if (val <= array[i])
drivers/iio/accel/adxl380.c
531
static int adxl380_find_match_1d_tbl(const int *array, unsigned int size,
drivers/iio/accel/adxl380.c
537
if (val == array[i])
drivers/iio/adc/ad7124.c
241
static int ad7124_find_closest_match(const int *array,
drivers/iio/adc/ad7124.c
251
diff_new = abs(val - array[i]);
drivers/iio/adc/ad7280a.c
363
unsigned int *array)
drivers/iio/adc/ad7280a.c
395
if (array)
drivers/iio/adc/ad7280a.c
396
array[i] = tmp;
drivers/iio/dac/ad5758.c
245
static int ad5758_find_closest_match(const int *array,
drivers/iio/dac/ad5758.c
251
if (val <= array[i])
drivers/iio/light/adux1020.c
437
static inline int adux1020_find_index(const int array[][2], int count, int val,
drivers/iio/light/adux1020.c
443
if (val == array[i][0] && val2 == array[i][1])
drivers/iio/proximity/hx9023s.c
600
u32 array[2];
drivers/iio/proximity/hx9023s.c
623
array, ARRAY_SIZE(array));
drivers/iio/proximity/hx9023s.c
625
data->ch_data[reg].channel_positive = array[0];
drivers/iio/proximity/hx9023s.c
626
data->ch_data[reg].channel_negative = array[1];
drivers/infiniband/hw/hfi1/user_exp_rcv.c
521
u32 *array;
drivers/infiniband/hw/hfi1/user_exp_rcv.c
530
array = kcalloc(uctxt->expected_count, sizeof(*array), GFP_KERNEL);
drivers/infiniband/hw/hfi1/user_exp_rcv.c
531
if (!array)
drivers/infiniband/hw/hfi1/user_exp_rcv.c
536
memcpy(array, fd->invalid_tids, sizeof(*array) *
drivers/infiniband/hw/hfi1/user_exp_rcv.c
554
array, sizeof(*array) * tinfo->tidcnt))
drivers/infiniband/hw/hfi1/user_exp_rcv.c
557
kfree(array);
drivers/infiniband/hw/hns/hns_roce_cq.c
207
ret = xa_err(xa_store_irq(&cq_table->array, hr_cq->cqn, hr_cq, GFP_KERNEL));
drivers/infiniband/hw/hns/hns_roce_cq.c
221
xa_erase_irq(&cq_table->array, hr_cq->cqn);
drivers/infiniband/hw/hns/hns_roce_cq.c
240
xa_erase_irq(&cq_table->array, hr_cq->cqn);
drivers/infiniband/hw/hns/hns_roce_cq.c
514
hr_cq = xa_load(&hr_dev->cq_table.array,
drivers/infiniband/hw/hns/hns_roce_cq.c
543
xa_lock(&hr_dev->cq_table.array);
drivers/infiniband/hw/hns/hns_roce_cq.c
544
hr_cq = xa_load(&hr_dev->cq_table.array,
drivers/infiniband/hw/hns/hns_roce_cq.c
548
xa_unlock(&hr_dev->cq_table.array);
drivers/infiniband/hw/hns/hns_roce_cq.c
573
xa_init(&cq_table->array);
drivers/infiniband/hw/hns/hns_roce_cq.c
600
xa_destroy(&hr_dev->cq_table.array);
drivers/infiniband/hw/hns/hns_roce_device.h
503
struct xarray array;
drivers/infiniband/hw/mlx5/srq.h
55
struct xarray array;
drivers/infiniband/hw/mlx5/srq_cmd.c
653
err = xa_err(xa_store_irq(&table->array, srq->srqn, srq, GFP_KERNEL));
drivers/infiniband/hw/mlx5/srq_cmd.c
672
tmp = xa_cmpxchg_irq(&table->array, srq->srqn, srq, XA_ZERO_ENTRY, 0);
drivers/infiniband/hw/mlx5/srq_cmd.c
683
xa_cmpxchg_irq(&table->array, srq->srqn, XA_ZERO_ENTRY, srq, 0);
drivers/infiniband/hw/mlx5/srq_cmd.c
686
xa_erase_irq(&table->array, srq->srqn);
drivers/infiniband/hw/mlx5/srq_cmd.c
740
xa_lock(&table->array);
drivers/infiniband/hw/mlx5/srq_cmd.c
741
srq = xa_load(&table->array, srqn);
drivers/infiniband/hw/mlx5/srq_cmd.c
744
xa_unlock(&table->array);
drivers/infiniband/hw/mlx5/srq_cmd.c
761
xa_init_flags(&table->array, XA_FLAGS_LOCK_IRQ);
drivers/infiniband/hw/mlx5/srq_cmd.c
86
xa_lock_irq(&table->array);
drivers/infiniband/hw/mlx5/srq_cmd.c
87
srq = xa_load(&table->array, srqn);
drivers/infiniband/hw/mlx5/srq_cmd.c
90
xa_unlock_irq(&table->array);
drivers/infiniband/hw/mthca/mthca_allocator.c
113
void *mthca_array_get(struct mthca_array *array, int index)
drivers/infiniband/hw/mthca/mthca_allocator.c
117
if (array->page_list[p].page)
drivers/infiniband/hw/mthca/mthca_allocator.c
118
return array->page_list[p].page[index & MTHCA_ARRAY_MASK];
drivers/infiniband/hw/mthca/mthca_allocator.c
123
int mthca_array_set(struct mthca_array *array, int index, void *value)
drivers/infiniband/hw/mthca/mthca_allocator.c
128
if (!array->page_list[p].page)
drivers/infiniband/hw/mthca/mthca_allocator.c
129
array->page_list[p].page = (void **) get_zeroed_page(GFP_ATOMIC);
drivers/infiniband/hw/mthca/mthca_allocator.c
131
if (!array->page_list[p].page)
drivers/infiniband/hw/mthca/mthca_allocator.c
134
array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value;
drivers/infiniband/hw/mthca/mthca_allocator.c
135
++array->page_list[p].used;
drivers/infiniband/hw/mthca/mthca_allocator.c
140
void mthca_array_clear(struct mthca_array *array, int index)
drivers/infiniband/hw/mthca/mthca_allocator.c
144
if (--array->page_list[p].used == 0) {
drivers/infiniband/hw/mthca/mthca_allocator.c
145
free_page((unsigned long) array->page_list[p].page);
drivers/infiniband/hw/mthca/mthca_allocator.c
146
array->page_list[p].page = NULL;
drivers/infiniband/hw/mthca/mthca_allocator.c
148
array->page_list[p].page[index & MTHCA_ARRAY_MASK] = NULL;
drivers/infiniband/hw/mthca/mthca_allocator.c
150
if (array->page_list[p].used < 0)
drivers/infiniband/hw/mthca/mthca_allocator.c
152
array, index, p, array->page_list[p].used);
drivers/infiniband/hw/mthca/mthca_allocator.c
155
int mthca_array_init(struct mthca_array *array, int nent)
drivers/infiniband/hw/mthca/mthca_allocator.c
160
array->page_list = kmalloc_objs(*array->page_list, npage);
drivers/infiniband/hw/mthca/mthca_allocator.c
161
if (!array->page_list)
drivers/infiniband/hw/mthca/mthca_allocator.c
165
array->page_list[i].page = NULL;
drivers/infiniband/hw/mthca/mthca_allocator.c
166
array->page_list[i].used = 0;
drivers/infiniband/hw/mthca/mthca_allocator.c
172
void mthca_array_cleanup(struct mthca_array *array, int nent)
drivers/infiniband/hw/mthca/mthca_allocator.c
177
free_page((unsigned long) array->page_list[i].page);
drivers/infiniband/hw/mthca/mthca_allocator.c
179
kfree(array->page_list);
drivers/infiniband/hw/mthca/mthca_dev.h
418
void *mthca_array_get(struct mthca_array *array, int index);
drivers/infiniband/hw/mthca/mthca_dev.h
419
int mthca_array_set(struct mthca_array *array, int index, void *value);
drivers/infiniband/hw/mthca/mthca_dev.h
420
void mthca_array_clear(struct mthca_array *array, int index);
drivers/infiniband/hw/mthca/mthca_dev.h
421
int mthca_array_init(struct mthca_array *array, int nent);
drivers/infiniband/hw/mthca/mthca_dev.h
422
void mthca_array_cleanup(struct mthca_array *array, int nent);
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
354
struct iommu_user_data_array *array)
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
364
cmds = kzalloc_objs(*cmds, array->entry_num);
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
368
end = cmds + array->entry_num;
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
372
cmds, sizeof(*cmds), array,
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
398
array->entry_num = cur - cmds;
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h
1067
struct iommu_user_data_array *array);
drivers/iommu/intel/nested.c
104
for (index = 0; index < array->entry_num; index++) {
drivers/iommu/intel/nested.c
105
ret = iommu_copy_struct_from_user_array(&inv_entry, array,
drivers/iommu/intel/nested.c
130
array->entry_num = processed;
drivers/iommu/intel/nested.c
92
struct iommu_user_data_array *array)
drivers/iommu/intel/nested.c
99
if (array->type != IOMMU_HWPT_INVALIDATE_DATA_VTD_S1) {
drivers/iommu/iommufd/selftest.c
663
struct iommu_user_data_array *array)
drivers/iommu/iommufd/selftest.c
671
if (array->entry_num == 0 &&
drivers/iommu/iommufd/selftest.c
672
array->type == IOMMU_VIOMMU_INVALIDATE_DATA_SELFTEST) {
drivers/iommu/iommufd/selftest.c
673
array->entry_num = 0;
drivers/iommu/iommufd/selftest.c
677
cmds = kzalloc_objs(*cmds, array->entry_num);
drivers/iommu/iommufd/selftest.c
681
end = cmds + array->entry_num;
drivers/iommu/iommufd/selftest.c
685
cmds, sizeof(*cmds), array,
drivers/iommu/iommufd/selftest.c
727
array->entry_num = cur - cmds;
drivers/iommu/iommufd/selftest.c
904
struct iommu_user_data_array *array)
drivers/iommu/iommufd/selftest.c
912
if (array->type != IOMMU_HWPT_INVALIDATE_DATA_SELFTEST) {
drivers/iommu/iommufd/selftest.c
917
for ( ; i < array->entry_num; i++) {
drivers/iommu/iommufd/selftest.c
918
rc = iommu_copy_struct_from_user_array(&inv, array,
drivers/iommu/iommufd/selftest.c
946
array->entry_num = processed;
drivers/md/bcache/util.h
251
#define array_alloc(array) \
drivers/md/bcache/util.h
253
typeof((array)->freelist) _ret = (array)->freelist; \
drivers/md/bcache/util.h
256
(array)->freelist = *((typeof((array)->freelist) *) _ret);\
drivers/md/bcache/util.h
261
#define array_free(array, ptr) \
drivers/md/bcache/util.h
263
typeof((array)->freelist) _ptr = ptr; \
drivers/md/bcache/util.h
265
*((typeof((array)->freelist) *) _ptr) = (array)->freelist; \
drivers/md/bcache/util.h
266
(array)->freelist = _ptr; \
drivers/md/bcache/util.h
269
#define array_allocator_init(array) \
drivers/md/bcache/util.h
271
typeof((array)->freelist) _i; \
drivers/md/bcache/util.h
273
BUILD_BUG_ON(sizeof((array)->data[0]) < sizeof(void *)); \
drivers/md/bcache/util.h
274
(array)->freelist = NULL; \
drivers/md/bcache/util.h
276
for (_i = (array)->data; \
drivers/md/bcache/util.h
277
_i < (array)->data + ARRAY_SIZE((array)->data); \
drivers/md/bcache/util.h
279
array_free(array, _i); \
drivers/md/bcache/util.h
282
#define array_freelist_empty(array) ((array)->freelist == NULL)
drivers/media/common/tveeprom.c
37
#define STRM(array, i) \
drivers/media/common/tveeprom.c
38
(i < sizeof(array) / sizeof(char *) ? array[i] : "unknown")
drivers/media/i2c/ir-kbd-i2c.c
517
static int find_slot(u16 *array, unsigned int size, u16 val)
drivers/media/i2c/ir-kbd-i2c.c
522
if (get_unaligned_be16(&array[i]) == val) {
drivers/media/i2c/ir-kbd-i2c.c
524
} else if (!array[i]) {
drivers/media/i2c/ir-kbd-i2c.c
525
put_unaligned_be16(val, &array[i]);
drivers/media/i2c/ov08x40.c
1752
static bool filter_by_mipi_lanes(const void *array, size_t index,
drivers/media/i2c/ov08x40.c
1755
const struct ov08x40_mode *mode = array;
drivers/media/i2c/vd55g1.c
1800
char *prop_name, u32 *array, int *nb)
drivers/media/i2c/vd55g1.c
1813
prop_name, array, *nb);
drivers/media/i2c/vd55g1.c
1819
if (array[i] >= VD55G1_NB_GPIOS) {
drivers/media/i2c/vd55g1.c
1821
array[i]);
drivers/media/i2c/vd55g1.c
701
const u8 *array, int *err)
drivers/media/i2c/vd55g1.c
716
ret = regmap_bulk_write(sensor->regmap, reg, array, sz);
drivers/media/i2c/vd55g1.c
721
array += sz;
drivers/media/i2c/vd56g3.c
1216
u32 *array, unsigned int *nb)
drivers/media/i2c/vd56g3.c
1234
ret = device_property_read_u32_array(dev, prop_name, array, *nb);
drivers/media/i2c/vd56g3.c
1241
if (array[i] >= VD56G3_NB_GPIOS) {
drivers/media/i2c/vd56g3.c
1242
dev_err(dev, "Invalid GPIO: %d\n", array[i]);
drivers/media/i2c/vgxy61.c
511
unsigned int nb, const u8 *array)
drivers/media/i2c/vgxy61.c
520
array, sz);
drivers/media/i2c/vgxy61.c
525
array += sz;
drivers/media/pci/mgb4/mgb4_cmt.c
170
static size_t freq_srch(u32 key, const u32 *array, size_t size)
drivers/media/pci/mgb4/mgb4_cmt.c
178
if (array[m] < key)
drivers/media/pci/mgb4/mgb4_cmt.c
180
else if (array[m] > key)
drivers/media/pci/mgb4/mgb4_cmt.c
189
return (abs(key - array[l]) < abs(key - array[r])) ? l : r;
drivers/media/platform/amphion/vpu_helpers.c
19
int vpu_helper_find_in_array_u8(const u8 *array, u32 size, u32 x)
drivers/media/platform/amphion/vpu_helpers.c
24
if (array[i] == x)
drivers/media/platform/amphion/vpu_helpers.c
569
static u32 vpu_find_v4l2_id(u32 id, struct codec_id_mapping *array, u32 array_sz)
drivers/media/platform/amphion/vpu_helpers.c
573
if (!array || !array_sz)
drivers/media/platform/amphion/vpu_helpers.c
577
if (id == array[i].id)
drivers/media/platform/amphion/vpu_helpers.c
578
return array[i].v4l2_id;
drivers/media/platform/amphion/vpu_helpers.h
16
int vpu_helper_find_in_array_u8(const u8 *array, u32 size, u32 x);
drivers/media/platform/chips-media/wave5/wave5-vdi.c
151
int wave5_vdi_allocate_array(struct vpu_device *vpu_dev, struct vpu_buf *array, unsigned int count,
drivers/media/platform/chips-media/wave5/wave5-vdi.c
160
if (array[i].size == size)
drivers/media/platform/chips-media/wave5/wave5-vdi.c
163
if (array[i].size != 0)
drivers/media/platform/chips-media/wave5/wave5-vdi.c
164
wave5_vdi_free_dma_memory(vpu_dev, &array[i]);
drivers/media/platform/chips-media/wave5/wave5-vdi.c
169
array[i] = vb_buf;
drivers/media/platform/chips-media/wave5/wave5-vdi.c
173
wave5_vdi_free_dma_memory(vpu_dev, &array[i]);
drivers/media/platform/chips-media/wave5/wave5-vpuapi.h
849
int wave5_vdi_allocate_array(struct vpu_device *vpu_dev, struct vpu_buf *array, unsigned int count,
drivers/media/platform/qcom/venus/helpers.c
821
static u32 find_v4l2_id(u32 hfi_id, const struct id_mapping *array, unsigned int array_sz)
drivers/media/platform/qcom/venus/helpers.c
825
if (!array || !array_sz)
drivers/media/platform/qcom/venus/helpers.c
829
if (hfi_id == array[i].hfi_id)
drivers/media/platform/qcom/venus/helpers.c
830
return array[i].v4l2_id;
drivers/media/platform/qcom/venus/helpers.c
835
static u32 find_hfi_id(u32 v4l2_id, const struct id_mapping *array, unsigned int array_sz)
drivers/media/platform/qcom/venus/helpers.c
839
if (!array || !array_sz)
drivers/media/platform/qcom/venus/helpers.c
843
if (v4l2_id == array[i].v4l2_id)
drivers/media/platform/qcom/venus/helpers.c
844
return array[i].hfi_id;
drivers/media/radio/si4713/si4713.c
156
static int usecs_to_dev(unsigned long usecs, unsigned long const array[],
drivers/media/radio/si4713/si4713.c
163
if (array[(i * 2) + 1] >= usecs) {
drivers/media/radio/si4713/si4713.c
164
rval = array[i * 2];
drivers/media/rc/bpf-lirc.c
236
struct bpf_prog_array *array;
drivers/media/rc/bpf-lirc.c
238
array = lirc_rcu_dereference(rcdev->raw->progs);
drivers/media/rc/bpf-lirc.c
239
if (!array)
drivers/media/rc/bpf-lirc.c
242
for (item = array->items; item->prog; item++)
drivers/media/rc/bpf-lirc.c
245
bpf_prog_array_free(array);
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
287
if (width > hdcs->array.width)
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
288
width = hdcs->array.width;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
292
if (height + 2 * hdcs->array.border + HDCS_1020_BOTTOM_Y_SKIP
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
293
> hdcs->array.height)
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
294
height = hdcs->array.height - 2 * hdcs->array.border -
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
297
y = (hdcs->array.height - HDCS_1020_BOTTOM_Y_SKIP - height) / 2
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
298
+ hdcs->array.top;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
300
if (height > hdcs->array.height)
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
301
height = hdcs->array.height;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
303
y = hdcs->array.top + (hdcs->array.height - height) / 2;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
306
x = hdcs->array.left + (hdcs->array.width - width) / 2;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
375
hdcs->array.left = 8;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
376
hdcs->array.top = 8;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
377
hdcs->array.width = HDCS_1X00_DEF_WIDTH;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
378
hdcs->array.height = HDCS_1X00_DEF_HEIGHT;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
379
hdcs->array.border = 4;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
437
hdcs->array.left = 24;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
438
hdcs->array.top = 4;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
439
hdcs->array.width = HDCS_1020_DEF_WIDTH;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
440
hdcs->array.height = 304;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
441
hdcs->array.border = 4;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
517
return hdcs_set_size(sd, hdcs->array.width, hdcs->array.height);
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
66
} array;
drivers/media/v4l2-core/v4l2-common.c
160
__v4l2_find_nearest_size_conditional(const void *array, size_t array_size,
drivers/media/v4l2-core/v4l2-common.c
164
bool (*func)(const void *array,
drivers/media/v4l2-core/v4l2-common.c
173
if (!array)
drivers/media/v4l2-core/v4l2-common.c
176
for (i = 0; i < array_size; i++, array += entry_size) {
drivers/media/v4l2-core/v4l2-common.c
177
const u32 *entry_width = array + width_offset;
drivers/media/v4l2-core/v4l2-common.c
178
const u32 *entry_height = array + height_offset;
drivers/media/v4l2-core/v4l2-common.c
180
if (func && !func(array, i, context))
drivers/media/v4l2-core/v4l2-common.c
188
best = array;
drivers/media/v4l2-core/v4l2-fwnode.c
132
u32 array[1 + V4L2_MBUS_CSI2_MAX_DATA_LANES];
drivers/media/v4l2-core/v4l2-fwnode.c
152
array[i] = bus->data_lanes[i];
drivers/media/v4l2-core/v4l2-fwnode.c
153
if (array[i])
drivers/media/v4l2-core/v4l2-fwnode.c
166
fwnode_property_read_u32_array(fwnode, "data-lanes", array,
drivers/media/v4l2-core/v4l2-fwnode.c
177
if (lanes_used & BIT(array[i])) {
drivers/media/v4l2-core/v4l2-fwnode.c
180
array[i]);
drivers/media/v4l2-core/v4l2-fwnode.c
183
lanes_used |= BIT(array[i]);
drivers/media/v4l2-core/v4l2-fwnode.c
186
pr_debug("lane %u position %u\n", i, array[i]);
drivers/media/v4l2-core/v4l2-fwnode.c
248
bus->data_lanes[i] = array[i];
drivers/media/v4l2-core/v4l2-fwnode.c
253
"lane-polarities", array,
drivers/media/v4l2-core/v4l2-fwnode.c
257
bus->lane_polarities[i] = array[i];
drivers/media/v4l2-core/v4l2-fwnode.c
259
i, array[i] ? "" : "not ");
drivers/media/v4l2-core/v4l2-fwnode.c
267
"line-orders", array,
drivers/media/v4l2-core/v4l2-fwnode.c
275
if (array[i] >= ARRAY_SIZE(orders)) {
drivers/media/v4l2-core/v4l2-fwnode.c
277
i, array[i]);
drivers/media/v4l2-core/v4l2-fwnode.c
283
bus->line_orders[i] = array[i];
drivers/media/v4l2-core/v4l2-fwnode.c
285
orders[array[i]]);
drivers/mfd/si476x-prop.c
20
const u16 array[],
drivers/mfd/si476x-prop.c
26
if (element == array[i])
drivers/misc/lkdtm/bugs.c
471
int array[] __counted_by(count);
drivers/misc/lkdtm/bugs.c
480
inst = kzalloc_flex(*inst, array, element_count + 1);
drivers/misc/lkdtm/bugs.c
488
inst->array[1] = element_count;
drivers/misc/lkdtm/bugs.c
489
ignored = inst->array[1];
drivers/misc/lkdtm/bugs.c
492
inst->array[element_count] = element_count;
drivers/misc/lkdtm/bugs.c
493
ignored = inst->array[element_count];
drivers/misc/vmw_vmci/vmci_handle_array.c
100
array->entries[array->size] = VMCI_INVALID_HANDLE;
drivers/misc/vmw_vmci/vmci_handle_array.c
110
vmci_handle_arr_get_entry(const struct vmci_handle_arr *array, u32 index)
drivers/misc/vmw_vmci/vmci_handle_array.c
112
if (unlikely(index >= array->size))
drivers/misc/vmw_vmci/vmci_handle_array.c
115
return array->entries[index];
drivers/misc/vmw_vmci/vmci_handle_array.c
118
bool vmci_handle_arr_has_entry(const struct vmci_handle_arr *array,
drivers/misc/vmw_vmci/vmci_handle_array.c
123
for (i = 0; i < array->size; i++)
drivers/misc/vmw_vmci/vmci_handle_array.c
124
if (vmci_handle_is_equal(array->entries[i], entry_handle))
drivers/misc/vmw_vmci/vmci_handle_array.c
13
struct vmci_handle_arr *array;
drivers/misc/vmw_vmci/vmci_handle_array.c
134
struct vmci_handle *vmci_handle_arr_get_handles(struct vmci_handle_arr *array)
drivers/misc/vmw_vmci/vmci_handle_array.c
136
if (array->size)
drivers/misc/vmw_vmci/vmci_handle_array.c
137
return array->entries;
drivers/misc/vmw_vmci/vmci_handle_array.c
22
array = kmalloc_flex(*array, entries, capacity, GFP_ATOMIC);
drivers/misc/vmw_vmci/vmci_handle_array.c
23
if (!array)
drivers/misc/vmw_vmci/vmci_handle_array.c
26
array->capacity = capacity;
drivers/misc/vmw_vmci/vmci_handle_array.c
27
array->max_capacity = max_capacity;
drivers/misc/vmw_vmci/vmci_handle_array.c
28
array->size = 0;
drivers/misc/vmw_vmci/vmci_handle_array.c
30
return array;
drivers/misc/vmw_vmci/vmci_handle_array.c
33
void vmci_handle_arr_destroy(struct vmci_handle_arr *array)
drivers/misc/vmw_vmci/vmci_handle_array.c
35
kfree(array);
drivers/misc/vmw_vmci/vmci_handle_array.c
41
struct vmci_handle_arr *array = *array_ptr;
drivers/misc/vmw_vmci/vmci_handle_array.c
43
if (unlikely(array->size >= array->capacity)) {
drivers/misc/vmw_vmci/vmci_handle_array.c
46
u32 capacity_bump = min(array->max_capacity - array->capacity,
drivers/misc/vmw_vmci/vmci_handle_array.c
47
array->capacity);
drivers/misc/vmw_vmci/vmci_handle_array.c
48
size_t new_size = struct_size(array, entries,
drivers/misc/vmw_vmci/vmci_handle_array.c
49
size_add(array->capacity, capacity_bump));
drivers/misc/vmw_vmci/vmci_handle_array.c
51
if (array->size >= array->max_capacity)
drivers/misc/vmw_vmci/vmci_handle_array.c
54
new_array = krealloc(array, new_size, GFP_ATOMIC);
drivers/misc/vmw_vmci/vmci_handle_array.c
59
*array_ptr = array = new_array;
drivers/misc/vmw_vmci/vmci_handle_array.c
62
array->entries[array->size] = handle;
drivers/misc/vmw_vmci/vmci_handle_array.c
63
array->size++;
drivers/misc/vmw_vmci/vmci_handle_array.c
71
struct vmci_handle vmci_handle_arr_remove_entry(struct vmci_handle_arr *array,
drivers/misc/vmw_vmci/vmci_handle_array.c
77
for (i = 0; i < array->size; i++) {
drivers/misc/vmw_vmci/vmci_handle_array.c
78
if (vmci_handle_is_equal(array->entries[i], entry_handle)) {
drivers/misc/vmw_vmci/vmci_handle_array.c
79
handle = array->entries[i];
drivers/misc/vmw_vmci/vmci_handle_array.c
80
array->size--;
drivers/misc/vmw_vmci/vmci_handle_array.c
81
array->entries[i] = array->entries[array->size];
drivers/misc/vmw_vmci/vmci_handle_array.c
82
array->entries[array->size] = VMCI_INVALID_HANDLE;
drivers/misc/vmw_vmci/vmci_handle_array.c
93
struct vmci_handle vmci_handle_arr_remove_tail(struct vmci_handle_arr *array)
drivers/misc/vmw_vmci/vmci_handle_array.c
97
if (array->size) {
drivers/misc/vmw_vmci/vmci_handle_array.c
98
array->size--;
drivers/misc/vmw_vmci/vmci_handle_array.c
99
handle = array->entries[array->size];
drivers/misc/vmw_vmci/vmci_handle_array.h
27
void vmci_handle_arr_destroy(struct vmci_handle_arr *array);
drivers/misc/vmw_vmci/vmci_handle_array.h
30
struct vmci_handle vmci_handle_arr_remove_entry(struct vmci_handle_arr *array,
drivers/misc/vmw_vmci/vmci_handle_array.h
33
struct vmci_handle vmci_handle_arr_remove_tail(struct vmci_handle_arr *array);
drivers/misc/vmw_vmci/vmci_handle_array.h
35
vmci_handle_arr_get_entry(const struct vmci_handle_arr *array, u32 index);
drivers/misc/vmw_vmci/vmci_handle_array.h
36
bool vmci_handle_arr_has_entry(const struct vmci_handle_arr *array,
drivers/misc/vmw_vmci/vmci_handle_array.h
38
struct vmci_handle *vmci_handle_arr_get_handles(struct vmci_handle_arr *array);
drivers/misc/vmw_vmci/vmci_handle_array.h
41
const struct vmci_handle_arr *array)
drivers/misc/vmw_vmci/vmci_handle_array.h
43
return array->size;
drivers/net/dsa/microchip/ksz_common.c
5137
static int ksz_drive_strength_to_reg(const struct ksz_drive_strength *array,
drivers/net/dsa/microchip/ksz_common.c
5143
if (array[i].microamp == microamp)
drivers/net/dsa/microchip/ksz_common.c
5144
return array[i].reg_val;
drivers/net/dsa/microchip/ksz_common.c
5162
const struct ksz_drive_strength *array,
drivers/net/dsa/microchip/ksz_common.c
5176
i == 0 ? "%d" : ", %d", array[i].microamp);
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
1414
fd = (this_cpu_ptr(priv->fd))->array;
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h
545
struct dpaa2_fd array[DPAA2_ETH_ENQUEUE_MAX_FDS];
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
405
fds = (this_cpu_ptr(priv->fd))->array;
drivers/net/ethernet/intel/ice/ice_lib.c
260
static int ice_get_free_slot(void *array, int size, int curr)
drivers/net/ethernet/intel/ice/ice_lib.c
262
int **tmp_array = (int **)array;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
285
u32 array[QLC_83XX_MAX_RESET_SEQ_ENTRIES];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1758
value = p_dev->ahw->reset.array[p_rmw_hdr->index_a];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1935
p_dev->ahw->reset.array[index++] = j;
drivers/net/ethernet/spacemit/k1_emac.c
1096
u64 *tx_stats_off = priv->tx_stats_off.array;
drivers/net/ethernet/spacemit/k1_emac.c
1097
u64 *rx_stats_off = priv->rx_stats_off.array;
drivers/net/ethernet/spacemit/k1_emac.c
1098
u64 *tx_stats = priv->tx_stats.array;
drivers/net/ethernet/spacemit/k1_emac.c
1099
u64 *rx_stats = priv->rx_stats.array;
drivers/net/ethernet/spacemit/k1_emac.h
381
u64 array[sizeof(struct individual_tx_stats) / sizeof(u64)];
drivers/net/ethernet/spacemit/k1_emac.h
413
u64 array[sizeof(struct individual_rx_stats) / sizeof(u64)];
drivers/net/netdevsim/udp_tunnels.c
148
ns->udp_ports.dfs_ports[0].array = ns->udp_ports.ports[0];
drivers/net/netdevsim/udp_tunnels.c
153
ns->udp_ports.dfs_ports[1].array = ns->udp_ports.ports[1];
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
16
const __le32 *array, u32 array_len, const char *footer)
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
29
" %u:%u,", stats_index++, le32_to_cpu(array[i]));
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
47
const __le32 *array, u32 array_len, const char *footer)
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
49
return print_array_to_buf_index(buf, offset, header, 0, array, array_len,
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
55
const s8 *array, u32 array_len, const char *footer)
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
66
" %u:%d,", stats_index++, array[i]);
drivers/net/wireless/ath/ath9k/ar5008_phy.c
91
struct ar5416IniArray *array = &ah->iniBank6;
drivers/net/wireless/ath/ath9k/ar5008_phy.c
97
for (r = 0; r < array->ia_rows; r++) {
drivers/net/wireless/ath/ath9k/ar5008_phy.c
98
REG_WRITE(ah, INI_RA(array, r, 0), data[r]);
drivers/net/wireless/ath/ath9k/ar9003_hw.c
1016
struct ar5416IniArray *array;
drivers/net/wireless/ath/ath9k/ar9003_hw.c
1043
array = power_off ? &ah->iniPcieSerdes :
drivers/net/wireless/ath/ath9k/ar9003_hw.c
1046
for (i = 0; i < array->ia_rows; i++) {
drivers/net/wireless/ath/ath9k/ar9003_hw.c
1048
INI_RA(array, i, 0),
drivers/net/wireless/ath/ath9k/ar9003_hw.c
1049
INI_RA(array, i, 1));
drivers/net/wireless/ath/ath9k/calib.h
36
#define STATIC_INI_ARRAY(array) { \
drivers/net/wireless/ath/ath9k/calib.h
37
.ia_array = (u32 *)(array), \
drivers/net/wireless/ath/ath9k/calib.h
38
.ia_rows = ARRAY_SIZE(array), \
drivers/net/wireless/ath/ath9k/calib.h
39
.ia_columns = ARRAY_SIZE(array[0]), \
drivers/net/wireless/ath/ath9k/calib.h
42
#define INIT_INI_ARRAY(iniarray, array) do { \
drivers/net/wireless/ath/ath9k/calib.h
43
(iniarray)->ia_array = (u32 *)(array); \
drivers/net/wireless/ath/ath9k/calib.h
44
(iniarray)->ia_rows = ARRAY_SIZE(array); \
drivers/net/wireless/ath/ath9k/calib.h
45
(iniarray)->ia_columns = ARRAY_SIZE(array[0]); \
drivers/net/wireless/ath/ath9k/hw.c
111
void ath9k_hw_write_array(struct ath_hw *ah, const struct ar5416IniArray *array,
drivers/net/wireless/ath/ath9k/hw.c
117
for (r = 0; r < array->ia_rows; r++) {
drivers/net/wireless/ath/ath9k/hw.c
118
REG_WRITE(ah, INI_RA(array, r, 0),
drivers/net/wireless/ath/ath9k/hw.c
119
INI_RA(array, r, column));
drivers/net/wireless/ath/ath9k/hw.c
125
void ath9k_hw_read_array(struct ath_hw *ah, u32 array[][2], int size)
drivers/net/wireless/ath/ath9k/hw.c
143
tmp_reg_list[i] = array[i][0];
drivers/net/wireless/ath/ath9k/hw.c
148
array[i][1] = tmp_data[i];
drivers/net/wireless/ath/ath9k/hw.h
1047
void ath9k_hw_write_array(struct ath_hw *ah, const struct ar5416IniArray *array,
drivers/net/wireless/ath/ath9k/hw.h
1049
void ath9k_hw_read_array(struct ath_hw *ah, u32 array[][2], int size);
drivers/net/wireless/ath/ath9k/hw.h
141
#define REG_READ_ARRAY(ah, array, size) \
drivers/net/wireless/ath/ath9k/hw.h
142
ath9k_hw_read_array(ah, array, size)
drivers/net/wireless/broadcom/b43/phy_n.c
4577
u16 array[4];
drivers/net/wireless/broadcom/b43/phy_n.c
4578
b43_ntab_read_bulk(dev, B43_NTAB16(0xF, 0x50), 4, array);
drivers/net/wireless/broadcom/b43/phy_n.c
4580
b43_shm_write16(dev, B43_SHM_SHARED, B43_SHM_SH_NPHY_TXIQW0, array[0]);
drivers/net/wireless/broadcom/b43/phy_n.c
4581
b43_shm_write16(dev, B43_SHM_SHARED, B43_SHM_SH_NPHY_TXIQW1, array[1]);
drivers/net/wireless/broadcom/b43/phy_n.c
4582
b43_shm_write16(dev, B43_SHM_SHARED, B43_SHM_SH_NPHY_TXIQW2, array[2]);
drivers/net/wireless/broadcom/b43/phy_n.c
4583
b43_shm_write16(dev, B43_SHM_SHARED, B43_SHM_SH_NPHY_TXIQW3, array[3]);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
289
struct brcmf_msgbuf_pktid *array;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
299
struct brcmf_msgbuf_pktid *array;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
302
array = kzalloc_objs(*array, nr_array_entries);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
303
if (!array)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
308
kfree(array);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
311
pktids->array = array;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
324
struct brcmf_msgbuf_pktid *array;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
327
array = pktids->array;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
344
if (array[*idx].allocated.counter == 0)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
345
if (atomic_cmpxchg(&array[*idx].allocated, 0, 1) == 0)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
356
array[*idx].data_offset = data_offset;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
357
array[*idx].physaddr = *physaddr;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
358
array[*idx].skb = skb;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
378
if (pktids->array[idx].allocated.counter) {
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
379
pktid = &pktids->array[idx];
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
398
struct brcmf_msgbuf_pktid *array;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
402
array = pktids->array;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
405
if (array[count].allocated.counter) {
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
406
pktid = &array[count];
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
415
kfree(array);
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
448
const enum rt2800_eeprom_word array,
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
453
index = rt2800_eeprom_word_index(rt2x00dev, array);
drivers/net/wireless/realtek/rtl8xxxu/core.c
2189
const struct rtl8xxxu_reg8val *array = priv->fops->mactable;
drivers/net/wireless/realtek/rtl8xxxu/core.c
2195
reg = array[i].reg;
drivers/net/wireless/realtek/rtl8xxxu/core.c
2196
val = array[i].val;
drivers/net/wireless/realtek/rtl8xxxu/core.c
2229
const struct rtl8xxxu_reg32val *array)
drivers/net/wireless/realtek/rtl8xxxu/core.c
2236
reg = array[i].reg;
drivers/net/wireless/realtek/rtl8xxxu/core.c
2237
val = array[i].val;
drivers/net/wireless/realtek/rtl8xxxu/core.c
2386
const struct rtl8xxxu_rfregval *array,
drivers/net/wireless/realtek/rtl8xxxu/core.c
2394
reg = array[i].reg;
drivers/net/wireless/realtek/rtl8xxxu/core.c
2395
val = array[i].val;
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
2078
const struct rtl8xxxu_reg32val *array);
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
710
u8 array[2];
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
712
array[0] = 0xff;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
713
array[1] = *((u8 *)val);
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
715
2, array);
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c
521
u8 array[2];
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c
523
array[0] = 0xff;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c
524
array[1] = *((u8 *)val);
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c
525
rtl92c_fill_h2c_cmd(hw, H2C_92C_KEEP_ALIVE_CTRL, 2, array);
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c
1791
u8 array[2];
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c
1793
array[0] = 0xff;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c
1794
array[1] = *((u8 *)val);
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c
1796
array);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
660
u8 array[2];
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
662
array[0] = 0xff;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
663
array[1] = *((u8 *)val);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
664
rtl92ee_fill_h2c_cmd(hw, H2C_92E_KEEP_ALIVE_CTRL, 2, array);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
663
v1 = array[i]; \
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
664
v2 = array[i+1]; \
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
671
u32 *array;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
678
array = RTL8192EE_PHY_REG_ARRAY;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
681
v1 = array[i];
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
682
v2 = array[i+1];
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
690
if (!_check_condition(hw , array[i])) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
719
array = RTL8192EE_AGC_TAB_ARRAY;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
722
v1 = array[i];
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
723
v2 = array[i+1];
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
725
rtl_set_bbreg(hw, array[i], MASKDWORD,
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
726
array[i + 1]);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
734
if (!_check_condition(hw , array[i])) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
754
array[i],
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
756
array[i + 1]);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
769
array[i],
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
770
array[i + 1]);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
888
v1 = array[i]; \
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
889
v2 = array[i+1]; \
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
897
u32 *array;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
904
array = RTL8192EE_RADIOA_ARRAY;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
909
v1 = array[i];
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
910
v2 = array[i+1];
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
919
if (!_check_condition(hw , array[i])) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
951
array = RTL8192EE_RADIOB_ARRAY;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
956
v1 = array[i];
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
957
v2 = array[i+1];
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
966
if (!_check_condition(hw , array[i])) {
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
698
u8 array[2];
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
699
array[0] = 0xff;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
700
array[1] = *((u8 *)val);
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
701
rtl8723be_fill_h2c_cmd(hw, H2C_8723B_KEEP_ALIVE_CTRL, 2, array);
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
773
u8 array[2];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
774
array[0] = 0xff;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
775
array[1] = *((u8 *)val);
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
777
array);
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1750
const char **array;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1754
array = RTL8812AE_TXPWR_LMT;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1757
array = RTL8821AE_TXPWR_LMT;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1763
const char *regulation = array[i];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1764
const char *band = array[i+1];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1765
const char *bandwidth = array[i+2];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1766
const char *rate = array[i+3];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1767
const char *rf_path = array[i+4];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1768
const char *chnl = array[i+5];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1769
const char *val = array[i+6];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1982
u32 *array;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1988
array = RTL8812AE_PHY_REG_ARRAY_PG;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1991
array = RTL8821AE_PHY_REG_ARRAY_PG;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
2000
v1 = array[i];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
2001
v2 = array[i+1];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
2002
v3 = array[i+2];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
2003
v4 = array[i+3];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
2004
v5 = array[i+4];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
2005
v6 = array[i+5];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
2035
v2 = array[i+1];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
2038
v2 = array[i + 1];
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
3124
u8 *array, u8 path,
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
3134
_rtl8821ae_get_txpower_index(hw, path, array[i],
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
3138
array[i]);
drivers/of/dynamic.c
1037
const u32 *array, size_t sz)
drivers/of/dynamic.c
1047
val[i] = cpu_to_be32(array[i]);
drivers/pci/controller/pcie-hisi-error.c
101
if (index == id && array[index])
drivers/pci/controller/pcie-hisi-error.c
102
return array[index];
drivers/pci/controller/pcie-hisi-error.c
95
static const char *hisi_pcie_get_string(const char * const *array,
drivers/pinctrl/pinctrl-rp1.c
1717
const struct reg_field *array,
drivers/pinctrl/pinctrl-rp1.c
1729
regfield = array[k];
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1025
const u16 *array = NULL;
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1029
array = &hwcfg->iolh_groupa_ua[ps_index];
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1032
array = &hwcfg->iolh_groupb_ua[ps_index];
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1035
array = &hwcfg->iolh_groupc_ua[ps_index];
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1037
if (!array)
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1041
if (array[i] == ua)
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1053
const u16 *array = NULL;
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1057
array = hwcfg->iolh_groupa_ua;
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1060
array = hwcfg->iolh_groupb_ua;
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1063
array = hwcfg->iolh_groupc_ua;
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1066
if (!array)
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1069
if (!array[iolh_idx])
drivers/pinctrl/renesas/pinctrl-rzg2l.c
1073
if (array[iolh_idx + i] == ds)
drivers/platform/chrome/cros_ec_sensorhub_ring.c
167
static s64 cros_ec_sensor_ring_median(s64 *array, size_t length)
drivers/platform/chrome/cros_ec_sensorhub_ring.c
176
if (array[lo] > array[mid])
drivers/platform/chrome/cros_ec_sensorhub_ring.c
177
cros_ec_sensor_ring_median_swap(&array[lo], &array[mid]);
drivers/platform/chrome/cros_ec_sensorhub_ring.c
178
if (array[lo] > array[hi])
drivers/platform/chrome/cros_ec_sensorhub_ring.c
179
cros_ec_sensor_ring_median_swap(&array[lo], &array[hi]);
drivers/platform/chrome/cros_ec_sensorhub_ring.c
180
if (array[mid] < array[hi])
drivers/platform/chrome/cros_ec_sensorhub_ring.c
181
cros_ec_sensor_ring_median_swap(&array[mid], &array[hi]);
drivers/platform/chrome/cros_ec_sensorhub_ring.c
183
pivot = array[hi];
drivers/platform/chrome/cros_ec_sensorhub_ring.c
187
if (array[j] < pivot)
drivers/platform/chrome/cros_ec_sensorhub_ring.c
188
cros_ec_sensor_ring_median_swap(&array[++i], &array[j]);
drivers/platform/chrome/cros_ec_sensorhub_ring.c
191
cros_ec_sensor_ring_median_swap(&array[i + 1], &array[hi]);
drivers/platform/chrome/cros_ec_sensorhub_ring.c
193
return array[i + 1];
drivers/platform/x86/intel/hid.c
234
struct input_dev *array;
drivers/platform/x86/intel/hid.c
398
if (!priv->array)
drivers/platform/x86/intel/hid.c
495
priv->array = devm_input_allocate_device(&device->dev);
drivers/platform/x86/intel/hid.c
496
if (!priv->array)
drivers/platform/x86/intel/hid.c
499
ret = sparse_keymap_setup(priv->array, intel_array_keymap, NULL);
drivers/platform/x86/intel/hid.c
503
priv->array->name = "Intel HID 5 button array";
drivers/platform/x86/intel/hid.c
504
priv->array->id.bustype = BUS_HOST;
drivers/platform/x86/intel/hid.c
506
return input_register_device(priv->array);
drivers/platform/x86/intel/hid.c
604
if (event == 0xc0 || !priv->array)
drivers/platform/x86/intel/hid.c
607
ke = sparse_keymap_entry_from_scancode(priv->array, event);
drivers/platform/x86/intel/hid.c
629
if (!priv->array) {
drivers/platform/x86/intel/hid.c
648
if (!priv->array ||
drivers/platform/x86/intel/hid.c
649
!sparse_keymap_report_event(priv->array, event, 1, true))
drivers/platform/x86/intel/vsec_tpmi.c
460
u32 num_elems, *array;
drivers/platform/x86/intel/vsec_tpmi.c
468
ret = parse_int_array_user(userbuf, len, (int **)&array);
drivers/platform/x86/intel/vsec_tpmi.c
472
num_elems = *array;
drivers/platform/x86/intel/vsec_tpmi.c
478
punit = array[1];
drivers/platform/x86/intel/vsec_tpmi.c
479
addr = array[2];
drivers/platform/x86/intel/vsec_tpmi.c
480
value = array[3];
drivers/platform/x86/intel/vsec_tpmi.c
510
kfree(array);
drivers/platform/x86/intel_ips.c
822
static u16 calc_avg_temp(struct ips_driver *ips, u16 *array)
drivers/platform/x86/intel_ips.c
829
total += (u64)(array[i] * 100);
drivers/platform/x86/intel_ips.c
920
static u32 calc_avg_power(struct ips_driver *ips, u32 *array)
drivers/platform/x86/intel_ips.c
927
total += array[i];
drivers/power/supply/adp5061.c
145
static int adp5061_get_array_index(const int *array, u8 size, int val)
drivers/power/supply/adp5061.c
150
if (val < array[i])
drivers/power/supply/bq256xx_charger.c
336
static int bq256xx_array_parse(int array_size, int val, const int array[])
drivers/power/supply/bq256xx_charger.c
340
if (val < array[i])
drivers/power/supply/bq256xx_charger.c
343
if (val >= array[array_size - 1])
drivers/power/supply/bq256xx_charger.c
347
if (val == array[i])
drivers/power/supply/bq256xx_charger.c
350
if (val > array[i - 1] && val < array[i]) {
drivers/power/supply/bq256xx_charger.c
351
if (val < array[i])
drivers/power/supply/ds2760_battery.c
239
static int battery_interpolate(int array[], int temp)
drivers/power/supply/ds2760_battery.c
244
return array[0];
drivers/power/supply/ds2760_battery.c
246
return array[4];
drivers/power/supply/ds2760_battery.c
251
return array[index] + (((array[index + 1] - array[index]) * dt) / 10);
drivers/power/supply/power_supply_sysfs.c
254
static int power_supply_match_string(const char * const *array, size_t n, const char *s)
drivers/power/supply/power_supply_sysfs.c
259
ret = __sysfs_match_string(array, n, s);
drivers/power/supply/power_supply_sysfs.c
267
power_supply_escape_spaces(array[i], buf, sizeof(buf));
drivers/ptp/ptp_chardev.c
157
queue->dfs_bitmap.array = (u32 *)queue->mask;
drivers/ras/cec.c
147
u8 decay = DECAY(ca->array[i]);
drivers/ras/cec.c
154
ca->array[i] &= ~(DECAY_MASK << COUNT_BITS);
drivers/ras/cec.c
155
ca->array[i] |= (decay << COUNT_BITS);
drivers/ras/cec.c
194
this_pfn = PFN(ca->array[i]);
drivers/ras/cec.c
238
memmove((void *)&ca->array[idx],
drivers/ras/cec.c
239
(void *)&ca->array[idx + 1],
drivers/ras/cec.c
251
unsigned int this = FULL_COUNT(ca->array[i]);
drivers/ras/cec.c
261
return PFN(ca->array[min_idx]);
drivers/ras/cec.c
290
u64 this = PFN(ca->array[i]);
drivers/ras/cec.c
303
u64 this = PFN(ca->array[i]);
drivers/ras/cec.c
305
pr_info(" %03d: [%016llx|%03llx]\n", i, this, FULL_COUNT(ca->array[i]));
drivers/ras/cec.c
331
if (!ce_arr.array || ce_arr.disabled)
drivers/ras/cec.c
347
memmove((void *)&ca->array[to + 1],
drivers/ras/cec.c
348
(void *)&ca->array[to],
drivers/ras/cec.c
351
ca->array[to] = pfn << PAGE_SHIFT;
drivers/ras/cec.c
356
ca->array[to] |= DECAY_MASK << COUNT_BITS;
drivers/ras/cec.c
357
ca->array[to]++;
drivers/ras/cec.c
360
count = COUNT(ca->array[to]);
drivers/ras/cec.c
362
u64 pfn = ca->array[to] >> PAGE_SHIFT;
drivers/ras/cec.c
456
u64 this = PFN(ca->array[i]);
drivers/ras/cec.c
459
i, this, bins[DECAY(ca->array[i])], COUNT(ca->array[i]));
drivers/ras/cec.c
479
DEFINE_SHOW_ATTRIBUTE(array);
drivers/ras/cec.c
483
struct dentry *d, *pfn, *decay, *count, *array, *dfs;
drivers/ras/cec.c
520
array = debugfs_create_file("array", S_IRUSR, d, NULL, &array_fops);
drivers/ras/cec.c
521
if (!array) {
drivers/ras/cec.c
573
ce_arr.array = (void *)get_zeroed_page(GFP_KERNEL);
drivers/ras/cec.c
574
if (!ce_arr.array) {
drivers/ras/cec.c
580
free_page((unsigned long)ce_arr.array);
drivers/ras/cec.c
95
u64 *array; /* container page */
drivers/reset/core.c
1373
resets->base.array = true;
drivers/reset/core.c
311
return rstc->array;
drivers/reset/core.c
58
bool array;
drivers/s390/block/dasd.c
952
static void dasd_stats_array(struct seq_file *m, unsigned int *array)
drivers/s390/block/dasd.c
957
seq_printf(m, "%u ", array[i]);
drivers/s390/block/dasd_proc.c
179
static void dasd_statistics_array(struct seq_file *m, unsigned int *array, int factor)
drivers/s390/block/dasd_proc.c
184
seq_printf(m, "%7d ", array[i] / factor);
drivers/scsi/aic7xxx/aic79xx_osm.c
453
ahd_outsb(struct ahd_softc * ahd, long port, uint8_t *array, int count)
drivers/scsi/aic7xxx/aic79xx_osm.c
463
ahd_outb(ahd, port, *array++);
drivers/scsi/aic7xxx/aic79xx_osm.c
467
ahd_insb(struct ahd_softc * ahd, long port, uint8_t *array, int count)
drivers/scsi/aic7xxx/aic79xx_osm.c
477
*array++ = ahd_inb(ahd, port);
drivers/scsi/aic7xxx/aic7xxx_osm.c
426
ahc_outsb(struct ahc_softc * ahc, long port, uint8_t *array, int count)
drivers/scsi/aic7xxx/aic7xxx_osm.c
436
ahc_outb(ahc, port, *array++);
drivers/scsi/aic7xxx/aic7xxx_osm.c
440
ahc_insb(struct ahc_softc * ahc, long port, uint8_t *array, int count)
drivers/scsi/aic7xxx/aic7xxx_osm.c
450
*array++ = ahc_inb(ahc, port);
drivers/scsi/isci/host.c
318
frame_header = ihost->uf_control.buffers.array[frame_index].header;
drivers/scsi/isci/host.c
319
ihost->uf_control.buffers.array[frame_index].state = UNSOLICITED_FRAME_IN_USE;
drivers/scsi/isci/unsolicited_frame_control.c
110
uf = &uf_control->buffers.array[i];
drivers/scsi/isci/unsolicited_frame_control.c
112
uf_control->address_table.array[i] = dma;
drivers/scsi/isci/unsolicited_frame_control.c
115
uf->header = &uf_control->headers.array[i];
drivers/scsi/isci/unsolicited_frame_control.c
136
*frame_header = &uf_control->buffers.array[frame_index].header->data;
drivers/scsi/isci/unsolicited_frame_control.c
149
*frame_buffer = uf_control->buffers.array[frame_index].buffer;
drivers/scsi/isci/unsolicited_frame_control.c
171
while (lower_32_bits(uf_control->address_table.array[frame_get]) == 0 &&
drivers/scsi/isci/unsolicited_frame_control.c
172
upper_32_bits(uf_control->address_table.array[frame_get]) == 0 &&
drivers/scsi/isci/unsolicited_frame_control.c
184
uf_control->buffers.array[frame_index].state = UNSOLICITED_FRAME_RELEASED;
drivers/scsi/isci/unsolicited_frame_control.c
198
while (uf_control->buffers.array[frame_get].state == UNSOLICITED_FRAME_RELEASED) {
drivers/scsi/isci/unsolicited_frame_control.c
199
uf_control->buffers.array[frame_get].state = UNSOLICITED_FRAME_EMPTY;
drivers/scsi/isci/unsolicited_frame_control.c
85
uf_control->headers.array = virt + SCI_UFI_BUF_SIZE;
drivers/scsi/isci/unsolicited_frame_control.c
95
uf_control->address_table.array = virt + SCI_UFI_BUF_SIZE + SCI_UFI_HDR_SIZE;
drivers/scsi/isci/unsolicited_frame_control.h
172
struct scu_unsolicited_frame_header *array;
drivers/scsi/isci/unsolicited_frame_control.h
195
struct sci_unsolicited_frame array[SCU_MAX_UNSOLICITED_FRAMES];
drivers/scsi/isci/unsolicited_frame_control.h
217
u64 *array;
drivers/scsi/qla2xxx/qla_nx2.c
243
value = vha->reset_tmplt.array[p_rmw_hdr->index_a];
drivers/scsi/qla2xxx/qla_nx2.c
920
vha->reset_tmplt.array[index++] = value;
drivers/scsi/qla2xxx/qla_nx2.h
272
uint32_t array[QLA8044_MAX_RESET_SEQ_ENTRIES];
drivers/scsi/qla4xxx/ql4_83xx.c
1073
ha->reset_tmplt.array[index++] = value;
drivers/scsi/qla4xxx/ql4_83xx.c
898
value = ha->reset_tmplt.array[p_rmw_hdr->index_a];
drivers/scsi/qla4xxx/ql4_83xx.h
215
uint32_t array[QLA83XX_MAX_RESET_SEQ_ENTRIES];
drivers/soc/qcom/qcom_gsbi.c
107
.array = crci_msm8660,
drivers/soc/qcom/qcom_gsbi.c
195
mask = config->array[i][gsbi_num - 1];
drivers/soc/qcom/qcom_gsbi.c
25
const u32 (*array)[MAX_GSBI];
drivers/soc/qcom/qcom_gsbi.c
43
.array = crci_ipq8064,
drivers/soc/qcom/qcom_gsbi.c
61
.array = crci_apq8064,
drivers/soc/qcom/qcom_gsbi.c
79
.array = crci_msm8960,
drivers/soundwire/amd_init.c
207
ctx->peripherals = kmalloc_flex(*ctx->peripherals, array, num_slaves);
drivers/soundwire/amd_init.c
218
ctx->peripherals->array[i] = slave;
drivers/soundwire/intel_init.c
256
ctx->peripherals = kmalloc_flex(*ctx->peripherals, array, num_slaves);
drivers/soundwire/intel_init.c
264
ctx->peripherals->array[i] = slave;
drivers/staging/media/atomisp/pci/runtime/isp_param/interface/ia_css_isp_param_types.h
71
} array[IA_CSS_NUM_PARAM_CLASSES];
drivers/staging/media/atomisp/pci/runtime/isp_param/src/isp_param.c
168
mem_offsets->array[pclass].ptr = NULL;
drivers/staging/media/atomisp/pci/runtime/isp_param/src/isp_param.c
170
mem_offsets->array[pclass].ptr = (void *)(fw + memory_offsets->offsets[pclass]);
drivers/staging/media/atomisp/pci/sh_css_firmware.c
150
bd->mem_offsets.array[IA_CSS_PARAM_CLASS_PARAM].ptr = NULL;
drivers/staging/media/atomisp/pci/sh_css_firmware.c
151
bd->mem_offsets.array[IA_CSS_PARAM_CLASS_CONFIG].ptr = NULL;
drivers/staging/media/atomisp/pci/sh_css_firmware.c
152
bd->mem_offsets.array[IA_CSS_PARAM_CLASS_STATE].ptr = NULL;
drivers/staging/media/atomisp/pci/sh_css_firmware.c
160
bd->mem_offsets.array[IA_CSS_PARAM_CLASS_PARAM].ptr = parambuf;
drivers/staging/media/atomisp/pci/sh_css_firmware.c
166
bd->mem_offsets.array[IA_CSS_PARAM_CLASS_CONFIG].ptr = parambuf +
drivers/staging/media/atomisp/pci/sh_css_firmware.c
173
bd->mem_offsets.array[IA_CSS_PARAM_CLASS_STATE].ptr = parambuf +
drivers/staging/media/ipu3/ipu3-css-fw.h
79
} array[IMGU_ABI_PARAM_CLASS_NUM];
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
109
if ((array[k] & 0x80000000) && (array[k] == j))
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
112
array[i] = j;
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
116
array[i] &= ~0x80000000;
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
124
u32 *array, pdu_count, seq_count = 0, seq_no = 0, seq_offset = 0;
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
132
array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL);
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
133
if (!array) {
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
138
iscsit_create_random_array(array, seq_count);
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
141
cmd->pdu_list[seq_offset+i].pdu_send_order = array[i];
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
143
kfree(array);
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
152
array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL);
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
153
if (!array) {
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
158
iscsit_create_random_array(array, seq_count);
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
161
cmd->pdu_list[seq_offset+i].pdu_send_order = array[i];
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
163
kfree(array);
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
174
u32 *array, seq_count = cmd->seq_count;
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
184
array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL);
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
185
if (!array) {
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
189
iscsit_create_random_array(array, seq_count);
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
194
cmd->seq_list[i].seq_send_order = array[j++];
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
197
kfree(array);
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
94
static void iscsit_create_random_array(u32 *array, u32 count)
drivers/target/iscsi/iscsi_target_seq_pdu_list.c
99
array[0] = 0;
drivers/thermal/intel/int340x_thermal/int3406_thermal.c
102
if (array[i] == value)
drivers/thermal/intel/int340x_thermal/int3406_thermal.c
97
static int int3406_thermal_get_index(int *array, int nr, int value)
drivers/tty/hvc/hvc_iucv.c
1178
void *array, *old_filter;
drivers/tty/hvc/hvc_iucv.c
1183
array = NULL;
drivers/tty/hvc/hvc_iucv.c
1199
array = kcalloc(size, 8, GFP_KERNEL);
drivers/tty/hvc/hvc_iucv.c
1200
if (!array)
drivers/tty/hvc/hvc_iucv.c
1207
array + ((size - count) * 8));
drivers/tty/hvc/hvc_iucv.c
1210
kfree(array);
drivers/tty/hvc/hvc_iucv.c
1220
hvc_iucv_filter = array;
drivers/tty/vt/vt.c
401
static void juggle_array(u32 **array, unsigned int size, unsigned int nr)
drivers/tty/vt/vt.c
406
u32 *gcd_idx_val = array[gcd_idx];
drivers/tty/vt/vt.c
414
array[dst_idx] = array[src_idx];
drivers/tty/vt/vt.c
418
array[dst_idx] = gcd_idx_val;
drivers/usb/gadget/function/uvc_configfs.c
3326
struct uvc_descriptor_header ***array = priv3;
drivers/usb/gadget/function/uvc_configfs.c
3329
**array = *dest;
drivers/usb/gadget/function/uvc_configfs.c
3330
++*array;
drivers/usb/host/r8a66597-hcd.c
655
u16 array[R8A66597_MAX_NUM_PIPE], i = 0, min;
drivers/usb/host/r8a66597-hcd.c
657
memset(array, 0, sizeof(array));
drivers/usb/host/r8a66597-hcd.c
661
array[i++] = 4;
drivers/usb/host/r8a66597-hcd.c
663
array[i++] = 3;
drivers/usb/host/r8a66597-hcd.c
664
array[i++] = 5;
drivers/usb/host/r8a66597-hcd.c
669
array[i++] = 6;
drivers/usb/host/r8a66597-hcd.c
670
array[i++] = 7;
drivers/usb/host/r8a66597-hcd.c
671
array[i++] = 8;
drivers/usb/host/r8a66597-hcd.c
673
array[i++] = 9;
drivers/usb/host/r8a66597-hcd.c
677
array[i++] = 2;
drivers/usb/host/r8a66597-hcd.c
679
array[i++] = 1;
drivers/usb/host/r8a66597-hcd.c
687
min = array[0];
drivers/usb/host/r8a66597-hcd.c
688
while (array[i] != 0) {
drivers/usb/host/r8a66597-hcd.c
689
if (r8a66597->pipe_cnt[min] > r8a66597->pipe_cnt[array[i]])
drivers/usb/host/r8a66597-hcd.c
690
min = array[i];
drivers/vhost/vhost.h
319
#define DEFINE_VHOST_FEATURES_ARRAY(array, features) \
drivers/vhost/vhost.h
320
u64 array[VIRTIO_FEATURES_U64S] = { \
drivers/video/backlight/tdo24m.c
174
static int tdo24m_writes(struct tdo24m *lcd, const uint32_t *array)
drivers/video/backlight/tdo24m.c
177
const uint32_t *p = array;
drivers/video/fbdev/ssd1307fb.c
116
struct ssd1307fb_array *array;
drivers/video/fbdev/ssd1307fb.c
118
array = kzalloc(sizeof(struct ssd1307fb_array) + len, GFP_KERNEL);
drivers/video/fbdev/ssd1307fb.c
119
if (!array)
drivers/video/fbdev/ssd1307fb.c
122
array->type = type;
drivers/video/fbdev/ssd1307fb.c
124
return array;
drivers/video/fbdev/ssd1307fb.c
128
struct ssd1307fb_array *array, u32 len)
drivers/video/fbdev/ssd1307fb.c
134
ret = i2c_master_send(client, (u8 *)array, len);
drivers/video/fbdev/ssd1307fb.c
145
struct ssd1307fb_array *array;
drivers/video/fbdev/ssd1307fb.c
148
array = ssd1307fb_alloc_array(1, SSD1307FB_COMMAND);
drivers/video/fbdev/ssd1307fb.c
149
if (!array)
drivers/video/fbdev/ssd1307fb.c
152
array->data[0] = cmd;
drivers/video/fbdev/ssd1307fb.c
154
ret = ssd1307fb_write_array(client, array, 1);
drivers/video/fbdev/ssd1307fb.c
155
kfree(array);
drivers/video/fbdev/ssd1307fb.c
216
struct ssd1307fb_array *array;
drivers/video/fbdev/ssd1307fb.c
223
array = ssd1307fb_alloc_array(width * pages, SSD1307FB_DATA);
drivers/video/fbdev/ssd1307fb.c
224
if (!array)
drivers/video/fbdev/ssd1307fb.c
279
array->data[array_idx++] = data;
drivers/video/fbdev/ssd1307fb.c
283
ret = ssd1307fb_write_array(par->client, array, width * pages);
drivers/video/fbdev/ssd1307fb.c
286
kfree(array);
fs/befs/datastream.c
255
const befs_block_run *array = data->direct;
fs/befs/datastream.c
261
sum += array[i].len, i++) {
fs/befs/datastream.c
262
if (blockno >= sum && blockno < sum + (array[i].len)) {
fs/befs/datastream.c
265
run->allocation_group = array[i].allocation_group;
fs/befs/datastream.c
266
run->start = array[i].start + offset;
fs/befs/datastream.c
267
run->len = array[i].len - offset;
fs/befs/datastream.c
315
befs_disk_block_run *array;
fs/befs/datastream.c
337
array = (befs_disk_block_run *) indirblock->b_data;
fs/befs/datastream.c
340
int len = fs16_to_cpu(sb, array[j].len);
fs/befs/datastream.c
345
fs32_to_cpu(sb, array[j].allocation_group);
fs/befs/datastream.c
347
fs16_to_cpu(sb, array[j].start) + offset;
fs/befs/datastream.c
349
fs16_to_cpu(sb, array[j].len) - offset;
fs/btrfs/compression.c
1339
static void radix_sort(struct bucket_item *array, struct bucket_item *array_buf,
fs/btrfs/compression.c
1355
max_num = array[0].count;
fs/btrfs/compression.c
1357
buf_num = array[i].count;
fs/btrfs/compression.c
1370
buf_num = array[i].count;
fs/btrfs/compression.c
1379
buf_num = array[i].count;
fs/btrfs/compression.c
1383
array_buf[new_addr] = array[i];
fs/btrfs/compression.c
1410
array[new_addr] = array_buf[i];
fs/debugfs/file.c
1216
u32 *array, int array_size)
fs/debugfs/file.c
1224
len = snprintf(buf, bufsize, "%u%c", *array++, term);
fs/debugfs/file.c
1251
u32_format_array(buf, size, data->array, data->n_elements);
fs/debugfs/file.c
1296
struct debugfs_u32_array *array)
fs/debugfs/file.c
1298
debugfs_create_file_unsafe(name, mode, parent, array, &u32_array_fops);
fs/dlm/member.c
164
struct dlm_slot *array;
fs/dlm/member.c
214
array = kzalloc_objs(*array, array_size, GFP_NOFS);
fs/dlm/member.c
215
if (!array)
fs/dlm/member.c
228
kfree(array);
fs/dlm/member.c
232
array[memb->slot - 1].nodeid = memb->nodeid;
fs/dlm/member.c
233
array[memb->slot - 1].slot = memb->slot;
fs/dlm/member.c
244
if (array[i].nodeid)
fs/dlm/member.c
249
array[i].nodeid = memb->nodeid;
fs/dlm/member.c
250
array[i].slot = memb->slot;
fs/dlm/member.c
260
kfree(array);
fs/dlm/member.c
267
log_slots(ls, gen, num, NULL, array, array_size);
fs/dlm/member.c
275
kfree(array);
fs/dlm/member.c
280
*slots_out = array;
fs/dlm/member.c
408
int i, w, x = 0, total = 0, all_zero = 0, *array;
fs/dlm/member.c
426
array = kmalloc_objs(*array, total, GFP_NOFS);
fs/dlm/member.c
427
if (!array)
fs/dlm/member.c
442
array[x++] = memb->nodeid;
fs/dlm/member.c
445
ls->ls_node_array = array;
fs/dlm/member.c
63
struct rcom_slot *ro0, struct dlm_slot *array,
fs/dlm/member.c
73
if (array) {
fs/dlm/member.c
75
if (!array[i].nodeid)
fs/dlm/member.c
79
array[i].slot, array[i].nodeid);
fs/ext4/xattr.h
190
struct ext4_xattr_inode_array **array,
fs/ext4/xattr.h
192
extern void ext4_xattr_inode_array_free(struct ext4_xattr_inode_array *array);
fs/f2fs/segment.c
4949
struct curseg_info *array;
fs/f2fs/segment.c
4952
array = f2fs_kzalloc(sbi, array_size(NR_CURSEG_TYPE,
fs/f2fs/segment.c
4953
sizeof(*array)), GFP_KERNEL);
fs/f2fs/segment.c
4954
if (!array)
fs/f2fs/segment.c
4957
SM_I(sbi)->curseg_array = array;
fs/f2fs/segment.c
4960
mutex_init(&array[i].curseg_mutex);
fs/f2fs/segment.c
4961
array[i].sum_blk = f2fs_kzalloc(sbi, sbi->sum_blocksize,
fs/f2fs/segment.c
4963
if (!array[i].sum_blk)
fs/f2fs/segment.c
4965
init_rwsem(&array[i].journal_rwsem);
fs/f2fs/segment.c
4966
array[i].journal = f2fs_kzalloc(sbi,
fs/f2fs/segment.c
4968
if (!array[i].journal)
fs/f2fs/segment.c
4970
array[i].seg_type = log_type_to_seg_type(i);
fs/f2fs/segment.c
4971
reset_curseg_fields(&array[i]);
fs/f2fs/segment.c
5814
struct curseg_info *array = SM_I(sbi)->curseg_array;
fs/f2fs/segment.c
5817
if (!array)
fs/f2fs/segment.c
5821
kfree(array[i].sum_blk);
fs/f2fs/segment.c
5822
kfree(array[i].journal);
fs/f2fs/segment.c
5824
kfree(array);
fs/hpfs/hpfs.h
219
} array[31]; /* unknown length */
fs/hpfs/map.c
79
cpds = le32_to_cpu(cp->array[0].code_page_data);
fs/hpfs/map.c
80
cpi = le16_to_cpu(cp->array[0].index);
fs/nfs/dir.c
1089
struct nfs_cache_array *array;
fs/nfs/dir.c
1093
array = kmap_local_folio(desc->folio, 0);
fs/nfs/dir.c
1094
for (i = desc->cache_entry_index; i < array->size; i++) {
fs/nfs/dir.c
1108
ent = &array->array[i];
fs/nfs/dir.c
1115
if (i == array->size - 1) {
fs/nfs/dir.c
1116
desc->dir_cookie = array->last_cookie;
fs/nfs/dir.c
1117
nfs_readdir_seek_next_array(array, desc);
fs/nfs/dir.c
1119
desc->dir_cookie = array->array[i + 1].cookie;
fs/nfs/dir.c
1120
desc->last_cookie = array->array[0].cookie;
fs/nfs/dir.c
1127
if (array->folio_is_eof)
fs/nfs/dir.c
1130
kunmap_local(array);
fs/nfs/dir.c
154
struct nfs_cache_array_entry array[] __counted_by(size);
fs/nfs/dir.c
206
struct nfs_cache_array *array;
fs/nfs/dir.c
208
array = kmap_local_folio(folio, 0);
fs/nfs/dir.c
209
array->change_attr = change_attr;
fs/nfs/dir.c
210
array->last_cookie = last_cookie;
fs/nfs/dir.c
211
array->size = 0;
fs/nfs/dir.c
212
array->folio_full = 0;
fs/nfs/dir.c
213
array->folio_is_eof = 0;
fs/nfs/dir.c
214
array->cookies_are_ordered = 1;
fs/nfs/dir.c
215
kunmap_local(array);
fs/nfs/dir.c
223
struct nfs_cache_array *array;
fs/nfs/dir.c
226
array = kmap_local_folio(folio, 0);
fs/nfs/dir.c
227
for (i = 0; i < array->size; i++)
fs/nfs/dir.c
228
kfree(array->array[i].name);
fs/nfs/dir.c
229
array->size = 0;
fs/nfs/dir.c
230
kunmap_local(array);
fs/nfs/dir.c
257
static u64 nfs_readdir_array_index_cookie(struct nfs_cache_array *array)
fs/nfs/dir.c
259
return array->size == 0 ? array->last_cookie : array->array[0].cookie;
fs/nfs/dir.c
262
static void nfs_readdir_array_set_eof(struct nfs_cache_array *array)
fs/nfs/dir.c
264
array->folio_is_eof = 1;
fs/nfs/dir.c
265
array->folio_full = 1;
fs/nfs/dir.c
268
static bool nfs_readdir_array_is_full(struct nfs_cache_array *array)
fs/nfs/dir.c
270
return array->folio_full;
fs/nfs/dir.c
300
static int nfs_readdir_array_can_expand(struct nfs_cache_array *array)
fs/nfs/dir.c
302
if (array->folio_full)
fs/nfs/dir.c
304
if (array->size == nfs_readdir_array_maxentries()) {
fs/nfs/dir.c
305
array->folio_full = 1;
fs/nfs/dir.c
315
struct nfs_cache_array *array;
fs/nfs/dir.c
322
array = kmap_local_folio(folio, 0);
fs/nfs/dir.c
325
ret = nfs_readdir_array_can_expand(array);
fs/nfs/dir.c
331
array->size++;
fs/nfs/dir.c
332
cache_entry = &array->array[array->size - 1];
fs/nfs/dir.c
333
cache_entry->cookie = array->last_cookie;
fs/nfs/dir.c
338
array->last_cookie = entry->cookie;
fs/nfs/dir.c
339
if (array->last_cookie <= cache_entry->cookie)
fs/nfs/dir.c
340
array->cookies_are_ordered = 0;
fs/nfs/dir.c
342
nfs_readdir_array_set_eof(array);
fs/nfs/dir.c
344
*cookie = array->last_cookie;
fs/nfs/dir.c
345
kunmap_local(array);
fs/nfs/dir.c
371
struct nfs_cache_array *array = kmap_local_folio(folio, 0);
fs/nfs/dir.c
374
if (array->change_attr != change_attr)
fs/nfs/dir.c
376
if (nfs_readdir_array_index_cookie(array) != last_cookie)
fs/nfs/dir.c
378
kunmap_local(array);
fs/nfs/dir.c
415
struct nfs_cache_array *array;
fs/nfs/dir.c
418
array = kmap_local_folio(folio, 0);
fs/nfs/dir.c
419
ret = array->last_cookie;
fs/nfs/dir.c
420
kunmap_local(array);
fs/nfs/dir.c
426
struct nfs_cache_array *array;
fs/nfs/dir.c
429
array = kmap_local_folio(folio, 0);
fs/nfs/dir.c
430
ret = !nfs_readdir_array_is_full(array);
fs/nfs/dir.c
431
kunmap_local(array);
fs/nfs/dir.c
437
struct nfs_cache_array *array;
fs/nfs/dir.c
439
array = kmap_local_folio(folio, 0);
fs/nfs/dir.c
440
nfs_readdir_array_set_eof(array);
fs/nfs/dir.c
441
kunmap_local(array);
fs/nfs/dir.c
480
static void nfs_readdir_seek_next_array(struct nfs_cache_array *array,
fs/nfs/dir.c
483
if (array->folio_full) {
fs/nfs/dir.c
484
desc->last_cookie = array->last_cookie;
fs/nfs/dir.c
485
desc->current_index += array->size;
fs/nfs/dir.c
489
desc->last_cookie = nfs_readdir_array_index_cookie(array);
fs/nfs/dir.c
499
static int nfs_readdir_search_for_pos(struct nfs_cache_array *array,
fs/nfs/dir.c
507
if (diff >= array->size) {
fs/nfs/dir.c
508
if (array->folio_is_eof)
fs/nfs/dir.c
510
nfs_readdir_seek_next_array(array, desc);
fs/nfs/dir.c
515
desc->dir_cookie = array->array[index].cookie;
fs/nfs/dir.c
523
static bool nfs_readdir_array_cookie_in_range(struct nfs_cache_array *array,
fs/nfs/dir.c
526
if (!array->cookies_are_ordered)
fs/nfs/dir.c
529
if (cookie >= array->last_cookie)
fs/nfs/dir.c
531
if (array->size && cookie < array->array[0].cookie)
fs/nfs/dir.c
536
static int nfs_readdir_search_for_cookie(struct nfs_cache_array *array,
fs/nfs/dir.c
542
if (!nfs_readdir_array_cookie_in_range(array, desc->dir_cookie))
fs/nfs/dir.c
545
for (i = 0; i < array->size; i++) {
fs/nfs/dir.c
546
if (array->array[i].cookie == desc->dir_cookie) {
fs/nfs/dir.c
556
if (array->folio_is_eof) {
fs/nfs/dir.c
558
if (desc->dir_cookie == array->last_cookie)
fs/nfs/dir.c
561
nfs_readdir_seek_next_array(array, desc);
fs/nfs/dir.c
567
struct nfs_cache_array *array;
fs/nfs/dir.c
570
array = kmap_local_folio(desc->folio, 0);
fs/nfs/dir.c
573
status = nfs_readdir_search_for_pos(array, desc);
fs/nfs/dir.c
575
status = nfs_readdir_search_for_cookie(array, desc);
fs/nfs/dir.c
577
kunmap_local(array);
fs/nfs/filelayout/filelayout.c
1083
struct pnfs_commit_array *array, *new;
fs/nfs/filelayout/filelayout.c
1090
array = pnfs_add_commit_array(fl_cinfo, new, lseg);
fs/nfs/filelayout/filelayout.c
1092
if (array != new)
fs/nfs/flexfilelayout/flexfilelayout.c
2457
struct pnfs_commit_array *array, *new;
fs/nfs/flexfilelayout/flexfilelayout.c
2464
array = pnfs_add_commit_array(fl_cinfo, new, lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
2466
if (array != new)
fs/nfs/internal.h
651
struct pnfs_commit_array *array;
fs/nfs/internal.h
654
list_for_each_entry_rcu(array, &cinfo->commits, cinfo_list)
fs/nfs/internal.h
655
pnfs_bucket_clear_pnfs_ds_commit_verifiers(array->buckets,
fs/nfs/internal.h
656
array->nbuckets);
fs/nfs/pnfs_nfs.c
1180
struct pnfs_commit_array *array;
fs/nfs/pnfs_nfs.c
1184
array = pnfs_lookup_commit_array(cinfo->ds, lseg);
fs/nfs/pnfs_nfs.c
1185
if (!array || !pnfs_is_valid_lseg(lseg))
fs/nfs/pnfs_nfs.c
1187
bucket = &array->buckets[ds_commit_idx];
fs/nfs/pnfs_nfs.c
132
struct pnfs_commit_array *array;
fs/nfs/pnfs_nfs.c
134
list_for_each_entry_rcu(array, &fl_cinfo->commits, cinfo_list) {
fs/nfs/pnfs_nfs.c
135
if (array->lseg == lseg)
fs/nfs/pnfs_nfs.c
136
return array;
fs/nfs/pnfs_nfs.c
146
struct pnfs_commit_array *array;
fs/nfs/pnfs_nfs.c
148
array = pnfs_find_commit_array_by_lseg(fl_cinfo, lseg);
fs/nfs/pnfs_nfs.c
149
if (array)
fs/nfs/pnfs_nfs.c
150
return array;
fs/nfs/pnfs_nfs.c
163
struct pnfs_commit_array *array;
fs/nfs/pnfs_nfs.c
166
array = pnfs_find_commit_array_by_lseg(fl_cinfo, lseg);
fs/nfs/pnfs_nfs.c
167
if (!array) {
fs/nfs/pnfs_nfs.c
171
array = pnfs_find_commit_array_by_lseg(fl_cinfo, lseg);
fs/nfs/pnfs_nfs.c
174
return array;
fs/nfs/pnfs_nfs.c
178
pnfs_release_commit_array_locked(struct pnfs_commit_array *array)
fs/nfs/pnfs_nfs.c
180
list_del_rcu(&array->cinfo_list);
fs/nfs/pnfs_nfs.c
181
list_del(&array->lseg_list);
fs/nfs/pnfs_nfs.c
182
pnfs_free_commit_array(array);
fs/nfs/pnfs_nfs.c
186
pnfs_put_commit_array_locked(struct pnfs_commit_array *array)
fs/nfs/pnfs_nfs.c
188
if (refcount_dec_and_test(&array->refcount))
fs/nfs/pnfs_nfs.c
189
pnfs_release_commit_array_locked(array);
fs/nfs/pnfs_nfs.c
193
pnfs_put_commit_array(struct pnfs_commit_array *array, struct inode *inode)
fs/nfs/pnfs_nfs.c
195
if (refcount_dec_and_lock(&array->refcount, &inode->i_lock)) {
fs/nfs/pnfs_nfs.c
196
pnfs_release_commit_array_locked(array);
fs/nfs/pnfs_nfs.c
202
pnfs_get_commit_array(struct pnfs_commit_array *array)
fs/nfs/pnfs_nfs.c
204
if (refcount_inc_not_zero(&array->refcount))
fs/nfs/pnfs_nfs.c
205
return array;
fs/nfs/pnfs_nfs.c
210
pnfs_remove_and_free_commit_array(struct pnfs_commit_array *array)
fs/nfs/pnfs_nfs.c
212
array->lseg = NULL;
fs/nfs/pnfs_nfs.c
213
list_del_init(&array->lseg_list);
fs/nfs/pnfs_nfs.c
214
pnfs_put_commit_array_locked(array);
fs/nfs/pnfs_nfs.c
221
struct pnfs_commit_array *array, *tmp;
fs/nfs/pnfs_nfs.c
223
list_for_each_entry_safe(array, tmp, &lseg->pls_commits, lseg_list)
fs/nfs/pnfs_nfs.c
224
pnfs_remove_and_free_commit_array(array);
fs/nfs/pnfs_nfs.c
231
struct pnfs_commit_array *array, *tmp;
fs/nfs/pnfs_nfs.c
233
list_for_each_entry_safe(array, tmp, &fl_cinfo->commits, cinfo_list)
fs/nfs/pnfs_nfs.c
234
pnfs_remove_and_free_commit_array(array);
fs/nfs/pnfs_nfs.c
282
struct pnfs_commit_array *array;
fs/nfs/pnfs_nfs.c
286
list_for_each_entry_rcu(array, &fl_cinfo->commits, cinfo_list) {
fs/nfs/pnfs_nfs.c
287
if (!array->lseg || !pnfs_get_commit_array(array))
fs/nfs/pnfs_nfs.c
290
cnt = pnfs_bucket_scan_array(cinfo, array->buckets,
fs/nfs/pnfs_nfs.c
291
array->nbuckets, max);
fs/nfs/pnfs_nfs.c
293
pnfs_put_commit_array(array, cinfo->inode);
fs/nfs/pnfs_nfs.c
335
struct pnfs_commit_array *array;
fs/nfs/pnfs_nfs.c
340
list_for_each_entry_rcu(array, &fl_cinfo->commits, cinfo_list) {
fs/nfs/pnfs_nfs.c
341
if (!array->lseg || !pnfs_get_commit_array(array))
fs/nfs/pnfs_nfs.c
345
array->buckets,
fs/nfs/pnfs_nfs.c
346
array->nbuckets,
fs/nfs/pnfs_nfs.c
349
pnfs_put_commit_array(array, cinfo->inode);
fs/nfs/pnfs_nfs.c
443
struct pnfs_commit_array *array;
fs/nfs/pnfs_nfs.c
447
list_for_each_entry_rcu(array, &fl_cinfo->commits, cinfo_list) {
fs/nfs/pnfs_nfs.c
448
if (!array->lseg || !pnfs_get_commit_array(array))
fs/nfs/pnfs_nfs.c
451
ret += pnfs_bucket_alloc_ds_commits(list, array->buckets,
fs/nfs/pnfs_nfs.c
452
array->nbuckets, cinfo);
fs/nfs/pnfs_nfs.c
454
pnfs_put_commit_array(array, cinfo->inode);
fs/ocfs2/uptodate.c
522
sector_t *array = ci->ci_cache.ci_array;
fs/ocfs2/uptodate.c
539
memmove(&array[index], &array[index + 1], bytes);
fs/splice.c
672
struct bio_vec *array;
fs/splice.c
678
array = kzalloc_objs(struct bio_vec, nbufs);
fs/splice.c
679
if (unlikely(!array))
fs/splice.c
697
kfree(array);
fs/splice.c
699
array = kzalloc_objs(struct bio_vec, nbufs);
fs/splice.c
700
if (!array) {
fs/splice.c
727
bvec_set_page(&array[n], buf->page, this_len,
fs/splice.c
733
iov_iter_bvec(&from, ITER_SOURCE, array, n, sd.total_len - left);
fs/splice.c
768
kfree(array);
fs/xfs/scrub/trace.h
1075
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
fs/xfs/scrub/trace.h
1095
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
fs/xfs/scrub/trace.h
1117
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
fs/xfs/scrub/trace.h
1143
__entry->nr = si->array->nr;
fs/xfs/scrub/trace.h
1144
__entry->obj_size = si->array->obj_size;
fs/xfs/scrub/trace.h
1145
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
fs/xfs/scrub/trace.h
1171
__entry->nr = si->array->nr;
fs/xfs/scrub/trace.h
1172
__entry->obj_size = si->array->obj_size;
fs/xfs/scrub/trace.h
1173
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
fs/xfs/scrub/trace.h
1214
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
fs/xfs/scrub/xfarray.c
100
trace_xfarray_create(array, required_capacity);
fs/xfs/scrub/xfarray.c
1016
memcpy(scratch, p, si->array->obj_size);
fs/xfs/scrub/xfarray.c
103
if (array->max_nr < required_capacity) {
fs/xfs/scrub/xfarray.c
1061
struct xfarray *array)
fs/xfs/scrub/xfarray.c
1063
return xfile_bytes(array->xfile);
fs/xfs/scrub/xfarray.c
1069
struct xfarray *array)
fs/xfs/scrub/xfarray.c
107
array->max_nr = required_capacity;
fs/xfs/scrub/xfarray.c
1071
xfile_discard(array->xfile, 0, MAX_LFS_FILESIZE);
fs/xfs/scrub/xfarray.c
1072
array->nr = 0;
fs/xfs/scrub/xfarray.c
110
*arrayp = array;
fs/xfs/scrub/xfarray.c
114
kfree(array);
fs/xfs/scrub/xfarray.c
123
struct xfarray *array)
fs/xfs/scrub/xfarray.c
125
xfile_destroy(array->xfile);
fs/xfs/scrub/xfarray.c
126
kfree(array);
fs/xfs/scrub/xfarray.c
132
struct xfarray *array,
fs/xfs/scrub/xfarray.c
136
if (idx >= array->nr)
fs/xfs/scrub/xfarray.c
139
return xfile_load(array->xfile, ptr, array->obj_size,
fs/xfs/scrub/xfarray.c
140
xfarray_pos(array, idx));
fs/xfs/scrub/xfarray.c
146
struct xfarray *array,
fs/xfs/scrub/xfarray.c
149
void *temp = xfarray_scratch(array);
fs/xfs/scrub/xfarray.c
152
if (array->unset_slots == 0)
fs/xfs/scrub/xfarray.c
155
error = xfile_load(array->xfile, temp, array->obj_size, pos);
fs/xfs/scrub/xfarray.c
156
if (!error && xfarray_element_is_null(array, temp))
fs/xfs/scrub/xfarray.c
168
struct xfarray *array,
fs/xfs/scrub/xfarray.c
171
void *temp = xfarray_scratch(array);
fs/xfs/scrub/xfarray.c
172
loff_t pos = xfarray_pos(array, idx);
fs/xfs/scrub/xfarray.c
175
if (idx >= array->nr)
fs/xfs/scrub/xfarray.c
178
if (idx == array->nr - 1) {
fs/xfs/scrub/xfarray.c
179
array->nr--;
fs/xfs/scrub/xfarray.c
183
if (xfarray_is_unset(array, pos))
fs/xfs/scrub/xfarray.c
186
memset(temp, 0, array->obj_size);
fs/xfs/scrub/xfarray.c
187
error = xfile_store(array->xfile, temp, array->obj_size, pos);
fs/xfs/scrub/xfarray.c
191
array->unset_slots++;
fs/xfs/scrub/xfarray.c
201
struct xfarray *array,
fs/xfs/scrub/xfarray.c
207
if (idx >= array->max_nr)
fs/xfs/scrub/xfarray.c
210
ASSERT(!xfarray_element_is_null(array, ptr));
fs/xfs/scrub/xfarray.c
212
ret = xfile_store(array->xfile, ptr, array->obj_size,
fs/xfs/scrub/xfarray.c
213
xfarray_pos(array, idx));
fs/xfs/scrub/xfarray.c
217
array->nr = max(array->nr, idx + 1);
fs/xfs/scrub/xfarray.c
224
struct xfarray *array,
fs/xfs/scrub/xfarray.c
227
return !memchr_inv(ptr, 0, array->obj_size);
fs/xfs/scrub/xfarray.c
236
struct xfarray *array,
fs/xfs/scrub/xfarray.c
239
void *temp = xfarray_scratch(array);
fs/xfs/scrub/xfarray.c
240
loff_t endpos = xfarray_pos(array, array->nr);
fs/xfs/scrub/xfarray.c
246
pos < endpos && array->unset_slots > 0;
fs/xfs/scrub/xfarray.c
247
pos += array->obj_size) {
fs/xfs/scrub/xfarray.c
248
error = xfile_load(array->xfile, temp, array->obj_size,
fs/xfs/scrub/xfarray.c
250
if (error || !xfarray_element_is_null(array, temp))
fs/xfs/scrub/xfarray.c
253
error = xfile_store(array->xfile, ptr, array->obj_size,
fs/xfs/scrub/xfarray.c
258
array->unset_slots--;
fs/xfs/scrub/xfarray.c
263
array->unset_slots = 0;
fs/xfs/scrub/xfarray.c
264
return xfarray_append(array, ptr);
fs/xfs/scrub/xfarray.c
270
struct xfarray *array)
fs/xfs/scrub/xfarray.c
272
return array->nr;
fs/xfs/scrub/xfarray.c
287
struct xfarray *array,
fs/xfs/scrub/xfarray.c
292
loff_t end_pos = *pos + array->obj_size - 1;
fs/xfs/scrub/xfarray.c
299
if (pgoff != 0 && pgoff + array->obj_size - 1 < PAGE_SIZE)
fs/xfs/scrub/xfarray.c
313
new_pos = xfile_seek_data(array->xfile, end_pos);
fs/xfs/scrub/xfarray.c
326
new_pos = roundup_64(new_pos, array->obj_size);
fs/xfs/scrub/xfarray.c
327
*cur = xfarray_idx(array, new_pos);
fs/xfs/scrub/xfarray.c
328
*pos = xfarray_pos(array, *cur);
fs/xfs/scrub/xfarray.c
340
struct xfarray *array,
fs/xfs/scrub/xfarray.c
345
loff_t pos = xfarray_pos(array, cur);
fs/xfs/scrub/xfarray.c
349
if (cur >= array->nr)
fs/xfs/scrub/xfarray.c
356
error = xfarray_find_data(array, &cur, &pos);
fs/xfs/scrub/xfarray.c
359
error = xfarray_load(array, cur, rec);
fs/xfs/scrub/xfarray.c
36
static inline void *xfarray_scratch(struct xfarray *array)
fs/xfs/scrub/xfarray.c
364
pos += array->obj_size;
fs/xfs/scrub/xfarray.c
365
} while (xfarray_element_is_null(array, rec));
fs/xfs/scrub/xfarray.c
38
return (array + 1);
fs/xfs/scrub/xfarray.c
393
return xfarray_load(si->array, idx, ptr);
fs/xfs/scrub/xfarray.c
404
return xfarray_store(si->array, idx, ptr);
fs/xfs/scrub/xfarray.c
433
struct xfarray *array)
fs/xfs/scrub/xfarray.c
435
return round_up(array->obj_size, 8) + sizeof(xfarray_idx_t);
fs/xfs/scrub/xfarray.c
44
struct xfarray *array,
fs/xfs/scrub/xfarray.c
441
struct xfarray *array,
fs/xfs/scrub/xfarray.c
448
size_t pivot_rec_sz = xfarray_pivot_rec_sz(array);
fs/xfs/scrub/xfarray.c
465
max_stack_depth = ilog2(array->nr) + 1 - (XFARRAY_ISORT_SHIFT - 1);
fs/xfs/scrub/xfarray.c
47
if (array->obj_size_log >= 0)
fs/xfs/scrub/xfarray.c
475
XFARRAY_ISORT_NR * array->obj_size);
fs/xfs/scrub/xfarray.c
48
return (xfarray_idx_t)pos >> array->obj_size_log;
fs/xfs/scrub/xfarray.c
481
si->array = array;
fs/xfs/scrub/xfarray.c
488
xfarray_sortinfo_hi(si)[0] = array->nr - 1;
fs/xfs/scrub/xfarray.c
50
return div_u64((xfarray_idx_t)pos, array->obj_size);
fs/xfs/scrub/xfarray.c
54
static inline loff_t xfarray_pos(struct xfarray *array, xfarray_idx_t idx)
fs/xfs/scrub/xfarray.c
548
loff_t lo_pos = xfarray_pos(si->array, lo);
fs/xfs/scrub/xfarray.c
549
loff_t len = xfarray_pos(si->array, hi - lo + 1);
fs/xfs/scrub/xfarray.c
555
error = xfile_load(si->array->xfile, scratch, len, lo_pos);
fs/xfs/scrub/xfarray.c
56
if (array->obj_size_log >= 0)
fs/xfs/scrub/xfarray.c
560
sort(scratch, hi - lo + 1, si->array->obj_size, si->cmp_fn, NULL);
fs/xfs/scrub/xfarray.c
563
return xfile_store(si->array->xfile, scratch, len, lo_pos);
fs/xfs/scrub/xfarray.c
57
return idx << array->obj_size_log;
fs/xfs/scrub/xfarray.c
579
loff_t lo_pos = xfarray_pos(si->array, lo);
fs/xfs/scrub/xfarray.c
580
uint64_t len = xfarray_pos(si->array, hi - lo + 1);
fs/xfs/scrub/xfarray.c
587
folio = xfile_get_folio(si->array->xfile, lo_pos, len, XFILE_ALLOC);
fs/xfs/scrub/xfarray.c
59
return idx * array->obj_size;
fs/xfs/scrub/xfarray.c
597
sort(startp, hi - lo + 1, si->array->obj_size, si->cmp_fn, NULL);
fs/xfs/scrub/xfarray.c
600
xfile_put_folio(si->array->xfile, folio);
fs/xfs/scrub/xfarray.c
615
return xfarray_sortinfo_pivot(si) + si->array->obj_size;
fs/xfs/scrub/xfarray.c
659
size_t pivot_rec_sz = xfarray_pivot_rec_sz(si->array);
fs/xfs/scrub/xfarray.c
687
if (likely(si->array->unset_slots == 0)) {
fs/xfs/scrub/xfarray.c
700
error = xfarray_load_next(si->array, &idx, recp);
fs/xfs/scrub/xfarray.c
716
memcpy(pivot, recp, si->array->obj_size);
fs/xfs/scrub/xfarray.c
76
struct xfarray *array;
fs/xfs/scrub/xfarray.c
794
xfile_put_folio(si->array->xfile, si->folio);
fs/xfs/scrub/xfarray.c
810
loff_t idx_pos = xfarray_pos(si->array, idx);
fs/xfs/scrub/xfarray.c
828
folio = xfile_get_folio(si->array->xfile, idx_pos,
fs/xfs/scrub/xfarray.c
829
si->array->obj_size, XFILE_ALLOC);
fs/xfs/scrub/xfarray.c
834
si->first_folio_idx = xfarray_idx(si->array,
fs/xfs/scrub/xfarray.c
835
folio_pos(si->folio) + si->array->obj_size - 1);
fs/xfs/scrub/xfarray.c
838
si->last_folio_idx = xfarray_idx(si->array, next_pos - 1);
fs/xfs/scrub/xfarray.c
839
if (xfarray_pos(si->array, si->last_folio_idx + 1) > next_pos)
fs/xfs/scrub/xfarray.c
850
void *temp = xfarray_scratch(si->array);
fs/xfs/scrub/xfarray.c
852
error = xfile_load(si->array->xfile, temp, si->array->obj_size,
fs/xfs/scrub/xfarray.c
87
array = kzalloc(sizeof(struct xfarray) + obj_size, XCHK_GFP_FLAGS);
fs/xfs/scrub/xfarray.c
88
if (!array)
fs/xfs/scrub/xfarray.c
905
struct xfarray *array,
fs/xfs/scrub/xfarray.c
91
array->xfile = xfile;
fs/xfs/scrub/xfarray.c
912
void *scratch = xfarray_scratch(array);
fs/xfs/scrub/xfarray.c
916
if (array->nr < 2)
fs/xfs/scrub/xfarray.c
918
if (array->nr >= QSORT_MAX_RECS)
fs/xfs/scrub/xfarray.c
92
array->obj_size = obj_size;
fs/xfs/scrub/xfarray.c
921
error = xfarray_sortinfo_alloc(array, cmp_fn, flags, &si);
fs/xfs/scrub/xfarray.c
95
array->obj_size_log = ilog2(obj_size);
fs/xfs/scrub/xfarray.c
97
array->obj_size_log = -1;
fs/xfs/scrub/xfarray.c
99
array->max_nr = xfarray_idx(array, MAX_LFS_FILESIZE);
fs/xfs/scrub/xfarray.c
990
memcpy(scratch, p, si->array->obj_size);
fs/xfs/scrub/xfarray.h
113
struct xfarray *array;
fs/xfs/scrub/xfarray.h
15
#define foreach_xfarray_idx(array, idx) \
fs/xfs/scrub/xfarray.h
17
(idx) < xfarray_length(array); \
fs/xfs/scrub/xfarray.h
190
int xfarray_sort(struct xfarray *array, xfarray_cmp_fn cmp_fn,
fs/xfs/scrub/xfarray.h
42
void xfarray_destroy(struct xfarray *array);
fs/xfs/scrub/xfarray.h
43
int xfarray_load(struct xfarray *array, xfarray_idx_t idx, void *ptr);
fs/xfs/scrub/xfarray.h
44
int xfarray_unset(struct xfarray *array, xfarray_idx_t idx);
fs/xfs/scrub/xfarray.h
45
int xfarray_store(struct xfarray *array, xfarray_idx_t idx, const void *ptr);
fs/xfs/scrub/xfarray.h
46
int xfarray_store_anywhere(struct xfarray *array, const void *ptr);
fs/xfs/scrub/xfarray.h
47
bool xfarray_element_is_null(struct xfarray *array, const void *ptr);
fs/xfs/scrub/xfarray.h
48
void xfarray_truncate(struct xfarray *array);
fs/xfs/scrub/xfarray.h
49
unsigned long long xfarray_bytes(struct xfarray *array);
fs/xfs/scrub/xfarray.h
57
struct xfarray *array,
fs/xfs/scrub/xfarray.h
61
int error = xfarray_load(array, idx, rec);
fs/xfs/scrub/xfarray.h
64
memset(rec, 0, array->obj_size);
fs/xfs/scrub/xfarray.h
71
static inline int xfarray_append(struct xfarray *array, const void *ptr)
fs/xfs/scrub/xfarray.h
73
return xfarray_store(array, array->nr, ptr);
fs/xfs/scrub/xfarray.h
76
uint64_t xfarray_length(struct xfarray *array);
fs/xfs/scrub/xfarray.h
77
int xfarray_load_next(struct xfarray *array, xfarray_idx_t *idx, void *rec);
fs/xfs/scrub/xfarray.h
88
struct xfarray *array,
fs/xfs/scrub/xfarray.h
92
int ret = xfarray_load_next(array, idx, rec);
include/kunit/test.h
1729
#define KUNIT_ARRAY_PARAM(name, array, get_desc) \
include/kunit/test.h
1733
typeof((array)[0]) *__next = prev ? ((typeof(__next)) prev) + 1 : (array); \
include/kunit/test.h
1735
kunit_register_params_array(test, array, ARRAY_SIZE(array), NULL); \
include/kunit/test.h
1736
if (__next - (array) < ARRAY_SIZE((array))) { \
include/kunit/test.h
1753
#define KUNIT_ARRAY_PARAM_DESC(name, array, desc_member) \
include/kunit/test.h
1757
typeof((array)[0]) *__next = prev ? ((typeof(__next)) prev) + 1 : (array); \
include/kunit/test.h
1759
kunit_register_params_array(test, array, ARRAY_SIZE(array), NULL); \
include/kunit/test.h
1760
if (__next - (array) < ARRAY_SIZE((array))) { \
include/kunit/test.h
1784
#define kunit_register_params_array(test, array, param_count, get_desc) \
include/kunit/test.h
1787
const typeof((array)[0]) * _params_ptr = &(array)[0]; \
include/kunit/test.h
430
__kunit_test_suites(__UNIQUE_ID(array), \
include/kunit/test.h
461
__kunit_init_test_suites(CONCATENATE(__UNIQUE_ID(array), _probe), \
include/linux/assoc_array.h
54
static inline void assoc_array_init(struct assoc_array *array)
include/linux/assoc_array.h
56
array->root = NULL;
include/linux/assoc_array.h
57
array->nr_leaves_on_tree = 0;
include/linux/assoc_array.h
60
extern int assoc_array_iterate(const struct assoc_array *array,
include/linux/assoc_array.h
64
extern void *assoc_array_find(const struct assoc_array *array,
include/linux/assoc_array.h
67
extern void assoc_array_destroy(struct assoc_array *array,
include/linux/assoc_array.h
69
extern struct assoc_array_edit *assoc_array_insert(struct assoc_array *array,
include/linux/assoc_array.h
75
extern struct assoc_array_edit *assoc_array_delete(struct assoc_array *array,
include/linux/assoc_array.h
78
extern struct assoc_array_edit *assoc_array_clear(struct assoc_array *array,
include/linux/assoc_array.h
82
extern int assoc_array_gc(struct assoc_array *array,
include/linux/assoc_array_priv.h
76
struct assoc_array *array;
include/linux/bpf-cgroup.h
184
struct bpf_prog_array *array;
include/linux/bpf-cgroup.h
186
array = rcu_access_pointer(cgrp->bpf.effective[type]);
include/linux/bpf-cgroup.h
187
return array != &bpf_empty_prog_array.hdr;
include/linux/bpf.h
2390
bool bpf_prog_array_is_empty(struct bpf_prog_array *array);
include/linux/bpf.h
2396
int bpf_prog_array_delete_safe_at(struct bpf_prog_array *array, int index);
include/linux/bpf.h
2397
int bpf_prog_array_update_at(struct bpf_prog_array *array, int index,
include/linux/bpf.h
2399
int bpf_prog_array_copy_info(struct bpf_prog_array *array,
include/linux/bpf.h
2454
bpf_prog_run_array(const struct bpf_prog_array *array,
include/linux/bpf.h
2465
if (unlikely(!array))
include/linux/bpf.h
2472
item = &array->items[0];
include/linux/bpf.h
2494
bpf_prog_run_array_uprobe(const struct bpf_prog_array *array,
include/linux/bpf.h
2506
if (unlikely(!array))
include/linux/bpf.h
2514
item = &array->items[0];
include/linux/bpf.h
3581
bpf_prog_inc_misses_counters(const struct bpf_prog_array *array)
include/linux/bpf.h
3586
if (unlikely(!array))
include/linux/bpf.h
3589
item = &array->items[0];
include/linux/debugfs.h
219
struct debugfs_u32_array *array);
include/linux/debugfs.h
42
u32 *array;
include/linux/debugfs.h
435
struct debugfs_u32_array *array)
include/linux/dma-fence-array.h
25
struct dma_fence_array *array;
include/linux/dma-fence-array.h
83
void dma_fence_array_init(struct dma_fence_array *array,
include/linux/dma-fence-unwrap.h
26
struct dma_fence *array;
include/linux/dma-fence-unwrap.h
55
int dma_fence_dedup_array(struct dma_fence **array, int num_fences);
include/linux/filter.h
1633
#define BPF_PROG_SK_LOOKUP_RUN_ARRAY(array, ctx, func) \
include/linux/filter.h
1644
_item = &(array)->items[0]; \
include/linux/fprobe.h
49
struct fprobe_hlist_node array[] __counted_by(size);
include/linux/fs_parser.h
127
#define fsparam_enum(NAME, OPT, array) __fsparam(fs_param_is_enum, NAME, OPT, 0, array)
include/linux/iommu.h
772
struct iommu_user_data_array *array);
include/linux/iommufd.h
190
struct iommu_user_data_array *array);
include/linux/kvm_host.h
2094
#define KVM_STATS_LINEAR_HIST_UPDATE(array, value, bsize) \
include/linux/kvm_host.h
2095
kvm_stats_linear_hist_update(array, ARRAY_SIZE(array), value, bsize)
include/linux/kvm_host.h
2096
#define KVM_STATS_LOG_HIST_UPDATE(array, value) \
include/linux/kvm_host.h
2097
kvm_stats_log_hist_update(array, ARRAY_SIZE(array), value)
include/linux/linkmode.h
52
static inline void linkmode_set_bit_array(const int *array, int array_size,
include/linux/linkmode.h
58
linkmode_set_bit(array[i], addr);
include/linux/minmax.h
250
#define __minmax_array(op, array, len) ({ \
include/linux/minmax.h
251
typeof(&(array)[0]) __array = (array); \
include/linux/minmax.h
265
#define min_array(array, len) __minmax_array(min, array, len)
include/linux/minmax.h
274
#define max_array(array, len) __minmax_array(max, array, len)
include/linux/moduleparam.h
547
#define module_param_array_named(name, array, type, nump, perm) \
include/linux/moduleparam.h
548
param_check_##type(name, &(array)[0]); \
include/linux/moduleparam.h
550
= { .max = ARRAY_SIZE(array), .num = nump, \
include/linux/moduleparam.h
552
.elemsize = sizeof(array[0]), .elem = array }; \
include/linux/of.h
1692
const u32 *array, size_t sz);
include/linux/overflow.h
545
#define STACK_FLEX_ARRAY_SIZE(name, array) \
include/linux/overflow.h
546
(__member_size((name)->array) / sizeof(*(name)->array) + \
include/linux/overflow.h
547
__must_be_array((name)->array))
include/linux/pagemap.h
1460
struct page **array, unsigned int array_sz)
include/linux/pagemap.h
1477
array[i++] = folio_page(folio, 0);
include/linux/property.h
129
const char * const *array, size_t n);
include/linux/property.h
134
const char * const *array, size_t n)
include/linux/property.h
136
return fwnode_property_match_property_string(dev_fwnode(dev), propname, array, n);
include/linux/ptr_ring.h
317
void **array, int n)
include/linux/ptr_ring.h
326
array[i] = ptr;
include/linux/ptr_ring.h
383
void **array, int n)
include/linux/ptr_ring.h
388
ret = __ptr_ring_consume_batched(r, array, n);
include/linux/ptr_ring.h
395
void **array, int n)
include/linux/ptr_ring.h
400
ret = __ptr_ring_consume_batched(r, array, n);
include/linux/ptr_ring.h
407
void **array, int n)
include/linux/ptr_ring.h
413
ret = __ptr_ring_consume_batched(r, array, n);
include/linux/ptr_ring.h
420
void **array, int n)
include/linux/ptr_ring.h
425
ret = __ptr_ring_consume_batched(r, array, n);
include/linux/ring_buffer.h
20
u32 array[];
include/linux/scmi_imx_protocol.h
63
void *array);
include/linux/skb_array.h
107
struct sk_buff **array, int n)
include/linux/skb_array.h
109
return ptr_ring_consume_batched(&a->ring, (void **)array, n);
include/linux/skb_array.h
118
struct sk_buff **array, int n)
include/linux/skb_array.h
120
return ptr_ring_consume_batched_irq(&a->ring, (void **)array, n);
include/linux/skb_array.h
129
struct sk_buff **array, int n)
include/linux/skb_array.h
131
return ptr_ring_consume_batched_any(&a->ring, (void **)array, n);
include/linux/skb_array.h
141
struct sk_buff **array, int n)
include/linux/skb_array.h
143
return ptr_ring_consume_batched_bh(&a->ring, (void **)array, n);
include/linux/soundwire/sdw.h
490
struct sdw_slave *array[];
include/linux/string.h
326
int match_string(const char * const *array, size_t n, const char *string);
include/linux/string.h
327
int __sysfs_match_string(const char * const *array, size_t n, const char *s);
include/linux/string_helpers.h
120
void kfree_strarray(char **array, size_t n);
include/linux/string_helpers.h
34
int parse_int_array(const char *buf, size_t count, int **array);
include/linux/string_helpers.h
35
int parse_int_array_user(const char __user *from, size_t count, int **array);
include/linux/sunrpc/xdr.h
594
const __u32 *array, size_t array_size)
include/linux/sunrpc/xdr.h
602
for (; array_size > 0; p++, array++, array_size--)
include/linux/sunrpc/xdr.h
603
*p = cpu_to_be32p(array);
include/linux/sunrpc/xdr.h
787
__u32 *array, size_t array_size)
include/linux/sunrpc/xdr.h
800
if (array == NULL)
include/linux/sunrpc/xdr.h
804
memset(array+len, 0, (array_size-len)*sizeof(*array));
include/linux/sunrpc/xdr.h
809
for (; array_size > 0; p++, array++, array_size--)
include/linux/sunrpc/xdr.h
810
*array = be32_to_cpup(p);
include/linux/xarray.h
1174
struct xarray *array; /* The array we belong to */
include/linux/xarray.h
1375
#define __XA_STATE(array, index, shift, sibs) { \
include/linux/xarray.h
1376
.xa = array, \
include/linux/xarray.h
1396
#define XA_STATE(name, array, index) \
include/linux/xarray.h
1397
struct xa_state name = __XA_STATE(array, index, 0, 0)
include/linux/xarray.h
1410
#define XA_STATE_ORDER(name, array, index, order) \
include/linux/xarray.h
1411
struct xa_state name = __XA_STATE(array, \
include/media/v4l2-common.h
415
#define v4l2_find_nearest_size_conditional(array, array_size, width_field, \
include/media/v4l2-common.h
419
BUILD_BUG_ON(sizeof((array)->width_field) != sizeof(u32) || \
include/media/v4l2-common.h
420
sizeof((array)->height_field) != sizeof(u32)); \
include/media/v4l2-common.h
421
(typeof(&(array)[0]))__v4l2_find_nearest_size_conditional( \
include/media/v4l2-common.h
422
(array), array_size, sizeof(*(array)), \
include/media/v4l2-common.h
423
offsetof(typeof(*(array)), width_field), \
include/media/v4l2-common.h
424
offsetof(typeof(*(array)), height_field), \
include/media/v4l2-common.h
428
__v4l2_find_nearest_size_conditional(const void *array, size_t array_size,
include/media/v4l2-common.h
432
bool (*func)(const void *array,
include/media/v4l2-common.h
455
#define v4l2_find_nearest_size(array, array_size, width_field, \
include/media/v4l2-common.h
457
v4l2_find_nearest_size_conditional(array, array_size, width_field, \
include/sound/hdaudio.h
715
void *snd_array_new(struct snd_array *array);
include/sound/hdaudio.h
716
void snd_array_free(struct snd_array *array);
include/sound/hdaudio.h
717
static inline void snd_array_init(struct snd_array *array, unsigned int size,
include/sound/hdaudio.h
720
array->elem_size = size;
include/sound/hdaudio.h
721
array->alloc_align = align;
include/sound/hdaudio.h
724
static inline void *snd_array_elem(struct snd_array *array, unsigned int idx)
include/sound/hdaudio.h
726
return array->list + idx * array->elem_size;
include/sound/hdaudio.h
729
static inline unsigned int snd_array_index(struct snd_array *array, void *ptr)
include/sound/hdaudio.h
731
return (unsigned long)(ptr - array->list) / array->elem_size;
include/sound/hdaudio.h
735
#define snd_array_for_each(array, idx, ptr) \
include/sound/hdaudio.h
736
for ((idx) = 0, (ptr) = (array)->list; (idx) < (array)->used; \
include/sound/hdaudio.h
737
(ptr) = snd_array_elem(array, ++(idx)))
include/trace/stages/stage3_trace_output.h
115
#define __print_array(array, count, el_size) \
include/trace/stages/stage3_trace_output.h
119
trace_print_array_seq(p, array, count, el_size); \
include/trace/stages/stage3_trace_output.h
123
#define __print_dynamic_array(array, el_size) \
include/trace/stages/stage3_trace_output.h
125
__print_array(__get_dynamic_array(array), \
include/trace/stages/stage3_trace_output.h
126
__get_dynamic_array_len(array) / (el_size), \
include/uapi/drm/panthor_drm.h
182
__u64 array;
include/uapi/drm/panthor_drm.h
194
{ .stride = sizeof((ptr)[0]), .count = (cnt), .array = (__u64)(uintptr_t)(ptr) }
include/uapi/drm/pvr_drm.h
63
__u64 array;
include/uapi/drm/pvr_drm.h
74
{ .stride = sizeof((ptr)[0]), .count = (cnt), .array = (__u64)(uintptr_t)(ptr) }
include/uapi/linux/io_uring.h
561
__u32 array;
include/uapi/linux/kvm.h
1098
__u64 array;
include/uapi/linux/sem.h
50
unsigned short __user *array; /* array for GETALL & SETALL */
include/uapi/sound/asoc.h
240
__DECLARE_FLEX_ARRAY(struct snd_soc_tplg_vendor_array, array);
io_uring/io_uring.c
2903
p->sq_off.array = config->layout.sq_array_offset;
ipc/sem.c
1435
ushort __user *array = p;
ipc/sem.c
1469
if (copy_to_user(array, sem_io, nsems*sizeof(ushort)))
kernel/audit_tree.c
684
struct path array[16];
kernel/audit_tree.c
696
paths = collect_paths(&path, array, 16);
kernel/audit_tree.c
716
drop_collected_paths(paths, array);
kernel/audit_tree.c
809
struct path array[16];
kernel/audit_tree.c
837
paths = collect_paths(&path, array, 16);
kernel/audit_tree.c
846
drop_collected_paths(paths, array);
kernel/audit_tree.c
881
struct path array[16];
kernel/audit_tree.c
888
paths = collect_paths(&path2, array, 16);
kernel/audit_tree.c
895
drop_collected_paths(paths, array);
kernel/audit_tree.c
965
drop_collected_paths(paths, array);
kernel/bpf/arraymap.c
1015
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
1018
for (i = 0; i < array->map.max_entries; i++)
kernel/bpf/arraymap.c
116
array_size = sizeof(*array);
kernel/bpf/arraymap.c
1299
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
1307
for (i = 0; i < array->map.max_entries; i++) {
kernel/bpf/arraymap.c
1308
ee = READ_ONCE(array->ptrs[i]);
kernel/bpf/arraymap.c
139
array = data + PAGE_ALIGN(sizeof(struct bpf_array))
kernel/bpf/arraymap.c
1416
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
1417
u32 elem_size = array->elem_size;
kernel/bpf/arraymap.c
142
array = bpf_map_area_alloc(array_size, numa_node);
kernel/bpf/arraymap.c
1427
*insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask);
kernel/bpf/arraymap.c
144
if (!array)
kernel/bpf/arraymap.c
146
array->index_mask = index_mask;
kernel/bpf/arraymap.c
147
array->map.bypass_spec_v1 = bypass_spec_v1;
kernel/bpf/arraymap.c
150
bpf_map_init_from_attr(&array->map, attr);
kernel/bpf/arraymap.c
151
array->elem_size = elem_size;
kernel/bpf/arraymap.c
153
if (percpu && bpf_array_alloc_percpu(array)) {
kernel/bpf/arraymap.c
154
bpf_map_area_free(array);
kernel/bpf/arraymap.c
158
return &array->map;
kernel/bpf/arraymap.c
161
static void *array_map_elem_ptr(struct bpf_array* array, u32 index)
kernel/bpf/arraymap.c
163
return array->value + (u64)array->elem_size * index;
kernel/bpf/arraymap.c
169
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
172
if (unlikely(index >= array->map.max_entries))
kernel/bpf/arraymap.c
175
return array->value + (u64)array->elem_size * (index & array->index_mask);
kernel/bpf/arraymap.c
181
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
183
sha256(array->value, (u64)array->elem_size * array->map.max_entries,
kernel/bpf/arraymap.c
185
memcpy(array->map.sha, hash_buf, sizeof(array->map.sha));
kernel/bpf/arraymap.c
192
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
199
*imm = (unsigned long)array->value;
kernel/bpf/arraymap.c
206
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
207
u64 base = (unsigned long)array->value;
kernel/bpf/arraymap.c
208
u64 range = array->elem_size;
kernel/bpf/arraymap.c
222
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
224
u32 elem_size = array->elem_size;
kernel/bpf/arraymap.c
23
static void bpf_array_free_percpu(struct bpf_array *array)
kernel/bpf/arraymap.c
236
*insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask);
kernel/bpf/arraymap.c
255
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
258
if (unlikely(index >= array->map.max_entries))
kernel/bpf/arraymap.c
261
return this_cpu_ptr(array->pptrs[index & array->index_mask]);
kernel/bpf/arraymap.c
267
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
27
for (i = 0; i < array->map.max_entries; i++) {
kernel/bpf/arraymap.c
28
free_percpu(array->pptrs[i]);
kernel/bpf/arraymap.c
282
*insn++ = BPF_ALU32_IMM(BPF_AND, BPF_REG_0, array->index_mask);
kernel/bpf/arraymap.c
298
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
304
if (unlikely(index >= array->map.max_entries))
kernel/bpf/arraymap.c
307
return per_cpu_ptr(array->pptrs[index & array->index_mask], cpu);
kernel/bpf/arraymap.c
312
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
318
if (unlikely(index >= array->map.max_entries))
kernel/bpf/arraymap.c
325
size = array->elem_size;
kernel/bpf/arraymap.c
327
pptr = array->pptrs[index & array->index_mask];
kernel/bpf/arraymap.c
33
static int bpf_array_alloc_percpu(struct bpf_array *array)
kernel/bpf/arraymap.c
366
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
374
if (unlikely(index >= array->map.max_entries))
kernel/bpf/arraymap.c
38
for (i = 0; i < array->map.max_entries; i++) {
kernel/bpf/arraymap.c
386
if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) {
kernel/bpf/arraymap.c
387
val = this_cpu_ptr(array->pptrs[index & array->index_mask]);
kernel/bpf/arraymap.c
389
bpf_obj_free_fields(array->map.record, val);
kernel/bpf/arraymap.c
39
ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8,
kernel/bpf/arraymap.c
391
val = array->value +
kernel/bpf/arraymap.c
392
(u64)array->elem_size * (index & array->index_mask);
kernel/bpf/arraymap.c
397
bpf_obj_free_fields(array->map.record, val);
kernel/bpf/arraymap.c
405
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
416
if (unlikely(index >= array->map.max_entries))
kernel/bpf/arraymap.c
42
bpf_array_free_percpu(array);
kernel/bpf/arraymap.c
430
size = array->elem_size;
kernel/bpf/arraymap.c
432
pptr = array->pptrs[index & array->index_mask];
kernel/bpf/arraymap.c
437
bpf_obj_free_fields(array->map.record, ptr);
kernel/bpf/arraymap.c
444
bpf_obj_free_fields(array->map.record, ptr);
kernel/bpf/arraymap.c
45
array->pptrs[i] = ptr;
kernel/bpf/arraymap.c
457
static void *array_map_vmalloc_addr(struct bpf_array *array)
kernel/bpf/arraymap.c
459
return (void *)round_down((unsigned long)array, PAGE_SIZE);
kernel/bpf/arraymap.c
464
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
471
for (i = 0; i < array->map.max_entries; i++)
kernel/bpf/arraymap.c
472
bpf_map_free_internal_structs(map, array_map_elem_ptr(array, i));
kernel/bpf/arraymap.c
478
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
482
if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) {
kernel/bpf/arraymap.c
483
for (i = 0; i < array->map.max_entries; i++) {
kernel/bpf/arraymap.c
484
void __percpu *pptr = array->pptrs[i & array->index_mask];
kernel/bpf/arraymap.c
493
for (i = 0; i < array->map.max_entries; i++)
kernel/bpf/arraymap.c
494
bpf_obj_free_fields(map->record, array_map_elem_ptr(array, i));
kernel/bpf/arraymap.c
498
if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY)
kernel/bpf/arraymap.c
499
bpf_array_free_percpu(array);
kernel/bpf/arraymap.c
501
if (array->map.map_flags & BPF_F_MMAPABLE)
kernel/bpf/arraymap.c
502
bpf_map_area_free(array_map_vmalloc_addr(array));
kernel/bpf/arraymap.c
504
bpf_map_area_free(array);
kernel/bpf/arraymap.c
531
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
539
pptr = array->pptrs[index & array->index_mask];
kernel/bpf/arraymap.c
580
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
581
pgoff_t pgoff = PAGE_ALIGN(sizeof(*array)) >> PAGE_SHIFT;
kernel/bpf/arraymap.c
587
PAGE_ALIGN((u64)array->map.max_entries * array->elem_size))
kernel/bpf/arraymap.c
590
return remap_vmalloc_range(vma, array_map_vmalloc_addr(array),
kernel/bpf/arraymap.c
613
struct bpf_array *array;
kernel/bpf/arraymap.c
621
array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
622
index = info->index & array->index_mask;
kernel/bpf/arraymap.c
624
return (void *)(uintptr_t)array->pptrs[index];
kernel/bpf/arraymap.c
625
return array_map_elem_ptr(array, index);
kernel/bpf/arraymap.c
632
struct bpf_array *array;
kernel/bpf/arraymap.c
640
array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
641
index = info->index & array->index_mask;
kernel/bpf/arraymap.c
643
return (void *)(uintptr_t)array->pptrs[index];
kernel/bpf/arraymap.c
644
return array_map_elem_ptr(array, index);
kernel/bpf/arraymap.c
652
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
673
size = array->elem_size;
kernel/bpf/arraymap.c
703
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
708
buf_size = array->elem_size * num_possible_cpus();
kernel/bpf/arraymap.c
751
struct bpf_array *array;
kernel/bpf/arraymap.c
762
array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
765
val = this_cpu_ptr(array->pptrs[i]);
kernel/bpf/arraymap.c
767
val = array_map_elem_ptr(array, i);
kernel/bpf/arraymap.c
782
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
784
u32 elem_size = array->elem_size;
kernel/bpf/arraymap.c
786
u64 usage = sizeof(*array);
kernel/bpf/arraymap.c
864
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
868
for (i = 0; i < array->map.max_entries; i++)
kernel/bpf/arraymap.c
869
BUG_ON(array->ptrs[i] != NULL);
kernel/bpf/arraymap.c
871
bpf_map_area_free(array);
kernel/bpf/arraymap.c
903
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
91
struct bpf_array *array;
kernel/bpf/arraymap.c
910
if (index >= array->map.max_entries)
kernel/bpf/arraymap.c
919
mutex_lock(&array->aux->poke_mutex);
kernel/bpf/arraymap.c
920
old_ptr = xchg(array->ptrs + index, new_ptr);
kernel/bpf/arraymap.c
922
mutex_unlock(&array->aux->poke_mutex);
kernel/bpf/arraymap.c
924
old_ptr = xchg(array->ptrs + index, new_ptr);
kernel/bpf/arraymap.c
934
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/arraymap.c
938
if (index >= array->map.max_entries)
kernel/bpf/arraymap.c
942
mutex_lock(&array->aux->poke_mutex);
kernel/bpf/arraymap.c
943
old_ptr = xchg(array->ptrs + index, NULL);
kernel/bpf/arraymap.c
945
mutex_unlock(&array->aux->poke_mutex);
kernel/bpf/arraymap.c
947
old_ptr = xchg(array->ptrs + index, NULL);
kernel/bpf/btf.c
1087
const struct btf_array *array;
kernel/bpf/btf.c
1159
array = btf_type_array(t);
kernel/bpf/btf.c
1162
id = array->type;
kernel/bpf/btf.c
2077
const struct btf_array *array = NULL;
kernel/bpf/btf.c
2109
array = btf_type_array(type);
kernel/bpf/btf.c
2110
if (nelems && array->nelems > U32_MAX / nelems)
kernel/bpf/btf.c
2112
nelems *= array->nelems;
kernel/bpf/btf.c
2113
type = btf_type_by_id(btf, array->type);
kernel/bpf/btf.c
2134
*elem_id = array ? array->type : 0;
kernel/bpf/btf.c
3037
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
3038
u32 meta_needed = sizeof(*array);
kernel/bpf/btf.c
3071
if (!array->type || !BTF_TYPE_ID_VALID(array->type)) {
kernel/bpf/btf.c
3076
if (!array->index_type || !BTF_TYPE_ID_VALID(array->index_type)) {
kernel/bpf/btf.c
3089
const struct btf_array *array = btf_type_array(v->t);
kernel/bpf/btf.c
3096
index_type_id = array->index_type;
kernel/bpf/btf.c
3116
elem_type_id = array->type;
kernel/bpf/btf.c
3140
if (array->nelems && elem_size > U32_MAX / array->nelems) {
kernel/bpf/btf.c
3146
env_stack_pop_resolved(env, elem_type_id, elem_size * array->nelems);
kernel/bpf/btf.c
3154
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
3157
array->type, array->index_type, array->nelems);
kernel/bpf/btf.c
3164
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
3170
elem_type_id = array->type;
kernel/bpf/btf.c
3196
for (i = 0; i < array->nelems; i++) {
kernel/bpf/btf.c
3754
const struct btf_array *array;
kernel/bpf/btf.c
3761
array = btf_array(var_type);
kernel/bpf/btf.c
3762
nelems *= array->nelems;
kernel/bpf/btf.c
3763
var_type = btf_type_by_id(btf, array->type);
kernel/bpf/btf.c
5415
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
5417
u32 elem_type_id = array->type;
kernel/bpf/btf.c
5422
(array->nelems * elem_size ==
kernel/bpf/cgroup.c
434
struct bpf_prog_array **array)
kernel/bpf/cgroup.c
486
*array = progs;
kernel/bpf/cgroup.c
69
const struct bpf_prog_array *array;
kernel/bpf/cgroup.c
76
array = rcu_dereference(cgrp->effective[atype]);
kernel/bpf/cgroup.c
77
item = &array->items[0];
kernel/bpf/core.c
2080
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/core.c
2084
if (unlikely(index >= array->map.max_entries))
kernel/bpf/core.c
2092
prog = READ_ONCE(array->ptrs[index]);
kernel/bpf/core.c
2661
int bpf_prog_array_length(struct bpf_prog_array *array)
kernel/bpf/core.c
2666
for (item = array->items; item->prog; item++)
kernel/bpf/core.c
2672
bool bpf_prog_array_is_empty(struct bpf_prog_array *array)
kernel/bpf/core.c
2676
for (item = array->items; item->prog; item++)
kernel/bpf/core.c
2682
static bool bpf_prog_array_copy_core(struct bpf_prog_array *array,
kernel/bpf/core.c
2689
for (item = array->items; item->prog; item++) {
kernel/bpf/core.c
2702
int bpf_prog_array_copy_to_user(struct bpf_prog_array *array,
kernel/bpf/core.c
2718
nospc = bpf_prog_array_copy_core(array, ids, cnt);
kernel/bpf/core.c
2728
void bpf_prog_array_delete_safe(struct bpf_prog_array *array,
kernel/bpf/core.c
2733
for (item = array->items; item->prog; item++)
kernel/bpf/core.c
2755
int bpf_prog_array_delete_safe_at(struct bpf_prog_array *array, int index)
kernel/bpf/core.c
2757
return bpf_prog_array_update_at(array, index, &dummy_bpf_prog.prog);
kernel/bpf/core.c
2775
int bpf_prog_array_update_at(struct bpf_prog_array *array, int index,
kernel/bpf/core.c
2783
for (item = array->items; item->prog; item++) {
kernel/bpf/core.c
2803
struct bpf_prog_array *array;
kernel/bpf/core.c
2838
array = bpf_prog_array_alloc(new_prog_cnt + 1, GFP_KERNEL);
kernel/bpf/core.c
2839
if (!array)
kernel/bpf/core.c
2841
new = array->items;
kernel/bpf/core.c
2862
*new_array = array;
kernel/bpf/core.c
2866
int bpf_prog_array_copy_info(struct bpf_prog_array *array,
kernel/bpf/core.c
2872
if (array)
kernel/bpf/core.c
2873
cnt = bpf_prog_array_length(array);
kernel/bpf/core.c
2882
return bpf_prog_array_copy_core(array, prog_ids, request_cnt) ? -ENOSPC
kernel/bpf/helpers.c
1090
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/helpers.c
1092
*arr_idx = ((char *)value - array->value) / array->elem_size;
kernel/bpf/helpers.c
2700
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/bpf/helpers.c
2703
if (unlikely(idx >= array->map.max_entries))
kernel/bpf/helpers.c
2706
cgrp = READ_ONCE(array->ptrs[idx]);
kernel/bpf/reuseport_array.c
127
sk = rcu_dereference(array->ptrs[i]);
kernel/bpf/reuseport_array.c
137
RCU_INIT_POINTER(array->ptrs[i], NULL);
kernel/bpf/reuseport_array.c
146
bpf_map_area_free(array);
kernel/bpf/reuseport_array.c
152
struct reuseport_array *array;
kernel/bpf/reuseport_array.c
155
array = bpf_map_area_alloc(struct_size(array, ptrs, attr->max_entries), numa_node);
kernel/bpf/reuseport_array.c
156
if (!array)
kernel/bpf/reuseport_array.c
160
bpf_map_init_from_attr(&array->map, attr);
kernel/bpf/reuseport_array.c
162
return &array->map;
kernel/bpf/reuseport_array.c
188
reuseport_array_update_check(const struct reuseport_array *array,
kernel/bpf/reuseport_array.c
235
struct reuseport_array *array = reuseport_array(map);
kernel/bpf/reuseport_array.c
270
err = reuseport_array_update_check(array, nsk,
kernel/bpf/reuseport_array.c
271
rcu_access_pointer(array->ptrs[index]),
kernel/bpf/reuseport_array.c
285
osk = rcu_dereference_protected(array->ptrs[index],
kernel/bpf/reuseport_array.c
289
err = reuseport_array_update_check(array, nsk, osk, reuse, map_flags);
kernel/bpf/reuseport_array.c
293
sk_user_data = (uintptr_t)&array->ptrs[index] | SK_USER_DATA_NOCOPY |
kernel/bpf/reuseport_array.c
296
rcu_assign_pointer(array->ptrs[index], nsk);
kernel/bpf/reuseport_array.c
319
struct reuseport_array *array = reuseport_array(map);
kernel/bpf/reuseport_array.c
323
if (index >= array->map.max_entries) {
kernel/bpf/reuseport_array.c
328
if (index == array->map.max_entries - 1)
kernel/bpf/reuseport_array.c
337
struct reuseport_array *array;
kernel/bpf/reuseport_array.c
339
return struct_size(array, ptrs, map->max_entries);
kernel/bpf/reuseport_array.c
52
struct reuseport_array *array = reuseport_array(map);
kernel/bpf/reuseport_array.c
55
if (unlikely(index >= array->map.max_entries))
kernel/bpf/reuseport_array.c
58
return rcu_dereference(array->ptrs[index]);
kernel/bpf/reuseport_array.c
64
struct reuseport_array *array = reuseport_array(map);
kernel/bpf/reuseport_array.c
72
if (!rcu_access_pointer(array->ptrs[index]))
kernel/bpf/reuseport_array.c
77
sk = rcu_dereference_protected(array->ptrs[index],
kernel/bpf/reuseport_array.c
82
RCU_INIT_POINTER(array->ptrs[index], NULL);
kernel/bpf/reuseport_array.c
96
struct reuseport_array *array = reuseport_array(map);
kernel/bpf/verifier.c
12447
const struct btf_array *array;
kernel/bpf/verifier.c
12460
array = btf_array(member_type);
kernel/bpf/verifier.c
12461
if (!array->nelems)
kernel/bpf/verifier.c
12463
member_type = btf_type_skip_modifiers(btf, array->type, NULL);
kernel/cgroup/cgroup-v1.c
339
pid_t *array;
kernel/cgroup/cgroup-v1.c
355
array = kvmalloc_objs(pid_t, length);
kernel/cgroup/cgroup-v1.c
356
if (!array)
kernel/cgroup/cgroup-v1.c
369
array[n++] = pid;
kernel/cgroup/cgroup-v1.c
374
sort(array, length, sizeof(pid_t), cmppid, NULL);
kernel/cgroup/cgroup-v1.c
375
length = pidlist_uniq(array, length);
kernel/cgroup/cgroup-v1.c
379
kvfree(array);
kernel/cgroup/cgroup-v1.c
385
l->list = array;
kernel/relay.c
68
static void relay_free_page_array(struct page **array)
kernel/relay.c
70
kvfree(array);
kernel/sched/rt.c
1104
struct rt_prio_array *array = &rt_rq->active;
kernel/sched/rt.c
1107
sched_find_first_bit(array->bitmap);
kernel/sched/rt.c
1212
static void __delist_rt_entity(struct sched_rt_entity *rt_se, struct rt_prio_array *array)
kernel/sched/rt.c
1216
if (list_empty(array->queue + rt_se_prio(rt_se)))
kernel/sched/rt.c
1217
__clear_bit(rt_se_prio(rt_se), array->bitmap);
kernel/sched/rt.c
1329
struct rt_prio_array *array = &rt_rq->active;
kernel/sched/rt.c
1331
struct list_head *queue = array->queue + rt_se_prio(rt_se);
kernel/sched/rt.c
1341
__delist_rt_entity(rt_se, array);
kernel/sched/rt.c
1352
__set_bit(rt_se_prio(rt_se), array->bitmap);
kernel/sched/rt.c
1363
struct rt_prio_array *array = &rt_rq->active;
kernel/sched/rt.c
1367
__delist_rt_entity(rt_se, array);
kernel/sched/rt.c
1470
struct rt_prio_array *array = &rt_rq->active;
kernel/sched/rt.c
1471
struct list_head *queue = array->queue + rt_se_prio(rt_se);
kernel/sched/rt.c
1673
struct rt_prio_array *array = &rt_rq->active;
kernel/sched/rt.c
1678
idx = sched_find_first_bit(array->bitmap);
kernel/sched/rt.c
1681
queue = array->queue + idx;
kernel/sched/rt.c
70
struct rt_prio_array *array;
kernel/sched/rt.c
73
array = &rt_rq->active;
kernel/sched/rt.c
75
INIT_LIST_HEAD(array->queue + i);
kernel/sched/rt.c
76
__clear_bit(i, array->bitmap);
kernel/sched/rt.c
79
__set_bit(MAX_RT_PRIO, array->bitmap);
kernel/trace/bpf_trace.c
540
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/trace/bpf_trace.c
549
if (unlikely(index >= array->map.max_entries))
kernel/trace/bpf_trace.c
552
ee = READ_ONCE(array->ptrs[index]);
kernel/trace/bpf_trace.c
619
struct bpf_array *array = container_of(map, struct bpf_array, map);
kernel/trace/bpf_trace.c
627
if (unlikely(index >= array->map.max_entries))
kernel/trace/bpf_trace.c
630
ee = READ_ONCE(array->ptrs[index]);
kernel/trace/fprobe.c
752
hlist_array = kzalloc_flex(*hlist_array, array, num);
kernel/trace/fprobe.c
762
hlist_array->array[i].fp = fp;
kernel/trace/fprobe.c
768
hlist_array->array[i].addr = addr;
kernel/trace/fprobe.c
859
ret = insert_fprobe_node(&hlist_array->array[i]);
kernel/trace/fprobe.c
866
delete_fprobe_node(&hlist_array->array[i]);
kernel/trace/fprobe.c
946
if (!delete_fprobe_node(&hlist_array->array[i]))
kernel/trace/fprobe.c
947
addrs[count++] = hlist_array->array[i].addr;
kernel/trace/ring_buffer.c
162
#define RB_EVNT_HDR_SIZE (offsetof(struct ring_buffer_event, array))
kernel/trace/ring_buffer.c
211
length = event->array[0];
kernel/trace/ring_buffer.c
228
return event->array[0] + RB_EVNT_HDR_SIZE;
kernel/trace/ring_buffer.c
283
if (length > RB_MAX_SMALL_DATA + sizeof(event->array[0]))
kernel/trace/ring_buffer.c
284
length -= sizeof(event->array[0]);
kernel/trace/ring_buffer.c
298
return (void *)&event->array[0];
kernel/trace/ring_buffer.c
300
return (void *)&event->array[1];
kernel/trace/ring_buffer.c
327
ts = event->array[0];
kernel/trace/ring_buffer.c
3553
event->array[0] = (bsize - tail) - RB_EVNT_HDR_SIZE;
kernel/trace/ring_buffer.c
3690
event->array[0] = delta >> TS_SHIFT;
kernel/trace/ring_buffer.c
3694
event->array[0] = 0;
kernel/trace/ring_buffer.c
3801
event->array[0] = length;
kernel/trace/ring_buffer.c
3815
length += sizeof(event.array[0]);
kernel/trace/ring_buffer.c
4009
event->array[0] = rb_event_data_length(event) - RB_EVNT_HDR_SIZE;
kernel/trace/ring_buffer_benchmark.c
141
inc = event->array[0] + 4;
kernel/trace/ring_buffer_benchmark.c
153
if (!event->array[0]) {
kernel/trace/ring_buffer_benchmark.c
157
inc = event->array[0] + 4;
kernel/trace/trace.c
2359
int max_len = PAGE_SIZE - struct_size(entry, array, 1);
kernel/trace/trace.c
2382
entry->array[0] = len;
kernel/trace/trace.h
1624
ring_buffer_write(buffer, event->array[0], &event->array[1]);
kernel/trace/trace_events_synth.c
687
const char *prefix = NULL, *field_type = argv[0], *field_name, *array;
kernel/trace/trace_events_synth.c
719
array = strchr(field_name, '[');
kernel/trace/trace_events_synth.c
720
if (array)
kernel/trace/trace_events_synth.c
721
len -= strlen(array);
kernel/trace/trace_events_synth.c
735
if (array)
kernel/trace/trace_events_synth.c
736
len += strlen(array);
kernel/trace/trace_events_synth.c
749
if (array)
kernel/trace/trace_events_synth.c
750
seq_buf_puts(&s, array);
kernel/trace/trace_events_synth.c
758
if (array)
kernel/trace/trace_probe.c
363
const struct btf_array *array;
kernel/trace/trace_probe.c
370
array = (const struct btf_array *)(type + 1);
kernel/trace/trace_probe.c
372
real_type = btf_type_skip_modifiers(btf, array->type, &tid);
kernel/trace/trace_probe_tmpl.h
157
goto array;
kernel/trace/trace_probe_tmpl.h
161
goto array;
kernel/trace/trace_probe_tmpl.h
165
goto array;
kernel/trace/trace_probe_tmpl.h
204
array:
kernel/trace/trace_syscalls.c
702
bool array = false;
kernel/trace/trace_syscalls.c
718
array = true;
kernel/trace/trace_syscalls.c
761
if (!array) {
kernel/trace/trace_uprobe.c
1400
const struct bpf_prog_array *array;
kernel/trace/trace_uprobe.c
1404
array = rcu_dereference_check(call->prog_array, rcu_read_lock_trace_held());
kernel/trace/trace_uprobe.c
1405
ret = bpf_prog_run_array_uprobe(array, regs, bpf_prog_run);
kernel/trace/tracing_map.h
173
#define TRACING_MAP_ARRAY_ELT(array, idx) \
kernel/trace/tracing_map.h
174
(array->pages[idx >> array->entry_shift] + \
kernel/trace/tracing_map.h
175
((idx & array->entry_mask) << array->entry_size_shift))
kernel/trace/tracing_map.h
177
#define TRACING_MAP_ENTRY(array, idx) \
kernel/trace/tracing_map.h
178
((struct tracing_map_entry *)TRACING_MAP_ARRAY_ELT(array, idx))
kernel/trace/tracing_map.h
180
#define TRACING_MAP_ELT(array, idx) \
kernel/trace/tracing_map.h
181
((struct tracing_map_elt **)TRACING_MAP_ARRAY_ELT(array, idx))
lib/assoc_array.c
1076
struct assoc_array_edit *assoc_array_delete(struct assoc_array *array,
lib/assoc_array.c
1093
edit->array = array;
lib/assoc_array.c
1097
switch (assoc_array_walk(array, ops, index_key, &result)) {
lib/assoc_array.c
1123
BUG_ON(array->nr_leaves_on_tree <= 0);
lib/assoc_array.c
1136
if (array->nr_leaves_on_tree == 1) {
lib/assoc_array.c
1137
edit->set[1].ptr = &array->root;
lib/assoc_array.c
1140
edit->excised_subtree = array->root;
lib/assoc_array.c
1228
edit->set[1].ptr = &array->root;
lib/assoc_array.c
1272
struct assoc_array_edit *assoc_array_clear(struct assoc_array *array,
lib/assoc_array.c
1279
if (!array->root)
lib/assoc_array.c
1285
edit->array = array;
lib/assoc_array.c
1287
edit->set[1].ptr = &array->root;
lib/assoc_array.c
1289
edit->excised_subtree = array->root;
lib/assoc_array.c
133
int assoc_array_iterate(const struct assoc_array *array,
lib/assoc_array.c
1371
if (edit->array->root == NULL) {
lib/assoc_array.c
1372
edit->array->nr_leaves_on_tree = 0;
lib/assoc_array.c
138
struct assoc_array_ptr *root = READ_ONCE(array->root); /* Address dependency. */
lib/assoc_array.c
1391
edit->array->nr_leaves_on_tree += edit->adjust_count_by;
lib/assoc_array.c
1451
int assoc_array_gc(struct assoc_array *array,
lib/assoc_array.c
1467
if (!array->root)
lib/assoc_array.c
1473
edit->array = array;
lib/assoc_array.c
1476
edit->set[0].ptr = &array->root;
lib/assoc_array.c
1477
edit->excised_subtree = array->root;
lib/assoc_array.c
1481
cursor = array->root;
lib/assoc_array.c
170
assoc_array_walk(const struct assoc_array *array,
lib/assoc_array.c
1715
array->nr_leaves_on_tree = nr_leaves_on_tree;
lib/assoc_array.c
185
cursor = READ_ONCE(array->root); /* Address dependency. */
lib/assoc_array.c
304
void *assoc_array_find(const struct assoc_array *array,
lib/assoc_array.c
314
if (assoc_array_walk(array, ops, index_key, &result) !=
lib/assoc_array.c
441
void assoc_array_destroy(struct assoc_array *array,
lib/assoc_array.c
444
assoc_array_destroy_subtree(array->root, ops);
lib/assoc_array.c
445
array->root = NULL;
lib/assoc_array.c
464
edit->set[0].ptr = &edit->array->root;
lib/assoc_array.c
704
edit->set[0].ptr = &edit->array->root;
lib/assoc_array.c
824
edit->set[0].ptr = &edit->array->root;
lib/assoc_array.c
961
struct assoc_array_edit *assoc_array_insert(struct assoc_array *array,
lib/assoc_array.c
981
edit->array = array;
lib/assoc_array.c
986
switch (assoc_array_walk(array, ops, index_key, &result)) {
lib/bootconfig.c
729
goto array;
lib/bootconfig.c
738
array:
lib/crypto/gf128mul.c
200
be128 array[16 + 3] = {};
lib/crypto/gf128mul.c
201
be128 *p = PTR_ALIGN(&array[0], 2 * sizeof(be128));
lib/packing_test.c
27
#define PBUF(array...) \
lib/packing_test.c
28
.pbuf = (const u8[]){ array }, \
lib/packing_test.c
29
.pbuf_size = sizeof((const u8 []){ array })
lib/radix-tree.c
285
ret->array = root;
lib/string_helpers.c
142
int parse_int_array(const char *buf, size_t count, int **array)
lib/string_helpers.c
155
*array = ints;
lib/string_helpers.c
174
int parse_int_array_user(const char __user *from, size_t count, int **array)
lib/string_helpers.c
183
ret = parse_int_array(buf, count, array);
lib/string_helpers.c
794
void kfree_strarray(char **array, size_t n)
lib/string_helpers.c
798
if (!array)
lib/string_helpers.c
802
kfree(array[i]);
lib/string_helpers.c
803
kfree(array);
lib/string_helpers.c
808
char **array;
lib/string_helpers.c
814
struct strarray *array = res;
lib/string_helpers.c
816
kfree_strarray(array->array, array->n);
lib/string_helpers.c
827
ptr->array = kasprintf_strarray(GFP_KERNEL, prefix, n);
lib/string_helpers.c
828
if (!ptr->array) {
lib/string_helpers.c
836
return ptr->array;
lib/string_helpers.c
924
int match_string(const char * const *array, size_t n, const char *string)
lib/string_helpers.c
930
item = array[index];
lib/string_helpers.c
958
int __sysfs_match_string(const char * const *array, size_t n, const char *str)
lib/string_helpers.c
964
item = array[index];
lib/test_rhashtable.c
138
static int __init test_rht_lookup(struct rhashtable *ht, struct test_obj *array,
lib/test_rhashtable.c
150
if (array[i / 2].value.id == TEST_INSERT_FAIL)
lib/test_rhashtable.c
209
static s64 __init test_rhashtable(struct rhashtable *ht, struct test_obj *array,
lib/test_rhashtable.c
224
struct test_obj *obj = &array[i];
lib/test_rhashtable.c
240
test_rht_lookup(ht, array, entries);
lib/test_rhashtable.c
251
if (array[i].value.id != TEST_INSERT_FAIL) {
lib/test_rhashtable.c
435
static int __init test_rhashtable_max(struct test_obj *array,
lib/test_rhashtable.c
447
struct test_obj *obj = &array[i];
lib/test_rhashtable.c
455
err = insert_retry(&ht, &array[ht.max_elems], test_rht_params);
lib/test_vmalloc.c
350
unsigned char array[20];
lib/test_vmalloc.c
364
p->array[0] = 'a';
lib/test_vmalloc.c
382
p->array[0] = 'a';
lib/test_xarray.c
2016
XA_BUG_ON(xa, node->array != xa);
lib/test_xarray.c
2229
static DEFINE_XARRAY(array);
lib/test_xarray.c
2233
check_xa_err(&array);
lib/test_xarray.c
2234
check_xas_retry(&array);
lib/test_xarray.c
2235
check_xa_load(&array);
lib/test_xarray.c
2236
check_xa_mark(&array);
lib/test_xarray.c
2237
check_xa_shrink(&array);
lib/test_xarray.c
2238
check_xas_erase(&array);
lib/test_xarray.c
2239
check_insert(&array);
lib/test_xarray.c
2240
check_cmpxchg(&array);
lib/test_xarray.c
2241
check_cmpxchg_order(&array);
lib/test_xarray.c
2242
check_reserve(&array);
lib/test_xarray.c
2244
check_multi_store(&array);
lib/test_xarray.c
2245
check_multi_store_advanced(&array);
lib/test_xarray.c
2246
check_get_order(&array);
lib/test_xarray.c
2247
check_xas_get_order(&array);
lib/test_xarray.c
2248
check_xas_conflict_get_order(&array);
lib/test_xarray.c
2250
check_find(&array);
lib/test_xarray.c
2251
check_find_entry(&array);
lib/test_xarray.c
2252
check_pause(&array);
lib/test_xarray.c
2253
check_account(&array);
lib/test_xarray.c
2254
check_destroy(&array);
lib/test_xarray.c
2255
check_move(&array);
lib/test_xarray.c
2256
check_create_range(&array);
lib/test_xarray.c
2257
check_store_range(&array);
lib/test_xarray.c
2258
check_store_iter(&array);
lib/test_xarray.c
2260
check_split(&array);
lib/test_xarray.c
2262
check_workingset(&array, 0);
lib/test_xarray.c
2263
check_workingset(&array, 64);
lib/test_xarray.c
2264
check_workingset(&array, 4096);
lib/tests/overflow_kunit.c
1177
s16 array[] __counted_by(counter);
lib/tests/overflow_kunit.c
1183
s16 array[];
lib/tests/overflow_kunit.c
1188
DEFINE_RAW_FLEX(struct bar, two, array, 2);
lib/tests/overflow_kunit.c
1189
DEFINE_FLEX(struct foo, eight, array, counter, 8);
lib/tests/overflow_kunit.c
1190
DEFINE_FLEX(struct foo, empty, array, counter, 0);
lib/tests/overflow_kunit.c
1192
DEFINE_RAW_FLEX(struct foo, two_but_zero, array, 2);
lib/tests/overflow_kunit.c
1198
KUNIT_EXPECT_EQ(test, __struct_size(two->array), 2 * sizeof(s16));
lib/tests/overflow_kunit.c
1199
KUNIT_EXPECT_EQ(test, __member_size(two->array), 2 * sizeof(s16));
lib/tests/overflow_kunit.c
1204
KUNIT_EXPECT_EQ(test, __struct_size(eight->array), 8 * sizeof(s16));
lib/tests/overflow_kunit.c
1205
KUNIT_EXPECT_EQ(test, __member_size(eight->array), 8 * sizeof(s16));
lib/tests/overflow_kunit.c
1210
KUNIT_EXPECT_EQ(test, __struct_size(empty->array), 0);
lib/tests/overflow_kunit.c
1211
KUNIT_EXPECT_EQ(test, __member_size(empty->array), 0);
lib/tests/overflow_kunit.c
1213
KUNIT_EXPECT_EQ(test, STACK_FLEX_ARRAY_SIZE(two, array), 2);
lib/tests/overflow_kunit.c
1214
KUNIT_EXPECT_EQ(test, STACK_FLEX_ARRAY_SIZE(eight, array), 8);
lib/tests/overflow_kunit.c
1215
KUNIT_EXPECT_EQ(test, STACK_FLEX_ARRAY_SIZE(empty, array), 0);
lib/tests/overflow_kunit.c
1224
KUNIT_EXPECT_EQ(test, __struct_size(two_but_zero->array), array_size_override);
lib/tests/overflow_kunit.c
1225
KUNIT_EXPECT_EQ(test, __member_size(two_but_zero->array), array_size_override);
lib/tests/stackinit_kunit.c
360
unsigned long array[FILL_SIZE_ARRAY];
lib/tests/util_macros_kunit.c
11
#define FIND_CLOSEST_RANGE_CHECK(from, to, array, exp_idx) \
lib/tests/util_macros_kunit.c
118
#define FIND_CLOSEST_DESC_RANGE_CHECK(from, to, array, exp_idx) \
lib/tests/util_macros_kunit.c
122
int found = find_closest_descending(i, array, \
lib/tests/util_macros_kunit.c
123
ARRAY_SIZE(array)); \
lib/tests/util_macros_kunit.c
15
int found = find_closest(i, array, ARRAY_SIZE(array)); \
lib/vsprintf.c
912
const char *array[4], *s;
lib/vsprintf.c
933
array[i] = READ_ONCE(d->d_name.name);
lib/vsprintf.c
936
array[i] = "";
lib/vsprintf.c
941
s = array[--i];
lib/vsprintf.c
948
s = array[--i];
lib/xarray.c
1020
node->array = xas->xa;
lib/xarray.c
2360
.xa = node->array,
lib/xarray.c
2365
.xa_node = xa_parent_locked(node->array, node),
lib/xarray.c
2419
node->array, node->private_list.prev, node->private_list.next);
lib/xarray.c
259
node->array = XA_RCU_FREE;
lib/xarray.c
397
node->array = xas->xa;
mm/cma_debug.c
185
cmr->dfs_bitmap.array = (u32 *)cmr->bitmap;
mm/hugetlb.c
4552
unsigned int *array = h->free_huge_pages_node;
mm/hugetlb.c
4558
nr += array[node];
mm/kasan/kasan_test_c.c
1551
char *volatile array = global_array;
mm/kasan/kasan_test_c.c
1552
char *p = &array[ARRAY_SIZE(global_array) + 3];
mm/kasan/kasan_test_c.c
1562
char *volatile array = global_array;
mm/kasan/kasan_test_c.c
1563
char *p = array - 3;
mm/kasan/kasan_test_c.c
1578
char *volatile array = stack_array;
mm/kasan/kasan_test_c.c
1579
char *p = &array[ARRAY_SIZE(stack_array) + OOB_TAG_OFF];
mm/kasan/kasan_test_c.c
1591
char *volatile array = alloca_array;
mm/kasan/kasan_test_c.c
1592
char *p = array - 1;
mm/kasan/kasan_test_c.c
1606
char *volatile array = alloca_array;
mm/kasan/kasan_test_c.c
1607
char *p = array + i;
mm/kmsan/kmsan_test.c
286
static noinline void do_uninit_local_array(char *array, int start, int stop)
mm/kmsan/kmsan_test.c
291
array[i] = uninit;
mm/kmsan/kmsan_test.c
633
static noinline void fibonacci(int *array, int size, int start)
mm/kmsan/kmsan_test.c
637
array[start] = array[start - 1] + array[start - 2];
mm/kmsan/kmsan_test.c
638
fibonacci(array, size, start + 1);
mm/workingset.c
625
lockdep_assert_held(&node->array->xa_lock);
mm/workingset.c
718
mapping = container_of(node->array, struct address_space, i_pages);
net/8021q/vlan.c
52
struct net_device **array;
net/8021q/vlan.c
64
array = vg->vlan_devices_arrays[pidx][vidx];
net/8021q/vlan.c
65
if (array != NULL)
net/8021q/vlan.c
69
array = kzalloc(size, GFP_KERNEL_ACCOUNT);
net/8021q/vlan.c
70
if (array == NULL)
net/8021q/vlan.c
76
vg->vlan_devices_arrays[pidx][vidx] = array;
net/8021q/vlan.h
57
struct net_device **array;
net/8021q/vlan.h
59
array = vg->vlan_devices_arrays[pidx]
net/8021q/vlan.h
65
return array ? array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] : NULL;
net/8021q/vlan.h
85
struct net_device **array;
net/8021q/vlan.h
89
array = vg->vlan_devices_arrays[pidx]
net/8021q/vlan.h
91
array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev;
net/core/filter.c
4981
struct bpf_array *array = container_of(map, struct bpf_array, map);
net/core/filter.c
4988
if (unlikely(idx >= array->map.max_entries))
net/core/filter.c
4991
cgrp = READ_ONCE(array->ptrs[idx]);
net/ipv4/cipso_ipv4.c
1052
u16 array[CIPSO_V4_TAG_RNG_CAT_MAX * 2];
net/ipv4/cipso_ipv4.c
1068
array[array_cnt++] = iter;
net/ipv4/cipso_ipv4.c
1076
array[array_cnt++] = iter;
net/ipv4/cipso_ipv4.c
1080
*((__be16 *)&net_cat[iter]) = htons(array[--array_cnt]);
net/ipv4/cipso_ipv4.c
1083
if (array[array_cnt] != 0) {
net/ipv4/cipso_ipv4.c
1084
*((__be16 *)&net_cat[iter]) = htons(array[array_cnt]);
net/ipv6/addrconf.c
5632
__s32 *array, int bytes)
net/ipv6/addrconf.c
5636
memset(array, 0, bytes);
net/ipv6/addrconf.c
5637
array[DEVCONF_FORWARDING] = READ_ONCE(cnf->forwarding);
net/ipv6/addrconf.c
5638
array[DEVCONF_HOPLIMIT] = READ_ONCE(cnf->hop_limit);
net/ipv6/addrconf.c
5639
array[DEVCONF_MTU6] = READ_ONCE(cnf->mtu6);
net/ipv6/addrconf.c
5640
array[DEVCONF_ACCEPT_RA] = READ_ONCE(cnf->accept_ra);
net/ipv6/addrconf.c
5641
array[DEVCONF_ACCEPT_REDIRECTS] = READ_ONCE(cnf->accept_redirects);
net/ipv6/addrconf.c
5642
array[DEVCONF_AUTOCONF] = READ_ONCE(cnf->autoconf);
net/ipv6/addrconf.c
5643
array[DEVCONF_DAD_TRANSMITS] = READ_ONCE(cnf->dad_transmits);
net/ipv6/addrconf.c
5644
array[DEVCONF_RTR_SOLICITS] = READ_ONCE(cnf->rtr_solicits);
net/ipv6/addrconf.c
5645
array[DEVCONF_RTR_SOLICIT_INTERVAL] =
net/ipv6/addrconf.c
5647
array[DEVCONF_RTR_SOLICIT_MAX_INTERVAL] =
net/ipv6/addrconf.c
5649
array[DEVCONF_RTR_SOLICIT_DELAY] =
net/ipv6/addrconf.c
5651
array[DEVCONF_FORCE_MLD_VERSION] = READ_ONCE(cnf->force_mld_version);
net/ipv6/addrconf.c
5652
array[DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL] =
net/ipv6/addrconf.c
5654
array[DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL] =
net/ipv6/addrconf.c
5656
array[DEVCONF_USE_TEMPADDR] = READ_ONCE(cnf->use_tempaddr);
net/ipv6/addrconf.c
5657
array[DEVCONF_TEMP_VALID_LFT] = READ_ONCE(cnf->temp_valid_lft);
net/ipv6/addrconf.c
5658
array[DEVCONF_TEMP_PREFERED_LFT] = READ_ONCE(cnf->temp_prefered_lft);
net/ipv6/addrconf.c
5659
array[DEVCONF_REGEN_MAX_RETRY] = READ_ONCE(cnf->regen_max_retry);
net/ipv6/addrconf.c
5660
array[DEVCONF_MAX_DESYNC_FACTOR] = READ_ONCE(cnf->max_desync_factor);
net/ipv6/addrconf.c
5661
array[DEVCONF_MAX_ADDRESSES] = READ_ONCE(cnf->max_addresses);
net/ipv6/addrconf.c
5662
array[DEVCONF_ACCEPT_RA_DEFRTR] = READ_ONCE(cnf->accept_ra_defrtr);
net/ipv6/addrconf.c
5663
array[DEVCONF_RA_DEFRTR_METRIC] = READ_ONCE(cnf->ra_defrtr_metric);
net/ipv6/addrconf.c
5664
array[DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT] =
net/ipv6/addrconf.c
5666
array[DEVCONF_ACCEPT_RA_PINFO] = READ_ONCE(cnf->accept_ra_pinfo);
net/ipv6/addrconf.c
5668
array[DEVCONF_ACCEPT_RA_RTR_PREF] = READ_ONCE(cnf->accept_ra_rtr_pref);
net/ipv6/addrconf.c
5669
array[DEVCONF_RTR_PROBE_INTERVAL] =
net/ipv6/addrconf.c
5672
array[DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN] =
net/ipv6/addrconf.c
5674
array[DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN] =
net/ipv6/addrconf.c
5678
array[DEVCONF_PROXY_NDP] = READ_ONCE(cnf->proxy_ndp);
net/ipv6/addrconf.c
5679
array[DEVCONF_ACCEPT_SOURCE_ROUTE] =
net/ipv6/addrconf.c
5682
array[DEVCONF_OPTIMISTIC_DAD] = READ_ONCE(cnf->optimistic_dad);
net/ipv6/addrconf.c
5683
array[DEVCONF_USE_OPTIMISTIC] = READ_ONCE(cnf->use_optimistic);
net/ipv6/addrconf.c
5686
array[DEVCONF_MC_FORWARDING] = atomic_read(&cnf->mc_forwarding);
net/ipv6/addrconf.c
5688
array[DEVCONF_DISABLE_IPV6] = READ_ONCE(cnf->disable_ipv6);
net/ipv6/addrconf.c
5689
array[DEVCONF_ACCEPT_DAD] = READ_ONCE(cnf->accept_dad);
net/ipv6/addrconf.c
5690
array[DEVCONF_FORCE_TLLAO] = READ_ONCE(cnf->force_tllao);
net/ipv6/addrconf.c
5691
array[DEVCONF_NDISC_NOTIFY] = READ_ONCE(cnf->ndisc_notify);
net/ipv6/addrconf.c
5692
array[DEVCONF_SUPPRESS_FRAG_NDISC] =
net/ipv6/addrconf.c
5694
array[DEVCONF_ACCEPT_RA_FROM_LOCAL] =
net/ipv6/addrconf.c
5696
array[DEVCONF_ACCEPT_RA_MTU] = READ_ONCE(cnf->accept_ra_mtu);
net/ipv6/addrconf.c
5697
array[DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN] =
net/ipv6/addrconf.c
5700
array[DEVCONF_USE_OIF_ADDRS_ONLY] = READ_ONCE(cnf->use_oif_addrs_only);
net/ipv6/addrconf.c
5701
array[DEVCONF_DROP_UNICAST_IN_L2_MULTICAST] =
net/ipv6/addrconf.c
5703
array[DEVCONF_DROP_UNSOLICITED_NA] = READ_ONCE(cnf->drop_unsolicited_na);
net/ipv6/addrconf.c
5704
array[DEVCONF_KEEP_ADDR_ON_DOWN] = READ_ONCE(cnf->keep_addr_on_down);
net/ipv6/addrconf.c
5705
array[DEVCONF_SEG6_ENABLED] = READ_ONCE(cnf->seg6_enabled);
net/ipv6/addrconf.c
5707
array[DEVCONF_SEG6_REQUIRE_HMAC] = READ_ONCE(cnf->seg6_require_hmac);
net/ipv6/addrconf.c
5709
array[DEVCONF_ENHANCED_DAD] = READ_ONCE(cnf->enhanced_dad);
net/ipv6/addrconf.c
5710
array[DEVCONF_ADDR_GEN_MODE] = READ_ONCE(cnf->addr_gen_mode);
net/ipv6/addrconf.c
5711
array[DEVCONF_DISABLE_POLICY] = READ_ONCE(cnf->disable_policy);
net/ipv6/addrconf.c
5712
array[DEVCONF_NDISC_TCLASS] = READ_ONCE(cnf->ndisc_tclass);
net/ipv6/addrconf.c
5713
array[DEVCONF_RPL_SEG_ENABLED] = READ_ONCE(cnf->rpl_seg_enabled);
net/ipv6/addrconf.c
5714
array[DEVCONF_IOAM6_ENABLED] = READ_ONCE(cnf->ioam6_enabled);
net/ipv6/addrconf.c
5715
array[DEVCONF_IOAM6_ID] = READ_ONCE(cnf->ioam6_id);
net/ipv6/addrconf.c
5716
array[DEVCONF_IOAM6_ID_WIDE] = READ_ONCE(cnf->ioam6_id_wide);
net/ipv6/addrconf.c
5717
array[DEVCONF_NDISC_EVICT_NOCARRIER] =
net/ipv6/addrconf.c
5719
array[DEVCONF_ACCEPT_UNTRACKED_NA] =
net/ipv6/addrconf.c
5721
array[DEVCONF_ACCEPT_RA_MIN_LFT] = READ_ONCE(cnf->accept_ra_min_lft);
net/ipv6/addrconf.c
5722
array[DEVCONF_FORCE_FORWARDING] = READ_ONCE(cnf->force_forwarding);
net/iucv/iucv.c
1101
struct iucv_array *array;
net/iucv/iucv.c
1115
for (array = buffer; size > 0; array++) {
net/iucv/iucv.c
1116
copy = min_t(size_t, size, array->length);
net/iucv/iucv.c
1117
memcpy(dma32_to_virt(array->address), rmmsg, copy);
net/netfilter/nf_conntrack_ftp.c
118
static int try_number(const char *data, size_t dlen, u_int32_t array[],
net/netfilter/nf_conntrack_ftp.c
123
memset(array, 0, sizeof(array[0])*array_size);
net/netfilter/nf_conntrack_ftp.c
128
array[i] = array[i]*10 + *data - '0';
net/netfilter/nf_conntrack_ftp.c
155
u_int32_t array[6];
net/netfilter/nf_conntrack_ftp.c
157
length = try_number(data, dlen, array, 6, ',', term);
net/netfilter/nf_conntrack_ftp.c
161
cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) |
net/netfilter/nf_conntrack_ftp.c
162
(array[2] << 8) | array[3]);
net/netfilter/nf_conntrack_ftp.c
163
cmd->u.tcp.port = htons((array[4] << 8) | array[5]);
net/netfilter/nf_conntrack_ftp.c
248
u_int32_t array[4];
net/netfilter/nf_conntrack_ftp.c
251
length = try_number(data + 3, dlen - 3, array, 4, '.', delim);
net/netfilter/nf_conntrack_ftp.c
253
cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16)
net/netfilter/nf_conntrack_ftp.c
254
| (array[2] << 8) | array[3]);
net/netfilter/nft_set_rbtree.c
1009
array = rcu_dereference_protected(priv->array, true);
net/netfilter/nft_set_rbtree.c
1010
if (array)
net/netfilter/nft_set_rbtree.c
1011
__nft_array_free(array);
net/netfilter/nft_set_rbtree.c
1036
struct nft_array *array = container_of(rcu_head, struct nft_array, rcu_head);
net/netfilter/nft_set_rbtree.c
1038
__nft_array_free(array);
net/netfilter/nft_set_rbtree.c
1110
old = rcu_replace_pointer(priv->array, priv->array_next,
net/netfilter/nft_set_rbtree.c
112
struct nft_array *array = rcu_dereference(priv->array);
net/netfilter/nft_set_rbtree.c
119
if (!array)
net/netfilter/nft_set_rbtree.c
122
interval = bsearch(&ctx, array->intervals, array->num_intervals,
net/netfilter/nft_set_rbtree.c
170
struct nft_array *array = rcu_dereference(priv->array);
net/netfilter/nft_set_rbtree.c
179
if (!array)
net/netfilter/nft_set_rbtree.c
182
interval = bsearch(&ctx, array->intervals, array->num_intervals,
net/netfilter/nft_set_rbtree.c
34
struct nft_array __rcu *array;
net/netfilter/nft_set_rbtree.c
541
static int nft_array_intervals_alloc(struct nft_array *array, u32 max_intervals)
net/netfilter/nft_set_rbtree.c
550
if (array->intervals)
net/netfilter/nft_set_rbtree.c
551
kvfree(array->intervals);
net/netfilter/nft_set_rbtree.c
553
array->intervals = intervals;
net/netfilter/nft_set_rbtree.c
554
array->max_intervals = max_intervals;
net/netfilter/nft_set_rbtree.c
561
struct nft_array *array;
net/netfilter/nft_set_rbtree.c
563
array = kzalloc_obj(*array, GFP_KERNEL_ACCOUNT);
net/netfilter/nft_set_rbtree.c
564
if (!array)
net/netfilter/nft_set_rbtree.c
567
if (nft_array_intervals_alloc(array, max_intervals) < 0) {
net/netfilter/nft_set_rbtree.c
568
kfree(array);
net/netfilter/nft_set_rbtree.c
572
return array;
net/netfilter/nft_set_rbtree.c
605
struct nft_array *array;
net/netfilter/nft_set_rbtree.c
616
if (priv->array) {
net/netfilter/nft_set_rbtree.c
617
max_intervals = priv->array->max_intervals;
net/netfilter/nft_set_rbtree.c
618
new_max_intervals = priv->array->max_intervals;
net/netfilter/nft_set_rbtree.c
670
array = nft_array_alloc(new_max_intervals);
net/netfilter/nft_set_rbtree.c
671
if (!array)
net/netfilter/nft_set_rbtree.c
674
priv->array_next = array;
net/netfilter/nft_set_rbtree.c
978
priv->array = NULL;
net/netfilter/nft_set_rbtree.c
984
static void __nft_array_free(struct nft_array *array)
net/netfilter/nft_set_rbtree.c
986
kvfree(array->intervals);
net/netfilter/nft_set_rbtree.c
987
kfree(array);
net/netfilter/nft_set_rbtree.c
995
struct nft_array *array;
net/rose/af_rose.c
185
struct sock *sk, *array[16];
net/rose/af_rose.c
197
if (cnt == ARRAY_SIZE(array)) {
net/rose/af_rose.c
202
array[cnt++] = sk;
net/rose/af_rose.c
208
sk = array[i];
net/sched/sch_fq.c
891
struct rb_root *array;
net/sched/sch_fq.c
899
array = kvmalloc_node(sizeof(struct rb_root) << log, GFP_KERNEL | __GFP_RETRY_MAYFAIL,
net/sched/sch_fq.c
901
if (!array)
net/sched/sch_fq.c
905
array[idx] = RB_ROOT;
net/sched/sch_fq.c
911
fq_rehash(q, old_fq_root, q->fq_trees_log, array, log);
net/sched/sch_fq.c
913
q->fq_root = array;
samples/bpf/xdp_sample_user.c
318
struct datarec *array;
samples/bpf/xdp_sample_user.c
320
array = calloc(nr_cpus, sizeof(*array));
samples/bpf/xdp_sample_user.c
321
if (!array) {
samples/bpf/xdp_sample_user.c
326
return array;
samples/ftrace/sample-trace-array.h
83
#define TRACE_INCLUDE_FILE sample-trace-array
samples/trace_events/trace-events-sample.c
26
int array[6];
samples/trace_events/trace-events-sample.c
34
array[i] = i + 1;
samples/trace_events/trace-events-sample.c
35
array[i] = 0;
samples/trace_events/trace-events-sample.c
40
trace_foo_bar("hello", cnt, array, random_strings[len],
scripts/dtc/dtc-parser.y
43
} array;
scripts/dtc/dtc-parser.y
78
%type <array> arrayprefix
scripts/gendwarfksyms/dwarf.c
937
PROCESS_TYPE(array)
scripts/tracepoint-update.c
108
etrace->array = vals;
scripts/tracepoint-update.c
112
static int find_event(const char *str, void *array, size_t size)
scripts/tracepoint-update.c
114
return bsearch(&str, array, size, sizeof(char *), compare_strings) != NULL;
scripts/tracepoint-update.c
122
if (!etrace->array)
scripts/tracepoint-update.c
133
if (!find_event(str, etrace->array, etrace->count)) {
scripts/tracepoint-update.c
142
free(etrace->array);
scripts/tracepoint-update.c
35
const char **array;
scripts/tracepoint-update.c
44
const char **array = *vals;
scripts/tracepoint-update.c
49
array = realloc(array, sizeof(char *) * size);
scripts/tracepoint-update.c
50
if (!array) {
scripts/tracepoint-update.c
56
*vals = array;
scripts/tracepoint-update.c
59
array[(*count)++] = str;
scripts/tracepoint-update.c
88
etrace->array = NULL;
sound/hda/codecs/generic.c
290
struct nid_path *array = spec->paths.list;
sound/hda/codecs/generic.c
295
idx = path - array;
sound/hda/common/codec.c
468
struct snd_array *array,
sound/hda/common/codec.c
474
snd_array_for_each(array, i, pin) {
sound/hda/common/proc.c
49
struct snd_array *array)
sound/hda/common/proc.c
52
struct hda_nid_item *items = array->list, *item;
sound/hda/common/proc.c
54
for (i = 0; i < array->used; i++) {
sound/hda/core/array.c
19
void *snd_array_new(struct snd_array *array)
sound/hda/core/array.c
21
if (snd_BUG_ON(!array->elem_size))
sound/hda/core/array.c
23
if (array->used >= array->alloced) {
sound/hda/core/array.c
24
int num = array->alloced + array->alloc_align;
sound/hda/core/array.c
25
int oldsize = array->alloced * array->elem_size;
sound/hda/core/array.c
26
int size = (num + 1) * array->elem_size;
sound/hda/core/array.c
30
nlist = krealloc(array->list, size, GFP_KERNEL);
sound/hda/core/array.c
34
array->list = nlist;
sound/hda/core/array.c
35
array->alloced = num;
sound/hda/core/array.c
37
return snd_array_elem(array, array->used++);
sound/hda/core/array.c
45
void snd_array_free(struct snd_array *array)
sound/hda/core/array.c
47
kfree(array->list);
sound/hda/core/array.c
48
array->used = 0;
sound/hda/core/array.c
49
array->alloced = 0;
sound/hda/core/array.c
50
array->list = NULL;
sound/isa/cmi8328.c
196
static int array_find(const int array[], int item)
sound/isa/cmi8328.c
200
for (i = 0; array[i] != -1; i++)
sound/isa/cmi8328.c
201
if (array[i] == item)
sound/isa/cmi8328.c
207
static int array_find_l(const long array[], long item)
sound/isa/cmi8328.c
211
for (i = 0; array[i] != -1; i++)
sound/isa/cmi8328.c
212
if (array[i] == item)
sound/pci/lola/lola.h
265
struct lola_mixer_array __iomem *array;
sound/pci/lola/lola_mixer.c
119
chip->mixer.array = (struct lola_mixer_array __iomem *)
sound/pci/lola/lola_mixer.c
217
oldval = val = readl(&chip->mixer.array->src_gain_enable);
sound/pci/lola/lola_mixer.c
224
(gain == readw(&chip->mixer.array->src_gain[id])))
sound/pci/lola/lola_mixer.c
230
writew(gain, &chip->mixer.array->src_gain[id]);
sound/pci/lola/lola_mixer.c
231
writel(val, &chip->mixer.array->src_gain_enable);
sound/pci/lola/lola_mixer.c
248
writew(*gains, &chip->mixer.array->src_gain[i]);
sound/pci/lola/lola_mixer.c
252
writel(mask, &chip->mixer.array->src_gain_enable);
sound/pci/lola/lola_mixer.c
280
writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]);
sound/pci/lola/lola_mixer.c
281
val = readl(&chip->mixer.array->dest_mix_gain_enable[dest]);
sound/pci/lola/lola_mixer.c
286
writel(val, &chip->mixer.array->dest_mix_gain_enable[dest]);
sound/pci/lola/lola_mixer.c
303
writew(*gains, &chip->mixer.array->dest_mix_gain[id][i]);
sound/pci/lola/lola_mixer.c
307
writel(mask, &chip->mixer.array->dest_mix_gain_enable[id]);
sound/pci/lola/lola_mixer.c
416
memset_io(chip->mixer.array, 0, sizeof(*chip->mixer.array));
sound/pci/lola/lola_mixer.c
638
mask = readl(&chip->mixer.array->src_gain_enable);
sound/pci/lola/lola_mixer.c
645
val = readw(&chip->mixer.array->src_gain[idx]) + 1;
sound/pci/lola/lola_mixer.c
721
mask = readl(&chip->mixer.array->dest_mix_gain_enable[dst]);
sound/pci/lola/lola_mixer.c
728
val = readw(&chip->mixer.array->dest_mix_gain[dst][src]) + 1;
sound/soc/amd/acp/soc-acpi-amd-sdca-quirks.c
31
if (sdca_device_quirk_match(ctx->peripherals->array[i],
sound/soc/codecs/es8326.c
485
static inline int get_coeff(int mclk, int rate, int array,
sound/soc/codecs/es8326.c
490
for (i = 0; i < array; i++) {
sound/soc/codecs/es8326.c
558
int coeff, array;
sound/soc/codecs/es8326.c
562
array = ARRAY_SIZE(coeff_div_v0);
sound/soc/codecs/es8326.c
565
array = ARRAY_SIZE(coeff_div_v3);
sound/soc/codecs/es8326.c
567
coeff = get_coeff(es8326->sysclk, params_rate(params), array, coeff_div);
sound/soc/codecs/tas5086.c
339
static int index_in_array(const int *array, int len, int needle)
sound/soc/codecs/tas5086.c
344
if (array[i] == needle)
sound/soc/intel/avs/board_selection.c
508
u32 *array, num_elems;
sound/soc/intel/avs/board_selection.c
513
ret = parse_int_array(i2s_test, strlen(i2s_test), (int **)&array);
sound/soc/intel/avs/board_selection.c
519
num_elems = *array;
sound/soc/intel/avs/board_selection.c
528
tdm_slots = array[1 + ssp_port];
sound/soc/intel/avs/board_selection.c
537
kfree(array);
sound/soc/intel/avs/debugfs.c
140
u32 *array, num_elems;
sound/soc/intel/avs/debugfs.c
144
ret = parse_int_array_user(from, count, (int **)&array);
sound/soc/intel/avs/debugfs.c
148
num_elems = *array;
sound/soc/intel/avs/debugfs.c
149
bytes = sizeof(*array) * num_elems;
sound/soc/intel/avs/debugfs.c
155
desc = (struct avs_probe_point_desc *)&array[1];
sound/soc/intel/avs/debugfs.c
162
kfree(array);
sound/soc/intel/avs/debugfs.c
177
u32 *array, num_elems;
sound/soc/intel/avs/debugfs.c
181
ret = parse_int_array_user(from, count, (int **)&array);
sound/soc/intel/avs/debugfs.c
185
num_elems = *array;
sound/soc/intel/avs/debugfs.c
186
bytes = sizeof(*array) * num_elems;
sound/soc/intel/avs/debugfs.c
192
id = (union avs_probe_point_id *)&array[1];
sound/soc/intel/avs/debugfs.c
199
kfree(array);
sound/soc/intel/avs/debugfs.c
363
u32 *array, num_elems;
sound/soc/intel/avs/debugfs.c
367
ret = parse_int_array_user(from, count, (int **)&array);
sound/soc/intel/avs/debugfs.c
371
num_elems = *array;
sound/soc/intel/avs/debugfs.c
383
resource_mask = array[1];
sound/soc/intel/avs/debugfs.c
392
ret = enable_logs(adev, resource_mask, &array[2]);
sound/soc/intel/avs/debugfs.c
398
kfree(array);
sound/soc/intel/avs/topology.c
1883
template = avs_tplg_path_template_create(comp, tplg, dw->priv.array,
sound/soc/intel/avs/topology.c
1964
struct snd_soc_tplg_vendor_array *tuples = manifest->priv.array;
sound/soc/intel/avs/topology.c
21
#define avs_tplg_vendor_array_at(array, offset) \
sound/soc/intel/avs/topology.c
2174
tuples = tmc->priv.array;
sound/soc/intel/avs/topology.c
22
((struct snd_soc_tplg_vendor_array *)((u8 *)array + offset))
sound/soc/intel/avs/topology.c
25
#define avs_tplg_vendor_array_next(array) \
sound/soc/intel/avs/topology.c
26
(avs_tplg_vendor_array_at(array, le32_to_cpu((array)->size)))
sound/soc/intel/common/soc-acpi-intel-sdca-quirks.c
31
if (sdca_device_quirk_match(ctx->peripherals->array[i],
sound/soc/qcom/qdsp6/topology.c
220
sg_array = (struct snd_soc_tplg_vendor_array *)((u8 *)private->array + sz);
sound/soc/qcom/qdsp6/topology.c
253
cont_array = (struct snd_soc_tplg_vendor_array *)((u8 *)private->array + sz);
sound/soc/qcom/qdsp6/topology.c
286
mod_array = (struct snd_soc_tplg_vendor_array *)((u8 *)private->array + sz);
sound/soc/qcom/qdsp6/topology.c
316
mod_array = (struct snd_soc_tplg_vendor_array *)((u8 *)private->array + sz);
sound/soc/qcom/qdsp6/topology.c
830
w_array = &tplg_w->priv.array[0];
sound/soc/renesas/rcar/core.c
481
enum rsnd_mod_type *array,
sound/soc/renesas/rcar/core.c
484
int max = array ? array_size : RSND_MOD_MAX;
sound/soc/renesas/rcar/core.c
487
enum rsnd_mod_type type = (array) ? array[*iterator] : *iterator;
sound/soc/renesas/rcar/rsnd.h
440
enum rsnd_mod_type *array,
sound/soc/renesas/rcar/rsnd.h
445
#define for_each_rsnd_mod_arrays(iterator, pos, io, array, size) \
sound/soc/renesas/rcar/rsnd.h
447
(pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)
sound/soc/renesas/rcar/rsnd.h
448
#define for_each_rsnd_mod_array(iterator, pos, io, array) \
sound/soc/renesas/rcar/rsnd.h
449
for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))
sound/soc/soc-acpi.c
149
struct sdw_slave *peripheral = peripherals->array[j];
sound/soc/soc-acpi.c
160
struct sdw_slave *peripheral = peripherals->array[j];
sound/soc/sof/intel/hda.c
1378
peripherals->array[i]->bus->link_id,
sound/soc/sof/intel/hda.c
1379
peripherals->array[i]->id.mfg_id,
sound/soc/sof/intel/hda.c
1380
peripherals->array[i]->id.part_id,
sound/soc/sof/intel/hda.c
1381
peripherals->array[i]->id.sdw_version);
sound/soc/sof/intel/hda.c
1399
link_mask |= BIT(peripherals->array[i]->bus->link_id);
sound/soc/sof/intel/hda.c
1409
link_index = hweight32(link_mask & (BIT(peripherals->array[i]->bus->link_id) - 1));
sound/soc/sof/intel/hda.c
1410
links[link_index].adr_d = find_acpi_adr_device(sdev->dev, peripherals->array[i],
sound/soc/sof/sof-client-probes.c
295
u32 num_elems, *array;
sound/soc/sof/sof-client-probes.c
304
ret = parse_int_array_user(from, count, (int **)&array);
sound/soc/sof/sof-client-probes.c
308
num_elems = *array;
sound/soc/sof/sof-client-probes.c
309
bytes = sizeof(*array) * num_elems;
sound/soc/sof/sof-client-probes.c
315
desc = (struct sof_probe_point_desc *)&array[1];
sound/soc/sof/sof-client-probes.c
334
kfree(array);
sound/soc/sof/sof-client-probes.c
364
u32 *array;
sound/soc/sof/sof-client-probes.c
371
ret = parse_int_array_user(from, count, (int **)&array);
sound/soc/sof/sof-client-probes.c
383
ret = ipc->points_remove(cdev, &array[1], array[0]);
sound/soc/sof/sof-client-probes.c
392
kfree(array);
sound/soc/sof/topology.c
1257
private->array, le32_to_cpu(private->size));
sound/soc/sof/topology.c
1305
ret = sof_copy_tuples(sdev, private->array, le32_to_cpu(private->size),
sound/soc/sof/topology.c
1367
token_count, priv->array, le32_to_cpu(priv->size),
sound/soc/sof/topology.c
1439
priv->array, le32_to_cpu(priv->size));
sound/soc/sof/topology.c
1447
ARRAY_SIZE(comp_pin_tokens), priv->array,
sound/soc/sof/topology.c
1772
ARRAY_SIZE(stream_tokens), private->array,
sound/soc/sof/topology.c
1930
private->array, le32_to_cpu(private->size));
sound/soc/sof/topology.c
2011
ret = sof_copy_tuples(sdev, private->array, le32_to_cpu(private->size),
sound/soc/sof/topology.c
2026
ret = sof_copy_tuples(sdev, private->array, le32_to_cpu(private->size),
sound/soc/sof/topology.c
2045
ret = sof_copy_tuples(sdev, private->array, le32_to_cpu(private->size),
sound/soc/sof/topology.c
2387
priv->array, le32_to_cpu(priv->size));
sound/soc/sof/topology.c
2412
priv->array, le32_to_cpu(priv->size));
sound/soc/sof/topology.c
459
struct snd_soc_tplg_vendor_array *array)
sound/soc/sof/topology.c
466
for (i = 0; i < le32_to_cpu(array->num_elems); i++) {
sound/soc/sof/topology.c
467
elem = &array->uuid[i];
sound/soc/sof/topology.c
504
static int sof_copy_tuples(struct snd_sof_dev *sdev, struct snd_soc_tplg_vendor_array *array,
sound/soc/sof/topology.c
541
asize = le32_to_cpu(array->size);
sound/soc/sof/topology.c
557
for (i = 0; i < le32_to_cpu(array->num_elems); i++) {
sound/soc/sof/topology.c
571
elem = &array->string[i];
sound/soc/sof/topology.c
586
elem = &array->value[i];
sound/soc/sof/topology.c
610
array = (struct snd_soc_tplg_vendor_array *)((u8 *)array + asize);
sound/soc/sof/topology.c
630
struct snd_soc_tplg_vendor_array *array)
sound/soc/sof/topology.c
637
for (i = 0; i < le32_to_cpu(array->num_elems); i++) {
sound/soc/sof/topology.c
638
elem = &array->string[i];
sound/soc/sof/topology.c
676
struct snd_soc_tplg_vendor_array *array)
sound/soc/sof/topology.c
683
for (i = 0; i < le32_to_cpu(array->num_elems); i++) {
sound/soc/sof/topology.c
684
elem = &array->value[i];
sound/soc/sof/topology.c
726
int count, struct snd_soc_tplg_vendor_array *array,
sound/soc/sof/topology.c
736
asize = le32_to_cpu(array->size);
sound/soc/sof/topology.c
739
if (asize < sizeof(*array)) {
sound/soc/sof/topology.c
754
switch (le32_to_cpu(array->type)) {
sound/soc/sof/topology.c
757
array);
sound/soc/sof/topology.c
762
array);
sound/soc/sof/topology.c
775
array);
sound/soc/sof/topology.c
779
array->type);
sound/soc/sof/topology.c
784
array = (struct snd_soc_tplg_vendor_array *)((u8 *)array
sound/soc/sof/topology.c
812
struct snd_soc_tplg_vendor_array *array,
sound/soc/sof/topology.c
822
return sof_parse_token_sets(scomp, object, tokens, num_tokens, array,
sound/soc/sof/topology.c
880
ARRAY_SIZE(led_tokens), mc->priv.array,
tools/bpf/bpftool/btf_dumper.c
623
const struct btf_array *array;
tools/bpf/bpftool/btf_dumper.c
654
array = (struct btf_array *)(t + 1);
tools/bpf/bpftool/btf_dumper.c
655
BTF_PRINT_TYPE(array->type);
tools/bpf/bpftool/btf_dumper.c
656
BTF_PRINT_ARG("[%u]", array->nelems);
tools/bpf/bpftool/gen.c
2096
struct btf_array *array;
tools/bpf/bpftool/gen.c
2132
array = btf_array(btf_type);
tools/bpf/bpftool/gen.c
2135
err = btfgen_mark_type(info, array->type, follow_pointers);
tools/bpf/bpftool/gen.c
2137
err = err ? : btfgen_mark_type(info, array->index_type, follow_pointers);
tools/bpf/bpftool/gen.c
2170
struct btf_array *array;
tools/bpf/bpftool/gen.c
2205
array = btf_array(btf_type);
tools/bpf/bpftool/gen.c
2206
type_id = array->type;
tools/bpf/bpftool/gen.c
2277
struct btf_array *array;
tools/bpf/bpftool/gen.c
2279
array = btf_array(btf_type);
tools/bpf/bpftool/gen.c
2281
err = btfgen_mark_type_match(info, array->type, false);
tools/bpf/bpftool/gen.c
2283
err = err ? : btfgen_mark_type_match(info, array->index_type, false);
tools/bpf/bpftool/link.c
83
#define perf_event_name(array, id) ({ \
tools/bpf/bpftool/link.c
86
if ((id) < ARRAY_SIZE(array)) \
tools/bpf/bpftool/link.c
87
event_str = array[id]; \
tools/firewire/nosy-dump.h
5
#define array_length(array) (sizeof(array) / sizeof(array[0]))
tools/include/io_uring/mini_liburing.h
17
unsigned int *array;
tools/include/io_uring/mini_liburing.h
227
sq->array[ktail++ & mask] = sq->sqe_head++ & mask;
tools/include/io_uring/mini_liburing.h
35
unsigned int *array;
tools/include/io_uring/mini_liburing.h
81
sq->ring_sz = p->sq_off.array;
tools/include/io_uring/mini_liburing.h
96
sq->array = ptr + p->sq_off.array;
tools/include/uapi/linux/io_uring.h
442
__u32 array;
tools/include/uapi/linux/kvm.h
1098
__u64 array;
tools/lib/bpf/btf.c
774
const struct btf_array *array;
tools/lib/bpf/btf.c
805
array = btf_array(t);
tools/lib/bpf/btf.c
806
if (nelems && array->nelems > UINT32_MAX / nelems)
tools/lib/bpf/btf.c
808
nelems *= array->nelems;
tools/lib/bpf/btf.c
809
type_id = array->type;
tools/lib/bpf/btf_dump.c
2048
const struct btf_array *array = btf_array(t);
tools/lib/bpf/btf_dump.c
2053
for (i = 0; i < array->nelems; i++) {
tools/lib/bpf/btf_dump.c
2059
if (i == array->nelems) {
tools/lib/bpf/btf_dump.c
2067
for (i = 0; i < array->nelems; i++) {
tools/lib/bpf/btf_dump.c
2094
const struct btf_array *array = btf_array(t);
tools/lib/bpf/btf_dump.c
2101
elem_type_id = array->type;
tools/lib/bpf/btf_dump.c
2142
for (i = 0; i < array->nelems; i++, data += elem_size) {
tools/lib/bpf/btf_dump.c
2419
const struct btf_array *array = btf_array(t);
tools/lib/bpf/btf_dump.c
2424
elem_type_id = array->type;
tools/lib/bpf/btf_dump.c
2436
for (i = 0; i < array->nelems; i++) {
tools/lib/bpf/libbpf.c
10649
const struct btf_array *array;
tools/lib/bpf/libbpf.c
10685
array = btf_array(array_type);
tools/lib/bpf/libbpf.c
10686
element_sz = btf__resolve_size(btf, array->type);
tools/lib/bpf/libbpf.c
10695
new_array_id = btf__add_array(btf, array->index_type, array->type, nr_elements);
tools/lib/perf/include/perf/event.h
145
__u64 array[];
tools/lib/perf/include/perf/threadmap.h
11
LIBPERF_API struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array);
tools/lib/perf/tests/test-threadmap.c
14
static int test_threadmap_array(int nr, pid_t *array)
tools/lib/perf/tests/test-threadmap.c
19
threads = perf_thread_map__new_array(nr, array);
tools/lib/perf/tests/test-threadmap.c
26
perf_thread_map__pid(threads, i) == (array ? array[i] : -1));
tools/lib/perf/tests/test-threadmap.c
33
perf_thread_map__pid(threads, 0) == (array ? array[0] : -1));
tools/lib/perf/threadmap.c
45
struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array)
tools/lib/perf/threadmap.c
54
perf_thread_map__set_pid(threads, i, array ? array[i] : -1);
tools/net/ynl/lib/ynl-priv.h
39
#define YNL_ARRAY_SIZE(array) (sizeof(array) ? \
tools/net/ynl/lib/ynl-priv.h
40
sizeof(array) / sizeof(array[0]) : 0)
tools/perf/bench/epoll-wait.c
157
static void shuffle(void *array, size_t n, size_t size)
tools/perf/bench/epoll-wait.c
159
char *carray = array;
tools/perf/builtin-inject.c
1703
void *array;
tools/perf/builtin-inject.c
1707
array = ev;
tools/perf/builtin-inject.c
1714
array += ev->header.size;
tools/perf/builtin-inject.c
1715
ret = perf_event__synthesize_id_sample(array, evsel->core.attr.sample_type, sample);
tools/perf/builtin-trace.c
1120
#define STRARRAY(name, array) \
tools/perf/builtin-trace.c
1123
.parm = &strarray__##array, \
tools/perf/builtin-trace.c
1126
#define STRARRAY_FLAGS(name, array) \
tools/perf/builtin-trace.c
1129
.parm = &strarray__##array, \
tools/perf/tests/dwarf-unwind.c
146
struct thread *array[2] = {thread, thread};
tools/perf/tests/dwarf-unwind.c
158
_bsearch(array, &thread, 2, sizeof(struct thread **),
tools/perf/trace/beauty/beauty.h
17
#define DEFINE_STRARRAY(array, _prefix) struct strarray strarray__##array = { \
tools/perf/trace/beauty/beauty.h
18
.nr_entries = ARRAY_SIZE(array), \
tools/perf/trace/beauty/beauty.h
19
.entries = array, \
tools/perf/trace/beauty/beauty.h
23
#define DEFINE_STRARRAY_OFFSET(array, _prefix, off) struct strarray strarray__##array = { \
tools/perf/trace/beauty/beauty.h
25
.nr_entries = ARRAY_SIZE(array), \
tools/perf/trace/beauty/beauty.h
26
.entries = array, \
tools/perf/trace/beauty/beauty.h
52
#define DEFINE_STRARRAYS(array) struct strarrays strarrays__##array = { \
tools/perf/trace/beauty/beauty.h
53
.nr_entries = ARRAY_SIZE(array), \
tools/perf/trace/beauty/beauty.h
54
.entries = array, \
tools/perf/util/bpf-utils.c
104
__u64 *array = (__u64 *)info;
tools/perf/util/bpf-utils.c
107
array[offset / sizeof(__u64)] = val;
tools/perf/util/bpf-utils.c
75
__u32 *array = (__u32 *)info;
tools/perf/util/bpf-utils.c
78
return array[offset / sizeof(__u32)];
tools/perf/util/bpf-utils.c
85
__u64 *array = (__u64 *)info;
tools/perf/util/bpf-utils.c
88
return array[offset / sizeof(__u64)];
tools/perf/util/bpf-utils.c
95
__u32 *array = (__u32 *)info;
tools/perf/util/bpf-utils.c
98
array[offset / sizeof(__u32)] = val;
tools/perf/util/bpf_off_cpu.c
367
data.array[n++] = sid;
tools/perf/util/bpf_off_cpu.c
369
data.array[n++] = 0; /* will be updated */
tools/perf/util/bpf_off_cpu.c
371
data.array[n++] = 0;
tools/perf/util/bpf_off_cpu.c
373
data.array[n++] = tstamp;
tools/perf/util/bpf_off_cpu.c
375
data.array[n++] = 0;
tools/perf/util/bpf_off_cpu.c
377
data.array[n++] = 0;
tools/perf/util/bpf_off_cpu.c
387
void *raw_data = (void *)data.array + n * sizeof(u64);
tools/perf/util/bpf_off_cpu.c
39
u64 array[1024 / sizeof(u64)];
tools/perf/util/bpf_off_cpu.c
412
data.array[n++] = key.cgroup_id;
tools/perf/util/bpf_skel/off_cpu.bpf.c
219
for (int i = 0; i < MAX_STACKS && from->array[i]; ++i, ++len)
tools/perf/util/bpf_skel/off_cpu.bpf.c
220
to->array[n + 2 + i] = from->array[i];
tools/perf/util/bpf_skel/off_cpu.bpf.c
239
data->array[n++] = (u64)key->tgid << 32 | key->pid;
tools/perf/util/bpf_skel/off_cpu.bpf.c
240
data->array[n++] = delta;
tools/perf/util/bpf_skel/off_cpu.bpf.c
243
data->array[n + 1] = PERF_CONTEXT_USER;
tools/perf/util/bpf_skel/off_cpu.bpf.c
244
data->array[n + 2] = 0;
tools/perf/util/bpf_skel/off_cpu.bpf.c
248
data->array[n] = len + 1;
tools/perf/util/bpf_skel/off_cpu.bpf.c
251
data->array[n++] = key->cgroup_id;
tools/perf/util/bpf_skel/off_cpu.bpf.c
26
u64 array[MAX_STACKS];
tools/perf/util/bpf_skel/off_cpu.bpf.c
52
u64 array[MAX_OFFCPU_LEN];
tools/perf/util/data-convert-bt.c
1526
for (i = 0; i < ARRAY_SIZE(cw->data.array); i++)
tools/perf/util/data-convert-bt.c
1527
bt_ctf_field_type_put(cw->data.array[i]);
tools/perf/util/data-convert-bt.c
83
struct bt_ctf_field_type *array[6];
tools/perf/util/demangle-java.c
106
array++;
tools/perf/util/demangle-java.c
48
int array = 0;
tools/perf/util/demangle-java.c
87
while (array--)
tools/perf/util/demangle-java.c
89
array = 0;
tools/perf/util/demangle-java.c
97
while (array--)
tools/perf/util/demangle-java.c
99
array = 0;
tools/perf/util/evlist.c
707
const __u64 *array = event->sample.array;
tools/perf/util/evlist.c
715
*id = array[evlist->id_pos];
tools/perf/util/evlist.c
720
*id = array[n];
tools/perf/util/evlist.h
144
#define evlist__set_tracepoints_handlers(evlist, array) \
tools/perf/util/evlist.h
145
__evlist__set_tracepoints_handlers(evlist, array, ARRAY_SIZE(array))
tools/perf/util/evsel.c
3005
const __u64 *array = event->sample.array;
tools/perf/util/evsel.c
3009
array += ((event->header.size -
tools/perf/util/evsel.c
3013
sample->id = *array;
tools/perf/util/evsel.c
3014
array--;
tools/perf/util/evsel.c
3018
u.val64 = *array;
tools/perf/util/evsel.c
3026
array--;
tools/perf/util/evsel.c
3030
sample->stream_id = *array;
tools/perf/util/evsel.c
3031
array--;
tools/perf/util/evsel.c
3035
sample->id = *array;
tools/perf/util/evsel.c
3036
array--;
tools/perf/util/evsel.c
3040
sample->time = *array;
tools/perf/util/evsel.c
3041
array--;
tools/perf/util/evsel.c
3045
u.val64 = *array;
tools/perf/util/evsel.c
3055
array--;
tools/perf/util/evsel.c
3090
static void perf_parse_sample_weight(struct perf_sample *data, const __u64 *array, u64 type)
tools/perf/util/evsel.c
3094
weight.full = *array;
tools/perf/util/evsel.c
3177
u64 *array = data->raw_data;
tools/perf/util/evsel.c
3179
const void *endp = (void *)array + max_size;
tools/perf/util/evsel.c
3181
if (array == NULL)
tools/perf/util/evsel.c
3184
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3185
p32 = (void *)array++;
tools/perf/util/evsel.c
3189
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3190
data->period = *array++;
tools/perf/util/evsel.c
3192
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3193
data->callchain = (struct ip_callchain *)array++;
tools/perf/util/evsel.c
3194
OVERFLOW_CHECK(array, data->callchain->nr * sizeof(u64), max_size);
tools/perf/util/evsel.c
3196
array += data->callchain->nr;
tools/perf/util/evsel.c
3198
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3199
data->cgroup = *array;
tools/perf/util/evsel.c
3209
const __u64 *array;
tools/perf/util/evsel.c
3249
array = event->sample.array;
tools/perf/util/evsel.c
3255
data->id = *array;
tools/perf/util/evsel.c
3256
array++;
tools/perf/util/evsel.c
3260
data->ip = *array;
tools/perf/util/evsel.c
3261
array++;
tools/perf/util/evsel.c
3265
u.val64 = *array;
tools/perf/util/evsel.c
3275
array++;
tools/perf/util/evsel.c
3279
data->time = *array;
tools/perf/util/evsel.c
3280
array++;
tools/perf/util/evsel.c
3284
data->addr = *array;
tools/perf/util/evsel.c
3285
array++;
tools/perf/util/evsel.c
3289
data->id = *array;
tools/perf/util/evsel.c
3290
array++;
tools/perf/util/evsel.c
3294
data->stream_id = *array;
tools/perf/util/evsel.c
3295
array++;
tools/perf/util/evsel.c
3300
u.val64 = *array;
tools/perf/util/evsel.c
3308
array++;
tools/perf/util/evsel.c
3312
data->period = *array;
tools/perf/util/evsel.c
3313
array++;
tools/perf/util/evsel.c
3319
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3321
data->read.group.nr = *array;
tools/perf/util/evsel.c
3323
data->read.one.value = *array;
tools/perf/util/evsel.c
3325
array++;
tools/perf/util/evsel.c
3328
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3329
data->read.time_enabled = *array;
tools/perf/util/evsel.c
3330
array++;
tools/perf/util/evsel.c
3334
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3335
data->read.time_running = *array;
tools/perf/util/evsel.c
3336
array++;
tools/perf/util/evsel.c
3348
OVERFLOW_CHECK(array, sz, max_size);
tools/perf/util/evsel.c
3350
(struct sample_read_value *)array;
tools/perf/util/evsel.c
3351
array = (void *)array + sz;
tools/perf/util/evsel.c
3353
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3354
data->read.one.id = *array;
tools/perf/util/evsel.c
3355
array++;
tools/perf/util/evsel.c
3358
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3359
data->read.one.lost = *array;
tools/perf/util/evsel.c
3360
array++;
tools/perf/util/evsel.c
3369
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3370
data->callchain = (struct ip_callchain *)array++;
tools/perf/util/evsel.c
3386
OVERFLOW_CHECK(array, sz, max_size);
tools/perf/util/evsel.c
3387
array = (void *)array + sz;
tools/perf/util/evsel.c
3391
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3392
u.val64 = *array;
tools/perf/util/evsel.c
3412
mem_bswap_64((void *) array, data->raw_size);
tools/perf/util/evsel.c
3414
array = (void *)array + sizeof(u32);
tools/perf/util/evsel.c
3416
OVERFLOW_CHECK(array, data->raw_size, max_size);
tools/perf/util/evsel.c
3417
data->raw_data = (void *)array;
tools/perf/util/evsel.c
3418
array = (void *)array + data->raw_size;
tools/perf/util/evsel.c
3427
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3428
data->branch_stack = (struct branch_stack *)array++;
tools/perf/util/evsel.c
3461
OVERFLOW_CHECK(array, sz, max_size);
tools/perf/util/evsel.c
3462
array = (void *)array + sz;
tools/perf/util/evsel.c
3465
data->branch_stack_cntr = (u64 *)array;
tools/perf/util/evsel.c
3468
OVERFLOW_CHECK(array, sz, max_size);
tools/perf/util/evsel.c
3469
array = (void *)array + sz;
tools/perf/util/evsel.c
3476
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3477
regs->abi = *array;
tools/perf/util/evsel.c
3478
array++;
tools/perf/util/evsel.c
3484
OVERFLOW_CHECK(array, sz, max_size);
tools/perf/util/evsel.c
3486
regs->regs = (u64 *)array;
tools/perf/util/evsel.c
3487
array = (void *)array + sz;
tools/perf/util/evsel.c
3492
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3493
sz = *array++;
tools/perf/util/evsel.c
3495
data->user_stack.offset = ((char *)(array - 1)
tools/perf/util/evsel.c
3501
OVERFLOW_CHECK(array, sz, max_size);
tools/perf/util/evsel.c
3502
data->user_stack.data = (char *)array;
tools/perf/util/evsel.c
3503
array = (void *)array + sz;
tools/perf/util/evsel.c
3504
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3505
data->user_stack.size = *array++;
tools/perf/util/evsel.c
3513
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3514
perf_parse_sample_weight(data, array, type);
tools/perf/util/evsel.c
3515
array++;
tools/perf/util/evsel.c
3519
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3520
data->data_src = *array;
tools/perf/util/evsel.c
3521
array++;
tools/perf/util/evsel.c
3525
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3526
data->transaction = *array;
tools/perf/util/evsel.c
3527
array++;
tools/perf/util/evsel.c
3533
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3534
regs->abi = *array;
tools/perf/util/evsel.c
3535
array++;
tools/perf/util/evsel.c
3541
OVERFLOW_CHECK(array, sz, max_size);
tools/perf/util/evsel.c
3543
regs->regs = (u64 *)array;
tools/perf/util/evsel.c
3544
array = (void *)array + sz;
tools/perf/util/evsel.c
3550
data->phys_addr = *array;
tools/perf/util/evsel.c
3551
array++;
tools/perf/util/evsel.c
3556
data->cgroup = *array;
tools/perf/util/evsel.c
3557
array++;
tools/perf/util/evsel.c
3562
data->data_page_size = *array;
tools/perf/util/evsel.c
3563
array++;
tools/perf/util/evsel.c
3568
data->code_page_size = *array;
tools/perf/util/evsel.c
3569
array++;
tools/perf/util/evsel.c
3573
OVERFLOW_CHECK_u64(array);
tools/perf/util/evsel.c
3574
sz = *array++;
tools/perf/util/evsel.c
3576
OVERFLOW_CHECK(array, sz, max_size);
tools/perf/util/evsel.c
3579
mem_bswap_64((char *)array, sz);
tools/perf/util/evsel.c
3581
data->aux_sample.data = (char *)array;
tools/perf/util/evsel.c
3582
array = (void *)array + sz;
tools/perf/util/evsel.c
3595
const __u64 *array;
tools/perf/util/evsel.c
3614
array = event->sample.array;
tools/perf/util/evsel.c
3620
array++;
tools/perf/util/evsel.c
3623
array++;
tools/perf/util/evsel.c
3626
array++;
tools/perf/util/evsel.c
3629
*timestamp = *array;
tools/perf/util/session.h
189
#define perf_session__set_tracepoints_handlers(session, array) \
tools/perf/util/session.h
190
__evlist__set_tracepoints_handlers(session->evlist, array, ARRAY_SIZE(array))
tools/perf/util/synthetic-events.c
1582
__u64 *array, u64 type __maybe_unused)
tools/perf/util/synthetic-events.c
1584
*array = data->weight;
tools/perf/util/synthetic-events.c
1587
*array &= 0xffffffff;
tools/perf/util/synthetic-events.c
1588
*array |= ((u64)data->ins_lat << 32);
tools/perf/util/synthetic-events.c
1589
*array |= ((u64)data->weight3 << 48);
tools/perf/util/synthetic-events.c
1593
static __u64 *copy_read_group_values(__u64 *array, __u64 read_format,
tools/perf/util/synthetic-events.c
1601
memcpy(array, v, sz);
tools/perf/util/synthetic-events.c
1602
array = (void *)array + sz;
tools/perf/util/synthetic-events.c
1604
return array;
tools/perf/util/synthetic-events.c
1610
__u64 *array;
tools/perf/util/synthetic-events.c
1618
array = event->sample.array;
tools/perf/util/synthetic-events.c
1621
*array = sample->id;
tools/perf/util/synthetic-events.c
1622
array++;
tools/perf/util/synthetic-events.c
1626
*array = sample->ip;
tools/perf/util/synthetic-events.c
1627
array++;
tools/perf/util/synthetic-events.c
1633
*array = u.val64;
tools/perf/util/synthetic-events.c
1634
array++;
tools/perf/util/synthetic-events.c
1638
*array = sample->time;
tools/perf/util/synthetic-events.c
1639
array++;
tools/perf/util/synthetic-events.c
1643
*array = sample->addr;
tools/perf/util/synthetic-events.c
1644
array++;
tools/perf/util/synthetic-events.c
1648
*array = sample->id;
tools/perf/util/synthetic-events.c
1649
array++;
tools/perf/util/synthetic-events.c
1653
*array = sample->stream_id;
tools/perf/util/synthetic-events.c
1654
array++;
tools/perf/util/synthetic-events.c
1660
*array = u.val64;
tools/perf/util/synthetic-events.c
1661
array++;
tools/perf/util/synthetic-events.c
1665
*array = sample->period;
tools/perf/util/synthetic-events.c
1666
array++;
tools/perf/util/synthetic-events.c
1671
*array = sample->read.group.nr;
tools/perf/util/synthetic-events.c
1673
*array = sample->read.one.value;
tools/perf/util/synthetic-events.c
1674
array++;
tools/perf/util/synthetic-events.c
1677
*array = sample->read.time_enabled;
tools/perf/util/synthetic-events.c
1678
array++;
tools/perf/util/synthetic-events.c
1682
*array = sample->read.time_running;
tools/perf/util/synthetic-events.c
1683
array++;
tools/perf/util/synthetic-events.c
1688
array = copy_read_group_values(array, read_format,
tools/perf/util/synthetic-events.c
1691
*array = sample->read.one.id;
tools/perf/util/synthetic-events.c
1692
array++;
tools/perf/util/synthetic-events.c
1695
*array = sample->read.one.lost;
tools/perf/util/synthetic-events.c
1696
array++;
tools/perf/util/synthetic-events.c
1703
memcpy(array, sample->callchain, sz);
tools/perf/util/synthetic-events.c
1704
array = (void *)array + sz;
tools/perf/util/synthetic-events.c
1708
u32 *array32 = (void *)array;
tools/perf/util/synthetic-events.c
1714
array = (void *)(array32 + (sample->raw_size / sizeof(u32)));
tools/perf/util/synthetic-events.c
1717
BUG_ON(((long)array) % sizeof(u64));
tools/perf/util/synthetic-events.c
1724
memcpy(array, sample->branch_stack, sz);
tools/perf/util/synthetic-events.c
1725
array = (void *)array + sz;
tools/perf/util/synthetic-events.c
1730
*array++ = sample->user_regs->abi;
tools/perf/util/synthetic-events.c
1732
memcpy(array, sample->user_regs->regs, sz);
tools/perf/util/synthetic-events.c
1733
array = (void *)array + sz;
tools/perf/util/synthetic-events.c
1735
*array++ = 0;
tools/perf/util/synthetic-events.c
1741
*array++ = sz;
tools/perf/util/synthetic-events.c
1743
memcpy(array, sample->user_stack.data, sz);
tools/perf/util/synthetic-events.c
1744
array = (void *)array + sz;
tools/perf/util/synthetic-events.c
1745
*array++ = sz;
tools/perf/util/synthetic-events.c
1750
perf_synthesize_sample_weight(sample, array, type);
tools/perf/util/synthetic-events.c
1751
array++;
tools/perf/util/synthetic-events.c
1755
*array = sample->data_src;
tools/perf/util/synthetic-events.c
1756
array++;
tools/perf/util/synthetic-events.c
1760
*array = sample->transaction;
tools/perf/util/synthetic-events.c
1761
array++;
tools/perf/util/synthetic-events.c
1766
*array++ = sample->intr_regs->abi;
tools/perf/util/synthetic-events.c
1768
memcpy(array, sample->intr_regs->regs, sz);
tools/perf/util/synthetic-events.c
1769
array = (void *)array + sz;
tools/perf/util/synthetic-events.c
1771
*array++ = 0;
tools/perf/util/synthetic-events.c
1776
*array = sample->phys_addr;
tools/perf/util/synthetic-events.c
1777
array++;
tools/perf/util/synthetic-events.c
1781
*array = sample->cgroup;
tools/perf/util/synthetic-events.c
1782
array++;
tools/perf/util/synthetic-events.c
1786
*array = sample->data_page_size;
tools/perf/util/synthetic-events.c
1787
array++;
tools/perf/util/synthetic-events.c
1791
*array = sample->code_page_size;
tools/perf/util/synthetic-events.c
1792
array++;
tools/perf/util/synthetic-events.c
1797
*array++ = sz;
tools/perf/util/synthetic-events.c
1798
memcpy(array, sample->aux_sample.data, sz);
tools/perf/util/synthetic-events.c
1799
array = (void *)array + sz;
tools/perf/util/synthetic-events.c
1805
int perf_event__synthesize_id_sample(__u64 *array, u64 type, const struct perf_sample *sample)
tools/perf/util/synthetic-events.c
1807
__u64 *start = array;
tools/perf/util/synthetic-events.c
1818
*array = u.val64;
tools/perf/util/synthetic-events.c
1819
array++;
tools/perf/util/synthetic-events.c
1823
*array = sample->time;
tools/perf/util/synthetic-events.c
1824
array++;
tools/perf/util/synthetic-events.c
1828
*array = sample->id;
tools/perf/util/synthetic-events.c
1829
array++;
tools/perf/util/synthetic-events.c
1833
*array = sample->stream_id;
tools/perf/util/synthetic-events.c
1834
array++;
tools/perf/util/synthetic-events.c
1840
*array = u.val64;
tools/perf/util/synthetic-events.c
1841
array++;
tools/perf/util/synthetic-events.c
1845
*array = sample->id;
tools/perf/util/synthetic-events.c
1846
array++;
tools/perf/util/synthetic-events.c
1849
return (void *)array - (void *)start;
tools/perf/util/synthetic-events.c
2279
void *array = &ev;
tools/perf/util/synthetic-events.c
2282
array += ev.header.size;
tools/perf/util/synthetic-events.c
2283
ret = perf_event__synthesize_id_sample(array, evsel->core.attr.sample_type, sample);
tools/perf/util/synthetic-events.c
2312
void *array;
tools/perf/util/synthetic-events.c
2340
array = &ev;
tools/perf/util/synthetic-events.c
2341
array += ev.header.size;
tools/perf/util/synthetic-events.c
2342
ret = perf_event__synthesize_id_sample(array, evsel->core.attr.sample_type, sample);
tools/perf/util/synthetic-events.h
78
int perf_event__synthesize_id_sample(__u64 *array, u64 type, const struct perf_sample *sample);
tools/testing/cxl/test/cxl.c
1005
array = cxl_root_port;
tools/testing/cxl/test/cxl.c
1008
array = cxl_root_single;
tools/testing/cxl/test/cxl.c
1019
array = cxl_switch_dport;
tools/testing/cxl/test/cxl.c
1022
array = cxl_swd_single;
tools/testing/cxl/test/cxl.c
1034
*port_array = array;
tools/testing/cxl/test/cxl.c
1043
struct platform_device **array;
tools/testing/cxl/test/cxl.c
1046
rc = get_port_array(port, &array, &array_size);
tools/testing/cxl/test/cxl.c
1051
struct platform_device *pdev = array[i];
tools/testing/cxl/test/cxl.c
999
struct platform_device **array;
tools/testing/radix-tree/iteration_check.c
102
XA_STATE(xas, &array, 0);
tools/testing/radix-tree/iteration_check.c
143
item = xa_erase(&array, pgoff);
tools/testing/radix-tree/iteration_check.c
158
tag_tagged_items(&array, 0, MAX_IDX, 10, TAG, NEW_TAG);
tools/testing/radix-tree/iteration_check.c
17
static DEFINE_XARRAY(array);
tools/testing/radix-tree/iteration_check.c
209
item_kill_tree(&array);
tools/testing/radix-tree/iteration_check.c
54
my_item_insert(&array, pgoff);
tools/testing/radix-tree/iteration_check.c
69
XA_STATE(xas, &array, 0);
tools/testing/radix-tree/iteration_check_2.c
57
DEFINE_XARRAY(array);
tools/testing/radix-tree/iteration_check_2.c
64
xa_store(&array, 100, xa_mk_value(100), GFP_KERNEL);
tools/testing/radix-tree/iteration_check_2.c
65
xa_set_mark(&array, 100, XA_MARK_0);
tools/testing/radix-tree/iteration_check_2.c
67
if (pthread_create(&threads[0], NULL, iterator, &array)) {
tools/testing/radix-tree/iteration_check_2.c
71
if (pthread_create(&threads[1], NULL, throbber, &array)) {
tools/testing/radix-tree/iteration_check_2.c
86
xa_destroy(&array);
tools/testing/radix-tree/multiorder.c
274
static DEFINE_XARRAY(array);
tools/testing/radix-tree/multiorder.c
278
multiorder_iteration(&array);
tools/testing/radix-tree/multiorder.c
279
multiorder_tagged_iteration(&array);
tools/testing/radix-tree/multiorder.c
280
multiorder_iteration_race(&array);
tools/testing/radix-tree/multiorder.c
281
load_race(&array);
tools/testing/scatterlist/main.c
18
static void set_pages(struct page **pages, const unsigned *array, unsigned num)
tools/testing/scatterlist/main.c
25
((1 + array[i]) * PAGE_SIZE);
tools/testing/selftests/alsa/alsa-local.h
25
const char **array, int array_size, const char *def);
tools/testing/selftests/alsa/conf.c
456
const char **array, int array_size, const char *def)
tools/testing/selftests/alsa/conf.c
469
array[index] = def;
tools/testing/selftests/alsa/conf.c
472
array[index] = conf_get_string(cfg, buf, NULL, def);
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
35
skel->bss->array[0] = 1;
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
50
array_len = (desired_sz - sizeof(skel->bss->sum)) / sizeof(skel->bss->array[0]);
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
64
skel->bss->array[i] = 1;
tools/testing/selftests/bpf/prog_tests/map_btf.c
33
new_fd = dup(bpf_map__fd(skel->maps.array));
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
103
bool array = strstr(map_paths[i], "array") != NULL;
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
125
if (!array)
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
247
map_fds[0] = bpf_map__fd(skel->maps.array);
tools/testing/selftests/bpf/prog_tests/usdt.c
59
static volatile short array[] = {-1, -2, -3, -4};
tools/testing/selftests/bpf/prog_tests/usdt.c
96
: "d"(array), "a"(0)
tools/testing/selftests/bpf/prog_tests/wq.c
66
err = bpf_map__reuse_fd(skel->maps.array, map_fd);
tools/testing/selftests/bpf/progs/lsm.c
126
value = bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/bpf/progs/lsm.c
19
} array SEC(".maps");
tools/testing/selftests/bpf/progs/map_ptr_kern.c
149
struct bpf_array *array = (struct bpf_array *)&m_array;
tools/testing/selftests/bpf/progs/map_ptr_kern.c
153
VERIFY(check_default(&array->map, map));
tools/testing/selftests/bpf/progs/map_ptr_kern.c
155
VERIFY(array->elem_size == 8);
tools/testing/selftests/bpf/progs/map_ptr_kern.c
157
for (i = 0; i < array->map.max_entries && i < LOOP_BOUND; ++i) {
tools/testing/selftests/bpf/progs/map_ptr_kern.c
159
__u32 *val = bpf_map_lookup_elem(array, &key);
tools/testing/selftests/bpf/progs/normal_map_btf.c
25
} array SEC(".maps");
tools/testing/selftests/bpf/progs/normal_map_btf.c
42
value = bpf_map_lookup_elem(&array, &zero);
tools/testing/selftests/bpf/progs/percpu_alloc_array.c
116
e = bpf_map_lookup_elem(&array, &index);
tools/testing/selftests/bpf/progs/percpu_alloc_array.c
140
e = bpf_map_lookup_elem(&array, &index);
tools/testing/selftests/bpf/progs/percpu_alloc_array.c
17
} array SEC(".maps");
tools/testing/selftests/bpf/progs/percpu_alloc_array.c
32
e = bpf_map_lookup_elem(&array, &index);
tools/testing/selftests/bpf/progs/percpu_alloc_array.c
56
e = bpf_map_lookup_elem(&array, &index);
tools/testing/selftests/bpf/progs/percpu_alloc_array.c
88
e = bpf_map_lookup_elem(&array, &index);
tools/testing/selftests/bpf/progs/percpu_alloc_fail.c
34
} array SEC(".maps");
tools/testing/selftests/bpf/progs/percpu_alloc_fail.c
46
e = bpf_map_lookup_elem(&array, &index);
tools/testing/selftests/bpf/progs/percpu_alloc_fail.c
71
e = bpf_map_lookup_elem(&array, &index);
tools/testing/selftests/bpf/progs/percpu_alloc_fail.c
95
e = bpf_map_lookup_elem(&array, &index);
tools/testing/selftests/bpf/progs/preempted_bpf_ma_op.c
23
} array SEC(".maps");
tools/testing/selftests/bpf/progs/preempted_bpf_ma_op.c
34
value = bpf_map_lookup_elem(&array, from);
tools/testing/selftests/bpf/progs/preempted_bpf_ma_op.c
51
value = bpf_map_lookup_elem(&array, from);
tools/testing/selftests/bpf/progs/profiler.inc.h
172
for (int i = 0; i < ARRAY_SIZE(arr_struct->array); i++)
tools/testing/selftests/bpf/progs/profiler.inc.h
173
if (arr_struct->array[i].meta.pid == spid)
tools/testing/selftests/bpf/progs/profiler.inc.h
392
bpf_probe_read_kernel(&arr_struct->array[0],
tools/testing/selftests/bpf/progs/profiler.inc.h
393
sizeof(arr_struct->array[0]), kill_data);
tools/testing/selftests/bpf/progs/profiler.inc.h
405
for (int i = 0; i < ARRAY_SIZE(arr_struct->array); i++)
tools/testing/selftests/bpf/progs/profiler.inc.h
406
if (arr_struct->array[i].meta.pid == 0) {
tools/testing/selftests/bpf/progs/profiler.inc.h
407
bpf_probe_read_kernel(&arr_struct->array[i],
tools/testing/selftests/bpf/progs/profiler.inc.h
408
sizeof(arr_struct->array[i]),
tools/testing/selftests/bpf/progs/profiler.inc.h
418
struct var_kill_data_t* kill_data = &arr_struct->array[index];
tools/testing/selftests/bpf/progs/profiler.inc.h
426
bpf_probe_read_kernel(&arr_struct->array[index],
tools/testing/selftests/bpf/progs/profiler.inc.h
427
sizeof(arr_struct->array[index]),
tools/testing/selftests/bpf/progs/profiler.inc.h
434
bpf_probe_read_kernel(&arr_struct->array[index],
tools/testing/selftests/bpf/progs/profiler.inc.h
435
sizeof(arr_struct->array[index]),
tools/testing/selftests/bpf/progs/profiler.inc.h
44
struct var_kill_data_t array[KILL_DATA_ARRAY_SIZE];
tools/testing/selftests/bpf/progs/profiler.inc.h
632
for (int i = 0; i < ARRAY_SIZE(arr_struct->array); i++) {
tools/testing/selftests/bpf/progs/profiler.inc.h
633
struct var_kill_data_t* past_kill_data = &arr_struct->array[i];
tools/testing/selftests/bpf/progs/stream.c
232
arr_timer = bpf_map_lookup_elem(&array, &(int){0});
tools/testing/selftests/bpf/progs/stream.c
235
bpf_timer_init(arr_timer, &array, 1);
tools/testing/selftests/bpf/progs/stream.c
36
} array SEC(".maps");
tools/testing/selftests/bpf/progs/test_global_func16.c
19
int array[10];
tools/testing/selftests/bpf/progs/test_global_func16.c
21
const int rv = foo(&array);
tools/testing/selftests/bpf/progs/test_global_func9.c
122
int array[10] = {0};
tools/testing/selftests/bpf/progs/test_global_func9.c
124
result |= quux(&array);
tools/testing/selftests/bpf/progs/test_global_map_resize.c
17
int array[1];
tools/testing/selftests/bpf/progs/test_global_map_resize.c
55
sum += array[i];
tools/testing/selftests/bpf/progs/test_subprogs.c
12
} array SEC(".maps");
tools/testing/selftests/bpf/progs/test_subprogs.c
18
bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/bpf/progs/test_subprogs.c
38
bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/bpf/progs/test_unpriv_bpf_disabled.c
20
} array SEC(".maps");
tools/testing/selftests/bpf/progs/timer.c
150
arr_timer = bpf_map_lookup_elem(&array, &array_key);
tools/testing/selftests/bpf/progs/timer.c
153
bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer.c
168
arr_timer = bpf_map_lookup_elem(&array, &array_key);
tools/testing/selftests/bpf/progs/timer.c
171
bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer.c
187
arr_timer = bpf_map_lookup_elem(&array, &array_key);
tools/testing/selftests/bpf/progs/timer.c
190
bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer.c
215
arr_timer = bpf_map_lookup_elem(&array, &array_key);
tools/testing/selftests/bpf/progs/timer.c
45
} array SEC(".maps");
tools/testing/selftests/bpf/progs/timer_interrupt.c
24
} array SEC(".maps");
tools/testing/selftests/bpf/progs/timer_interrupt.c
39
timer = bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/bpf/progs/timer_interrupt.c
44
bpf_timer_init(timer, &array, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/verifier_private_stack.c
23
} array SEC(".maps");
tools/testing/selftests/bpf/progs/verifier_private_stack.c
313
arr_timer = bpf_map_lookup_elem(&array, &array_key);
tools/testing/selftests/bpf/progs/verifier_private_stack.c
317
bpf_timer_init(arr_timer, &array, 1);
tools/testing/selftests/bpf/progs/verifier_private_stack.c
336
arr_timer = bpf_map_lookup_elem(&array, &array_key);
tools/testing/selftests/bpf/progs/verifier_private_stack.c
340
bpf_timer_init(arr_timer, &array, 1);
tools/testing/selftests/bpf/progs/wq.c
148
return test_elem_callback(&array, &key, wq_cb_sleepable);
tools/testing/selftests/bpf/progs/wq.c
158
return test_elem_callback(&array, &key, wq_cb_sleepable);
tools/testing/selftests/bpf/progs/wq.c
198
val = bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/bpf/progs/wq.c
203
if (bpf_wq_init(wq, &array, 0) != 0)
tools/testing/selftests/bpf/progs/wq.c
44
} array SEC(".maps");
tools/testing/selftests/bpf/progs/wq_failures.c
107
wq = bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/bpf/progs/wq_failures.c
111
if (bpf_wq_init(wq, &array, 0))
tools/testing/selftests/bpf/progs/wq_failures.c
133
wq = bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/bpf/progs/wq_failures.c
137
if (bpf_wq_init(wq, &array, 0))
tools/testing/selftests/bpf/progs/wq_failures.c
158
val = bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/bpf/progs/wq_failures.c
164
if (bpf_wq_init(wq, &array, 0) != 0)
tools/testing/selftests/bpf/progs/wq_failures.c
21
} array SEC(".maps");
tools/testing/selftests/bpf/progs/wq_failures.c
58
val = bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/bpf/progs/wq_failures.c
83
val = bpf_map_lookup_elem(&array, &key);
tools/testing/selftests/iommu/iommufd.c
2663
static void shuffle_array(unsigned long *array, size_t nelms)
tools/testing/selftests/iommu/iommufd.c
2669
unsigned long tmp = array[i];
tools/testing/selftests/iommu/iommufd.c
2672
array[i] = array[other];
tools/testing/selftests/iommu/iommufd.c
2673
array[other] = tmp;
tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c
230
typedef void (*testfunc_t)(u8 (*array)[]);
tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c
284
u8 *array = malloc(testlist[idx].array_size);
tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c
286
testlist[idx].test((u8 (*)[testlist[idx].array_size])array);
tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c
289
array, testlist[idx].array_size), 0);
tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c
292
free(array);
tools/testing/selftests/memfd/memfd_test.c
48
unsigned short int *array;
tools/testing/selftests/net/bench/page_pool/bench_page_pool_simple.c
110
struct page **array;
tools/testing/selftests/net/bench/page_pool/bench_page_pool_simple.c
113
array = kcalloc(elems, sizeof(struct page *), gfp_mask);
tools/testing/selftests/net/bench/page_pool/bench_page_pool_simple.c
116
array[i] = page_pool_alloc_pages(pp, gfp_mask);
tools/testing/selftests/net/bench/page_pool/bench_page_pool_simple.c
118
page_pool_put_page(pp, array[i], -1, false);
tools/testing/selftests/net/bench/page_pool/bench_page_pool_simple.c
120
kfree(array);
tools/testing/selftests/net/bind_bhash.c
75
int *array = (int *)arg;
tools/testing/selftests/net/bind_bhash.c
83
array[i] = sock_fd;
tools/testing/selftests/net/sample_map_ret0.bpf.c
17
} array SEC(".maps");
tools/testing/selftests/net/sample_map_ret0.bpf.c
29
value = bpf_map_lookup_elem(&array, &key64);
tools/testing/selftests/net/so_txtime.c
391
static int parse_io(const char *optarg, struct timed_send *array)
tools/testing/selftests/net/so_txtime.c
407
array->delay_us = strtol(tok, NULL, 0) * 1000;
tools/testing/selftests/net/so_txtime.c
408
array++;
tools/testing/selftests/net/so_txtime.c
410
array->data = tok[0];
tools/testing/selftests/rseq/param_test.c
1025
destptr = (char *)&buffer->c[cpu].array[offset];
tools/testing/selftests/rseq/param_test.c
1066
srcptr = (char *)&buffer->c[cpu].array[offset - 1];
tools/testing/selftests/rseq/param_test.c
1098
memcpy(item, &buffer->c[cpu].array[offset - 1], sizeof(*item));
tools/testing/selftests/rseq/param_test.c
1153
buffer.c[i].array =
tools/testing/selftests/rseq/param_test.c
1154
malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE *
tools/testing/selftests/rseq/param_test.c
1156
assert(buffer.c[i].array);
tools/testing/selftests/rseq/param_test.c
1168
buffer.c[i].array[j - 1].data1 = j;
tools/testing/selftests/rseq/param_test.c
1169
buffer.c[i].array[j - 1].data2 = j + 1;
tools/testing/selftests/rseq/param_test.c
1204
free(buffer.c[i].array);
tools/testing/selftests/rseq/param_test.c
414
struct percpu_buffer_node **array;
tools/testing/selftests/rseq/param_test.c
431
struct percpu_memcpy_buffer_node *array;
tools/testing/selftests/rseq/param_test.c
824
targetptr_spec = (intptr_t *)&buffer->c[cpu].array[offset];
tools/testing/selftests/rseq/param_test.c
859
head = RSEQ_READ_ONCE(buffer->c[cpu].array[offset - 1]);
tools/testing/selftests/rseq/param_test.c
864
(intptr_t *)&buffer->c[cpu].array[offset - 1],
tools/testing/selftests/rseq/param_test.c
888
head = buffer->c[cpu].array[offset - 1];
tools/testing/selftests/rseq/param_test.c
942
buffer.c[i].array =
tools/testing/selftests/rseq/param_test.c
943
malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE *
tools/testing/selftests/rseq/param_test.c
945
assert(buffer.c[i].array);
tools/testing/selftests/rseq/param_test.c
962
buffer.c[i].array[j - 1] = node;
tools/testing/selftests/rseq/param_test.c
996
free(buffer.c[i].array);
tools/testing/selftests/x86/lam.c
103
unsigned int *array;
tools/testing/selftests/x86/lam.c
489
sring->ring_sz = p.sq_off.array + p.sq_entries * sizeof(unsigned int);
tools/testing/selftests/x86/lam.c
526
sring->array = sq_ptr + p.sq_off.array;
tools/testing/selftests/x86/lam.c
649
sring->array[index] = index;
tools/virtio/ringtest/ptr_ring.c
115
static struct ptr_ring array ____cacheline_aligned_in_smp;
tools/virtio/ringtest/ptr_ring.c
120
int ret = ptr_ring_init(&array, ring_size, 0);
tools/virtio/ringtest/ptr_ring.c
124
array.batch = param;
tools/virtio/ringtest/ptr_ring.c
132
ret = __ptr_ring_produce(&array, buf);
tools/virtio/ringtest/ptr_ring.c
151
if (tailcnt == headcnt || __ptr_ring_full(&array))
tools/virtio/ringtest/ptr_ring.c
163
return (tailcnt == headcnt || __ptr_ring_full(&array));
tools/virtio/ringtest/ptr_ring.c
194
return __ptr_ring_empty(&array);
tools/virtio/ringtest/ptr_ring.c
201
ptr = __ptr_ring_consume(&array);