Lines Matching refs:optional
96 int __device_reset(struct device *dev, bool optional);
149 static inline int __device_reset(struct device *dev, bool optional) in __device_reset() argument
151 return optional ? 0 : -ENOTSUPP; in __device_reset()
158 bool optional = flags & RESET_CONTROL_FLAGS_BIT_OPTIONAL; in __of_reset_control_get() local
160 return optional ? NULL : ERR_PTR(-ENOTSUPP); in __of_reset_control_get()
167 bool optional = flags & RESET_CONTROL_FLAGS_BIT_OPTIONAL; in __reset_control_get() local
169 return optional ? NULL : ERR_PTR(-ENOTSUPP); in __reset_control_get()
206 bool optional = flags & RESET_CONTROL_FLAGS_BIT_OPTIONAL; in __reset_control_bulk_get() local
208 return optional ? 0 : -EOPNOTSUPP; in __reset_control_bulk_get()
220 bool optional = flags & RESET_CONTROL_FLAGS_BIT_OPTIONAL; in __devm_reset_control_get() local
222 return optional ? NULL : ERR_PTR(-ENOTSUPP); in __devm_reset_control_get()
230 bool optional = flags & RESET_CONTROL_FLAGS_BIT_OPTIONAL; in __devm_reset_control_bulk_get() local
232 return optional ? 0 : -EOPNOTSUPP; in __devm_reset_control_bulk_get()
238 bool optional = flags & RESET_CONTROL_FLAGS_BIT_OPTIONAL; in devm_reset_control_array_get() local
240 return optional ? NULL : ERR_PTR(-ENOTSUPP); in devm_reset_control_array_get()
246 bool optional = flags & RESET_CONTROL_FLAGS_BIT_OPTIONAL; in of_reset_control_array_get() local
248 return optional ? NULL : ERR_PTR(-ENOTSUPP); in of_reset_control_array_get()