Lines Matching refs:sol_gpio
1787 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_enable_dev_sol_irq() local
1790 if (sol_gpio->dev_sol_gpio < 0 || sol_gpio->dev_sol_irq <= 0) in cnss_enable_dev_sol_irq()
1793 ret = enable_irq_wake(sol_gpio->dev_sol_irq); in cnss_enable_dev_sol_irq()
1803 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_disable_dev_sol_irq() local
1806 if (sol_gpio->dev_sol_gpio < 0 || sol_gpio->dev_sol_irq <= 0) in cnss_disable_dev_sol_irq()
1809 ret = disable_irq_wake(sol_gpio->dev_sol_irq); in cnss_disable_dev_sol_irq()
1819 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_get_dev_sol_value() local
1821 if (sol_gpio->dev_sol_gpio < 0) in cnss_get_dev_sol_value()
1824 return gpio_get_value(sol_gpio->dev_sol_gpio); in cnss_get_dev_sol_value()
1830 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_dev_sol_handler() local
1837 sol_gpio->dev_sol_counter++; in cnss_dev_sol_handler()
1839 irq, sol_gpio->dev_sol_counter, in cnss_dev_sol_handler()
1855 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_init_dev_sol_gpio() local
1858 sol_gpio->dev_sol_gpio = of_get_named_gpio(dev->of_node, in cnss_init_dev_sol_gpio()
1860 if (sol_gpio->dev_sol_gpio < 0) in cnss_init_dev_sol_gpio()
1864 sol_gpio->dev_sol_gpio); in cnss_init_dev_sol_gpio()
1866 ret = gpio_request(sol_gpio->dev_sol_gpio, "wlan_dev_sol_gpio"); in cnss_init_dev_sol_gpio()
1873 gpio_direction_input(sol_gpio->dev_sol_gpio); in cnss_init_dev_sol_gpio()
1874 sol_gpio->dev_sol_irq = gpio_to_irq(sol_gpio->dev_sol_gpio); in cnss_init_dev_sol_gpio()
1876 ret = request_irq(sol_gpio->dev_sol_irq, cnss_dev_sol_handler, in cnss_init_dev_sol_gpio()
1886 gpio_free(sol_gpio->dev_sol_gpio); in cnss_init_dev_sol_gpio()
1893 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_deinit_dev_sol_gpio() local
1895 if (sol_gpio->dev_sol_gpio < 0) in cnss_deinit_dev_sol_gpio()
1898 free_irq(sol_gpio->dev_sol_irq, plat_priv); in cnss_deinit_dev_sol_gpio()
1899 gpio_free(sol_gpio->dev_sol_gpio); in cnss_deinit_dev_sol_gpio()
1904 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_set_host_sol_value() local
1906 if (sol_gpio->host_sol_gpio < 0) in cnss_set_host_sol_value()
1911 gpio_set_value(sol_gpio->host_sol_gpio, value); in cnss_set_host_sol_value()
1918 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_get_host_sol_value() local
1920 if (sol_gpio->host_sol_gpio < 0) in cnss_get_host_sol_value()
1923 return gpio_get_value(sol_gpio->host_sol_gpio); in cnss_get_host_sol_value()
1929 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_init_host_sol_gpio() local
1932 sol_gpio->host_sol_gpio = of_get_named_gpio(dev->of_node, in cnss_init_host_sol_gpio()
1934 if (sol_gpio->host_sol_gpio < 0) in cnss_init_host_sol_gpio()
1938 sol_gpio->host_sol_gpio); in cnss_init_host_sol_gpio()
1940 ret = gpio_request(sol_gpio->host_sol_gpio, "wlan_host_sol_gpio"); in cnss_init_host_sol_gpio()
1947 gpio_direction_output(sol_gpio->host_sol_gpio, 0); in cnss_init_host_sol_gpio()
1957 struct cnss_sol_gpio *sol_gpio = &plat_priv->sol_gpio; in cnss_deinit_host_sol_gpio() local
1959 if (sol_gpio->host_sol_gpio < 0) in cnss_deinit_host_sol_gpio()
1962 gpio_free(sol_gpio->host_sol_gpio); in cnss_deinit_host_sol_gpio()