/drivers/usb/musb/ |
H A D | davinci.c | 171 static void davinci_musb_source_power(struct musb *musb, int is_on, int immediate) argument 174 if (is_on) 175 is_on = 1; 177 if (vbus_state == is_on) 179 vbus_state = !is_on; /* 0/1 vs "-1 == unknown/init" */ 190 vbus_state = is_on; 194 static void davinci_musb_set_vbus(struct musb *musb, int is_on) argument 196 WARN_ON(is_on && is_peripheral_active(musb)); 197 davinci_musb_source_power(musb, is_on, 0);
|
H A D | ux500.c | 47 static void ux500_musb_set_vbus(struct musb *musb, int is_on) argument 58 if (is_on) { 101 if (!is_on)
|
H A D | musb_gadget.c | 1621 static void musb_pullup(struct musb *musb, int is_on) argument 1626 if (is_on) 1634 is_on ? "on" : "off"); 1661 static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on) argument 1666 is_on = !!is_on; 1674 if (is_on != musb->softconnect) { 1675 musb->softconnect = is_on; 1676 musb_pullup(musb, is_on);
|
H A D | da8xx.c | 179 static void da8xx_musb_set_vbus(struct musb *musb, int is_on) argument 181 WARN_ON(is_on && is_peripheral_active(musb));
|
H A D | musb_core.h | 525 static inline void musb_platform_set_vbus(struct musb *musb, int is_on) argument 528 musb->ops->set_vbus(musb, is_on);
|
H A D | am35x.c | 130 static void am35x_musb_set_vbus(struct musb *musb, int is_on) argument 132 WARN_ON(is_on && is_peripheral_active(musb));
|
H A D | blackfin.c | 301 static void bfin_musb_set_vbus(struct musb *musb, int is_on) argument 304 if (!is_on)
|
H A D | omap2430.c | 143 static void omap2430_musb_set_vbus(struct musb *musb, int is_on) argument 155 if (is_on) {
|
H A D | tusb6010.c | 38 static void tusb_musb_set_vbus(struct musb *musb, int is_on); 508 static void tusb_musb_set_vbus(struct musb *musb, int is_on) argument 524 if (is_on) {
|
/drivers/spi/ |
H A D | spi-butterfly.c | 85 setsck(struct spi_device *spi, int is_on) argument 92 if (is_on) 101 setmosi(struct spi_device *spi, int is_on) argument 108 if (is_on)
|
H A D | spi-lm70llp.c | 145 static inline void setsck(struct spi_device *s, int is_on) argument 149 if (is_on) 155 static inline void setmosi(struct spi_device *s, int is_on) argument
|
H A D | spi-gpio.c | 115 static inline void setsck(const struct spi_device *spi, int is_on) argument 117 gpio_set_value_cansleep(SPI_SCK_GPIO, is_on); 120 static inline void setmosi(const struct spi_device *spi, int is_on) argument 122 gpio_set_value_cansleep(SPI_MOSI_GPIO, is_on);
|
H A D | spi-xilinx.c | 182 static void xilinx_spi_chipselect(struct spi_device *spi, int is_on) argument 186 if (is_on == BITBANG_CS_INACTIVE) { 189 } else if (is_on == BITBANG_CS_ACTIVE) {
|
H A D | spi-xtensa-xtfpga.c | 75 static void xtfpga_spi_chipselect(struct spi_device *spi, int is_on) argument
|
H A D | spi-efm32.c | 108 static void efm32_spi_chipselect(struct spi_device *spi, int is_on) argument 111 int value = !(spi->mode & SPI_CS_HIGH) == !(is_on == BITBANG_CS_ACTIVE);
|
/drivers/power/ |
H A D | da9030_battery.c | 112 bool is_on; member in struct:da9030_charger 143 seq_printf(s, "charger is %s\n", charger->is_on ? "on" : "off"); 222 charger->is_on = (val & DA9030_CHRG_CHARGER_ENABLE) ? 1 : 0; 240 charger->is_on = 1; 243 charger->is_on = 0; 256 if (!charger->is_on) { 320 if (charger->is_on) 384 if (charger->is_on)
|
/drivers/misc/eeprom/ |
H A D | eeprom_93xx46.c | 104 static int eeprom_93xx46_ew(struct eeprom_93xx46_dev *edev, int is_on) argument 113 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS) << 1; 116 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS); 140 is_on ? "en" : "dis", ret);
|
/drivers/usb/misc/ |
H A D | usb_u132.h | 68 void (*port_power) (struct device *dev, int is_on);
|
/drivers/pinctrl/ |
H A D | pinctrl-at91.c | 161 void (*set_deglitch)(void __iomem *pio, unsigned mask, bool is_on); 163 void (*set_debounce)(void __iomem *pio, unsigned mask, bool is_on, u32 div); 165 void (*set_pulldown)(void __iomem *pio, unsigned mask, bool is_on); 459 static void at91_mux_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) argument 461 __raw_writel(mask, pio + (is_on ? PIO_IFER : PIO_IFDR)); 472 static void at91_mux_pio3_set_deglitch(void __iomem *pio, unsigned mask, bool is_on) argument 474 if (is_on) 476 at91_mux_set_deglitch(pio, mask, is_on); 488 bool is_on, u32 div) 490 if (is_on) { 487 at91_mux_pio3_set_debounce(void __iomem *pio, unsigned mask, bool is_on, u32 div) argument 503 at91_mux_pio3_set_pulldown(void __iomem *pio, unsigned mask, bool is_on) argument [all...] |
/drivers/usb/gadget/udc/ |
H A D | at91_udc.c | 897 static void pullup(struct at91_udc *udc, int is_on) argument 902 is_on = 0; 903 DBG("%sactive\n", is_on ? "" : "in"); 905 if (is_on) { 962 static int at91_pullup(struct usb_gadget *gadget, int is_on) argument 968 udc->enabled = is_on = !!is_on; 969 pullup(udc, is_on); 974 static int at91_set_selfpowered(struct usb_gadget *gadget, int is_on) argument 980 udc->selfpowered = (is_on ! [all...] |
H A D | lpc32xx_udc.c | 1614 static void pullup(struct lpc32xx_udc *udc, int is_on) argument 1620 is_on = 0; 1622 if (is_on != udc->pullup) 1623 isp1301_pullup_enable(udc, is_on, 0); 2500 static int lpc32xx_set_selfpowered(struct usb_gadget *gadget, int is_on) argument 2505 udc->selfpowered = (is_on != 0); 2551 static int lpc32xx_pullup(struct usb_gadget *gadget, int is_on) argument 2556 pullup(udc, is_on);
|
H A D | bcm63xx_udc.c | 893 * @is_on: true to enable the pullup, false to disable. 899 static void bcm63xx_select_pullup(struct bcm63xx_udc *udc, bool is_on) argument 904 if (is_on) 1751 * @is_on: 0 to disable pullup, 1 to enable. 1755 static int bcm63xx_udc_pullup(struct usb_gadget *gadget, int is_on) argument 1762 if (is_on && udc->ep0state == EP0_SHUTDOWN) { 1776 } else if (!is_on && udc->ep0state != EP0_SHUTDOWN) {
|
H A D | s3c2410_udc.c | 1468 static int s3c2410_udc_set_pullup(struct s3c2410_udc *udc, int is_on) argument 1475 if (is_on) 1503 static int s3c2410_udc_pullup(struct usb_gadget *gadget, int is_on) argument 1509 s3c2410_udc_set_pullup(udc, is_on ? 0 : 1);
|
/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_phy.c | 1213 * is_on == 1 means MRC CCK ON (default, less noise imm) 1214 * is_on == 0 means MRC CCK is OFF (more noise imm) 1216 bool is_on = param ? 1 : 0; local 1222 AR_PHY_MRC_CCK_ENABLE, is_on); 1224 AR_PHY_MRC_CCK_MUX_REG, is_on); 1225 if (is_on != aniState->mrcCCK) { 1229 is_on ? "on" : "off"); 1230 if (is_on) 1234 aniState->mrcCCK = is_on;
|
/drivers/usb/dwc3/ |
H A D | gadget.c | 1415 static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend) argument 1421 if (is_on) { 1448 if (is_on) { 1464 is_on ? "connect" : "disconnect"); 1469 static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on) argument 1475 is_on = !!is_on; 1478 ret = dwc3_gadget_run_stop(dwc, is_on, false);
|