Lines Matching refs:mem

476 				   struct spi_slave *mem,  in rockchip_sfc_xfer_setup()  argument
480 struct dm_spi_slave_platdata *plat = dev_get_parent_platdata(mem->dev); in rockchip_sfc_xfer_setup()
694 static int rockchip_spi_set_cs(struct rockchip_sfc *sfc, struct spi_slave *mem, bool enable) in rockchip_spi_set_cs() argument
697 struct dm_spi_slave_platdata *plat = dev_get_parent_platdata(mem->dev); in rockchip_spi_set_cs()
711 struct spi_slave *mem, in rockchip_sfc_exec_op_bypass() argument
718 rockchip_spi_set_cs(sfc, mem, true); in rockchip_sfc_exec_op_bypass()
719 rockchip_sfc_xfer_setup(sfc, mem, op, len); in rockchip_sfc_exec_op_bypass()
728 rockchip_spi_set_cs(sfc, mem, false); in rockchip_sfc_exec_op_bypass()
733 static void rockchip_sfc_delay_lines_tuning(struct rockchip_sfc *sfc, struct spi_slave *mem) in rockchip_sfc_delay_lines_tuning() argument
735 struct dm_spi_slave_platdata *plat = dev_get_parent_platdata(mem->dev); in rockchip_sfc_delay_lines_tuning()
749 rockchip_sfc_exec_op_bypass(sfc, mem, &op); in rockchip_sfc_delay_lines_tuning()
765 rockchip_sfc_exec_op_bypass(sfc, mem, &op); in rockchip_sfc_delay_lines_tuning()
820 static int rockchip_sfc_exec_op(struct spi_slave *mem, in rockchip_sfc_exec_op() argument
823 struct rockchip_sfc *sfc = dev_get_platdata(mem->dev->parent); in rockchip_sfc_exec_op()
824 struct dm_spi_slave_platdata *plat = dev_get_parent_platdata(mem->dev); in rockchip_sfc_exec_op()
829 plat->cs = mem->auto_merge_cs_cur; in rockchip_sfc_exec_op()
837 rockchip_sfc_delay_lines_tuning(sfc, mem); in rockchip_sfc_exec_op()
849 rockchip_spi_set_cs(sfc, mem, true); in rockchip_sfc_exec_op()
850 rockchip_sfc_xfer_setup(sfc, mem, op, len); in rockchip_sfc_exec_op()
853 if (mem->mode & SPI_DMA_PREPARE) in rockchip_sfc_exec_op()
868 rockchip_spi_set_cs(sfc, mem, false); in rockchip_sfc_exec_op()
873 static int rockchip_sfc_adjust_op_size(struct spi_slave *mem, struct spi_mem_op *op) in rockchip_sfc_adjust_op_size() argument
875 struct rockchip_sfc *sfc = dev_get_platdata(mem->dev->parent); in rockchip_sfc_adjust_op_size()