Home
last modified time | relevance | path

Searched full:array (Results 1 – 25 of 3728) sorted by relevance

12345678910>>...150

/linux/drivers/misc/vmw_vmci/
H A Dvmci_handle_array.c13 struct vmci_handle_arr *array; in vmci_handle_arr_create() local
22 array = kmalloc_flex(*array, entries, capacity, GFP_ATOMIC); in vmci_handle_arr_create()
23 if (!array) in vmci_handle_arr_create()
26 array->capacity = capacity; in vmci_handle_arr_create()
27 array->max_capacity = max_capacity; in vmci_handle_arr_create()
28 array->size = 0; in vmci_handle_arr_create()
30 return array; in vmci_handle_arr_create()
33 void vmci_handle_arr_destroy(struct vmci_handle_arr *array) in vmci_handle_arr_destroy() argument
35 kfree(array); in vmci_handle_arr_destroy()
41 struct vmci_handle_arr *array = *array_ptr; in vmci_handle_arr_append_entry() local
[all …]
H A Dvmci_handle_array.h23 /* Select a default capacity that results in a 64 byte sized array */
27 void vmci_handle_arr_destroy(struct vmci_handle_arr *array);
30 struct vmci_handle vmci_handle_arr_remove_entry(struct vmci_handle_arr *array,
33 struct vmci_handle vmci_handle_arr_remove_tail(struct vmci_handle_arr *array);
35 vmci_handle_arr_get_entry(const struct vmci_handle_arr *array, u32 index);
36 bool vmci_handle_arr_has_entry(const struct vmci_handle_arr *array,
38 struct vmci_handle *vmci_handle_arr_get_handles(struct vmci_handle_arr *array);
41 const struct vmci_handle_arr *array) in vmci_handle_arr_get_size() argument
43 return array->size; in vmci_handle_arr_get_size()
/linux/fs/xfs/scrub/
H A Dxfarray.c19 * This memory array uses an xfile (which itself is a shmem file) to store
22 * because we don't have to pin so much memory. However, array access is less
23 * direct than would be in a regular memory array. Access to the array is
25 * provided for convenience. Array elements can be unset, which sets them to
34 * buffer array items when we need space to store values temporarily.
36 static inline void *xfarray_scratch(struct xfarray *array) in xfarray_scratch() argument
38 return (array + 1); in xfarray_scratch()
41 /* Compute array index given an xfile offset. */
44 struct xfarray *array, in xfarray_idx() argument
54 xfarray_pos(struct xfarray * array,xfarray_idx_t idx) xfarray_pos() argument
76 struct xfarray *array; xfarray_create() local
123 xfarray_destroy(struct xfarray * array) xfarray_destroy() argument
132 xfarray_load(struct xfarray * array,xfarray_idx_t idx,void * ptr) xfarray_load() argument
146 xfarray_is_unset(struct xfarray * array,loff_t pos) xfarray_is_unset() argument
168 xfarray_unset(struct xfarray * array,xfarray_idx_t idx) xfarray_unset() argument
201 xfarray_store(struct xfarray * array,xfarray_idx_t idx,const void * ptr) xfarray_store() argument
224 xfarray_element_is_null(struct xfarray * array,const void * ptr) xfarray_element_is_null() argument
236 xfarray_store_anywhere(struct xfarray * array,const void * ptr) xfarray_store_anywhere() argument
270 xfarray_length(struct xfarray * array) xfarray_length() argument
287 xfarray_find_data(struct xfarray * array,xfarray_idx_t * cur,loff_t * pos) xfarray_find_data() argument
340 xfarray_load_next(struct xfarray * array,xfarray_idx_t * idx,void * rec) xfarray_load_next() argument
433 xfarray_pivot_rec_sz(struct xfarray * array) xfarray_pivot_rec_sz() argument
441 xfarray_sortinfo_alloc(struct xfarray * array,xfarray_cmp_fn cmp_fn,unsigned int flags,struct xfarray_sortinfo ** infop) xfarray_sortinfo_alloc() argument
904 xfarray_sort(struct xfarray * array,xfarray_cmp_fn cmp_fn,unsigned int flags) xfarray_sort() argument
1060 xfarray_bytes(struct xfarray * array) xfarray_bytes() argument
1068 xfarray_truncate(struct xfarray * array) xfarray_truncate() argument
[all...]
/linux/sound/hda/core/
H A Darray.c11 * snd_array_new - get a new element from the given array
12 * @array: the array object
14 * Get a new element from the given array. If it exceeds the
15 * pre-allocated array size, re-allocate the array.
19 void *snd_array_new(struct snd_array *array) in snd_array_new() argument
21 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()
26 int size = (num + 1) * array->elem_size; in snd_array_new()
[all …]
/linux/drivers/md/persistent-data/
H A Ddm-array.h15 * The dm-array is a persistent version of an array. It packs the data
26 * size along with the array root in your encompassing data.
28 * Array entries are indexed via an unsigned integer starting from zero.
29 * Arrays are not sparse; if you resize an array to have 'n' entries then
34 * a) initialise a dm_array_info structure. This describes the array
40 * disk that holds a particular instance of an array. You may have a
42 * want to create a brand new, empty array with dm_array_empty().
46 * root for a _new_ array. If you've incremented the old root, via
50 * c) resize an array with dm_array_resize().
52 * d) Get a value from the array with dm_array_get_value().
[all …]
/linux/kernel/bpf/
H A Darraymap.c23 static void bpf_array_free_percpu(struct bpf_array *array) in bpf_array_free_percpu() argument
27 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_free_percpu()
28 free_percpu(array->pptrs[i]); in bpf_array_free_percpu()
33 static int bpf_array_alloc_percpu(struct bpf_array *array) in bpf_array_alloc_percpu() argument
38 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_alloc_percpu()
39 ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8, in bpf_array_alloc_percpu()
42 bpf_array_free_percpu(array); in bpf_array_alloc_percpu()
45 array->pptrs[i] = ptr; in bpf_array_alloc_percpu()
91 struct bpf_array *array; in array_map_alloc() local
161 array_map_elem_ptr(struct bpf_array * array,u32 index) array_map_elem_ptr() argument
169 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_lookup_elem() local
180 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_get_hash() local
190 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_direct_value_addr() local
204 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_direct_value_meta() local
220 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_gen_lookup() local
253 struct bpf_array *array = container_of(map, struct bpf_array, map); percpu_array_map_lookup_elem() local
264 struct bpf_array *array = container_of(map, struct bpf_array, map); percpu_array_map_direct_value_addr() local
279 struct bpf_array *array = container_of(map, struct bpf_array, map); percpu_array_map_direct_value_meta() local
296 struct bpf_array *array = container_of(map, struct bpf_array, map); percpu_array_map_gen_lookup() local
327 struct bpf_array *array = container_of(map, struct bpf_array, map); percpu_array_map_lookup_percpu_elem() local
341 struct bpf_array *array = container_of(map, struct bpf_array, map); bpf_percpu_array_copy() local
395 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_update_elem() local
434 struct bpf_array *array = container_of(map, struct bpf_array, map); bpf_percpu_array_update() local
487 array_map_vmalloc_addr(struct bpf_array * array) array_map_vmalloc_addr() argument
494 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_free_internal_structs() local
508 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_free() local
561 struct bpf_array *array = container_of(map, struct bpf_array, map); percpu_array_map_seq_show_elem() local
611 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_mmap() local
635 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_mmap_fault() local
669 struct bpf_array *array; bpf_array_map_seq_start() local
688 struct bpf_array *array; bpf_array_map_seq_next() local
708 struct bpf_array *array = container_of(map, struct bpf_array, map); __bpf_array_map_seq_show() local
759 struct bpf_array *array = container_of(map, struct bpf_array, map); bpf_iter_init_array_map() local
807 struct bpf_array *array; bpf_for_each_array_elem() local
838 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_mem_usage() local
923 struct bpf_array *array = container_of(map, struct bpf_array, map); fd_array_map_free() local
962 struct bpf_array *array = container_of(map, struct bpf_array, map); bpf_fd_array_map_update_elem() local
993 struct bpf_array *array = container_of(map, struct bpf_array, map); __fd_array_map_delete_elem() local
1074 struct bpf_array *array = container_of(map, struct bpf_array, map); bpf_fd_array_map_clear() local
1360 struct bpf_array *array = container_of(map, struct bpf_array, map); perf_event_fd_array_release() local
1477 struct bpf_array *array = container_of(map, struct bpf_array, map); array_of_map_gen_lookup() local
[all...]
H A Dreuseport_array.c52 struct reuseport_array *array = reuseport_array(map); in reuseport_array_lookup_elem() local
55 if (unlikely(index >= array->map.max_entries)) in reuseport_array_lookup_elem()
58 return rcu_dereference(array->ptrs[index]); in reuseport_array_lookup_elem()
64 struct reuseport_array *array = reuseport_array(map); in reuseport_array_delete_elem() local
72 if (!rcu_access_pointer(array->ptrs[index])) in reuseport_array_delete_elem()
77 sk = rcu_dereference_protected(array->ptrs[index], in reuseport_array_delete_elem()
82 RCU_INIT_POINTER(array->ptrs[index], NULL); in reuseport_array_delete_elem()
96 struct reuseport_array *array = reuseport_array(map); in reuseport_array_free() local
102 * array now. Hence, this function only races with in reuseport_array_free()
107 * both removing sk from "array". Who removes it in reuseport_array_free()
[all …]
/linux/drivers/accel/habanalabs/common/
H A Dsecurity.c40 * hl_get_pb_block - return the relevant block within the block array
44 * @pb_blocks: blocks array
45 * @array_size: blocks array size
72 * @sgs_entry: pb array
98 * @pb_blocks: blocks array
99 * @sgs_array: pb array
100 * @array_size: blocks array size
127 * @pb_blocks: blocks array
128 * @sgs_array: pb array
129 * @array_size: blocks array size
[all …]
/linux/kernel/
H A Dstacktrace.c20 * @entries: Pointer to storage array
21 * @nr_entries: Number of entries in the storage array
41 * @entries: Pointer to storage array
42 * @nr_entries: Number of entries in the storage array
105 * stack_trace_save - Save a stack trace into a storage array
106 * @store: Pointer to storage array
107 * @size: Size of the storage array
128 * stack_trace_save_tsk - Save a task stack trace into a storage array
130 * @store: Pointer to storage array
131 * @size: Size of the storage array
[all …]
/linux/drivers/android/binder/range_alloc/
H A Dmod.rs10 mod array; module
11 use self::array::{ArrayRangeAllocator, EmptyArrayAlloc};
77 /// The array implementation must switch to the tree if it wants to go beyond this number of
117 Array(ArrayRangeAllocator<T>), enumerator
131 Impl::Array(array) => array.free_oneway_space(), in free_oneway_space()
139 Impl::Array(array) => array in count_buffers()
[all...]
/linux/include/linux/
H A Ddma-fence-array.h3 * fence-array: aggregates fence to be waited together
19 * struct dma_fence_array_cb - callback helper for fence array
21 * @array: reference to the parent fence array object
25 struct dma_fence_array *array; member
29 * struct dma_fence_array - fence to represent an array of fences
31 * @num_fences: number of fences in the array
32 * @num_pending: fences in the array still pending
33 * @fences: array of the fences
35 * @callbacks: array of callback helpers
66 * dma_fence_array_for_each - iterate over all fences in array
[all …]
H A Dassoc_array.h2 /* Generic associative array implementation.
20 * Generic associative array.
28 * Operations on objects and index keys for use by array manipulation routines.
54 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,
[all …]
H A Doverflow.h382 * array_size() - Calculate size of 2-dimensional array.
386 * Calculates size of 2-dimensional array: @a * @b.
388 * Returns: number of bytes needed to represent the array or SIZE_MAX on
394 * array3_size() - Calculate size of 3-dimensional array.
399 * Calculates size of 3-dimensional array: @a * @b * @c.
401 * Returns: number of bytes needed to represent the array or SIZE_MAX on
407 * flex_array_size() - Calculate size of a flexible array member
410 * @member: Name of the flexible array member.
411 * @count: Number of elements in the array.
413 * Calculates size of a flexible array o
545 STACK_FLEX_ARRAY_SIZE(name,array) global() argument
[all...]
/linux/Documentation/core-api/
H A Dassoc_array.rst2 Generic Associative Array Implementation
8 This associative array implementation is an object container with the following
18 2. Objects do not need to contain linkage blocks for use by the array. This
20 Rather, the array is made up of metadata blocks that point to objects.
22 3. Objects require index keys to locate them within the array.
25 already in the array will replace the old object.
32 7. Index keys can include a hash to scatter objects throughout the array.
34 8. The array can iterated over. The objects will not necessarily come out in
37 9. The array can be iterated over while it is being modified, provided the
43 10. Objects in the array ca
[all...]
/linux/drivers/dma-buf/
H A Ddma-fence-unwrap.c11 #include <linux/dma-fence-array.h>
17 /* Internal helper to start new array iteration, don't use directly */
21 cursor->array = dma_fence_chain_contained(cursor->chain); in __dma_fence_unwrap_array()
23 return dma_fence_array_first(cursor->array); in __dma_fence_unwrap_array()
54 tmp = dma_fence_array_next(cursor->array, cursor->index); in dma_fence_unwrap_next()
83 * dma_fence_dedup_array - Sort and deduplicate an array of dma_fence pointers
84 * @fences: Array of dma_fence pointers to be deduplicated
85 * @num_fences: Number of entries in the @fences array
87 * Sorts the input array by context, then removes duplicate
90 * The array is modified in-place and unreferenced duplicate fences are released
[all …]
/linux/drivers/gpu/drm/msm/registers/display/
H A Dmdp4.xml155 <array offsets="0x10000,0x18000,0x88000" name="OVLP" length="3" stride="0x8000">
162 <array offsets="0x0104,0x0124,0x0144,0x0160" name="STAGE" length="4" stride="0x1c">
179 </array>
181 <array offsets="0x1004,0x1404,0x1804,0x1b84" name="STAGE_CO3" length="4" stride="4">
185 </array>
194 <array offset="0x2000" name="CSC" length="1" stride="0x700">
195 <array offset="0x400" name="MV" length="9" stride="4">
197 </array>
198 <array offset="0x500" name="PRE_BV" length="3" stride="4">
200 </array>
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dpwrseq.c8 /* 3 Power on Array */
15 /* 3Radio off GPIO Array */
22 /* 3Card Disable Array */
31 /* 3 Card Enable Array */
40 /* 3Suspend Array */
49 /* 3 Resume Array */
58 /* 3HWPDN Array */
84 /*3 Power on Array*/
91 /*3Radio off GPIO Array */
98 /*3Card Disable Array*/
[all …]
/linux/scripts/coccinelle/misc/
H A Dflexible_array.cocci5 /// Flexible-array members should be used instead.
27 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;
[all …]
/linux/fs/nfs/
H A Dpnfs_nfs.c135 struct pnfs_commit_array *array; in pnfs_find_commit_array_by_lseg()
137 list_for_each_entry_rcu(array, &fl_cinfo->commits, cinfo_list) { in pnfs_find_commit_array_by_lseg()
138 if (array->lseg == lseg) in pnfs_find_commit_array_by_lseg()
139 return array; in pnfs_find_commit_array_by_lseg()
149 struct pnfs_commit_array *array; in pnfs_add_commit_array()
151 array = pnfs_find_commit_array_by_lseg(fl_cinfo, lseg); in pnfs_add_commit_array()
152 if (array) in pnfs_add_commit_array()
153 return array; in pnfs_add_commit_array()
166 struct pnfs_commit_array *array; in pnfs_lookup_commit_array()
169 array in pnfs_lookup_commit_array()
132 struct pnfs_commit_array *array; pnfs_find_commit_array_by_lseg() local
146 struct pnfs_commit_array *array; pnfs_add_commit_array() local
163 struct pnfs_commit_array *array; pnfs_lookup_commit_array() local
178 pnfs_release_commit_array_locked(struct pnfs_commit_array * array) pnfs_release_commit_array_locked() argument
186 pnfs_put_commit_array_locked(struct pnfs_commit_array * array) pnfs_put_commit_array_locked() argument
193 pnfs_put_commit_array(struct pnfs_commit_array * array,struct inode * inode) pnfs_put_commit_array() argument
202 pnfs_get_commit_array(struct pnfs_commit_array * array) pnfs_get_commit_array() argument
210 pnfs_remove_and_free_commit_array(struct pnfs_commit_array * array) pnfs_remove_and_free_commit_array() argument
221 struct pnfs_commit_array *array, *tmp; pnfs_generic_ds_cinfo_release_lseg() local
231 struct pnfs_commit_array *array, *tmp; pnfs_generic_ds_cinfo_destroy() local
282 struct pnfs_commit_array *array; pnfs_generic_scan_commit_lists() local
335 struct pnfs_commit_array *array; pnfs_generic_recover_commit_reqs() local
443 struct pnfs_commit_array *array; pnfs_alloc_ds_commits_list() local
1188 struct pnfs_commit_array *array; pnfs_layout_mark_request_commit() local
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_map_resize.c26 int *array; in global_map_resize_bss_subtest() local
36 skel->bss->array[0] = 1; in global_map_resize_bss_subtest()
50 /* set the expected number of elements based on the resized array */ in global_map_resize_bss_subtest()
51 array_len = (desired_sz - sizeof(skel->bss->sum)) / sizeof(skel->bss->array[0]); in global_map_resize_bss_subtest()
61 /* fill the newly resized array with ones, in global_map_resize_bss_subtest()
64 * since the array was resized beyond its declared length. in global_map_resize_bss_subtest()
66 array = skel->bss->array; in global_map_resize_bss_subtest()
68 array[i] = 1; in global_map_resize_bss_subtest()
82 /* run the bpf program which will sum the contents of the array. in global_map_resize_bss_subtest()
83 * since the array was filled with ones,verify the sum equals array_len in global_map_resize_bss_subtest()
[all …]
/linux/lib/
H A Dassoc_array.c2 /* Generic associative array implementation.
16 * Iterate over an associative array. The caller must hold the RCU read lock
111 * assoc_array_iterate - Pass all objects in the array to a callback
112 * @array: The array to iterate over.
116 * Iterate over all the objects in an associative array. Each one will be
119 * If the array is being modified concurrently with the iteration then it is
120 * possible that some objects in the array will be passed to the iterator
125 * The function will return 0 if no objects were in the array or else it will
133 int assoc_array_iterate(const struct assoc_array *array, in assoc_array_iterate() argument
170 assoc_array_walk(const struct assoc_array * array,const struct assoc_array_ops * ops,const void * index_key,struct assoc_array_walk_result * result) assoc_array_walk() argument
305 assoc_array_find(const struct assoc_array * array,const struct assoc_array_ops * ops,const void * index_key) assoc_array_find() argument
442 assoc_array_destroy(struct assoc_array * array,const struct assoc_array_ops * ops) assoc_array_destroy() argument
962 assoc_array_insert(struct assoc_array * array,const struct assoc_array_ops * ops,const void * index_key,void * object) assoc_array_insert() argument
1077 assoc_array_delete(struct assoc_array * array,const struct assoc_array_ops * ops,const void * index_key) assoc_array_delete() argument
1273 assoc_array_clear(struct assoc_array * array,const struct assoc_array_ops * ops) assoc_array_clear() argument
1452 assoc_array_gc(struct assoc_array * array,const struct assoc_array_ops * ops,bool (* iterator)(void * object,void * iterator_data),void * iterator_data) assoc_array_gc() argument
[all...]
/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_hdcs.c61 /* visible area of the sensor array */
66 } array; member
287 if (width > hdcs->array.width) in hdcs_set_size()
288 width = hdcs->array.width; in hdcs_set_size()
292 if (height + 2 * hdcs->array.border + HDCS_1020_BOTTOM_Y_SKIP in hdcs_set_size()
293 > hdcs->array.height) in hdcs_set_size()
294 height = hdcs->array.height - 2 * hdcs->array.border - in hdcs_set_size()
297 y = (hdcs->array.height - HDCS_1020_BOTTOM_Y_SKIP - height) / 2 in hdcs_set_size()
298 + hdcs->array.top; in hdcs_set_size()
300 if (height > hdcs->array.height) in hdcs_set_size()
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Dbrcm,usb-pinmap.yaml27 description: Array of one or two GPIO pins used for input signals.
30 $ref: /schemas/types.yaml#/definitions/string-array
31 description: Array of input signal names, one per gpio in in-gpios.
34 $ref: /schemas/types.yaml#/definitions/uint32-array
35 description: Array of enable and mask pairs, one per gpio in-gpios.
39 description: Array of one GPIO pin used for output signals.
42 $ref: /schemas/types.yaml#/definitions/string-array
43 description: Array of output signal names, one per gpio in out-gpios.
46 $ref: /schemas/types.yaml#/definitions/uint32-array
47 description: Array of enable, value, changed and clear masks, one
/linux/tools/lib/perf/Documentation/examples/
H 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/scsi/
H A Dhpsa.rst4 HPSA - Hewlett Packard Smart Array driver
7 This file describes the hpsa SCSI driver for HP Smart Array controllers.
9 Smart Array controllers. The hpsa driver is a SCSI driver, while the
19 - Smart Array P212
20 - Smart Array P410
21 - Smart Array P410i
22 - Smart Array P411
23 - Smart Array P812
24 - Smart Array P712m
25 - Smart Array P711m
[all …]

12345678910>>...150