Home
last modified time | relevance | path

Searched refs:as_ctrl (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/spi/
H A Dspi-airoha-snfi.c223 static int airoha_snand_set_fifo_op(struct airoha_snand_ctrl *as_ctrl, in airoha_snand_set_fifo_op() argument
229 err = regmap_write(as_ctrl->regmap_ctrl, REG_SPI_CTRL_OPFIFO_WDATA, in airoha_snand_set_fifo_op()
235 err = regmap_read_poll_timeout(as_ctrl->regmap_ctrl, in airoha_snand_set_fifo_op()
242 err = regmap_write(as_ctrl->regmap_ctrl, REG_SPI_CTRL_OPFIFO_WR, in airoha_snand_set_fifo_op()
247 return regmap_read_poll_timeout(as_ctrl->regmap_ctrl, in airoha_snand_set_fifo_op()
253 static int airoha_snand_set_cs(struct airoha_snand_ctrl *as_ctrl, u8 cs) in airoha_snand_set_cs() argument
255 return airoha_snand_set_fifo_op(as_ctrl, cs, sizeof(cs)); in airoha_snand_set_cs()
258 static int airoha_snand_write_data_to_fifo(struct airoha_snand_ctrl *as_ctrl, in airoha_snand_write_data_to_fifo() argument
268 err = regmap_read_poll_timeout(as_ctrl->regmap_ctrl, in airoha_snand_write_data_to_fifo()
276 err = regmap_write(as_ctrl->regmap_ctrl, in airoha_snand_write_data_to_fifo()
[all …]