Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/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-6.3-rc2/drivers/misc/mei/
A Dinterrupt.c202 buf_sz = length + cb->buf_idx; in mei_cl_irq_read_msg()
204 if (buf_sz < cb->buf_idx) { in mei_cl_irq_read_msg()
206 length, cb->buf_idx); in mei_cl_irq_read_msg()
213 cb->buf.size, length, cb->buf_idx); in mei_cl_irq_read_msg()
219 mei_dma_ring_read(dev, cb->buf.data + cb->buf_idx, length); in mei_cl_irq_read_msg()
221 mei_read_slots(dev, cb->buf.data + cb->buf_idx, 0); in mei_cl_irq_read_msg()
223 mei_read_slots(dev, cb->buf.data + cb->buf_idx, length); in mei_cl_irq_read_msg()
226 cb->buf_idx += length; in mei_cl_irq_read_msg()
229 cl_dbg(dev, cl, "completed read length = %zu\n", cb->buf_idx); in mei_cl_irq_read_msg()
308 cb->buf_idx = 0; in mei_cl_irq_read()
A Dclient.c402 cb->buf_idx = 0; in mei_io_cb_init()
1775 is_vtag = (cb->vtag && cb->buf_idx == 0); in mei_msg_hdr_init()
1860 first_chunk = cb->buf_idx == 0; in mei_cl_irq_write()
1872 buf_len = buf->size - cb->buf_idx; in mei_cl_irq_write()
1873 data = buf->data + cb->buf_idx; in mei_cl_irq_write()
1921 mei_dma_ring_write(dev, buf->data + cb->buf_idx, buf_len); in mei_cl_irq_write()
1929 cb->buf_idx += buf_len; in mei_cl_irq_write()
2002 cb->buf_idx = 0; in mei_cl_write()
2073 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-6.3-rc2/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-6.3-rc2/drivers/hid/intel-ish-hid/ishtp/
A Dclient.c486 rb->buf_idx = 0; in ishtp_cl_read_start()
881 if (rb->buffer.size < ishtp_hdr->length + rb->buf_idx) { in recv_ishtp_cl_msg()
886 rb->buf_idx); in recv_ishtp_cl_msg()
893 buffer = rb->buffer.data + rb->buf_idx; in recv_ishtp_cl_msg()
896 rb->buf_idx += ishtp_hdr->length; in recv_ishtp_cl_msg()
916 new_rb->buf_idx = 0; in recv_ishtp_cl_msg()
1007 rb->buffer.size, hbm->msg_length, rb->buf_idx); in recv_ishtp_cl_msg_dma()
1025 rb->buf_idx = hbm->msg_length; in recv_ishtp_cl_msg_dma()
1045 new_rb->buf_idx = 0; in recv_ishtp_cl_msg_dma()
/linux-6.3-rc2/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.h42 void amvdec_dst_buf_done_idx(struct amvdec_session *sess, u32 buf_idx,
A Dvdec_helpers.c407 u32 buf_idx, u32 offset, u32 field) in amvdec_dst_buf_done_idx() argument
413 sess->fw_idx_to_vb2_idx[buf_idx]); in amvdec_dst_buf_done_idx()
418 buf_idx); in amvdec_dst_buf_done_idx()
A Dvdec.h138 void (*recycle)(struct amvdec_core *core, u32 buf_idx);
/linux-6.3-rc2/drivers/net/wwan/t7xx/
A Dt7xx_hif_dpmaif.c35 unsigned int t7xx_ring_buf_get_next_wr_idx(unsigned int buf_len, unsigned int buf_idx) in t7xx_ring_buf_get_next_wr_idx() argument
37 buf_idx++; in t7xx_ring_buf_get_next_wr_idx()
39 return buf_idx < buf_len ? buf_idx : 0; in t7xx_ring_buf_get_next_wr_idx()
A Dt7xx_hif_dpmaif.h198 unsigned int t7xx_ring_buf_get_next_wr_idx(unsigned int buf_len, unsigned int buf_idx);
/linux-6.3-rc2/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-6.3-rc2/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()
/linux-6.3-rc2/drivers/iio/imu/bno055/
A Dbno055.c1384 __le16 *buf, int *buf_idx) in bno055_scan_xfer() argument
1388 int buf_base = *buf_idx; in bno055_scan_xfer()
1425 dst = buf + *buf_idx; in bno055_scan_xfer()
1433 *buf_idx += n; in bno055_scan_xfer()
1447 int buf_idx = 0; in bno055_trigger_handler() local
1497 mask, priv->buf.chans, &buf_idx); in bno055_trigger_handler()
1514 mask, priv->buf.chans, &buf_idx); in bno055_trigger_handler()
/linux-6.3-rc2/drivers/iio/adc/
A Dat91-sama5d2_adc.c542 int buf_idx; member
1186 if (i >= st->dma_st.buf_idx) in at91_adc_dma_size_done()
1187 size = i - st->dma_st.buf_idx; in at91_adc_dma_size_done()
1189 size = st->dma_st.rx_buf_sz + i - st->dma_st.buf_idx; in at91_adc_dma_size_done()
1212 st->dma_st.buf_idx = 0; in at91_adc_dma_start()
1512 &st->dma_st.rx_buf[st->dma_st.buf_idx], in at91_adc_trigger_handler_dma()
1516 (st->dma_st.rx_buf + st->dma_st.buf_idx), in at91_adc_trigger_handler_dma()
1521 st->dma_st.buf_idx += sample_size; in at91_adc_trigger_handler_dma()
1523 if (st->dma_st.buf_idx >= st->dma_st.rx_buf_sz) in at91_adc_trigger_handler_dma()
1524 st->dma_st.buf_idx = 0; in at91_adc_trigger_handler_dma()
/linux-6.3-rc2/include/linux/
A Dintel-ish-client-if.h72 unsigned long buf_idx; member
/linux-6.3-rc2/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-6.3-rc2/drivers/net/can/spi/
A Dmcp251x.c667 int buf_idx) in mcp251x_hw_rx_frame() argument
675 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame()
679 buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); in mcp251x_hw_rx_frame()
681 priv->spi_tx_buf[RXBCTRL_OFF] = INSTRUCTION_READ_RXB(buf_idx); in mcp251x_hw_rx_frame()
695 static void mcp251x_hw_rx(struct spi_device *spi, int buf_idx) in mcp251x_hw_rx() argument
709 mcp251x_hw_rx_frame(spi, buf, buf_idx); in mcp251x_hw_rx()
/linux-6.3-rc2/drivers/net/ethernet/microsoft/mana/
A Dmana_en.c1639 u32 buf_idx; in mana_alloc_rx_wqe() local
1646 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_alloc_rx_wqe()
1647 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_alloc_rx_wqe()
1688 u32 buf_idx; in mana_push_wqe() local
1691 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_push_wqe()
1692 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_push_wqe()
/linux-6.3-rc2/drivers/hwtracing/ptt/
A Dhisi_ptt.c299 u32 status, buf_idx; in hisi_ptt_isr() local
305 buf_idx = ffs(status) - 1; in hisi_ptt_isr()
316 if (hisi_ptt_update_aux(hisi_ptt, buf_idx, false)) in hisi_ptt_isr()
319 hisi_ptt->trace_ctrl.buf_index = (buf_idx + 1) % HISI_PTT_TRACE_BUF_CNT; in hisi_ptt_isr()
/linux-6.3-rc2/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()

Completed in 78 milliseconds

12