Searched refs:offs (Results 1 - 25 of 105) sorted by relevance

12345

/u-boot/arch/arm/mach-omap2/
H A Dfdt-common.c27 int offs; local
32 offs = fdt_path_offset(fdt, path);
33 if (offs < 0) {
37 ret = fdt_setprop_string(fdt, offs,
75 int offs, len; local
84 offs = fdt_path_offset(fdt, path);
85 if (offs >= 0)
86 fdt_del_node(fdt, offs);
90 offs = fdt_path_offset(fdt, path);
91 if (offs <
131 int offs; local
[all...]
/u-boot/board/freescale/common/
H A Dspl.h9 void fsl_spi_spl_load_image(uint32_t offs, unsigned int size, void *vdst);
/u-boot/arch/arm/mach-snapdragon/include/mach/
H A Dgpio.h20 static inline u32 qcom_pin_offset(const unsigned int *offs, unsigned int selector) argument
24 if (offs)
25 return out + offs[selector];
/u-boot/arch/arm/mach-ipq40xx/include/mach/
H A Dgpio.h20 static inline u32 qcom_pin_offset(const unsigned int *offs, unsigned int selector) argument
24 if (offs)
25 return out + offs[selector];
/u-boot/fs/ubifs/
H A Dscan.c58 * @offs: offset within the logical eraseblock
64 int offs, int quiet)
72 dbg_scan("hit empty space at LEB %d:%d", lnum, offs);
83 dbg_ntype(ch->node_type), lnum, offs);
85 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1))
95 offs + node_len + pad_len > c->leb_size) {
98 lnum, offs);
108 offs, offs + node_len + pad_len);
113 lnum, offs, ALIG
63 ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, int offs, int quiet) argument
131 ubifs_start_scan(const struct ubifs_info *c, int lnum, int offs, void *sbuf) argument
169 ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, int lnum, int offs) argument
188 ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, void *buf, int offs) argument
232 ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, void *buf) argument
261 ubifs_scan(const struct ubifs_info *c, int lnum, int offs, void *sbuf, int quiet) argument
[all...]
H A Drecovery.c108 int err, offs, len; local
120 offs = 0;
123 while (offs + UBIFS_MST_NODE_SZ <= c->leb_size) {
128 offs += sz;
133 if (offs) {
136 offs -= sz;
139 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
140 if (ret != SCANNED_A_NODE && offs) {
142 offs -= sz;
145 ret = ubifs_scan_a_node(c, buf, len, lnum, offs,
410 is_last_write(const struct ubifs_info *c, void *buf, int offs) argument
437 clean_buf(const struct ubifs_info *c, void **buf, int lnum, int *offs, int *len) argument
467 no_more_nodes(const struct ubifs_info *c, void *buf, int len, int lnum, int offs) argument
573 drop_last_group(struct ubifs_scan_leb *sleb, int *offs) argument
602 drop_last_node(struct ubifs_scan_leb *sleb, int *offs) argument
633 ubifs_recover_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf, int jhead) argument
810 get_cs_sqnum(struct ubifs_info *c, int lnum, int offs, unsigned long long *cs_sqnum) argument
867 ubifs_recover_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf) argument
923 recover_head(struct ubifs_info *c, int lnum, int offs, void *sbuf) argument
996 int err, lnum = ucleb->lnum, offs = 0, len = ucleb->endpt, quiet = 1; local
1427 int err, lnum, offs, len; local
[all...]
H A Dio.c38 * have to make sure that the write-buffer offset (@wbuf->offs) becomes aligned
96 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, argument
101 err = ubi_read(c->ubi, lnum, buf, offs, len);
108 len, lnum, offs, err);
114 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, argument
123 err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
126 err = dbg_leb_write(c, lnum, buf, offs, len);
130 len, lnum, offs, err);
219 * @offs: offset within the logical eraseblock
243 int offs, in
242 ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum, int offs, int quiet, int must_chk_crc) argument
577 ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs) argument
868 ubifs_write_node(struct ubifs_info *c, void *buf, int len, int lnum, int offs) argument
908 ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, int lnum, int offs) argument
985 ubifs_read_node(const struct ubifs_info *c, void *buf, int type, int len, int lnum, int offs) argument
[all...]
H A Dlpt_commit.c195 int lnum, offs, len, alen, done_lsave, done_ltab, err; local
205 offs = c->nhead_offs;
209 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) {
212 c->lsave_offs = offs;
213 offs += c->lsave_sz;
217 if (offs + c->ltab_sz <= c->leb_size) {
220 c->ltab_offs = offs;
221 offs += c->ltab_sz;
233 while (offs + len > c->leb_size) {
234 alen = ALIGN(offs,
374 int lnum, offs, len, from, err, wlen, alen, done_ltab, done_lsave; local
907 make_nnode_dirty(struct ubifs_info *c, int node_num, int lnum, int offs) argument
956 make_pnode_dirty(struct ubifs_info *c, int node_num, int lnum, int offs) argument
986 make_ltab_dirty(struct ubifs_info *c, int lnum, int offs) argument
1011 make_lsave_dirty(struct ubifs_info *c, int lnum, int offs) argument
1038 make_node_dirty(struct ubifs_info *c, int node_type, int node_num, int lnum, int offs) argument
1082 int offs, pad_len; local
1154 int err, len = c->leb_size, node_type, node_num, node_len, offs; local
1522 dbg_is_nnode_dirty(struct ubifs_info *c, int lnum, int offs) argument
1557 dbg_is_pnode_dirty(struct ubifs_info *c, int lnum, int offs) argument
1586 dbg_is_ltab_dirty(struct ubifs_info *c, int lnum, int offs) argument
1599 dbg_is_lsave_dirty(struct ubifs_info *c, int lnum, int offs) argument
1613 dbg_is_node_dirty(struct ubifs_info *c, int node_type, int lnum, int offs) argument
1891 int err, len = c->leb_size, node_type, node_num, node_len, offs; local
[all...]
H A Dlog.c161 * @offs: starting offset of the bud
169 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) argument
209 if (c->bud_bytes + c->leb_size - offs > c->max_bud_bytes) {
230 bud->start = offs;
235 ref->offs = cpu_to_le32(bud->start);
315 c->cmt_bud_bytes += wbuf->offs - bud->start;
318 wbuf->offs - bud->start, c->cmt_bud_bytes);
319 bud->start = wbuf->offs;
383 int offs = c->jheads[i].wbuf.offs; local
595 add_node(struct ubifs_info *c, void *buf, int *lnum, int *offs, void *node) argument
631 int lnum, err, first = 1, write_lnum, offs = 0; local
[all...]
H A Dtnc.c54 int len, int lnum, int offs);
62 * @offs: offset of obsoleted index node
81 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) argument
90 old_idx->offs = offs;
100 else if (offs < o->offs)
102 else if (offs > o->offs)
129 return insert_old_idx(c, zbr->lnum, zbr->offs);
455 try_read_node(const struct ubifs_info *c, void *buf, int type, int len, int lnum, int offs) argument
1014 matches_position(struct ubifs_zbranch *zbr, int lnum, int offs) argument
1039 resolve_collision_directly(struct ubifs_info *c, const union ubifs_key *key, struct ubifs_znode **zn, int *n, int lnum, int offs) argument
1450 ubifs_tnc_locate(struct ubifs_info *c, const union ubifs_key *key, void *node, int *lnum, int *offs) argument
1656 read_wbuf(struct ubifs_wbuf *wbuf, void *buf, int len, int lnum, int offs) argument
1757 int lnum = bu->zbranch[0].lnum, offs = bu->zbranch[0].offs, len, err, i; local
2170 ubifs_tnc_add(struct ubifs_info *c, const union ubifs_key *key, int lnum, int offs, int len) argument
2219 ubifs_tnc_replace(struct ubifs_info *c, const union ubifs_key *key, int old_lnum, int old_offs, int lnum, int offs, int len) argument
2302 ubifs_tnc_add_nm(struct ubifs_info *c, const union ubifs_key *key, int lnum, int offs, int len, const struct qstr *nm) argument
2996 lookup_znode(struct ubifs_info *c, union ubifs_key *key, int level, int lnum, int offs) argument
3125 is_idx_node_in_tnc(struct ubifs_info *c, union ubifs_key *key, int level, int lnum, int offs) argument
3152 is_leaf_node_in_tnc(struct ubifs_info *c, union ubifs_key *key, int lnum, int offs) argument
3222 ubifs_tnc_has_node(struct ubifs_info *c, union ubifs_key *key, int level, int lnum, int offs, int is_idx) argument
3262 ubifs_dirty_idx_node(struct ubifs_info *c, union ubifs_key *key, int level, int lnum, int offs) argument
[all...]
/u-boot/drivers/clk/ti/
H A Dclk-ctrl.c21 struct clk_ti_ctrl_offs *offs; member in struct:clk_ti_ctrl_priv
24 static int clk_ti_ctrl_check_offs(struct clk *clk, fdt_addr_t offs) argument
30 if (offs >= priv->offs[i].start && offs <= priv->offs[i].end)
41 fdt_addr_t offs; local
44 offs = priv->offs[0].start + clk->id;
45 err = clk_ti_ctrl_check_offs(clk, offs);
61 fdt_addr_t offs; local
[all...]
/u-boot/include/dm/
H A Dofnode_decl.h63 #define OFTREE_NODE(tree_id, offs) ((tree_id) << OF_TREE_SHIFT | (offs))
72 #define OFTREE_MAKE_NODE(other_of_offset, offs) \
73 (((offs) & OF_TREE_MASK) | ((other_of_offset) & ~OF_TREE_MASK))
/u-boot/drivers/usb/dwc3/
H A Dio.h26 unsigned long offs = offset - DWC3_GLOBALS_REGS_START; local
34 value = readl(base + offs);
41 unsigned long offs = offset - DWC3_GLOBALS_REGS_START; local
48 writel(value, base + offs);
/u-boot/drivers/mtd/nand/raw/
H A Dnand_spl_loaders.c1 int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst) argument
6 /* offs has to be aligned to a page address! */
7 block = offs / CONFIG_SYS_NAND_BLOCK_SIZE;
8 lastblock = (offs + size - 1) / CONFIG_SYS_NAND_BLOCK_SIZE;
9 page = (offs % CONFIG_SYS_NAND_BLOCK_SIZE) / CONFIG_SYS_NAND_PAGE_SIZE;
10 page_offset = offs % CONFIG_SYS_NAND_PAGE_SIZE;
21 * When offs is not aligned to page address the
50 * @offs: Offset starting from @sector
53 * and @sector + @offs, @offs i
56 nand_spl_adjust_offset(u32 sector, u32 offs) argument
[all...]
H A Dfsl_elbc_spl.c43 int nand_spl_load_image(uint32_t offs, unsigned int uboot_size, void *vdst) argument
45 static int nand_load_image(uint32_t offs, unsigned int uboot_size, void *vdst)
59 if (offs & (block_size - 1)) {
88 out_be32(&regs->fbar, offs >> block_shift);
92 unsigned int page_offs = (offs & (block_size - 1)) << 1;
109 offs = (offs + block_size) & ~(block_size - 1);
118 offs += page_size;
119 } while ((offs & (block_size - 1)) && (pos < uboot_size));
130 #define nand_spl_load_image(offs, uboot_siz
[all...]
H A Dkirkwood_nand.c37 u32 offs; local
43 offs = (1 << 0); /* Commands with A[1:0] == 01 */
45 offs = (1 << 1); /* Addresses with A[1:0] == 10 */
49 writeb(cmd, nc->IO_ADDR_W + offs);
H A Dsunxi_nand_spl.c217 static int nand_load_page(const struct nfc_config *conf, u32 offs) argument
219 int page = offs / conf->page_size;
257 static int nand_read_page(const struct nfc_config *conf, u32 offs, argument
263 int page = offs / conf->page_size;
267 if (offs % conf->page_size || len % conf->ecc_size ||
370 static int nand_detect_ecc_config(struct nfc_config *conf, u32 offs, argument
375 int page = offs / conf->page_size;
403 ret = nand_read_page(conf, offs, dest, conf->ecc_size);
420 if (!nand_read_page(conf, offs, dest,
443 static int nand_detect_config(struct nfc_config *conf, u32 offs, voi argument
476 nand_read_buffer(struct nfc_config *conf, uint32_t offs, unsigned int size, void *dest) argument
529 nand_spl_load_image(uint32_t offs, unsigned int size, void *dest) argument
[all...]
/u-boot/test/optee/
H A Dcmd_ut_optee.c33 int offs, len; local
35 offs = fdt_path_offset(fdt, "/firmware/optee");
36 ut_assert(expect_success ? offs >= 0 : offs < 0);
39 if (offs < 0)
42 prop = fdt_getprop(fdt, offs, "compatible", &len);
45 prop = fdt_getprop(fdt, offs, "method", &len);
54 int offs, subnode; local
57 offs = fdt_path_offset(fdt, "/firmware/optee");
58 ut_assert(expect_success ? offs >
[all...]
/u-boot/drivers/mtd/nand/
H A Dbbt.c85 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; local
91 status = pos[0] >> offs;
92 if (bits_per_block + offs > BITS_PER_LONG)
93 status |= pos[1] << (BITS_PER_LONG - offs);
118 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; local
124 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs);
125 pos[0] |= val << offs;
127 if (bits_per_block + offs > BITS_PER_LONG) {
128 unsigned int rbits = bits_per_block + offs
[all...]
/u-boot/lib/optee/
H A Doptee.c69 int offs, ret, len; local
72 offs = fdt_path_offset(fdt_blob, "/firmware");
73 if (offs < 0) {
74 offs = fdt_path_offset(fdt_blob, "/");
75 if (offs < 0)
76 return offs;
78 offs = fdt_add_subnode(fdt_blob, offs, "firmware");
79 if (offs < 0)
80 return offs;
[all...]
/u-boot/arch/arm/mach-omap2/omap5/
H A Dfdt.c35 int offs; local
54 offs = fdt_path_offset(fdt, path);
55 if (offs < 0) {
61 p_data = fdt_getprop(fdt, offs, "ti,irqs-skip", &len);
78 fdt_delprop(fdt, offs, "ti,irqs-skip");
79 ret = fdt_setprop(fdt, offs, "ti,irqs-skip",
99 int offs; local
109 offs = fdt_path_offset(fdt, path);
110 if (offs < 0) {
120 fdt_delprop(fdt, offs, "re
230 int offs, node_offs, subnode, ret, i; local
[all...]
/u-boot/arch/arm/mach-imx/imx8/
H A Dfdt.c236 int offs; local
245 offs = fdt_increase_size(fdt, 512);
246 if (offs) {
252 offs = fdt_path_offset(fdt, path);
253 if (offs < 0) {
255 offs = fdt_path_offset(fdt, path);
257 if (offs < 0) {
259 return offs;
263 offs = fdt_add_subnode(fdt, offs, subpat
[all...]
/u-boot/common/spl/
H A Dspl_nand.c46 __weak u32 nand_spl_adjust_offset(u32 sector, u32 offs) argument
48 return offs;
51 static ulong spl_nand_read(struct spl_load_info *load, ulong offs, ulong size, argument
57 debug("%s: offs %lx, size %lx, dst %p\n",
58 __func__, offs, size, dst);
61 offs = sector + nand_spl_adjust_offset(sector, offs - sector);
62 err = nand_spl_load_image(offs, size, dst);
/u-boot/arch/mips/mach-octeon/include/mach/
H A Dcvmx-lmcx-defs.h9 #define CVMX_LMCX_BANK_CONFLICT1(offs) \
10 ((0x000360ull) + ((offs) & 3) * 0x1000000ull)
11 #define CVMX_LMCX_BANK_CONFLICT2(offs) \
12 ((0x000368ull) + ((offs) & 3) * 0x1000000ull)
13 #define CVMX_LMCX_BIST_RESULT(offs) \
14 ((0x0000F8ull) + ((offs) & 1) * 0x60000000ull)
15 #define CVMX_LMCX_CHAR_CTL(offs) \
16 ((0x000220ull) + ((offs) & 3) * 0x1000000ull)
17 #define CVMX_LMCX_CHAR_DQ_ERR_COUNT(offs) \
18 ((0x000040ull) + ((offs)
120 CVMX_LMCX_NXM(unsigned long offs) argument
222 CVMX_LMCX_WLEVEL_RANKX(unsigned long offs, unsigned long id) argument
[all...]
/u-boot/arch/arm/mach-rockchip/rk3288/
H A Drk3288.c123 int offs, ret; local
126 offs = fdt_path_offset(blob, path);
127 if (offs < 0) {
129 return offs;
132 ret = fdt_setprop_string(blob, offs, "compatible", "rockchip,rk3288w-cru");

Completed in 418 milliseconds

12345