Lines Matching refs:os
271 if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *) in mac_drv_init()
281 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init()
284 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc, in mac_drv_init()
364 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + in init_txd_ring()
401 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ; in init_rxd_ring()
434 mb = smc->os.hwm.mbuf_pool.mb_start ; in init_fddi_driver()
435 smc->os.hwm.mbuf_pool.mb_free = (SMbuf *)NULL ; in init_fddi_driver()
457 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ; in init_fddi_driver()
458 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ; in init_fddi_driver()
459 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ; in init_fddi_driver()
460 smc->os.hwm.pass_llc_promisc = TRUE ; in init_fddi_driver()
461 smc->os.hwm.queued_rx_frames = smc->os.hwm.queued_txd_mb = 0 ; in init_fddi_driver()
462 smc->os.hwm.detec_count = 0 ; in init_fddi_driver()
463 smc->os.hwm.rx_break = 0 ; in init_fddi_driver()
464 smc->os.hwm.rx_len_error = 0 ; in init_fddi_driver()
465 smc->os.hwm.isr_flag = FALSE ; in init_fddi_driver()
470 i = 16 - ((long)smc->os.hwm.descr_p & 0xf) ; in init_fddi_driver()
473 smc->os.hwm.descr_p = (union s_fp_descr volatile *) in init_fddi_driver()
474 ((char *)smc->os.hwm.descr_p+i) ; in init_fddi_driver()
476 DB_GEN("pt to descr area = %x",(void *)smc->os.hwm.descr_p,0,3) ; in init_fddi_driver()
491 mb = smc->os.hwm.mbuf_pool.mb_free ; in smt_get_mbuf()
497 smc->os.hwm.mbuf_pool.mb_free = mb->sm_next ; in smt_get_mbuf()
522 mb->sm_next = smc->os.hwm.mbuf_pool.mb_free ; in smt_free_mbuf()
523 smc->os.hwm.mbuf_pool.mb_free = mb ; in smt_free_mbuf()
720 if (smc->os.hwm.rx_break) { in fddi_isr()
723 smc->os.hwm.rx_break = 0 ; in fddi_isr()
727 smc->os.hwm.detec_count = 0 ; in fddi_isr()
732 smc->os.hwm.isr_flag = TRUE ; in fddi_isr()
736 if (smc->os.hwm.leave_isr) { in fddi_isr()
737 smc->os.hwm.leave_isr = FALSE ; in fddi_isr()
781 if (++smc->os.hwm.detec_count > 4) { in fddi_isr()
839 if (smc->os.hwm.leave_isr) { in fddi_isr()
860 if (!offDepth && smc->os.hwm.rx_break) { in fddi_isr()
875 if (smc->os.hwm.leave_isr) { in fddi_isr()
884 if (smc->os.hwm.leave_isr && force_irq) { in fddi_isr()
888 smc->os.hwm.isr_flag = FALSE ; in fddi_isr()
996 smc->os.hwm.pass_SMT = TRUE ; in mac_drv_rx_mode()
999 smc->os.hwm.pass_SMT = FALSE ; in mac_drv_rx_mode()
1002 smc->os.hwm.pass_NSA = TRUE ; in mac_drv_rx_mode()
1005 smc->os.hwm.pass_NSA = FALSE ; in mac_drv_rx_mode()
1008 smc->os.hwm.pass_DB = TRUE ; in mac_drv_rx_mode()
1011 smc->os.hwm.pass_DB = FALSE ; in mac_drv_rx_mode()
1014 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = FALSE ; in mac_drv_rx_mode()
1015 smc->os.hwm.pass_DB = FALSE ; in mac_drv_rx_mode()
1016 smc->os.hwm.pass_llc_promisc = TRUE ; in mac_drv_rx_mode()
1020 smc->os.hwm.pass_llc_promisc = FALSE ; in mac_drv_rx_mode()
1023 smc->os.hwm.pass_llc_promisc = TRUE ; in mac_drv_rx_mode()
1059 smc->os.hwm.detec_count = 0 ; in process_receive()
1068 if (smc->os.hwm.leave_isr) { in process_receive()
1074 smc->os.hwm.rx_break = 1 ; in process_receive()
1077 smc->os.hwm.rx_break = 0 ; in process_receive()
1080 if (smc->os.hwm.rx_break) { in process_receive()
1108 smc->os.hwm.detec_count = 0 ; in process_receive()
1218 smc->os.hwm.rx_len_error++ ; in process_receive()
1245 if (!smc->os.hwm.pass_llc_promisc) { in process_receive()
1299 if (smc->os.hwm.pass_SMT) { in process_receive()
1318 if (smc->os.hwm.pass_NSA || in process_receive()
1319 (smc->os.hwm.pass_SMT && in process_receive()
1333 if (smc->os.hwm.pass_DB) { in process_receive()
1385 smc->os.hwm.r.len = mb->sm_len ; in smt_to_llc()
1386 smc->os.hwm.r.mb_pos = smtod(mb,char *) ; in smt_to_llc()
1387 fc = *smc->os.hwm.r.mb_pos ; in smt_to_llc()
1389 smc->os.hwm.r.mb_pos,(int)mb->sm_len) ; in smt_to_llc()
1554 smc->os.hwm.tx_p = smc->hw.fp.tx[frame_status & QUEUE_A0] ; in hwm_tx_init()
1555 smc->os.hwm.tx_descr = TX_DESCRIPTOR | (((u_long)(frame_len-1)&3)<<27) ; in hwm_tx_init()
1556 smc->os.hwm.tx_len = frame_len ; in hwm_tx_init()
1582 if (frag_count > smc->os.hwm.tx_p->tx_free) { in hwm_tx_init()
1585 if (frag_count > smc->os.hwm.tx_p->tx_free) { in hwm_tx_init()
1597 NDD_TRACE("THiE",frame_status,smc->os.hwm.tx_p->tx_free,0) ; in hwm_tx_init()
1635 queue = smc->os.hwm.tx_p ; in hwm_tx_frag()
1650 t->txd_txdscr = cpu_to_le32(smc->os.hwm.tx_descr) ; in hwm_tx_frag()
1679 if(!(smc->os.hwm.tx_mb = smt_get_mbuf(smc))) { in hwm_tx_frag()
1684 smc->os.hwm.tx_data = in hwm_tx_frag()
1685 smtod(smc->os.hwm.tx_mb,char *) - 1 ; in hwm_tx_frag()
1688 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data, in hwm_tx_frag()
1689 smc->os.hwm.tx_len) ; in hwm_tx_frag()
1694 if (smc->os.hwm.tx_mb) { in hwm_tx_frag()
1697 memcpy(smc->os.hwm.tx_data,virt,len) ; in hwm_tx_frag()
1698 smc->os.hwm.tx_data += len ; in hwm_tx_frag()
1710 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data, in hwm_tx_frag()
1711 smc->os.hwm.tx_len) ; in hwm_tx_frag()
1714 smc->os.hwm.tx_data = in hwm_tx_frag()
1715 smtod(smc->os.hwm.tx_mb,char *) - 1 ; in hwm_tx_frag()
1716 *(char *)smc->os.hwm.tx_mb->sm_data = in hwm_tx_frag()
1717 *smc->os.hwm.tx_data ; in hwm_tx_frag()
1718 smc->os.hwm.tx_data++ ; in hwm_tx_frag()
1719 smc->os.hwm.tx_mb->sm_len = in hwm_tx_frag()
1720 smc->os.hwm.tx_len - 1 ; in hwm_tx_frag()
1722 smt_received_pack(smc,smc->os.hwm.tx_mb, in hwm_tx_frag()
1737 smc->os.hwm.queued_rx_frames++ ; in queue_llc_rx()
1739 if (smc->os.hwm.llc_rx_pipe == NULL) { in queue_llc_rx()
1740 smc->os.hwm.llc_rx_pipe = mb ; in queue_llc_rx()
1743 smc->os.hwm.llc_rx_tail->sm_next = mb ; in queue_llc_rx()
1745 smc->os.hwm.llc_rx_tail = mb ; in queue_llc_rx()
1750 if (!smc->os.hwm.isr_flag) { in queue_llc_rx()
1762 if ((mb = smc->os.hwm.llc_rx_pipe)) { in get_llc_rx()
1763 smc->os.hwm.queued_rx_frames-- ; in get_llc_rx()
1764 smc->os.hwm.llc_rx_pipe = mb->sm_next ; in get_llc_rx()
1777 smc->os.hwm.queued_txd_mb++ ; in queue_txd_mb()
1779 if (smc->os.hwm.txd_tx_pipe == NULL) { in queue_txd_mb()
1780 smc->os.hwm.txd_tx_pipe = mb ; in queue_txd_mb()
1783 smc->os.hwm.txd_tx_tail->sm_next = mb ; in queue_txd_mb()
1785 smc->os.hwm.txd_tx_tail = mb ; in queue_txd_mb()
1795 if ((mb = smc->os.hwm.txd_tx_pipe)) { in get_txd_mb()
1796 smc->os.hwm.queued_txd_mb-- ; in get_txd_mb()
1797 smc->os.hwm.txd_tx_pipe = mb->sm_next ; in get_txd_mb()
1858 if ((smc->os.hwm.pass_NSA &&(fc == FC_SMT_NSA)) || in smt_send_mbuf()
1859 (smc->os.hwm.pass_SMT &&(fc == FC_SMT_INFO))) in smt_send_mbuf()