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_dsaf_misc.c58 static void hns_dsaf_acpi_ledctrl_by_port(struct hns_mac_cb *mac_cb, u8 op_type, in hns_dsaf_acpi_ledctrl_by_port() argument
75 obj = acpi_evaluate_dsm(ACPI_HANDLE(mac_cb->dev), in hns_dsaf_acpi_ledctrl_by_port()
78 dev_warn(mac_cb->dev, "ledctrl fail, link:%d port:%d act:%d!\n", in hns_dsaf_acpi_ledctrl_by_port()
86 static void hns_dsaf_acpi_locate_ledctrl_by_port(struct hns_mac_cb *mac_cb, in hns_dsaf_acpi_locate_ledctrl_by_port() argument
102 obj = acpi_evaluate_dsm(ACPI_HANDLE(mac_cb->dev), in hns_dsaf_acpi_locate_ledctrl_by_port()
105 dev_err(mac_cb->dev, "ledctrl fail, locate:%d port:%d!\n", in hns_dsaf_acpi_locate_ledctrl_by_port()
113 static void hns_cpld_set_led(struct hns_mac_cb *mac_cb, int link_status, in hns_cpld_set_led() argument
119 if (!mac_cb) { in hns_cpld_set_led()
123 if (!mac_cb->cpld_ctrl) { in hns_cpld_set_led()
124 dev_err(mac_cb->dev, "mac_id=%d, cpld syscon is null !\n", in hns_cpld_set_led()
[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 Dieee802154_i.h173 if (mac_cb(skb)->type != IEEE802154_FC_TYPE_MAC_CMD) in ieee802154_get_mac_cmd()
H A Diface.c363 struct ieee802154_mac_cb *cb = mac_cb(skb); in ieee802154_header_create()
/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()