Searched refs:buf_off (Results 1 – 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | mem.c | 181 u64 buf_off; in mlx5_ib_get_buf_offset() local 185 buf_off = addr & page_mask; in mlx5_ib_get_buf_offset() 189 if (buf_off & off_mask) in mlx5_ib_get_buf_offset() 192 *offset = buf_off >> ilog2(off_size); in mlx5_ib_get_buf_offset()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/scsi/qedf/ |
D | qedf_hsi.h | 163 __le32 buf_off; member
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect.c | 134 static __always_inline size_t buf_off(const buf_t *buf) in buf_off() function 156 if (bpf_skb_load_bytes(buf->skb, buf_off(buf), dst, len)) { in buf_copy() 167 if (buf_off(buf) + len > buf->skb->len) { in buf_skip()
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_attr.c | 6332 size_t buf_off; in sysfs_ctlreg_write() local 6358 for (buf_off = 0; buf_off < count - LPFC_REG_WRITE_KEY_SIZE; in sysfs_ctlreg_write() 6359 buf_off += sizeof(uint32_t)) in sysfs_ctlreg_write() 6360 writel(*((uint32_t *)(buf + buf_off + LPFC_REG_WRITE_KEY_SIZE)), in sysfs_ctlreg_write() 6361 phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_write() 6391 size_t buf_off; in sysfs_ctlreg_read() local 6414 for (buf_off = 0; buf_off < count; buf_off += sizeof(uint32_t)) { in sysfs_ctlreg_read() 6415 tmp_ptr = (uint32_t *)(buf + buf_off); in sysfs_ctlreg_read() 6416 *tmp_ptr = readl(phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_read()
|
/kernel/linux/linux-5.10/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()
|