/linux-6.6.21/mm/ |
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-6.6.21/drivers/misc/mei/ |
D | interrupt.c | 202 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()
|
D | client.c | 402 cb->buf_idx = 0; in mei_io_cb_init() 1777 is_vtag = (cb->vtag && cb->buf_idx == 0); in mei_msg_hdr_init() 1862 first_chunk = cb->buf_idx == 0; in mei_cl_irq_write() 1874 buf_len = buf->size - cb->buf_idx; in mei_cl_irq_write() 1875 data = buf->data + cb->buf_idx; in mei_cl_irq_write() 1923 mei_dma_ring_write(dev, buf->data + cb->buf_idx, buf_len); in mei_cl_irq_write() 1931 cb->buf_idx += buf_len; in mei_cl_irq_write() 2004 cb->buf_idx = 0; in mei_cl_write() 2075 cb->buf_idx = buf_len; in mei_cl_write()
|
D | main.c | 248 cb->buf.size, cb->buf_idx, *offset); in mei_read() 249 if (*offset >= cb->buf_idx) { in mei_read() 256 length = min_t(size_t, length, cb->buf_idx - *offset); in mei_read() 267 if (*offset < cb->buf_idx) in mei_read()
|
/linux-6.6.21/drivers/media/pci/pt3/ |
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()
|
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()
|
D | pt3.h | 129 int buf_idx; member
|
/linux-6.6.21/drivers/hid/intel-ish-hid/ishtp/ |
D | client.c | 486 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.6.21/drivers/staging/media/meson/vdec/ |
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()
|
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()
|
D | vdec_helpers.h | 42 void amvdec_dst_buf_done_idx(struct amvdec_session *sess, u32 buf_idx,
|
D | vdec_helpers.c | 407 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()
|
D | vdec.h | 138 void (*recycle)(struct amvdec_core *core, u32 buf_idx);
|
/linux-6.6.21/drivers/net/wwan/t7xx/ |
D | t7xx_hif_dpmaif.c | 35 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()
|
D | t7xx_hif_dpmaif.h | 198 unsigned int t7xx_ring_buf_get_next_wr_idx(unsigned int buf_len, unsigned int buf_idx);
|
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/ |
D | prestera_rxtx.c | 267 static int prestera_sdma_next_rx_buf_idx(int buf_idx) in prestera_sdma_next_rx_buf_idx() argument 269 return (buf_idx + 1) % PRESTERA_SDMA_RX_DESC_PER_Q; in prestera_sdma_next_rx_buf_idx() 294 int buf_idx = ring->next_rx; in prestera_sdma_rx_poll() local 297 buf = &ring->bufs[buf_idx]; in prestera_sdma_rx_poll() 320 ring->next_rx = prestera_sdma_next_rx_buf_idx(buf_idx); in prestera_sdma_rx_poll()
|
/linux-6.6.21/drivers/s390/net/ |
D | lcs.c | 239 card->read.buf_idx = 0; in lcs_setup_read_ccws() 286 card->write.buf_idx = 0; in lcs_setup_write_ccws() 1447 int buf_idx; in lcs_tasklet() local 1454 buf_idx = channel->buf_idx; in lcs_tasklet() 1455 while (iob[buf_idx].state == LCS_BUF_STATE_PROCESSED) { in lcs_tasklet() 1457 if (iob[buf_idx].callback != NULL) in lcs_tasklet() 1458 iob[buf_idx].callback(channel, iob + buf_idx); in lcs_tasklet() 1459 buf_idx = (buf_idx + 1) & (LCS_NUM_BUFFS - 1); in lcs_tasklet() 1461 channel->buf_idx = buf_idx; in lcs_tasklet()
|
/linux-6.6.21/drivers/iio/imu/bno055/ |
D | bno055.c | 1384 __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.6.21/drivers/iio/adc/ |
D | at91-sama5d2_adc.c | 542 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.6.21/include/linux/ |
D | intel-ish-client-if.h | 72 unsigned long buf_idx; member
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/net/can/spi/ |
D | mcp251x.c | 667 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.6.21/arch/powerpc/sysdev/ |
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-6.6.21/drivers/net/ethernet/microsoft/mana/ |
D | mana_en.c | 2080 u32 buf_idx; in mana_alloc_rx_wqe() local 2088 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_alloc_rx_wqe() 2089 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_alloc_rx_wqe() 2117 u32 buf_idx; in mana_push_wqe() local 2120 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_push_wqe() 2121 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_push_wqe()
|
/linux-6.6.21/tools/lib/bpf/ |
D | libbpf.h | 1434 LIBBPF_API int perf_buffer__consume_buffer(struct perf_buffer *pb, size_t buf_idx); 1436 LIBBPF_API int perf_buffer__buffer_fd(const struct perf_buffer *pb, size_t buf_idx); 1451 LIBBPF_API int perf_buffer__buffer(struct perf_buffer *pb, int buf_idx, void **buf,
|