Searched refs:pchg (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/power/supply/ |
D | lp8727_charger.c | 101 static int lp8727_read_bytes(struct lp8727_chg *pchg, u8 reg, u8 *data, u8 len) in lp8727_read_bytes() argument 105 mutex_lock(&pchg->xfer_lock); in lp8727_read_bytes() 106 ret = i2c_smbus_read_i2c_block_data(pchg->client, reg, len, data); in lp8727_read_bytes() 107 mutex_unlock(&pchg->xfer_lock); in lp8727_read_bytes() 112 static inline int lp8727_read_byte(struct lp8727_chg *pchg, u8 reg, u8 *data) in lp8727_read_byte() argument 114 return lp8727_read_bytes(pchg, reg, data, 1); in lp8727_read_byte() 117 static int lp8727_write_byte(struct lp8727_chg *pchg, u8 reg, u8 data) in lp8727_write_byte() argument 121 mutex_lock(&pchg->xfer_lock); in lp8727_write_byte() 122 ret = i2c_smbus_write_byte_data(pchg->client, reg, data); in lp8727_write_byte() 123 mutex_unlock(&pchg->xfer_lock); in lp8727_write_byte() [all …]
|
D | lp8788-charger.c | 133 static bool lp8788_is_charger_detected(struct lp8788_charger *pchg) in lp8788_is_charger_detected() argument 137 lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_is_charger_detected() 147 struct lp8788_charger *pchg = dev_get_drvdata(psy->dev.parent); in lp8788_charger_get_property() local 152 val->intval = lp8788_is_charger_detected(pchg); in lp8788_charger_get_property() 155 lp8788_read_byte(pchg->lp, LP8788_CHG_IDCIN, &read); in lp8788_charger_get_property() 166 static int lp8788_get_battery_status(struct lp8788_charger *pchg, in lp8788_get_battery_status() argument 173 ret = lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_get_battery_status() 199 static int lp8788_get_battery_health(struct lp8788_charger *pchg, in lp8788_get_battery_health() argument 205 ret = lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_get_battery_health() 219 static int lp8788_get_battery_present(struct lp8788_charger *pchg, in lp8788_get_battery_present() argument [all …]
|
/linux-6.12.1/drivers/infiniband/hw/qib/ |
D | qib_tx.c | 245 u64 pchbusy, pchg, piov, pnew; in update_send_bufs() local 248 pchg = dd->pioavailkernel[i] & in update_send_bufs() 250 pchbusy = pchg << QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT; in update_send_bufs() 251 if (pchg && (pchbusy & dd->pioavailshadow[i])) { in update_send_bufs()
|