Lines Matching refs:cas
230 static void cas_set_link_modes(struct cas *cp);
232 static inline void cas_lock_tx(struct cas *cp)
250 struct cas *xxxcp = (cp); \
255 static inline void cas_unlock_tx(struct cas *cp)
265 struct cas *xxxcp = (cp); \
270 static void cas_disable_irq(struct cas *cp, const int ring)
303 static inline void cas_mask_intr(struct cas *cp)
311 static void cas_enable_irq(struct cas *cp, const int ring)
340 static inline void cas_unmask_intr(struct cas *cp)
348 static inline void cas_entropy_gather(struct cas *cp)
360 static inline void cas_entropy_reset(struct cas *cp)
380 static u16 cas_phy_read(struct cas *cp, int reg)
401 static int cas_phy_write(struct cas *cp, int reg, u16 val)
423 static void cas_phy_powerup(struct cas *cp)
433 static void cas_phy_powerdown(struct cas *cp)
444 static int cas_page_free(struct cas *cp, cas_page_t *page)
464 static cas_page_t *cas_page_alloc(struct cas *cp, const gfp_t flags)
487 static void cas_spare_init(struct cas *cp)
500 static void cas_spare_free(struct cas *cp)
533 static void cas_spare_recover(struct cas *cp, const gfp_t flags)
609 static cas_page_t *cas_page_dequeue(struct cas *cp)
648 static void cas_mif_poll(struct cas *cp, const int enable)
670 static void cas_begin_auto_negotiation(struct cas *cp,
770 static int cas_reset_mii_phy(struct cas *cp)
786 static void cas_saturn_firmware_init(struct cas *cp)
816 static void cas_saturn_firmware_load(struct cas *cp)
851 static void cas_phy_init(struct cas *cp)
980 static int cas_pcs_link_check(struct cas *cp)
1085 struct cas *cp, u32 status)
1095 struct cas *cp, u32 status)
1146 static void cas_load_firmware(struct cas *cp, cas_hp_inst_t *firmware)
1179 static void cas_init_rx_dma(struct cas *cp)
1347 static inline cas_page_t *cas_page_spare(struct cas *cp, const int index)
1365 static cas_page_t *cas_page_swap(struct cas *cp, const int ring,
1383 static void cas_clean_rxds(struct cas *cp)
1411 static void cas_clean_rxcs(struct cas *cp)
1433 static int cas_rxmac_reset(struct cas *cp)
1494 static int cas_rxmac_interrupt(struct net_device *dev, struct cas *cp,
1527 static int cas_mac_interrupt(struct net_device *dev, struct cas *cp,
1553 static inline int cas_mdio_link_not_up(struct cas *cp)
1610 static int cas_mii_link_check(struct cas *cp, const u16 bmsr)
1666 static int cas_mif_interrupt(struct net_device *dev, struct cas *cp,
1680 static int cas_pci_interrupt(struct net_device *dev, struct cas *cp,
1738 static int cas_abnormal_irq(struct net_device *dev, struct cas *cp,
1811 static inline int cas_calc_tabort(struct cas *cp, const unsigned long addr,
1823 static inline void cas_tx_ringN(struct cas *cp, int ring, int limit)
1895 static void cas_tx(struct net_device *dev, struct cas *cp,
1921 static int cas_rx_process_pkt(struct cas *cp, struct cas_rx_comp *rxc,
2144 static inline void cas_rx_flow_pkt(struct cas *cp, const u64 *words,
2165 static void cas_post_page(struct cas *cp, const int ring, const int index)
2193 static int cas_post_rxds_ringN(struct cas *cp, int ring, int num)
2266 static int cas_rx_ringN(struct cas *cp, int ring, int budget)
2383 struct cas *cp, int ring)
2414 struct cas *cp, const u32 status,
2424 struct cas *cp = netdev_priv(dev);
2453 static inline void cas_handle_irq1(struct cas *cp, const u32 status)
2476 struct cas *cp = netdev_priv(dev);
2502 struct cas *cp, const u32 status)
2528 struct cas *cp = netdev_priv(dev);
2561 struct cas *cp = container_of(napi, struct cas, napi);
2632 struct cas *cp = netdev_priv(dev);
2658 struct cas *cp = netdev_priv(dev);
2712 static void cas_write_txd(struct cas *cp, int ring, int entry,
2726 static inline void *tx_tiny_buf(struct cas *cp, const int ring,
2732 static inline dma_addr_t tx_tiny_map(struct cas *cp, const int ring,
2740 static inline int cas_xmit_tx_ringN(struct cas *cp, int ring,
2842 struct cas *cp = netdev_priv(dev);
2860 static void cas_init_tx_dma(struct cas *cp)
2914 static inline void cas_init_dma(struct cas *cp)
2920 static void cas_process_mc_list(struct cas *cp)
2955 static u32 cas_setup_multicast(struct cas *cp)
2977 static void cas_clear_mac_err(struct cas *cp)
2993 static void cas_mac_reset(struct cas *cp)
3027 static void cas_init_mac(struct cas *cp)
3117 static void cas_init_pause_thresholds(struct cas *cp)
3162 static int cas_get_vpd_info(struct cas *cp, unsigned char *dev_addr,
3347 static void cas_check_pci_invariants(struct cas *cp)
3378 static int cas_check_invariants(struct cas *cp)
3455 static inline void cas_start_dma(struct cas *cp)
3516 static void cas_read_pcs_link_mode(struct cas *cp, int *fd, int *spd,
3528 static void cas_read_mii_link_mode(struct cas *cp, int *fd, int *spd,
3564 static void cas_set_link_modes(struct cas *cp)
3695 static void cas_init_hw(struct cas *cp, int restart_link)
3718 static void cas_hard_reset(struct cas *cp)
3726 static void cas_global_reset(struct cas *cp, int blkflag)
3776 static void cas_reset(struct cas *cp, int blkflag)
3809 static void cas_shutdown(struct cas *cp)
3839 struct cas *cp = netdev_priv(dev);
3865 static void cas_clean_txd(struct cas *cp, int ring)
3913 static inline void cas_free_rx_desc(struct cas *cp, int ring)
3927 static void cas_free_rxds(struct cas *cp)
3936 static void cas_clean_rings(struct cas *cp)
3953 static inline int cas_alloc_rx_desc(struct cas *cp, int ring)
3966 static int cas_alloc_rxds(struct cas *cp)
3981 struct cas *cp = container_of(work, struct cas, reset_task);
4058 struct cas *cp = from_timer(cp, t, link_timer);
4181 static void cas_tx_tiny_free(struct cas *cp)
4196 static int cas_tx_tiny_alloc(struct cas *cp)
4216 struct cas *cp = netdev_priv(dev);
4291 struct cas *cp = netdev_priv(dev);
4365 static void cas_read_regs(struct cas *cp, u8 *ptr, int len)
4389 struct cas *cp = netdev_priv(dev);
4461 struct cas *cp = netdev_priv(dev);
4499 struct cas *cp = netdev_priv(dev);
4508 struct cas *cp = netdev_priv(dev);
4619 struct cas *cp = netdev_priv(dev);
4645 struct cas *cp = netdev_priv(dev);
4661 struct cas *cp = netdev_priv(dev);
4667 struct cas *cp = netdev_priv(dev);
4673 struct cas *cp = netdev_priv(dev);
4679 struct cas *cp = netdev_priv(dev);
4686 struct cas *cp = netdev_priv(dev);
4711 struct cas *cp = netdev_priv(dev);
4750 struct cas *cp = netdev_priv(dev);
4893 struct cas *cp;
5149 struct cas *cp;
5184 struct cas *cp = netdev_priv(dev);
5215 struct cas *cp = netdev_priv(dev);