Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 61) sorted by relevance

123

/busybox-1.35.0/miscutils/
Dhdparm.c570 static void xprint_ascii(uint16_t *val, int i, const char *string, int n) in xprint_ascii() argument
572 if (val[i]) { in xprint_ascii()
574 print_ascii((void*)&val[i], n); in xprint_ascii()
778 static void identify(uint16_t *val) NORETURN;
779 static void identify(uint16_t *val) in identify() argument
793 swab(val, buf, sizeof(buf)); in identify()
794 val = buf; in identify()
798 if (!(val[GEN_CONFIG] & NOT_ATA)) { in identify()
801 } else if (val[GEN_CONFIG]==CFA_SUPPORT_VAL) { in identify()
805 } else if (!(val[GEN_CONFIG] & NOT_ATAPI)) { in identify()
[all …]
/busybox-1.35.0/libbb/
Dcrc32.c55 uint32_t FAST_FUNC crc32_block_endian1(uint32_t val, const void *buf, unsigned len, uint32_t *crc_t… in crc32_block_endian1() argument
60 val = (val << 8) ^ crc_table[(val >> 24) ^ *(uint8_t*)buf]; in crc32_block_endian1()
63 return val; in crc32_block_endian1()
66 uint32_t FAST_FUNC crc32_block_endian0(uint32_t val, const void *buf, unsigned len, uint32_t *crc_t… in crc32_block_endian0() argument
71 val = crc_table[(uint8_t)val ^ *(uint8_t*)buf] ^ (val >> 8); in crc32_block_endian0()
74 return val; in crc32_block_endian0()
Dhuman_readable.c27 const char* FAST_FUNC make_human_readable_str(unsigned long long val, in make_human_readable_str() argument
38 if (val == 0) in make_human_readable_str()
43 val *= block_size; in make_human_readable_str()
48 val += display_unit/2; /* Deal with rounding */ in make_human_readable_str()
49 val /= display_unit; /* Don't combine with the line above! */ in make_human_readable_str()
52 while ((val >= 1024) in make_human_readable_str()
57 frac = (((unsigned)val % 1024) * 10 + 1024/2) / 1024; in make_human_readable_str()
58 val /= 1024; in make_human_readable_str()
61 ++val; in make_human_readable_str()
68 ++val; in make_human_readable_str()
[all …]
Din_ether.c20 unsigned char val; in in_ether() local
33 j = val = 0; in in_ether()
47 val <<= 4; in in_ether()
48 val += c; in in_ether()
52 *ptr++ = val; in in_ether()
Dxfuncs.c149 uint8_t val; in hex2bin() local
152 val = c - '0'; in hex2bin()
154 val = (c|0x20) - ('a' - 10); in hex2bin()
157 val <<= 4; in hex2bin()
160 val |= c - '0'; in hex2bin()
162 val |= (c|0x20) - ('a' - 10); in hex2bin()
164 val >>= 4; in hex2bin()
168 *dst++ = val; in hex2bin()
/busybox-1.35.0/archival/libarchive/unxz/
Dxz_config.h95 static inline void XZ_FUNC put_unaligned_le32(uint32_t val, uint8_t *buf) in put_unaligned_le32() argument
97 buf[0] = (uint8_t)val; in put_unaligned_le32()
98 buf[1] = (uint8_t)(val >> 8); in put_unaligned_le32()
99 buf[2] = (uint8_t)(val >> 16); in put_unaligned_le32()
100 buf[3] = (uint8_t)(val >> 24); in put_unaligned_le32()
105 static inline void XZ_FUNC put_unaligned_be32(uint32_t val, uint8_t *buf) in put_unaligned_be32() argument
107 buf[0] = (uint8_t)(val >> 24); in put_unaligned_be32()
108 buf[1] = (uint8_t)(val >> 16); in put_unaligned_be32()
109 buf[2] = (uint8_t)(val >> 8); in put_unaligned_be32()
110 buf[3] = (uint8_t)val; in put_unaligned_be32()
/busybox-1.35.0/scripts/kconfig/
Dsymbol.c157 return strtol(sym->curr.val, NULL, base); in sym_get_range_val()
163 int base, val, val2; in sym_validate_range() local
179 val = strtol(sym->curr.val, NULL, base); in sym_validate_range()
181 if (val >= val2) { in sym_validate_range()
183 if (val <= val2) in sym_validate_range()
190 sym->curr.val = strdup(str); in sym_validate_range()
230 def_sym = sym->user.val; in sym_calc_choice()
288 sym->curr.val = sym->name; in sym_calc_value()
305 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
332 newval.val = sym->user.val; in sym_calc_value()
[all …]
Dgconf.c83 const char *dbg_print_stype(int val) in dbg_print_stype() argument
89 if (val == S_UNKNOWN) in dbg_print_stype()
91 if (val == S_BOOLEAN) in dbg_print_stype()
93 if (val == S_TRISTATE) in dbg_print_stype()
95 if (val == S_INT) in dbg_print_stype()
97 if (val == S_HEX) in dbg_print_stype()
99 if (val == S_STRING) in dbg_print_stype()
101 if (val == S_OTHER) in dbg_print_stype()
111 const char *dbg_print_flags(int val) in dbg_print_flags() argument
117 if (val & SYMBOL_YES) in dbg_print_flags()
[all …]
/busybox-1.35.0/networking/udhcp/
Dcommon.c597 char *val; in udhcp_str2optset() local
600 val = strtok_r(NULL, "", &str); /* do not split "'q w e'" */ in udhcp_str2optset()
601 if (val) trim(val); in udhcp_str2optset()
603 val = strtok_r(NULL, ", \t", &str); in udhcp_str2optset()
604 if (!val) in udhcp_str2optset()
613 retval = udhcp_str2nip(val, buffer); in udhcp_str2optset()
616 retval = udhcp_str2nip(val, buffer); in udhcp_str2optset()
617 val = strtok_r(NULL, ", \t/-", &str); in udhcp_str2optset()
618 if (!val) in udhcp_str2optset()
621 retval = udhcp_str2nip(val, buffer + 4); in udhcp_str2optset()
[all …]
/busybox-1.35.0/coreutils/
Ddd.c276 static int parse_comma_flags(char *val, const char *words, const char *error_in) in parse_comma_flags() argument
286 arg = strchr(val, ','); in parse_comma_flags()
289 n = index_in_strings(words, val); in parse_comma_flags()
291 bb_error_msg_and_die(bb_msg_invalid_arg_to, val, error_in); in parse_comma_flags()
296 val = arg + 1; /* skip this keyword and ',' */ in parse_comma_flags()
405 char *val; in dd_main() local
414 val = strchr(arg, '='); in dd_main()
415 if (val == NULL) in dd_main()
417 *val = '\0'; in dd_main()
422 val++; in dd_main()
[all …]
Dexpr.c428 arith_t val; in eval4() local
439 val = arithmetic_common(l, r, op); in eval4()
442 l = int_value(val); in eval4()
452 arith_t val; in eval3() local
463 val = arithmetic_common(l, r, op); in eval3()
466 l = int_value(val); in eval3()
476 arith_t val; in eval2() local
493 val = cmp_common(l, r, op); in eval2()
496 l = int_value(val); in eval2()
/busybox-1.35.0/util-linux/
Dmdev.c352 static char *parse_envmatch_pfx(char *val) in parse_envmatch_pfx() argument
359 char *eq = strchr(val, '='); in parse_envmatch_pfx()
361 return val; in parse_envmatch_pfx()
362 if (endofname(val) != eq) in parse_envmatch_pfx()
363 return val; in parse_envmatch_pfx()
366 return val; in parse_envmatch_pfx()
370 e->envname = xstrndup(val, eq - val); in parse_envmatch_pfx()
374 val = semicolon + 1; in parse_envmatch_pfx()
383 char *val; in parse_next_rule() local
393 val = tokens[0]; in parse_next_rule()
[all …]
Dhexdump_xxd.c96 uint8_t val, c; in reverse() local
102 val = c - '0'; in reverse()
104 val = (c|0x20) - ('a' - 10); in reverse()
118 val <<= 4; in reverse()
130 val |= c - '0'; in reverse()
132 val |= (c|0x20) - ('a' - 10); in reverse()
148 putchar(val); in reverse()
Dmount.c1380 int val, idx; in nfsmount() local
1426 val = xatoi_positive(opteq); in nfsmount()
1429 data.rsize = val; in nfsmount()
1432 data.wsize = val; in nfsmount()
1435 data.timeo = val; in nfsmount()
1438 data.retrans = val; in nfsmount()
1441 data.acregmin = val; in nfsmount()
1444 data.acregmax = val; in nfsmount()
1447 data.acdirmin = val; in nfsmount()
1450 data.acdirmax = val; in nfsmount()
[all …]
Dipcrm.c36 int val; member
60 arg.val = 0; in remove_ids()
150 arg.val = 0; in ipcrm_main()
Dtaskset.c278 ul val; in process_pid_str() local
283 val = c - '0'; in process_pid_str()
285 val = (c|0x20) - ('a' - 10); in process_pid_str()
290 mask[i / BITS_UL] |= val << (i & MASK_UL); in process_pid_str()
/busybox-1.35.0/shell/
Dshell_common.c513 rlim_t val; in printlim() local
515 val = limit->rlim_max; in printlim()
517 val = limit->rlim_cur; in printlim()
519 if (val == RLIM_INFINITY) in printlim()
522 val >>= l->factor_shift; in printlim()
523 printf("%llu\n", (long long) val); in printlim()
652 rlim_t val = RLIM_INFINITY; in shell_builtin_ulimit() local
654 if (sizeof(val) == sizeof(int)) in shell_builtin_ulimit()
655 val = bb_strtou(val_str, NULL, 10); in shell_builtin_ulimit()
656 else if (sizeof(val) == sizeof(long)) in shell_builtin_ulimit()
[all …]
Dmath.c231 arith_t val; member
279 t->val = evaluate_string(math_state, p); in arith_lookup_val()
287 t->val = 0; in arith_lookup_val()
315 rez = top_of_stack->val; in arith_apply()
358 rez = top_of_stack->val; in arith_apply()
456 top_of_stack->val = rez; in arith_apply()
610 numstack->val = 0; in evaluate_string()
654 numstackptr->val = strto_arith_t(expr, (char**) &expr); in evaluate_string()
657 numstackptr->val = 0; /* bash compat */ in evaluate_string()
812 numstack->val = -1; in evaluate_string()
[all …]
Dmath.h75 typedef void FAST_FUNC (*arith_var_set_t)(const char *name, const char *val);
Dshell_common.h33 void FAST_FUNC (*setvar)(const char *name, const char *val);
/busybox-1.35.0/modutils/
Dmodutils.c128 const char *val; in parse_cmdline_module_options() local
133 val = strchrnul(var, '='); in parse_cmdline_module_options()
141 if (*val) { /* has var=val format. skip '=' */ in parse_cmdline_module_options()
142 val++; in parse_cmdline_module_options()
143 if (strchr(val, ' ')) in parse_cmdline_module_options()
147 optlen += sprintf(options + optlen, fmt, (int)(val - var), var, val); in parse_cmdline_module_options()
/busybox-1.35.0/archival/libarchive/
Ddata_extract_to_command.c49 static void dec2env(char *env[], int idx, unsigned long long val) in dec2env() argument
51 env[idx] = xasprintf("TAR_%s=%llu", tar_var[idx], val); in dec2env()
55 static void oct2env(char *env[], int idx, unsigned long val) in oct2env() argument
57 env[idx] = xasprintf("TAR_%s=%lo", tar_var[idx], val); in oct2env()
/busybox-1.35.0/shell/hush_test/hush-misc/
Denv_and_func.right1 var=val
/busybox-1.35.0/shell/ash_test/ash-misc/
Denv_and_func.right1 var=val
/busybox-1.35.0/shell/ash_test/ash-quoting/
Dmode_x.right1 + var1=val

123