Lines Matching refs:mac_control
504 sp->mac_control.fifos[i].queue_state = FIFO_QUEUE_STOP; in s2io_stop_all_tx_queue()
512 sp->mac_control.fifos[fifo_no].queue_state = in s2io_stop_tx_queue()
524 sp->mac_control.fifos[i].queue_state = FIFO_QUEUE_START; in s2io_start_all_tx_queue()
535 sp->mac_control.fifos[i].queue_state = FIFO_QUEUE_START; in s2io_wake_all_tx_queue()
575 struct mac_info *mac_control = &nic->mac_control; in init_shared_mem() local
612 struct fifo_info *fifo = &mac_control->fifos[i]; in init_shared_mem()
627 struct fifo_info *fifo = &mac_control->fifos[i]; in init_shared_mem()
656 mac_control->zerodma_virt_addr = tmp_v; in init_shared_mem()
685 struct fifo_info *fifo = &mac_control->fifos[i]; in init_shared_mem()
699 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
719 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
791 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
838 mac_control->stats_mem = in init_shared_mem()
840 &mac_control->stats_mem_phy, GFP_KERNEL); in init_shared_mem()
842 if (!mac_control->stats_mem) { in init_shared_mem()
851 mac_control->stats_mem_sz = size; in init_shared_mem()
853 tmp_v_addr = mac_control->stats_mem; in init_shared_mem()
854 mac_control->stats_info = tmp_v_addr; in init_shared_mem()
858 mac_control->stats_info->sw_stat.mem_allocated += mem_allocated; in init_shared_mem()
878 struct mac_info *mac_control; in free_shared_mem() local
888 mac_control = &nic->mac_control; in free_shared_mem()
889 stats = mac_control->stats_info; in free_shared_mem()
896 struct fifo_info *fifo = &mac_control->fifos[i]; in free_shared_mem()
918 if (mac_control->zerodma_virt_addr) { in free_shared_mem()
920 mac_control->zerodma_virt_addr, in free_shared_mem()
925 dev->name, mac_control->zerodma_virt_addr); in free_shared_mem()
935 struct ring_info *ring = &mac_control->rings[i]; in free_shared_mem()
956 struct ring_info *ring = &mac_control->rings[i]; in free_shared_mem()
985 struct fifo_info *fifo = &mac_control->fifos[i]; in free_shared_mem()
995 if (mac_control->stats_mem) { in free_shared_mem()
996 swstats->mem_freed += mac_control->stats_mem_sz; in free_shared_mem()
997 dma_free_coherent(&nic->pdev->dev, mac_control->stats_mem_sz, in free_shared_mem()
998 mac_control->stats_mem, in free_shared_mem()
999 mac_control->stats_mem_phy); in free_shared_mem()
1197 struct mac_info *mac_control = &nic->mac_control; in init_nic() local
1641 writeq(mac_control->stats_mem_phy, &bar0->stat_addr); in init_nic()
1757 val64 |= RMAC_PAUSE_HG_PTIME(nic->mac_control.rmac_pause_time); in init_nic()
1769 nic->mac_control.mc_pause_threshold_q0q3) in init_nic()
1777 nic->mac_control.mc_pause_threshold_q4q7) in init_nic()
2214 struct mac_info *mac_control = &nic->mac_control; in start_nic() local
2218 struct ring_info *ring = &mac_control->rings[i]; in start_nic()
2372 struct mac_info *mac_control = &nic->mac_control; in free_tx_buffers() local
2373 struct stat_block *stats = mac_control->stats_info; in free_tx_buffers()
2378 struct fifo_info *fifo = &mac_control->fifos[i]; in free_tx_buffers()
2384 skb = s2io_txdl_getskb(&mac_control->fifos[i], txdp, j); in free_tx_buffers()
2465 struct swStat *swstats = &ring->nic->mac_control.stats_info->sw_stat; in fill_rx_buffers()
2666 struct mac_info *mac_control = &sp->mac_control; in free_rxd_blk() local
2667 struct stat_block *stats = mac_control->stats_info; in free_rxd_blk()
2671 rxdp = mac_control->rings[ring_no]. in free_rxd_blk()
2700 mac_control->rings[ring_no].rx_bufs_left -= 1; in free_rxd_blk()
2718 struct mac_info *mac_control = &sp->mac_control; in free_rx_buffers() local
2721 struct ring_info *ring = &mac_control->rings[i]; in free_rx_buffers()
2795 struct mac_info *mac_control = &nic->mac_control; in s2io_poll_inta() local
2801 struct ring_info *ring = &mac_control->rings[i]; in s2io_poll_inta()
2836 struct mac_info *mac_control = &nic->mac_control; in s2io_netpoll() local
2851 tx_intr_handler(&mac_control->fifos[i]); in s2io_netpoll()
2855 struct ring_info *ring = &mac_control->rings[i]; in s2io_netpoll()
2861 struct ring_info *ring = &mac_control->rings[i]; in s2io_netpoll()
3003 struct stat_block *stats = nic->mac_control.stats_info; in tx_intr_handler()
3238 struct stat_block *stats = sp->mac_control.stats_info; in s2io_updt_xpak_counter()
3461 stats = sp->mac_control.stats_info; in s2io_reset()
3728 struct stat_block *stats = nic->mac_control.stats_info; in s2io_enable_msi_x()
3758 nic->s2io_entries[0].arg = &nic->mac_control.fifos; in s2io_enable_msi_x()
3770 nic->s2io_entries[j+1].arg = &nic->mac_control.rings[j]; in s2io_enable_msi_x()
3908 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_open()
4016 struct mac_info *mac_control = &sp->mac_control; in s2io_xmit() local
4017 struct stat_block *stats = mac_control->stats_info; in s2io_xmit()
4072 fifo = &mac_control->fifos[queue]; in s2io_xmit()
4149 tx_fifo = mac_control->tx_FIFO_start[queue]; in s2io_xmit()
4364 struct swStat *sw_stat = &sp->mac_control.stats_info->sw_stat; in s2io_handle_errors()
4365 struct xpakStat *stats = &sp->mac_control.stats_info->xpak_stat; in s2io_handle_errors()
4665 struct mac_info *mac_control; in s2io_isr() local
4676 mac_control = &sp->mac_control; in s2io_isr()
4711 struct ring_info *ring = &mac_control->rings[i]; in s2io_isr()
4726 tx_intr_handler(&mac_control->fifos[i]); in s2io_isr()
4736 struct ring_info *ring = &mac_control->rings[i]; in s2io_isr()
4792 struct mac_info *mac_control = &sp->mac_control; in s2io_get_stats() local
4793 struct stat_block *stats = mac_control->stats_info; in s2io_get_stats()
5675 struct swStat *swstats = &nic->mac_control.stats_info->sw_stat; in s2io_vpd_read()
6228 struct stat_block *stats = sp->mac_control.stats_info; in s2io_get_ethtool_stats()
6742 struct swStat *stats = &sp->mac_control.stats_info->sw_stat; in set_rxd_buffer_pointer()
6854 struct mac_info *mac_control = &sp->mac_control; in rxd_owner_bit_reset() local
6871 struct ring_info *ring = &mac_control->rings[i]; in rxd_owner_bit_reset()
7025 napi_disable(&sp->mac_control.rings[off].napi); in do_s2io_card_down()
7087 struct mac_info *mac_control; in s2io_card_up() local
7106 mac_control = &sp->mac_control; in s2io_card_up()
7109 struct ring_info *ring = &mac_control->rings[i]; in s2io_card_up()
7129 napi_enable(&sp->mac_control.rings[i].napi); in s2io_card_up()
7237 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_tx_watchdog()
7271 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in rx_osm_handler()
7427 sp->mac_control.rings[ring_no].rx_bufs_left -= 1; in rx_osm_handler()
7447 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_link()
7653 struct mac_info *mac_control; in s2io_init_nic() local
7736 mac_control = &sp->mac_control; in s2io_init_nic()
7798 struct ring_info *ring = &mac_control->rings[i]; in s2io_init_nic()
7817 mac_control->rmac_pause_time = rmac_pause_time; in s2io_init_nic()
7818 mac_control->mc_pause_threshold_q0q3 = mc_pause_threshold_q0q3; in s2io_init_nic()
7819 mac_control->mc_pause_threshold_q4q7 = mc_pause_threshold_q4q7; in s2io_init_nic()
7847 mac_control->tx_FIFO_start[j] = sp->bar1 + (j * 0x00020000); in s2io_init_nic()
7904 struct ring_info *ring = &mac_control->rings[i]; in s2io_init_nic()
7984 struct fifo_info *fifo = &mac_control->fifos[i]; in s2io_init_nic()
8062 struct fifo_info *fifo = &mac_control->fifos[i]; in s2io_init_nic()
8245 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in update_L3L4_header()
8358 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_club_tcp_session()
8473 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in lro_append_pkt()