xstop_reason
__be32 xstop_reason;
if (!hmi_evt->u.xstop_error.xstop_reason) {
for (i = 0; i < ARRAY_SIZE(xstop_reason); i++)
if (be32_to_cpu(hmi_evt->u.xstop_error.xstop_reason) &
xstop_reason[i].xstop_reason)
xstop_reason[i].unit_failed,
xstop_reason[i].description);
if (!hmi_evt->u.xstop_error.xstop_reason) {
reason_count = sizeof(hmi_evt->u.xstop_error.xstop_reason) /
reason = (hmi_evt->u.xstop_error.xstop_reason >> (8 * i)) & 0xFF;
uint32_t xstop_reason;
static const struct xstop_reason xstop_reason[] = {
if (!hmi_evt->u.xstop_error.xstop_reason) {
for (i = 0; i < ARRAY_SIZE(xstop_reason); i++)
if (be32_to_cpu(hmi_evt->u.xstop_error.xstop_reason) &
xstop_reason[i].xstop_reason)
xstop_reason[i].unit_failed,
xstop_reason[i].description);
static const struct xstop_reason xstop_reason[] = {