Lines Matching full:os
267 if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *) in mac_drv_init()
277 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init()
280 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc, in mac_drv_init()
360 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + in init_txd_ring()
397 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ; in init_rxd_ring()
430 mb = smc->os.hwm.mbuf_pool.mb_start ; in init_fddi_driver()
431 smc->os.hwm.mbuf_pool.mb_free = (SMbuf *)NULL ; in init_fddi_driver()
453 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ; in init_fddi_driver()
454 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ; in init_fddi_driver()
455 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ; in init_fddi_driver()
456 smc->os.hwm.pass_llc_promisc = TRUE ; in init_fddi_driver()
457 smc->os.hwm.queued_rx_frames = smc->os.hwm.queued_txd_mb = 0 ; in init_fddi_driver()
458 smc->os.hwm.detec_count = 0 ; in init_fddi_driver()
459 smc->os.hwm.rx_break = 0 ; in init_fddi_driver()
460 smc->os.hwm.rx_len_error = 0 ; in init_fddi_driver()
461 smc->os.hwm.isr_flag = FALSE ; in init_fddi_driver()
466 i = 16 - ((long)smc->os.hwm.descr_p & 0xf) ; in init_fddi_driver()
469 smc->os.hwm.descr_p = (union s_fp_descr volatile *) in init_fddi_driver()
470 ((char *)smc->os.hwm.descr_p+i) ; in init_fddi_driver()
472 DB_GEN(3, "pt to descr area = %p", smc->os.hwm.descr_p); in init_fddi_driver()
487 mb = smc->os.hwm.mbuf_pool.mb_free ; in smt_get_mbuf()
493 smc->os.hwm.mbuf_pool.mb_free = mb->sm_next ; in smt_get_mbuf()
518 mb->sm_next = smc->os.hwm.mbuf_pool.mb_free ; in smt_free_mbuf()
519 smc->os.hwm.mbuf_pool.mb_free = mb ; in smt_free_mbuf()
699 * We have to force and Timer IRQ if 'smc->os.hwm.leave_isr' AND
716 if (smc->os.hwm.rx_break) { in fddi_isr()
719 smc->os.hwm.rx_break = 0 ; in fddi_isr()
723 smc->os.hwm.detec_count = 0 ; in fddi_isr()
728 smc->os.hwm.isr_flag = TRUE ; in fddi_isr()
732 if (smc->os.hwm.leave_isr) { in fddi_isr()
733 smc->os.hwm.leave_isr = FALSE ; in fddi_isr()
777 if (++smc->os.hwm.detec_count > 4) { in fddi_isr()
835 if (smc->os.hwm.leave_isr) { in fddi_isr()
856 if (!offDepth && smc->os.hwm.rx_break) { in fddi_isr()
871 if (smc->os.hwm.leave_isr) { in fddi_isr()
880 if (smc->os.hwm.leave_isr && force_irq) { in fddi_isr()
884 smc->os.hwm.isr_flag = FALSE ; in fddi_isr()
992 smc->os.hwm.pass_SMT = TRUE ; in mac_drv_rx_mode()
995 smc->os.hwm.pass_SMT = FALSE ; in mac_drv_rx_mode()
998 smc->os.hwm.pass_NSA = TRUE ; in mac_drv_rx_mode()
1001 smc->os.hwm.pass_NSA = FALSE ; in mac_drv_rx_mode()
1004 smc->os.hwm.pass_DB = TRUE ; in mac_drv_rx_mode()
1007 smc->os.hwm.pass_DB = FALSE ; in mac_drv_rx_mode()
1010 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = FALSE ; in mac_drv_rx_mode()
1011 smc->os.hwm.pass_DB = FALSE ; in mac_drv_rx_mode()
1012 smc->os.hwm.pass_llc_promisc = TRUE ; in mac_drv_rx_mode()
1016 smc->os.hwm.pass_llc_promisc = FALSE ; in mac_drv_rx_mode()
1019 smc->os.hwm.pass_llc_promisc = TRUE ; in mac_drv_rx_mode()
1055 smc->os.hwm.detec_count = 0 ; in process_receive()
1064 if (smc->os.hwm.leave_isr) { in process_receive()
1070 smc->os.hwm.rx_break = 1 ; in process_receive()
1073 smc->os.hwm.rx_break = 0 ; in process_receive()
1076 if (smc->os.hwm.rx_break) { in process_receive()
1104 smc->os.hwm.detec_count = 0 ; in process_receive()
1214 smc->os.hwm.rx_len_error++ ; in process_receive()
1241 if (!smc->os.hwm.pass_llc_promisc) { in process_receive()
1295 if (smc->os.hwm.pass_SMT) { in process_receive()
1314 if (smc->os.hwm.pass_NSA || in process_receive()
1315 (smc->os.hwm.pass_SMT && in process_receive()
1329 if (smc->os.hwm.pass_DB) { in process_receive()
1381 smc->os.hwm.r.len = mb->sm_len ; in smt_to_llc()
1382 smc->os.hwm.r.mb_pos = smtod(mb,char *) ; in smt_to_llc()
1383 fc = *smc->os.hwm.r.mb_pos ; in smt_to_llc()
1385 smc->os.hwm.r.mb_pos,(int)mb->sm_len) ; in smt_to_llc()
1443 * mac_drv_clear_rx_queue is called by the OS-specific module
1550 smc->os.hwm.tx_p = smc->hw.fp.tx[frame_status & QUEUE_A0] ; in hwm_tx_init()
1551 smc->os.hwm.tx_descr = TX_DESCRIPTOR | (((u_long)(frame_len-1)&3)<<27) ; in hwm_tx_init()
1552 smc->os.hwm.tx_len = frame_len ; in hwm_tx_init()
1578 if (frag_count > smc->os.hwm.tx_p->tx_free) { in hwm_tx_init()
1581 if (frag_count > smc->os.hwm.tx_p->tx_free) { in hwm_tx_init()
1593 NDD_TRACE("THiE",frame_status,smc->os.hwm.tx_p->tx_free,0) ; in hwm_tx_init()
1631 queue = smc->os.hwm.tx_p ; in hwm_tx_frag()
1646 t->txd_txdscr = cpu_to_le32(smc->os.hwm.tx_descr) ; in hwm_tx_frag()
1675 if(!(smc->os.hwm.tx_mb = smt_get_mbuf(smc))) { in hwm_tx_frag()
1680 smc->os.hwm.tx_data = in hwm_tx_frag()
1681 smtod(smc->os.hwm.tx_mb,char *) - 1 ; in hwm_tx_frag()
1684 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data, in hwm_tx_frag()
1685 smc->os.hwm.tx_len) ; in hwm_tx_frag()
1690 if (smc->os.hwm.tx_mb) { in hwm_tx_frag()
1693 memcpy(smc->os.hwm.tx_data,virt,len) ; in hwm_tx_frag()
1694 smc->os.hwm.tx_data += len ; in hwm_tx_frag()
1703 * os-specific tx-buffer should be written in hwm_tx_frag()
1706 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data, in hwm_tx_frag()
1707 smc->os.hwm.tx_len) ; in hwm_tx_frag()
1710 smc->os.hwm.tx_data = in hwm_tx_frag()
1711 smtod(smc->os.hwm.tx_mb,char *) - 1 ; in hwm_tx_frag()
1712 *(char *)smc->os.hwm.tx_mb->sm_data = in hwm_tx_frag()
1713 *smc->os.hwm.tx_data ; in hwm_tx_frag()
1714 smc->os.hwm.tx_data++ ; in hwm_tx_frag()
1715 smc->os.hwm.tx_mb->sm_len = in hwm_tx_frag()
1716 smc->os.hwm.tx_len - 1 ; in hwm_tx_frag()
1718 smt_received_pack(smc,smc->os.hwm.tx_mb, in hwm_tx_frag()
1733 smc->os.hwm.queued_rx_frames++ ; in queue_llc_rx()
1735 if (smc->os.hwm.llc_rx_pipe == NULL) { in queue_llc_rx()
1736 smc->os.hwm.llc_rx_pipe = mb ; in queue_llc_rx()
1739 smc->os.hwm.llc_rx_tail->sm_next = mb ; in queue_llc_rx()
1741 smc->os.hwm.llc_rx_tail = mb ; in queue_llc_rx()
1746 if (!smc->os.hwm.isr_flag) { in queue_llc_rx()
1758 if ((mb = smc->os.hwm.llc_rx_pipe)) { in get_llc_rx()
1759 smc->os.hwm.queued_rx_frames-- ; in get_llc_rx()
1760 smc->os.hwm.llc_rx_pipe = mb->sm_next ; in get_llc_rx()
1773 smc->os.hwm.queued_txd_mb++ ; in queue_txd_mb()
1775 if (smc->os.hwm.txd_tx_pipe == NULL) { in queue_txd_mb()
1776 smc->os.hwm.txd_tx_pipe = mb ; in queue_txd_mb()
1779 smc->os.hwm.txd_tx_tail->sm_next = mb ; in queue_txd_mb()
1781 smc->os.hwm.txd_tx_tail = mb ; in queue_txd_mb()
1791 if ((mb = smc->os.hwm.txd_tx_pipe)) { in get_txd_mb()
1792 smc->os.hwm.queued_txd_mb-- ; in get_txd_mb()
1793 smc->os.hwm.txd_tx_pipe = mb->sm_next ; in get_txd_mb()
1854 if ((smc->os.hwm.pass_NSA &&(fc == FC_SMT_NSA)) || in smt_send_mbuf()
1855 (smc->os.hwm.pass_SMT &&(fc == FC_SMT_INFO))) in smt_send_mbuf()
2013 * This function is also called by the os-specific module