/arch/s390/mm/ |
D | extmem.c | 165 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 …]
|
/arch/m68k/sun3/ |
D | mmu_emu.c | 128 unsigned long seg, num; in mmu_emu_init() local 151 for(seg = bootmem_end; seg < 0x0f800000; seg += SUN3_PMEG_SIZE) { in mmu_emu_init() 152 i = sun3_get_segmap(seg); in mmu_emu_init() 157 print_pte_vaddr (seg); in mmu_emu_init() 159 sun3_put_segmap(seg, SUN3_INVALID_PMEG); in mmu_emu_init() 164 for (num=0, seg=0x0F800000; seg<0x10000000; seg+=16*PAGE_SIZE) { in mmu_emu_init() 165 if (sun3_get_segmap (seg) != SUN3_INVALID_PMEG) { in mmu_emu_init() 169 print_pte_vaddr (seg + (i*PAGE_SIZE)); in mmu_emu_init() 176 m68k_vmalloc_end = seg; in mmu_emu_init() 181 pmeg_alloc[sun3_get_segmap(seg)] = 2; in mmu_emu_init() [all …]
|
/arch/x86/kvm/ |
D | mtrr.c | 189 static u64 fixed_mtrr_seg_unit_size(int seg) in fixed_mtrr_seg_unit_size() argument 191 return 8 << fixed_seg_table[seg].range_shift; in fixed_mtrr_seg_unit_size() 194 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit() argument 198 *seg = 0; in fixed_msr_to_seg_unit() 202 *seg = 1; in fixed_msr_to_seg_unit() 208 *seg = 2; in fixed_msr_to_seg_unit() 220 static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) in fixed_mtrr_seg_unit_range() argument 222 struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; in fixed_mtrr_seg_unit_range() 223 u64 unit_size = fixed_mtrr_seg_unit_size(seg); in fixed_mtrr_seg_unit_range() 230 static int fixed_mtrr_seg_unit_range_index(int seg, int unit) in fixed_mtrr_seg_unit_range_index() argument [all …]
|
D | smm.c | 141 static u32 enter_smm_get_segment_flags(struct kvm_segment *seg) in enter_smm_get_segment_flags() argument 144 flags |= seg->g << 23; in enter_smm_get_segment_flags() 145 flags |= seg->db << 22; in enter_smm_get_segment_flags() 146 flags |= seg->l << 21; in enter_smm_get_segment_flags() 147 flags |= seg->avl << 20; in enter_smm_get_segment_flags() 148 flags |= seg->present << 15; in enter_smm_get_segment_flags() 149 flags |= seg->dpl << 13; in enter_smm_get_segment_flags() 150 flags |= seg->s << 12; in enter_smm_get_segment_flags() 151 flags |= seg->type << 8; in enter_smm_get_segment_flags() 159 struct kvm_segment seg; in enter_smm_save_seg_32() local [all …]
|
/arch/m68k/include/asm/ |
D | tlbflush.h | 143 unsigned char seg; in flush_tlb_mm() local 150 seg = sun3_get_segmap(i); in flush_tlb_mm() 151 if(seg == SUN3_INVALID_PMEG) in flush_tlb_mm() 155 pmeg_alloc[seg] = 0; in flush_tlb_mm() 156 pmeg_ctx[seg] = 0; in flush_tlb_mm() 157 pmeg_vaddr[seg] = 0; in flush_tlb_mm() 191 unsigned char seg, oldctx; in flush_tlb_range() local 200 if((seg = sun3_get_segmap(start)) == SUN3_INVALID_PMEG) in flush_tlb_range() 202 if(pmeg_ctx[seg] == mm->context) { in flush_tlb_range() 203 pmeg_alloc[seg] = 0; in flush_tlb_range() [all …]
|
/arch/x86/pci/ |
D | numachip.c | 19 static inline 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_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_read_numachip() argument 46 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read_numachip() 68 static int pci_mmcfg_write_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_write_numachip() argument 82 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write_numachip()
|
D | olpc.c | 200 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()
|
D | mmconfig_32.c | 27 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()
|
D | mmconfig_64.c | 19 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()
|
D | direct.c | 21 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()
|
D | acpi.c | 254 static int check_segment(u16 seg, struct device *dev, char *estr) in check_segment() argument 256 if (seg) { in check_segment() 275 int result, seg; in setup_mcfg_map() local 284 seg = info->sd.domain; in setup_mcfg_map() 291 return check_segment(seg, dev, "MMCONFIG is disabled,"); in setup_mcfg_map() 293 result = pci_mmconfig_insert(dev, seg, info->start_bus, info->end_bus, in setup_mcfg_map() 301 return check_segment(seg, dev, in setup_mcfg_map()
|
D | ce4100.c | 263 static int ce4100_conf_read(unsigned int seg, unsigned int bus, in ce4100_conf_read() argument 266 WARN_ON(seg); in ce4100_conf_read() 275 return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); in ce4100_conf_read() 297 static int ce4100_conf_write(unsigned int seg, unsigned int bus, in ce4100_conf_write() argument 300 WARN_ON(seg); in ce4100_conf_write() 310 return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); in ce4100_conf_write()
|
D | pcbios.c | 183 static int pci_bios_read(unsigned int seg, unsigned int bus, in pci_bios_read() argument 191 WARN_ON(seg); in pci_bios_read() 233 static int pci_bios_write(unsigned int seg, unsigned int bus, in pci_bios_write() argument 241 WARN_ON(seg); in pci_bios_write()
|
/arch/x86/kernel/ |
D | step.c | 14 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/x86/boot/ |
D | boot.h | 49 u16 seg; in ds() local 50 asm("movw %%ds,%0" : "=rm" (seg)); in ds() 51 return seg; in ds() 54 static inline void set_fs(u16 seg) in set_fs() argument 56 asm volatile("movw %0,%%fs" : : "rm" (seg)); in set_fs() 60 u16 seg; in fs() local 61 asm volatile("movw %%fs,%0" : "=rm" (seg)); in fs() 62 return seg; in fs() 65 static inline void set_gs(u16 seg) in set_gs() argument 67 asm volatile("movw %0,%%gs" : : "rm" (seg)); in set_gs() [all …]
|
/arch/x86/include/asm/ |
D | segment.h | 260 [p] "=a" (p), [seg] "r" (__CPUNODE_SEG)); in vdso_read_cpunode() 305 #define __loadsegment_simple(seg, value) \ argument 310 "1: movl %k0,%%" #seg " \n" \ 345 #define loadsegment(seg, value) __loadsegment_ ## seg (value) argument 350 #define savesegment(seg, value) \ argument 351 asm("mov %%" #seg ",%0":"=r" (value) : : "memory")
|
/arch/ia64/pci/ |
D | pci.c | 40 #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/arm/mach-omap1/ |
D | board-osk.c | 293 static void __init osk_init_cf(int seg) in osk_init_cf() argument 299 switch (seg) { in osk_init_cf() 313 osk5912_cf_device.dev.platform_data = (void *)(uintptr_t)seg; in osk_init_cf() 320 seg, omap_readl(EMIFS_CCS(seg)), omap_readl(EMIFS_ACS(seg))); in osk_init_cf() 321 omap_writel(0x0004a1b3, EMIFS_CCS(seg)); /* synch mode 4 etc */ in osk_init_cf() 322 omap_writel(0x00000000, EMIFS_ACS(seg)); /* OE hold/setup */ in osk_init_cf()
|
/arch/x86/boot/compressed/ |
D | cmdline.c | 5 static inline void set_fs(unsigned long seg) in set_fs() argument 7 fs = seg << 4; /* shift it back */ in set_fs()
|
/arch/x86/math-emu/ |
D | fpu_system.h | 23 static inline struct desc_struct FPU_get_ldt_descriptor(unsigned seg) in FPU_get_ldt_descriptor() argument 29 seg >>= 3; in FPU_get_ldt_descriptor() 31 if (current->mm->context.ldt && seg < current->mm->context.ldt->nr_entries) in FPU_get_ldt_descriptor() 32 ret = current->mm->context.ldt->entries[seg]; in FPU_get_ldt_descriptor()
|
/arch/x86/hyperv/ |
D | ivm.c | 252 #define hv_populate_vmcb_seg(seg, gdtr_base) \ argument 254 if (seg.selector) { \ 255 seg.base = 0; \ 256 seg.limit = HV_AP_SEGMENT_LIMIT; \ 257 seg.attrib = *(u16 *)(gdtr_base + seg.selector + 5); \ 258 seg.attrib = (seg.attrib & 0xFF) | ((seg.attrib >> 4) & 0xF00); \
|
/arch/arm64/kernel/ |
D | pci.c | 132 u16 seg = root->segment; in pci_acpi_setup_ecam_mapping() local 141 dev_err(dev, "%04x:%pR ECAM region not found\n", seg, bus_res); in pci_acpi_setup_ecam_mapping() 155 dev_err(dev, "%04x:%pR error %ld mapping ECAM\n", seg, bus_res, in pci_acpi_setup_ecam_mapping()
|
/arch/x86/kvm/vmx/ |
D | vmx.c | 497 #define VMX_SEGMENT_FIELD(seg) \ argument 498 [VCPU_SREG_##seg] = { \ 499 .selector = GUEST_##seg##_SELECTOR, \ 500 .base = GUEST_##seg##_BASE, \ 501 .limit = GUEST_##seg##_LIMIT, \ 502 .ar_bytes = GUEST_##seg##_AR_BYTES, \ 832 static bool vmx_segment_cache_test_set(struct vcpu_vmx *vmx, unsigned seg, in vmx_segment_cache_test_set() argument 836 u32 mask = 1 << (seg * SEG_FIELD_NR + field); in vmx_segment_cache_test_set() 847 static u16 vmx_read_guest_seg_selector(struct vcpu_vmx *vmx, unsigned seg) in vmx_read_guest_seg_selector() argument 849 u16 *p = &vmx->segment_cache.seg[seg].selector; in vmx_read_guest_seg_selector() [all …]
|
/arch/x86/realmode/ |
D | init.c | 124 u16 *seg = (u16 *) (base + *rel++); in setup_real_mode() local 125 *seg = real_mode_seg; in setup_real_mode()
|
/arch/loongarch/pci/ |
D | acpi.c | 159 u16 seg = root->segment; in pci_acpi_setup_ecam_mapping() local 168 dev_err(dev, "%04x:%pR ECAM region not found, use default value\n", seg, bus_res); in pci_acpi_setup_ecam_mapping() 186 dev_err(dev, "%04x:%pR error %ld mapping ECAM\n", seg, bus_res, PTR_ERR(cfg)); in pci_acpi_setup_ecam_mapping()
|