Lines Matching refs:brcmnand_controller
214 struct brcmnand_controller { struct
316 struct brcmnand_controller *ctrl;
599 static inline bool brcmnand_non_mmio_ops(struct brcmnand_controller *ctrl) in brcmnand_non_mmio_ops()
608 static inline u32 nand_readreg(struct brcmnand_controller *ctrl, u32 offs) in nand_readreg()
615 static inline void nand_writereg(struct brcmnand_controller *ctrl, u32 offs, in nand_writereg()
624 static int brcmnand_revision_init(struct brcmnand_controller *ctrl) in brcmnand_revision_init()
743 static void brcmnand_flash_dma_revision_init(struct brcmnand_controller *ctrl) in brcmnand_flash_dma_revision_init()
754 static inline u32 brcmnand_read_reg(struct brcmnand_controller *ctrl, in brcmnand_read_reg()
765 static inline void brcmnand_write_reg(struct brcmnand_controller *ctrl, in brcmnand_write_reg()
774 static inline void brcmnand_rmw_reg(struct brcmnand_controller *ctrl, in brcmnand_rmw_reg()
785 static inline u32 brcmnand_read_fc(struct brcmnand_controller *ctrl, int word) in brcmnand_read_fc()
792 static inline void brcmnand_write_fc(struct brcmnand_controller *ctrl, in brcmnand_write_fc()
801 static inline void edu_writel(struct brcmnand_controller *ctrl, in edu_writel()
809 static inline u32 edu_readl(struct brcmnand_controller *ctrl, in edu_readl()
817 static void brcmnand_clear_ecc_addr(struct brcmnand_controller *ctrl) in brcmnand_clear_ecc_addr()
827 static u64 brcmnand_get_uncorrecc_addr(struct brcmnand_controller *ctrl) in brcmnand_get_uncorrecc_addr()
839 static u64 brcmnand_get_correcc_addr(struct brcmnand_controller *ctrl) in brcmnand_get_correcc_addr()
855 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_cmd_addr()
865 static inline u16 brcmnand_cs_offset(struct brcmnand_controller *ctrl, int cs, in brcmnand_cs_offset()
883 static inline u32 brcmnand_count_corrected(struct brcmnand_controller *ctrl) in brcmnand_count_corrected()
892 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_wr_corr_thresh()
921 static inline int brcmnand_cmd_shift(struct brcmnand_controller *ctrl) in brcmnand_cmd_shift()
958 static inline u32 brcmnand_spare_area_mask(struct brcmnand_controller *ctrl) in brcmnand_spare_area_mask()
973 static inline u32 brcmnand_ecc_level_mask(struct brcmnand_controller *ctrl) in brcmnand_ecc_level_mask()
988 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_ecc_enabled()
1005 static inline int brcmnand_sector_1k_shift(struct brcmnand_controller *ctrl) in brcmnand_sector_1k_shift()
1019 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_get_sector_size_1k()
1032 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_sector_size_1k()
1056 static int bcmnand_ctrl_poll_status(struct brcmnand_controller *ctrl, in bcmnand_ctrl_poll_status()
1081 static inline void brcmnand_set_wp(struct brcmnand_controller *ctrl, bool en) in brcmnand_set_wp()
1092 static inline bool has_flash_dma(struct brcmnand_controller *ctrl) in has_flash_dma()
1097 static inline bool has_edu(struct brcmnand_controller *ctrl) in has_edu()
1102 static inline bool use_dma(struct brcmnand_controller *ctrl) in use_dma()
1107 static inline void disable_ctrl_irqs(struct brcmnand_controller *ctrl) in disable_ctrl_irqs()
1127 static inline void flash_dma_writel(struct brcmnand_controller *ctrl, in flash_dma_writel()
1135 static inline u32 flash_dma_readl(struct brcmnand_controller *ctrl, in flash_dma_readl()
1155 static inline bool is_hamming_ecc(struct brcmnand_controller *ctrl, in is_hamming_ecc()
1351 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_wp()
1392 static inline u8 oob_reg_read(struct brcmnand_controller *ctrl, u32 offs) in oob_reg_read()
1410 static inline void oob_reg_write(struct brcmnand_controller *ctrl, u32 offs, in oob_reg_write()
1437 static int read_oob_from_regs(struct brcmnand_controller *ctrl, int i, u8 *oob, in read_oob_from_regs()
1460 static int write_oob_to_regs(struct brcmnand_controller *ctrl, int i, in write_oob_to_regs()
1480 static void brcmnand_edu_init(struct brcmnand_controller *ctrl) in brcmnand_edu_init()
1495 struct brcmnand_controller *ctrl = data; in brcmnand_edu_irq()
1545 struct brcmnand_controller *ctrl = data; in brcmnand_ctlrdy_irq()
1568 struct brcmnand_controller *ctrl = data; in brcmnand_irq()
1578 struct brcmnand_controller *ctrl = data; in brcmnand_dma_irq()
1587 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_send_cmd()
1619 struct brcmnand_controller *ctrl = host->ctrl; in brcmstb_nand_wait_for_completion()
1644 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_waitfunc()
1680 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_low_level_op()
1719 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_cmdfunc()
1819 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_read_byte()
1904 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_edu_trans()
2051 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_dma_run()
2080 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_dma_trans()
2113 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_read_by_pio()
2212 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_read()
2357 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_write()
2480 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_cfg()
2615 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_setup_dev()
2785 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_init_cs()
2846 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_save_restore_cs_config()
2876 struct brcmnand_controller *ctrl = dev_get_drvdata(dev); in brcmnand_suspend()
2897 struct brcmnand_controller *ctrl = dev_get_drvdata(dev); in brcmnand_resume()
2962 struct brcmnand_controller *ctrl = dev_get_drvdata(&pdev->dev); in brcmnand_edu_setup()
3008 struct brcmnand_controller *ctrl; in brcmnand_probe()
3256 struct brcmnand_controller *ctrl = dev_get_drvdata(&pdev->dev); in brcmnand_remove()