Home
last modified time | relevance | path

Searched refs:mac_cb (Results 1 – 10 of 10) 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 in hns_mac_get_link_status()
120 hns_mac_get_port_info(struct hns_mac_cb * mac_cb,u8 * auto_neg,u16 * speed,u8 * duplex) hns_mac_get_port_info() argument
149 hns_mac_need_adjust_link(struct hns_mac_cb * mac_cb,int speed,int duplex) hns_mac_need_adjust_link() argument
162 hns_mac_adjust_link(struct hns_mac_cb * mac_cb,int speed,int duplex) hns_mac_adjust_link() argument
192 hns_mac_get_inner_port_num(struct hns_mac_cb * mac_cb,u8 vmid,u8 * port_num) hns_mac_get_inner_port_num() argument
271 hns_mac_change_vf_addr(struct hns_mac_cb * mac_cb,u32 vmid,const char * addr) hns_mac_change_vf_addr() argument
314 hns_mac_add_uc_addr(struct hns_mac_cb * mac_cb,u8 vf_id,const unsigned char * addr) hns_mac_add_uc_addr() argument
334 hns_mac_rm_uc_addr(struct hns_mac_cb * mac_cb,u8 vf_id,const unsigned char * addr) hns_mac_rm_uc_addr() argument
354 hns_mac_set_multi(struct hns_mac_cb * mac_cb,u32 port_num,char * addr,bool enable) hns_mac_set_multi() argument
383 hns_mac_clr_multicast(struct hns_mac_cb * mac_cb,int vfn) hns_mac_clr_multicast() argument
396 hns_mac_param_get(struct mac_params * param,struct hns_mac_cb * mac_cb) hns_mac_param_get() argument
413 hns_mac_port_config_bc_en(struct hns_mac_cb * mac_cb,u32 port_num,u16 vlan_id,bool enable) hns_mac_port_config_bc_en() argument
447 hns_mac_vm_config_bc_en(struct hns_mac_cb * mac_cb,u32 vmid,bool enable) hns_mac_vm_config_bc_en() argument
479 hns_mac_wait_fifo_clean(struct hns_mac_cb * mac_cb) hns_mac_wait_fifo_clean() argument
489 hns_mac_reset(struct hns_mac_cb * mac_cb) hns_mac_reset() argument
513 hns_mac_set_mtu(struct hns_mac_cb * mac_cb,u32 new_mtu,u32 buf_size) hns_mac_set_mtu() argument
535 hns_mac_start(struct hns_mac_cb * mac_cb) hns_mac_start() argument
552 hns_mac_stop(struct hns_mac_cb * mac_cb) hns_mac_stop() argument
578 hns_mac_get_autoneg(struct hns_mac_cb * mac_cb,u32 * auto_neg) hns_mac_get_autoneg() argument
595 hns_mac_get_pauseparam(struct hns_mac_cb * mac_cb,u32 * rx_en,u32 * tx_en) hns_mac_get_pauseparam() argument
613 hns_mac_set_autoneg(struct hns_mac_cb * mac_cb,u8 enable) hns_mac_set_autoneg() argument
635 hns_mac_set_pauseparam(struct hns_mac_cb * mac_cb,u32 rx_en,u32 tx_en) hns_mac_set_pauseparam() argument
658 hns_mac_init_ex(struct hns_mac_cb * mac_cb) hns_mac_init_ex() argument
716 hns_mac_register_phydev(struct mii_bus * mdio,struct hns_mac_cb * mac_cb,u32 addr) hns_mac_register_phydev() argument
760 hns_mac_register_phy(struct hns_mac_cb * mac_cb) hns_mac_register_phy() argument
810 hns_mac_remove_phydev(struct hns_mac_cb * mac_cb) hns_mac_remove_phydev() argument
838 hns_mac_get_info(struct hns_mac_cb * mac_cb) hns_mac_get_info() argument
1002 hns_mac_get_vaddr(struct dsaf_device * dsaf_dev,struct hns_mac_cb * mac_cb,u32 mac_mode_idx) hns_mac_get_vaddr() argument
1021 hns_mac_get_cfg(struct dsaf_device * dsaf_dev,struct hns_mac_cb * mac_cb) hns_mac_get_cfg() argument
1070 hns_mac_enable(struct hns_mac_cb * mac_cb,enum mac_commom_mode mode) hns_mac_enable() argument
1077 hns_mac_disable(struct hns_mac_cb * mac_cb,enum mac_commom_mode mode) hns_mac_disable() argument
1095 struct hns_mac_cb *mac_cb; hns_mac_init() local
1168 hns_mac_config_mac_loopback(struct hns_mac_cb * mac_cb,enum hnae_loop loop,int en) hns_mac_config_mac_loopback() argument
1182 hns_mac_update_stats(struct hns_mac_cb * mac_cb) hns_mac_update_stats() argument
1189 hns_mac_get_stats(struct hns_mac_cb * mac_cb,u64 * data) hns_mac_get_stats() argument
1196 hns_mac_get_strings(struct hns_mac_cb * mac_cb,int stringset,u8 ** data) hns_mac_get_strings() argument
1203 hns_mac_get_sset_count(struct hns_mac_cb * mac_cb,int stringset) hns_mac_get_sset_count() argument
1210 hns_mac_set_promisc(struct hns_mac_cb * mac_cb,u8 en) hns_mac_set_promisc() argument
1220 hns_mac_get_regs_count(struct hns_mac_cb * mac_cb) hns_mac_get_regs_count() argument
1227 hns_mac_get_regs(struct hns_mac_cb * mac_cb,void * data) hns_mac_get_regs() argument
1234 hns_set_led_opt(struct hns_mac_cb * mac_cb) hns_set_led_opt() argument
1251 hns_cpld_led_set_id(struct hns_mac_cb * mac_cb,enum hnae_led_state status) hns_cpld_led_set_id() argument
[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.c219 if (mac_cb(skb)->type != IEEE802154_FC_TYPE_BEACON) { in ieee802154_subif_frame()
222 mac_cb(skb)->type); in ieee802154_subif_frame()
227 switch (mac_cb(skb)->dest.mode) { in ieee802154_subif_frame()
240 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame()
241 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
243 else if (mac_cb(skb)->dest.extended_addr == wpan_dev->extended_addr) in ieee802154_subif_frame()
249 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame()
250 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
252 else if (mac_cb(skb)->dest.short_addr == sshort) in ieee802154_subif_frame()
254 else if (mac_cb(sk in ieee802154_subif_frame()
[all...]
H A Dscan.c321 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_beacon()
338 desc.link_quality = mac_cb(skb)->lqi; in mac802154_process_beacon()
645 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_association_resp()
646 struct ieee802154_addr *dest = &mac_cb(skb)->dest; in mac802154_process_association_resp()
803 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_association_req()
804 struct ieee802154_addr *dest = &mac_cb(skb)->dest; in mac802154_process_association_req()
911 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_disassociation_notif()
912 struct ieee802154_addr *dest = &mac_cb(skb)->dest; in mac802154_process_disassociation_notif()
H A Dieee802154_i.h182 if (mac_cb(skb)->type != IEEE802154_FC_TYPE_MAC_CMD) in ieee802154_get_mac_cmd()
H A Diface.c367 struct ieee802154_mac_cb *cb = mac_cb(skb); in ieee802154_header_create()
/linux/drivers/net/ieee802154/
H A Dmac802154_hwsim.c173 switch (mac_cb(skb)->type) { in hwsim_hw_receive()
181 mac_cb(skb)->type); in hwsim_hw_receive()
199 if ((mac_cb(skb)->dest.mode == IEEE802154_ADDR_LONG || in hwsim_hw_receive()
200 mac_cb(skb)->dest.mode == IEEE802154_ADDR_SHORT) && in hwsim_hw_receive()
201 mac_cb(skb)->dest.pan_id != pib->filt.pan_id && in hwsim_hw_receive()
202 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) { in hwsim_hw_receive()
205 le16_to_cpu(mac_cb(skb)->dest.pan_id)); in hwsim_hw_receive()
210 if (mac_cb(skb)->dest.mode == IEEE802154_ADDR_SHORT && in hwsim_hw_receive()
211 mac_cb(skb)->dest.short_addr != pib->filt.short_addr && in hwsim_hw_receive()
212 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()
/linux/net/ieee802154/
H A Dsocket.c744 ieee802154_addr_to_sa(&saddr->addr, &mac_cb(skb)->source); in dgram_recvmsg()
750 sizeof(uint8_t), &(mac_cb(skb)->lqi)); in dgram_recvmsg()