| /drivers/scsi/aic7xxx/ |
| A D | queue.h | 125 #define SLIST_FIRST(head) ((head)->slh_first) argument 187 #define STAILQ_FIRST(head) ((head)->stqh_first) argument 196 (head)->stqh_last = &STAILQ_FIRST((head)); \ 217 #define STAILQ_LAST(head) (*(head)->stqh_last) argument 269 #define LIST_FIRST(head) ((head)->lh_first) argument 334 #define TAILQ_FIRST(head) ((head)->tqh_first) argument 348 (head)->tqh_last = &TAILQ_FIRST((head)); \ 412 { (void *)&(head), (void *)&(head) } 423 #define CIRCLEQ_EMPTY(head) ((head)->cqh_first == (void *)(head)) argument 438 CIRCLEQ_FIRST((head)) = (void *)(head); \ [all …]
|
| /drivers/gpu/drm/nouveau/dispnv04/ |
| A D | hw.c | 115 NVSetOwner(dev, head); in NVBlankScreen() 119 NVVgaSeqReset(dev, head, true); in NVBlankScreen() 124 NVVgaSeqReset(dev, head, false); in NVBlankScreen() 534 NVWriteRAMDAC(dev, head, in nv_load_state_ramdac() 549 rd_cio_state(dev, head, regp, i); in nv_save_state_vga() 551 NVSetEnablePalette(dev, head, true); in nv_save_state_vga() 577 wr_cio_state(dev, head, regp, i); in nv_load_state_vga() 733 nv_fix_nv40_hw_cursor(dev, head); in nv_load_state_ext() 807 state->crtc_reg[head].DAC[i]); in nouveau_hw_load_state_palette() 830 NVVgaProtect(dev, head, true); in nouveau_hw_load_state() [all …]
|
| A D | hw.h | 60 int head, uint32_t reg) in NVReadCRTC() argument 64 if (head) in NVReadCRTC() 74 if (head) in NVWriteCRTC() 80 int head, uint32_t reg) in NVReadRAMDAC() argument 84 if (head) in NVReadRAMDAC() 94 if (head) in NVWriteRAMDAC() 128 int head, uint8_t index) in NVReadVgaCrtc() argument 165 int head, uint32_t reg) in NVReadPRMVIO() argument 223 int head, uint8_t index) in NVReadVgaAttr() argument 248 NVVgaSeqReset(dev, head, true); in NVVgaProtect() [all …]
|
| /drivers/nvme/host/ |
| A D | multipath.c | 241 struct nvme_ns_head *head = ns->head; in nvme_mpath_clear_current_path() local 245 if (!head) in nvme_mpath_clear_current_path() 274 struct nvme_ns_head *head = ns->head; in nvme_mpath_revalidate_paths() local 639 head->cdev_device.parent = &head->subsys->dev; in nvme_add_ns_head_cdev() 641 head->subsys->instance, head->instance); in nvme_add_ns_head_cdev() 644 ret = nvme_cdev_add(&head->cdev, &head->cdev_device, in nvme_add_ns_head_cdev() 690 nvme_cdev_del(&head->cdev, &head->cdev_device); in nvme_remove_head() 756 head->disk->private_data = head; in nvme_mpath_alloc_disk() 775 struct nvme_ns_head *head = ns->head; in nvme_mpath_set_live() local 787 rc = device_add_disk(&head->subsys->dev, head->disk, in nvme_mpath_set_live() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| A D | vga.c | 41 head = 0; /* CR44 selects head */ in nvkm_rdport() 63 head = 0; /* CR44 selects head */ in nvkm_wrport() 71 nvkm_wrport(device, head, 0x03c4, index); in nvkm_rdvgas() 72 return nvkm_rdport(device, head, 0x03c5); in nvkm_rdvgas() 78 nvkm_wrport(device, head, 0x03c4, index); in nvkm_wrvgas() 79 nvkm_wrport(device, head, 0x03c5, value); in nvkm_wrvgas() 85 nvkm_wrport(device, head, 0x03ce, index); in nvkm_rdvgag() 86 return nvkm_rdport(device, head, 0x03cf); in nvkm_rdvgag() 92 nvkm_wrport(device, head, 0x03ce, index); in nvkm_wrvgag() 93 nvkm_wrport(device, head, 0x03cf, value); in nvkm_wrvgag() [all …]
|
| A 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() 46 if (head) { in nvkm_head_del() 48 list_del(&head->head); in nvkm_head_del() 59 if (!(head = kzalloc(sizeof(*head), GFP_KERNEL))) in nvkm_head_new_() 61 head->func = func; in nvkm_head_new_() 62 head->disp = disp; in nvkm_head_new_() 63 head->id = id; in nvkm_head_new_() [all …]
|
| A D | uhead.c | 41 return nvkm_uevent_add(uevent, &head->disp->vblank, head->id, in nvkm_uhead_uevent() 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() 57 args->v0.htotal = head->arm.htotal; in nvkm_uhead_mthd_scanoutpos() 69 head->func->rgpos(head, &args->v0.hline, &args->v0.vline); in nvkm_uhead_mthd_scanoutpos() 90 struct nvkm_disp *disp = head->disp; in nvkm_uhead_dtor() 93 head->object.func = NULL; in nvkm_uhead_dtor() 109 struct nvkm_head *head; in nvkm_uhead_new() local 120 if (!head->object.func) { in nvkm_uhead_new() [all …]
|
| A D | nv50.c | 1080 init.head = head->id; in nv50_disp_super_ied_on() 1105 init.head = head->id; in nv50_disp_super_ied_off() 1114 if (ior->asy.head & (1 << head->id)) { in nv50_disp_super_ior_asy() 1128 if (ior->arm.head & (1 << head->id)) { in nv50_disp_super_ior_arm() 1170 h = head->asy.hblanke + head->asy.htotal - head->asy.hblanks - 7; in nv50_disp_super_2_2_dp() 1176 v = head->asy.vblanks - head->asy.vblanke - 25; in nv50_disp_super_2_2_dp() 1295 head->func->rgclk(head, ior->asy.rgdiv); in nv50_disp_super_2_2() 1353 list_for_each_entry(head, &disp->heads, head) { in nv50_disp_super_1() 1354 head->func->state(head, &head->arm); in nv50_disp_super_1() 1355 head->func->state(head, &head->asy); in nv50_disp_super_1() [all …]
|
| A D | gv100.c | 847 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super() 849 HEAD_DBG(head, "%08x", mask[head->id]); in gv100_disp_super() 855 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super() 862 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super() 867 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super() 872 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super() 879 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super() 886 list_for_each_entry(head, &disp->heads, head) in gv100_disp_super() 990 int head; in gv100_disp_intr_exc_other() local 1154 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_init() [all …]
|
| A D | gf119.c | 1022 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super() 1024 HEAD_DBG(head, "%08x", mask[head->id]); in gf119_disp_super() 1030 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super() 1037 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super() 1042 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super() 1047 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super() 1054 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super() 1061 list_for_each_entry(head, &disp->heads, head) in gf119_disp_super() 1143 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_intr() 1178 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_init() [all …]
|
| A D | base.c | 43 if (head) in nvkm_disp_vblank_fini() 44 head->func->vblank_put(head); in nvkm_disp_vblank_fini() 52 if (head) in nvkm_disp_vblank_init() 53 head->func->vblank_get(head); in nvkm_disp_vblank_init() 152 struct nvkm_head *head; in nvkm_disp_oneinit() local 162 list_for_each_entry(head, &disp->heads, head) in nvkm_disp_oneinit() 175 struct nvkm_head *head; in nvkm_disp_dtor() local 192 list_del(&conn->head); in nvkm_disp_dtor() 198 list_del(&outp->head); in nvkm_disp_dtor() 208 head = list_first_entry(&disp->heads, typeof(*head), head); in nvkm_disp_dtor() [all …]
|
| /drivers/scsi/sym53c8xx_2/ |
| A D | sym_misc.h | 44 return (head->flink == head) ? 0 : head->flink; in sym_que_first() 49 return (head->blink == head) ? 0 : head->blink; in sym_que_last() 71 return head->flink == head; in sym_que_empty() 75 struct sym_quehead *head) in sym_que_splice() argument 83 first->blink = head; in sym_que_splice() 84 head->flink = first; in sym_que_splice() 117 #define sym_insque_head(new, head) __sym_que_add(new, head, (head)->flink) argument 123 if (elem != head) in sym_remque_head() 130 #define sym_insque_tail(new, head) __sym_que_add(new, (head)->blink, head) argument 136 if (elem != head) in sym_remque_tail() [all …]
|
| /drivers/gpu/drm/nouveau/dispnv50/ |
| A D | head.c | 47 if (clr.olut) head->func->olut_clr(head); in nv50_head_flush_clr() 48 if (clr.core) head->func->core_clr(head); in nv50_head_flush_clr() 49 if (clr.curs) head->func->curs_clr(head); in nv50_head_flush_clr() 55 if (asyh->set.curs ) head->func->curs_set(head, asyh); in nv50_head_flush_set_wndw() 61 head->func->olut_set(head, asyh); in nv50_head_flush_set_wndw() 266 if (!head->func->olut(head, asyh, size)) { in nv50_head_atomic_check_lut() 391 head->func->core_calc(head, asyh); in nv50_head_atomic_check() 515 nvif_head_dtor(&head->base.head); in nv50_head_destroy() 575 head = kzalloc(sizeof(*head), GFP_KERNEL); in nv50_head_create() 579 head->func = disp->core->func->head; in nv50_head_create() [all …]
|
| A D | crc.c | 79 core->func->crc->set_ctx(head, ctx); in nv50_crc_program_ctx() 108 nv50_crc_program_ctx(head, NULL); in nv50_crc_ctx_flip_work() 134 struct nv50_crc *crc = &head->crc; in nv50_crc_get_entries() 157 struct nv50_crc *crc = &head->crc; in nv50_crc_handle_vblank() 198 drm_dbg_kms(head->base.base.dev, in nv50_crc_handle_vblank() 233 head->base.index); in nv50_crc_wait_ctx_finished() 237 head->base.index, ret); in nv50_crc_wait_ctx_finished() 263 head->base.index); in nv50_crc_atomic_stop_reporting() 347 head->base.index); in nv50_crc_atomic_start_reporting() 694 head->base.index, value); in nv50_crc_debugfs_flip_threshold_set() [all …]
|
| A D | headca7d.c | 17 const int i = head->base.index; in headca7d_display_id() 33 const int i = head->base.index; in headca7d_or() 74 const int i = head->base.index; in headca7d_procamp() 93 const int i = head->base.index; in headca7d_dither() 111 headca7d_curs_clr(struct nv50_head *head) in headca7d_curs_clr() argument 114 const int i = head->base.index; in headca7d_curs_clr() 137 const int i = head->base.index; in headca7d_curs_set() 173 const int i = head->base.index; in headca7d_olut_clr() 192 const int i = head->base.index; in headca7d_olut_set() 222 const int i = head->base.index; in headca7d_mode() [all …]
|
| A D | head507d.c | 33 const int i = head->base.index; in head507d_procamp() 52 const int i = head->base.index; in head507d_dither() 70 const int i = head->base.index; in head507d_ovly() 98 const int i = head->base.index; in head507d_base() 126 const int i = head->base.index; in head507d_curs_clr() 143 const int i = head->base.index; in head507d_curs_set() 192 const int i = head->base.index; in head507d_core_clr() 206 const int i = head->base.index; in head507d_core_set() 282 const int i = head->base.index; in head507d_olut_clr() 297 const int i = head->base.index; in head507d_olut_set() [all …]
|
| A D | head907d.c | 40 const int i = head->base.index; in head907d_or() 61 const int i = head->base.index; in head907d_procamp() 81 const int i = head->base.index; in head907d_dither() 99 const int i = head->base.index; in head907d_ovly() 128 const int i = head->base.index; in head907d_base() 156 const int i = head->base.index; in head907d_curs_clr() 175 const int i = head->base.index; in head907d_curs_set() 199 const int i = head->base.index; in head907d_core_clr() 213 const int i = head->base.index; in head907d_core_set() 250 const int i = head->base.index; in head907d_olut_clr() [all …]
|
| A D | headc37d.c | 34 const int i = head->base.index; in headc37d_or() 68 const int i = head->base.index; in headc37d_procamp() 89 const int i = head->base.index; in headc37d_dither() 105 headc37d_curs_clr(struct nv50_head *head) in headc37d_curs_clr() argument 108 const int i = head->base.index; in headc37d_curs_clr() 126 const int i = head->base.index; in headc37d_curs_set() 162 headc37d_olut_clr(struct nv50_head *head) in headc37d_olut_clr() argument 165 const int i = head->base.index; in headc37d_olut_clr() 179 const int i = head->base.index; in headc37d_olut_set() 214 const int i = head->base.index; in headc37d_mode() [all …]
|
| /drivers/net/wireless/ath/carl9170/ |
| A D | fwdesc.h | 214 .head = { \ 225 head->magic[0] = magic[0]; in carl9170fw_fill_desc() 226 head->magic[1] = magic[1]; in carl9170fw_fill_desc() 227 head->magic[2] = magic[2]; in carl9170fw_fill_desc() 228 head->magic[3] = magic[3]; in carl9170fw_fill_desc() 230 head->length = length; in carl9170fw_fill_desc() 231 head->min_ver = min_ver; in carl9170fw_fill_desc() 232 head->cur_ver = cur_ver; in carl9170fw_fill_desc() 243 (((head)->cur_ver < _min_ver) || ((head)->min_ver > _min_ver)) \ 254 if (descid[0] == head->magic[0] && descid[1] == head->magic[1] && in carl9170fw_desc_cmp() [all …]
|
| /drivers/net/ethernet/intel/fm10k/ |
| A D | fm10k_mbx.c | 16 fifo->head = 0; in fm10k_fifo_init() 188 return (head > mbx->head) ? --head : ++head; in fm10k_mbx_head_add() 204 return (head < mbx->head) ? ++head : --head; in fm10k_mbx_head_sub() 350 head += end; in fm10k_mbx_write_copy() 435 head++; in fm10k_mbx_read_copy() 447 head++; in fm10k_mbx_read_copy() 973 if (!head || (head == FM10K_MSG_HDR_MASK(HEAD))) in fm10k_mbx_validate_msg_hdr() 992 if (!head || (head == FM10K_MSG_HDR_MASK(HEAD))) in fm10k_mbx_validate_msg_hdr() 1241 u16 head; in fm10k_mbx_process_disconnect() local 1293 u16 head; in fm10k_mbx_process_error() local [all …]
|
| /drivers/tty/ |
| A D | tty_buffer.c | 73 bool restart = buf->head->commit != buf->head->read; in tty_buffer_unlock_exclusive() 237 buf->head->read = buf->head->commit; in tty_buffer_flush() 238 buf->head->lookahead = buf->head->read; in tty_buffer_flush() 399 head->lookahead = max(head->lookahead, head->read); in lookahead_bufs() 415 count = smp_load_acquire(&head->commit) - head->lookahead; in lookahead_bufs() 424 p = char_buf_ptr(head, head->lookahead); in lookahead_bufs() 426 f = flag_buf_ptr(head, head->lookahead); in lookahead_bufs() 438 u8 *p = char_buf_ptr(head, head->read); in receive_buf() 443 f = flag_buf_ptr(head, head->read); in receive_buf() 470 struct tty_buffer *head = buf->head; in flush_to_ldisc() local [all …]
|
| /drivers/rpmsg/ |
| A 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() 132 u32 head; in glink_smem_tx_avail() local 136 head = le32_to_cpu(*pipe->head); in glink_smem_tx_avail() 169 return head; in glink_smem_tx_write_one() 179 head = le32_to_cpu(*pipe->head); in glink_smem_tx_write() 181 head = glink_smem_tx_write_one(pipe, head, hdr, hlen); in glink_smem_tx_write() 182 head = glink_smem_tx_write_one(pipe, head, data, dlen); in glink_smem_tx_write() 185 head = ALIGN(head, 8); in glink_smem_tx_write() [all …]
|
| A D | qcom_glink_rpm.c | 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() 129 head = readl(pipe->head); in glink_rpm_tx_avail() 155 head += count; in glink_rpm_tx_write_one() 159 return head; in glink_rpm_tx_write_one() 185 head = readl(pipe->head); in glink_rpm_tx_write() 186 head = glink_rpm_tx_write_one(pipe, head, hdr, hlen); in glink_rpm_tx_write() 187 head = glink_rpm_tx_write_one(pipe, head, data, aligned_dlen); in glink_rpm_tx_write() 191 head = glink_rpm_tx_write_one(pipe, head, padding, pad); in glink_rpm_tx_write() [all …]
|
| /drivers/infiniband/sw/rdmavt/ |
| A D | cq.c | 33 u32 head; in rvt_cq_enter() local 42 head = RDMA_READ_UAPI_ATOMIC(u_wc->head); in rvt_cq_enter() 47 head = k_wc->head; in rvt_cq_enter() 56 head = cq->ibcq.cqe; in rvt_cq_enter() 59 next = head + 1; in rvt_cq_enter() 99 k_wc->head = next; in rvt_cq_enter() 387 head = RDMA_READ_UAPI_ATOMIC(old_u_wc->head); in rvt_resize_cq() 391 head = old_k_wc->head; in rvt_resize_cq() 399 if (head < tail) in rvt_resize_cq() 402 n = head - tail; in rvt_resize_cq() [all …]
|
| /drivers/usb/core/ |
| A D | phy.c | 143 struct list_head *head; in usb_phy_roothub_init() local 149 head = &phy_roothub->list; in usb_phy_roothub_init() 170 struct list_head *head; in usb_phy_roothub_exit() local 176 head = &phy_roothub->list; in usb_phy_roothub_exit() 192 struct list_head *head; in usb_phy_roothub_set_mode() local 198 head = &phy_roothub->list; in usb_phy_roothub_set_mode() 219 struct list_head *head; in usb_phy_roothub_calibrate() local 225 head = &phy_roothub->list; in usb_phy_roothub_calibrate() 248 struct list_head *head; in usb_phy_roothub_notify_connect() local 277 struct list_head *head; in usb_phy_roothub_notify_disconnect() local [all …]
|