/drivers/scsi/aic7xxx/ |
D | queue.h | 112 #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/ |
D | hw.c | 39 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 …]
|
D | hw.h | 37 void NVWriteVgaSeq(struct drm_device *, int head, uint8_t index, uint8_t value); 38 uint8_t NVReadVgaSeq(struct drm_device *, int head, uint8_t index); 39 void NVWriteVgaGr(struct drm_device *, int head, uint8_t index, uint8_t value); 40 uint8_t NVReadVgaGr(struct drm_device *, int head, uint8_t index); 42 void NVBlankScreen(struct drm_device *, int head, bool blank); 48 void nouveau_hw_save_state(struct drm_device *, int head, 50 void nouveau_hw_load_state(struct drm_device *, int head, 52 void nouveau_hw_load_state_palette(struct drm_device *, int head, 60 int head, uint32_t reg) in NVReadCRTC() argument 64 if (head) in NVReadCRTC() [all …]
|
/drivers/nvme/host/ |
D | multipath.c | 102 spin_lock_irqsave(&ns->head->requeue_lock, flags); in nvme_failover_req() 104 bio_set_dev(bio, ns->head->disk->part0); in nvme_failover_req() 118 blk_steal_bios(&ns->head->requeue_list, req); in nvme_failover_req() 119 spin_unlock_irqrestore(&ns->head->requeue_lock, flags); in nvme_failover_req() 123 kblockd_schedule_work(&ns->head->requeue_work); in nvme_failover_req() 129 struct gendisk *disk = ns->head->disk; in nvme_mpath_start_request() 146 bdev_end_io_acct(ns->head->disk->part0, req_op(rq), in nvme_mpath_end_request() 158 if (!ns->head->disk) in nvme_kick_requeue_lists() 160 kblockd_schedule_work(&ns->head->requeue_work); in nvme_kick_requeue_lists() 162 disk_uevent(ns->head->disk, KOBJ_CHANGE); in nvme_kick_requeue_lists() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | vga.c | 27 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 …]
|
D | head.c | 34 struct nvkm_head *head; in nvkm_head_find() local 35 list_for_each_entry(head, &disp->heads, head) { in nvkm_head_find() 36 if (head->id == id) in nvkm_head_find() 37 return head; in nvkm_head_find() 45 struct nvkm_head *head = *phead; in nvkm_head_del() local 46 if (head) { in nvkm_head_del() 47 HEAD_DBG(head, "dtor"); in nvkm_head_del() 48 list_del(&head->head); in nvkm_head_del() 58 struct nvkm_head *head; in nvkm_head_new_() local 59 if (!(head = kzalloc(sizeof(*head), GFP_KERNEL))) in nvkm_head_new_() [all …]
|
D | uhead.c | 33 struct nvkm_head *head = nvkm_uhead(object); in nvkm_uhead_uevent() local 41 return nvkm_uevent_add(uevent, &head->disp->vblank, head->id, in nvkm_uhead_uevent() 46 nvkm_uhead_mthd_scanoutpos(struct nvkm_head *head, void *argv, u32 argc) in nvkm_uhead_mthd_scanoutpos() argument 53 head->func->state(head, &head->arm); in nvkm_uhead_mthd_scanoutpos() 54 args->v0.vtotal = head->arm.vtotal; in nvkm_uhead_mthd_scanoutpos() 55 args->v0.vblanks = head->arm.vblanks; in nvkm_uhead_mthd_scanoutpos() 56 args->v0.vblanke = head->arm.vblanke; in nvkm_uhead_mthd_scanoutpos() 57 args->v0.htotal = head->arm.htotal; in nvkm_uhead_mthd_scanoutpos() 58 args->v0.hblanks = head->arm.hblanks; in nvkm_uhead_mthd_scanoutpos() 59 args->v0.hblanke = head->arm.hblanke; in nvkm_uhead_mthd_scanoutpos() [all …]
|
D | nv50.c | 97 if (state->head && state == &ior->asy) { in nv50_pior_depth() 98 struct nvkm_head *head = nvkm_head_find(ior->disp, __ffs(state->head)); in nv50_pior_depth() local 100 if (!WARN_ON(!head)) { in nv50_pior_depth() 101 struct nvkm_head_state *state = &head->asy; in nv50_pior_depth() 132 state->head = ctrl & 0x00000003; in nv50_pior_state() 215 state->head = ctrl & 0x00000003; in nv50_sor_state() 310 state->head = ctrl & 0x00000003; in nv50_dac_state() 337 nv50_head_vblank_put(struct nvkm_head *head) in nv50_head_vblank_put() argument 339 struct nvkm_device *device = head->disp->engine.subdev.device; in nv50_head_vblank_put() 341 nvkm_mask(device, 0x61002c, (4 << head->id), 0); in nv50_head_vblank_put() [all …]
|
D | base.c | 45 struct nvkm_head *head = nvkm_head_find(disp, id); in nvkm_disp_vblank_fini() local 46 if (head) in nvkm_disp_vblank_fini() 47 head->func->vblank_put(head); in nvkm_disp_vblank_fini() 54 struct nvkm_head *head = nvkm_head_find(disp, id); in nvkm_disp_vblank_init() local 55 if (head) in nvkm_disp_vblank_init() 56 head->func->vblank_get(head); in nvkm_disp_vblank_init() 66 nvkm_disp_vblank(struct nvkm_disp *disp, int head) in nvkm_disp_vblank() argument 68 nvkm_event_ntfy(&disp->vblank, head, NVKM_DISP_HEAD_EVENT_VBLANK); in nvkm_disp_vblank() 114 list_for_each_entry(outp, &disp->outps, head) { in nvkm_disp_fini() 118 list_for_each_entry(conn, &disp->conns, head) { in nvkm_disp_fini() [all …]
|
D | gv100.c | 38 gv100_sor_hda_device_entry(struct nvkm_ior *ior, int head) in gv100_sor_hda_device_entry() argument 41 const u32 hoff = 0x800 * head; in gv100_sor_hda_device_entry() 43 nvkm_mask(device, 0x616528 + hoff, 0x00000070, head << 4); in gv100_sor_hda_device_entry() 54 gv100_sor_dp_watermark(struct nvkm_ior *sor, int head, u8 watermark) in gv100_sor_dp_watermark() argument 57 const u32 hoff = head * 0x800; in gv100_sor_dp_watermark() 63 gv100_sor_dp_audio_sym(struct nvkm_ior *sor, int head, u16 h, u32 v) in gv100_sor_dp_audio_sym() argument 66 const u32 hoff = head * 0x800; in gv100_sor_dp_audio_sym() 73 gv100_sor_dp_audio(struct nvkm_ior *sor, int head, bool enable) in gv100_sor_dp_audio() argument 76 const u32 hoff = 0x800 * head; in gv100_sor_dp_audio() 100 gv100_sor_hdmi_infoframe_vsi(struct nvkm_ior *ior, int head, void *data, u32 size) in gv100_sor_hdmi_infoframe_vsi() argument [all …]
|
D | gf119.c | 37 gf119_sor_hda_device_entry(struct nvkm_ior *ior, int head) in gf119_sor_hda_device_entry() argument 40 const u32 hoff = 0x800 * head; in gf119_sor_hda_device_entry() 42 nvkm_mask(device, 0x616548 + hoff, 0x00000070, head << 4); in gf119_sor_hda_device_entry() 46 gf119_sor_hda_eld(struct nvkm_ior *ior, int head, u8 *data, u8 size) in gf119_sor_hda_eld() argument 49 const u32 soff = 0x030 * ior->id + (head * 0x04); in gf119_sor_hda_eld() 60 gf119_sor_hda_hpd(struct nvkm_ior *ior, int head, bool present) in gf119_sor_hda_hpd() argument 63 const u32 soff = 0x030 * ior->id + (head * 0x04); in gf119_sor_hda_hpd() 68 ior->func->hda->device_entry(ior, head); in gf119_sor_hda_hpd() 85 gf119_sor_dp_watermark(struct nvkm_ior *sor, int head, u8 watermark) in gf119_sor_dp_watermark() argument 88 const u32 hoff = head * 0x800; in gf119_sor_dp_watermark() [all …]
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_misc.h | 42 static inline struct sym_quehead *sym_que_first(struct sym_quehead *head) in sym_que_first() argument 44 return (head->flink == head) ? 0 : head->flink; in sym_que_first() 47 static inline struct sym_quehead *sym_que_last(struct sym_quehead *head) in sym_que_last() argument 49 return (head->blink == head) ? 0 : head->blink; in sym_que_last() 69 static inline int sym_que_empty(struct sym_quehead *head) in sym_que_empty() argument 71 return head->flink == head; in sym_que_empty() 75 struct sym_quehead *head) in sym_que_splice() argument 81 struct sym_quehead *at = head->flink; in sym_que_splice() 83 first->blink = head; in sym_que_splice() 84 head->flink = first; in sym_que_splice() [all …]
|
/drivers/gpu/drm/nouveau/dispnv50/ |
D | head.c | 39 nv50_head_flush_clr(struct nv50_head *head, in nv50_head_flush_clr() argument 45 if (clr.crc) nv50_crc_atomic_clr(head); in nv50_head_flush_clr() 46 if (clr.olut) head->func->olut_clr(head); in nv50_head_flush_clr() 47 if (clr.core) head->func->core_clr(head); in nv50_head_flush_clr() 48 if (clr.curs) head->func->curs_clr(head); in nv50_head_flush_clr() 52 nv50_head_flush_set_wndw(struct nv50_head *head, struct nv50_head_atom *asyh) in nv50_head_flush_set_wndw() argument 54 if (asyh->set.curs ) head->func->curs_set(head, asyh); in nv50_head_flush_set_wndw() 56 asyh->olut.offset = nv50_lut_load(&head->olut, in nv50_head_flush_set_wndw() 60 head->func->olut_set(head, asyh); in nv50_head_flush_set_wndw() 65 nv50_head_flush_set(struct nv50_head *head, struct nv50_head_atom *asyh) in nv50_head_flush_set() argument [all …]
|
D | crc.c | 70 nv50_crc_program_ctx(struct nv50_head *head, in nv50_crc_program_ctx() argument 73 struct nv50_disp *disp = nv50_disp(head->base.base.dev); in nv50_crc_program_ctx() 77 core->func->crc->set_ctx(head, ctx); in nv50_crc_program_ctx() 85 struct nv50_head *head = container_of(crc, struct nv50_head, crc); in nv50_crc_ctx_flip_work() local 86 struct drm_crtc *crtc = &head->base.base; in nv50_crc_ctx_flip_work() 106 nv50_crc_program_ctx(head, NULL); in nv50_crc_ctx_flip_work() 107 nv50_crc_program_ctx(head, &crc->ctx[new_idx]); in nv50_crc_ctx_flip_work() 127 nv50_crc_get_entries(struct nv50_head *head, in nv50_crc_get_entries() argument 131 struct drm_crtc *crtc = &head->base.base; in nv50_crc_get_entries() 132 struct nv50_crc *crc = &head->crc; in nv50_crc_get_entries() [all …]
|
D | head907d.c | 37 head907d_or(struct nv50_head *head, struct nv50_head_atom *asyh) in head907d_or() argument 39 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in head907d_or() 40 const int i = head->base.index; in head907d_or() 52 HEAD_SET_CONTROL(i), 0x31ec6000 | head->base.index << 25 | in head907d_or() 58 head907d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) in head907d_procamp() argument 60 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in head907d_procamp() 61 const int i = head->base.index; in head907d_procamp() 78 head907d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) in head907d_dither() argument 80 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in head907d_dither() 81 const int i = head->base.index; in head907d_dither() [all …]
|
D | head507d.c | 30 head507d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) in head507d_procamp() argument 32 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in head507d_procamp() 33 const int i = head->base.index; in head507d_procamp() 49 head507d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) in head507d_dither() argument 51 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in head507d_dither() 52 const int i = head->base.index; in head507d_dither() 67 head507d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh) in head507d_ovly() argument 69 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in head507d_ovly() 70 const int i = head->base.index; in head507d_ovly() 95 head507d_base(struct nv50_head *head, struct nv50_head_atom *asyh) in head507d_base() argument [all …]
|
/drivers/net/wireless/ath/carl9170/ |
D | fwdesc.h | 113 struct carl9170fw_desc_head head; member 134 struct carl9170fw_desc_head head; member 151 struct carl9170fw_desc_head head; member 160 struct carl9170fw_desc_head head; member 176 struct carl9170fw_desc_head head; member 186 struct carl9170fw_desc_head head; member 196 struct carl9170fw_desc_head head; member 206 struct carl9170fw_desc_head head; member 214 .head = { \ 221 static inline void carl9170fw_fill_desc(struct carl9170fw_desc_head *head, in carl9170fw_fill_desc() argument [all …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_mbx.c | 16 fifo->head = 0; in fm10k_fifo_init() 28 return fifo->tail - fifo->head; in fm10k_fifo_used() 39 return fifo->size + fifo->head - fifo->tail; in fm10k_fifo_unused() 50 return fifo->head == fifo->tail; in fm10k_fifo_empty() 62 return (fifo->head + offset) & (fifo->size - 1); in fm10k_fifo_head_offset() 85 u32 *head = fifo->buffer + fm10k_fifo_head_offset(fifo, 0); in fm10k_fifo_head_len() local 92 return FM10K_TLV_DWORD_LEN(*head); in fm10k_fifo_head_len() 106 fifo->head += len; in fm10k_fifo_head_drop() 120 fifo->head = fifo->tail; in fm10k_fifo_drop_all() 132 static u16 fm10k_mbx_index_len(struct fm10k_mbx_info *mbx, u16 head, u16 tail) in fm10k_mbx_index_len() argument [all …]
|
/drivers/tty/ |
D | tty_buffer.c | 74 restart = buf->head->commit != buf->head->read; in tty_buffer_unlock_exclusive() 128 while ((p = buf->head) != NULL) { in tty_buffer_free_all() 129 buf->head = p->next; in tty_buffer_free_all() 139 buf->head = &buf->sentinel; in tty_buffer_free_all() 233 while ((next = smp_load_acquire(&buf->head->next)) != NULL) { in tty_buffer_flush() 234 tty_buffer_free(port, buf->head); in tty_buffer_flush() 235 buf->head = next; in tty_buffer_flush() 237 buf->head->read = buf->head->commit; in tty_buffer_flush() 238 buf->head->lookahead = buf->head->read; in tty_buffer_flush() 397 static void lookahead_bufs(struct tty_port *port, struct tty_buffer *head) in lookahead_bufs() argument [all …]
|
/drivers/rpmsg/ |
D | qcom_glink_smem.c | 54 __le32 *head; member 69 u32 head; in glink_smem_rx_avail() local 85 head = le32_to_cpu(*pipe->head); in glink_smem_rx_avail() 88 if (head < tail) in glink_smem_rx_avail() 89 return pipe->native.length - tail + head; in glink_smem_rx_avail() 91 return head - tail; in glink_smem_rx_avail() 132 u32 head; in glink_smem_tx_avail() local 136 head = le32_to_cpu(*pipe->head); in glink_smem_tx_avail() 139 if (tail <= head) in glink_smem_tx_avail() 140 avail = pipe->native.length - head + tail; in glink_smem_tx_avail() [all …]
|
D | qcom_glink_rpm.c | 52 void __iomem *head; member 72 unsigned int head; in glink_rpm_rx_avail() local 75 head = readl(pipe->head); in glink_rpm_rx_avail() 78 if (head < tail) in glink_rpm_rx_avail() 79 return pipe->native.length - tail + head; in glink_rpm_rx_avail() 81 return head - tail; in glink_rpm_rx_avail() 126 unsigned int head; in glink_rpm_tx_avail() local 129 head = readl(pipe->head); in glink_rpm_tx_avail() 132 if (tail <= head) in glink_rpm_tx_avail() 133 return pipe->native.length - head + tail; in glink_rpm_tx_avail() [all …]
|
/drivers/infiniband/sw/rdmavt/ |
D | cq.c | 32 u32 head; in rvt_cq_enter() local 41 head = RDMA_READ_UAPI_ATOMIC(u_wc->head); in rvt_cq_enter() 46 head = k_wc->head; in rvt_cq_enter() 54 if (head >= (unsigned)cq->ibcq.cqe) { in rvt_cq_enter() 55 head = cq->ibcq.cqe; in rvt_cq_enter() 58 next = head + 1; in rvt_cq_enter() 78 trace_rvt_cq_enter(cq, entry, head); in rvt_cq_enter() 80 uqueue[head].wr_id = entry->wr_id; in rvt_cq_enter() 81 uqueue[head].status = entry->status; in rvt_cq_enter() 82 uqueue[head].opcode = entry->opcode; in rvt_cq_enter() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ras.c | 195 .head = obj->head, in amdgpu_ras_debugfs_read() 206 if (amdgpu_ras_reset_error_status(obj->adev, info.head.block)) in amdgpu_ras_debugfs_read() 299 data->head.block = block_id; in amdgpu_ras_debugfs_ctrl_parse_data() 302 data->head.type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE; in amdgpu_ras_debugfs_ctrl_parse_data() 304 data->head.type = AMDGPU_RAS_ERROR__SINGLE_CORRECTABLE; in amdgpu_ras_debugfs_ctrl_parse_data() 320 data->head.sub_block_index = sub_block; in amdgpu_ras_debugfs_ctrl_parse_data() 352 switch (data->head.block) { in amdgpu_ras_instance_mask_check() 482 if (!amdgpu_ras_is_supported(adev, data.head.block)) in amdgpu_ras_debugfs_ctrl_write() 487 ret = amdgpu_ras_feature_enable(adev, &data.head, 0); in amdgpu_ras_debugfs_ctrl_write() 490 ret = amdgpu_ras_feature_enable(adev, &data.head, 1); in amdgpu_ras_debugfs_ctrl_write() [all …]
|
/drivers/gpu/drm/ |
D | drm_agpsupport.c | 220 list_add(&entry->head, &dev->agp->memory); in drm_legacy_agp_alloc() 252 list_for_each_entry(entry, &dev->agp->memory, head) { in drm_legacy_agp_lookup_entry() 355 list_del(&entry->head); in drm_legacy_agp_free() 387 struct drm_agp_head *head = NULL; in drm_legacy_agp_init() local 389 head = kzalloc(sizeof(*head), GFP_KERNEL); in drm_legacy_agp_init() 390 if (!head) in drm_legacy_agp_init() 392 head->bridge = agp_find_bridge(pdev); in drm_legacy_agp_init() 393 if (!head->bridge) { in drm_legacy_agp_init() 394 head->bridge = agp_backend_acquire(pdev); in drm_legacy_agp_init() 395 if (!head->bridge) { in drm_legacy_agp_init() [all …]
|
/drivers/usb/core/ |
D | phy.c | 81 struct list_head *head; in usb_phy_roothub_init() local 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() 108 struct list_head *head; in usb_phy_roothub_exit() local 114 head = &phy_roothub->list; in usb_phy_roothub_exit() 116 list_for_each_entry(roothub_entry, head, list) { in usb_phy_roothub_exit() 130 struct list_head *head; in usb_phy_roothub_set_mode() local 136 head = &phy_roothub->list; in usb_phy_roothub_set_mode() 138 list_for_each_entry(roothub_entry, head, list) { in usb_phy_roothub_set_mode() [all …]
|