Lines Matching full:ab

13 	u32 (*read32)(struct ath12k_base *ab, u32 address);
14 void (*write32)(struct ath12k_base *ab, u32 address, u32 data);
15 void (*irq_enable)(struct ath12k_base *ab);
16 void (*irq_disable)(struct ath12k_base *ab);
17 int (*start)(struct ath12k_base *ab);
18 void (*stop)(struct ath12k_base *ab);
19 int (*power_up)(struct ath12k_base *ab);
20 void (*power_down)(struct ath12k_base *ab, bool is_suspend);
21 int (*suspend)(struct ath12k_base *ab);
22 int (*resume)(struct ath12k_base *ab);
23 int (*map_service_to_pipe)(struct ath12k_base *ab, u16 service_id,
25 int (*get_user_msi_vector)(struct ath12k_base *ab, char *user_name,
28 void (*get_msi_address)(struct ath12k_base *ab, u32 *msi_addr_lo,
30 void (*ce_irq_enable)(struct ath12k_base *ab);
31 void (*ce_irq_disable)(struct ath12k_base *ab);
32 void (*get_ce_msi_idx)(struct ath12k_base *ab, u32 ce_id, u32 *msi_idx);
33 int (*panic_handler)(struct ath12k_base *ab);
36 static inline int ath12k_hif_map_service_to_pipe(struct ath12k_base *ab, u16 service_id, in ath12k_hif_map_service_to_pipe() argument
39 return ab->hif.ops->map_service_to_pipe(ab, service_id, in ath12k_hif_map_service_to_pipe()
43 static inline int ath12k_hif_get_user_msi_vector(struct ath12k_base *ab, in ath12k_hif_get_user_msi_vector() argument
49 if (!ab->hif.ops->get_user_msi_vector) in ath12k_hif_get_user_msi_vector()
52 return ab->hif.ops->get_user_msi_vector(ab, user_name, num_vectors, in ath12k_hif_get_user_msi_vector()
57 static inline void ath12k_hif_get_msi_address(struct ath12k_base *ab, in ath12k_hif_get_msi_address() argument
61 if (!ab->hif.ops->get_msi_address) in ath12k_hif_get_msi_address()
64 ab->hif.ops->get_msi_address(ab, msi_addr_lo, msi_addr_hi); in ath12k_hif_get_msi_address()
67 static inline void ath12k_hif_get_ce_msi_idx(struct ath12k_base *ab, u32 ce_id, in ath12k_hif_get_ce_msi_idx() argument
70 if (ab->hif.ops->get_ce_msi_idx) in ath12k_hif_get_ce_msi_idx()
71 ab->hif.ops->get_ce_msi_idx(ab, ce_id, msi_data_idx); in ath12k_hif_get_ce_msi_idx()
76 static inline void ath12k_hif_ce_irq_enable(struct ath12k_base *ab) in ath12k_hif_ce_irq_enable() argument
78 if (ab->hif.ops->ce_irq_enable) in ath12k_hif_ce_irq_enable()
79 ab->hif.ops->ce_irq_enable(ab); in ath12k_hif_ce_irq_enable()
82 static inline void ath12k_hif_ce_irq_disable(struct ath12k_base *ab) in ath12k_hif_ce_irq_disable() argument
84 if (ab->hif.ops->ce_irq_disable) in ath12k_hif_ce_irq_disable()
85 ab->hif.ops->ce_irq_disable(ab); in ath12k_hif_ce_irq_disable()
88 static inline void ath12k_hif_irq_enable(struct ath12k_base *ab) in ath12k_hif_irq_enable() argument
90 ab->hif.ops->irq_enable(ab); in ath12k_hif_irq_enable()
93 static inline void ath12k_hif_irq_disable(struct ath12k_base *ab) in ath12k_hif_irq_disable() argument
95 ab->hif.ops->irq_disable(ab); in ath12k_hif_irq_disable()
98 static inline int ath12k_hif_suspend(struct ath12k_base *ab) in ath12k_hif_suspend() argument
100 if (ab->hif.ops->suspend) in ath12k_hif_suspend()
101 return ab->hif.ops->suspend(ab); in ath12k_hif_suspend()
106 static inline int ath12k_hif_resume(struct ath12k_base *ab) in ath12k_hif_resume() argument
108 if (ab->hif.ops->resume) in ath12k_hif_resume()
109 return ab->hif.ops->resume(ab); in ath12k_hif_resume()
114 static inline int ath12k_hif_start(struct ath12k_base *ab) in ath12k_hif_start() argument
116 return ab->hif.ops->start(ab); in ath12k_hif_start()
119 static inline void ath12k_hif_stop(struct ath12k_base *ab) in ath12k_hif_stop() argument
121 ab->hif.ops->stop(ab); in ath12k_hif_stop()
124 static inline u32 ath12k_hif_read32(struct ath12k_base *ab, u32 address) in ath12k_hif_read32() argument
126 return ab->hif.ops->read32(ab, address); in ath12k_hif_read32()
129 static inline void ath12k_hif_write32(struct ath12k_base *ab, u32 address, in ath12k_hif_write32() argument
132 ab->hif.ops->write32(ab, address, data); in ath12k_hif_write32()
135 static inline int ath12k_hif_power_up(struct ath12k_base *ab) in ath12k_hif_power_up() argument
137 if (!ab->hif.ops->power_up) in ath12k_hif_power_up()
140 return ab->hif.ops->power_up(ab); in ath12k_hif_power_up()
143 static inline void ath12k_hif_power_down(struct ath12k_base *ab, bool is_suspend) in ath12k_hif_power_down() argument
145 if (!ab->hif.ops->power_down) in ath12k_hif_power_down()
148 ab->hif.ops->power_down(ab, is_suspend); in ath12k_hif_power_down()
151 static inline int ath12k_hif_panic_handler(struct ath12k_base *ab) in ath12k_hif_panic_handler() argument
153 if (!ab->hif.ops->panic_handler) in ath12k_hif_panic_handler()
156 return ab->hif.ops->panic_handler(ab); in ath12k_hif_panic_handler()