Searched refs:buf_off (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.15/drivers/media/test-drivers/vivid/ |
D | vivid-meta-cap.c | 166 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-v5.15/drivers/md/ |
D | dm-ebs-target.c | 70 unsigned int buf_off = to_bytes(__block_mod(iter->bi_sector, ec->u_bs)); in __ebs_rw_bvec() local 81 cur_len = min(dm_bufio_get_block_size(ec->bufio) - buf_off, bv_len); in __ebs_rw_bvec() 84 if (rw == READ || buf_off || bv_len < dm_bufio_get_block_size(ec->bufio)) in __ebs_rw_bvec() 97 ba += buf_off; in __ebs_rw_bvec() 104 dm_bufio_mark_partial_buffer_dirty(b, buf_off, buf_off + cur_len); in __ebs_rw_bvec() 112 buf_off = 0; in __ebs_rw_bvec()
|
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp.c | 1023 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-v5.15/drivers/scsi/csiostor/ |
D | csio_scsi.c | 562 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() 1495 uint32_t buf_off = 0; in csio_scsi_copy_to_sgl() local 1508 if (buf_off >= dma_buf->len) { in csio_scsi_copy_to_sgl() 1509 buf_off = 0; in csio_scsi_copy_to_sgl() 1521 buf_addr = dma_buf->vaddr + buf_off; in csio_scsi_copy_to_sgl() 1523 bytes_copy = min((dma_buf->len - buf_off), in csio_scsi_copy_to_sgl() 1541 buf_off += bytes_copy; in csio_scsi_copy_to_sgl()
|
/Linux-v5.15/drivers/scsi/qedf/ |
D | qedf_hsi.h | 163 __le32 buf_off; member
|
/Linux-v5.15/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect.c | 135 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-v5.15/drivers/scsi/lpfc/ |
D | lpfc_attr.c | 6575 size_t buf_off; in sysfs_ctlreg_write() local 6601 for (buf_off = 0; buf_off < count - LPFC_REG_WRITE_KEY_SIZE; in sysfs_ctlreg_write() 6602 buf_off += sizeof(uint32_t)) in sysfs_ctlreg_write() 6603 writel(*((uint32_t *)(buf + buf_off + LPFC_REG_WRITE_KEY_SIZE)), in sysfs_ctlreg_write() 6604 phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_write() 6634 size_t buf_off; in sysfs_ctlreg_read() local 6657 for (buf_off = 0; buf_off < count; buf_off += sizeof(uint32_t)) { in sysfs_ctlreg_read() 6658 tmp_ptr = (uint32_t *)(buf + buf_off); in sysfs_ctlreg_read() 6659 *tmp_ptr = readl(phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_read()
|
/Linux-v5.15/drivers/scsi/bnx2i/ |
D | bnx2i_iscsi.c | 56 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()
|