Home
last modified time | relevance | path

Searched refs:buf_idx (Results 1 – 18 of 18) sorted by relevance

/drivers/misc/mei/
Dinterrupt.c126 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()
Dclient.c374 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()
Dmain.c225 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()
Dmei_dev.h179 size_t buf_idx; member
Dbus.c163 r_length = min_t(size_t, length, cb->buf_idx); in __mei_cl_recv()
/drivers/media/pci/pt3/
Dpt3_i2c.c56 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()
Dpt3_dma.c86 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()
Dpt3.h138 int buf_idx; member
/drivers/media/usb/usbvision/
Dusbvision-core.c2273 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/
Dclient.c481 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()
Dishtp-dev.h104 unsigned long buf_idx; member
Dclient-buffers.c197 rb->buf_idx = 0; in ishtp_io_rb_init()
/drivers/s390/net/
Dlcs.c257 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()
Dlcs.h293 int buf_idx; member
/drivers/net/can/spi/
Dmcp251x.c441 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/
Dxillybus_core.c1569 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/
Dipu_idmac.c777 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/
Dishtp-hid-client.c344 r_length = rb_in_proc->buf_idx; in ish_cl_event_cb()