/seL4-camkes-master/projects/seL4_libs/libsel4allocman/src/utspace/ |
H A D | split.c | 73 static int _insert_new_node(allocman_t *alloc, struct utspace_split_node **head, cspacepath_t ut, uintptr_t paddr) argument 84 node->paddr = paddr; 101 uintptr_t *paddr, int utType) 121 error = _insert_new_node(alloc, &list[size_bits[i]], uts[i], paddr ? paddr[i] : ALLOCMAN_NO_PADDR); 130 uintptr_t paddr) 135 if (paddr == ALLOCMAN_NO_PADDR) { 141 /* see if the pool has the paddr we want */ 143 if (node->paddr 100 _utspace_split_add_uts(allocman_t *alloc, void *_split, size_t num, const cspacepath_t *uts, size_t *size_bits, uintptr_t *paddr, int utType) argument 129 _refill_pool(allocman_t *alloc, utspace_split_t *split, struct utspace_split_node **heads, size_t size_bits, uintptr_t paddr) argument 225 find_head_for_paddr(struct utspace_split_node **head, uintptr_t paddr, size_t size_bits) argument 244 _utspace_split_alloc(allocman_t *alloc, void *_split, size_t size_bits, seL4_Word type, const cspacepath_t *slot, uintptr_t paddr, bool canBeDev, int *error) argument [all...] |
/seL4-camkes-master/projects/capdl/python-capdl-tool/tests/ |
H A D | allocator.py | 45 ut = Untyped(name="test_ut", size_bits=ut_size_bits, paddr=1 << ut_size_bits) 71 ut = Untyped(name="test_ut", size_bits=ut_size_bits, paddr=1 << ut_size_bits) 84 paddr = 0x1 89 paddr = round_up(paddr, 1 << size_bits) 90 ut = Untyped("untyped_{0}".format(i), size_bits=size_bits, paddr=paddr) 93 paddr += 1 << size_bits 109 allocator.add_untyped(Untyped(name="test_ut", size_bits=16, paddr=0)) 129 allocator.add_untyped(Untyped(name="test_ut", size_bits=16, paddr [all...] |
/seL4-camkes-master/projects/seL4_libs/libsel4platsupport/src/ |
H A D | device.c | 47 seL4_Error sel4platsupport_alloc_frame_at(vka_t *vka, uintptr_t paddr, size_t size_bits, vka_object_t *frame) argument 50 int error = vka_alloc_frame_at(vka, size_bits, paddr, frame); 52 ZF_LOGE("Failed to find frame at paddr %p", (void *)paddr); 58 void *sel4platsupport_map_frame_at(vka_t *vka, vspace_t *vspace, uintptr_t paddr, size_t size_bits, vka_object_t *frame) argument 61 error = sel4platsupport_alloc_frame_at(vka, paddr, size_bits, frame); 67 ZF_LOGE("Failed to map frame at paddr %p", (void *)paddr);
|
/seL4-camkes-master/projects/camkes-tool/camkes/templates/ |
H A D | seL4HardwareMMIO.template.c | 24 /*- set paddr = configuration[me.parent.to_instance.name].get('%s_paddr' % me.parent.to_interface.name) -*/ 25 /*- if paddr is none -*/ 28 /*- if not isinstance(paddr, numbers.Integral) or paddr < 0 -*/ 58 /*? register_shared_variable('%s_data' % me.parent.name, dataport_symbol_name, size, frame_size=page_size, perm='RW', paddr=paddr, cached=cached, with_mapping_caps=frame_caps) ?*/ 92 uintptr_t paddr, size_t size) { 93 if (paddr >= /*? paddr ?*/ && (paddr 91 _translate_paddr( uintptr_t paddr, size_t size) argument [all...] |
H A D | component.simple.c | 90 /*- set paddr, size, bits = mmio_region.split(':') -*/ 91 /*- do mmio_regions.append( (int(paddr, 0), int(size, 0),int(bits, 0)) ) -*/ 102 /*- for paddr, size, bits in mmio_regions -*/ 103 /*- set mmio_key = '0x%x_0x%x' % (paddr, size) -*/ 106 /*- set frames = paddr + frame_offset -*/ 107 /*- set temp_object=alloc_obj('mmio_frame_%d' % frames, bits_to_frame_type[bits], paddr=frames) -*/ 120 /*- set paddr, size_bits = ut_mmio.split(':') -*/ 121 /*- set paddr = int(paddr, 0) -*/ 123 /*- set cap = alloc('untyped_cap_0x%x' % paddr, seL4_UntypedObjec 191 uintptr_t paddr; member in struct:camkes_untyped 215 simple_camkes_nth_untyped(void *data, int n, size_t *size_bits, uintptr_t *paddr, bool *device) argument 229 simple_camkes_get_frame_cap(void *data, void *paddr, int size_bits, cspacepath_t *path) argument [all...] |
/seL4-camkes-master/kernel/src/arch/arm/machine/ |
H A D | hardware.c | 35 map_kernel_frame(kernel_devices[i].paddr, 42 .start = kernel_devices[i].paddr, 43 .end = kernel_devices[i].paddr + (1 << PAGE_BITS),
|
/seL4-camkes-master/kernel/include/plat/pc99/plat/64/plat_mode/machine/ |
H A D | hardware.h | 119 /* since we have two kernel VM windows, we have two pptr to paddr 125 paddr_to_kpptr(paddr_t paddr) argument 127 assert(paddr < KERNEL_ELF_PADDR_TOP); 128 return (void *)(paddr + KERNEL_ELF_BASE_OFFSET);
|
/seL4-camkes-master/kernel/include/ |
H A D | machine.h | 17 static inline void *CONST ptrFromPAddr(paddr_t paddr) argument 19 return (void *)(paddr + PPTR_BASE_OFFSET);
|
/seL4-camkes-master/projects/seL4_libs/libsel4allocman/include/allocman/utspace/ |
H A D | split.h | 36 uintptr_t paddr; member in struct:utspace_split_node 51 int _utspace_split_add_uts(struct allocman *alloc, void *_split, size_t num, const cspacepath_t *uts, size_t *size_bits, uintptr_t *paddr, int utType); 53 seL4_Word _utspace_split_alloc(struct allocman *alloc, void *_split, size_t size_bits, seL4_Word type, const cspacepath_t *slot, uintptr_t paddr, bool canBeDev, int *error); 63 .paddr = _utspace_split_paddr,
|
H A D | twinkle.h | 37 int _utspace_twinkle_add_uts(struct allocman *alloc, void *_twinkle, size_t num, const cspacepath_t *uts, size_t *size_bits, uintptr_t *paddr, int utType); 39 seL4_Word _utspace_twinkle_alloc(struct allocman *alloc, void *_twinkle, size_t size_bits, seL4_Word type, const cspacepath_t *slot, uintptr_t paddr, bool canBeDev, int *error); 52 .paddr = _utspace_twinkle_paddr,
|
H A D | utspace.h | 62 seL4_Word (*alloc)(struct allocman *alloc, void *utspace, size_t size_bits, seL4_Word object_type, const cspacepath_t *slot, uintptr_t paddr, bool canBeDevice, int *error); 64 int (*add_uts)(struct allocman *alloc, void *utspace, size_t num, const cspacepath_t *uts, size_t *size_bits, uintptr_t *paddr, int utType); 65 uintptr_t (*paddr)(void *utspace, seL4_Word cookie, size_t size_bits); member in struct:utspace_interface
|
H A D | vka.h | 31 static inline seL4_Word _utspace_vka_alloc(struct allocman *alloc, void *_vka, size_t size_bits, seL4_Word type, const cspacepath_t *slot, uintptr_t paddr, bool canBeDevice, int *error) argument 41 if (paddr == ALLOCMAN_NO_PADDR) { 44 _error = vka_utspace_alloc_at(vka, slot, type, sel4_size_bits, paddr, &cookie->original_cookie); 70 static inline int _utspace_vka_add_uts(struct allocman *alloc, void *_trickle, size_t num, const cspacepath_t *uts, size_t *size_bits, uintptr_t *paddr, int utType) argument 88 .paddr = _utspace_vka_paddr,
|
/seL4-camkes-master/projects/seL4_libs/libsel4platsupport/include/sel4platsupport/ |
H A D | device.h | 26 * @param paddr to get the cap for 31 seL4_Error sel4platsupport_alloc_frame_at(vka_t *vka, uintptr_t paddr, 39 * @param paddr to map in 44 void *sel4platsupport_map_frame_at(vka_t *vka, vspace_t *vspace, uintptr_t paddr,
|
/seL4-camkes-master/projects/projects_libs/libsdhcdrivers/src/ |
H A D | services.h | 34 * @param[in] paddr the physical address of the device 39 static inline void *sdhc_map_device(struct ps_io_mapper *o, uintptr_t paddr, int size) argument 41 return ps_io_map(o, paddr, size, 0, PS_MEM_NORMAL); 45 uintptr_t *paddr) 51 *paddr = ps_dma_pin(dma_man, addr, size); 44 ps_dma_alloc_pinned(ps_dma_man_t *dma_man, size_t size, int align, int cache, ps_mem_flags_t flags, uintptr_t *paddr) argument
|
/seL4-camkes-master/tools/rumprun/platform/sel4/pci/ |
H A D | rumpdma.c | 34 uintptr_t paddr; member in struct:a_list 51 /* return error if cannot find paddr */ 66 list[i].paddr = (uintptr_t) pmem; 102 list[i].paddr = (uintptr_t) 0; 113 return vin - list[i].vaddr + list[i].paddr; 121 uintptr_t paddr = (uintptr_t) vka_utspace_paddr(&env.vka, vspace_get_cookie(&env.vspace, virt), local 123 return paddr + (vin & MASK((unsigned int) env.rump_mapping_page_size_bits));
|
/seL4-camkes-master/projects/seL4_libs/libsel4simple-default/src/ |
H A D | libsel4simple-default.c | 28 void *simple_default_get_frame_info(void *data, void *paddr, int size_bits, seL4_CPtr *frame_cap, seL4_Word *offset) argument 32 assert(bi && paddr && offset && frame_cap); 35 if (bi->untypedList[i].paddr <= (seL4_Word)paddr && 36 bi->untypedList[i].paddr + BIT(bi->untypedList[i].sizeBits) >= (seL4_Word)paddr + BIT(size_bits)) { 38 *offset = (seL4_Word)paddr - bi->untypedList[i].paddr; 44 seL4_Error simple_default_get_frame_cap(void *data, void *paddr, int size_bits, cspacepath_t *path) argument 48 assert(bi && paddr); 60 simple_default_get_frame_mapping(void *data, void *paddr, int size_bits) argument 142 simple_default_nth_untyped(void *data, int n, size_t *size_bits, uintptr_t *paddr, bool *device) argument [all...] |
/seL4-camkes-master/projects/util_libs/libplatsupport/src/ |
H A D | chardev.h | 20 uintptr_t paddr; member in struct:dev_defn 34 dev->paddr,
|
/seL4-camkes-master/projects/seL4_projects_libs/libsel4vm/src/arch/arm/ |
H A D | guest_memory_arch.c | 37 pa_base = ret.paddr + (ipa & MASK(bits)); 38 /* From here on, ipa and ret.paddr will be aligned */ 42 if (ret.paddr - pa_base != ipa - ipa_base) {
|
/seL4-camkes-master/projects/util_libs/libplatsupport/src/plat/pc99/ |
H A D | chardev.c | 34 .paddr = SERIAL_CONSOLE_COM##devid##_PORT, \ 42 .paddr = EGA_TEXT_FB_BASE, \ 52 .paddr = 0, \
|
/seL4-camkes-master/projects/capdl/python-capdl-tool/capdl/ |
H A D | Allocator.py | 90 paddr = kwargs.get('paddr', None) 91 assert(paddr != 0) 92 o = Untyped(name, size_bits, paddr) 424 intermediate untypeds created to maintain alignment or achieve a specific paddr in a seL4_Untyped_Retype call. 435 # dict of unfungible objects, sorted by paddr. 447 if hasattr(o, 'paddr') and o.paddr: 469 if o.paddr in self.unfun_objects: 470 old = self.unfun_objects[o.paddr] [all...] |
/seL4-camkes-master/projects/camkes-tool/libsel4camkes/include/camkes/ |
H A D | dataport.h | 42 uintptr_t paddr; member in struct:dataport_frame
|
/seL4-camkes-master/projects/util_libs/libplatsupport/src/plat/bcm2837/ |
H A D | chardev.c | 28 .paddr = UART_PADDR_##devid, \
|
/seL4-camkes-master/projects/util_libs/libplatsupport/src/plat/hifive/ |
H A D | chardev.c | 28 .paddr = UART##devid##_PADDR, \
|
/seL4-camkes-master/projects/util_libs/libplatsupport/src/plat/qemu-arm-virt/ |
H A D | chardev.c | 28 .paddr = UART##devid##_PADDR, \
|
/seL4-camkes-master/kernel/include/arch/riscv/arch/ |
H A D | types.h | 41 paddr_t paddr; member in struct:kernel_frame
|