seg                82 arch/x86/boot/boot.h 	u16 seg;
seg                83 arch/x86/boot/boot.h 	asm("movw %%ds,%0" : "=rm" (seg));
seg                84 arch/x86/boot/boot.h 	return seg;
seg                89 arch/x86/boot/boot.h 	asm volatile("movw %0,%%fs" : : "rm" (seg));
seg                93 arch/x86/boot/boot.h 	u16 seg;
seg                94 arch/x86/boot/boot.h 	asm volatile("movw %%fs,%0" : "=rm" (seg));
seg                95 arch/x86/boot/boot.h 	return seg;
seg               100 arch/x86/boot/boot.h 	asm volatile("movw %0,%%gs" : : "rm" (seg));
seg               104 arch/x86/boot/boot.h 	u16 seg;
seg               105 arch/x86/boot/boot.h 	asm volatile("movw %%gs,%0" : "=rm" (seg));
seg               106 arch/x86/boot/boot.h 	return seg;
seg                17 arch/x86/boot/vesa.h 	u16 off, seg;
seg                54 arch/x86/boot/video-vesa.c 	set_fs(vginfo.video_mode_ptr.seg);
seg               146 arch/x86/ia32/ia32_signal.c 	mm_segment_t seg;
seg               159 arch/x86/ia32/ia32_signal.c 	seg = get_fs();
seg               162 arch/x86/ia32/ia32_signal.c 	set_fs(seg);
seg               209 arch/x86/ia32/ia32_signal.c 	  err |= __get_user(pre, &sc->seg);				\
seg               210 arch/x86/ia32/ia32_signal.c 	  savesegment(seg, cur);					\
seg               212 arch/x86/ia32/ia32_signal.c 	  if (pre != cur) loadsegment(seg, pre); }
seg               743 arch/x86/ia32/sys_ia32.c 	mm_segment_t seg;
seg               746 arch/x86/ia32/sys_ia32.c 	seg = get_fs();
seg               749 arch/x86/ia32/sys_ia32.c 	set_fs(seg);
seg               161 arch/x86/kernel/ptrace.c 	unsigned int seg;
seg               167 arch/x86/kernel/ptrace.c 			asm("movl %%fs,%0" : "=r" (seg));
seg               168 arch/x86/kernel/ptrace.c 			return seg;
seg               173 arch/x86/kernel/ptrace.c 			asm("movl %%gs,%0" : "=r" (seg));
seg               174 arch/x86/kernel/ptrace.c 			return seg;
seg               179 arch/x86/kernel/ptrace.c 			asm("movl %%ds,%0" : "=r" (seg));
seg               180 arch/x86/kernel/ptrace.c 			return seg;
seg               185 arch/x86/kernel/ptrace.c 			asm("movl %%es,%0" : "=r" (seg));
seg               186 arch/x86/kernel/ptrace.c 			return seg;
seg               387 arch/x86/kernel/ptrace.c 		unsigned int seg = task->thread.fsindex;
seg               391 arch/x86/kernel/ptrace.c 			asm("movl %%fs,%0" : "=r" (seg));
seg               392 arch/x86/kernel/ptrace.c 		if (seg != FS_TLS_SEL)
seg               400 arch/x86/kernel/ptrace.c 		unsigned int seg = task->thread.gsindex;
seg               404 arch/x86/kernel/ptrace.c 			asm("movl %%gs,%0" : "=r" (seg));
seg               405 arch/x86/kernel/ptrace.c 		if (seg != GS_TLS_SEL)
seg               122 arch/x86/kernel/signal_32.c 		err |= __get_user(tmp, &sc->seg);	\
seg               123 arch/x86/kernel/signal_32.c 		regs->seg = tmp;			\
seg               128 arch/x86/kernel/signal_32.c 		err |= __get_user(tmp, &sc->seg);	\
seg               129 arch/x86/kernel/signal_32.c 		regs->seg = tmp | 3;			\
seg               134 arch/x86/kernel/signal_32.c 		err |= __get_user(tmp, &sc->seg);	\
seg               135 arch/x86/kernel/signal_32.c 		loadsegment(seg, tmp);			\
seg                61 arch/x86/kernel/signal_64.c 		err |= __get_user(tmp, &sc->seg);	\
seg                62 arch/x86/kernel/signal_64.c 		regs->seg = tmp | 3;			\
seg                10 arch/x86/kernel/step.c 	unsigned long addr, seg;
seg                13 arch/x86/kernel/step.c 	seg = regs->cs & 0xffff;
seg                15 arch/x86/kernel/step.c 		addr = (addr & 0xffff) + (seg << 4);
seg                25 arch/x86/kernel/step.c 	if ((seg & SEGMENT_TI_MASK) == SEGMENT_LDT) {
seg                29 arch/x86/kernel/step.c 		seg &= ~7UL;
seg                32 arch/x86/kernel/step.c 		if (unlikely((seg >> 3) >= child->mm->context.size))
seg                35 arch/x86/kernel/step.c 			desc = child->mm->context.ldt + seg;
seg               481 arch/x86/kvm/svm.c 	seg->selector = 0;
seg               482 arch/x86/kvm/svm.c 	seg->attrib = SVM_SELECTOR_P_MASK | SVM_SELECTOR_S_MASK |
seg               484 arch/x86/kvm/svm.c 	seg->limit = 0xffff;
seg               485 arch/x86/kvm/svm.c 	seg->base = 0;
seg               490 arch/x86/kvm/svm.c 	seg->selector = 0;
seg               491 arch/x86/kvm/svm.c 	seg->attrib = SVM_SELECTOR_P_MASK | type;
seg               492 arch/x86/kvm/svm.c 	seg->limit = 0xffff;
seg               493 arch/x86/kvm/svm.c 	seg->base = 0;
seg               755 arch/x86/kvm/svm.c 	switch (seg) {
seg               771 arch/x86/kvm/svm.c 	struct vmcb_seg *s = svm_seg(vcpu, seg);
seg               779 arch/x86/kvm/svm.c 	struct vmcb_seg *s = svm_seg(vcpu, seg);
seg               898 arch/x86/kvm/svm.c 	struct vmcb_seg *s = svm_seg(vcpu, seg);
seg               915 arch/x86/kvm/svm.c 	if (seg == VCPU_SREG_CS)
seg               124 arch/x86/kvm/vmx.c 	[VCPU_SREG_##seg] = {                                   \
seg               125 arch/x86/kvm/vmx.c 		.selector = GUEST_##seg##_SELECTOR,		\
seg               126 arch/x86/kvm/vmx.c 		.base = GUEST_##seg##_BASE,		   	\
seg               127 arch/x86/kvm/vmx.c 		.limit = GUEST_##seg##_LIMIT,		   	\
seg               128 arch/x86/kvm/vmx.c 		.ar_bytes = GUEST_##seg##_AR_BYTES,	   	\
seg              1274 arch/x86/kvm/vmx.c 	struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
seg              1333 arch/x86/kvm/vmx.c 	struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
seg              1594 arch/x86/kvm/vmx.c 	struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
seg              1602 arch/x86/kvm/vmx.c 	struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
seg              1661 arch/x86/kvm/vmx.c 	struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
seg              1664 arch/x86/kvm/vmx.c 	if (vcpu->arch.rmode.active && seg == VCPU_SREG_TR) {
seg              1787 arch/x86/kvm/vmx.c 	struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
seg              2038 arch/x86/kvm/x86.c 	return kvm_x86_ops->get_segment_base(vcpu, seg);
seg              3095 arch/x86/kvm/x86.c 	kvm_x86_ops->get_segment(vcpu, var, seg);
seg              3179 arch/x86/kvm/x86.c 	kvm_x86_ops->set_segment(vcpu, var, seg);
seg              3281 arch/x86/kvm/x86.c 	kvm_get_segment(vcpu, &kvm_seg, seg);
seg              3306 arch/x86/kvm/x86.c 	if (seg != VCPU_SREG_SS && seg != VCPU_SREG_CS &&
seg              3307 arch/x86/kvm/x86.c 	    seg != VCPU_SREG_LDTR)
seg              3311 arch/x86/kvm/x86.c 	kvm_set_segment(vcpu, &kvm_seg, seg);
seg               528 arch/x86/kvm/x86_emulate.c 	c->seg_override = seg;
seg               533 arch/x86/kvm/x86_emulate.c 	if (ctxt->mode == X86EMUL_MODE_PROT64 && seg < VCPU_SREG_FS)
seg               536 arch/x86/kvm/x86_emulate.c 	return kvm_x86_ops->get_segment_base(ctxt->vcpu, seg);
seg                35 arch/x86/pci/mmconfig_32.c 		if (cfg->pci_segment == seg &&
seg                71 arch/x86/pci/mmconfig_32.c 	base = get_base_addr(seg, bus, devfn);
seg               104 arch/x86/pci/mmconfig_32.c 	base = get_base_addr(seg, bus, devfn);
seg                30 arch/x86/pci/mmconfig_64.c 		if (cfg->pci_segment == seg &&
seg                44 arch/x86/pci/mmconfig_64.c 	addr = get_virt(seg, bus);
seg                61 arch/x86/pci/mmconfig_64.c 	addr = pci_dev_base(seg, bus, devfn);
seg                89 arch/x86/pci/mmconfig_64.c 	addr = pci_dev_base(seg, bus, devfn);
seg               211 arch/x86/pci/olpc.c 		return pci_direct_conf1.read(seg, bus, devfn, reg, len, value);
seg               269 arch/x86/pci/olpc.c 		return pci_direct_conf1.write(seg, bus, devfn, reg, len, value);
seg               705 fs/binfmt_elf_fdpic.c 	struct elf32_fdpic_loadseg *seg;
seg               721 fs/binfmt_elf_fdpic.c 	size = sizeof(*loadmap) + nloads * sizeof(*seg);
seg               732 fs/binfmt_elf_fdpic.c 	seg = loadmap->segs;
seg               753 fs/binfmt_elf_fdpic.c 		seg = loadmap->segs;
seg               754 fs/binfmt_elf_fdpic.c 		for (loop = loadmap->nsegs; loop > 0; loop--, seg++) {
seg               755 fs/binfmt_elf_fdpic.c 			if (params->hdr.e_entry >= seg->p_vaddr &&
seg               756 fs/binfmt_elf_fdpic.c 			    params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) {
seg               758 fs/binfmt_elf_fdpic.c 					(params->hdr.e_entry - seg->p_vaddr) +
seg               759 fs/binfmt_elf_fdpic.c 					seg->addr;
seg               778 fs/binfmt_elf_fdpic.c 		seg = loadmap->segs;
seg               779 fs/binfmt_elf_fdpic.c 		for (loop = loadmap->nsegs; loop > 0; loop--, seg++) {
seg               780 fs/binfmt_elf_fdpic.c 			if (phdr->p_vaddr >= seg->p_vaddr &&
seg               782 fs/binfmt_elf_fdpic.c 			    seg->p_vaddr + seg->p_memsz) {
seg               784 fs/binfmt_elf_fdpic.c 					(phdr->p_vaddr - seg->p_vaddr) +
seg               785 fs/binfmt_elf_fdpic.c 					seg->addr +
seg               799 fs/binfmt_elf_fdpic.c 		seg = loadmap->segs;
seg               800 fs/binfmt_elf_fdpic.c 		for (loop = loadmap->nsegs; loop > 0; loop--, seg++) {
seg               801 fs/binfmt_elf_fdpic.c 			if (phdr->p_vaddr >= seg->p_vaddr &&
seg               803 fs/binfmt_elf_fdpic.c 			    seg->p_vaddr + seg->p_memsz) {
seg               805 fs/binfmt_elf_fdpic.c 					(phdr->p_vaddr - seg->p_vaddr) +
seg               806 fs/binfmt_elf_fdpic.c 					seg->addr;
seg               832 fs/binfmt_elf_fdpic.c 	seg = mseg + 1;
seg               835 fs/binfmt_elf_fdpic.c 		if (seg->p_vaddr - mseg->p_vaddr == seg->addr - mseg->addr) {
seg               837 fs/binfmt_elf_fdpic.c 			if (load_addr == (seg->addr & PAGE_MASK)) {
seg               841 fs/binfmt_elf_fdpic.c 				mseg->p_memsz += seg->addr & ~PAGE_MASK;
seg               842 fs/binfmt_elf_fdpic.c 				mseg->p_memsz += seg->p_memsz;
seg               849 fs/binfmt_elf_fdpic.c 		if (mseg != seg)
seg               850 fs/binfmt_elf_fdpic.c 			*mseg = *seg;
seg               859 fs/binfmt_elf_fdpic.c 	seg = loadmap->segs;
seg               860 fs/binfmt_elf_fdpic.c 	for (loop = 0; loop < loadmap->nsegs; loop++, seg++)
seg               863 fs/binfmt_elf_fdpic.c 		       seg->addr, seg->addr + seg->p_memsz - 1,
seg               864 fs/binfmt_elf_fdpic.c 		       seg->p_vaddr, seg->p_memsz);
seg               884 fs/binfmt_elf_fdpic.c 	struct elf32_fdpic_loadseg *seg;
seg               891 fs/binfmt_elf_fdpic.c 	seg = params->loadmap->segs;
seg               929 fs/binfmt_elf_fdpic.c 		seg->addr = maddr + (phdr->p_vaddr - base);
seg               930 fs/binfmt_elf_fdpic.c 		seg->p_vaddr = phdr->p_vaddr;
seg               931 fs/binfmt_elf_fdpic.c 		seg->p_memsz = phdr->p_memsz;
seg               933 fs/binfmt_elf_fdpic.c 		ret = file->f_op->read(file, (void *) seg->addr,
seg               940 fs/binfmt_elf_fdpic.c 			params->elfhdr_addr = seg->addr;
seg               944 fs/binfmt_elf_fdpic.c 			clear_user((void *) (seg->addr + phdr->p_filesz),
seg               950 fs/binfmt_elf_fdpic.c 					mm->start_code = seg->addr;
seg               951 fs/binfmt_elf_fdpic.c 					mm->end_code = seg->addr +
seg               955 fs/binfmt_elf_fdpic.c 				mm->start_data = seg->addr;
seg               957 fs/binfmt_elf_fdpic.c 				mm->end_data = seg->addr + phdr->p_memsz;
seg               962 fs/binfmt_elf_fdpic.c 			if (seg->addr + phdr->p_memsz > mm->end_data)
seg               963 fs/binfmt_elf_fdpic.c 				mm->end_data = seg->addr + phdr->p_memsz;
seg               967 fs/binfmt_elf_fdpic.c 		seg++;
seg               982 fs/binfmt_elf_fdpic.c 	struct elf32_fdpic_loadseg *seg;
seg               991 fs/binfmt_elf_fdpic.c 	seg = params->loadmap->segs;
seg              1073 fs/binfmt_elf_fdpic.c 		seg->addr = maddr + disp;
seg              1074 fs/binfmt_elf_fdpic.c 		seg->p_vaddr = phdr->p_vaddr;
seg              1075 fs/binfmt_elf_fdpic.c 		seg->p_memsz = phdr->p_memsz;
seg              1079 fs/binfmt_elf_fdpic.c 			params->elfhdr_addr = seg->addr;
seg              1144 fs/binfmt_elf_fdpic.c 		seg++;
seg              1038 fs/compat.c    	int seg;
seg              1080 fs/compat.c    	for (seg = 0 ; seg < nr_segs; seg++) {
seg               941 fs/direct-io.c 	int seg;
seg               970 fs/direct-io.c 	for (seg = 0; seg < nr_segs; seg++) {
seg               971 fs/direct-io.c 		user_addr = (unsigned long)iov[seg].iov_base;
seg               973 fs/direct-io.c 			((user_addr+iov[seg].iov_len +PAGE_SIZE-1)/PAGE_SIZE
seg               977 fs/direct-io.c 	for (seg = 0; seg < nr_segs; seg++) {
seg               978 fs/direct-io.c 		user_addr = (unsigned long)iov[seg].iov_base;
seg               979 fs/direct-io.c 		dio->size += bytes = iov[seg].iov_len;
seg              1000 fs/direct-io.c 		dio->result += iov[seg].iov_len -
seg              1116 fs/direct-io.c 	int seg;
seg              1143 fs/direct-io.c 	for (seg = 0; seg < nr_segs; seg++) {
seg              1144 fs/direct-io.c 		addr = (unsigned long)iov[seg].iov_base;
seg              1145 fs/direct-io.c 		size = iov[seg].iov_len;
seg               385 fs/nfs/direct.c 	unsigned long seg;
seg               389 fs/nfs/direct.c 	for (seg = 0; seg < nr_segs; seg++) {
seg               390 fs/nfs/direct.c 		const struct iovec *vec = &iov[seg];
seg               803 fs/nfs/direct.c 	unsigned long seg;
seg               807 fs/nfs/direct.c 	for (seg = 0; seg < nr_segs; seg++) {
seg               808 fs/nfs/direct.c 		const struct iovec *vec = &iov[seg];
seg               418 fs/read_write.c 	unsigned long seg = 0;
seg               421 fs/read_write.c 	while (seg < nr_segs) {
seg               422 fs/read_write.c 		seg++;
seg               430 fs/read_write.c 	return seg;
seg               498 fs/read_write.c 	unsigned long seg;
seg               539 fs/read_write.c   	for (seg = 0; seg < nr_segs; seg++) {
seg               540 fs/read_write.c   		void __user *buf = iov[seg].iov_base;
seg               541 fs/read_write.c   		ssize_t len = (ssize_t)iov[seg].iov_len;
seg               184 fs/xfs/linux-2.6/xfs_lrw.c 	unsigned long		seg;
seg               190 fs/xfs/linux-2.6/xfs_lrw.c 	for (seg = 0; seg < segs; seg++) {
seg               191 fs/xfs/linux-2.6/xfs_lrw.c 		const struct iovec *iv = &iovp[seg];
seg                 5 include/asm-cris/segment.h   unsigned long seg;
seg                50 include/asm-cris/uaccess.h #define segment_eq(a,b)	((a).seg == (b).seg)
seg                19 include/asm-frv/segment.h 	unsigned long seg;
seg                34 include/asm-frv/segment.h #define segment_eq(a,b)		((a).seg == (b).seg)
seg                36 include/asm-frv/segment.h #define get_addr_limit()	(get_fs().seg)
seg                74 include/asm-m32r/processor.h 	unsigned long seg;
seg                57 include/asm-m32r/uaccess.h #define segment_eq(a,b)	((a).seg == (b).seg)
seg                60 include/asm-m32r/uaccess.h 	((unsigned long)(addr) < (current_thread_info()->addr_limit.seg))
seg                82 include/asm-m32r/uaccess.h 		  "r" (current_thread_info()->addr_limit.seg), "r" (0)	\
seg                21 include/asm-m68k/segment.h 	unsigned long seg;
seg                35 include/asm-m68k/segment.h 	__asm__ ("movec %/dfc,%0":"=r" (_v.seg):);
seg                50 include/asm-m68k/segment.h 			      : /* no outputs */ : "r" (val.seg) : "memory");
seg                53 include/asm-m68k/segment.h #define segment_eq(a,b)	((a).seg == (b).seg)
seg               136 include/asm-m68k/tlbflush.h      unsigned char seg;
seg               143 include/asm-m68k/tlbflush.h 	     seg = sun3_get_segmap(i);
seg               144 include/asm-m68k/tlbflush.h 	     if(seg == SUN3_INVALID_PMEG)
seg               148 include/asm-m68k/tlbflush.h 	     pmeg_alloc[seg] = 0;
seg               149 include/asm-m68k/tlbflush.h 	     pmeg_ctx[seg] = 0;
seg               150 include/asm-m68k/tlbflush.h 	     pmeg_vaddr[seg] = 0;
seg               184 include/asm-m68k/tlbflush.h 	unsigned char seg, oldctx;
seg               193 include/asm-m68k/tlbflush.h 		if((seg = sun3_get_segmap(start)) == SUN3_INVALID_PMEG)
seg               195 include/asm-m68k/tlbflush.h 		if(pmeg_ctx[seg] == mm->context) {
seg               196 include/asm-m68k/tlbflush.h 			pmeg_alloc[seg] = 0;
seg               197 include/asm-m68k/tlbflush.h 			pmeg_ctx[seg] = 0;
seg               198 include/asm-m68k/tlbflush.h 			pmeg_vaddr[seg] = 0;
seg                80 include/asm-mn10300/processor.h 	unsigned long	seg;
seg                42 include/asm-mn10300/uaccess.h #define __kernel_ds_p() (current_thread_info()->addr_limit.seg == 0x9FFFFFFF)
seg                44 include/asm-mn10300/uaccess.h #define segment_eq(a, b) ((a).seg == (b).seg)
seg                47 include/asm-mn10300/uaccess.h 	((unsigned long)(addr) < (current_thread_info()->addr_limit.seg))
seg                64 include/asm-mn10300/uaccess.h 	      "r"(current_thread_info()->addr_limit.seg), "0"(flag)
seg               118 include/asm-parisc/processor.h 	int seg;  
seg                18 include/asm-parisc/uaccess.h #define segment_eq(a,b)	((a).seg == (b).seg)
seg                14 include/asm-um/uaccess.h 	unsigned long seg;
seg                39 include/asm-um/uaccess.h #define segment_eq(a, b) ((a).seg == (b).seg)
seg                69 include/asm-x86/desc.h 	gate->a = (seg << 16) | (base & 0xffff);
seg               303 include/asm-x86/desc.h 	pack_gate(&s, type, (unsigned long)addr, dpl, ist, seg);
seg               398 include/asm-x86/kvm_host.h 	u64 (*get_segment_base)(struct kvm_vcpu *vcpu, int seg);
seg               400 include/asm-x86/kvm_host.h 			    struct kvm_segment *var, int seg);
seg               403 include/asm-x86/kvm_host.h 			    struct kvm_segment *var, int seg);
seg               575 include/asm-x86/kvm_host.h 	u16 seg;
seg               576 include/asm-x86/kvm_host.h 	asm("mov %%fs, %0" : "=g"(seg));
seg               577 include/asm-x86/kvm_host.h 	return seg;
seg               582 include/asm-x86/kvm_host.h 	u16 seg;
seg               583 include/asm-x86/kvm_host.h 	asm("mov %%gs, %0" : "=g"(seg));
seg               584 include/asm-x86/kvm_host.h 	return seg;
seg                20 include/asm-x86/pci_64.h extern int (*pci_config_read)(int seg, int bus, int dev, int fn,
seg                22 include/asm-x86/pci_64.h extern int (*pci_config_write)(int seg, int bus, int dev, int fn,
seg               590 include/asm-x86/processor.h 	unsigned long		seg;
seg               151 include/asm-x86/system.h 		     "movl %k0,%%" #seg "\n"	\
seg               155 include/asm-x86/system.h 		     "movl %k1, %%" #seg "\n\t"	\
seg               166 include/asm-x86/system.h 	asm("mov %%" #seg ",%0":"=r" (value) : : "memory")
seg                34 include/asm-x86/uaccess.h #define segment_eq(a, b)	((a).seg == (b).seg)
seg                38 include/asm-x86/uaccess.h 	 (current_thread_info()->addr_limit.seg))
seg                57 include/asm-x86/uaccess.h 	      "rm" (current_thread_info()->addr_limit.seg));		\
seg                85 include/asm-xtensa/processor.h     unsigned long seg;
seg               178 include/asm-xtensa/uaccess.h #define segment_eq(a,b)	((a).seg == (b).seg)
seg                47 include/linux/uio.h 	unsigned long seg;
seg                50 include/linux/uio.h 	for (seg = 0; seg < nr_segs; seg++)
seg                51 include/linux/uio.h 		ret += iov[seg].iov_len;
seg                65 include/xen/interface/io/blkif.h 	} seg[BLKIF_MAX_SEGMENTS_PER_REQUEST];
seg                55 ipc/msgutil.c  		struct msg_msgseg *seg;
seg                59 ipc/msgutil.c  		seg = kmalloc(sizeof(*seg) + alen,
seg                61 ipc/msgutil.c  		if (seg == NULL) {
seg                65 ipc/msgutil.c  		*pseg = seg;
seg                66 ipc/msgutil.c  		seg->next = NULL;
seg                67 ipc/msgutil.c  		if (copy_from_user(seg + 1, src, alen)) {
seg                71 ipc/msgutil.c  		pseg = &seg->next;
seg                90 ipc/msgutil.c  	struct msg_msgseg *seg;
seg               100 ipc/msgutil.c  	seg = msg->next;
seg               105 ipc/msgutil.c  		if (copy_to_user(dest, seg + 1, alen))
seg               109 ipc/msgutil.c  		seg = seg->next;
seg               116 ipc/msgutil.c  	struct msg_msgseg *seg;
seg               120 ipc/msgutil.c  	seg = msg->next;
seg               122 ipc/msgutil.c  	while (seg != NULL) {
seg               123 ipc/msgutil.c  		struct msg_msgseg *tmp = seg->next;
seg               124 ipc/msgutil.c  		kfree(seg);
seg               125 ipc/msgutil.c  		seg = tmp;
seg              1245 mm/filemap.c   	unsigned long   seg;
seg              1247 mm/filemap.c   	for (seg = 0; seg < *nr_segs; seg++) {
seg              1248 mm/filemap.c   		const struct iovec *iv = &iov[seg];
seg              1259 mm/filemap.c   		if (seg == 0)
seg              1261 mm/filemap.c   		*nr_segs = seg;
seg              1286 mm/filemap.c   	unsigned long seg;
seg              1321 mm/filemap.c   	for (seg = 0; seg < nr_segs; seg++) {
seg              1325 mm/filemap.c   		desc.arg.buf = iov[seg].iov_base;
seg              1326 mm/filemap.c   		desc.count = iov[seg].iov_len;
seg              1706 mm/shmem.c     	unsigned long seg;
seg              1714 mm/shmem.c     	for (seg = 0; seg < nr_segs; seg++) {
seg              1718 mm/shmem.c     		desc.arg.buf = iov[seg].iov_base;
seg              1719 mm/shmem.c     		desc.count = iov[seg].iov_len;
seg              1401 net/core/skbuff.c 	int seg;
seg              1415 net/core/skbuff.c 	for (seg = 0; seg < skb_shinfo(skb)->nr_frags; seg++) {
seg              1416 net/core/skbuff.c 		const skb_frag_t *f = &skb_shinfo(skb)->frags[seg];
seg                92 net/sunrpc/xprtrdma/rpc_rdma.c 		seg[n].mr_page = NULL;
seg                93 net/sunrpc/xprtrdma/rpc_rdma.c 		seg[n].mr_offset = xdrbuf->head[0].iov_base;
seg                94 net/sunrpc/xprtrdma/rpc_rdma.c 		seg[n].mr_len = xdrbuf->head[0].iov_len;
seg               101 net/sunrpc/xprtrdma/rpc_rdma.c 		seg[n].mr_page = xdrbuf->pages[0];
seg               102 net/sunrpc/xprtrdma/rpc_rdma.c 		seg[n].mr_offset = (void *)(unsigned long) xdrbuf->page_base;
seg               103 net/sunrpc/xprtrdma/rpc_rdma.c 		seg[n].mr_len = min_t(u32,
seg               105 net/sunrpc/xprtrdma/rpc_rdma.c 		len = xdrbuf->page_len - seg[n].mr_len;
seg               111 net/sunrpc/xprtrdma/rpc_rdma.c 			seg[n].mr_page = xdrbuf->pages[p];
seg               112 net/sunrpc/xprtrdma/rpc_rdma.c 			seg[n].mr_offset = NULL;
seg               113 net/sunrpc/xprtrdma/rpc_rdma.c 			seg[n].mr_len = min_t(u32, PAGE_SIZE, len);
seg               114 net/sunrpc/xprtrdma/rpc_rdma.c 			len -= seg[n].mr_len;
seg               123 net/sunrpc/xprtrdma/rpc_rdma.c 		seg[n].mr_page = NULL;
seg               124 net/sunrpc/xprtrdma/rpc_rdma.c 		seg[n].mr_offset = xdrbuf->tail[0].iov_base;
seg               125 net/sunrpc/xprtrdma/rpc_rdma.c 		seg[n].mr_len = xdrbuf->tail[0].iov_len;
seg               173 net/sunrpc/xprtrdma/rpc_rdma.c 	struct rpcrdma_mr_seg *seg = req->rl_segments;
seg               196 net/sunrpc/xprtrdma/rpc_rdma.c 	nsegs = rpcrdma_convert_iovs(target, pos, type, seg, RPCRDMA_MAX_SEGS);
seg               202 net/sunrpc/xprtrdma/rpc_rdma.c 		int n = rpcrdma_register_external(seg, nsegs,
seg               210 net/sunrpc/xprtrdma/rpc_rdma.c 			cur_rchunk->rc_target.rs_handle = htonl(seg->mr_rkey);
seg               211 net/sunrpc/xprtrdma/rpc_rdma.c 			cur_rchunk->rc_target.rs_length = htonl(seg->mr_len);
seg               214 net/sunrpc/xprtrdma/rpc_rdma.c 					seg->mr_base);
seg               217 net/sunrpc/xprtrdma/rpc_rdma.c 				seg->mr_len, (unsigned long long)seg->mr_base,
seg               218 net/sunrpc/xprtrdma/rpc_rdma.c 				seg->mr_rkey, pos, n < nsegs ? "more" : "last");
seg               222 net/sunrpc/xprtrdma/rpc_rdma.c 			cur_wchunk->wc_target.rs_handle = htonl(seg->mr_rkey);
seg               223 net/sunrpc/xprtrdma/rpc_rdma.c 			cur_wchunk->wc_target.rs_length = htonl(seg->mr_len);
seg               226 net/sunrpc/xprtrdma/rpc_rdma.c 					seg->mr_base);
seg               230 net/sunrpc/xprtrdma/rpc_rdma.c 				seg->mr_len, (unsigned long long)seg->mr_base,
seg               231 net/sunrpc/xprtrdma/rpc_rdma.c 				seg->mr_rkey, n < nsegs ? "more" : "last");
seg               237 net/sunrpc/xprtrdma/rpc_rdma.c 			r_xprt->rx_stats.total_rdma_request += seg->mr_len;
seg               240 net/sunrpc/xprtrdma/rpc_rdma.c 		seg   += n;
seg               566 net/sunrpc/xprtrdma/rpc_rdma.c 		struct rpcrdma_segment *seg = &cur_wchunk->wc_target;
seg               569 net/sunrpc/xprtrdma/rpc_rdma.c 			xdr_decode_hyper((__be32 *)&seg->rs_offset, &off);
seg               572 net/sunrpc/xprtrdma/rpc_rdma.c 				ntohl(seg->rs_length),
seg               574 net/sunrpc/xprtrdma/rpc_rdma.c 				ntohl(seg->rs_handle));
seg               576 net/sunrpc/xprtrdma/rpc_rdma.c 		total_len += ntohl(seg->rs_length);
seg               392 net/sunrpc/xprtrdma/svc_rdma_marshal.c 	struct rpcrdma_segment *seg = &ary->wc_array[chunk_no].wc_target;
seg               393 net/sunrpc/xprtrdma/svc_rdma_marshal.c 	seg->rs_handle = htonl(rs_handle);
seg               394 net/sunrpc/xprtrdma/svc_rdma_marshal.c 	seg->rs_length = htonl(write_len);
seg               395 net/sunrpc/xprtrdma/svc_rdma_marshal.c 	xdr_encode_hyper((u32 *) &seg->rs_offset, rs_offset);
seg              1309 net/sunrpc/xprtrdma/verbs.c 	seg->mr_dir = writing ? DMA_FROM_DEVICE : DMA_TO_DEVICE;
seg              1310 net/sunrpc/xprtrdma/verbs.c 	seg->mr_dmalen = seg->mr_len;
seg              1311 net/sunrpc/xprtrdma/verbs.c 	if (seg->mr_page)
seg              1312 net/sunrpc/xprtrdma/verbs.c 		seg->mr_dma = ib_dma_map_page(ia->ri_id->device,
seg              1313 net/sunrpc/xprtrdma/verbs.c 				seg->mr_page, offset_in_page(seg->mr_offset),
seg              1314 net/sunrpc/xprtrdma/verbs.c 				seg->mr_dmalen, seg->mr_dir);
seg              1316 net/sunrpc/xprtrdma/verbs.c 		seg->mr_dma = ib_dma_map_single(ia->ri_id->device,
seg              1317 net/sunrpc/xprtrdma/verbs.c 				seg->mr_offset,
seg              1318 net/sunrpc/xprtrdma/verbs.c 				seg->mr_dmalen, seg->mr_dir);
seg              1324 net/sunrpc/xprtrdma/verbs.c 	if (seg->mr_page)
seg              1326 net/sunrpc/xprtrdma/verbs.c 				seg->mr_dma, seg->mr_dmalen, seg->mr_dir);
seg              1329 net/sunrpc/xprtrdma/verbs.c 				seg->mr_dma, seg->mr_dmalen, seg->mr_dir);
seg              1339 net/sunrpc/xprtrdma/verbs.c 	struct rpcrdma_mr_seg *seg1 = seg;
seg              1347 net/sunrpc/xprtrdma/verbs.c 		rpcrdma_map_one(ia, seg, writing);
seg              1348 net/sunrpc/xprtrdma/verbs.c 		seg->mr_rkey = ia->ri_bind_mem->rkey;
seg              1349 net/sunrpc/xprtrdma/verbs.c 		seg->mr_base = seg->mr_dma;
seg              1350 net/sunrpc/xprtrdma/verbs.c 		seg->mr_nsegs = 1;
seg              1359 net/sunrpc/xprtrdma/verbs.c 		int len, pageoff = offset_in_page(seg->mr_offset);
seg              1366 net/sunrpc/xprtrdma/verbs.c 			rpcrdma_map_one(ia, seg, writing);
seg              1367 net/sunrpc/xprtrdma/verbs.c 			physaddrs[i] = seg->mr_dma;
seg              1368 net/sunrpc/xprtrdma/verbs.c 			len += seg->mr_len;
seg              1369 net/sunrpc/xprtrdma/verbs.c 			++seg;
seg              1372 net/sunrpc/xprtrdma/verbs.c 			if ((i < nsegs && offset_in_page(seg->mr_offset)) ||
seg              1373 net/sunrpc/xprtrdma/verbs.c 			    offset_in_page((seg-1)->mr_offset+(seg-1)->mr_len))
seg              1385 net/sunrpc/xprtrdma/verbs.c 				rpcrdma_unmap_one(ia, --seg);
seg              1400 net/sunrpc/xprtrdma/verbs.c 		rpcrdma_map_one(ia, seg, writing);
seg              1403 net/sunrpc/xprtrdma/verbs.c 		param.addr = seg->mr_dma;
seg              1404 net/sunrpc/xprtrdma/verbs.c 		param.length = seg->mr_len;
seg              1410 net/sunrpc/xprtrdma/verbs.c 					seg->mr_chunk.rl_mw->r.mw, &param);
seg              1414 net/sunrpc/xprtrdma/verbs.c 				__func__, seg->mr_len,
seg              1415 net/sunrpc/xprtrdma/verbs.c 				(unsigned long long)seg->mr_dma, rc);
seg              1416 net/sunrpc/xprtrdma/verbs.c 			rpcrdma_unmap_one(ia, seg);
seg              1418 net/sunrpc/xprtrdma/verbs.c 			seg->mr_rkey = seg->mr_chunk.rl_mw->r.mw->rkey;
seg              1419 net/sunrpc/xprtrdma/verbs.c 			seg->mr_base = param.addr;
seg              1420 net/sunrpc/xprtrdma/verbs.c 			seg->mr_nsegs = 1;
seg              1434 net/sunrpc/xprtrdma/verbs.c 			rpcrdma_map_one(ia, seg, writing);
seg              1435 net/sunrpc/xprtrdma/verbs.c 			ipb[i].addr = seg->mr_dma;
seg              1436 net/sunrpc/xprtrdma/verbs.c 			ipb[i].size = seg->mr_len;
seg              1437 net/sunrpc/xprtrdma/verbs.c 			len += seg->mr_len;
seg              1438 net/sunrpc/xprtrdma/verbs.c 			++seg;
seg              1441 net/sunrpc/xprtrdma/verbs.c 			if ((i < nsegs && offset_in_page(seg->mr_offset)) ||
seg              1442 net/sunrpc/xprtrdma/verbs.c 			    offset_in_page((seg-1)->mr_offset+(seg-1)->mr_len))
seg              1456 net/sunrpc/xprtrdma/verbs.c 				rpcrdma_unmap_one(ia, --seg);
seg              1476 net/sunrpc/xprtrdma/verbs.c 	struct rpcrdma_mr_seg *seg1 = seg;
seg              1477 net/sunrpc/xprtrdma/verbs.c 	int nsegs = seg->mr_nsegs, rc;
seg              1484 net/sunrpc/xprtrdma/verbs.c 		rpcrdma_unmap_one(ia, seg);
seg              1492 net/sunrpc/xprtrdma/verbs.c 		list_add(&seg->mr_chunk.rl_mw->r.fmr->list, &l);
seg              1495 net/sunrpc/xprtrdma/verbs.c 			rpcrdma_unmap_one(ia, seg++);
seg              1521 net/sunrpc/xprtrdma/verbs.c 				seg->mr_chunk.rl_mw->r.mw, &param);
seg              1522 net/sunrpc/xprtrdma/verbs.c 		rpcrdma_unmap_one(ia, seg);
seg              1535 net/sunrpc/xprtrdma/verbs.c 			rpcrdma_unmap_one(ia, seg++);
seg                86 sound/core/oss/mulaw.c 	int seg;
seg               101 sound/core/oss/mulaw.c 	seg = val_seg(pcm_val);
seg               107 sound/core/oss/mulaw.c 	uval = (seg << 4) | ((pcm_val >> (seg + 3)) & 0xF);
seg              1953 sound/pci/cs46xx/dsp_spos.c 		struct dsp_segment_desc *seg;
seg              1956 sound/pci/cs46xx/dsp_spos.c 		seg = get_segment_desc(module, SEGTYPE_SP_PARAMETER);
seg              1957 sound/pci/cs46xx/dsp_spos.c 		err = dsp_load_parameter(chip, seg);
seg              1961 sound/pci/cs46xx/dsp_spos.c 		seg = get_segment_desc(module, SEGTYPE_SP_SAMPLE);
seg              1962 sound/pci/cs46xx/dsp_spos.c 		err = dsp_load_sample(chip, seg);
seg              1966 sound/pci/cs46xx/dsp_spos.c 		seg = get_segment_desc(module, SEGTYPE_SP_PROGRAM);
seg              1967 sound/pci/cs46xx/dsp_spos.c 		if (!seg)
seg              1970 sound/pci/cs46xx/dsp_spos.c 		doffset = seg->offset * 4 + module->load_address * 4
seg              1972 sound/pci/cs46xx/dsp_spos.c 		dsize   = seg->size * 4;
seg              1160 sound/pci/emu10k1/emufx.c 	mm_segment_t seg;
seg              1710 sound/pci/emu10k1/emufx.c 	seg = snd_enter_user();
seg              1716 sound/pci/emu10k1/emufx.c 	snd_leave_user(seg);
seg              1788 sound/pci/emu10k1/emufx.c 	mm_segment_t seg;
seg              2329 sound/pci/emu10k1/emufx.c 	seg = snd_enter_user();
seg              2335 sound/pci/emu10k1/emufx.c 	snd_leave_user(seg);
seg               851 virt/kvm/kvm_main.c 	int seg;
seg               855 virt/kvm/kvm_main.c 	while ((seg = next_segment(len, offset)) != 0) {
seg               856 virt/kvm/kvm_main.c 		ret = kvm_read_guest_page(kvm, gfn, data, offset, seg);
seg               860 virt/kvm/kvm_main.c 		len -= seg;
seg               861 virt/kvm/kvm_main.c 		data += seg;
seg               909 virt/kvm/kvm_main.c 	int seg;
seg               913 virt/kvm/kvm_main.c 	while ((seg = next_segment(len, offset)) != 0) {
seg               914 virt/kvm/kvm_main.c 		ret = kvm_write_guest_page(kvm, gfn, data, offset, seg);
seg               918 virt/kvm/kvm_main.c 		len -= seg;
seg               919 virt/kvm/kvm_main.c 		data += seg;
seg               934 virt/kvm/kvm_main.c 	int seg;
seg               938 virt/kvm/kvm_main.c         while ((seg = next_segment(len, offset)) != 0) {
seg               939 virt/kvm/kvm_main.c 		ret = kvm_clear_guest_page(kvm, gfn, offset, seg);
seg               943 virt/kvm/kvm_main.c 		len -= seg;