Lines Matching refs:cp
306 static inline int bch_strtol_h(const char *cp, long *res) in bch_strtol_h() argument
309 return bch_strtoint_h(cp, (int *) res); in bch_strtol_h()
311 return bch_strtoll_h(cp, (long long *) res); in bch_strtol_h()
315 static inline int bch_strtoul_h(const char *cp, long *res) in bch_strtoul_h() argument
318 return bch_strtouint_h(cp, (unsigned int *) res); in bch_strtoul_h()
320 return bch_strtoull_h(cp, (unsigned long long *) res); in bch_strtoul_h()
324 #define strtoi_h(cp, res) \ argument
326 ? bch_strtoint_h(cp, (void *) res) \
328 ? bch_strtol_h(cp, (void *) res) \
330 ? bch_strtoll_h(cp, (void *) res) \
332 ? bch_strtouint_h(cp, (void *) res) \
334 ? bch_strtoul_h(cp, (void *) res) \
336 ? bch_strtoull_h(cp, (void *) res) : -EINVAL)
338 #define strtoul_safe(cp, var) \ argument
341 int _r = kstrtoul(cp, 10, &_v); \
347 #define strtoul_safe_clamp(cp, var, min, max) \ argument
350 int _r = kstrtoul(cp, 10, &_v); \