/Linux-v6.1/drivers/dma-buf/ |
D | dma-fence-array.c | 28 static void dma_fence_array_set_pending_error(struct dma_fence_array *array, in dma_fence_array_set_pending_error() argument 36 cmpxchg(&array->base.error, PENDING_ERROR, error); in dma_fence_array_set_pending_error() 39 static void dma_fence_array_clear_pending_error(struct dma_fence_array *array) in dma_fence_array_clear_pending_error() argument 42 cmpxchg(&array->base.error, PENDING_ERROR, 0); in dma_fence_array_clear_pending_error() 47 struct dma_fence_array *array = container_of(wrk, typeof(*array), work); in irq_dma_fence_array_work() local 49 dma_fence_array_clear_pending_error(array); in irq_dma_fence_array_work() 51 dma_fence_signal(&array->base); in irq_dma_fence_array_work() 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 62 dma_fence_array_set_pending_error(array, f->error); in dma_fence_array_cb_func() [all …]
|
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()
|
D | st-dma-fence-unwrap.c | 48 struct dma_fence_array *array; in mock_array() local 62 array = dma_fence_array_create(num_fences, fences, in mock_array() 65 if (!array) in mock_array() 67 return &array->base; in mock_array() 98 struct dma_fence *f, *chain, *array; in sanitycheck() local 107 array = mock_array(1, f); in sanitycheck() 108 if (!array) in sanitycheck() 111 chain = mock_chain(NULL, array); in sanitycheck() 121 struct dma_fence *fence, *f1, *f2, *array; in unwrap_array() local 139 array = mock_array(2, f1, f2); in unwrap_array() [all …]
|
/Linux-v6.1/drivers/misc/vmw_vmci/ |
D | vmci_handle_array.c | 19 struct vmci_handle_arr *array; in vmci_handle_arr_create() local 28 array = kmalloc(handle_arr_calc_size(capacity), GFP_ATOMIC); in vmci_handle_arr_create() 29 if (!array) in vmci_handle_arr_create() 32 array->capacity = capacity; in vmci_handle_arr_create() 33 array->max_capacity = max_capacity; in vmci_handle_arr_create() 34 array->size = 0; in vmci_handle_arr_create() 36 return array; in vmci_handle_arr_create() 39 void vmci_handle_arr_destroy(struct vmci_handle_arr *array) in vmci_handle_arr_destroy() argument 41 kfree(array); in vmci_handle_arr_destroy() 47 struct vmci_handle_arr *array = *array_ptr; in vmci_handle_arr_append_entry() local [all …]
|
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-v6.1/sound/hda/ |
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-v6.1/kernel/bpf/ |
D | arraymap.c | 22 static void bpf_array_free_percpu(struct bpf_array *array) in bpf_array_free_percpu() argument 26 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_free_percpu() 27 free_percpu(array->pptrs[i]); in bpf_array_free_percpu() 32 static int bpf_array_alloc_percpu(struct bpf_array *array) in bpf_array_alloc_percpu() argument 37 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_alloc_percpu() 38 ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8, in bpf_array_alloc_percpu() 41 bpf_array_free_percpu(array); in bpf_array_alloc_percpu() 44 array->pptrs[i] = ptr; in bpf_array_alloc_percpu() 87 struct bpf_array *array; in array_map_alloc() local 112 array_size = sizeof(*array); in array_map_alloc() [all …]
|
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-v6.1/drivers/staging/r8188eu/hal/ |
D | HalHWImg8188E_BB.c | 6 #define read_next_pair(array, v1, v2, i) \ argument 9 v1 = array[i]; \ 10 v2 = array[i + 1]; \ 181 u32 *array = array_agc_tab_1t_8188e; in ODM_ReadAndConfig_AGC_TAB_1T_8188E() local 201 u32 v1 = array[i]; in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 202 u32 v2 = array[i + 1]; in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 216 if (!CheckCondition(array[i], hex)) { in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 218 read_next_pair(array, v1, v2, i); in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 222 read_next_pair(array, v1, v2, i); in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 225 read_next_pair(array, v1, v2, i); in ODM_ReadAndConfig_AGC_TAB_1T_8188E() [all …]
|
/Linux-v6.1/drivers/infiniband/hw/mthca/ |
D | mthca_allocator.c | 113 void *mthca_array_get(struct mthca_array *array, int index) in mthca_array_get() argument 117 if (array->page_list[p].page) in mthca_array_get() 118 return array->page_list[p].page[index & MTHCA_ARRAY_MASK]; in mthca_array_get() 123 int mthca_array_set(struct mthca_array *array, int index, void *value) in mthca_array_set() argument 128 if (!array->page_list[p].page) in mthca_array_set() 129 array->page_list[p].page = (void **) get_zeroed_page(GFP_ATOMIC); in mthca_array_set() 131 if (!array->page_list[p].page) in mthca_array_set() 134 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value; in mthca_array_set() 135 ++array->page_list[p].used; in mthca_array_set() 140 void mthca_array_clear(struct mthca_array *array, int index) in mthca_array_clear() argument [all …]
|
/Linux-v6.1/drivers/ras/ |
D | cec.c | 95 u64 *array; /* container page */ member 147 u8 decay = DECAY(ca->array[i]); in do_spring_cleaning() 154 ca->array[i] &= ~(DECAY_MASK << COUNT_BITS); in do_spring_cleaning() 155 ca->array[i] |= (decay << COUNT_BITS); in do_spring_cleaning() 194 this_pfn = PFN(ca->array[i]); in __find_elem() 238 memmove((void *)&ca->array[idx], in del_elem() 239 (void *)&ca->array[idx + 1], in del_elem() 251 unsigned int this = FULL_COUNT(ca->array[i]); in del_lru_elem_unlocked() 261 return PFN(ca->array[min_idx]); in del_lru_elem_unlocked() 290 u64 this = PFN(ca->array[i]); in sanity_check() [all …]
|
/Linux-v6.1/fs/nfs/ |
D | pnfs_nfs.c | 130 struct pnfs_commit_array *array; in pnfs_find_commit_array_by_lseg() local 132 list_for_each_entry_rcu(array, &fl_cinfo->commits, cinfo_list) { in pnfs_find_commit_array_by_lseg() 133 if (array->lseg == lseg) in pnfs_find_commit_array_by_lseg() 134 return array; in pnfs_find_commit_array_by_lseg() 144 struct pnfs_commit_array *array; in pnfs_add_commit_array() local 146 array = pnfs_find_commit_array_by_lseg(fl_cinfo, lseg); in pnfs_add_commit_array() 147 if (array) in pnfs_add_commit_array() 148 return array; in pnfs_add_commit_array() 161 struct pnfs_commit_array *array; in pnfs_lookup_commit_array() local 164 array = pnfs_find_commit_array_by_lseg(fl_cinfo, lseg); in pnfs_lookup_commit_array() [all …]
|
/Linux-v6.1/include/linux/ |
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-v6.1/scripts/coccinelle/misc/ |
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-v6.1/arch/s390/tools/ |
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-v6.1/drivers/scsi/isci/ |
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-v6.1/drivers/media/usb/gspca/stv06xx/ |
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-v6.1/tools/perf/util/ |
D | evsel.c | 2216 const __u64 *array = event->sample.array; in perf_evsel__parse_id_sample() local 2220 array += ((event->header.size - in perf_evsel__parse_id_sample() 2224 sample->id = *array; in perf_evsel__parse_id_sample() 2225 array--; in perf_evsel__parse_id_sample() 2229 u.val64 = *array; in perf_evsel__parse_id_sample() 2237 array--; in perf_evsel__parse_id_sample() 2241 sample->stream_id = *array; in perf_evsel__parse_id_sample() 2242 array--; in perf_evsel__parse_id_sample() 2246 sample->id = *array; in perf_evsel__parse_id_sample() 2247 array--; in perf_evsel__parse_id_sample() [all …]
|
D | synthetic-events.c | 1550 __u64 *array, u64 type __maybe_unused) in arch_perf_synthesize_sample_weight() argument 1552 *array = data->weight; in arch_perf_synthesize_sample_weight() 1555 static __u64 *copy_read_group_values(__u64 *array, __u64 read_format, in copy_read_group_values() argument 1563 memcpy(array, v, sz); in copy_read_group_values() 1564 array = (void *)array + sz; in copy_read_group_values() 1566 return array; in copy_read_group_values() 1572 __u64 *array; in perf_event__synthesize_sample() local 1580 array = event->sample.array; in perf_event__synthesize_sample() 1583 *array = sample->id; in perf_event__synthesize_sample() 1584 array++; in perf_event__synthesize_sample() [all …]
|
/Linux-v6.1/tools/lib/perf/Documentation/examples/ |
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-v6.1/drivers/gpio/ |
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-v6.1/Documentation/RCU/ |
D | arrayRCU.rst | 16 array that is separately indexed. It might be tempting to consider use 17 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 array-of-list situations, such as radix trees. 45 located in each array element, and where the array is never resized, 61 function formerly used by the System V IPC code. The array is used 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. 111 The ipc_rcu_putref() function decrements the array's reference count [all …]
|
/Linux-v6.1/tools/perf/arch/powerpc/util/ |
D | event.c | 14 const __u64 *array, u64 type) in arch_perf_parse_sample_weight() argument 18 weight.full = *array; in arch_perf_parse_sample_weight() 29 __u64 *array, u64 type) in arch_perf_synthesize_sample_weight() argument 31 *array = data->weight; in arch_perf_synthesize_sample_weight() 34 *array &= 0xffffffff; in arch_perf_synthesize_sample_weight() 35 *array |= ((u64)data->ins_lat << 32); in arch_perf_synthesize_sample_weight()
|
/Linux-v6.1/kernel/trace/ |
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-v6.1/drivers/net/wireless/ath/ath9k/ |
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]); \
|