Lines Matching refs:map_dptx
24 static bool anx_dp_aux_op_finished(struct regmap *map_dptx) in anx_dp_aux_op_finished() argument
29 err = regmap_read(map_dptx, SP_DP_AUX_CH_CTRL2_REG, &value); in anx_dp_aux_op_finished()
36 static int anx_dp_aux_wait(struct regmap *map_dptx) in anx_dp_aux_wait() argument
44 while (!anx_dp_aux_op_finished(map_dptx)) { in anx_dp_aux_wait()
46 if (!anx_dp_aux_op_finished(map_dptx)) { in anx_dp_aux_wait()
58 err = regmap_read(map_dptx, SP_AUX_CH_STATUS_REG, &status); in anx_dp_aux_wait()
73 static int anx_dp_aux_address(struct regmap *map_dptx, unsigned int addr) in anx_dp_aux_address() argument
77 err = regmap_write(map_dptx, SP_AUX_ADDR_7_0_REG, addr & 0xff); in anx_dp_aux_address()
81 err = regmap_write(map_dptx, SP_AUX_ADDR_15_8_REG, in anx_dp_aux_address()
91 err = regmap_update_bits(map_dptx, SP_AUX_ADDR_19_16_REG, in anx_dp_aux_address()
101 ssize_t anx_dp_aux_transfer(struct regmap *map_dptx, in anx_dp_aux_transfer() argument
121 err = regmap_bulk_write(map_dptx, in anx_dp_aux_transfer()
129 err = anx_dp_aux_address(map_dptx, msg->address); in anx_dp_aux_transfer()
133 err = regmap_write(map_dptx, SP_DP_AUX_CH_CTRL1_REG, ctrl1); in anx_dp_aux_transfer()
138 err = regmap_update_bits(map_dptx, SP_DP_AUX_CH_CTRL2_REG, in anx_dp_aux_transfer()
143 err = anx_dp_aux_wait(map_dptx); in anx_dp_aux_transfer()
151 err = regmap_bulk_read(map_dptx, in anx_dp_aux_transfer()
158 err = anx_i2c_dp_clear_bits(map_dptx, SP_DP_AUX_CH_CTRL2_REG, in anx_dp_aux_transfer()