Home
last modified time | relevance | path

Searched refs:mac_cb (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_mac.c55 static enum mac_mode hns_get_enet_interface(const struct hns_mac_cb *mac_cb) in hns_get_enet_interface() argument
57 switch (mac_cb->max_speed) { in hns_get_enet_interface()
59 return g_mac_mode_100[mac_cb->phy_if]; in hns_get_enet_interface()
61 return g_mac_mode_1000[mac_cb->phy_if]; in hns_get_enet_interface()
90 void hns_mac_get_link_status(struct hns_mac_cb *mac_cb, u32 *link_status) in hns_mac_get_link_status() argument
95 mac_ctrl_drv = hns_mac_get_drv(mac_cb); in hns_mac_get_link_status()
102 if (mac_cb->media_type == HNAE_MEDIA_TYPE_FIBER) { in hns_mac_get_link_status()
103 ret = mac_cb->dsaf_dev->misc_op->get_sfp_prsnt(mac_cb, in hns_mac_get_link_status()
113 if (*link_status && !mac_cb->link) in hns_mac_get_link_status()
117 mac_cb->link = *link_status; in hns_mac_get_link_status()
[all …]
H A Dhns_ae_adapt.c20 return vf_cb->mac_cb; in hns_get_mac_cb()
121 vf_cb->mac_cb = dsaf_dev->mac_cb[port_id]; in hns_ae_get_handle()
123 ae_handle->phy_if = vf_cb->mac_cb->phy_if; in hns_ae_get_handle()
124 ae_handle->phy_dev = vf_cb->mac_cb->phy_dev; in hns_ae_get_handle()
125 ae_handle->if_support = vf_cb->mac_cb->if_support; in hns_ae_get_handle()
126 ae_handle->port_type = vf_cb->mac_cb->mac_type; in hns_ae_get_handle()
127 ae_handle->media_type = vf_cb->mac_cb->media_type; in hns_ae_get_handle()
175 ret = hns_mac_wait_fifo_clean(vf_cb->mac_cb); in hns_ae_wait_flow_down()
204 if (vf_cb->mac_cb->mac_type == HNAE_PORT_SERVICE) in hns_ae_fini_queue()
211 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_set_mac_address() local
[all …]
/linux/net/mac802154/
H A Drx.c149 if (mac_cb(skb)->type != IEEE802154_FC_TYPE_BEACON) { in ieee802154_subif_frame()
152 mac_cb(skb)->type); in ieee802154_subif_frame()
157 switch (mac_cb(skb)->dest.mode) { in ieee802154_subif_frame()
170 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame()
171 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
173 else if (mac_cb(skb)->dest.extended_addr == wpan_dev->extended_addr) in ieee802154_subif_frame()
179 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame()
180 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
182 else if (mac_cb(skb)->dest.short_addr == sshort) in ieee802154_subif_frame()
184 else if (mac_cb(skb)->dest.short_addr == in ieee802154_subif_frame()
[all …]
H A Dscan.c314 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_beacon()
331 desc.link_quality = mac_cb(skb)->lqi; in mac802154_process_beacon()
612 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_association_resp()
613 struct ieee802154_addr *dest = &mac_cb(skb)->dest; in mac802154_process_association_resp()
761 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_association_req()
762 struct ieee802154_addr *dest = &mac_cb(skb)->dest; in mac802154_process_association_req()
867 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_disassociation_notif()
868 struct ieee802154_addr *dest = &mac_cb(skb)->dest; in mac802154_process_disassociation_notif()
H A Diface.c363 struct ieee802154_mac_cb *cb = mac_cb(skb); in ieee802154_header_create()
/linux/drivers/net/ieee802154/
H A Dmac802154_hwsim.c170 switch (mac_cb(skb)->type) { in hwsim_hw_receive()
178 mac_cb(skb)->type); in hwsim_hw_receive()
196 if ((mac_cb(skb)->dest.mode == IEEE802154_ADDR_LONG || in hwsim_hw_receive()
197 mac_cb(skb)->dest.mode == IEEE802154_ADDR_SHORT) && in hwsim_hw_receive()
198 mac_cb(skb)->dest.pan_id != pib->filt.pan_id && in hwsim_hw_receive()
199 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) { in hwsim_hw_receive()
202 le16_to_cpu(mac_cb(skb)->dest.pan_id)); in hwsim_hw_receive()
207 if (mac_cb(skb)->dest.mode == IEEE802154_ADDR_SHORT && in hwsim_hw_receive()
208 mac_cb(skb)->dest.short_addr != pib->filt.short_addr && in hwsim_hw_receive()
209 mac_cb(skb)->dest.short_addr != cpu_to_le16(IEEE802154_ADDR_BROADCAST)) { in hwsim_hw_receive()
[all …]
/linux/net/ieee802154/6lowpan/
H A Dtx.c116 *mac_cb(frag) = *mac_cb(skb); in lowpan_alloc_frag()
/linux/include/net/
H A Dieee802154_netdev.h397 static inline struct ieee802154_mac_cb *mac_cb(struct sk_buff *skb) in mac_cb() function
407 return mac_cb(skb); in mac_cb_init()