Searched refs:head (Results 51 - 75 of 583) sorted by relevance

1234567891011>>

/drivers/gpu/drm/nouveau/
H A Dnv04_dac.c136 /* only implemented for head A for now */
213 NV_INFO(dev, "Load detected on head A\n");
228 int head; local
264 head = (saved_routput & 0x100) >> 8;
267 if (!(NVReadVgaCrtc(dev, head, NV_CIO_CRE_RPC1_INDEX) & 0xC0))
268 head ^= 1;
271 routput = (saved_routput & 0xfffffece) | head << 8;
286 NVWriteRAMDAC(dev, head, NV_PRAMDAC_TESTPOINT_DATA,
288 temp = NVReadRAMDAC(dev, head, NV_PRAMDAC_TEST_CONTROL);
289 NVWriteRAMDAC(dev, head, NV_PRAMDAC_TEST_CONTRO
348 int head = nouveau_crtc(encoder->crtc)->index; local
361 int head = nouveau_crtc(encoder->crtc)->index; local
[all...]
H A Dnouveau_i2c.h38 struct list_head head; member in struct:nouveau_i2c_chan
/drivers/mmc/host/
H A Dvub300.c167 struct sd_command_header head; member in union:sd_command
1073 vub300->cmnd.head.header_size = 20;
1074 vub300->cmnd.head.header_type = 0x00;
1075 vub300->cmnd.head.port_number = 0; /* "0" means port 1 */
1076 vub300->cmnd.head.command_type = 0x00; /* standard read command */
1077 vub300->cmnd.head.response_type = response_type;
1078 vub300->cmnd.head.command_index = cmd->opcode;
1079 vub300->cmnd.head.arguments[0] = cmd->arg >> 24;
1080 vub300->cmnd.head.arguments[1] = cmd->arg >> 16;
1081 vub300->cmnd.head
[all...]
/drivers/pci/
H A Dsetup-bus.c44 static void free_list(struct list_head *head) argument
48 list_for_each_entry_safe(dev_res, tmp, head, list) {
56 * @head: Head of the list
63 static int add_to_list(struct list_head *head, argument
83 list_add(&tmp->list, head);
88 static void remove_from_list(struct list_head *head, argument
93 list_for_each_entry_safe(dev_res, tmp, head, list) {
102 static resource_size_t get_res_add_size(struct list_head *head, argument
107 list_for_each_entry(dev_res, head, list) {
124 static void pdev_sort_resources(struct pci_dev *dev, struct list_head *head) argument
174 __dev_sort_resources(struct pci_dev *dev, struct list_head *head) argument
213 reassign_resources_sorted(struct list_head *realloc_head, struct list_head *head) argument
274 assign_requested_resources_sorted(struct list_head *head, struct list_head *fail_head) argument
303 __assign_resources_sorted(struct list_head *head, struct list_head *realloc_head, struct list_head *fail_head) argument
[all...]
/drivers/media/video/
H A Dv4l2-int-device.c40 list_for_each_entry(m, &int_list, head) {
44 list_for_each_entry(s, &int_list, head) {
92 list_add(&d->head, &int_list);
103 list_del(&d->head);
/drivers/gpu/drm/radeon/
H A Dradeon_encoders.c52 list_for_each_entry(clone_encoder, &dev->mode_config.encoder_list, head) {
72 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
162 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
164 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
178 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
197 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
213 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
231 list_for_each_entry(other_encoder, &dev->mode_config.encoder_list, head) {
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_fence.h46 struct list_head head; member in struct:vmw_fence_action
57 struct list_head head; member in struct:vmw_fence_obj
/drivers/input/misc/
H A Dkeychord.c60 unsigned char head; member in struct:keychord_device
117 kdev->buff[kdev->head] = keychord->id;
118 kdev->head = (kdev->head + 1) % BUFFER_SIZE;
203 if (kdev->head == kdev->tail && (file->f_flags & O_NONBLOCK))
207 kdev->head != kdev->tail);
261 kdev->head = kdev->tail = 0;
319 if (kdev->head != kdev->tail)
/drivers/message/i2o/
H A Dbus-osm.c48 msg->u.head[0] = cpu_to_le32(FIVE_WORD_MSG_SIZE | SGL_OFFSET_0);
49 msg->u.head[1] =
H A Di2o_config.c60 u16 q_in; // Queue head index
272 msg->u.head[0] = cpu_to_le32(NINE_WORD_MSG_SIZE | SGL_OFFSET_7);
273 msg->u.head[1] =
276 msg->u.head[2] = cpu_to_le32(i2o_config_driver.context);
277 msg->u.head[3] = cpu_to_le32(0);
345 msg->u.head[0] = cpu_to_le32(NINE_WORD_MSG_SIZE | SGL_OFFSET_7);
346 msg->u.head[1] =
348 msg->u.head[2] = cpu_to_le32(i2o_config_driver.context);
349 msg->u.head[3] = cpu_to_le32(0);
400 msg->u.head[
[all...]
/drivers/scsi/bfa/
H A Dbfa_cs.h66 u32 head; member in struct:bfa_trc_mod_s
100 trcm->head = trcm->tail = trcm->stopped = 0;
125 if (trcm->tail == trcm->head)
126 trcm->head = (trcm->head + 1) & (BFA_TRC_MAX - 1);
145 if (trcm->tail == trcm->head)
146 trcm->head = (trcm->head + 1) & (BFA_TRC_MAX - 1);
169 * bfa_q_deq - dequeue an element from head of the queue
/drivers/dma/
H A Dcoh901318_lli.c58 struct coh901318_lli *head; local
68 head = dma_pool_alloc(pool->dmapool, GFP_NOWAIT, &phy);
70 if (head == NULL)
75 lli = head;
99 return head;
108 coh901318_lli_free(pool, &head);
/drivers/gpu/drm/
H A Ddrm_context.c158 list_for_each_entry(_entry, &dev->maplist, head) {
194 list_for_each_entry(r_list, &dev->maplist, head) {
343 INIT_LIST_HEAD(&ctx_entry->head);
348 list_add(&ctx_entry->head, &dev->ctxlist);
449 list_for_each_entry_safe(pos, n, &dev->ctxlist, head) {
451 list_del(&pos->head);
H A Ddrm_prime.c247 INIT_LIST_HEAD(&prime_fpriv->head);
255 list_for_each_entry_safe(member, safe, &prime_fpriv->head, entry) {
272 list_add(&member->entry, &prime_fpriv->head);
281 list_for_each_entry(member, &prime_fpriv->head, entry) {
296 list_for_each_entry_safe(member, safe, &prime_fpriv->head, entry) {
/drivers/scsi/sym53c8xx_2/
H A Dsym_fw2.h318 offsetof (struct sym_ccb, phys.head.status),
468 offsetof (struct sym_ccb, phys.head.lastp),
527 offsetof (struct sym_ccb, phys.head.lastp),
559 offsetof (struct sym_ccb, phys.head.lastp),
575 offsetof (struct sym_ccb, phys.head.lastp),
667 offsetof (struct sym_ccb, phys.head.status),
677 offsetof (struct sym_ccb, phys.head.status),
753 offsetof (struct sym_ccb, phys.head.lastp),
755 offsetof (struct sym_ccb, phys.head.savep),
775 offsetof (struct sym_ccb, phys.head
[all...]
/drivers/s390/block/
H A Ddasd_eer.c90 int head; member in struct:eerbuffer
105 if (eerb->head < eerb->tail)
106 return eerb->tail - eerb->head - 1;
107 return eerb->buffersize - eerb->head + eerb->tail -1;
117 if (eerb->head >= eerb->tail)
118 return eerb->head - eerb->tail;
119 return eerb->buffersize - eerb->tail + eerb->head;
139 headindex = eerb->head / PAGE_SIZE;
140 localhead = eerb->head % PAGE_SIZE;
145 eerb->head
[all...]
/drivers/tty/
H A Dehv_bytechan.c56 unsigned int head; /* circular buffer head */ member in struct:ehv_bc_data
447 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE),
456 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE);
461 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE))
514 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE);
518 memcpy(bc->buf + bc->head, s, len);
519 bc->head = (bc->head + len) & (BUF_SIZE - 1);
581 count = CIRC_SPACE(bc->head, b
[all...]
H A Dbfin_jtag_comm.c58 #define circ_empty(circ) ((circ)->head == (circ)->tail)
59 #define circ_free(circ) CIRC_SPACE((circ)->head, (circ)->tail, CIRC_SIZE)
60 #define circ_cnt(circ) CIRC_CNT((circ)->head, (circ)->tail, CIRC_SIZE)
87 inbound_len, bfin_jc_write_buf.tail, bfin_jc_write_buf.head);
180 circ_byte(&bfin_jc_write_buf, bfin_jc_write_buf.head + i) = buf[i];
181 bfin_jc_write_buf.head += i;
251 bfin_jc_write_buf.head = bfin_jc_write_buf.tail = 0;
/drivers/video/
H A Dmodedb.c865 * @head: pointer to struct list_head of modelist
880 struct list_head *head)
887 list_for_each(pos, head) {
911 * @head: pointer to modelist
918 struct list_head *head)
925 list_for_each(pos, head) {
952 * @head: pointer to struct list_head of modelist
958 struct list_head *head)
965 list_for_each(pos, head) {
977 * @head
879 fb_find_best_mode(const struct fb_var_screeninfo *var, struct list_head *head) argument
917 fb_find_nearest_mode(const struct fb_videomode *mode, struct list_head *head) argument
957 fb_match_mode(const struct fb_var_screeninfo *var, struct list_head *head) argument
982 fb_add_videomode(const struct fb_videomode *mode, struct list_head *head) argument
1017 fb_delete_videomode(const struct fb_videomode *mode, struct list_head *head) argument
1038 fb_destroy_modelist(struct list_head *head) argument
1055 fb_videomode_to_modelist(const struct fb_videomode *modedb, int num, struct list_head *head) argument
1068 fb_find_best_display(const struct fb_monspecs *specs, struct list_head *head) argument
[all...]
/drivers/gpu/drm/exynos/
H A Dexynos_drm_encoder.c59 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
121 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
145 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
217 list_for_each_entry(clone, &dev->mode_config.encoder_list, head) {
238 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head)
294 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
405 list_for_each_entry(connector, &dev->mode_config.connector_list, head)
/drivers/net/irda/
H A Dw83977af_ir.c217 self->rx_buff.head =
220 if (self->rx_buff.head == NULL) {
225 memset(self->rx_buff.head, 0, self->rx_buff.truesize);
227 self->tx_buff.head =
230 if (self->tx_buff.head == NULL) {
234 memset(self->tx_buff.head, 0, self->tx_buff.truesize);
238 self->tx_buff.data = self->tx_buff.head;
239 self->rx_buff.data = self->rx_buff.head;
257 self->tx_buff.head, self->tx_buff_dma);
260 self->rx_buff.head, sel
[all...]
/drivers/tty/serial/jsm/
H A Djsm_neo.c296 u16 head; local
302 /* cache head and tail of queue */
303 head = ch->ch_r_head & RQUEUEMASK;
311 if ((qleft = tail - head - 1) < 0)
361 n = min(((u32) total), (RQUEUESIZE - (u32) head));
382 memcpy_fromio(ch->ch_rqueue + head, &ch->ch_neo_uart->txrxburst, n);
388 memset(ch->ch_equeue + head, 0, n);
390 /* Add to and flip head if needed */
391 head = (head
493 u16 head; local
[all...]
/drivers/net/wireless/ath/carl9170/
H A Drx.c293 struct ar9170_rx_head *head, struct ar9170_rx_macstatus *mac,
365 switch (head->plcp[0]) {
381 "rate (%x).\n", head->plcp[0]);
390 switch (head->plcp[0] & 0xf) {
418 "rate (%x).\n", head->plcp[0]);
428 if (head->plcp[3] & 0x80)
430 if (head->plcp[6] & 0x80)
433 status->rate_idx = clamp(0, 75, head->plcp[3] & 0x7f);
626 struct ar9170_rx_head *head; local
648 head
292 carl9170_rx_mac_status(struct ar9170 *ar, struct ar9170_rx_head *head, struct ar9170_rx_macstatus *mac, struct ieee80211_rx_status *status) argument
[all...]
/drivers/staging/zsmalloc/
H A Dzsmalloc-main.c113 struct page **head; local
120 head = &class->fullness_list[fullness];
121 if (*head)
122 list_add_tail(&page->lru, &(*head)->lru);
124 *head = page;
130 struct page **head; local
137 head = &class->fullness_list[fullness];
138 BUG_ON(!*head);
139 if (list_empty(&(*head)->lru))
140 *head
[all...]
/drivers/net/wireless/bcmdhd/
H A Dbcmutils.c231 if (q->head)
234 q->head = p;
260 if (q->head == NULL)
263 PKTSETLINK(p, q->head);
264 q->head = p;
285 if ((p = q->head) == NULL)
288 if ((q->head = PKTLINK(p)) == NULL)
336 if ((p = q->head) == NULL)
345 q->head = NULL;
362 p = q->head;
365 bool head = (p == q->head); local
[all...]

Completed in 1373 milliseconds

1234567891011>>