Lines Matching +full:0 +full:x4c000

17 #define XTR_EOF_0			0x00000080U
18 #define XTR_EOF_1 0x01000080U
19 #define XTR_EOF_2 0x02000080U
20 #define XTR_EOF_3 0x03000080U
21 #define XTR_PRUNED 0x04000080U
22 #define XTR_ABORT 0x05000080U
23 #define XTR_ESCAPE 0x06000080U
24 #define XTR_NOT_READY 0x07000080U
42 { TARGET_CPU, 0xc0000, 0 }, /* 0xe00c0000 */
43 { TARGET_FDMA, 0xc0400, 0 }, /* 0xe00c0400 */
44 { TARGET_ORG, 0, 1 }, /* 0xe2000000 */
45 { TARGET_GCB, 0x4000, 1 }, /* 0xe2004000 */
46 { TARGET_QS, 0x8000, 1 }, /* 0xe2008000 */
47 { TARGET_PTP, 0xc000, 1 }, /* 0xe200c000 */
48 { TARGET_CHIP_TOP, 0x10000, 1 }, /* 0xe2010000 */
49 { TARGET_REW, 0x14000, 1 }, /* 0xe2014000 */
50 { TARGET_VCAP, 0x18000, 1 }, /* 0xe2018000 */
51 { TARGET_VCAP + 1, 0x20000, 1 }, /* 0xe2020000 */
52 { TARGET_VCAP + 2, 0x24000, 1 }, /* 0xe2024000 */
53 { TARGET_SYS, 0x28000, 1 }, /* 0xe2028000 */
54 { TARGET_DEV, 0x34000, 1 }, /* 0xe2034000 */
55 { TARGET_DEV + 1, 0x38000, 1 }, /* 0xe2038000 */
56 { TARGET_DEV + 2, 0x3c000, 1 }, /* 0xe203c000 */
57 { TARGET_DEV + 3, 0x40000, 1 }, /* 0xe2040000 */
58 { TARGET_DEV + 4, 0x44000, 1 }, /* 0xe2044000 */
59 { TARGET_DEV + 5, 0x48000, 1 }, /* 0xe2048000 */
60 { TARGET_DEV + 6, 0x4c000, 1 }, /* 0xe204c000 */
61 { TARGET_DEV + 7, 0x50000, 1 }, /* 0xe2050000 */
62 { TARGET_QSYS, 0x100000, 1 }, /* 0xe2100000 */
63 { TARGET_AFI, 0x120000, 1 }, /* 0xe2120000 */
64 { TARGET_ANA, 0x140000, 1 }, /* 0xe2140000 */
79 for (idx = 0; idx < IO_RANGES; idx++) { in lan966x_create_targets()
97 for (idx = 0; idx < ARRAY_SIZE(lan966x_main_iomap); idx++) { in lan966x_create_targets()
104 return 0; in lan966x_create_targets()
113 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_port_unique_address()
133 return 0; in lan966x_port_set_mac_address()
166 return 0; in lan966x_port_get_phys_port_name()
186 err = phylink_fwnode_phy_connect(port->phylink, port->fwnode, 0); in lan966x_port_open()
194 return 0; in lan966x_port_open()
205 return 0; in lan966x_port_stop()
218 return 0; in lan966x_port_inj_ready()
232 u8 grp = 0; in lan966x_port_ifh_xmit()
247 for (i = 0; i < IFH_LEN; ++i) { in lan966x_port_ifh_xmit()
259 for (i = 0; i < count; ++i) { in lan966x_port_ifh_xmit()
275 lan_wr(0, lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit()
282 0 : last) | in lan966x_port_ifh_xmit()
287 lan_wr(0, lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit()
310 int i = 0; in lan966x_ifh_set()
314 u8 v = val >> i & 0xff; in lan966x_ifh_set()
369 memset(ifh, 0x0, sizeof(__be32) * IFH_LEN); in lan966x_port_xmit()
373 lan966x_ifh_set_qos_class(ifh, skb->priority >= 7 ? 0x7 : skb->priority); in lan966x_port_xmit()
374 lan966x_ifh_set_ipv(ifh, skb->priority >= 7 ? 0x7 : skb->priority); in lan966x_port_xmit()
408 return 0; in lan966x_port_change_mtu()
450 return 0; in lan966x_port_get_parent_id()
463 return 0; in lan966x_port_hwtstamp_get()
492 return 0; in lan966x_port_hwtstamp_set()
607 u64 val = 0; in lan966x_ifh_get()
610 for (int i = 0; i < length ; i++) { in lan966x_ifh_get()
614 if (i == 0 || k == 0) in lan966x_ifh_get()
642 int i, grp = 0, err = 0; in lan966x_xtr_irq_handler()
651 int sz = 0, buf_len; in lan966x_xtr_irq_handler()
656 for (i = 0; i < IFH_LEN; i++) { in lan966x_xtr_irq_handler()
662 err = 0; in lan966x_xtr_irq_handler()
679 len = 0; in lan966x_xtr_irq_handler()
682 if (sz < 0) { in lan966x_xtr_irq_handler()
693 if (sz < 0) { in lan966x_xtr_irq_handler()
714 skb->offload_fwd_mark = 0; in lan966x_xtr_irq_handler()
724 if (sz < 0 || err) in lan966x_xtr_irq_handler()
744 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_cleanup_ports()
771 if (lan966x->ana_irq > 0) { in lan966x_cleanup_ports()
779 if (lan966x->ptp_irq > 0) in lan966x_cleanup_ports()
782 if (lan966x->ptp_ext_irq > 0) in lan966x_cleanup_ports()
874 lan966x_vlan_port_set_vlan_aware(port, 0); in lan966x_probe_port()
878 return 0; in lan966x_probe_port()
892 GENMASK(1, 0), in lan966x_init()
900 ~(GENMASK(1, 0)), in lan966x_init()
920 lan_wr(0, lan966x, QSYS_CPU_GROUP_MAP); in lan966x_init()
927 lan966x, QS_XTR_GRP_CFG(0)); in lan966x_init()
932 lan966x, QS_INJ_GRP_CFG(0)); in lan966x_init()
934 lan_rmw(QS_INJ_CTRL_GAP_SIZE_SET(0), in lan966x_init()
936 lan966x, QS_INJ_CTRL(0)); in lan966x_init()
951 for (i = 0; i < 8; ++i) in lan966x_init()
960 for (i = 0; i < PGID_ENTRIES; ++i) in lan966x_init()
966 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_init()
968 lan_rmw(ANA_PGID_PGID_SET(0x0), in lan966x_init()
975 lan_wr(0xffff, lan966x, ANA_CPU_FWD_BPDU_CFG(p)); in lan966x_init()
979 for (i = 0; i <= QSYS_Q_RSRV; ++i) { in lan966x_init()
991 lan_rmw(ANA_PGID_PGID_SET(0), in lan966x_init()
999 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
1004 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
1008 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
1013 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
1018 lan_rmw(ANA_PGID_PGID_SET(BIT(CPU_PORT) | GENMASK(lan966x->num_phys_ports - 1, 0)), in lan966x_init()
1042 int val = 0; in lan966x_reset_switch()
1061 return 0; in lan966x_reset_switch()
1063 lan_wr(SYS_RESET_CFG_CORE_ENA_SET(0), lan966x, SYS_RESET_CFG); in lan966x_reset_switch()
1066 val, (val & BIT(1)) == 0, READL_SLEEP_US, in lan966x_reset_switch()
1073 return 0; in lan966x_reset_switch()
1095 lan966x->base_mac[5] &= 0xf0; in lan966x_probe()
1119 if (lan966x->xtr_irq < 0) in lan966x_probe()
1131 if (lan966x->ana_irq > 0) { in lan966x_probe()
1140 if (lan966x->ptp_irq > 0) { in lan966x_probe()
1151 if (lan966x->fdma_irq > 0) { in lan966x_probe()
1153 lan966x_fdma_irq_handler, 0, in lan966x_probe()
1163 if (lan966x->ptp_ext_irq > 0) { in lan966x_probe()
1239 return 0; in lan966x_probe()
1305 return 0; in lan966x_switch_driver_init()