Home
last modified time | relevance | path

Searched refs:buf_offset (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.12.1/drivers/gpu/drm/etnaviv/
Detnaviv_cmd_parser.c91 unsigned int buf_offset, unsigned int state_addr) in etnaviv_warn_if_non_sensitive() argument
93 if (state->num_relocs && state->relocs->submit_offset < buf_offset) { in etnaviv_warn_if_non_sensitive()
99 state->relocs->submit_offset < buf_offset) { in etnaviv_warn_if_non_sensitive()
110 unsigned int st_offset = state_offset, buf_offset; in etnaviv_validate_load_state() local
113 buf_offset = (ptr - state->start + in etnaviv_validate_load_state()
116 etnaviv_warn_if_non_sensitive(state, buf_offset, st_offset * 4); in etnaviv_validate_load_state()
118 state->relocs->submit_offset == buf_offset) { in etnaviv_validate_load_state()
126 __func__, st_offset * 4, buf_offset); in etnaviv_validate_load_state()
131 buf_offset = (ptr - state->start + num) * 4; in etnaviv_validate_load_state()
132 etnaviv_warn_if_non_sensitive(state, buf_offset, st_offset * 4 + in etnaviv_validate_load_state()
[all …]
/linux-6.12.1/sound/soc/sof/amd/
Dacp-pcm.c25 unsigned int buf_offset, index; in acp_pcm_hw_params() local
46 buf_offset = sdev->debug_box.offset + in acp_pcm_hw_params()
49 buf_offset = buf_offset + index * 4; in acp_pcm_hw_params()
51 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_SCRATCH_REG_0 + buf_offset, size); in acp_pcm_hw_params()
Dacp-probes.c75 unsigned int buf_offset, index; in acp_probes_compr_set_params() local
91 buf_offset = sdev->debug_box.offset + in acp_probes_compr_set_params()
94 buf_offset = buf_offset + index * 4; in acp_probes_compr_set_params()
96 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_SCRATCH_REG_0 + buf_offset, size); in acp_probes_compr_set_params()
/linux-6.12.1/drivers/firmware/qcom/
Dqcom_scm-legacy.c56 __le32 buf_offset; member
70 __le32 buf_offset; member
107 return (void *)rsp + le32_to_cpu(rsp->buf_offset); in scm_legacy_get_response_buffer()
156 cmd->buf_offset = cpu_to_le32(sizeof(*cmd)); in scm_legacy_call()
190 le32_to_cpu(rsp->buf_offset), in scm_legacy_call()
/linux-6.12.1/drivers/net/wireless/ti/wlcore/
Dtx.c188 struct sk_buff *skb, u32 extra, u32 buf_offset, in wl1271_tx_allocate() argument
197 if (buf_offset + total_len > wl->aggr_buf_size) in wl1271_tx_allocate()
358 struct sk_buff *skb, u32 buf_offset, u8 hlid) in wl1271_prepare_tx_frame() argument
404 ret = wl1271_tx_allocate(wl, wlvif, skb, extra, buf_offset, hlid, in wl1271_prepare_tx_frame()
426 memcpy(wl->aggr_buf + buf_offset, skb->data, skb->len); in wl1271_prepare_tx_frame()
427 memset(wl->aggr_buf + buf_offset + skb->len, 0, total_len - skb->len); in wl1271_prepare_tx_frame()
750 u32 buf_offset = 0, last_len = 0; in wlcore_tx_work_locked() local
771 ret = wl1271_prepare_tx_frame(wl, wlvif, skb, buf_offset, in wlcore_tx_work_locked()
780 buf_offset = wlcore_hw_pre_pkt_send(wl, buf_offset, in wlcore_tx_work_locked()
783 wl->aggr_buf, buf_offset, true); in wlcore_tx_work_locked()
[all …]
Dhw_ops.h191 wlcore_hw_pre_pkt_send(struct wl1271 *wl, u32 buf_offset, u32 last_len) in wlcore_hw_pre_pkt_send() argument
194 return wl->ops->pre_pkt_send(wl, buf_offset, last_len); in wlcore_hw_pre_pkt_send()
196 return buf_offset; in wlcore_hw_pre_pkt_send()
/linux-6.12.1/drivers/input/touchscreen/
Dmelfas_mip4.c885 u16 buf_offset; in mip4_bl_program_page() local
927 for (buf_offset = 0; in mip4_bl_program_page()
928 buf_offset < length; in mip4_bl_program_page()
929 buf_offset += MIP4_BL_PACKET_SIZE) { in mip4_bl_program_page()
932 buf_offset, MIP4_BL_PACKET_SIZE); in mip4_bl_program_page()
933 put_unaligned_be16(buf_addr + buf_offset, data_buf); in mip4_bl_program_page()
934 memcpy(&data_buf[2], &data[buf_offset], MIP4_BL_PACKET_SIZE); in mip4_bl_program_page()
941 buf_offset, MIP4_BL_PACKET_SIZE, error); in mip4_bl_program_page()
971 int buf_offset; in mip4_bl_verify_page() local
1036 for (buf_offset = 0; in mip4_bl_verify_page()
[all …]
/linux-6.12.1/drivers/gpu/drm/gma500/
Doaktrail_hdmi_i2c.c74 int buf_offset; member
101 i2c_dev->buf_offset = 0; in xfer_read()
182 offset = i2c_dev->buf_offset; in hdmi_i2c_read()
187 i2c_dev->buf_offset += (0x10 * 4); in hdmi_i2c_read()
/linux-6.12.1/drivers/net/ethernet/fungible/funeth/
Dfuneth_rx.c258 if (q->buf_offset + len <= PAGE_SIZE || !q->buf_offset) in get_buf()
279 q->buf_offset = 0; in get_buf()
318 PAGE_SIZE - q->buf_offset); in fun_gather_pkt()
320 buf->dma_addr + q->buf_offset, in fun_gather_pkt()
326 skb_frag_fill_page_desc(frags++, buf->page, q->buf_offset, in fun_gather_pkt()
333 q->buf_offset = PAGE_SIZE; in fun_gather_pkt()
335 q->buf_offset = ALIGN(q->buf_offset + frag_len, FUN_EPRQ_PKT_ALIGN); in fun_gather_pkt()
719 q->buf_offset = 0; in fun_rxq_create_dev()
Dfuneth_txrx.h181 unsigned int buf_offset; /* offset of next pkt in head buffer */ member
/linux-6.12.1/drivers/nvdimm/
Ddimm_devs.c90 size_t max_cmd_size, buf_offset; in nvdimm_get_config_data() local
103 for (buf_offset = 0; len; in nvdimm_get_config_data()
104 len -= cmd->in_length, buf_offset += cmd->in_length) { in nvdimm_get_config_data()
107 cmd->in_offset = offset + buf_offset; in nvdimm_get_config_data()
122 memcpy(buf + buf_offset, cmd->out_buf, cmd->in_length); in nvdimm_get_config_data()
132 size_t max_cmd_size, buf_offset; in nvdimm_set_config_data() local
149 for (buf_offset = 0; len; len -= cmd->in_length, in nvdimm_set_config_data()
150 buf_offset += cmd->in_length) { in nvdimm_set_config_data()
153 cmd->in_offset = offset + buf_offset; in nvdimm_set_config_data()
155 memcpy(cmd->in_buf, buf + buf_offset, cmd->in_length); in nvdimm_set_config_data()
/linux-6.12.1/arch/mips/fw/cfe/
Dcfe_api.c195 xiocb.plist.xiocb_buffer.buf_offset = 0; in cfe_getdevinfo()
319 xiocb.plist.xiocb_buffer.buf_offset = offset; in cfe_ioctl()
340 xiocb.plist.xiocb_buffer.buf_offset = 0; in cfe_open()
365 xiocb.plist.xiocb_buffer.buf_offset = offset; in cfe_readblk()
410 xiocb.plist.xiocb_buffer.buf_offset = offset; in cfe_writeblk()
Dcfe_api_int.h46 u64 buf_offset; /* offset on device (bytes) */ member
/linux-6.12.1/drivers/infiniband/ulp/iser/
Diser_initiator.c419 unsigned long buf_offset; in iser_send_data_out() local
427 buf_offset = ntohl(hdr->offset); in iser_send_data_out()
430 __func__,(int)itt,(int)data_seg_len,(int)buf_offset); in iser_send_data_out()
448 tx_dsg->addr = mem_reg->sge.addr + buf_offset; in iser_send_data_out()
453 if (buf_offset + data_seg_len > iser_task->data[ISER_DIR_OUT].data_len) { in iser_send_data_out()
455 buf_offset, data_seg_len, in iser_send_data_out()
461 itt, buf_offset, data_seg_len); in iser_send_data_out()
/linux-6.12.1/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-ahb-audio.c127 unsigned buf_offset; member
237 unsigned offset = dw->buf_offset; in dw_hdmi_start_dma()
260 dw->buf_offset = offset; in dw_hdmi_start_dma()
495 dw->buf_offset = 0; in dw_hdmi_trigger()
528 return bytes_to_frames(runtime, dw->buf_offset); in dw_hdmi_pointer()
/linux-6.12.1/drivers/staging/media/tegra-video/
Dtegra210.c385 u8 portno, u32 buf_offset, in tegra_channel_vi_buffer_setup() argument
393 ((u64)buf->addr + buf_offset) >> 32); in tegra_channel_vi_buffer_setup()
395 buf->addr + buf_offset); in tegra_channel_vi_buffer_setup()
404 (((u64)buf->addr + sizeimage / 2) + buf_offset) >> 32); in tegra_channel_vi_buffer_setup()
406 buf->addr + sizeimage / 2 + buf_offset); in tegra_channel_vi_buffer_setup()
417 u32 buf_offset; in tegra_channel_capture_frame() local
427 buf_offset = i * roundup(gang_bpl, SURFACE_ALIGN_BYTES); in tegra_channel_capture_frame()
428 tegra_channel_vi_buffer_setup(chan, portnos[i], buf_offset, in tegra_channel_capture_frame()
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_init_fw_funcs.c1827 u32 buf_size = buf_size_in_bytes / sizeof(u32), buf_offset = 0; in qed_fw_overlay_mem_alloc() local
1839 while (buf_offset < buf_size) { in qed_fw_overlay_mem_alloc()
1846 (struct fw_overlay_buf_hdr *)&fw_overlay_in_buf[buf_offset]; in qed_fw_overlay_mem_alloc()
1864 buf_offset += OVERLAY_HDR_SIZE_DWORDS; in qed_fw_overlay_mem_alloc()
1868 &fw_overlay_in_buf[buf_offset], storm_mem_desc->size); in qed_fw_overlay_mem_alloc()
1871 buf_offset += storm_buf_size; in qed_fw_overlay_mem_alloc()
1875 if (buf_offset < buf_size) { in qed_fw_overlay_mem_alloc()
/linux-6.12.1/drivers/net/ethernet/fungible/funcore/
Dfun_queue.c213 static void fun_rq_update_pos(struct fun_queue *funq, int buf_offset) in fun_rq_update_pos() argument
215 if (buf_offset <= funq->rq_buf_offset) { in fun_rq_update_pos()
225 funq->rq_buf_offset = buf_offset; in fun_rq_update_pos()
/linux-6.12.1/drivers/net/ethernet/amazon/ena/
Dena_netdev.c540 rx_info->buf_offset = headroom; in ena_alloc_rx_buffer()
974 int buf_offset; in ena_rx_skb() local
995 buf_offset = rx_info->buf_offset; in ena_rx_skb()
996 pkt_offset = buf_offset - rx_ring->rx_headroom; in ena_rx_skb()
1005 skb_copy_to_linear_data(skb, buf_addr + buf_offset, len); in ena_rx_skb()
1021 buf_len = SKB_DATA_ALIGN(len + buf_offset + tailroom); in ena_rx_skb()
1035 skb_reserve(skb, buf_offset); in ena_rx_skb()
1061 buf_offset = rx_info->buf_offset; in ena_rx_skb()
1062 pkt_offset = buf_offset - rx_ring->rx_headroom; in ena_rx_skb()
1063 buf_len = SKB_DATA_ALIGN(len + buf_offset + tailroom); in ena_rx_skb()
[all …]
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/
Ddma.c663 qbuf.addr = addr + q->buf_offset; in mt76_dma_rx_fill()
665 qbuf.len = len - q->buf_offset; in mt76_dma_rx_fill()
812 int offset = data - page_address(page) + q->buf_offset; in mt76_add_fragment()
870 if (data_len < len + q->buf_offset) { in mt76_dma_rx_process()
890 skb_reserve(skb, q->buf_offset); in mt76_dma_rx_process()
/linux-6.12.1/drivers/mmc/host/
Dmeson-gx-mmc.c761 unsigned int buf_offset = 0; in meson_mmc_copy_buffer() local
770 writel(*buf++, host->bounce_iomem_buf + offset + buf_offset); in meson_mmc_copy_buffer()
772 buf_offset += 4; in meson_mmc_copy_buffer()
777 *buf++ = readl(host->bounce_iomem_buf + offset + buf_offset); in meson_mmc_copy_buffer()
779 buf_offset += 4; in meson_mmc_copy_buffer()
/linux-6.12.1/drivers/spi/
Dspi-pic32.c359 int buf_offset = offsetof(struct pic32_spi_regs, buf); in pic32_spi_dma_config() local
366 cfg.src_addr = pic32s->dma_base + buf_offset; in pic32_spi_dma_config()
367 cfg.dst_addr = pic32s->dma_base + buf_offset; in pic32_spi_dma_config()
/linux-6.12.1/include/linux/
Dvfio_pci_core.h137 loff_t *buf_offset,
/linux-6.12.1/drivers/net/ethernet/marvell/prestera/
Dprestera_hw.c2112 u32 buf_offset; in prestera_hw_nhgrp_blk_get() local
2116 buf_offset = 0; in prestera_hw_nhgrp_blk_get()
2118 if (buf_offset >= buf_size) in prestera_hw_nhgrp_blk_get()
2122 req.offset = __cpu_to_le32(buf_offset * 8); /* 8 bits in u8 */ in prestera_hw_nhgrp_blk_get()
2130 memcpy(&hw_state[buf_offset], &resp.hw_state[0], in prestera_hw_nhgrp_blk_get()
2131 buf_offset + PRESTERA_MSG_CHUNK_SIZE > buf_size ? in prestera_hw_nhgrp_blk_get()
2132 buf_size - buf_offset : PRESTERA_MSG_CHUNK_SIZE); in prestera_hw_nhgrp_blk_get()
2133 buf_offset += PRESTERA_MSG_CHUNK_SIZE; in prestera_hw_nhgrp_blk_get()
/linux-6.12.1/drivers/net/wireless/ti/wl18xx/
Dmain.c1659 u32 buf_offset, u32 last_len) in wl18xx_pre_pkt_send() argument
1666 buf_offset - last_len); in wl18xx_pre_pkt_send()
1670 return ALIGN(buf_offset, WL12XX_BUS_BLOCK_SIZE); in wl18xx_pre_pkt_send()
1674 return buf_offset; in wl18xx_pre_pkt_send()

12