Lines Matching refs:hwm

263 	if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *)  in mac_drv_init()
273 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init()
276 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc, in mac_drv_init()
356 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + in init_txd_ring()
393 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ; in init_rxd_ring()
426 mb = smc->os.hwm.mbuf_pool.mb_start ; in init_fddi_driver()
427 smc->os.hwm.mbuf_pool.mb_free = (SMbuf *)NULL ; in init_fddi_driver()
449 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ; in init_fddi_driver()
450 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ; in init_fddi_driver()
451 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ; in init_fddi_driver()
452 smc->os.hwm.pass_llc_promisc = TRUE ; in init_fddi_driver()
453 smc->os.hwm.queued_rx_frames = smc->os.hwm.queued_txd_mb = 0 ; in init_fddi_driver()
454 smc->os.hwm.detec_count = 0 ; in init_fddi_driver()
455 smc->os.hwm.rx_break = 0 ; in init_fddi_driver()
456 smc->os.hwm.rx_len_error = 0 ; in init_fddi_driver()
457 smc->os.hwm.isr_flag = FALSE ; in init_fddi_driver()
462 i = 16 - ((long)smc->os.hwm.descr_p & 0xf) ; in init_fddi_driver()
465 smc->os.hwm.descr_p = (union s_fp_descr volatile *) in init_fddi_driver()
466 ((char *)smc->os.hwm.descr_p+i) ; in init_fddi_driver()
468 DB_GEN(3, "pt to descr area = %p", smc->os.hwm.descr_p); in init_fddi_driver()
483 mb = smc->os.hwm.mbuf_pool.mb_free ; in smt_get_mbuf()
489 smc->os.hwm.mbuf_pool.mb_free = mb->sm_next ; in smt_get_mbuf()
514 mb->sm_next = smc->os.hwm.mbuf_pool.mb_free ; in smt_free_mbuf()
515 smc->os.hwm.mbuf_pool.mb_free = mb ; in smt_free_mbuf()
712 if (smc->os.hwm.rx_break) { in fddi_isr()
715 smc->os.hwm.rx_break = 0 ; in fddi_isr()
719 smc->os.hwm.detec_count = 0 ; in fddi_isr()
724 smc->os.hwm.isr_flag = TRUE ; in fddi_isr()
728 if (smc->os.hwm.leave_isr) { in fddi_isr()
729 smc->os.hwm.leave_isr = FALSE ; in fddi_isr()
773 if (++smc->os.hwm.detec_count > 4) { in fddi_isr()
831 if (smc->os.hwm.leave_isr) { in fddi_isr()
852 if (!offDepth && smc->os.hwm.rx_break) { in fddi_isr()
867 if (smc->os.hwm.leave_isr) { in fddi_isr()
876 if (smc->os.hwm.leave_isr && force_irq) { in fddi_isr()
880 smc->os.hwm.isr_flag = FALSE ; in fddi_isr()
988 smc->os.hwm.pass_SMT = TRUE ; in mac_drv_rx_mode()
991 smc->os.hwm.pass_SMT = FALSE ; in mac_drv_rx_mode()
994 smc->os.hwm.pass_NSA = TRUE ; in mac_drv_rx_mode()
997 smc->os.hwm.pass_NSA = FALSE ; in mac_drv_rx_mode()
1000 smc->os.hwm.pass_DB = TRUE ; in mac_drv_rx_mode()
1003 smc->os.hwm.pass_DB = FALSE ; in mac_drv_rx_mode()
1006 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = FALSE ; in mac_drv_rx_mode()
1007 smc->os.hwm.pass_DB = FALSE ; in mac_drv_rx_mode()
1008 smc->os.hwm.pass_llc_promisc = TRUE ; in mac_drv_rx_mode()
1012 smc->os.hwm.pass_llc_promisc = FALSE ; in mac_drv_rx_mode()
1015 smc->os.hwm.pass_llc_promisc = TRUE ; in mac_drv_rx_mode()
1051 smc->os.hwm.detec_count = 0 ; in process_receive()
1060 if (smc->os.hwm.leave_isr) { in process_receive()
1066 smc->os.hwm.rx_break = 1 ; in process_receive()
1069 smc->os.hwm.rx_break = 0 ; in process_receive()
1072 if (smc->os.hwm.rx_break) { in process_receive()
1100 smc->os.hwm.detec_count = 0 ; in process_receive()
1210 smc->os.hwm.rx_len_error++ ; in process_receive()
1237 if (!smc->os.hwm.pass_llc_promisc) { in process_receive()
1291 if (smc->os.hwm.pass_SMT) { in process_receive()
1310 if (smc->os.hwm.pass_NSA || in process_receive()
1311 (smc->os.hwm.pass_SMT && in process_receive()
1325 if (smc->os.hwm.pass_DB) { in process_receive()
1377 smc->os.hwm.r.len = mb->sm_len ; in smt_to_llc()
1378 smc->os.hwm.r.mb_pos = smtod(mb,char *) ; in smt_to_llc()
1379 fc = *smc->os.hwm.r.mb_pos ; in smt_to_llc()
1381 smc->os.hwm.r.mb_pos,(int)mb->sm_len) ; in smt_to_llc()
1546 smc->os.hwm.tx_p = smc->hw.fp.tx[frame_status & QUEUE_A0] ; in hwm_tx_init()
1547 smc->os.hwm.tx_descr = TX_DESCRIPTOR | (((u_long)(frame_len-1)&3)<<27) ; in hwm_tx_init()
1548 smc->os.hwm.tx_len = frame_len ; in hwm_tx_init()
1574 if (frag_count > smc->os.hwm.tx_p->tx_free) { in hwm_tx_init()
1577 if (frag_count > smc->os.hwm.tx_p->tx_free) { in hwm_tx_init()
1589 NDD_TRACE("THiE",frame_status,smc->os.hwm.tx_p->tx_free,0) ; in hwm_tx_init()
1627 queue = smc->os.hwm.tx_p ; in hwm_tx_frag()
1642 t->txd_txdscr = cpu_to_le32(smc->os.hwm.tx_descr) ; in hwm_tx_frag()
1671 if(!(smc->os.hwm.tx_mb = smt_get_mbuf(smc))) { in hwm_tx_frag()
1676 smc->os.hwm.tx_data = in hwm_tx_frag()
1677 smtod(smc->os.hwm.tx_mb,char *) - 1 ; in hwm_tx_frag()
1680 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data, in hwm_tx_frag()
1681 smc->os.hwm.tx_len) ; in hwm_tx_frag()
1686 if (smc->os.hwm.tx_mb) { in hwm_tx_frag()
1689 memcpy(smc->os.hwm.tx_data,virt,len) ; in hwm_tx_frag()
1690 smc->os.hwm.tx_data += len ; in hwm_tx_frag()
1702 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data, in hwm_tx_frag()
1703 smc->os.hwm.tx_len) ; in hwm_tx_frag()
1706 smc->os.hwm.tx_data = in hwm_tx_frag()
1707 smtod(smc->os.hwm.tx_mb,char *) - 1 ; in hwm_tx_frag()
1708 *(char *)smc->os.hwm.tx_mb->sm_data = in hwm_tx_frag()
1709 *smc->os.hwm.tx_data ; in hwm_tx_frag()
1710 smc->os.hwm.tx_data++ ; in hwm_tx_frag()
1711 smc->os.hwm.tx_mb->sm_len = in hwm_tx_frag()
1712 smc->os.hwm.tx_len - 1 ; in hwm_tx_frag()
1714 smt_received_pack(smc,smc->os.hwm.tx_mb, in hwm_tx_frag()
1729 smc->os.hwm.queued_rx_frames++ ; in queue_llc_rx()
1731 if (smc->os.hwm.llc_rx_pipe == NULL) { in queue_llc_rx()
1732 smc->os.hwm.llc_rx_pipe = mb ; in queue_llc_rx()
1735 smc->os.hwm.llc_rx_tail->sm_next = mb ; in queue_llc_rx()
1737 smc->os.hwm.llc_rx_tail = mb ; in queue_llc_rx()
1742 if (!smc->os.hwm.isr_flag) { in queue_llc_rx()
1754 if ((mb = smc->os.hwm.llc_rx_pipe)) { in get_llc_rx()
1755 smc->os.hwm.queued_rx_frames-- ; in get_llc_rx()
1756 smc->os.hwm.llc_rx_pipe = mb->sm_next ; in get_llc_rx()
1769 smc->os.hwm.queued_txd_mb++ ; in queue_txd_mb()
1771 if (smc->os.hwm.txd_tx_pipe == NULL) { in queue_txd_mb()
1772 smc->os.hwm.txd_tx_pipe = mb ; in queue_txd_mb()
1775 smc->os.hwm.txd_tx_tail->sm_next = mb ; in queue_txd_mb()
1777 smc->os.hwm.txd_tx_tail = mb ; in queue_txd_mb()
1787 if ((mb = smc->os.hwm.txd_tx_pipe)) { in get_txd_mb()
1788 smc->os.hwm.queued_txd_mb-- ; in get_txd_mb()
1789 smc->os.hwm.txd_tx_pipe = mb->sm_next ; in get_txd_mb()
1850 if ((smc->os.hwm.pass_NSA &&(fc == FC_SMT_NSA)) || in smt_send_mbuf()
1851 (smc->os.hwm.pass_SMT &&(fc == FC_SMT_INFO))) in smt_send_mbuf()