Searched refs:sf (Results 1 - 18 of 18) sorted by relevance

/u-boot/drivers/dfu/
H A Ddfu_sf.c19 *size = dfu->data.sf.size;
33 ret = spi_flash_read(dfu->data.sf.dev, dfu->data.sf.start + offset,
43 return (lldiv((start + offset), dfu->data.sf.dev->sector_size)) *
44 dfu->data.sf.dev->sector_size;
52 ret = spi_flash_erase(dfu->data.sf.dev,
53 find_sector(dfu, dfu->data.sf.start, offset),
54 dfu->data.sf.dev->sector_size);
58 ret = spi_flash_write(dfu->data.sf.dev, dfu->data.sf
[all...]
/u-boot/include/configs/
H A Dsifive-unleashed.h25 func(SF, sf, 0) \
29 #include <env/distro/sf.h>
/u-boot/include/env/distro/
H A Dsf.h34 BOOTENV_SHARED_SF(sf) \
/u-boot/board/gardena/smart-gateway-mt7688/
H A Dboard.c92 struct spi_flash *sf; local
110 sf = spi_flash_probe(CONFIG_SF_DEFAULT_BUS,
114 if (!sf) {
119 ret = spi_flash_read(sf, FACTORY_DATA_OFFS, FACTORY_DATA_SIZE,
177 spi_flash_free(sf);
212 struct spi_flash *sf; local
222 sf = spi_flash_probe(CONFIG_SF_DEFAULT_BUS,
226 if (!sf) {
234 ret = spi_flash_read(sf, FACTORY_DATA_OFFS, FACTORY_DATA_SECT_SIZE,
275 ret = spi_flash_erase(sf, FACTORY_DATA_OFF
[all...]
/u-boot/drivers/mtd/spi/
H A Dsf_bootdev.c20 struct udevice *sf = dev_get_parent(dev); local
37 ret = spi_flash_read_dm(sf, env_get_hex("script_offset_f", 0),
66 { .compatible = "u-boot,bootdev-sf" },
H A DMakefile6 obj-$(CONFIG_$(SPL_TPL_)DM_SPI_FLASH) += sf-uclass.o
/u-boot/arch/x86/lib/
H A Dmrccache.c132 * @sf: SPI flash to write to
138 static int mrccache_update(struct udevice *sf, struct mrc_region *entry, argument
173 ret = spi_flash_erase_dm(sf, entry->offset, entry->length);
184 ret = spi_flash_write_dm(sf, offset, cur->data_size + sizeof(*cur),
302 struct udevice *sf; local
310 ret = mrccache_get_region(type, &sf, &entry);
313 ret = device_probe(sf);
318 ret = mrccache_update(sf, &entry, cache);
/u-boot/arch/x86/lib/fsp2/
H A Dfsp_init.c127 struct udevice *sf; local
130 ret = uclass_find_first_device(UCLASS_SPI_FLASH, &sf);
133 ret = dm_spi_get_mmap(sf, &map_base, &map_size, &offset);
/u-boot/env/
H A DMakefile28 obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_SPI_FLASH) += sf.o
H A Dsf.c449 U_BOOT_ENV_LOCATION(sf) = { variable
/u-boot/common/
H A Dsplash_source.c29 static struct spi_flash *sf; variable in typeref:struct:spi_flash
32 if (!sf) {
33 sf = spi_flash_probe(CONFIG_SF_DEFAULT_BUS,
37 if (!sf)
41 return spi_flash_read(sf, offset, read_size, (void *)(uintptr_t)bmp_load_addr);
46 debug("%s: sf support not available\n", __func__);
/u-boot/drivers/bios_emulator/x86emu/
H A Dprim_ops.c1406 unsigned int cnt, res, cf, mask, sf; local
1409 sf = d & 0x80;
1416 if (sf) {
1421 if (sf) {
1444 unsigned int cnt, res, cf, mask, sf; local
1446 sf = d & 0x8000;
1454 if (sf) {
1459 if (sf) {
1482 u32 cnt, res, cf, mask, sf; local
1484 sf
[all...]
/u-boot/cmd/
H A Dsf.c599 puts("No SPI flash selected. Please run `sf probe'\n");
618 U_BOOT_LONGHELP(sf,
621 "sf read addr offset|partition len - read `len' bytes starting at\n"
624 "sf write addr offset|partition len - write `len' bytes from memory\n"
627 "sf erase offset|partition [+]len - erase `len' bytes from `offset'\n"
630 "sf update addr offset|partition len - erase and write `len' bytes from memory\n"
634 "sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting\n"
643 sf, 5, 1, do_spi_flash,
H A DMakefile162 obj-$(CONFIG_CMD_SF) += sf.o
/u-boot/include/
H A Ddfu.h94 /* for sf/ubi use */
128 struct sf_internal_data sf; member in union:dfu_entity::__anon1
/u-boot/test/dm/
H A DMakefile110 obj-$(CONFIG_DM_SPI_FLASH) += sf.o
/u-boot/drivers/video/zynqmp/
H A Dzynqmp_dpsub.h213 u32 sf[3]; member in struct:av_buf_vid_attribute
H A Dzynqmp_dpsub.c251 scaling_factors = video->sf;

Completed in 187 milliseconds