Home
last modified time | relevance | path

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

123

/linux/drivers/pmdomain/starfive/
H A Djh71xx-pmu.c85 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 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/drivers/spi/
H A 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()
H A 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
/linux/drivers/usb/mtu3/
H A Dmtu3_gadget.c488 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()
H A 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
H A Dmtu3_core.c342 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()
/linux/drivers/usb/gadget/udc/
H A Dat91_udc.c923 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()
961 static int at91_pullup(struct usb_gadget *gadget, int is_on) in at91_pullup() argument
967 udc->enabled = is_on = !!is_on; in at91_pullup()
968 pullup(udc, is_on); in at91_pullup()
973 static int at91_set_selfpowered(struct usb_gadget *gadget, int is_on) in at91_set_selfpowered() argument
979 gadget->is_selfpowered = (is_on != 0); in at91_set_selfpowered()
[all …]
H A Dat91_udc.h108 void (*pullup)(struct at91_udc *udc, int is_on);
H A Dlpc32xx_udc.c1549 static void pullup(struct lpc32xx_udc *udc, int is_on) in pullup() argument
1555 is_on = 0; in pullup()
1557 if (is_on != udc->pullup) in pullup()
1558 isp1301_pullup_enable(udc, is_on, 0); in pullup()
2423 static int lpc32xx_set_selfpowered(struct usb_gadget *gadget, int is_on) in lpc32xx_set_selfpowered() argument
2425 gadget->is_selfpowered = (is_on != 0); in lpc32xx_set_selfpowered()
2471 static int lpc32xx_pullup(struct usb_gadget *gadget, int is_on) in lpc32xx_pullup() argument
2476 pullup(udc, is_on); in lpc32xx_pullup()
H A Datmel_usba_udc.c388 static void toggle_bias(struct usba_udc *udc, int is_on) in toggle_bias() argument
391 udc->errata->toggle_bias(udc, is_on); in toggle_bias()
1032 static int atmel_usba_pullup(struct usb_gadget *gadget, int is_on);
1966 static int atmel_usba_pullup(struct usb_gadget *gadget, int is_on) in atmel_usba_pullup() argument
1974 if (is_on) in atmel_usba_pullup()
2040 static void at91sam9rl_toggle_bias(struct usba_udc *udc, int is_on) in at91sam9rl_toggle_bias() argument
2043 is_on ? AT91_PMC_BIASEN : 0); in at91sam9rl_toggle_bias()
H A Datmel_usba_udc.h312 void (*toggle_bias)(struct usba_udc *udc, int is_on);
H A Dbcm63xx_udc.c908 static void bcm63xx_select_pullup(struct bcm63xx_udc *udc, bool is_on) in bcm63xx_select_pullup() argument
913 if (is_on) in bcm63xx_select_pullup()
1762 static int bcm63xx_udc_pullup(struct usb_gadget *gadget, int is_on) in bcm63xx_udc_pullup() argument
1769 if (is_on && udc->ep0state == EP0_SHUTDOWN) { in bcm63xx_udc_pullup()
1783 } else if (!is_on && udc->ep0state != EP0_SHUTDOWN) { in bcm63xx_udc_pullup()
/linux/drivers/pinctrl/
H A Dpinctrl-at91.c196 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/drivers/pmdomain/rockchip/
H A Dpm-domains.c540 bool is_on; in rockchip_pmu_domain_mem_reset() local
543 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_chain_on, pd, is_on, in rockchip_pmu_domain_mem_reset()
544 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset()
548 genpd->name, is_on); in rockchip_pmu_domain_mem_reset()
558 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, is_on, in rockchip_pmu_domain_mem_reset()
559 is_on == false, 0, 10000); in rockchip_pmu_domain_mem_reset()
563 genpd->name, is_on); in rockchip_pmu_domain_mem_reset()
571 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, is_on, in rockchip_pmu_domain_mem_reset()
572 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset()
576 genpd->name, is_on); in rockchip_pmu_domain_mem_reset()
[all …]
/linux/include/linux/usb/
H A Dsl811.h20 void (*port_power)(struct device *dev, int is_on);
/linux/include/linux/spi/
H A Dspi_bitbang.h23 void (*chipselect)(struct spi_device *spi, int is_on);
/linux/drivers/clk/davinci/
H A Dpsc.c240 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()
/linux/drivers/usb/gadget/udc/bdc/
H A 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()
/linux/drivers/usb/musb/
H A Dmusb_gadget.c1596 static void musb_pullup(struct musb *musb, int is_on) in musb_pullup() argument
1601 if (is_on) in musb_pullup()
1609 str_on_off(is_on)); in musb_pullup()
1647 static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on) in musb_gadget_pullup() argument
1652 is_on = !!is_on; in musb_gadget_pullup()
1658 if (is_on != musb->softconnect) { in musb_gadget_pullup()
1659 musb->softconnect = is_on; in musb_gadget_pullup()
H A Dmpfs.c52 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()
H A Dmusb_core.h512 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()
H A Dda8xx.c117 static void da8xx_musb_set_vbus(struct musb *musb, int is_on) in da8xx_musb_set_vbus() argument
119 WARN_ON(is_on && is_peripheral_active(musb)); in da8xx_musb_set_vbus()
/linux/drivers/net/wireless/ath/ath9k/
H A Dar9003_phy.c1294 * is_on == 1 means MRC CCK ON (default, less noise imm) in ar9003_hw_ani_control()
1295 * is_on == 0 means MRC CCK is OFF (more noise imm) in ar9003_hw_ani_control()
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/net/can/dev/
H A Dnetlink.c176 bool is_on; in can_validate_databittiming() local
189 is_on = flags & CAN_CTRLMODE_FD; in can_validate_databittiming()
194 is_on = flags & CAN_CTRLMODE_XL; in can_validate_databittiming()
198 if (is_on) { in can_validate_databittiming()

123