Lines Matching refs:dev
52 static inline int pld_snoc_wlan_enable(struct device *dev, in pld_snoc_wlan_enable() argument
58 static inline int pld_snoc_wlan_disable(struct device *dev, in pld_snoc_wlan_disable() argument
63 static inline int pld_snoc_ce_request_irq(struct device *dev, in pld_snoc_ce_request_irq() argument
71 static inline int pld_snoc_ce_free_irq(struct device *dev, in pld_snoc_ce_free_irq() argument
76 static inline void pld_snoc_enable_irq(struct device *dev, unsigned int ce_id) in pld_snoc_enable_irq() argument
79 static inline void pld_snoc_disable_irq(struct device *dev, unsigned int ce_id) in pld_snoc_disable_irq() argument
82 static inline int pld_snoc_get_soc_info(struct device *dev, struct pld_soc_info *info) in pld_snoc_get_soc_info() argument
86 static inline int pld_snoc_get_ce_id(struct device *dev, int irq) in pld_snoc_get_ce_id() argument
90 static inline int pld_snoc_power_on(struct device *dev) in pld_snoc_power_on() argument
94 static inline int pld_snoc_power_off(struct device *dev) in pld_snoc_power_off() argument
98 static inline int pld_snoc_get_irq(struct device *dev, int ce_id) in pld_snoc_get_irq() argument
102 static inline int pld_snoc_athdiag_read(struct device *dev, uint32_t offset, in pld_snoc_athdiag_read() argument
108 static inline int pld_snoc_athdiag_write(struct device *dev, uint32_t offset, in pld_snoc_athdiag_write() argument
116 static inline void *pld_snoc_smmu_get_domain(struct device *dev) in pld_snoc_smmu_get_domain() argument
122 static inline void *pld_snoc_smmu_get_mapping(struct device *dev) in pld_snoc_smmu_get_mapping() argument
128 static inline int pld_snoc_idle_restart(struct device *dev) in pld_snoc_idle_restart() argument
133 static inline int pld_snoc_idle_shutdown(struct device *dev) in pld_snoc_idle_shutdown() argument
143 static inline int pld_snoc_smmu_map(struct device *dev, phys_addr_t paddr, in pld_snoc_smmu_map() argument
149 static inline int pld_snoc_smmu_unmap(struct device *dev, in pld_snoc_smmu_unmap() argument
156 unsigned int pld_snoc_socinfo_get_serial_number(struct device *dev) in pld_snoc_socinfo_get_serial_number() argument
160 static inline int pld_snoc_is_qmi_disable(struct device *dev) in pld_snoc_is_qmi_disable() argument
165 static inline int pld_snoc_is_fw_down(struct device *dev) in pld_snoc_is_fw_down() argument
170 static inline int pld_snoc_is_low_power_mode(struct device *dev) in pld_snoc_is_low_power_mode() argument
175 static inline int pld_snoc_set_fw_log_mode(struct device *dev, u8 fw_log_mode) in pld_snoc_set_fw_log_mode() argument
179 static inline int pld_snoc_force_assert_target(struct device *dev) in pld_snoc_force_assert_target() argument
200 pld_snoc_get_audio_wlan_timestamp(struct device *dev, in pld_snoc_get_audio_wlan_timestamp() argument
236 int pld_snoc_wlan_enable(struct device *dev,
250 int pld_snoc_wlan_disable(struct device *dev, enum pld_driver_mode mode);
262 int pld_snoc_get_soc_info(struct device *dev, struct pld_soc_info *info);
277 pld_snoc_get_audio_wlan_timestamp(struct device *dev, in pld_snoc_get_audio_wlan_timestamp() argument
281 if (!dev) in pld_snoc_get_audio_wlan_timestamp()
287 static inline int pld_snoc_ce_request_irq(struct device *dev, in pld_snoc_ce_request_irq() argument
293 if (!dev) in pld_snoc_ce_request_irq()
296 return icnss_ce_request_irq(dev, ce_id, handler, flags, name, ctx); in pld_snoc_ce_request_irq()
299 static inline int pld_snoc_ce_free_irq(struct device *dev, in pld_snoc_ce_free_irq() argument
302 if (!dev) in pld_snoc_ce_free_irq()
305 return icnss_ce_free_irq(dev, ce_id, ctx); in pld_snoc_ce_free_irq()
308 static inline void pld_snoc_enable_irq(struct device *dev, unsigned int ce_id) in pld_snoc_enable_irq() argument
310 if (dev) in pld_snoc_enable_irq()
311 icnss_enable_irq(dev, ce_id); in pld_snoc_enable_irq()
314 static inline void pld_snoc_disable_irq(struct device *dev, unsigned int ce_id) in pld_snoc_disable_irq() argument
316 if (dev) in pld_snoc_disable_irq()
317 icnss_disable_irq(dev, ce_id); in pld_snoc_disable_irq()
320 static inline int pld_snoc_get_ce_id(struct device *dev, int irq) in pld_snoc_get_ce_id() argument
322 if (!dev) in pld_snoc_get_ce_id()
325 return icnss_get_ce_id(dev, irq); in pld_snoc_get_ce_id()
328 static inline int pld_snoc_get_irq(struct device *dev, int ce_id) in pld_snoc_get_irq() argument
330 if (!dev) in pld_snoc_get_irq()
333 return icnss_get_irq(dev, ce_id); in pld_snoc_get_irq()
336 static inline int pld_snoc_power_on(struct device *dev) in pld_snoc_power_on() argument
338 return icnss_power_on(dev); in pld_snoc_power_on()
340 static inline int pld_snoc_power_off(struct device *dev) in pld_snoc_power_off() argument
342 return icnss_power_off(dev); in pld_snoc_power_off()
344 static inline int pld_snoc_athdiag_read(struct device *dev, uint32_t offset, in pld_snoc_athdiag_read() argument
348 return icnss_athdiag_read(dev, offset, memtype, datalen, output); in pld_snoc_athdiag_read()
350 static inline int pld_snoc_athdiag_write(struct device *dev, uint32_t offset, in pld_snoc_athdiag_write() argument
354 return icnss_athdiag_write(dev, offset, memtype, datalen, input); in pld_snoc_athdiag_write()
358 static inline void *pld_snoc_smmu_get_domain(struct device *dev) in pld_snoc_smmu_get_domain() argument
360 return icnss_smmu_get_domain(dev); in pld_snoc_smmu_get_domain()
364 static inline void *pld_snoc_smmu_get_mapping(struct device *dev) in pld_snoc_smmu_get_mapping() argument
366 return icnss_smmu_get_mapping(dev); in pld_snoc_smmu_get_mapping()
370 static inline int pld_snoc_smmu_map(struct device *dev, phys_addr_t paddr, in pld_snoc_smmu_map() argument
373 return icnss_smmu_map(dev, paddr, iova_addr, size); in pld_snoc_smmu_map()
377 static inline int pld_snoc_smmu_unmap(struct device *dev, in pld_snoc_smmu_unmap() argument
380 return icnss_smmu_unmap(dev, iova_addr, size); in pld_snoc_smmu_unmap()
384 static inline int pld_snoc_smmu_unmap(struct device *dev, in pld_snoc_smmu_unmap() argument
392 unsigned int pld_snoc_socinfo_get_serial_number(struct device *dev) in pld_snoc_socinfo_get_serial_number() argument
394 return icnss_socinfo_get_serial_number(dev); in pld_snoc_socinfo_get_serial_number()
397 static inline int pld_snoc_is_fw_down(struct device *dev) in pld_snoc_is_fw_down() argument
403 static inline int pld_snoc_is_low_power_mode(struct device *dev) in pld_snoc_is_low_power_mode() argument
408 static inline int pld_snoc_is_low_power_mode(struct device *dev) in pld_snoc_is_low_power_mode() argument
414 static inline int pld_snoc_is_qmi_disable(struct device *dev) in pld_snoc_is_qmi_disable() argument
416 if (!dev) in pld_snoc_is_qmi_disable()
419 return icnss_is_qmi_disable(dev); in pld_snoc_is_qmi_disable()
422 static inline int pld_snoc_set_fw_log_mode(struct device *dev, u8 fw_log_mode) in pld_snoc_set_fw_log_mode() argument
424 if (!dev) in pld_snoc_set_fw_log_mode()
427 return icnss_set_fw_log_mode(dev, fw_log_mode); in pld_snoc_set_fw_log_mode()
430 static inline int pld_snoc_force_assert_target(struct device *dev) in pld_snoc_force_assert_target() argument
432 return icnss_trigger_recovery(dev); in pld_snoc_force_assert_target()
450 static inline int pld_snoc_idle_restart(struct device *dev) in pld_snoc_idle_restart() argument
452 return icnss_idle_restart(dev); in pld_snoc_idle_restart()
455 static inline int pld_snoc_idle_shutdown(struct device *dev) in pld_snoc_idle_shutdown() argument
457 return icnss_idle_shutdown(dev); in pld_snoc_idle_shutdown()