Home
last modified time | relevance | path

Searched refs:buf_off (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.6/drivers/media/test-drivers/vivid/
Dvivid-meta-cap.c166 int buf_off = 0; in vivid_meta_cap_fillbuff() local
186 buf_off = 4; in vivid_meta_cap_fillbuff()
192 meta->buf[buf_off] = div_u64((soe + dev->cap_frame_eof_offset), in vivid_meta_cap_fillbuff()
195 meta->buf[buf_off + 4] = (buf->vb.sequence * 30) % 1000; in vivid_meta_cap_fillbuff()
197 *(__u32 *)(meta->buf + buf_off), in vivid_meta_cap_fillbuff()
198 *(__u16 *)(meta->buf + buf_off + 4)); in vivid_meta_cap_fillbuff()
/Linux-v6.6/drivers/md/
Ddm-ebs-target.c72 unsigned int buf_off = to_bytes(__block_mod(iter->bi_sector, ec->u_bs)); in __ebs_rw_bvec() local
83 cur_len = min(dm_bufio_get_block_size(ec->bufio) - buf_off, bv_len); in __ebs_rw_bvec()
86 if (op == REQ_OP_READ || buf_off || bv_len < dm_bufio_get_block_size(ec->bufio)) in __ebs_rw_bvec()
99 ba += buf_off; in __ebs_rw_bvec()
106 dm_bufio_mark_partial_buffer_dirty(b, buf_off, buf_off + cur_len); in __ebs_rw_bvec()
114 buf_off = 0; in __ebs_rw_bvec()
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c1024 unsigned int field, buf_field_cnt, buf_off; in nfp_nsp_versions_get() local
1035 buf_off = get_unaligned_le16(buf + id2off[id] + flash * 2); in nfp_nsp_versions_get()
1036 if (!buf_off) in nfp_nsp_versions_get()
1039 if (buf_off >= size) in nfp_nsp_versions_get()
1041 if (strnlen(&buf[buf_off], size - buf_off) == size - buf_off) in nfp_nsp_versions_get()
1044 return (const char *)&buf[buf_off]; in nfp_nsp_versions_get()
/Linux-v6.6/drivers/scsi/csiostor/
Dcsio_scsi.c562 uint32_t buf_off; in csio_setup_ddp() local
573 buf_off = sg_addr & (ddp_pagesz - 1); in csio_setup_ddp()
576 if (i != 0 && buf_off) { in csio_setup_ddp()
584 ((buf_off + sg_len) & (ddp_pagesz - 1))) { in csio_setup_ddp()
1499 uint32_t buf_off = 0; in csio_scsi_copy_to_sgl() local
1512 if (buf_off >= dma_buf->len) { in csio_scsi_copy_to_sgl()
1513 buf_off = 0; in csio_scsi_copy_to_sgl()
1525 buf_addr = dma_buf->vaddr + buf_off; in csio_scsi_copy_to_sgl()
1527 bytes_copy = min((dma_buf->len - buf_off), in csio_scsi_copy_to_sgl()
1545 buf_off += bytes_copy; in csio_scsi_copy_to_sgl()
/Linux-v6.6/drivers/block/
Dublk_drv.c1857 size_t buf_off; in ublk_check_and_get_req() local
1871 buf_off = ublk_pos_to_buf_off(iocb->ki_pos); in ublk_check_and_get_req()
1883 req = __ublk_check_and_get_req(ub, ubq, tag, buf_off); in ublk_check_and_get_req()
1893 *off = buf_off; in ublk_check_and_get_req()
1904 size_t buf_off; in ublk_ch_read_iter() local
1907 req = ublk_check_and_get_req(iocb, to, &buf_off, ITER_DEST); in ublk_ch_read_iter()
1911 ret = ublk_copy_user_pages(req, buf_off, to, ITER_DEST); in ublk_ch_read_iter()
1922 size_t buf_off; in ublk_ch_write_iter() local
1925 req = ublk_check_and_get_req(iocb, from, &buf_off, ITER_SOURCE); in ublk_ch_write_iter()
1929 ret = ublk_copy_user_pages(req, buf_off, from, ITER_SOURCE); in ublk_ch_write_iter()
/Linux-v6.6/drivers/scsi/qedf/
Dqedf_hsi.h163 __le32 buf_off; member
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c135 static __always_inline size_t buf_off(const buf_t *buf) in buf_off() function
157 if (bpf_skb_load_bytes(buf->skb, buf_off(buf), dst, len)) { in buf_copy()
168 if (buf_off(buf) + len > buf->skb->len) { in buf_skip()
/Linux-v6.6/drivers/scsi/lpfc/
Dlpfc_attr.c6181 size_t buf_off; in sysfs_ctlreg_write() local
6207 for (buf_off = 0; buf_off < count - LPFC_REG_WRITE_KEY_SIZE; in sysfs_ctlreg_write()
6208 buf_off += sizeof(uint32_t)) in sysfs_ctlreg_write()
6209 writel(*((uint32_t *)(buf + buf_off + LPFC_REG_WRITE_KEY_SIZE)), in sysfs_ctlreg_write()
6210 phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_write()
6240 size_t buf_off; in sysfs_ctlreg_read() local
6263 for (buf_off = 0; buf_off < count; buf_off += sizeof(uint32_t)) { in sysfs_ctlreg_read()
6264 tmp_ptr = (uint32_t *)(buf + buf_off); in sysfs_ctlreg_read()
6265 *tmp_ptr = readl(phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_read()
/Linux-v6.6/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c56 static void bnx2i_get_write_cmd_bd_idx(struct bnx2i_cmd *cmd, u32 buf_off, in bnx2i_get_write_cmd_bd_idx() argument
63 if (buf_off) { in bnx2i_get_write_cmd_bd_idx()
64 while (buf_off >= (cur_offset + bd_tbl->buffer_length)) { in bnx2i_get_write_cmd_bd_idx()
71 *start_bd_off = buf_off - cur_offset; in bnx2i_get_write_cmd_bd_idx()