Lines Matching refs:penv
95 static struct icnss_priv *penv; variable
137 penv = priv; in icnss_set_plat_priv()
142 return penv; in icnss_get_plat_priv()
410 if (!penv) in icnss_is_fw_ready()
413 return test_bit(ICNSS_FW_READY, &penv->state); in icnss_is_fw_ready()
419 if (!penv) in icnss_block_shutdown()
423 set_bit(ICNSS_BLOCK_SHUTDOWN, &penv->state); in icnss_block_shutdown()
424 reinit_completion(&penv->unblock_shutdown); in icnss_block_shutdown()
426 clear_bit(ICNSS_BLOCK_SHUTDOWN, &penv->state); in icnss_block_shutdown()
427 complete(&penv->unblock_shutdown); in icnss_block_shutdown()
459 if (!penv) in icnss_is_rejuvenate()
462 return test_bit(ICNSS_REJUVENATE, &penv->state); in icnss_is_rejuvenate()
468 if (!penv) in icnss_is_pdr()
471 return test_bit(ICNSS_PDR, &penv->state); in icnss_is_pdr()
524 reinit_completion(&penv->smp2p_soc_wake_wait); in icnss_send_smp2p()
552 if (!penv) in icnss_is_low_power()
555 return test_bit(ICNSS_LOW_POWER, &penv->state); in icnss_is_low_power()
2637 set_bit(ICNSS_PDR, &penv->state); in icnss_pdr_notifier_cb()
2947 struct device *dev = &penv->pdev->dev; in icnss_tcdev_set_cur_state()
2951 if (!penv->ops || !penv->ops->set_therm_cdev_state) in icnss_tcdev_set_cur_state()
2960 mutex_lock(&penv->tcdev_lock); in icnss_tcdev_set_cur_state()
2961 ret = penv->ops->set_therm_cdev_state(dev, thermal_state, in icnss_tcdev_set_cur_state()
2965 mutex_unlock(&penv->tcdev_lock); in icnss_tcdev_set_cur_state()
3302 penv->stats.ce_irqs[ce_id].request++; in icnss_ce_request_irq()
3314 if (!penv || !penv->pdev || !dev) { in icnss_ce_free_irq()
3319 icnss_pr_vdbg("CE free IRQ: %d, state: 0x%lx\n", ce_id, penv->state); in icnss_ce_free_irq()
3327 irq = penv->ce_irqs[ce_id]; in icnss_ce_free_irq()
3328 irq_entry = &penv->ce_irq_list[ce_id]; in icnss_ce_free_irq()
3338 penv->stats.ce_irqs[ce_id].free++; in icnss_ce_free_irq()
3348 if (!penv || !penv->pdev || !dev) { in icnss_enable_irq()
3354 penv->state); in icnss_enable_irq()
3361 penv->stats.ce_irqs[ce_id].enable++; in icnss_enable_irq()
3363 irq = penv->ce_irqs[ce_id]; in icnss_enable_irq()
3372 if (!penv || !penv->pdev || !dev) { in icnss_disable_irq()
3378 penv->state); in icnss_disable_irq()
3386 irq = penv->ce_irqs[ce_id]; in icnss_disable_irq()
3389 penv->stats.ce_irqs[ce_id].disable++; in icnss_disable_irq()
3458 if (test_bit(ICNSS_FW_DOWN, &penv->state) || in icnss_set_fw_log_mode()
3459 !test_bit(ICNSS_FW_READY, &penv->state)) { in icnss_set_fw_log_mode()
3709 return test_bit(SKIP_QMI, &penv->ctrl_params.quirks) ? true : false; in icnss_is_qmi_disable()
3717 if (!penv || !penv->pdev || !dev) in icnss_get_ce_id()
3721 if (penv->ce_irqs[i] == irq) in icnss_get_ce_id()
3735 if (!penv || !penv->pdev || !dev) in icnss_get_irq()
3741 irq = penv->ce_irqs[ce_id]; in icnss_get_irq()
4730 icnss_driver_event_post(penv, ICNSS_DRIVER_EVENT_SUBSYS_RESTART_LEVEL, in rproc_restart_level_notifier()
4943 power_supply_put(penv->batt_psy); in icnss_unregister_power_supply_notifier()
4969 icnss_unregister_power_supply_notifier(penv); in icnss_remove()