Home
last modified time | relevance | path

Searched refs:region (Results 1 – 25 of 109) sorted by relevance

12345

/rk3399_rockchip-uboot/lib/
H A Dlmb.c26 (long long unsigned)lmb->memory.region[i].base); in lmb_dump_all()
28 (long long unsigned)lmb->memory.region[i].size); in lmb_dump_all()
37 (long long unsigned)lmb->reserved.region[i].base); in lmb_dump_all()
39 (long long unsigned)lmb->reserved.region[i].size); in lmb_dump_all()
64 phys_addr_t base1 = rgn->region[r1].base; in lmb_regions_adjacent()
65 phys_size_t size1 = rgn->region[r1].size; in lmb_regions_adjacent()
66 phys_addr_t base2 = rgn->region[r2].base; in lmb_regions_adjacent()
67 phys_size_t size2 = rgn->region[r2].size; in lmb_regions_adjacent()
77 rgn->region[i].base = rgn->region[i + 1].base; in lmb_remove_region()
78 rgn->region[i].size = rgn->region[i + 1].size; in lmb_remove_region()
[all …]
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/
H A Detron.c31 struct mtd_oob_region *region) in em73c044vcf_oh_ooblayout_ecc() argument
36 region->offset = (16 * section) + 8; in em73c044vcf_oh_ooblayout_ecc()
37 region->length = 8; in em73c044vcf_oh_ooblayout_ecc()
43 struct mtd_oob_region *region) in em73c044vcf_oh_ooblayout_free() argument
48 region->offset = (16 * section) + 2; in em73c044vcf_oh_ooblayout_free()
49 region->length = 6; in em73c044vcf_oh_ooblayout_free()
82 struct mtd_oob_region *region) in em73e044vce_ooblayout_ecc() argument
87 region->offset = mtd->oobsize / 2; in em73e044vce_ooblayout_ecc()
88 region->length = mtd->oobsize / 2; in em73e044vce_ooblayout_ecc()
94 struct mtd_oob_region *region) in em73e044vce_ooblayout_free() argument
[all …]
H A Dhyf.c34 struct mtd_oob_region *region) in hyf1gq4upacae_ooblayout_ecc() argument
39 region->offset = 64; in hyf1gq4upacae_ooblayout_ecc()
40 region->length = 64; in hyf1gq4upacae_ooblayout_ecc()
46 struct mtd_oob_region *region) in hyf1gq4upacae_ooblayout_free() argument
51 region->offset = 1; in hyf1gq4upacae_ooblayout_free()
52 region->length = 63; in hyf1gq4upacae_ooblayout_free()
63 struct mtd_oob_region *region) in hyf1gq4udacae_ooblayout_ecc() argument
68 region->offset = (16 * section) + 8; in hyf1gq4udacae_ooblayout_ecc()
69 region->length = 8; in hyf1gq4udacae_ooblayout_ecc()
75 struct mtd_oob_region *region) in hyf1gq4udacae_ooblayout_free() argument
[all …]
H A Desmt.c34 struct mtd_oob_region *region) in f50lxx41x_ooblayout_ecc() argument
39 region->offset = (16 * section) + 8; in f50lxx41x_ooblayout_ecc()
40 region->length = 8; in f50lxx41x_ooblayout_ecc()
46 struct mtd_oob_region *region) in f50lxx41x_ooblayout_free() argument
51 region->offset = (16 * section) + 2; in f50lxx41x_ooblayout_free()
52 region->length = 6; in f50lxx41x_ooblayout_free()
63 struct mtd_oob_region *region) in f50l2g41ka_ooblayout_ecc() argument
68 region->offset = mtd->oobsize / 2; in f50l2g41ka_ooblayout_ecc()
69 region->length = mtd->oobsize / 2; in f50l2g41ka_ooblayout_ecc()
75 struct mtd_oob_region *region) in f50l2g41ka_ooblayout_free() argument
[all …]
H A Dgsto.c34 struct mtd_oob_region *region) in gss0xgsak1_ooblayout_ecc() argument
39 region->offset = 32; in gss0xgsak1_ooblayout_ecc()
40 region->length = 32; in gss0xgsak1_ooblayout_ecc()
46 struct mtd_oob_region *region) in gss0xgsak1_ooblayout_free() argument
51 region->offset = 2; in gss0xgsak1_ooblayout_free()
52 region->length = 30; in gss0xgsak1_ooblayout_free()
63 struct mtd_oob_region *region) in gss0xgsax1_ooblayout_ecc() argument
68 region->offset = 64; in gss0xgsax1_ooblayout_ecc()
69 region->length = 64; in gss0xgsax1_ooblayout_ecc()
75 struct mtd_oob_region *region) in gss0xgsax1_ooblayout_free() argument
[all …]
H A Dfmsh.c34 struct mtd_oob_region *region) in fm25s01a_ooblayout_ecc() argument
40 struct mtd_oob_region *region) in fm25s01a_ooblayout_free() argument
45 region->offset = 2; in fm25s01a_ooblayout_free()
46 region->length = 62; in fm25s01a_ooblayout_free()
57 struct mtd_oob_region *region) in fm25s01_ooblayout_ecc() argument
62 region->offset = 64; in fm25s01_ooblayout_ecc()
63 region->length = 64; in fm25s01_ooblayout_ecc()
69 struct mtd_oob_region *region) in fm25s01_ooblayout_free() argument
74 region->offset = 2; in fm25s01_ooblayout_free()
75 region->length = 62; in fm25s01_ooblayout_free()
[all …]
H A Dunim.c35 struct mtd_oob_region *region) in tx25g01_ooblayout_ecc() argument
40 region->offset = (16 * section) + 8; in tx25g01_ooblayout_ecc()
41 region->length = 8; in tx25g01_ooblayout_ecc()
47 struct mtd_oob_region *region) in tx25g01_ooblayout_free() argument
52 region->offset = (16 * section) + 2; in tx25g01_ooblayout_free()
53 region->length = 6; in tx25g01_ooblayout_free()
65 struct mtd_oob_region *region) in um19a0xisw_ooblayout_ecc() argument
71 struct mtd_oob_region *region) in um19a0xisw_ooblayout_free() argument
76 region->offset = 2; in um19a0xisw_ooblayout_free()
77 region->length = 62; in um19a0xisw_ooblayout_free()
[all …]
H A Dmicron.c40 struct mtd_oob_region *region) in mt29f2g01abagd_ooblayout_ecc() argument
45 region->offset = 64; in mt29f2g01abagd_ooblayout_ecc()
46 region->length = 64; in mt29f2g01abagd_ooblayout_ecc()
52 struct mtd_oob_region *region) in mt29f2g01abagd_ooblayout_free() argument
58 region->offset = 2; in mt29f2g01abagd_ooblayout_free()
59 region->length = 62; in mt29f2g01abagd_ooblayout_free()
96 struct mtd_oob_region *region) in mt29f4g01abafd_ooblayout_ecc() argument
101 region->offset = mtd->oobsize / 2; in mt29f4g01abafd_ooblayout_ecc()
102 region->length = mtd->oobsize / 2; in mt29f4g01abafd_ooblayout_ecc()
108 struct mtd_oob_region *region) in mt29f4g01abafd_ooblayout_free() argument
[all …]
H A Dwinbond.c47 struct mtd_oob_region *region) in w25m02gv_ooblayout_ecc() argument
52 region->offset = (16 * section) + 8; in w25m02gv_ooblayout_ecc()
53 region->length = 8; in w25m02gv_ooblayout_ecc()
59 struct mtd_oob_region *region) in w25m02gv_ooblayout_free() argument
64 region->offset = (16 * section) + 2; in w25m02gv_ooblayout_free()
65 region->length = 6; in w25m02gv_ooblayout_free()
90 struct mtd_oob_region *region) in w25n02kv_ooblayout_ecc() argument
95 region->offset = 64; in w25n02kv_ooblayout_ecc()
96 region->length = 64; in w25n02kv_ooblayout_ecc()
102 struct mtd_oob_region *region) in w25n02kv_ooblayout_free() argument
[all …]
H A Dxtx.c32 struct mtd_oob_region *region) in xt26g0xa_ooblayout_ecc() argument
37 region->offset = 48; in xt26g0xa_ooblayout_ecc()
38 region->length = 16; in xt26g0xa_ooblayout_ecc()
44 struct mtd_oob_region *region) in xt26g0xa_ooblayout_free() argument
49 region->offset = 2; in xt26g0xa_ooblayout_free()
50 region->length = mtd->oobsize - 18; in xt26g0xa_ooblayout_free()
61 struct mtd_oob_region *region) in xt26g01b_ooblayout_ecc() argument
67 struct mtd_oob_region *region) in xt26g01b_ooblayout_free() argument
72 region->offset = 2; in xt26g01b_ooblayout_free()
73 region->length = mtd->oobsize - 2; in xt26g01b_ooblayout_free()
[all …]
H A Ddosilicon.c40 struct mtd_oob_region *region) in ds35xxga_ooblayout_ecc() argument
45 region->offset = (16 * section) + 8; in ds35xxga_ooblayout_ecc()
46 region->length = 8; in ds35xxga_ooblayout_ecc()
52 struct mtd_oob_region *region) in ds35xxga_ooblayout_free() argument
57 region->offset = (16 * section) + 2; in ds35xxga_ooblayout_free()
58 region->length = 6; in ds35xxga_ooblayout_free()
69 struct mtd_oob_region *region) in ds35xxgb_ooblayout_ecc() argument
74 region->offset = 64; in ds35xxgb_ooblayout_ecc()
75 region->length = 64; in ds35xxgb_ooblayout_ecc()
81 struct mtd_oob_region *region) in ds35xxgb_ooblayout_free() argument
[all …]
H A Dhiksemi.c34 struct mtd_oob_region *region) in hsesyhdswxg_ooblayout_ecc() argument
39 region->offset = 64; in hsesyhdswxg_ooblayout_ecc()
40 region->length = 64; in hsesyhdswxg_ooblayout_ecc()
46 struct mtd_oob_region *region) in hsesyhdswxg_ooblayout_free() argument
51 region->offset = 2; in hsesyhdswxg_ooblayout_free()
52 region->length = 62; in hsesyhdswxg_ooblayout_free()
H A Dbiwin.c34 struct mtd_oob_region *region) in bwjx08k_ooblayout_ecc() argument
39 region->offset = (16 * section) + 12; in bwjx08k_ooblayout_ecc()
40 region->length = 4; in bwjx08k_ooblayout_ecc()
46 struct mtd_oob_region *region) in bwjx08k_ooblayout_free() argument
51 region->offset = (16 * section) + 2; in bwjx08k_ooblayout_free()
52 region->length = 10; in bwjx08k_ooblayout_free()
H A Dforesee.c34 struct mtd_oob_region *region) in fsxxndxxg_ooblayout_ecc() argument
40 struct mtd_oob_region *region) in fsxxndxxg_ooblayout_free() argument
45 region->offset = 2; in fsxxndxxg_ooblayout_free()
46 region->length = mtd->oobsize - 2; in fsxxndxxg_ooblayout_free()
57 struct mtd_oob_region *region) in f35sqb00xg_ooblayout_ecc() argument
62 region->offset = mtd->oobsize / 2; in f35sqb00xg_ooblayout_ecc()
63 region->length = mtd->oobsize / 2; in f35sqb00xg_ooblayout_ecc()
69 struct mtd_oob_region *region) in f35sqb00xg_ooblayout_free() argument
75 region->offset = 2; in f35sqb00xg_ooblayout_free()
76 region->length = mtd->oobsize / 2 - 2; in f35sqb00xg_ooblayout_free()
H A Djsc.c34 struct mtd_oob_region *region) in js28u1gqscahg_ooblayout_ecc() argument
39 region->offset = mtd->oobsize / 2; in js28u1gqscahg_ooblayout_ecc()
40 region->length = mtd->oobsize / 2; in js28u1gqscahg_ooblayout_ecc()
46 struct mtd_oob_region *region) in js28u1gqscahg_ooblayout_free() argument
52 region->offset = 2; in js28u1gqscahg_ooblayout_free()
53 region->length = mtd->oobsize / 2 - 2; in js28u1gqscahg_ooblayout_free()
H A Dkingston.c34 struct mtd_oob_region *region) in spi004_sdeg_ooblayout_ecc() argument
39 region->offset = mtd->oobsize / 2; in spi004_sdeg_ooblayout_ecc()
40 region->length = mtd->oobsize / 2; in spi004_sdeg_ooblayout_ecc()
46 struct mtd_oob_region *region) in spi004_sdeg_ooblayout_free() argument
52 region->offset = 2; in spi004_sdeg_ooblayout_free()
53 region->length = mtd->oobsize / 2 - 2; in spi004_sdeg_ooblayout_free()
H A Dgigadevice.c71 struct mtd_oob_region *region) in gd5fxgq4xa_ooblayout_ecc() argument
76 region->offset = (16 * section) + 8; in gd5fxgq4xa_ooblayout_ecc()
77 region->length = 8; in gd5fxgq4xa_ooblayout_ecc()
83 struct mtd_oob_region *region) in gd5fxgq4xa_ooblayout_free() argument
89 region->offset = 16 * section; in gd5fxgq4xa_ooblayout_free()
90 region->length = 8; in gd5fxgq4xa_ooblayout_free()
93 region->offset = 1; in gd5fxgq4xa_ooblayout_free()
94 region->length = 7; in gd5fxgq4xa_ooblayout_free()
129 struct mtd_oob_region *region) in gd5fxgqx_variant2_ooblayout_ecc() argument
134 region->offset = 64; in gd5fxgqx_variant2_ooblayout_ecc()
[all …]
H A Dxincun.c35 struct mtd_oob_region *region) in xcsp2aapk_ooblayout_ecc() argument
40 region->offset = mtd->oobsize / 2; in xcsp2aapk_ooblayout_ecc()
41 region->length = mtd->oobsize / 2; in xcsp2aapk_ooblayout_ecc()
47 struct mtd_oob_region *region) in xcsp2aapk_ooblayout_free() argument
53 region->offset = 2; in xcsp2aapk_ooblayout_free()
54 region->length = mtd->oobsize / 2 - 2; in xcsp2aapk_ooblayout_free()
/rk3399_rockchip-uboot/lib/rsa/
H A Drsa-checksum.c21 const struct image_region region[], in rsa_hash_calculate() argument
39 ret = algo->hash_update(algo, ctx, region[i].data, in rsa_hash_calculate()
40 region[i].size, 0); in rsa_hash_calculate()
45 ret = algo->hash_update(algo, ctx, region[i].data, region[i].size, 1); in rsa_hash_calculate()
58 const struct image_region region[], in hw_rsa_hash_calculate() argument
81 return crypto_sha_regions_csum(dev, &ctx, region, in hw_rsa_hash_calculate()
88 const struct image_region region[], in hash_calculate() argument
92 return rsa_hash_calculate(name, region, region_count, checksum); in hash_calculate()
102 return rsa_hash_calculate(name, region, region_count, checksum); in hash_calculate()
104 return hw_rsa_hash_calculate(name, region, region_count, checksum); in hash_calculate()
/rk3399_rockchip-uboot/drivers/pci/
H A Dpci_auto_common.c65 static void pciauto_show_region(const char *name, struct pci_region *region) in pciauto_show_region() argument
67 pciauto_region_init(region); in pciauto_show_region()
70 (unsigned long long)region->bus_start, in pciauto_show_region()
71 (unsigned long long)(region->bus_start + region->size - 1), in pciauto_show_region()
72 (unsigned long long)region->phys_start, in pciauto_show_region()
73 (unsigned long long)(region->phys_start + region->size - 1)); in pciauto_show_region()
/rk3399_rockchip-uboot/cmd/
H A Dcros_ec.c61 int region; in do_read_write() local
64 region = cros_ec_decode_region(argc - 2, argv + 2); in do_read_write()
65 if (region == -1) in do_read_write()
78 ret = cros_ec_flash_offset(dev, region, &offset, &region_size); in do_read_write()
176 int region; in do_cros_ec() local
182 region = cros_ec_decode_region(argc - 2, argv + 2); in do_cros_ec()
183 if (region == EC_FLASH_REGION_RO) in do_cros_ec()
185 else if (region == EC_FLASH_REGION_RW) in do_cros_ec()
222 int region = cros_ec_decode_region(argc - 2, argv + 2); in do_cros_ec() local
225 if (region == -1) in do_cros_ec()
[all …]
/rk3399_rockchip-uboot/tools/
H A Difdtool.c79 struct region_t *region) in get_region() argument
86 region->base = FLREG_BASE(frba->flreg[region_type]); in get_region()
87 region->limit = FLREG_LIMIT(frba->flreg[region_type]); in get_region()
88 region->size = region->limit - region->base + 1; in get_region()
125 struct region_t region; in dump_region() local
128 ret = get_region(frba, num, &region); in dump_region()
133 num, region_name(num), region.base, region.limit, in dump_region()
134 region.size < 1 ? "(unused)" : ""); in dump_region()
452 struct region_t region; in write_regions() local
455 ret = get_region(frba, i, &region); in write_regions()
[all …]
/rk3399_rockchip-uboot/lib/libfdt/
H A Dfdt_region.c34 struct fdt_region region[], int max_regions, in fdt_find_regions() argument
116 offset == region[count - 1].offset + in fdt_find_regions()
117 region[count - 1].size - base) in fdt_find_regions()
118 start = region[--count].offset - base; in fdt_find_regions()
125 region[count].offset = base + start; in fdt_find_regions()
126 region[count].size = stop_at - start; in fdt_find_regions()
138 region[count].offset = base + start; in fdt_find_regions()
139 region[count].size = nextoffset - start; in fdt_find_regions()
141 region[count].size += fdt_size_dt_strings(fdt); in fdt_find_regions()
162 reg = info->region ? &info->region[info->count - 1] : NULL; in fdt_add_region()
[all …]
/rk3399_rockchip-uboot/include/linux/
H A Dlibfdt.h80 struct fdt_region *region; /* Contains list of regions found */ member
145 struct fdt_region region[], int max_regions,
265 void *priv, struct fdt_region *region,
281 void *priv, struct fdt_region *region,
306 int fdt_add_alias_regions(const void *fdt, struct fdt_region *region, int count,
/rk3399_rockchip-uboot/common/
H A Dimage-sig.c167 struct image_region *region) in fit_region_make_list() argument
179 if (!region) in fit_region_make_list()
180 region = calloc(sizeof(*region), count); in fit_region_make_list()
182 if (!region) in fit_region_make_list()
187 region[i].data = fit + fdt_regions[i].offset; in fit_region_make_list()
188 region[i].size = fdt_regions[i].size; in fit_region_make_list()
191 return region; in fit_region_make_list()
234 struct image_region region; in fit_image_check_sig() local
249 region.data = data; in fit_image_check_sig()
250 region.size = size; in fit_image_check_sig()
[all …]

12345