Lines Matching full:bus

25 /* The level of bus communication with the dongle */
31 /* The level of bus communication with the dongle */
47 * struct brcmf_bus_ops - bus callback operations.
49 * @preinit: execute bus/device specific dongle init commands (optional).
59 * @gettxq: obtain a reference of bus transmit queue (optional).
66 * bus specific driver. For control messages to common driver
88 * struct brcmf_bus_msgbuf - bus ringbuf if in case of msgbuf.
110 * struct brcmf_bus_stats - bus statistic counters.
121 * struct brcmf_bus - interface structure between common and bus layer
123 * @bus_priv: pointer to private bus device.
125 * @dev: device pointer of bus device.
127 * @state: operational state of the bus interface.
128 * @stats: statistics shared between common and bus layer.
131 * @always_use_fws_queue: bus wants use queue also when fwsignal is inactive.
132 * @wowl_supported: is wowl supported by bus driver.
134 * @msgbuf: msgbuf protocol parameters provided by bus layer.
160 static inline int brcmf_bus_preinit(struct brcmf_bus *bus) in brcmf_bus_preinit() argument
162 if (!bus->ops->preinit) in brcmf_bus_preinit()
164 return bus->ops->preinit(bus->dev); in brcmf_bus_preinit()
167 static inline void brcmf_bus_stop(struct brcmf_bus *bus) in brcmf_bus_stop() argument
169 bus->ops->stop(bus->dev); in brcmf_bus_stop()
172 static inline int brcmf_bus_txdata(struct brcmf_bus *bus, struct sk_buff *skb) in brcmf_bus_txdata() argument
174 return bus->ops->txdata(bus->dev, skb); in brcmf_bus_txdata()
178 int brcmf_bus_txctl(struct brcmf_bus *bus, unsigned char *msg, uint len) in brcmf_bus_txctl() argument
180 return bus->ops->txctl(bus->dev, msg, len); in brcmf_bus_txctl()
184 int brcmf_bus_rxctl(struct brcmf_bus *bus, unsigned char *msg, uint len) in brcmf_bus_rxctl() argument
186 return bus->ops->rxctl(bus->dev, msg, len); in brcmf_bus_rxctl()
190 struct pktq *brcmf_bus_gettxq(struct brcmf_bus *bus) in brcmf_bus_gettxq() argument
192 if (!bus->ops->gettxq) in brcmf_bus_gettxq()
195 return bus->ops->gettxq(bus->dev); in brcmf_bus_gettxq()
199 void brcmf_bus_wowl_config(struct brcmf_bus *bus, bool enabled) in brcmf_bus_wowl_config() argument
201 if (bus->ops->wowl_config) in brcmf_bus_wowl_config()
202 bus->ops->wowl_config(bus->dev, enabled); in brcmf_bus_wowl_config()
205 static inline size_t brcmf_bus_get_ramsize(struct brcmf_bus *bus) in brcmf_bus_get_ramsize() argument
207 if (!bus->ops->get_ramsize) in brcmf_bus_get_ramsize()
210 return bus->ops->get_ramsize(bus->dev); in brcmf_bus_get_ramsize()
214 int brcmf_bus_get_memdump(struct brcmf_bus *bus, void *data, size_t len) in brcmf_bus_get_memdump() argument
216 if (!bus->ops->get_memdump) in brcmf_bus_get_memdump()
219 return bus->ops->get_memdump(bus->dev, data, len); in brcmf_bus_get_memdump()
223 int brcmf_bus_get_fwname(struct brcmf_bus *bus, const char *ext, in brcmf_bus_get_fwname() argument
226 return bus->ops->get_fwname(bus->dev, ext, fw_name); in brcmf_bus_get_fwname()
230 void brcmf_bus_debugfs_create(struct brcmf_bus *bus) in brcmf_bus_debugfs_create() argument
232 if (!bus->ops->debugfs_create) in brcmf_bus_debugfs_create()
235 return bus->ops->debugfs_create(bus->dev); in brcmf_bus_debugfs_create()
239 int brcmf_bus_reset(struct brcmf_bus *bus) in brcmf_bus_reset() argument
241 if (!bus->ops->reset) in brcmf_bus_reset()
244 return bus->ops->reset(bus->dev); in brcmf_bus_reset()
258 /* Indication from bus module regarding presence/insertion of dongle. */
260 /* Indication from bus module regarding removal/absence of dongle */
263 /* Indication from bus module that dongle should be reset */
265 /* Request from bus module to initiate a coredump */
270 /* Configure the "global" bus state used by upper layers */
271 void brcmf_bus_change_state(struct brcmf_bus *bus, enum brcmf_bus_state state);