/drivers/clk/rockchip/ |
D | clk.c | 417 struct rockchip_pll_clock *list, in rockchip_clk_register_plls() argument 423 for (idx = 0; idx < nr_pll; idx++, list++) { in rockchip_clk_register_plls() 424 clk = rockchip_clk_register_pll(ctx, list->type, list->name, in rockchip_clk_register_plls() 425 list->parent_names, list->num_parents, in rockchip_clk_register_plls() 426 list->con_offset, grf_lock_offset, in rockchip_clk_register_plls() 427 list->lock_shift, list->mode_offset, in rockchip_clk_register_plls() 428 list->mode_shift, list->rate_table, in rockchip_clk_register_plls() 429 list->flags, list->pll_flags); in rockchip_clk_register_plls() 432 list->name); in rockchip_clk_register_plls() 436 rockchip_clk_add_lookup(ctx, clk, list->id); in rockchip_clk_register_plls() [all …]
|
/drivers/clk/samsung/ |
D | clk.c | 97 const struct samsung_clock_alias *list, in samsung_clk_register_alias() argument 103 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_alias() 104 if (!list->id) { in samsung_clk_register_alias() 110 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias() 113 list->id); in samsung_clk_register_alias() 117 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias() 118 list->dev_name); in samsung_clk_register_alias() 121 __func__, list->alias); in samsung_clk_register_alias() 127 const struct samsung_fixed_rate_clock *list, in samsung_clk_register_fixed_rate() argument 133 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_rate() [all …]
|
/drivers/clk/x86/ |
D | clk-cgu.c | 26 const struct lgm_clk_branch *list) in lgm_clk_register_fixed() argument 29 if (list->div_flags & CLOCK_FLAG_VAL_INIT) in lgm_clk_register_fixed() 30 lgm_set_clk_val(ctx->membase, list->div_off, list->div_shift, in lgm_clk_register_fixed() 31 list->div_width, list->div_val); in lgm_clk_register_fixed() 33 return clk_hw_register_fixed_rate(NULL, list->name, in lgm_clk_register_fixed() 34 list->parent_data[0].name, in lgm_clk_register_fixed() 35 list->flags, list->mux_flags); in lgm_clk_register_fixed() 82 const struct lgm_clk_branch *list) in lgm_clk_register_mux() argument 84 unsigned long cflags = list->mux_flags; in lgm_clk_register_mux() 86 u8 shift = list->mux_shift; in lgm_clk_register_mux() [all …]
|
/drivers/net/wireless/quantenna/qtnfmac/ |
D | util.c | 7 void qtnf_sta_list_init(struct qtnf_sta_list *list) in qtnf_sta_list_init() argument 9 if (unlikely(!list)) in qtnf_sta_list_init() 12 INIT_LIST_HEAD(&list->head); in qtnf_sta_list_init() 13 atomic_set(&list->size, 0); in qtnf_sta_list_init() 16 struct qtnf_sta_node *qtnf_sta_list_lookup(struct qtnf_sta_list *list, in qtnf_sta_list_lookup() argument 24 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup() 32 struct qtnf_sta_node *qtnf_sta_list_lookup_index(struct qtnf_sta_list *list, in qtnf_sta_list_lookup_index() argument 37 if (qtnf_sta_list_size(list) <= index) in qtnf_sta_list_lookup_index() 40 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup_index() 51 struct qtnf_sta_list *list = &vif->sta_list; in qtnf_sta_list_add() local [all …]
|
/drivers/hid/usbhid/ |
D | hiddev.c | 62 struct list_head *list; in hiddev_lookup_report() local 79 list = report_enum->report_list.next; in hiddev_lookup_report() 80 report = list_entry(list, struct hid_report, list); in hiddev_lookup_report() 89 list = report->list.next; in hiddev_lookup_report() 90 if (list == &report_enum->report_list) in hiddev_lookup_report() 93 report = list_entry(list, struct hid_report, list); in hiddev_lookup_report() 123 list_for_each_entry(report, &report_enum->report_list, list) { in hiddev_lookup_usage() 144 struct hiddev_list *list; in hiddev_send_event() local 148 list_for_each_entry(list, &hiddev->list, node) { in hiddev_send_event() 150 (list->flags & HIDDEV_FLAG_REPORT) != 0) { in hiddev_send_event() [all …]
|
/drivers/hid/ |
D | hidraw.c | 41 struct hidraw_list *list = file->private_data; in hidraw_read() local 45 mutex_lock(&list->read_mutex); in hidraw_read() 48 if (list->head == list->tail) { in hidraw_read() 49 add_wait_queue(&list->hidraw->wait, &wait); in hidraw_read() 52 while (list->head == list->tail) { in hidraw_read() 57 if (!list->hidraw->exist) { in hidraw_read() 67 mutex_unlock(&list->read_mutex); in hidraw_read() 69 mutex_lock(&list->read_mutex); in hidraw_read() 74 remove_wait_queue(&list->hidraw->wait, &wait); in hidraw_read() 80 len = list->buffer[list->tail].len > count ? in hidraw_read() [all …]
|
D | hid-debug.c | 624 struct list_head *list; in hid_dump_device() local 630 list = report_enum->report_list.next; in hid_dump_device() 631 while (list != &report_enum->report_list) { in hid_dump_device() 632 report = (struct hid_report *) list; in hid_dump_device() 644 list = list->next; in hid_dump_device() 653 struct hid_debug_list *list; in hid_debug_event() local 657 list_for_each_entry(list, &hdev->debug_list, node) in hid_debug_event() 658 kfifo_in(&list->hid_debug_fifo, buf, strlen(buf)); in hid_debug_event() 1023 list_for_each_entry(report, &hid->report_enum[k].report_list, list) { in hid_dump_input_mapping() 1071 struct hid_debug_list *list; in hid_debug_events_open() local [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_bo_list.c | 41 struct amdgpu_bo_list *list = container_of(rcu, struct amdgpu_bo_list, in amdgpu_bo_list_free_rcu() local 44 kvfree(list); in amdgpu_bo_list_free_rcu() 49 struct amdgpu_bo_list *list = container_of(ref, struct amdgpu_bo_list, in amdgpu_bo_list_free() local 53 amdgpu_bo_list_for_each_entry(e, list) { in amdgpu_bo_list_free() 59 call_rcu(&list->rhead, amdgpu_bo_list_free_rcu); in amdgpu_bo_list_free() 68 struct amdgpu_bo_list *list; in amdgpu_bo_list_create() local 80 list = kvmalloc(size, GFP_KERNEL); in amdgpu_bo_list_create() 81 if (!list) in amdgpu_bo_list_create() 84 kref_init(&list->refcount); in amdgpu_bo_list_create() 85 list->gds_obj = NULL; in amdgpu_bo_list_create() [all …]
|
D | amdgpu_bo_list.h | 54 void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list, 56 void amdgpu_bo_list_put(struct amdgpu_bo_list *list); 64 struct amdgpu_bo_list **list); 67 amdgpu_bo_list_array_entry(struct amdgpu_bo_list *list, unsigned index) in amdgpu_bo_list_array_entry() argument 69 struct amdgpu_bo_list_entry *array = (void *)&list[1]; in amdgpu_bo_list_array_entry() 74 #define amdgpu_bo_list_for_each_entry(e, list) \ argument 75 for (e = amdgpu_bo_list_array_entry(list, 0); \ 76 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \ 79 #define amdgpu_bo_list_for_each_userptr_entry(e, list) \ argument 80 for (e = amdgpu_bo_list_array_entry(list, (list)->first_userptr); \ [all …]
|
/drivers/hid/intel-ish-hid/ishtp/ |
D | client-buffers.c | 37 list_add_tail(&rb->list, &cl->free_rb_list.list); in ishtp_cl_alloc_rx_ring() 80 list_add_tail(&tx_buf->list, &cl->tx_free_list.list); in ishtp_cl_alloc_tx_ring() 104 while (!list_empty(&cl->free_rb_list.list)) { in ishtp_cl_free_rx_ring() 105 rb = list_entry(cl->free_rb_list.list.next, struct ishtp_cl_rb, in ishtp_cl_free_rx_ring() 106 list); in ishtp_cl_free_rx_ring() 107 list_del(&rb->list); in ishtp_cl_free_rx_ring() 114 while (!list_empty(&cl->in_process_list.list)) { in ishtp_cl_free_rx_ring() 115 rb = list_entry(cl->in_process_list.list.next, in ishtp_cl_free_rx_ring() 116 struct ishtp_cl_rb, list); in ishtp_cl_free_rx_ring() 117 list_del(&rb->list); in ishtp_cl_free_rx_ring() [all …]
|
D | client.c | 48 list_for_each_entry_safe(rb, next, &cl->dev->read_list.list, list) in ishtp_read_list_flush() 50 list_del(&rb->list); in ishtp_read_list_flush() 96 INIT_LIST_HEAD(&cl->free_rb_list.list); in ishtp_cl_init() 97 INIT_LIST_HEAD(&cl->tx_list.list); in ishtp_cl_init() 98 INIT_LIST_HEAD(&cl->tx_free_list.list); in ishtp_cl_init() 99 INIT_LIST_HEAD(&cl->in_process_list.list); in ishtp_cl_init() 473 if (list_empty(&cl->free_rb_list.list)) { in ishtp_cl_read_start() 481 rb = list_entry(cl->free_rb_list.list.next, struct ishtp_cl_rb, list); in ishtp_cl_read_start() 482 list_del_init(&rb->list); in ishtp_cl_read_start() 488 INIT_LIST_HEAD(&rb->list); in ishtp_cl_read_start() [all …]
|
/drivers/usb/core/ |
D | phy.c | 19 struct list_head list; member 23 struct list_head *list) in usb_phy_roothub_add_phy() argument 40 INIT_LIST_HEAD(&roothub_entry->list); in usb_phy_roothub_add_phy() 44 list_add_tail(&roothub_entry->list, list); in usb_phy_roothub_add_phy() 66 INIT_LIST_HEAD(&phy_roothub->list); in usb_phy_roothub_alloc() 69 err = usb_phy_roothub_add_phy(dev, i, &phy_roothub->list); in usb_phy_roothub_alloc() 87 head = &phy_roothub->list; in usb_phy_roothub_init() 89 list_for_each_entry(roothub_entry, head, list) { in usb_phy_roothub_init() 98 list_for_each_entry_continue_reverse(roothub_entry, head, list) in usb_phy_roothub_init() 114 head = &phy_roothub->list; in usb_phy_roothub_exit() [all …]
|
/drivers/pnp/isapnp/ |
D | compat.c | 33 struct list_head *list; in pnp_find_dev() local 35 list = pnp_global.next; in pnp_find_dev() 37 list = from->global_list.next; in pnp_find_dev() 39 while (list != &pnp_global) { in pnp_find_dev() 40 struct pnp_dev *dev = global_to_pnp_dev(list); in pnp_find_dev() 45 list = list->next; in pnp_find_dev() 48 struct list_head *list; in pnp_find_dev() local 50 list = card->devices.next; in pnp_find_dev() 52 list = from->card_list.next; in pnp_find_dev() 56 while (list != &card->devices) { in pnp_find_dev() [all …]
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | pp_overdriver.c | 1268 const struct phm_fuses_default *list = vega10_fuses_default; in pp_override_get_default_fuse_value() local 1271 for (i = 0; list[i].key != 0; i++) { in pp_override_get_default_fuse_value() 1272 if (key == list[i].key) { in pp_override_get_default_fuse_value() 1273 result->key = list[i].key; in pp_override_get_default_fuse_value() 1274 result->VFT2_m1 = list[i].VFT2_m1; in pp_override_get_default_fuse_value() 1275 result->VFT2_m2 = list[i].VFT2_m2; in pp_override_get_default_fuse_value() 1276 result->VFT2_b = list[i].VFT2_b; in pp_override_get_default_fuse_value() 1277 result->VFT1_m1 = list[i].VFT1_m1; in pp_override_get_default_fuse_value() 1278 result->VFT1_m2 = list[i].VFT1_m2; in pp_override_get_default_fuse_value() 1279 result->VFT1_b = list[i].VFT1_b; in pp_override_get_default_fuse_value() [all …]
|
/drivers/acpi/acpica/ |
D | dbstats.c | 27 static void acpi_db_list_info(struct acpi_memory_list *list); 65 static void acpi_db_list_info(struct acpi_memory_list *list) in acpi_db_list_info() argument 71 acpi_os_printf("\n%s\n", list->list_name); in acpi_db_list_info() 75 if (list->max_depth > 0) { in acpi_db_list_info() 78 "%8.2X %8.2X %8.2X %8.2X\n", list->current_depth, in acpi_db_list_info() 79 list->max_depth, list->max_depth - list->current_depth, in acpi_db_list_info() 80 (list->current_depth * list->object_size)); in acpi_db_list_info() 83 if (list->max_depth > 0) { in acpi_db_list_info() 86 "%8.2X %8.2X %8.2X %8.2X\n", list->requests, list->hits, in acpi_db_list_info() 87 list->requests - list->hits, list->object_size); in acpi_db_list_info() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-queue.c | 29 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_swap() 38 INIT_LIST_HEAD(&q->list); in cx18_queue_init() 63 list_add(&mdl->list, &q->list); /* LIFO */ in _cx18_enqueue() 65 list_add_tail(&mdl->list, &q->list); /* FIFO */ in _cx18_enqueue() 78 if (!list_empty(&q->list)) { in cx18_dequeue() 79 mdl = list_first_entry(&q->list, struct cx18_mdl, list); in cx18_dequeue() 80 list_del_init(&mdl->list); in cx18_dequeue() 96 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_update_bufs_for_cpu() 116 list); in cx18_mdl_update_bufs_for_cpu() 141 list_for_each_entry_safe(mdl, tmp, &s->q_busy.list, list) { in cx18_queue_get_mdl() [all …]
|
/drivers/isdn/mISDN/ |
D | dsp_pipeline.c | 23 struct list_head list; member 28 struct list_head list; member 64 list_del(&entry->list); in mISDN_dsp_dev_release() 80 INIT_LIST_HEAD(&entry->list); in mISDN_dsp_element_register() 93 list_add_tail(&entry->list, &dsp_elements); in mISDN_dsp_element_register() 123 list_for_each_entry_safe(entry, n, &dsp_elements, list) in mISDN_dsp_element_unregister() 151 list_for_each_entry_safe(entry, n, &dsp_elements, list) { in dsp_pipeline_module_exit() 152 list_del(&entry->list); in dsp_pipeline_module_exit() 164 INIT_LIST_HEAD(&pipeline->list); in dsp_pipeline_init() 173 list_for_each_entry_safe(entry, n, &pipeline->list, list) { in _dsp_pipeline_destroy() [all …]
|
/drivers/crypto/qat/qat_common/ |
D | adf_cfg.c | 23 struct list_head *list; in qat_dev_cfg_show() local 25 list_entry(v, struct adf_cfg_section, list); in qat_dev_cfg_show() 28 list_for_each(list, &sec->param_head) { in qat_dev_cfg_show() 30 list_entry(list, struct adf_cfg_key_val, list); in qat_dev_cfg_show() 128 list_add_tail(&new->list, &sec->param_head); in adf_cfg_keyval_add() 137 list_entry(list_ptr, struct adf_cfg_key_val, list); in adf_cfg_keyval_del_all() 146 struct list_head *list, *tmp; in adf_cfg_section_del_all() local 148 list_for_each_prev_safe(list, tmp, head) { in adf_cfg_section_del_all() 149 ptr = list_entry(list, struct adf_cfg_section, list); in adf_cfg_section_del_all() 151 list_del(list); in adf_cfg_section_del_all() [all …]
|
D | adf_dev_mgr.c | 19 struct list_head list; member 40 list_entry(itr, struct vf_id_map, list); in adf_find_vf() 54 list_entry(itr, struct vf_id_map, list); in adf_get_vf_real_id() 75 map = list_entry(ptr, struct vf_id_map, list); in adf_clean_vf_map() 105 list_entry(itr, struct adf_accel_dev, list); in adf_devmgr_update_class_index() 160 list_entry(itr, struct adf_accel_dev, list); in adf_devmgr_add_dev() 168 list_add_tail(&accel_dev->list, &accel_table); in adf_devmgr_add_dev() 184 list_add_tail(&map->list, &vfs_table); in adf_devmgr_add_dev() 194 list_add_tail(&accel_dev->list, &accel_table); in adf_devmgr_add_dev() 197 next = list_next_entry(map, list); in adf_devmgr_add_dev() [all …]
|
/drivers/gpu/host1x/ |
D | bus.c | 29 struct list_head list; member 49 INIT_LIST_HEAD(&subdev->list); in host1x_subdev_add() 53 list_add_tail(&subdev->list, &device->subdevs); in host1x_subdev_add() 78 list_del(&subdev->list); in host1x_subdev_del() 121 list_move_tail(&client->list, &device->clients); in host1x_subdev_register() 122 list_move_tail(&subdev->list, &device->active); in host1x_subdev_register() 160 list_move_tail(&subdev->list, &device->subdevs); in __host1x_subdev_unregister() 169 list_del_init(&client->list); in __host1x_subdev_unregister() 198 list_for_each_entry(client, &device->clients, list) { in host1x_device_init() 215 list_for_each_entry_continue_reverse(client, &device->clients, list) in host1x_device_init() [all …]
|
/drivers/media/platform/mtk-vcodec/vdec/ |
D | vdec_h264_if.c | 205 struct h264_ring_fb_list *list; in check_list_validity() local 207 list = disp_list ? &inst->vsi->list_disp : &inst->vsi->list_free; in check_list_validity() 209 if (list->count > H264_MAX_FB_NUM || in check_list_validity() 210 list->read_idx >= H264_MAX_FB_NUM || in check_list_validity() 211 list->write_idx >= H264_MAX_FB_NUM) { in check_list_validity() 213 disp_list ? "disp" : "free", list->count, in check_list_validity() 214 list->read_idx, list->write_idx); in check_list_validity() 223 struct h264_ring_fb_list *list; in put_fb_to_free() local 229 list = &inst->vsi->list_free; in put_fb_to_free() 230 if (list->count == H264_MAX_FB_NUM) { in put_fb_to_free() [all …]
|
/drivers/gpu/drm/ttm/ |
D | ttm_execbuf_util.c | 36 static void ttm_eu_backoff_reservation_reverse(struct list_head *list, in ttm_eu_backoff_reservation_reverse() argument 39 list_for_each_entry_continue_reverse(entry, list, head) { in ttm_eu_backoff_reservation_reverse() 47 struct list_head *list) in ttm_eu_backoff_reservation() argument 51 if (list_empty(list)) in ttm_eu_backoff_reservation() 55 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation() 81 struct list_head *list, bool intr, in ttm_eu_reserve_buffers() argument 87 if (list_empty(list)) in ttm_eu_reserve_buffers() 93 list_for_each_entry(entry, list, head) { in ttm_eu_reserve_buffers() 119 ttm_eu_backoff_reservation_reverse(list, entry); in ttm_eu_reserve_buffers() 141 list_add(&entry->head, list); in ttm_eu_reserve_buffers() [all …]
|
/drivers/media/platform/ti-vpe/ |
D | vpdma.c | 481 int vpdma_create_desc_list(struct vpdma_desc_list *list, size_t size, int type) in vpdma_create_desc_list() argument 485 r = vpdma_alloc_desc_buf(&list->buf, size); in vpdma_create_desc_list() 489 list->next = list->buf.addr; in vpdma_create_desc_list() 491 list->type = type; in vpdma_create_desc_list() 501 void vpdma_reset_desc_list(struct vpdma_desc_list *list) in vpdma_reset_desc_list() argument 503 list->next = list->buf.addr; in vpdma_reset_desc_list() 511 void vpdma_free_desc_list(struct vpdma_desc_list *list) in vpdma_free_desc_list() argument 513 vpdma_free_desc_buf(&list->buf); in vpdma_free_desc_list() 515 list->next = NULL; in vpdma_free_desc_list() 529 struct vpdma_desc_list *list, int list_num) in vpdma_submit_descs() argument [all …]
|
/drivers/staging/rtl8192u/ieee80211/ |
D | rtl819x_TSProc.c | 159 list_add_tail(&pTxTS->ts_common_info.list, &ieee->Tx_TS_Unused_List); in TSInitialize() 178 list_add_tail(&pRxTS->ts_common_info.list, &ieee->Rx_TS_Unused_List); in TSInitialize() 246 list_for_each_entry(pRet, psearch_list, list) { in SearchAdmitTRStream() 255 if (&pRet->list != psearch_list) in SearchAdmitTRStream() 259 if (&pRet->list != psearch_list) in SearchAdmitTRStream() 372 (*ppTS) = list_entry(pUnusedList->next, struct ts_common_info, list); in GetTs() 373 list_del_init(&(*ppTS)->list); in GetTs() 396 list_add_tail(&((*ppTS)->list), pAddmitList); in GetTs() 456 list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Pending_List, list) { in RemovePeerTS() 459 list_del_init(&pTS->list); in RemovePeerTS() [all …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_fltr.c | 33 struct list_head *list) in ice_fltr_add_entry_to_list() argument 44 list_add(&entry->list_entry, list); in ice_fltr_add_entry_to_list() 55 ice_fltr_add_mac_list(struct ice_vsi *vsi, struct list_head *list) in ice_fltr_add_mac_list() argument 57 return ice_add_mac(&vsi->back->hw, list); in ice_fltr_add_mac_list() 66 ice_fltr_remove_mac_list(struct ice_vsi *vsi, struct list_head *list) in ice_fltr_remove_mac_list() argument 68 return ice_remove_mac(&vsi->back->hw, list); in ice_fltr_remove_mac_list() 77 ice_fltr_add_vlan_list(struct ice_vsi *vsi, struct list_head *list) in ice_fltr_add_vlan_list() argument 79 return ice_add_vlan(&vsi->back->hw, list); in ice_fltr_add_vlan_list() 88 ice_fltr_remove_vlan_list(struct ice_vsi *vsi, struct list_head *list) in ice_fltr_remove_vlan_list() argument 90 return ice_remove_vlan(&vsi->back->hw, list); in ice_fltr_remove_vlan_list() [all …]
|