/device/board/hihope/dayu210/kernel/ |
H A D | make-boot.sh | 29 blocks=${IMAGE_BLOCKS} 30 block_size=$((${IMAGE_SIZE} * 1024 * 1024 / ${blocks})) 31 echo "blocks = ${blocks} block_size ${block_size}" 33 echo y | sudo mke2fs -b ${block_size} -d boot_linux -i 8192 -t ext2 boot_linux.img ${blocks} 35 genext2fs -B ${blocks} -b ${block_size} -d boot_linux -i 8192 -U boot_linux.img
|
H A D | make-ohos.sh | 92 blocks=${IMAGE_BLOCKS} 93 block_size=$((${IMAGE_SIZE} * 1024 * 1024 / ${blocks})) 96 echo y | sudo mke2fs -b ${block_size} -d boot_linux -i 8192 -t ext2 boot_linux.img ${blocks} 98 genext2fs -B ${blocks} -b ${block_size} -d boot_linux -i 8192 -U boot_linux.img
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/linux/ |
H A D | ump_ukk_ref_wrappers.c | 115 ump_dd_physical_block *blocks = NULL; in ump_dmabuf_import_wrapper() local 162 blocks = (ump_dd_physical_block *)_mali_osk_malloc(sizeof(ump_dd_physical_block) * sgt->nents); in ump_dmabuf_import_wrapper() 163 if (!blocks) { in ump_dmabuf_import_wrapper() 164 DBG_MSG(1, ("Failed to allocate blocks.\n")); in ump_dmabuf_import_wrapper() 169 blocks[i].addr = sg_phys(sgl); in ump_dmabuf_import_wrapper() 170 blocks[i].size = sg_dma_len(sgl); in ump_dmabuf_import_wrapper() 184 ump_handle = ump_dd_handle_create_from_phys_blocks(blocks, i); in ump_dmabuf_import_wrapper() 200 _mali_osk_free(blocks); in ump_dmabuf_import_wrapper() 221 _mali_osk_free(blocks); in ump_dmabuf_import_wrapper()
|
/device/soc/rockchip/common/vendor/drivers/mmc/host/ |
H A D | rk_sdmmc_ops.c | 57 unsigned blocks, unsigned blksz, int write) in rk_emmc_prepare_mrq() 61 if (blocks > 1) { in rk_emmc_prepare_mrq() 74 if (blocks == 1) { in rk_emmc_prepare_mrq() 83 mrq->data->blocks = blocks; in rk_emmc_prepare_mrq() 56 rk_emmc_prepare_mrq(struct mmc_request *mrq, struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, unsigned blocks, unsigned blksz, int write) rk_emmc_prepare_mrq() argument
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/common/ |
H A D | ump_kernel_ref_drv.c | 26 UMP_KERNEL_API_EXPORT ump_dd_handle ump_dd_handle_create_from_phys_blocks(ump_dd_physical_block *blocks, unsigned long num_blocks) in ump_dd_handle_create_from_phys_blocks() argument 33 /* Go through the input blocks and verify that they are sane */ in ump_dd_handle_create_from_phys_blocks() 35 unsigned long addr = blocks[i].addr; in ump_dd_handle_create_from_phys_blocks() 36 unsigned long size = blocks[i].size; in ump_dd_handle_create_from_phys_blocks() 39 size_total += blocks[i].size; in ump_dd_handle_create_from_phys_blocks() 67 _mali_osk_memcpy(mem->block_array, blocks, sizeof(ump_dd_physical_block) * num_blocks); in ump_dd_handle_create_from_phys_blocks()
|
H A D | ump_kernel_api.c | 67 UMP_KERNEL_API_EXPORT ump_dd_status_code ump_dd_phys_blocks_get(ump_dd_handle memh, ump_dd_physical_block *blocks, unsigned long num_blocks) in ump_dd_phys_blocks_get() argument 73 if (blocks == NULL) { in ump_dd_phys_blocks_get() 79 DBG_MSG(1, ("Specified number of blocks do not match actual number of blocks\n")); in ump_dd_phys_blocks_get() 85 _mali_osk_memcpy(blocks, mem->block_array, sizeof(ump_dd_physical_block) * mem->nr_blocks); in ump_dd_phys_blocks_get()
|
/device/soc/rockchip/rk3588/kernel/drivers/mmc/host/ |
H A D | rk_sdmmc_ops.c | 59 unsigned sg_len, unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in rk_emmc_prepare_mrq() 63 if (blocks > 1) { in rk_emmc_prepare_mrq() 77 if (blocks == 1) in rk_emmc_prepare_mrq() 86 mrq->data->blocks = blocks; in rk_emmc_prepare_mrq() 58 rk_emmc_prepare_mrq(struct mmc_request *mrq, struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, unsigned blocks, unsigned blksz, int write) rk_emmc_prepare_mrq() argument
|
H A D | cqhci-core.c | 431 CQHCI_BLK_COUNT(mrq->data->blocks) | in cqhci_prep_task_desc() 798 data->bytes_xfered = data->blksz * data->blocks; in cqhci_finish_mrq()
|
/device/soc/rockchip/common/sdk_linux/drivers/mmc/core/ |
H A D | block.c | 384 idata->buf_bytes = (u64)idata->ic.blksz * idata->ic.blocks;
in mmc_blk_ioctl_copy_from_user() 494 data.blocks = idata->ic.blocks;
in mmc_blk_ioctl_cmd_ext() 549 sbc.arg = data.blocks | (idata->ic.write_flag & BIT(MMC_WRITE_FLAG_BIT));
in mmc_blk_ioctl_cmd_ext() 875 __be32 *blocks;
in mmc_sd_num_wr_blocks() local 902 data.blocks = 1;
in mmc_sd_num_wr_blocks() 911 blocks = kmalloc(MMC_WRITE_BLK_SIZE, GFP_KERNEL);
in mmc_sd_num_wr_blocks() 912 if (!blocks) {
in mmc_sd_num_wr_blocks() 916 sg_init_one(&sg, blocks, MMC_WRITE_BLK_SIZE);
in mmc_sd_num_wr_blocks() 920 result = ntohl(*blocks);
in mmc_sd_num_wr_blocks() 1762 u32 blocks; mmc_blk_mq_rw_recovery() local [all...] |
/device/soc/rockchip/common/sdk_linux/scripts/ |
H A D | resource_tool.c | 581 uint8_t header_size; /* blocks, size of ptn header. */ 582 uint8_t tbl_offset; /* blocks, offset of index table. */ 583 uint8_t tbl_entry_size; /* blocks, size of index table's entry. */ 596 uint32_t content_offset; /* blocks, offset of resource content. */ 615 uint32_t content_offset; /* blocks, offset of resource content. */ 695 static bool StorageWriteLba(int offset_block, void *data, int blocks) in StorageWriteLba() argument 708 if (!fwrite(data, blocks * BLOCK_SIZE, 1, file)) { in StorageWriteLba() 720 static bool StorageReadLba(int offset_block, void *data, int blocks) in StorageReadLba() argument 732 if (!fread(data, blocks * BLOCK_SIZE, 1, file)) { in StorageReadLba() 749 int blocks in write_data() local 777 int blocks = 0; test_load() local 815 int blocks = fix_blocks(content->content_size); load_content() local 829 load_content_data(resource_content *content, int offset_block, void *data, int blocks) load_content_data() argument 909 load_file(const char *file_path, int offset_block, int blocks) load_file() argument [all...] |
/device/soc/rockchip/rk3588/kernel/scripts/ |
H A D | resource_tool.c | 598 uint8_t header_size; /* blocks, size of ptn header. */ 599 uint8_t tbl_offset; /* blocks, offset of index table. */ 600 uint8_t tbl_entry_size; /* blocks, size of index table's entry. */ 613 uint32_t content_offset; /* blocks, offset of resource content. */ 632 uint32_t content_offset; /* blocks, offset of resource content. */ 712 static bool StorageWriteLba(int offset_block, void *data, int blocks) in StorageWriteLba() argument 724 if (!fwrite(data, blocks * BLOCK_SIZE, 1, file)) { in StorageWriteLba() 735 static bool StorageReadLba(int offset_block, void *data, int blocks) in StorageReadLba() argument 746 if (!fread(data, blocks * BLOCK_SIZE, 1, file)) { in StorageReadLba() 761 int blocks in write_data() local 788 int blocks = 0; test_load() local 824 int blocks = fix_blocks(content->content_size); load_content() local 838 load_content_data(resource_content *content, int offset_block, void *data, int blocks) load_content_data() argument 923 load_file(const char *file_path, int offset_block, int blocks) load_file() argument [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/ipa_control/ |
H A D | mali_kbase_csf_ipa_control.c | 213 &ipa_ctrl->blocks[i].select[j]; in build_select_config() 350 ipa_ctrl->blocks[i].select[j].idx = 0; in kbase_ipa_control_init() 351 ipa_ctrl->blocks[i].select[j].refcount = 0; in kbase_ipa_control_init() 353 ipa_ctrl->blocks[i].num_available_counters = in kbase_ipa_control_init() 568 &ipa_ctrl->blocks[type].select[j]; in kbase_ipa_control_register() 587 ipa_ctrl->blocks[i].num_available_counters) { in kbase_ipa_control_register() 591 ipa_ctrl->blocks[i].num_available_counters, i); in kbase_ipa_control_register() 623 prfcnt_config = &ipa_ctrl->blocks[type].select[j]; in kbase_ipa_control_register() 648 ipa_ctrl->blocks[type].num_available_counters--; in kbase_ipa_control_register() 752 prfcnt_config = &ipa_ctrl->blocks[typ in kbase_ipa_control_unregister() [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/ |
H A D | module_config.mk | 3 BOOT_CCFLAGS := -mabi=ilp32 -march=rv32imc -freorder-blocks-algorithm=simple -fno-schedule-insns -nostdinc -fno-aggressive-loop-optimizations -fno-builtin -fno-exceptions -fno-short-enums -mtune=size -msmall-data-limit=0 -Wall -Werror -Os -std=c99 -falign-functions=2 -fdata-sections -ffunction-sections -fno-common -fstack-protector-strong
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/ |
H A D | module_config.mk | 3 BOOT_CCFLAGS := -mabi=ilp32 -march=rv32imc -freorder-blocks-algorithm=simple -fno-schedule-insns -nostdinc -fno-aggressive-loop-optimizations -fno-builtin -fno-exceptions -fno-short-enums -mtune=size -msmall-data-limit=0 -Wall -Werror -Os -std=c99 -falign-functions=2 -fdata-sections -ffunction-sections -fno-common -fstack-protector-strong
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/make_scripts/ |
H A D | config.mk | 61 CCFLAGS := -mabi=ilp32 -march=rv32imc -falign-functions=2 -msave-restore -fno-optimize-strlen -freorder-blocks-algorithm=simple -fno-schedule-insns -fno-inline-small-functions -fno-inline-functions-called-once -mtune=size -fno-strict-aliasing -msmall-data-limit=0 -nostdinc -fno-aggressive-loop-optimizations -fno-builtin -std=c99 -Os -ffunction-sections -fdata-sections -fno-exceptions -fno-short-enums -fno-common -Wall -Wundef -DLOS_COMPILE_LDM -fstack-protector-strong -freg-struct-return -fvisibility=hidden -pipe
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/win_scripts/build/make_scripts/ |
H A D | config.mk | 61 CCFLAGS := -mabi=ilp32 -march=rv32imc -falign-functions=2 -msave-restore -fno-optimize-strlen -freorder-blocks-algorithm=simple -fno-schedule-insns -fno-inline-small-functions -fno-inline-functions-called-once -mtune=size -fno-strict-aliasing -msmall-data-limit=0 -nostdinc -fno-aggressive-loop-optimizations -fno-builtin -std=c99 -Os -ffunction-sections -fdata-sections -fno-exceptions -fno-short-enums -fno-common -Wall -Wundef -DLOS_COMPILE_LDM -fstack-protector-strong -freg-struct-return -fvisibility=hidden -pipe
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_sdio_host.c | 1489 hi_s32 incr_addr, struct scatterlist *sg, hi_u32 sg_len, hi_u32 blocks, hi_u32 blksz) in oal_mmc_io_rw_scat_extended() 1521 hi_s32 ret = oal_sdio_tx_scatt_list_merge(hi_sdio, sg, sg_len, blocks * blksz); in oal_mmc_io_rw_scat_extended() 1539 if (blocks == 1 && blksz <= 512) { /* blksz range [1 512] */ in oal_mmc_io_rw_scat_extended() 1542 cmd.arg |= 0x08000000 | blocks; /* block mode */ in oal_mmc_io_rw_scat_extended() 1547 data.blocks = blocks; in oal_mmc_io_rw_scat_extended() 1552 printk("[blksz:%u][blocks:%u][sg_len:%u][mode:%s]\n", blksz, blocks, sg_len, write ? "write" : "read"); in oal_mmc_io_rw_scat_extended() 2250 * size and the maximum for IO_RW_EXTENDED of 511 blocks. */ in oal_sdio_func_max_req_size() 1488 oal_mmc_io_rw_scat_extended(const oal_channel_stru *hi_sdio, hi_s32 write, hi_u32 fn, hi_u32 addr, hi_s32 incr_addr, struct scatterlist *sg, hi_u32 sg_len, hi_u32 blocks, hi_u32 blksz) oal_mmc_io_rw_scat_extended() argument
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/ |
H A D | mali_kbase_csf_defs.h | 1061 * @blocks: Current configuration of performance counters 1076 struct kbase_ipa_control_prfcnt_block blocks[KBASE_IPA_CORE_TYPE_NUM]; member
|
/device/soc/rockchip/common/sdk_linux/kernel/power/ |
H A D | snapshot.c | 315 * represent each blocks of bitmap in which information is stored. 377 unsigned int blocks; /* Number of Bitmap Blocks */ member 438 * linked list in order. This is guaranteed by the zone->blocks 447 block_nr = zone->blocks; in add_rtree_block() 477 block_nr = zone->blocks; in add_rtree_block() 495 zone->blocks += 1; in add_rtree_block()
|
/device/soc/rockchip/common/sdk_linux/ |
H A D | Makefile | 762 # reorder blocks reorders the control in the function 765 KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks,) \
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | bcmsdh_sdmmc.c | 1173 * data we can transfer with one command 53. blocks per command is limited by in sdioh_request_packet_chain() 1227 mmc_dat.blocks = blk_num; in sdioh_request_packet_chain()
|