/linux-6.3-rc2/drivers/net/wireless/ti/wlcore/ |
A D | hw_ops.h | 41 wl->ops->set_tx_desc_data_len(wl, desc, skb); in wlcore_hw_set_tx_desc_data_len() 51 return wl->ops->get_rx_buf_align(wl, rx_desc); in wlcore_hw_get_rx_buf_align() 75 return wl->ops->tx_delayed_compl(wl); in wlcore_hw_tx_delayed_compl() 83 wl->ops->tx_immediate_compl(wl); in wlcore_hw_tx_immediate_compl() 90 return wl->ops->init_vif(wl, wlvif); in wlcore_hw_init_vif() 116 return wl->ops->identify_fw(wl); in wlcore_identify_fw() 129 wl->ops->set_tx_desc_csum(wl, desc, skb); in wlcore_hw_set_tx_desc_csum() 138 wl->ops->set_rx_csum(wl, desc, skb); in wlcore_hw_set_rx_csum() 203 wl->ops->sta_rc_update(wl, wlvif); in wlcore_hw_sta_rc_update() 226 return wl->ops->ap_sleep(wl); in wlcore_hw_ap_sleep() [all …]
|
A D | main.c | 131 struct wl1271 *wl = wlvif->wl; in wl1271_rx_streaming_enable_work() local 168 struct wl1271 *wl = wlvif->wl; in wl1271_rx_streaming_disable_work() local 193 struct wl1271 *wl = wlvif->wl; in wl1271_rx_streaming_timer() local 214 struct wl1271 *wl = wlvif->wl; in wlcore_rc_update_work() local 2032 wl = wlvif->wl; in wlcore_channel_switch_work() 2069 wl = wlvif->wl; in wlcore_connection_loss_work() 2099 wl = wlvif->wl; in wlcore_pending_auth_complete_work() 2544 wlvif->wl = wl; in wl1271_op_add_interface() 6050 ret = wl->ops->get_pg_ver(wl, &wl->hw_pg_ver); in wl12xx_get_hw_info() 6608 free_irq(wl->irq, wl); in wlcore_nvs_cb() [all …]
|
A D | io.h | 55 ret = wl->if_ops->write(wl->dev, addr, buf, len, fixed); in wlcore_raw_write() 73 ret = wl->if_ops->read(wl->dev, addr, buf, len, fixed); in wlcore_raw_read() 99 ret = wlcore_raw_read(wl, addr, wl->buffer_32, in wlcore_raw_read32() 114 return wlcore_raw_write(wl, addr, wl->buffer_32, in wlcore_raw_write32() 142 return wlcore_write(wl, wl->rtable[reg], buf, len, fixed); in wlcore_write_data() 149 return wlcore_read(wl, wl->rtable[reg], buf, len, fixed); in wlcore_read_data() 160 addr = wl->ops->convert_hwaddr(wl, hwaddr); in wlcore_read_hwaddr() 183 wlcore_translate_addr(wl, wl->rtable[reg]), in wlcore_read_reg() 191 wlcore_translate_addr(wl, wl->rtable[reg]), in wlcore_write_reg() 203 ret = wl->if_ops->power(wl->dev, false); in wl1271_power_off() [all …]
|
A D | tx.c | 53 id = find_first_zero_bit(wl->tx_frames_map, wl->num_tx_desc); 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() 66 if (unlikely(wl->tx_frames_cnt == wl->num_tx_desc)) in wl1271_free_tx_id() 70 wl->tx_frames_cnt--; in wl1271_free_tx_id() 129 if (wl->active_link_count > (wl->ap_count*2 + 1) && fw_ps && in wl1271_tx_regulate_link() 612 skb = wlcore_lnk_dequeue_high_prio(wl, wl->system_hlid, in wl1271_skb_dequeue() 825 bus_ret = wlcore_write_data(wl, REG_SLV_MEM_DATA, wl->aggr_buf, in wlcore_tx_work_locked() 909 if (unlikely(id >= wl->num_tx_desc || wl->tx_frames[id] == NULL)) { in wl1271_tx_complete_packet() 966 queue_work(wl->freezable_wq, &wl->netstack_work); in wl1271_tx_complete_packet() [all …]
|
A D | init.c | 37 wl->scan_templ_id_5, in wl1271_init_templates_config() 260 ret = wl1271_acx_rts_threshold(wl, wlvif, wl->hw->wiphy->rts_threshold); in wl12xx_init_phy_vif_config() 292 ret = wl1271_acx_sg_enable(wl, wl->sg_enabled); in wl1271_init_pta() 547 if (wl->radar_debug_mode) in wl12xx_init_ap_role() 571 wl->event_mask |= wl->ap_event_mask; in wl1271_init_vif_specific() 576 } else if (wl->sta_count == 0 && wl->ap_count == 0 && !is_ap) { in wl1271_init_vif_specific() 611 BUG_ON(wl->conf.tx.tid_conf_count != wl->conf.tx.ac_conf_count); in wl1271_init_vif_specific() 664 ret = wl->ops->hw_init(wl); in wl1271_hw_init() 687 ret = wl1271_init_pta(wl); in wl1271_hw_init() 721 ret = wl1271_acx_frag_threshold(wl, wl->hw->wiphy->frag_threshold); in wl1271_hw_init() [all …]
|
A D | boot.c | 48 wl->chip.fw_ver_str[sizeof(wl->chip.fw_ver_str) - 1] = '\0'; in wlcore_boot_parse_fw_ver() 51 &wl->chip.fw_ver[0], &wl->chip.fw_ver[1], in wlcore_boot_parse_fw_ver() 52 &wl->chip.fw_ver[2], &wl->chip.fw_ver[3], in wlcore_boot_parse_fw_ver() 57 memset(wl->chip.fw_ver, 0, sizeof(wl->chip.fw_ver)); in wlcore_boot_parse_fw_ver() 73 wl->min_mr_fw_ver : wl->min_sr_fw_ver; in wlcore_validate_fw_ver() 244 fw = wl->fw; in wlcore_boot_upload_firmware() 411 ret = wlcore_set_partition(wl, &wl->ptable[PART_WORK]); in wlcore_boot_upload_nvs() 439 ret = wlcore_set_partition(wl, &wl->ptable[PART_BOOT]); in wlcore_boot_run_firmware() 499 wl->mbox_ptr[1] = wl->mbox_ptr[0] + wl->mbox_size; in wlcore_boot_run_firmware() 502 wl->mbox_ptr[0], wl->mbox_ptr[1]); in wlcore_boot_run_firmware() [all …]
|
A D | debugfs.c | 50 mutex_lock(&wl->mutex); in wl1271_debugfs_update_stats() 59 if (!wl->plt && in wl1271_debugfs_update_stats() 62 wl1271_acx_statistics(wl, wl->stats.fw_stats); in wl1271_debugfs_update_stats() 70 mutex_unlock(&wl->mutex); in wl1271_debugfs_update_stats() 114 chip_op(wl); in chip_op_handler() 203 mutex_lock(&wl->mutex); in gpio_power_write() 206 wl1271_power_on(wl); in gpio_power_write() 208 wl1271_power_off(wl); in gpio_power_write() 227 mutex_lock(&wl->mutex); in start_recovery_write() 1305 memset(wl->stats.fw_stats, 0, wl->stats.fw_stats_len); in wl1271_debugfs_reset() [all …]
|
A D | sysfs.c | 24 mutex_lock(&wl->mutex); in bt_coex_state_show() 26 wl->sg_enabled); in bt_coex_state_show() 27 mutex_unlock(&wl->mutex); in bt_coex_state_show() 47 mutex_lock(&wl->mutex); in bt_coex_state_store() 54 wl->sg_enabled = res; in bt_coex_state_store() 63 wl1271_acx_sg_enable(wl, wl->sg_enabled); in bt_coex_state_store() 68 mutex_unlock(&wl->mutex); in bt_coex_state_store() 83 mutex_lock(&wl->mutex); in hw_pg_ver_show() 84 if (wl->hw_pg_ver >= 0) in hw_pg_ver_show() 116 wl->fwlog_size -= len; in wl1271_sysfs_read_fwlog() [all …]
|
A D | event.c | 93 wl12xx_copy_fwlog(wl, in wlcore_event_fw_logger() 148 wl->num_links) { in wl1271_stop_ba_event() 149 lnk = &wl->links[hlid]; in wl1271_stop_ba_event() 181 if (wl->sched_vif) { in wlcore_event_sched_scan_completed() 183 wl->sched_vif = NULL; in wlcore_event_sched_scan_completed() 244 if (wl->plt) { in wlcore_event_dummy_packet() 305 if (wl->roc_vif) in wlcore_event_roc_complete() 355 ret = wl1271_acx_event_mbox_mask(wl, ~(wl->event_mask)); in wl1271_event_unmask() 372 ret = wlcore_read(wl, wl->mbox_ptr[mbox_num], wl->mbox, in wl1271_event_handle() 378 ret = wl->ops->process_mailbox_events(wl); in wl1271_event_handle() [all …]
|
A D | testmode.c | 79 mutex_lock(&wl->mutex); in wl1271_tm_cmd_test() 133 mutex_unlock(&wl->mutex); in wl1271_tm_cmd_test() 152 mutex_lock(&wl->mutex); in wl1271_tm_cmd_interrogate() 198 mutex_unlock(&wl->mutex); in wl1271_tm_cmd_interrogate() 223 mutex_lock(&wl->mutex); in wl1271_tm_cmd_configure() 225 mutex_unlock(&wl->mutex); in wl1271_tm_cmd_configure() 245 mutex_lock(&wl->mutex); in wl1271_tm_detect_fem() 267 wl1271_plt_stop(wl); in wl1271_tm_detect_fem() 309 mutex_lock(&wl->mutex); in wl12xx_tm_cmd_get_mac() 311 if (!wl->plt) { in wl12xx_tm_cmd_get_mac() [all …]
|
A D | wlcore.h | 38 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); 45 int (*ack_event)(struct wl1271 *wl); 63 int (*hw_init)(struct wl1271 *wl); 70 int (*get_mac)(struct wl1271 *wl); 74 void (*set_rx_csum)(struct wl1271 *wl, 99 int (*set_peer_cap)(struct wl1271 *wl, [all …]
|
/linux-6.3-rc2/drivers/net/wireless/ti/wl1251/ |
A D | main.c | 34 wl->if_ops->enable_irq(wl); in wl1251_enable_interrupts() 39 wl->if_ops->disable_irq(wl); in wl1251_disable_interrupts() 44 return wl->if_ops->power(wl, false); in wl1251_power_off() 49 return wl->if_ops->power(wl, true); in wl1251_power_on() 73 wl->fw = vmalloc(wl->fw_len); in wl1251_fetch_firmware() 150 wl->if_ops->reset(wl); in wl1251_chip_wakeup() 644 ret = wl1251_join(wl, wl->bss_type, wl->channel, in wl1251_op_config() 688 ret = wl1251_join(wl, wl->bss_type, wl->channel, in wl1251_op_config() 1006 ret = wl1251_join(wl, wl->bss_type, wl->channel, in wl1251_op_hw_scan() 1118 ret = wl1251_join(wl, wl->bss_type, wl->channel, in wl1251_op_bss_info_changed() [all …]
|
A D | boot.c | 19 wl1251_reg_write32(wl, ACX_REG_INTERRUPT_MASK, ~(wl->intr_mask)); in wl1251_boot_target_enable_interrupts() 250 wl->cmd_box_addr = wl1251_reg_read32(wl, REG_COMMAND_MAILBOX_PTR); in wl1251_boot_run_firmware() 253 wl->event_box_addr = wl1251_reg_read32(wl, REG_EVENT_MAILBOX_PTR); in wl1251_boot_run_firmware() 262 wl->cmd_box_addr, wl->event_box_addr); in wl1251_boot_run_firmware() 264 wl1251_acx_fw_version(wl, wl->fw_ver, sizeof(wl->fw_ver)); in wl1251_boot_run_firmware() 315 fw_data_len = (wl->fw[4] << 24) | (wl->fw[5] << 16) | in wl1251_boot_upload_firmware() 316 (wl->fw[6] << 8) | (wl->fw[7]); in wl1251_boot_upload_firmware() 395 nvs = wl->nvs; in wl1251_boot_upload_nvs() 480 if (wl->use_eeprom) { in wl1251_boot() 492 wl1251_reg_write32(wl, ACX_EEPROMLESS_IND_REG, wl->fw_len); in wl1251_boot() [all …]
|
A D | init.c | 28 ret = wl1251_acx_default_key(wl, wl->default_key); in wl1251_hw_init_hwenc_config() 199 if (!wl->target_mem_map) { in wl1251_hw_init_mem_config() 205 ret = wl1251_acx_mem_map(wl, wl->target_mem_map, in wl1251_hw_init_mem_config() 209 kfree(wl->target_mem_map); in wl1251_hw_init_mem_config() 299 if (!wl->data_path) in wl1251_hw_init_data_path_config() 302 ret = wl1251_acx_data_path_params(wl, wl->data_path); in wl1251_hw_init_data_path_config() 304 kfree(wl->data_path); in wl1251_hw_init_data_path_config() 305 wl->data_path = NULL; in wl1251_hw_init_data_path_config() 382 ret = wl1251_cmd_data_path_rx(wl, wl->channel, 1); in wl1251_hw_init() 387 ret = wl1251_cmd_data_path_tx(wl, wl->channel, 1); in wl1251_hw_init() [all …]
|
A D | event.c | 24 if (wl->scanning) { in wl1251_event_scan_complete() 31 wl->scanning = false; in wl1251_event_scan_complete() 121 if (wl->vif && wl->vif->type == NL80211_IFTYPE_STATION) in wl1251_event_process() 133 if (wl->vif && wl->rssi_thold) { in wl1251_event_process() 172 events_vector = wl1251_mem_read32(wl, wl->mbox_ptr[0]); in wl1251_event_wait() 174 events_vector = wl1251_mem_read32(wl, wl->mbox_ptr[1]); in wl1251_event_wait() 185 ret = wl1251_acx_event_mbox_mask(wl, ~(wl->event_mask)); in wl1251_event_unmask() 194 wl->mbox_ptr[0] = wl1251_reg_read32(wl, REG_EVENT_MAILBOX_PTR); in wl1251_event_mbox_config() 195 wl->mbox_ptr[1] = wl->mbox_ptr[0] + sizeof(struct event_mailbox); in wl1251_event_mbox_config() 198 wl->mbox_ptr[0], wl->mbox_ptr[1]); in wl1251_event_mbox_config() [all …]
|
A D | tx.c | 62 wl->tx_frames[i] = skb; in wl1251_tx_id() 264 wl->data_in_count = (wl->data_in_count + 1) & in wl1251_tx_trigger() 272 ret = wl1251_cmd_join(wl, BSS_TYPE_STA_BSS, wl->channel, in enable_tx_for_packet_injection() 273 wl->beacon_int, wl->dtim_period); in enable_tx_for_packet_injection() 285 wl->joined = true; in enable_tx_for_packet_injection() 310 if ((wl->vif == NULL) && !wl->joined) in wl1251_tx_frame() 325 wl1251_tx_trigger(wl); in wl1251_tx_frame() 459 wl1251_mem_read(wl, wl->data_path->tx_complete_addr, result, in wl1251_tx_complete() 487 ieee80211_queue_work(wl->hw, &wl->tx_work); in wl1251_tx_complete() 508 wl1251_mem_write(wl, in wl1251_tx_complete() [all …]
|
A D | io.h | 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() 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() 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() 50 if (wl->if_ops->write_elp) in wl1251_write_elp() 51 wl->if_ops->write_elp(wl, addr, val); in wl1251_write_elp() 53 wl->if_ops->write(wl, addr, &val, sizeof(u32)); in wl1251_write_elp() [all …]
|
A D | ps.c | 19 struct wl1251 *wl; in wl1251_elp_work() local 26 mutex_lock(&wl->mutex); in wl1251_elp_work() 28 if (wl->elp || wl->station_mode == STATION_ACTIVE_MODE) in wl1251_elp_work() 33 wl->elp = true; in wl1251_elp_work() 36 mutex_unlock(&wl->mutex); in wl1251_elp_work() 48 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay); in wl1251_ps_elp_sleep() 59 if (!wl->elp) in wl1251_ps_elp_wakeup() 87 wl->elp = false; in wl1251_ps_elp_wakeup() 107 wl->listen_int); in wl1251_ps_set_mode() 156 wl->listen_int); in wl1251_ps_set_mode() [all …]
|
A D | sdio.c | 40 ieee80211_queue_work(wl->hw, &wl->irq_work); in wl1251_sdio_interrupt() 139 ieee80211_queue_work(wl->hw, &wl->irq_work); in wl1251_line_irq() 196 struct wl1251 *wl; in wl1251_sdio_probe() local 205 wl = hw->priv; in wl1251_sdio_probe() 235 if (wl->irq) { in wl1251_sdio_probe() 237 ret = request_irq(wl->irq, wl1251_line_irq, 0, "wl1251", wl); in wl1251_sdio_probe() 268 if (wl->irq) in wl1251_sdio_probe() 269 free_irq(wl->irq, wl); in wl1251_sdio_probe() 277 wl1251_free_hw(wl); in wl1251_sdio_probe() 289 if (wl->irq) in wl1251_sdio_remove() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
A D | mac80211_if.c | 293 free_irq(wl->irq, wl); in brcms_free() 300 brcms_c_module_unregister(wl->pub, "linux", wl); in brcms_free() 396 status = brcms_ucode_data_init(wl, &wl->ucode); in brcms_request_fw() 427 err = brcms_request_fw(wl, wl->wlc->hw->d11core); in brcms_ops_start() 989 wl = from_tasklet(wl, t, tasklet); in brcms_dpc() 1003 wl->resched = brcms_c_dpc(wl->wlc, true); in brcms_dpc() 1164 wl->pub = brcms_c_pub(wl->wlc); in brcms_attach() 1360 brcms_c_init(wl->wlc, wl->mute_tx); in brcms_init() 1504 t->wl = wl; in brcms_init_timer() 1566 struct brcms_info *wl = t->wl; in brcms_free_timer() local [all …]
|
A D | led.c | 24 if (!wl->radio_led.gpiod) in brcms_radio_led_ctrl() 40 brcms_radio_led_ctrl(wl, brightness); in brcms_led_brightness_set() 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() 93 snprintf(wl->radio_led.name, sizeof(wl->radio_led.name), in brcms_led_register() 96 wl->led_dev.name = wl->radio_led.name; in brcms_led_register() 97 wl->led_dev.default_trigger = in brcms_led_register() 100 err = led_classdev_register(wiphy_dev(wl->wiphy), &wl->led_dev); in brcms_led_register() 104 wl->radio_led.name, err); in brcms_led_register() [all …]
|
/linux-6.3-rc2/kernel/power/ |
A D | wakelock.c | 41 struct wakelock *wl; in pm_show_wakelocks() local 125 kfree(wl); in __wakelocks_gc() 164 return wl; in wakelock_lookup_add() 178 wl = kzalloc(sizeof(*wl), GFP_KERNEL); in wakelock_lookup_add() 179 if (!wl) in wakelock_lookup_add() 183 if (!wl->name) { in wakelock_lookup_add() 184 kfree(wl); in wakelock_lookup_add() 188 wl->ws = wakeup_source_register(NULL, wl->name); in wakelock_lookup_add() 189 if (!wl->ws) { in wakelock_lookup_add() 191 kfree(wl); in wakelock_lookup_add() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/ti/wl12xx/ |
A D | main.c | 656 wl->chip.id); in wl12xx_identify_chip() 680 wl->chip.id); in wl12xx_identify_chip() 1103 ret = wlcore_set_partition(wl, &wl->ptable[PART_DRPW]); in wl12xx_pre_boot() 1126 ret = wlcore_set_partition(wl, &wl->ptable[PART_WORK]); in wl12xx_pre_boot() 1513 ret = wlcore_set_partition(wl, &wl->ptable[PART_DRPW]); in wl12xx_get_fuse_mac() 1530 ret = wlcore_set_partition(wl, &wl->ptable[PART_DOWN]); in wl12xx_get_fuse_mac() 1573 ret = wl->ops->boot(wl); in wl12xx_plt_init() 1577 ret = wl->ops->hw_init(wl); in wl12xx_plt_init() 1894 struct wl1271 *wl; in wl12xx_probe() local 1907 wl = hw->priv; in wl12xx_probe() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/toshiba/ |
A D | ps3_gelic_wireless.c | 154 wl = cmd->wl; in gelic_eurus_sync_cmd_worker() 220 cmd->wl = wl; in gelic_eurus_sync_cmd() 962 memcpy(wl->essid, extra, wl->essid_len); in gelic_wl_set_essid() 990 memcpy(extra, wl->essid, wl->essid_len); in gelic_wl_get_essid() 1263 memset(wl->psk, 0, sizeof(wl->psk)); in gelic_wl_set_encodeext() 1774 memcpy(wep->key[i], wl->key[i], wl->key_len[i]); in gelic_wl_do_wep_setup() 1852 memcpy(wpa->psk, wl->psk, wl->psk_len); in gelic_wl_do_wpa_setup() 2011 gelic_wl_send_iwap_event(wl, wl->active_bssid); in gelic_wl_associate_bss() 2479 memset(wl->essid, 0, sizeof(wl->essid)); in gelic_wl_reset_state() 2480 memset(wl->bssid, 0, sizeof(wl->bssid)); in gelic_wl_reset_state() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/ti/wl18xx/ |
A D | main.c | 849 ret = wlcore_set_partition(wl, &wl->ptable[PART_BOOT]); in wl18xx_pre_boot() 873 ret = wlcore_set_partition(wl, &wl->ptable[PART_BOOT]); in wl18xx_pre_upload() 899 ret = wlcore_set_partition(wl, &wl->ptable[PART_PHY_INIT]); in wl18xx_pre_upload() 938 ret = wlcore_set_partition(wl, &wl->ptable[PART_PHY_INIT]); in wl18xx_pre_upload() 957 ret = wlcore_set_partition(wl, &wl->ptable[PART_PHY_INIT]); in wl18xx_set_mac_and_phy() 1384 ret = wlcore_set_partition(wl, &wl->ptable[PART_BOOT]); in wl18xx_get_pg_ver() 1449 memcpy(&wl->conf, &wl18xx_conf, sizeof(wl->conf)); in wl18xx_conf_init() 1472 return wl->ops->boot(wl); in wl18xx_plt_init() 1497 if (!wl->fuse_oui_addr && !wl->fuse_nic_addr) { in wl18xx_get_mac() 1507 ret = wlcore_set_partition(wl, &wl->ptable[PART_DOWN]); in wl18xx_get_mac() [all …]
|