Lines Matching refs:reg_offset
71 * @reg_offset: register offset will be converted to bit offset in pb block
75 static int hl_unset_pb_in_block(struct hl_device *hdev, u32 reg_offset,
78 if ((reg_offset >= HL_BLOCK_SIZE) || (reg_offset & 0x3)) {
81 reg_offset, HL_BLOCK_SIZE);
86 (reg_offset & (HL_BLOCK_SIZE - 1)) >> 2);
107 u32 reg_offset;
115 reg_offset = (mm_reg_addr + offset) - pb_blocks[block_num];
117 return hl_unset_pb_in_block(hdev, reg_offset, &sgs_array[block_num]);
137 u32 reg_offset;
147 reg_offset = (i + offset) - pb_blocks[block_num];
148 rc |= hl_unset_pb_in_block(hdev, reg_offset,