hwbus_priv
len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, len);
alloc_len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, read_len + 2);
ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, reg, buf, len);
return wdev->hwbus_ops->copy_to_io(wdev->hwbus_priv, reg, buf, len);
wdev->hwbus_ops->lock(wdev->hwbus_priv);
wdev->hwbus_ops->unlock(wdev->hwbus_priv);
wdev->hwbus_ops->lock(wdev->hwbus_priv);
wdev->hwbus_ops->unlock(wdev->hwbus_priv);
wdev->hwbus_ops->lock(wdev->hwbus_priv);
wdev->hwbus_ops->unlock(wdev->hwbus_priv);
wdev->hwbus_ops->lock(wdev->hwbus_priv);
wdev->hwbus_ops->unlock(wdev->hwbus_priv);
wdev->hwbus_ops->lock(wdev->hwbus_priv);
ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, WFX_REG_IN_OUT_QUEUE, buf, len);
wdev->hwbus_ops->unlock(wdev->hwbus_priv);
wdev->hwbus_ops->lock(wdev->hwbus_priv);
ret = wdev->hwbus_ops->copy_to_io(wdev->hwbus_priv, WFX_REG_IN_OUT_QUEUE, buf, len);
wdev->hwbus_ops->unlock(wdev->hwbus_priv);
ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, reg, tmp, sizeof(u32));
ret = wdev->hwbus_ops->copy_to_io(wdev->hwbus_priv, reg, tmp, sizeof(u32));
wdev->hwbus_ops->lock(wdev->hwbus_priv);
wdev->hwbus_ops->unlock(wdev->hwbus_priv);
wdev->hwbus_ops->lock(wdev->hwbus_priv);
wdev->hwbus_ops->unlock(wdev->hwbus_priv);
wdev->hwbus_ops->lock(wdev->hwbus_priv);
wdev->hwbus_ops->unlock(wdev->hwbus_priv);
const struct wfx_hwbus_ops *hwbus_ops, void *hwbus_priv)
wdev->hwbus_priv = hwbus_priv;
err = wdev->hwbus_ops->irq_subscribe(wdev->hwbus_priv);
wdev->hwbus_ops->irq_unsubscribe(wdev->hwbus_priv);
wdev->hwbus_ops->irq_unsubscribe(wdev->hwbus_priv);
const struct wfx_hwbus_ops *hwbus_ops, void *hwbus_priv);
wdev->hwbus_ops->set_wakeup(wdev->hwbus_priv, enabled);
void *hwbus_priv;
priv->hwbus_priv, read_len);
priv->hwbus_priv, tx_len);
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
struct hwbus_priv *hwbus_priv;
struct hwbus_priv *hwbus,
struct hwbus_priv *self = dev_id;
static int cw1200_request_irq(struct hwbus_priv *self)
static int cw1200_sdio_irq_subscribe(struct hwbus_priv *self)
static int cw1200_sdio_irq_unsubscribe(struct hwbus_priv *self)
static size_t cw1200_sdio_align_size(struct hwbus_priv *self, size_t size)
static int cw1200_sdio_pm(struct hwbus_priv *self, bool suspend)
struct hwbus_priv *self;
struct hwbus_priv *self = sdio_get_drvdata(func);
struct hwbus_priv *self = sdio_get_drvdata(func);
static int cw1200_sdio_memcpy_fromio(struct hwbus_priv *self,
static int cw1200_sdio_memcpy_toio(struct hwbus_priv *self,
static void cw1200_sdio_lock(struct hwbus_priv *self)
static void cw1200_sdio_unlock(struct hwbus_priv *self)
struct hwbus_priv *self = sdio_get_drvdata(func);
static int cw1200_spi_memcpy_toio(struct hwbus_priv *self,
static void cw1200_spi_lock(struct hwbus_priv *self)
static void cw1200_spi_unlock(struct hwbus_priv *self)
struct hwbus_priv *self = dev_id;
static int cw1200_spi_irq_subscribe(struct hwbus_priv *self)
static void cw1200_spi_irq_unsubscribe(struct hwbus_priv *self)
static int cw1200_spi_off(struct hwbus_priv *self, const struct cw1200_platform_data_spi *pdata)
static int cw1200_spi_on(struct hwbus_priv *self, const struct cw1200_platform_data_spi *pdata)
static size_t cw1200_spi_align_size(struct hwbus_priv *self, size_t size)
static int cw1200_spi_pm(struct hwbus_priv *self, bool suspend)
struct hwbus_priv *self;
struct hwbus_priv *self = spi_get_drvdata(func);
struct hwbus_priv *self = spi_get_drvdata(to_spi_device(dev));
static int cw1200_spi_memcpy_fromio(struct hwbus_priv *self,
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
struct hwbus_priv;
int (*hwbus_memcpy_fromio)(struct hwbus_priv *self, unsigned int addr,
int (*hwbus_memcpy_toio)(struct hwbus_priv *self, unsigned int addr,
void (*lock)(struct hwbus_priv *self);
void (*unlock)(struct hwbus_priv *self);
size_t (*align_size)(struct hwbus_priv *self, size_t size);
int (*power_mgmt)(struct hwbus_priv *self, bool suspend);
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
priv->hwbus_ops->lock(priv->hwbus_priv);
priv->hwbus_ops->unlock(priv->hwbus_priv);
return priv->hwbus_ops->hwbus_memcpy_fromio(priv->hwbus_priv,
return priv->hwbus_ops->hwbus_memcpy_toio(priv->hwbus_priv,
struct hwbus_priv *hwbus,
priv->hwbus_priv = hwbus;
self->hwbus_ops->lock(self->hwbus_priv);
self->hwbus_ops->unlock(self->hwbus_priv);
ret = priv->hwbus_ops->power_mgmt(priv->hwbus_priv, true);
priv->hwbus_ops->power_mgmt(priv->hwbus_priv, false);