Lines Matching full:ab

13 	u32 (*read32)(struct ath11k_base *ab, u32 address);
14 void (*write32)(struct ath11k_base *ab, u32 address, u32 data);
15 int (*read)(struct ath11k_base *ab, void *buf, u32 start, u32 end);
16 void (*irq_enable)(struct ath11k_base *ab);
17 void (*irq_disable)(struct ath11k_base *ab);
18 int (*start)(struct ath11k_base *ab);
19 void (*stop)(struct ath11k_base *ab);
20 int (*power_up)(struct ath11k_base *ab);
21 void (*power_down)(struct ath11k_base *ab);
22 int (*suspend)(struct ath11k_base *ab);
23 int (*resume)(struct ath11k_base *ab);
24 int (*map_service_to_pipe)(struct ath11k_base *ab, u16 service_id,
26 int (*get_user_msi_vector)(struct ath11k_base *ab, char *user_name,
29 void (*get_msi_address)(struct ath11k_base *ab, u32 *msi_addr_lo,
31 void (*ce_irq_enable)(struct ath11k_base *ab);
32 void (*ce_irq_disable)(struct ath11k_base *ab);
33 void (*get_ce_msi_idx)(struct ath11k_base *ab, u32 ce_id, u32 *msi_idx);
36 static inline void ath11k_hif_ce_irq_enable(struct ath11k_base *ab) in ath11k_hif_ce_irq_enable() argument
38 if (ab->hif.ops->ce_irq_enable) in ath11k_hif_ce_irq_enable()
39 ab->hif.ops->ce_irq_enable(ab); in ath11k_hif_ce_irq_enable()
42 static inline void ath11k_hif_ce_irq_disable(struct ath11k_base *ab) in ath11k_hif_ce_irq_disable() argument
44 if (ab->hif.ops->ce_irq_disable) in ath11k_hif_ce_irq_disable()
45 ab->hif.ops->ce_irq_disable(ab); in ath11k_hif_ce_irq_disable()
48 static inline int ath11k_hif_start(struct ath11k_base *ab) in ath11k_hif_start() argument
50 return ab->hif.ops->start(ab); in ath11k_hif_start()
53 static inline void ath11k_hif_stop(struct ath11k_base *ab) in ath11k_hif_stop() argument
55 ab->hif.ops->stop(ab); in ath11k_hif_stop()
58 static inline void ath11k_hif_irq_enable(struct ath11k_base *ab) in ath11k_hif_irq_enable() argument
60 ab->hif.ops->irq_enable(ab); in ath11k_hif_irq_enable()
63 static inline void ath11k_hif_irq_disable(struct ath11k_base *ab) in ath11k_hif_irq_disable() argument
65 ab->hif.ops->irq_disable(ab); in ath11k_hif_irq_disable()
68 static inline int ath11k_hif_power_up(struct ath11k_base *ab) in ath11k_hif_power_up() argument
70 return ab->hif.ops->power_up(ab); in ath11k_hif_power_up()
73 static inline void ath11k_hif_power_down(struct ath11k_base *ab) in ath11k_hif_power_down() argument
75 ab->hif.ops->power_down(ab); in ath11k_hif_power_down()
78 static inline int ath11k_hif_suspend(struct ath11k_base *ab) in ath11k_hif_suspend() argument
80 if (ab->hif.ops->suspend) in ath11k_hif_suspend()
81 return ab->hif.ops->suspend(ab); in ath11k_hif_suspend()
86 static inline int ath11k_hif_resume(struct ath11k_base *ab) in ath11k_hif_resume() argument
88 if (ab->hif.ops->resume) in ath11k_hif_resume()
89 return ab->hif.ops->resume(ab); in ath11k_hif_resume()
94 static inline u32 ath11k_hif_read32(struct ath11k_base *ab, u32 address) in ath11k_hif_read32() argument
96 return ab->hif.ops->read32(ab, address); in ath11k_hif_read32()
99 static inline void ath11k_hif_write32(struct ath11k_base *ab, u32 address, u32 data) in ath11k_hif_write32() argument
101 ab->hif.ops->write32(ab, address, data); in ath11k_hif_write32()
104 static inline int ath11k_hif_read(struct ath11k_base *ab, void *buf, in ath11k_hif_read() argument
107 if (!ab->hif.ops->read) in ath11k_hif_read()
110 return ab->hif.ops->read(ab, buf, start, end); in ath11k_hif_read()
113 static inline int ath11k_hif_map_service_to_pipe(struct ath11k_base *ab, u16 service_id, in ath11k_hif_map_service_to_pipe() argument
116 return ab->hif.ops->map_service_to_pipe(ab, service_id, ul_pipe, dl_pipe); in ath11k_hif_map_service_to_pipe()
119 static inline int ath11k_get_user_msi_vector(struct ath11k_base *ab, char *user_name, in ath11k_get_user_msi_vector() argument
123 if (!ab->hif.ops->get_user_msi_vector) in ath11k_get_user_msi_vector()
126 return ab->hif.ops->get_user_msi_vector(ab, user_name, num_vectors, in ath11k_get_user_msi_vector()
131 static inline void ath11k_get_msi_address(struct ath11k_base *ab, u32 *msi_addr_lo, in ath11k_get_msi_address() argument
134 if (!ab->hif.ops->get_msi_address) in ath11k_get_msi_address()
137 ab->hif.ops->get_msi_address(ab, msi_addr_lo, msi_addr_hi); in ath11k_get_msi_address()
140 static inline void ath11k_get_ce_msi_idx(struct ath11k_base *ab, u32 ce_id, in ath11k_get_ce_msi_idx() argument
143 if (ab->hif.ops->get_ce_msi_idx) in ath11k_get_ce_msi_idx()
144 ab->hif.ops->get_ce_msi_idx(ab, ce_id, msi_data_idx); in ath11k_get_ce_msi_idx()