Lines Matching full:bus
43 /* The level of bus communication with the dongle */
49 /* The level of bus communication with the dongle */
71 * struct brcmf_bus_ops - bus callback operations.
73 * @preinit: execute bus/device specific dongle init commands (optional).
83 * @gettxq: obtain a reference of bus transmit queue (optional).
91 * bus specific driver. For control messages to common driver
114 * struct brcmf_bus_msgbuf - bus ringbuf if in case of msgbuf.
136 * struct brcmf_bus_stats - bus statistic counters.
147 * struct brcmf_bus - interface structure between common and bus layer
149 * @bus_priv: pointer to private bus device.
151 * @dev: device pointer of bus device.
153 * @state: operational state of the bus interface.
154 * @stats: statistics shared between common and bus layer.
159 * @always_use_fws_queue: bus wants use queue also when fwsignal is inactive.
160 * @wowl_supported: is wowl supported by bus driver.
161 * @ops: callbacks for this bus instance.
162 * @msgbuf: msgbuf protocol parameters provided by bus layer.
163 * @list: member used to add this bus instance to linked list.
192 static inline int brcmf_bus_preinit(struct brcmf_bus *bus) in brcmf_bus_preinit() argument
194 if (!bus->ops->preinit) in brcmf_bus_preinit()
196 return bus->ops->preinit(bus->dev); in brcmf_bus_preinit()
199 static inline void brcmf_bus_stop(struct brcmf_bus *bus) in brcmf_bus_stop() argument
201 bus->ops->stop(bus->dev); in brcmf_bus_stop()
204 static inline int brcmf_bus_txdata(struct brcmf_bus *bus, struct sk_buff *skb) in brcmf_bus_txdata() argument
206 return bus->ops->txdata(bus->dev, skb); in brcmf_bus_txdata()
210 int brcmf_bus_txctl(struct brcmf_bus *bus, unsigned char *msg, uint len) in brcmf_bus_txctl() argument
212 return bus->ops->txctl(bus->dev, msg, len); in brcmf_bus_txctl()
216 int brcmf_bus_rxctl(struct brcmf_bus *bus, unsigned char *msg, uint len) in brcmf_bus_rxctl() argument
218 return bus->ops->rxctl(bus->dev, msg, len); in brcmf_bus_rxctl()
222 struct pktq *brcmf_bus_gettxq(struct brcmf_bus *bus) in brcmf_bus_gettxq() argument
224 if (!bus->ops->gettxq) in brcmf_bus_gettxq()
227 return bus->ops->gettxq(bus->dev); in brcmf_bus_gettxq()
231 void brcmf_bus_wowl_config(struct brcmf_bus *bus, bool enabled) in brcmf_bus_wowl_config() argument
233 if (bus->ops->wowl_config) in brcmf_bus_wowl_config()
234 bus->ops->wowl_config(bus->dev, enabled); in brcmf_bus_wowl_config()
237 static inline size_t brcmf_bus_get_ramsize(struct brcmf_bus *bus) in brcmf_bus_get_ramsize() argument
239 if (!bus->ops->get_ramsize) in brcmf_bus_get_ramsize()
242 return bus->ops->get_ramsize(bus->dev); in brcmf_bus_get_ramsize()
246 int brcmf_bus_get_memdump(struct brcmf_bus *bus, void *data, size_t len) in brcmf_bus_get_memdump() argument
248 if (!bus->ops->get_memdump) in brcmf_bus_get_memdump()
251 return bus->ops->get_memdump(bus->dev, data, len); in brcmf_bus_get_memdump()
255 int brcmf_bus_get_blob(struct brcmf_bus *bus, const struct firmware **fw, in brcmf_bus_get_blob() argument
258 return bus->ops->get_blob(bus->dev, fw, type); in brcmf_bus_get_blob()
262 void brcmf_bus_debugfs_create(struct brcmf_bus *bus) in brcmf_bus_debugfs_create() argument
264 if (!bus->ops->debugfs_create) in brcmf_bus_debugfs_create()
267 return bus->ops->debugfs_create(bus->dev); in brcmf_bus_debugfs_create()
271 int brcmf_bus_reset(struct brcmf_bus *bus) in brcmf_bus_reset() argument
273 if (!bus->ops->reset) in brcmf_bus_reset()
276 return bus->ops->reset(bus->dev); in brcmf_bus_reset()
279 static inline void brcmf_bus_remove(struct brcmf_bus *bus) in brcmf_bus_remove() argument
281 if (!bus->ops->remove) { in brcmf_bus_remove()
282 device_release_driver(bus->dev); in brcmf_bus_remove()
286 bus->ops->remove(bus->dev); in brcmf_bus_remove()
300 /* Indication from bus module regarding presence/insertion of dongle. */
302 /* Indication from bus module regarding removal/absence of dongle */
305 /* Indication from bus module that dongle should be reset */
307 /* Request from bus module to initiate a coredump */
312 /* Configure the "global" bus state used by upper layers */
313 void brcmf_bus_change_state(struct brcmf_bus *bus, enum brcmf_bus_state state);