Lines Matching refs:rmf
181 MAC_HEADER *rmf, MAC_HEADER *tmf, __u16 ac_fc);
215 static int smctr_process_rx_packet(MAC_HEADER *rmf, __u16 size,
220 static int smctr_rcv_chg_param(struct net_device *dev, MAC_HEADER *rmf,
222 static int smctr_rcv_init(struct net_device *dev, MAC_HEADER *rmf,
224 static int smctr_rcv_tx_forward(struct net_device *dev, MAC_HEADER *rmf);
226 MAC_HEADER *rmf, __u16 *correlator);
227 static int smctr_rcv_unknown(struct net_device *dev, MAC_HEADER *rmf,
239 static int smctr_send_rpt_addr(struct net_device *dev, MAC_HEADER *rmf,
241 static int smctr_send_rpt_attch(struct net_device *dev, MAC_HEADER *rmf,
243 static int smctr_send_rpt_state(struct net_device *dev, MAC_HEADER *rmf,
246 MAC_HEADER *rmf, __u16 tx_fstatus);
247 static int smctr_send_rsp(struct net_device *dev, MAC_HEADER *rmf,
250 static int smctr_send_tx_forward(struct net_device *dev, MAC_HEADER *rmf,
3172 MAC_HEADER *rmf, MAC_HEADER *tmf, __u16 ac_fc) in smctr_make_8025_hdr() argument
3208 tmf->da[0] = rmf->sa[0]; in smctr_make_8025_hdr()
3209 tmf->da[1] = rmf->sa[1]; in smctr_make_8025_hdr()
3210 tmf->da[2] = rmf->sa[2]; in smctr_make_8025_hdr()
3211 tmf->da[3] = rmf->sa[3]; in smctr_make_8025_hdr()
3212 tmf->da[4] = rmf->sa[4]; in smctr_make_8025_hdr()
3213 tmf->da[5] = rmf->sa[5]; in smctr_make_8025_hdr()
3686 static int smctr_process_rx_packet(MAC_HEADER *rmf, __u16 size, in smctr_process_rx_packet() argument
3695 rmf->vl = SWAP_BYTES(rmf->vl); in smctr_process_rx_packet()
3698 switch(rmf->vc) in smctr_process_rx_packet()
3702 … if((rcode = smctr_rcv_init(dev, rmf, &correlator)) == HARDWARE_FAILED) in smctr_process_rx_packet()
3707 if((err = smctr_send_rsp(dev, rmf, rcode, in smctr_process_rx_packet()
3715 if((rcode = smctr_rcv_chg_param(dev, rmf, in smctr_process_rx_packet()
3721 if((err = smctr_send_rsp(dev, rmf, rcode, in smctr_process_rx_packet()
3730 rmf, &correlator)) != POSITIVE_ACK) in smctr_process_rx_packet()
3735 return smctr_send_rsp(dev, rmf, in smctr_process_rx_packet()
3739 if((err = smctr_send_rpt_addr(dev, rmf, in smctr_process_rx_packet()
3748 rmf, &correlator)) != POSITIVE_ACK) in smctr_process_rx_packet()
3753 return smctr_send_rsp(dev, rmf, in smctr_process_rx_packet()
3758 if((err = smctr_send_rpt_attch(dev, rmf, in smctr_process_rx_packet()
3767 rmf, &correlator)) != POSITIVE_ACK) in smctr_process_rx_packet()
3772 return smctr_send_rsp(dev, rmf, in smctr_process_rx_packet()
3777 if((err = smctr_send_rpt_state(dev, rmf, in smctr_process_rx_packet()
3787 if((rcode = smctr_rcv_tx_forward(dev, rmf)) in smctr_process_rx_packet()
3793 return smctr_send_rsp(dev, rmf, in smctr_process_rx_packet()
3798 if((err = smctr_send_tx_forward(dev, rmf, in smctr_process_rx_packet()
3807 rmf, tx_fstatus)) in smctr_process_rx_packet()
3834 rcode = smctr_rcv_unknown(dev, rmf, in smctr_process_rx_packet()
3836 if((err = smctr_send_rsp(dev, rmf,rcode, in smctr_process_rx_packet()
3851 switch(rmf->vc) in smctr_process_rx_packet()
3884 rmf->vl = SWAP_BYTES(rmf->vl); in smctr_process_rx_packet()
3892 skb_copy_to_linear_data(skb, rmf, skb->len); in smctr_process_rx_packet()
3981 static int smctr_rcv_chg_param(struct net_device *dev, MAC_HEADER *rmf, in smctr_rcv_chg_param() argument
3990 if((rmf->dc_sc & SC_MASK) != SC_CRS) in smctr_rcv_chg_param()
3994 vlen = (signed short)rmf->vl - 4; in smctr_rcv_chg_param()
3997 rsv = (MAC_SUB_VECTOR *)((__u32)rmf + sizeof(MAC_HEADER)); in smctr_rcv_chg_param()
4066 static int smctr_rcv_init(struct net_device *dev, MAC_HEADER *rmf, in smctr_rcv_init() argument
4075 if((rmf->dc_sc & SC_MASK) != SC_RPS) in smctr_rcv_init()
4079 vlen = (signed short)rmf->vl - 4; in smctr_rcv_init()
4082 rsv = (MAC_SUB_VECTOR *)((__u32)rmf + sizeof(MAC_HEADER)); in smctr_rcv_init()
4141 static int smctr_rcv_tx_forward(struct net_device *dev, MAC_HEADER *rmf) in smctr_rcv_tx_forward() argument
4149 if((rmf->dc_sc & SC_MASK) != SC_CRS) in smctr_rcv_tx_forward()
4153 vlen = (signed short)rmf->vl - 4; in smctr_rcv_tx_forward()
4156 rsv = (MAC_SUB_VECTOR *)((__u32)rmf + sizeof(MAC_HEADER)); in smctr_rcv_tx_forward()
4166 rmf->dc_sc); in smctr_rcv_tx_forward()
4202 MAC_HEADER *rmf, __u16 *correlator) in smctr_rcv_rq_addr_state_attch() argument
4210 vlen = (signed short)rmf->vl - 4; in smctr_rcv_rq_addr_state_attch()
4213 rsv = (MAC_SUB_VECTOR *)((__u32)rmf + sizeof(MAC_HEADER)); in smctr_rcv_rq_addr_state_attch()
4258 static int smctr_rcv_unknown(struct net_device *dev, MAC_HEADER *rmf, in smctr_rcv_unknown() argument
4267 vlen = (signed short)rmf->vl - 4; in smctr_rcv_unknown()
4270 rsv = (MAC_SUB_VECTOR *)((__u32)rmf + sizeof(MAC_HEADER)); in smctr_rcv_unknown()
4672 static int smctr_send_rpt_addr(struct net_device *dev, MAC_HEADER *rmf, in smctr_send_rpt_addr() argument
4689 tmf->dc_sc = (rmf->dc_sc & SC_MASK) << 4; in smctr_send_rpt_addr()
4692 smctr_make_8025_hdr(dev, rmf, tmf, AC_FC_RPT_ADDR); in smctr_send_rpt_addr()
4730 static int smctr_send_rpt_attch(struct net_device *dev, MAC_HEADER *rmf, in smctr_send_rpt_attch() argument
4747 tmf->dc_sc = (rmf->dc_sc & SC_MASK) << 4; in smctr_send_rpt_attch()
4750 smctr_make_8025_hdr(dev, rmf, tmf, AC_FC_RPT_ATTCH); in smctr_send_rpt_attch()
4784 static int smctr_send_rpt_state(struct net_device *dev, MAC_HEADER *rmf, in smctr_send_rpt_state() argument
4801 tmf->dc_sc = (rmf->dc_sc & SC_MASK) << 4; in smctr_send_rpt_state()
4804 smctr_make_8025_hdr(dev, rmf, tmf, AC_FC_RPT_STATE); in smctr_send_rpt_state()
4835 MAC_HEADER *rmf, __u16 tx_fstatus) in smctr_send_rpt_tx_forward() argument
4849 tmf->dc_sc = (rmf->dc_sc & SC_MASK) << 4; in smctr_send_rpt_tx_forward()
4852 smctr_make_8025_hdr(dev, rmf, tmf, AC_FC_RPT_TX_FORWARD); in smctr_send_rpt_tx_forward()
4870 static int smctr_send_rsp(struct net_device *dev, MAC_HEADER *rmf, in smctr_send_rsp() argument
4885 tmf->dc_sc = (rmf->dc_sc & SC_MASK) << 4; in smctr_send_rsp()
4888 smctr_make_8025_hdr(dev, rmf, tmf, AC_FC_RSP); in smctr_send_rsp()
4979 static int smctr_send_tx_forward(struct net_device *dev, MAC_HEADER *rmf, in smctr_send_tx_forward() argument
4988 if(rmf->vl <= 18) in smctr_send_tx_forward()
5002 fcb->bdb_ptr->trc_data_block_ptr = TRC_POINTER((__u32)rmf in smctr_send_tx_forward()
5004 fcb->bdb_ptr->data_block_ptr = (__u16 *)((__u32)rmf in smctr_send_tx_forward()
5007 fcb->frame_length = rmf->vl - 4 - 2; in smctr_send_tx_forward()
5008 fcb->bdb_ptr->buffer_length = rmf->vl - 4 - 2; in smctr_send_tx_forward()