/drivers/net/wireless/microchip/wilc1000/ |
D | wlan.c | 18 static inline void acquire_bus(struct wilc *wilc, enum bus_acquire acquire) in acquire_bus() argument 20 mutex_lock(&wilc->hif_cs); in acquire_bus() 22 chip_wakeup(wilc); in acquire_bus() 25 static inline void release_bus(struct wilc *wilc, enum bus_release release) in release_bus() argument 28 chip_allow_sleep(wilc); in release_bus() 29 mutex_unlock(&wilc->hif_cs); in release_bus() 32 static void wilc_wlan_txq_remove(struct wilc *wilc, u8 q_num, in wilc_wlan_txq_remove() argument 36 wilc->txq_entries -= 1; in wilc_wlan_txq_remove() 37 wilc->txq[q_num].count--; in wilc_wlan_txq_remove() 41 wilc_wlan_txq_remove_from_head(struct wilc *wilc, u8 q_num) in wilc_wlan_txq_remove_from_head() argument [all …]
|
D | sdio.c | 63 static int wilc_sdio_cmd52(struct wilc *wilc, struct sdio_cmd52 *cmd) in wilc_sdio_cmd52() argument 65 struct sdio_func *func = container_of(wilc->dev, struct sdio_func, dev); in wilc_sdio_cmd52() 92 static int wilc_sdio_cmd53(struct wilc *wilc, struct sdio_cmd53 *cmd) in wilc_sdio_cmd53() argument 94 struct sdio_func *func = container_of(wilc->dev, struct sdio_func, dev); in wilc_sdio_cmd53() 96 struct wilc_sdio *sdio_priv = wilc->bus_data; in wilc_sdio_cmd53() 138 struct wilc *wilc; in wilc_sdio_probe() local 152 ret = wilc_cfg80211_init(&wilc, &func->dev, WILC_HIF_SDIO, in wilc_sdio_probe() 162 wilc->dev_irq_num = irq_num; in wilc_sdio_probe() 167 sdio_set_drvdata(func, wilc); in wilc_sdio_probe() 168 wilc->bus_data = sdio_priv; in wilc_sdio_probe() [all …]
|
D | netdev.c | 27 struct wilc *wilc = user_data; in isr_uh_routine() local 29 if (wilc->close) { in isr_uh_routine() 38 struct wilc *wilc = userdata; in isr_bh_routine() local 40 if (wilc->close) { in isr_bh_routine() 45 wilc_handle_isr(wilc); in isr_bh_routine() 53 struct wilc *wl = vif->wilc; in init_irq() 72 struct wilc *wilc = vif->wilc; in deinit_irq() local 75 if (wilc->dev_irq_num) in deinit_irq() 76 free_irq(wilc->dev_irq_num, wilc); in deinit_irq() 79 void wilc_mac_indicate(struct wilc *wilc) in wilc_mac_indicate() argument [all …]
|
D | wlan.h | 358 struct wilc; 360 int (*hif_init)(struct wilc *wilc, bool resume); 361 int (*hif_deinit)(struct wilc *wilc); 362 int (*hif_read_reg)(struct wilc *wilc, u32 addr, u32 *data); 363 int (*hif_write_reg)(struct wilc *wilc, u32 addr, u32 data); 364 int (*hif_block_rx)(struct wilc *wilc, u32 addr, u8 *buf, u32 size); 365 int (*hif_block_tx)(struct wilc *wilc, u32 addr, u8 *buf, u32 size); 366 int (*hif_read_int)(struct wilc *wilc, u32 *int_status); 367 int (*hif_clear_int_ext)(struct wilc *wilc, u32 val); 368 int (*hif_read_size)(struct wilc *wilc, u32 *size); [all …]
|
D | spi.c | 150 struct wilc *wilc; in wilc_bus_probe() local 157 ret = wilc_cfg80211_init(&wilc, &spi->dev, WILC_HIF_SPI, &wilc_hif_spi); in wilc_bus_probe() 161 spi_set_drvdata(spi, wilc); in wilc_bus_probe() 162 wilc->dev = &spi->dev; in wilc_bus_probe() 163 wilc->bus_data = spi_priv; in wilc_bus_probe() 164 wilc->dev_irq_num = spi->irq; in wilc_bus_probe() 166 wilc->rtc_clk = devm_clk_get_optional(&spi->dev, "rtc"); in wilc_bus_probe() 167 if (IS_ERR(wilc->rtc_clk)) { in wilc_bus_probe() 168 ret = PTR_ERR(wilc->rtc_clk); in wilc_bus_probe() 171 clk_prepare_enable(wilc->rtc_clk); in wilc_bus_probe() [all …]
|
D | cfg80211.h | 12 int wilc_cfg80211_init(struct wilc **wilc, struct device *dev, int io_type, 14 struct wilc *wilc_create_wiphy(struct device *dev); 18 struct wilc_vif *wilc_netdev_interface(struct wilc *wl, const char *name, 20 void wilc_wfi_deinit_mon_interface(struct wilc *wl, bool rtnl_locked); 21 struct net_device *wilc_wfi_init_mon_interface(struct wilc *wl, 27 struct wilc_vif *wilc_get_interface(struct wilc *wl); 28 struct wilc_vif *wilc_get_wl_to_vif(struct wilc *wl); 29 void wlan_deinit_locks(struct wilc *wilc);
|
D | netdev.h | 185 struct wilc *wilc; member 208 struct wilc { struct 289 void wilc_frmw_to_host(struct wilc *wilc, u8 *buff, u32 size, u32 pkt_offset); argument 290 void wilc_mac_indicate(struct wilc *wilc); 291 void wilc_netdev_cleanup(struct wilc *wilc); 292 void wilc_wfi_mgmt_rx(struct wilc *wilc, u8 *buff, u32 size); 294 struct wilc_vif *wilc_netdev_ifc_init(struct wilc *wl, const char *name,
|
D | wlan_cfg.h | 44 struct wilc; 47 int wilc_wlan_cfg_get_val(struct wilc *wl, u16 wid, u8 *buffer, 49 void wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size, 51 int wilc_wlan_cfg_init(struct wilc *wl); 52 void wilc_wlan_cfg_deinit(struct wilc *wl);
|
D | cfg80211.c | 168 struct wilc *wl = vif->wilc; in cfg_connect_result() 222 struct wilc_vif *wilc_get_wl_to_vif(struct wilc *wl) in wilc_get_wl_to_vif() 236 struct wilc *wl = wiphy_priv(wiphy); in set_channel() 417 vif->wilc->op_ch = ch; in connect() 419 vif->wilc->sta_ch = ch; in connect() 435 vif->wilc->sta_ch = WILC_INVALID_CHANNEL; in connect() 459 struct wilc *wilc = vif->wilc; in disconnect() local 464 if (!wilc) in disconnect() 467 if (wilc->close) { in disconnect() 474 wilc->sta_ch = WILC_INVALID_CHANNEL; in disconnect() [all …]
|
D | wlan_cfg.c | 136 static void wilc_wlan_parse_response_frame(struct wilc *wl, u8 *info, int size) in wilc_wlan_parse_response_frame() 195 static void wilc_wlan_parse_info_frame(struct wilc *wl, u8 *info) in wilc_wlan_parse_info_frame() 266 int wilc_wlan_cfg_get_val(struct wilc *wl, u16 wid, u8 *buffer, in wilc_wlan_cfg_get_val() 314 void wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size, in wilc_wlan_cfg_indicate_rx() argument 328 wilc_wlan_parse_response_frame(wilc, frame, size); in wilc_wlan_cfg_indicate_rx() 334 wilc_wlan_parse_info_frame(wilc, frame); in wilc_wlan_cfg_indicate_rx() 338 wilc_gnrl_async_info_received(wilc, frame - 4, size + 4); in wilc_wlan_cfg_indicate_rx() 342 wilc_network_info_received(wilc, frame - 4, size + 4); in wilc_wlan_cfg_indicate_rx() 346 wilc_scan_complete_received(wilc, frame - 4, size + 4); in wilc_wlan_cfg_indicate_rx() 355 int wilc_wlan_cfg_init(struct wilc *wl) in wilc_wlan_cfg_init() [all …]
|
D | hif.h | 129 struct wilc; 210 void wilc_scan_complete_received(struct wilc *wilc, u8 *buffer, u32 length); 211 void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length); 212 void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *buffer, u32 length);
|
D | hif.c | 74 if (!msg->vif || !msg->vif->wilc || !msg->vif->wilc->hif_workqueue) in wilc_enqueue_work() 77 if (!queue_work(msg->vif->wilc->hif_workqueue, &msg->work)) in wilc_enqueue_work() 97 static struct wilc_vif *wilc_get_vif_from_idx(struct wilc *wilc, int idx) in wilc_get_vif_from_idx() argument 105 list_for_each_entry_rcu(vif, &wilc->vif_list, list) { in wilc_get_vif_from_idx() 1508 struct wilc *wilc = vif->wilc; in wilc_init() local 1518 if (wilc->clients_count == 0) in wilc_init() 1519 mutex_init(&wilc->deinit_lock); in wilc_init() 1532 wilc->clients_count++; in wilc_init() 1547 mutex_lock(&vif->wilc->deinit_lock); in wilc_deinit() 1564 vif->wilc->clients_count--; in wilc_deinit() [all …]
|
D | mon.c | 217 struct net_device *wilc_wfi_init_mon_interface(struct wilc *wl, in wilc_wfi_init_mon_interface() 248 void wilc_wfi_deinit_mon_interface(struct wilc *wl, bool rtnl_locked) in wilc_wfi_deinit_mon_interface()
|