/drivers/mfd/ |
H A D | sm501.c | 313 * alters the power active gate to set specific units on or off 1459 static void sm501_set_power(struct sm501_devdata *sm, int on) argument 1467 if (pd->get_power(sm->dev) == on) { 1468 dev_dbg(sm->dev, "is already %d\n", on); 1474 dev_dbg(sm->dev, "setting power to %d\n", on); 1476 pd->set_power(sm->dev, on); 1516 * or an external reset event on power change */
|
/drivers/mmc/host/ |
H A D | via-sdmmc.c | 121 * CIR : Card Insertion or Removal interrupt detected on GPI pin 230 * PAD_PWRON : Pad Power on/off select 232 * 1 : Power on 693 unsigned short power, unsigned int on) 707 if (on) 692 via_sdc_set_power(struct via_crdr_mmc_host *host, unsigned short power, unsigned int on) argument
|
/drivers/net/can/ |
H A D | at91_can.c | 328 * Swtich transceiver on or off 330 static void at91_transceiver_switch(const struct at91_priv *priv, int on) argument 333 priv->pdata->transceiver_switch(on); 455 * the next mailbox with prio 0, and so on, until all mailboxes are 655 * on the chip are reserved for RX. We split them into 2 groups. The 818 * The error bits are clear on read, 955 /* process state changes depending on the new state */ 1094 * The error bits are clear on read,
|
H A D | flexcan.c | 8 * Based on code originally by Andrey Volkov <avolkov@varma-el.com> 222 * Swtich transceiver on or off 224 static void flexcan_transceiver_switch(const struct flexcan_priv *priv, int on) argument 227 priv->pdata->transceiver_switch(on); 428 /* process state changes depending on the new state */ 539 * The error bits are cleared on read, 593 * The error bits are cleared on read, 899 * featuring a RX FIFO. Older cores found on some Coldfire
|
H A D | janz-ican3.c | 183 /* write-only: reset all hardware on the module */ 281 * returns 0 on success, -ENOMEM when no message exists 326 * returns 0 on success, -ENOMEM when no free space exists 387 /* set wrap flag on last buffer */ 408 /* set wrap flag on last buffer */ 468 /* set the wrap bit on the last buffer */ 504 /* set the wrap bit on the last buffer */ 752 static int ican3_set_bus_state(struct ican3_dev *mod, bool on) argument 757 msg.spec = on ? MSG_CONREQ : MSG_COFFREQ; 763 static int ican3_set_termination(struct ican3_dev *mod, bool on) argument [all...] |
H A D | ti_hecc.c | 324 int on) 327 priv->transceiver_switch(on); 363 * INFO: CAN net stack handles bus off and hence disabling auto-bus-on 482 * highest numbered mailbox with highest priority level and move on to the next 483 * mailbox with the same priority level and so on. Once we loop through all the 484 * transmit mailboxes we choose the next priority level (lower) and so on 485 * until we reach the lowest priority level on the lowest numbered mailbox 803 /* restart queue if wrap-up or if queue stalled on last pkt */ 323 ti_hecc_transceiver_switch(const struct ti_hecc_priv *priv, int on) argument
|
/drivers/net/ethernet/sun/ |
H A D | sungem.c | 97 * Apple's GMAC does support gigabit on machines with 272 /* The link status bit latches on zero, so you must 791 * on the buffer address. We sync on the RX completion 1215 /* We are ready to rock, turn everything on. */ 1255 // XXX dbl check what that function should do when called on PCS PHY 1294 /* Sanitize settings based on PHY capabilities */ 1440 "Pause is enabled (rxfifo: %d off: %d on: %d)\n", 1464 /* We try forced modes after a failed aneg only on PHYs that don't 1672 /* Revert MIF CFG setting done on stop_ph 1910 int on = off - max_frame; local [all...] |
/drivers/net/phy/ |
H A D | dp83640.c | 252 struct ptp_clock_request *clkreq, bool on) 259 gpio = on ? gpio_tab[PEROUT_GPIO] : 0; 270 if (!on) { 404 struct ptp_clock_request *rq, int on) 419 if (on) { 430 periodic_output(clock, rq, on); 443 static void enable_status_frames(struct phy_device *phydev, bool on) argument 447 if (on) 460 if (on) { 502 static void enable_broadcast(struct phy_device *phydev, int init_page, int on) argument 251 periodic_output(struct dp83640_clock *clock, struct ptp_clock_request *clkreq, bool on) argument 403 ptp_dp83640_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument [all...] |
/drivers/net/wan/ |
H A D | cosa.c | 151 int nchannels; /* # of channels on this card */ 163 spinlock_t lock; /* For exclusive operations on this structure */ 183 * The lowest CARD_MINOR_BITS bits means the channel on the single card, 189 * The following depends on CARD_MINOR_BITS. Unfortunately, the "MODULE_STRING" 305 static int cosa_fasync(struct inode *inode, struct file *file, int on); 465 /* and finally, on 16-bit COSA DMA should be 4-7 and 513 * Enable interrupt on tx buffer empty (it sure is) 996 static int cosa_fasync(struct inode *inode, struct file *file, int on) 1000 return fasync_helper(inode, file, on, &fasync[port]); 1621 * and verifies the proper echo of the sent bytes. Returns 0 on succes 995 cosa_fasync(struct inode *inode, struct file *file, int on) argument [all...] |
/drivers/net/wireless/b43/ |
H A D | phy_lp.c | 2670 b43err(dev->wl, "LP-PHY is supported only on SSB!\n"); 2702 static void b43_lpphy_op_switch_analog(struct b43_wldev *dev, bool on) argument 2704 if (on) {
|
/drivers/net/wireless/bcmdhd/ |
H A D | siutils.c | 124 /* based on 32KHz ILP clock */ 164 SI_ERROR(("timeout on ALPAV wait, clkval 0x%02x\n", 292 /* Make sure any on-chip ARM is off (in case strapping is wrong), or downloaded code was 963 /* Run bist on current core. Caller needs to take care of core-specific bist hazards */ 1288 /* gpios could be shared on router platforms 1310 /* gpios could be shared on router platforms 1332 /* gpios could be shared on router platforms 1350 /* only cores on SI_BUS share GPIO's and only applcation users need to 1374 * releasing the gpio doesn't change the current value on the GPIO last write value 1381 /* only cores on SI_BU 2083 si_chipcontrl_btshd0_4331(si_t *sih, bool on) argument 2148 si_chipcontrl_epa4331(si_t *sih, bool on) argument 2186 si_chipcontrl_srom4360(si_t *sih, bool on) argument [all...] |
H A D | wl_cfgp2p.c | 481 wl_cfgp2p_set_discovery(struct wl_priv *wl, s32 on) argument 487 ret = wldev_iovar_setint(ndev, "p2p_disc", on); 490 CFGP2P_ERR(("p2p_disc %d error %d\n", on, ret)); 1349 * Search the bssidx based on dev argument 1426 WL_DBG(("Listen DONE for ramain on channel expired\n")); 1486 * Do a P2P Listen on the given channel for the given duration. 2215 * not Handle any IOCTL cmds on p2p0 other than ANDROID PRIVATE CMDs. 2222 CFGP2P_ERR(("%s: IOCTL req 0x%x on p2p0 I/F. Ignoring. \n", 2241 * is not dependent on a particular order of interface initialization.
|
/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | ampdu.c | 47 /* # of inis to be freed on detach */ 183 static int brcms_c_ampdu_set(struct ampdu_info *ampdu, bool on) argument 189 if (on) { 200 wlc->pub->_ampdu = on;
|
/drivers/platform/x86/ |
H A D | compal-laptop.c | 6 based on MSI driver 41 * Notes on the power_supply battery interface: 47 * This driver might work on other laptops produced by Compal. If you 68 * only enabled on a JHL90 board until it is verified that they work on the 177 int pwm_enable; /* 0:full on, 1:set by pwm1, 2:control by moterboard */ 197 * only gets enabled on a JHL90 board. Might work with the others too */ 288 static void set_backlight_state(bool on) argument 290 u8 data = on ? BACKLIGHT_STATE_ON_DATA : BACKLIGHT_STATE_OFF_DATA;
|
/drivers/power/ |
H A D | ab8500_charger.c | 355 * Returns ac charger voltage (on success) 376 * Returns ac charger CV mode (on success) else error code 406 * Returns vbus voltage (on success) 428 * Returns usb current (on success) and error code on failure 450 * Returns ac current (on success) and error code on failure. 471 * Returns ac charger CV mode (on success) else error code 551 * based on the USB type. 552 * Returns error code in case of failure else 0 on succes 990 ab8500_charger_led_en(struct ab8500_charger *di, int on) argument [all...] |
/drivers/staging/media/solo6x10/ |
H A D | v4l2-enc.c | 95 static void solo_motion_toggle(struct solo_enc_dev *solo_enc, int on) argument 102 if (on) 107 /* Do this regardless of if we are turning on or off */ 164 /* Make sure to bw check on first reader */ 503 /* align on 32-bit boundary */ 1018 /* Make sure the encoder is on */ 1262 /* Make sure the encoder is on */ 1290 /* Check for key frame on mpeg data */ 1583 /* TODO accept value on lower 16-bits and use high
|
/drivers/tty/ |
H A D | rocket.c | 241 static void sModemReset(CONTROLLER_T * CtlP, int chan, int on); 242 static void sPCIModemReset(CONTROLLER_T * CtlP, int chan, int on); 315 * that receive data is present on a serial port. Pulls data from FIFO, moves it into the 351 * the status. Update error counters depending on status 527 (ChanStatus & CD_ACT) ? "on" : "off"); 601 * to xmit on the port. Bit 0 is port 0 on this board, bit 1 is port 625 * Initializes the r_port structure for a port, as well as enabling the port on 875 static void dtr_rts(struct tty_port *port, int on) argument 878 if (on) { 3082 sModemReset(CONTROLLER_T * CtlP, int chan, int on) argument 3107 sPCIModemReset(CONTROLLER_T * CtlP, int chan, int on) argument [all...] |
H A D | tty_io.c | 153 static int __tty_fasync(int fd, struct file *filp, int on); 154 static int tty_fasync(int fd, struct file *filp, int on); 687 * A carrier loss (virtual or otherwise) has occurred on this like 727 * Perform a vhangup on the current controlling tty 872 * on an already stopped device and will not re-call the driver 948 * Perform the read system call function on this terminal device. Checks 1324 * Return 0 on success, -errno on error. 1360 * @driver: tty driver we are opening a device on 1440 /* FIXME: Locking on 2049 __tty_fasync(int fd, struct file *filp, int on) argument 2090 tty_fasync(int fd, struct file *filp, int on) argument [all...] |
/drivers/usb/gadget/ |
H A D | inode.c | 60 * not possible on all hardware. For example, precise fault handling with 94 /* From then on, ep0 fd is in either of two basic modes: 750 * at the right maxpacket size, and so on. 981 /* report fd mode change before acting on it */ 1180 /* report fd mode change before acting on it */ 1230 ep0_fasync (int f, struct file *fd, int on) argument 1234 VDEBUG (dev, "%s %s\n", __func__, on ? "on" : "off"); 1235 return fasync_helper (f, fd, on, &dev->fasync); 1275 /* report fd mode change before acting on i [all...] |
H A D | pxa27x_udc.c | 352 * - we rely on UDCCR register "active interface" and "active altsetting". 503 * are ready for reading on OUT endpoint. 596 * @count: bytes transferred on endpoint 694 * on the endpoint. 716 * on the endpoint, and if it's not the control endpoint, interrupts are 717 * disabled on the endpoint. 846 * Dequeues all requests on an endpoint. As a side effect, interrupts will be 847 * disabled on that endpoint (because no more requests). 1004 ep_vdbg(ep, "Clearing Underrun on, udccsr=%x\n", 1261 /* make sure it's actually queued on thi 1509 dplus_pullup(struct pxa_udc *udc, int on) argument [all...] |
H A D | s3c-hsotg.c | 47 * be transferred by IN transactions on EP0. This is either 127 bytes or 3 53 * not work (this may be an implicit DATA0 PID on first packet of the 538 /* limit to 512 bytes of data, it seems at least on the non-periodic 605 * Return the maximum data that can be queued in one go on a given endpoint 778 * to debugging to see what is going on. */ 784 * on the S3C6400 ending up with the TXFIFO becoming full. */ 799 * @hs_ep: The endpoint the request is on. 806 * cleanup on completion. 901 * @ep: The endpoint the request was on. 904 * Called on completio 3275 s3c_hsotg_gate(struct platform_device *pdev, bool on) argument [all...] |
/drivers/usb/serial/ |
H A D | digi_acceleport.c | 11 * Shamelessly based on Brian Warner's keyspan_pda.c and Greg Kroah-Hartman's 67 * "INB": can be used on the in-band endpoint 68 * "OOB": can be used on the out-of-band endpoint 242 static void digi_dtr_rts(struct usb_serial_port *port, int on); 376 * on writes. 404 * Write commands on the out of band port. Commands are 4 460 * Write commands on the given port. Commands are 4 541 * Sets or clears DTR and RTS on the port, according to the 611 * digi_transmit_idle on the same port at the same time. However, this 612 * is only called from close, and only one process can be in close on 1111 digi_dtr_rts(struct usb_serial_port *port, int on) argument [all...] |
H A D | ftdi_sio.c | 17 * See Documentation/usb/usb-serial.txt for more information on using this 766 /* Papouch devices based on FTDI chip */ 901 static void ftdi_dtr_rts(struct usb_serial_port *port, int on); 1032 * Set this bit to turn off a divide by 2.5 on baud rate generator 1089 /* FIXME: locking on last_dtr_rts */ 1224 dbg("%s - Baud rate set to %d (divisor 0x%lX) on chip %s", 1413 /* Determine type of FTDI chip based on USB config and descriptor. */ 1488 /* Determine the maximum packet size for the device. This depends on the chip 1516 dev_info(&udev->dev, "Overriding wMaxPacketSize on endpoint %d\n", i); 1520 /* set max packet size based on descripto 1890 ftdi_dtr_rts(struct usb_serial_port *port, int on) argument [all...] |
H A D | io_ti.c | 592 /* wait one more character time, based on baud rate */ 603 * There may be multiple configurations on this device, in which case 656 /* Read a descriptor header from I2C based on type */ 1226 /* return an error on purpose. */ 1470 /* return an error on purpose */ 1483 static int ti_do_config(struct edgeport_port *port, int feature, int on) argument 1486 on = !!on; /* 1 or 0 not bitmask */ 1489 on, NULL, 0); 1760 dbg("%s - close pending, dropping data on th [all...] |
H A D | keyspan.c | 27 staff in their work on open source projects. 69 on 1 EP and high-speed supported */ 293 (not used on usa49) */ 314 dbg("%s - nonzero status: %x on endpoint %d.", 324 /* no errors on individual bytes, only 479 dbg("%s - nonzero status: %x on endpoint %d.", 699 dbg("%s - nonzero status: %x on endpoint %d.", __func__, 709 /* no error on any byte */ 773 /* no error on any byte */ 827 dbg("%s - nonzero status: %x on endpoin 1152 keyspan_dtr_rts(struct usb_serial_port *port, int on) argument [all...] |