Searched refs:pchg (Results 1 – 3 of 3) sorted by relevance
/drivers/power/ |
D | lp8727_charger.c | 95 static int lp8727_read_bytes(struct lp8727_chg *pchg, u8 reg, u8 *data, u8 len) in lp8727_read_bytes() argument 99 mutex_lock(&pchg->xfer_lock); in lp8727_read_bytes() 100 ret = i2c_smbus_read_i2c_block_data(pchg->client, reg, len, data); in lp8727_read_bytes() 101 mutex_unlock(&pchg->xfer_lock); in lp8727_read_bytes() 106 static inline int lp8727_read_byte(struct lp8727_chg *pchg, u8 reg, u8 *data) in lp8727_read_byte() argument 108 return lp8727_read_bytes(pchg, reg, data, 1); in lp8727_read_byte() 111 static int lp8727_write_byte(struct lp8727_chg *pchg, u8 reg, u8 data) in lp8727_write_byte() argument 115 mutex_lock(&pchg->xfer_lock); in lp8727_write_byte() 116 ret = i2c_smbus_write_byte_data(pchg->client, reg, data); in lp8727_write_byte() 117 mutex_unlock(&pchg->xfer_lock); in lp8727_write_byte() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_tx.c | 251 u64 pchbusy, pchg, piov, pnew; in update_send_bufs() local 254 pchg = dd->pioavailkernel[i] & in update_send_bufs() 256 pchbusy = pchg << QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT; in update_send_bufs() 257 if (pchg && (pchbusy & dd->pioavailshadow[i])) { in update_send_bufs()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_driver.c | 1390 u64 pchbusy, pchg, piov, pnew; in ipath_update_pio_bufs() local 1398 pchg = dd->ipath_pioavailkernel[i] & in ipath_update_pio_bufs() 1400 pchbusy = pchg << INFINIPATH_SENDPIOAVAIL_BUSY_SHIFT; in ipath_update_pio_bufs() 1401 if (pchg && (pchbusy & dd->ipath_pioavailshadow[i])) { in ipath_update_pio_bufs()
|