Lines Matching +full:0 +full:x48000

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_SYS, 0x28000, 1 }, /* 0xe2028000 */
51 { TARGET_DEV, 0x34000, 1 }, /* 0xe2034000 */
52 { TARGET_DEV + 1, 0x38000, 1 }, /* 0xe2038000 */
53 { TARGET_DEV + 2, 0x3c000, 1 }, /* 0xe203c000 */
54 { TARGET_DEV + 3, 0x40000, 1 }, /* 0xe2040000 */
55 { TARGET_DEV + 4, 0x44000, 1 }, /* 0xe2044000 */
56 { TARGET_DEV + 5, 0x48000, 1 }, /* 0xe2048000 */
57 { TARGET_DEV + 6, 0x4c000, 1 }, /* 0xe204c000 */
58 { TARGET_DEV + 7, 0x50000, 1 }, /* 0xe2050000 */
59 { TARGET_QSYS, 0x100000, 1 }, /* 0xe2100000 */
60 { TARGET_AFI, 0x120000, 1 }, /* 0xe2120000 */
61 { TARGET_ANA, 0x140000, 1 }, /* 0xe2140000 */
76 for (idx = 0; idx < IO_RANGES; idx++) { in lan966x_create_targets()
94 for (idx = 0; idx < ARRAY_SIZE(lan966x_main_iomap); idx++) { in lan966x_create_targets()
101 return 0; in lan966x_create_targets()
110 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_port_unique_address()
130 return 0; in lan966x_port_set_mac_address()
163 return 0; in lan966x_port_get_phys_port_name()
183 err = phylink_fwnode_phy_connect(port->phylink, port->fwnode, 0); in lan966x_port_open()
191 return 0; in lan966x_port_open()
202 return 0; in lan966x_port_stop()
215 return 0; in lan966x_port_inj_ready()
229 u8 grp = 0; in lan966x_port_ifh_xmit()
244 for (i = 0; i < IFH_LEN; ++i) { in lan966x_port_ifh_xmit()
256 for (i = 0; i < count; ++i) { in lan966x_port_ifh_xmit()
272 lan_wr(0, lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit()
279 0 : last) | in lan966x_port_ifh_xmit()
284 lan_wr(0, lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit()
308 IFH_POS_BYPASS, IFH_LEN * 4, PACK, 0); in lan966x_ifh_set_bypass()
314 IFH_POS_DSTS, IFH_LEN * 4, PACK, 0); in lan966x_ifh_set_port()
320 IFH_POS_QOS_CLASS, IFH_LEN * 4, PACK, 0); in lan966x_ifh_set_qos_class()
326 IFH_POS_IPV, IFH_LEN * 4, PACK, 0); in lan966x_ifh_set_ipv()
332 IFH_POS_TCI, IFH_LEN * 4, PACK, 0); in lan966x_ifh_set_vid()
338 IFH_POS_REW_CMD, IFH_LEN * 4, PACK, 0); in lan966x_ifh_set_rew_op()
344 IFH_POS_TIMESTAMP, IFH_LEN * 4, PACK, 0); in lan966x_ifh_set_timestamp()
355 memset(ifh, 0x0, sizeof(__be32) * IFH_LEN); in lan966x_port_xmit()
359 lan966x_ifh_set_qos_class(ifh, skb->priority >= 7 ? 0x7 : skb->priority); in lan966x_port_xmit()
360 lan966x_ifh_set_ipv(ifh, skb->priority >= 7 ? 0x7 : skb->priority); in lan966x_port_xmit()
394 return 0; in lan966x_port_change_mtu()
436 return 0; in lan966x_port_get_parent_id()
568 IFH_POS_SRCPORT, IFH_LEN * 4, UNPACK, 0); in lan966x_ifh_get_src_port()
574 IFH_POS_LEN, IFH_LEN * 4, UNPACK, 0); in lan966x_ifh_get_len()
580 IFH_POS_TIMESTAMP, IFH_LEN * 4, UNPACK, 0); in lan966x_ifh_get_timestamp()
586 int i, grp = 0, err = 0; in lan966x_xtr_irq_handler()
595 int sz = 0, buf_len; in lan966x_xtr_irq_handler()
600 for (i = 0; i < IFH_LEN; i++) { in lan966x_xtr_irq_handler()
606 err = 0; in lan966x_xtr_irq_handler()
624 len = 0; in lan966x_xtr_irq_handler()
627 if (sz < 0) { in lan966x_xtr_irq_handler()
638 if (sz < 0) { in lan966x_xtr_irq_handler()
659 skb->offload_fwd_mark = 0; in lan966x_xtr_irq_handler()
669 if (sz < 0 || err) in lan966x_xtr_irq_handler()
689 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_cleanup_ports()
715 if (lan966x->ana_irq > 0) { in lan966x_cleanup_ports()
723 if (lan966x->ptp_irq > 0) in lan966x_cleanup_ports()
726 if (lan966x->ptp_ext_irq > 0) in lan966x_cleanup_ports()
811 lan966x_vlan_port_set_vlan_aware(port, 0); in lan966x_probe_port()
815 return 0; in lan966x_probe_port()
829 GENMASK(1, 0), in lan966x_init()
837 ~(GENMASK(1, 0)), in lan966x_init()
857 lan_wr(0, lan966x, QSYS_CPU_GROUP_MAP); in lan966x_init()
864 lan966x, QS_XTR_GRP_CFG(0)); in lan966x_init()
869 lan966x, QS_INJ_GRP_CFG(0)); in lan966x_init()
871 lan_rmw(QS_INJ_CTRL_GAP_SIZE_SET(0), in lan966x_init()
873 lan966x, QS_INJ_CTRL(0)); in lan966x_init()
888 for (i = 0; i < 8; ++i) in lan966x_init()
897 for (i = 0; i < PGID_ENTRIES; ++i) in lan966x_init()
903 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_init()
905 lan_rmw(ANA_PGID_PGID_SET(0x0), in lan966x_init()
912 lan_wr(0xffff, lan966x, ANA_CPU_FWD_BPDU_CFG(p)); in lan966x_init()
916 for (i = 0; i <= QSYS_Q_RSRV; ++i) { in lan966x_init()
928 lan_rmw(ANA_PGID_PGID_SET(0), in lan966x_init()
936 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
941 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
945 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
950 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
955 lan_rmw(ANA_PGID_PGID_SET(BIT(CPU_PORT) | GENMASK(lan966x->num_phys_ports - 1, 0)), in lan966x_init()
979 int val = 0; in lan966x_reset_switch()
990 lan_wr(SYS_RESET_CFG_CORE_ENA_SET(0), lan966x, SYS_RESET_CFG); in lan966x_reset_switch()
993 val, (val & BIT(1)) == 0, READL_SLEEP_US, in lan966x_reset_switch()
1000 return 0; in lan966x_reset_switch()
1022 lan966x->base_mac[5] &= 0xf0; in lan966x_probe()
1051 if (lan966x->xtr_irq <= 0) in lan966x_probe()
1063 if (lan966x->ana_irq > 0) { in lan966x_probe()
1072 if (lan966x->ptp_irq > 0) { in lan966x_probe()
1083 if (lan966x->fdma_irq > 0) { in lan966x_probe()
1085 lan966x_fdma_irq_handler, 0, in lan966x_probe()
1095 if (lan966x->ptp_ext_irq > 0) { in lan966x_probe()
1154 return 0; in lan966x_probe()
1191 return 0; in lan966x_remove()
1213 return 0; in lan966x_switch_driver_init()