Home
last modified time | relevance | path

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

1234567

/linux/drivers/net/wireless/ti/wlcore/
H A Dhw_ops.h15 wlcore_hw_calc_tx_blocks(struct wl1271 *wl, u32 len, u32 spare_blks) in wlcore_hw_calc_tx_blocks() argument
17 if (!wl->ops->calc_tx_blocks) in wlcore_hw_calc_tx_blocks()
20 return wl->ops->calc_tx_blocks(wl, len, spare_blks); in wlcore_hw_calc_tx_blocks()
24 wlcore_hw_set_tx_desc_blocks(struct wl1271 *wl, struct wl1271_tx_hw_descr *desc, in wlcore_hw_set_tx_desc_blocks() argument
27 if (!wl->ops->set_tx_desc_blocks) in wlcore_hw_set_tx_desc_blocks()
30 return wl->ops->set_tx_desc_blocks(wl, desc, blks, spare_blks); in wlcore_hw_set_tx_desc_blocks()
34 wlcore_hw_set_tx_desc_data_len(struct wl1271 *wl, in wlcore_hw_set_tx_desc_data_len() argument
38 if (!wl->ops->set_tx_desc_data_len) in wlcore_hw_set_tx_desc_data_len()
41 wl->ops->set_tx_desc_data_len(wl, desc, skb); in wlcore_hw_set_tx_desc_data_len()
45 wlcore_hw_get_rx_buf_align(struct wl1271 *wl, u32 rx_desc) in wlcore_hw_get_rx_buf_align() argument
[all …]
H A Dmain.c49 static void __wl1271_op_remove_interface(struct wl1271 *wl, in wl12xx_set_authorized()
52 static void wlcore_op_stop_locked(struct wl1271 *wl); in wl12xx_set_authorized()
53 static void wl1271_free_ap_keys(struct wl1271 *wl, struct wl12xx_vif *wlvif); in wl12xx_set_authorized()
55 static int wl12xx_set_authorized(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl12xx_set_authorized()
68 ret = wl12xx_cmd_set_peer_state(wl, wlvif, wlvif->sta.hlid); in wl1271_reg_notify()
80 struct wl1271 *wl = hw->priv; in wl1271_set_rx_streaming() argument
84 wl->dfs_region = request->dfs_region; in wl1271_set_rx_streaming()
86 wlcore_regdomain_config(wl); in wl1271_set_rx_streaming()
89 static int wl1271_set_rx_streaming(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_set_rx_streaming()
94 /* we should hold wl in wl1271_set_rx_streaming()
46 wl12xx_set_authorized(struct wl1271 * wl,struct wl12xx_vif * wlvif) wl12xx_set_authorized() argument
71 struct wl1271 *wl = hw->priv; wl1271_reg_notify() local
102 wl1271_recalc_rx_streaming(struct wl1271 * wl,struct wl12xx_vif * wlvif) wl1271_recalc_rx_streaming() argument
131 struct wl1271 *wl = wlvif->wl; wl1271_rx_streaming_enable_work() local
167 struct wl1271 *wl = wlvif->wl; wl1271_rx_streaming_disable_work() local
192 struct wl1271 *wl = wlvif->wl; wl1271_rx_streaming_timer() local
197 wl12xx_rearm_tx_watchdog_locked(struct wl1271 * wl) wl12xx_rearm_tx_watchdog_locked() argument
213 struct wl1271 *wl = wlvif->wl; wlcore_rc_update_work() local
243 struct wl1271 *wl; wl12xx_tx_watchdog_work() local
302 wlcore_adjust_conf(struct wl1271 * wl) wlcore_adjust_conf() argument
327 wl12xx_irq_ps_regulate_link(struct wl1271 * wl,struct wl12xx_vif * wlvif,u8 hlid,u8 tx_pkts) wl12xx_irq_ps_regulate_link() argument
356 wl12xx_irq_update_links_status(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct wl_fw_status * status) wl12xx_irq_update_links_status() argument
378 wlcore_fw_status(struct wl1271 * wl,struct wl_fw_status * status) wlcore_fw_status() argument
564 wl1271_flush_deferred_work(struct wl1271 * wl) wl1271_flush_deferred_work() argument
579 struct wl1271 *wl = wl1271_netstack_work() local
589 wlcore_irq_locked(struct wl1271 * wl) wlcore_irq_locked() argument
721 struct wl1271 *wl = cookie; wlcore_irq() local
804 wl12xx_fetch_firmware(struct wl1271 * wl,bool plt) wl12xx_fetch_firmware() argument
867 wl12xx_queue_recovery_work(struct wl1271 * wl) wl12xx_queue_recovery_work() argument
880 wl12xx_copy_fwlog(struct wl1271 * wl,u8 * memblock,size_t maxlen) wl12xx_copy_fwlog() argument
894 wl12xx_read_fwlog_panic(struct wl1271 * wl) wl12xx_read_fwlog_panic() argument
926 wlcore_save_freed_pkts(struct wl1271 * wl,struct wl12xx_vif * wlvif,u8 hlid,struct ieee80211_sta * sta) wlcore_save_freed_pkts() argument
946 wlcore_save_freed_pkts_addr(struct wl1271 * wl,struct wl12xx_vif * wlvif,u8 hlid,const u8 * addr) wlcore_save_freed_pkts_addr() argument
964 wlcore_print_recovery(struct wl1271 * wl) wlcore_print_recovery() argument
995 struct wl1271 *wl = wl1271_recovery_work() local
1062 wlcore_fw_wakeup(struct wl1271 * wl) wlcore_fw_wakeup() argument
1067 wl1271_setup(struct wl1271 * wl) wl1271_setup() argument
1088 wl12xx_set_power_on(struct wl1271 * wl) wl12xx_set_power_on() argument
1117 wl12xx_chip_wakeup(struct wl1271 * wl,bool plt) wl12xx_chip_wakeup() argument
1156 wl1271_plt_start(struct wl1271 * wl,const enum plt_mode plt_mode) wl1271_plt_start() argument
1224 wl1271_plt_stop(struct wl1271 * wl) wl1271_plt_stop() argument
1278 struct wl1271 *wl = hw->priv; wl1271_op_tx() local
1347 wl1271_tx_dummy_packet(struct wl1271 * wl) wl1271_tx_dummy_packet() argument
1381 wl12xx_alloc_dummy_packet(struct wl1271 * wl) wl12xx_alloc_dummy_packet() argument
1623 wl1271_configure_wowlan(struct wl1271 * wl,struct cfg80211_wowlan * wow) wl1271_configure_wowlan() argument
1688 wl1271_configure_suspend_sta(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct cfg80211_wowlan * wow) wl1271_configure_suspend_sta() argument
1718 wl1271_configure_suspend_ap(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct cfg80211_wowlan * wow) wl1271_configure_suspend_ap() argument
1740 wl1271_configure_suspend(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct cfg80211_wowlan * wow) wl1271_configure_suspend() argument
1751 wl1271_configure_resume(struct wl1271 * wl,struct wl12xx_vif * wlvif) wl1271_configure_resume() argument
1789 struct wl1271 *wl = hw->priv; wl1271_op_suspend() local
1868 struct wl1271 *wl = hw->priv; wl1271_op_resume() local
1975 wlcore_op_stop_locked(struct wl1271 * wl) wlcore_op_stop_locked() argument
2085 struct wl1271 *wl = hw->priv; wlcore_op_stop() local
2099 struct wl1271 *wl; wlcore_channel_switch_work() local
2136 struct wl1271 *wl; wlcore_connection_loss_work() local
2164 struct wl1271 *wl; wlcore_pending_auth_complete_work() local
2202 wl12xx_allocate_rate_policy(struct wl1271 * wl,u8 * idx) wl12xx_allocate_rate_policy() argument
2214 wl12xx_free_rate_policy(struct wl1271 * wl,u8 * idx) wl12xx_free_rate_policy() argument
2223 wlcore_allocate_klv_template(struct wl1271 * wl,u8 * idx) wlcore_allocate_klv_template() argument
2235 wlcore_free_klv_template(struct wl1271 * wl,u8 * idx) wlcore_free_klv_template() argument
2244 wl12xx_get_role_type(struct wl1271 * wl,struct wl12xx_vif * wlvif) wl12xx_get_role_type() argument
2272 wl12xx_init_vif_data(struct wl1271 * wl,struct ieee80211_vif * vif) wl12xx_init_vif_data() argument
2368 wl12xx_init_fw(struct wl1271 * wl) wl12xx_init_fw() argument
2454 wl12xx_need_fw_change(struct wl1271 * wl,struct vif_counter_data vif_counter_data,bool add) wl12xx_need_fw_change() argument
2490 wl12xx_force_active_psm(struct wl1271 * wl) wl12xx_force_active_psm() argument
2524 wlcore_allocate_hw_queue_base(struct wl1271 * wl,struct wl12xx_vif * wlvif) wlcore_allocate_hw_queue_base() argument
2583 struct wl1271 *wl = hw->priv; wl1271_op_add_interface() local
2701 __wl1271_op_remove_interface(struct wl1271 * wl,struct ieee80211_vif * vif,bool reset_tx_queues) __wl1271_op_remove_interface() argument
2854 struct wl1271 *wl = hw->priv; wl1271_op_remove_interface() local
2891 struct wl1271 *wl = hw->priv; wl12xx_op_change_interface() local
2905 wlcore_join(struct wl1271 * wl,struct wl12xx_vif * wlvif) wlcore_join() argument
2956 wlcore_set_ssid(struct wl1271 * wl,struct wl12xx_vif * wlvif) wlcore_set_ssid() argument
2978 wlcore_set_assoc(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct ieee80211_bss_conf * bss_conf,u32 sta_rate_set) wlcore_set_assoc() argument
3065 wlcore_unset_assoc(struct wl1271 * wl,struct wl12xx_vif * wlvif) wlcore_unset_assoc() argument
3120 wl1271_set_band_rate(struct wl1271 * wl,struct wl12xx_vif * wlvif) wl1271_set_band_rate() argument
3126 wl1271_sta_handle_idle(struct wl1271 * wl,struct wl12xx_vif * wlvif,bool idle) wl1271_sta_handle_idle() argument
3145 wl12xx_config_vif(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct ieee80211_conf * conf,u32 changed) wl12xx_config_vif() argument
3166 struct wl1271 *wl = hw->priv; wl1271_op_config() local
3251 struct wl1271 *wl = hw->priv; wl1271_op_configure_filter() local
3319 wl1271_record_ap_key(struct wl1271 * wl,struct wl12xx_vif * wlvif,u8 id,u8 key_type,u8 key_size,const u8 * key,u8 hlid,u32 tx_seq_32,u16 tx_seq_16,bool is_pairwise) wl1271_record_ap_key() argument
3366 wl1271_free_ap_keys(struct wl1271 * wl,struct wl12xx_vif * wlvif) wl1271_free_ap_keys() argument
3376 wl1271_ap_init_hwenc(struct wl1271 * wl,struct wl12xx_vif * wlvif) wl1271_ap_init_hwenc() argument
3416 wl1271_set_key(struct wl1271 * wl,struct wl12xx_vif * wlvif,u16 action,u8 id,u8 key_type,u8 key_size,const u8 * key,u32 tx_seq_32,u16 tx_seq_16,struct ieee80211_sta * sta,bool is_pairwise) wl1271_set_key() argument
3499 struct wl1271 *wl = hw->priv; wlcore_op_set_key() local
3538 wlcore_set_key(struct wl1271 * wl,enum set_key_cmd cmd,struct ieee80211_vif * vif,struct ieee80211_sta * sta,struct ieee80211_key_conf * key_conf) wlcore_set_key() argument
3659 struct wl1271 *wl = hw->priv; wl1271_op_set_default_key_idx() local
3699 wlcore_regdomain_config(struct wl1271 * wl) wlcore_regdomain_config() argument
3731 struct wl1271 *wl = hw->priv; wl1271_op_hw_scan() local
3778 struct wl1271 *wl = hw->priv; wl1271_op_cancel_hw_scan() local
3830 struct wl1271 *wl = hw->priv; wl1271_op_sched_scan_start() local
3863 struct wl1271 *wl = hw->priv; wl1271_op_sched_scan_stop() local
3890 struct wl1271 *wl = hw->priv; wl1271_op_set_frag_threshold() local
3919 struct wl1271 *wl = hw->priv; wl1271_op_set_rts_threshold() local
3978 wl1271_ap_set_probe_resp_tmpl(struct wl1271 * wl,u32 rates,struct ieee80211_vif * vif) wl1271_ap_set_probe_resp_tmpl() argument
4006 wl1271_ap_set_probe_resp_tmpl_legacy(struct wl1271 * wl,struct ieee80211_vif * vif,u8 * probe_rsp_data,size_t probe_rsp_len,u32 rates) wl1271_ap_set_probe_resp_tmpl_legacy() argument
4063 wl1271_bss_erp_info_changed(struct wl1271 * wl,struct ieee80211_vif * vif,struct ieee80211_bss_conf * bss_conf,u32 changed) wl1271_bss_erp_info_changed() argument
4106 wlcore_set_beacon_template(struct wl1271 * wl,struct ieee80211_vif * vif,bool is_ap) wlcore_set_beacon_template() argument
4192 wl1271_bss_beacon_info_changed(struct wl1271 * wl,struct ieee80211_vif * vif,struct ieee80211_bss_conf * bss_conf,u32 changed) wl1271_bss_beacon_info_changed() argument
4233 wl1271_bss_info_changed_ap(struct wl1271 * wl,struct ieee80211_vif * vif,struct ieee80211_bss_conf * bss_conf,u32 changed) wl1271_bss_info_changed_ap() argument
4331 wlcore_set_bssid(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct ieee80211_vif * vif,u32 sta_rate_set) wlcore_set_bssid() argument
4382 wlcore_clear_bssid(struct wl1271 * wl,struct wl12xx_vif * wlvif) wlcore_clear_bssid() argument
4405 wl1271_bss_info_changed_sta(struct wl1271 * wl,struct ieee80211_vif * vif,struct ieee80211_bss_conf * bss_conf,u32 changed) wl1271_bss_info_changed_sta() argument
4658 struct wl1271 *wl = hw->priv; wl1271_op_bss_info_changed() local
4731 struct wl1271 *wl = hw->priv; wlcore_op_change_chanctx() local
4778 struct wl1271 *wl = hw->priv; wlcore_op_assign_vif_chanctx() local
4828 struct wl1271 *wl = hw->priv; wlcore_op_unassign_vif_chanctx() local
4863 __wlcore_switch_vif_chan(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct ieee80211_chanctx_conf * new_ctx) __wlcore_switch_vif_chan() argument
4906 struct wl1271 *wl = hw->priv; wlcore_op_switch_vif_chanctx() local
4939 struct wl1271 *wl = hw->priv; wl1271_op_conf_tx() local
4992 struct wl1271 *wl = hw->priv; wl1271_op_get_tsf() local
5033 wl1271_allocate_sta(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct ieee80211_sta * sta) wl1271_allocate_sta() argument
5062 wl1271_free_sta(struct wl1271 * wl,struct wl12xx_vif * wlvif,u8 hlid) wl1271_free_sta() argument
5088 wl12xx_sta_add(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct ieee80211_sta * sta) wl12xx_sta_add() argument
5112 wl12xx_sta_remove(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct ieee80211_sta * sta) wl12xx_sta_remove() argument
5134 wlcore_roc_if_possible(struct wl1271 * wl,struct wl12xx_vif * wlvif) wlcore_roc_if_possible() argument
5153 wlcore_update_inconn_sta(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct wl1271_station * wl_sta,bool in_conn) wlcore_update_inconn_sta() argument
5193 wl12xx_update_sta_state(struct wl1271 * wl,struct wl12xx_vif * wlvif,struct ieee80211_sta * sta,enum ieee80211_sta_state old_state,enum ieee80211_sta_state new_state) wl12xx_update_sta_state() argument
5305 struct wl1271 *wl = hw->priv; wl12xx_op_sta_state() local
5337 struct wl1271 *wl = hw->priv; wl1271_op_ampdu_action() local
5462 struct wl1271 *wl = hw->priv; wl12xx_set_bitrate_mask() local
5504 struct wl1271 *wl = hw->priv; wl12xx_op_channel_switch() local
5552 wlcore_get_beacon_ie(struct wl1271 * wl,struct wl12xx_vif * wlvif,u8 eid) wlcore_get_beacon_ie() argument
5568 wlcore_get_csa_count(struct wl1271 * wl,struct wl12xx_vif * wlvif,u8 * csa_count) wlcore_get_csa_count() argument
5588 struct wl1271 *wl = hw->priv; wlcore_op_channel_switch_beacon() local
5632 struct wl1271 *wl = hw->priv; wlcore_op_flush() local
5644 struct wl1271 *wl = hw->priv; wlcore_op_remain_on_channel() local
5683 __wlcore_roc_completed(struct wl1271 * wl) __wlcore_roc_completed() argument
5706 wlcore_roc_completed(struct wl1271 * wl) wlcore_roc_completed() argument
5735 struct wl1271 *wl; wlcore_roc_complete_work() local
5749 struct wl1271 *wl = hw->priv; wlcore_op_cancel_remain_on_channel() local
5791 struct wl1271 *wl = hw->priv; wlcore_op_sta_statistics() local
5825 struct wl1271 *wl = hw->priv; wlcore_op_get_expected_throughput() local
5834 struct wl1271 *wl = hw->priv; wl1271_tx_frames_pending() local
6038 wlcore_rate_to_idx(struct wl1271 * wl,u8 rate,enum nl80211_band band) wlcore_rate_to_idx() argument
6058 wl12xx_derive_mac_addresses(struct wl1271 * wl,u32 oui,u32 nic) wl12xx_derive_mac_addresses() argument
6097 wl12xx_get_hw_info(struct wl1271 * wl) wl12xx_get_hw_info() argument
6119 wl1271_register_hw(struct wl1271 * wl) wl1271_register_hw() argument
6188 wl1271_unregister_hw(struct wl1271 * wl) wl1271_unregister_hw() argument
6198 wl1271_init_ieee80211(struct wl1271 * wl) wl1271_init_ieee80211() argument
6352 struct wl1271 *wl; wlcore_alloc_hw() local
6498 wlcore_free_hw(struct wl1271 * wl) wlcore_free_hw() argument
6549 struct wl1271 *wl = context; wlcore_nvs_cb() local
6679 struct wl1271 *wl = dev_get_drvdata(dev); wlcore_runtime_suspend() local
6712 struct wl1271 *wl = dev_get_drvdata(dev); wlcore_runtime_resume() local
6763 wlcore_probe(struct wl1271 * wl,struct platform_device * pdev) wlcore_probe() argument
6802 struct wl1271 *wl = platform_get_drvdata(pdev); wlcore_remove() local
[all...]
H A Dio.h34 void wlcore_disable_interrupts(struct wl1271 *wl);
35 void wlcore_disable_interrupts_nosync(struct wl1271 *wl);
36 void wlcore_enable_interrupts(struct wl1271 *wl);
37 void wlcore_synchronize_interrupts(struct wl1271 *wl);
39 void wl1271_io_reset(struct wl1271 *wl);
40 void wl1271_io_init(struct wl1271 *wl);
41 int wlcore_translate_addr(struct wl1271 *wl, int addr);
44 static inline int __must_check wlcore_raw_write(struct wl1271 *wl, int addr, in wlcore_raw_write() argument
50 if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags) || in wlcore_raw_write()
51 WARN_ON((test_bit(WL1271_FLAG_IN_ELP, &wl->flags) && in wlcore_raw_write()
[all …]
H A Dtx.c30 static int wl1271_set_default_wep_key(struct wl1271 *wl, in wl1271_set_default_wep_key() argument
37 ret = wl12xx_cmd_set_default_wep_key(wl, id, in wl1271_set_default_wep_key()
40 ret = wl12xx_cmd_set_default_wep_key(wl, id, wlvif->sta.hlid); in wl1271_set_default_wep_key()
49 static int wl1271_alloc_tx_id(struct wl1271 *wl, struct sk_buff *skb) in wl1271_alloc_tx_id() argument
53 id = find_first_zero_bit(wl->tx_frames_map, wl->num_tx_desc); in wl1271_alloc_tx_id()
54 if (id >= wl->num_tx_desc) in wl1271_alloc_tx_id()
57 __set_bit(id, wl->tx_frames_map); in wl1271_alloc_tx_id()
58 wl->tx_frames[id] = skb; in wl1271_alloc_tx_id()
59 wl->tx_frames_cnt++; in wl1271_alloc_tx_id()
63 void wl1271_free_tx_id(struct wl1271 *wl, int id) in wl1271_free_tx_id() argument
[all …]
H A Dinit.c23 int wl1271_init_templates_config(struct wl1271 *wl) in wl1271_init_templates_config() argument
29 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
30 wl->scan_templ_id_2_4, NULL, in wl1271_init_templates_config()
36 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
37 wl->scan_templ_id_5, in wl1271_init_templates_config()
43 if (wl->quirks & WLCORE_QUIRK_DUAL_PROBE_TMPL) { in wl1271_init_templates_config()
44 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
45 wl->sched_scan_templ_id_2_4, in wl1271_init_templates_config()
52 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
53 wl->sched_scan_templ_id_5, in wl1271_init_templates_config()
[all …]
H A Dboot.c21 static int wl1271_boot_set_ecpu_ctrl(struct wl1271 *wl, u32 flag) in wl1271_boot_set_ecpu_ctrl() argument
27 ret = wlcore_read_reg(wl, REG_ECPU_CONTROL, &cpu_ctrl); in wl1271_boot_set_ecpu_ctrl()
33 ret = wlcore_write_reg(wl, REG_ECPU_CONTROL, cpu_ctrl); in wl1271_boot_set_ecpu_ctrl()
39 static int wlcore_boot_parse_fw_ver(struct wl1271 *wl, in wlcore_boot_parse_fw_ver() argument
44 strscpy(wl->chip.fw_ver_str, static_data->fw_version, in wlcore_boot_parse_fw_ver()
45 sizeof(wl->chip.fw_ver_str)); in wlcore_boot_parse_fw_ver()
47 ret = sscanf(wl->chip.fw_ver_str + 4, "%u.%u.%u.%u.%u", in wlcore_boot_parse_fw_ver()
48 &wl->chip.fw_ver[0], &wl->chip.fw_ver[1], in wlcore_boot_parse_fw_ver()
49 &wl->chip.fw_ver[2], &wl->chip.fw_ver[3], in wlcore_boot_parse_fw_ver()
50 &wl->chip.fw_ver[4]); in wlcore_boot_parse_fw_ver()
[all …]
H A Devent.c25 int wlcore_event_fw_logger(struct wl1271 *wl) in wlcore_event_fw_logger() argument
49 ret = wlcore_read(wl, addr, buffer, WL18XX_LOGGER_SDIO_BUFF_MAX, in wlcore_event_fw_logger()
85 wl12xx_copy_fwlog(wl, &buffer[start_loc], len); in wlcore_event_fw_logger()
93 wl12xx_copy_fwlog(wl, in wlcore_event_fw_logger()
100 ret = wlcore_write32(wl, addr + WL18XX_LOGGER_READ_POINT_OFFSET, in wlcore_event_fw_logger()
109 void wlcore_event_rssi_trigger(struct wl1271 *wl, s8 *metric_arr) in wlcore_event_rssi_trigger() argument
119 wl12xx_for_each_wlvif_sta(wl, wlvif) { in wlcore_event_rssi_trigger()
134 static void wl1271_stop_ba_event(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl1271_stop_ba_event() argument
140 if (!wl->links[hlid].ba_bitmap) in wl1271_stop_ba_event()
142 ieee80211_stop_rx_ba_session(vif, wl->links[hlid].ba_bitmap, in wl1271_stop_ba_event()
[all …]
H A Dtestmode.c58 static int wl1271_tm_cmd_test(struct wl1271 *wl, struct nlattr *tb[]) in wl1271_tm_cmd_test() argument
79 mutex_lock(&wl->mutex); in wl1271_tm_cmd_test()
81 if (unlikely(wl->state != WLCORE_STATE_ON)) { in wl1271_tm_cmd_test()
86 ret = pm_runtime_resume_and_get(wl->dev); in wl1271_tm_cmd_test()
90 ret = wl1271_cmd_test(wl, buf, buf_len, answer); in wl1271_tm_cmd_test()
112 skb = cfg80211_testmode_alloc_reply_skb(wl->hw->wiphy, len); in wl1271_tm_cmd_test()
130 pm_runtime_put_autosuspend(wl->dev); in wl1271_tm_cmd_test()
132 mutex_unlock(&wl->mutex); in wl1271_tm_cmd_test()
137 static int wl1271_tm_cmd_interrogate(struct wl1271 *wl, struct nlattr *tb[]) in wl1271_tm_cmd_interrogate() argument
151 mutex_lock(&wl->mutex); in wl1271_tm_cmd_interrogate()
[all …]
H A Dwlcore.h38 int (*setup)(struct wl1271 *wl);
39 int (*identify_chip)(struct wl1271 *wl);
40 int (*identify_fw)(struct wl1271 *wl);
41 int (*boot)(struct wl1271 *wl);
42 int (*plt_init)(struct wl1271 *wl);
43 int (*trigger_cmd)(struct wl1271 *wl, int cmd_box_addr,
45 int (*ack_event)(struct wl1271 *wl);
46 int (*wait_for_event)(struct wl1271 *wl, enum wlcore_wait_event event,
48 int (*process_mailbox_events)(struct wl1271 *wl);
49 u32 (*calc_tx_blocks)(struct wl1271 *wl, u32 len, u32 spare_blks);
[all …]
H A Drx.c27 static u32 wlcore_rx_get_buf_size(struct wl1271 *wl, in wlcore_rx_get_buf_size() argument
30 if (wl->quirks & WLCORE_QUIRK_RX_BLOCKSIZE_ALIGN) in wlcore_rx_get_buf_size()
37 static u32 wlcore_rx_get_align_buf_size(struct wl1271 *wl, u32 pkt_len) in wlcore_rx_get_align_buf_size() argument
39 if (wl->quirks & WLCORE_QUIRK_RX_BLOCKSIZE_ALIGN) in wlcore_rx_get_align_buf_size()
45 static void wl1271_rx_status(struct wl1271 *wl, in wl1271_rx_status() argument
57 status->rate_idx = wlcore_rate_to_idx(wl, desc->rate, status->band); in wl1271_rx_status()
60 if (desc->rate <= wl->hw_min_ht_rate) in wl1271_rx_status()
77 wl->noise = desc->rssi - (desc->snr >> 1); in wl1271_rx_status()
99 wlcore_set_pending_regdomain_ch(wl, (u16)desc->channel, in wl1271_rx_status()
103 static int wl1271_rx_handle_data(struct wl1271 *wl, u8 *data, u32 length, in wl1271_rx_handle_data() argument
[all …]
/linux/drivers/net/wireless/ti/wl1251/
H A Dmain.c32 void wl1251_enable_interrupts(struct wl1251 *wl) in wl1251_enable_interrupts() argument
34 wl->if_ops->enable_irq(wl); in wl1251_enable_interrupts()
37 void wl1251_disable_interrupts(struct wl1251 *wl) in wl1251_disable_interrupts() argument
39 wl->if_ops->disable_irq(wl); in wl1251_disable_interrupts()
42 static int wl1251_power_off(struct wl1251 *wl) in wl1251_power_off() argument
44 return wl->if_ops->power(wl, false); in wl1251_power_off()
47 static int wl1251_power_on(struct wl1251 *wl) in wl1251_power_on() argument
49 return wl->if_ops->power(wl, true); in wl1251_power_on()
52 static int wl1251_fetch_firmware(struct wl1251 *wl) in wl1251_fetch_firmware() argument
55 struct device *dev = wiphy_dev(wl->hw->wiphy); in wl1251_fetch_firmware()
[all …]
H A Dboot.c17 void wl1251_boot_target_enable_interrupts(struct wl1251 *wl) in wl1251_boot_target_enable_interrupts() argument
19 wl1251_reg_write32(wl, ACX_REG_INTERRUPT_MASK, ~(wl->intr_mask)); in wl1251_boot_target_enable_interrupts()
20 wl1251_reg_write32(wl, HI_CFG, HI_CFG_DEF_VAL); in wl1251_boot_target_enable_interrupts()
23 int wl1251_boot_soft_reset(struct wl1251 *wl) in wl1251_boot_soft_reset() argument
29 wl1251_reg_write32(wl, ACX_REG_SLV_SOFT_RESET, ACX_SLV_SOFT_RESET_BIT); in wl1251_boot_soft_reset()
34 boot_data = wl1251_reg_read32(wl, ACX_REG_SLV_SOFT_RESET); in wl1251_boot_soft_reset()
50 wl1251_reg_write32(wl, ENABLE, 0x0); in wl1251_boot_soft_reset()
53 wl1251_reg_write32(wl, SPARE_A2, 0xffff); in wl1251_boot_soft_reset()
58 int wl1251_boot_init_seq(struct wl1251 *wl) in wl1251_boot_init_seq() argument
80 scr_pad6 = wl1251_reg_read32(wl, SCR_PAD6); in wl1251_boot_init_seq()
[all …]
H A Dinit.c18 int wl1251_hw_init_hwenc_config(struct wl1251 *wl) in wl1251_hw_init_hwenc_config() argument
22 ret = wl1251_acx_feature_cfg(wl, 0); in wl1251_hw_init_hwenc_config()
28 ret = wl1251_acx_default_key(wl, wl->default_key); in wl1251_hw_init_hwenc_config()
37 int wl1251_hw_init_templates_config(struct wl1251 *wl) in wl1251_hw_init_templates_config() argument
43 ret = wl1251_cmd_template_set(wl, CMD_PROBE_REQ, NULL, in wl1251_hw_init_templates_config()
48 ret = wl1251_cmd_template_set(wl, CMD_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
53 ret = wl1251_cmd_template_set(wl, CMD_PS_POLL, NULL, in wl1251_hw_init_templates_config()
58 ret = wl1251_cmd_template_set(wl, CMD_QOS_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
64 ret = wl1251_cmd_template_set(wl, CMD_PROBE_RESP, NULL, in wl1251_hw_init_templates_config()
70 ret = wl1251_cmd_template_set(wl, CMD_BEACON, NULL, in wl1251_hw_init_templates_config()
[all …]
H A Devent.c15 static int wl1251_event_scan_complete(struct wl1251 *wl, in wl1251_event_scan_complete() argument
24 if (wl->scanning) { in wl1251_event_scan_complete()
29 ieee80211_scan_completed(wl->hw, &info); in wl1251_event_scan_complete()
31 wl->scanning = false; in wl1251_event_scan_complete()
32 if (wl->hw->conf.flags & IEEE80211_CONF_IDLE) in wl1251_event_scan_complete()
33 ret = wl1251_ps_set_mode(wl, STATION_IDLE); in wl1251_event_scan_complete()
40 static int wl1251_event_ps_report(struct wl1251 *wl, in wl1251_event_ps_report() argument
51 if (wl->station_mode != STATION_POWER_SAVE_MODE) { in wl1251_event_ps_report()
53 wl->psm_entry_retry = 0; in wl1251_event_ps_report()
57 if (wl->psm_entry_retry < WL1251_PSM_ENTRY_RETRIES) { in wl1251_event_ps_report()
[all …]
H A Dtx.c19 static bool wl1251_tx_double_buffer_busy(struct wl1251 *wl, u32 data_out_count) in wl1251_tx_double_buffer_busy() argument
23 data_in_count = wl->data_in_count; in wl1251_tx_double_buffer_busy()
40 static int wl1251_tx_path_status(struct wl1251 *wl) in wl1251_tx_path_status() argument
45 addr = wl->data_path->tx_control_addr; in wl1251_tx_path_status()
46 status = wl1251_mem_read32(wl, addr); in wl1251_tx_path_status()
48 busy = wl1251_tx_double_buffer_busy(wl, data_out_count); in wl1251_tx_path_status()
56 static int wl1251_tx_id(struct wl1251 *wl, struct sk_buff *skb) in wl1251_tx_id() argument
61 if (wl->tx_frames[i] == NULL) { in wl1251_tx_id()
62 wl->tx_frames[i] = skb; in wl1251_tx_id()
134 static int wl1251_tx_fill_hdr(struct wl1251 *wl, struct sk_buff *skb, in wl1251_tx_fill_hdr() argument
[all …]
H A Dio.h23 static inline u32 wl1251_read32(struct wl1251 *wl, int addr) in wl1251_read32() argument
25 wl->if_ops->read(wl, addr, &wl->buffer_32, sizeof(wl->buffer_32)); in wl1251_read32()
27 return le32_to_cpu(wl->buffer_32); in wl1251_read32()
30 static inline void wl1251_write32(struct wl1251 *wl, int addr, u32 val) in wl1251_write32() argument
32 wl->buffer_32 = cpu_to_le32(val); in wl1251_write32()
33 wl->if_ops->write(wl, addr, &wl->buffer_32, sizeof(wl->buffer_32)); in wl1251_write32()
36 static inline u32 wl1251_read_elp(struct wl1251 *wl, int addr) in wl1251_read_elp() argument
40 if (wl->if_ops->read_elp) in wl1251_read_elp()
41 wl->if_ops->read_elp(wl, addr, &response); in wl1251_read_elp()
43 wl->if_ops->read(wl, addr, &response, sizeof(u32)); in wl1251_read_elp()
[all …]
H A Dps.c19 struct wl1251 *wl; in wl1251_elp_work() local
22 wl = container_of(dwork, struct wl1251, elp_work); in wl1251_elp_work()
26 mutex_lock(&wl->mutex); in wl1251_elp_work()
28 if (wl->elp || wl->station_mode == STATION_ACTIVE_MODE) in wl1251_elp_work()
32 wl1251_write_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_SLEEP); in wl1251_elp_work()
33 wl->elp = true; in wl1251_elp_work()
36 mutex_unlock(&wl->mutex); in wl1251_elp_work()
42 void wl1251_ps_elp_sleep(struct wl1251 *wl) in wl1251_ps_elp_sleep() argument
46 if (wl->station_mode != STATION_ACTIVE_MODE) { in wl1251_ps_elp_sleep()
48 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay); in wl1251_ps_elp_sleep()
[all …]
H A Dsdio.c27 static struct sdio_func *wl_to_func(struct wl1251 *wl) in wl_to_func() argument
29 struct wl1251_sdio *wl_sdio = wl->if_priv; in wl_to_func()
35 struct wl1251 *wl = sdio_get_drvdata(func); in wl1251_sdio_interrupt() local
40 ieee80211_queue_work(wl->hw, &wl->irq_work); in wl1251_sdio_interrupt()
50 static void wl1251_sdio_read(struct wl1251 *wl, int addr, in wl1251_sdio_read() argument
54 struct sdio_func *func = wl_to_func(wl); in wl1251_sdio_read()
63 static void wl1251_sdio_write(struct wl1251 *wl, int addr, in wl1251_sdio_write() argument
67 struct sdio_func *func = wl_to_func(wl); in wl1251_sdio_write()
76 static void wl1251_sdio_read_elp(struct wl1251 *wl, int addr, u32 *val) in wl1251_sdio_read_elp() argument
79 struct wl1251_sdio *wl_sdio = wl->if_priv; in wl1251_sdio_read_elp()
[all …]
H A Dio.c27 static int wl1251_translate_reg_addr(struct wl1251 *wl, int addr) in wl1251_translate_reg_addr() argument
41 return addr - wl->physical_reg_addr + wl->virtual_reg_addr; in wl1251_translate_reg_addr()
44 static int wl1251_translate_mem_addr(struct wl1251 *wl, int addr) in wl1251_translate_mem_addr() argument
46 return addr - wl->physical_mem_addr + wl->virtual_mem_addr; in wl1251_translate_mem_addr()
49 void wl1251_mem_read(struct wl1251 *wl, int addr, void *buf, size_t len) in wl1251_mem_read() argument
53 physical = wl1251_translate_mem_addr(wl, addr); in wl1251_mem_read()
55 wl->if_ops->read(wl, physical, buf, len); in wl1251_mem_read()
58 void wl1251_mem_write(struct wl1251 *wl, int addr, void *buf, size_t len) in wl1251_mem_write() argument
62 physical = wl1251_translate_mem_addr(wl, addr); in wl1251_mem_write()
64 wl->if_ops->write(wl, physical, buf, len); in wl1251_mem_write()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dmac80211_if.c286 static void brcms_free(struct brcms_info *wl) in brcms_free() argument
291 if (wl->fw.fw_cnt) in brcms_free()
292 brcms_ucode_data_free(&wl->ucode); in brcms_free()
293 if (wl->irq) in brcms_free()
294 free_irq(wl->irq, wl); in brcms_free()
297 tasklet_kill(&wl->tasklet); in brcms_free()
299 if (wl->pub) { in brcms_free()
300 brcms_debugfs_detach(wl->pub); in brcms_free()
301 brcms_c_module_unregister(wl->pub, "linux", wl); in brcms_free()
305 if (wl->wlc) { in brcms_free()
[all …]
H A Dled.c22 static void brcms_radio_led_ctrl(struct brcms_info *wl, bool state) in brcms_radio_led_ctrl() argument
24 if (!wl->radio_led.gpiod) in brcms_radio_led_ctrl()
28 gpiod_set_value(wl->radio_led.gpiod, 1); in brcms_radio_led_ctrl()
30 gpiod_set_value(wl->radio_led.gpiod, 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()
47 if (wl->radio_led.gpiod) in brcms_led_unregister()
[all …]
/linux/drivers/net/wireless/ti/wl12xx/
H A Dmain.c597 static int wl127x_prepare_read(struct wl1271 *wl, u32 rx_desc, u32 len) in wl127x_prepare_read() argument
601 if (wl->chip.id != CHIP_ID_128X_PG20) { in wl127x_prepare_read()
602 struct wl1271_acx_mem_map *wl_mem_map = wl->target_mem_map; in wl127x_prepare_read()
603 struct wl12xx_priv *priv = wl->priv; in wl127x_prepare_read()
617 ret = wlcore_write(wl, WL1271_SLV_REG_DATA, priv->rx_mem_addr, in wl127x_prepare_read()
626 static int wl12xx_identify_chip(struct wl1271 *wl) in wl12xx_identify_chip() argument
630 switch (wl->chip.id) { in wl12xx_identify_chip()
633 wl->chip.id); in wl12xx_identify_chip()
635 wl->quirks |= WLCORE_QUIRK_LEGACY_NVS | in wl12xx_identify_chip()
639 wl->sr_fw_name = WL127X_FW_NAME_SINGLE; in wl12xx_identify_chip()
[all …]
H A Dscan.c13 static int wl1271_get_scan_channels(struct wl1271 *wl, in wl1271_get_scan_channels() argument
18 struct conf_scan_settings *c = &wl->conf.scan; in wl1271_get_scan_channels()
27 if (!test_bit(i, wl->scan.scanned_ch) && in wl1271_get_scan_channels()
69 set_bit(i, wl->scan.scanned_ch); in wl1271_get_scan_channels()
80 static int wl1271_scan_send(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_scan_send() argument
91 if (!passive && wl->scan.req->n_ssids == 0) in wl1271_scan_send()
101 if (wl->conf.scan.split_scan_timeout) in wl1271_scan_send()
120 cmd->params.n_ch = wl1271_get_scan_channels(wl, wl->scan.req, in wl1271_scan_send()
129 cmd->params.n_probe_reqs = wl->conf.scan.num_probe_reqs; in wl1271_scan_send()
138 if (wl->scan.ssid_len) { in wl1271_scan_send()
[all …]
/linux/kernel/power/
H A Dwakelock.c41 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 len += sysfs_emit_at(buf, len, "%s ", wl->name); in pm_show_wakelocks()
93 static inline void wakelocks_lru_add(struct wakelock *wl) in wakelocks_lru_add() argument
95 list_add(&wl->lru, &wakelocks_lru_list); in wakelocks_lru_add()
98 static inline void wakelocks_lru_most_recent(struct wakelock *wl) in wakelocks_lru_most_recent() argument
100 list_move(&wl->lru, &wakelocks_lru_list); in wakelocks_lru_most_recent()
105 struct wakelock *wl, *aux; in __wakelocks_gc() local
111 list_for_each_entry_safe_reverse(wl, aux, &wakelocks_lru_list, lru) { in __wakelocks_gc()
[all …]
/linux/drivers/net/ethernet/toshiba/
H A Dps3_gelic_wireless.c38 static int gelic_wl_start_scan(struct gelic_wl_info *wl, int always_scan,
146 struct gelic_wl_info *wl; in gelic_eurus_sync_cmd_worker() local
154 wl = cmd->wl; in gelic_eurus_sync_cmd_worker()
155 card = port_to_card(wl_port(wl)); in gelic_eurus_sync_cmd_worker()
166 init_completion(&wl->cmd_done_intr); in gelic_eurus_sync_cmd_worker()
178 wait_for_completion(&wl->cmd_done_intr); in gelic_eurus_sync_cmd_worker()
204 static struct gelic_eurus_cmd *gelic_eurus_sync_cmd(struct gelic_wl_info *wl, in gelic_eurus_sync_cmd() argument
220 cmd->wl = wl; in gelic_eurus_sync_cmd()
223 queue_work(wl->eurus_cmd_queue, &cmd->work); in gelic_eurus_sync_cmd()
233 struct gelic_wl_info *wl = port_wl(netdev_port(netdev)); in gelic_wl_get_link() local
[all …]

1234567