/Linux-v5.4/drivers/watchdog/ |
D | omap_wdt.c | 71 static void omap_wdt_reload(struct omap_wdt_dev *wdev) in omap_wdt_reload() argument 73 void __iomem *base = wdev->base; in omap_wdt_reload() 79 wdev->wdt_trgr_pattern = ~wdev->wdt_trgr_pattern; in omap_wdt_reload() 80 writel_relaxed(wdev->wdt_trgr_pattern, (base + OMAP_WATCHDOG_TGR)); in omap_wdt_reload() 88 static void omap_wdt_enable(struct omap_wdt_dev *wdev) in omap_wdt_enable() argument 90 void __iomem *base = wdev->base; in omap_wdt_enable() 102 static void omap_wdt_disable(struct omap_wdt_dev *wdev) in omap_wdt_disable() argument 104 void __iomem *base = wdev->base; in omap_wdt_disable() 116 static void omap_wdt_set_timer(struct omap_wdt_dev *wdev, in omap_wdt_set_timer() argument 120 void __iomem *base = wdev->base; in omap_wdt_set_timer() [all …]
|
D | imx2_wdt.c | 95 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_restart() local 99 if (wdev->ext_reset) in imx2_wdt_restart() 105 regmap_write(wdev->regmap, IMX2_WDT_WCR, wcr_enable); in imx2_wdt_restart() 113 regmap_write(wdev->regmap, IMX2_WDT_WCR, wcr_enable); in imx2_wdt_restart() 114 regmap_write(wdev->regmap, IMX2_WDT_WCR, wcr_enable); in imx2_wdt_restart() 124 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_setup() local 127 regmap_read(wdev->regmap, IMX2_WDT_WCR, &val); in imx2_wdt_setup() 134 if (!wdev->ext_reset) in imx2_wdt_setup() 144 regmap_write(wdev->regmap, IMX2_WDT_WCR, val); in imx2_wdt_setup() 148 regmap_write(wdev->regmap, IMX2_WDT_WCR, val); in imx2_wdt_setup() [all …]
|
D | retu_wdt.c | 34 static void retu_wdt_ping_enable(struct retu_wdt_dev *wdev) in retu_wdt_ping_enable() argument 36 retu_write(wdev->rdev, RETU_REG_WATCHDOG, RETU_WDT_MAX_TIMER); in retu_wdt_ping_enable() 37 schedule_delayed_work(&wdev->ping_work, in retu_wdt_ping_enable() 41 static void retu_wdt_ping_disable(struct retu_wdt_dev *wdev) in retu_wdt_ping_disable() argument 43 retu_write(wdev->rdev, RETU_REG_WATCHDOG, RETU_WDT_MAX_TIMER); in retu_wdt_ping_disable() 44 cancel_delayed_work_sync(&wdev->ping_work); in retu_wdt_ping_disable() 49 struct retu_wdt_dev *wdev = container_of(to_delayed_work(work), in retu_wdt_ping_work() local 51 retu_wdt_ping_enable(wdev); in retu_wdt_ping_work() 56 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_start() local 58 retu_wdt_ping_disable(wdev); in retu_wdt_start() [all …]
|
D | pm8916_wdt.c | 35 struct watchdog_device wdev; member 39 static int pm8916_wdt_start(struct watchdog_device *wdev) in pm8916_wdt_start() argument 41 struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); in pm8916_wdt_start() 48 static int pm8916_wdt_stop(struct watchdog_device *wdev) in pm8916_wdt_stop() argument 50 struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); in pm8916_wdt_stop() 57 static int pm8916_wdt_ping(struct watchdog_device *wdev) in pm8916_wdt_ping() argument 59 struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); in pm8916_wdt_ping() 66 static int pm8916_wdt_configure_timers(struct watchdog_device *wdev) in pm8916_wdt_configure_timers() argument 68 struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); in pm8916_wdt_configure_timers() 73 wdev->timeout - wdev->pretimeout); in pm8916_wdt_configure_timers() [all …]
|
D | uniphier_wdt.c | 57 struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w); in uniphier_watchdog_ping() local 62 ret = regmap_write_bits(wdev->regmap, WDTCTRL, in uniphier_watchdog_ping() 69 ret = regmap_read_poll_timeout(wdev->regmap, WDTCTRL, val, in uniphier_watchdog_ping() 126 struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w); in uniphier_watchdog_start() local 131 return __uniphier_watchdog_start(wdev->regmap, tmp_timeout); in uniphier_watchdog_start() 136 struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w); in uniphier_watchdog_stop() local 138 return __uniphier_watchdog_stop(wdev->regmap); in uniphier_watchdog_stop() 144 struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w); in uniphier_watchdog_set_timeout() local 153 ret = __uniphier_watchdog_restart(wdev->regmap, tmp_timeout); in uniphier_watchdog_set_timeout() 185 struct uniphier_wdt_dev *wdev; in uniphier_wdt_probe() local [all …]
|
D | renesas_wdt.c | 50 struct watchdog_device wdev; member 65 static int rwdt_init_timeout(struct watchdog_device *wdev) in rwdt_init_timeout() argument 67 struct rwdt_priv *priv = watchdog_get_drvdata(wdev); in rwdt_init_timeout() 69 rwdt_write(priv, 65536 - MUL_BY_CLKS_PER_SEC(priv, wdev->timeout), RWTCNT); in rwdt_init_timeout() 83 static int rwdt_start(struct watchdog_device *wdev) in rwdt_start() argument 85 struct rwdt_priv *priv = watchdog_get_drvdata(wdev); in rwdt_start() 88 pm_runtime_get_sync(wdev->parent); in rwdt_start() 96 rwdt_init_timeout(wdev); in rwdt_start() 108 static int rwdt_stop(struct watchdog_device *wdev) in rwdt_stop() argument 110 struct rwdt_priv *priv = watchdog_get_drvdata(wdev); in rwdt_stop() [all …]
|
D | rza_wdt.c | 43 struct watchdog_device wdev; member 74 static int rza_wdt_start(struct watchdog_device *wdev) in rza_wdt_start() argument 76 struct rza_wdt *priv = watchdog_get_drvdata(wdev); in rza_wdt_start() 85 rza_wdt_calc_timeout(priv, wdev->timeout); in rza_wdt_start() 95 static int rza_wdt_stop(struct watchdog_device *wdev) in rza_wdt_stop() argument 97 struct rza_wdt *priv = watchdog_get_drvdata(wdev); in rza_wdt_stop() 104 static int rza_wdt_ping(struct watchdog_device *wdev) in rza_wdt_ping() argument 106 struct rza_wdt *priv = watchdog_get_drvdata(wdev); in rza_wdt_ping() 110 pr_debug("%s: timeout = %u\n", __func__, wdev->timeout); in rza_wdt_ping() 115 static int rza_set_timeout(struct watchdog_device *wdev, unsigned int timeout) in rza_set_timeout() argument [all …]
|
/Linux-v5.4/net/wireless/ |
D | ibss.c | 21 struct wireless_dev *wdev = dev->ieee80211_ptr; in __cfg80211_ibss_joined() local 27 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_ADHOC)) in __cfg80211_ibss_joined() 30 if (!wdev->ssid_len) in __cfg80211_ibss_joined() 33 bss = cfg80211_get_bss(wdev->wiphy, channel, bssid, NULL, 0, in __cfg80211_ibss_joined() 39 if (wdev->current_bss) { in __cfg80211_ibss_joined() 40 cfg80211_unhold_bss(wdev->current_bss); in __cfg80211_ibss_joined() 41 cfg80211_put_bss(wdev->wiphy, &wdev->current_bss->pub); in __cfg80211_ibss_joined() 45 wdev->current_bss = bss_from_pub(bss); in __cfg80211_ibss_joined() 47 if (!(wdev->wiphy->flags & WIPHY_FLAG_HAS_STATIC_WEP)) in __cfg80211_ibss_joined() 48 cfg80211_upload_connect_keys(wdev); in __cfg80211_ibss_joined() [all …]
|
D | sme.c | 54 static void cfg80211_sme_free(struct wireless_dev *wdev) in cfg80211_sme_free() argument 56 if (!wdev->conn) in cfg80211_sme_free() 59 kfree(wdev->conn->ie); in cfg80211_sme_free() 60 kfree(wdev->conn); in cfg80211_sme_free() 61 wdev->conn = NULL; in cfg80211_sme_free() 64 static int cfg80211_conn_scan(struct wireless_dev *wdev) in cfg80211_conn_scan() argument 66 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_conn_scan() 71 ASSERT_WDEV_LOCK(wdev); in cfg80211_conn_scan() 76 if (wdev->conn->params.channel) in cfg80211_conn_scan() 79 n_channels = ieee80211_get_num_supported_channels(wdev->wiphy); in cfg80211_conn_scan() [all …]
|
D | wext-sme.c | 19 struct wireless_dev *wdev) in cfg80211_mgd_wext_connect() argument 26 ASSERT_WDEV_LOCK(wdev); in cfg80211_mgd_wext_connect() 28 if (!netif_running(wdev->netdev)) in cfg80211_mgd_wext_connect() 31 wdev->wext.connect.ie = wdev->wext.ie; in cfg80211_mgd_wext_connect() 32 wdev->wext.connect.ie_len = wdev->wext.ie_len; in cfg80211_mgd_wext_connect() 35 wdev->wext.connect.bg_scan_period = -1; in cfg80211_mgd_wext_connect() 37 if (wdev->wext.keys) { in cfg80211_mgd_wext_connect() 38 wdev->wext.keys->def = wdev->wext.default_key; in cfg80211_mgd_wext_connect() 39 if (wdev->wext.default_key != -1) in cfg80211_mgd_wext_connect() 40 wdev->wext.connect.privacy = true; in cfg80211_mgd_wext_connect() [all …]
|
D | mlme.c | 27 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_rx_assoc_resp() local 28 struct wiphy *wiphy = wdev->wiphy; in cfg80211_rx_assoc_resp() 52 if (cfg80211_sme_rx_assoc_resp(wdev, cr.status)) { in cfg80211_rx_assoc_resp() 65 static void cfg80211_process_auth(struct wireless_dev *wdev, in cfg80211_process_auth() argument 68 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_auth() 70 nl80211_send_rx_auth(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_auth() 71 cfg80211_sme_rx_auth(wdev, buf, len); in cfg80211_process_auth() 74 static void cfg80211_process_deauth(struct wireless_dev *wdev, in cfg80211_process_deauth() argument 77 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_deauth() 81 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth() [all …]
|
D | wext-compat.c | 38 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_wext_siwmode() local 43 rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwmode() 62 if (type == wdev->iftype) in cfg80211_wext_siwmode() 74 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_wext_giwmode() local 76 if (!wdev) in cfg80211_wext_giwmode() 79 switch (wdev->iftype) { in cfg80211_wext_giwmode() 111 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_wext_giwrange() local 116 if (!wdev) in cfg80211_wext_giwrange() 137 switch (wdev->wiphy->signal_type) { in cfg80211_wext_giwrange() 161 for (i = 0; i < wdev->wiphy->n_cipher_suites; i++) { in cfg80211_wext_giwrange() [all …]
|
D | core.c | 158 struct wireless_dev *wdev; in cfg80211_switch_netns() local 164 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_switch_netns() 165 if (!wdev->netdev) in cfg80211_switch_netns() 167 wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns() 168 err = dev_change_net_namespace(wdev->netdev, net, "wlan%d"); in cfg80211_switch_netns() 171 wdev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns() 178 list_for_each_entry_continue_reverse(wdev, in cfg80211_switch_netns() 181 if (!wdev->netdev) in cfg80211_switch_netns() 183 wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns() 184 err = dev_change_net_namespace(wdev->netdev, net, in cfg80211_switch_netns() [all …]
|
D | mesh.c | 102 struct wireless_dev *wdev = dev->ieee80211_ptr; in __cfg80211_join_mesh() local 107 ASSERT_WDEV_LOCK(wdev); in __cfg80211_join_mesh() 116 if (wdev->mesh_id_len) in __cfg80211_join_mesh() 127 setup->chandef = wdev->preset_chandef; in __cfg80211_join_mesh() 211 memcpy(wdev->ssid, setup->mesh_id, setup->mesh_id_len); in __cfg80211_join_mesh() 212 wdev->mesh_id_len = setup->mesh_id_len; in __cfg80211_join_mesh() 213 wdev->chandef = setup->chandef; in __cfg80211_join_mesh() 214 wdev->beacon_interval = setup->beacon_interval; in __cfg80211_join_mesh() 221 struct wireless_dev *wdev, in cfg80211_set_mesh_channel() argument 237 if (!netif_running(wdev->netdev)) in cfg80211_set_mesh_channel() [all …]
|
D | ap.c | 13 struct wireless_dev *wdev = dev->ieee80211_ptr; in __cfg80211_stop_ap() local 16 ASSERT_WDEV_LOCK(wdev); in __cfg80211_stop_ap() 25 if (!wdev->beacon_interval) in __cfg80211_stop_ap() 30 wdev->conn_owner_nlportid = 0; in __cfg80211_stop_ap() 31 wdev->beacon_interval = 0; in __cfg80211_stop_ap() 32 memset(&wdev->chandef, 0, sizeof(wdev->chandef)); in __cfg80211_stop_ap() 33 wdev->ssid_len = 0; in __cfg80211_stop_ap() 36 nl80211_send_ap_stopped(wdev); in __cfg80211_stop_ap() 52 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_stop_ap() local 55 wdev_lock(wdev); in cfg80211_stop_ap() [all …]
|
D | ocb.c | 21 struct wireless_dev *wdev = dev->ieee80211_ptr; in __cfg80211_join_ocb() local 24 ASSERT_WDEV_LOCK(wdev); in __cfg80211_join_ocb() 37 wdev->chandef = setup->chandef; in __cfg80211_join_ocb() 46 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_join_ocb() local 49 wdev_lock(wdev); in cfg80211_join_ocb() 51 wdev_unlock(wdev); in cfg80211_join_ocb() 59 struct wireless_dev *wdev = dev->ieee80211_ptr; in __cfg80211_leave_ocb() local 62 ASSERT_WDEV_LOCK(wdev); in __cfg80211_leave_ocb() 72 memset(&wdev->chandef, 0, sizeof(wdev->chandef)); in __cfg80211_leave_ocb() 80 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_leave_ocb() local [all …]
|
D | core.h | 214 struct wireless_dev *wdev); 216 static inline void wdev_lock(struct wireless_dev *wdev) in wdev_lock() argument 217 __acquires(wdev) in wdev_lock() 219 mutex_lock(&wdev->mtx); in wdev_lock() 220 __acquire(wdev->mtx); in wdev_lock() 223 static inline void wdev_unlock(struct wireless_dev *wdev) in wdev_unlock() argument 224 __releases(wdev) in wdev_unlock() 226 __release(wdev->mtx); in wdev_unlock() 227 mutex_unlock(&wdev->mtx); in wdev_unlock() 230 #define ASSERT_WDEV_LOCK(wdev) lockdep_assert_held(&(wdev)->mtx) argument [all …]
|
D | chan.c | 597 bool cfg80211_beaconing_iface_active(struct wireless_dev *wdev) in cfg80211_beaconing_iface_active() argument 601 ASSERT_WDEV_LOCK(wdev); in cfg80211_beaconing_iface_active() 603 if (!wdev->chandef.chan) in cfg80211_beaconing_iface_active() 606 switch (wdev->iftype) { in cfg80211_beaconing_iface_active() 609 active = wdev->beacon_interval != 0; in cfg80211_beaconing_iface_active() 612 active = wdev->ssid_len != 0; in cfg80211_beaconing_iface_active() 615 active = wdev->mesh_id_len != 0; in cfg80211_beaconing_iface_active() 638 struct wireless_dev *wdev; in cfg80211_is_wiphy_oper_chan() local 640 list_for_each_entry(wdev, &wiphy->wdev_list, list) { in cfg80211_is_wiphy_oper_chan() 641 wdev_lock(wdev); in cfg80211_is_wiphy_oper_chan() [all …]
|
D | pmsr.c | 213 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_pmsr_start() local 261 memcpy(req->mac_addr, wdev_address(wdev), ETH_ALEN); in nl80211_pmsr_start() 278 err = rdev_start_pmsr(rdev, wdev, req); in nl80211_pmsr_start() 282 list_add_tail(&req->list, &wdev->pmsr_list); in nl80211_pmsr_start() 291 void cfg80211_pmsr_complete(struct wireless_dev *wdev, in cfg80211_pmsr_complete() argument 295 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_pmsr_complete() 299 trace_cfg80211_pmsr_complete(wdev->wiphy, wdev, req->cookie); in cfg80211_pmsr_complete() 311 nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), in cfg80211_pmsr_complete() 320 genlmsg_unicast(wiphy_net(wdev->wiphy), msg, req->nl_portid); in cfg80211_pmsr_complete() 325 spin_lock_bh(&wdev->pmsr_lock); in cfg80211_pmsr_complete() [all …]
|
/Linux-v5.4/drivers/platform/x86/ |
D | dell-smbios-wmi.c | 33 struct wmi_device *wdev; member 46 static int run_smbios_call(struct wmi_device *wdev) in run_smbios_call() argument 54 priv = dev_get_drvdata(&wdev->dev); in run_smbios_call() 58 dev_dbg(&wdev->dev, "evaluating: %u/%u [%x,%x,%x,%x]\n", in run_smbios_call() 63 status = wmidev_evaluate_method(wdev, 0, 1, &input, &output); in run_smbios_call() 68 dev_dbg(&wdev->dev, "received type: %d\n", obj->type); in run_smbios_call() 70 dev_dbg(&wdev->dev, "SMBIOS call failed: %llu\n", in run_smbios_call() 75 dev_dbg(&wdev->dev, "result: [%08x,%08x,%08x,%08x]\n", in run_smbios_call() 102 ret = run_smbios_call(priv->wdev); in dell_smbios_wmi_call() 110 static long dell_smbios_wmi_filter(struct wmi_device *wdev, unsigned int cmd, in dell_smbios_wmi_filter() argument [all …]
|
D | huawei-wmi.c | 78 static int huawei_wmi_leds_setup(struct wmi_device *wdev) in huawei_wmi_leds_setup() argument 80 struct huawei_wmi_priv *priv = dev_get_drvdata(&wdev->dev); in huawei_wmi_leds_setup() 98 priv->cdev.dev = &wdev->dev; in huawei_wmi_leds_setup() 101 return devm_led_classdev_register(&wdev->dev, &priv->cdev); in huawei_wmi_leds_setup() 104 static void huawei_wmi_process_key(struct wmi_device *wdev, int code) in huawei_wmi_process_key() argument 106 struct huawei_wmi_priv *priv = dev_get_drvdata(&wdev->dev); in huawei_wmi_process_key() 132 dev_info(&wdev->dev, "Unknown key pressed, code: 0x%04x\n", code); in huawei_wmi_process_key() 139 static void huawei_wmi_notify(struct wmi_device *wdev, in huawei_wmi_notify() argument 143 huawei_wmi_process_key(wdev, obj->integer.value); in huawei_wmi_notify() 145 dev_info(&wdev->dev, "Bad response type %d\n", obj->type); in huawei_wmi_notify() [all …]
|
D | wmi-bmof.c | 49 static int wmi_bmof_probe(struct wmi_device *wdev, const void *context) in wmi_bmof_probe() argument 54 priv = devm_kzalloc(&wdev->dev, sizeof(struct bmof_priv), GFP_KERNEL); in wmi_bmof_probe() 58 dev_set_drvdata(&wdev->dev, priv); in wmi_bmof_probe() 60 priv->bmofdata = wmidev_block_query(wdev, 0); in wmi_bmof_probe() 62 dev_err(&wdev->dev, "failed to read Binary MOF\n"); in wmi_bmof_probe() 67 dev_err(&wdev->dev, "Binary MOF is not a buffer\n"); in wmi_bmof_probe() 78 ret = sysfs_create_bin_file(&wdev->dev.kobj, &priv->bmof_bin_attr); in wmi_bmof_probe() 89 static int wmi_bmof_remove(struct wmi_device *wdev) in wmi_bmof_remove() argument 91 struct bmof_priv *priv = dev_get_drvdata(&wdev->dev); in wmi_bmof_remove() 93 sysfs_remove_bin_file(&wdev->dev.kobj, &priv->bmof_bin_attr); in wmi_bmof_remove()
|
D | dell-wmi-descriptor.c | 101 static int dell_wmi_descriptor_probe(struct wmi_device *wdev, in dell_wmi_descriptor_probe() argument 109 obj = wmidev_block_query(wdev, 0); in dell_wmi_descriptor_probe() 111 dev_err(&wdev->dev, "failed to read Dell WMI descriptor\n"); in dell_wmi_descriptor_probe() 117 dev_err(&wdev->dev, "Dell descriptor has wrong type\n"); in dell_wmi_descriptor_probe() 127 dev_err(&wdev->dev, in dell_wmi_descriptor_probe() 138 dev_err(&wdev->dev, "Dell descriptor buffer has invalid signature (%8ph)\n", in dell_wmi_descriptor_probe() 147 dev_warn(&wdev->dev, "Dell descriptor buffer has unknown version (%lu)\n", in dell_wmi_descriptor_probe() 150 priv = devm_kzalloc(&wdev->dev, sizeof(struct descriptor_priv), in dell_wmi_descriptor_probe() 162 dev_set_drvdata(&wdev->dev, priv); in dell_wmi_descriptor_probe() 167 dev_dbg(&wdev->dev, "Detected Dell WMI interface version %lu, buffer size %lu, hotfix %lu\n", in dell_wmi_descriptor_probe() [all …]
|
D | xiaomi-wmi.c | 26 int xiaomi_wmi_probe(struct wmi_device *wdev, const void *context) in xiaomi_wmi_probe() argument 30 if (wdev == NULL || context == NULL) in xiaomi_wmi_probe() 33 data = devm_kzalloc(&wdev->dev, sizeof(struct xiaomi_wmi), GFP_KERNEL); in xiaomi_wmi_probe() 36 dev_set_drvdata(&wdev->dev, data); in xiaomi_wmi_probe() 38 data->input_dev = devm_input_allocate_device(&wdev->dev); in xiaomi_wmi_probe() 51 void xiaomi_wmi_notify(struct wmi_device *wdev, union acpi_object *dummy) in xiaomi_wmi_notify() argument 55 if (wdev == NULL) in xiaomi_wmi_notify() 58 data = dev_get_drvdata(&wdev->dev); in xiaomi_wmi_notify()
|
/Linux-v5.4/net/ieee802154/6lowpan/ |
D | core.c | 88 return lowpan_802154_dev(dev)->wdev->ifindex; in lowpan_get_iflink() 127 struct net_device *wdev; in lowpan_newlink() local 137 wdev = dev_get_by_index(dev_net(ldev), nla_get_u32(tb[IFLA_LINK])); in lowpan_newlink() 138 if (!wdev) in lowpan_newlink() 140 if (wdev->type != ARPHRD_IEEE802154) { in lowpan_newlink() 141 dev_put(wdev); in lowpan_newlink() 145 if (wdev->ieee802154_ptr->lowpan_dev) { in lowpan_newlink() 146 dev_put(wdev); in lowpan_newlink() 150 lowpan_802154_dev(ldev)->wdev = wdev; in lowpan_newlink() 152 memcpy(ldev->dev_addr, wdev->dev_addr, IEEE802154_ADDR_LEN); in lowpan_newlink() [all …]
|