Lines Matching refs:block_num
92 int block_num; in hl_unsecure_register() local
94 block_num = hl_get_pb_block(hdev, mm_reg_addr + offset, pb_blocks, in hl_unsecure_register()
96 if (block_num < 0) in hl_unsecure_register()
97 return block_num; in hl_unsecure_register()
99 reg_offset = (mm_reg_addr + offset) - pb_blocks[block_num]; in hl_unsecure_register()
101 return hl_unset_pb_in_block(hdev, reg_offset, &sgs_array[block_num]); in hl_unsecure_register()
122 int i, block_num, rc = 0; in hl_unsecure_register_range() local
124 block_num = hl_get_pb_block(hdev, in hl_unsecure_register_range()
127 if (block_num < 0) in hl_unsecure_register_range()
128 return block_num; in hl_unsecure_register_range()
131 reg_offset = (i + offset) - pb_blocks[block_num]; in hl_unsecure_register_range()
133 &sgs_array[block_num]); in hl_unsecure_register_range()