Lines Matching defs:sfc

225 static inline void *aml_sfc_to_ecc_ctx(struct aml_sfc *sfc)  in aml_sfc_to_ecc_ctx()
230 static int aml_sfc_wait_cmd_finish(struct aml_sfc *sfc, u64 timeout_ms) in aml_sfc_wait_cmd_finish()
260 static int aml_sfc_pre_transfer(struct aml_sfc *sfc, u32 idle_cycle, u32 cs2clk_cycle) in aml_sfc_pre_transfer()
271 static int aml_sfc_end_transfer(struct aml_sfc *sfc, u32 clk2cs_cycle) in aml_sfc_end_transfer()
282 static int aml_sfc_set_bus_width(struct aml_sfc *sfc, u8 buswidth, u32 mask) in aml_sfc_set_bus_width()
298 static int aml_sfc_send_cmd(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_send_cmd()
317 static int aml_sfc_send_addr(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_send_addr()
351 static int aml_sfc_send_cmd_addr_dummy(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_send_cmd_addr_dummy()
377 static bool aml_sfc_is_snand_hwecc_page_op(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_is_snand_hwecc_page_op()
403 static int aml_sfc_dma_buffer_setup(struct aml_sfc *sfc, void *databuf, in aml_sfc_dma_buffer_setup()
458 static void aml_sfc_dma_buffer_release(struct aml_sfc *sfc, in aml_sfc_dma_buffer_release()
517 static u64 aml_sfc_cal_timeout_cycle(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_cal_timeout_cycle()
538 static void aml_sfc_check_ecc_pages_valid(struct aml_sfc *sfc, bool raw) in aml_sfc_check_ecc_pages_valid()
558 static int aml_sfc_raw_io_op(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_raw_io_op()
633 static void aml_sfc_set_user_byte(struct aml_sfc *sfc, __le64 *info_buf, u8 *oob_buf, bool auto_oob) in aml_sfc_set_user_byte()
650 static void aml_sfc_get_user_byte(struct aml_sfc *sfc, __le64 *info_buf, u8 *oob_buf) in aml_sfc_get_user_byte()
665 static int aml_sfc_check_hwecc_status(struct aml_sfc *sfc, __le64 *info_buf) in aml_sfc_check_hwecc_status()
691 static int aml_sfc_read_page_hwecc(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_read_page_hwecc()
744 static int aml_sfc_write_page_hwecc(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_write_page_hwecc()
795 struct aml_sfc *sfc; in aml_sfc_exec_op() local
834 struct aml_sfc *sfc; in aml_sfc_adjust_op_size() local
888 static int aml_spi_settings(struct aml_sfc *sfc, struct spi_device *spi) in aml_spi_settings()
905 static int aml_set_spi_clk(struct aml_sfc *sfc, struct spi_device *spi) in aml_set_spi_clk()
931 struct aml_sfc *sfc; in aml_sfc_setup() local
951 struct aml_sfc *sfc = nand_to_aml_sfc(nand); in aml_sfc_ecc_init_ctx() local
1010 struct aml_sfc *sfc = nand_to_aml_sfc(nand); in aml_sfc_ecc_cleanup_ctx() local
1020 struct aml_sfc *sfc = nand_to_aml_sfc(nand); in aml_sfc_ecc_prepare_io_req() local
1045 struct aml_sfc *sfc = nand_to_aml_sfc(nand); in aml_sfc_ecc_finish_io_req() local
1070 static int aml_sfc_clk_init(struct aml_sfc *sfc) in aml_sfc_clk_init()
1087 static int aml_sfc_disable_clk(struct aml_sfc *sfc) in aml_sfc_disable_clk()
1100 struct aml_sfc *sfc; in aml_sfc_probe() local
1196 struct aml_sfc *sfc = spi_controller_get_devdata(ctlr); in aml_sfc_remove() local