Home
last modified time | relevance | path

Searched refs:ocelot (Results 1 – 21 of 21) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/mscc/
Docelot.c44 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 …]
Docelot_board.c38 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 …]
Docelot_io.c13 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 …]
Docelot.h473 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 …]
Docelot_regs.c451 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 …]
DMakefile3 mscc_ocelot_common-y := ocelot.o ocelot_io.o
/Linux-v4.19/Documentation/devicetree/bindings/mips/
Dmscc.txt7 - 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/
Docelot.dtsi7 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";
Docelot_pcb123.dts6 #include "ocelot.dtsi"
9 compatible = "mscc,ocelot-pcb123", "mscc,ocelot";
/Linux-v4.19/Documentation/devicetree/bindings/pinctrl/
Dmscc,ocelot-pinctrl.txt5 - 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/
Docelot-reset.txt7 - compatible: "mscc,ocelot-chip-reset"
11 compatible = "mscc,ocelot-chip-reset";
/Linux-v4.19/Documentation/devicetree/bindings/interrupt-controller/
Dmscc,ocelot-icpu-intr.txt5 - compatible : should be "mscc,ocelot-icpu-intr"
15 compatible = "mscc,ocelot-icpu-intr";
/Linux-v4.19/Documentation/devicetree/bindings/net/
Dmscc-miim.txt5 - compatible: must be "mscc,ocelot-miim"
19 compatible = "mscc,ocelot-miim";
/Linux-v4.19/arch/mips/generic/
DMakefile17 obj-$(CONFIG_LEGACY_BOARD_OCELOT) += board-ocelot.o
Dboard-ocelot.c74 MIPS_MACHINE(ocelot) = {
/Linux-v4.19/Documentation/devicetree/bindings/spi/
Dsnps,dw-apb-ssi.txt4 - compatible : "snps,dw-apb-ssi" or "mscc,<soc>-spi", where soc is "ocelot" or
/Linux-v4.19/drivers/power/reset/
DMakefile15 obj-$(CONFIG_POWER_RESET_OCELOT_RESET) += ocelot-reset.o
/Linux-v4.19/drivers/pinctrl/
DMakefile44 obj-$(CONFIG_PINCTRL_OCELOT) += pinctrl-ocelot.o
/Linux-v4.19/drivers/irqchip/
DMakefile74 obj-$(CONFIG_MSCC_OCELOT_IRQ) += irq-mscc-ocelot.o
/Linux-v4.19/arch/mips/
DMakefile564 ocelot_defconfig-y := 32r2el_defconfig BOARDS=ocelot
/Linux-v4.19/
DMAINTAINERS9594 F: arch/mips/generic/board-ocelot.c
9595 F: arch/mips/configs/generic/board-ocelot.config