Home
last modified time | relevance | path

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

123456

/rk3399_rockchip-uboot/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 …]
H A Drbtree.h92 #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ argument
93 for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \
94 pos && ({ n = rb_entry_safe(rb_next_postorder(&pos->field), \
95 typeof(*pos), field); 1; }); \
96 pos = n)
/rk3399_rockchip-uboot/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 …]
/rk3399_rockchip-uboot/tools/
H A Datmelimage.c58 size_t pos; in atmel_find_pmecc_parameter_in_token() local
63 for (pos = 0; pos < ARRAY_SIZE(configs); pos++) { in atmel_find_pmecc_parameter_in_token()
64 if (strncmp(token, configs[pos], strlen(configs[pos])) == 0) { in atmel_find_pmecc_parameter_in_token()
70 debug("\t%s parameter: '%s'\n", configs[pos], param); in atmel_find_pmecc_parameter_in_token()
72 switch (pos) { in atmel_find_pmecc_parameter_in_token()
119 size_t pos; in atmel_verify_header() local
123 for (pos = 0; pos < ARRAY_SIZE(nand_pmecc_header); pos++) in atmel_verify_header()
124 if (ints[pos] >> 28 != 0xC) in atmel_verify_header()
127 if (pos == ARRAY_SIZE(nand_pmecc_header)) { in atmel_verify_header()
133 for (pos = 0; pos < 7; pos++) { in atmel_verify_header()
[all …]
/rk3399_rockchip-uboot/include/linux/mtd/
H A Dnand.h97 struct nand_pos pos; member
163 int (*erase)(struct nand_device *nand, const struct nand_pos *pos);
164 int (*markbad)(struct nand_device *nand, const struct nand_pos *pos);
165 bool (*isbad)(struct nand_device *nand, const struct nand_pos *pos);
438 struct nand_pos *pos) in nanddev_offs_to_pos() argument
444 pos->page = do_div(tmp, nand->memorg.pages_per_eraseblock); in nanddev_offs_to_pos()
445 pos->eraseblock = do_div(tmp, nand->memorg.eraseblocks_per_lun); in nanddev_offs_to_pos()
446 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_offs_to_pos()
447 pos->lun = do_div(tmp, nand->memorg.luns_per_target); in nanddev_offs_to_pos()
448 pos->target = tmp; in nanddev_offs_to_pos()
[all …]
/rk3399_rockchip-uboot/scripts/dtc/
H A Dsrcpos.c214 void srcpos_update(struct srcpos *pos, const char *text, int len) in srcpos_update() argument
218 pos->file = current_srcfile; in srcpos_update()
220 pos->first_line = current_srcfile->lineno; in srcpos_update()
221 pos->first_column = current_srcfile->colno; in srcpos_update()
234 pos->last_line = current_srcfile->lineno; in srcpos_update()
235 pos->last_column = current_srcfile->colno; in srcpos_update()
239 srcpos_copy(struct srcpos *pos) in srcpos_copy() argument
244 memcpy(pos_new, pos, sizeof(struct srcpos)); in srcpos_copy()
250 srcpos_string(struct srcpos *pos) in srcpos_string() argument
255 if (pos->file && pos->file->name) in srcpos_string()
[all …]
/rk3399_rockchip-uboot/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.c87 struct nand_pos pos; in bbt_nand_isbad_bypass() local
90 nanddev_offs_to_pos(nand, block * mtd->erasesize, &pos); in bbt_nand_isbad_bypass()
92 return nanddev_isbad(nand, &pos); in bbt_nand_isbad_bypass()
230 struct nand_pos pos; in nanddev_write_bbt() local
262 nanddev_offs_to_pos(nand, block * mtd->erasesize, &pos); in nanddev_write_bbt()
263 ret = nand->ops->erase(nand, &pos); in nanddev_write_bbt()
276 nand->ops->erase(nand, &pos); in nanddev_write_bbt()
284 nand->ops->erase(nand, &pos); in nanddev_write_bbt()
300 struct nand_pos pos; in nanddev_bbt_format() local
309 nanddev_offs_to_pos(nand, block * mtd->erasesize, &pos); in nanddev_bbt_format()
[all …]
/rk3399_rockchip-uboot/scripts/kconfig/
H A Dlist.h48 #define list_for_each_entry(pos, head, member) \ argument
49 for (pos = list_entry((head)->next, typeof(*pos), member); \
50 &pos->member != (head); \
51 pos = list_entry(pos->member.next, typeof(*pos), member))
60 #define list_for_each_entry_safe(pos, n, head, member) \ argument
61 for (pos = list_entry((head)->next, typeof(*pos), member), \
62 n = list_entry(pos->member.next, typeof(*pos), member); \
63 &pos->member != (head); \
64 pos = n, n = list_entry(n->member.next, typeof(*n), member))
H A Dmconf.c323 struct subtitle_list *pos, *tmp; in set_subtitle() local
325 for (pos = subtitles; pos != NULL; pos = tmp) { in set_subtitle()
326 tmp = pos->next; in set_subtitle()
327 free(pos); in set_subtitle()
333 if (pos) { in set_subtitle()
334 pos->next = xcalloc(1, sizeof(*pos)); in set_subtitle()
335 pos = pos->next; in set_subtitle()
337 subtitles = pos = xcalloc(1, sizeof(*pos)); in set_subtitle()
339 pos->text = sp->text; in set_subtitle()
348 struct subtitle_list *pos, *tmp; in reset_subtitle() local
[all …]
/rk3399_rockchip-uboot/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 …]
/rk3399_rockchip-uboot/arch/x86/dts/
H A Du-boot.dtsi15 sort-by-pos;
28 pos = <CONFIG_SPL_TEXT_BASE>;
35 pos = <0xfff00000>;
39 pos = <CONFIG_SYS_TEXT_BASE>;
49 pos = <CONFIG_X86_MRC_ADDR>;
55 pos = <CONFIG_FSP_ADDR>;
61 pos = <CONFIG_CMC_ADDR>;
67 pos = <CONFIG_VGA_BIOS_ADDR>;
72 pos = <CONFIG_X86_REFCODE_ADDR>;
77 pos = <CONFIG_SYS_X86_START16>;
[all …]
/rk3399_rockchip-uboot/tools/binman/
H A Dimage.py91 contents_size = max(contents_size, entry.pos + entry.size)
155 def _SetEntryPosSize(self, name, pos, size): argument
166 entry.SetPositionSize(self._skip_at_start + pos, size)
181 pos = self._skip_at_start
183 pos = entry.Pack(pos)
187 entries = sorted(self._entries.values(), key=lambda entry: entry.pos)
196 pos = 0
199 if (entry.pos < self._skip_at_start or
200 entry.pos >= self._skip_at_start + self._size):
203 (entry.pos, entry.pos, self._skip_at_start,
[all …]
/rk3399_rockchip-uboot/tools/binman/etype/
H A Du_boot_with_ucode_ptr.py64 if (self.target_pos < self.pos or
65 self.target_pos >= self.pos + self.size):
68 (self.target_pos, self.pos, self.pos + self.size))
75 pos, size = ucode_entry.pos, ucode_entry.size
80 pos = dtb_entry.pos + dtb_entry.ucode_offset
84 pos_and_size = struct.pack('<2L', pos, size)
85 self.target_pos -= self.pos
H A Dentry.py50 self.pos = None
100 self.pos = fdt_util.GetInt(self._node, 'pos')
125 def Pack(self, pos): argument
143 if self.pos is None:
147 self.pos = tools.Align(pos, self.align)
153 new_pos = self.pos + size
156 size = aligned_pos - self.pos
171 if self.pos != tools.Align(self.pos, self.align):
173 (self.pos, self.pos, self.align, self.align))
195 def SetPositionSize(self, pos, size): argument
[all …]
H A Dintel_descriptor.py22 pos = frba + region_num * 4
23 val = struct.unpack('<L', data[pos:pos + 4])[0]
41 pos = self.data.find(FD_SIGNATURE)
42 if pos == -1:
45 self.data[pos:pos + 16])
/rk3399_rockchip-uboot/drivers/net/fsl-mc/dpio/
H 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()
/rk3399_rockchip-uboot/drivers/i2c/
H A Dfti2c010.c197 int ret, pos; in fti2c010_read() local
214 for (pos = 0; pos < alen; ++pos) { in fti2c010_read()
217 writel(paddr[pos], &regs->dr); in fti2c010_read()
236 for (pos = 0; pos < len; ++pos) { in fti2c010_read()
240 if (pos == len - 1) { in fti2c010_read()
248 buf[pos] = (uchar)(readl(&regs->dr) & 0xFF); in fti2c010_read()
259 int ret, pos; in fti2c010_write() local
276 for (pos = 0; pos < alen; ++pos) { in fti2c010_write()
279 writel(paddr[pos], &regs->dr); in fti2c010_write()
289 for (pos = 0; pos < len; ++pos) { in fti2c010_write()
[all …]
/rk3399_rockchip-uboot/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 …]
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dsandbox.c324 uint cnt, pos = 0; in sandbox_sf_xfer() local
339 ++pos; in sandbox_sf_xfer()
343 while (pos < bytes) { in sandbox_sf_xfer()
358 tx[pos++] = id; in sandbox_sf_xfer()
364 sbsf->addr_bytes, rx[pos]); in sandbox_sf_xfer()
367 sbsf->off = (sbsf->off << 8) | rx[pos]; in sandbox_sf_xfer()
371 sandbox_spi_tristate(&tx[pos], 1); in sandbox_sf_xfer()
372 pos++; in sandbox_sf_xfer()
406 cnt = bytes - pos; in sandbox_sf_xfer()
409 ret = os_read(sbsf->fd, tx + pos, cnt); in sandbox_sf_xfer()
[all …]
/rk3399_rockchip-uboot/drivers/input/
H 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()
/rk3399_rockchip-uboot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dmp.c182 static int is_pos_valid(unsigned int pos) in is_pos_valid() argument
184 return !!((1 << pos) & cpu_pos_mask()); in is_pos_valid()
190 int pos = id_to_core(cpu_id); in is_core_online() local
191 table = (u64 *)get_spin_tbl_addr() + pos * WORDS_PER_SPIN_TABLE_ENTRY; in is_core_online()
238 int pos; in cpu_status() local
244 pos = core_to_pos(nr); in cpu_status()
245 if (pos < 0) in cpu_status()
247 table = (u64 *)get_spin_tbl_addr() + pos * in cpu_status()
265 int pos; in cpu_release() local
267 pos = core_to_pos(nr); in cpu_release()
[all …]
/rk3399_rockchip-uboot/scripts/kconfig/lxdialog/
H A Dinputbox.c37 int show_x, len, pos; in dialog_inputbox() local
90 pos = len; in dialog_inputbox()
118 if (pos) { in dialog_inputbox()
125 if (pos < len) { in dialog_inputbox()
126 for (i = pos - 1; i < len; i++) { in dialog_inputbox()
131 pos--; in dialog_inputbox()
147 if (pos > 0) { in dialog_inputbox()
162 pos--; in dialog_inputbox()
166 if (pos < len) { in dialog_inputbox()
181 pos++; in dialog_inputbox()
[all …]
/rk3399_rockchip-uboot/fs/jffs2/
H 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()
/rk3399_rockchip-uboot/drivers/pci/
H A Dpci.c476 int pos; in pci_hose_find_capability() local
481 pos = pci_hose_find_cap_start(hose, dev, hdr_type & 0x7F); in pci_hose_find_capability()
483 if (pos) in pci_hose_find_capability()
484 pos = pci_find_cap(hose, dev, pos, cap); in pci_hose_find_capability()
486 return pos; in pci_hose_find_capability()
511 int pci_find_cap(struct pci_controller *hose, pci_dev_t dev, int pos, int cap) in pci_find_cap() argument
518 pci_hose_read_config_byte(hose, dev, pos, &next_pos); in pci_find_cap()
522 pos = (int) next_pos; in pci_find_cap()
524 pos + PCI_CAP_LIST_ID, &id); in pci_find_cap()
528 return pos; in pci_find_cap()
[all …]

123456