| /Linux-v4.19/drivers/net/ethernet/mscc/ |
| D | ocelot.c | 44 static inline int ocelot_mact_wait_for_completion(struct ocelot *ocelot) in ocelot_mact_wait_for_completion() argument 53 val = ocelot_read(ocelot, ANA_TABLES_MACACCESS); in ocelot_mact_wait_for_completion() 63 static void ocelot_mact_select(struct ocelot *ocelot, in ocelot_mact_select() argument 80 ocelot_write(ocelot, macl, ANA_TABLES_MACLDATA); in ocelot_mact_select() 81 ocelot_write(ocelot, mach, ANA_TABLES_MACHDATA); in ocelot_mact_select() 85 static int ocelot_mact_learn(struct ocelot *ocelot, int port, in ocelot_mact_learn() argument 90 ocelot_mact_select(ocelot, mac, vid); in ocelot_mact_learn() 93 ocelot_write(ocelot, ANA_TABLES_MACACCESS_VALID | in ocelot_mact_learn() 99 return ocelot_mact_wait_for_completion(ocelot); in ocelot_mact_learn() 102 static int ocelot_mact_forget(struct ocelot *ocelot, in ocelot_mact_forget() argument [all …]
|
| D | ocelot_board.c | 38 static int ocelot_rx_frame_word(struct ocelot *ocelot, u8 grp, bool ifh, in ocelot_rx_frame_word() argument 44 val = ocelot_read_rix(ocelot, QS_XTR_RD, grp); in ocelot_rx_frame_word() 50 val = ocelot_read_rix(ocelot, QS_XTR_RD, grp); in ocelot_rx_frame_word() 63 val = ocelot_read_rix(ocelot, QS_XTR_RD, grp); in ocelot_rx_frame_word() 65 *rval = ocelot_read_rix(ocelot, QS_XTR_RD, grp); in ocelot_rx_frame_word() 71 *rval = ocelot_read_rix(ocelot, QS_XTR_RD, grp); in ocelot_rx_frame_word() 83 struct ocelot *ocelot = arg; in ocelot_xtr_irq_handler() local 87 if (!(ocelot_read(ocelot, QS_XTR_DATA_PRESENT) & BIT(grp))) in ocelot_xtr_irq_handler() 100 err = ocelot_rx_frame_word(ocelot, grp, true, &ifh[i]); in ocelot_xtr_irq_handler() 110 dev = ocelot->ports[info.port]->dev; in ocelot_xtr_irq_handler() [all …]
|
| D | ocelot_io.c | 13 u32 __ocelot_read_ix(struct ocelot *ocelot, u32 reg, u32 offset) in __ocelot_read_ix() argument 20 regmap_read(ocelot->targets[target], in __ocelot_read_ix() 21 ocelot->map[target][reg & REG_MASK] + offset, &val); in __ocelot_read_ix() 26 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset) in __ocelot_write_ix() argument 32 regmap_write(ocelot->targets[target], in __ocelot_write_ix() 33 ocelot->map[target][reg & REG_MASK] + offset, val); in __ocelot_write_ix() 37 void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg, in __ocelot_rmw_ix() argument 44 regmap_update_bits(ocelot->targets[target], in __ocelot_rmw_ix() 45 ocelot->map[target][reg & REG_MASK] + offset, in __ocelot_rmw_ix() 62 int ocelot_regfields_init(struct ocelot *ocelot, in ocelot_regfields_init() argument [all …]
|
| D | ocelot.h | 473 struct ocelot { struct 512 struct ocelot *ocelot; argument 532 u32 __ocelot_read_ix(struct ocelot *ocelot, u32 reg, u32 offset); 533 #define ocelot_read_ix(ocelot, reg, gi, ri) __ocelot_read_ix(ocelot, reg, reg##_GSZ * (gi) + reg##_… argument 534 #define ocelot_read_gix(ocelot, reg, gi) __ocelot_read_ix(ocelot, reg, reg##_GSZ * (gi)) argument 535 #define ocelot_read_rix(ocelot, reg, ri) __ocelot_read_ix(ocelot, reg, reg##_RSZ * (ri)) argument 536 #define ocelot_read(ocelot, reg) __ocelot_read_ix(ocelot, reg, 0) argument 538 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset); 539 #define ocelot_write_ix(ocelot, val, reg, gi, ri) __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (… argument 540 #define ocelot_write_gix(ocelot, val, reg, gi) __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (gi)) argument [all …]
|
| D | ocelot_regs.c | 451 static void ocelot_pll5_init(struct ocelot *ocelot) in ocelot_pll5_init() argument 456 ocelot_write(ocelot, HSIO_PLL5G_CFG4_IB_CTRL(0x7600) | in ocelot_pll5_init() 458 ocelot_write(ocelot, HSIO_PLL5G_CFG0_CORE_CLK_DIV(0x11) | in ocelot_pll5_init() 469 ocelot_write(ocelot, HSIO_PLL5G_CFG2_EN_RESET_FRQ_DET | in ocelot_pll5_init() 477 int ocelot_chip_init(struct ocelot *ocelot) in ocelot_chip_init() argument 481 ocelot->map = ocelot_regmap; in ocelot_chip_init() 482 ocelot->stats_layout = ocelot_stats_layout; in ocelot_chip_init() 483 ocelot->num_stats = ARRAY_SIZE(ocelot_stats_layout); in ocelot_chip_init() 484 ocelot->shared_queue_sz = 224 * 1024; in ocelot_chip_init() 486 ret = ocelot_regfields_init(ocelot, ocelot_regfields); in ocelot_chip_init() [all …]
|
| D | Makefile | 3 mscc_ocelot_common-y := ocelot.o ocelot_io.o
|
| /Linux-v4.19/Documentation/devicetree/bindings/mips/ |
| D | mscc.txt | 7 - compatible: "mscc,ocelot" 19 - compatible: Should be "mscc,ocelot-chip-regs", "simple-mfd", "syscon" 24 compatible = "mscc,ocelot-chip-regs", "simple-mfd", "syscon"; 36 - compatible: Should be "mscc,ocelot-cpu-syscon", "syscon" 41 compatible = "mscc,ocelot-cpu-syscon", "syscon";
|
| /Linux-v4.19/arch/mips/boot/dts/mscc/ |
| D | ocelot.dtsi | 7 compatible = "mscc,ocelot"; 55 compatible = "mscc,ocelot-cpu-syscon", "syscon"; 60 compatible = "mscc,ocelot-icpu-intr"; 95 compatible = "mscc,ocelot-spi", "snps,dw-apb-ssi"; 172 compatible = "mscc,ocelot-chip-reset"; 177 compatible = "mscc,ocelot-pinctrl"; 205 compatible = "mscc,ocelot-miim"; 227 compatible = "mscc,ocelot-miim";
|
| D | ocelot_pcb123.dts | 6 #include "ocelot.dtsi" 9 compatible = "mscc,ocelot-pcb123", "mscc,ocelot";
|
| /Linux-v4.19/Documentation/devicetree/bindings/pinctrl/ |
| D | mscc,ocelot-pinctrl.txt | 5 - compatible : Should be "mscc,ocelot-pinctrl" 15 The ocelot-pinctrl driver uses the generic pin multiplexing and generic pin 24 compatible = "mscc,ocelot-pinctrl";
|
| /Linux-v4.19/Documentation/devicetree/bindings/power/reset/ |
| D | ocelot-reset.txt | 7 - compatible: "mscc,ocelot-chip-reset" 11 compatible = "mscc,ocelot-chip-reset";
|
| /Linux-v4.19/Documentation/devicetree/bindings/interrupt-controller/ |
| D | mscc,ocelot-icpu-intr.txt | 5 - compatible : should be "mscc,ocelot-icpu-intr" 15 compatible = "mscc,ocelot-icpu-intr";
|
| /Linux-v4.19/Documentation/devicetree/bindings/net/ |
| D | mscc-miim.txt | 5 - compatible: must be "mscc,ocelot-miim" 19 compatible = "mscc,ocelot-miim";
|
| /Linux-v4.19/arch/mips/generic/ |
| D | Makefile | 17 obj-$(CONFIG_LEGACY_BOARD_OCELOT) += board-ocelot.o
|
| D | board-ocelot.c | 74 MIPS_MACHINE(ocelot) = {
|
| /Linux-v4.19/Documentation/devicetree/bindings/spi/ |
| D | snps,dw-apb-ssi.txt | 4 - compatible : "snps,dw-apb-ssi" or "mscc,<soc>-spi", where soc is "ocelot" or
|
| /Linux-v4.19/drivers/power/reset/ |
| D | Makefile | 15 obj-$(CONFIG_POWER_RESET_OCELOT_RESET) += ocelot-reset.o
|
| /Linux-v4.19/drivers/pinctrl/ |
| D | Makefile | 44 obj-$(CONFIG_PINCTRL_OCELOT) += pinctrl-ocelot.o
|
| /Linux-v4.19/drivers/irqchip/ |
| D | Makefile | 74 obj-$(CONFIG_MSCC_OCELOT_IRQ) += irq-mscc-ocelot.o
|
| /Linux-v4.19/arch/mips/ |
| D | Makefile | 564 ocelot_defconfig-y := 32r2el_defconfig BOARDS=ocelot
|
| /Linux-v4.19/ |
| D | MAINTAINERS | 9594 F: arch/mips/generic/board-ocelot.c 9595 F: arch/mips/configs/generic/board-ocelot.config
|