Lines Matching refs:brcmnand_controller

214 struct brcmnand_controller {  struct
317 struct brcmnand_controller *ctrl;
628 static inline bool brcmnand_non_mmio_ops(struct brcmnand_controller *ctrl) in brcmnand_non_mmio_ops()
637 static inline u32 nand_readreg(struct brcmnand_controller *ctrl, u32 offs) in nand_readreg()
644 static inline void nand_writereg(struct brcmnand_controller *ctrl, u32 offs, in nand_writereg()
653 static int brcmnand_revision_init(struct brcmnand_controller *ctrl) in brcmnand_revision_init()
778 static void brcmnand_flash_dma_revision_init(struct brcmnand_controller *ctrl) in brcmnand_flash_dma_revision_init()
789 static inline u32 brcmnand_read_reg(struct brcmnand_controller *ctrl, in brcmnand_read_reg()
800 static inline void brcmnand_write_reg(struct brcmnand_controller *ctrl, in brcmnand_write_reg()
809 static inline void brcmnand_rmw_reg(struct brcmnand_controller *ctrl, in brcmnand_rmw_reg()
820 static inline u32 brcmnand_read_fc(struct brcmnand_controller *ctrl, int word) in brcmnand_read_fc()
827 static inline void brcmnand_write_fc(struct brcmnand_controller *ctrl, in brcmnand_write_fc()
836 static inline void edu_writel(struct brcmnand_controller *ctrl, in edu_writel()
844 static inline u32 edu_readl(struct brcmnand_controller *ctrl, in edu_readl()
852 static void brcmnand_clear_ecc_addr(struct brcmnand_controller *ctrl) in brcmnand_clear_ecc_addr()
862 static u64 brcmnand_get_uncorrecc_addr(struct brcmnand_controller *ctrl) in brcmnand_get_uncorrecc_addr()
874 static u64 brcmnand_get_correcc_addr(struct brcmnand_controller *ctrl) in brcmnand_get_correcc_addr()
890 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_cmd_addr()
900 static inline u16 brcmnand_cs_offset(struct brcmnand_controller *ctrl, int cs, in brcmnand_cs_offset()
918 static inline u32 brcmnand_count_corrected(struct brcmnand_controller *ctrl) in brcmnand_count_corrected()
927 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_wr_corr_thresh()
956 static inline int brcmnand_cmd_shift(struct brcmnand_controller *ctrl) in brcmnand_cmd_shift()
969 static inline u32 brcmnand_spare_area_mask(struct brcmnand_controller *ctrl) in brcmnand_spare_area_mask()
981 static inline u32 brcmnand_ecc_level_mask(struct brcmnand_controller *ctrl) in brcmnand_ecc_level_mask()
996 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_ecc_enabled()
1013 static inline int brcmnand_sector_1k_shift(struct brcmnand_controller *ctrl) in brcmnand_sector_1k_shift()
1027 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_get_sector_size_1k()
1040 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_sector_size_1k()
1064 static int bcmnand_ctrl_poll_status(struct brcmnand_controller *ctrl, in bcmnand_ctrl_poll_status()
1097 static inline void brcmnand_set_wp(struct brcmnand_controller *ctrl, bool en) in brcmnand_set_wp()
1108 static inline bool has_flash_dma(struct brcmnand_controller *ctrl) in has_flash_dma()
1113 static inline bool has_edu(struct brcmnand_controller *ctrl) in has_edu()
1118 static inline bool use_dma(struct brcmnand_controller *ctrl) in use_dma()
1123 static inline void disable_ctrl_irqs(struct brcmnand_controller *ctrl) in disable_ctrl_irqs()
1143 static inline void flash_dma_writel(struct brcmnand_controller *ctrl, in flash_dma_writel()
1151 static inline u32 flash_dma_readl(struct brcmnand_controller *ctrl, in flash_dma_readl()
1171 static inline bool is_hamming_ecc(struct brcmnand_controller *ctrl, in is_hamming_ecc()
1367 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_wp()
1408 static inline u8 oob_reg_read(struct brcmnand_controller *ctrl, u32 offs) in oob_reg_read()
1426 static inline void oob_reg_write(struct brcmnand_controller *ctrl, u32 offs, in oob_reg_write()
1453 static int read_oob_from_regs(struct brcmnand_controller *ctrl, int i, u8 *oob, in read_oob_from_regs()
1476 static int write_oob_to_regs(struct brcmnand_controller *ctrl, int i, in write_oob_to_regs()
1510 static void brcmnand_edu_init(struct brcmnand_controller *ctrl) in brcmnand_edu_init()
1525 struct brcmnand_controller *ctrl = data; in brcmnand_edu_irq()
1575 struct brcmnand_controller *ctrl = data; in brcmnand_ctlrdy_irq()
1598 struct brcmnand_controller *ctrl = data; in brcmnand_irq()
1608 struct brcmnand_controller *ctrl = data; in brcmnand_dma_irq()
1617 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_send_cmd()
1659 struct brcmnand_controller *ctrl = host->ctrl; in brcmstb_nand_wait_for_completion()
1684 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_waitfunc()
1721 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_low_level_op()
1760 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_cmdfunc()
1860 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_read_byte()
1945 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_edu_trans()
2092 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_dma_run()
2121 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_dma_trans()
2154 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_read_by_pio()
2253 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_read()
2398 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_write()
2521 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_cfg()
2658 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_setup_dev()
2829 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_init_cs()
2890 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_save_restore_cs_config()
2920 struct brcmnand_controller *ctrl = dev_get_drvdata(dev); in brcmnand_suspend()
2941 struct brcmnand_controller *ctrl = dev_get_drvdata(dev); in brcmnand_resume()
3006 struct brcmnand_controller *ctrl = dev_get_drvdata(&pdev->dev); in brcmnand_edu_setup()
3052 struct brcmnand_controller *ctrl; in brcmnand_probe()
3304 struct brcmnand_controller *ctrl = dev_get_drvdata(&pdev->dev); in brcmnand_remove()