/drivers/misc/mei/ |
D | interrupt.c | 120 if (cb->response_buffer.size < mei_hdr->length + cb->buf_idx) { in mei_cl_irq_read_msg() 123 mei_hdr->length, cb->buf_idx); in mei_cl_irq_read_msg() 125 mei_hdr->length + cb->buf_idx, in mei_cl_irq_read_msg() 134 mei_hdr->length + cb->buf_idx; in mei_cl_irq_read_msg() 137 buffer = cb->response_buffer.data + cb->buf_idx; in mei_cl_irq_read_msg() 140 cb->buf_idx += mei_hdr->length; in mei_cl_irq_read_msg() 145 cb->buf_idx); in mei_cl_irq_read_msg() 221 cb->buf_idx = 0; in mei_cl_irq_disconnect() 228 cb->buf_idx = 0; in mei_cl_irq_disconnect() 263 cb->buf_idx = 0; in mei_cl_irq_read() [all …]
|
D | amthif.c | 215 if (cb->buf_idx >= *offset && length >= (cb->buf_idx - *offset)) in mei_amthif_read() 217 else if (cb->buf_idx > 0 && cb->buf_idx <= *offset) { in mei_amthif_read() 229 dev_dbg(dev->dev, "amthif cb->buf_idx - %lu\n", cb->buf_idx); in mei_amthif_read() 233 length = min_t(size_t, length, (cb->buf_idx - *offset)); in mei_amthif_read() 240 if ((*offset + length) < cb->buf_idx) { in mei_amthif_read() 489 cb->buf_idx = dev->iamthif_msg_buf_index; in mei_amthif_irq_write() 543 cb->buf_idx = dev->iamthif_msg_buf_index; in mei_amthif_irq_read_msg()
|
D | main.c | 198 if (cb->buf_idx > *offset) in mei_read() 201 if (cb->buf_idx > 0 && cb->buf_idx <= *offset) { in mei_read() 206 if (cb->buf_idx == 0 && *offset > 0) in mei_read() 258 cb->response_buffer.size, cb->buf_idx); in mei_read() 259 if (length == 0 || ubuf == NULL || *offset > cb->buf_idx) { in mei_read() 266 length = min_t(size_t, length, cb->buf_idx - *offset); in mei_read() 276 if ((unsigned long)*offset < cb->buf_idx) in mei_read()
|
D | client.c | 215 cb->buf_idx = 0; in mei_io_cb_init() 873 len = buf->size - cb->buf_idx; in mei_cl_irq_write() 896 cb->request_buffer.size, cb->buf_idx); in mei_cl_irq_write() 898 rets = mei_write_message(dev, &mei_hdr, buf->data + cb->buf_idx); in mei_cl_irq_write() 907 cb->buf_idx += mei_hdr.length; in mei_cl_irq_write() 957 cb->buf_idx = 0; in mei_cl_write() 995 cb->buf_idx = mei_hdr.length; in mei_cl_write()
|
D | mei_dev.h | 205 unsigned long buf_idx; member
|
D | bus.c | 320 r_length = min_t(size_t, length, cb->buf_idx); in __mei_cl_recv()
|
/drivers/media/pci/pt3/ |
D | pt3_i2c.c | 56 int buf_idx; in cmdbuf_add() local 62 buf_idx = cbuf->num_cmds / 2; in cmdbuf_add() 63 if (buf_idx < ARRAY_SIZE(cbuf->data)) in cmdbuf_add() 64 cbuf->data[buf_idx] = cbuf->tmp; in cmdbuf_add()
|
D | pt3_dma.c | 86 idx = adap->buf_idx; in pt3_proc_dma() 95 p = &adap->buffer[adap->buf_idx].data[adap->buf_ofs]; in pt3_proc_dma() 108 adap->buf_idx = idx; in pt3_proc_dma() 132 adap->buf_idx = 0; in pt3_init_dmabuf()
|
D | pt3.h | 138 int buf_idx; member
|
/drivers/media/usb/usbvision/ |
D | usbvision-core.c | 2330 int buf_idx, err_code, reg_value; in usbvision_init_isoc() local 2358 for (buf_idx = 0; buf_idx < USBVISION_NUMSBUF; buf_idx++) { in usbvision_init_isoc() 2368 usbvision->sbuf[buf_idx].urb = urb; in usbvision_init_isoc() 2369 usbvision->sbuf[buf_idx].data = in usbvision_init_isoc() 2379 urb->transfer_buffer = usbvision->sbuf[buf_idx].data; in usbvision_init_isoc() 2393 for (buf_idx = 0; buf_idx < USBVISION_NUMSBUF; buf_idx++) { in usbvision_init_isoc() 2394 err_code = usb_submit_urb(usbvision->sbuf[buf_idx].urb, in usbvision_init_isoc() 2399 __func__, buf_idx, err_code); in usbvision_init_isoc() 2419 int buf_idx, err_code, reg_value; in usbvision_stop_isoc() local 2426 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 (copy_to_user(ref_age_base + *buf_idx, in r300_scratch() 937 ref_age_base + *buf_idx + 1, in r300_scratch() 946 if (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/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() 1479 int buf_idx; in lcs_tasklet() local 1486 buf_idx = channel->buf_idx; in lcs_tasklet() 1487 while (iob[buf_idx].state == LCS_BUF_STATE_PROCESSED) { in lcs_tasklet() 1489 if (iob[buf_idx].callback != NULL) in lcs_tasklet() 1490 iob[buf_idx].callback(channel, iob + buf_idx); in lcs_tasklet() 1491 buf_idx = (buf_idx + 1) & (LCS_NUM_BUFFS - 1); in lcs_tasklet() 1493 channel->buf_idx = buf_idx; in lcs_tasklet()
|
D | lcs.h | 293 int buf_idx; member
|
/drivers/net/can/spi/ |
D | mcp251x.c | 440 int buf_idx) in mcp251x_hw_rx_frame() argument 448 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame() 452 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame() 454 priv->spi_tx_buf[RXBCTRL_OFF] = INSTRUCTION_READ_RXB(buf_idx); in mcp251x_hw_rx_frame() 460 static void mcp251x_hw_rx(struct spi_device *spi, int buf_idx) in mcp251x_hw_rx() argument 474 mcp251x_hw_rx_frame(spi, buf, buf_idx); in mcp251x_hw_rx()
|
/drivers/char/xillybus/ |
D | xillybus_core.c | 1565 int buf_idx; in xillybus_release() local 1614 buf_idx = channel->wr_fpga_buf_idx; in xillybus_release() 1626 buf_idx++; in xillybus_release() 1627 if (buf_idx == channel->num_wr_buffers) in xillybus_release() 1628 buf_idx = 0; in xillybus_release() 1630 if (buf_idx == eof) in xillybus_release()
|
/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()
|