/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns/ |
A D | hns_dsaf_mac.c | 82 ret = mac_cb->dsaf_dev->misc_op->get_sfp_prsnt(mac_cb, in hns_mac_get_link_status() 187 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num() 226 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num() 651 hns_mac_adjust_link(mac_cb, mac_cb->speed, !mac_cb->half_duplex); in hns_mac_init_ex() 818 mac_cb->speed = mac_phy_to_speed[mac_cb->phy_if]; in hns_mac_get_info() 819 mac_cb->max_speed = mac_cb->speed; in hns_mac_get_info() 831 mac_cb->port_rst_off = mac_cb->mac_id; in hns_mac_get_info() 1087 dsaf_dev->mac_cb[port_id] = mac_cb; in hns_mac_init() 1102 dsaf_dev->mac_cb[port_id] = mac_cb; in hns_mac_init() 1108 mac_cb = dsaf_dev->mac_cb[port_id]; in hns_mac_init() [all …]
|
A D | hns_dsaf_misc.c | 119 if (!mac_cb) { in hns_cpld_set_led() 125 mac_cb->mac_id); in hns_cpld_set_led() 156 if (!mac_cb) { in hns_cpld_set_led_acpi() 167 if (!mac_cb || !mac_cb->cpld_ctrl) in cpld_led_reset() 170 dsaf_write_syscon(mac_cb->cpld_ctrl, mac_cb->cpld_ctrl_reg, in cpld_led_reset() 177 if (!mac_cb) { in cpld_led_reset_acpi() 200 ret = dsaf_read_syscon(mac_cb->cpld_ctrl, mac_cb->cpld_ctrl_reg, in cpld_set_led_id() 206 dsaf_write_syscon(mac_cb->cpld_ctrl, mac_cb->cpld_ctrl_reg, in cpld_set_led_id() 213 dsaf_write_syscon(mac_cb->cpld_ctrl, mac_cb->cpld_ctrl_reg, in cpld_set_led_id() 567 dev_dbg(mac_cb->dev, "mac_id=%d, phy_if=%d\n", mac_cb->mac_id, phy_if); in hns_mac_get_phy_if_acpi() [all …]
|
A D | hns_ae_adapt.c | 20 return vf_cb->mac_cb; in hns_get_mac_cb() 122 vf_cb->mac_cb = dsaf_dev->mac_cb[port_id]; in hns_ae_get_handle() 258 assert(mac_cb); in hns_ae_set_multicast_one() 263 ret = hns_mac_set_multi(mac_cb, mac_cb->mac_id, mac_addr, true); in hns_ae_set_multicast_one() 353 hns_mac_start(mac_cb); in hns_ae_start() 367 hns_mac_stop(mac_cb); in hns_ae_stop() 624 struct hns_mac_cb *mac_cb; in hns_ae_update_stats() local 704 struct hns_mac_cb *mac_cb; in hns_ae_get_stats() local 738 struct hns_mac_cb *mac_cb; in hns_ae_get_strings() local 769 struct hns_mac_cb *mac_cb; in hns_ae_get_sset_count() local [all …]
|
A D | hns_dsaf_mac.h | 396 struct hns_mac_cb *mac_cb; member 414 const struct hns_mac_cb *mac_cb) in hns_mac_get_drv() argument 416 return (struct mac_driver *)(mac_cb->priv.mac); in hns_mac_get_drv() 419 void *hns_gmac_config(struct hns_mac_cb *mac_cb, 421 void *hns_xgmac_config(struct hns_mac_cb *mac_cb, 430 int hns_mac_set_multi(struct hns_mac_cb *mac_cb, 433 void hns_mac_start(struct hns_mac_cb *mac_cb); 434 void hns_mac_stop(struct hns_mac_cb *mac_cb); 437 void hns_mac_reset(struct hns_mac_cb *mac_cb); 453 void hns_set_led_opt(struct hns_mac_cb *mac_cb); [all …]
|
A D | hns_dsaf_main.h | 211 struct hns_mac_cb *mac_cb; member 299 void (*cpld_set_led)(struct hns_mac_cb *mac_cb, int link_status, 301 void (*cpld_reset_led)(struct hns_mac_cb *mac_cb); 302 int (*cpld_set_led_id)(struct hns_mac_cb *mac_cb, 314 phy_interface_t (*get_phy_if)(struct hns_mac_cb *mac_cb); 315 int (*get_sfp_prsnt)(struct hns_mac_cb *mac_cb, int *sfp_prsnt); 317 int (*cfg_serdes_loopback)(struct hns_mac_cb *mac_cb, bool en); 344 struct hns_mac_cb *mac_cb[DSAF_MAX_PORT_NUM]; member 436 void hns_dsaf_fix_mac_mode(struct hns_mac_cb *mac_cb);
|
A D | hns_dsaf_gmac.c | 250 struct hns_mac_cb *mac_cb = drv->mac_cb; in hns_gmac_need_adjust_link() local 252 return (mac_cb->speed != speed) || in hns_gmac_need_adjust_link() 253 (mac_cb->half_duplex == duplex); in hns_gmac_need_adjust_link() 304 if (drv->mac_cb->mac_type == HNAE_PORT_DEBUG) in hns_gmac_set_promisc() 347 if (drv->mac_cb->mac_type == HNAE_PORT_DEBUG) in hns_gmac_init() 367 hw_stats = &drv->mac_cb->hw_stats; in hns_gmac_update_stats() 664 hw_stats = &drv->mac_cb->hw_stats; in hns_gmac_get_stats() 697 void *hns_gmac_config(struct hns_mac_cb *mac_cb, struct mac_params *mac_param) in hns_gmac_config() argument 701 mac_drv = devm_kzalloc(mac_cb->dev, sizeof(*mac_drv), GFP_KERNEL); in hns_gmac_config() 719 mac_drv->mac_cb = mac_cb; in hns_gmac_config()
|
A D | hns_dsaf_xgmac.c | 301 struct mac_hw_stats *hw_stats = &drv->mac_cb->hw_stats; in hns_xgmac_update_stats() 733 hw_stats = &drv->mac_cb->hw_stats; in hns_xgmac_get_stats() 780 void *hns_xgmac_config(struct hns_mac_cb *mac_cb, struct mac_params *mac_param) in hns_xgmac_config() argument 784 mac_drv = devm_kzalloc(mac_cb->dev, sizeof(*mac_drv), GFP_KERNEL); in hns_xgmac_config() 796 mac_drv->mac_cb = mac_cb; in hns_xgmac_config()
|
A D | hns_dsaf_main.c | 1733 memcpy(mask, dsaf_dev->mac_cb[port_num]->mc_mask, ETH_ALEN); in hns_dsaf_setup_mc_mask() 2175 void hns_dsaf_fix_mac_mode(struct hns_mac_cb *mac_cb) in hns_dsaf_fix_mac_mode() argument 2178 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_dsaf_fix_mac_mode() 2179 int mac_id = mac_cb->mac_id; in hns_dsaf_fix_mac_mode() 2181 if (mac_cb->mac_type != HNAE_PORT_SERVICE) in hns_dsaf_fix_mac_mode() 2183 if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) in hns_dsaf_fix_mac_mode() 2773 struct hns_mac_cb *mac_cb; in set_promisc_tcam_enable() local 2794 mac_cb = dsaf_dev->mac_cb[port]; in set_promisc_tcam_enable() 2795 (void)hns_mac_get_inner_port_num(mac_cb, 0, &port_num); in set_promisc_tcam_enable()
|
A D | hns_dsaf_ppe.c | 366 if (ppe_common->dsaf_dev->mac_cb[i]) in hns_ppe_uninit_ex() 403 if (dsaf_dev->mac_cb[i]) in hns_ppe_reset_common()
|
/linux-6.3-rc2/net/mac802154/ |
A D | rx.c | 68 if (mac_cb(skb)->type != IEEE802154_FC_TYPE_BEACON) { in ieee802154_subif_frame() 71 mac_cb(skb)->type); in ieee802154_subif_frame() 76 switch (mac_cb(skb)->dest.mode) { in ieee802154_subif_frame() 86 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame() 89 else if (mac_cb(skb)->dest.extended_addr == wpan_dev->extended_addr) in ieee802154_subif_frame() 95 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame() 98 else if (mac_cb(skb)->dest.short_addr == sshort) in ieee802154_subif_frame() 100 else if (mac_cb(skb)->dest.short_addr == in ieee802154_subif_frame() 126 switch (mac_cb(skb)->type) { in ieee802154_subif_frame() 151 "(type = %d)\n", mac_cb(skb)->type); in ieee802154_subif_frame() [all …]
|
A D | scan.c | 263 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_beacon() 280 desc.link_quality = mac_cb(skb)->lqi; in mac802154_process_beacon()
|
A D | iface.c | 363 struct ieee802154_mac_cb *cb = mac_cb(skb); in ieee802154_header_create()
|
/linux-6.3-rc2/drivers/net/ieee802154/ |
A D | mac802154_hwsim.c | 170 switch (mac_cb(skb)->type) { in hwsim_hw_receive() 178 mac_cb(skb)->type); in hwsim_hw_receive() 198 mac_cb(skb)->dest.pan_id != pib->filt.pan_id && in hwsim_hw_receive() 202 le16_to_cpu(mac_cb(skb)->dest.pan_id)); in hwsim_hw_receive() 212 le16_to_cpu(mac_cb(skb)->dest.short_addr)); in hwsim_hw_receive() 217 if (mac_cb(skb)->dest.mode == IEEE802154_ADDR_LONG && in hwsim_hw_receive() 221 mac_cb(skb)->dest.extended_addr); in hwsim_hw_receive() 226 if ((mac_cb(skb)->type == IEEE802154_FC_TYPE_DATA || in hwsim_hw_receive() 228 mac_cb(skb)->dest.mode == IEEE802154_ADDR_NONE) { in hwsim_hw_receive() 237 mac_cb(skb)->dest.pan_id != pib->filt.pan_id) { in hwsim_hw_receive() [all …]
|
/linux-6.3-rc2/net/ieee802154/6lowpan/ |
A D | tx.c | 116 *mac_cb(frag) = *mac_cb(skb); in lowpan_alloc_frag()
|
/linux-6.3-rc2/include/net/ |
A D | ieee802154_netdev.h | 319 static inline struct ieee802154_mac_cb *mac_cb(struct sk_buff *skb) in mac_cb() function 329 return mac_cb(skb); in mac_cb_init()
|
/linux-6.3-rc2/net/ieee802154/ |
A D | socket.c | 741 ieee802154_addr_to_sa(&saddr->addr, &mac_cb(skb)->source); in dgram_recvmsg() 747 sizeof(uint8_t), &(mac_cb(skb)->lqi)); in dgram_recvmsg()
|