Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 3063) sorted by relevance

12345678910>>...123

/linux/drivers/misc/vmw_vmci/
A Dvmci_handle_array.c29 if (!array) in vmci_handle_arr_create()
36 return array; in vmci_handle_arr_create()
41 kfree(array); in vmci_handle_arr_destroy()
49 if (unlikely(array->size >= array->capacity)) { in vmci_handle_arr_append_entry()
57 if (array->size >= array->max_capacity) in vmci_handle_arr_append_entry()
68 array->entries[array->size] = handle; in vmci_handle_arr_append_entry()
69 array->size++; in vmci_handle_arr_append_entry()
87 array->entries[i] = array->entries[array->size]; in vmci_handle_arr_remove_entry()
88 array->entries[array->size] = VMCI_INVALID_HANDLE; in vmci_handle_arr_remove_entry()
105 handle = array->entries[array->size]; in vmci_handle_arr_remove_tail()
[all …]
A Dvmci_handle_array.h33 void vmci_handle_arr_destroy(struct vmci_handle_arr *array);
36 struct vmci_handle vmci_handle_arr_remove_entry(struct vmci_handle_arr *array,
39 struct vmci_handle vmci_handle_arr_remove_tail(struct vmci_handle_arr *array);
41 vmci_handle_arr_get_entry(const struct vmci_handle_arr *array, u32 index);
42 bool vmci_handle_arr_has_entry(const struct vmci_handle_arr *array,
44 struct vmci_handle *vmci_handle_arr_get_handles(struct vmci_handle_arr *array);
47 const struct vmci_handle_arr *array) in vmci_handle_arr_get_size() argument
49 return array->size; in vmci_handle_arr_get_size()
/linux/drivers/dma-buf/
A Ddma-fence-array.c47 struct dma_fence_array *array = container_of(wrk, typeof(*array), work); in irq_dma_fence_array_work() local
52 dma_fence_put(&array->base); in irq_dma_fence_array_work()
60 struct dma_fence_array *array = array_cb->array; in dma_fence_array_cb_func() local
67 dma_fence_put(&array->base); in dma_fence_array_cb_func()
77 cb[i].array = array; in dma_fence_array_enable_signaling()
86 dma_fence_get(&array->base); in dma_fence_array_enable_signaling()
118 kfree(array->fences); in dma_fence_array_release()
161 if (!array) in dma_fence_array_create()
165 dma_fence_init(&array->base, &dma_fence_array_ops, &array->lock, in dma_fence_array_create()
171 array->fences = fences; in dma_fence_array_create()
[all …]
/linux/sound/hda/
A Darray.c21 if (snd_BUG_ON(!array->elem_size)) in snd_array_new()
23 if (array->used >= array->alloced) { in snd_array_new()
24 int num = array->alloced + array->alloc_align; in snd_array_new()
25 int oldsize = array->alloced * array->elem_size; in snd_array_new()
34 array->list = nlist; in snd_array_new()
35 array->alloced = num; in snd_array_new()
37 return snd_array_elem(array, array->used++); in snd_array_new()
47 kfree(array->list); in snd_array_free()
48 array->used = 0; in snd_array_free()
49 array->alloced = 0; in snd_array_free()
[all …]
/linux/kernel/bpf/
A Darraymap.c37 ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8, in bpf_array_alloc_percpu()
141 if (!array) in array_map_alloc()
167 return array->value + array->elem_size * (index & array->index_mask); in array_map_lookup_elem()
242 return this_cpu_ptr(array->pptrs[index & array->index_mask]); in percpu_array_map_lookup_elem()
262 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_copy()
325 array->elem_size * (index & array->index_mask); in array_map_update_elem()
364 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_update()
443 pptr = array->pptrs[index & array->index_mask]; in percpu_array_map_seq_show_elem()
534 return array->value + array->elem_size * index; in bpf_array_map_seq_start()
553 return array->value + array->elem_size * index; in bpf_array_map_seq_next()
[all …]
A Dreuseport_array.c60 return rcu_dereference(array->ptrs[index]); in reuseport_array_lookup_elem()
74 if (!rcu_access_pointer(array->ptrs[index])) in reuseport_array_delete_elem()
129 sk = rcu_dereference(array->ptrs[i]); in reuseport_array_free()
139 RCU_INIT_POINTER(array->ptrs[i], NULL); in reuseport_array_free()
148 bpf_map_area_free(array); in reuseport_array_free()
154 struct reuseport_array *array; in reuseport_array_alloc() local
160 array_size = sizeof(*array); in reuseport_array_alloc()
165 if (!array) in reuseport_array_alloc()
171 return &array->map; in reuseport_array_alloc()
332 if (index >= array->map.max_entries) { in reuseport_array_get_next_key()
[all …]
/linux/drivers/staging/r8188eu/hal/
A DHalHWImg8188E_BB.c10 v1 = array[i]; \
11 v2 = array[i + 1]; \
196 u32 v1 = array[i]; in ODM_ReadAndConfig_AGC_TAB_1T_8188E()
197 u32 v2 = array[i + 1]; in ODM_ReadAndConfig_AGC_TAB_1T_8188E()
471 u32 v1 = array[i]; in ODM_ReadAndConfig_PHY_REG_1T_8188E()
662 u32 v1 = array[i]; in ODM_ReadAndConfig_PHY_REG_PG_8188E()
674 v1 = array[i]; in ODM_ReadAndConfig_PHY_REG_PG_8188E()
675 v2 = array[i + 1]; in ODM_ReadAndConfig_PHY_REG_PG_8188E()
676 v3 = array[i + 2]; in ODM_ReadAndConfig_PHY_REG_PG_8188E()
679 v1 = array[i]; in ODM_ReadAndConfig_PHY_REG_PG_8188E()
[all …]
/linux/drivers/infiniband/hw/mthca/
A Dmthca_allocator.c122 if (array->page_list[p].page) in mthca_array_get()
133 if (!array->page_list[p].page) in mthca_array_set()
136 if (!array->page_list[p].page) in mthca_array_set()
140 ++array->page_list[p].used; in mthca_array_set()
151 array->page_list[p].page = NULL; in mthca_array_clear()
155 if (array->page_list[p].used < 0) in mthca_array_clear()
157 array, index, p, array->page_list[p].used); in mthca_array_clear()
165 array->page_list = kmalloc_array(npage, sizeof(*array->page_list), in mthca_array_init()
167 if (!array->page_list) in mthca_array_init()
172 array->page_list[i].used = 0; in mthca_array_init()
[all …]
/linux/drivers/ras/
A Dcec.c194 this_pfn = PFN(ca->array[i]); in __find_elem()
239 (void *)&ca->array[idx + 1], in del_elem()
290 u64 this = PFN(ca->array[i]); in sanity_check()
303 u64 this = PFN(ca->array[i]); in sanity_check()
348 (void *)&ca->array[to], in cec_add_elem()
357 ca->array[to]++; in cec_add_elem()
360 count = COUNT(ca->array[to]); in cec_add_elem()
459 i, this, bins[DECAY(ca->array[i])], COUNT(ca->array[i])); in array_show()
479 DEFINE_SHOW_ATTRIBUTE(array);
515 if (!array) { in create_debugfs_nodes()
[all …]
/linux/fs/nfs/
A Dpnfs_nfs.c133 if (array->lseg == lseg) in pnfs_find_commit_array_by_lseg()
134 return array; in pnfs_find_commit_array_by_lseg()
147 if (array) in pnfs_add_commit_array()
148 return array; in pnfs_add_commit_array()
165 if (!array) { in pnfs_lookup_commit_array()
172 return array; in pnfs_lookup_commit_array()
203 return array; in pnfs_get_commit_array()
210 array->lseg = NULL; in pnfs_remove_and_free_commit_array()
285 if (!array->lseg || !pnfs_get_commit_array(array)) in pnfs_generic_scan_commit_lists()
339 if (!array->lseg || !pnfs_get_commit_array(array)) in pnfs_generic_recover_commit_reqs()
[all …]
A Ddir.c186 kunmap_atomic(array); in nfs_readdir_page_init_array()
200 kfree(array->array[i].name); in nfs_readdir_clear_array()
260 cache_entry = &array->array[array->size + 1]; in nfs_readdir_array_can_expand()
287 cache_entry = &array->array[array->size]; in nfs_readdir_add_to_array()
296 array->size++; in nfs_readdir_add_to_array()
405 desc->dir_cookie = array->array[index].cookie; in nfs_readdir_search_for_pos()
431 if (array->size && cookie < array->array[0].cookie) in nfs_readdir_array_cookie_in_range()
447 if (array->array[i].cookie == desc->dir_cookie) { in nfs_readdir_search_for_cookie()
462 desc->file, array->array[i].name, desc->dir_cookie); in nfs_readdir_search_for_cookie()
987 ent = &array->array[i]; in nfs_do_filldir()
[all …]
/linux/scripts/coccinelle/misc/
A Dflexible_array.cocci27 identifier name, array;
35 * T array@p[\(0\|1\)];
40 * T array@p[\(0\|1\)];
45 * T array@p[\(0\|1\)];
50 * T array@p[\(0\|1\)];
55 identifier name, array;
62 T array[0];
66 T array[0];
71 identifier name, array;
82 T array@p[
[all …]
/linux/drivers/media/usb/gspca/stv06xx/
A Dstv06xx_hdcs.c66 } array; member
294 height = hdcs->array.height - 2 * hdcs->array.border - in hdcs_set_size()
298 + hdcs->array.top; in hdcs_set_size()
303 y = hdcs->array.top + (hdcs->array.height - height) / 2; in hdcs_set_size()
306 x = hdcs->array.left + (hdcs->array.width - width) / 2; in hdcs_set_size()
375 hdcs->array.left = 8; in hdcs_probe_1x00()
376 hdcs->array.top = 8; in hdcs_probe_1x00()
379 hdcs->array.border = 4; in hdcs_probe_1x00()
437 hdcs->array.left = 24; in hdcs_probe_1020()
438 hdcs->array.top = 4; in hdcs_probe_1020()
[all …]
/linux/include/linux/
A Dassoc_array.h54 static inline void assoc_array_init(struct assoc_array *array) in assoc_array_init() argument
56 array->root = NULL; in assoc_array_init()
57 array->nr_leaves_on_tree = 0; in assoc_array_init()
60 extern int assoc_array_iterate(const struct assoc_array *array,
64 extern void *assoc_array_find(const struct assoc_array *array,
67 extern void assoc_array_destroy(struct assoc_array *array,
69 extern struct assoc_array_edit *assoc_array_insert(struct assoc_array *array,
75 extern struct assoc_array_edit *assoc_array_delete(struct assoc_array *array,
78 extern struct assoc_array_edit *assoc_array_clear(struct assoc_array *array,
82 extern int assoc_array_gc(struct assoc_array *array,
/linux/drivers/scsi/isci/
A Dunsolicited_frame_control.c85 uf_control->headers.array = virt + SCI_UFI_BUF_SIZE; in sci_unsolicited_frame_control_construct()
95 uf_control->address_table.array = virt + SCI_UFI_BUF_SIZE + SCI_UFI_HDR_SIZE; in sci_unsolicited_frame_control_construct()
110 uf = &uf_control->buffers.array[i]; in sci_unsolicited_frame_control_construct()
112 uf_control->address_table.array[i] = dma; in sci_unsolicited_frame_control_construct()
115 uf->header = &uf_control->headers.array[i]; in sci_unsolicited_frame_control_construct()
136 *frame_header = &uf_control->buffers.array[frame_index].header->data; in sci_unsolicited_frame_control_get_header()
149 *frame_buffer = uf_control->buffers.array[frame_index].buffer; in sci_unsolicited_frame_control_get_buffer()
171 while (lower_32_bits(uf_control->address_table.array[frame_get]) == 0 && in sci_unsolicited_frame_control_release_frame()
172 upper_32_bits(uf_control->address_table.array[frame_get]) == 0 && in sci_unsolicited_frame_control_release_frame()
184 uf_control->buffers.array[frame_index].state = UNSOLICITED_FRAME_RELEASED; in sci_unsolicited_frame_control_release_frame()
[all …]
/linux/tools/perf/util/
A Devsel.c2339 array = event->sample.array; in evsel__parse_sample()
2441 array = (void *)array + sz; in evsel__parse_sample()
2458 array = (void *)array + sz; in evsel__parse_sample()
2485 array = (void *)array + sizeof(u32); in evsel__parse_sample()
2489 array = (void *)array + data->raw_size; in evsel__parse_sample()
2533 array = (void *)array + sz; in evsel__parse_sample()
2548 array = (void *)array + sz; in evsel__parse_sample()
2564 array = (void *)array + sz; in evsel__parse_sample()
2604 array = (void *)array + sz; in evsel__parse_sample()
2642 array = (void *)array + sz; in evsel__parse_sample()
[all …]
A Dsynthetic-events.c1534 array = event->sample.array; in perf_event__synthesize_sample()
1538 array++; in perf_event__synthesize_sample()
1607 array = (void *)array + sz; in perf_event__synthesize_sample()
1617 array = (void *)array + sz; in perf_event__synthesize_sample()
1623 array = (void *)array + sizeof(u32); in perf_event__synthesize_sample()
1626 array = (void *)array + sample->raw_size; in perf_event__synthesize_sample()
1634 array = (void *)array + sz; in perf_event__synthesize_sample()
1642 array = (void *)array + sz; in perf_event__synthesize_sample()
1653 array = (void *)array + sz; in perf_event__synthesize_sample()
1678 array = (void *)array + sz; in perf_event__synthesize_sample()
[all …]
A Dparse-events.y119 %type <array> array
120 %type <array> array_term
883 term->array = $2;
897 term->array = $2;
916 array:
951 array.nr_ranges = 1;
952 array.ranges = malloc(sizeof(array.ranges[0]));
956 $$ = array;
964 array.nr_ranges = 1;
965 array.ranges = malloc(sizeof(array.ranges[0]));
[all …]
/linux/arch/s390/tools/
A Dgen_facilities.c130 unsigned long long *array; in print_facility_list() local
132 array = calloc(1, 8); in print_facility_list()
133 if (!array) in print_facility_list()
140 array = realloc(array, (dword + 1) * 8); in print_facility_list()
141 if (!array) in print_facility_list()
143 memset(array + high + 1, 0, (dword - high) * 8); in print_facility_list()
146 array[dword] |= 1ULL << bit; in print_facility_list()
150 printf("_AC(0x%016llx,UL)%c", array[i], i < high ? ',' : '\n'); in print_facility_list()
151 free(array); in print_facility_list()
/linux/tools/lib/perf/Documentation/examples/
A Dsampling.c86 __u64 ip, period, *array; in main() local
89 array = event->sample.array; in main()
91 ip = *array; in main()
92 array++; in main()
94 u.val64 = *array; in main()
97 array++; in main()
99 u.val64 = *array; in main()
101 array++; in main()
103 period = *array; in main()
/linux/Documentation/RCU/
A DarrayRCU.rst17 of RCU to instead protect the index into an array, however, this use
34 Hash tables are often implemented as an array, where each array entry
37 to other array-of-list situations, such as radix trees.
45 located in each array element, and where the array is never resized,
70 the new array, and invokes ipc_rcu_putref() to free up the old array.
102 * contents of the new array are visible before the new
103 * array becomes visible.
113 to free the array after a grace period has elapsed.
117 using rcu_dereference() to pick up the pointer to the array so
120 with the array itself, there can be no array-size mismatches, so
[all …]
/linux/drivers/gpio/
A Dgpiolib-legacy.c85 int gpio_request_array(const struct gpio *array, size_t num) in gpio_request_array() argument
89 for (i = 0; i < num; i++, array++) { in gpio_request_array()
90 err = gpio_request_one(array->gpio, array->flags, array->label); in gpio_request_array()
98 gpio_free((--array)->gpio); in gpio_request_array()
108 void gpio_free_array(const struct gpio *array, size_t num) in gpio_free_array() argument
111 gpio_free((array++)->gpio); in gpio_free_array()
/linux/Documentation/admin-guide/
A Dmd.rst22 or, to assemble a partitionable array::
44 level of the RAID array
155 The array is started with the RUN_ARRAY ioctl.
162 array using HOT_REMOVE_DISK.
168 An array can be ``created`` by describing the array (level, chunksize
174 and its role in the array.
208 be set while assembling an array.
276 array creation it will default to 0, though starting the array as
399 degraded array, or if the array becomes degraded during a write.
573 the array, either before the array is activated, or before
[all …]
/linux/fs/dlm/
A Dmember.c73 if (array) { in log_slots()
75 if (!array[i].nodeid) in log_slots()
79 array[i].slot, array[i].nodeid); in log_slots()
219 array = kcalloc(array_size, sizeof(*array), GFP_NOFS); in dlm_slots_assign()
220 if (!array) in dlm_slots_assign()
233 kfree(array); in dlm_slots_assign()
265 kfree(array); in dlm_slots_assign()
280 kfree(array); in dlm_slots_assign()
285 *slots_out = array; in dlm_slots_assign()
415 array = kmalloc_array(total, sizeof(*array), GFP_NOFS); in make_member_array()
[all …]
/linux/arch/x86/kvm/
A Dcpuid.c617 if (array->nent >= array->maxnent) in do_host_cpuid()
620 entry = &array->entries[array->nent++]; in do_host_cpuid()
653 if (array->nent >= array->maxnent) in __do_cpuid_func_emulated()
656 entry = &array->entries[array->nent]; in __do_cpuid_func_emulated()
664 ++array->nent; in __do_cpuid_func_emulated()
668 ++array->nent; in __do_cpuid_func_emulated()
675 ++array->nent; in __do_cpuid_func_emulated()
859 --array->nent; in __do_cpuid_func()
1062 limit = array->entries[array->nent - 1].eax; in get_cpuid_func()
1122 if (!array.entries) in kvm_dev_ioctl_get_cpuid()
[all …]

Completed in 86 milliseconds

12345678910>>...123