• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/net/skfp/

Lines Matching refs:hwm

280 	if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *)
283 return(1) ; /* no space the hwm modul can't work */
290 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ;
293 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc,
295 return(1) ; /* no space the hwm modul can't work */
301 return(1) ; /* no space the hwm modul can't work */
373 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p +
410 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ;
443 mb = smc->os.hwm.mbuf_pool.mb_start ;
444 smc->os.hwm.mbuf_pool.mb_free = (SMbuf *)NULL ;
466 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ;
467 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ;
468 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ;
469 smc->os.hwm.pass_llc_promisc = TRUE ;
470 smc->os.hwm.queued_rx_frames = smc->os.hwm.queued_txd_mb = 0 ;
471 smc->os.hwm.detec_count = 0 ;
472 smc->os.hwm.rx_break = 0 ;
473 smc->os.hwm.rx_len_error = 0 ;
474 smc->os.hwm.isr_flag = FALSE ;
479 i = 16 - ((long)smc->os.hwm.descr_p & 0xf) ;
482 smc->os.hwm.descr_p = (union s_fp_descr volatile *)
483 ((char *)smc->os.hwm.descr_p+i) ;
485 DB_GEN("pt to descr area = %x",(void *)smc->os.hwm.descr_p,0,3) ;
500 mb = smc->os.hwm.mbuf_pool.mb_free ;
506 smc->os.hwm.mbuf_pool.mb_free = mb->sm_next ;
531 mb->sm_next = smc->os.hwm.mbuf_pool.mb_free ;
532 smc->os.hwm.mbuf_pool.mb_free = mb ;
712 * We have to force and Timer IRQ if 'smc->os.hwm.leave_isr' AND
729 if (smc->os.hwm.rx_break) {
732 smc->os.hwm.rx_break = 0 ;
736 smc->os.hwm.detec_count = 0 ;
741 smc->os.hwm.isr_flag = TRUE ;
745 if (smc->os.hwm.leave_isr) {
746 smc->os.hwm.leave_isr = FALSE ;
790 if (++smc->os.hwm.detec_count > 4) {
848 if (smc->os.hwm.leave_isr) {
869 if (!offDepth && smc->os.hwm.rx_break) {
884 if (smc->os.hwm.leave_isr) {
893 if (smc->os.hwm.leave_isr && force_irq) {
897 smc->os.hwm.isr_flag = FALSE ;
1005 smc->os.hwm.pass_SMT = TRUE ;
1008 smc->os.hwm.pass_SMT = FALSE ;
1011 smc->os.hwm.pass_NSA = TRUE ;
1014 smc->os.hwm.pass_NSA = FALSE ;
1017 smc->os.hwm.pass_DB = TRUE ;
1020 smc->os.hwm.pass_DB = FALSE ;
1023 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = FALSE ;
1024 smc->os.hwm.pass_DB = FALSE ;
1025 smc->os.hwm.pass_llc_promisc = TRUE ;
1029 smc->os.hwm.pass_llc_promisc = FALSE ;
1032 smc->os.hwm.pass_llc_promisc = TRUE ;
1068 smc->os.hwm.detec_count = 0 ;
1077 if (smc->os.hwm.leave_isr) {
1083 smc->os.hwm.rx_break = 1 ;
1086 smc->os.hwm.rx_break = 0 ;
1089 if (smc->os.hwm.rx_break) {
1118 smc->os.hwm.detec_count = 0 ;
1228 smc->os.hwm.rx_len_error++ ;
1255 if (!smc->os.hwm.pass_llc_promisc) {
1309 if (smc->os.hwm.pass_SMT) {
1328 if (smc->os.hwm.pass_NSA ||
1329 (smc->os.hwm.pass_SMT &&
1343 if (smc->os.hwm.pass_DB) {
1395 smc->os.hwm.r.len = mb->sm_len ;
1396 smc->os.hwm.r.mb_pos = smtod(mb,char *) ;
1397 fc = *smc->os.hwm.r.mb_pos ;
1399 smc->os.hwm.r.mb_pos,(int)mb->sm_len) ;
1564 smc->os.hwm.tx_p = smc->hw.fp.tx[frame_status & QUEUE_A0] ;
1565 smc->os.hwm.tx_descr = TX_DESCRIPTOR | (((u_long)(frame_len-1)&3)<<27) ;
1566 smc->os.hwm.tx_len = frame_len ;
1592 if (frag_count > smc->os.hwm.tx_p->tx_free) {
1595 if (frag_count > smc->os.hwm.tx_p->tx_free) {
1607 NDD_TRACE("THiE",frame_status,smc->os.hwm.tx_p->tx_free,0) ;
1645 queue = smc->os.hwm.tx_p ;
1660 t->txd_txdscr = AIX_REVERSE(smc->os.hwm.tx_descr) ;
1689 if(!(smc->os.hwm.tx_mb = smt_get_mbuf(smc))) {
1694 smc->os.hwm.tx_data =
1695 smtod(smc->os.hwm.tx_mb,char *) - 1 ;
1698 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data,
1699 smc->os.hwm.tx_len) ;
1704 if (smc->os.hwm.tx_mb) {
1707 memcpy(smc->os.hwm.tx_data,virt,len) ;
1708 smc->os.hwm.tx_data += len ;
1720 hwm_cpy_txd2mb(t,smc->os.hwm.tx_data,
1721 smc->os.hwm.tx_len) ;
1724 smc->os.hwm.tx_data =
1725 smtod(smc->os.hwm.tx_mb,char *) - 1 ;
1726 *(char *)smc->os.hwm.tx_mb->sm_data =
1727 *smc->os.hwm.tx_data ;
1728 smc->os.hwm.tx_data++ ;
1729 smc->os.hwm.tx_mb->sm_len =
1730 smc->os.hwm.tx_len - 1 ;
1732 smt_received_pack(smc,smc->os.hwm.tx_mb,
1747 smc->os.hwm.queued_rx_frames++ ;
1749 if (smc->os.hwm.llc_rx_pipe == 0) {
1750 smc->os.hwm.llc_rx_pipe = mb ;
1753 smc->os.hwm.llc_rx_tail->sm_next = mb ;
1755 smc->os.hwm.llc_rx_tail = mb ;
1760 if (!smc->os.hwm.isr_flag) {
1772 if ((mb = smc->os.hwm.llc_rx_pipe)) {
1773 smc->os.hwm.queued_rx_frames-- ;
1774 smc->os.hwm.llc_rx_pipe = mb->sm_next ;
1787 smc->os.hwm.queued_txd_mb++ ;
1789 if (smc->os.hwm.txd_tx_pipe == 0) {
1790 smc->os.hwm.txd_tx_pipe = mb ;
1793 smc->os.hwm.txd_tx_tail->sm_next = mb ;
1795 smc->os.hwm.txd_tx_tail = mb ;
1805 if ((mb = smc->os.hwm.txd_tx_pipe)) {
1806 smc->os.hwm.queued_txd_mb-- ;
1807 smc->os.hwm.txd_tx_pipe = mb->sm_next ;
1868 if ((smc->os.hwm.pass_NSA &&(fc == FC_SMT_NSA)) ||
1869 (smc->os.hwm.pass_SMT &&(fc == FC_SMT_INFO)))