Lines Matching refs:hwm
254 if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *)
264 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ;
267 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc,
350 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p +
388 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ;
423 mb = smc->os.hwm.mbuf_pool.mb_start ;
424 smc->os.hwm.mbuf_pool.mb_free = (SMbuf *)NULL ;
446 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ;
447 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ;
448 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ;
449 smc->os.hwm.pass_llc_promisc = TRUE ;
450 smc->os.hwm.queued_rx_frames = smc->os.hwm.queued_txd_mb = 0 ;
451 smc->os.hwm.detec_count = 0 ;
452 smc->os.hwm.rx_break = 0 ;
453 smc->os.hwm.rx_len_error = 0 ;
454 smc->os.hwm.isr_flag = FALSE ;
459 i = 16 - ((long)smc->os.hwm.descr_p & 0xf) ;
462 smc->os.hwm.descr_p = (union s_fp_descr volatile *)
463 ((char *)smc->os.hwm.descr_p+i) ;
465 DB_GEN("pt to descr area = %x",(void *)smc->os.hwm.descr_p,0,3) ;
481 mb = smc->os.hwm.mbuf_pool.mb_free ;
487 smc->os.hwm.mbuf_pool.mb_free = mb->sm_next ;
514 mb->sm_next = smc->os.hwm.mbuf_pool.mb_free ;
515 smc->os.hwm.mbuf_pool.mb_free = mb ;
718 if (smc->os.hwm.rx_break) {
721 smc->os.hwm.rx_break = 0 ;
725 smc->os.hwm.detec_count = 0 ;
730 smc->os.hwm.isr_flag = TRUE ;
734 if (smc->os.hwm.leave_isr) {
735 smc->os.hwm.leave_isr = FALSE ;
779 if (++smc->os.hwm.detec_count > 4) {
837 if (smc->os.hwm.leave_isr) {
858 if (!offDepth && smc->os.hwm.rx_break) {
873 if (smc->os.hwm.leave_isr) {
882 if (smc->os.hwm.leave_isr && force_irq) {
886 smc->os.hwm.isr_flag = FALSE ;
996 smc->os.hwm.pass_SMT = TRUE ;
999 smc->os.hwm.pass_SMT = FALSE ;
1002 smc->os.hwm.pass_NSA = TRUE ;
1005 smc->os.hwm.pass_NSA = FALSE ;
1008 smc->os.hwm.pass_DB = TRUE ;
1011 smc->os.hwm.pass_DB = FALSE ;
1014 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = FALSE ;
1015 smc->os.hwm.pass_DB = FALSE ;
1016 smc->os.hwm.pass_llc_promisc = TRUE ;
1020 smc->os.hwm.pass_llc_promisc = FALSE ;
1023 smc->os.hwm.pass_llc_promisc = TRUE ;
1060 smc->os.hwm.detec_count = 0 ;
1069 if (smc->os.hwm.leave_isr) {
1075 smc->os.hwm.rx_break = 1 ;
1078 smc->os.hwm.rx_break = 0 ;
1081 if (smc->os.hwm.rx_break) {
1110 smc->os.hwm.detec_count = 0 ;
1220 smc->os.hwm.rx_len_error++ ;
1247 if (!smc->os.hwm.pass_llc_promisc) {
1301 if (smc->os.hwm.pass_SMT) {
1320 if (smc->os.hwm.pass_NSA ||
1321 (smc->os.hwm.pass_SMT &&
1335 if (smc->os.hwm.pass_DB) {
1389 smc->os.hwm.r.len = mb->sm_len ;
1390 smc->os.hwm.r.mb_pos = smtod(mb,char *) ;
1391 fc = *smc->os.hwm.r.mb_pos ;
1393 smc->os.hwm.r.mb_pos,(int)mb->sm_len) ;
1468 NDD_TRACE("RHSB",virt,len,smc->os.hwm.r.mb_pos) ;
1471 memcpy((char far *)virt,smc->os.hwm.r.mb_pos,len) ;
1472 smc->os.hwm.r.mb_pos += len ;
1474 NDD_TRACE("RHSE",smc->os.hwm.r.mb_pos,0,0) ;
1599 smc->os.hwm.tx_p = smc->hw.fp.tx[frame_status & QUEUE_A0] ;
1600 smc->os.hwm.tx_descr = TX_DESCRIPTOR | (((u_long)(frame_len-1)&3)<<27) ;
1601 smc->os.hwm.tx_len = frame_len ;
1627 if (frag_count > smc->os.hwm.tx_p->tx_free) {
1630 if (frag_count > smc->os.hwm.tx_p->tx_free) {
1642 NDD_TRACE("THiE",frame_status,smc->os.hwm.tx_p->tx_free,0) ;
1684 queue = smc->os.hwm.tx_p ;
1699 t->txd_txdscr = AIX_REVERSE(smc->os.hwm.tx_descr) ;
1728 if(!(smc->os.hwm.tx_mb = smt_get_mbuf(smc))) {
1733 smc->os.hwm.tx_data =
1734 smtod(smc->os.hwm.tx_mb,char *) - 1 ;
1737 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data,
1738 smc->os.hwm.tx_len) ;
1743 if (smc->os.hwm.tx_mb) {
1746 memcpy(smc->os.hwm.tx_data,virt,len) ;
1747 smc->os.hwm.tx_data += len ;
1759 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data,
1760 smc->os.hwm.tx_len) ;
1763 smc->os.hwm.tx_data =
1764 smtod(smc->os.hwm.tx_mb,char *) - 1 ;
1765 *(char *)smc->os.hwm.tx_mb->sm_data =
1766 *smc->os.hwm.tx_data ;
1767 smc->os.hwm.tx_data++ ;
1768 smc->os.hwm.tx_mb->sm_len =
1769 smc->os.hwm.tx_len - 1 ;
1771 smt_received_pack(smc,smc->os.hwm.tx_mb,
1788 smc->os.hwm.queued_rx_frames++ ;
1790 if (smc->os.hwm.llc_rx_pipe == 0) {
1791 smc->os.hwm.llc_rx_pipe = mb ;
1794 smc->os.hwm.llc_rx_tail->sm_next = mb ;
1796 smc->os.hwm.llc_rx_tail = mb ;
1801 if (!smc->os.hwm.isr_flag) {
1814 if ((mb = smc->os.hwm.llc_rx_pipe)) {
1815 smc->os.hwm.queued_rx_frames-- ;
1816 smc->os.hwm.llc_rx_pipe = mb->sm_next ;
1831 smc->os.hwm.queued_txd_mb++ ;
1833 if (smc->os.hwm.txd_tx_pipe == 0) {
1834 smc->os.hwm.txd_tx_pipe = mb ;
1837 smc->os.hwm.txd_tx_tail->sm_next = mb ;
1839 smc->os.hwm.txd_tx_tail = mb ;
1850 if ((mb = smc->os.hwm.txd_tx_pipe)) {
1851 smc->os.hwm.queued_txd_mb-- ;
1852 smc->os.hwm.txd_tx_pipe = mb->sm_next ;
1916 if ((smc->os.hwm.pass_NSA &&(fc == FC_SMT_NSA)) ||
1917 (smc->os.hwm.pass_SMT &&(fc == FC_SMT_INFO)))