/linux-2.4.37.9/arch/m68k/sun3/ |
D | mmu_emu.c | 125 unsigned long seg, num; in mmu_emu_init() local 148 for(seg = bootmem_end; seg < 0x0f800000; seg += SUN3_PMEG_SIZE) { in mmu_emu_init() 149 i = sun3_get_segmap(seg); in mmu_emu_init() 154 print_pte_vaddr (seg); in mmu_emu_init() 156 sun3_put_segmap(seg, SUN3_INVALID_PMEG); in mmu_emu_init() 161 for (num=0, seg=0x0F800000; seg<0x10000000; seg+=16*PAGE_SIZE) { in mmu_emu_init() 162 if (sun3_get_segmap (seg) != SUN3_INVALID_PMEG) { in mmu_emu_init() 166 print_pte_vaddr (seg + (i*PAGE_SIZE)); in mmu_emu_init() 173 vmalloc_end = seg; in mmu_emu_init() 178 pmeg_alloc[sun3_get_segmap(seg)] = 2; in mmu_emu_init() [all …]
|
/linux-2.4.37.9/include/asm-m68k/ |
D | sun3_pgalloc.h | 175 unsigned char seg; in flush_tlb_mm() local 182 seg = sun3_get_segmap(i); in flush_tlb_mm() 183 if(seg == SUN3_INVALID_PMEG) in flush_tlb_mm() 187 pmeg_alloc[seg] = 0; in flush_tlb_mm() 188 pmeg_ctx[seg] = 0; in flush_tlb_mm() 189 pmeg_vaddr[seg] = 0; in flush_tlb_mm() 222 unsigned char seg, oldctx; in flush_tlb_range() local 231 if((seg = sun3_get_segmap(start)) == SUN3_INVALID_PMEG) in flush_tlb_range() 233 if(pmeg_ctx[seg] == mm->context) { in flush_tlb_range() 234 pmeg_alloc[seg] = 0; in flush_tlb_range() [all …]
|
D | segment.h | 21 unsigned long seg; member 35 __asm__ ("movec %/dfc,%0":"=r" (_v.seg):); in get_fs() 50 : /* no outputs */ : "r" (val.seg) : "memory"); in set_fs() 53 #define segment_eq(a,b) ((a).seg == (b).seg)
|
/linux-2.4.37.9/arch/cris/mm/ |
D | init.c | 246 *R_MMU_KSEG = ( IO_STATE(R_MMU_KSEG, seg_f, seg ) | /* cached flash */ in paging_init() 247 IO_STATE(R_MMU_KSEG, seg_e, seg ) | /* uncached flash */ in paging_init() 249 IO_STATE(R_MMU_KSEG, seg_c, seg ) | /* kernel area */ in paging_init() 250 IO_STATE(R_MMU_KSEG, seg_b, seg ) | /* kernel reg area */ in paging_init() 251 IO_STATE(R_MMU_KSEG, seg_a, seg ) | /* bootrom/regs cached */ in paging_init() 297 *R_MMU_KSEG = ( IO_STATE(R_MMU_KSEG, seg_f, seg ) | /* cached bootrom/regs */ in paging_init() 301 IO_STATE(R_MMU_KSEG, seg_b, seg ) | /* kernel reg area */ in paging_init() 303 IO_STATE(R_MMU_KSEG, seg_a, seg ) | /* ARTPEC etc. */ in paging_init() 307 IO_STATE(R_MMU_KSEG, seg_9, seg ) | /* LED's on some boards */ in paging_init() 308 IO_STATE(R_MMU_KSEG, seg_8, seg ) | /* CSE0/1, flash and I/O */ in paging_init() [all …]
|
/linux-2.4.37.9/arch/ia64/kernel/ |
D | pci.c | 52 int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, u32 *value); 53 int (*pci_config_write)(int seg, int bus, int dev, int fn, int reg, int len, u32 value); 62 #define PCI_SAL_ADDRESS(seg, bus, dev, fn, reg) \ argument 63 ((u64)(seg << 24) | (u64)(bus << 16) | \ 67 pci_sal_read (int seg, int bus, int dev, int fn, int reg, int len, u32 *value) in pci_sal_read() argument 72 if (!value || (seg > 255) || (bus > 255) || (dev > 31) || (fn > 7) || (reg > 255)) in pci_sal_read() 75 result = ia64_sal_pci_config_read(PCI_SAL_ADDRESS(seg, bus, dev, fn, reg), len, &data); in pci_sal_read() 83 pci_sal_write (int seg, int bus, int dev, int fn, int reg, int len, u32 value) in pci_sal_write() argument 85 if ((seg > 255) || (bus > 255) || (dev > 31) || (fn > 7) || (reg > 255)) in pci_sal_write() 88 return ia64_sal_pci_config_write(PCI_SAL_ADDRESS(seg, bus, dev, fn, reg), len, value); in pci_sal_write() [all …]
|
/linux-2.4.37.9/ipc/ |
D | msg.c | 148 struct msg_msgseg* seg; in free_msg() local 149 seg = msg->next; in free_msg() 151 while(seg != NULL) { in free_msg() 152 struct msg_msgseg* tmp = seg->next; in free_msg() 153 kfree(seg); in free_msg() 154 seg = tmp; in free_msg() 184 struct msg_msgseg* seg; in load_msg() local 188 seg = (struct msg_msgseg *) kmalloc (sizeof(*seg) + alen, GFP_KERNEL); in load_msg() 189 if(seg==NULL) { in load_msg() 193 *pseg = seg; in load_msg() [all …]
|
/linux-2.4.37.9/drivers/char/agp/ |
D | agpgart_fe.c | 110 agp_segment_priv *seg; in agp_find_seg_in_client() local 115 seg = *(client->segments); in agp_find_seg_in_client() 119 if ((seg[i].pg_start == pg_start) && in agp_find_seg_in_client() 120 (seg[i].pg_count == pg_count) && in agp_find_seg_in_client() 121 (pgprot_val(seg[i].prot) == pgprot_val(page_prot))) { in agp_find_seg_in_client() 122 return seg + i; in agp_find_seg_in_client() 140 agp_segment_priv ** seg, int num_segments) in agp_add_seg_to_client() argument 150 client->segments = seg; in agp_add_seg_to_client() 187 agp_segment_priv *seg; in agp_create_segment() local 191 seg = kmalloc((sizeof(agp_segment_priv) * region->seg_count), in agp_create_segment() [all …]
|
/linux-2.4.37.9/drivers/hotplug/ |
D | pciehprm_acpi.c | 73 int seg; member 91 int seg; member 165 aps->sun, ab->seg, aps->bus, aps->dev, aps->fun); in acpi_add_slot_to_php_slots() 737 int seg, in find_acpi_bridge_by_bus() argument 746 if ((ab->bus == bus) && (ab->seg == seg)) in find_acpi_bridge_by_bus() 750 lab = find_acpi_bridge_by_bus(ab->child, seg, bus); in find_acpi_bridge_by_bus() 754 lab = find_acpi_bridge_by_bus(ab->next, seg, bus); in find_acpi_bridge_by_bus() 771 lpab = find_acpi_bridge_by_bus(*head, pab->seg, pab->bus); in pciehprm_acpi_register_a_bridge() 774 warn("PCI parent bridge s:b(%x:%x) not in list.\n", pab->seg, pab->bus); in pciehprm_acpi_register_a_bridge() 783 lcab = find_acpi_bridge_by_bus(*head, cab->seg, cab->bus); in pciehprm_acpi_register_a_bridge() [all …]
|
D | shpchprm_acpi.c | 73 int seg; member 91 int seg; member 165 aps->sun, ab->seg, aps->bus, aps->dev, aps->fun); in acpi_add_slot_to_php_slots() 738 int seg, in find_acpi_bridge_by_bus() argument 747 if ((ab->bus == bus) && (ab->seg == seg)) in find_acpi_bridge_by_bus() 751 lab = find_acpi_bridge_by_bus(ab->child, seg, bus); in find_acpi_bridge_by_bus() 755 lab = find_acpi_bridge_by_bus(ab->next, seg, bus); in find_acpi_bridge_by_bus() 772 lpab = find_acpi_bridge_by_bus(*head, pab->seg, pab->bus); in shpchprm_acpi_register_a_bridge() 775 warn("PCI parent bridge s:b(%x:%x) not in list.\n", pab->seg, pab->bus); in shpchprm_acpi_register_a_bridge() 784 lcab = find_acpi_bridge_by_bus(*head, cab->seg, cab->bus); in shpchprm_acpi_register_a_bridge() [all …]
|
D | acpiphp_glue.c | 476 static void add_host_bridge (acpi_handle *handle, int seg, int bus) in add_host_bridge() argument 491 bridge->seg = seg; in add_host_bridge() 524 static void add_p2p_bridge (acpi_handle *handle, int seg, int bus, int dev, int fn) in add_p2p_bridge() argument 542 bridge->seg = seg; in add_p2p_bridge() 680 int seg, bus, device, function; in find_p2p_bridge() local 684 seg = (*segbus >> 8) & 0xff; in find_p2p_bridge() 711 add_p2p_bridge(handle, seg, bus, device, function); in find_p2p_bridge() 723 int seg, bus; in add_bridge() local 742 seg = ACPI_SUCCESS(status) ? tmp : 0; in add_bridge() 757 add_host_bridge(handle, seg, bus); in add_bridge() [all …]
|
/linux-2.4.37.9/include/asm-ia64/ |
D | uaccess.h | 53 #define segment_eq(a,b) ((a).seg == (b).seg) 62 likely(((unsigned long) (addr)) <= (segment).seg \ 63 && ((segment).seg == KERNEL_DS.seg \
|
D | pci.h | 25 extern int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, u32 *value); 26 extern int (*pci_config_write)(int seg, int bus, int dev, int fn, int reg, int len, u32 value);
|
/linux-2.4.37.9/include/asm-sh/ |
D | uaccess.h | 38 #define segment_eq(a,b) ((a).seg == (b).seg) 40 #define __addr_ok(addr) ((unsigned long)(addr) < (current->addr_limit.seg)) 52 :"1" (addr), "r" ((int)(size)), "r" (current->addr_limit.seg) \
|
/linux-2.4.37.9/arch/ppc/xmon/ |
D | xmon.c | 953 dump_hash_table_seg(unsigned seg, unsigned start, unsigned end) in dump_hash_table_seg() argument 969 hg = htab + (((v ^ seg) & hmask) * 16); in dump_hash_table_seg() 970 w1 = 0x80000000 | (seg << 7) | (v >> 10); in dump_hash_table_seg() 979 hg = htab + ((~(v ^ seg) & hmask) * 16); in dump_hash_table_seg() 1011 dump_hash_table_seg(unsigned seg, unsigned start, unsigned end) in dump_hash_table_seg() argument 1027 hg = htab + (((v ^ seg) & hmask) * 32); in dump_hash_table_seg() 1028 w1 = 1 | (seg << 12) | ((v & 0xf800) >> 4); in dump_hash_table_seg() 1037 hg = htab + ((~(v ^ seg) & hmask) * 32); in dump_hash_table_seg() 1075 int seg; in dump_hash_table() local 1088 for (seg = hash_start >> 28; seg <= hash_end >> 28; ++seg) { in dump_hash_table() [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | signal.c | 195 #define COPY_SEG(seg) \ in restore_sigcontext() argument 197 err |= __get_user(tmp, &sc->seg); \ in restore_sigcontext() 198 regs->x##seg = tmp; } in restore_sigcontext() 200 #define COPY_SEG_STRICT(seg) \ in restore_sigcontext() argument 202 err |= __get_user(tmp, &sc->seg); \ in restore_sigcontext() 203 regs->x##seg = tmp|3; } in restore_sigcontext() 205 #define GET_SEG(seg) \ in restore_sigcontext() argument 207 err |= __get_user(tmp, &sc->seg); \ in restore_sigcontext() 208 loadsegment(seg,tmp); } in restore_sigcontext()
|
/linux-2.4.37.9/include/asm-sh64/ |
D | uaccess.h | 47 #define segment_eq(a,b) ((a).seg == (b).seg) 49 #define __addr_ok(addr) ((unsigned long)(addr) < (current->addr_limit.seg)) 57 #define __range_ok(addr,size) (((unsigned long) (addr) + (size) < (current->addr_limit.seg)) ? 0 : …
|
/linux-2.4.37.9/arch/x86_64/ia32/ |
D | ia32_signal.c | 118 mm_segment_t seg; in sys32_sigaltstack() local 129 seg = get_fs(); in sys32_sigaltstack() 132 set_fs(seg); in sys32_sigaltstack() 184 #define RELOAD_SEG(seg,mask) \ in ia32_restore_sigcontext() argument 187 err |= __get_user(pre, &sc->seg); \ in ia32_restore_sigcontext() 188 asm volatile("movl %%" #seg ",%0" : "=r" (cur)); \ in ia32_restore_sigcontext() 190 if (pre != cur) loadsegment(seg,pre); } in ia32_restore_sigcontext()
|
/linux-2.4.37.9/arch/mips/kernel/ |
D | unaligned.c | 503 mm_segment_t seg; in do_ade() local 532 seg = get_fs(); in do_ade() 545 set_fs(seg); in do_ade()
|
/linux-2.4.37.9/arch/mips64/kernel/ |
D | unaligned.c | 503 mm_segment_t seg; in do_ade() local 532 seg = get_fs(); in do_ade() 545 set_fs(seg); in do_ade()
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | uaccess.h | 33 #define segment_eq(a,b) ((a).seg == (b).seg) 35 #define __addr_ok(addr) (!((unsigned long)(addr) & (current->addr_limit.seg))) 45 :"1" (addr),"g" ((long)(size)),"g" (current->addr_limit.seg)); \
|
D | system.h | 77 #define loadsegment(seg,value) \ argument 80 "movl %0,%%" #seg "\n" \ 84 "movl %1,%%" #seg "\n\t" \
|
/linux-2.4.37.9/include/asm-i386/ |
D | uaccess.h | 33 #define segment_eq(a,b) ((a).seg == (b).seg) 37 #define __addr_ok(addr) ((unsigned long)(addr) < (current->addr_limit.seg)) 52 :"1" (addr),"g" ((int)(size)),"g" (current->addr_limit.seg)); \
|
D | system.h | 84 #define loadsegment(seg,value) \ argument 87 "mov %0,%%" #seg "\n" \ 92 "popl %%" #seg "\n\t" \
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | pci-pc.c | 36 int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, u32 *value) = NULL; 37 int (*pci_config_write)(int seg, int bus, int dev, int fn, int reg, int len, u32 value) = NULL; 59 static int pci_conf1_read (int seg, int bus, int dev, int fn, int reg, int len, in pci_conf1_read() argument 88 static int pci_conf1_write (int seg, int bus, int dev, int fn, int reg, int len, u32 value) in pci_conf1_write() argument 196 static int pci_conf2_read (int seg, int bus, int dev, int fn, int reg, int len, u32 *value) in pci_conf2_read() argument 230 static int pci_conf2_write (int seg, int bus, int dev, int fn, int reg, int len, u32 value) in pci_conf2_write() argument
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | uaccess.h | 42 #define segment_eq(a,b) ((a).seg == (b).seg) 47 __asm__ __volatile__ ("wr %%g0, %0, %%asi" : : "r" ((val).seg)); \
|