/linux/drivers/pmdomain/starfive/ |
H A D | jh71xx-pmu.c | 85 static int jh71xx_pmu_get_state(struct jh71xx_pmu_dev *pmd, u32 mask, bool *is_on) in jh71xx_pmu_get_state() argument 92 *is_on = readl(pmu->base + pmu->match_data->pmu_status) & mask; in jh71xx_pmu_get_state() 189 bool is_on; in jh71xx_pmu_set_state() local 192 ret = jh71xx_pmu_get_state(pmd, mask, &is_on); in jh71xx_pmu_set_state() 199 if (is_on == on) { in jh71xx_pmu_set_state() 292 bool is_on = false; in jh71xx_pmu_init_domain() local 305 ret = jh71xx_pmu_get_state(pmd, pwr_mask, &is_on); in jh71xx_pmu_init_domain() 312 pm_genpd_init(&pmd->genpd, NULL, !is_on); in jh71xx_pmu_init_domain()
|
/linux/drivers/pmdomain/bcm/ |
H A D | bcm63xx-power.c | 38 static int bcm63xx_power_get_state(struct bcm63xx_power_dev *pmd, bool *is_on) in bcm63xx_power_get_state() argument 43 *is_on = false; in bcm63xx_power_get_state() 47 *is_on = !(__raw_readl(power->base) & pmd->mask); in bcm63xx_power_get_state() 140 bool is_on; in bcm63xx_power_probe() local 147 ret = bcm63xx_power_get_state(pmd, &is_on); in bcm63xx_power_probe() 155 pm_genpd_init(&pmd->genpd, NULL, !is_on); in bcm63xx_power_probe()
|
/linux/drivers/power/supply/ |
H A D | da9030_battery.c | 110 bool is_on; member 141 seq_printf(s, "charger is %s\n", charger->is_on ? "on" : "off"); in bat_debug_show() 210 charger->is_on = (val & DA9030_CHRG_CHARGER_ENABLE) ? 1 : 0; in da9030_charger_update_state() 228 charger->is_on = 1; in da9030_set_charge() 231 charger->is_on = 0; in da9030_set_charge() 244 if (!charger->is_on) { in da9030_charger_check_state() 308 if (charger->is_on) in da9030_battery_check_status() 371 if (charger->is_on) in da9030_battery_vbat_event()
|
/linux/drivers/spi/ |
H A D | spi-lp8841-rtc.c | 40 setsck(struct spi_lp8841_rtc *data, int is_on) in setsck() argument 42 if (is_on) in setsck() 50 setmosi(struct spi_lp8841_rtc *data, int is_on) in setmosi() argument 52 if (is_on) in setmosi()
|
H A D | spi-butterfly.c | 67 setsck(struct spi_device *spi, int is_on) in setsck() argument 74 if (is_on) in setsck() 83 setmosi(struct spi_device *spi, int is_on) in setmosi() argument 90 if (is_on) in setmosi()
|
H A D | spi-lm70llp.c | 133 static inline void setsck(struct spi_device *s, int is_on) in setsck() argument 137 if (is_on) in setsck() 143 static inline void setmosi(struct spi_device *s, int is_on) in setmosi() argument
|
H A D | spi-gpio.c | 86 static inline void setsck(const struct spi_device *spi, int is_on) in setsck() argument 90 gpiod_set_value_cansleep(spi_gpio->sck, is_on); in setsck() 93 static inline void setmosi(const struct spi_device *spi, int is_on) in setmosi() argument 97 gpiod_set_value_cansleep(spi_gpio->mosi, is_on); in setmosi()
|
/linux/drivers/usb/mtu3/ |
H A D | mtu3_gadget.c | 487 static int mtu3_gadget_pullup(struct usb_gadget *gadget, int is_on) in mtu3_gadget_pullup() argument 493 is_on ? "on" : "off", mtu->is_active ? "" : "in"); in mtu3_gadget_pullup() 500 is_on = !!is_on; in mtu3_gadget_pullup() 503 mtu->softconnect = is_on; in mtu3_gadget_pullup() 504 } else if (is_on != mtu->softconnect) { in mtu3_gadget_pullup() 505 mtu->softconnect = is_on; in mtu3_gadget_pullup() 506 mtu3_dev_on_off(mtu, is_on); in mtu3_gadget_pullup()
|
H A D | mtu3_dr.h | 97 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on); 114 static inline int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus() argument
|
H A D | mtu3_dr.c | 102 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus() argument 112 dev_dbg(ssusb->dev, "%s: turn %s\n", __func__, is_on ? "on" : "off"); in ssusb_set_vbus() 114 if (is_on) { in ssusb_set_vbus()
|
H A D | mtu3_core.c | 342 void mtu3_dev_on_off(struct mtu3 *mtu, int is_on) in mtu3_dev_on_off() argument 345 mtu3_ss_func_set(mtu, is_on); in mtu3_dev_on_off() 347 mtu3_hs_softconn_set(mtu, is_on); in mtu3_dev_on_off() 350 usb_speed_string(mtu->speed), is_on ? "+" : "-"); in mtu3_dev_on_off()
|
H A D | mtu3.h | 429 void mtu3_dev_on_off(struct mtu3 *mtu, int is_on);
|
/linux/drivers/pmdomain/rockchip/ |
H A D | pm-domains.c | 493 bool is_on; in rockchip_pmu_domain_mem_reset() local 496 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_chain_on, pd, is_on, in rockchip_pmu_domain_mem_reset() 497 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset() 501 genpd->name, is_on); in rockchip_pmu_domain_mem_reset() 511 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, is_on, in rockchip_pmu_domain_mem_reset() 512 is_on == false, 0, 10000); in rockchip_pmu_domain_mem_reset() 516 genpd->name, is_on); in rockchip_pmu_domain_mem_reset() 524 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, is_on, in rockchip_pmu_domain_mem_reset() 525 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset() 529 genpd->name, is_on); in rockchip_pmu_domain_mem_reset() [all …]
|
/linux/drivers/pinctrl/ |
H A D | pinctrl-at91.c | 196 void (*set_deglitch)(void __iomem *pio, unsigned mask, bool is_on); 198 void (*set_debounce)(void __iomem *pio, unsigned mask, bool is_on, u32 div); 200 void (*set_pulldown)(void __iomem *pio, unsigned mask, bool is_on); 428 bool is_on, bool val) in at91_mux_set_output() argument 431 writel_relaxed(mask, pio + (is_on ? PIO_OER : PIO_ODR)); in at91_mux_set_output() 513 static void at91_mux_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) in at91_mux_set_deglitch() argument 515 writel_relaxed(mask, pio + (is_on ? PIO_IFER : PIO_IFDR)); in at91_mux_set_deglitch() 526 static void at91_mux_pio3_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) in at91_mux_pio3_set_deglitch() argument 528 if (is_on) in at91_mux_pio3_set_deglitch() 530 at91_mux_set_deglitch(pio, mask, is_on); in at91_mux_pio3_set_deglitch() [all …]
|
/linux/include/linux/usb/ |
H A D | sl811.h | 20 void (*port_power)(struct device *dev, int is_on);
|
H A D | musb.h | 88 int (*set_vbus)(struct device *dev, int is_on);
|
/linux/include/linux/spi/ |
H A D | spi_bitbang.h | 23 void (*chipselect)(struct spi_device *spi, int is_on);
|
/linux/drivers/clk/davinci/ |
H A D | psc.c | 240 bool is_on; in davinci_lpsc_clk_register() local 284 is_on = davinci_lpsc_clk_is_enabled(&lpsc->hw); in davinci_lpsc_clk_register() 285 pm_genpd_init(&lpsc->pm_domain, NULL, is_on); in davinci_lpsc_clk_register()
|
/linux/drivers/usb/gadget/udc/bdc/ |
H A D | bdc_udc.c | 412 static int bdc_udc_pullup(struct usb_gadget *gadget, int is_on) in bdc_udc_pullup() argument 418 dev_dbg(bdc->dev, "%s() is_on:%d\n", __func__, is_on); in bdc_udc_pullup() 423 if (!is_on) { in bdc_udc_pullup()
|
/linux/drivers/interconnect/qcom/ |
H A D | icc-rpm.h | 69 bool is_on; member
|
/linux/drivers/usb/gadget/udc/ |
H A D | at91_udc.h | 108 void (*pullup)(struct at91_udc *udc, int is_on);
|
H A D | atmel_usba_udc.h | 312 void (*toggle_bias)(struct usba_udc *udc, int is_on);
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_phy.c | 1297 bool is_on = param ? 1 : 0; in ar9003_hw_ani_control() local 1303 AR_PHY_MRC_CCK_ENABLE, is_on); in ar9003_hw_ani_control() 1305 AR_PHY_MRC_CCK_MUX_REG, is_on); in ar9003_hw_ani_control() 1306 if (is_on != aniState->mrcCCK) { in ar9003_hw_ani_control() 1310 is_on ? "on" : "off"); in ar9003_hw_ani_control() 1311 if (is_on) in ar9003_hw_ani_control() 1315 aniState->mrcCCK = is_on; in ar9003_hw_ani_control()
|
/linux/drivers/usb/musb/ |
H A D | musb_core.h | 512 static inline void musb_platform_set_vbus(struct musb *musb, int is_on) in musb_platform_set_vbus() argument 515 musb->ops->set_vbus(musb, is_on); in musb_platform_set_vbus()
|
/linux/drivers/usb/dwc3/ |
H A D | gadget.c | 2629 static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on) in dwc3_gadget_run_stop() argument 2638 if (is_on) { in dwc3_gadget_run_stop() 2662 } while (--timeout && !(!is_on ^ !reg)); in dwc3_gadget_run_stop() 2765 static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on) in dwc3_gadget_pullup() argument 2770 is_on = !!is_on; in dwc3_gadget_pullup() 2772 dwc->softconnect = is_on; in dwc3_gadget_pullup() 2779 if (!is_on) { in dwc3_gadget_pullup() 2798 if (dwc->pullups_connected == is_on) { in dwc3_gadget_pullup() 2805 if (!is_on) in dwc3_gadget_pullup()
|