| /drivers/pmdomain/starfive/ |
| 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()
|
| /drivers/pmdomain/bcm/ |
| 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()
|
| /drivers/power/supply/ |
| A D | da9030_battery.c | 111 bool is_on; member 142 seq_printf(s, "charger is %s\n", str_on_off(charger->is_on)); in bat_debug_show() 211 charger->is_on = (val & DA9030_CHRG_CHARGER_ENABLE) ? 1 : 0; in da9030_charger_update_state() 229 charger->is_on = 1; in da9030_set_charge() 232 charger->is_on = 0; in da9030_set_charge() 245 if (!charger->is_on) { in da9030_charger_check_state() 309 if (charger->is_on) in da9030_battery_check_status() 372 if (charger->is_on) in da9030_battery_vbat_event()
|
| /drivers/spi/ |
| 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()
|
| 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()
|
| 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
|
| A D | spi-gpio.c | 58 static inline void setsck(const struct spi_device *spi, int is_on) in setsck() argument 62 gpiod_set_value_cansleep(spi_gpio->sck, is_on); in setsck() 65 static inline void setmosi(const struct spi_device *spi, int is_on) in setmosi() argument 69 gpiod_set_value_cansleep(spi_gpio->mosi, is_on); in setmosi()
|
| A D | spi-xilinx.c | 186 static void xilinx_spi_chipselect(struct spi_device *spi, int is_on) in xilinx_spi_chipselect() argument 192 if (is_on == BITBANG_CS_INACTIVE) { in xilinx_spi_chipselect()
|
| A D | spi-xtensa-xtfpga.c | 72 static void xtfpga_spi_chipselect(struct spi_device *spi, int is_on) in xtfpga_spi_chipselect() argument
|
| /drivers/usb/gadget/udc/ |
| A D | at91_udc.c | 923 static void pullup(struct at91_udc *udc, int is_on) in pullup() argument 926 is_on = 0; in pullup() 927 DBG("%sactive\n", is_on ? "" : "in"); in pullup() 929 if (is_on) { in pullup() 941 udc->caps->pullup(udc, is_on); in pullup() 967 udc->enabled = is_on = !!is_on; in at91_pullup() 968 pullup(udc, is_on); in at91_pullup() 979 gadget->is_selfpowered = (is_on != 0); in at91_set_selfpowered() 1632 gpiod_set_value(udc->board.pullup_pin, is_on); in at91rm9200_udc_pullup() 1665 if (is_on) in at91sam9260_udc_pullup() [all …]
|
| A D | at91_udc.h | 108 void (*pullup)(struct at91_udc *udc, int is_on);
|
| /drivers/usb/mtu3/ |
| A D | mtu3_gadget.c | 488 static int mtu3_gadget_pullup(struct usb_gadget *gadget, int is_on) in mtu3_gadget_pullup() argument 494 str_on_off(is_on), mtu->is_active ? "" : "in"); in mtu3_gadget_pullup() 501 is_on = !!is_on; in mtu3_gadget_pullup() 504 mtu->softconnect = is_on; in mtu3_gadget_pullup() 505 } else if (is_on != mtu->softconnect) { in mtu3_gadget_pullup() 506 mtu->softconnect = is_on; in mtu3_gadget_pullup() 507 mtu3_dev_on_off(mtu, is_on); in mtu3_gadget_pullup()
|
| 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
|
| A D | mtu3_dr.c | 103 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus() argument 113 dev_dbg(ssusb->dev, "%s: turn %s\n", __func__, str_on_off(is_on)); in ssusb_set_vbus() 115 if (is_on) { in ssusb_set_vbus()
|
| /drivers/pmdomain/rockchip/ |
| A D | pm-domains.c | 522 bool is_on; in rockchip_pmu_domain_mem_reset() local 526 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset() 530 genpd->name, is_on); in rockchip_pmu_domain_mem_reset() 541 is_on == false, 0, 10000); in rockchip_pmu_domain_mem_reset() 545 genpd->name, is_on); in rockchip_pmu_domain_mem_reset() 554 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset() 558 genpd->name, is_on); in rockchip_pmu_domain_mem_reset() 571 bool is_on, is_mem_on = false; in rockchip_do_pmu_set_power_domain() local 598 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_on, pd, is_on, in rockchip_do_pmu_set_power_domain() 599 is_on == on, 0, 10000); in rockchip_do_pmu_set_power_domain() [all …]
|
| /drivers/pinctrl/ |
| A D | pinctrl-at91.c | 196 void (*set_deglitch)(void __iomem *pio, unsigned mask, bool is_on); 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() 515 writel_relaxed(mask, pio + (is_on ? PIO_IFER : PIO_IFDR)); in at91_mux_set_deglitch() 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() 542 bool is_on, u32 div) in at91_mux_pio3_set_debounce() argument 544 if (is_on) { in at91_mux_pio3_set_debounce() 559 if (is_on) in at91_mux_pio3_set_pulldown() [all …]
|
| /drivers/misc/eeprom/ |
| A D | eeprom_93xx46.c | 183 static int eeprom_93xx46_ew(struct eeprom_93xx46_dev *edev, int is_on) in eeprom_93xx46_ew() argument 195 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS) << 1; in eeprom_93xx46_ew() 197 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS); in eeprom_93xx46_ew() 205 str_enable_disable(is_on), cmd_addr, bits); in eeprom_93xx46_ew() 222 str_enable_disable(is_on), ret); in eeprom_93xx46_ew()
|
| /drivers/usb/musb/ |
| A D | ux500.c | 34 static void ux500_musb_set_vbus(struct musb *musb, int is_on) in ux500_musb_set_vbus() argument 45 if (is_on) { in ux500_musb_set_vbus() 86 if (!is_on) in ux500_musb_set_vbus()
|
| A D | musb_gadget.c | 1597 static void musb_pullup(struct musb *musb, int is_on) in musb_pullup() argument 1602 if (is_on) in musb_pullup() 1610 str_on_off(is_on)); in musb_pullup() 1649 static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on) in musb_gadget_pullup() argument 1654 is_on = !!is_on; in musb_gadget_pullup() 1660 if (is_on != musb->softconnect) { in musb_gadget_pullup() 1661 musb->softconnect = is_on; in musb_gadget_pullup()
|
| A D | mpfs.c | 52 static void mpfs_musb_set_vbus(struct musb *musb, int is_on) in mpfs_musb_set_vbus() argument 63 if (is_on) { in mpfs_musb_set_vbus()
|
| 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()
|
| /drivers/clk/davinci/ |
| A D | psc.c | 240 bool is_on; in davinci_lpsc_clk_register() local 289 is_on = davinci_lpsc_clk_is_enabled(&lpsc->hw); in davinci_lpsc_clk_register() 290 pm_genpd_init(&lpsc->pm_domain, NULL, is_on); in davinci_lpsc_clk_register()
|
| /drivers/usb/gadget/udc/bdc/ |
| 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()
|
| /drivers/interconnect/qcom/ |
| A D | icc-rpm.h | 69 bool is_on; member
|
| /drivers/net/wireless/ath/ath9k/ |
| 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()
|