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
289 static int check_int_v3(struct mxc_nand_host *host) in check_int_v3()
303 static int check_int_v1_v2(struct mxc_nand_host *host) in check_int_v1_v2()
317 static void irq_control_v1_v2(struct mxc_nand_host *host, int activate) in irq_control_v1_v2()
331 static void irq_control_v3(struct mxc_nand_host *host, int activate) in irq_control_v3()
345 static void irq_control(struct mxc_nand_host *host, int activate) in irq_control()
357 static u32 get_ecc_status_v1(struct mxc_nand_host *host) in get_ecc_status_v1()
362 static u32 get_ecc_status_v2(struct mxc_nand_host *host) in get_ecc_status_v2()
367 static u32 get_ecc_status_v3(struct mxc_nand_host *host) in get_ecc_status_v3()
374 struct mxc_nand_host *host = dev_id; in mxc_nfc_irq()
389 static int wait_op_done(struct mxc_nand_host *host, int useirq) in wait_op_done()
436 static void send_cmd_v3(struct mxc_nand_host *host, uint16_t cmd, int useirq) in send_cmd_v3()
450 static void send_cmd_v1_v2(struct mxc_nand_host *host, uint16_t cmd, int useirq) in send_cmd_v1_v2()
475 static void send_addr_v3(struct mxc_nand_host *host, uint16_t addr, int islast) in send_addr_v3()
489 static void send_addr_v1_v2(struct mxc_nand_host *host, uint16_t addr, int islast) in send_addr_v1_v2()
503 struct mxc_nand_host *host = nand_chip->priv; in send_page_v3()
519 struct mxc_nand_host *host = nand_chip->priv; in send_page_v2()
533 struct mxc_nand_host *host = nand_chip->priv; in send_page_v1()
553 static void send_read_id_v3(struct mxc_nand_host *host) in send_read_id_v3()
564 static void send_read_id_v1_v2(struct mxc_nand_host *host) in send_read_id_v1_v2()
577 static uint16_t get_dev_status_v3(struct mxc_nand_host *host) in get_dev_status_v3()
587 static uint16_t get_dev_status_v1_v2(struct mxc_nand_host *host) in get_dev_status_v1_v2()
634 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_correct_data_v1()
655 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_correct_data_v2_v3()
693 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_read_byte()
717 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_read_word()
733 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_write_buf()
751 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_read_buf()
767 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_select_chip_v1_v3()
788 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_select_chip_v2()
815 struct mxc_nand_host *host = this->priv; in copy_spare()
848 struct mxc_nand_host *host = nand_chip->priv; in mxc_do_addr_cycle()
917 struct mxc_nand_host *host = nand_chip->priv; in preset_v1()
945 struct mxc_nand_host *host = nand_chip->priv; in preset_v2()
991 struct mxc_nand_host *host = chip->priv; in preset_v3()
1063 struct mxc_nand_host *host = nand_chip->priv; in mxc_nand_command()
1328 static inline int is_imx21_nfc(struct mxc_nand_host *host) in is_imx21_nfc()
1333 static inline int is_imx27_nfc(struct mxc_nand_host *host) in is_imx27_nfc()
1338 static inline int is_imx25_nfc(struct mxc_nand_host *host) in is_imx25_nfc()
1343 static inline int is_imx51_nfc(struct mxc_nand_host *host) in is_imx51_nfc()
1348 static inline int is_imx53_nfc(struct mxc_nand_host *host) in is_imx53_nfc()
1396 static int __init mxcnd_probe_dt(struct mxc_nand_host *host) in mxcnd_probe_dt()
1423 static int __init mxcnd_probe_dt(struct mxc_nand_host *host) in mxcnd_probe_dt()
1433 struct mxc_nand_host *host; in mxcnd_probe()
1438 host = devm_kzalloc(&pdev->dev, sizeof(struct mxc_nand_host), in mxcnd_probe()
1627 struct mxc_nand_host *host = platform_get_drvdata(pdev); in mxcnd_remove()