Lines Matching +full:x +full:- +full:mask
1 // SPDX-License-Identifier: GPL-2.0
18 #define DB(x) x argument
20 #define DB(x) argument
32 u32 unit_base_reg, unit_offset, data, mask, reg_data, reg_addr; in write_op_execute() local
35 data = params->data[data_arr_idx]; in write_op_execute()
36 mask = params->mask; in write_op_execute()
43 CHECK_STATUS(hws_get_ext_base_addr(serdes_num, params->unit_base_reg, in write_op_execute()
44 params->unit_offset, in write_op_execute()
51 printf("Write: 0x%x: 0x%x (mask 0x%x) - ", reg_addr, data, mask); in write_op_execute()
55 reg_data &= (~mask); in write_op_execute()
58 data &= mask; in write_op_execute()
63 printf(" - 0x%x\n", reg_data); in write_op_execute()
74 delay = params->wait_time; in delay_op_execute()
85 u32 unit_base_reg, unit_offset, data, mask, num_of_loops, wait_time; in poll_op_execute() local
90 data = params->data[data_arr_idx]; in poll_op_execute()
91 mask = params->mask; in poll_op_execute()
92 num_of_loops = params->num_of_loops; in poll_op_execute()
93 wait_time = params->wait_time; in poll_op_execute()
100 CHECK_STATUS(hws_get_ext_base_addr(serdes_num, params->unit_base_reg, in poll_op_execute()
101 params->unit_offset, in poll_op_execute()
109 printf("Poll: 0x%x: 0x%x (mask 0x%x)\n", reg_addr, data, mask); in poll_op_execute()
113 reg_data = reg_read(reg_addr) & mask; in poll_op_execute()
128 if (params->wait_time == 0) in get_cfg_seq_op()
130 else if (params->num_of_loops == 0) in get_cfg_seq_op()