Searched refs:pchg (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/power/supply/ |
D | lp8727_charger.c | 105 static int lp8727_read_bytes(struct lp8727_chg *pchg, u8 reg, u8 *data, u8 len) in lp8727_read_bytes() argument 109 mutex_lock(&pchg->xfer_lock); in lp8727_read_bytes() 110 ret = i2c_smbus_read_i2c_block_data(pchg->client, reg, len, data); in lp8727_read_bytes() 111 mutex_unlock(&pchg->xfer_lock); in lp8727_read_bytes() 116 static inline int lp8727_read_byte(struct lp8727_chg *pchg, u8 reg, u8 *data) in lp8727_read_byte() argument 118 return lp8727_read_bytes(pchg, reg, data, 1); in lp8727_read_byte() 121 static int lp8727_write_byte(struct lp8727_chg *pchg, u8 reg, u8 data) in lp8727_write_byte() argument 125 mutex_lock(&pchg->xfer_lock); in lp8727_write_byte() 126 ret = i2c_smbus_write_byte_data(pchg->client, reg, data); in lp8727_write_byte() 127 mutex_unlock(&pchg->xfer_lock); in lp8727_write_byte() [all …]
|
D | lp8788-charger.c | 137 static bool lp8788_is_charger_detected(struct lp8788_charger *pchg) in lp8788_is_charger_detected() argument 141 lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_is_charger_detected() 151 struct lp8788_charger *pchg = dev_get_drvdata(psy->dev.parent); in lp8788_charger_get_property() local 156 val->intval = lp8788_is_charger_detected(pchg); in lp8788_charger_get_property() 159 lp8788_read_byte(pchg->lp, LP8788_CHG_IDCIN, &read); in lp8788_charger_get_property() 170 static int lp8788_get_battery_status(struct lp8788_charger *pchg, in lp8788_get_battery_status() argument 177 ret = lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_get_battery_status() 203 static int lp8788_get_battery_health(struct lp8788_charger *pchg, in lp8788_get_battery_health() argument 209 ret = lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_get_battery_health() 223 static int lp8788_get_battery_present(struct lp8788_charger *pchg, in lp8788_get_battery_present() argument [all …]
|
/Linux-v4.19/drivers/infiniband/hw/qib/ |
D | qib_tx.c | 248 u64 pchbusy, pchg, piov, pnew; in update_send_bufs() local 251 pchg = dd->pioavailkernel[i] & in update_send_bufs() 253 pchbusy = pchg << QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT; in update_send_bufs() 254 if (pchg && (pchbusy & dd->pioavailshadow[i])) { in update_send_bufs()
|