ar_ahb 35 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 37 drivers/net/wireless/ath/ath10k/ahb.c iowrite32(value, ar_ahb->mem + offset); ar_ahb 42 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 44 drivers/net/wireless/ath/ath10k/ahb.c return ioread32(ar_ahb->mem + offset); ar_ahb 49 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 51 drivers/net/wireless/ath/ath10k/ahb.c return ioread32(ar_ahb->gcc_mem + offset); ar_ahb 56 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 58 drivers/net/wireless/ath/ath10k/ahb.c iowrite32(value, ar_ahb->tcsr_mem + offset); ar_ahb 63 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 65 drivers/net/wireless/ath/ath10k/ahb.c return ioread32(ar_ahb->tcsr_mem + offset); ar_ahb 84 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 87 drivers/net/wireless/ath/ath10k/ahb.c dev = &ar_ahb->pdev->dev; ar_ahb 89 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->cmd_clk = devm_clk_get(dev, "wifi_wcss_cmd"); ar_ahb 90 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR_OR_NULL(ar_ahb->cmd_clk)) { ar_ahb 92 drivers/net/wireless/ath/ath10k/ahb.c PTR_ERR(ar_ahb->cmd_clk)); ar_ahb 93 drivers/net/wireless/ath/ath10k/ahb.c return ar_ahb->cmd_clk ? PTR_ERR(ar_ahb->cmd_clk) : -ENODEV; ar_ahb 96 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->ref_clk = devm_clk_get(dev, "wifi_wcss_ref"); ar_ahb 97 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR_OR_NULL(ar_ahb->ref_clk)) { ar_ahb 99 drivers/net/wireless/ath/ath10k/ahb.c PTR_ERR(ar_ahb->ref_clk)); ar_ahb 100 drivers/net/wireless/ath/ath10k/ahb.c return ar_ahb->ref_clk ? PTR_ERR(ar_ahb->ref_clk) : -ENODEV; ar_ahb 103 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->rtc_clk = devm_clk_get(dev, "wifi_wcss_rtc"); ar_ahb 104 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR_OR_NULL(ar_ahb->rtc_clk)) { ar_ahb 106 drivers/net/wireless/ath/ath10k/ahb.c PTR_ERR(ar_ahb->rtc_clk)); ar_ahb 107 drivers/net/wireless/ath/ath10k/ahb.c return ar_ahb->rtc_clk ? PTR_ERR(ar_ahb->rtc_clk) : -ENODEV; ar_ahb 115 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 117 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->cmd_clk = NULL; ar_ahb 118 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->ref_clk = NULL; ar_ahb 119 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->rtc_clk = NULL; ar_ahb 124 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 127 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR_OR_NULL(ar_ahb->cmd_clk) || ar_ahb 128 drivers/net/wireless/ath/ath10k/ahb.c IS_ERR_OR_NULL(ar_ahb->ref_clk) || ar_ahb 129 drivers/net/wireless/ath/ath10k/ahb.c IS_ERR_OR_NULL(ar_ahb->rtc_clk)) { ar_ahb 135 drivers/net/wireless/ath/ath10k/ahb.c ret = clk_prepare_enable(ar_ahb->cmd_clk); ar_ahb 141 drivers/net/wireless/ath/ath10k/ahb.c ret = clk_prepare_enable(ar_ahb->ref_clk); ar_ahb 147 drivers/net/wireless/ath/ath10k/ahb.c ret = clk_prepare_enable(ar_ahb->rtc_clk); ar_ahb 156 drivers/net/wireless/ath/ath10k/ahb.c clk_disable_unprepare(ar_ahb->ref_clk); ar_ahb 159 drivers/net/wireless/ath/ath10k/ahb.c clk_disable_unprepare(ar_ahb->cmd_clk); ar_ahb 167 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 169 drivers/net/wireless/ath/ath10k/ahb.c clk_disable_unprepare(ar_ahb->cmd_clk); ar_ahb 171 drivers/net/wireless/ath/ath10k/ahb.c clk_disable_unprepare(ar_ahb->ref_clk); ar_ahb 173 drivers/net/wireless/ath/ath10k/ahb.c clk_disable_unprepare(ar_ahb->rtc_clk); ar_ahb 178 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 181 drivers/net/wireless/ath/ath10k/ahb.c dev = &ar_ahb->pdev->dev; ar_ahb 183 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->core_cold_rst = devm_reset_control_get_exclusive(dev, ar_ahb 185 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR(ar_ahb->core_cold_rst)) { ar_ahb 187 drivers/net/wireless/ath/ath10k/ahb.c PTR_ERR(ar_ahb->core_cold_rst)); ar_ahb 188 drivers/net/wireless/ath/ath10k/ahb.c return PTR_ERR(ar_ahb->core_cold_rst); ar_ahb 191 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->radio_cold_rst = devm_reset_control_get_exclusive(dev, ar_ahb 193 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR(ar_ahb->radio_cold_rst)) { ar_ahb 195 drivers/net/wireless/ath/ath10k/ahb.c PTR_ERR(ar_ahb->radio_cold_rst)); ar_ahb 196 drivers/net/wireless/ath/ath10k/ahb.c return PTR_ERR(ar_ahb->radio_cold_rst); ar_ahb 199 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->radio_warm_rst = devm_reset_control_get_exclusive(dev, ar_ahb 201 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR(ar_ahb->radio_warm_rst)) { ar_ahb 203 drivers/net/wireless/ath/ath10k/ahb.c PTR_ERR(ar_ahb->radio_warm_rst)); ar_ahb 204 drivers/net/wireless/ath/ath10k/ahb.c return PTR_ERR(ar_ahb->radio_warm_rst); ar_ahb 207 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->radio_srif_rst = devm_reset_control_get_exclusive(dev, ar_ahb 209 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR(ar_ahb->radio_srif_rst)) { ar_ahb 211 drivers/net/wireless/ath/ath10k/ahb.c PTR_ERR(ar_ahb->radio_srif_rst)); ar_ahb 212 drivers/net/wireless/ath/ath10k/ahb.c return PTR_ERR(ar_ahb->radio_srif_rst); ar_ahb 215 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->cpu_init_rst = devm_reset_control_get_exclusive(dev, ar_ahb 217 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR(ar_ahb->cpu_init_rst)) { ar_ahb 219 drivers/net/wireless/ath/ath10k/ahb.c PTR_ERR(ar_ahb->cpu_init_rst)); ar_ahb 220 drivers/net/wireless/ath/ath10k/ahb.c return PTR_ERR(ar_ahb->cpu_init_rst); ar_ahb 228 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 230 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->core_cold_rst = NULL; ar_ahb 231 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->radio_cold_rst = NULL; ar_ahb 232 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->radio_warm_rst = NULL; ar_ahb 233 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->radio_srif_rst = NULL; ar_ahb 234 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->cpu_init_rst = NULL; ar_ahb 239 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 242 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR_OR_NULL(ar_ahb->radio_cold_rst) || ar_ahb 243 drivers/net/wireless/ath/ath10k/ahb.c IS_ERR_OR_NULL(ar_ahb->radio_warm_rst) || ar_ahb 244 drivers/net/wireless/ath/ath10k/ahb.c IS_ERR_OR_NULL(ar_ahb->radio_srif_rst) || ar_ahb 245 drivers/net/wireless/ath/ath10k/ahb.c IS_ERR_OR_NULL(ar_ahb->cpu_init_rst)) { ar_ahb 250 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_deassert(ar_ahb->radio_cold_rst); ar_ahb 256 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_deassert(ar_ahb->radio_warm_rst); ar_ahb 262 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_deassert(ar_ahb->radio_srif_rst); ar_ahb 268 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_deassert(ar_ahb->cpu_init_rst); ar_ahb 308 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 313 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR_OR_NULL(ar_ahb->core_cold_rst) || ar_ahb 314 drivers/net/wireless/ath/ath10k/ahb.c IS_ERR_OR_NULL(ar_ahb->radio_cold_rst) || ar_ahb 315 drivers/net/wireless/ath/ath10k/ahb.c IS_ERR_OR_NULL(ar_ahb->radio_warm_rst) || ar_ahb 316 drivers/net/wireless/ath/ath10k/ahb.c IS_ERR_OR_NULL(ar_ahb->radio_srif_rst) || ar_ahb 317 drivers/net/wireless/ath/ath10k/ahb.c IS_ERR_OR_NULL(ar_ahb->cpu_init_rst)) { ar_ahb 347 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_assert(ar_ahb->core_cold_rst); ar_ahb 352 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_assert(ar_ahb->radio_cold_rst); ar_ahb 357 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_assert(ar_ahb->radio_warm_rst); ar_ahb 362 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_assert(ar_ahb->radio_srif_rst); ar_ahb 367 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_assert(ar_ahb->cpu_init_rst); ar_ahb 383 drivers/net/wireless/ath/ath10k/ahb.c ret = reset_control_deassert(ar_ahb->core_cold_rst); ar_ahb 407 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 410 drivers/net/wireless/ath/ath10k/ahb.c ret = request_irq(ar_ahb->irq, ar_ahb 415 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->irq, ret); ar_ahb 425 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 427 drivers/net/wireless/ath/ath10k/ahb.c free_irq(ar_ahb->irq, ar); ar_ahb 438 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 443 drivers/net/wireless/ath/ath10k/ahb.c pdev = ar_ahb->pdev; ar_ahb 452 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->mem = devm_ioremap_resource(&pdev->dev, res); ar_ahb 453 drivers/net/wireless/ath/ath10k/ahb.c if (IS_ERR(ar_ahb->mem)) { ar_ahb 455 drivers/net/wireless/ath/ath10k/ahb.c ret = PTR_ERR(ar_ahb->mem); ar_ahb 459 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->mem_len = resource_size(res); ar_ahb 461 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->gcc_mem = ioremap_nocache(ATH10K_GCC_REG_BASE, ar_ahb 463 drivers/net/wireless/ath/ath10k/ahb.c if (!ar_ahb->gcc_mem) { ar_ahb 469 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->tcsr_mem = ioremap_nocache(ATH10K_TCSR_REG_BASE, ar_ahb 471 drivers/net/wireless/ath/ath10k/ahb.c if (!ar_ahb->tcsr_mem) { ar_ahb 498 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->irq = platform_get_irq_byname(pdev, "legacy"); ar_ahb 499 drivers/net/wireless/ath/ath10k/ahb.c if (ar_ahb->irq < 0) { ar_ahb 500 drivers/net/wireless/ath/ath10k/ahb.c ath10k_err(ar, "failed to get irq number: %d\n", ar_ahb->irq); ar_ahb 501 drivers/net/wireless/ath/ath10k/ahb.c ret = ar_ahb->irq; ar_ahb 505 drivers/net/wireless/ath/ath10k/ahb.c ath10k_dbg(ar, ATH10K_DBG_BOOT, "irq: %d\n", ar_ahb->irq); ar_ahb 508 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->mem, ar_ahb->mem_len, ar_ahb 509 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->gcc_mem, ar_ahb->tcsr_mem); ar_ahb 516 drivers/net/wireless/ath/ath10k/ahb.c iounmap(ar_ahb->tcsr_mem); ar_ahb 519 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->tcsr_mem = NULL; ar_ahb 520 drivers/net/wireless/ath/ath10k/ahb.c iounmap(ar_ahb->gcc_mem); ar_ahb 523 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->gcc_mem = NULL; ar_ahb 524 drivers/net/wireless/ath/ath10k/ahb.c devm_iounmap(&pdev->dev, ar_ahb->mem); ar_ahb 527 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->mem = NULL; ar_ahb 533 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 536 drivers/net/wireless/ath/ath10k/ahb.c dev = &ar_ahb->pdev->dev; ar_ahb 538 drivers/net/wireless/ath/ath10k/ahb.c if (ar_ahb->mem) ar_ahb 539 drivers/net/wireless/ath/ath10k/ahb.c devm_iounmap(dev, ar_ahb->mem); ar_ahb 541 drivers/net/wireless/ath/ath10k/ahb.c if (ar_ahb->gcc_mem) ar_ahb 542 drivers/net/wireless/ath/ath10k/ahb.c iounmap(ar_ahb->gcc_mem); ar_ahb 544 drivers/net/wireless/ath/ath10k/ahb.c if (ar_ahb->tcsr_mem) ar_ahb 545 drivers/net/wireless/ath/ath10k/ahb.c iounmap(ar_ahb->tcsr_mem); ar_ahb 547 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->mem = NULL; ar_ahb 548 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->gcc_mem = NULL; ar_ahb 549 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->tcsr_mem = NULL; ar_ahb 640 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); ar_ahb 645 drivers/net/wireless/ath/ath10k/ahb.c synchronize_irq(ar_ahb->irq); ar_ahb 737 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb; ar_ahb 753 drivers/net/wireless/ath/ath10k/ahb.c size = sizeof(*ar_pci) + sizeof(*ar_ahb); ar_ahb 764 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb = ath10k_ahb_priv(ar); ar_ahb 766 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb->pdev = pdev; ar_ahb 774 drivers/net/wireless/ath/ath10k/ahb.c ar_pci->mem = ar_ahb->mem; ar_ahb 775 drivers/net/wireless/ath/ath10k/ahb.c ar_pci->mem_len = ar_ahb->mem_len; ar_ahb 838 drivers/net/wireless/ath/ath10k/ahb.c struct ath10k_ahb *ar_ahb; ar_ahb 843 drivers/net/wireless/ath/ath10k/ahb.c ar_ahb = ath10k_ahb_priv(ar); ar_ahb 845 drivers/net/wireless/ath/ath10k/ahb.c if (!ar_ahb)