/linux-6.3-rc2/drivers/dma-buf/ |
A D | dma-fence-array.c | 47 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() 167 if (!array) in dma_fence_array_create() 171 dma_fence_init(&array->base, &dma_fence_array_ops, &array->lock, in dma_fence_array_create() 177 array->fences = fences; in dma_fence_array_create() 195 return array; in dma_fence_array_create() 233 if (!array) in dma_fence_array_first() 236 if (!array->num_fences) in dma_fence_array_first() [all …]
|
A D | dma-fence-unwrap.c | 20 cursor->array = dma_fence_chain_contained(cursor->chain); in __dma_fence_unwrap_array() 22 return dma_fence_array_first(cursor->array); in __dma_fence_unwrap_array() 53 tmp = dma_fence_array_next(cursor->array, cursor->index); in dma_fence_unwrap_next() 68 struct dma_fence *tmp, **array; in __dma_fence_unwrap_merge() local 82 array = kmalloc_array(count, sizeof(*array), GFP_KERNEL); in __dma_fence_unwrap_merge() 83 if (!array) in __dma_fence_unwrap_merge() 135 array[count++] = dma_fence_get(tmp); in __dma_fence_unwrap_merge() 146 tmp = array[0]; in __dma_fence_unwrap_merge() 150 result = dma_fence_array_create(count, array, in __dma_fence_unwrap_merge() 160 kfree(array); in __dma_fence_unwrap_merge()
|
A D | st-dma-fence-unwrap.c | 48 struct dma_fence_array *array; in mock_array() local 65 if (!array) in mock_array() 67 return &array->base; in mock_array() 107 array = mock_array(1, f); in sanitycheck() 108 if (!array) in sanitycheck() 111 chain = mock_chain(NULL, array); in sanitycheck() 139 array = mock_array(2, f1, f2); in unwrap_array() 140 if (!array) in unwrap_array() 159 dma_fence_put(array); in unwrap_array() 227 array = mock_array(2, f1, f2); in unwrap_chain_array() [all …]
|
/linux-6.3-rc2/drivers/misc/vmw_vmci/ |
A D | vmci_handle_array.c | 29 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 D | vmci_handle_array.h | 33 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-6.3-rc2/sound/hda/ |
A D | array.c | 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() 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-6.3-rc2/kernel/bpf/ |
A D | arraymap.c | 38 ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8, in bpf_array_alloc_percpu() 140 if (!array) in array_map_alloc() 159 return array->value + (u64)array->elem_size * index; in array_map_elem_ptr() 171 return array->value + (u64)array->elem_size * (index & array->index_mask); in array_map_lookup_elem() 246 return this_cpu_ptr(array->pptrs[index & array->index_mask]); in percpu_array_map_lookup_elem() 280 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_copy() 334 val = this_cpu_ptr(array->pptrs[index & array->index_mask]); in array_map_update_elem() 339 (u64)array->elem_size * (index & array->index_mask); in array_map_update_elem() 378 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_update() 421 void __percpu *pptr = array->pptrs[i & array->index_mask]; in array_map_free() [all …]
|
A D | reuseport_array.c | 58 return rcu_dereference(array->ptrs[index]); in reuseport_array_lookup_elem() 72 if (!rcu_access_pointer(array->ptrs[index])) in reuseport_array_delete_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 158 array = bpf_map_area_alloc(struct_size(array, ptrs, attr->max_entries), numa_node); in reuseport_array_alloc() 159 if (!array) in reuseport_array_alloc() 165 return &array->map; in reuseport_array_alloc() 326 if (index >= array->map.max_entries) { in reuseport_array_get_next_key() [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/mthca/ |
A D | mthca_allocator.c | 117 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 …]
|
/linux-6.3-rc2/drivers/ras/ |
A D | cec.c | 194 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-6.3-rc2/include/linux/ |
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-6.3-rc2/fs/nfs/ |
A D | pnfs_nfs.c | 133 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 D | dir.c | 209 array->size = 0; in nfs_readdir_page_init_array() 226 kfree(array->array[i].name); in nfs_readdir_clear_array() 262 return array->size == 0 ? array->last_cookie : array->array[0].cookie; in nfs_readdir_array_index_cookie() 334 cache_entry = &array->array[array->size]; in nfs_readdir_page_array_append() 343 array->size++; in nfs_readdir_page_array_append() 516 desc->dir_cookie = array->array[index].cookie; in nfs_readdir_search_for_pos() 532 if (array->size && cookie < array->array[0].cookie) in nfs_readdir_array_cookie_in_range() 547 if (array->array[i].cookie == desc->dir_cookie) { in nfs_readdir_search_for_cookie() 1094 ent = &array->array[i]; in nfs_do_filldir() 1105 desc->dir_cookie = array->array[i + 1].cookie; in nfs_do_filldir() [all …]
|
/linux-6.3-rc2/scripts/coccinelle/misc/ |
A D | flexible_array.cocci | 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; 82 T array@p[ [all …]
|
/linux-6.3-rc2/arch/s390/tools/ |
A D | gen_facilities.c | 123 unsigned long long *array; in print_facility_list() local 125 array = calloc(1, 8); in print_facility_list() 126 if (!array) in print_facility_list() 133 array = realloc(array, (dword + 1) * 8); in print_facility_list() 134 if (!array) in print_facility_list() 136 memset(array + high + 1, 0, (dword - high) * 8); in print_facility_list() 139 array[dword] |= 1ULL << bit; in print_facility_list() 143 printf("_AC(0x%016llx,UL)%c", array[i], i < high ? ',' : '\n'); in print_facility_list() 144 free(array); in print_facility_list()
|
/linux-6.3-rc2/drivers/scsi/isci/ |
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-6.3-rc2/drivers/media/usb/gspca/stv06xx/ |
A D | stv06xx_hdcs.c | 66 } 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-6.3-rc2/tools/perf/util/ |
A D | evsel.c | 2391 array = event->sample.array; in evsel__parse_sample() 2493 array = (void *)array + sz; in evsel__parse_sample() 2516 array = (void *)array + sz; in evsel__parse_sample() 2543 array = (void *)array + sizeof(u32); in evsel__parse_sample() 2547 array = (void *)array + data->raw_size; in evsel__parse_sample() 2591 array = (void *)array + sz; in evsel__parse_sample() 2606 array = (void *)array + sz; in evsel__parse_sample() 2622 array = (void *)array + sz; in evsel__parse_sample() 2662 array = (void *)array + sz; in evsel__parse_sample() 2700 array = (void *)array + sz; in evsel__parse_sample() [all …]
|
A D | synthetic-events.c | 1564 array = (void *)array + sz; in copy_read_group_values() 1580 array = event->sample.array; in perf_event__synthesize_sample() 1584 array++; in perf_event__synthesize_sample() 1666 array = (void *)array + sz; in perf_event__synthesize_sample() 1672 array = (void *)array + sizeof(u32); in perf_event__synthesize_sample() 1675 array = (void *)array + sample->raw_size; in perf_event__synthesize_sample() 1683 array = (void *)array + sz; in perf_event__synthesize_sample() 1691 array = (void *)array + sz; in perf_event__synthesize_sample() 1702 array = (void *)array + sz; in perf_event__synthesize_sample() 1727 array = (void *)array + sz; in perf_event__synthesize_sample() [all …]
|
/linux-6.3-rc2/tools/lib/perf/Documentation/examples/ |
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-6.3-rc2/drivers/gpio/ |
A D | gpiolib-legacy.c | 85 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-6.3-rc2/tools/perf/arch/powerpc/util/ |
A D | event.c | 15 const __u64 *array, u64 type) in arch_perf_parse_sample_weight() argument 19 weight.full = *array; in arch_perf_parse_sample_weight() 30 __u64 *array, u64 type) in arch_perf_synthesize_sample_weight() argument 32 *array = data->weight; in arch_perf_synthesize_sample_weight() 35 *array &= 0xffffffff; in arch_perf_synthesize_sample_weight() 36 *array |= ((u64)data->ins_lat << 32); in arch_perf_synthesize_sample_weight()
|
/linux-6.3-rc2/kernel/trace/ |
A D | tracing_map.h | 173 #define TRACING_MAP_ARRAY_ELT(array, idx) \ argument 174 (array->pages[idx >> array->entry_shift] + \ 175 ((idx & array->entry_mask) << array->entry_size_shift)) 177 #define TRACING_MAP_ENTRY(array, idx) \ argument 178 ((struct tracing_map_entry *)TRACING_MAP_ARRAY_ELT(array, idx)) 180 #define TRACING_MAP_ELT(array, idx) \ argument 181 ((struct tracing_map_elt **)TRACING_MAP_ARRAY_ELT(array, idx))
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath9k/ |
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-6.3-rc2/fs/dlm/ |
A D | member.c | 73 if (array) { in log_slots() 75 if (!array[i].nodeid) in log_slots() 79 array[i].slot, array[i].nodeid); in log_slots() 214 array = kcalloc(array_size, sizeof(*array), GFP_NOFS); in dlm_slots_assign() 215 if (!array) in dlm_slots_assign() 228 kfree(array); in dlm_slots_assign() 260 kfree(array); in dlm_slots_assign() 275 kfree(array); in dlm_slots_assign() 280 *slots_out = array; in dlm_slots_assign() 410 array = kmalloc_array(total, sizeof(*array), GFP_NOFS); in make_member_array() [all …]
|