Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 25 of 121) sorted by relevance

12345

/openbmc/qemu/tests/unit/
H A Dtest-image-locking.c35 uint64_t perm, uint64_t shared_perm, in open_image() argument
46 if (blk_set_perm(blk, perm, shared_perm, errp)) { in open_image()
80 uint64_t perm, shared_perm; in test_image_locking_basic() local
85 perm = BLK_PERM_WRITE | BLK_PERM_CONSISTENT_READ; in test_image_locking_basic()
87 blk1 = open_image(img_path, perm, shared_perm, &error_abort); in test_image_locking_basic()
90 check_locked_bytes(fd, perm, ~shared_perm); in test_image_locking_basic()
93 blk2 = open_image(img_path, perm | BLK_PERM_RESIZE, shared_perm, NULL); in test_image_locking_basic()
95 check_locked_bytes(fd, perm | BLK_PERM_RESIZE, ~shared_perm); in test_image_locking_basic()
98 blk3 = open_image(img_path, perm, BLK_PERM_WRITE_UNCHANGED, NULL); in test_image_locking_basic()
104 check_locked_bytes(fd, perm, ~shared_perm); in test_image_locking_basic()
[all …]
H A Dtest-bdrv-graph-mod.c37 uint64_t perm, uint64_t shared, in no_perm_default_perms() argument
53 uint64_t perm, uint64_t shared, in exclusive_write_perms() argument
283 uint64_t perm, uint64_t shared, in write_to_selected_perms() argument
388 assert(c_fl1->perm & BLK_PERM_WRITE); in test_parallel_perm_update()
389 assert(!(c_fl2->perm & BLK_PERM_WRITE)); in test_parallel_perm_update()
395 assert(c_fl2->perm & BLK_PERM_WRITE); in test_parallel_perm_update()
396 assert(!(c_fl1->perm & BLK_PERM_WRITE)); in test_parallel_perm_update()
402 assert(c_fl1->perm & BLK_PERM_WRITE); in test_parallel_perm_update()
403 assert(!(c_fl2->perm & BLK_PERM_WRITE)); in test_parallel_perm_update()
/openbmc/u-boot/cmd/
H A Dtpm_test.c237 uint32_t perm = TPM_NV_PER_WRITE_STCLEAR | TPM_NV_PER_PPWRITE; in initialise_spaces() local
241 tpm_nv_define_space(dev, INDEX0, perm, 4); in initialise_spaces()
243 tpm_nv_define_space(dev, INDEX1, perm, 4); in initialise_spaces()
245 tpm_nv_define_space(dev, INDEX2, perm, 4); in initialise_spaces()
247 tpm_nv_define_space(dev, INDEX3, perm, 4); in initialise_spaces()
249 perm = TPM_NV_PER_READ_STCLEAR | TPM_NV_PER_WRITE_STCLEAR | in initialise_spaces()
251 tpm_nv_define_space(dev, INDEX_INITIALISED, perm, 1); in initialise_spaces()
310 uint32_t perm; in test_redefine_unowned() local
326 perm = TPM_NV_PER_PPWRITE | TPM_NV_PER_GLOBALLOCK; in test_redefine_unowned()
327 TPM_CHECK(tpm_nv_define_space(dev, INDEX0, perm, 2 * sizeof(uint32_t))); in test_redefine_unowned()
[all …]
/openbmc/qemu/hw/arm/
H A Dsmmu-internal.h75 #define is_permission_fault(ap, perm) \ argument
76 (((perm) & IOMMU_WO) && ((ap) & 0x2))
78 #define is_permission_fault_s2(s2ap, perm) \ argument
79 (!(((s2ap) & (perm)) == (perm)))
H A Dsmmu-common.c458 dma_addr_t iova, IOMMUAccessFlags perm, in smmu_ptw_64_s1() argument
503 if (is_permission_fault(ap, perm) && !tt->had) { in smmu_ptw_64_s1()
540 if (is_permission_fault(ap, perm)) { in smmu_ptw_64_s1()
559 tlbe->entry.perm = tlbe->parent_perm; in smmu_ptw_64_s1()
568 tlbe->entry.perm = IOMMU_NONE; in smmu_ptw_64_s1()
587 dma_addr_t ipa, IOMMUAccessFlags perm, in smmu_ptw_64_s2() argument
663 if (is_permission_fault_s2(s2ap, perm)) { in smmu_ptw_64_s2()
681 tlbe->entry.perm = tlbe->parent_perm; in smmu_ptw_64_s2()
692 tlbe->entry.perm = IOMMU_NONE; in smmu_ptw_64_s2()
714 tlbe->parent_perm = tlbe_s2->entry.perm; in combine_tlb()
[all …]
/openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-scanners/checksecurity/files/
H A Dcheck-setuid-use-more-portable-find-args.patch20 - \( -type f -perm /06000 -o \( \( -type b -o -type c \) \
21 + \( -type f \( -perm -4000 -o -perm -2000 \) -o \( \( -type b -o -type c \) \
/openbmc/openbmc/meta-security/recipes-security/redhat-security/files/
H A Dfind-hidden-exec.sh13 find / -name '.*' -type f -perm /00111 2>/dev/null
19 find $d -name '.*' -type f -perm /00111 2>/dev/null
H A Dfind-nodrop-groups.sh49 syms=`find $f \( -perm -004000 -o -perm -002000 \) -type f -print`
H A Drpm-drop-groups.sh77 syms=`find $f \( -perm -004000 -o -perm -002000 \) -type f -print`
/openbmc/qemu/tests/qemu-iotests/
H A D273.out211 "shared-perm": [
215 "perm": [
225 "shared-perm": [
231 "perm": [
238 "shared-perm": [
242 "perm": [
250 "shared-perm": [
256 "perm": [
/openbmc/openbmc/poky/meta/files/
H A Dtoolchain-shar-relocate.sh17 \( -perm -0100 -o -perm -0010 -o -perm -0001 \) -printf "'%h/%f' ")
/openbmc/qemu/include/system/
H A Dblock-backend-global-state.h25 BlockBackend *blk_new(AioContext *ctx, uint64_t perm, uint64_t shared_perm);
28 blk_new_with_bs(BlockDriverState *bs, uint64_t perm, uint64_t shared_perm,
32 blk_co_new_with_bs(BlockDriverState *bs, uint64_t perm, uint64_t shared_perm,
63 int GRAPH_UNLOCKED blk_set_perm(BlockBackend *blk, uint64_t perm,
65 void blk_get_perm(BlockBackend *blk, uint64_t *perm, uint64_t *shared_perm);
/openbmc/qemu/hw/riscv/
H A Driscv-iommu.c69 uint64_t perm:2; /* IOMMU_RW flags */ member
287 if (!en_s && (iotlb->perm & IOMMU_WO) && in riscv_iommu_spa_fetch()
300 iotlb->perm = IOMMU_RW; in riscv_iommu_spa_fetch()
400 return (iotlb->perm & IOMMU_WO) ? in riscv_iommu_spa_fetch()
406 return (iotlb->perm & IOMMU_WO) ? in riscv_iommu_spa_fetch()
431 return (iotlb->perm & IOMMU_WO) ? RISCV_IOMMU_FQ_CAUSE_WR_FAULT in riscv_iommu_spa_fetch()
448 } else if ((iotlb->perm & IOMMU_RO) && !(pte & PTE_R)) { in riscv_iommu_spa_fetch()
450 } else if ((iotlb->perm & IOMMU_WO) && !(pte & PTE_W)) { in riscv_iommu_spa_fetch()
452 } else if ((iotlb->perm & IOMMU_RO) && !ade && !(pte & PTE_A)) { in riscv_iommu_spa_fetch()
454 } else if ((iotlb->perm & IOMMU_WO) && !ade && !(pte & PTE_D)) { in riscv_iommu_spa_fetch()
[all …]
/openbmc/qemu/block/
H A Dpreallocate.c292 static bool can_write_resize(uint64_t perm) in can_write_resize() argument
294 return (perm & BLK_PERM_WRITE) && (perm & BLK_PERM_RESIZE); in can_write_resize()
301 if (can_write_resize(bs->file->perm)) { in has_prealloc_perms()
558 preallocate_set_perm(BlockDriverState *bs, uint64_t perm, uint64_t shared) in preallocate_set_perm() argument
562 if (can_write_resize(perm)) { in preallocate_set_perm()
575 uint64_t perm, uint64_t shared, uint64_t *nperm, uint64_t *nshared) in preallocate_child_perm() argument
579 bdrv_default_perms(bs, c, role, reopen_queue, perm, shared, nperm, nshared); in preallocate_child_perm()
586 if (can_write_resize(perm) || s->data_end != -EINVAL) { in preallocate_child_perm()
H A Dblock-backend.c70 uint64_t perm; member
122 blk_set_perm_locked(BlockBackend *blk, uint64_t perm, uint64_t shared_perm,
177 blk_set_perm(blk, blk->perm, blk->shared_perm, &local_err); in blk_vm_state_changed()
211 blk_set_perm_locked(blk, blk->perm, BLK_PERM_ALL, &local_err); in blk_root_activate()
230 blk_set_perm_locked(blk, blk->perm, blk->shared_perm, &local_err); in blk_root_activate()
256 if (!(blk->perm & ~BLK_PERM_CONSISTENT_READ)) { in blk_can_inactivate()
355 BlockBackend *blk_new(AioContext *ctx, uint64_t perm, uint64_t shared_perm) in blk_new() argument
364 blk->perm = perm; in blk_new()
394 BlockBackend *blk_new_with_bs(BlockDriverState *bs, uint64_t perm, in blk_new_with_bs() argument
397 BlockBackend *blk = blk_new(bdrv_get_aio_context(bs), perm, shared_perm); in blk_new_with_bs()
[all …]
/openbmc/qemu/scripts/
H A Drender_block_graph.py32 def perm(arr): function
86 label = '%s\l%s\l%s\l' % (e['name'], perm(e['perm']),
87 perm(e['shared-perm']))
/openbmc/qemu/include/block/
H A Dblock_int-global-state.h211 uint64_t perm, uint64_t shared_perm,
216 void GRAPH_RDLOCK bdrv_get_cumulative_perm(BlockDriverState *bs, uint64_t *perm,
225 bdrv_child_try_set_perm(BdrvChild *c, uint64_t perm, uint64_t shared,
249 uint64_t perm, uint64_t shared,
/openbmc/qemu/hw/virtio/
H A Dvhost-backend.c359 IOMMUAccessFlags perm) in vhost_backend_update_device_iotlb() argument
368 switch (perm) { in vhost_backend_update_device_iotlb()
370 imsg.perm = VHOST_ACCESS_RO; in vhost_backend_update_device_iotlb()
373 imsg.perm = VHOST_ACCESS_WO; in vhost_backend_update_device_iotlb()
376 imsg.perm = VHOST_ACCESS_RW; in vhost_backend_update_device_iotlb()
416 imsg->perm != VHOST_ACCESS_RO); in vhost_backend_handle_iotlb_msg()
H A Dvhost-iova-tree.c104 if (taddr + map->size < taddr || map->perm == IOMMU_NONE) { in vhost_iova_tree_map_alloc()
166 if (taddr + map->size < taddr || map->perm == IOMMU_NONE) { in vhost_iova_tree_map_alloc_gpa()
/openbmc/qemu/hw/block/
H A Dblock.c209 uint64_t perm, shared_perm; in blkconf_apply_backend_options() local
213 perm = BLK_PERM_CONSISTENT_READ; in blkconf_apply_backend_options()
215 perm |= BLK_PERM_WRITE; in blkconf_apply_backend_options()
226 ret = blk_set_perm(blk, perm, shared_perm, errp); in blkconf_apply_backend_options()
/openbmc/qemu/hw/nvram/
H A Daspeed_otp.c114 uint64_t perm; in aspeed_otp_init_storage() local
117 perm = BLK_PERM_CONSISTENT_READ | in aspeed_otp_init_storage()
119 if (blk_set_perm(s->blk, perm, BLK_PERM_ALL, errp) < 0) { in aspeed_otp_init_storage()
/openbmc/qemu/hw/sparc64/
H A Dsun4u_iommu.c88 .perm = IOMMU_NONE, in sun4u_translate_iommu()
96 ret.perm = IOMMU_RW; in sun4u_translate_iommu()
169 ret.perm = IOMMU_RW; in sun4u_translate_iommu()
171 ret.perm = IOMMU_RO; in sun4u_translate_iommu()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-crypto/libmcrypt/libmcrypt/
H A D0001-fix-parameter-related-unexpected-error-in-gcc-15.0.1.patch23 11 | static void perminit(char perm[][16][8], char p[64]);
31 11 | static void perminit(char perm[][16][8], char p[64]);
112 +static void permute(char *inblock, char perm[16][16][8], char *outblock);
113 +static void perminit(char perm[16][16][8], char p[64]);
/openbmc/qemu/block/export/
H A Dexport.c84 uint64_t perm; in blk_exp_add() local
163 perm = BLK_PERM_CONSISTENT_READ; in blk_exp_add()
165 perm |= BLK_PERM_WRITE; in blk_exp_add()
168 blk = blk_new(ctx, perm, BLK_PERM_ALL); in blk_exp_add()
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dtlb.c246 unsigned int perm; in tlb_map_range() local
250 perm = MAS3_SX|MAS3_SW|MAS3_SR; in tlb_map_range()
256 perm = MAS3_SW|MAS3_SR; in tlb_map_range()
287 set_tlb(1, v_addr, p_addr, perm, wimge, in tlb_map_range()

12345