Lines Matching refs:os

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