Home
last modified time | relevance | path

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

123

/device/qemu/drivers/virtio/
Dvirtblock.c87 struct Virtblk *blk = dev; in Feature0() local
88 struct VirtblkConfig *conf = (void *)(blk->dev.base + VIRTMMIO_REG_CONFIG); in Feature0()
96 blk->blkSize = VIRTBLK_DEF_BLK_SIZE; in Feature0()
101 blk->blkSize = bs; in Feature0()
106 blk->capacity = conf->capacity; in Feature0()
123 static void PopulateRequestQ(const struct Virtblk *blk) in PopulateRequestQ() argument
125 const struct Virtq *q = &blk->dev.vq[0]; in PopulateRequestQ()
128 q->desc[i].pAddr = VMM_TO_DMA_ADDR((VADDR_T)&blk->req); in PopulateRequestQ()
137 q->desc[i].pAddr = VMM_TO_DMA_ADDR((VADDR_T)&blk->resp); in PopulateRequestQ()
142 static uint8_t VirtblkIO(struct Virtblk *blk, uint32_t cmd, uint64_t startSector, in VirtblkIO() argument
[all …]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
Dmali_kbase_hwcnt_types.h379 size_t grp, size_t blk) in kbase_hwcnt_metadata_block_type() argument
382 WARN_ON(blk >= metadata->grp_metadata[grp].blk_cnt)) in kbase_hwcnt_metadata_block_type()
385 return metadata->grp_metadata[grp].blk_metadata[blk].type; in kbase_hwcnt_metadata_block_type()
398 const struct kbase_hwcnt_metadata *metadata, size_t grp, size_t blk) in kbase_hwcnt_metadata_block_instance_count() argument
401 WARN_ON(blk >= metadata->grp_metadata[grp].blk_cnt)) in kbase_hwcnt_metadata_block_instance_count()
404 return metadata->grp_metadata[grp].blk_metadata[blk].inst_cnt; in kbase_hwcnt_metadata_block_instance_count()
417 const struct kbase_hwcnt_metadata *metadata, size_t grp, size_t blk) in kbase_hwcnt_metadata_block_headers_count() argument
420 WARN_ON(blk >= metadata->grp_metadata[grp].blk_cnt)) in kbase_hwcnt_metadata_block_headers_count()
423 return metadata->grp_metadata[grp].blk_metadata[blk].hdr_cnt; in kbase_hwcnt_metadata_block_headers_count()
435 const struct kbase_hwcnt_metadata *metadata, size_t grp, size_t blk) in kbase_hwcnt_metadata_block_counters_count() argument
[all …]
Dmali_kbase_hwcnt_types.c84 size_t blk; in kbase_hwcnt_metadata_create() local
101 for (blk = 0; blk < grp_desc->blk_cnt; blk++) { in kbase_hwcnt_metadata_create()
103 grp_desc->blks + blk; in kbase_hwcnt_metadata_create()
105 blk_mds + blk; in kbase_hwcnt_metadata_create()
309 size_t grp, blk, blk_inst; in kbase_hwcnt_dump_buffer_zero() local
318 kbase_hwcnt_metadata_for_each_block(metadata, grp, blk, blk_inst) { in kbase_hwcnt_dump_buffer_zero()
323 dst_enable_map, grp, blk, blk_inst)) in kbase_hwcnt_dump_buffer_zero()
327 dst, grp, blk, blk_inst); in kbase_hwcnt_dump_buffer_zero()
329 metadata, grp, blk); in kbase_hwcnt_dump_buffer_zero()
355 size_t grp, blk, blk_inst; in kbase_hwcnt_dump_buffer_zero_non_enabled() local
[all …]
Dmali_kbase_hwcnt_gpu_narrow.c38 size_t blk; in kbase_hwcnt_gpu_metadata_narrow_create() local
59 for (blk = 1; blk < KBASE_HWCNT_V5_BLOCK_TYPE_COUNT; blk++) { in kbase_hwcnt_gpu_metadata_narrow_create()
61 kbase_hwcnt_metadata_block_values_count(src_md, 0, blk); in kbase_hwcnt_gpu_metadata_narrow_create()
77 for (blk = 0; blk < KBASE_HWCNT_V5_BLOCK_TYPE_COUNT; blk++) { in kbase_hwcnt_gpu_metadata_narrow_create()
79 src_md, 0, blk); in kbase_hwcnt_gpu_metadata_narrow_create()
80 blks[blk] = (struct kbase_hwcnt_block_description){ in kbase_hwcnt_gpu_metadata_narrow_create()
81 .type = kbase_hwcnt_metadata_block_type(src_md, 0, blk), in kbase_hwcnt_gpu_metadata_narrow_create()
83 src_md, 0, blk), in kbase_hwcnt_gpu_metadata_narrow_create()
284 size_t blk; in kbase_hwcnt_dump_buffer_copy_strict_narrow() local
288 for (blk = 0; blk < blk_cnt; blk++) { in kbase_hwcnt_dump_buffer_copy_strict_narrow()
[all …]
Dmali_kbase_hwcnt_gpu_narrow.h135 size_t blk) in kbase_hwcnt_metadata_narrow_block_instance_count() argument
138 grp, blk); in kbase_hwcnt_metadata_narrow_block_instance_count()
153 size_t blk) in kbase_hwcnt_metadata_narrow_block_headers_count() argument
156 grp, blk); in kbase_hwcnt_metadata_narrow_block_headers_count()
171 size_t blk) in kbase_hwcnt_metadata_narrow_block_counters_count() argument
174 grp, blk); in kbase_hwcnt_metadata_narrow_block_counters_count()
189 size_t blk) in kbase_hwcnt_metadata_narrow_block_values_count() argument
192 blk) + in kbase_hwcnt_metadata_narrow_block_values_count()
194 blk); in kbase_hwcnt_metadata_narrow_block_values_count()
210 size_t blk, size_t blk_inst) in kbase_hwcnt_dump_buffer_narrow_block_instance() argument
[all …]
Dmali_kbase_hwcnt_gpu.c309 const size_t blk) in is_block_type_shader() argument
352 size_t grp, blk, blk_inst; in kbase_hwcnt_jm_dump_get() local
367 metadata, grp, blk, blk_inst) { in kbase_hwcnt_jm_dump_get()
370 metadata, grp, blk); in kbase_hwcnt_jm_dump_get()
373 metadata, grp, blk); in kbase_hwcnt_jm_dump_get()
375 metadata, grp, blk); in kbase_hwcnt_jm_dump_get()
378 blk_type, blk); in kbase_hwcnt_jm_dump_get()
410 dst_enable_map, grp, blk, blk_inst)) { in kbase_hwcnt_jm_dump_get()
412 dst, grp, blk, blk_inst); in kbase_hwcnt_jm_dump_get()
448 size_t grp, blk, blk_inst; in kbase_hwcnt_csf_dump_get() local
[all …]
Dmali_kbase_kinstr_prfcnt.c415 size_t grp, blk, blk_inst; in kbasep_kinstr_prfcnt_set_block_meta_items() local
423 kbase_hwcnt_metadata_for_each_block(metadata, grp, blk, blk_inst) { in kbasep_kinstr_prfcnt_set_block_meta_items()
427 if (!kbase_hwcnt_metadata_block_instance_avail(metadata, grp, blk, blk_inst)) in kbasep_kinstr_prfcnt_set_block_meta_items()
430 dst_blk = kbase_hwcnt_dump_buffer_block_instance(dst, grp, blk, blk_inst); in kbasep_kinstr_prfcnt_set_block_meta_items()
436 blk)); in kbasep_kinstr_prfcnt_set_block_meta_items()
1196 size_t grp, blk, blk_inst; in kbasep_kinstr_prfcnt_get_sample_md_count() local
1202 kbase_hwcnt_metadata_for_each_block(metadata, grp, blk, blk_inst) { in kbasep_kinstr_prfcnt_get_sample_md_count()
1204 if (!kbase_hwcnt_metadata_block_instance_avail(metadata, grp, blk, blk_inst)) in kbasep_kinstr_prfcnt_get_sample_md_count()
1921 size_t grp, blk; in kbasep_kinstr_prfcnt_get_block_info_list() local
1927 for (blk = 0; in kbasep_kinstr_prfcnt_get_block_info_list()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
Dmali_kbase_hwcnt_types.h336 …e kbase_hwcnt_metadata_block_type(metadata, grp, blk) ((metadata)->grp_metadata[(grp)].blk_metadat… argument
347 #define kbase_hwcnt_metadata_block_instance_count(metadata, grp, blk) … argument
348 ((metadata)->grp_metadata[(grp)].blk_metadata[(blk)].inst_cnt)
360 #define kbase_hwcnt_metadata_block_headers_count(metadata, grp, blk) … argument
361 ((metadata)->grp_metadata[(grp)].blk_metadata[(blk)].hdr_cnt)
372 #define kbase_hwcnt_metadata_block_counters_count(metadata, grp, blk) … argument
373 ((metadata)->grp_metadata[(grp)].blk_metadata[(blk)].ctr_cnt)
384 #define kbase_hwcnt_metadata_block_values_count(metadata, grp, blk) … argument
385 …(kbase_hwcnt_metadata_block_counters_count((metadata), (grp), (blk)) + …
386 kbase_hwcnt_metadata_block_headers_count((metadata), (grp), (blk)))
[all …]
Dmali_kbase_hwcnt_types.c97 size_t blk; in kbase_hwcnt_metadata_create() local
111 for (blk = 0; blk < grp_desc->blk_cnt; blk++) { in kbase_hwcnt_metadata_create()
112 const struct kbase_hwcnt_block_description *blk_desc = grp_desc->blks + blk; in kbase_hwcnt_metadata_create()
113 struct kbase_hwcnt_block_metadata *blk_md = blk_mds + blk; in kbase_hwcnt_metadata_create()
311 size_t grp, blk, blk_inst; in kbase_hwcnt_dump_buffer_zero() local
319 kbase_hwcnt_metadata_cycle_each_block(metadata, grp, blk, blk_inst) in kbase_hwcnt_dump_buffer_zero()
324 if (!kbase_hwcnt_enable_map_block_enabled(dst_enable_map, grp, blk, blk_inst)) { in kbase_hwcnt_dump_buffer_zero()
328 dst_blk = kbase_hwcnt_dump_buffer_block_instance(dst, grp, blk, blk_inst); in kbase_hwcnt_dump_buffer_zero()
329 val_cnt = kbase_hwcnt_metadata_block_values_count(metadata, grp, blk); in kbase_hwcnt_dump_buffer_zero()
354 size_t grp, blk, blk_inst; in kbase_hwcnt_dump_buffer_zero_non_enabled() local
[all …]
Dmali_kbase_hwcnt_gpu.c227 static bool is_block_type_shader(const u64 grp_type, const u64 blk_type, const size_t blk) in is_block_type_shader() argument
248 size_t src_offset, grp, blk, blk_inst; in kbase_hwcnt_gpu_dump_get() local
259 kbase_hwcnt_metadata_cycle_each_block(metadata, grp, blk, blk_inst) in kbase_hwcnt_gpu_dump_get()
261 const size_t hdr_cnt = kbase_hwcnt_metadata_block_headers_count(metadata, grp, blk); in kbase_hwcnt_gpu_dump_get()
262 const size_t ctr_cnt = kbase_hwcnt_metadata_block_counters_count(metadata, grp, blk); in kbase_hwcnt_gpu_dump_get()
263 const u64 blk_type = kbase_hwcnt_metadata_block_type(metadata, grp, blk); in kbase_hwcnt_gpu_dump_get()
264 …_shader_core = is_block_type_shader(kbase_hwcnt_metadata_group_type(metadata, grp), blk_type, blk); in kbase_hwcnt_gpu_dump_get()
267 if (kbase_hwcnt_enable_map_block_enabled(dst_enable_map, grp, blk, blk_inst)) { in kbase_hwcnt_gpu_dump_get()
268 u32 *dst_blk = kbase_hwcnt_dump_buffer_block_instance(dst, grp, blk, blk_inst); in kbase_hwcnt_gpu_dump_get()
377 size_t grp, blk, blk_inst; in kbase_hwcnt_gpu_enable_map_to_physical() local
[all …]
/device/soc/esp/esp32/components/efuse/src/esp32/
Desp_efuse_api.c25 esp_err_t esp_efuse_set_write_protect(esp_efuse_block_t blk) in esp_efuse_set_write_protect() argument
27 if (blk == EFUSE_BLK1) { in esp_efuse_set_write_protect()
29 } else if (blk == EFUSE_BLK2) { in esp_efuse_set_write_protect()
31 } else if (blk == EFUSE_BLK3) { in esp_efuse_set_write_protect()
38 esp_err_t esp_efuse_set_read_protect(esp_efuse_block_t blk) in esp_efuse_set_read_protect() argument
40 if (blk == EFUSE_BLK1) { in esp_efuse_set_read_protect()
42 } else if (blk == EFUSE_BLK2) { in esp_efuse_set_read_protect()
44 } else if (blk == EFUSE_BLK3) { in esp_efuse_set_read_protect()
51 esp_efuse_coding_scheme_t esp_efuse_get_coding_scheme(esp_efuse_block_t blk) in esp_efuse_get_coding_scheme() argument
54 if (blk == EFUSE_BLK0) { in esp_efuse_get_coding_scheme()
/device/soc/amlogic/a311d/soc/amlogic/mmc/
Demmc_key.c39 int blk, cnt; in emmc_read_valid_key() local
46 blk = addr >> bit; in emmc_read_valid_key()
52 ret = mmc_read_internal(card, blk, EMMC_BLOCK_SIZE, dst); in emmc_read_valid_key()
57 blk += EMMC_BLOCK_SIZE; in emmc_read_valid_key()
87 u64 blk, cnt, key_glb_offset; in emmc_write_one_key() local
100 blk = (key_glb_offset + (valid_flag % 2L) * EMMC_KEYAREA_SIZE) >> bit; in emmc_write_one_key()
106 ret = mmc_write_internal(card, blk, EMMC_BLOCK_SIZE, src); in emmc_write_one_key()
111 blk += EMMC_BLOCK_SIZE; in emmc_write_one_key()
117 blk = ((key_glb_offset + 2L * (EMMC_KEYAREA_SIZE)) >> bit) + (valid_flag % 2L); in emmc_write_one_key()
118 ret = mmc_write_internal(card, blk, 1, checksum_info); in emmc_write_one_key()
[all …]
Demmc_partitions.c127 static int _dtb_write(struct mmc_card *mmc, int blk, unsigned char *buf) in _dtb_write() argument
133 int blk_tmp = blk; in _dtb_write()
154 static int _dtb_read(struct mmc_card *mmc, int blk, unsigned char *buf) in _dtb_read() argument
160 int blk_tmp = blk; in _dtb_read()
186 int blk; in _dtb_init() local
198blk = ((get_reserve_partition_off_from_tbl() + DTB_RESERVE_OFFSET) >> bit) + cpy * DTB_BLK_CNT; in _dtb_init()
199 if (_dtb_read(mmc, blk, (unsigned char *)dtb)) { in _dtb_init()
200 pr_err("%s: block # %#x ERROR!\n", __func__, blk); in _dtb_init()
220 int ret = 0, blk; in amlmmc_dtb_write() local
253blk = ((get_reserve_partition_off_from_tbl() + DTB_RESERVE_OFFSET) >> bit) + cpy * DTB_BLK_CNT; in amlmmc_dtb_write()
[all …]
/device/soc/esp/esp32/components/efuse/src/
Desp_efuse_utility.c40 static void write_reg(esp_efuse_block_t blk, unsigned int num_reg, uint32_t value);
43 static bool check_range_of_bits(esp_efuse_block_t blk, int offset_in_bits, int size_bits);
228 uint32_t esp_efuse_utility_read_reg(esp_efuse_block_t blk, unsigned int num_reg) in esp_efuse_utility_read_reg() argument
230 assert(blk >= 0 && blk < EFUSE_BLK_MAX); in esp_efuse_utility_read_reg()
231 …unsigned int max_num_reg = (range_read_addr_blocks[blk].end - range_read_addr_blocks[blk].start) /… in esp_efuse_utility_read_reg()
235 value = virt_blocks[blk][num_reg]; in esp_efuse_utility_read_reg()
237 value = REG_READ(range_read_addr_blocks[blk].start + num_reg * 4); in esp_efuse_utility_read_reg()
245 static void write_reg(esp_efuse_block_t blk, unsigned int num_reg, uint32_t value) in write_reg() argument
247 assert(blk >= 0 && blk < EFUSE_BLK_MAX); in write_reg()
248 …unsigned int max_num_reg = (range_read_addr_blocks[blk].end - range_read_addr_blocks[blk].start) /… in write_reg()
[all …]
Desp_efuse_api.c172 uint32_t esp_efuse_read_reg(esp_efuse_block_t blk, unsigned int num_reg) in esp_efuse_read_reg() argument
175 uint32_t ret_val = esp_efuse_utility_read_reg(blk, num_reg); in esp_efuse_read_reg()
181 esp_err_t esp_efuse_write_reg(esp_efuse_block_t blk, unsigned int num_reg, uint32_t val) in esp_efuse_write_reg() argument
187 esp_err_t err = esp_efuse_utility_write_reg(blk, num_reg, val); in esp_efuse_write_reg()
202 esp_err_t esp_efuse_read_block(esp_efuse_block_t blk, void* dst_key, size_t offset_in_bits, size_t … in esp_efuse_read_block() argument
205 if (blk == EFUSE_BLK0 || blk >= EFUSE_BLK_MAX || dst_key == NULL || size_bits == 0) { in esp_efuse_read_block()
209 {blk, offset_in_bits, size_bits}, in esp_efuse_read_block()
222 esp_err_t esp_efuse_write_block(esp_efuse_block_t blk, const void* src_key, size_t offset_in_bits, … in esp_efuse_write_block() argument
225 if (blk == EFUSE_BLK0 || blk >= EFUSE_BLK_MAX || src_key == NULL || size_bits == 0) { in esp_efuse_write_block()
229 {blk, offset_in_bits, size_bits}, in esp_efuse_write_block()
/device/soc/esp/esp32/components/efuse/include/
Desp_efuse.h171 esp_err_t esp_efuse_set_write_protect(esp_efuse_block_t blk);
186 esp_err_t esp_efuse_set_read_protect(esp_efuse_block_t blk);
209 uint32_t esp_efuse_read_reg(esp_efuse_block_t blk, unsigned int num_reg);
225 esp_err_t esp_efuse_write_reg(esp_efuse_block_t blk, unsigned int num_reg, uint32_t val);
235 esp_efuse_coding_scheme_t esp_efuse_get_coding_scheme(esp_efuse_block_t blk);
252 esp_err_t esp_efuse_read_block(esp_efuse_block_t blk, void* dst_key, size_t offset_in_bits, size_t …
268 esp_err_t esp_efuse_write_block(esp_efuse_block_t blk, const void* src_key, size_t offset_in_bits, …
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/sdcard/
Dsdcard_test.c65 UINT32 test_sdcard_read(UINT32 blk, UINT32 blk_cnt) in test_sdcard_read() argument
79 ret = bk_sd_card_read_blocks(testbuf, blk + j, SDCARD_TEST_BUFFER_SIZE/512); in test_sdcard_read()
96 UINT32 test_sdcard_write(UINT32 blk, UINT32 blk_cnt, UINT32 wr_val) in test_sdcard_write() argument
137 ret = bk_sd_card_write_blocks(testbuf, blk + j, SDCARD_TEST_BUFFER_SIZE/512); in test_sdcard_write()
188 UINT32 test_sdcard_read(UINT32 blk, UINT32 blk_cnt) in test_sdcard_read() argument
202 ret = ddev_read(sdcard_hdl, (char *)testbuf, 1, blk+j); in test_sdcard_read()
213 UINT32 test_sdcard_write(UINT32 blk, UINT32 blk_cnt, UINT32 wr_val) in test_sdcard_write() argument
241 ret = ddev_write(sdcard_hdl, (char *)testbuf, 1, blk+i); in test_sdcard_write()
/device/soc/esp/esp32/components/bt/host/bluedroid/external/sbc/decoder/srce/
Dsynthesis-sbc.c262 OI_UINT blk; in OI_SBC_SynthFrame_80() local
270 for (blk = blkstart; blk < blkstop; blk++) { in OI_SBC_SynthFrame_80()
293 OI_UINT blk; in OI_SBC_SynthFrame_4SB() local
301 for (blk = blkstart; blk < blkstop; blk++) { in OI_SBC_SynthFrame_4SB()
327 OI_UINT blk; in OI_SBC_SynthFrame_Enhanced() local
335 for (blk = blkstart; blk < blkstop; blk++) { in OI_SBC_SynthFrame_Enhanced()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/lowlevel_v33x/de330/
Dde_wb.c54 struct de_reg_block *blk = &(priv->reg_blks[blk_id]); in wb_set_block_dirty() local
56 if (blk->vir_addr != blk->reg_addr) in wb_set_block_dirty()
57 blk->dirty = dirty; in wb_set_block_dirty()
780 struct de_reg_block *blk; in de_wb_init() local
795 blk = &(priv->reg_blks[WB_REG_BLK_CTL]); in de_wb_init()
796 blk->phy_addr = reg_mem_info->phy_addr; in de_wb_init()
797 blk->vir_addr = reg_mem_info->vir_addr; in de_wb_init()
798 blk->size = 0xd0; in de_wb_init()
799 blk->reg_addr = reg_base; in de_wb_init()
801 blk = &(priv->reg_blks[WB_REG_BLK_COEFF0]); in de_wb_init()
[all …]
/device/soc/esp/esp32/components/efuse/private_include/esp32/
Desp_efuse_utility.h25 #define ESP_EFUSE_FIELD_CORRESPONDS_CODING_SCHEME(blk, max_num_bit) … argument
26 esp_efuse_coding_scheme_t scheme = esp_efuse_get_coding_scheme(blk); \
/device/soc/rockchip/common/sdk_linux/drivers/staging/blackbox/
DKconfig35 bool "blackbox use pstore blk for debug"
39 If Y, this enables pstore blk for blackbox.
42 tristate "blackbox fault log storage by pstore blk"
48 This option enables saving fault logs with pstore blk by blackbox when a
49 panic occurs. It depends on supporting pstore blk. Especially, flash
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gap/
Dgap_utils.c36 tGAP_INFO *p_cb = &gap_cb.blk[0]; in gap_allocate_cb()
87 tGAP_INFO *p_cb = &gap_cb.blk[0]; in gap_is_service_busy()
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/hal/halmac/halmac_88xx/
Dhalmac_efuse_88xx.c1590 u8 blk; in proc_write_log_efuse_88xx() local
1616 blk = (u8)(offset >> 3); in proc_write_log_efuse_88xx()
1620 hdr = (((blk & 0x07) << 5) & 0xE0) | 0x0F; in proc_write_log_efuse_88xx()
1621 hdr2 = (u8)(((blk & 0x78) << 1) + in proc_write_log_efuse_88xx()
1624 hdr = (u8)((blk << 4) + ((0x01 << blk_idx) ^ 0x0F)); in proc_write_log_efuse_88xx()
1703 u8 blk; in proc_write_log_efuse_word_88xx() local
1728 blk = (u8)(offset >> 3); in proc_write_log_efuse_word_88xx()
1732 hdr = (((blk & 0x07) << 5) & 0xE0) | 0x0F; in proc_write_log_efuse_word_88xx()
1733 hdr2 = (u8)(((blk & 0x78) << 1) + in proc_write_log_efuse_word_88xx()
1736 hdr = (u8)((blk << 4) + ((0x01 << blk_idx) ^ 0x0F)); in proc_write_log_efuse_word_88xx()
[all …]
/device/soc/esp/esp32/components/efuse/private_include/
Desp_efuse_utility.h115 uint32_t esp_efuse_utility_read_reg(esp_efuse_block_t blk, unsigned int num_reg);
/device/soc/amlogic/a311d/soc/amlogic/ge2d/
Dfillrect.c24 … void _fillrect(struct ge2d_context_s *wq, int x, int y, int w, int h, unsigned int color, int blk) in _fillrect() argument

123