/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 | 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 …]
|
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 95 array = kmalloc_array(count, sizeof(*array), GFP_KERNEL); in __dma_fence_unwrap_merge() 96 if (!array) in __dma_fence_unwrap_merge() 148 array[count++] = dma_fence_get(tmp); in __dma_fence_unwrap_merge() 159 tmp = array[0]; in __dma_fence_unwrap_merge() 163 result = dma_fence_array_create(count, array, in __dma_fence_unwrap_merge() 173 kfree(array); in __dma_fence_unwrap_merge()
|
/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()
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
D | unsolicited_frame_control.h | 172 struct scu_unsolicited_frame_header *array; member 195 struct sci_unsolicited_frame array[SCU_MAX_UNSOLICITED_FRAMES]; member 217 u64 *array; member
|
/drivers/gpio/ |
D | gpiolib-legacy.c | 73 int gpio_request_array(const struct gpio *array, size_t num) in gpio_request_array() argument 77 for (i = 0; i < num; i++, array++) { in gpio_request_array() 78 err = gpio_request_one(array->gpio, array->flags, array->label); in gpio_request_array() 86 gpio_free((--array)->gpio); in gpio_request_array() 96 void gpio_free_array(const struct gpio *array, size_t num) in gpio_free_array() argument 99 gpio_free((array++)->gpio); in gpio_free_array()
|
/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]); \
|
/drivers/target/iscsi/ |
D | iscsi_target_seq_pdu_list.c | 94 static void iscsit_create_random_array(u32 *array, u32 count) in iscsit_create_random_array() argument 99 array[0] = 0; in iscsit_create_random_array() 109 if ((array[k] & 0x80000000) && (array[k] == j)) in iscsit_create_random_array() 112 array[i] = j; in iscsit_create_random_array() 116 array[i] &= ~0x80000000; in iscsit_create_random_array() 124 u32 *array, pdu_count, seq_count = 0, seq_no = 0, seq_offset = 0; in iscsit_randomize_pdu_lists() local 132 array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL); in iscsit_randomize_pdu_lists() 133 if (!array) { in iscsit_randomize_pdu_lists() 138 iscsit_create_random_array(array, seq_count); in iscsit_randomize_pdu_lists() 141 cmd->pdu_list[seq_offset+i].pdu_send_order = array[i]; in iscsit_randomize_pdu_lists() [all …]
|
/drivers/md/bcache/ |
D | util.h | 252 #define array_alloc(array) \ argument 254 typeof((array)->freelist) _ret = (array)->freelist; \ 257 (array)->freelist = *((typeof((array)->freelist) *) _ret);\ 262 #define array_free(array, ptr) \ argument 264 typeof((array)->freelist) _ptr = ptr; \ 266 *((typeof((array)->freelist) *) _ptr) = (array)->freelist; \ 267 (array)->freelist = _ptr; \ 270 #define array_allocator_init(array) \ argument 272 typeof((array)->freelist) _i; \ 274 BUILD_BUG_ON(sizeof((array)->data[0]) < sizeof(void *)); \ [all …]
|
/drivers/video/fbdev/ |
D | ssd1307fb.c | 116 struct ssd1307fb_array *array; in ssd1307fb_alloc_array() local 118 array = kzalloc(sizeof(struct ssd1307fb_array) + len, GFP_KERNEL); in ssd1307fb_alloc_array() 119 if (!array) in ssd1307fb_alloc_array() 122 array->type = type; in ssd1307fb_alloc_array() 124 return array; in ssd1307fb_alloc_array() 128 struct ssd1307fb_array *array, u32 len) in ssd1307fb_write_array() argument 134 ret = i2c_master_send(client, (u8 *)array, len); in ssd1307fb_write_array() 145 struct ssd1307fb_array *array; in ssd1307fb_write_cmd() local 148 array = ssd1307fb_alloc_array(1, SSD1307FB_COMMAND); in ssd1307fb_write_cmd() 149 if (!array) in ssd1307fb_write_cmd() [all …]
|
/drivers/platform/x86/intel/ |
D | hid.c | 182 struct input_dev *array; member 348 if (!priv->array) in intel_button_array_enable() 437 priv->array = devm_input_allocate_device(&device->dev); in intel_button_array_input_setup() 438 if (!priv->array) in intel_button_array_input_setup() 441 ret = sparse_keymap_setup(priv->array, intel_array_keymap, NULL); in intel_button_array_input_setup() 445 priv->array->name = "Intel HID 5 button array"; in intel_button_array_input_setup() 446 priv->array->id.bustype = BUS_HOST; in intel_button_array_input_setup() 448 return input_register_device(priv->array); in intel_button_array_input_setup() 545 if (event == 0xc0 || !priv->array) in notify_handler() 548 if (!sparse_keymap_entry_from_scancode(priv->array, event)) { in notify_handler() [all …]
|
/drivers/soc/qcom/ |
D | qcom_gsbi.c | 25 const u32 (*array)[MAX_GSBI]; member 43 .array = crci_ipq8064, 61 .array = crci_apq8064, 79 .array = crci_msm8960, 107 .array = crci_msm8660, 195 mask = config->array[i][gsbi_num - 1]; in gsbi_probe()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_bo_list.c | 75 struct amdgpu_bo_list_entry *array; in amdgpu_bo_list_create() local 97 array = amdgpu_bo_list_array_entry(list, 0); in amdgpu_bo_list_create() 98 memset(array, 0, num_entries * sizeof(struct amdgpu_bo_list_entry)); in amdgpu_bo_list_create() 122 entry = &array[--first_userptr]; in amdgpu_bo_list_create() 124 entry = &array[last_entry++]; in amdgpu_bo_list_create() 144 sort(array, last_entry, sizeof(struct amdgpu_bo_list_entry), in amdgpu_bo_list_create() 155 amdgpu_bo_unref(&array[i].bo); in amdgpu_bo_list_create() 157 amdgpu_bo_unref(&array[i].bo); in amdgpu_bo_list_create()
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | msgbuf.c | 289 struct brcmf_msgbuf_pktid *array; member 299 struct brcmf_msgbuf_pktid *array; in brcmf_msgbuf_init_pktids() local 302 array = kcalloc(nr_array_entries, sizeof(*array), GFP_KERNEL); in brcmf_msgbuf_init_pktids() 303 if (!array) in brcmf_msgbuf_init_pktids() 308 kfree(array); in brcmf_msgbuf_init_pktids() 311 pktids->array = array; in brcmf_msgbuf_init_pktids() 324 struct brcmf_msgbuf_pktid *array; in brcmf_msgbuf_alloc_pktid() local 327 array = pktids->array; in brcmf_msgbuf_alloc_pktid() 344 if (array[*idx].allocated.counter == 0) in brcmf_msgbuf_alloc_pktid() 345 if (atomic_cmpxchg(&array[*idx].allocated, 0, 1) == 0) in brcmf_msgbuf_alloc_pktid() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-fwnode.c | 132 u32 array[1 + V4L2_MBUS_CSI2_MAX_DATA_LANES]; in v4l2_fwnode_endpoint_parse_csi2_bus() local 152 array[i] = bus->data_lanes[i]; in v4l2_fwnode_endpoint_parse_csi2_bus() 153 if (array[i]) in v4l2_fwnode_endpoint_parse_csi2_bus() 166 fwnode_property_read_u32_array(fwnode, "data-lanes", array, in v4l2_fwnode_endpoint_parse_csi2_bus() 177 if (lanes_used & BIT(array[i])) { in v4l2_fwnode_endpoint_parse_csi2_bus() 180 array[i]); in v4l2_fwnode_endpoint_parse_csi2_bus() 183 lanes_used |= BIT(array[i]); in v4l2_fwnode_endpoint_parse_csi2_bus() 186 pr_debug("lane %u position %u\n", i, array[i]); in v4l2_fwnode_endpoint_parse_csi2_bus() 237 bus->data_lanes[i] = array[i]; in v4l2_fwnode_endpoint_parse_csi2_bus() 242 "lane-polarities", array, in v4l2_fwnode_endpoint_parse_csi2_bus() [all …]
|
/drivers/staging/media/atomisp/pci/ |
D | sh_css_firmware.c | 159 bd->mem_offsets.array[IA_CSS_PARAM_CLASS_PARAM].ptr = NULL; in sh_css_load_blob_info() 160 bd->mem_offsets.array[IA_CSS_PARAM_CLASS_CONFIG].ptr = NULL; in sh_css_load_blob_info() 161 bd->mem_offsets.array[IA_CSS_PARAM_CLASS_STATE].ptr = NULL; in sh_css_load_blob_info() 169 bd->mem_offsets.array[IA_CSS_PARAM_CLASS_PARAM].ptr = parambuf; in sh_css_load_blob_info() 175 bd->mem_offsets.array[IA_CSS_PARAM_CLASS_CONFIG].ptr = parambuf + in sh_css_load_blob_info() 182 bd->mem_offsets.array[IA_CSS_PARAM_CLASS_STATE].ptr = parambuf + in sh_css_load_blob_info()
|
/drivers/misc/lkdtm/ |
D | bugs.c | 363 int array[] __counted_by(count); 372 inst = kzalloc(struct_size(inst, array, fam_count + 1), GFP_KERNEL); in lkdtm_FAM_BOUNDS() 380 inst->array[1] = fam_count; in lkdtm_FAM_BOUNDS() 381 ignored = inst->array[1]; in lkdtm_FAM_BOUNDS() 384 inst->array[fam_count] = fam_count; in lkdtm_FAM_BOUNDS() 385 ignored = inst->array[fam_count]; in lkdtm_FAM_BOUNDS()
|
/drivers/gpu/drm/i915/gem/ |
D | i915_gem_busy.c | 62 struct dma_fence_array *array = to_dma_fence_array(fence); in __busy_set_if_active() local 63 struct dma_fence **child = array->fences; in __busy_set_if_active() 64 unsigned int nchild = array->num_fences; in __busy_set_if_active()
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_cq.c | 154 ret = xa_err(xa_store_irq(&cq_table->array, hr_cq->cqn, hr_cq, GFP_KERNEL)); in alloc_cqc() 167 xa_erase_irq(&cq_table->array, hr_cq->cqn); in alloc_cqc() 186 xa_erase_irq(&cq_table->array, hr_cq->cqn); in free_cqc() 454 hr_cq = xa_load(&hr_dev->cq_table.array, in hns_roce_cq_completion() 483 xa_lock(&hr_dev->cq_table.array); in hns_roce_cq_event() 484 hr_cq = xa_load(&hr_dev->cq_table.array, in hns_roce_cq_event() 488 xa_unlock(&hr_dev->cq_table.array); in hns_roce_cq_event() 513 xa_init(&cq_table->array); in hns_roce_init_cq_table()
|
/drivers/media/rc/ |
D | bpf-lirc.c | 236 struct bpf_prog_array *array; in lirc_bpf_free() local 238 array = lirc_rcu_dereference(rcdev->raw->progs); in lirc_bpf_free() 239 if (!array) in lirc_bpf_free() 242 for (item = array->items; item->prog; item++) in lirc_bpf_free() 245 bpf_prog_array_free(array); in lirc_bpf_free()
|