Searched refs:buf_off (Results 1 – 5 of 5) sorted by relevance
221 u64 buf_off; in mlx5_ib_get_buf_offset() local225 buf_off = addr & page_mask; in mlx5_ib_get_buf_offset()229 if (buf_off & off_mask) in mlx5_ib_get_buf_offset()232 *offset = buf_off >> ilog2(off_size); in mlx5_ib_get_buf_offset()
562 uint32_t buf_off; in csio_setup_ddp() local573 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() local1508 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()
166 __le32 buf_off; member
5561 size_t buf_off; in sysfs_ctlreg_write() local5587 for (buf_off = 0; buf_off < count - LPFC_REG_WRITE_KEY_SIZE; in sysfs_ctlreg_write()5588 buf_off += sizeof(uint32_t)) in sysfs_ctlreg_write()5589 writel(*((uint32_t *)(buf + buf_off + LPFC_REG_WRITE_KEY_SIZE)), in sysfs_ctlreg_write()5590 phba->ctrl_regs_memmap_p + off + buf_off); in sysfs_ctlreg_write()5620 size_t buf_off; in sysfs_ctlreg_read() local5643 for (buf_off = 0; buf_off < count; buf_off += sizeof(uint32_t)) { in sysfs_ctlreg_read()5644 tmp_ptr = (uint32_t *)(buf + buf_off); in sysfs_ctlreg_read()5645 *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()