Home
last modified time | relevance | path

Searched refs:num_pdos (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/usb/typec/ucsi/
H A Dpsy.c93 if (con->num_pdos > 0) { in ucsi_psy_get_voltage_max()
94 pdo = con->src_pdos[con->num_pdos - 1]; in ucsi_psy_get_voltage_max()
149 if (con->num_pdos > 0) { in ucsi_psy_get_current_max()
150 pdo = con->src_pdos[con->num_pdos - 1]; in ucsi_psy_get_current_max()
H A Ducsi.c597 u32 *pdos, int offset, int num_pdos) in ucsi_read_pdos() argument
606 command |= UCSI_GET_PDOS_NUM_PDOS(num_pdos - 1); in ucsi_read_pdos()
609 num_pdos * sizeof(u32)); in ucsi_read_pdos()
619 u8 num_pdos; in ucsi_get_pdos() local
627 num_pdos = ret / sizeof(u32); /* number of bytes to 32-bit PDOs */ in ucsi_get_pdos()
628 if (num_pdos < UCSI_MAX_PDOS) in ucsi_get_pdos()
629 return num_pdos; in ucsi_get_pdos()
637 return ret / sizeof(u32) + num_pdos; in ucsi_get_pdos()
648 con->num_pdos = ret; in ucsi_get_src_pdos()
H A Ducsi.h364 int num_pdos; member