| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | hw.h | 22 #define MM81X_REG_TRGR_BASE(mors) ((mors)->regs->trgr_base_address) argument 23 #define MM81X_REG_TRGR1_STS(mors) (MM81X_REG_TRGR_BASE(mors) + 0x00) argument 24 #define MM81X_REG_TRGR1_SET(mors) (MM81X_REG_TRGR_BASE(mors) + 0x04) argument 25 #define MM81X_REG_TRGR1_CLR(mors) (MM81X_REG_TRGR_BASE(mors) + 0x08) argument 26 #define MM81X_REG_TRGR1_EN(mors) (MM81X_REG_TRGR_BASE(mors) + 0x0C) argument 27 #define MM81X_REG_TRGR2_STS(mors) (MM81X_REG_TRGR_BASE(mors) + 0x10) argument 28 #define MM81X_REG_TRGR2_SET(mors) (MM81X_REG_TRGR_BASE(mors) + 0x14) argument 29 #define MM81X_REG_TRGR2_CLR(mors) (MM81X_REG_TRGR_BASE(mors) + 0x18) argument 30 #define MM81X_REG_TRGR2_EN(mors) (MM81X_REG_TRGR_BASE(mors) + 0x1C) argument 32 #define MM81X_REG_INT_BASE(mors) ((mors)->regs->irq_base_address) argument [all …]
|
| H A D | hw.c | 63 static void mm81x_hw_otp_power_up(struct mm81x *mors) in mm81x_hw_otp_power_up() argument 65 mm81x_reg32_write(mors, MM8108_REG_OTPCTRL_PENVDD2, 1); in mm81x_hw_otp_power_up() 68 mm81x_reg32_write(mors, MM8108_REG_OTPCTRL_PLDO, 1); in mm81x_hw_otp_power_up() 71 mm81x_reg32_write(mors, MM8108_REG_OTPCTRL_PDSTB, 1); in mm81x_hw_otp_power_up() 75 static void mm81x_hw_otp_power_down(struct mm81x *mors) in mm81x_hw_otp_power_down() argument 77 mm81x_reg32_write(mors, MM8108_REG_OTPCTRL_PDSTB, 0); in mm81x_hw_otp_power_down() 78 mm81x_reg32_write(mors, MM8108_REG_OTPCTRL_PLDO, 0); in mm81x_hw_otp_power_down() 79 mm81x_reg32_write(mors, MM8108_REG_OTPCTRL_PENVDD2, 0); in mm81x_hw_otp_power_down() 82 static void mm81x_hw_otp_read_enable(struct mm81x *mors) in mm81x_hw_otp_read_enable() argument 84 mm81x_reg32_write(mors, MM8108_REG_OTPCTRL_PTM, 0); in mm81x_hw_otp_read_enable() [all …]
|
| H A D | hif.h | 34 int (*init)(struct mm81x *mors); 35 void (*flush_tx_data)(struct mm81x *mors); 36 void (*flush_cmds)(struct mm81x *mors); 37 void (*finish)(struct mm81x *mors); 38 void (*skbq_get_tx_qs)(struct mm81x *mors, struct mm81x_skbq **qs, 40 struct mm81x_skbq *(*get_tx_cmd_queue)(struct mm81x *mors); 41 struct mm81x_skbq *(*get_tx_beacon_queue)(struct mm81x *mors); 42 struct mm81x_skbq *(*get_tx_mgmt_queue)(struct mm81x *mors); 43 struct mm81x_skbq *(*get_tx_data_queue)(struct mm81x *mors, int aci); 44 int (*handle_irq)(struct mm81x *mors, u32 status); [all …]
|
| H A D | fw.c | 55 static void mm81x_fw_parse_info(struct mm81x *mors, const u8 *data, int length) in mm81x_fw_parse_info() argument 63 mors->bcf_address = get_unaligned_le32(tlv->val); in mm81x_fw_parse_info() 91 static int mm81x_fw_set_boot_addr(struct mm81x *mors, uint32_t addr) in mm81x_fw_set_boot_addr() argument 95 dev_dbg(mors->dev, "Overwriting boot address to 0x%x", addr); in mm81x_fw_set_boot_addr() 96 mm81x_claim_bus(mors); in mm81x_fw_set_boot_addr() 97 status = mm81x_reg32_write(mors, MM81X_REG_BOOT_ADDR(mors), addr); in mm81x_fw_set_boot_addr() 98 mm81x_release_bus(mors); in mm81x_fw_set_boot_addr() 102 static int mm81x_fw_load_fw(struct mm81x *mors, const struct firmware *fw) in mm81x_fw_load_fw() argument 112 u8 *fw_buf = devm_kmalloc(mors in mm81x_fw_load_fw() 186 __mm81x_fw_load_bcf(struct mm81x * mors,unsigned int addr,const void * src,size_t src_len,u8 * scratch,size_t scratch_cap) __mm81x_fw_load_bcf() argument 209 mm81x_fw_load_bcf(struct mm81x * mors,const struct firmware * bcf,unsigned int bcf_address) mm81x_fw_load_bcf() argument 299 mm81x_fw_clear_aon(struct mm81x * mors) mm81x_fw_clear_aon() argument 318 mm81x_fw_trigger(struct mm81x * mors) mm81x_fw_trigger() argument 341 mm81x_fw_verify_magic(struct mm81x * mors) mm81x_fw_verify_magic() argument 362 mm81x_fw_get_flags(struct mm81x * mors) mm81x_fw_get_flags() argument 378 mm81x_fw_check_compatibility(struct mm81x * mors) mm81x_fw_check_compatibility() argument 420 mm81x_fw_invalidate_host_ptr(struct mm81x * mors) mm81x_fw_invalidate_host_ptr() argument 431 mm81x_fw_get_host_table_ptr(struct mm81x * mors) mm81x_fw_get_host_table_ptr() argument 447 mm81x_fw_read_ext_host_table(struct mm81x * mors,struct ext_host_tbl ** ext_host_table) mm81x_fw_read_ext_host_table() argument 505 mm81x_fw_update_capabilities(struct mm81x * mors,struct ext_host_tbl_s1g_caps * caps) mm81x_fw_update_capabilities() argument 537 mm81x_fw_update_validate_skb_checksum(struct mm81x * mors,struct ext_host_tbl_insert_skb_checksum * validate_checksum) mm81x_fw_update_validate_skb_checksum() argument 546 mm81x_fw_parse_ext_host_tbl(struct mm81x * mors) mm81x_fw_parse_ext_host_tbl() argument 599 __mm81x_fw_flash(struct mm81x * mors,const struct firmware * fw,const struct firmware * bcf,bool reset) __mm81x_fw_flash() argument 638 mm81x_fw_flash(struct mm81x * mors,const struct firmware * fw,const struct firmware * bcf,bool reset) mm81x_fw_flash() argument 661 mm81x_fw_request(struct mm81x * mors,const struct firmware ** fw) mm81x_fw_request() argument 691 mm81x_fw_init(struct mm81x * mors,bool reset) mm81x_fw_init() argument [all...] |
| H A D | bus.h | 18 int (*dm_read)(struct mm81x *mors, u32 addr, u8 *data, int len); 19 int (*dm_write)(struct mm81x *mors, u32 addr, const u8 *data, int len); 20 int (*reg32_read)(struct mm81x *mors, u32 addr, u32 *data); 21 int (*reg32_write)(struct mm81x *mors, u32 addr, u32 data); 22 int (*digital_reset)(struct mm81x *mors); 23 void (*set_bus_enable)(struct mm81x *mors, bool enable); 24 void (*config_burst_mode)(struct mm81x *mors, bool enable_burst); 25 void (*claim)(struct mm81x *mors); 26 void (*set_irq)(struct mm81x *mors, bool enable); 27 void (*release)(struct mm81x *mors); [all …]
|
| H A D | core.c | 11 static int mm81x_core_attach_regs(struct mm81x *mors) in mm81x_core_attach_regs() argument 15 mm81x_claim_bus(mors); in mm81x_core_attach_regs() 16 ret = mm81x_reg32_read(mors, MM8108_REG_CHIP_ID, &mors->chip_id); in mm81x_core_attach_regs() 17 mm81x_release_bus(mors); in mm81x_core_attach_regs() 20 dev_err(mors->dev, "failed to read chip id %d", ret); in mm81x_core_attach_regs() 24 switch (mors->chip_id) { in mm81x_core_attach_regs() 26 mors->regs = &mm8108_regs; in mm81x_core_attach_regs() 27 mors->hif.ops = &mm81x_yaps_ops; in mm81x_core_attach_regs() 36 static void mm81x_core_init_mac_addr(struct mm81x *mors) in mm81x_core_init_mac_addr() argument 38 int ret = mm81x_hw_otp_get_mac_addr(mors); in mm81x_core_init_mac_addr() [all …]
|
| H A D | mac.c | 220 static bool mm81x_tx_h_pkt_over_rts_threshold(struct mm81x *mors, in mm81x_tx_h_pkt_over_rts_threshold() 227 return ((skb->len + FCS_LEN) > mors->rts_threshold); in mm81x_tx_h_pkt_over_rts_threshold() 237 return ((skb->len + FCS_LEN + ccmp_len) > mors->rts_threshold); 240 static bool mm81x_tx_h_ps_filtered_for_sta(struct mm81x *mors, in mm81x_tx_h_ps_filtered_for_sta() 255 dev_dbg(mors->dev, "Frame for sta[%pM] PS filtered", mors_sta->addr); in mm81x_tx_h_ps_filtered_for_sta() 260 ieee80211_tx_status_skb(mors->hw, skb); in mm81x_tx_h_ps_filtered_for_sta() 268 struct mm81x *mors = hw->priv; in mm81x_mac_check_fw_disabled_chans() 282 ret = mm81x_cmd_get_disabled_channels(mors, resp, resp_len); in mm81x_mac_check_fw_disabled_chans() 315 dev_dbg(mors->dev, "set NO_PRIMARY on %u KHz", in mm81x_mac_check_fw_disabled_chans() 321 dev_err(mors in mm81x_mac_ops_start() 218 mm81x_tx_h_pkt_over_rts_threshold(struct mm81x * mors,struct ieee80211_tx_info * info,struct sk_buff * skb) mm81x_tx_h_pkt_over_rts_threshold() argument 238 mm81x_tx_h_ps_filtered_for_sta(struct mm81x * mors,struct sk_buff * skb,struct ieee80211_sta * sta) mm81x_tx_h_ps_filtered_for_sta() argument 266 struct mm81x *mors = hw->priv; mm81x_mac_check_fw_disabled_chans() local 319 struct mm81x *mors = hw->priv; mm81x_mac_ops_start() local 325 mm81x_tx_h_get_max_bw(struct mm81x * mors) mm81x_tx_h_get_max_bw() argument 333 mm81x_mac_caps_init(struct mm81x * mors) mm81x_mac_caps_init() argument 414 struct mm81x *mors = mm81x_vif_to_mors(mors_vif); mm81x_mac_beacon_irq_enable() local 423 mm81x_beacon_h_fill_tx_info(struct mm81x * mors,struct mm81x_skb_tx_info * tx_info,struct mm81x_vif * mors_vif,int tx_bw_mhz) mm81x_beacon_h_fill_tx_info() argument 452 struct mm81x *mors = mm81x_vif_to_mors(mors_vif); mm81x_mac_beacon_work() local 481 mm81x_mac_beacon_irq_handle(struct mm81x * mors,u32 status) mm81x_mac_beacon_irq_handle() argument 502 struct mm81x *mors = mm81x_vif_to_mors(mors_vif); mm81x_mac_beacon_init() local 626 mm81x_hw_scan_h_init_ssid(struct mm81x * mors,struct cfg80211_ssid * ssids,int n_ssids,u8 ** out_ssid,u8 * out_ssid_len) mm81x_hw_scan_h_init_ssid() argument 648 struct mm81x *mors = params->hw->priv; mm81x_hw_scan_h_init_probe_req() local 810 mm81x_hw_scan_h_get_dwell_on_home(struct mm81x * mors,struct ieee80211_vif * vif) mm81x_hw_scan_h_get_dwell_on_home() argument 819 __mm81x_hw_scan_h_init_params(struct mm81x * mors) __mm81x_hw_scan_h_init_params() argument 835 mm81x_hw_scan_h_init_params(struct mm81x * mors,struct ieee80211_hw * hw,struct ieee80211_vif * vif,struct cfg80211_scan_request * req) mm81x_hw_scan_h_init_params() argument 884 struct mm81x *mors = hw->priv; mm81x_mac_ops_hw_scan() local 941 mm81x_hw_scan_abort(struct mm81x * mors) mm81x_hw_scan_abort() argument 978 struct mm81x *mors = hw->priv; mm81x_mac_ops_cancel_hw_scan() local 986 struct mm81x *mors = hw->priv; mm81x_mac_hw_scan_done_event() local 1009 struct mm81x *mors = mm81x_mac_hw_scan_timeout_work() local 1016 mm81x_mac_hw_scan_init(struct mm81x * mors) mm81x_mac_hw_scan_init() argument 1027 mm81x_mac_hw_scan_destroy(struct mm81x * mors) mm81x_mac_hw_scan_destroy() argument 1036 mm81x_mac_hw_scan_finish(struct mm81x * mors) mm81x_mac_hw_scan_finish() argument 1051 mm81x_mac_event_recv(struct mm81x * mors,struct sk_buff * skb) mm81x_mac_event_recv() argument 1084 mm81x_tx_h_apply_mcs10(struct mm81x * mors,struct mm81x_skb_tx_info * tx_info) mm81x_tx_h_apply_mcs10() argument 1191 mm81x_tx_h_get_attempts(struct mm81x * mors,struct mm81x_skb_tx_status * tx_sts) mm81x_tx_h_get_attempts() argument 1208 mm81x_tx_h_fill_info(struct mm81x * mors,struct mm81x_skb_tx_info * tx_info,struct sk_buff * skb,struct ieee80211_vif * vif,int tx_bw_mhz,struct ieee80211_sta * sta) mm81x_tx_h_fill_info() argument 1288 struct mm81x *mors = hw->priv; mm81x_mac_ops_tx() local 1333 struct mm81x *mors = hw->priv; mm81x_mac_ops_stop() local 1340 struct mm81x *mors = mm81x_vif_to_mors(mors_vif); mm81x_mac_beacon_finish() local 1355 struct mm81x *mors = hw->priv; mm81x_mac_ops_remove_interface() local 1365 mm81x_mac_get_max_txpower(struct mm81x * mors) mm81x_mac_get_max_txpower() argument 1382 mm81x_mac_set_txpower(struct mm81x * mors,s32 power_mbm) mm81x_mac_set_txpower() argument 1410 mm81x_mac_set_channel(struct mm81x * mors,u32 op_chan_freq_hz,u8 pri_1mhz_chan_idx,u8 op_bw_mhz,u8 pri_bw_mhz) mm81x_mac_set_channel() argument 1442 struct mm81x *mors = hw->priv; mm81x_mac_ops_change_channel() local 1464 struct mm81x *mors = hw->priv; mm81x_mac_ops_config() local 1494 struct mm81x *mors = hw->priv; mm81x_mac_ops_get_txpower() local 1509 mm81x_mac_config_ps(struct mm81x * mors,struct ieee80211_vif * vif) mm81x_mac_config_ps() argument 1539 struct mm81x *mors = hw->priv; mm81x_mac_ops_bss_info_changed() local 1565 struct mm81x *mors = hw->priv; mm81x_mac_ops_prepare_multicast() local 1598 struct mm81x *mors = hw->priv; mm81x_mac_ops_configure_filter() local 1638 struct mm81x *mors = hw->priv; mm81x_mac_ops_conf_tx() local 1665 struct mm81x *mors = hw->priv; mm81x_mac_ops_sta_state() local 1716 struct mm81x *mors = hw->priv; mm81x_mac_ops_ampdu_action() local 1768 struct mm81x *mors = hw->priv; mm81x_mac_ops_set_key() local 1841 struct mm81x *mors = hw->priv; mm81x_mac_set_frag_threshold() local 1864 mm81x_rx_h_fill_status(struct mm81x * mors,struct mm81x_skb_rx_status * hdr_rx_status,struct ieee80211_rx_status * rx_status,struct sk_buff * skb) mm81x_rx_h_fill_status() argument 1915 mm81x_rx_h_skb_get_vif(struct mm81x * mors,struct sk_buff * skb,struct mm81x_skb_rx_status * hdr_rx_status) mm81x_rx_h_skb_get_vif() argument 1929 mm81x_mac_rx_skb(struct mm81x * mors,struct sk_buff * skb,struct mm81x_skb_rx_status * hdr_rx_status) mm81x_mac_rx_skb() argument 1959 mm81x_mac_flush_queues(struct mm81x * mors) mm81x_mac_flush_queues() argument 1978 mm81x_mac_has_tx_pending(struct mm81x * mors) mm81x_mac_has_tx_pending() argument 1996 mm81x_mac_wait_queues(struct mm81x * mors) mm81x_mac_wait_queues() argument 2008 struct mm81x *mors = hw->priv; mm81x_mac_ops_flush() local 2020 struct mm81x *mors = hw->priv; mm81x_mac_ops_set_rts_threshold() local 2032 struct mm81x *mors = hw->priv; mm81x_mac_ops_sta_statistics() local 2074 struct mm81x *mors = hw->priv; mm81x_get_expected_throughput() local 2097 mm81x_mac_restart_cleanup(struct mm81x * mors) mm81x_mac_restart_cleanup() argument 2106 mm81x_mac_restart(struct mm81x * mors) mm81x_mac_restart() argument 2173 struct mm81x *mors = hw->priv; mm81x_mac_ops_add_interface() local 2264 struct mm81x *mors = wiphy_to_ieee80211_hw(wiphy)->priv; mm81x_reg_notifier() local 2277 mm81x_mac_config_hw(struct mm81x * mors) mm81x_mac_config_hw() argument 2341 struct mm81x *mors = timer_container_of(mors, t, stale_status.timer); mm81x_stale_tx_status_timer() local 2349 mm81x_stale_tx_status_timer_finish(struct mm81x * mors) mm81x_stale_tx_status_timer_finish() argument 2354 mm81x_mac_stale_tx_status_timer_init(struct mm81x * mors) mm81x_mac_stale_tx_status_timer_init() argument 2360 mm81x_mac_register(struct mm81x * mors) mm81x_mac_register() argument 2398 mm81x_mac_unregister(struct mm81x * mors) mm81x_mac_unregister() argument 2418 struct mm81x *mors; mm81x_mac_alloc() local 2439 mm81x_mac_free(struct mm81x * mors) mm81x_mac_free() argument [all...] |
| H A D | yaps.c | 70 static struct mm81x_skbq *mm81x_yaps_tc_q_from_aci(struct mm81x *mors, int aci) in mm81x_yaps_tc_q_from_aci() argument 72 struct mm81x_yaps *yaps = &mors->hif.u.yaps; in mm81x_yaps_tc_q_from_aci() 79 static void mm81x_yaps_get_tx_qs(struct mm81x *mors, struct mm81x_skbq **qs, in mm81x_yaps_get_tx_qs() argument 82 *qs = mors->hif.u.yaps.data_tx_qs; in mm81x_yaps_get_tx_qs() 86 static struct mm81x_skbq *mm81x_yaps_get_bcn_tc_q(struct mm81x *mors) in mm81x_yaps_get_bcn_tc_q() argument 88 return &mors->hif.u.yaps.beacon_q; in mm81x_yaps_get_bcn_tc_q() 91 static struct mm81x_skbq *mm81x_yaps_get_mgmt_tc_q(struct mm81x *mors) in mm81x_yaps_get_mgmt_tc_q() argument 93 return &mors->hif.u.yaps.mgmt_q; in mm81x_yaps_get_mgmt_tc_q() 96 static struct mm81x_skbq *mm81x_yaps_get_tx_cmd_queue(struct mm81x *mors) in mm81x_yaps_get_tx_cmd_queue() argument 98 return &mors->hif.u.yaps.cmd_q; in mm81x_yaps_get_tx_cmd_queue() [all …]
|
| H A D | usb.c | 96 struct mm81x *mors = container_of(work, struct mm81x, usb_irq_work); in mm81x_usb_irq_work() local 98 mm81x_claim_bus(mors); in mm81x_usb_irq_work() 99 mm81x_hw_irq_handle(mors); in mm81x_usb_irq_work() 100 mm81x_release_bus(mors); in mm81x_usb_irq_work() 112 struct mm81x *mors = urb->context; in mm81x_usb_int_handler() local 113 struct mm81x_usb *musb = (struct mm81x_usb *)mors->drv_priv; in mm81x_usb_int_handler() 122 &mors->state_flags); in mm81x_usb_int_handler() 123 dev_dbg(mors->dev, in mm81x_usb_int_handler() 131 dev_err(mors->dev, "- nonzero read status received: %d", in mm81x_usb_int_handler() 141 dev_err(mors->dev, "error: resubmit urb %p err code %d", urb, in mm81x_usb_int_handler() [all …]
|
| H A D | skbq.c | 123 __mm81x_skbq_tx_status_to_skbq(struct mm81x *mors, in __mm81x_skbq_tx_status_to_skbq() argument 133 mq = mm81x_hif_get_tx_data_queue(mors, aci); in __mm81x_skbq_tx_status_to_skbq() 136 mq = mm81x_hif_get_tx_mgmt_queue(mors); in __mm81x_skbq_tx_status_to_skbq() 139 mq = mm81x_hif_get_tx_beacon_queue(mors); in __mm81x_skbq_tx_status_to_skbq() 142 dev_err(mors->dev, in __mm81x_skbq_tx_status_to_skbq() 193 static void mm81x_skbq_sta_eosp(struct mm81x *mors, struct sk_buff *skb) in mm81x_skbq_sta_eosp() argument 220 mm81x_skbq_sta_eosp(mq->mors, skb); in __mm81x_skbq_drop_pending_skb() 221 ieee80211_free_txskb(mq->mors->hw, skb); in __mm81x_skbq_drop_pending_skb() 250 static struct sk_buff *__mm81x_skbq_get_pending_by_id(struct mm81x *mors, 275 static void mm81x_skbq_check_tx_empty(struct mm81x *mors, struc in __mm81x_skbq_get_pending_by_id() 251 __mm81x_skbq_get_pending_by_id(struct mm81x * mors,struct mm81x_skbq * mq,u32 pkt_id) __mm81x_skbq_get_pending_by_id() argument 276 mm81x_skbq_check_tx_empty(struct mm81x * mors,struct mm81x_skbq * mq) mm81x_skbq_check_tx_empty() argument 287 __mm81x_skbq_tx_status_process(struct mm81x * mors,struct mm81x_skbq * mq,struct mm81x_skb_tx_status * tx_sts) __mm81x_skbq_tx_status_process() argument 321 mm81x_skbq_tx_status_process(struct mm81x * mors,struct sk_buff * skb) mm81x_skbq_tx_status_process() argument 352 struct mm81x *mors = mq->mors; mm81x_skbq_dispatch_work() local 433 mm81x_skbq_purge_aged(struct mm81x * mors,struct mm81x_skbq * mq) mm81x_skbq_purge_aged() argument 521 mm81x_skbq_stop_tx_queues(struct mm81x * mors) mm81x_skbq_stop_tx_queues() argument 534 mm81x_skbq_may_wake_tx_queues(struct mm81x * mors) mm81x_skbq_may_wake_tx_queues() argument 570 struct mm81x *mors = mq->mors; mm81x_skbq_tx() local 637 struct mm81x *mors = mq->mors; mm81x_skbq_tx_complete() local 708 mm81x_skbq_check_for_stale_tx(struct mm81x * mors,struct mm81x_skbq * mq) mm81x_skbq_check_for_stale_tx() argument 742 struct mm81x *mors = mq->mors; __skbq_cmd_finish() local 759 struct mm81x *mors; global() member 803 struct mm81x *mors = mq->mors; __skbq_data_tx_finish() local 846 mm81x_skbq_init(struct mm81x * mors,struct mm81x_skbq * mq,u16 flags) mm81x_skbq_init() argument 905 struct mm81x *mors = mq->mors; mm81x_skbq_count_tx_ready() local 940 mm81x_skb_tx_h_validate_channel(const struct mm81x * mors,u8 channel) mm81x_skb_tx_h_validate_channel() argument 960 struct mm81x *mors = mq->mors; mm81x_skbq_skb_tx() local 1008 mm81x_skbq_data_traffic_pause(struct mm81x * mors) mm81x_skbq_data_traffic_pause() argument 1014 mm81x_skbq_data_traffic_resume(struct mm81x * mors) mm81x_skbq_data_traffic_resume() argument [all...] |
| H A D | command.c | 33 static int mm81x_cmd_tx(struct mm81x *mors, struct host_cmd_resp *resp, in mm81x_cmd_tx() argument 42 struct mm81x_skbq *cmd_q = mm81x_hif_get_tx_cmd_queue(mors); in mm81x_cmd_tx() 52 mutex_lock(&mors->cmd_wait); in mm81x_cmd_tx() 53 mors->cmd_seq++; in mm81x_cmd_tx() 54 if (mors->cmd_seq > HOST_CMD_HOST_ID_SEQ_MAX) in mm81x_cmd_tx() 55 mors->cmd_seq = 1; in mm81x_cmd_tx() 56 host_id = mors->cmd_seq << HOST_CMD_HOST_ID_SEQ_SHIFT; in mm81x_cmd_tx() 58 mm81x_ps_disable(mors); in mm81x_cmd_tx() 75 dev_dbg(mors->dev, "CMD 0x%04x:%04x", in mm81x_cmd_tx() 79 mutex_lock(&mors in mm81x_cmd_tx() 146 mm81x_cmd_resp_process(struct mm81x * mors,struct sk_buff * skb) mm81x_cmd_resp_process() argument 232 mm81x_cmd_sta_state(struct mm81x * mors,struct mm81x_vif * mors_vif,u16 aid,struct ieee80211_sta * sta,enum ieee80211_sta_state state) mm81x_cmd_sta_state() argument 249 mm81x_cmd_add_if(struct mm81x * mors,u16 * vif_id,const u8 * addr,enum nl80211_iftype type) mm81x_cmd_add_if() argument 279 mm81x_cmd_get_capabilities(struct mm81x * mors,u16 vif_id,struct mm81x_fw_caps * capabilities) mm81x_cmd_get_capabilities() argument 308 mm81x_cmd_get_max_txpower(struct mm81x * mors,s32 * out_power_mbm) mm81x_cmd_get_max_txpower() argument 324 mm81x_cmd_hw_scan(struct mm81x * mors,struct mm81x_hw_scan_params * params,bool store) mm81x_cmd_hw_scan() argument 365 mm81x_cmd_set_txpower(struct mm81x * mors,s32 * out_power_mbm,int txpower_mbm) mm81x_cmd_set_txpower() argument 383 mm81x_cmd_set_channel(struct mm81x * mors,u32 op_chan_freq_hz,u8 pri_1mhz_chan_idx,u8 op_bw_mhz,u8 pri_bw_mhz,s32 * power_mbm) mm81x_cmd_set_channel() argument 406 mm81x_cmd_disable_key(struct mm81x * mors,struct mm81x_vif * mors_vif,u16 aid,struct ieee80211_key_conf * key) mm81x_cmd_disable_key() argument 422 mm81x_cmd_install_key(struct mm81x * mors,struct mm81x_vif * mors_vif,u16 aid,struct ieee80211_key_conf * key,enum host_cmd_key_cipher cipher,enum host_cmd_aes_key_len length) mm81x_cmd_install_key() argument 457 mm81x_cmd_cfg_multicast_filter(struct mm81x * mors,struct mm81x_vif * mors_vif) mm81x_cmd_cfg_multicast_filter() argument 480 mm81x_cmd_cfg_bss(struct mm81x * mors,u16 vif_id,u16 beacon_int,u16 dtim_period,u32 cssid) mm81x_cmd_cfg_bss() argument 493 mm81x_cmd_config_beacon_timer(struct mm81x * mors,void * mm81x_vif,bool enabled) mm81x_cmd_config_beacon_timer() argument 506 mm81x_cmd_set_ps(struct mm81x * mors,bool enabled) mm81x_cmd_set_ps() argument 517 mm81x_cmd_cfg_qos(struct mm81x * mors,struct mm81x_queue_params * params) mm81x_cmd_cfg_qos() argument 532 mm81x_cmd_rm_if(struct mm81x * mors,u16 vif_id) mm81x_cmd_rm_if() argument 541 mm81x_cmd_set_frag_threshold(struct mm81x * mors,u32 frag_threshold) mm81x_cmd_set_frag_threshold() argument 554 mm81x_cmd_get_disabled_channels(struct mm81x * mors,struct host_cmd_resp_get_disabled_channels * resp,uint resp_len) mm81x_cmd_get_disabled_channels() argument [all...] |
| H A D | sdio.c | 47 struct mm81x *mors = sdio_get_drvdata(func); in irq_handler() local 49 mm81x_hw_irq_handle(mors); in irq_handler() 57 struct mm81x *mors = sdio_get_drvdata(func); in mm81x_sdio_enable_irq() local 62 dev_err(mors->dev, "Failed to enable sdio irq: %d\n", ret); in mm81x_sdio_enable_irq() 78 static void mm81x_sdio_set_irq(struct mm81x *mors, bool enable) in mm81x_sdio_set_irq() argument 80 struct mm81x_sdio *sdio = (struct mm81x_sdio *)mors->drv_priv; in mm81x_sdio_set_irq() 107 struct mm81x *mors = sdio_get_drvdata(sdio->func); in mm81x_sdio_set_func_address_base() local 134 dev_dbg(mors->dev, "%s succeeded after %d retries\n", __func__, in mm81x_sdio_set_func_address_base() 141 dev_dbg(mors->dev, "%s failed (%d), retrying (%d/%d)\n", in mm81x_sdio_set_func_address_base() 155 struct mm81x *mors in mm81x_sdio_mem_write_block() local 196 mm81x_sdio_claim_host(struct mm81x * mors) mm81x_sdio_claim_host() argument 204 mm81x_sdio_release_host(struct mm81x * mors) mm81x_sdio_release_host() argument 217 struct mm81x *mors = sdio_get_drvdata(sdio->func); mm81x_sdio_mem_read_block() local 269 mm81x_sdio_dm_write(struct mm81x * mors,u32 address,const u8 * data,int len) mm81x_sdio_dm_write() argument 326 mm81x_sdio_dm_read(struct mm81x * mors,u32 address,u8 * data,int len) mm81x_sdio_dm_read() argument 382 mm81x_sdio_reg32_write(struct mm81x * mors,u32 address,u32 val) mm81x_sdio_reg32_write() argument 411 mm81x_sdio_reg32_read(struct mm81x * mors,u32 address,u32 * val) mm81x_sdio_reg32_read() argument 431 mm81x_sdio_bus_enable(struct mm81x * mors,bool enable) mm81x_sdio_bus_enable() argument 473 mm81x_sdio_config_burst_mode(struct mm81x * mors,bool enable_burst) mm81x_sdio_config_burst_mode() argument 498 struct mm81x *mors = sdio_get_drvdata(func); mm81x_sdio_enable() local 521 struct mm81x *mors = NULL; mm81x_sdio_probe() local 579 struct mm81x *mors = sdio_get_drvdata(func); mm81x_sdio_remove() local [all...] |
| H A D | command.h | 49 int mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb); 50 int mm81x_cmd_add_if(struct mm81x *mors, u16 *vif_id, const u8 *addr, 52 int mm81x_cmd_get_capabilities(struct mm81x *mors, u16 vif_id, 54 int mm81x_cmd_cfg_qos(struct mm81x *mors, struct mm81x_queue_params *params); 55 int mm81x_cmd_config_beacon_timer(struct mm81x *mors, void *mm81x_vif, 57 int mm81x_cmd_cfg_bss(struct mm81x *mors, u16 vif_id, u16 beacon_int, 59 int mm81x_cmd_set_channel(struct mm81x *mors, u32 op_chan_freq_hz, 62 int mm81x_cmd_get_max_txpower(struct mm81x *mors, s32 *out_power_mbm); 63 int mm81x_cmd_set_txpower(struct mm81x *mors, s32 *out_power_mbm, 65 int mm81x_cmd_hw_scan(struct mm81x *mors, struct mm81x_hw_scan_params *params, [all …]
|
| H A D | rc.c | 44 struct mm81x *mors = mrc->mors; in mm81x_rc_timer() local 46 queue_work(mors->net_wq, &mors->mrc.work); in mm81x_rc_timer() 49 void mm81x_rc_init(struct mm81x *mors) in mm81x_rc_init() argument 51 INIT_LIST_HEAD(&mors->mrc.stas); in mm81x_rc_init() 52 spin_lock_init(&mors->mrc.lock); in mm81x_rc_init() 54 INIT_WORK(&mors->mrc.work, mm81x_rc_work); in mm81x_rc_init() 55 timer_setup(&mors->mrc.timer, mm81x_rc_timer, 0); in mm81x_rc_init() 57 mors->mrc.mors = mors; in mm81x_rc_init() 58 mod_timer(&mors->mrc.timer, jiffies + msecs_to_jiffies(100)); in mm81x_rc_init() 61 void mm81x_rc_deinit(struct mm81x *mors) in mm81x_rc_deinit() argument [all …]
|
| H A D | ps.c | 16 struct mm81x *mors = container_of(mps, struct mm81x, ps); in mm81x_ps_wakeup() local 21 mm81x_set_bus_enable(mors, true); in mm81x_ps_wakeup() 27 struct mm81x *mors = container_of(mps, struct mm81x, ps); in mm81x_ps_sleep() local 33 mm81x_set_bus_enable(mors, false); in mm81x_ps_sleep() 38 struct mm81x *mors = container_of(mps, struct mm81x, ps); in mm81x_ps_evaluate() local 41 (mors->hif.event_flags & in mm81x_ps_evaluate() 49 needs_wake |= (mm81x_hif_get_tx_buffered_count(mors) > 0); in mm81x_ps_evaluate() 71 void mm81x_ps_enable(struct mm81x *mors) in mm81x_ps_enable() argument 73 struct mm81x_ps *mps = &mors->ps; in mm81x_ps_enable() 87 void mm81x_ps_disable(struct mm81x *mors) in mm81x_ps_disable() argument [all …]
|
| H A D | mac.h | 37 mm81x_rcu_dereference_vif_id(struct mm81x *mors, u8 vif_id, bool rcu) in mm81x_rcu_dereference_vif_id() argument 39 if (WARN_ON(vif_id >= ARRAY_SIZE(mors->vifs))) in mm81x_rcu_dereference_vif_id() 43 return rcu_dereference(mors->vifs[vif_id]); in mm81x_rcu_dereference_vif_id() 45 return rcu_dereference_protected(mors->vifs[vif_id], in mm81x_rcu_dereference_vif_id() 46 lockdep_is_held(&mors->hw->wiphy->mtx)); in mm81x_rcu_dereference_vif_id() 49 int mm81x_tx_h_get_attempts(struct mm81x *mors, 52 int mm81x_mac_register(struct mm81x *mors); 53 void mm81x_mac_free(struct mm81x *mors); 54 void mm81x_mac_unregister(struct mm81x *mors); 55 int mm81x_mac_event_recv(struct mm81x *mors, struct sk_buff *skb); [all …]
|
| H A D | rc.h | 24 struct mm81x *mors; member 33 void mm81x_rc_init(struct mm81x *mors); 34 void mm81x_rc_deinit(struct mm81x *mors); 35 int mm81x_rc_sta_add(struct mm81x *mors, struct ieee80211_vif *vif, 37 void mm81x_rc_sta_remove(struct mm81x *mors, struct ieee80211_sta *sta); 38 void mm81x_rc_sta_fill_tx_rates(struct mm81x *mors, 42 void mm81x_rc_sta_feedback_rates(struct mm81x *mors, struct sk_buff *skb, 46 void mm81x_rc_sta_state_check(struct mm81x *mors, struct ieee80211_vif *vif,
|
| H A D | yaps_hw.c | 204 void mm81x_yaps_hw_enable_irqs(struct mm81x *mors, bool enable) in mm81x_yaps_hw_enable_irqs() argument 206 mm81x_hw_irq_enable(mors, MM81X_INT_YAPS_FC_PKT_WAITING_IRQN, enable); in mm81x_yaps_hw_enable_irqs() 207 mm81x_hw_irq_enable(mors, MM81X_INT_YAPS_FC_PACKET_FREED_UP_IRQN, in mm81x_yaps_hw_enable_irqs() 211 void mm81x_yaps_hw_read_table(struct mm81x *mors, in mm81x_yaps_hw_read_table() argument 214 mm81x_yaps_hw_fill_aux_data_from_hw_tbl(mors->hif.u.yaps.aux_data, in mm81x_yaps_hw_read_table() 216 mm81x_yaps_hw_enable_irqs(mors, true); in mm81x_yaps_hw_read_table() 274 dev_err(yaps->mors->dev, "yaps invalid tc queue"); in mm81x_write_pkts_h_will_fit() 321 mm81x_bus_get_alignment(yaps->mors)); in mm81x_yaps_hw_write_pkts() 326 dev_dbg(yaps->mors->dev, "yaps lock failed %d", ret); in mm81x_yaps_hw_write_pkts() 348 ret = mm81x_dm_write(yaps->mors, in mm81x_yaps_hw_write_pkts() 647 mm81x_yaps_hw_init(struct mm81x * mors) mm81x_yaps_hw_init() argument 689 mm81x_yaps_hw_finish(struct mm81x * mors) mm81x_yaps_hw_finish() argument [all...] |
| H A D | yaps.h | 33 struct mm81x *mors; member 67 int mm81x_yaps_init(struct mm81x *mors); 69 void mm81x_yaps_finish(struct mm81x *mors); 70 void mm81x_yaps_flush_tx_data(struct mm81x *mors); 71 void mm81x_yaps_flush_cmds(struct mm81x *mors); 74 int mm81x_yaps_get_tx_status_pending_count(struct mm81x *mors); 75 int mm81x_yaps_get_tx_buffered_count(struct mm81x *mors);
|
| H A D | ps.h | 17 void mm81x_ps_disable(struct mm81x *mors); 18 void mm81x_ps_enable(struct mm81x *mors); 19 int mm81x_ps_init(struct mm81x *mors); 20 void mm81x_ps_finish(struct mm81x *mors);
|
| H A D | core.h | 208 struct mm81x *mors; 433 static inline bool mm81x_is_data_tx_allowed(struct mm81x *mors) in ieee80211_vif_to_mors_vif() 435 return !test_bit(MM81X_STATE_DATA_TX_STOPPED, &mors->state_flags) && in mm81x_vif_to_mors() 437 &mors->hif.event_flags); in mm81x_vif_to_mors() 454 return mors_vif->mors; 464 void mm81x_beacon_irq_handle(struct mm81x *mors, u32 status); 467 int mm81x_core_init(struct mm81x *mors); 468 int mm81x_core_register(struct mm81x *mors); 469 void mm81x_core_unregister(struct mm81x *mors); 470 void mm81x_core_deinit(struct mm81x *mors); 203 struct mm81x *mors; global() member 416 mm81x_is_data_tx_allowed(struct mm81x * mors) mm81x_is_data_tx_allowed() argument [all...] |
| H A D | skbq.h | 177 struct mm81x *mors; member 188 void mm81x_skbq_purge_aged(struct mm81x *mors, struct mm81x_skbq *mq); 202 void mm81x_skbq_init(struct mm81x *mors, struct mm81x_skbq *mq, u16 flags); 205 void mm81x_skbq_mon_dump(struct mm81x *mors, struct seq_file *file); 209 int mm81x_skbq_check_for_stale_tx(struct mm81x *mors, struct mm81x_skbq *mq); 210 void mm81x_skbq_may_wake_tx_queues(struct mm81x *mors); 214 void mm81x_skbq_data_traffic_pause(struct mm81x *mors); 215 void mm81x_skbq_data_traffic_resume(struct mm81x *mors);
|
| H A D | yaps_hw.h | 46 void mm81x_yaps_hw_enable_irqs(struct mm81x *mors, bool enable); 47 int mm81x_yaps_hw_init(struct mm81x *mors); 48 void mm81x_yaps_hw_finish(struct mm81x *mors); 49 void mm81x_yaps_hw_read_table(struct mm81x *mors,
|
| H A D | fw.h | 140 int mm81x_fw_init(struct mm81x *mors, bool reset); 141 int mm81x_fw_parse_ext_host_tbl(struct mm81x *mors);
|