/drivers/misc/mei/ |
D | interrupt.c | 147 if (cb->response_buffer.size < mei_hdr->length + cb->buf_idx) { in mei_cl_irq_read_msg() 150 mei_hdr->length, cb->buf_idx); in mei_cl_irq_read_msg() 152 mei_hdr->length + cb->buf_idx, in mei_cl_irq_read_msg() 162 mei_hdr->length + cb->buf_idx; in mei_cl_irq_read_msg() 165 buffer = cb->response_buffer.data + cb->buf_idx; in mei_cl_irq_read_msg() 168 cb->buf_idx += mei_hdr->length; in mei_cl_irq_read_msg() 175 cb->buf_idx); in mei_cl_irq_read_msg() 217 cb_pos->buf_idx = 0; in _mei_irq_thread_close() 224 cb_pos->buf_idx = 0; in _mei_irq_thread_close() 260 cb_pos->buf_idx = 0; in _mei_irq_thread_read() [all …]
|
D | amthif.c | 231 if (cb->buf_idx >= *offset && length >= (cb->buf_idx - *offset)) in mei_amthif_read() 233 else if (cb->buf_idx > 0 && cb->buf_idx <= *offset) { in mei_amthif_read() 245 dev_dbg(&dev->pdev->dev, "amthif cb->buf_idx - %lu\n", cb->buf_idx); in mei_amthif_read() 249 length = min_t(size_t, length, (cb->buf_idx - *offset)); in mei_amthif_read() 255 if ((*offset + length) < cb->buf_idx) { in mei_amthif_read() 494 cb->buf_idx = dev->iamthif_msg_buf_index; in mei_amthif_irq_write_complete() 548 cb->buf_idx = dev->iamthif_msg_buf_index; in mei_amthif_irq_read_msg()
|
D | main.c | 232 if (cl->read_cb && cl->read_cb->buf_idx > *offset) { in mei_read() 235 } else if (cl->read_cb && cl->read_cb->buf_idx > 0 && in mei_read() 236 cl->read_cb->buf_idx <= *offset) { in mei_read() 240 } else if ((!cl->read_cb || !cl->read_cb->buf_idx) && *offset > 0) { in mei_read() 296 cb->response_buffer.size, cb->buf_idx); in mei_read() 297 if (length == 0 || ubuf == NULL || *offset > cb->buf_idx) { in mei_read() 304 length = min_t(size_t, length, cb->buf_idx - *offset); in mei_read() 313 if ((unsigned long)*offset < cb->buf_idx) in mei_read()
|
D | client.c | 128 cb->buf_idx = 0; in mei_io_cb_init() 723 cb->buf_idx = 0; in mei_cl_write() 756 cb->buf_idx = mei_hdr.length; in mei_cl_write()
|
D | mei_dev.h | 183 unsigned long buf_idx; member
|
D | bus.c | 317 r_length = min_t(size_t, length, cb->buf_idx); in __mei_cl_recv()
|
/drivers/media/usb/usbvision/ |
D | usbvision-core.c | 2336 int buf_idx, err_code, reg_value; in usbvision_init_isoc() local 2364 for (buf_idx = 0; buf_idx < USBVISION_NUMSBUF; buf_idx++) { in usbvision_init_isoc() 2374 usbvision->sbuf[buf_idx].urb = urb; in usbvision_init_isoc() 2375 usbvision->sbuf[buf_idx].data = in usbvision_init_isoc() 2385 urb->transfer_buffer = usbvision->sbuf[buf_idx].data; in usbvision_init_isoc() 2399 for (buf_idx = 0; buf_idx < USBVISION_NUMSBUF; buf_idx++) { in usbvision_init_isoc() 2400 err_code = usb_submit_urb(usbvision->sbuf[buf_idx].urb, in usbvision_init_isoc() 2405 __func__, buf_idx, err_code); in usbvision_init_isoc() 2425 int buf_idx, err_code, reg_value; in usbvision_stop_isoc() local 2432 for (buf_idx = 0; buf_idx < USBVISION_NUMSBUF; buf_idx++) { in usbvision_stop_isoc() [all …]
|
/drivers/gpu/drm/radeon/ |
D | r300_cmdbuf.c | 907 u32 i, *buf_idx, h_pending; in r300_scratch() local 913 (sizeof(u64) + header.scratch.n_bufs * sizeof(*buf_idx))) { in r300_scratch() 928 buf_idx = drm_buffer_pointer_to_dword(cmdbuf->buffer, 0); in r300_scratch() 929 *buf_idx *= 2; /* 8 bytes per buf */ in r300_scratch() 931 if (DRM_COPY_TO_USER(ref_age_base + *buf_idx, in r300_scratch() 937 ref_age_base + *buf_idx + 1, in r300_scratch() 946 if (DRM_COPY_TO_USER(ref_age_base + *buf_idx + 1, in r300_scratch() 951 drm_buffer_advance(cmdbuf->buffer, sizeof(*buf_idx)); in r300_scratch() 1106 idx = header->dma.buf_idx; in r300_do_cp_cmdbuf()
|
D | radeon_state.c | 2952 idx = header->dma.buf_idx; in radeon_cp_cmdbuf()
|
/drivers/staging/wlags49_h2/ |
D | wl_wext.c | 92 int buf_idx = 0; in hermes_set_tkip_keys() local 110 memcpy(<v->u.u8[buf_idx], addr, ETH_ALEN); in hermes_set_tkip_keys() 111 buf_idx += ETH_ALEN; in hermes_set_tkip_keys() 114 memcpy(<v->u.u8[buf_idx], &key[0], 16); in hermes_set_tkip_keys() 115 buf_idx += 16; in hermes_set_tkip_keys() 118 memcpy(<v->u.u8[buf_idx], tsc, IW_ENCODE_SEQ_MAX_SIZE); in hermes_set_tkip_keys() 119 buf_idx += IW_ENCODE_SEQ_MAX_SIZE; in hermes_set_tkip_keys() 122 memcpy(<v->u.u8[buf_idx], seq, IW_ENCODE_SEQ_MAX_SIZE); in hermes_set_tkip_keys() 123 buf_idx += IW_ENCODE_SEQ_MAX_SIZE; in hermes_set_tkip_keys() 126 memcpy(<v->u.u8[buf_idx], &key[16], 8); in hermes_set_tkip_keys() [all …]
|
/drivers/s390/net/ |
D | lcs.c | 259 card->read.buf_idx = 0; in lcs_setup_read_ccws() 306 card->write.buf_idx = 0; in lcs_setup_write_ccws() 1478 int buf_idx; in lcs_tasklet() local 1485 buf_idx = channel->buf_idx; in lcs_tasklet() 1486 while (iob[buf_idx].state == LCS_BUF_STATE_PROCESSED) { in lcs_tasklet() 1488 if (iob[buf_idx].callback != NULL) in lcs_tasklet() 1489 iob[buf_idx].callback(channel, iob + buf_idx); in lcs_tasklet() 1490 buf_idx = (buf_idx + 1) & (LCS_NUM_BUFFS - 1); in lcs_tasklet() 1492 channel->buf_idx = buf_idx; in lcs_tasklet()
|
D | lcs.h | 299 int buf_idx; member
|
/drivers/net/can/ |
D | mcp251x.c | 435 int buf_idx) in mcp251x_hw_rx_frame() argument 443 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame() 447 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame() 449 priv->spi_tx_buf[RXBCTRL_OFF] = INSTRUCTION_READ_RXB(buf_idx); in mcp251x_hw_rx_frame() 455 static void mcp251x_hw_rx(struct spi_device *spi, int buf_idx) in mcp251x_hw_rx() argument 469 mcp251x_hw_rx_frame(spi, buf, buf_idx); in mcp251x_hw_rx()
|
/drivers/dma/ipu/ |
D | ipu_idmac.c | 777 struct idmac_tx_desc *desc, struct scatterlist *sg, int buf_idx) in ipu_submit_buffer() argument 791 ipu_update_channel_buffer(ichan, buf_idx, sg_dma_address(sg)); in ipu_submit_buffer() 793 ipu_select_buffer(chan_id, buf_idx); in ipu_submit_buffer() 795 sg, chan_id, buf_idx); in ipu_submit_buffer()
|