• Home
  • Raw
  • Download

Lines Matching refs:chan

20 static int mv_xor_cmd_set(u32 chan, int command);
21 static int mv_xor_ctrl_set(u32 chan, u32 xor_ctrl);
140 static int mv_xor_ctrl_set(u32 chan, u32 xor_ctrl) in mv_xor_ctrl_set() argument
145 val = reg_read(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan))) in mv_xor_ctrl_set()
149 reg_write(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan)), xor_ctrl); in mv_xor_ctrl_set()
154 int mv_xor_mem_init(u32 chan, u32 start_ptr, u32 block_size, u32 init_val_high, in mv_xor_mem_init() argument
160 if (chan >= MV_XOR_MAX_CHAN) in mv_xor_mem_init()
163 if (MV_ACTIVE == mv_xor_state_get(chan)) in mv_xor_mem_init()
171 tmp = reg_read(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan))); in mv_xor_mem_init()
174 reg_write(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan)), tmp); in mv_xor_mem_init()
180 reg_write(XOR_DST_PTR_REG(XOR_UNIT(chan), XOR_CHAN(chan)), start_ptr); in mv_xor_mem_init()
186 reg_write(XOR_BLOCK_SIZE_REG(XOR_UNIT(chan), XOR_CHAN(chan)), in mv_xor_mem_init()
193 reg_write(XOR_INIT_VAL_LOW_REG(XOR_UNIT(chan)), init_val_low); in mv_xor_mem_init()
199 reg_write(XOR_INIT_VAL_HIGH_REG(XOR_UNIT(chan)), init_val_high); in mv_xor_mem_init()
202 reg_bit_set(XOR_ACTIVATION_REG(XOR_UNIT(chan), XOR_CHAN(chan)), in mv_xor_mem_init()
240 int mv_xor_transfer(u32 chan, int xor_type, u32 xor_chain_ptr) in mv_xor_transfer() argument
245 if (chan >= MV_XOR_MAX_CHAN) { in mv_xor_transfer()
246 debug("%s: ERR. Invalid chan num %d\n", __func__, chan); in mv_xor_transfer()
250 if (MV_ACTIVE == mv_xor_state_get(chan)) { in mv_xor_transfer()
261 tmp = reg_read(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan))); in mv_xor_transfer()
303 reg_write(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan)), tmp); in mv_xor_transfer()
309 reg_write(XOR_NEXT_DESC_PTR_REG(XOR_UNIT(chan), XOR_CHAN(chan)), in mv_xor_transfer()
313 reg_bit_set(XOR_ACTIVATION_REG(XOR_UNIT(chan), XOR_CHAN(chan)), in mv_xor_transfer()
340 int mv_xor_state_get(u32 chan) in mv_xor_state_get() argument
345 if (chan >= MV_XOR_MAX_CHAN) { in mv_xor_state_get()
346 debug("%s: ERR. Invalid chan num %d\n", __func__, chan); in mv_xor_state_get()
351 state = reg_read(XOR_ACTIVATION_REG(XOR_UNIT(chan), XOR_CHAN(chan))); in mv_xor_state_get()
389 static int mv_xor_cmd_set(u32 chan, int command) in mv_xor_cmd_set() argument
394 if (chan >= MV_XOR_MAX_CHAN) { in mv_xor_cmd_set()
395 debug("%s: ERR. Invalid chan num %d\n", __func__, chan); in mv_xor_cmd_set()
400 state = mv_xor_state_get(chan); in mv_xor_cmd_set()
404 reg_bit_set(XOR_ACTIVATION_REG(XOR_UNIT(chan), XOR_CHAN(chan)), in mv_xor_cmd_set()
410 reg_bit_set(XOR_ACTIVATION_REG(XOR_UNIT(chan), XOR_CHAN(chan)), in mv_xor_cmd_set()
416 reg_bit_set(XOR_ACTIVATION_REG(XOR_UNIT(chan), XOR_CHAN(chan)), in mv_xor_cmd_set()
422 reg_bit_set(XOR_ACTIVATION_REG(XOR_UNIT(chan), XOR_CHAN(chan)), in mv_xor_cmd_set()