Lines Matching defs:cp

232 static inline void cas_lock_tx(struct cas *cp)  in cas_lock_tx()
248 #define cas_lock_all_save(cp, flags) \ argument
255 static inline void cas_unlock_tx(struct cas *cp) in cas_unlock_tx()
263 #define cas_unlock_all_restore(cp, flags) \ argument
270 static void cas_disable_irq(struct cas *cp, const int ring) in cas_disable_irq()
303 static inline void cas_mask_intr(struct cas *cp) in cas_mask_intr()
311 static void cas_enable_irq(struct cas *cp, const int ring) in cas_enable_irq()
340 static inline void cas_unmask_intr(struct cas *cp) in cas_unmask_intr()
348 static inline void cas_entropy_gather(struct cas *cp) in cas_entropy_gather()
360 static inline void cas_entropy_reset(struct cas *cp) in cas_entropy_reset()
380 static u16 cas_phy_read(struct cas *cp, int reg) in cas_phy_read()
401 static int cas_phy_write(struct cas *cp, int reg, u16 val) in cas_phy_write()
423 static void cas_phy_powerup(struct cas *cp) in cas_phy_powerup()
433 static void cas_phy_powerdown(struct cas *cp) in cas_phy_powerdown()
444 static int cas_page_free(struct cas *cp, cas_page_t *page) in cas_page_free()
464 static cas_page_t *cas_page_alloc(struct cas *cp, const gfp_t flags) in cas_page_alloc()
487 static void cas_spare_init(struct cas *cp) in cas_spare_init()
500 static void cas_spare_free(struct cas *cp) in cas_spare_free()
533 static void cas_spare_recover(struct cas *cp, const gfp_t flags) in cas_spare_recover()
609 static cas_page_t *cas_page_dequeue(struct cas *cp) in cas_page_dequeue()
648 static void cas_mif_poll(struct cas *cp, const int enable) in cas_mif_poll()
670 static void cas_begin_auto_negotiation(struct cas *cp, in cas_begin_auto_negotiation()
770 static int cas_reset_mii_phy(struct cas *cp) in cas_reset_mii_phy()
786 static void cas_saturn_firmware_init(struct cas *cp) in cas_saturn_firmware_init()
816 static void cas_saturn_firmware_load(struct cas *cp) in cas_saturn_firmware_load()
851 static void cas_phy_init(struct cas *cp) in cas_phy_init()
980 static int cas_pcs_link_check(struct cas *cp) in cas_pcs_link_check()
1085 struct cas *cp, u32 status) in cas_pcs_interrupt()
1095 struct cas *cp, u32 status) in cas_txmac_interrupt()
1146 static void cas_load_firmware(struct cas *cp, cas_hp_inst_t *firmware) in cas_load_firmware()
1179 static void cas_init_rx_dma(struct cas *cp) in cas_init_rx_dma()
1334 static inline cas_page_t *cas_page_spare(struct cas *cp, const int index) in cas_page_spare()
1352 static cas_page_t *cas_page_swap(struct cas *cp, const int ring, in cas_page_swap()
1370 static void cas_clean_rxds(struct cas *cp) in cas_clean_rxds()
1398 static void cas_clean_rxcs(struct cas *cp) in cas_clean_rxcs()
1481 static int cas_rxmac_interrupt(struct net_device *dev, struct cas *cp, in cas_rxmac_interrupt()
1514 static int cas_mac_interrupt(struct net_device *dev, struct cas *cp, in cas_mac_interrupt()
1540 static inline int cas_mdio_link_not_up(struct cas *cp) in cas_mdio_link_not_up()
1598 static int cas_mii_link_check(struct cas *cp, const u16 bmsr) in cas_mii_link_check()
1654 static int cas_mif_interrupt(struct net_device *dev, struct cas *cp, in cas_mif_interrupt()
1668 static int cas_pci_interrupt(struct net_device *dev, struct cas *cp, in cas_pci_interrupt()
1726 static int cas_abnormal_irq(struct net_device *dev, struct cas *cp, in cas_abnormal_irq()
1799 static inline int cas_calc_tabort(struct cas *cp, const unsigned long addr, in cas_calc_tabort()
1811 static inline void cas_tx_ringN(struct cas *cp, int ring, int limit) in cas_tx_ringN()
1883 static void cas_tx(struct net_device *dev, struct cas *cp, in cas_tx()
1909 static int cas_rx_process_pkt(struct cas *cp, struct cas_rx_comp *rxc, in cas_rx_process_pkt()
2116 static inline void cas_rx_flow_pkt(struct cas *cp, const u64 *words, in cas_rx_flow_pkt()
2137 static void cas_post_page(struct cas *cp, const int ring, const int index) in cas_post_page()
2165 static int cas_post_rxds_ringN(struct cas *cp, int ring, int num) in cas_post_rxds_ringN()
2238 static int cas_rx_ringN(struct cas *cp, int ring, int budget) in cas_rx_ringN()
2355 struct cas *cp, int ring) in cas_post_rxcs_ringN()
2386 struct cas *cp, const u32 status, in cas_handle_irqN()
2396 struct cas *cp = netdev_priv(dev); in cas_interruptN() local
2425 static inline void cas_handle_irq1(struct cas *cp, const u32 status) in cas_handle_irq1()
2448 struct cas *cp = netdev_priv(dev); in cas_interrupt1() local
2474 struct cas *cp, const u32 status) in cas_handle_irq()
2500 struct cas *cp = netdev_priv(dev); in cas_interrupt() local
2533 struct cas *cp = container_of(napi, struct cas, napi); in cas_poll() local
2604 struct cas *cp = netdev_priv(dev); in cas_netpoll() local
2630 struct cas *cp = netdev_priv(dev); in cas_tx_timeout() local
2684 static void cas_write_txd(struct cas *cp, int ring, int entry, in cas_write_txd()
2698 static inline void *tx_tiny_buf(struct cas *cp, const int ring, in tx_tiny_buf()
2704 static inline dma_addr_t tx_tiny_map(struct cas *cp, const int ring, in tx_tiny_map()
2712 static inline int cas_xmit_tx_ringN(struct cas *cp, int ring, in cas_xmit_tx_ringN()
2810 struct cas *cp = netdev_priv(dev); in cas_start_xmit() local
2828 static void cas_init_tx_dma(struct cas *cp) in cas_init_tx_dma()
2882 static inline void cas_init_dma(struct cas *cp) in cas_init_dma()
2888 static void cas_process_mc_list(struct cas *cp) in cas_process_mc_list()
2923 static u32 cas_setup_multicast(struct cas *cp) in cas_setup_multicast()
2945 static void cas_clear_mac_err(struct cas *cp) in cas_clear_mac_err()
2961 static void cas_mac_reset(struct cas *cp) in cas_mac_reset()
2995 static void cas_init_mac(struct cas *cp) in cas_init_mac()
3085 static void cas_init_pause_thresholds(struct cas *cp) in cas_init_pause_thresholds()
3130 static int cas_get_vpd_info(struct cas *cp, unsigned char *dev_addr, in cas_get_vpd_info()
3315 static void cas_check_pci_invariants(struct cas *cp) in cas_check_pci_invariants()
3346 static int cas_check_invariants(struct cas *cp) in cas_check_invariants()
3424 static inline void cas_start_dma(struct cas *cp) in cas_start_dma()
3482 static void cas_read_pcs_link_mode(struct cas *cp, int *fd, int *spd, in cas_read_pcs_link_mode()
3494 static void cas_read_mii_link_mode(struct cas *cp, int *fd, int *spd, in cas_read_mii_link_mode()
3530 static void cas_set_link_modes(struct cas *cp) in cas_set_link_modes()
3661 static void cas_init_hw(struct cas *cp, int restart_link) in cas_init_hw()
3684 static void cas_hard_reset(struct cas *cp) in cas_hard_reset()
3692 static void cas_global_reset(struct cas *cp, int blkflag) in cas_global_reset()
3742 static void cas_reset(struct cas *cp, int blkflag) in cas_reset()
3775 static void cas_shutdown(struct cas *cp) in cas_shutdown()
3805 struct cas *cp = netdev_priv(dev); in cas_change_mtu() local
3831 static void cas_clean_txd(struct cas *cp, int ring) in cas_clean_txd()
3879 static inline void cas_free_rx_desc(struct cas *cp, int ring) in cas_free_rx_desc()
3893 static void cas_free_rxds(struct cas *cp) in cas_free_rxds()
3902 static void cas_clean_rings(struct cas *cp) in cas_clean_rings()
3919 static inline int cas_alloc_rx_desc(struct cas *cp, int ring) in cas_alloc_rx_desc()
3932 static int cas_alloc_rxds(struct cas *cp) in cas_alloc_rxds()
3947 struct cas *cp = container_of(work, struct cas, reset_task); in cas_reset_task() local
4024 struct cas *cp = from_timer(cp, t, link_timer); in cas_link_timer() local
4147 static void cas_tx_tiny_free(struct cas *cp) in cas_tx_tiny_free()
4162 static int cas_tx_tiny_alloc(struct cas *cp) in cas_tx_tiny_alloc()
4182 struct cas *cp = netdev_priv(dev); in cas_open() local
4257 struct cas *cp = netdev_priv(dev); in cas_close() local
4331 static void cas_read_regs(struct cas *cp, u8 *ptr, int len) in cas_read_regs()
4355 struct cas *cp = netdev_priv(dev); in cas_get_stats() local
4427 struct cas *cp = netdev_priv(dev); in cas_set_multicast() local
4465 struct cas *cp = netdev_priv(dev); in cas_get_drvinfo() local
4474 struct cas *cp = netdev_priv(dev); in cas_get_link_ksettings() local
4585 struct cas *cp = netdev_priv(dev); in cas_set_link_ksettings() local
4611 struct cas *cp = netdev_priv(dev); in cas_nway_reset() local
4627 struct cas *cp = netdev_priv(dev); in cas_get_link() local
4633 struct cas *cp = netdev_priv(dev); in cas_get_msglevel() local
4639 struct cas *cp = netdev_priv(dev); in cas_set_msglevel() local
4645 struct cas *cp = netdev_priv(dev); in cas_get_regs_len() local
4652 struct cas *cp = netdev_priv(dev); in cas_get_regs() local
4677 struct cas *cp = netdev_priv(dev); in cas_get_ethtool_stats() local
4716 struct cas *cp = netdev_priv(dev); in cas_ioctl() local
4859 struct cas *cp; in cas_init_one() local
5101 struct cas *cp; in cas_remove_one() local
5136 struct cas *cp = netdev_priv(dev); in cas_suspend() local
5167 struct cas *cp = netdev_priv(dev); in cas_resume() local