Home
last modified time | relevance | path

Searched refs:is_on (Results 1 – 25 of 70) sorted by relevance

123

/linux-6.6.21/drivers/pmdomain/starfive/
Djh71xx-pmu.c75 static int jh71xx_pmu_get_state(struct jh71xx_pmu_dev *pmd, u32 mask, bool *is_on) in jh71xx_pmu_get_state() argument
82 *is_on = readl(pmu->base + JH71XX_PMU_CURR_POWER_MODE) & mask; in jh71xx_pmu_get_state()
95 bool is_on; in jh71xx_pmu_set_state() local
98 ret = jh71xx_pmu_get_state(pmd, mask, &is_on); in jh71xx_pmu_set_state()
105 if (is_on == on) { in jh71xx_pmu_set_state()
234 bool is_on = false; in jh71xx_pmu_init_domain() local
247 ret = jh71xx_pmu_get_state(pmd, pwr_mask, &is_on); in jh71xx_pmu_init_domain()
254 pm_genpd_init(&pmd->genpd, NULL, !is_on); in jh71xx_pmu_init_domain()
/linux-6.6.21/drivers/pmdomain/bcm/
Dbcm63xx-power.c38 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-6.6.21/drivers/spi/
Dspi-lp8841-rtc.c40 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()
Dspi-butterfly.c67 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()
Dspi-lm70llp.c133 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
Dspi-gpio.c86 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()
Dspi-xtensa-xtfpga.c72 static void xtfpga_spi_chipselect(struct spi_device *spi, int is_on) in xtfpga_spi_chipselect() argument
/linux-6.6.21/drivers/power/supply/
Dda9030_battery.c110 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-6.6.21/drivers/usb/mtu3/
Dmtu3_dr.h97 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
Dmtu3_gadget.c487 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()
Dmtu3_dr.c102 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()
/linux-6.6.21/drivers/usb/gadget/udc/
Dat91_udc.c922 static void pullup(struct at91_udc *udc, int is_on) in pullup() argument
925 is_on = 0; in pullup()
926 DBG("%sactive\n", is_on ? "" : "in"); in pullup()
928 if (is_on) { in pullup()
940 udc->caps->pullup(udc, is_on); in pullup()
960 static int at91_pullup(struct usb_gadget *gadget, int is_on) in at91_pullup() argument
966 udc->enabled = is_on = !!is_on; in at91_pullup()
967 pullup(udc, is_on); in at91_pullup()
972 static int at91_set_selfpowered(struct usb_gadget *gadget, int is_on) in at91_set_selfpowered() argument
978 gadget->is_selfpowered = (is_on != 0); in at91_set_selfpowered()
[all …]
Dat91_udc.h108 void (*pullup)(struct at91_udc *udc, int is_on);
/linux-6.6.21/drivers/pmdomain/rockchip/
Dpm-domains.c446 bool is_on; in rockchip_pmu_domain_mem_reset() local
449 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_chain_on, pd, is_on, in rockchip_pmu_domain_mem_reset()
450 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset()
454 genpd->name, is_on); in rockchip_pmu_domain_mem_reset()
464 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, is_on, in rockchip_pmu_domain_mem_reset()
465 is_on == false, 0, 10000); in rockchip_pmu_domain_mem_reset()
469 genpd->name, is_on); in rockchip_pmu_domain_mem_reset()
477 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, is_on, in rockchip_pmu_domain_mem_reset()
478 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset()
482 genpd->name, is_on); in rockchip_pmu_domain_mem_reset()
[all …]
/linux-6.6.21/drivers/pinctrl/
Dpinctrl-at91.c197 void (*set_deglitch)(void __iomem *pio, unsigned mask, bool is_on);
199 void (*set_debounce)(void __iomem *pio, unsigned mask, bool is_on, u32 div);
201 void (*set_pulldown)(void __iomem *pio, unsigned mask, bool is_on);
429 bool is_on, bool val) in at91_mux_set_output() argument
432 writel_relaxed(mask, pio + (is_on ? PIO_OER : PIO_ODR)); in at91_mux_set_output()
514 static void at91_mux_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) in at91_mux_set_deglitch() argument
516 writel_relaxed(mask, pio + (is_on ? PIO_IFER : PIO_IFDR)); in at91_mux_set_deglitch()
527 static void at91_mux_pio3_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) in at91_mux_pio3_set_deglitch() argument
529 if (is_on) in at91_mux_pio3_set_deglitch()
531 at91_mux_set_deglitch(pio, mask, is_on); in at91_mux_pio3_set_deglitch()
[all …]
/linux-6.6.21/drivers/misc/eeprom/
Deeprom_93xx46.c165 static int eeprom_93xx46_ew(struct eeprom_93xx46_dev *edev, int is_on) in eeprom_93xx46_ew() argument
177 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS) << 1; in eeprom_93xx46_ew()
179 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS); in eeprom_93xx46_ew()
187 is_on ? "en" : "ds", cmd_addr, bits); in eeprom_93xx46_ew()
207 is_on ? "en" : "dis", ret); in eeprom_93xx46_ew()
/linux-6.6.21/include/linux/usb/
Dsl811.h20 void (*port_power)(struct device *dev, int is_on);
Dmusb.h88 int (*set_vbus)(struct device *dev, int is_on);
/linux-6.6.21/drivers/usb/musb/
Dux500.c34 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()
Dmpfs.c76 static void mpfs_musb_set_vbus(struct musb *musb, int is_on) in mpfs_musb_set_vbus() argument
87 if (is_on) { in mpfs_musb_set_vbus()
Dmusb_gadget.c1598 static void musb_pullup(struct musb *musb, int is_on) in musb_pullup() argument
1603 if (is_on) in musb_pullup()
1611 is_on ? "on" : "off"); in musb_pullup()
1650 static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on) in musb_gadget_pullup() argument
1655 is_on = !!is_on; in musb_gadget_pullup()
1661 if (is_on != musb->softconnect) { in musb_gadget_pullup()
1662 musb->softconnect = is_on; in musb_gadget_pullup()
/linux-6.6.21/include/linux/spi/
Dspi_bitbang.h21 void (*chipselect)(struct spi_device *spi, int is_on);
/linux-6.6.21/drivers/interconnect/qcom/
Dicc-rpm.h65 bool is_on; member
/linux-6.6.21/drivers/clk/davinci/
Dpsc.c241 bool is_on; in davinci_lpsc_clk_register() local
285 is_on = davinci_lpsc_clk_is_enabled(&lpsc->hw); in davinci_lpsc_clk_register()
286 pm_genpd_init(&lpsc->pm_domain, NULL, is_on); in davinci_lpsc_clk_register()
/linux-6.6.21/drivers/usb/gadget/udc/bdc/
Dbdc_udc.c412 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()

123