Lines Matching refs:cp
301 static inline int bch_strtol_h(const char *cp, long *res) in bch_strtol_h() argument
304 return bch_strtoint_h(cp, (int *) res); in bch_strtol_h()
306 return bch_strtoll_h(cp, (long long *) res); in bch_strtol_h()
310 static inline int bch_strtoul_h(const char *cp, long *res) in bch_strtoul_h() argument
313 return bch_strtouint_h(cp, (unsigned int *) res); in bch_strtoul_h()
315 return bch_strtoull_h(cp, (unsigned long long *) res); in bch_strtoul_h()
319 #define strtoi_h(cp, res) \ argument
321 ? bch_strtoint_h(cp, (void *) res) \
323 ? bch_strtol_h(cp, (void *) res) \
325 ? bch_strtoll_h(cp, (void *) res) \
327 ? bch_strtouint_h(cp, (void *) res) \
329 ? bch_strtoul_h(cp, (void *) res) \
331 ? bch_strtoull_h(cp, (void *) res) : -EINVAL)
333 #define strtoul_safe(cp, var) \ argument
336 int _r = kstrtoul(cp, 10, &_v); \
342 #define strtoul_safe_clamp(cp, var, min, max) \ argument
345 int _r = kstrtoul(cp, 10, &_v); \