Home
last modified time | relevance | path

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

12345678910>>...17

/openbmc/u-boot/include/linux/
H A Dlist.h356 #define list_for_each(pos, head) \ argument
357 for (pos = (head)->next; prefetch(pos->next), pos != (head); \
358 pos = pos->next)
370 #define __list_for_each(pos, head) \ argument
371 for (pos = (head)->next; pos != (head); pos = pos->next)
378 #define list_for_each_prev(pos, head) \ argument
379 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \
380 pos = pos->prev)
388 #define list_for_each_safe(pos, n, head) \ argument
389 for (pos = (head)->next, n = pos->next; pos != (head); \
[all …]
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_nameval.c35 int pos = 0; in nval_find() local
39 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_find()
40 if (!yaffs_strncmp((YCHAR *) (xb + pos + sizeof(int)), in nval_find()
44 return pos; in nval_find()
46 pos += size; in nval_find()
47 if (pos < xb_size - sizeof(int)) in nval_find()
48 memcpy(&size, xb + pos, sizeof(int)); in nval_find()
59 int pos = 0; in nval_used() local
62 memcpy(&size, xb + pos, sizeof(int)); in nval_used()
63 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_used()
[all …]
/openbmc/u-boot/test/
H A Dunicode_ut.c160 char *pos; in unicode_test_utf8_put() local
163 pos = buffer; in unicode_test_utf8_put()
164 ut_assert(!utf8_put('@', &pos)) in unicode_test_utf8_put()
165 ut_asserteq(1, pos - buffer); in unicode_test_utf8_put()
170 pos = buffer; in unicode_test_utf8_put()
171 ut_assert(!utf8_put(0x1f4, &pos)); in unicode_test_utf8_put()
172 ut_asserteq(2, pos - buffer); in unicode_test_utf8_put()
176 pos = buffer; in unicode_test_utf8_put()
177 ut_assert(!utf8_put(0x1701, &pos)); in unicode_test_utf8_put()
178 ut_asserteq(3, pos - buffer); in unicode_test_utf8_put()
[all …]
/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest_console.c27 u16 *pos = *buf; in mac() local
31 *pos++ = ':'; in mac()
38 *pos++ = c; in mac()
41 *pos = 0; in mac()
42 *buf = pos; in mac()
57 u16 *pos = *buf; in pointer() local
64 *pos++ = c; in pointer()
66 *pos = 0; in pointer()
67 *buf = pos; in pointer()
80 u16 *pos = *buf; in uint2dec() local
[all …]
H A Defi_selftest_fdt.c52 const fdt32_t *pos; in get_property() local
63 pos = (fdt32_t *)(fdt + f2h(header->off_dt_struct)); in get_property()
67 switch (f2h(pos[0])) { in get_property()
69 char *c = (char *)&pos[1]; in get_property()
74 pos = &pos[2 + (i >> 2)]; in get_property()
78 struct fdt_property *prop = (struct fdt_property *)pos; in get_property()
100 boottime->copy_mem(str, &pos[3], len); in get_property()
106 pos = &pos[3 + ((f2h(prop->len) + 3) >> 2)]; in get_property()
110 pos = &pos[1]; in get_property()
/openbmc/u-boot/tools/
H 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()
63 if (strncmp(token, configs[pos], strlen(configs[pos])) == 0) { in atmel_find_pmecc_parameter_in_token()
69 debug("\t%s parameter: '%s'\n", configs[pos], param); in atmel_find_pmecc_parameter_in_token()
71 switch (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()
123 if (ints[pos] >> 28 != 0xC) in atmel_verify_header()
126 if (pos == ARRAY_SIZE(nand_pmecc_header)) { in atmel_verify_header()
132 for (pos = 0; pos < 7; pos++) { in atmel_verify_header()
[all …]
/openbmc/u-boot/include/linux/mtd/
H A Dnand.h97 struct nand_pos pos; member
152 int (*erase)(struct nand_device *nand, const struct nand_pos *pos);
153 int (*markbad)(struct nand_device *nand, const struct nand_pos *pos);
154 bool (*isbad)(struct nand_device *nand, const struct nand_pos *pos);
428 struct nand_pos *pos) in nanddev_offs_to_pos() argument
434 pos->page = do_div(tmp, nand->memorg.pages_per_eraseblock); in nanddev_offs_to_pos()
435 pos->eraseblock = do_div(tmp, nand->memorg.eraseblocks_per_lun); in nanddev_offs_to_pos()
436 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_offs_to_pos()
437 pos->lun = do_div(tmp, nand->memorg.luns_per_target); in nanddev_offs_to_pos()
438 pos->target = tmp; in nanddev_offs_to_pos()
[all …]
/openbmc/slpd-lite/
H A Dslp_parser.cpp121 uint32_t pos = slp::header::MIN_LEN + req.header.langtagLen; in parseSrvTypeRqst() local
122 if ((pos + slp::request::SIZE_PRLIST) > buff.size()) in parseSrvTypeRqst()
125 << (pos + slp::request::SIZE_PRLIST) << " / " << buff.size() in parseSrvTypeRqst()
129 std::copy_n(buff.data() + pos, slp::request::SIZE_PRLIST, in parseSrvTypeRqst()
132 pos += slp::request::SIZE_PRLIST; in parseSrvTypeRqst()
135 if ((pos + prListLen) > buff.size()) in parseSrvTypeRqst()
143 req.body.srvtyperqst.prList.insert(0, (const char*)buff.data() + pos, in parseSrvTypeRqst()
146 pos += prListLen; in parseSrvTypeRqst()
150 if ((pos + slp::request::SIZE_NAMING) > buff.size()) in parseSrvTypeRqst()
153 << (pos + slp::request::SIZE_NAMING) << " / " << buff.size() in parseSrvTypeRqst()
[all …]
/openbmc/qemu/hw/uefi/
H A Dvar-service-utils.c25 size_t pos = 0; in uefi_str_is_valid() local
28 if (pos == len) { in uefi_str_is_valid()
35 switch (str[pos]) { in uefi_str_is_valid()
46 pos++; in uefi_str_is_valid()
52 size_t pos = 0; in uefi_strlen() local
55 if (pos == len) { in uefi_strlen()
56 return pos; in uefi_strlen()
58 if (str[pos] == 0) { in uefi_strlen()
59 return pos; in uefi_strlen()
61 pos++; in uefi_strlen()
[all …]
/openbmc/u-boot/scripts/dtc/
H A Dsrcpos.c212 void srcpos_update(struct srcpos *pos, const char *text, int len) in srcpos_update() argument
216 pos->file = current_srcfile; in srcpos_update()
218 pos->first_line = current_srcfile->lineno; in srcpos_update()
219 pos->first_column = current_srcfile->colno; in srcpos_update()
229 pos->last_line = current_srcfile->lineno; in srcpos_update()
230 pos->last_column = current_srcfile->colno; in srcpos_update()
234 srcpos_copy(struct srcpos *pos) in srcpos_copy() argument
239 memcpy(pos_new, pos, sizeof(struct srcpos)); in srcpos_copy()
245 srcpos_string(struct srcpos *pos) in srcpos_string() argument
250 if (pos->file && pos->file->name) in srcpos_string()
[all …]
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/dracut/dracut/
H A D0001-feat-dracut-install-split-ldd-command-arguments-for-.patch37 + int start, pos, idx = 0;
42 + pos = 0;
43 + while (isspace(ldd[pos]))
44 + pos++;
45 + for (; ldd[pos]; pos++) {
46 + if (isspace(ldd[pos])) {
47 + if (pos)
49 + while (isspace(ldd[pos]))
50 + pos++;
57 + pos = 0;
[all …]
/openbmc/u-boot/drivers/mtd/nand/
H A Dcore.c24 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad() argument
30 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_isbad()
34 if (nand->ops->isbad(nand, pos)) in nanddev_isbad()
49 return nand->ops->isbad(nand, pos); in nanddev_isbad()
63 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad() argument
69 if (nanddev_isbad(nand, pos)) in nanddev_markbad()
72 ret = nand->ops->markbad(nand, pos); in nanddev_markbad()
75 nanddev_pos_to_offs(nand, pos), ret); in nanddev_markbad()
80 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_markbad()
104 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved() argument
[all …]
H A Dbbt.c79 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_get_block_status() local
87 status = pos[0] >> offs; in nanddev_bbt_get_block_status()
89 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status()
112 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_set_block_status() local
120 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status()
121 pos[0] |= val << offs; in nanddev_bbt_set_block_status()
126 pos[1] &= ~GENMASK(rbits - 1, 0); in nanddev_bbt_set_block_status()
127 pos[1] |= val >> rbits; in nanddev_bbt_set_block_status()
/openbmc/u-boot/scripts/kconfig/
H 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))
/openbmc/qemu/tests/tcg/s390x/
H A Dvfminmax.c283 int pos = 0; in main() local
288 memcpy(&v2[pos], in main()
291 memcpy(&v3[pos], in main()
296 memcpy(&v1_exp[pos], &v2[pos], float_size); in main()
299 memcpy(&v1_exp[pos], &v3[pos], float_size); in main()
301 memcpy(&v1_exp[pos], &v2[pos], float_size); in main()
302 snan_to_qnan(&v1_exp[pos], fmt); in main()
304 memcpy(&v1_exp[pos], &v3[pos], float_size); in main()
305 snan_to_qnan(&v1_exp[pos], fmt); in main()
314 int v2_int = *(int *)&v2[pos]; in main()
[all …]
/openbmc/qemu/replay/
H A Dreplay-audio.c40 int pos; in replay_audio_in() local
48 for (pos = (*wpos - *recorded + size) % size ; pos != *wpos in replay_audio_in()
49 ; pos = (pos + 1) % size) { in replay_audio_in()
50 audio_sample_to_uint64(samples, pos, &left, &right); in replay_audio_in()
60 for (pos = (*wpos - *recorded + size) % size ; pos != *wpos in replay_audio_in()
61 ; pos = (pos + 1) % size) { in replay_audio_in()
64 audio_sample_from_uint64(samples, pos, left, right); in replay_audio_in()
/openbmc/u-boot/scripts/
H A Dcleanpatch21 my $pos = 0;
28 my $npos = ($pos+$nsp+8) & ~7;
29 my $ntab = ($npos >> 3) - ($pos >> 3);
31 $pos = $npos;
35 $pos += $nsp;
38 $pos = 0;
43 $pos += $nsp;
46 $pos++;
59 my $pos = 0;
65 $pos = ($pos+8) & ~7;
[all …]
/openbmc/obmc-console/
H A Dutil.c24 size_t pos; in write_buf_to_fd() local
27 for (pos = 0; pos < len; pos += rc) { in write_buf_to_fd()
28 rc = write(fd, buf + pos, len - pos); in write_buf_to_fd()
/openbmc/u-boot/drivers/net/fsl-mc/dpio/
H A Dqbman_private.h94 unsigned int pos = 0; in DECLARE_CODEC32() local
98 pos += sprintf(buf + pos, "%08lx: ", start); in DECLARE_CODEC32()
101 pos += sprintf(buf + pos, ".."); in DECLARE_CODEC32()
103 pos += sprintf(buf + pos, "%02x", *(c++)); in DECLARE_CODEC32()
105 buf[pos++] = '\n'; in DECLARE_CODEC32()
110 buf[pos++] = ' '; in DECLARE_CODEC32()
112 buf[pos++] = ' '; in DECLARE_CODEC32()
116 buf[pos++] = '\n'; in DECLARE_CODEC32()
117 buf[pos] = '\0'; in DECLARE_CODEC32()
/openbmc/qemu/hw/misc/
H A Di2c-echo.c35 unsigned int pos; member
52 state->pos++; in i2c_echo_bh()
57 if (state->pos > 2) { in i2c_echo_bh()
61 if (i2c_send_async(state->bus, state->data[state->pos++])) { in i2c_echo_bh()
82 state->pos = 0; in i2c_echo_event()
88 state->pos = 0; in i2c_echo_event()
94 state->pos = 0; in i2c_echo_event()
117 if (state->pos > 2) { in i2c_echo_recv()
121 trace_i2c_echo_recv(DEVICE(s)->canonical_path, state->data[state->pos]); in i2c_echo_recv()
122 return state->data[state->pos++]; in i2c_echo_recv()
[all …]
/openbmc/phosphor-mboxd/
H A Dmtd.c18 char *ret = NULL, *pos = NULL; in get_dev_mtd() local
25 while (!pos && fgets(line, sizeof(line), f) != NULL) { in get_dev_mtd()
31 pos = strchr(line, ':'); in get_dev_mtd()
32 if (!pos) in get_dev_mtd()
38 if (pos) { in get_dev_mtd()
39 *pos = '\0'; in get_dev_mtd()
/openbmc/hiomapd/
H A Dmtd.c18 char *ret = NULL, *pos = NULL; in get_dev_mtd() local
25 while (!pos && fgets(line, sizeof(line), f) != NULL) { in get_dev_mtd()
31 pos = strchr(line, ':'); in get_dev_mtd()
32 if (!pos) in get_dev_mtd()
38 if (pos) { in get_dev_mtd()
39 *pos = '\0'; in get_dev_mtd()
/openbmc/u-boot/drivers/gpio/
H A Dsh_pfc.c72 unsigned long pos; in gpio_read_bit() local
74 pos = dr->reg_width - (in_pos + 1); in gpio_read_bit()
77 dr->reg + offset, pos, dr->reg_width); in gpio_read_bit()
80 dr->reg_width) >> pos) & 1; in gpio_read_bit()
86 unsigned long pos; in gpio_write_bit() local
88 pos = dr->reg_width - (in_pos + 1); in gpio_write_bit()
92 dr->reg, !!value, pos, dr->reg_width); in gpio_write_bit()
95 __set_bit(pos, &dr->reg_shadow); in gpio_write_bit()
97 __clear_bit(pos, &dr->reg_shadow); in gpio_write_bit()
134 unsigned long mask, pos; in read_config_reg() local
[all …]
/openbmc/qemu/hw/xen/
H A Dxen-host-pci-device.h51 int xen_host_pci_get_byte(XenHostPCIDevice *d, int pos, uint8_t *p);
52 int xen_host_pci_get_word(XenHostPCIDevice *d, int pos, uint16_t *p);
53 int xen_host_pci_get_long(XenHostPCIDevice *d, int pos, uint32_t *p);
54 int xen_host_pci_get_block(XenHostPCIDevice *d, int pos, uint8_t *buf,
56 int xen_host_pci_set_byte(XenHostPCIDevice *d, int pos, uint8_t data);
57 int xen_host_pci_set_word(XenHostPCIDevice *d, int pos, uint16_t data);
58 int xen_host_pci_set_long(XenHostPCIDevice *d, int pos, uint32_t data);
59 int xen_host_pci_set_block(XenHostPCIDevice *d, int pos, uint8_t *buf,
/openbmc/obmc-console/test/
H A Dtest-ringbuffer-boundary-read.c16 size_t pos; in test_boundary_read() local
36 pos = 0; in test_boundary_read()
38 len = ringbuffer_dequeue_peek(rbc, pos, &out_buf); in test_boundary_read()
42 assert(!memcmp(in_buf + pos, out_buf, len)); in test_boundary_read()
43 pos += len; in test_boundary_read()
45 assert(pos == sizeof(in_buf)); in test_boundary_read()

12345678910>>...17