Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/u-boot/drivers/pinctrl/
H A Dpinctrl-at91.c86 void (*set_deglitch)(struct at91_port *pio, u32 mask, bool is_on);
87 void (*set_debounce)(struct at91_port *pio, u32 mask, bool is_on,
89 void (*set_pulldown)(struct at91_port *pio, u32 mask, bool is_on);
117 bool is_on, bool val) in at91_mux_set_output() argument
120 writel(mask, (is_on ? &pio->oer : &pio->odr)); in at91_mux_set_output()
162 static void at91_mux_set_deglitch(struct at91_port *pio, u32 mask, bool is_on) in at91_mux_set_deglitch() argument
164 writel(mask, (is_on ? &pio->ifer : &pio->ifdr)); in at91_mux_set_deglitch()
168 u32 mask, bool is_on) in at91_mux_pio3_set_deglitch() argument
170 if (is_on) in at91_mux_pio3_set_deglitch()
172 at91_mux_set_deglitch(pio, mask, is_on); in at91_mux_pio3_set_deglitch()
[all …]
/OK3568_Linux_fs/u-boot/drivers/gpio/
H A Dat91_gpio.c284 int at91_set_pio_deglitch(unsigned port, unsigned pin, int is_on) in at91_set_pio_deglitch() argument
291 if (is_on) in at91_set_pio_deglitch()
303 int at91_pio3_set_pio_deglitch(unsigned port, unsigned pin, int is_on) in at91_pio3_set_pio_deglitch() argument
310 if (is_on) { in at91_pio3_set_pio_deglitch()
324 int at91_pio3_set_pio_debounce(unsigned port, unsigned pin, int is_on, int div) in at91_pio3_set_pio_debounce() argument
331 if (is_on) { in at91_pio3_set_pio_debounce()
347 int at91_pio3_set_pio_pulldown(unsigned port, unsigned pin, int is_on) in at91_pio3_set_pio_pulldown() argument
354 if (is_on) { in at91_pio3_set_pio_pulldown()
398 int at91_set_pio_multi_drive(unsigned port, unsigned pin, int is_on) in at91_set_pio_multi_drive() argument
405 if (is_on) in at91_set_pio_multi_drive()
/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A Ddavinci.c150 static void davinci_musb_source_power(struct musb *musb, int is_on, in davinci_musb_source_power() argument
159 if (is_on) in davinci_musb_source_power()
160 is_on = 1; in davinci_musb_source_power()
162 if (glue->vbus_state == is_on) in davinci_musb_source_power()
165 glue->vbus_state = !is_on; in davinci_musb_source_power()
174 glue->vbus_state = is_on; in davinci_musb_source_power()
177 static void davinci_musb_set_vbus(struct musb *musb, int is_on) in davinci_musb_set_vbus() argument
179 WARN_ON(is_on && is_peripheral_active(musb)); in davinci_musb_set_vbus()
180 davinci_musb_source_power(musb, is_on, 0); in davinci_musb_set_vbus()
H A 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()
/OK3568_Linux_fs/kernel/drivers/soc/bcm/bcm63xx/
H A Dbcm63xx-power.c39 static int bcm63xx_power_get_state(struct bcm63xx_power_dev *pmd, bool *is_on) in bcm63xx_power_get_state() argument
44 *is_on = false; in bcm63xx_power_get_state()
48 *is_on = !(__raw_readl(power->base) & pmd->mask); in bcm63xx_power_get_state()
143 bool is_on; in bcm63xx_power_probe() local
150 ret = bcm63xx_power_get_state(pmd, &is_on); in bcm63xx_power_probe()
158 pm_genpd_init(&pmd->genpd, NULL, !is_on); in bcm63xx_power_probe()
/OK3568_Linux_fs/u-boot/arch/arm/mach-at91/include/mach/
H A Dat91_pio.h134 int at91_set_pio_multi_drive(unsigned port, unsigned pin, int is_on);
138 int at91_set_pio_deglitch(unsigned port, unsigned pin, int is_on);
146 int at91_pio3_set_pio_debounce(unsigned port, unsigned pin, int is_on, int div);
148 int at91_pio3_set_pio_pulldown(unsigned port, unsigned pin, int is_on);
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A 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()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-lp8841-rtc.c41 setsck(struct spi_lp8841_rtc *data, int is_on) in setsck() argument
43 if (is_on) in setsck()
51 setmosi(struct spi_lp8841_rtc *data, int is_on) in setmosi() argument
53 if (is_on) in setmosi()
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-gpio.c87 static inline void setsck(const struct spi_device *spi, int is_on) in setsck() argument
91 gpiod_set_value_cansleep(spi_gpio->sck, is_on); in setsck()
94 static inline void setmosi(const struct spi_device *spi, int is_on) in setmosi() argument
98 gpiod_set_value_cansleep(spi_gpio->mosi, 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
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Dat91_udc.c724 static void pullup(struct at91_udc *udc, int is_on) in pullup() argument
727 is_on = 0; in pullup()
728 DBG("%sactive\n", is_on ? "" : "in"); in pullup()
730 if (is_on) { in pullup()
742 udc->caps->pullup(udc, is_on); in pullup()
762 static int at91_pullup(struct usb_gadget *gadget, int is_on) in at91_pullup() argument
768 udc->enabled = is_on = !!is_on; in at91_pullup()
769 pullup(udc, is_on); in at91_pullup()
774 static int at91_set_selfpowered(struct usb_gadget *gadget, int is_on) in at91_set_selfpowered() argument
780 udc->selfpowered = (is_on != 0); in at91_set_selfpowered()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/
H A Dat91_udc.c920 static void pullup(struct at91_udc *udc, int is_on) in pullup() argument
923 is_on = 0; in pullup()
924 DBG("%sactive\n", is_on ? "" : "in"); in pullup()
926 if (is_on) { in pullup()
938 udc->caps->pullup(udc, is_on); in pullup()
958 static int at91_pullup(struct usb_gadget *gadget, int is_on) in at91_pullup() argument
964 udc->enabled = is_on = !!is_on; in at91_pullup()
965 pullup(udc, is_on); in at91_pullup()
970 static int at91_set_selfpowered(struct usb_gadget *gadget, int is_on) in at91_set_selfpowered() argument
976 gadget->is_selfpowered = (is_on != 0); in at91_set_selfpowered()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/mtu3/
H A Dmtu3_gadget.c470 static int mtu3_gadget_pullup(struct usb_gadget *gadget, int is_on) in mtu3_gadget_pullup() argument
476 is_on ? "on" : "off", mtu->is_active ? "" : "in"); in mtu3_gadget_pullup()
481 is_on = !!is_on; in mtu3_gadget_pullup()
484 mtu->softconnect = is_on; in mtu3_gadget_pullup()
485 } else if (is_on != mtu->softconnect) { in mtu3_gadget_pullup()
486 mtu->softconnect = is_on; in mtu3_gadget_pullup()
487 mtu3_dev_on_off(mtu, is_on); in mtu3_gadget_pullup()
H A Dmtu3_dr.h75 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on);
92 static inline int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus() argument
H A Dmtu3_dr.c122 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus() argument
133 dev_dbg(ssusb->dev, "%s: turn %s\n", __func__, is_on ? "on" : "off"); in ssusb_set_vbus()
135 if (is_on) { in ssusb_set_vbus()
/OK3568_Linux_fs/kernel/drivers/misc/eeprom/
H A Deeprom_93xx46.c148 static int eeprom_93xx46_ew(struct eeprom_93xx46_dev *edev, int is_on) in eeprom_93xx46_ew() argument
157 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS) << 1; in eeprom_93xx46_ew()
160 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS); in eeprom_93xx46_ew()
170 is_on ? "en" : "ds", cmd_addr, bits); in eeprom_93xx46_ew()
190 is_on ? "en" : "dis", ret); in eeprom_93xx46_ew()
/OK3568_Linux_fs/kernel/drivers/pinctrl/
H A Dpinctrl-at91.c177 void (*set_deglitch)(void __iomem *pio, unsigned mask, bool is_on);
179 void (*set_debounce)(void __iomem *pio, unsigned mask, bool is_on, u32 div);
181 void (*set_pulldown)(void __iomem *pio, unsigned mask, bool is_on);
409 bool is_on, bool val) in at91_mux_set_output() argument
412 writel_relaxed(mask, pio + (is_on ? PIO_OER : PIO_ODR)); in at91_mux_set_output()
494 static void at91_mux_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) in at91_mux_set_deglitch() argument
496 writel_relaxed(mask, pio + (is_on ? PIO_IFER : PIO_IFDR)); in at91_mux_set_deglitch()
507 static void at91_mux_pio3_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) in at91_mux_pio3_set_deglitch() argument
509 if (is_on) in at91_mux_pio3_set_deglitch()
511 at91_mux_set_deglitch(pio, mask, is_on); in at91_mux_pio3_set_deglitch()
[all …]
/OK3568_Linux_fs/kernel/drivers/soc/rockchip/
H A Dpm_domains.c624 bool is_on; in rockchip_pmu_domain_mem_reset() local
627 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_chain_on, pd, is_on, in rockchip_pmu_domain_mem_reset()
628 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset()
632 genpd->name, is_on); in rockchip_pmu_domain_mem_reset()
642 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, is_on, in rockchip_pmu_domain_mem_reset()
643 is_on == false, 0, 10000); in rockchip_pmu_domain_mem_reset()
647 genpd->name, is_on); in rockchip_pmu_domain_mem_reset()
655 ret = readx_poll_timeout_atomic(rockchip_pmu_domain_is_mem_on, pd, is_on, in rockchip_pmu_domain_mem_reset()
656 is_on == true, 0, 10000); in rockchip_pmu_domain_mem_reset()
660 genpd->name, is_on); in rockchip_pmu_domain_mem_reset()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/rf/halrf_8852b/
H A Dhalrf_8852b.c158 void halrf_set_lo_8852b(struct rf_info *rf, bool is_on, enum rf_path path) in halrf_set_lo_8852b() argument
160 if (is_on) { in halrf_set_lo_8852b()
191 void halrf_lo_test_8852b(struct rf_info *rf, bool is_on, enum rf_path path) in halrf_lo_test_8852b() argument
195 halrf_set_lo_8852b(rf, is_on, RF_PATH_A); in halrf_lo_test_8852b()
200 halrf_set_lo_8852b(rf, is_on, RF_PATH_B); in halrf_lo_test_8852b()
203 halrf_set_lo_8852b(rf, is_on, RF_PATH_A); in halrf_lo_test_8852b()
204 halrf_set_lo_8852b(rf, is_on, RF_PATH_B); in halrf_lo_test_8852b()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/rf/halrf_8852b/
H A Dhalrf_8852b.c158 void halrf_set_lo_8852b(struct rf_info *rf, bool is_on, enum rf_path path) in halrf_set_lo_8852b() argument
160 if (is_on) { in halrf_set_lo_8852b()
191 void halrf_lo_test_8852b(struct rf_info *rf, bool is_on, enum rf_path path) in halrf_lo_test_8852b() argument
195 halrf_set_lo_8852b(rf, is_on, RF_PATH_A); in halrf_lo_test_8852b()
200 halrf_set_lo_8852b(rf, is_on, RF_PATH_B); in halrf_lo_test_8852b()
203 halrf_set_lo_8852b(rf, is_on, RF_PATH_A); in halrf_lo_test_8852b()
204 halrf_set_lo_8852b(rf, is_on, RF_PATH_B); in halrf_lo_test_8852b()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/platform/
H A Dplatform_aml_s905_sdio.h21 extern void extern_wifi_set_enable(int is_on);
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/platform/
H A Dplatform_aml_s905_sdio.h21 extern void extern_wifi_set_enable(int is_on);
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/platform/
H A Dplatform_aml_s905_sdio.h21 extern void extern_wifi_set_enable(int is_on);
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/platform/
H A Dplatform_aml_s905_sdio.h22 extern void extern_wifi_set_enable(int is_on);

12345