Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 2406) sorted by relevance

12345678910>>...97

/drivers/clk/rockchip/
Dclk.c413 struct rockchip_pll_clock *list, in rockchip_clk_register_plls() argument
419 for (idx = 0; idx < nr_pll; idx++, list++) { in rockchip_clk_register_plls()
420 clk = rockchip_clk_register_pll(ctx, list->type, list->name, in rockchip_clk_register_plls()
421 list->parent_names, list->num_parents, in rockchip_clk_register_plls()
422 list->con_offset, grf_lock_offset, in rockchip_clk_register_plls()
423 list->lock_shift, list->mode_offset, in rockchip_clk_register_plls()
424 list->mode_shift, list->rate_table, in rockchip_clk_register_plls()
425 list->flags, list->pll_flags); in rockchip_clk_register_plls()
428 list->name); in rockchip_clk_register_plls()
432 rockchip_clk_add_lookup(ctx, clk, list->id); in rockchip_clk_register_plls()
[all …]
/drivers/clk/samsung/
Dclk.c97 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/
Dclk-cgu.c26 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/
Dutil.c7 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/
Dhidraw.c41 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 …]
/drivers/hid/usbhid/
Dhiddev.c62 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/gpu/drm/amd/amdgpu/
Damdgpu_bo_list.c41 struct amdgpu_bo_list *list = container_of(rcu, struct amdgpu_bo_list, in amdgpu_bo_list_free_rcu() local
43 mutex_destroy(&list->bo_list_mutex); in amdgpu_bo_list_free_rcu()
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()
[all …]
Damdgpu_bo_list.h61 void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list,
63 void amdgpu_bo_list_put(struct amdgpu_bo_list *list);
71 struct amdgpu_bo_list **list);
74 amdgpu_bo_list_array_entry(struct amdgpu_bo_list *list, unsigned index) in amdgpu_bo_list_array_entry() argument
76 struct amdgpu_bo_list_entry *array = (void *)&list[1]; in amdgpu_bo_list_array_entry()
81 #define amdgpu_bo_list_for_each_entry(e, list) \ argument
82 for (e = amdgpu_bo_list_array_entry(list, 0); \
83 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \
86 #define amdgpu_bo_list_for_each_userptr_entry(e, list) \ argument
87 for (e = amdgpu_bo_list_array_entry(list, (list)->first_userptr); \
[all …]
/drivers/hid/intel-ish-hid/ishtp/
Dclient-buffers.c37 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 …]
Dclient.c49 list_for_each_entry_safe(rb, next, &cl->dev->read_list.list, list) in ishtp_read_list_flush()
51 list_del(&rb->list); in ishtp_read_list_flush()
97 INIT_LIST_HEAD(&cl->free_rb_list.list); in ishtp_cl_init()
98 INIT_LIST_HEAD(&cl->tx_list.list); in ishtp_cl_init()
99 INIT_LIST_HEAD(&cl->tx_free_list.list); in ishtp_cl_init()
100 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/
Dphy.c19 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/
Dcompat.c33 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/acpi/acpica/
Ddbstats.c27 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/gpu/drm/amd/pm/powerplay/hwmgr/
Dpp_overdriver.c1268 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/media/pci/cx18/
Dcx18-queue.c29 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/net/ethernet/intel/ice/
Dice_tc_lib.c171 struct ice_adv_lkup_elem *list) in ice_tc_fill_tunnel_outer() argument
179 list[i].type = ice_proto_type_from_tunnel(fltr->tunnel_type); in ice_tc_fill_tunnel_outer()
184 list[i].h_u.tnl_hdr.vni = cpu_to_be32(tenant_id); in ice_tc_fill_tunnel_outer()
185 memcpy(&list[i].m_u.tnl_hdr.vni, "\xff\xff\xff\x00", 4); in ice_tc_fill_tunnel_outer()
189 list[i].h_u.nvgre_hdr.tni_flow = fltr->tenant_id; in ice_tc_fill_tunnel_outer()
190 memcpy(&list[i].m_u.nvgre_hdr.tni_flow, in ice_tc_fill_tunnel_outer()
196 list[i].h_u.gtp_hdr.teid = fltr->tenant_id; in ice_tc_fill_tunnel_outer()
197 memcpy(&list[i].m_u.gtp_hdr.teid, in ice_tc_fill_tunnel_outer()
207 list[i].type = ice_proto_type_from_mac(false); in ice_tc_fill_tunnel_outer()
208 ether_addr_copy(list[i].h_u.eth_hdr.dst_addr, in ice_tc_fill_tunnel_outer()
[all …]
/drivers/isdn/mISDN/
Ddsp_pipeline.c23 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/dma-buf/
Ddma-resv.c70 static void dma_resv_list_entry(struct dma_resv_list *list, unsigned int index, in dma_resv_list_entry() argument
76 tmp = (long)rcu_dereference_check(list->table[index], in dma_resv_list_entry()
84 static void dma_resv_list_set(struct dma_resv_list *list, in dma_resv_list_set() argument
91 RCU_INIT_POINTER(list->table[index], (struct dma_fence *)tmp); in dma_resv_list_set()
100 struct dma_resv_list *list; in dma_resv_list_alloc() local
102 list = kmalloc(struct_size(list, table, max_fences), GFP_KERNEL); in dma_resv_list_alloc()
103 if (!list) in dma_resv_list_alloc()
106 list->max_fences = (ksize(list) - offsetof(typeof(*list), table)) / in dma_resv_list_alloc()
107 sizeof(*list->table); in dma_resv_list_alloc()
109 return list; in dma_resv_list_alloc()
[all …]
/drivers/gpu/host1x/
Dbus.c30 struct list_head list; member
51 INIT_LIST_HEAD(&subdev->list); in host1x_subdev_add()
55 list_add_tail(&subdev->list, &device->subdevs); in host1x_subdev_add()
80 list_del(&subdev->list); in host1x_subdev_del()
123 list_move_tail(&client->list, &device->clients); in host1x_subdev_register()
124 list_move_tail(&subdev->list, &device->active); in host1x_subdev_register()
162 list_move_tail(&subdev->list, &device->subdevs); in __host1x_subdev_unregister()
171 list_del_init(&client->list); in __host1x_subdev_unregister()
200 list_for_each_entry(client, &device->clients, list) { in host1x_device_init()
211 list_for_each_entry(client, &device->clients, list) { in host1x_device_init()
[all …]
/drivers/crypto/qat/qat_common/
Dadf_cfg.c23 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()
138 list_entry(list_ptr, struct adf_cfg_key_val, list); in adf_cfg_keyval_remove()
155 list_entry(list_ptr, struct adf_cfg_key_val, list); in adf_cfg_keyval_del_all()
164 struct list_head *list, *tmp; in adf_cfg_section_del_all() local
166 list_for_each_prev_safe(list, tmp, head) { in adf_cfg_section_del_all()
167 ptr = list_entry(list, struct adf_cfg_section, list); in adf_cfg_section_del_all()
[all …]
Dadf_dev_mgr.c19 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/media/platform/mediatek/vcodec/vdec/
Dvdec_h264_if.c205 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/
Dttm_execbuf_util.c36 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()
54 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation()
79 struct list_head *list, bool intr, in ttm_eu_reserve_buffers() argument
85 if (list_empty(list)) in ttm_eu_reserve_buffers()
91 list_for_each_entry(entry, list, head) { in ttm_eu_reserve_buffers()
116 ttm_eu_backoff_reservation_reverse(list, entry); in ttm_eu_reserve_buffers()
138 list_add(&entry->head, list); in ttm_eu_reserve_buffers()
[all …]
/drivers/media/platform/ti/vpe/
Dvpdma.c481 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/
Drtl819x_TSProc.c159 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 …]

12345678910>>...97