| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | macb.c | 129 static int macb_is_gem(struct macb_device *macb) in macb_is_gem() argument 131 return MACB_BFEXT(IDNUM, macb_readl(macb, MID)) == 0x2; in macb_is_gem() 142 static int gem_is_gigabit_capable(struct macb_device *macb) in gem_is_gigabit_capable() argument 148 return macb_is_gem(macb) && !cpu_is_sama5d2() && !cpu_is_sama5d4(); in gem_is_gigabit_capable() 151 static void macb_mdio_write(struct macb_device *macb, u8 reg, u16 value) in macb_mdio_write() argument 157 netctl = macb_readl(macb, NCR); in macb_mdio_write() 159 macb_writel(macb, NCR, netctl); in macb_mdio_write() 163 | MACB_BF(PHYA, macb->phy_addr) in macb_mdio_write() 167 macb_writel(macb, MAN, frame); in macb_mdio_write() 170 netstat = macb_readl(macb, NSR); in macb_mdio_write() [all …]
|
| H A D | keystone_net.c | 507 u32 macb = 0; in keystone2_eth_read_mac_addr() local 514 macb = __raw_readl(MAC_ID_BASE_ADDR + 4); in keystone2_eth_read_mac_addr() 517 dev->enetaddr[0] = (macb >> 8) & 0xff; in keystone2_eth_read_mac_addr() 518 dev->enetaddr[1] = (macb >> 0) & 0xff; in keystone2_eth_read_mac_addr() 856 u32 macb = 0; in ks2_eth_read_rom_hwaddr() local 861 macb = __raw_readl(MAC_ID_BASE_ADDR + 4); in ks2_eth_read_rom_hwaddr() 864 pdata->enetaddr[0] = (macb >> 8) & 0xff; in ks2_eth_read_rom_hwaddr() 865 pdata->enetaddr[1] = (macb >> 0) & 0xff; in ks2_eth_read_rom_hwaddr()
|
| H A D | Makefile | 40 obj-$(CONFIG_MACB) += macb.o
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/cadence/ |
| H A D | macb_ptp.c | 28 static struct macb_dma_desc_ptp *macb_ptp_desc(struct macb *bp, in macb_ptp_desc() 43 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_get_time() 75 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_set_time() 97 static int gem_tsu_incr_set(struct macb *bp, struct tsu_incr *incr_spec) in gem_tsu_incr_set() 119 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjfine() 154 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjtime() 200 static void gem_ptp_init_timer(struct macb *bp) in gem_ptp_init_timer() 215 static void gem_ptp_init_tsu(struct macb *bp) in gem_ptp_init_tsu() 231 static void gem_ptp_clear_timer(struct macb *bp) in gem_ptp_clear_timer() 241 static int gem_hw_timestamp(struct macb *bp, u32 dma_desc_ts_1, in gem_hw_timestamp() [all …]
|
| H A D | macb_main.c | 123 static unsigned int macb_dma_desc_get_size(struct macb *bp) in macb_dma_desc_get_size() 150 static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx) in macb_adj_dma_desc_idx() 169 static struct macb_dma_desc_64 *macb_64b_desc(struct macb *bp, struct macb_dma_desc *desc) in macb_64b_desc() 177 static unsigned int macb_tx_ring_wrap(struct macb *bp, unsigned int index) in macb_tx_ring_wrap() 206 static unsigned int macb_rx_ring_wrap(struct macb *bp, unsigned int index) in macb_rx_ring_wrap() 225 static u32 hw_readl_native(struct macb *bp, int offset) in hw_readl_native() 230 static void hw_writel_native(struct macb *bp, int offset, u32 value) in hw_writel_native() 235 static u32 hw_readl(struct macb *bp, int offset) in hw_readl() 240 static void hw_writel(struct macb *bp, int offset, u32 value) in hw_writel() 274 static void macb_set_hwaddr(struct macb *bp) in macb_set_hwaddr() [all …]
|
| H A D | Makefile | 5 macb-y := macb_main.o 8 macb-y += macb_ptp.o 11 obj-$(CONFIG_MACB) += macb.o
|
| H A D | macb.h | 1077 struct macb; 1081 int (*mog_alloc_rx_buffers)(struct macb *bp); 1082 void (*mog_free_rx_buffers)(struct macb *bp); 1083 void (*mog_init_rings)(struct macb *bp); 1093 unsigned int (*get_tsu_rate)(struct macb *bp); 1123 struct macb *bp; 1169 struct macb { struct 1174 u32 (*macb_reg_readl)(struct macb *bp, int offset); argument 1175 void (*macb_reg_writel)(struct macb *bp, int offset, u32 value); argument 1195 struct macb_stats macb; argument [all …]
|
| H A D | Kconfig | 34 will be macb.
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/ |
| H A D | macb.txt | 4 - compatible: Should be "cdns,[<chip>-]{macb|gem}" 6 Use "cdns,at91sam9260-macb" for Atmel at91sam9 SoCs. 7 Use "cdns,sam9x60-macb" for Microchip sam9x60 SoC. 8 Use "cdns,np4-macb" for NP4 SoC devices. 9 Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb". 13 Use "atmel,sama5d3-macb" for the 10/100Mbit IP available on Atmel sama5d3 SoCs. 23 - interrupts: Should contain macb interrupt 44 compatible = "cdns,at32ap7000-macb";
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | sama5d3_emac.dtsi | 37 compatible = "atmel,sama5d3-macb", "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | at91sam9x5_macb1.dtsi | 34 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | at91sam9x5_macb0.dtsi | 46 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | sam9x60.dtsi | 448 compatible = "cdns,sam9x60-macb", "cdns,macb"; 457 compatible = "cdns,sam9x60-macb", "cdns,macb";
|
| H A D | at91sam9260.dtsi | 307 macb { 622 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | at91sam9263.dtsi | 256 macb { 624 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | at91sam9g45.dtsi | 382 macb { 740 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| /OK3568_Linux_fs/u-boot/arch/arm/dts/ |
| H A D | at91sam9x5_macb1.dtsi | 44 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | sama5d3_emac.dtsi | 44 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | at91sam9x5_macb0.dtsi | 56 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | at91sam9260.dtsi | 583 macb { 865 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | at91sam9263.dtsi | 497 macb { 871 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | at91sam9g45.dtsi | 623 macb { 981 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
| H A D | sama5d2.dtsi | 609 compatible = "cdns,macb";
|
| /OK3568_Linux_fs/buildroot/board/acmesystems/acqua-a5/ |
| H A D | at91-sama5d3_acqua.dts | 106 compatible = "atmel,sama5d3-macb", "cdns,at91sam9260-macb", "cdns,macb";
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/ |
| H A D | atmel-usb.txt | 59 - interrupts: Should contain macb interrupt
|