Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 163) sorted by relevance

1234567

/u-boot/fs/yaffs2/
A Dyaffs_nameval.c35 int pos = 0; in nval_find() local
44 return pos; in nval_find()
59 int pos = 0; in nval_used() local
70 return pos; in nval_used()
78 if (pos < 0 || pos >= xb_size) in nval_del()
84 memcpy(xb + pos, xb + pos + size, xb_size - (pos + size)); in nval_del()
92 int pos; in nval_set() local
135 if (pos >= 0 && pos < xb_size) { in nval_get()
142 while (xb[pos] && size > 0 && pos < xb_size) { in nval_get()
143 pos++; in nval_get()
[all …]
/u-boot/include/linux/
A Dlist.h372 pos = pos->next)
385 for (pos = (head)->next; pos != (head); pos = pos->next)
394 pos = pos->prev)
403 for (pos = (head)->next, n = pos->next; pos != (head); \
404 pos = n, n = pos->next)
415 pos = n, n = pos->prev)
643 pos = pos->next)
646 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
660 pos = pos->next)
672 pos = pos->next)
[all …]
A Drbtree.h91 #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ argument
92 for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \
93 pos && ({ n = rb_entry_safe(rb_next_postorder(&pos->field), \
94 typeof(*pos), field); 1; }); \
95 pos = n)
/u-boot/lib/efi_selftest/
A Defi_selftest_console.c32 *pos++ = ':'; in mac()
39 *pos++ = c; in mac()
42 *pos = 0; in mac()
43 *buf = pos; in mac()
66 *pos++ = c; in printx()
69 *pos = 0; in printx()
70 *buf = pos; in printx()
109 *pos = 0; in uint2dec()
110 *buf = pos; in uint2dec()
133 *buf = pos; in int2dec()
[all …]
A Defi_selftest_fdt.c59 const fdt32_t *pos; in get_property() local
74 pos = (fdt32_t *)(fdt + f2h(header->off_dt_struct)); in get_property()
75 end = &pos[f2h(header->totalsize) >> 2]; in get_property()
78 for (; pos < end;) { in get_property()
79 switch (f2h(pos[0])) { in get_property()
81 const char *c = (char *)&pos[1]; in get_property()
89 pos = &pos[2 + (i >> 2)]; in get_property()
118 boottime->copy_mem(str, &pos[3], len); in get_property()
124 pos = &pos[3 + ((f2h(prop->len) + 3) >> 2)]; in get_property()
128 ++pos; in get_property()
[all …]
A Dinitrddump.c82 u16 *pos = buf; in printx() local
90 *pos++ = c; in printx()
93 *pos = 0; in printx()
152 efi_uintn_t pos = 0; in efi_input() local
175 if (pos) { in efi_input()
176 buffer[pos--] = 0; in efi_input()
194 buffer[pos] = 0; in efi_input()
208 for (; *pos && *pos <= 0x20; ++pos) in skip_whitespace()
210 return pos; in skip_whitespace()
428 u16 *pos; in efi_main() local
[all …]
/u-boot/tools/
A Datmelimage.c57 size_t pos; in atmel_find_pmecc_parameter_in_token() local
62 for (pos = 0; pos < ARRAY_SIZE(configs); pos++) { in atmel_find_pmecc_parameter_in_token()
118 size_t pos; in atmel_verify_header() local
122 for (pos = 0; pos < ARRAY_SIZE(nand_pmecc_header); pos++) in atmel_verify_header()
132 for (pos = 0; pos < 7; pos++) { in atmel_verify_header()
188 size_t pos; in atmel_print_header() local
191 for (pos = 0; pos < ARRAY_SIZE(nand_pmecc_header); pos++) in atmel_print_header()
198 pos += 5; in atmel_print_header()
201 pos = 5; in atmel_print_header()
244 size_t pos; in atmel_vrec_header() local
[all …]
/u-boot/test/
A Dunicode_ut.c185 char *pos; in unicode_test_utf8_put() local
276 u16 *pos; in unicode_test_utf8_utf16_strcpy() local
278 pos = buf; in unicode_test_utf8_utf16_strcpy()
283 pos = buf; in unicode_test_utf8_utf16_strcpy()
288 pos = buf; in unicode_test_utf8_utf16_strcpy()
293 pos = buf; in unicode_test_utf8_utf16_strcpy()
299 pos = buf; in unicode_test_utf8_utf16_strcpy()
304 pos = buf; in unicode_test_utf8_utf16_strcpy()
309 pos = buf; in unicode_test_utf8_utf16_strcpy()
321 u16 *pos; in unicode_test_utf8_utf16_strncpy() local
[all …]
/u-boot/include/linux/mtd/
A Dnand.h450 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_offs_to_pos()
502 (pos->lun + in nanddev_pos_to_offs()
539 pos->page = 0; in nanddev_pos_next_target()
540 pos->plane = 0; in nanddev_pos_next_target()
542 pos->lun = 0; in nanddev_pos_next_target()
543 pos->target++; in nanddev_pos_next_target()
560 pos->lun++; in nanddev_pos_next_lun()
561 pos->page = 0; in nanddev_pos_next_lun()
581 pos->page = 0; in nanddev_pos_next_eraseblock()
582 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_pos_next_eraseblock()
[all …]
/u-boot/scripts/dtc/
A Dsrcpos.c216 pos->file = current_srcfile; in srcpos_update()
250 if (pos->file && pos->file->name) in srcpos_string()
251 fname = pos->file->name; in srcpos_string()
254 if (pos->first_line != pos->last_line) in srcpos_string()
256 pos->first_line, pos->first_column, in srcpos_string()
257 pos->last_line, pos->last_column); in srcpos_string()
258 else if (pos->first_column != pos->last_column) in srcpos_string()
260 pos->first_line, pos->first_column, in srcpos_string()
261 pos->last_column); in srcpos_string()
264 pos->first_line, pos->first_column); in srcpos_string()
[all …]
/u-boot/drivers/mtd/nand/
A Dcore.c38 if (nand->ops->isbad(nand, pos)) in nanddev_isbad()
53 return nand->ops->isbad(nand, pos); in nanddev_isbad()
73 if (nanddev_isbad(nand, pos)) in nanddev_markbad()
76 ret = nand->ops->markbad(nand, pos); in nanddev_markbad()
79 nanddev_pos_to_offs(nand, pos), ret); in nanddev_markbad()
136 if (nanddev_isbad(nand, pos) || nanddev_isreserved(nand, pos)) { in nanddev_erase()
138 nanddev_pos_to_offs(nand, pos)); in nanddev_erase()
139 if (nanddev_isreserved(nand, pos)) in nanddev_erase()
148 return nand->ops->erase(nand, pos); in nanddev_erase()
170 struct nand_pos pos, last; in nanddev_mtd_erase() local
[all …]
A Dbbt.c82 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_get_block_status() local
90 status = pos[0] >> offs; in nanddev_bbt_get_block_status()
92 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status()
115 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_set_block_status() local
123 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status()
124 pos[0] |= val << offs; in nanddev_bbt_set_block_status()
129 pos[1] &= ~GENMASK(rbits - 1, 0); in nanddev_bbt_set_block_status()
130 pos[1] |= val >> (bits_per_block - rbits); in nanddev_bbt_set_block_status()
/u-boot/scripts/kconfig/
A Dlist.h49 #define list_for_each_entry(pos, head, member) \ argument
50 for (pos = list_entry((head)->next, typeof(*pos), member); \
51 &pos->member != (head); \
52 pos = list_entry(pos->member.next, typeof(*pos), member))
61 #define list_for_each_entry_safe(pos, n, head, member) \ argument
62 for (pos = list_entry((head)->next, typeof(*pos), member), \
63 n = list_entry(pos->member.next, typeof(*pos), member); \
64 &pos->member != (head); \
65 pos = n, n = list_entry(n->member.next, typeof(*n), member))
A Dmconf.c324 for (pos = subtitles; pos != NULL; pos = tmp) { in set_subtitle()
325 tmp = pos->next; in set_subtitle()
326 free(pos); in set_subtitle()
332 if (pos) { in set_subtitle()
333 pos->next = xcalloc(1, sizeof(*pos)); in set_subtitle()
334 pos = pos->next; in set_subtitle()
336 subtitles = pos = xcalloc(1, sizeof(*pos)); in set_subtitle()
349 for (pos = subtitles; pos != NULL; pos = tmp) { in reset_subtitle()
351 free(pos); in reset_subtitle()
370 if (pos->offset >= start && pos->offset < end) { in update_text()
[all …]
/u-boot/lib/
A Dsmbios-parser.c42 u8 *pos = ((u8 *)curr) + curr->length; in next_header() local
45 while (!((*pos == 0) && (*(pos + 1) == 0))) in next_header()
46 pos++; in next_header()
49 pos += 2; in next_header()
51 return (struct smbios_header *)pos; in next_header()
73 u8 *pos; in string_from_smbios_table() local
78 pos = ((u8 *)header) + header->length; in string_from_smbios_table()
81 if (*pos == 0x0) in string_from_smbios_table()
84 pos++; in string_from_smbios_table()
87 return (const char *)pos; in string_from_smbios_table()
A Dcharset.c325 for (; pos->upper; ++pos) { in utf_to_lower()
327 ret = pos->lower; in utf_to_lower()
344 for (; pos->lower; ++pos) { in utf_to_upper()
346 ret = pos->upper; in utf_to_upper()
383 for (; pos[0] || pos[1]; pos += 2) in u16_strlen()
505 const char *pos; in utf8_to_cp437_stream() local
510 pos = buffer; in utf8_to_cp437_stream()
520 if (pos == end) in utf8_to_cp437_stream()
529 const char *pos; in utf8_to_utf32_stream() local
533 pos = buffer; in utf8_to_utf32_stream()
[all …]
/u-boot/scripts/
A Dcleanpatch21 my $pos = 0;
31 $pos = $npos;
35 $pos += $nsp;
38 $pos = 0;
46 $pos++;
59 my $pos = 0;
65 $pos = ($pos+8) & ~7;
67 $mlen = $pos if ($pos > $mlen);
68 $pos = 0;
70 $pos++;
[all …]
/u-boot/drivers/net/fsl-mc/dpio/
A Dqbman_private.h95 unsigned int pos = 0; in DECLARE_CODEC32() local
99 pos += sprintf(buf + pos, "%08lx: ", start); in DECLARE_CODEC32()
102 pos += sprintf(buf + pos, ".."); in DECLARE_CODEC32()
104 pos += sprintf(buf + pos, "%02x", *(c++)); in DECLARE_CODEC32()
106 buf[pos++] = '\n'; in DECLARE_CODEC32()
111 buf[pos++] = ' '; in DECLARE_CODEC32()
113 buf[pos++] = ' '; in DECLARE_CODEC32()
117 buf[pos++] = '\n'; in DECLARE_CODEC32()
118 buf[pos] = '\0'; in DECLARE_CODEC32()
/u-boot/net/
A Dpcap.c19 static unsigned int pos; variable
61 pos = sizeof(file_header); in pcap_init()
90 pos = sizeof(file_header); in pcap_clear()
110 if ((pos + len + sizeof(header)) >= max_size) { in pcap_post()
121 memcpy(buf + pos, &header, sizeof(header)); in pcap_post()
122 pos += sizeof(header); in pcap_post()
123 memcpy(buf + pos, packet, len); in pcap_post()
124 pos += len; in pcap_post()
131 env_set_hex("pcapsize", pos); in pcap_post()
146 pos); in pcap_print_status()
/u-boot/drivers/pci/
A Dpcie_phytium.c34 unsigned char pos, id; in phytium_pci_skip_dev() local
43 pos = 0x34; in phytium_pci_skip_dev()
45 pos = readb(addr + pos); in phytium_pci_skip_dev()
46 if (pos < 0x40) in phytium_pci_skip_dev()
48 pos &= ~3; in phytium_pci_skip_dev()
49 id = readb(addr + pos); in phytium_pci_skip_dev()
53 capreg = readw(addr + pos + 2); in phytium_pci_skip_dev()
60 pos += 1; in phytium_pci_skip_dev()
/u-boot/drivers/gpio/
A Dsh_pfc.c76 unsigned long pos; in gpio_read_bit() local
90 unsigned long pos; in gpio_write_bit() local
162 mask = ~(mask << pos); in write_config_reg()
163 value = value << pos; in write_config_reg()
267 pos = 0; in get_config_reg()
285 pos += ncomb; in get_config_reg()
308 if (pos) { in get_gpio_enum_id()
310 return pos + 1; in get_gpio_enum_id()
361 pos = 0; in pinmux_config_gpio()
366 pos = get_gpio_enum_id(gpioc, gpio, pos, &enum_id); in pinmux_config_gpio()
[all …]
/u-boot/drivers/mtd/spi/
A Dsandbox.c321 uint cnt, pos = 0; in sandbox_sf_xfer() local
336 ++pos; in sandbox_sf_xfer()
355 tx[pos++] = id; in sandbox_sf_xfer()
369 pos++; in sandbox_sf_xfer()
403 cnt = bytes - pos; in sandbox_sf_xfer()
411 pos += ret; in sandbox_sf_xfer()
417 pos += cnt; in sandbox_sf_xfer()
423 pos += cnt; in sandbox_sf_xfer()
427 pos = bytes; in sandbox_sf_xfer()
450 pos += ret; in sandbox_sf_xfer()
[all …]
/u-boot/drivers/input/
A Dkey_matrix.c60 int pos; in key_matrix_decode() local
71 pos = key->row * config->num_cols + key->col; in key_matrix_decode()
72 if (config->fn_keycode && pos == config->fn_pos) in key_matrix_decode()
77 keycode[valid++] = keymap[pos]; in key_matrix_decode()
78 debug(" keycode=%d\n", keymap[pos]); in key_matrix_decode()
109 int map_keycode, int *pos) in create_keymap() argument
113 if (pos) in create_keymap()
114 *pos = -1; in create_keymap()
134 if (pos && map_keycode == key_code) in create_keymap()
135 *pos = entry; in create_keymap()
/u-boot/scripts/kconfig/lxdialog/
A Dinputbox.c36 int show_x, len, pos; in dialog_inputbox() local
89 pos = len; in dialog_inputbox()
117 if (pos) { in dialog_inputbox()
124 if (pos < len) { in dialog_inputbox()
130 pos--; in dialog_inputbox()
146 if (pos > 0) { in dialog_inputbox()
161 pos--; in dialog_inputbox()
165 if (pos < len) { in dialog_inputbox()
180 pos++; in dialog_inputbox()
187 if (pos < len) { in dialog_inputbox()
[all …]
/u-boot/fs/jffs2/
A Dcompr_rtime.c56 int pos; in rtime_decompress() local
59 outpos = pos = 0; in rtime_decompress()
68 value = data_in[pos++]; in rtime_decompress()
70 repeat = data_in[pos++]; in rtime_decompress()

Completed in 244 milliseconds

1234567