Home
last modified time | relevance | path

Searched refs:wl (Results 1 – 153 of 153) sorted by relevance

/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dhw_ops.h29 wlcore_hw_calc_tx_blocks(struct wl1271 *wl, u32 len, u32 spare_blks) in wlcore_hw_calc_tx_blocks() argument
31 if (!wl->ops->calc_tx_blocks) in wlcore_hw_calc_tx_blocks()
34 return wl->ops->calc_tx_blocks(wl, len, spare_blks); in wlcore_hw_calc_tx_blocks()
38 wlcore_hw_set_tx_desc_blocks(struct wl1271 *wl, struct wl1271_tx_hw_descr *desc, in wlcore_hw_set_tx_desc_blocks() argument
41 if (!wl->ops->set_tx_desc_blocks) in wlcore_hw_set_tx_desc_blocks()
44 return wl->ops->set_tx_desc_blocks(wl, desc, blks, spare_blks); in wlcore_hw_set_tx_desc_blocks()
48 wlcore_hw_set_tx_desc_data_len(struct wl1271 *wl, in wlcore_hw_set_tx_desc_data_len() argument
52 if (!wl->ops->set_tx_desc_data_len) in wlcore_hw_set_tx_desc_data_len()
55 wl->ops->set_tx_desc_data_len(wl, desc, skb); in wlcore_hw_set_tx_desc_data_len()
59 wlcore_hw_get_rx_buf_align(struct wl1271 *wl, u32 rx_desc) in wlcore_hw_get_rx_buf_align() argument
[all …]
Dmain.c52 static void __wl1271_op_remove_interface(struct wl1271 *wl,
55 static void wlcore_op_stop_locked(struct wl1271 *wl);
56 static void wl1271_free_ap_keys(struct wl1271 *wl, struct wl12xx_vif *wlvif);
58 static int wl12xx_set_authorized(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl12xx_set_authorized() argument
71 ret = wl12xx_cmd_set_peer_state(wl, wlvif, wlvif->sta.hlid); in wl12xx_set_authorized()
83 struct wl1271 *wl = hw->priv; in wl1271_reg_notify() local
87 wl->dfs_region = request->dfs_region; in wl1271_reg_notify()
89 wlcore_regdomain_config(wl); in wl1271_reg_notify()
92 static int wl1271_set_rx_streaming(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_set_rx_streaming() argument
98 ret = wl1271_acx_ps_rx_streaming(wl, wlvif, enable); in wl1271_set_rx_streaming()
[all …]
Dio.h47 void wlcore_disable_interrupts(struct wl1271 *wl);
48 void wlcore_disable_interrupts_nosync(struct wl1271 *wl);
49 void wlcore_enable_interrupts(struct wl1271 *wl);
50 void wlcore_synchronize_interrupts(struct wl1271 *wl);
52 void wl1271_io_reset(struct wl1271 *wl);
53 void wl1271_io_init(struct wl1271 *wl);
54 int wlcore_translate_addr(struct wl1271 *wl, int addr);
57 static inline int __must_check wlcore_raw_write(struct wl1271 *wl, int addr, in wlcore_raw_write() argument
63 if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags) || in wlcore_raw_write()
64 WARN_ON((test_bit(WL1271_FLAG_IN_ELP, &wl->flags) && in wlcore_raw_write()
[all …]
Dtx.c43 static int wl1271_set_default_wep_key(struct wl1271 *wl, in wl1271_set_default_wep_key() argument
50 ret = wl12xx_cmd_set_default_wep_key(wl, id, in wl1271_set_default_wep_key()
53 ret = wl12xx_cmd_set_default_wep_key(wl, id, wlvif->sta.hlid); in wl1271_set_default_wep_key()
62 static int wl1271_alloc_tx_id(struct wl1271 *wl, struct sk_buff *skb) in wl1271_alloc_tx_id() argument
66 id = find_first_zero_bit(wl->tx_frames_map, wl->num_tx_desc); in wl1271_alloc_tx_id()
67 if (id >= wl->num_tx_desc) in wl1271_alloc_tx_id()
70 __set_bit(id, wl->tx_frames_map); in wl1271_alloc_tx_id()
71 wl->tx_frames[id] = skb; in wl1271_alloc_tx_id()
72 wl->tx_frames_cnt++; in wl1271_alloc_tx_id()
76 void wl1271_free_tx_id(struct wl1271 *wl, int id) in wl1271_free_tx_id() argument
[all …]
Dinit.c37 int wl1271_init_templates_config(struct wl1271 *wl) in wl1271_init_templates_config() argument
43 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
44 wl->scan_templ_id_2_4, NULL, in wl1271_init_templates_config()
50 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
51 wl->scan_templ_id_5, in wl1271_init_templates_config()
57 if (wl->quirks & WLCORE_QUIRK_DUAL_PROBE_TMPL) { in wl1271_init_templates_config()
58 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
59 wl->sched_scan_templ_id_2_4, in wl1271_init_templates_config()
66 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
67 wl->sched_scan_templ_id_5, in wl1271_init_templates_config()
[all …]
Dboot.c35 static int wl1271_boot_set_ecpu_ctrl(struct wl1271 *wl, u32 flag) in wl1271_boot_set_ecpu_ctrl() argument
41 ret = wlcore_read_reg(wl, REG_ECPU_CONTROL, &cpu_ctrl); in wl1271_boot_set_ecpu_ctrl()
47 ret = wlcore_write_reg(wl, REG_ECPU_CONTROL, cpu_ctrl); in wl1271_boot_set_ecpu_ctrl()
53 static int wlcore_boot_parse_fw_ver(struct wl1271 *wl, in wlcore_boot_parse_fw_ver() argument
58 strncpy(wl->chip.fw_ver_str, static_data->fw_version, in wlcore_boot_parse_fw_ver()
59 sizeof(wl->chip.fw_ver_str)); in wlcore_boot_parse_fw_ver()
62 wl->chip.fw_ver_str[sizeof(wl->chip.fw_ver_str) - 1] = '\0'; in wlcore_boot_parse_fw_ver()
64 ret = sscanf(wl->chip.fw_ver_str + 4, "%u.%u.%u.%u.%u", in wlcore_boot_parse_fw_ver()
65 &wl->chip.fw_ver[0], &wl->chip.fw_ver[1], in wlcore_boot_parse_fw_ver()
66 &wl->chip.fw_ver[2], &wl->chip.fw_ver[3], in wlcore_boot_parse_fw_ver()
[all …]
Dsysfs.c31 struct wl1271 *wl = dev_get_drvdata(dev); in wl1271_sysfs_show_bt_coex_state() local
36 mutex_lock(&wl->mutex); in wl1271_sysfs_show_bt_coex_state()
38 wl->sg_enabled); in wl1271_sysfs_show_bt_coex_state()
39 mutex_unlock(&wl->mutex); in wl1271_sysfs_show_bt_coex_state()
49 struct wl1271 *wl = dev_get_drvdata(dev); in wl1271_sysfs_store_bt_coex_state() local
59 mutex_lock(&wl->mutex); in wl1271_sysfs_store_bt_coex_state()
63 if (res == wl->sg_enabled) in wl1271_sysfs_store_bt_coex_state()
66 wl->sg_enabled = res; in wl1271_sysfs_store_bt_coex_state()
68 if (unlikely(wl->state != WLCORE_STATE_ON)) in wl1271_sysfs_store_bt_coex_state()
71 ret = wl1271_ps_elp_wakeup(wl); in wl1271_sysfs_store_bt_coex_state()
[all …]
Dps.c37 struct wl1271 *wl; in wl1271_elp_work() local
42 wl = container_of(dwork, struct wl1271, elp_work); in wl1271_elp_work()
46 mutex_lock(&wl->mutex); in wl1271_elp_work()
48 if (unlikely(wl->state != WLCORE_STATE_ON)) in wl1271_elp_work()
52 if (unlikely(!test_bit(WL1271_FLAG_ELP_REQUESTED, &wl->flags))) in wl1271_elp_work()
55 if (test_bit(WL1271_FLAG_IN_ELP, &wl->flags)) in wl1271_elp_work()
58 wl12xx_for_each_wlvif(wl, wlvif) { in wl1271_elp_work()
65 ret = wlcore_raw_write32(wl, HW_ACCESS_ELP_CTRL_REG, ELPCTRL_SLEEP); in wl1271_elp_work()
67 wl12xx_queue_recovery_work(wl); in wl1271_elp_work()
71 set_bit(WL1271_FLAG_IN_ELP, &wl->flags); in wl1271_elp_work()
[all …]
Devent.c32 void wlcore_event_rssi_trigger(struct wl1271 *wl, s8 *metric_arr) in wlcore_event_rssi_trigger() argument
42 wl12xx_for_each_wlvif_sta(wl, wlvif) { in wlcore_event_rssi_trigger()
56 static void wl1271_stop_ba_event(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl1271_stop_ba_event() argument
62 if (!wl->links[hlid].ba_bitmap) in wl1271_stop_ba_event()
64 ieee80211_stop_rx_ba_session(vif, wl->links[hlid].ba_bitmap, in wl1271_stop_ba_event()
70 wl->num_links) { in wl1271_stop_ba_event()
71 lnk = &wl->links[hlid]; in wl1271_stop_ba_event()
82 void wlcore_event_soft_gemini_sense(struct wl1271 *wl, u8 enable) in wlcore_event_soft_gemini_sense() argument
87 set_bit(WL1271_FLAG_SOFT_GEMINI, &wl->flags); in wlcore_event_soft_gemini_sense()
89 clear_bit(WL1271_FLAG_SOFT_GEMINI, &wl->flags); in wlcore_event_soft_gemini_sense()
[all …]
Ddebugfs.c59 void wl1271_debugfs_update_stats(struct wl1271 *wl) in wl1271_debugfs_update_stats() argument
63 mutex_lock(&wl->mutex); in wl1271_debugfs_update_stats()
65 if (unlikely(wl->state != WLCORE_STATE_ON)) in wl1271_debugfs_update_stats()
68 ret = wl1271_ps_elp_wakeup(wl); in wl1271_debugfs_update_stats()
72 if (!wl->plt && in wl1271_debugfs_update_stats()
73 time_after(jiffies, wl->stats.fw_stats_update + in wl1271_debugfs_update_stats()
75 wl1271_acx_statistics(wl, wl->stats.fw_stats); in wl1271_debugfs_update_stats()
76 wl->stats.fw_stats_update = jiffies; in wl1271_debugfs_update_stats()
79 wl1271_ps_elp_sleep(wl); in wl1271_debugfs_update_stats()
82 mutex_unlock(&wl->mutex); in wl1271_debugfs_update_stats()
[all …]
Dtestmode.c72 static int wl1271_tm_cmd_test(struct wl1271 *wl, struct nlattr *tb[]) in wl1271_tm_cmd_test() argument
93 mutex_lock(&wl->mutex); in wl1271_tm_cmd_test()
95 if (unlikely(wl->state != WLCORE_STATE_ON)) { in wl1271_tm_cmd_test()
100 ret = wl1271_ps_elp_wakeup(wl); in wl1271_tm_cmd_test()
104 ret = wl1271_cmd_test(wl, buf, buf_len, answer); in wl1271_tm_cmd_test()
126 skb = cfg80211_testmode_alloc_reply_skb(wl->hw->wiphy, len); in wl1271_tm_cmd_test()
144 wl1271_ps_elp_sleep(wl); in wl1271_tm_cmd_test()
146 mutex_unlock(&wl->mutex); in wl1271_tm_cmd_test()
151 static int wl1271_tm_cmd_interrogate(struct wl1271 *wl, struct nlattr *tb[]) in wl1271_tm_cmd_interrogate() argument
165 mutex_lock(&wl->mutex); in wl1271_tm_cmd_interrogate()
[all …]
Drx.c41 static u32 wlcore_rx_get_buf_size(struct wl1271 *wl, in wlcore_rx_get_buf_size() argument
44 if (wl->quirks & WLCORE_QUIRK_RX_BLOCKSIZE_ALIGN) in wlcore_rx_get_buf_size()
51 static u32 wlcore_rx_get_align_buf_size(struct wl1271 *wl, u32 pkt_len) in wlcore_rx_get_align_buf_size() argument
53 if (wl->quirks & WLCORE_QUIRK_RX_BLOCKSIZE_ALIGN) in wlcore_rx_get_align_buf_size()
59 static void wl1271_rx_status(struct wl1271 *wl, in wl1271_rx_status() argument
71 status->rate_idx = wlcore_rate_to_idx(wl, desc->rate, status->band); in wl1271_rx_status()
74 if (desc->rate <= wl->hw_min_ht_rate) in wl1271_rx_status()
91 wl->noise = desc->rssi - (desc->snr >> 1); in wl1271_rx_status()
110 wlcore_set_pending_regdomain_ch(wl, (u16)desc->channel, in wl1271_rx_status()
114 static int wl1271_rx_handle_data(struct wl1271 *wl, u8 *data, u32 length, in wl1271_rx_handle_data() argument
[all …]
Dwlcore.h49 int (*setup)(struct wl1271 *wl);
50 int (*identify_chip)(struct wl1271 *wl);
51 int (*identify_fw)(struct wl1271 *wl);
52 int (*boot)(struct wl1271 *wl);
53 int (*plt_init)(struct wl1271 *wl);
54 int (*trigger_cmd)(struct wl1271 *wl, int cmd_box_addr,
56 int (*ack_event)(struct wl1271 *wl);
57 int (*wait_for_event)(struct wl1271 *wl, enum wlcore_wait_event event,
59 int (*process_mailbox_events)(struct wl1271 *wl);
60 u32 (*calc_tx_blocks)(struct wl1271 *wl, u32 len, u32 spare_blks);
[all …]
Dio.c35 bool wl1271_set_block_size(struct wl1271 *wl) in wl1271_set_block_size() argument
37 if (wl->if_ops->set_block_size) { in wl1271_set_block_size()
38 wl->if_ops->set_block_size(wl->dev, WL12XX_BUS_BLOCK_SIZE); in wl1271_set_block_size()
45 void wlcore_disable_interrupts(struct wl1271 *wl) in wlcore_disable_interrupts() argument
47 disable_irq(wl->irq); in wlcore_disable_interrupts()
51 void wlcore_disable_interrupts_nosync(struct wl1271 *wl) in wlcore_disable_interrupts_nosync() argument
53 disable_irq_nosync(wl->irq); in wlcore_disable_interrupts_nosync()
57 void wlcore_enable_interrupts(struct wl1271 *wl) in wlcore_enable_interrupts() argument
59 enable_irq(wl->irq); in wlcore_enable_interrupts()
63 void wlcore_synchronize_interrupts(struct wl1271 *wl) in wlcore_synchronize_interrupts() argument
[all …]
Dcmd.c53 static int __wlcore_cmd_send(struct wl1271 *wl, u16 id, void *buf, in __wlcore_cmd_send() argument
63 if (unlikely(wl->state == WLCORE_STATE_RESTARTING && in __wlcore_cmd_send()
75 WARN_ON(test_bit(WL1271_FLAG_IN_ELP, &wl->flags)); in __wlcore_cmd_send()
77 ret = wlcore_write(wl, wl->cmd_box_addr, buf, len, false); in __wlcore_cmd_send()
85 ret = wl->ops->trigger_cmd(wl, wl->cmd_box_addr, buf, len); in __wlcore_cmd_send()
91 ret = wlcore_read_reg(wl, REG_INTERRUPT_NO_CLEAR, &intr); in __wlcore_cmd_send()
107 ret = wlcore_read_reg(wl, REG_INTERRUPT_NO_CLEAR, &intr); in __wlcore_cmd_send()
116 ret = wlcore_read(wl, wl->cmd_box_addr, cmd, res_len, false); in __wlcore_cmd_send()
122 ret = wlcore_write_reg(wl, REG_INTERRUPT_ACK, in __wlcore_cmd_send()
134 static int wlcore_cmd_send_failsafe(struct wl1271 *wl, u16 id, void *buf, in wlcore_cmd_send_failsafe() argument
[all …]
Dscan.c37 struct wl1271 *wl; in wl1271_scan_complete_work() local
42 wl = container_of(dwork, struct wl1271, scan_complete_work); in wl1271_scan_complete_work()
46 mutex_lock(&wl->mutex); in wl1271_scan_complete_work()
48 if (unlikely(wl->state != WLCORE_STATE_ON)) in wl1271_scan_complete_work()
51 if (wl->scan.state == WL1271_SCAN_STATE_IDLE) in wl1271_scan_complete_work()
54 wlvif = wl->scan_wlvif; in wl1271_scan_complete_work()
60 wl12xx_rearm_tx_watchdog_locked(wl); in wl1271_scan_complete_work()
62 wl->scan.state = WL1271_SCAN_STATE_IDLE; in wl1271_scan_complete_work()
63 memset(wl->scan.scanned_ch, 0, sizeof(wl->scan.scanned_ch)); in wl1271_scan_complete_work()
64 wl->scan.req = NULL; in wl1271_scan_complete_work()
[all …]
Dacx.c37 int wl1271_acx_wake_up_conditions(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_wake_up_conditions() argument
56 ret = wl1271_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS, in wl1271_acx_wake_up_conditions()
68 int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth) in wl1271_acx_sleep_auth() argument
83 ret = wl1271_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth)); in wl1271_acx_sleep_auth()
90 wl->sleep_auth = sleep_auth; in wl1271_acx_sleep_auth()
97 int wl1271_acx_tx_power(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_tx_power() argument
117 ret = wl1271_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx)); in wl1271_acx_tx_power()
128 int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl1271_acx_feature_cfg() argument
146 ret = wl1271_cmd_configure(wl, ACX_FEATURE_CFG, in wl1271_acx_feature_cfg()
158 int wl1271_acx_mem_map(struct wl1271 *wl, struct acx_header *mem_map, in wl1271_acx_mem_map() argument
[all …]
Dtx.h233 static inline int wl1271_tx_total_queue_count(struct wl1271 *wl) in wl1271_tx_total_queue_count() argument
238 count += wl->tx_queue_count[i]; in wl1271_tx_total_queue_count()
244 int wlcore_tx_work_locked(struct wl1271 *wl);
245 int wlcore_tx_complete(struct wl1271 *wl);
246 void wl12xx_tx_reset_wlvif(struct wl1271 *wl, struct wl12xx_vif *wlvif);
247 void wl12xx_tx_reset(struct wl1271 *wl);
248 void wl1271_tx_flush(struct wl1271 *wl);
249 u8 wlcore_rate_to_idx(struct wl1271 *wl, u8 rate, enum ieee80211_band band);
250 u32 wl1271_tx_enabled_rates_get(struct wl1271 *wl, u32 rate_set,
252 u32 wl1271_tx_min_rate_get(struct wl1271 *wl, u32 rate_set);
[all …]
Dvendor_cmd.c34 struct wl1271 *wl = hw->priv; in wlcore_vendor_cmd_smart_config_start() local
51 mutex_lock(&wl->mutex); in wlcore_vendor_cmd_smart_config_start()
53 if (unlikely(wl->state != WLCORE_STATE_ON)) { in wlcore_vendor_cmd_smart_config_start()
58 ret = wl1271_ps_elp_wakeup(wl); in wlcore_vendor_cmd_smart_config_start()
62 ret = wlcore_smart_config_start(wl, in wlcore_vendor_cmd_smart_config_start()
65 wl1271_ps_elp_sleep(wl); in wlcore_vendor_cmd_smart_config_start()
67 mutex_unlock(&wl->mutex); in wlcore_vendor_cmd_smart_config_start()
78 struct wl1271 *wl = hw->priv; in wlcore_vendor_cmd_smart_config_stop() local
83 mutex_lock(&wl->mutex); in wlcore_vendor_cmd_smart_config_stop()
85 if (unlikely(wl->state != WLCORE_STATE_ON)) { in wlcore_vendor_cmd_smart_config_stop()
[all …]
Devent.h69 int wl1271_event_unmask(struct wl1271 *wl);
70 int wl1271_event_handle(struct wl1271 *wl, u8 mbox);
72 void wlcore_event_soft_gemini_sense(struct wl1271 *wl, u8 enable);
73 void wlcore_event_sched_scan_completed(struct wl1271 *wl,
75 void wlcore_event_ba_rx_constraint(struct wl1271 *wl,
78 void wlcore_event_channel_switch(struct wl1271 *wl,
81 void wlcore_event_beacon_loss(struct wl1271 *wl, unsigned long roles_bitmap);
82 void wlcore_event_dummy_packet(struct wl1271 *wl);
83 void wlcore_event_max_tx_failure(struct wl1271 *wl, unsigned long sta_bitmap);
84 void wlcore_event_inactive_sta(struct wl1271 *wl, unsigned long sta_bitmap);
[all …]
Dinit.h29 int wl1271_hw_init_power_auth(struct wl1271 *wl);
30 int wl1271_init_templates_config(struct wl1271 *wl);
31 int wl1271_init_pta(struct wl1271 *wl);
32 int wl1271_init_energy_detection(struct wl1271 *wl);
33 int wl1271_chip_specific_init(struct wl1271 *wl);
34 int wl1271_hw_init(struct wl1271 *wl);
35 int wl1271_init_vif_specific(struct wl1271 *wl, struct ieee80211_vif *vif);
36 int wl1271_init_ap_rates(struct wl1271 *wl, struct wl12xx_vif *wlvif);
37 int wl1271_ap_init_templates(struct wl1271 *wl, struct ieee80211_vif *vif);
38 int wl1271_sta_hw_init(struct wl1271 *wl, struct wl12xx_vif *wlvif);
Dcmd.h32 int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len,
34 int wl12xx_cmd_role_enable(struct wl1271 *wl, u8 *addr, u8 role_type,
36 int wl12xx_cmd_role_disable(struct wl1271 *wl, u8 *role_id);
37 int wl12xx_cmd_role_start_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif);
38 int wl12xx_cmd_role_stop_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif);
39 int wl12xx_cmd_role_start_ap(struct wl1271 *wl, struct wl12xx_vif *wlvif);
40 int wl12xx_cmd_role_stop_ap(struct wl1271 *wl, struct wl12xx_vif *wlvif);
41 int wl12xx_cmd_role_start_ibss(struct wl1271 *wl, struct wl12xx_vif *wlvif);
42 int wl12xx_start_dev(struct wl1271 *wl, struct wl12xx_vif *wlvif,
44 int wl12xx_stop_dev(struct wl1271 *wl, struct wl12xx_vif *wlvif);
[all …]
Dacx.h1042 int wl1271_acx_wake_up_conditions(struct wl1271 *wl,
1045 int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth);
1046 int wl1271_acx_tx_power(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1048 int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif);
1049 int wl1271_acx_mem_map(struct wl1271 *wl,
1051 int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl);
1052 int wl1271_acx_slot(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1054 int wl1271_acx_group_address_tbl(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1056 int wl1271_acx_service_period_timeout(struct wl1271 *wl,
1058 int wl1271_acx_rts_threshold(struct wl1271 *wl, struct wl12xx_vif *wlvif,
[all …]
Ddebugfs.h32 int wl1271_debugfs_init(struct wl1271 *wl);
33 void wl1271_debugfs_exit(struct wl1271 *wl);
34 void wl1271_debugfs_reset(struct wl1271 *wl);
35 void wl1271_debugfs_update_stats(struct wl1271 *wl);
43 struct wl1271 *wl = file->private_data; \
57 wl, &name## _ops); \
66 wl, &prefix## _## name## _ops); \
76 struct wl1271 *wl = file->private_data; \
77 struct struct_type *stats = wl->stats.fw_stats; \
79 wl1271_debugfs_update_stats(wl); \
[all …]
Dwlcore_i.h341 struct wl1271 *wl; member
511 #define wl12xx_for_each_wlvif(wl, wlvif) \ argument
512 list_for_each_entry(wlvif, &wl->wlvif_list, list)
514 #define wl12xx_for_each_wlvif_continue(wl, wlvif) \ argument
515 list_for_each_entry_continue(wlvif, &wl->wlvif_list, list)
517 #define wl12xx_for_each_wlvif_bss_type(wl, wlvif, _bss_type) \ argument
518 wl12xx_for_each_wlvif(wl, wlvif) \
521 #define wl12xx_for_each_wlvif_sta(wl, wlvif) \ argument
522 wl12xx_for_each_wlvif_bss_type(wl, wlvif, BSS_TYPE_STA_BSS)
524 #define wl12xx_for_each_wlvif_ap(wl, wlvif) \ argument
[all …]
Dscan.h29 int wlcore_scan(struct wl1271 *wl, struct ieee80211_vif *vif,
32 int wl1271_scan_build_probe_req(struct wl1271 *wl,
35 void wl1271_scan_stm(struct wl1271 *wl, struct wl12xx_vif *wlvif);
37 int wl1271_scan_sched_scan_config(struct wl1271 *wl,
41 int wl1271_scan_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif);
42 void wlcore_scan_sched_scan_results(struct wl1271 *wl);
166 wlcore_set_scan_chan_params(struct wl1271 *wl,
174 wlcore_scan_sched_scan_ssid_list(struct wl1271 *wl,
Dps.h30 int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
32 void wl1271_ps_elp_sleep(struct wl1271 *wl);
33 int wl1271_ps_elp_wakeup(struct wl1271 *wl);
35 void wl12xx_ps_link_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
37 void wl12xx_ps_link_end(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 hlid);
Dboot.h29 int wlcore_boot_upload_firmware(struct wl1271 *wl);
30 int wlcore_boot_upload_nvs(struct wl1271 *wl);
31 int wlcore_boot_run_firmware(struct wl1271 *wl);
Dsysfs.h25 int wlcore_sysfs_init(struct wl1271 *wl);
26 void wlcore_sysfs_free(struct wl1271 *wl);
Drx.h148 int wlcore_rx(struct wl1271 *wl, struct wl_fw_status *status);
150 int wl1271_rx_filter_enable(struct wl1271 *wl,
153 int wl1271_rx_filter_clear_all(struct wl1271 *wl);
Dspi.c171 struct wl1271 *wl = dev_get_drvdata(child); in wl12xx_spi_read_busy() local
183 busy_buf = wl->buffer_busyword; in wl12xx_spi_read_busy()
207 struct wl1271 *wl = dev_get_drvdata(child); in wl12xx_spi_raw_read() local
217 cmd = &wl->buffer_cmd; in wl12xx_spi_raw_read()
218 busy_buf = wl->buffer_busyword; in wl12xx_spi_raw_read()
Dsdio.c387 struct wl1271 *wl = platform_get_drvdata(glue->core); in wl1271_suspend() local
392 wl->wow_enabled); in wl1271_suspend()
395 if (wl->wow_enabled) { in wl1271_suspend()
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
Dmain.c46 void wl1251_enable_interrupts(struct wl1251 *wl) in wl1251_enable_interrupts() argument
48 wl->if_ops->enable_irq(wl); in wl1251_enable_interrupts()
51 void wl1251_disable_interrupts(struct wl1251 *wl) in wl1251_disable_interrupts() argument
53 wl->if_ops->disable_irq(wl); in wl1251_disable_interrupts()
56 static int wl1251_power_off(struct wl1251 *wl) in wl1251_power_off() argument
58 return wl->if_ops->power(wl, false); in wl1251_power_off()
61 static int wl1251_power_on(struct wl1251 *wl) in wl1251_power_on() argument
63 return wl->if_ops->power(wl, true); in wl1251_power_on()
66 static int wl1251_fetch_firmware(struct wl1251 *wl) in wl1251_fetch_firmware() argument
69 struct device *dev = wiphy_dev(wl->hw->wiphy); in wl1251_fetch_firmware()
[all …]
Dboot.c31 void wl1251_boot_target_enable_interrupts(struct wl1251 *wl) in wl1251_boot_target_enable_interrupts() argument
33 wl1251_reg_write32(wl, ACX_REG_INTERRUPT_MASK, ~(wl->intr_mask)); in wl1251_boot_target_enable_interrupts()
34 wl1251_reg_write32(wl, HI_CFG, HI_CFG_DEF_VAL); in wl1251_boot_target_enable_interrupts()
37 int wl1251_boot_soft_reset(struct wl1251 *wl) in wl1251_boot_soft_reset() argument
43 wl1251_reg_write32(wl, ACX_REG_SLV_SOFT_RESET, ACX_SLV_SOFT_RESET_BIT); in wl1251_boot_soft_reset()
48 boot_data = wl1251_reg_read32(wl, ACX_REG_SLV_SOFT_RESET); in wl1251_boot_soft_reset()
64 wl1251_reg_write32(wl, ENABLE, 0x0); in wl1251_boot_soft_reset()
67 wl1251_reg_write32(wl, SPARE_A2, 0xffff); in wl1251_boot_soft_reset()
72 int wl1251_boot_init_seq(struct wl1251 *wl) in wl1251_boot_init_seq() argument
94 scr_pad6 = wl1251_reg_read32(wl, SCR_PAD6); in wl1251_boot_init_seq()
[all …]
Dinit.c32 int wl1251_hw_init_hwenc_config(struct wl1251 *wl) in wl1251_hw_init_hwenc_config() argument
36 ret = wl1251_acx_feature_cfg(wl, 0); in wl1251_hw_init_hwenc_config()
42 ret = wl1251_acx_default_key(wl, wl->default_key); in wl1251_hw_init_hwenc_config()
51 int wl1251_hw_init_templates_config(struct wl1251 *wl) in wl1251_hw_init_templates_config() argument
57 ret = wl1251_cmd_template_set(wl, CMD_PROBE_REQ, NULL, in wl1251_hw_init_templates_config()
62 ret = wl1251_cmd_template_set(wl, CMD_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
67 ret = wl1251_cmd_template_set(wl, CMD_PS_POLL, NULL, in wl1251_hw_init_templates_config()
72 ret = wl1251_cmd_template_set(wl, CMD_QOS_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
78 ret = wl1251_cmd_template_set(wl, CMD_PROBE_RESP, NULL, in wl1251_hw_init_templates_config()
84 ret = wl1251_cmd_template_set(wl, CMD_BEACON, NULL, in wl1251_hw_init_templates_config()
[all …]
Devent.c29 static int wl1251_event_scan_complete(struct wl1251 *wl, in wl1251_event_scan_complete() argument
38 if (wl->scanning) { in wl1251_event_scan_complete()
39 ieee80211_scan_completed(wl->hw, false); in wl1251_event_scan_complete()
41 wl->scanning = false; in wl1251_event_scan_complete()
42 if (wl->hw->conf.flags & IEEE80211_CONF_IDLE) in wl1251_event_scan_complete()
43 ret = wl1251_ps_set_mode(wl, STATION_IDLE); in wl1251_event_scan_complete()
50 static int wl1251_event_ps_report(struct wl1251 *wl, in wl1251_event_ps_report() argument
61 if (wl->station_mode != STATION_POWER_SAVE_MODE) { in wl1251_event_ps_report()
63 wl->psm_entry_retry = 0; in wl1251_event_ps_report()
67 if (wl->psm_entry_retry < WL1251_PSM_ENTRY_RETRIES) { in wl1251_event_ps_report()
[all …]
Dio.h37 static inline u32 wl1251_read32(struct wl1251 *wl, int addr) in wl1251_read32() argument
39 wl->if_ops->read(wl, addr, &wl->buffer_32, sizeof(wl->buffer_32)); in wl1251_read32()
41 return le32_to_cpu(wl->buffer_32); in wl1251_read32()
44 static inline void wl1251_write32(struct wl1251 *wl, int addr, u32 val) in wl1251_write32() argument
46 wl->buffer_32 = cpu_to_le32(val); in wl1251_write32()
47 wl->if_ops->write(wl, addr, &wl->buffer_32, sizeof(wl->buffer_32)); in wl1251_write32()
50 static inline u32 wl1251_read_elp(struct wl1251 *wl, int addr) in wl1251_read_elp() argument
54 if (wl->if_ops->read_elp) in wl1251_read_elp()
55 wl->if_ops->read_elp(wl, addr, &response); in wl1251_read_elp()
57 wl->if_ops->read(wl, addr, &response, sizeof(u32)); in wl1251_read_elp()
[all …]
Dtx.c33 static bool wl1251_tx_double_buffer_busy(struct wl1251 *wl, u32 data_out_count) in wl1251_tx_double_buffer_busy() argument
37 data_in_count = wl->data_in_count; in wl1251_tx_double_buffer_busy()
54 static int wl1251_tx_path_status(struct wl1251 *wl) in wl1251_tx_path_status() argument
59 addr = wl->data_path->tx_control_addr; in wl1251_tx_path_status()
60 status = wl1251_mem_read32(wl, addr); in wl1251_tx_path_status()
62 busy = wl1251_tx_double_buffer_busy(wl, data_out_count); in wl1251_tx_path_status()
70 static int wl1251_tx_id(struct wl1251 *wl, struct sk_buff *skb) in wl1251_tx_id() argument
75 if (wl->tx_frames[i] == NULL) { in wl1251_tx_id()
76 wl->tx_frames[i] = skb; in wl1251_tx_id()
148 static int wl1251_tx_fill_hdr(struct wl1251 *wl, struct sk_buff *skb, in wl1251_tx_fill_hdr() argument
[all …]
Dps.c33 struct wl1251 *wl; in wl1251_elp_work() local
36 wl = container_of(dwork, struct wl1251, elp_work); in wl1251_elp_work()
40 mutex_lock(&wl->mutex); in wl1251_elp_work()
42 if (wl->elp || wl->station_mode == STATION_ACTIVE_MODE) in wl1251_elp_work()
46 wl1251_write_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_SLEEP); in wl1251_elp_work()
47 wl->elp = true; in wl1251_elp_work()
50 mutex_unlock(&wl->mutex); in wl1251_elp_work()
56 void wl1251_ps_elp_sleep(struct wl1251 *wl) in wl1251_ps_elp_sleep() argument
60 if (wl->station_mode != STATION_ACTIVE_MODE) { in wl1251_ps_elp_sleep()
62 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay); in wl1251_ps_elp_sleep()
[all …]
Dsdio.c48 static struct sdio_func *wl_to_func(struct wl1251 *wl) in wl_to_func() argument
50 struct wl1251_sdio *wl_sdio = wl->if_priv; in wl_to_func()
56 struct wl1251 *wl = sdio_get_drvdata(func); in wl1251_sdio_interrupt() local
61 ieee80211_queue_work(wl->hw, &wl->irq_work); in wl1251_sdio_interrupt()
71 static void wl1251_sdio_read(struct wl1251 *wl, int addr, in wl1251_sdio_read() argument
75 struct sdio_func *func = wl_to_func(wl); in wl1251_sdio_read()
84 static void wl1251_sdio_write(struct wl1251 *wl, int addr, in wl1251_sdio_write() argument
88 struct sdio_func *func = wl_to_func(wl); in wl1251_sdio_write()
97 static void wl1251_sdio_read_elp(struct wl1251 *wl, int addr, u32 *val) in wl1251_sdio_read_elp() argument
100 struct wl1251_sdio *wl_sdio = wl->if_priv; in wl1251_sdio_read_elp()
[all …]
Dspi.c41 struct wl1251 *wl; in wl1251_irq() local
45 wl = cookie; in wl1251_irq()
47 ieee80211_queue_work(wl->hw, &wl->irq_work); in wl1251_irq()
52 static struct spi_device *wl_to_spi(struct wl1251 *wl) in wl_to_spi() argument
54 return wl->if_priv; in wl_to_spi()
57 static void wl1251_spi_reset(struct wl1251 *wl) in wl1251_spi_reset() argument
78 spi_sync(wl_to_spi(wl), &m); in wl1251_spi_reset()
85 static void wl1251_spi_wake(struct wl1251 *wl) in wl1251_spi_wake() argument
130 spi_sync(wl_to_spi(wl), &m); in wl1251_spi_wake()
137 static void wl1251_spi_reset_wake(struct wl1251 *wl) in wl1251_spi_reset_wake() argument
[all …]
Dio.c41 static int wl1251_translate_reg_addr(struct wl1251 *wl, int addr) in wl1251_translate_reg_addr() argument
55 return addr - wl->physical_reg_addr + wl->virtual_reg_addr; in wl1251_translate_reg_addr()
58 static int wl1251_translate_mem_addr(struct wl1251 *wl, int addr) in wl1251_translate_mem_addr() argument
60 return addr - wl->physical_mem_addr + wl->virtual_mem_addr; in wl1251_translate_mem_addr()
63 void wl1251_mem_read(struct wl1251 *wl, int addr, void *buf, size_t len) in wl1251_mem_read() argument
67 physical = wl1251_translate_mem_addr(wl, addr); in wl1251_mem_read()
69 wl->if_ops->read(wl, physical, buf, len); in wl1251_mem_read()
72 void wl1251_mem_write(struct wl1251 *wl, int addr, void *buf, size_t len) in wl1251_mem_write() argument
76 physical = wl1251_translate_mem_addr(wl, addr); in wl1251_mem_write()
78 wl->if_ops->write(wl, physical, buf, len); in wl1251_mem_write()
[all …]
Drx.c34 static void wl1251_rx_header(struct wl1251 *wl, in wl1251_rx_header() argument
39 rx_packet_ring_addr = wl->data_path->rx_packet_ring_addr; in wl1251_rx_header()
40 if (wl->rx_current_buffer) in wl1251_rx_header()
41 rx_packet_ring_addr += wl->data_path->rx_packet_ring_chunk_size; in wl1251_rx_header()
43 wl1251_mem_read(wl, rx_packet_ring_addr, desc, sizeof(*desc)); in wl1251_rx_header()
46 static void wl1251_rx_status(struct wl1251 *wl, in wl1251_rx_status() argument
67 if ((wl->bss_type == BSS_TYPE_IBSS) && beacon) { in wl1251_rx_status()
68 ret = wl1251_acx_tsf_info(wl, &mactime); in wl1251_rx_status()
79 wl->noise = desc->rssi - desc->snr / 2; in wl1251_rx_status()
86 if (!wl->monitor_present && (desc->flags & RX_DESC_ENCRYPTION_MASK)) { in wl1251_rx_status()
[all …]
Ddebugfs.c40 struct wl1251 *wl = file->private_data; \
55 wl->debugfs.name = debugfs_create_file(#name, 0400, parent, \
56 wl, &name## _ops); \
57 if (IS_ERR(wl->debugfs.name)) { \
58 ret = PTR_ERR(wl->debugfs.name); \
59 wl->debugfs.name = NULL; \
65 debugfs_remove(wl->debugfs.name); \
66 wl->debugfs.name = NULL; \
74 struct wl1251 *wl = file->private_data; \
78 wl1251_debugfs_update_stats(wl); \
[all …]
Dacx.c11 int wl1251_acx_frame_rates(struct wl1251 *wl, u8 ctrl_rate, u8 ctrl_mod, in wl1251_acx_frame_rates() argument
28 ret = wl1251_cmd_configure(wl, ACX_FW_GEN_FRAME_RATES, in wl1251_acx_frame_rates()
41 int wl1251_acx_station_id(struct wl1251 *wl) in wl1251_acx_station_id() argument
53 mac->mac[i] = wl->mac_addr[ETH_ALEN - 1 - i]; in wl1251_acx_station_id()
55 ret = wl1251_cmd_configure(wl, DOT11_STATION_ID, mac, sizeof(*mac)); in wl1251_acx_station_id()
61 int wl1251_acx_default_key(struct wl1251 *wl, u8 key_id) in wl1251_acx_default_key() argument
74 ret = wl1251_cmd_configure(wl, DOT11_DEFAULT_KEY, in wl1251_acx_default_key()
81 wl->default_key = key_id; in wl1251_acx_default_key()
88 int wl1251_acx_wake_up_conditions(struct wl1251 *wl, u8 wake_up_event, in wl1251_acx_wake_up_conditions() argument
103 ret = wl1251_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS, in wl1251_acx_wake_up_conditions()
[all …]
Dcmd.c21 int wl1251_cmd_send(struct wl1251 *wl, u16 id, void *buf, size_t len) in wl1251_cmd_send() argument
34 wl1251_mem_write(wl, wl->cmd_box_addr, buf, len); in wl1251_cmd_send()
36 wl1251_reg_write32(wl, ACX_REG_INTERRUPT_TRIG, INTR_TRIG_CMD); in wl1251_cmd_send()
40 intr = wl1251_reg_read32(wl, ACX_REG_INTERRUPT_NO_CLEAR); in wl1251_cmd_send()
50 intr = wl1251_reg_read32(wl, ACX_REG_INTERRUPT_NO_CLEAR); in wl1251_cmd_send()
53 wl1251_reg_write32(wl, ACX_REG_INTERRUPT_ACK, in wl1251_cmd_send()
68 int wl1251_cmd_test(struct wl1251 *wl, void *buf, size_t buf_len, u8 answer) in wl1251_cmd_test() argument
74 ret = wl1251_cmd_send(wl, CMD_TEST, buf, buf_len); in wl1251_cmd_test()
89 wl1251_mem_read(wl, wl->cmd_box_addr, buf, buf_len); in wl1251_cmd_test()
109 int wl1251_cmd_interrogate(struct wl1251 *wl, u16 id, void *buf, size_t len) in wl1251_cmd_interrogate() argument
[all …]
Dinit.h74 int wl1251_hw_init_hwenc_config(struct wl1251 *wl);
75 int wl1251_hw_init_templates_config(struct wl1251 *wl);
76 int wl1251_hw_init_rx_config(struct wl1251 *wl, u32 config, u32 filter);
77 int wl1251_hw_init_phy_config(struct wl1251 *wl);
78 int wl1251_hw_init_beacon_filter(struct wl1251 *wl);
79 int wl1251_hw_init_pta(struct wl1251 *wl);
80 int wl1251_hw_init_energy_detection(struct wl1251 *wl);
81 int wl1251_hw_init_beacon_broadcast(struct wl1251 *wl);
82 int wl1251_hw_init_power_auth(struct wl1251 *wl);
83 int wl1251_hw_init_mem_config(struct wl1251 *wl);
[all …]
Dacx.h1448 int wl1251_acx_frame_rates(struct wl1251 *wl, u8 ctrl_rate, u8 ctrl_mod,
1450 int wl1251_acx_station_id(struct wl1251 *wl);
1451 int wl1251_acx_default_key(struct wl1251 *wl, u8 key_id);
1452 int wl1251_acx_wake_up_conditions(struct wl1251 *wl, u8 wake_up_event,
1454 int wl1251_acx_sleep_auth(struct wl1251 *wl, u8 sleep_auth);
1455 int wl1251_acx_fw_version(struct wl1251 *wl, char *buf, size_t len);
1456 int wl1251_acx_tx_power(struct wl1251 *wl, int power);
1457 int wl1251_acx_feature_cfg(struct wl1251 *wl, u32 data_flow_options);
1458 int wl1251_acx_mem_map(struct wl1251 *wl,
1460 int wl1251_acx_data_path_params(struct wl1251 *wl,
[all …]
Dboot.h27 int wl1251_boot_soft_reset(struct wl1251 *wl);
28 int wl1251_boot_init_seq(struct wl1251 *wl);
29 int wl1251_boot_run_firmware(struct wl1251 *wl);
30 void wl1251_boot_target_enable_interrupts(struct wl1251 *wl);
31 int wl1251_boot(struct wl1251 *wl);
Dcmd.h32 int wl1251_cmd_send(struct wl1251 *wl, u16 type, void *buf, size_t buf_len);
33 int wl1251_cmd_test(struct wl1251 *wl, void *buf, size_t buf_len, u8 answer);
34 int wl1251_cmd_interrogate(struct wl1251 *wl, u16 id, void *buf, size_t len);
35 int wl1251_cmd_configure(struct wl1251 *wl, u16 id, void *buf, size_t len);
36 int wl1251_cmd_vbm(struct wl1251 *wl, u8 identity,
38 int wl1251_cmd_data_path_rx(struct wl1251 *wl, u8 channel, bool enable);
39 int wl1251_cmd_data_path_tx(struct wl1251 *wl, u8 channel, bool enable);
40 int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u8 channel,
42 int wl1251_cmd_ps_mode(struct wl1251 *wl, u8 ps_mode);
43 int wl1251_cmd_read_memory(struct wl1251 *wl, u32 addr, void *answer,
[all …]
Dwl1251.h262 void (*read)(struct wl1251 *wl, int addr, void *buf, size_t len);
263 void (*write)(struct wl1251 *wl, int addr, void *buf, size_t len);
264 void (*read_elp)(struct wl1251 *wl, int addr, u32 *val);
265 void (*write_elp)(struct wl1251 *wl, int addr, u32 val);
266 int (*power)(struct wl1251 *wl, bool enable);
267 void (*reset)(struct wl1251 *wl);
268 void (*enable_irq)(struct wl1251 *wl);
269 void (*disable_irq)(struct wl1251 *wl);
404 int wl1251_plt_start(struct wl1251 *wl);
405 int wl1251_plt_stop(struct wl1251 *wl);
[all …]
Ddebugfs.h27 int wl1251_debugfs_init(struct wl1251 *wl);
28 void wl1251_debugfs_exit(struct wl1251 *wl);
29 void wl1251_debugfs_reset(struct wl1251 *wl);
Dps.h29 int wl1251_ps_set_mode(struct wl1251 *wl, enum wl1251_station_mode mode);
30 void wl1251_ps_elp_sleep(struct wl1251 *wl);
31 int wl1251_ps_elp_wakeup(struct wl1251 *wl);
Devent.h122 int wl1251_event_unmask(struct wl1251 *wl);
123 void wl1251_event_mbox_config(struct wl1251 *wl);
124 int wl1251_event_handle(struct wl1251 *wl, u8 mbox);
125 int wl1251_event_wait(struct wl1251 *wl, u32 mask, int timeout_ms);
Dtx.h228 void wl1251_tx_complete(struct wl1251 *wl);
229 void wl1251_tx_flush(struct wl1251 *wl);
Drx.h120 void wl1251_rx(struct wl1251 *wl);
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Dmac80211_if.c287 static void brcms_free(struct brcms_info *wl) in brcms_free() argument
292 if (wl->fw.fw_cnt) in brcms_free()
293 brcms_ucode_data_free(&wl->ucode); in brcms_free()
294 if (wl->irq) in brcms_free()
295 free_irq(wl->irq, wl); in brcms_free()
298 tasklet_kill(&wl->tasklet); in brcms_free()
300 if (wl->pub) { in brcms_free()
301 brcms_debugfs_detach(wl->pub); in brcms_free()
302 brcms_c_module_unregister(wl->pub, "linux", wl); in brcms_free()
306 if (wl->wlc) { in brcms_free()
[all …]
Dled.c19 static void brcms_radio_led_ctrl(struct brcms_info *wl, bool state) in brcms_radio_led_ctrl() argument
21 if (wl->radio_led.gpio == -1) in brcms_radio_led_ctrl()
24 if (wl->radio_led.active_low) in brcms_radio_led_ctrl()
28 gpio_set_value(wl->radio_led.gpio, 1); in brcms_radio_led_ctrl()
30 gpio_set_value(wl->radio_led.gpio, 0); in brcms_radio_led_ctrl()
38 struct brcms_info *wl = container_of(led_dev, in brcms_led_brightness_set() local
40 brcms_radio_led_ctrl(wl, brightness); in brcms_led_brightness_set()
43 void brcms_led_unregister(struct brcms_info *wl) in brcms_led_unregister() argument
45 if (wl->led_dev.dev) in brcms_led_unregister()
46 led_classdev_unregister(&wl->led_dev); in brcms_led_unregister()
[all …]
Ducode_loader.c40 int brcms_ucode_data_init(struct brcms_info *wl, struct brcms_ucode *ucode) in brcms_ucode_data_init() argument
44 rc = brcms_check_firmwares(wl); in brcms_ucode_data_init()
47 brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn0bsinitvals24, in brcms_ucode_data_init()
50 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn0initvals24, in brcms_ucode_data_init()
53 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn1bsinitvals24, in brcms_ucode_data_init()
56 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn1initvals24, in brcms_ucode_data_init()
59 brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn2bsinitvals24, in brcms_ucode_data_init()
62 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn2initvals24, in brcms_ucode_data_init()
65 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11n0absinitvals16, in brcms_ucode_data_init()
68 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11n0bsinitvals16, in brcms_ucode_data_init()
[all …]
Dmac80211_if.h38 struct brcms_info *wl; member
91 void brcms_init(struct brcms_info *wl);
92 uint brcms_reset(struct brcms_info *wl);
93 void brcms_intrson(struct brcms_info *wl);
94 u32 brcms_intrsoff(struct brcms_info *wl);
95 void brcms_intrsrestore(struct brcms_info *wl, u32 macintmask);
96 int brcms_up(struct brcms_info *wl);
97 void brcms_down(struct brcms_info *wl);
98 void brcms_txflowcontrol(struct brcms_info *wl, struct brcms_if *wlif,
100 bool brcms_rfkill_set_hw_state(struct brcms_info *wl);
[all …]
Dled.h26 void brcms_led_unregister(struct brcms_info *wl);
27 int brcms_led_register(struct brcms_info *wl);
29 static inline void brcms_led_unregister(struct brcms_info *wl) {}; in brcms_led_unregister() argument
30 static inline int brcms_led_register(struct brcms_info *wl) in brcms_led_register() argument
Dphy_shim.c35 struct brcms_info *wl; /* pointer to os-specific private state */ member
39 struct brcms_info *wl, in wlc_phy_shim_attach() argument
49 physhim->wl = wl; in wlc_phy_shim_attach()
64 brcms_init_timer(physhim->wl, (void (*)(void *))fn, in wlapi_init_timer()
86 brcms_intrson(physhim->wl); in wlapi_intrson()
91 return brcms_intrsoff(physhim->wl); in wlapi_intrsoff()
96 brcms_intrsrestore(physhim->wl, macintmask); in wlapi_intrsrestore()
Ducode_loader.h46 int brcms_ucode_data_init(struct brcms_info *wl, struct brcms_ucode *ucode);
50 int brcms_ucode_init_buf(struct brcms_info *wl, void **pbuf, unsigned int idx);
51 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes,
54 int brcms_check_firmwares(struct brcms_info *wl);
Ddebug.c111 struct brcms_info *wl = drvr->ieee_hw->priv; in brcms_debugfs_macstat_read() local
115 spin_lock_bh(&wl->lock); in brcms_debugfs_macstat_read()
117 spin_unlock_bh(&wl->lock); in brcms_debugfs_macstat_read()
Dmain.c717 struct brcms_ucode *ucode = &wlc_hw->wlc->wl->ucode; in brcms_c_ucode_bsinit()
819 macintmask = brcms_intrsoff(wlc->wl); in brcms_c_setband_inact()
1853 brcms_intrsrestore(wlc->wl, macintmask); in brcms_b_setband()
2281 struct brcms_ucode *ucode = &wlc_hw->wlc->wl->ucode; in brcms_ucode_download()
2391 brcms_fatal_error(wlc_hw->wlc->wl); /* big hammer */ in brcms_b_fifoerrors()
2668 brcms_down(wlc->wl); in brcms_c_suspend_mac_and_wait()
2679 brcms_down(wlc->wl); in brcms_c_suspend_mac_and_wait()
2704 brcms_down(wlc->wl); in brcms_c_suspend_mac_and_wait()
3189 struct brcms_ucode *ucode = &wlc_hw->wlc->wl->ucode; in brcms_b_coreinit()
3364 macintmask = brcms_intrsoff(wlc->wl); in brcms_b_init()
[all …]
Dphy_shim.h128 struct brcms_info *wl,
Dpub.h269 struct brcms_c_info *brcms_c_attach(struct brcms_info *wl,
Dchannel.c700 struct brcms_info *wl = hw->priv; in brcms_reg_notifier() local
701 struct brcms_c_info *wlc = wl->wlc; in brcms_reg_notifier()
Dmain.h457 struct brcms_info *wl; member
/linux-4.4.14/drivers/net/wireless/ti/wl12xx/
Dmain.c609 static int wl127x_prepare_read(struct wl1271 *wl, u32 rx_desc, u32 len) in wl127x_prepare_read() argument
613 if (wl->chip.id != CHIP_ID_128X_PG20) { in wl127x_prepare_read()
614 struct wl1271_acx_mem_map *wl_mem_map = wl->target_mem_map; in wl127x_prepare_read()
615 struct wl12xx_priv *priv = wl->priv; in wl127x_prepare_read()
629 ret = wlcore_write(wl, WL1271_SLV_REG_DATA, priv->rx_mem_addr, in wl127x_prepare_read()
638 static int wl12xx_identify_chip(struct wl1271 *wl) in wl12xx_identify_chip() argument
642 switch (wl->chip.id) { in wl12xx_identify_chip()
645 wl->chip.id); in wl12xx_identify_chip()
647 wl->quirks |= WLCORE_QUIRK_LEGACY_NVS | in wl12xx_identify_chip()
652 wl->sr_fw_name = WL127X_FW_NAME_SINGLE; in wl12xx_identify_chip()
[all …]
Dscan.c27 static int wl1271_get_scan_channels(struct wl1271 *wl, in wl1271_get_scan_channels() argument
32 struct conf_scan_settings *c = &wl->conf.scan; in wl1271_get_scan_channels()
41 if (!test_bit(i, wl->scan.scanned_ch) && in wl1271_get_scan_channels()
83 set_bit(i, wl->scan.scanned_ch); in wl1271_get_scan_channels()
94 static int wl1271_scan_send(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_scan_send() argument
105 if (!passive && wl->scan.req->n_ssids == 0) in wl1271_scan_send()
115 if (wl->conf.scan.split_scan_timeout) in wl1271_scan_send()
134 cmd->params.n_ch = wl1271_get_scan_channels(wl, wl->scan.req, in wl1271_scan_send()
143 cmd->params.n_probe_reqs = wl->conf.scan.num_probe_reqs; in wl1271_scan_send()
152 if (wl->scan.ssid_len && wl->scan.ssid) { in wl1271_scan_send()
[all …]
Devent.c27 int wl12xx_wait_for_event(struct wl1271 *wl, enum wlcore_wait_event event, in wl12xx_wait_for_event() argument
45 return wlcore_cmd_wait_for_event_or_timeout(wl, local_event, timeout); in wl12xx_wait_for_event()
48 int wl12xx_process_mailbox_events(struct wl1271 *wl) in wl12xx_process_mailbox_events() argument
50 struct wl12xx_event_mailbox *mbox = wl->mbox; in wl12xx_process_mailbox_events()
63 if (wl->scan_wlvif) in wl12xx_process_mailbox_events()
64 wl12xx_scan_completed(wl, wl->scan_wlvif); in wl12xx_process_mailbox_events()
72 wlcore_scan_sched_scan_results(wl); in wl12xx_process_mailbox_events()
76 wlcore_event_sched_scan_completed(wl, in wl12xx_process_mailbox_events()
79 wlcore_event_soft_gemini_sense(wl, in wl12xx_process_mailbox_events()
83 wlcore_event_beacon_loss(wl, 0xff); in wl12xx_process_mailbox_events()
[all …]
Dcmd.c29 int wl1271_cmd_ext_radio_parms(struct wl1271 *wl) in wl1271_cmd_ext_radio_parms() argument
32 struct wl12xx_priv *priv = wl->priv; in wl1271_cmd_ext_radio_parms()
36 if (!wl->nvs) in wl1271_cmd_ext_radio_parms()
55 ret = wl1271_cmd_test(wl, ext_radio_parms, sizeof(*ext_radio_parms), 0); in wl1271_cmd_ext_radio_parms()
63 int wl1271_cmd_general_parms(struct wl1271 *wl) in wl1271_cmd_general_parms() argument
67 &((struct wl1271_nvs_file *)wl->nvs)->general_params; in wl1271_cmd_general_parms()
68 struct wl12xx_priv *priv = wl->priv; in wl1271_cmd_general_parms()
72 if (!wl->nvs) in wl1271_cmd_general_parms()
89 if (wl->plt_mode == PLT_FEM_DETECT) in wl1271_cmd_general_parms()
98 ret = wl1271_cmd_test(wl, gen_parms, sizeof(*gen_parms), answer); in wl1271_cmd_general_parms()
[all …]
Dcmd.h123 int wl1271_cmd_general_parms(struct wl1271 *wl);
124 int wl128x_cmd_general_parms(struct wl1271 *wl);
125 int wl1271_cmd_radio_parms(struct wl1271 *wl);
126 int wl128x_cmd_radio_parms(struct wl1271 *wl);
127 int wl1271_cmd_ext_radio_parms(struct wl1271 *wl);
128 int wl12xx_cmd_channel_switch(struct wl1271 *wl,
Dscan.h132 int wl12xx_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
134 int wl12xx_scan_stop(struct wl1271 *wl, struct wl12xx_vif *wlvif);
135 void wl12xx_scan_completed(struct wl1271 *wl, struct wl12xx_vif *wlvif);
136 int wl12xx_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
139 void wl12xx_scan_sched_scan_stop(struct wl1271 *wl, struct wl12xx_vif *wlvif);
Dacx.c29 int wl1271_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap) in wl1271_acx_host_if_cfg_bitmap() argument
42 ret = wl1271_cmd_configure(wl, ACX_HOST_IF_CFG_BITMAP, in wl1271_acx_host_if_cfg_bitmap()
Devent.h106 int wl12xx_wait_for_event(struct wl1271 *wl, enum wlcore_wait_event event,
108 int wl12xx_process_mailbox_events(struct wl1271 *wl);
Ddebugfs.h25 int wl12xx_debugfs_add_files(struct wl1271 *wl,
Dacx.h271 int wl1271_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap);
Ddebugfs.c125 int wl12xx_debugfs_add_files(struct wl1271 *wl, in wl12xx_debugfs_add_files() argument
/linux-4.4.14/kernel/power/
Dwakelock.c40 struct wakelock *wl; in pm_show_wakelocks() local
47 wl = rb_entry(node, struct wakelock, node); in pm_show_wakelocks()
48 if (wl->ws.active == show_active) in pm_show_wakelocks()
49 str += scnprintf(str, end - str, "%s ", wl->name); in pm_show_wakelocks()
92 static inline void wakelocks_lru_add(struct wakelock *wl) in wakelocks_lru_add() argument
94 list_add(&wl->lru, &wakelocks_lru_list); in wakelocks_lru_add()
97 static inline void wakelocks_lru_most_recent(struct wakelock *wl) in wakelocks_lru_most_recent() argument
99 list_move(&wl->lru, &wakelocks_lru_list); in wakelocks_lru_most_recent()
104 struct wakelock *wl, *aux; in __wakelocks_gc() local
110 list_for_each_entry_safe_reverse(wl, aux, &wakelocks_lru_list, lru) { in __wakelocks_gc()
[all …]
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.c50 static int gelic_wl_start_scan(struct gelic_wl_info *wl, int always_scan,
158 struct gelic_wl_info *wl; in gelic_eurus_sync_cmd_worker() local
166 wl = cmd->wl; in gelic_eurus_sync_cmd_worker()
167 card = port_to_card(wl_port(wl)); in gelic_eurus_sync_cmd_worker()
178 init_completion(&wl->cmd_done_intr); in gelic_eurus_sync_cmd_worker()
190 wait_for_completion(&wl->cmd_done_intr); in gelic_eurus_sync_cmd_worker()
216 static struct gelic_eurus_cmd *gelic_eurus_sync_cmd(struct gelic_wl_info *wl, in gelic_eurus_sync_cmd() argument
232 cmd->wl = wl; in gelic_eurus_sync_cmd()
235 queue_work(wl->eurus_cmd_queue, &cmd->work); in gelic_eurus_sync_cmd()
245 struct gelic_wl_info *wl = port_wl(netdev_port(netdev)); in gelic_wl_get_link() local
[all …]
Dps3_gelic_wireless.h297 static inline struct gelic_port *wl_port(struct gelic_wl_info *wl) in wl_port() argument
299 return container_of((void *)wl, struct gelic_port, priv); in wl_port()
308 struct gelic_wl_info *wl; member
/linux-4.4.14/drivers/net/wireless/ti/wl18xx/
Dmain.c663 static int wl18xx_identify_chip(struct wl1271 *wl) in wl18xx_identify_chip() argument
667 switch (wl->chip.id) { in wl18xx_identify_chip()
670 wl->chip.id); in wl18xx_identify_chip()
671 wl->sr_fw_name = WL18XX_FW_NAME; in wl18xx_identify_chip()
673 wl->plt_fw_name = WL18XX_FW_NAME; in wl18xx_identify_chip()
674 wl->quirks |= WLCORE_QUIRK_RX_BLOCKSIZE_ALIGN | in wl18xx_identify_chip()
681 wlcore_set_min_fw_ver(wl, WL18XX_CHIP_VER, in wl18xx_identify_chip()
689 wl->chip.id); in wl18xx_identify_chip()
694 wl1271_warning("unsupported chip id: 0x%x", wl->chip.id); in wl18xx_identify_chip()
699 wl->fw_mem_block_size = 272; in wl18xx_identify_chip()
[all …]
Devent.c29 int wl18xx_wait_for_event(struct wl1271 *wl, enum wlcore_wait_event event, in wl18xx_wait_for_event() argument
47 return wlcore_cmd_wait_for_event_or_timeout(wl, local_event, timeout); in wl18xx_wait_for_event()
63 static int wlcore_smart_config_sync_event(struct wl1271 *wl, u8 sync_channel, in wlcore_smart_config_sync_event() argument
80 skb = cfg80211_vendor_event_alloc(wl->hw->wiphy, NULL, 20, in wlcore_smart_config_sync_event()
92 static int wlcore_smart_config_decode_event(struct wl1271 *wl, in wlcore_smart_config_decode_event() argument
101 skb = cfg80211_vendor_event_alloc(wl->hw->wiphy, NULL, in wlcore_smart_config_decode_event()
115 static void wlcore_event_time_sync(struct wl1271 *wl, u16 tsf_msb, u16 tsf_lsb) in wlcore_event_time_sync() argument
123 int wl18xx_process_mailbox_events(struct wl1271 *wl) in wl18xx_process_mailbox_events() argument
125 struct wl18xx_event_mailbox *mbox = wl->mbox; in wl18xx_process_mailbox_events()
135 if (wl->scan_wlvif) in wl18xx_process_mailbox_events()
[all …]
Dtx.c32 void wl18xx_get_last_tx_rate(struct wl1271 *wl, struct ieee80211_vif *vif, in wl18xx_get_last_tx_rate() argument
35 u8 fw_rate = wl->fw_status->counters.tx_last_rate; in wl18xx_get_last_tx_rate()
76 static void wl18xx_tx_complete_packet(struct wl1271 *wl, u8 tx_stat_byte) in wl18xx_tx_complete_packet() argument
84 if (unlikely(id >= wl->num_tx_desc || wl->tx_frames[id] == NULL)) { in wl18xx_tx_complete_packet()
92 skb = wl->tx_frames[id]; in wl18xx_tx_complete_packet()
95 if (wl12xx_is_dummy_packet(wl, skb)) { in wl18xx_tx_complete_packet()
96 wl1271_free_tx_id(wl, id); in wl18xx_tx_complete_packet()
107 wl18xx_get_last_tx_rate(wl, info->control.vif, in wl18xx_tx_complete_packet()
114 wl->stats.retry_count++; in wl18xx_tx_complete_packet()
125 if ((wl->quirks & WLCORE_QUIRK_TKIP_HEADER_SPACE) && in wl18xx_tx_complete_packet()
[all …]
Dscan.c41 static int wl18xx_scan_send(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl18xx_scan_send() argument
78 cmd->n_probe_reqs = wl->conf.scan.num_probe_reqs; in wl18xx_scan_send()
90 wlcore_set_scan_chan_params(wl, cmd_channels, req->channels, in wl18xx_scan_send()
114 ret = wl12xx_cmd_build_probe_req(wl, wlvif, in wl18xx_scan_send()
131 ret = wl12xx_cmd_build_probe_req(wl, wlvif, in wl18xx_scan_send()
148 ret = wl1271_cmd_send(wl, CMD_SCAN, cmd, sizeof(*cmd), 0); in wl18xx_scan_send()
160 void wl18xx_scan_completed(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl18xx_scan_completed() argument
162 wl->scan.failed = false; in wl18xx_scan_completed()
163 cancel_delayed_work(&wl->scan_complete_work); in wl18xx_scan_completed()
164 ieee80211_queue_delayed_work(wl->hw, &wl->scan_complete_work, in wl18xx_scan_completed()
[all …]
Dacx.c29 int wl18xx_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap, in wl18xx_acx_host_if_cfg_bitmap() argument
51 ret = wl1271_cmd_configure(wl, ACX_HOST_IF_CFG_BITMAP, in wl18xx_acx_host_if_cfg_bitmap()
64 int wl18xx_acx_set_checksum_state(struct wl1271 *wl) in wl18xx_acx_set_checksum_state() argument
79 ret = wl1271_cmd_configure(wl, ACX_CSUM_CONFIG, acx, sizeof(*acx)); in wl18xx_acx_set_checksum_state()
90 int wl18xx_acx_clear_statistics(struct wl1271 *wl) in wl18xx_acx_clear_statistics() argument
103 ret = wl1271_cmd_configure(wl, ACX_CLEAR_STATISTICS, acx, sizeof(*acx)); in wl18xx_acx_clear_statistics()
114 int wl18xx_acx_peer_ht_operation_mode(struct wl1271 *wl, u8 hlid, bool wide) in wl18xx_acx_peer_ht_operation_mode() argument
131 ret = wl1271_cmd_configure(wl, ACX_PEER_HT_OPERATION_MODE_CFG, acx, in wl18xx_acx_peer_ht_operation_mode()
150 int wl18xx_acx_set_peer_cap(struct wl1271 *wl, in wl18xx_acx_set_peer_cap() argument
188 ret = wl1271_cmd_configure(wl, ACX_PEER_CAP, acx, sizeof(*acx)); in wl18xx_acx_set_peer_cap()
[all …]
Dcmd.c28 int wl18xx_cmd_channel_switch(struct wl1271 *wl, in wl18xx_cmd_channel_switch() argument
66 supported_rates |= wlcore_hw_sta_get_ap_rate_mask(wl, wlvif); in wl18xx_cmd_channel_switch()
69 wlcore_hw_ap_get_mimo_wide_rate_mask(wl, wlvif); in wl18xx_cmd_channel_switch()
75 ret = wl1271_cmd_send(wl, CMD_CHANNEL_SWITCH, cmd, sizeof(*cmd), 0); in wl18xx_cmd_channel_switch()
87 int wl18xx_cmd_smart_config_start(struct wl1271 *wl, u32 group_bitmap) in wl18xx_cmd_smart_config_start() argument
103 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_START, cmd, sizeof(*cmd), 0); in wl18xx_cmd_smart_config_start()
115 int wl18xx_cmd_smart_config_stop(struct wl1271 *wl) in wl18xx_cmd_smart_config_stop() argument
128 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_STOP, cmd, sizeof(*cmd), 0); in wl18xx_cmd_smart_config_stop()
140 int wl18xx_cmd_smart_config_set_group_key(struct wl1271 *wl, u16 group_id, in wl18xx_cmd_smart_config_set_group_key() argument
163 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_SET_GROUP_KEY, cmd, in wl18xx_cmd_smart_config_set_group_key()
[all …]
Dio.c27 int wl18xx_top_reg_write(struct wl1271 *wl, int addr, u16 val) in wl18xx_top_reg_write() argument
36 ret = wlcore_read32(wl, addr, &tmp); in wl18xx_top_reg_write()
41 ret = wlcore_write32(wl, addr, tmp); in wl18xx_top_reg_write()
43 ret = wlcore_read32(wl, addr - 2, &tmp); in wl18xx_top_reg_write()
48 ret = wlcore_write32(wl, addr - 2, tmp); in wl18xx_top_reg_write()
55 int wl18xx_top_reg_read(struct wl1271 *wl, int addr, u16 *out) in wl18xx_top_reg_read() argument
65 ret = wlcore_read32(wl, addr, &val); in wl18xx_top_reg_read()
69 ret = wlcore_read32(wl, addr - 2, &val); in wl18xx_top_reg_read()
Ddebugfs.c193 struct wl1271 *wl = file->private_data; in conf_read() local
194 struct wl18xx_priv *priv = wl->priv; in conf_read()
209 mutex_lock(&wl->mutex); in conf_read()
214 memcpy(pos, &wl->conf, sizeof(wl->conf)); in conf_read()
215 pos += sizeof(wl->conf); in conf_read()
218 mutex_unlock(&wl->mutex); in conf_read()
236 struct wl1271 *wl = file->private_data; in clear_fw_stats_write() local
239 mutex_lock(&wl->mutex); in clear_fw_stats_write()
241 if (unlikely(wl->state != WLCORE_STATE_ON)) in clear_fw_stats_write()
244 ret = wl18xx_acx_clear_statistics(wl); in clear_fw_stats_write()
[all …]
Dcmd.h86 int wl18xx_cmd_channel_switch(struct wl1271 *wl,
89 int wl18xx_cmd_smart_config_start(struct wl1271 *wl, u32 group_bitmap);
90 int wl18xx_cmd_smart_config_stop(struct wl1271 *wl);
91 int wl18xx_cmd_smart_config_set_group_key(struct wl1271 *wl, u16 group_id,
93 int wl18xx_cmd_set_cac(struct wl1271 *wl, struct wl12xx_vif *wlvif, bool start);
94 int wl18xx_cmd_radar_detection_debug(struct wl1271 *wl, u8 channel);
95 int wl18xx_cmd_dfs_master_restart(struct wl1271 *wl, struct wl12xx_vif *wlvif);
Dscan.h119 int wl18xx_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
121 int wl18xx_scan_stop(struct wl1271 *wl, struct wl12xx_vif *wlvif);
122 void wl18xx_scan_completed(struct wl1271 *wl, struct wl12xx_vif *wlvif);
123 int wl18xx_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
126 void wl18xx_scan_sched_scan_stop(struct wl1271 *wl, struct wl12xx_vif *wlvif);
Dacx.h391 int wl18xx_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap,
394 int wl18xx_acx_set_checksum_state(struct wl1271 *wl);
395 int wl18xx_acx_clear_statistics(struct wl1271 *wl);
396 int wl18xx_acx_peer_ht_operation_mode(struct wl1271 *wl, u8 hlid, bool wide);
397 int wl18xx_acx_set_peer_cap(struct wl1271 *wl,
401 int wl18xx_acx_interrupt_notify_config(struct wl1271 *wl, bool action);
402 int wl18xx_acx_rx_ba_filter(struct wl1271 *wl, bool action);
403 int wl18xx_acx_ap_sleep(struct wl1271 *wl);
404 int wl18xx_acx_dynamic_fw_traces(struct wl1271 *wl);
Dio.h25 int __must_check wl18xx_top_reg_write(struct wl1271 *wl, int addr, u16 val);
26 int __must_check wl18xx_top_reg_read(struct wl1271 *wl, int addr, u16 *out);
Devent.h111 int wl18xx_wait_for_event(struct wl1271 *wl, enum wlcore_wait_event event,
113 int wl18xx_process_mailbox_events(struct wl1271 *wl);
Ddebugfs.h25 int wl18xx_debugfs_add_files(struct wl1271 *wl,
Dtx.h44 void wl18xx_tx_immediate_complete(struct wl1271 *wl);
/linux-4.4.14/drivers/net/wireless/b43legacy/
Dmain.c169 static int b43legacy_ratelimit(struct b43legacy_wl *wl) in b43legacy_ratelimit() argument
171 if (!wl || !wl->current_dev) in b43legacy_ratelimit()
173 if (b43legacy_status(wl->current_dev) < B43legacy_STAT_STARTED) in b43legacy_ratelimit()
180 void b43legacyinfo(struct b43legacy_wl *wl, const char *fmt, ...) in b43legacyinfo() argument
185 if (!b43legacy_ratelimit(wl)) in b43legacyinfo()
194 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43legacyinfo()
199 void b43legacyerr(struct b43legacy_wl *wl, const char *fmt, ...) in b43legacyerr() argument
204 if (!b43legacy_ratelimit(wl)) in b43legacyerr()
213 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43legacyerr()
218 void b43legacywarn(struct b43legacy_wl *wl, const char *fmt, ...) in b43legacywarn() argument
[all …]
Dsysfs.c85 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show()
104 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show()
139 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_interfmode_store()
140 spin_lock_irqsave(&wldev->wl->irq_lock, flags); in b43legacy_attr_interfmode_store()
144 b43legacyerr(wldev->wl, "Interference Mitigation not " in b43legacy_attr_interfmode_store()
147 spin_unlock_irqrestore(&wldev->wl->irq_lock, flags); in b43legacy_attr_interfmode_store()
148 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_interfmode_store()
167 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_preamble_show()
176 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_preamble_show()
195 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_preamble_store()
[all …]
Drfkill.c54 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); in b43legacy_rfkill_poll() local
55 struct b43legacy_wldev *dev = wl->current_dev; in b43legacy_rfkill_poll()
60 mutex_lock(&wl->mutex); in b43legacy_rfkill_poll()
63 mutex_unlock(&wl->mutex); in b43legacy_rfkill_poll()
74 b43legacyinfo(wl, "Radio hardware status changed to %s\n", in b43legacy_rfkill_poll()
90 mutex_unlock(&wl->mutex); in b43legacy_rfkill_poll()
Dleds.c37 struct b43legacy_wl *wl = dev->wl; in b43legacy_led_turn_on() local
41 spin_lock_irqsave(&wl->leds_lock, flags); in b43legacy_led_turn_on()
48 spin_unlock_irqrestore(&wl->leds_lock, flags); in b43legacy_led_turn_on()
54 struct b43legacy_wl *wl = dev->wl; in b43legacy_led_turn_off() local
58 spin_lock_irqsave(&wl->leds_lock, flags); in b43legacy_led_turn_off()
65 spin_unlock_irqrestore(&wl->leds_lock, flags); in b43legacy_led_turn_off()
112 b43legacywarn(dev->wl, "LEDs: Failed to register %s\n", name); in b43legacy_register_led()
133 struct ieee80211_hw *hw = dev->wl->hw; in b43legacy_map_led()
183 b43legacywarn(dev->wl, "LEDs: Unknown behaviour 0x%02X\n", in b43legacy_map_led()
Dxmit.c210 tx_rate = ieee80211_get_tx_rate(dev->wl->hw, info); in generate_txhdr_fw3()
214 rate_fb = ieee80211_get_alt_retry_rate(dev->wl->hw, info, 0) ? : tx_rate; in generate_txhdr_fw3()
229 txhdr->dur_fb = ieee80211_generic_frame_duration(dev->wl->hw, in generate_txhdr_fw3()
298 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { in generate_txhdr_fw3()
299 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; in generate_txhdr_fw3()
302 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; in generate_txhdr_fw3()
314 rts_rate = ieee80211_get_rts_cts_rate(dev->wl->hw, info)->hw_value; in generate_txhdr_fw3()
321 ieee80211_ctstoself_get(dev->wl->hw, in generate_txhdr_fw3()
330 ieee80211_rts_get(dev->wl->hw, in generate_txhdr_fw3()
460 dev->wl->ieee_stats.dot11FCSErrorCount++; in b43legacy_rx()
[all …]
Ddebugfs.c218 mutex_lock(&dev->wl->mutex); in b43legacy_debugfs_read()
239 spin_lock_irq(&dev->wl->irq_lock); in b43legacy_debugfs_read()
241 spin_unlock_irq(&dev->wl->irq_lock); in b43legacy_debugfs_read()
262 mutex_unlock(&dev->wl->mutex); in b43legacy_debugfs_read()
284 mutex_lock(&dev->wl->mutex); in b43legacy_debugfs_write()
306 spin_lock_irq(&dev->wl->irq_lock); in b43legacy_debugfs_write()
308 spin_unlock_irq(&dev->wl->irq_lock); in b43legacy_debugfs_write()
317 mutex_unlock(&dev->wl->mutex); in b43legacy_debugfs_write()
390 b43legacyerr(dev->wl, "debugfs: add device OOM\n"); in b43legacy_debugfs_add_device()
398 b43legacyerr(dev->wl, "debugfs: add device txstatus OOM\n"); in b43legacy_debugfs_add_device()
[all …]
Ddma.c159 b43legacydbg(ring->dev->wl, in update_max_used_slots()
373 b43legacyerr(dev->wl, "DMA RX reset timed out\n"); in b43legacy_dmacontroller_rx_reset()
414 b43legacyerr(dev->wl, "DMA TX reset timed out\n"); in b43legacy_dmacontroller_tx_reset()
515 b43legacyerr(ring->dev->wl, in alloc_initial_descbuffers()
757 b43legacydbg(ring->dev->wl, "DMA-%u 0x%04X (%s) max used slots:" in b43legacy_destroy_dmaring()
822 b43legacyerr(dev->wl, "The machine/kernel does not support " in b43legacy_dma_set_mask()
828 b43legacyinfo(dev->wl, "DMA mask fallback from %u-bit to %u-" in b43legacy_dma_set_mask()
850 b43legacywarn(dev->wl, "DMA for this device not supported. " in b43legacy_dma_init()
855 b43legacyerr(dev->wl, "DMA for this device not supported and " in b43legacy_dma_init()
907 b43legacydbg(dev->wl, "%u-bit DMA initialized\n", (unsigned int)type); in b43legacy_dma_init()
[all …]
Db43legacy.h679 struct b43legacy_wl *wl; member
793 int b43legacy_is_mode(struct b43legacy_wl *wl, int type) in b43legacy_is_mode() argument
795 return (wl->operating && in b43legacy_is_mode()
796 wl->if_type == type); in b43legacy_is_mode()
842 void b43legacyinfo(struct b43legacy_wl *wl, const char *fmt, ...);
844 void b43legacyerr(struct b43legacy_wl *wl, const char *fmt, ...);
846 void b43legacywarn(struct b43legacy_wl *wl, const char *fmt, ...);
849 void b43legacydbg(struct b43legacy_wl *wl, const char *fmt, ...);
851 # define b43legacydbg(wl, fmt...) do { /* nothing */ } while (0) argument
Dpio.c239 b43legacywarn(queue->dev->wl, "PIO queue too small. " in pio_tx_packet()
289 spin_lock_irqsave(&dev->wl->irq_lock, flags); in tx_tasklet()
309 spin_unlock_irqrestore(&dev->wl->irq_lock, flags); in tx_tasklet()
357 b43legacyerr(dev->wl, "This card does not support PIO " in b43legacy_setup_pioqueue()
363 b43legacyerr(dev->wl, "PIO tx device-queue too small (%u)\n", in b43legacy_setup_pioqueue()
449 b43legacydbg(dev->wl, "PIO initialized\n"); in b43legacy_pio_init()
517 if (status->rts_count > dev->wl->hw->conf.short_frame_max_tx_count) { in b43legacy_pio_handle_txstatus()
538 ieee80211_tx_status_irqsafe(dev->wl->hw, packet->skb); in b43legacy_pio_handle_txstatus()
555 b43legacyerr(queue->dev->wl, "PIO RX error: %s\n", error); in pio_rx_error()
590 b43legacydbg(queue->dev->wl, "PIO RX timed out\n"); in b43legacy_pio_rx()
Dphy.c108 if (!b43legacy_is_mode(dev->wl, NL80211_IFTYPE_AP)) in b43legacy_phy_lock()
123 if (!b43legacy_is_mode(dev->wl, NL80211_IFTYPE_AP)) in b43legacy_phy_unlock()
1301 b43legacydbg(dev->wl, in b43legacy_lo_write()
1719 b43legacywarn(dev->wl, in b43legacy_phy_lo_g_measure()
1849 b43legacywarn(dev->wl, "Invalid max-TX-power value in SPROM." in b43legacy_phy_xmitpower()
1870 b43legacydbg(dev->wl, "Current TX power output: " Q52_FMT in b43legacy_phy_xmitpower()
2026 b43legacyerr(dev->wl, "Could not allocate memory " in b43legacy_phy_init_tssi2dbm_table()
2034 b43legacyerr(dev->wl, "Could not generate " in b43legacy_phy_init_tssi2dbm_table()
2090 b43legacyerr(dev->wl, "Unknown PHYTYPE found\n"); in b43legacy_phy_init()
Dradio.c2123 b43legacydbg(dev->wl, "Radio initialized\n"); in b43legacy_radio_turn_off()
/linux-4.4.14/drivers/net/wireless/b43/
Dleds.c66 if (!led->wl) in b43_led_update()
91 struct b43_wl *wl = container_of(leds, struct b43_wl, leds); in b43_leds_work() local
94 mutex_lock(&wl->mutex); in b43_leds_work()
95 dev = wl->current_dev; in b43_leds_work()
99 b43_led_update(dev, &wl->leds.led_tx); in b43_leds_work()
100 b43_led_update(dev, &wl->leds.led_rx); in b43_leds_work()
101 b43_led_update(dev, &wl->leds.led_radio); in b43_leds_work()
102 b43_led_update(dev, &wl->leds.led_assoc); in b43_leds_work()
105 mutex_unlock(&wl->mutex); in b43_leds_work()
113 struct b43_wl *wl = led->wl; in b43_led_brightness_set() local
[all …]
Dmain.c374 static int b43_ratelimit(struct b43_wl *wl) in b43_ratelimit() argument
376 if (!wl || !wl->current_dev) in b43_ratelimit()
378 if (b43_status(wl->current_dev) < B43_STAT_STARTED) in b43_ratelimit()
385 void b43info(struct b43_wl *wl, const char *fmt, ...) in b43info() argument
392 if (!b43_ratelimit(wl)) in b43info()
401 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43info()
406 void b43err(struct b43_wl *wl, const char *fmt, ...) in b43err() argument
413 if (!b43_ratelimit(wl)) in b43err()
422 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43err()
427 void b43warn(struct b43_wl *wl, const char *fmt, ...) in b43warn() argument
[all …]
Drfkill.c38 struct b43_wl *wl = hw_to_b43_wl(hw); in b43_rfkill_poll() local
39 struct b43_wldev *dev = wl->current_dev; in b43_rfkill_poll()
43 mutex_lock(&wl->mutex); in b43_rfkill_poll()
46 mutex_unlock(&wl->mutex); in b43_rfkill_poll()
57 b43info(wl, "Radio hardware status changed to %s\n", in b43_rfkill_poll()
69 mutex_unlock(&wl->mutex); in b43_rfkill_poll()
Dpio.c199 ieee80211_free_txskb(q->dev->wl->hw, pack->skb); in b43_pio_cancel_tx_packets()
281 b43dbg(dev->wl, "PIO initialized\n"); in b43_pio_init()
336 struct b43_wl *wl = dev->wl; in tx_write_2byte_queue() local
346 u8 *tail = wl->pio_tailspace; in tx_write_2byte_queue()
347 BUILD_BUG_ON(sizeof(wl->pio_tailspace) < 2); in tx_write_2byte_queue()
389 struct b43_wl *wl = dev->wl; in tx_write_4byte_queue() local
400 u8 *tail = wl->pio_tailspace; in tx_write_4byte_queue()
401 BUILD_BUG_ON(sizeof(wl->pio_tailspace) < 4); in tx_write_4byte_queue()
457 struct b43_wl *wl = dev->wl; in pio_tx_frame() local
463 struct b43_txhdr *txhdr = (struct b43_txhdr *)wl->pio_scratchspace; in pio_tx_frame()
[all …]
Dsysfs.c60 mutex_lock(&wldev->wl->mutex); in b43_attr_interfmode_show()
63 mutex_unlock(&wldev->wl->mutex); in b43_attr_interfmode_show()
87 mutex_unlock(&wldev->wl->mutex); in b43_attr_interfmode_show()
121 mutex_lock(&wldev->wl->mutex); in b43_attr_interfmode_store()
126 b43err(wldev->wl, "Interference Mitigation not " in b43_attr_interfmode_store()
133 mutex_unlock(&wldev->wl->mutex); in b43_attr_interfmode_store()
Dxmit.c270 txrate = ieee80211_get_tx_rate(dev->wl->hw, info); in b43_generate_txhdr()
273 fbrate = ieee80211_get_alt_retry_rate(dev->wl->hw, info, 0) ? : txrate; in b43_generate_txhdr()
294 dev->wl->hw, info->control.vif, info->band, in b43_generate_txhdr()
420 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { in b43_generate_txhdr()
421 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; in b43_generate_txhdr()
424 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; in b43_generate_txhdr()
437 rts_cts_rate = ieee80211_get_rts_cts_rate(dev->wl->hw, info); in b43_generate_txhdr()
461 ieee80211_ctstoself_get(dev->wl->hw, info->control.vif, in b43_generate_txhdr()
483 ieee80211_rts_get(dev->wl->hw, info->control.vif, in b43_generate_txhdr()
690 dev->wl->ieee_stats.dot11FCSErrorCount++; in b43_rx()
[all …]
Ddma.c299 b43dbg(ring->dev->wl, in update_max_used_slots()
413 ieee80211_free_txskb(ring->dev->wl->hw, meta->skb); in free_descriptor_buffer()
483 b43err(dev->wl, "DMA RX reset timed out\n"); in b43_dmacontroller_rx_reset()
541 b43err(dev->wl, "DMA TX reset timed out\n"); in b43_dmacontroller_tx_reset()
632 b43err(ring->dev->wl, "RX DMA buffer allocation failed\n"); in setup_rx_descbuffer()
660 b43err(ring->dev->wl, in alloc_initial_descbuffers()
947 b43err(dev->wl, in b43_setup_dmaring()
1011 b43dbg(ring->dev->wl, "DMA-%u %s: " in b43_destroy_dmaring()
1081 b43err(dev->wl, "The machine/kernel does not support " in b43_dma_set_mask()
1087 b43info(dev->wl, "DMA mask fallback from %u-bit to %u-bit\n", in b43_dma_set_mask()
[all …]
Dleds.h17 struct b43_wl *wl; member
64 void b43_leds_unregister(struct b43_wl *wl);
80 static inline void b43_leds_unregister(struct b43_wl *wl) in b43_leds_unregister() argument
Dphy_common.c106 phy->chandef = &dev->wl->hw->conf.chandef; in b43_phy_init()
115 b43err(dev->wl, "PHY init failed\n"); in b43_phy_init()
122 b43err(dev->wl, "PHY init: Channel switch to default failed\n"); in b43_phy_init()
200 if (!b43_is_mode(dev->wl, NL80211_IFTYPE_AP)) in b43_phy_lock()
212 if (!b43_is_mode(dev->wl, NL80211_IFTYPE_AP)) in b43_phy_unlock()
222 b43dbg(dev->wl, "PHY/RADIO register access with " in assert_mac_suspended()
439 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) in b43_switch_channel()
481 struct b43_wl *wl = container_of(work, struct b43_wl, in b43_phy_txpower_adjust_work() local
485 mutex_lock(&wl->mutex); in b43_phy_txpower_adjust_work()
486 dev = wl->current_dev; in b43_phy_txpower_adjust_work()
[all …]
Dtables_nphy.c3505 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) in b43_nphy_tables_init_rev7_volatile()
3522 b43err(dev->wl, "Unsupported antswlut: %d\n", antswlut); in b43_nphy_tables_init_rev7_volatile()
3569 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) in b43_nphy_tables_init_rev3()
3654 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in b43_nphy_get_ipa_gain_table()
3679 b43err(dev->wl, in b43_nphy_get_ipa_gain_table()
3692 b43err(dev->wl, in b43_nphy_get_ipa_gain_table()
3701 enum ieee80211_band band = b43_current_band(dev->wl); in b43_nphy_get_tx_gain_table()
3711 } else if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) { in b43_nphy_get_tx_gain_table()
3723 b43err(dev->wl, in b43_nphy_get_tx_gain_table()
3738 b43err(dev->wl, in b43_nphy_get_tx_gain_table()
[all …]
Db43.h828 struct b43_wl *wl; member
988 static inline int b43_is_mode(struct b43_wl *wl, int type) in b43_is_mode() argument
990 return (wl->operating && wl->if_type == type); in b43_is_mode()
997 static inline enum ieee80211_band b43_current_band(struct b43_wl *wl) in b43_current_band() argument
999 return wl->hw->conf.chandef.chan->band; in b43_current_band()
1085 __printf(2, 3) void b43info(struct b43_wl *wl, const char *fmt, ...);
1086 __printf(2, 3) void b43err(struct b43_wl *wl, const char *fmt, ...);
1087 __printf(2, 3) void b43warn(struct b43_wl *wl, const char *fmt, ...);
1088 __printf(2, 3) void b43dbg(struct b43_wl *wl, const char *fmt, ...);
Dphy_ht.c111 b43err(dev->wl, "Radio 0x2059 rcal timeout\n"); in b43_radio_2059_rcal()
138 b43err(dev->wl, "Radio 0x2059 rccal timeout\n"); in b43_radio_2057_rccal()
204 b43err(dev->wl, "Forcing RF sequence timeout\n"); in b43_phy_ht_force_rf_sequence()
423 b43err(dev->wl, "run samples timeout\n"); in b43_phy_ht_run_samples()
452 b43err(dev->wl, "RSSI selection for core off not implemented yet\n"); in b43_phy_ht_rssi_select()
473 b43err(dev->wl, "RSSI selection for type %d not implemented yet\n", in b43_phy_ht_rssi_select()
571 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) { in b43_phy_ht_tx_power_ctl()
646 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in b43_phy_ht_tx_power_ctl_setup()
890 b43err(dev->wl, "HT-PHY is supported only on BCMA bus!\n"); in b43_phy_ht_op_init()
919 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) in b43_phy_ht_op_init()
[all …]
Dphy_n.c108 enum ieee80211_band band = b43_current_band(dev->wl); in b43_nphy_ipa()
149 b43err(dev->wl, "RF sequence status timeout\n"); in b43_nphy_force_rf_sequence()
186 b43err(dev->wl, "Invalid override value %d\n", override); in b43_nphy_rf_ctl_override_rev7()
266 b43err(dev->wl, in b43_nphy_rf_ctl_override()
301 b43err(dev->wl, in b43_nphy_rf_ctl_override()
360 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) in b43_nphy_rf_ctl_intc_override_rev7()
368 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) { in b43_nphy_rf_ctl_intc_override_rev7()
381 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) { in b43_nphy_rf_ctl_intc_override_rev7()
442 b43err(dev->wl, in b43_nphy_rf_ctl_intc_override()
461 b43err(dev->wl, in b43_nphy_rf_ctl_intc_override()
[all …]
Dphy_lcn.c111 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in b43_radio_2064_init()
538 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in b43_phy_lcn_tx_pwr_ctl_init()
555 b43err(dev->wl, "TX power control not supported for this HW\n"); in b43_phy_lcn_tx_pwr_ctl_init()
723 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in b43_phy_lcn_op_init()
746 b43err(dev->wl, "MAC not suspended\n"); in b43_phy_lcn_op_software_rfkill()
778 struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan; in b43_phy_lcn_op_switch_channel()
780 cfg80211_get_chandef_type(&dev->wl->hw->conf.chandef); in b43_phy_lcn_op_switch_channel()
782 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in b43_phy_lcn_op_switch_channel()
794 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in b43_phy_lcn_op_get_default_chan()
Ddebugfs.c521 mutex_lock(&dev->wl->mutex); in b43_debugfs_read()
560 mutex_unlock(&dev->wl->mutex); in b43_debugfs_read()
582 mutex_lock(&dev->wl->mutex); in b43_debugfs_write()
610 mutex_unlock(&dev->wl->mutex); in b43_debugfs_write()
701 b43err(dev->wl, "debugfs: add device OOM\n"); in b43_debugfs_add_device()
709 b43err(dev->wl, "debugfs: add device txstatus OOM\n"); in b43_debugfs_add_device()
717 snprintf(devdir, sizeof(devdir), "%s", wiphy_name(dev->wl->hw->wiphy)); in b43_debugfs_add_device()
721 b43dbg(dev->wl, "DebugFS (CONFIG_DEBUG_FS) not " in b43_debugfs_add_device()
724 b43err(dev->wl, "debugfs: cannot create %s directory\n", in b43_debugfs_add_device()
Dtables_phy_lcn.c704 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in b43_phy_lcn_tables_init()
709 b43err(dev->wl, in b43_phy_lcn_tables_init()
719 b43err(dev->wl, "SW ctl table is unknown for this card\n"); in b43_phy_lcn_tables_init()
Dlo.c65 b43dbg(dev->wl, "Invalid LO control pair " in b43_lo_write()
776 b43dbg(dev->wl, "LO: Calibrated for BB(%u), RF(%u,%u) " in b43_calibrate_lo_setting()
784 b43warn(dev->wl, "LO calib: out of memory\n"); in b43_calibrate_lo_setting()
858 b43warn(dev->wl, "LO: Could not " in b43_gphy_dc_lt_init()
974 b43dbg(dev->wl, "LO: Item BB(%u), RF(%u,%u), " in b43_lo_g_maintenance_work()
986 b43dbg(dev->wl, "LO: Recalibrating current LO setting\n"); in b43_lo_g_maintenance_work()
992 b43warn(dev->wl, "Failed to recalibrate current LO setting\n"); in b43_lo_g_maintenance_work()
Dphy_ac.c64 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in b43_phy_ac_op_get_default_chan()
Dphy_lp.c49 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in b43_lpphy_op_get_default_chan()
94 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in lpphy_read_band_sprom()
177 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in lpphy_adjust_gain_table()
241 ((b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) || in lpphy_baseband_rev0_1_init()
283 } else if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ || in lpphy_baseband_rev0_1_init()
329 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in lpphy_baseband_rev0_1_init()
469 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in lpphy_baseband_rev2plus_init()
550 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in lpphy_2062_init()
591 b43dbg(dev->wl, "b2062: Using crystal tab entry %u kHz.\n", in lpphy_2062_init()
749 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in lpphy_clear_deaf()
[all …]
Dphy_a.c346 b43err(dev->wl, "Could not generate tssi2dBm " in b43_aphy_init_tssi2dbm_table()
429 b43err(dev->wl, "Invalid EXT-G PHY access at " in adjust_phyreg()
435 b43err(dev->wl, "Invalid N-BMODE PHY access at " in adjust_phyreg()
Dphy_g.c240 b43dbg(dev->wl, "Tuning TX-power to bbatt(%u), " in b43_set_txpower_g()
1971 b43dbg(dev->wl, in b43_phy_init_pctl()
2361 b43err(dev->wl, "Could not allocate memory " in b43_generate_dyn_tssi2dbm_tab()
2368 b43err(dev->wl, "Could not generate " in b43_generate_dyn_tssi2dbm_tab()
2865 b43dbg(dev->wl, "Adjusting TX power\n"); in b43_gphy_op_adjust_txpower()
2919 b43warn(dev->wl, in b43_gphy_op_recalc_txpower()
2933 b43dbg(dev->wl, in b43_gphy_op_recalc_txpower()
2963 b43dbg(dev->wl, in b43_gphy_op_recalc_txpower()
Dtables_lpphy.c563 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in b2062_upload_init_table()
582 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { in b2063_upload_init_table()
2382 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) in lpphy_rev2plus_write_gain_table()
2387 if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) in lpphy_rev2plus_write_gain_table()
2426 else if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in lpphy_init_tx_gain_table()
2438 else if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in lpphy_init_tx_gain_table()
2449 else if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) in lpphy_init_tx_gain_table()
/linux-4.4.14/drivers/staging/wilc1000/
Dlinux_wlan.c273 struct wilc *wl; in init_irq() local
276 wl = nic->wilc; in init_irq()
289 wl->dev_irq_num = gpio_to_irq(GPIO_NUM); in init_irq()
296 if ((ret != -1) && (request_threaded_irq(wl->dev_irq_num, isr_uh_routine, isr_bh_routine, in init_irq()
305 wl->dev_irq_num, GPIO_NUM); in init_irq()
443 struct wilc *wl; in linux_wlan_txq_task() local
455 wl = nic->wilc; in linux_wlan_txq_task()
458 up(&wl->txq_thread_started); in linux_wlan_txq_task()
462 down(&wl->txq_event); in linux_wlan_txq_task()
466 if (wl->close) { in linux_wlan_txq_task()
[all …]
Dwilc_wfi_cfgoperations.c539 struct wilc *wl; in CfgConnectResult() local
547 wl = nic->wilc; in CfgConnectResult()
630 if ((pstrWFIDrv->IFC_UP) && (dev == wl->vif[1].ndev)) { in CfgConnectResult()
635 else if ((!pstrWFIDrv->IFC_UP) && (dev == wl->vif[1].ndev)) { in CfgConnectResult()
1088 struct wilc *wl; in add_key() local
1093 wl = nic->wilc; in add_key()
1265 if (!g_gtk_keys_saved && netdev == wl->vif[0].ndev) { in add_key()
1301 if (!g_ptk_keys_saved && netdev == wl->vif[0].ndev) { in add_key()
1362 struct wilc *wl; in del_key() local
1367 wl = nic->wilc; in del_key()
[all …]
/linux-4.4.14/drivers/video/fbdev/
Dleo.c447 static void leo_wid_put(struct fb_info *info, struct fb_wid_list *wl) in leo_wid_put() argument
460 for (i = 0, wi = wl->wl_list; i < wl->wl_count; i++, wi++) { in leo_wid_put()
488 struct fb_wid_list wl; in leo_init_wids() local
490 wl.wl_count = 1; in leo_init_wids()
491 wl.wl_list = &wi; in leo_init_wids()
495 leo_wid_put(info, &wl); in leo_init_wids()
498 leo_wid_put(info, &wl); in leo_init_wids()
501 leo_wid_put(info, &wl); in leo_init_wids()
505 leo_wid_put(info, &wl); in leo_init_wids()
/linux-4.4.14/arch/alpha/math-emu/
Dsfp-util.h13 #define umul_ppmm(wh, wl, u, v) \ argument
16 "=&r" ((UDItype)(wl)) \
/linux-4.4.14/arch/s390/include/asm/
Dsfp-util.h35 #define umul_ppmm(wh, wl, u, v) ({ \ argument
51 wl = __wl; \
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dlib-eq.c327 wait_queue_t wl; in lnet_eq_wait_locked() local
333 init_waitqueue_entry(&wl, current); in lnet_eq_wait_locked()
335 add_wait_queue(&the_lnet.ln_eq_waitq, &wl); in lnet_eq_wait_locked()
354 remove_wait_queue(&the_lnet.ln_eq_waitq, &wl); in lnet_eq_wait_locked()
/linux-4.4.14/arch/sparc/math-emu/
Dsfp-util_64.h42 #define umul_ppmm(wh, wl, u, v) \ argument
68 "=&r" (wl), \
/linux-4.4.14/sound/soc/codecs/
Dwm8955.c598 int wl; in wm8955_hw_params() local
602 wl = 0; in wm8955_hw_params()
605 wl = 0x4; in wm8955_hw_params()
608 wl = 0x8; in wm8955_hw_params()
611 wl = 0xc; in wm8955_hw_params()
617 WM8955_WL_MASK, wl); in wm8955_hw_params()
Dwm2200.c1701 int i, bclk, lrclk, wl, fl, sr_code; in wm2200_hw_params() local
1705 wl = params_width(params); in wm2200_hw_params()
1706 if (wl < 0) in wm2200_hw_params()
1707 return wl; in wm2200_hw_params()
1713 wl, fl); in wm2200_hw_params()
1768 i = (wl << WM2200_AIF1TX_WL_SHIFT) | wl; in wm2200_hw_params()
Dwm5100.c1405 int i, base, bclk, aif_rate, lrclk, wl, fl, sr; in wm5100_hw_params() local
1411 wl = params_width(params); in wm5100_hw_params()
1412 if (wl < 0) in wm5100_hw_params()
1413 return wl; in wm5100_hw_params()
1419 wl, fl); in wm5100_hw_params()
1489 i = (wl << WM5100_AIF1TX_WL_SHIFT) | fl; in wm5100_hw_params()
Darizona.c1536 int bclk, lrclk, wl, frame, bclk_target; in arizona_hw_params() local
1545 wl = params_width(params); in arizona_hw_params()
1554 tdm_width = wl; in arizona_hw_params()
1590 frame = wl << ARIZONA_AIF1TX_WL_SHIFT | tdm_width; in arizona_hw_params()
/linux-4.4.14/drivers/mtd/ubi/
DMakefile3 ubi-y += vtbl.o vmt.o upd.o build.o cdev.o kapi.o eba.o io.o wl.o attach.o
/linux-4.4.14/include/net/
Dipv6.h405 __be32 wh, __be32 wl) in __ipv6_addr_set_half() argument
409 if (__builtin_constant_p(wh) && __builtin_constant_p(wl)) { in __ipv6_addr_set_half()
410 *(__force u64 *)addr = ((__force u64)(wh) << 32 | (__force u64)(wl)); in __ipv6_addr_set_half()
414 if (__builtin_constant_p(wl) && __builtin_constant_p(wh)) { in __ipv6_addr_set_half()
415 *(__force u64 *)addr = ((__force u64)(wl) << 32 | (__force u64)(wh)); in __ipv6_addr_set_half()
421 addr[1] = wl; in __ipv6_addr_set_half()
/linux-4.4.14/drivers/video/fbdev/matrox/
Dmatroxfb_maven.c358 int *bl, int *wl) { in maven_compute_bwlevel() argument
363 *wl = min(b + c, WLMAX); in maven_compute_bwlevel()
503 int bl, wl; in maven_init_TVdata() local
504 maven_compute_bwlevel (md, &bl, &wl); in maven_init_TVdata()
507 data->regs[0x1e] = wl >> 2; in maven_init_TVdata()
508 data->regs[0x1f] = wl & 3; in maven_init_TVdata()
Dmatroxfb_g450.c132 int *wl) in g450_compute_bwlevel() argument
138 *wl = min(b + c, WLMAX); in g450_compute_bwlevel()
/linux-4.4.14/arch/sh/lib64/
Dudivsi3.S36 mmacnfx.wl r25,r19,r21
/linux-4.4.14/kernel/sched/
Dfair.c1121 static long effective_load(struct task_group *tg, int cpu, long wl, long wg);
4572 static long effective_load(struct task_group *tg, int cpu, long wl, long wg) in effective_load() argument
4577 return wl; in effective_load()
4592 w = cfs_rq_load_avg(se->my_q) + wl; in effective_load()
4598 wl = (w * (long)tg->shares) / W; in effective_load()
4600 wl = tg->shares; in effective_load()
4607 if (wl < MIN_SHARES) in effective_load()
4608 wl = MIN_SHARES; in effective_load()
4613 wl -= se->avg.load_avg; in effective_load()
4625 return wl; in effective_load()
[all …]
/linux-4.4.14/lib/mpi/
Dlonglong.h320 #define umul_ppmm(wh, wl, u, v) \
330 (wl) = __xx.__i.__l; \
613 #define umul_ppmm(wh, wl, u, v) \ argument
620 (wl) = __x.__i.__l; \
/linux-4.4.14/sound/soc/fsl/
Dfsl_ssi.c772 u32 wl = CCSR_SSI_SxCCR_WL(sample_size); in fsl_ssi_hw_params() local
833 wl); in fsl_ssi_hw_params()
836 wl); in fsl_ssi_hw_params()
/linux-4.4.14/arch/arm64/boot/dts/rockchip/
Drk3368-r88.dts166 vccio_wl: vccio-wl-regulator {
/linux-4.4.14/sound/pci/
Dintel8x0.c2893 const struct snd_pci_quirk *wl; in intel8x0_in_clock_list() local
2895 wl = snd_pci_quirk_lookup(pci, intel8x0_clock_list); in intel8x0_in_clock_list()
2896 if (!wl) in intel8x0_in_clock_list()
2899 pci->subsystem_vendor, pci->subsystem_device, wl->value); in intel8x0_in_clock_list()
2900 chip->ac97_bus->clock = wl->value; in intel8x0_in_clock_list()
/linux-4.4.14/drivers/block/
DDAC960.h2521 uint wl[2]; in dma_addr_writeql() member
2526 writel(u.wl[0], write_address); in dma_addr_writeql()
2527 writel(u.wl[1], write_address + 4); in dma_addr_writeql()