sp                209 arch/alpha/kernel/process.c start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
sp                213 arch/alpha/kernel/process.c 	wrusp(sp);
sp                369 arch/alpha/kernel/process.c 	unsigned long fp, sp = task_thread_info(t)->pcb.ksp;
sp                371 arch/alpha/kernel/process.c 	if (sp > base && sp+6*8 < base + 16*1024) {
sp                372 arch/alpha/kernel/process.c 		fp = ((unsigned long*)sp)[6];
sp                373 arch/alpha/kernel/process.c 		if (fp > sp && fp < base + 16*1024)
sp                265 arch/alpha/kernel/signal.c get_sigframe(struct ksignal *ksig, unsigned long sp, size_t frame_size)
sp                267 arch/alpha/kernel/signal.c 	return (void __user *)((sigsp(sp, ksig) - frame_size) & -32ul);
sp                272 arch/alpha/kernel/signal.c 		 unsigned long mask, unsigned long sp)
sp                312 arch/alpha/kernel/signal.c 	err |= __put_user(sp, sc->sc_regs+30);
sp                124 arch/alpha/kernel/traps.c dik_show_trace(unsigned long *sp)
sp                128 arch/alpha/kernel/traps.c 	while (0x1ff8 & (unsigned long) sp) {
sp                130 arch/alpha/kernel/traps.c 		unsigned long tmp = *sp;
sp                131 arch/alpha/kernel/traps.c 		sp++;
sp                147 arch/alpha/kernel/traps.c void show_stack(struct task_struct *task, unsigned long *sp)
sp                156 arch/alpha/kernel/traps.c 	if(sp==NULL)
sp                157 arch/alpha/kernel/traps.c 		sp=(unsigned long*)&sp;
sp                159 arch/alpha/kernel/traps.c 	stack = sp;
sp                173 arch/alpha/kernel/traps.c 	dik_show_trace(sp);
sp                 49 arch/alpha/lib/stacktrace.c display_stored_regs(instr * pro_pc, unsigned char * sp)
sp                 55 arch/alpha/lib/stacktrace.c 	printk("Prologue [<%p>], Frame %p:\n", pro_pc, sp);
sp                 59 arch/alpha/lib/stacktrace.c 			value = *(unsigned long *)(sp + (*pro_pc & MEM_OFF));
sp                 95 arch/alpha/lib/stacktrace.c 	register unsigned char * sp __asm__ ("$30");
sp                 99 arch/alpha/lib/stacktrace.c 		ret_pc = display_stored_regs(prologue, sp);
sp                100 arch/alpha/lib/stacktrace.c 		sp += stack_increment(prologue);
sp                 94 arch/alpha/mm/init.c 	register unsigned long sp __asm__("$30");
sp                 95 arch/alpha/mm/init.c 	pcb->ksp = sp;
sp                211 arch/arc/include/asm/arcregs.h 	unsigned int pad2:15, dp:1, pad1:7, sp:1, ver:8;
sp                213 arch/arc/include/asm/arcregs.h 	unsigned int ver:8, sp:1, pad1:7, dp:1, pad2:15;
sp                 58 arch/arc/include/asm/entry-arcv2.h 	; (B) Manually saved some regs: r12,r25,r30, sp,fp,gp, ACCL pair
sp                 62 arch/arc/include/asm/entry-arcv2.h 	sub	sp, sp, SZ_PT_REGS - 8
sp                 67 arch/arc/include/asm/entry-arcv2.h 	sub	sp, sp, PT_r0
sp                 82 arch/arc/include/asm/entry-arcv2.h 	sub	sp, sp, SZ_PT_REGS	; carve pt_regs
sp                 89 arch/arc/include/asm/entry-arcv2.h 	st	r0, [sp]	; orig_r0
sp                117 arch/arc/include/asm/entry-arcv2.h 	st	blink, [sp, PT_blink]
sp                123 arch/arc/include/asm/entry-arcv2.h 	st	lp_count, [sp, PT_lpc]
sp                139 arch/arc/include/asm/entry-arcv2.h 	st	r12, [sp, PT_sp + 4]
sp                140 arch/arc/include/asm/entry-arcv2.h 	st	r30, [sp, PT_sp + 8]
sp                142 arch/arc/include/asm/entry-arcv2.h 	; Saving pt_regs->sp correctly requires some extra work due to the way
sp                154 arch/arc/include/asm/entry-arcv2.h 	mov.nz	r10, sp
sp                157 arch/arc/include/asm/entry-arcv2.h 	st	r10, [sp, PT_sp]	; SP (pt_regs->sp)
sp                160 arch/arc/include/asm/entry-arcv2.h 	st	r25, [sp, PT_user_r25]
sp                175 arch/arc/include/asm/entry-arcv2.h 	ld	r12, [sp, PT_sp + 4]
sp                176 arch/arc/include/asm/entry-arcv2.h 	ld	r30, [sp, PT_sp + 8]
sp                184 arch/arc/include/asm/entry-arcv2.h 	ld	r10, [sp, PT_sp]	; SP (pt_regs->sp)
sp                189 arch/arc/include/asm/entry-arcv2.h 	ld	r25, [sp, PT_user_r25]
sp                200 arch/arc/include/asm/entry-arcv2.h 	ld	blink, [sp, PT_blink]
sp                206 arch/arc/include/asm/entry-arcv2.h 	ld	r10, [sp, PT_lpc]	; lp_count can't be target of LD
sp                230 arch/arc/include/asm/entry-arcv2.h 	add	sp, sp, SZ_PT_REGS - 8
sp                232 arch/arc/include/asm/entry-arcv2.h 	add	sp, sp, PT_r0
sp                244 arch/arc/include/asm/entry-arcv2.h 	ld	r10, [sp, PT_event + 4]
sp                254 arch/arc/include/asm/entry-arcv2.h 	add	sp, sp, SZ_PT_REGS
sp                266 arch/arc/include/asm/entry-arcv2.h 	bmskn \reg, sp, THREAD_SHIFT - 1
sp                 70 arch/arc/include/asm/entry-compact.h 	brlo sp, VMALLOC_START, 88f
sp                 89 arch/arc/include/asm/entry-compact.h 	st	sp, [sp, PT_sp - SZ_PT_REGS]
sp                 99 arch/arc/include/asm/entry-compact.h 	st	sp, [r9, PT_sp - SZ_PT_REGS]
sp                102 arch/arc/include/asm/entry-compact.h 	mov	sp, r9
sp                171 arch/arc/include/asm/entry-compact.h 	sub     sp, sp, 4
sp                174 arch/arc/include/asm/entry-compact.h 	st.a	r0, [sp, -8]    /* orig_r0 needed for syscall (skip ECR slot) */
sp                175 arch/arc/include/asm/entry-compact.h 	sub	sp, sp, 4	/* skip pt_regs->sp, already saved above */
sp                199 arch/arc/include/asm/entry-compact.h 	st      r10, [sp, PT_event]    /* EV_Trap expects r10 to have ECR */
sp                235 arch/arc/include/asm/entry-compact.h 	ld	r25, [sp, 12]
sp                237 arch/arc/include/asm/entry-compact.h 	ld  sp, [sp] /* restore original sp */
sp                260 arch/arc/include/asm/entry-compact.h 	sub     sp, sp, 4
sp                264 arch/arc/include/asm/entry-compact.h 	sub	sp, sp, 8	    /* skip orig_r0 (not needed)
sp                319 arch/arc/include/asm/entry-compact.h 	ld	r25, [sp, 12]
sp                321 arch/arc/include/asm/entry-compact.h 	ld  sp, [sp] /* restore original sp */
sp                327 arch/arc/include/asm/entry-compact.h 	bic \reg, sp, (THREAD_SIZE - 1)
sp                 34 arch/arc/include/asm/entry.h 	st.a	\reg, [sp, -4]
sp                 43 arch/arc/include/asm/entry.h 	ld.ab	\reg, [sp, 4]
sp                134 arch/arc/include/asm/entry.h 	mov	r12, sp		; save SP as ref to pt_regs
sp                159 arch/arc/include/asm/entry.h 	sub     sp, sp, 4
sp                171 arch/arc/include/asm/entry.h 	add     sp, sp, 4  /* skip usual r25 placeholder */
sp                195 arch/arc/include/asm/entry.h 	st	r12, [sp, PT_user_r25]
sp                203 arch/arc/include/asm/entry.h 	add     sp, sp, SZ_CALLEE_REGS
sp                 15 arch/arc/include/asm/linkage.h 	std	\e, [sp, \off]
sp                 17 arch/arc/include/asm/linkage.h 	st	\e, [sp, \off]
sp                 18 arch/arc/include/asm/linkage.h 	st	\o, [sp, \off+4]
sp                 24 arch/arc/include/asm/linkage.h 	ldd	\e, [sp, \off]
sp                 26 arch/arc/include/asm/linkage.h 	ld	\e, [sp, \off]
sp                 27 arch/arc/include/asm/linkage.h 	ld	\o, [sp, \off+4]
sp                 79 arch/arc/include/asm/processor.h #define KSTK_ESP(tsk)   (task_pt_regs(tsk)->sp)
sp                 37 arch/arc/include/asm/ptrace.h 	unsigned long sp;	/* User/Kernel depending on where we came from */
sp                 87 arch/arc/include/asm/ptrace.h 	unsigned long sp;	/* user/kernel sp depending on where we came from  */
sp                122 arch/arc/include/asm/ptrace.h ({  unsigned int sp;		\
sp                124 arch/arc/include/asm/ptrace.h 		sp = (regs)->sp;\
sp                126 arch/arc/include/asm/ptrace.h 		sp = -1;	\
sp                127 arch/arc/include/asm/ptrace.h 	sp;			\
sp                144 arch/arc/include/asm/ptrace.h 	register unsigned long sp asm ("sp");			\
sp                145 arch/arc/include/asm/ptrace.h 	unsigned long pg_start = (sp & ~(THREAD_SIZE - 1));	\
sp                 64 arch/arc/include/asm/thread_info.h 	register unsigned long sp asm("sp");
sp                 65 arch/arc/include/asm/thread_info.h 	return (struct thread_info *)(sp & ~(THREAD_SIZE - 1));
sp                 41 arch/arc/include/uapi/asm/ptrace.h 		unsigned long sp;
sp                 49 arch/arc/kernel/asm-offsets.c 	DEFINE(PT_sp, offsetof(struct pt_regs, sp));
sp                452 arch/arc/kernel/disasm.c 		return regs->sp;
sp                482 arch/arc/kernel/disasm.c 		regs->sp = val;
sp                 26 arch/arc/kernel/kgdb.c 	gdb_regs[__SP]		= kernel_regs->sp;
sp                 46 arch/arc/kernel/kgdb.c 	kernel_regs->sp		= gdb_regs[__SP];
sp                222 arch/arc/kernel/process.c 		c_regs->sp = usp;
sp                269 arch/arc/kernel/process.c 	regs->sp = usp;
sp                 70 arch/arc/kernel/ptrace.c 	REG_O_ONE(scratch.sp, &ptregs->sp);
sp                160 arch/arc/kernel/ptrace.c 	REG_IN_ONE(scratch.sp, &ptregs->sp);
sp                196 arch/arc/kernel/setup.c 		struct bcr_fp_arcompact sp, dp;
sp                199 arch/arc/kernel/setup.c 		READ_BCR(ARC_REG_FP_BCR, sp);
sp                201 arch/arc/kernel/setup.c 		cpu->extn.fpu_sp = sp.ver ? 1 : 0;
sp                216 arch/arc/kernel/setup.c 		cpu->extn.fpu_sp = spdp.sp ? 1 : 0;
sp                 93 arch/arc/kernel/signal.c 	uregs.scratch.sp	= regs->sp;
sp                138 arch/arc/kernel/signal.c 	regs->sp	= uregs.scratch.sp;
sp                164 arch/arc/kernel/signal.c 	if (regs->sp & 3)
sp                167 arch/arc/kernel/signal.c 	sf = (struct rt_sigframe __force __user *)(regs->sp);
sp                208 arch/arc/kernel/signal.c 	unsigned long sp = sigsp(regs->sp, ksig);
sp                216 arch/arc/kernel/signal.c 	frame = (void __user *)((sp - framesize) & ~7);
sp                255 arch/arc/kernel/signal.c 		err |= __save_altstack(&sf->uc.uc_stack, regs->sp);
sp                288 arch/arc/kernel/signal.c 	regs->sp = (unsigned long)sf;
sp                 50 arch/arc/kernel/stacktrace.c 		unsigned long fp, sp, blink, ret;
sp                 58 arch/arc/kernel/stacktrace.c 			: "=r"(fp), "=r"(sp), "=r"(blink), "=r"(ret)
sp                 62 arch/arc/kernel/stacktrace.c 		frame_info->regs.r28 = sp;
sp                101 arch/arc/kernel/stacktrace.c 		frame_info->regs.r28 = regs->sp;
sp                228 arch/arc/kernel/stacktrace.c void show_stack(struct task_struct *tsk, unsigned long *sp)
sp                218 arch/arc/kernel/troubleshoot.c 		regs->bta, regs->sp, regs->fp);
sp                121 arch/arm/common/bL_switcher.c extern void call_with_stack(void (*fn)(void *), void *arg, void *sp);
sp                113 arch/arm/include/asm/assembler.h 	stmdb   sp!, {r0-r3, ip, lr}
sp                117 arch/arm/include/asm/assembler.h 	ldmia	sp!, {r0-r3, ip, lr}
sp                129 arch/arm/include/asm/assembler.h 	stmdb   sp!, {r0-r3, ip, lr}
sp                133 arch/arm/include/asm/assembler.h 	ldmia	sp!, {r0-r3, ip, lr}
sp                206 arch/arm/include/asm/assembler.h  ARM(	mov	\rd, sp, lsr #THREAD_SIZE_ORDER + PAGE_SHIFT	)
sp                207 arch/arm/include/asm/assembler.h  THUMB(	mov	\rd, sp			)
sp                 51 arch/arm/include/asm/processor.h #define start_thread(regs,pc,sp)					\
sp                 77 arch/arm/include/asm/processor.h 	regs->ARM_sp = sp;		/* sp */			\
sp                 13 arch/arm/include/asm/stacktrace.h 	unsigned long sp;
sp                 22 arch/arm/include/asm/stacktrace.h 		frame->sp = regs->ARM_sp;
sp                 37 arch/arm/include/asm/thread_info.h 	__u32	sp;
sp                 97 arch/arm/include/asm/thread_info.h 	((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
sp                 91 arch/arm/include/asm/uaccess-asm.h  DACR(	str	\tmp0, [sp, #SVC_DACR])
sp                 92 arch/arm/include/asm/uaccess-asm.h 	str	\tmp1, [sp, #SVC_ADDR_LIMIT]
sp                109 arch/arm/include/asm/uaccess-asm.h 	ldr	\tmp1, [sp, #SVC_ADDR_LIMIT]
sp                110 arch/arm/include/asm/uaccess-asm.h  DACR(	ldr	\tmp0, [sp, #SVC_DACR])
sp                 99 arch/arm/kernel/kgdb.c 	gdb_regs[_SPT]		= ti->cpu_context.sp;
sp                 25 arch/arm/kernel/perf_callchain.c 	unsigned long sp;
sp                257 arch/arm/kernel/process.c 	thread->cpu_context.sp = (unsigned long)childregs;
sp                307 arch/arm/kernel/process.c 	frame.sp = thread_saved_sp(p);
sp                312 arch/arm/kernel/process.c 		if (frame.sp < stack_page ||
sp                313 arch/arm/kernel/process.c 		    frame.sp >= stack_page + THREAD_SIZE ||
sp                 83 arch/arm/kernel/ptrace.c 	REG_OFFSET_NAME(sp),
sp                  5 arch/arm/kernel/reboot.h extern void call_with_stack(void (*fn)(void *), void *arg, void *sp);
sp                 44 arch/arm/kernel/return_address.c 	frame.sp = current_stack_pointer;
sp                344 arch/arm/kernel/signal.c 	unsigned long sp = sigsp(regs->ARM_sp, ksig);
sp                350 arch/arm/kernel/signal.c 	frame = (void __user *)((sp - framesize) & ~7);
sp                 34 arch/arm/kernel/stacktrace.c 	low = frame->sp;
sp                 43 arch/arm/kernel/stacktrace.c 	frame->sp = *(unsigned long *)(fp - 8);
sp                 94 arch/arm/kernel/stacktrace.c 	regs = (struct pt_regs *)frame->sp;
sp                122 arch/arm/kernel/stacktrace.c 		frame.sp = thread_saved_sp(tsk);
sp                130 arch/arm/kernel/stacktrace.c 		frame.sp = current_stack_pointer;
sp                148 arch/arm/kernel/stacktrace.c 	frame.sp = regs->ARM_sp;
sp                 59 arch/arm/kernel/suspend.c void __cpu_suspend_save(u32 *ptr, u32 ptrsz, u32 sp, u32 *save_ptr)
sp                 67 arch/arm/kernel/suspend.c 	*ptr++ = sp;
sp                103 arch/arm/kernel/traps.c static int verify_stack(unsigned long sp)
sp                105 arch/arm/kernel/traps.c 	if (sp < PAGE_OFFSET ||
sp                106 arch/arm/kernel/traps.c 	    (sp > (unsigned long)high_memory && high_memory != NULL))
sp                243 arch/arm/kernel/traps.c void show_stack(struct task_struct *tsk, unsigned long *sp)
sp                382 arch/arm/kernel/unwind.c 	low = frame->sp;
sp                386 arch/arm/kernel/unwind.c 		 frame->pc, frame->lr, frame->sp);
sp                398 arch/arm/kernel/unwind.c 	ctrl.vrs[SP] = frame->sp;
sp                451 arch/arm/kernel/unwind.c 	frame->sp = ctrl.vrs[SP];
sp                474 arch/arm/kernel/unwind.c 		frame.sp = current_stack_pointer;
sp                480 arch/arm/kernel/unwind.c 		frame.sp = thread_saved_sp(tsk);
sp                496 arch/arm/kernel/unwind.c 		dump_backtrace_entry(where, frame.pc, frame.sp - 4);
sp                 82 arch/arm/oprofile/common.c 	unsigned long sp;
sp               1287 arch/arm/probes/kprobes/test-core.c static size_t expected_memory_size(u32 *sp)
sp               1290 arch/arm/probes/kprobes/test-core.c 	int offset = (uintptr_t)sp - (uintptr_t)current_stack;
sp                648 arch/arm64/include/asm/assembler.h 	\op\()r		\reg1, [sp, #(\num + 1) * 8]
sp                650 arch/arm64/include/asm/assembler.h 	\op\()p		\reg1, \reg2, [sp, #(\num + 1) * 8]
sp                670 arch/arm64/include/asm/assembler.h 	stp		x29, x30, [sp, #-.Lframe_local_offset - .Lframe_extra]!
sp                671 arch/arm64/include/asm/assembler.h 	mov		x29, sp
sp                684 arch/arm64/include/asm/assembler.h 	ldp		x29, x30, [sp], #.Lframe_local_offset + .Lframe_extra
sp                 12 arch/arm64/include/asm/exec.h extern unsigned long arch_align_stack(unsigned long sp);
sp                222 arch/arm64/include/asm/perf_event.h 	(regs)->sp = current_stack_pointer; \
sp                121 arch/arm64/include/asm/processor.h 	unsigned long sp;
sp                206 arch/arm64/include/asm/processor.h 				unsigned long sp)
sp                214 arch/arm64/include/asm/processor.h 	regs->sp = sp;
sp                219 arch/arm64/include/asm/processor.h 				       unsigned long sp)
sp                233 arch/arm64/include/asm/processor.h 	regs->compat_sp = sp;
sp                165 arch/arm64/include/asm/ptrace.h 			u64 sp;
sp                231 arch/arm64/include/asm/ptrace.h 	return regs->sp;
sp                258 arch/arm64/include/asm/ptrace.h 	case offsetof(struct pt_regs, sp) >> 3:
sp                259 arch/arm64/include/asm/ptrace.h 		val = regs->sp;
sp                297 arch/arm64/include/asm/ptrace.h 	return regs->sp;
sp                 45 arch/arm64/include/asm/sdei.h bool _on_sdei_stack(unsigned long sp, struct stack_info *info);
sp                 46 arch/arm64/include/asm/sdei.h static inline bool on_sdei_stack(unsigned long sp,
sp                 54 arch/arm64/include/asm/sdei.h 		return _on_sdei_stack(sp, info);
sp                 71 arch/arm64/include/asm/stacktrace.h static inline bool on_irq_stack(unsigned long sp,
sp                 80 arch/arm64/include/asm/stacktrace.h 	if (sp < low || sp >= high)
sp                 93 arch/arm64/include/asm/stacktrace.h 				 unsigned long sp,
sp                 99 arch/arm64/include/asm/stacktrace.h 	if (sp < low || sp >= high)
sp                114 arch/arm64/include/asm/stacktrace.h static inline bool on_overflow_stack(unsigned long sp,
sp                120 arch/arm64/include/asm/stacktrace.h 	if (sp < low || sp >= high)
sp                132 arch/arm64/include/asm/stacktrace.h static inline bool on_overflow_stack(unsigned long sp,
sp                142 arch/arm64/include/asm/stacktrace.h 				       unsigned long sp,
sp                148 arch/arm64/include/asm/stacktrace.h 	if (on_task_stack(tsk, sp, info))
sp                152 arch/arm64/include/asm/stacktrace.h 	if (on_irq_stack(sp, info))
sp                154 arch/arm64/include/asm/stacktrace.h 	if (on_overflow_stack(sp, info))
sp                156 arch/arm64/include/asm/stacktrace.h 	if (on_sdei_stack(sp, info))
sp                 18 arch/arm64/include/asm/suspend.h 	u64 sp;
sp                 49 arch/arm64/include/asm/thread_info.h 	((unsigned long)(tsk->thread.cpu_context.sp))
sp                 77 arch/arm64/include/uapi/asm/ptrace.h 	__u64		sp;
sp                 32 arch/arm64/include/uapi/asm/sigcontext.h 	__u64 sp;
sp                 60 arch/arm64/kernel/asm-offsets.c   DEFINE(S_SP,			offsetof(struct pt_regs, sp));
sp                107 arch/arm64/kernel/asm-offsets.c   DEFINE(CPU_CTX_SP,		offsetof(struct cpu_suspend_ctx, sp));
sp                 54 arch/arm64/kernel/kgdb.c 	{ "sp", 8, offsetof(struct pt_regs, sp)},
sp                147 arch/arm64/kernel/kgdb.c 	gdb_regs[31] = cpu_context->sp;
sp                 66 arch/arm64/kernel/perf_callchain.c 	u32		sp;
sp                 30 arch/arm64/kernel/perf_regs.c 		return regs->sp;
sp                144 arch/arm64/kernel/probes/uprobes.c 		return regs->sp <= ret->stack;
sp                146 arch/arm64/kernel/probes/uprobes.c 		return regs->sp < ret->stack;
sp                248 arch/arm64/kernel/process.c 	u64 lr, sp;
sp                252 arch/arm64/kernel/process.c 		sp = regs->compat_sp;
sp                256 arch/arm64/kernel/process.c 		sp = regs->sp;
sp                271 arch/arm64/kernel/process.c 	printk("sp : %016llx\n", sp);
sp                393 arch/arm64/kernel/process.c 				childregs->sp = stack_start;
sp                419 arch/arm64/kernel/process.c 	p->thread.cpu_context.sp = (unsigned long)childregs;
sp                560 arch/arm64/kernel/process.c unsigned long arch_align_stack(unsigned long sp)
sp                563 arch/arm64/kernel/process.c 		sp -= get_random_int() & ~PAGE_MASK;
sp                564 arch/arm64/kernel/process.c 	return sp & ~0xf;
sp                 90 arch/arm64/kernel/ptrace.c 	REG_OFFSET_NAME(sp),
sp                 92 arch/arm64/kernel/sdei.c static bool on_sdei_normal_stack(unsigned long sp, struct stack_info *info)
sp                100 arch/arm64/kernel/sdei.c 	if (sp < low || sp >= high)
sp                112 arch/arm64/kernel/sdei.c static bool on_sdei_critical_stack(unsigned long sp, struct stack_info *info)
sp                120 arch/arm64/kernel/sdei.c 	if (sp < low || sp >= high)
sp                132 arch/arm64/kernel/sdei.c bool _on_sdei_stack(unsigned long sp, struct stack_info *info)
sp                137 arch/arm64/kernel/sdei.c 	if (on_sdei_critical_stack(sp, info))
sp                140 arch/arm64/kernel/sdei.c 	if (on_sdei_normal_stack(sp, info))
sp                496 arch/arm64/kernel/signal.c 	__get_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err);
sp                538 arch/arm64/kernel/signal.c 	if (regs->sp & 15)
sp                541 arch/arm64/kernel/signal.c 	frame = (struct rt_sigframe __user *)regs->sp;
sp                555 arch/arm64/kernel/signal.c 	arm64_notify_segfault(regs->sp);
sp                618 arch/arm64/kernel/signal.c 	__put_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err);
sp                698 arch/arm64/kernel/signal.c 	unsigned long sp, sp_top;
sp                706 arch/arm64/kernel/signal.c 	sp = sp_top = sigsp(regs->sp, ksig);
sp                708 arch/arm64/kernel/signal.c 	sp = round_down(sp - sizeof(struct frame_record), 16);
sp                709 arch/arm64/kernel/signal.c 	user->next_frame = (struct frame_record __user *)sp;
sp                711 arch/arm64/kernel/signal.c 	sp = round_down(sp, 16) - sigframe_size(user);
sp                712 arch/arm64/kernel/signal.c 	user->sigframe = (struct rt_sigframe __user *)sp;
sp                717 arch/arm64/kernel/signal.c 	if (!access_ok(user->sigframe, sp_top - sp))
sp                729 arch/arm64/kernel/signal.c 	regs->sp = (unsigned long)user->sigframe;
sp                758 arch/arm64/kernel/signal.c 	err |= __save_altstack(&frame->uc.uc_stack, regs->sp);
sp                301 arch/arm64/kernel/signal32.c 	compat_ulong_t sp = sigsp(regs->compat_sp, ksig);
sp                307 arch/arm64/kernel/signal32.c 	frame = compat_ptr((compat_uptr_t)((sp - framesize) & ~7));
sp                138 arch/arm64/kernel/traps.c void show_stack(struct task_struct *tsk, unsigned long *sp)
sp                 69 arch/arm64/kvm/guest.c 	case KVM_REG_ARM_CORE_REG(regs.sp):
sp                 34 arch/arm64/kvm/hyp/sysreg-sr.c 	ctxt->gp_regs.regs.sp		= read_sysreg(sp_el0);
sp                107 arch/arm64/kvm/hyp/sysreg-sr.c 	write_sysreg(ctxt->gp_regs.regs.sp,	  sp_el0);
sp                 99 arch/c6x/include/asm/processor.h #define KSTK_ESP(task)	(task_pt_regs(task)->sp)
sp                 24 arch/c6x/include/asm/ptrace.h #define user_stack_pointer(regs) ((regs)->sp)
sp                160 arch/c6x/include/uapi/asm/ptrace.h 	REG_PAIR(sp, dp);
sp                 82 arch/c6x/kernel/asm-offsets.c 	OFFSET(REGS_SP,		pt_regs, sp);
sp                 99 arch/c6x/kernel/process.c 	regs->sp  = usp;
sp                118 arch/c6x/kernel/process.c 		childregs->sp = (unsigned long)(childregs + 1);
sp                126 arch/c6x/kernel/process.c 			childregs->sp = usp;
sp                131 arch/c6x/kernel/process.c 	p->thread.usp = childregs->sp;
sp                 42 arch/c6x/kernel/signal.c 	COPY(sp); COPY(a4); COPY(b4); COPY(a6); COPY(b6); COPY(a8); COPY(b8);
sp                 75 arch/c6x/kernel/signal.c 	if (regs->sp & 7)
sp                 78 arch/c6x/kernel/signal.c 	frame = (struct rt_sigframe __user *) ((unsigned long) regs->sp + 8);
sp                107 arch/c6x/kernel/signal.c 	COPY(sp); COPY(a4); COPY(b4); COPY(a6); COPY(b6); COPY(a8); COPY(b8);
sp                131 arch/c6x/kernel/signal.c 	unsigned long sp = sigsp(regs->sp, ksig);
sp                137 arch/c6x/kernel/signal.c 	return (void __user *)((sp - framesize) & ~7);
sp                190 arch/c6x/kernel/signal.c 	regs->sp = (unsigned long) frame - 8;
sp                 32 arch/c6x/kernel/traps.c 	pr_err("PC: %08lx SP: %08lx\n", regs->pc, regs->sp);
sp                 49 arch/c6x/kernel/traps.c 	pr_err("A15: %08lx  B15: %08lx\n", regs->a15, regs->sp);
sp                 22 arch/csky/abiv1/inc/abi/entry.h 	mtcr	sp, usp
sp                 23 arch/csky/abiv1/inc/abi/entry.h 	mfcr	sp, ss0
sp                 27 arch/csky/abiv1/inc/abi/entry.h 	mtcr	sp, ss0
sp                 28 arch/csky/abiv1/inc/abi/entry.h 	mfcr	sp, usp
sp                 38 arch/csky/abiv1/inc/abi/entry.h 	subi    sp, 32
sp                 39 arch/csky/abiv1/inc/abi/entry.h 	subi    sp, 32
sp                 40 arch/csky/abiv1/inc/abi/entry.h 	subi    sp, 16
sp                 41 arch/csky/abiv1/inc/abi/entry.h 	stw     r13, (sp, 12)
sp                 43 arch/csky/abiv1/inc/abi/entry.h 	stw     lr, (sp, 4)
sp                 48 arch/csky/abiv1/inc/abi/entry.h 	stw     lr, (sp, 8)
sp                 50 arch/csky/abiv1/inc/abi/entry.h 	mov	lr, sp
sp                 57 arch/csky/abiv1/inc/abi/entry.h 	stw     lr, (sp, 16)
sp                 59 arch/csky/abiv1/inc/abi/entry.h 	stw     a0, (sp, 20)
sp                 60 arch/csky/abiv1/inc/abi/entry.h 	stw     a0, (sp, 24)
sp                 61 arch/csky/abiv1/inc/abi/entry.h 	stw     a1, (sp, 28)
sp                 62 arch/csky/abiv1/inc/abi/entry.h 	stw     a2, (sp, 32)
sp                 63 arch/csky/abiv1/inc/abi/entry.h 	stw     a3, (sp, 36)
sp                 65 arch/csky/abiv1/inc/abi/entry.h 	addi	sp, 32
sp                 66 arch/csky/abiv1/inc/abi/entry.h 	addi	sp, 8
sp                 68 arch/csky/abiv1/inc/abi/entry.h 	stw	r6, (sp)
sp                 69 arch/csky/abiv1/inc/abi/entry.h 	stw	r7, (sp, 4)
sp                 70 arch/csky/abiv1/inc/abi/entry.h 	stw	r8, (sp, 8)
sp                 71 arch/csky/abiv1/inc/abi/entry.h 	stw	r9, (sp, 12)
sp                 72 arch/csky/abiv1/inc/abi/entry.h 	stw	r10, (sp, 16)
sp                 73 arch/csky/abiv1/inc/abi/entry.h 	stw	r11, (sp, 20)
sp                 74 arch/csky/abiv1/inc/abi/entry.h 	stw	r12, (sp, 24)
sp                 75 arch/csky/abiv1/inc/abi/entry.h 	stw	r13, (sp, 28)
sp                 76 arch/csky/abiv1/inc/abi/entry.h 	stw	r14, (sp, 32)
sp                 77 arch/csky/abiv1/inc/abi/entry.h 	stw	r1, (sp, 36)
sp                 78 arch/csky/abiv1/inc/abi/entry.h 	subi	sp, 32
sp                 79 arch/csky/abiv1/inc/abi/entry.h 	subi	sp, 8
sp                 84 arch/csky/abiv1/inc/abi/entry.h 	ldw	lr, (sp, 4)
sp                 85 arch/csky/abiv1/inc/abi/entry.h 	ldw     a0, (sp, 8)
sp                 87 arch/csky/abiv1/inc/abi/entry.h 	ldw     a0, (sp, 12)
sp                 91 arch/csky/abiv1/inc/abi/entry.h 	ldw     a0, (sp, 16)
sp                 94 arch/csky/abiv1/inc/abi/entry.h 	ldw     a0, (sp, 24)
sp                 95 arch/csky/abiv1/inc/abi/entry.h 	ldw     a1, (sp, 28)
sp                 96 arch/csky/abiv1/inc/abi/entry.h 	ldw     a2, (sp, 32)
sp                 97 arch/csky/abiv1/inc/abi/entry.h 	ldw     a3, (sp, 36)
sp                 99 arch/csky/abiv1/inc/abi/entry.h 	addi	sp, 32
sp                100 arch/csky/abiv1/inc/abi/entry.h 	addi	sp, 8
sp                101 arch/csky/abiv1/inc/abi/entry.h 	ldw	r6, (sp)
sp                102 arch/csky/abiv1/inc/abi/entry.h 	ldw	r7, (sp, 4)
sp                103 arch/csky/abiv1/inc/abi/entry.h 	ldw	r8, (sp, 8)
sp                104 arch/csky/abiv1/inc/abi/entry.h 	ldw	r9, (sp, 12)
sp                105 arch/csky/abiv1/inc/abi/entry.h 	ldw	r10, (sp, 16)
sp                106 arch/csky/abiv1/inc/abi/entry.h 	ldw	r11, (sp, 20)
sp                107 arch/csky/abiv1/inc/abi/entry.h 	ldw	r12, (sp, 24)
sp                108 arch/csky/abiv1/inc/abi/entry.h 	ldw	r13, (sp, 28)
sp                109 arch/csky/abiv1/inc/abi/entry.h 	ldw	r14, (sp, 32)
sp                110 arch/csky/abiv1/inc/abi/entry.h 	ldw	r1, (sp, 36)
sp                111 arch/csky/abiv1/inc/abi/entry.h 	addi	sp, 32
sp                112 arch/csky/abiv1/inc/abi/entry.h 	addi	sp, 8
sp                121 arch/csky/abiv1/inc/abi/entry.h 	subi    sp, 32
sp                122 arch/csky/abiv1/inc/abi/entry.h 	stm     r8-r15, (sp)
sp                126 arch/csky/abiv1/inc/abi/entry.h 	ldm     r8-r15, (sp)
sp                127 arch/csky/abiv1/inc/abi/entry.h 	addi    sp, 32
sp                 25 arch/csky/abiv2/inc/abi/entry.h 	subi    sp, 152
sp                 26 arch/csky/abiv2/inc/abi/entry.h 	stw	tls, (sp, 0)
sp                 27 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 4)
sp                 32 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 8)
sp                 35 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 12)
sp                 38 arch/csky/abiv2/inc/abi/entry.h 	addi    lr, sp, 152
sp                 43 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 16)
sp                 45 arch/csky/abiv2/inc/abi/entry.h 	stw     a0, (sp, 20)
sp                 46 arch/csky/abiv2/inc/abi/entry.h 	stw     a0, (sp, 24)
sp                 47 arch/csky/abiv2/inc/abi/entry.h 	stw     a1, (sp, 28)
sp                 48 arch/csky/abiv2/inc/abi/entry.h 	stw     a2, (sp, 32)
sp                 49 arch/csky/abiv2/inc/abi/entry.h 	stw     a3, (sp, 36)
sp                 51 arch/csky/abiv2/inc/abi/entry.h 	addi	sp, 40
sp                 52 arch/csky/abiv2/inc/abi/entry.h 	stm	r4-r13, (sp)
sp                 54 arch/csky/abiv2/inc/abi/entry.h 	addi    sp, 40
sp                 55 arch/csky/abiv2/inc/abi/entry.h 	stm     r16-r30, (sp)
sp                 58 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 60)
sp                 60 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 64)
sp                 62 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 68)
sp                 64 arch/csky/abiv2/inc/abi/entry.h 	subi	sp, 80
sp                 69 arch/csky/abiv2/inc/abi/entry.h 	ldw	tls, (sp, 0)
sp                 70 arch/csky/abiv2/inc/abi/entry.h 	ldw	lr, (sp, 4)
sp                 71 arch/csky/abiv2/inc/abi/entry.h 	ldw	a0, (sp, 8)
sp                 73 arch/csky/abiv2/inc/abi/entry.h 	ldw	a0, (sp, 12)
sp                 76 arch/csky/abiv2/inc/abi/entry.h 	ldw	a0, (sp, 16)
sp                 81 arch/csky/abiv2/inc/abi/entry.h 	ldw	a0, (sp, 140)
sp                 83 arch/csky/abiv2/inc/abi/entry.h 	ldw	a0, (sp, 144)
sp                 85 arch/csky/abiv2/inc/abi/entry.h 	ldw	a0, (sp, 148)
sp                 89 arch/csky/abiv2/inc/abi/entry.h 	ldw     a0, (sp, 24)
sp                 90 arch/csky/abiv2/inc/abi/entry.h 	ldw     a1, (sp, 28)
sp                 91 arch/csky/abiv2/inc/abi/entry.h 	ldw     a2, (sp, 32)
sp                 92 arch/csky/abiv2/inc/abi/entry.h 	ldw     a3, (sp, 36)
sp                 94 arch/csky/abiv2/inc/abi/entry.h 	addi	sp, 40
sp                 95 arch/csky/abiv2/inc/abi/entry.h 	ldm	r4-r13, (sp)
sp                 96 arch/csky/abiv2/inc/abi/entry.h 	addi    sp, 40
sp                 97 arch/csky/abiv2/inc/abi/entry.h 	ldm     r16-r30, (sp)
sp                 98 arch/csky/abiv2/inc/abi/entry.h 	addi    sp, 72
sp                100 arch/csky/abiv2/inc/abi/entry.h 	mfcr	sp, ss0
sp                106 arch/csky/abiv2/inc/abi/entry.h 	subi    sp, 64
sp                107 arch/csky/abiv2/inc/abi/entry.h 	stm	r4-r11, (sp)
sp                108 arch/csky/abiv2/inc/abi/entry.h 	stw	lr,  (sp, 32)
sp                109 arch/csky/abiv2/inc/abi/entry.h 	stw	r16, (sp, 36)
sp                110 arch/csky/abiv2/inc/abi/entry.h 	stw	r17, (sp, 40)
sp                111 arch/csky/abiv2/inc/abi/entry.h 	stw	r26, (sp, 44)
sp                112 arch/csky/abiv2/inc/abi/entry.h 	stw	r27, (sp, 48)
sp                113 arch/csky/abiv2/inc/abi/entry.h 	stw	r28, (sp, 52)
sp                114 arch/csky/abiv2/inc/abi/entry.h 	stw	r29, (sp, 56)
sp                115 arch/csky/abiv2/inc/abi/entry.h 	stw	r30, (sp, 60)
sp                117 arch/csky/abiv2/inc/abi/entry.h 	subi	sp, 16
sp                119 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 0)
sp                121 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 4)
sp                123 arch/csky/abiv2/inc/abi/entry.h 	stw	lr, (sp, 8)
sp                129 arch/csky/abiv2/inc/abi/entry.h 	ldw	lr, (sp, 0)
sp                131 arch/csky/abiv2/inc/abi/entry.h 	ldw	lr, (sp, 4)
sp                133 arch/csky/abiv2/inc/abi/entry.h 	ldw	lr, (sp, 8)
sp                135 arch/csky/abiv2/inc/abi/entry.h 	addi	sp, 16
sp                137 arch/csky/abiv2/inc/abi/entry.h 	ldm	r4-r11, (sp)
sp                138 arch/csky/abiv2/inc/abi/entry.h 	ldw	lr,  (sp, 32)
sp                139 arch/csky/abiv2/inc/abi/entry.h 	ldw	r16, (sp, 36)
sp                140 arch/csky/abiv2/inc/abi/entry.h 	ldw	r17, (sp, 40)
sp                141 arch/csky/abiv2/inc/abi/entry.h 	ldw	r26, (sp, 44)
sp                142 arch/csky/abiv2/inc/abi/entry.h 	ldw	r27, (sp, 48)
sp                143 arch/csky/abiv2/inc/abi/entry.h 	ldw	r28, (sp, 52)
sp                144 arch/csky/abiv2/inc/abi/entry.h 	ldw	r29, (sp, 56)
sp                145 arch/csky/abiv2/inc/abi/entry.h 	ldw	r30, (sp, 60)
sp                146 arch/csky/abiv2/inc/abi/entry.h 	addi	sp, 64
sp                 45 arch/csky/include/asm/thread_info.h 	unsigned long sp;
sp                 47 arch/csky/include/asm/thread_info.h 	asm volatile("mov %0, sp\n":"=r"(sp));
sp                 49 arch/csky/include/asm/thread_info.h 	return (struct thread_info *)(sp & ~(THREAD_SIZE - 1));
sp                241 arch/csky/kernel/ptrace.c 	unsigned long   *sp;
sp                298 arch/csky/kernel/ptrace.c 	for (sp = (unsigned long *) tp, i = 0; (i < 0x40);  i += 4) {
sp                301 arch/csky/kernel/ptrace.c 		pr_cont("%08x ", (int) *sp++);
sp                307 arch/csky/kernel/ptrace.c 	for (sp = (unsigned long *) tp, i = 0; (i < 0xc0); i += 4) {
sp                310 arch/csky/kernel/ptrace.c 		pr_cont("%08x ", (int) *sp++);
sp                112 arch/csky/kernel/signal.c 	unsigned long sp;
sp                114 arch/csky/kernel/signal.c 	sp = regs->usp;
sp                120 arch/csky/kernel/signal.c 	if (on_sig_stack(sp) && !likely(on_sig_stack(sp - framesize)))
sp                124 arch/csky/kernel/signal.c 	sp = sigsp(sp, ksig) - framesize;
sp                127 arch/csky/kernel/signal.c 	sp &= -8UL;
sp                129 arch/csky/kernel/signal.c 	return (void __user *)sp;
sp                 85 arch/h8300/include/asm/processor.h 	(_regs)->sp = ((unsigned long)(_usp)) - sizeof(unsigned long) * 3; \
sp                 96 arch/h8300/include/asm/processor.h 	(_regs)->sp = ((unsigned long)(_usp)) - 14;		\
sp                 26 arch/h8300/include/asm/ptrace.h #define user_stack_pointer(regs) ((regs)->sp)
sp                 32 arch/h8300/include/uapi/asm/ptrace.h 	long	 sp;
sp                 51 arch/h8300/kernel/asm-offsets.c 	DEFINE(LSP,   offsetof(struct pt_regs, sp)       - sizeof(long));
sp                 24 arch/h8300/kernel/kgdb.c 	{ "sp", GDB_SIZEOF_REG, offsetof(struct pt_regs, sp) },
sp                168 arch/h8300/kernel/ptrace_h.c 	unsigned long *sp;
sp                181 arch/h8300/kernel/ptrace_h.c 		sp = (unsigned long *)h8300_get_reg(child, PT_USP);
sp                189 arch/h8300/kernel/ptrace_h.c 		return (unsigned short *)(*(sp+2) & 0x00ffffff);
sp                 99 arch/h8300/kernel/signal.c 	regs->sp = usp;
sp                200 arch/h8300/kernel/signal.c 	regs->sp  = (unsigned long)frame;
sp                 57 arch/h8300/kernel/traps.c 	unsigned long	*sp;
sp                 79 arch/h8300/kernel/traps.c 	for (sp = (unsigned long *) tp, i = 0; (i < 0x40);  i += 4) {
sp                 82 arch/h8300/kernel/traps.c 		pr_info("%08x ", (int) *sp++);
sp                 88 arch/h8300/kernel/traps.c 	for (sp = (unsigned long *) tp, i = 0; (i < 0xc0); i += 4) {
sp                 91 arch/h8300/kernel/traps.c 		pr_info("%08x ", (int) *sp++);
sp                 52 arch/hexagon/include/asm/thread_info.h 	unsigned long		sp;
sp                 70 arch/hexagon/include/asm/thread_info.h 	.sp = 0,				\
sp                216 arch/hexagon/include/uapi/asm/registers.h #define pt_set_rte_sp(regs, sp) do {\
sp                217 arch/hexagon/include/uapi/asm/registers.h 	pt_psp(regs) = (regs)->r29 = (sp);\
sp                 66 arch/hexagon/kernel/asm-offsets.c 	OFFSET(_THREAD_INFO_SP, thread_info, sp);
sp                 28 arch/hexagon/kernel/process.c void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp)
sp                 35 arch/hexagon/kernel/process.c 	pt_set_rte_sp(regs, sp);
sp                 31 arch/hexagon/kernel/signal.c 	unsigned long sp = sigsp(regs->r29, ksig);
sp                 33 arch/hexagon/kernel/signal.c 	return (void __user *)((sp - frame_size) & ~(sizeof(long long) - 1));
sp                230 arch/ia64/include/asm/io.h 	const unsigned char *sp = src;
sp                233 arch/ia64/include/asm/io.h 		outb(*sp++, port);
sp                240 arch/ia64/include/asm/io.h 	const unsigned short *sp = src;
sp                243 arch/ia64/include/asm/io.h 		outw(get_unaligned(sp++), port);
sp                250 arch/ia64/include/asm/io.h 	const unsigned int *sp = src;
sp                253 arch/ia64/include/asm/io.h 		outl(get_unaligned(sp++), port);
sp                129 arch/ia64/include/asm/mca_asm.h 	DATA_VA_TO_PA(sp);								\
sp                206 arch/ia64/include/asm/mca_asm.h 	DATA_PA_TO_VA(sp, temp1);				\
sp                100 arch/ia64/include/asm/processor.h 	__u64 sp : 1;
sp                133 arch/ia64/include/asm/processor.h 		__u64 sp : 1;
sp                 61 arch/ia64/include/asm/unwind.h 	unsigned long sp;		/* stack pointer value */
sp                151 arch/ia64/include/asm/unwind.h 	*valp = (info)->sp;
sp                 70 arch/ia64/kernel/entry.h 	adds sp=-IA64_SWITCH_STACK_SIZE,sp;	\
sp                 82 arch/ia64/kernel/entry.h 1:	.restore sp;				\
sp                 83 arch/ia64/kernel/entry.h 	adds sp=IA64_SWITCH_STACK_SIZE,sp
sp                445 arch/ia64/kernel/irq_ia64.c 		unsigned long bsp, sp;
sp                455 arch/ia64/kernel/irq_ia64.c 		sp = ia64_getreg(_IA64_REG_SP);
sp                457 arch/ia64/kernel/irq_ia64.c 		if ((sp - bsp) < 1024) {
sp                463 arch/ia64/kernel/irq_ia64.c 				       "(bsp=0x%lx, sp=%lx)\n", bsp, sp);
sp                233 arch/ia64/kernel/mca_drv.c 	sal_log_section_hdr_t *sp;
sp                259 arch/ia64/kernel/mca_drv.c 		ercd_pos < record_len; ercd_pos += sp->len, sects++) {
sp                260 arch/ia64/kernel/mca_drv.c 		sp = (sal_log_section_hdr_t *)((char*)buffer + ercd_pos);
sp                261 arch/ia64/kernel/mca_drv.c 		if (!efi_guidcmp(sp->guid, SAL_PROC_DEV_ERR_SECT_GUID)) {
sp                262 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->proc_err, sp);
sp                263 arch/ia64/kernel/mca_drv.c 		} else if (!efi_guidcmp(sp->guid,
sp                266 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->mem_dev_err, sp);
sp                267 arch/ia64/kernel/mca_drv.c 		} else if (!efi_guidcmp(sp->guid,
sp                270 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->sel_dev_err, sp);
sp                271 arch/ia64/kernel/mca_drv.c 		} else if (!efi_guidcmp(sp->guid,
sp                274 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->pci_bus_err, sp);
sp                275 arch/ia64/kernel/mca_drv.c 		} else if (!efi_guidcmp(sp->guid,
sp                278 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->smbios_dev_err, sp);
sp                279 arch/ia64/kernel/mca_drv.c 		} else if (!efi_guidcmp(sp->guid,
sp                282 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->pci_comp_err, sp);
sp                283 arch/ia64/kernel/mca_drv.c 		} else if (!efi_guidcmp(sp->guid,
sp                286 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->plat_specific_err, sp);
sp                287 arch/ia64/kernel/mca_drv.c 		} else if (!efi_guidcmp(sp->guid,
sp                290 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->host_ctlr_err, sp);
sp                291 arch/ia64/kernel/mca_drv.c 		} else if (!efi_guidcmp(sp->guid,
sp                294 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->plat_bus_err, sp);
sp                296 arch/ia64/kernel/mca_drv.c 			LOG_INDEX_ADD_SECT_PTR(slidx->unsupported, sp);
sp                 74 arch/ia64/kernel/minstate.h (pKStk) mov r1=sp;					/* get sp  */				\
sp               4269 arch/ia64/kernel/perfmon.c 			ia64_psr(regs)->sp = 0;
sp               4442 arch/ia64/kernel/perfmon.c 		ia64_psr(regs)->sp = 1;
sp               5397 arch/ia64/kernel/perfmon.c 	ia64_psr(regs)->sp = 1;
sp               5722 arch/ia64/kernel/perfmon.c 	ia64_psr(regs)->sp = 1;
sp                 70 arch/ia64/kernel/process.c 	unsigned long ip, sp, bsp;
sp                 78 arch/ia64/kernel/process.c 		unw_get_sp(info, &sp);
sp                 82 arch/ia64/kernel/process.c 			 ip, (void *)ip, sp, bsp);
sp                 87 arch/ia64/kernel/process.c show_stack (struct task_struct *task, unsigned long *sp)
sp                446 arch/ia64/kernel/process.c 	unsigned long mask, sp, nat_bits = 0, ar_rnat, urbs_end, cfm;
sp                458 arch/ia64/kernel/process.c 	unw_get_sp(info, &sp);
sp                459 arch/ia64/kernel/process.c 	pt = (struct pt_regs *) (sp + 16);
sp                733 arch/ia64/kernel/ptrace.c 	unsigned long ip, sp, pr;
sp                741 arch/ia64/kernel/ptrace.c 		unw_get_sp(&info, &sp);
sp                742 arch/ia64/kernel/ptrace.c 		if ((long)((unsigned long)child + IA64_STK_OFFSET - sp)
sp                275 arch/ia64/kernel/unwind.c 			info->pt = info->sp - 16;
sp                277 arch/ia64/kernel/unwind.c 	UNW_DPRINT(3, "unwind.%s: sp 0x%lx pt 0x%lx\n", __func__, info->sp, info->pt);
sp               1789 arch/ia64/kernel/unwind.c 			s[dst] = state->sp + val;
sp               1893 arch/ia64/kernel/unwind.c 	prev_sp = info->sp;
sp               1925 arch/ia64/kernel/unwind.c 		info->pt = info->sp + 16;
sp               1942 arch/ia64/kernel/unwind.c 	info->sp = info->psp;
sp               1943 arch/ia64/kernel/unwind.c 	if (info->sp < info->memstk.top || info->sp > info->memstk.limit) {
sp               1945 arch/ia64/kernel/unwind.c 			__func__, info->sp, info->memstk.top, info->memstk.limit);
sp               1950 arch/ia64/kernel/unwind.c 	if (info->ip == prev_ip && info->sp == prev_sp && info->bsp == prev_bsp) {
sp               1972 arch/ia64/kernel/unwind.c 	unsigned long ip, sp, pr = info->pr;
sp               1975 arch/ia64/kernel/unwind.c 		unw_get_sp(info, &sp);
sp               1976 arch/ia64/kernel/unwind.c 		if ((long)((unsigned long)info->task + IA64_STK_OFFSET - sp)
sp               2037 arch/ia64/kernel/unwind.c 	info->sp = info->psp = stktop;
sp               2047 arch/ia64/kernel/unwind.c 		   info->pr, (unsigned long) info->sw, info->sp);
sp                 75 arch/ia64/oprofile/backtrace.c 	u_long pc, sp;
sp                 85 arch/ia64/oprofile/backtrace.c 		unw_get_sp(&bt->frame, &sp);
sp                 86 arch/ia64/oprofile/backtrace.c 		if (sp >= (u_long)bt->regs)
sp                 66 arch/m68k/include/asm/entry.h 	btst	#5,%sp@(2)		/* from user? */
sp                 68 arch/m68k/include/asm/entry.h 	movel	%sp,sw_usp		/* save user sp */
sp                 70 arch/m68k/include/asm/entry.h 	movel	sw_ksp,%sp		/* kernel sp */
sp                 71 arch/m68k/include/asm/entry.h 	subql	#8,%sp			/* room for exception */
sp                 72 arch/m68k/include/asm/entry.h 	clrl	%sp@-			/* stkadj */
sp                 73 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* orig d0 */
sp                 74 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* d0 */
sp                 75 arch/m68k/include/asm/entry.h 	lea	%sp@(-32),%sp		/* space for 8 regs */
sp                 76 arch/m68k/include/asm/entry.h 	moveml	%d1-%d5/%a0-%a2,%sp@
sp                 78 arch/m68k/include/asm/entry.h 	movel	%a0@-,%sp@(PT_OFF_PC)	/* copy exception program counter */
sp                 79 arch/m68k/include/asm/entry.h 	movel	%a0@-,%sp@(PT_OFF_FORMATVEC)/*copy exception format/vector/sr */
sp                 82 arch/m68k/include/asm/entry.h 	clrl	%sp@-			/* stkadj */
sp                 83 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* orig d0 */
sp                 84 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* d0 */
sp                 85 arch/m68k/include/asm/entry.h 	lea	%sp@(-32),%sp		/* space for 8 regs */
sp                 86 arch/m68k/include/asm/entry.h 	moveml	%d1-%d5/%a0-%a2,%sp@
sp                 93 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@(PT_OFF_ORIG_D0)
sp                 99 arch/m68k/include/asm/entry.h 	movel	%sp@(PT_OFF_PC),%a0@-	/* copy exception program counter */
sp                100 arch/m68k/include/asm/entry.h 	movel	%sp@(PT_OFF_FORMATVEC),%a0@-/*copy exception format/vector/sr */
sp                101 arch/m68k/include/asm/entry.h 	moveml	%sp@,%d1-%d5/%a0-%a2
sp                102 arch/m68k/include/asm/entry.h 	lea	%sp@(32),%sp		/* space for 8 regs */
sp                103 arch/m68k/include/asm/entry.h 	movel	%sp@+,%d0
sp                104 arch/m68k/include/asm/entry.h 	addql	#4,%sp			/* orig d0 */
sp                105 arch/m68k/include/asm/entry.h 	addl	%sp@+,%sp		/* stkadj */
sp                106 arch/m68k/include/asm/entry.h 	addql	#8,%sp			/* remove exception */
sp                107 arch/m68k/include/asm/entry.h 	movel	%sp,sw_ksp		/* save ksp */
sp                109 arch/m68k/include/asm/entry.h 	movel	sw_usp,%sp		/* restore usp */
sp                128 arch/m68k/include/asm/entry.h 	clrl	%sp@-			/* stkadj */
sp                129 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* orig d0 */
sp                130 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* d0 */
sp                131 arch/m68k/include/asm/entry.h 	lea	%sp@(-32),%sp		/* space for 8 regs */
sp                132 arch/m68k/include/asm/entry.h 	moveml	%d1-%d5/%a0-%a2,%sp@
sp                137 arch/m68k/include/asm/entry.h 	clrl	%sp@-			/* stkadj */
sp                139 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* d0 */
sp                140 arch/m68k/include/asm/entry.h 	lea	%sp@(-32),%sp		/* space for 8 regs */
sp                141 arch/m68k/include/asm/entry.h 	moveml	%d1-%d5/%a0-%a2,%sp@
sp                145 arch/m68k/include/asm/entry.h 	moveml	%sp@,%d1-%d5/%a0-%a2
sp                146 arch/m68k/include/asm/entry.h 	lea	%sp@(32),%sp		/* space for 8 regs */
sp                147 arch/m68k/include/asm/entry.h 	movel	%sp@+,%d0
sp                148 arch/m68k/include/asm/entry.h 	addql	#4,%sp			/* orig d0 */
sp                149 arch/m68k/include/asm/entry.h 	addl	%sp@+,%sp		/* stkadj */
sp                166 arch/m68k/include/asm/entry.h 	lea	%sp@(-24),%sp		/* 6 regs */
sp                167 arch/m68k/include/asm/entry.h 	moveml	%a3-%a6/%d6-%d7,%sp@
sp                171 arch/m68k/include/asm/entry.h 	moveml	%sp@,%a3-%a6/%d6-%d7
sp                172 arch/m68k/include/asm/entry.h 	lea	%sp@(24),%sp		/* 6 regs */
sp                187 arch/m68k/include/asm/entry.h 	clrl	%sp@-			/* stk_adj */
sp                189 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* d0 */
sp                190 arch/m68k/include/asm/entry.h 	moveml	%d1-%d5/%a0-%a2,%sp@-
sp                194 arch/m68k/include/asm/entry.h 	clrl	%sp@-			/* stk_adj */
sp                195 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* orig d0 */
sp                196 arch/m68k/include/asm/entry.h 	movel	%d0,%sp@-		/* d0 */
sp                197 arch/m68k/include/asm/entry.h 	moveml	%d1-%d5/%a0-%a2,%sp@-
sp                201 arch/m68k/include/asm/entry.h 	moveml	%sp@+,%a0-%a2/%d1-%d5
sp                202 arch/m68k/include/asm/entry.h 	movel	%sp@+,%d0
sp                203 arch/m68k/include/asm/entry.h 	addql	#4,%sp			/* orig d0 */
sp                204 arch/m68k/include/asm/entry.h 	addl	%sp@+,%sp		/* stk adj */
sp                210 arch/m68k/include/asm/entry.h 	moveml	%a3-%a6/%d6-%d7,%sp@-
sp                214 arch/m68k/include/asm/entry.h 	moveml	%sp@+,%a3-%a6/%d6-%d7
sp                230 arch/m68k/include/asm/entry.h 	movel	%sp,\reg
sp                168 arch/m68k/include/asm/m53xxsim.h 	movel	#CORE_SRAM, %sp
sp                169 arch/m68k/include/asm/m53xxsim.h 	addl	#CORE_SRAM_SIZE, %sp
sp                171 arch/m68k/include/asm/math-emu.h 	move.l	(FPS_PC+4,%sp),\dest
sp                175 arch/m68k/include/asm/math-emu.h 	move.l	\src,(FPS_PC+4,%sp)
sp                179 arch/m68k/include/asm/math-emu.h 	getuser	\f,%sp@(FPS_PC+4)@(0),\dest,\label,%sp@(FPS_PC+4)
sp                180 arch/m68k/include/asm/math-emu.h 	addq.l	#\s,%sp@(FPS_PC+4)
sp                249 arch/m68k/include/asm/math-emu.h 	move.l	\arg1,-(%sp)
sp                260 arch/m68k/include/asm/math-emu.h 	movem.l	%d0/%d1/%a0/%a1,-(%sp)
sp                274 arch/m68k/include/asm/math-emu.h 	lea	((\nr+1)*4,%sp),%sp
sp                276 arch/m68k/include/asm/math-emu.h 	movem.l	(%sp)+,%d0/%d1/%a0/%a1
sp                282 arch/m68k/include/asm/math-emu.h 	movem.l	%d0/%a0,-(%sp)
sp                303 arch/m68k/include/asm/math-emu.h 	movem.l	(%sp)+,%d0/%a0
sp                 32 arch/m68k/include/asm/page_mm.h 	unsigned long *sp = page;
sp                 34 arch/m68k/include/asm/page_mm.h 	*sp++ = 0;
sp                 35 arch/m68k/include/asm/page_mm.h 	*sp++ = 0;
sp                 36 arch/m68k/include/asm/page_mm.h 	*sp++ = 0;
sp                 37 arch/m68k/include/asm/page_mm.h 	*sp++ = 0;
sp                 46 arch/m68k/include/asm/page_mm.h 			     : "=a" (sp), "=d" (tmp)
sp                 47 arch/m68k/include/asm/page_mm.h 			     : "a" (page), "0" (sp),
sp                 66 arch/m68k/kernel/uboot.c 	unsigned long *sp;
sp                 71 arch/m68k/kernel/uboot.c 	sp = (unsigned long *)_init_sp;
sp                 72 arch/m68k/kernel/uboot.c 	uboot_kbd = sp[1];
sp                 73 arch/m68k/kernel/uboot.c 	uboot_initrd_start = sp[2];
sp                 74 arch/m68k/kernel/uboot.c 	uboot_initrd_end = sp[3];
sp                 75 arch/m68k/kernel/uboot.c 	uboot_cmd_start = sp[4];
sp                 76 arch/m68k/kernel/uboot.c 	uboot_cmd_end = sp[5];
sp                 92 arch/microblaze/include/asm/thread_info.h 	register unsigned long sp asm("r1");
sp                 94 arch/microblaze/include/asm/thread_info.h 	return (struct thread_info *)(sp & ~(THREAD_SIZE-1));
sp                151 arch/microblaze/kernel/signal.c 	unsigned long sp = sigsp(regs->r1, ksig);
sp                153 arch/microblaze/kernel/signal.c 	return (void __user *)((sp - frame_size) & -8UL);
sp                 34 arch/microblaze/kernel/traps.c void show_stack(struct task_struct *task, unsigned long *sp)
sp                 37 arch/microblaze/kernel/traps.c 	u32 fp = (u32) sp;
sp                 45 arch/microblaze/kernel/traps.c 			fp = (u32)&sp - 8;
sp                 68 arch/mips/fw/cfe/cfe_api.c int cfe_cpu_start(int cpu, void (*fn) (void), long sp, long gp, long a1)
sp                 80 arch/mips/fw/cfe/cfe_api.c 	xiocb.plist.xiocb_cpuctl.sp_val = sp;
sp                 11 arch/mips/include/asm/amon.h int amon_cpu_start(int cpu, unsigned long pc, unsigned long sp,
sp                 31 arch/mips/include/asm/asm.h symbol:		.frame	sp, 0, ra;			\
sp                 43 arch/mips/include/asm/asm.h symbol:		.frame	sp, framesize, rpc;		\
sp                 73 arch/mips/include/asm/asmmacro-32.h 	LONG_S	sp, THREAD_REG29(\thread)
sp                 86 arch/mips/include/asm/asmmacro-32.h 	LONG_L	sp, THREAD_REG29(\thread)
sp                 26 arch/mips/include/asm/asmmacro-64.h 	LONG_S	sp, THREAD_REG29(\thread)
sp                 39 arch/mips/include/asm/asmmacro-64.h 	LONG_L	sp, THREAD_REG29(\thread)
sp                 15 arch/mips/include/asm/exec.h extern unsigned long arch_align_stack(unsigned long sp);
sp                 85 arch/mips/include/asm/fw/cfe/cfe_api.h int cfe_cpu_start(int cpu, void (*fn) (void), long sp, long gp, long a1);
sp                 39 arch/mips/include/asm/irq.h static inline bool on_irq_stack(int cpu, unsigned long sp)
sp                 44 arch/mips/include/asm/irq.h 	return (low <= sp && sp <= high);
sp                149 arch/mips/include/asm/irqflags.h 	LONG_L	$11, PT_R11(sp);					\
sp                150 arch/mips/include/asm/irqflags.h 	LONG_L	$10, PT_R10(sp);					\
sp                151 arch/mips/include/asm/irqflags.h 	LONG_L	$9, PT_R9(sp);						\
sp                152 arch/mips/include/asm/irqflags.h 	LONG_L	$8, PT_R8(sp);						\
sp                153 arch/mips/include/asm/irqflags.h 	LONG_L	$7, PT_R7(sp);						\
sp                154 arch/mips/include/asm/irqflags.h 	LONG_L	$6, PT_R6(sp);						\
sp                155 arch/mips/include/asm/irqflags.h 	LONG_L	$5, PT_R5(sp);						\
sp                156 arch/mips/include/asm/irqflags.h 	LONG_L	$4, PT_R4(sp);						\
sp                157 arch/mips/include/asm/irqflags.h 	LONG_L	$2, PT_R2(sp)
sp                160 arch/mips/include/asm/irqflags.h 	LONG_L	$7, PT_R7(sp);						\
sp                161 arch/mips/include/asm/irqflags.h 	LONG_L	$6, PT_R6(sp);						\
sp                162 arch/mips/include/asm/irqflags.h 	LONG_L	$5, PT_R5(sp);						\
sp                163 arch/mips/include/asm/irqflags.h 	LONG_L	$4, PT_R4(sp);						\
sp                164 arch/mips/include/asm/irqflags.h 	LONG_L	$2, PT_R2(sp)
sp                126 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h 	LONG_L	sp, (t0)
sp                 43 arch/mips/include/asm/mach-paravirt/kernel-entry-init.h 	PTR_L	sp, 0(t1)
sp                 44 arch/mips/include/asm/mach-paravirt/kernel-entry-init.h 	beqz	sp, 3b			# Spin until told to proceed.
sp                 11 arch/mips/include/asm/mips-boards/launch.h     unsigned long	sp;
sp                123 arch/mips/include/asm/octeon/cvmx-address.h 		uint64_t sp:2;
sp                219 arch/mips/include/asm/octeon/cvmx-address.h 		uint64_t sp:2;
sp                 20 arch/mips/include/asm/pm.h 	subu	sp, PT_SIZE
sp                 22 arch/mips/include/asm/pm.h 	LONG_S	$16, PT_R16(sp)
sp                 23 arch/mips/include/asm/pm.h 	LONG_S	$17, PT_R17(sp)
sp                 24 arch/mips/include/asm/pm.h 	LONG_S	$18, PT_R18(sp)
sp                 25 arch/mips/include/asm/pm.h 	LONG_S	$19, PT_R19(sp)
sp                 26 arch/mips/include/asm/pm.h 	LONG_S	$20, PT_R20(sp)
sp                 27 arch/mips/include/asm/pm.h 	LONG_S	$21, PT_R21(sp)
sp                 28 arch/mips/include/asm/pm.h 	LONG_S	$22, PT_R22(sp)
sp                 29 arch/mips/include/asm/pm.h 	LONG_S	$23, PT_R23(sp)
sp                 30 arch/mips/include/asm/pm.h 	LONG_S	$28, PT_R28(sp)
sp                 31 arch/mips/include/asm/pm.h 	LONG_S	$30, PT_R30(sp)
sp                 32 arch/mips/include/asm/pm.h 	LONG_S	$31, PT_R31(sp)
sp                 35 arch/mips/include/asm/pm.h 	LONG_S	k0, PT_STATUS(sp)
sp                 43 arch/mips/include/asm/pm.h 	LONG_L	k0, PT_STATUS(sp)
sp                 46 arch/mips/include/asm/pm.h 	LONG_L	$16, PT_R16(sp)
sp                 47 arch/mips/include/asm/pm.h 	LONG_L	$17, PT_R17(sp)
sp                 48 arch/mips/include/asm/pm.h 	LONG_L	$18, PT_R18(sp)
sp                 49 arch/mips/include/asm/pm.h 	LONG_L	$19, PT_R19(sp)
sp                 50 arch/mips/include/asm/pm.h 	LONG_L	$20, PT_R20(sp)
sp                 51 arch/mips/include/asm/pm.h 	LONG_L	$21, PT_R21(sp)
sp                 52 arch/mips/include/asm/pm.h 	LONG_L	$22, PT_R22(sp)
sp                 53 arch/mips/include/asm/pm.h 	LONG_L	$23, PT_R23(sp)
sp                 54 arch/mips/include/asm/pm.h 	LONG_L	$28, PT_R28(sp)
sp                 55 arch/mips/include/asm/pm.h 	LONG_L	$30, PT_R30(sp)
sp                 56 arch/mips/include/asm/pm.h 	LONG_L	$31, PT_R31(sp)
sp                 59 arch/mips/include/asm/pm.h 	 addiu	sp, PT_SIZE
sp                 83 arch/mips/include/asm/pm.h 	LONG_S	sp, SSS_SP(t1)
sp                103 arch/mips/include/asm/pm.h 	LONG_L	sp, SSS_SP(t1)
sp                150 arch/mips/include/asm/pm.h 	unsigned long sp;
sp                 24 arch/mips/include/asm/pmon.h 		int	(*smpfork) (unsigned long cp, char *sp);
sp                 41 arch/mips/include/asm/pmon.h #define pmon_cpustart(n, f, sp, gp)	debug_vectors->_s.cpustart(n, f, sp, gp)
sp                 42 arch/mips/include/asm/pmon.h #define pmon_smpfork(cp, sp)		debug_vectors->_s.smpfork(cp, sp)
sp                373 arch/mips/include/asm/processor.h extern void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp);
sp                172 arch/mips/include/asm/ptrace.h 	unsigned long sp = (unsigned long)__builtin_frame_address(0);	\
sp                173 arch/mips/include/asm/ptrace.h 	(struct pt_regs *)((sp | (THREAD_SIZE - 1)) + 1 - 32) - 1;	\
sp                 14 arch/mips/include/asm/smp-cps.h 	unsigned long sp;
sp                 30 arch/mips/include/asm/stackframe.h 	LONG_S	\reg, \offset(sp)
sp                 41 arch/mips/include/asm/stackframe.h 	LONG_L	\reg, \offset(sp)
sp                 61 arch/mips/include/asm/stackframe.h 		LONG_S	v1, PT_LO(sp)
sp                 63 arch/mips/include/asm/stackframe.h 		LONG_S	v1, PT_HI(sp)
sp                 65 arch/mips/include/asm/stackframe.h 		LONG_S	v1, PT_ACX(sp)
sp                 77 arch/mips/include/asm/stackframe.h 		LONG_S	v1, PT_HI(sp)
sp                 85 arch/mips/include/asm/stackframe.h 		LONG_S	v1, PT_LO(sp)
sp                132 arch/mips/include/asm/stackframe.h 		move	k0, sp
sp                134 arch/mips/include/asm/stackframe.h 		.cfi_register sp, k0
sp                136 arch/mips/include/asm/stackframe.h 		LONG_L	sp, %lo(kernelsp)(k1)
sp                179 arch/mips/include/asm/stackframe.h 		move	k0, sp
sp                181 arch/mips/include/asm/stackframe.h 		.cfi_register sp, k0
sp                183 arch/mips/include/asm/stackframe.h 		LONG_L	sp, %lo(kernelsp)(k1)
sp                202 arch/mips/include/asm/stackframe.h 		 move	k0, sp
sp                204 arch/mips/include/asm/stackframe.h 		.cfi_register sp, k0
sp                238 arch/mips/include/asm/stackframe.h 		PTR_SUBU sp, PT_SIZE
sp                243 arch/mips/include/asm/stackframe.h 		.cfi_def_cfa sp,0
sp                246 arch/mips/include/asm/stackframe.h 		cfi_rel_offset  sp, PT_R29, \docfi
sp                253 arch/mips/include/asm/stackframe.h 		LONG_S	$0, PT_R0(sp)
sp                256 arch/mips/include/asm/stackframe.h 		LONG_S	v1, PT_STATUS(sp)
sp                260 arch/mips/include/asm/stackframe.h 		LONG_S	v1, PT_CAUSE(sp)
sp                269 arch/mips/include/asm/stackframe.h 		LONG_S	ra, PT_EPC(sp)
sp                281 arch/mips/include/asm/stackframe.h 		ori	$28, sp, _THREAD_MASK
sp                311 arch/mips/include/asm/stackframe.h 		LONG_L	$24, PT_ACX(sp)
sp                313 arch/mips/include/asm/stackframe.h 		LONG_L	$24, PT_HI(sp)
sp                315 arch/mips/include/asm/stackframe.h 		LONG_L	$24, PT_LO(sp)
sp                318 arch/mips/include/asm/stackframe.h 		LONG_L	$24, PT_LO(sp)
sp                320 arch/mips/include/asm/stackframe.h 		LONG_L	$24, PT_HI(sp)
sp                349 arch/mips/include/asm/stackframe.h 		cfi_ld	sp, PT_R29, \docfi
sp                364 arch/mips/include/asm/stackframe.h 		LONG_L	v0, PT_STATUS(sp)
sp                384 arch/mips/include/asm/stackframe.h 		LONG_L	k0, PT_EPC(sp)
sp                402 arch/mips/include/asm/stackframe.h 		LONG_L	v0, PT_STATUS(sp)
sp                407 arch/mips/include/asm/stackframe.h 		LONG_L	v1, PT_EPC(sp)
sp                 11 arch/mips/include/asm/stacktrace.h extern unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
sp                 14 arch/mips/include/asm/stacktrace.h 					     unsigned long *sp,
sp                 20 arch/mips/include/asm/stacktrace.h 	unsigned long *sp, unsigned long pc, unsigned long *ra)
sp                342 arch/mips/kernel/asm-offsets.c 	OFFSET(SSS_SP,		mips_static_suspend_state, sp);
sp                401 arch/mips/kernel/asm-offsets.c 	OFFSET(VPEBOOTCFG_SP, vpe_boot_config, sp);
sp                270 arch/mips/kernel/ftrace.c 	unsigned long sp, ip, tmp;
sp                303 arch/mips/kernel/ftrace.c 	sp = fp + (code & OFFSET_MASK);
sp                306 arch/mips/kernel/ftrace.c 	safe_load_stack(tmp, sp, faulted);
sp                311 arch/mips/kernel/ftrace.c 		return sp;
sp                 77 arch/mips/kernel/irq.c 	unsigned long sp;
sp                 79 arch/mips/kernel/irq.c 	__asm__ __volatile__("move %0, $sp" : "=r" (sp));
sp                 80 arch/mips/kernel/irq.c 	sp &= THREAD_MASK;
sp                 86 arch/mips/kernel/irq.c 	if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) {
sp                 88 arch/mips/kernel/irq.c 		       sp - sizeof(struct thread_info));
sp                 29 arch/mips/kernel/perf_event.c 	unsigned long *sp = (unsigned long *)reg29;
sp                 32 arch/mips/kernel/perf_event.c 	while (!kstack_end(sp)) {
sp                 33 arch/mips/kernel/perf_event.c 		addr = *sp++;
sp                 45 arch/mips/kernel/perf_event.c 	unsigned long sp = regs->regs[29];
sp                 53 arch/mips/kernel/perf_event.c 		if (stack_page && sp >= stack_page &&
sp                 54 arch/mips/kernel/perf_event.c 		    sp <= stack_page + THREAD_SIZE - 32)
sp                 55 arch/mips/kernel/perf_event.c 			save_raw_perf_callchain(entry, sp);
sp                 62 arch/mips/kernel/perf_event.c 		pc = unwind_stack(current, &sp, pc, &ra);
sp                 65 arch/mips/kernel/perf_event.c 	save_raw_perf_callchain(entry, sp);
sp                151 arch/mips/kernel/pm-cps.c 		vpe_cfg->sp = 0;
sp                 67 arch/mips/kernel/process.c void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
sp                 81 arch/mips/kernel/process.c 	regs->regs[29] = sp;
sp                509 arch/mips/kernel/process.c 					      unsigned long *sp,
sp                527 arch/mips/kernel/process.c 	if (!preemptible() && on_irq_stack(raw_smp_processor_id(), *sp)) {
sp                539 arch/mips/kernel/process.c 	if (unlikely(*sp == irq_stack_high)) {
sp                540 arch/mips/kernel/process.c 		unsigned long task_sp = *(unsigned long *)*sp;
sp                556 arch/mips/kernel/process.c 			*sp = regs->regs[29];
sp                579 arch/mips/kernel/process.c 	if (*sp < low || *sp + info.frame_size > high)
sp                591 arch/mips/kernel/process.c 		pc = ((unsigned long *)(*sp))[info.pc_offset];
sp                593 arch/mips/kernel/process.c 	*sp += info.frame_size;
sp                600 arch/mips/kernel/process.c unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
sp                607 arch/mips/kernel/process.c 		if (on_irq_stack(cpu, *sp)) {
sp                616 arch/mips/kernel/process.c 	return unwind_stack_by_address(stack_page, sp, pc, ra);
sp                627 arch/mips/kernel/process.c 	unsigned long sp;
sp                639 arch/mips/kernel/process.c 	sp = task->thread.reg29 + schedule_mfi.frame_size;
sp                642 arch/mips/kernel/process.c 		pc = unwind_stack(task, &sp, pc, &ra);
sp                676 arch/mips/kernel/process.c unsigned long arch_align_stack(unsigned long sp)
sp                679 arch/mips/kernel/process.c 		sp -= get_random_int() & ~PAGE_MASK;
sp                681 arch/mips/kernel/process.c 	return sp & ALMASK;
sp                551 arch/mips/kernel/signal.c 	unsigned long sp;
sp                557 arch/mips/kernel/signal.c 	sp = regs->regs[29];
sp                564 arch/mips/kernel/signal.c 	sp -= 32;
sp                566 arch/mips/kernel/signal.c 	sp = sigsp(sp, ksig);
sp                568 arch/mips/kernel/signal.c 	return (void __user *)((sp - frame_size) & (ICACHE_REFILLS_WORKAROUND_WAR ? ~(cpu_icache_line_size()-1) : ALMASK));
sp                 72 arch/mips/kernel/smp-cmp.c 	unsigned long sp = __KSTK_TOS(idle);
sp                 85 arch/mips/kernel/smp-cmp.c 	amon_cpu_start(cpu, pc, sp, (unsigned long)gp, a0);
sp                309 arch/mips/kernel/smp-cps.c 	vpe_cfg->sp = __KSTK_TOS(idle);
sp                 20 arch/mips/kernel/stacktrace.c 	unsigned long *sp = (unsigned long *)reg29;
sp                 23 arch/mips/kernel/stacktrace.c 	while (!kstack_end(sp)) {
sp                 24 arch/mips/kernel/stacktrace.c 		addr = *sp++;
sp                 40 arch/mips/kernel/stacktrace.c 	unsigned long sp = regs->regs[29];
sp                 48 arch/mips/kernel/stacktrace.c 		if (stack_page && sp >= stack_page &&
sp                 49 arch/mips/kernel/stacktrace.c 		    sp <= stack_page + THREAD_SIZE - 32)
sp                 50 arch/mips/kernel/stacktrace.c 			save_raw_context_stack(trace, sp, savesched);
sp                 62 arch/mips/kernel/stacktrace.c 		pc = unwind_stack(tsk, &sp, pc, &ra);
sp                 65 arch/mips/kernel/stacktrace.c 	save_raw_context_stack(trace, sp, savesched);
sp                111 arch/mips/kernel/traps.c 	unsigned long *sp = (unsigned long *)(reg29 & ~3);
sp                118 arch/mips/kernel/traps.c 	while (!kstack_end(sp)) {
sp                120 arch/mips/kernel/traps.c 			(unsigned long __user *)(unsigned long)sp++;
sp                143 arch/mips/kernel/traps.c 	unsigned long sp = regs->regs[29];
sp                151 arch/mips/kernel/traps.c 		show_raw_backtrace(sp);
sp                157 arch/mips/kernel/traps.c 		pc = unwind_stack(task, &sp, pc, &ra);
sp                172 arch/mips/kernel/traps.c 	unsigned long __user *sp = (unsigned long __user *)regs->regs[29];
sp                176 arch/mips/kernel/traps.c 	while ((unsigned long) sp & (PAGE_SIZE - 1)) {
sp                186 arch/mips/kernel/traps.c 		if (__get_user(stackdata, sp++)) {
sp                198 arch/mips/kernel/traps.c void show_stack(struct task_struct *task, unsigned long *sp)
sp                204 arch/mips/kernel/traps.c 	if (sp) {
sp                205 arch/mips/kernel/traps.c 		regs.regs[29] = (unsigned long)sp;
sp                 40 arch/mips/lib/uncached.c 	register long sp __asm__("$sp");
sp                 45 arch/mips/lib/uncached.c 	if (sp >= (long)CKSEG0 && sp < (long)CKSEG2)
sp                 46 arch/mips/lib/uncached.c 		usp = CKSEG1ADDR(sp);
sp                 48 arch/mips/lib/uncached.c 	else if ((long long)sp >= (long long)PHYS_TO_XKPHYS(0, 0) &&
sp                 49 arch/mips/lib/uncached.c 		 (long long)sp < (long long)PHYS_TO_XKPHYS(8, 0))
sp                 51 arch/mips/lib/uncached.c 				     XKPHYS_TO_PHYS((long long)sp));
sp                 55 arch/mips/lib/uncached.c 		usp = sp;
sp                840 arch/mips/math-emu/cp1emu.c #define SPFROMREG(sp, x) SIFROMREG((sp).bits, x)
sp                841 arch/mips/math-emu/cp1emu.c #define SPTOREG(sp, x)	SITOREG((sp).bits, x)
sp               1454 arch/mips/math-emu/cp1emu.c DEF3OP(madd, sp, ieee754sp_mul, ieee754sp_add, );
sp               1455 arch/mips/math-emu/cp1emu.c DEF3OP(msub, sp, ieee754sp_mul, ieee754sp_sub, );
sp               1456 arch/mips/math-emu/cp1emu.c DEF3OP(nmadd, sp, ieee754sp_mul, ieee754sp_add, ieee754sp_neg);
sp               1457 arch/mips/math-emu/cp1emu.c DEF3OP(nmsub, sp, ieee754sp_mul, ieee754sp_sub, ieee754sp_neg);
sp                 27 arch/mips/math-emu/ieee754sp.h #define SPSIGN(sp)	(sp.sign)
sp                 28 arch/mips/math-emu/ieee754sp.h #define SPBEXP(sp)	(sp.bexp)
sp                 29 arch/mips/math-emu/ieee754sp.h #define SPMANT(sp)	(sp.mant)
sp                 42 arch/mips/mti-malta/malta-amon.c 		    unsigned long pc, unsigned long sp,
sp                 60 arch/mips/mti-malta/malta-amon.c 	launch->sp = sp;
sp                 14 arch/mips/oprofile/backtrace.c 	unsigned long sp;
sp                 80 arch/mips/oprofile/backtrace.c 	if (old_frame->pc == 0 || old_frame->sp == 0 || old_frame->ra == 0)
sp                111 arch/mips/oprofile/backtrace.c 		new_frame.ra = old_frame->sp + ra_offset;
sp                117 arch/mips/oprofile/backtrace.c 		new_frame.sp = old_frame->sp + stack_size;
sp                118 arch/mips/oprofile/backtrace.c 		if (get_mem(new_frame.sp, &(new_frame.sp)))
sp                122 arch/mips/oprofile/backtrace.c 	if (new_frame.sp > old_frame->sp)
sp                141 arch/mips/oprofile/backtrace.c 		if (frame->sp < low_addr || frame->sp > high_addr)
sp                157 arch/mips/oprofile/backtrace.c 						    &(frame->sp),
sp                167 arch/mips/oprofile/backtrace.c 	struct stackframe frame = { .sp = regs->regs[29],
sp                171 arch/mips/oprofile/backtrace.c 	const unsigned long low_addr = ALIGN(frame.sp, THREAD_SIZE);
sp                201 arch/mips/sgi-ip27/ip27-smp.c 	unsigned long sp = __KSTK_TOS(idle);
sp                205 arch/mips/sgi-ip27/ip27-smp.c 		0, (void *) sp, (void *) gp);
sp                 92 arch/mips/txx9/rbtx4939/setup.c 	unsigned int sp;
sp                 95 arch/mips/txx9/rbtx4939/setup.c 	sp = TX4939_EBUSC_CR(0) & 0x30;
sp                 96 arch/mips/txx9/rbtx4939/setup.c 	default_ebccr[0] |= sp;
sp                 97 arch/mips/txx9/rbtx4939/setup.c 	default_ebccr[1] |= sp;
sp                 98 arch/mips/txx9/rbtx4939/setup.c 	default_ebccr[2] |= sp;
sp                 29 arch/nds32/include/asm/processor.h 	unsigned long sp;
sp                 69 arch/nds32/include/asm/processor.h 	regs->sp = stack;				\
sp                 29 arch/nds32/include/asm/ptrace.h 			long sp;
sp                 72 arch/nds32/include/asm/ptrace.h #define user_stack_pointer(regs)	((regs)->sp)
sp                 10 arch/nds32/include/asm/stacktrace.h 	unsigned long sp;
sp                 17 arch/nds32/include/uapi/asm/ptrace.h 	long sp;
sp                 18 arch/nds32/kernel/asm-offsets.c 	DEFINE(SP_OFFSET, offsetof(struct pt_regs, sp));
sp               1248 arch/nds32/kernel/perf_event_cpu.c 	if (!kstack_end((void *)frame->sp)) {
sp               1249 arch/nds32/kernel/perf_event_cpu.c 		frame->lp = ((unsigned long *)frame->sp)[1];
sp               1257 arch/nds32/kernel/perf_event_cpu.c 		frame->sp = ((unsigned long *)frame->sp) + 1;
sp               1369 arch/nds32/kernel/perf_event_cpu.c 	unsigned long sp = 0;
sp               1383 arch/nds32/kernel/perf_event_cpu.c 	sp = regs->sp;
sp               1385 arch/nds32/kernel/perf_event_cpu.c 	    (unsigned long)fp && !((unsigned long)fp & 0x7) && fp > sp) {
sp               1441 arch/nds32/kernel/perf_event_cpu.c 						fp > sp) {
sp               1442 arch/nds32/kernel/perf_event_cpu.c 					sp = fp;
sp               1455 arch/nds32/kernel/perf_event_cpu.c 						fp > sp) {
sp               1456 arch/nds32/kernel/perf_event_cpu.c 					sp = fp;
sp               1468 arch/nds32/kernel/perf_event_cpu.c 				   !((unsigned long)fp & 0x7) && fp > sp) {
sp               1469 arch/nds32/kernel/perf_event_cpu.c 				sp = fp;
sp               1490 arch/nds32/kernel/perf_event_cpu.c 	fr.sp = regs->sp;
sp                103 arch/nds32/kernel/process.c 		regs->lp, print_tainted(), regs->sp, regs->fp, regs->gp);
sp                168 arch/nds32/kernel/process.c 			childregs->sp = stack_start;
sp                177 arch/nds32/kernel/process.c 	p->thread.cpu_context.sp = (unsigned long)childregs;
sp                120 arch/nds32/kernel/signal.c 	__get_user_error(regs->sp, &sf->uc.uc_mcontext.nds32_sp, err);
sp                149 arch/nds32/kernel/signal.c 	if (regs->sp & 7)
sp                152 arch/nds32/kernel/signal.c 	frame = (struct rt_sigframe __user *)regs->sp;
sp                206 arch/nds32/kernel/signal.c 	__put_user_error(regs->sp, &sf->uc.uc_mcontext.nds32_sp, err);
sp                233 arch/nds32/kernel/signal.c 	unsigned long sp;
sp                236 arch/nds32/kernel/signal.c 	sp = regs->sp;
sp                242 arch/nds32/kernel/signal.c 	if (on_sig_stack(sp) && !likely(on_sig_stack(sp - framesize)))
sp                246 arch/nds32/kernel/signal.c 	sp = (sigsp(sp, ksig) - framesize);
sp                251 arch/nds32/kernel/signal.c 	sp &= ~0x7UL;
sp                253 arch/nds32/kernel/signal.c 	return (void __user *)sp;
sp                264 arch/nds32/kernel/signal.c 	regs->sp = (unsigned long)frame;
sp                284 arch/nds32/kernel/signal.c 	err |= __save_altstack(&frame->uc.uc_stack, regs->sp);
sp                137 arch/nds32/kernel/traps.c void show_stack(struct task_struct *tsk, unsigned long *sp)
sp                145 arch/nds32/kernel/traps.c 			base_reg = (unsigned long *)(tsk->thread.cpu_context.sp);
sp                180 arch/nds32/kernel/traps.c 		dump_mem("Stack: ", regs->sp, (regs->sp + PAGE_SIZE) & PAGE_MASK);
sp                 12 arch/nds32/math-emu/fpuemu.c #define SPFROMREG(sp, x)\
sp                 13 arch/nds32/math-emu/fpuemu.c 	((sp) = (void *)((unsigned long *)fpu_reg + (x^1)))
sp                 15 arch/nds32/math-emu/fpuemu.c #define SPFROMREG(sp, x) ((sp) = (void *)((unsigned long *)fpu_reg + x))
sp                163 arch/nds32/mm/alignment.c 		return &regs->sp;
sp                284 arch/nios2/include/asm/asm-macros.h 	addi	sp, sp, -4
sp                285 arch/nios2/include/asm/asm-macros.h 	stw	\reg, 0(sp)
sp                293 arch/nios2/include/asm/asm-macros.h 	ldw	\reg, 0(sp)
sp                294 arch/nios2/include/asm/asm-macros.h 	addi	sp, sp, 4
sp                 56 arch/nios2/include/asm/elf.h 	pr_reg[18] = regs->sp;						\
sp                 31 arch/nios2/include/asm/entry.h 	stw	sp, PT_SP(r24)		/* Save user stack before changing */
sp                 32 arch/nios2/include/asm/entry.h 	mov	sp, r24
sp                 35 arch/nios2/include/asm/entry.h 1 :	mov	r24, sp
sp                 36 arch/nios2/include/asm/entry.h 	addi	sp, sp, -PT_REGS_SIZE	/* Backup the kernel stack pointer */
sp                 37 arch/nios2/include/asm/entry.h 	stw	r24, PT_SP(sp)
sp                 38 arch/nios2/include/asm/entry.h 2 :	stw	r1, PT_R1(sp)
sp                 39 arch/nios2/include/asm/entry.h 	stw	r2, PT_R2(sp)
sp                 40 arch/nios2/include/asm/entry.h 	stw	r3, PT_R3(sp)
sp                 41 arch/nios2/include/asm/entry.h 	stw	r4, PT_R4(sp)
sp                 42 arch/nios2/include/asm/entry.h 	stw	r5, PT_R5(sp)
sp                 43 arch/nios2/include/asm/entry.h 	stw	r6, PT_R6(sp)
sp                 44 arch/nios2/include/asm/entry.h 	stw	r7, PT_R7(sp)
sp                 45 arch/nios2/include/asm/entry.h 	stw	r8, PT_R8(sp)
sp                 46 arch/nios2/include/asm/entry.h 	stw	r9, PT_R9(sp)
sp                 47 arch/nios2/include/asm/entry.h 	stw	r10, PT_R10(sp)
sp                 48 arch/nios2/include/asm/entry.h 	stw	r11, PT_R11(sp)
sp                 49 arch/nios2/include/asm/entry.h 	stw	r12, PT_R12(sp)
sp                 50 arch/nios2/include/asm/entry.h 	stw	r13, PT_R13(sp)
sp                 51 arch/nios2/include/asm/entry.h 	stw	r14, PT_R14(sp)
sp                 52 arch/nios2/include/asm/entry.h 	stw	r15, PT_R15(sp)
sp                 53 arch/nios2/include/asm/entry.h 	stw	r2, PT_ORIG_R2(sp)
sp                 54 arch/nios2/include/asm/entry.h 	stw	r7, PT_ORIG_R7(sp)
sp                 56 arch/nios2/include/asm/entry.h 	stw	ra, PT_RA(sp)
sp                 57 arch/nios2/include/asm/entry.h 	stw	fp, PT_FP(sp)
sp                 58 arch/nios2/include/asm/entry.h 	stw	gp, PT_GP(sp)
sp                 60 arch/nios2/include/asm/entry.h 	stw	r24, PT_ESTATUS(sp)
sp                 61 arch/nios2/include/asm/entry.h 	stw	ea, PT_EA(sp)
sp                 65 arch/nios2/include/asm/entry.h 	ldw	r1, PT_R1(sp)		/* Restore registers */
sp                 66 arch/nios2/include/asm/entry.h 	ldw	r2, PT_R2(sp)
sp                 67 arch/nios2/include/asm/entry.h 	ldw	r3, PT_R3(sp)
sp                 68 arch/nios2/include/asm/entry.h 	ldw	r4, PT_R4(sp)
sp                 69 arch/nios2/include/asm/entry.h 	ldw	r5, PT_R5(sp)
sp                 70 arch/nios2/include/asm/entry.h 	ldw	r6, PT_R6(sp)
sp                 71 arch/nios2/include/asm/entry.h 	ldw	r7, PT_R7(sp)
sp                 72 arch/nios2/include/asm/entry.h 	ldw	r8, PT_R8(sp)
sp                 73 arch/nios2/include/asm/entry.h 	ldw	r9, PT_R9(sp)
sp                 74 arch/nios2/include/asm/entry.h 	ldw	r10, PT_R10(sp)
sp                 75 arch/nios2/include/asm/entry.h 	ldw	r11, PT_R11(sp)
sp                 76 arch/nios2/include/asm/entry.h 	ldw	r12, PT_R12(sp)
sp                 77 arch/nios2/include/asm/entry.h 	ldw	r13, PT_R13(sp)
sp                 78 arch/nios2/include/asm/entry.h 	ldw	r14, PT_R14(sp)
sp                 79 arch/nios2/include/asm/entry.h 	ldw	r15, PT_R15(sp)
sp                 80 arch/nios2/include/asm/entry.h 	ldw	ra, PT_RA(sp)
sp                 81 arch/nios2/include/asm/entry.h 	ldw	fp, PT_FP(sp)
sp                 82 arch/nios2/include/asm/entry.h 	ldw	gp, PT_GP(sp)
sp                 83 arch/nios2/include/asm/entry.h 	ldw	r24, PT_ESTATUS(sp)
sp                 85 arch/nios2/include/asm/entry.h 	ldw	ea, PT_EA(sp)
sp                 86 arch/nios2/include/asm/entry.h 	ldw	sp, PT_SP(sp)		/* Restore sp last */
sp                 90 arch/nios2/include/asm/entry.h 	addi	sp, sp, -SWITCH_STACK_SIZE
sp                 91 arch/nios2/include/asm/entry.h 	stw	r16, SW_R16(sp)
sp                 92 arch/nios2/include/asm/entry.h 	stw	r17, SW_R17(sp)
sp                 93 arch/nios2/include/asm/entry.h 	stw	r18, SW_R18(sp)
sp                 94 arch/nios2/include/asm/entry.h 	stw	r19, SW_R19(sp)
sp                 95 arch/nios2/include/asm/entry.h 	stw	r20, SW_R20(sp)
sp                 96 arch/nios2/include/asm/entry.h 	stw	r21, SW_R21(sp)
sp                 97 arch/nios2/include/asm/entry.h 	stw	r22, SW_R22(sp)
sp                 98 arch/nios2/include/asm/entry.h 	stw	r23, SW_R23(sp)
sp                 99 arch/nios2/include/asm/entry.h 	stw	fp, SW_FP(sp)
sp                100 arch/nios2/include/asm/entry.h 	stw	gp, SW_GP(sp)
sp                101 arch/nios2/include/asm/entry.h 	stw	ra, SW_RA(sp)
sp                105 arch/nios2/include/asm/entry.h 	ldw	r16, SW_R16(sp)
sp                106 arch/nios2/include/asm/entry.h 	ldw	r17, SW_R17(sp)
sp                107 arch/nios2/include/asm/entry.h 	ldw	r18, SW_R18(sp)
sp                108 arch/nios2/include/asm/entry.h 	ldw	r19, SW_R19(sp)
sp                109 arch/nios2/include/asm/entry.h 	ldw	r20, SW_R20(sp)
sp                110 arch/nios2/include/asm/entry.h 	ldw	r21, SW_R21(sp)
sp                111 arch/nios2/include/asm/entry.h 	ldw	r22, SW_R22(sp)
sp                112 arch/nios2/include/asm/entry.h 	ldw	r23, SW_R23(sp)
sp                113 arch/nios2/include/asm/entry.h 	ldw	fp, SW_FP(sp)
sp                114 arch/nios2/include/asm/entry.h 	ldw	gp, SW_GP(sp)
sp                115 arch/nios2/include/asm/entry.h 	ldw	ra, SW_RA(sp)
sp                116 arch/nios2/include/asm/entry.h 	addi	sp, sp, SWITCH_STACK_SIZE
sp                 63 arch/nios2/include/asm/processor.h 			unsigned long sp);
sp                 79 arch/nios2/include/asm/processor.h #define KSTK_ESP(tsk)	((tsk)->thread.kregs->sp)
sp                 41 arch/nios2/include/asm/ptrace.h 	unsigned long  sp;	/* Stack pointer */
sp                 70 arch/nios2/include/asm/ptrace.h #define user_stack_pointer(regs)	((regs)->sp)
sp                 69 arch/nios2/include/asm/thread_info.h 	register unsigned long sp asm("sp");
sp                 71 arch/nios2/include/asm/thread_info.h 	return (struct thread_info *)(sp & ~(THREAD_SIZE - 1));
sp                 47 arch/nios2/kernel/asm-offsets.c 	OFFSET(PT_SP, pt_regs, sp);
sp                 47 arch/nios2/kernel/kgdb.c 	{ "sp", GDB_SIZEOF_REG, offsetof(struct pt_regs, sp) },
sp                100 arch/nios2/kernel/kgdb.c 	gdb_regs[GDB_SP] = p->thread.kregs->sp;
sp                161 arch/nios2/kernel/misaligned.c 				(unsigned int)isn, addr, fp->sp,
sp                195 arch/nios2/kernel/misaligned.c 			fp->ea, fp->ra, fp->sp);
sp                 93 arch/nios2/kernel/process.c 		regs->ra,  regs->fp,  regs->sp,  regs->gp);
sp                120 arch/nios2/kernel/process.c 		childregs->sp = (unsigned long) childstack;
sp                139 arch/nios2/kernel/process.c 		childregs->sp = usp;
sp                153 arch/nios2/kernel/process.c 	unsigned long	*sp;
sp                187 arch/nios2/kernel/process.c 		fp->orig_r2, fp->ra, fp->fp, fp->sp);
sp                189 arch/nios2/kernel/process.c 		(unsigned int) fp->sp, (unsigned int) fp);
sp                193 arch/nios2/kernel/process.c 	for (sp = (unsigned long *) tp, i = 0; (i < 0x40);  i += 4) {
sp                196 arch/nios2/kernel/process.c 		pr_emerg("%08x ", (int) *sp++);
sp                202 arch/nios2/kernel/process.c 	for (sp = (unsigned long *) tp, i = 0; (i < 0xc0); i += 4) {
sp                205 arch/nios2/kernel/process.c 		pr_emerg("%08x ", (int) *sp++);
sp                211 arch/nios2/kernel/process.c 	tp = (unsigned char *) (fp->sp - 0x10);
sp                212 arch/nios2/kernel/process.c 	for (sp = (unsigned long *) tp, i = 0; (i < 0x80); i += 4) {
sp                215 arch/nios2/kernel/process.c 		pr_emerg("%08x ", (int) *sp++);
sp                247 arch/nios2/kernel/process.c void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp)
sp                252 arch/nios2/kernel/process.c 	regs->sp = sp;
sp                 52 arch/nios2/kernel/ptrace.c 	REG_O_ONE(&regs->sp, PTR_SP);
sp                 98 arch/nios2/kernel/ptrace.c 	REG_IN_ONE(&regs->sp, PTR_SP);
sp                 86 arch/nios2/kernel/signal.c 	err |= __get_user(regs->sp, &gregs[28]);
sp                105 arch/nios2/kernel/signal.c 	struct rt_sigframe *frame = (struct rt_sigframe *) regs->sp;
sp                161 arch/nios2/kernel/signal.c 	err |= __put_user(regs->sp, &gregs[28]);
sp                171 arch/nios2/kernel/signal.c 	usp = regs->sp;
sp                194 arch/nios2/kernel/signal.c 	err |= __save_altstack(&frame->uc.uc_stack, regs->sp);
sp                206 arch/nios2/kernel/signal.c 	regs->sp = (unsigned long) frame;
sp                 71 arch/openrisc/include/asm/processor.h #define KSTK_ESP(tsk)   (task_pt_regs(tsk)->sp)
sp                 74 arch/openrisc/include/asm/processor.h void start_thread(struct pt_regs *regs, unsigned long nip, unsigned long sp);
sp                 44 arch/openrisc/include/asm/ptrace.h 			long  sp;	/* r1 */
sp                 71 arch/openrisc/include/asm/ptrace.h #define user_stack_pointer(regs)	((unsigned long)(regs)->sp)
sp                156 arch/openrisc/kernel/process.c 	unsigned long sp = (unsigned long)task_stack_page(p) + THREAD_SIZE;
sp                159 arch/openrisc/kernel/process.c 	top_of_kernel_stack = sp;
sp                162 arch/openrisc/kernel/process.c 	sp -= STACK_FRAME_OVERHEAD;	/* redzone */
sp                163 arch/openrisc/kernel/process.c 	sp -= sizeof(struct pt_regs);
sp                164 arch/openrisc/kernel/process.c 	userregs = (struct pt_regs *) sp;
sp                167 arch/openrisc/kernel/process.c 	sp -= STACK_FRAME_OVERHEAD;	/* redzone */
sp                168 arch/openrisc/kernel/process.c 	sp -= sizeof(struct pt_regs);
sp                169 arch/openrisc/kernel/process.c 	kregs = (struct pt_regs *)sp;
sp                179 arch/openrisc/kernel/process.c 			userregs->sp = usp;
sp                202 arch/openrisc/kernel/process.c 	kregs->sp = top_of_kernel_stack;
sp                213 arch/openrisc/kernel/process.c void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp)
sp                221 arch/openrisc/kernel/process.c 	regs->sp = sp;
sp                 71 arch/openrisc/kernel/signal.c 	struct rt_sigframe *frame = (struct rt_sigframe __user *)regs->sp;
sp                121 arch/openrisc/kernel/signal.c static inline unsigned long align_sigframe(unsigned long sp)
sp                123 arch/openrisc/kernel/signal.c 	return sp & ~3UL;
sp                134 arch/openrisc/kernel/signal.c 	unsigned long sp = regs->sp;
sp                137 arch/openrisc/kernel/signal.c 	sp -= STACK_FRAME_OVERHEAD;
sp                138 arch/openrisc/kernel/signal.c 	sp = sigsp(sp, ksig);
sp                139 arch/openrisc/kernel/signal.c 	sp = align_sigframe(sp - frame_size);
sp                141 arch/openrisc/kernel/signal.c 	return (void __user *)sp;
sp                170 arch/openrisc/kernel/signal.c 	err |= __save_altstack(&frame->uc.uc_stack, regs->sp);
sp                200 arch/openrisc/kernel/signal.c 	regs->sp = (unsigned long)frame;
sp                 69 arch/openrisc/kernel/stacktrace.c 	unsigned long *sp = NULL;
sp                 72 arch/openrisc/kernel/stacktrace.c 		sp = (unsigned long *) &sp;
sp                 74 arch/openrisc/kernel/stacktrace.c 		sp = (unsigned long *) KSTK_ESP(tsk);
sp                 76 arch/openrisc/kernel/stacktrace.c 	unwind_stack(trace, sp, save_stack_address_nosched);
sp                 83 arch/openrisc/kernel/stacktrace.c 	unwind_stack(trace, (unsigned long *) regs->sp,
sp                 71 arch/openrisc/kernel/traps.c 	esp = (unsigned long)(regs->sp);
sp                 77 arch/openrisc/kernel/traps.c 	       smp_processor_id(), regs->pc, regs->sr, regs->sp);
sp                133 arch/openrisc/kernel/traps.c 	unsigned long addr, stack = regs->sp;
sp                139 arch/openrisc/kernel/traps.c 	       0, regs->pc, regs->sr, regs->sp);
sp                126 arch/openrisc/mm/fault.c 		if (address + PAGE_SIZE < regs->sp)
sp                 20 arch/parisc/include/asm/asmregs.h sp:	.reg	%r30
sp                 75 arch/parisc/include/asm/assembly.h 	sp	=	30
sp                251 arch/parisc/include/asm/processor.h 	elf_addr_t *sp = (elf_addr_t *)new_sp;		\
sp                271 arch/parisc/include/asm/processor.h 	regs->gr[30] = (((unsigned long)sp + 63) &~ 63) | (USER_WIDE_MODE ? 1 : 0); \
sp                 64 arch/parisc/include/asm/unwind.h 	unsigned long sp, ip, rp, r31;
sp               1706 arch/parisc/kernel/firmware.c 	unsigned int sp;
sp               1735 arch/parisc/kernel/firmware.c 	return real32_call_asm(&real_stack.sp, &real_stack.arg0, fn);
sp               1757 arch/parisc/kernel/firmware.c 	unsigned long sp;
sp               1786 arch/parisc/kernel/firmware.c 	return real64_call_asm(&real64_stack.sp, &real64_stack.arg0, fn);
sp                402 arch/parisc/kernel/irq.c 	unsigned long sp = regs->gr[30];
sp                417 arch/parisc/kernel/irq.c 	stack_usage = sp - stack_start;
sp                424 arch/parisc/kernel/irq.c 	stack_usage = sp - stack_start;
sp                435 arch/parisc/kernel/irq.c 		current->comm, sp, stack_start, stack_start + IRQ_STACK_SIZE);
sp                452 arch/parisc/kernel/irq.c 		current->comm, sp, stack_start, stack_start + THREAD_SIZE);
sp                176 arch/parisc/kernel/signal.c get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size)
sp                182 arch/parisc/kernel/signal.c 			(unsigned long)ka, sp, frame_size);
sp                186 arch/parisc/kernel/signal.c 	if ((ka->sa.sa_flags & SA_ONSTACK) != 0 && ! sas_ss_flags(sp))
sp                187 arch/parisc/kernel/signal.c 		sp = (current->sas_ss_sp + 0x7f) & ~0x3f; /* Stacks grow up! */
sp                189 arch/parisc/kernel/signal.c 	DBG(1,"get_sigframe: Returning sp = %#lx\n", (unsigned long)sp);
sp                190 arch/parisc/kernel/signal.c 	return (void __user *) sp; /* Stacks grow up.  Fun. */
sp                201 arch/parisc/kernel/traps.c void show_stack(struct task_struct *t, unsigned long *sp)
sp                225 arch/parisc/kernel/unwind.c 		struct pt_regs *regs = (struct pt_regs *)(info->sp - frame_size - PT_SZ_ALGN);
sp                242 arch/parisc/kernel/unwind.c 		regs = (struct pt_regs *)(info->sp - PT_SZ_ALGN);
sp                250 arch/parisc/kernel/unwind.c 		info->prev_sp = info->sp - CALLEE_SAVE_FRAME_SIZE;
sp                257 arch/parisc/kernel/unwind.c 		info->prev_sp = *(unsigned long *)(info->sp - FRAME_SIZE - REG_SZ);
sp                258 arch/parisc/kernel/unwind.c 		info->prev_ip = *(unsigned long *)(info->sp - FRAME_SIZE - RP_OFFSET);
sp                276 arch/parisc/kernel/unwind.c 		unsigned long sp;
sp                288 arch/parisc/kernel/unwind.c 		sp = info->sp & ~63;
sp                292 arch/parisc/kernel/unwind.c 			info->prev_sp = sp - 64;
sp                308 arch/parisc/kernel/unwind.c 			sp = info->prev_sp;
sp                364 arch/parisc/kernel/unwind.c 			info->prev_sp = info->sp - frame_size;
sp                384 arch/parisc/kernel/unwind.c 	info->sp = regs->gr[30];
sp                390 arch/parisc/kernel/unwind.c 	    t ? (int)t->pid : -1, info->sp, info->ip);
sp                409 arch/parisc/kernel/unwind.c 	unsigned long sp; \
sp                410 arch/parisc/kernel/unwind.c 	__asm__("copy %%r30, %0" : "=r"(sp)); \
sp                411 arch/parisc/kernel/unwind.c 	(sp); \
sp                443 arch/parisc/kernel/unwind.c 	next_frame->sp = next_frame->prev_sp;
sp                450 arch/parisc/kernel/unwind.c 	    next_frame->sp, next_frame->ip);
sp                138 arch/powerpc/include/asm/asm-prototypes.h 						unsigned long sp);
sp                 52 arch/powerpc/include/asm/book3s/32/kup.h .macro kuap_save_and_lock	sp, thread, gpr1, gpr2, gpr3
sp                 65 arch/powerpc/include/asm/book3s/32/kup.h .macro kuap_restore	sp, current, gpr1, gpr2, gpr3
sp                  8 arch/powerpc/include/asm/exec.h extern unsigned long arch_align_stack(unsigned long sp);
sp                 59 arch/powerpc/include/asm/irq.h void call_do_softirq(void *sp);
sp                 60 arch/powerpc/include/asm/irq.h void call_do_irq(struct pt_regs *regs, void *sp);
sp                 21 arch/powerpc/include/asm/kup.h .macro kuap_save_and_lock	sp, thread, gpr1, gpr2, gpr3
sp                 24 arch/powerpc/include/asm/kup.h .macro kuap_restore	sp, current, gpr1, gpr2, gpr3
sp                 11 arch/powerpc/include/asm/nohash/32/kup-8xx.h .macro kuap_save_and_lock	sp, thread, gpr1, gpr2, gpr3
sp                 18 arch/powerpc/include/asm/nohash/32/kup-8xx.h .macro kuap_restore	sp, current, gpr1, gpr2, gpr3
sp                 83 arch/powerpc/include/asm/processor.h void start_thread(struct pt_regs *regs, unsigned long fdptr, unsigned long sp);
sp                367 arch/powerpc/include/asm/processor.h int validate_sp(unsigned long sp, struct task_struct *p,
sp                398 arch/powerpc/include/asm/processor.h static inline unsigned long get_clean_sp(unsigned long sp, int is_32)
sp                401 arch/powerpc/include/asm/processor.h 		return sp & 0x0ffffffffUL;
sp                402 arch/powerpc/include/asm/processor.h 	return sp;
sp                405 arch/powerpc/include/asm/processor.h static inline unsigned long get_clean_sp(unsigned long sp, int is_32)
sp                407 arch/powerpc/include/asm/processor.h 	return sp;
sp                602 arch/powerpc/kernel/irq.c 	long sp;
sp                604 arch/powerpc/kernel/irq.c 	sp = current_stack_pointer() & (THREAD_SIZE-1);
sp                607 arch/powerpc/kernel/irq.c 	if (unlikely(sp < 2048)) {
sp                608 arch/powerpc/kernel/irq.c 		pr_err("do_IRQ: stack overflow: %ld\n", sp);
sp                743 arch/powerpc/kernel/nvram_64.c 	unsigned short *sp = (unsigned short *)p->name; /* assume 6 shorts */
sp                744 arch/powerpc/kernel/nvram_64.c 	c_sum = p->signature + p->length + sp[0] + sp[1] + sp[2] + sp[3] + sp[4] + sp[5];
sp               1563 arch/powerpc/kernel/process.c static void setup_ksp_vsid(struct task_struct *p, unsigned long sp)
sp               1573 arch/powerpc/kernel/process.c 		sp_vsid = get_kernel_vsid(sp, MMU_SEGSIZE_1T)
sp               1576 arch/powerpc/kernel/process.c 		sp_vsid = get_kernel_vsid(sp, MMU_SEGSIZE_256M)
sp               1598 arch/powerpc/kernel/process.c 	unsigned long sp = (unsigned long)task_stack_page(p) + THREAD_SIZE;
sp               1604 arch/powerpc/kernel/process.c 	sp -= sizeof(struct pt_regs);
sp               1605 arch/powerpc/kernel/process.c 	childregs = (struct pt_regs *) sp;
sp               1609 arch/powerpc/kernel/process.c 		childregs->gpr[1] = sp + sizeof(struct pt_regs);
sp               1642 arch/powerpc/kernel/process.c 	sp -= STACK_FRAME_OVERHEAD;
sp               1652 arch/powerpc/kernel/process.c 	((unsigned long *)sp)[0] = 0;
sp               1653 arch/powerpc/kernel/process.c 	sp -= sizeof(struct pt_regs);
sp               1654 arch/powerpc/kernel/process.c 	kregs = (struct pt_regs *) sp;
sp               1655 arch/powerpc/kernel/process.c 	sp -= STACK_FRAME_OVERHEAD;
sp               1656 arch/powerpc/kernel/process.c 	p->thread.ksp = sp;
sp               1669 arch/powerpc/kernel/process.c 	setup_ksp_vsid(p, sp);
sp               1685 arch/powerpc/kernel/process.c void preload_new_slb_context(unsigned long start, unsigned long sp);
sp               1690 arch/powerpc/kernel/process.c void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
sp               1697 arch/powerpc/kernel/process.c 		preload_new_slb_context(start, sp);
sp               1725 arch/powerpc/kernel/process.c 	regs->gpr[1] = sp;
sp               1956 arch/powerpc/kernel/process.c static inline int valid_irq_stack(unsigned long sp, struct task_struct *p,
sp               1963 arch/powerpc/kernel/process.c 	if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes)
sp               1967 arch/powerpc/kernel/process.c 	if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes)
sp               1973 arch/powerpc/kernel/process.c int validate_sp(unsigned long sp, struct task_struct *p,
sp               1978 arch/powerpc/kernel/process.c 	if (sp < THREAD_SIZE)
sp               1981 arch/powerpc/kernel/process.c 	if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes)
sp               1984 arch/powerpc/kernel/process.c 	return valid_irq_stack(sp, p, nbytes);
sp               1991 arch/powerpc/kernel/process.c 	unsigned long ip, sp;
sp               1997 arch/powerpc/kernel/process.c 	sp = p->thread.ksp;
sp               1998 arch/powerpc/kernel/process.c 	if (!validate_sp(sp, p, STACK_FRAME_OVERHEAD))
sp               2002 arch/powerpc/kernel/process.c 		sp = *(unsigned long *)sp;
sp               2003 arch/powerpc/kernel/process.c 		if (!validate_sp(sp, p, STACK_FRAME_OVERHEAD) ||
sp               2007 arch/powerpc/kernel/process.c 			ip = ((unsigned long *)sp)[STACK_FRAME_LR_SAVE];
sp               2033 arch/powerpc/kernel/process.c 	unsigned long sp, ip, lr, newsp;
sp               2047 arch/powerpc/kernel/process.c 	sp = (unsigned long) stack;
sp               2048 arch/powerpc/kernel/process.c 	if (sp == 0) {
sp               2050 arch/powerpc/kernel/process.c 			sp = current_stack_pointer();
sp               2052 arch/powerpc/kernel/process.c 			sp = tsk->thread.ksp;
sp               2058 arch/powerpc/kernel/process.c 		if (!validate_sp(sp, tsk, STACK_FRAME_OVERHEAD))
sp               2061 arch/powerpc/kernel/process.c 		stack = (unsigned long *) sp;
sp               2065 arch/powerpc/kernel/process.c 			printk("["REG"] ["REG"] %pS", sp, ip, (void *)ip);
sp               2082 arch/powerpc/kernel/process.c 		if (validate_sp(sp, tsk, STACK_INT_FRAME_SIZE)
sp               2085 arch/powerpc/kernel/process.c 				(sp + STACK_FRAME_OVERHEAD);
sp               2092 arch/powerpc/kernel/process.c 		sp = newsp;
sp               2145 arch/powerpc/kernel/process.c unsigned long arch_align_stack(unsigned long sp)
sp               2148 arch/powerpc/kernel/process.c 		sp -= get_random_int() & ~PAGE_MASK;
sp               2149 arch/powerpc/kernel/process.c 	return sp & ~0xf;
sp                698 arch/powerpc/kernel/setup_64.c 		void *sp;
sp                700 arch/powerpc/kernel/setup_64.c 		sp = alloc_stack(ULONG_MAX, i);
sp                701 arch/powerpc/kernel/setup_64.c 		critirq_ctx[i] = sp;
sp                702 arch/powerpc/kernel/setup_64.c 		paca_ptrs[i]->crit_kstack = sp + THREAD_SIZE;
sp                704 arch/powerpc/kernel/setup_64.c 		sp = alloc_stack(ULONG_MAX, i);
sp                705 arch/powerpc/kernel/setup_64.c 		dbgirq_ctx[i] = sp;
sp                706 arch/powerpc/kernel/setup_64.c 		paca_ptrs[i]->dbg_kstack = sp + THREAD_SIZE;
sp                708 arch/powerpc/kernel/setup_64.c 		sp = alloc_stack(ULONG_MAX, i);
sp                709 arch/powerpc/kernel/setup_64.c 		mcheckirq_ctx[i] = sp;
sp                710 arch/powerpc/kernel/setup_64.c 		paca_ptrs[i]->mc_kstack = sp + THREAD_SIZE;
sp                 36 arch/powerpc/kernel/signal.c void __user *get_sigframe(struct ksignal *ksig, unsigned long sp,
sp                 42 arch/powerpc/kernel/signal.c         oldsp = get_clean_sp(sp, is_32);
sp                 15 arch/powerpc/kernel/signal.h extern void __user *get_sigframe(struct ksignal *ksig, unsigned long sp,
sp                 29 arch/powerpc/kernel/stacktrace.c static void save_context_stack(struct stack_trace *trace, unsigned long sp,
sp                 33 arch/powerpc/kernel/stacktrace.c 		unsigned long *stack = (unsigned long *) sp;
sp                 36 arch/powerpc/kernel/stacktrace.c 		if (!validate_sp(sp, tsk, STACK_FRAME_OVERHEAD))
sp                 52 arch/powerpc/kernel/stacktrace.c 		sp = newsp;
sp                 58 arch/powerpc/kernel/stacktrace.c 	unsigned long sp;
sp                 60 arch/powerpc/kernel/stacktrace.c 	sp = current_stack_pointer();
sp                 62 arch/powerpc/kernel/stacktrace.c 	save_context_stack(trace, sp, current, 1);
sp                 68 arch/powerpc/kernel/stacktrace.c 	unsigned long sp;
sp                 74 arch/powerpc/kernel/stacktrace.c 		sp = current_stack_pointer();
sp                 76 arch/powerpc/kernel/stacktrace.c 		sp = tsk->thread.ksp;
sp                 78 arch/powerpc/kernel/stacktrace.c 	save_context_stack(trace, sp, tsk, 0);
sp                101 arch/powerpc/kernel/stacktrace.c 	unsigned long sp;
sp                134 arch/powerpc/kernel/stacktrace.c 		sp = current_stack_pointer();
sp                136 arch/powerpc/kernel/stacktrace.c 		sp = tsk->thread.ksp;
sp                138 arch/powerpc/kernel/stacktrace.c 	if (sp < stack_page + sizeof(struct thread_struct) ||
sp                139 arch/powerpc/kernel/stacktrace.c 	    sp > stack_end - STACK_FRAME_MIN_SIZE) {
sp                143 arch/powerpc/kernel/stacktrace.c 	for (firstframe = true; sp != stack_end;
sp                144 arch/powerpc/kernel/stacktrace.c 	     firstframe = false, sp = newsp) {
sp                145 arch/powerpc/kernel/stacktrace.c 		unsigned long *stack = (unsigned long *) sp;
sp                149 arch/powerpc/kernel/stacktrace.c 		if (sp & 0xF)
sp                154 arch/powerpc/kernel/stacktrace.c 		if (newsp <= sp)
sp                171 arch/powerpc/kernel/stacktrace.c 		if (sp <= stack_end - STACK_INT_FRAME_SIZE &&
sp                948 arch/powerpc/kernel/trace/ftrace.c 						unsigned long sp)
sp                960 arch/powerpc/kernel/trace/ftrace.c 	if (!function_graph_enter(parent, ip, 0, (unsigned long *)sp))
sp                 43 arch/powerpc/lib/sstep.c extern void conv_sp_to_dp(const float *sp, double *dp);
sp                 44 arch/powerpc/lib/sstep.c extern void conv_dp_to_sp(const double *dp, float *sp);
sp                365 arch/powerpc/mm/book3s64/slb.c void preload_new_slb_context(unsigned long start, unsigned long sp)
sp                386 arch/powerpc/mm/book3s64/slb.c 	if (!is_kernel_addr(sp)) {
sp                387 arch/powerpc/mm/book3s64/slb.c 		if (preload_add(ti, sp))
sp                388 arch/powerpc/mm/book3s64/slb.c 			slb_allocate_user(mm, sp);
sp                 26 arch/powerpc/oprofile/backtrace.c static unsigned int user_getsp32(unsigned int sp, int is_first)
sp                 29 arch/powerpc/oprofile/backtrace.c 	void __user *p = compat_ptr(sp);
sp                 53 arch/powerpc/oprofile/backtrace.c static unsigned long user_getsp64(unsigned long sp, int is_first)
sp                 57 arch/powerpc/oprofile/backtrace.c 	if (!access_ok((void __user *)sp, sizeof(stack_frame)))
sp                 60 arch/powerpc/oprofile/backtrace.c 	if (__copy_from_user_inatomic(stack_frame, (void __user *)sp,
sp                 71 arch/powerpc/oprofile/backtrace.c static unsigned long kernel_getsp(unsigned long sp, int is_first)
sp                 73 arch/powerpc/oprofile/backtrace.c 	unsigned long *stack_frame = (unsigned long *)sp;
sp                 75 arch/powerpc/oprofile/backtrace.c 	if (!validate_sp(sp, current, STACK_FRAME_OVERHEAD))
sp                 92 arch/powerpc/oprofile/backtrace.c 	unsigned long sp = regs->gpr[1];
sp                100 arch/powerpc/oprofile/backtrace.c 			sp = kernel_getsp(sp, first_frame);
sp                101 arch/powerpc/oprofile/backtrace.c 			if (!sp)
sp                110 arch/powerpc/oprofile/backtrace.c 				sp = user_getsp64(sp, first_frame);
sp                111 arch/powerpc/oprofile/backtrace.c 				if (!sp)
sp                121 arch/powerpc/oprofile/backtrace.c 			sp = user_getsp32(sp, first_frame);
sp                122 arch/powerpc/oprofile/backtrace.c 			if (!sp)
sp                 29 arch/powerpc/perf/callchain.c static int valid_next_sp(unsigned long sp, unsigned long prev_sp)
sp                 31 arch/powerpc/perf/callchain.c 	if (sp & 0xf)
sp                 33 arch/powerpc/perf/callchain.c 	if (!validate_sp(sp, current, STACK_FRAME_OVERHEAD))
sp                 35 arch/powerpc/perf/callchain.c 	if (sp >= prev_sp + STACK_FRAME_MIN_SIZE)
sp                 41 arch/powerpc/perf/callchain.c 	if ((sp & ~(THREAD_SIZE - 1)) != (prev_sp & ~(THREAD_SIZE - 1)))
sp                 49 arch/powerpc/perf/callchain.c 	unsigned long sp, next_sp;
sp                 56 arch/powerpc/perf/callchain.c 	sp = regs->gpr[1];
sp                 59 arch/powerpc/perf/callchain.c 	if (!validate_sp(sp, current, STACK_FRAME_OVERHEAD))
sp                 63 arch/powerpc/perf/callchain.c 		fp = (unsigned long *) sp;
sp                 66 arch/powerpc/perf/callchain.c 		if (next_sp == sp + STACK_INT_FRAME_SIZE &&
sp                 72 arch/powerpc/perf/callchain.c 			regs = (struct pt_regs *)(sp + STACK_FRAME_OVERHEAD);
sp                 99 arch/powerpc/perf/callchain.c 		if (!valid_next_sp(next_sp, sp))
sp                101 arch/powerpc/perf/callchain.c 		sp = next_sp;
sp                184 arch/powerpc/perf/callchain.c static inline int valid_user_sp(unsigned long sp, int is_64)
sp                186 arch/powerpc/perf/callchain.c 	if (!sp || (sp & 7) || sp > (is_64 ? TASK_SIZE : 0x100000000UL) - 32)
sp                219 arch/powerpc/perf/callchain.c static int sane_signal_64_frame(unsigned long sp)
sp                224 arch/powerpc/perf/callchain.c 	sf = (struct signal_frame_64 __user *) sp;
sp                235 arch/powerpc/perf/callchain.c 	unsigned long sp, next_sp;
sp                244 arch/powerpc/perf/callchain.c 	sp = regs->gpr[1];
sp                248 arch/powerpc/perf/callchain.c 		fp = (unsigned long __user *) sp;
sp                249 arch/powerpc/perf/callchain.c 		if (!valid_user_sp(sp, 1) || read_user_stack_64(fp, &next_sp))
sp                260 arch/powerpc/perf/callchain.c 		if (next_sp - sp >= sizeof(struct signal_frame_64) &&
sp                261 arch/powerpc/perf/callchain.c 		    (is_sigreturn_64_address(next_ip, sp) ||
sp                262 arch/powerpc/perf/callchain.c 		     (level <= 1 && is_sigreturn_64_address(lr, sp))) &&
sp                263 arch/powerpc/perf/callchain.c 		    sane_signal_64_frame(sp)) {
sp                267 arch/powerpc/perf/callchain.c 			sigframe = (struct signal_frame_64 __user *) sp;
sp                271 arch/powerpc/perf/callchain.c 			    read_user_stack_64(&uregs[PT_R1], &sp))
sp                283 arch/powerpc/perf/callchain.c 		sp = next_sp;
sp                329 arch/powerpc/perf/callchain.c static inline int valid_user_sp(unsigned long sp, int is_64)
sp                331 arch/powerpc/perf/callchain.c 	if (!sp || (sp & 7) || sp > TASK_SIZE - 32)
sp                385 arch/powerpc/perf/callchain.c static int sane_signal_32_frame(unsigned int sp)
sp                390 arch/powerpc/perf/callchain.c 	sf = (struct signal_frame_32 __user *) (unsigned long) sp;
sp                396 arch/powerpc/perf/callchain.c static int sane_rt_signal_32_frame(unsigned int sp)
sp                401 arch/powerpc/perf/callchain.c 	sf = (struct rt_signal_frame_32 __user *) (unsigned long) sp;
sp                407 arch/powerpc/perf/callchain.c static unsigned int __user *signal_frame_32_regs(unsigned int sp,
sp                420 arch/powerpc/perf/callchain.c 	if (next_sp - sp >= sizeof(struct signal_frame_32) &&
sp                421 arch/powerpc/perf/callchain.c 	    is_sigreturn_32_address(next_ip, sp) &&
sp                422 arch/powerpc/perf/callchain.c 	    sane_signal_32_frame(sp)) {
sp                423 arch/powerpc/perf/callchain.c 		sf = (struct signal_frame_32 __user *) (unsigned long) sp;
sp                427 arch/powerpc/perf/callchain.c 	if (!mctx && next_sp - sp >= sizeof(struct rt_signal_frame_32) &&
sp                428 arch/powerpc/perf/callchain.c 	    is_rt_sigreturn_32_address(next_ip, sp) &&
sp                429 arch/powerpc/perf/callchain.c 	    sane_rt_signal_32_frame(sp)) {
sp                430 arch/powerpc/perf/callchain.c 		rt_sf = (struct rt_signal_frame_32 __user *) (unsigned long) sp;
sp                442 arch/powerpc/perf/callchain.c 	unsigned int sp, next_sp;
sp                450 arch/powerpc/perf/callchain.c 	sp = regs->gpr[1];
sp                454 arch/powerpc/perf/callchain.c 		fp = (unsigned int __user *) (unsigned long) sp;
sp                455 arch/powerpc/perf/callchain.c 		if (!valid_user_sp(sp, 0) || read_user_stack_32(fp, &next_sp))
sp                460 arch/powerpc/perf/callchain.c 		uregs = signal_frame_32_regs(sp, next_sp, next_ip);
sp                462 arch/powerpc/perf/callchain.c 			uregs = signal_frame_32_regs(sp, next_sp, lr);
sp                470 arch/powerpc/perf/callchain.c 			    read_user_stack_32(&uregs[PT_R1], &sp))
sp                482 arch/powerpc/perf/callchain.c 		sp = next_sp;
sp                 96 arch/powerpc/platforms/maple/setup.c 	struct device_node *sp;
sp                103 arch/powerpc/platforms/maple/setup.c 	sp = of_find_node_by_name(NULL, "service-processor");
sp                104 arch/powerpc/platforms/maple/setup.c 	if (!sp) {
sp                108 arch/powerpc/platforms/maple/setup.c 	maple_nvram_offset = of_get_property(sp, "restart-addr", NULL);
sp                109 arch/powerpc/platforms/maple/setup.c 	maple_nvram_command = of_get_property(sp, "restart-value", NULL);
sp                110 arch/powerpc/platforms/maple/setup.c 	of_node_put(sp);
sp                124 arch/powerpc/platforms/maple/setup.c 	struct device_node *sp;
sp                131 arch/powerpc/platforms/maple/setup.c 	sp = of_find_node_by_name(NULL, "service-processor");
sp                132 arch/powerpc/platforms/maple/setup.c 	if (!sp) {
sp                136 arch/powerpc/platforms/maple/setup.c 	maple_nvram_offset = of_get_property(sp, "power-off-addr", NULL);
sp                137 arch/powerpc/platforms/maple/setup.c 	maple_nvram_command = of_get_property(sp, "power-off-value", NULL);
sp                138 arch/powerpc/platforms/maple/setup.c 	of_node_put(sp);
sp                176 arch/powerpc/xmon/xmon.c static void xmon_show_stack(unsigned long sp, unsigned long lr,
sp               1563 arch/powerpc/xmon/xmon.c static void xmon_show_stack(unsigned long sp, unsigned long lr,
sp               1573 arch/powerpc/xmon/xmon.c 		if (!is_kernel_addr(sp)) {
sp               1574 arch/powerpc/xmon/xmon.c 			if (sp != 0)
sp               1575 arch/powerpc/xmon/xmon.c 				printf("SP (%lx) is in userspace\n", sp);
sp               1579 arch/powerpc/xmon/xmon.c 		if (!mread(sp + LRSAVE_OFFSET, &ip, sizeof(unsigned long))
sp               1580 arch/powerpc/xmon/xmon.c 		    || !mread(sp, &newsp, sizeof(unsigned long))) {
sp               1581 arch/powerpc/xmon/xmon.c 			printf("Couldn't read stack frame at %lx\n", sp);
sp               1597 arch/powerpc/xmon/xmon.c 			if (newsp > sp)
sp               1612 arch/powerpc/xmon/xmon.c 				printf("["REG"] ", sp);
sp               1618 arch/powerpc/xmon/xmon.c 			printf("["REG"] ", sp);
sp               1624 arch/powerpc/xmon/xmon.c 		if (mread(sp + MARKER_OFFSET, &marker, sizeof(unsigned long))
sp               1626 arch/powerpc/xmon/xmon.c 			if (mread(sp + STACK_FRAME_OVERHEAD, &regs, sizeof(regs))
sp               1629 arch/powerpc/xmon/xmon.c 				       sp + STACK_FRAME_OVERHEAD);
sp               1642 arch/powerpc/xmon/xmon.c 		sp = newsp;
sp               1648 arch/powerpc/xmon/xmon.c 	unsigned long sp;
sp               1650 arch/powerpc/xmon/xmon.c 	if (scanhex(&sp))
sp               1651 arch/powerpc/xmon/xmon.c 		xmon_show_stack(sp, 0, 0);
sp               1995 arch/powerpc/xmon/xmon.c 		unsigned long sp, toc;
sp               1996 arch/powerpc/xmon/xmon.c 		asm("mr %0,1" : "=r" (sp) :);
sp               2005 arch/powerpc/xmon/xmon.c 		printf("sp     = "REG"  sprg3 = "REG"\n", sp, mfspr(SPRN_SPRG3));
sp                 32 arch/riscv/include/asm/processor.h 	unsigned long sp;	/* Kernel mode stack */
sp                 38 arch/riscv/include/asm/processor.h 	.sp = sizeof(init_stack) + (long)&init_stack,	\
sp                 46 arch/riscv/include/asm/processor.h #define KSTK_ESP(tsk)		(task_pt_regs(tsk)->sp)
sp                 51 arch/riscv/include/asm/processor.h 			unsigned long pc, unsigned long sp);
sp                 17 arch/riscv/include/asm/ptrace.h 	unsigned long sp;
sp                 80 arch/riscv/include/asm/ptrace.h 	return regs->sp;
sp                 85 arch/riscv/include/asm/ptrace.h 	regs->sp =  val;
sp                 22 arch/riscv/include/uapi/asm/ptrace.h 	unsigned long sp;
sp                 17 arch/riscv/kernel/asm-offsets.c 	OFFSET(TASK_THREAD_SP, task_struct, thread.sp);
sp                 30 arch/riscv/kernel/asm-offsets.c 	OFFSET(TASK_THREAD_SP, task_struct, thread.sp);
sp                 89 arch/riscv/kernel/asm-offsets.c 	OFFSET(PT_SP, pt_regs, sp);
sp                122 arch/riscv/kernel/asm-offsets.c 		  offsetof(struct task_struct, thread.sp)
sp                 39 arch/riscv/kernel/process.c 		regs->sepc, regs->ra, regs->sp);
sp                 66 arch/riscv/kernel/process.c 	unsigned long sp)
sp                 78 arch/riscv/kernel/process.c 	regs->sp = sp;
sp                121 arch/riscv/kernel/process.c 			childregs->sp = usp;
sp                127 arch/riscv/kernel/process.c 	p->thread.sp = (unsigned long)childregs; /* kernel sp */
sp                103 arch/riscv/kernel/signal.c 	frame = (struct rt_sigframe __user *)regs->sp;
sp                127 arch/riscv/kernel/signal.c 			frame, (void *)regs->sepc, (void *)regs->sp);
sp                149 arch/riscv/kernel/signal.c 	unsigned long sp;
sp                151 arch/riscv/kernel/signal.c 	sp = regs->sp;
sp                157 arch/riscv/kernel/signal.c 	if (on_sig_stack(sp) && !likely(on_sig_stack(sp - framesize)))
sp                161 arch/riscv/kernel/signal.c 	sp = sigsp(sp, ksig) - framesize;
sp                164 arch/riscv/kernel/signal.c 	sp &= ~0xfUL;
sp                166 arch/riscv/kernel/signal.c 	return (void __user *)sp;
sp                185 arch/riscv/kernel/signal.c 	err |= __save_altstack(&frame->uc.uc_stack, regs->sp);
sp                203 arch/riscv/kernel/signal.c 	regs->sp = (unsigned long)frame;
sp                 25 arch/riscv/kernel/stacktrace.c 	unsigned long fp, sp, pc;
sp                 29 arch/riscv/kernel/stacktrace.c 		sp = user_stack_pointer(regs);
sp                 34 arch/riscv/kernel/stacktrace.c 		sp = current_sp;
sp                 39 arch/riscv/kernel/stacktrace.c 		sp = task->thread.sp;
sp                 51 arch/riscv/kernel/stacktrace.c 		low = sp + sizeof(struct stackframe);
sp                 52 arch/riscv/kernel/stacktrace.c 		high = ALIGN(sp, THREAD_SIZE);
sp                 57 arch/riscv/kernel/stacktrace.c 		sp = fp;
sp                 69 arch/riscv/kernel/stacktrace.c 	unsigned long sp, pc;
sp                 73 arch/riscv/kernel/stacktrace.c 		sp = user_stack_pointer(regs);
sp                 77 arch/riscv/kernel/stacktrace.c 		sp = current_sp;
sp                 81 arch/riscv/kernel/stacktrace.c 		sp = task->thread.sp;
sp                 85 arch/riscv/kernel/stacktrace.c 	if (unlikely(sp & 0x7))
sp                 88 arch/riscv/kernel/stacktrace.c 	ksp = (unsigned long *)sp;
sp                105 arch/riscv/kernel/stacktrace.c void show_stack(struct task_struct *task, unsigned long *sp)
sp                 11 arch/s390/include/asm/exec.h extern unsigned long arch_align_stack(unsigned long sp);
sp                 48 arch/s390/include/asm/nmi.h 		u64 sp :  1; /* 10 service-processor damage */
sp                212 arch/s390/include/asm/processor.h 	unsigned long sp;
sp                214 arch/s390/include/asm/processor.h 	asm volatile("la %0,0(15)" : "=a" (sp));
sp                215 arch/s390/include/asm/processor.h 	return sp;
sp                 23 arch/s390/include/asm/stacktrace.h int get_stack_info(unsigned long sp, struct task_struct *task,
sp                 37 arch/s390/include/asm/unwind.h 	unsigned long sp, ip;
sp                 62 arch/s390/include/asm/unwind.h 				unsigned long sp)
sp                 64 arch/s390/include/asm/unwind.h 	sp = sp ? : get_stack_pointer(task, regs);
sp                 65 arch/s390/include/asm/unwind.h 	__unwind_start(state, task, regs, sp);
sp                235 arch/s390/kernel/compat_signal.c 	unsigned long sp;
sp                238 arch/s390/kernel/compat_signal.c 	sp = (unsigned long) A(regs->gprs[15]);
sp                241 arch/s390/kernel/compat_signal.c 	if (on_sig_stack(sp) && !on_sig_stack((sp - frame_size) & -8UL))
sp                246 arch/s390/kernel/compat_signal.c 		if (! sas_ss_flags(sp))
sp                247 arch/s390/kernel/compat_signal.c 			sp = current->sas_ss_sp + current->sas_ss_size;
sp                250 arch/s390/kernel/compat_signal.c 	return (void __user *)((sp - frame_size) & -8ul);
sp                 42 arch/s390/kernel/dumpstack.c static inline bool in_stack(unsigned long sp, struct stack_info *info,
sp                 46 arch/s390/kernel/dumpstack.c 	if (sp < low || sp >= high)
sp                 54 arch/s390/kernel/dumpstack.c static bool in_task_stack(unsigned long sp, struct task_struct *task,
sp                 60 arch/s390/kernel/dumpstack.c 	return in_stack(sp, info, STACK_TYPE_TASK, stack, stack + THREAD_SIZE);
sp                 63 arch/s390/kernel/dumpstack.c static bool in_irq_stack(unsigned long sp, struct stack_info *info)
sp                 69 arch/s390/kernel/dumpstack.c 	return in_stack(sp, info, STACK_TYPE_IRQ, top - THREAD_SIZE, top);
sp                 72 arch/s390/kernel/dumpstack.c static bool in_nodat_stack(unsigned long sp, struct stack_info *info)
sp                 78 arch/s390/kernel/dumpstack.c 	return in_stack(sp, info, STACK_TYPE_NODAT, top - THREAD_SIZE, top);
sp                 81 arch/s390/kernel/dumpstack.c static bool in_restart_stack(unsigned long sp, struct stack_info *info)
sp                 87 arch/s390/kernel/dumpstack.c 	return in_stack(sp, info, STACK_TYPE_RESTART, top - THREAD_SIZE, top);
sp                 90 arch/s390/kernel/dumpstack.c int get_stack_info(unsigned long sp, struct task_struct *task,
sp                 93 arch/s390/kernel/dumpstack.c 	if (!sp)
sp                 99 arch/s390/kernel/dumpstack.c 	if (in_task_stack(sp, task, info))
sp                106 arch/s390/kernel/dumpstack.c 	if (!in_irq_stack(sp, info) &&
sp                107 arch/s390/kernel/dumpstack.c 	    !in_nodat_stack(sp, info) &&
sp                108 arch/s390/kernel/dumpstack.c 	    !in_restart_stack(sp, info))
sp                 67 arch/s390/kernel/entry.h unsigned long prepare_ftrace_return(unsigned long parent, unsigned long sp, unsigned long ip);
sp                204 arch/s390/kernel/ftrace.c unsigned long prepare_ftrace_return(unsigned long ra, unsigned long sp,
sp                212 arch/s390/kernel/ftrace.c 	if (!function_graph_enter(ra, ip, 0, (void *) sp))
sp                214 arch/s390/kernel/process.c unsigned long arch_align_stack(unsigned long sp)
sp                217 arch/s390/kernel/process.c 		sp -= get_random_int() & ~PAGE_MASK;
sp                218 arch/s390/kernel/process.c 	return sp & ~0xf;
sp                269 arch/s390/kernel/signal.c 	unsigned long sp;
sp                272 arch/s390/kernel/signal.c 	sp = regs->gprs[15];
sp                275 arch/s390/kernel/signal.c 	if (on_sig_stack(sp) && !on_sig_stack((sp - frame_size) & -8UL))
sp                280 arch/s390/kernel/signal.c 		if (! sas_ss_flags(sp))
sp                281 arch/s390/kernel/signal.c 			sp = current->sas_ss_sp + current->sas_ss_size;
sp                284 arch/s390/kernel/signal.c 	return (void __user *)((sp - frame_size) & -8ul);
sp                 20 arch/s390/kernel/unwind_bc.c static bool outside_of_stack(struct unwind_state *state, unsigned long sp)
sp                 22 arch/s390/kernel/unwind_bc.c 	return (sp <= state->sp) ||
sp                 23 arch/s390/kernel/unwind_bc.c 		(sp > state->stack_info.end - sizeof(struct stack_frame));
sp                 26 arch/s390/kernel/unwind_bc.c static bool update_stack_info(struct unwind_state *state, unsigned long sp)
sp                 32 arch/s390/kernel/unwind_bc.c 	if (get_stack_info(sp, state->task, info, mask) != 0 ||
sp                 33 arch/s390/kernel/unwind_bc.c 	    !on_stack(info, sp, sizeof(struct stack_frame)))
sp                 44 arch/s390/kernel/unwind_bc.c 	unsigned long sp, ip;
sp                 50 arch/s390/kernel/unwind_bc.c 			sp = state->sp;
sp                 53 arch/s390/kernel/unwind_bc.c 			sp = READ_ONCE_NOCHECK(regs->gprs[15]);
sp                 54 arch/s390/kernel/unwind_bc.c 			if (unlikely(outside_of_stack(state, sp))) {
sp                 55 arch/s390/kernel/unwind_bc.c 				if (!update_stack_info(state, sp))
sp                 59 arch/s390/kernel/unwind_bc.c 		sf = (struct stack_frame *) sp;
sp                 69 arch/s390/kernel/unwind_bc.c 		sf = (struct stack_frame *) state->sp;
sp                 70 arch/s390/kernel/unwind_bc.c 		sp = READ_ONCE_NOCHECK(sf->back_chain);
sp                 71 arch/s390/kernel/unwind_bc.c 		if (likely(sp)) {
sp                 73 arch/s390/kernel/unwind_bc.c 			if (unlikely(outside_of_stack(state, sp))) {
sp                 74 arch/s390/kernel/unwind_bc.c 				if (!update_stack_info(state, sp))
sp                 77 arch/s390/kernel/unwind_bc.c 			sf = (struct stack_frame *) sp;
sp                 82 arch/s390/kernel/unwind_bc.c 			sp = state->sp + STACK_FRAME_OVERHEAD;
sp                 83 arch/s390/kernel/unwind_bc.c 			if (!on_stack(info, sp, sizeof(struct pt_regs)))
sp                 85 arch/s390/kernel/unwind_bc.c 			regs = (struct pt_regs *) sp;
sp                 97 arch/s390/kernel/unwind_bc.c 					   ip, (void *) sp);
sp                101 arch/s390/kernel/unwind_bc.c 	state->sp = sp;
sp                116 arch/s390/kernel/unwind_bc.c 		    struct pt_regs *regs, unsigned long sp)
sp                135 arch/s390/kernel/unwind_bc.c 	if (get_stack_info(sp, task, info, mask) != 0 ||
sp                136 arch/s390/kernel/unwind_bc.c 	    !on_stack(info, sp, sizeof(struct stack_frame))) {
sp                149 arch/s390/kernel/unwind_bc.c 		sf = (struct stack_frame *) sp;
sp                163 arch/s390/kernel/unwind_bc.c 	state->sp = sp;
sp                 93 arch/sh/include/asm/processor_32.h 	unsigned long sp;
sp                122 arch/sh/include/asm/processor_32.h 	.sp = sizeof(init_stack) + (long) &init_stack,		\
sp                173 arch/sh/include/asm/processor_32.h void show_trace(struct task_struct *tsk, unsigned long *sp,
sp                 90 arch/sh/include/asm/processor_64.h 	unsigned long sp;
sp                127 arch/sh/include/asm/processor_64.h 	.sp		= sizeof(init_stack) +	\
sp                209 arch/sh/include/asm/processor_64.h #define KSTK_ESP(tsk)  ((tsk)->thread.sp)
sp                 74 arch/sh/include/asm/suspend.h 	unsigned long sp;
sp                 85 arch/sh/include/asm/switch_to_32.h 	__ts1 = (u32 *)&prev->thread.sp;			\
sp                 89 arch/sh/include/asm/switch_to_32.h 	__ts6 = (u32 *)&next->thread.sp;			\
sp                 44 arch/sh/kernel/asm-offsets.c 	DEFINE(SH_SLEEP_SP, offsetof(struct sh_sleep_data, sp));
sp                297 arch/sh/kernel/cpu/sh5/unwind.c 			       unsigned long *sp,
sp                 88 arch/sh/kernel/dumpstack.c 		  unsigned long *sp, const struct stacktrace_ops *ops,
sp                 95 arch/sh/kernel/dumpstack.c 		((unsigned long)sp & (~(THREAD_SIZE - 1)));
sp                 97 arch/sh/kernel/dumpstack.c 	while (!kstack_end(sp)) {
sp                 98 arch/sh/kernel/dumpstack.c 		unsigned long addr = *sp++;
sp                129 arch/sh/kernel/dumpstack.c void show_trace(struct task_struct *tsk, unsigned long *sp,
sp                137 arch/sh/kernel/dumpstack.c 	unwind_stack(tsk, regs, sp, &print_trace_ops, "");
sp                147 arch/sh/kernel/dumpstack.c void show_stack(struct task_struct *tsk, unsigned long *sp)
sp                154 arch/sh/kernel/dumpstack.c 		sp = (unsigned long *)current_stack_pointer;
sp                156 arch/sh/kernel/dumpstack.c 		sp = (unsigned long *)tsk->thread.sp;
sp                158 arch/sh/kernel/dumpstack.c 	stack = (unsigned long)sp;
sp                161 arch/sh/kernel/dumpstack.c 	show_trace(tsk, sp, NULL);
sp                959 arch/sh/kernel/dwarf.c 				unsigned long *sp,
sp                242 arch/sh/kernel/kgdb.c 	gdb_regs[GDB_R15] = p->thread.sp;
sp                139 arch/sh/kernel/process_32.c 	p->thread.sp = (unsigned long) childregs;
sp                222 arch/sh/kernel/process_32.c 		unsigned long schedule_frame = (unsigned long)p->thread.sp;
sp                278 arch/sh/kernel/process_64.c 		void show_stack(struct task_struct *tsk, unsigned long *sp);
sp                279 arch/sh/kernel/process_64.c 		unsigned long sp = regs->regs[15] & 0xffffffff;
sp                284 arch/sh/kernel/process_64.c 		show_stack(tsk, (unsigned long *)sp);
sp                390 arch/sh/kernel/process_64.c 	p->thread.sp = (unsigned long) childregs;
sp                450 arch/sh/kernel/process_64.c 		sh64_switch_to_fp = (long) p->thread.sp;
sp                252 arch/sh/kernel/signal_32.c get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size)
sp                255 arch/sh/kernel/signal_32.c 		if (sas_ss_flags(sp) == 0)
sp                256 arch/sh/kernel/signal_32.c 			sp = current->sas_ss_sp + current->sas_ss_size;
sp                259 arch/sh/kernel/signal_32.c 	return (void __user *)((sp - (frame_size+UNWINDGUARD)) & -8ul);
sp                363 arch/sh/kernel/signal_64.c get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size)
sp                365 arch/sh/kernel/signal_64.c 	if ((ka->sa.sa_flags & SA_ONSTACK) != 0 && ! sas_ss_flags(sp))
sp                366 arch/sh/kernel/signal_64.c 		sp = current->sas_ss_sp + current->sas_ss_size;
sp                368 arch/sh/kernel/signal_64.c 	return (void __user *)((sp - frame_size) & -8ul);
sp                206 arch/sh/kernel/smp.c 	unsigned long sp;
sp                221 arch/sh/kernel/smp.c 	stack_start.sp = tsk->thread.sp;
sp                 49 arch/sh/kernel/stacktrace.c 	unsigned long *sp = (unsigned long *)current_stack_pointer;
sp                 51 arch/sh/kernel/stacktrace.c 	unwind_stack(current, NULL, sp,  &save_stack_ops, trace);
sp                 82 arch/sh/kernel/stacktrace.c 	unsigned long *sp = (unsigned long *)tsk->thread.sp;
sp                 84 arch/sh/kernel/stacktrace.c 	unwind_stack(current, NULL, sp,  &save_stack_ops_nosched, trace);
sp                133 arch/sh/kernel/unwinder.c 		  unsigned long *sp, const struct stacktrace_ops *ops,
sp                163 arch/sh/kernel/unwinder.c 	curr_unwinder->dump(task, regs, sp, ops, data);
sp                133 arch/sparc/include/asm/pgtsrmmu.h 	 save	%sp, -64, %sp;						\
sp                 67 arch/sparc/include/asm/processor_32.h 				    unsigned long sp)
sp                 87 arch/sparc/include/asm/processor_32.h 			       "r" (sp - sizeof(struct reg_window32)),
sp                 97 arch/sparc/include/asm/processor_64.h #define start_thread(regs, pc, sp) \
sp                131 arch/sparc/include/asm/processor_64.h 	: "r" (regs), "r" (sp - sizeof(struct reg_window) - STACK_BIAS), \
sp                139 arch/sparc/include/asm/processor_64.h #define start_thread32(regs, pc, sp) \
sp                143 arch/sparc/include/asm/processor_64.h 	sp &= 0x00000000ffffffffUL; \
sp                175 arch/sparc/include/asm/processor_64.h 	: "r" (regs), "r" (sp - sizeof(struct reg_window32)), \
sp                 30 arch/sparc/include/asm/ttable.h 	 add	%sp, PTREGS_OFF, %o0;			\
sp                 40 arch/sparc/include/asm/ttable.h 	 add	%sp, PTREGS_OFF, %o0;			\
sp                 49 arch/sparc/include/asm/ttable.h 	 add	%sp, PTREGS_OFF, %o0;			\
sp                 69 arch/sparc/include/asm/ttable.h 	 add	%sp, PTREGS_OFF, %o0;			\
sp                 78 arch/sparc/include/asm/ttable.h 	add	%sp, PTREGS_OFF, %o0;			\
sp                 88 arch/sparc/include/asm/ttable.h 	add	%sp, PTREGS_OFF, %o0;			\
sp                140 arch/sparc/include/asm/ttable.h 	 add	%sp, PTREGS_OFF, %o1;			\
sp                153 arch/sparc/include/asm/ttable.h 	 add	%sp, PTREGS_OFF, %o1;			\
sp                165 arch/sparc/include/asm/ttable.h 	 add	%sp, PTREGS_OFF, %o1;			\
sp                178 arch/sparc/include/asm/ttable.h 	ldx	[%sp + PTREGS_OFF + PT_V9_TNPC], %l1;			\
sp                180 arch/sparc/include/asm/ttable.h 	stx	%l1, [%sp + PTREGS_OFF + PT_V9_TPC];			\
sp                182 arch/sparc/include/asm/ttable.h 	 stx	%l2, [%sp + PTREGS_OFF + PT_V9_TNPC];
sp                252 arch/sparc/include/asm/ttable.h 	stx	%l0, [%sp + STACK_BIAS + 0x00];		\
sp                253 arch/sparc/include/asm/ttable.h 	stx	%l1, [%sp + STACK_BIAS + 0x08];		\
sp                254 arch/sparc/include/asm/ttable.h 	stx	%l2, [%sp + STACK_BIAS + 0x10];		\
sp                255 arch/sparc/include/asm/ttable.h 	stx	%l3, [%sp + STACK_BIAS + 0x18];		\
sp                256 arch/sparc/include/asm/ttable.h 	stx	%l4, [%sp + STACK_BIAS + 0x20];		\
sp                257 arch/sparc/include/asm/ttable.h 	stx	%l5, [%sp + STACK_BIAS + 0x28];		\
sp                258 arch/sparc/include/asm/ttable.h 	stx	%l6, [%sp + STACK_BIAS + 0x30];		\
sp                259 arch/sparc/include/asm/ttable.h 	stx	%l7, [%sp + STACK_BIAS + 0x38];		\
sp                260 arch/sparc/include/asm/ttable.h 	stx	%i0, [%sp + STACK_BIAS + 0x40];		\
sp                261 arch/sparc/include/asm/ttable.h 	stx	%i1, [%sp + STACK_BIAS + 0x48];		\
sp                262 arch/sparc/include/asm/ttable.h 	stx	%i2, [%sp + STACK_BIAS + 0x50];		\
sp                263 arch/sparc/include/asm/ttable.h 	stx	%i3, [%sp + STACK_BIAS + 0x58];		\
sp                264 arch/sparc/include/asm/ttable.h 	stx	%i4, [%sp + STACK_BIAS + 0x60];		\
sp                265 arch/sparc/include/asm/ttable.h 	stx	%i5, [%sp + STACK_BIAS + 0x68];		\
sp                266 arch/sparc/include/asm/ttable.h 	stx	%i6, [%sp + STACK_BIAS + 0x70];		\
sp                267 arch/sparc/include/asm/ttable.h 	stx	%i7, [%sp + STACK_BIAS + 0x78];		\
sp                273 arch/sparc/include/asm/ttable.h 	stx	%l0, [%sp + STACK_BIAS + 0x00];		\
sp                274 arch/sparc/include/asm/ttable.h 	stx	%l1, [%sp + STACK_BIAS + 0x08];		\
sp                275 arch/sparc/include/asm/ttable.h 	stx	%l2, [%sp + STACK_BIAS + 0x10];		\
sp                276 arch/sparc/include/asm/ttable.h 	stx	%l3, [%sp + STACK_BIAS + 0x18];		\
sp                277 arch/sparc/include/asm/ttable.h 	stx	%l4, [%sp + STACK_BIAS + 0x20];		\
sp                278 arch/sparc/include/asm/ttable.h 	stx	%l5, [%sp + STACK_BIAS + 0x28];		\
sp                279 arch/sparc/include/asm/ttable.h 	stx	%l6, [%sp + STACK_BIAS + 0x30];		\
sp                280 arch/sparc/include/asm/ttable.h 	stx	%l7, [%sp + STACK_BIAS + 0x38];		\
sp                281 arch/sparc/include/asm/ttable.h 	stx	%i0, [%sp + STACK_BIAS + 0x40];		\
sp                282 arch/sparc/include/asm/ttable.h 	stx	%i1, [%sp + STACK_BIAS + 0x48];		\
sp                283 arch/sparc/include/asm/ttable.h 	stx	%i2, [%sp + STACK_BIAS + 0x50];		\
sp                284 arch/sparc/include/asm/ttable.h 	stx	%i3, [%sp + STACK_BIAS + 0x58];		\
sp                285 arch/sparc/include/asm/ttable.h 	stx	%i4, [%sp + STACK_BIAS + 0x60];		\
sp                286 arch/sparc/include/asm/ttable.h 	stx	%i5, [%sp + STACK_BIAS + 0x68];		\
sp                287 arch/sparc/include/asm/ttable.h 	stx	%i6, [%sp + STACK_BIAS + 0x70];		\
sp                288 arch/sparc/include/asm/ttable.h 	stx	%i7, [%sp + STACK_BIAS + 0x78];		\
sp                298 arch/sparc/include/asm/ttable.h 	add	%sp, STACK_BIAS + 0x00, %g1;		\
sp                331 arch/sparc/include/asm/ttable.h 	stxa	%l0, [%sp + STACK_BIAS + 0x00] %asi;	\
sp                332 arch/sparc/include/asm/ttable.h 	stxa	%l1, [%sp + STACK_BIAS + 0x08] %asi;	\
sp                333 arch/sparc/include/asm/ttable.h 	stxa	%l2, [%sp + STACK_BIAS + 0x10] %asi;	\
sp                334 arch/sparc/include/asm/ttable.h 	stxa	%l3, [%sp + STACK_BIAS + 0x18] %asi;	\
sp                335 arch/sparc/include/asm/ttable.h 	stxa	%l4, [%sp + STACK_BIAS + 0x20] %asi;	\
sp                336 arch/sparc/include/asm/ttable.h 	stxa	%l5, [%sp + STACK_BIAS + 0x28] %asi;	\
sp                337 arch/sparc/include/asm/ttable.h 	stxa	%l6, [%sp + STACK_BIAS + 0x30] %asi;	\
sp                338 arch/sparc/include/asm/ttable.h 	stxa	%l7, [%sp + STACK_BIAS + 0x38] %asi;	\
sp                339 arch/sparc/include/asm/ttable.h 	stxa	%i0, [%sp + STACK_BIAS + 0x40] %asi;	\
sp                340 arch/sparc/include/asm/ttable.h 	stxa	%i1, [%sp + STACK_BIAS + 0x48] %asi;	\
sp                341 arch/sparc/include/asm/ttable.h 	stxa	%i2, [%sp + STACK_BIAS + 0x50] %asi;	\
sp                342 arch/sparc/include/asm/ttable.h 	stxa	%i3, [%sp + STACK_BIAS + 0x58] %asi;	\
sp                343 arch/sparc/include/asm/ttable.h 	stxa	%i4, [%sp + STACK_BIAS + 0x60] %asi;	\
sp                344 arch/sparc/include/asm/ttable.h 	stxa	%i5, [%sp + STACK_BIAS + 0x68] %asi;	\
sp                345 arch/sparc/include/asm/ttable.h 	stxa	%i6, [%sp + STACK_BIAS + 0x70] %asi;	\
sp                346 arch/sparc/include/asm/ttable.h 	stxa	%i7, [%sp + STACK_BIAS + 0x78] %asi;	\
sp                362 arch/sparc/include/asm/ttable.h 	stx	%sp, [%g3 + TI_RWIN_SPTRS];		\
sp                392 arch/sparc/include/asm/ttable.h 	and	%sp, 1, %g3;				\
sp                394 arch/sparc/include/asm/ttable.h 	 srl	%sp, 0, %sp;				\
sp                395 arch/sparc/include/asm/ttable.h 	stwa	%l0, [%sp + %g0] ASI;			\
sp                397 arch/sparc/include/asm/ttable.h 	stwa	%l1, [%sp + %g3] ASI;			\
sp                398 arch/sparc/include/asm/ttable.h 	add	%sp, 0x08, %g1;				\
sp                427 arch/sparc/include/asm/ttable.h 	and	%sp, 1, %g3;		\
sp                429 arch/sparc/include/asm/ttable.h 	 srl	%sp, 0, %sp;		\
sp                430 arch/sparc/include/asm/ttable.h 	stwa	%l0, [%sp + 0x00] %asi;	\
sp                431 arch/sparc/include/asm/ttable.h 	stwa	%l1, [%sp + 0x04] %asi;	\
sp                432 arch/sparc/include/asm/ttable.h 	stwa	%l2, [%sp + 0x08] %asi;	\
sp                433 arch/sparc/include/asm/ttable.h 	stwa	%l3, [%sp + 0x0c] %asi;	\
sp                434 arch/sparc/include/asm/ttable.h 	stwa	%l4, [%sp + 0x10] %asi;	\
sp                435 arch/sparc/include/asm/ttable.h 	stwa	%l5, [%sp + 0x14] %asi;	\
sp                436 arch/sparc/include/asm/ttable.h 	stwa	%l6, [%sp + 0x18] %asi;	\
sp                437 arch/sparc/include/asm/ttable.h 	stwa	%l7, [%sp + 0x1c] %asi;	\
sp                438 arch/sparc/include/asm/ttable.h 	stwa	%i0, [%sp + 0x20] %asi;	\
sp                439 arch/sparc/include/asm/ttable.h 	stwa	%i1, [%sp + 0x24] %asi;	\
sp                440 arch/sparc/include/asm/ttable.h 	stwa	%i2, [%sp + 0x28] %asi;	\
sp                441 arch/sparc/include/asm/ttable.h 	stwa	%i3, [%sp + 0x2c] %asi;	\
sp                442 arch/sparc/include/asm/ttable.h 	stwa	%i4, [%sp + 0x30] %asi;	\
sp                443 arch/sparc/include/asm/ttable.h 	stwa	%i5, [%sp + 0x34] %asi;	\
sp                444 arch/sparc/include/asm/ttable.h 	stwa	%i6, [%sp + 0x38] %asi;	\
sp                445 arch/sparc/include/asm/ttable.h 	stwa	%i7, [%sp + 0x3c] %asi;	\
sp                461 arch/sparc/include/asm/ttable.h 	stx	%sp, [%g3 + TI_RWIN_SPTRS];		\
sp                508 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x00], %l0;		\
sp                509 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x08], %l1;		\
sp                510 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x10], %l2;		\
sp                511 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x18], %l3;		\
sp                512 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x20], %l4;		\
sp                513 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x28], %l5;		\
sp                514 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x30], %l6;		\
sp                515 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x38], %l7;		\
sp                516 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x40], %i0;		\
sp                517 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x48], %i1;		\
sp                518 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x50], %i2;		\
sp                519 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x58], %i3;		\
sp                520 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x60], %i4;		\
sp                521 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x68], %i5;		\
sp                522 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x70], %i6;		\
sp                523 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x78], %i7;		\
sp                532 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x00], %l0;		\
sp                533 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x08], %l1;		\
sp                534 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x10], %l2;		\
sp                535 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x18], %l3;		\
sp                536 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x20], %l4;		\
sp                537 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x28], %l5;		\
sp                538 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x30], %l6;		\
sp                539 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x38], %l7;		\
sp                540 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x40], %i0;		\
sp                541 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x48], %i1;		\
sp                542 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x50], %i2;		\
sp                543 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x58], %i3;		\
sp                544 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x60], %i4;		\
sp                545 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x68], %i5;		\
sp                546 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x70], %i6;		\
sp                547 arch/sparc/include/asm/ttable.h 	ldx	[%sp + STACK_BIAS + 0x78], %i7;		\
sp                558 arch/sparc/include/asm/ttable.h 	add	%sp, STACK_BIAS + 0x00, %g1;		\
sp                589 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x00] %asi, %l0;	\
sp                590 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x08] %asi, %l1;	\
sp                591 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x10] %asi, %l2;	\
sp                592 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x18] %asi, %l3;	\
sp                593 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x20] %asi, %l4;	\
sp                594 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x28] %asi, %l5;	\
sp                595 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x30] %asi, %l6;	\
sp                596 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x38] %asi, %l7;	\
sp                597 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x40] %asi, %i0;	\
sp                598 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x48] %asi, %i1;	\
sp                599 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x50] %asi, %i2;	\
sp                600 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x58] %asi, %i3;	\
sp                601 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x60] %asi, %i4;	\
sp                602 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x68] %asi, %i5;	\
sp                603 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x70] %asi, %i6;	\
sp                604 arch/sparc/include/asm/ttable.h 	ldxa	[%sp + STACK_BIAS + 0x78] %asi, %i7;	\
sp                616 arch/sparc/include/asm/ttable.h 	and	%sp, 1, %g3;				\
sp                618 arch/sparc/include/asm/ttable.h 	 srl	%sp, 0, %sp;				\
sp                619 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + %g0] ASI, %l0;			\
sp                622 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + %g2] ASI, %l1;			\
sp                624 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + %g3] ASI, %l2;			\
sp                625 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + %g5] ASI, %l3;			\
sp                626 arch/sparc/include/asm/ttable.h 	add	%sp, 0x10, %g1;				\
sp                649 arch/sparc/include/asm/ttable.h 	and	%sp, 1, %g3;				\
sp                651 arch/sparc/include/asm/ttable.h 	 srl	%sp, 0, %sp;				\
sp                652 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x00] %asi, %l0;			\
sp                653 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x04] %asi, %l1;			\
sp                654 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x08] %asi, %l2;			\
sp                655 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x0c] %asi, %l3;			\
sp                656 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x10] %asi, %l4;			\
sp                657 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x14] %asi, %l5;			\
sp                658 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x18] %asi, %l6;			\
sp                659 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x1c] %asi, %l7;			\
sp                660 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x20] %asi, %i0;			\
sp                661 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x24] %asi, %i1;			\
sp                662 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x28] %asi, %i2;			\
sp                663 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x2c] %asi, %i3;			\
sp                664 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x30] %asi, %i4;			\
sp                665 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x34] %asi, %i5;			\
sp                666 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x38] %asi, %i6;			\
sp                667 arch/sparc/include/asm/ttable.h 	lduwa	[%sp + 0x3c] %asi, %i7;			\
sp                 96 arch/sparc/include/asm/winmacro.h         st       %sp, [%scratch + TI_RWIN_SPTRS]; \
sp                859 arch/sparc/kernel/irq_64.c 	void *orig_sp, *sp = softirq_stack[smp_processor_id()];
sp                861 arch/sparc/kernel/irq_64.c 	sp += THREAD_SIZE - 192 - STACK_BIAS;
sp                866 arch/sparc/kernel/irq_64.c 			     : "r" (sp));
sp                 58 arch/sparc/kernel/kernel.h asmlinkage int do_sys32_sigstack(u32 u_ssptr, u32 u_ossptr, unsigned long sp);
sp                169 arch/sparc/kernel/kernel.h                                unsigned long sp);
sp                 11 arch/sparc/kernel/kstack.h static inline bool kstack_valid(struct thread_info *tp, unsigned long sp)
sp                 16 arch/sparc/kernel/kstack.h 	if (sp & (16UL - 1))
sp                 19 arch/sparc/kernel/kstack.h 	if (sp >= (base + sizeof(struct thread_info)) &&
sp                 20 arch/sparc/kernel/kstack.h 	    sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf)))
sp                 25 arch/sparc/kernel/kstack.h 		if (sp >= base &&
sp                 26 arch/sparc/kernel/kstack.h 		    sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf)))
sp                 29 arch/sparc/kernel/kstack.h 		if (sp >= base &&
sp                 30 arch/sparc/kernel/kstack.h 		    sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf)))
sp                 67 arch/sparc/kernel/kstack.h 	void *orig_sp, *sp = hardirq_stack[smp_processor_id()];
sp                 70 arch/sparc/kernel/kstack.h 	if (orig_sp < sp ||
sp                 71 arch/sparc/kernel/kstack.h 	    orig_sp > (sp + THREAD_SIZE)) {
sp                 72 arch/sparc/kernel/kstack.h 		sp += THREAD_SIZE - 192 - STACK_BIAS;
sp                 73 arch/sparc/kernel/kstack.h 		__asm__ __volatile__("mov %0, %%sp" : : "r" (sp));
sp               2084 arch/sparc/kernel/ldc.c static void fill_cookies(struct cookie_state *sp, unsigned long pa,
sp               2091 arch/sparc/kernel/ldc.c 		sp->page_table[sp->pte_idx].mte = sp->mte_base | pa;
sp               2099 arch/sparc/kernel/ldc.c 		this_cookie = make_cookie(sp->pte_idx,
sp               2104 arch/sparc/kernel/ldc.c 		if (this_cookie == sp->prev_cookie) {
sp               2105 arch/sparc/kernel/ldc.c 			sp->cookies[sp->nc - 1].cookie_size += tlen;
sp               2107 arch/sparc/kernel/ldc.c 			sp->cookies[sp->nc].cookie_addr = this_cookie;
sp               2108 arch/sparc/kernel/ldc.c 			sp->cookies[sp->nc].cookie_size = tlen;
sp               2109 arch/sparc/kernel/ldc.c 			sp->nc++;
sp               2111 arch/sparc/kernel/ldc.c 		sp->prev_cookie = this_cookie + tlen;
sp               2113 arch/sparc/kernel/ldc.c 		sp->pte_idx++;
sp               1080 arch/sparc/kernel/pci.c 	const char *sp;
sp               1089 arch/sparc/kernel/pci.c 	sp = prop->names;
sp               1106 arch/sparc/kernel/pci.c 			pci_info(bus, "Making slot [%s]\n", sp);
sp               1108 arch/sparc/kernel/pci.c 		pci_slot = pci_create_slot(bus, i, sp, NULL);
sp               1113 arch/sparc/kernel/pci.c 		sp += strlen(sp) + 1;
sp                239 arch/sparc/kernel/process_32.c 	struct sparc_stackf __user *sp;
sp                247 arch/sparc/kernel/process_32.c 	sp = (struct sparc_stackf __user *)(fp - size); 
sp                253 arch/sparc/kernel/process_32.c 	if (__copy_user(sp, src, size))
sp                254 arch/sparc/kernel/process_32.c 		sp = NULL;
sp                255 arch/sparc/kernel/process_32.c 	else if (put_user(fp, &sp->fp))
sp                256 arch/sparc/kernel/process_32.c 		sp = NULL;
sp                258 arch/sparc/kernel/process_32.c 	return sp;
sp                304 arch/sparc/kernel/process_32.c int copy_thread(unsigned long clone_flags, unsigned long sp,
sp                348 arch/sparc/kernel/process_32.c 		childregs->u_regs[UREG_G1] = sp; /* function */
sp                356 arch/sparc/kernel/process_32.c 	childregs->u_regs[UREG_FP] = sp;
sp                363 arch/sparc/kernel/process_32.c 	if (sp != regs->u_regs[UREG_FP]) {
sp                372 arch/sparc/kernel/process_32.c 			(sp & ~0xfUL);
sp                503 arch/sparc/kernel/process_64.c 			unsigned long sp;
sp                505 arch/sparc/kernel/process_64.c 			sp = t->rwbuf_stkptrs[window];
sp                507 arch/sparc/kernel/process_64.c 			if (test_thread_64bit_stack(sp))
sp                508 arch/sparc/kernel/process_64.c 				sp += STACK_BIAS;
sp                512 arch/sparc/kernel/process_64.c 			if (!copy_to_user((char __user *)sp, rwin, winsize)) {
sp                520 arch/sparc/kernel/process_64.c static void stack_unaligned(unsigned long sp)
sp                522 arch/sparc/kernel/process_64.c 	force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *) sp, 0);
sp                543 arch/sparc/kernel/process_64.c 			unsigned long sp, orig_sp;
sp                545 arch/sparc/kernel/process_64.c 			orig_sp = sp = t->rwbuf_stkptrs[window];
sp                547 arch/sparc/kernel/process_64.c 			if (test_thread_64bit_stack(sp))
sp                548 arch/sparc/kernel/process_64.c 				sp += STACK_BIAS;
sp                552 arch/sparc/kernel/process_64.c 			if (unlikely(sp & 0x7UL))
sp                553 arch/sparc/kernel/process_64.c 				stack_unaligned(sp);
sp                555 arch/sparc/kernel/process_64.c 			if (unlikely(copy_to_user((char __user *)sp,
sp                561 arch/sparc/kernel/process_64.c 							   sp, orig_sp,
sp                615 arch/sparc/kernel/process_64.c int copy_thread(unsigned long clone_flags, unsigned long sp,
sp                640 arch/sparc/kernel/process_64.c 		t->kregs->u_regs[UREG_G1] = sp; /* function */
sp                648 arch/sparc/kernel/process_64.c 		sp &= 0x00000000ffffffffUL;
sp                651 arch/sparc/kernel/process_64.c 	t->kregs->u_regs[UREG_FP] = sp;
sp                655 arch/sparc/kernel/process_64.c 	if (sp != regs->u_regs[UREG_FP]) {
sp                658 arch/sparc/kernel/process_64.c 		csp = clone_stackframe(sp, regs->u_regs[UREG_FP]);
sp                264 arch/sparc/kernel/signal32.c 	unsigned long sp;
sp                267 arch/sparc/kernel/signal32.c 	sp = regs->u_regs[UREG_FP];
sp                273 arch/sparc/kernel/signal32.c 	if (on_sig_stack(sp) && !likely(on_sig_stack(sp - framesize)))
sp                277 arch/sparc/kernel/signal32.c 	sp = sigsp(sp, ksig) - framesize;
sp                285 arch/sparc/kernel/signal32.c 	sp &= ~15UL;
sp                287 arch/sparc/kernel/signal32.c 	return (void __user *) sp;
sp                703 arch/sparc/kernel/signal32.c asmlinkage int do_sys32_sigstack(u32 u_ssptr, u32 u_ossptr, unsigned long sp)
sp                715 arch/sparc/kernel/signal32.c 		    __put_user(on_sig_stack(sp), &ossptr->cur_status))
sp                730 arch/sparc/kernel/signal32.c 		if (current->sas_ss_sp && on_sig_stack(sp))
sp                204 arch/sparc/kernel/signal_32.c 	unsigned long sp = regs->u_regs[UREG_FP];
sp                210 arch/sparc/kernel/signal_32.c 	if (on_sig_stack(sp) && !likely(on_sig_stack(sp - framesize)))
sp                214 arch/sparc/kernel/signal_32.c 	sp = sigsp(sp, ksig) - framesize;
sp                222 arch/sparc/kernel/signal_32.c 	sp &= ~15UL;
sp                224 arch/sparc/kernel/signal_32.c 	return (void __user *) sp;
sp                536 arch/sparc/kernel/signal_32.c                                unsigned long sp)
sp                544 arch/sparc/kernel/signal_32.c 		    __put_user(on_sig_stack(sp), &ossptr->cur_status))
sp                557 arch/sparc/kernel/signal_32.c 		if (current->sas_ss_sp && on_sig_stack(sp))
sp                328 arch/sparc/kernel/signal_64.c 	unsigned long sp = regs->u_regs[UREG_FP] + STACK_BIAS;
sp                334 arch/sparc/kernel/signal_64.c 	if (on_sig_stack(sp) && !likely(on_sig_stack(sp - framesize)))
sp                338 arch/sparc/kernel/signal_64.c 	sp = sigsp(sp, ksig) - framesize;
sp                346 arch/sparc/kernel/signal_64.c 	sp &= ~15UL;
sp                348 arch/sparc/kernel/signal_64.c 	return (void __user *) sp;
sp                 72 arch/sparc/kernel/windows.c 		unsigned long sp = tp->rwbuf_stkptrs[window];
sp                 75 arch/sparc/kernel/windows.c 		if (copy_to_user((char __user *) sp, &tp->reg_window[window],
sp                120 arch/sparc/kernel/windows.c 		unsigned long sp = tp->rwbuf_stkptrs[window];
sp                122 arch/sparc/kernel/windows.c 		if ((sp & 7) ||
sp                123 arch/sparc/kernel/windows.c 		    copy_to_user((char __user *) sp, &tp->reg_window[window],
sp                425 arch/sparc/mm/fault_32.c static void check_stack_aligned(unsigned long sp)
sp                427 arch/sparc/mm/fault_32.c 	if (sp & 0x7UL)
sp                433 arch/sparc/mm/fault_32.c 	unsigned long sp;
sp                435 arch/sparc/mm/fault_32.c 	sp = current_thread_info()->rwbuf_stkptrs[0];
sp                436 arch/sparc/mm/fault_32.c 	if (((sp + 0x38) & PAGE_MASK) != (sp & PAGE_MASK))
sp                437 arch/sparc/mm/fault_32.c 		force_user_fault(sp + 0x38, 1);
sp                438 arch/sparc/mm/fault_32.c 	force_user_fault(sp, 1);
sp                440 arch/sparc/mm/fault_32.c 	check_stack_aligned(sp);
sp                443 arch/sparc/mm/fault_32.c void window_underflow_fault(unsigned long sp)
sp                445 arch/sparc/mm/fault_32.c 	if (((sp + 0x38) & PAGE_MASK) != (sp & PAGE_MASK))
sp                446 arch/sparc/mm/fault_32.c 		force_user_fault(sp + 0x38, 0);
sp                447 arch/sparc/mm/fault_32.c 	force_user_fault(sp, 0);
sp                449 arch/sparc/mm/fault_32.c 	check_stack_aligned(sp);
sp                454 arch/sparc/mm/fault_32.c 	unsigned long sp;
sp                456 arch/sparc/mm/fault_32.c 	sp = regs->u_regs[UREG_FP];
sp                457 arch/sparc/mm/fault_32.c 	if (((sp + 0x38) & PAGE_MASK) != (sp & PAGE_MASK))
sp                458 arch/sparc/mm/fault_32.c 		force_user_fault(sp + 0x38, 0);
sp                459 arch/sparc/mm/fault_32.c 	force_user_fault(sp, 0);
sp                461 arch/sparc/mm/fault_32.c 	check_stack_aligned(sp);
sp                  9 arch/sparc/mm/mm_32.h void window_underflow_fault(unsigned long sp);
sp                 10 arch/um/drivers/ubd.h extern int start_io_thread(unsigned long sp, int *fds_out);
sp                 28 arch/um/drivers/ubd_user.c int start_io_thread(unsigned long sp, int *fd_out)
sp                 50 arch/um/drivers/ubd_user.c 	pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL);
sp                156 arch/um/kernel/process.c int copy_thread_tls(unsigned long clone_flags, unsigned long sp,
sp                169 arch/um/kernel/process.c 		if (sp != 0)
sp                170 arch/um/kernel/process.c 			REGS_SP(p->thread.regs.regs.gp) = sp;
sp                177 arch/um/kernel/process.c 		p->thread.request.u.thread.proc = (int (*)(void *))sp;
sp                266 arch/um/kernel/process.c int user_context(unsigned long sp)
sp                270 arch/um/kernel/process.c 	stack = sp & (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER);
sp                400 arch/um/kernel/process.c unsigned long arch_align_stack(unsigned long sp)
sp                403 arch/um/kernel/process.c 		sp -= get_random_int() % 8192;
sp                404 arch/um/kernel/process.c 	return sp & ~0xf;
sp                410 arch/um/kernel/process.c 	unsigned long stack_page, sp, ip;
sp                421 arch/um/kernel/process.c 	sp = p->thread.switch_buf->JB_SP;
sp                426 arch/um/kernel/process.c 	if (sp < stack_page)
sp                429 arch/um/kernel/process.c 	while (sp < stack_page + THREAD_SIZE) {
sp                430 arch/um/kernel/process.c 		ip = *((unsigned long *) sp);
sp                437 arch/um/kernel/process.c 		sp += sizeof(unsigned long);
sp                 53 arch/um/kernel/signal.c 	unsigned long sp;
sp                 81 arch/um/kernel/signal.c 	sp = PT_REGS_SP(regs);
sp                 82 arch/um/kernel/signal.c 	if ((ksig->ka.sa.sa_flags & SA_ONSTACK) && (sas_ss_flags(sp) == 0))
sp                 83 arch/um/kernel/signal.c 		sp = current->sas_ss_sp + current->sas_ss_size;
sp                 87 arch/um/kernel/signal.c 		err = setup_signal_stack_sc(sp, ksig, regs, oldset);
sp                 90 arch/um/kernel/signal.c 		err = setup_signal_stack_si(sp, ksig, regs, oldset);
sp                 21 arch/um/kernel/stacktrace.c 	unsigned long *sp, bp, addr;
sp                 26 arch/um/kernel/stacktrace.c 	sp = get_stack_pointer(tsk, segv_regs);
sp                 29 arch/um/kernel/stacktrace.c 	while (((long) sp & (THREAD_SIZE-1)) != 0) {
sp                 30 arch/um/kernel/stacktrace.c 		addr = *sp;
sp                 33 arch/um/kernel/stacktrace.c 			if ((unsigned long) sp == bp + sizeof(long)) {
sp                 40 arch/um/kernel/stacktrace.c 		sp++;
sp                 30 arch/um/kernel/sysrq.c 	unsigned long *sp = stack;
sp                 41 arch/um/kernel/sysrq.c 		sp = get_stack_pointer(task, segv_regs);
sp                 44 arch/um/kernel/sysrq.c 	stack = sp;
sp                 45 arch/um/os-Linux/helper.c 	unsigned long stack, sp;
sp                 67 arch/um/os-Linux/helper.c 	sp = stack + UM_KERN_PAGE_SIZE - sizeof(void *);
sp                 74 arch/um/os-Linux/helper.c 	pid = clone(helper_child, (void *) sp, CLONE_VM, &data);
sp                116 arch/um/os-Linux/helper.c 	unsigned long stack, sp;
sp                123 arch/um/os-Linux/helper.c 	sp = stack + UM_KERN_PAGE_SIZE - sizeof(void *);
sp                124 arch/um/os-Linux/helper.c 	pid = clone(proc, (void *) sp, flags, arg);
sp                267 arch/um/os-Linux/skas/process.c 	unsigned long sp;
sp                282 arch/um/os-Linux/skas/process.c 	sp = (unsigned long) stack + UM_KERN_PAGE_SIZE - sizeof(void *);
sp                287 arch/um/os-Linux/skas/process.c 	pid = clone(userspace_tramp, (void *) sp, flags, (void *) stub_stack);
sp                 44 arch/unicore32/include/asm/processor.h #define start_thread(regs, pc, sp)					\
sp                 46 arch/unicore32/include/asm/processor.h 	unsigned long *stack = (unsigned long *)sp;			\
sp                 50 arch/unicore32/include/asm/processor.h 	regs->UCreg_sp = sp;		/* sp */                        \
sp                 15 arch/unicore32/include/asm/stacktrace.h 	unsigned long sp;
sp                 56 arch/unicore32/include/asm/thread_info.h 	__u32	sp;
sp                 94 arch/unicore32/include/asm/thread_info.h 	register unsigned long sp asm ("sp");
sp                 95 arch/unicore32/include/asm/thread_info.h 	return (struct thread_info *)(sp & ~(THREAD_SIZE - 1));
sp                101 arch/unicore32/include/asm/thread_info.h 	((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
sp                 66 arch/unicore32/kernel/pm.c unsigned long sleep_phys_sp(void *sp)
sp                 68 arch/unicore32/kernel/pm.c 	return virt_to_phys(sp);
sp                230 arch/unicore32/kernel/process.c 	thread->cpu_context.sp = (unsigned long)childregs;
sp                282 arch/unicore32/kernel/process.c 	frame.sp = thread_saved_sp(p);
sp                188 arch/unicore32/kernel/signal.c 	unsigned long sp = regs->UCreg_sp;
sp                194 arch/unicore32/kernel/signal.c 	if ((ka->sa.sa_flags & SA_ONSTACK) && !sas_ss_flags(sp))
sp                195 arch/unicore32/kernel/signal.c 		sp = current->sas_ss_sp + current->sas_ss_size;
sp                200 arch/unicore32/kernel/signal.c 	frame = (void __user *)((sp - framesize) & ~7);
sp                 39 arch/unicore32/kernel/stacktrace.c 	low = frame->sp;
sp                 48 arch/unicore32/kernel/stacktrace.c 	frame->sp = *(unsigned long *)(fp - 8);
sp                106 arch/unicore32/kernel/stacktrace.c 		frame.sp = thread_saved_sp(tsk);
sp                114 arch/unicore32/kernel/stacktrace.c 		frame.sp = current_sp;
sp                 52 arch/unicore32/kernel/traps.c static int verify_stack(unsigned long sp)
sp                 54 arch/unicore32/kernel/traps.c 	if (sp < PAGE_OFFSET ||
sp                 55 arch/unicore32/kernel/traps.c 	    (sp > (unsigned long)high_memory && high_memory != NULL))
sp                173 arch/unicore32/kernel/traps.c void show_stack(struct task_struct *tsk, unsigned long *sp)
sp                389 arch/x86/entry/common.c 			    (u32 __user __force *)(unsigned long)(u32)regs->sp)
sp                392 arch/x86/entry/common.c 			 (u32 __user __force *)(unsigned long)(u32)regs->sp)
sp                 82 arch/x86/entry/vsyscall/vsyscall_64.c 			   regs->sp, regs->ax, regs->si, regs->di);
sp                169 arch/x86/entry/vsyscall/vsyscall_64.c 	if (get_user(caller, (unsigned long __user *)regs->sp) != 0) {
sp                288 arch/x86/entry/vsyscall/vsyscall_64.c 	regs->sp += 8;
sp               2382 arch/x86/events/core.c 		unwind_start(&state, current, NULL, (void *)regs->sp);
sp                206 arch/x86/events/intel/ds.c 	u64 si, di, bp, sp;
sp                214 arch/x86/events/intel/ds.c 	u64 si, di, bp, sp;
sp                226 arch/x86/events/intel/ds.c 	u64 si, di, bp, sp;
sp                255 arch/x86/events/intel/ds.c 	u64 si, di, bp, sp;
sp               1409 arch/x86/events/intel/ds.c 		regs->sp = pebs->sp;
sp               1491 arch/x86/events/intel/ds.c 	regs->sp = gprs->sp;
sp                381 arch/x86/hyperv/hv_init.c 	wrmsrl(HV_X64_MSR_CRASH_P4, regs->sp);
sp                 66 arch/x86/ia32/ia32_aout.c 	u32 __user *argv, *envp, *sp;
sp                 69 arch/x86/ia32/ia32_aout.c 	sp = (u32 __user *) ((-(unsigned long)sizeof(u32)) & (unsigned long) p);
sp                 70 arch/x86/ia32/ia32_aout.c 	sp -= envc+1;
sp                 71 arch/x86/ia32/ia32_aout.c 	envp = sp;
sp                 72 arch/x86/ia32/ia32_aout.c 	sp -= argc+1;
sp                 73 arch/x86/ia32/ia32_aout.c 	argv = sp;
sp                 74 arch/x86/ia32/ia32_aout.c 	put_user((unsigned long) envp, --sp);
sp                 75 arch/x86/ia32/ia32_aout.c 	put_user((unsigned long) argv, --sp);
sp                 76 arch/x86/ia32/ia32_aout.c 	put_user(argc, --sp);
sp                 98 arch/x86/ia32/ia32_aout.c 	return sp;
sp                239 arch/x86/ia32/ia32_aout.c 	(regs)->sp = current->mm->start_stack;
sp                 88 arch/x86/ia32/ia32_signal.c 		COPY(di); COPY(si); COPY(bp); COPY(sp); COPY(bx);
sp                125 arch/x86/ia32/ia32_signal.c 	struct sigframe_ia32 __user *frame = (struct sigframe_ia32 __user *)(regs->sp-8);
sp                154 arch/x86/ia32/ia32_signal.c 	frame = (struct rt_sigframe_ia32 __user *)(regs->sp - 4);
sp                195 arch/x86/ia32/ia32_signal.c 		put_user_ex(regs->sp, &sc->sp);
sp                205 arch/x86/ia32/ia32_signal.c 		put_user_ex(regs->sp, &sc->sp_at_signal);
sp                225 arch/x86/ia32/ia32_signal.c 	unsigned long sp, fx_aligned, math_size;
sp                228 arch/x86/ia32/ia32_signal.c 	sp = regs->sp;
sp                232 arch/x86/ia32/ia32_signal.c 		sp = sigsp(sp, ksig);
sp                237 arch/x86/ia32/ia32_signal.c 		sp = (unsigned long) ksig->ka.sa.sa_restorer;
sp                239 arch/x86/ia32/ia32_signal.c 	sp = fpu__alloc_mathframe(sp, 1, &fx_aligned, &math_size);
sp                240 arch/x86/ia32/ia32_signal.c 	*fpstate = (struct _fpstate_32 __user *) sp;
sp                245 arch/x86/ia32/ia32_signal.c 	sp -= frame_size;
sp                248 arch/x86/ia32/ia32_signal.c 	sp = ((sp + 4) & -16ul) - 4;
sp                249 arch/x86/ia32/ia32_signal.c 	return (void __user *) sp;
sp                313 arch/x86/ia32/ia32_signal.c 	regs->sp = (unsigned long) frame;
sp                367 arch/x86/ia32/ia32_signal.c 		compat_save_altstack_ex(&frame->uc.uc_stack, regs->sp);
sp                392 arch/x86/ia32/ia32_signal.c 	regs->sp = (unsigned long) frame;
sp                 44 arch/x86/include/asm/asm.h #define _ASM_SP		__ASM_REG(sp)
sp                199 arch/x86/include/asm/compat.h 	compat_uptr_t sp;
sp                202 arch/x86/include/asm/compat.h 		sp = task_pt_regs(current)->sp;
sp                205 arch/x86/include/asm/compat.h 		sp = task_pt_regs(current)->sp - 128;
sp                208 arch/x86/include/asm/compat.h 	return (void __user *)round_down(sp - len, 16);
sp                137 arch/x86/include/asm/elf.h 	pr_reg[15] = regs->sp;			\
sp                228 arch/x86/include/asm/elf.h 	(pr_reg)[19] = (regs)->sp;				\
sp                 29 arch/x86/include/asm/fpu/signal.h fpu__alloc_mathframe(unsigned long sp, int ia32_frame,
sp                 92 arch/x86/include/asm/kexec.h 		asm volatile("movl %%esp,%0" : "=m"(newregs->sp));
sp                106 arch/x86/include/asm/kexec.h 		asm volatile("movq %%rsp,%0" : "=m"(newregs->sp));
sp                392 arch/x86/include/asm/kvm_host.h 			 struct kvm_mmu_page *sp);
sp                394 arch/x86/include/asm/kvm_host.h 	void (*update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
sp                 47 arch/x86/include/asm/nospec-branch.h #define __FILL_RETURN_BUFFER(reg, nr, sp)	\
sp                 64 arch/x86/include/asm/nospec-branch.h 	add	$(BITS_PER_LONG/8) * nr, sp;
sp                206 arch/x86/include/asm/perf_event.h 	u64 flags, ip, ax, cx, dx, bx, sp, bp, si, di;
sp                315 arch/x86/include/asm/perf_event.h 	(regs)->sp = (unsigned long)__builtin_frame_address(0);	\
sp                284 arch/x86/include/asm/processor.h 	unsigned long		sp;
sp                446 arch/x86/include/asm/processor.h 	unsigned long		sp;
sp                848 arch/x86/include/asm/processor.h #define KSTK_ESP(task)		(task_pt_regs(task)->sp)
sp                959 arch/x86/include/asm/processor.h extern unsigned long arch_align_stack(unsigned long sp);
sp                 49 arch/x86/include/asm/ptrace.h 	unsigned long sp;
sp                 86 arch/x86/include/asm/ptrace.h 	unsigned long sp;
sp                163 arch/x86/include/asm/ptrace.h #define current_user_stack_pointer()	current_pt_regs()->sp
sp                164 arch/x86/include/asm/ptrace.h #define compat_user_stack_pointer()	current_pt_regs()->sp
sp                169 arch/x86/include/asm/ptrace.h 	return regs->sp;
sp                190 arch/x86/include/asm/ptrace.h 	return regs->sp;
sp                196 arch/x86/include/asm/ptrace.h 	regs->sp = val;
sp                244 arch/x86/include/asm/ptrace.h 	return ((addr & ~(THREAD_SIZE - 1)) == (regs->sp & ~(THREAD_SIZE - 1)));
sp                258 arch/x86/include/asm/ptrace.h 	unsigned long *addr = (unsigned long *)regs->sp;
sp                 67 arch/x86/include/asm/stacktrace.h 	return &((struct inactive_task_frame *)task->thread.sp)->bp;
sp                 81 arch/x86/include/asm/stacktrace.h 		return (unsigned long *)regs->sp;
sp                 86 arch/x86/include/asm/stacktrace.h 	return (unsigned long *)task->thread.sp;
sp                 32 arch/x86/include/asm/switch_to.h 	READ_ONCE(*(unsigned char *)next->thread.sp);
sp                 77 arch/x86/include/asm/text-patching.h 	regs->sp -= sizeof(unsigned long);
sp                 78 arch/x86/include/asm/text-patching.h 	*(unsigned long *)regs->sp = val;
sp                 21 arch/x86/include/asm/unwind.h 	unsigned long sp, bp, ip;
sp                 34 arch/x86/include/asm/unwind.h 	unsigned long *sp;
sp                 94 arch/x86/include/asm/user_32.h 	unsigned long	sp;
sp                 89 arch/x86/include/asm/user_64.h 	unsigned long	sp;
sp                306 arch/x86/include/asm/xen/interface.h 	uint64_t sp;
sp                122 arch/x86/include/asm/xen/interface_64.h     __DECL_REG(sp);
sp                210 arch/x86/include/uapi/asm/sigcontext.h 	__u32				sp;
sp                254 arch/x86/include/uapi/asm/sigcontext.h 	__u64				sp;
sp                 35 arch/x86/kernel/asm-offsets.c 	OFFSET(TASK_threadsp, task_struct, thread.sp);
sp                 60 arch/x86/kernel/asm-offsets.c 	OFFSET(IA32_SIGCONTEXT_sp, sigcontext_32, sp);
sp                 42 arch/x86/kernel/asm-offsets_32.c 	OFFSET(PT_OLDESP, pt_regs, sp);
sp                 59 arch/x86/kernel/asm-offsets_64.c 	ENTRY(sp);
sp                 40 arch/x86/kernel/doublefault.c 			       t->ip, t->sp);
sp                 62 arch/x86/kernel/doublefault.c 	.sp		= STACK_START,
sp                133 arch/x86/kernel/dumpstack.c 		regs->sp, regs->flags);
sp                282 arch/x86/kernel/dumpstack.c void show_stack(struct task_struct *task, unsigned long *sp)
sp                290 arch/x86/kernel/dumpstack.c 	if (!sp && task == current)
sp                291 arch/x86/kernel/dumpstack.c 		sp = get_stack_pointer(current, NULL);
sp                293 arch/x86/kernel/dumpstack.c 	show_trace_log_lvl(task, NULL, sp, KERN_DEFAULT);
sp                124 arch/x86/kernel/dumpstack_64.c 	info->next_sp	= (unsigned long *)regs->sp;
sp                440 arch/x86/kernel/fpu/signal.c fpu__alloc_mathframe(unsigned long sp, int ia32_frame,
sp                445 arch/x86/kernel/fpu/signal.c 	*buf_fx = sp = round_down(sp - frame_size, 64);
sp                448 arch/x86/kernel/fpu/signal.c 		sp -= sizeof(struct fregs_state);
sp                453 arch/x86/kernel/fpu/signal.c 	return sp;
sp                 33 arch/x86/kernel/irq_32.c 	long sp;
sp                 36 arch/x86/kernel/irq_32.c 			     "=r" (sp) : "0" (THREAD_SIZE - 1));
sp                 38 arch/x86/kernel/irq_32.c 	return sp < (sizeof(struct thread_info) + STACK_WARN);
sp                 53 arch/x86/kernel/kgdb.c 	{ "sp", 4, offsetof(struct pt_regs, sp) },
sp                 71 arch/x86/kernel/kgdb.c 	{ "sp", 8, offsetof(struct pt_regs, sp) },
sp                153 arch/x86/kernel/kgdb.c 	gdb_regs[GDB_BP]	= ((struct inactive_task_frame *)p->thread.sp)->bp;
sp                176 arch/x86/kernel/kgdb.c 	gdb_regs[GDB_SP]	= p->thread.sp;
sp                 59 arch/x86/kernel/kprobes/core.c #define stack_addr(regs) ((unsigned long *)regs->sp)
sp                788 arch/x86/kernel/kprobes/core.c 	frame_pointer = &regs->sp;
sp                531 arch/x86/kernel/nmi.c 	if (unlikely(is_debug_stack(regs->sp))) {
sp                 28 arch/x86/kernel/perf_regs.c 	PT_REGS_OFFSET(PERF_REG_X86_SP, sp),
sp                144 arch/x86/kernel/perf_regs.c 	if (regs->sp > (unsigned long)&user_regs->r11 &&
sp                145 arch/x86/kernel/perf_regs.c 	    regs->sp <= (unsigned long)(user_regs + 1)) {
sp                167 arch/x86/kernel/perf_regs.c 	regs_user_copy->sp = user_regs->sp;
sp                784 arch/x86/kernel/process.c unsigned long arch_align_stack(unsigned long sp)
sp                787 arch/x86/kernel/process.c 		sp -= get_random_int() % 8192;
sp                788 arch/x86/kernel/process.c 	return sp & ~0xf;
sp                804 arch/x86/kernel/process.c 	unsigned long start, bottom, top, sp, fp, ip, ret = 0;
sp                837 arch/x86/kernel/process.c 	sp = READ_ONCE(p->thread.sp);
sp                838 arch/x86/kernel/process.c 	if (sp < bottom || sp > top)
sp                841 arch/x86/kernel/process.c 	fp = READ_ONCE_NOCHECK(((struct inactive_task_frame *)sp)->bp);
sp                 77 arch/x86/kernel/process_32.c 		regs->si, regs->di, regs->bp, regs->sp);
sp                115 arch/x86/kernel/process_32.c int copy_thread_tls(unsigned long clone_flags, unsigned long sp,
sp                133 arch/x86/kernel/process_32.c 	p->thread.sp = (unsigned long) fork_frame;
sp                140 arch/x86/kernel/process_32.c 		frame->bx = sp;		/* function */
sp                148 arch/x86/kernel/process_32.c 	if (sp)
sp                149 arch/x86/kernel/process_32.c 		childregs->sp = sp;
sp                193 arch/x86/kernel/process_32.c 	regs->sp		= new_sp;
sp                374 arch/x86/kernel/process_64.c int copy_thread_tls(unsigned long clone_flags, unsigned long sp,
sp                389 arch/x86/kernel/process_64.c 	p->thread.sp = (unsigned long) fork_frame;
sp                403 arch/x86/kernel/process_64.c 		frame->bx = sp;		/* function */
sp                411 arch/x86/kernel/process_64.c 	if (sp)
sp                412 arch/x86/kernel/process_64.c 		childregs->sp = sp;
sp                468 arch/x86/kernel/process_64.c 	regs->sp		= new_sp;
sp                819 arch/x86/kernel/process_64.c 	return task_pt_regs(task)->sp;
sp                 94 arch/x86/kernel/ptrace.c 	REG_OFFSET_NAME(sp),
sp                886 arch/x86/kernel/ptrace.c 	R32(esp, sp);
sp                960 arch/x86/kernel/ptrace.c 	R32(esp, sp);
sp                118 arch/x86/kernel/signal.c 		COPY(di); COPY(si); COPY(bp); COPY(sp); COPY(bx);
sp                176 arch/x86/kernel/signal.c 		put_user_ex(regs->sp, &sc->sp);
sp                198 arch/x86/kernel/signal.c 		put_user_ex(regs->sp, &sc->sp_at_signal);
sp                225 arch/x86/kernel/signal.c static unsigned long align_sigframe(unsigned long sp)
sp                232 arch/x86/kernel/signal.c 	sp = ((sp + 4) & -16ul) - 4;
sp                234 arch/x86/kernel/signal.c 	sp = round_down(sp, 16) - 8;
sp                236 arch/x86/kernel/signal.c 	return sp;
sp                245 arch/x86/kernel/signal.c 	unsigned long sp = regs->sp;
sp                247 arch/x86/kernel/signal.c 	int onsigstack = on_sig_stack(sp);
sp                252 arch/x86/kernel/signal.c 		sp -= 128;
sp                256 arch/x86/kernel/signal.c 		if (sas_ss_flags(sp) == 0)
sp                257 arch/x86/kernel/signal.c 			sp = current->sas_ss_sp + current->sas_ss_size;
sp                264 arch/x86/kernel/signal.c 		sp = (unsigned long) ka->sa.sa_restorer;
sp                267 arch/x86/kernel/signal.c 	sp = fpu__alloc_mathframe(sp, IS_ENABLED(CONFIG_X86_32),
sp                269 arch/x86/kernel/signal.c 	*fpstate = (void __user *)sp;
sp                271 arch/x86/kernel/signal.c 	sp = align_sigframe(sp - frame_size);
sp                277 arch/x86/kernel/signal.c 	if (onsigstack && !likely(on_sig_stack(sp)))
sp                285 arch/x86/kernel/signal.c 	return (void __user *)sp;
sp                361 arch/x86/kernel/signal.c 	regs->sp = (unsigned long)frame;
sp                399 arch/x86/kernel/signal.c 		save_altstack_ex(&frame->uc.uc_stack, regs->sp);
sp                427 arch/x86/kernel/signal.c 	regs->sp = (unsigned long)frame;
sp                480 arch/x86/kernel/signal.c 		save_altstack_ex(&frame->uc.uc_stack, regs->sp);
sp                510 arch/x86/kernel/signal.c 	regs->sp = (unsigned long)frame;
sp                565 arch/x86/kernel/signal.c 		compat_save_altstack_ex(&frame->uc.uc_stack, regs->sp);
sp                586 arch/x86/kernel/signal.c 	regs->sp = (unsigned long) frame;
sp                614 arch/x86/kernel/signal.c 	frame = (struct sigframe __user *)(regs->sp - 8);
sp                647 arch/x86/kernel/signal.c 	frame = (struct rt_sigframe __user *)(regs->sp - sizeof(long));
sp                855 arch/x86/kernel/signal.c 		       regs->ip, regs->sp, regs->orig_ax);
sp                871 arch/x86/kernel/signal.c 	frame = (struct rt_sigframe_x32 __user *)(regs->sp - 8);
sp               1040 arch/x86/kernel/smpboot.c 	idle->thread.sp = (unsigned long)task_pt_regs(idle);
sp               1043 arch/x86/kernel/smpboot.c 	initial_stack  = idle->thread.sp;
sp                130 arch/x86/kernel/stacktrace.c 		if ((unsigned long)fp < regs->sp)
sp                 36 arch/x86/kernel/time.c 		unsigned long *sp = (unsigned long *)regs->sp;
sp                 42 arch/x86/kernel/time.c 		if (sp[0] >> 22)
sp                 43 arch/x86/kernel/time.c 			return sp[0];
sp                 44 arch/x86/kernel/time.c 		if (sp[1] >> 22)
sp                 45 arch/x86/kernel/time.c 			return sp[1];
sp                238 arch/x86/kernel/traps.c 			regs->ip, regs->sp, error_code);
sp                338 arch/x86/kernel/traps.c 	if (((long)regs->sp >> P4D_SHIFT) == ESPFIX_PGD_ENTRY &&
sp                350 arch/x86/kernel/traps.c 		memmove(&gpregs->ip, (void *)regs->sp, 5*8);
sp                365 arch/x86/kernel/traps.c 		regs->sp = (unsigned long)&gpregs->orig_ax;
sp                651 arch/x86/kernel/traps.c 	memmove(&new_stack->regs.ip, (void *)s->regs.sp, 5*8);
sp                131 arch/x86/kernel/umip.c 	       task_pid_nr(tsk), regs->ip, regs->sp, &vaf);
sp                 35 arch/x86/kernel/unwind_frame.c 	unsigned long word, *sp;
sp                 48 arch/x86/kernel/unwind_frame.c 	for (sp = PTR_ALIGN(state->orig_sp, sizeof(long)); sp;
sp                 49 arch/x86/kernel/unwind_frame.c 	     sp = PTR_ALIGN(stack_info.next_sp, sizeof(long))) {
sp                 50 arch/x86/kernel/unwind_frame.c 		if (get_stack_info(sp, state->task, &stack_info, &visit_mask))
sp                 53 arch/x86/kernel/unwind_frame.c 		for (; sp < stack_info.end; sp++) {
sp                 55 arch/x86/kernel/unwind_frame.c 			word = READ_ONCE_NOCHECK(*sp);
sp                 63 arch/x86/kernel/unwind_frame.c 							sp, BITS_PER_LONG/4, 0);
sp                 68 arch/x86/kernel/unwind_frame.c 					sp, BITS_PER_LONG/4, word, (void *)word);
sp                336 arch/x86/kernel/unwind_frame.c 	    state->regs->sp >= (unsigned long)last_aligned_frame(state) &&
sp                337 arch/x86/kernel/unwind_frame.c 	    state->regs->sp < (unsigned long)task_pt_regs(state->task))
sp                392 arch/x86/kernel/unwind_frame.c 	if (regs && regs->ip == 0 && (unsigned long *)regs->sp >= first_frame) {
sp                394 arch/x86/kernel/unwind_frame.c 		bp = ((unsigned long *)regs->sp) - 1;
sp                 16 arch/x86/kernel/unwind_guess.c 	addr = READ_ONCE_NOCHECK(*state->sp);
sp                 19 arch/x86/kernel/unwind_guess.c 				     addr, state->sp);
sp                 36 arch/x86/kernel/unwind_guess.c 		for (state->sp++; state->sp < info->end; state->sp++) {
sp                 37 arch/x86/kernel/unwind_guess.c 			unsigned long addr = READ_ONCE_NOCHECK(*state->sp);
sp                 43 arch/x86/kernel/unwind_guess.c 		state->sp = PTR_ALIGN(info->next_sp, sizeof(long));
sp                 45 arch/x86/kernel/unwind_guess.c 	} while (!get_stack_info(state->sp, state->task, info,
sp                 58 arch/x86/kernel/unwind_guess.c 	state->sp   = PTR_ALIGN(first_frame, sizeof(long));
sp                322 arch/x86/kernel/unwind_orc.c 	if (task != current && state->sp == task->thread.sp) {
sp                323 arch/x86/kernel/unwind_orc.c 		struct inactive_task_frame *frame = (void *)task->thread.sp;
sp                327 arch/x86/kernel/unwind_orc.c 	if (state->sp)
sp                328 arch/x86/kernel/unwind_orc.c 		return (unsigned long *)state->sp - 1;
sp                357 arch/x86/kernel/unwind_orc.c 			     unsigned long *ip, unsigned long *sp)
sp                368 arch/x86/kernel/unwind_orc.c 	*sp = regs->sp;
sp                373 arch/x86/kernel/unwind_orc.c 				  unsigned long *ip, unsigned long *sp)
sp                381 arch/x86/kernel/unwind_orc.c 	*sp = regs->sp;
sp                416 arch/x86/kernel/unwind_orc.c 	unsigned long ip_p, sp, tmp, orig_ip = state->ip, prev_sp = state->sp;
sp                460 arch/x86/kernel/unwind_orc.c 		sp = state->sp + orc->sp_offset;
sp                464 arch/x86/kernel/unwind_orc.c 		sp = state->bp + orc->sp_offset;
sp                468 arch/x86/kernel/unwind_orc.c 		sp = state->sp + orc->sp_offset;
sp                473 arch/x86/kernel/unwind_orc.c 		sp = state->bp + orc->sp_offset;
sp                478 arch/x86/kernel/unwind_orc.c 		if (!get_reg(state, offsetof(struct pt_regs, r10), &sp)) {
sp                486 arch/x86/kernel/unwind_orc.c 		if (!get_reg(state, offsetof(struct pt_regs, r13), &sp)) {
sp                494 arch/x86/kernel/unwind_orc.c 		if (!get_reg(state, offsetof(struct pt_regs, di), &sp)) {
sp                502 arch/x86/kernel/unwind_orc.c 		if (!get_reg(state, offsetof(struct pt_regs, dx), &sp)) {
sp                516 arch/x86/kernel/unwind_orc.c 		if (!deref_stack_reg(state, sp, &sp))
sp                523 arch/x86/kernel/unwind_orc.c 		ip_p = sp - sizeof(long);
sp                531 arch/x86/kernel/unwind_orc.c 		state->sp = sp;
sp                538 arch/x86/kernel/unwind_orc.c 		if (!deref_stack_regs(state, sp, &state->ip, &state->sp)) {
sp                540 arch/x86/kernel/unwind_orc.c 				 (void *)sp, (void *)orig_ip);
sp                544 arch/x86/kernel/unwind_orc.c 		state->regs = (struct pt_regs *)sp;
sp                551 arch/x86/kernel/unwind_orc.c 		if (!deref_stack_iret_regs(state, sp, &state->ip, &state->sp)) {
sp                553 arch/x86/kernel/unwind_orc.c 				 (void *)sp, (void *)orig_ip);
sp                559 arch/x86/kernel/unwind_orc.c 		state->regs = (void *)sp - IRET_FRAME_OFFSET;
sp                578 arch/x86/kernel/unwind_orc.c 		if (!deref_stack_reg(state, sp + orc->bp_offset, &state->bp))
sp                595 arch/x86/kernel/unwind_orc.c 	    on_stack(&state->stack_info, (void *)state->sp, sizeof(long)) &&
sp                596 arch/x86/kernel/unwind_orc.c 	    state->sp <= prev_sp) {
sp                637 arch/x86/kernel/unwind_orc.c 		state->sp = regs->sp;
sp                647 arch/x86/kernel/unwind_orc.c 			     : "=r" (state->ip), "=r" (state->sp),
sp                651 arch/x86/kernel/unwind_orc.c 		struct inactive_task_frame *frame = (void *)task->thread.sp;
sp                653 arch/x86/kernel/unwind_orc.c 		state->sp = task->thread.sp;
sp                658 arch/x86/kernel/unwind_orc.c 	if (get_stack_info((unsigned long *)state->sp, state->task,
sp                666 arch/x86/kernel/unwind_orc.c 		void *next_page = (void *)PAGE_ALIGN((unsigned long)state->sp);
sp                688 arch/x86/kernel/unwind_orc.c 			state->sp < (unsigned long)first_frame))
sp                527 arch/x86/kernel/uprobes.c 	unsigned long new_sp = regs->sp - sizeof_long(regs);
sp                532 arch/x86/kernel/uprobes.c 	regs->sp = new_sp;
sp                562 arch/x86/kernel/uprobes.c 		regs->sp += sizeof_long(regs); /* Pop incorrect return address */
sp                681 arch/x86/kernel/uprobes.c 	regs->sp += sizeof_long(regs);
sp                823 arch/x86/kernel/uprobes.c 			reg_offset = offsetof(struct pt_regs, sp);
sp               1065 arch/x86/kernel/uprobes.c 	if (copy_from_user(&orig_ret_vaddr, (void __user *)regs->sp, rasize))
sp               1072 arch/x86/kernel/uprobes.c 	nleft = copy_to_user((void __user *)regs->sp, &trampoline_vaddr, rasize);
sp               1078 arch/x86/kernel/uprobes.c 		       current->pid, regs->sp, regs->ip);
sp               1090 arch/x86/kernel/uprobes.c 		return regs->sp < ret->stack;
sp               1092 arch/x86/kernel/uprobes.c 		return regs->sp <= ret->stack;
sp                 82 arch/x86/kernel/vm86_32.c #define SP(regs)	(*(unsigned short *)&((regs)->pt.sp))
sp                135 arch/x86/kernel/vm86_32.c 		put_user_ex(regs->pt.sp, &user->regs.esp);
sp                300 arch/x86/kernel/vm86_32.c 		get_user_ex(vm86regs.pt.sp, &user_vm86->regs.esp);
sp                538 arch/x86/kernel/vm86_32.c     unsigned char __user *ssp, unsigned short sp)
sp                555 arch/x86/kernel/vm86_32.c 	pushw(ssp, sp, get_vflags(regs), cannot_handle);
sp                556 arch/x86/kernel/vm86_32.c 	pushw(ssp, sp, regs->pt.cs, cannot_handle);
sp                557 arch/x86/kernel/vm86_32.c 	pushw(ssp, sp, IP(regs), cannot_handle);
sp                595 arch/x86/kernel/vm86_32.c 	unsigned short ip, sp, orig_flags;
sp                607 arch/x86/kernel/vm86_32.c 	sp = SP(regs);
sp                633 arch/x86/kernel/vm86_32.c 			pushl(ssp, sp, get_vflags(regs), simulate_sigsegv);
sp                636 arch/x86/kernel/vm86_32.c 			pushw(ssp, sp, get_vflags(regs), simulate_sigsegv);
sp                647 arch/x86/kernel/vm86_32.c 			newflags = popl(ssp, sp, simulate_sigsegv);
sp                650 arch/x86/kernel/vm86_32.c 			newflags = popw(ssp, sp, simulate_sigsegv);
sp                673 arch/x86/kernel/vm86_32.c 		do_int(regs, intno, ssp, sp);
sp                684 arch/x86/kernel/vm86_32.c 			newip = popl(ssp, sp, simulate_sigsegv);
sp                685 arch/x86/kernel/vm86_32.c 			newcs = popl(ssp, sp, simulate_sigsegv);
sp                686 arch/x86/kernel/vm86_32.c 			newflags = popl(ssp, sp, simulate_sigsegv);
sp                689 arch/x86/kernel/vm86_32.c 			newip = popw(ssp, sp, simulate_sigsegv);
sp                690 arch/x86/kernel/vm86_32.c 			newcs = popw(ssp, sp, simulate_sigsegv);
sp                691 arch/x86/kernel/vm86_32.c 			newflags = popw(ssp, sp, simulate_sigsegv);
sp               3059 arch/x86/kvm/emulate.c 	tss->sp = reg_read(ctxt, VCPU_REGS_RSP);
sp               3083 arch/x86/kvm/emulate.c 	*reg_write(ctxt, VCPU_REGS_RSP) = tss->sp;
sp                359 arch/x86/kvm/mmu.c static inline bool sp_ad_disabled(struct kvm_mmu_page *sp)
sp                361 arch/x86/kvm/mmu.c 	return sp->role.ad_disabled;
sp                676 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp =  page_header(__pa(sptep));
sp                683 arch/x86/kvm/mmu.c 	sp->clear_spte_count++;
sp                760 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp =  page_header(__pa(sptep));
sp                765 arch/x86/kvm/mmu.c 	count = sp->clear_spte_count;
sp                775 arch/x86/kvm/mmu.c 	      count != sp->clear_spte_count))
sp               1155 arch/x86/kvm/mmu.c static gfn_t kvm_mmu_page_get_gfn(struct kvm_mmu_page *sp, int index)
sp               1157 arch/x86/kvm/mmu.c 	if (!sp->role.direct)
sp               1158 arch/x86/kvm/mmu.c 		return sp->gfns[index];
sp               1160 arch/x86/kvm/mmu.c 	return sp->gfn + (index << ((sp->role.level - 1) * PT64_LEVEL_BITS));
sp               1163 arch/x86/kvm/mmu.c static void kvm_mmu_page_set_gfn(struct kvm_mmu_page *sp, int index, gfn_t gfn)
sp               1165 arch/x86/kvm/mmu.c 	if (!sp->role.direct) {
sp               1166 arch/x86/kvm/mmu.c 		sp->gfns[index] = gfn;
sp               1170 arch/x86/kvm/mmu.c 	if (WARN_ON(gfn != kvm_mmu_page_get_gfn(sp, index)))
sp               1173 arch/x86/kvm/mmu.c 				   sp->gfn,
sp               1174 arch/x86/kvm/mmu.c 				   kvm_mmu_page_get_gfn(sp, index), gfn);
sp               1214 arch/x86/kvm/mmu.c static void account_shadowed(struct kvm *kvm, struct kvm_mmu_page *sp)
sp               1221 arch/x86/kvm/mmu.c 	gfn = sp->gfn;
sp               1222 arch/x86/kvm/mmu.c 	slots = kvm_memslots_for_spte_role(kvm, sp->role);
sp               1226 arch/x86/kvm/mmu.c 	if (sp->role.level > PT_PAGE_TABLE_LEVEL)
sp               1233 arch/x86/kvm/mmu.c static void account_huge_nx_page(struct kvm *kvm, struct kvm_mmu_page *sp)
sp               1235 arch/x86/kvm/mmu.c 	if (sp->lpage_disallowed)
sp               1239 arch/x86/kvm/mmu.c 	list_add_tail(&sp->lpage_disallowed_link,
sp               1241 arch/x86/kvm/mmu.c 	sp->lpage_disallowed = true;
sp               1244 arch/x86/kvm/mmu.c static void unaccount_shadowed(struct kvm *kvm, struct kvm_mmu_page *sp)
sp               1251 arch/x86/kvm/mmu.c 	gfn = sp->gfn;
sp               1252 arch/x86/kvm/mmu.c 	slots = kvm_memslots_for_spte_role(kvm, sp->role);
sp               1254 arch/x86/kvm/mmu.c 	if (sp->role.level > PT_PAGE_TABLE_LEVEL)
sp               1261 arch/x86/kvm/mmu.c static void unaccount_huge_nx_page(struct kvm *kvm, struct kvm_mmu_page *sp)
sp               1264 arch/x86/kvm/mmu.c 	sp->lpage_disallowed = false;
sp               1265 arch/x86/kvm/mmu.c 	list_del(&sp->lpage_disallowed_link);
sp               1479 arch/x86/kvm/mmu.c 					 struct kvm_mmu_page *sp)
sp               1484 arch/x86/kvm/mmu.c 	slots = kvm_memslots_for_spte_role(kvm, sp->role);
sp               1486 arch/x86/kvm/mmu.c 	return __gfn_to_rmap(gfn, sp->role.level, slot);
sp               1499 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               1502 arch/x86/kvm/mmu.c 	sp = page_header(__pa(spte));
sp               1503 arch/x86/kvm/mmu.c 	kvm_mmu_page_set_gfn(sp, spte - sp->spt, gfn);
sp               1504 arch/x86/kvm/mmu.c 	rmap_head = gfn_to_rmap(vcpu->kvm, gfn, sp);
sp               1510 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               1514 arch/x86/kvm/mmu.c 	sp = page_header(__pa(spte));
sp               1515 arch/x86/kvm/mmu.c 	gfn = kvm_mmu_page_get_gfn(sp, spte - sp->spt);
sp               1516 arch/x86/kvm/mmu.c 	rmap_head = gfn_to_rmap(kvm, gfn, sp);
sp               1619 arch/x86/kvm/mmu.c 		struct kvm_mmu_page *sp = page_header(__pa(sptep));
sp               1621 arch/x86/kvm/mmu.c 		kvm_flush_remote_tlbs_with_address(vcpu->kvm, sp->gfn,
sp               1622 arch/x86/kvm/mmu.c 			KVM_PAGES_PER_HPAGE(sp->role.level));
sp               2091 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2093 arch/x86/kvm/mmu.c 	sp = page_header(__pa(spte));
sp               2095 arch/x86/kvm/mmu.c 	rmap_head = gfn_to_rmap(vcpu->kvm, gfn, sp);
sp               2097 arch/x86/kvm/mmu.c 	kvm_unmap_rmapp(vcpu->kvm, rmap_head, NULL, gfn, sp->role.level, 0);
sp               2098 arch/x86/kvm/mmu.c 	kvm_flush_remote_tlbs_with_address(vcpu->kvm, sp->gfn,
sp               2099 arch/x86/kvm/mmu.c 			KVM_PAGES_PER_HPAGE(sp->role.level));
sp               2140 arch/x86/kvm/mmu.c static void kvm_mmu_free_page(struct kvm_mmu_page *sp)
sp               2142 arch/x86/kvm/mmu.c 	MMU_WARN_ON(!is_empty_shadow_page(sp->spt));
sp               2143 arch/x86/kvm/mmu.c 	hlist_del(&sp->hash_link);
sp               2144 arch/x86/kvm/mmu.c 	list_del(&sp->link);
sp               2145 arch/x86/kvm/mmu.c 	free_page((unsigned long)sp->spt);
sp               2146 arch/x86/kvm/mmu.c 	if (!sp->role.direct)
sp               2147 arch/x86/kvm/mmu.c 		free_page((unsigned long)sp->gfns);
sp               2148 arch/x86/kvm/mmu.c 	kmem_cache_free(mmu_page_header_cache, sp);
sp               2157 arch/x86/kvm/mmu.c 				    struct kvm_mmu_page *sp, u64 *parent_pte)
sp               2162 arch/x86/kvm/mmu.c 	pte_list_add(vcpu, parent_pte, &sp->parent_ptes);
sp               2165 arch/x86/kvm/mmu.c static void mmu_page_remove_parent_pte(struct kvm_mmu_page *sp,
sp               2168 arch/x86/kvm/mmu.c 	__pte_list_remove(parent_pte, &sp->parent_ptes);
sp               2171 arch/x86/kvm/mmu.c static void drop_parent_pte(struct kvm_mmu_page *sp,
sp               2174 arch/x86/kvm/mmu.c 	mmu_page_remove_parent_pte(sp, parent_pte);
sp               2180 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2182 arch/x86/kvm/mmu.c 	sp = mmu_memory_cache_alloc(&vcpu->arch.mmu_page_header_cache);
sp               2183 arch/x86/kvm/mmu.c 	sp->spt = mmu_memory_cache_alloc(&vcpu->arch.mmu_page_cache);
sp               2185 arch/x86/kvm/mmu.c 		sp->gfns = mmu_memory_cache_alloc(&vcpu->arch.mmu_page_cache);
sp               2186 arch/x86/kvm/mmu.c 	set_page_private(virt_to_page(sp->spt), (unsigned long)sp);
sp               2193 arch/x86/kvm/mmu.c 	sp->mmu_valid_gen = vcpu->kvm->arch.mmu_valid_gen;
sp               2194 arch/x86/kvm/mmu.c 	list_add(&sp->link, &vcpu->kvm->arch.active_mmu_pages);
sp               2196 arch/x86/kvm/mmu.c 	return sp;
sp               2200 arch/x86/kvm/mmu.c static void kvm_mmu_mark_parents_unsync(struct kvm_mmu_page *sp)
sp               2205 arch/x86/kvm/mmu.c 	for_each_rmap_spte(&sp->parent_ptes, &iter, sptep) {
sp               2212 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2215 arch/x86/kvm/mmu.c 	sp = page_header(__pa(spte));
sp               2216 arch/x86/kvm/mmu.c 	index = spte - sp->spt;
sp               2217 arch/x86/kvm/mmu.c 	if (__test_and_set_bit(index, sp->unsync_child_bitmap))
sp               2219 arch/x86/kvm/mmu.c 	if (sp->unsync_children++)
sp               2221 arch/x86/kvm/mmu.c 	kvm_mmu_mark_parents_unsync(sp);
sp               2225 arch/x86/kvm/mmu.c 			       struct kvm_mmu_page *sp)
sp               2235 arch/x86/kvm/mmu.c 				 struct kvm_mmu_page *sp, u64 *spte,
sp               2245 arch/x86/kvm/mmu.c 		struct kvm_mmu_page *sp;
sp               2251 arch/x86/kvm/mmu.c static int mmu_pages_add(struct kvm_mmu_pages *pvec, struct kvm_mmu_page *sp,
sp               2256 arch/x86/kvm/mmu.c 	if (sp->unsync)
sp               2258 arch/x86/kvm/mmu.c 			if (pvec->page[i].sp == sp)
sp               2261 arch/x86/kvm/mmu.c 	pvec->page[pvec->nr].sp = sp;
sp               2267 arch/x86/kvm/mmu.c static inline void clear_unsync_child_bit(struct kvm_mmu_page *sp, int idx)
sp               2269 arch/x86/kvm/mmu.c 	--sp->unsync_children;
sp               2270 arch/x86/kvm/mmu.c 	WARN_ON((int)sp->unsync_children < 0);
sp               2271 arch/x86/kvm/mmu.c 	__clear_bit(idx, sp->unsync_child_bitmap);
sp               2274 arch/x86/kvm/mmu.c static int __mmu_unsync_walk(struct kvm_mmu_page *sp,
sp               2279 arch/x86/kvm/mmu.c 	for_each_set_bit(i, sp->unsync_child_bitmap, 512) {
sp               2281 arch/x86/kvm/mmu.c 		u64 ent = sp->spt[i];
sp               2284 arch/x86/kvm/mmu.c 			clear_unsync_child_bit(sp, i);
sp               2296 arch/x86/kvm/mmu.c 				clear_unsync_child_bit(sp, i);
sp               2307 arch/x86/kvm/mmu.c 			clear_unsync_child_bit(sp, i);
sp               2315 arch/x86/kvm/mmu.c static int mmu_unsync_walk(struct kvm_mmu_page *sp,
sp               2319 arch/x86/kvm/mmu.c 	if (!sp->unsync_children)
sp               2322 arch/x86/kvm/mmu.c 	mmu_pages_add(pvec, sp, INVALID_INDEX);
sp               2323 arch/x86/kvm/mmu.c 	return __mmu_unsync_walk(sp, pvec);
sp               2326 arch/x86/kvm/mmu.c static void kvm_unlink_unsync_page(struct kvm *kvm, struct kvm_mmu_page *sp)
sp               2328 arch/x86/kvm/mmu.c 	WARN_ON(!sp->unsync);
sp               2329 arch/x86/kvm/mmu.c 	trace_kvm_mmu_sync_page(sp);
sp               2330 arch/x86/kvm/mmu.c 	sp->unsync = 0;
sp               2334 arch/x86/kvm/mmu.c static bool kvm_mmu_prepare_zap_page(struct kvm *kvm, struct kvm_mmu_page *sp,
sp               2350 arch/x86/kvm/mmu.c static inline bool is_ept_sp(struct kvm_mmu_page *sp)
sp               2352 arch/x86/kvm/mmu.c 	return sp->role.cr0_wp && sp->role.smap_andnot_wp;
sp               2356 arch/x86/kvm/mmu.c static bool __kvm_sync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
sp               2359 arch/x86/kvm/mmu.c 	if ((!is_ept_sp(sp) && sp->role.gpte_is_8_bytes != !!is_pae(vcpu)) ||
sp               2360 arch/x86/kvm/mmu.c 	    vcpu->arch.mmu->sync_page(vcpu, sp) == 0) {
sp               2361 arch/x86/kvm/mmu.c 		kvm_mmu_prepare_zap_page(vcpu->kvm, sp, invalid_list);
sp               2400 arch/x86/kvm/mmu.c static bool is_obsolete_sp(struct kvm *kvm, struct kvm_mmu_page *sp)
sp               2402 arch/x86/kvm/mmu.c 	return sp->role.invalid ||
sp               2403 arch/x86/kvm/mmu.c 	       unlikely(sp->mmu_valid_gen != kvm->arch.mmu_valid_gen);
sp               2406 arch/x86/kvm/mmu.c static bool kvm_sync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
sp               2409 arch/x86/kvm/mmu.c 	kvm_unlink_unsync_page(vcpu->kvm, sp);
sp               2410 arch/x86/kvm/mmu.c 	return __kvm_sync_page(vcpu, sp, invalid_list);
sp               2436 arch/x86/kvm/mmu.c #define for_each_sp(pvec, sp, parents, i)			\
sp               2438 arch/x86/kvm/mmu.c 			i < pvec.nr && ({ sp = pvec.page[i].sp; 1;});	\
sp               2448 arch/x86/kvm/mmu.c 		struct kvm_mmu_page *sp = pvec->page[n].sp;
sp               2450 arch/x86/kvm/mmu.c 		int level = sp->role.level;
sp               2456 arch/x86/kvm/mmu.c 		parents->parent[level-2] = sp;
sp               2465 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2473 arch/x86/kvm/mmu.c 	sp = pvec->page[0].sp;
sp               2474 arch/x86/kvm/mmu.c 	level = sp->role.level;
sp               2477 arch/x86/kvm/mmu.c 	parents->parent[level-2] = sp;
sp               2488 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2493 arch/x86/kvm/mmu.c 		sp = parents->parent[level];
sp               2494 arch/x86/kvm/mmu.c 		if (!sp)
sp               2498 arch/x86/kvm/mmu.c 		clear_unsync_child_bit(sp, idx);
sp               2500 arch/x86/kvm/mmu.c 	} while (!sp->unsync_children);
sp               2507 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2516 arch/x86/kvm/mmu.c 		for_each_sp(pages, sp, parents, i)
sp               2517 arch/x86/kvm/mmu.c 			protected |= rmap_write_protect(vcpu, sp->gfn);
sp               2524 arch/x86/kvm/mmu.c 		for_each_sp(pages, sp, parents, i) {
sp               2525 arch/x86/kvm/mmu.c 			flush |= kvm_sync_page(vcpu, sp, &invalid_list);
sp               2538 arch/x86/kvm/mmu.c static void __clear_sp_write_flooding_count(struct kvm_mmu_page *sp)
sp               2540 arch/x86/kvm/mmu.c 	atomic_set(&sp->write_flooding_count,  0);
sp               2545 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp =  page_header(__pa(spte));
sp               2547 arch/x86/kvm/mmu.c 	__clear_sp_write_flooding_count(sp);
sp               2559 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2577 arch/x86/kvm/mmu.c 	for_each_valid_sp(vcpu->kvm, sp, gfn) {
sp               2578 arch/x86/kvm/mmu.c 		if (sp->gfn != gfn) {
sp               2583 arch/x86/kvm/mmu.c 		if (!need_sync && sp->unsync)
sp               2586 arch/x86/kvm/mmu.c 		if (sp->role.word != role.word)
sp               2589 arch/x86/kvm/mmu.c 		if (sp->unsync) {
sp               2593 arch/x86/kvm/mmu.c 			if (!__kvm_sync_page(vcpu, sp, &invalid_list))
sp               2600 arch/x86/kvm/mmu.c 		if (sp->unsync_children)
sp               2603 arch/x86/kvm/mmu.c 		__clear_sp_write_flooding_count(sp);
sp               2604 arch/x86/kvm/mmu.c 		trace_kvm_mmu_get_page(sp, false);
sp               2610 arch/x86/kvm/mmu.c 	sp = kvm_mmu_alloc_page(vcpu, direct);
sp               2612 arch/x86/kvm/mmu.c 	sp->gfn = gfn;
sp               2613 arch/x86/kvm/mmu.c 	sp->role = role;
sp               2614 arch/x86/kvm/mmu.c 	hlist_add_head(&sp->hash_link,
sp               2622 arch/x86/kvm/mmu.c 		account_shadowed(vcpu->kvm, sp);
sp               2630 arch/x86/kvm/mmu.c 	clear_page(sp->spt);
sp               2631 arch/x86/kvm/mmu.c 	trace_kvm_mmu_get_page(sp, true);
sp               2637 arch/x86/kvm/mmu.c 	return sp;
sp               2704 arch/x86/kvm/mmu.c 			     struct kvm_mmu_page *sp)
sp               2710 arch/x86/kvm/mmu.c 	spte = __pa(sp->spt) | shadow_present_mask | PT_WRITABLE_MASK |
sp               2713 arch/x86/kvm/mmu.c 	if (sp_ad_disabled(sp))
sp               2720 arch/x86/kvm/mmu.c 	mmu_page_add_parent_pte(vcpu, sp, sptep);
sp               2722 arch/x86/kvm/mmu.c 	if (sp->unsync_children || sp->unsync)
sp               2748 arch/x86/kvm/mmu.c static bool mmu_page_zap_pte(struct kvm *kvm, struct kvm_mmu_page *sp,
sp               2756 arch/x86/kvm/mmu.c 		if (is_last_spte(pte, sp->role.level)) {
sp               2774 arch/x86/kvm/mmu.c 					 struct kvm_mmu_page *sp)
sp               2779 arch/x86/kvm/mmu.c 		mmu_page_zap_pte(kvm, sp, sp->spt + i);
sp               2782 arch/x86/kvm/mmu.c static void kvm_mmu_unlink_parents(struct kvm *kvm, struct kvm_mmu_page *sp)
sp               2787 arch/x86/kvm/mmu.c 	while ((sptep = rmap_get_first(&sp->parent_ptes, &iter)))
sp               2788 arch/x86/kvm/mmu.c 		drop_parent_pte(sp, sptep);
sp               2803 arch/x86/kvm/mmu.c 		struct kvm_mmu_page *sp;
sp               2805 arch/x86/kvm/mmu.c 		for_each_sp(pages, sp, parents, i) {
sp               2806 arch/x86/kvm/mmu.c 			kvm_mmu_prepare_zap_page(kvm, sp, invalid_list);
sp               2816 arch/x86/kvm/mmu.c 				       struct kvm_mmu_page *sp,
sp               2822 arch/x86/kvm/mmu.c 	trace_kvm_mmu_prepare_zap_page(sp);
sp               2824 arch/x86/kvm/mmu.c 	*nr_zapped = mmu_zap_unsync_children(kvm, sp, invalid_list);
sp               2825 arch/x86/kvm/mmu.c 	kvm_mmu_page_unlink_children(kvm, sp);
sp               2826 arch/x86/kvm/mmu.c 	kvm_mmu_unlink_parents(kvm, sp);
sp               2831 arch/x86/kvm/mmu.c 	if (!sp->role.invalid && !sp->role.direct)
sp               2832 arch/x86/kvm/mmu.c 		unaccount_shadowed(kvm, sp);
sp               2834 arch/x86/kvm/mmu.c 	if (sp->unsync)
sp               2835 arch/x86/kvm/mmu.c 		kvm_unlink_unsync_page(kvm, sp);
sp               2836 arch/x86/kvm/mmu.c 	if (!sp->root_count) {
sp               2839 arch/x86/kvm/mmu.c 		list_move(&sp->link, invalid_list);
sp               2842 arch/x86/kvm/mmu.c 		list_move(&sp->link, &kvm->arch.active_mmu_pages);
sp               2849 arch/x86/kvm/mmu.c 		if (!is_obsolete_sp(kvm, sp))
sp               2853 arch/x86/kvm/mmu.c 	if (sp->lpage_disallowed)
sp               2854 arch/x86/kvm/mmu.c 		unaccount_huge_nx_page(kvm, sp);
sp               2856 arch/x86/kvm/mmu.c 	sp->role.invalid = 1;
sp               2860 arch/x86/kvm/mmu.c static bool kvm_mmu_prepare_zap_page(struct kvm *kvm, struct kvm_mmu_page *sp,
sp               2865 arch/x86/kvm/mmu.c 	__kvm_mmu_prepare_zap_page(kvm, sp, invalid_list, &nr_zapped);
sp               2872 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp, *nsp;
sp               2888 arch/x86/kvm/mmu.c 	list_for_each_entry_safe(sp, nsp, invalid_list, link) {
sp               2889 arch/x86/kvm/mmu.c 		WARN_ON(!sp->role.invalid || sp->root_count);
sp               2890 arch/x86/kvm/mmu.c 		kvm_mmu_free_page(sp);
sp               2897 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2902 arch/x86/kvm/mmu.c 	sp = list_last_entry(&kvm->arch.active_mmu_pages,
sp               2904 arch/x86/kvm/mmu.c 	return kvm_mmu_prepare_zap_page(kvm, sp, invalid_list);
sp               2934 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2941 arch/x86/kvm/mmu.c 	for_each_gfn_indirect_valid_sp(kvm, sp, gfn) {
sp               2943 arch/x86/kvm/mmu.c 			 sp->role.word);
sp               2945 arch/x86/kvm/mmu.c 		kvm_mmu_prepare_zap_page(kvm, sp, &invalid_list);
sp               2954 arch/x86/kvm/mmu.c static void kvm_unsync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp)
sp               2956 arch/x86/kvm/mmu.c 	trace_kvm_mmu_unsync_page(sp);
sp               2958 arch/x86/kvm/mmu.c 	sp->unsync = 1;
sp               2960 arch/x86/kvm/mmu.c 	kvm_mmu_mark_parents_unsync(sp);
sp               2966 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               2971 arch/x86/kvm/mmu.c 	for_each_gfn_indirect_valid_sp(vcpu->kvm, sp, gfn) {
sp               2975 arch/x86/kvm/mmu.c 		if (sp->unsync)
sp               2978 arch/x86/kvm/mmu.c 		WARN_ON(sp->role.level != PT_PAGE_TABLE_LEVEL);
sp               2979 arch/x86/kvm/mmu.c 		kvm_unsync_page(vcpu, sp);
sp               3056 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               3061 arch/x86/kvm/mmu.c 	sp = page_header(__pa(sptep));
sp               3062 arch/x86/kvm/mmu.c 	if (sp_ad_disabled(sp))
sp               3232 arch/x86/kvm/mmu.c 				    struct kvm_mmu_page *sp,
sp               3237 arch/x86/kvm/mmu.c 	unsigned access = sp->role.access;
sp               3241 arch/x86/kvm/mmu.c 	gfn = kvm_mmu_page_get_gfn(sp, start - sp->spt);
sp               3251 arch/x86/kvm/mmu.c 		mmu_set_spte(vcpu, start, access, 0, sp->role.level, gfn,
sp               3260 arch/x86/kvm/mmu.c 				  struct kvm_mmu_page *sp, u64 *sptep)
sp               3265 arch/x86/kvm/mmu.c 	WARN_ON(!sp->role.direct);
sp               3267 arch/x86/kvm/mmu.c 	i = (sptep - sp->spt) & ~(PTE_PREFETCH_NUM - 1);
sp               3268 arch/x86/kvm/mmu.c 	spte = sp->spt + i;
sp               3274 arch/x86/kvm/mmu.c 			if (direct_pte_prefetch_many(vcpu, sp, start, spte) < 0)
sp               3284 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               3286 arch/x86/kvm/mmu.c 	sp = page_header(__pa(sptep));
sp               3293 arch/x86/kvm/mmu.c 	if (sp_ad_disabled(sp))
sp               3296 arch/x86/kvm/mmu.c 	if (sp->role.level > PT_PAGE_TABLE_LEVEL)
sp               3299 arch/x86/kvm/mmu.c 	__direct_pte_prefetch(vcpu, sp, sptep);
sp               3330 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               3352 arch/x86/kvm/mmu.c 			sp = kvm_mmu_get_page(vcpu, base_gfn, it.addr,
sp               3355 arch/x86/kvm/mmu.c 			link_shadow_page(vcpu, it.sptep, sp);
sp               3357 arch/x86/kvm/mmu.c 				account_huge_nx_page(vcpu->kvm, sp);
sp               3485 arch/x86/kvm/mmu.c fast_pf_fix_direct_spte(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
sp               3490 arch/x86/kvm/mmu.c 	WARN_ON(!sp->role.direct);
sp               3512 arch/x86/kvm/mmu.c 		gfn = kvm_mmu_page_get_gfn(sp, sptep - sp->spt);
sp               3540 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               3561 arch/x86/kvm/mmu.c 		sp = page_header(__pa(iterator.sptep));
sp               3562 arch/x86/kvm/mmu.c 		if (!is_last_spte(spte, sp->role.level))
sp               3606 arch/x86/kvm/mmu.c 			if (sp->role.level > PT_PAGE_TABLE_LEVEL)
sp               3620 arch/x86/kvm/mmu.c 		fault_handled = fast_pf_fix_direct_spte(vcpu, sp,
sp               3703 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               3708 arch/x86/kvm/mmu.c 	sp = page_header(*root_hpa & PT64_BASE_ADDR_MASK);
sp               3709 arch/x86/kvm/mmu.c 	--sp->root_count;
sp               3710 arch/x86/kvm/mmu.c 	if (!sp->root_count && sp->role.invalid)
sp               3711 arch/x86/kvm/mmu.c 		kvm_mmu_prepare_zap_page(kvm, sp, invalid_list);
sp               3779 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               3788 arch/x86/kvm/mmu.c 		sp = kvm_mmu_get_page(vcpu, 0, 0,
sp               3790 arch/x86/kvm/mmu.c 		++sp->root_count;
sp               3792 arch/x86/kvm/mmu.c 		vcpu->arch.mmu->root_hpa = __pa(sp->spt);
sp               3803 arch/x86/kvm/mmu.c 			sp = kvm_mmu_get_page(vcpu, i << (30 - PAGE_SHIFT),
sp               3805 arch/x86/kvm/mmu.c 			root = __pa(sp->spt);
sp               3806 arch/x86/kvm/mmu.c 			++sp->root_count;
sp               3820 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               3845 arch/x86/kvm/mmu.c 		sp = kvm_mmu_get_page(vcpu, root_gfn, 0,
sp               3847 arch/x86/kvm/mmu.c 		root = __pa(sp->spt);
sp               3848 arch/x86/kvm/mmu.c 		++sp->root_count;
sp               3882 arch/x86/kvm/mmu.c 		sp = kvm_mmu_get_page(vcpu, root_gfn, i << 30, PT32_ROOT_LEVEL,
sp               3884 arch/x86/kvm/mmu.c 		root = __pa(sp->spt);
sp               3885 arch/x86/kvm/mmu.c 		++sp->root_count;
sp               3934 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               3946 arch/x86/kvm/mmu.c 		sp = page_header(root);
sp               3958 arch/x86/kvm/mmu.c 		if (!smp_load_acquire(&sp->unsync) &&
sp               3959 arch/x86/kvm/mmu.c 		    !smp_load_acquire(&sp->unsync_children))
sp               3965 arch/x86/kvm/mmu.c 		mmu_sync_children(vcpu, sp);
sp               3980 arch/x86/kvm/mmu.c 			sp = page_header(root);
sp               3981 arch/x86/kvm/mmu.c 			mmu_sync_children(vcpu, sp);
sp               5304 arch/x86/kvm/mmu.c 				  struct kvm_mmu_page *sp, u64 *spte,
sp               5307 arch/x86/kvm/mmu.c 	if (sp->role.level != PT_PAGE_TABLE_LEVEL) {
sp               5313 arch/x86/kvm/mmu.c 	vcpu->arch.mmu->update_pte(vcpu, sp, spte, new);
sp               5359 arch/x86/kvm/mmu.c static bool detect_write_flooding(struct kvm_mmu_page *sp)
sp               5365 arch/x86/kvm/mmu.c 	if (sp->role.level == PT_PAGE_TABLE_LEVEL)
sp               5368 arch/x86/kvm/mmu.c 	atomic_inc(&sp->write_flooding_count);
sp               5369 arch/x86/kvm/mmu.c 	return atomic_read(&sp->write_flooding_count) >= 3;
sp               5376 arch/x86/kvm/mmu.c static bool detect_write_misaligned(struct kvm_mmu_page *sp, gpa_t gpa,
sp               5382 arch/x86/kvm/mmu.c 		 gpa, bytes, sp->role.word);
sp               5385 arch/x86/kvm/mmu.c 	pte_size = sp->role.gpte_is_8_bytes ? 8 : 4;
sp               5400 arch/x86/kvm/mmu.c static u64 *get_written_sptes(struct kvm_mmu_page *sp, gpa_t gpa, int *nspte)
sp               5407 arch/x86/kvm/mmu.c 	level = sp->role.level;
sp               5409 arch/x86/kvm/mmu.c 	if (!sp->role.gpte_is_8_bytes) {
sp               5423 arch/x86/kvm/mmu.c 		if (quadrant != sp->role.quadrant)
sp               5427 arch/x86/kvm/mmu.c 	spte = &sp->spt[page_offset / sizeof(*spte)];
sp               5436 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               5467 arch/x86/kvm/mmu.c 	for_each_gfn_indirect_valid_sp(vcpu->kvm, sp, gfn) {
sp               5468 arch/x86/kvm/mmu.c 		if (detect_write_misaligned(sp, gpa, bytes) ||
sp               5469 arch/x86/kvm/mmu.c 		      detect_write_flooding(sp)) {
sp               5470 arch/x86/kvm/mmu.c 			kvm_mmu_prepare_zap_page(vcpu->kvm, sp, &invalid_list);
sp               5475 arch/x86/kvm/mmu.c 		spte = get_written_sptes(sp, gpa, &npte);
sp               5484 arch/x86/kvm/mmu.c 			mmu_page_zap_pte(vcpu->kvm, sp, spte);
sp               5486 arch/x86/kvm/mmu.c 			      !((sp->role.word ^ base_role)
sp               5488 arch/x86/kvm/mmu.c 				mmu_pte_write_new_pte(vcpu, sp, spte, &gentry);
sp               5831 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp, *node;
sp               5835 arch/x86/kvm/mmu.c 	list_for_each_entry_safe_reverse(sp, node,
sp               5841 arch/x86/kvm/mmu.c 		if (!is_obsolete_sp(kvm, sp))
sp               5850 arch/x86/kvm/mmu.c 		if (sp->role.invalid && sp->root_count)
sp               5865 arch/x86/kvm/mmu.c 		if (__kvm_mmu_prepare_zap_page(kvm, sp,
sp               6019 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               6023 arch/x86/kvm/mmu.c 		sp = page_header(__pa(sptep));
sp               6033 arch/x86/kvm/mmu.c 		if (sp->role.direct && !kvm_is_reserved_pfn(pfn) &&
sp               6039 arch/x86/kvm/mmu.c 				kvm_flush_remote_tlbs_with_address(kvm, sp->gfn,
sp               6040 arch/x86/kvm/mmu.c 					KVM_PAGES_PER_HPAGE(sp->role.level));
sp               6123 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp, *node;
sp               6129 arch/x86/kvm/mmu.c 	list_for_each_entry_safe(sp, node, &kvm->arch.active_mmu_pages, link) {
sp               6130 arch/x86/kvm/mmu.c 		if (sp->role.invalid && sp->root_count)
sp               6132 arch/x86/kvm/mmu.c 		if (__kvm_mmu_prepare_zap_page(kvm, sp, &invalid_list, &ign))
sp               6426 arch/x86/kvm/mmu.c 	struct kvm_mmu_page *sp;
sp               6442 arch/x86/kvm/mmu.c 		sp = list_first_entry(&kvm->arch.lpage_disallowed_mmu_pages,
sp               6445 arch/x86/kvm/mmu.c 		WARN_ON_ONCE(!sp->lpage_disallowed);
sp               6446 arch/x86/kvm/mmu.c 		kvm_mmu_prepare_zap_page(kvm, sp, &invalid_list);
sp               6447 arch/x86/kvm/mmu.c 		WARN_ON_ONCE(sp->lpage_disallowed);
sp                 34 arch/x86/kvm/mmu_audit.c static void __mmu_spte_walk(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
sp                 40 arch/x86/kvm/mmu_audit.c 		u64 *ent = sp->spt;
sp                 57 arch/x86/kvm/mmu_audit.c 	struct kvm_mmu_page *sp;
sp                 65 arch/x86/kvm/mmu_audit.c 		sp = page_header(root);
sp                 66 arch/x86/kvm/mmu_audit.c 		__mmu_spte_walk(vcpu, sp, fn, vcpu->arch.mmu->root_level);
sp                 75 arch/x86/kvm/mmu_audit.c 			sp = page_header(root);
sp                 76 arch/x86/kvm/mmu_audit.c 			__mmu_spte_walk(vcpu, sp, fn, 2);
sp                 83 arch/x86/kvm/mmu_audit.c typedef void (*sp_handler) (struct kvm *kvm, struct kvm_mmu_page *sp);
sp                 87 arch/x86/kvm/mmu_audit.c 	struct kvm_mmu_page *sp;
sp                 89 arch/x86/kvm/mmu_audit.c 	list_for_each_entry(sp, &kvm->arch.active_mmu_pages, link)
sp                 90 arch/x86/kvm/mmu_audit.c 		fn(kvm, sp);
sp                 95 arch/x86/kvm/mmu_audit.c 	struct kvm_mmu_page *sp;
sp                100 arch/x86/kvm/mmu_audit.c 	sp = page_header(__pa(sptep));
sp                102 arch/x86/kvm/mmu_audit.c 	if (sp->unsync) {
sp                105 arch/x86/kvm/mmu_audit.c 				     "level = %d\n", sp, level);
sp                113 arch/x86/kvm/mmu_audit.c 	gfn = kvm_mmu_page_get_gfn(sp, sptep - sp->spt);
sp                168 arch/x86/kvm/mmu_audit.c 	struct kvm_mmu_page *sp = page_header(__pa(sptep));
sp                170 arch/x86/kvm/mmu_audit.c 	if (vcpu->kvm->arch.audit_point == AUDIT_POST_SYNC && sp->unsync)
sp                172 arch/x86/kvm/mmu_audit.c 			     "root.\n", sp);
sp                175 arch/x86/kvm/mmu_audit.c static void check_mappings_rmap(struct kvm *kvm, struct kvm_mmu_page *sp)
sp                179 arch/x86/kvm/mmu_audit.c 	if (sp->role.level != PT_PAGE_TABLE_LEVEL)
sp                183 arch/x86/kvm/mmu_audit.c 		if (!is_shadow_present_pte(sp->spt[i]))
sp                186 arch/x86/kvm/mmu_audit.c 		inspect_spte_has_rmap(kvm, sp->spt + i);
sp                190 arch/x86/kvm/mmu_audit.c static void audit_write_protection(struct kvm *kvm, struct kvm_mmu_page *sp)
sp                198 arch/x86/kvm/mmu_audit.c 	if (sp->role.direct || sp->unsync || sp->role.invalid)
sp                201 arch/x86/kvm/mmu_audit.c 	slots = kvm_memslots_for_spte_role(kvm, sp->role);
sp                202 arch/x86/kvm/mmu_audit.c 	slot = __gfn_to_memslot(slots, sp->gfn);
sp                203 arch/x86/kvm/mmu_audit.c 	rmap_head = __gfn_to_rmap(sp->gfn, PT_PAGE_TABLE_LEVEL, slot);
sp                209 arch/x86/kvm/mmu_audit.c 				     sp->gfn, sp->role.word);
sp                213 arch/x86/kvm/mmu_audit.c static void audit_sp(struct kvm *kvm, struct kvm_mmu_page *sp)
sp                215 arch/x86/kvm/mmu_audit.c 	check_mappings_rmap(kvm, sp);
sp                216 arch/x86/kvm/mmu_audit.c 	audit_write_protection(kvm, sp);
sp                 18 arch/x86/kvm/mmutrace.h #define KVM_MMU_PAGE_ASSIGN(sp)				\
sp                 19 arch/x86/kvm/mmutrace.h 	__entry->mmu_valid_gen = sp->mmu_valid_gen;	\
sp                 20 arch/x86/kvm/mmutrace.h 	__entry->gfn = sp->gfn;				\
sp                 21 arch/x86/kvm/mmutrace.h 	__entry->role = sp->role.word;			\
sp                 22 arch/x86/kvm/mmutrace.h 	__entry->root_count = sp->root_count;		\
sp                 23 arch/x86/kvm/mmutrace.h 	__entry->unsync = sp->unsync;
sp                152 arch/x86/kvm/mmutrace.h 	TP_PROTO(struct kvm_mmu_page *sp, bool created),
sp                153 arch/x86/kvm/mmutrace.h 	TP_ARGS(sp, created),
sp                161 arch/x86/kvm/mmutrace.h 		KVM_MMU_PAGE_ASSIGN(sp)
sp                171 arch/x86/kvm/mmutrace.h 	TP_PROTO(struct kvm_mmu_page *sp),
sp                172 arch/x86/kvm/mmutrace.h 	TP_ARGS(sp),
sp                179 arch/x86/kvm/mmutrace.h 		KVM_MMU_PAGE_ASSIGN(sp)
sp                186 arch/x86/kvm/mmutrace.h 	TP_PROTO(struct kvm_mmu_page *sp),
sp                188 arch/x86/kvm/mmutrace.h 	TP_ARGS(sp)
sp                192 arch/x86/kvm/mmutrace.h 	TP_PROTO(struct kvm_mmu_page *sp),
sp                194 arch/x86/kvm/mmutrace.h 	TP_ARGS(sp)
sp                198 arch/x86/kvm/mmutrace.h 	TP_PROTO(struct kvm_mmu_page *sp),
sp                200 arch/x86/kvm/mmutrace.h 	TP_ARGS(sp)
sp                175 arch/x86/kvm/paging_tmpl.h 				  struct kvm_mmu_page *sp, u64 *spte,
sp                516 arch/x86/kvm/paging_tmpl.h FNAME(prefetch_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
sp                523 arch/x86/kvm/paging_tmpl.h 	if (FNAME(prefetch_invalid_gpte)(vcpu, sp, spte, gpte))
sp                529 arch/x86/kvm/paging_tmpl.h 	pte_access = sp->role.access & FNAME(gpte_access)(gpte);
sp                547 arch/x86/kvm/paging_tmpl.h static void FNAME(update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
sp                552 arch/x86/kvm/paging_tmpl.h 	FNAME(prefetch_gpte)(vcpu, sp, spte, gpte, false);
sp                581 arch/x86/kvm/paging_tmpl.h 	struct kvm_mmu_page *sp;
sp                586 arch/x86/kvm/paging_tmpl.h 	sp = page_header(__pa(sptep));
sp                588 arch/x86/kvm/paging_tmpl.h 	if (sp->role.level > PT_PAGE_TABLE_LEVEL)
sp                591 arch/x86/kvm/paging_tmpl.h 	if (sp->role.direct)
sp                592 arch/x86/kvm/paging_tmpl.h 		return __direct_pte_prefetch(vcpu, sp, sptep);
sp                594 arch/x86/kvm/paging_tmpl.h 	i = (sptep - sp->spt) & ~(PTE_PREFETCH_NUM - 1);
sp                595 arch/x86/kvm/paging_tmpl.h 	spte = sp->spt + i;
sp                604 arch/x86/kvm/paging_tmpl.h 		if (!FNAME(prefetch_gpte)(vcpu, sp, spte, gptep[i], true))
sp                620 arch/x86/kvm/paging_tmpl.h 	struct kvm_mmu_page *sp = NULL;
sp                651 arch/x86/kvm/paging_tmpl.h 		sp = NULL;
sp                654 arch/x86/kvm/paging_tmpl.h 			sp = kvm_mmu_get_page(vcpu, table_gfn, addr, it.level-1,
sp                665 arch/x86/kvm/paging_tmpl.h 		if (sp)
sp                666 arch/x86/kvm/paging_tmpl.h 			link_shadow_page(vcpu, it.sptep, sp);
sp                696 arch/x86/kvm/paging_tmpl.h 			sp = kvm_mmu_get_page(vcpu, base_gfn, addr,
sp                698 arch/x86/kvm/paging_tmpl.h 			link_shadow_page(vcpu, it.sptep, sp);
sp                700 arch/x86/kvm/paging_tmpl.h 				account_huge_nx_page(vcpu->kvm, sp);
sp                880 arch/x86/kvm/paging_tmpl.h static gpa_t FNAME(get_level1_sp_gpa)(struct kvm_mmu_page *sp)
sp                884 arch/x86/kvm/paging_tmpl.h 	WARN_ON(sp->role.level != PT_PAGE_TABLE_LEVEL);
sp                887 arch/x86/kvm/paging_tmpl.h 		offset = sp->role.quadrant << PT64_LEVEL_BITS;
sp                889 arch/x86/kvm/paging_tmpl.h 	return gfn_to_gpa(sp->gfn) + offset * sizeof(pt_element_t);
sp                895 arch/x86/kvm/paging_tmpl.h 	struct kvm_mmu_page *sp;
sp                917 arch/x86/kvm/paging_tmpl.h 		sp = page_header(__pa(sptep));
sp                922 arch/x86/kvm/paging_tmpl.h 			if (!sp->unsync)
sp                925 arch/x86/kvm/paging_tmpl.h 			pte_gpa = FNAME(get_level1_sp_gpa)(sp);
sp                926 arch/x86/kvm/paging_tmpl.h 			pte_gpa += (sptep - sp->spt) * sizeof(pt_element_t);
sp                928 arch/x86/kvm/paging_tmpl.h 			if (mmu_page_zap_pte(vcpu->kvm, sp, sptep))
sp                930 arch/x86/kvm/paging_tmpl.h 					sp->gfn, KVM_PAGES_PER_HPAGE(sp->role.level));
sp                939 arch/x86/kvm/paging_tmpl.h 			FNAME(update_pte)(vcpu, sp, sptep, &gpte);
sp                942 arch/x86/kvm/paging_tmpl.h 		if (!is_shadow_present_pte(*sptep) || !sp->unsync_children)
sp               1007 arch/x86/kvm/paging_tmpl.h static int FNAME(sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp)
sp               1015 arch/x86/kvm/paging_tmpl.h 	BUG_ON(sp->role.direct);
sp               1017 arch/x86/kvm/paging_tmpl.h 	first_pte_gpa = FNAME(get_level1_sp_gpa)(sp);
sp               1025 arch/x86/kvm/paging_tmpl.h 		if (!sp->spt[i])
sp               1034 arch/x86/kvm/paging_tmpl.h 		if (FNAME(prefetch_invalid_gpte)(vcpu, sp, &sp->spt[i], gpte)) {
sp               1046 arch/x86/kvm/paging_tmpl.h 		pte_access = sp->role.access;
sp               1050 arch/x86/kvm/paging_tmpl.h 		if (sync_mmio_spte(vcpu, &sp->spt[i], gfn, pte_access,
sp               1054 arch/x86/kvm/paging_tmpl.h 		if (gfn != sp->gfns[i]) {
sp               1055 arch/x86/kvm/paging_tmpl.h 			drop_spte(vcpu->kvm, &sp->spt[i]);
sp               1067 arch/x86/kvm/paging_tmpl.h 		host_writable = sp->spt[i] & SPTE_HOST_WRITEABLE;
sp               1069 arch/x86/kvm/paging_tmpl.h 		set_spte_ret |= set_spte(vcpu, &sp->spt[i],
sp               1071 arch/x86/kvm/paging_tmpl.h 					 gfn, spte_to_pfn(sp->spt[i]),
sp                 49 arch/x86/kvm/tss.h 	u16 sp;
sp               6251 arch/x86/kvm/vmx/vmx.c 		[sp]"=&r"(tmp),
sp                195 arch/x86/lib/insn-eval.c 	case offsetof(struct pt_regs, sp):
sp                406 arch/x86/lib/insn-eval.c 		offsetof(struct pt_regs, sp),
sp                 37 arch/x86/math-emu/get_address.c 	offsetof(struct pt_regs, sp),
sp                869 arch/x86/mm/fault.c 		(void *)regs->ip, (void *)regs->sp, error_code);
sp                119 arch/x86/mm/mmio-mod.c 		 regs->si, regs->di, regs->bp, regs->sp);
sp                124 arch/x86/mm/mmio-mod.c 		 regs->si, regs->di, regs->bp, regs->sp);
sp                302 arch/x86/mm/pf_in.c 			rv = (unsigned char *)&regs->sp;
sp                350 arch/x86/mm/pf_in.c 		rv = &regs->sp;
sp                166 arch/x86/mm/tlb.c 	unsigned long sp = current_stack_pointer;
sp                167 arch/x86/mm/tlb.c 	pgd_t *pgd = pgd_offset(mm, sp);
sp                171 arch/x86/mm/tlb.c 			pgd_t *pgd_ref = pgd_offset_k(sp);
sp                181 arch/x86/mm/tlb.c 		p4d_t *p4d = p4d_offset(pgd, sp);
sp                184 arch/x86/mm/tlb.c 			pgd_t *pgd_ref = pgd_offset_k(sp);
sp                185 arch/x86/mm/tlb.c 			p4d_t *p4d_ref = p4d_offset(pgd_ref, sp);
sp                286 arch/x86/platform/uv/tlb_uv.c 	short *sp;
sp                319 arch/x86/platform/uv/tlb_uv.c 	sp = &smaster->socket_acknowledge_count[mdp->msg_slot];
sp                320 arch/x86/platform/uv/tlb_uv.c 	asp = (struct atomic_short *)sp;
sp                328 arch/x86/platform/uv/tlb_uv.c 		*sp = 0;
sp                 50 arch/x86/um/asm/processor_32.h #define current_sp() ({ void *sp; __asm__("movl %%esp, %0" : "=r" (sp) : ); sp; })
sp                 34 arch/x86/um/asm/processor_64.h #define current_sp() ({ void *sp; __asm__("movq %%rsp, %0" : "=r" (sp) : ); sp; })
sp                 31 arch/x86/um/asm/ptrace.h #define PT_FIX_EXEC_STACK(sp) do ; while(0)
sp                 73 arch/x86/um/shared/sysdep/ptrace.h extern int user_context(unsigned long sp);
sp                177 arch/x86/um/signal.c 	GETREG(SP, sp);
sp                256 arch/x86/um/signal.c 	PUTREG(SP, sp);
sp                328 arch/x86/um/signal.c 				 unsigned long sp)
sp                332 arch/x86/um/signal.c 	err |= __save_altstack(&uc->uc_stack, sp);
sp                454 arch/x86/um/signal.c 	unsigned long sp = PT_REGS_SP(&current->thread.regs);
sp                455 arch/x86/um/signal.c 	struct sigframe __user *frame = (struct sigframe __user *)(sp - 8);
sp                561 arch/x86/um/signal.c 	unsigned long sp = PT_REGS_SP(&current->thread.regs);
sp                563 arch/x86/um/signal.c 		(struct rt_sigframe __user *)(sp - sizeof(long));
sp                470 arch/x86/xen/pmu.c 	regs->sp = xen_regs->sp;
sp                 43 arch/xtensa/include/asm/asm-uaccess.h 	.macro	get_fs	ad, sp
sp                 63 arch/xtensa/include/asm/asm-uaccess.h 	.macro	set_fs	at, av, sp
sp                 91 arch/xtensa/include/asm/asm-uaccess.h 	.macro	kernel_ok  at, sp, success
sp                149 arch/xtensa/include/asm/asm-uaccess.h 	.macro	access_ok  aa, as, at, sp, error
sp                201 arch/xtensa/include/asm/asmmacro.h 	entry sp, (XTENSA_FRAME_SIZE_RESERVE + \
sp                217 arch/xtensa/include/asm/asmmacro.h 	addi sp, sp, -(((\frame_size) + XTENSA_STACK_ALIGNMENT - 1) & \
sp                228 arch/xtensa/include/asm/asmmacro.h 	addi sp, sp, (((\frame_size) + XTENSA_STACK_ALIGNMENT - 1) & \
sp                 31 arch/xtensa/include/asm/current.h #define GET_CURRENT(reg,sp)		\
sp                 32 arch/xtensa/include/asm/current.h 	GET_THREAD_INFO(reg,sp);	\
sp                118 arch/xtensa/include/asm/processor.h #define MAKE_PC_FROM_RA(ra,sp)    (((ra) & 0x3fffffff) | ((sp) & 0xc0000000))
sp                123 arch/xtensa/include/asm/processor.h #define SPILL_SLOT(sp, reg) (*(((unsigned long *)(sp)) - 4 + (reg)))
sp                128 arch/xtensa/include/asm/processor.h #define SPILL_SLOT_CALL8(sp, reg) (*(((unsigned long *)(sp)) - 12 + (reg)))
sp                133 arch/xtensa/include/asm/processor.h #define SPILL_SLOT_CALL12(sp, reg) (*(((unsigned long *)(sp)) - 16 + (reg)))
sp                143 arch/xtensa/include/asm/processor.h 	unsigned long sp; /* kernel's a1: stack pointer */
sp                168 arch/xtensa/include/asm/processor.h 	sp:		sizeof(init_stack) + (long) &init_stack,	\
sp                 17 arch/xtensa/include/asm/stacktrace.h 	unsigned long sp;
sp                 22 arch/xtensa/include/asm/stacktrace.h 	unsigned long *sp;
sp                 25 arch/xtensa/include/asm/stacktrace.h 		__asm__ __volatile__ ("mov %0, a1\n" : "=a"(sp));
sp                 27 arch/xtensa/include/asm/stacktrace.h 		sp = (unsigned long *)task->thread.sp;
sp                 29 arch/xtensa/include/asm/stacktrace.h 	return sp;
sp                 32 arch/xtensa/include/asm/stacktrace.h void walk_stackframe(unsigned long *sp,
sp                 95 arch/xtensa/include/asm/thread_info.h #define GET_THREAD_INFO(reg,sp) \
sp                 96 arch/xtensa/include/asm/thread_info.h 	extui reg, sp, 0, CURRENT_SHIFT; \
sp                 97 arch/xtensa/include/asm/thread_info.h 	xor   reg, sp, reg
sp                 94 arch/xtensa/kernel/asm-offsets.c 	DEFINE(THREAD_SP, offsetof (struct task_struct, thread.sp));
sp                 41 arch/xtensa/kernel/irq.c 		unsigned long sp;
sp                 43 arch/xtensa/kernel/irq.c 		__asm__ __volatile__ ("mov %0, a1\n" : "=a" (sp));
sp                 44 arch/xtensa/kernel/irq.c 		sp &= THREAD_SIZE - 1;
sp                 46 arch/xtensa/kernel/irq.c 		if (unlikely(sp < (sizeof(thread_info) + 1024)))
sp                 48 arch/xtensa/kernel/irq.c 			       sp - sizeof(struct thread_info));
sp                219 arch/xtensa/kernel/process.c 	p->thread.sp = (unsigned long)childregs;
sp                302 arch/xtensa/kernel/process.c 	unsigned long sp, pc;
sp                309 arch/xtensa/kernel/process.c 	sp = p->thread.sp;
sp                310 arch/xtensa/kernel/process.c 	pc = MAKE_PC_FROM_RA(p->thread.ra, p->thread.sp);
sp                313 arch/xtensa/kernel/process.c 		if (sp < stack_page + sizeof(struct task_struct) ||
sp                314 arch/xtensa/kernel/process.c 		    sp >= (stack_page + THREAD_SIZE) ||
sp                322 arch/xtensa/kernel/process.c 		pc = MAKE_PC_FROM_RA(SPILL_SLOT(sp, 0), sp);
sp                323 arch/xtensa/kernel/process.c 		sp = SPILL_SLOT(sp, 1);
sp                 58 arch/xtensa/kernel/signal.c 	unsigned long sp = 0;
sp                 76 arch/xtensa/kernel/signal.c 		if (__get_user(sp, (int*)(regs->areg[base * 4 + 1] - 12)))
sp                 92 arch/xtensa/kernel/signal.c 			if (copy_to_user(&SPILL_SLOT_CALL8(sp, 4),
sp                 98 arch/xtensa/kernel/signal.c 			if (copy_to_user(&SPILL_SLOT_CALL12(sp, 4),
sp                106 arch/xtensa/kernel/signal.c 		sp = regs->areg[((base + inc) * 4 + 1) % XCHAL_NUM_AREGS];
sp                107 arch/xtensa/kernel/signal.c 		if (copy_to_user(&SPILL_SLOT(sp, 0), &regs->areg[base * 4], 16))
sp                112 arch/xtensa/kernel/signal.c 		sp = regs->areg[base * 4 + 1];
sp                338 arch/xtensa/kernel/signal.c 	unsigned long sp, ra, tp, ps;
sp                341 arch/xtensa/kernel/signal.c 	sp = regs->areg[1];
sp                343 arch/xtensa/kernel/signal.c 	if ((ksig->ka.sa.sa_flags & SA_ONSTACK) != 0 && sas_ss_flags(sp) == 0) {
sp                344 arch/xtensa/kernel/signal.c 		sp = current->sas_ss_sp + current->sas_ss_size;
sp                347 arch/xtensa/kernel/signal.c 	frame = (void *)((sp - sizeof(*frame)) & -16ul);
sp                 42 arch/xtensa/kernel/stacktrace.c 	frame.sp = a1;
sp                 80 arch/xtensa/kernel/stacktrace.c 			frame.sp = a1;
sp                107 arch/xtensa/kernel/stacktrace.c 		frame.sp = a1;
sp                139 arch/xtensa/kernel/stacktrace.c 		frame.sp = a1;
sp                168 arch/xtensa/kernel/stacktrace.c void walk_stackframe(unsigned long *sp,
sp                175 arch/xtensa/kernel/stacktrace.c 	a1 = (unsigned long)sp;
sp                183 arch/xtensa/kernel/stacktrace.c 		sp = (unsigned long *)a1;
sp                188 arch/xtensa/kernel/stacktrace.c 		if (a1 <= (unsigned long)sp)
sp                192 arch/xtensa/kernel/stacktrace.c 		frame.sp = a1;
sp                487 arch/xtensa/kernel/traps.c void show_trace(struct task_struct *task, unsigned long *sp)
sp                489 arch/xtensa/kernel/traps.c 	if (!sp)
sp                490 arch/xtensa/kernel/traps.c 		sp = stack_pointer(task);
sp                493 arch/xtensa/kernel/traps.c 	walk_stackframe(sp, show_trace_cb, NULL);
sp                501 arch/xtensa/kernel/traps.c void show_stack(struct task_struct *task, unsigned long *sp)
sp                506 arch/xtensa/kernel/traps.c 	if (!sp)
sp                507 arch/xtensa/kernel/traps.c 		sp = stack_pointer(task);
sp                508 arch/xtensa/kernel/traps.c 	stack = sp;
sp                513 arch/xtensa/kernel/traps.c 		if (kstack_end(sp))
sp                515 arch/xtensa/kernel/traps.c 		pr_cont(" %08lx", *sp++);
sp                503 crypto/twofish_common.c    ctx->s[3][i] = mds[3][q1[q1[q0[(b) ^ sd] ^ sh] ^ sl] ^ sp];
sp                580 crypto/twofish_common.c 	u8 si = 0, sj = 0, sk = 0, sl = 0, sm = 0, sn = 0, so = 0, sp = 0;
sp                627 crypto/twofish_common.c 		CALC_S (sm, sn, so, sp, 24, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */
sp                628 crypto/twofish_common.c 		CALC_S (sm, sn, so, sp, 25, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */
sp                629 crypto/twofish_common.c 		CALC_S (sm, sn, so, sp, 26, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */
sp                630 crypto/twofish_common.c 		CALC_S (sm, sn, so, sp, 27, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */
sp                631 crypto/twofish_common.c 		CALC_S (sm, sn, so, sp, 28, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */
sp                632 crypto/twofish_common.c 		CALC_S (sm, sn, so, sp, 29, 0x96, 0x3C, 0x5B, 0xED); /* 58 C6 AE DB */
sp                633 crypto/twofish_common.c 		CALC_S (sm, sn, so, sp, 30, 0xED, 0x37, 0x4F, 0xE0); /* DB 68 3D 9E */
sp                634 crypto/twofish_common.c 		CALC_S (sm, sn, so, sp, 31, 0xE0, 0xD0, 0x8C, 0x17); /* 9E E5 19 03 */
sp               2028 drivers/block/pktcdvd.c 	unsigned int size, st, sp;
sp               2069 drivers/block/pktcdvd.c 	sp = buf[16] & 0xf; /* max speed from ATIP A1 field */
sp               2074 drivers/block/pktcdvd.c 			*speed = clv_to_speed[sp];
sp               2077 drivers/block/pktcdvd.c 			*speed = hs_clv_to_speed[sp];
sp               2080 drivers/block/pktcdvd.c 			*speed = us_clv_to_speed[sp];
sp               2090 drivers/block/pktcdvd.c 		pkt_notice(pd, "unknown speed %d for sub-type %d\n", sp, st);
sp                274 drivers/char/dtlk.c 	struct dtlk_settings *sp;
sp                282 drivers/char/dtlk.c 		sp = dtlk_interrogate();
sp                284 drivers/char/dtlk.c 		if (copy_to_user(argp, sp, sizeof(struct dtlk_settings)))
sp                394 drivers/char/dtlk.c 	struct dtlk_settings *sp;
sp                413 drivers/char/dtlk.c 			sp = dtlk_interrogate();
sp                418 drivers/char/dtlk.c 			       sp->rom_version, sp->serial_number);
sp                746 drivers/char/ipmi/ipmi_devintf.c 		struct ipmi_req_settime	sp;
sp                752 drivers/char/ipmi/ipmi_devintf.c 		get_compat_ipmi_req_settime(&sp, &sp32);
sp                754 drivers/char/ipmi/ipmi_devintf.c 		return handle_send_req(priv->user, &sp.req,
sp                755 drivers/char/ipmi/ipmi_devintf.c 				sp.retries, sp.retry_time_ms);
sp                452 drivers/crypto/ccp/ccp-dev-v3.c 	ret = sp_request_ccp_irq(ccp->sp, ccp_irq_handler, ccp->name, ccp);
sp                509 drivers/crypto/ccp/ccp-dev-v3.c 	sp_free_ccp_irq(ccp->sp, ccp);
sp                548 drivers/crypto/ccp/ccp-dev-v3.c 	sp_free_ccp_irq(ccp->sp, ccp);
sp                878 drivers/crypto/ccp/ccp-dev-v5.c 	ret = sp_request_ccp_irq(ccp->sp, ccp5_irq_handler, ccp->name, ccp);
sp                986 drivers/crypto/ccp/ccp-dev-v5.c 	sp_free_ccp_irq(ccp->sp, ccp);
sp               1037 drivers/crypto/ccp/ccp-dev-v5.c 	sp_free_ccp_irq(ccp->sp, ccp);
sp                475 drivers/crypto/ccp/ccp-dev.c struct ccp_device *ccp_alloc_struct(struct sp_device *sp)
sp                477 drivers/crypto/ccp/ccp-dev.c 	struct device *dev = sp->dev;
sp                484 drivers/crypto/ccp/ccp-dev.c 	ccp->sp = sp;
sp                485 drivers/crypto/ccp/ccp-dev.c 	ccp->axcache = sp->axcache;
sp                500 drivers/crypto/ccp/ccp-dev.c 	snprintf(ccp->name, MAX_CCP_NAME_LEN, "ccp-%u", sp->ord);
sp                501 drivers/crypto/ccp/ccp-dev.c 	snprintf(ccp->rngname, MAX_CCP_NAME_LEN, "ccp-%u-rng", sp->ord);
sp                552 drivers/crypto/ccp/ccp-dev.c int ccp_dev_suspend(struct sp_device *sp, pm_message_t state)
sp                554 drivers/crypto/ccp/ccp-dev.c 	struct ccp_device *ccp = sp->ccp_data;
sp                580 drivers/crypto/ccp/ccp-dev.c int ccp_dev_resume(struct sp_device *sp)
sp                582 drivers/crypto/ccp/ccp-dev.c 	struct ccp_device *ccp = sp->ccp_data;
sp                606 drivers/crypto/ccp/ccp-dev.c int ccp_dev_init(struct sp_device *sp)
sp                608 drivers/crypto/ccp/ccp-dev.c 	struct device *dev = sp->dev;
sp                620 drivers/crypto/ccp/ccp-dev.c 	ccp = ccp_alloc_struct(sp);
sp                623 drivers/crypto/ccp/ccp-dev.c 	sp->ccp_data = ccp;
sp                630 drivers/crypto/ccp/ccp-dev.c 	ccp->vdata = (struct ccp_vdata *)sp->dev_vdata->ccp_vdata;
sp                637 drivers/crypto/ccp/ccp-dev.c 	ccp->use_tasklet = sp->use_tasklet;
sp                639 drivers/crypto/ccp/ccp-dev.c 	ccp->io_regs = sp->io_map + ccp->vdata->offset;
sp                652 drivers/crypto/ccp/ccp-dev.c 	sp->ccp_data = NULL;
sp                659 drivers/crypto/ccp/ccp-dev.c void ccp_dev_destroy(struct sp_device *sp)
sp                661 drivers/crypto/ccp/ccp-dev.c 	struct ccp_device *ccp = sp->ccp_data;
sp                348 drivers/crypto/ccp/ccp-dev.h 	struct sp_device *sp;
sp                635 drivers/crypto/ccp/ccp-dev.h struct ccp_device *ccp_alloc_struct(struct sp_device *sp);
sp                 55 drivers/crypto/ccp/psp-dev.c static struct psp_device *psp_alloc_struct(struct sp_device *sp)
sp                 57 drivers/crypto/ccp/psp-dev.c 	struct device *dev = sp->dev;
sp                 65 drivers/crypto/ccp/psp-dev.c 	psp->sp = sp;
sp                 67 drivers/crypto/ccp/psp-dev.c 	snprintf(psp->name, sizeof(psp->name), "psp-%u", sp->ord);
sp                941 drivers/crypto/ccp/psp-dev.c int psp_dev_init(struct sp_device *sp)
sp                943 drivers/crypto/ccp/psp-dev.c 	struct device *dev = sp->dev;
sp                948 drivers/crypto/ccp/psp-dev.c 	psp = psp_alloc_struct(sp);
sp                952 drivers/crypto/ccp/psp-dev.c 	sp->psp_data = psp;
sp                954 drivers/crypto/ccp/psp-dev.c 	psp->vdata = (struct psp_vdata *)sp->dev_vdata->psp_vdata;
sp                961 drivers/crypto/ccp/psp-dev.c 	psp->io_regs = sp->io_map;
sp                972 drivers/crypto/ccp/psp-dev.c 	ret = sp_request_psp_irq(psp->sp, psp_irq_handler, psp->name, psp);
sp                982 drivers/crypto/ccp/psp-dev.c 	if (sp->set_psp_master_device)
sp                983 drivers/crypto/ccp/psp-dev.c 		sp->set_psp_master_device(sp);
sp                993 drivers/crypto/ccp/psp-dev.c 	sp_free_psp_irq(psp->sp, psp);
sp                995 drivers/crypto/ccp/psp-dev.c 	sp->psp_data = NULL;
sp               1002 drivers/crypto/ccp/psp-dev.c 	sp->psp_data = NULL;
sp               1007 drivers/crypto/ccp/psp-dev.c void psp_dev_destroy(struct sp_device *sp)
sp               1009 drivers/crypto/ccp/psp-dev.c 	struct psp_device *psp = sp->psp_data;
sp               1017 drivers/crypto/ccp/psp-dev.c 	sp_free_psp_irq(sp, psp);
sp               1032 drivers/crypto/ccp/psp-dev.c 	struct sp_device *sp;
sp               1035 drivers/crypto/ccp/psp-dev.c 	sp = sp_get_psp_master_device();
sp               1036 drivers/crypto/ccp/psp-dev.c 	if (!sp)
sp               1039 drivers/crypto/ccp/psp-dev.c 	psp_master = sp->psp_data;
sp               1068 drivers/crypto/ccp/psp-dev.c 		dev_err(sp->dev, "SEV: failed to INIT error %#x\n", error);
sp               1072 drivers/crypto/ccp/psp-dev.c 	dev_info(sp->dev, "SEV API:%d.%d build:%d\n", psp_master->api_major,
sp                 50 drivers/crypto/ccp/psp-dev.h 	struct sp_device *sp;
sp                 42 drivers/crypto/ccp/sp-dev.c static void sp_add_device(struct sp_device *sp)
sp                 48 drivers/crypto/ccp/sp-dev.c 	list_add_tail(&sp->entry, &sp_units);
sp                 53 drivers/crypto/ccp/sp-dev.c static void sp_del_device(struct sp_device *sp)
sp                 59 drivers/crypto/ccp/sp-dev.c 	list_del(&sp->entry);
sp                 66 drivers/crypto/ccp/sp-dev.c 	struct sp_device *sp = data;
sp                 68 drivers/crypto/ccp/sp-dev.c 	if (sp->ccp_irq_handler)
sp                 69 drivers/crypto/ccp/sp-dev.c 		sp->ccp_irq_handler(irq, sp->ccp_irq_data);
sp                 71 drivers/crypto/ccp/sp-dev.c 	if (sp->psp_irq_handler)
sp                 72 drivers/crypto/ccp/sp-dev.c 		sp->psp_irq_handler(irq, sp->psp_irq_data);
sp                 77 drivers/crypto/ccp/sp-dev.c int sp_request_ccp_irq(struct sp_device *sp, irq_handler_t handler,
sp                 82 drivers/crypto/ccp/sp-dev.c 	if ((sp->psp_irq == sp->ccp_irq) && sp->dev_vdata->psp_vdata) {
sp                 84 drivers/crypto/ccp/sp-dev.c 		sp->ccp_irq_data = data;
sp                 85 drivers/crypto/ccp/sp-dev.c 		sp->ccp_irq_handler = handler;
sp                 87 drivers/crypto/ccp/sp-dev.c 		if (!sp->irq_registered) {
sp                 88 drivers/crypto/ccp/sp-dev.c 			ret = request_irq(sp->ccp_irq, sp_irq_handler, 0,
sp                 89 drivers/crypto/ccp/sp-dev.c 					  sp->name, sp);
sp                 93 drivers/crypto/ccp/sp-dev.c 			sp->irq_registered = true;
sp                 97 drivers/crypto/ccp/sp-dev.c 		ret = request_irq(sp->ccp_irq, handler, 0, name, data);
sp                105 drivers/crypto/ccp/sp-dev.c int sp_request_psp_irq(struct sp_device *sp, irq_handler_t handler,
sp                110 drivers/crypto/ccp/sp-dev.c 	if ((sp->psp_irq == sp->ccp_irq) && sp->dev_vdata->ccp_vdata) {
sp                112 drivers/crypto/ccp/sp-dev.c 		sp->psp_irq_data = data;
sp                113 drivers/crypto/ccp/sp-dev.c 		sp->psp_irq_handler = handler;
sp                115 drivers/crypto/ccp/sp-dev.c 		if (!sp->irq_registered) {
sp                116 drivers/crypto/ccp/sp-dev.c 			ret = request_irq(sp->psp_irq, sp_irq_handler, 0,
sp                117 drivers/crypto/ccp/sp-dev.c 					  sp->name, sp);
sp                121 drivers/crypto/ccp/sp-dev.c 			sp->irq_registered = true;
sp                125 drivers/crypto/ccp/sp-dev.c 		ret = request_irq(sp->psp_irq, handler, 0, name, data);
sp                133 drivers/crypto/ccp/sp-dev.c void sp_free_ccp_irq(struct sp_device *sp, void *data)
sp                135 drivers/crypto/ccp/sp-dev.c 	if ((sp->psp_irq == sp->ccp_irq) && sp->dev_vdata->psp_vdata) {
sp                137 drivers/crypto/ccp/sp-dev.c 		if (!sp->psp_irq_handler) {
sp                139 drivers/crypto/ccp/sp-dev.c 			free_irq(sp->ccp_irq, sp);
sp                141 drivers/crypto/ccp/sp-dev.c 			sp->irq_registered = false;
sp                144 drivers/crypto/ccp/sp-dev.c 		sp->ccp_irq_handler = NULL;
sp                145 drivers/crypto/ccp/sp-dev.c 		sp->ccp_irq_data = NULL;
sp                148 drivers/crypto/ccp/sp-dev.c 		free_irq(sp->ccp_irq, data);
sp                152 drivers/crypto/ccp/sp-dev.c void sp_free_psp_irq(struct sp_device *sp, void *data)
sp                154 drivers/crypto/ccp/sp-dev.c 	if ((sp->psp_irq == sp->ccp_irq) && sp->dev_vdata->ccp_vdata) {
sp                156 drivers/crypto/ccp/sp-dev.c 		if (!sp->ccp_irq_handler) {
sp                158 drivers/crypto/ccp/sp-dev.c 			free_irq(sp->psp_irq, sp);
sp                160 drivers/crypto/ccp/sp-dev.c 			sp->irq_registered = false;
sp                163 drivers/crypto/ccp/sp-dev.c 		sp->psp_irq_handler = NULL;
sp                164 drivers/crypto/ccp/sp-dev.c 		sp->psp_irq_data = NULL;
sp                167 drivers/crypto/ccp/sp-dev.c 		free_irq(sp->psp_irq, data);
sp                178 drivers/crypto/ccp/sp-dev.c 	struct sp_device *sp;
sp                180 drivers/crypto/ccp/sp-dev.c 	sp = devm_kzalloc(dev, sizeof(*sp), GFP_KERNEL);
sp                181 drivers/crypto/ccp/sp-dev.c 	if (!sp)
sp                184 drivers/crypto/ccp/sp-dev.c 	sp->dev = dev;
sp                185 drivers/crypto/ccp/sp-dev.c 	sp->ord = atomic_inc_return(&sp_ordinal);
sp                186 drivers/crypto/ccp/sp-dev.c 	snprintf(sp->name, SP_MAX_NAME_LEN, "sp-%u", sp->ord);
sp                188 drivers/crypto/ccp/sp-dev.c 	return sp;
sp                191 drivers/crypto/ccp/sp-dev.c int sp_init(struct sp_device *sp)
sp                193 drivers/crypto/ccp/sp-dev.c 	sp_add_device(sp);
sp                195 drivers/crypto/ccp/sp-dev.c 	if (sp->dev_vdata->ccp_vdata)
sp                196 drivers/crypto/ccp/sp-dev.c 		ccp_dev_init(sp);
sp                198 drivers/crypto/ccp/sp-dev.c 	if (sp->dev_vdata->psp_vdata)
sp                199 drivers/crypto/ccp/sp-dev.c 		psp_dev_init(sp);
sp                203 drivers/crypto/ccp/sp-dev.c void sp_destroy(struct sp_device *sp)
sp                205 drivers/crypto/ccp/sp-dev.c 	if (sp->dev_vdata->ccp_vdata)
sp                206 drivers/crypto/ccp/sp-dev.c 		ccp_dev_destroy(sp);
sp                208 drivers/crypto/ccp/sp-dev.c 	if (sp->dev_vdata->psp_vdata)
sp                209 drivers/crypto/ccp/sp-dev.c 		psp_dev_destroy(sp);
sp                211 drivers/crypto/ccp/sp-dev.c 	sp_del_device(sp);
sp                215 drivers/crypto/ccp/sp-dev.c int sp_suspend(struct sp_device *sp, pm_message_t state)
sp                219 drivers/crypto/ccp/sp-dev.c 	if (sp->dev_vdata->ccp_vdata) {
sp                220 drivers/crypto/ccp/sp-dev.c 		ret = ccp_dev_suspend(sp, state);
sp                228 drivers/crypto/ccp/sp-dev.c int sp_resume(struct sp_device *sp)
sp                232 drivers/crypto/ccp/sp-dev.c 	if (sp->dev_vdata->ccp_vdata) {
sp                233 drivers/crypto/ccp/sp-dev.c 		ret = ccp_dev_resume(sp);
sp                104 drivers/crypto/ccp/sp-dev.h int sp_init(struct sp_device *sp);
sp                105 drivers/crypto/ccp/sp-dev.h void sp_destroy(struct sp_device *sp);
sp                108 drivers/crypto/ccp/sp-dev.h int sp_suspend(struct sp_device *sp, pm_message_t state);
sp                109 drivers/crypto/ccp/sp-dev.h int sp_resume(struct sp_device *sp);
sp                110 drivers/crypto/ccp/sp-dev.h int sp_request_ccp_irq(struct sp_device *sp, irq_handler_t handler,
sp                112 drivers/crypto/ccp/sp-dev.h void sp_free_ccp_irq(struct sp_device *sp, void *data);
sp                113 drivers/crypto/ccp/sp-dev.h int sp_request_psp_irq(struct sp_device *sp, irq_handler_t handler,
sp                115 drivers/crypto/ccp/sp-dev.h void sp_free_psp_irq(struct sp_device *sp, void *data);
sp                120 drivers/crypto/ccp/sp-dev.h int ccp_dev_init(struct sp_device *sp);
sp                121 drivers/crypto/ccp/sp-dev.h void ccp_dev_destroy(struct sp_device *sp);
sp                123 drivers/crypto/ccp/sp-dev.h int ccp_dev_suspend(struct sp_device *sp, pm_message_t state);
sp                124 drivers/crypto/ccp/sp-dev.h int ccp_dev_resume(struct sp_device *sp);
sp                128 drivers/crypto/ccp/sp-dev.h static inline int ccp_dev_init(struct sp_device *sp)
sp                132 drivers/crypto/ccp/sp-dev.h static inline void ccp_dev_destroy(struct sp_device *sp) { }
sp                134 drivers/crypto/ccp/sp-dev.h static inline int ccp_dev_suspend(struct sp_device *sp, pm_message_t state)
sp                138 drivers/crypto/ccp/sp-dev.h static inline int ccp_dev_resume(struct sp_device *sp)
sp                146 drivers/crypto/ccp/sp-dev.h int psp_dev_init(struct sp_device *sp);
sp                148 drivers/crypto/ccp/sp-dev.h void psp_dev_destroy(struct sp_device *sp);
sp                153 drivers/crypto/ccp/sp-dev.h static inline int psp_dev_init(struct sp_device *sp) { return 0; }
sp                155 drivers/crypto/ccp/sp-dev.h static inline void psp_dev_destroy(struct sp_device *sp) { }
sp                 35 drivers/crypto/ccp/sp-pci.c static int sp_get_msix_irqs(struct sp_device *sp)
sp                 37 drivers/crypto/ccp/sp-pci.c 	struct sp_pci *sp_pci = sp->dev_specific;
sp                 38 drivers/crypto/ccp/sp-pci.c 	struct device *dev = sp->dev;
sp                 50 drivers/crypto/ccp/sp-pci.c 	sp->use_tasklet = true;
sp                 52 drivers/crypto/ccp/sp-pci.c 	sp->psp_irq = sp_pci->msix_entry[0].vector;
sp                 53 drivers/crypto/ccp/sp-pci.c 	sp->ccp_irq = (sp_pci->msix_count > 1) ? sp_pci->msix_entry[1].vector
sp                 58 drivers/crypto/ccp/sp-pci.c static int sp_get_msi_irq(struct sp_device *sp)
sp                 60 drivers/crypto/ccp/sp-pci.c 	struct device *dev = sp->dev;
sp                 68 drivers/crypto/ccp/sp-pci.c 	sp->ccp_irq = pdev->irq;
sp                 69 drivers/crypto/ccp/sp-pci.c 	sp->psp_irq = pdev->irq;
sp                 74 drivers/crypto/ccp/sp-pci.c static int sp_get_irqs(struct sp_device *sp)
sp                 76 drivers/crypto/ccp/sp-pci.c 	struct device *dev = sp->dev;
sp                 79 drivers/crypto/ccp/sp-pci.c 	ret = sp_get_msix_irqs(sp);
sp                 85 drivers/crypto/ccp/sp-pci.c 	ret = sp_get_msi_irq(sp);
sp                 95 drivers/crypto/ccp/sp-pci.c static void sp_free_irqs(struct sp_device *sp)
sp                 97 drivers/crypto/ccp/sp-pci.c 	struct sp_pci *sp_pci = sp->dev_specific;
sp                 98 drivers/crypto/ccp/sp-pci.c 	struct device *dev = sp->dev;
sp                103 drivers/crypto/ccp/sp-pci.c 	else if (sp->psp_irq)
sp                106 drivers/crypto/ccp/sp-pci.c 	sp->ccp_irq = 0;
sp                107 drivers/crypto/ccp/sp-pci.c 	sp->psp_irq = 0;
sp                110 drivers/crypto/ccp/sp-pci.c static bool sp_pci_is_master(struct sp_device *sp)
sp                115 drivers/crypto/ccp/sp-pci.c 	dev_new = sp->dev;
sp                133 drivers/crypto/ccp/sp-pci.c static void psp_set_master(struct sp_device *sp)
sp                136 drivers/crypto/ccp/sp-pci.c 		sp_dev_master = sp;
sp                140 drivers/crypto/ccp/sp-pci.c 	if (sp_pci_is_master(sp))
sp                141 drivers/crypto/ccp/sp-pci.c 		sp_dev_master = sp;
sp                151 drivers/crypto/ccp/sp-pci.c 	struct sp_device *sp;
sp                159 drivers/crypto/ccp/sp-pci.c 	sp = sp_alloc_struct(dev);
sp                160 drivers/crypto/ccp/sp-pci.c 	if (!sp)
sp                167 drivers/crypto/ccp/sp-pci.c 	sp->dev_specific = sp_pci;
sp                168 drivers/crypto/ccp/sp-pci.c 	sp->dev_vdata = (struct sp_dev_vdata *)id->driver_data;
sp                169 drivers/crypto/ccp/sp-pci.c 	if (!sp->dev_vdata) {
sp                195 drivers/crypto/ccp/sp-pci.c 	sp->io_map = iomap_table[sp->dev_vdata->bar];
sp                196 drivers/crypto/ccp/sp-pci.c 	if (!sp->io_map) {
sp                202 drivers/crypto/ccp/sp-pci.c 	ret = sp_get_irqs(sp);
sp                207 drivers/crypto/ccp/sp-pci.c 	sp->set_psp_master_device = psp_set_master;
sp                208 drivers/crypto/ccp/sp-pci.c 	sp->get_psp_master_device = psp_get_master;
sp                220 drivers/crypto/ccp/sp-pci.c 	dev_set_drvdata(dev, sp);
sp                222 drivers/crypto/ccp/sp-pci.c 	ret = sp_init(sp);
sp                236 drivers/crypto/ccp/sp-pci.c 	struct sp_device *sp = dev_get_drvdata(dev);
sp                238 drivers/crypto/ccp/sp-pci.c 	if (!sp)
sp                241 drivers/crypto/ccp/sp-pci.c 	sp_destroy(sp);
sp                243 drivers/crypto/ccp/sp-pci.c 	sp_free_irqs(sp);
sp                250 drivers/crypto/ccp/sp-pci.c 	struct sp_device *sp = dev_get_drvdata(dev);
sp                252 drivers/crypto/ccp/sp-pci.c 	return sp_suspend(sp, state);
sp                258 drivers/crypto/ccp/sp-pci.c 	struct sp_device *sp = dev_get_drvdata(dev);
sp                260 drivers/crypto/ccp/sp-pci.c 	return sp_resume(sp);
sp                 83 drivers/crypto/ccp/sp-platform.c static int sp_get_irqs(struct sp_device *sp)
sp                 85 drivers/crypto/ccp/sp-platform.c 	struct sp_platform *sp_platform = sp->dev_specific;
sp                 86 drivers/crypto/ccp/sp-platform.c 	struct device *dev = sp->dev;
sp                106 drivers/crypto/ccp/sp-platform.c 	sp->psp_irq = ret;
sp                108 drivers/crypto/ccp/sp-platform.c 		sp->ccp_irq = ret;
sp                116 drivers/crypto/ccp/sp-platform.c 		sp->ccp_irq = ret;
sp                124 drivers/crypto/ccp/sp-platform.c 	struct sp_device *sp;
sp                131 drivers/crypto/ccp/sp-platform.c 	sp = sp_alloc_struct(dev);
sp                132 drivers/crypto/ccp/sp-platform.c 	if (!sp)
sp                139 drivers/crypto/ccp/sp-platform.c 	sp->dev_specific = sp_platform;
sp                140 drivers/crypto/ccp/sp-platform.c 	sp->dev_vdata = pdev->dev.of_node ? sp_get_of_version(pdev)
sp                142 drivers/crypto/ccp/sp-platform.c 	if (!sp->dev_vdata) {
sp                148 drivers/crypto/ccp/sp-platform.c 	sp->io_map = devm_platform_ioremap_resource(pdev, 0);
sp                149 drivers/crypto/ccp/sp-platform.c 	if (IS_ERR(sp->io_map)) {
sp                150 drivers/crypto/ccp/sp-platform.c 		ret = PTR_ERR(sp->io_map);
sp                162 drivers/crypto/ccp/sp-platform.c 		sp->axcache = CACHE_WB_NO_ALLOC;
sp                164 drivers/crypto/ccp/sp-platform.c 		sp->axcache = CACHE_NONE;
sp                172 drivers/crypto/ccp/sp-platform.c 	ret = sp_get_irqs(sp);
sp                176 drivers/crypto/ccp/sp-platform.c 	dev_set_drvdata(dev, sp);
sp                178 drivers/crypto/ccp/sp-platform.c 	ret = sp_init(sp);
sp                194 drivers/crypto/ccp/sp-platform.c 	struct sp_device *sp = dev_get_drvdata(dev);
sp                196 drivers/crypto/ccp/sp-platform.c 	sp_destroy(sp);
sp                208 drivers/crypto/ccp/sp-platform.c 	struct sp_device *sp = dev_get_drvdata(dev);
sp                210 drivers/crypto/ccp/sp-platform.c 	return sp_suspend(sp, state);
sp                216 drivers/crypto/ccp/sp-platform.c 	struct sp_device *sp = dev_get_drvdata(dev);
sp                218 drivers/crypto/ccp/sp-platform.c 	return sp_resume(sp);
sp                684 drivers/crypto/chelsio/chcr_ipsec.c 	struct sec_path *sp;
sp                692 drivers/crypto/chelsio/chcr_ipsec.c 	sp = skb_sec_path(skb);
sp                693 drivers/crypto/chelsio/chcr_ipsec.c 	if (sp->len != 1) {
sp                512 drivers/firewire/core-device.c 	u32 sp, key;
sp                580 drivers/firewire/core-device.c 	sp = 0;
sp                581 drivers/firewire/core-device.c 	stack[sp++] = 0xc0000005;
sp                582 drivers/firewire/core-device.c 	while (sp > 0) {
sp                589 drivers/firewire/core-device.c 		key = stack[--sp];
sp                642 drivers/firewire/core-device.c 			stack[sp++] = i + rom[i];
sp                 65 drivers/gpu/drm/i915/display/intel_bw.c 					 struct intel_qgv_point *sp,
sp                 78 drivers/gpu/drm/i915/display/intel_bw.c 	sp->dclk = val & 0xffff;
sp                 79 drivers/gpu/drm/i915/display/intel_bw.c 	sp->t_rp = (val & 0xff0000) >> 16;
sp                 80 drivers/gpu/drm/i915/display/intel_bw.c 	sp->t_rcd = (val & 0xff000000) >> 24;
sp                 82 drivers/gpu/drm/i915/display/intel_bw.c 	sp->t_rdpre = val2 & 0xff;
sp                 83 drivers/gpu/drm/i915/display/intel_bw.c 	sp->t_ras = (val2 & 0xff00) >> 8;
sp                 85 drivers/gpu/drm/i915/display/intel_bw.c 	sp->t_rc = sp->t_rp + sp->t_ras;
sp                103 drivers/gpu/drm/i915/display/intel_bw.c 		struct intel_qgv_point *sp = &qi->points[i];
sp                105 drivers/gpu/drm/i915/display/intel_bw.c 		ret = icl_pcode_read_qgv_point_info(dev_priv, sp, i);
sp                110 drivers/gpu/drm/i915/display/intel_bw.c 			      i, sp->dclk, sp->t_rp, sp->t_rdpre, sp->t_ras,
sp                111 drivers/gpu/drm/i915/display/intel_bw.c 			      sp->t_rcd, sp->t_rc);
sp                184 drivers/gpu/drm/i915/display/intel_bw.c 			const struct intel_qgv_point *sp = &qi.points[j];
sp                193 drivers/gpu/drm/i915/display/intel_bw.c 			ct = max_t(int, sp->t_rc, sp->t_rp + sp->t_rcd +
sp                194 drivers/gpu/drm/i915/display/intel_bw.c 				   (clpchgroup - 1) * qi.t_bl + sp->t_rdpre);
sp                195 drivers/gpu/drm/i915/display/intel_bw.c 			bw = icl_calc_bw(sp->dclk, clpchgroup * 32 * num_channels, ct);
sp                338 drivers/gpu/drm/tegra/drm.c 	struct host1x_syncpt *sp;
sp                466 drivers/gpu/drm/tegra/drm.c 	sp = host1x_syncpt_get(host1x, syncpt.id);
sp                467 drivers/gpu/drm/tegra/drm.c 	if (!sp) {
sp                545 drivers/gpu/drm/tegra/drm.c 	struct host1x_syncpt *sp;
sp                547 drivers/gpu/drm/tegra/drm.c 	sp = host1x_syncpt_get(host, args->id);
sp                548 drivers/gpu/drm/tegra/drm.c 	if (!sp)
sp                551 drivers/gpu/drm/tegra/drm.c 	args->value = host1x_syncpt_read_min(sp);
sp                560 drivers/gpu/drm/tegra/drm.c 	struct host1x_syncpt *sp;
sp                562 drivers/gpu/drm/tegra/drm.c 	sp = host1x_syncpt_get(host1x, args->id);
sp                563 drivers/gpu/drm/tegra/drm.c 	if (!sp)
sp                566 drivers/gpu/drm/tegra/drm.c 	return host1x_syncpt_incr(sp);
sp                574 drivers/gpu/drm/tegra/drm.c 	struct host1x_syncpt *sp;
sp                576 drivers/gpu/drm/tegra/drm.c 	sp = host1x_syncpt_get(host1x, args->id);
sp                577 drivers/gpu/drm/tegra/drm.c 	if (!sp)
sp                580 drivers/gpu/drm/tegra/drm.c 	return host1x_syncpt_wait(sp, args->thresh,
sp                327 drivers/gpu/host1x/cdma.c 		struct host1x_syncpt *sp =
sp                331 drivers/gpu/host1x/cdma.c 		if (!host1x_syncpt_is_expired(sp, job->syncpt_end)) {
sp                153 drivers/gpu/host1x/dev.h 					    struct host1x_syncpt *sp)
sp                155 drivers/gpu/host1x/dev.h 	host->syncpt_op->restore(sp);
sp                159 drivers/gpu/host1x/dev.h 						      struct host1x_syncpt *sp)
sp                161 drivers/gpu/host1x/dev.h 	host->syncpt_op->restore_wait_base(sp);
sp                165 drivers/gpu/host1x/dev.h 						   struct host1x_syncpt *sp)
sp                167 drivers/gpu/host1x/dev.h 	host->syncpt_op->load_wait_base(sp);
sp                171 drivers/gpu/host1x/dev.h 					struct host1x_syncpt *sp)
sp                173 drivers/gpu/host1x/dev.h 	return host->syncpt_op->load(sp);
sp                177 drivers/gpu/host1x/dev.h 					    struct host1x_syncpt *sp)
sp                179 drivers/gpu/host1x/dev.h 	return host->syncpt_op->cpu_incr(sp);
sp                183 drivers/gpu/host1x/dev.h 	struct host1x *host, struct host1x_syncpt *sp,
sp                186 drivers/gpu/host1x/dev.h 	return host->syncpt_op->assign_to_channel(sp, ch);
sp                 90 drivers/gpu/host1x/hw/channel_hw.c 	struct host1x_syncpt *sp = host->syncpt + job->syncpt_id;
sp                 94 drivers/gpu/host1x/hw/channel_hw.c 	value = host1x_syncpt_read_max(sp);
sp                 95 drivers/gpu/host1x/hw/channel_hw.c 	id = sp->base->id;
sp                121 drivers/gpu/host1x/hw/channel_hw.c 	struct host1x_syncpt *sp;
sp                129 drivers/gpu/host1x/hw/channel_hw.c 	sp = host->syncpt + job->syncpt_id;
sp                135 drivers/gpu/host1x/hw/channel_hw.c 	prev_max = job->syncpt_end = host1x_syncpt_read_max(sp);
sp                167 drivers/gpu/host1x/hw/channel_hw.c 					host1x_syncpt_read_max(sp)));
sp                171 drivers/gpu/host1x/hw/channel_hw.c 	if (sp->base)
sp                174 drivers/gpu/host1x/hw/channel_hw.c 	syncval = host1x_syncpt_incr_max(sp, user_syncpt_incrs);
sp                176 drivers/gpu/host1x/hw/channel_hw.c 	host1x_hw_syncpt_assign_to_channel(host, sp, ch);
sp                194 drivers/gpu/host1x/hw/channel_hw.c 	err = host1x_intr_add_action(host, sp, syncval,
sp                 16 drivers/gpu/host1x/hw/syncpt_hw.c static void syncpt_restore(struct host1x_syncpt *sp)
sp                 18 drivers/gpu/host1x/hw/syncpt_hw.c 	u32 min = host1x_syncpt_read_min(sp);
sp                 19 drivers/gpu/host1x/hw/syncpt_hw.c 	struct host1x *host = sp->host;
sp                 21 drivers/gpu/host1x/hw/syncpt_hw.c 	host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id));
sp                 27 drivers/gpu/host1x/hw/syncpt_hw.c static void syncpt_restore_wait_base(struct host1x_syncpt *sp)
sp                 30 drivers/gpu/host1x/hw/syncpt_hw.c 	struct host1x *host = sp->host;
sp                 32 drivers/gpu/host1x/hw/syncpt_hw.c 	host1x_sync_writel(host, sp->base_val,
sp                 33 drivers/gpu/host1x/hw/syncpt_hw.c 			   HOST1X_SYNC_SYNCPT_BASE(sp->id));
sp                 40 drivers/gpu/host1x/hw/syncpt_hw.c static void syncpt_read_wait_base(struct host1x_syncpt *sp)
sp                 43 drivers/gpu/host1x/hw/syncpt_hw.c 	struct host1x *host = sp->host;
sp                 45 drivers/gpu/host1x/hw/syncpt_hw.c 	sp->base_val =
sp                 46 drivers/gpu/host1x/hw/syncpt_hw.c 		host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id));
sp                 53 drivers/gpu/host1x/hw/syncpt_hw.c static u32 syncpt_load(struct host1x_syncpt *sp)
sp                 55 drivers/gpu/host1x/hw/syncpt_hw.c 	struct host1x *host = sp->host;
sp                 60 drivers/gpu/host1x/hw/syncpt_hw.c 		old = host1x_syncpt_read_min(sp);
sp                 61 drivers/gpu/host1x/hw/syncpt_hw.c 		live = host1x_sync_readl(host, HOST1X_SYNC_SYNCPT(sp->id));
sp                 62 drivers/gpu/host1x/hw/syncpt_hw.c 	} while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old);
sp                 64 drivers/gpu/host1x/hw/syncpt_hw.c 	if (!host1x_syncpt_check_max(sp, live))
sp                 66 drivers/gpu/host1x/hw/syncpt_hw.c 			__func__, sp->id, host1x_syncpt_read_min(sp),
sp                 67 drivers/gpu/host1x/hw/syncpt_hw.c 			host1x_syncpt_read_max(sp));
sp                 76 drivers/gpu/host1x/hw/syncpt_hw.c static int syncpt_cpu_incr(struct host1x_syncpt *sp)
sp                 78 drivers/gpu/host1x/hw/syncpt_hw.c 	struct host1x *host = sp->host;
sp                 79 drivers/gpu/host1x/hw/syncpt_hw.c 	u32 reg_offset = sp->id / 32;
sp                 81 drivers/gpu/host1x/hw/syncpt_hw.c 	if (!host1x_syncpt_client_managed(sp) &&
sp                 82 drivers/gpu/host1x/hw/syncpt_hw.c 	    host1x_syncpt_idle(sp))
sp                 85 drivers/gpu/host1x/hw/syncpt_hw.c 	host1x_sync_writel(host, BIT(sp->id % 32),
sp                103 drivers/gpu/host1x/hw/syncpt_hw.c static void syncpt_assign_to_channel(struct host1x_syncpt *sp,
sp                107 drivers/gpu/host1x/hw/syncpt_hw.c 	struct host1x *host = sp->host;
sp                114 drivers/gpu/host1x/hw/syncpt_hw.c 			   HOST1X_SYNC_SYNCPT_CH_APP(sp->id));
sp                 49 drivers/gpu/host1x/syncpt.c 	struct host1x_syncpt *sp = host->syncpt;
sp                 55 drivers/gpu/host1x/syncpt.c 	for (i = 0; i < host->info->nb_pts && sp->name; i++, sp++)
sp                 62 drivers/gpu/host1x/syncpt.c 		sp->base = host1x_syncpt_base_request(host);
sp                 63 drivers/gpu/host1x/syncpt.c 		if (!sp->base)
sp                 67 drivers/gpu/host1x/syncpt.c 	name = kasprintf(GFP_KERNEL, "%02u-%s", sp->id,
sp                 72 drivers/gpu/host1x/syncpt.c 	sp->client = client;
sp                 73 drivers/gpu/host1x/syncpt.c 	sp->name = name;
sp                 76 drivers/gpu/host1x/syncpt.c 		sp->client_managed = true;
sp                 78 drivers/gpu/host1x/syncpt.c 		sp->client_managed = false;
sp                 81 drivers/gpu/host1x/syncpt.c 	return sp;
sp                 84 drivers/gpu/host1x/syncpt.c 	host1x_syncpt_base_free(sp->base);
sp                 85 drivers/gpu/host1x/syncpt.c 	sp->base = NULL;
sp                 99 drivers/gpu/host1x/syncpt.c u32 host1x_syncpt_id(struct host1x_syncpt *sp)
sp                101 drivers/gpu/host1x/syncpt.c 	return sp->id;
sp                110 drivers/gpu/host1x/syncpt.c u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs)
sp                112 drivers/gpu/host1x/syncpt.c 	return (u32)atomic_add_return(incrs, &sp->max_val);
sp                157 drivers/gpu/host1x/syncpt.c u32 host1x_syncpt_load(struct host1x_syncpt *sp)
sp                161 drivers/gpu/host1x/syncpt.c 	val = host1x_hw_syncpt_load(sp->host, sp);
sp                162 drivers/gpu/host1x/syncpt.c 	trace_host1x_syncpt_load_min(sp->id, val);
sp                170 drivers/gpu/host1x/syncpt.c u32 host1x_syncpt_load_wait_base(struct host1x_syncpt *sp)
sp                172 drivers/gpu/host1x/syncpt.c 	host1x_hw_syncpt_load_wait_base(sp->host, sp);
sp                174 drivers/gpu/host1x/syncpt.c 	return sp->base_val;
sp                181 drivers/gpu/host1x/syncpt.c int host1x_syncpt_incr(struct host1x_syncpt *sp)
sp                183 drivers/gpu/host1x/syncpt.c 	return host1x_hw_syncpt_cpu_incr(sp->host, sp);
sp                191 drivers/gpu/host1x/syncpt.c static bool syncpt_load_min_is_expired(struct host1x_syncpt *sp, u32 thresh)
sp                193 drivers/gpu/host1x/syncpt.c 	host1x_hw_syncpt_load(sp->host, sp);
sp                195 drivers/gpu/host1x/syncpt.c 	return host1x_syncpt_is_expired(sp, thresh);
sp                205 drivers/gpu/host1x/syncpt.c int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout,
sp                218 drivers/gpu/host1x/syncpt.c 	if (host1x_syncpt_is_expired(sp, thresh)) {
sp                220 drivers/gpu/host1x/syncpt.c 			*value = host1x_syncpt_load(sp);
sp                226 drivers/gpu/host1x/syncpt.c 	val = host1x_hw_syncpt_load(sp->host, sp);
sp                227 drivers/gpu/host1x/syncpt.c 	if (host1x_syncpt_is_expired(sp, thresh)) {
sp                247 drivers/gpu/host1x/syncpt.c 	err = host1x_intr_add_action(sp->host, sp, thresh,
sp                264 drivers/gpu/host1x/syncpt.c 				syncpt_load_min_is_expired(sp, thresh),
sp                266 drivers/gpu/host1x/syncpt.c 		if (remain > 0 || host1x_syncpt_is_expired(sp, thresh)) {
sp                268 drivers/gpu/host1x/syncpt.c 				*value = host1x_syncpt_load(sp);
sp                283 drivers/gpu/host1x/syncpt.c 			dev_warn(sp->host->dev,
sp                285 drivers/gpu/host1x/syncpt.c 				 current->comm, sp->id, sp->name,
sp                288 drivers/gpu/host1x/syncpt.c 			host1x_debug_dump_syncpts(sp->host);
sp                291 drivers/gpu/host1x/syncpt.c 				host1x_debug_dump(sp->host);
sp                297 drivers/gpu/host1x/syncpt.c 	host1x_intr_put_ref(sp->host, sp->id, ref);
sp                307 drivers/gpu/host1x/syncpt.c bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh)
sp                314 drivers/gpu/host1x/syncpt.c 	current_val = (u32)atomic_read(&sp->min_val);
sp                315 drivers/gpu/host1x/syncpt.c 	future_val = (u32)atomic_read(&sp->max_val);
sp                359 drivers/gpu/host1x/syncpt.c 	if (!host1x_syncpt_client_managed(sp))
sp                440 drivers/gpu/host1x/syncpt.c void host1x_syncpt_free(struct host1x_syncpt *sp)
sp                442 drivers/gpu/host1x/syncpt.c 	if (!sp)
sp                445 drivers/gpu/host1x/syncpt.c 	mutex_lock(&sp->host->syncpt_mutex);
sp                447 drivers/gpu/host1x/syncpt.c 	host1x_syncpt_base_free(sp->base);
sp                448 drivers/gpu/host1x/syncpt.c 	kfree(sp->name);
sp                449 drivers/gpu/host1x/syncpt.c 	sp->base = NULL;
sp                450 drivers/gpu/host1x/syncpt.c 	sp->client = NULL;
sp                451 drivers/gpu/host1x/syncpt.c 	sp->name = NULL;
sp                452 drivers/gpu/host1x/syncpt.c 	sp->client_managed = false;
sp                454 drivers/gpu/host1x/syncpt.c 	mutex_unlock(&sp->host->syncpt_mutex);
sp                460 drivers/gpu/host1x/syncpt.c 	struct host1x_syncpt *sp = host->syncpt;
sp                463 drivers/gpu/host1x/syncpt.c 	for (i = 0; i < host->info->nb_pts; i++, sp++)
sp                464 drivers/gpu/host1x/syncpt.c 		kfree(sp->name);
sp                474 drivers/gpu/host1x/syncpt.c u32 host1x_syncpt_read_max(struct host1x_syncpt *sp)
sp                478 drivers/gpu/host1x/syncpt.c 	return (u32)atomic_read(&sp->max_val);
sp                489 drivers/gpu/host1x/syncpt.c u32 host1x_syncpt_read_min(struct host1x_syncpt *sp)
sp                493 drivers/gpu/host1x/syncpt.c 	return (u32)atomic_read(&sp->min_val);
sp                501 drivers/gpu/host1x/syncpt.c u32 host1x_syncpt_read(struct host1x_syncpt *sp)
sp                503 drivers/gpu/host1x/syncpt.c 	return host1x_syncpt_load(sp);
sp                540 drivers/gpu/host1x/syncpt.c struct host1x_syncpt_base *host1x_syncpt_get_base(struct host1x_syncpt *sp)
sp                542 drivers/gpu/host1x/syncpt.c 	return sp ? sp->base : NULL;
sp                 64 drivers/gpu/host1x/syncpt.h static inline bool host1x_syncpt_check_max(struct host1x_syncpt *sp, u32 real)
sp                 67 drivers/gpu/host1x/syncpt.h 	if (sp->client_managed)
sp                 69 drivers/gpu/host1x/syncpt.h 	max = host1x_syncpt_read_max(sp);
sp                 74 drivers/gpu/host1x/syncpt.h static inline bool host1x_syncpt_client_managed(struct host1x_syncpt *sp)
sp                 76 drivers/gpu/host1x/syncpt.h 	return sp->client_managed;
sp                 83 drivers/gpu/host1x/syncpt.h static inline bool host1x_syncpt_idle(struct host1x_syncpt *sp)
sp                 87 drivers/gpu/host1x/syncpt.h 	min = atomic_read(&sp->min_val);
sp                 88 drivers/gpu/host1x/syncpt.h 	max = atomic_read(&sp->max_val);
sp                 93 drivers/gpu/host1x/syncpt.h u32 host1x_syncpt_load(struct host1x_syncpt *sp);
sp                 96 drivers/gpu/host1x/syncpt.h bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh);
sp                105 drivers/gpu/host1x/syncpt.h u32 host1x_syncpt_load_wait_base(struct host1x_syncpt *sp);
sp                108 drivers/gpu/host1x/syncpt.h u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs);
sp                111 drivers/gpu/host1x/syncpt.h static inline int host1x_syncpt_is_valid(struct host1x_syncpt *sp)
sp                113 drivers/gpu/host1x/syncpt.h 	return sp->id < host1x_syncpt_nb_pts(sp->host);
sp                 28 drivers/ide/tx4938ide.c 	unsigned int sp = (cr >> 4) & 3;
sp                 29 drivers/ide/tx4938ide.c 	unsigned int clock = gbus_clock / (4 - sp);
sp                825 drivers/infiniband/core/device.c 			u64 sp;
sp                828 drivers/infiniband/core/device.c 							      &sp);
sp                834 drivers/infiniband/core/device.c 				ib_security_cache_change(dev, i, sp);
sp                103 drivers/infiniband/hw/hfi1/fault.c 		struct hfi1_opcode_stats_perctx *sp =
sp                106 drivers/infiniband/hw/hfi1/fault.c 		n_packets += sp->stats[i].n_packets;
sp                107 drivers/infiniband/hw/hfi1/fault.c 		n_bytes += sp->stats[i].n_bytes;
sp                419 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_mgmt_method_get(struct srpt_port *sp, struct ib_mad *rq_mad,
sp                436 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_get_ioc(sp, slot, rsp_mad);
sp                 41 drivers/input/touchscreen/mainstone-wm97xx.c #define WM_READS(sp) ((sp / HZ) + 1)
sp                 37 drivers/input/touchscreen/zylonite-wm97xx.c #define WM_READS(sp) ((sp / HZ) + 1)
sp               4437 drivers/iommu/intel-iommu.c 	int sp, ret;
sp               4454 drivers/iommu/intel-iommu.c 	sp = domain_update_iommu_superpage(iommu) - 1;
sp               4455 drivers/iommu/intel-iommu.c 	if (sp >= 0 && !(cap_super_page_val(iommu->cap) & (1 << sp))) {
sp               1941 drivers/isdn/hardware/mISDN/hfcmulti.c 	struct  sk_buff **sp = NULL;
sp               1954 drivers/isdn/hardware/mISDN/hfcmulti.c 		sp = &dch->tx_skb;
sp               1959 drivers/isdn/hardware/mISDN/hfcmulti.c 		sp = &bch->tx_skb;
sp               1962 drivers/isdn/hardware/mISDN/hfcmulti.c 	if (*sp)
sp               1963 drivers/isdn/hardware/mISDN/hfcmulti.c 		len = (*sp)->len;
sp               2128 drivers/isdn/hardware/mISDN/hfcmulti.c 	d = (*sp)->data + i;
sp               2155 drivers/isdn/hardware/mISDN/hfcmulti.c 	dev_kfree_skb(*sp);
sp               2158 drivers/isdn/hardware/mISDN/hfcmulti.c 		len = (*sp)->len;
sp               2162 drivers/isdn/hardware/mISDN/hfcmulti.c 		len = (*sp)->len;
sp               2186 drivers/isdn/hardware/mISDN/hfcmulti.c 	struct sk_buff	*skb, **sp = NULL;
sp               2255 drivers/isdn/hardware/mISDN/hfcmulti.c 		sp = &bch->rx_skb;
sp               2258 drivers/isdn/hardware/mISDN/hfcmulti.c 		sp = &dch->rx_skb;
sp               2260 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (*sp == NULL) {
sp               2261 drivers/isdn/hardware/mISDN/hfcmulti.c 			*sp = mI_alloc_skb(maxlen, GFP_ATOMIC);
sp               2262 drivers/isdn/hardware/mISDN/hfcmulti.c 			if (*sp == NULL) {
sp               2280 drivers/isdn/hardware/mISDN/hfcmulti.c 			       f1, f2, Zsize + (*sp)->len, again);
sp               2282 drivers/isdn/hardware/mISDN/hfcmulti.c 		if ((Zsize + (*sp)->len) > maxlen) {
sp               2287 drivers/isdn/hardware/mISDN/hfcmulti.c 			skb_trim(*sp, 0);
sp               2293 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->read_fifo(hc, skb_put(*sp, Zsize), Zsize);
sp               2300 drivers/isdn/hardware/mISDN/hfcmulti.c 			if ((*sp)->len < 4) {
sp               2305 drivers/isdn/hardware/mISDN/hfcmulti.c 				skb_trim(*sp, 0);
sp               2309 drivers/isdn/hardware/mISDN/hfcmulti.c 			if ((*sp)->data[(*sp)->len - 1]) {
sp               2313 drivers/isdn/hardware/mISDN/hfcmulti.c 				skb_trim(*sp, 0);
sp               2316 drivers/isdn/hardware/mISDN/hfcmulti.c 			skb_trim(*sp, (*sp)->len - 3);
sp               2317 drivers/isdn/hardware/mISDN/hfcmulti.c 			if ((*sp)->len < MISDN_COPY_SIZE) {
sp               2318 drivers/isdn/hardware/mISDN/hfcmulti.c 				skb = *sp;
sp               2319 drivers/isdn/hardware/mISDN/hfcmulti.c 				*sp = mI_alloc_skb(skb->len, GFP_ATOMIC);
sp               2320 drivers/isdn/hardware/mISDN/hfcmulti.c 				if (*sp) {
sp               2321 drivers/isdn/hardware/mISDN/hfcmulti.c 					skb_put_data(*sp, skb->data, skb->len);
sp               2326 drivers/isdn/hardware/mISDN/hfcmulti.c 					*sp = skb;
sp               2336 drivers/isdn/hardware/mISDN/hfcmulti.c 				while (temp < (*sp)->len)
sp               2337 drivers/isdn/hardware/mISDN/hfcmulti.c 					printk(" %02x", (*sp)->data[temp++]);
sp               2344 drivers/isdn/hardware/mISDN/hfcmulti.c 			*sp = skb;
sp               2351 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->read_fifo(hc, skb_put(*sp, Zsize), Zsize);
sp                178 drivers/isdn/hardware/mISDN/mISDNisar.c 	u16	left, val, *sp = (u16 *)buf;
sp                204 drivers/isdn/hardware/mISDN/mISDNisar.c 		blk_head.sadr = le16_to_cpu(*sp++);
sp                205 drivers/isdn/hardware/mISDN/mISDNisar.c 		blk_head.len = le16_to_cpu(*sp++);
sp                206 drivers/isdn/hardware/mISDN/mISDNisar.c 		blk_head.d_key = le16_to_cpu(*sp++);
sp                253 drivers/isdn/hardware/mISDN/mISDNisar.c 				val = le16_to_cpu(*sp++);
sp                269 drivers/macintosh/windfarm_pm112.c 	struct wf_cpu_pid_state *sp;
sp                301 drivers/macintosh/windfarm_pm112.c 		sp = &cpu_pid[cpu];
sp                302 drivers/macintosh/windfarm_pm112.c 		t = wf_cpu_pid_run(sp, power, temp);
sp                304 drivers/macintosh/windfarm_pm112.c 		if (cpu == 0 || sp->last_delta > greatest_delta) {
sp                305 drivers/macintosh/windfarm_pm112.c 			greatest_delta = sp->last_delta;
sp                259 drivers/macintosh/windfarm_pm72.c 		struct wf_cpu_pid_state *sp = &cpu_pid[cpu];
sp                262 drivers/macintosh/windfarm_pm72.c 		wf_control_get(cpu_rear_fans[cpu], &sp->target);
sp                264 drivers/macintosh/windfarm_pm72.c 		DBG_LOTS("  CPU%d: cur_target = %d RPM\n", cpu, sp->target);
sp                281 drivers/macintosh/windfarm_pm72.c 		wf_cpu_pid_run(sp, power, temp);
sp                283 drivers/macintosh/windfarm_pm72.c 		DBG_LOTS("  CPU%d: target = %d RPM\n", cpu, sp->target);
sp                286 drivers/macintosh/windfarm_pm72.c 		err = wf_control_set(cpu_rear_fans[cpu], sp->target);
sp                295 drivers/macintosh/windfarm_pm72.c 		intake = (sp->target * CPU_INTAKE_SCALE) >> 16;
sp                312 drivers/macintosh/windfarm_pm72.c 	struct wf_cpu_pid_state *sp = &cpu_pid[0];
sp                318 drivers/macintosh/windfarm_pm72.c 	wf_control_get(cpu_rear_fans[0], &sp->target);
sp                320 drivers/macintosh/windfarm_pm72.c 	DBG_LOTS("  CPUs: cur_target = %d RPM\n", sp->target);
sp                348 drivers/macintosh/windfarm_pm72.c 	wf_cpu_pid_run(sp, power, temp);
sp                351 drivers/macintosh/windfarm_pm72.c 	intake = (sp->target * CPU_INTAKE_SCALE) >> 16;
sp                360 drivers/macintosh/windfarm_pm72.c 	pump = (sp->target * wf_control_get_max(pump0)) /
sp                363 drivers/macintosh/windfarm_pm72.c 	DBG_LOTS("  CPUs: target = %d RPM\n", sp->target);
sp                368 drivers/macintosh/windfarm_pm72.c 		err = wf_control_set(cpu_rear_fans[cpu], sp->target);
sp                253 drivers/macintosh/windfarm_rm31.c 		struct wf_cpu_pid_state *sp = &cpu_pid[cpu];
sp                256 drivers/macintosh/windfarm_rm31.c 		wf_control_get(cpu_fans[cpu][0], &sp->target);
sp                273 drivers/macintosh/windfarm_rm31.c 		wf_cpu_pid_run(sp, power, temp);
sp                275 drivers/macintosh/windfarm_rm31.c 		DBG_LOTS("  CPU%d: target = %d RPM\n", cpu, sp->target);
sp                278 drivers/macintosh/windfarm_rm31.c 		speed = max(sp->target, dimms_output_clamp);
sp                128 drivers/mailbox/bcm2835-mailbox.c 		    const struct of_phandle_args *sp)
sp                130 drivers/mailbox/bcm2835-mailbox.c 	if (sp->args_count != 0)
sp                246 drivers/mailbox/imx-mailbox.c 				       const struct of_phandle_args *sp)
sp                250 drivers/mailbox/imx-mailbox.c 	if (sp->args_count != 2) {
sp                251 drivers/mailbox/imx-mailbox.c 		dev_err(mbox->dev, "Invalid argument count %d\n", sp->args_count);
sp                255 drivers/mailbox/imx-mailbox.c 	type = sp->args[0]; /* channel type */
sp                256 drivers/mailbox/imx-mailbox.c 	idx = sp->args[1]; /* index */
sp                460 drivers/mailbox/mailbox.c 		    const struct of_phandle_args *sp)
sp                462 drivers/mailbox/mailbox.c 	int ind = sp->args[0];
sp                442 drivers/mailbox/mtk-cmdq-mailbox.c 		const struct of_phandle_args *sp)
sp                444 drivers/mailbox/mtk-cmdq-mailbox.c 	int ind = sp->args[0];
sp                451 drivers/mailbox/mtk-cmdq-mailbox.c 	thread->priority = sp->args[1];
sp                452 drivers/mailbox/mtk-cmdq-mailbox.c 	thread->atomic_exec = (sp->args[2] != 0);
sp                673 drivers/mailbox/omap-mailbox.c 					    const struct of_phandle_args *sp)
sp                675 drivers/mailbox/omap-mailbox.c 	phandle phandle = sp->args[0];
sp                109 drivers/md/dm-init.c 	struct dm_target_spec *sp;
sp                125 drivers/md/dm-init.c 	sp = kzalloc(sizeof(*sp), GFP_KERNEL);
sp                126 drivers/md/dm-init.c 	if (!sp)
sp                128 drivers/md/dm-init.c 	dev->table[n] = sp;
sp                131 drivers/md/dm-init.c 	if (kstrtoull(field[0], 0, &sp->sector_start))
sp                134 drivers/md/dm-init.c 	if (kstrtoull(field[1], 0, &sp->length))
sp                137 drivers/md/dm-init.c 	strscpy(sp->target_type, field[2], sizeof(sp->target_type));
sp                138 drivers/md/dm-init.c 	if (dm_verify_target_type(sp->target_type)) {
sp                139 drivers/md/dm-init.c 		DMERR("invalid type \"%s\"", sp->target_type);
sp                527 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_pcm *sp;
sp                549 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 			&sp);
sp                556 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		snd_pcm_set_ops(sp, SNDRV_PCM_STREAM_CAPTURE,
sp                558 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		sp->info_flags = 0;
sp                559 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		sp->private_data = cobsc;
sp                560 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		strscpy(sp->name, "cobalt", sizeof(sp->name));
sp                573 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 			&sp);
sp                580 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		snd_pcm_set_ops(sp, SNDRV_PCM_STREAM_PLAYBACK,
sp                582 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		sp->info_flags = 0;
sp                583 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		sp->private_data = cobsc;
sp                584 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		strscpy(sp->name, "cobalt", sizeof(sp->name));
sp                316 drivers/media/pci/cx18/cx18-alsa-pcm.c 	struct snd_pcm *sp;
sp                326 drivers/media/pci/cx18/cx18-alsa-pcm.c 			  &sp);
sp                335 drivers/media/pci/cx18/cx18-alsa-pcm.c 	snd_pcm_set_ops(sp, SNDRV_PCM_STREAM_CAPTURE,
sp                337 drivers/media/pci/cx18/cx18-alsa-pcm.c 	sp->info_flags = 0;
sp                338 drivers/media/pci/cx18/cx18-alsa-pcm.c 	sp->private_data = cxsc;
sp                339 drivers/media/pci/cx18/cx18-alsa-pcm.c 	strscpy(sp->name, cx->card_name, sizeof(sp->name));
sp                321 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	struct snd_pcm *sp;
sp                331 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 			  &sp);
sp                340 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	snd_pcm_set_ops(sp, SNDRV_PCM_STREAM_CAPTURE,
sp                342 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	sp->info_flags = 0;
sp                343 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	sp->private_data = itvsc;
sp                344 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	strscpy(sp->name, itv->card_name, sizeof(sp->name));
sp               1017 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		       struct v4l2_streamparm *sp)
sp               1020 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct v4l2_captureparm *cp = &sp->parm.capture;
sp               1043 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		       struct v4l2_streamparm *sp)
sp               1046 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct v4l2_fract *t = &sp->parm.capture.timeperframe;
sp               1054 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	return solo_g_parm(file, priv, sp);
sp                779 drivers/media/pci/tw5864/tw5864-video.c 			 struct v4l2_streamparm *sp)
sp                782 drivers/media/pci/tw5864/tw5864-video.c 	struct v4l2_captureparm *cp = &sp->parm.capture;
sp                796 drivers/media/pci/tw5864/tw5864-video.c 			 struct v4l2_streamparm *sp)
sp                799 drivers/media/pci/tw5864/tw5864-video.c 	struct v4l2_fract *t = &sp->parm.capture.timeperframe;
sp                820 drivers/media/pci/tw5864/tw5864-video.c 	return tw5864_g_parm(file, priv, sp);
sp                939 drivers/media/pci/tw686x/tw686x-video.c 			 struct v4l2_streamparm *sp)
sp                942 drivers/media/pci/tw686x/tw686x-video.c 	struct v4l2_captureparm *cp = &sp->parm.capture;
sp                944 drivers/media/pci/tw686x/tw686x-video.c 	if (sp->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sp                946 drivers/media/pci/tw686x/tw686x-video.c 	sp->parm.capture.readbuffers = 3;
sp                955 drivers/media/pci/tw686x/tw686x-video.c 			 struct v4l2_streamparm *sp)
sp                958 drivers/media/pci/tw686x/tw686x-video.c 	struct v4l2_captureparm *cp = &sp->parm.capture;
sp                969 drivers/media/pci/tw686x/tw686x-video.c 	return tw686x_g_parm(file, priv, sp);
sp                518 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_g_parm(struct file *file, void *fh, struct v4l2_streamparm *sp)
sp                523 drivers/media/platform/sti/hva/hva-v4l2.c 	if (sp->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
sp                526 drivers/media/platform/sti/hva/hva-v4l2.c 	sp->parm.output.capability = V4L2_CAP_TIMEPERFRAME;
sp                527 drivers/media/platform/sti/hva/hva-v4l2.c 	sp->parm.output.timeperframe.numerator = time_per_frame->numerator;
sp                528 drivers/media/platform/sti/hva/hva-v4l2.c 	sp->parm.output.timeperframe.denominator =
sp                534 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_s_parm(struct file *file, void *fh, struct v4l2_streamparm *sp)
sp                539 drivers/media/platform/sti/hva/hva-v4l2.c 	if (sp->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
sp                542 drivers/media/platform/sti/hva/hva-v4l2.c 	if (!sp->parm.output.timeperframe.numerator ||
sp                543 drivers/media/platform/sti/hva/hva-v4l2.c 	    !sp->parm.output.timeperframe.denominator)
sp                544 drivers/media/platform/sti/hva/hva-v4l2.c 		return hva_g_parm(file, fh, sp);
sp                546 drivers/media/platform/sti/hva/hva-v4l2.c 	sp->parm.output.capability = V4L2_CAP_TIMEPERFRAME;
sp                547 drivers/media/platform/sti/hva/hva-v4l2.c 	time_per_frame->numerator = sp->parm.output.timeperframe.numerator;
sp                549 drivers/media/platform/sti/hva/hva-v4l2.c 		sp->parm.output.timeperframe.denominator;
sp                 49 drivers/media/usb/pvrusb2/pvrusb2-audio.c 		const struct routing_scheme *sp;
sp                 54 drivers/media/usb/pvrusb2/pvrusb2-audio.c 		sp = (sid < ARRAY_SIZE(routing_schemes)) ?
sp                 57 drivers/media/usb/pvrusb2/pvrusb2-audio.c 		if ((sp != NULL) &&
sp                 59 drivers/media/usb/pvrusb2/pvrusb2-audio.c 		    (hdw->input_val < sp->cnt)) {
sp                 60 drivers/media/usb/pvrusb2/pvrusb2-audio.c 			input = sp->def[hdw->input_val];
sp                375 drivers/media/usb/pvrusb2/pvrusb2-context.c 			      struct pvr2_context_stream *sp)
sp                379 drivers/media/usb/pvrusb2/pvrusb2-context.c 		if (sp == cp->stream) break;
sp                380 drivers/media/usb/pvrusb2/pvrusb2-context.c 		if (sp && sp->user) {
sp                385 drivers/media/usb/pvrusb2/pvrusb2-context.c 		if (!sp) break;
sp                386 drivers/media/usb/pvrusb2/pvrusb2-context.c 		sp->user = cp;
sp                387 drivers/media/usb/pvrusb2/pvrusb2-context.c 		cp->stream = sp;
sp                400 drivers/media/usb/pvrusb2/pvrusb2-context.c 	struct pvr2_context_stream *sp)
sp                405 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_ioread_setup(cp,sp->stream);
sp                 50 drivers/media/usb/pvrusb2/pvrusb2-cs53l32a.c 		const struct routing_scheme *sp;
sp                 55 drivers/media/usb/pvrusb2/pvrusb2-cs53l32a.c 		sp = (sid < ARRAY_SIZE(routing_schemes)) ?
sp                 57 drivers/media/usb/pvrusb2/pvrusb2-cs53l32a.c 		if ((sp == NULL) ||
sp                 59 drivers/media/usb/pvrusb2/pvrusb2-cs53l32a.c 		    (hdw->input_val >= sp->cnt)) {
sp                 65 drivers/media/usb/pvrusb2/pvrusb2-cs53l32a.c 		input = sp->def[hdw->input_val];
sp                141 drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c 		const struct routing_scheme *sp;
sp                144 drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c 		sp = (sid < ARRAY_SIZE(routing_schemes)) ?
sp                146 drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c 		if ((sp == NULL) ||
sp                148 drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c 		    (hdw->input_val >= sp->cnt)) {
sp                154 drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c 		vid_input = sp->def[hdw->input_val].vid;
sp                155 drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c 		aud_input = sp->def[hdw->input_val].aud;
sp                140 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 	struct pvr2_stream *sp;
sp                160 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 	sp = pvr2_hdw_get_video_stream(hdw);
sp                161 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 	if (sp) {
sp                162 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 		pvr2_stream_get_stats(sp, &stats, 0);
sp                120 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct pvr2_stream *sp = bp->stream;
sp                123 drivers/media/usb/pvrusb2/pvrusb2-io.c 		cnt = &sp->i_count;
sp                124 drivers/media/usb/pvrusb2/pvrusb2-io.c 		bcnt = &sp->i_bcount;
sp                128 drivers/media/usb/pvrusb2/pvrusb2-io.c 		cnt = &sp->q_count;
sp                129 drivers/media/usb/pvrusb2/pvrusb2-io.c 		bcnt = &sp->q_bcount;
sp                133 drivers/media/usb/pvrusb2/pvrusb2-io.c 		cnt = &sp->r_count;
sp                134 drivers/media/usb/pvrusb2/pvrusb2-io.c 		bcnt = &sp->r_bcount;
sp                152 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct pvr2_stream *sp;
sp                154 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp = bp->stream;
sp                160 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_lock_irqsave(&sp->list_lock, irq_flags);
sp                162 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_unlock_irqrestore(&sp->list_lock, irq_flags);
sp                169 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct pvr2_stream *sp;
sp                171 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp = bp->stream;
sp                177 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_lock_irqsave(&sp->list_lock, irq_flags);
sp                178 drivers/media/usb/pvrusb2/pvrusb2-io.c 	fl = (sp->r_count == 0);
sp                180 drivers/media/usb/pvrusb2/pvrusb2-io.c 	list_add_tail(&bp->list_overhead, &sp->ready_list);
sp                182 drivers/media/usb/pvrusb2/pvrusb2-io.c 	(sp->r_count)++;
sp                183 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp->r_bcount += bp->used_count;
sp                187 drivers/media/usb/pvrusb2/pvrusb2-io.c 		   sp->r_bcount, sp->r_count);
sp                188 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_unlock_irqrestore(&sp->list_lock, irq_flags);
sp                195 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct pvr2_stream *sp;
sp                197 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp = bp->stream;
sp                203 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_lock_irqsave(&sp->list_lock, irq_flags);
sp                205 drivers/media/usb/pvrusb2/pvrusb2-io.c 	list_add_tail(&bp->list_overhead, &sp->idle_list);
sp                207 drivers/media/usb/pvrusb2/pvrusb2-io.c 	(sp->i_count)++;
sp                208 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp->i_bcount += bp->max_count;
sp                212 drivers/media/usb/pvrusb2/pvrusb2-io.c 		   sp->i_bcount, sp->i_count);
sp                213 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_unlock_irqrestore(&sp->list_lock, irq_flags);
sp                219 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct pvr2_stream *sp;
sp                221 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp = bp->stream;
sp                227 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_lock_irqsave(&sp->list_lock, irq_flags);
sp                229 drivers/media/usb/pvrusb2/pvrusb2-io.c 	list_add_tail(&bp->list_overhead, &sp->queued_list);
sp                231 drivers/media/usb/pvrusb2/pvrusb2-io.c 	(sp->q_count)++;
sp                232 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp->q_bcount += bp->max_count;
sp                236 drivers/media/usb/pvrusb2/pvrusb2-io.c 		   sp->q_bcount, sp->q_count);
sp                237 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_unlock_irqrestore(&sp->list_lock, irq_flags);
sp                248 drivers/media/usb/pvrusb2/pvrusb2-io.c 			    struct pvr2_stream *sp,
sp                255 drivers/media/usb/pvrusb2/pvrusb2-io.c 		   "/*---TRACE_FLOW---*/ bufferInit     %p stream=%p", bp, sp);
sp                256 drivers/media/usb/pvrusb2/pvrusb2-io.c 	bp->stream = sp;
sp                281 drivers/media/usb/pvrusb2/pvrusb2-io.c static int pvr2_stream_buffer_count(struct pvr2_stream *sp, unsigned int cnt)
sp                287 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (cnt == sp->buffer_total_count) return 0;
sp                291 drivers/media/usb/pvrusb2/pvrusb2-io.c 		   sp,
sp                292 drivers/media/usb/pvrusb2/pvrusb2-io.c 		   sp->buffer_total_count,
sp                293 drivers/media/usb/pvrusb2/pvrusb2-io.c 		   cnt-sp->buffer_total_count);
sp                298 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (cnt > sp->buffer_total_count) {
sp                299 drivers/media/usb/pvrusb2/pvrusb2-io.c 		if (scnt > sp->buffer_slot_count) {
sp                304 drivers/media/usb/pvrusb2/pvrusb2-io.c 			if (sp->buffer_slot_count) {
sp                305 drivers/media/usb/pvrusb2/pvrusb2-io.c 				memcpy(nb, sp->buffers,
sp                306 drivers/media/usb/pvrusb2/pvrusb2-io.c 				       sp->buffer_slot_count * sizeof(*nb));
sp                307 drivers/media/usb/pvrusb2/pvrusb2-io.c 				kfree(sp->buffers);
sp                309 drivers/media/usb/pvrusb2/pvrusb2-io.c 			sp->buffers = nb;
sp                310 drivers/media/usb/pvrusb2/pvrusb2-io.c 			sp->buffer_slot_count = scnt;
sp                312 drivers/media/usb/pvrusb2/pvrusb2-io.c 		while (sp->buffer_total_count < cnt) {
sp                316 drivers/media/usb/pvrusb2/pvrusb2-io.c 			ret = pvr2_buffer_init(bp, sp, sp->buffer_total_count);
sp                321 drivers/media/usb/pvrusb2/pvrusb2-io.c 			sp->buffers[sp->buffer_total_count] = bp;
sp                322 drivers/media/usb/pvrusb2/pvrusb2-io.c 			(sp->buffer_total_count)++;
sp                326 drivers/media/usb/pvrusb2/pvrusb2-io.c 		while (sp->buffer_total_count > cnt) {
sp                328 drivers/media/usb/pvrusb2/pvrusb2-io.c 			bp = sp->buffers[sp->buffer_total_count - 1];
sp                330 drivers/media/usb/pvrusb2/pvrusb2-io.c 			sp->buffers[sp->buffer_total_count - 1] = NULL;
sp                331 drivers/media/usb/pvrusb2/pvrusb2-io.c 			(sp->buffer_total_count)--;
sp                335 drivers/media/usb/pvrusb2/pvrusb2-io.c 		if (scnt < sp->buffer_slot_count) {
sp                338 drivers/media/usb/pvrusb2/pvrusb2-io.c 				nb = kmemdup(sp->buffers, scnt * sizeof(*nb),
sp                342 drivers/media/usb/pvrusb2/pvrusb2-io.c 			kfree(sp->buffers);
sp                343 drivers/media/usb/pvrusb2/pvrusb2-io.c 			sp->buffers = nb;
sp                344 drivers/media/usb/pvrusb2/pvrusb2-io.c 			sp->buffer_slot_count = scnt;
sp                350 drivers/media/usb/pvrusb2/pvrusb2-io.c static int pvr2_stream_achieve_buffer_count(struct pvr2_stream *sp)
sp                355 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (sp->buffer_total_count == sp->buffer_target_count) return 0;
sp                359 drivers/media/usb/pvrusb2/pvrusb2-io.c 		   sp, sp->buffer_total_count, sp->buffer_target_count);
sp                361 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (sp->buffer_total_count < sp->buffer_target_count) {
sp                362 drivers/media/usb/pvrusb2/pvrusb2-io.c 		return pvr2_stream_buffer_count(sp, sp->buffer_target_count);
sp                366 drivers/media/usb/pvrusb2/pvrusb2-io.c 	while ((sp->buffer_total_count - cnt) > sp->buffer_target_count) {
sp                367 drivers/media/usb/pvrusb2/pvrusb2-io.c 		bp = sp->buffers[sp->buffer_total_count - (cnt + 1)];
sp                372 drivers/media/usb/pvrusb2/pvrusb2-io.c 		pvr2_stream_buffer_count(sp, sp->buffer_total_count - cnt);
sp                378 drivers/media/usb/pvrusb2/pvrusb2-io.c static void pvr2_stream_internal_flush(struct pvr2_stream *sp)
sp                382 drivers/media/usb/pvrusb2/pvrusb2-io.c 	while ((lp = sp->queued_list.next) != &sp->queued_list) {
sp                393 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (sp->buffer_total_count != sp->buffer_target_count) {
sp                394 drivers/media/usb/pvrusb2/pvrusb2-io.c 		pvr2_stream_achieve_buffer_count(sp);
sp                398 drivers/media/usb/pvrusb2/pvrusb2-io.c static void pvr2_stream_init(struct pvr2_stream *sp)
sp                400 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_lock_init(&sp->list_lock);
sp                401 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_init(&sp->mutex);
sp                402 drivers/media/usb/pvrusb2/pvrusb2-io.c 	INIT_LIST_HEAD(&sp->queued_list);
sp                403 drivers/media/usb/pvrusb2/pvrusb2-io.c 	INIT_LIST_HEAD(&sp->ready_list);
sp                404 drivers/media/usb/pvrusb2/pvrusb2-io.c 	INIT_LIST_HEAD(&sp->idle_list);
sp                407 drivers/media/usb/pvrusb2/pvrusb2-io.c static void pvr2_stream_done(struct pvr2_stream *sp)
sp                409 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_lock(&sp->mutex); do {
sp                410 drivers/media/usb/pvrusb2/pvrusb2-io.c 		pvr2_stream_internal_flush(sp);
sp                411 drivers/media/usb/pvrusb2/pvrusb2-io.c 		pvr2_stream_buffer_count(sp, 0);
sp                412 drivers/media/usb/pvrusb2/pvrusb2-io.c 	} while (0); mutex_unlock(&sp->mutex);
sp                418 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct pvr2_stream *sp;
sp                421 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp = bp->stream;
sp                427 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_lock_irqsave(&sp->list_lock, irq_flags);
sp                432 drivers/media/usb/pvrusb2/pvrusb2-io.c 		(sp->buffers_processed)++;
sp                433 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->bytes_processed += urb->actual_length;
sp                435 drivers/media/usb/pvrusb2/pvrusb2-io.c 		if (sp->fail_count) {
sp                438 drivers/media/usb/pvrusb2/pvrusb2-io.c 				   sp);
sp                439 drivers/media/usb/pvrusb2/pvrusb2-io.c 			sp->fail_count = 0;
sp                441 drivers/media/usb/pvrusb2/pvrusb2-io.c 	} else if (sp->fail_count < sp->fail_tolerance) {
sp                444 drivers/media/usb/pvrusb2/pvrusb2-io.c 		(sp->fail_count)++;
sp                445 drivers/media/usb/pvrusb2/pvrusb2-io.c 		(sp->buffers_failed)++;
sp                448 drivers/media/usb/pvrusb2/pvrusb2-io.c 			   sp, urb->status, sp->fail_count);
sp                450 drivers/media/usb/pvrusb2/pvrusb2-io.c 		(sp->buffers_failed)++;
sp                453 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_unlock_irqrestore(&sp->list_lock, irq_flags);
sp                455 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (sp->callback_func) {
sp                456 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->callback_func(sp->callback_data);
sp                462 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct pvr2_stream *sp;
sp                463 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp = kzalloc(sizeof(*sp), GFP_KERNEL);
sp                464 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (!sp) return sp;
sp                465 drivers/media/usb/pvrusb2/pvrusb2-io.c 	pvr2_trace(PVR2_TRACE_INIT, "pvr2_stream_create: sp=%p", sp);
sp                466 drivers/media/usb/pvrusb2/pvrusb2-io.c 	pvr2_stream_init(sp);
sp                467 drivers/media/usb/pvrusb2/pvrusb2-io.c 	return sp;
sp                470 drivers/media/usb/pvrusb2/pvrusb2-io.c void pvr2_stream_destroy(struct pvr2_stream *sp)
sp                472 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (!sp) return;
sp                473 drivers/media/usb/pvrusb2/pvrusb2-io.c 	pvr2_trace(PVR2_TRACE_INIT, "pvr2_stream_destroy: sp=%p", sp);
sp                474 drivers/media/usb/pvrusb2/pvrusb2-io.c 	pvr2_stream_done(sp);
sp                475 drivers/media/usb/pvrusb2/pvrusb2-io.c 	kfree(sp);
sp                478 drivers/media/usb/pvrusb2/pvrusb2-io.c void pvr2_stream_setup(struct pvr2_stream *sp,
sp                483 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_lock(&sp->mutex); do {
sp                484 drivers/media/usb/pvrusb2/pvrusb2-io.c 		pvr2_stream_internal_flush(sp);
sp                485 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->dev = dev;
sp                486 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->endpoint = endpoint;
sp                487 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->fail_tolerance = tolerance;
sp                488 drivers/media/usb/pvrusb2/pvrusb2-io.c 	} while (0); mutex_unlock(&sp->mutex);
sp                491 drivers/media/usb/pvrusb2/pvrusb2-io.c void pvr2_stream_set_callback(struct pvr2_stream *sp,
sp                496 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_lock(&sp->mutex);
sp                498 drivers/media/usb/pvrusb2/pvrusb2-io.c 		spin_lock_irqsave(&sp->list_lock, irq_flags);
sp                499 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->callback_data = data;
sp                500 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->callback_func = func;
sp                501 drivers/media/usb/pvrusb2/pvrusb2-io.c 		spin_unlock_irqrestore(&sp->list_lock, irq_flags);
sp                503 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_unlock(&sp->mutex);
sp                506 drivers/media/usb/pvrusb2/pvrusb2-io.c void pvr2_stream_get_stats(struct pvr2_stream *sp,
sp                511 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_lock_irqsave(&sp->list_lock, irq_flags);
sp                513 drivers/media/usb/pvrusb2/pvrusb2-io.c 		stats->buffers_in_queue = sp->q_count;
sp                514 drivers/media/usb/pvrusb2/pvrusb2-io.c 		stats->buffers_in_idle = sp->i_count;
sp                515 drivers/media/usb/pvrusb2/pvrusb2-io.c 		stats->buffers_in_ready = sp->r_count;
sp                516 drivers/media/usb/pvrusb2/pvrusb2-io.c 		stats->buffers_processed = sp->buffers_processed;
sp                517 drivers/media/usb/pvrusb2/pvrusb2-io.c 		stats->buffers_failed = sp->buffers_failed;
sp                518 drivers/media/usb/pvrusb2/pvrusb2-io.c 		stats->bytes_processed = sp->bytes_processed;
sp                521 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->buffers_processed = 0;
sp                522 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->buffers_failed = 0;
sp                523 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->bytes_processed = 0;
sp                525 drivers/media/usb/pvrusb2/pvrusb2-io.c 	spin_unlock_irqrestore(&sp->list_lock, irq_flags);
sp                529 drivers/media/usb/pvrusb2/pvrusb2-io.c int pvr2_stream_get_buffer_count(struct pvr2_stream *sp)
sp                531 drivers/media/usb/pvrusb2/pvrusb2-io.c 	return sp->buffer_target_count;
sp                534 drivers/media/usb/pvrusb2/pvrusb2-io.c int pvr2_stream_set_buffer_count(struct pvr2_stream *sp, unsigned int cnt)
sp                537 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (sp->buffer_target_count == cnt) return 0;
sp                538 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_lock(&sp->mutex);
sp                540 drivers/media/usb/pvrusb2/pvrusb2-io.c 		sp->buffer_target_count = cnt;
sp                541 drivers/media/usb/pvrusb2/pvrusb2-io.c 		ret = pvr2_stream_achieve_buffer_count(sp);
sp                543 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_unlock(&sp->mutex);
sp                547 drivers/media/usb/pvrusb2/pvrusb2-io.c struct pvr2_buffer *pvr2_stream_get_idle_buffer(struct pvr2_stream *sp)
sp                549 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct list_head *lp = sp->idle_list.next;
sp                550 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (lp == &sp->idle_list) return NULL;
sp                554 drivers/media/usb/pvrusb2/pvrusb2-io.c struct pvr2_buffer *pvr2_stream_get_ready_buffer(struct pvr2_stream *sp)
sp                556 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct list_head *lp = sp->ready_list.next;
sp                557 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (lp == &sp->ready_list) return NULL;
sp                561 drivers/media/usb/pvrusb2/pvrusb2-io.c struct pvr2_buffer *pvr2_stream_get_buffer(struct pvr2_stream *sp, int id)
sp                564 drivers/media/usb/pvrusb2/pvrusb2-io.c 	if (id >= sp->buffer_total_count) return NULL;
sp                565 drivers/media/usb/pvrusb2/pvrusb2-io.c 	return sp->buffers[id];
sp                568 drivers/media/usb/pvrusb2/pvrusb2-io.c int pvr2_stream_get_ready_count(struct pvr2_stream *sp)
sp                570 drivers/media/usb/pvrusb2/pvrusb2-io.c 	return sp->r_count;
sp                573 drivers/media/usb/pvrusb2/pvrusb2-io.c void pvr2_stream_kill(struct pvr2_stream *sp)
sp                576 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_lock(&sp->mutex);
sp                578 drivers/media/usb/pvrusb2/pvrusb2-io.c 		pvr2_stream_internal_flush(sp);
sp                579 drivers/media/usb/pvrusb2/pvrusb2-io.c 		while ((bp = pvr2_stream_get_ready_buffer(sp)) != NULL) {
sp                582 drivers/media/usb/pvrusb2/pvrusb2-io.c 		if (sp->buffer_total_count != sp->buffer_target_count) {
sp                583 drivers/media/usb/pvrusb2/pvrusb2-io.c 			pvr2_stream_achieve_buffer_count(sp);
sp                586 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_unlock(&sp->mutex);
sp                597 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct pvr2_stream *sp;
sp                599 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp = bp->stream;
sp                600 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_lock(&sp->mutex);
sp                603 drivers/media/usb/pvrusb2/pvrusb2-io.c 		if (!sp->dev) {
sp                617 drivers/media/usb/pvrusb2/pvrusb2-io.c 				  sp->dev,       // struct usb_device *dev
sp                619 drivers/media/usb/pvrusb2/pvrusb2-io.c 				  usb_rcvbulkpipe(sp->dev, sp->endpoint),
sp                626 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_unlock(&sp->mutex);
sp                634 drivers/media/usb/pvrusb2/pvrusb2-io.c 	struct pvr2_stream *sp;
sp                636 drivers/media/usb/pvrusb2/pvrusb2-io.c 	sp = bp->stream;
sp                637 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_lock(&sp->mutex);
sp                639 drivers/media/usb/pvrusb2/pvrusb2-io.c 		spin_lock_irqsave(&sp->list_lock, irq_flags);
sp                653 drivers/media/usb/pvrusb2/pvrusb2-io.c 		spin_unlock_irqrestore(&sp->list_lock, irq_flags);
sp                655 drivers/media/usb/pvrusb2/pvrusb2-io.c 	mutex_unlock(&sp->mutex);
sp                 54 drivers/media/usb/pvrusb2/pvrusb2-io.h struct pvr2_buffer *pvr2_stream_get_buffer(struct pvr2_stream *sp,int id);
sp                186 drivers/media/usb/pvrusb2/pvrusb2-ioread.c int pvr2_ioread_setup(struct pvr2_ioread *cp,struct pvr2_stream *sp)
sp                205 drivers/media/usb/pvrusb2/pvrusb2-ioread.c 		if (sp) {
sp                209 drivers/media/usb/pvrusb2/pvrusb2-ioread.c 			pvr2_stream_kill(sp);
sp                210 drivers/media/usb/pvrusb2/pvrusb2-ioread.c 			ret = pvr2_stream_set_buffer_count(sp,BUFFER_COUNT);
sp                216 drivers/media/usb/pvrusb2/pvrusb2-ioread.c 				bp = pvr2_stream_get_buffer(sp,idx);
sp                221 drivers/media/usb/pvrusb2/pvrusb2-ioread.c 			cp->stream = sp;
sp                129 drivers/media/usb/pvrusb2/pvrusb2-std.c 	const struct std_name *sp;
sp                136 drivers/media/usb/pvrusb2/pvrusb2-std.c 			sp = find_std_name(std_groups, ARRAY_SIZE(std_groups),
sp                138 drivers/media/usb/pvrusb2/pvrusb2-std.c 			if (!sp) return 0; // Illegal color system name
sp                143 drivers/media/usb/pvrusb2/pvrusb2-std.c 			cmsk = sp->id;
sp                156 drivers/media/usb/pvrusb2/pvrusb2-std.c 		sp = find_std_name(std_items, ARRAY_SIZE(std_items),
sp                158 drivers/media/usb/pvrusb2/pvrusb2-std.c 		if (!sp) return 0; // Illegal modulation system ID
sp                159 drivers/media/usb/pvrusb2/pvrusb2-std.c 		t = sp->id & cmsk;
sp                920 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		struct pvr2_stream *sp;
sp                922 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sp = pvr2_ioread_get_stream(fhp->rhp);
sp                923 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		if (sp) pvr2_stream_set_callback(sp,NULL,NULL);
sp               1048 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	struct pvr2_stream *sp;
sp               1073 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	sp = fh->pdi->stream->stream;
sp               1074 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_stream_set_callback(sp,(pvr2_stream_callback)pvr2_v4l2_notify,fh);
sp                 67 drivers/media/usb/pvrusb2/pvrusb2-video-v4l.c 		const struct routing_scheme *sp;
sp                 74 drivers/media/usb/pvrusb2/pvrusb2-video-v4l.c 		sp = (sid < ARRAY_SIZE(routing_schemes)) ?
sp                 76 drivers/media/usb/pvrusb2/pvrusb2-video-v4l.c 		if ((sp == NULL) ||
sp                 78 drivers/media/usb/pvrusb2/pvrusb2-video-v4l.c 		    (hdw->input_val >= sp->cnt)) {
sp                 84 drivers/media/usb/pvrusb2/pvrusb2-video-v4l.c 		input = sp->def[hdw->input_val];
sp               1261 drivers/media/usb/s2255/s2255drv.c 			 struct v4l2_streamparm *sp)
sp               1266 drivers/media/usb/s2255/s2255drv.c 	if (sp->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sp               1268 drivers/media/usb/s2255/s2255drv.c 	sp->parm.capture.capability = V4L2_CAP_TIMEPERFRAME;
sp               1269 drivers/media/usb/s2255/s2255drv.c 	sp->parm.capture.capturemode = vc->cap_parm.capturemode;
sp               1270 drivers/media/usb/s2255/s2255drv.c 	sp->parm.capture.readbuffers = S2255_MIN_BUFS;
sp               1273 drivers/media/usb/s2255/s2255drv.c 	sp->parm.capture.timeperframe.denominator = def_dem;
sp               1277 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator = def_num;
sp               1280 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator = def_num * 2;
sp               1283 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator = def_num * 3;
sp               1286 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator = def_num * 5;
sp               1291 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.capturemode,
sp               1292 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator,
sp               1293 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.denominator);
sp               1298 drivers/media/usb/s2255/s2255drv.c 			 struct v4l2_streamparm *sp)
sp               1304 drivers/media/usb/s2255/s2255drv.c 	if (sp->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sp               1308 drivers/media/usb/s2255/s2255drv.c 	if ((vc->cap_parm.capturemode != sp->parm.capture.capturemode)
sp               1313 drivers/media/usb/s2255/s2255drv.c 	if (def_dem != sp->parm.capture.timeperframe.denominator)
sp               1314 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator = def_num;
sp               1315 drivers/media/usb/s2255/s2255drv.c 	else if (sp->parm.capture.timeperframe.numerator <= def_num)
sp               1316 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator = def_num;
sp               1317 drivers/media/usb/s2255/s2255drv.c 	else if (sp->parm.capture.timeperframe.numerator <= (def_num * 2)) {
sp               1318 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator = def_num * 2;
sp               1320 drivers/media/usb/s2255/s2255drv.c 	} else if (sp->parm.capture.timeperframe.numerator <= (def_num * 3)) {
sp               1321 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator = def_num * 3;
sp               1324 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator = def_num * 5;
sp               1328 drivers/media/usb/s2255/s2255drv.c 	sp->parm.capture.timeperframe.denominator = def_dem;
sp               1329 drivers/media/usb/s2255/s2255drv.c 	sp->parm.capture.readbuffers = S2255_MIN_BUFS;
sp               1333 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.capturemode,
sp               1334 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.numerator,
sp               1335 drivers/media/usb/s2255/s2255drv.c 		sp->parm.capture.timeperframe.denominator, fdec);
sp               1166 drivers/media/usb/stkwebcam/stk-webcam.c 		void *priv, struct v4l2_streamparm *sp)
sp               1169 drivers/media/usb/stkwebcam/stk-webcam.c 	sp->parm.capture.timeperframe.numerator = 1;
sp               1170 drivers/media/usb/stkwebcam/stk-webcam.c 	sp->parm.capture.timeperframe.denominator = 30;
sp               1171 drivers/media/usb/stkwebcam/stk-webcam.c 	sp->parm.capture.readbuffers = 2;
sp                157 drivers/mfd/rave-sp.c 	int (*get_status)(struct rave_sp *sp, struct rave_sp_status *);
sp                210 drivers/mfd/rave-sp.c 	struct rave_sp *sp = dev_get_drvdata(dev->parent);
sp                212 drivers/mfd/rave-sp.c 	struct blocking_notifier_head *bnh = &sp->event_notifier_list;
sp                220 drivers/mfd/rave-sp.c 	struct rave_sp *sp = dev_get_drvdata(dev->parent);
sp                229 drivers/mfd/rave-sp.c 	ret = blocking_notifier_chain_register(&sp->event_notifier_list, nb);
sp                282 drivers/mfd/rave-sp.c static int rave_sp_write(struct rave_sp *sp, const u8 *data, u8 data_size)
sp                284 drivers/mfd/rave-sp.c 	const size_t checksum_length = sp->variant->checksum->length;
sp                296 drivers/mfd/rave-sp.c 	sp->variant->checksum->subroutine(data, data_size, crc);
sp                308 drivers/mfd/rave-sp.c 	return serdev_device_write(sp->serdev, frame, length, HZ);
sp                342 drivers/mfd/rave-sp.c int rave_sp_exec(struct rave_sp *sp,
sp                355 drivers/mfd/rave-sp.c 	command = sp->variant->cmd.translate(data[0]);
sp                359 drivers/mfd/rave-sp.c 	ackid       = atomic_inc_return(&sp->ackid);
sp                363 drivers/mfd/rave-sp.c 	mutex_lock(&sp->bus_lock);
sp                365 drivers/mfd/rave-sp.c 	mutex_lock(&sp->reply_lock);
sp                366 drivers/mfd/rave-sp.c 	sp->reply = &reply;
sp                367 drivers/mfd/rave-sp.c 	mutex_unlock(&sp->reply_lock);
sp                372 drivers/mfd/rave-sp.c 	rave_sp_write(sp, data, data_size);
sp                375 drivers/mfd/rave-sp.c 		dev_err(&sp->serdev->dev, "Command timeout\n");
sp                378 drivers/mfd/rave-sp.c 		mutex_lock(&sp->reply_lock);
sp                379 drivers/mfd/rave-sp.c 		sp->reply = NULL;
sp                380 drivers/mfd/rave-sp.c 		mutex_unlock(&sp->reply_lock);
sp                383 drivers/mfd/rave-sp.c 	mutex_unlock(&sp->bus_lock);
sp                388 drivers/mfd/rave-sp.c static void rave_sp_receive_event(struct rave_sp *sp,
sp                396 drivers/mfd/rave-sp.c 	rave_sp_write(sp, cmd, sizeof(cmd));
sp                398 drivers/mfd/rave-sp.c 	blocking_notifier_call_chain(&sp->event_notifier_list,
sp                403 drivers/mfd/rave-sp.c static void rave_sp_receive_reply(struct rave_sp *sp,
sp                406 drivers/mfd/rave-sp.c 	struct device *dev = &sp->serdev->dev;
sp                410 drivers/mfd/rave-sp.c 	mutex_lock(&sp->reply_lock);
sp                411 drivers/mfd/rave-sp.c 	reply = sp->reply;
sp                422 drivers/mfd/rave-sp.c 			sp->reply = NULL;
sp                434 drivers/mfd/rave-sp.c 	mutex_unlock(&sp->reply_lock);
sp                437 drivers/mfd/rave-sp.c static void rave_sp_receive_frame(struct rave_sp *sp,
sp                441 drivers/mfd/rave-sp.c 	const size_t checksum_length = sp->variant->checksum->length;
sp                444 drivers/mfd/rave-sp.c 	struct device *dev           = &sp->serdev->dev;
sp                460 drivers/mfd/rave-sp.c 	sp->variant->checksum->subroutine(data, payload_length,
sp                469 drivers/mfd/rave-sp.c 		rave_sp_receive_event(sp, data, length);
sp                471 drivers/mfd/rave-sp.c 		rave_sp_receive_reply(sp, data, length);
sp                478 drivers/mfd/rave-sp.c 	struct rave_sp *sp = dev_get_drvdata(dev);
sp                479 drivers/mfd/rave-sp.c 	struct rave_sp_deframer *deframer = &sp->deframer;
sp                498 drivers/mfd/rave-sp.c 				rave_sp_receive_frame(sp,
sp                664 drivers/mfd/rave-sp.c static int rave_sp_rdu1_get_status(struct rave_sp *sp,
sp                672 drivers/mfd/rave-sp.c 	return rave_sp_exec(sp, cmd, sizeof(cmd), status, sizeof(*status));
sp                675 drivers/mfd/rave-sp.c static int rave_sp_emulated_get_status(struct rave_sp *sp,
sp                684 drivers/mfd/rave-sp.c 	ret = rave_sp_exec(sp, cmd, sizeof(cmd), &status->firmware_version,
sp                690 drivers/mfd/rave-sp.c 	return rave_sp_exec(sp, cmd, sizeof(cmd), &status->bootloader_version,
sp                694 drivers/mfd/rave-sp.c static int rave_sp_get_status(struct rave_sp *sp)
sp                696 drivers/mfd/rave-sp.c 	struct device *dev = &sp->serdev->dev;
sp                701 drivers/mfd/rave-sp.c 	ret = sp->variant->cmd.get_status(sp, &status);
sp                709 drivers/mfd/rave-sp.c 	sp->part_number_firmware = version;
sp                715 drivers/mfd/rave-sp.c 	sp->part_number_bootloader = version;
sp                772 drivers/mfd/rave-sp.c 	struct rave_sp *sp;
sp                782 drivers/mfd/rave-sp.c 	sp = devm_kzalloc(dev, sizeof(*sp), GFP_KERNEL);
sp                783 drivers/mfd/rave-sp.c 	if (!sp)
sp                786 drivers/mfd/rave-sp.c 	sp->serdev = serdev;
sp                787 drivers/mfd/rave-sp.c 	dev_set_drvdata(dev, sp);
sp                789 drivers/mfd/rave-sp.c 	sp->variant = of_device_get_match_data(dev);
sp                790 drivers/mfd/rave-sp.c 	if (!sp->variant)
sp                793 drivers/mfd/rave-sp.c 	mutex_init(&sp->bus_lock);
sp                794 drivers/mfd/rave-sp.c 	mutex_init(&sp->reply_lock);
sp                795 drivers/mfd/rave-sp.c 	BLOCKING_INIT_NOTIFIER_HEAD(&sp->event_notifier_list);
sp                811 drivers/mfd/rave-sp.c 	ret = rave_sp_get_status(sp);
sp                814 drivers/mfd/rave-sp.c 		sp->part_number_firmware   = unknown;
sp                815 drivers/mfd/rave-sp.c 		sp->part_number_bootloader = unknown;
sp                822 drivers/mfd/rave-sp.c 	dev_info(dev, "Firmware version: %s",   sp->part_number_firmware);
sp                823 drivers/mfd/rave-sp.c 	dev_info(dev, "Bootloader version: %s", sp->part_number_bootloader);
sp                 16 drivers/misc/ibmasm/command.c static void exec_next_command(struct service_processor *sp);
sp                 20 drivers/misc/ibmasm/command.c struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size)
sp                 40 drivers/misc/ibmasm/command.c 	cmd->lock = &sp->lock;
sp                 63 drivers/misc/ibmasm/command.c static void enqueue_command(struct service_processor *sp, struct command *cmd)
sp                 65 drivers/misc/ibmasm/command.c 	list_add_tail(&cmd->queue_node, &sp->command_queue);
sp                 68 drivers/misc/ibmasm/command.c static struct command *dequeue_command(struct service_processor *sp)
sp                 73 drivers/misc/ibmasm/command.c 	if (list_empty(&sp->command_queue))
sp                 76 drivers/misc/ibmasm/command.c 	next = sp->command_queue.next;
sp                 83 drivers/misc/ibmasm/command.c static inline void do_exec_command(struct service_processor *sp)
sp                 89 drivers/misc/ibmasm/command.c 	if (ibmasm_send_i2o_message(sp)) {
sp                 90 drivers/misc/ibmasm/command.c 		sp->current_command->status = IBMASM_CMD_FAILED;
sp                 91 drivers/misc/ibmasm/command.c 		wake_up(&sp->current_command->wait);
sp                 92 drivers/misc/ibmasm/command.c 		command_put(sp->current_command);
sp                 93 drivers/misc/ibmasm/command.c 		exec_next_command(sp);
sp                105 drivers/misc/ibmasm/command.c void ibmasm_exec_command(struct service_processor *sp, struct command *cmd)
sp                112 drivers/misc/ibmasm/command.c 	spin_lock_irqsave(&sp->lock, flags);
sp                114 drivers/misc/ibmasm/command.c 	if (!sp->current_command) {
sp                115 drivers/misc/ibmasm/command.c 		sp->current_command = cmd;
sp                116 drivers/misc/ibmasm/command.c 		command_get(sp->current_command);
sp                117 drivers/misc/ibmasm/command.c 		spin_unlock_irqrestore(&sp->lock, flags);
sp                118 drivers/misc/ibmasm/command.c 		do_exec_command(sp);
sp                120 drivers/misc/ibmasm/command.c 		enqueue_command(sp, cmd);
sp                121 drivers/misc/ibmasm/command.c 		spin_unlock_irqrestore(&sp->lock, flags);
sp                125 drivers/misc/ibmasm/command.c static void exec_next_command(struct service_processor *sp)
sp                132 drivers/misc/ibmasm/command.c 	spin_lock_irqsave(&sp->lock, flags);
sp                133 drivers/misc/ibmasm/command.c 	sp->current_command = dequeue_command(sp);
sp                134 drivers/misc/ibmasm/command.c 	if (sp->current_command) {
sp                135 drivers/misc/ibmasm/command.c 		command_get(sp->current_command);
sp                136 drivers/misc/ibmasm/command.c 		spin_unlock_irqrestore(&sp->lock, flags);
sp                137 drivers/misc/ibmasm/command.c 		do_exec_command(sp);
sp                139 drivers/misc/ibmasm/command.c 		spin_unlock_irqrestore(&sp->lock, flags);
sp                161 drivers/misc/ibmasm/command.c void ibmasm_receive_command_response(struct service_processor *sp, void *response, size_t size)
sp                163 drivers/misc/ibmasm/command.c 	struct command *cmd = sp->current_command;
sp                165 drivers/misc/ibmasm/command.c 	if (!sp->current_command)
sp                170 drivers/misc/ibmasm/command.c 	wake_up(&sp->current_command->wait);
sp                171 drivers/misc/ibmasm/command.c 	command_put(sp->current_command);
sp                172 drivers/misc/ibmasm/command.c 	exec_next_command(sp);
sp                 17 drivers/misc/ibmasm/dot_command.c void ibmasm_receive_message(struct service_processor *sp, void *message, int message_size)
sp                 34 drivers/misc/ibmasm/dot_command.c 		ibmasm_receive_event(sp, message, size);
sp                 37 drivers/misc/ibmasm/dot_command.c 		ibmasm_receive_command_response(sp, message, size);
sp                 40 drivers/misc/ibmasm/dot_command.c 		ibmasm_receive_heartbeat(sp, message, size);
sp                 43 drivers/misc/ibmasm/dot_command.c 		dev_err(sp->dev, "Received unknown message from service processor\n");
sp                 54 drivers/misc/ibmasm/dot_command.c int ibmasm_send_driver_vpd(struct service_processor *sp)
sp                 62 drivers/misc/ibmasm/dot_command.c 	command = ibmasm_new_command(sp, INIT_BUFFER_SIZE);
sp                 85 drivers/misc/ibmasm/dot_command.c 	ibmasm_exec_command(sp, command);
sp                110 drivers/misc/ibmasm/dot_command.c int ibmasm_send_os_state(struct service_processor *sp, int os_state)
sp                116 drivers/misc/ibmasm/dot_command.c 	cmd = ibmasm_new_command(sp, sizeof(struct os_state_command));
sp                130 drivers/misc/ibmasm/dot_command.c 	ibmasm_exec_command(sp, cmd);
sp                 26 drivers/misc/ibmasm/event.c static void wake_up_event_readers(struct service_processor *sp)
sp                 30 drivers/misc/ibmasm/event.c 	list_for_each_entry(reader, &sp->event_buffer->readers, node)
sp                 43 drivers/misc/ibmasm/event.c void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int data_size)
sp                 45 drivers/misc/ibmasm/event.c 	struct event_buffer *buffer = sp->event_buffer;
sp                 51 drivers/misc/ibmasm/event.c 	spin_lock_irqsave(&sp->lock, flags);
sp                 61 drivers/misc/ibmasm/event.c 	spin_unlock_irqrestore(&sp->lock, flags);
sp                 63 drivers/misc/ibmasm/event.c 	wake_up_event_readers(sp);
sp                 77 drivers/misc/ibmasm/event.c int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader)
sp                 79 drivers/misc/ibmasm/event.c 	struct event_buffer *buffer = sp->event_buffer;
sp                 93 drivers/misc/ibmasm/event.c 	spin_lock_irqsave(&sp->lock, flags);
sp                105 drivers/misc/ibmasm/event.c 	spin_unlock_irqrestore(&sp->lock, flags);
sp                116 drivers/misc/ibmasm/event.c void ibmasm_event_reader_register(struct service_processor *sp, struct event_reader *reader)
sp                120 drivers/misc/ibmasm/event.c 	reader->next_serial_number = sp->event_buffer->next_serial_number;
sp                122 drivers/misc/ibmasm/event.c 	spin_lock_irqsave(&sp->lock, flags);
sp                123 drivers/misc/ibmasm/event.c 	list_add(&reader->node, &sp->event_buffer->readers);
sp                124 drivers/misc/ibmasm/event.c 	spin_unlock_irqrestore(&sp->lock, flags);
sp                127 drivers/misc/ibmasm/event.c void ibmasm_event_reader_unregister(struct service_processor *sp, struct event_reader *reader)
sp                131 drivers/misc/ibmasm/event.c 	spin_lock_irqsave(&sp->lock, flags);
sp                133 drivers/misc/ibmasm/event.c 	spin_unlock_irqrestore(&sp->lock, flags);
sp                136 drivers/misc/ibmasm/event.c int ibmasm_event_buffer_init(struct service_processor *sp)
sp                155 drivers/misc/ibmasm/event.c 	sp->event_buffer = buffer;
sp                160 drivers/misc/ibmasm/event.c void ibmasm_event_buffer_exit(struct service_processor *sp)
sp                162 drivers/misc/ibmasm/event.c 	kfree(sp->event_buffer);
sp                 51 drivers/misc/ibmasm/heartbeat.c int ibmasm_heartbeat_init(struct service_processor *sp)
sp                 53 drivers/misc/ibmasm/heartbeat.c 	sp->heartbeat = ibmasm_new_command(sp, HEARTBEAT_BUFFER_SIZE);
sp                 54 drivers/misc/ibmasm/heartbeat.c 	if (sp->heartbeat == NULL)
sp                 60 drivers/misc/ibmasm/heartbeat.c void ibmasm_heartbeat_exit(struct service_processor *sp)
sp                 65 drivers/misc/ibmasm/heartbeat.c 	ibmasm_wait_for_response(sp->heartbeat, IBMASM_CMD_TIMEOUT_NORMAL);
sp                 68 drivers/misc/ibmasm/heartbeat.c 	command_put(sp->heartbeat);
sp                 71 drivers/misc/ibmasm/heartbeat.c void ibmasm_receive_heartbeat(struct service_processor *sp,  void *message, size_t size)
sp                 73 drivers/misc/ibmasm/heartbeat.c 	struct command *cmd = sp->heartbeat;
sp                 86 drivers/misc/ibmasm/heartbeat.c 	ibmasm_exec_command(sp, cmd);
sp                157 drivers/misc/ibmasm/ibmasm.h struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size);
sp                158 drivers/misc/ibmasm/ibmasm.h void ibmasm_exec_command(struct service_processor *sp, struct command *cmd);
sp                160 drivers/misc/ibmasm/ibmasm.h void ibmasm_receive_command_response(struct service_processor *sp, void *response,  size_t size);
sp                163 drivers/misc/ibmasm/ibmasm.h int ibmasm_event_buffer_init(struct service_processor *sp);
sp                164 drivers/misc/ibmasm/ibmasm.h void ibmasm_event_buffer_exit(struct service_processor *sp);
sp                165 drivers/misc/ibmasm/ibmasm.h void ibmasm_receive_event(struct service_processor *sp, void *data,  unsigned int data_size);
sp                166 drivers/misc/ibmasm/ibmasm.h void ibmasm_event_reader_register(struct service_processor *sp, struct event_reader *reader);
sp                167 drivers/misc/ibmasm/ibmasm.h void ibmasm_event_reader_unregister(struct service_processor *sp, struct event_reader *reader);
sp                168 drivers/misc/ibmasm/ibmasm.h int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader);
sp                174 drivers/misc/ibmasm/ibmasm.h int ibmasm_heartbeat_init(struct service_processor *sp);
sp                175 drivers/misc/ibmasm/ibmasm.h void ibmasm_heartbeat_exit(struct service_processor *sp);
sp                176 drivers/misc/ibmasm/ibmasm.h void ibmasm_receive_heartbeat(struct service_processor *sp,  void *message, size_t size);
sp                179 drivers/misc/ibmasm/ibmasm.h void ibmasm_init_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb);
sp                180 drivers/misc/ibmasm/ibmasm.h int ibmasm_start_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb);
sp                184 drivers/misc/ibmasm/ibmasm.h void ibmasm_receive_message(struct service_processor *sp, void *data, int data_size);
sp                185 drivers/misc/ibmasm/ibmasm.h int ibmasm_send_driver_vpd(struct service_processor *sp);
sp                186 drivers/misc/ibmasm/ibmasm.h int ibmasm_send_os_state(struct service_processor *sp, int os_state);
sp                189 drivers/misc/ibmasm/ibmasm.h int ibmasm_send_i2o_message(struct service_processor *sp);
sp                193 drivers/misc/ibmasm/ibmasm.h void ibmasm_handle_mouse_interrupt(struct service_processor *sp);
sp                194 drivers/misc/ibmasm/ibmasm.h int ibmasm_init_remote_input_dev(struct service_processor *sp);
sp                195 drivers/misc/ibmasm/ibmasm.h void ibmasm_free_remote_input_dev(struct service_processor *sp);
sp                200 drivers/misc/ibmasm/ibmasm.h void ibmasmfs_add_sp(struct service_processor *sp);
sp                204 drivers/misc/ibmasm/ibmasm.h void ibmasm_register_uart(struct service_processor *sp);
sp                205 drivers/misc/ibmasm/ibmasm.h void ibmasm_unregister_uart(struct service_processor *sp);
sp                207 drivers/misc/ibmasm/ibmasm.h #define ibmasm_register_uart(sp)	do { } while(0)
sp                208 drivers/misc/ibmasm/ibmasm.h #define ibmasm_unregister_uart(sp)	do { } while(0)
sp                206 drivers/misc/ibmasm/ibmasmfs.c void ibmasmfs_add_sp(struct service_processor *sp)
sp                208 drivers/misc/ibmasm/ibmasmfs.c 	list_add(&sp->node, &service_processors);
sp                213 drivers/misc/ibmasm/ibmasmfs.c 	struct service_processor	*sp;
sp                219 drivers/misc/ibmasm/ibmasmfs.c 	struct service_processor	*sp;
sp                226 drivers/misc/ibmasm/ibmasmfs.c 	struct service_processor	*sp;
sp                243 drivers/misc/ibmasm/ibmasmfs.c 	command_data->sp = inode->i_private;
sp                273 drivers/misc/ibmasm/ibmasmfs.c 	spin_lock_irqsave(&command_data->sp->lock, flags);
sp                276 drivers/misc/ibmasm/ibmasmfs.c 		spin_unlock_irqrestore(&command_data->sp->lock, flags);
sp                280 drivers/misc/ibmasm/ibmasmfs.c 	spin_unlock_irqrestore(&command_data->sp->lock, flags);
sp                313 drivers/misc/ibmasm/ibmasmfs.c 	cmd = ibmasm_new_command(command_data->sp, count);
sp                322 drivers/misc/ibmasm/ibmasmfs.c 	spin_lock_irqsave(&command_data->sp->lock, flags);
sp                324 drivers/misc/ibmasm/ibmasmfs.c 		spin_unlock_irqrestore(&command_data->sp->lock, flags);
sp                329 drivers/misc/ibmasm/ibmasmfs.c 	spin_unlock_irqrestore(&command_data->sp->lock, flags);
sp                331 drivers/misc/ibmasm/ibmasmfs.c 	ibmasm_exec_command(command_data->sp, cmd);
sp                340 drivers/misc/ibmasm/ibmasmfs.c 	struct service_processor *sp;
sp                345 drivers/misc/ibmasm/ibmasmfs.c 	sp = inode->i_private;
sp                351 drivers/misc/ibmasm/ibmasmfs.c 	ibmasm_event_reader_register(sp, &event_data->reader);
sp                353 drivers/misc/ibmasm/ibmasmfs.c 	event_data->sp = sp;
sp                363 drivers/misc/ibmasm/ibmasmfs.c 	ibmasm_event_reader_unregister(event_data->sp, &event_data->reader);
sp                372 drivers/misc/ibmasm/ibmasmfs.c 	struct service_processor *sp = event_data->sp;
sp                383 drivers/misc/ibmasm/ibmasmfs.c 	spin_lock_irqsave(&sp->lock, flags);
sp                385 drivers/misc/ibmasm/ibmasmfs.c 		spin_unlock_irqrestore(&sp->lock, flags);
sp                389 drivers/misc/ibmasm/ibmasmfs.c 	spin_unlock_irqrestore(&sp->lock, flags);
sp                391 drivers/misc/ibmasm/ibmasmfs.c 	ret = ibmasm_get_next_event(sp, reader);
sp                437 drivers/misc/ibmasm/ibmasmfs.c 	rhbeat->sp = inode->i_private;
sp                439 drivers/misc/ibmasm/ibmasmfs.c 	ibmasm_init_reverse_heartbeat(rhbeat->sp, &rhbeat->heartbeat);
sp                466 drivers/misc/ibmasm/ibmasmfs.c 	spin_lock_irqsave(&rhbeat->sp->lock, flags);
sp                468 drivers/misc/ibmasm/ibmasmfs.c 		spin_unlock_irqrestore(&rhbeat->sp->lock, flags);
sp                472 drivers/misc/ibmasm/ibmasmfs.c 	spin_unlock_irqrestore(&rhbeat->sp->lock, flags);
sp                474 drivers/misc/ibmasm/ibmasmfs.c 	result = ibmasm_start_reverse_heartbeat(rhbeat->sp, &rhbeat->heartbeat);
sp                581 drivers/misc/ibmasm/ibmasmfs.c 	struct service_processor *sp;
sp                586 drivers/misc/ibmasm/ibmasmfs.c 		sp = list_entry(entry, struct service_processor, node);
sp                587 drivers/misc/ibmasm/ibmasmfs.c 		dir = ibmasmfs_create_dir(sb->s_root, sp->dirname);
sp                591 drivers/misc/ibmasm/ibmasmfs.c 		ibmasmfs_create_file(dir, "command", &command_fops, sp, S_IRUSR|S_IWUSR);
sp                592 drivers/misc/ibmasm/ibmasmfs.c 		ibmasmfs_create_file(dir, "event", &event_fops, sp, S_IRUSR|S_IWUSR);
sp                593 drivers/misc/ibmasm/ibmasmfs.c 		ibmasmfs_create_file(dir, "reverse_heartbeat", &r_heartbeat_fops, sp, S_IRUSR|S_IWUSR);
sp                599 drivers/misc/ibmasm/ibmasmfs.c 		ibmasmfs_create_file(remote_dir, "width", &remote_settings_fops, (void *)display_width(sp), S_IRUSR|S_IWUSR);
sp                600 drivers/misc/ibmasm/ibmasmfs.c 		ibmasmfs_create_file(remote_dir, "height", &remote_settings_fops, (void *)display_height(sp), S_IRUSR|S_IWUSR);
sp                601 drivers/misc/ibmasm/ibmasmfs.c 		ibmasmfs_create_file(remote_dir, "depth", &remote_settings_fops, (void *)display_depth(sp), S_IRUSR|S_IWUSR);
sp                 19 drivers/misc/ibmasm/lowlevel.c int ibmasm_send_i2o_message(struct service_processor *sp)
sp                 24 drivers/misc/ibmasm/lowlevel.c 	struct command *command = sp->current_command;
sp                 26 drivers/misc/ibmasm/lowlevel.c 	mfa = get_mfa_inbound(sp->base_address);
sp                 33 drivers/misc/ibmasm/lowlevel.c 	message = get_i2o_message(sp->base_address, mfa);
sp                 38 drivers/misc/ibmasm/lowlevel.c 	set_mfa_inbound(sp->base_address, mfa);
sp                 46 drivers/misc/ibmasm/lowlevel.c 	struct service_processor *sp = (struct service_processor *)dev_id;
sp                 47 drivers/misc/ibmasm/lowlevel.c 	void __iomem *base_address = sp->base_address;
sp                 55 drivers/misc/ibmasm/lowlevel.c 	if (mouse_interrupt_pending(sp)) {
sp                 56 drivers/misc/ibmasm/lowlevel.c 		ibmasm_handle_mouse_interrupt(sp);
sp                 57 drivers/misc/ibmasm/lowlevel.c 		clear_mouse_interrupt(sp);
sp                 63 drivers/misc/ibmasm/lowlevel.c 		ibmasm_receive_message(sp, &msg->data, incoming_data_size(msg));
sp                 54 drivers/misc/ibmasm/module.c 	struct service_processor *sp;
sp                 67 drivers/misc/ibmasm/module.c 	sp = kzalloc(sizeof(struct service_processor), GFP_KERNEL);
sp                 68 drivers/misc/ibmasm/module.c 	if (sp == NULL) {
sp                 74 drivers/misc/ibmasm/module.c 	spin_lock_init(&sp->lock);
sp                 75 drivers/misc/ibmasm/module.c 	INIT_LIST_HEAD(&sp->command_queue);
sp                 77 drivers/misc/ibmasm/module.c 	pci_set_drvdata(pdev, (void *)sp);
sp                 78 drivers/misc/ibmasm/module.c 	sp->dev = &pdev->dev;
sp                 79 drivers/misc/ibmasm/module.c 	sp->number = pdev->bus->number;
sp                 80 drivers/misc/ibmasm/module.c 	snprintf(sp->dirname, IBMASM_NAME_SIZE, "%d", sp->number);
sp                 81 drivers/misc/ibmasm/module.c 	snprintf(sp->devname, IBMASM_NAME_SIZE, "%s%d", DRIVER_NAME, sp->number);
sp                 83 drivers/misc/ibmasm/module.c 	result = ibmasm_event_buffer_init(sp);
sp                 85 drivers/misc/ibmasm/module.c 		dev_err(sp->dev, "Failed to allocate event buffer\n");
sp                 89 drivers/misc/ibmasm/module.c 	result = ibmasm_heartbeat_init(sp);
sp                 91 drivers/misc/ibmasm/module.c 		dev_err(sp->dev, "Failed to allocate heartbeat command\n");
sp                 95 drivers/misc/ibmasm/module.c 	sp->irq = pdev->irq;
sp                 96 drivers/misc/ibmasm/module.c 	sp->base_address = pci_ioremap_bar(pdev, 0);
sp                 97 drivers/misc/ibmasm/module.c 	if (!sp->base_address) {
sp                 98 drivers/misc/ibmasm/module.c 		dev_err(sp->dev, "Failed to ioremap pci memory\n");
sp                103 drivers/misc/ibmasm/module.c 	result = request_irq(sp->irq, ibmasm_interrupt_handler, IRQF_SHARED, sp->devname, (void*)sp);
sp                105 drivers/misc/ibmasm/module.c 		dev_err(sp->dev, "Failed to register interrupt handler\n");
sp                109 drivers/misc/ibmasm/module.c 	enable_sp_interrupts(sp->base_address);
sp                111 drivers/misc/ibmasm/module.c 	result = ibmasm_init_remote_input_dev(sp);
sp                113 drivers/misc/ibmasm/module.c 		dev_err(sp->dev, "Failed to initialize remote queue\n");
sp                117 drivers/misc/ibmasm/module.c 	result = ibmasm_send_driver_vpd(sp);
sp                119 drivers/misc/ibmasm/module.c 		dev_err(sp->dev, "Failed to send driver VPD to service processor\n");
sp                122 drivers/misc/ibmasm/module.c 	result = ibmasm_send_os_state(sp, SYSTEM_STATE_OS_UP);
sp                124 drivers/misc/ibmasm/module.c 		dev_err(sp->dev, "Failed to send OS state to service processor\n");
sp                127 drivers/misc/ibmasm/module.c 	ibmasmfs_add_sp(sp);
sp                129 drivers/misc/ibmasm/module.c 	ibmasm_register_uart(sp);
sp                134 drivers/misc/ibmasm/module.c 	disable_sp_interrupts(sp->base_address);
sp                135 drivers/misc/ibmasm/module.c 	ibmasm_free_remote_input_dev(sp);
sp                136 drivers/misc/ibmasm/module.c 	free_irq(sp->irq, (void *)sp);
sp                138 drivers/misc/ibmasm/module.c 	iounmap(sp->base_address);
sp                140 drivers/misc/ibmasm/module.c 	ibmasm_heartbeat_exit(sp);
sp                142 drivers/misc/ibmasm/module.c 	ibmasm_event_buffer_exit(sp);
sp                144 drivers/misc/ibmasm/module.c 	kfree(sp);
sp                155 drivers/misc/ibmasm/module.c 	struct service_processor *sp = pci_get_drvdata(pdev);
sp                158 drivers/misc/ibmasm/module.c 	ibmasm_unregister_uart(sp);
sp                160 drivers/misc/ibmasm/module.c 	if (ibmasm_send_os_state(sp, SYSTEM_STATE_OS_DOWN))
sp                163 drivers/misc/ibmasm/module.c 	ibmasm_heartbeat_exit(sp);
sp                165 drivers/misc/ibmasm/module.c 	disable_sp_interrupts(sp->base_address);
sp                167 drivers/misc/ibmasm/module.c 	free_irq(sp->irq, (void *)sp);
sp                169 drivers/misc/ibmasm/module.c 	ibmasm_free_remote_input_dev(sp);
sp                170 drivers/misc/ibmasm/module.c 	iounmap(sp->base_address);
sp                171 drivers/misc/ibmasm/module.c 	ibmasm_event_buffer_exit(sp);
sp                172 drivers/misc/ibmasm/module.c 	kfree(sp);
sp                 36 drivers/misc/ibmasm/r_heartbeat.c void ibmasm_init_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb)
sp                 48 drivers/misc/ibmasm/r_heartbeat.c int ibmasm_start_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb)
sp                 54 drivers/misc/ibmasm/r_heartbeat.c 	cmd = ibmasm_new_command(sp, sizeof rhb_dot_cmd);
sp                 61 drivers/misc/ibmasm/r_heartbeat.c 		ibmasm_exec_command(sp, cmd);
sp                170 drivers/misc/ibmasm/remote.c void ibmasm_handle_mouse_interrupt(struct service_processor *sp)
sp                176 drivers/misc/ibmasm/remote.c 	reader = get_queue_reader(sp);
sp                177 drivers/misc/ibmasm/remote.c 	writer = get_queue_writer(sp);
sp                180 drivers/misc/ibmasm/remote.c 		memcpy_fromio(&input, get_queue_entry(sp, reader),
sp                185 drivers/misc/ibmasm/remote.c 			send_mouse_event(sp->remote.mouse_dev, &input);
sp                187 drivers/misc/ibmasm/remote.c 			send_keyboard_event(sp->remote.keybd_dev, &input);
sp                191 drivers/misc/ibmasm/remote.c 		reader = advance_queue_reader(sp, reader);
sp                192 drivers/misc/ibmasm/remote.c 		writer = get_queue_writer(sp);
sp                196 drivers/misc/ibmasm/remote.c int ibmasm_init_remote_input_dev(struct service_processor *sp)
sp                200 drivers/misc/ibmasm/remote.c 	struct pci_dev *pdev = to_pci_dev(sp->dev);
sp                204 drivers/misc/ibmasm/remote.c 	sp->remote.mouse_dev = mouse_dev = input_allocate_device();
sp                205 drivers/misc/ibmasm/remote.c 	sp->remote.keybd_dev = keybd_dev = input_allocate_device();
sp                214 drivers/misc/ibmasm/remote.c 	mouse_dev->dev.parent = sp->dev;
sp                227 drivers/misc/ibmasm/remote.c 	keybd_dev->dev.parent = sp->dev;
sp                246 drivers/misc/ibmasm/remote.c 	enable_mouse_interrupts(sp);
sp                248 drivers/misc/ibmasm/remote.c 	printk(KERN_INFO "ibmasm remote responding to events on RSA card %d\n", sp->number);
sp                262 drivers/misc/ibmasm/remote.c void ibmasm_free_remote_input_dev(struct service_processor *sp)
sp                264 drivers/misc/ibmasm/remote.c 	disable_mouse_interrupts(sp);
sp                265 drivers/misc/ibmasm/remote.c 	input_unregister_device(sp->remote.mouse_dev);
sp                266 drivers/misc/ibmasm/remote.c 	input_unregister_device(sp->remote.keybd_dev);
sp                 75 drivers/misc/ibmasm/remote.h #define mouse_addr(sp)		(sp->base_address + CONDOR_MOUSE_DATA)
sp                 76 drivers/misc/ibmasm/remote.h #define display_width(sp)	(mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESX)
sp                 77 drivers/misc/ibmasm/remote.h #define display_height(sp)	(mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESY)
sp                 78 drivers/misc/ibmasm/remote.h #define display_depth(sp)	(mouse_addr(sp) + CONDOR_INPUT_DISPLAY_BITS)
sp                 79 drivers/misc/ibmasm/remote.h #define desktop_info(sp)	(mouse_addr(sp) + CONDOR_INPUT_DESKTOP_INFO)
sp                 80 drivers/misc/ibmasm/remote.h #define vnc_status(sp)		(mouse_addr(sp) + CONDOR_OUTPUT_VNC_STATUS)
sp                 81 drivers/misc/ibmasm/remote.h #define isr_control(sp)		(mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL)
sp                 83 drivers/misc/ibmasm/remote.h #define mouse_interrupt_pending(sp)	readl(mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS)
sp                 84 drivers/misc/ibmasm/remote.h #define clear_mouse_interrupt(sp)	writel(0, mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS)
sp                 85 drivers/misc/ibmasm/remote.h #define enable_mouse_interrupts(sp)	writel(1, mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL)
sp                 86 drivers/misc/ibmasm/remote.h #define disable_mouse_interrupts(sp)	writel(0, mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL)
sp                 91 drivers/misc/ibmasm/remote.h #define get_queue_writer(sp)	readl(mouse_addr(sp) + CONDOR_MOUSE_Q_WRITER)
sp                 92 drivers/misc/ibmasm/remote.h #define get_queue_reader(sp)	readl(mouse_addr(sp) + CONDOR_MOUSE_Q_READER)
sp                 93 drivers/misc/ibmasm/remote.h #define set_queue_reader(sp, reader)	writel(reader, mouse_addr(sp) + CONDOR_MOUSE_Q_READER)
sp                 95 drivers/misc/ibmasm/remote.h #define queue_begin	(mouse_addr(sp) + CONDOR_MOUSE_Q_BEGIN)
sp                 97 drivers/misc/ibmasm/remote.h #define get_queue_entry(sp, read_index) \
sp                100 drivers/misc/ibmasm/remote.h static inline int advance_queue_reader(struct service_processor *sp, unsigned long reader)
sp                106 drivers/misc/ibmasm/remote.h 	set_queue_reader(sp, reader);
sp                 20 drivers/misc/ibmasm/uart.c void ibmasm_register_uart(struct service_processor *sp)
sp                 25 drivers/misc/ibmasm/uart.c 	iomem_base = sp->base_address + SCOUT_COM_B_BASE;
sp                 31 drivers/misc/ibmasm/uart.c 		dev_info(sp->dev, "IBM SP UART not registered, owned by service processor\n");
sp                 32 drivers/misc/ibmasm/uart.c 		sp->serial_line = -1;
sp                 37 drivers/misc/ibmasm/uart.c 	uart.port.irq		= sp->irq;
sp                 43 drivers/misc/ibmasm/uart.c 	sp->serial_line = serial8250_register_8250_port(&uart);
sp                 44 drivers/misc/ibmasm/uart.c 	if (sp->serial_line < 0) {
sp                 45 drivers/misc/ibmasm/uart.c 		dev_err(sp->dev, "Failed to register serial port\n");
sp                 48 drivers/misc/ibmasm/uart.c 	enable_uart_interrupts(sp->base_address);
sp                 51 drivers/misc/ibmasm/uart.c void ibmasm_unregister_uart(struct service_processor *sp)
sp                 53 drivers/misc/ibmasm/uart.c 	if (sp->serial_line < 0)
sp                 56 drivers/misc/ibmasm/uart.c 	disable_uart_interrupts(sp->base_address);
sp                 57 drivers/misc/ibmasm/uart.c 	serial8250_unregister_port(sp->serial_line);
sp                 16 drivers/misc/lkdtm/stackleak.c 	unsigned long *sp, left, found, i;
sp                 24 drivers/misc/lkdtm/stackleak.c 	sp = PTR_ALIGN(&i, sizeof(unsigned long));
sp                 26 drivers/misc/lkdtm/stackleak.c 	left = ((unsigned long)sp & (THREAD_SIZE - 1)) / sizeof(unsigned long);
sp                 27 drivers/misc/lkdtm/stackleak.c 	sp--;
sp                 48 drivers/misc/lkdtm/stackleak.c 		if (*(sp - i) == STACKLEAK_POISON)
sp                 65 drivers/misc/lkdtm/stackleak.c 		if (*(sp - i) != STACKLEAK_POISON) {
sp               1823 drivers/net/dsa/sja1105/sja1105_main.c 	struct sja1105_port *sp = &priv->ports[port];
sp               1825 drivers/net/dsa/sja1105/sja1105_main.c 	int slot = sp->mgmt_slot;
sp               2060 drivers/net/dsa/sja1105/sja1105_main.c 	struct sja1105_port *sp = &priv->ports[port];
sp               2062 drivers/net/dsa/sja1105/sja1105_main.c 	if (!sp->hwts_tx_en)
sp               2215 drivers/net/dsa/sja1105/sja1105_main.c 		struct sja1105_port *sp = &priv->ports[i];
sp               2217 drivers/net/dsa/sja1105/sja1105_main.c 		ds->ports[i].priv = sp;
sp               2218 drivers/net/dsa/sja1105/sja1105_main.c 		sp->dp = &ds->ports[i];
sp               2219 drivers/net/dsa/sja1105/sja1105_main.c 		sp->data = tagger_data;
sp                 48 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h #define BNX2X_DCBX_STRICT_COS_NEXT_LOWER_PRI(sp)	((sp) + 1)
sp               10903 drivers/net/ethernet/broadcom/tg3.c 	struct tg3_hw_stats *sp = tp->hw_stats;
sp               10908 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_octets, MAC_TX_STATS_OCTETS);
sp               10909 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_collisions, MAC_TX_STATS_COLLISIONS);
sp               10910 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_xon_sent, MAC_TX_STATS_XON_SENT);
sp               10911 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_xoff_sent, MAC_TX_STATS_XOFF_SENT);
sp               10912 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_mac_errors, MAC_TX_STATS_MAC_ERRORS);
sp               10913 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_single_collisions, MAC_TX_STATS_SINGLE_COLLISIONS);
sp               10914 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_mult_collisions, MAC_TX_STATS_MULT_COLLISIONS);
sp               10915 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_deferred, MAC_TX_STATS_DEFERRED);
sp               10916 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_excessive_collisions, MAC_TX_STATS_EXCESSIVE_COL);
sp               10917 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_late_collisions, MAC_TX_STATS_LATE_COL);
sp               10918 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_ucast_packets, MAC_TX_STATS_UCAST);
sp               10919 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_mcast_packets, MAC_TX_STATS_MCAST);
sp               10920 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->tx_bcast_packets, MAC_TX_STATS_BCAST);
sp               10922 drivers/net/ethernet/broadcom/tg3.c 		     (sp->tx_ucast_packets.low + sp->tx_mcast_packets.low +
sp               10923 drivers/net/ethernet/broadcom/tg3.c 		      sp->tx_bcast_packets.low) > TG3_NUM_RDMA_CHANNELS)) {
sp               10932 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_octets, MAC_RX_STATS_OCTETS);
sp               10933 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_fragments, MAC_RX_STATS_FRAGMENTS);
sp               10934 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_ucast_packets, MAC_RX_STATS_UCAST);
sp               10935 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_mcast_packets, MAC_RX_STATS_MCAST);
sp               10936 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_bcast_packets, MAC_RX_STATS_BCAST);
sp               10937 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_fcs_errors, MAC_RX_STATS_FCS_ERRORS);
sp               10938 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_align_errors, MAC_RX_STATS_ALIGN_ERRORS);
sp               10939 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_xon_pause_rcvd, MAC_RX_STATS_XON_PAUSE_RECVD);
sp               10940 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_xoff_pause_rcvd, MAC_RX_STATS_XOFF_PAUSE_RECVD);
sp               10941 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_mac_ctrl_rcvd, MAC_RX_STATS_MAC_CTRL_RECVD);
sp               10942 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_xoff_entered, MAC_RX_STATS_XOFF_ENTERED);
sp               10943 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_frame_too_long_errors, MAC_RX_STATS_FRAME_TOO_LONG);
sp               10944 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_jabbers, MAC_RX_STATS_JABBERS);
sp               10945 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_undersize_packets, MAC_RX_STATS_UNDERSIZE);
sp               10947 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rxbds_empty, RCVLPC_NO_RCV_BD_CNT);
sp               10952 drivers/net/ethernet/broadcom/tg3.c 		TG3_STAT_ADD32(&sp->rx_discards, RCVLPC_IN_DISCARDS_CNT);
sp               10958 drivers/net/ethernet/broadcom/tg3.c 			sp->rx_discards.low += val;
sp               10959 drivers/net/ethernet/broadcom/tg3.c 			if (sp->rx_discards.low < val)
sp               10960 drivers/net/ethernet/broadcom/tg3.c 				sp->rx_discards.high += 1;
sp               10962 drivers/net/ethernet/broadcom/tg3.c 		sp->mbuf_lwm_thresh_hit = sp->rx_discards;
sp               10964 drivers/net/ethernet/broadcom/tg3.c 	TG3_STAT_ADD32(&sp->rx_errors, RCVLPC_IN_ERRORS_CNT);
sp                245 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c 	int sp = -1, dplx = -1, pause = 0;
sp                255 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c 		sp = G_PSSR_SPEED(status);
sp                256 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c 		if (sp == 0)
sp                257 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c 			sp = SPEED_10;
sp                258 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c 		else if (sp == 1)
sp                259 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c 			sp = SPEED_100;
sp                261 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c 			sp = SPEED_1000;
sp                266 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c 		*speed = sp;
sp                134 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 	int err, sp = -1, dplx = -1, pause = 0;
sp                157 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_1000;
sp                159 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_100;
sp                161 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_10;
sp                169 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 		sp = G_ACSR_SPEED(status);
sp                170 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 		if (sp == 0)
sp                171 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_10;
sp                172 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 		else if (sp == 1)
sp                173 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_100;
sp                175 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_1000;
sp                198 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 		*speed = sp;
sp                210 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 	int err, sp = -1, dplx = -1, pause = 0;
sp                233 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_1000;
sp                235 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_100;
sp                237 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_10;
sp                248 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_1000;
sp                251 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 			sp = SPEED_1000;
sp                266 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c 		*speed = sp;
sp                166 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 			   bool sp)
sp                240 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 		      (sp ? f->fs.nat_fport << 16 : 0), 1);
sp                338 drivers/net/ethernet/freescale/fman/fman_keygen.c static void keygen_write_sp(struct fman_kg_regs __iomem *regs, u32 sp, bool add)
sp                345 drivers/net/ethernet/freescale/fman/fman_keygen.c 		tmp |= sp;
sp                347 drivers/net/ethernet/freescale/fman/fman_keygen.c 		tmp &= ~sp;
sp                 89 drivers/net/ethernet/ibm/ehea/ehea_ethtool.c 	u32 sp;
sp                 92 drivers/net/ethernet/ibm/ehea/ehea_ethtool.c 		sp = EHEA_SPEED_AUTONEG;
sp                 99 drivers/net/ethernet/ibm/ehea/ehea_ethtool.c 			sp = H_SPEED_10M_F;
sp                101 drivers/net/ethernet/ibm/ehea/ehea_ethtool.c 			sp = H_SPEED_10M_H;
sp                106 drivers/net/ethernet/ibm/ehea/ehea_ethtool.c 			sp = H_SPEED_100M_F;
sp                108 drivers/net/ethernet/ibm/ehea/ehea_ethtool.c 			sp = H_SPEED_100M_H;
sp                113 drivers/net/ethernet/ibm/ehea/ehea_ethtool.c 			sp = H_SPEED_1G_F;
sp                120 drivers/net/ethernet/ibm/ehea/ehea_ethtool.c 			sp = H_SPEED_10G_F;
sp                133 drivers/net/ethernet/ibm/ehea/ehea_ethtool.c 	ret = ehea_set_portspeed(port, sp);
sp               1068 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	struct sec_path *sp;
sp               1071 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	sp = skb_sec_path(first->skb);
sp               1072 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	if (unlikely(!sp->len)) {
sp               1074 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 			   __func__, sp->len);
sp               1164 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	struct sec_path *sp;
sp               1204 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	sp = secpath_set(skb);
sp               1205 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	if (unlikely(!sp))
sp               1208 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	sp->xvec[sp->len++] = xs;
sp               1209 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	sp->olen++;
sp                453 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	struct sec_path *sp;
sp                457 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	sp = skb_sec_path(first->skb);
sp                458 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	if (unlikely(!sp->len)) {
sp                460 drivers/net/ethernet/intel/ixgbevf/ipsec.c 			   __func__, sp->len);
sp                551 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	struct sec_path *sp;
sp                591 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	sp = secpath_set(skb);
sp                592 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	if (unlikely(!sp))
sp                595 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	sp->xvec[sp->len++] = xs;
sp                596 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	sp->olen++;
sp                245 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	struct sec_path *sp;
sp                250 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	sp = skb_sec_path(skb);
sp                251 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	if (unlikely(sp->len != 1)) {
sp                298 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	struct sec_path *sp;
sp                301 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	sp = secpath_set(skb);
sp                302 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	if (unlikely(!sp)) {
sp                314 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	sp = skb_sec_path(skb);
sp                315 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	sp->xvec[sp->len++] = xs;
sp                316 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	sp->olen++;
sp                367 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	struct sec_path *sp = skb_sec_path(skb);
sp                370 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 	if (sp && sp->len) {
sp                371 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 		x = sp->xvec[0];
sp               1302 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 				       void *sp)
sp               1306 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 		return mlx5e_get_sw_stats64(dev, sp);
sp               1056 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 					   void *sp)
sp               1060 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 		return mlxsw_sp_port_get_sw_stats64(dev, sp);
sp                123 drivers/net/ethernet/neterion/s2io.c static inline int is_s2io_card_up(const struct s2io_nic *sp)
sp                125 drivers/net/ethernet/neterion/s2io.c 	return test_bit(__S2IO_STATE_CARD_UP, &sp->state);
sp                342 drivers/net/ethernet/neterion/s2io.c static void do_s2io_copy_mac_addr(struct s2io_nic *sp, int offset, u64 mac_addr)
sp                344 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[offset].mac_addr[5] = (u8) (mac_addr);
sp                345 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[offset].mac_addr[4] = (u8) (mac_addr >> 8);
sp                346 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[offset].mac_addr[3] = (u8) (mac_addr >> 16);
sp                347 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[offset].mac_addr[2] = (u8) (mac_addr >> 24);
sp                348 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[offset].mac_addr[1] = (u8) (mac_addr >> 32);
sp                349 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[offset].mac_addr[0] = (u8) (mac_addr >> 40);
sp                498 drivers/net/ethernet/neterion/s2io.c static inline void s2io_stop_all_tx_queue(struct s2io_nic *sp)
sp                500 drivers/net/ethernet/neterion/s2io.c 	if (!sp->config.multiq) {
sp                503 drivers/net/ethernet/neterion/s2io.c 		for (i = 0; i < sp->config.tx_fifo_num; i++)
sp                504 drivers/net/ethernet/neterion/s2io.c 			sp->mac_control.fifos[i].queue_state = FIFO_QUEUE_STOP;
sp                506 drivers/net/ethernet/neterion/s2io.c 	netif_tx_stop_all_queues(sp->dev);
sp                509 drivers/net/ethernet/neterion/s2io.c static inline void s2io_stop_tx_queue(struct s2io_nic *sp, int fifo_no)
sp                511 drivers/net/ethernet/neterion/s2io.c 	if (!sp->config.multiq)
sp                512 drivers/net/ethernet/neterion/s2io.c 		sp->mac_control.fifos[fifo_no].queue_state =
sp                515 drivers/net/ethernet/neterion/s2io.c 	netif_tx_stop_all_queues(sp->dev);
sp                518 drivers/net/ethernet/neterion/s2io.c static inline void s2io_start_all_tx_queue(struct s2io_nic *sp)
sp                520 drivers/net/ethernet/neterion/s2io.c 	if (!sp->config.multiq) {
sp                523 drivers/net/ethernet/neterion/s2io.c 		for (i = 0; i < sp->config.tx_fifo_num; i++)
sp                524 drivers/net/ethernet/neterion/s2io.c 			sp->mac_control.fifos[i].queue_state = FIFO_QUEUE_START;
sp                526 drivers/net/ethernet/neterion/s2io.c 	netif_tx_start_all_queues(sp->dev);
sp                529 drivers/net/ethernet/neterion/s2io.c static inline void s2io_wake_all_tx_queue(struct s2io_nic *sp)
sp                531 drivers/net/ethernet/neterion/s2io.c 	if (!sp->config.multiq) {
sp                534 drivers/net/ethernet/neterion/s2io.c 		for (i = 0; i < sp->config.tx_fifo_num; i++)
sp                535 drivers/net/ethernet/neterion/s2io.c 			sp->mac_control.fifos[i].queue_state = FIFO_QUEUE_START;
sp                537 drivers/net/ethernet/neterion/s2io.c 	netif_tx_wake_all_queues(sp->dev);
sp               2070 drivers/net/ethernet/neterion/s2io.c static int verify_pcc_quiescent(struct s2io_nic *sp, int flag)
sp               2073 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               2076 drivers/net/ethernet/neterion/s2io.c 	herc = (sp->device_type == XFRAME_II_DEVICE);
sp               2079 drivers/net/ethernet/neterion/s2io.c 		if ((!herc && (sp->pdev->revision >= 4)) || herc) {
sp               2087 drivers/net/ethernet/neterion/s2io.c 		if ((!herc && (sp->pdev->revision >= 4)) || herc) {
sp               2110 drivers/net/ethernet/neterion/s2io.c static int verify_xena_quiescence(struct s2io_nic *sp)
sp               2113 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               2115 drivers/net/ethernet/neterion/s2io.c 	mode = s2io_verify_pci_mode(sp);
sp               2156 drivers/net/ethernet/neterion/s2io.c 	    sp->device_type == XFRAME_II_DEVICE &&
sp               2177 drivers/net/ethernet/neterion/s2io.c static void fix_mac_address(struct s2io_nic *sp)
sp               2179 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               2651 drivers/net/ethernet/neterion/s2io.c static void free_rxd_blk(struct s2io_nic *sp, int ring_no, int blk)
sp               2653 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               2659 drivers/net/ethernet/neterion/s2io.c 	struct mac_info *mac_control = &sp->mac_control;
sp               2663 drivers/net/ethernet/neterion/s2io.c 	for (j = 0 ; j < rxd_count[sp->rxd_mode]; j++) {
sp               2669 drivers/net/ethernet/neterion/s2io.c 		if (sp->rxd_mode == RXD_MODE_1) {
sp               2671 drivers/net/ethernet/neterion/s2io.c 			pci_unmap_single(sp->pdev,
sp               2678 drivers/net/ethernet/neterion/s2io.c 		} else if (sp->rxd_mode == RXD_MODE_3B) {
sp               2680 drivers/net/ethernet/neterion/s2io.c 			pci_unmap_single(sp->pdev,
sp               2684 drivers/net/ethernet/neterion/s2io.c 			pci_unmap_single(sp->pdev,
sp               2688 drivers/net/ethernet/neterion/s2io.c 			pci_unmap_single(sp->pdev,
sp               2709 drivers/net/ethernet/neterion/s2io.c static void free_rx_buffers(struct s2io_nic *sp)
sp               2711 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               2713 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               2714 drivers/net/ethernet/neterion/s2io.c 	struct mac_info *mac_control = &sp->mac_control;
sp               2720 drivers/net/ethernet/neterion/s2io.c 			free_rxd_blk(sp, i, blk);
sp               3085 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               3086 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               3131 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               3132 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               3233 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               3234 drivers/net/ethernet/neterion/s2io.c 	struct stat_block *stats = sp->mac_control.stats_info;
sp               3391 drivers/net/ethernet/neterion/s2io.c static void s2io_reset(struct s2io_nic *sp)
sp               3393 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               3404 drivers/net/ethernet/neterion/s2io.c 		  __func__, pci_name(sp->pdev));
sp               3407 drivers/net/ethernet/neterion/s2io.c 	pci_read_config_word(sp->pdev, PCIX_COMMAND_REGISTER, &(pci_cmd));
sp               3411 drivers/net/ethernet/neterion/s2io.c 	if (strstr(sp->product_name, "CX4"))
sp               3417 drivers/net/ethernet/neterion/s2io.c 		pci_restore_state(sp->pdev);
sp               3418 drivers/net/ethernet/neterion/s2io.c 		pci_save_state(sp->pdev);
sp               3419 drivers/net/ethernet/neterion/s2io.c 		pci_read_config_word(sp->pdev, 0x2, &val16);
sp               3428 drivers/net/ethernet/neterion/s2io.c 	pci_write_config_word(sp->pdev, PCIX_COMMAND_REGISTER, pci_cmd);
sp               3430 drivers/net/ethernet/neterion/s2io.c 	s2io_init_pci(sp);
sp               3433 drivers/net/ethernet/neterion/s2io.c 	s2io_set_swapper(sp);
sp               3436 drivers/net/ethernet/neterion/s2io.c 	do_s2io_restore_unicast_mc(sp);
sp               3439 drivers/net/ethernet/neterion/s2io.c 	restore_xmsi_data(sp);
sp               3442 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_II_DEVICE) {
sp               3444 drivers/net/ethernet/neterion/s2io.c 		pci_write_config_word(sp->pdev, PCI_STATUS, 0x8000);
sp               3447 drivers/net/ethernet/neterion/s2io.c 		pci_write_config_dword(sp->pdev, 0x68, 0x7C);
sp               3454 drivers/net/ethernet/neterion/s2io.c 	memset(&sp->stats, 0, sizeof(struct net_device_stats));
sp               3456 drivers/net/ethernet/neterion/s2io.c 	stats = sp->mac_control.stats_info;
sp               3482 drivers/net/ethernet/neterion/s2io.c 	subid = sp->pdev->subsystem_device;
sp               3484 drivers/net/ethernet/neterion/s2io.c 	    (sp->device_type == XFRAME_I_DEVICE)) {
sp               3496 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_II_DEVICE) {
sp               3501 drivers/net/ethernet/neterion/s2io.c 	sp->device_enabled_once = false;
sp               3514 drivers/net/ethernet/neterion/s2io.c static int s2io_set_swapper(struct s2io_nic *sp)
sp               3516 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               3517 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               3600 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type == INTA)
sp               3624 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type == INTA)
sp               3803 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = dev_id;
sp               3805 drivers/net/ethernet/neterion/s2io.c 	sp->msi_detected = 1;
sp               3806 drivers/net/ethernet/neterion/s2io.c 	wake_up(&sp->msi_wait);
sp               3812 drivers/net/ethernet/neterion/s2io.c static int s2io_test_msi(struct s2io_nic *sp)
sp               3814 drivers/net/ethernet/neterion/s2io.c 	struct pci_dev *pdev = sp->pdev;
sp               3815 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               3819 drivers/net/ethernet/neterion/s2io.c 	err = request_irq(sp->entries[1].vector, s2io_test_intr, 0,
sp               3820 drivers/net/ethernet/neterion/s2io.c 			  sp->name, sp);
sp               3823 drivers/net/ethernet/neterion/s2io.c 			  sp->dev->name, pci_name(pdev), pdev->irq);
sp               3827 drivers/net/ethernet/neterion/s2io.c 	init_waitqueue_head(&sp->msi_wait);
sp               3828 drivers/net/ethernet/neterion/s2io.c 	sp->msi_detected = 0;
sp               3836 drivers/net/ethernet/neterion/s2io.c 	wait_event_timeout(sp->msi_wait, sp->msi_detected, HZ/10);
sp               3838 drivers/net/ethernet/neterion/s2io.c 	if (!sp->msi_detected) {
sp               3842 drivers/net/ethernet/neterion/s2io.c 			  sp->dev->name, pci_name(pdev));
sp               3847 drivers/net/ethernet/neterion/s2io.c 	free_irq(sp->entries[1].vector, sp);
sp               3854 drivers/net/ethernet/neterion/s2io.c static void remove_msix_isr(struct s2io_nic *sp)
sp               3859 drivers/net/ethernet/neterion/s2io.c 	for (i = 0; i < sp->num_entries; i++) {
sp               3860 drivers/net/ethernet/neterion/s2io.c 		if (sp->s2io_entries[i].in_use == MSIX_REGISTERED_SUCCESS) {
sp               3861 drivers/net/ethernet/neterion/s2io.c 			int vector = sp->entries[i].vector;
sp               3862 drivers/net/ethernet/neterion/s2io.c 			void *arg = sp->s2io_entries[i].arg;
sp               3867 drivers/net/ethernet/neterion/s2io.c 	kfree(sp->entries);
sp               3868 drivers/net/ethernet/neterion/s2io.c 	kfree(sp->s2io_entries);
sp               3869 drivers/net/ethernet/neterion/s2io.c 	sp->entries = NULL;
sp               3870 drivers/net/ethernet/neterion/s2io.c 	sp->s2io_entries = NULL;
sp               3872 drivers/net/ethernet/neterion/s2io.c 	pci_read_config_word(sp->pdev, 0x42, &msi_control);
sp               3874 drivers/net/ethernet/neterion/s2io.c 	pci_write_config_word(sp->pdev, 0x42, msi_control);
sp               3876 drivers/net/ethernet/neterion/s2io.c 	pci_disable_msix(sp->pdev);
sp               3879 drivers/net/ethernet/neterion/s2io.c static void remove_inta_isr(struct s2io_nic *sp)
sp               3881 drivers/net/ethernet/neterion/s2io.c 	free_irq(sp->pdev->irq, sp->dev);
sp               3902 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               3903 drivers/net/ethernet/neterion/s2io.c 	struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;
sp               3911 drivers/net/ethernet/neterion/s2io.c 	sp->last_link_state = 0;
sp               3914 drivers/net/ethernet/neterion/s2io.c 	err = s2io_card_up(sp);
sp               3923 drivers/net/ethernet/neterion/s2io.c 		s2io_card_down(sp);
sp               3927 drivers/net/ethernet/neterion/s2io.c 	s2io_start_all_tx_queue(sp);
sp               3931 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type == MSI_X) {
sp               3932 drivers/net/ethernet/neterion/s2io.c 		if (sp->entries) {
sp               3933 drivers/net/ethernet/neterion/s2io.c 			kfree(sp->entries);
sp               3934 drivers/net/ethernet/neterion/s2io.c 			swstats->mem_freed += sp->num_entries *
sp               3937 drivers/net/ethernet/neterion/s2io.c 		if (sp->s2io_entries) {
sp               3938 drivers/net/ethernet/neterion/s2io.c 			kfree(sp->s2io_entries);
sp               3939 drivers/net/ethernet/neterion/s2io.c 			swstats->mem_freed += sp->num_entries *
sp               3961 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               3962 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               3969 drivers/net/ethernet/neterion/s2io.c 	if (!is_s2io_card_up(sp))
sp               3972 drivers/net/ethernet/neterion/s2io.c 	s2io_stop_all_tx_queue(sp);
sp               3975 drivers/net/ethernet/neterion/s2io.c 		tmp64 = do_s2io_read_unicast_mc(sp, offset);
sp               3977 drivers/net/ethernet/neterion/s2io.c 			do_s2io_delete_unicast_mc(sp, tmp64);
sp               3980 drivers/net/ethernet/neterion/s2io.c 	s2io_card_down(sp);
sp               4000 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               4010 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               4011 drivers/net/ethernet/neterion/s2io.c 	struct mac_info *mac_control = &sp->mac_control;
sp               4023 drivers/net/ethernet/neterion/s2io.c 	if (!is_s2io_card_up(sp)) {
sp               4033 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.tx_steering_type == TX_DEFAULT_STEERING) {
sp               4044 drivers/net/ethernet/neterion/s2io.c 					queue_len = sp->total_tcp_fifos;
sp               4047 drivers/net/ethernet/neterion/s2io.c 						sp->fifo_selector[queue_len - 1];
sp               4051 drivers/net/ethernet/neterion/s2io.c 					queue_len = sp->total_udp_fifos;
sp               4054 drivers/net/ethernet/neterion/s2io.c 						sp->fifo_selector[queue_len - 1];
sp               4057 drivers/net/ethernet/neterion/s2io.c 					queue += sp->udp_fifo_idx;
sp               4063 drivers/net/ethernet/neterion/s2io.c 	} else if (sp->config.tx_steering_type == TX_PRIORITY_STEERING)
sp               4071 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.multiq) {
sp               4092 drivers/net/ethernet/neterion/s2io.c 		s2io_stop_tx_queue(sp, fifo->fifo_no);
sp               4120 drivers/net/ethernet/neterion/s2io.c 	txdp->Buffer_Pointer = pci_map_single(sp->pdev, skb->data,
sp               4122 drivers/net/ethernet/neterion/s2io.c 	if (pci_dma_mapping_error(sp->pdev, txdp->Buffer_Pointer))
sp               4136 drivers/net/ethernet/neterion/s2io.c 		txdp->Buffer_Pointer = (u64)skb_frag_dma_map(&sp->pdev->dev,
sp               4166 drivers/net/ethernet/neterion/s2io.c 		s2io_stop_tx_queue(sp, fifo->fifo_no);
sp               4171 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type == MSI_X)
sp               4178 drivers/net/ethernet/neterion/s2io.c 	s2io_stop_tx_queue(sp, fifo->fifo_no);
sp               4188 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = from_timer(sp, t, alarm_timer);
sp               4189 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               4192 drivers/net/ethernet/neterion/s2io.c 	mod_timer(&sp->alarm_timer, jiffies + HZ / 2);
sp               4198 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = ring->nic;
sp               4199 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               4201 drivers/net/ethernet/neterion/s2io.c 	if (unlikely(!is_s2io_card_up(sp)))
sp               4204 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.napi) {
sp               4216 drivers/net/ethernet/neterion/s2io.c 		s2io_chk_rx_buffers(sp, ring);
sp               4226 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = fifos->nic;
sp               4227 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               4228 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config  = &sp->config;
sp               4231 drivers/net/ethernet/neterion/s2io.c 	if (unlikely(!is_s2io_card_up(sp)))
sp               4243 drivers/net/ethernet/neterion/s2io.c 			s2io_txpic_intr_handle(sp);
sp               4251 drivers/net/ethernet/neterion/s2io.c 		writeq(sp->general_int_mask, &bar0->general_int_mask);
sp               4259 drivers/net/ethernet/neterion/s2io.c static void s2io_txpic_intr_handle(struct s2io_nic *sp)
sp               4261 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               4288 drivers/net/ethernet/neterion/s2io.c 			if (!sp->device_enabled_once)
sp               4289 drivers/net/ethernet/neterion/s2io.c 				sp->device_enabled_once = 1;
sp               4291 drivers/net/ethernet/neterion/s2io.c 			s2io_link(sp, LINK_UP);
sp               4303 drivers/net/ethernet/neterion/s2io.c 			s2io_link(sp, LINK_DOWN);
sp               4354 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               4355 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               4359 drivers/net/ethernet/neterion/s2io.c 	struct swStat *sw_stat = &sp->mac_control.stats_info->sw_stat;
sp               4360 drivers/net/ethernet/neterion/s2io.c 	struct xpakStat *stats = &sp->mac_control.stats_info->xpak_stat;
sp               4362 drivers/net/ethernet/neterion/s2io.c 	if (!is_s2io_card_up(sp))
sp               4365 drivers/net/ethernet/neterion/s2io.c 	if (pci_channel_offline(sp->pdev))
sp               4382 drivers/net/ethernet/neterion/s2io.c 	if (s2io_link_fault_indication(sp) == MAC_RMAC_ERR_TIMER) {
sp               4386 drivers/net/ethernet/neterion/s2io.c 			schedule_work(&sp->set_link_task);
sp               4400 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_II_DEVICE) {
sp               4619 drivers/net/ethernet/neterion/s2io.c 				if (sp->device_type != XFRAME_II_DEVICE) {
sp               4635 drivers/net/ethernet/neterion/s2io.c 	s2io_stop_all_tx_queue(sp);
sp               4636 drivers/net/ethernet/neterion/s2io.c 	schedule_work(&sp->rst_timer_task);
sp               4656 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               4657 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               4664 drivers/net/ethernet/neterion/s2io.c 	if (pci_channel_offline(sp->pdev))
sp               4667 drivers/net/ethernet/neterion/s2io.c 	if (!is_s2io_card_up(sp))
sp               4670 drivers/net/ethernet/neterion/s2io.c 	config = &sp->config;
sp               4671 drivers/net/ethernet/neterion/s2io.c 	mac_control = &sp->mac_control;
sp               4691 drivers/net/ethernet/neterion/s2io.c 				napi_schedule(&sp->napi);
sp               4724 drivers/net/ethernet/neterion/s2io.c 			s2io_txpic_intr_handle(sp);
sp               4733 drivers/net/ethernet/neterion/s2io.c 				s2io_chk_rx_buffers(sp, ring);
sp               4736 drivers/net/ethernet/neterion/s2io.c 		writeq(sp->general_int_mask, &bar0->general_int_mask);
sp               4752 drivers/net/ethernet/neterion/s2io.c static void s2io_updt_stats(struct s2io_nic *sp)
sp               4754 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               4758 drivers/net/ethernet/neterion/s2io.c 	if (is_s2io_card_up(sp)) {
sp               4786 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               4787 drivers/net/ethernet/neterion/s2io.c 	struct mac_info *mac_control = &sp->mac_control;
sp               4792 drivers/net/ethernet/neterion/s2io.c 	s2io_updt_stats(sp);
sp               4802 drivers/net/ethernet/neterion/s2io.c 		le32_to_cpu(stats->rmac_vld_frms)) - sp->stats.rx_packets;
sp               4803 drivers/net/ethernet/neterion/s2io.c 	sp->stats.rx_packets += delta;
sp               4807 drivers/net/ethernet/neterion/s2io.c 		le32_to_cpu(stats->tmac_frms)) - sp->stats.tx_packets;
sp               4808 drivers/net/ethernet/neterion/s2io.c 	sp->stats.tx_packets += delta;
sp               4812 drivers/net/ethernet/neterion/s2io.c 		le32_to_cpu(stats->rmac_data_octets)) - sp->stats.rx_bytes;
sp               4813 drivers/net/ethernet/neterion/s2io.c 	sp->stats.rx_bytes += delta;
sp               4817 drivers/net/ethernet/neterion/s2io.c 		le32_to_cpu(stats->tmac_data_octets)) - sp->stats.tx_bytes;
sp               4818 drivers/net/ethernet/neterion/s2io.c 	sp->stats.tx_bytes += delta;
sp               4821 drivers/net/ethernet/neterion/s2io.c 	delta = le64_to_cpu(stats->rmac_drop_frms) - sp->stats.rx_errors;
sp               4822 drivers/net/ethernet/neterion/s2io.c 	sp->stats.rx_errors += delta;
sp               4826 drivers/net/ethernet/neterion/s2io.c 		le32_to_cpu(stats->tmac_any_err_frms)) - sp->stats.tx_errors;
sp               4827 drivers/net/ethernet/neterion/s2io.c 	sp->stats.tx_errors += delta;
sp               4830 drivers/net/ethernet/neterion/s2io.c 	delta = le64_to_cpu(stats->rmac_drop_frms) - sp->stats.rx_dropped;
sp               4831 drivers/net/ethernet/neterion/s2io.c 	sp->stats.rx_dropped += delta;
sp               4834 drivers/net/ethernet/neterion/s2io.c 	delta = le64_to_cpu(stats->tmac_drop_frms) - sp->stats.tx_dropped;
sp               4835 drivers/net/ethernet/neterion/s2io.c 	sp->stats.tx_dropped += delta;
sp               4846 drivers/net/ethernet/neterion/s2io.c 	delta -= sp->stats.multicast;
sp               4847 drivers/net/ethernet/neterion/s2io.c 	sp->stats.multicast += delta;
sp               4852 drivers/net/ethernet/neterion/s2io.c 		le64_to_cpu(stats->rmac_long_frms) - sp->stats.rx_length_errors;
sp               4853 drivers/net/ethernet/neterion/s2io.c 	sp->stats.rx_length_errors += delta;
sp               4856 drivers/net/ethernet/neterion/s2io.c 	delta = le64_to_cpu(stats->rmac_fcs_err_frms) - sp->stats.rx_crc_errors;
sp               4857 drivers/net/ethernet/neterion/s2io.c 	sp->stats.rx_crc_errors += delta;
sp               4880 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               4881 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               4886 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               4888 drivers/net/ethernet/neterion/s2io.c 	if ((dev->flags & IFF_ALLMULTI) && (!sp->m_cast_flg)) {
sp               4903 drivers/net/ethernet/neterion/s2io.c 		sp->m_cast_flg = 1;
sp               4904 drivers/net/ethernet/neterion/s2io.c 		sp->all_multi_pos = config->max_mc_addr - 1;
sp               4905 drivers/net/ethernet/neterion/s2io.c 	} else if ((dev->flags & IFF_ALLMULTI) && (sp->m_cast_flg)) {
sp               4913 drivers/net/ethernet/neterion/s2io.c 			RMAC_ADDR_CMD_MEM_OFFSET(sp->all_multi_pos);
sp               4920 drivers/net/ethernet/neterion/s2io.c 		sp->m_cast_flg = 0;
sp               4921 drivers/net/ethernet/neterion/s2io.c 		sp->all_multi_pos = 0;
sp               4924 drivers/net/ethernet/neterion/s2io.c 	if ((dev->flags & IFF_PROMISC) && (!sp->promisc_flg)) {
sp               4939 drivers/net/ethernet/neterion/s2io.c 			sp->vlan_strip_flag = 0;
sp               4943 drivers/net/ethernet/neterion/s2io.c 		sp->promisc_flg = 1;
sp               4946 drivers/net/ethernet/neterion/s2io.c 	} else if (!(dev->flags & IFF_PROMISC) && (sp->promisc_flg)) {
sp               4961 drivers/net/ethernet/neterion/s2io.c 			sp->vlan_strip_flag = 1;
sp               4965 drivers/net/ethernet/neterion/s2io.c 		sp->promisc_flg = 0;
sp               4970 drivers/net/ethernet/neterion/s2io.c 	if ((!sp->m_cast_flg) && netdev_mc_count(dev)) {
sp               4980 drivers/net/ethernet/neterion/s2io.c 		prev_cnt = sp->mc_addr_count;
sp               4981 drivers/net/ethernet/neterion/s2io.c 		sp->mc_addr_count = netdev_mc_count(dev);
sp               5042 drivers/net/ethernet/neterion/s2io.c static void do_s2io_store_unicast_mc(struct s2io_nic *sp)
sp               5046 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               5050 drivers/net/ethernet/neterion/s2io.c 		mac_addr = do_s2io_read_unicast_mc(sp, offset);
sp               5054 drivers/net/ethernet/neterion/s2io.c 		do_s2io_copy_mac_addr(sp, offset, mac_addr);
sp               5059 drivers/net/ethernet/neterion/s2io.c static void do_s2io_restore_unicast_mc(struct s2io_nic *sp)
sp               5062 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               5065 drivers/net/ethernet/neterion/s2io.c 		do_s2io_prog_unicast(sp->dev,
sp               5066 drivers/net/ethernet/neterion/s2io.c 				     sp->def_mac_addr[offset].mac_addr);
sp               5071 drivers/net/ethernet/neterion/s2io.c 		do_s2io_add_mc(sp, sp->def_mac_addr[offset].mac_addr);
sp               5075 drivers/net/ethernet/neterion/s2io.c static int do_s2io_add_mc(struct s2io_nic *sp, u8 *addr)
sp               5079 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               5091 drivers/net/ethernet/neterion/s2io.c 		tmp64 = do_s2io_read_unicast_mc(sp, i);
sp               5104 drivers/net/ethernet/neterion/s2io.c 	do_s2io_copy_mac_addr(sp, i, mac_addr);
sp               5106 drivers/net/ethernet/neterion/s2io.c 	return do_s2io_add_mac(sp, mac_addr, i);
sp               5110 drivers/net/ethernet/neterion/s2io.c static int do_s2io_add_mac(struct s2io_nic *sp, u64 addr, int off)
sp               5113 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               5132 drivers/net/ethernet/neterion/s2io.c static int do_s2io_delete_unicast_mc(struct s2io_nic *sp, u64 addr)
sp               5136 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               5140 drivers/net/ethernet/neterion/s2io.c 		tmp64 = do_s2io_read_unicast_mc(sp, offset);
sp               5143 drivers/net/ethernet/neterion/s2io.c 			if (do_s2io_add_mac(sp, dis_addr, offset) ==  FAILURE)
sp               5146 drivers/net/ethernet/neterion/s2io.c 			do_s2io_store_unicast_mc(sp);
sp               5156 drivers/net/ethernet/neterion/s2io.c static u64 do_s2io_read_unicast_mc(struct s2io_nic *sp, int offset)
sp               5159 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               5206 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5210 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               5221 drivers/net/ethernet/neterion/s2io.c 		perm_addr |= sp->def_mac_addr[0].mac_addr[i];
sp               5230 drivers/net/ethernet/neterion/s2io.c 		tmp64 = do_s2io_read_unicast_mc(sp, i);
sp               5246 drivers/net/ethernet/neterion/s2io.c 	do_s2io_copy_mac_addr(sp, i, mac_addr);
sp               5248 drivers/net/ethernet/neterion/s2io.c 	return do_s2io_add_mac(sp, mac_addr, i);
sp               5268 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5274 drivers/net/ethernet/neterion/s2io.c 		s2io_close(sp->dev);
sp               5275 drivers/net/ethernet/neterion/s2io.c 		s2io_open(sp->dev);
sp               5297 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5309 drivers/net/ethernet/neterion/s2io.c 	if (netif_carrier_ok(sp->dev)) {
sp               5336 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5340 drivers/net/ethernet/neterion/s2io.c 	strlcpy(info->bus_info, pci_name(sp->pdev), sizeof(info->bus_info));
sp               5363 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5366 drivers/net/ethernet/neterion/s2io.c 	regs->version = sp->pdev->subsystem_device;
sp               5369 drivers/net/ethernet/neterion/s2io.c 		reg = readq(sp->bar0 + i);
sp               5377 drivers/net/ethernet/neterion/s2io.c static void s2io_set_led(struct s2io_nic *sp, bool on)
sp               5379 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               5380 drivers/net/ethernet/neterion/s2io.c 	u16 subid = sp->pdev->subsystem_device;
sp               5383 drivers/net/ethernet/neterion/s2io.c 	if ((sp->device_type == XFRAME_II_DEVICE) ||
sp               5419 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5420 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               5421 drivers/net/ethernet/neterion/s2io.c 	u16 subid = sp->pdev->subsystem_device;
sp               5423 drivers/net/ethernet/neterion/s2io.c 	if ((sp->device_type == XFRAME_I_DEVICE) && ((subid & 0xFF) < 0x07)) {
sp               5433 drivers/net/ethernet/neterion/s2io.c 		sp->adapt_ctrl_org = readq(&bar0->gpio_control);
sp               5437 drivers/net/ethernet/neterion/s2io.c 		s2io_set_led(sp, true);
sp               5441 drivers/net/ethernet/neterion/s2io.c 		s2io_set_led(sp, false);
sp               5445 drivers/net/ethernet/neterion/s2io.c 		if (CARDS_WITH_FAULTY_LINK_INDICATORS(sp->device_type, subid))
sp               5446 drivers/net/ethernet/neterion/s2io.c 			writeq(sp->adapt_ctrl_org, &bar0->gpio_control);
sp               5455 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5458 drivers/net/ethernet/neterion/s2io.c 	if (sp->rxd_mode == RXD_MODE_1) {
sp               5468 drivers/net/ethernet/neterion/s2io.c 	for (i = 0; i < sp->config.rx_ring_num; i++)
sp               5469 drivers/net/ethernet/neterion/s2io.c 		rx_desc_count += sp->config.rx_cfg[i].num_rxd;
sp               5473 drivers/net/ethernet/neterion/s2io.c 	for (i = 0; i < sp->config.tx_fifo_num; i++)
sp               5474 drivers/net/ethernet/neterion/s2io.c 		tx_desc_count += sp->config.tx_cfg[i].fifo_len;
sp               5476 drivers/net/ethernet/neterion/s2io.c 	DBG_PRINT(INFO_DBG, "max txds: %d\n", sp->config.max_txds);
sp               5493 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5494 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               5520 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5521 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               5553 drivers/net/ethernet/neterion/s2io.c static int read_eeprom(struct s2io_nic *sp, int off, u64 *data)
sp               5558 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               5560 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_I_DEVICE) {
sp               5580 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_II_DEVICE) {
sp               5620 drivers/net/ethernet/neterion/s2io.c static int write_eeprom(struct s2io_nic *sp, int off, u64 data, int cnt)
sp               5624 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               5626 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_I_DEVICE) {
sp               5646 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_II_DEVICE) {
sp               5761 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5763 drivers/net/ethernet/neterion/s2io.c 	eeprom->magic = sp->pdev->vendor | (sp->pdev->device << 16);
sp               5769 drivers/net/ethernet/neterion/s2io.c 		if (read_eeprom(sp, (eeprom->offset + i), &data)) {
sp               5799 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               5801 drivers/net/ethernet/neterion/s2io.c 	if (eeprom->magic != (sp->pdev->vendor | (sp->pdev->device << 16))) {
sp               5805 drivers/net/ethernet/neterion/s2io.c 			  (sp->pdev->vendor | (sp->pdev->device << 16)),
sp               5817 drivers/net/ethernet/neterion/s2io.c 		if (write_eeprom(sp, (eeprom->offset + cnt), valid, 0)) {
sp               5843 drivers/net/ethernet/neterion/s2io.c static int s2io_register_test(struct s2io_nic *sp, uint64_t *data)
sp               5845 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               5862 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_II_DEVICE)
sp               5910 drivers/net/ethernet/neterion/s2io.c static int s2io_eeprom_test(struct s2io_nic *sp, uint64_t *data)
sp               5915 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               5921 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_I_DEVICE)
sp               5922 drivers/net/ethernet/neterion/s2io.c 		if (!write_eeprom(sp, 0, 0, 3))
sp               5926 drivers/net/ethernet/neterion/s2io.c 	if (!read_eeprom(sp, 0x4F0, &org_4F0))
sp               5928 drivers/net/ethernet/neterion/s2io.c 	if (!read_eeprom(sp, 0x7F0, &org_7F0))
sp               5932 drivers/net/ethernet/neterion/s2io.c 	if (write_eeprom(sp, 0x4F0, 0x012345, 3))
sp               5934 drivers/net/ethernet/neterion/s2io.c 	if (read_eeprom(sp, 0x4F0, &ret_data))
sp               5946 drivers/net/ethernet/neterion/s2io.c 	write_eeprom(sp, 0x4F0, 0xFFFFFF, 3);
sp               5949 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_I_DEVICE)
sp               5950 drivers/net/ethernet/neterion/s2io.c 		if (!write_eeprom(sp, 0x07C, 0, 3))
sp               5954 drivers/net/ethernet/neterion/s2io.c 	if (write_eeprom(sp, 0x7F0, 0x012345, 3))
sp               5956 drivers/net/ethernet/neterion/s2io.c 	if (read_eeprom(sp, 0x7F0, &ret_data))
sp               5968 drivers/net/ethernet/neterion/s2io.c 	write_eeprom(sp, 0x7F0, 0xFFFFFF, 3);
sp               5970 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_I_DEVICE) {
sp               5972 drivers/net/ethernet/neterion/s2io.c 		if (!write_eeprom(sp, 0x080, 0, 3))
sp               5976 drivers/net/ethernet/neterion/s2io.c 		if (!write_eeprom(sp, 0x0FC, 0, 3))
sp               5980 drivers/net/ethernet/neterion/s2io.c 		if (!write_eeprom(sp, 0x100, 0, 3))
sp               5984 drivers/net/ethernet/neterion/s2io.c 		if (!write_eeprom(sp, 0x4EC, 0, 3))
sp               5990 drivers/net/ethernet/neterion/s2io.c 		write_eeprom(sp, 0x4F0, org_4F0, 3);
sp               5992 drivers/net/ethernet/neterion/s2io.c 		write_eeprom(sp, 0x7F0, org_7F0, 3);
sp               6012 drivers/net/ethernet/neterion/s2io.c static int s2io_bist_test(struct s2io_nic *sp, uint64_t *data)
sp               6017 drivers/net/ethernet/neterion/s2io.c 	pci_read_config_byte(sp->pdev, PCI_BIST, &bist);
sp               6019 drivers/net/ethernet/neterion/s2io.c 	pci_write_config_word(sp->pdev, PCI_BIST, bist);
sp               6022 drivers/net/ethernet/neterion/s2io.c 		pci_read_config_byte(sp->pdev, PCI_BIST, &bist);
sp               6048 drivers/net/ethernet/neterion/s2io.c static int s2io_link_test(struct s2io_nic *sp, uint64_t *data)
sp               6050 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               6075 drivers/net/ethernet/neterion/s2io.c static int s2io_rldram_test(struct s2io_nic *sp, uint64_t *data)
sp               6077 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               6177 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               6178 drivers/net/ethernet/neterion/s2io.c 	int orig_state = netif_running(sp->dev);
sp               6183 drivers/net/ethernet/neterion/s2io.c 			s2io_close(sp->dev);
sp               6185 drivers/net/ethernet/neterion/s2io.c 		if (s2io_register_test(sp, &data[0]))
sp               6188 drivers/net/ethernet/neterion/s2io.c 		s2io_reset(sp);
sp               6190 drivers/net/ethernet/neterion/s2io.c 		if (s2io_rldram_test(sp, &data[3]))
sp               6193 drivers/net/ethernet/neterion/s2io.c 		s2io_reset(sp);
sp               6195 drivers/net/ethernet/neterion/s2io.c 		if (s2io_eeprom_test(sp, &data[1]))
sp               6198 drivers/net/ethernet/neterion/s2io.c 		if (s2io_bist_test(sp, &data[4]))
sp               6202 drivers/net/ethernet/neterion/s2io.c 			s2io_open(sp->dev);
sp               6217 drivers/net/ethernet/neterion/s2io.c 		if (s2io_link_test(sp, &data[2]))
sp               6232 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               6233 drivers/net/ethernet/neterion/s2io.c 	struct stat_block *stats = sp->mac_control.stats_info;
sp               6237 drivers/net/ethernet/neterion/s2io.c 	s2io_updt_stats(sp);
sp               6399 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_II_DEVICE) {
sp               6517 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               6523 drivers/net/ethernet/neterion/s2io.c 		switch (sp->device_type) {
sp               6540 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               6549 drivers/net/ethernet/neterion/s2io.c 		if (sp->device_type == XFRAME_II_DEVICE) {
sp               6563 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               6569 drivers/net/ethernet/neterion/s2io.c 		s2io_stop_all_tx_queue(sp);
sp               6570 drivers/net/ethernet/neterion/s2io.c 		s2io_card_down(sp);
sp               6572 drivers/net/ethernet/neterion/s2io.c 		rc = s2io_card_up(sp);
sp               6574 drivers/net/ethernet/neterion/s2io.c 			s2io_reset(sp);
sp               6576 drivers/net/ethernet/neterion/s2io.c 			s2io_start_all_tx_queue(sp);
sp               6634 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               6639 drivers/net/ethernet/neterion/s2io.c 		s2io_stop_all_tx_queue(sp);
sp               6640 drivers/net/ethernet/neterion/s2io.c 		s2io_card_down(sp);
sp               6641 drivers/net/ethernet/neterion/s2io.c 		ret = s2io_card_up(sp);
sp               6647 drivers/net/ethernet/neterion/s2io.c 		s2io_wake_all_tx_queue(sp);
sp               6649 drivers/net/ethernet/neterion/s2io.c 		struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               6741 drivers/net/ethernet/neterion/s2io.c static int set_rxd_buffer_pointer(struct s2io_nic *sp, struct RxD_t *rxdp,
sp               6746 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               6747 drivers/net/ethernet/neterion/s2io.c 	struct swStat *stats = &sp->mac_control.stats_info->sw_stat;
sp               6749 drivers/net/ethernet/neterion/s2io.c 	if ((sp->rxd_mode == RXD_MODE_1) && (rxdp->Host_Control == 0)) {
sp               6775 drivers/net/ethernet/neterion/s2io.c 				pci_map_single(sp->pdev, (*skb)->data,
sp               6778 drivers/net/ethernet/neterion/s2io.c 			if (pci_dma_mapping_error(sp->pdev, rxdp1->Buffer0_ptr))
sp               6782 drivers/net/ethernet/neterion/s2io.c 	} else if ((sp->rxd_mode == RXD_MODE_3B) && (rxdp->Host_Control == 0)) {
sp               6801 drivers/net/ethernet/neterion/s2io.c 				pci_map_single(sp->pdev, (*skb)->data,
sp               6804 drivers/net/ethernet/neterion/s2io.c 			if (pci_dma_mapping_error(sp->pdev, rxdp3->Buffer2_ptr))
sp               6807 drivers/net/ethernet/neterion/s2io.c 				pci_map_single(sp->pdev, ba->ba_0, BUF0_LEN,
sp               6809 drivers/net/ethernet/neterion/s2io.c 			if (pci_dma_mapping_error(sp->pdev,
sp               6811 drivers/net/ethernet/neterion/s2io.c 				pci_unmap_single(sp->pdev,
sp               6821 drivers/net/ethernet/neterion/s2io.c 				pci_map_single(sp->pdev, ba->ba_1, BUF1_LEN,
sp               6823 drivers/net/ethernet/neterion/s2io.c 			if (pci_dma_mapping_error(sp->pdev,
sp               6825 drivers/net/ethernet/neterion/s2io.c 				pci_unmap_single(sp->pdev,
sp               6828 drivers/net/ethernet/neterion/s2io.c 				pci_unmap_single(sp->pdev,
sp               6845 drivers/net/ethernet/neterion/s2io.c static void set_rxd_buffer_size(struct s2io_nic *sp, struct RxD_t *rxdp,
sp               6848 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               6849 drivers/net/ethernet/neterion/s2io.c 	if (sp->rxd_mode == RXD_MODE_1) {
sp               6851 drivers/net/ethernet/neterion/s2io.c 	} else if (sp->rxd_mode == RXD_MODE_3B) {
sp               6858 drivers/net/ethernet/neterion/s2io.c static  int rxd_owner_bit_reset(struct s2io_nic *sp)
sp               6861 drivers/net/ethernet/neterion/s2io.c 	struct config_param *config = &sp->config;
sp               6862 drivers/net/ethernet/neterion/s2io.c 	struct mac_info *mac_control = &sp->mac_control;
sp               6863 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               6872 drivers/net/ethernet/neterion/s2io.c 	if (sp->rxd_mode == RXD_MODE_1)
sp               6874 drivers/net/ethernet/neterion/s2io.c 	else if (sp->rxd_mode == RXD_MODE_3B)
sp               6881 drivers/net/ethernet/neterion/s2io.c 		blk_cnt = rx_cfg->num_rxd / (rxd_count[sp->rxd_mode] + 1);
sp               6884 drivers/net/ethernet/neterion/s2io.c 			for (k = 0; k < rxd_count[sp->rxd_mode]; k++) {
sp               6886 drivers/net/ethernet/neterion/s2io.c 				if (sp->rxd_mode == RXD_MODE_3B)
sp               6888 drivers/net/ethernet/neterion/s2io.c 				if (set_rxd_buffer_pointer(sp, rxdp, ba, &skb,
sp               6896 drivers/net/ethernet/neterion/s2io.c 				set_rxd_buffer_size(sp, rxdp, size);
sp               6907 drivers/net/ethernet/neterion/s2io.c static int s2io_add_isr(struct s2io_nic *sp)
sp               6910 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               6913 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type == MSI_X)
sp               6914 drivers/net/ethernet/neterion/s2io.c 		ret = s2io_enable_msi_x(sp);
sp               6917 drivers/net/ethernet/neterion/s2io.c 		sp->config.intr_type = INTA;
sp               6924 drivers/net/ethernet/neterion/s2io.c 	store_xmsi_data(sp);
sp               6927 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type == MSI_X) {
sp               6930 drivers/net/ethernet/neterion/s2io.c 		for (i = 0; i < sp->num_entries; i++) {
sp               6931 drivers/net/ethernet/neterion/s2io.c 			if (sp->s2io_entries[i].in_use == MSIX_FLG) {
sp               6932 drivers/net/ethernet/neterion/s2io.c 				if (sp->s2io_entries[i].type ==
sp               6934 drivers/net/ethernet/neterion/s2io.c 					snprintf(sp->desc[i],
sp               6935 drivers/net/ethernet/neterion/s2io.c 						sizeof(sp->desc[i]),
sp               6938 drivers/net/ethernet/neterion/s2io.c 					err = request_irq(sp->entries[i].vector,
sp               6941 drivers/net/ethernet/neterion/s2io.c 							  sp->desc[i],
sp               6942 drivers/net/ethernet/neterion/s2io.c 							  sp->s2io_entries[i].arg);
sp               6943 drivers/net/ethernet/neterion/s2io.c 				} else if (sp->s2io_entries[i].type ==
sp               6945 drivers/net/ethernet/neterion/s2io.c 					snprintf(sp->desc[i],
sp               6946 drivers/net/ethernet/neterion/s2io.c 						sizeof(sp->desc[i]),
sp               6949 drivers/net/ethernet/neterion/s2io.c 					err = request_irq(sp->entries[i].vector,
sp               6952 drivers/net/ethernet/neterion/s2io.c 							  sp->desc[i],
sp               6953 drivers/net/ethernet/neterion/s2io.c 							  sp->s2io_entries[i].arg);
sp               6957 drivers/net/ethernet/neterion/s2io.c 				if (!(sp->msix_info[i].addr &&
sp               6958 drivers/net/ethernet/neterion/s2io.c 				      sp->msix_info[i].data)) {
sp               6961 drivers/net/ethernet/neterion/s2io.c 						  sp->desc[i],
sp               6963 drivers/net/ethernet/neterion/s2io.c 						  sp->msix_info[i].addr,
sp               6965 drivers/net/ethernet/neterion/s2io.c 						  ntohl(sp->msix_info[i].data));
sp               6969 drivers/net/ethernet/neterion/s2io.c 					remove_msix_isr(sp);
sp               6978 drivers/net/ethernet/neterion/s2io.c 					sp->config.intr_type = INTA;
sp               6981 drivers/net/ethernet/neterion/s2io.c 				sp->s2io_entries[i].in_use =
sp               6991 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type == INTA) {
sp               6992 drivers/net/ethernet/neterion/s2io.c 		err = request_irq(sp->pdev->irq, s2io_isr, IRQF_SHARED,
sp               6993 drivers/net/ethernet/neterion/s2io.c 				  sp->name, dev);
sp               7003 drivers/net/ethernet/neterion/s2io.c static void s2io_rem_isr(struct s2io_nic *sp)
sp               7005 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type == MSI_X)
sp               7006 drivers/net/ethernet/neterion/s2io.c 		remove_msix_isr(sp);
sp               7008 drivers/net/ethernet/neterion/s2io.c 		remove_inta_isr(sp);
sp               7011 drivers/net/ethernet/neterion/s2io.c static void do_s2io_card_down(struct s2io_nic *sp, int do_io)
sp               7014 drivers/net/ethernet/neterion/s2io.c 	struct XENA_dev_config __iomem *bar0 = sp->bar0;
sp               7017 drivers/net/ethernet/neterion/s2io.c 	config = &sp->config;
sp               7019 drivers/net/ethernet/neterion/s2io.c 	if (!is_s2io_card_up(sp))
sp               7022 drivers/net/ethernet/neterion/s2io.c 	del_timer_sync(&sp->alarm_timer);
sp               7024 drivers/net/ethernet/neterion/s2io.c 	while (test_and_set_bit(__S2IO_STATE_LINK_TASK, &(sp->state)))
sp               7026 drivers/net/ethernet/neterion/s2io.c 	clear_bit(__S2IO_STATE_CARD_UP, &sp->state);
sp               7029 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.napi) {
sp               7032 drivers/net/ethernet/neterion/s2io.c 			for (; off < sp->config.rx_ring_num; off++)
sp               7033 drivers/net/ethernet/neterion/s2io.c 				napi_disable(&sp->mac_control.rings[off].napi);
sp               7036 drivers/net/ethernet/neterion/s2io.c 			napi_disable(&sp->napi);
sp               7041 drivers/net/ethernet/neterion/s2io.c 		stop_nic(sp);
sp               7043 drivers/net/ethernet/neterion/s2io.c 	s2io_rem_isr(sp);
sp               7046 drivers/net/ethernet/neterion/s2io.c 	s2io_link(sp, LINK_DOWN);
sp               7057 drivers/net/ethernet/neterion/s2io.c 		rxd_owner_bit_reset(sp);
sp               7060 drivers/net/ethernet/neterion/s2io.c 		if (verify_xena_quiescence(sp)) {
sp               7061 drivers/net/ethernet/neterion/s2io.c 			if (verify_pcc_quiescent(sp, sp->device_enabled_once))
sp               7075 drivers/net/ethernet/neterion/s2io.c 		s2io_reset(sp);
sp               7078 drivers/net/ethernet/neterion/s2io.c 	free_tx_buffers(sp);
sp               7081 drivers/net/ethernet/neterion/s2io.c 	free_rx_buffers(sp);
sp               7083 drivers/net/ethernet/neterion/s2io.c 	clear_bit(__S2IO_STATE_LINK_TASK, &(sp->state));
sp               7086 drivers/net/ethernet/neterion/s2io.c static void s2io_card_down(struct s2io_nic *sp)
sp               7088 drivers/net/ethernet/neterion/s2io.c 	do_s2io_card_down(sp, 1);
sp               7091 drivers/net/ethernet/neterion/s2io.c static int s2io_card_up(struct s2io_nic *sp)
sp               7096 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               7100 drivers/net/ethernet/neterion/s2io.c 	ret = init_nic(sp);
sp               7105 drivers/net/ethernet/neterion/s2io.c 			s2io_reset(sp);
sp               7113 drivers/net/ethernet/neterion/s2io.c 	config = &sp->config;
sp               7114 drivers/net/ethernet/neterion/s2io.c 	mac_control = &sp->mac_control;
sp               7121 drivers/net/ethernet/neterion/s2io.c 		ret = fill_rx_buffers(sp, ring, 1);
sp               7125 drivers/net/ethernet/neterion/s2io.c 			s2io_reset(sp);
sp               7126 drivers/net/ethernet/neterion/s2io.c 			free_rx_buffers(sp);
sp               7136 drivers/net/ethernet/neterion/s2io.c 			for (i = 0; i < sp->config.rx_ring_num; i++)
sp               7137 drivers/net/ethernet/neterion/s2io.c 				napi_enable(&sp->mac_control.rings[i].napi);
sp               7139 drivers/net/ethernet/neterion/s2io.c 			napi_enable(&sp->napi);
sp               7144 drivers/net/ethernet/neterion/s2io.c 	if (sp->promisc_flg)
sp               7145 drivers/net/ethernet/neterion/s2io.c 		sp->promisc_flg = 0;
sp               7146 drivers/net/ethernet/neterion/s2io.c 	if (sp->m_cast_flg) {
sp               7147 drivers/net/ethernet/neterion/s2io.c 		sp->m_cast_flg = 0;
sp               7148 drivers/net/ethernet/neterion/s2io.c 		sp->all_multi_pos = 0;
sp               7156 drivers/net/ethernet/neterion/s2io.c 		sp->lro_max_aggr_per_sess = ((1<<16) - 1) / dev->mtu;
sp               7158 drivers/net/ethernet/neterion/s2io.c 		if (lro_max_pkts < sp->lro_max_aggr_per_sess)
sp               7159 drivers/net/ethernet/neterion/s2io.c 			sp->lro_max_aggr_per_sess = lro_max_pkts;
sp               7163 drivers/net/ethernet/neterion/s2io.c 	if (start_nic(sp)) {
sp               7165 drivers/net/ethernet/neterion/s2io.c 		s2io_reset(sp);
sp               7166 drivers/net/ethernet/neterion/s2io.c 		free_rx_buffers(sp);
sp               7171 drivers/net/ethernet/neterion/s2io.c 	if (s2io_add_isr(sp) != 0) {
sp               7172 drivers/net/ethernet/neterion/s2io.c 		if (sp->config.intr_type == MSI_X)
sp               7173 drivers/net/ethernet/neterion/s2io.c 			s2io_rem_isr(sp);
sp               7174 drivers/net/ethernet/neterion/s2io.c 		s2io_reset(sp);
sp               7175 drivers/net/ethernet/neterion/s2io.c 		free_rx_buffers(sp);
sp               7179 drivers/net/ethernet/neterion/s2io.c 	timer_setup(&sp->alarm_timer, s2io_alarm_handle, 0);
sp               7180 drivers/net/ethernet/neterion/s2io.c 	mod_timer(&sp->alarm_timer, jiffies + HZ / 2);
sp               7182 drivers/net/ethernet/neterion/s2io.c 	set_bit(__S2IO_STATE_CARD_UP, &sp->state);
sp               7185 drivers/net/ethernet/neterion/s2io.c 	en_dis_err_alarms(sp, ENA_ALL_INTRS, ENABLE_INTRS);
sp               7186 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type != INTA) {
sp               7188 drivers/net/ethernet/neterion/s2io.c 		en_dis_able_nic_intrs(sp, interruptible, ENABLE_INTRS);
sp               7192 drivers/net/ethernet/neterion/s2io.c 		en_dis_able_nic_intrs(sp, interruptible, ENABLE_INTRS);
sp               7210 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = container_of(work, struct s2io_nic, rst_timer_task);
sp               7211 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               7218 drivers/net/ethernet/neterion/s2io.c 	s2io_card_down(sp);
sp               7219 drivers/net/ethernet/neterion/s2io.c 	if (s2io_card_up(sp)) {
sp               7222 drivers/net/ethernet/neterion/s2io.c 	s2io_wake_all_tx_queue(sp);
sp               7243 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               7244 drivers/net/ethernet/neterion/s2io.c 	struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;
sp               7248 drivers/net/ethernet/neterion/s2io.c 		schedule_work(&sp->rst_timer_task);
sp               7272 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = ring_data->nic;
sp               7281 drivers/net/ethernet/neterion/s2io.c 	struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;
sp               7349 drivers/net/ethernet/neterion/s2io.c 	if (sp->rxd_mode == RXD_MODE_1) {
sp               7353 drivers/net/ethernet/neterion/s2io.c 	} else if (sp->rxd_mode == RXD_MODE_3B) {
sp               7386 drivers/net/ethernet/neterion/s2io.c 							    rxdp, sp);
sp               7392 drivers/net/ethernet/neterion/s2io.c 					lro_append_pkt(sp, lro, skb, tcp_len);
sp               7395 drivers/net/ethernet/neterion/s2io.c 					lro_append_pkt(sp, lro, skb, tcp_len);
sp               7437 drivers/net/ethernet/neterion/s2io.c 	sp->mac_control.rings[ring_no].rx_bufs_left -= 1;
sp               7454 drivers/net/ethernet/neterion/s2io.c static void s2io_link(struct s2io_nic *sp, int link)
sp               7456 drivers/net/ethernet/neterion/s2io.c 	struct net_device *dev = sp->dev;
sp               7457 drivers/net/ethernet/neterion/s2io.c 	struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;
sp               7459 drivers/net/ethernet/neterion/s2io.c 	if (link != sp->last_link_state) {
sp               7460 drivers/net/ethernet/neterion/s2io.c 		init_tti(sp, link);
sp               7463 drivers/net/ethernet/neterion/s2io.c 			s2io_stop_all_tx_queue(sp);
sp               7467 drivers/net/ethernet/neterion/s2io.c 					jiffies - sp->start_time;
sp               7473 drivers/net/ethernet/neterion/s2io.c 					jiffies - sp->start_time;
sp               7476 drivers/net/ethernet/neterion/s2io.c 			s2io_wake_all_tx_queue(sp);
sp               7479 drivers/net/ethernet/neterion/s2io.c 	sp->last_link_state = link;
sp               7480 drivers/net/ethernet/neterion/s2io.c 	sp->start_time = jiffies;
sp               7494 drivers/net/ethernet/neterion/s2io.c static void s2io_init_pci(struct s2io_nic *sp)
sp               7499 drivers/net/ethernet/neterion/s2io.c 	pci_read_config_word(sp->pdev, PCIX_COMMAND_REGISTER,
sp               7501 drivers/net/ethernet/neterion/s2io.c 	pci_write_config_word(sp->pdev, PCIX_COMMAND_REGISTER,
sp               7503 drivers/net/ethernet/neterion/s2io.c 	pci_read_config_word(sp->pdev, PCIX_COMMAND_REGISTER,
sp               7507 drivers/net/ethernet/neterion/s2io.c 	pci_read_config_word(sp->pdev, PCI_COMMAND, &pci_cmd);
sp               7508 drivers/net/ethernet/neterion/s2io.c 	pci_write_config_word(sp->pdev, PCI_COMMAND,
sp               7510 drivers/net/ethernet/neterion/s2io.c 	pci_read_config_word(sp->pdev, PCI_COMMAND, &pci_cmd);
sp               7653 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp;
sp               7716 drivers/net/ethernet/neterion/s2io.c 	sp = netdev_priv(dev);
sp               7717 drivers/net/ethernet/neterion/s2io.c 	sp->dev = dev;
sp               7718 drivers/net/ethernet/neterion/s2io.c 	sp->pdev = pdev;
sp               7719 drivers/net/ethernet/neterion/s2io.c 	sp->high_dma_flag = dma_flag;
sp               7720 drivers/net/ethernet/neterion/s2io.c 	sp->device_enabled_once = false;
sp               7722 drivers/net/ethernet/neterion/s2io.c 		sp->rxd_mode = RXD_MODE_1;
sp               7724 drivers/net/ethernet/neterion/s2io.c 		sp->rxd_mode = RXD_MODE_3B;
sp               7726 drivers/net/ethernet/neterion/s2io.c 	sp->config.intr_type = dev_intr_type;
sp               7730 drivers/net/ethernet/neterion/s2io.c 		sp->device_type = XFRAME_II_DEVICE;
sp               7732 drivers/net/ethernet/neterion/s2io.c 		sp->device_type = XFRAME_I_DEVICE;
sp               7736 drivers/net/ethernet/neterion/s2io.c 	s2io_init_pci(sp);
sp               7745 drivers/net/ethernet/neterion/s2io.c 	config = &sp->config;
sp               7746 drivers/net/ethernet/neterion/s2io.c 	mac_control = &sp->mac_control;
sp               7760 drivers/net/ethernet/neterion/s2io.c 			sp->total_tcp_fifos = 1;
sp               7762 drivers/net/ethernet/neterion/s2io.c 			sp->total_tcp_fifos = config->tx_fifo_num - 1;
sp               7763 drivers/net/ethernet/neterion/s2io.c 		sp->udp_fifo_idx = config->tx_fifo_num - 1;
sp               7764 drivers/net/ethernet/neterion/s2io.c 		sp->total_udp_fifos = 1;
sp               7765 drivers/net/ethernet/neterion/s2io.c 		sp->other_fifo_idx = sp->total_tcp_fifos - 1;
sp               7767 drivers/net/ethernet/neterion/s2io.c 		sp->total_tcp_fifos = (tx_fifo_num - FIFO_UDP_MAX_NUM -
sp               7769 drivers/net/ethernet/neterion/s2io.c 		sp->udp_fifo_idx = sp->total_tcp_fifos;
sp               7770 drivers/net/ethernet/neterion/s2io.c 		sp->total_udp_fifos = FIFO_UDP_MAX_NUM;
sp               7771 drivers/net/ethernet/neterion/s2io.c 		sp->other_fifo_idx = sp->udp_fifo_idx + FIFO_UDP_MAX_NUM;
sp               7788 drivers/net/ethernet/neterion/s2io.c 		sp->fifo_selector[i] = fifo_selector[i];
sp               7810 drivers/net/ethernet/neterion/s2io.c 		rx_cfg->num_rxd = rx_ring_sz[i] * (rxd_count[sp->rxd_mode] + 1);
sp               7813 drivers/net/ethernet/neterion/s2io.c 		ring->rxd_mode = sp->rxd_mode;
sp               7814 drivers/net/ethernet/neterion/s2io.c 		ring->rxd_count = rxd_count[sp->rxd_mode];
sp               7815 drivers/net/ethernet/neterion/s2io.c 		ring->pdev = sp->pdev;
sp               7816 drivers/net/ethernet/neterion/s2io.c 		ring->dev = sp->dev;
sp               7833 drivers/net/ethernet/neterion/s2io.c 	if (init_shared_mem(sp)) {
sp               7839 drivers/net/ethernet/neterion/s2io.c 	sp->bar0 = pci_ioremap_bar(pdev, 0);
sp               7840 drivers/net/ethernet/neterion/s2io.c 	if (!sp->bar0) {
sp               7847 drivers/net/ethernet/neterion/s2io.c 	sp->bar1 = pci_ioremap_bar(pdev, 2);
sp               7848 drivers/net/ethernet/neterion/s2io.c 	if (!sp->bar1) {
sp               7857 drivers/net/ethernet/neterion/s2io.c 		mac_control->tx_FIFO_start[j] = sp->bar1 + (j * 0x00020000);
sp               7868 drivers/net/ethernet/neterion/s2io.c 	if (sp->high_dma_flag == true)
sp               7871 drivers/net/ethernet/neterion/s2io.c 	INIT_WORK(&sp->rst_timer_task, s2io_restart_nic);
sp               7872 drivers/net/ethernet/neterion/s2io.c 	INIT_WORK(&sp->set_link_task, s2io_set_link);
sp               7874 drivers/net/ethernet/neterion/s2io.c 	pci_save_state(sp->pdev);
sp               7877 drivers/net/ethernet/neterion/s2io.c 	if (s2io_set_swapper(sp)) {
sp               7885 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type & XFRAME_II_DEVICE) {
sp               7886 drivers/net/ethernet/neterion/s2io.c 		mode = s2io_verify_pci_mode(sp);
sp               7895 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.intr_type == MSI_X) {
sp               7896 drivers/net/ethernet/neterion/s2io.c 		sp->num_entries = config->rx_ring_num + 1;
sp               7897 drivers/net/ethernet/neterion/s2io.c 		ret = s2io_enable_msi_x(sp);
sp               7900 drivers/net/ethernet/neterion/s2io.c 			ret = s2io_test_msi(sp);
sp               7902 drivers/net/ethernet/neterion/s2io.c 			remove_msix_isr(sp);
sp               7908 drivers/net/ethernet/neterion/s2io.c 			sp->config.intr_type = INTA;
sp               7919 drivers/net/ethernet/neterion/s2io.c 		netif_napi_add(dev, &sp->napi, s2io_poll_inta, 64);
sp               7923 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type & XFRAME_I_DEVICE) {
sp               7928 drivers/net/ethernet/neterion/s2io.c 		fix_mac_address(sp);
sp               7929 drivers/net/ethernet/neterion/s2io.c 		s2io_reset(sp);
sp               7936 drivers/net/ethernet/neterion/s2io.c 	bar0 = sp->bar0;
sp               7947 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[0].mac_addr[3] = (u8) (mac_up);
sp               7948 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[0].mac_addr[2] = (u8) (mac_up >> 8);
sp               7949 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[0].mac_addr[1] = (u8) (mac_up >> 16);
sp               7950 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[0].mac_addr[0] = (u8) (mac_up >> 24);
sp               7951 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[0].mac_addr[5] = (u8) (mac_down >> 16);
sp               7952 drivers/net/ethernet/neterion/s2io.c 	sp->def_mac_addr[0].mac_addr[4] = (u8) (mac_down >> 24);
sp               7956 drivers/net/ethernet/neterion/s2io.c 	memcpy(dev->dev_addr, sp->def_mac_addr, ETH_ALEN);
sp               7959 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type == XFRAME_I_DEVICE) {
sp               7963 drivers/net/ethernet/neterion/s2io.c 	} else if (sp->device_type == XFRAME_II_DEVICE) {
sp               7974 drivers/net/ethernet/neterion/s2io.c 	do_s2io_store_unicast_mc(sp);
sp               7977 drivers/net/ethernet/neterion/s2io.c 	if ((sp->device_type == XFRAME_II_DEVICE) &&
sp               7979 drivers/net/ethernet/neterion/s2io.c 		sp->num_entries = config->rx_ring_num + 1;
sp               7982 drivers/net/ethernet/neterion/s2io.c 	store_xmsi_data(sp);
sp               7984 drivers/net/ethernet/neterion/s2io.c 	s2io_reset(sp);
sp               7990 drivers/net/ethernet/neterion/s2io.c 	sp->state = 0;
sp               7993 drivers/net/ethernet/neterion/s2io.c 	for (i = 0; i < sp->config.tx_fifo_num; i++) {
sp               8003 drivers/net/ethernet/neterion/s2io.c 	subid = sp->pdev->subsystem_device;
sp               8013 drivers/net/ethernet/neterion/s2io.c 	sp->rx_csum = 1;	/* Rx chksum verify enabled by default */
sp               8020 drivers/net/ethernet/neterion/s2io.c 	s2io_vpd_read(sp);
sp               8023 drivers/net/ethernet/neterion/s2io.c 		  sp->product_name, pdev->revision);
sp               8027 drivers/net/ethernet/neterion/s2io.c 	DBG_PRINT(ERR_DBG, "Serial number: %s\n", sp->serial_num);
sp               8028 drivers/net/ethernet/neterion/s2io.c 	if (sp->device_type & XFRAME_II_DEVICE) {
sp               8029 drivers/net/ethernet/neterion/s2io.c 		mode = s2io_print_pci_mode(sp);
sp               8036 drivers/net/ethernet/neterion/s2io.c 	switch (sp->rxd_mode) {
sp               8047 drivers/net/ethernet/neterion/s2io.c 	switch (sp->config.napi) {
sp               8057 drivers/net/ethernet/neterion/s2io.c 		  sp->config.tx_fifo_num);
sp               8060 drivers/net/ethernet/neterion/s2io.c 		  sp->config.rx_ring_num);
sp               8062 drivers/net/ethernet/neterion/s2io.c 	switch (sp->config.intr_type) {
sp               8070 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.multiq) {
sp               8071 drivers/net/ethernet/neterion/s2io.c 		for (i = 0; i < sp->config.tx_fifo_num; i++) {
sp               8082 drivers/net/ethernet/neterion/s2io.c 	switch (sp->config.tx_steering_type) {
sp               8101 drivers/net/ethernet/neterion/s2io.c 	snprintf(sp->name, sizeof(sp->name), "%s Neterion %s", dev->name,
sp               8102 drivers/net/ethernet/neterion/s2io.c 		 sp->product_name);
sp               8105 drivers/net/ethernet/neterion/s2io.c 		sp->vlan_strip_flag = 1;
sp               8107 drivers/net/ethernet/neterion/s2io.c 		sp->vlan_strip_flag = 0;
sp               8120 drivers/net/ethernet/neterion/s2io.c 	iounmap(sp->bar1);
sp               8122 drivers/net/ethernet/neterion/s2io.c 	iounmap(sp->bar0);
sp               8125 drivers/net/ethernet/neterion/s2io.c 	free_shared_mem(sp);
sp               8145 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp;
sp               8152 drivers/net/ethernet/neterion/s2io.c 	sp = netdev_priv(dev);
sp               8154 drivers/net/ethernet/neterion/s2io.c 	cancel_work_sync(&sp->rst_timer_task);
sp               8155 drivers/net/ethernet/neterion/s2io.c 	cancel_work_sync(&sp->set_link_task);
sp               8159 drivers/net/ethernet/neterion/s2io.c 	free_shared_mem(sp);
sp               8160 drivers/net/ethernet/neterion/s2io.c 	iounmap(sp->bar0);
sp               8161 drivers/net/ethernet/neterion/s2io.c 	iounmap(sp->bar1);
sp               8171 drivers/net/ethernet/neterion/s2io.c 				struct s2io_nic *sp)
sp               8190 drivers/net/ethernet/neterion/s2io.c 		if ((!sp->vlan_strip_flag) &&
sp               8251 drivers/net/ethernet/neterion/s2io.c static void update_L3L4_header(struct s2io_nic *sp, struct lro *lro)
sp               8255 drivers/net/ethernet/neterion/s2io.c 	struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;
sp               8362 drivers/net/ethernet/neterion/s2io.c 				 struct RxD_t *rxdp, struct s2io_nic *sp)
sp               8368 drivers/net/ethernet/neterion/s2io.c 	struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;
sp               8371 drivers/net/ethernet/neterion/s2io.c 				   rxdp, sp);
sp               8441 drivers/net/ethernet/neterion/s2io.c 		update_L3L4_header(sp, *lro);
sp               8445 drivers/net/ethernet/neterion/s2io.c 		if ((*lro)->sg_num == sp->lro_max_aggr_per_sess) {
sp               8446 drivers/net/ethernet/neterion/s2io.c 			update_L3L4_header(sp, *lro);
sp               8468 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(dev);
sp               8471 drivers/net/ethernet/neterion/s2io.c 	if (vlan_tag && sp->vlan_strip_flag)
sp               8473 drivers/net/ethernet/neterion/s2io.c 	if (sp->config.napi)
sp               8479 drivers/net/ethernet/neterion/s2io.c static void lro_append_pkt(struct s2io_nic *sp, struct lro *lro,
sp               8483 drivers/net/ethernet/neterion/s2io.c 	struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;
sp               8509 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(netdev);
sp               8518 drivers/net/ethernet/neterion/s2io.c 		do_s2io_card_down(sp, 0);
sp               8537 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(netdev);
sp               8545 drivers/net/ethernet/neterion/s2io.c 	s2io_reset(sp);
sp               8560 drivers/net/ethernet/neterion/s2io.c 	struct s2io_nic *sp = netdev_priv(netdev);
sp               8563 drivers/net/ethernet/neterion/s2io.c 		if (s2io_card_up(sp)) {
sp               8569 drivers/net/ethernet/neterion/s2io.c 			s2io_card_down(sp);
sp               1060 drivers/net/ethernet/neterion/s2io.h static int init_shared_mem(struct s2io_nic *sp);
sp               1061 drivers/net/ethernet/neterion/s2io.h static void free_shared_mem(struct s2io_nic *sp);
sp               1064 drivers/net/ethernet/neterion/s2io.h static void s2io_txpic_intr_handle(struct s2io_nic *sp);
sp               1071 drivers/net/ethernet/neterion/s2io.h static void s2io_link(struct s2io_nic * sp, int link);
sp               1072 drivers/net/ethernet/neterion/s2io.h static void s2io_reset(struct s2io_nic * sp);
sp               1075 drivers/net/ethernet/neterion/s2io.h static void s2io_init_pci(struct s2io_nic * sp);
sp               1083 drivers/net/ethernet/neterion/s2io.h static int verify_xena_quiescence(struct s2io_nic *sp);
sp               1086 drivers/net/ethernet/neterion/s2io.h static int s2io_set_swapper(struct s2io_nic * sp);
sp               1091 drivers/net/ethernet/neterion/s2io.h static int s2io_add_isr(struct s2io_nic * sp);
sp               1092 drivers/net/ethernet/neterion/s2io.h static void s2io_rem_isr(struct s2io_nic * sp);
sp               1095 drivers/net/ethernet/neterion/s2io.h static void do_s2io_store_unicast_mc(struct s2io_nic *sp);
sp               1096 drivers/net/ethernet/neterion/s2io.h static void do_s2io_restore_unicast_mc(struct s2io_nic *sp);
sp               1097 drivers/net/ethernet/neterion/s2io.h static u64 do_s2io_read_unicast_mc(struct s2io_nic *sp, int offset);
sp               1098 drivers/net/ethernet/neterion/s2io.h static int do_s2io_add_mc(struct s2io_nic *sp, u8 *addr);
sp               1099 drivers/net/ethernet/neterion/s2io.h static int do_s2io_add_mac(struct s2io_nic *sp, u64 addr, int offset);
sp               1100 drivers/net/ethernet/neterion/s2io.h static int do_s2io_delete_unicast_mc(struct s2io_nic *sp, u64 addr);
sp               1104 drivers/net/ethernet/neterion/s2io.h 	struct s2io_nic *sp);
sp               1107 drivers/net/ethernet/neterion/s2io.h static void update_L3L4_header(struct s2io_nic *sp, struct lro *lro);
sp               1108 drivers/net/ethernet/neterion/s2io.h static void lro_append_pkt(struct s2io_nic *sp, struct lro *lro,
sp                 42 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c static void sxgbe_mdio_ctrl_data(struct sxgbe_priv_data *sp, u32 cmd,
sp                 48 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	       ((sp->clk_csr & 0x7) << 19) | SXGBE_MII_BUSY;
sp                 49 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	writel(reg, sp->ioaddr + sp->hw->mii.data);
sp                 52 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c static void sxgbe_mdio_c45(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr,
sp                 60 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	writel(reg, sp->ioaddr + sp->hw->mii.addr);
sp                 62 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	sxgbe_mdio_ctrl_data(sp, cmd, phydata);
sp                 65 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c static void sxgbe_mdio_c22(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr,
sp                 70 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	writel(1 << phyaddr, sp->ioaddr + SXGBE_MDIO_CLAUSE22_PORT_REG);
sp                 74 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	writel(reg, sp->ioaddr + sp->hw->mii.addr);
sp                 76 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	sxgbe_mdio_ctrl_data(sp, cmd, phydata);
sp                 79 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c static int sxgbe_mdio_access(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr,
sp                 82 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	const struct mii_regs *mii = &sp->hw->mii;
sp                 85 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	rc = sxgbe_mdio_busy_wait(sp->ioaddr, mii->data);
sp                 90 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 		sxgbe_mdio_c45(sp, cmd, phyaddr, phyreg, phydata);
sp                 96 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 		sxgbe_mdio_c22(sp, cmd, phyaddr, phyreg, phydata);
sp                 99 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	return sxgbe_mdio_busy_wait(sp->ioaddr, mii->data);
sp                 53 drivers/net/ethernet/seeq/sgiseeq.c #define TX_BUFFS_AVAIL(sp) ((sp->tx_old <= sp->tx_new) ? \
sp                 54 drivers/net/ethernet/seeq/sgiseeq.c 			    sp->tx_old + (SEEQ_TX_BUFFERS - 1) - sp->tx_new : \
sp                 55 drivers/net/ethernet/seeq/sgiseeq.c 			    sp->tx_old - sp->tx_new - 1)
sp                 57 drivers/net/ethernet/seeq/sgiseeq.c #define VIRT_TO_DMA(sp, v) ((sp)->srings_dma +                                 \
sp                 59 drivers/net/ethernet/seeq/sgiseeq.c 					       (unsigned long)((sp)->rx_desc)))
sp                142 drivers/net/ethernet/seeq/sgiseeq.c static inline void seeq_go(struct sgiseeq_private *sp,
sp                146 drivers/net/ethernet/seeq/sgiseeq.c 	sregs->rstat = sp->mode | RSTAT_GO_BITS;
sp                152 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                153 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_regs *sregs = sp->sregs;
sp                163 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                168 drivers/net/ethernet/seeq/sgiseeq.c 	spin_lock_irq(&sp->tx_lock);
sp                170 drivers/net/ethernet/seeq/sgiseeq.c 	spin_unlock_irq(&sp->tx_lock);
sp                181 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                185 drivers/net/ethernet/seeq/sgiseeq.c 	sp->rx_new = sp->tx_new = 0;
sp                186 drivers/net/ethernet/seeq/sgiseeq.c 	sp->rx_old = sp->tx_old = 0;
sp                192 drivers/net/ethernet/seeq/sgiseeq.c 		sp->tx_desc[i].tdma.cntinfo = TCNTINFO_INIT;
sp                193 drivers/net/ethernet/seeq/sgiseeq.c 		dma_sync_desc_dev(dev, &sp->tx_desc[i]);
sp                198 drivers/net/ethernet/seeq/sgiseeq.c 		if (!sp->rx_desc[i].skb) {
sp                208 drivers/net/ethernet/seeq/sgiseeq.c 			sp->rx_desc[i].skb = skb;
sp                209 drivers/net/ethernet/seeq/sgiseeq.c 			sp->rx_desc[i].rdma.pbuf = dma_addr;
sp                211 drivers/net/ethernet/seeq/sgiseeq.c 		sp->rx_desc[i].rdma.cntinfo = RCNTINFO_INIT;
sp                212 drivers/net/ethernet/seeq/sgiseeq.c 		dma_sync_desc_dev(dev, &sp->rx_desc[i]);
sp                214 drivers/net/ethernet/seeq/sgiseeq.c 	sp->rx_desc[i - 1].rdma.cntinfo |= HPCDMA_EOR;
sp                215 drivers/net/ethernet/seeq/sgiseeq.c 	dma_sync_desc_dev(dev, &sp->rx_desc[i - 1]);
sp                221 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                226 drivers/net/ethernet/seeq/sgiseeq.c 		if (sp->tx_desc[i].skb) {
sp                227 drivers/net/ethernet/seeq/sgiseeq.c 			dev_kfree_skb(sp->tx_desc[i].skb);
sp                228 drivers/net/ethernet/seeq/sgiseeq.c 			sp->tx_desc[i].skb = NULL;
sp                234 drivers/net/ethernet/seeq/sgiseeq.c 		if (sp->rx_desc[i].skb) {
sp                235 drivers/net/ethernet/seeq/sgiseeq.c 			dev_kfree_skb(sp->rx_desc[i].skb);
sp                236 drivers/net/ethernet/seeq/sgiseeq.c 			sp->rx_desc[i].skb = NULL;
sp                287 drivers/net/ethernet/seeq/sgiseeq.c static int init_seeq(struct net_device *dev, struct sgiseeq_private *sp,
sp                290 drivers/net/ethernet/seeq/sgiseeq.c 	struct hpc3_ethregs *hregs = sp->hregs;
sp                299 drivers/net/ethernet/seeq/sgiseeq.c 	if (sp->is_edlc) {
sp                301 drivers/net/ethernet/seeq/sgiseeq.c 		sregs->rw.wregs.control = sp->control;
sp                307 drivers/net/ethernet/seeq/sgiseeq.c 	hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc);
sp                308 drivers/net/ethernet/seeq/sgiseeq.c 	hregs->tx_ndptr = VIRT_TO_DMA(sp, sp->tx_desc);
sp                310 drivers/net/ethernet/seeq/sgiseeq.c 	seeq_go(sp, hregs, sregs);
sp                327 drivers/net/ethernet/seeq/sgiseeq.c static inline void rx_maybe_restart(struct sgiseeq_private *sp,
sp                332 drivers/net/ethernet/seeq/sgiseeq.c 		hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc + sp->rx_new);
sp                333 drivers/net/ethernet/seeq/sgiseeq.c 		seeq_go(sp, hregs, sregs);
sp                337 drivers/net/ethernet/seeq/sgiseeq.c static inline void sgiseeq_rx(struct net_device *dev, struct sgiseeq_private *sp,
sp                346 drivers/net/ethernet/seeq/sgiseeq.c 	unsigned int orig_end = PREV_RX(sp->rx_new);
sp                349 drivers/net/ethernet/seeq/sgiseeq.c 	rd = &sp->rx_desc[sp->rx_new];
sp                401 drivers/net/ethernet/seeq/sgiseeq.c 		sp->rx_new = NEXT_RX(sp->rx_new);
sp                403 drivers/net/ethernet/seeq/sgiseeq.c 		rd = &sp->rx_desc[sp->rx_new];
sp                406 drivers/net/ethernet/seeq/sgiseeq.c 	dma_sync_desc_cpu(dev, &sp->rx_desc[orig_end]);
sp                407 drivers/net/ethernet/seeq/sgiseeq.c 	sp->rx_desc[orig_end].rdma.cntinfo &= ~(HPCDMA_EOR);
sp                408 drivers/net/ethernet/seeq/sgiseeq.c 	dma_sync_desc_dev(dev, &sp->rx_desc[orig_end]);
sp                409 drivers/net/ethernet/seeq/sgiseeq.c 	dma_sync_desc_cpu(dev, &sp->rx_desc[PREV_RX(sp->rx_new)]);
sp                410 drivers/net/ethernet/seeq/sgiseeq.c 	sp->rx_desc[PREV_RX(sp->rx_new)].rdma.cntinfo |= HPCDMA_EOR;
sp                411 drivers/net/ethernet/seeq/sgiseeq.c 	dma_sync_desc_dev(dev, &sp->rx_desc[PREV_RX(sp->rx_new)]);
sp                412 drivers/net/ethernet/seeq/sgiseeq.c 	rx_maybe_restart(sp, hregs, sregs);
sp                415 drivers/net/ethernet/seeq/sgiseeq.c static inline void tx_maybe_reset_collisions(struct sgiseeq_private *sp,
sp                418 drivers/net/ethernet/seeq/sgiseeq.c 	if (sp->is_edlc) {
sp                419 drivers/net/ethernet/seeq/sgiseeq.c 		sregs->rw.wregs.control = sp->control & ~(SEEQ_CTRL_XCNT);
sp                420 drivers/net/ethernet/seeq/sgiseeq.c 		sregs->rw.wregs.control = sp->control;
sp                425 drivers/net/ethernet/seeq/sgiseeq.c 			   struct sgiseeq_private *sp,
sp                429 drivers/net/ethernet/seeq/sgiseeq.c 	int i = sp->tx_old;
sp                437 drivers/net/ethernet/seeq/sgiseeq.c 	td = &sp->tx_desc[i];
sp                442 drivers/net/ethernet/seeq/sgiseeq.c 		td = &sp->tx_desc[i];
sp                446 drivers/net/ethernet/seeq/sgiseeq.c 		hregs->tx_ndptr = VIRT_TO_DMA(sp, td);
sp                451 drivers/net/ethernet/seeq/sgiseeq.c static inline void sgiseeq_tx(struct net_device *dev, struct sgiseeq_private *sp,
sp                459 drivers/net/ethernet/seeq/sgiseeq.c 	tx_maybe_reset_collisions(sp, sregs);
sp                472 drivers/net/ethernet/seeq/sgiseeq.c 	for (j = sp->tx_old; j != sp->tx_new; j = NEXT_TX(j)) {
sp                473 drivers/net/ethernet/seeq/sgiseeq.c 		td = &sp->tx_desc[j];
sp                480 drivers/net/ethernet/seeq/sgiseeq.c 				hregs->tx_ndptr = VIRT_TO_DMA(sp, td);
sp                486 drivers/net/ethernet/seeq/sgiseeq.c 		sp->tx_old = NEXT_TX(sp->tx_old);
sp                500 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                501 drivers/net/ethernet/seeq/sgiseeq.c 	struct hpc3_ethregs *hregs = sp->hregs;
sp                502 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_regs *sregs = sp->sregs;
sp                504 drivers/net/ethernet/seeq/sgiseeq.c 	spin_lock(&sp->tx_lock);
sp                510 drivers/net/ethernet/seeq/sgiseeq.c 	sgiseeq_rx(dev, sp, hregs, sregs);
sp                513 drivers/net/ethernet/seeq/sgiseeq.c 	if (sp->tx_old != sp->tx_new)
sp                514 drivers/net/ethernet/seeq/sgiseeq.c 		sgiseeq_tx(dev, sp, hregs, sregs);
sp                516 drivers/net/ethernet/seeq/sgiseeq.c 	if ((TX_BUFFS_AVAIL(sp) > 0) && netif_queue_stopped(dev)) {
sp                519 drivers/net/ethernet/seeq/sgiseeq.c 	spin_unlock(&sp->tx_lock);
sp                526 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                527 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_regs *sregs = sp->sregs;
sp                536 drivers/net/ethernet/seeq/sgiseeq.c 	err = init_seeq(dev, sp, sregs);
sp                552 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                553 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_regs *sregs = sp->sregs;
sp                559 drivers/net/ethernet/seeq/sgiseeq.c 	reset_hpc3_and_seeq(sp->hregs, sregs);
sp                568 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                569 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_regs *sregs = sp->sregs;
sp                572 drivers/net/ethernet/seeq/sgiseeq.c 	err = init_seeq(dev, sp, sregs);
sp                585 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                586 drivers/net/ethernet/seeq/sgiseeq.c 	struct hpc3_ethregs *hregs = sp->hregs;
sp                591 drivers/net/ethernet/seeq/sgiseeq.c 	spin_lock_irqsave(&sp->tx_lock, flags);
sp                597 drivers/net/ethernet/seeq/sgiseeq.c 			spin_unlock_irqrestore(&sp->tx_lock, flags);
sp                604 drivers/net/ethernet/seeq/sgiseeq.c 	entry = sp->tx_new;
sp                605 drivers/net/ethernet/seeq/sgiseeq.c 	td = &sp->tx_desc[entry];
sp                627 drivers/net/ethernet/seeq/sgiseeq.c 	if (sp->tx_old != sp->tx_new) {
sp                630 drivers/net/ethernet/seeq/sgiseeq.c 		backend = &sp->tx_desc[PREV_TX(sp->tx_new)];
sp                635 drivers/net/ethernet/seeq/sgiseeq.c 	sp->tx_new = NEXT_TX(sp->tx_new); /* Advance. */
sp                639 drivers/net/ethernet/seeq/sgiseeq.c 		kick_tx(dev, sp, hregs);
sp                641 drivers/net/ethernet/seeq/sgiseeq.c 	if (!TX_BUFFS_AVAIL(sp))
sp                643 drivers/net/ethernet/seeq/sgiseeq.c 	spin_unlock_irqrestore(&sp->tx_lock, flags);
sp                659 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                660 drivers/net/ethernet/seeq/sgiseeq.c 	unsigned char oldmode = sp->mode;
sp                663 drivers/net/ethernet/seeq/sgiseeq.c 		sp->mode = SEEQ_RCMD_RANY;
sp                665 drivers/net/ethernet/seeq/sgiseeq.c 		sp->mode = SEEQ_RCMD_RBMCAST;
sp                667 drivers/net/ethernet/seeq/sgiseeq.c 		sp->mode = SEEQ_RCMD_RBCAST;
sp                673 drivers/net/ethernet/seeq/sgiseeq.c 	if (oldmode != sp->mode)
sp                681 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                685 drivers/net/ethernet/seeq/sgiseeq.c 		buf[i].tdma.pnext = VIRT_TO_DMA(sp, buf + i + 1);
sp                690 drivers/net/ethernet/seeq/sgiseeq.c 	buf[i].tdma.pnext = VIRT_TO_DMA(sp, buf);
sp                698 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                702 drivers/net/ethernet/seeq/sgiseeq.c 		buf[i].rdma.pnext = VIRT_TO_DMA(sp, buf + i + 1);
sp                708 drivers/net/ethernet/seeq/sgiseeq.c 	buf[i].rdma.pnext = VIRT_TO_DMA(sp, buf);
sp                728 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp;
sp                740 drivers/net/ethernet/seeq/sgiseeq.c 	sp = netdev_priv(dev);
sp                743 drivers/net/ethernet/seeq/sgiseeq.c 	sr = dma_alloc_attrs(&pdev->dev, sizeof(*sp->srings), &sp->srings_dma,
sp                750 drivers/net/ethernet/seeq/sgiseeq.c 	sp->srings = sr;
sp                751 drivers/net/ethernet/seeq/sgiseeq.c 	sp->rx_desc = sp->srings->rxvector;
sp                752 drivers/net/ethernet/seeq/sgiseeq.c 	sp->tx_desc = sp->srings->txvector;
sp                753 drivers/net/ethernet/seeq/sgiseeq.c 	spin_lock_init(&sp->tx_lock);
sp                756 drivers/net/ethernet/seeq/sgiseeq.c 	setup_rx_ring(dev, sp->rx_desc, SEEQ_RX_BUFFERS);
sp                757 drivers/net/ethernet/seeq/sgiseeq.c 	setup_tx_ring(dev, sp->tx_desc, SEEQ_TX_BUFFERS);
sp                762 drivers/net/ethernet/seeq/sgiseeq.c 	gpriv = sp;
sp                765 drivers/net/ethernet/seeq/sgiseeq.c 	sp->sregs = (struct sgiseeq_regs *) &hpcregs->eth_ext[0];
sp                766 drivers/net/ethernet/seeq/sgiseeq.c 	sp->hregs = &hpcregs->ethregs;
sp                767 drivers/net/ethernet/seeq/sgiseeq.c 	sp->name = sgiseeqstr;
sp                768 drivers/net/ethernet/seeq/sgiseeq.c 	sp->mode = SEEQ_RCMD_RBCAST;
sp                771 drivers/net/ethernet/seeq/sgiseeq.c 	sp->hregs->pconfig = 0x161;
sp                772 drivers/net/ethernet/seeq/sgiseeq.c 	sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP |
sp                776 drivers/net/ethernet/seeq/sgiseeq.c 	sp->hregs->pconfig = 0x161;
sp                777 drivers/net/ethernet/seeq/sgiseeq.c 	sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP |
sp                781 drivers/net/ethernet/seeq/sgiseeq.c 	hpc3_eth_reset(sp->hregs);
sp                783 drivers/net/ethernet/seeq/sgiseeq.c 	sp->is_edlc = !(sp->sregs->rw.rregs.collision_tx[0] & 0xff);
sp                784 drivers/net/ethernet/seeq/sgiseeq.c 	if (sp->is_edlc)
sp                785 drivers/net/ethernet/seeq/sgiseeq.c 		sp->control = SEEQ_CTRL_XCNT | SEEQ_CTRL_ACCNT |
sp                805 drivers/net/ethernet/seeq/sgiseeq.c 	dma_free_attrs(&pdev->dev, sizeof(*sp->srings), sp->srings,
sp                806 drivers/net/ethernet/seeq/sgiseeq.c 		       sp->srings_dma, DMA_ATTR_NON_CONSISTENT);
sp                817 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_private *sp = netdev_priv(dev);
sp                820 drivers/net/ethernet/seeq/sgiseeq.c 	dma_free_attrs(&pdev->dev, sizeof(*sp->srings), sp->srings,
sp                821 drivers/net/ethernet/seeq/sgiseeq.c 		       sp->srings_dma, DMA_ATTR_NON_CONSISTENT);
sp                862 drivers/net/ethernet/sis/sis900.c static void mdio_idle(struct sis900_private *sp)
sp                864 drivers/net/ethernet/sis/sis900.c 	void __iomem *ioaddr = sp->ioaddr;
sp                872 drivers/net/ethernet/sis/sis900.c static void mdio_reset(struct sis900_private *sp)
sp                874 drivers/net/ethernet/sis/sis900.c 	void __iomem *ioaddr = sp->ioaddr;
sp                899 drivers/net/ethernet/sis/sis900.c 	struct sis900_private *sp = netdev_priv(net_dev);
sp                900 drivers/net/ethernet/sis/sis900.c 	void __iomem *ioaddr = sp->ioaddr;
sp                904 drivers/net/ethernet/sis/sis900.c 	mdio_reset(sp);
sp                905 drivers/net/ethernet/sis/sis900.c 	mdio_idle(sp);
sp                945 drivers/net/ethernet/sis/sis900.c 	struct sis900_private *sp = netdev_priv(net_dev);
sp                946 drivers/net/ethernet/sis/sis900.c 	void __iomem *ioaddr = sp->ioaddr;
sp                949 drivers/net/ethernet/sis/sis900.c 	mdio_reset(sp);
sp                950 drivers/net/ethernet/sis/sis900.c 	mdio_idle(sp);
sp               1016 drivers/net/ethernet/sis/sis900.c 	struct sis900_private *sp = netdev_priv(dev);
sp               1017 drivers/net/ethernet/sis/sis900.c 	const int irq = sp->pci_dev->irq;
sp               1402 drivers/net/ethernet/sis/sis900.c static void sis900_set_mode(struct sis900_private *sp, int speed, int duplex)
sp               1404 drivers/net/ethernet/sis/sis900.c 	void __iomem *ioaddr = sp->ioaddr;
sp               2116 drivers/net/ethernet/sis/sis900.c 	struct sis900_private *sp = netdev_priv(net_dev);
sp               2117 drivers/net/ethernet/sis/sis900.c 	void __iomem *ioaddr = sp->ioaddr;
sp               2143 drivers/net/ethernet/ti/netcp_ethss.c 	int sp = slave->slave_num, link_state;
sp               2153 drivers/net/ethernet/ti/netcp_ethss.c 		netcp_sgmii_get_port_link(SGMII_BASE(gbe_dev, sp), sp);
sp                893 drivers/net/fddi/skfp/h/skfbi.h #define	INC_PTR(sp,cp,ep)	if (++cp == ep) cp = sp
sp                704 drivers/net/fddi/skfp/pmf.c 			struct smt_p_1048	*sp ;
sp                705 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_1048 *) to ;
sp                706 drivers/net/fddi/skfp/pmf.c 			sp->p1048_flag = smc->mib.fddiSMTPeerWrapFlag ;
sp                707 drivers/net/fddi/skfp/pmf.c 			sp->p1048_cf_state = smc->mib.fddiSMTCF_State ;
sp                713 drivers/net/fddi/skfp/pmf.c 			struct smt_p_208c	*sp ;
sp                714 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_208c *) to ;
sp                715 drivers/net/fddi/skfp/pmf.c 			sp->p208c_flag =
sp                717 drivers/net/fddi/skfp/pmf.c 			sp->p208c_dupcondition =
sp                720 drivers/net/fddi/skfp/pmf.c 			sp->p208c_fddilong =
sp                722 drivers/net/fddi/skfp/pmf.c 			sp->p208c_fddiunalong =
sp                724 drivers/net/fddi/skfp/pmf.c 			sp->p208c_pad = 0 ;
sp                730 drivers/net/fddi/skfp/pmf.c 			struct smt_p_208d	*sp ;
sp                731 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_208d *) to ;
sp                732 drivers/net/fddi/skfp/pmf.c 			sp->p208d_flag =
sp                734 drivers/net/fddi/skfp/pmf.c 			sp->p208d_frame_ct =
sp                736 drivers/net/fddi/skfp/pmf.c 			sp->p208d_error_ct =
sp                738 drivers/net/fddi/skfp/pmf.c 			sp->p208d_lost_ct =
sp                740 drivers/net/fddi/skfp/pmf.c 			sp->p208d_ratio =
sp                747 drivers/net/fddi/skfp/pmf.c 			struct smt_p_208e	*sp ;
sp                748 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_208e *) to ;
sp                749 drivers/net/fddi/skfp/pmf.c 			sp->p208e_flag =
sp                751 drivers/net/fddi/skfp/pmf.c 			sp->p208e_not_copied =
sp                753 drivers/net/fddi/skfp/pmf.c 			sp->p208e_copied =
sp                755 drivers/net/fddi/skfp/pmf.c 			sp->p208e_not_copied_ratio =
sp                762 drivers/net/fddi/skfp/pmf.c 			struct smt_p_208f	*sp ;
sp                763 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_208f *) to ;
sp                764 drivers/net/fddi/skfp/pmf.c 			sp->p208f_multiple =
sp                766 drivers/net/fddi/skfp/pmf.c 			sp->p208f_nacondition =
sp                768 drivers/net/fddi/skfp/pmf.c 			sp->p208f_old_una =
sp                770 drivers/net/fddi/skfp/pmf.c 			sp->p208f_new_una =
sp                772 drivers/net/fddi/skfp/pmf.c 			sp->p208f_old_dna =
sp                774 drivers/net/fddi/skfp/pmf.c 			sp->p208f_new_dna =
sp                776 drivers/net/fddi/skfp/pmf.c 			sp->p208f_curren_path =
sp                778 drivers/net/fddi/skfp/pmf.c 			sp->p208f_smt_address =
sp                785 drivers/net/fddi/skfp/pmf.c 			struct smt_p_2090	*sp ;
sp                786 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_2090 *) to ;
sp                787 drivers/net/fddi/skfp/pmf.c 			sp->p2090_multiple =
sp                789 drivers/net/fddi/skfp/pmf.c 			sp->p2090_availablepaths =
sp                791 drivers/net/fddi/skfp/pmf.c 			sp->p2090_currentpath =
sp                793 drivers/net/fddi/skfp/pmf.c 			sp->p2090_requestedpaths =
sp                800 drivers/net/fddi/skfp/pmf.c 			struct smt_p_4050	*sp ;
sp                801 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_4050 *) to ;
sp                802 drivers/net/fddi/skfp/pmf.c 			sp->p4050_flag =
sp                804 drivers/net/fddi/skfp/pmf.c 			sp->p4050_pad = 0 ;
sp                805 drivers/net/fddi/skfp/pmf.c 			sp->p4050_cutoff =
sp                807 drivers/net/fddi/skfp/pmf.c 			sp->p4050_alarm =
sp                809 drivers/net/fddi/skfp/pmf.c 			sp->p4050_estimate =
sp                811 drivers/net/fddi/skfp/pmf.c 			sp->p4050_reject_ct =
sp                813 drivers/net/fddi/skfp/pmf.c 			sp->p4050_ct =
sp                821 drivers/net/fddi/skfp/pmf.c 			struct smt_p_4051	*sp ;
sp                822 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_4051 *) to ;
sp                823 drivers/net/fddi/skfp/pmf.c 			sp->p4051_multiple =
sp                825 drivers/net/fddi/skfp/pmf.c 			sp->p4051_porttype =
sp                827 drivers/net/fddi/skfp/pmf.c 			sp->p4051_connectstate =
sp                829 drivers/net/fddi/skfp/pmf.c 			sp->p4051_pc_neighbor =
sp                831 drivers/net/fddi/skfp/pmf.c 			sp->p4051_pc_withhold =
sp                838 drivers/net/fddi/skfp/pmf.c 			struct smt_p_4052	*sp ;
sp                839 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_4052 *) to ;
sp                840 drivers/net/fddi/skfp/pmf.c 			sp->p4052_flag =
sp                842 drivers/net/fddi/skfp/pmf.c 			sp->p4052_eberrorcount =
sp                849 drivers/net/fddi/skfp/pmf.c 			struct smt_p_4053	*sp ;
sp                850 drivers/net/fddi/skfp/pmf.c 			sp = (struct smt_p_4053 *) to ;
sp                851 drivers/net/fddi/skfp/pmf.c 			sp->p4053_multiple =
sp                853 drivers/net/fddi/skfp/pmf.c 			sp->p4053_availablepaths =
sp                855 drivers/net/fddi/skfp/pmf.c 			sp->p4053_currentpath =
sp                857 drivers/net/fddi/skfp/pmf.c 			memcpy(	(char *) &sp->p4053_requestedpaths,
sp                859 drivers/net/fddi/skfp/pmf.c 			sp->p4053_mytype =
sp                861 drivers/net/fddi/skfp/pmf.c 			sp->p4053_neighbortype =
sp                141 drivers/net/hamradio/6pack.c 	struct sixpack *sp = from_timer(sp, t, tx_t);
sp                142 drivers/net/hamradio/6pack.c 	int actual, when = sp->slottime;
sp                147 drivers/net/hamradio/6pack.c 	if (((sp->status1 & SIXP_DCD_MASK) == 0) && (random < sp->persistence)) {
sp                148 drivers/net/hamradio/6pack.c 		sp->led_state = 0x70;
sp                149 drivers/net/hamradio/6pack.c 		sp->tty->ops->write(sp->tty, &sp->led_state, 1);
sp                150 drivers/net/hamradio/6pack.c 		sp->tx_enable = 1;
sp                151 drivers/net/hamradio/6pack.c 		actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2);
sp                152 drivers/net/hamradio/6pack.c 		sp->xleft -= actual;
sp                153 drivers/net/hamradio/6pack.c 		sp->xhead += actual;
sp                154 drivers/net/hamradio/6pack.c 		sp->led_state = 0x60;
sp                155 drivers/net/hamradio/6pack.c 		sp->tty->ops->write(sp->tty, &sp->led_state, 1);
sp                156 drivers/net/hamradio/6pack.c 		sp->status2 = 0;
sp                158 drivers/net/hamradio/6pack.c 		mod_timer(&sp->tx_t, jiffies + ((when + 1) * HZ) / 100);
sp                164 drivers/net/hamradio/6pack.c static void sp_encaps(struct sixpack *sp, unsigned char *icp, int len)
sp                169 drivers/net/hamradio/6pack.c 	if (len > sp->mtu) {	/* sp->mtu = AX25_MTU = max. PACLEN = 256 */
sp                174 drivers/net/hamradio/6pack.c 	if (len > sp->mtu) {	/* sp->mtu = AX25_MTU = max. PACLEN = 256 */
sp                194 drivers/net/hamradio/6pack.c 	count = encode_sixpack(p, sp->xbuff, len, sp->tx_delay);
sp                195 drivers/net/hamradio/6pack.c 	set_bit(TTY_DO_WRITE_WAKEUP, &sp->tty->flags);
sp                198 drivers/net/hamradio/6pack.c 	case 1:	sp->tx_delay = p[1];
sp                200 drivers/net/hamradio/6pack.c 	case 2:	sp->persistence = p[1];
sp                202 drivers/net/hamradio/6pack.c 	case 3:	sp->slottime = p[1];
sp                206 drivers/net/hamradio/6pack.c 	case 5:	sp->duplex = p[1];
sp                219 drivers/net/hamradio/6pack.c 	if (sp->duplex == 1) {
sp                220 drivers/net/hamradio/6pack.c 		sp->led_state = 0x70;
sp                221 drivers/net/hamradio/6pack.c 		sp->tty->ops->write(sp->tty, &sp->led_state, 1);
sp                222 drivers/net/hamradio/6pack.c 		sp->tx_enable = 1;
sp                223 drivers/net/hamradio/6pack.c 		actual = sp->tty->ops->write(sp->tty, sp->xbuff, count);
sp                224 drivers/net/hamradio/6pack.c 		sp->xleft = count - actual;
sp                225 drivers/net/hamradio/6pack.c 		sp->xhead = sp->xbuff + actual;
sp                226 drivers/net/hamradio/6pack.c 		sp->led_state = 0x60;
sp                227 drivers/net/hamradio/6pack.c 		sp->tty->ops->write(sp->tty, &sp->led_state, 1);
sp                229 drivers/net/hamradio/6pack.c 		sp->xleft = count;
sp                230 drivers/net/hamradio/6pack.c 		sp->xhead = sp->xbuff;
sp                231 drivers/net/hamradio/6pack.c 		sp->status2 = count;
sp                232 drivers/net/hamradio/6pack.c 		sp_xmit_on_air(&sp->tx_t);
sp                238 drivers/net/hamradio/6pack.c 	sp->dev->stats.tx_dropped++;
sp                239 drivers/net/hamradio/6pack.c 	netif_start_queue(sp->dev);
sp                241 drivers/net/hamradio/6pack.c 		printk(KERN_DEBUG "%s: %s - dropped.\n", sp->dev->name, msg);
sp                248 drivers/net/hamradio/6pack.c 	struct sixpack *sp = netdev_priv(dev);
sp                253 drivers/net/hamradio/6pack.c 	spin_lock_bh(&sp->lock);
sp                257 drivers/net/hamradio/6pack.c 	sp_encaps(sp, skb->data, skb->len);
sp                258 drivers/net/hamradio/6pack.c 	spin_unlock_bh(&sp->lock);
sp                267 drivers/net/hamradio/6pack.c 	struct sixpack *sp = netdev_priv(dev);
sp                269 drivers/net/hamradio/6pack.c 	if (sp->tty == NULL)
sp                277 drivers/net/hamradio/6pack.c 	struct sixpack *sp = netdev_priv(dev);
sp                279 drivers/net/hamradio/6pack.c 	spin_lock_bh(&sp->lock);
sp                280 drivers/net/hamradio/6pack.c 	if (sp->tty) {
sp                282 drivers/net/hamradio/6pack.c 		clear_bit(TTY_DO_WRITE_WAKEUP, &sp->tty->flags);
sp                285 drivers/net/hamradio/6pack.c 	spin_unlock_bh(&sp->lock);
sp                337 drivers/net/hamradio/6pack.c static void sp_bump(struct sixpack *sp, char cmd)
sp                343 drivers/net/hamradio/6pack.c 	count = sp->rcount + 1;
sp                345 drivers/net/hamradio/6pack.c 	sp->dev->stats.rx_bytes += count;
sp                353 drivers/net/hamradio/6pack.c 	memcpy(ptr, sp->cooked_buf + 1, count);
sp                354 drivers/net/hamradio/6pack.c 	skb->protocol = ax25_type_trans(skb, sp->dev);
sp                356 drivers/net/hamradio/6pack.c 	sp->dev->stats.rx_packets++;
sp                361 drivers/net/hamradio/6pack.c 	sp->dev->stats.rx_dropped++;
sp                379 drivers/net/hamradio/6pack.c 	struct sixpack *sp;
sp                382 drivers/net/hamradio/6pack.c 	sp = tty->disc_data;
sp                383 drivers/net/hamradio/6pack.c 	if (sp)
sp                384 drivers/net/hamradio/6pack.c 		refcount_inc(&sp->refcnt);
sp                387 drivers/net/hamradio/6pack.c 	return sp;
sp                390 drivers/net/hamradio/6pack.c static void sp_put(struct sixpack *sp)
sp                392 drivers/net/hamradio/6pack.c 	if (refcount_dec_and_test(&sp->refcnt))
sp                393 drivers/net/hamradio/6pack.c 		complete(&sp->dead);
sp                402 drivers/net/hamradio/6pack.c 	struct sixpack *sp = sp_get(tty);
sp                405 drivers/net/hamradio/6pack.c 	if (!sp)
sp                407 drivers/net/hamradio/6pack.c 	if (sp->xleft <= 0)  {
sp                410 drivers/net/hamradio/6pack.c 		sp->dev->stats.tx_packets++;
sp                412 drivers/net/hamradio/6pack.c 		sp->tx_enable = 0;
sp                413 drivers/net/hamradio/6pack.c 		netif_wake_queue(sp->dev);
sp                417 drivers/net/hamradio/6pack.c 	if (sp->tx_enable) {
sp                418 drivers/net/hamradio/6pack.c 		actual = tty->ops->write(tty, sp->xhead, sp->xleft);
sp                419 drivers/net/hamradio/6pack.c 		sp->xleft -= actual;
sp                420 drivers/net/hamradio/6pack.c 		sp->xhead += actual;
sp                424 drivers/net/hamradio/6pack.c 	sp_put(sp);
sp                438 drivers/net/hamradio/6pack.c 	struct sixpack *sp;
sp                444 drivers/net/hamradio/6pack.c 	sp = sp_get(tty);
sp                445 drivers/net/hamradio/6pack.c 	if (!sp)
sp                453 drivers/net/hamradio/6pack.c 			if (!test_and_set_bit(SIXPF_ERROR, &sp->flags))
sp                454 drivers/net/hamradio/6pack.c 				sp->dev->stats.rx_errors++;
sp                458 drivers/net/hamradio/6pack.c 	sixpack_decode(sp, cp, count1);
sp                460 drivers/net/hamradio/6pack.c 	sp_put(sp);
sp                474 drivers/net/hamradio/6pack.c static void __tnc_set_sync_state(struct sixpack *sp, int new_tnc_state)
sp                491 drivers/net/hamradio/6pack.c 	sp->tnc_state = new_tnc_state;
sp                492 drivers/net/hamradio/6pack.c 	printk(KERN_INFO "%s: %s\n", sp->dev->name, msg);
sp                495 drivers/net/hamradio/6pack.c static inline void tnc_set_sync_state(struct sixpack *sp, int new_tnc_state)
sp                497 drivers/net/hamradio/6pack.c 	int old_tnc_state = sp->tnc_state;
sp                500 drivers/net/hamradio/6pack.c 		__tnc_set_sync_state(sp, new_tnc_state);
sp                505 drivers/net/hamradio/6pack.c 	struct sixpack *sp = from_timer(sp, t, resync_t);
sp                510 drivers/net/hamradio/6pack.c 	sp->rx_count = 0;
sp                511 drivers/net/hamradio/6pack.c 	sp->rx_count_cooked = 0;
sp                515 drivers/net/hamradio/6pack.c 	sp->status = 1;
sp                516 drivers/net/hamradio/6pack.c 	sp->status1 = 1;
sp                517 drivers/net/hamradio/6pack.c 	sp->status2 = 0;
sp                521 drivers/net/hamradio/6pack.c 	sp->led_state = 0x60;
sp                522 drivers/net/hamradio/6pack.c 	sp->tty->ops->write(sp->tty, &sp->led_state, 1);
sp                523 drivers/net/hamradio/6pack.c 	sp->tty->ops->write(sp->tty, &resync_cmd, 1);
sp                527 drivers/net/hamradio/6pack.c 	mod_timer(&sp->resync_t, jiffies + SIXP_RESYNC_TIMEOUT);
sp                530 drivers/net/hamradio/6pack.c static inline int tnc_init(struct sixpack *sp)
sp                534 drivers/net/hamradio/6pack.c 	tnc_set_sync_state(sp, TNC_UNSYNC_STARTUP);
sp                536 drivers/net/hamradio/6pack.c 	sp->tty->ops->write(sp->tty, &inbyte, 1);
sp                538 drivers/net/hamradio/6pack.c 	mod_timer(&sp->resync_t, jiffies + SIXP_RESYNC_TIMEOUT);
sp                554 drivers/net/hamradio/6pack.c 	struct sixpack *sp;
sp                570 drivers/net/hamradio/6pack.c 	sp = netdev_priv(dev);
sp                571 drivers/net/hamradio/6pack.c 	sp->dev = dev;
sp                573 drivers/net/hamradio/6pack.c 	spin_lock_init(&sp->lock);
sp                574 drivers/net/hamradio/6pack.c 	refcount_set(&sp->refcnt, 1);
sp                575 drivers/net/hamradio/6pack.c 	init_completion(&sp->dead);
sp                589 drivers/net/hamradio/6pack.c 	spin_lock_bh(&sp->lock);
sp                591 drivers/net/hamradio/6pack.c 	sp->tty = tty;
sp                593 drivers/net/hamradio/6pack.c 	sp->rbuff	= rbuff;
sp                594 drivers/net/hamradio/6pack.c 	sp->xbuff	= xbuff;
sp                596 drivers/net/hamradio/6pack.c 	sp->mtu		= AX25_MTU + 73;
sp                597 drivers/net/hamradio/6pack.c 	sp->buffsize	= len;
sp                598 drivers/net/hamradio/6pack.c 	sp->rcount	= 0;
sp                599 drivers/net/hamradio/6pack.c 	sp->rx_count	= 0;
sp                600 drivers/net/hamradio/6pack.c 	sp->rx_count_cooked = 0;
sp                601 drivers/net/hamradio/6pack.c 	sp->xleft	= 0;
sp                603 drivers/net/hamradio/6pack.c 	sp->flags	= 0;		/* Clear ESCAPE & ERROR flags */
sp                605 drivers/net/hamradio/6pack.c 	sp->duplex	= 0;
sp                606 drivers/net/hamradio/6pack.c 	sp->tx_delay    = SIXP_TXDELAY;
sp                607 drivers/net/hamradio/6pack.c 	sp->persistence = SIXP_PERSIST;
sp                608 drivers/net/hamradio/6pack.c 	sp->slottime    = SIXP_SLOTTIME;
sp                609 drivers/net/hamradio/6pack.c 	sp->led_state   = 0x60;
sp                610 drivers/net/hamradio/6pack.c 	sp->status      = 1;
sp                611 drivers/net/hamradio/6pack.c 	sp->status1     = 1;
sp                612 drivers/net/hamradio/6pack.c 	sp->status2     = 0;
sp                613 drivers/net/hamradio/6pack.c 	sp->tx_enable   = 0;
sp                617 drivers/net/hamradio/6pack.c 	timer_setup(&sp->tx_t, sp_xmit_on_air, 0);
sp                619 drivers/net/hamradio/6pack.c 	timer_setup(&sp->resync_t, resync_tnc, 0);
sp                621 drivers/net/hamradio/6pack.c 	spin_unlock_bh(&sp->lock);
sp                624 drivers/net/hamradio/6pack.c 	tty->disc_data = sp;
sp                632 drivers/net/hamradio/6pack.c 	tnc_init(sp);
sp                655 drivers/net/hamradio/6pack.c 	struct sixpack *sp;
sp                658 drivers/net/hamradio/6pack.c 	sp = tty->disc_data;
sp                661 drivers/net/hamradio/6pack.c 	if (!sp)
sp                668 drivers/net/hamradio/6pack.c 	if (!refcount_dec_and_test(&sp->refcnt))
sp                669 drivers/net/hamradio/6pack.c 		wait_for_completion(&sp->dead);
sp                675 drivers/net/hamradio/6pack.c 	netif_stop_queue(sp->dev);
sp                677 drivers/net/hamradio/6pack.c 	del_timer_sync(&sp->tx_t);
sp                678 drivers/net/hamradio/6pack.c 	del_timer_sync(&sp->resync_t);
sp                681 drivers/net/hamradio/6pack.c 	kfree(sp->rbuff);
sp                682 drivers/net/hamradio/6pack.c 	kfree(sp->xbuff);
sp                684 drivers/net/hamradio/6pack.c 	unregister_netdev(sp->dev);
sp                691 drivers/net/hamradio/6pack.c 	struct sixpack *sp = sp_get(tty);
sp                695 drivers/net/hamradio/6pack.c 	if (!sp)
sp                697 drivers/net/hamradio/6pack.c 	dev = sp->dev;
sp                715 drivers/net/hamradio/6pack.c 		sp->mode = tmp;
sp                745 drivers/net/hamradio/6pack.c 	sp_put(sp);
sp                832 drivers/net/hamradio/6pack.c static void decode_data(struct sixpack *sp, unsigned char inbyte)
sp                836 drivers/net/hamradio/6pack.c 	if (sp->rx_count != 3) {
sp                837 drivers/net/hamradio/6pack.c 		sp->raw_buf[sp->rx_count++] = inbyte;
sp                842 drivers/net/hamradio/6pack.c 	buf = sp->raw_buf;
sp                843 drivers/net/hamradio/6pack.c 	sp->cooked_buf[sp->rx_count_cooked++] =
sp                845 drivers/net/hamradio/6pack.c 	sp->cooked_buf[sp->rx_count_cooked++] =
sp                847 drivers/net/hamradio/6pack.c 	sp->cooked_buf[sp->rx_count_cooked++] =
sp                849 drivers/net/hamradio/6pack.c 	sp->rx_count = 0;
sp                854 drivers/net/hamradio/6pack.c static void decode_prio_command(struct sixpack *sp, unsigned char cmd)
sp                867 drivers/net/hamradio/6pack.c 		if (((sp->status & SIXP_DCD_MASK) == 0) &&
sp                869 drivers/net/hamradio/6pack.c 				if (sp->status != 1)
sp                872 drivers/net/hamradio/6pack.c 					sp->status = 0;
sp                875 drivers/net/hamradio/6pack.c 		sp->status = cmd & SIXP_PRIO_DATA_MASK;
sp                877 drivers/net/hamradio/6pack.c 		if ((sp->status2 != 0) && (sp->duplex == 1)) {
sp                878 drivers/net/hamradio/6pack.c 			sp->led_state = 0x70;
sp                879 drivers/net/hamradio/6pack.c 			sp->tty->ops->write(sp->tty, &sp->led_state, 1);
sp                880 drivers/net/hamradio/6pack.c 			sp->tx_enable = 1;
sp                881 drivers/net/hamradio/6pack.c 			actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2);
sp                882 drivers/net/hamradio/6pack.c 			sp->xleft -= actual;
sp                883 drivers/net/hamradio/6pack.c 			sp->xhead += actual;
sp                884 drivers/net/hamradio/6pack.c 			sp->led_state = 0x60;
sp                885 drivers/net/hamradio/6pack.c 			sp->status2 = 0;
sp                891 drivers/net/hamradio/6pack.c 	sp->tty->ops->write(sp->tty, &sp->led_state, 1);
sp                896 drivers/net/hamradio/6pack.c 	if (sp->tnc_state == TNC_IN_SYNC)
sp                897 drivers/net/hamradio/6pack.c 		mod_timer(&sp->resync_t, jiffies + SIXP_INIT_RESYNC_TIMEOUT);
sp                899 drivers/net/hamradio/6pack.c 	sp->status1 = cmd & SIXP_PRIO_DATA_MASK;
sp                904 drivers/net/hamradio/6pack.c static void decode_std_command(struct sixpack *sp, unsigned char cmd)
sp                911 drivers/net/hamradio/6pack.c 		if ((sp->rx_count == 0) && (sp->rx_count_cooked == 0)) {
sp                912 drivers/net/hamradio/6pack.c 			if ((sp->status & SIXP_RX_DCD_MASK) ==
sp                914 drivers/net/hamradio/6pack.c 				sp->led_state = 0x68;
sp                915 drivers/net/hamradio/6pack.c 				sp->tty->ops->write(sp->tty, &sp->led_state, 1);
sp                918 drivers/net/hamradio/6pack.c 			sp->led_state = 0x60;
sp                920 drivers/net/hamradio/6pack.c 			sp->tty->ops->write(sp->tty, &sp->led_state, 1);
sp                921 drivers/net/hamradio/6pack.c 			rest = sp->rx_count;
sp                924 drivers/net/hamradio/6pack.c 					decode_data(sp, 0);
sp                926 drivers/net/hamradio/6pack.c 				sp->rx_count_cooked -= 2;
sp                928 drivers/net/hamradio/6pack.c 				sp->rx_count_cooked -= 1;
sp                929 drivers/net/hamradio/6pack.c 			for (i = 0; i < sp->rx_count_cooked; i++)
sp                930 drivers/net/hamradio/6pack.c 				checksum += sp->cooked_buf[i];
sp                934 drivers/net/hamradio/6pack.c 				sp->rcount = sp->rx_count_cooked-2;
sp                935 drivers/net/hamradio/6pack.c 				sp_bump(sp, 0);
sp                937 drivers/net/hamradio/6pack.c 			sp->rx_count_cooked = 0;
sp                952 drivers/net/hamradio/6pack.c sixpack_decode(struct sixpack *sp, const unsigned char *pre_rbuff, int count)
sp                960 drivers/net/hamradio/6pack.c 			tnc_set_sync_state(sp, TNC_IN_SYNC);
sp                961 drivers/net/hamradio/6pack.c 			del_timer(&sp->resync_t);
sp                964 drivers/net/hamradio/6pack.c 			decode_prio_command(sp, inbyte);
sp                966 drivers/net/hamradio/6pack.c 			decode_std_command(sp, inbyte);
sp                967 drivers/net/hamradio/6pack.c 		else if ((sp->status & SIXP_RX_DCD_MASK) == SIXP_RX_DCD_MASK)
sp                968 drivers/net/hamradio/6pack.c 			decode_data(sp, inbyte);
sp                230 drivers/net/netdevsim/ipsec.c 	struct sec_path *sp = skb_sec_path(skb);
sp                237 drivers/net/netdevsim/ipsec.c 	if (!sp)
sp                240 drivers/net/netdevsim/ipsec.c 	if (unlikely(!sp->len)) {
sp                242 drivers/net/netdevsim/ipsec.c 			   sp->len);
sp                836 drivers/net/ppp/ppp_async.c 	unsigned char *sp;
sp                893 drivers/net/ppp/ppp_async.c 				sp = skb_put_data(skb, buf, n);
sp                895 drivers/net/ppp/ppp_async.c 					sp[0] ^= PPP_TRANS;
sp                240 drivers/net/ppp/pppoe.c 						struct sockaddr_pppox *sp)
sp                249 drivers/net/ppp/pppoe.c 	dev = dev_get_by_name_rcu(net, sp->sa_addr.pppoe.dev);
sp                253 drivers/net/ppp/pppoe.c 		pppox_sock = get_item(pn, sp->sa_addr.pppoe.sid,
sp                254 drivers/net/ppp/pppoe.c 				sp->sa_addr.pppoe.remote, ifindex);
sp                615 drivers/net/ppp/pppoe.c 	struct sockaddr_pppox *sp = (struct sockaddr_pppox *)uservaddr;
sp                629 drivers/net/ppp/pppoe.c 	if (sp->sa_protocol != PX_PROTO_OE)
sp                635 drivers/net/ppp/pppoe.c 	     stage_session(sp->sa_addr.pppoe.sid))
sp                641 drivers/net/ppp/pppoe.c 	     !stage_session(sp->sa_addr.pppoe.sid))
sp                668 drivers/net/ppp/pppoe.c 	if (stage_session(sp->sa_addr.pppoe.sid)) {
sp                671 drivers/net/ppp/pppoe.c 		dev = dev_get_by_name(net, sp->sa_addr.pppoe.dev);
sp                683 drivers/net/ppp/pppoe.c 		       &sp->sa_addr.pppoe,
sp                709 drivers/net/ppp/pppoe.c 	po->num = sp->sa_addr.pppoe.sid;
sp                726 drivers/net/ppp/pppoe.c 	struct sockaddr_pppox sp;
sp                728 drivers/net/ppp/pppoe.c 	sp.sa_family	= AF_PPPOX;
sp                729 drivers/net/ppp/pppoe.c 	sp.sa_protocol	= PX_PROTO_OE;
sp                730 drivers/net/ppp/pppoe.c 	memcpy(&sp.sa_addr.pppoe, &pppox_sk(sock->sk)->pppoe_pa,
sp                733 drivers/net/ppp/pppoe.c 	memcpy(uaddr, &sp, len);
sp                373 drivers/net/ppp/pptp.c 	struct sockaddr_pppox *sp = (struct sockaddr_pppox *) uservaddr;
sp                392 drivers/net/ppp/pptp.c 	if (add_chan(po, &sp->sa_addr.pptp))
sp                406 drivers/net/ppp/pptp.c 	struct sockaddr_pppox *sp = (struct sockaddr_pppox *) uservaddr;
sp                416 drivers/net/ppp/pptp.c 	if (sp->sa_protocol != PX_PROTO_PPTP)
sp                419 drivers/net/ppp/pptp.c 	if (lookup_chan_dst(sp->sa_addr.pptp.call_id, sp->sa_addr.pptp.sin_addr.s_addr))
sp                435 drivers/net/ppp/pptp.c 	if (!opt->src_addr.sin_addr.s_addr || !sp->sa_addr.pptp.sin_addr.s_addr) {
sp                466 drivers/net/ppp/pptp.c 	opt->dst_addr = sp->sa_addr.pptp;
sp                478 drivers/net/ppp/pptp.c 	struct sockaddr_pppox sp;
sp                480 drivers/net/ppp/pptp.c 	memset(&sp.sa_addr, 0, sizeof(sp.sa_addr));
sp                482 drivers/net/ppp/pptp.c 	sp.sa_family    = AF_PPPOX;
sp                483 drivers/net/ppp/pptp.c 	sp.sa_protocol  = PX_PROTO_PPTP;
sp                484 drivers/net/ppp/pptp.c 	sp.sa_addr.pptp = pppox_sk(sock->sk)->proto.pptp.src_addr;
sp                486 drivers/net/ppp/pptp.c 	memcpy(uaddr, &sp, len);
sp                 39 drivers/net/tap.c static long tap_get_vnet_be(struct tap_queue *q, int __user *sp)
sp                 43 drivers/net/tap.c 	if (put_user(s, sp))
sp                 49 drivers/net/tap.c static long tap_set_vnet_be(struct tap_queue *q, int __user *sp)
sp                 53 drivers/net/tap.c 	if (get_user(s, sp))
sp                985 drivers/net/tap.c 	int __user *sp = argp;
sp               1035 drivers/net/tap.c 		if (get_user(s, sp))
sp               1045 drivers/net/tap.c 		if (put_user(s, sp))
sp               1050 drivers/net/tap.c 		if (get_user(s, sp))
sp               1060 drivers/net/tap.c 		if (put_user(s, sp))
sp               1065 drivers/net/tap.c 		if (get_user(s, sp))
sp               1074 drivers/net/tap.c 		return tap_get_vnet_be(q, sp);
sp               1077 drivers/net/tap.c 		return tap_set_vnet_be(q, sp);
sp               3303 drivers/net/wireless/ath/ath10k/wmi-tlv.c static u32 ath10k_wmi_tlv_prepare_peer_qos(u8 uapsd_queues, u8 sp)
sp               3316 drivers/net/wireless/ath/ath10k/wmi-tlv.c 	peer_qos |= SM(sp, WMI_TLV_TDLS_PEER_SP);
sp               8785 drivers/net/wireless/ath/ath10k/wmi.c static u32 ath10k_wmi_prepare_peer_qos(u8 uapsd_queues, u8 sp)
sp               8798 drivers/net/wireless/ath/ath10k/wmi.c 	peer_qos |= SM(sp, WMI_TDLS_PEER_SP);
sp                151 drivers/net/wireless/ath/ath9k/debug_sta.c #define PRINT_CCK_RATE(str, i, sp)					\
sp                156 drivers/net/wireless/ath/ath9k/debug_sta.c 			 (sp) ? rstats->cck_stats[i].cck_sp_cnt :	\
sp               2512 drivers/net/wireless/ath/wil6210/cfg80211.c 		struct cfg80211_sched_scan_plan *sp = &request->scan_plans[i];
sp               2515 drivers/net/wireless/ath/wil6210/cfg80211.c 			     i, sp->interval, sp->iterations);
sp               4342 drivers/net/wireless/atmel/atmel.c 	mov	sp, #STACK_BASE
sp               4358 drivers/net/wireless/atmel/atmel.c 	stmdb	sp!, {lr}
sp               4364 drivers/net/wireless/atmel/atmel.c 	ldmia	sp!, {lr}
sp               4370 drivers/net/wireless/atmel/atmel.c 	stmdb	sp!, {lr}
sp               4376 drivers/net/wireless/atmel/atmel.c 	ldmia	sp!, {lr}
sp               4453 drivers/net/wireless/atmel/atmel.c 	stmdb	sp!, {r4, r5, lr}
sp               4472 drivers/net/wireless/atmel/atmel.c 	ldmia	sp!, {r4, r5, lr}
sp               4478 drivers/net/wireless/atmel/atmel.c 	stmdb	sp!, {r4, r5, r6, lr}
sp               4523 drivers/net/wireless/atmel/atmel.c 	ldmia	sp!, {r4, r5, r6, lr}
sp                214 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_sta_priv *sp = (void *)sta->drv_priv;
sp                215 drivers/net/wireless/mac80211_hwsim.c 	WARN_ON(sp->magic != HWSIM_STA_MAGIC);
sp                220 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_sta_priv *sp = (void *)sta->drv_priv;
sp                221 drivers/net/wireless/mac80211_hwsim.c 	sp->magic = HWSIM_STA_MAGIC;
sp                226 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_sta_priv *sp = (void *)sta->drv_priv;
sp                227 drivers/net/wireless/mac80211_hwsim.c 	sp->magic = 0;
sp                264 drivers/net/wireless/marvell/libertas/cmd.c 				struct sleep_params *sp)
sp                272 drivers/net/wireless/marvell/libertas/cmd.c 		cmd.error = cpu_to_le16(sp->sp_error);
sp                273 drivers/net/wireless/marvell/libertas/cmd.c 		cmd.offset = cpu_to_le16(sp->sp_offset);
sp                274 drivers/net/wireless/marvell/libertas/cmd.c 		cmd.stabletime = cpu_to_le16(sp->sp_stabletime);
sp                275 drivers/net/wireless/marvell/libertas/cmd.c 		cmd.calcontrol = sp->sp_calcontrol;
sp                276 drivers/net/wireless/marvell/libertas/cmd.c 		cmd.externalsleepclk = sp->sp_extsleepclk;
sp                277 drivers/net/wireless/marvell/libertas/cmd.c 		cmd.reserved = cpu_to_le16(sp->sp_reserved);
sp                291 drivers/net/wireless/marvell/libertas/cmd.c 		sp->sp_error = le16_to_cpu(cmd.error);
sp                292 drivers/net/wireless/marvell/libertas/cmd.c 		sp->sp_offset = le16_to_cpu(cmd.offset);
sp                293 drivers/net/wireless/marvell/libertas/cmd.c 		sp->sp_stabletime = le16_to_cpu(cmd.stabletime);
sp                294 drivers/net/wireless/marvell/libertas/cmd.c 		sp->sp_calcontrol = cmd.calcontrol;
sp                295 drivers/net/wireless/marvell/libertas/cmd.c 		sp->sp_extsleepclk = cmd.externalsleepclk;
sp                296 drivers/net/wireless/marvell/libertas/cmd.c 		sp->sp_reserved = le16_to_cpu(cmd.reserved);
sp                 94 drivers/net/wireless/marvell/libertas/cmd.h 				struct sleep_params *sp);
sp                 61 drivers/net/wireless/marvell/libertas/debugfs.c 	struct sleep_params sp;
sp                 74 drivers/net/wireless/marvell/libertas/debugfs.c 	sp.sp_error = p1;
sp                 75 drivers/net/wireless/marvell/libertas/debugfs.c 	sp.sp_offset = p2;
sp                 76 drivers/net/wireless/marvell/libertas/debugfs.c 	sp.sp_stabletime = p3;
sp                 77 drivers/net/wireless/marvell/libertas/debugfs.c 	sp.sp_calcontrol = p4;
sp                 78 drivers/net/wireless/marvell/libertas/debugfs.c 	sp.sp_extsleepclk = p5;
sp                 79 drivers/net/wireless/marvell/libertas/debugfs.c 	sp.sp_reserved = p6;
sp                 81 drivers/net/wireless/marvell/libertas/debugfs.c 	ret = lbs_cmd_802_11_sleep_params(priv, CMD_ACT_SET, &sp);
sp                 98 drivers/net/wireless/marvell/libertas/debugfs.c 	struct sleep_params sp;
sp                104 drivers/net/wireless/marvell/libertas/debugfs.c 	ret = lbs_cmd_802_11_sleep_params(priv, CMD_ACT_GET, &sp);
sp                108 drivers/net/wireless/marvell/libertas/debugfs.c 	pos += snprintf(buf, len, "%d %d %d %d %d %d\n", sp.sp_error,
sp                109 drivers/net/wireless/marvell/libertas/debugfs.c 			sp.sp_offset, sp.sp_stabletime,
sp                110 drivers/net/wireless/marvell/libertas/debugfs.c 			sp.sp_calcontrol, sp.sp_extsleepclk,
sp                111 drivers/net/wireless/marvell/libertas/debugfs.c 			sp.sp_reserved);
sp                 68 drivers/nvmem/rave-sp-eeprom.c 	struct rave_sp *sp;
sp                126 drivers/nvmem/rave-sp-eeprom.c 	ret = rave_sp_exec(eeprom->sp, cmd, cmd_size, page, rsp_size);
sp                290 drivers/nvmem/rave-sp-eeprom.c 	struct rave_sp *sp = dev_get_drvdata(dev->parent);
sp                317 drivers/nvmem/rave-sp-eeprom.c 	eeprom->sp      = sp;
sp                 84 drivers/pcmcia/at91_cf.c static int at91_cf_get_status(struct pcmcia_socket *s, u_int *sp)
sp                 88 drivers/pcmcia/at91_cf.c 	if (!sp)
sp                 98 drivers/pcmcia/at91_cf.c 		*sp = SS_DETECT | SS_3VCARD;
sp                100 drivers/pcmcia/at91_cf.c 			*sp |= SS_READY;
sp                102 drivers/pcmcia/at91_cf.c 			*sp |= SS_POWERON;
sp                104 drivers/pcmcia/at91_cf.c 		*sp = 0;
sp                 91 drivers/pcmcia/electra_cf.c static int electra_cf_get_status(struct pcmcia_socket *s, u_int *sp)
sp                 95 drivers/pcmcia/electra_cf.c 	if (!sp)
sp                102 drivers/pcmcia/electra_cf.c 		*sp = SS_READY | SS_DETECT | SS_POWERON | SS_3VCARD;
sp                106 drivers/pcmcia/electra_cf.c 		*sp = 0;
sp                107 drivers/pcmcia/omap_cf.c static int omap_cf_get_status(struct pcmcia_socket *s, u_int *sp)
sp                109 drivers/pcmcia/omap_cf.c 	if (!sp)
sp                116 drivers/pcmcia/omap_cf.c 		*sp = SS_READY | SS_DETECT | SS_POWERON | SS_3VCARD;
sp                121 drivers/pcmcia/omap_cf.c 		*sp = 0;
sp                164 drivers/phy/cadence/phy-cadence-sierra.c 	struct cdns_sierra_phy *sp;
sp                175 drivers/phy/cadence/phy-cadence-sierra.c 	sp = devm_kzalloc(dev, sizeof(*sp), GFP_KERNEL);
sp                176 drivers/phy/cadence/phy-cadence-sierra.c 	if (!sp)
sp                178 drivers/phy/cadence/phy-cadence-sierra.c 	dev_set_drvdata(dev, sp);
sp                179 drivers/phy/cadence/phy-cadence-sierra.c 	sp->dev = dev;
sp                182 drivers/phy/cadence/phy-cadence-sierra.c 	sp->base = devm_ioremap_resource(dev, res);
sp                183 drivers/phy/cadence/phy-cadence-sierra.c 	if (IS_ERR(sp->base)) {
sp                185 drivers/phy/cadence/phy-cadence-sierra.c 		return PTR_ERR(sp->base);
sp                192 drivers/phy/cadence/phy-cadence-sierra.c 	sp->init_data = (struct cdns_sierra_data *)match->data;
sp                194 drivers/phy/cadence/phy-cadence-sierra.c 	platform_set_drvdata(pdev, sp);
sp                196 drivers/phy/cadence/phy-cadence-sierra.c 	sp->clk = devm_clk_get(dev, "phy_clk");
sp                197 drivers/phy/cadence/phy-cadence-sierra.c 	if (IS_ERR(sp->clk)) {
sp                199 drivers/phy/cadence/phy-cadence-sierra.c 		return PTR_ERR(sp->clk);
sp                202 drivers/phy/cadence/phy-cadence-sierra.c 	sp->phy_rst = devm_reset_control_get(dev, "sierra_reset");
sp                203 drivers/phy/cadence/phy-cadence-sierra.c 	if (IS_ERR(sp->phy_rst)) {
sp                205 drivers/phy/cadence/phy-cadence-sierra.c 		return PTR_ERR(sp->phy_rst);
sp                208 drivers/phy/cadence/phy-cadence-sierra.c 	sp->apb_rst = devm_reset_control_get(dev, "sierra_apb");
sp                209 drivers/phy/cadence/phy-cadence-sierra.c 	if (IS_ERR(sp->apb_rst)) {
sp                211 drivers/phy/cadence/phy-cadence-sierra.c 		return PTR_ERR(sp->apb_rst);
sp                214 drivers/phy/cadence/phy-cadence-sierra.c 	ret = clk_prepare_enable(sp->clk);
sp                219 drivers/phy/cadence/phy-cadence-sierra.c 	reset_control_deassert(sp->apb_rst);
sp                222 drivers/phy/cadence/phy-cadence-sierra.c 	if  (sp->init_data->id_value != readl(sp->base)) {
sp                227 drivers/phy/cadence/phy-cadence-sierra.c 	sp->autoconf = of_property_read_bool(dn, "cdns,autoconf");
sp                232 drivers/phy/cadence/phy-cadence-sierra.c 		sp->phys[node].lnk_rst =
sp                235 drivers/phy/cadence/phy-cadence-sierra.c 		if (IS_ERR(sp->phys[node].lnk_rst)) {
sp                238 drivers/phy/cadence/phy-cadence-sierra.c 			ret = PTR_ERR(sp->phys[node].lnk_rst);
sp                242 drivers/phy/cadence/phy-cadence-sierra.c 		if (!sp->autoconf) {
sp                243 drivers/phy/cadence/phy-cadence-sierra.c 			ret = cdns_sierra_get_optional(&sp->phys[node], child);
sp                257 drivers/phy/cadence/phy-cadence-sierra.c 		sp->phys[node].phy = gphy;
sp                258 drivers/phy/cadence/phy-cadence-sierra.c 		phy_set_drvdata(gphy, &sp->phys[node]);
sp                261 drivers/phy/cadence/phy-cadence-sierra.c 		if (!sp->autoconf)
sp                266 drivers/phy/cadence/phy-cadence-sierra.c 	sp->nsubnodes = node;
sp                269 drivers/phy/cadence/phy-cadence-sierra.c 	if (!sp->autoconf && sp->nsubnodes > 1)
sp                270 drivers/phy/cadence/phy-cadence-sierra.c 		writel(2, sp->base + SIERRA_PHY_PLL_CFG);
sp                274 drivers/phy/cadence/phy-cadence-sierra.c 	reset_control_deassert(sp->phy_rst);
sp                281 drivers/phy/cadence/phy-cadence-sierra.c 		reset_control_put(sp->phys[i].lnk_rst);
sp                284 drivers/phy/cadence/phy-cadence-sierra.c 	clk_disable_unprepare(sp->clk);
sp                285 drivers/phy/cadence/phy-cadence-sierra.c 	reset_control_assert(sp->apb_rst);
sp                485 drivers/rapidio/rio-scan.c rio_sport_is_active(struct rio_dev *rdev, int sp)
sp                489 drivers/rapidio/rio-scan.c 	rio_read_config_32(rdev, RIO_DEV_PORT_N_ERR_STS_CSR(rdev, sp),
sp                537 drivers/scsi/aacraid/aachba.c 		char *sp = get_name_reply->data;
sp                540 drivers/scsi/aacraid/aachba.c 		sp[data_size - 1] = '\0';
sp                541 drivers/scsi/aacraid/aachba.c 		while (*sp == ' ')
sp                542 drivers/scsi/aacraid/aachba.c 			++sp;
sp                543 drivers/scsi/aacraid/aachba.c 		if (*sp) {
sp                549 drivers/scsi/aacraid/aachba.c 				*dp++ = (*sp) ? *sp++ : ' ';
sp               1079 drivers/scsi/aacraid/aachba.c 			char sp[13];
sp               1081 drivers/scsi/aacraid/aachba.c 			sp[0] = INQD_PDT_DA;
sp               1082 drivers/scsi/aacraid/aachba.c 			sp[1] = scsicmd->cmnd[2];
sp               1083 drivers/scsi/aacraid/aachba.c 			sp[2] = 0;
sp               1084 drivers/scsi/aacraid/aachba.c 			sp[3] = snprintf(sp+4, sizeof(sp)-4, "%08X",
sp               1086 drivers/scsi/aacraid/aachba.c 			scsi_sg_copy_from_buffer(scsicmd, sp,
sp               1087 drivers/scsi/aacraid/aachba.c 						 sizeof(sp));
sp               1234 drivers/scsi/atp870u.c 			   atp_dev->sp[c][k] = 0x04;
sp               1332 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x30);
sp               1333 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x31);
sp               1334 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x32);
sp               1335 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x33);
sp               1338 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x30);
sp               1339 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x31);
sp               1340 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x32);
sp               1341 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x33);
sp               1344 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x30);
sp               1345 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x31);
sp               1346 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x32);
sp               1347 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x33);
sp               1350 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x30);
sp               1351 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x31);
sp               1352 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x32);
sp               1353 drivers/scsi/atp870u.c 		atpdev->sp[0][m++] = atp_readb_base(atpdev, 0x33);
sp               1361 drivers/scsi/atp870u.c 		if (atpdev->sp[0][k] > 1)
sp               1364 drivers/scsi/atp870u.c 			if (atpdev->sp[0][k] == 0)
sp               1420 drivers/scsi/atp870u.c 				((u32 *)&atpdev->sp[m][0])[k] = atp_readl_base(atpdev, 0x38);
sp               1432 drivers/scsi/atp870u.c 			if (atpdev->sp[c][k] > 1)
sp               1435 drivers/scsi/atp870u.c 				if (atpdev->sp[c][k] == 0)
sp               1862 drivers/scsi/atp870u.c 		if (dev->sp[c][i] != 0x04)	// force u2
sp               2121 drivers/scsi/atp870u.c 		if ((!is885(dev) && !is880(dev)) || (dev->sp[c][i] == 0x02)) {
sp               2125 drivers/scsi/atp870u.c 			if (dev->sp[c][i] >= 0x03) {
sp                 42 drivers/scsi/atp870u.h 	unsigned char sp[2][16];
sp                 65 drivers/scsi/csiostor/csio_attr.c 	struct csio_service_parms *sp;
sp                 91 drivers/scsi/csiostor/csio_attr.c 	sp = &rn->rn_sparm;
sp                 92 drivers/scsi/csiostor/csio_attr.c 	rport->maxframe_size = ntohs(sp->csp.sp_bb_data);
sp                 93 drivers/scsi/csiostor/csio_attr.c 	if (ntohs(sp->clsp[2].cp_class) & FC_CPC_VALID)
sp               1267 drivers/scsi/ips.c 	ips_stat_t *sp;
sp               1291 drivers/scsi/ips.c 		sp = &ha->sp;
sp               1306 drivers/scsi/ips.c 		scb = (ips_scb_t *) sp->scb_addr;
sp               1331 drivers/scsi/ips.c 	ips_stat_t *sp;
sp               1355 drivers/scsi/ips.c 		sp = &ha->sp;
sp               1376 drivers/scsi/ips.c 		scb = (ips_scb_t *) sp->scb_addr;
sp               3244 drivers/scsi/ips.c ips_map_status(ips_ha_t * ha, ips_scb_t * scb, ips_stat_t * sp)
sp               3450 drivers/scsi/ips.c 	char *sp;
sp               3692 drivers/scsi/ips.c 			sp = (char *) scb->scsi_cmd->sense_buffer;
sp               3694 drivers/scsi/ips.c 			sp[0] = 0x70;	/* Error Code               */
sp               3695 drivers/scsi/ips.c 			sp[2] = ILLEGAL_REQUEST;	/* Sense Key 5 Illegal Req. */
sp               3696 drivers/scsi/ips.c 			sp[7] = 0x0A;	/* Additional Sense Length  */
sp               3697 drivers/scsi/ips.c 			sp[12] = 0x20;	/* ASC = Invalid OpCode     */
sp               3698 drivers/scsi/ips.c 			sp[13] = 0x00;	/* ASCQ                     */
sp               3833 drivers/scsi/ips.c 	ips_stat_t *sp;
sp               3846 drivers/scsi/ips.c 	sp = &ha->sp;
sp               3847 drivers/scsi/ips.c 	sp->residue_len = 0;
sp               3848 drivers/scsi/ips.c 	sp->scb_addr = (void *) scb;
sp               3974 drivers/scsi/ips.c 		ips_map_status(ha, scb, sp);
sp               1017 drivers/scsi/ips.h    ips_stat_t         sp;                 /* Status packer pointer      */
sp                496 drivers/scsi/libfc/fc_disc.c static void fc_disc_gpn_ft_resp(struct fc_seq *sp, struct fc_frame *fp,
sp                568 drivers/scsi/libfc/fc_disc.c static void fc_disc_gpn_id_resp(struct fc_seq *sp, struct fc_frame *fp,
sp                462 drivers/scsi/libfc/fc_exch.c static int fc_seq_send_locked(struct fc_lport *lport, struct fc_seq *sp,
sp                471 drivers/scsi/libfc/fc_exch.c 	ep = fc_seq_exch(sp);
sp                490 drivers/scsi/libfc/fc_exch.c 		sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)),
sp                493 drivers/scsi/libfc/fc_exch.c 		sp->cnt++;
sp                524 drivers/scsi/libfc/fc_exch.c int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp)
sp                528 drivers/scsi/libfc/fc_exch.c 	ep = fc_seq_exch(sp);
sp                530 drivers/scsi/libfc/fc_exch.c 	error = fc_seq_send_locked(lport, sp, fp);
sp                547 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp                549 drivers/scsi/libfc/fc_exch.c 	sp = &ep->seq;
sp                550 drivers/scsi/libfc/fc_exch.c 	sp->ssb_stat = 0;
sp                551 drivers/scsi/libfc/fc_exch.c 	sp->cnt = 0;
sp                552 drivers/scsi/libfc/fc_exch.c 	sp->id = seq_id;
sp                553 drivers/scsi/libfc/fc_exch.c 	return sp;
sp                561 drivers/scsi/libfc/fc_exch.c static struct fc_seq *fc_seq_start_next_locked(struct fc_seq *sp)
sp                563 drivers/scsi/libfc/fc_exch.c 	struct fc_exch *ep = fc_seq_exch(sp);
sp                565 drivers/scsi/libfc/fc_exch.c 	sp = fc_seq_alloc(ep, ep->seq_id++);
sp                567 drivers/scsi/libfc/fc_exch.c 		    ep->f_ctl, sp->id);
sp                568 drivers/scsi/libfc/fc_exch.c 	return sp;
sp                576 drivers/scsi/libfc/fc_exch.c struct fc_seq *fc_seq_start_next(struct fc_seq *sp)
sp                578 drivers/scsi/libfc/fc_exch.c 	struct fc_exch *ep = fc_seq_exch(sp);
sp                581 drivers/scsi/libfc/fc_exch.c 	sp = fc_seq_start_next_locked(sp);
sp                584 drivers/scsi/libfc/fc_exch.c 	return sp;
sp                593 drivers/scsi/libfc/fc_exch.c void fc_seq_set_resp(struct fc_seq *sp,
sp                597 drivers/scsi/libfc/fc_exch.c 	struct fc_exch *ep = fc_seq_exch(sp);
sp                635 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp                650 drivers/scsi/libfc/fc_exch.c 	sp = fc_seq_start_next_locked(&ep->seq);
sp                651 drivers/scsi/libfc/fc_exch.c 	if (!sp)
sp                667 drivers/scsi/libfc/fc_exch.c 			error = fc_seq_send_locked(ep->lp, sp, fp);
sp                725 drivers/scsi/libfc/fc_exch.c static bool fc_invoke_resp(struct fc_exch *ep, struct fc_seq *sp,
sp                741 drivers/scsi/libfc/fc_exch.c 		resp(sp, fp, arg);
sp                764 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp = &ep->seq;
sp                787 drivers/scsi/libfc/fc_exch.c 		fc_invoke_resp(ep, sp, ERR_PTR(-FC_EX_TIMEOUT));
sp                788 drivers/scsi/libfc/fc_exch.c 		fc_seq_set_resp(sp, NULL, ep->arg);
sp                789 drivers/scsi/libfc/fc_exch.c 		fc_seq_exch_abort(sp, 2 * ep->r_a_tov);
sp                964 drivers/scsi/libfc/fc_exch.c void fc_exch_done(struct fc_seq *sp)
sp                966 drivers/scsi/libfc/fc_exch.c 	struct fc_exch *ep = fc_seq_exch(sp);
sp                973 drivers/scsi/libfc/fc_exch.c 	fc_seq_set_resp(sp, NULL, ep->arg);
sp               1041 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp = NULL;
sp               1109 drivers/scsi/libfc/fc_exch.c 		sp = &ep->seq;
sp               1110 drivers/scsi/libfc/fc_exch.c 		sp->ssb_stat |= SSB_ST_RESP;
sp               1111 drivers/scsi/libfc/fc_exch.c 		sp->id = fh->fh_seq_id;
sp               1113 drivers/scsi/libfc/fc_exch.c 		sp = &ep->seq;
sp               1114 drivers/scsi/libfc/fc_exch.c 		if (sp->id != fh->fh_seq_id) {
sp               1131 drivers/scsi/libfc/fc_exch.c 				sp->ssb_stat |= SSB_ST_RESP;
sp               1132 drivers/scsi/libfc/fc_exch.c 				sp->id = fh->fh_seq_id;
sp               1142 drivers/scsi/libfc/fc_exch.c 	WARN_ON(ep != fc_seq_exch(sp));
sp               1148 drivers/scsi/libfc/fc_exch.c 	fr_seq(fp) = sp;
sp               1170 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp = NULL;
sp               1184 drivers/scsi/libfc/fc_exch.c 		sp = &ep->seq;
sp               1191 drivers/scsi/libfc/fc_exch.c 	return sp;
sp               1253 drivers/scsi/libfc/fc_exch.c static void fc_seq_send_last(struct fc_seq *sp, struct fc_frame *fp,
sp               1257 drivers/scsi/libfc/fc_exch.c 	struct fc_exch *ep = fc_seq_exch(sp);
sp               1262 drivers/scsi/libfc/fc_exch.c 	fc_seq_send_locked(ep->lp, sp, fp);
sp               1272 drivers/scsi/libfc/fc_exch.c static void fc_seq_send_ack(struct fc_seq *sp, const struct fc_frame *rx_fp)
sp               1277 drivers/scsi/libfc/fc_exch.c 	struct fc_exch *ep = fc_seq_exch(sp);
sp               1342 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp               1347 drivers/scsi/libfc/fc_exch.c 	sp = fr_seq(rx_fp);
sp               1350 drivers/scsi/libfc/fc_exch.c 		FC_EXCH_DBG(fc_seq_exch(sp),
sp               1413 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp               1440 drivers/scsi/libfc/fc_exch.c 	sp = &ep->seq;
sp               1442 drivers/scsi/libfc/fc_exch.c 	if (sp->ssb_stat & SSB_ST_RESP) {
sp               1443 drivers/scsi/libfc/fc_exch.c 		ap->ba_seq_id = sp->id;
sp               1446 drivers/scsi/libfc/fc_exch.c 		ap->ba_low_seq_cnt = htons(sp->cnt);
sp               1448 drivers/scsi/libfc/fc_exch.c 	sp = fc_seq_start_next_locked(sp);
sp               1449 drivers/scsi/libfc/fc_exch.c 	fc_seq_send_last(sp, fp, FC_RCTL_BA_ACC, FC_TYPE_BLS);
sp               1491 drivers/scsi/libfc/fc_exch.c void fc_seq_release(struct fc_seq *sp)
sp               1493 drivers/scsi/libfc/fc_exch.c 	fc_exch_release(fc_seq_exch(sp));
sp               1510 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp = NULL;
sp               1535 drivers/scsi/libfc/fc_exch.c 		sp = fr_seq(fp);	/* sequence will be held */
sp               1536 drivers/scsi/libfc/fc_exch.c 		ep = fc_seq_exch(sp);
sp               1537 drivers/scsi/libfc/fc_exch.c 		fc_seq_send_ack(sp, fp);
sp               1551 drivers/scsi/libfc/fc_exch.c 		if (!fc_invoke_resp(ep, sp, fp))
sp               1571 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp               1598 drivers/scsi/libfc/fc_exch.c 	sp = &ep->seq;
sp               1600 drivers/scsi/libfc/fc_exch.c 		sp->ssb_stat |= SSB_ST_RESP;
sp               1601 drivers/scsi/libfc/fc_exch.c 		sp->id = fh->fh_seq_id;
sp               1605 drivers/scsi/libfc/fc_exch.c 	fr_seq(fp) = sp;
sp               1613 drivers/scsi/libfc/fc_exch.c 		fc_seq_send_ack(sp, fp);
sp               1620 drivers/scsi/libfc/fc_exch.c 		WARN_ON(fc_seq_exch(sp) != ep);
sp               1639 drivers/scsi/libfc/fc_exch.c 	if (!fc_invoke_resp(ep, sp, fp))
sp               1658 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp               1660 drivers/scsi/libfc/fc_exch.c 	sp = fc_seq_lookup_orig(mp, fp);	/* doesn't hold sequence */
sp               1662 drivers/scsi/libfc/fc_exch.c 	if (!sp)
sp               1682 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp               1727 drivers/scsi/libfc/fc_exch.c 	sp = &ep->seq;
sp               1739 drivers/scsi/libfc/fc_exch.c 	if (!fc_invoke_resp(ep, sp, fp))
sp               1824 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp               1827 drivers/scsi/libfc/fc_exch.c 	sp = fr_seq(rx_fp);
sp               1830 drivers/scsi/libfc/fc_exch.c 		FC_EXCH_DBG(fc_seq_exch(sp),
sp               1856 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp               1859 drivers/scsi/libfc/fc_exch.c 	sp = fr_seq(rx_fp);
sp               1862 drivers/scsi/libfc/fc_exch.c 		FC_EXCH_DBG(fc_seq_exch(sp),
sp               1883 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp;
sp               1892 drivers/scsi/libfc/fc_exch.c 	sp = &ep->seq;
sp               1901 drivers/scsi/libfc/fc_exch.c 	fc_invoke_resp(ep, sp, ERR_PTR(-FC_EX_CLOSED));
sp               1902 drivers/scsi/libfc/fc_exch.c 	fc_seq_set_resp(sp, NULL, ep->arg);
sp               2085 drivers/scsi/libfc/fc_exch.c static void fc_exch_rrq_resp(struct fc_seq *sp, struct fc_frame *fp, void *arg)
sp               2168 drivers/scsi/libfc/fc_exch.c 	struct fc_seq *sp = NULL;
sp               2186 drivers/scsi/libfc/fc_exch.c 	sp = &ep->seq;
sp               2191 drivers/scsi/libfc/fc_exch.c 	sp->cnt++;
sp               2208 drivers/scsi/libfc/fc_exch.c 	return sp;
sp                159 drivers/scsi/libfc/fc_libfc.c 	struct fc_seq *sp;
sp                189 drivers/scsi/libfc/fc_libfc.c 	sp = fr_seq(in_fp);
sp                190 drivers/scsi/libfc/fc_libfc.c 	if (sp) {
sp                191 drivers/scsi/libfc/fc_libfc.c 		fr_seq(fp) = sp;
sp                192 drivers/scsi/libfc/fc_libfc.c 		fh->fh_seq_id = sp->id;
sp                193 drivers/scsi/libfc/fc_libfc.c 		seq_cnt = sp->cnt;
sp                213 drivers/scsi/libfc/fc_libfc.c 	struct fc_seq *sp;
sp                215 drivers/scsi/libfc/fc_libfc.c 	sp = fr_seq(in_fp);
sp                216 drivers/scsi/libfc/fc_libfc.c 	if (sp)
sp                217 drivers/scsi/libfc/fc_libfc.c 		fr_seq(fp) = fc_seq_start_next(sp);
sp                350 drivers/scsi/libfc/fc_lport.c 	struct fc_els_csp *sp;
sp                357 drivers/scsi/libfc/fc_lport.c 	sp = &flogi->fl_csp;
sp                358 drivers/scsi/libfc/fc_lport.c 	sp->sp_hi_ver = 0x20;
sp                359 drivers/scsi/libfc/fc_lport.c 	sp->sp_lo_ver = 0x20;
sp                360 drivers/scsi/libfc/fc_lport.c 	sp->sp_bb_cred = htons(10);	/* this gets set by gateway */
sp                361 drivers/scsi/libfc/fc_lport.c 	sp->sp_bb_data = htons((u16) lport->mfs);
sp                365 drivers/scsi/libfc/fc_lport.c 		sp->sp_features = htons(FC_SP_FT_CIRO);
sp                366 drivers/scsi/libfc/fc_lport.c 		sp->sp_tot_seq = htons(255);	/* seq. we accept */
sp                367 drivers/scsi/libfc/fc_lport.c 		sp->sp_rel_off = htons(0x1f);
sp                368 drivers/scsi/libfc/fc_lport.c 		sp->sp_e_d_tov = htonl(lport->e_d_tov);
sp                939 drivers/scsi/libfc/fc_lport.c 	struct fc_seq *sp = fr_seq(fp);
sp                964 drivers/scsi/libfc/fc_lport.c 	if (sp)
sp                965 drivers/scsi/libfc/fc_lport.c 		fc_exch_done(sp);
sp               1106 drivers/scsi/libfc/fc_lport.c static void fc_lport_ns_resp(struct fc_seq *sp, struct fc_frame *fp,
sp               1182 drivers/scsi/libfc/fc_lport.c static void fc_lport_ms_resp(struct fc_seq *sp, struct fc_frame *fp,
sp               1260 drivers/scsi/libfc/fc_lport.c static void fc_lport_scr_resp(struct fc_seq *sp, struct fc_frame *fp,
sp               1601 drivers/scsi/libfc/fc_lport.c void fc_lport_logo_resp(struct fc_seq *sp, struct fc_frame *fp,
sp               1679 drivers/scsi/libfc/fc_lport.c void fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp,
sp               1872 drivers/scsi/libfc/fc_lport.c static void fc_lport_bsg_resp(struct fc_seq *sp, struct fc_frame *fp,
sp                733 drivers/scsi/libfc/fc_rport.c static void fc_rport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp,
sp                977 drivers/scsi/libfc/fc_rport.c static void fc_rport_plogi_resp(struct fc_seq *sp, struct fc_frame *fp,
sp               1110 drivers/scsi/libfc/fc_rport.c static void fc_rport_prli_resp(struct fc_seq *sp, struct fc_frame *fp,
sp               1310 drivers/scsi/libfc/fc_rport.c static void fc_rport_rtv_resp(struct fc_seq *sp, struct fc_frame *fp,
sp               1445 drivers/scsi/libfc/fc_rport.c static void fc_rport_logo_resp(struct fc_seq *sp, struct fc_frame *fp,
sp               1451 drivers/scsi/libfc/fc_rport.c 	FC_RPORT_ID_DBG(lport, fc_seq_exch(sp)->did,
sp               1493 drivers/scsi/libfc/fc_rport.c static void fc_rport_adisc_resp(struct fc_seq *sp, struct fc_frame *fp,
sp                375 drivers/scsi/lpfc/lpfc_els.c 	struct serv_parm *sp;
sp                379 drivers/scsi/lpfc/lpfc_els.c 	sp = &phba->fc_fabparam;
sp                408 drivers/scsi/lpfc/lpfc_els.c 	rc = lpfc_reg_rpi(phba, vport->vpi, Fabric_DID, (uint8_t *)sp, mbox,
sp                600 drivers/scsi/lpfc/lpfc_els.c 		struct serv_parm *sp)
sp                607 drivers/scsi/lpfc/lpfc_els.c 		memcmp(&vport->fabric_portname, &sp->portName,
sp                609 drivers/scsi/lpfc/lpfc_els.c 		memcmp(&vport->fabric_nodename, &sp->nodeName,
sp                625 drivers/scsi/lpfc/lpfc_els.c 	if (fabric_param_changed && !sp->cmn.clean_address_bit &&
sp                658 drivers/scsi/lpfc/lpfc_els.c 			   struct serv_parm *sp, IOCB_t *irsp)
sp                670 drivers/scsi/lpfc/lpfc_els.c 	phba->fc_edtov = be32_to_cpu(sp->cmn.e_d_tov);
sp                671 drivers/scsi/lpfc/lpfc_els.c 	if (sp->cmn.edtovResolution)	/* E_D_TOV ticks are in nanoseconds */
sp                674 drivers/scsi/lpfc/lpfc_els.c 	phba->fc_edtovResol = sp->cmn.edtovResolution;
sp                675 drivers/scsi/lpfc/lpfc_els.c 	phba->fc_ratov = (be32_to_cpu(sp->cmn.w2.r_a_tov) + 999) / 1000;
sp                684 drivers/scsi/lpfc/lpfc_els.c 	memcpy(&ndlp->nlp_portname, &sp->portName, sizeof(struct lpfc_name));
sp                685 drivers/scsi/lpfc/lpfc_els.c 	memcpy(&ndlp->nlp_nodename, &sp->nodeName, sizeof(struct lpfc_name));
sp                687 drivers/scsi/lpfc/lpfc_els.c 	if (sp->cls1.classValid)
sp                689 drivers/scsi/lpfc/lpfc_els.c 	if (sp->cls2.classValid)
sp                691 drivers/scsi/lpfc/lpfc_els.c 	if (sp->cls3.classValid)
sp                693 drivers/scsi/lpfc/lpfc_els.c 	if (sp->cls4.classValid)
sp                695 drivers/scsi/lpfc/lpfc_els.c 	ndlp->nlp_maxframe = ((sp->cmn.bbRcvSizeMsb & 0x0F) << 8) |
sp                696 drivers/scsi/lpfc/lpfc_els.c 				sp->cmn.bbRcvSizeLsb;
sp                698 drivers/scsi/lpfc/lpfc_els.c 	fabric_param_changed = lpfc_check_clean_addr_bit(vport, sp);
sp                715 drivers/scsi/lpfc/lpfc_els.c 	memcpy(&vport->fabric_portname, &sp->portName,
sp                717 drivers/scsi/lpfc/lpfc_els.c 	memcpy(&vport->fabric_nodename, &sp->nodeName,
sp                719 drivers/scsi/lpfc/lpfc_els.c 	memcpy(&phba->fc_fabparam, sp, sizeof(struct serv_parm));
sp                722 drivers/scsi/lpfc/lpfc_els.c 		if (sp->cmn.response_multiple_NPort) {
sp                727 drivers/scsi/lpfc/lpfc_els.c 					 sp->cmn.response_multiple_NPort);
sp                853 drivers/scsi/lpfc/lpfc_els.c 			  struct serv_parm *sp)
sp                878 drivers/scsi/lpfc/lpfc_els.c 	rc = memcmp(&vport->fc_portname, &sp->portName,
sp                917 drivers/scsi/lpfc/lpfc_els.c 		memcpy(&ndlp->nlp_portname, &sp->portName,
sp                919 drivers/scsi/lpfc/lpfc_els.c 		memcpy(&ndlp->nlp_nodename, &sp->nodeName,
sp                988 drivers/scsi/lpfc/lpfc_els.c 	struct serv_parm *sp;
sp               1114 drivers/scsi/lpfc/lpfc_els.c 	sp = prsp->virt + sizeof(uint32_t);
sp               1121 drivers/scsi/lpfc/lpfc_els.c 			 irsp->un.ulpWord[4], sp->cmn.e_d_tov,
sp               1122 drivers/scsi/lpfc/lpfc_els.c 			 sp->cmn.w2.r_a_tov, sp->cmn.edtovResolution,
sp               1130 drivers/scsi/lpfc/lpfc_els.c 		if (sp->cmn.fPort)
sp               1131 drivers/scsi/lpfc/lpfc_els.c 			rc = lpfc_cmpl_els_flogi_fabric(vport, ndlp, sp, irsp);
sp               1133 drivers/scsi/lpfc/lpfc_els.c 			rc = lpfc_cmpl_els_flogi_nport(vport, ndlp, sp);
sp               1270 drivers/scsi/lpfc/lpfc_els.c 	struct serv_parm *sp;
sp               1293 drivers/scsi/lpfc/lpfc_els.c 	sp = (struct serv_parm *) pcmd;
sp               1296 drivers/scsi/lpfc/lpfc_els.c 	sp->cmn.e_d_tov = 0;
sp               1297 drivers/scsi/lpfc/lpfc_els.c 	sp->cmn.w2.r_a_tov = 0;
sp               1298 drivers/scsi/lpfc/lpfc_els.c 	sp->cmn.virtual_fabric_support = 0;
sp               1299 drivers/scsi/lpfc/lpfc_els.c 	sp->cls1.classValid = 0;
sp               1300 drivers/scsi/lpfc/lpfc_els.c 	if (sp->cmn.fcphLow < FC_PH3)
sp               1301 drivers/scsi/lpfc/lpfc_els.c 		sp->cmn.fcphLow = FC_PH3;
sp               1302 drivers/scsi/lpfc/lpfc_els.c 	if (sp->cmn.fcphHigh < FC_PH3)
sp               1303 drivers/scsi/lpfc/lpfc_els.c 		sp->cmn.fcphHigh = FC_PH3;
sp               1315 drivers/scsi/lpfc/lpfc_els.c 		sp->cls2.classValid = 0;
sp               1316 drivers/scsi/lpfc/lpfc_els.c 		sp->cls2.seqDelivery = 0;
sp               1319 drivers/scsi/lpfc/lpfc_els.c 		sp->cls2.seqDelivery = (sp->cls2.classValid) ? 1 : 0;
sp               1320 drivers/scsi/lpfc/lpfc_els.c 		sp->cls3.seqDelivery = (sp->cls3.classValid) ? 1 : 0;
sp               1322 drivers/scsi/lpfc/lpfc_els.c 			sp->cmn.request_multiple_Nport = 1;
sp               1327 drivers/scsi/lpfc/lpfc_els.c 			sp->cmn.request_multiple_Nport = 0;
sp               1604 drivers/scsi/lpfc/lpfc_els.c 	struct serv_parm *sp;
sp               1621 drivers/scsi/lpfc/lpfc_els.c 	sp = (struct serv_parm *) ((uint8_t *) prsp + sizeof(uint32_t));
sp               1627 drivers/scsi/lpfc/lpfc_els.c 	new_ndlp = lpfc_findnode_wwpn(vport, &sp->portName);
sp               2125 drivers/scsi/lpfc/lpfc_els.c 	struct serv_parm *sp;
sp               2175 drivers/scsi/lpfc/lpfc_els.c 	sp = (struct serv_parm *) pcmd;
sp               2182 drivers/scsi/lpfc/lpfc_els.c 		sp->cmn.altBbCredit = 1;
sp               2184 drivers/scsi/lpfc/lpfc_els.c 	if (sp->cmn.fcphLow < FC_PH_4_3)
sp               2185 drivers/scsi/lpfc/lpfc_els.c 		sp->cmn.fcphLow = FC_PH_4_3;
sp               2187 drivers/scsi/lpfc/lpfc_els.c 	if (sp->cmn.fcphHigh < FC_PH3)
sp               2188 drivers/scsi/lpfc/lpfc_els.c 		sp->cmn.fcphHigh = FC_PH3;
sp               2190 drivers/scsi/lpfc/lpfc_els.c 	sp->cmn.valid_vendor_ver_level = 0;
sp               2191 drivers/scsi/lpfc/lpfc_els.c 	memset(sp->un.vendorVersion, 0, sizeof(sp->un.vendorVersion));
sp               2192 drivers/scsi/lpfc/lpfc_els.c 	sp->cmn.bbRcvSizeMsb &= 0xF;
sp               2202 drivers/scsi/lpfc/lpfc_els.c 		sp->cmn.valid_vendor_ver_level = 1;
sp               2203 drivers/scsi/lpfc/lpfc_els.c 		sp->un.vv.vid = cpu_to_be32(LPFC_VV_EMLX_ID);
sp               2204 drivers/scsi/lpfc/lpfc_els.c 		sp->un.vv.flags = cpu_to_be32(LPFC_VV_SUPPRESS_RSP);
sp               4503 drivers/scsi/lpfc/lpfc_els.c 	struct serv_parm *sp;
sp               4551 drivers/scsi/lpfc/lpfc_els.c 		sp = (struct serv_parm *)pcmd;
sp               4555 drivers/scsi/lpfc/lpfc_els.c 			memcpy(sp, &phba->fc_fabparam,
sp               4559 drivers/scsi/lpfc/lpfc_els.c 			sp->cmn.fPort = 0;
sp               4562 drivers/scsi/lpfc/lpfc_els.c 			sp->cls1.classValid = 0;
sp               4563 drivers/scsi/lpfc/lpfc_els.c 			sp->cls2.classValid = 0;
sp               4564 drivers/scsi/lpfc/lpfc_els.c 			sp->cls3.classValid = 0;
sp               4565 drivers/scsi/lpfc/lpfc_els.c 			sp->cls4.classValid = 0;
sp               4568 drivers/scsi/lpfc/lpfc_els.c 			memcpy(&sp->portName, &vport->fc_sparam.portName,
sp               4570 drivers/scsi/lpfc/lpfc_els.c 			memcpy(&sp->nodeName, &vport->fc_sparam.nodeName,
sp               4576 drivers/scsi/lpfc/lpfc_els.c 			sp->cmn.valid_vendor_ver_level = 0;
sp               4577 drivers/scsi/lpfc/lpfc_els.c 			memset(sp->un.vendorVersion, 0,
sp               4578 drivers/scsi/lpfc/lpfc_els.c 			       sizeof(sp->un.vendorVersion));
sp               4579 drivers/scsi/lpfc/lpfc_els.c 			sp->cmn.bbRcvSizeMsb &= 0xF;
sp               4585 drivers/scsi/lpfc/lpfc_els.c 				sp->cmn.valid_vendor_ver_level = 1;
sp               4586 drivers/scsi/lpfc/lpfc_els.c 				sp->un.vv.vid = cpu_to_be32(LPFC_VV_EMLX_ID);
sp               4587 drivers/scsi/lpfc/lpfc_els.c 				sp->un.vv.flags =
sp               6773 drivers/scsi/lpfc/lpfc_els.c 	struct serv_parm *sp;
sp               6781 drivers/scsi/lpfc/lpfc_els.c 	sp = (struct serv_parm *) lp;
sp               6800 drivers/scsi/lpfc/lpfc_els.c 	(void) lpfc_check_sparm(vport, ndlp, sp, CLASS3, 1);
sp               6807 drivers/scsi/lpfc/lpfc_els.c 	rc = memcmp(&vport->fc_portname, &sp->portName,
sp               6881 drivers/scsi/lpfc/lpfc_els.c 	memcpy(&phba->fc_fabparam, sp, sizeof(struct serv_parm));
sp               9235 drivers/scsi/lpfc/lpfc_els.c 	struct serv_parm *sp;
sp               9283 drivers/scsi/lpfc/lpfc_els.c 	sp = prsp->virt + sizeof(uint32_t);
sp               9284 drivers/scsi/lpfc/lpfc_els.c 	fabric_param_changed = lpfc_check_clean_addr_bit(vport, sp);
sp               9285 drivers/scsi/lpfc/lpfc_els.c 	memcpy(&vport->fabric_portname, &sp->portName,
sp               9287 drivers/scsi/lpfc/lpfc_els.c 	memcpy(&vport->fabric_nodename, &sp->nodeName,
sp               9374 drivers/scsi/lpfc/lpfc_els.c 	struct serv_parm *sp;
sp               9409 drivers/scsi/lpfc/lpfc_els.c 	sp = (struct serv_parm *) pcmd;
sp               9411 drivers/scsi/lpfc/lpfc_els.c 	sp->cmn.e_d_tov = 0;
sp               9412 drivers/scsi/lpfc/lpfc_els.c 	sp->cmn.w2.r_a_tov = 0;
sp               9413 drivers/scsi/lpfc/lpfc_els.c 	sp->cmn.virtual_fabric_support = 0;
sp               9414 drivers/scsi/lpfc/lpfc_els.c 	sp->cls1.classValid = 0;
sp               9415 drivers/scsi/lpfc/lpfc_els.c 	sp->cls2.seqDelivery = 1;
sp               9416 drivers/scsi/lpfc/lpfc_els.c 	sp->cls3.seqDelivery = 1;
sp               9426 drivers/scsi/lpfc/lpfc_els.c 	sp->cmn.valid_vendor_ver_level = 0;
sp               9427 drivers/scsi/lpfc/lpfc_els.c 	memset(sp->un.vendorVersion, 0, sizeof(sp->un.vendorVersion));
sp               3062 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct serv_parm *sp = &vport->fc_sparam;
sp               3079 drivers/scsi/lpfc/lpfc_hbadisc.c 	ed_tov = be32_to_cpu(sp->cmn.e_d_tov);
sp               3080 drivers/scsi/lpfc/lpfc_hbadisc.c 	if (sp->cmn.edtovResolution)	/* E_D_TOV ticks are in nanoseconds */
sp               2536 drivers/scsi/lpfc/lpfc_hw.h 		struct ulp_bde sp; /* This BDE points to struct serv_parm
sp               2593 drivers/scsi/lpfc/lpfc_hw.h 		struct ulp_bde sp;
sp               2785 drivers/scsi/lpfc/lpfc_hw.h 		struct ulp_bde sp;
sp                 76 drivers/scsi/lpfc/lpfc_nportdisc.c 		 struct serv_parm *sp, uint32_t class, int flogi)
sp                 88 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls1.classValid) {
sp                 92 drivers/scsi/lpfc/lpfc_nportdisc.c 			ssp_value = ((sp->cls1.rcvDataSizeMsb << 8) |
sp                 93 drivers/scsi/lpfc/lpfc_nportdisc.c 				     sp->cls1.rcvDataSizeLsb);
sp                 97 drivers/scsi/lpfc/lpfc_nportdisc.c 				sp->cls1.rcvDataSizeLsb =
sp                 99 drivers/scsi/lpfc/lpfc_nportdisc.c 				sp->cls1.rcvDataSizeMsb =
sp                105 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls2.classValid) {
sp                109 drivers/scsi/lpfc/lpfc_nportdisc.c 			ssp_value = ((sp->cls2.rcvDataSizeMsb << 8) |
sp                110 drivers/scsi/lpfc/lpfc_nportdisc.c 				     sp->cls2.rcvDataSizeLsb);
sp                114 drivers/scsi/lpfc/lpfc_nportdisc.c 				sp->cls2.rcvDataSizeLsb =
sp                116 drivers/scsi/lpfc/lpfc_nportdisc.c 				sp->cls2.rcvDataSizeMsb =
sp                122 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls3.classValid) {
sp                126 drivers/scsi/lpfc/lpfc_nportdisc.c 			ssp_value = ((sp->cls3.rcvDataSizeMsb << 8) |
sp                127 drivers/scsi/lpfc/lpfc_nportdisc.c 				     sp->cls3.rcvDataSizeLsb);
sp                131 drivers/scsi/lpfc/lpfc_nportdisc.c 				sp->cls3.rcvDataSizeLsb =
sp                133 drivers/scsi/lpfc/lpfc_nportdisc.c 				sp->cls3.rcvDataSizeMsb =
sp                146 drivers/scsi/lpfc/lpfc_nportdisc.c 	ssp_value = (sp->cmn.bbRcvSizeMsb << 8) | sp->cmn.bbRcvSizeLsb;
sp                148 drivers/scsi/lpfc/lpfc_nportdisc.c 		sp->cmn.bbRcvSizeLsb = hsp->cmn.bbRcvSizeLsb;
sp                149 drivers/scsi/lpfc/lpfc_nportdisc.c 		sp->cmn.bbRcvSizeMsb = (sp->cmn.bbRcvSizeMsb & 0xF0) |
sp                153 drivers/scsi/lpfc/lpfc_nportdisc.c 	memcpy(&ndlp->nlp_nodename, &sp->nodeName, sizeof (struct lpfc_name));
sp                154 drivers/scsi/lpfc/lpfc_nportdisc.c 	memcpy(&ndlp->nlp_portname, &sp->portName, sizeof (struct lpfc_name));
sp                162 drivers/scsi/lpfc/lpfc_nportdisc.c 			 sp->nodeName.u.wwn[0], sp->nodeName.u.wwn[1],
sp                163 drivers/scsi/lpfc/lpfc_nportdisc.c 			 sp->nodeName.u.wwn[2], sp->nodeName.u.wwn[3],
sp                164 drivers/scsi/lpfc/lpfc_nportdisc.c 			 sp->nodeName.u.wwn[4], sp->nodeName.u.wwn[5],
sp                165 drivers/scsi/lpfc/lpfc_nportdisc.c 			 sp->nodeName.u.wwn[6], sp->nodeName.u.wwn[7]);
sp                292 drivers/scsi/lpfc/lpfc_nportdisc.c 	struct serv_parm *sp;
sp                302 drivers/scsi/lpfc/lpfc_nportdisc.c 	sp = (struct serv_parm *) ((uint8_t *) lp + sizeof (uint32_t));
sp                303 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (wwn_to_u64(sp->portName.u.wwn) == 0) {
sp                312 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (wwn_to_u64(sp->nodeName.u.wwn) == 0) {
sp                323 drivers/scsi/lpfc/lpfc_nportdisc.c 	if ((lpfc_check_sparm(vport, ndlp, sp, CLASS3, 0) == 0)) {
sp                341 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (vport->cfg_fcp_class == 2 && sp->cls2.classValid)
sp                347 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls1.classValid)
sp                349 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls2.classValid)
sp                351 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls3.classValid)
sp                353 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls4.classValid)
sp                356 drivers/scsi/lpfc/lpfc_nportdisc.c 		((sp->cmn.bbRcvSizeMsb & 0x0F) << 8) | sp->cmn.bbRcvSizeLsb;
sp                379 drivers/scsi/lpfc/lpfc_nportdisc.c 		    nlp_portwwn != wwn_to_u64(sp->portName.u.wwn))
sp                386 drivers/scsi/lpfc/lpfc_nportdisc.c 					 wwn_to_u64(sp->portName.u.wwn));
sp                405 drivers/scsi/lpfc/lpfc_nportdisc.c 		ed_tov = be32_to_cpu(sp->cmn.e_d_tov);
sp                406 drivers/scsi/lpfc/lpfc_nportdisc.c 		if (sp->cmn.edtovResolution) {
sp                419 drivers/scsi/lpfc/lpfc_nportdisc.c 		memcpy(&phba->fc_fabparam, sp, sizeof(struct serv_parm));
sp                444 drivers/scsi/lpfc/lpfc_nportdisc.c 	    sp->cmn.valid_vendor_ver_level) {
sp                445 drivers/scsi/lpfc/lpfc_nportdisc.c 		vid = be32_to_cpu(sp->un.vv.vid);
sp                446 drivers/scsi/lpfc/lpfc_nportdisc.c 		flag = be32_to_cpu(sp->un.vv.flags);
sp                460 drivers/scsi/lpfc/lpfc_nportdisc.c 			    (uint8_t *) sp, mbox, ndlp->nlp_rpi);
sp                563 drivers/scsi/lpfc/lpfc_nportdisc.c 	struct serv_parm   *sp;
sp                580 drivers/scsi/lpfc/lpfc_nportdisc.c 		sp = (struct serv_parm *) lp;
sp                581 drivers/scsi/lpfc/lpfc_nportdisc.c 		pnn = (struct lpfc_name *) & sp->nodeName;
sp                582 drivers/scsi/lpfc/lpfc_nportdisc.c 		ppn = (struct lpfc_name *) & sp->portName;
sp               1042 drivers/scsi/lpfc/lpfc_nportdisc.c 	struct serv_parm *sp = (struct serv_parm *) (lp + 1);
sp               1052 drivers/scsi/lpfc/lpfc_nportdisc.c 	port_cmp = memcmp(&vport->fc_portname, &sp->portName,
sp               1156 drivers/scsi/lpfc/lpfc_nportdisc.c 	struct serv_parm *sp;
sp               1181 drivers/scsi/lpfc/lpfc_nportdisc.c 	sp = (struct serv_parm *) ((uint8_t *) lp + sizeof (uint32_t));
sp               1185 drivers/scsi/lpfc/lpfc_nportdisc.c 		(wwn_to_u64(sp->portName.u.wwn) == 0 ||
sp               1186 drivers/scsi/lpfc/lpfc_nportdisc.c 		wwn_to_u64(sp->nodeName.u.wwn) == 0)) {
sp               1191 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (!lpfc_check_sparm(vport, ndlp, sp, CLASS3, 0))
sp               1198 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (vport->cfg_fcp_class == 2 && (sp->cls2.classValid))
sp               1204 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls1.classValid)
sp               1206 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls2.classValid)
sp               1208 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls3.classValid)
sp               1210 drivers/scsi/lpfc/lpfc_nportdisc.c 	if (sp->cls4.classValid)
sp               1213 drivers/scsi/lpfc/lpfc_nportdisc.c 		((sp->cmn.bbRcvSizeMsb & 0x0F) << 8) | sp->cmn.bbRcvSizeLsb;
sp               1217 drivers/scsi/lpfc/lpfc_nportdisc.c 		ed_tov = be32_to_cpu(sp->cmn.e_d_tov);
sp               1218 drivers/scsi/lpfc/lpfc_nportdisc.c 		if (sp->cmn.edtovResolution) {
sp               1225 drivers/scsi/lpfc/lpfc_nportdisc.c 		    sp->cmn.valid_vendor_ver_level) {
sp               1226 drivers/scsi/lpfc/lpfc_nportdisc.c 			vid = be32_to_cpu(sp->un.vv.vid);
sp               1227 drivers/scsi/lpfc/lpfc_nportdisc.c 			flag = be32_to_cpu(sp->un.vv.flags);
sp               1241 drivers/scsi/lpfc/lpfc_nportdisc.c 		memcpy(&phba->fc_fabparam, sp, sizeof(struct serv_parm));
sp               1283 drivers/scsi/lpfc/lpfc_nportdisc.c 			 (uint8_t *) sp, mbox, ndlp->nlp_rpi) == 0) {
sp                698 drivers/scsi/qla1280.c 	struct srb *sp = (struct srb *)CMD_SP(cmd);
sp                702 drivers/scsi/qla1280.c 	sp->cmd = cmd;
sp                703 drivers/scsi/qla1280.c 	sp->flags = 0;
sp                704 drivers/scsi/qla1280.c 	sp->wait = NULL;
sp                716 drivers/scsi/qla1280.c 	status = qla1280_64bit_start_scsi(ha, sp);
sp                718 drivers/scsi/qla1280.c 	status = qla1280_32bit_start_scsi(ha, sp);
sp                747 drivers/scsi/qla1280.c _qla1280_wait_for_single_command(struct scsi_qla_host *ha, struct srb *sp,
sp                751 drivers/scsi/qla1280.c 	struct scsi_cmnd *cmd = sp->cmd;
sp                756 drivers/scsi/qla1280.c 	sp->wait = NULL;
sp                765 drivers/scsi/qla1280.c qla1280_wait_for_single_command(struct scsi_qla_host *ha, struct srb *sp)
sp                769 drivers/scsi/qla1280.c 	sp->wait = &wait;
sp                770 drivers/scsi/qla1280.c 	return _qla1280_wait_for_single_command(ha, sp, &wait);
sp                778 drivers/scsi/qla1280.c 	struct srb	*sp;
sp                788 drivers/scsi/qla1280.c 		sp = ha->outstanding_cmds[cnt];
sp                789 drivers/scsi/qla1280.c 		if (sp) {
sp                790 drivers/scsi/qla1280.c 			cmd = sp->cmd;
sp                797 drivers/scsi/qla1280.c 			status = qla1280_wait_for_single_command(ha, sp);
sp                824 drivers/scsi/qla1280.c 	struct srb *sp;
sp                834 drivers/scsi/qla1280.c 	sp = (struct srb *)CMD_SP(cmd);
sp                859 drivers/scsi/qla1280.c 		if (sp == ha->outstanding_cmds[i]) {
sp                861 drivers/scsi/qla1280.c 			sp->wait = &wait; /* we'll wait for it to complete */
sp                886 drivers/scsi/qla1280.c 			qla1280_abort_command(ha, sp, found);
sp                939 drivers/scsi/qla1280.c 		result = _qla1280_wait_for_single_command(ha, sp, &wait);
sp               1242 drivers/scsi/qla1280.c 	struct srb *sp;
sp               1252 drivers/scsi/qla1280.c 		sp = list_entry(done_q->next, struct srb, list);
sp               1254 drivers/scsi/qla1280.c 		list_del(&sp->list);
sp               1256 drivers/scsi/qla1280.c 		cmd = sp->cmd;
sp               1268 drivers/scsi/qla1280.c 			sp->flags &= ~SRB_ABORT_PENDING;
sp               1269 drivers/scsi/qla1280.c 			sp->flags |= SRB_ABORTED;
sp               1281 drivers/scsi/qla1280.c 		if (sp->wait == NULL)
sp               1284 drivers/scsi/qla1280.c 			complete(sp->wait);
sp               1713 drivers/scsi/qla1280.c 	uint8_t *sp, *tbuf;
sp               1786 drivers/scsi/qla1280.c 		sp = (uint8_t *)ha->request_ring;
sp               1788 drivers/scsi/qla1280.c 			if (tbuf[i] != sp[i] && warn++ < 10) {
sp               1794 drivers/scsi/qla1280.c 						__func__, sp[i], tbuf[i]);
sp               2636 drivers/scsi/qla1280.c qla1280_abort_command(struct scsi_qla_host *ha, struct srb * sp, int handle)
sp               2644 drivers/scsi/qla1280.c 	bus = SCSI_BUS_32(sp->cmd);
sp               2645 drivers/scsi/qla1280.c 	target = SCSI_TCN_32(sp->cmd);
sp               2646 drivers/scsi/qla1280.c 	lun = SCSI_LUN_32(sp->cmd);
sp               2648 drivers/scsi/qla1280.c 	sp->flags |= SRB_ABORT_PENDING;
sp               2658 drivers/scsi/qla1280.c 		sp->flags &= ~SRB_ABORT_PENDING;
sp               2738 drivers/scsi/qla1280.c qla1280_64bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp)
sp               2741 drivers/scsi/qla1280.c 	struct scsi_cmnd *cmd = sp->cmd;
sp               2800 drivers/scsi/qla1280.c 	ha->outstanding_cmds[cnt] = sp;
sp               2802 drivers/scsi/qla1280.c 	CMD_HANDLE(sp->cmd) = (unsigned char *)(unsigned long)(cnt + 1);
sp               2804 drivers/scsi/qla1280.c 	dprintk(2, "start: cmd=%p sp=%p CDB=%xm, handle %lx\n", cmd, sp,
sp               2805 drivers/scsi/qla1280.c 		cmd->cmnd[0], (long)CMD_HANDLE(sp->cmd));
sp               2958 drivers/scsi/qla1280.c 	sp->flags |= SRB_SENT;
sp               2992 drivers/scsi/qla1280.c qla1280_32bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp)
sp               2995 drivers/scsi/qla1280.c 	struct scsi_cmnd *cmd = sp->cmd;
sp               3006 drivers/scsi/qla1280.c 	dprintk(1, "32bit_start: cmd=%p sp=%p CDB=%x\n", cmd, sp,
sp               3061 drivers/scsi/qla1280.c 	CMD_HANDLE(sp->cmd) = (unsigned char *) (unsigned long)(cnt + 1);
sp               3062 drivers/scsi/qla1280.c 	ha->outstanding_cmds[cnt] = sp;
sp               3206 drivers/scsi/qla1280.c 	sp->flags |= SRB_SENT;
sp               3343 drivers/scsi/qla1280.c 	struct srb *sp = NULL;
sp               3399 drivers/scsi/qla1280.c 					sp = ha->outstanding_cmds[index];
sp               3401 drivers/scsi/qla1280.c 					sp = NULL;
sp               3403 drivers/scsi/qla1280.c 				if (sp) {
sp               3408 drivers/scsi/qla1280.c 					CMD_RESULT(sp->cmd) = 0;
sp               3409 drivers/scsi/qla1280.c 					CMD_HANDLE(sp->cmd) = COMPLETED_HANDLE;
sp               3412 drivers/scsi/qla1280.c 					list_add_tail(&sp->list, done_q);
sp               3601 drivers/scsi/qla1280.c 	struct srb *sp;
sp               3611 drivers/scsi/qla1280.c 		sp = ha->outstanding_cmds[handle];
sp               3613 drivers/scsi/qla1280.c 		sp = NULL;
sp               3615 drivers/scsi/qla1280.c 	if (!sp) {
sp               3623 drivers/scsi/qla1280.c 	cmd = sp->cmd;
sp               3676 drivers/scsi/qla1280.c 	CMD_HANDLE(sp->cmd) = COMPLETED_HANDLE;
sp               3679 drivers/scsi/qla1280.c 	list_add_tail(&sp->list, done_q);
sp               3697 drivers/scsi/qla1280.c 	struct srb *sp;
sp               3713 drivers/scsi/qla1280.c 		sp = ha->outstanding_cmds[handle];
sp               3715 drivers/scsi/qla1280.c 		sp = NULL;
sp               3717 drivers/scsi/qla1280.c 	if (sp) {
sp               3725 drivers/scsi/qla1280.c 			CMD_RESULT(sp->cmd) = DID_ERROR << 16;
sp               3727 drivers/scsi/qla1280.c 			CMD_RESULT(sp->cmd) = DID_BUS_BUSY << 16;
sp               3730 drivers/scsi/qla1280.c 			CMD_RESULT(sp->cmd) = DID_ERROR << 16;
sp               3733 drivers/scsi/qla1280.c 		CMD_HANDLE(sp->cmd) = COMPLETED_HANDLE;
sp               3736 drivers/scsi/qla1280.c 		list_add_tail(&sp->list, done_q);
sp               3761 drivers/scsi/qla1280.c 	struct srb *sp;
sp               3783 drivers/scsi/qla1280.c 		sp = ha->outstanding_cmds[cnt];
sp               3784 drivers/scsi/qla1280.c 		if (sp) {
sp               3785 drivers/scsi/qla1280.c 			cmd = sp->cmd;
sp               3789 drivers/scsi/qla1280.c 			list_add_tail(&sp->list, &ha->done_q);
sp               3959 drivers/scsi/qla1280.c 	struct srb *sp;
sp               3965 drivers/scsi/qla1280.c 	sp = (struct srb *)CMD_SP(cmd);
sp               3999 drivers/scsi/qla1280.c 	struct srb *sp;
sp               4005 drivers/scsi/qla1280.c 		if ((sp = ha->outstanding_cmds[i]) == NULL)
sp               4007 drivers/scsi/qla1280.c 		if ((cp = sp->cmd) == NULL)
sp                 15 drivers/scsi/qla2xxx/qla_bsg.c void qla2x00_bsg_job_done(srb_t *sp, int res)
sp                 17 drivers/scsi/qla2xxx/qla_bsg.c 	struct bsg_job *bsg_job = sp->u.bsg_job;
sp                 23 drivers/scsi/qla2xxx/qla_bsg.c 	sp->free(sp);
sp                 26 drivers/scsi/qla2xxx/qla_bsg.c void qla2x00_bsg_sp_free(srb_t *sp)
sp                 28 drivers/scsi/qla2xxx/qla_bsg.c 	struct qla_hw_data *ha = sp->vha->hw;
sp                 29 drivers/scsi/qla2xxx/qla_bsg.c 	struct bsg_job *bsg_job = sp->u.bsg_job;
sp                 33 drivers/scsi/qla2xxx/qla_bsg.c 	if (sp->type == SRB_FXIOCB_BCMD) {
sp                 54 drivers/scsi/qla2xxx/qla_bsg.c 	if (sp->type == SRB_CT_CMD ||
sp                 55 drivers/scsi/qla2xxx/qla_bsg.c 	    sp->type == SRB_FXIOCB_BCMD ||
sp                 56 drivers/scsi/qla2xxx/qla_bsg.c 	    sp->type == SRB_ELS_CMD_HST)
sp                 57 drivers/scsi/qla2xxx/qla_bsg.c 		kfree(sp->fcport);
sp                 58 drivers/scsi/qla2xxx/qla_bsg.c 	qla2x00_rel_sp(sp);
sp                253 drivers/scsi/qla2xxx/qla_bsg.c 	srb_t *sp;
sp                367 drivers/scsi/qla2xxx/qla_bsg.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp                368 drivers/scsi/qla2xxx/qla_bsg.c 	if (!sp) {
sp                373 drivers/scsi/qla2xxx/qla_bsg.c 	sp->type =
sp                376 drivers/scsi/qla2xxx/qla_bsg.c 	sp->name =
sp                379 drivers/scsi/qla2xxx/qla_bsg.c 	sp->u.bsg_job = bsg_job;
sp                380 drivers/scsi/qla2xxx/qla_bsg.c 	sp->free = qla2x00_bsg_sp_free;
sp                381 drivers/scsi/qla2xxx/qla_bsg.c 	sp->done = qla2x00_bsg_job_done;
sp                389 drivers/scsi/qla2xxx/qla_bsg.c 	rval = qla2x00_start_sp(sp);
sp                393 drivers/scsi/qla2xxx/qla_bsg.c 		qla2x00_rel_sp(sp);
sp                430 drivers/scsi/qla2xxx/qla_bsg.c 	srb_t *sp;
sp                515 drivers/scsi/qla2xxx/qla_bsg.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp                516 drivers/scsi/qla2xxx/qla_bsg.c 	if (!sp) {
sp                523 drivers/scsi/qla2xxx/qla_bsg.c 	sp->type = SRB_CT_CMD;
sp                524 drivers/scsi/qla2xxx/qla_bsg.c 	sp->name = "bsg_ct";
sp                525 drivers/scsi/qla2xxx/qla_bsg.c 	sp->iocbs = qla24xx_calc_ct_iocbs(req_sg_cnt + rsp_sg_cnt);
sp                526 drivers/scsi/qla2xxx/qla_bsg.c 	sp->u.bsg_job = bsg_job;
sp                527 drivers/scsi/qla2xxx/qla_bsg.c 	sp->free = qla2x00_bsg_sp_free;
sp                528 drivers/scsi/qla2xxx/qla_bsg.c 	sp->done = qla2x00_bsg_job_done;
sp                537 drivers/scsi/qla2xxx/qla_bsg.c 	rval = qla2x00_start_sp(sp);
sp                541 drivers/scsi/qla2xxx/qla_bsg.c 		qla2x00_rel_sp(sp);
sp               1780 drivers/scsi/qla2xxx/qla_bsg.c 	srb_t *sp = NULL;
sp               1898 drivers/scsi/qla2xxx/qla_bsg.c 	sp = qla2x00_get_sp(vha, &(vha->bidir_fcport), GFP_KERNEL);
sp               1899 drivers/scsi/qla2xxx/qla_bsg.c 	if (!sp) {
sp               1907 drivers/scsi/qla2xxx/qla_bsg.c 	sp->u.bsg_job = bsg_job;
sp               1908 drivers/scsi/qla2xxx/qla_bsg.c 	sp->free = qla2x00_bsg_sp_free;
sp               1909 drivers/scsi/qla2xxx/qla_bsg.c 	sp->type = SRB_BIDI_CMD;
sp               1910 drivers/scsi/qla2xxx/qla_bsg.c 	sp->done = qla2x00_bsg_job_done;
sp               1915 drivers/scsi/qla2xxx/qla_bsg.c 	rval = qla2x00_start_bidir(sp, vha, tot_dsds);
sp               1922 drivers/scsi/qla2xxx/qla_bsg.c 	mempool_free(sp, ha->srb_mempool);
sp               1955 drivers/scsi/qla2xxx/qla_bsg.c 	srb_t *sp;
sp               2018 drivers/scsi/qla2xxx/qla_bsg.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               2019 drivers/scsi/qla2xxx/qla_bsg.c 	if (!sp) {
sp               2030 drivers/scsi/qla2xxx/qla_bsg.c 	sp->type = SRB_FXIOCB_BCMD;
sp               2031 drivers/scsi/qla2xxx/qla_bsg.c 	sp->name = "bsg_fx_mgmt";
sp               2032 drivers/scsi/qla2xxx/qla_bsg.c 	sp->iocbs = qla24xx_calc_ct_iocbs(req_sg_cnt + rsp_sg_cnt);
sp               2033 drivers/scsi/qla2xxx/qla_bsg.c 	sp->u.bsg_job = bsg_job;
sp               2034 drivers/scsi/qla2xxx/qla_bsg.c 	sp->free = qla2x00_bsg_sp_free;
sp               2035 drivers/scsi/qla2xxx/qla_bsg.c 	sp->done = qla2x00_bsg_job_done;
sp               2041 drivers/scsi/qla2xxx/qla_bsg.c 	rval = qla2x00_start_sp(sp);
sp               2045 drivers/scsi/qla2xxx/qla_bsg.c 		mempool_free(sp, ha->srb_mempool);
sp               2572 drivers/scsi/qla2xxx/qla_bsg.c 	srb_t *sp;
sp               2585 drivers/scsi/qla2xxx/qla_bsg.c 			sp = req->outstanding_cmds[cnt];
sp               2586 drivers/scsi/qla2xxx/qla_bsg.c 			if (sp) {
sp               2587 drivers/scsi/qla2xxx/qla_bsg.c 				if (((sp->type == SRB_CT_CMD) ||
sp               2588 drivers/scsi/qla2xxx/qla_bsg.c 					(sp->type == SRB_ELS_CMD_HST) ||
sp               2589 drivers/scsi/qla2xxx/qla_bsg.c 					(sp->type == SRB_FXIOCB_BCMD))
sp               2590 drivers/scsi/qla2xxx/qla_bsg.c 					&& (sp->u.bsg_job == bsg_job)) {
sp               2593 drivers/scsi/qla2xxx/qla_bsg.c 					if (ha->isp_ops->abort_command(sp)) {
sp               2617 drivers/scsi/qla2xxx/qla_bsg.c 	sp->free(sp);
sp                336 drivers/scsi/qla2xxx/qla_def.h #define IS_PROT_IO(sp)	(sp->flags & SRB_CRC_CTX_DSD_VALID)
sp                627 drivers/scsi/qla2xxx/qla_def.h 	void (*done)(struct srb *sp, int res);
sp                629 drivers/scsi/qla2xxx/qla_def.h 	void (*free)(struct srb *sp);
sp                637 drivers/scsi/qla2xxx/qla_def.h #define GET_CMD_SP(sp) (sp->u.scmd.cmd)
sp                639 drivers/scsi/qla2xxx/qla_def.h #define GET_CMD_SENSE_LEN(sp) \
sp                640 drivers/scsi/qla2xxx/qla_def.h 	(sp->u.scmd.request_sense_length)
sp                641 drivers/scsi/qla2xxx/qla_def.h #define SET_CMD_SENSE_LEN(sp, len) \
sp                642 drivers/scsi/qla2xxx/qla_def.h 	(sp->u.scmd.request_sense_length = len)
sp                643 drivers/scsi/qla2xxx/qla_def.h #define GET_CMD_SENSE_PTR(sp) \
sp                644 drivers/scsi/qla2xxx/qla_def.h 	(sp->u.scmd.request_sense_ptr)
sp                645 drivers/scsi/qla2xxx/qla_def.h #define SET_CMD_SENSE_PTR(sp, ptr) \
sp                646 drivers/scsi/qla2xxx/qla_def.h 	(sp->u.scmd.request_sense_ptr = ptr)
sp                647 drivers/scsi/qla2xxx/qla_def.h #define GET_FW_SENSE_LEN(sp) \
sp                648 drivers/scsi/qla2xxx/qla_def.h 	(sp->u.scmd.fw_sense_length)
sp                649 drivers/scsi/qla2xxx/qla_def.h #define SET_FW_SENSE_LEN(sp, len) \
sp                650 drivers/scsi/qla2xxx/qla_def.h 	(sp->u.scmd.fw_sense_length = len)
sp               2491 drivers/scsi/qla2xxx/qla_def.h 	srb_t			*sp;
sp               3319 drivers/scsi/qla2xxx/qla_def.h 			srb_t *sp;
sp               3342 drivers/scsi/qla2xxx/qla_def.h 			srb_t *sp;
sp               4569 drivers/scsi/qla2xxx/qla_def.h 	srb_t			*sp;
sp                222 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2x00_sp_compl(srb_t *sp, int);
sp                223 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2xxx_qpair_sp_free_dma(srb_t *sp);
sp                224 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2xxx_qpair_sp_compl(srb_t *sp, int);
sp                253 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2x00_sp_free_dma(srb_t *sp);
sp                282 drivers/scsi/qla2xxx/qla_gbl.h extern int qla2x00_start_scsi(srb_t *sp);
sp                283 drivers/scsi/qla2xxx/qla_gbl.h extern int qla24xx_start_scsi(srb_t *sp);
sp                290 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2x00_init_timer(srb_t *sp, unsigned long tmo);
sp                800 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2x00_sp_free(srb_t *sp);
sp                802 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2x00_bsg_job_done(srb_t *sp, int);
sp                803 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2x00_bsg_sp_free(srb_t *sp);
sp                502 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_async_sns_sp_done(srb_t *sp, int rc)
sp                504 drivers/scsi/qla2xxx/qla_gs.c 	struct scsi_qla_host *vha = sp->vha;
sp                508 drivers/scsi/qla2xxx/qla_gs.c 	sp->rc = rc;
sp                512 drivers/scsi/qla2xxx/qla_gs.c 		    sp->name);
sp                515 drivers/scsi/qla2xxx/qla_gs.c 		    "Async done-%s timeout\n", sp->name);
sp                517 drivers/scsi/qla2xxx/qla_gs.c 		ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.rsp;
sp                519 drivers/scsi/qla2xxx/qla_gs.c 		sp->retry_count++;
sp                520 drivers/scsi/qla2xxx/qla_gs.c 		if (sp->retry_count > 3)
sp                525 drivers/scsi/qla2xxx/qla_gs.c 		    sp->name, rc, sp->retry_count);
sp                531 drivers/scsi/qla2xxx/qla_gs.c 		del_timer(&sp->u.iocb_cmd.timer);
sp                532 drivers/scsi/qla2xxx/qla_gs.c 		e->u.iosb.sp = sp;
sp                542 drivers/scsi/qla2xxx/qla_gs.c 		if (sp->u.iocb_cmd.u.ctarg.req) {
sp                544 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.req_allocated_size,
sp                545 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.req,
sp                546 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.req_dma);
sp                547 drivers/scsi/qla2xxx/qla_gs.c 			sp->u.iocb_cmd.u.ctarg.req = NULL;
sp                550 drivers/scsi/qla2xxx/qla_gs.c 		if (sp->u.iocb_cmd.u.ctarg.rsp) {
sp                552 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.rsp_allocated_size,
sp                553 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.rsp,
sp                554 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.rsp_dma);
sp                555 drivers/scsi/qla2xxx/qla_gs.c 			sp->u.iocb_cmd.u.ctarg.rsp = NULL;
sp                558 drivers/scsi/qla2xxx/qla_gs.c 		sp->free(sp);
sp                563 drivers/scsi/qla2xxx/qla_gs.c 	e->u.iosb.sp = sp;
sp                588 drivers/scsi/qla2xxx/qla_gs.c 	srb_t *sp;
sp                594 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL);
sp                595 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp)
sp                598 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp                599 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "rft_id";
sp                600 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp                602 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev,
sp                603 drivers/scsi/qla2xxx/qla_gs.c 	    sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.req_dma,
sp                605 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_allocated_size = sizeof(struct ct_sns_pkt);
sp                606 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.req) {
sp                613 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev,
sp                614 drivers/scsi/qla2xxx/qla_gs.c 	    sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.rsp_dma,
sp                616 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_allocated_size = sizeof(struct ct_sns_pkt);
sp                617 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.rsp) {
sp                623 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.rsp;
sp                625 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.req;
sp                637 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = RFT_ID_REQ_SIZE;
sp                638 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_size = RFT_ID_RSP_SIZE;
sp                639 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp                640 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp                641 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla2x00_async_sns_sp_done;
sp                645 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, sp->handle, d_id->b24);
sp                647 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp                655 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp                687 drivers/scsi/qla2xxx/qla_gs.c 	srb_t *sp;
sp                690 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL);
sp                691 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp)
sp                694 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp                695 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "rff_id";
sp                696 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp                698 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev,
sp                699 drivers/scsi/qla2xxx/qla_gs.c 	    sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.req_dma,
sp                701 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_allocated_size = sizeof(struct ct_sns_pkt);
sp                702 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.req) {
sp                709 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev,
sp                710 drivers/scsi/qla2xxx/qla_gs.c 	    sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.rsp_dma,
sp                712 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_allocated_size = sizeof(struct ct_sns_pkt);
sp                713 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.rsp) {
sp                719 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.rsp;
sp                721 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.req;
sp                731 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = RFF_ID_REQ_SIZE;
sp                732 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_size = RFF_ID_RSP_SIZE;
sp                733 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp                734 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp                735 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla2x00_async_sns_sp_done;
sp                739 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, sp->handle, d_id->b24, fc4feature, fc4type);
sp                741 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp                751 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp                778 drivers/scsi/qla2xxx/qla_gs.c 	srb_t *sp;
sp                781 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL);
sp                782 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp)
sp                785 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp                786 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "rnid";
sp                787 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp                789 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev,
sp                790 drivers/scsi/qla2xxx/qla_gs.c 	    sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.req_dma,
sp                792 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_allocated_size = sizeof(struct ct_sns_pkt);
sp                793 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.req) {
sp                800 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev,
sp                801 drivers/scsi/qla2xxx/qla_gs.c 	    sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.rsp_dma,
sp                803 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_allocated_size = sizeof(struct ct_sns_pkt);
sp                804 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.rsp) {
sp                810 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.rsp;
sp                812 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.req;
sp                821 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = RNN_ID_REQ_SIZE;
sp                822 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_size = RNN_ID_RSP_SIZE;
sp                823 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp                825 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp                826 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla2x00_async_sns_sp_done;
sp                830 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, sp->handle, d_id->b24);
sp                832 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp                842 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp                886 drivers/scsi/qla2xxx/qla_gs.c 	srb_t *sp;
sp                889 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL);
sp                890 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp)
sp                893 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp                894 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "rsnn_nn";
sp                895 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp                897 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev,
sp                898 drivers/scsi/qla2xxx/qla_gs.c 	    sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.req_dma,
sp                900 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_allocated_size = sizeof(struct ct_sns_pkt);
sp                901 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.req) {
sp                908 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev,
sp                909 drivers/scsi/qla2xxx/qla_gs.c 	    sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.rsp_dma,
sp                911 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_allocated_size = sizeof(struct ct_sns_pkt);
sp                912 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.rsp) {
sp                918 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.rsp;
sp                920 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.req;
sp                935 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = 24 + 1 + ct_req->req.rsnn_nn.name_len;
sp                936 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_size = RSNN_NN_RSP_SIZE;
sp                937 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp                939 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp                940 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla2x00_async_sns_sp_done;
sp                944 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, sp->handle);
sp                946 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp                956 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               2972 drivers/scsi/qla2xxx/qla_gs.c 	    fcport->fw_login_state, ea->rc, ea->sp->gen2, fcport->login_gen,
sp               2973 drivers/scsi/qla2xxx/qla_gs.c 	    ea->sp->gen2, fcport->rscn_gen|ea->sp->gen1, fcport->loop_id);
sp               2978 drivers/scsi/qla2xxx/qla_gs.c 	if (ea->sp->gen2 != fcport->login_gen) {
sp               2984 drivers/scsi/qla2xxx/qla_gs.c 	} else if (ea->sp->gen1 != fcport->rscn_gen) {
sp               2991 drivers/scsi/qla2xxx/qla_gs.c static void qla24xx_async_gpsc_sp_done(srb_t *sp, int res)
sp               2993 drivers/scsi/qla2xxx/qla_gs.c 	struct scsi_qla_host *vha = sp->vha;
sp               2995 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = sp->fcport;
sp               3003 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, fcport->port_name);
sp               3029 drivers/scsi/qla2xxx/qla_gs.c 		    sp->name, fcport->fabric_port_name,
sp               3036 drivers/scsi/qla2xxx/qla_gs.c 	ea.sp = sp;
sp               3040 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               3047 drivers/scsi/qla2xxx/qla_gs.c 	srb_t *sp;
sp               3052 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               3053 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp)
sp               3056 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp               3057 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "gpsc";
sp               3058 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = fcport->rscn_gen;
sp               3059 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fcport->login_gen;
sp               3061 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               3071 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = fcport->ct_desc.ct_sns;
sp               3072 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_dma = fcport->ct_desc.ct_sns_dma;
sp               3073 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = fcport->ct_desc.ct_sns;
sp               3074 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_dma = fcport->ct_desc.ct_sns_dma;
sp               3075 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = GPSC_REQ_SIZE;
sp               3076 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_size = GPSC_RSP_SIZE;
sp               3077 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = vha->mgmt_svr_loop_id;
sp               3079 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp               3080 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla24xx_async_gpsc_sp_done;
sp               3084 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, fcport->port_name, sp->handle,
sp               3088 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp               3094 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               3117 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_sp_unmap(scsi_qla_host_t *vha, srb_t *sp)
sp               3119 drivers/scsi/qla2xxx/qla_gs.c 	struct srb_iocb *c = &sp->u.iocb_cmd;
sp               3121 drivers/scsi/qla2xxx/qla_gs.c 	switch (sp->type) {
sp               3127 drivers/scsi/qla2xxx/qla_gs.c 		if (sp->u.iocb_cmd.u.ctarg.req) {
sp               3129 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.req_allocated_size,
sp               3130 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.req,
sp               3131 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.req_dma);
sp               3132 drivers/scsi/qla2xxx/qla_gs.c 			sp->u.iocb_cmd.u.ctarg.req = NULL;
sp               3135 drivers/scsi/qla2xxx/qla_gs.c 		if (sp->u.iocb_cmd.u.ctarg.rsp) {
sp               3137 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.rsp_allocated_size,
sp               3138 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.rsp,
sp               3139 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.rsp_dma);
sp               3140 drivers/scsi/qla2xxx/qla_gs.c 			sp->u.iocb_cmd.u.ctarg.rsp = NULL;
sp               3145 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               3249 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_async_gpnid_sp_done(srb_t *sp, int res)
sp               3251 drivers/scsi/qla2xxx/qla_gs.c 	struct scsi_qla_host *vha = sp->vha;
sp               3253 drivers/scsi/qla2xxx/qla_gs.c 	    (struct ct_sns_req *)sp->u.iocb_cmd.u.ctarg.req;
sp               3255 drivers/scsi/qla2xxx/qla_gs.c 	    (struct ct_sns_rsp *)sp->u.iocb_cmd.u.ctarg.rsp;
sp               3263 drivers/scsi/qla2xxx/qla_gs.c 		    sp->name, res, sp->gen1, &ct_req->req.port_id.port_id,
sp               3268 drivers/scsi/qla2xxx/qla_gs.c 		    sp->name, sp->gen1, &ct_req->req.port_id.port_id,
sp               3273 drivers/scsi/qla2xxx/qla_gs.c 	ea.sp = sp;
sp               3278 drivers/scsi/qla2xxx/qla_gs.c 	list_del(&sp->elem);
sp               3283 drivers/scsi/qla2xxx/qla_gs.c 			qla24xx_post_gpnid_work(sp->vha, &ea.id);
sp               3284 drivers/scsi/qla2xxx/qla_gs.c 			sp->free(sp);
sp               3287 drivers/scsi/qla2xxx/qla_gs.c 	} else if (sp->gen1) {
sp               3289 drivers/scsi/qla2xxx/qla_gs.c 		qla24xx_post_gpnid_work(sp->vha, &ea.id);
sp               3290 drivers/scsi/qla2xxx/qla_gs.c 		sp->free(sp);
sp               3300 drivers/scsi/qla2xxx/qla_gs.c 				  sp->u.iocb_cmd.u.ctarg.req_allocated_size,
sp               3301 drivers/scsi/qla2xxx/qla_gs.c 				  sp->u.iocb_cmd.u.ctarg.req,
sp               3302 drivers/scsi/qla2xxx/qla_gs.c 				  sp->u.iocb_cmd.u.ctarg.req_dma);
sp               3303 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.req = NULL;
sp               3306 drivers/scsi/qla2xxx/qla_gs.c 				  sp->u.iocb_cmd.u.ctarg.rsp_allocated_size,
sp               3307 drivers/scsi/qla2xxx/qla_gs.c 				  sp->u.iocb_cmd.u.ctarg.rsp,
sp               3308 drivers/scsi/qla2xxx/qla_gs.c 				  sp->u.iocb_cmd.u.ctarg.rsp_dma);
sp               3309 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.rsp = NULL;
sp               3311 drivers/scsi/qla2xxx/qla_gs.c 		sp->free(sp);
sp               3315 drivers/scsi/qla2xxx/qla_gs.c 	e->u.iosb.sp = sp;
sp               3324 drivers/scsi/qla2xxx/qla_gs.c 	srb_t *sp, *tsp;
sp               3331 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL);
sp               3332 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp)
sp               3335 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp               3336 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "gpnid";
sp               3337 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.id = *id;
sp               3338 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = 0;
sp               3339 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               3346 drivers/scsi/qla2xxx/qla_gs.c 			sp->free(sp);
sp               3350 drivers/scsi/qla2xxx/qla_gs.c 	list_add_tail(&sp->elem, &vha->gpnid_list);
sp               3353 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev,
sp               3354 drivers/scsi/qla2xxx/qla_gs.c 		sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.req_dma,
sp               3356 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_allocated_size = sizeof(struct ct_sns_pkt);
sp               3357 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.req) {
sp               3363 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev,
sp               3364 drivers/scsi/qla2xxx/qla_gs.c 		sizeof(struct ct_sns_pkt), &sp->u.iocb_cmd.u.ctarg.rsp_dma,
sp               3366 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_allocated_size = sizeof(struct ct_sns_pkt);
sp               3367 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.rsp) {
sp               3373 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.rsp;
sp               3376 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.req;
sp               3383 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = GPN_ID_REQ_SIZE;
sp               3384 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_size = GPN_ID_RSP_SIZE;
sp               3385 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp               3387 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp               3388 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla2x00_async_gpnid_sp_done;
sp               3391 drivers/scsi/qla2xxx/qla_gs.c 	    "Async-%s hdl=%x ID %3phC.\n", sp->name,
sp               3392 drivers/scsi/qla2xxx/qla_gs.c 	    sp->handle, &ct_req->req.port_id.port_id);
sp               3394 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp               3402 drivers/scsi/qla2xxx/qla_gs.c 	list_del(&sp->elem);
sp               3405 drivers/scsi/qla2xxx/qla_gs.c 	if (sp->u.iocb_cmd.u.ctarg.req) {
sp               3408 drivers/scsi/qla2xxx/qla_gs.c 			sp->u.iocb_cmd.u.ctarg.req,
sp               3409 drivers/scsi/qla2xxx/qla_gs.c 			sp->u.iocb_cmd.u.ctarg.req_dma);
sp               3410 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.req = NULL;
sp               3412 drivers/scsi/qla2xxx/qla_gs.c 	if (sp->u.iocb_cmd.u.ctarg.rsp) {
sp               3415 drivers/scsi/qla2xxx/qla_gs.c 			sp->u.iocb_cmd.u.ctarg.rsp,
sp               3416 drivers/scsi/qla2xxx/qla_gs.c 			sp->u.iocb_cmd.u.ctarg.rsp_dma);
sp               3417 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.rsp = NULL;
sp               3420 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               3432 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_async_gffid_sp_done(srb_t *sp, int res)
sp               3434 drivers/scsi/qla2xxx/qla_gs.c 	struct scsi_qla_host *vha = sp->vha;
sp               3435 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = sp->fcport;
sp               3441 drivers/scsi/qla2xxx/qla_gs.c 	       sp->name, res, fcport->d_id.b24, fcport->port_name);
sp               3467 drivers/scsi/qla2xxx/qla_gs.c 	ea.sp = sp;
sp               3468 drivers/scsi/qla2xxx/qla_gs.c 	ea.fcport = sp->fcport;
sp               3472 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               3480 drivers/scsi/qla2xxx/qla_gs.c 	srb_t *sp;
sp               3485 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               3486 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp)
sp               3490 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp               3491 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "gffid";
sp               3492 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = fcport->rscn_gen;
sp               3493 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fcport->login_gen;
sp               3495 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp               3496 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               3506 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = fcport->ct_desc.ct_sns;
sp               3507 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_dma = fcport->ct_desc.ct_sns_dma;
sp               3508 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = fcport->ct_desc.ct_sns;
sp               3509 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_dma = fcport->ct_desc.ct_sns_dma;
sp               3510 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = GFF_ID_REQ_SIZE;
sp               3511 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_size = GFF_ID_RSP_SIZE;
sp               3512 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp               3514 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla24xx_async_gffid_sp_done;
sp               3517 drivers/scsi/qla2xxx/qla_gs.c 	    "Async-%s hdl=%x  %8phC.\n", sp->name,
sp               3518 drivers/scsi/qla2xxx/qla_gs.c 	    sp->handle, fcport->port_name);
sp               3520 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp               3526 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               3556 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp)
sp               3569 drivers/scsi/qla2xxx/qla_gs.c 	if (sp->gen1 != vha->hw->base_qpair->chip_reset) {
sp               3572 drivers/scsi/qla2xxx/qla_gs.c 		    sp->name, sp->gen1, vha->hw->base_qpair->chip_reset);
sp               3576 drivers/scsi/qla2xxx/qla_gs.c 	rc = sp->rc;
sp               3710 drivers/scsi/qla2xxx/qla_gs.c 	qla24xx_sp_unmap(vha, sp);
sp               3727 drivers/scsi/qla2xxx/qla_gs.c     srb_t *sp, int cmd)
sp               3738 drivers/scsi/qla2xxx/qla_gs.c 	e->u.iosb.sp = sp;
sp               3744 drivers/scsi/qla2xxx/qla_gs.c     srb_t *sp, int cmd)
sp               3756 drivers/scsi/qla2xxx/qla_gs.c 	e->u.gpnft.sp = sp;
sp               3762 drivers/scsi/qla2xxx/qla_gs.c 	struct srb *sp)
sp               3767 drivers/scsi/qla2xxx/qla_gs.c 		(struct ct_sns_req *)sp->u.iocb_cmd.u.ctarg.req;
sp               3769 drivers/scsi/qla2xxx/qla_gs.c 		(struct ct_sns_gpnft_rsp *)sp->u.iocb_cmd.u.ctarg.rsp;
sp               3773 drivers/scsi/qla2xxx/qla_gs.c 	u8 fc4_type = sp->gen2;
sp               3857 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_async_gpnft_gnnft_sp_done(srb_t *sp, int res)
sp               3859 drivers/scsi/qla2xxx/qla_gs.c 	struct scsi_qla_host *vha = sp->vha;
sp               3861 drivers/scsi/qla2xxx/qla_gs.c 		(struct ct_sns_req *)sp->u.iocb_cmd.u.ctarg.req;
sp               3863 drivers/scsi/qla2xxx/qla_gs.c 	u8 fc4_type = sp->gen2;
sp               3870 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, sp->gen2);
sp               3872 drivers/scsi/qla2xxx/qla_gs.c 	del_timer(&sp->u.iocb_cmd.timer);
sp               3873 drivers/scsi/qla2xxx/qla_gs.c 	sp->rc = res;
sp               3876 drivers/scsi/qla2xxx/qla_gs.c 		const char *name = sp->name;
sp               3883 drivers/scsi/qla2xxx/qla_gs.c 		rc = qla2x00_post_gnnft_gpnft_done_work(vha, sp,
sp               3887 drivers/scsi/qla2xxx/qla_gs.c 			qla24xx_sp_unmap(vha, sp);
sp               3907 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_find_free_fcp_nvme_slot(vha, sp);
sp               3915 drivers/scsi/qla2xxx/qla_gs.c 		sp->rc = res;
sp               3916 drivers/scsi/qla2xxx/qla_gs.c 		rc = qla2x00_post_nvme_gpnft_work(vha, sp, QLA_EVT_GPNFT);
sp               3918 drivers/scsi/qla2xxx/qla_gs.c 			qla24xx_sp_unmap(vha, sp);
sp               3926 drivers/scsi/qla2xxx/qla_gs.c 		rc = qla2x00_post_gnnft_gpnft_done_work(vha, sp,
sp               3929 drivers/scsi/qla2xxx/qla_gs.c 		rc = qla2x00_post_gnnft_gpnft_done_work(vha, sp,
sp               3934 drivers/scsi/qla2xxx/qla_gs.c 		qla24xx_sp_unmap(vha, sp);
sp               3947 drivers/scsi/qla2xxx/qla_gs.c static int qla24xx_async_gnnft(scsi_qla_host_t *vha, struct srb *sp,
sp               3962 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp->u.iocb_cmd.u.ctarg.req || !sp->u.iocb_cmd.u.ctarg.rsp) {
sp               3965 drivers/scsi/qla2xxx/qla_gs.c 		    __func__, sp->u.iocb_cmd.u.ctarg.req,
sp               3966 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.rsp);
sp               3978 drivers/scsi/qla2xxx/qla_gs.c 	    __func__, fc4_type, sp->name, sp->u.iocb_cmd.u.ctarg.rsp_size,
sp               3979 drivers/scsi/qla2xxx/qla_gs.c 	     sp->u.iocb_cmd.u.ctarg.req_size);
sp               3981 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp               3982 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "gnnft";
sp               3983 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = vha->hw->base_qpair->chip_reset;
sp               3984 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fc4_type;
sp               3986 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp               3987 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               3989 drivers/scsi/qla2xxx/qla_gs.c 	memset(sp->u.iocb_cmd.u.ctarg.rsp, 0, sp->u.iocb_cmd.u.ctarg.rsp_size);
sp               3990 drivers/scsi/qla2xxx/qla_gs.c 	memset(sp->u.iocb_cmd.u.ctarg.req, 0, sp->u.iocb_cmd.u.ctarg.req_size);
sp               3992 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.req;
sp               3995 drivers/scsi/qla2xxx/qla_gs.c 	    sp->u.iocb_cmd.u.ctarg.rsp_size);
sp               4000 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = GNN_FT_REQ_SIZE;
sp               4001 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp               4003 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla2x00_async_gpnft_gnnft_sp_done;
sp               4006 drivers/scsi/qla2xxx/qla_gs.c 	    "Async-%s hdl=%x FC4Type %x.\n", sp->name,
sp               4007 drivers/scsi/qla2xxx/qla_gs.c 	    sp->handle, ct_req->req.gpn_ft.port_type);
sp               4009 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp               4017 drivers/scsi/qla2xxx/qla_gs.c 	if (sp->u.iocb_cmd.u.ctarg.req) {
sp               4019 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.req_allocated_size,
sp               4020 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.req,
sp               4021 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.req_dma);
sp               4022 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.req = NULL;
sp               4024 drivers/scsi/qla2xxx/qla_gs.c 	if (sp->u.iocb_cmd.u.ctarg.rsp) {
sp               4026 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.rsp_allocated_size,
sp               4027 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.rsp,
sp               4028 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.rsp_dma);
sp               4029 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.rsp = NULL;
sp               4032 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               4048 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_async_gpnft_done(scsi_qla_host_t *vha, srb_t *sp)
sp               4052 drivers/scsi/qla2xxx/qla_gs.c 	qla24xx_async_gnnft(vha, sp, sp->gen2);
sp               4056 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gpnft(scsi_qla_host_t *vha, u8 fc4_type, srb_t *sp)
sp               4083 drivers/scsi/qla2xxx/qla_gs.c 		if (sp)
sp               4084 drivers/scsi/qla2xxx/qla_gs.c 			sp->free(sp); /* should not happen */
sp               4086 drivers/scsi/qla2xxx/qla_gs.c 		sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL);
sp               4087 drivers/scsi/qla2xxx/qla_gs.c 		if (!sp) {
sp               4094 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.req = dma_alloc_coherent(&vha->hw->pdev->dev,
sp               4096 drivers/scsi/qla2xxx/qla_gs.c 								&sp->u.iocb_cmd.u.ctarg.req_dma,
sp               4098 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.req_allocated_size = sizeof(struct ct_sns_pkt);
sp               4099 drivers/scsi/qla2xxx/qla_gs.c 		if (!sp->u.iocb_cmd.u.ctarg.req) {
sp               4105 drivers/scsi/qla2xxx/qla_gs.c 			qla2x00_rel_sp(sp);
sp               4108 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.req_size = GPN_FT_REQ_SIZE;
sp               4114 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.rsp = dma_alloc_coherent(&vha->hw->pdev->dev,
sp               4116 drivers/scsi/qla2xxx/qla_gs.c 								&sp->u.iocb_cmd.u.ctarg.rsp_dma,
sp               4118 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.rsp_allocated_size = rspsz;
sp               4119 drivers/scsi/qla2xxx/qla_gs.c 		if (!sp->u.iocb_cmd.u.ctarg.rsp) {
sp               4126 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.req_allocated_size,
sp               4127 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.req,
sp               4128 drivers/scsi/qla2xxx/qla_gs.c 			    sp->u.iocb_cmd.u.ctarg.req_dma);
sp               4129 drivers/scsi/qla2xxx/qla_gs.c 			sp->u.iocb_cmd.u.ctarg.req = NULL;
sp               4130 drivers/scsi/qla2xxx/qla_gs.c 			qla2x00_rel_sp(sp);
sp               4133 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.rsp_size = rspsz;
sp               4139 drivers/scsi/qla2xxx/qla_gs.c 	} else if (!sp) {
sp               4145 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp               4146 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "gpnft";
sp               4147 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = vha->hw->base_qpair->chip_reset;
sp               4148 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fc4_type;
sp               4150 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp               4151 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               4153 drivers/scsi/qla2xxx/qla_gs.c 	rspsz = sp->u.iocb_cmd.u.ctarg.rsp_size;
sp               4154 drivers/scsi/qla2xxx/qla_gs.c 	memset(sp->u.iocb_cmd.u.ctarg.rsp, 0, sp->u.iocb_cmd.u.ctarg.rsp_size);
sp               4155 drivers/scsi/qla2xxx/qla_gs.c 	memset(sp->u.iocb_cmd.u.ctarg.req, 0, sp->u.iocb_cmd.u.ctarg.req_size);
sp               4157 drivers/scsi/qla2xxx/qla_gs.c 	ct_sns = (struct ct_sns_pkt *)sp->u.iocb_cmd.u.ctarg.req;
sp               4164 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp               4166 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla2x00_async_gpnft_gnnft_sp_done;
sp               4169 drivers/scsi/qla2xxx/qla_gs.c 	    "Async-%s hdl=%x FC4Type %x.\n", sp->name,
sp               4170 drivers/scsi/qla2xxx/qla_gs.c 	    sp->handle, ct_req->req.gpn_ft.port_type);
sp               4172 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp               4180 drivers/scsi/qla2xxx/qla_gs.c 	if (sp->u.iocb_cmd.u.ctarg.req) {
sp               4182 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.req_allocated_size,
sp               4183 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.req,
sp               4184 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.req_dma);
sp               4185 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.req = NULL;
sp               4187 drivers/scsi/qla2xxx/qla_gs.c 	if (sp->u.iocb_cmd.u.ctarg.rsp) {
sp               4189 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.rsp_allocated_size,
sp               4190 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.rsp,
sp               4191 drivers/scsi/qla2xxx/qla_gs.c 		    sp->u.iocb_cmd.u.ctarg.rsp_dma);
sp               4192 drivers/scsi/qla2xxx/qla_gs.c 		sp->u.iocb_cmd.u.ctarg.rsp = NULL;
sp               4195 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               4235 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_async_gnnid_sp_done(srb_t *sp, int res)
sp               4237 drivers/scsi/qla2xxx/qla_gs.c 	struct scsi_qla_host *vha = sp->vha;
sp               4238 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = sp->fcport;
sp               4250 drivers/scsi/qla2xxx/qla_gs.c 	ea.sp = sp;
sp               4255 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, fcport->port_name, fcport->node_name);
sp               4259 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               4266 drivers/scsi/qla2xxx/qla_gs.c 	srb_t *sp;
sp               4272 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
sp               4273 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp)
sp               4277 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp               4278 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "gnnid";
sp               4279 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = fcport->rscn_gen;
sp               4280 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fcport->login_gen;
sp               4282 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp               4283 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               4294 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = fcport->ct_desc.ct_sns;
sp               4295 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_dma = fcport->ct_desc.ct_sns_dma;
sp               4296 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = fcport->ct_desc.ct_sns;
sp               4297 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_dma = fcport->ct_desc.ct_sns_dma;
sp               4298 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = GNN_ID_REQ_SIZE;
sp               4299 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_size = GNN_ID_RSP_SIZE;
sp               4300 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp               4302 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla2x00_async_gnnid_sp_done;
sp               4306 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, fcport->port_name,
sp               4307 drivers/scsi/qla2xxx/qla_gs.c 	    sp->handle, fcport->loop_id, fcport->d_id.b24);
sp               4309 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp               4315 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               4347 drivers/scsi/qla2xxx/qla_gs.c 	    fcport->fw_login_state, ea->rc, fcport->login_gen, ea->sp->gen2,
sp               4348 drivers/scsi/qla2xxx/qla_gs.c 	    fcport->rscn_gen, ea->sp->gen1, vha->fcport_count);
sp               4353 drivers/scsi/qla2xxx/qla_gs.c 	if (ea->sp->gen2 != fcport->login_gen) {
sp               4359 drivers/scsi/qla2xxx/qla_gs.c 	} else if (ea->sp->gen1 != fcport->rscn_gen) {
sp               4366 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_async_gfpnid_sp_done(srb_t *sp, int res)
sp               4368 drivers/scsi/qla2xxx/qla_gs.c 	struct scsi_qla_host *vha = sp->vha;
sp               4369 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = sp->fcport;
sp               4380 drivers/scsi/qla2xxx/qla_gs.c 	ea.sp = sp;
sp               4385 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, fcport->port_name, fcport->fabric_port_name);
sp               4389 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp               4396 drivers/scsi/qla2xxx/qla_gs.c 	srb_t *sp;
sp               4401 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
sp               4402 drivers/scsi/qla2xxx/qla_gs.c 	if (!sp)
sp               4405 drivers/scsi/qla2xxx/qla_gs.c 	sp->type = SRB_CT_PTHRU_CMD;
sp               4406 drivers/scsi/qla2xxx/qla_gs.c 	sp->name = "gfpnid";
sp               4407 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = fcport->rscn_gen;
sp               4408 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fcport->login_gen;
sp               4410 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp               4411 drivers/scsi/qla2xxx/qla_gs.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               4422 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = fcport->ct_desc.ct_sns;
sp               4423 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_dma = fcport->ct_desc.ct_sns_dma;
sp               4424 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = fcport->ct_desc.ct_sns;
sp               4425 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_dma = fcport->ct_desc.ct_sns_dma;
sp               4426 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_size = GFPN_ID_REQ_SIZE;
sp               4427 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_size = GFPN_ID_RSP_SIZE;
sp               4428 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.nport_handle = NPH_SNS;
sp               4430 drivers/scsi/qla2xxx/qla_gs.c 	sp->done = qla2x00_async_gfpnid_sp_done;
sp               4434 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, fcport->port_name,
sp               4435 drivers/scsi/qla2xxx/qla_gs.c 	    sp->handle, fcport->loop_id, fcport->d_id.b24);
sp               4437 drivers/scsi/qla2xxx/qla_gs.c 	rval = qla2x00_start_sp(sp);
sp               4444 drivers/scsi/qla2xxx/qla_gs.c 	sp->free(sp);
sp                 51 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp = from_timer(sp, t, u.iocb_cmd.timer);
sp                 55 drivers/scsi/qla2xxx/qla_init.c 	struct qla_hw_data *ha = sp->vha->hw;
sp                 59 drivers/scsi/qla2xxx/qla_init.c 	req = sp->qpair->req;
sp                 60 drivers/scsi/qla2xxx/qla_init.c 	req->outstanding_cmds[sp->handle] = NULL;
sp                 61 drivers/scsi/qla2xxx/qla_init.c 	iocb = &sp->u.iocb_cmd;
sp                 63 drivers/scsi/qla2xxx/qla_init.c 	iocb->timeout(sp);
sp                 66 drivers/scsi/qla2xxx/qla_init.c void qla2x00_sp_free(srb_t *sp)
sp                 68 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *iocb = &sp->u.iocb_cmd;
sp                 71 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_rel_sp(sp);
sp                 98 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp = data;
sp                 99 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *abt = &sp->u.iocb_cmd;
sp                100 drivers/scsi/qla2xxx/qla_init.c 	struct qla_qpair *qpair = sp->qpair;
sp                104 drivers/scsi/qla2xxx/qla_init.c 	if (sp->cmd_sp)
sp                105 drivers/scsi/qla2xxx/qla_init.c 		ql_dbg(ql_dbg_async, sp->vha, 0x507c,
sp                107 drivers/scsi/qla2xxx/qla_init.c 		    sp->cmd_sp->handle, sp->cmd_sp->type,
sp                108 drivers/scsi/qla2xxx/qla_init.c 		    sp->handle, sp->type);
sp                110 drivers/scsi/qla2xxx/qla_init.c 		ql_dbg(ql_dbg_async, sp->vha, 0x507c,
sp                112 drivers/scsi/qla2xxx/qla_init.c 		    sp->handle, sp->type);
sp                116 drivers/scsi/qla2xxx/qla_init.c 		if (sp->cmd_sp && (qpair->req->outstanding_cmds[handle] ==
sp                117 drivers/scsi/qla2xxx/qla_init.c 		    sp->cmd_sp))
sp                121 drivers/scsi/qla2xxx/qla_init.c 		if (qpair->req->outstanding_cmds[handle] == sp) {
sp                128 drivers/scsi/qla2xxx/qla_init.c 	if (sp->cmd_sp)
sp                129 drivers/scsi/qla2xxx/qla_init.c 		sp->cmd_sp->done(sp->cmd_sp, QLA_OS_TIMER_EXPIRED);
sp                132 drivers/scsi/qla2xxx/qla_init.c 	sp->done(sp, QLA_OS_TIMER_EXPIRED);
sp                135 drivers/scsi/qla2xxx/qla_init.c static void qla24xx_abort_sp_done(srb_t *sp, int res)
sp                137 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *abt = &sp->u.iocb_cmd;
sp                139 drivers/scsi/qla2xxx/qla_init.c 	del_timer(&sp->u.iocb_cmd.timer);
sp                140 drivers/scsi/qla2xxx/qla_init.c 	if (sp->flags & SRB_WAKEUP_ON_COMP)
sp                143 drivers/scsi/qla2xxx/qla_init.c 		sp->free(sp);
sp                150 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp;
sp                153 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport,
sp                155 drivers/scsi/qla2xxx/qla_init.c 	if (!sp)
sp                158 drivers/scsi/qla2xxx/qla_init.c 	abt_iocb = &sp->u.iocb_cmd;
sp                159 drivers/scsi/qla2xxx/qla_init.c 	sp->type = SRB_ABT_CMD;
sp                160 drivers/scsi/qla2xxx/qla_init.c 	sp->name = "abort";
sp                161 drivers/scsi/qla2xxx/qla_init.c 	sp->qpair = cmd_sp->qpair;
sp                162 drivers/scsi/qla2xxx/qla_init.c 	sp->cmd_sp = cmd_sp;
sp                164 drivers/scsi/qla2xxx/qla_init.c 		sp->flags = SRB_WAKEUP_ON_COMP;
sp                169 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_init_timer(sp, 42);
sp                174 drivers/scsi/qla2xxx/qla_init.c 	sp->done = qla24xx_abort_sp_done;
sp                180 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_start_sp(sp);
sp                182 drivers/scsi/qla2xxx/qla_init.c 		sp->free(sp);
sp                190 drivers/scsi/qla2xxx/qla_init.c 		sp->free(sp);
sp                199 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp = data;
sp                200 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport = sp->fcport;
sp                201 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp                208 drivers/scsi/qla2xxx/qla_init.c 		    sp->name, sp->handle, fcport->d_id.b24, fcport->port_name);
sp                213 drivers/scsi/qla2xxx/qla_init.c 		    sp->name, sp->handle);
sp                216 drivers/scsi/qla2xxx/qla_init.c 	switch (sp->type) {
sp                218 drivers/scsi/qla2xxx/qla_init.c 		rc = qla24xx_async_abort_cmd(sp, false);
sp                225 drivers/scsi/qla2xxx/qla_init.c 			spin_lock_irqsave(sp->qpair->qp_lock_ptr, flags);
sp                226 drivers/scsi/qla2xxx/qla_init.c 			for (h = 1; h < sp->qpair->req->num_outstanding_cmds;
sp                228 drivers/scsi/qla2xxx/qla_init.c 				if (sp->qpair->req->outstanding_cmds[h] ==
sp                229 drivers/scsi/qla2xxx/qla_init.c 				    sp) {
sp                230 drivers/scsi/qla2xxx/qla_init.c 					sp->qpair->req->outstanding_cmds[h] =
sp                235 drivers/scsi/qla2xxx/qla_init.c 			spin_unlock_irqrestore(sp->qpair->qp_lock_ptr, flags);
sp                236 drivers/scsi/qla2xxx/qla_init.c 			sp->done(sp, QLA_FUNCTION_TIMEOUT);
sp                246 drivers/scsi/qla2xxx/qla_init.c 		rc = qla24xx_async_abort_cmd(sp, false);
sp                248 drivers/scsi/qla2xxx/qla_init.c 			spin_lock_irqsave(sp->qpair->qp_lock_ptr, flags);
sp                249 drivers/scsi/qla2xxx/qla_init.c 			for (h = 1; h < sp->qpair->req->num_outstanding_cmds;
sp                251 drivers/scsi/qla2xxx/qla_init.c 				if (sp->qpair->req->outstanding_cmds[h] ==
sp                252 drivers/scsi/qla2xxx/qla_init.c 				    sp) {
sp                253 drivers/scsi/qla2xxx/qla_init.c 					sp->qpair->req->outstanding_cmds[h] =
sp                258 drivers/scsi/qla2xxx/qla_init.c 			spin_unlock_irqrestore(sp->qpair->qp_lock_ptr, flags);
sp                259 drivers/scsi/qla2xxx/qla_init.c 			sp->done(sp, QLA_FUNCTION_TIMEOUT);
sp                264 drivers/scsi/qla2xxx/qla_init.c 		sp->done(sp, QLA_FUNCTION_TIMEOUT);
sp                269 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_login_sp_done(srb_t *sp, int res)
sp                271 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vha = sp->vha;
sp                272 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp                276 drivers/scsi/qla2xxx/qla_init.c 	    "%s %8phC res %d \n", __func__, sp->fcport->port_name, res);
sp                278 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
sp                282 drivers/scsi/qla2xxx/qla_init.c 		ea.fcport = sp->fcport;
sp                287 drivers/scsi/qla2xxx/qla_init.c 		ea.sp = sp;
sp                291 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp                314 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp;
sp                326 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp                327 drivers/scsi/qla2xxx/qla_init.c 	if (!sp)
sp                334 drivers/scsi/qla2xxx/qla_init.c 	sp->type = SRB_LOGIN_CMD;
sp                335 drivers/scsi/qla2xxx/qla_init.c 	sp->name = "login";
sp                336 drivers/scsi/qla2xxx/qla_init.c 	sp->gen1 = fcport->rscn_gen;
sp                337 drivers/scsi/qla2xxx/qla_init.c 	sp->gen2 = fcport->login_gen;
sp                339 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
sp                341 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp                343 drivers/scsi/qla2xxx/qla_init.c 	sp->done = qla2x00_async_login_sp_done;
sp                354 drivers/scsi/qla2xxx/qla_init.c 		"retries=%d.\n", fcport->port_name, sp->handle, fcport->loop_id,
sp                358 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_start_sp(sp);
sp                368 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp                375 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_logout_sp_done(srb_t *sp, int res)
sp                377 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
sp                378 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->login_gen++;
sp                379 drivers/scsi/qla2xxx/qla_init.c 	qlt_logo_completion_handler(sp->fcport, res);
sp                380 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp                386 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp;
sp                391 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp                392 drivers/scsi/qla2xxx/qla_init.c 	if (!sp)
sp                395 drivers/scsi/qla2xxx/qla_init.c 	sp->type = SRB_LOGOUT_CMD;
sp                396 drivers/scsi/qla2xxx/qla_init.c 	sp->name = "logout";
sp                398 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
sp                400 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp                402 drivers/scsi/qla2xxx/qla_init.c 	sp->done = qla2x00_async_logout_sp_done;
sp                406 drivers/scsi/qla2xxx/qla_init.c 	    sp->handle, fcport->loop_id, fcport->d_id.b.domain,
sp                410 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_start_sp(sp);
sp                416 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp                433 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_prlo_sp_done(srb_t *sp, int res)
sp                435 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp                436 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vha = sp->vha;
sp                438 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~FCF_ASYNC_ACTIVE;
sp                440 drivers/scsi/qla2xxx/qla_init.c 		qla2x00_post_async_prlo_done_work(sp->fcport->vha, sp->fcport,
sp                442 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp                448 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp;
sp                453 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp                454 drivers/scsi/qla2xxx/qla_init.c 	if (!sp)
sp                457 drivers/scsi/qla2xxx/qla_init.c 	sp->type = SRB_PRLO_CMD;
sp                458 drivers/scsi/qla2xxx/qla_init.c 	sp->name = "prlo";
sp                460 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
sp                462 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp                464 drivers/scsi/qla2xxx/qla_init.c 	sp->done = qla2x00_async_prlo_sp_done;
sp                468 drivers/scsi/qla2xxx/qla_init.c 	    sp->handle, fcport->loop_id, fcport->d_id.b.domain,
sp                471 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_start_sp(sp);
sp                478 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp                492 drivers/scsi/qla2xxx/qla_init.c 	    fcport->fw_login_state, ea->rc, fcport->login_gen, ea->sp->gen2,
sp                493 drivers/scsi/qla2xxx/qla_init.c 	    fcport->rscn_gen, ea->sp->gen1, fcport->loop_id);
sp                512 drivers/scsi/qla2xxx/qla_init.c 	if (ea->sp->gen2 != ea->fcport->login_gen) {
sp                518 drivers/scsi/qla2xxx/qla_init.c 	} else if (ea->sp->gen1 != ea->fcport->rscn_gen) {
sp                541 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_adisc_sp_done(srb_t *sp, int res)
sp                543 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vha = sp->vha;
sp                545 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp                549 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, res, sp->fcport->port_name);
sp                551 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
sp                559 drivers/scsi/qla2xxx/qla_init.c 	ea.fcport = sp->fcport;
sp                560 drivers/scsi/qla2xxx/qla_init.c 	ea.sp = sp;
sp                564 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp                571 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp;
sp                579 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp                580 drivers/scsi/qla2xxx/qla_init.c 	if (!sp)
sp                583 drivers/scsi/qla2xxx/qla_init.c 	sp->type = SRB_ADISC_CMD;
sp                584 drivers/scsi/qla2xxx/qla_init.c 	sp->name = "adisc";
sp                586 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
sp                588 drivers/scsi/qla2xxx/qla_init.c 	sp->gen1 = fcport->rscn_gen;
sp                589 drivers/scsi/qla2xxx/qla_init.c 	sp->gen2 = fcport->login_gen;
sp                590 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp                592 drivers/scsi/qla2xxx/qla_init.c 	sp->done = qla2x00_async_adisc_sp_done;
sp                598 drivers/scsi/qla2xxx/qla_init.c 	    sp->handle, fcport->loop_id, fcport->d_id.b24, fcport->port_name);
sp                600 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_start_sp(sp);
sp                607 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp                965 drivers/scsi/qla2xxx/qla_init.c static void qla24xx_async_gnl_sp_done(srb_t *sp, int res)
sp                967 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vha = sp->vha;
sp                979 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, res, sp->u.iocb_cmd.u.mbx.in_mb[1],
sp                980 drivers/scsi/qla2xxx/qla_init.c 	    sp->u.iocb_cmd.u.mbx.in_mb[2]);
sp                985 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~(FCF_ASYNC_SENT|FCF_ASYNC_ACTIVE);
sp                987 drivers/scsi/qla2xxx/qla_init.c 	ea.sp = sp;
sp                990 drivers/scsi/qla2xxx/qla_init.c 	if (sp->u.iocb_cmd.u.mbx.in_mb[1] >=
sp                992 drivers/scsi/qla2xxx/qla_init.c 		n = sp->u.iocb_cmd.u.mbx.in_mb[1] /
sp                994 drivers/scsi/qla2xxx/qla_init.c 		ea.data[0] = sp->u.iocb_cmd.u.mbx.in_mb[1]; /* amnt xfered */
sp               1066 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp               1071 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp;
sp               1097 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               1098 drivers/scsi/qla2xxx/qla_init.c 	if (!sp)
sp               1101 drivers/scsi/qla2xxx/qla_init.c 	sp->type = SRB_MB_IOCB;
sp               1102 drivers/scsi/qla2xxx/qla_init.c 	sp->name = "gnlist";
sp               1103 drivers/scsi/qla2xxx/qla_init.c 	sp->gen1 = fcport->rscn_gen;
sp               1104 drivers/scsi/qla2xxx/qla_init.c 	sp->gen2 = fcport->login_gen;
sp               1106 drivers/scsi/qla2xxx/qla_init.c 	mbx = &sp->u.iocb_cmd;
sp               1108 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha)+2);
sp               1110 drivers/scsi/qla2xxx/qla_init.c 	mb = sp->u.iocb_cmd.u.mbx.out_mb;
sp               1120 drivers/scsi/qla2xxx/qla_init.c 	sp->done = qla24xx_async_gnl_sp_done;
sp               1124 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, fcport->port_name, sp->handle);
sp               1126 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_start_sp(sp);
sp               1133 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp               1152 drivers/scsi/qla2xxx/qla_init.c static void qla24xx_async_gpdb_sp_done(srb_t *sp, int res)
sp               1154 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vha = sp->vha;
sp               1156 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport = sp->fcport;
sp               1157 drivers/scsi/qla2xxx/qla_init.c 	u16 *mb = sp->u.iocb_cmd.u.mbx.in_mb;
sp               1162 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, res, fcport->port_name, mb[1], mb[2]);
sp               1171 drivers/scsi/qla2xxx/qla_init.c 	ea.sp = sp;
sp               1176 drivers/scsi/qla2xxx/qla_init.c 	dma_pool_free(ha->s_dma_pool, sp->u.iocb_cmd.u.mbx.in,
sp               1177 drivers/scsi/qla2xxx/qla_init.c 		sp->u.iocb_cmd.u.mbx.in_dma);
sp               1179 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp               1195 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_prli_sp_done(srb_t *sp, int res)
sp               1197 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vha = sp->vha;
sp               1198 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp               1203 drivers/scsi/qla2xxx/qla_init.c 	    sp->fcport->port_name, res);
sp               1205 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~FCF_ASYNC_SENT;
sp               1209 drivers/scsi/qla2xxx/qla_init.c 		ea.fcport = sp->fcport;
sp               1214 drivers/scsi/qla2xxx/qla_init.c 		ea.sp = sp;
sp               1219 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp               1225 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp;
sp               1243 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               1244 drivers/scsi/qla2xxx/qla_init.c 	if (!sp)
sp               1250 drivers/scsi/qla2xxx/qla_init.c 	sp->type = SRB_PRLI_CMD;
sp               1251 drivers/scsi/qla2xxx/qla_init.c 	sp->name = "prli";
sp               1253 drivers/scsi/qla2xxx/qla_init.c 	lio = &sp->u.iocb_cmd;
sp               1255 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               1257 drivers/scsi/qla2xxx/qla_init.c 	sp->done = qla2x00_async_prli_sp_done;
sp               1265 drivers/scsi/qla2xxx/qla_init.c 	    fcport->port_name, sp->handle, fcport->loop_id, fcport->d_id.b24,
sp               1268 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_start_sp(sp);
sp               1278 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp               1299 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp;
sp               1317 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               1318 drivers/scsi/qla2xxx/qla_init.c 	if (!sp)
sp               1322 drivers/scsi/qla2xxx/qla_init.c 	sp->type = SRB_MB_IOCB;
sp               1323 drivers/scsi/qla2xxx/qla_init.c 	sp->name = "gpdb";
sp               1324 drivers/scsi/qla2xxx/qla_init.c 	sp->gen1 = fcport->rscn_gen;
sp               1325 drivers/scsi/qla2xxx/qla_init.c 	sp->gen2 = fcport->login_gen;
sp               1327 drivers/scsi/qla2xxx/qla_init.c 	mbx = &sp->u.iocb_cmd;
sp               1329 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               1338 drivers/scsi/qla2xxx/qla_init.c 	mb = sp->u.iocb_cmd.u.mbx.out_mb;
sp               1351 drivers/scsi/qla2xxx/qla_init.c 	sp->done = qla24xx_async_gpdb_sp_done;
sp               1355 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, fcport->port_name, sp->handle, opt);
sp               1357 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_start_sp(sp);
sp               1366 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp               1409 drivers/scsi/qla2xxx/qla_init.c 	struct srb *sp = ea->sp;
sp               1412 drivers/scsi/qla2xxx/qla_init.c 	pd = (struct port_database_24xx *)sp->u.iocb_cmd.u.mbx.in;
sp               1429 drivers/scsi/qla2xxx/qla_init.c 	if (ea->sp->gen2 != fcport->login_gen) {
sp               1436 drivers/scsi/qla2xxx/qla_init.c 	} else if (ea->sp->gen1 != fcport->rscn_gen) {
sp               1766 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp = data;
sp               1767 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *tmf = &sp->u.iocb_cmd;
sp               1773 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_tmf_sp_done(srb_t *sp, int res)
sp               1775 drivers/scsi/qla2xxx/qla_init.c 	struct srb_iocb *tmf = &sp->u.iocb_cmd;
sp               1786 drivers/scsi/qla2xxx/qla_init.c 	srb_t *sp;
sp               1789 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               1790 drivers/scsi/qla2xxx/qla_init.c 	if (!sp)
sp               1793 drivers/scsi/qla2xxx/qla_init.c 	tm_iocb = &sp->u.iocb_cmd;
sp               1794 drivers/scsi/qla2xxx/qla_init.c 	sp->type = SRB_TM_CMD;
sp               1795 drivers/scsi/qla2xxx/qla_init.c 	sp->name = "tmf";
sp               1799 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha));
sp               1804 drivers/scsi/qla2xxx/qla_init.c 	sp->done = qla2x00_tmf_sp_done;
sp               1808 drivers/scsi/qla2xxx/qla_init.c 	    sp->handle, fcport->loop_id, fcport->d_id.b.domain,
sp               1811 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_start_sp(sp);
sp               1834 drivers/scsi/qla2xxx/qla_init.c 	sp->free(sp);
sp               1841 drivers/scsi/qla2xxx/qla_init.c qla24xx_async_abort_command(srb_t *sp)
sp               1846 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t	*fcport = sp->fcport;
sp               1847 drivers/scsi/qla2xxx/qla_init.c 	struct qla_qpair *qpair = sp->qpair;
sp               1853 drivers/scsi/qla2xxx/qla_init.c 		if (req->outstanding_cmds[handle] == sp)
sp               1862 drivers/scsi/qla2xxx/qla_init.c 	if (sp->type == SRB_FXIOCB_DCMD)
sp               1866 drivers/scsi/qla2xxx/qla_init.c 	return qla24xx_async_abort_cmd(sp, true);
sp               1947 drivers/scsi/qla2xxx/qla_init.c 	    fcport->fw_login_state, ea->rc, ea->sp->gen2, fcport->login_gen,
sp               1948 drivers/scsi/qla2xxx/qla_init.c 	    ea->sp->gen1, fcport->rscn_gen,
sp               1965 drivers/scsi/qla2xxx/qla_init.c 	if (ea->sp->gen2 != fcport->login_gen) {
sp               1972 drivers/scsi/qla2xxx/qla_init.c 	} else if (ea->sp->gen1 != fcport->rscn_gen) {
sp                109 drivers/scsi/qla2xxx/qla_inline.h qla2x00_hba_err_chk_enabled(srb_t *sp)
sp                118 drivers/scsi/qla2xxx/qla_inline.h 	switch (scsi_get_prot_op(GET_CMD_SP(sp))) {
sp                155 drivers/scsi/qla2xxx/qla_inline.h static void qla2xxx_init_sp(srb_t *sp, scsi_qla_host_t *vha,
sp                158 drivers/scsi/qla2xxx/qla_inline.h 	memset(sp, 0, sizeof(*sp));
sp                159 drivers/scsi/qla2xxx/qla_inline.h 	sp->fcport = fcport;
sp                160 drivers/scsi/qla2xxx/qla_inline.h 	sp->iocbs = 1;
sp                161 drivers/scsi/qla2xxx/qla_inline.h 	sp->vha = vha;
sp                162 drivers/scsi/qla2xxx/qla_inline.h 	sp->qpair = qpair;
sp                163 drivers/scsi/qla2xxx/qla_inline.h 	sp->cmd_type = TYPE_SRB;
sp                164 drivers/scsi/qla2xxx/qla_inline.h 	INIT_LIST_HEAD(&sp->elem);
sp                171 drivers/scsi/qla2xxx/qla_inline.h 	srb_t *sp = NULL;
sp                178 drivers/scsi/qla2xxx/qla_inline.h 	sp = mempool_alloc(qpair->srb_mempool, flag);
sp                179 drivers/scsi/qla2xxx/qla_inline.h 	if (sp)
sp                180 drivers/scsi/qla2xxx/qla_inline.h 		qla2xxx_init_sp(sp, vha, qpair, fcport);
sp                183 drivers/scsi/qla2xxx/qla_inline.h 	return sp;
sp                187 drivers/scsi/qla2xxx/qla_inline.h qla2xxx_rel_qpair_sp(struct qla_qpair *qpair, srb_t *sp)
sp                189 drivers/scsi/qla2xxx/qla_inline.h 	sp->qpair = NULL;
sp                190 drivers/scsi/qla2xxx/qla_inline.h 	mempool_free(sp, qpair->srb_mempool);
sp                197 drivers/scsi/qla2xxx/qla_inline.h 	srb_t *sp = NULL;
sp                206 drivers/scsi/qla2xxx/qla_inline.h 	sp = qla2xxx_get_qpair_sp(vha, qpair, fcport, flag);
sp                207 drivers/scsi/qla2xxx/qla_inline.h 	if (!sp)
sp                210 drivers/scsi/qla2xxx/qla_inline.h 	sp->vha = vha;
sp                212 drivers/scsi/qla2xxx/qla_inline.h 	if (!sp)
sp                214 drivers/scsi/qla2xxx/qla_inline.h 	return sp;
sp                218 drivers/scsi/qla2xxx/qla_inline.h qla2x00_rel_sp(srb_t *sp)
sp                220 drivers/scsi/qla2xxx/qla_inline.h 	QLA_VHA_MARK_NOT_BUSY(sp->vha);
sp                221 drivers/scsi/qla2xxx/qla_inline.h 	qla2xxx_rel_qpair_sp(sp->qpair, sp);
sp                 22 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_get_cmd_direction(srb_t *sp)
sp                 25 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp                 26 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host *vha = sp->vha;
sp                146 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_configure_prot_mode(srb_t *sp, uint16_t *fw_prot_opts)
sp                148 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp                191 drivers/scsi/qla2xxx/qla_iocb.c void qla2x00_build_scsi_iocbs_32(srb_t *sp, cmd_entry_t *cmd_pkt,
sp                201 drivers/scsi/qla2xxx/qla_iocb.c 	cmd = GET_CMD_SP(sp);
sp                212 drivers/scsi/qla2xxx/qla_iocb.c 	vha = sp->vha;
sp                213 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->control_flags |= cpu_to_le16(qla2x00_get_cmd_direction(sp));
sp                247 drivers/scsi/qla2xxx/qla_iocb.c void qla2x00_build_scsi_iocbs_64(srb_t *sp, cmd_entry_t *cmd_pkt,
sp                257 drivers/scsi/qla2xxx/qla_iocb.c 	cmd = GET_CMD_SP(sp);
sp                268 drivers/scsi/qla2xxx/qla_iocb.c 	vha = sp->vha;
sp                269 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->control_flags |= cpu_to_le16(qla2x00_get_cmd_direction(sp));
sp                322 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_start_scsi(srb_t *sp)
sp                340 drivers/scsi/qla2xxx/qla_iocb.c 	vha = sp->vha;
sp                343 drivers/scsi/qla2xxx/qla_iocb.c 	cmd = GET_CMD_SP(sp);
sp                392 drivers/scsi/qla2xxx/qla_iocb.c 	req->outstanding_cmds[handle] = sp;
sp                393 drivers/scsi/qla2xxx/qla_iocb.c 	sp->handle = handle;
sp                405 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, cmd_pkt->target, sp->fcport->loop_id);
sp                414 drivers/scsi/qla2xxx/qla_iocb.c 	ha->isp_ops->build_iocbs(sp, cmd_pkt, tot_dsds);
sp                428 drivers/scsi/qla2xxx/qla_iocb.c 	sp->flags |= SRB_DMA_VALID;
sp                584 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
sp                598 drivers/scsi/qla2xxx/qla_iocb.c 	cmd = GET_CMD_SP(sp);
sp                609 drivers/scsi/qla2xxx/qla_iocb.c 	vha = sp->vha;
sp                624 drivers/scsi/qla2xxx/qla_iocb.c 	ctx = sp->u.scmd.ct6_ctx;
sp                698 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_build_scsi_iocbs(srb_t *sp, struct cmd_type_7 *cmd_pkt,
sp                708 drivers/scsi/qla2xxx/qla_iocb.c 	cmd = GET_CMD_SP(sp);
sp                719 drivers/scsi/qla2xxx/qla_iocb.c 	vha = sp->vha;
sp                769 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_set_t10dif_tags(srb_t *sp, struct fw_dif_context *pkt,
sp                772 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp                783 drivers/scsi/qla2xxx/qla_iocb.c 		if (!qla2x00_hba_err_chk_enabled(sp))
sp                804 drivers/scsi/qla2xxx/qla_iocb.c 		if (!qla2x00_hba_err_chk_enabled(sp))
sp                832 drivers/scsi/qla2xxx/qla_iocb.c 		if (!qla2x00_hba_err_chk_enabled(sp))
sp                887 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_walk_and_build_sglist_no_difb(struct qla_hw_data *ha, srb_t *sp,
sp                905 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp) {
sp                906 drivers/scsi/qla2xxx/qla_iocb.c 		cmd = GET_CMD_SP(sp);
sp                911 drivers/scsi/qla2xxx/qla_iocb.c 		sgx.sp = sp;
sp                955 drivers/scsi/qla2xxx/qla_iocb.c 			if (sp) {
sp                957 drivers/scsi/qla2xxx/qla_iocb.c 					      &sp->u.scmd.crc_ctx->dsd_list);
sp                959 drivers/scsi/qla2xxx/qla_iocb.c 				sp->flags |= SRB_CRC_CTX_DSD_VALID;
sp               1001 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_walk_and_build_sglist(struct qla_hw_data *ha, srb_t *sp,
sp               1014 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp) {
sp               1015 drivers/scsi/qla2xxx/qla_iocb.c 		cmd = GET_CMD_SP(sp);
sp               1052 drivers/scsi/qla2xxx/qla_iocb.c 			if (sp) {
sp               1054 drivers/scsi/qla2xxx/qla_iocb.c 					      &sp->u.scmd.crc_ctx->dsd_list);
sp               1056 drivers/scsi/qla2xxx/qla_iocb.c 				sp->flags |= SRB_CRC_CTX_DSD_VALID;
sp               1081 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_walk_and_build_prot_sglist(struct qla_hw_data *ha, srb_t *sp,
sp               1095 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp) {
sp               1096 drivers/scsi/qla2xxx/qla_iocb.c 		struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp               1099 drivers/scsi/qla2xxx/qla_iocb.c 		vha = sp->vha;
sp               1100 drivers/scsi/qla2xxx/qla_iocb.c 		difctx = sp->u.scmd.crc_ctx;
sp               1104 drivers/scsi/qla2xxx/qla_iocb.c 			__func__, cmd, difctx, sp);
sp               1239 drivers/scsi/qla2xxx/qla_iocb.c 		if (sp)
sp               1240 drivers/scsi/qla2xxx/qla_iocb.c 			sp->flags |= SRB_DIF_BUNDL_DMA_VALID;
sp               1292 drivers/scsi/qla2xxx/qla_iocb.c 				if (sp) {
sp               1295 drivers/scsi/qla2xxx/qla_iocb.c 					sp->flags |= SRB_CRC_CTX_DSD_VALID;
sp               1350 drivers/scsi/qla2xxx/qla_iocb.c 				if (sp) {
sp               1353 drivers/scsi/qla2xxx/qla_iocb.c 					sp->flags |= SRB_CRC_CTX_DSD_VALID;
sp               1388 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_build_scsi_crc_2_iocbs(srb_t *sp, struct cmd_type_crc_2 *cmd_pkt,
sp               1407 drivers/scsi/qla2xxx/qla_iocb.c 	cmd = GET_CMD_SP(sp);
sp               1412 drivers/scsi/qla2xxx/qla_iocb.c 	vha = sp->vha;
sp               1422 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->vp_index = sp->vha->vp_idx;
sp               1440 drivers/scsi/qla2xxx/qla_iocb.c 	crc_ctx_pkt = sp->u.scmd.crc_ctx =
sp               1448 drivers/scsi/qla2xxx/qla_iocb.c 	sp->flags |= SRB_CRC_CTX_DMA_VALID;
sp               1455 drivers/scsi/qla2xxx/qla_iocb.c 	qla24xx_set_t10dif_tags(sp, (struct fw_dif_context *)
sp               1497 drivers/scsi/qla2xxx/qla_iocb.c 	switch (scsi_get_prot_op(GET_CMD_SP(sp))) {
sp               1514 drivers/scsi/qla2xxx/qla_iocb.c 	if (!qla2x00_hba_err_chk_enabled(sp))
sp               1518 drivers/scsi/qla2xxx/qla_iocb.c 		if ((scsi_get_prot_type(GET_CMD_SP(sp)) == SCSI_PROT_DIF_TYPE1)
sp               1519 drivers/scsi/qla2xxx/qla_iocb.c 		    || (scsi_get_prot_type(GET_CMD_SP(sp)) ==
sp               1522 drivers/scsi/qla2xxx/qla_iocb.c 		else if (scsi_get_prot_type(GET_CMD_SP(sp)) ==
sp               1561 drivers/scsi/qla2xxx/qla_iocb.c 		if (qla24xx_walk_and_build_sglist_no_difb(ha, sp,
sp               1564 drivers/scsi/qla2xxx/qla_iocb.c 	} else if (qla24xx_walk_and_build_sglist(ha, sp, cur_dsd,
sp               1572 drivers/scsi/qla2xxx/qla_iocb.c 		if (qla24xx_walk_and_build_prot_sglist(ha, sp, cur_dsd,
sp               1591 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_start_scsi(srb_t *sp)
sp               1602 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp               1603 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host *vha = sp->vha;
sp               1652 drivers/scsi/qla2xxx/qla_iocb.c 	req->outstanding_cmds[handle] = sp;
sp               1653 drivers/scsi/qla2xxx/qla_iocb.c 	sp->handle = handle;
sp               1667 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               1668 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               1669 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
sp               1670 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
sp               1671 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->vp_index = sp->vha->vp_idx;
sp               1685 drivers/scsi/qla2xxx/qla_iocb.c 	qla24xx_build_scsi_iocbs(sp, cmd_pkt, tot_dsds, req);
sp               1698 drivers/scsi/qla2xxx/qla_iocb.c 	sp->flags |= SRB_DMA_VALID;
sp               1722 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_dif_start_scsi(srb_t *sp)
sp               1735 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_cmnd	*cmd = GET_CMD_SP(sp);
sp               1736 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host	*vha = sp->vha;
sp               1746 drivers/scsi/qla2xxx/qla_iocb.c 			return qla24xx_start_scsi(sp);
sp               1779 drivers/scsi/qla2xxx/qla_iocb.c 			sp->flags |= SRB_DMA_VALID;
sp               1789 drivers/scsi/qla2xxx/qla_iocb.c 			sgx.sp = sp;
sp               1803 drivers/scsi/qla2xxx/qla_iocb.c 	if (qla24xx_configure_prot_mode(sp, &fw_prot_opts)) {
sp               1809 drivers/scsi/qla2xxx/qla_iocb.c 			sp->flags |= SRB_CRC_PROT_DMA_VALID;
sp               1839 drivers/scsi/qla2xxx/qla_iocb.c 	req->outstanding_cmds[handle] = sp;
sp               1840 drivers/scsi/qla2xxx/qla_iocb.c 	sp->handle = handle;
sp               1852 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               1853 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               1854 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
sp               1855 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
sp               1864 drivers/scsi/qla2xxx/qla_iocb.c 	if (qla24xx_build_scsi_crc_2_iocbs(sp, (struct cmd_type_crc_2 *)
sp               1908 drivers/scsi/qla2xxx/qla_iocb.c qla2xxx_start_scsi_mq(srb_t *sp)
sp               1919 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp               1920 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host *vha = sp->fcport->vha;
sp               1922 drivers/scsi/qla2xxx/qla_iocb.c 	struct qla_qpair *qpair = sp->qpair;
sp               1972 drivers/scsi/qla2xxx/qla_iocb.c 	req->outstanding_cmds[handle] = sp;
sp               1973 drivers/scsi/qla2xxx/qla_iocb.c 	sp->handle = handle;
sp               1987 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               1988 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               1989 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
sp               1990 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
sp               1991 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->vp_index = sp->fcport->vha->vp_idx;
sp               2005 drivers/scsi/qla2xxx/qla_iocb.c 	qla24xx_build_scsi_iocbs(sp, cmd_pkt, tot_dsds, req);
sp               2018 drivers/scsi/qla2xxx/qla_iocb.c 	sp->flags |= SRB_DMA_VALID;
sp               2043 drivers/scsi/qla2xxx/qla_iocb.c qla2xxx_dif_start_scsi_mq(srb_t *sp)
sp               2056 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_cmnd	*cmd = GET_CMD_SP(sp);
sp               2057 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host	*vha = sp->fcport->vha;
sp               2061 drivers/scsi/qla2xxx/qla_iocb.c 	struct qla_qpair	*qpair = sp->qpair;
sp               2080 drivers/scsi/qla2xxx/qla_iocb.c 			return qla2xxx_start_scsi_mq(sp);
sp               2114 drivers/scsi/qla2xxx/qla_iocb.c 			sp->flags |= SRB_DMA_VALID;
sp               2124 drivers/scsi/qla2xxx/qla_iocb.c 			sgx.sp = sp;
sp               2138 drivers/scsi/qla2xxx/qla_iocb.c 	if (qla24xx_configure_prot_mode(sp, &fw_prot_opts)) {
sp               2144 drivers/scsi/qla2xxx/qla_iocb.c 			sp->flags |= SRB_CRC_PROT_DMA_VALID;
sp               2174 drivers/scsi/qla2xxx/qla_iocb.c 	req->outstanding_cmds[handle] = sp;
sp               2175 drivers/scsi/qla2xxx/qla_iocb.c 	sp->handle = handle;
sp               2187 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               2188 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               2189 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
sp               2190 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
sp               2199 drivers/scsi/qla2xxx/qla_iocb.c 	if (qla24xx_build_scsi_crc_2_iocbs(sp, (struct cmd_type_crc_2 *)
sp               2244 drivers/scsi/qla2xxx/qla_iocb.c __qla2x00_alloc_iocbs(struct qla_qpair *qpair, srb_t *sp)
sp               2258 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp && (sp->type != SRB_SCSI_CMD)) {
sp               2260 drivers/scsi/qla2xxx/qla_iocb.c 		req_cnt = sp->iocbs;
sp               2289 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp) {
sp               2299 drivers/scsi/qla2xxx/qla_iocb.c 		req->outstanding_cmds[handle] = sp;
sp               2300 drivers/scsi/qla2xxx/qla_iocb.c 		sp->handle = handle;
sp               2323 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_alloc_iocbs_ready(struct qla_qpair *qpair, srb_t *sp)
sp               2330 drivers/scsi/qla2xxx/qla_iocb.c 	return __qla2x00_alloc_iocbs(qpair, sp);
sp               2334 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_alloc_iocbs(struct scsi_qla_host *vha, srb_t *sp)
sp               2336 drivers/scsi/qla2xxx/qla_iocb.c 	return __qla2x00_alloc_iocbs(vha->hw->base_qpair, sp);
sp               2340 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_prli_iocb(srb_t *sp, struct logio_entry_24xx *logio)
sp               2342 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp               2348 drivers/scsi/qla2xxx/qla_iocb.c 		if (sp->vha->flags.nvme_first_burst)
sp               2352 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               2353 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               2354 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[1] = sp->fcport->d_id.b.area;
sp               2355 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[2] = sp->fcport->d_id.b.domain;
sp               2356 drivers/scsi/qla2xxx/qla_iocb.c 	logio->vp_index = sp->vha->vp_idx;
sp               2360 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_login_iocb(srb_t *sp, struct logio_entry_24xx *logio)
sp               2362 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp               2374 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               2375 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               2376 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[1] = sp->fcport->d_id.b.area;
sp               2377 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[2] = sp->fcport->d_id.b.domain;
sp               2378 drivers/scsi/qla2xxx/qla_iocb.c 	logio->vp_index = sp->vha->vp_idx;
sp               2382 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_login_iocb(srb_t *sp, struct mbx_entry *mbx)
sp               2384 drivers/scsi/qla2xxx/qla_iocb.c 	struct qla_hw_data *ha = sp->vha->hw;
sp               2385 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp               2389 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id);
sp               2394 drivers/scsi/qla2xxx/qla_iocb.c 		mbx->mb1 = cpu_to_le16(sp->fcport->loop_id);
sp               2397 drivers/scsi/qla2xxx/qla_iocb.c 		mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts);
sp               2399 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain);
sp               2400 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 |
sp               2401 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->fcport->d_id.b.al_pa);
sp               2402 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb9 = cpu_to_le16(sp->vha->vp_idx);
sp               2406 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_logout_iocb(srb_t *sp, struct logio_entry_24xx *logio)
sp               2411 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp->fcport->explicit_logout) {
sp               2416 drivers/scsi/qla2xxx/qla_iocb.c 		if (!sp->fcport->keep_nport_handle)
sp               2421 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               2422 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               2423 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[1] = sp->fcport->d_id.b.area;
sp               2424 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[2] = sp->fcport->d_id.b.domain;
sp               2425 drivers/scsi/qla2xxx/qla_iocb.c 	logio->vp_index = sp->vha->vp_idx;
sp               2429 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_logout_iocb(srb_t *sp, struct mbx_entry *mbx)
sp               2431 drivers/scsi/qla2xxx/qla_iocb.c 	struct qla_hw_data *ha = sp->vha->hw;
sp               2434 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id);
sp               2437 drivers/scsi/qla2xxx/qla_iocb.c 	    cpu_to_le16(sp->fcport->loop_id) :
sp               2438 drivers/scsi/qla2xxx/qla_iocb.c 	    cpu_to_le16(sp->fcport->loop_id << 8);
sp               2439 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain);
sp               2440 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 |
sp               2441 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->fcport->d_id.b.al_pa);
sp               2442 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb9 = cpu_to_le16(sp->vha->vp_idx);
sp               2447 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_adisc_iocb(srb_t *sp, struct logio_entry_24xx *logio)
sp               2451 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               2452 drivers/scsi/qla2xxx/qla_iocb.c 	logio->vp_index = sp->vha->vp_idx;
sp               2456 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_adisc_iocb(srb_t *sp, struct mbx_entry *mbx)
sp               2458 drivers/scsi/qla2xxx/qla_iocb.c 	struct qla_hw_data *ha = sp->vha->hw;
sp               2461 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id);
sp               2464 drivers/scsi/qla2xxx/qla_iocb.c 		mbx->mb1 = cpu_to_le16(sp->fcport->loop_id);
sp               2467 drivers/scsi/qla2xxx/qla_iocb.c 		mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | BIT_0);
sp               2473 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb9 = cpu_to_le16(sp->vha->vp_idx);
sp               2477 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_tm_iocb(srb_t *sp, struct tsk_mgmt_entry *tsk)
sp               2481 drivers/scsi/qla2xxx/qla_iocb.c 	struct fc_port *fcport = sp->fcport;
sp               2484 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *iocb = &sp->u.iocb_cmd;
sp               2508 drivers/scsi/qla2xxx/qla_iocb.c void qla2x00_init_timer(srb_t *sp, unsigned long tmo)
sp               2510 drivers/scsi/qla2xxx/qla_iocb.c 	timer_setup(&sp->u.iocb_cmd.timer, qla2x00_sp_timeout, 0);
sp               2511 drivers/scsi/qla2xxx/qla_iocb.c 	sp->u.iocb_cmd.timer.expires = jiffies + tmo * HZ;
sp               2512 drivers/scsi/qla2xxx/qla_iocb.c 	sp->free = qla2x00_sp_free;
sp               2513 drivers/scsi/qla2xxx/qla_iocb.c 	if (IS_QLAFX00(sp->vha->hw) && sp->type == SRB_FXIOCB_DCMD)
sp               2514 drivers/scsi/qla2xxx/qla_iocb.c 		init_completion(&sp->u.iocb_cmd.u.fxiocb.fxiocb_comp);
sp               2515 drivers/scsi/qla2xxx/qla_iocb.c 	sp->start_timer = 1;
sp               2518 drivers/scsi/qla2xxx/qla_iocb.c static void qla2x00_els_dcmd_sp_free(srb_t *sp)
sp               2520 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *elsio = &sp->u.iocb_cmd;
sp               2522 drivers/scsi/qla2xxx/qla_iocb.c 	kfree(sp->fcport);
sp               2525 drivers/scsi/qla2xxx/qla_iocb.c 		dma_free_coherent(&sp->vha->hw->pdev->dev, DMA_POOL_SIZE,
sp               2530 drivers/scsi/qla2xxx/qla_iocb.c 	qla2x00_rel_sp(sp);
sp               2536 drivers/scsi/qla2xxx/qla_iocb.c 	srb_t *sp = data;
sp               2537 drivers/scsi/qla2xxx/qla_iocb.c 	fc_port_t *fcport = sp->fcport;
sp               2538 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host *vha = sp->vha;
sp               2539 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp               2543 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area,
sp               2549 drivers/scsi/qla2xxx/qla_iocb.c static void qla2x00_els_dcmd_sp_done(srb_t *sp, int res)
sp               2551 drivers/scsi/qla2xxx/qla_iocb.c 	fc_port_t *fcport = sp->fcport;
sp               2552 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp               2553 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host *vha = sp->vha;
sp               2557 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, sp->handle, fcport->d_id.b.domain,
sp               2567 drivers/scsi/qla2xxx/qla_iocb.c 	srb_t *sp;
sp               2581 drivers/scsi/qla2xxx/qla_iocb.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               2582 drivers/scsi/qla2xxx/qla_iocb.c 	if (!sp) {
sp               2589 drivers/scsi/qla2xxx/qla_iocb.c 	elsio = &sp->u.iocb_cmd;
sp               2598 drivers/scsi/qla2xxx/qla_iocb.c 	sp->type = SRB_ELS_DCMD;
sp               2599 drivers/scsi/qla2xxx/qla_iocb.c 	sp->name = "ELS_DCMD";
sp               2600 drivers/scsi/qla2xxx/qla_iocb.c 	sp->fcport = fcport;
sp               2602 drivers/scsi/qla2xxx/qla_iocb.c 	qla2x00_init_timer(sp, ELS_DCMD_TIMEOUT);
sp               2603 drivers/scsi/qla2xxx/qla_iocb.c 	init_completion(&sp->u.iocb_cmd.u.els_logo.comp);
sp               2604 drivers/scsi/qla2xxx/qla_iocb.c 	sp->done = qla2x00_els_dcmd_sp_done;
sp               2605 drivers/scsi/qla2xxx/qla_iocb.c 	sp->free = qla2x00_els_dcmd_sp_free;
sp               2612 drivers/scsi/qla2xxx/qla_iocb.c 		sp->free(sp);
sp               2629 drivers/scsi/qla2xxx/qla_iocb.c 	rval = qla2x00_start_sp(sp);
sp               2631 drivers/scsi/qla2xxx/qla_iocb.c 		sp->free(sp);
sp               2637 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, sp->handle, fcport->loop_id, fcport->d_id.b.domain,
sp               2642 drivers/scsi/qla2xxx/qla_iocb.c 	sp->free(sp);
sp               2647 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_els_logo_iocb(srb_t *sp, struct els_entry_24xx *els_iocb)
sp               2649 drivers/scsi/qla2xxx/qla_iocb.c 	scsi_qla_host_t *vha = sp->vha;
sp               2650 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *elsio = &sp->u.iocb_cmd;
sp               2656 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->handle = sp->handle;
sp               2657 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               2664 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               2665 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->port_id[1] = sp->fcport->d_id.b.area;
sp               2666 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->port_id[2] = sp->fcport->d_id.b.domain;
sp               2702 drivers/scsi/qla2xxx/qla_iocb.c 	sp->vha->qla_stats.control_requests++;
sp               2708 drivers/scsi/qla2xxx/qla_iocb.c 	srb_t *sp = data;
sp               2709 drivers/scsi/qla2xxx/qla_iocb.c 	fc_port_t *fcport = sp->fcport;
sp               2710 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host *vha = sp->vha;
sp               2717 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, sp->handle, fcport->port_name, fcport->d_id.b24);
sp               2721 drivers/scsi/qla2xxx/qla_iocb.c 	res = ha->isp_ops->abort_command(sp);
sp               2727 drivers/scsi/qla2xxx/qla_iocb.c 	sp->done(sp, QLA_FUNCTION_TIMEOUT);
sp               2745 drivers/scsi/qla2xxx/qla_iocb.c static void qla2x00_els_dcmd2_sp_done(srb_t *sp, int res)
sp               2747 drivers/scsi/qla2xxx/qla_iocb.c 	fc_port_t *fcport = sp->fcport;
sp               2748 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp               2749 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host *vha = sp->vha;
sp               2755 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, res, sp->handle, fcport->d_id.b24, fcport->port_name);
sp               2758 drivers/scsi/qla2xxx/qla_iocb.c 	del_timer(&sp->u.iocb_cmd.timer);
sp               2760 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp->flags & SRB_WAKEUP_ON_COMP)
sp               2769 drivers/scsi/qla2xxx/qla_iocb.c 			ea.sp = sp;
sp               2775 drivers/scsi/qla2xxx/qla_iocb.c 			struct srb_iocb *elsio = &sp->u.iocb_cmd;
sp               2778 drivers/scsi/qla2xxx/qla_iocb.c 			sp->free(sp);
sp               2781 drivers/scsi/qla2xxx/qla_iocb.c 		e->u.iosb.sp = sp;
sp               2790 drivers/scsi/qla2xxx/qla_iocb.c 	srb_t *sp;
sp               2797 drivers/scsi/qla2xxx/qla_iocb.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               2798 drivers/scsi/qla2xxx/qla_iocb.c 	if (!sp) {
sp               2804 drivers/scsi/qla2xxx/qla_iocb.c 	elsio = &sp->u.iocb_cmd;
sp               2809 drivers/scsi/qla2xxx/qla_iocb.c 	sp->type = SRB_ELS_DCMD;
sp               2810 drivers/scsi/qla2xxx/qla_iocb.c 	sp->name = "ELS_DCMD";
sp               2811 drivers/scsi/qla2xxx/qla_iocb.c 	sp->fcport = fcport;
sp               2816 drivers/scsi/qla2xxx/qla_iocb.c 		sp->flags = SRB_WAKEUP_ON_COMP;
sp               2818 drivers/scsi/qla2xxx/qla_iocb.c 	qla2x00_init_timer(sp, ELS_DCMD_TIMEOUT + 2);
sp               2820 drivers/scsi/qla2xxx/qla_iocb.c 	sp->done = qla2x00_els_dcmd2_sp_done;
sp               2857 drivers/scsi/qla2xxx/qla_iocb.c 	rval = qla2x00_start_sp(sp);
sp               2863 drivers/scsi/qla2xxx/qla_iocb.c 		    sp->name, sp->handle, fcport->loop_id,
sp               2879 drivers/scsi/qla2xxx/qla_iocb.c 	sp->free(sp);
sp               2885 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_els_iocb(srb_t *sp, struct els_entry_24xx *els_iocb)
sp               2887 drivers/scsi/qla2xxx/qla_iocb.c 	struct bsg_job *bsg_job = sp->u.bsg_job;
sp               2894 drivers/scsi/qla2xxx/qla_iocb.c         els_iocb->handle = sp->handle;
sp               2895 drivers/scsi/qla2xxx/qla_iocb.c         els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               2897 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->vp_index = sp->vha->vp_idx;
sp               2902 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->type == SRB_ELS_CMD_RPT ?
sp               2905 drivers/scsi/qla2xxx/qla_iocb.c         els_iocb->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               2906 drivers/scsi/qla2xxx/qla_iocb.c         els_iocb->port_id[1] = sp->fcport->d_id.b.area;
sp               2907 drivers/scsi/qla2xxx/qla_iocb.c         els_iocb->port_id[2] = sp->fcport->d_id.b.domain;
sp               2924 drivers/scsi/qla2xxx/qla_iocb.c 	sp->vha->qla_stats.control_requests++;
sp               2928 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_ct_iocb(srb_t *sp, ms_iocb_entry_t *ct_iocb)
sp               2935 drivers/scsi/qla2xxx/qla_iocb.c 	scsi_qla_host_t *vha = sp->vha;
sp               2937 drivers/scsi/qla2xxx/qla_iocb.c 	struct bsg_job *bsg_job = sp->u.bsg_job;
sp               2943 drivers/scsi/qla2xxx/qla_iocb.c 	ct_iocb->handle1 = sp->handle;
sp               2944 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, ct_iocb->loop_id, sp->fcport->loop_id);
sp               2991 drivers/scsi/qla2xxx/qla_iocb.c 	sp->vha->qla_stats.control_requests++;
sp               2995 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_ct_iocb(srb_t *sp, struct ct_entry_24xx *ct_iocb)
sp               3002 drivers/scsi/qla2xxx/qla_iocb.c 	scsi_qla_host_t *vha = sp->vha;
sp               3004 drivers/scsi/qla2xxx/qla_iocb.c 	struct bsg_job *bsg_job = sp->u.bsg_job;
sp               3011 drivers/scsi/qla2xxx/qla_iocb.c         ct_iocb->handle = sp->handle;
sp               3013 drivers/scsi/qla2xxx/qla_iocb.c 	ct_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               3014 drivers/scsi/qla2xxx/qla_iocb.c 	ct_iocb->vp_index = sp->vha->vp_idx;
sp               3077 drivers/scsi/qla2xxx/qla_iocb.c qla82xx_start_scsi(srb_t *sp)
sp               3092 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host *vha = sp->vha;
sp               3099 drivers/scsi/qla2xxx/qla_iocb.c 	cmd = GET_CMD_SP(sp);
sp               3194 drivers/scsi/qla2xxx/qla_iocb.c 		ctx = sp->u.scmd.ct6_ctx =
sp               3242 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               3243 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               3244 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
sp               3245 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
sp               3246 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->vp_index = sp->vha->vp_idx;
sp               3249 drivers/scsi/qla2xxx/qla_iocb.c 		if (qla24xx_build_scsi_type_6_iocbs(sp, cmd_pkt, tot_dsds))
sp               3267 drivers/scsi/qla2xxx/qla_iocb.c 			    sp->fcport->fcp_prio << 3;
sp               3279 drivers/scsi/qla2xxx/qla_iocb.c 		sp->flags |= SRB_FCP_CMND_DMA_VALID;
sp               3313 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               3314 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               3315 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
sp               3316 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
sp               3317 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->vp_index = sp->vha->vp_idx;
sp               3325 drivers/scsi/qla2xxx/qla_iocb.c 			cmd_pkt->task |= sp->fcport->fcp_prio << 3;
sp               3334 drivers/scsi/qla2xxx/qla_iocb.c 		qla24xx_build_scsi_iocbs(sp, cmd_pkt, tot_dsds, req);
sp               3346 drivers/scsi/qla2xxx/qla_iocb.c 	req->outstanding_cmds[handle] = sp;
sp               3347 drivers/scsi/qla2xxx/qla_iocb.c 	sp->handle = handle;
sp               3360 drivers/scsi/qla2xxx/qla_iocb.c 	sp->flags |= SRB_DMA_VALID;
sp               3390 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp->u.scmd.crc_ctx) {
sp               3391 drivers/scsi/qla2xxx/qla_iocb.c 		mempool_free(sp->u.scmd.crc_ctx, ha->ctx_mempool);
sp               3392 drivers/scsi/qla2xxx/qla_iocb.c 		sp->u.scmd.crc_ctx = NULL;
sp               3400 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_abort_iocb(srb_t *sp, struct abort_entry_24xx *abt_iocb)
sp               3402 drivers/scsi/qla2xxx/qla_iocb.c 	struct srb_iocb *aio = &sp->u.iocb_cmd;
sp               3403 drivers/scsi/qla2xxx/qla_iocb.c 	scsi_qla_host_t *vha = sp->vha;
sp               3404 drivers/scsi/qla2xxx/qla_iocb.c 	struct req_que *req = sp->qpair->req;
sp               3409 drivers/scsi/qla2xxx/qla_iocb.c 	abt_iocb->handle = cpu_to_le32(MAKE_HANDLE(req->id, sp->handle));
sp               3410 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp->fcport) {
sp               3411 drivers/scsi/qla2xxx/qla_iocb.c 		abt_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               3412 drivers/scsi/qla2xxx/qla_iocb.c 		abt_iocb->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               3413 drivers/scsi/qla2xxx/qla_iocb.c 		abt_iocb->port_id[1] = sp->fcport->d_id.b.area;
sp               3414 drivers/scsi/qla2xxx/qla_iocb.c 		abt_iocb->port_id[2] = sp->fcport->d_id.b.domain;
sp               3426 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_mb_iocb(srb_t *sp, struct mbx_24xx_entry *mbx)
sp               3431 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->handle = sp->handle;
sp               3432 drivers/scsi/qla2xxx/qla_iocb.c 	sz = min(ARRAY_SIZE(mbx->mb), ARRAY_SIZE(sp->u.iocb_cmd.u.mbx.out_mb));
sp               3435 drivers/scsi/qla2xxx/qla_iocb.c 		mbx->mb[i] = cpu_to_le16(sp->u.iocb_cmd.u.mbx.out_mb[i]);
sp               3439 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_ctpthru_cmd_iocb(srb_t *sp, struct ct_entry_24xx *ct_pkt)
sp               3441 drivers/scsi/qla2xxx/qla_iocb.c 	sp->u.iocb_cmd.u.ctarg.iocb = ct_pkt;
sp               3442 drivers/scsi/qla2xxx/qla_iocb.c 	qla24xx_prep_ms_iocb(sp->vha, &sp->u.iocb_cmd.u.ctarg);
sp               3443 drivers/scsi/qla2xxx/qla_iocb.c 	ct_pkt->handle = sp->handle;
sp               3446 drivers/scsi/qla2xxx/qla_iocb.c static void qla2x00_send_notify_ack_iocb(srb_t *sp,
sp               3449 drivers/scsi/qla2xxx/qla_iocb.c 	struct imm_ntfy_from_isp *ntfy = sp->u.iocb_cmd.u.nack.ntfy;
sp               3455 drivers/scsi/qla2xxx/qla_iocb.c 	nack->u.isp24.handle = sp->handle;
sp               3478 drivers/scsi/qla2xxx/qla_iocb.c qla_nvme_ls(srb_t *sp, struct pt_ls4_request *cmd_pkt)
sp               3483 drivers/scsi/qla2xxx/qla_iocb.c 	nvme = &sp->u.iocb_cmd;
sp               3489 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               3490 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->vp_index = sp->fcport->vha->vp_idx;
sp               3506 drivers/scsi/qla2xxx/qla_iocb.c qla25xx_ctrlvp_iocb(srb_t *sp, struct vp_ctrl_entry_24xx *vce)
sp               3511 drivers/scsi/qla2xxx/qla_iocb.c 	vce->handle = sp->handle;
sp               3513 drivers/scsi/qla2xxx/qla_iocb.c 	vce->command = cpu_to_le16(sp->u.iocb_cmd.u.ctrlvp.cmd);
sp               3520 drivers/scsi/qla2xxx/qla_iocb.c 	map = (sp->u.iocb_cmd.u.ctrlvp.vp_index - 1) / 8;
sp               3521 drivers/scsi/qla2xxx/qla_iocb.c 	pos = (sp->u.iocb_cmd.u.ctrlvp.vp_index - 1) & 7;
sp               3526 drivers/scsi/qla2xxx/qla_iocb.c qla24xx_prlo_iocb(srb_t *sp, struct logio_entry_24xx *logio)
sp               3532 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp               3533 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[0] = sp->fcport->d_id.b.al_pa;
sp               3534 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[1] = sp->fcport->d_id.b.area;
sp               3535 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[2] = sp->fcport->d_id.b.domain;
sp               3536 drivers/scsi/qla2xxx/qla_iocb.c 	logio->vp_index = sp->fcport->vha->vp_idx;
sp               3540 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_start_sp(srb_t *sp)
sp               3543 drivers/scsi/qla2xxx/qla_iocb.c 	scsi_qla_host_t *vha = sp->vha;
sp               3545 drivers/scsi/qla2xxx/qla_iocb.c 	struct qla_qpair *qp = sp->qpair;
sp               3550 drivers/scsi/qla2xxx/qla_iocb.c 	pkt = __qla2x00_alloc_iocbs(sp->qpair, sp);
sp               3558 drivers/scsi/qla2xxx/qla_iocb.c 	switch (sp->type) {
sp               3561 drivers/scsi/qla2xxx/qla_iocb.c 		    qla24xx_login_iocb(sp, pkt) :
sp               3562 drivers/scsi/qla2xxx/qla_iocb.c 		    qla2x00_login_iocb(sp, pkt);
sp               3565 drivers/scsi/qla2xxx/qla_iocb.c 		qla24xx_prli_iocb(sp, pkt);
sp               3569 drivers/scsi/qla2xxx/qla_iocb.c 		    qla24xx_logout_iocb(sp, pkt) :
sp               3570 drivers/scsi/qla2xxx/qla_iocb.c 		    qla2x00_logout_iocb(sp, pkt);
sp               3574 drivers/scsi/qla2xxx/qla_iocb.c 		qla24xx_els_iocb(sp, pkt);
sp               3578 drivers/scsi/qla2xxx/qla_iocb.c 		    qla24xx_ct_iocb(sp, pkt) :
sp               3579 drivers/scsi/qla2xxx/qla_iocb.c 		    qla2x00_ct_iocb(sp, pkt);
sp               3583 drivers/scsi/qla2xxx/qla_iocb.c 		    qla24xx_adisc_iocb(sp, pkt) :
sp               3584 drivers/scsi/qla2xxx/qla_iocb.c 		    qla2x00_adisc_iocb(sp, pkt);
sp               3588 drivers/scsi/qla2xxx/qla_iocb.c 		    qlafx00_tm_iocb(sp, pkt) :
sp               3589 drivers/scsi/qla2xxx/qla_iocb.c 		    qla24xx_tm_iocb(sp, pkt);
sp               3593 drivers/scsi/qla2xxx/qla_iocb.c 		qlafx00_fxdisc_iocb(sp, pkt);
sp               3596 drivers/scsi/qla2xxx/qla_iocb.c 		qla_nvme_ls(sp, pkt);
sp               3600 drivers/scsi/qla2xxx/qla_iocb.c 			qlafx00_abort_iocb(sp, pkt) :
sp               3601 drivers/scsi/qla2xxx/qla_iocb.c 			qla24xx_abort_iocb(sp, pkt);
sp               3604 drivers/scsi/qla2xxx/qla_iocb.c 		qla24xx_els_logo_iocb(sp, pkt);
sp               3607 drivers/scsi/qla2xxx/qla_iocb.c 		qla2x00_ctpthru_cmd_iocb(sp, pkt);
sp               3610 drivers/scsi/qla2xxx/qla_iocb.c 		qla2x00_mb_iocb(sp, pkt);
sp               3615 drivers/scsi/qla2xxx/qla_iocb.c 		qla2x00_send_notify_ack_iocb(sp, pkt);
sp               3618 drivers/scsi/qla2xxx/qla_iocb.c 		qla25xx_ctrlvp_iocb(sp, pkt);
sp               3621 drivers/scsi/qla2xxx/qla_iocb.c 		qla24xx_prlo_iocb(sp, pkt);
sp               3627 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp->start_timer)
sp               3628 drivers/scsi/qla2xxx/qla_iocb.c 		add_timer(&sp->u.iocb_cmd.timer);
sp               3638 drivers/scsi/qla2xxx/qla_iocb.c qla25xx_build_bidir_iocb(srb_t *sp, struct scsi_qla_host *vha,
sp               3648 drivers/scsi/qla2xxx/qla_iocb.c 	struct bsg_job *bsg_job = sp->u.bsg_job;
sp               3725 drivers/scsi/qla2xxx/qla_iocb.c qla2x00_start_bidir(srb_t *sp, struct scsi_qla_host *vha, uint32_t tot_dsds)
sp               3793 drivers/scsi/qla2xxx/qla_iocb.c 	qla25xx_build_bidir_iocb(sp, vha, cmd_pkt, tot_dsds);
sp               3797 drivers/scsi/qla2xxx/qla_iocb.c 	req->outstanding_cmds[handle] = sp;
sp               3798 drivers/scsi/qla2xxx/qla_iocb.c 	sp->handle = handle;
sp               1276 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               1291 drivers/scsi/qla2xxx/qla_isr.c 	sp = req->outstanding_cmds[index];
sp               1292 drivers/scsi/qla2xxx/qla_isr.c 	if (sp) {
sp               1297 drivers/scsi/qla2xxx/qla_isr.c 		sp->done(sp, DID_OK << 16);
sp               1314 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp = NULL;
sp               1328 drivers/scsi/qla2xxx/qla_isr.c 	sp = req->outstanding_cmds[index];
sp               1329 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp) {
sp               1332 drivers/scsi/qla2xxx/qla_isr.c 		return sp;
sp               1334 drivers/scsi/qla2xxx/qla_isr.c 	if (sp->handle != index) {
sp               1336 drivers/scsi/qla2xxx/qla_isr.c 		    "SRB handle (%x) mismatch %x.\n", sp->handle, index);
sp               1343 drivers/scsi/qla2xxx/qla_isr.c 	return sp;
sp               1353 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               1358 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, mbx);
sp               1359 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               1362 drivers/scsi/qla2xxx/qla_isr.c 	lio = &sp->u.iocb_cmd;
sp               1363 drivers/scsi/qla2xxx/qla_isr.c 	type = sp->name;
sp               1364 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
sp               1374 drivers/scsi/qla2xxx/qla_isr.c 		    "status-flags=%x.\n", type, sp->handle,
sp               1387 drivers/scsi/qla2xxx/qla_isr.c 	if (status == 0x30 && sp->type == SRB_LOGIN_CMD &&
sp               1393 drivers/scsi/qla2xxx/qla_isr.c 		    type, sp->handle, fcport->d_id.b.domain,
sp               1398 drivers/scsi/qla2xxx/qla_isr.c 		if (sp->type == SRB_LOGIN_CMD) {
sp               1422 drivers/scsi/qla2xxx/qla_isr.c 	    "mb0=%x mb1=%x mb2=%x mb6=%x mb7=%x.\n", type, sp->handle,
sp               1429 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, 0);
sp               1437 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               1442 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               1443 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               1446 drivers/scsi/qla2xxx/qla_isr.c 	si = &sp->u.iocb_cmd;
sp               1447 drivers/scsi/qla2xxx/qla_isr.c 	sz = min(ARRAY_SIZE(pkt->mb), ARRAY_SIZE(sp->u.iocb_cmd.u.mbx.in_mb));
sp               1454 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, res);
sp               1462 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               1465 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               1466 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               1472 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, res);
sp               1481 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               1487 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               1488 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               1491 drivers/scsi/qla2xxx/qla_isr.c 	switch (sp->type) {
sp               1493 drivers/scsi/qla2xxx/qla_isr.c 	    bsg_job = sp->u.bsg_job;
sp               1539 drivers/scsi/qla2xxx/qla_isr.c 		 (struct ct_sns_rsp *)sp->u.iocb_cmd.u.ctarg.rsp,
sp               1540 drivers/scsi/qla2xxx/qla_isr.c 		 sp->name);
sp               1544 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, res);
sp               1553 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               1561 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               1562 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               1566 drivers/scsi/qla2xxx/qla_isr.c 	switch (sp->type) {
sp               1579 drivers/scsi/qla2xxx/qla_isr.c 			    type, sp, sp->type);
sp               1580 drivers/scsi/qla2xxx/qla_isr.c 			sp->done(sp, 0);
sp               1588 drivers/scsi/qla2xxx/qla_isr.c 		res = qla2x00_chk_ms_status(sp->vha, (ms_iocb_entry_t *)pkt,
sp               1589 drivers/scsi/qla2xxx/qla_isr.c 			(struct ct_sns_rsp *)sp->u.iocb_cmd.u.ctarg.rsp,
sp               1590 drivers/scsi/qla2xxx/qla_isr.c 			sp->name);
sp               1591 drivers/scsi/qla2xxx/qla_isr.c 		sp->done(sp, res);
sp               1595 drivers/scsi/qla2xxx/qla_isr.c 		    "Unrecognized SRB: (%p) type=%d.\n", sp, sp->type);
sp               1604 drivers/scsi/qla2xxx/qla_isr.c 		els = &sp->u.iocb_cmd;
sp               1624 drivers/scsi/qla2xxx/qla_isr.c 		    type, sp->handle, comp_status, fw_status[1], fw_status[2],
sp               1633 drivers/scsi/qla2xxx/qla_isr.c 	bsg_job = sp->u.bsg_job;
sp               1647 drivers/scsi/qla2xxx/qla_isr.c 			    type, sp->handle, comp_status, fw_status[1], fw_status[2],
sp               1654 drivers/scsi/qla2xxx/qla_isr.c 			    type, sp->handle, comp_status,
sp               1674 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, res);
sp               1684 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               1689 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, logio);
sp               1690 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               1693 drivers/scsi/qla2xxx/qla_isr.c 	lio = &sp->u.iocb_cmd;
sp               1694 drivers/scsi/qla2xxx/qla_isr.c 	type = sp->name;
sp               1695 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
sp               1705 drivers/scsi/qla2xxx/qla_isr.c 		    type, fcport->port_name, sp->handle, fcport->d_id.b.domain,
sp               1717 drivers/scsi/qla2xxx/qla_isr.c 		    "iop0=%x.\n", type, fcport->port_name, sp->handle,
sp               1725 drivers/scsi/qla2xxx/qla_isr.c 		if (sp->type == SRB_PRLI_CMD) {
sp               1733 drivers/scsi/qla2xxx/qla_isr.c 		if (sp->type != SRB_LOGIN_CMD)
sp               1801 drivers/scsi/qla2xxx/qla_isr.c 		sp->handle, fcport->d_id.b.domain,
sp               1808 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, 0);
sp               1817 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               1821 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, tsk);
sp               1822 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               1825 drivers/scsi/qla2xxx/qla_isr.c 	iocb = &sp->u.iocb_cmd;
sp               1826 drivers/scsi/qla2xxx/qla_isr.c 	type = sp->name;
sp               1827 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
sp               1833 drivers/scsi/qla2xxx/qla_isr.c 		    type, sp->handle, sts->entry_status);
sp               1838 drivers/scsi/qla2xxx/qla_isr.c 		    type, sp->handle, sts->comp_status);
sp               1845 drivers/scsi/qla2xxx/qla_isr.c 			    type, sp->handle, sts->rsp_data_len);
sp               1849 drivers/scsi/qla2xxx/qla_isr.c 			    type, sp->handle, sts->data[3]);
sp               1855 drivers/scsi/qla2xxx/qla_isr.c 		ql_dump_buffer(ql_dbg_async + ql_dbg_buffer, sp->vha, 0x5055,
sp               1858 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, 0);
sp               1862 drivers/scsi/qla2xxx/qla_isr.c     void *tsk, srb_t *sp)
sp               1872 drivers/scsi/qla2xxx/qla_isr.c 	iocb = &sp->u.iocb_cmd;
sp               1873 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
sp               1879 drivers/scsi/qla2xxx/qla_isr.c 		atomic_dec(&sp->vha->hw->nvme_active_aen_cnt);
sp               1918 drivers/scsi/qla2xxx/qla_isr.c 		sp->name, state_flags);
sp               1927 drivers/scsi/qla2xxx/qla_isr.c 		   sp->name, sp->handle, comp_status,
sp               1956 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, ret);
sp               1963 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               1966 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, vce);
sp               1967 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               1973 drivers/scsi/qla2xxx/qla_isr.c 		    sp->name, vce->entry_status);
sp               1978 drivers/scsi/qla2xxx/qla_isr.c 		    sp->name, le16_to_cpu(vce->comp_status),
sp               1986 drivers/scsi/qla2xxx/qla_isr.c 	sp->rc = rval;
sp               1987 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, rval);
sp               2081 drivers/scsi/qla2xxx/qla_isr.c qla2x00_handle_sense(srb_t *sp, uint8_t *sense_data, uint32_t par_sense_len,
sp               2084 drivers/scsi/qla2xxx/qla_isr.c 	struct scsi_qla_host *vha = sp->vha;
sp               2085 drivers/scsi/qla2xxx/qla_isr.c 	struct scsi_cmnd *cp = GET_CMD_SP(sp);
sp               2091 drivers/scsi/qla2xxx/qla_isr.c 	SET_CMD_SENSE_LEN(sp, sense_len);
sp               2092 drivers/scsi/qla2xxx/qla_isr.c 	SET_CMD_SENSE_PTR(sp, cp->sense_buffer);
sp               2100 drivers/scsi/qla2xxx/qla_isr.c 	SET_CMD_SENSE_PTR(sp, cp->sense_buffer + sense_len);
sp               2102 drivers/scsi/qla2xxx/qla_isr.c 	SET_CMD_SENSE_LEN(sp, track_sense_len);
sp               2105 drivers/scsi/qla2xxx/qla_isr.c 		rsp->status_srb = sp;
sp               2112 drivers/scsi/qla2xxx/qla_isr.c 		    sp->vha->host_no, cp->device->id, cp->device->lun,
sp               2132 drivers/scsi/qla2xxx/qla_isr.c qla2x00_handle_dif_error(srb_t *sp, struct sts_entry_24xx *sts24)
sp               2134 drivers/scsi/qla2xxx/qla_isr.c 	struct scsi_qla_host *vha = sp->vha;
sp               2135 drivers/scsi/qla2xxx/qla_isr.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp               2258 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               2277 drivers/scsi/qla2xxx/qla_isr.c 	sp = req->outstanding_cmds[index];
sp               2278 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp) {
sp               2289 drivers/scsi/qla2xxx/qla_isr.c 	bsg_job = sp->u.bsg_job;
sp               2397 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, DID_OK << 16);
sp               2410 drivers/scsi/qla2xxx/qla_isr.c 	srb_t		*sp;
sp               2455 drivers/scsi/qla2xxx/qla_isr.c 		sp = req->outstanding_cmds[handle];
sp               2456 drivers/scsi/qla2xxx/qla_isr.c 		if (!sp) {
sp               2477 drivers/scsi/qla2xxx/qla_isr.c 	if (sp->abort)
sp               2478 drivers/scsi/qla2xxx/qla_isr.c 		sp->aborted = 1;
sp               2480 drivers/scsi/qla2xxx/qla_isr.c 		sp->completed = 1;
sp               2482 drivers/scsi/qla2xxx/qla_isr.c 	if (sp->cmd_type != TYPE_SRB) {
sp               2486 drivers/scsi/qla2xxx/qla_isr.c 		    sp->cmd_type, sp);
sp               2491 drivers/scsi/qla2xxx/qla_isr.c 	if (sp->type == SRB_NVME_CMD) {
sp               2493 drivers/scsi/qla2xxx/qla_isr.c 		qla24xx_nvme_iocb_entry(vha, req, pkt, sp);
sp               2497 drivers/scsi/qla2xxx/qla_isr.c 	if (unlikely((state_flags & BIT_1) && (sp->type == SRB_BIDI_CMD))) {
sp               2503 drivers/scsi/qla2xxx/qla_isr.c 	if (sp->type == SRB_TM_CMD) {
sp               2516 drivers/scsi/qla2xxx/qla_isr.c 	cp = GET_CMD_SP(sp);
sp               2520 drivers/scsi/qla2xxx/qla_isr.c 		    sts->handle, sp);
sp               2527 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
sp               2549 drivers/scsi/qla2xxx/qla_isr.c 			ql_dbg(ql_dbg_io, sp->vha, 0x3033,
sp               2634 drivers/scsi/qla2xxx/qla_isr.c 		qla2x00_handle_sense(sp, sense_data, par_sense_len, sense_len,
sp               2703 drivers/scsi/qla2xxx/qla_isr.c 			qla2x00_handle_sense(sp, sense_data, par_sense_len,
sp               2750 drivers/scsi/qla2xxx/qla_isr.c 		logit = qla2x00_handle_dif_error(sp, sts24);
sp               2772 drivers/scsi/qla2xxx/qla_isr.c 		    resid_len, fw_resid_len, sp, cp);
sp               2792 drivers/scsi/qla2xxx/qla_isr.c 		    resid_len, fw_resid_len, sp, cp);
sp               2795 drivers/scsi/qla2xxx/qla_isr.c 		sp->done(sp, res);
sp               2811 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp = rsp->status_srb;
sp               2816 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp || !GET_CMD_SENSE_LEN(sp))
sp               2819 drivers/scsi/qla2xxx/qla_isr.c 	sense_len = GET_CMD_SENSE_LEN(sp);
sp               2820 drivers/scsi/qla2xxx/qla_isr.c 	sense_ptr = GET_CMD_SENSE_PTR(sp);
sp               2822 drivers/scsi/qla2xxx/qla_isr.c 	cp = GET_CMD_SP(sp);
sp               2825 drivers/scsi/qla2xxx/qla_isr.c 		    "cmd is NULL: already returned to OS (sp=%p).\n", sp);
sp               2846 drivers/scsi/qla2xxx/qla_isr.c 	SET_CMD_SENSE_PTR(sp, sense_ptr);
sp               2847 drivers/scsi/qla2xxx/qla_isr.c 	SET_CMD_SENSE_LEN(sp, sense_len);
sp               2852 drivers/scsi/qla2xxx/qla_isr.c 		sp->done(sp, cp->result);
sp               2866 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               2898 drivers/scsi/qla2xxx/qla_isr.c 		sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               2899 drivers/scsi/qla2xxx/qla_isr.c 		if (sp) {
sp               2900 drivers/scsi/qla2xxx/qla_isr.c 			sp->done(sp, res);
sp               2958 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               2961 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               2962 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               2965 drivers/scsi/qla2xxx/qla_isr.c 	abt = &sp->u.iocb_cmd;
sp               2967 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, 0);
sp               2973 drivers/scsi/qla2xxx/qla_isr.c 	srb_t *sp;
sp               2977 drivers/scsi/qla2xxx/qla_isr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               2978 drivers/scsi/qla2xxx/qla_isr.c 	if (!sp)
sp               2982 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, comp_status);
sp               1462 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_abort_command(srb_t *sp)
sp               1469 drivers/scsi/qla2xxx/qla_mbx.c 	fc_port_t	*fcport = sp->fcport;
sp               1473 drivers/scsi/qla2xxx/qla_mbx.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp               1478 drivers/scsi/qla2xxx/qla_mbx.c 	if (vha->flags.qpairs_available && sp->qpair)
sp               1479 drivers/scsi/qla2xxx/qla_mbx.c 		req = sp->qpair->req;
sp               1485 drivers/scsi/qla2xxx/qla_mbx.c 		if (req->outstanding_cmds[handle] == sp)
sp               3103 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_abort_command(srb_t *sp)
sp               3111 drivers/scsi/qla2xxx/qla_mbx.c 	fc_port_t	*fcport = sp->fcport;
sp               3115 drivers/scsi/qla2xxx/qla_mbx.c 	struct qla_qpair *qpair = sp->qpair;
sp               3120 drivers/scsi/qla2xxx/qla_mbx.c 	if (sp->qpair)
sp               3121 drivers/scsi/qla2xxx/qla_mbx.c 		req = sp->qpair->req;
sp               3126 drivers/scsi/qla2xxx/qla_mbx.c 		return qla24xx_async_abort_command(sp);
sp               3130 drivers/scsi/qla2xxx/qla_mbx.c 		if (req->outstanding_cmds[handle] == sp)
sp               6228 drivers/scsi/qla2xxx/qla_mbx.c static void qla2x00_async_mb_sp_done(srb_t *sp, int res)
sp               6230 drivers/scsi/qla2xxx/qla_mbx.c 	sp->u.iocb_cmd.u.mbx.rc = res;
sp               6232 drivers/scsi/qla2xxx/qla_mbx.c 	complete(&sp->u.iocb_cmd.u.mbx.comp);
sp               6244 drivers/scsi/qla2xxx/qla_mbx.c 	srb_t *sp;
sp               6250 drivers/scsi/qla2xxx/qla_mbx.c 	sp = qla2x00_get_sp(vha, NULL, GFP_KERNEL);
sp               6251 drivers/scsi/qla2xxx/qla_mbx.c 	if (!sp)
sp               6254 drivers/scsi/qla2xxx/qla_mbx.c 	sp->type = SRB_MB_IOCB;
sp               6255 drivers/scsi/qla2xxx/qla_mbx.c 	sp->name = mb_to_str(mcp->mb[0]);
sp               6257 drivers/scsi/qla2xxx/qla_mbx.c 	c = &sp->u.iocb_cmd;
sp               6261 drivers/scsi/qla2xxx/qla_mbx.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp               6263 drivers/scsi/qla2xxx/qla_mbx.c 	memcpy(sp->u.iocb_cmd.u.mbx.out_mb, mcp->mb, SIZEOF_IOCB_MB_REG);
sp               6265 drivers/scsi/qla2xxx/qla_mbx.c 	sp->done = qla2x00_async_mb_sp_done;
sp               6267 drivers/scsi/qla2xxx/qla_mbx.c 	rval = qla2x00_start_sp(sp);
sp               6271 drivers/scsi/qla2xxx/qla_mbx.c 		    __func__, sp->name, rval);
sp               6276 drivers/scsi/qla2xxx/qla_mbx.c 	    sp->name, sp->handle);
sp               6279 drivers/scsi/qla2xxx/qla_mbx.c 	memcpy(mcp->mb, sp->u.iocb_cmd.u.mbx.in_mb, SIZEOF_IOCB_MB_REG);
sp               6285 drivers/scsi/qla2xxx/qla_mbx.c 		    __func__, sp->name, rval);
sp               6289 drivers/scsi/qla2xxx/qla_mbx.c 		    __func__, sp->name);
sp               6293 drivers/scsi/qla2xxx/qla_mbx.c 		    __func__, sp->name, rval);
sp               6298 drivers/scsi/qla2xxx/qla_mbx.c 	sp->free(sp);
sp                918 drivers/scsi/qla2xxx/qla_mid.c static void qla_ctrlvp_sp_done(srb_t *sp, int res)
sp                920 drivers/scsi/qla2xxx/qla_mid.c 	if (sp->comp)
sp                921 drivers/scsi/qla2xxx/qla_mid.c 		complete(sp->comp);
sp                939 drivers/scsi/qla2xxx/qla_mid.c 	srb_t *sp;
sp                947 drivers/scsi/qla2xxx/qla_mid.c 	sp = qla2x00_get_sp(base_vha, NULL, GFP_KERNEL);
sp                948 drivers/scsi/qla2xxx/qla_mid.c 	if (!sp)
sp                951 drivers/scsi/qla2xxx/qla_mid.c 	sp->type = SRB_CTRL_VP;
sp                952 drivers/scsi/qla2xxx/qla_mid.c 	sp->name = "ctrl_vp";
sp                953 drivers/scsi/qla2xxx/qla_mid.c 	sp->comp = &comp;
sp                954 drivers/scsi/qla2xxx/qla_mid.c 	sp->done = qla_ctrlvp_sp_done;
sp                955 drivers/scsi/qla2xxx/qla_mid.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp                956 drivers/scsi/qla2xxx/qla_mid.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha) + 2);
sp                957 drivers/scsi/qla2xxx/qla_mid.c 	sp->u.iocb_cmd.u.ctrlvp.cmd = cmd;
sp                958 drivers/scsi/qla2xxx/qla_mid.c 	sp->u.iocb_cmd.u.ctrlvp.vp_index = vp_index;
sp                960 drivers/scsi/qla2xxx/qla_mid.c 	rval = qla2x00_start_sp(sp);
sp                964 drivers/scsi/qla2xxx/qla_mid.c 		    __func__, sp->name, rval);
sp                969 drivers/scsi/qla2xxx/qla_mid.c 	    sp->name, sp->handle);
sp                972 drivers/scsi/qla2xxx/qla_mid.c 	sp->comp = NULL;
sp                974 drivers/scsi/qla2xxx/qla_mid.c 	rval = sp->rc;
sp                978 drivers/scsi/qla2xxx/qla_mid.c 		    __func__, sp->name, rval);
sp                982 drivers/scsi/qla2xxx/qla_mid.c 		    __func__, sp->name);
sp                986 drivers/scsi/qla2xxx/qla_mid.c 		    __func__, sp->name, rval);
sp                990 drivers/scsi/qla2xxx/qla_mid.c 	sp->free(sp);
sp               1794 drivers/scsi/qla2xxx/qla_mr.c 	srb_t *sp = data;
sp               1795 drivers/scsi/qla2xxx/qla_mr.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp               1800 drivers/scsi/qla2xxx/qla_mr.c static void qla2x00_fxdisc_sp_done(srb_t *sp, int res)
sp               1802 drivers/scsi/qla2xxx/qla_mr.c 	struct srb_iocb *lio = &sp->u.iocb_cmd;
sp               1810 drivers/scsi/qla2xxx/qla_mr.c 	srb_t *sp;
sp               1818 drivers/scsi/qla2xxx/qla_mr.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
sp               1819 drivers/scsi/qla2xxx/qla_mr.c 	if (!sp)
sp               1822 drivers/scsi/qla2xxx/qla_mr.c 	sp->type = SRB_FXIOCB_DCMD;
sp               1823 drivers/scsi/qla2xxx/qla_mr.c 	sp->name = "fxdisc";
sp               1825 drivers/scsi/qla2xxx/qla_mr.c 	fdisc = &sp->u.iocb_cmd;
sp               1827 drivers/scsi/qla2xxx/qla_mr.c 	qla2x00_init_timer(sp, FXDISC_TIMEOUT);
sp               1929 drivers/scsi/qla2xxx/qla_mr.c 	sp->done = qla2x00_fxdisc_sp_done;
sp               1931 drivers/scsi/qla2xxx/qla_mr.c 	rval = qla2x00_start_sp(sp);
sp               2005 drivers/scsi/qla2xxx/qla_mr.c 	sp->free(sp);
sp               2130 drivers/scsi/qla2xxx/qla_mr.c qlafx00_handle_sense(srb_t *sp, uint8_t *sense_data, uint32_t par_sense_len,
sp               2133 drivers/scsi/qla2xxx/qla_mr.c 	struct scsi_qla_host *vha = sp->vha;
sp               2134 drivers/scsi/qla2xxx/qla_mr.c 	struct scsi_cmnd *cp = GET_CMD_SP(sp);
sp               2137 drivers/scsi/qla2xxx/qla_mr.c 	SET_FW_SENSE_LEN(sp, sense_len);
sp               2142 drivers/scsi/qla2xxx/qla_mr.c 	SET_CMD_SENSE_LEN(sp, sense_len);
sp               2143 drivers/scsi/qla2xxx/qla_mr.c 	SET_CMD_SENSE_PTR(sp, cp->sense_buffer);
sp               2151 drivers/scsi/qla2xxx/qla_mr.c 	SET_FW_SENSE_LEN(sp, GET_FW_SENSE_LEN(sp) - sense_len);
sp               2153 drivers/scsi/qla2xxx/qla_mr.c 	SET_CMD_SENSE_PTR(sp, cp->sense_buffer + sense_len);
sp               2155 drivers/scsi/qla2xxx/qla_mr.c 	SET_CMD_SENSE_LEN(sp, track_sense_len);
sp               2160 drivers/scsi/qla2xxx/qla_mr.c 	if (GET_FW_SENSE_LEN(sp) > 0) {
sp               2161 drivers/scsi/qla2xxx/qla_mr.c 		rsp->status_srb = sp;
sp               2168 drivers/scsi/qla2xxx/qla_mr.c 		    sp->vha->host_no, cp->device->id, cp->device->lun,
sp               2177 drivers/scsi/qla2xxx/qla_mr.c 		      struct tsk_mgmt_entry_fx00 *pkt, srb_t *sp,
sp               2182 drivers/scsi/qla2xxx/qla_mr.c 	tmf = &sp->u.iocb_cmd;
sp               2187 drivers/scsi/qla2xxx/qla_mr.c 	sp->done(sp, 0);
sp               2195 drivers/scsi/qla2xxx/qla_mr.c 	srb_t *sp;
sp               2198 drivers/scsi/qla2xxx/qla_mr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               2199 drivers/scsi/qla2xxx/qla_mr.c 	if (!sp)
sp               2202 drivers/scsi/qla2xxx/qla_mr.c 	abt = &sp->u.iocb_cmd;
sp               2204 drivers/scsi/qla2xxx/qla_mr.c 	sp->done(sp, 0);
sp               2212 drivers/scsi/qla2xxx/qla_mr.c 	srb_t *sp;
sp               2220 drivers/scsi/qla2xxx/qla_mr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               2221 drivers/scsi/qla2xxx/qla_mr.c 	if (!sp)
sp               2224 drivers/scsi/qla2xxx/qla_mr.c 	if (sp->type == SRB_FXIOCB_DCMD) {
sp               2225 drivers/scsi/qla2xxx/qla_mr.c 		iocb_job = &sp->u.iocb_cmd;
sp               2233 drivers/scsi/qla2xxx/qla_mr.c 		bsg_job = sp->u.bsg_job;
sp               2257 drivers/scsi/qla2xxx/qla_mr.c 		    sp->vha, 0x5080, pkt, sizeof(*pkt));
sp               2260 drivers/scsi/qla2xxx/qla_mr.c 		    sp->vha, 0x5074,
sp               2267 drivers/scsi/qla2xxx/qla_mr.c 	sp->done(sp, res);
sp               2279 drivers/scsi/qla2xxx/qla_mr.c 	srb_t		*sp;
sp               2309 drivers/scsi/qla2xxx/qla_mr.c 		sp = req->outstanding_cmds[handle];
sp               2311 drivers/scsi/qla2xxx/qla_mr.c 		sp = NULL;
sp               2313 drivers/scsi/qla2xxx/qla_mr.c 	if (sp == NULL) {
sp               2322 drivers/scsi/qla2xxx/qla_mr.c 	if (sp->type == SRB_TM_CMD) {
sp               2324 drivers/scsi/qla2xxx/qla_mr.c 		qlafx00_tm_iocb_entry(vha, req, pkt, sp,
sp               2336 drivers/scsi/qla2xxx/qla_mr.c 	cp = GET_CMD_SP(sp);
sp               2340 drivers/scsi/qla2xxx/qla_mr.c 		    handle, sp);
sp               2347 drivers/scsi/qla2xxx/qla_mr.c 	fcport = sp->fcport;
sp               2409 drivers/scsi/qla2xxx/qla_mr.c 		qlafx00_handle_sense(sp, sense_data, par_sense_len, sense_len,
sp               2491 drivers/scsi/qla2xxx/qla_mr.c 			qlafx00_handle_sense(sp, sense_data, par_sense_len,
sp               2541 drivers/scsi/qla2xxx/qla_mr.c 		sp->done(sp, res);
sp               2559 drivers/scsi/qla2xxx/qla_mr.c 	srb_t *sp = rsp->status_srb;
sp               2564 drivers/scsi/qla2xxx/qla_mr.c 	if (!sp) {
sp               2566 drivers/scsi/qla2xxx/qla_mr.c 		    "no SP, sp = %p\n", sp);
sp               2570 drivers/scsi/qla2xxx/qla_mr.c 	if (!GET_FW_SENSE_LEN(sp)) {
sp               2572 drivers/scsi/qla2xxx/qla_mr.c 		    "no fw sense data, sp = %p\n", sp);
sp               2575 drivers/scsi/qla2xxx/qla_mr.c 	cp = GET_CMD_SP(sp);
sp               2578 drivers/scsi/qla2xxx/qla_mr.c 		    "cmd is NULL: already returned to OS (sp=%p).\n", sp);
sp               2584 drivers/scsi/qla2xxx/qla_mr.c 	if (!GET_CMD_SENSE_LEN(sp)) {
sp               2586 drivers/scsi/qla2xxx/qla_mr.c 		    "no sense data, sp = %p\n", sp);
sp               2588 drivers/scsi/qla2xxx/qla_mr.c 		sense_len = GET_CMD_SENSE_LEN(sp);
sp               2589 drivers/scsi/qla2xxx/qla_mr.c 		sense_ptr = GET_CMD_SENSE_PTR(sp);
sp               2592 drivers/scsi/qla2xxx/qla_mr.c 		    sp, sense_len, sense_ptr);
sp               2609 drivers/scsi/qla2xxx/qla_mr.c 		SET_CMD_SENSE_PTR(sp, sense_ptr);
sp               2610 drivers/scsi/qla2xxx/qla_mr.c 		SET_CMD_SENSE_LEN(sp, sense_len);
sp               2612 drivers/scsi/qla2xxx/qla_mr.c 	sense_len = GET_FW_SENSE_LEN(sp);
sp               2615 drivers/scsi/qla2xxx/qla_mr.c 	SET_FW_SENSE_LEN(sp, sense_len);
sp               2620 drivers/scsi/qla2xxx/qla_mr.c 		sp->done(sp, cp->result);
sp               2636 drivers/scsi/qla2xxx/qla_mr.c 	srb_t		*sp;
sp               2666 drivers/scsi/qla2xxx/qla_mr.c 			sp = req->outstanding_cmds[handle];
sp               2668 drivers/scsi/qla2xxx/qla_mr.c 			sp = NULL;
sp               2670 drivers/scsi/qla2xxx/qla_mr.c 		if (sp == NULL) {
sp               2692 drivers/scsi/qla2xxx/qla_mr.c 	srb_t *sp;
sp               2701 drivers/scsi/qla2xxx/qla_mr.c 	sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
sp               2702 drivers/scsi/qla2xxx/qla_mr.c 	if (sp) {
sp               2703 drivers/scsi/qla2xxx/qla_mr.c 		sp->done(sp, res);
sp               2994 drivers/scsi/qla2xxx/qla_mr.c qlafx00_build_scsi_iocbs(srb_t *sp, struct cmd_type_7_fx00 *cmd_pkt,
sp               3007 drivers/scsi/qla2xxx/qla_mr.c 	vha = sp->vha;
sp               3010 drivers/scsi/qla2xxx/qla_mr.c 	cmd = GET_CMD_SP(sp);
sp               3074 drivers/scsi/qla2xxx/qla_mr.c qlafx00_start_scsi(srb_t *sp)
sp               3084 drivers/scsi/qla2xxx/qla_mr.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp               3085 drivers/scsi/qla2xxx/qla_mr.c 	struct scsi_qla_host *vha = sp->vha;
sp               3130 drivers/scsi/qla2xxx/qla_mr.c 	req->outstanding_cmds[handle] = sp;
sp               3131 drivers/scsi/qla2xxx/qla_mr.c 	sp->handle = handle;
sp               3139 drivers/scsi/qla2xxx/qla_mr.c 	lcmd_pkt.handle = MAKE_HANDLE(req->id, sp->handle);
sp               3144 drivers/scsi/qla2xxx/qla_mr.c 	lcmd_pkt.tgt_idx = cpu_to_le16(sp->fcport->tgt_id);
sp               3155 drivers/scsi/qla2xxx/qla_mr.c 	qlafx00_build_scsi_iocbs(sp, cmd_pkt, tot_dsds, &lcmd_pkt);
sp               3179 drivers/scsi/qla2xxx/qla_mr.c 	sp->flags |= SRB_DMA_VALID;
sp               3198 drivers/scsi/qla2xxx/qla_mr.c qlafx00_tm_iocb(srb_t *sp, struct tsk_mgmt_entry_fx00 *ptm_iocb)
sp               3200 drivers/scsi/qla2xxx/qla_mr.c 	struct srb_iocb *fxio = &sp->u.iocb_cmd;
sp               3201 drivers/scsi/qla2xxx/qla_mr.c 	scsi_qla_host_t *vha = sp->vha;
sp               3209 drivers/scsi/qla2xxx/qla_mr.c 	tm_iocb.handle = cpu_to_le32(MAKE_HANDLE(req->id, sp->handle));
sp               3211 drivers/scsi/qla2xxx/qla_mr.c 	tm_iocb.tgt_id = cpu_to_le16(sp->fcport->tgt_id);
sp               3225 drivers/scsi/qla2xxx/qla_mr.c qlafx00_abort_iocb(srb_t *sp, struct abort_iocb_entry_fx00 *pabt_iocb)
sp               3227 drivers/scsi/qla2xxx/qla_mr.c 	struct srb_iocb *fxio = &sp->u.iocb_cmd;
sp               3228 drivers/scsi/qla2xxx/qla_mr.c 	scsi_qla_host_t *vha = sp->vha;
sp               3235 drivers/scsi/qla2xxx/qla_mr.c 	abt_iocb.handle = cpu_to_le32(MAKE_HANDLE(req->id, sp->handle));
sp               3238 drivers/scsi/qla2xxx/qla_mr.c 	abt_iocb.tgt_id_sts = cpu_to_le16(sp->fcport->tgt_id);
sp               3247 drivers/scsi/qla2xxx/qla_mr.c qlafx00_fxdisc_iocb(srb_t *sp, struct fxdisc_entry_fx00 *pfxiocb)
sp               3249 drivers/scsi/qla2xxx/qla_mr.c 	struct srb_iocb *fxio = &sp->u.iocb_cmd;
sp               3258 drivers/scsi/qla2xxx/qla_mr.c 	fx_iocb.handle = cpu_to_le32(sp->handle);
sp               3261 drivers/scsi/qla2xxx/qla_mr.c 	if (sp->type == SRB_FXIOCB_DCMD) {
sp               3263 drivers/scsi/qla2xxx/qla_mr.c 		    sp->u.iocb_cmd.u.fxiocb.req_func_type;
sp               3297 drivers/scsi/qla2xxx/qla_mr.c 		bsg_job = sp->u.bsg_job;
sp               3337 drivers/scsi/qla2xxx/qla_mr.c 						sp->vha->req, &lcont_pkt);
sp               3354 drivers/scsi/qla2xxx/qla_mr.c 					    sp->vha, 0x3042,
sp               3363 drivers/scsi/qla2xxx/qla_mr.c 				    sp->vha, 0x3043,
sp               3393 drivers/scsi/qla2xxx/qla_mr.c 						sp->vha->req, &lcont_pkt);
sp               3410 drivers/scsi/qla2xxx/qla_mr.c 					    sp->vha, 0x3045,
sp               3419 drivers/scsi/qla2xxx/qla_mr.c 				    sp->vha, 0x3046,
sp               3431 drivers/scsi/qla2xxx/qla_mr.c 	    sp->vha, 0x3047, &fx_iocb, sizeof(fx_iocb));
sp                125 drivers/scsi/qla2xxx/qla_nvme.c 	struct srb *sp = container_of(kref, struct srb, cmd_kref);
sp                126 drivers/scsi/qla2xxx/qla_nvme.c 	struct nvme_private *priv = (struct nvme_private *)sp->priv;
sp                134 drivers/scsi/qla2xxx/qla_nvme.c 	nvme = &sp->u.iocb_cmd;
sp                138 drivers/scsi/qla2xxx/qla_nvme.c 	priv->sp = NULL;
sp                139 drivers/scsi/qla2xxx/qla_nvme.c 	sp->priv = NULL;
sp                151 drivers/scsi/qla2xxx/qla_nvme.c 	qla2xxx_rel_qpair_sp(sp->qpair, sp);
sp                156 drivers/scsi/qla2xxx/qla_nvme.c 	struct srb *sp = container_of(kref, struct srb, cmd_kref);
sp                157 drivers/scsi/qla2xxx/qla_nvme.c 	struct nvme_private *priv = (struct nvme_private *)sp->priv;
sp                165 drivers/scsi/qla2xxx/qla_nvme.c 	priv->sp = NULL;
sp                166 drivers/scsi/qla2xxx/qla_nvme.c 	sp->priv = NULL;
sp                172 drivers/scsi/qla2xxx/qla_nvme.c 	qla2x00_rel_sp(sp);
sp                180 drivers/scsi/qla2xxx/qla_nvme.c 	kref_put(&priv->sp->cmd_kref, qla_nvme_release_ls_cmd_kref);
sp                183 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_sp_ls_done(srb_t *sp, int res)
sp                185 drivers/scsi/qla2xxx/qla_nvme.c 	struct nvme_private *priv = sp->priv;
sp                187 drivers/scsi/qla2xxx/qla_nvme.c 	if (WARN_ON_ONCE(kref_read(&sp->cmd_kref) == 0))
sp                199 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_sp_done(srb_t *sp, int res)
sp                201 drivers/scsi/qla2xxx/qla_nvme.c 	struct nvme_private *priv = sp->priv;
sp                204 drivers/scsi/qla2xxx/qla_nvme.c 	kref_put(&sp->cmd_kref, qla_nvme_release_fcp_cmd_kref);
sp                213 drivers/scsi/qla2xxx/qla_nvme.c 	srb_t *sp = priv->sp;
sp                214 drivers/scsi/qla2xxx/qla_nvme.c 	fc_port_t *fcport = sp->fcport;
sp                220 drivers/scsi/qla2xxx/qla_nvme.c 	       __func__, sp, sp->handle, fcport, fcport->deleted);
sp                226 drivers/scsi/qla2xxx/qla_nvme.c 		ql_log(ql_log_info, sp->fcport->vha, 0xffff,
sp                228 drivers/scsi/qla2xxx/qla_nvme.c 		    __func__, sp, sp->type);
sp                229 drivers/scsi/qla2xxx/qla_nvme.c 		sp->done(sp, 0);
sp                233 drivers/scsi/qla2xxx/qla_nvme.c 	rval = ha->isp_ops->abort_command(sp);
sp                238 drivers/scsi/qla2xxx/qla_nvme.c 	    sp, sp->handle, fcport, rval);
sp                242 drivers/scsi/qla2xxx/qla_nvme.c 	kref_put(&sp->cmd_kref, sp->put_fn);
sp                252 drivers/scsi/qla2xxx/qla_nvme.c 	if (!priv->sp) {
sp                257 drivers/scsi/qla2xxx/qla_nvme.c 	if (!kref_get_unless_zero(&priv->sp->cmd_kref)) {
sp                277 drivers/scsi/qla2xxx/qla_nvme.c 	srb_t           *sp;
sp                290 drivers/scsi/qla2xxx/qla_nvme.c 	sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
sp                291 drivers/scsi/qla2xxx/qla_nvme.c 	if (!sp)
sp                294 drivers/scsi/qla2xxx/qla_nvme.c 	sp->type = SRB_NVME_LS;
sp                295 drivers/scsi/qla2xxx/qla_nvme.c 	sp->name = "nvme_ls";
sp                296 drivers/scsi/qla2xxx/qla_nvme.c 	sp->done = qla_nvme_sp_ls_done;
sp                297 drivers/scsi/qla2xxx/qla_nvme.c 	sp->put_fn = qla_nvme_release_ls_cmd_kref;
sp                298 drivers/scsi/qla2xxx/qla_nvme.c 	sp->priv = (void *)priv;
sp                299 drivers/scsi/qla2xxx/qla_nvme.c 	priv->sp = sp;
sp                300 drivers/scsi/qla2xxx/qla_nvme.c 	kref_init(&sp->cmd_kref);
sp                302 drivers/scsi/qla2xxx/qla_nvme.c 	nvme = &sp->u.iocb_cmd;
sp                316 drivers/scsi/qla2xxx/qla_nvme.c 	rval = qla2x00_start_sp(sp);
sp                320 drivers/scsi/qla2xxx/qla_nvme.c 		wake_up(&sp->nvme_ls_waitq);
sp                321 drivers/scsi/qla2xxx/qla_nvme.c 		sp->priv = NULL;
sp                322 drivers/scsi/qla2xxx/qla_nvme.c 		priv->sp = NULL;
sp                323 drivers/scsi/qla2xxx/qla_nvme.c 		qla2x00_rel_sp(sp);
sp                338 drivers/scsi/qla2xxx/qla_nvme.c 	if (!priv->sp) {
sp                342 drivers/scsi/qla2xxx/qla_nvme.c 	if (!kref_get_unless_zero(&priv->sp->cmd_kref)) {
sp                352 drivers/scsi/qla2xxx/qla_nvme.c static inline int qla2x00_start_nvme_mq(srb_t *sp)
sp                364 drivers/scsi/qla2xxx/qla_nvme.c 	struct scsi_qla_host *vha = sp->fcport->vha;
sp                366 drivers/scsi/qla2xxx/qla_nvme.c 	struct qla_qpair *qpair = sp->qpair;
sp                367 drivers/scsi/qla2xxx/qla_nvme.c 	struct srb_iocb *nvme = &sp->u.iocb_cmd;
sp                411 drivers/scsi/qla2xxx/qla_nvme.c 	req->outstanding_cmds[handle] = sp;
sp                412 drivers/scsi/qla2xxx/qla_nvme.c 	sp->handle = handle;
sp                435 drivers/scsi/qla2xxx/qla_nvme.c 		    (sp->fcport->nvme_prli_service_param &
sp                438 drivers/scsi/qla2xxx/qla_nvme.c 			    sp->fcport->nvme_first_burst_size) ||
sp                439 drivers/scsi/qla2xxx/qla_nvme.c 				(sp->fcport->nvme_first_burst_size == 0))
sp                450 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
sp                451 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
sp                452 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
sp                453 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
sp                454 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->vp_index = sp->fcport->vha->vp_idx;
sp                533 drivers/scsi/qla2xxx/qla_nvme.c 	srb_t *sp;
sp                556 drivers/scsi/qla2xxx/qla_nvme.c 	sp = qla2xxx_get_qpair_sp(vha, qpair, fcport, GFP_ATOMIC);
sp                557 drivers/scsi/qla2xxx/qla_nvme.c 	if (!sp)
sp                560 drivers/scsi/qla2xxx/qla_nvme.c 	init_waitqueue_head(&sp->nvme_ls_waitq);
sp                561 drivers/scsi/qla2xxx/qla_nvme.c 	kref_init(&sp->cmd_kref);
sp                563 drivers/scsi/qla2xxx/qla_nvme.c 	sp->priv = (void *)priv;
sp                564 drivers/scsi/qla2xxx/qla_nvme.c 	priv->sp = sp;
sp                565 drivers/scsi/qla2xxx/qla_nvme.c 	sp->type = SRB_NVME_CMD;
sp                566 drivers/scsi/qla2xxx/qla_nvme.c 	sp->name = "nvme_cmd";
sp                567 drivers/scsi/qla2xxx/qla_nvme.c 	sp->done = qla_nvme_sp_done;
sp                568 drivers/scsi/qla2xxx/qla_nvme.c 	sp->put_fn = qla_nvme_release_fcp_cmd_kref;
sp                569 drivers/scsi/qla2xxx/qla_nvme.c 	sp->qpair = qpair;
sp                570 drivers/scsi/qla2xxx/qla_nvme.c 	sp->vha = vha;
sp                571 drivers/scsi/qla2xxx/qla_nvme.c 	nvme = &sp->u.iocb_cmd;
sp                574 drivers/scsi/qla2xxx/qla_nvme.c 	rval = qla2x00_start_nvme_mq(sp);
sp                578 drivers/scsi/qla2xxx/qla_nvme.c 		wake_up(&sp->nvme_ls_waitq);
sp                579 drivers/scsi/qla2xxx/qla_nvme.c 		sp->priv = NULL;
sp                580 drivers/scsi/qla2xxx/qla_nvme.c 		priv->sp = NULL;
sp                581 drivers/scsi/qla2xxx/qla_nvme.c 		qla2xxx_rel_qpair_sp(sp->qpair, sp);
sp                 31 drivers/scsi/qla2xxx/qla_nvme.h 	struct srb	*sp;
sp                146 drivers/scsi/qla2xxx/qla_nvme.h void qla24xx_async_gffid_sp_done(struct srb *sp, int);
sp               3679 drivers/scsi/qla2xxx/qla_nx.c 		srb_t *sp;
sp               3688 drivers/scsi/qla2xxx/qla_nx.c 				sp = req->outstanding_cmds[cnt];
sp               3689 drivers/scsi/qla2xxx/qla_nx.c 				if (sp) {
sp               3690 drivers/scsi/qla2xxx/qla_nx.c 					if ((!sp->u.scmd.crc_ctx ||
sp               3691 drivers/scsi/qla2xxx/qla_nx.c 					    (sp->flags &
sp               3696 drivers/scsi/qla2xxx/qla_nx.c 						if (ha->isp_ops->abort_command(sp)) {
sp                655 drivers/scsi/qla2xxx/qla_os.c void qla2x00_sp_free_dma(srb_t *sp)
sp                657 drivers/scsi/qla2xxx/qla_os.c 	struct qla_hw_data *ha = sp->vha->hw;
sp                658 drivers/scsi/qla2xxx/qla_os.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp                660 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_DMA_VALID) {
sp                662 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_DMA_VALID;
sp                665 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_CRC_PROT_DMA_VALID) {
sp                668 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_CRC_PROT_DMA_VALID;
sp                671 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_CRC_CTX_DSD_VALID) {
sp                673 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_clean_dsd_pool(ha, sp->u.scmd.crc_ctx);
sp                674 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_CRC_CTX_DSD_VALID;
sp                677 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_CRC_CTX_DMA_VALID) {
sp                678 drivers/scsi/qla2xxx/qla_os.c 		struct crc_context *ctx0 = sp->u.scmd.crc_ctx;
sp                681 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_CRC_CTX_DMA_VALID;
sp                684 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_FCP_CMND_DMA_VALID) {
sp                685 drivers/scsi/qla2xxx/qla_os.c 		struct ct6_dsd *ctx1 = sp->u.scmd.ct6_ctx;
sp                696 drivers/scsi/qla2xxx/qla_os.c void qla2x00_sp_compl(srb_t *sp, int res)
sp                698 drivers/scsi/qla2xxx/qla_os.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp                699 drivers/scsi/qla2xxx/qla_os.c 	struct completion *comp = sp->comp;
sp                701 drivers/scsi/qla2xxx/qla_os.c 	sp->free(sp);
sp                709 drivers/scsi/qla2xxx/qla_os.c void qla2xxx_qpair_sp_free_dma(srb_t *sp)
sp                711 drivers/scsi/qla2xxx/qla_os.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp                712 drivers/scsi/qla2xxx/qla_os.c 	struct qla_hw_data *ha = sp->fcport->vha->hw;
sp                714 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_DMA_VALID) {
sp                716 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_DMA_VALID;
sp                719 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_CRC_PROT_DMA_VALID) {
sp                722 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_CRC_PROT_DMA_VALID;
sp                725 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_CRC_CTX_DSD_VALID) {
sp                727 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_clean_dsd_pool(ha, sp->u.scmd.crc_ctx);
sp                728 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_CRC_CTX_DSD_VALID;
sp                731 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_DIF_BUNDL_DMA_VALID) {
sp                732 drivers/scsi/qla2xxx/qla_os.c 		struct crc_context *difctx = sp->u.scmd.crc_ctx;
sp                754 drivers/scsi/qla2xxx/qla_os.c 			ql_dbg(ql_dbg_tgt+ql_dbg_verbose, sp->vha, 0xe022,
sp                760 drivers/scsi/qla2xxx/qla_os.c 			ql_dbg(ql_dbg_tgt+ql_dbg_verbose, sp->vha, 0xe022,
sp                764 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_DIF_BUNDL_DMA_VALID;
sp                767 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_FCP_CMND_DMA_VALID) {
sp                768 drivers/scsi/qla2xxx/qla_os.c 		struct ct6_dsd *ctx1 = sp->u.scmd.ct6_ctx;
sp                776 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_FCP_CMND_DMA_VALID;
sp                779 drivers/scsi/qla2xxx/qla_os.c 	if (sp->flags & SRB_CRC_CTX_DMA_VALID) {
sp                780 drivers/scsi/qla2xxx/qla_os.c 		struct crc_context *ctx0 = sp->u.scmd.crc_ctx;
sp                783 drivers/scsi/qla2xxx/qla_os.c 		sp->flags &= ~SRB_CRC_CTX_DMA_VALID;
sp                787 drivers/scsi/qla2xxx/qla_os.c void qla2xxx_qpair_sp_compl(srb_t *sp, int res)
sp                789 drivers/scsi/qla2xxx/qla_os.c 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
sp                790 drivers/scsi/qla2xxx/qla_os.c 	struct completion *comp = sp->comp;
sp                792 drivers/scsi/qla2xxx/qla_os.c 	sp->free(sp);
sp                808 drivers/scsi/qla2xxx/qla_os.c 	srb_t *sp;
sp                891 drivers/scsi/qla2xxx/qla_os.c 	sp = scsi_cmd_priv(cmd);
sp                892 drivers/scsi/qla2xxx/qla_os.c 	qla2xxx_init_sp(sp, vha, vha->hw->base_qpair, fcport);
sp                894 drivers/scsi/qla2xxx/qla_os.c 	sp->u.scmd.cmd = cmd;
sp                895 drivers/scsi/qla2xxx/qla_os.c 	sp->type = SRB_SCSI_CMD;
sp                897 drivers/scsi/qla2xxx/qla_os.c 	CMD_SP(cmd) = (void *)sp;
sp                898 drivers/scsi/qla2xxx/qla_os.c 	sp->free = qla2x00_sp_free_dma;
sp                899 drivers/scsi/qla2xxx/qla_os.c 	sp->done = qla2x00_sp_compl;
sp                901 drivers/scsi/qla2xxx/qla_os.c 	rval = ha->isp_ops->start_scsi(sp);
sp                911 drivers/scsi/qla2xxx/qla_os.c 	sp->free(sp);
sp                932 drivers/scsi/qla2xxx/qla_os.c 	srb_t *sp;
sp                973 drivers/scsi/qla2xxx/qla_os.c 	sp = scsi_cmd_priv(cmd);
sp                974 drivers/scsi/qla2xxx/qla_os.c 	qla2xxx_init_sp(sp, vha, qpair, fcport);
sp                976 drivers/scsi/qla2xxx/qla_os.c 	sp->u.scmd.cmd = cmd;
sp                977 drivers/scsi/qla2xxx/qla_os.c 	sp->type = SRB_SCSI_CMD;
sp                978 drivers/scsi/qla2xxx/qla_os.c 	CMD_SP(cmd) = (void *)sp;
sp                979 drivers/scsi/qla2xxx/qla_os.c 	sp->free = qla2xxx_qpair_sp_free_dma;
sp                980 drivers/scsi/qla2xxx/qla_os.c 	sp->done = qla2xxx_qpair_sp_compl;
sp                982 drivers/scsi/qla2xxx/qla_os.c 	rval = ha->isp_ops->start_scsi_mq(sp);
sp                994 drivers/scsi/qla2xxx/qla_os.c 	sp->free(sp);
sp               1000 drivers/scsi/qla2xxx/qla_os.c 	sp->free(sp);
sp               1002 drivers/scsi/qla2xxx/qla_os.c 	qla2xxx_rel_qpair_sp(sp->qpair, sp);
sp               1229 drivers/scsi/qla2xxx/qla_os.c 	srb_t *sp;
sp               1249 drivers/scsi/qla2xxx/qla_os.c 	sp = scsi_cmd_priv(cmd);
sp               1250 drivers/scsi/qla2xxx/qla_os.c 	qpair = sp->qpair;
sp               1252 drivers/scsi/qla2xxx/qla_os.c 	if ((sp->fcport && sp->fcport->deleted) || !qpair)
sp               1256 drivers/scsi/qla2xxx/qla_os.c 	if (sp->completed) {
sp               1261 drivers/scsi/qla2xxx/qla_os.c 	if (sp->abort || sp->aborted) {
sp               1266 drivers/scsi/qla2xxx/qla_os.c 	sp->abort = 1;
sp               1267 drivers/scsi/qla2xxx/qla_os.c 	sp->comp = &comp;
sp               1276 drivers/scsi/qla2xxx/qla_os.c 	    vha->host_no, id, lun, sp, cmd, sp->handle);
sp               1283 drivers/scsi/qla2xxx/qla_os.c 	rval = ha->isp_ops->abort_command(sp);
sp               1307 drivers/scsi/qla2xxx/qla_os.c 	sp->comp = NULL;
sp               1327 drivers/scsi/qla2xxx/qla_os.c 	srb_t *sp;
sp               1336 drivers/scsi/qla2xxx/qla_os.c 		sp = req->outstanding_cmds[cnt];
sp               1337 drivers/scsi/qla2xxx/qla_os.c 		if (!sp)
sp               1339 drivers/scsi/qla2xxx/qla_os.c 		if (sp->type != SRB_SCSI_CMD)
sp               1341 drivers/scsi/qla2xxx/qla_os.c 		if (vha->vp_idx != sp->vha->vp_idx)
sp               1344 drivers/scsi/qla2xxx/qla_os.c 		cmd = GET_CMD_SP(sp);
sp               1691 drivers/scsi/qla2xxx/qla_os.c static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res,
sp               1704 drivers/scsi/qla2xxx/qla_os.c 		sp->done(sp, res);
sp               1708 drivers/scsi/qla2xxx/qla_os.c 	if (sp->type == SRB_NVME_CMD || sp->type == SRB_NVME_LS ||
sp               1709 drivers/scsi/qla2xxx/qla_os.c 	    (sp->type == SRB_SCSI_CMD && !ha->flags.eeh_busy &&
sp               1712 drivers/scsi/qla2xxx/qla_os.c 		if (sp->comp) {
sp               1713 drivers/scsi/qla2xxx/qla_os.c 			sp->done(sp, res);
sp               1717 drivers/scsi/qla2xxx/qla_os.c 		sp->comp = &comp;
sp               1718 drivers/scsi/qla2xxx/qla_os.c 		sp->abort =  1;
sp               1721 drivers/scsi/qla2xxx/qla_os.c 		rval = ha->isp_ops->abort_command(sp);
sp               1742 drivers/scsi/qla2xxx/qla_os.c 		if (ret_cmd && (!sp->completed || !sp->aborted))
sp               1743 drivers/scsi/qla2xxx/qla_os.c 			sp->done(sp, res);
sp               1745 drivers/scsi/qla2xxx/qla_os.c 		sp->done(sp, res);
sp               1754 drivers/scsi/qla2xxx/qla_os.c 	srb_t *sp;
sp               1766 drivers/scsi/qla2xxx/qla_os.c 		sp = req->outstanding_cmds[cnt];
sp               1767 drivers/scsi/qla2xxx/qla_os.c 		if (sp) {
sp               1768 drivers/scsi/qla2xxx/qla_os.c 			switch (sp->cmd_type) {
sp               1770 drivers/scsi/qla2xxx/qla_os.c 				qla2x00_abort_srb(qp, sp, res, &flags);
sp               1780 drivers/scsi/qla2xxx/qla_os.c 				cmd = (struct qla_tgt_cmd *)sp;
sp               5197 drivers/scsi/qla2xxx/qla_os.c 	struct srb *sp = e->u.iosb.sp;
sp               5200 drivers/scsi/qla2xxx/qla_os.c 	rval = qla2x00_start_sp(sp);
sp               5204 drivers/scsi/qla2xxx/qla_os.c 		    __func__, sp->name, rval);
sp               5205 drivers/scsi/qla2xxx/qla_os.c 		qla24xx_sp_unmap(vha, sp);
sp               5256 drivers/scsi/qla2xxx/qla_os.c 			qla24xx_sp_unmap(vha, e->u.iosb.sp);
sp               5289 drivers/scsi/qla2xxx/qla_os.c 			    e->u.gpnft.sp);
sp               5292 drivers/scsi/qla2xxx/qla_os.c 			qla24xx_async_gpnft_done(vha, e->u.iosb.sp);
sp               5295 drivers/scsi/qla2xxx/qla_os.c 			qla24xx_async_gnnft_done(vha, e->u.iosb.sp);
sp               6536 drivers/scsi/qla2xxx/qla_os.c 	srb_t		*sp;
sp               6600 drivers/scsi/qla2xxx/qla_os.c 					sp = req->outstanding_cmds[index];
sp               6601 drivers/scsi/qla2xxx/qla_os.c 					if (!sp)
sp               6603 drivers/scsi/qla2xxx/qla_os.c 					if (sp->cmd_type != TYPE_SRB)
sp               6605 drivers/scsi/qla2xxx/qla_os.c 					if (sp->type != SRB_SCSI_CMD)
sp               6607 drivers/scsi/qla2xxx/qla_os.c 					sfcp = sp->fcport;
sp                562 drivers/scsi/qla2xxx/qla_target.c static void qla2x00_async_nack_sp_done(srb_t *sp, int res)
sp                564 drivers/scsi/qla2xxx/qla_target.c 	struct scsi_qla_host *vha = sp->vha;
sp                569 drivers/scsi/qla2xxx/qla_target.c 	    sp->name, res, sp->fcport->port_name, sp->type);
sp                572 drivers/scsi/qla2xxx/qla_target.c 	sp->fcport->flags &= ~FCF_ASYNC_SENT;
sp                573 drivers/scsi/qla2xxx/qla_target.c 	sp->fcport->chip_reset = vha->hw->base_qpair->chip_reset;
sp                575 drivers/scsi/qla2xxx/qla_target.c 	switch (sp->type) {
sp                577 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->login_gen++;
sp                578 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->fw_login_state = DSC_LS_PLOGI_COMP;
sp                579 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->logout_on_delete = 1;
sp                580 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->plogi_nack_done_deadline = jiffies + HZ;
sp                581 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->send_els_logo = 0;
sp                585 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->fw_login_state = DSC_LS_PRLI_COMP;
sp                586 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->deleted = 0;
sp                587 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->send_els_logo = 0;
sp                589 drivers/scsi/qla2xxx/qla_target.c 		if (!sp->fcport->login_succ &&
sp                590 drivers/scsi/qla2xxx/qla_target.c 		    !IS_SW_RESV_ADDR(sp->fcport->d_id)) {
sp                591 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->login_succ = 1;
sp                595 drivers/scsi/qla2xxx/qla_target.c 			qla24xx_sched_upd_fcport(sp->fcport);
sp                598 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->login_retry = 0;
sp                599 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->disc_state = DSC_LOGIN_COMPLETE;
sp                600 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->deleted = 0;
sp                601 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->logout_on_delete = 1;
sp                606 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->login_gen++;
sp                607 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->fw_login_state = DSC_LS_PORT_UNAVAIL;
sp                608 drivers/scsi/qla2xxx/qla_target.c 		qlt_logo_completion_handler(sp->fcport, MBS_COMMAND_COMPLETE);
sp                613 drivers/scsi/qla2xxx/qla_target.c 	sp->free(sp);
sp                620 drivers/scsi/qla2xxx/qla_target.c 	srb_t *sp;
sp                640 drivers/scsi/qla2xxx/qla_target.c 	sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
sp                641 drivers/scsi/qla2xxx/qla_target.c 	if (!sp)
sp                644 drivers/scsi/qla2xxx/qla_target.c 	sp->type = type;
sp                645 drivers/scsi/qla2xxx/qla_target.c 	sp->name = "nack";
sp                647 drivers/scsi/qla2xxx/qla_target.c 	sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout;
sp                648 drivers/scsi/qla2xxx/qla_target.c 	qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha)+2);
sp                650 drivers/scsi/qla2xxx/qla_target.c 	sp->u.iocb_cmd.u.nack.ntfy = ntfy;
sp                651 drivers/scsi/qla2xxx/qla_target.c 	sp->done = qla2x00_async_nack_sp_done;
sp                655 drivers/scsi/qla2xxx/qla_target.c 	    sp->name, fcport->port_name, sp->handle, c);
sp                657 drivers/scsi/qla2xxx/qla_target.c 	rval = qla2x00_start_sp(sp);
sp                664 drivers/scsi/qla2xxx/qla_target.c 	sp->free(sp);
sp               2276 drivers/scsi/scsi_debug.c 	int pf, sp, ps, md_len, bd_len, off, spf, pg_len;
sp               2284 drivers/scsi/scsi_debug.c 	sp = cmd[1] & 0x1;
sp               2286 drivers/scsi/scsi_debug.c 	if ((0 == pf) || sp || (param_len > SDEBUG_MAX_MSELECT_SZ)) {
sp               2383 drivers/scsi/scsi_debug.c 	int ppc, sp, pcode, subpcode, alloc_len, len, n;
sp               2389 drivers/scsi/scsi_debug.c 	sp = cmd[1] & 0x1;
sp               2390 drivers/scsi/scsi_debug.c 	if (ppc || sp) {
sp               2024 drivers/scsi/scsi_lib.c scsi_mode_select(struct scsi_device *sdev, int pf, int sp, int modepage,
sp               2033 drivers/scsi/scsi_lib.c 	cmd[1] = (pf ? 0x10 : 0) | (sp ? 0x01 : 0);
sp                161 drivers/scsi/sd.c 	int ct, rcd, wce, sp;
sp                207 drivers/scsi/sd.c 	sp = buffer_data[0] & 0x80 ? 1 : 0;
sp                216 drivers/scsi/sd.c 	if (scsi_mode_select(sdp, 1, sp, 8, buffer_data, len, SD_TIMEOUT,
sp                457 drivers/soc/bcm/brcmstb/pm/pm-arm.c static int brcmstb_pm_do_s3(unsigned long sp)
sp                470 drivers/soc/bcm/brcmstb/pm/pm-arm.c 		: [new] "r" (sp)
sp                478 drivers/soc/bcm/brcmstb/pm/pm-arm.c 	void __iomem *sp = ctrl.boot_sram + ctrl.boot_sram_len;
sp                480 drivers/soc/bcm/brcmstb/pm/pm-arm.c 	return cpu_suspend((unsigned long)sp, brcmstb_pm_do_s3);
sp                130 drivers/soc/fsl/dpio/qbman-portal.c 				    u8 epm, int sd, int sp, int se,
sp                140 drivers/soc/fsl/dpio/qbman-portal.c 		sp << SWP_CFG_SP_SHIFT |
sp                 49 drivers/spi/spi-ath79.c static inline u32 ath79_spi_rr(struct ath79_spi *sp, unsigned int reg)
sp                 51 drivers/spi/spi-ath79.c 	return ioread32(sp->base + reg);
sp                 54 drivers/spi/spi-ath79.c static inline void ath79_spi_wr(struct ath79_spi *sp, unsigned int reg, u32 val)
sp                 56 drivers/spi/spi-ath79.c 	iowrite32(val, sp->base + reg);
sp                 64 drivers/spi/spi-ath79.c static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned int nsecs)
sp                 66 drivers/spi/spi-ath79.c 	if (nsecs > sp->rrw_delay)
sp                 67 drivers/spi/spi-ath79.c 		ndelay(nsecs - sp->rrw_delay);
sp                 72 drivers/spi/spi-ath79.c 	struct ath79_spi *sp = ath79_spidev_to_sp(spi);
sp                 77 drivers/spi/spi-ath79.c 		sp->ioc_base |= cs_bit;
sp                 79 drivers/spi/spi-ath79.c 		sp->ioc_base &= ~cs_bit;
sp                 81 drivers/spi/spi-ath79.c 	ath79_spi_wr(sp, AR71XX_SPI_REG_IOC, sp->ioc_base);
sp                 84 drivers/spi/spi-ath79.c static void ath79_spi_enable(struct ath79_spi *sp)
sp                 87 drivers/spi/spi-ath79.c 	ath79_spi_wr(sp, AR71XX_SPI_REG_FS, AR71XX_SPI_FS_GPIO);
sp                 90 drivers/spi/spi-ath79.c 	sp->reg_ctrl = ath79_spi_rr(sp, AR71XX_SPI_REG_CTRL);
sp                 91 drivers/spi/spi-ath79.c 	sp->ioc_base = ath79_spi_rr(sp, AR71XX_SPI_REG_IOC);
sp                 94 drivers/spi/spi-ath79.c 	sp->ioc_base &= ~(AR71XX_SPI_IOC_DO | AR71XX_SPI_IOC_CLK);
sp                 97 drivers/spi/spi-ath79.c 	ath79_spi_wr(sp, AR71XX_SPI_REG_CTRL, 0x43);
sp                100 drivers/spi/spi-ath79.c static void ath79_spi_disable(struct ath79_spi *sp)
sp                103 drivers/spi/spi-ath79.c 	ath79_spi_wr(sp, AR71XX_SPI_REG_CTRL, sp->reg_ctrl);
sp                105 drivers/spi/spi-ath79.c 	ath79_spi_wr(sp, AR71XX_SPI_REG_FS, 0);
sp                111 drivers/spi/spi-ath79.c 	struct ath79_spi *sp = ath79_spidev_to_sp(spi);
sp                112 drivers/spi/spi-ath79.c 	u32 ioc = sp->ioc_base;
sp                124 drivers/spi/spi-ath79.c 		ath79_spi_wr(sp, AR71XX_SPI_REG_IOC, out);
sp                125 drivers/spi/spi-ath79.c 		ath79_spi_delay(sp, nsecs);
sp                126 drivers/spi/spi-ath79.c 		ath79_spi_wr(sp, AR71XX_SPI_REG_IOC, out | AR71XX_SPI_IOC_CLK);
sp                127 drivers/spi/spi-ath79.c 		ath79_spi_delay(sp, nsecs);
sp                129 drivers/spi/spi-ath79.c 			ath79_spi_wr(sp, AR71XX_SPI_REG_IOC, out);
sp                134 drivers/spi/spi-ath79.c 	return ath79_spi_rr(sp, AR71XX_SPI_REG_RDS);
sp                140 drivers/spi/spi-ath79.c 	struct ath79_spi *sp;
sp                145 drivers/spi/spi-ath79.c 	master = spi_alloc_master(&pdev->dev, sizeof(*sp));
sp                151 drivers/spi/spi-ath79.c 	sp = spi_master_get_devdata(master);
sp                153 drivers/spi/spi-ath79.c 	platform_set_drvdata(pdev, sp);
sp                166 drivers/spi/spi-ath79.c 	sp->bitbang.master = master;
sp                167 drivers/spi/spi-ath79.c 	sp->bitbang.chipselect = ath79_spi_chipselect;
sp                168 drivers/spi/spi-ath79.c 	sp->bitbang.txrx_word[SPI_MODE_0] = ath79_spi_txrx_mode0;
sp                169 drivers/spi/spi-ath79.c 	sp->bitbang.flags = SPI_CS_HIGH;
sp                171 drivers/spi/spi-ath79.c 	sp->base = devm_platform_ioremap_resource(pdev, 0);
sp                172 drivers/spi/spi-ath79.c 	if (IS_ERR(sp->base)) {
sp                173 drivers/spi/spi-ath79.c 		ret = PTR_ERR(sp->base);
sp                177 drivers/spi/spi-ath79.c 	sp->clk = devm_clk_get(&pdev->dev, "ahb");
sp                178 drivers/spi/spi-ath79.c 	if (IS_ERR(sp->clk)) {
sp                179 drivers/spi/spi-ath79.c 		ret = PTR_ERR(sp->clk);
sp                183 drivers/spi/spi-ath79.c 	ret = clk_prepare_enable(sp->clk);
sp                187 drivers/spi/spi-ath79.c 	rate = DIV_ROUND_UP(clk_get_rate(sp->clk), MHZ);
sp                193 drivers/spi/spi-ath79.c 	sp->rrw_delay = ATH79_SPI_RRW_DELAY_FACTOR / rate;
sp                195 drivers/spi/spi-ath79.c 		sp->rrw_delay);
sp                197 drivers/spi/spi-ath79.c 	ath79_spi_enable(sp);
sp                198 drivers/spi/spi-ath79.c 	ret = spi_bitbang_start(&sp->bitbang);
sp                205 drivers/spi/spi-ath79.c 	ath79_spi_disable(sp);
sp                207 drivers/spi/spi-ath79.c 	clk_disable_unprepare(sp->clk);
sp                209 drivers/spi/spi-ath79.c 	spi_master_put(sp->bitbang.master);
sp                216 drivers/spi/spi-ath79.c 	struct ath79_spi *sp = platform_get_drvdata(pdev);
sp                218 drivers/spi/spi-ath79.c 	spi_bitbang_stop(&sp->bitbang);
sp                219 drivers/spi/spi-ath79.c 	ath79_spi_disable(sp);
sp                220 drivers/spi/spi-ath79.c 	clk_disable_unprepare(sp->clk);
sp                221 drivers/spi/spi-ath79.c 	spi_master_put(sp->bitbang.master);
sp                 33 drivers/spi/spi-sh-sci.c #define SCSPTR(sp)	(sp->membase + 0x1c)
sp                 39 drivers/spi/spi-sh-sci.c static inline void setbits(struct sh_sci_spi *sp, int bits, int on)
sp                 50 drivers/spi/spi-sh-sci.c 		sp->val |= bits;
sp                 52 drivers/spi/spi-sh-sci.c 		sp->val &= ~bits;
sp                 54 drivers/spi/spi-sh-sci.c 	iowrite8(sp->val, SCSPTR(sp));
sp                 69 drivers/spi/spi-sh-sci.c 	struct sh_sci_spi *sp = spi_master_get_devdata(dev->master);
sp                 71 drivers/spi/spi-sh-sci.c 	return (ioread8(SCSPTR(sp)) & PIN_RXD) ? 1 : 0;
sp                108 drivers/spi/spi-sh-sci.c 	struct sh_sci_spi *sp = spi_master_get_devdata(dev->master);
sp                110 drivers/spi/spi-sh-sci.c 	if (sp->info->chip_select)
sp                111 drivers/spi/spi-sh-sci.c 		(sp->info->chip_select)(sp->info, dev->chip_select, value);
sp                118 drivers/spi/spi-sh-sci.c 	struct sh_sci_spi *sp;
sp                128 drivers/spi/spi-sh-sci.c 	sp = spi_master_get_devdata(master);
sp                130 drivers/spi/spi-sh-sci.c 	platform_set_drvdata(dev, sp);
sp                131 drivers/spi/spi-sh-sci.c 	sp->info = dev_get_platdata(&dev->dev);
sp                132 drivers/spi/spi-sh-sci.c 	if (!sp->info) {
sp                139 drivers/spi/spi-sh-sci.c 	sp->bitbang.master = master;
sp                140 drivers/spi/spi-sh-sci.c 	sp->bitbang.master->bus_num = sp->info->bus_num;
sp                141 drivers/spi/spi-sh-sci.c 	sp->bitbang.master->num_chipselect = sp->info->num_chipselect;
sp                142 drivers/spi/spi-sh-sci.c 	sp->bitbang.chipselect = sh_sci_spi_chipselect;
sp                144 drivers/spi/spi-sh-sci.c 	sp->bitbang.txrx_word[SPI_MODE_0] = sh_sci_spi_txrx_mode0;
sp                145 drivers/spi/spi-sh-sci.c 	sp->bitbang.txrx_word[SPI_MODE_1] = sh_sci_spi_txrx_mode1;
sp                146 drivers/spi/spi-sh-sci.c 	sp->bitbang.txrx_word[SPI_MODE_2] = sh_sci_spi_txrx_mode2;
sp                147 drivers/spi/spi-sh-sci.c 	sp->bitbang.txrx_word[SPI_MODE_3] = sh_sci_spi_txrx_mode3;
sp                154 drivers/spi/spi-sh-sci.c 	sp->membase = ioremap(r->start, resource_size(r));
sp                155 drivers/spi/spi-sh-sci.c 	if (!sp->membase) {
sp                159 drivers/spi/spi-sh-sci.c 	sp->val = ioread8(SCSPTR(sp));
sp                160 drivers/spi/spi-sh-sci.c 	setbits(sp, PIN_INIT, 1);
sp                162 drivers/spi/spi-sh-sci.c 	ret = spi_bitbang_start(&sp->bitbang);
sp                166 drivers/spi/spi-sh-sci.c 	setbits(sp, PIN_INIT, 0);
sp                167 drivers/spi/spi-sh-sci.c 	iounmap(sp->membase);
sp                169 drivers/spi/spi-sh-sci.c 	spi_master_put(sp->bitbang.master);
sp                176 drivers/spi/spi-sh-sci.c 	struct sh_sci_spi *sp = platform_get_drvdata(dev);
sp                178 drivers/spi/spi-sh-sci.c 	spi_bitbang_stop(&sp->bitbang);
sp                179 drivers/spi/spi-sh-sci.c 	setbits(sp, PIN_INIT, 0);
sp                180 drivers/spi/spi-sh-sci.c 	iounmap(sp->membase);
sp                181 drivers/spi/spi-sh-sci.c 	spi_master_put(sp->bitbang.master);
sp                413 drivers/staging/fsl-dpaa2/ethsw/ethsw.c 				  void *sp)
sp                417 drivers/staging/fsl-dpaa2/ethsw/ethsw.c 		port_get_stats((struct net_device *)netdev, sp);
sp                263 drivers/staging/isdn/hysdn/boardergo.c 	tDpramBootSpooler *sp = (tDpramBootSpooler *) card->dpram;
sp                274 drivers/staging/isdn/hysdn/boardergo.c 	dst = sp->Data;		/* point to data in spool structure */
sp                275 drivers/staging/isdn/hysdn/boardergo.c 	buflen = sp->Len;	/* maximum len of spooled data */
sp                276 drivers/staging/isdn/hysdn/boardergo.c 	wr_mirror = sp->WrPtr;	/* only once read */
sp                284 drivers/staging/isdn/hysdn/boardergo.c 			tmp_rdptr = sp->RdPtr;	/* first read the pointer */
sp                286 drivers/staging/isdn/hysdn/boardergo.c 		} while (i && (tmp_rdptr != sp->RdPtr));	/* wait for stable pointer */
sp                309 drivers/staging/isdn/hysdn/boardergo.c 			sp->WrPtr = wr_mirror;	/* announce the next byte to E1 */
sp                289 drivers/staging/ks7010/ks7010_sdio.c 	struct tx_device_buffer *sp;
sp                303 drivers/staging/ks7010/ks7010_sdio.c 	sp = &priv->tx_dev.tx_dev_buff[priv->tx_dev.qtail];
sp                304 drivers/staging/ks7010/ks7010_sdio.c 	sp->sendp = p;
sp                305 drivers/staging/ks7010/ks7010_sdio.c 	sp->size = size;
sp                306 drivers/staging/ks7010/ks7010_sdio.c 	sp->complete_handler = complete_handler;
sp                307 drivers/staging/ks7010/ks7010_sdio.c 	sp->skb = skb;
sp                352 drivers/staging/ks7010/ks7010_sdio.c 	struct tx_device_buffer *sp;
sp                359 drivers/staging/ks7010/ks7010_sdio.c 	sp = &priv->tx_dev.tx_dev_buff[priv->tx_dev.qhead];
sp                361 drivers/staging/ks7010/ks7010_sdio.c 		ret = write_to_device(priv, sp->sendp, sp->size);
sp                369 drivers/staging/ks7010/ks7010_sdio.c 	kfree(sp->sendp);
sp                370 drivers/staging/ks7010/ks7010_sdio.c 	if (sp->complete_handler)	/* TX Complete */
sp                371 drivers/staging/ks7010/ks7010_sdio.c 		(*sp->complete_handler)(priv, sp->skb);
sp                627 drivers/staging/ks7010/ks7010_sdio.c 	struct tx_device_buffer *sp;
sp                631 drivers/staging/ks7010/ks7010_sdio.c 		sp = &priv->tx_dev.tx_dev_buff[priv->tx_dev.qhead];
sp                632 drivers/staging/ks7010/ks7010_sdio.c 		kfree(sp->sendp);
sp                633 drivers/staging/ks7010/ks7010_sdio.c 		if (sp->complete_handler)	/* TX Complete */
sp                634 drivers/staging/ks7010/ks7010_sdio.c 			(*sp->complete_handler)(priv, sp->skb);
sp                 97 drivers/staging/media/ipu3/ipu3-abi.h #define IMGU_REG_SP_CTRL(sp)		(IMGU_REG_BASE + (sp) * 0x100 + 0x100)
sp                 99 drivers/staging/media/ipu3/ipu3-abi.h #define IMGU_REG_SP_START_ADDR(sp)	(IMGU_REG_BASE + (sp) * 0x100 + 0x104)
sp                100 drivers/staging/media/ipu3/ipu3-abi.h #define IMGU_REG_SP_ICACHE_ADDR(sp)	(IMGU_REG_BASE + (sp) * 0x100 + 0x11c)
sp                101 drivers/staging/media/ipu3/ipu3-abi.h #define IMGU_REG_SP_CTRL_SINK(sp)	(IMGU_REG_BASE + (sp) * 0x100 + 0x130)
sp                102 drivers/staging/media/ipu3/ipu3-abi.h #define IMGU_REG_SP_PC(sp)		(IMGU_REG_BASE + (sp) * 0x100 + 0x134)
sp                 24 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.id, bi->info.isp.sp.pipeline.mode,
sp                 25 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.bds.supported_bds_factors,
sp                 26 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.enable.vf_veceven,
sp                 27 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.vf_dec.is_variable,
sp                 31 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.input.min_width,
sp                 32 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.input.min_height,
sp                 33 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.input.max_width,
sp                 34 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.input.max_height,
sp                 35 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.enable.input_yuv ? "yuv420 " : "",
sp                 36 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.enable.input_feeder ||
sp                 37 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.enable.input_raw ? "raw8 raw10 " : "",
sp                 38 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.enable.input_raw ? "raw12" : "");
sp                 41 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.internal.max_width,
sp                 42 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.internal.max_height);
sp                 45 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.output.min_width,
sp                 46 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.output.min_height,
sp                 47 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.output.max_width,
sp                 48 drivers/staging/media/ipu3/ipu3-css-fw.c 		bi->info.isp.sp.output.max_height);
sp                 59 drivers/staging/media/ipu3/ipu3-css-fw.c 	unsigned int width = DIV_ROUND_UP(bi->info.isp.sp.internal.max_width,
sp                 61 drivers/staging/media/ipu3/ipu3-css-fw.c 	unsigned int height = DIV_ROUND_UP(bi->info.isp.sp.internal.max_height,
sp                 68 drivers/staging/media/ipu3/ipu3-css-fw.c 				 bi->info.isp.sp.iterator.num_stripes;
sp                 82 drivers/staging/media/ipu3/ipu3-css-fw.c 	    bi->info.isp.sp.mem_initializers.params[cls][mem].size)
sp                175 drivers/staging/media/ipu3/ipu3-css-fw.c 			if (bi->info.sp.per_frame_data >= css->iomem_length ||
sp                176 drivers/staging/media/ipu3/ipu3-css-fw.c 			    bi->info.sp.init_dmem_data >= css->iomem_length ||
sp                177 drivers/staging/media/ipu3/ipu3-css-fw.c 			    bi->info.sp.host_sp_queue >= css->iomem_length ||
sp                178 drivers/staging/media/ipu3/ipu3-css-fw.c 			    bi->info.sp.isp_started >= css->iomem_length ||
sp                179 drivers/staging/media/ipu3/ipu3-css-fw.c 			    bi->info.sp.sw_state >= css->iomem_length ||
sp                180 drivers/staging/media/ipu3/ipu3-css-fw.c 			    bi->info.sp.sleep_mode >= css->iomem_length ||
sp                181 drivers/staging/media/ipu3/ipu3-css-fw.c 			    bi->info.sp.invalidate_tlb >= css->iomem_length ||
sp                182 drivers/staging/media/ipu3/ipu3-css-fw.c 			    bi->info.sp.host_sp_com >= css->iomem_length ||
sp                183 drivers/staging/media/ipu3/ipu3-css-fw.c 			    bi->info.sp.output + 12 >= css->iomem_length ||
sp                184 drivers/staging/media/ipu3/ipu3-css-fw.c 			    bi->info.sp.host_sp_queues_initialized >=
sp                191 drivers/staging/media/ipu3/ipu3-css-fw.c 		if (bi->info.isp.sp.pipeline.mode >= IPU3_CSS_PIPE_ID_NUM)
sp                194 drivers/staging/media/ipu3/ipu3-css-fw.c 		if (bi->info.isp.sp.iterator.num_stripes >
sp                211 drivers/staging/media/ipu3/ipu3-css-fw.c 		if (bi->info.isp.sp.block.block_width <= 0 ||
sp                212 drivers/staging/media/ipu3/ipu3-css-fw.c 		    bi->info.isp.sp.block.block_width > BLOCK_MAX ||
sp                213 drivers/staging/media/ipu3/ipu3-css-fw.c 		    bi->info.isp.sp.block.output_block_height <= 0 ||
sp                214 drivers/staging/media/ipu3/ipu3-css-fw.c 		    bi->info.isp.sp.block.output_block_height > BLOCK_MAX)
sp                 80 drivers/staging/media/ipu3/ipu3-css-fw.h 	struct imgu_abi_binary_info sp;
sp                142 drivers/staging/media/ipu3/ipu3-css-fw.h 	struct imgu_fw_sp_info sp;	/* SP info */
sp               1195 drivers/staging/media/ipu3/ipu3-css-params.c 				bi->info.isp.sp.block.block_width *
sp               1656 drivers/staging/media/ipu3/ipu3-css-params.c 		.acc_enable = bi->info.isp.sp.enable.af,
sp               1683 drivers/staging/media/ipu3/ipu3-css-params.c 		.acc_enable = bi->info.isp.sp.enable.awb_fr_acc,
sp               1709 drivers/staging/media/ipu3/ipu3-css-params.c 		.acc_enable = bi->info.isp.sp.enable.awb_acc,
sp               1739 drivers/staging/media/ipu3/ipu3-css-params.c 	const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes;
sp               1957 drivers/staging/media/ipu3/ipu3-css-params.c 	const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes;
sp               2744 drivers/staging/media/ipu3/ipu3-css-params.c 	memset(vmem0, 0, bi->info.isp.sp.mem_initializers.params[c][m].size);
sp               2824 drivers/staging/media/ipu3/ipu3-css-params.c 	memset(dmem0, 0, bi->info.isp.sp.mem_initializers.params[c][m].size);
sp                482 drivers/staging/media/ipu3/ipu3-css.c static int imgu_css_hw_start_sp(struct imgu_css *css, int sp)
sp                485 drivers/staging/media/ipu3/ipu3-css.c 	struct imgu_fw_info *bi = &css->fwp->binary_header[css->fw_sp[sp]];
sp                487 drivers/staging/media/ipu3/ipu3-css.c 		.ddr_data_addr = css->binary[css->fw_sp[sp]].daddr
sp                493 drivers/staging/media/ipu3/ipu3-css.c 		.sp_id = sp,
sp                497 drivers/staging/media/ipu3/ipu3-css.c 	       IMGU_REG_SP_DMEM_BASE(sp) + bi->info.sp.init_dmem_data);
sp                499 drivers/staging/media/ipu3/ipu3-css.c 	writel(bi->info.sp.sp_entry, base + IMGU_REG_SP_START_ADDR(sp));
sp                501 drivers/staging/media/ipu3/ipu3-css.c 	writel(readl(base + IMGU_REG_SP_CTRL(sp))
sp                502 drivers/staging/media/ipu3/ipu3-css.c 		| IMGU_CTRL_START | IMGU_CTRL_RUN, base + IMGU_REG_SP_CTRL(sp));
sp                504 drivers/staging/media/ipu3/ipu3-css.c 	if (imgu_hw_wait(css->base, IMGU_REG_SP_DMEM_BASE(sp)
sp                505 drivers/staging/media/ipu3/ipu3-css.c 			 + bi->info.sp.sw_state,
sp                544 drivers/staging/media/ipu3/ipu3-css.c 		struct imgu_fw_info *sp =
sp                548 drivers/staging/media/ipu3/ipu3-css.c 				+ sp->blob.text_source,
sp                549 drivers/staging/media/ipu3/ipu3-css.c 			.size = sp->blob.text_size,
sp                578 drivers/staging/media/ipu3/ipu3-css.c 	       base + IMGU_REG_SP_DMEM_BASE(0) + bi->info.sp.per_frame_data);
sp                581 drivers/staging/media/ipu3/ipu3-css.c 	       base + IMGU_REG_SP_DMEM_BASE(0) + bi->info.sp.sw_state);
sp                582 drivers/staging/media/ipu3/ipu3-css.c 	writel(1, base + IMGU_REG_SP_DMEM_BASE(0) + bi->info.sp.invalidate_tlb);
sp                587 drivers/staging/media/ipu3/ipu3-css.c 	writel(0, base + IMGU_REG_SP_DMEM_BASE(0) + bi->info.sp.isp_started);
sp                589 drivers/staging/media/ipu3/ipu3-css.c 		bi->info.sp.host_sp_queues_initialized);
sp                590 drivers/staging/media/ipu3/ipu3-css.c 	writel(0, base + IMGU_REG_SP_DMEM_BASE(0) + bi->info.sp.sleep_mode);
sp                591 drivers/staging/media/ipu3/ipu3-css.c 	writel(0, base + IMGU_REG_SP_DMEM_BASE(0) + bi->info.sp.invalidate_tlb);
sp                593 drivers/staging/media/ipu3/ipu3-css.c 		+ bi->info.sp.host_sp_com + IMGU_ABI_SP_COMM_COMMAND);
sp                599 drivers/staging/media/ipu3/ipu3-css.c 			+ bi->info.sp.host_sp_com
sp                602 drivers/staging/media/ipu3/ipu3-css.c 		bi->info.sp.host_sp_queues_initialized);
sp                609 drivers/staging/media/ipu3/ipu3-css.c 	       base + IMGU_REG_SP_DMEM_BASE(1) + bi->info.sp.sw_state);
sp                615 drivers/staging/media/ipu3/ipu3-css.c 		+ bi->info.sp.host_sp_com + IMGU_ABI_SP_COMM_COMMAND);
sp                628 drivers/staging/media/ipu3/ipu3-css.c 	       bi->info.sp.host_sp_com + IMGU_ABI_SP_COMM_COMMAND);
sp                632 drivers/staging/media/ipu3/ipu3-css.c 	if (readl(base + IMGU_REG_SP_DMEM_BASE(0) + bi->info.sp.sw_state) !=
sp                703 drivers/staging/media/ipu3/ipu3-css.c 	const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes;
sp                904 drivers/staging/media/ipu3/ipu3-css.c 	isp_stage->binary_info = bi->info.isp.sp;
sp                908 drivers/staging/media/ipu3/ipu3-css.c 	isp_stage->mem_initializers = bi->info.isp.sp.mem_initializers;
sp               1026 drivers/staging/media/ipu3/ipu3-css.c 				bi->info.isp.sp.pipeline.isp_pipe_version;
sp               1066 drivers/staging/media/ipu3/ipu3-css.c 			bi->info.isp.sp.enable.params ? (1 << pipe) : 0;
sp               1087 drivers/staging/media/ipu3/ipu3-css.c 				       bi->info.isp.sp.mem_initializers.params
sp               1104 drivers/staging/media/ipu3/ipu3-css.c 	static const unsigned int sp;
sp               1106 drivers/staging/media/ipu3/ipu3-css.c 	struct imgu_fw_info *bi = &css->fwp->binary_header[css->fw_sp[sp]];
sp               1107 drivers/staging/media/ipu3/ipu3-css.c 	struct imgu_abi_queues __iomem *q = base + IMGU_REG_SP_DMEM_BASE(sp) +
sp               1108 drivers/staging/media/ipu3/ipu3-css.c 						bi->info.sp.host_sp_queue;
sp               1118 drivers/staging/media/ipu3/ipu3-css.c 	static const unsigned int sp;
sp               1120 drivers/staging/media/ipu3/ipu3-css.c 	struct imgu_fw_info *bi = &css->fwp->binary_header[css->fw_sp[sp]];
sp               1121 drivers/staging/media/ipu3/ipu3-css.c 	struct imgu_abi_queues __iomem *q = base + IMGU_REG_SP_DMEM_BASE(sp) +
sp               1122 drivers/staging/media/ipu3/ipu3-css.c 						bi->info.sp.host_sp_queue;
sp               1156 drivers/staging/media/ipu3/ipu3-css.c 	static const unsigned int sp;
sp               1158 drivers/staging/media/ipu3/ipu3-css.c 	struct imgu_fw_info *bi = &css->fwp->binary_header[css->fw_sp[sp]];
sp               1159 drivers/staging/media/ipu3/ipu3-css.c 	struct imgu_abi_queues __iomem *q = base + IMGU_REG_SP_DMEM_BASE(sp) +
sp               1160 drivers/staging/media/ipu3/ipu3-css.c 						bi->info.sp.host_sp_queue;
sp               1275 drivers/staging/media/ipu3/ipu3-css.c 			    bi->info.isp.sp.mem_initializers.params[j][i].size))
sp               1305 drivers/staging/media/ipu3/ipu3-css.c 				bi->info.isp.sp.block.block_width *
sp               1309 drivers/staging/media/ipu3/ipu3-css.c 				bi->info.isp.sp.block.output_block_height);
sp               1621 drivers/staging/media/ipu3/ipu3-css.c 		u32 max_width = bi->info.isp.sp.output.max_width;
sp               1622 drivers/staging/media/ipu3/ipu3-css.c 		u32 max_height = bi->info.isp.sp.output.max_height;
sp               1624 drivers/staging/media/ipu3/ipu3-css.c 		if (bi->info.isp.sp.iterator.num_stripes <= 1) {
sp               1639 drivers/staging/media/ipu3/ipu3-css.c 		if (bi->info.isp.sp.input.source !=
sp               1644 drivers/staging/media/ipu3/ipu3-css.c 		if (!bi->info.isp.sp.enable.input_feeder &&
sp               1645 drivers/staging/media/ipu3/ipu3-css.c 		    !bi->info.isp.sp.enable.input_raw)
sp               1649 drivers/staging/media/ipu3/ipu3-css.c 		if (bi->info.isp.sp.pipeline.mode != binary_mode)
sp               1653 drivers/staging/media/ipu3/ipu3-css.c 		if (bi->info.isp.sp.enable.luma_only)
sp               1656 drivers/staging/media/ipu3/ipu3-css.c 		if (in->width < bi->info.isp.sp.input.min_width ||
sp               1657 drivers/staging/media/ipu3/ipu3-css.c 		    in->width > bi->info.isp.sp.input.max_width ||
sp               1658 drivers/staging/media/ipu3/ipu3-css.c 		    in->height < bi->info.isp.sp.input.min_height ||
sp               1659 drivers/staging/media/ipu3/ipu3-css.c 		    in->height > bi->info.isp.sp.input.max_height)
sp               1673 drivers/staging/media/ipu3/ipu3-css.c 			if (out->width < bi->info.isp.sp.output.min_width ||
sp               1674 drivers/staging/media/ipu3/ipu3-css.c 			    out->width > bi->info.isp.sp.output.max_width ||
sp               1675 drivers/staging/media/ipu3/ipu3-css.c 			    out->height < bi->info.isp.sp.output.min_height ||
sp               1676 drivers/staging/media/ipu3/ipu3-css.c 			    out->height > bi->info.isp.sp.output.max_height)
sp               1679 drivers/staging/media/ipu3/ipu3-css.c 			if (out->width > bi->info.isp.sp.internal.max_width ||
sp               1680 drivers/staging/media/ipu3/ipu3-css.c 			    out->height > bi->info.isp.sp.internal.max_height)
sp               1695 drivers/staging/media/ipu3/ipu3-css.c 			if (vf->width < bi->info.isp.sp.output.min_width ||
sp               1696 drivers/staging/media/ipu3/ipu3-css.c 			    vf->width > bi->info.isp.sp.output.max_width ||
sp               1697 drivers/staging/media/ipu3/ipu3-css.c 			    vf->height < bi->info.isp.sp.output.min_height ||
sp               1698 drivers/staging/media/ipu3/ipu3-css.c 			    vf->height > bi->info.isp.sp.output.max_height)
sp               1704 drivers/staging/media/ipu3/ipu3-css.c 			bi->info.isp.sp.id);
sp               2171 drivers/staging/media/ipu3/ipu3-css.c 	stripes = bi->info.isp.sp.iterator.num_stripes ? : 1;
sp               2237 drivers/staging/media/ipu3/ipu3-css.c 	if (bi->info.isp.sp.enable.dvs_6axis) {
sp               2371 drivers/staging/media/ipu3/ipu3-css.c 					bi->info.sp.output);
sp               2373 drivers/staging/media/ipu3/ipu3-css.c 					bi->info.sp.output + 4 + 4 * i);
sp                320 drivers/staging/speakup/speakup_dtlk.c 	struct synth_settings *sp;
sp                360 drivers/staging/speakup/speakup_dtlk.c 	sp = synth_interrogate(synth);
sp                363 drivers/staging/speakup/speakup_dtlk.c 		sp->rom_version, sp->serial_number, synth->version);
sp                349 drivers/staging/wusbcore/host/whci/qset.c 	dma_addr_t sp, ep;
sp                359 drivers/staging/wusbcore/host/whci/qset.c 	sp = dma_addr & ~(WHCI_PAGE_SIZE-1);
sp                361 drivers/staging/wusbcore/host/whci/qset.c 	std->num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE);
sp                441 drivers/staging/wusbcore/host/whci/qset.c 		dma_addr_t sp, ep;
sp                496 drivers/staging/wusbcore/host/whci/qset.c 			sp = dma_addr & ~(WHCI_PAGE_SIZE-1);
sp                498 drivers/staging/wusbcore/host/whci/qset.c 			num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE);
sp                 35 drivers/target/tcm_fc/tfc_cmd.c 	struct fc_seq *sp;
sp                 54 drivers/target/tcm_fc/tfc_cmd.c 	sp = cmd->seq;
sp                 55 drivers/target/tcm_fc/tfc_cmd.c 	if (sp) {
sp                 56 drivers/target/tcm_fc/tfc_cmd.c 		ep = fc_seq_exch(sp);
sp                 60 drivers/target/tcm_fc/tfc_cmd.c 			sp->id, ep->esb_stat);
sp                235 drivers/target/tcm_fc/tfc_cmd.c static void ft_recv_seq(struct fc_seq *sp, struct fc_frame *fp, void *arg)
sp                276 drivers/target/tcm_fc/tfc_cmd.c 	struct fc_seq *sp;
sp                302 drivers/target/tcm_fc/tfc_cmd.c 	sp = fr_seq(fp);
sp                303 drivers/target/tcm_fc/tfc_cmd.c 	if (sp) {
sp                304 drivers/target/tcm_fc/tfc_cmd.c 		fc_seq_send(lport, sp, fp);
sp                305 drivers/target/tcm_fc/tfc_cmd.c 		fc_exch_done(sp);
sp                856 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	smc_t __iomem *sp;
sp                861 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	sp = pinfo->smcp;
sp                895 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	out_be16(&sp->smc_smcmr, smcr_mk_clen(9) | SMCMR_SM_UART);
sp                898 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	out_8(&sp->smc_smcm, 0);
sp                899 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	out_8(&sp->smc_smce, 0xff);
sp                901 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	setbits16(&sp->smc_smcmr, SMCMR_REN | SMCMR_TEN);
sp               1429 drivers/tty/serial/msm_serial.c 	unsigned char *sp = (unsigned char *)&slop;
sp               1433 drivers/tty/serial/msm_serial.c 		c = sp[sizeof(slop) - count];
sp               1446 drivers/tty/serial/msm_serial.c 			c = sp[0];
sp               1458 drivers/tty/serial/msm_serial.c 		c = sp[0];
sp               3225 drivers/tty/serial/sh-sci.c 	struct sci_port *sp;
sp               3251 drivers/tty/serial/sh-sci.c 	sp = &sci_ports[id];
sp               3257 drivers/tty/serial/sh-sci.c 	sp->has_rtscts = of_property_read_bool(np, "uart-has-rtscts");
sp               3319 drivers/tty/serial/sh-sci.c 	struct sci_port *sp;
sp               3345 drivers/tty/serial/sh-sci.c 	sp = &sci_ports[dev_id];
sp               3346 drivers/tty/serial/sh-sci.c 	platform_set_drvdata(dev, sp);
sp               3348 drivers/tty/serial/sh-sci.c 	ret = sci_probe_single(dev, dev_id, p, sp);
sp               3352 drivers/tty/serial/sh-sci.c 	if (sp->port.fifosize > 1) {
sp               3357 drivers/tty/serial/sh-sci.c 	if (sp->port.type == PORT_SCIFA || sp->port.type == PORT_SCIFB ||
sp               3358 drivers/tty/serial/sh-sci.c 	    sp->port.type == PORT_HSCIF) {
sp               3361 drivers/tty/serial/sh-sci.c 			if (sp->port.fifosize > 1) {
sp                180 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                184 drivers/tty/serial/sprd_serial.c 	if (sp->rx_dma.enable)
sp                185 drivers/tty/serial/sprd_serial.c 		dmaengine_terminate_all(sp->rx_dma.chn);
sp                211 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                217 drivers/tty/serial/sprd_serial.c 	dmaengine_pause(sp->tx_dma.chn);
sp                219 drivers/tty/serial/sprd_serial.c 	dmaengine_tx_status(sp->tx_dma.chn, sp->tx_dma.cookie, &state);
sp                221 drivers/tty/serial/sprd_serial.c 		trans_len = state.residue - sp->tx_dma.phys_addr;
sp                224 drivers/tty/serial/sprd_serial.c 		dma_unmap_single(port->dev, sp->tx_dma.phys_addr,
sp                225 drivers/tty/serial/sprd_serial.c 				 sp->tx_dma.trans_len, DMA_TO_DEVICE);
sp                228 drivers/tty/serial/sprd_serial.c 	dmaengine_terminate_all(sp->tx_dma.chn);
sp                229 drivers/tty/serial/sprd_serial.c 	sp->tx_dma.trans_len = 0;
sp                234 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                238 drivers/tty/serial/sprd_serial.c 	sp->tx_dma.trans_len =
sp                241 drivers/tty/serial/sprd_serial.c 	sp->tx_dma.phys_addr = dma_map_single(port->dev,
sp                243 drivers/tty/serial/sprd_serial.c 					      sp->tx_dma.trans_len,
sp                245 drivers/tty/serial/sprd_serial.c 	return dma_mapping_error(port->dev, sp->tx_dma.phys_addr);
sp                251 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                257 drivers/tty/serial/sprd_serial.c 	dma_unmap_single(port->dev, sp->tx_dma.phys_addr,
sp                258 drivers/tty/serial/sprd_serial.c 			 sp->tx_dma.trans_len, DMA_TO_DEVICE);
sp                260 drivers/tty/serial/sprd_serial.c 	xmit->tail = (xmit->tail + sp->tx_dma.trans_len) & (UART_XMIT_SIZE - 1);
sp                261 drivers/tty/serial/sprd_serial.c 	port->icount.tx += sp->tx_dma.trans_len;
sp                268 drivers/tty/serial/sprd_serial.c 		sp->tx_dma.trans_len = 0;
sp                305 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                307 drivers/tty/serial/sprd_serial.c 	u32 burst = sp->tx_dma.trans_len > SPRD_TX_FIFO_FULL ?
sp                308 drivers/tty/serial/sprd_serial.c 		SPRD_TX_FIFO_FULL : sp->tx_dma.trans_len;
sp                317 drivers/tty/serial/sprd_serial.c 	ret = dmaengine_slave_config(sp->tx_dma.chn, &cfg);
sp                321 drivers/tty/serial/sprd_serial.c 	return sprd_uart_dma_submit(port, &sp->tx_dma, sp->tx_dma.trans_len,
sp                327 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                343 drivers/tty/serial/sprd_serial.c 	if (sp->tx_dma.trans_len)
sp                347 drivers/tty/serial/sprd_serial.c 		sp->tx_dma.trans_len = 0;
sp                359 drivers/tty/serial/sprd_serial.c static int sprd_rx_alloc_buf(struct sprd_uart_port *sp)
sp                361 drivers/tty/serial/sprd_serial.c 	sp->rx_dma.virt = dma_alloc_coherent(sp->port.dev, SPRD_UART_RX_SIZE,
sp                362 drivers/tty/serial/sprd_serial.c 					     &sp->rx_dma.phys_addr, GFP_KERNEL);
sp                363 drivers/tty/serial/sprd_serial.c 	if (!sp->rx_dma.virt)
sp                369 drivers/tty/serial/sprd_serial.c static void sprd_rx_free_buf(struct sprd_uart_port *sp)
sp                371 drivers/tty/serial/sprd_serial.c 	if (sp->rx_dma.virt)
sp                372 drivers/tty/serial/sprd_serial.c 		dma_free_coherent(sp->port.dev, SPRD_UART_RX_SIZE,
sp                373 drivers/tty/serial/sprd_serial.c 				  sp->rx_dma.virt, sp->rx_dma.phys_addr);
sp                379 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                388 drivers/tty/serial/sprd_serial.c 	return dmaengine_slave_config(sp->rx_dma.chn, &cfg);
sp                393 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                397 drivers/tty/serial/sprd_serial.c 	port->icount.rx += sp->rx_dma.trans_len;
sp                398 drivers/tty/serial/sprd_serial.c 	tty_insert_flip_string(tty, sp->rx_buf_tail, sp->rx_dma.trans_len);
sp                404 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                409 drivers/tty/serial/sprd_serial.c 	status = dmaengine_tx_status(sp->rx_dma.chn,
sp                410 drivers/tty/serial/sprd_serial.c 				     sp->rx_dma.cookie, &state);
sp                414 drivers/tty/serial/sprd_serial.c 	if (!state.residue && sp->pos == sp->rx_dma.phys_addr)
sp                418 drivers/tty/serial/sprd_serial.c 		sp->rx_dma.trans_len = SPRD_UART_RX_SIZE +
sp                419 drivers/tty/serial/sprd_serial.c 			sp->rx_dma.phys_addr - sp->pos;
sp                420 drivers/tty/serial/sprd_serial.c 		sp->pos = sp->rx_dma.phys_addr;
sp                422 drivers/tty/serial/sprd_serial.c 		sp->rx_dma.trans_len = state.residue - sp->pos;
sp                423 drivers/tty/serial/sprd_serial.c 		sp->pos = state.residue;
sp                427 drivers/tty/serial/sprd_serial.c 	sp->rx_buf_tail += sp->rx_dma.trans_len;
sp                433 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                441 drivers/tty/serial/sprd_serial.c 	status = dmaengine_tx_status(sp->rx_dma.chn,
sp                442 drivers/tty/serial/sprd_serial.c 				     sp->rx_dma.cookie, &state);
sp                449 drivers/tty/serial/sprd_serial.c 	if (sp->pos != sp->rx_dma.phys_addr) {
sp                450 drivers/tty/serial/sprd_serial.c 		sp->rx_dma.trans_len =  SPRD_UART_RX_SIZE +
sp                451 drivers/tty/serial/sprd_serial.c 			sp->rx_dma.phys_addr - sp->pos;
sp                453 drivers/tty/serial/sprd_serial.c 		sp->rx_buf_tail += sp->rx_dma.trans_len;
sp                464 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                468 drivers/tty/serial/sprd_serial.c 	if (!sp->rx_dma.enable)
sp                471 drivers/tty/serial/sprd_serial.c 	sp->pos = sp->rx_dma.phys_addr;
sp                472 drivers/tty/serial/sprd_serial.c 	sp->rx_buf_tail = sp->rx_dma.virt;
sp                478 drivers/tty/serial/sprd_serial.c 	return sprd_uart_dma_submit(port, &sp->rx_dma, SPRD_UART_RX_SIZE,
sp                484 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                489 drivers/tty/serial/sprd_serial.c 	if (sp->rx_dma.enable)
sp                490 drivers/tty/serial/sprd_serial.c 		dma_release_channel(sp->rx_dma.chn);
sp                492 drivers/tty/serial/sprd_serial.c 	if (sp->tx_dma.enable)
sp                493 drivers/tty/serial/sprd_serial.c 		dma_release_channel(sp->tx_dma.chn);
sp                495 drivers/tty/serial/sprd_serial.c 	sp->tx_dma.enable = false;
sp                496 drivers/tty/serial/sprd_serial.c 	sp->rx_dma.enable = false;
sp                501 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp =
sp                504 drivers/tty/serial/sprd_serial.c 	sp->tx_dma.enable = true;
sp                505 drivers/tty/serial/sprd_serial.c 	sp->rx_dma.enable = true;
sp                507 drivers/tty/serial/sprd_serial.c 	sp->tx_dma.chn = dma_request_chan(port->dev, "tx");
sp                508 drivers/tty/serial/sprd_serial.c 	if (IS_ERR(sp->tx_dma.chn)) {
sp                510 drivers/tty/serial/sprd_serial.c 			PTR_ERR(sp->tx_dma.chn));
sp                511 drivers/tty/serial/sprd_serial.c 		sp->tx_dma.enable = false;
sp                514 drivers/tty/serial/sprd_serial.c 	sp->rx_dma.chn = dma_request_chan(port->dev, "rx");
sp                515 drivers/tty/serial/sprd_serial.c 	if (IS_ERR(sp->rx_dma.chn)) {
sp                517 drivers/tty/serial/sprd_serial.c 			PTR_ERR(sp->rx_dma.chn));
sp                518 drivers/tty/serial/sprd_serial.c 		sp->rx_dma.enable = false;
sp                524 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp = container_of(port, struct sprd_uart_port,
sp                528 drivers/tty/serial/sprd_serial.c 	if (sp->tx_dma.enable) {
sp                545 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp = container_of(port, struct sprd_uart_port,
sp                549 drivers/tty/serial/sprd_serial.c 	if (sp->tx_dma.enable) {
sp                601 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp = container_of(port, struct sprd_uart_port,
sp                606 drivers/tty/serial/sprd_serial.c 	if (sp->rx_dma.enable) {
sp                698 drivers/tty/serial/sprd_serial.c 				  struct sprd_uart_port *sp)
sp                703 drivers/tty/serial/sprd_serial.c 	if (!(sp->rx_dma.enable || sp->tx_dma.enable))
sp                708 drivers/tty/serial/sprd_serial.c 		sp->rx_dma.enable = false;
sp                709 drivers/tty/serial/sprd_serial.c 		dma_release_channel(sp->rx_dma.chn);
sp                721 drivers/tty/serial/sprd_serial.c 	struct sprd_uart_port *sp;
sp                742 drivers/tty/serial/sprd_serial.c 	sp = container_of(port, struct sprd_uart_port, port);
sp                743 drivers/tty/serial/sprd_serial.c 	snprintf(sp->name, sizeof(sp->name), "sprd_serial%d", port->line);
sp                745 drivers/tty/serial/sprd_serial.c 	sprd_uart_dma_startup(port, sp);
sp                748 drivers/tty/serial/sprd_serial.c 			       IRQF_SHARED, sp->name, port);
sp                762 drivers/tty/serial/sprd_serial.c 	if (!sp->rx_dma.enable)
sp               1035 drivers/usb/gadget/composite.c static void collect_langs(struct usb_gadget_strings **sp, __le16 *buf)
sp               1041 drivers/usb/gadget/composite.c 	while (*sp) {
sp               1042 drivers/usb/gadget/composite.c 		s = *sp;
sp               1050 drivers/usb/gadget/composite.c 		sp++;
sp               1055 drivers/usb/gadget/composite.c 	struct usb_gadget_strings	**sp,
sp               1064 drivers/usb/gadget/composite.c 	while (*sp) {
sp               1065 drivers/usb/gadget/composite.c 		s = *sp++;
sp               1092 drivers/usb/gadget/composite.c 		struct usb_gadget_strings	**sp;
sp               1097 drivers/usb/gadget/composite.c 		sp = composite->strings;
sp               1098 drivers/usb/gadget/composite.c 		if (sp)
sp               1099 drivers/usb/gadget/composite.c 			collect_langs(sp, s->wData);
sp               1102 drivers/usb/gadget/composite.c 			sp = c->strings;
sp               1103 drivers/usb/gadget/composite.c 			if (sp)
sp               1104 drivers/usb/gadget/composite.c 				collect_langs(sp, s->wData);
sp               1107 drivers/usb/gadget/composite.c 				sp = f->strings;
sp               1108 drivers/usb/gadget/composite.c 				if (sp)
sp               1109 drivers/usb/gadget/composite.c 					collect_langs(sp, s->wData);
sp               1113 drivers/usb/gadget/composite.c 			struct usb_gadget_strings **sp;
sp               1115 drivers/usb/gadget/composite.c 			sp = get_containers_gs(uc);
sp               1116 drivers/usb/gadget/composite.c 			collect_langs(sp, s->wData);
sp               1142 drivers/usb/gadget/composite.c 		struct usb_gadget_strings **sp;
sp               1144 drivers/usb/gadget/composite.c 		sp = get_containers_gs(uc);
sp               1145 drivers/usb/gadget/composite.c 		len = lookup_string(sp, buf, language, id);
sp               1236 drivers/usb/gadget/composite.c 		struct usb_gadget_strings **sp, unsigned n_gstrings,
sp               1264 drivers/usb/gadget/composite.c 		gs->language = sp[n_gs]->language;
sp               1266 drivers/usb/gadget/composite.c 		org_s = sp[n_gs]->strings;
sp               1304 drivers/usb/gadget/composite.c 		struct usb_gadget_strings **sp, unsigned n_strings)
sp               1312 drivers/usb/gadget/composite.c 	for (i = 0; sp[i]; i++)
sp               1318 drivers/usb/gadget/composite.c 	uc = copy_gadget_strings(sp, n_gstrings, n_strings);
sp               1107 drivers/usb/mon/mon_bin.c 		struct mon_bin_stats __user *sp;
sp               1117 drivers/usb/mon/mon_bin.c 		sp = (struct mon_bin_stats __user *)arg;
sp               1118 drivers/usb/mon/mon_bin.c 		if (put_user(ndropped, &sp->dropped))
sp               1120 drivers/usb/mon/mon_bin.c 		if (put_user(nevents, &sp->queued))
sp                 30 drivers/usb/mon/mon_stat.c 	struct snap *sp;
sp                 32 drivers/usb/mon/mon_stat.c 	sp = kmalloc(sizeof(struct snap), GFP_KERNEL);
sp                 33 drivers/usb/mon/mon_stat.c 	if (sp == NULL)
sp                 38 drivers/usb/mon/mon_stat.c 	sp->slen = snprintf(sp->str, STAT_BUF_SIZE,
sp                 42 drivers/usb/mon/mon_stat.c 	file->private_data = sp;
sp                 49 drivers/usb/mon/mon_stat.c 	struct snap *sp = file->private_data;
sp                 51 drivers/usb/mon/mon_stat.c 	return simple_read_from_buffer(buf, nbytes, ppos, sp->str, sp->slen);
sp                 56 drivers/usb/mon/mon_stat.c 	struct snap *sp = file->private_data;
sp                 58 drivers/usb/mon/mon_stat.c 	kfree(sp);
sp                601 drivers/usb/serial/mos7840.c 	__u8 sp[5];
sp                640 drivers/usb/serial/mos7840.c 	sp[0] = (__u8) data[0];
sp                641 drivers/usb/serial/mos7840.c 	sp[1] = (__u8) data[1];
sp                642 drivers/usb/serial/mos7840.c 	sp[2] = (__u8) data[2];
sp                643 drivers/usb/serial/mos7840.c 	sp[3] = (__u8) data[3];
sp                649 drivers/usb/serial/mos7840.c 			if (sp[i] & 0x01) {
sp                652 drivers/usb/serial/mos7840.c 				switch (sp[i] & 0x0f) {
sp                179 drivers/usb/serial/safe_serial.c static inline __u16 fcs_compute10(unsigned char *sp, int len, __u16 fcs)
sp                181 drivers/usb/serial/safe_serial.c 	for (; len-- > 0; fcs = CRC10_FCS(fcs, *sp++));
sp                 23 drivers/video/backlight/rave-sp-backlight.c 	struct rave_sp *sp = dev_get_drvdata(&bd->dev);
sp                 32 drivers/video/backlight/rave-sp-backlight.c 	return rave_sp_exec(sp, cmd, sizeof(cmd), NULL, 0);
sp               1035 drivers/video/fbdev/imsttfb.c 	__u32 Bpp, line_pitch, fb_offset_old, fb_offset_new, sp, dp_octl;
sp               1051 drivers/video/fbdev/imsttfb.c 	sp = line_pitch << 16;
sp               1057 drivers/video/fbdev/imsttfb.c 		sp |= -(line_pitch) & 0xffff;
sp               1060 drivers/video/fbdev/imsttfb.c 		sp |= line_pitch;
sp               1076 drivers/video/fbdev/imsttfb.c 	write_reg_le32(par->dc_regs, SP, sp);
sp                 33 drivers/video/fbdev/sunxvr2500.c static int s3d_get_props(struct s3d_info *sp)
sp                 35 drivers/video/fbdev/sunxvr2500.c 	sp->width = of_getintprop_default(sp->of_node, "width", 0);
sp                 36 drivers/video/fbdev/sunxvr2500.c 	sp->height = of_getintprop_default(sp->of_node, "height", 0);
sp                 37 drivers/video/fbdev/sunxvr2500.c 	sp->depth = of_getintprop_default(sp->of_node, "depth", 8);
sp                 39 drivers/video/fbdev/sunxvr2500.c 	if (!sp->width || !sp->height) {
sp                 41 drivers/video/fbdev/sunxvr2500.c 		       pci_name(sp->pdev));
sp                 74 drivers/video/fbdev/sunxvr2500.c static int s3d_set_fbinfo(struct s3d_info *sp)
sp                 76 drivers/video/fbdev/sunxvr2500.c 	struct fb_info *info = sp->info;
sp                 81 drivers/video/fbdev/sunxvr2500.c 	info->screen_base = sp->fb_base;
sp                 82 drivers/video/fbdev/sunxvr2500.c 	info->screen_size = sp->fb_size;
sp                 84 drivers/video/fbdev/sunxvr2500.c 	info->pseudo_palette = sp->pseudo_palette;
sp                 88 drivers/video/fbdev/sunxvr2500.c         info->fix.smem_start = sp->fb_base_phys;
sp                 89 drivers/video/fbdev/sunxvr2500.c         info->fix.smem_len = sp->fb_size;
sp                 91 drivers/video/fbdev/sunxvr2500.c 	if (sp->depth == 32 || sp->depth == 24)
sp                 96 drivers/video/fbdev/sunxvr2500.c 	var->xres = sp->width;
sp                 97 drivers/video/fbdev/sunxvr2500.c 	var->yres = sp->height;
sp                100 drivers/video/fbdev/sunxvr2500.c 	var->bits_per_pixel = sp->depth;
sp                123 drivers/video/fbdev/sunxvr2500.c 	struct s3d_info *sp;
sp                139 drivers/video/fbdev/sunxvr2500.c 	sp = info->par;
sp                140 drivers/video/fbdev/sunxvr2500.c 	sp->info = info;
sp                141 drivers/video/fbdev/sunxvr2500.c 	sp->pdev = pdev;
sp                142 drivers/video/fbdev/sunxvr2500.c 	sp->of_node = pci_device_to_OF_node(pdev);
sp                143 drivers/video/fbdev/sunxvr2500.c 	if (!sp->of_node) {
sp                150 drivers/video/fbdev/sunxvr2500.c 	sp->fb_base_phys = pci_resource_start (pdev, 1);
sp                159 drivers/video/fbdev/sunxvr2500.c 	err = s3d_get_props(sp);
sp                167 drivers/video/fbdev/sunxvr2500.c 	switch (sp->depth) {
sp                169 drivers/video/fbdev/sunxvr2500.c 		info->fix.line_length = sp->width;
sp                172 drivers/video/fbdev/sunxvr2500.c 		info->fix.line_length = sp->width * 2;
sp                175 drivers/video/fbdev/sunxvr2500.c 		info->fix.line_length = sp->width * 3;
sp                178 drivers/video/fbdev/sunxvr2500.c 		info->fix.line_length = sp->width * 4;
sp                181 drivers/video/fbdev/sunxvr2500.c 	sp->fb_size = info->fix.line_length * sp->height;
sp                183 drivers/video/fbdev/sunxvr2500.c 	sp->fb_base = ioremap(sp->fb_base_phys, sp->fb_size);
sp                184 drivers/video/fbdev/sunxvr2500.c 	if (!sp->fb_base) {
sp                189 drivers/video/fbdev/sunxvr2500.c 	err = s3d_set_fbinfo(sp);
sp                207 drivers/video/fbdev/sunxvr2500.c 	iounmap(sp->fb_base);
sp                 55 drivers/watchdog/rave-sp-wdt.c 	struct rave_sp *sp;
sp                 68 drivers/watchdog/rave-sp-wdt.c 	return rave_sp_exec(to_rave_sp_wdt(wdd)->sp,
sp                267 drivers/watchdog/rave-sp-wdt.c 	sp_wd->sp      = dev_get_drvdata(dev->parent);
sp                 63 fs/binfmt_aout.c 	unsigned long __user *sp;
sp                 67 fs/binfmt_aout.c 	sp = (void __user *)((-(unsigned long)sizeof(char *)) & (unsigned long) p);
sp                 70 fs/binfmt_aout.c 	put_user(0, --sp);
sp                 71 fs/binfmt_aout.c 	put_user(0, --sp);
sp                 73 fs/binfmt_aout.c 		put_user(0, --sp);
sp                 74 fs/binfmt_aout.c 		put_user(1003, --sp);
sp                 75 fs/binfmt_aout.c 		put_user(bprm->loader, --sp);
sp                 76 fs/binfmt_aout.c 		put_user(1002, --sp);
sp                 78 fs/binfmt_aout.c 	put_user(bprm->exec, --sp);
sp                 79 fs/binfmt_aout.c 	put_user(1001, --sp);
sp                 81 fs/binfmt_aout.c 	sp -= envc+1;
sp                 82 fs/binfmt_aout.c 	envp = (char __user * __user *) sp;
sp                 83 fs/binfmt_aout.c 	sp -= argc+1;
sp                 84 fs/binfmt_aout.c 	argv = (char __user * __user *) sp;
sp                 86 fs/binfmt_aout.c 	put_user((unsigned long) envp,--sp);
sp                 87 fs/binfmt_aout.c 	put_user((unsigned long) argv,--sp);
sp                 89 fs/binfmt_aout.c 	put_user(argc,--sp);
sp                109 fs/binfmt_aout.c 	return sp;
sp                141 fs/binfmt_elf.c #define STACK_ADD(sp, items) ((elf_addr_t __user *)(sp) + (items))
sp                142 fs/binfmt_elf.c #define STACK_ROUND(sp, items) \
sp                143 fs/binfmt_elf.c 	((15 + (unsigned long) ((sp) + (items))) &~ 15UL)
sp                144 fs/binfmt_elf.c #define STACK_ALLOC(sp, len) ({ \
sp                145 fs/binfmt_elf.c 	elf_addr_t __user *old_sp = (elf_addr_t __user *)sp; sp += len; \
sp                148 fs/binfmt_elf.c #define STACK_ADD(sp, items) ((elf_addr_t __user *)(sp) - (items))
sp                149 fs/binfmt_elf.c #define STACK_ROUND(sp, items) \
sp                150 fs/binfmt_elf.c 	(((unsigned long) (sp - items)) &~ 15UL)
sp                151 fs/binfmt_elf.c #define STACK_ALLOC(sp, len) ({ sp -= len ; sp; })
sp                170 fs/binfmt_elf.c 	elf_addr_t __user *sp;
sp                284 fs/binfmt_elf.c 	sp = STACK_ADD(p, ei_index);
sp                287 fs/binfmt_elf.c 	bprm->p = STACK_ROUND(sp, items);
sp                291 fs/binfmt_elf.c 	sp = (elf_addr_t __user *)bprm->p - items - ei_index;
sp                292 fs/binfmt_elf.c 	bprm->exec = (unsigned long)sp; /* XXX: PARISC HACK */
sp                294 fs/binfmt_elf.c 	sp = (elf_addr_t __user *)bprm->p;
sp                307 fs/binfmt_elf.c 	if (__put_user(argc, sp++))
sp                314 fs/binfmt_elf.c 		if (__put_user((elf_addr_t)p, sp++))
sp                321 fs/binfmt_elf.c 	if (__put_user(0, sp++))
sp                329 fs/binfmt_elf.c 		if (__put_user((elf_addr_t)p, sp++))
sp                336 fs/binfmt_elf.c 	if (__put_user(0, sp++))
sp                341 fs/binfmt_elf.c 	if (copy_to_user(sp, elf_info, ei_index * sizeof(elf_addr_t)))
sp                503 fs/binfmt_elf_fdpic.c 	unsigned long sp, csp, nitems;
sp                517 fs/binfmt_elf_fdpic.c 	sp = arch_align_stack(bprm->p);
sp                519 fs/binfmt_elf_fdpic.c 	sp = mm->start_stack;
sp                522 fs/binfmt_elf_fdpic.c 	if (transfer_args_to_stack(bprm, &sp) < 0)
sp                524 fs/binfmt_elf_fdpic.c 	sp &= ~15;
sp                538 fs/binfmt_elf_fdpic.c 		sp -= platform_len;
sp                539 fs/binfmt_elf_fdpic.c 		u_platform = (char __user *) sp;
sp                553 fs/binfmt_elf_fdpic.c 		sp -= platform_len;
sp                554 fs/binfmt_elf_fdpic.c 		u_base_platform = (char __user *) sp;
sp                559 fs/binfmt_elf_fdpic.c 	sp &= ~7UL;
sp                564 fs/binfmt_elf_fdpic.c 	sp = (sp - len) & ~7UL;
sp                565 fs/binfmt_elf_fdpic.c 	exec_params->map_addr = sp;
sp                567 fs/binfmt_elf_fdpic.c 	if (copy_to_user((void __user *) sp, exec_params->loadmap, len) != 0)
sp                570 fs/binfmt_elf_fdpic.c 	current->mm->context.exec_fdpic_loadmap = (unsigned long) sp;
sp                576 fs/binfmt_elf_fdpic.c 		sp = (sp - len) & ~7UL;
sp                577 fs/binfmt_elf_fdpic.c 		interp_params->map_addr = sp;
sp                579 fs/binfmt_elf_fdpic.c 		if (copy_to_user((void __user *) sp, interp_params->loadmap,
sp                583 fs/binfmt_elf_fdpic.c 		current->mm->context.interp_fdpic_loadmap = (unsigned long) sp;
sp                595 fs/binfmt_elf_fdpic.c 	csp = sp;
sp                596 fs/binfmt_elf_fdpic.c 	sp -= nitems * 2 * sizeof(unsigned long);
sp                597 fs/binfmt_elf_fdpic.c 	sp -= (bprm->envc + 1) * sizeof(char *);	/* envv[] */
sp                598 fs/binfmt_elf_fdpic.c 	sp -= (bprm->argc + 1) * sizeof(char *);	/* argv[] */
sp                599 fs/binfmt_elf_fdpic.c 	sp -= 1 * sizeof(unsigned long);		/* argc */
sp                601 fs/binfmt_elf_fdpic.c 	csp -= sp & 15UL;
sp                602 fs/binfmt_elf_fdpic.c 	sp -= sp & 15UL;
sp                680 fs/binfmt_elf_fdpic.c 	BUG_ON(csp != sp);
sp                713 fs/binfmt_elf_fdpic.c 	mm->start_stack = (unsigned long) sp;
sp                126 fs/binfmt_flat.c 	unsigned long __user *sp;
sp                130 fs/binfmt_flat.c 	sp = (unsigned long __user *)current->mm->start_stack;
sp                132 fs/binfmt_flat.c 	sp -= bprm->envc + 1;
sp                133 fs/binfmt_flat.c 	sp -= bprm->argc + 1;
sp                135 fs/binfmt_flat.c 		sp -= 2; /* argvp + envp */
sp                136 fs/binfmt_flat.c 	sp -= 1;  /* &argc */
sp                138 fs/binfmt_flat.c 	current->mm->start_stack = (unsigned long)sp & -FLAT_STACK_ALIGN;
sp                139 fs/binfmt_flat.c 	sp = (unsigned long __user *)current->mm->start_stack;
sp                141 fs/binfmt_flat.c 	__put_user(bprm->argc, sp++);
sp                144 fs/binfmt_flat.c 		argv = (unsigned long)(sp + 2);
sp                145 fs/binfmt_flat.c 		envp = (unsigned long)(sp + 2 + bprm->argc + 1);
sp                146 fs/binfmt_flat.c 		__put_user(argv, sp++);
sp                147 fs/binfmt_flat.c 		__put_user(envp, sp++);
sp                152 fs/binfmt_flat.c 		__put_user((unsigned long)p, sp++);
sp                158 fs/binfmt_flat.c 	__put_user(0, sp++);
sp                163 fs/binfmt_flat.c 		__put_user((unsigned long)p, sp++);
sp                169 fs/binfmt_flat.c 	__put_user(0, sp++);
sp                998 fs/binfmt_flat.c 			unsigned long __user *sp;
sp               1000 fs/binfmt_flat.c 			sp = (unsigned long __user *)current->mm->start_stack;
sp               1001 fs/binfmt_flat.c 			__put_user(start_addr, sp);
sp               10738 fs/btrfs/inode.c 	struct btrfs_swapfile_pin *sp, *entry;
sp               10742 fs/btrfs/inode.c 	sp = kmalloc(sizeof(*sp), GFP_NOFS);
sp               10743 fs/btrfs/inode.c 	if (!sp)
sp               10745 fs/btrfs/inode.c 	sp->ptr = ptr;
sp               10746 fs/btrfs/inode.c 	sp->inode = inode;
sp               10747 fs/btrfs/inode.c 	sp->is_block_group = is_block_group;
sp               10754 fs/btrfs/inode.c 		if (sp->ptr < entry->ptr ||
sp               10755 fs/btrfs/inode.c 		    (sp->ptr == entry->ptr && sp->inode < entry->inode)) {
sp               10757 fs/btrfs/inode.c 		} else if (sp->ptr > entry->ptr ||
sp               10758 fs/btrfs/inode.c 			   (sp->ptr == entry->ptr && sp->inode > entry->inode)) {
sp               10762 fs/btrfs/inode.c 			kfree(sp);
sp               10766 fs/btrfs/inode.c 	rb_link_node(&sp->node, parent, p);
sp               10767 fs/btrfs/inode.c 	rb_insert_color(&sp->node, &fs_info->swapfile_pins);
sp               10776 fs/btrfs/inode.c 	struct btrfs_swapfile_pin *sp;
sp               10783 fs/btrfs/inode.c 		sp = rb_entry(node, struct btrfs_swapfile_pin, node);
sp               10784 fs/btrfs/inode.c 		if (sp->inode == inode) {
sp               10785 fs/btrfs/inode.c 			rb_erase(&sp->node, &fs_info->swapfile_pins);
sp               10786 fs/btrfs/inode.c 			if (sp->is_block_group)
sp               10787 fs/btrfs/inode.c 				btrfs_put_block_group(sp->ptr);
sp               10788 fs/btrfs/inode.c 			kfree(sp);
sp               7913 fs/btrfs/volumes.c 	struct btrfs_swapfile_pin *sp;
sp               7919 fs/btrfs/volumes.c 		sp = rb_entry(node, struct btrfs_swapfile_pin, node);
sp               7920 fs/btrfs/volumes.c 		if (ptr < sp->ptr)
sp               7922 fs/btrfs/volumes.c 		else if (ptr > sp->ptr)
sp                410 fs/dlm/config.c 	struct dlm_space *sp = NULL;
sp                413 fs/dlm/config.c 	sp = kzalloc(sizeof(struct dlm_space), GFP_NOFS);
sp                416 fs/dlm/config.c 	if (!sp || !nds)
sp                419 fs/dlm/config.c 	config_group_init_type_name(&sp->group, name, &space_type);
sp                422 fs/dlm/config.c 	configfs_add_default_group(&nds->ns_group, &sp->group);
sp                424 fs/dlm/config.c 	INIT_LIST_HEAD(&sp->members);
sp                425 fs/dlm/config.c 	mutex_init(&sp->members_lock);
sp                426 fs/dlm/config.c 	sp->members_count = 0;
sp                427 fs/dlm/config.c 	return &sp->group;
sp                430 fs/dlm/config.c 	kfree(sp);
sp                437 fs/dlm/config.c 	struct dlm_space *sp = config_item_to_space(i);
sp                441 fs/dlm/config.c 	configfs_remove_default_groups(&sp->group);
sp                447 fs/dlm/config.c 	struct dlm_space *sp = config_item_to_space(i);
sp                448 fs/dlm/config.c 	kfree(sp);
sp                490 fs/dlm/config.c 	struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent);
sp                502 fs/dlm/config.c 	mutex_lock(&sp->members_lock);
sp                503 fs/dlm/config.c 	list_add(&nd->list, &sp->members);
sp                504 fs/dlm/config.c 	sp->members_count++;
sp                505 fs/dlm/config.c 	mutex_unlock(&sp->members_lock);
sp                512 fs/dlm/config.c 	struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent);
sp                515 fs/dlm/config.c 	mutex_lock(&sp->members_lock);
sp                517 fs/dlm/config.c 	sp->members_count--;
sp                518 fs/dlm/config.c 	mutex_unlock(&sp->members_lock);
sp                737 fs/dlm/config.c static void put_space(struct dlm_space *sp)
sp                739 fs/dlm/config.c 	config_item_put(&sp->group.cg_item);
sp                778 fs/dlm/config.c 	struct dlm_space *sp;
sp                783 fs/dlm/config.c 	sp = get_space(lsname);
sp                784 fs/dlm/config.c 	if (!sp)
sp                787 fs/dlm/config.c 	mutex_lock(&sp->members_lock);
sp                788 fs/dlm/config.c 	if (!sp->members_count) {
sp                794 fs/dlm/config.c 	count = sp->members_count;
sp                803 fs/dlm/config.c 	list_for_each_entry(nd, &sp->members, list) {
sp                817 fs/dlm/config.c 	mutex_unlock(&sp->members_lock);
sp                818 fs/dlm/config.c 	put_space(sp);
sp                813 fs/exec.c      	unsigned long index, stop, sp;
sp                817 fs/exec.c      	sp = *sp_location;
sp                822 fs/exec.c      		sp -= PAGE_SIZE - offset;
sp                823 fs/exec.c      		if (copy_to_user((void *) sp, src, PAGE_SIZE - offset) != 0)
sp                830 fs/exec.c      	*sp_location = sp;
sp                391 fs/jffs2/summary.c 	void *sp;
sp                395 fs/jffs2/summary.c 	sp = summary->sum;
sp                407 fs/jffs2/summary.c 		switch (je16_to_cpu(((struct jffs2_sum_unknown_flash *)sp)->nodetype)) {
sp                410 fs/jffs2/summary.c 				spi = sp;
sp                429 fs/jffs2/summary.c 				sp += JFFS2_SUMMARY_INODE_SIZE;
sp                437 fs/jffs2/summary.c 				spd = sp;
sp                486 fs/jffs2/summary.c 				sp += JFFS2_SUMMARY_DIRENT_SIZE(spd->nsize);
sp                495 fs/jffs2/summary.c 				spx = (struct jffs2_sum_xattr_flash *)sp;
sp                518 fs/jffs2/summary.c 				sp += JFFS2_SUMMARY_XATTR_SIZE;
sp                526 fs/jffs2/summary.c 				spr = (struct jffs2_sum_xref_flash *)sp;
sp                544 fs/jffs2/summary.c 				sp += JFFS2_SUMMARY_XREF_SIZE;
sp                550 fs/jffs2/summary.c 				uint16_t nodetype = je16_to_cpu(((struct jffs2_sum_unknown_flash *)sp)->nodetype);
sp                175 fs/jfs/jfs_dtree.c static void dtMoveEntry(dtpage_t * sp, int si, dtpage_t * dp,
sp                924 fs/jfs/jfs_dtree.c 	dtpage_t *sp;		/* split page */
sp                946 fs/jfs/jfs_dtree.c 	sp = DT_PAGE(ip, smp);
sp                964 fs/jfs/jfs_dtree.c 	if (sp->header.flag & BT_ROOT) {
sp                971 fs/jfs/jfs_dtree.c 		n -= DTROOTMAXSLOT - sp->header.freecnt; /* header + entries */
sp               1006 fs/jfs/jfs_dtree.c 	pxd = &sp->header.self;
sp               1013 fs/jfs/jfs_dtree.c 		if ((n + sp->header.freecnt) <= split->nslot)
sp               1120 fs/jfs/jfs_dtree.c 		lp = sp;
sp               1126 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc);
sp               1171 fs/jfs/jfs_dtree.c 			if ((sp->header.flag & BT_ROOT && skip > 1) ||
sp               1172 fs/jfs/jfs_dtree.c 			    sp->header.prev != 0 || skip > 1) {
sp               1220 fs/jfs/jfs_dtree.c 		if (n > sp->header.freecnt) {
sp               1235 fs/jfs/jfs_dtree.c 			rc = (sp->header.flag & BT_ROOT) ?
sp               1264 fs/jfs/jfs_dtree.c 			if (!(sp->header.flag & BT_ROOT)) {
sp               1267 fs/jfs/jfs_dtree.c 				lv->offset = sp->header.stblindex + n;
sp               1269 fs/jfs/jfs_dtree.c 				    ((sp->header.nextindex -
sp               1274 fs/jfs/jfs_dtree.c 			dtInsertEntry(sp, skip, &key, data, &dtlck);
sp               1323 fs/jfs/jfs_dtree.c 	dtpage_t *sp;
sp               1346 fs/jfs/jfs_dtree.c 	sp = DT_PAGE(ip, smp);
sp               1398 fs/jfs/jfs_dtree.c 	nextbn = le64_to_cpu(sp->header.next);
sp               1400 fs/jfs/jfs_dtree.c 	rp->header.prev = cpu_to_le64(addressPXD(&sp->header.self));
sp               1401 fs/jfs/jfs_dtree.c 	sp->header.next = cpu_to_le64(rbn);
sp               1406 fs/jfs/jfs_dtree.c 	rp->header.flag = sp->header.flag;
sp               1434 fs/jfs/jfs_dtree.c 	if (nextbn == 0 && split->index == sp->header.nextindex) {
sp               1502 fs/jfs/jfs_dtree.c 	stbl = (u8 *) & sp->slot[sp->header.stblindex];
sp               1503 fs/jfs/jfs_dtree.c 	nextindex = sp->header.nextindex;
sp               1510 fs/jfs/jfs_dtree.c 			switch (sp->header.flag & BT_TYPE) {
sp               1512 fs/jfs/jfs_dtree.c 				ldtentry = (struct ldtentry *) & sp->slot[si];
sp               1521 fs/jfs/jfs_dtree.c 				idtentry = (struct idtentry *) & sp->slot[si];
sp               1553 fs/jfs/jfs_dtree.c 	dtMoveEntry(sp, nxt, rp, &sdtlck, &rdtlck, DO_INDEX(ip));
sp               1555 fs/jfs/jfs_dtree.c 	sp->header.nextindex = nxt;
sp               1588 fs/jfs/jfs_dtree.c 		dtInsertEntry(sp, skip, split->key, split->data, &sdtlck);
sp               1595 fs/jfs/jfs_dtree.c 		slv->offset = sp->header.stblindex + n;
sp               1597 fs/jfs/jfs_dtree.c 		    ((sp->header.nextindex - 1) >> L2DTSLOTSIZE) - n + 1;
sp               1636 fs/jfs/jfs_dtree.c 	dtpage_t *sp, *pp;
sp               1657 fs/jfs/jfs_dtree.c 	sp = DT_PAGE(ip, smp);
sp               1673 fs/jfs/jfs_dtree.c 	tpxd = &sp->header.self;
sp               1687 fs/jfs/jfs_dtree.c 		pxdlock->pxd = sp->header.self;
sp               1697 fs/jfs/jfs_dtree.c 			stbl = DT_GETSTBL(sp);
sp               1698 fs/jfs/jfs_dtree.c 			for (n = 0; n < sp->header.nextindex; n++) {
sp               1700 fs/jfs/jfs_dtree.c 				    (struct ldtentry *) & sp->slot[stbl[n]];
sp               1713 fs/jfs/jfs_dtree.c 	sp->header.self = *pxd;
sp               1715 fs/jfs/jfs_dtree.c 	jfs_info("dtExtendPage: ip:0x%p smp:0x%p sp:0x%p", ip, smp, sp);
sp               1732 fs/jfs/jfs_dtree.c 	oldstblindex = sp->header.stblindex;
sp               1733 fs/jfs/jfs_dtree.c 	oldstblsize = (sp->header.maxslot + 31) >> L2DTSLOTSIZE;
sp               1734 fs/jfs/jfs_dtree.c 	newstblindex = sp->header.maxslot;
sp               1737 fs/jfs/jfs_dtree.c 	memcpy(&sp->slot[newstblindex], &sp->slot[oldstblindex],
sp               1738 fs/jfs/jfs_dtree.c 	       sp->header.nextindex);
sp               1759 fs/jfs/jfs_dtree.c 		lv->length = sp->header.maxslot + newstblsize;
sp               1764 fs/jfs/jfs_dtree.c 	sp->header.maxslot = n;
sp               1765 fs/jfs/jfs_dtree.c 	sp->header.stblindex = newstblindex;
sp               1772 fs/jfs/jfs_dtree.c 	f = &sp->slot[fsi];
sp               1773 fs/jfs/jfs_dtree.c 	last = sp->header.freelist;
sp               1778 fs/jfs/jfs_dtree.c 	sp->header.freelist = last;
sp               1779 fs/jfs/jfs_dtree.c 	sp->header.freecnt += oldstblsize;
sp               1786 fs/jfs/jfs_dtree.c 	f = &sp->slot[fsi];
sp               1787 fs/jfs/jfs_dtree.c 	for (fsi++; fsi < sp->header.maxslot; f++, fsi++)
sp               1792 fs/jfs/jfs_dtree.c 	fsi = sp->header.freelist;
sp               1794 fs/jfs/jfs_dtree.c 		sp->header.freelist = n;
sp               1797 fs/jfs/jfs_dtree.c 			f = &sp->slot[fsi];
sp               1804 fs/jfs/jfs_dtree.c 	sp->header.freecnt += sp->header.maxslot - n;
sp               1809 fs/jfs/jfs_dtree.c 	dtInsertEntry(sp, split->index, split->key, split->data, &dtlck);
sp               1816 fs/jfs/jfs_dtree.c 		n = sp->header.maxslot >> 2;
sp               1817 fs/jfs/jfs_dtree.c 		if (sp->header.freelist < n)
sp               1818 fs/jfs/jfs_dtree.c 			dtLinelockFreelist(sp, n, &dtlck);
sp               1868 fs/jfs/jfs_dtree.c 	dtroot_t *sp;
sp               1888 fs/jfs/jfs_dtree.c 	sp = &JFS_IP(ip)->i_dtroot;
sp               1923 fs/jfs/jfs_dtree.c 	    (sp->header.flag & BT_LEAF) ? BT_LEAF : BT_INTERNAL;
sp               1947 fs/jfs/jfs_dtree.c 	memcpy(stbl, sp->header.stbl, sp->header.nextindex);
sp               1948 fs/jfs/jfs_dtree.c 	rp->header.nextindex = sp->header.nextindex;
sp               1951 fs/jfs/jfs_dtree.c 	memcpy(&rp->slot[1], &sp->slot[1], IDATASIZE);
sp               1964 fs/jfs/jfs_dtree.c 	fsi = sp->header.freelist;
sp               1978 fs/jfs/jfs_dtree.c 	rp->header.freecnt = sp->header.freecnt + rp->header.maxslot - n;
sp               2027 fs/jfs/jfs_dtree.c 	if (sp->header.flag & BT_LEAF) {
sp               2028 fs/jfs/jfs_dtree.c 		sp->header.flag &= ~BT_LEAF;
sp               2029 fs/jfs/jfs_dtree.c 		sp->header.flag |= BT_INTERNAL;
sp               2033 fs/jfs/jfs_dtree.c 	s = (struct idtentry *) & sp->slot[DTENTRYSTART];
sp               2039 fs/jfs/jfs_dtree.c 	stbl = sp->header.stbl;
sp               2041 fs/jfs/jfs_dtree.c 	sp->header.nextindex = 1;
sp               2045 fs/jfs/jfs_dtree.c 	f = &sp->slot[fsi];
sp               2052 fs/jfs/jfs_dtree.c 	sp->header.freelist = DTENTRYSTART + 1;
sp               2053 fs/jfs/jfs_dtree.c 	sp->header.freecnt = DTROOTMAXSLOT - (DTENTRYSTART + 1);
sp               4051 fs/jfs/jfs_dtree.c static void dtMoveEntry(dtpage_t * sp, int si, dtpage_t * dp,
sp               4068 fs/jfs/jfs_dtree.c 	sstbl = (s8 *) & sp->slot[sp->header.stblindex];
sp               4072 fs/jfs/jfs_dtree.c 	sfsi = sp->header.freelist;
sp               4087 fs/jfs/jfs_dtree.c 	for (di = 0; si < sp->header.nextindex; si++, di++) {
sp               4116 fs/jfs/jfs_dtree.c 		s = &sp->slot[ssi];
sp               4117 fs/jfs/jfs_dtree.c 		if (sp->header.flag & BT_LEAF) {
sp               4184 fs/jfs/jfs_dtree.c 			s = &sp->slot[ssi];
sp               4230 fs/jfs/jfs_dtree.c 	sp->header.freelist = sfsi;
sp               4231 fs/jfs/jfs_dtree.c 	sp->header.freecnt += nd;
sp                680 fs/jfs/jfs_xtree.c 	xtpage_t *sp;		/* split page */
sp                699 fs/jfs/jfs_xtree.c 	sp = XT_PAGE(ip, smp);
sp                702 fs/jfs/jfs_xtree.c 	if ((sp->header.flag & BT_ROOT) && (!S_ISDIR(ip->i_mode)) &&
sp                703 fs/jfs/jfs_xtree.c 	    (le16_to_cpu(sp->header.maxentry) < XTROOTMAXSLOT) &&
sp                705 fs/jfs/jfs_xtree.c 		sp->header.maxentry = cpu_to_le16(XTROOTMAXSLOT);
sp                717 fs/jfs/jfs_xtree.c 		nextindex = le16_to_cpu(sp->header.nextindex);
sp                719 fs/jfs/jfs_xtree.c 			memmove(&sp->xad[skip + 1], &sp->xad[skip],
sp                723 fs/jfs/jfs_xtree.c 		xad = &sp->xad[skip];
sp                728 fs/jfs/jfs_xtree.c 		le16_add_cpu(&sp->header.nextindex, 1);
sp                737 fs/jfs/jfs_xtree.c 			    le16_to_cpu(sp->header.nextindex) -
sp                780 fs/jfs/jfs_xtree.c 	rc = (sp->header.flag & BT_ROOT) ?
sp                821 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc);
sp                836 fs/jfs/jfs_xtree.c 		nextindex = le16_to_cpu(sp->header.nextindex);
sp                840 fs/jfs/jfs_xtree.c 		if (nextindex == le16_to_cpu(sp->header.maxentry)) {
sp                856 fs/jfs/jfs_xtree.c 			rc = (sp->header.flag & BT_ROOT) ?
sp                886 fs/jfs/jfs_xtree.c 				memmove(&sp->xad[skip + 1], &sp->xad[skip],
sp                891 fs/jfs/jfs_xtree.c 			xad = &sp->xad[skip];
sp                897 fs/jfs/jfs_xtree.c 			le16_add_cpu(&sp->header.nextindex, 1);
sp                907 fs/jfs/jfs_xtree.c 				    le16_to_cpu(sp->header.nextindex) -
sp                950 fs/jfs/jfs_xtree.c 	xtpage_t *sp;
sp                966 fs/jfs/jfs_xtree.c 	sp = XT_PAGE(ip, smp);
sp               1000 fs/jfs/jfs_xtree.c 	rp->header.flag = sp->header.flag & BT_TYPE;
sp               1001 fs/jfs/jfs_xtree.c 	rp->header.maxentry = sp->header.maxentry;	/* little-endian */
sp               1023 fs/jfs/jfs_xtree.c 	nextbn = le64_to_cpu(sp->header.next);
sp               1025 fs/jfs/jfs_xtree.c 	rp->header.prev = cpu_to_le64(addressPXD(&sp->header.self));
sp               1026 fs/jfs/jfs_xtree.c 	sp->header.next = cpu_to_le64(rbn);
sp               1043 fs/jfs/jfs_xtree.c 	if (nextbn == 0 && skip == le16_to_cpu(sp->header.maxentry)) {
sp               1064 fs/jfs/jfs_xtree.c 		jfs_info("xtSplitPage: sp:0x%p rp:0x%p", sp, rp);
sp               1103 fs/jfs/jfs_xtree.c 	maxentry = le16_to_cpu(sp->header.maxentry);
sp               1112 fs/jfs/jfs_xtree.c 		memmove(&rp->xad[XTENTRYSTART], &sp->xad[middle],
sp               1117 fs/jfs/jfs_xtree.c 			memmove(&sp->xad[skip + 1], &sp->xad[skip],
sp               1121 fs/jfs/jfs_xtree.c 		xad = &sp->xad[skip];
sp               1126 fs/jfs/jfs_xtree.c 		sp->header.nextindex = cpu_to_le16(middle + 1);
sp               1141 fs/jfs/jfs_xtree.c 		memmove(&rp->xad[XTENTRYSTART], &sp->xad[middle],
sp               1152 fs/jfs/jfs_xtree.c 			memmove(&rp->xad[n + 1], &sp->xad[skip],
sp               1156 fs/jfs/jfs_xtree.c 		sp->header.nextindex = cpu_to_le16(middle);
sp               1167 fs/jfs/jfs_xtree.c 		sxtlck->lwm.length = le16_to_cpu(sp->header.nextindex) -
sp               1178 fs/jfs/jfs_xtree.c 	jfs_info("xtSplitPage: sp:0x%p rp:0x%p", sp, rp);
sp               1215 fs/jfs/jfs_xtree.c 	xtpage_t *sp;
sp               1227 fs/jfs/jfs_xtree.c 	sp = &JFS_IP(ip)->i_xtroot;
sp               1260 fs/jfs/jfs_xtree.c 	    (sp->header.flag & BT_LEAF) ? BT_LEAF : BT_INTERNAL;
sp               1272 fs/jfs/jfs_xtree.c 	nextindex = le16_to_cpu(sp->header.maxentry);
sp               1273 fs/jfs/jfs_xtree.c 	memmove(&rp->xad[XTENTRYSTART], &sp->xad[XTENTRYSTART],
sp               1314 fs/jfs/jfs_xtree.c 	xad = &sp->xad[XTENTRYSTART];
sp               1318 fs/jfs/jfs_xtree.c 	sp->header.flag &= ~BT_LEAF;
sp               1319 fs/jfs/jfs_xtree.c 	sp->header.flag |= BT_INTERNAL;
sp               1321 fs/jfs/jfs_xtree.c 	sp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1);
sp               1332 fs/jfs/jfs_xtree.c 	jfs_info("xtSplitRoot: sp:0x%p rp:0x%p", sp, rp);
sp                572 fs/nfs/blocklayout/blocklayout.c static int decode_sector_number(__be32 **rp, sector_t *sp)
sp                581 fs/nfs/blocklayout/blocklayout.c 	*sp = s >> SECTOR_SHIFT;
sp                142 fs/nfs/delegation.c 	struct nfs4_state_owner *sp;
sp                162 fs/nfs/delegation.c 		sp = state->owner;
sp                164 fs/nfs/delegation.c 		mutex_lock(&sp->so_delegreturn_mutex);
sp                165 fs/nfs/delegation.c 		seq = raw_seqcount_begin(&sp->so_reclaim_seqcount);
sp                169 fs/nfs/delegation.c 		if (!err && read_seqcount_retry(&sp->so_reclaim_seqcount, seq))
sp                171 fs/nfs/delegation.c 		mutex_unlock(&sp->so_delegreturn_mutex);
sp               1268 fs/nfs/nfs4proc.c 		struct nfs4_state_owner *sp, fmode_t fmode, int flags,
sp               1293 fs/nfs/nfs4proc.c 	p->o_arg.seqid = alloc_seqid(&sp->so_seqid, gfp_mask);
sp               1299 fs/nfs/nfs4proc.c 	p->owner = sp;
sp               1300 fs/nfs/nfs4proc.c 	atomic_inc(&sp->so_count);
sp               1334 fs/nfs/nfs4proc.c 	p->o_arg.id.create_time = ktime_to_ns(sp->so_seqid.create_time);
sp               1335 fs/nfs/nfs4proc.c 	p->o_arg.id.uniquifier = sp->so_seqid.owner_id;
sp               2169 fs/nfs/nfs4proc.c static int nfs4_open_reclaim(struct nfs4_state_owner *sp, struct nfs4_state *state)
sp               2363 fs/nfs/nfs4proc.c 	struct nfs4_state_owner *sp = data->owner;
sp               2364 fs/nfs/nfs4proc.c 	struct nfs_client *clp = sp->so_server->nfs_client;
sp               2691 fs/nfs/nfs4proc.c static int nfs4_open_expired(struct nfs4_state_owner *sp, struct nfs4_state *state)
sp               2717 fs/nfs/nfs4proc.c static int nfs40_open_expired(struct nfs4_state_owner *sp, struct nfs4_state *state)
sp               2722 fs/nfs/nfs4proc.c 	return nfs4_open_expired(sp, state);
sp               2897 fs/nfs/nfs4proc.c static int nfs41_open_expired(struct nfs4_state_owner *sp, struct nfs4_state *state)
sp               2911 fs/nfs/nfs4proc.c 		status = nfs4_open_expired(sp, state);
sp               2960 fs/nfs/nfs4proc.c 	struct nfs4_state_owner *sp = opendata->owner;
sp               2961 fs/nfs/nfs4proc.c 	struct nfs_server *server = sp->so_server;
sp               2970 fs/nfs/nfs4proc.c 	seq = raw_seqcount_begin(&sp->so_reclaim_seqcount);
sp               3017 fs/nfs/nfs4proc.c 	ret = nfs4_opendata_access(sp->so_cred, opendata, state,
sp               3024 fs/nfs/nfs4proc.c 		if (read_seqcount_retry(&sp->so_reclaim_seqcount, seq))
sp               3043 fs/nfs/nfs4proc.c 	struct nfs4_state_owner  *sp;
sp               3059 fs/nfs/nfs4proc.c 	sp = nfs4_get_state_owner(server, cred, GFP_KERNEL);
sp               3060 fs/nfs/nfs4proc.c 	if (sp == NULL) {
sp               3072 fs/nfs/nfs4proc.c 	opendata = nfs4_opendata_alloc(dentry, sp, fmode, flags,
sp               3094 fs/nfs/nfs4proc.c 		opendata->state = nfs4_get_open_state(d_inode(dentry), sp);
sp               3135 fs/nfs/nfs4proc.c 	nfs4_put_state_owner(sp);
sp               3142 fs/nfs/nfs4proc.c 	nfs4_put_state_owner(sp);
sp               3429 fs/nfs/nfs4proc.c 	struct nfs4_state_owner *sp = calldata->state->owner;
sp               3437 fs/nfs/nfs4proc.c 	nfs4_put_state_owner(sp);
sp               3629 fs/nfs/nfs4proc.c 	struct nfs4_state_owner *sp = state->owner;
sp               3691 fs/nfs/nfs4proc.c 	nfs4_put_state_owner(sp);
sp               6650 fs/nfs/nfs4proc.c 	struct nfs4_state_owner *sp = state->owner;
sp               6663 fs/nfs/nfs4proc.c 	mutex_lock(&sp->so_delegreturn_mutex);
sp               6668 fs/nfs/nfs4proc.c 		mutex_unlock(&sp->so_delegreturn_mutex);
sp               6672 fs/nfs/nfs4proc.c 	mutex_unlock(&sp->so_delegreturn_mutex);
sp               7005 fs/nfs/nfs4proc.c 	struct nfs4_state_owner *sp = state->owner;
sp               7013 fs/nfs/nfs4proc.c 	mutex_lock(&sp->so_delegreturn_mutex);
sp               7021 fs/nfs/nfs4proc.c 		mutex_unlock(&sp->so_delegreturn_mutex);
sp               7025 fs/nfs/nfs4proc.c 	mutex_unlock(&sp->so_delegreturn_mutex);
sp               8007 fs/nfs/nfs4proc.c 				 struct nfs41_state_protection *sp)
sp               8020 fs/nfs/nfs4proc.c 	if (sp->how == SP4_MACH_CRED) {
sp               8024 fs/nfs/nfs4proc.c 			if (test_bit(i, sp->enforce.u.longs))
sp               8026 fs/nfs/nfs4proc.c 			if (test_bit(i, sp->allow.u.longs))
sp               8032 fs/nfs/nfs4proc.c 			if (sp->enforce.u.words[i] & ~supported_enforce[i]) {
sp               8048 fs/nfs/nfs4proc.c 		if (test_bit(OP_BIND_CONN_TO_SESSION, sp->enforce.u.longs) &&
sp               8049 fs/nfs/nfs4proc.c 		    test_bit(OP_CREATE_SESSION, sp->enforce.u.longs) &&
sp               8050 fs/nfs/nfs4proc.c 		    test_bit(OP_DESTROY_SESSION, sp->enforce.u.longs) &&
sp               8051 fs/nfs/nfs4proc.c 		    test_bit(OP_DESTROY_CLIENTID, sp->enforce.u.longs)) {
sp               8061 fs/nfs/nfs4proc.c 		if (test_bit(OP_CLOSE, sp->allow.u.longs) &&
sp               8062 fs/nfs/nfs4proc.c 		    test_bit(OP_OPEN_DOWNGRADE, sp->allow.u.longs) &&
sp               8063 fs/nfs/nfs4proc.c 		    test_bit(OP_DELEGRETURN, sp->allow.u.longs) &&
sp               8064 fs/nfs/nfs4proc.c 		    test_bit(OP_LOCKU, sp->allow.u.longs)) {
sp               8069 fs/nfs/nfs4proc.c 		if (test_bit(OP_LAYOUTRETURN, sp->allow.u.longs)) {
sp               8074 fs/nfs/nfs4proc.c 		if (test_bit(OP_SECINFO, sp->allow.u.longs) &&
sp               8075 fs/nfs/nfs4proc.c 		    test_bit(OP_SECINFO_NO_NAME, sp->allow.u.longs)) {
sp               8080 fs/nfs/nfs4proc.c 		if (test_bit(OP_TEST_STATEID, sp->allow.u.longs) &&
sp               8081 fs/nfs/nfs4proc.c 		    test_bit(OP_FREE_STATEID, sp->allow.u.longs)) {
sp               8086 fs/nfs/nfs4proc.c 		if (test_bit(OP_WRITE, sp->allow.u.longs)) {
sp               8091 fs/nfs/nfs4proc.c 		if (test_bit(OP_COMMIT, sp->allow.u.longs)) {
sp                207 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp;
sp                213 fs/nfs/nfs4state.c 		sp = rb_entry(pos, struct nfs4_state_owner, so_server_node);
sp                214 fs/nfs/nfs4state.c 		if (list_empty(&sp->so_states))
sp                216 fs/nfs/nfs4state.c 		cred = get_cred(sp->so_cred);
sp                405 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp;
sp                410 fs/nfs/nfs4state.c 		sp = rb_entry(parent, struct nfs4_state_owner, so_server_node);
sp                411 fs/nfs/nfs4state.c 		cmp = cred_fscmp(cred, sp->so_cred);
sp                418 fs/nfs/nfs4state.c 			if (!list_empty(&sp->so_lru))
sp                419 fs/nfs/nfs4state.c 				list_del_init(&sp->so_lru);
sp                420 fs/nfs/nfs4state.c 			atomic_inc(&sp->so_count);
sp                421 fs/nfs/nfs4state.c 			return sp;
sp                433 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp;
sp                438 fs/nfs/nfs4state.c 		sp = rb_entry(parent, struct nfs4_state_owner, so_server_node);
sp                439 fs/nfs/nfs4state.c 		cmp = cred_fscmp(new->so_cred, sp->so_cred);
sp                446 fs/nfs/nfs4state.c 			if (!list_empty(&sp->so_lru))
sp                447 fs/nfs/nfs4state.c 				list_del_init(&sp->so_lru);
sp                448 fs/nfs/nfs4state.c 			atomic_inc(&sp->so_count);
sp                449 fs/nfs/nfs4state.c 			return sp;
sp                458 fs/nfs/nfs4state.c nfs4_remove_state_owner_locked(struct nfs4_state_owner *sp)
sp                460 fs/nfs/nfs4state.c 	struct nfs_server *server = sp->so_server;
sp                462 fs/nfs/nfs4state.c 	if (!RB_EMPTY_NODE(&sp->so_server_node))
sp                463 fs/nfs/nfs4state.c 		rb_erase(&sp->so_server_node, &server->state_owners);
sp                493 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp;
sp                495 fs/nfs/nfs4state.c 	sp = kzalloc(sizeof(*sp), gfp_flags);
sp                496 fs/nfs/nfs4state.c 	if (!sp)
sp                498 fs/nfs/nfs4state.c 	sp->so_seqid.owner_id = ida_simple_get(&server->openowner_id, 0, 0,
sp                500 fs/nfs/nfs4state.c 	if (sp->so_seqid.owner_id < 0) {
sp                501 fs/nfs/nfs4state.c 		kfree(sp);
sp                504 fs/nfs/nfs4state.c 	sp->so_server = server;
sp                505 fs/nfs/nfs4state.c 	sp->so_cred = get_cred(cred);
sp                506 fs/nfs/nfs4state.c 	spin_lock_init(&sp->so_lock);
sp                507 fs/nfs/nfs4state.c 	INIT_LIST_HEAD(&sp->so_states);
sp                508 fs/nfs/nfs4state.c 	nfs4_init_seqid_counter(&sp->so_seqid);
sp                509 fs/nfs/nfs4state.c 	atomic_set(&sp->so_count, 1);
sp                510 fs/nfs/nfs4state.c 	INIT_LIST_HEAD(&sp->so_lru);
sp                511 fs/nfs/nfs4state.c 	seqcount_init(&sp->so_reclaim_seqcount);
sp                512 fs/nfs/nfs4state.c 	mutex_init(&sp->so_delegreturn_mutex);
sp                513 fs/nfs/nfs4state.c 	return sp;
sp                517 fs/nfs/nfs4state.c nfs4_reset_state_owner(struct nfs4_state_owner *sp)
sp                528 fs/nfs/nfs4state.c 	sp->so_seqid.create_time = ktime_get();
sp                531 fs/nfs/nfs4state.c static void nfs4_free_state_owner(struct nfs4_state_owner *sp)
sp                533 fs/nfs/nfs4state.c 	nfs4_destroy_seqid_counter(&sp->so_seqid);
sp                534 fs/nfs/nfs4state.c 	put_cred(sp->so_cred);
sp                535 fs/nfs/nfs4state.c 	ida_simple_remove(&sp->so_server->openowner_id, sp->so_seqid.owner_id);
sp                536 fs/nfs/nfs4state.c 	kfree(sp);
sp                542 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp, *tmp;
sp                549 fs/nfs/nfs4state.c 	list_for_each_entry_safe(sp, tmp, &server->state_owners_lru, so_lru) {
sp                551 fs/nfs/nfs4state.c 		if (time_in_range(sp->so_expires, time_min, time_max))
sp                553 fs/nfs/nfs4state.c 		list_move(&sp->so_lru, &doomed);
sp                554 fs/nfs/nfs4state.c 		nfs4_remove_state_owner_locked(sp);
sp                558 fs/nfs/nfs4state.c 	list_for_each_entry_safe(sp, tmp, &doomed, so_lru) {
sp                559 fs/nfs/nfs4state.c 		list_del(&sp->so_lru);
sp                560 fs/nfs/nfs4state.c 		nfs4_free_state_owner(sp);
sp                577 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp, *new;
sp                580 fs/nfs/nfs4state.c 	sp = nfs4_find_state_owner_locked(server, cred);
sp                582 fs/nfs/nfs4state.c 	if (sp != NULL)
sp                588 fs/nfs/nfs4state.c 	sp = nfs4_insert_state_owner_locked(new);
sp                590 fs/nfs/nfs4state.c 	if (sp != new)
sp                594 fs/nfs/nfs4state.c 	return sp;
sp                609 fs/nfs/nfs4state.c void nfs4_put_state_owner(struct nfs4_state_owner *sp)
sp                611 fs/nfs/nfs4state.c 	struct nfs_server *server = sp->so_server;
sp                614 fs/nfs/nfs4state.c 	if (!atomic_dec_and_lock(&sp->so_count, &clp->cl_lock))
sp                617 fs/nfs/nfs4state.c 	sp->so_expires = jiffies;
sp                618 fs/nfs/nfs4state.c 	list_add_tail(&sp->so_lru, &server->state_owners_lru);
sp                636 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp, *tmp;
sp                639 fs/nfs/nfs4state.c 	list_for_each_entry_safe(sp, tmp, &server->state_owners_lru, so_lru) {
sp                640 fs/nfs/nfs4state.c 		list_move(&sp->so_lru, head);
sp                641 fs/nfs/nfs4state.c 		nfs4_remove_state_owner_locked(sp);
sp                655 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp, *tmp;
sp                657 fs/nfs/nfs4state.c 	list_for_each_entry_safe(sp, tmp, head, so_lru) {
sp                658 fs/nfs/nfs4state.c 		list_del(&sp->so_lru);
sp                659 fs/nfs/nfs4state.c 		nfs4_free_state_owner(sp);
sp               1145 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp;
sp               1150 fs/nfs/nfs4state.c 	sp = container_of(seqid->sequence, struct nfs4_state_owner, so_seqid);
sp               1152 fs/nfs/nfs4state.c 		nfs4_reset_state_owner(sp);
sp               1153 fs/nfs/nfs4state.c 	if (!nfs4_has_session(sp->so_server->nfs_client))
sp               1553 fs/nfs/nfs4state.c static void nfs42_complete_copies(struct nfs4_state_owner *sp, struct nfs4_state *state)
sp               1560 fs/nfs/nfs4state.c 	spin_lock(&sp->so_server->nfs_client->cl_lock);
sp               1561 fs/nfs/nfs4state.c 	list_for_each_entry(copy, &sp->so_server->ss_copies, copies) {
sp               1568 fs/nfs/nfs4state.c 	spin_unlock(&sp->so_server->nfs_client->cl_lock);
sp               1571 fs/nfs/nfs4state.c static inline void nfs42_complete_copies(struct nfs4_state_owner *sp,
sp               1577 fs/nfs/nfs4state.c static int __nfs4_reclaim_open_state(struct nfs4_state_owner *sp, struct nfs4_state *state,
sp               1583 fs/nfs/nfs4state.c 	status = ops->recover_open(sp, state);
sp               1600 fs/nfs/nfs4state.c 	nfs42_complete_copies(sp, state);
sp               1605 fs/nfs/nfs4state.c static int nfs4_reclaim_open_state(struct nfs4_state_owner *sp, const struct nfs4_state_recovery_ops *ops)
sp               1619 fs/nfs/nfs4state.c 	spin_lock(&sp->so_lock);
sp               1620 fs/nfs/nfs4state.c 	raw_write_seqcount_begin(&sp->so_reclaim_seqcount);
sp               1622 fs/nfs/nfs4state.c 	list_for_each_entry(state, &sp->so_states, open_states) {
sp               1630 fs/nfs/nfs4state.c 		spin_unlock(&sp->so_lock);
sp               1631 fs/nfs/nfs4state.c 		status = __nfs4_reclaim_open_state(sp, state, ops);
sp               1663 fs/nfs/nfs4state.c 			nfs4_state_mark_reclaim_nograce(sp->so_server->nfs_client, state);
sp               1667 fs/nfs/nfs4state.c 			nfs4_state_mark_reclaim_nograce(sp->so_server->nfs_client, state);
sp               1678 fs/nfs/nfs4state.c 		spin_lock(&sp->so_lock);
sp               1681 fs/nfs/nfs4state.c 	raw_write_seqcount_end(&sp->so_reclaim_seqcount);
sp               1682 fs/nfs/nfs4state.c 	spin_unlock(&sp->so_lock);
sp               1686 fs/nfs/nfs4state.c 	spin_lock(&sp->so_lock);
sp               1687 fs/nfs/nfs4state.c 	raw_write_seqcount_end(&sp->so_reclaim_seqcount);
sp               1688 fs/nfs/nfs4state.c 	spin_unlock(&sp->so_lock);
sp               1712 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp;
sp               1720 fs/nfs/nfs4state.c 		sp = rb_entry(pos, struct nfs4_state_owner, so_server_node);
sp               1721 fs/nfs/nfs4state.c 		sp->so_seqid.flags = 0;
sp               1722 fs/nfs/nfs4state.c 		spin_lock(&sp->so_lock);
sp               1723 fs/nfs/nfs4state.c 		list_for_each_entry(state, &sp->so_states, open_states) {
sp               1727 fs/nfs/nfs4state.c 		spin_unlock(&sp->so_lock);
sp               1763 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp;
sp               1771 fs/nfs/nfs4state.c 		sp = rb_entry(pos, struct nfs4_state_owner, so_server_node);
sp               1772 fs/nfs/nfs4state.c 		spin_lock(&sp->so_lock);
sp               1773 fs/nfs/nfs4state.c 		list_for_each_entry(state, &sp->so_states, open_states) {
sp               1779 fs/nfs/nfs4state.c 		spin_unlock(&sp->so_lock);
sp               1865 fs/nfs/nfs4state.c 	struct nfs4_state_owner *sp;
sp               1879 fs/nfs/nfs4state.c 			sp = rb_entry(pos,
sp               1882 fs/nfs/nfs4state.c 							&sp->so_flags))
sp               1884 fs/nfs/nfs4state.c 			if (!atomic_inc_not_zero(&sp->so_count))
sp               1889 fs/nfs/nfs4state.c 			status = nfs4_reclaim_open_state(sp, ops);
sp               1891 fs/nfs/nfs4state.c 				set_bit(ops->owner_flag_bit, &sp->so_flags);
sp               1892 fs/nfs/nfs4state.c 				nfs4_put_state_owner(sp);
sp               1897 fs/nfs/nfs4state.c 			nfs4_put_state_owner(sp);
sp                643 fs/proc/base.c 			   info.data.nr, info.sp, info.data.instruction_pointer);
sp                649 fs/proc/base.c 		       info.sp, info.data.instruction_pointer);
sp               2971 fs/unicode/mkutf8data.c 	const char	*sp;
sp               3001 fs/unicode/mkutf8data.c 	u8c->sp = NULL;
sp               3143 fs/unicode/mkutf8data.c 			u8c->sp = u8c->p;
sp               3159 fs/unicode/mkutf8data.c 			u8c->p = u8c->sp;
sp               3165 fs/unicode/mkutf8data.c 			u8c->sp = NULL;
sp                594 fs/unicode/utf8-norm.c 	u8c->sp = NULL;
sp                740 fs/unicode/utf8-norm.c 			u8c->sp = u8c->p;
sp                756 fs/unicode/utf8-norm.c 			u8c->p = u8c->sp;
sp                762 fs/unicode/utf8-norm.c 			u8c->sp = NULL;
sp                 82 fs/unicode/utf8n.h 	const char	*sp;
sp               1307 fs/xfs/libxfs/xfs_format.h 		} sp;
sp                 62 fs/xfs/libxfs/xfs_ialloc.c 		rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask);
sp                 63 fs/xfs/libxfs/xfs_ialloc.c 		rec.inobt.ir_u.sp.ir_count = irec->ir_count;
sp                 64 fs/xfs/libxfs/xfs_ialloc.c 		rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount;
sp                 82 fs/xfs/libxfs/xfs_ialloc.c 		irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask);
sp                 83 fs/xfs/libxfs/xfs_ialloc.c 		irec->ir_count = rec->inobt.ir_u.sp.ir_count;
sp                 84 fs/xfs/libxfs/xfs_ialloc.c 		irec->ir_freecount = rec->inobt.ir_u.sp.ir_freecount;
sp                195 fs/xfs/libxfs/xfs_ialloc_btree.c 		rec->inobt.ir_u.sp.ir_holemask =
sp                197 fs/xfs/libxfs/xfs_ialloc_btree.c 		rec->inobt.ir_u.sp.ir_count = cur->bc_rec.i.ir_count;
sp                198 fs/xfs/libxfs/xfs_ialloc_btree.c 		rec->inobt.ir_u.sp.ir_freecount = cur->bc_rec.i.ir_freecount;
sp                458 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_suminfo_t	*sp;		/* pointer to returned data */
sp                495 fs/xfs/libxfs/xfs_rtbitmap.c 	sp = XFS_SUMPTR(mp, bp, so);
sp                497 fs/xfs/libxfs/xfs_rtbitmap.c 		uint first = (uint)((char *)sp - (char *)bp->b_addr);
sp                499 fs/xfs/libxfs/xfs_rtbitmap.c 		*sp += delta;
sp                501 fs/xfs/libxfs/xfs_rtbitmap.c 			if (*sp == 0 && log == mp->m_rsum_cache[bbno])
sp                503 fs/xfs/libxfs/xfs_rtbitmap.c 			if (*sp != 0 && log < mp->m_rsum_cache[bbno])
sp                506 fs/xfs/libxfs/xfs_rtbitmap.c 		xfs_trans_log_buf(tp, bp, first, first + sizeof(*sp) - 1);
sp                509 fs/xfs/libxfs/xfs_rtbitmap.c 		*sum = *sp;
sp                106 fs/xfs/xfs_linux.h #define current_set_flags_nested(sp, f)		\
sp                107 fs/xfs/xfs_linux.h 		(*(sp) = current->flags, current->flags |= (f))
sp                108 fs/xfs/xfs_linux.h #define current_clear_flags_nested(sp, f)	\
sp                109 fs/xfs/xfs_linux.h 		(*(sp) = current->flags, current->flags &= ~(f))
sp                110 fs/xfs/xfs_linux.h #define current_restore_flags_nested(sp, f)	\
sp                111 fs/xfs/xfs_linux.h 		(current->flags = ((current->flags & ~(f)) | (*(sp) & (f))))
sp                111 include/linux/ceph/decode.h 	void *sp = *p;
sp                114 include/linux/ceph/decode.h 	ceph_decode_32_safe(&sp, end, len, bad);
sp                115 include/linux/ceph/decode.h 	if (!ceph_has_room(&sp, end, len))
sp                123 include/linux/ceph/decode.h 		memcpy(buf, sp, len);
sp                493 include/linux/compat.h #define compat_save_altstack_ex(uss, sp) do { \
sp                139 include/linux/host1x.h u32 host1x_syncpt_id(struct host1x_syncpt *sp);
sp                140 include/linux/host1x.h u32 host1x_syncpt_read_min(struct host1x_syncpt *sp);
sp                141 include/linux/host1x.h u32 host1x_syncpt_read_max(struct host1x_syncpt *sp);
sp                142 include/linux/host1x.h u32 host1x_syncpt_read(struct host1x_syncpt *sp);
sp                143 include/linux/host1x.h int host1x_syncpt_incr(struct host1x_syncpt *sp);
sp                144 include/linux/host1x.h u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs);
sp                145 include/linux/host1x.h int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout,
sp                149 include/linux/host1x.h void host1x_syncpt_free(struct host1x_syncpt *sp);
sp                151 include/linux/host1x.h struct host1x_syncpt_base *host1x_syncpt_get_base(struct host1x_syncpt *sp);
sp                 83 include/linux/mailbox_controller.h 				      const struct of_phandle_args *sp);
sp                131 include/linux/mempolicy.h void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol);
sp                136 include/linux/mempolicy.h struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp,
sp                231 include/linux/mempolicy.h static inline void mpol_shared_policy_init(struct shared_policy *sp,
sp                241 include/linux/mempolicy.h mpol_shared_policy_lookup(struct shared_policy *sp, unsigned long idx)
sp                 54 include/linux/mfd/rave-sp.h int rave_sp_exec(struct rave_sp *sp,
sp                147 include/linux/pe.h 	uint16_t sp;		/* initial %sp register */
sp                 16 include/linux/ptrace.h 	__u64			sp;
sp                 33 include/linux/sched/debug.h extern void show_stack(struct task_struct *task, unsigned long *sp);
sp                507 include/linux/sched/signal.h static inline int on_sig_stack(unsigned long sp)
sp                522 include/linux/sched/signal.h 	return sp >= current->sas_ss_sp &&
sp                523 include/linux/sched/signal.h 		sp - current->sas_ss_sp < current->sas_ss_size;
sp                525 include/linux/sched/signal.h 	return sp > current->sas_ss_sp &&
sp                526 include/linux/sched/signal.h 		sp - current->sas_ss_sp <= current->sas_ss_size;
sp                530 include/linux/sched/signal.h static inline int sas_ss_flags(unsigned long sp)
sp                535 include/linux/sched/signal.h 	return on_sig_stack(sp) ? SS_ONSTACK : 0;
sp                545 include/linux/sched/signal.h static inline unsigned long sigsp(unsigned long sp, struct ksignal *ksig)
sp                547 include/linux/sched/signal.h 	if (unlikely((ksig->ka.sa.sa_flags & SA_ONSTACK)) && ! sas_ss_flags(sp))
sp                553 include/linux/sched/signal.h 	return sp;
sp                 71 include/linux/sched/task.h 		unsigned long clone_flags, unsigned long sp, unsigned long arg,
sp                 74 include/linux/sched/task.h 	return copy_thread(clone_flags, sp, arg, p);
sp                447 include/linux/signal.h #define save_altstack_ex(uss, sp) do { \
sp                126 include/linux/sunrpc/xdr.h __be32 *xdr_decode_string_inplace(__be32 *p, char **sp, unsigned int *lenp,
sp                520 include/linux/usb/composite.h 		struct usb_gadget_strings **sp, unsigned n_strings);
sp                574 include/net/sctp/sctp.h static inline __u32 sctp_mtu_payload(const struct sctp_sock *sp,
sp                579 include/net/sctp/sctp.h 	if (sp)
sp                580 include/net/sctp/sctp.h 		overhead += sp->pf->af->net_header_len;
sp                608 include/net/sctp/sctp.h static inline __u32 sctp_min_frag_point(struct sctp_sock *sp, __u16 datasize)
sp                610 include/net/sctp/sctp.h 	return sctp_mtu_payload(sp, SCTP_DEFAULT_MINSEGMENT, datasize);
sp                242 include/net/sctp/structs.h static inline struct sock *sctp_opt2sk(const struct sctp_sock *sp)
sp                244 include/net/sctp/structs.h        return (struct sock *)sp;
sp               1183 include/net/sctp/structs.h int sctp_bind_addrs_check(struct sctp_sock *sp,
sp                 47 include/net/transp_v6.h void __ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp,
sp                 50 include/net/transp_v6.h ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp, __u16 srcp,
sp                 53 include/net/transp_v6.h 	__ip6_dgram_sock_seq_show(seq, sp, srcp, destp, sk_rmem_alloc_get(sp),
sp               1825 include/net/xfrm.h 	struct sec_path *sp = skb_sec_path(skb);
sp               1827 include/net/xfrm.h 	return sp->xvec[sp->len - 1];
sp               1834 include/net/xfrm.h 	struct sec_path *sp = skb_sec_path(skb);
sp               1836 include/net/xfrm.h 	if (!sp || !sp->olen || sp->len != sp->olen)
sp               1839 include/net/xfrm.h 	return &sp->ovec[sp->olen - 1];
sp                556 include/scsi/fc_encode.h 	struct fc_els_csp *sp;
sp                565 include/scsi/fc_encode.h 	sp = &flogi->fl_csp;
sp                566 include/scsi/fc_encode.h 	sp->sp_hi_ver = 0x20;
sp                567 include/scsi/fc_encode.h 	sp->sp_lo_ver = 0x20;
sp                568 include/scsi/fc_encode.h 	sp->sp_bb_cred = htons(10);	/* this gets set by gateway */
sp                569 include/scsi/fc_encode.h 	sp->sp_bb_data = htons((u16) lport->mfs);
sp                573 include/scsi/fc_encode.h 		sp->sp_features = htons(FC_SP_FT_NPIV);
sp                581 include/scsi/fc_encode.h 	struct fc_els_csp *sp;
sp                590 include/scsi/fc_encode.h 	sp = &fdisc->fl_csp;
sp                591 include/scsi/fc_encode.h 	sp->sp_hi_ver = 0x20;
sp                592 include/scsi/fc_encode.h 	sp->sp_lo_ver = 0x20;
sp                593 include/scsi/fc_encode.h 	sp->sp_bb_cred = htons(10);	/* this gets set by gateway */
sp                594 include/scsi/fc_encode.h 	sp->sp_bb_data = htons((u16) lport->mfs);
sp                454 include/scsi/libfc.h #define	fc_seq_exch(sp) container_of(sp, struct fc_exch, seq)
sp                980 include/scsi/libfc.h struct fc_seq *fc_seq_start_next(struct fc_seq *sp);
sp                981 include/scsi/libfc.h void fc_seq_set_resp(struct fc_seq *sp,
sp                985 include/scsi/libfc.h void fc_seq_release(struct fc_seq *sp);
sp                997 include/scsi/libfc.h int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp);
sp                999 include/scsi/libfc.h void fc_exch_done(struct fc_seq *sp);
sp                398 include/scsi/scsi_device.h extern int scsi_mode_select(struct scsi_device *sdev, int pf, int sp,
sp                 44 include/sound/emux_synth.h 	int (*sample_new)(struct snd_emux *emu, struct snd_sf_sample *sp,
sp                 47 include/sound/emux_synth.h 	int (*sample_free)(struct snd_emux *emu, struct snd_sf_sample *sp,
sp                 59 include/sound/soundfont.h 	int (*sample_new)(void *private_data, struct snd_sf_sample *sp,
sp                 62 include/sound/soundfont.h 	int (*sample_free)(void *private_data, struct snd_sf_sample *sp,
sp                672 include/trace/events/rxrpc.h 	    TP_PROTO(struct rxrpc_skb_priv *sp),
sp                674 include/trace/events/rxrpc.h 	    TP_ARGS(sp),
sp                681 include/trace/events/rxrpc.h 		    memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
sp               1192 include/trace/events/rxrpc.h 	    TP_PROTO(struct rxrpc_skb_priv *sp),
sp               1194 include/trace/events/rxrpc.h 	    TP_ARGS(sp),
sp               1201 include/trace/events/rxrpc.h 		    memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
sp                 13 include/trace/events/sctp.h 	TP_PROTO(struct sctp_transport *sp,
sp                 16 include/trace/events/sctp.h 	TP_ARGS(sp, asoc),
sp                 32 include/trace/events/sctp.h 		__entry->primary = (sp == asoc->peer.primary_path);
sp                 33 include/trace/events/sctp.h 		memcpy(__entry->ipaddr, &sp->ipaddr, sizeof(union sctp_addr));
sp                 34 include/trace/events/sctp.h 		__entry->state = sp->state;
sp                 35 include/trace/events/sctp.h 		__entry->cwnd = sp->cwnd;
sp                 36 include/trace/events/sctp.h 		__entry->ssthresh = sp->ssthresh;
sp                 37 include/trace/events/sctp.h 		__entry->flight_size = sp->flight_size;
sp                 38 include/trace/events/sctp.h 		__entry->partial_bytes_acked = sp->partial_bytes_acked;
sp                 39 include/trace/events/sctp.h 		__entry->pathmtu = sp->pathmtu;
sp                 80 include/trace/events/sctp.h 			struct sctp_transport *sp;
sp                 82 include/trace/events/sctp.h 			list_for_each_entry(sp, &asoc->peer.transport_addr_list,
sp                 84 include/trace/events/sctp.h 				trace_sctp_probe_path(sp, asoc);
sp                585 include/video/pm3fb.h 	#define PM3FBDestReadMode_StripePitch(sp)	(((sp) & 0x7) << 2)
sp                618 include/video/pm3fb.h 	#define PM3FBSourceReadMode_StripePitch(sp)	(((sp) & 0x7) << 2)
sp               1581 kernel/cpu.c   	struct cpuhp_step *sp;
sp               1600 kernel/cpu.c   	sp = cpuhp_get_step(state);
sp               1601 kernel/cpu.c   	if (name && sp->name)
sp               1604 kernel/cpu.c   	sp->startup.single = startup;
sp               1605 kernel/cpu.c   	sp->teardown.single = teardown;
sp               1606 kernel/cpu.c   	sp->name = name;
sp               1607 kernel/cpu.c   	sp->multi_instance = multi_instance;
sp               1608 kernel/cpu.c   	INIT_HLIST_HEAD(&sp->list);
sp               1624 kernel/cpu.c   	struct cpuhp_step *sp = cpuhp_get_step(state);
sp               1631 kernel/cpu.c   	if ((bringup && !sp->startup.single) ||
sp               1632 kernel/cpu.c   	    (!bringup && !sp->teardown.single))
sp               1678 kernel/cpu.c   	struct cpuhp_step *sp;
sp               1684 kernel/cpu.c   	sp = cpuhp_get_step(state);
sp               1685 kernel/cpu.c   	if (sp->multi_instance == false)
sp               1690 kernel/cpu.c   	if (!invoke || !sp->startup.multi)
sp               1706 kernel/cpu.c   			if (sp->teardown.multi)
sp               1713 kernel/cpu.c   	hlist_add_head(node, &sp->list);
sp               1826 kernel/cpu.c   	struct cpuhp_step *sp = cpuhp_get_step(state);
sp               1831 kernel/cpu.c   	if (!sp->multi_instance)
sp               1873 kernel/cpu.c   	struct cpuhp_step *sp = cpuhp_get_step(state);
sp               1881 kernel/cpu.c   	if (sp->multi_instance) {
sp               1882 kernel/cpu.c   		WARN(!hlist_empty(&sp->list),
sp               2004 kernel/cpu.c   	struct cpuhp_step *sp;
sp               2024 kernel/cpu.c   	sp = cpuhp_get_step(target);
sp               2025 kernel/cpu.c   	ret = !sp->name || sp->cant_stop ? -EINVAL : 0;
sp               2054 kernel/cpu.c   	struct cpuhp_step *sp;
sp               2074 kernel/cpu.c   	sp = cpuhp_get_step(fail);
sp               2075 kernel/cpu.c   	if (!sp->startup.single && !sp->teardown.single)
sp               2117 kernel/cpu.c   		struct cpuhp_step *sp = cpuhp_get_step(i);
sp               2119 kernel/cpu.c   		if (sp->name) {
sp               2120 kernel/cpu.c   			cur = sprintf(buf, "%3d: %s\n", i, sp->name);
sp                 32 kernel/debug/kdb/kdb_bt.c 		show_stack(p, &kdb_current_regs->sp);
sp               6156 kernel/events/core.c 		unsigned long sp;
sp               6176 kernel/events/core.c 		sp = perf_user_stack_pointer(regs);
sp               6179 kernel/events/core.c 		rem = __output_copy_user(handle, (void *) sp, dump_size);
sp                 48 kernel/rcu/rcu.h static inline void rcu_seq_set_state(unsigned long *sp, int newstate)
sp                 51 kernel/rcu/rcu.h 	WRITE_ONCE(*sp, (*sp & ~RCU_SEQ_STATE_MASK) + newstate);
sp                 55 kernel/rcu/rcu.h static inline void rcu_seq_start(unsigned long *sp)
sp                 57 kernel/rcu/rcu.h 	WRITE_ONCE(*sp, *sp + 1);
sp                 59 kernel/rcu/rcu.h 	WARN_ON_ONCE(rcu_seq_state(*sp) != 1);
sp                 63 kernel/rcu/rcu.h static inline unsigned long rcu_seq_endval(unsigned long *sp)
sp                 65 kernel/rcu/rcu.h 	return (*sp | RCU_SEQ_STATE_MASK) + 1;
sp                 69 kernel/rcu/rcu.h static inline void rcu_seq_end(unsigned long *sp)
sp                 72 kernel/rcu/rcu.h 	WARN_ON_ONCE(!rcu_seq_state(*sp));
sp                 73 kernel/rcu/rcu.h 	WRITE_ONCE(*sp, rcu_seq_endval(sp));
sp                 87 kernel/rcu/rcu.h static inline unsigned long rcu_seq_snap(unsigned long *sp)
sp                 91 kernel/rcu/rcu.h 	s = (READ_ONCE(*sp) + 2 * RCU_SEQ_STATE_MASK + 1) & ~RCU_SEQ_STATE_MASK;
sp                 97 kernel/rcu/rcu.h static inline unsigned long rcu_seq_current(unsigned long *sp)
sp                 99 kernel/rcu/rcu.h 	return READ_ONCE(*sp);
sp                106 kernel/rcu/rcu.h static inline bool rcu_seq_started(unsigned long *sp, unsigned long s)
sp                108 kernel/rcu/rcu.h 	return ULONG_CMP_LT((s - 1) & ~RCU_SEQ_STATE_MASK, READ_ONCE(*sp));
sp                115 kernel/rcu/rcu.h static inline bool rcu_seq_done(unsigned long *sp, unsigned long s)
sp                117 kernel/rcu/rcu.h 	return ULONG_CMP_GE(READ_ONCE(*sp), s);
sp                333 kernel/rcu/rcu.h #define srcu_for_each_node_breadth_first(sp, rnp) \
sp                334 kernel/rcu/rcu.h 	for ((rnp) = &(sp)->node[0]; \
sp                335 kernel/rcu/rcu.h 	     (rnp) < &(sp)->node[rcu_num_nodes]; (rnp)++)
sp                491 kernel/rcu/rcu.h 					   struct srcu_struct *sp, int *flags,
sp                497 kernel/rcu/rcu.h 	*gp_seq = sp->srcu_idx;
sp                503 kernel/rcu/rcu.h 			     struct srcu_struct *sp, int *flags,
sp                512 kernel/rcu/rcu.h srcu_batches_completed(struct srcu_struct *sp) { return 0; }
sp                520 kernel/rcu/rcu.h unsigned long srcu_batches_completed(struct srcu_struct *sp);
sp                363 kernel/rcu/rcuperf.c 	struct sched_param sp;
sp                372 kernel/rcu/rcuperf.c 	sp.sched_priority = 1;
sp                373 kernel/rcu/rcuperf.c 	sched_setscheduler_nocheck(current, SCHED_FIFO, &sp);
sp                434 kernel/rcu/rcuperf.c 			sp.sched_priority = 0;
sp                436 kernel/rcu/rcuperf.c 						   SCHED_NORMAL, &sp);
sp                803 kernel/rcu/rcutorture.c 	struct sched_param sp;
sp                808 kernel/rcu/rcutorture.c 	sp.sched_priority = 1;
sp                809 kernel/rcu/rcutorture.c 	if (sched_setscheduler(current, SCHED_FIFO, &sp) < 0) {
sp               3279 kernel/rcu/tree.c 	struct sched_param sp;
sp               3302 kernel/rcu/tree.c 		sp.sched_priority = kthread_prio;
sp               3303 kernel/rcu/tree.c 		sched_setscheduler_nocheck(t, SCHED_FIFO, &sp);
sp                947 kernel/rcu/tree_plugin.h 	struct sched_param sp;
sp                949 kernel/rcu/tree_plugin.h 	sp.sched_priority = kthread_prio;
sp                950 kernel/rcu/tree_plugin.h 	sched_setscheduler_nocheck(current, SCHED_FIFO, &sp);
sp               1118 kernel/rcu/tree_plugin.h 	struct sched_param sp;
sp               1140 kernel/rcu/tree_plugin.h 	sp.sched_priority = kthread_prio;
sp               1141 kernel/rcu/tree_plugin.h 	sched_setscheduler_nocheck(t, SCHED_FIFO, &sp);
sp               4004 kernel/signal.c do_sigaltstack (const stack_t *ss, stack_t *oss, unsigned long sp,
sp               4013 kernel/signal.c 		oss->ss_flags = sas_ss_flags(sp) |
sp               4023 kernel/signal.c 		if (unlikely(on_sig_stack(sp)))
sp               4071 kernel/signal.c int __save_altstack(stack_t __user *uss, unsigned long sp)
sp               4128 kernel/signal.c int __compat_save_altstack(compat_stack_t __user *uss, unsigned long sp)
sp                119 kernel/stackleak.c 	unsigned long sp = (unsigned long)&sp;
sp                128 kernel/stackleak.c 	if (sp < current->lowest_stack &&
sp                129 kernel/stackleak.c 	    sp >= (unsigned long)task_stack_page(current) +
sp                131 kernel/stackleak.c 		current->lowest_stack = sp;
sp                 27 lib/livepatch/test_klp_shadow_vars.c 	struct shadow_ptr *sp, *tmp_sp;
sp                 29 lib/livepatch/test_klp_shadow_vars.c 	list_for_each_entry_safe(sp, tmp_sp, &ptr_list, list) {
sp                 30 lib/livepatch/test_klp_shadow_vars.c 		list_del(&sp->list);
sp                 31 lib/livepatch/test_klp_shadow_vars.c 		kfree(sp);
sp                 37 lib/livepatch/test_klp_shadow_vars.c 	struct shadow_ptr *sp;
sp                 40 lib/livepatch/test_klp_shadow_vars.c 	list_for_each_entry(sp, &ptr_list, list) {
sp                 41 lib/livepatch/test_klp_shadow_vars.c 		if (sp->ptr == ptr)
sp                 42 lib/livepatch/test_klp_shadow_vars.c 			return sp->id;
sp                 45 lib/livepatch/test_klp_shadow_vars.c 	sp = kmalloc(sizeof(*sp), GFP_ATOMIC);
sp                 46 lib/livepatch/test_klp_shadow_vars.c 	if (!sp)
sp                 48 lib/livepatch/test_klp_shadow_vars.c 	sp->ptr = ptr;
sp                 49 lib/livepatch/test_klp_shadow_vars.c 	sp->id = count++;
sp                 51 lib/livepatch/test_klp_shadow_vars.c 	list_add(&sp->list, &ptr_list);
sp                 53 lib/livepatch/test_klp_shadow_vars.c 	return sp->id;
sp                 25 lib/syscall.c  	info->sp = user_stack_pointer(regs);
sp                161 lib/test_stackinit.c static noinline __init int leaf_ ## name(unsigned long sp,	\
sp                174 lib/test_stackinit.c 	memset(buf, (char)(sp & 0xff), sizeof(buf));		\
sp                180 lib/test_stackinit.c 		       (char)((sp & 0xff) | forced_mask),	\
sp                317 lib/test_stackinit.c static noinline __init int leaf_switch_1_none(unsigned long sp, bool fill,
sp                323 lib/test_stackinit.c static noinline __init int leaf_switch_2_none(unsigned long sp, bool fill,
sp                172 mm/kasan/common.c static void __kasan_unpoison_stack(struct task_struct *task, const void *sp)
sp                175 mm/kasan/common.c 	size_t size = sp - base;
sp                206 mm/kasan/common.c 	const void *sp = __builtin_frame_address(0);
sp                207 mm/kasan/common.c 	size_t size = watermark - sp;
sp                209 mm/kasan/common.c 	if (WARN_ON(sp > watermark))
sp                211 mm/kasan/common.c 	kasan_unpoison_shadow(sp, size);
sp               2288 mm/mempolicy.c sp_lookup(struct shared_policy *sp, unsigned long start, unsigned long end)
sp               2290 mm/mempolicy.c 	struct rb_node *n = sp->root.rb_node;
sp               2321 mm/mempolicy.c static void sp_insert(struct shared_policy *sp, struct sp_node *new)
sp               2323 mm/mempolicy.c 	struct rb_node **p = &sp->root.rb_node;
sp               2338 mm/mempolicy.c 	rb_insert_color(&new->nd, &sp->root);
sp               2345 mm/mempolicy.c mpol_shared_policy_lookup(struct shared_policy *sp, unsigned long idx)
sp               2350 mm/mempolicy.c 	if (!sp->root.rb_node)
sp               2352 mm/mempolicy.c 	read_lock(&sp->lock);
sp               2353 mm/mempolicy.c 	sn = sp_lookup(sp, idx, idx+1);
sp               2358 mm/mempolicy.c 	read_unlock(&sp->lock);
sp               2468 mm/mempolicy.c static void sp_delete(struct shared_policy *sp, struct sp_node *n)
sp               2471 mm/mempolicy.c 	rb_erase(&n->nd, &sp->root);
sp               2505 mm/mempolicy.c static int shared_policy_replace(struct shared_policy *sp, unsigned long start,
sp               2514 mm/mempolicy.c 	write_lock(&sp->lock);
sp               2515 mm/mempolicy.c 	n = sp_lookup(sp, start, end);
sp               2521 mm/mempolicy.c 				sp_delete(sp, n);
sp               2534 mm/mempolicy.c 				sp_insert(sp, n_new);
sp               2546 mm/mempolicy.c 		sp_insert(sp, new);
sp               2547 mm/mempolicy.c 	write_unlock(&sp->lock);
sp               2559 mm/mempolicy.c 	write_unlock(&sp->lock);
sp               2580 mm/mempolicy.c void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol)
sp               2584 mm/mempolicy.c 	sp->root = RB_ROOT;		/* empty tree == default mempolicy */
sp               2585 mm/mempolicy.c 	rwlock_init(&sp->lock);
sp               2608 mm/mempolicy.c 		mpol_set_shared_policy(sp, &pvma, new); /* adds ref */
sp                566 mm/page_alloc.c 	unsigned long sp, start_pfn;
sp                571 mm/page_alloc.c 		sp = zone->spanned_pages;
sp                579 mm/page_alloc.c 			start_pfn, start_pfn + sp);
sp                108 mm/slob.c      static inline int slob_page_free(struct page *sp)
sp                110 mm/slob.c      	return PageSlobFree(sp);
sp                113 mm/slob.c      static void set_slob_page_free(struct page *sp, struct list_head *list)
sp                115 mm/slob.c      	list_add(&sp->slab_list, list);
sp                116 mm/slob.c      	__SetPageSlobFree(sp);
sp                119 mm/slob.c      static inline void clear_slob_page_free(struct page *sp)
sp                121 mm/slob.c      	list_del(&sp->slab_list);
sp                122 mm/slob.c      	__ClearPageSlobFree(sp);
sp                212 mm/slob.c      	struct page *sp = virt_to_page(b);
sp                217 mm/slob.c      	mod_node_page_state(page_pgdat(sp), NR_SLAB_UNRECLAIMABLE,
sp                219 mm/slob.c      	__free_pages(sp, order);
sp                237 mm/slob.c      static void *slob_page_alloc(struct page *sp, size_t size, int align,
sp                244 mm/slob.c      	for (prev = NULL, cur = sp->freelist; ; prev = cur, cur = slob_next(cur)) {
sp                277 mm/slob.c      					sp->freelist = next;
sp                282 mm/slob.c      					sp->freelist = cur + units;
sp                286 mm/slob.c      			sp->units -= units;
sp                287 mm/slob.c      			if (!sp->units) {
sp                288 mm/slob.c      				clear_slob_page_free(sp);
sp                304 mm/slob.c      	struct page *sp;
sp                319 mm/slob.c      	list_for_each_entry(sp, slob_list, slab_list) {
sp                326 mm/slob.c      		if (node != NUMA_NO_NODE && page_to_nid(sp) != node)
sp                330 mm/slob.c      		if (sp->units < SLOB_UNITS(size))
sp                333 mm/slob.c      		b = slob_page_alloc(sp, size, align, align_offset, &page_removed_from_list);
sp                349 mm/slob.c      			if (!list_is_first(&sp->slab_list, slob_list))
sp                350 mm/slob.c      				list_rotate_to_front(&sp->slab_list, slob_list);
sp                361 mm/slob.c      		sp = virt_to_page(b);
sp                362 mm/slob.c      		__SetPageSlab(sp);
sp                365 mm/slob.c      		sp->units = SLOB_UNITS(PAGE_SIZE);
sp                366 mm/slob.c      		sp->freelist = b;
sp                367 mm/slob.c      		INIT_LIST_HEAD(&sp->slab_list);
sp                369 mm/slob.c      		set_slob_page_free(sp, slob_list);
sp                370 mm/slob.c      		b = slob_page_alloc(sp, size, align, align_offset, &_unused);
sp                384 mm/slob.c      	struct page *sp;
sp                394 mm/slob.c      	sp = virt_to_page(block);
sp                399 mm/slob.c      	if (sp->units + units == SLOB_UNITS(PAGE_SIZE)) {
sp                401 mm/slob.c      		if (slob_page_free(sp))
sp                402 mm/slob.c      			clear_slob_page_free(sp);
sp                404 mm/slob.c      		__ClearPageSlab(sp);
sp                405 mm/slob.c      		page_mapcount_reset(sp);
sp                410 mm/slob.c      	if (!slob_page_free(sp)) {
sp                412 mm/slob.c      		sp->units = units;
sp                413 mm/slob.c      		sp->freelist = b;
sp                423 mm/slob.c      		set_slob_page_free(sp, slob_list);
sp                431 mm/slob.c      	sp->units += units;
sp                433 mm/slob.c      	if (b < (slob_t *)sp->freelist) {
sp                434 mm/slob.c      		if (b + units == sp->freelist) {
sp                435 mm/slob.c      			units += slob_units(sp->freelist);
sp                436 mm/slob.c      			sp->freelist = slob_next(sp->freelist);
sp                438 mm/slob.c      		set_slob(b, units, sp->freelist);
sp                439 mm/slob.c      		sp->freelist = b;
sp                441 mm/slob.c      		prev = sp->freelist;
sp                538 mm/slob.c      	struct page *sp;
sp                546 mm/slob.c      	sp = virt_to_page(block);
sp                547 mm/slob.c      	if (PageSlab(sp)) {
sp                552 mm/slob.c      		unsigned int order = compound_order(sp);
sp                553 mm/slob.c      		mod_node_page_state(page_pgdat(sp), NR_SLAB_UNRECLAIMABLE,
sp                555 mm/slob.c      		__free_pages(sp, order);
sp                564 mm/slob.c      	struct page *sp;
sp                572 mm/slob.c      	sp = virt_to_page(block);
sp                573 mm/slob.c      	if (unlikely(!PageSlab(sp)))
sp                574 mm/slob.c      		return page_size(sp);
sp                124 net/bridge/netfilter/ebt_stp.c 	const struct stp_header *sp;
sp                128 net/bridge/netfilter/ebt_stp.c 	sp = skb_header_pointer(skb, 0, sizeof(_stph), &_stph);
sp                129 net/bridge/netfilter/ebt_stp.c 	if (sp == NULL)
sp                133 net/bridge/netfilter/ebt_stp.c 	if (memcmp(sp, header, sizeof(header)))
sp                137 net/bridge/netfilter/ebt_stp.c 	    NF_INVF(info, EBT_STP_TYPE, info->type != sp->type))
sp                140 net/bridge/netfilter/ebt_stp.c 	if (sp->type == BPDU_TYPE_CONFIG &&
sp                188 net/bridge/netfilter/ebtables.c 	int verdict, sp = 0;
sp                250 net/bridge/netfilter/ebtables.c 			if (WARN(sp == 0, "RETURN on base chain")) {
sp                255 net/bridge/netfilter/ebtables.c 			sp--;
sp                257 net/bridge/netfilter/ebtables.c 			i = cs[sp].n;
sp                258 net/bridge/netfilter/ebtables.c 			chaininfo = cs[sp].chaininfo;
sp                260 net/bridge/netfilter/ebtables.c 			point = cs[sp].e;
sp                274 net/bridge/netfilter/ebtables.c 		cs[sp].n = i + 1;
sp                275 net/bridge/netfilter/ebtables.c 		cs[sp].chaininfo = chaininfo;
sp                276 net/bridge/netfilter/ebtables.c 		cs[sp].e = ebt_next_entry(point);
sp                288 net/bridge/netfilter/ebtables.c 		sp++;
sp               1973 net/core/filter.c 	struct bpf_scratchpad *sp = this_cpu_ptr(&bpf_sp);
sp               1986 net/core/filter.c 		     diff_size > sizeof(sp->diff)))
sp               1990 net/core/filter.c 		sp->diff[j] = ~from[i];
sp               1992 net/core/filter.c 		sp->diff[j] = to[i];
sp               1994 net/core/filter.c 	return csum_partial(sp->diff, diff_size, seed);
sp               4556 net/core/filter.c 	const struct sec_path *sp = skb_sec_path(skb);
sp               4559 net/core/filter.c 	if (!sp || unlikely(index >= sp->len || flags))
sp               4562 net/core/filter.c 	x = sp->xvec[index];
sp               1168 net/core/rtnetlink.c 	struct rtnl_link_stats64 *sp;
sp               1176 net/core/rtnetlink.c 	sp = nla_data(attr);
sp               1177 net/core/rtnetlink.c 	dev_get_stats(dev, sp);
sp               1184 net/core/rtnetlink.c 	copy_rtnl_link_stats(nla_data(attr), sp);
sp               4819 net/core/rtnetlink.c 		struct rtnl_link_stats64 *sp;
sp               4827 net/core/rtnetlink.c 		sp = nla_data(attr);
sp               4828 net/core/rtnetlink.c 		dev_get_stats(dev, sp);
sp               6008 net/core/skbuff.c 		struct sec_path *sp = skb_ext_get_ptr(old, SKB_EXT_SEC_PATH);
sp               6011 net/core/skbuff.c 		for (i = 0; i < sp->len; i++)
sp               6012 net/core/skbuff.c 			xfrm_state_hold(sp->xvec[i]);
sp               6068 net/core/skbuff.c static void skb_ext_put_sp(struct sec_path *sp)
sp               6072 net/core/skbuff.c 	for (i = 0; i < sp->len; i++)
sp               6073 net/core/skbuff.c 		xfrm_state_put(sp->xvec[i]);
sp               6088 net/core/skbuff.c 		struct sec_path *sp = skb_ext_get_ptr(ext, SKB_EXT_SEC_PATH);
sp               6090 net/core/skbuff.c 		skb_ext_put_sp(sp);
sp               6091 net/core/skbuff.c 		sp->len = 0;
sp                256 net/dccp/feat.c 	if (val == NULL || (type == FEAT_SP && val->sp.vec == NULL))
sp                259 net/dccp/feat.c 		for (i = 0; i < val->sp.len; i++)
sp                260 net/dccp/feat.c 			dccp_pr_debug_cat("%s%u", i ? " " : "", val->sp.vec[i]);
sp                270 net/dccp/feat.c 	dccp_feat_val fval = { .sp.vec = list, .sp.len = len };
sp                317 net/dccp/feat.c 		if (fval->sp.vec == NULL) {
sp                326 net/dccp/feat.c 			val = fval->sp.vec[0];
sp                367 net/dccp/feat.c 	fval->sp.len = len;
sp                368 net/dccp/feat.c 	if (fval->sp.len > 0) {
sp                369 net/dccp/feat.c 		fval->sp.vec = kmemdup(val, len, gfp_any());
sp                370 net/dccp/feat.c 		if (fval->sp.vec == NULL) {
sp                371 net/dccp/feat.c 			fval->sp.len = 0;
sp                383 net/dccp/feat.c 		kfree(val->sp.vec);
sp                401 net/dccp/feat.c 						      original->val.sp.vec,
sp                402 net/dccp/feat.c 						      original->val.sp.len)) {
sp                648 net/dccp/feat.c 				len = pos->val.sp.len;
sp                649 net/dccp/feat.c 				ptr = pos->val.sp.vec;
sp                737 net/dccp/feat.c 		kfree(fval.sp.vec);
sp                984 net/dccp/feat.c 		if (entry->feat_num == DCCPF_CCID && entry->val.sp.len == 1)
sp                985 net/dccp/feat.c 			ccids[entry->is_local] = entry->val.sp.vec[0];
sp               1008 net/dccp/feat.c 			ccid = entry->val.sp.vec[0];
sp               1066 net/dccp/feat.c 	if (!fv->sp.vec || !arr) {
sp               1072 net/dccp/feat.c 		rc = dccp_feat_preflist_match(fv->sp.vec, fv->sp.len, arr, len);
sp               1074 net/dccp/feat.c 		rc = dccp_feat_preflist_match(arr, len, fv->sp.vec, fv->sp.len);
sp               1084 net/dccp/feat.c 	return dccp_feat_prefer(rc, fv->sp.vec, fv->sp.len);
sp               1147 net/dccp/feat.c 				fval.sp.vec[0] = defval;
sp               1148 net/dccp/feat.c 		} else if (!dccp_feat_is_valid_sp_val(feat, fval.sp.vec[0])) {
sp               1149 net/dccp/feat.c 			kfree(fval.sp.vec);
sp               1154 net/dccp/feat.c 		if (feat == DCCPF_CCID && !ccid_support_check(fval.sp.vec, 1)) {
sp               1155 net/dccp/feat.c 			kfree(fval.sp.vec);
sp               1275 net/dccp/feat.c 	entry->val.sp.vec[0] = *val;
sp                 52 net/dccp/feat.h 	}   sp;
sp                263 net/decnet/dn_neigh.c 	struct dn_short_packet *sp;
sp                282 net/decnet/dn_neigh.c 	sp = (struct dn_short_packet *)(data+2);
sp                284 net/decnet/dn_neigh.c 	sp->msgflg     = DN_RT_PKT_SHORT|(cb->rt_flags&(DN_RT_F_RQR|DN_RT_F_RTS));
sp                285 net/decnet/dn_neigh.c 	sp->dstnode    = cb->dst;
sp                286 net/decnet/dn_neigh.c 	sp->srcnode    = cb->src;
sp                287 net/decnet/dn_neigh.c 	sp->forward    = cb->hops & 0x3f;
sp                306 net/decnet/dn_neigh.c 	struct dn_short_packet *sp;
sp                324 net/decnet/dn_neigh.c 	sp = (struct dn_short_packet *)(data + 2);
sp                326 net/decnet/dn_neigh.c 	sp->msgflg   = DN_RT_PKT_SHORT|(cb->rt_flags&(DN_RT_F_RQR|DN_RT_F_RTS));
sp                327 net/decnet/dn_neigh.c 	sp->dstnode  = cb->dst & cpu_to_le16(0x03ff);
sp                328 net/decnet/dn_neigh.c 	sp->srcnode  = cb->src & cpu_to_le16(0x03ff);
sp                329 net/decnet/dn_neigh.c 	sp->forward  = cb->hops & 0x3f;
sp                150 net/dsa/tag_sja1105.c 	struct sja1105_port *sp;
sp                154 net/dsa/tag_sja1105.c 	sp = dp->priv;
sp                160 net/dsa/tag_sja1105.c 		if (!test_bit(SJA1105_HWTS_RX_EN, &sp->data->state))
sp                164 net/dsa/tag_sja1105.c 		spin_lock(&sp->data->meta_lock);
sp                168 net/dsa/tag_sja1105.c 		if (sp->data->stampable_skb) {
sp                173 net/dsa/tag_sja1105.c 			kfree_skb(sp->data->stampable_skb);
sp                179 net/dsa/tag_sja1105.c 		sp->data->stampable_skb = skb_get(skb);
sp                180 net/dsa/tag_sja1105.c 		spin_unlock(&sp->data->meta_lock);
sp                197 net/dsa/tag_sja1105.c 		if (!test_bit(SJA1105_HWTS_RX_EN, &sp->data->state))
sp                200 net/dsa/tag_sja1105.c 		spin_lock(&sp->data->meta_lock);
sp                202 net/dsa/tag_sja1105.c 		stampable_skb = sp->data->stampable_skb;
sp                203 net/dsa/tag_sja1105.c 		sp->data->stampable_skb = NULL;
sp                211 net/dsa/tag_sja1105.c 			spin_unlock(&sp->data->meta_lock);
sp                218 net/dsa/tag_sja1105.c 			spin_unlock(&sp->data->meta_lock);
sp                229 net/dsa/tag_sja1105.c 		spin_unlock(&sp->data->meta_lock);
sp                128 net/ipv4/esp4.c 		struct sec_path *sp = skb_sec_path(skb);
sp                130 net/ipv4/esp4.c 		x = sp->xvec[sp->len - 1];
sp                 46 net/ipv4/esp4_offload.c 		struct sec_path *sp = secpath_set(skb);
sp                 48 net/ipv4/esp4_offload.c 		if (!sp)
sp                 51 net/ipv4/esp4_offload.c 		if (sp->len == XFRM_MAX_DEPTH)
sp                 62 net/ipv4/esp4_offload.c 		sp->xvec[sp->len++] = x;
sp                 63 net/ipv4/esp4_offload.c 		sp->olen++;
sp                155 net/ipv4/esp4_offload.c 	struct sec_path *sp;
sp                163 net/ipv4/esp4_offload.c 	sp = skb_sec_path(skb);
sp                164 net/ipv4/esp4_offload.c 	x = sp->xvec[sp->len - 1];
sp               1004 net/ipv4/icmp.c 		struct sec_path *sp = skb_sec_path(skb);
sp               1007 net/ipv4/icmp.c 		if (!(sp && sp->xvec[sp->len - 1]->props.flags &
sp               1101 net/ipv4/ping.c static void ping_v4_format_sock(struct sock *sp, struct seq_file *f,
sp               1104 net/ipv4/ping.c 	struct inet_sock *inet = inet_sk(sp);
sp               1112 net/ipv4/ping.c 		bucket, src, srcp, dest, destp, sp->sk_state,
sp               1113 net/ipv4/ping.c 		sk_wmem_alloc_get(sp),
sp               1114 net/ipv4/ping.c 		sk_rmem_alloc_get(sp),
sp               1116 net/ipv4/ping.c 		from_kuid_munged(seq_user_ns(f), sock_i_uid(sp)),
sp               1117 net/ipv4/ping.c 		0, sock_i_ino(sp),
sp               1118 net/ipv4/ping.c 		refcount_read(&sp->sk_refcnt), sp,
sp               1119 net/ipv4/ping.c 		atomic_read(&sp->sk_drops));
sp               1066 net/ipv4/raw.c static void raw_sock_seq_show(struct seq_file *seq, struct sock *sp, int i)
sp               1068 net/ipv4/raw.c 	struct inet_sock *inet = inet_sk(sp);
sp               1076 net/ipv4/raw.c 		i, src, srcp, dest, destp, sp->sk_state,
sp               1077 net/ipv4/raw.c 		sk_wmem_alloc_get(sp),
sp               1078 net/ipv4/raw.c 		sk_rmem_alloc_get(sp),
sp               1080 net/ipv4/raw.c 		from_kuid_munged(seq_user_ns(seq), sock_i_uid(sp)),
sp               1081 net/ipv4/raw.c 		0, sock_i_ino(sp),
sp               1082 net/ipv4/raw.c 		refcount_read(&sp->sk_refcnt), sp, atomic_read(&sp->sk_drops));
sp               1094 net/ipv4/tcp_input.c 			    struct tcp_sack_block_wire *sp, int num_sacks,
sp               1098 net/ipv4/tcp_input.c 	u32 start_seq_0 = get_unaligned_be32(&sp[0].start_seq);
sp               1099 net/ipv4/tcp_input.c 	u32 end_seq_0 = get_unaligned_be32(&sp[0].end_seq);
sp               1107 net/ipv4/tcp_input.c 		u32 end_seq_1 = get_unaligned_be32(&sp[1].end_seq);
sp               1108 net/ipv4/tcp_input.c 		u32 start_seq_1 = get_unaligned_be32(&sp[1].start_seq);
sp               1666 net/ipv4/tcp_input.c 	struct tcp_sack_block sp[TCP_NUM_SACKS];
sp               1703 net/ipv4/tcp_input.c 		sp[used_sacks].start_seq = get_unaligned_be32(&sp_wire[i].start_seq);
sp               1704 net/ipv4/tcp_input.c 		sp[used_sacks].end_seq = get_unaligned_be32(&sp_wire[i].end_seq);
sp               1707 net/ipv4/tcp_input.c 					    sp[used_sacks].start_seq,
sp               1708 net/ipv4/tcp_input.c 					    sp[used_sacks].end_seq)) {
sp               1719 net/ipv4/tcp_input.c 				    !after(sp[used_sacks].end_seq, tp->snd_una))
sp               1731 net/ipv4/tcp_input.c 		if (!after(sp[used_sacks].end_seq, prior_snd_una)) {
sp               1743 net/ipv4/tcp_input.c 			if (after(sp[j].start_seq, sp[j + 1].start_seq)) {
sp               1744 net/ipv4/tcp_input.c 				swap(sp[j], sp[j + 1]);
sp               1769 net/ipv4/tcp_input.c 		u32 start_seq = sp[i].start_seq;
sp               1770 net/ipv4/tcp_input.c 		u32 end_seq = sp[i].end_seq;
sp               1775 net/ipv4/tcp_input.c 			next_dup = &sp[i + 1];
sp               1841 net/ipv4/tcp_input.c 		tp->recv_sack_cache[i++] = sp[j];
sp               4219 net/ipv4/tcp_input.c static inline bool tcp_sack_extend(struct tcp_sack_block *sp, u32 seq,
sp               4222 net/ipv4/tcp_input.c 	if (!after(seq, sp->end_seq) && !after(sp->start_seq, end_seq)) {
sp               4223 net/ipv4/tcp_input.c 		if (before(seq, sp->start_seq))
sp               4224 net/ipv4/tcp_input.c 			sp->start_seq = seq;
sp               4225 net/ipv4/tcp_input.c 		if (after(end_seq, sp->end_seq))
sp               4226 net/ipv4/tcp_input.c 			sp->end_seq = end_seq;
sp               4301 net/ipv4/tcp_input.c 	struct tcp_sack_block *sp = &tp->selective_acks[0];
sp               4302 net/ipv4/tcp_input.c 	struct tcp_sack_block *swalk = sp + 1;
sp               4308 net/ipv4/tcp_input.c 		if (tcp_sack_extend(sp, swalk->start_seq, swalk->end_seq)) {
sp               4316 net/ipv4/tcp_input.c 				sp[i] = sp[i + 1];
sp               4326 net/ipv4/tcp_input.c 	struct tcp_sack_block *sp = &tp->selective_acks[0];
sp               4333 net/ipv4/tcp_input.c 	for (this_sack = 0; this_sack < cur_sacks; this_sack++, sp++) {
sp               4334 net/ipv4/tcp_input.c 		if (tcp_sack_extend(sp, seq, end_seq)) {
sp               4336 net/ipv4/tcp_input.c 			for (; this_sack > 0; this_sack--, sp--)
sp               4337 net/ipv4/tcp_input.c 				swap(*sp, *(sp - 1));
sp               4355 net/ipv4/tcp_input.c 		sp--;
sp               4357 net/ipv4/tcp_input.c 	for (; this_sack > 0; this_sack--, sp--)
sp               4358 net/ipv4/tcp_input.c 		*sp = *(sp - 1);
sp               4362 net/ipv4/tcp_input.c 	sp->start_seq = seq;
sp               4363 net/ipv4/tcp_input.c 	sp->end_seq = end_seq;
sp               4371 net/ipv4/tcp_input.c 	struct tcp_sack_block *sp = &tp->selective_acks[0];
sp               4383 net/ipv4/tcp_input.c 		if (!before(tp->rcv_nxt, sp->start_seq)) {
sp               4387 net/ipv4/tcp_input.c 			WARN_ON(before(tp->rcv_nxt, sp->end_seq));
sp               4396 net/ipv4/tcp_input.c 		sp++;
sp               5476 net/ipv4/tcp_input.c 			struct tcp_sack_block *sp = &tp->selective_acks[0];
sp               5477 net/ipv4/tcp_input.c 			int max_sack = sp[0].end_seq;
sp               5482 net/ipv4/tcp_input.c 				max_sack = after(sp[this_sack].end_seq,
sp               5484 net/ipv4/tcp_input.c 					sp[this_sack].end_seq : max_sack;
sp                508 net/ipv4/tcp_output.c 		struct tcp_sack_block *sp = tp->rx_opt.dsack ?
sp                520 net/ipv4/tcp_output.c 			*ptr++ = htonl(sp[this_sack].start_seq);
sp                521 net/ipv4/tcp_output.c 			*ptr++ = htonl(sp[this_sack].end_seq);
sp               2902 net/ipv4/udp.c static void udp4_format_sock(struct sock *sp, struct seq_file *f,
sp               2905 net/ipv4/udp.c 	struct inet_sock *inet = inet_sk(sp);
sp               2913 net/ipv4/udp.c 		bucket, src, srcp, dest, destp, sp->sk_state,
sp               2914 net/ipv4/udp.c 		sk_wmem_alloc_get(sp),
sp               2915 net/ipv4/udp.c 		udp_rqueue_get(sp),
sp               2917 net/ipv4/udp.c 		from_kuid_munged(seq_user_ns(f), sock_i_uid(sp)),
sp               2918 net/ipv4/udp.c 		0, sock_i_ino(sp),
sp               2919 net/ipv4/udp.c 		refcount_read(&sp->sk_refcnt), sp,
sp               2920 net/ipv4/udp.c 		atomic_read(&sp->sk_drops));
sp               1026 net/ipv6/datagram.c void __ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp,
sp               1031 net/ipv6/datagram.c 	dest  = &sp->sk_v6_daddr;
sp               1032 net/ipv6/datagram.c 	src   = &sp->sk_v6_rcv_saddr;
sp               1041 net/ipv6/datagram.c 		   sp->sk_state,
sp               1042 net/ipv6/datagram.c 		   sk_wmem_alloc_get(sp),
sp               1045 net/ipv6/datagram.c 		   from_kuid_munged(seq_user_ns(seq), sock_i_uid(sp)),
sp               1047 net/ipv6/datagram.c 		   sock_i_ino(sp),
sp               1048 net/ipv6/datagram.c 		   refcount_read(&sp->sk_refcnt), sp,
sp               1049 net/ipv6/datagram.c 		   atomic_read(&sp->sk_drops));
sp                135 net/ipv6/esp6.c 		struct sec_path *sp = skb_sec_path(skb);
sp                137 net/ipv6/esp6.c 		x = sp->xvec[sp->len - 1];
sp                 68 net/ipv6/esp6_offload.c 		struct sec_path *sp = secpath_set(skb);
sp                 70 net/ipv6/esp6_offload.c 		if (!sp)
sp                 73 net/ipv6/esp6_offload.c 		if (sp->len == XFRM_MAX_DEPTH)
sp                 84 net/ipv6/esp6_offload.c 		sp->xvec[sp->len++] = x;
sp                 85 net/ipv6/esp6_offload.c 		sp->olen++;
sp                189 net/ipv6/esp6_offload.c 	struct sec_path *sp;
sp                197 net/ipv6/esp6_offload.c 	sp = skb_sec_path(skb);
sp                198 net/ipv6/esp6_offload.c 	x = sp->xvec[sp->len - 1];
sp                829 net/ipv6/icmp.c 		struct sec_path *sp = skb_sec_path(skb);
sp                832 net/ipv6/icmp.c 		if (!(sp && sp->xvec[sp->len - 1]->props.flags &
sp               1313 net/ipv6/raw.c 		struct sock *sp = v;
sp               1314 net/ipv6/raw.c 		__u16 srcp  = inet_sk(sp)->inet_num;
sp               1858 net/ipv6/tcp_ipv6.c static void get_tcp6_sock(struct seq_file *seq, struct sock *sp, int i)
sp               1864 net/ipv6/tcp_ipv6.c 	const struct inet_sock *inet = inet_sk(sp);
sp               1865 net/ipv6/tcp_ipv6.c 	const struct tcp_sock *tp = tcp_sk(sp);
sp               1866 net/ipv6/tcp_ipv6.c 	const struct inet_connection_sock *icsk = inet_csk(sp);
sp               1871 net/ipv6/tcp_ipv6.c 	dest  = &sp->sk_v6_daddr;
sp               1872 net/ipv6/tcp_ipv6.c 	src   = &sp->sk_v6_rcv_saddr;
sp               1884 net/ipv6/tcp_ipv6.c 	} else if (timer_pending(&sp->sk_timer)) {
sp               1886 net/ipv6/tcp_ipv6.c 		timer_expires	= sp->sk_timer.expires;
sp               1892 net/ipv6/tcp_ipv6.c 	state = inet_sk_state_load(sp);
sp               1894 net/ipv6/tcp_ipv6.c 		rx_queue = sp->sk_ack_backlog;
sp               1916 net/ipv6/tcp_ipv6.c 		   from_kuid_munged(seq_user_ns(seq), sock_i_uid(sp)),
sp               1918 net/ipv6/tcp_ipv6.c 		   sock_i_ino(sp),
sp               1919 net/ipv6/tcp_ipv6.c 		   refcount_read(&sp->sk_refcnt), sp,
sp               1922 net/ipv6/tcp_ipv6.c 		   (icsk->icsk_ack.quick << 1) | inet_csk_in_pingpong_mode(sp),
sp                 89 net/ipv6/xfrm6_input.c 	struct sec_path *sp;
sp                 92 net/ipv6/xfrm6_input.c 	sp = secpath_set(skb);
sp                 93 net/ipv6/xfrm6_input.c 	if (!sp) {
sp                 98 net/ipv6/xfrm6_input.c 	if (1 + sp->len == XFRM_MAX_DEPTH) {
sp                150 net/ipv6/xfrm6_input.c 	sp->xvec[sp->len++] = x;
sp                382 net/key/af_key.c 	const struct sadb_address *sp = p;
sp                383 net/key/af_key.c 	const struct sockaddr *addr = (const struct sockaddr *)(sp + 1);
sp                390 net/key/af_key.c 	if (sp->sadb_address_len <
sp                391 net/key/af_key.c 	    DIV_ROUND_UP(sizeof(*sp) + offsetofend(typeof(*addr), sa_family),
sp                397 net/key/af_key.c 		len = DIV_ROUND_UP(sizeof(*sp) + sizeof(*sin), sizeof(uint64_t));
sp                398 net/key/af_key.c 		if (sp->sadb_address_len != len ||
sp                399 net/key/af_key.c 		    sp->sadb_address_prefixlen > 32)
sp                404 net/key/af_key.c 		len = DIV_ROUND_UP(sizeof(*sp) + sizeof(*sin6), sizeof(uint64_t));
sp                405 net/key/af_key.c 		if (sp->sadb_address_len != len ||
sp                406 net/key/af_key.c 		    sp->sadb_address_prefixlen > 128)
sp               1645 net/key/af_key.c 		struct sadb_supported *sp;
sp               1648 net/key/af_key.c 		sp = skb_put(skb, auth_len);
sp               1649 net/key/af_key.c 		ap = (struct sadb_alg *) (sp + 1);
sp               1651 net/key/af_key.c 		sp->sadb_supported_len = auth_len / sizeof(uint64_t);
sp               1652 net/key/af_key.c 		sp->sadb_supported_exttype = SADB_EXT_SUPPORTED_AUTH;
sp               1666 net/key/af_key.c 		struct sadb_supported *sp;
sp               1669 net/key/af_key.c 		sp = skb_put(skb, enc_len);
sp               1670 net/key/af_key.c 		ap = (struct sadb_alg *) (sp + 1);
sp               1672 net/key/af_key.c 		sp->sadb_supported_len = enc_len / sizeof(uint64_t);
sp               1673 net/key/af_key.c 		sp->sadb_supported_exttype = SADB_EXT_SUPPORTED_ENCRYPT;
sp                930 net/l2tp/l2tp_ppp.c 		struct sockaddr_pppol2tp sp;
sp                931 net/l2tp/l2tp_ppp.c 		len = sizeof(sp);
sp                932 net/l2tp/l2tp_ppp.c 		memset(&sp, 0, len);
sp                933 net/l2tp/l2tp_ppp.c 		sp.sa_family	= AF_PPPOX;
sp                934 net/l2tp/l2tp_ppp.c 		sp.sa_protocol	= PX_PROTO_OL2TP;
sp                935 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.fd  = tunnel->fd;
sp                936 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.pid = pls->owner;
sp                937 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_tunnel = tunnel->tunnel_id;
sp                938 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_tunnel = tunnel->peer_tunnel_id;
sp                939 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_session = session->session_id;
sp                940 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_session = session->peer_session_id;
sp                941 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin_family = AF_INET;
sp                942 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin_port = inet->inet_dport;
sp                943 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin_addr.s_addr = inet->inet_daddr;
sp                944 net/l2tp/l2tp_ppp.c 		memcpy(uaddr, &sp, len);
sp                948 net/l2tp/l2tp_ppp.c 		struct sockaddr_pppol2tpin6 sp;
sp                950 net/l2tp/l2tp_ppp.c 		len = sizeof(sp);
sp                951 net/l2tp/l2tp_ppp.c 		memset(&sp, 0, len);
sp                952 net/l2tp/l2tp_ppp.c 		sp.sa_family	= AF_PPPOX;
sp                953 net/l2tp/l2tp_ppp.c 		sp.sa_protocol	= PX_PROTO_OL2TP;
sp                954 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.fd  = tunnel->fd;
sp                955 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.pid = pls->owner;
sp                956 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_tunnel = tunnel->tunnel_id;
sp                957 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_tunnel = tunnel->peer_tunnel_id;
sp                958 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_session = session->session_id;
sp                959 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_session = session->peer_session_id;
sp                960 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin6_family = AF_INET6;
sp                961 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin6_port = inet->inet_dport;
sp                962 net/l2tp/l2tp_ppp.c 		memcpy(&sp.pppol2tp.addr.sin6_addr, &tunnel->sock->sk_v6_daddr,
sp                964 net/l2tp/l2tp_ppp.c 		memcpy(uaddr, &sp, len);
sp                967 net/l2tp/l2tp_ppp.c 		struct sockaddr_pppol2tpv3in6 sp;
sp                969 net/l2tp/l2tp_ppp.c 		len = sizeof(sp);
sp                970 net/l2tp/l2tp_ppp.c 		memset(&sp, 0, len);
sp                971 net/l2tp/l2tp_ppp.c 		sp.sa_family	= AF_PPPOX;
sp                972 net/l2tp/l2tp_ppp.c 		sp.sa_protocol	= PX_PROTO_OL2TP;
sp                973 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.fd  = tunnel->fd;
sp                974 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.pid = pls->owner;
sp                975 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_tunnel = tunnel->tunnel_id;
sp                976 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_tunnel = tunnel->peer_tunnel_id;
sp                977 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_session = session->session_id;
sp                978 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_session = session->peer_session_id;
sp                979 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin6_family = AF_INET6;
sp                980 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin6_port = inet->inet_dport;
sp                981 net/l2tp/l2tp_ppp.c 		memcpy(&sp.pppol2tp.addr.sin6_addr, &tunnel->sock->sk_v6_daddr,
sp                983 net/l2tp/l2tp_ppp.c 		memcpy(uaddr, &sp, len);
sp                986 net/l2tp/l2tp_ppp.c 		struct sockaddr_pppol2tpv3 sp;
sp                987 net/l2tp/l2tp_ppp.c 		len = sizeof(sp);
sp                988 net/l2tp/l2tp_ppp.c 		memset(&sp, 0, len);
sp                989 net/l2tp/l2tp_ppp.c 		sp.sa_family	= AF_PPPOX;
sp                990 net/l2tp/l2tp_ppp.c 		sp.sa_protocol	= PX_PROTO_OL2TP;
sp                991 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.fd  = tunnel->fd;
sp                992 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.pid = pls->owner;
sp                993 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_tunnel = tunnel->tunnel_id;
sp                994 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_tunnel = tunnel->peer_tunnel_id;
sp                995 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_session = session->session_id;
sp                996 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_session = session->peer_session_id;
sp                997 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin_family = AF_INET;
sp                998 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin_port = inet->inet_dport;
sp                999 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.addr.sin_addr.s_addr = inet->inet_daddr;
sp               1000 net/l2tp/l2tp_ppp.c 		memcpy(uaddr, &sp, len);
sp                162 net/netfilter/nft_xfrm.c 	const struct sec_path *sp = skb_sec_path(pkt->skb);
sp                165 net/netfilter/nft_xfrm.c 	if (sp == NULL || sp->len <= priv->spnum) {
sp                170 net/netfilter/nft_xfrm.c 	state = sp->xvec[priv->spnum];
sp                 56 net/netfilter/xt_policy.c 	const struct sec_path *sp = skb_sec_path(skb);
sp                 60 net/netfilter/xt_policy.c 	if (sp == NULL)
sp                 62 net/netfilter/xt_policy.c 	if (strict && info->len != sp->len)
sp                 65 net/netfilter/xt_policy.c 	for (i = sp->len - 1; i >= 0; i--) {
sp                 66 net/netfilter/xt_policy.c 		pos = strict ? i - sp->len + 1 : 0;
sp                 71 net/netfilter/xt_policy.c 		if (match_xfrm_state(sp->xvec[i], e, family)) {
sp                470 net/rxrpc/ar-internal.h static inline bool rxrpc_to_server(const struct rxrpc_skb_priv *sp)
sp                472 net/rxrpc/ar-internal.h 	return sp->hdr.flags & RXRPC_CLIENT_INITIATED;
sp                475 net/rxrpc/ar-internal.h static inline bool rxrpc_to_client(const struct rxrpc_skb_priv *sp)
sp                477 net/rxrpc/ar-internal.h 	return !rxrpc_to_server(sp);
sp                896 net/rxrpc/ar-internal.h 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                898 net/rxrpc/ar-internal.h 	trace_rxrpc_rx_eproto(call, sp->hdr.serial, eproto_why);
sp                899 net/rxrpc/ar-internal.h 	return rxrpc_abort_call(why, call, sp->hdr.seq, abort_code, -EPROTO);
sp                248 net/rxrpc/call_accept.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                253 net/rxrpc/call_accept.c 		rxrpc_propose_ACK(call, RXRPC_ACK_PING, sp->hdr.serial,
sp                353 net/rxrpc/call_accept.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                365 net/rxrpc/call_accept.c 		trace_rxrpc_abort(0, "CLS", sp->hdr.cid, sp->hdr.callNumber,
sp                366 net/rxrpc/call_accept.c 				  sp->hdr.seq, RX_INVALID_OPERATION, ESHUTDOWN);
sp                390 net/rxrpc/call_accept.c 			    sp->hdr.serial, sp->hdr.seq);
sp                425 net/rxrpc/call_accept.c 		rxrpc_abort_call("CON", call, sp->hdr.seq,
sp                334 net/rxrpc/call_object.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                340 net/rxrpc/call_object.c 	call->call_id		= sp->hdr.callNumber;
sp                341 net/rxrpc/call_object.c 	call->service_id	= sp->hdr.serviceId;
sp                342 net/rxrpc/call_object.c 	call->cid		= sp->hdr.cid;
sp                344 net/rxrpc/call_object.c 	if (sp->hdr.securityIndex > 0)
sp                354 net/rxrpc/call_object.c 	chan = sp->hdr.cid & RXRPC_CHANNELMASK;
sp                 26 net/rxrpc/conn_event.c 	struct rxrpc_skb_priv *sp = skb ? rxrpc_skb(skb) : NULL;
sp                 52 net/rxrpc/conn_event.c 	if (skb && call_id != sp->hdr.callNumber)
sp                 95 net/rxrpc/conn_event.c 		pkt.ack.serial		= htonl(skb ? sp->hdr.serial : 0);
sp                287 net/rxrpc/conn_event.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                297 net/rxrpc/conn_event.c 	_enter("{%d},{%u,%%%u},", conn->debug_id, sp->hdr.type, sp->hdr.serial);
sp                299 net/rxrpc/conn_event.c 	switch (sp->hdr.type) {
sp                303 net/rxrpc/conn_event.c 					   sp->hdr.cid & RXRPC_CHANNELMASK);
sp                313 net/rxrpc/conn_event.c 			trace_rxrpc_rx_eproto(NULL, sp->hdr.serial,
sp                318 net/rxrpc/conn_event.c 		_proto("Rx ABORT %%%u { ac=%d }", sp->hdr.serial, abort_code);
sp                323 net/rxrpc/conn_event.c 		rxrpc_abort_calls(conn, RXRPC_CALL_REMOTELY_ABORTED, sp->hdr.serial);
sp                362 net/rxrpc/conn_event.c 		trace_rxrpc_rx_eproto(NULL, sp->hdr.serial,
sp                 79 net/rxrpc/conn_object.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                 83 net/rxrpc/conn_object.c 	_enter(",%x", sp->hdr.cid & RXRPC_CIDMASK);
sp                 97 net/rxrpc/conn_object.c 	k.epoch	= sp->hdr.epoch;
sp                 98 net/rxrpc/conn_object.c 	k.cid	= sp->hdr.cid & RXRPC_CIDMASK;
sp                100 net/rxrpc/conn_object.c 	if (rxrpc_to_server(sp)) {
sp                119 net/rxrpc/conn_object.c 				sp->hdr.cid >> RXRPC_CIDSHIFT);
sp                 26 net/rxrpc/conn_service.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                 30 net/rxrpc/conn_service.c 	k.epoch	= sp->hdr.epoch;
sp                 31 net/rxrpc/conn_service.c 	k.cid	= sp->hdr.cid & RXRPC_CIDMASK;
sp                155 net/rxrpc/conn_service.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                159 net/rxrpc/conn_service.c 	conn->proto.epoch	= sp->hdr.epoch;
sp                160 net/rxrpc/conn_service.c 	conn->proto.cid		= sp->hdr.cid & RXRPC_CIDMASK;
sp                161 net/rxrpc/conn_service.c 	conn->params.service_id	= sp->hdr.serviceId;
sp                162 net/rxrpc/conn_service.c 	conn->service_id	= sp->hdr.serviceId;
sp                163 net/rxrpc/conn_service.c 	conn->security_ix	= sp->hdr.securityIndex;
sp                176 net/rxrpc/conn_service.c 	if (sp->hdr.userStatus == RXRPC_USERSTATUS_SERVICE_UPGRADE &&
sp                347 net/rxrpc/input.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                350 net/rxrpc/input.c 	u8 flags = sp->hdr.flags;
sp                354 net/rxrpc/input.c 			__set_bit(sp->nr_subpackets, sp->rx_req_ack);
sp                355 net/rxrpc/input.c 		sp->nr_subpackets++;
sp                371 net/rxrpc/input.c 		sp->rx_flags |= RXRPC_SKB_INCL_LAST;
sp                414 net/rxrpc/input.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                417 net/rxrpc/input.c 	rxrpc_serial_t serial = sp->hdr.serial, ack_serial = 0;
sp                418 net/rxrpc/input.c 	rxrpc_seq_t seq0 = sp->hdr.seq, hard_ack;
sp                426 net/rxrpc/input.c 	       sp->hdr.serial, seq0, sp->hdr.flags, sp->nr_subpackets);
sp                460 net/rxrpc/input.c 	nr_subpackets = sp->nr_subpackets;
sp                470 net/rxrpc/input.c 		rxrpc_serial_t serial = sp->hdr.serial + j;
sp                474 net/rxrpc/input.c 		bool last = terminal && (sp->rx_flags & RXRPC_SKB_INCL_LAST);
sp                499 net/rxrpc/input.c 		if (test_bit(j, sp->rx_req_ack))
sp                568 net/rxrpc/input.c 			sp = NULL;
sp                619 net/rxrpc/input.c 	struct rxrpc_skb_priv *sp;
sp                631 net/rxrpc/input.c 		sp = rxrpc_skb(skb);
sp                632 net/rxrpc/input.c 		if (sp->hdr.serial != orig_serial)
sp                715 net/rxrpc/input.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                722 net/rxrpc/input.c 	       sp->hdr.serial,
sp                731 net/rxrpc/input.c 		trace_rxrpc_rx_rwind_change(call, sp->hdr.serial,
sp                842 net/rxrpc/input.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                869 net/rxrpc/input.c 	trace_rxrpc_rx_ack(call, sp->hdr.serial, acked_serial,
sp                875 net/rxrpc/input.c 					  sp->hdr.serial);
sp                878 net/rxrpc/input.c 					  sp->hdr.serial);
sp                881 net/rxrpc/input.c 		_proto("Rx ACK %%%u PING Request", sp->hdr.serial);
sp                883 net/rxrpc/input.c 				  sp->hdr.serial, true, true,
sp                885 net/rxrpc/input.c 	} else if (sp->hdr.flags & RXRPC_REQUEST_ACK) {
sp                887 net/rxrpc/input.c 				  sp->hdr.serial, true, true,
sp                893 net/rxrpc/input.c 		trace_rxrpc_rx_discard_ack(call->debug_id, sp->hdr.serial,
sp                909 net/rxrpc/input.c 		trace_rxrpc_rx_discard_ack(call->debug_id, sp->hdr.serial,
sp                969 net/rxrpc/input.c 		rxrpc_propose_ACK(call, RXRPC_ACK_PING, sp->hdr.serial,
sp                984 net/rxrpc/input.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                986 net/rxrpc/input.c 	_proto("Rx ACKALL %%%u", sp->hdr.serial);
sp               1001 net/rxrpc/input.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp               1012 net/rxrpc/input.c 	trace_rxrpc_rx_abort(call, sp->hdr.serial, abort_code);
sp               1014 net/rxrpc/input.c 	_proto("Rx ABORT %%%u { %x }", sp->hdr.serial, abort_code);
sp               1027 net/rxrpc/input.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp               1042 net/rxrpc/input.c 	switch (sp->hdr.type) {
sp               1052 net/rxrpc/input.c 		_proto("Rx BUSY %%%u", sp->hdr.serial);
sp               1158 net/rxrpc/input.c int rxrpc_extract_header(struct rxrpc_skb_priv *sp, struct sk_buff *skb)
sp               1164 net/rxrpc/input.c 		trace_rxrpc_rx_eproto(NULL, sp->hdr.serial,
sp               1169 net/rxrpc/input.c 	memset(sp, 0, sizeof(*sp));
sp               1170 net/rxrpc/input.c 	sp->hdr.epoch		= ntohl(whdr.epoch);
sp               1171 net/rxrpc/input.c 	sp->hdr.cid		= ntohl(whdr.cid);
sp               1172 net/rxrpc/input.c 	sp->hdr.callNumber	= ntohl(whdr.callNumber);
sp               1173 net/rxrpc/input.c 	sp->hdr.seq		= ntohl(whdr.seq);
sp               1174 net/rxrpc/input.c 	sp->hdr.serial		= ntohl(whdr.serial);
sp               1175 net/rxrpc/input.c 	sp->hdr.flags		= whdr.flags;
sp               1176 net/rxrpc/input.c 	sp->hdr.type		= whdr.type;
sp               1177 net/rxrpc/input.c 	sp->hdr.userStatus	= whdr.userStatus;
sp               1178 net/rxrpc/input.c 	sp->hdr.securityIndex	= whdr.securityIndex;
sp               1179 net/rxrpc/input.c 	sp->hdr._rsvd		= ntohs(whdr._rsvd);
sp               1180 net/rxrpc/input.c 	sp->hdr.serviceId	= ntohs(whdr.serviceId);
sp               1200 net/rxrpc/input.c 	struct rxrpc_skb_priv *sp;
sp               1221 net/rxrpc/input.c 	sp = rxrpc_skb(skb);
sp               1224 net/rxrpc/input.c 	if (rxrpc_extract_header(sp, skb) < 0)
sp               1230 net/rxrpc/input.c 			trace_rxrpc_rx_lose(sp);
sp               1238 net/rxrpc/input.c 	trace_rxrpc_rx_packet(sp);
sp               1240 net/rxrpc/input.c 	switch (sp->hdr.type) {
sp               1242 net/rxrpc/input.c 		if (rxrpc_to_client(sp))
sp               1248 net/rxrpc/input.c 		if (rxrpc_to_server(sp))
sp               1253 net/rxrpc/input.c 		if (sp->hdr.callNumber == 0)
sp               1260 net/rxrpc/input.c 		if (sp->hdr.callNumber == 0 ||
sp               1261 net/rxrpc/input.c 		    sp->hdr.seq == 0)
sp               1269 net/rxrpc/input.c 		if (sp->hdr.securityIndex != 0) {
sp               1280 net/rxrpc/input.c 				sp = rxrpc_skb(skb);
sp               1286 net/rxrpc/input.c 		if (rxrpc_to_server(sp))
sp               1290 net/rxrpc/input.c 		if (rxrpc_to_client(sp))
sp               1301 net/rxrpc/input.c 		_proto("Rx Bad Packet Type %u", sp->hdr.type);
sp               1305 net/rxrpc/input.c 	if (sp->hdr.serviceId == 0)
sp               1308 net/rxrpc/input.c 	if (rxrpc_to_server(sp)) {
sp               1314 net/rxrpc/input.c 		if (!rx || (sp->hdr.serviceId != rx->srx.srx_service &&
sp               1315 net/rxrpc/input.c 			    sp->hdr.serviceId != rx->second_service)) {
sp               1316 net/rxrpc/input.c 			if (sp->hdr.type == RXRPC_PACKET_TYPE_DATA &&
sp               1317 net/rxrpc/input.c 			    sp->hdr.seq == 1)
sp               1325 net/rxrpc/input.c 		if (sp->hdr.securityIndex != conn->security_ix)
sp               1328 net/rxrpc/input.c 		if (sp->hdr.serviceId != conn->service_id) {
sp               1334 net/rxrpc/input.c 					 sp->hdr.serviceId);
sp               1337 net/rxrpc/input.c 			    old_id != sp->hdr.serviceId)
sp               1341 net/rxrpc/input.c 		if (sp->hdr.callNumber == 0) {
sp               1348 net/rxrpc/input.c 		if ((int)sp->hdr.serial - (int)conn->hi_serial > 0)
sp               1349 net/rxrpc/input.c 			conn->hi_serial = sp->hdr.serial;
sp               1352 net/rxrpc/input.c 		channel = sp->hdr.cid & RXRPC_CHANNELMASK;
sp               1356 net/rxrpc/input.c 		if (sp->hdr.callNumber < chan->last_call)
sp               1359 net/rxrpc/input.c 		if (sp->hdr.callNumber == chan->last_call) {
sp               1361 net/rxrpc/input.c 			    sp->hdr.type == RXRPC_PACKET_TYPE_ABORT)
sp               1374 net/rxrpc/input.c 			if (sp->hdr.type == RXRPC_PACKET_TYPE_DATA)
sp               1376 net/rxrpc/input.c 						    sp->hdr.seq,
sp               1377 net/rxrpc/input.c 						    sp->hdr.serial,
sp               1378 net/rxrpc/input.c 						    sp->hdr.flags, 0);
sp               1385 net/rxrpc/input.c 		if (sp->hdr.callNumber > chan->call_id) {
sp               1386 net/rxrpc/input.c 			if (rxrpc_to_client(sp))
sp               1394 net/rxrpc/input.c 			if (sp->hdr.serviceId != call->service_id)
sp               1395 net/rxrpc/input.c 				call->service_id = sp->hdr.serviceId;
sp               1396 net/rxrpc/input.c 			if ((int)sp->hdr.serial - (int)call->rx_serial > 0)
sp               1397 net/rxrpc/input.c 				call->rx_serial = sp->hdr.serial;
sp               1404 net/rxrpc/input.c 		if (rxrpc_to_client(sp) ||
sp               1405 net/rxrpc/input.c 		    sp->hdr.type != RXRPC_PACKET_TYPE_DATA)
sp               1407 net/rxrpc/input.c 		if (sp->hdr.seq != 1)
sp               1427 net/rxrpc/input.c 	trace_rxrpc_abort(0, "SEC", sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq,
sp               1433 net/rxrpc/input.c 	trace_rxrpc_abort(0, "INV", sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq,
sp               1439 net/rxrpc/input.c 	trace_rxrpc_abort(0, "UPG", sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq,
sp               1444 net/rxrpc/input.c 	trace_rxrpc_abort(0, "BAD", sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq,
sp                 49 net/rxrpc/insecure.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                 51 net/rxrpc/insecure.c 	trace_rxrpc_rx_eproto(NULL, sp->hdr.serial,
sp                 60 net/rxrpc/insecure.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                 62 net/rxrpc/insecure.c 	trace_rxrpc_rx_eproto(NULL, sp->hdr.serial,
sp                 29 net/rxrpc/local_event.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                 47 net/rxrpc/local_event.c 	whdr.epoch	= htonl(sp->hdr.epoch);
sp                 48 net/rxrpc/local_event.c 	whdr.cid	= htonl(sp->hdr.cid);
sp                 49 net/rxrpc/local_event.c 	whdr.callNumber	= htonl(sp->hdr.callNumber);
sp                 57 net/rxrpc/local_event.c 	whdr.serviceId	= htons(sp->hdr.serviceId);
sp                 91 net/rxrpc/local_event.c 		struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                 94 net/rxrpc/local_event.c 		_debug("{%d},{%u}", local->debug_id, sp->hdr.type);
sp                 96 net/rxrpc/local_event.c 		switch (sp->hdr.type) {
sp                103 net/rxrpc/local_event.c 				rxrpc_send_version_request(local, &sp->hdr, skb);
sp                319 net/rxrpc/output.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                334 net/rxrpc/output.c 	whdr.seq	= htonl(sp->hdr.seq);
sp                337 net/rxrpc/output.c 	whdr.flags	= sp->hdr.flags;
sp                340 net/rxrpc/output.c 	whdr._rsvd	= htons(sp->hdr._rsvd);
sp                344 net/rxrpc/output.c 	    sp->hdr.seq == 1)
sp                366 net/rxrpc/output.c 	if ((!(sp->hdr.flags & RXRPC_LAST_PACKET) ||
sp                367 net/rxrpc/output.c 	     rxrpc_to_server(sp)
sp                372 net/rxrpc/output.c 	     (call->peer->rtt_count < 3 && sp->hdr.seq & 1) ||
sp                381 net/rxrpc/output.c 			trace_rxrpc_tx_data(call, sp->hdr.seq, serial,
sp                387 net/rxrpc/output.c 	trace_rxrpc_tx_data(call, sp->hdr.seq, serial, whdr.flags, retrans,
sp                397 net/rxrpc/output.c 	sp->hdr.serial = serial;
sp                437 net/rxrpc/output.c 		if (sp->hdr.seq == 1 &&
sp                469 net/rxrpc/output.c 	sp->hdr.serial = serial;
sp                512 net/rxrpc/output.c 	struct rxrpc_skb_priv *sp;
sp                537 net/rxrpc/output.c 		sp = rxrpc_skb(skb);
sp                559 net/rxrpc/output.c 			whdr.epoch	= htonl(sp->hdr.epoch);
sp                560 net/rxrpc/output.c 			whdr.cid	= htonl(sp->hdr.cid);
sp                561 net/rxrpc/output.c 			whdr.callNumber	= htonl(sp->hdr.callNumber);
sp                562 net/rxrpc/output.c 			whdr.serviceId	= htons(sp->hdr.serviceId);
sp                563 net/rxrpc/output.c 			whdr.flags	= sp->hdr.flags;
sp                176 net/rxrpc/recvmsg.c 	struct rxrpc_skb_priv *sp;
sp                194 net/rxrpc/recvmsg.c 	sp = rxrpc_skb(skb);
sp                197 net/rxrpc/recvmsg.c 	serial = sp->hdr.serial + subpacket;
sp                199 net/rxrpc/recvmsg.c 	if (subpacket == sp->nr_subpackets - 1 &&
sp                200 net/rxrpc/recvmsg.c 	    sp->rx_flags & RXRPC_SKB_INCL_LAST)
sp                236 net/rxrpc/recvmsg.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                237 net/rxrpc/recvmsg.c 	rxrpc_seq_t seq = sp->hdr.seq;
sp                238 net/rxrpc/recvmsg.c 	u16 cksum = sp->hdr.cksum;
sp                273 net/rxrpc/recvmsg.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                284 net/rxrpc/recvmsg.c 	if (subpacket < sp->nr_subpackets - 1)
sp                286 net/rxrpc/recvmsg.c 	else if (sp->rx_flags & RXRPC_SKB_INCL_LAST)
sp                312 net/rxrpc/recvmsg.c 	struct rxrpc_skb_priv *sp;
sp                351 net/rxrpc/recvmsg.c 		sp = rxrpc_skb(skb);
sp                354 net/rxrpc/recvmsg.c 			serial = sp->hdr.serial;
sp                184 net/rxrpc/rxkad.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                192 net/rxrpc/rxkad.c 	check = sp->hdr.seq ^ call->call_id;
sp                223 net/rxrpc/rxkad.c 	struct rxrpc_skb_priv *sp;
sp                230 net/rxrpc/rxkad.c 	sp = rxrpc_skb(skb);
sp                234 net/rxrpc/rxkad.c 	check = sp->hdr.seq ^ call->call_id;
sp                281 net/rxrpc/rxkad.c 	struct rxrpc_skb_priv *sp;
sp                288 net/rxrpc/rxkad.c 	sp = rxrpc_skb(skb);
sp                292 net/rxrpc/rxkad.c 	       sp->hdr.seq, data_size);
sp                310 net/rxrpc/rxkad.c 	x |= sp->hdr.seq & 0x3fffffff;
sp                325 net/rxrpc/rxkad.c 	sp->hdr.cksum = y;
sp                815 net/rxrpc/rxkad.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                843 net/rxrpc/rxkad.c 	       sp->hdr.serial, version, nonce, min_level);
sp                879 net/rxrpc/rxkad.c 		ret = rxkad_send_response(conn, &sp->hdr, resp, token->kad);
sp                884 net/rxrpc/rxkad.c 	trace_rxrpc_rx_eproto(NULL, sp->hdr.serial, eproto);
sp                902 net/rxrpc/rxkad.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp               1039 net/rxrpc/rxkad.c 	trace_rxrpc_rx_eproto(NULL, sp->hdr.serial, eproto);
sp               1091 net/rxrpc/rxkad.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp               1119 net/rxrpc/rxkad.c 	       sp->hdr.serial, version, kvno, ticket_len);
sp               1227 net/rxrpc/rxkad.c 	trace_rxrpc_rx_eproto(NULL, sp->hdr.serial, eproto);
sp                112 net/rxrpc/security.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                118 net/rxrpc/security.c 	sprintf(kdesc, "%u:%u", sp->hdr.serviceId, sp->hdr.securityIndex);
sp                120 net/rxrpc/security.c 	sec = rxrpc_security_lookup(sp->hdr.securityIndex);
sp                123 net/rxrpc/security.c 				  sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq,
sp                130 net/rxrpc/security.c 	if (sp->hdr.securityIndex == RXRPC_SECURITY_NONE)
sp                135 net/rxrpc/security.c 				  sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq,
sp                147 net/rxrpc/security.c 				  sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq,
sp                198 net/rxrpc/sendmsg.c 	struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
sp                200 net/rxrpc/sendmsg.c 	rxrpc_seq_t seq = sp->hdr.seq;
sp                297 net/rxrpc/sendmsg.c 	struct rxrpc_skb_priv *sp;
sp                368 net/rxrpc/sendmsg.c 			sp = rxrpc_skb(skb);
sp                369 net/rxrpc/sendmsg.c 			sp->rx_flags |= RXRPC_SKB_TX_BUFFER;
sp                380 net/rxrpc/sendmsg.c 			sp->remain = chunk;
sp                381 net/rxrpc/sendmsg.c 			if (sp->remain > skb_tailroom(skb))
sp                382 net/rxrpc/sendmsg.c 				sp->remain = skb_tailroom(skb);
sp                388 net/rxrpc/sendmsg.c 			       sp->remain);
sp                394 net/rxrpc/sendmsg.c 		sp = rxrpc_skb(skb);
sp                402 net/rxrpc/sendmsg.c 			if (copy > sp->remain)
sp                403 net/rxrpc/sendmsg.c 				copy = sp->remain;
sp                410 net/rxrpc/sendmsg.c 			sp->remain -= copy;
sp                423 net/rxrpc/sendmsg.c 		if (sp->remain <= 0 ||
sp                441 net/rxrpc/sendmsg.c 			sp->hdr.seq	= seq;
sp                442 net/rxrpc/sendmsg.c 			sp->hdr._rsvd	= 0;
sp                443 net/rxrpc/sendmsg.c 			sp->hdr.flags	= conn->out_clientflag;
sp                446 net/rxrpc/sendmsg.c 				sp->hdr.flags |= RXRPC_LAST_PACKET;
sp                449 net/rxrpc/sendmsg.c 				sp->hdr.flags |= RXRPC_MORE_PACKETS;
sp                347 net/sched/cls_rsvp.h 	struct rsvp_session __rcu **sp;
sp                365 net/sched/cls_rsvp.h 			sp = &head->ht[h & 0xFF];
sp                366 net/sched/cls_rsvp.h 			for (nsp = rtnl_dereference(*sp); nsp;
sp                367 net/sched/cls_rsvp.h 			     sp = &nsp->next, nsp = rtnl_dereference(*sp)) {
sp                369 net/sched/cls_rsvp.h 					RCU_INIT_POINTER(*sp, s->next);
sp                482 net/sched/cls_rsvp.h 	struct rsvp_session __rcu **sp;
sp                584 net/sched/cls_rsvp.h 	for (sp = &data->ht[h1];
sp                585 net/sched/cls_rsvp.h 	     (s = rtnl_dereference(*sp)) != NULL;
sp                586 net/sched/cls_rsvp.h 	     sp = &s->next) {
sp                637 net/sched/cls_rsvp.h 	sp = &data->ht[h1];
sp                638 net/sched/cls_rsvp.h 	for (nsp = rtnl_dereference(*sp); nsp;
sp                639 net/sched/cls_rsvp.h 	     sp = &nsp->next, nsp = rtnl_dereference(*sp)) {
sp                644 net/sched/cls_rsvp.h 	rcu_assign_pointer(*sp, s);
sp                773 net/sched/sch_htb.c 	} stk[TC_HTB_MAXDEPTH], *sp = stk;
sp                776 net/sched/sch_htb.c 	sp->root = hprio->row.rb_node;
sp                777 net/sched/sch_htb.c 	sp->pptr = &hprio->ptr;
sp                778 net/sched/sch_htb.c 	sp->pid = &hprio->last_ptr_id;
sp                781 net/sched/sch_htb.c 		if (!*sp->pptr && *sp->pid) {
sp                785 net/sched/sch_htb.c 			*sp->pptr =
sp                786 net/sched/sch_htb.c 			    htb_id_find_next_upper(prio, sp->root, *sp->pid);
sp                788 net/sched/sch_htb.c 		*sp->pid = 0;	/* ptr is valid now so that remove this hint as it
sp                791 net/sched/sch_htb.c 		if (!*sp->pptr) {	/* we are at right end; rewind & go up */
sp                792 net/sched/sch_htb.c 			*sp->pptr = sp->root;
sp                793 net/sched/sch_htb.c 			while ((*sp->pptr)->rb_left)
sp                794 net/sched/sch_htb.c 				*sp->pptr = (*sp->pptr)->rb_left;
sp                795 net/sched/sch_htb.c 			if (sp > stk) {
sp                796 net/sched/sch_htb.c 				sp--;
sp                797 net/sched/sch_htb.c 				if (!*sp->pptr) {
sp                801 net/sched/sch_htb.c 				htb_next_rb_node(sp->pptr);
sp                807 net/sched/sch_htb.c 			cl = rb_entry(*sp->pptr, struct htb_class, node[prio]);
sp                811 net/sched/sch_htb.c 			(++sp)->root = clp->feed.rb_node;
sp                812 net/sched/sch_htb.c 			sp->pptr = &clp->ptr;
sp                813 net/sched/sch_htb.c 			sp->pid = &clp->last_ptr_id;
sp                 57 net/sctp/associola.c 	struct sctp_sock *sp;
sp                 62 net/sctp/associola.c 	sp = sctp_sk((struct sock *)sk);
sp                 82 net/sctp/associola.c 	asoc->cookie_life = ms_to_ktime(sp->assocparams.sasoc_cookie_life);
sp                 83 net/sctp/associola.c 	asoc->user_frag = sp->user_frag;
sp                 88 net/sctp/associola.c 	asoc->max_retrans = sp->assocparams.sasoc_asocmaxrxt;
sp                 89 net/sctp/associola.c 	asoc->pf_retrans  = sp->pf_retrans;
sp                 91 net/sctp/associola.c 	asoc->rto_initial = msecs_to_jiffies(sp->rtoinfo.srto_initial);
sp                 92 net/sctp/associola.c 	asoc->rto_max = msecs_to_jiffies(sp->rtoinfo.srto_max);
sp                 93 net/sctp/associola.c 	asoc->rto_min = msecs_to_jiffies(sp->rtoinfo.srto_min);
sp                 98 net/sctp/associola.c 	asoc->hbinterval = msecs_to_jiffies(sp->hbinterval);
sp                101 net/sctp/associola.c 	asoc->pathmaxrxt = sp->pathmaxrxt;
sp                103 net/sctp/associola.c 	asoc->flowlabel = sp->flowlabel;
sp                104 net/sctp/associola.c 	asoc->dscp = sp->dscp;
sp                107 net/sctp/associola.c 	asoc->sackdelay = msecs_to_jiffies(sp->sackdelay);
sp                108 net/sctp/associola.c 	asoc->sackfreq = sp->sackfreq;
sp                113 net/sctp/associola.c 	asoc->param_flags = sp->param_flags;
sp                118 net/sctp/associola.c 	asoc->max_burst = sp->max_burst;
sp                120 net/sctp/associola.c 	asoc->subscribe = sp->subscribe;
sp                135 net/sctp/associola.c 	asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE] = sp->autoclose * HZ;
sp                145 net/sctp/associola.c 	asoc->c.sinit_max_instreams = sp->initmsg.sinit_max_instreams;
sp                146 net/sctp/associola.c 	asoc->c.sinit_num_ostreams  = sp->initmsg.sinit_num_ostreams;
sp                147 net/sctp/associola.c 	asoc->max_init_attempts	= sp->initmsg.sinit_max_attempts;
sp                150 net/sctp/associola.c 		 msecs_to_jiffies(sp->initmsg.sinit_max_init_timeo);
sp                232 net/sctp/associola.c 	asoc->pathmtu = sp->pathmtu;
sp                243 net/sctp/associola.c 	asoc->default_stream = sp->default_stream;
sp                244 net/sctp/associola.c 	asoc->default_ppid = sp->default_ppid;
sp                245 net/sctp/associola.c 	asoc->default_flags = sp->default_flags;
sp                246 net/sctp/associola.c 	asoc->default_context = sp->default_context;
sp                247 net/sctp/associola.c 	asoc->default_timetolive = sp->default_timetolive;
sp                248 net/sctp/associola.c 	asoc->default_rcv_context = sp->default_rcv_context;
sp                584 net/sctp/associola.c 	struct sctp_sock *sp;
sp                587 net/sctp/associola.c 	sp = sctp_sk(asoc->base.sk);
sp                653 net/sctp/associola.c 	sctp_transport_route(peer, NULL, sp);
sp                325 net/sctp/bind_addr.c int sctp_bind_addrs_check(struct sctp_sock *sp,
sp                329 net/sctp/bind_addr.c 	struct sctp_bind_addr *bp = &sp->ep->base.bind_addr;
sp                337 net/sctp/bind_addr.c 			if (sp->pf->af->cmp_addr(&laddr->a, &laddr2->a) &&
sp                363 net/sctp/bind_addr.c 	struct sctp_sock *sp;
sp                370 net/sctp/bind_addr.c 		sp = bp_sp;
sp                372 net/sctp/bind_addr.c 		sp = addr_sp;
sp                374 net/sctp/bind_addr.c 		sp = bp_sp;
sp                381 net/sctp/bind_addr.c 		conflict = sp->pf->cmp_addr(&laddr->a, addr, sp);
sp                628 net/sctp/ipv6.c static int sctp_v6_available(union sctp_addr *addr, struct sctp_sock *sp)
sp                631 net/sctp/ipv6.c 	struct net *net = sock_net(&sp->inet.sk);
sp                638 net/sctp/ipv6.c 		if (sp && ipv6_only_sock(sctp_opt2sk(sp)))
sp                641 net/sctp/ipv6.c 		return sctp_get_af_specific(AF_INET)->available(addr, sp);
sp                646 net/sctp/ipv6.c 	return sp->inet.freebind || net->ipv6.sysctl.ip_nonlocal_bind ||
sp                658 net/sctp/ipv6.c 			      struct sctp_sock *sp,
sp                668 net/sctp/ipv6.c 		if (sp && ipv6_only_sock(sctp_opt2sk(sp)))
sp                671 net/sctp/ipv6.c 		return sctp_get_af_specific(AF_INET)->addr_valid(addr, sp, skb);
sp                763 net/sctp/ipv6.c static int sctp_v6_addr_to_user(struct sctp_sock *sp, union sctp_addr *addr)
sp                765 net/sctp/ipv6.c 	if (sp->v4mapped) {
sp                869 net/sctp/ipv6.c static int sctp_inet6_af_supported(sa_family_t family, struct sctp_sock *sp)
sp                876 net/sctp/ipv6.c 		if (!__ipv6_only_sock(sctp_opt2sk(sp)))
sp                 78 net/sctp/output.c 	struct sctp_sock *sp = NULL;
sp                 93 net/sctp/output.c 		sp = sctp_sk(sk);
sp                 95 net/sctp/output.c 	packet->overhead = sctp_mtu_payload(sp, 0, 0);
sp                103 net/sctp/output.c 		sctp_transport_route(tp, NULL, sp);
sp                327 net/sctp/protocol.c 			      struct sctp_sock *sp,
sp                331 net/sctp/protocol.c 	if (sp && ipv6_only_sock(sctp_opt2sk(sp)))
sp                346 net/sctp/protocol.c static int sctp_v4_available(union sctp_addr *addr, struct sctp_sock *sp)
sp                348 net/sctp/protocol.c 	struct net *net = sock_net(&sp->inet.sk);
sp                354 net/sctp/protocol.c 	   !sp->inet.freebind &&
sp                358 net/sctp/protocol.c 	if (ipv6_only_sock(sctp_opt2sk(sp)))
sp                600 net/sctp/protocol.c static int sctp_v4_addr_to_user(struct sctp_sock *sp, union sctp_addr *addr)
sp                622 net/sctp/protocol.c 	struct sctp_sock *sp;
sp                657 net/sctp/protocol.c 		list_for_each_entry(sp, &net->sctp.auto_asconf_splist, auto_asconf_list) {
sp                660 net/sctp/protocol.c 			sk = sctp_opt2sk(sp);
sp                665 net/sctp/protocol.c 			if (sctp_asconf_mgmt(sp, addrw) < 0)
sp                923 net/sctp/protocol.c static int sctp_inet_af_supported(sa_family_t family, struct sctp_sock *sp)
sp                220 net/sctp/sm_make_chunk.c 	struct sctp_sock *sp;
sp                242 net/sctp/sm_make_chunk.c 	sp = sctp_sk(asoc->base.sk);
sp                243 net/sctp/sm_make_chunk.c 	num_types = sp->pf->supported_addrs(sp, types);
sp                270 net/sctp/sm_make_chunk.c 	if (sp->adaptation_ind)
sp                356 net/sctp/sm_make_chunk.c 	if (sp->adaptation_ind) {
sp                359 net/sctp/sm_make_chunk.c 		aiparam.adaptation_ind = htonl(sp->adaptation_ind);
sp                392 net/sctp/sm_make_chunk.c 	struct sctp_sock *sp;
sp                419 net/sctp/sm_make_chunk.c 	sp = sctp_sk(asoc->base.sk);
sp                440 net/sctp/sm_make_chunk.c 	if (sp->adaptation_ind)
sp                505 net/sctp/sm_make_chunk.c 	if (sp->adaptation_ind) {
sp                508 net/sctp/sm_make_chunk.c 		aiparam.adaptation_ind = htonl(sp->adaptation_ind);
sp               1248 net/sctp/sm_make_chunk.c 	struct sctp_sock *sp = NULL;
sp               1252 net/sctp/sm_make_chunk.c 		sp = sctp_sk(asoc->base.sk);
sp               1255 net/sctp/sm_make_chunk.c 	size = sctp_mtu_payload(sp, size, sizeof(struct sctp_errhdr));
sp               1262 net/sctp/sm_sideeffect.c 	struct sctp_sock *sp = sctp_sk(ep->base.sk);
sp               1802 net/sctp/sm_sideeffect.c 	if (sp->data_ready_signalled)
sp               1803 net/sctp/sm_sideeffect.c 		sp->data_ready_signalled = 0;
sp                364 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp                365 net/sctp/socket.c 	struct sctp_endpoint *ep = sp->ep;
sp                372 net/sctp/socket.c 	af = sctp_sockaddr_af(sp, addr, len);
sp                385 net/sctp/socket.c 	if (!sp->pf->bind_verify(sp, addr))
sp                409 net/sctp/socket.c 	if (sctp_bind_addr_match(bp, addr, sp))
sp                436 net/sctp/socket.c 	sp->pf->to_sk_saddr(addr, sk);
sp                543 net/sctp/socket.c 	struct sctp_sock		*sp;
sp                557 net/sctp/socket.c 	sp = sctp_sk(sk);
sp                558 net/sctp/socket.c 	ep = sp->ep;
sp                664 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp                665 net/sctp/socket.c 	struct sctp_endpoint *ep = sp->ep;
sp                695 net/sctp/socket.c 		if (!af->addr_valid(sa_addr, sp, NULL)) {
sp                745 net/sctp/socket.c 	struct sctp_sock	*sp;
sp                760 net/sctp/socket.c 	sp = sctp_sk(sk);
sp                761 net/sctp/socket.c 	ep = sp->ep;
sp                809 net/sctp/socket.c 					       addrcnt, sp);
sp                893 net/sctp/socket.c int sctp_asconf_mgmt(struct sctp_sock *sp, struct sctp_sockaddr_entry *addrw)
sp                895 net/sctp/socket.c 	struct sock *sk = sctp_opt2sk(sp);
sp                901 net/sctp/socket.c 	addr->v4.sin_port = htons(sp->ep->base.bind_addr.port);
sp               1163 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               1164 net/sctp/socket.c 	struct sctp_endpoint *ep = sp->ep;
sp               1234 net/sctp/socket.c 	sp->pf->to_sk_daddr(daddr, sk);
sp               1798 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               1817 net/sctp/socket.c 	if (sp->disable_fragments && msg_len > asoc->frag_point) {
sp               1823 net/sctp/socket.c 		if (sp->param_flags & SPP_PMTUD_ENABLE)
sp               2095 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               2140 net/sctp/socket.c 		sp->pf->event_msgname(event, msg->msg_name, addr_len);
sp               2142 net/sctp/socket.c 		sp->pf->skb_msgname(head_skb, msg->msg_name, addr_len);
sp               2146 net/sctp/socket.c 	if (sp->recvnxtinfo)
sp               2149 net/sctp/socket.c 	if (sp->recvrcvinfo)
sp               2152 net/sctp/socket.c 	if (sctp_ulpevent_type_enabled(sp->subscribe, SCTP_DATA_IO_EVENT))
sp               2228 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               2239 net/sctp/socket.c 		sctp_ulpevent_type_set(&sp->subscribe, SCTP_SN_TYPE_BASE + i,
sp               2242 net/sctp/socket.c 	list_for_each_entry(asoc, &sp->ep->asocs, asocs)
sp               2249 net/sctp/socket.c 	if (sctp_ulpevent_type_enabled(sp->subscribe, SCTP_SENDER_DRY_EVENT)) {
sp               2280 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               2288 net/sctp/socket.c 	if (copy_from_user(&sp->autoclose, optval, optlen))
sp               2291 net/sctp/socket.c 	if (sp->autoclose > net->sctp.max_autoclose)
sp               2292 net/sctp/socket.c 		sp->autoclose = net->sctp.max_autoclose;
sp               2438 net/sctp/socket.c 				       struct sctp_sock        *sp,
sp               2475 net/sctp/socket.c 				sp->hbinterval = params->spp_hbinterval;
sp               2488 net/sctp/socket.c 			sp->param_flags =
sp               2489 net/sctp/socket.c 				(sp->param_flags & ~SPP_HB) | hb_change;
sp               2505 net/sctp/socket.c 			sp->pathmtu = params->spp_pathmtu;
sp               2516 net/sctp/socket.c 				sctp_transport_pmtu(trans, sctp_opt2sk(sp));
sp               2523 net/sctp/socket.c 			sp->param_flags =
sp               2524 net/sctp/socket.c 				(sp->param_flags & ~SPP_PMTUD) | pmtud_change;
sp               2540 net/sctp/socket.c 			sp->sackdelay = params->spp_sackdelay;
sp               2554 net/sctp/socket.c 			sp->param_flags =
sp               2555 net/sctp/socket.c 				(sp->param_flags & ~SPP_SACKDELAY) |
sp               2569 net/sctp/socket.c 			sp->pathmaxrxt = params->spp_pathmaxrxt;
sp               2594 net/sctp/socket.c 		} else if (sctp_opt2sk(sp)->sk_family == AF_INET6) {
sp               2595 net/sctp/socket.c 			sp->flowlabel = params->spp_ipv6_flowlabel &
sp               2597 net/sctp/socket.c 			sp->flowlabel |= SCTP_FLOWLABEL_SET_MASK;
sp               2617 net/sctp/socket.c 			sp->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK;
sp               2618 net/sctp/socket.c 			sp->dscp |= SCTP_DSCP_SET_MASK;
sp               2632 net/sctp/socket.c 	struct sctp_sock        *sp = sctp_sk(sk);
sp               2688 net/sctp/socket.c 	error = sctp_apply_peer_addr_params(&params, trans, asoc, sp,
sp               2701 net/sctp/socket.c 			sctp_apply_peer_addr_params(&params, trans, asoc, sp,
sp               2796 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               2847 net/sctp/socket.c 			sp->sackdelay = params.sack_delay;
sp               2848 net/sctp/socket.c 			sp->param_flags =
sp               2849 net/sctp/socket.c 				sctp_spp_sackdelay_enable(sp->param_flags);
sp               2852 net/sctp/socket.c 			sp->param_flags =
sp               2853 net/sctp/socket.c 				sctp_spp_sackdelay_disable(sp->param_flags);
sp               2855 net/sctp/socket.c 			sp->sackfreq = params.sack_freq;
sp               2856 net/sctp/socket.c 			sp->param_flags =
sp               2857 net/sctp/socket.c 				sctp_spp_sackdelay_enable(sp->param_flags);
sp               2863 net/sctp/socket.c 		list_for_each_entry(asoc, &sp->ep->asocs, asocs)
sp               2883 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               2891 net/sctp/socket.c 		sp->initmsg.sinit_num_ostreams = sinit.sinit_num_ostreams;
sp               2893 net/sctp/socket.c 		sp->initmsg.sinit_max_instreams = sinit.sinit_max_instreams;
sp               2895 net/sctp/socket.c 		sp->initmsg.sinit_max_attempts = sinit.sinit_max_attempts;
sp               2897 net/sctp/socket.c 		sp->initmsg.sinit_max_init_timeo = sinit.sinit_max_init_timeo;
sp               2920 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               2953 net/sctp/socket.c 		sp->default_stream = info.sinfo_stream;
sp               2954 net/sctp/socket.c 		sp->default_flags = info.sinfo_flags;
sp               2955 net/sctp/socket.c 		sp->default_ppid = info.sinfo_ppid;
sp               2956 net/sctp/socket.c 		sp->default_context = info.sinfo_context;
sp               2957 net/sctp/socket.c 		sp->default_timetolive = info.sinfo_timetolive;
sp               2962 net/sctp/socket.c 		list_for_each_entry(asoc, &sp->ep->asocs, asocs) {
sp               2981 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               3013 net/sctp/socket.c 		sp->default_stream = info.snd_sid;
sp               3014 net/sctp/socket.c 		sp->default_flags = info.snd_flags;
sp               3015 net/sctp/socket.c 		sp->default_ppid = info.snd_ppid;
sp               3016 net/sctp/socket.c 		sp->default_context = info.snd_context;
sp               3021 net/sctp/socket.c 		list_for_each_entry(asoc, &sp->ep->asocs, asocs) {
sp               3111 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               3132 net/sctp/socket.c 		rto_max = asoc ? asoc->rto_max : sp->rtoinfo.srto_max;
sp               3137 net/sctp/socket.c 		rto_min = asoc ? asoc->rto_min : sp->rtoinfo.srto_min;
sp               3153 net/sctp/socket.c 			sp->rtoinfo.srto_initial = rtoinfo.srto_initial;
sp               3154 net/sctp/socket.c 		sp->rtoinfo.srto_max = rto_max;
sp               3155 net/sctp/socket.c 		sp->rtoinfo.srto_min = rto_min;
sp               3218 net/sctp/socket.c 		struct sctp_sock *sp = sctp_sk(sk);
sp               3221 net/sctp/socket.c 			sp->assocparams.sasoc_asocmaxrxt =
sp               3224 net/sctp/socket.c 			sp->assocparams.sasoc_cookie_life =
sp               3243 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               3250 net/sctp/socket.c 		sp->v4mapped = 1;
sp               3252 net/sctp/socket.c 		sp->v4mapped = 0;
sp               3286 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               3318 net/sctp/socket.c 		min_len = sctp_min_frag_point(sp, datasize);
sp               3329 net/sctp/socket.c 		sp->user_frag = val;
sp               3347 net/sctp/socket.c 	struct sctp_sock	*sp;
sp               3354 net/sctp/socket.c 	sp = sctp_sk(sk);
sp               3356 net/sctp/socket.c 	if (!sp->ep->asconf_enable)
sp               3382 net/sctp/socket.c 	if (!af->addr_valid((union sctp_addr *)&prim.sspp_addr, sp, NULL))
sp               3440 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               3465 net/sctp/socket.c 		sp->default_rcv_context = params.assoc_value;
sp               3469 net/sctp/socket.c 		list_for_each_entry(asoc, &sp->ep->asocs, asocs)
sp               3572 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               3607 net/sctp/socket.c 		sp->max_burst = params.assoc_value;
sp               3611 net/sctp/socket.c 		list_for_each_entry(asoc, &sp->ep->asocs, asocs)
sp               3928 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               3936 net/sctp/socket.c 	if ((val && sp->do_auto_asconf) || (!val && !sp->do_auto_asconf))
sp               3940 net/sctp/socket.c 	if (val == 0 && sp->do_auto_asconf) {
sp               3941 net/sctp/socket.c 		list_del(&sp->auto_asconf_list);
sp               3942 net/sctp/socket.c 		sp->do_auto_asconf = 0;
sp               3943 net/sctp/socket.c 	} else if (val && !sp->do_auto_asconf) {
sp               3944 net/sctp/socket.c 		list_add_tail(&sp->auto_asconf_list,
sp               3946 net/sctp/socket.c 		sp->do_auto_asconf = 1;
sp               4003 net/sctp/socket.c 		struct sctp_sock *sp = sctp_sk(sk);
sp               4006 net/sctp/socket.c 			sp->pathmaxrxt = val.spt_pathmaxrxt;
sp               4007 net/sctp/socket.c 		sp->pf_retrans = val.spt_pathpfthld;
sp               4072 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               4109 net/sctp/socket.c 		SCTP_PR_SET_POLICY(sp->default_flags, info.pr_policy);
sp               4110 net/sctp/socket.c 		sp->default_timetolive = info.pr_value;
sp               4115 net/sctp/socket.c 		list_for_each_entry(asoc, &sp->ep->asocs, asocs) {
sp               4291 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               4319 net/sctp/socket.c 		sp->default_ss = params.assoc_value;
sp               4323 net/sctp/socket.c 		list_for_each_entry(asoc, &sp->ep->asocs, asocs) {
sp               4380 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               4399 net/sctp/socket.c 	if (!sock_net(sk)->sctp.intl_enable || !sp->frag_interleave) {
sp               4404 net/sctp/socket.c 	sp->ep->intl_enable = !!params.assoc_value;
sp               4458 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               4487 net/sctp/socket.c 		sctp_ulpevent_type_set(&sp->subscribe,
sp               4492 net/sctp/socket.c 		list_for_each_entry(asoc, &sp->ep->asocs, asocs) {
sp               4889 net/sctp/socket.c 	struct sctp_sock *sp;
sp               4898 net/sctp/socket.c 	sp = sctp_sk(sk);
sp               4899 net/sctp/socket.c 	ep = sp->ep;
sp               4922 net/sctp/socket.c 	newsk = sp->pf->create_accept_sk(sk, asoc, kern);
sp               4989 net/sctp/socket.c 	struct sctp_sock *sp;
sp               4993 net/sctp/socket.c 	sp = sctp_sk(sk);
sp               4998 net/sctp/socket.c 		sp->type = SCTP_SOCKET_UDP;
sp               5001 net/sctp/socket.c 		sp->type = SCTP_SOCKET_TCP;
sp               5012 net/sctp/socket.c 	sp->default_stream = 0;
sp               5013 net/sctp/socket.c 	sp->default_ppid = 0;
sp               5014 net/sctp/socket.c 	sp->default_flags = 0;
sp               5015 net/sctp/socket.c 	sp->default_context = 0;
sp               5016 net/sctp/socket.c 	sp->default_timetolive = 0;
sp               5018 net/sctp/socket.c 	sp->default_rcv_context = 0;
sp               5019 net/sctp/socket.c 	sp->max_burst = net->sctp.max_burst;
sp               5021 net/sctp/socket.c 	sp->sctp_hmac_alg = net->sctp.sctp_hmac_alg;
sp               5027 net/sctp/socket.c 	sp->initmsg.sinit_num_ostreams   = sctp_max_outstreams;
sp               5028 net/sctp/socket.c 	sp->initmsg.sinit_max_instreams  = sctp_max_instreams;
sp               5029 net/sctp/socket.c 	sp->initmsg.sinit_max_attempts   = net->sctp.max_retrans_init;
sp               5030 net/sctp/socket.c 	sp->initmsg.sinit_max_init_timeo = net->sctp.rto_max;
sp               5035 net/sctp/socket.c 	sp->rtoinfo.srto_initial = net->sctp.rto_initial;
sp               5036 net/sctp/socket.c 	sp->rtoinfo.srto_max     = net->sctp.rto_max;
sp               5037 net/sctp/socket.c 	sp->rtoinfo.srto_min     = net->sctp.rto_min;
sp               5042 net/sctp/socket.c 	sp->assocparams.sasoc_asocmaxrxt = net->sctp.max_retrans_association;
sp               5043 net/sctp/socket.c 	sp->assocparams.sasoc_number_peer_destinations = 0;
sp               5044 net/sctp/socket.c 	sp->assocparams.sasoc_peer_rwnd = 0;
sp               5045 net/sctp/socket.c 	sp->assocparams.sasoc_local_rwnd = 0;
sp               5046 net/sctp/socket.c 	sp->assocparams.sasoc_cookie_life = net->sctp.valid_cookie_life;
sp               5051 net/sctp/socket.c 	sp->subscribe = 0;
sp               5056 net/sctp/socket.c 	sp->hbinterval  = net->sctp.hb_interval;
sp               5057 net/sctp/socket.c 	sp->pathmaxrxt  = net->sctp.max_retrans_path;
sp               5058 net/sctp/socket.c 	sp->pf_retrans  = net->sctp.pf_retrans;
sp               5059 net/sctp/socket.c 	sp->pathmtu     = 0; /* allow default discovery */
sp               5060 net/sctp/socket.c 	sp->sackdelay   = net->sctp.sack_timeout;
sp               5061 net/sctp/socket.c 	sp->sackfreq	= 2;
sp               5062 net/sctp/socket.c 	sp->param_flags = SPP_HB_ENABLE |
sp               5065 net/sctp/socket.c 	sp->default_ss = SCTP_SS_DEFAULT;
sp               5070 net/sctp/socket.c 	sp->disable_fragments = 0;
sp               5073 net/sctp/socket.c 	sp->nodelay           = 0;
sp               5075 net/sctp/socket.c 	sp->recvrcvinfo = 0;
sp               5076 net/sctp/socket.c 	sp->recvnxtinfo = 0;
sp               5079 net/sctp/socket.c 	sp->v4mapped          = 1;
sp               5086 net/sctp/socket.c 	sp->autoclose         = 0;
sp               5089 net/sctp/socket.c 	sp->user_frag         = 0;
sp               5091 net/sctp/socket.c 	sp->adaptation_ind = 0;
sp               5093 net/sctp/socket.c 	sp->pf = sctp_get_pf_specific(sk->sk_family);
sp               5096 net/sctp/socket.c 	atomic_set(&sp->pd_mode, 0);
sp               5097 net/sctp/socket.c 	skb_queue_head_init(&sp->pd_lobby);
sp               5098 net/sctp/socket.c 	sp->frag_interleave = 0;
sp               5104 net/sctp/socket.c 	sp->ep = sctp_endpoint_new(sk, GFP_KERNEL);
sp               5105 net/sctp/socket.c 	if (!sp->ep)
sp               5108 net/sctp/socket.c 	sp->hmac = NULL;
sp               5123 net/sctp/socket.c 		list_add_tail(&sp->auto_asconf_list,
sp               5125 net/sctp/socket.c 		sp->do_auto_asconf = 1;
sp               5128 net/sctp/socket.c 		sp->do_auto_asconf = 0;
sp               5141 net/sctp/socket.c 	struct sctp_sock *sp;
sp               5146 net/sctp/socket.c 	sp = sctp_sk(sk);
sp               5150 net/sctp/socket.c 	if (sp->ep == NULL)
sp               5153 net/sctp/socket.c 	if (sp->do_auto_asconf) {
sp               5154 net/sctp/socket.c 		sp->do_auto_asconf = 0;
sp               5155 net/sctp/socket.c 		list_del(&sp->auto_asconf_list);
sp               5157 net/sctp/socket.c 	sctp_endpoint_free(sp->ep);
sp               5167 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               5170 net/sctp/socket.c 	crypto_free_shash(sp->hmac);
sp               5219 net/sctp/socket.c 		struct sctp_sock *sp = sctp_sk(sk);
sp               5221 net/sctp/socket.c 		info->sctpi_s_autoclose = sp->autoclose;
sp               5222 net/sctp/socket.c 		info->sctpi_s_adaptation_ind = sp->adaptation_ind;
sp               5223 net/sctp/socket.c 		info->sctpi_s_pd_point = sp->pd_point;
sp               5224 net/sctp/socket.c 		info->sctpi_s_nodelay = sp->nodelay;
sp               5225 net/sctp/socket.c 		info->sctpi_s_disable_fragments = sp->disable_fragments;
sp               5226 net/sctp/socket.c 		info->sctpi_s_v4mapped = sp->v4mapped;
sp               5227 net/sctp/socket.c 		info->sctpi_s_frag_interleave = sp->frag_interleave;
sp               5228 net/sctp/socket.c 		info->sctpi_s_type = sp->type;
sp               5649 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               5677 net/sctp/socket.c 	sp->pf->to_sk_daddr(&asoc->peer.primary_addr, sk);
sp               5678 net/sctp/socket.c 	sp->pf->copy_ip_options(sk, sock->sk);
sp               5938 net/sctp/socket.c 	struct sctp_sock        *sp = sctp_sk(sk);
sp               6013 net/sctp/socket.c 		params.spp_hbinterval = sp->hbinterval;
sp               6014 net/sctp/socket.c 		params.spp_pathmtu    = sp->pathmtu;
sp               6015 net/sctp/socket.c 		params.spp_sackdelay  = sp->sackdelay;
sp               6016 net/sctp/socket.c 		params.spp_pathmaxrxt = sp->pathmaxrxt;
sp               6019 net/sctp/socket.c 		params.spp_flags      = sp->param_flags;
sp               6020 net/sctp/socket.c 		if (sp->flowlabel & SCTP_FLOWLABEL_SET_MASK) {
sp               6021 net/sctp/socket.c 			params.spp_ipv6_flowlabel = sp->flowlabel &
sp               6025 net/sctp/socket.c 		if (sp->dscp & SCTP_DSCP_SET_MASK) {
sp               6026 net/sctp/socket.c 			params.spp_dscp	= sp->dscp & SCTP_DSCP_VAL_MASK;
sp               6081 net/sctp/socket.c 	struct sctp_sock        *sp = sctp_sk(sk);
sp               6120 net/sctp/socket.c 		if (sp->param_flags & SPP_SACKDELAY_ENABLE) {
sp               6121 net/sctp/socket.c 			params.sack_delay  = sp->sackdelay;
sp               6122 net/sctp/socket.c 			params.sack_freq = sp->sackfreq;
sp               6171 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               6194 net/sctp/socket.c 			      ->addr_to_user(sp, &temp);
sp               6268 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               6329 net/sctp/socket.c 			      ->addr_to_user(sp, &temp);
sp               6371 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               6391 net/sctp/socket.c 	sctp_get_pf_specific(sk->sk_family)->addr_to_user(sp,
sp               6451 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               6475 net/sctp/socket.c 		info.sinfo_stream = sp->default_stream;
sp               6476 net/sctp/socket.c 		info.sinfo_flags = sp->default_flags;
sp               6477 net/sctp/socket.c 		info.sinfo_ppid = sp->default_ppid;
sp               6478 net/sctp/socket.c 		info.sinfo_context = sp->default_context;
sp               6479 net/sctp/socket.c 		info.sinfo_timetolive = sp->default_timetolive;
sp               6497 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               6520 net/sctp/socket.c 		info.snd_sid = sp->default_stream;
sp               6521 net/sctp/socket.c 		info.snd_flags = sp->default_flags;
sp               6522 net/sctp/socket.c 		info.snd_ppid = sp->default_ppid;
sp               6523 net/sctp/socket.c 		info.snd_context = sp->default_context;
sp               6600 net/sctp/socket.c 		struct sctp_sock *sp = sctp_sk(sk);
sp               6602 net/sctp/socket.c 		rtoinfo.srto_initial = sp->rtoinfo.srto_initial;
sp               6603 net/sctp/socket.c 		rtoinfo.srto_max = sp->rtoinfo.srto_max;
sp               6604 net/sctp/socket.c 		rtoinfo.srto_min = sp->rtoinfo.srto_min;
sp               6665 net/sctp/socket.c 		struct sctp_sock *sp = sctp_sk(sk);
sp               6667 net/sctp/socket.c 		assocparams.sasoc_asocmaxrxt = sp->assocparams.sasoc_asocmaxrxt;
sp               6668 net/sctp/socket.c 		assocparams.sasoc_peer_rwnd = sp->assocparams.sasoc_peer_rwnd;
sp               6669 net/sctp/socket.c 		assocparams.sasoc_local_rwnd = sp->assocparams.sasoc_local_rwnd;
sp               6671 net/sctp/socket.c 					sp->assocparams.sasoc_cookie_life;
sp               6673 net/sctp/socket.c 					sp->assocparams.
sp               6700 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               6706 net/sctp/socket.c 	val = sp->v4mapped;
sp               7085 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               7097 net/sctp/socket.c 	list_for_each_entry(asoc, &(sp->ep->asocs), asocs) {
sp               7141 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               7152 net/sctp/socket.c 	list_for_each_entry(asoc, &(sp->ep->asocs), asocs) {
sp               7167 net/sctp/socket.c 	list_for_each_entry(asoc, &(sp->ep->asocs), asocs) {
sp               7223 net/sctp/socket.c 		struct sctp_sock *sp = sctp_sk(sk);
sp               7225 net/sctp/socket.c 		val.spt_pathpfthld = sp->pf_retrans;
sp               7226 net/sctp/socket.c 		val.spt_pathmaxrxt = sp->pathmaxrxt;
sp               7407 net/sctp/socket.c 		struct sctp_sock *sp = sctp_sk(sk);
sp               7409 net/sctp/socket.c 		info.pr_policy = SCTP_PR_POLICY(sp->default_flags);
sp               7410 net/sctp/socket.c 		info.pr_value = sp->default_timetolive;
sp               8167 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               8168 net/sctp/socket.c 	bool reuse = (sk->sk_reuse || sp->reuse);
sp               8274 net/sctp/socket.c 						    addr, sp2, sp)) {
sp               8319 net/sctp/socket.c 	if (!sp->bind_hash) {
sp               8322 net/sctp/socket.c 		sp->bind_hash = pp;
sp               8355 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               8356 net/sctp/socket.c 	struct sctp_endpoint *ep = sp->ep;
sp               8361 net/sctp/socket.c 	if (!sp->hmac && sp->sctp_hmac_alg) {
sp               8362 net/sctp/socket.c 		sprintf(alg, "hmac(%s)", sp->sctp_hmac_alg);
sp               8366 net/sctp/socket.c 					     sp->sctp_hmac_alg, PTR_ERR(tfm));
sp               8477 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               8488 net/sctp/socket.c 		return (!list_empty(&sp->ep->asocs)) ?
sp               9290 net/sctp/socket.c 	struct sctp_sock *sp = sctp_sk(sk);
sp               9291 net/sctp/socket.c 	struct sctp_endpoint *ep = sp->ep;
sp               9300 net/sctp/socket.c 	sctp_sk(newsk)->reuse = sp->reuse;
sp                475 net/sctp/stream_interleave.c 	struct sctp_sock *sp = sctp_sk(sk);
sp                501 net/sctp/stream_interleave.c 	if (!sp->data_ready_signalled) {
sp                502 net/sctp/stream_interleave.c 		sp->data_ready_signalled = 1;
sp               1002 net/sctp/stream_interleave.c 		struct sctp_sock *sp = sctp_sk(sk);
sp               1006 net/sctp/stream_interleave.c 		if (!sp->data_ready_signalled) {
sp               1007 net/sctp/stream_interleave.c 			sp->data_ready_signalled = 1;
sp                130 net/sctp/ulpqueue.c 	struct sctp_sock *sp = sctp_sk(sk);
sp                132 net/sctp/ulpqueue.c 	if (atomic_dec_and_test(&sp->pd_mode)) {
sp                136 net/sctp/ulpqueue.c 		if (!skb_queue_empty(&sp->pd_lobby)) {
sp                137 net/sctp/ulpqueue.c 			skb_queue_splice_tail_init(&sp->pd_lobby,
sp                147 net/sctp/ulpqueue.c 		if (!skb_queue_empty(&sp->pd_lobby) && asoc) {
sp                151 net/sctp/ulpqueue.c 			sctp_skb_for_each(skb, &sp->pd_lobby, tmp) {
sp                154 net/sctp/ulpqueue.c 					__skb_unlink(skb, &sp->pd_lobby);
sp                168 net/sctp/ulpqueue.c 	struct sctp_sock *sp = sctp_sk(ulpq->asoc->base.sk);
sp                170 net/sctp/ulpqueue.c 	atomic_inc(&sp->pd_mode);
sp                185 net/sctp/ulpqueue.c 	struct sctp_sock *sp = sctp_sk(sk);
sp                215 net/sctp/ulpqueue.c 	if (atomic_read(&sp->pd_mode) == 0) {
sp                227 net/sctp/ulpqueue.c 				queue = &sp->pd_lobby;
sp                238 net/sctp/ulpqueue.c 			if (sp->frag_interleave)
sp                241 net/sctp/ulpqueue.c 				queue = &sp->pd_lobby;
sp                254 net/sctp/ulpqueue.c 	if (queue == &sk->sk_receive_queue && !sp->data_ready_signalled) {
sp                256 net/sctp/ulpqueue.c 			sp->data_ready_signalled = 1;
sp               1031 net/sctp/ulpqueue.c 	struct sctp_sock *sp;
sp               1036 net/sctp/ulpqueue.c 	sp = sctp_sk(asoc->base.sk);
sp               1059 net/sctp/ulpqueue.c 	if (sp->frag_interleave || atomic_read(&sp->pd_mode) == 0) {
sp               1116 net/sctp/ulpqueue.c 	struct sctp_sock *sp;
sp               1123 net/sctp/ulpqueue.c 	sp = sctp_sk(sk);
sp               1133 net/sctp/ulpqueue.c 	if ((sctp_ulpq_clear_pd(ulpq) || ev) && !sp->data_ready_signalled) {
sp               1134 net/sctp/ulpqueue.c 		sp->data_ready_signalled = 1;
sp                103 net/sunrpc/xdr.c xdr_decode_string_inplace(__be32 *p, char **sp,
sp                112 net/sunrpc/xdr.c 	*sp = (char *) p;
sp                 83 net/xfrm/xfrm_device.c 	struct sec_path *sp;
sp                 91 net/xfrm/xfrm_device.c 	sp = skb_sec_path(skb);
sp                 92 net/xfrm/xfrm_device.c 	x = sp->xvec[sp->len - 1];
sp                116 net/xfrm/xfrm_input.c 	struct sec_path *sp, *tmp = skb_ext_find(skb, SKB_EXT_SEC_PATH);
sp                118 net/xfrm/xfrm_input.c 	sp = skb_ext_add(skb, SKB_EXT_SEC_PATH);
sp                119 net/xfrm/xfrm_input.c 	if (!sp)
sp                123 net/xfrm/xfrm_input.c 		return sp;
sp                126 net/xfrm/xfrm_input.c 	memset(sp->ovec, 0, sizeof(sp->ovec));
sp                127 net/xfrm/xfrm_input.c 	sp->olen = 0;
sp                128 net/xfrm/xfrm_input.c 	sp->len = 0;
sp                130 net/xfrm/xfrm_input.c 	return sp;
sp                472 net/xfrm/xfrm_input.c 	struct sec_path *sp;
sp                552 net/xfrm/xfrm_input.c 	sp = secpath_set(skb);
sp                553 net/xfrm/xfrm_input.c 	if (!sp) {
sp                568 net/xfrm/xfrm_input.c 		sp = skb_sec_path(skb);
sp                570 net/xfrm/xfrm_input.c 		if (sp->len == XFRM_MAX_DEPTH) {
sp                586 net/xfrm/xfrm_input.c 		sp->xvec[sp->len++] = x;
sp                715 net/xfrm/xfrm_input.c 		sp = skb_sec_path(skb);
sp                716 net/xfrm/xfrm_input.c 		if (sp)
sp                717 net/xfrm/xfrm_input.c 			sp->olen = 0;
sp                733 net/xfrm/xfrm_input.c 			sp = skb_sec_path(skb);
sp                734 net/xfrm/xfrm_input.c 			if (sp)
sp                735 net/xfrm/xfrm_input.c 				sp->olen = 0;
sp                574 net/xfrm/xfrm_output.c 		struct sec_path *sp;
sp                576 net/xfrm/xfrm_output.c 		sp = secpath_set(skb);
sp                577 net/xfrm/xfrm_output.c 		if (!sp) {
sp                584 net/xfrm/xfrm_output.c 		sp->olen++;
sp                585 net/xfrm/xfrm_output.c 		sp->xvec[sp->len++] = x;
sp               3199 net/xfrm/xfrm_policy.c 	struct sec_path *sp = skb_sec_path(skb);
sp               3202 net/xfrm/xfrm_policy.c 	if (!sp || idx < 0 || idx >= sp->len)
sp               3204 net/xfrm/xfrm_policy.c 	x = sp->xvec[idx];
sp               3240 net/xfrm/xfrm_policy.c xfrm_policy_ok(const struct xfrm_tmpl *tmpl, const struct sec_path *sp, int start,
sp               3250 net/xfrm/xfrm_policy.c 	for (; idx < sp->len; idx++) {
sp               3251 net/xfrm/xfrm_policy.c 		if (xfrm_state_ok(tmpl, sp->xvec[idx], family))
sp               3253 net/xfrm/xfrm_policy.c 		if (sp->xvec[idx]->props.mode != XFRM_MODE_TRANSPORT) {
sp               3490 net/xfrm/xfrm_policy.c static inline int secpath_has_nontransport(const struct sec_path *sp, int k, int *idxp)
sp               3492 net/xfrm/xfrm_policy.c 	for (; k < sp->len; k++) {
sp               3493 net/xfrm/xfrm_policy.c 		if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) {
sp               3515 net/xfrm/xfrm_policy.c 	struct sec_path *sp;
sp               3542 net/xfrm/xfrm_policy.c 	sp = skb_sec_path(skb);
sp               3543 net/xfrm/xfrm_policy.c 	if (sp) {
sp               3546 net/xfrm/xfrm_policy.c 		for (i = sp->len - 1; i >= 0; i--) {
sp               3547 net/xfrm/xfrm_policy.c 			struct xfrm_state *x = sp->xvec[i];
sp               3574 net/xfrm/xfrm_policy.c 		if (sp && secpath_has_nontransport(sp, 0, &xerr_idx)) {
sp               3610 net/xfrm/xfrm_policy.c 		sp = skb_sec_path(skb);
sp               3611 net/xfrm/xfrm_policy.c 		if (!sp)
sp               3612 net/xfrm/xfrm_policy.c 			sp = &dummy;
sp               3640 net/xfrm/xfrm_policy.c 			k = xfrm_policy_ok(tpp[i], sp, k, family);
sp               3650 net/xfrm/xfrm_policy.c 		if (secpath_has_nontransport(sp, k, &xerr_idx)) {
sp                975 net/xfrm/xfrm_user.c 	struct xfrm_dump_info *sp = ptr;
sp                976 net/xfrm/xfrm_user.c 	struct sk_buff *in_skb = sp->in_skb;
sp                977 net/xfrm/xfrm_user.c 	struct sk_buff *skb = sp->out_skb;
sp                982 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq,
sp                983 net/xfrm/xfrm_user.c 			XFRM_MSG_NEWSA, sizeof(*p), sp->nlmsg_flags);
sp               1763 net/xfrm/xfrm_user.c 	struct xfrm_dump_info *sp = ptr;
sp               1765 net/xfrm/xfrm_user.c 	struct sk_buff *in_skb = sp->in_skb;
sp               1766 net/xfrm/xfrm_user.c 	struct sk_buff *skb = sp->out_skb;
sp               1770 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq,
sp               1771 net/xfrm/xfrm_user.c 			XFRM_MSG_NEWPOLICY, sizeof(*p), sp->nlmsg_flags);
sp                373 scripts/kconfig/lxdialog/util.c 	char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = 0;
sp                388 scripts/kconfig/lxdialog/util.c 			sp = strpbrk(word, "\n ");
sp                389 scripts/kconfig/lxdialog/util.c 			if (sp && *sp == '\n')
sp                390 scripts/kconfig/lxdialog/util.c 				newline_separator = sp;
sp                392 scripts/kconfig/lxdialog/util.c 			if (sp)
sp                393 scripts/kconfig/lxdialog/util.c 				*sp++ = 0;
sp                401 scripts/kconfig/lxdialog/util.c 			    (newl && wlen < 4 && sp
sp                402 scripts/kconfig/lxdialog/util.c 			     && wlen + 1 + strlen(sp) > room
sp                403 scripts/kconfig/lxdialog/util.c 			     && (!(sp2 = strpbrk(sp, "\n "))
sp                404 scripts/kconfig/lxdialog/util.c 				 || wlen + 1 + (sp2 - sp) > room))) {
sp                420 scripts/kconfig/lxdialog/util.c 			if (sp && *sp == ' ') {
sp                422 scripts/kconfig/lxdialog/util.c 				while (*++sp == ' ') ;
sp                426 scripts/kconfig/lxdialog/util.c 			word = sp;
sp                321 scripts/kconfig/mconf.c 	struct subtitle_part *sp;
sp                330 scripts/kconfig/mconf.c 	list_for_each_entry(sp, &trail, entries) {
sp                331 scripts/kconfig/mconf.c 		if (sp->text) {
sp                338 scripts/kconfig/mconf.c 			pos->text = sp->text;
sp                676 security/keys/keyring.c 	int sp = 0, slot;
sp                783 security/keys/keyring.c 		if (sp >= KEYRING_SEARCH_MAX_DEPTH) {
sp                798 security/keys/keyring.c 		stack[sp].keyring = keyring;
sp                799 security/keys/keyring.c 		stack[sp].node = node;
sp                800 security/keys/keyring.c 		stack[sp].slot = slot;
sp                801 security/keys/keyring.c 		sp++;
sp                837 security/keys/keyring.c 	kdebug("not_this_keyring %d", sp);
sp                838 security/keys/keyring.c 	if (sp <= 0) {
sp                844 security/keys/keyring.c 	sp--;
sp                845 security/keys/keyring.c 	keyring = stack[sp].keyring;
sp                846 security/keys/keyring.c 	node = stack[sp].node;
sp                847 security/keys/keyring.c 	slot = stack[sp].slot + 1;
sp                858 security/keys/keyring.c 		while (sp > 0)
sp                859 security/keys/keyring.c 			stack[--sp].keyring->last_used_at = ctx->now;
sp                 29 security/selinux/ss/conditional.c 	int sp = -1;
sp                 34 security/selinux/ss/conditional.c 			if (sp == (COND_EXPR_MAXDEPTH - 1))
sp                 36 security/selinux/ss/conditional.c 			sp++;
sp                 37 security/selinux/ss/conditional.c 			s[sp] = p->bool_val_to_struct[cur->bool - 1]->state;
sp                 40 security/selinux/ss/conditional.c 			if (sp < 0)
sp                 42 security/selinux/ss/conditional.c 			s[sp] = !s[sp];
sp                 45 security/selinux/ss/conditional.c 			if (sp < 1)
sp                 47 security/selinux/ss/conditional.c 			sp--;
sp                 48 security/selinux/ss/conditional.c 			s[sp] |= s[sp + 1];
sp                 51 security/selinux/ss/conditional.c 			if (sp < 1)
sp                 53 security/selinux/ss/conditional.c 			sp--;
sp                 54 security/selinux/ss/conditional.c 			s[sp] &= s[sp + 1];
sp                 57 security/selinux/ss/conditional.c 			if (sp < 1)
sp                 59 security/selinux/ss/conditional.c 			sp--;
sp                 60 security/selinux/ss/conditional.c 			s[sp] ^= s[sp + 1];
sp                 63 security/selinux/ss/conditional.c 			if (sp < 1)
sp                 65 security/selinux/ss/conditional.c 			sp--;
sp                 66 security/selinux/ss/conditional.c 			s[sp] = (s[sp] == s[sp + 1]);
sp                 69 security/selinux/ss/conditional.c 			if (sp < 1)
sp                 71 security/selinux/ss/conditional.c 			sp--;
sp                 72 security/selinux/ss/conditional.c 			s[sp] = (s[sp] != s[sp + 1]);
sp                274 security/selinux/ss/services.c 	int sp = -1;
sp                279 security/selinux/ss/services.c 			BUG_ON(sp < 0);
sp                280 security/selinux/ss/services.c 			s[sp] = !s[sp];
sp                283 security/selinux/ss/services.c 			BUG_ON(sp < 1);
sp                284 security/selinux/ss/services.c 			sp--;
sp                285 security/selinux/ss/services.c 			s[sp] &= s[sp + 1];
sp                288 security/selinux/ss/services.c 			BUG_ON(sp < 1);
sp                289 security/selinux/ss/services.c 			sp--;
sp                290 security/selinux/ss/services.c 			s[sp] |= s[sp + 1];
sp                293 security/selinux/ss/services.c 			if (sp == (CEXPR_MAXDEPTH - 1))
sp                311 security/selinux/ss/services.c 					s[++sp] = ebitmap_get_bit(&r1->dominates,
sp                315 security/selinux/ss/services.c 					s[++sp] = ebitmap_get_bit(&r2->dominates,
sp                319 security/selinux/ss/services.c 					s[++sp] = (!ebitmap_get_bit(&r1->dominates,
sp                355 security/selinux/ss/services.c 				s[++sp] = mls_level_eq(l1, l2);
sp                358 security/selinux/ss/services.c 				s[++sp] = !mls_level_eq(l1, l2);
sp                361 security/selinux/ss/services.c 				s[++sp] = mls_level_dom(l1, l2);
sp                364 security/selinux/ss/services.c 				s[++sp] = mls_level_dom(l2, l1);
sp                367 security/selinux/ss/services.c 				s[++sp] = mls_level_incomp(l2, l1);
sp                381 security/selinux/ss/services.c 				s[++sp] = (val1 == val2);
sp                384 security/selinux/ss/services.c 				s[++sp] = (val1 != val2);
sp                392 security/selinux/ss/services.c 			if (sp == (CEXPR_MAXDEPTH-1))
sp                417 security/selinux/ss/services.c 				s[++sp] = ebitmap_get_bit(&e->names, val1 - 1);
sp                420 security/selinux/ss/services.c 				s[++sp] = !ebitmap_get_bit(&e->names, val1 - 1);
sp                433 security/selinux/ss/services.c 	BUG_ON(sp != 0);
sp                230 security/selinux/xfrm.c 	struct sec_path *sp = skb_sec_path(skb);
sp                232 security/selinux/xfrm.c 	if (sp) {
sp                235 security/selinux/xfrm.c 		for (i = sp->len - 1; i >= 0; i--) {
sp                236 security/selinux/xfrm.c 			struct xfrm_state *x = sp->xvec[i];
sp                408 security/selinux/xfrm.c 	struct sec_path *sp = skb_sec_path(skb);
sp                411 security/selinux/xfrm.c 	if (sp) {
sp                412 security/selinux/xfrm.c 		for (i = 0; i < sp->len; i++) {
sp                413 security/selinux/xfrm.c 			struct xfrm_state *x = sp->xvec[i];
sp                782 security/smack/smack_lsm.c 	struct superblock_smack *sp = sb->s_security;
sp                788 security/smack/smack_lsm.c 	if (sp->smk_flags & SMK_SB_INITIALIZED)
sp                808 security/smack/smack_lsm.c 		sp->smk_root = skp;
sp                809 security/smack/smack_lsm.c 		sp->smk_default = skp;
sp                819 security/smack/smack_lsm.c 			sp->smk_flags |= SMK_SB_UNTRUSTED;
sp                823 security/smack/smack_lsm.c 	sp->smk_flags |= SMK_SB_INITIALIZED;
sp                830 security/smack/smack_lsm.c 			sp->smk_default = skp;
sp                836 security/smack/smack_lsm.c 			sp->smk_floor = skp;
sp                842 security/smack/smack_lsm.c 			sp->smk_hat = skp;
sp                848 security/smack/smack_lsm.c 			sp->smk_root = skp;
sp                854 security/smack/smack_lsm.c 			sp->smk_root = skp;
sp                862 security/smack/smack_lsm.c 	init_inode_smack(inode, sp->smk_root);
sp                215 security/smack/smackfs.c 	struct smack_rule *sp;
sp                225 security/smack/smackfs.c 	list_for_each_entry_rcu(sp, rule_list, list) {
sp                226 security/smack/smackfs.c 		if (sp->smk_object == srp->smk_object &&
sp                227 security/smack/smackfs.c 		    sp->smk_subject == srp->smk_subject) {
sp                229 security/smack/smackfs.c 			sp->smk_access |= srp->smk_access1;
sp                230 security/smack/smackfs.c 			sp->smk_access &= ~srp->smk_access2;
sp                236 security/smack/smackfs.c 		sp = kmem_cache_zalloc(smack_rule_cache, GFP_KERNEL);
sp                237 security/smack/smackfs.c 		if (sp == NULL) {
sp                242 security/smack/smackfs.c 		sp->smk_subject = srp->smk_subject;
sp                243 security/smack/smackfs.c 		sp->smk_object = srp->smk_object;
sp                244 security/smack/smackfs.c 		sp->smk_access = srp->smk_access1 & ~srp->smk_access2;
sp                246 security/smack/smackfs.c 		list_add_rcu(&sp->list, rule_list);
sp               2501 security/smack/smackfs.c 	struct smack_rule *sp;
sp               2534 security/smack/smackfs.c 	list_for_each_entry_rcu(sp, rule_list, list)
sp               2535 security/smack/smackfs.c 		sp->smk_access = 0;
sp                406 security/tomoyo/util.c 	unsigned char *sp = buffer;
sp                410 security/tomoyo/util.c 	while (tomoyo_invalid(*sp))
sp                411 security/tomoyo/util.c 		sp++;
sp                412 security/tomoyo/util.c 	while (*sp) {
sp                416 security/tomoyo/util.c 		while (tomoyo_valid(*sp))
sp                417 security/tomoyo/util.c 			*dp++ = *sp++;
sp                418 security/tomoyo/util.c 		while (tomoyo_invalid(*sp))
sp                419 security/tomoyo/util.c 			sp++;
sp                108 sound/core/seq/seq_ports.h 			 struct snd_seq_client *s, struct snd_seq_client_port *sp,
sp                114 sound/core/seq/seq_ports.h 			    struct snd_seq_client *s, struct snd_seq_client_port *sp,
sp                 19 sound/isa/sb/emu8000_local.h int snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp,
sp                 22 sound/isa/sb/emu8000_local.h int snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp,
sp                136 sound/isa/sb/emu8000_patch.c snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp,
sp                148 sound/isa/sb/emu8000_patch.c 	if (snd_BUG_ON(!sp))
sp                151 sound/isa/sb/emu8000_patch.c 	if (sp->v.size == 0)
sp                155 sound/isa/sb/emu8000_patch.c 	if (sp->v.loopstart > sp->v.loopend)
sp                156 sound/isa/sb/emu8000_patch.c 		swap(sp->v.loopstart, sp->v.loopend);
sp                159 sound/isa/sb/emu8000_patch.c 	truesize = sp->v.size;
sp                160 sound/isa/sb/emu8000_patch.c 	if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP))
sp                161 sound/isa/sb/emu8000_patch.c 		truesize += sp->v.loopend - sp->v.loopstart;
sp                162 sound/isa/sb/emu8000_patch.c 	if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK)
sp                165 sound/isa/sb/emu8000_patch.c 	sp->block = snd_util_mem_alloc(hdr, truesize * 2);
sp                166 sound/isa/sb/emu8000_patch.c 	if (sp->block == NULL) {
sp                172 sound/isa/sb/emu8000_patch.c 	if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) {
sp                173 sound/isa/sb/emu8000_patch.c 		if (!access_ok(data, sp->v.size))
sp                176 sound/isa/sb/emu8000_patch.c 		if (!access_ok(data, sp->v.size * 2))
sp                181 sound/isa/sb/emu8000_patch.c 	sp->v.end -= sp->v.start;
sp                182 sound/isa/sb/emu8000_patch.c 	sp->v.loopstart -= sp->v.start;
sp                183 sound/isa/sb/emu8000_patch.c 	sp->v.loopend -= sp->v.start;
sp                184 sound/isa/sb/emu8000_patch.c 	sp->v.start = 0;
sp                187 sound/isa/sb/emu8000_patch.c 	dram_offset = EMU8000_DRAM_OFFSET + (sp->block->offset >> 1);
sp                191 sound/isa/sb/emu8000_patch.c 	sp->v.truesize = truesize * 2; /* in bytes */
sp                205 sound/isa/sb/emu8000_patch.c 	if (! sp->block->offset) {
sp                213 sound/isa/sb/emu8000_patch.c 	for (i = 0; i < sp->v.size; i++) {
sp                216 sound/isa/sb/emu8000_patch.c 		s = read_word(data, offset, sp->v.mode_flags);
sp                225 sound/isa/sb/emu8000_patch.c 		if (i == sp->v.loopend &&
sp                226 sound/isa/sb/emu8000_patch.c 		    (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP)))
sp                228 sound/isa/sb/emu8000_patch.c 			int looplen = sp->v.loopend - sp->v.loopstart;
sp                233 sound/isa/sb/emu8000_patch.c 				s = read_word(data, offset - k, sp->v.mode_flags);
sp                236 sound/isa/sb/emu8000_patch.c 			if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_BIDIR_LOOP) {
sp                237 sound/isa/sb/emu8000_patch.c 				sp->v.loopend += looplen;
sp                239 sound/isa/sb/emu8000_patch.c 				sp->v.loopstart += looplen;
sp                240 sound/isa/sb/emu8000_patch.c 				sp->v.loopend += looplen;
sp                242 sound/isa/sb/emu8000_patch.c 			sp->v.end += looplen;
sp                247 sound/isa/sb/emu8000_patch.c 	if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK) {
sp                251 sound/isa/sb/emu8000_patch.c 		if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_SINGLESHOT) {
sp                252 sound/isa/sb/emu8000_patch.c 			sp->v.loopstart = sp->v.end + BLANK_LOOP_START;
sp                253 sound/isa/sb/emu8000_patch.c 			sp->v.loopend = sp->v.end + BLANK_LOOP_END;
sp                258 sound/isa/sb/emu8000_patch.c 	sp->v.start += dram_start;
sp                259 sound/isa/sb/emu8000_patch.c 	sp->v.end += dram_start;
sp                260 sound/isa/sb/emu8000_patch.c 	sp->v.loopstart += dram_start;
sp                261 sound/isa/sb/emu8000_patch.c 	sp->v.loopend += dram_start;
sp                273 sound/isa/sb/emu8000_patch.c snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp,
sp                276 sound/isa/sb/emu8000_patch.c 	if (sp->block) {
sp                277 sound/isa/sb/emu8000_patch.c 		snd_util_mem_free(hdr, sp->block);
sp                278 sound/isa/sb/emu8000_patch.c 		sp->block = NULL;
sp                 25 sound/pci/emu10k1/emu10k1_patch.c snd_emu10k1_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp,
sp                 36 sound/pci/emu10k1/emu10k1_patch.c 	if (snd_BUG_ON(!sp || !hdr))
sp                 39 sound/pci/emu10k1/emu10k1_patch.c 	if (sp->v.size == 0) {
sp                 41 sound/pci/emu10k1/emu10k1_patch.c 			"emu: rom font for sample %d\n", sp->v.sample);
sp                 46 sound/pci/emu10k1/emu10k1_patch.c 	sp->v.end -= sp->v.start;
sp                 47 sound/pci/emu10k1/emu10k1_patch.c 	sp->v.loopstart -= sp->v.start;
sp                 48 sound/pci/emu10k1/emu10k1_patch.c 	sp->v.loopend -= sp->v.start;
sp                 49 sound/pci/emu10k1/emu10k1_patch.c 	sp->v.start = 0;
sp                 52 sound/pci/emu10k1/emu10k1_patch.c 	sampleend = sp->v.end;
sp                 53 sound/pci/emu10k1/emu10k1_patch.c 	if (sampleend > sp->v.size)
sp                 54 sound/pci/emu10k1/emu10k1_patch.c 		sampleend = sp->v.size;
sp                 55 sound/pci/emu10k1/emu10k1_patch.c 	loopend = sp->v.loopend;
sp                 60 sound/pci/emu10k1/emu10k1_patch.c 	if (sp->v.loopstart >= sp->v.loopend)
sp                 61 sound/pci/emu10k1/emu10k1_patch.c 		swap(sp->v.loopstart, sp->v.loopend);
sp                 64 sound/pci/emu10k1/emu10k1_patch.c 	truesize = sp->v.size + BLANK_HEAD_SIZE;
sp                 67 sound/pci/emu10k1/emu10k1_patch.c 	if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP))
sp                 68 sound/pci/emu10k1/emu10k1_patch.c 		loopsize = sp->v.loopend - sp->v.loopstart;
sp                 71 sound/pci/emu10k1/emu10k1_patch.c 	if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK)
sp                 76 sound/pci/emu10k1/emu10k1_patch.c 	if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS))
sp                 78 sound/pci/emu10k1/emu10k1_patch.c 	sp->block = snd_emu10k1_synth_alloc(emu, blocksize);
sp                 79 sound/pci/emu10k1/emu10k1_patch.c 	if (sp->block == NULL) {
sp                 86 sound/pci/emu10k1/emu10k1_patch.c 	sp->v.truesize = blocksize;
sp                 91 sound/pci/emu10k1/emu10k1_patch.c 	if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS))
sp                 95 sound/pci/emu10k1/emu10k1_patch.c 	snd_emu10k1_synth_bzero(emu, sp->block, offset, size);
sp                100 sound/pci/emu10k1/emu10k1_patch.c 	if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS))
sp                104 sound/pci/emu10k1/emu10k1_patch.c 	if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) {
sp                105 sound/pci/emu10k1/emu10k1_patch.c 		snd_emu10k1_synth_free(emu, sp->block);
sp                106 sound/pci/emu10k1/emu10k1_patch.c 		sp->block = NULL;
sp                114 sound/pci/emu10k1/emu10k1_patch.c 	if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) {
sp                116 sound/pci/emu10k1/emu10k1_patch.c 		if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS)) {
sp                134 sound/pci/emu10k1/emu10k1_patch.c 		if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_BIDIR_LOOP) {
sp                135 sound/pci/emu10k1/emu10k1_patch.c 			sp->v.loopend += loopsize;
sp                137 sound/pci/emu10k1/emu10k1_patch.c 			sp->v.loopstart += loopsize;
sp                138 sound/pci/emu10k1/emu10k1_patch.c 			sp->v.loopend += loopsize;
sp                141 sound/pci/emu10k1/emu10k1_patch.c 		sp->v.end += loopsize;
sp                146 sound/pci/emu10k1/emu10k1_patch.c 	size = sp->v.size - loopend;
sp                149 sound/pci/emu10k1/emu10k1_patch.c 	if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS))
sp                151 sound/pci/emu10k1/emu10k1_patch.c 	if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) {
sp                152 sound/pci/emu10k1/emu10k1_patch.c 		snd_emu10k1_synth_free(emu, sp->block);
sp                153 sound/pci/emu10k1/emu10k1_patch.c 		sp->block = NULL;
sp                160 sound/pci/emu10k1/emu10k1_patch.c 		snd_emu10k1_synth_bzero(emu, sp->block, offset, blocksize - offset);
sp                162 sound/pci/emu10k1/emu10k1_patch.c 	if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK) {
sp                164 sound/pci/emu10k1/emu10k1_patch.c 		if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_SINGLESHOT) {
sp                165 sound/pci/emu10k1/emu10k1_patch.c 			sp->v.loopstart = sp->v.end + BLANK_LOOP_START;
sp                166 sound/pci/emu10k1/emu10k1_patch.c 			sp->v.loopend = sp->v.end + BLANK_LOOP_END;
sp                171 sound/pci/emu10k1/emu10k1_patch.c 	if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_UNSIGNED) {
sp                173 sound/pci/emu10k1/emu10k1_patch.c 		if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS)) {
sp                186 sound/pci/emu10k1/emu10k1_patch.c 	if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS))
sp                188 sound/pci/emu10k1/emu10k1_patch.c 	sp->v.start += start_addr;
sp                189 sound/pci/emu10k1/emu10k1_patch.c 	sp->v.end += start_addr;
sp                190 sound/pci/emu10k1/emu10k1_patch.c 	sp->v.loopstart += start_addr;
sp                191 sound/pci/emu10k1/emu10k1_patch.c 	sp->v.loopend += start_addr;
sp                200 sound/pci/emu10k1/emu10k1_patch.c snd_emu10k1_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp,
sp                206 sound/pci/emu10k1/emu10k1_patch.c 	if (snd_BUG_ON(!sp || !hdr))
sp                209 sound/pci/emu10k1/emu10k1_patch.c 	if (sp->block) {
sp                210 sound/pci/emu10k1/emu10k1_patch.c 		snd_emu10k1_synth_free(emu, sp->block);
sp                211 sound/pci/emu10k1/emu10k1_patch.c 		sp->block = NULL;
sp                 16 sound/pci/emu10k1/emu10k1_synth_local.h 			   struct snd_sf_sample *sp,
sp                 20 sound/pci/emu10k1/emu10k1_synth_local.h 			    struct snd_sf_sample *sp,
sp                183 sound/soc/meson/axg-pdm.c 	unsigned int spmax, sp, val;
sp                195 sound/soc/meson/axg-pdm.c 	sp = spmax * 3 / 4;
sp                198 sound/soc/meson/axg-pdm.c 		val |= sp << (PDM_CHAN_CTRL_POINTER_WIDTH * i);
sp                 54 sound/synth/emux/emux.c static int sf_sample_new(void *private_data, struct snd_sf_sample *sp,
sp                 59 sound/synth/emux/emux.c 	return emu->ops.sample_new(emu, sp, hdr, buf, count);
sp                 63 sound/synth/emux/emux.c static int sf_sample_free(void *private_data, struct snd_sf_sample *sp,
sp                 67 sound/synth/emux/emux.c 	return emu->ops.sample_free(emu, sp, hdr);
sp                 35 sound/synth/emux/soundfont.c 			       struct snd_soundfont *sf, struct snd_sf_sample *sp);
sp                 39 sound/synth/emux/soundfont.c 			     struct snd_soundfont *sf, struct snd_sf_sample *sp);
sp                369 sound/synth/emux/soundfont.c 		   struct snd_sf_sample *sp)
sp                371 sound/synth/emux/soundfont.c 	sp->counter = sflist->sample_counter++;
sp                382 sound/synth/emux/soundfont.c 	struct snd_sf_sample *sp;
sp                384 sound/synth/emux/soundfont.c 	if ((sp = kzalloc(sizeof(*sp), GFP_KERNEL)) == NULL)
sp                387 sound/synth/emux/soundfont.c 	sp->next = sf->samples;
sp                388 sound/synth/emux/soundfont.c 	sf->samples = sp;
sp                390 sound/synth/emux/soundfont.c 	set_sample_counter(sflist, sf, sp);
sp                391 sound/synth/emux/soundfont.c 	return sp;
sp                400 sound/synth/emux/soundfont.c 		 struct snd_sf_sample *sp)
sp                403 sound/synth/emux/soundfont.c 	if (sp == sf->samples) {
sp                404 sound/synth/emux/soundfont.c 		sf->samples = sp->next;
sp                405 sound/synth/emux/soundfont.c 		kfree(sp);
sp                699 sound/synth/emux/soundfont.c 	struct snd_sf_sample *sp;
sp                726 sound/synth/emux/soundfont.c 	if ((sp = sf_sample_new(sflist, sf)) == NULL)
sp                729 sound/synth/emux/soundfont.c 	sp->v = sample_info;
sp                730 sound/synth/emux/soundfont.c 	sp->v.sf_id = sf->id;
sp                731 sound/synth/emux/soundfont.c 	sp->v.dummy = 0;
sp                732 sound/synth/emux/soundfont.c 	sp->v.truesize = sp->v.size;
sp                737 sound/synth/emux/soundfont.c 	if (sp->v.size > 0) {
sp                740 sound/synth/emux/soundfont.c 			(sflist->callback.private_data, sp, sflist->memhdr,
sp                743 sound/synth/emux/soundfont.c 			sf_sample_delete(sflist, sf, sp);
sp                746 sound/synth/emux/soundfont.c 		sflist->mem_used += sp->v.truesize;
sp               1359 sound/synth/emux/soundfont.c 	struct snd_sf_sample *sp, *nextsp;
sp               1367 sound/synth/emux/soundfont.c 		for (sp = sf->samples; sp; sp = nextsp) {
sp               1368 sound/synth/emux/soundfont.c 			nextsp = sp->next;
sp               1371 sound/synth/emux/soundfont.c 							     sp, sflist->memhdr);
sp               1372 sound/synth/emux/soundfont.c 			kfree(sp);
sp               1447 sound/synth/emux/soundfont.c 	struct snd_sf_sample *sp, *nextsp;
sp               1466 sound/synth/emux/soundfont.c 		for (sp = sf->samples; sp; sp = nextsp) {
sp               1467 sound/synth/emux/soundfont.c 			if (sp->counter < sflist->sample_locked)
sp               1469 sound/synth/emux/soundfont.c 			nextsp = sp->next;
sp               1471 sound/synth/emux/soundfont.c 			sflist->mem_used -= sp->v.truesize;
sp               1474 sound/synth/emux/soundfont.c 							     sp, sflist->memhdr);
sp               1475 sound/synth/emux/soundfont.c 			kfree(sp);
sp               1006 tools/bpf/bpf_dbg.c 	char sp, *token, separator = ',';
sp               1013 tools/bpf/bpf_dbg.c 	if (sscanf(bpf_string, "%hu%c", &bpf_len, &sp) != 2 ||
sp               1014 tools/bpf/bpf_dbg.c 	    sp != separator || bpf_len > BPF_MAXINSNS || bpf_len == 0) {
sp               1270 tools/lib/traceevent/parse-filter.c 	char *sp;
sp               1307 tools/lib/traceevent/parse-filter.c 		sys_name = strtok_r(this_event, "/", &sp);
sp               1308 tools/lib/traceevent/parse-filter.c 		event_name = strtok_r(NULL, "/", &sp);
sp                 18 tools/perf/arch/arm/tests/dwarf-unwind.c 	unsigned long sp;
sp                 27 tools/perf/arch/arm/tests/dwarf-unwind.c 	sp = (unsigned long) regs[PERF_REG_ARM_SP];
sp                 29 tools/perf/arch/arm/tests/dwarf-unwind.c 	map = map_groups__find(thread->mg, (u64)sp);
sp                 36 tools/perf/arch/arm/tests/dwarf-unwind.c 	stack_size = map->end - sp;
sp                 39 tools/perf/arch/arm/tests/dwarf-unwind.c 	memcpy(buf, (void *) sp, stack_size);
sp                 18 tools/perf/arch/arm64/tests/dwarf-unwind.c 	unsigned long sp;
sp                 27 tools/perf/arch/arm64/tests/dwarf-unwind.c 	sp = (unsigned long) regs[PERF_REG_ARM64_SP];
sp                 29 tools/perf/arch/arm64/tests/dwarf-unwind.c 	map = map_groups__find(thread->mg, (u64)sp);
sp                 36 tools/perf/arch/arm64/tests/dwarf-unwind.c 	stack_size = map->end - sp;
sp                 39 tools/perf/arch/arm64/tests/dwarf-unwind.c 	memcpy(buf, (void *) sp, stack_size);
sp                 19 tools/perf/arch/powerpc/tests/dwarf-unwind.c 	unsigned long sp;
sp                 28 tools/perf/arch/powerpc/tests/dwarf-unwind.c 	sp = (unsigned long) regs[PERF_REG_POWERPC_R1];
sp                 30 tools/perf/arch/powerpc/tests/dwarf-unwind.c 	map = map_groups__find(thread->mg, (u64)sp);
sp                 37 tools/perf/arch/powerpc/tests/dwarf-unwind.c 	stack_size = map->end - sp;
sp                 40 tools/perf/arch/powerpc/tests/dwarf-unwind.c 	memcpy(buf, (void *) sp, stack_size);
sp                 19 tools/perf/arch/x86/tests/dwarf-unwind.c 	unsigned long sp;
sp                 28 tools/perf/arch/x86/tests/dwarf-unwind.c 	sp = (unsigned long) regs[PERF_REG_X86_SP];
sp                 30 tools/perf/arch/x86/tests/dwarf-unwind.c 	map = map_groups__find(thread->mg, (u64)sp);
sp                 37 tools/perf/arch/x86/tests/dwarf-unwind.c 	stack_size = map->end - sp;
sp                 40 tools/perf/arch/x86/tests/dwarf-unwind.c 	memcpy(buf, (void *) sp, stack_size);
sp                 88 tools/perf/arch/x86/util/perf_regs.c 	SDT_NAME_REG(rsp, sp),
sp                 89 tools/perf/arch/x86/util/perf_regs.c 	SDT_NAME_REG(esp, sp),
sp                 90 tools/perf/arch/x86/util/perf_regs.c 	SDT_NAME_REG(spl, sp),
sp               3502 tools/power/x86/turbostat/turbostat.c 	char *sp;
sp               3518 tools/power/x86/turbostat/turbostat.c 		sp = strchr(name_buf, '-');
sp               3519 tools/power/x86/turbostat/turbostat.c 		if (!sp)
sp               3520 tools/power/x86/turbostat/turbostat.c 			sp = strchrnul(name_buf, '\n');
sp               3521 tools/power/x86/turbostat/turbostat.c 		*sp = '\0';
sp               5513 tools/power/x86/turbostat/turbostat.c 	char *sp;
sp               5529 tools/power/x86/turbostat/turbostat.c 		sp = strchr(name_buf, '-');
sp               5530 tools/power/x86/turbostat/turbostat.c 		if (!sp)
sp               5531 tools/power/x86/turbostat/turbostat.c 			sp = strchrnul(name_buf, '\n');
sp               5532 tools/power/x86/turbostat/turbostat.c 		*sp = '%';
sp               5533 tools/power/x86/turbostat/turbostat.c 		*(sp + 1) = '\0';
sp               5556 tools/power/x86/turbostat/turbostat.c 		sp = strchr(name_buf, '-');
sp               5557 tools/power/x86/turbostat/turbostat.c 		if (!sp)
sp               5558 tools/power/x86/turbostat/turbostat.c 			sp = strchrnul(name_buf, '\n');
sp               5559 tools/power/x86/turbostat/turbostat.c 		*sp = '\0';
sp                378 tools/testing/selftests/bpf/bpf_helpers.h #define PT_REGS_RET(x) ((x)->sp)
sp                381 tools/testing/selftests/bpf/bpf_helpers.h #define PT_REGS_SP(x) ((x)->sp)
sp                454 tools/testing/selftests/bpf/bpf_helpers.h #define PT_REGS_SP(x) (((PT_REGS_ARM64 *)(x))->sp)
sp                478 tools/testing/selftests/bpf/bpf_helpers.h #define PT_REGS_SP(x) ((x)->sp)
sp                  7 tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h #define r1 sp
sp                 23 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/include_srcu.c #define synchronize_srcu(sp) synchronize_srcu_original(sp)
sp                 25 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/simple_sync_srcu.c bool try_check_zero(struct srcu_struct *sp, int idx, int trycount);
sp                 26 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/simple_sync_srcu.c void srcu_flip(struct srcu_struct *sp);
sp                 29 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/simple_sync_srcu.c void synchronize_srcu(struct srcu_struct *sp)
sp                 42 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/simple_sync_srcu.c 	idx = 1 ^ (sp->completed & 1);
sp                 46 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/simple_sync_srcu.c 	assume(try_check_zero(sp, idx, trycount));
sp                 48 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/simple_sync_srcu.c 	srcu_flip(sp);
sp                 50 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/simple_sync_srcu.c 	assume(try_check_zero(sp, idx^1, trycount));
sp                 44 tools/testing/selftests/sigaltstack/sas.c 	register unsigned long sp asm("%15");
sp                 46 tools/testing/selftests/sigaltstack/sas.c 	register unsigned long sp asm("sp");
sp                 49 tools/testing/selftests/sigaltstack/sas.c 	if (sp < (unsigned long)sstack ||
sp                 50 tools/testing/selftests/sigaltstack/sas.c 			sp >= (unsigned long)sstack + SIGSTKSZ) {
sp                 11 tools/testing/selftests/x86/check_initial_reg_state.c unsigned long ax, bx, cx, dx, si, di, bp, sp, flags;
sp                 58 tools/testing/selftests/x86/check_initial_reg_state.c 	if (sp == 0) {
sp                 77 tools/testing/selftests/x86/check_initial_reg_state.c 		SHOW(sp);
sp                178 tools/testing/selftests/x86/test_syscall_vdso.c 	sigset_t *sp;
sp                197 tools/testing/selftests/x86/test_syscall_vdso.c 	sigmask_desc.sp = &sigmask;