Lines Matching refs:wil6210_priv
33 struct wil6210_priv;
592 void (*configure_interrupt_moderation)(struct wil6210_priv *wil);
596 void (*ring_fini_tx)(struct wil6210_priv *wil, struct wil_ring *ring);
598 int (*tx_init)(struct wil6210_priv *wil);
599 void (*tx_fini)(struct wil6210_priv *wil);
605 int (*tx_ring_tso)(struct wil6210_priv *wil, struct wil6210_vif *vif,
611 int (*rx_init)(struct wil6210_priv *wil, uint ring_order);
612 void (*rx_fini)(struct wil6210_priv *wil);
613 int (*wmi_addba_rx_resp)(struct wil6210_priv *wil, u8 mid, u8 cid,
616 void (*get_reorder_params)(struct wil6210_priv *wil,
621 int (*rx_crypto_check)(struct wil6210_priv *wil, struct sk_buff *skb);
622 int (*rx_error_check)(struct wil6210_priv *wil, struct sk_buff *skb,
624 bool (*is_rx_idle)(struct wil6210_priv *wil);
796 struct wil6210_priv *wil;
822 struct wil6210_priv *wil;
844 struct wil6210_priv *wil;
919 struct wil6210_priv { struct
1068 #define wiphy_to_wil(w) (struct wil6210_priv *)(wiphy_priv(w)) argument
1069 #define wdev_to_wil(w) (struct wil6210_priv *)(wdev_priv(w))
1077 static inline struct wil6210_vif *wdev_to_vif(struct wil6210_priv *wil, in wdev_to_vif()
1088 vif_to_radio_wdev(struct wil6210_priv *wil, struct wil6210_vif *vif) in vif_to_radio_wdev()
1098 void wil_dbg_trace(struct wil6210_priv *wil, const char *fmt, ...);
1100 void __wil_err(struct wil6210_priv *wil, const char *fmt, ...);
1102 void __wil_err_ratelimited(struct wil6210_priv *wil, const char *fmt, ...);
1104 void __wil_info(struct wil6210_priv *wil, const char *fmt, ...);
1106 void wil_dbg_ratelimited(const struct wil6210_priv *wil, const char *fmt, ...);
1124 static inline u32 wil_r(struct wil6210_priv *wil, u32 reg) in wil_r()
1130 static inline void wil_w(struct wil6210_priv *wil, u32 reg, u32 val) in wil_w()
1137 static inline void wil_s(struct wil6210_priv *wil, u32 reg, u32 val) in wil_s()
1143 static inline void wil_c(struct wil6210_priv *wil, u32 reg, u32 val) in wil_c()
1151 static inline bool wil_cid_valid(struct wil6210_priv *wil, int cid) in wil_cid_valid()
1156 void wil_get_board_file(struct wil6210_priv *wil, char *buf, size_t len);
1200 int wil_mem_access_lock(struct wil6210_priv *wil);
1201 void wil_mem_access_unlock(struct wil6210_priv *wil);
1204 wil_vif_alloc(struct wil6210_priv *wil, const char *name,
1208 bool wil_has_other_active_ifaces(struct wil6210_priv *wil,
1210 bool wil_has_active_ifaces(struct wil6210_priv *wil, bool up, bool ok);
1211 void wil_if_free(struct wil6210_priv *wil);
1212 int wil_vif_add(struct wil6210_priv *wil, struct wil6210_vif *vif);
1213 int wil_if_add(struct wil6210_priv *wil);
1214 void wil_vif_remove(struct wil6210_priv *wil, u8 mid);
1215 void wil_if_remove(struct wil6210_priv *wil);
1216 int wil_priv_init(struct wil6210_priv *wil);
1217 void wil_priv_deinit(struct wil6210_priv *wil);
1218 int wil_ps_update(struct wil6210_priv *wil,
1220 int wil_reset(struct wil6210_priv *wil, bool no_fw);
1221 void wil_fw_error_recovery(struct wil6210_priv *wil);
1222 void wil_set_recovery_state(struct wil6210_priv *wil, int state);
1223 bool wil_is_recovery_blocked(struct wil6210_priv *wil);
1224 int wil_up(struct wil6210_priv *wil);
1225 int __wil_up(struct wil6210_priv *wil);
1226 int wil_down(struct wil6210_priv *wil);
1227 int __wil_down(struct wil6210_priv *wil);
1228 void wil_refresh_fw_capabilities(struct wil6210_priv *wil);
1230 int wil_find_cid(struct wil6210_priv *wil, u8 mid, const u8 *mac);
1231 int wil_find_cid_by_idx(struct wil6210_priv *wil, u8 mid, int idx);
1235 void __iomem *wmi_buffer_block(struct wil6210_priv *wil, __le32 ptr, u32 size);
1236 void __iomem *wmi_buffer(struct wil6210_priv *wil, __le32 ptr);
1237 void __iomem *wmi_addr(struct wil6210_priv *wil, u32 ptr);
1238 int wmi_read_hdr(struct wil6210_priv *wil, __le32 ptr,
1240 int wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len);
1241 void wmi_recv_cmd(struct wil6210_priv *wil);
1242 int wmi_call(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len,
1245 void wmi_event_flush(struct wil6210_priv *wil);
1248 int wmi_set_channel(struct wil6210_priv *wil, int channel);
1249 int wmi_get_channel(struct wil6210_priv *wil, int *channel);
1255 int wmi_echo(struct wil6210_priv *wil);
1257 int wmi_rx_chain_add(struct wil6210_priv *wil, struct wil_ring *vring);
1259 int wmi_rxon(struct wil6210_priv *wil, bool on);
1260 int wmi_get_temperature(struct wil6210_priv *wil, u32 *t_m, u32 *t_r);
1261 int wmi_get_all_temperatures(struct wil6210_priv *wil,
1266 int wmi_addba(struct wil6210_priv *wil, u8 mid,
1268 int wmi_delba_tx(struct wil6210_priv *wil, u8 mid, u8 ringid, u16 reason);
1269 int wmi_delba_rx(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid, u16 reason);
1270 int wmi_addba_rx_resp(struct wil6210_priv *wil,
1273 int wmi_ps_dev_profile_cfg(struct wil6210_priv *wil,
1275 int wmi_set_mgmt_retry(struct wil6210_priv *wil, u8 retry_short);
1276 int wmi_get_mgmt_retry(struct wil6210_priv *wil, u8 *retry_short);
1278 int wmi_port_allocate(struct wil6210_priv *wil, u8 mid,
1280 int wmi_port_delete(struct wil6210_priv *wil, u8 mid);
1282 int wil_addba_rx_request(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid,
1285 int wil_addba_tx_request(struct wil6210_priv *wil, u8 ringid, u16 wsize);
1287 void wil6210_clear_irq(struct wil6210_priv *wil);
1288 int wil6210_init_irq(struct wil6210_priv *wil, int irq);
1289 void wil6210_fini_irq(struct wil6210_priv *wil, int irq);
1290 void wil_mask_irq(struct wil6210_priv *wil);
1291 void wil_unmask_irq(struct wil6210_priv *wil);
1292 void wil_configure_interrupt_moderation(struct wil6210_priv *wil);
1293 void wil_disable_irq(struct wil6210_priv *wil);
1294 void wil_enable_irq(struct wil6210_priv *wil);
1295 void wil6210_mask_halp(struct wil6210_priv *wil);
1301 int wil_p2p_listen(struct wil6210_priv *wil, struct wireless_dev *wdev,
1308 void wil_p2p_stop_radio_operations(struct wil6210_priv *wil);
1320 void wil_cfg80211_ap_recovery(struct wil6210_priv *wil);
1322 struct wil6210_priv *wil,
1327 int wil6210_debugfs_init(struct wil6210_priv *wil);
1328 void wil6210_debugfs_remove(struct wil6210_priv *wil);
1330 static inline int wil6210_debugfs_init(struct wil6210_priv *wil) { return 0; } in wil6210_debugfs_init()
1331 static inline void wil6210_debugfs_remove(struct wil6210_priv *wil) {} in wil6210_debugfs_remove()
1337 struct wil6210_priv *wil_cfg80211_init(struct device *dev);
1338 void wil_cfg80211_deinit(struct wil6210_priv *wil);
1339 void wil_p2p_wdev_free(struct wil6210_priv *wil);
1341 int wmi_set_mac_address(struct wil6210_priv *wil, void *addr);
1345 int wmi_led_cfg(struct wil6210_priv *wil, bool enable);
1348 void wil_abort_scan_all_vifs(struct wil6210_priv *wil, bool sync);
1349 void wil6210_bus_request(struct wil6210_priv *wil, u32 kbps);
1359 void wil_init_txrx_ops(struct wil6210_priv *wil);
1366 void wil_bcast_fini_all(struct wil6210_priv *wil);
1368 void wil_update_net_queues(struct wil6210_priv *wil, struct wil6210_vif *vif,
1370 void wil_update_net_queues_bh(struct wil6210_priv *wil, struct wil6210_vif *vif,
1376 void wil6210_unmask_irq_tx(struct wil6210_priv *wil);
1377 void wil6210_unmask_irq_tx_edma(struct wil6210_priv *wil);
1380 void wil_rx_handle(struct wil6210_priv *wil, int *quota);
1381 void wil6210_unmask_irq_rx(struct wil6210_priv *wil);
1382 void wil6210_unmask_irq_rx_edma(struct wil6210_priv *wil);
1389 int wil_request_firmware(struct wil6210_priv *wil, const char *name,
1391 int wil_request_board(struct wil6210_priv *wil, const char *name);
1392 bool wil_fw_verify_file_exists(struct wil6210_priv *wil, const char *name);
1394 void wil_pm_runtime_allow(struct wil6210_priv *wil);
1395 void wil_pm_runtime_forbid(struct wil6210_priv *wil);
1396 int wil_pm_runtime_get(struct wil6210_priv *wil);
1397 void wil_pm_runtime_put(struct wil6210_priv *wil);
1399 int wil_can_suspend(struct wil6210_priv *wil, bool is_runtime);
1400 int wil_suspend(struct wil6210_priv *wil, bool is_runtime, bool keep_radio_on);
1401 int wil_resume(struct wil6210_priv *wil, bool is_runtime, bool keep_radio_on);
1402 bool wil_is_wmi_idle(struct wil6210_priv *wil);
1403 int wmi_resume(struct wil6210_priv *wil);
1404 int wmi_suspend(struct wil6210_priv *wil);
1405 bool wil_is_tx_idle(struct wil6210_priv *wil);
1407 int wil_fw_copy_crash_dump(struct wil6210_priv *wil, void *dest, u32 size);
1408 void wil_fw_core_dump(struct wil6210_priv *wil);
1410 void wil_halp_vote(struct wil6210_priv *wil);
1411 void wil_halp_unvote(struct wil6210_priv *wil);
1412 void wil6210_set_halp(struct wil6210_priv *wil);
1413 void wil6210_clear_halp(struct wil6210_priv *wil);
1415 int wmi_start_sched_scan(struct wil6210_priv *wil,
1417 int wmi_stop_sched_scan(struct wil6210_priv *wil);
1421 int wmi_rbufcap_cfg(struct wil6210_priv *wil, bool enable, u16 threshold);
1425 void wil_update_supported_bands(struct wil6210_priv *wil);
1430 int wil_wmi_tx_sring_cfg(struct wil6210_priv *wil, int ring_id);
1431 int wil_wmi_cfg_def_rx_offload(struct wil6210_priv *wil,
1433 int wil_wmi_rx_sring_add(struct wil6210_priv *wil, u16 ring_id);
1434 int wil_wmi_rx_desc_ring_add(struct wil6210_priv *wil, int status_ring_id);
1438 int wmi_addba_rx_resp_edma(struct wil6210_priv *wil, u8 mid, u8 cid,
1442 void update_supported_bands(struct wil6210_priv *wil);
1444 void wil_clear_fw_log_addr(struct wil6210_priv *wil);
1445 int wmi_set_cqm_rssi_config(struct wil6210_priv *wil,