Lines Matching refs:bus

44 	int (*data_tx)(struct qtnf_bus *bus, struct sk_buff *skb,
47 void (*data_tx_use_meta_set)(struct qtnf_bus *bus, bool use_meta);
75 static inline bool qtnf_fw_is_up(struct qtnf_bus *bus) in qtnf_fw_is_up() argument
77 enum qtnf_fw_state state = bus->fw_state; in qtnf_fw_is_up()
83 static inline bool qtnf_fw_is_attached(struct qtnf_bus *bus) in qtnf_fw_is_attached() argument
85 enum qtnf_fw_state state = bus->fw_state; in qtnf_fw_is_attached()
92 static inline void *get_bus_priv(struct qtnf_bus *bus) in get_bus_priv() argument
94 if (WARN(!bus, "qtnfmac: invalid bus pointer")) in get_bus_priv()
97 return &bus->bus_priv; in get_bus_priv()
102 static inline int qtnf_bus_preinit(struct qtnf_bus *bus) in qtnf_bus_preinit() argument
104 if (!bus->bus_ops->preinit) in qtnf_bus_preinit()
106 return bus->bus_ops->preinit(bus); in qtnf_bus_preinit()
109 static inline void qtnf_bus_stop(struct qtnf_bus *bus) in qtnf_bus_stop() argument
111 if (!bus->bus_ops->stop) in qtnf_bus_stop()
113 bus->bus_ops->stop(bus); in qtnf_bus_stop()
116 static inline int qtnf_bus_data_tx(struct qtnf_bus *bus, struct sk_buff *skb, in qtnf_bus_data_tx() argument
119 return bus->bus_ops->data_tx(bus, skb, macid, vifid); in qtnf_bus_data_tx()
123 qtnf_bus_data_tx_timeout(struct qtnf_bus *bus, struct net_device *ndev) in qtnf_bus_data_tx_timeout() argument
125 return bus->bus_ops->data_tx_timeout(bus, ndev); in qtnf_bus_data_tx_timeout()
128 static inline int qtnf_bus_control_tx(struct qtnf_bus *bus, struct sk_buff *skb) in qtnf_bus_control_tx() argument
130 return bus->bus_ops->control_tx(bus, skb); in qtnf_bus_control_tx()
133 static inline void qtnf_bus_data_rx_start(struct qtnf_bus *bus) in qtnf_bus_data_rx_start() argument
135 return bus->bus_ops->data_rx_start(bus); in qtnf_bus_data_rx_start()
138 static inline void qtnf_bus_data_rx_stop(struct qtnf_bus *bus) in qtnf_bus_data_rx_stop() argument
140 return bus->bus_ops->data_rx_stop(bus); in qtnf_bus_data_rx_stop()
143 static __always_inline void qtnf_bus_lock(struct qtnf_bus *bus) in qtnf_bus_lock() argument
145 mutex_lock(&bus->bus_lock); in qtnf_bus_lock()
148 static __always_inline void qtnf_bus_unlock(struct qtnf_bus *bus) in qtnf_bus_unlock() argument
150 mutex_unlock(&bus->bus_lock); in qtnf_bus_unlock()
155 int qtnf_core_attach(struct qtnf_bus *bus);
156 void qtnf_core_detach(struct qtnf_bus *bus);