Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/drivers/md/
Ddm-ebs-target.c71 unsigned int buf_off = to_bytes(__block_mod(iter->bi_sector, ec->u_bs)); in __ebs_rw_bvec() local
82 cur_len = min(dm_bufio_get_block_size(ec->bufio) - buf_off, bv_len); in __ebs_rw_bvec()
85 if (op == REQ_OP_READ || buf_off || bv_len < dm_bufio_get_block_size(ec->bufio)) in __ebs_rw_bvec()
98 ba += buf_off; in __ebs_rw_bvec()
105 dm_bufio_mark_partial_buffer_dirty(b, buf_off, buf_off + cur_len); in __ebs_rw_bvec()
113 buf_off = 0; in __ebs_rw_bvec()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c1023 unsigned int field, buf_field_cnt, buf_off; in nfp_nsp_versions_get() local
1034 buf_off = get_unaligned_le16(buf + id2off[id] + flash * 2); in nfp_nsp_versions_get()
1035 if (!buf_off) in nfp_nsp_versions_get()
1038 if (buf_off >= size) in nfp_nsp_versions_get()
1040 if (strnlen(&buf[buf_off], size - buf_off) == size - buf_off) in nfp_nsp_versions_get()
1043 return (const char *)&buf[buf_off]; in nfp_nsp_versions_get()
/linux-6.1.9/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-6.1.9/drivers/scsi/qedf/
Dqedf_hsi.h163 __le32 buf_off; member
/linux-6.1.9/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-6.1.9/drivers/scsi/lpfc/
Dlpfc_attr.c6045 size_t buf_off; in sysfs_ctlreg_write() local
6071 for (buf_off = 0; buf_off < count - LPFC_REG_WRITE_KEY_SIZE; in sysfs_ctlreg_write()
6072 buf_off += sizeof(uint32_t)) in sysfs_ctlreg_write()
6073 writel(*((uint32_t *)(buf + buf_off + LPFC_REG_WRITE_KEY_SIZE)), in sysfs_ctlreg_write()
6074 phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_write()
6104 size_t buf_off; in sysfs_ctlreg_read() local
6127 for (buf_off = 0; buf_off < count; buf_off += sizeof(uint32_t)) { in sysfs_ctlreg_read()
6128 tmp_ptr = (uint32_t *)(buf + buf_off); in sysfs_ctlreg_read()
6129 *tmp_ptr = readl(phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_read()
/linux-6.1.9/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()