/openbmc/u-boot/env/ |
H A D | sata.c | 35 uint blk_start, blk_cnt, n; in write_env() local 37 blk_start = ALIGN(offset, sata->blksz) / sata->blksz; in write_env() 40 n = blk_dwrite(sata, blk_start, blk_cnt, buffer); in write_env() 81 uint blk_start, blk_cnt, n; in read_env() local 83 blk_start = ALIGN(offset, sata->blksz) / sata->blksz; in read_env() 86 n = blk_dread(sata, blk_start, blk_cnt, buffer); in read_env()
|
H A D | mmc.c | 188 uint blk_start, blk_cnt, n; in write_env() local 191 blk_start = ALIGN(offset, mmc->write_bl_len) / mmc->write_bl_len; in write_env() 194 n = blk_dwrite(desc, blk_start, blk_cnt, (u_char *)buffer); in write_env() 250 uint blk_start, blk_cnt, n; in read_env() local 253 blk_start = ALIGN(offset, mmc->read_bl_len) / mmc->read_bl_len; in read_env() 256 n = blk_dread(desc, blk_start, blk_cnt, (uchar *)buffer); in read_env()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | fsl_esdhc_spl.c | 24 uint blk_start, blk_cnt, err; in mmc_spl_load_image() local 37 blk_start = ALIGN(offs, mmc->read_bl_len) / mmc->read_bl_len; in mmc_spl_load_image() 40 err = mmc->block_dev.block_read(&mmc->block_dev, blk_start, blk_cnt, in mmc_spl_load_image() 57 uint blk_start, blk_cnt, err; in mmc_boot() local 128 blk_start = ALIGN(offset, mmc->read_bl_len) / mmc->read_bl_len; in mmc_boot() 130 err = mmc->block_dev.block_read(&mmc->block_dev, blk_start, blk_cnt, in mmc_boot()
|
/openbmc/u-boot/drivers/dfu/ |
H A D | dfu_mmc.c | 26 u32 blk_start, blk_count, n = 0; in mmc_block_op() local 41 blk_start = dfu->data.mmc.lba_start + in mmc_block_op() 44 if (blk_start + blk_count > in mmc_block_op() 61 dfu->data.mmc.dev_num, blk_start, blk_count, buf); in mmc_block_op() 64 n = blk_dread(mmc_get_blk_desc(mmc), blk_start, blk_count, buf); in mmc_block_op() 67 n = blk_dwrite(mmc_get_blk_desc(mmc), blk_start, blk_count, in mmc_block_op()
|
/openbmc/u-boot/board/toradex/common/ |
H A D | tdx-cfg-block.c | 110 uint blk_start; in tdx_cfg_block_mmc_storage() local 129 blk_start = ALIGN(offset, mmc->write_bl_len) / mmc->write_bl_len; in tdx_cfg_block_mmc_storage() 133 if (blk_dread(mmc_get_blk_desc(mmc), blk_start, 1, in tdx_cfg_block_mmc_storage() 140 if (blk_dwrite(mmc_get_blk_desc(mmc), blk_start, 1, in tdx_cfg_block_mmc_storage()
|
/openbmc/linux/drivers/infiniband/hw/irdma/ |
H A D | puda.c | 1157 u32 marker_seq, end_seq, blk_start; in irdma_ieq_get_fpdu_len() local 1162 blk_start = (pfpdu->rcv_start_seq - rcv_seq) & (IRDMA_MRK_BLK_SZ - 1); in irdma_ieq_get_fpdu_len() 1163 if (!blk_start) { in irdma_ieq_get_fpdu_len() 1169 marker_seq = rcv_seq + blk_start; in irdma_ieq_get_fpdu_len()
|
/openbmc/linux/fs/f2fs/ |
H A D | file.c | 1186 loff_t blk_start, blk_end; in f2fs_punch_hole() local 1191 blk_start = (loff_t)pg_start << PAGE_SHIFT; in f2fs_punch_hole() 1197 truncate_pagecache_range(inode, blk_start, blk_end - 1); in f2fs_punch_hole()
|