/linux/drivers/misc/mei/ |
A D | interrupt.c | 169 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 D | client.c | 401 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 D | main.c | 246 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 D | mmap_lock.c | 46 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 D | pt3_i2c.c | 47 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 D | pt3_dma.c | 77 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 D | pt3.h | 129 int buf_idx; member
|
/linux/drivers/staging/media/sunxi/cedrus/ |
A D | cedrus_h264.c | 114 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 D | client.c | 486 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 D | codec_mpeg12.c | 58 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 D | codec_h264.c | 154 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 D | vdec_helpers.c | 403 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 D | vdec_helpers.h | 42 void amvdec_dst_buf_done_idx(struct amvdec_session *sess, u32 buf_idx,
|
A D | vdec.h | 138 void (*recycle)(struct amvdec_core *core, u32 buf_idx);
|
/linux/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_rxtx.c | 270 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 D | lcs.c | 244 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 D | lcs.h | 296 int buf_idx; member
|
/linux/drivers/iio/adc/ |
A D | at91-sama5d2_adc.c | 456 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 D | mana_en.c | 1330 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 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()
|
/linux/drivers/net/can/spi/ |
A D | mcp251x.c | 669 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 D | intel-ish-client-if.h | 72 unsigned long buf_idx; member
|
/linux/arch/powerpc/sysdev/ |
A D | fsl_rmu.c | 987 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 D | rkvdec-h264.c | 864 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 D | spectrum_buffers.c | 310 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()
|