Home
last modified time | relevance | path

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

12

/linux/drivers/misc/mei/
A Dinterrupt.c169 buf_sz = length + cb->buf_idx; in mei_cl_irq_read_msg()
171 if (buf_sz < cb->buf_idx) { in mei_cl_irq_read_msg()
173 length, cb->buf_idx); in mei_cl_irq_read_msg()
180 cb->buf.size, length, cb->buf_idx); in mei_cl_irq_read_msg()
186 mei_dma_ring_read(dev, cb->buf.data + cb->buf_idx, length); in mei_cl_irq_read_msg()
188 mei_read_slots(dev, cb->buf.data + cb->buf_idx, 0); in mei_cl_irq_read_msg()
190 mei_read_slots(dev, cb->buf.data + cb->buf_idx, length); in mei_cl_irq_read_msg()
193 cb->buf_idx += length; in mei_cl_irq_read_msg()
196 cl_dbg(dev, cl, "completed read length = %zu\n", cb->buf_idx); in mei_cl_irq_read_msg()
275 cb->buf_idx = 0; in mei_cl_irq_read()
A Dclient.c401 cb->buf_idx = 0; in mei_io_cb_init()
1758 is_vtag = (cb->vtag && cb->buf_idx == 0); in mei_msg_hdr_init()
1828 first_chunk = cb->buf_idx == 0; in mei_cl_irq_write()
1839 buf_len = buf->size - cb->buf_idx; in mei_cl_irq_write()
1840 data = buf->data + cb->buf_idx; in mei_cl_irq_write()
1890 mei_dma_ring_write(dev, buf->data + cb->buf_idx, buf_len); in mei_cl_irq_write()
1898 cb->buf_idx += buf_len; in mei_cl_irq_write()
1968 cb->buf_idx = 0; in mei_cl_write()
2042 cb->buf_idx = buf_len; in mei_cl_write()
A Dmain.c246 cb->buf.size, cb->buf_idx, *offset); in mei_read()
247 if (*offset >= cb->buf_idx) { in mei_read()
254 length = min_t(size_t, length, cb->buf_idx - *offset); in mei_read()
265 if (*offset < cb->buf_idx) in mei_read()
/linux/mm/
A Dmmap_lock.c46 local_t buf_idx; member
50 .buf_idx = LOCAL_INIT(0),
145 idx = local_add_return(MEMCG_PATH_BUF_SIZE, &memcg_path->buf_idx) - in get_memcg_path_buf()
152 local_sub(MEMCG_PATH_BUF_SIZE, &this_cpu_ptr(&memcg_paths)->buf_idx); in put_memcg_path_buf()
/linux/drivers/media/pci/pt3/
A Dpt3_i2c.c47 int buf_idx; in cmdbuf_add() local
53 buf_idx = cbuf->num_cmds / 2; in cmdbuf_add()
54 if (buf_idx < ARRAY_SIZE(cbuf->data)) in cmdbuf_add()
55 cbuf->data[buf_idx] = cbuf->tmp; in cmdbuf_add()
A Dpt3_dma.c77 idx = adap->buf_idx; in pt3_proc_dma()
86 p = &adap->buffer[adap->buf_idx].data[adap->buf_ofs]; in pt3_proc_dma()
99 adap->buf_idx = idx; in pt3_proc_dma()
123 adap->buf_idx = 0; in pt3_init_dmabuf()
A Dpt3.h129 int buf_idx; member
/linux/drivers/staging/media/sunxi/cedrus/
A Dcedrus_h264.c114 int buf_idx; in cedrus_write_frame_list() local
119 buf_idx = vb2_find_timestamp(cap_q, dpb->reference_ts, 0); in cedrus_write_frame_list()
120 if (buf_idx < 0) in cedrus_write_frame_list()
123 cedrus_buf = vb2_to_cedrus_buffer(cap_q->bufs[buf_idx]); in cedrus_write_frame_list()
189 int buf_idx; in _cedrus_write_ref_list() local
198 buf_idx = vb2_find_timestamp(cap_q, dpb->reference_ts, 0); in _cedrus_write_ref_list()
199 if (buf_idx < 0) in _cedrus_write_ref_list()
202 cedrus_buf = vb2_to_cedrus_buffer(cap_q->bufs[buf_idx]); in _cedrus_write_ref_list()
/linux/drivers/hid/intel-ish-hid/ishtp/
A Dclient.c486 rb->buf_idx = 0; in ishtp_cl_read_start()
874 if (rb->buffer.size < ishtp_hdr->length + rb->buf_idx) { in recv_ishtp_cl_msg()
879 rb->buf_idx); in recv_ishtp_cl_msg()
886 buffer = rb->buffer.data + rb->buf_idx; in recv_ishtp_cl_msg()
889 rb->buf_idx += ishtp_hdr->length; in recv_ishtp_cl_msg()
909 new_rb->buf_idx = 0; in recv_ishtp_cl_msg()
1000 rb->buffer.size, hbm->msg_length, rb->buf_idx); in recv_ishtp_cl_msg_dma()
1018 rb->buf_idx = hbm->msg_length; in recv_ishtp_cl_msg_dma()
1038 new_rb->buf_idx = 0; in recv_ishtp_cl_msg_dma()
/linux/drivers/staging/media/meson/vdec/
A Dcodec_mpeg12.c58 static void codec_mpeg12_recycle(struct amvdec_core *core, u32 buf_idx) in codec_mpeg12_recycle() argument
60 amvdec_write_dos(core, MREG_BUFFERIN, buf_idx + 1); in codec_mpeg12_recycle()
A Dcodec_h264.c154 static void codec_h264_recycle(struct amvdec_core *core, u32 buf_idx) in codec_h264_recycle() argument
161 amvdec_write_dos(core, AV_SCRATCH_7, buf_idx + 1); in codec_h264_recycle()
163 amvdec_write_dos(core, AV_SCRATCH_8, buf_idx + 1); in codec_h264_recycle()
A Dvdec_helpers.c403 u32 buf_idx, u32 offset, u32 field) in amvdec_dst_buf_done_idx() argument
409 sess->fw_idx_to_vb2_idx[buf_idx]); in amvdec_dst_buf_done_idx()
414 buf_idx); in amvdec_dst_buf_done_idx()
A Dvdec_helpers.h42 void amvdec_dst_buf_done_idx(struct amvdec_session *sess, u32 buf_idx,
A Dvdec.h138 void (*recycle)(struct amvdec_core *core, u32 buf_idx);
/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_rxtx.c270 static int prestera_sdma_next_rx_buf_idx(int buf_idx) in prestera_sdma_next_rx_buf_idx() argument
272 return (buf_idx + 1) % PRESTERA_SDMA_RX_DESC_PER_Q; in prestera_sdma_next_rx_buf_idx()
297 int buf_idx = ring->next_rx; in prestera_sdma_rx_poll() local
300 buf = &ring->bufs[buf_idx]; in prestera_sdma_rx_poll()
323 ring->next_rx = prestera_sdma_next_rx_buf_idx(buf_idx); in prestera_sdma_rx_poll()
/linux/drivers/s390/net/
A Dlcs.c244 card->read.buf_idx = 0; in lcs_setup_read_ccws()
291 card->write.buf_idx = 0; in lcs_setup_write_ccws()
1452 int buf_idx; in lcs_tasklet() local
1459 buf_idx = channel->buf_idx; in lcs_tasklet()
1460 while (iob[buf_idx].state == LCS_BUF_STATE_PROCESSED) { in lcs_tasklet()
1462 if (iob[buf_idx].callback != NULL) in lcs_tasklet()
1463 iob[buf_idx].callback(channel, iob + buf_idx); in lcs_tasklet()
1464 buf_idx = (buf_idx + 1) & (LCS_NUM_BUFFS - 1); in lcs_tasklet()
1466 channel->buf_idx = buf_idx; in lcs_tasklet()
A Dlcs.h296 int buf_idx; member
/linux/drivers/iio/adc/
A Dat91-sama5d2_adc.c456 int buf_idx; member
1006 if (i >= st->dma_st.buf_idx) in at91_adc_dma_size_done()
1007 size = i - st->dma_st.buf_idx; in at91_adc_dma_size_done()
1009 size = st->dma_st.rx_buf_sz + i - st->dma_st.buf_idx; in at91_adc_dma_size_done()
1032 st->dma_st.buf_idx = 0; in at91_adc_dma_start()
1314 &st->dma_st.rx_buf[st->dma_st.buf_idx], in at91_adc_trigger_handler_dma()
1318 (st->dma_st.rx_buf + st->dma_st.buf_idx), in at91_adc_trigger_handler_dma()
1323 st->dma_st.buf_idx += sample_size; in at91_adc_trigger_handler_dma()
1325 if (st->dma_st.buf_idx >= st->dma_st.rx_buf_sz) in at91_adc_trigger_handler_dma()
1326 st->dma_st.buf_idx = 0; in at91_adc_trigger_handler_dma()
/linux/drivers/net/ethernet/microsoft/mana/
A Dmana_en.c1330 u32 buf_idx; in mana_alloc_rx_wqe() local
1337 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_alloc_rx_wqe()
1338 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_alloc_rx_wqe()
1378 u32 buf_idx; in mana_push_wqe() local
1381 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_push_wqe()
1382 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_push_wqe()
/linux/drivers/char/xillybus/
A 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()
/linux/drivers/net/can/spi/
A Dmcp251x.c669 int buf_idx) in mcp251x_hw_rx_frame() argument
677 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame()
681 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame()
683 priv->spi_tx_buf[RXBCTRL_OFF] = INSTRUCTION_READ_RXB(buf_idx); in mcp251x_hw_rx_frame()
697 static void mcp251x_hw_rx(struct spi_device *spi, int buf_idx) in mcp251x_hw_rx() argument
711 mcp251x_hw_rx_frame(spi, buf, buf_idx); in mcp251x_hw_rx()
/linux/include/linux/
A Dintel-ish-client-if.h72 unsigned long buf_idx; member
/linux/arch/powerpc/sysdev/
A Dfsl_rmu.c987 int buf_idx; in fsl_get_inb_message() local
997 buf_idx = (phys_buf - rmu->msg_rx_ring.phys) / RIO_MAX_MSG_SIZE; in fsl_get_inb_message()
998 buf = rmu->msg_rx_ring.virt_buffer[buf_idx]; in fsl_get_inb_message()
1010 rmu->msg_rx_ring.virt_buffer[buf_idx] = NULL; in fsl_get_inb_message()
/linux/drivers/staging/media/rkvdec/
A Drkvdec-h264.c864 int buf_idx = -1; in get_ref_buf() local
867 buf_idx = vb2_find_timestamp(cap_q, in get_ref_buf()
874 if (buf_idx < 0) in get_ref_buf()
877 return vb2_get_buffer(cap_q, buf_idx); in get_ref_buf()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_buffers.c310 hdroom->prios.prio[prio].buf_idx = hdroom->prios.prio[prio].ets_buf_idx; in mlxsw_sp_hdroom_prios_reset_buf_idx()
313 hdroom->prios.prio[prio].buf_idx = hdroom->prios.prio[prio].set_buf_idx; in mlxsw_sp_hdroom_prios_reset_buf_idx()
329 hdroom->bufs.buf[hdroom->prios.prio[prio].buf_idx].lossy = false; in mlxsw_sp_hdroom_bufs_reset_lossiness()
377 if (hdroom->prios.prio[prio].buf_idx == buf) in mlxsw_sp_hdroom_buf_is_used()
481 mlxsw_reg_pptb_prio_to_buff_pack(pptb_pl, prio, hdroom->prios.prio[prio].buf_idx); in mlxsw_sp_hdroom_configure_priomap()

Completed in 74 milliseconds

12