Lines Matching refs:mxc_nand_host
140 struct mxc_nand_host;
144 void (*send_cmd)(struct mxc_nand_host *, uint16_t, int);
145 void (*send_addr)(struct mxc_nand_host *, uint16_t, int);
147 void (*send_read_id)(struct mxc_nand_host *);
148 uint16_t (*get_dev_status)(struct mxc_nand_host *);
149 int (*check_int)(struct mxc_nand_host *);
150 void (*irq_control)(struct mxc_nand_host *, int);
151 u32 (*get_ecc_status)(struct mxc_nand_host *);
175 struct mxc_nand_host { struct
322 static int check_int_v3(struct mxc_nand_host *host) in check_int_v3()
336 static int check_int_v1_v2(struct mxc_nand_host *host) in check_int_v1_v2()
350 static void irq_control_v1_v2(struct mxc_nand_host *host, int activate) in irq_control_v1_v2()
364 static void irq_control_v3(struct mxc_nand_host *host, int activate) in irq_control_v3()
378 static void irq_control(struct mxc_nand_host *host, int activate) in irq_control()
390 static u32 get_ecc_status_v1(struct mxc_nand_host *host) in get_ecc_status_v1()
395 static u32 get_ecc_status_v2(struct mxc_nand_host *host) in get_ecc_status_v2()
400 static u32 get_ecc_status_v3(struct mxc_nand_host *host) in get_ecc_status_v3()
407 struct mxc_nand_host *host = dev_id; in mxc_nfc_irq()
422 static int wait_op_done(struct mxc_nand_host *host, int useirq) in wait_op_done()
469 static void send_cmd_v3(struct mxc_nand_host *host, uint16_t cmd, int useirq) in send_cmd_v3()
483 static void send_cmd_v1_v2(struct mxc_nand_host *host, uint16_t cmd, int useirq) in send_cmd_v1_v2()
508 static void send_addr_v3(struct mxc_nand_host *host, uint16_t addr, int islast) in send_addr_v3()
522 static void send_addr_v1_v2(struct mxc_nand_host *host, uint16_t addr, int islast) in send_addr_v1_v2()
536 struct mxc_nand_host *host = nand_chip->priv; in send_page_v3()
552 struct mxc_nand_host *host = nand_chip->priv; in send_page_v2()
566 struct mxc_nand_host *host = nand_chip->priv; in send_page_v1()
586 static void send_read_id_v3(struct mxc_nand_host *host) in send_read_id_v3()
597 static void send_read_id_v1_v2(struct mxc_nand_host *host) in send_read_id_v1_v2()
610 static uint16_t get_dev_status_v3(struct mxc_nand_host *host) in get_dev_status_v3()
620 static uint16_t get_dev_status_v1_v2(struct mxc_nand_host *host) in get_dev_status_v1_v2()
667 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_correct_data_v1()
688 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_correct_data_v2_v3()
726 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_read_byte()
750 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_read_word()
766 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_write_buf()
784 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_read_buf()
800 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_select_chip_v1_v3()
821 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_select_chip_v2()
854 struct mxc_nand_host *host = this->priv; in copy_spare()
897 struct mxc_nand_host *host = nand_chip->priv; in mxc_do_addr_cycle()
983 struct mxc_nand_host *host = nand_chip->priv; in preset_v1()
1011 struct mxc_nand_host *host = nand_chip->priv; in preset_v2()
1057 struct mxc_nand_host *host = chip->priv; in preset_v3()
1129 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_command()
1394 static inline int is_imx21_nfc(struct mxc_nand_host *host) in is_imx21_nfc()
1399 static inline int is_imx27_nfc(struct mxc_nand_host *host) in is_imx27_nfc()
1404 static inline int is_imx25_nfc(struct mxc_nand_host *host) in is_imx25_nfc()
1409 static inline int is_imx51_nfc(struct mxc_nand_host *host) in is_imx51_nfc()
1414 static inline int is_imx53_nfc(struct mxc_nand_host *host) in is_imx53_nfc()
1463 static int __init mxcnd_probe_dt(struct mxc_nand_host *host) in mxcnd_probe_dt()
1490 static int __init mxcnd_probe_dt(struct mxc_nand_host *host) in mxcnd_probe_dt()
1500 struct mxc_nand_host *host; in mxcnd_probe()
1505 host = devm_kzalloc(&pdev->dev, sizeof(struct mxc_nand_host), in mxcnd_probe()
1705 struct mxc_nand_host *host = platform_get_drvdata(pdev); in mxcnd_remove()