Home
last modified time | relevance | path

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

/drivers/platform/chrome/
Dcros_ec_proto.c499 u32 ver_mask; in cros_ec_query_all() local
538 ret = cros_ec_get_host_command_version_mask(ec_dev, EC_CMD_GET_NEXT_EVENT, &ver_mask); in cros_ec_query_all()
539 if (ret < 0 || ver_mask == 0) { in cros_ec_query_all()
542 ec_dev->mkbp_event_supported = fls(ver_mask); in cros_ec_query_all()
548 ret = cros_ec_get_host_command_version_mask(ec_dev, EC_CMD_HOST_SLEEP_EVENT, &ver_mask); in cros_ec_query_all()
549 ec_dev->host_sleep_v1 = (ret == 0 && (ver_mask & EC_VER_MASK(1))); in cros_ec_query_all()
776 u32 ver_mask; in cros_ec_get_next_event() local
811 &ver_mask); in cros_ec_get_next_event()
813 if (ret < 0 || ver_mask == 0) in cros_ec_get_next_event()
823 ec_dev->mkbp_event_supported = fls(ver_mask); in cros_ec_get_next_event()
/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors_core.c253 u32 ver_mask, temp; in cros_ec_sensors_core_init() local
273 &ver_mask); in cros_ec_sensors_core_init()
278 state->msg->version = fls(ver_mask) - 1; in cros_ec_sensors_core_init()