Lines Matching defs:state
113 struct bd9995x_state state;
115 struct mutex lock; /* Protect state data */
286 struct bd9995x_state state;
289 state = bd->state;
294 switch (state.chgstm_status) {
336 val->intval = state.online;
373 if (!state.online) {
444 struct bd9995x_state *state)
452 bd->rmap_fields[F_CHGSTM_STATE], &state->chgstm_status,
455 &state->vbat_vsys_status,
458 &state->vbus_vcc_status,
471 if (state->vbus_vcc_status & STATUS_VCC_DET ||
472 state->vbus_vcc_status & STATUS_VBUS_DET)
473 state->online = 1;
475 state->online = 0;
485 struct bd9995x_state state;
581 /* Read whole chip state */
582 ret = bd9995x_get_chip_state(bd, &state);
584 dev_err(bd->dev, "Failed to read chip state\n");
587 bd->state = state;
606 int ret, state;
615 ret = regmap_field_read(bd->rmap_fields[F_OTPLD_STATE], &state);
620 } while (state == 0 && --rst_check_counter);
637 struct bd9995x_state state;
703 * Currently we initialize charger to a known state at startup.
722 ret = bd9995x_get_chip_state(bd, &state);
727 bd->state = state;