Home
last modified time | relevance | path

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

/drivers/infiniband/hw/mlx5/
Dmem.c151 u64 buf_off; in mlx5_ib_get_buf_offset() local
155 buf_off = addr & page_mask; in mlx5_ib_get_buf_offset()
159 if (buf_off & off_mask) in mlx5_ib_get_buf_offset()
162 *offset = buf_off >> ilog2(off_size); in mlx5_ib_get_buf_offset()
/drivers/scsi/csiostor/
Dcsio_scsi.c586 uint32_t buf_off; in csio_setup_ddp() local
597 buf_off = sg_addr & (ddp_pagesz - 1); in csio_setup_ddp()
600 if (i != 0 && buf_off) { in csio_setup_ddp()
608 ((buf_off + sg_len) & (ddp_pagesz - 1))) { in csio_setup_ddp()
1519 uint32_t buf_off = 0; in csio_scsi_copy_to_sgl() local
1532 if (buf_off >= dma_buf->len) { in csio_scsi_copy_to_sgl()
1533 buf_off = 0; in csio_scsi_copy_to_sgl()
1545 buf_addr = dma_buf->vaddr + buf_off; in csio_scsi_copy_to_sgl()
1547 bytes_copy = min((dma_buf->len - buf_off), in csio_scsi_copy_to_sgl()
1565 buf_off += bytes_copy; in csio_scsi_copy_to_sgl()
/drivers/s390/char/
Dzcore.c264 unsigned long sa_off, len, buf_off; in zcore_add_lc() local
276 buf_off = cp_start - start; in zcore_add_lc()
281 if (copy_lc(buf + buf_off, save_area, sa_off, len)) in zcore_add_lc()
/drivers/scsi/lpfc/
Dlpfc_attr.c4916 size_t buf_off; in sysfs_ctlreg_write() local
4942 for (buf_off = 0; buf_off < count - LPFC_REG_WRITE_KEY_SIZE; in sysfs_ctlreg_write()
4943 buf_off += sizeof(uint32_t)) in sysfs_ctlreg_write()
4944 writel(*((uint32_t *)(buf + buf_off + LPFC_REG_WRITE_KEY_SIZE)), in sysfs_ctlreg_write()
4945 phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_write()
4975 size_t buf_off; in sysfs_ctlreg_read() local
4998 for (buf_off = 0; buf_off < count; buf_off += sizeof(uint32_t)) { in sysfs_ctlreg_read()
4999 tmp_ptr = (uint32_t *)(buf + buf_off); in sysfs_ctlreg_read()
5000 *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()