Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 1029) sorted by relevance

12345678910>>...42

/drivers/scsi/aic7xxx/
Dqueue.h112 #define SLIST_HEAD_INITIALIZER(head) \ argument
123 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
125 #define SLIST_FIRST(head) ((head)->slh_first) argument
127 #define SLIST_FOREACH(var, head, field) \ argument
128 for ((var) = SLIST_FIRST((head)); \
132 #define SLIST_INIT(head) do { \ argument
133 SLIST_FIRST((head)) = NULL; \
141 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
142 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
143 SLIST_FIRST((head)) = (elm); \
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
Dhw.c39 NVWriteVgaSeq(struct drm_device *dev, int head, uint8_t index, uint8_t value) in NVWriteVgaSeq() argument
41 NVWritePRMVIO(dev, head, NV_PRMVIO_SRX, index); in NVWriteVgaSeq()
42 NVWritePRMVIO(dev, head, NV_PRMVIO_SR, value); in NVWriteVgaSeq()
46 NVReadVgaSeq(struct drm_device *dev, int head, uint8_t index) in NVReadVgaSeq() argument
48 NVWritePRMVIO(dev, head, NV_PRMVIO_SRX, index); in NVReadVgaSeq()
49 return NVReadPRMVIO(dev, head, NV_PRMVIO_SR); in NVReadVgaSeq()
53 NVWriteVgaGr(struct drm_device *dev, int head, uint8_t index, uint8_t value) in NVWriteVgaGr() argument
55 NVWritePRMVIO(dev, head, NV_PRMVIO_GRX, index); in NVWriteVgaGr()
56 NVWritePRMVIO(dev, head, NV_PRMVIO_GX, value); in NVWriteVgaGr()
60 NVReadVgaGr(struct drm_device *dev, int head, uint8_t index) in NVReadVgaGr() argument
[all …]
Dhw.h38 void NVWriteVgaSeq(struct drm_device *, int head, uint8_t index, uint8_t value);
39 uint8_t NVReadVgaSeq(struct drm_device *, int head, uint8_t index);
40 void NVWriteVgaGr(struct drm_device *, int head, uint8_t index, uint8_t value);
41 uint8_t NVReadVgaGr(struct drm_device *, int head, uint8_t index);
43 void NVBlankScreen(struct drm_device *, int head, bool blank);
49 void nouveau_hw_save_state(struct drm_device *, int head,
51 void nouveau_hw_load_state(struct drm_device *, int head,
53 void nouveau_hw_load_state_palette(struct drm_device *, int head,
61 int head, uint32_t reg) in NVReadCRTC() argument
65 if (head) in NVReadCRTC()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dgf119.c34 gf119_disp_vblank_init(struct nv50_disp *disp, int head) in gf119_disp_vblank_init() argument
37 nvkm_mask(device, 0x6100c0 + (head * 0x800), 0x00000001, 0x00000001); in gf119_disp_vblank_init()
41 gf119_disp_vblank_fini(struct nv50_disp *disp, int head) in gf119_disp_vblank_fini() argument
44 nvkm_mask(device, 0x6100c0 + (head * 0x800), 0x00000001, 0x00000000); in gf119_disp_vblank_fini()
48 exec_lookup(struct nv50_disp *disp, int head, int or, u32 ctrl, in exec_lookup() argument
77 mask |= 0x0100 << head; in exec_lookup()
79 list_for_each_entry(outp, &disp->base.outp, head) { in exec_lookup()
94 exec_script(struct nv50_disp *disp, int head, int id) in exec_script() argument
105 for (or = 0; !(ctrl & (1 << head)) && or < 8; or++) { in exec_script()
107 if (ctrl & (1 << head)) in exec_script()
[all …]
Dvga.c27 nvkm_rdport(struct nvkm_device *device, int head, u16 port) in nvkm_rdport() argument
35 return nvkm_rd08(device, 0x601000 + (head * 0x2000) + port); in nvkm_rdport()
41 head = 0; /* CR44 selects head */ in nvkm_rdport()
42 return nvkm_rd08(device, 0x0c0000 + (head * 0x2000) + port); in nvkm_rdport()
49 nvkm_wrport(struct nvkm_device *device, int head, u16 port, u8 data) in nvkm_wrport() argument
57 nvkm_wr08(device, 0x601000 + (head * 0x2000) + port, data); in nvkm_wrport()
63 head = 0; /* CR44 selects head */ in nvkm_wrport()
64 nvkm_wr08(device, 0x0c0000 + (head * 0x2000) + port, data); in nvkm_wrport()
69 nvkm_rdvgas(struct nvkm_device *device, int head, u8 index) in nvkm_rdvgas() argument
71 nvkm_wrport(device, head, 0x03c4, index); in nvkm_rdvgas()
[all …]
Dnv50.c101 nv50_disp_vblank_fini_(struct nvkm_disp *base, int head) in nv50_disp_vblank_fini_() argument
104 disp->func->head.vblank_fini(disp, head); in nv50_disp_vblank_fini_()
108 nv50_disp_vblank_init_(struct nvkm_disp *base, int head) in nv50_disp_vblank_init_() argument
111 disp->func->head.vblank_init(disp, head); in nv50_disp_vblank_init_()
140 .head.vblank_init = nv50_disp_vblank_init_,
141 .head.vblank_fini = nv50_disp_vblank_fini_,
165 nv50_disp_vblank_fini(struct nv50_disp *disp, int head) in nv50_disp_vblank_fini() argument
168 nvkm_mask(device, 0x61002c, (4 << head), 0); in nv50_disp_vblank_fini()
172 nv50_disp_vblank_init(struct nv50_disp *disp, int head) in nv50_disp_vblank_init() argument
175 nvkm_mask(device, 0x61002c, (4 << head), (4 << head)); in nv50_disp_vblank_init()
[all …]
Dbase.c40 nvkm_disp_vblank_fini(struct nvkm_event *event, int type, int head) in nvkm_disp_vblank_fini() argument
43 disp->func->head.vblank_fini(disp, head); in nvkm_disp_vblank_fini()
47 nvkm_disp_vblank_init(struct nvkm_event *event, int type, int head) in nvkm_disp_vblank_init() argument
50 disp->func->head.vblank_init(disp, head); in nvkm_disp_vblank_init()
66 if (ret = -ENXIO, req->v0.head <= disp->vblank.index_nr) { in nvkm_disp_vblank_ctor()
68 notify->index = req->v0.head; in nvkm_disp_vblank_ctor()
84 nvkm_disp_vblank(struct nvkm_disp *disp, int head) in nvkm_disp_vblank() argument
87 nvkm_event_send(&disp->vblank, 1, head, &rep, sizeof(rep)); in nvkm_disp_vblank()
104 list_for_each_entry(outp, &disp->outp, head) { in nvkm_disp_hpd_ctor()
216 list_for_each_entry(outp, &disp->outp, head) { in nvkm_disp_fini()
[all …]
Dcursnv50.c45 int head, ret = -ENOSYS; in nv50_disp_curs_new() local
50 args->v0.version, args->v0.head); in nv50_disp_curs_new()
51 if (args->v0.head > disp->base.head.nr) in nv50_disp_curs_new()
53 head = args->v0.head; in nv50_disp_curs_new()
57 return nv50_disp_chan_new_(func, mthd, root, ctrl + head, user + head, in nv50_disp_curs_new()
58 head, oclass, pobject); in nv50_disp_curs_new()
Doimmnv50.c45 int head, ret = -ENOSYS; in nv50_disp_oimm_new() local
50 args->v0.version, args->v0.head); in nv50_disp_oimm_new()
51 if (args->v0.head > disp->base.head.nr) in nv50_disp_oimm_new()
53 head = args->v0.head; in nv50_disp_oimm_new()
57 return nv50_disp_chan_new_(func, mthd, root, ctrl + head, user + head, in nv50_disp_oimm_new()
58 head, oclass, pobject); in nv50_disp_oimm_new()
Drootnv50.c39 const u32 blanke = nvkm_rd32(device, 0x610aec + (head * 0x540)); in nv50_disp_root_scanoutpos()
40 const u32 blanks = nvkm_rd32(device, 0x610af4 + (head * 0x540)); in nv50_disp_root_scanoutpos()
41 const u32 total = nvkm_rd32(device, 0x610afc + (head * 0x540)); in nv50_disp_root_scanoutpos()
59 nvkm_rd32(device, 0x616340 + (head * 0x800)) & 0xffff; in nv50_disp_root_scanoutpos()
62 nvkm_rd32(device, 0x616344 + (head * 0x800)) & 0xffff; in nv50_disp_root_scanoutpos()
82 int head, ret = -ENOSYS; in nv50_disp_root_mthd_() local
90 args->v0.version, args->v0.method, args->v0.head); in nv50_disp_root_mthd_()
92 head = args->v0.head; in nv50_disp_root_mthd_()
102 head = ffs((mask >> 8) & 0x0f) - 1; in nv50_disp_root_mthd_()
106 if (head < 0 || head >= disp->base.head.nr) in nv50_disp_root_mthd_()
[all …]
/drivers/gpu/drm/radeon/
Dmkregtable.c84 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
86 __list_add(new, head, head->next); in list_add()
97 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument
99 __list_add(new, head->prev, head); in list_add_tail()
169 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
172 list_add(list, head); in list_move()
181 struct list_head *head) in list_move_tail() argument
184 list_add_tail(list, head); in list_move_tail()
193 const struct list_head *head) in list_is_last() argument
195 return list->next == head; in list_is_last()
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_misc.h55 static inline struct sym_quehead *sym_que_first(struct sym_quehead *head) in sym_que_first() argument
57 return (head->flink == head) ? 0 : head->flink; in sym_que_first()
60 static inline struct sym_quehead *sym_que_last(struct sym_quehead *head) in sym_que_last() argument
62 return (head->blink == head) ? 0 : head->blink; in sym_que_last()
82 static inline int sym_que_empty(struct sym_quehead *head) in sym_que_empty() argument
84 return head->flink == head; in sym_que_empty()
88 struct sym_quehead *head) in sym_que_splice() argument
94 struct sym_quehead *at = head->flink; in sym_que_splice()
96 first->blink = head; in sym_que_splice()
97 head->flink = first; in sym_que_splice()
[all …]
/drivers/gpu/drm/nouveau/include/nvif/
Dlist.h159 list_add(struct list_head *entry, struct list_head *head) in list_add() argument
161 __list_add(entry, head, head->next); in list_add()
180 list_add_tail(struct list_head *entry, struct list_head *head) in list_add_tail() argument
182 __list_add(entry, head->prev, head); in list_add_tail()
220 struct list_head *head) in list_move_tail() argument
223 list_add_tail(list, head); in list_move_tail()
235 list_empty(struct list_head *head) in list_empty() argument
237 return head->next == head; in list_empty()
314 #define list_for_each_entry(pos, head, member) \ argument
315 for (pos = __container_of((head)->next, pos, member); \
[all …]
/drivers/net/wireless/ath/carl9170/
Dfwdesc.h125 struct carl9170fw_desc_head head; member
146 struct carl9170fw_desc_head head; member
163 struct carl9170fw_desc_head head; member
172 struct carl9170fw_desc_head head; member
188 struct carl9170fw_desc_head head; member
198 struct carl9170fw_desc_head head; member
208 struct carl9170fw_desc_head head; member
218 struct carl9170fw_desc_head head; member
226 .head = { \
233 static inline void carl9170fw_fill_desc(struct carl9170fw_desc_head *head, in carl9170fw_fill_desc() argument
[all …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_mbx.c33 fifo->head = 0; in fm10k_fifo_init()
45 return fifo->tail - fifo->head; in fm10k_fifo_used()
56 return fifo->size + fifo->head - fifo->tail; in fm10k_fifo_unused()
67 return fifo->head == fifo->tail; in fm10k_fifo_empty()
79 return (fifo->head + offset) & (fifo->size - 1); in fm10k_fifo_head_offset()
102 u32 *head = fifo->buffer + fm10k_fifo_head_offset(fifo, 0); in fm10k_fifo_head_len() local
109 return FM10K_TLV_DWORD_LEN(*head); in fm10k_fifo_head_len()
123 fifo->head += len; in fm10k_fifo_head_drop()
137 fifo->head = fifo->tail; in fm10k_fifo_drop_all()
149 static u16 fm10k_mbx_index_len(struct fm10k_mbx_info *mbx, u16 head, u16 tail) in fm10k_mbx_index_len() argument
[all …]
/drivers/staging/lustre/lustre/ptlrpc/
Dnrs_fifo.c77 struct nrs_fifo_head *head; in nrs_fifo_start() local
79 head = kzalloc_node(sizeof(*head), GFP_NOFS, in nrs_fifo_start()
82 if (!head) in nrs_fifo_start()
85 INIT_LIST_HEAD(&head->fh_list); in nrs_fifo_start()
86 policy->pol_private = head; in nrs_fifo_start()
101 struct nrs_fifo_head *head = policy->pol_private; in nrs_fifo_stop() local
103 LASSERT(head); in nrs_fifo_stop()
104 LASSERT(list_empty(&head->fh_list)); in nrs_fifo_stop()
106 kfree(head); in nrs_fifo_stop()
161 struct nrs_fifo_head *head = policy->pol_private; in nrs_fifo_req_get() local
[all …]
/drivers/gpu/drm/
Ddrm_agpsupport.c220 list_add(&entry->head, &dev->agp->memory); in drm_agp_alloc()
252 list_for_each_entry(entry, &dev->agp->memory, head) { in drm_agp_lookup_entry()
367 list_del(&entry->head); in drm_agp_free()
399 struct drm_agp_head *head = NULL; in drm_agp_init() local
401 if (!(head = kzalloc(sizeof(*head), GFP_KERNEL))) in drm_agp_init()
403 head->bridge = agp_find_bridge(dev->pdev); in drm_agp_init()
404 if (!head->bridge) { in drm_agp_init()
405 if (!(head->bridge = agp_backend_acquire(dev->pdev))) { in drm_agp_init()
406 kfree(head); in drm_agp_init()
409 agp_copy_info(head->bridge, &head->agp_info); in drm_agp_init()
[all …]
/drivers/infiniband/sw/rdmavt/
Dcq.c66 u32 head; in rvt_cq_enter() local
76 head = wc->head; in rvt_cq_enter()
77 if (head >= (unsigned)cq->ibcq.cqe) { in rvt_cq_enter()
78 head = cq->ibcq.cqe; in rvt_cq_enter()
81 next = head + 1; in rvt_cq_enter()
97 wc->uqueue[head].wr_id = entry->wr_id; in rvt_cq_enter()
98 wc->uqueue[head].status = entry->status; in rvt_cq_enter()
99 wc->uqueue[head].opcode = entry->opcode; in rvt_cq_enter()
100 wc->uqueue[head].vendor_err = entry->vendor_err; in rvt_cq_enter()
101 wc->uqueue[head].byte_len = entry->byte_len; in rvt_cq_enter()
[all …]
/drivers/misc/mic/scif/
Dscif_rma_list.c28 void scif_insert_tcw(struct scif_window *window, struct list_head *head) in scif_insert_tcw() argument
31 struct scif_window *prev = list_entry(head, struct scif_window, list); in scif_insert_tcw()
36 if (!list_empty(head)) { in scif_insert_tcw()
37 curr = list_entry(head->prev, struct scif_window, list); in scif_insert_tcw()
39 list_add_tail(&window->list, head); in scif_insert_tcw()
43 list_for_each(item, head) { in scif_insert_tcw()
58 void scif_insert_window(struct scif_window *window, struct list_head *head) in scif_insert_window() argument
64 list_for_each(item, head) { in scif_insert_window()
71 list_add(&window->list, head); in scif_insert_window()
87 struct list_head *item, *temp, *head = req->head; in scif_query_tcw() local
[all …]
/drivers/net/wireless/ath/
Ddfs_pri_detector.c37 struct list_head head; member
105 list_for_each_entry_safe(p, p0, &pulse_pool, head) { in pool_deregister_ref()
106 list_del(&p->head); in pool_deregister_ref()
110 list_for_each_entry_safe(ps, ps0, &pseq_pool, head) { in pool_deregister_ref()
111 list_del(&ps->head); in pool_deregister_ref()
122 list_add(&pe->head, &pulse_pool); in pool_put_pulse_elem()
130 list_add(&pse->head, &pseq_pool); in pool_put_pseq_elem()
140 pse = list_first_entry(&pseq_pool, struct pri_sequence, head); in pool_get_pseq_elem()
141 list_del(&pse->head); in pool_get_pseq_elem()
153 pe = list_first_entry(&pulse_pool, struct pulse_elem, head); in pool_get_pulse_elem()
[all …]
/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dvga.h6 u8 nvkm_rdport(struct nvkm_device *, int head, u16 port);
7 void nvkm_wrport(struct nvkm_device *, int head, u16 port, u8 value);
10 u8 nvkm_rdvgas(struct nvkm_device *, int head, u8 index);
11 void nvkm_wrvgas(struct nvkm_device *, int head, u8 index, u8 value);
14 u8 nvkm_rdvgag(struct nvkm_device *, int head, u8 index);
15 void nvkm_wrvgag(struct nvkm_device *, int head, u8 index, u8 value);
18 u8 nvkm_rdvgac(struct nvkm_device *, int head, u8 index);
19 void nvkm_wrvgac(struct nvkm_device *, int head, u8 index, u8 value);
22 u8 nvkm_rdvgai(struct nvkm_device *, int head, u16 port, u8 index);
23 void nvkm_wrvgai(struct nvkm_device *, int head, u16 port, u8 index, u8 value);
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_marker.c32 struct list_head head; member
39 INIT_LIST_HEAD(&queue->head); in vmw_marker_queue_init()
50 list_for_each_entry_safe(marker, next, &queue->head, head) { in vmw_marker_queue_takedown()
67 list_add_tail(&marker->head, &queue->head); in vmw_marker_push()
83 if (list_empty(&queue->head)) { in vmw_marker_pull()
90 list_for_each_entry_safe(marker, next, &queue->head, head) { in vmw_marker_pull()
97 list_del(&marker->head); in vmw_marker_pull()
137 if (list_empty(&queue->head)) in vmw_wait_lag()
140 marker = list_first_entry(&queue->head, in vmw_wait_lag()
141 struct vmw_marker, head); in vmw_wait_lag()
/drivers/tty/
Dtty_buffer.c69 restart = buf->head->commit != buf->head->read; in tty_buffer_unlock_exclusive()
121 while ((p = buf->head) != NULL) { in tty_buffer_free_all()
122 buf->head = p->next; in tty_buffer_free_all()
131 buf->head = &buf->sentinel; in tty_buffer_free_all()
225 while ((next = smp_load_acquire(&buf->head->next)) != NULL) { in tty_buffer_flush()
226 tty_buffer_free(port, buf->head); in tty_buffer_flush()
227 buf->head = next; in tty_buffer_flush()
229 buf->head->read = buf->head->commit; in tty_buffer_flush()
466 receive_buf(struct tty_ldisc *ld, struct tty_buffer *head, int count) in receive_buf() argument
468 unsigned char *p = char_buf_ptr(head, head->read); in receive_buf()
[all …]
/drivers/mfd/
Dpcf50633-adc.c74 int head; in trigger_next_adc_job_if_any() local
76 head = adc->queue_head; in trigger_next_adc_job_if_any()
78 if (!adc->queue[head]) in trigger_next_adc_job_if_any()
81 adc_setup(pcf, adc->queue[head]->mux, adc->queue[head]->avg); in trigger_next_adc_job_if_any()
88 int head, tail; in adc_enqueue_request() local
92 head = adc->queue_head; in adc_enqueue_request()
102 if (head == tail) in adc_enqueue_request()
177 int head, res; in pcf50633_adc_irq() local
180 head = adc->queue_head; in pcf50633_adc_irq()
182 req = adc->queue[head]; in pcf50633_adc_irq()
[all …]
/drivers/gpu/drm/ttm/
Dttm_execbuf_util.c38 list_for_each_entry_continue_reverse(entry, list, head) { in ttm_eu_backoff_reservation_reverse()
49 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked()
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()
106 entry = list_first_entry(list, struct ttm_validate_buffer, head); in ttm_eu_reserve_buffers()
112 list_for_each_entry(entry, list, head) { in ttm_eu_reserve_buffers()
123 entry = list_prev_entry(entry, head); in ttm_eu_reserve_buffers()
124 list_del(&safe->head); in ttm_eu_reserve_buffers()
125 list_add(&safe->head, dups); in ttm_eu_reserve_buffers()
168 list_del(&entry->head); in ttm_eu_reserve_buffers()
[all …]

12345678910>>...42