Home
last modified time | relevance | path

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

/drivers/infiniband/hw/mlx5/
Dmem.c205 u64 buf_off; in mlx5_ib_get_buf_offset() local
209 buf_off = addr & page_mask; in mlx5_ib_get_buf_offset()
213 if (buf_off & off_mask) in mlx5_ib_get_buf_offset()
216 *offset = buf_off >> ilog2(off_size); in mlx5_ib_get_buf_offset()
/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()
/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()
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()
/drivers/scsi/qedf/
Dqedf_hsi.h163 __le32 buf_off; member
/drivers/scsi/lpfc/
Dlpfc_attr.c6145 size_t buf_off; in sysfs_ctlreg_write() local
6171 for (buf_off = 0; buf_off < count - LPFC_REG_WRITE_KEY_SIZE; in sysfs_ctlreg_write()
6172 buf_off += sizeof(uint32_t)) in sysfs_ctlreg_write()
6173 writel(*((uint32_t *)(buf + buf_off + LPFC_REG_WRITE_KEY_SIZE)), in sysfs_ctlreg_write()
6174 phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_write()
6204 size_t buf_off; in sysfs_ctlreg_read() local
6227 for (buf_off = 0; buf_off < count; buf_off += sizeof(uint32_t)) { in sysfs_ctlreg_read()
6228 tmp_ptr = (uint32_t *)(buf + buf_off); in sysfs_ctlreg_read()
6229 *tmp_ptr = readl(phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_read()
/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()
/drivers/staging/exfat/
Dexfat_core.c1857 s32 num_entries, buf_off = (off - es->offset); in __write_partial_entries_in_entry_set() local
1877 pr_debug("es->buf %p buf_off %u\n", esbuf, buf_off); in __write_partial_entries_in_entry_set()
1879 copy_entries, (esbuf + buf_off), in __write_partial_entries_in_entry_set()
1881 memcpy(buf + off, esbuf + buf_off, in __write_partial_entries_in_entry_set()
1901 buf_off += copy_entries << DENTRY_SIZE_BITS; in __write_partial_entries_in_entry_set()