Home
last modified time | relevance | path

Searched refs:dcap (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dbq27xxx_battery.c1600 int dcap; local
1603 dcap = bq27xxx_read(di, BQ27XXX_REG_DCAP, true);
1605 dcap = bq27xxx_read(di, BQ27XXX_REG_DCAP, false);
1607 if (dcap < 0) {
1609 return dcap;
1613 dcap = (dcap << 8) * BQ27XXX_CURRENT_CONSTANT / BQ27XXX_RS;
1615 dcap *= 1000;
1617 return dcap;
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dsil-sii8620.c516 u8 dcap[MHL_DCAP_SIZE]; in sii8620_mr_devcap() local
519 sii8620_read_buf(ctx, REG_EDID_FIFO_RD_DATA, dcap, MHL_DCAP_SIZE); in sii8620_mr_devcap()
524 dcap[MHL_DCAP_MHL_VERSION] / 16, in sii8620_mr_devcap()
525 dcap[MHL_DCAP_MHL_VERSION] % 16, in sii8620_mr_devcap()
526 dcap[MHL_DCAP_ADOPTER_ID_H], dcap[MHL_DCAP_ADOPTER_ID_L], in sii8620_mr_devcap()
527 dcap[MHL_DCAP_DEVICE_ID_H], dcap[MHL_DCAP_DEVICE_ID_L]); in sii8620_mr_devcap()
528 sii8620_update_array(ctx->devcap, dcap, MHL_DCAP_SIZE); in sii8620_mr_devcap()