Lines Matching refs:brcmnand_controller
210 struct brcmnand_controller { struct
309 struct brcmnand_controller *ctrl;
592 static inline u32 nand_readreg(struct brcmnand_controller *ctrl, u32 offs) in nand_readreg()
597 static inline void nand_writereg(struct brcmnand_controller *ctrl, u32 offs, in nand_writereg()
603 static int brcmnand_revision_init(struct brcmnand_controller *ctrl) in brcmnand_revision_init()
722 static void brcmnand_flash_dma_revision_init(struct brcmnand_controller *ctrl) in brcmnand_flash_dma_revision_init()
733 static inline u32 brcmnand_read_reg(struct brcmnand_controller *ctrl, in brcmnand_read_reg()
744 static inline void brcmnand_write_reg(struct brcmnand_controller *ctrl, in brcmnand_write_reg()
753 static inline void brcmnand_rmw_reg(struct brcmnand_controller *ctrl, in brcmnand_rmw_reg()
764 static inline u32 brcmnand_read_fc(struct brcmnand_controller *ctrl, int word) in brcmnand_read_fc()
769 static inline void brcmnand_write_fc(struct brcmnand_controller *ctrl, in brcmnand_write_fc()
775 static inline void edu_writel(struct brcmnand_controller *ctrl, in edu_writel()
783 static inline u32 edu_readl(struct brcmnand_controller *ctrl, in edu_readl()
791 static void brcmnand_clear_ecc_addr(struct brcmnand_controller *ctrl) in brcmnand_clear_ecc_addr()
801 static u64 brcmnand_get_uncorrecc_addr(struct brcmnand_controller *ctrl) in brcmnand_get_uncorrecc_addr()
813 static u64 brcmnand_get_correcc_addr(struct brcmnand_controller *ctrl) in brcmnand_get_correcc_addr()
829 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_cmd_addr()
839 static inline u16 brcmnand_cs_offset(struct brcmnand_controller *ctrl, int cs, in brcmnand_cs_offset()
857 static inline u32 brcmnand_count_corrected(struct brcmnand_controller *ctrl) in brcmnand_count_corrected()
866 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_wr_corr_thresh()
895 static inline int brcmnand_cmd_shift(struct brcmnand_controller *ctrl) in brcmnand_cmd_shift()
926 static inline u32 brcmnand_spare_area_mask(struct brcmnand_controller *ctrl) in brcmnand_spare_area_mask()
941 static inline u32 brcmnand_ecc_level_mask(struct brcmnand_controller *ctrl) in brcmnand_ecc_level_mask()
956 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_ecc_enabled()
973 static inline int brcmnand_sector_1k_shift(struct brcmnand_controller *ctrl) in brcmnand_sector_1k_shift()
987 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_get_sector_size_1k()
1000 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_sector_size_1k()
1024 static int bcmnand_ctrl_poll_status(struct brcmnand_controller *ctrl, in bcmnand_ctrl_poll_status()
1049 static inline void brcmnand_set_wp(struct brcmnand_controller *ctrl, bool en) in brcmnand_set_wp()
1060 static inline bool has_flash_dma(struct brcmnand_controller *ctrl) in has_flash_dma()
1065 static inline bool has_edu(struct brcmnand_controller *ctrl) in has_edu()
1070 static inline bool use_dma(struct brcmnand_controller *ctrl) in use_dma()
1075 static inline void disable_ctrl_irqs(struct brcmnand_controller *ctrl) in disable_ctrl_irqs()
1095 static inline void flash_dma_writel(struct brcmnand_controller *ctrl, in flash_dma_writel()
1103 static inline u32 flash_dma_readl(struct brcmnand_controller *ctrl, in flash_dma_readl()
1123 static inline bool is_hamming_ecc(struct brcmnand_controller *ctrl, in is_hamming_ecc()
1319 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_wp()
1360 static inline u8 oob_reg_read(struct brcmnand_controller *ctrl, u32 offs) in oob_reg_read()
1378 static inline void oob_reg_write(struct brcmnand_controller *ctrl, u32 offs, in oob_reg_write()
1405 static int read_oob_from_regs(struct brcmnand_controller *ctrl, int i, u8 *oob, in read_oob_from_regs()
1428 static int write_oob_to_regs(struct brcmnand_controller *ctrl, int i, in write_oob_to_regs()
1448 static void brcmnand_edu_init(struct brcmnand_controller *ctrl) in brcmnand_edu_init()
1463 struct brcmnand_controller *ctrl = data; in brcmnand_edu_irq()
1496 struct brcmnand_controller *ctrl = data; in brcmnand_ctlrdy_irq()
1519 struct brcmnand_controller *ctrl = data; in brcmnand_irq()
1529 struct brcmnand_controller *ctrl = data; in brcmnand_dma_irq()
1538 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_send_cmd()
1570 struct brcmnand_controller *ctrl = host->ctrl; in brcmstb_nand_wait_for_completion()
1595 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_waitfunc()
1631 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_low_level_op()
1670 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_cmdfunc()
1770 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_read_byte()
1855 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_edu_trans()
1978 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_dma_run()
2007 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_dma_trans()
2040 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_read_by_pio()
2139 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_read()
2283 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_write()
2402 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_cfg()
2537 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_setup_dev()
2700 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_init_cs()
2768 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_save_restore_cs_config()
2798 struct brcmnand_controller *ctrl = dev_get_drvdata(dev); in brcmnand_suspend()
2819 struct brcmnand_controller *ctrl = dev_get_drvdata(dev); in brcmnand_resume()
2884 struct brcmnand_controller *ctrl = dev_get_drvdata(&pdev->dev); in brcmnand_edu_setup()
2929 struct brcmnand_controller *ctrl; in brcmnand_probe()
3145 struct brcmnand_controller *ctrl = dev_get_drvdata(&pdev->dev); in brcmnand_remove()