Lines Matching refs:ret

291 	int ret;  in ath11k_pci_fix_l1ss()  local
293 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
297 if (ret) { in ath11k_pci_fix_l1ss()
298 ath11k_warn(ab, "failed to set sysclk: %d\n", ret); in ath11k_pci_fix_l1ss()
299 return ret; in ath11k_pci_fix_l1ss()
302 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
306 if (ret) { in ath11k_pci_fix_l1ss()
307 ath11k_warn(ab, "failed to set dtct config1 error: %d\n", ret); in ath11k_pci_fix_l1ss()
308 return ret; in ath11k_pci_fix_l1ss()
311 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
315 if (ret) { in ath11k_pci_fix_l1ss()
316 ath11k_warn(ab, "failed to set dtct config2: %d\n", ret); in ath11k_pci_fix_l1ss()
317 return ret; in ath11k_pci_fix_l1ss()
320 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
324 if (ret) { in ath11k_pci_fix_l1ss()
325 ath11k_warn(ab, "failed to set dtct config4: %d\n", ret); in ath11k_pci_fix_l1ss()
326 return ret; in ath11k_pci_fix_l1ss()
450 int ret; in ath11k_pci_alloc_msi() local
464 ret = -EINVAL; in ath11k_pci_alloc_msi()
478 ret = -EINVAL; in ath11k_pci_alloc_msi()
502 return ret; in ath11k_pci_alloc_msi()
533 int ret = 0; in ath11k_pci_claim() local
539 ret = -EIO; in ath11k_pci_claim()
543 ret = pci_assign_resource(pdev, ATH11K_PCI_BAR_NUM); in ath11k_pci_claim()
544 if (ret) { in ath11k_pci_claim()
545 ath11k_err(ab, "failed to assign pci resource: %d\n", ret); in ath11k_pci_claim()
549 ret = pci_enable_device(pdev); in ath11k_pci_claim()
550 if (ret) { in ath11k_pci_claim()
551 ath11k_err(ab, "failed to enable pci device: %d\n", ret); in ath11k_pci_claim()
555 ret = pci_request_region(pdev, ATH11K_PCI_BAR_NUM, "ath11k_pci"); in ath11k_pci_claim()
556 if (ret) { in ath11k_pci_claim()
557 ath11k_err(ab, "failed to request pci region: %d\n", ret); in ath11k_pci_claim()
561 ret = dma_set_mask_and_coherent(&pdev->dev, in ath11k_pci_claim()
563 if (ret) { in ath11k_pci_claim()
565 ATH11K_PCI_DMA_MASK, ret); in ath11k_pci_claim()
575 ret = -EIO; in ath11k_pci_claim()
589 return ret; in ath11k_pci_claim()
633 int ret; in ath11k_pci_power_up() local
646 ret = ath11k_mhi_start(ab_pci); in ath11k_pci_power_up()
647 if (ret) { in ath11k_pci_power_up()
648 ath11k_err(ab, "failed to start mhi: %d\n", ret); in ath11k_pci_power_up()
649 return ret; in ath11k_pci_power_up()
773 int ret; in ath11k_pci_probe() local
798 ret = of_property_read_u32(ab->dev->of_node, "memory-region", &addr); in ath11k_pci_probe()
799 if (!ret) in ath11k_pci_probe()
803 ret = ath11k_pci_claim(ab_pci, pdev); in ath11k_pci_probe()
804 if (ret) { in ath11k_pci_probe()
805 ath11k_err(ab, "failed to claim device: %d\n", ret); in ath11k_pci_probe()
829 ret = -EOPNOTSUPP; in ath11k_pci_probe()
862 ret = -EOPNOTSUPP; in ath11k_pci_probe()
871 ret = -EOPNOTSUPP; in ath11k_pci_probe()
875 ret = ath11k_pcic_register_pci_ops(ab, pci_ops); in ath11k_pci_probe()
876 if (ret) { in ath11k_pci_probe()
877 ath11k_err(ab, "failed to register PCI ops: %d\n", ret); in ath11k_pci_probe()
881 ret = ath11k_pcic_init_msi_config(ab); in ath11k_pci_probe()
882 if (ret) { in ath11k_pci_probe()
883 ath11k_err(ab, "failed to init msi config: %d\n", ret); in ath11k_pci_probe()
887 ret = ath11k_pci_alloc_msi(ab_pci); in ath11k_pci_probe()
888 if (ret) { in ath11k_pci_probe()
889 ath11k_err(ab, "failed to enable msi: %d\n", ret); in ath11k_pci_probe()
893 ret = ath11k_core_pre_init(ab); in ath11k_pci_probe()
894 if (ret) in ath11k_pci_probe()
897 ret = ath11k_mhi_register(ab_pci); in ath11k_pci_probe()
898 if (ret) { in ath11k_pci_probe()
899 ath11k_err(ab, "failed to register mhi: %d\n", ret); in ath11k_pci_probe()
903 ret = ath11k_hal_srng_init(ab); in ath11k_pci_probe()
904 if (ret) in ath11k_pci_probe()
907 ret = ath11k_ce_alloc_pipes(ab); in ath11k_pci_probe()
908 if (ret) { in ath11k_pci_probe()
909 ath11k_err(ab, "failed to allocate ce pipes: %d\n", ret); in ath11k_pci_probe()
915 ret = ath11k_pcic_config_irq(ab); in ath11k_pci_probe()
916 if (ret) { in ath11k_pci_probe()
917 ath11k_err(ab, "failed to config irq: %d\n", ret); in ath11k_pci_probe()
921 ret = ath11k_pci_set_irq_affinity_hint(ab_pci, cpumask_of(0)); in ath11k_pci_probe()
922 if (ret) { in ath11k_pci_probe()
923 ath11k_err(ab, "failed to set irq affinity %d\n", ret); in ath11k_pci_probe()
932 ret = ath11k_pci_config_msi_data(ab_pci); in ath11k_pci_probe()
933 if (ret) { in ath11k_pci_probe()
934 ath11k_err(ab, "failed to config msi_data: %d\n", ret); in ath11k_pci_probe()
938 ret = ath11k_core_init(ab); in ath11k_pci_probe()
939 if (ret) { in ath11k_pci_probe()
940 ath11k_err(ab, "failed to init core: %d\n", ret); in ath11k_pci_probe()
970 return ret; in ath11k_pci_probe()
1016 int ret; in ath11k_pci_pm_suspend() local
1023 ret = ath11k_core_suspend(ab); in ath11k_pci_pm_suspend()
1024 if (ret) in ath11k_pci_pm_suspend()
1025 ath11k_warn(ab, "failed to suspend core: %d\n", ret); in ath11k_pci_pm_suspend()
1033 int ret; in ath11k_pci_pm_resume() local
1040 ret = ath11k_core_resume(ab); in ath11k_pci_pm_resume()
1041 if (ret) in ath11k_pci_pm_resume()
1042 ath11k_warn(ab, "failed to resume core: %d\n", ret); in ath11k_pci_pm_resume()
1044 return ret; in ath11k_pci_pm_resume()
1065 int ret; in ath11k_pci_init() local
1067 ret = pci_register_driver(&ath11k_pci_driver); in ath11k_pci_init()
1068 if (ret) in ath11k_pci_init()
1070 ret); in ath11k_pci_init()
1072 return ret; in ath11k_pci_init()