Home
last modified time | relevance | path

Searched refs:hwbus_priv (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.10/drivers/net/wireless/st/cw1200/
Dhwbus.h12 struct hwbus_priv;
20 int (*hwbus_memcpy_fromio)(struct hwbus_priv *self, unsigned int addr,
22 int (*hwbus_memcpy_toio)(struct hwbus_priv *self, unsigned int addr,
24 void (*lock)(struct hwbus_priv *self);
25 void (*unlock)(struct hwbus_priv *self);
26 size_t (*align_size)(struct hwbus_priv *self, size_t size);
27 int (*power_mgmt)(struct hwbus_priv *self, bool suspend);
Dhwio.c46 return priv->hwbus_ops->hwbus_memcpy_fromio(priv->hwbus_priv, in __cw1200_reg_read()
61 return priv->hwbus_ops->hwbus_memcpy_toio(priv->hwbus_priv, in __cw1200_reg_write()
102 priv->hwbus_ops->lock(priv->hwbus_priv); in cw1200_reg_read()
104 priv->hwbus_ops->unlock(priv->hwbus_priv); in cw1200_reg_read()
112 priv->hwbus_ops->lock(priv->hwbus_priv); in cw1200_reg_write()
114 priv->hwbus_ops->unlock(priv->hwbus_priv); in cw1200_reg_write()
123 priv->hwbus_ops->lock(priv->hwbus_priv); in cw1200_data_read()
140 priv->hwbus_ops->unlock(priv->hwbus_priv); in cw1200_data_read()
150 priv->hwbus_ops->lock(priv->hwbus_priv); in cw1200_data_write()
167 priv->hwbus_ops->unlock(priv->hwbus_priv); in cw1200_data_write()
[all …]
Dcw1200_sdio.c46 struct hwbus_priv { struct
59 static int cw1200_sdio_memcpy_fromio(struct hwbus_priv *self, in cw1200_sdio_memcpy_fromio() argument
66 static int cw1200_sdio_memcpy_toio(struct hwbus_priv *self, in cw1200_sdio_memcpy_toio()
73 static void cw1200_sdio_lock(struct hwbus_priv *self) in cw1200_sdio_lock()
78 static void cw1200_sdio_unlock(struct hwbus_priv *self) in cw1200_sdio_unlock()
85 struct hwbus_priv *self = sdio_get_drvdata(func); in cw1200_sdio_irq_handler()
99 struct hwbus_priv *self = dev_id; in cw1200_gpio_irq()
111 static int cw1200_request_irq(struct hwbus_priv *self) in cw1200_request_irq()
148 static int cw1200_sdio_irq_subscribe(struct hwbus_priv *self) in cw1200_sdio_irq_subscribe()
163 static int cw1200_sdio_irq_unsubscribe(struct hwbus_priv *self) in cw1200_sdio_irq_unsubscribe()
[all …]
Dcw1200_spi.c35 struct hwbus_priv { struct
57 static int cw1200_spi_memcpy_fromio(struct hwbus_priv *self, in cw1200_spi_memcpy_fromio() argument
123 static int cw1200_spi_memcpy_toio(struct hwbus_priv *self, in cw1200_spi_memcpy_toio()
194 static void cw1200_spi_lock(struct hwbus_priv *self) in cw1200_spi_lock()
220 static void cw1200_spi_unlock(struct hwbus_priv *self) in cw1200_spi_unlock()
234 struct hwbus_priv *self = dev_id; in cw1200_spi_irq_handler()
246 static int cw1200_spi_irq_subscribe(struct hwbus_priv *self) in cw1200_spi_irq_subscribe()
271 static void cw1200_spi_irq_unsubscribe(struct hwbus_priv *self) in cw1200_spi_irq_unsubscribe()
338 static size_t cw1200_spi_align_size(struct hwbus_priv *self, size_t size) in cw1200_spi_align_size()
343 static int cw1200_spi_pm(struct hwbus_priv *self, bool suspend) in cw1200_spi_pm()
[all …]
Dbh.c269 priv->hwbus_priv, read_len); in cw1200_bh_rx_helper()
388 priv->hwbus_priv, tx_len); in cw1200_bh_tx_helper()
600 priv->hwbus_ops->lock(priv->hwbus_priv); in cw1200_bh()
602 priv->hwbus_ops->unlock(priv->hwbus_priv); in cw1200_bh()
606 priv->hwbus_ops->lock(priv->hwbus_priv); in cw1200_bh()
608 priv->hwbus_ops->unlock(priv->hwbus_priv); in cw1200_bh()
Dcw1200.h105 struct hwbus_priv *hwbus_priv; member
291 struct hwbus_priv *hwbus,
Dfwio.c490 priv->hwbus_ops->lock(priv->hwbus_priv); in cw1200_load_firmware()
492 priv->hwbus_ops->unlock(priv->hwbus_priv); in cw1200_load_firmware()
519 priv->hwbus_ops->lock(priv->hwbus_priv); in cw1200_load_firmware()
521 priv->hwbus_ops->unlock(priv->hwbus_priv); in cw1200_load_firmware()
Dmain.c514 struct hwbus_priv *hwbus, in cw1200_core_probe()
542 priv->hwbus_priv = hwbus; in cw1200_core_probe()
593 self->hwbus_ops->lock(self->hwbus_priv); in cw1200_core_release()
595 self->hwbus_ops->unlock(self->hwbus_priv); in cw1200_core_release()
Dpm.c262 ret = priv->hwbus_ops->power_mgmt(priv->hwbus_priv, true); in cw1200_wow_suspend()
312 priv->hwbus_ops->power_mgmt(priv->hwbus_priv, false); in cw1200_wow_resume()
/Linux-v5.10/drivers/staging/wfx/
Dhwio.c37 ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, reg, tmp, in read32()
56 ret = wdev->hwbus_ops->copy_to_io(wdev->hwbus_priv, reg, tmp, in write32()
69 wdev->hwbus_ops->lock(wdev->hwbus_priv); in read32_locked()
72 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in read32_locked()
80 wdev->hwbus_ops->lock(wdev->hwbus_priv); in write32_locked()
83 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in write32_locked()
94 wdev->hwbus_ops->lock(wdev->hwbus_priv); in write32_bits_locked()
105 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in write32_bits_locked()
152 ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, reg, buf, len); in indirect_read()
171 return wdev->hwbus_ops->copy_to_io(wdev->hwbus_priv, reg, buf, len); in indirect_write()
[all …]
Dmain.c253 void *hwbus_priv) in wfx_init_common() argument
305 wdev->hwbus_priv = hwbus_priv; in wfx_init_common()
404 err = wdev->hwbus_ops->irq_subscribe(wdev->hwbus_priv); in wfx_probe()
457 wdev->hwbus_ops->irq_unsubscribe(wdev->hwbus_priv); in wfx_probe()
467 wdev->hwbus_ops->irq_unsubscribe(wdev->hwbus_priv); in wfx_release()
Dmain.h36 void *hwbus_priv);
Dbh.c78 alloc_len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, read_len + 2); in rx_helper()
186 len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, len); in tx_helper()
Dwfx.h37 void *hwbus_priv; member