Lines Matching refs:os

264 	smc->os.dev = dev;  in skfp_init_one()
265 smc->os.bus_type = SK_BUS_TYPE_PCI; in skfp_init_one()
266 smc->os.pdev = *pdev; in skfp_init_one()
267 smc->os.QueueSkb = MAX_TX_QUEUE_LEN; in skfp_init_one()
268 smc->os.MaxFrameSize = MAX_FRAME_SIZE; in skfp_init_one()
269 smc->os.dev = dev; in skfp_init_one()
272 smc->os.ResetRequested = FALSE; in skfp_init_one()
273 skb_queue_head_init(&smc->os.SendSkbQueue); in skfp_init_one()
298 if (smc->os.SharedMemAddr) in skfp_init_one()
299 dma_free_coherent(&pdev->dev, smc->os.SharedMemSize, in skfp_init_one()
300 smc->os.SharedMemAddr, in skfp_init_one()
301 smc->os.SharedMemDMA); in skfp_init_one()
303 smc->os.LocalRxBuffer, smc->os.LocalRxBufferDMA); in skfp_init_one()
329 if (lp->os.SharedMemAddr) { in skfp_remove_one()
331 lp->os.SharedMemSize, in skfp_remove_one()
332 lp->os.SharedMemAddr, in skfp_remove_one()
333 lp->os.SharedMemDMA); in skfp_remove_one()
334 lp->os.SharedMemAddr = NULL; in skfp_remove_one()
336 if (lp->os.LocalRxBuffer) { in skfp_remove_one()
339 lp->os.LocalRxBuffer, in skfp_remove_one()
340 lp->os.LocalRxBufferDMA); in skfp_remove_one()
341 lp->os.LocalRxBuffer = NULL; in skfp_remove_one()
382 skfddi_priv *bp = &smc->os; in skfp_driver_init()
551 skfddi_priv *bp = &smc->os; in skfp_close()
612 bp = &smc->os; in skfp_interrupt()
630 if (smc->os.ResetRequested) { in skfp_interrupt()
632 smc->os.ResetRequested = FALSE; in skfp_interrupt()
678 bp->os.MacStat.port_bs_flag[0] = 0x1234; in skfp_ctl_get_stats()
679 bp->os.MacStat.port_bs_flag[1] = 0x5678; in skfp_ctl_get_stats()
795 return (struct net_device_stats *)&bp->os.MacStat; in skfp_ctl_get_stats()
839 skfddi_priv *bp = &smc->os; in skfp_ctl_set_multicast_list()
924 skfddi_priv *bp = &smc->os; in skfp_ctl_set_mac_address()
963 skfddi_priv *lp = &smc->os; in skfp_siocdevprivate()
1047 skfddi_priv *bp = &smc->os; in skfp_send_pkt()
1108 skfddi_priv *bp = &smc->os; in send_queued_packets()
1250 init_smt(smc, (smc->os.dev)->dev_addr); // Initialize the hardware. in ResetAdapter()
1256 skfp_ctl_set_multicast_list_wo_lock(smc->os.dev); in ResetAdapter()
1280 skfddi_priv *bp = &smc->os; in llc_restart_tx()
1313 virt = (void *) (smc->os.SharedMemAddr + smc->os.SharedMemHeap); in mac_drv_get_space()
1315 if ((smc->os.SharedMemHeap + size) > smc->os.SharedMemSize) { in mac_drv_get_space()
1319 smc->os.SharedMemHeap += size; // Move heap pointer. in mac_drv_get_space()
1324 (smc->os.SharedMemDMA + in mac_drv_get_space()
1325 ((char *) virt - (char *)smc->os.SharedMemAddr))); in mac_drv_get_space()
1388 return smc->os.SharedMemDMA + in mac_drv_virt2phys()
1389 ((char *) virt - (char *)smc->os.SharedMemAddr); in mac_drv_virt2phys()
1423 return smc->os.SharedMemDMA + in dma_master()
1424 ((char *) virt - (char *)smc->os.SharedMemAddr); in dma_master()
1464 skfddi_priv *bp = &smc->os; in dma_complete()
1508 dma_unmap_single(&(&smc->os.pdev)->dev, txd->txd_os.dma_addr, in mac_drv_tx_complete()
1512 smc->os.MacStat.gen.tx_packets++; // Count transmitted packets. in mac_drv_tx_complete()
1513 smc->os.MacStat.gen.tx_bytes+=skb->len; // Count bytes in mac_drv_tx_complete()
1565 skfddi_priv *bp = &smc->os; in mac_drv_rx_complete()
1581 smc->os.MacStat.gen.rx_errors++; in mac_drv_rx_complete()
1634 smc->os.MacStat.gen.rx_packets++; // Count indicated receive in mac_drv_rx_complete()
1636 smc->os.MacStat.gen.rx_bytes+=len; // Count bytes. in mac_drv_rx_complete()
1641 smc->os.MacStat.gen.multicast++; in mac_drv_rx_complete()
1657 smc->os.MacStat.gen.rx_errors++; // Count receive packets in mac_drv_rx_complete()
1695 MaxFrameSize = smc->os.MaxFrameSize; in mac_drv_requeue_rxd()
1712 b_addr = dma_map_single(&(&smc->os.pdev)->dev, in mac_drv_requeue_rxd()
1720 v_addr = smc->os.LocalRxBuffer; in mac_drv_requeue_rxd()
1721 b_addr = smc->os.LocalRxBufferDMA; in mac_drv_requeue_rxd()
1727 b_addr = dma_map_single(&(&smc->os.pdev)->dev, v_addr, in mac_drv_requeue_rxd()
1768 MaxFrameSize = smc->os.MaxFrameSize; in mac_drv_fill_rxd()
1780 b_addr = dma_map_single(&(&smc->os.pdev)->dev, v_addr, in mac_drv_fill_rxd()
1790 v_addr = smc->os.LocalRxBuffer; in mac_drv_fill_rxd()
1791 b_addr = smc->os.LocalRxBufferDMA; in mac_drv_fill_rxd()
1835 skfddi_priv *bp = &smc->os; in mac_drv_clear_rxd()
1903 skb->protocol = fddi_type_trans(skb, smc->os.dev); in mac_drv_rx_init()
2028 smc->os.MacStat.gen.rx_errors++; in smt_stat_counter()
2222 smc->os.ResetRequested = TRUE; // Set flag. in drv_reset_indication()