Home
last modified time | relevance | path

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

12345678910>>...58

/openbmc/linux/drivers/misc/vmw_vmci/
H 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 …]
/openbmc/linux/drivers/dma-buf/
H A Ddma-fence-array.c47 struct dma_fence_array *array = container_of(wrk, typeof(*array), work); in irq_dma_fence_array_work() local
60 struct dma_fence_array *array = array_cb->array; in dma_fence_array_cb_func() local
77 cb[i].array = array; in dma_fence_array_enable_signaling()
122 kfree(array->fences); in dma_fence_array_release()
178 if (!array) in dma_fence_array_create()
182 dma_fence_init(&array->base, &dma_fence_array_ops, &array->lock, in dma_fence_array_create()
188 array->fences = fences; in dma_fence_array_create()
206 return array; in dma_fence_array_create()
244 if (!array) in dma_fence_array_first()
247 if (!array->num_fences) in dma_fence_array_first()
[all …]
/openbmc/qemu/tests/tcg/hexagon/
H A Dmisc.c413 memcpy(array, init, sizeof(array)); in main()
430 memcpy(array, init, sizeof(array)); in main()
436 memcpy(array, init, sizeof(array)); in main()
442 memcpy(array, init, sizeof(array)); in main()
448 memcpy(array, init, sizeof(array)); in main()
455 memcpy(array, init, sizeof(array)); in main()
461 memcpy(array, init, sizeof(array)); in main()
467 memcpy(array, init, sizeof(array)); in main()
473 memcpy(array, init, sizeof(array)); in main()
480 memcpy(array, init, sizeof(array)); in main()
[all …]
/openbmc/linux/fs/xfs/scrub/
H A Dxfarray.c88 if (!array) in xfarray_create()
99 array->max_nr = xfarray_idx(array, MAX_LFS_FILESIZE); in xfarray_create()
114 kfree(array); in xfarray_create()
126 kfree(array); in xfarray_destroy()
139 return xfile_obj_load(array->xfile, ptr, array->obj_size, in xfarray_load()
179 array->nr--; in xfarray_unset()
212 ret = xfile_obj_store(array->xfile, ptr, array->obj_size, in xfarray_store()
217 array->nr = max(array->nr, idx + 1); in xfarray_store()
240 loff_t endpos = xfarray_pos(array, array->nr); in xfarray_store_anywhere()
248 error = xfile_obj_load(array->xfile, temp, array->obj_size, in xfarray_store_anywhere()
[all …]
H A Dxfarray.h14 #define foreach_xfarray_idx(array, idx) \ argument
16 (idx) < xfarray_length(array); \
41 void xfarray_destroy(struct xfarray *array);
42 int xfarray_load(struct xfarray *array, xfarray_idx_t idx, void *ptr);
43 int xfarray_unset(struct xfarray *array, xfarray_idx_t idx);
45 int xfarray_store_anywhere(struct xfarray *array, const void *ptr);
46 bool xfarray_element_is_null(struct xfarray *array, const void *ptr);
51 return xfarray_store(array, array->nr, ptr); in xfarray_append()
54 uint64_t xfarray_length(struct xfarray *array);
69 struct xfarray *array; member
[all …]
/openbmc/linux/sound/hda/
H 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 …]
/openbmc/phosphor-dbus-interfaces/yaml/com/ibm/ipzvpd/
H A DVSBK.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DUTIL.interface.yaml6 type: array[byte]
10 type: array[byte]
14 type: array[byte]
18 type: array[byte]
22 type: array[byte]
26 type: array[byte]
30 type: array[byte]
34 type: array[byte]
38 type: array[byte]
42 type: array[byte]
[all …]
H A DVINI.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DCRP0.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DVSYS.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DCP00.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DLWP5.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DLWP7.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DLWP4.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DLWP3.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DLWP0.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DLWP6.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DLWP2.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
H A DLWP1.interface.yaml5 type: array[byte]
9 type: array[byte]
13 type: array[byte]
17 type: array[byte]
21 type: array[byte]
25 type: array[byte]
29 type: array[byte]
33 type: array[byte]
37 type: array[byte]
41 type: array[byte]
[all …]
/openbmc/linux/kernel/bpf/
H A Darraymap.c38 ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8, in bpf_array_alloc_percpu()
143 if (!array) in array_map_alloc()
162 return array->value + (u64)array->elem_size * index; in array_map_elem_ptr()
174 return array->value + (u64)array->elem_size * (index & array->index_mask); in array_map_lookup_elem()
249 return this_cpu_ptr(array->pptrs[index & array->index_mask]); in percpu_array_map_lookup_elem()
283 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_copy()
337 val = this_cpu_ptr(array->pptrs[index & array->index_mask]); in array_map_update_elem()
342 (u64)array->elem_size * (index & array->index_mask); in array_map_update_elem()
381 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_update()
424 void __percpu *pptr = array->pptrs[i & array->index_mask]; in array_map_free()
[all …]
H A Dreuseport_array.c58 return rcu_dereference(array->ptrs[index]); in reuseport_array_lookup_elem()
127 sk = rcu_dereference(array->ptrs[i]); in reuseport_array_free()
137 RCU_INIT_POINTER(array->ptrs[i], NULL); in reuseport_array_free()
146 bpf_map_area_free(array); in reuseport_array_free()
152 struct reuseport_array *array; in reuseport_array_alloc() local
155 array = bpf_map_area_alloc(struct_size(array, ptrs, attr->max_entries), numa_node); in reuseport_array_alloc()
156 if (!array) in reuseport_array_alloc()
162 return &array->map; in reuseport_array_alloc()
323 if (index >= array->map.max_entries) { in reuseport_array_get_next_key()
328 if (index == array->map.max_entries - 1) in reuseport_array_get_next_key()
[all …]
/openbmc/linux/drivers/infiniband/hw/mthca/
H A Dmthca_allocator.c117 if (array->page_list[p].page) in mthca_array_get()
128 if (!array->page_list[p].page) in mthca_array_set()
131 if (!array->page_list[p].page) in mthca_array_set()
135 ++array->page_list[p].used; in mthca_array_set()
146 array->page_list[p].page = NULL; in mthca_array_clear()
150 if (array->page_list[p].used < 0) in mthca_array_clear()
152 array, index, p, array->page_list[p].used); in mthca_array_clear()
160 array->page_list = kmalloc_array(npage, sizeof(*array->page_list), in mthca_array_init()
162 if (!array->page_list) in mthca_array_init()
167 array->page_list[i].used = 0; in mthca_array_init()
[all …]
/openbmc/qemu/util/
H A Ddefer-call.c77 GArray *array = thread_state->deferred_call_array; in defer_call() local
78 if (!array) { in defer_call()
80 thread_state->deferred_call_array = array; in defer_call()
85 DeferredCall *fns = (DeferredCall *)array->data; in defer_call()
96 for (guint i = 0; i < array->len; i++) { in defer_call()
102 g_array_append_val(array, new_fn); in defer_call()
140 GArray *array = thread_state->deferred_call_array; in defer_call_end() local
141 if (!array) { in defer_call_end()
145 DeferredCall *fns = (DeferredCall *)array->data; in defer_call_end()
147 for (guint i = 0; i < array->len; i++) { in defer_call_end()
[all …]
/openbmc/linux/drivers/ras/
H 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 …]

12345678910>>...58