/drivers/clk/samsung/ |
D | clk.c | 104 void __init samsung_clk_register_alias(struct samsung_clock_alias *list, in samsung_clk_register_alias() argument 115 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_alias() 116 if (!list->id) { in samsung_clk_register_alias() 122 clk = clk_table[list->id]; in samsung_clk_register_alias() 125 list->id); in samsung_clk_register_alias() 129 ret = clk_register_clkdev(clk, list->alias, list->dev_name); in samsung_clk_register_alias() 132 __func__, list->alias); in samsung_clk_register_alias() 138 struct samsung_fixed_rate_clock *list, unsigned int nr_clk) in samsung_clk_register_fixed_rate() argument 143 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_rate() 144 clk = clk_register_fixed_rate(NULL, list->name, in samsung_clk_register_fixed_rate() [all …]
|
/drivers/hid/usbhid/ |
D | hiddev.c | 55 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/hid/ |
D | hidraw.c | 48 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 …]
|
D | hid-debug.c | 551 struct list_head *list; in hid_dump_device() local 557 list = report_enum->report_list.next; in hid_dump_device() 558 while (list != &report_enum->report_list) { in hid_dump_device() 559 report = (struct hid_report *) list; in hid_dump_device() 571 list = list->next; in hid_dump_device() 581 struct hid_debug_list *list; in hid_debug_event() local 585 list_for_each_entry(list, &hdev->debug_list, node) { in hid_debug_event() 587 list->hid_debug_buf[(list->tail + i) % HID_DEBUG_BUFSIZE] = in hid_debug_event() 589 list->tail = (list->tail + i) % HID_DEBUG_BUFSIZE; in hid_debug_event() 945 list_for_each_entry(report, &hid->report_enum[k].report_list, list) { in hid_dump_input_mapping() [all …]
|
/drivers/gpu/drm/ttm/ |
D | ttm_execbuf_util.c | 35 static void ttm_eu_backoff_reservation_locked(struct list_head *list) in ttm_eu_backoff_reservation_locked() argument 39 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation_locked() 55 static void ttm_eu_del_from_lru_locked(struct list_head *list) in ttm_eu_del_from_lru_locked() argument 59 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked() 71 static void ttm_eu_list_ref_sub(struct list_head *list) in ttm_eu_list_ref_sub() argument 75 list_for_each_entry(entry, list, head) { in ttm_eu_list_ref_sub() 85 void ttm_eu_backoff_reservation(struct list_head *list) in ttm_eu_backoff_reservation() argument 90 if (list_empty(list)) in ttm_eu_backoff_reservation() 93 entry = list_first_entry(list, struct ttm_validate_buffer, head); in ttm_eu_backoff_reservation() 96 ttm_eu_backoff_reservation_locked(list); in ttm_eu_backoff_reservation() [all …]
|
/drivers/pnp/isapnp/ |
D | compat.c | 28 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/mtd/maps/ |
D | physmap_of.c | 38 struct of_flash_list list[0]; member 51 if (info->cmtd != info->list[0].mtd) { in of_flash_remove() 60 if (info->list[i].mtd) in of_flash_remove() 61 map_destroy(info->list[i].mtd); in of_flash_remove() 63 if (info->list[i].map.virt) in of_flash_remove() 64 iounmap(info->list[i].map.virt); in of_flash_remove() 66 if (info->list[i].res) { in of_flash_remove() 67 release_resource(info->list[i].res); in of_flash_remove() 68 kfree(info->list[i].res); in of_flash_remove() 227 info->list[i].res = request_mem_region(res.start, res_size, in of_flash_probe() [all …]
|
/drivers/gpu/drm/radeon/ |
D | mkregtable.c | 50 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/media/pci/cx18/ |
D | cx18-queue.c | 43 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/gpu/drm/omapdrm/ |
D | omap_gem_helpers.c | 121 struct drm_map_list *list; in _drm_gem_create_mmap_offset_size() local 126 list = &obj->map_list; in _drm_gem_create_mmap_offset_size() 127 list->map = kzalloc(sizeof(struct drm_map_list), GFP_KERNEL); in _drm_gem_create_mmap_offset_size() 128 if (!list->map) in _drm_gem_create_mmap_offset_size() 131 map = list->map; in _drm_gem_create_mmap_offset_size() 137 list->file_offset_node = drm_mm_search_free(&mm->offset_manager, in _drm_gem_create_mmap_offset_size() 140 if (!list->file_offset_node) { in _drm_gem_create_mmap_offset_size() 146 list->file_offset_node = drm_mm_get_block(list->file_offset_node, in _drm_gem_create_mmap_offset_size() 148 if (!list->file_offset_node) { in _drm_gem_create_mmap_offset_size() 153 list->hash.key = list->file_offset_node->start; in _drm_gem_create_mmap_offset_size() [all …]
|
/drivers/misc/mei/ |
D | interrupt.c | 71 list_for_each_entry_safe(cb, next, &compl_list->list, list) { in mei_irq_compl_handler() 73 list_del(&cb->list); in mei_irq_compl_handler() 133 list_for_each_entry_safe(cb, next, &dev->read_list.list, list) { in mei_cl_irq_read_msg() 143 list_del(&cb->list); in mei_cl_irq_read_msg() 157 list_del(&cb->list); in mei_cl_irq_read_msg() 171 list_del(&cb->list); in mei_cl_irq_read_msg() 176 list_add_tail(&cb->list, &complete_list->list); in mei_cl_irq_read_msg() 218 list_move_tail(&cb_pos->list, &cmpl_list->list); in _mei_irq_thread_close() 225 list_move_tail(&cb_pos->list, &dev->ctrl_rd_list.list); in _mei_irq_thread_close() 252 list_del(&cb_pos->list); in _mei_irq_thread_read() [all …]
|
D | amthif.c | 139 &dev->amthif_rd_complete_list.list, list) { in mei_amthif_find_read_list_entry() 225 list_del(&cb->list); in mei_amthif_read() 232 list_del(&cb->list); in mei_amthif_read() 235 list_del(&cb->list); in mei_amthif_read() 327 list_add_tail(&cb->list, &dev->write_waiting_list.list); in mei_amthif_send_cmd() 330 list_add_tail(&cb->list, &dev->write_list.list); in mei_amthif_send_cmd() 337 list_add_tail(&cb->list, &dev->write_list.list); in mei_amthif_send_cmd() 364 if (!list_empty(&dev->amthif_cmd_list.list) || in mei_amthif_write() 369 list_add_tail(&cb->list, &dev->amthif_cmd_list.list); in mei_amthif_write() 400 list_for_each_entry_safe(pos, next, &dev->amthif_cmd_list.list, list) { in mei_amthif_run_next_cmd() [all …]
|
D | client.c | 82 void mei_io_list_flush(struct mei_cl_cb *list, struct mei_cl *cl) in mei_io_list_flush() argument 87 list_for_each_entry_safe(cb, next, &list->list, list) { in mei_io_list_flush() 89 list_del(&cb->list); in mei_io_list_flush() 256 list_for_each_entry_safe(cb, next, &dev->read_list.list, list) in mei_cl_find_read_cb() 409 list_add_tail(&cb->list, &dev->ctrl_rd_list.list); in mei_cl_disconnect() 412 list_add_tail(&cb->list, &dev->ctrl_wr_list.list); in mei_cl_disconnect() 512 list_add_tail(&cb->list, &dev->ctrl_rd_list.list); in mei_cl_connect() 514 list_add_tail(&cb->list, &dev->ctrl_wr_list.list); in mei_cl_connect() 674 list_add_tail(&cb->list, &dev->read_list.list); in mei_cl_read_start() 676 list_add_tail(&cb->list, &dev->ctrl_wr_list.list); in mei_cl_read_start() [all …]
|
/drivers/isdn/mISDN/ |
D | dsp_pipeline.c | 43 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 …]
|
D | timerdev.c | 44 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/scsi/qla2xxx/ |
D | qla_gs.c | 263 qla2x00_gid_pt(scsi_qla_host_t *vha, sw_info_t *list) in qla2x00_gid_pt() argument 277 return qla2x00_sns_gid_pt(vha, list); in qla2x00_gid_pt() 308 list[i].d_id.b.domain = gid_data->port_id[0]; in qla2x00_gid_pt() 309 list[i].d_id.b.area = gid_data->port_id[1]; in qla2x00_gid_pt() 310 list[i].d_id.b.al_pa = gid_data->port_id[2]; in qla2x00_gid_pt() 311 memset(list[i].fabric_port_name, 0, WWN_SIZE); in qla2x00_gid_pt() 312 list[i].fp_speed = PORT_SPEED_UNKNOWN; in qla2x00_gid_pt() 316 list[i].d_id.b.rsvd_1 = gid_data->control_byte; in qla2x00_gid_pt() 342 qla2x00_gpn_id(scsi_qla_host_t *vha, sw_info_t *list) in qla2x00_gpn_id() argument 353 return qla2x00_sns_gpn_id(vha, list); in qla2x00_gpn_id() [all …]
|
/drivers/xen/xenbus/ |
D | xenbus_dev_frontend.c | 71 struct list_head list; member 79 struct list_head list; member 142 rb = list_entry(u->read_buffers.next, struct read_buffer, list); in xenbus_file_read() 160 list_del(&rb->list); in xenbus_file_read() 165 struct read_buffer, list); in xenbus_file_read() 199 list_add_tail(&rb->list, queue); in queue_reply() 207 static void queue_cleanup(struct list_head *list) in queue_cleanup() argument 211 while (!list_empty(list)) { in queue_cleanup() 212 rb = list_entry(list->next, struct read_buffer, list); in queue_cleanup() 213 list_del(list->next); in queue_cleanup() [all …]
|
/drivers/net/ieee802154/ |
D | fakelb.c | 38 struct list_head list; member 46 struct list_head list; member 94 if (priv->list.next == priv->list.prev) { in fakelb_hw_xmit() 99 list_for_each_entry(dp, &priv->fake->list, list) { in fakelb_hw_xmit() 192 INIT_LIST_HEAD(&priv->list); in fakelb_add_one() 204 list_add_tail(&priv->list, &fake->list); in fakelb_add_one() 217 list_del(&priv->list); in fakelb_del() 235 INIT_LIST_HEAD(&priv->list); in fakelb_probe() 249 list_for_each_entry(dp, &priv->list, list) in fakelb_probe() 261 list_for_each_entry_safe(dp, temp, &priv->list, list) in fakelb_remove()
|
/drivers/media/pci/ivtv/ |
D | ivtv-queue.c | 46 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/s390/char/ |
D | raw3270.h | 98 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 198 struct list_head list; member 212 struct list_head list; member 226 list_for_each_entry(cs, free_list, list) { in alloc_string() 236 list_del(&cs->list); in alloc_string() 238 INIT_LIST_HEAD(&cs->list); in alloc_string() 254 if (list_entry(p, struct string, list) > cs) in free_string() 260 tmp = list_entry(left->next, struct string, list); in free_string() [all …]
|
/drivers/staging/imx-drm/ |
D | imx-drm-core.c | 34 struct list_head list; member 51 struct list_head list; member 61 struct list_head list; member 68 struct list_head list; member 109 list_for_each_entry(imx_drm_crtc, &imxdrm->crtc_list, list) in imx_drm_crtc_by_num() 124 list_for_each_entry(imx_crtc, &imxdrm->crtc_list, list) in imx_drm_crtc_panel_format_pins() 231 list_for_each_entry(enc, &imxdrm->encoder_list, list) { in imx_drm_device_get() 239 list_for_each_entry(con, &imxdrm->connector_list, list) { in imx_drm_device_get() 247 list_for_each_entry(crtc, &imxdrm->crtc_list, list) { in imx_drm_device_get() 262 list_for_each_entry_continue_reverse(crtc, &imxdrm->crtc_list, list) in imx_drm_device_get() [all …]
|
/drivers/usb/gadget/ |
D | printer.c | 292 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/vme/ |
D | vme.c | 59 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 …]
|
/drivers/staging/gdm72xx/ |
D | gdm_usb.c | 143 t = list_entry(tx->free_list.next, struct usb_tx, list); in get_tx_struct() 144 list_del(&t->list); in get_tx_struct() 154 list_add_tail(&t->list, &tx->free_list); in put_tx_struct() 167 list_add(&r->list, &rx->free_list); in get_rx_struct() 170 r = list_entry(rx->free_list.next, struct usb_rx, list); in get_rx_struct() 171 list_move_tail(&r->list, &rx->used_list); in get_rx_struct() 179 list_move(&r->list, &rx->free_list); in put_rx_struct() 212 list_add(&t->list, &tx->free_list); in init_usb() 223 list_add(&r->list, &rx->free_list); in init_usb() 242 list_for_each_entry_safe(t, t_next, &tx->sdu_list, list) { in release_usb() [all …]
|
/drivers/md/bcache/ |
D | journal.c | 31 static int journal_read_bucket(struct cache *ca, struct list_head *list, in journal_read_bucket() argument 87 while (!list_empty(list)) { in journal_read_bucket() 88 i = list_first_entry(list, in journal_read_bucket() 89 struct journal_replay, list); in journal_read_bucket() 92 list_del(&i->list); in journal_read_bucket() 96 list_for_each_entry_reverse(i, list, list) { in journal_read_bucket() 104 where = &i->list; in journal_read_bucket() 109 where = list; in journal_read_bucket() 116 list_add(&i->list, where); in journal_read_bucket() 130 int bch_journal_read(struct cache_set *c, struct list_head *list, in bch_journal_read() argument [all …]
|