Lines Matching refs:cas
229 static void cas_set_link_modes(struct cas *cp);
231 static inline void cas_lock_tx(struct cas *cp)
249 struct cas *xxxcp = (cp); \
254 static inline void cas_unlock_tx(struct cas *cp)
264 struct cas *xxxcp = (cp); \
269 static void cas_disable_irq(struct cas *cp, const int ring)
302 static inline void cas_mask_intr(struct cas *cp)
310 static void cas_enable_irq(struct cas *cp, const int ring)
339 static inline void cas_unmask_intr(struct cas *cp)
347 static inline void cas_entropy_gather(struct cas *cp)
359 static inline void cas_entropy_reset(struct cas *cp)
379 static u16 cas_phy_read(struct cas *cp, int reg)
400 static int cas_phy_write(struct cas *cp, int reg, u16 val)
422 static void cas_phy_powerup(struct cas *cp)
432 static void cas_phy_powerdown(struct cas *cp)
443 static int cas_page_free(struct cas *cp, cas_page_t *page)
463 static cas_page_t *cas_page_alloc(struct cas *cp, const gfp_t flags)
486 static void cas_spare_init(struct cas *cp)
499 static void cas_spare_free(struct cas *cp)
532 static void cas_spare_recover(struct cas *cp, const gfp_t flags)
608 static cas_page_t *cas_page_dequeue(struct cas *cp)
647 static void cas_mif_poll(struct cas *cp, const int enable)
669 static void cas_begin_auto_negotiation(struct cas *cp,
769 static int cas_reset_mii_phy(struct cas *cp)
785 static void cas_saturn_firmware_init(struct cas *cp)
815 static void cas_saturn_firmware_load(struct cas *cp)
850 static void cas_phy_init(struct cas *cp)
979 static int cas_pcs_link_check(struct cas *cp)
1084 struct cas *cp, u32 status)
1094 struct cas *cp, u32 status)
1145 static void cas_load_firmware(struct cas *cp, cas_hp_inst_t *firmware)
1178 static void cas_init_rx_dma(struct cas *cp)
1333 static inline cas_page_t *cas_page_spare(struct cas *cp, const int index)
1351 static cas_page_t *cas_page_swap(struct cas *cp, const int ring,
1369 static void cas_clean_rxds(struct cas *cp)
1397 static void cas_clean_rxcs(struct cas *cp)
1419 static int cas_rxmac_reset(struct cas *cp)
1480 static int cas_rxmac_interrupt(struct net_device *dev, struct cas *cp,
1513 static int cas_mac_interrupt(struct net_device *dev, struct cas *cp,
1539 static inline int cas_mdio_link_not_up(struct cas *cp)
1597 static int cas_mii_link_check(struct cas *cp, const u16 bmsr)
1653 static int cas_mif_interrupt(struct net_device *dev, struct cas *cp,
1667 static int cas_pci_interrupt(struct net_device *dev, struct cas *cp,
1725 static int cas_abnormal_irq(struct net_device *dev, struct cas *cp,
1798 static inline int cas_calc_tabort(struct cas *cp, const unsigned long addr,
1810 static inline void cas_tx_ringN(struct cas *cp, int ring, int limit)
1882 static void cas_tx(struct net_device *dev, struct cas *cp,
1908 static int cas_rx_process_pkt(struct cas *cp, struct cas_rx_comp *rxc,
2115 static inline void cas_rx_flow_pkt(struct cas *cp, const u64 *words,
2136 static void cas_post_page(struct cas *cp, const int ring, const int index)
2164 static int cas_post_rxds_ringN(struct cas *cp, int ring, int num)
2237 static int cas_rx_ringN(struct cas *cp, int ring, int budget)
2354 struct cas *cp, int ring)
2385 struct cas *cp, const u32 status,
2395 struct cas *cp = netdev_priv(dev);
2424 static inline void cas_handle_irq1(struct cas *cp, const u32 status)
2447 struct cas *cp = netdev_priv(dev);
2473 struct cas *cp, const u32 status)
2499 struct cas *cp = netdev_priv(dev);
2532 struct cas *cp = container_of(napi, struct cas, napi);
2603 struct cas *cp = netdev_priv(dev);
2629 struct cas *cp = netdev_priv(dev);
2683 static void cas_write_txd(struct cas *cp, int ring, int entry,
2697 static inline void *tx_tiny_buf(struct cas *cp, const int ring,
2703 static inline dma_addr_t tx_tiny_map(struct cas *cp, const int ring,
2711 static inline int cas_xmit_tx_ringN(struct cas *cp, int ring,
2809 struct cas *cp = netdev_priv(dev);
2827 static void cas_init_tx_dma(struct cas *cp)
2881 static inline void cas_init_dma(struct cas *cp)
2887 static void cas_process_mc_list(struct cas *cp)
2922 static u32 cas_setup_multicast(struct cas *cp)
2944 static void cas_clear_mac_err(struct cas *cp)
2960 static void cas_mac_reset(struct cas *cp)
2994 static void cas_init_mac(struct cas *cp)
3084 static void cas_init_pause_thresholds(struct cas *cp)
3129 static int cas_get_vpd_info(struct cas *cp, unsigned char *dev_addr,
3314 static void cas_check_pci_invariants(struct cas *cp)
3345 static int cas_check_invariants(struct cas *cp)
3423 static inline void cas_start_dma(struct cas *cp)
3481 static void cas_read_pcs_link_mode(struct cas *cp, int *fd, int *spd,
3493 static void cas_read_mii_link_mode(struct cas *cp, int *fd, int *spd,
3529 static void cas_set_link_modes(struct cas *cp)
3660 static void cas_init_hw(struct cas *cp, int restart_link)
3683 static void cas_hard_reset(struct cas *cp)
3691 static void cas_global_reset(struct cas *cp, int blkflag)
3741 static void cas_reset(struct cas *cp, int blkflag)
3774 static void cas_shutdown(struct cas *cp)
3804 struct cas *cp = netdev_priv(dev);
3830 static void cas_clean_txd(struct cas *cp, int ring)
3878 static inline void cas_free_rx_desc(struct cas *cp, int ring)
3892 static void cas_free_rxds(struct cas *cp)
3901 static void cas_clean_rings(struct cas *cp)
3918 static inline int cas_alloc_rx_desc(struct cas *cp, int ring)
3931 static int cas_alloc_rxds(struct cas *cp)
3946 struct cas *cp = container_of(work, struct cas, reset_task);
4023 struct cas *cp = from_timer(cp, t, link_timer);
4146 static void cas_tx_tiny_free(struct cas *cp)
4161 static int cas_tx_tiny_alloc(struct cas *cp)
4181 struct cas *cp = netdev_priv(dev);
4256 struct cas *cp = netdev_priv(dev);
4330 static void cas_read_regs(struct cas *cp, u8 *ptr, int len)
4354 struct cas *cp = netdev_priv(dev);
4426 struct cas *cp = netdev_priv(dev);
4464 struct cas *cp = netdev_priv(dev);
4473 struct cas *cp = netdev_priv(dev);
4584 struct cas *cp = netdev_priv(dev);
4610 struct cas *cp = netdev_priv(dev);
4626 struct cas *cp = netdev_priv(dev);
4632 struct cas *cp = netdev_priv(dev);
4638 struct cas *cp = netdev_priv(dev);
4644 struct cas *cp = netdev_priv(dev);
4651 struct cas *cp = netdev_priv(dev);
4676 struct cas *cp = netdev_priv(dev);
4715 struct cas *cp = netdev_priv(dev);
4858 struct cas *cp;
5100 struct cas *cp;
5135 struct cas *cp = netdev_priv(dev);
5166 struct cas *cp = netdev_priv(dev);