/linux-4.4.14/drivers/usb/musb/ |
D | davinci.c | 171 static void davinci_musb_source_power(struct musb *musb, int is_on, int immediate) in davinci_musb_source_power() argument 174 if (is_on) in davinci_musb_source_power() 175 is_on = 1; in davinci_musb_source_power() 177 if (vbus_state == is_on) in davinci_musb_source_power() 179 vbus_state = !is_on; /* 0/1 vs "-1 == unknown/init" */ in davinci_musb_source_power() 190 vbus_state = is_on; in davinci_musb_source_power() 194 static void davinci_musb_set_vbus(struct musb *musb, int is_on) in davinci_musb_set_vbus() argument 196 WARN_ON(is_on && is_peripheral_active(musb)); in davinci_musb_set_vbus() 197 davinci_musb_source_power(musb, is_on, 0); in davinci_musb_set_vbus()
|
D | ux500.c | 47 static void ux500_musb_set_vbus(struct musb *musb, int is_on) in ux500_musb_set_vbus() argument 58 if (is_on) { in ux500_musb_set_vbus() 101 if (!is_on) in ux500_musb_set_vbus()
|
D | musb_gadget.c | 1620 static void musb_pullup(struct musb *musb, int is_on) in musb_pullup() argument 1625 if (is_on) in musb_pullup() 1633 is_on ? "on" : "off"); in musb_pullup() 1660 static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on) in musb_gadget_pullup() argument 1665 is_on = !!is_on; in musb_gadget_pullup() 1673 if (is_on != musb->softconnect) { in musb_gadget_pullup() 1674 musb->softconnect = is_on; in musb_gadget_pullup() 1675 musb_pullup(musb, is_on); in musb_gadget_pullup()
|
D | musb_core.h | 538 static inline void musb_platform_set_vbus(struct musb *musb, int is_on) in musb_platform_set_vbus() argument 541 musb->ops->set_vbus(musb, is_on); in musb_platform_set_vbus()
|
D | da8xx.c | 179 static void da8xx_musb_set_vbus(struct musb *musb, int is_on) in da8xx_musb_set_vbus() argument 181 WARN_ON(is_on && is_peripheral_active(musb)); in da8xx_musb_set_vbus()
|
D | am35x.c | 130 static void am35x_musb_set_vbus(struct musb *musb, int is_on) in am35x_musb_set_vbus() argument 132 WARN_ON(is_on && is_peripheral_active(musb)); in am35x_musb_set_vbus()
|
D | blackfin.c | 336 static void bfin_musb_set_vbus(struct musb *musb, int is_on) in bfin_musb_set_vbus() argument 339 if (!is_on) in bfin_musb_set_vbus()
|
D | omap2430.c | 143 static void omap2430_musb_set_vbus(struct musb *musb, int is_on) in omap2430_musb_set_vbus() argument 155 if (is_on) { in omap2430_musb_set_vbus()
|
D | tusb6010.c | 38 static void tusb_musb_set_vbus(struct musb *musb, int is_on); 554 static void tusb_musb_set_vbus(struct musb *musb, int is_on) in tusb_musb_set_vbus() argument 570 if (is_on) { in tusb_musb_set_vbus()
|
D | sunxi.c | 144 static void sunxi_musb_set_vbus(struct musb *musb, int is_on) in sunxi_musb_set_vbus() argument 148 if (is_on) in sunxi_musb_set_vbus()
|
/linux-4.4.14/drivers/power/ |
D | da9030_battery.c | 113 bool is_on; member 144 seq_printf(s, "charger is %s\n", charger->is_on ? "on" : "off"); in bat_debug_show() 223 charger->is_on = (val & DA9030_CHRG_CHARGER_ENABLE) ? 1 : 0; in da9030_charger_update_state() 241 charger->is_on = 1; in da9030_set_charge() 244 charger->is_on = 0; in da9030_set_charge() 257 if (!charger->is_on) { in da9030_charger_check_state() 321 if (charger->is_on) in da9030_battery_check_status() 384 if (charger->is_on) in da9030_battery_vbat_event()
|
/linux-4.4.14/drivers/spi/ |
D | spi-butterfly.c | 81 setsck(struct spi_device *spi, int is_on) in setsck() argument 88 if (is_on) in setsck() 97 setmosi(struct spi_device *spi, int is_on) in setmosi() argument 104 if (is_on) in setmosi()
|
D | spi-lm70llp.c | 141 static inline void setsck(struct spi_device *s, int is_on) in setsck() argument 145 if (is_on) in setsck() 151 static inline void setmosi(struct spi_device *s, int is_on) in setmosi() argument
|
D | spi-gpio.c | 111 static inline void setsck(const struct spi_device *spi, int is_on) in setsck() argument 113 gpio_set_value_cansleep(SPI_SCK_GPIO, is_on); in setsck() 116 static inline void setmosi(const struct spi_device *spi, int is_on) in setmosi() argument 118 gpio_set_value_cansleep(SPI_MOSI_GPIO, is_on); in setmosi()
|
D | spi-xtensa-xtfpga.c | 75 static void xtfpga_spi_chipselect(struct spi_device *spi, int is_on) in xtfpga_spi_chipselect() argument
|
D | spi-xilinx.c | 188 static void xilinx_spi_chipselect(struct spi_device *spi, int is_on) in xilinx_spi_chipselect() argument 194 if (is_on == BITBANG_CS_INACTIVE) { in xilinx_spi_chipselect()
|
D | spi-efm32.c | 108 static void efm32_spi_chipselect(struct spi_device *spi, int is_on) in efm32_spi_chipselect() argument 111 int value = !(spi->mode & SPI_CS_HIGH) == !(is_on == BITBANG_CS_ACTIVE); in efm32_spi_chipselect()
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
D | at91_udc.c | 937 static void pullup(struct at91_udc *udc, int is_on) in pullup() argument 940 is_on = 0; in pullup() 941 DBG("%sactive\n", is_on ? "" : "in"); in pullup() 943 if (is_on) { in pullup() 955 udc->caps->pullup(udc, is_on); in pullup() 975 static int at91_pullup(struct usb_gadget *gadget, int is_on) in at91_pullup() argument 981 udc->enabled = is_on = !!is_on; in at91_pullup() 982 pullup(udc, is_on); in at91_pullup() 987 static int at91_set_selfpowered(struct usb_gadget *gadget, int is_on) in at91_set_selfpowered() argument 993 gadget->is_selfpowered = (is_on != 0); in at91_set_selfpowered() [all …]
|
D | at91_udc.h | 112 void (*pullup)(struct at91_udc *udc, int is_on);
|
D | lpc32xx_udc.c | 1612 static void pullup(struct lpc32xx_udc *udc, int is_on) in pullup() argument 1618 is_on = 0; in pullup() 1620 if (is_on != udc->pullup) in pullup() 1621 isp1301_pullup_enable(udc, is_on, 0); in pullup() 2489 static int lpc32xx_set_selfpowered(struct usb_gadget *gadget, int is_on) in lpc32xx_set_selfpowered() argument 2491 gadget->is_selfpowered = (is_on != 0); in lpc32xx_set_selfpowered() 2537 static int lpc32xx_pullup(struct usb_gadget *gadget, int is_on) in lpc32xx_pullup() argument 2542 pullup(udc, is_on); in lpc32xx_pullup()
|
D | atmel_usba_udc.h | 318 void (*toggle_bias)(struct usba_udc *udc, int is_on);
|
D | bcm63xx_udc.c | 919 static void bcm63xx_select_pullup(struct bcm63xx_udc *udc, bool is_on) in bcm63xx_select_pullup() argument 924 if (is_on) in bcm63xx_select_pullup() 1776 static int bcm63xx_udc_pullup(struct usb_gadget *gadget, int is_on) in bcm63xx_udc_pullup() argument 1783 if (is_on && udc->ep0state == EP0_SHUTDOWN) { in bcm63xx_udc_pullup() 1797 } else if (!is_on && udc->ep0state != EP0_SHUTDOWN) { in bcm63xx_udc_pullup()
|
D | s3c2410_udc.c | 1447 static int s3c2410_udc_set_pullup(struct s3c2410_udc *udc, int is_on) in s3c2410_udc_set_pullup() argument 1454 if (is_on) in s3c2410_udc_set_pullup() 1482 static int s3c2410_udc_pullup(struct usb_gadget *gadget, int is_on) in s3c2410_udc_pullup() argument 1488 s3c2410_udc_set_pullup(udc, is_on); in s3c2410_udc_pullup()
|
D | atmel_usba_udc.c | 341 static void toggle_bias(struct usba_udc *udc, int is_on) in toggle_bias() argument 344 udc->errata->toggle_bias(udc, is_on); in toggle_bias() 1889 static void at91sam9rl_toggle_bias(struct usba_udc *udc, int is_on) in at91sam9rl_toggle_bias() argument 1893 if (is_on) in at91sam9rl_toggle_bias()
|
D | net2272.c | 1144 net2272_pullup(struct usb_gadget *_gadget, int is_on) in net2272_pullup() argument 1156 dev->softconnect = (is_on != 0); in net2272_pullup() 1157 if (is_on) in net2272_pullup()
|
D | m66592-udc.c | 1509 static int m66592_pullup(struct usb_gadget *gadget, int is_on) in m66592_pullup() argument 1515 if (is_on) in m66592_pullup()
|
D | udc-xilinx.c | 1278 static int xudc_pullup(struct usb_gadget *gadget, int is_on) in xudc_pullup() argument 1287 if (is_on) in xudc_pullup()
|
D | gr_udc.c | 1896 static int gr_pullup(struct usb_gadget *_gadget, int is_on) in gr_pullup() argument 1908 if (is_on) in gr_pullup()
|
D | mv_u3d_core.c | 1204 static int mv_u3d_pullup(struct usb_gadget *gadget, int is_on) in mv_u3d_pullup() argument 1214 u3d->softconnect = (is_on != 0); in mv_u3d_pullup()
|
D | r8a66597-udc.c | 1787 static int r8a66597_pullup(struct usb_gadget *gadget, int is_on) in r8a66597_pullup() argument 1793 if (is_on) in r8a66597_pullup()
|
D | fsl_udc_core.c | 1217 static int fsl_pullup(struct usb_gadget *gadget, int is_on) in fsl_pullup() argument 1226 udc->softconnect = (is_on != 0); in fsl_pullup()
|
D | mv_udc_core.c | 1192 static int mv_udc_pullup(struct usb_gadget *gadget, int is_on) in mv_udc_pullup() argument 1201 udc->softconnect = (is_on != 0); in mv_udc_pullup()
|
D | net2280.c | 1527 static int net2280_pullup(struct usb_gadget *_gadget, int is_on) in net2280_pullup() argument 1539 dev->softconnect = (is_on != 0); in net2280_pullup() 1540 if (is_on) { in net2280_pullup()
|
D | pch_udc.c | 1183 static int pch_udc_pcd_pullup(struct usb_gadget *gadget, int is_on) in pch_udc_pcd_pullup() argument 1190 if (is_on) { in pch_udc_pcd_pullup()
|
D | omap_udc.c | 1297 static int omap_pullup(struct usb_gadget *gadget, int is_on) in omap_pullup() argument 1304 udc->softconnect = (is_on != 0); in omap_pullup()
|
/linux-4.4.14/drivers/misc/eeprom/ |
D | eeprom_93xx46.c | 97 static int eeprom_93xx46_ew(struct eeprom_93xx46_dev *edev, int is_on) in eeprom_93xx46_ew() argument 106 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS) << 1; in eeprom_93xx46_ew() 109 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS); in eeprom_93xx46_ew() 133 is_on ? "en" : "dis", ret); in eeprom_93xx46_ew()
|
/linux-4.4.14/include/linux/usb/ |
D | sl811.h | 19 void (*port_power)(struct device *dev, int is_on);
|
D | musb.h | 109 int (*set_vbus)(struct device *dev, int is_on);
|
D | gadget.h | 553 int (*pullup) (struct usb_gadget *, int is_on);
|
/linux-4.4.14/drivers/pinctrl/ |
D | pinctrl-at91.c | 159 void (*set_deglitch)(void __iomem *pio, unsigned mask, bool is_on); 161 void (*set_debounce)(void __iomem *pio, unsigned mask, bool is_on, u32 div); 163 void (*set_pulldown)(void __iomem *pio, unsigned mask, bool is_on); 460 static void at91_mux_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) in at91_mux_set_deglitch() argument 462 writel_relaxed(mask, pio + (is_on ? PIO_IFER : PIO_IFDR)); in at91_mux_set_deglitch() 473 static void at91_mux_pio3_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) in at91_mux_pio3_set_deglitch() argument 475 if (is_on) in at91_mux_pio3_set_deglitch() 477 at91_mux_set_deglitch(pio, mask, is_on); in at91_mux_pio3_set_deglitch() 489 bool is_on, u32 div) in at91_mux_pio3_set_debounce() argument 491 if (is_on) { in at91_mux_pio3_set_debounce() [all …]
|
/linux-4.4.14/include/linux/spi/ |
D | spi_bitbang.h | 20 void (*chipselect)(struct spi_device *spi, int is_on);
|
/linux-4.4.14/arch/arm/mach-pxa/ |
D | mioa701.c | 306 int is_on; in is_gsm_on() local 308 is_on = !!gpio_get_value(GPIO25_GSM_MOD_ON_STATE); in is_gsm_on() 309 return is_on; in is_gsm_on()
|
D | em-x270.c | 1000 int is_on = regulator_is_enabled(em_x270_camera_ldo); in em_x270_sensor_power() local 1002 if (on == is_on) in em_x270_sensor_power()
|
/linux-4.4.14/drivers/usb/gadget/udc/bdc/ |
D | bdc_udc.c | 415 static int bdc_udc_pullup(struct usb_gadget *gadget, int is_on) in bdc_udc_pullup() argument 421 dev_dbg(bdc->dev, "%s() is_on:%d\n", __func__, is_on); in bdc_udc_pullup() 426 if (!is_on) { in bdc_udc_pullup()
|
/linux-4.4.14/drivers/usb/misc/ |
D | usb_u132.h | 68 void (*port_power) (struct device *dev, int is_on);
|
/linux-4.4.14/drivers/net/wireless/ath/ath9k/ |
D | ar9003_phy.c | 1321 bool is_on = param ? 1 : 0; in ar9003_hw_ani_control() local 1327 AR_PHY_MRC_CCK_ENABLE, is_on); in ar9003_hw_ani_control() 1329 AR_PHY_MRC_CCK_MUX_REG, is_on); in ar9003_hw_ani_control() 1330 if (is_on != aniState->mrcCCK) { in ar9003_hw_ani_control() 1334 is_on ? "on" : "off"); in ar9003_hw_ani_control() 1335 if (is_on) in ar9003_hw_ani_control() 1339 aniState->mrcCCK = is_on; in ar9003_hw_ani_control()
|
/linux-4.4.14/drivers/usb/dwc3/ |
D | gadget.c | 1481 static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend) in dwc3_gadget_run_stop() argument 1487 if (is_on) { in dwc3_gadget_run_stop() 1514 if (is_on) { in dwc3_gadget_run_stop() 1530 is_on ? "connect" : "disconnect"); in dwc3_gadget_run_stop() 1535 static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on) in dwc3_gadget_pullup() argument 1541 is_on = !!is_on; in dwc3_gadget_pullup() 1544 ret = dwc3_gadget_run_stop(dwc, is_on, false); in dwc3_gadget_pullup()
|
/linux-4.4.14/drivers/usb/host/ |
D | sl811-hcd.c | 77 static void port_power(struct sl811 *sl811, int is_on) in port_power() argument 82 if (is_on) { in port_power() 100 is_on ? "on" : "off"); in port_power() 101 sl811->board->port_power(hcd->self.controller, is_on); in port_power()
|
D | u132-hcd.c | 1510 static void port_power(struct u132 *u132, int pn, int is_on) in port_power() argument 1512 u132->port[pn].power = is_on; in port_power() 1517 static void u132_power(struct u132 *u132, int is_on) in u132_power() argument 1521 if (is_on) { in u132_power()
|
D | oxu210hp-hcd.c | 2365 static void ehci_port_power(struct oxu_hcd *oxu, int is_on) in ehci_port_power() argument 2372 oxu_dbg(oxu, "...power%s ports...\n", is_on ? "up" : "down"); in ehci_port_power() 2375 is_on ? SetPortFeature : ClearPortFeature, in ehci_port_power()
|
/linux-4.4.14/drivers/usb/chipidea/ |
D | udc.c | 1568 static int ci_udc_selfpowered(struct usb_gadget *_gadget, int is_on) in ci_udc_selfpowered() argument 1575 _gadget->is_selfpowered = (is_on != 0); in ci_udc_selfpowered() 1584 static int ci_udc_pullup(struct usb_gadget *_gadget, int is_on) in ci_udc_pullup() argument 1593 if (is_on) in ci_udc_pullup()
|
/linux-4.4.14/drivers/usb/isp1760/ |
D | isp1760-udc.c | 1182 static int isp1760_udc_pullup(struct usb_gadget *gadget, int is_on) in isp1760_udc_pullup() argument 1186 isp1760_set_pullup(udc->isp, is_on); in isp1760_udc_pullup() 1187 udc->connected = is_on; in isp1760_udc_pullup()
|
/linux-4.4.14/drivers/usb/renesas_usbhs/ |
D | mod_gadget.c | 974 static int usbhsg_pullup(struct usb_gadget *gadget, int is_on) in usbhsg_pullup() argument 981 if (is_on) in usbhsg_pullup()
|
/linux-4.4.14/drivers/usb/dwc2/ |
D | gadget.c | 3238 static int dwc2_hsotg_pullup(struct usb_gadget *gadget, int is_on) in dwc2_hsotg_pullup() argument 3243 dev_dbg(hsotg->dev, "%s: is_on: %d op_state: %d\n", __func__, is_on, in dwc2_hsotg_pullup() 3248 hsotg->enabled = is_on; in dwc2_hsotg_pullup() 3253 if (is_on) { in dwc2_hsotg_pullup()
|
/linux-4.4.14/drivers/staging/emxx_udc/ |
D | emxx_udc.c | 2231 static int _nbu2ss_pullup(struct nbu2ss_udc *udc, int is_on) in _nbu2ss_pullup() argument 2238 if (is_on) { in _nbu2ss_pullup() 3095 static int nbu2ss_gad_pullup(struct usb_gadget *pgadget, int is_on) in nbu2ss_gad_pullup() argument 3116 _nbu2ss_pullup(udc, is_on); in nbu2ss_gad_pullup()
|
/linux-4.4.14/arch/blackfin/mach-bf537/boards/ |
D | stamp.c | 228 void sl811_port_power(struct device *dev, int is_on) in sl811_port_power() argument 231 gpio_direction_output(CONFIG_USB_SL811_BFIN_GPIO_VBUS, is_on); in sl811_port_power()
|