Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 25 of 50) sorted by relevance

12

/u-boot/fs/yaffs2/
A Dyaffs_bitmap.c22 if (blk < dev->internal_start_block || blk > dev->internal_end_block) { in yaffs_block_bits()
25 blk); in yaffs_block_bits()
34 if (blk < dev->internal_start_block || blk > dev->internal_end_block || in yaffs_verify_chunk_bit_id()
38 blk, chunk); in yaffs_verify_chunk_bit_id()
45 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_clear_chunk_bits()
52 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_clear_chunk_bit()
54 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_clear_chunk_bit()
60 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_set_chunk_bit()
68 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_check_chunk_bit()
76 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_still_some_chunks()
[all …]
A Dyaffs_bitmap.h25 void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk);
26 void yaffs_clear_chunk_bits(struct yaffs_dev *dev, int blk);
27 void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
28 void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
29 int yaffs_check_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
30 int yaffs_still_some_chunks(struct yaffs_dev *dev, int blk);
31 int yaffs_count_chunk_bits(struct yaffs_dev *dev, int blk);
A Dyaffs_getblockinfo.h24 *dev, int blk) in yaffs_get_block_info() argument
26 if (blk < dev->internal_start_block || blk > dev->internal_end_block) { in yaffs_get_block_info()
29 blk); in yaffs_get_block_info()
32 return &dev->block_info[blk - dev->internal_start_block]; in yaffs_get_block_info()
A Dyaffs_yaffs1.c26 int blk; in yaffs1_scan() local
51 for (blk = dev->internal_start_block; blk <= dev->internal_end_block; in yaffs1_scan()
52 blk++) { in yaffs1_scan()
53 yaffs_clear_chunk_bits(dev, blk); in yaffs1_scan()
67 blk, state, seq_number); in yaffs1_scan()
71 "block %d is bad", blk); in yaffs1_scan()
81 for (blk = dev->internal_start_block; in yaffs1_scan()
82 !alloc_failed && blk <= dev->internal_end_block; blk++) { in yaffs1_scan()
124 blk, c); in yaffs1_scan()
126 dev->alloc_block = blk; in yaffs1_scan()
[all …]
A Dyaffs_summary.c119 static int yaffs_summary_write(struct yaffs_dev *dev, int blk) in yaffs_summary_write() argument
131 struct yaffs_block_info *bi = yaffs_get_block_info(dev, blk); in yaffs_summary_write()
143 hdr.block = blk; in yaffs_summary_write()
159 yaffs_set_chunk_bit(dev, blk, chunk_in_block); in yaffs_summary_write()
181 int blk) in yaffs_summary_read() argument
193 struct yaffs_block_info *bi = yaffs_get_block_info(dev, blk); in yaffs_summary_read()
199 chunk_in_nand = blk * dev->param.chunks_per_block + in yaffs_summary_read()
220 yaffs_set_chunk_bit(dev, blk, chunk_in_block); in yaffs_summary_read()
293 void yaffs_summary_gc(struct yaffs_dev *dev, int blk) in yaffs_summary_gc() argument
304 if (yaffs_check_chunk_bit(dev, blk, i)) { in yaffs_summary_gc()
[all …]
A Dyaffs_summary.h33 int blk);
34 void yaffs_summary_gc(struct yaffs_dev *dev, int blk);
A Dyaffs_yaffs2.c936 int blk, int chunk_in_block, in yaffs2_scan_chunk() argument
997 blk, chunk_in_block); in yaffs2_scan_chunk()
1001 dev->alloc_block = blk; in yaffs2_scan_chunk()
1003 dev->alloc_block_finder = blk; in yaffs2_scan_chunk()
1011 blk); in yaffs2_scan_chunk()
1022 blk, chunk_in_block); in yaffs2_scan_chunk()
1342 int blk; in yaffs2_scan_backwards() local
1388 for (blk = dev->internal_start_block; blk <= dev->internal_end_block; in yaffs2_scan_backwards()
1389 blk++) { in yaffs2_scan_backwards()
1413 "block %d is bad", blk); in yaffs2_scan_backwards()
[all …]
/u-boot/fs/
A Dfs_internal.c22 ALLOC_CACHE_ALIGN_BUFFER(char, sec_buf, (blk ? blk->blksz : 0)); in fs_devread()
23 if (blk == NULL) { in fs_devread()
27 log2blksz = blk->log2blksz; in fs_devread()
39 byte_offset &= blk->blksz - 1; in fs_devread()
51 readlen = min((int)blk->blksz - byte_offset, in fs_devread()
63 block_len = byte_len & ~(blk->blksz - 1); in fs_devread()
66 ALLOC_CACHE_ALIGN_BUFFER(u8, p, blk->blksz); in fs_devread()
68 block_len = blk->blksz; in fs_devread()
69 blk_dread(blk, partition->start + sector, 1, in fs_devread()
81 block_len = byte_len & ~(blk->blksz - 1); in fs_devread()
[all …]
/u-boot/test/dm/
A Dblk.c48 struct udevice *blk; in count_blk_devices() local
57 uclass_foreach_dev(blk, uc) in count_blk_devices()
95 struct udevice *blk, *dev; in dm_test_blk_find() local
98 IF_TYPE_HOST, 1, 512, 2, &blk)); in dm_test_blk_find()
101 ut_asserteq_ptr(blk, dev); in dm_test_blk_find()
106 ut_asserteq_ptr(blk, dev); in dm_test_blk_find()
151 struct udevice *dev, *blk; in dm_test_blk_get_from_parent() local
154 ut_assertok(blk_get_from_parent(dev, &blk)); in dm_test_blk_get_from_parent()
157 ut_asserteq(-ENOTBLK, blk_get_from_parent(dev, &blk)); in dm_test_blk_get_from_parent()
160 ut_asserteq(-ENODEV, blk_get_from_parent(dev, &blk)); in dm_test_blk_get_from_parent()
/u-boot/lib/
A Dimage-sparse.c55 lbaint_t blk; in write_sparse_image() local
113 blk = info->start; in write_sparse_image()
146 if (blk + blkcnt > info->start + info->size) { in write_sparse_image()
155 blks = info->write(info, blk, blkcnt, data); in write_sparse_image()
160 blk, blks); in write_sparse_image()
164 blk += blks; in write_sparse_image()
197 if (blk + blkcnt > info->start + info->size) { in write_sparse_image()
210 blks = info->write(info, blk, j, fill_buf); in write_sparse_image()
216 blk, j); in write_sparse_image()
222 blk += blks; in write_sparse_image()
[all …]
/u-boot/cmd/
A Dblk_common.c67 lbaint_t blk = simple_strtoul(argv[3], NULL, 16); in blk_common_cmd() local
72 if_name, *cur_devnump, blk, cnt); in blk_common_cmd()
74 n = blk_read_devnum(if_type, *cur_devnump, blk, cnt, in blk_common_cmd()
82 lbaint_t blk = simple_strtoul(argv[3], NULL, 16); in blk_common_cmd() local
87 if_name, *cur_devnump, blk, cnt); in blk_common_cmd()
89 n = blk_write_devnum(if_type, *cur_devnump, blk, cnt, in blk_common_cmd()
A Dread.c25 uint blk; in do_read() local
49 blk = simple_strtoul(argv[4], NULL, 16); in do_read()
64 if (cnt + blk > limit) { in do_read()
69 if (blk_dread(dev_desc, offset + blk, cnt, addr) != cnt) { in do_read()
A Dmmc.c205 u16 blk, cnt; in do_mmcrpmb_read() local
222 curr_device, blk, cnt); in do_mmcrpmb_read()
234 u16 blk, cnt; in do_mmcrpmb_write() local
249 curr_device, blk, cnt); in do_mmcrpmb_write()
331 u32 blk, cnt, n; in do_mmc_read() local
346 curr_device, blk, cnt); in do_mmc_read()
377 u32 blk; in do_mmc_sparse_write() local
395 curr_device, blk); in do_mmc_sparse_write()
405 sparse.start = blk; in do_mmc_sparse_write()
424 u32 blk, cnt, n; in do_mmc_write() local
[all …]
/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
A Dppa.c73 u32 blk; in ppa_init() local
101 blk = CONFIG_SYS_LS_PPA_FW_ADDR / 512; in ppa_init()
104 __func__, dev, blk, cnt); in ppa_init()
105 ret = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, fitp); in ppa_init()
127 blk = CONFIG_SYS_LS_PPA_ESBC_ADDR >> 9; in ppa_init()
129 ret = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, ppa_hdr_ddr); in ppa_init()
151 blk = CONFIG_SYS_LS_PPA_FW_ADDR / 512; in ppa_init()
154 __func__, dev, blk, cnt); in ppa_init()
155 ret = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, ppa_fit_addr); in ppa_init()
/u-boot/drivers/mmc/
A Dmmc_write.c82 lbaint_t blk = 0, blk_r = 0; in mmc_berase() local
108 while (blk < blkcnt) { in mmc_berase()
110 blk_r = ((blkcnt - blk) > mmc->ssr.au) ? in mmc_berase()
111 mmc->ssr.au : (blkcnt - blk); in mmc_berase()
113 blk_r = ((blkcnt - blk) > mmc->erase_grp_size) ? in mmc_berase()
114 mmc->erase_grp_size : (blkcnt - blk); in mmc_berase()
116 err = mmc_erase_t(mmc, start + blk, blk_r); in mmc_berase()
120 blk += blk_r; in mmc_berase()
127 return blk; in mmc_berase()
/u-boot/include/
A Dimage-sparse.h19 lbaint_t blk,
24 lbaint_t blk,
/u-boot/common/
A DxyzModem.c47 unsigned char blk, cblk, crc1, crc2; member
322 res = CYGACC_COMM_IF_GETC_TIMEOUT (*xyz.__chan, (char *) &xyz.blk); in xyzModem_get_hdr()
323 ZM_DEBUG (zm_save (xyz.blk)); in xyzModem_get_hdr()
371 if ((xyz.blk ^ xyz.cblk) != (unsigned char) 0xFF) in xyzModem_get_hdr()
374 ("Framing error - blk: %x/%x/%x\n", xyz.blk, xyz.cblk, in xyzModem_get_hdr()
375 (xyz.blk ^ xyz.cblk))); in xyzModem_get_hdr()
456 if (xyz.blk == 0) in xyzModem_stream_open()
507 if (xyz.blk == xyz.next_blk) in xyzModem_stream_read()
511 ("ACK block %d (%d)\n", xyz.blk, __LINE__)); in xyzModem_stream_read()
546 else if (xyz.blk == ((xyz.next_blk - 1) & 0xFF)) in xyzModem_stream_read()
/u-boot/board/Arcturus/ucp1020/
A Dcmd_arc.c46 u32 blk, cnt, n; in set_mmc_arc_product() local
72 blk = fwenv_addr[i] / 512; in set_mmc_arc_product()
73 n = blk_dwrite(mmc_get_blk_desc(mmc), blk, cnt, addr); in set_mmc_arc_product()
88 u32 blk, cnt, n; in read_mmc_arc_info() local
109 blk = fwenv_addr[i] / 512; in read_mmc_arc_info()
110 n = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, addr); in read_mmc_arc_info()
/u-boot/drivers/net/fm/
A Dfm.c265 int blk, i, port_id; in fm_init_bmi() local
280 blk = FM_FREE_POOL_SIZE / 256; in fm_init_bmi()
282 val |= ((blk - 1) << FMBM_CFG1_FBPS_SHIFT); in fm_init_bmi()
417 u32 blk = CONFIG_SYS_FMAN_FW_ADDR / 512; in fm_init_common() local
424 dev, blk, cnt); in fm_init_common()
426 (void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt, in fm_init_common()
498 u32 blk = CONFIG_SYS_FMAN_FW_ADDR / 512; in fm_init_common() local
505 dev, blk, cnt); in fm_init_common()
507 (void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt, in fm_init_common()
/u-boot/drivers/net/phy/
A Dcortina.c171 u32 blk = CONFIG_CORTINA_FW_ADDR / 512; in cs4340_upload_firmware() local
179 dev, blk, cnt); in cs4340_upload_firmware()
182 (void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt, in cs4340_upload_firmware()
185 (void)mmc->block_dev.block_read(&mmc->block_dev, blk, cnt, in cs4340_upload_firmware()
/u-boot/doc/
A DREADME.virtio81 -device virtio-blk-device,drive=hd0
89 -device virtio-blk-pci,drive=hd0
100 -device virtio-blk-device,drive=hd0 \
102 -device virtio-blk-pci,drive=hd1
111 -device virtio-blk-pci,drive=hd0,disable-legacy=true,disable-modern=false
123 virtio read addr blk# cnt - read `cnt' blocks starting at block
124 `blk#' to memory address `addr'
125 virtio write addr blk# cnt - write `cnt' blocks starting at block
126 `blk#' from memory address `addr'
173 | | virtio-net | | virtio-blk | |
/u-boot/drivers/block/
A DMakefile6 obj-$(CONFIG_$(SPL_)BLK) += blk-uclass.o
/u-boot/drivers/fastboot/
A Dfb_mmc.c137 lbaint_t blk = start; in fb_mmc_blk_write() local
148 blks_written = blk_dwrite(block_dev, blk, cur_blkcnt, in fb_mmc_blk_write()
153 blks_written = blk_derase(block_dev, blk, cur_blkcnt); in fb_mmc_blk_write()
155 blk += blks_written; in fb_mmc_blk_write()
162 lbaint_t blk, lbaint_t blkcnt, const void *buffer) in fb_mmc_sparse_write() argument
167 return fb_mmc_blk_write(dev_desc, blk, blkcnt, buffer); in fb_mmc_sparse_write()
171 lbaint_t blk, lbaint_t blkcnt) in fb_mmc_sparse_reserve() argument
A Dfb_nand.c108 lbaint_t blk, lbaint_t blkcnt, const void *buffer) in fb_nand_sparse_write() argument
115 blk * info->blksz, in fb_nand_sparse_write()
132 lbaint_t blk, lbaint_t blkcnt) in fb_nand_sparse_reserve() argument
/u-boot/drivers/ata/
A Ddwc_ahsata.c1004 struct udevice *blk; in dwc_ahsata_scan() local
1012 device_find_first_child(dev, &blk); in dwc_ahsata_scan()
1013 if (!blk) { in dwc_ahsata_scan()
1015 IF_TYPE_SATA, -1, 512, 0, &blk); in dwc_ahsata_scan()
1022 desc = dev_get_uclass_plat(blk); in dwc_ahsata_scan()
1054 static ulong dwc_ahsata_read(struct udevice *blk, lbaint_t blknr, in dwc_ahsata_read() argument
1057 struct blk_desc *desc = dev_get_uclass_plat(blk); in dwc_ahsata_read()
1058 struct udevice *dev = dev_get_parent(blk); in dwc_ahsata_read()
1065 static ulong dwc_ahsata_write(struct udevice *blk, lbaint_t blknr, in dwc_ahsata_write() argument
1068 struct blk_desc *desc = dev_get_uclass_plat(blk); in dwc_ahsata_write()
[all …]

Completed in 49 milliseconds

12