Lines Matching refs:niu
99 static int serdes_init_10g_serdes(struct niu *np);
101 static int __niu_wait_bits_clear_mac(struct niu *np, unsigned long reg, in __niu_wait_bits_clear_mac()
116 static int __niu_set_and_wait_clear_mac(struct niu *np, unsigned long reg, in __niu_set_and_wait_clear_mac()
136 static int __niu_wait_bits_clear_ipp(struct niu *np, unsigned long reg, in __niu_wait_bits_clear_ipp()
151 static int __niu_set_and_wait_clear_ipp(struct niu *np, unsigned long reg, in __niu_set_and_wait_clear_ipp()
175 static int __niu_wait_bits_clear(struct niu *np, unsigned long reg, in __niu_wait_bits_clear()
195 static int __niu_set_and_wait_clear(struct niu *np, unsigned long reg, in __niu_set_and_wait_clear()
215 static void niu_ldg_rearm(struct niu *np, struct niu_ldg *lp, int on) in niu_ldg_rearm()
225 static int niu_ldn_irq_enable(struct niu *np, int ldn, int on) in niu_ldn_irq_enable()
251 static int niu_enable_ldn_in_ldg(struct niu *np, struct niu_ldg *lp, int on) in niu_enable_ldn_in_ldg()
269 static int niu_enable_interrupts(struct niu *np, int on) in niu_enable_interrupts()
297 static int mdio_wait(struct niu *np) in mdio_wait()
313 static int mdio_read(struct niu *np, int port, int dev, int reg) in mdio_read()
326 static int mdio_write(struct niu *np, int port, int dev, int reg, int data) in mdio_write()
343 static int mii_read(struct niu *np, int port, int reg) in mii_read()
349 static int mii_write(struct niu *np, int port, int reg, int data) in mii_write()
361 static int esr2_set_tx_cfg(struct niu *np, unsigned long channel, u32 val) in esr2_set_tx_cfg()
375 static int esr2_set_rx_cfg(struct niu *np, unsigned long channel, u32 val) in esr2_set_rx_cfg()
390 static int serdes_init_niu_10g_fiber(struct niu *np) in serdes_init_niu_10g_fiber()
427 static int serdes_init_niu_1g_serdes(struct niu *np) in serdes_init_niu_1g_serdes()
524 static int serdes_init_niu_10g_serdes(struct niu *np) in serdes_init_niu_10g_serdes()
639 static int esr_read_rxtx_ctrl(struct niu *np, unsigned long chan, u32 *val) in esr_read_rxtx_ctrl()
655 static int esr_read_glue0(struct niu *np, unsigned long chan, u32 *val) in esr_read_glue0()
673 static int esr_read_reset(struct niu *np, u32 *val) in esr_read_reset()
691 static int esr_write_rxtx_ctrl(struct niu *np, unsigned long chan, u32 val) in esr_write_rxtx_ctrl()
703 static int esr_write_glue0(struct niu *np, unsigned long chan, u32 val) in esr_write_glue0()
715 static int esr_reset(struct niu *np) in esr_reset()
754 static int serdes_init_10g(struct niu *np) in serdes_init_10g()
880 static int serdes_init_1g(struct niu *np) in serdes_init_1g()
907 static int serdes_init_1g_serdes(struct niu *np) in serdes_init_1g_serdes()
1028 static int link_status_1g_serdes(struct niu *np, int *link_up_p) in link_status_1g_serdes()
1059 static int link_status_10g_serdes(struct niu *np, int *link_up_p) in link_status_10g_serdes()
1093 static int link_status_mii(struct niu *np, int *link_up_p) in link_status_mii()
1206 static int link_status_1g_rgmii(struct niu *np, int *link_up_p) in link_status_1g_rgmii()
1243 static int link_status_1g(struct niu *np, int *link_up_p) in link_status_1g()
1259 static int bcm8704_reset(struct niu *np) in bcm8704_reset()
1293 static int bcm8704_user_dev3_readback(struct niu *np, int reg) in bcm8704_user_dev3_readback()
1304 static int bcm8706_init_user_dev3(struct niu *np) in bcm8706_init_user_dev3()
1326 static int bcm8704_init_user_dev3(struct niu *np) in bcm8704_init_user_dev3()
1376 static int mrvl88x2011_act_led(struct niu *np, int val) in mrvl88x2011_act_led()
1392 static int mrvl88x2011_led_blink_rate(struct niu *np, int rate) in mrvl88x2011_led_blink_rate()
1409 static int xcvr_init_10g_mrvl88x2011(struct niu *np) in xcvr_init_10g_mrvl88x2011()
1456 static int xcvr_diag_bcm870x(struct niu *np) in xcvr_diag_bcm870x()
1514 static int xcvr_10g_set_lb_bcm870x(struct niu *np) in xcvr_10g_set_lb_bcm870x()
1537 static int xcvr_init_10g_bcm8706(struct niu *np) in xcvr_init_10g_bcm8706()
1574 static int xcvr_init_10g_bcm8704(struct niu *np) in xcvr_init_10g_bcm8704()
1597 static int xcvr_init_10g(struct niu *np) in xcvr_init_10g()
1629 static int mii_reset(struct niu *np) in mii_reset()
1655 static int xcvr_init_1g_rgmii(struct niu *np) in xcvr_init_1g_rgmii()
1715 static int mii_init_common(struct niu *np) in mii_init_common()
1850 static int xcvr_init_1g(struct niu *np) in xcvr_init_1g()
1862 static int niu_xcvr_init(struct niu *np) in niu_xcvr_init()
1874 static int niu_serdes_init(struct niu *np) in niu_serdes_init()
1886 static void niu_init_xif(struct niu *);
1887 static void niu_handle_led(struct niu *, int status);
1889 static int niu_link_status_common(struct niu *np, int link_up) in niu_link_status_common()
1920 static int link_status_10g_mrvl(struct niu *np, int *link_up_p) in link_status_10g_mrvl()
1976 static int link_status_10g_bcm8706(struct niu *np, int *link_up_p) in link_status_10g_bcm8706()
2027 static int link_status_10g_bcom(struct niu *np, int *link_up_p) in link_status_10g_bcom()
2076 static int link_status_10g(struct niu *np, int *link_up_p) in link_status_10g()
2106 static int niu_10g_phy_present(struct niu *np) in niu_10g_phy_present()
2143 static int link_status_10g_hotplug(struct niu *np, int *link_up_p) in link_status_10g_hotplug()
2197 static int niu_link_status(struct niu *np, int *link_up_p) in niu_link_status()
2211 struct niu *np = from_timer(np, t, timer); in niu_timer()
2352 static int serdes_init_10g_serdes(struct niu *np) in serdes_init_10g_serdes()
2481 static int niu_determine_phy_disposition(struct niu *np) in niu_determine_phy_disposition()
2587 static int niu_init_link(struct niu *np) in niu_init_link()
2608 static void niu_set_primary_mac(struct niu *np, unsigned char *addr) in niu_set_primary_mac()
2625 static int niu_num_alt_addr(struct niu *np) in niu_num_alt_addr()
2633 static int niu_set_alt_mac(struct niu *np, int index, unsigned char *addr) in niu_set_alt_mac()
2655 static int niu_enable_alt_mac(struct niu *np, int index, int on) in niu_enable_alt_mac()
2681 static void __set_rdc_table_num_hw(struct niu *np, unsigned long reg, in __set_rdc_table_num_hw()
2692 static int __set_rdc_table_num(struct niu *np, in __set_rdc_table_num()
2708 static int niu_set_primary_mac_rdc_table(struct niu *np, int table_num, in niu_set_primary_mac_rdc_table()
2714 static int niu_set_multicast_mac_rdc_table(struct niu *np, int table_num, in niu_set_multicast_mac_rdc_table()
2720 static int niu_set_alt_mac_rdc_table(struct niu *np, int idx, in niu_set_alt_mac_rdc_table()
2749 static void vlan_tbl_write(struct niu *np, unsigned long index, in vlan_tbl_write()
2767 static void vlan_tbl_clear(struct niu *np) in vlan_tbl_clear()
2775 static int tcam_wait_bit(struct niu *np, u64 bit) in tcam_wait_bit()
2790 static int tcam_flush(struct niu *np, int index) in tcam_flush()
2800 static int tcam_read(struct niu *np, int index,
2821 static int tcam_write(struct niu *np, int index, in tcam_write()
2838 static int tcam_assoc_read(struct niu *np, int index, u64 *data)
2851 static int tcam_assoc_write(struct niu *np, int index, u64 assoc_data) in tcam_assoc_write()
2859 static void tcam_enable(struct niu *np, int on) in tcam_enable()
2870 static void tcam_set_lat_and_ratio(struct niu *np, u64 latency, u64 ratio) in tcam_set_lat_and_ratio()
2886 static int tcam_user_eth_class_enable(struct niu *np, unsigned long class, in tcam_user_eth_class_enable()
2908 static int tcam_user_eth_class_set(struct niu *np, unsigned long class,
2929 static int tcam_user_ip_class_enable(struct niu *np, unsigned long class, in tcam_user_ip_class_enable()
2950 static int tcam_user_ip_class_set(struct niu *np, unsigned long class, in tcam_user_ip_class_set()
2978 static int tcam_early_init(struct niu *np) in tcam_early_init()
3001 static int tcam_flush_all(struct niu *np) in tcam_flush_all()
3019 static int hash_read(struct niu *np, unsigned long partition,
3038 static int hash_write(struct niu *np, unsigned long partition, in hash_write()
3056 static void fflp_reset(struct niu *np) in fflp_reset()
3068 static void fflp_set_timings(struct niu *np) in fflp_set_timings()
3087 static int fflp_set_partition(struct niu *np, u64 partition, in fflp_set_partition()
3111 static int fflp_disable_all_partitions(struct niu *np) in fflp_disable_all_partitions()
3123 static void fflp_llcsnap_enable(struct niu *np, int on) in fflp_llcsnap_enable()
3134 static void fflp_errors_enable(struct niu *np, int on) in fflp_errors_enable()
3145 static int fflp_hash_clear(struct niu *np) in fflp_hash_clear()
3162 static int fflp_early_init(struct niu *np) in fflp_early_init()
3221 static int niu_set_flow_key(struct niu *np, unsigned long class_code, u64 key) in niu_set_flow_key()
3231 static int niu_set_tcam_key(struct niu *np, unsigned long class_code, u64 key) in niu_set_tcam_key()
3242 static u16 tcam_get_index(struct niu *np, u16 idx) in tcam_get_index()
3250 static u16 tcam_get_size(struct niu *np) in tcam_get_size()
3256 static u16 tcam_get_valid_entry_cnt(struct niu *np) in tcam_get_valid_entry_cnt()
3309 static int niu_rbr_add_page(struct niu *np, struct rx_ring_info *rp, in niu_rbr_add_page()
3341 static void niu_rbr_refill(struct niu *np, struct rx_ring_info *rp, gfp_t mask) in niu_rbr_refill()
3366 static int niu_rx_pkt_ignore(struct niu *np, struct rx_ring_info *rp) in niu_rx_pkt_ignore()
3406 static int niu_process_rx_pkt(struct napi_struct *napi, struct niu *np, in niu_process_rx_pkt()
3496 static int niu_rbr_fill(struct niu *np, struct rx_ring_info *rp, gfp_t mask) in niu_rbr_fill()
3514 static void niu_rbr_free(struct niu *np, struct rx_ring_info *rp) in niu_rbr_free()
3542 static int release_tx_packet(struct niu *np, struct tx_ring_info *rp, int idx) in release_tx_packet()
3586 static void niu_tx_work(struct niu *np, struct tx_ring_info *rp) in niu_tx_work()
3628 static inline void niu_sync_rx_discard_stats(struct niu *np, in niu_sync_rx_discard_stats()
3680 static int niu_rx_work(struct napi_struct *napi, struct niu *np, in niu_rx_work()
3729 static int niu_poll_core(struct niu *np, struct niu_ldg *lp, int budget) in niu_poll_core()
3767 struct niu *np = lp->np; in niu_poll()
3779 static void niu_log_rxchan_errors(struct niu *np, struct rx_ring_info *rp, in niu_log_rxchan_errors()
3816 static int niu_rx_error(struct niu *np, struct rx_ring_info *rp) in niu_rx_error()
3840 static void niu_log_txchan_errors(struct niu *np, struct tx_ring_info *rp, in niu_log_txchan_errors()
3865 static int niu_tx_error(struct niu *np, struct tx_ring_info *rp) in niu_tx_error()
3884 static int niu_mif_interrupt(struct niu *np) in niu_mif_interrupt()
3902 static void niu_xmac_interrupt(struct niu *np) in niu_xmac_interrupt()
3974 static void niu_bmac_interrupt(struct niu *np) in niu_bmac_interrupt()
4010 static int niu_mac_interrupt(struct niu *np) in niu_mac_interrupt()
4020 static void niu_log_device_error(struct niu *np, u64 stat) in niu_log_device_error()
4050 static int niu_device_error(struct niu *np) in niu_device_error()
4062 static int niu_slowpath_interrupt(struct niu *np, struct niu_ldg *lp, in niu_slowpath_interrupt()
4127 static void niu_rxchan_intr(struct niu *np, struct rx_ring_info *rp, in niu_rxchan_intr()
4141 static void niu_txchan_intr(struct niu *np, struct tx_ring_info *rp, in niu_txchan_intr()
4150 static void __niu_fastpath_interrupt(struct niu *np, int ldg, u64 v0) in __niu_fastpath_interrupt()
4184 static void niu_schedule_napi(struct niu *np, struct niu_ldg *lp, in niu_schedule_napi()
4199 struct niu *np = lp->np; in niu_interrupt()
4240 static void niu_free_rx_ring_info(struct niu *np, struct rx_ring_info *rp) in niu_free_rx_ring_info()
4270 static void niu_free_tx_ring_info(struct niu *np, struct tx_ring_info *rp) in niu_free_tx_ring_info()
4297 static void niu_free_channels(struct niu *np) in niu_free_channels()
4324 static int niu_alloc_rx_ring_info(struct niu *np, in niu_alloc_rx_ring_info()
4375 static void niu_set_max_burst(struct niu *np, struct tx_ring_info *rp) in niu_set_max_burst()
4387 static int niu_alloc_tx_ring_info(struct niu *np, in niu_alloc_tx_ring_info()
4427 static void niu_size_rbr(struct niu *np, struct rx_ring_info *rp) in niu_size_rbr()
4454 static int niu_alloc_channels(struct niu *np) in niu_alloc_channels()
4543 static int niu_tx_cs_sng_poll(struct niu *np, int channel) in niu_tx_cs_sng_poll()
4555 static int niu_tx_channel_stop(struct niu *np, int channel) in niu_tx_channel_stop()
4565 static int niu_tx_cs_reset_poll(struct niu *np, int channel) in niu_tx_cs_reset_poll()
4577 static int niu_tx_channel_reset(struct niu *np, int channel) in niu_tx_channel_reset()
4592 static int niu_tx_channel_lpage_init(struct niu *np, int channel) in niu_tx_channel_lpage_init()
4613 static void niu_txc_enable_port(struct niu *np, int on) in niu_txc_enable_port()
4632 static void niu_txc_set_imask(struct niu *np, u64 imask) in niu_txc_set_imask()
4644 static void niu_txc_port_dma_enable(struct niu *np, int on) in niu_txc_port_dma_enable()
4657 static int niu_init_one_tx_channel(struct niu *np, struct tx_ring_info *rp) in niu_init_one_tx_channel()
4711 static void niu_init_rdc_groups(struct niu *np) in niu_init_rdc_groups()
4729 static void niu_init_drr_weight(struct niu *np) in niu_init_drr_weight()
4747 static int niu_init_hostinfo(struct niu *np) in niu_init_hostinfo()
4771 static int niu_rx_channel_reset(struct niu *np, int channel) in niu_rx_channel_reset()
4778 static int niu_rx_channel_lpage_init(struct niu *np, int channel) in niu_rx_channel_lpage_init()
4797 static void niu_rx_channel_wred_init(struct niu *np, struct rx_ring_info *rp) in niu_rx_channel_wred_init()
4888 static int niu_enable_rx_channel(struct niu *np, int channel, int on) in niu_enable_rx_channel()
4910 static int niu_init_one_rx_channel(struct niu *np, struct rx_ring_info *rp) in niu_init_one_rx_channel()
4963 static int niu_init_rx_channels(struct niu *np) in niu_init_rx_channels()
4994 static int niu_set_ip_frag_rule(struct niu *np) in niu_set_ip_frag_rule()
5024 static int niu_init_classifier_hw(struct niu *np) in niu_init_classifier_hw()
5073 static int niu_zcp_write(struct niu *np, int index, u64 *data) in niu_zcp_write()
5090 static int niu_zcp_read(struct niu *np, int index, u64 *data) in niu_zcp_read()
5124 static void niu_zcp_cfifo_reset(struct niu *np) in niu_zcp_cfifo_reset()
5136 static int niu_init_zcp(struct niu *np) in niu_init_zcp()
5173 static void niu_ipp_write(struct niu *np, int index, u64 *data) in niu_ipp_write()
5187 static void niu_ipp_read(struct niu *np, int index, u64 *data) in niu_ipp_read()
5197 static int niu_ipp_reset(struct niu *np) in niu_ipp_reset()
5203 static int niu_init_ipp(struct niu *np) in niu_init_ipp()
5254 static void niu_handle_led(struct niu *np, int status) in niu_handle_led()
5273 static void niu_init_xif_xmac(struct niu *np) in niu_init_xif_xmac()
5330 static void niu_init_xif_bmac(struct niu *np) in niu_init_xif_bmac()
5360 static void niu_init_xif(struct niu *np) in niu_init_xif()
5368 static void niu_pcs_mii_reset(struct niu *np) in niu_pcs_mii_reset()
5380 static void niu_xpcs_reset(struct niu *np) in niu_xpcs_reset()
5392 static int niu_init_pcs(struct niu *np) in niu_init_pcs()
5456 static int niu_reset_tx_xmac(struct niu *np) in niu_reset_tx_xmac()
5464 static int niu_reset_tx_bmac(struct niu *np) in niu_reset_tx_bmac()
5485 static int niu_reset_tx_mac(struct niu *np) in niu_reset_tx_mac()
5493 static void niu_init_tx_xmac(struct niu *np, u64 min, u64 max) in niu_init_tx_xmac()
5529 static void niu_init_tx_bmac(struct niu *np, u64 min, u64 max) in niu_init_tx_bmac()
5546 static void niu_init_tx_mac(struct niu *np) in niu_init_tx_mac()
5567 static int niu_reset_rx_xmac(struct niu *np) in niu_reset_rx_xmac()
5590 static int niu_reset_rx_bmac(struct niu *np) in niu_reset_rx_bmac()
5611 static int niu_reset_rx_mac(struct niu *np) in niu_reset_rx_mac()
5619 static void niu_init_rx_xmac(struct niu *np) in niu_init_rx_xmac()
5671 static void niu_init_rx_bmac(struct niu *np) in niu_init_rx_bmac()
5706 static void niu_init_rx_mac(struct niu *np) in niu_init_rx_mac()
5716 static void niu_enable_tx_xmac(struct niu *np, int on) in niu_enable_tx_xmac()
5727 static void niu_enable_tx_bmac(struct niu *np, int on) in niu_enable_tx_bmac()
5738 static void niu_enable_tx_mac(struct niu *np, int on) in niu_enable_tx_mac()
5746 static void niu_enable_rx_xmac(struct niu *np, int on) in niu_enable_rx_xmac()
5765 static void niu_enable_rx_bmac(struct niu *np, int on) in niu_enable_rx_bmac()
5784 static void niu_enable_rx_mac(struct niu *np, int on) in niu_enable_rx_mac()
5792 static int niu_init_mac(struct niu *np) in niu_init_mac()
5823 static void niu_stop_one_tx_channel(struct niu *np, struct tx_ring_info *rp) in niu_stop_one_tx_channel()
5828 static void niu_stop_tx_channels(struct niu *np) in niu_stop_tx_channels()
5839 static void niu_reset_one_tx_channel(struct niu *np, struct tx_ring_info *rp) in niu_reset_one_tx_channel()
5844 static void niu_reset_tx_channels(struct niu *np) in niu_reset_tx_channels()
5855 static void niu_stop_one_rx_channel(struct niu *np, struct rx_ring_info *rp) in niu_stop_one_rx_channel()
5860 static void niu_stop_rx_channels(struct niu *np) in niu_stop_rx_channels()
5871 static void niu_reset_one_rx_channel(struct niu *np, struct rx_ring_info *rp) in niu_reset_one_rx_channel()
5881 static void niu_reset_rx_channels(struct niu *np) in niu_reset_rx_channels()
5892 static void niu_disable_ipp(struct niu *np) in niu_disable_ipp()
5921 static int niu_init_hw(struct niu *np) in niu_init_hw()
5983 static void niu_stop_hw(struct niu *np) in niu_stop_hw()
6007 static void niu_set_irq_name(struct niu *np) in niu_set_irq_name()
6030 static int niu_request_irq(struct niu *np) in niu_request_irq()
6058 static void niu_free_irq(struct niu *np) in niu_free_irq()
6069 static void niu_enable_napi(struct niu *np) in niu_enable_napi()
6077 static void niu_disable_napi(struct niu *np) in niu_disable_napi()
6087 struct niu *np = netdev_priv(dev); in niu_open()
6144 static void niu_full_shutdown(struct niu *np, struct net_device *dev) in niu_full_shutdown()
6162 struct niu *np = netdev_priv(dev); in niu_close()
6175 static void niu_sync_xmac_stats(struct niu *np) in niu_sync_xmac_stats()
6200 static void niu_sync_bmac_stats(struct niu *np) in niu_sync_bmac_stats()
6213 static void niu_sync_mac_stats(struct niu *np) in niu_sync_mac_stats()
6221 static void niu_get_rx_stats(struct niu *np, in niu_get_rx_stats()
6252 static void niu_get_tx_stats(struct niu *np, in niu_get_tx_stats()
6282 struct niu *np = netdev_priv(dev); in niu_get_stats()
6290 static void niu_load_hash_xmac(struct niu *np, u16 *hash) in niu_load_hash_xmac()
6298 static void niu_load_hash_bmac(struct niu *np, u16 *hash) in niu_load_hash_bmac()
6306 static void niu_load_hash(struct niu *np, u16 *hash) in niu_load_hash()
6316 struct niu *np = netdev_priv(dev); in niu_set_rx_mode()
6386 struct niu *np = netdev_priv(dev); in niu_set_mac_addr()
6412 static void niu_netif_stop(struct niu *np) in niu_netif_stop()
6421 static void niu_netif_start(struct niu *np) in niu_netif_start()
6434 static void niu_reset_buffers(struct niu *np) in niu_reset_buffers()
6486 struct niu *np = container_of(work, struct niu, reset_task); in niu_reset_task()
6524 struct niu *np = netdev_priv(dev); in niu_tx_timeout()
6612 struct niu *np = netdev_priv(dev); in niu_start_xmit()
6734 struct niu *np = netdev_priv(dev); in niu_change_mtu()
6784 struct niu *np = netdev_priv(dev); in niu_get_drvinfo()
6799 struct niu *np = netdev_priv(dev); in niu_get_link_ksettings()
6821 struct niu *np = netdev_priv(dev); in niu_set_link_ksettings()
6834 struct niu *np = netdev_priv(dev); in niu_get_msglevel()
6840 struct niu *np = netdev_priv(dev); in niu_set_msglevel()
6846 struct niu *np = netdev_priv(dev); in niu_nway_reset()
6856 struct niu *np = netdev_priv(dev); in niu_get_eeprom_len()
6864 struct niu *np = netdev_priv(dev); in niu_get_eeprom()
7060 static int niu_get_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc) in niu_get_hash_opts()
7154 static int niu_get_ethtool_tcam_entry(struct niu *np, in niu_get_ethtool_tcam_entry()
7233 static int niu_get_ethtool_tcam_all(struct niu *np, in niu_get_ethtool_tcam_all()
7269 struct niu *np = netdev_priv(dev); in niu_get_nfc()
7296 static int niu_set_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc) in niu_set_hash_opts()
7413 static int niu_add_ethtool_tcam_entry(struct niu *np, in niu_add_ethtool_tcam_entry()
7571 static int niu_del_ethtool_tcam_entry(struct niu *np, u32 loc) in niu_del_ethtool_tcam_entry()
7634 struct niu *np = netdev_priv(dev); in niu_set_nfc()
7735 struct niu *np = netdev_priv(dev); in niu_get_strings()
7764 struct niu *np = netdev_priv(dev); in niu_get_sset_count()
7779 struct niu *np = netdev_priv(dev); in niu_get_ethtool_stats()
7815 static u64 niu_led_state_save(struct niu *np) in niu_led_state_save()
7823 static void niu_led_state_restore(struct niu *np, u64 val) in niu_led_state_restore()
7831 static void niu_force_led(struct niu *np, int on) in niu_force_led()
7855 struct niu *np = netdev_priv(dev); in niu_set_phys_id()
7898 static int niu_ldg_assign_ldn(struct niu *np, struct niu_parent *parent, in niu_ldg_assign_ldn()
7926 static int niu_set_ldg_timer_res(struct niu *np, int res) in niu_set_ldg_timer_res()
7937 static int niu_set_ldg_sid(struct niu *np, int ldg, int func, int vector) in niu_set_ldg_sid()
7949 static int niu_pci_eeprom_read(struct niu *np, u32 addr) in niu_pci_eeprom_read()
7992 static int niu_pci_eeprom_read16(struct niu *np, u32 off) in niu_pci_eeprom_read16()
8008 static int niu_pci_eeprom_read16_swp(struct niu *np, u32 off) in niu_pci_eeprom_read16_swp()
8026 static int niu_pci_vpd_get_propname(struct niu *np, u32 off, char *namebuf, in niu_pci_vpd_get_propname()
8045 static void niu_vpd_parse_version(struct niu *np) in niu_vpd_parse_version()
8072 static int niu_pci_vpd_scan_props(struct niu *np, u32 start, u32 end) in niu_pci_vpd_scan_props()
8158 static void niu_pci_vpd_fetch(struct niu *np, u32 start) in niu_pci_vpd_fetch()
8193 static u32 niu_pci_vpd_offset(struct niu *np) in niu_pci_vpd_offset()
8248 static int niu_phy_type_prop_decode(struct niu *np, const char *phy_prop) in niu_phy_type_prop_decode()
8282 static int niu_pci_vpd_get_nports(struct niu *np) in niu_pci_vpd_get_nports()
8302 static void niu_pci_vpd_validate(struct niu *np) in niu_pci_vpd_validate()
8346 static int niu_pci_probe_sprom(struct niu *np) in niu_pci_probe_sprom()
8502 static int niu_get_and_validate_port(struct niu *np) in niu_get_and_validate_port()
8738 static int fill_phy_probe_info(struct niu *np, struct niu_parent *parent, in fill_phy_probe_info()
8780 static int walk_phys(struct niu *np, struct niu_parent *parent) in walk_phys()
8909 static int niu_probe_ports(struct niu *np) in niu_probe_ports()
8930 static int niu_classifier_swstate_init(struct niu *np) in niu_classifier_swstate_init()
8942 static void niu_link_config_init(struct niu *np) in niu_link_config_init()
8967 static int niu_init_mac_ipp_pcs_base(struct niu *np) in niu_init_mac_ipp_pcs_base()
9006 static void niu_try_msix(struct niu *np, u8 *ldg_num_map) in niu_try_msix()
9040 static int niu_n2_irq_init(struct niu *np, u8 *ldg_num_map) in niu_n2_irq_init()
9064 static int niu_ldg_init(struct niu *np) in niu_ldg_init()
9181 static void niu_ldg_free(struct niu *np) in niu_ldg_free()
9187 static int niu_get_of_props(struct niu *np) in niu_get_of_props()
9252 static int niu_get_invariants(struct niu *np) in niu_get_invariants()
9431 static struct niu_parent *niu_new_parent(struct niu *np, in niu_new_parent()
9495 static struct niu_parent *niu_get_parent(struct niu *np, in niu_get_parent()
9530 static void niu_put_parent(struct niu *np) in niu_put_parent()
9626 struct niu *np; in niu_alloc_and_init()
9628 dev = alloc_etherdev_mq(sizeof(struct niu), NIU_NUM_TXCHAN); in niu_alloc_and_init()
9671 static void niu_device_announce(struct niu *np) in niu_device_announce()
9711 struct niu *np; in niu_pci_init_one()
9853 struct niu *np = netdev_priv(dev); in niu_pci_remove_one()
9874 struct niu *np = netdev_priv(dev); in niu_suspend()
9903 struct niu *np = netdev_priv(dev); in niu_resume()
10000 struct niu *np; in niu_of_probe()
10115 struct niu *np = netdev_priv(dev); in niu_of_remove()