/lk-master/lib/fs/ext2/ |
A D | io.c | 37 pos[0] = block_to_find; in ext2_calculate_block_pointer_pos() 46 pos[0] = EXT2_IND_BLOCK; in ext2_calculate_block_pointer_pos() 47 pos[1] = block_to_find; in ext2_calculate_block_pointer_pos() 56 pos[0] = EXT2_DIND_BLOCK; in ext2_calculate_block_pointer_pos() 57 pos[1] = block_to_find / block_ptr_per_block; in ext2_calculate_block_pointer_pos() 58 pos[2] = block_to_find % block_ptr_per_block; in ext2_calculate_block_pointer_pos() 66 pos[0] = EXT2_TIND_BLOCK; in ext2_calculate_block_pointer_pos() 67 pos[1] = block_to_find / block_ptr_per_2nd_block; in ext2_calculate_block_pointer_pos() 133 uint32_t pos[4]; in file_block_to_fs_block() local 137 LTRACEF("level %d, pos 0x%x 0x%x 0x%x 0x%x\n", level, pos[0], pos[1], pos[2], pos[3]); in file_block_to_fs_block() [all …]
|
A D | dir.c | 40 uint pos = 0; in ext2_dir_lookup() local 41 while (pos < EXT2_BLOCK_SIZE(ext2->sb)) { in ext2_dir_lookup() 42 ent = (struct ext2_dir_entry_2 *)&buf[pos]; in ext2_dir_lookup() 45 … file_blocknum, pos, LE32(ent->inode), LE16(ent->rec_len), ent->name_len/* , ent->name*/); in ext2_dir_lookup() 59 pos += ROUNDUP(LE16(ent->rec_len), 4); in ext2_dir_lookup()
|
/lk-master/lib/libc/ |
A D | printf.c | 53 size_t pos; member 78 args.pos = 0; in vsnprintf() 112 buf[--pos] = 0; in longlong_to_string() 143 buf[--pos] = 0; in longlong_to_hexstring() 165 size_t pos = 0; in exponent_to_string() local 179 else pos++; in exponent_to_string() 182 uint i = pos; in exponent_to_string() 192 return pos; in exponent_to_string() 290 buf[pos] = 0; in double_to_string() 369 pos += exponent_to_string(&buf[pos], exponent_signed); in double_to_hexstring() [all …]
|
/lk-master/lib/cbuf/ |
A D | cbuf.c | 63 size_t pos = 0; in cbuf_write() local 65 while (pos < len && cbuf_space_avail(cbuf) > 0) { in cbuf_write() 80 write_len = MIN(cbuf->tail - cbuf->head - 1, len - pos); in cbuf_write() 91 memcpy(cbuf->buf + cbuf->head, buf + pos, write_len); in cbuf_write() 95 pos += write_len; in cbuf_write() 107 return pos; in cbuf_write() 127 size_t pos = 0; in cbuf_read() local 131 while (pos < buflen && cbuf->tail != cbuf->head) { in cbuf_read() 147 pos += read_len; in cbuf_read() 151 DEBUG_ASSERT(pos > 0); in cbuf_read() [all …]
|
/lk-master/lib/console/ |
A D | console.c | 261 int pos = 0; in read_debug_line() local 355 pos = 0; in read_debug_line() 364 buffer[pos] = 0; in read_debug_line() 374 return pos; in read_debug_line() 718 int pos; member 739 lineread->pos++; in fetch_next_line() 753 lineread.pos = 0; in console_run_script_etc() 821 size_t pos = 0; in read_line_panic() local 837 pos--; in read_line_panic() 847 pos = 0; in read_line_panic() [all …]
|
/lk-master/lib/sysparam/ |
A D | sysparam.c | 180 size_t pos = 0; in sysparam_scan() local 181 while (pos < len) { in sysparam_scan() 199 pos += splen; in sysparam_scan() 333 off_t pos = 0; in sysparam_write() local 360 if (pos % 4) { in sysparam_write() 362 pos += 2; in sysparam_write() 477 uint pos; in hexstr_to_val() local 478 for (pos = 0; str[pos] != 0; pos++) { in hexstr_to_val() 493 hexbuffer[pos / 2] |= (!(pos % 2)) ? (c << 4) : c; in hexstr_to_val() 495 pos = (pos + 1) / 2; /* round down, keeping partial bytes */ in hexstr_to_val() [all …]
|
/lk-master/app/lkboot/ |
A D | dcc.c | 116 size_t pos = 0; in dcc_read() local 122 while (pos < len) { in dcc_read() 134 size_t tocopy = MIN(htod_index - htod_pos, len - pos); in dcc_read() 136 memcpy(&data[pos], &htod_buffer[htod_pos], tocopy); in dcc_read() 137 pos += tocopy; in dcc_read() 157 size_t pos = 0; in dcc_write() local 161 while (pos < len) { in dcc_write() 162 LTRACEF("pos %zu, len %zu, dtoh_filled %d\n", pos, len, dtoh_filled); in dcc_write() 173 pos += tocopy; in dcc_write() 187 return pos; in dcc_write()
|
A D | commands.c | 314 size_t pos = 0; in lkb_handle_command() local 315 while (pos < len) { in lkb_handle_command() 316 size_t toread = MIN(len - pos, bdev->block_size); in lkb_handle_command() 318 LTRACEF("offset %zu, toread %zu\n", pos, toread); in lkb_handle_command() 326 if (bio_write(bdev, buf, entry.offset + pos, toread) != (ssize_t)toread) { in lkb_handle_command() 332 pos += toread; in lkb_handle_command()
|
/lk-master/lib/tga/ |
A D | tga.c | 144 uint pos = 0; in tga_decode() local 156 decodefunc(surface, x, surfacey, (const uint8_t *)imagestart + pos); in tga_decode() 157 pos += step; in tga_decode() 162 uint pos = 0; in tga_decode() local 175 uint8_t run = *((const uint8_t *)imagestart + pos); in tga_decode() 182 pos++; in tga_decode() 186 decodefunc(surface, x, y, (const uint8_t *)imagestart + pos); in tga_decode() 200 pos += step; in tga_decode() 204 pos += step; in tga_decode()
|
/lk-master/external/platform/stm32f1xx/STM32F10x_StdPeriph_Driver/src/ |
A D | stm32f10x_gpio.c | 197 pos = ((uint32_t)0x01) << pinpos; in GPIO_Init() 199 currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; in GPIO_Init() 200 if (currentpin == pos) in GPIO_Init() 202 pos = pinpos << 2; in GPIO_Init() 204 pinmask = ((uint32_t)0x0F) << pos; in GPIO_Init() 207 tmpreg |= (currentmode << pos); in GPIO_Init() 232 pos = (((uint32_t)0x01) << (pinpos + 0x08)); in GPIO_Init() 235 if (currentpin == pos) in GPIO_Init() 237 pos = pinpos << 2; in GPIO_Init() 239 pinmask = ((uint32_t)0x0F) << pos; in GPIO_Init() [all …]
|
/lk-master/lib/buildsig/ |
A D | buildsig.c | 65 for (size_t pos = 0; pos < search_len / 4; pos++) { in buildsig_search() local 66 const struct buildsig *sig = (void *)&ptr[pos]; in buildsig_search()
|
/lk-master/lib/minip/ |
A D | lk_console.c | 22 uint8_t pos = 0, i = 0; in str_ip_to_int() local 24 while (pos < len) { in str_ip_to_int() 25 char c = s[pos]; in str_ip_to_int() 32 pos++; in str_ip_to_int()
|
A D | minip.c | 445 uint8_t pos = 0, i = 0; in minip_parse_ipaddr() local 447 while (pos < len) { in minip_parse_ipaddr() 448 char c = ipaddr_str[pos]; in minip_parse_ipaddr() 457 pos++; in minip_parse_ipaddr()
|
/lk-master/tools/ |
A D | liblkboot.c | 68 size_t pos = 0; in upload() local 69 while (pos < txlen) { in upload() 70 size_t xfer = (txlen - pos > 65536) ? 65536 : txlen - pos; in upload() 80 if (write(s, buf + pos, xfer) != xfer) { in upload() 85 pos += xfer; in upload()
|
/lk-master/lib/fs/ |
A D | fs.c | 480 int pos; in fs_normalize_path() local 496 pos = 0; in fs_normalize_path() 502 c = path[pos]; in fs_normalize_path() 529 pos++; in fs_normalize_path() 533 pos++; in fs_normalize_path() 540 pos++; in fs_normalize_path() 548 pos++; // consume the dot in fs_normalize_path() 558 pos++; in fs_normalize_path() 570 pos++; // consume the dot in fs_normalize_path() 589 pos++; in fs_normalize_path()
|
/lk-master/dev/fbcon/ |
A D | fbcon.c | 37 struct pos { struct 53 static struct pos cur_pos; argument 54 static struct pos max_pos;
|
/lk-master/external/lib/lwip/core/ |
A D | tcp_out.c | 358 u16_t pos = 0; /* position in 'arg' data */ in tcp_write() local 452 pos += oversize_used; in tcp_write() 467 if ((pos < len) && (space > 0) && (last_unsent->len > 0)) { in tcp_write() 468 u16_t seglen = space < len - pos ? space : len - pos; in tcp_write() 503 concat_p->payload = (u8_t*)arg + pos; in tcp_write() 506 pos += seglen; in tcp_write() 522 while (pos < len) { in tcp_write() 524 u16_t left = len - pos; in tcp_write() 558 chksum = ~inet_chksum((u8_t*)arg + pos, seglen); in tcp_write() 561 p2->payload = (u8_t*)arg + pos; in tcp_write() [all …]
|
/lk-master/platform/stm32f0xx/ |
A D | i2c.c | 44 uint16_t pos; member 148 return buf->pos >= buf->len; in stm32_i2c_buf_is_done() 152 return buf->data[buf->pos++]; in stm32_i2c_buf_pop() 156 buf->data[buf->pos++] = data; in stm32_i2c_buf_push() 270 buf->pos = 0; in stm32_i2c_setup_buf()
|
/lk-master/external/platform/stm32f4xx/STM32F4xx_StdPeriph_Driver/src/ |
A D | stm32f4xx_gpio.c | 204 uint32_t pinpos = 0x00, pos = 0x00 , currentpin = 0x00; in GPIO_Init() local 216 pos = ((uint32_t)0x01) << pinpos; in GPIO_Init() 218 currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; in GPIO_Init() 220 if (currentpin == pos) in GPIO_Init()
|
/lk-master/external/platform/stm32f2xx/STM32F2xx_StdPeriph_Driver/src/ |
A D | stm32f2xx_gpio.c | 190 uint32_t pinpos = 0x00, pos = 0x00 , currentpin = 0x00; in GPIO_Init() local 202 pos = ((uint32_t)0x01) << pinpos; in GPIO_Init() 204 currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; in GPIO_Init() 206 if (currentpin == pos) in GPIO_Init()
|
/lk-master/platform/armemu/ |
A D | net.c | 197 int pos = 0; in low_level_input() local 203 ((unsigned char *)q->payload)[i] = *REG8(NET_IN_BUF + pos); in low_level_input() 204 pos++; in low_level_input()
|
/lk-master/lib/bio/ |
A D | debug.c | 243 unsigned long pos = offset; in cmd_bio() local 244 while (pos < offset + len) { in cmd_bio() 245 ssize_t err = bio_read(dev, buf, pos, MIN(len - (pos - offset), dev->block_size)); in cmd_bio() 248 printf("error reading at offset 0x%lx\n", offset + pos); in cmd_bio() 254 pos += err; in cmd_bio()
|
/lk-master/external/arch/arm/arm-m/CMSIS/Include/ |
A D | mpu_armv8.h | 191 const uint32_t pos = ((idx % 4U) * 8U); in ARM_MPU_SetMemAttrEx() local 192 const uint32_t mask = 0xFFU << pos; in ARM_MPU_SetMemAttrEx() 198 mpu->MAIR[reg] = ((mpu->MAIR[reg] & ~mask) | ((attr << pos) & mask)); in ARM_MPU_SetMemAttrEx()
|
/lk-master/external/platform/nrfx/drivers/src/ |
A D | nrfx_dppi.c | 58 #define DPPI_BIT_SET(pos) (1uL << (pos)) argument
|
/lk-master/lib/fs/spifs/test/ |
A D | spifstest.c | 486 for (size_t pos = 0; pos < repeats; pos++) { in test_write_with_offset() local 487 bytes = fs_write_file(handle, test_message, pos * msg_len, msg_len); in test_write_with_offset()
|