Home
last modified time | relevance | path

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

12345678910>>...61

/drivers/clk/samsung/
Dclk.c97 struct samsung_clock_alias *list, in samsung_clk_register_alias() argument
108 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_alias()
109 if (!list->id) { in samsung_clk_register_alias()
115 clk = ctx->clk_data.clks[list->id]; in samsung_clk_register_alias()
118 list->id); in samsung_clk_register_alias()
122 ret = clk_register_clkdev(clk, list->alias, list->dev_name); in samsung_clk_register_alias()
125 __func__, list->alias); in samsung_clk_register_alias()
131 struct samsung_fixed_rate_clock *list, unsigned int nr_clk) in samsung_clk_register_fixed_rate() argument
136 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_rate()
137 clk = clk_register_fixed_rate(NULL, list->name, in samsung_clk_register_fixed_rate()
[all …]
/drivers/clk/rockchip/
Dclk.c194 void __init rockchip_clk_register_plls(struct rockchip_pll_clock *list, in rockchip_clk_register_plls() argument
200 for (idx = 0; idx < nr_pll; idx++, list++) { in rockchip_clk_register_plls()
201 clk = rockchip_clk_register_pll(list->type, list->name, in rockchip_clk_register_plls()
202 list->parent_names, list->num_parents, in rockchip_clk_register_plls()
203 reg_base, list->con_offset, grf_lock_offset, in rockchip_clk_register_plls()
204 list->lock_shift, list->mode_offset, in rockchip_clk_register_plls()
205 list->mode_shift, list->rate_table, &clk_lock); in rockchip_clk_register_plls()
208 list->name); in rockchip_clk_register_plls()
212 rockchip_clk_add_lookup(clk, list->id); in rockchip_clk_register_plls()
217 struct rockchip_clk_branch *list, in rockchip_clk_register_branches() argument
[all …]
/drivers/hid/usbhid/
Dhiddev.c55 struct list_head list; member
83 struct list_head *list; in hiddev_lookup_report() local
100 list = report_enum->report_list.next; in hiddev_lookup_report()
101 report = list_entry(list, struct hid_report, list); in hiddev_lookup_report()
110 list = report->list.next; in hiddev_lookup_report()
111 if (list == &report_enum->report_list) in hiddev_lookup_report()
114 report = list_entry(list, struct hid_report, list); in hiddev_lookup_report()
144 list_for_each_entry(report, &report_enum->report_list, list) { in hiddev_lookup_usage()
165 struct hiddev_list *list; in hiddev_send_event() local
169 list_for_each_entry(list, &hiddev->list, node) { in hiddev_send_event()
[all …]
/drivers/pnp/isapnp/
Dcompat.c28 struct list_head *list; in pnp_find_card() local
33 list = from ? from->global_list.next : pnp_cards.next; in pnp_find_card()
35 while (list != &pnp_cards) { in pnp_find_card()
36 struct pnp_card *card = global_to_pnp_card(list); in pnp_find_card()
40 list = list->next; in pnp_find_card()
54 struct list_head *list; in pnp_find_dev() local
56 list = pnp_global.next; in pnp_find_dev()
58 list = from->global_list.next; in pnp_find_dev()
60 while (list != &pnp_global) { in pnp_find_dev()
61 struct pnp_dev *dev = global_to_pnp_dev(list); in pnp_find_dev()
[all …]
/drivers/hid/
Dhidraw.c48 struct hidraw_list *list = file->private_data; in hidraw_read() local
52 mutex_lock(&list->read_mutex); in hidraw_read()
55 if (list->head == list->tail) { in hidraw_read()
56 add_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
59 while (list->head == list->tail) { in hidraw_read()
64 if (!list->hidraw->exist) { in hidraw_read()
74 mutex_unlock(&list->read_mutex); in hidraw_read()
76 mutex_lock(&list->read_mutex); in hidraw_read()
81 remove_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
87 len = list->buffer[list->tail].len > count ? in hidraw_read()
[all …]
Dhid-debug.c632 struct list_head *list; in hid_dump_device() local
638 list = report_enum->report_list.next; in hid_dump_device()
639 while (list != &report_enum->report_list) { in hid_dump_device()
640 report = (struct hid_report *) list; in hid_dump_device()
652 list = list->next; in hid_dump_device()
662 struct hid_debug_list *list; in hid_debug_event() local
666 list_for_each_entry(list, &hdev->debug_list, node) { in hid_debug_event()
668 list->hid_debug_buf[(list->tail + i) % HID_DEBUG_BUFSIZE] = in hid_debug_event()
670 list->tail = (list->tail + i) % HID_DEBUG_BUFSIZE; in hid_debug_event()
1032 list_for_each_entry(report, &hid->report_enum[k].report_list, list) { in hid_dump_input_mapping()
[all …]
/drivers/gpu/host1x/
Dbus.c37 struct list_head list; member
52 INIT_LIST_HEAD(&subdev->list); in host1x_subdev_add()
56 list_add_tail(&subdev->list, &device->subdevs); in host1x_subdev_add()
67 list_del(&subdev->list); in host1x_subdev_del()
105 list_move_tail(&client->list, &device->clients); in host1x_subdev_register()
106 list_move_tail(&subdev->list, &device->active); in host1x_subdev_register()
146 list_move_tail(&subdev->list, &device->subdevs); in __host1x_subdev_unregister()
155 list_del_init(&client->list); in __host1x_subdev_unregister()
174 list_for_each_entry(client, &device->clients, list) { in host1x_device_init()
200 list_for_each_entry_reverse(client, &device->clients, list) { in host1x_device_exit()
[all …]
/drivers/mtd/maps/
Dphysmap_of.c37 struct of_flash_list list[0]; member
50 if (info->cmtd != info->list[0].mtd) { in of_flash_remove()
59 if (info->list[i].mtd) in of_flash_remove()
60 map_destroy(info->list[i].mtd); in of_flash_remove()
62 if (info->list[i].map.virt) in of_flash_remove()
63 iounmap(info->list[i].map.virt); in of_flash_remove()
65 if (info->list[i].res) { in of_flash_remove()
66 release_resource(info->list[i].res); in of_flash_remove()
67 kfree(info->list[i].res); in of_flash_remove()
226 info->list[i].res = request_mem_region(res.start, res_size, in of_flash_probe()
[all …]
/drivers/gpu/drm/radeon/
Dmkregtable.c50 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument
52 list->next = list; in INIT_LIST_HEAD()
53 list->prev = list; in INIT_LIST_HEAD()
169 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
171 __list_del(list->prev, list->next); in list_move()
172 list_add(list, head); in list_move()
180 static inline void list_move_tail(struct list_head *list, in list_move_tail() argument
183 __list_del(list->prev, list->next); in list_move_tail()
184 list_add_tail(list, head); in list_move_tail()
192 static inline int list_is_last(const struct list_head *list, in list_is_last() argument
[all …]
/drivers/gpu/drm/ttm/
Dttm_execbuf_util.c35 static void ttm_eu_backoff_reservation_reverse(struct list_head *list, in ttm_eu_backoff_reservation_reverse() argument
38 list_for_each_entry_continue_reverse(entry, list, head) { in ttm_eu_backoff_reservation_reverse()
45 static void ttm_eu_del_from_lru_locked(struct list_head *list) in ttm_eu_del_from_lru_locked() argument
49 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked()
58 struct list_head *list) in ttm_eu_backoff_reservation() argument
63 if (list_empty(list)) in ttm_eu_backoff_reservation()
66 entry = list_first_entry(list, struct ttm_validate_buffer, head); in ttm_eu_backoff_reservation()
70 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation()
96 struct list_head *list, bool intr) in ttm_eu_reserve_buffers() argument
102 if (list_empty(list)) in ttm_eu_reserve_buffers()
[all …]
/drivers/media/pci/cx18/
Dcx18-queue.c43 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_swap()
52 INIT_LIST_HEAD(&q->list); in cx18_queue_init()
77 list_add(&mdl->list, &q->list); /* LIFO */ in _cx18_enqueue()
79 list_add_tail(&mdl->list, &q->list); /* FIFO */ in _cx18_enqueue()
92 if (!list_empty(&q->list)) { in cx18_dequeue()
93 mdl = list_first_entry(&q->list, struct cx18_mdl, list); in cx18_dequeue()
94 list_del_init(&mdl->list); in cx18_dequeue()
110 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_update_bufs_for_cpu()
130 list); in cx18_mdl_update_bufs_for_cpu()
155 list_for_each_entry_safe(mdl, tmp, &s->q_busy.list, list) { in cx18_queue_get_mdl()
[all …]
/drivers/misc/mei/
Dinterrupt.c44 list_for_each_entry_safe(cb, next, &compl_list->list, list) { in mei_irq_compl_handler()
46 list_del(&cb->list); in mei_irq_compl_handler()
106 list_for_each_entry_safe(cb, next, &dev->read_list.list, list) { in mei_cl_irq_read_msg()
116 list_del(&cb->list); in mei_cl_irq_read_msg()
129 list_del(&cb->list); in mei_cl_irq_read_msg()
143 list_del(&cb->list); in mei_cl_irq_read_msg()
146 list_add_tail(&cb->list, &complete_list->list); in mei_cl_irq_read_msg()
188 list_del(&cb->list); in mei_cl_irq_disconnect_rsp()
222 list_move_tail(&cb->list, &cmpl_list->list); in mei_cl_irq_disconnect()
229 list_move_tail(&cb->list, &dev->ctrl_rd_list.list); in mei_cl_irq_disconnect()
[all …]
Damthif.c133 list_for_each_entry(cb, &dev->amthif_rd_complete_list.list, list) in mei_amthif_find_read_list_entry()
209 list_del(&cb->list); in mei_amthif_read()
216 list_del(&cb->list); in mei_amthif_read()
219 list_del(&cb->list); in mei_amthif_read()
312 list_add_tail(&cb->list, &dev->write_waiting_list.list); in mei_amthif_send_cmd()
315 list_add_tail(&cb->list, &dev->write_list.list); in mei_amthif_send_cmd()
318 list_add_tail(&cb->list, &dev->write_list.list); in mei_amthif_send_cmd()
345 if (!list_empty(&dev->amthif_cmd_list.list) || in mei_amthif_write()
350 list_add_tail(&cb->list, &dev->amthif_cmd_list.list); in mei_amthif_write()
379 list_for_each_entry_safe(cb, next, &dev->amthif_cmd_list.list, list) { in mei_amthif_run_next_cmd()
[all …]
Dclient.c44 list_for_each_entry(me_cl, &dev->me_clients, list) in mei_me_cl_by_uuid()
66 list_for_each_entry(me_cl, &dev->me_clients, list) in mei_me_cl_by_id()
88 list_for_each_entry(me_cl, &dev->me_clients, list) in mei_me_cl_by_uuid_id()
106 list_for_each_entry_safe(me_cl, next, &dev->me_clients, list) { in mei_me_cl_remove()
109 list_del(&me_cl->list); in mei_me_cl_remove()
141 static void __mei_io_list_flush(struct mei_cl_cb *list, in __mei_io_list_flush() argument
148 list_for_each_entry_safe(cb, next, &list->list, list) { in __mei_io_list_flush()
150 list_del(&cb->list); in __mei_io_list_flush()
163 void mei_io_list_flush(struct mei_cl_cb *list, struct mei_cl *cl) in mei_io_list_flush() argument
165 __mei_io_list_flush(list, cl, false); in mei_io_list_flush()
[all …]
/drivers/crypto/qat/qat_common/
Dadf_cfg.c66 struct list_head *list; in qat_dev_cfg_show() local
68 list_entry(v, struct adf_cfg_section, list); in qat_dev_cfg_show()
71 list_for_each(list, &sec->param_head) { in qat_dev_cfg_show()
73 list_entry(list, struct adf_cfg_key_val, list); in qat_dev_cfg_show()
190 list_add_tail(&new->list, &sec->param_head); in adf_cfg_keyval_add()
199 list_entry(list_ptr, struct adf_cfg_key_val, list); in adf_cfg_keyval_del_all()
208 struct list_head *list, *tmp; in adf_cfg_section_del_all() local
210 list_for_each_prev_safe(list, tmp, head) { in adf_cfg_section_del_all()
211 ptr = list_entry(list, struct adf_cfg_section, list); in adf_cfg_section_del_all()
213 list_del(list); in adf_cfg_section_del_all()
[all …]
/drivers/isdn/mISDN/
Ddsp_pipeline.c43 struct list_head list; member
48 struct list_head list; member
84 list_del(&entry->list); in mISDN_dsp_dev_release()
112 list_add_tail(&entry->list, &dsp_elements); in mISDN_dsp_element_register()
146 list_for_each_entry_safe(entry, n, &dsp_elements, list) in mISDN_dsp_element_unregister()
182 list_for_each_entry_safe(entry, n, &dsp_elements, list) { in dsp_pipeline_module_exit()
183 list_del(&entry->list); in dsp_pipeline_module_exit()
199 INIT_LIST_HEAD(&pipeline->list); in dsp_pipeline_init()
212 list_for_each_entry_safe(entry, n, &pipeline->list, list) { in _dsp_pipeline_destroy()
213 list_del(&entry->list); in _dsp_pipeline_destroy()
[all …]
Dtimerdev.c44 struct list_head list; member
74 struct list_head *list = &dev->pending; in mISDN_close() local
81 while (!list_empty(list)) { in mISDN_close()
82 timer = list_first_entry(list, struct mISDNtimer, list); in mISDN_close()
87 list_del(&timer->list); in mISDN_close()
92 list_for_each_entry_safe(timer, next, &dev->expired, list) { in mISDN_close()
103 struct list_head *list = &dev->expired; in mISDN_read() local
115 while (list_empty(list) && (dev->work == 0)) { in mISDN_read()
120 !list_empty(list))); in mISDN_read()
127 if (!list_empty(list)) { in mISDN_read()
[all …]
/drivers/media/platform/ti-vpe/
Dvpdma.c385 int vpdma_create_desc_list(struct vpdma_desc_list *list, size_t size, int type) in vpdma_create_desc_list() argument
389 r = vpdma_alloc_desc_buf(&list->buf, size); in vpdma_create_desc_list()
393 list->next = list->buf.addr; in vpdma_create_desc_list()
395 list->type = type; in vpdma_create_desc_list()
404 void vpdma_reset_desc_list(struct vpdma_desc_list *list) in vpdma_reset_desc_list() argument
406 list->next = list->buf.addr; in vpdma_reset_desc_list()
413 void vpdma_free_desc_list(struct vpdma_desc_list *list) in vpdma_free_desc_list() argument
415 vpdma_free_desc_buf(&list->buf); in vpdma_free_desc_list()
417 list->next = NULL; in vpdma_free_desc_list()
428 int vpdma_submit_descs(struct vpdma_data *vpdma, struct vpdma_desc_list *list) in vpdma_submit_descs() argument
[all …]
/drivers/net/ieee802154/
Dfakelb.c39 struct list_head list; member
47 struct list_head list; member
95 if (priv->list.next == priv->list.prev) { in fakelb_hw_xmit()
100 list_for_each_entry(dp, &priv->fake->list, list) { in fakelb_hw_xmit()
193 INIT_LIST_HEAD(&priv->list); in fakelb_add_one()
205 list_add_tail(&priv->list, &fake->list); in fakelb_add_one()
218 list_del(&priv->list); in fakelb_del()
237 INIT_LIST_HEAD(&priv->list); in fakelb_probe()
251 list_for_each_entry(dp, &priv->list, list) in fakelb_probe()
262 list_for_each_entry_safe(dp, temp, &priv->list, list) in fakelb_remove()
/drivers/xen/xenbus/
Dxenbus_dev_frontend.c73 struct list_head list; member
81 struct list_head list; member
144 rb = list_entry(u->read_buffers.next, struct read_buffer, list); in xenbus_file_read()
162 list_del(&rb->list); in xenbus_file_read()
167 struct read_buffer, list); in xenbus_file_read()
201 list_add_tail(&rb->list, queue); in queue_reply()
209 static void queue_cleanup(struct list_head *list) in queue_cleanup() argument
213 while (!list_empty(list)) { in queue_cleanup()
214 rb = list_entry(list->next, struct read_buffer, list); in queue_cleanup()
215 list_del(list->next); in queue_cleanup()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf_res.c68 struct list_head list; member
129 void vmw_cmdbuf_res_commit(struct list_head *list) in vmw_cmdbuf_res_commit() argument
133 list_for_each_entry_safe(entry, next, list, head) { in vmw_cmdbuf_res_commit()
138 list_add_tail(&entry->head, &entry->man->list); in vmw_cmdbuf_res_commit()
163 void vmw_cmdbuf_res_revert(struct list_head *list) in vmw_cmdbuf_res_revert() argument
168 list_for_each_entry_safe(entry, next, list, head) { in vmw_cmdbuf_res_revert()
177 list_add_tail(&entry->head, &entry->man->list); in vmw_cmdbuf_res_revert()
204 struct list_head *list) in vmw_cmdbuf_res_add() argument
221 list_add_tail(&cres->head, list); in vmw_cmdbuf_res_add()
243 struct list_head *list) in vmw_cmdbuf_res_remove() argument
[all …]
/drivers/media/pci/ivtv/
Divtv-queue.c46 INIT_LIST_HEAD(&q->list); in ivtv_queue_init()
64 list_add_tail(&buf->list, &q->list); in ivtv_enqueue()
77 if (!list_empty(&q->list)) { in ivtv_dequeue()
78 buf = list_entry(q->list.next, struct ivtv_buffer, list); in ivtv_dequeue()
79 list_del_init(q->list.next); in ivtv_dequeue()
91 struct ivtv_buffer *buf = list_entry(from->list.next, struct ivtv_buffer, list); in ivtv_queue_move_buf()
93 list_move_tail(from->list.next, &to->list); in ivtv_queue_move_buf()
145 struct ivtv_buffer *buf = list_entry(steal->list.prev, struct ivtv_buffer, list); in ivtv_queue_move()
153 list_move_tail(steal->list.prev, &from->list); in ivtv_queue_move()
162 if (list_empty(&steal->list)) in ivtv_queue_move()
[all …]
/drivers/usb/gadget/legacy/
Dprinter.c292 list_del_init(&req->list); /* Remode from Active List */ in rx_complete()
299 list_add_tail(&req->list, &dev->rx_buffers); in rx_complete()
302 list_add(&req->list, &dev->rx_reqs); in rx_complete()
310 list_add(&req->list, &dev->rx_reqs); in rx_complete()
316 list_add(&req->list, &dev->rx_reqs); in rx_complete()
325 list_add(&req->list, &dev->rx_reqs); in rx_complete()
352 list_del_init(&req->list); in tx_complete()
353 list_add(&req->list, &dev->tx_reqs); in tx_complete()
418 struct usb_request, list); in setup_rx_reqs()
419 list_del_init(&req->list); in setup_rx_reqs()
[all …]
/drivers/s390/char/
Draw3270.h98 struct list_head list; /* list head for request queueing. */ member
123 return list_empty(&rq->list); in raw3270_request_final()
156 struct list_head list; member
199 struct list_head list; member
213 struct list_head list; member
227 list_for_each_entry(cs, free_list, list) { in alloc_string()
237 list_del(&cs->list); in alloc_string()
239 INIT_LIST_HEAD(&cs->list); in alloc_string()
255 if (list_entry(p, struct string, list) > cs) in free_string()
261 tmp = list_entry(left->next, struct string, list); in free_string()
[all …]
/drivers/vme/
Dvme.c59 list)->parent; in find_bridge()
63 list)->parent; in find_bridge()
67 list)->parent; in find_bridge()
71 list)->parent; in find_bridge()
249 struct vme_slave_resource, list); in vme_slave_request()
280 resource->entry = &allocated_image->list; in vme_slave_request()
308 image = list_entry(resource->entry, struct vme_slave_resource, list); in vme_slave_set()
342 image = list_entry(resource->entry, struct vme_slave_resource, list); in vme_slave_get()
364 list); in vme_slave_free()
405 struct vme_master_resource, list); in vme_master_request()
[all …]

12345678910>>...61