Home
last modified time | relevance | path

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

/openbmc/linux/net/smc/
H A Dsmc_stats.h233 bool is_v2 = (acl->hdr.version == SMC_V2); \
236 if (is_v2 && is_smcd) \
238 else if (is_v2 && !is_smcd) \
240 else if (!is_v2 && is_smcd) \
242 else if (!is_v2 && !is_smcd) \
252 bool is_v2 = (version & SMC_V2); \
254 if (is_v2 && is_smcd) \
256 else if (is_v2 && !is_smcd) \
258 else if (!is_v2 && is_smcd) \
260 else if (!is_v2 && !is_smcd) \
/openbmc/u-boot/drivers/power/
H A Dtps6586x.c90 int is_v2; in read_voltages() local
102 is_v2 = (ctrl1 | ctrl2) & CTRL_SM0_SUPPLY2; in read_voltages()
103 *sm0 = tps6586x_read(is_v2 ? SM0_VOLTAGE_V2 : SM0_VOLTAGE_V1); in read_voltages()
104 *sm1 = tps6586x_read(is_v2 ? SM1_VOLTAGE_V2 : SM1_VOLTAGE_V1); in read_voltages()