Home
last modified time | relevance | path

Searched refs:space (Results 1 – 25 of 1588) sorted by relevance

12345678910>>...64

/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm2-space.c31 static void tpm2_flush_sessions(struct tpm_chip *chip, struct tpm_space *space) in tpm2_flush_sessions() argument
35 for (i = 0; i < ARRAY_SIZE(space->session_tbl); i++) { in tpm2_flush_sessions()
36 if (space->session_tbl[i]) in tpm2_flush_sessions()
37 tpm2_flush_context(chip, space->session_tbl[i]); in tpm2_flush_sessions()
41 int tpm2_init_space(struct tpm_space *space, unsigned int buf_size) in tpm2_init_space() argument
43 space->context_buf = kzalloc(buf_size, GFP_KERNEL); in tpm2_init_space()
44 if (!space->context_buf) in tpm2_init_space()
47 space->session_buf = kzalloc(buf_size, GFP_KERNEL); in tpm2_init_space()
48 if (space->session_buf == NULL) { in tpm2_init_space()
49 kfree(space->context_buf); in tpm2_init_space()
[all …]
/kernel/liteos_a/kernel/base/vm/
Dlos_vm_dump.c85 INT32 OsRegionOverlapCheckUnlock(LosVmSpace *space, LosVmMapRegion *region) in OsRegionOverlapCheckUnlock() argument
92 RB_SCAN_SAFE(&space->regionRbTree, pstRbNode, pstRbNodeNext) in OsRegionOverlapCheckUnlock()
102 region->regionFlags, region->range.base, region->range.size, region->space, in OsRegionOverlapCheckUnlock()
103 … regionTemp->regionFlags, regionTemp->range.base, regionTemp->range.size, regionTemp->space); in OsRegionOverlapCheckUnlock()
106 RB_SCAN_SAFE_END(&space->regionRbTree, pstRbNode, pstRbNodeNext) in OsRegionOverlapCheckUnlock()
111 UINT32 OsShellCmdProcessVmUsage(LosVmSpace *space) in OsShellCmdProcessVmUsage() argument
118 if (space == NULL) { in OsShellCmdProcessVmUsage()
122 if (space == LOS_GetKVmSpace()) { in OsShellCmdProcessVmUsage()
123 OsShellCmdProcessPmUsage(space, NULL, &used); in OsShellCmdProcessVmUsage()
126 UINT32 ret = LOS_MuxAcquire(&space->regionMux); in OsShellCmdProcessVmUsage()
[all …]
Dlos_vm_syscall.c190 VOID *OsShrinkHeap(VOID *addr, LosVmSpace *space) in OsShrinkHeap() argument
195 oldBrk = LOS_Align(space->heapNow, PAGE_SIZE); in OsShrinkHeap()
197 return (void *)(UINTPTR)space->heapNow; in OsShrinkHeap()
199 space->heapNow = (VADDR_T)(UINTPTR)addr; in OsShrinkHeap()
205 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in LOS_DoBrk() local
213 return (void *)(UINTPTR)space->heapNow; in LOS_DoBrk()
216 if ((UINTPTR)addr < (UINTPTR)space->heapBase) { in LOS_DoBrk()
220 size = (UINTPTR)addr - (UINTPTR)space->heapBase; in LOS_DoBrk()
222 alignAddr = (CHAR *)(UINTPTR)(space->heapBase) + size; in LOS_DoBrk()
225 (VOID)LOS_MuxAcquire(&space->regionMux); in LOS_DoBrk()
[all …]
Dlos_vm_map.c212 LosVmSpace *space = LOS_MemAlloc(m_aucSysMem0, sizeof(LosVmSpace)); in OsCreateUserVmSpace() local
213 if (space == NULL) { in OsCreateUserVmSpace()
219 (VOID)LOS_MemFree(m_aucSysMem0, space); in OsCreateUserVmSpace()
224 retVal = OsUserVmSpaceInit(space, ttb); in OsCreateUserVmSpace()
227 (VOID)LOS_MemFree(m_aucSysMem0, space); in OsCreateUserVmSpace()
231 LOS_ListAdd(&space->archMmu.ptList, &(vmPage->node)); in OsCreateUserVmSpace()
233 return space; in OsCreateUserVmSpace()
451 OsDumpAspace(region->space); in OsInsertRegion()
480 LosVmSpace *space = NULL; in LOS_PaddrQuery() local
486 space = OsCurrProcessGet()->vmSpace; in LOS_PaddrQuery()
[all …]
Dlos_vm_fault.c106 LosVmSpace *space = region->space; in OsDoReadFault() local
108 ret = LOS_ArchMmuQuery(&space->archMmu, vaddr, NULL, NULL); in OsDoReadFault()
126 ret = LOS_ArchMmuMap(&space->archMmu, vaddr, paddr, 1, in OsDoReadFault()
180 LosVmSpace *space = NULL; in OsDoCowFault() local
188 space = region->space; in OsDoCowFault()
189 ret = LOS_ArchMmuQuery(&space->archMmu, (VADDR_T)vmPgFault->vaddr, &oldPaddr, NULL); in OsDoCowFault()
191 oldPage = OsCowUnmapOrg(&space->archMmu, region, vmPgFault); in OsDoCowFault()
230 …ret = LOS_ArchMmuMap(&space->archMmu, (VADDR_T)vmPgFault->vaddr, newPaddr, 1, region->regionFlags); in OsDoCowFault()
262 LosVmSpace *space = region->space; in OsDoSharedFault() local
271 ret = LOS_ArchMmuQuery(&space->archMmu, vmPgFault->vaddr, &paddr, NULL); in OsDoSharedFault()
[all …]
/kernel/liteos_a/fs/proc/os_adapt/
Dvmm_proc.c46 LosVmSpace *space = NULL; in OsVmDumpSeqSpaces() local
58 LOS_DL_LIST_FOR_EACH_ENTRY(space, aspaceList, LosVmSpace, node) { in OsVmDumpSeqSpaces()
59 (VOID)LOS_MuxAcquire(&space->regionMux); in OsVmDumpSeqSpaces()
60 spacePages = OsCountAspacePages(space); in OsVmDumpSeqSpaces()
61 pcb = OsGetPIDByAspace(space); in OsVmDumpSeqSpaces()
63 (VOID)LOS_MuxRelease(&space->regionMux); in OsVmDumpSeqSpaces()
69 … pcb->processID, space, pcb->processName, space->base, space->size, spacePages); in OsVmDumpSeqSpaces()
75 RB_SCAN_SAFE(&space->regionRbTree, pstRbNode, pstRbNodeNext) in OsVmDumpSeqSpaces()
77 regionPages = OsCountRegionPages(space, region, &pssPages); in OsVmDumpSeqSpaces()
86 (VOID)OsRegionOverlapCheck(space, region); in OsVmDumpSeqSpaces()
[all …]
/kernel/liteos_a/kernel/base/include/
Dlos_vm_dump.h60 INT32 OsRegionOverlapCheckUnlock(LosVmSpace *space, LosVmMapRegion *region);
61 UINT32 OsShellCmdProcessVmUsage(LosVmSpace *space);
62 UINT32 OsShellCmdProcessPmUsage(LosVmSpace *space, UINT32 *sharePm, UINT32 *actualPm);
63 UINT32 OsUProcessPmUsage(LosVmSpace *space, UINT32 *sharePm, UINT32 *actualPm);
65 VOID OsDumpAspace(LosVmSpace *space);
66 UINT32 OsCountRegionPages(LosVmSpace *space, LosVmMapRegion *region, UINT32 *pssPages);
67 UINT32 OsCountAspacePages(LosVmSpace *space);
71 INT32 OsRegionOverlapCheck(LosVmSpace *space, LosVmMapRegion *region);
73 LosProcessCB *OsGetPIDByAspace(const LosVmSpace *space);
Dlos_vm_map.h87 LosVmSpace *space; member
270 BOOL LOS_IsRangeInSpace(const LosVmSpace *space, VADDR_T vaddr, size_t size);
271 STATUS_T LOS_VmSpaceReserve(LosVmSpace *space, size_t size, VADDR_T vaddr);
284 STATUS_T OsRegionsRemove(LosVmSpace *space, VADDR_T vaddr, size_t size);
285 STATUS_T OsVmRegionAdjust(LosVmSpace *space, VADDR_T vaddr, size_t size);
286 LosVmMapRegion *OsVmRegionDup(LosVmSpace *space, LosVmMapRegion *oldRegion, VADDR_T vaddr, size_t s…
287 STATUS_T OsIsRegionCanExpand(LosVmSpace *space, LosVmMapRegion *region, size_t size);
288 STATUS_T LOS_RegionFree(LosVmSpace *space, LosVmMapRegion *region);
289 STATUS_T LOS_VmSpaceFree(LosVmSpace *space);
290 STATUS_T LOS_VaddrToPaddrMmap(LosVmSpace *space, VADDR_T vaddr, PADDR_T paddr, size_t len, UINT32 f…
[all …]
/kernel/linux/linux-5.10/drivers/char/ipmi/
Dipmi_dmi.c25 unsigned int space; /* addr space for si, intf# for ssif */ member
36 unsigned int space, in dmi_add_platform_ipmi() argument
71 p.space = space; in dmi_add_platform_ipmi()
82 info->space = space; in dmi_add_platform_ipmi()
100 int ipmi_dmi_get_slave_addr(enum si_type si_type, unsigned int space, in ipmi_dmi_get_slave_addr() argument
107 info->space == space && in ipmi_dmi_get_slave_addr()
129 int space = IPMI_IO_ADDR_SPACE; in dmi_decode_ipmi() local
149 space = 0; /* Match I2C interface 0. */ in dmi_decode_ipmi()
166 space = IPMI_MEM_ADDR_SPACE; in dmi_decode_ipmi()
210 dmi_add_platform_ipmi(base_addr, space, slave_addr, irq, in dmi_decode_ipmi()
/kernel/linux/linux-5.10/Documentation/x86/x86_64/
D5level-paging.rst10 space and 64 TiB of physical address space. We are already bumping into
17 It bumps the limits to 128 PiB of virtual address space and 4 PiB of
18 physical address space. This "ought to be enough for anybody" ©.
34 User-space and large virtual address space
36 On x86, 5-level paging enables 56-bit userspace virtual address space.
37 Not all user space is ready to handle wide addresses. It's known that
42 To mitigate this, we are not going to allocate virtual address space
45 But userspace can ask for allocation from full address space by
50 occupied, we look for unmapped area in *full* address space, rather than
58 to allocation from 47-bit address space.
[all …]
Dmm.rst13 from the top of the 64-bit address space. It's easier to understand the layout
17 64-bit address space (ffffffffffffffff).
19 Note that as we get closer to the top of the address space, the notation changes
24 It also shows it nicely how incredibly large 64-bit address space is.
32 …0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory, different …
40 … | Kernel-space virtual memory, shared between all processes:
47 ffffc90000000000 | -55 TB | ffffe8ffffffffff | 32 TB | vmalloc/ioremap space (vmalloc_base)
63 ffffffef00000000 | -68 GB | fffffffeffffffff | 64 GB | EFI region mapping space
67 ffffffffa0000000 |-1536 MB | fffffffffeffffff | 1520 MB | module mapping space
80 - With 56-bit addresses, user-space memory gets expanded by a factor of 512x,
[all …]
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dacpi-ext.c62 struct csr_space *space = data; in find_csr_space() local
71 space->base = addr.address.minimum; in find_csr_space()
72 space->length = addr.address.address_length; in find_csr_space()
80 struct csr_space space = { 0, 0 }; in hp_crs_locate() local
82 acpi_walk_resources(obj, METHOD_NAME__CRS, find_csr_space, &space); in hp_crs_locate()
83 if (!space.length) in hp_crs_locate()
86 *base = space.base; in hp_crs_locate()
87 *length = space.length; in hp_crs_locate()
/kernel/linux/linux-5.10/drivers/tty/
Dtty_buffer.c93 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used); in tty_buffer_space_avail() local
94 return max(space, 0); in tty_buffer_space_avail()
319 int space = __tty_buffer_request_room(port, goal, flags); in tty_insert_flip_string_fixed_flag() local
321 if (unlikely(space == 0)) in tty_insert_flip_string_fixed_flag()
323 memcpy(char_buf_ptr(tb, tb->used), chars, space); in tty_insert_flip_string_fixed_flag()
325 memset(flag_buf_ptr(tb, tb->used), flag, space); in tty_insert_flip_string_fixed_flag()
326 tb->used += space; in tty_insert_flip_string_fixed_flag()
327 copied += space; in tty_insert_flip_string_fixed_flag()
328 chars += space; in tty_insert_flip_string_fixed_flag()
354 int space = tty_buffer_request_room(port, goal); in tty_insert_flip_string_flags() local
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/include/
Dcgs_common.h108 typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
117 typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
133 #define CGS_WREG32_FIELD_IND(device, space, reg, field, val) \ argument
134 …cgs_write_ind_register(device, space, ix##reg, (cgs_read_ind_register(device, space, ix##reg) & ~C…
169 #define cgs_read_ind_register(dev,space,index) \ argument
170 CGS_CALL(read_ind_register,dev,space,index)
171 #define cgs_write_ind_register(dev,space,index,value) \ argument
172 CGS_CALL(write_ind_register,dev,space,index,value)
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/fsl/
Ddcsr.txt17 debug blocks defined within this memory space.
25 The DCSR space exists in the memory-mapped bus.
44 range of the DCSR space.
57 This node represents the region of DCSR space allocated to the EPU
91 offset and length of the DCSR space registers of the device
107 This node represents the region of DCSR space allocated to the NPC
120 offset and length of the DCSR space registers of the device
122 The Nexus Port controller occupies two regions in the DCSR space
144 This node represents the region of DCSR space allocated to the NXC
157 offset and length of the DCSR space registers of the device
[all …]
/kernel/linux/linux-5.10/Documentation/virt/kvm/devices/
Dvm.rst63 Allows user space to retrieve machine and kvm specific cpu related information::
75 :Returns: -EFAULT if the given address is not accessible from kernel space;
82 Allows user space to retrieve or request to change cpu related information for a vcpu::
100 -EFAULT if the given address is not accessible from kernel space;
109 Allows user space to retrieve available cpu features. A feature is available if
120 :Returns: -EFAULT if the given address is not accessible from kernel space;
126 Allows user space to retrieve or change enabled cpu features for all VCPUs of a
133 :Returns: -EFAULT if the given address is not accessible from kernel space;
143 Allows user space to retrieve available cpu subfunctions without any filtering
176 :Returns: -EFAULT if the given address is not accessible from kernel space;
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/go7007/
Dgo7007-fw.c277 static int copy_packages(__le16 *dest, u16 *src, int pkg_cnt, int space) in copy_packages() argument
281 if (space < cnt) in copy_packages()
365 static int gen_mjpeghdr_to_package(struct go7007 *go, __le16 *code, int space) in gen_mjpeghdr_to_package() argument
385 if (space - off < 32) { in gen_mjpeghdr_to_package()
632 __le16 *code, int space, int *framelen) in gen_mpeg1hdr_to_package() argument
674 if (space - off < 32) { in gen_mpeg1hdr_to_package()
818 __le16 *code, int space, int *framelen) in gen_mpeg4hdr_to_package() argument
842 if (space - off < 32) { in gen_mpeg4hdr_to_package()
885 if (space - off < 32) { in gen_mpeg4hdr_to_package()
920 __le16 *code, int space, int *framelen) in brctrl_to_package() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_vgpu.c143 struct drm_mm_node space[4]; member
183 vgt_deballoon_space(ggtt, &bl_info.space[i]); in intel_vgt_deballoon()
295 ret = vgt_balloon_space(ggtt, &bl_info.space[2], in intel_vgt_balloon()
303 ret = vgt_balloon_space(ggtt, &bl_info.space[3], in intel_vgt_balloon()
311 ret = vgt_balloon_space(ggtt, &bl_info.space[0], in intel_vgt_balloon()
319 ret = vgt_balloon_space(ggtt, &bl_info.space[1], in intel_vgt_balloon()
330 vgt_deballoon_space(ggtt, &bl_info.space[0]); in intel_vgt_balloon()
332 vgt_deballoon_space(ggtt, &bl_info.space[3]); in intel_vgt_balloon()
334 vgt_deballoon_space(ggtt, &bl_info.space[2]); in intel_vgt_balloon()
/kernel/linux/linux-5.10/arch/mips/mm/
Dtlb-funcs.S22 .space 64
28 .space FASTPATH_SIZE * 4
33 .space FASTPATH_SIZE * 4
38 .space FASTPATH_SIZE * 4
/kernel/linux/linux-5.10/Documentation/vm/
Dactive_mm.rst27 difference is that an anonymous address space doesn't care about the
29 anonymous address space we just leave the previous address space
32 The obvious use for a "anonymous address space" is any thread that
35 some amount of time they are not going to be interested in user space,
40 - "tsk->mm" points to the "real address space". For an anonymous process,
42 really doesn't _have_ a real address space at all.
44 - however, we obviously need to keep track of which address space we
46 which shows what the currently active address space is.
48 The rule is that for a process with a real address space (ie tsk->mm is
54 anonymous process gets scheduled away, the borrowed address space is
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Daf9005-remote.c76 u16 mark, space; in af9005_rc_decode() local
83 space = (u16) (data[2] << 8) + data[3]; in af9005_rc_decode()
84 if (space * 3 < mark) { in af9005_rc_decode()
102 space = (u16) (data[i + 2] << 8) + data[i + 3]; in af9005_rc_decode()
103 space >>= 1; in af9005_rc_decode()
104 if (mark * 2 > space) in af9005_rc_decode()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_ring.c16 unsigned int space; in intel_ring_update_space() local
18 space = __intel_ring_space(ring->head, ring->emit, ring->size); in intel_ring_update_space()
20 ring->space = space; in intel_ring_update_space()
21 return space; in intel_ring_update_space()
217 GEM_BUG_ON(ring->space < bytes); in wait_for_space()
258 if (unlikely(total_bytes > ring->space)) { in intel_ring_begin()
281 GEM_BUG_ON(need_wrap > ring->space); in intel_ring_begin()
287 ring->space -= need_wrap; in intel_ring_begin()
292 GEM_BUG_ON(ring->space < bytes); in intel_ring_begin()
296 ring->space -= bytes; in intel_ring_begin()
/kernel/linux/linux-5.10/Documentation/arm/
Dmemory.rst14 space, and this must be shared between user space processes, the
18 certain regions of VM space for use for new facilities; therefore
19 this document may reserve more VM space over time.
56 fee00000 feffffff Mapping of PCI I/O space. This is a static
57 mapping within the vmalloc space.
59 VMALLOC_START VMALLOC_END-1 vmalloc() / ioremap() space.
74 space.
76 MODULES_VADDR MODULES_END-1 Kernel module space
85 00001000 TASK_SIZE-1 User space mappings
93 space are also caught via this mapping.
/kernel/linux/linux-5.10/lib/
Dfault-inject.c23 int space; in setup_fault_attr() local
27 &interval, &probability, &space, &times) < 4) { in setup_fault_attr()
36 atomic_set(&attr->space, space); in setup_fault_attr()
49 atomic_read(&attr->space), in fail_dump()
128 if (atomic_read(&attr->space) > size) { in should_fail()
129 atomic_sub(size, &attr->space); in should_fail()
212 debugfs_create_atomic_t("space", mode, dir, &attr->space); in fault_create_debugfs_attr()
/kernel/linux/linux-5.10/fs/btrfs/
DMakefile10 export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \
13 uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \
14 block-rsv.o delalloc-space.o block-group.o discard.o reflink.o
20 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
23 tests/free-space-tree-tests.o tests/extent-map-tests.o

12345678910>>...64