Home
last modified time | relevance | path

Searched refs:wilc (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/drivers/staging/wilc1000/
Dwilc_wlan.c19 static inline void acquire_bus(struct wilc *wilc, enum bus_acquire acquire) in acquire_bus() argument
21 mutex_lock(&wilc->hif_cs); in acquire_bus()
23 chip_wakeup(wilc); in acquire_bus()
26 static inline void release_bus(struct wilc *wilc, enum bus_release release) in release_bus() argument
29 chip_allow_sleep(wilc); in release_bus()
30 mutex_unlock(&wilc->hif_cs); in release_bus()
33 static void wilc_wlan_txq_remove(struct wilc *wilc, struct txq_entry_t *tqe) in wilc_wlan_txq_remove() argument
36 wilc->txq_entries -= 1; in wilc_wlan_txq_remove()
45 struct wilc *wilc = vif->wilc; in wilc_wlan_txq_remove_from_head() local
47 spin_lock_irqsave(&wilc->txq_spinlock, flags); in wilc_wlan_txq_remove_from_head()
[all …]
Dwilc_sdio.c36 static int sdio_write_reg(struct wilc *wilc, u32 addr, u32 data);
37 static int sdio_read_reg(struct wilc *wilc, u32 addr, u32 *data);
38 static int sdio_init(struct wilc *wilc, bool resume);
47 static int wilc_sdio_cmd52(struct wilc *wilc, struct sdio_cmd52 *cmd) in wilc_sdio_cmd52() argument
49 struct sdio_func *func = container_of(wilc->dev, struct sdio_func, dev); in wilc_sdio_cmd52()
76 static int wilc_sdio_cmd53(struct wilc *wilc, struct sdio_cmd53 *cmd) in wilc_sdio_cmd53() argument
78 struct sdio_func *func = container_of(wilc->dev, struct sdio_func, dev); in wilc_sdio_cmd53()
109 struct wilc *wilc; in linux_sdio_probe() local
124 ret = wilc_netdev_init(&wilc, &func->dev, HIF_SDIO, &wilc_hif_sdio); in linux_sdio_probe()
129 sdio_set_drvdata(func, wilc); in linux_sdio_probe()
[all …]
Dwilc_wlan.h234 struct wilc;
236 int (*hif_init)(struct wilc *wilc, bool resume);
237 int (*hif_deinit)(struct wilc *wilc);
238 int (*hif_read_reg)(struct wilc *wilc, u32 addr, u32 *data);
239 int (*hif_write_reg)(struct wilc *wilc, u32 addr, u32 data);
240 int (*hif_block_rx)(struct wilc *wilc, u32 addr, u8 *buf, u32 size);
241 int (*hif_block_tx)(struct wilc *wilc, u32 addr, u8 *buf, u32 size);
242 int (*hif_read_int)(struct wilc *wilc, u32 *int_status);
243 int (*hif_clear_int_ext)(struct wilc *wilc, u32 val);
244 int (*hif_read_size)(struct wilc *wilc, u32 *size);
[all …]
Dwilc_spi.c108 struct wilc *wilc; in wilc_bus_probe() local
119 ret = wilc_netdev_init(&wilc, NULL, HIF_SPI, &wilc_hif_spi); in wilc_bus_probe()
123 spi_set_drvdata(spi, wilc); in wilc_bus_probe()
124 wilc->dev = &spi->dev; in wilc_bus_probe()
125 wilc->gpio_irq = gpio; in wilc_bus_probe()
132 struct wilc *wilc = spi_get_drvdata(spi); in wilc_bus_remove() local
135 if (wilc->gpio_irq) in wilc_bus_remove()
136 gpiod_put(wilc->gpio_irq); in wilc_bus_remove()
137 wilc_netdev_cleanup(wilc); in wilc_bus_remove()
158 static int wilc_spi_tx(struct wilc *wilc, u8 *b, u32 len) in wilc_spi_tx() argument
[all …]
Dlinux_wlan.c103 struct wilc *wilc = vif->wilc; in isr_uh_routine() local
105 if (wilc->close) { in isr_uh_routine()
116 struct wilc *wilc = vif->wilc; in isr_bh_routine() local
118 if (wilc->close) { in isr_bh_routine()
123 wilc_handle_isr(wilc); in isr_bh_routine()
132 struct wilc *wl = vif->wilc; in init_irq()
158 struct wilc *wilc = vif->wilc; in deinit_irq() local
161 if (wilc->dev_irq_num) in deinit_irq()
162 free_irq(wilc->dev_irq_num, wilc); in deinit_irq()
165 void wilc_mac_indicate(struct wilc *wilc) in wilc_mac_indicate() argument
[all …]
Dwilc_wfi_netdevice.h112 struct wilc *wilc; member
121 struct wilc { struct
175 void wilc_frmw_to_linux(struct wilc *wilc, u8 *buff, u32 size, u32 pkt_offset); argument
176 void wilc_mac_indicate(struct wilc *wilc);
177 void wilc_netdev_cleanup(struct wilc *wilc);
178 int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,
180 void wilc_wfi_mgmt_rx(struct wilc *wilc, u8 *buff, u32 size);
Dcoreconfigurator.h78 void wilc_scan_complete_received(struct wilc *wilc, u8 *buffer, u32 length);
79 void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length);
80 void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *buffer, u32 length);
Dwilc_wlan_cfg.h30 struct wilc;
34 int wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,
Dwilc_wlan_if.h830 struct wilc;
832 u32 wilc_get_chipid(struct wilc *wilc, bool update);
Dwilc_wlan_cfg.c505 int wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size, in wilc_wlan_cfg_indicate_rx() argument
535 wilc_gnrl_async_info_received(wilc, frame - 4, size + 4); in wilc_wlan_cfg_indicate_rx()
539 wilc_network_info_received(wilc, frame - 4, size + 4); in wilc_wlan_cfg_indicate_rx()
544 wilc_scan_complete_received(wilc, frame - 4, size + 4); in wilc_wlan_cfg_indicate_rx()
Dwilc_wfi_cfgoperations.c474 struct wilc *wl = vif->wilc; in cfg_connect_result()
814 struct wilc *wilc = vif->wilc; in disconnect() local
821 if (!wilc) in disconnect()
824 if (wilc->close) { in disconnect()
1018 struct wilc *wl = vif->wilc; in del_key()
1678 struct wilc *wl = vif->wilc; in wilc_mgmt_frame_register()
1747 struct wilc *wl = vif->wilc; in change_virtual_intf()
1822 struct wilc *wl = vif->wilc; in start_ap()
1985 if (!wow && wilc_wlan_get_num_conn_ifcs(vif->wilc)) in wilc_suspend()
1986 vif->wilc->suspend_event = true; in wilc_suspend()
[all …]
Dhost_interface.c252 static struct wilc_vif *wilc_get_vif_from_idx(struct wilc *wilc, int idx) in wilc_get_vif_from_idx() argument
259 return wilc->vif[index]; in wilc_get_vif_from_idx()
2675 struct wilc *wilc = msg->vif->wilc; in handle_scan_complete() local
2679 if (!wilc_wlan_get_num_conn_ifcs(wilc)) in handle_scan_complete()
2680 wilc_chip_sleep_manually(wilc); in handle_scan_complete()
3434 wilc_get_statistics(vif, &vif->wilc->dummy_statistics, false); in get_periodic_rssi()
3443 struct wilc *wilc = vif->wilc; in wilc_init() local
3451 for (i = 0; i < wilc->vif_num; i++) in wilc_init()
3452 if (dev == wilc->vif[i]->ndev) { in wilc_init()
3453 wilc->vif[i]->hif_drv = hif_drv; in wilc_init()
[all …]
Dhost_interface.h260 struct wilc;