Home
last modified time | relevance | path

Searched refs:wdev (Results 1 – 25 of 184) sorted by relevance

12345678

/linux-6.6.21/drivers/watchdog/
Domap_wdt.c71 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 …]
Dimx2_wdt.c103 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_restart() local
107 if (wdev->ext_reset) in imx2_wdt_restart()
113 regmap_write(wdev->regmap, IMX2_WDT_WCR, wcr_enable); in imx2_wdt_restart()
121 regmap_write(wdev->regmap, IMX2_WDT_WCR, wcr_enable); in imx2_wdt_restart()
122 regmap_write(wdev->regmap, IMX2_WDT_WCR, wcr_enable); in imx2_wdt_restart()
132 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_setup() local
135 regmap_read(wdev->regmap, IMX2_WDT_WCR, &val); in imx2_wdt_setup()
140 if (wdev->sleep_wait) in imx2_wdt_setup()
145 if (!wdev->ext_reset) in imx2_wdt_setup()
155 regmap_write(wdev->regmap, IMX2_WDT_WCR, val); in imx2_wdt_setup()
[all …]
Dpm8916_wdt.c41 struct watchdog_device wdev; member
45 static int pm8916_wdt_start(struct watchdog_device *wdev) in pm8916_wdt_start() argument
47 struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); in pm8916_wdt_start()
54 static int pm8916_wdt_stop(struct watchdog_device *wdev) in pm8916_wdt_stop() argument
56 struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); in pm8916_wdt_stop()
63 static int pm8916_wdt_ping(struct watchdog_device *wdev) in pm8916_wdt_ping() argument
65 struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); in pm8916_wdt_ping()
71 static int pm8916_wdt_configure_timers(struct watchdog_device *wdev) in pm8916_wdt_configure_timers() argument
73 struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); in pm8916_wdt_configure_timers()
78 wdev->timeout - wdev->pretimeout); in pm8916_wdt_configure_timers()
[all …]
Dretu_wdt.c35 static void retu_wdt_ping_enable(struct retu_wdt_dev *wdev) in retu_wdt_ping_enable() argument
37 retu_write(wdev->rdev, RETU_REG_WATCHDOG, RETU_WDT_MAX_TIMER); in retu_wdt_ping_enable()
38 schedule_delayed_work(&wdev->ping_work, in retu_wdt_ping_enable()
42 static void retu_wdt_ping_disable(struct retu_wdt_dev *wdev) in retu_wdt_ping_disable() argument
44 retu_write(wdev->rdev, RETU_REG_WATCHDOG, RETU_WDT_MAX_TIMER); in retu_wdt_ping_disable()
45 cancel_delayed_work_sync(&wdev->ping_work); in retu_wdt_ping_disable()
50 struct retu_wdt_dev *wdev = container_of(to_delayed_work(work), in retu_wdt_ping_work() local
52 retu_wdt_ping_enable(wdev); in retu_wdt_ping_work()
57 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_start() local
59 retu_wdt_ping_disable(wdev); in retu_wdt_start()
[all …]
Dvisconti_wdt.c35 struct watchdog_device wdev; member
40 static int visconti_wdt_start(struct watchdog_device *wdev) in visconti_wdt_start() argument
42 struct visconti_wdt_priv *priv = watchdog_get_drvdata(wdev); in visconti_wdt_start()
43 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_start()
54 static int visconti_wdt_stop(struct watchdog_device *wdev) in visconti_wdt_stop() argument
56 struct visconti_wdt_priv *priv = watchdog_get_drvdata(wdev); in visconti_wdt_stop()
73 static unsigned int visconti_wdt_get_timeleft(struct watchdog_device *wdev) in visconti_wdt_get_timeleft() argument
75 struct visconti_wdt_priv *priv = watchdog_get_drvdata(wdev); in visconti_wdt_get_timeleft()
76 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft()
86 static int visconti_wdt_set_timeout(struct watchdog_device *wdev, unsigned int timeout) in visconti_wdt_set_timeout() argument
[all …]
Dmsc313e_wdt.c31 struct watchdog_device wdev; member
35 static int msc313e_wdt_start(struct watchdog_device *wdev) in msc313e_wdt_start() argument
37 struct msc313e_wdt_priv *priv = watchdog_get_drvdata(wdev); in msc313e_wdt_start()
45 timeout = wdev->timeout * clk_get_rate(priv->clk); in msc313e_wdt_start()
52 static int msc313e_wdt_ping(struct watchdog_device *wdev) in msc313e_wdt_ping() argument
54 struct msc313e_wdt_priv *priv = watchdog_get_drvdata(wdev); in msc313e_wdt_ping()
60 static int msc313e_wdt_stop(struct watchdog_device *wdev) in msc313e_wdt_stop() argument
62 struct msc313e_wdt_priv *priv = watchdog_get_drvdata(wdev); in msc313e_wdt_stop()
71 static int msc313e_wdt_settimeout(struct watchdog_device *wdev, unsigned int new_time) in msc313e_wdt_settimeout() argument
73 wdev->timeout = new_time; in msc313e_wdt_settimeout()
[all …]
Duniphier_wdt.c57 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 …]
Drzg2l_wdt.c53 struct watchdog_device wdev; member
110 static void rzg2l_wdt_init_timeout(struct watchdog_device *wdev) in rzg2l_wdt_init_timeout() argument
112 struct rzg2l_wdt_priv *priv = watchdog_get_drvdata(wdev); in rzg2l_wdt_init_timeout()
118 time_out = (wdev->timeout * (MICRO / 2)) / in rzg2l_wdt_init_timeout()
123 static int rzg2l_wdt_start(struct watchdog_device *wdev) in rzg2l_wdt_start() argument
125 struct rzg2l_wdt_priv *priv = watchdog_get_drvdata(wdev); in rzg2l_wdt_start()
127 pm_runtime_get_sync(wdev->parent); in rzg2l_wdt_start()
130 rzg2l_wdt_init_timeout(wdev); in rzg2l_wdt_start()
141 static int rzg2l_wdt_stop(struct watchdog_device *wdev) in rzg2l_wdt_stop() argument
143 struct rzg2l_wdt_priv *priv = watchdog_get_drvdata(wdev); in rzg2l_wdt_stop()
[all …]
Drenesas_wdt.c51 struct watchdog_device wdev; member
67 static int rwdt_init_timeout(struct watchdog_device *wdev) in rwdt_init_timeout() argument
69 struct rwdt_priv *priv = watchdog_get_drvdata(wdev); in rwdt_init_timeout()
71 rwdt_write(priv, 65536 - MUL_BY_CLKS_PER_SEC(priv, wdev->timeout), RWTCNT); in rwdt_init_timeout()
85 static int rwdt_start(struct watchdog_device *wdev) in rwdt_start() argument
87 struct rwdt_priv *priv = watchdog_get_drvdata(wdev); in rwdt_start()
90 pm_runtime_get_sync(wdev->parent); in rwdt_start()
98 rwdt_init_timeout(wdev); in rwdt_start()
110 static int rwdt_stop(struct watchdog_device *wdev) in rwdt_stop() argument
112 struct rwdt_priv *priv = watchdog_get_drvdata(wdev); in rwdt_stop()
[all …]
Drealtek_otto_wdt.c67 struct watchdog_device wdev; member
74 static int otto_wdt_start(struct watchdog_device *wdev) in otto_wdt_start() argument
76 struct otto_wdt_ctrl *ctrl = watchdog_get_drvdata(wdev); in otto_wdt_start()
86 static int otto_wdt_stop(struct watchdog_device *wdev) in otto_wdt_stop() argument
88 struct otto_wdt_ctrl *ctrl = watchdog_get_drvdata(wdev); in otto_wdt_stop()
98 static int otto_wdt_ping(struct watchdog_device *wdev) in otto_wdt_ping() argument
100 struct otto_wdt_ctrl *ctrl = watchdog_get_drvdata(wdev); in otto_wdt_ping()
123 static int otto_wdt_determine_timeouts(struct watchdog_device *wdev, unsigned int timeout, in otto_wdt_determine_timeouts() argument
126 struct otto_wdt_ctrl *ctrl = watchdog_get_drvdata(wdev); in otto_wdt_determine_timeouts()
161 ctrl->wdev.timeout = timeout_ms / 1000; in otto_wdt_determine_timeouts()
[all …]
Dsunplus_wdt.c45 struct watchdog_device wdev; member
51 static int sp_wdt_restart(struct watchdog_device *wdev, in sp_wdt_restart() argument
54 struct sp_wdt_priv *priv = watchdog_get_drvdata(wdev); in sp_wdt_restart()
66 static int sp_wdt_ping(struct watchdog_device *wdev) in sp_wdt_ping() argument
68 struct sp_wdt_priv *priv = watchdog_get_drvdata(wdev); in sp_wdt_ping()
72 if (wdev->timeout > SP_WDT_MAX_TIMEOUT) { in sp_wdt_ping()
82 count = (wdev->timeout * STC_CLK) >> 4; in sp_wdt_ping()
90 static int sp_wdt_stop(struct watchdog_device *wdev) in sp_wdt_stop() argument
92 struct sp_wdt_priv *priv = watchdog_get_drvdata(wdev); in sp_wdt_stop()
100 static int sp_wdt_start(struct watchdog_device *wdev) in sp_wdt_start() argument
[all …]
/linux-6.6.21/net/wireless/
Dwext-sme.c19 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 …]
Dibss.c22 struct wireless_dev *wdev = dev->ieee80211_ptr; in __cfg80211_ibss_joined() local
28 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_ADHOC)) in __cfg80211_ibss_joined()
31 if (!wdev->u.ibss.ssid_len) in __cfg80211_ibss_joined()
34 bss = cfg80211_get_bss(wdev->wiphy, channel, bssid, NULL, 0, in __cfg80211_ibss_joined()
40 if (wdev->u.ibss.current_bss) { in __cfg80211_ibss_joined()
41 cfg80211_unhold_bss(wdev->u.ibss.current_bss); in __cfg80211_ibss_joined()
42 cfg80211_put_bss(wdev->wiphy, &wdev->u.ibss.current_bss->pub); in __cfg80211_ibss_joined()
46 wdev->u.ibss.current_bss = bss_from_pub(bss); in __cfg80211_ibss_joined()
48 cfg80211_upload_connect_keys(wdev); in __cfg80211_ibss_joined()
50 nl80211_send_ibss_bssid(wiphy_to_rdev(wdev->wiphy), dev, bssid, in __cfg80211_ibss_joined()
[all …]
Dsme.c54 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()
70 ASSERT_WDEV_LOCK(wdev); in cfg80211_conn_scan()
75 if (wdev->conn->params.channel) in cfg80211_conn_scan()
78 n_channels = ieee80211_get_num_supported_channels(wdev->wiphy); in cfg80211_conn_scan()
[all …]
Dwext-compat.c39 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_wext_siwmode() local
45 rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwmode()
61 if (type == wdev->iftype) in cfg80211_wext_siwmode()
66 wiphy_lock(wdev->wiphy); in cfg80211_wext_siwmode()
68 wiphy_unlock(wdev->wiphy); in cfg80211_wext_siwmode()
78 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_wext_giwmode() local
80 if (!wdev) in cfg80211_wext_giwmode()
83 switch (wdev->iftype) { in cfg80211_wext_giwmode()
116 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_wext_giwrange() local
121 if (!wdev) in cfg80211_wext_giwrange()
[all …]
Dmlme.c27 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_rx_assoc_resp() local
28 struct wiphy *wiphy = wdev->wiphy; in cfg80211_rx_assoc_resp()
81 if (cfg80211_sme_rx_assoc_resp(wdev, cr.status)) { in cfg80211_rx_assoc_resp()
100 static void cfg80211_process_auth(struct wireless_dev *wdev, in cfg80211_process_auth() argument
103 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_auth()
105 nl80211_send_rx_auth(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_auth()
106 cfg80211_sme_rx_auth(wdev, buf, len); in cfg80211_process_auth()
109 static void cfg80211_process_deauth(struct wireless_dev *wdev, in cfg80211_process_deauth() argument
113 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_deauth()
117 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth()
[all …]
Dcore.c159 struct wireless_dev *wdev; in cfg80211_switch_netns() local
165 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_switch_netns()
166 if (!wdev->netdev) in cfg80211_switch_netns()
168 wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns()
169 err = dev_change_net_namespace(wdev->netdev, net, "wlan%d"); in cfg80211_switch_netns()
172 wdev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns()
179 list_for_each_entry_continue_reverse(wdev, in cfg80211_switch_netns()
182 if (!wdev->netdev) in cfg80211_switch_netns()
184 wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns()
185 err = dev_change_net_namespace(wdev->netdev, net, in cfg80211_switch_netns()
[all …]
/linux-6.6.21/drivers/net/wireless/silabs/wfx/
Dbh.c18 static void device_wakeup(struct wfx_dev *wdev) in device_wakeup() argument
22 if (!wdev->pdata.gpio_wakeup) in device_wakeup()
24 if (gpiod_get_value_cansleep(wdev->pdata.gpio_wakeup) > 0) in device_wakeup()
27 if (wfx_api_older_than(wdev, 1, 4)) { in device_wakeup()
28 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 1); in device_wakeup()
29 if (!completion_done(&wdev->hif.ctrl_ready)) in device_wakeup()
34 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 1); in device_wakeup()
38 if (wait_for_completion_timeout(&wdev->hif.ctrl_ready, msecs_to_jiffies(2))) { in device_wakeup()
39 complete(&wdev->hif.ctrl_ready); in device_wakeup()
45 dev_err(wdev->dev, "timeout while wake up chip\n"); in device_wakeup()
[all …]
Dmain.c156 bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor) in wfx_api_older_than() argument
158 if (wdev->hw_caps.api_version_major < major) in wfx_api_older_than()
160 if (wdev->hw_caps.api_version_major > major) in wfx_api_older_than()
162 if (wdev->hw_caps.api_version_minor < minor) in wfx_api_older_than()
174 int wfx_send_pds(struct wfx_dev *wdev, u8 *buf, size_t len) in wfx_send_pds() argument
179 dev_err(wdev->dev, "PDS: malformed file (legacy format?)\n"); in wfx_send_pds()
186 dev_err(wdev->dev, "PDS:%d: corrupted file\n", chunk_num); in wfx_send_pds()
190 dev_info(wdev->dev, "PDS:%d: skip unknown data\n", chunk_num); in wfx_send_pds()
194 dev_warn(wdev->dev, "PDS:%d: unexpectedly large chunk\n", chunk_num); in wfx_send_pds()
196 dev_warn(wdev->dev, "PDS:%d: unexpected content\n", chunk_num); in wfx_send_pds()
[all …]
Dhwio.c20 static int wfx_read32(struct wfx_dev *wdev, int reg, u32 *val) in wfx_read32() argument
28 ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, reg, tmp, sizeof(u32)); in wfx_read32()
33 dev_err(wdev->dev, "%s: bus communication error: %d\n", __func__, ret); in wfx_read32()
37 static int wfx_write32(struct wfx_dev *wdev, int reg, u32 val) in wfx_write32() argument
45 ret = wdev->hwbus_ops->copy_to_io(wdev->hwbus_priv, reg, tmp, sizeof(u32)); in wfx_write32()
48 dev_err(wdev->dev, "%s: bus communication error: %d\n", __func__, ret); in wfx_write32()
52 static int wfx_read32_locked(struct wfx_dev *wdev, int reg, u32 *val) in wfx_read32_locked() argument
56 wdev->hwbus_ops->lock(wdev->hwbus_priv); in wfx_read32_locked()
57 ret = wfx_read32(wdev, reg, val); in wfx_read32_locked()
59 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_read32_locked()
[all …]
Dhif_rx.c19 static int wfx_hif_generic_confirm(struct wfx_dev *wdev, in wfx_hif_generic_confirm() argument
27 WARN(!mutex_is_locked(&wdev->hif_cmd.lock), "data locking error"); in wfx_hif_generic_confirm()
29 if (!wdev->hif_cmd.buf_send) { in wfx_hif_generic_confirm()
30 dev_warn(wdev->dev, "unexpected confirmation: 0x%.2x\n", cmd); in wfx_hif_generic_confirm()
34 if (cmd != wdev->hif_cmd.buf_send->id) { in wfx_hif_generic_confirm()
35 dev_warn(wdev->dev, "chip response mismatch request: 0x%.2x vs 0x%.2x\n", in wfx_hif_generic_confirm()
36 cmd, wdev->hif_cmd.buf_send->id); in wfx_hif_generic_confirm()
40 if (wdev->hif_cmd.buf_recv) { in wfx_hif_generic_confirm()
41 if (wdev->hif_cmd.len_recv >= len && len > 0) in wfx_hif_generic_confirm()
42 memcpy(wdev->hif_cmd.buf_recv, buf, len); in wfx_hif_generic_confirm()
[all …]
Dfwio.c80 static int wfx_sram_write_dma_safe(struct wfx_dev *wdev, u32 addr, const u8 *buf, size_t len) in wfx_sram_write_dma_safe() argument
92 ret = wfx_sram_buf_write(wdev, addr, tmp, len); in wfx_sram_write_dma_safe()
98 static int get_firmware(struct wfx_dev *wdev, u32 keyset_chip, in get_firmware() argument
107 wdev->pdata.file_fw, keyset_chip); in get_firmware()
108 ret = firmware_request_nowarn(fw, filename, wdev->dev); in get_firmware()
110 dev_info(wdev->dev, "can't load %s, falling back to %s.sec\n", in get_firmware()
111 filename, wdev->pdata.file_fw); in get_firmware()
112 snprintf(filename, sizeof(filename), "%s.sec", wdev->pdata.file_fw); in get_firmware()
113 ret = request_firmware(fw, filename, wdev->dev); in get_firmware()
115 dev_err(wdev->dev, "can't load %s\n", filename); in get_firmware()
[all …]
Dqueue.c17 void wfx_tx_lock(struct wfx_dev *wdev) in wfx_tx_lock() argument
19 atomic_inc(&wdev->tx_lock); in wfx_tx_lock()
22 void wfx_tx_unlock(struct wfx_dev *wdev) in wfx_tx_unlock() argument
24 int tx_lock = atomic_dec_return(&wdev->tx_lock); in wfx_tx_unlock()
28 wfx_bh_request_tx(wdev); in wfx_tx_unlock()
31 void wfx_tx_flush(struct wfx_dev *wdev) in wfx_tx_flush() argument
36 if (wdev->chip_frozen) in wfx_tx_flush()
39 wfx_tx_lock(wdev); in wfx_tx_flush()
40 mutex_lock(&wdev->hif_cmd.lock); in wfx_tx_flush()
41 ret = wait_event_timeout(wdev->hif.tx_buffers_empty, !wdev->hif.tx_buffers_used, in wfx_tx_flush()
[all …]
Dhwio.h18 int wfx_data_read(struct wfx_dev *wdev, void *buf, size_t buf_len);
19 int wfx_data_write(struct wfx_dev *wdev, const void *buf, size_t buf_len);
21 int wfx_sram_buf_read(struct wfx_dev *wdev, u32 addr, void *buf, size_t len);
22 int wfx_sram_buf_write(struct wfx_dev *wdev, u32 addr, const void *buf, size_t len);
24 int wfx_ahb_buf_read(struct wfx_dev *wdev, u32 addr, void *buf, size_t len);
25 int wfx_ahb_buf_write(struct wfx_dev *wdev, u32 addr, const void *buf, size_t len);
27 int wfx_sram_reg_read(struct wfx_dev *wdev, u32 addr, u32 *val);
28 int wfx_sram_reg_write(struct wfx_dev *wdev, u32 addr, u32 val);
30 int wfx_ahb_reg_read(struct wfx_dev *wdev, u32 addr, u32 *val);
31 int wfx_ahb_reg_write(struct wfx_dev *wdev, u32 addr, u32 val);
[all …]
Dsta.c23 u32 wfx_rate_mask_to_hw(struct wfx_dev *wdev, u32 rates) in wfx_rate_mask_to_hw() argument
28 struct ieee80211_supported_band *sband = wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]; in wfx_rate_mask_to_hw()
33 dev_warn(wdev->dev, "unsupported basic rate\n"); in wfx_rate_mask_to_hw()
43 struct wfx_dev *wdev = container_of(to_delayed_work(work), struct wfx_dev, in wfx_cooling_timeout_work() local
46 wdev->chip_frozen = true; in wfx_cooling_timeout_work()
47 wfx_tx_unlock(wdev); in wfx_cooling_timeout_work()
50 void wfx_suspend_hot_dev(struct wfx_dev *wdev, enum sta_notify_cmd cmd) in wfx_suspend_hot_dev() argument
54 if (cancel_delayed_work(&wdev->cooling_timeout_work)) in wfx_suspend_hot_dev()
55 wfx_tx_unlock(wdev); in wfx_suspend_hot_dev()
58 schedule_delayed_work(&wdev->cooling_timeout_work, 10 * HZ); in wfx_suspend_hot_dev()
[all …]

12345678