• Home
  • Raw
  • Download

Lines Matching refs:state

62 static std::vector<std::string> ReadStringArgs(const char* name, State* state,  in ReadStringArgs()  argument
66 ErrorAbort(state, kArgsParsingFailure, "%s expects %zu arguments, got %zu", name, in ReadStringArgs()
72 if (!ReadValueArgs(state, argv, &args)) { in ReadStringArgs()
80 ErrorAbort(state, kArgsParsingFailure, "%s argument to %s must be string", in ReadStringArgs()
93 auto state = DeviceMapper::Instance().GetState(partition_name); in UnmapPartitionOnDeviceMapper() local
94 if (state == DmDeviceState::INVALID) { in UnmapPartitionOnDeviceMapper()
97 if (state == DmDeviceState::ACTIVE) { in UnmapPartitionOnDeviceMapper()
101 << static_cast<std::underlying_type_t<DmDeviceState>>(state); in UnmapPartitionOnDeviceMapper()
106 auto state = DeviceMapper::Instance().GetState(partition_name); in MapPartitionOnDeviceMapper() local
107 if (state == DmDeviceState::INVALID) { in MapPartitionOnDeviceMapper()
112 if (state == DmDeviceState::ACTIVE) { in MapPartitionOnDeviceMapper()
116 << static_cast<std::underlying_type_t<DmDeviceState>>(state); in MapPartitionOnDeviceMapper()
120 Value* UnmapPartitionFn(const char* name, State* state, in UnmapPartitionFn() argument
122 auto args = ReadStringArgs(name, state, argv, { "name" }); in UnmapPartitionFn()
128 Value* MapPartitionFn(const char* name, State* state, in MapPartitionFn() argument
130 auto args = ReadStringArgs(name, state, argv, { "name" }); in MapPartitionFn()
336 Value* UpdateDynamicPartitionsFn(const char* name, State* state, in UpdateDynamicPartitionsFn() argument
339 ErrorAbort(state, kArgsParsingFailure, "%s expects 1 arguments, got %zu", name, argv.size()); in UpdateDynamicPartitionsFn()
343 if (!ReadValueArgs(state, argv, &args)) { in UpdateDynamicPartitionsFn()
348 ErrorAbort(state, kArgsParsingFailure, "op_list argument to %s must be blob", name); in UpdateDynamicPartitionsFn()
353 if (state->is_retry) { in UpdateDynamicPartitionsFn()