Searched refs:buf_off (Results 1 – 5 of 5) sorted by relevance
151 u64 buf_off; in mlx5_ib_get_buf_offset() local155 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()
586 uint32_t buf_off; in csio_setup_ddp() local597 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() local1532 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()
264 unsigned long sa_off, len, buf_off; in zcore_add_lc() local276 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()
4916 size_t buf_off; in sysfs_ctlreg_write() local4942 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() local4998 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()
56 static void bnx2i_get_write_cmd_bd_idx(struct bnx2i_cmd *cmd, u32 buf_off, in bnx2i_get_write_cmd_bd_idx() argument63 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()