Lines Matching refs:mxc_nand_host
124 struct mxc_nand_host;
130 void (*send_cmd)(struct mxc_nand_host *, uint16_t, int);
131 void (*send_addr)(struct mxc_nand_host *, uint16_t, int);
133 void (*send_read_id)(struct mxc_nand_host *);
134 uint16_t (*get_dev_status)(struct mxc_nand_host *);
135 int (*check_int)(struct mxc_nand_host *);
136 void (*irq_control)(struct mxc_nand_host *, int);
137 u32 (*get_ecc_status)(struct mxc_nand_host *);
162 struct mxc_nand_host { struct
253 struct mxc_nand_host *host = nand_get_controller_data(this); in copy_spare()
296 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_do_addr_cycle()
344 static int check_int_v3(struct mxc_nand_host *host) in check_int_v3()
358 static int check_int_v1_v2(struct mxc_nand_host *host) in check_int_v1_v2()
372 static void irq_control_v1_v2(struct mxc_nand_host *host, int activate) in irq_control_v1_v2()
386 static void irq_control_v3(struct mxc_nand_host *host, int activate) in irq_control_v3()
400 static void irq_control(struct mxc_nand_host *host, int activate) in irq_control()
412 static u32 get_ecc_status_v1(struct mxc_nand_host *host) in get_ecc_status_v1()
417 static u32 get_ecc_status_v2(struct mxc_nand_host *host) in get_ecc_status_v2()
422 static u32 get_ecc_status_v3(struct mxc_nand_host *host) in get_ecc_status_v3()
429 struct mxc_nand_host *host = dev_id; in mxc_nfc_irq()
444 static int wait_op_done(struct mxc_nand_host *host, int useirq) in wait_op_done()
491 static void send_cmd_v3(struct mxc_nand_host *host, uint16_t cmd, int useirq) in send_cmd_v3()
505 static void send_cmd_v1_v2(struct mxc_nand_host *host, uint16_t cmd, int useirq) in send_cmd_v1_v2()
530 static void send_addr_v3(struct mxc_nand_host *host, uint16_t addr, int islast) in send_addr_v3()
544 static void send_addr_v1_v2(struct mxc_nand_host *host, uint16_t addr, int islast) in send_addr_v1_v2()
558 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in send_page_v3()
574 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in send_page_v2()
588 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in send_page_v1()
608 static void send_read_id_v3(struct mxc_nand_host *host) in send_read_id_v3()
619 static void send_read_id_v1_v2(struct mxc_nand_host *host) in send_read_id_v1_v2()
632 static uint16_t get_dev_status_v3(struct mxc_nand_host *host) in get_dev_status_v3()
642 static uint16_t get_dev_status_v1_v2(struct mxc_nand_host *host) in get_dev_status_v1_v2()
669 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_enable_hwecc_v1_v2()
687 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_enable_hwecc_v3()
717 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_read_page_v1()
775 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_read_page_v2_v3()
822 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_read_page()
836 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_read_page_raw()
849 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_read_oob()
859 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_write_page()
891 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_write_oob()
900 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_read_byte()
928 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_write_buf()
947 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_read_buf()
962 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_select_chip_v1_v3()
982 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_select_chip_v2()
1117 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in preset_v1()
1146 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_v2_setup_interface()
1220 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in preset_v2()
1269 struct mxc_nand_host *host = nand_get_controller_data(chip); in preset_v3()
1340 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_command()
1400 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_set_features()
1420 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxc_nand_get_features()
1589 static inline int is_imx21_nfc(struct mxc_nand_host *host) in is_imx21_nfc()
1594 static inline int is_imx27_nfc(struct mxc_nand_host *host) in is_imx27_nfc()
1599 static inline int is_imx25_nfc(struct mxc_nand_host *host) in is_imx25_nfc()
1604 static inline int is_imx51_nfc(struct mxc_nand_host *host) in is_imx51_nfc()
1609 static inline int is_imx53_nfc(struct mxc_nand_host *host) in is_imx53_nfc()
1658 static int mxcnd_probe_dt(struct mxc_nand_host *host) in mxcnd_probe_dt()
1672 static int mxcnd_probe_dt(struct mxc_nand_host *host) in mxcnd_probe_dt()
1681 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxcnd_attach_chip()
1750 struct mxc_nand_host *host = nand_get_controller_data(chip); in mxcnd_setup_interface()
1764 struct mxc_nand_host *host; in mxcnd_probe()
1769 host = devm_kzalloc(&pdev->dev, sizeof(struct mxc_nand_host), in mxcnd_probe()
1915 struct mxc_nand_host *host = platform_get_drvdata(pdev); in mxcnd_remove()