| /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/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 | 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()
|
| H 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()
|
| /linux/drivers/usb/gadget/udc/ |
| H 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() 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 D | at91_udc.h | 108 void (*pullup)(struct at91_udc *udc, int is_on);
|
| H A D | lpc32xx_udc.c | 1549 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 D | atmel_usba_udc.h | 312 void (*toggle_bias)(struct usba_udc *udc, int is_on);
|
| /linux/drivers/usb/mtu3/ |
| 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_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()
|
| /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);
|
| /linux/include/linux/spi/ |
| H A D | spi_bitbang.h | 23 void (*chipselect)(struct spi_device *spi, int is_on);
|
| /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/musb/ |
| H A D | musb_gadget.c | 1596 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 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()
|
| 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()
|
| H A D | da8xx.c | 117 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 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/net/can/dev/ |
| H A D | netlink.c | 176 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()
|
| /linux/drivers/usb/dwc3/ |
| H A D | gadget.c | 2617 static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on) in dwc3_gadget_run_stop() argument 2654 if (is_on) { in dwc3_gadget_run_stop() 2672 dwc3_pre_run_stop(dwc, is_on); in dwc3_gadget_run_stop() 2679 } while (--timeout && !(!is_on ^ !reg)); in dwc3_gadget_run_stop() 2790 static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on) in dwc3_gadget_pullup() argument 2795 is_on = !!is_on; in dwc3_gadget_pullup() 2797 dwc->softconnect = is_on; in dwc3_gadget_pullup() 2804 if (!is_on) { in dwc3_gadget_pullup() 2823 if (dwc->pullups_connected == is_on) { in dwc3_gadget_pullup() 2830 if (!is_on) in dwc3_gadget_pullup()
|