Lines Matching refs:hwcfg
170 const struct lantiq_ssc_hwcfg *hwcfg; member
211 const struct lantiq_ssc_hwcfg *hwcfg = spi->hwcfg; in tx_fifo_level() local
214 return (fstat >> LTQ_SPI_FSTAT_TXFFL_S) & hwcfg->fifo_size_mask; in tx_fifo_level()
219 const struct lantiq_ssc_hwcfg *hwcfg = spi->hwcfg; in rx_fifo_level() local
222 return (fstat >> LTQ_SPI_FSTAT_RXFFL_S) & hwcfg->fifo_size_mask; in rx_fifo_level()
346 const struct lantiq_ssc_hwcfg *hwcfg = spi->hwcfg; in lantiq_ssc_hw_init() local
383 lantiq_ssc_writel(spi, hwcfg->irnen_t | hwcfg->irnen_r | in lantiq_ssc_hw_init()
626 const struct lantiq_ssc_hwcfg *hwcfg = spi->hwcfg; in lantiq_ssc_xmit_interrupt() local
627 u32 val = lantiq_ssc_readl(spi, hwcfg->irncr); in lantiq_ssc_xmit_interrupt()
630 if (hwcfg->irq_ack) in lantiq_ssc_xmit_interrupt()
631 lantiq_ssc_writel(spi, val, hwcfg->irncr); in lantiq_ssc_xmit_interrupt()
667 const struct lantiq_ssc_hwcfg *hwcfg = spi->hwcfg; in lantiq_ssc_err_interrupt() local
669 u32 val = lantiq_ssc_readl(spi, hwcfg->irncr); in lantiq_ssc_err_interrupt()
675 if (hwcfg->irq_ack) in lantiq_ssc_err_interrupt()
676 lantiq_ssc_writel(spi, val, hwcfg->irncr); in lantiq_ssc_err_interrupt()
706 const struct lantiq_ssc_hwcfg *hwcfg = spi->hwcfg; in intel_lgm_ssc_isr() local
707 u32 val = lantiq_ssc_readl(spi, hwcfg->irncr); in intel_lgm_ssc_isr()
715 if ((val & hwcfg->irnen_t) || (val & hwcfg->irnen_r)) in intel_lgm_ssc_isr()
908 const struct lantiq_ssc_hwcfg *hwcfg; in lantiq_ssc_probe() local
913 hwcfg = of_device_get_match_data(dev); in lantiq_ssc_probe()
922 spi->hwcfg = hwcfg; in lantiq_ssc_probe()
930 err = hwcfg->cfg_irq(pdev, spi); in lantiq_ssc_probe()
989 spi->tx_fifo_size = (id >> LTQ_SPI_ID_TXFS_S) & hwcfg->fifo_size_mask; in lantiq_ssc_probe()
990 spi->rx_fifo_size = (id >> LTQ_SPI_ID_RXFS_S) & hwcfg->fifo_size_mask; in lantiq_ssc_probe()