/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()
|
/linux/drivers/power/supply/ |
H 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()
|
/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_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()
|
H 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()
|
/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 1630 at91rm9200_udc_pullup(struct at91_udc * udc,int is_on) at91rm9200_udc_pullup() argument 1661 at91sam9260_udc_pullup(struct at91_udc * udc,int is_on) at91sam9260_udc_pullup() argument 1704 at91sam9261_udc_pullup(struct at91_udc * udc,int is_on) at91sam9261_udc_pullup() argument [all...] |
H A D | at91_udc.h | 108 void (*pullup)(struct at91_udc *udc, int is_on);
|
/linux/drivers/misc/eeprom/ |
H 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()
|
/linux/drivers/pmdomain/rockchip/ |
H A D | pm-domains.c | 522 bool is_on; in rockchip_pmu_domain_mem_reset() local 525 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_chain_on, pd, is_on, in rockchip_pmu_domain_mem_reset() 526 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset() 530 genpd->name, is_on); in rockchip_pmu_domain_mem_reset() 540 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, 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() 553 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, 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; rockchip_do_pmu_set_power_domain() local [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() 542 at91_mux_pio3_set_debounce(void __iomem * pio,unsigned mask,bool is_on,u32 div) at91_mux_pio3_set_debounce() argument 557 at91_mux_pio3_set_pulldown(void __iomem * pio,unsigned mask,bool is_on) at91_mux_pio3_set_pulldown() argument [all...] |
/linux/include/linux/usb/ |
H A D | sl811.h | 20 void (*port_power)(struct device *dev, int is_on); 27 /* void (*clock_enable)(struct device *dev, int is_on); */
|
H A D | musb.h | 88 int (*set_vbus)(struct device *dev, int is_on);
|
/linux/drivers/usb/musb/ |
H 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()
|
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()
|
/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 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/interconnect/qcom/ |
H A D | icc-rpm.h | 54 * @is_on: whether the bus is powered on 69 bool is_on; member
|
/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/remoteproc/ |
H A D | ti_k3_m4_remoteproc.c | 101 ret = kproc->ti_sci->ops.dev_ops.is_on(kproc->ti_sci, kproc->ti_sci_id, in k3_m4_rproc_probe()
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_phy.c | 1294 * 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()
|