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()
684 struct fifo_info *fifo = &mac_control->fifos[i]; in init_shared_mem()
698 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
718 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
790 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
837 mac_control->stats_mem = in init_shared_mem()
839 &mac_control->stats_mem_phy); in init_shared_mem()
841 if (!mac_control->stats_mem) { in init_shared_mem()
850 mac_control->stats_mem_sz = size; in init_shared_mem()
852 tmp_v_addr = mac_control->stats_mem; in init_shared_mem()
853 mac_control->stats_info = tmp_v_addr; in init_shared_mem()
857 mac_control->stats_info->sw_stat.mem_allocated += mem_allocated; in init_shared_mem()
877 struct mac_info *mac_control; in free_shared_mem() local
887 mac_control = &nic->mac_control; in free_shared_mem()
888 stats = mac_control->stats_info; in free_shared_mem()
895 struct fifo_info *fifo = &mac_control->fifos[i]; in free_shared_mem()
917 if (mac_control->zerodma_virt_addr) { in free_shared_mem()
919 mac_control->zerodma_virt_addr, in free_shared_mem()
924 dev->name, mac_control->zerodma_virt_addr); in free_shared_mem()
934 struct ring_info *ring = &mac_control->rings[i]; in free_shared_mem()
955 struct ring_info *ring = &mac_control->rings[i]; in free_shared_mem()
984 struct fifo_info *fifo = &mac_control->fifos[i]; in free_shared_mem()
994 if (mac_control->stats_mem) { in free_shared_mem()
995 swstats->mem_freed += mac_control->stats_mem_sz; in free_shared_mem()
997 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()
2209 struct mac_info *mac_control = &nic->mac_control; in start_nic() local
2213 struct ring_info *ring = &mac_control->rings[i]; in start_nic()
2363 struct mac_info *mac_control = &nic->mac_control; in free_tx_buffers() local
2364 struct stat_block *stats = mac_control->stats_info; in free_tx_buffers()
2369 struct fifo_info *fifo = &mac_control->fifos[i]; in free_tx_buffers()
2375 skb = s2io_txdl_getskb(&mac_control->fifos[i], txdp, j); in free_tx_buffers()
2455 struct swStat *swstats = &ring->nic->mac_control.stats_info->sw_stat; in fill_rx_buffers()
2659 struct mac_info *mac_control = &sp->mac_control; in free_rxd_blk() local
2660 struct stat_block *stats = mac_control->stats_info; in free_rxd_blk()
2664 rxdp = mac_control->rings[ring_no]. in free_rxd_blk()
2696 mac_control->rings[ring_no].rx_bufs_left -= 1; in free_rxd_blk()
2714 struct mac_info *mac_control = &sp->mac_control; in free_rx_buffers() local
2717 struct ring_info *ring = &mac_control->rings[i]; in free_rx_buffers()
2791 struct mac_info *mac_control = &nic->mac_control; in s2io_poll_inta() local
2797 struct ring_info *ring = &mac_control->rings[i]; in s2io_poll_inta()
2832 struct mac_info *mac_control = &nic->mac_control; in s2io_netpoll() local
2847 tx_intr_handler(&mac_control->fifos[i]); in s2io_netpoll()
2851 struct ring_info *ring = &mac_control->rings[i]; in s2io_netpoll()
2857 struct ring_info *ring = &mac_control->rings[i]; in s2io_netpoll()
3001 struct stat_block *stats = nic->mac_control.stats_info; in tx_intr_handler()
3234 struct stat_block *stats = sp->mac_control.stats_info; in s2io_updt_xpak_counter()
3456 stats = sp->mac_control.stats_info; in s2io_reset()
3723 struct stat_block *stats = nic->mac_control.stats_info; in s2io_enable_msi_x()
3753 nic->s2io_entries[0].arg = &nic->mac_control.fifos; in s2io_enable_msi_x()
3765 nic->s2io_entries[j+1].arg = &nic->mac_control.rings[j]; in s2io_enable_msi_x()
3903 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_open()
4011 struct mac_info *mac_control = &sp->mac_control; in s2io_xmit() local
4012 struct stat_block *stats = mac_control->stats_info; in s2io_xmit()
4067 fifo = &mac_control->fifos[queue]; in s2io_xmit()
4144 tx_fifo = mac_control->tx_FIFO_start[queue]; in s2io_xmit()
4359 struct swStat *sw_stat = &sp->mac_control.stats_info->sw_stat; in s2io_handle_errors()
4360 struct xpakStat *stats = &sp->mac_control.stats_info->xpak_stat; in s2io_handle_errors()
4660 struct mac_info *mac_control; in s2io_isr() local
4671 mac_control = &sp->mac_control; in s2io_isr()
4706 struct ring_info *ring = &mac_control->rings[i]; in s2io_isr()
4721 tx_intr_handler(&mac_control->fifos[i]); in s2io_isr()
4731 struct ring_info *ring = &mac_control->rings[i]; in s2io_isr()
4787 struct mac_info *mac_control = &sp->mac_control; in s2io_get_stats() local
4788 struct stat_block *stats = mac_control->stats_info; in s2io_get_stats()
5677 struct swStat *swstats = &nic->mac_control.stats_info->sw_stat; in s2io_vpd_read()
6233 struct stat_block *stats = sp->mac_control.stats_info; in s2io_get_ethtool_stats()
6747 struct swStat *stats = &sp->mac_control.stats_info->sw_stat; in set_rxd_buffer_pointer()
6862 struct mac_info *mac_control = &sp->mac_control; in rxd_owner_bit_reset() local
6879 struct ring_info *ring = &mac_control->rings[i]; in rxd_owner_bit_reset()
7033 napi_disable(&sp->mac_control.rings[off].napi); in do_s2io_card_down()
7095 struct mac_info *mac_control; in s2io_card_up() local
7114 mac_control = &sp->mac_control; in s2io_card_up()
7117 struct ring_info *ring = &mac_control->rings[i]; in s2io_card_up()
7137 napi_enable(&sp->mac_control.rings[i].napi); in s2io_card_up()
7244 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_tx_watchdog()
7281 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in rx_osm_handler()
7437 sp->mac_control.rings[ring_no].rx_bufs_left -= 1; in rx_osm_handler()
7457 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_link()
7662 struct mac_info *mac_control; in s2io_init_nic() local
7746 mac_control = &sp->mac_control; in s2io_init_nic()
7808 struct ring_info *ring = &mac_control->rings[i]; in s2io_init_nic()
7827 mac_control->rmac_pause_time = rmac_pause_time; in s2io_init_nic()
7828 mac_control->mc_pause_threshold_q0q3 = mc_pause_threshold_q0q3; in s2io_init_nic()
7829 mac_control->mc_pause_threshold_q4q7 = mc_pause_threshold_q4q7; in s2io_init_nic()
7857 mac_control->tx_FIFO_start[j] = sp->bar1 + (j * 0x00020000); in s2io_init_nic()
7914 struct ring_info *ring = &mac_control->rings[i]; in s2io_init_nic()
7994 struct fifo_info *fifo = &mac_control->fifos[i]; in s2io_init_nic()
8072 struct fifo_info *fifo = &mac_control->fifos[i]; in s2io_init_nic()
8255 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in update_L3L4_header()
8368 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_club_tcp_session()
8483 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in lro_append_pkt()