Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 47) sorted by relevance

12

/busybox-1.35.0/util-linux/
Dblkdiscard.c48 uint64_t length; /* shrink code size and hampers readability. */ in blkdiscard_main() local
71 length = xatoull_sfx(length_str, kMG_suffixes); in blkdiscard_main()
73 xioctl(fd, BLKGETSIZE64, &length); in blkdiscard_main()
74 length -= offset; in blkdiscard_main()
78 range[1] = length; in blkdiscard_main()
Dfbset.c75 uint32_t length; /* length of bitfield */ member
389 base->red.length = red_length; in read_mode_db()
392 base->green.length = green_length; in read_mode_db()
395 base->blue.length = blue_length; in read_mode_db()
398 base->transp.length = transp_length; in read_mode_db()
433 v->red.length, v->red.offset, v->green.length, v->green.offset, in showmode()
434 v->blue.length, v->blue.offset, v->transp.length, v->transp.offset); in showmode()
/busybox-1.35.0/miscutils/
Dbeep.c70 unsigned length = length; in beep_main() local
79 length = LENGTH; in beep_main()
93 length = xatou(optarg); in beep_main()
117 msleep(length); in beep_main()
Dflash_lock_unlock.c75 lock.length = info.size; in flash_lock_unlock_main()
96 lock.length = sectors * info.erasesize; in flash_lock_unlock_main()
Dnandwrite.c158 unsigned length = xstrtou(opt_l, 0); in nandwrite_main() local
159 if (length < meminfo.size - mtdoffset) in nandwrite_main()
160 end_addr = mtdoffset + length; in nandwrite_main()
181 oob.length = meminfo.oobsize; in nandwrite_main()
Drx.c80 unsigned length = 0; in receive() local
136 return length; in receive()
211 length += blockLength; in receive()
Dflashcp.c97 e.length = mtd.erasesize; in flashcp_main()
105 e.length = mtd.erasesize * erase_count; in flashcp_main()
Dflash_eraseall.c95 erase.length = meminfo.erasesize; in flash_eraseall_main()
193 oob.length = clmlen; in flash_eraseall_main()
Ddevfsd.c1613 int st_expr_expand(char *output, unsigned int length, const char *input, in st_expr_expand() argument
1636 if (length > BUFFER_SIZE) in st_expr_expand()
1637 length = BUFFER_SIZE; in st_expr_expand()
1642 input = expand_variable(buffer, length, &out_pos, ++input, get_variable_func, info); in st_expr_expand()
1657 if (len + out_pos >= length) in st_expr_expand()
1677 if (len + out_pos >= length) in st_expr_expand()
1685 if (out_pos >= length) in st_expr_expand()
1705 static const char *expand_variable(char *buffer, unsigned int length, in expand_variable() argument
1734 if (len + *out_pos >= length) in expand_variable()
1758 if (len + *out_pos >= length) in expand_variable()
[all …]
Di2c_tools.c192 uint8_t length, const uint8_t *values) in i2c_smbus_write_block_data() argument
196 if (length > I2C_SMBUS_BLOCK_MAX) in i2c_smbus_write_block_data()
197 length = I2C_SMBUS_BLOCK_MAX; in i2c_smbus_write_block_data()
199 memcpy(data.block+1, values, length); in i2c_smbus_write_block_data()
200 data.block[0] = length; in i2c_smbus_write_block_data()
207 uint8_t length, const uint8_t *values) in i2c_smbus_write_i2c_block_data() argument
211 if (length > I2C_SMBUS_BLOCK_MAX) in i2c_smbus_write_i2c_block_data()
212 length = I2C_SMBUS_BLOCK_MAX; in i2c_smbus_write_i2c_block_data()
214 memcpy(data.block+1, values, length); in i2c_smbus_write_i2c_block_data()
215 data.block[0] = length; in i2c_smbus_write_i2c_block_data()
/busybox-1.35.0/networking/udhcp/
Dcommon.c449 unsigned length, in udhcp_insert_new_option() argument
458 new->data = xzalloc(length + OPT_DATA); in udhcp_insert_new_option()
460 new->data[OPT_LEN] = length; in udhcp_insert_new_option()
462 new->data = xzalloc(length + D6_OPT_DATA); in udhcp_insert_new_option()
465 new->data[D6_OPT_LEN] = length >> 8; in udhcp_insert_new_option()
466 new->data[D6_OPT_LEN + 1] = length & 0xff; in udhcp_insert_new_option()
487 #define attach_option(opt_list, optflag, buffer, length, dhcpv6) \ argument
488 attach_option(opt_list, optflag, buffer, length)
494 int length, in attach_option() argument
507 length = end - allocated; in attach_option()
[all …]
Dcommon.h334 #define udhcp_insert_new_option(opt_list, code, length, dhcpv6) \ argument
335 udhcp_insert_new_option(opt_list, code, length)
339 unsigned length,
/busybox-1.35.0/coreutils/
Duudecode.c220 static void bb_b32encode(char *p, const void *src, int length) in bb_b32encode() argument
226 while (length > 0) { in bb_b32encode()
229 length--; in bb_b32encode()
235 if (--length >= 0) in bb_b32encode()
244 if (--length >= 0) in bb_b32encode()
250 if (--length >= 0) in bb_b32encode()
259 if (--length >= 0) in bb_b32encode()
270 length = ((-length) * 3) >> 1; /* -4 => 6 pad chars, -3 => 4, -2 => 3, -1 => 1 */ in bb_b32encode()
271 while (length--) { in bb_b32encode()
276 void bb_b32encode(char *p, const void *src, int length); /* undefined */
/busybox-1.35.0/libbb/
Duuencode.c51 void FAST_FUNC bb_uuencode(char *p, const void *src, int length, const char *tbl) in bb_uuencode() argument
56 while (length > 0) { in bb_uuencode()
61 length -= 3; /* can be >=0, -1, -2 */ in bb_uuencode()
62 if (length >= -1) { in bb_uuencode()
64 if (length >= 0) in bb_uuencode()
76 while (length) { in bb_uuencode()
78 length++; in bb_uuencode()
Dobscure.c96 unsigned length; in obscure_msg() local
105 if (!new_p || (length = strlen(new_p)) < CONFIG_PASSWORD_MINLEN) in obscure_msg()
127 for (i = 0; i < length; i++) { in obscure_msg()
152 if (c*2 >= length) { in obscure_msg()
161 if (length < size) in obscure_msg()
Dplatform.c120 int length = strlen(pattern); in strcasestr() local
123 if (strncasecmp(s, pattern, length) == 0) in strcasestr()
/busybox-1.35.0/testsuite/
Dbc_misc1.bc25 length(2381)
43 (length(2381))
Dbc_array.bc24 l = length(a[])
/busybox-1.35.0/networking/ssl_helper-wolfssl/
Dssl_helper.c134 int length;
138 wolfSSL_get_chain_cert_pem(chain, i, buffer, sizeof(buffer), &length);
139 buffer[length] = 0;
140 say("cert %d has length %d data = \n%s\n", i, length, buffer);
/busybox-1.35.0/shell/ash_test/ash-vars/
Dparam_expand_len1.tests1 # ${#c} for any single char c means "length of $c", including all special vars
/busybox-1.35.0/shell/hush_test/hush-vars/
Dparam_expand_len1.tests1 # ${#c} for any single char c means "length of $c", including all special vars
/busybox-1.35.0/archival/
Dgzip.c541 static void send_bits(unsigned value, unsigned length) in send_bits() argument
546 Tracev((stderr, " l %2d v %4x ", length, value)); in send_bits()
547 Assert(length > 0 && length <= 15, "invalid length"); in send_bits()
548 DEBUG_bits_sent(+= length); in send_bits()
555 length += G1.bi_valid; in send_bits()
558 if (length >= BUF_SIZE) { in send_bits()
570 length -= BUF_SIZE; in send_bits()
573 G1.bi_valid = length; in send_bits()
790 static void check_match(IPos start, IPos match, int length) in check_match() argument
793 if (memcmp(G1.window + match, G1.window + start, length) != 0) { in check_match()
[all …]
/busybox-1.35.0/archival/libarchive/
Ddecompress_bunzip2.c260 uint8_t length[MAX_SYMBOLS]; in get_next_block() local
294 length[i] = len_m1 + 1; in get_next_block()
298 minLen = maxLen = length[0]; in get_next_block()
300 if (length[i] > maxLen) in get_next_block()
301 maxLen = length[i]; in get_next_block()
302 else if (length[i] < minLen) in get_next_block()
303 minLen = length[i]; in get_next_block()
332 if (length[k] == i) in get_next_block()
340 temp[length[i]]++; in get_next_block()
/busybox-1.35.0/util-linux/volume_id/
Dudf.c42 uint32_t length; member
140 count = le32_to_cpu(vd->type.anchor.length) / bs; in volume_id_probe_udf()
/busybox-1.35.0/archival/libarchive/bz/
Dhuffman.c207 uint8_t *length, in BZ2_hbAssignCodes() argument
217 if (length[i] == n) { in BZ2_hbAssignCodes()

12