Lines Matching defs:np
93 #define niu_lock_parent(np, flags) \ argument
95 #define niu_unlock_parent(np, flags) \ argument
100 static int __niu_wait_bits_clear_mac(struct niu *np, unsigned long reg, in __niu_wait_bits_clear_mac()
115 static int __niu_set_and_wait_clear_mac(struct niu *np, unsigned long reg, in __niu_set_and_wait_clear_mac()
135 static int __niu_wait_bits_clear_ipp(struct niu *np, unsigned long reg, in __niu_wait_bits_clear_ipp()
150 static int __niu_set_and_wait_clear_ipp(struct niu *np, unsigned long reg, in __niu_set_and_wait_clear_ipp()
174 static int __niu_wait_bits_clear(struct niu *np, unsigned long reg, in __niu_wait_bits_clear()
194 static int __niu_set_and_wait_clear(struct niu *np, unsigned long reg, in __niu_set_and_wait_clear()
214 static void niu_ldg_rearm(struct niu *np, struct niu_ldg *lp, int on) in niu_ldg_rearm()
224 static int niu_ldn_irq_enable(struct niu *np, int ldn, int on) in niu_ldn_irq_enable()
250 static int niu_enable_ldn_in_ldg(struct niu *np, struct niu_ldg *lp, int on) in niu_enable_ldn_in_ldg()
268 static int niu_enable_interrupts(struct niu *np, int on) in niu_enable_interrupts()
296 static int mdio_wait(struct niu *np) in mdio_wait()
312 static int mdio_read(struct niu *np, int port, int dev, int reg) in mdio_read()
325 static int mdio_write(struct niu *np, int port, int dev, int reg, int data) in mdio_write()
342 static int mii_read(struct niu *np, int port, int reg) in mii_read()
348 static int mii_write(struct niu *np, int port, int reg, int data) in mii_write()
360 static int esr2_set_tx_cfg(struct niu *np, unsigned long channel, u32 val) in esr2_set_tx_cfg()
374 static int esr2_set_rx_cfg(struct niu *np, unsigned long channel, u32 val) in esr2_set_rx_cfg()
389 static int serdes_init_niu_10g_fiber(struct niu *np) in serdes_init_niu_10g_fiber()
426 static int serdes_init_niu_1g_serdes(struct niu *np) in serdes_init_niu_1g_serdes()
523 static int serdes_init_niu_10g_serdes(struct niu *np) in serdes_init_niu_10g_serdes()
638 static int esr_read_rxtx_ctrl(struct niu *np, unsigned long chan, u32 *val) in esr_read_rxtx_ctrl()
654 static int esr_read_glue0(struct niu *np, unsigned long chan, u32 *val) in esr_read_glue0()
672 static int esr_read_reset(struct niu *np, u32 *val) in esr_read_reset()
690 static int esr_write_rxtx_ctrl(struct niu *np, unsigned long chan, u32 val) in esr_write_rxtx_ctrl()
702 static int esr_write_glue0(struct niu *np, unsigned long chan, u32 val) in esr_write_glue0()
714 static int esr_reset(struct niu *np) in esr_reset()
753 static int serdes_init_10g(struct niu *np) in serdes_init_10g()
879 static int serdes_init_1g(struct niu *np) in serdes_init_1g()
906 static int serdes_init_1g_serdes(struct niu *np) in serdes_init_1g_serdes()
1027 static int link_status_1g_serdes(struct niu *np, int *link_up_p) in link_status_1g_serdes()
1058 static int link_status_10g_serdes(struct niu *np, int *link_up_p) in link_status_10g_serdes()
1092 static int link_status_mii(struct niu *np, int *link_up_p) in link_status_mii()
1205 static int link_status_1g_rgmii(struct niu *np, int *link_up_p) in link_status_1g_rgmii()
1258 static int link_status_1g(struct niu *np, int *link_up_p) in link_status_1g()
1274 static int bcm8704_reset(struct niu *np) in bcm8704_reset()
1308 static int bcm8704_user_dev3_readback(struct niu *np, int reg) in bcm8704_user_dev3_readback()
1319 static int bcm8706_init_user_dev3(struct niu *np) in bcm8706_init_user_dev3()
1341 static int bcm8704_init_user_dev3(struct niu *np) in bcm8704_init_user_dev3()
1391 static int mrvl88x2011_act_led(struct niu *np, int val) in mrvl88x2011_act_led()
1407 static int mrvl88x2011_led_blink_rate(struct niu *np, int rate) in mrvl88x2011_led_blink_rate()
1424 static int xcvr_init_10g_mrvl88x2011(struct niu *np) in xcvr_init_10g_mrvl88x2011()
1471 static int xcvr_diag_bcm870x(struct niu *np) in xcvr_diag_bcm870x()
1529 static int xcvr_10g_set_lb_bcm870x(struct niu *np) in xcvr_10g_set_lb_bcm870x()
1552 static int xcvr_init_10g_bcm8706(struct niu *np) in xcvr_init_10g_bcm8706()
1589 static int xcvr_init_10g_bcm8704(struct niu *np) in xcvr_init_10g_bcm8704()
1612 static int xcvr_init_10g(struct niu *np) in xcvr_init_10g()
1644 static int mii_reset(struct niu *np) in mii_reset()
1670 static int xcvr_init_1g_rgmii(struct niu *np) in xcvr_init_1g_rgmii()
1730 static int mii_init_common(struct niu *np) in mii_init_common()
1865 static int xcvr_init_1g(struct niu *np) in xcvr_init_1g()
1877 static int niu_xcvr_init(struct niu *np) in niu_xcvr_init()
1889 static int niu_serdes_init(struct niu *np) in niu_serdes_init()
1904 static int niu_link_status_common(struct niu *np, int link_up) in niu_link_status_common()
1935 static int link_status_10g_mrvl(struct niu *np, int *link_up_p) in link_status_10g_mrvl()
1991 static int link_status_10g_bcm8706(struct niu *np, int *link_up_p) in link_status_10g_bcm8706()
2042 static int link_status_10g_bcom(struct niu *np, int *link_up_p) in link_status_10g_bcom()
2091 static int link_status_10g(struct niu *np, int *link_up_p) in link_status_10g()
2121 static int niu_10g_phy_present(struct niu *np) in niu_10g_phy_present()
2158 static int link_status_10g_hotplug(struct niu *np, int *link_up_p) in link_status_10g_hotplug()
2212 static int niu_link_status(struct niu *np, int *link_up_p) in niu_link_status()
2226 struct niu *np = (struct niu *) __opaque; in niu_timer() local
2367 static int serdes_init_10g_serdes(struct niu *np) in serdes_init_10g_serdes()
2496 static int niu_determine_phy_disposition(struct niu *np) in niu_determine_phy_disposition()
2603 static int niu_init_link(struct niu *np) in niu_init_link()
2624 static void niu_set_primary_mac(struct niu *np, unsigned char *addr) in niu_set_primary_mac()
2641 static int niu_num_alt_addr(struct niu *np) in niu_num_alt_addr()
2649 static int niu_set_alt_mac(struct niu *np, int index, unsigned char *addr) in niu_set_alt_mac()
2671 static int niu_enable_alt_mac(struct niu *np, int index, int on) in niu_enable_alt_mac()
2697 static void __set_rdc_table_num_hw(struct niu *np, unsigned long reg, in __set_rdc_table_num_hw()
2708 static int __set_rdc_table_num(struct niu *np, in __set_rdc_table_num()
2724 static int niu_set_primary_mac_rdc_table(struct niu *np, int table_num, in niu_set_primary_mac_rdc_table()
2730 static int niu_set_multicast_mac_rdc_table(struct niu *np, int table_num, in niu_set_multicast_mac_rdc_table()
2736 static int niu_set_alt_mac_rdc_table(struct niu *np, int idx, in niu_set_alt_mac_rdc_table()
2765 static void vlan_tbl_write(struct niu *np, unsigned long index, in vlan_tbl_write()
2783 static void vlan_tbl_clear(struct niu *np) in vlan_tbl_clear()
2791 static int tcam_wait_bit(struct niu *np, u64 bit) in tcam_wait_bit()
2806 static int tcam_flush(struct niu *np, int index) in tcam_flush()
2837 static int tcam_write(struct niu *np, int index, in tcam_write()
2867 static int tcam_assoc_write(struct niu *np, int index, u64 assoc_data) in tcam_assoc_write()
2875 static void tcam_enable(struct niu *np, int on) in tcam_enable()
2886 static void tcam_set_lat_and_ratio(struct niu *np, u64 latency, u64 ratio) in tcam_set_lat_and_ratio()
2902 static int tcam_user_eth_class_enable(struct niu *np, unsigned long class, in tcam_user_eth_class_enable()
2945 static int tcam_user_ip_class_enable(struct niu *np, unsigned long class, in tcam_user_ip_class_enable()
2966 static int tcam_user_ip_class_set(struct niu *np, unsigned long class, in tcam_user_ip_class_set()
2994 static int tcam_early_init(struct niu *np) in tcam_early_init()
3017 static int tcam_flush_all(struct niu *np) in tcam_flush_all()
3054 static int hash_write(struct niu *np, unsigned long partition, in hash_write()
3072 static void fflp_reset(struct niu *np) in fflp_reset()
3084 static void fflp_set_timings(struct niu *np) in fflp_set_timings()
3103 static int fflp_set_partition(struct niu *np, u64 partition, in fflp_set_partition()
3127 static int fflp_disable_all_partitions(struct niu *np) in fflp_disable_all_partitions()
3139 static void fflp_llcsnap_enable(struct niu *np, int on) in fflp_llcsnap_enable()
3150 static void fflp_errors_enable(struct niu *np, int on) in fflp_errors_enable()
3161 static int fflp_hash_clear(struct niu *np) in fflp_hash_clear()
3178 static int fflp_early_init(struct niu *np) in fflp_early_init()
3237 static int niu_set_flow_key(struct niu *np, unsigned long class_code, u64 key) in niu_set_flow_key()
3247 static int niu_set_tcam_key(struct niu *np, unsigned long class_code, u64 key) in niu_set_tcam_key()
3258 static u16 tcam_get_index(struct niu *np, u16 idx) in tcam_get_index()
3266 static u16 tcam_get_size(struct niu *np) in tcam_get_size()
3272 static u16 tcam_get_valid_entry_cnt(struct niu *np) in tcam_get_valid_entry_cnt()
3325 static int niu_rbr_add_page(struct niu *np, struct rx_ring_info *rp, in niu_rbr_add_page()
3354 static void niu_rbr_refill(struct niu *np, struct rx_ring_info *rp, gfp_t mask) in niu_rbr_refill()
3379 static int niu_rx_pkt_ignore(struct niu *np, struct rx_ring_info *rp) in niu_rx_pkt_ignore()
3419 static int niu_process_rx_pkt(struct napi_struct *napi, struct niu *np, in niu_process_rx_pkt()
3508 static int niu_rbr_fill(struct niu *np, struct rx_ring_info *rp, gfp_t mask) in niu_rbr_fill()
3526 static void niu_rbr_free(struct niu *np, struct rx_ring_info *rp) in niu_rbr_free()
3554 static int release_tx_packet(struct niu *np, struct tx_ring_info *rp, int idx) in release_tx_packet()
3598 static void niu_tx_work(struct niu *np, struct tx_ring_info *rp) in niu_tx_work()
3647 static inline void niu_sync_rx_discard_stats(struct niu *np, in niu_sync_rx_discard_stats()
3699 static int niu_rx_work(struct napi_struct *napi, struct niu *np, in niu_rx_work()
3748 static int niu_poll_core(struct niu *np, struct niu_ldg *lp, int budget) in niu_poll_core()
3786 struct niu *np = lp->np; in niu_poll() local
3798 static void niu_log_rxchan_errors(struct niu *np, struct rx_ring_info *rp, in niu_log_rxchan_errors()
3835 static int niu_rx_error(struct niu *np, struct rx_ring_info *rp) in niu_rx_error()
3859 static void niu_log_txchan_errors(struct niu *np, struct tx_ring_info *rp, in niu_log_txchan_errors()
3884 static int niu_tx_error(struct niu *np, struct tx_ring_info *rp) in niu_tx_error()
3903 static int niu_mif_interrupt(struct niu *np) in niu_mif_interrupt()
3921 static void niu_xmac_interrupt(struct niu *np) in niu_xmac_interrupt()
3993 static void niu_bmac_interrupt(struct niu *np) in niu_bmac_interrupt()
4029 static int niu_mac_interrupt(struct niu *np) in niu_mac_interrupt()
4039 static void niu_log_device_error(struct niu *np, u64 stat) in niu_log_device_error()
4069 static int niu_device_error(struct niu *np) in niu_device_error()
4081 static int niu_slowpath_interrupt(struct niu *np, struct niu_ldg *lp, in niu_slowpath_interrupt()
4146 static void niu_rxchan_intr(struct niu *np, struct rx_ring_info *rp, in niu_rxchan_intr()
4160 static void niu_txchan_intr(struct niu *np, struct tx_ring_info *rp, in niu_txchan_intr()
4169 static void __niu_fastpath_interrupt(struct niu *np, int ldg, u64 v0) in __niu_fastpath_interrupt()
4203 static void niu_schedule_napi(struct niu *np, struct niu_ldg *lp, in niu_schedule_napi()
4218 struct niu *np = lp->np; in niu_interrupt() local
4259 static void niu_free_rx_ring_info(struct niu *np, struct rx_ring_info *rp) in niu_free_rx_ring_info()
4289 static void niu_free_tx_ring_info(struct niu *np, struct tx_ring_info *rp) in niu_free_tx_ring_info()
4316 static void niu_free_channels(struct niu *np) in niu_free_channels()
4344 static int niu_alloc_rx_ring_info(struct niu *np, in niu_alloc_rx_ring_info()
4395 static void niu_set_max_burst(struct niu *np, struct tx_ring_info *rp) in niu_set_max_burst()
4407 static int niu_alloc_tx_ring_info(struct niu *np, in niu_alloc_tx_ring_info()
4447 static void niu_size_rbr(struct niu *np, struct rx_ring_info *rp) in niu_size_rbr()
4474 static int niu_alloc_channels(struct niu *np) in niu_alloc_channels()
4563 static int niu_tx_cs_sng_poll(struct niu *np, int channel) in niu_tx_cs_sng_poll()
4575 static int niu_tx_channel_stop(struct niu *np, int channel) in niu_tx_channel_stop()
4585 static int niu_tx_cs_reset_poll(struct niu *np, int channel) in niu_tx_cs_reset_poll()
4597 static int niu_tx_channel_reset(struct niu *np, int channel) in niu_tx_channel_reset()
4612 static int niu_tx_channel_lpage_init(struct niu *np, int channel) in niu_tx_channel_lpage_init()
4633 static void niu_txc_enable_port(struct niu *np, int on) in niu_txc_enable_port()
4652 static void niu_txc_set_imask(struct niu *np, u64 imask) in niu_txc_set_imask()
4664 static void niu_txc_port_dma_enable(struct niu *np, int on) in niu_txc_port_dma_enable()
4677 static int niu_init_one_tx_channel(struct niu *np, struct tx_ring_info *rp) in niu_init_one_tx_channel()
4731 static void niu_init_rdc_groups(struct niu *np) in niu_init_rdc_groups()
4749 static void niu_init_drr_weight(struct niu *np) in niu_init_drr_weight()
4767 static int niu_init_hostinfo(struct niu *np) in niu_init_hostinfo()
4791 static int niu_rx_channel_reset(struct niu *np, int channel) in niu_rx_channel_reset()
4798 static int niu_rx_channel_lpage_init(struct niu *np, int channel) in niu_rx_channel_lpage_init()
4817 static void niu_rx_channel_wred_init(struct niu *np, struct rx_ring_info *rp) in niu_rx_channel_wred_init()
4908 static int niu_enable_rx_channel(struct niu *np, int channel, int on) in niu_enable_rx_channel()
4930 static int niu_init_one_rx_channel(struct niu *np, struct rx_ring_info *rp) in niu_init_one_rx_channel()
4983 static int niu_init_rx_channels(struct niu *np) in niu_init_rx_channels()
5014 static int niu_set_ip_frag_rule(struct niu *np) in niu_set_ip_frag_rule()
5044 static int niu_init_classifier_hw(struct niu *np) in niu_init_classifier_hw()
5093 static int niu_zcp_write(struct niu *np, int index, u64 *data) in niu_zcp_write()
5110 static int niu_zcp_read(struct niu *np, int index, u64 *data) in niu_zcp_read()
5144 static void niu_zcp_cfifo_reset(struct niu *np) in niu_zcp_cfifo_reset()
5156 static int niu_init_zcp(struct niu *np) in niu_init_zcp()
5193 static void niu_ipp_write(struct niu *np, int index, u64 *data) in niu_ipp_write()
5207 static void niu_ipp_read(struct niu *np, int index, u64 *data) in niu_ipp_read()
5217 static int niu_ipp_reset(struct niu *np) in niu_ipp_reset()
5223 static int niu_init_ipp(struct niu *np) in niu_init_ipp()
5274 static void niu_handle_led(struct niu *np, int status) in niu_handle_led()
5293 static void niu_init_xif_xmac(struct niu *np) in niu_init_xif_xmac()
5350 static void niu_init_xif_bmac(struct niu *np) in niu_init_xif_bmac()
5380 static void niu_init_xif(struct niu *np) in niu_init_xif()
5388 static void niu_pcs_mii_reset(struct niu *np) in niu_pcs_mii_reset()
5400 static void niu_xpcs_reset(struct niu *np) in niu_xpcs_reset()
5412 static int niu_init_pcs(struct niu *np) in niu_init_pcs()
5476 static int niu_reset_tx_xmac(struct niu *np) in niu_reset_tx_xmac()
5484 static int niu_reset_tx_bmac(struct niu *np) in niu_reset_tx_bmac()
5505 static int niu_reset_tx_mac(struct niu *np) in niu_reset_tx_mac()
5513 static void niu_init_tx_xmac(struct niu *np, u64 min, u64 max) in niu_init_tx_xmac()
5549 static void niu_init_tx_bmac(struct niu *np, u64 min, u64 max) in niu_init_tx_bmac()
5566 static void niu_init_tx_mac(struct niu *np) in niu_init_tx_mac()
5587 static int niu_reset_rx_xmac(struct niu *np) in niu_reset_rx_xmac()
5610 static int niu_reset_rx_bmac(struct niu *np) in niu_reset_rx_bmac()
5631 static int niu_reset_rx_mac(struct niu *np) in niu_reset_rx_mac()
5639 static void niu_init_rx_xmac(struct niu *np) in niu_init_rx_xmac()
5691 static void niu_init_rx_bmac(struct niu *np) in niu_init_rx_bmac()
5726 static void niu_init_rx_mac(struct niu *np) in niu_init_rx_mac()
5736 static void niu_enable_tx_xmac(struct niu *np, int on) in niu_enable_tx_xmac()
5747 static void niu_enable_tx_bmac(struct niu *np, int on) in niu_enable_tx_bmac()
5758 static void niu_enable_tx_mac(struct niu *np, int on) in niu_enable_tx_mac()
5766 static void niu_enable_rx_xmac(struct niu *np, int on) in niu_enable_rx_xmac()
5785 static void niu_enable_rx_bmac(struct niu *np, int on) in niu_enable_rx_bmac()
5804 static void niu_enable_rx_mac(struct niu *np, int on) in niu_enable_rx_mac()
5812 static int niu_init_mac(struct niu *np) in niu_init_mac()
5843 static void niu_stop_one_tx_channel(struct niu *np, struct tx_ring_info *rp) in niu_stop_one_tx_channel()
5848 static void niu_stop_tx_channels(struct niu *np) in niu_stop_tx_channels()
5859 static void niu_reset_one_tx_channel(struct niu *np, struct tx_ring_info *rp) in niu_reset_one_tx_channel()
5864 static void niu_reset_tx_channels(struct niu *np) in niu_reset_tx_channels()
5875 static void niu_stop_one_rx_channel(struct niu *np, struct rx_ring_info *rp) in niu_stop_one_rx_channel()
5880 static void niu_stop_rx_channels(struct niu *np) in niu_stop_rx_channels()
5891 static void niu_reset_one_rx_channel(struct niu *np, struct rx_ring_info *rp) in niu_reset_one_rx_channel()
5901 static void niu_reset_rx_channels(struct niu *np) in niu_reset_rx_channels()
5912 static void niu_disable_ipp(struct niu *np) in niu_disable_ipp()
5941 static int niu_init_hw(struct niu *np) in niu_init_hw()
6003 static void niu_stop_hw(struct niu *np) in niu_stop_hw()
6027 static void niu_set_irq_name(struct niu *np) in niu_set_irq_name()
6050 static int niu_request_irq(struct niu *np) in niu_request_irq()
6078 static void niu_free_irq(struct niu *np) in niu_free_irq()
6089 static void niu_enable_napi(struct niu *np) in niu_enable_napi()
6097 static void niu_disable_napi(struct niu *np) in niu_disable_napi()
6107 struct niu *np = netdev_priv(dev); in niu_open() local
6166 static void niu_full_shutdown(struct niu *np, struct net_device *dev) in niu_full_shutdown()
6184 struct niu *np = netdev_priv(dev); in niu_close() local
6197 static void niu_sync_xmac_stats(struct niu *np) in niu_sync_xmac_stats()
6222 static void niu_sync_bmac_stats(struct niu *np) in niu_sync_bmac_stats()
6235 static void niu_sync_mac_stats(struct niu *np) in niu_sync_mac_stats()
6243 static void niu_get_rx_stats(struct niu *np, in niu_get_rx_stats()
6274 static void niu_get_tx_stats(struct niu *np, in niu_get_tx_stats()
6304 struct niu *np = netdev_priv(dev); in niu_get_stats() local
6314 static void niu_load_hash_xmac(struct niu *np, u16 *hash) in niu_load_hash_xmac()
6322 static void niu_load_hash_bmac(struct niu *np, u16 *hash) in niu_load_hash_bmac()
6330 static void niu_load_hash(struct niu *np, u16 *hash) in niu_load_hash()
6340 struct niu *np = netdev_priv(dev); in niu_set_rx_mode() local
6410 struct niu *np = netdev_priv(dev); in niu_set_mac_addr() local
6436 static void niu_netif_stop(struct niu *np) in niu_netif_stop()
6445 static void niu_netif_start(struct niu *np) in niu_netif_start()
6458 static void niu_reset_buffers(struct niu *np) in niu_reset_buffers()
6510 struct niu *np = container_of(work, struct niu, reset_task); in niu_reset_task() local
6548 struct niu *np = netdev_priv(dev); in niu_tx_timeout() local
6636 struct niu *np = netdev_priv(dev); in niu_start_xmit() local
6767 struct niu *np = netdev_priv(dev); in niu_change_mtu() local
6822 struct niu *np = netdev_priv(dev); in niu_get_drvinfo() local
6836 struct niu *np = netdev_priv(dev); in niu_get_settings() local
6857 struct niu *np = netdev_priv(dev); in niu_set_settings() local
6869 struct niu *np = netdev_priv(dev); in niu_get_msglevel() local
6875 struct niu *np = netdev_priv(dev); in niu_set_msglevel() local
6881 struct niu *np = netdev_priv(dev); in niu_nway_reset() local
6891 struct niu *np = netdev_priv(dev); in niu_get_eeprom_len() local
6899 struct niu *np = netdev_priv(dev); in niu_get_eeprom() local
7095 static int niu_get_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc) in niu_get_hash_opts()
7189 static int niu_get_ethtool_tcam_entry(struct niu *np, in niu_get_ethtool_tcam_entry()
7270 static int niu_get_ethtool_tcam_all(struct niu *np, in niu_get_ethtool_tcam_all()
7306 struct niu *np = netdev_priv(dev); in niu_get_nfc() local
7333 static int niu_set_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc) in niu_set_hash_opts()
7450 static int niu_add_ethtool_tcam_entry(struct niu *np, in niu_add_ethtool_tcam_entry()
7608 static int niu_del_ethtool_tcam_entry(struct niu *np, u32 loc) in niu_del_ethtool_tcam_entry()
7671 struct niu *np = netdev_priv(dev); in niu_set_nfc() local
7772 struct niu *np = netdev_priv(dev); in niu_get_strings() local
7801 struct niu *np = netdev_priv(dev); in niu_get_sset_count() local
7816 struct niu *np = netdev_priv(dev); in niu_get_ethtool_stats() local
7852 static u64 niu_led_state_save(struct niu *np) in niu_led_state_save()
7860 static void niu_led_state_restore(struct niu *np, u64 val) in niu_led_state_restore()
7868 static void niu_force_led(struct niu *np, int on) in niu_force_led()
7892 struct niu *np = netdev_priv(dev); in niu_set_phys_id() local
7935 static int niu_ldg_assign_ldn(struct niu *np, struct niu_parent *parent, in niu_ldg_assign_ldn()
7963 static int niu_set_ldg_timer_res(struct niu *np, int res) in niu_set_ldg_timer_res()
7974 static int niu_set_ldg_sid(struct niu *np, int ldg, int func, int vector) in niu_set_ldg_sid()
7986 static int __devinit niu_pci_eeprom_read(struct niu *np, u32 addr) in niu_pci_eeprom_read()
8029 static int __devinit niu_pci_eeprom_read16(struct niu *np, u32 off) in niu_pci_eeprom_read16()
8045 static int __devinit niu_pci_eeprom_read16_swp(struct niu *np, u32 off) in niu_pci_eeprom_read16_swp()
8063 static int __devinit niu_pci_vpd_get_propname(struct niu *np, in niu_pci_vpd_get_propname()
8084 static void __devinit niu_vpd_parse_version(struct niu *np) in niu_vpd_parse_version()
8111 static int __devinit niu_pci_vpd_scan_props(struct niu *np, in niu_pci_vpd_scan_props()
8198 static void __devinit niu_pci_vpd_fetch(struct niu *np, u32 start) in niu_pci_vpd_fetch()
8233 static u32 __devinit niu_pci_vpd_offset(struct niu *np) in niu_pci_vpd_offset()
8288 static int __devinit niu_phy_type_prop_decode(struct niu *np, in niu_phy_type_prop_decode()
8323 static int niu_pci_vpd_get_nports(struct niu *np) in niu_pci_vpd_get_nports()
8343 static void __devinit niu_pci_vpd_validate(struct niu *np) in niu_pci_vpd_validate()
8389 static int __devinit niu_pci_probe_sprom(struct niu *np) in niu_pci_probe_sprom()
8547 static int __devinit niu_get_and_validate_port(struct niu *np) in niu_get_and_validate_port()
8785 static int __devinit fill_phy_probe_info(struct niu *np, in fill_phy_probe_info()
8828 static int __devinit walk_phys(struct niu *np, struct niu_parent *parent) in walk_phys()
8957 static int __devinit niu_probe_ports(struct niu *np) in niu_probe_ports()
8978 static int __devinit niu_classifier_swstate_init(struct niu *np) in niu_classifier_swstate_init()
8990 static void __devinit niu_link_config_init(struct niu *np) in niu_link_config_init()
9015 static int __devinit niu_init_mac_ipp_pcs_base(struct niu *np) in niu_init_mac_ipp_pcs_base()
9054 static void __devinit niu_try_msix(struct niu *np, u8 *ldg_num_map) in niu_try_msix()
9093 static int __devinit niu_n2_irq_init(struct niu *np, u8 *ldg_num_map) in niu_n2_irq_init()
9117 static int __devinit niu_ldg_init(struct niu *np) in niu_ldg_init()
9234 static void __devexit niu_ldg_free(struct niu *np) in niu_ldg_free()
9240 static int __devinit niu_get_of_props(struct niu *np) in niu_get_of_props()
9309 static int __devinit niu_get_invariants(struct niu *np) in niu_get_invariants()
9488 static struct niu_parent * __devinit niu_new_parent(struct niu *np, in niu_new_parent()
9553 static struct niu_parent * __devinit niu_get_parent(struct niu *np, in niu_get_parent()
9589 static void niu_put_parent(struct niu *np) in niu_put_parent()
9685 struct niu *np; in niu_alloc_and_init() local
9732 static void __devinit niu_device_announce(struct niu *np) in niu_device_announce()
9772 struct niu *np; in niu_pci_init_one() local
9915 struct niu *np = netdev_priv(dev); in niu_pci_remove_one() local
9937 struct niu *np = netdev_priv(dev); in niu_suspend() local
9966 struct niu *np = netdev_priv(dev); in niu_resume() local
10063 struct niu *np; in niu_of_probe() local
10178 struct niu *np = netdev_priv(dev); in niu_of_remove() local