| /linux/drivers/misc/vmw_vmci/ |
| H A D | vmci_handle_array.c | 13 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 D | vmci_handle_array.h | 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 D | xfarray.c | 19 * 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 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 47 if (array in xfarray_idx() 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 D | array.c | 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() 30 nlist = krealloc(array->list, size, GFP_KERNEL); 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() [all …]
|
| /linux/kernel/bpf/ |
| H A D | arraymap.c | 23 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 D | reuseport_array.c | 52 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 127 sk = rcu_dereference(array->ptrs[i]); in reuseport_array_free() 137 RCU_INIT_POINTER(array->ptrs[i], NULL); in reuseport_array_free() [all …]
|
| /linux/scripts/coccinelle/misc/ |
| H A D | flexible_array.cocci | 5 /// 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/include/linux/ |
| H A D | assoc_array.h | 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, 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/ |
| H A D | unsolicited_frame_control.c | 85 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/drivers/android/binder/range_alloc/ |
| H A D | mod.rs | 10 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 131 Impl::Array(array) => array.free_oneway_space(), in free_oneway_space() 139 Impl::Array(array) => array.count_buffers(), in count_buffers() 147 Impl::Array(array) => array.debug_print(m), in debug_print() 171 Impl::Array(array) i in reserve_new() [all...] |
| /linux/fs/nfs/ |
| H A D | pnfs_nfs.c | 135 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...] |
| H A D | dir.c | 153 struct nfs_cache_array_entry array[] __counted_by(size); 205 struct nfs_cache_array *array; in nfs_readdir_folio_init_array() local 207 array = kmap_local_folio(folio, 0); in nfs_readdir_folio_init_array() 208 array->change_attr = change_attr; in nfs_readdir_folio_init_array() 209 array->last_cookie = last_cookie; in nfs_readdir_folio_init_array() 210 array->size = 0; in nfs_readdir_folio_init_array() 211 array->folio_full = 0; in nfs_readdir_folio_init_array() 212 array->folio_is_eof = 0; in nfs_readdir_folio_init_array() 213 array->cookies_are_ordered = 1; in nfs_readdir_folio_init_array() 214 kunmap_local(array); in nfs_readdir_folio_init_array() 222 struct nfs_cache_array *array; nfs_readdir_clear_array() local 256 nfs_readdir_array_index_cookie(struct nfs_cache_array * array) nfs_readdir_array_index_cookie() argument 261 nfs_readdir_array_set_eof(struct nfs_cache_array * array) nfs_readdir_array_set_eof() argument 267 nfs_readdir_array_is_full(struct nfs_cache_array * array) nfs_readdir_array_is_full() argument 299 nfs_readdir_array_can_expand(struct nfs_cache_array * array) nfs_readdir_array_can_expand() argument 314 struct nfs_cache_array *array; nfs_readdir_folio_array_append() local 370 struct nfs_cache_array *array = kmap_local_folio(folio, 0); nfs_readdir_folio_validate() local 414 struct nfs_cache_array *array; nfs_readdir_folio_last_cookie() local 425 struct nfs_cache_array *array; nfs_readdir_folio_needs_filling() local 436 struct nfs_cache_array *array; nfs_readdir_folio_set_eof() local 479 nfs_readdir_seek_next_array(struct nfs_cache_array * array,struct nfs_readdir_descriptor * desc) nfs_readdir_seek_next_array() argument 498 nfs_readdir_search_for_pos(struct nfs_cache_array * array,struct nfs_readdir_descriptor * desc) nfs_readdir_search_for_pos() argument 522 nfs_readdir_array_cookie_in_range(struct nfs_cache_array * array,u64 cookie) nfs_readdir_array_cookie_in_range() argument 535 nfs_readdir_search_for_cookie(struct nfs_cache_array * array,struct nfs_readdir_descriptor * desc) nfs_readdir_search_for_cookie() argument 566 struct nfs_cache_array *array; nfs_readdir_search_array() local 1087 struct nfs_cache_array *array; nfs_do_filldir() local [all...] |
| /linux/drivers/media/usb/gspca/stv06xx/ |
| H A D | stv06xx_hdcs.c | 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() 301 height = hdcs->array.height; in hdcs_set_size() [all …]
|
| /linux/drivers/dma-buf/ |
| H A D | dma-fence-unwrap.c | 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() 125 struct dma_fence *tmp, *unsignaled = NULL, **array; in __dma_fence_unwrap_merge() local 161 array = kmalloc_objs(*array, count); in __dma_fence_unwrap_merge() 162 if (!array) in __dma_fence_unwrap_merge() 169 array[count++] = dma_fence_get(tmp); in __dma_fence_unwrap_merge() 182 count = dma_fence_dedup_array(array, count); in __dma_fence_unwrap_merge() 185 result = dma_fence_array_create(count, array, in __dma_fence_unwrap_merge() 189 dma_fence_put(array[i]); in __dma_fence_unwrap_merge() [all …]
|
| /linux/scripts/ |
| H A D | tracepoint-update.c | 35 const char **array; member 44 const char **array = *vals; in add_string() local 49 array = realloc(array, sizeof(char *) * size); in add_string() 50 if (!array) { in add_string() 56 *vals = array; in add_string() 59 array[(*count)++] = str; in add_string() 88 etrace->array = NULL; in make_trace_array() 108 etrace->array = vals; in make_trace_array() 112 static int find_event(const char *str, void *array, size_t size) in find_event() argument 114 return bsearch(&str, array, size, sizeof(char *), compare_strings) != NULL; in find_event() [all …]
|
| /linux/tools/lib/perf/Documentation/examples/ |
| H A D | sampling.c | 86 __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/arch/s390/tools/ |
| H A D | gen_bitmaps.c | 175 unsigned long long *array; in print_bitmap() local 178 array = calloc(high + 1, 8); in print_bitmap() 179 if (!array) in print_bitmap() 185 array = realloc(array, (dword + 1) * 8); in print_bitmap() 186 if (!array) in print_bitmap() 188 memset(array + high + 1, 0, (dword - high) * 8); in print_bitmap() 191 array[dword] |= 1ULL << bit; in print_bitmap() 195 printf("_AC(0x%016llx,UL)%c", array[i], i < high ? ',' : '\n'); in print_bitmap() 196 free(array); in print_bitmap()
|
| /linux/tools/perf/util/ |
| H A D | synthetic-events.c | 1716 __u64 *array, u64 type __maybe_unused) in perf_event__synthesize_sample() 1718 *array = data->weight; in perf_event__synthesize_sample() 1721 *array &= 0xffffffff; in perf_event__synthesize_sample() 1722 *array |= ((u64)data->ins_lat << 32); in perf_event__synthesize_sample() 1723 *array |= ((u64)data->weight3 << 48); in perf_event__synthesize_sample() 1727 static __u64 *copy_read_group_values(__u64 *array, __u64 read_format, in perf_event__synthesize_sample() 1735 memcpy(array, v, sz); in perf_event__synthesize_sample() 1736 array = (void *)array + sz; in perf_event__synthesize_sample() 1738 return array; in perf_event__synthesize_sample() 1582 perf_synthesize_sample_weight(const struct perf_sample * data,__u64 * array,u64 type __maybe_unused) perf_synthesize_sample_weight() argument 1593 copy_read_group_values(__u64 * array,__u64 read_format,const struct perf_sample * sample) copy_read_group_values() argument 1610 __u64 *array; perf_event__synthesize_sample() local 1805 perf_event__synthesize_id_sample(__u64 * array,u64 type,const struct perf_sample * sample) perf_event__synthesize_id_sample() argument 2279 void *array = &ev; perf_event__synthesize_build_id() local 2312 void *array; perf_event__synthesize_mmap2_build_id() local [all...] |
| H A D | evsel.c | 338 * PERF_SAMPLE_IDENTIFIER) in a sample event i.e. in the array of struct in __evsel__set_sample_bit() 3238 const __u64 *array = event->sample.array; in evsel__parse_sample() 3247 sample->id = array[i--]; in evsel__parse_sample() 3254 u.val64 = array[i--]; in evsel__parse_sample() 3267 sample->stream_id = array[i--]; in evsel__parse_sample() 3274 sample->id = array[i--]; in evsel__parse_sample() 3281 sample->time = array[i--]; in evsel__parse_sample() 3288 u.val64 = array[i--]; in evsel__parse_sample() 3332 static void perf_parse_sample_weight(struct perf_sample *data, const __u64 *array, u6 in evsel__parse_sample() 3005 const __u64 *array = event->sample.array; perf_evsel__parse_id_sample() local 3090 perf_parse_sample_weight(struct perf_sample * data,const __u64 * array,u64 type) perf_parse_sample_weight() argument 3177 u64 *array = data->raw_data; __set_offcpu_sample() local 3209 const __u64 *array; evsel__parse_sample() local 3595 const __u64 *array; evsel__parse_sample_timestamp() local [all...] |
| /linux/net/netfilter/ |
| H A D | nft_set_rbtree.c | 34 struct nft_array __rcu *array; member 112 struct nft_array *array = rcu_dereference(priv->array); in nft_rbtree_lookup() local 119 if (!array) in nft_rbtree_lookup() 122 interval = bsearch(&ctx, array->intervals, array->num_intervals, in nft_rbtree_lookup() 170 struct nft_array *array = rcu_dereference(priv->array); in nft_rbtree_get() local 179 if (!array) in nft_rbtree_get() 182 interval = bsearch(&ctx, array in nft_rbtree_get() 542 nft_array_intervals_alloc(struct nft_array * array,u32 max_intervals) nft_array_intervals_alloc() argument 561 struct nft_array *array; nft_array_alloc() local 605 struct nft_array *array; nft_array_may_resize() local 983 __nft_array_free(struct nft_array * array) __nft_array_free() argument 994 struct nft_array *array; nft_rbtree_destroy() local 1035 struct nft_array *array = container_of(rcu_head, struct nft_array, rcu_head); nft_array_free_rcu() local [all...] |
| /linux/fs/dlm/ |
| H A D | member.c | 48 /* ls_slots array is sparse, but not rcom_slots */ in dlm_slots_copy_out() 63 struct rcom_slot *ro0, struct dlm_slot *array, in log_slots() argument 73 if (array) { in log_slots() 75 if (!array[i].nodeid) in log_slots() 79 array[i].slot, array[i].nodeid); in log_slots() 164 struct dlm_slot *array; in dlm_slots_assign() local 214 array = kzalloc_objs(*array, array_size, GFP_NOFS); in dlm_slots_assign() 215 if (!array) in dlm_slots_assign() 408 int i, w, x = 0, total = 0, all_zero = 0, *array; make_member_array() local [all...] |
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | calib.h | 36 #define STATIC_INI_ARRAY(array) { \ argument 37 .ia_array = (u32 *)(array), \ 38 .ia_rows = ARRAY_SIZE(array), \ 39 .ia_columns = ARRAY_SIZE(array[0]), \ 42 #define INIT_INI_ARRAY(iniarray, array) do { \ argument 43 (iniarray)->ia_array = (u32 *)(array); \ 44 (iniarray)->ia_rows = ARRAY_SIZE(array); \ 45 (iniarray)->ia_columns = ARRAY_SIZE(array[0]); \
|
| /linux/sound/soc/intel/avs/ |
| H A D | debugfs.c | 142 u32 *array, num_elems; in probe_points_write() local 146 ret = parse_int_array_user(from, count, (int **)&array); in probe_points_write() 150 num_elems = *array; in probe_points_write() 151 bytes = sizeof(*array) * num_elems; in probe_points_write() 157 desc = (struct avs_probe_point_desc *)&array[1]; in probe_points_write() 164 kfree(array); in probe_points_write() 179 u32 *array, num_elems; in probe_points_disconnect_write() local 183 ret = parse_int_array_user(from, count, (int **)&array); in probe_points_disconnect_write() 187 num_elems = *array; in probe_points_disconnect_write() 188 bytes = sizeof(*array) * num_elems; in probe_points_disconnect_write() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | wq_failures.c | 21 } array SEC(".maps"); 58 val = bpf_map_lookup_elem(&array, &key); in __flag() 83 val = bpf_map_lookup_elem(&array, &key); in __flag() 107 wq = bpf_map_lookup_elem(&array, &key); in test_wrong_wq_pointer() 111 if (bpf_wq_init(wq, &array, 0)) in test_wrong_wq_pointer() 133 wq = bpf_map_lookup_elem(&array, &key); in test_wrong_wq_pointer_offset() 137 if (bpf_wq_init(wq, &array, 0)) in test_wrong_wq_pointer_offset() 158 val = bpf_map_lookup_elem(&array, &key); 164 if (bpf_wq_init(wq, &array, 0) != 0)
|
| /linux/Documentation/core-api/ |
| H A D | assoc_array.rst | 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 can be looked up by means of their index key. 45 11. Objects can be looked up while the array i [all...] |