/linux-6.6.21/drivers/spi/ |
D | spi-fsl-espi.c | 116 static inline u32 fsl_espi_read_reg(struct fsl_espi *espi, int offset) in fsl_espi_read_reg() argument 118 return ioread32be(espi->reg_base + offset); in fsl_espi_read_reg() 121 static inline u16 fsl_espi_read_reg16(struct fsl_espi *espi, int offset) in fsl_espi_read_reg16() argument 123 return ioread16be(espi->reg_base + offset); in fsl_espi_read_reg16() 126 static inline u8 fsl_espi_read_reg8(struct fsl_espi *espi, int offset) in fsl_espi_read_reg8() argument 128 return ioread8(espi->reg_base + offset); in fsl_espi_read_reg8() 131 static inline void fsl_espi_write_reg(struct fsl_espi *espi, int offset, in fsl_espi_write_reg() argument 134 iowrite32be(val, espi->reg_base + offset); in fsl_espi_write_reg() 137 static inline void fsl_espi_write_reg16(struct fsl_espi *espi, int offset, in fsl_espi_write_reg16() argument 140 iowrite16be(val, espi->reg_base + offset); in fsl_espi_write_reg16() [all …]
|
D | spi-ep93xx.c | 115 struct ep93xx_spi *espi = spi_controller_get_devdata(host); in ep93xx_spi_calc_divisors() local 116 unsigned long spi_clk_rate = clk_get_rate(espi->clk); in ep93xx_spi_calc_divisors() 150 struct ep93xx_spi *espi = spi_controller_get_devdata(host); in ep93xx_spi_chip_setup() local 173 writel(div_cpsr, espi->mmio + SSPCPSR); in ep93xx_spi_chip_setup() 174 writel(cr0, espi->mmio + SSPCR0); in ep93xx_spi_chip_setup() 181 struct ep93xx_spi *espi = spi_controller_get_devdata(host); in ep93xx_do_write() local 187 val = ((u16 *)xfer->tx_buf)[espi->tx]; in ep93xx_do_write() 188 espi->tx += 2; in ep93xx_do_write() 191 val = ((u8 *)xfer->tx_buf)[espi->tx]; in ep93xx_do_write() 192 espi->tx += 1; in ep93xx_do_write() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb/ |
D | espi.c | 108 void t1_espi_intr_enable(struct peespi *espi) in t1_espi_intr_enable() argument 110 u32 enable, pl_intr = readl(espi->adapter->regs + A_PL_ENABLE); in t1_espi_intr_enable() 119 enable = t1_is_T1B(espi->adapter) ? 0 : ESPI_INTR_MASK; in t1_espi_intr_enable() 120 writel(enable, espi->adapter->regs + A_ESPI_INTR_ENABLE); in t1_espi_intr_enable() 121 writel(pl_intr | F_PL_INTR_ESPI, espi->adapter->regs + A_PL_ENABLE); in t1_espi_intr_enable() 124 void t1_espi_intr_clear(struct peespi *espi) in t1_espi_intr_clear() argument 126 readl(espi->adapter->regs + A_ESPI_DIP2_ERR_COUNT); in t1_espi_intr_clear() 127 writel(0xffffffff, espi->adapter->regs + A_ESPI_INTR_STATUS); in t1_espi_intr_clear() 128 writel(F_PL_INTR_ESPI, espi->adapter->regs + A_PL_CAUSE); in t1_espi_intr_clear() 131 void t1_espi_intr_disable(struct peespi *espi) in t1_espi_intr_disable() argument [all …]
|
D | espi.h | 46 void t1_espi_destroy(struct peespi *espi); 47 int t1_espi_init(struct peespi *espi, int mac_type, int nports); 53 const struct espi_intr_counts *t1_espi_get_intr_counts(struct peespi *espi);
|
D | subr.c | 766 if (adapter->espi) { in t1_interrupts_enable() 768 t1_espi_intr_enable(adapter->espi); in t1_interrupts_enable() 798 if (adapter->espi) in t1_interrupts_disable() 799 t1_espi_intr_disable(adapter->espi); in t1_interrupts_disable() 824 if (adapter->espi) in t1_interrupts_clear() 825 t1_espi_intr_clear(adapter->espi); in t1_interrupts_clear() 863 t1_espi_intr_handler(adapter->espi); in asic_slow_intr() 992 if (adapter->espi && t1_espi_init(adapter->espi, bi->chip_mac, in t1_init_hw_modules() 1043 if (adapter->espi) in t1_free_sw_modules() 1044 t1_espi_destroy(adapter->espi); in t1_free_sw_modules() [all …]
|
D | Makefile | 9 cxgb-objs := cxgb2.o espi.o tp.o pm3393.o sge.o subr.o \
|
D | common.h | 236 struct peespi *espi; member
|
/linux-6.6.21/Documentation/devicetree/bindings/spi/ |
D | fsl-spi.txt | 42 - compatible : should be "fsl,mpc8536-espi". 45 - fsl,espi-num-chipselects : the number of the chipselect signals. 55 compatible = "fsl,mpc8536-espi"; 59 fsl,espi-num-chipselects = <4>;
|
/linux-6.6.21/arch/powerpc/boot/dts/fsl/ |
D | bsc9131si-post.dtsi | 85 /include/ "pq3-espi-0.dtsi" 87 fsl,espi-num-chipselects = <1>;
|
D | bsc9132si-post.dtsi | 114 /include/ "pq3-espi-0.dtsi" 116 fsl,espi-num-chipselects = <1>;
|
D | c293si-post.dtsi | 98 /include/ "pq3-espi-0.dtsi" 100 fsl,espi-num-chipselects = <1>;
|
D | p1010si-post.dtsi | 135 /include/ "pq3-espi-0.dtsi" 137 fsl,espi-num-chipselects = <1>;
|
D | p1020si-post.dtsi | 129 /include/ "pq3-espi-0.dtsi" 131 fsl,espi-num-chipselects = <4>;
|
D | p2020si-post.dtsi | 159 /include/ "pq3-espi-0.dtsi" 161 fsl,espi-num-chipselects = <4>;
|
D | p1021si-post.dtsi | 129 /include/ "pq3-espi-0.dtsi" 131 fsl,espi-num-chipselects = <4>;
|
D | mpc8536si-post.dtsi | 166 /include/ "pq3-espi-0.dtsi" 168 fsl,espi-num-chipselects = <4>;
|
D | p1022si-post.dtsi | 161 /include/ "pq3-espi-0.dtsi" 163 fsl,espi-num-chipselects = <4>;
|
D | qoriq-espi-0.dtsi | 38 compatible = "fsl,mpc8536-espi";
|
D | pq3-espi-0.dtsi | 38 compatible = "fsl,mpc8536-espi";
|
D | p1023si-post.dtsi | 191 /include/ "pq3-espi-0.dtsi" 193 fsl,espi-num-chipselects = <4>;
|
D | mvme2500.dts | 66 fsl,espi-num-chipselects = <2>;
|
D | p2041si-post.dtsi | 360 /include/ "qoriq-espi-0.dtsi" 362 fsl,espi-num-chipselects = <4>;
|
D | p3041si-post.dtsi | 387 /include/ "qoriq-espi-0.dtsi" 389 fsl,espi-num-chipselects = <4>;
|
D | p5020si-post.dtsi | 392 /include/ "qoriq-espi-0.dtsi" 394 fsl,espi-num-chipselects = <4>;
|
/linux-6.6.21/drivers/pinctrl/nuvoton/ |
D | pinctrl-npcm7xx.c | 635 NPCM7XX_GRP(espi), \ 778 NPCM7XX_SFUNC(espi); 896 NPCM7XX_MKFUNC(espi), 1028 NPCM7XX_PINCFG(95, lpc, NONE, 0, espi, MFSEL4, 8, gpio, MFSEL1, 26, 0), 1097 NPCM7XX_PINCFG(161, lpc, NONE, 0, espi, MFSEL4, 8, gpio, MFSEL1, 26, DSTR(8, 12)), 1099 NPCM7XX_PINCFG(163, lpc, NONE, 0, espi, MFSEL4, 8, gpio, MFSEL1, 26, 0), 1100 NPCM7XX_PINCFG(164, lpc, NONE, 0, espi, MFSEL4, 8, gpio, MFSEL1, 26, SLEWLPC), 1101 NPCM7XX_PINCFG(165, lpc, NONE, 0, espi, MFSEL4, 8, gpio, MFSEL1, 26, SLEWLPC), 1102 NPCM7XX_PINCFG(166, lpc, NONE, 0, espi, MFSEL4, 8, gpio, MFSEL1, 26, SLEWLPC), 1103 NPCM7XX_PINCFG(167, lpc, NONE, 0, espi, MFSEL4, 8, gpio, MFSEL1, 26, SLEWLPC), [all …]
|