Home
last modified time | relevance | path

Searched refs:seg (Results 1 – 25 of 81) sorted by relevance

1234

/arch/s390/mm/
Dextmem.c165 query_segment_type (struct dcss_segment *seg) in query_segment_type() argument
183 memcpy (qin->qname, seg->dcss_name, 8); in query_segment_type()
203 seg->vm_segtype = qout->range[0].start & 0xff; in query_segment_type()
222 seg->vm_segtype = SEG_TYPE_EWEN; in query_segment_type()
226 seg->start_addr = qout->segstart; in query_segment_type()
227 seg->end = qout->segend; in query_segment_type()
229 memcpy (seg->range, qout->range, 6*sizeof(struct qrange)); in query_segment_type()
230 seg->segcnt = qout->segcnt; in query_segment_type()
254 struct dcss_segment seg; in segment_type() local
259 dcss_mkname(name, seg.dcss_name); in segment_type()
[all …]
Dvmem.c308 static int insert_memory_segment(struct memory_segment *seg) in insert_memory_segment() argument
312 if (seg->start + seg->size > VMEM_MAX_PHYS || in insert_memory_segment()
313 seg->start + seg->size < seg->start) in insert_memory_segment()
317 if (seg->start >= tmp->start + tmp->size) in insert_memory_segment()
319 if (seg->start + seg->size <= tmp->start) in insert_memory_segment()
323 list_add(&seg->list, &mem_segs); in insert_memory_segment()
330 static void remove_memory_segment(struct memory_segment *seg) in remove_memory_segment() argument
332 list_del(&seg->list); in remove_memory_segment()
335 static void __remove_shared_memory(struct memory_segment *seg) in __remove_shared_memory() argument
337 remove_memory_segment(seg); in __remove_shared_memory()
[all …]
/arch/m68k/sun3/
Dmmu_emu.c130 unsigned long seg, num; in mmu_emu_init() local
153 for(seg = bootmem_end; seg < 0x0f800000; seg += SUN3_PMEG_SIZE) { in mmu_emu_init()
154 i = sun3_get_segmap(seg); in mmu_emu_init()
159 print_pte_vaddr (seg); in mmu_emu_init()
161 sun3_put_segmap(seg, SUN3_INVALID_PMEG); in mmu_emu_init()
166 for (num=0, seg=0x0F800000; seg<0x10000000; seg+=16*PAGE_SIZE) { in mmu_emu_init()
167 if (sun3_get_segmap (seg) != SUN3_INVALID_PMEG) { in mmu_emu_init()
171 print_pte_vaddr (seg + (i*PAGE_SIZE)); in mmu_emu_init()
178 m68k_vmalloc_end = seg; in mmu_emu_init()
183 pmeg_alloc[sun3_get_segmap(seg)] = 2; in mmu_emu_init()
[all …]
/arch/x86/kvm/
Dmtrr.c181 static u64 fixed_mtrr_seg_unit_size(int seg) in fixed_mtrr_seg_unit_size() argument
183 return 8 << fixed_seg_table[seg].range_shift; in fixed_mtrr_seg_unit_size()
186 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit() argument
190 *seg = 0; in fixed_msr_to_seg_unit()
194 *seg = 1; in fixed_msr_to_seg_unit()
200 *seg = 2; in fixed_msr_to_seg_unit()
212 static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) in fixed_mtrr_seg_unit_range() argument
214 struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; in fixed_mtrr_seg_unit_range()
215 u64 unit_size = fixed_mtrr_seg_unit_size(seg); in fixed_mtrr_seg_unit_range()
222 static int fixed_mtrr_seg_unit_range_index(int seg, int unit) in fixed_mtrr_seg_unit_range_index() argument
[all …]
/arch/m68k/include/asm/
Dtlbflush.h148 unsigned char seg; in flush_tlb_mm() local
155 seg = sun3_get_segmap(i); in flush_tlb_mm()
156 if(seg == SUN3_INVALID_PMEG) in flush_tlb_mm()
160 pmeg_alloc[seg] = 0; in flush_tlb_mm()
161 pmeg_ctx[seg] = 0; in flush_tlb_mm()
162 pmeg_vaddr[seg] = 0; in flush_tlb_mm()
196 unsigned char seg, oldctx; in flush_tlb_range() local
205 if((seg = sun3_get_segmap(start)) == SUN3_INVALID_PMEG) in flush_tlb_range()
207 if(pmeg_ctx[seg] == mm->context) { in flush_tlb_range()
208 pmeg_alloc[seg] = 0; in flush_tlb_range()
[all …]
Dsegment.h22 unsigned long seg; member
37 __asm__ ("movec %/dfc,%0":"=r" (_v.seg):); in get_fs()
45 : /* no outputs */ : "r" (val.seg) : "memory"); in set_fs()
55 #define segment_eq(a, b) ((a).seg == (b).seg)
/arch/x86/pci/
Dnumachip.c21 static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument
23 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in pci_dev_base()
30 static int pci_mmcfg_read_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_read_numachip() argument
48 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read_numachip()
70 static int pci_mmcfg_write_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_write_numachip() argument
84 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write_numachip()
Dmmconfig_32.c27 static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) in get_base_addr() argument
29 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in get_base_addr()
51 static int pci_mmcfg_read(unsigned int seg, unsigned int bus, in pci_mmcfg_read() argument
63 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_read()
90 static int pci_mmcfg_write(unsigned int seg, unsigned int bus, in pci_mmcfg_write() argument
100 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_write()
Dolpc.c200 static int pci_olpc_read(unsigned int seg, unsigned int bus, in pci_olpc_read() argument
205 WARN_ON(seg); in pci_olpc_read()
209 return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); in pci_olpc_read()
262 static int pci_olpc_write(unsigned int seg, unsigned int bus, in pci_olpc_write() argument
265 WARN_ON(seg); in pci_olpc_write()
269 return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); in pci_olpc_write()
Dmmconfig_64.c19 static char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument
21 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in pci_dev_base()
28 static int pci_mmcfg_read(unsigned int seg, unsigned int bus, in pci_mmcfg_read() argument
40 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read()
62 static int pci_mmcfg_write(unsigned int seg, unsigned int bus, in pci_mmcfg_write() argument
72 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write()
Ddirect.c21 static int pci_conf1_read(unsigned int seg, unsigned int bus, in pci_conf1_read() argument
26 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_conf1_read()
52 static int pci_conf1_write(unsigned int seg, unsigned int bus, in pci_conf1_write() argument
57 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) in pci_conf1_write()
95 static int pci_conf2_read(unsigned int seg, unsigned int bus, in pci_conf2_read() argument
101 WARN_ON(seg); in pci_conf2_read()
137 static int pci_conf2_write(unsigned int seg, unsigned int bus, in pci_conf2_write() argument
143 WARN_ON(seg); in pci_conf2_write()
/arch/x86/kernel/
Dstep.c14 unsigned long addr, seg; in convert_ip_to_linear() local
17 seg = regs->cs; in convert_ip_to_linear()
19 addr = (addr & 0xffff) + (seg << 4); in convert_ip_to_linear()
30 if ((seg & SEGMENT_TI_MASK) == SEGMENT_LDT) { in convert_ip_to_linear()
34 seg >>= 3; in convert_ip_to_linear()
38 seg >= child->mm->context.ldt->nr_entries)) in convert_ip_to_linear()
41 desc = &child->mm->context.ldt->entries[seg]; in convert_ip_to_linear()
/arch/csky/include/asm/
Dsegment.h8 unsigned long seg; member
16 #define segment_eq(a, b) ((a).seg == (b).seg)
/arch/x86/boot/
Dboot.h82 u16 seg; in ds() local
83 asm("movw %%ds,%0" : "=rm" (seg)); in ds()
84 return seg; in ds()
87 static inline void set_fs(u16 seg) in set_fs() argument
89 asm volatile("movw %0,%%fs" : : "rm" (seg)); in set_fs()
93 u16 seg; in fs() local
94 asm volatile("movw %%fs,%0" : "=rm" (seg)); in fs()
95 return seg; in fs()
98 static inline void set_gs(u16 seg) in set_gs() argument
100 asm volatile("movw %0,%%gs" : : "rm" (seg)); in set_gs()
[all …]
/arch/sh/include/asm/
Dsegment.h8 unsigned long seg; member
27 #define segment_eq(a, b) ((a).seg == (b).seg)
/arch/h8300/include/asm/
Dsegment.h20 unsigned long seg; member
36 #define segment_eq(a, b) ((a).seg == (b).seg)
/arch/hexagon/include/asm/
Duaccess.h37 ((get_fs().seg == KERNEL_DS.seg) || \
38 (((unsigned long)addr < get_fs().seg) && \
39 (unsigned long)size < (get_fs().seg - (unsigned long)addr)))
/arch/x86/include/asm/
Dsegment.h269 [p] "=a" (p), [seg] "r" (__CPUNODE_SEG)); in vdso_read_cpunode()
315 #define __loadsegment_simple(seg, value) \ argument
320 "1: movl %k0,%%" #seg " \n" \
362 #define loadsegment(seg, value) __loadsegment_ ## seg (value) argument
367 #define savesegment(seg, value) \ argument
368 asm("mov %%" #seg ",%0":"=r" (value) : : "memory")
/arch/ia64/pci/
Dpci.c40 #define PCI_SAL_ADDRESS(seg, bus, devfn, reg) \ argument
41 (((u64) seg << 24) | (bus << 16) | (devfn << 8) | (reg))
45 #define PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg) \ argument
46 (((u64) seg << 28) | (bus << 20) | (devfn << 12) | (reg))
48 int raw_pci_read(unsigned int seg, unsigned int bus, unsigned int devfn, in raw_pci_read() argument
54 if (!value || (seg > 65535) || (bus > 255) || (devfn > 255) || (reg > 4095)) in raw_pci_read()
57 if ((seg | reg) <= 255) { in raw_pci_read()
58 addr = PCI_SAL_ADDRESS(seg, bus, devfn, reg); in raw_pci_read()
61 addr = PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg); in raw_pci_read()
75 int raw_pci_write(unsigned int seg, unsigned int bus, unsigned int devfn, in raw_pci_write() argument
[all …]
/arch/x86/ia32/
Dia32_signal.c47 #define get_user_seg(seg) ({ unsigned int v; savesegment(seg, v); v; }) argument
48 #define set_user_seg(seg, v) loadsegment_##seg(v) argument
54 #define GET_SEG(seg) ({ \ argument
56 get_user_ex(tmp, &sc->seg); \
60 #define COPY_SEG_CPL3(seg) do { \ argument
61 regs->seg = GET_SEG(seg) | 3; \
64 #define RELOAD_SEG(seg) { \ argument
65 unsigned int pre = (seg) | 3; \
66 unsigned int cur = get_user_seg(seg); \
68 set_user_seg(seg, pre); \
/arch/ia64/include/asm/
Duaccess.h54 #define segment_eq(a, b) ((a).seg == (b).seg)
65 unsigned long seg = get_fs().seg; in __access_ok() local
66 return likely(addr <= seg) && in __access_ok()
67 (seg == KERNEL_DS.seg || likely(REGION_OFFSET(addr) < RGN_MAP_LIMIT)); in __access_ok()
/arch/microblaze/include/asm/
Duaccess.h48 # define segment_eq(a, b) ((a).seg == (b).seg)
71 if ((get_fs().seg < ((unsigned long)addr)) || in access_ok()
72 (get_fs().seg < ((unsigned long)addr + size - 1))) { in access_ok()
75 (u32)get_fs().seg); in access_ok()
81 (u32)get_fs().seg); in access_ok()
/arch/powerpc/include/asm/
Duaccess.h41 #define segment_eq(a, b) ((a).seg == (b).seg)
43 #define user_addr_max() (get_fs().seg)
51 (((addr) <= (segment).seg) && ((size) <= (segment).seg))
56 mm_segment_t seg) in __access_ok() argument
58 if (addr > seg.seg) in __access_ok()
60 return (size == 0 || size - 1 <= seg.seg - addr); in __access_ok()
/arch/nios2/include/asm/
Duaccess.h31 #define set_fs(seg) (current_thread_info()->addr_limit = (seg)) argument
33 #define segment_eq(a, b) ((a).seg == (b).seg)
36 (((signed long)(((long)get_fs().seg) & \
/arch/x86/boot/compressed/
Dcmdline.c5 static inline void set_fs(unsigned long seg) in set_fs() argument
7 fs = seg << 4; /* shift it back */ in set_fs()

1234