/drivers/misc/mei/ |
D | interrupt.c | 126 buf_sz = mei_hdr->length + cb->buf_idx; in mei_cl_irq_read_msg() 128 if (buf_sz < cb->buf_idx) { in mei_cl_irq_read_msg() 130 mei_hdr->length, cb->buf_idx); in mei_cl_irq_read_msg() 139 cb->buf.size, mei_hdr->length, cb->buf_idx); in mei_cl_irq_read_msg() 146 mei_read_slots(dev, cb->buf.data + cb->buf_idx, mei_hdr->length); in mei_cl_irq_read_msg() 148 cb->buf_idx += mei_hdr->length; in mei_cl_irq_read_msg() 151 cl_dbg(dev, cl, "completed read length = %zu\n", cb->buf_idx); in mei_cl_irq_read_msg() 224 cb->buf_idx = 0; in mei_cl_irq_read()
|
D | client.c | 374 cb->buf_idx = 0; in mei_io_cb_init() 1538 first_chunk = cb->buf_idx == 0; in mei_cl_irq_write() 1550 len = buf->size - cb->buf_idx; in mei_cl_irq_write() 1573 cb->buf.size, cb->buf_idx); in mei_cl_irq_write() 1575 rets = mei_write_message(dev, &mei_hdr, buf->data + cb->buf_idx); in mei_cl_irq_write() 1581 cb->buf_idx += mei_hdr.length; in mei_cl_irq_write() 1641 cb->buf_idx = 0; in mei_cl_write() 1683 cb->buf_idx = mei_hdr.length; in mei_cl_write()
|
D | main.c | 225 cb->buf.size, cb->buf_idx, *offset); in mei_read() 226 if (*offset >= cb->buf_idx) { in mei_read() 233 length = min_t(size_t, length, cb->buf_idx - *offset); in mei_read() 244 if (*offset < cb->buf_idx) in mei_read()
|
D | mei_dev.h | 179 size_t buf_idx; member
|
D | bus.c | 163 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 | 2273 int buf_idx, err_code, reg_value; in usbvision_init_isoc() local 2301 for (buf_idx = 0; buf_idx < USBVISION_NUMSBUF; buf_idx++) { in usbvision_init_isoc() 2308 usbvision->sbuf[buf_idx].urb = urb; in usbvision_init_isoc() 2309 usbvision->sbuf[buf_idx].data = in usbvision_init_isoc() 2319 urb->transfer_buffer = usbvision->sbuf[buf_idx].data; in usbvision_init_isoc() 2333 for (buf_idx = 0; buf_idx < USBVISION_NUMSBUF; buf_idx++) { in usbvision_init_isoc() 2334 err_code = usb_submit_urb(usbvision->sbuf[buf_idx].urb, in usbvision_init_isoc() 2339 __func__, buf_idx, err_code); in usbvision_init_isoc() 2359 int buf_idx, err_code, reg_value; in usbvision_stop_isoc() local 2366 for (buf_idx = 0; buf_idx < USBVISION_NUMSBUF; buf_idx++) { in usbvision_stop_isoc() [all …]
|
/drivers/hid/intel-ish-hid/ishtp/ |
D | client.c | 481 rb->buf_idx = 0; in ishtp_cl_read_start() 859 if (rb->buffer.size < ishtp_hdr->length + rb->buf_idx) { in recv_ishtp_cl_msg() 865 rb->buf_idx); in recv_ishtp_cl_msg() 872 buffer = rb->buffer.data + rb->buf_idx; in recv_ishtp_cl_msg() 875 rb->buf_idx += ishtp_hdr->length; in recv_ishtp_cl_msg() 896 new_rb->buf_idx = 0; in recv_ishtp_cl_msg() 989 rb->buffer.size, hbm->msg_length, rb->buf_idx); in recv_ishtp_cl_msg_dma() 998 rb->buf_idx = hbm->msg_length; in recv_ishtp_cl_msg_dma() 1019 new_rb->buf_idx = 0; in recv_ishtp_cl_msg_dma()
|
D | ishtp-dev.h | 104 unsigned long buf_idx; member
|
D | client-buffers.c | 197 rb->buf_idx = 0; in ishtp_io_rb_init()
|
/drivers/s390/net/ |
D | lcs.c | 257 card->read.buf_idx = 0; in lcs_setup_read_ccws() 304 card->write.buf_idx = 0; in lcs_setup_write_ccws() 1477 int buf_idx; in lcs_tasklet() local 1484 buf_idx = channel->buf_idx; in lcs_tasklet() 1485 while (iob[buf_idx].state == LCS_BUF_STATE_PROCESSED) { in lcs_tasklet() 1487 if (iob[buf_idx].callback != NULL) in lcs_tasklet() 1488 iob[buf_idx].callback(channel, iob + buf_idx); in lcs_tasklet() 1489 buf_idx = (buf_idx + 1) & (LCS_NUM_BUFFS - 1); in lcs_tasklet() 1491 channel->buf_idx = buf_idx; in lcs_tasklet()
|
D | lcs.h | 293 int buf_idx; member
|
/drivers/net/can/spi/ |
D | mcp251x.c | 441 int buf_idx) in mcp251x_hw_rx_frame() argument 449 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame() 453 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame() 455 priv->spi_tx_buf[RXBCTRL_OFF] = INSTRUCTION_READ_RXB(buf_idx); in mcp251x_hw_rx_frame() 461 static void mcp251x_hw_rx(struct spi_device *spi, int buf_idx) in mcp251x_hw_rx() argument 475 mcp251x_hw_rx_frame(spi, buf, buf_idx); in mcp251x_hw_rx()
|
/drivers/char/xillybus/ |
D | xillybus_core.c | 1569 int buf_idx; in xillybus_release() local 1618 buf_idx = channel->wr_fpga_buf_idx; in xillybus_release() 1630 buf_idx++; in xillybus_release() 1631 if (buf_idx == channel->num_wr_buffers) in xillybus_release() 1632 buf_idx = 0; in xillybus_release() 1634 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()
|
/drivers/hid/intel-ish-hid/ |
D | ishtp-hid-client.c | 344 r_length = rb_in_proc->buf_idx; in ish_cl_event_cb()
|