sr                185 arch/arc/include/asm/entry-arcv2.h 	sr	r10, [AUX_USER_SP]
sr                203 arch/arc/include/asm/entry-arcv2.h 	sr	r10, [lp_end]
sr                204 arch/arc/include/asm/entry-arcv2.h 	sr	r11, [lp_start]
sr                245 arch/arc/include/asm/entry-arcv2.h 	sr	r10, [erbta]
sr                248 arch/arc/include/asm/entry-arcv2.h 	sr	r10, [eret]
sr                249 arch/arc/include/asm/entry-arcv2.h 	sr	r11, [erstatus]
sr                117 arch/arc/include/asm/entry-compact.h 	sr	r9, [erstatus]
sr                119 arch/arc/include/asm/entry-compact.h 	sr	r9, [eret]
sr                134 arch/arc/include/asm/entry-compact.h 	sr  \reg, [ARC_REG_SCRATCH_DATA0]
sr                 48 arch/arc/include/asm/entry.h 	sr	r9, [\aux]
sr                 40 arch/arc/include/asm/tlb-mmu1.h sr  r0,[ARC_REG_TLBINDEX]
sr                 62 arch/arc/include/asm/tlb-mmu1.h sr      r0,[ARC_REG_TLBPD0]     /* write instruction address to TLBPD0 */
sr                 63 arch/arc/include/asm/tlb-mmu1.h sr      TLBProbe, [ARC_REG_TLBCOMMAND] /* Look for instruction */
sr                 65 arch/arc/include/asm/tlb-mmu1.h sr      r1,[ARC_REG_TLBPD0]     /* restore TLBPD0 */
sr                 69 arch/arc/include/asm/tlb-mmu1.h sr      r0,[ARC_REG_TLBINDEX]   /* and put it back */
sr                 71 arch/arc/include/asm/tlb-mmu1.h sr  TLBGetIndex, [ARC_REG_TLBCOMMAND]
sr                 85 arch/arc/include/asm/tlb-mmu1.h sr      r0,[ARC_REG_TLBPD0]     /* write instruction address to TLBPD0 */
sr                 86 arch/arc/include/asm/tlb-mmu1.h sr      TLBProbe, [ARC_REG_TLBCOMMAND] /* Look for instruction */
sr                 88 arch/arc/include/asm/tlb-mmu1.h sr      r3,[ARC_REG_TLBPD0]     /* restore TLBPD0 */
sr                 90 arch/arc/include/asm/tlb-mmu1.h sr      TLBGetIndex, [ARC_REG_TLBCOMMAND]
sr                 94 arch/arc/include/asm/tlb-mmu1.h sr      r1,[ARC_REG_TLBINDEX]   /* and put it back */
sr                 15 arch/arm/mach-omap2/smartreflex-class3.c static int sr_class3_enable(struct omap_sr *sr)
sr                 17 arch/arm/mach-omap2/smartreflex-class3.c 	unsigned long volt = voltdm_get_voltage(sr->voltdm);
sr                 21 arch/arm/mach-omap2/smartreflex-class3.c 			__func__, sr->name);
sr                 25 arch/arm/mach-omap2/smartreflex-class3.c 	omap_vp_enable(sr->voltdm);
sr                 26 arch/arm/mach-omap2/smartreflex-class3.c 	return sr_enable(sr, volt);
sr                 29 arch/arm/mach-omap2/smartreflex-class3.c static int sr_class3_disable(struct omap_sr *sr, int is_volt_reset)
sr                 31 arch/arm/mach-omap2/smartreflex-class3.c 	sr_disable_errgen(sr);
sr                 32 arch/arm/mach-omap2/smartreflex-class3.c 	omap_vp_disable(sr->voltdm);
sr                 33 arch/arm/mach-omap2/smartreflex-class3.c 	sr_disable(sr);
sr                 35 arch/arm/mach-omap2/smartreflex-class3.c 		voltdm_reset(sr->voltdm);
sr                 40 arch/arm/mach-omap2/smartreflex-class3.c static int sr_class3_configure(struct omap_sr *sr)
sr                 42 arch/arm/mach-omap2/smartreflex-class3.c 	return sr_configure_errgen(sr);
sr                317 arch/arm64/kvm/sys_regs.c 	u32 sr = sys_reg((u32)r->Op0, (u32)r->Op1,
sr                325 arch/arm64/kvm/sys_regs.c 	if (p->is_write && sr == SYS_LORID_EL1)
sr                 10 arch/csky/abiv1/inc/abi/elf.h 	pr_reg[3] = regs->sr;			\
sr                 11 arch/csky/abiv2/inc/abi/elf.h 	pr_reg[3] = regs->sr;			\
sr                 45 arch/csky/include/asm/processor.h 	unsigned long  sr;        /* saved status register */
sr                 54 arch/csky/include/asm/processor.h 	.sr = DEFAULT_PSR_VALUE, \
sr                 70 arch/csky/include/asm/processor.h 	(_regs)->sr &= ~PS_S;						\
sr                 21 arch/csky/include/asm/ptrace.h #define user_mode(regs) (!((regs)->sr & PS_S))
sr                 27 arch/csky/include/asm/ptrace.h 	return ((regs->sr >> 16) & 0xff) == VEC_TRAP0;
sr                 32 arch/csky/include/asm/ptrace.h 	regs->sr &= ~(0xff << 16);
sr                 13 arch/csky/include/uapi/asm/ptrace.h 	unsigned long	sr;
sr                 22 arch/csky/kernel/asm-offsets.c 	DEFINE(THREAD_SR,         offsetof(struct thread_struct, sr));
sr                 37 arch/csky/kernel/asm-offsets.c 	DEFINE(PT_SR,             offsetof(struct pt_regs, sr));
sr                 61 arch/csky/kernel/process.c 		childregs->sr = mfcr("psr");
sr                 43 arch/csky/kernel/ptrace.c 	regs->sr = (regs->sr & TRACE_MODE_MASK) | TRACE_MODE_RUN;
sr                 51 arch/csky/kernel/ptrace.c 	regs->sr = (regs->sr & TRACE_MODE_MASK) | TRACE_MODE_SI;
sr                 99 arch/csky/kernel/ptrace.c 	regs.sr = task_pt_regs(target)->sr;
sr                265 arch/csky/kernel/ptrace.c 	pr_info("PSR: 0x%08lx\n", (long)fp->sr);
sr                120 arch/csky/kernel/traps.c 	vector = (regs->sr >> 16) & 0xff;
sr                182 arch/csky/mm/fault.c 		tsk->thread.trap_no = (regs->sr >> 16) & 0xff;
sr                188 arch/csky/mm/fault.c 	tsk->thread.trap_no = (regs->sr >> 16) & 0xff;
sr                204 arch/csky/mm/fault.c 	tsk->thread.trap_no = (regs->sr >> 16) & 0xff;
sr                214 arch/csky/mm/fault.c 	tsk->thread.trap_no = (regs->sr >> 16) & 0xff;
sr                 41 arch/h8300/mm/fault.c 		 regs->sr, regs->pc, address, error_code);
sr                616 arch/ia64/kernel/unwind.c push (struct unw_state_record *sr)
sr                625 arch/ia64/kernel/unwind.c 	memcpy(rs, &sr->curr, sizeof(*rs));
sr                626 arch/ia64/kernel/unwind.c 	sr->curr.next = rs;
sr                630 arch/ia64/kernel/unwind.c pop (struct unw_state_record *sr)
sr                632 arch/ia64/kernel/unwind.c 	struct unw_reg_state *rs = sr->curr.next;
sr                638 arch/ia64/kernel/unwind.c 	memcpy(&sr->curr, rs, sizeof(*rs));
sr                746 arch/ia64/kernel/unwind.c finish_prologue (struct unw_state_record *sr)
sr                757 arch/ia64/kernel/unwind.c 		reg = sr->curr.reg + unw.save_order[i];
sr                760 arch/ia64/kernel/unwind.c 			reg->val = sr->gr_save_loc++;
sr                770 arch/ia64/kernel/unwind.c 	if (sr->imask) {
sr                771 arch/ia64/kernel/unwind.c 		unsigned char kind, mask = 0, *cp = sr->imask;
sr                778 arch/ia64/kernel/unwind.c 		regs[0] = sr->curr.reg + UNW_REG_F2;
sr                779 arch/ia64/kernel/unwind.c 		regs[1] = sr->curr.reg + UNW_REG_R4;
sr                780 arch/ia64/kernel/unwind.c 		regs[2] = sr->curr.reg + UNW_REG_B1;
sr                782 arch/ia64/kernel/unwind.c 		for (t = 0; t < sr->region_len; ++t) {
sr                787 arch/ia64/kernel/unwind.c 				spill_next_when(&regs[kind - 1], sr->curr.reg + limit[kind - 1],
sr                788 arch/ia64/kernel/unwind.c 						sr->region_start + t);
sr                794 arch/ia64/kernel/unwind.c 	if (sr->any_spills) {
sr                795 arch/ia64/kernel/unwind.c 		off = sr->spill_offset;
sr                796 arch/ia64/kernel/unwind.c 		alloc_spill_area(&off, 16, sr->curr.reg + UNW_REG_F2, sr->curr.reg + UNW_REG_F31);
sr                797 arch/ia64/kernel/unwind.c 		alloc_spill_area(&off,  8, sr->curr.reg + UNW_REG_B1, sr->curr.reg + UNW_REG_B5);
sr                798 arch/ia64/kernel/unwind.c 		alloc_spill_area(&off,  8, sr->curr.reg + UNW_REG_R4, sr->curr.reg + UNW_REG_R7);
sr                808 arch/ia64/kernel/unwind.c 	       struct unw_state_record *sr)
sr                812 arch/ia64/kernel/unwind.c 	if (!(sr->in_body || sr->first_region))
sr                813 arch/ia64/kernel/unwind.c 		finish_prologue(sr);
sr                814 arch/ia64/kernel/unwind.c 	sr->first_region = 0;
sr                817 arch/ia64/kernel/unwind.c 	if (sr->when_target < sr->region_start + sr->region_len) {
sr                818 arch/ia64/kernel/unwind.c 		sr->done = 1;
sr                822 arch/ia64/kernel/unwind.c 	region_start = sr->region_start + sr->region_len;
sr                824 arch/ia64/kernel/unwind.c 	for (i = 0; i < sr->epilogue_count; ++i)
sr                825 arch/ia64/kernel/unwind.c 		pop(sr);
sr                826 arch/ia64/kernel/unwind.c 	sr->epilogue_count = 0;
sr                827 arch/ia64/kernel/unwind.c 	sr->epilogue_start = UNW_WHEN_NEVER;
sr                829 arch/ia64/kernel/unwind.c 	sr->region_start = region_start;
sr                830 arch/ia64/kernel/unwind.c 	sr->region_len = rlen;
sr                831 arch/ia64/kernel/unwind.c 	sr->in_body = body;
sr                834 arch/ia64/kernel/unwind.c 		push(sr);
sr                838 arch/ia64/kernel/unwind.c 				set_reg(sr->curr.reg + unw.save_order[i], UNW_WHERE_GR,
sr                839 arch/ia64/kernel/unwind.c 					sr->region_start + sr->region_len - 1, grsave++);
sr                842 arch/ia64/kernel/unwind.c 		sr->gr_save_loc = grsave;
sr                843 arch/ia64/kernel/unwind.c 		sr->any_spills = 0;
sr                844 arch/ia64/kernel/unwind.c 		sr->imask = NULL;
sr                845 arch/ia64/kernel/unwind.c 		sr->spill_offset = 0x10;	/* default to psp+16 */
sr                854 arch/ia64/kernel/unwind.c desc_abi (unsigned char abi, unsigned char context, struct unw_state_record *sr)
sr                857 arch/ia64/kernel/unwind.c 		sr->flags |= UNW_FLAG_INTERRUPT_FRAME;
sr                866 arch/ia64/kernel/unwind.c desc_br_gr (unsigned char brmask, unsigned char gr, struct unw_state_record *sr)
sr                872 arch/ia64/kernel/unwind.c 			set_reg(sr->curr.reg + UNW_REG_B1 + i, UNW_WHERE_GR,
sr                873 arch/ia64/kernel/unwind.c 				sr->region_start + sr->region_len - 1, gr++);
sr                879 arch/ia64/kernel/unwind.c desc_br_mem (unsigned char brmask, struct unw_state_record *sr)
sr                885 arch/ia64/kernel/unwind.c 			set_reg(sr->curr.reg + UNW_REG_B1 + i, UNW_WHERE_SPILL_HOME,
sr                886 arch/ia64/kernel/unwind.c 				sr->region_start + sr->region_len - 1, 0);
sr                887 arch/ia64/kernel/unwind.c 			sr->any_spills = 1;
sr                894 arch/ia64/kernel/unwind.c desc_frgr_mem (unsigned char grmask, unw_word frmask, struct unw_state_record *sr)
sr                900 arch/ia64/kernel/unwind.c 			set_reg(sr->curr.reg + UNW_REG_R4 + i, UNW_WHERE_SPILL_HOME,
sr                901 arch/ia64/kernel/unwind.c 				sr->region_start + sr->region_len - 1, 0);
sr                902 arch/ia64/kernel/unwind.c 			sr->any_spills = 1;
sr                909 arch/ia64/kernel/unwind.c 			set_reg(sr->curr.reg + base + i, UNW_WHERE_SPILL_HOME,
sr                910 arch/ia64/kernel/unwind.c 				sr->region_start + sr->region_len - 1, 0);
sr                911 arch/ia64/kernel/unwind.c 			sr->any_spills = 1;
sr                918 arch/ia64/kernel/unwind.c desc_fr_mem (unsigned char frmask, struct unw_state_record *sr)
sr                924 arch/ia64/kernel/unwind.c 			set_reg(sr->curr.reg + UNW_REG_F2 + i, UNW_WHERE_SPILL_HOME,
sr                925 arch/ia64/kernel/unwind.c 				sr->region_start + sr->region_len - 1, 0);
sr                926 arch/ia64/kernel/unwind.c 			sr->any_spills = 1;
sr                933 arch/ia64/kernel/unwind.c desc_gr_gr (unsigned char grmask, unsigned char gr, struct unw_state_record *sr)
sr                939 arch/ia64/kernel/unwind.c 			set_reg(sr->curr.reg + UNW_REG_R4 + i, UNW_WHERE_GR,
sr                940 arch/ia64/kernel/unwind.c 				sr->region_start + sr->region_len - 1, gr++);
sr                946 arch/ia64/kernel/unwind.c desc_gr_mem (unsigned char grmask, struct unw_state_record *sr)
sr                952 arch/ia64/kernel/unwind.c 			set_reg(sr->curr.reg + UNW_REG_R4 + i, UNW_WHERE_SPILL_HOME,
sr                953 arch/ia64/kernel/unwind.c 				sr->region_start + sr->region_len - 1, 0);
sr                954 arch/ia64/kernel/unwind.c 			sr->any_spills = 1;
sr                961 arch/ia64/kernel/unwind.c desc_mem_stack_f (unw_word t, unw_word size, struct unw_state_record *sr)
sr                963 arch/ia64/kernel/unwind.c 	set_reg(sr->curr.reg + UNW_REG_PSP, UNW_WHERE_NONE,
sr                964 arch/ia64/kernel/unwind.c 		sr->region_start + min_t(int, t, sr->region_len - 1), 16*size);
sr                968 arch/ia64/kernel/unwind.c desc_mem_stack_v (unw_word t, struct unw_state_record *sr)
sr                970 arch/ia64/kernel/unwind.c 	sr->curr.reg[UNW_REG_PSP].when = sr->region_start + min_t(int, t, sr->region_len - 1);
sr                974 arch/ia64/kernel/unwind.c desc_reg_gr (unsigned char reg, unsigned char dst, struct unw_state_record *sr)
sr                976 arch/ia64/kernel/unwind.c 	set_reg(sr->curr.reg + reg, UNW_WHERE_GR, sr->region_start + sr->region_len - 1, dst);
sr                980 arch/ia64/kernel/unwind.c desc_reg_psprel (unsigned char reg, unw_word pspoff, struct unw_state_record *sr)
sr                982 arch/ia64/kernel/unwind.c 	set_reg(sr->curr.reg + reg, UNW_WHERE_PSPREL, sr->region_start + sr->region_len - 1,
sr                987 arch/ia64/kernel/unwind.c desc_reg_sprel (unsigned char reg, unw_word spoff, struct unw_state_record *sr)
sr                989 arch/ia64/kernel/unwind.c 	set_reg(sr->curr.reg + reg, UNW_WHERE_SPREL, sr->region_start + sr->region_len - 1,
sr                994 arch/ia64/kernel/unwind.c desc_rp_br (unsigned char dst, struct unw_state_record *sr)
sr                996 arch/ia64/kernel/unwind.c 	sr->return_link_reg = dst;
sr               1000 arch/ia64/kernel/unwind.c desc_reg_when (unsigned char regnum, unw_word t, struct unw_state_record *sr)
sr               1002 arch/ia64/kernel/unwind.c 	struct unw_reg_info *reg = sr->curr.reg + regnum;
sr               1006 arch/ia64/kernel/unwind.c 	reg->when = sr->region_start + min_t(int, t, sr->region_len - 1);
sr               1010 arch/ia64/kernel/unwind.c desc_spill_base (unw_word pspoff, struct unw_state_record *sr)
sr               1012 arch/ia64/kernel/unwind.c 	sr->spill_offset = 0x10 - 4*pspoff;
sr               1016 arch/ia64/kernel/unwind.c desc_spill_mask (unsigned char *imaskp, struct unw_state_record *sr)
sr               1018 arch/ia64/kernel/unwind.c 	sr->imask = imaskp;
sr               1019 arch/ia64/kernel/unwind.c 	return imaskp + (2*sr->region_len + 7)/8;
sr               1026 arch/ia64/kernel/unwind.c desc_epilogue (unw_word t, unw_word ecount, struct unw_state_record *sr)
sr               1028 arch/ia64/kernel/unwind.c 	sr->epilogue_start = sr->region_start + sr->region_len - 1 - t;
sr               1029 arch/ia64/kernel/unwind.c 	sr->epilogue_count = ecount + 1;
sr               1033 arch/ia64/kernel/unwind.c desc_copy_state (unw_word label, struct unw_state_record *sr)
sr               1037 arch/ia64/kernel/unwind.c 	for (ls = sr->labeled_states; ls; ls = ls->next) {
sr               1039 arch/ia64/kernel/unwind.c 			free_state_stack(&sr->curr);
sr               1040 arch/ia64/kernel/unwind.c 			memcpy(&sr->curr, &ls->saved_state, sizeof(sr->curr));
sr               1041 arch/ia64/kernel/unwind.c 			sr->curr.next = dup_state_stack(ls->saved_state.next);
sr               1049 arch/ia64/kernel/unwind.c desc_label_state (unw_word label, struct unw_state_record *sr)
sr               1059 arch/ia64/kernel/unwind.c 	memcpy(&ls->saved_state, &sr->curr, sizeof(ls->saved_state));
sr               1060 arch/ia64/kernel/unwind.c 	ls->saved_state.next = dup_state_stack(sr->curr.next);
sr               1063 arch/ia64/kernel/unwind.c 	ls->next = sr->labeled_states;
sr               1064 arch/ia64/kernel/unwind.c 	sr->labeled_states = ls;
sr               1072 arch/ia64/kernel/unwind.c desc_is_active (unsigned char qp, unw_word t, struct unw_state_record *sr)
sr               1074 arch/ia64/kernel/unwind.c 	if (sr->when_target <= sr->region_start + min_t(int, t, sr->region_len - 1))
sr               1077 arch/ia64/kernel/unwind.c 		if ((sr->pr_val & (1UL << qp)) == 0)
sr               1079 arch/ia64/kernel/unwind.c 		sr->pr_mask |= (1UL << qp);
sr               1085 arch/ia64/kernel/unwind.c desc_restore_p (unsigned char qp, unw_word t, unsigned char abreg, struct unw_state_record *sr)
sr               1089 arch/ia64/kernel/unwind.c 	if (!desc_is_active(qp, t, sr))
sr               1092 arch/ia64/kernel/unwind.c 	r = sr->curr.reg + decode_abreg(abreg, 0);
sr               1100 arch/ia64/kernel/unwind.c 		     unsigned char ytreg, struct unw_state_record *sr)
sr               1105 arch/ia64/kernel/unwind.c 	if (!desc_is_active(qp, t, sr))
sr               1113 arch/ia64/kernel/unwind.c 	r = sr->curr.reg + decode_abreg(abreg, 0);
sr               1115 arch/ia64/kernel/unwind.c 	r->when = sr->region_start + min_t(int, t, sr->region_len - 1);
sr               1121 arch/ia64/kernel/unwind.c 		     struct unw_state_record *sr)
sr               1125 arch/ia64/kernel/unwind.c 	if (!desc_is_active(qp, t, sr))
sr               1128 arch/ia64/kernel/unwind.c 	r = sr->curr.reg + decode_abreg(abreg, 1);
sr               1130 arch/ia64/kernel/unwind.c 	r->when = sr->region_start + min_t(int, t, sr->region_len - 1);
sr               1136 arch/ia64/kernel/unwind.c 		       struct unw_state_record *sr)
sr               1140 arch/ia64/kernel/unwind.c 	if (!desc_is_active(qp, t, sr))
sr               1143 arch/ia64/kernel/unwind.c 	r = sr->curr.reg + decode_abreg(abreg, 1);
sr               1145 arch/ia64/kernel/unwind.c 	r->when = sr->region_start + min_t(int, t, sr->region_len - 1);
sr               1333 arch/ia64/kernel/unwind.c script_finalize (struct unw_script *script, struct unw_state_record *sr)
sr               1335 arch/ia64/kernel/unwind.c 	script->pr_mask = sr->pr_mask;
sr               1336 arch/ia64/kernel/unwind.c 	script->pr_val = sr->pr_val;
sr               1357 arch/ia64/kernel/unwind.c emit_nat_info (struct unw_state_record *sr, int i, struct unw_script *script)
sr               1359 arch/ia64/kernel/unwind.c 	struct unw_reg_info *r = sr->curr.reg + i;
sr               1402 arch/ia64/kernel/unwind.c compile_reg (struct unw_state_record *sr, int i, struct unw_script *script)
sr               1404 arch/ia64/kernel/unwind.c 	struct unw_reg_info *r = sr->curr.reg + i;
sr               1410 arch/ia64/kernel/unwind.c 	if (r->where == UNW_WHERE_NONE || r->when >= sr->when_target)
sr               1485 arch/ia64/kernel/unwind.c 		emit_nat_info(sr, i, script);
sr               1533 arch/ia64/kernel/unwind.c 	struct unw_state_record sr;
sr               1545 arch/ia64/kernel/unwind.c 	memset(&sr, 0, sizeof(sr));
sr               1546 arch/ia64/kernel/unwind.c 	for (r = sr.curr.reg; r < sr.curr.reg + UNW_NUM_REGS; ++r)
sr               1548 arch/ia64/kernel/unwind.c 	sr.pr_val = info->pr;
sr               1588 arch/ia64/kernel/unwind.c 		sr.curr.reg[UNW_REG_RP].where = UNW_WHERE_BR;
sr               1589 arch/ia64/kernel/unwind.c 		sr.curr.reg[UNW_REG_RP].when = -1;
sr               1590 arch/ia64/kernel/unwind.c 		sr.curr.reg[UNW_REG_RP].val = 0;
sr               1591 arch/ia64/kernel/unwind.c 		compile_reg(&sr, UNW_REG_RP, script);
sr               1592 arch/ia64/kernel/unwind.c 		script_finalize(script, &sr);
sr               1598 arch/ia64/kernel/unwind.c 	sr.when_target = (3*((ip & ~0xfUL) - (table->segment_base + e->start_offset))/16
sr               1604 arch/ia64/kernel/unwind.c 	while (!sr.done && dp < desc_end)
sr               1605 arch/ia64/kernel/unwind.c 		dp = unw_decode(dp, sr.in_body, &sr);
sr               1607 arch/ia64/kernel/unwind.c 	if (sr.when_target > sr.epilogue_start) {
sr               1612 arch/ia64/kernel/unwind.c 		sr.curr.reg[UNW_REG_PSP].val = 0;
sr               1613 arch/ia64/kernel/unwind.c 		sr.curr.reg[UNW_REG_PSP].where = UNW_WHERE_NONE;
sr               1614 arch/ia64/kernel/unwind.c 		sr.curr.reg[UNW_REG_PSP].when = UNW_WHEN_NEVER;
sr               1615 arch/ia64/kernel/unwind.c 		for (r = sr.curr.reg; r < sr.curr.reg + UNW_NUM_REGS; ++r)
sr               1625 arch/ia64/kernel/unwind.c 	script->flags = sr.flags;
sr               1631 arch/ia64/kernel/unwind.c 	if (sr.curr.reg[UNW_REG_RP].when >= sr.when_target) {
sr               1632 arch/ia64/kernel/unwind.c 		sr.curr.reg[UNW_REG_RP].where = UNW_WHERE_BR;
sr               1633 arch/ia64/kernel/unwind.c 		sr.curr.reg[UNW_REG_RP].when = -1;
sr               1634 arch/ia64/kernel/unwind.c 		sr.curr.reg[UNW_REG_RP].val = sr.return_link_reg;
sr               1636 arch/ia64/kernel/unwind.c 			   __func__, ip, sr.curr.reg[UNW_REG_RP].where,
sr               1637 arch/ia64/kernel/unwind.c 			   sr.curr.reg[UNW_REG_RP].val);
sr               1642 arch/ia64/kernel/unwind.c 		__func__, table->segment_base + e->start_offset, sr.when_target);
sr               1643 arch/ia64/kernel/unwind.c 	for (r = sr.curr.reg; r < sr.curr.reg + UNW_NUM_REGS; ++r) {
sr               1645 arch/ia64/kernel/unwind.c 			UNW_DPRINT(1, "  %s <- ", unw.preg_name[r - sr.curr.reg]);
sr               1653 arch/ia64/kernel/unwind.c 				UNW_DPRINT(1, "%s+0x%lx", unw.preg_name[r - sr.curr.reg], r->val);
sr               1673 arch/ia64/kernel/unwind.c 	if (sr.when_target > sr.curr.reg[UNW_REG_PSP].when
sr               1674 arch/ia64/kernel/unwind.c 	    && (sr.curr.reg[UNW_REG_PSP].where == UNW_WHERE_NONE)
sr               1675 arch/ia64/kernel/unwind.c 	    && sr.curr.reg[UNW_REG_PSP].val != 0) {
sr               1679 arch/ia64/kernel/unwind.c 		insn.val = sr.curr.reg[UNW_REG_PSP].val;	/* frame size */
sr               1684 arch/ia64/kernel/unwind.c 	if (sr.when_target < sr.curr.reg[UNW_REG_PRI_UNAT_GR].when)
sr               1686 arch/ia64/kernel/unwind.c 	else if (sr.when_target < sr.curr.reg[UNW_REG_PRI_UNAT_MEM].when)
sr               1688 arch/ia64/kernel/unwind.c 	else if (sr.curr.reg[UNW_REG_PRI_UNAT_MEM].when > sr.curr.reg[UNW_REG_PRI_UNAT_GR].when)
sr               1693 arch/ia64/kernel/unwind.c 	compile_reg(&sr, i, script);
sr               1696 arch/ia64/kernel/unwind.c 		compile_reg(&sr, i, script);
sr               1701 arch/ia64/kernel/unwind.c 	for (ls = sr.labeled_states; ls; ls = next) {
sr               1706 arch/ia64/kernel/unwind.c 	free_state_stack(&sr.curr);
sr               1709 arch/ia64/kernel/unwind.c 	script_finalize(script, &sr);
sr                 93 arch/m68k/include/asm/elf.h 	pr_reg[17] = regs->sr;						\
sr                 65 arch/m68k/include/asm/entry.h 	move	#0x2700,%sr		/* disable intrs */
sr                 97 arch/m68k/include/asm/entry.h 	move	#0x2700,%sr		/* disable intrs */
sr                127 arch/m68k/include/asm/entry.h 	move	#0x2700,%sr		/* disable intrs */
sr                136 arch/m68k/include/asm/entry.h 	move	#0x2700,%sr		/* disable intrs */
sr                 81 arch/m68k/include/asm/processor.h 	unsigned short sr;		/* saved status register */
sr                 94 arch/m68k/include/asm/processor.h 	.sr	= PS_S,							\
sr                115 arch/m68k/include/asm/processor.h 	regs->sr &= ~0x2000;
sr                 14 arch/m68k/include/asm/ptrace.h #define user_mode(regs) (!((regs)->sr & PS_S))
sr                 47 arch/m68k/include/asm/user.h 	short sr;
sr                 45 arch/m68k/include/uapi/asm/ptrace.h   unsigned short sr;
sr                 48 arch/m68k/include/uapi/asm/ptrace.h   unsigned short sr;
sr                 33 arch/m68k/kernel/asm-offsets.c 	DEFINE(THREAD_SR, offsetof(struct thread_struct, sr));
sr                 57 arch/m68k/kernel/asm-offsets.c 	DEFINE(PT_OFF_SR, offsetof(struct pt_regs, sr));
sr                 61 arch/m68k/kernel/asm-offsets.c 	DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, sr) - 2);
sr                 81 arch/m68k/kernel/process.c 		regs->format, regs->vector, regs->pc, regs->sr,
sr                 89 arch/m68k/kernel/process.c 	if (!(regs->sr & PS_S))
sr                144 arch/m68k/kernel/process.c 		frame->regs.sr = PS_S;
sr                 68 arch/m68k/kernel/ptrace.c 	[17]	= PT_REG(sr),
sr                107 arch/m68k/kernel/signal.c 	tregs->sr = regs->sr;
sr                714 arch/m68k/kernel/signal.c 	regs->sr = (regs->sr & 0xff00) | (context.sc_sr & 0xff);
sr                766 arch/m68k/kernel/signal.c 	regs->sr = (regs->sr & 0xff00) | (temp & 0xff);
sr                841 arch/m68k/kernel/signal.c 	sc->sc_sr = regs->sr;
sr                872 arch/m68k/kernel/signal.c 	err |= __put_user(regs->sr, &gregs[17]);
sr                958 arch/m68k/kernel/signal.c 		tregs->sr = regs->sr;
sr               1042 arch/m68k/kernel/signal.c 		tregs->sr = regs->sr;
sr               1102 arch/m68k/kernel/signal.c 		regs->sr &= ~0x8000;
sr                408 arch/m68k/kernel/traps.c 	if (fp->ptregs.sr & PS_S) {
sr                619 arch/m68k/kernel/traps.c 	if (fp->ptregs.sr & PS_S) {
sr                856 arch/m68k/kernel/traps.c 	pr_info("SR: %04x  SP: %p  a2: %08lx\n", regs->sr, regs, regs->a2);
sr               1014 arch/m68k/kernel/traps.c 	if (fp->ptregs.sr & PS_S) {
sr               1135 arch/m68k/kernel/traps.c 	if (!(fp->sr & PS_S))
sr                 77 arch/m68k/mm/fault.c 		regs->sr, regs->pc, address, error_code, mm ? mm->pgd : NULL);
sr                259 arch/m68k/q40/q40ints.c 					fp->sr = (((fp->sr) & (~0x700))+0x200);
sr                 98 arch/mips/alchemy/devboards/platform.c 	struct resource *sr;
sr                107 arch/mips/alchemy/devboards/platform.c 	sr = kcalloc(cnt, sizeof(struct resource), GFP_KERNEL);
sr                108 arch/mips/alchemy/devboards/platform.c 	if (!sr)
sr                117 arch/mips/alchemy/devboards/platform.c 	sr[0].name	= "pcmcia-attr";
sr                118 arch/mips/alchemy/devboards/platform.c 	sr[0].flags	= IORESOURCE_MEM;
sr                119 arch/mips/alchemy/devboards/platform.c 	sr[0].start	= pcmcia_attr_start;
sr                120 arch/mips/alchemy/devboards/platform.c 	sr[0].end	= pcmcia_attr_end;
sr                122 arch/mips/alchemy/devboards/platform.c 	sr[1].name	= "pcmcia-mem";
sr                123 arch/mips/alchemy/devboards/platform.c 	sr[1].flags	= IORESOURCE_MEM;
sr                124 arch/mips/alchemy/devboards/platform.c 	sr[1].start	= pcmcia_mem_start;
sr                125 arch/mips/alchemy/devboards/platform.c 	sr[1].end	= pcmcia_mem_end;
sr                127 arch/mips/alchemy/devboards/platform.c 	sr[2].name	= "pcmcia-io";
sr                128 arch/mips/alchemy/devboards/platform.c 	sr[2].flags	= IORESOURCE_MEM;
sr                129 arch/mips/alchemy/devboards/platform.c 	sr[2].start	= pcmcia_io_start;
sr                130 arch/mips/alchemy/devboards/platform.c 	sr[2].end	= pcmcia_io_end;
sr                132 arch/mips/alchemy/devboards/platform.c 	sr[3].name	= "insert";
sr                133 arch/mips/alchemy/devboards/platform.c 	sr[3].flags	= IORESOURCE_IRQ;
sr                134 arch/mips/alchemy/devboards/platform.c 	sr[3].start = sr[3].end = cd_irq;
sr                136 arch/mips/alchemy/devboards/platform.c 	sr[4].name	= "card";
sr                137 arch/mips/alchemy/devboards/platform.c 	sr[4].flags	= IORESOURCE_IRQ;
sr                138 arch/mips/alchemy/devboards/platform.c 	sr[4].start = sr[4].end = card_irq;
sr                142 arch/mips/alchemy/devboards/platform.c 		sr[i].name	= "stschg";
sr                143 arch/mips/alchemy/devboards/platform.c 		sr[i].flags	= IORESOURCE_IRQ;
sr                144 arch/mips/alchemy/devboards/platform.c 		sr[i].start = sr[i].end = stschg_irq;
sr                148 arch/mips/alchemy/devboards/platform.c 		sr[i].name	= "eject";
sr                149 arch/mips/alchemy/devboards/platform.c 		sr[i].flags	= IORESOURCE_IRQ;
sr                150 arch/mips/alchemy/devboards/platform.c 		sr[i].start = sr[i].end = eject_irq;
sr                153 arch/mips/alchemy/devboards/platform.c 	pd->resource = sr;
sr                162 arch/mips/alchemy/devboards/platform.c 	kfree(sr);
sr                241 arch/mips/cavium-octeon/smp.c 	unsigned int sr;
sr                243 arch/mips/cavium-octeon/smp.c 	sr = set_c0_status(ST0_BEV);
sr                245 arch/mips/cavium-octeon/smp.c 	write_c0_status(sr);
sr                246 arch/mips/include/asm/netlogic/xlr/fmn.h 	uint32_t sr = read_c0_status();
sr                248 arch/mips/include/asm/netlogic/xlr/fmn.h 	write_c0_status((sr & ~ST0_IE) | ST0_CU2);
sr                249 arch/mips/include/asm/netlogic/xlr/fmn.h 	return sr;
sr                252 arch/mips/include/asm/netlogic/xlr/fmn.h static inline void nlm_cop2_disable_irqrestore(uint32_t sr)
sr                254 arch/mips/include/asm/netlogic/xlr/fmn.h 	write_c0_status(sr);
sr                 72 arch/mips/include/asm/sn/nmi.h 	unsigned long	sr;
sr                 64 arch/mips/kernel/cpu-probe.c 	unsigned long sr, mask, fcsr, fcsr0, fcsr1;
sr                 69 arch/mips/kernel/cpu-probe.c 	sr = read_c0_status();
sr                 82 arch/mips/kernel/cpu-probe.c 	write_c0_status(sr);
sr                 96 arch/mips/kernel/cpu-probe.c 		unsigned long sr, fir, fcsr, fcsr0, fcsr1;
sr                 98 arch/mips/kernel/cpu-probe.c 		sr = read_c0_status();
sr                133 arch/mips/kernel/cpu-probe.c 		write_c0_status(sr);
sr               2155 arch/mips/kernel/traps.c 		unsigned long sr = set_c0_status(ST0_BEV);
sr               2165 arch/mips/kernel/traps.c 		write_c0_status(sr);
sr               1499 arch/mips/kvm/mips.c 	unsigned int sr, cfg5;
sr               1503 arch/mips/kvm/mips.c 	sr = kvm_read_c0_guest_status(cop0);
sr               1515 arch/mips/kvm/mips.c 	if (cpu_has_msa && sr & ST0_CU1 && !(sr & ST0_FR) &&
sr               1523 arch/mips/kvm/mips.c 	change_c0_status(ST0_CU1 | ST0_FR, sr);
sr               1547 arch/mips/kvm/mips.c 	unsigned int sr, cfg5;
sr               1556 arch/mips/kvm/mips.c 		sr = kvm_read_c0_guest_status(cop0);
sr               1562 arch/mips/kvm/mips.c 		if (!(sr & ST0_FR) &&
sr               1567 arch/mips/kvm/mips.c 		change_c0_status(ST0_CU1 | ST0_FR, sr);
sr               1568 arch/mips/kvm/mips.c 		if (sr & ST0_CU1 && cpu_has_fre) {
sr                 85 arch/mips/paravirt/paravirt-smp.c 	unsigned int sr;
sr                 87 arch/mips/paravirt/paravirt-smp.c 	sr = set_c0_status(ST0_BEV);
sr                 90 arch/mips/paravirt/paravirt-smp.c 	sr |= STATUSF_IP2; /* Interrupt controller on IP2 */
sr                 91 arch/mips/paravirt/paravirt-smp.c 	write_c0_status(sr);
sr                 90 arch/mips/sgi-ip27/ip27-nmi.c 	pr_emerg("Status: %08lx	      ", nr->sr);
sr                 92 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_KX)
sr                 94 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_SX)
sr                 96 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_UX)
sr                 99 arch/mips/sgi-ip27/ip27-nmi.c 	switch (nr->sr & ST0_KSU) {
sr                114 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_ERL)
sr                116 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_EXL)
sr                118 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_IE)
sr                 43 arch/openrisc/include/asm/ptrace.h 			long  sr;	/* Stored in place of r0 */
sr                 70 arch/openrisc/include/asm/ptrace.h #define user_mode(regs)			(((regs)->sr & SPR_SR_SM) == 0)
sr                 31 arch/openrisc/include/uapi/asm/ptrace.h 	unsigned long sr;
sr                215 arch/openrisc/kernel/process.c 	unsigned long sr = mfspr(SPR_SR) & ~SPR_SR_SM;
sr                220 arch/openrisc/kernel/process.c 	regs->sr = sr;
sr                270 arch/openrisc/kernel/process.c 	dest[33] = regs->sr;
sr                 65 arch/openrisc/kernel/ptrace.c 					  &regs->sr, 4*33, 4*34);
sr                 54 arch/openrisc/kernel/signal.c 	err |= __copy_from_user(&regs->sr, &sc->regs.sr, sizeof(unsigned long));
sr                 57 arch/openrisc/kernel/signal.c 	regs->sr &= ~SPR_SR_SM;
sr                116 arch/openrisc/kernel/signal.c 	err |= __copy_to_user(&sc->regs.sr, &regs->sr, sizeof(unsigned long));
sr                 77 arch/openrisc/kernel/traps.c 	       smp_processor_id(), regs->pc, regs->sr, regs->sp);
sr                139 arch/openrisc/kernel/traps.c 	       0, regs->pc, regs->sr, regs->sp);
sr                323 arch/openrisc/kernel/traps.c 			if (regs->sr & SPR_SR_F)
sr                329 arch/openrisc/kernel/traps.c 			if (regs->sr & SPR_SR_F)
sr                410 arch/openrisc/kernel/traps.c 		regs->sr &= ~SPR_SR_F;
sr                435 arch/openrisc/kernel/traps.c 	regs->sr |= SPR_SR_F;
sr                 91 arch/openrisc/mm/fault.c 		if (regs->sr && (SPR_SR_IEE | SPR_SR_TEE))
sr                281 arch/parisc/include/asm/elf.h 		for (i = 0; i < 8; i++) dst[32 + i] = pt->sr[i]; \
sr                148 arch/parisc/include/asm/processor.h 			.sr	= { 0, }, \
sr                260 arch/parisc/include/asm/processor.h 	regs->sr[2] = LINUX_GATEWAY_SPACE;              \
sr                261 arch/parisc/include/asm/processor.h 	regs->sr[3] = 0xffff;				\
sr                262 arch/parisc/include/asm/processor.h 	regs->sr[4] = spaceid;				\
sr                263 arch/parisc/include/asm/processor.h 	regs->sr[5] = spaceid;				\
sr                264 arch/parisc/include/asm/processor.h 	regs->sr[6] = spaceid;				\
sr                265 arch/parisc/include/asm/processor.h 	regs->sr[7] = spaceid;				\
sr                643 arch/parisc/include/uapi/asm/pdc.h 	unsigned int sr[8];
sr                676 arch/parisc/include/uapi/asm/pdc.h 	unsigned long long sr[8];
sr                 27 arch/parisc/include/uapi/asm/ptrace.h 	unsigned long sr[ 8];
sr                 53 arch/parisc/include/uapi/asm/ptrace.h 	unsigned long sr[8];
sr                118 arch/parisc/kernel/asm-offsets.c 	DEFINE(TASK_PT_SR0, offsetof(struct task_struct, thread.regs.sr[ 0]));
sr                119 arch/parisc/kernel/asm-offsets.c 	DEFINE(TASK_PT_SR1, offsetof(struct task_struct, thread.regs.sr[ 1]));
sr                120 arch/parisc/kernel/asm-offsets.c 	DEFINE(TASK_PT_SR2, offsetof(struct task_struct, thread.regs.sr[ 2]));
sr                121 arch/parisc/kernel/asm-offsets.c 	DEFINE(TASK_PT_SR3, offsetof(struct task_struct, thread.regs.sr[ 3]));
sr                122 arch/parisc/kernel/asm-offsets.c 	DEFINE(TASK_PT_SR4, offsetof(struct task_struct, thread.regs.sr[ 4]));
sr                123 arch/parisc/kernel/asm-offsets.c 	DEFINE(TASK_PT_SR5, offsetof(struct task_struct, thread.regs.sr[ 5]));
sr                124 arch/parisc/kernel/asm-offsets.c 	DEFINE(TASK_PT_SR6, offsetof(struct task_struct, thread.regs.sr[ 6]));
sr                125 arch/parisc/kernel/asm-offsets.c 	DEFINE(TASK_PT_SR7, offsetof(struct task_struct, thread.regs.sr[ 7]));
sr                207 arch/parisc/kernel/asm-offsets.c 	DEFINE(PT_SR0, offsetof(struct pt_regs, sr[ 0]));
sr                208 arch/parisc/kernel/asm-offsets.c 	DEFINE(PT_SR1, offsetof(struct pt_regs, sr[ 1]));
sr                209 arch/parisc/kernel/asm-offsets.c 	DEFINE(PT_SR2, offsetof(struct pt_regs, sr[ 2]));
sr                210 arch/parisc/kernel/asm-offsets.c 	DEFINE(PT_SR3, offsetof(struct pt_regs, sr[ 3]));
sr                211 arch/parisc/kernel/asm-offsets.c 	DEFINE(PT_SR4, offsetof(struct pt_regs, sr[ 4]));
sr                212 arch/parisc/kernel/asm-offsets.c 	DEFINE(PT_SR5, offsetof(struct pt_regs, sr[ 5]));
sr                213 arch/parisc/kernel/asm-offsets.c 	DEFINE(PT_SR6, offsetof(struct pt_regs, sr[ 6]));
sr                214 arch/parisc/kernel/asm-offsets.c 	DEFINE(PT_SR7, offsetof(struct pt_regs, sr[ 7]));
sr                409 arch/parisc/kernel/irq.c 	if (regs->sr[7])
sr                 71 arch/parisc/kernel/kgdb.c 	gr->sr0 = regs->sr[0];
sr                 72 arch/parisc/kernel/kgdb.c 	gr->sr1 = regs->sr[1];
sr                 73 arch/parisc/kernel/kgdb.c 	gr->sr2 = regs->sr[2];
sr                 74 arch/parisc/kernel/kgdb.c 	gr->sr3 = regs->sr[3];
sr                 75 arch/parisc/kernel/kgdb.c 	gr->sr4 = regs->sr[4];
sr                 76 arch/parisc/kernel/kgdb.c 	gr->sr5 = regs->sr[5];
sr                 77 arch/parisc/kernel/kgdb.c 	gr->sr6 = regs->sr[6];
sr                 78 arch/parisc/kernel/kgdb.c 	gr->sr7 = regs->sr[7];
sr                102 arch/parisc/kernel/kgdb.c 	regs->sr[0] = gr->sr0;
sr                103 arch/parisc/kernel/kgdb.c 	regs->sr[1] = gr->sr1;
sr                104 arch/parisc/kernel/kgdb.c 	regs->sr[2] = gr->sr2;
sr                105 arch/parisc/kernel/kgdb.c 	regs->sr[3] = gr->sr3;
sr                106 arch/parisc/kernel/kgdb.c 	regs->sr[4] = gr->sr4;
sr                107 arch/parisc/kernel/kgdb.c 	regs->sr[5] = gr->sr5;
sr                108 arch/parisc/kernel/kgdb.c 	regs->sr[6] = gr->sr6;
sr                109 arch/parisc/kernel/kgdb.c 	regs->sr[7] = gr->sr7;
sr                459 arch/parisc/kernel/ptrace.c 	case RI(sr[0]) ... RI(sr[7]):	return regs->sr[num - RI(sr[0])];
sr                515 arch/parisc/kernel/ptrace.c 	case RI(sr[0]) ... RI(sr[7]):	return regs->sr[num - RI(sr[0])];
sr                747 arch/parisc/kernel/ptrace.c 	REG_OFFSET_INDEX(sr,0),
sr                748 arch/parisc/kernel/ptrace.c 	REG_OFFSET_INDEX(sr,1),
sr                749 arch/parisc/kernel/ptrace.c 	REG_OFFSET_INDEX(sr,2),
sr                750 arch/parisc/kernel/ptrace.c 	REG_OFFSET_INDEX(sr,3),
sr                751 arch/parisc/kernel/ptrace.c 	REG_OFFSET_INDEX(sr,4),
sr                752 arch/parisc/kernel/ptrace.c 	REG_OFFSET_INDEX(sr,5),
sr                753 arch/parisc/kernel/ptrace.c 	REG_OFFSET_INDEX(sr,6),
sr                754 arch/parisc/kernel/ptrace.c 	REG_OFFSET_INDEX(sr,7),
sr                207 arch/parisc/kernel/signal.c 		err |= __put_user(regs->sr[3], &sc->sc_iasq[0]);
sr                208 arch/parisc/kernel/signal.c 		err |= __put_user(regs->sr[3], &sc->sc_iasq[1]);
sr                583 arch/parisc/kernel/signal.c 	       regs, regs->sr[7], in_syscall);
sr                155 arch/parisc/kernel/signal32.c 		compat_reg = (compat_uint_t)(regs->sr[3]);
sr                160 arch/parisc/kernel/signal32.c 		compat_reg = (compat_uint_t)(regs->sr[3] >> 32);
sr                133 arch/parisc/kernel/traps.c 		PRINTREGS(level, regs->sr, "sr", RFMT, i);
sr                361 arch/parisc/kernel/traps.c 	    regs->sr[i] = pim_wide->sr[i];
sr                385 arch/parisc/kernel/traps.c 	    regs->sr[i] = pim_narrow->sr[i];
sr                508 arch/parisc/kernel/traps.c 	    ((unsigned long)regs->iasq[0] != (unsigned long)regs->sr[7])) { 
sr                512 arch/parisc/kernel/traps.c 		regs->iasq[0] = regs->iasq[1] = regs->sr[7];
sr                769 arch/parisc/kernel/traps.c 	    if ((fault_space >> SPACEID_SHIFT) != (regs->sr[7] >> SPACEID_SHIFT)) {
sr                 92 arch/powerpc/include/asm/book3s/32/kup.h static inline void kuap_update_sr(u32 sr, u32 addr, u32 end)
sr                 97 arch/powerpc/include/asm/book3s/32/kup.h 		mtsrin(sr, addr);
sr                 98 arch/powerpc/include/asm/book3s/32/kup.h 		sr += 0x111;		/* next VSID */
sr                 99 arch/powerpc/include/asm/book3s/32/kup.h 		sr &= 0xf0ffffff;	/* clear VSID overflow */
sr                152 arch/powerpc/include/asm/kvm_book3s_asm.h 	u32     sr[16];			/* Guest SRs */
sr                991 arch/powerpc/include/asm/kvm_ppc.h 	       return be32_to_cpu(vcpu->arch.shared->sr[nr]);
sr                993 arch/powerpc/include/asm/kvm_ppc.h 	       return le32_to_cpu(vcpu->arch.shared->sr[nr]);
sr                999 arch/powerpc/include/asm/kvm_ppc.h 	       vcpu->arch.shared->sr[nr] = cpu_to_be32(val);
sr               1001 arch/powerpc/include/asm/kvm_ppc.h 	       vcpu->arch.shared->sr[nr] = cpu_to_le32(val);
sr                188 arch/powerpc/include/uapi/asm/kvm.h 				__u32 sr[16];
sr                 51 arch/powerpc/include/uapi/asm/kvm_para.h 	__u32 sr[16];
sr                640 arch/powerpc/kernel/asm-offsets.c 	SVCPU_FIELD(SVCPU_SR, sr);
sr                728 arch/powerpc/kernel/asm-offsets.c 	OFFSET(KVM_MAGIC_SR, kvm_vcpu_arch_shared, sr);
sr                128 arch/powerpc/kernel/signal_32.c 		struct mcontext __user *sr)
sr                136 arch/powerpc/kernel/signal_32.c 		if (__get_user(gregs[i], &sr->mc_gregs[i]))
sr                167 arch/powerpc/kernel/signal_32.c 		struct mcontext __user *sr)
sr                170 arch/powerpc/kernel/signal_32.c 	if (__copy_from_user(regs, &sr->mc_gregs,
sr                174 arch/powerpc/kernel/signal_32.c 	if (__copy_from_user(&regs->orig_gpr3, &sr->mc_gregs[PT_ORIG_R3],
sr                627 arch/powerpc/kernel/signal_32.c 			      struct mcontext __user *sr, int sig)
sr                642 arch/powerpc/kernel/signal_32.c 	err = restore_general_regs(regs, sr);
sr                644 arch/powerpc/kernel/signal_32.c 	err |= __get_user(msr, &sr->mc_gregs[PT_MSR]);
sr                662 arch/powerpc/kernel/signal_32.c 		if (__copy_from_user(&current->thread.vr_state, &sr->mc_vregs,
sr                663 arch/powerpc/kernel/signal_32.c 				     sizeof(sr->mc_vregs)))
sr                671 arch/powerpc/kernel/signal_32.c 	if (__get_user(current->thread.vrsave, (u32 __user *)&sr->mc_vregs[32]))
sr                676 arch/powerpc/kernel/signal_32.c 	if (copy_fpr_from_user(current, &sr->mc_fregs))
sr                690 arch/powerpc/kernel/signal_32.c 		if (copy_vsx_from_user(current, &sr->mc_vsregs))
sr                709 arch/powerpc/kernel/signal_32.c 		if (__copy_from_user(current->thread.evr, &sr->mc_vregs,
sr                717 arch/powerpc/kernel/signal_32.c 	if (__get_user(current->thread.spefscr, (u32 __user *)&sr->mc_vregs + ELF_NEVRREG))
sr                731 arch/powerpc/kernel/signal_32.c 				 struct mcontext __user *sr,
sr                750 arch/powerpc/kernel/signal_32.c 	err |= restore_general_regs(&current->thread.ckpt_regs, sr);
sr                752 arch/powerpc/kernel/signal_32.c 	err |= __get_user(current->thread.tm_tfhar, &sr->mc_gregs[PT_NIP]);
sr                754 arch/powerpc/kernel/signal_32.c 	err |= __get_user(msr, &sr->mc_gregs[PT_MSR]);
sr                765 arch/powerpc/kernel/signal_32.c 		if (__copy_from_user(&current->thread.ckvr_state, &sr->mc_vregs,
sr                766 arch/powerpc/kernel/signal_32.c 				     sizeof(sr->mc_vregs)) ||
sr                769 arch/powerpc/kernel/signal_32.c 				     sizeof(sr->mc_vregs)))
sr                781 arch/powerpc/kernel/signal_32.c 		       (u32 __user *)&sr->mc_vregs[32]) ||
sr                791 arch/powerpc/kernel/signal_32.c 	if (copy_fpr_from_user(current, &sr->mc_fregs) ||
sr                803 arch/powerpc/kernel/signal_32.c 		    copy_ckvsx_from_user(current, &sr->mc_vsregs))
sr                819 arch/powerpc/kernel/signal_32.c 		if (__copy_from_user(current->thread.evr, &sr->mc_vregs,
sr                827 arch/powerpc/kernel/signal_32.c 	if (__get_user(current->thread.spefscr, (u32 __user *)&sr->mc_vregs
sr               1458 arch/powerpc/kernel/signal_32.c 	struct mcontext __user *sr;
sr               1500 arch/powerpc/kernel/signal_32.c 		sr = (struct mcontext __user *)from_user_ptr(sigctx.regs);
sr               1501 arch/powerpc/kernel/signal_32.c 		addr = sr;
sr               1502 arch/powerpc/kernel/signal_32.c 		if (!access_ok(sr, sizeof(*sr))
sr               1503 arch/powerpc/kernel/signal_32.c 		    || restore_user_regs(regs, sr, 1))
sr                357 arch/powerpc/kvm/book3s_32_mmu.c 	u32 sr;
sr                362 arch/powerpc/kvm/book3s_32_mmu.c 		sr = find_sr(vcpu, ea);
sr                363 arch/powerpc/kvm/book3s_32_mmu.c 		if (sr_valid(sr))
sr                364 arch/powerpc/kvm/book3s_32_mmu.c 			gvsid = sr_vsid(sr);
sr                381 arch/powerpc/kvm/book3s_32_mmu.c 		if (sr_valid(sr))
sr                382 arch/powerpc/kvm/book3s_32_mmu.c 			*vsid = sr_vsid(sr);
sr                306 arch/powerpc/kvm/book3s_32_mmu_host.c 	u32 sr;
sr                313 arch/powerpc/kvm/book3s_32_mmu_host.c 		svcpu->sr[esid] = SR_INVALID;
sr                323 arch/powerpc/kvm/book3s_32_mmu_host.c 	sr = map->host_vsid | SR_KP;
sr                324 arch/powerpc/kvm/book3s_32_mmu_host.c 	svcpu->sr[esid] = sr;
sr                326 arch/powerpc/kvm/book3s_32_mmu_host.c 	dprintk_sr("MMU: mtsr %d, 0x%x\n", esid, sr);
sr                338 arch/powerpc/kvm/book3s_32_mmu_host.c 	dprintk_sr("MMU: flushing all segments (%d)\n", ARRAY_SIZE(svcpu->sr));
sr                339 arch/powerpc/kvm/book3s_32_mmu_host.c 	for (i = 0; i < ARRAY_SIZE(svcpu->sr); i++)
sr                340 arch/powerpc/kvm/book3s_32_mmu_host.c 		svcpu->sr[i] = SR_INVALID;
sr                322 arch/powerpc/kvm/book3s_emulate.c 				u32 sr;
sr                323 arch/powerpc/kvm/book3s_emulate.c 				sr = vcpu->arch.mmu.mfsrin(vcpu, srnum);
sr                324 arch/powerpc/kvm/book3s_emulate.c 				kvmppc_set_gpr(vcpu, rt, sr);
sr                334 arch/powerpc/kvm/book3s_emulate.c 				u32 sr;
sr                335 arch/powerpc/kvm/book3s_emulate.c 				sr = vcpu->arch.mmu.mfsrin(vcpu, srnum);
sr                336 arch/powerpc/kvm/book3s_emulate.c 				kvmppc_set_gpr(vcpu, rt, sr);
sr               1149 arch/powerpc/kvm/book3s_pr.c 			u32 sr;
sr               1152 arch/powerpc/kvm/book3s_pr.c 			sr = svcpu->sr[kvmppc_get_pc(vcpu) >> SID_SHIFT];
sr               1154 arch/powerpc/kvm/book3s_pr.c 			if (sr == SR_INVALID) {
sr               1195 arch/powerpc/kvm/book3s_pr.c 			u32 sr;
sr               1198 arch/powerpc/kvm/book3s_pr.c 			sr = svcpu->sr[dar >> SID_SHIFT];
sr               1200 arch/powerpc/kvm/book3s_pr.c 			if (sr == SR_INVALID) {
sr               1455 arch/powerpc/kvm/book3s_pr.c 			sregs->u.s.ppc32.sr[i] = kvmppc_get_sr(vcpu, i);
sr               1492 arch/powerpc/kvm/book3s_pr.c 			vcpu->arch.mmu.mtsrin(vcpu, i, sregs->u.s.ppc32.sr[i]);
sr                155 arch/powerpc/kvm/powerpc.c 	for (i = 0; i < ARRAY_SIZE(shared->sr); i++)
sr                156 arch/powerpc/kvm/powerpc.c 		shared->sr[i] = swab32(shared->sr[i]);
sr                 44 arch/powerpc/platforms/4xx/soc.c 	u32 sr = mfdcr(dcrbase_l2c + DCRN_L2C0_SR);
sr                 46 arch/powerpc/platforms/4xx/soc.c 	if (sr & L2C_SR_CPE) {
sr                 52 arch/powerpc/platforms/4xx/soc.c 	if (sr & L2C_SR_TPE) {
sr                 60 arch/powerpc/platforms/4xx/soc.c 	if (sr & (L2C_SR_CPE | L2C_SR_TPE)){
sr                 55 arch/powerpc/platforms/4xx/uic.c 	u32 er, sr;
sr                 57 arch/powerpc/platforms/4xx/uic.c 	sr = 1 << (31-src);
sr                 61 arch/powerpc/platforms/4xx/uic.c 		mtdcr(uic->dcrbase + UIC_SR, sr);
sr                 63 arch/powerpc/platforms/4xx/uic.c 	er |= sr;
sr                 98 arch/powerpc/platforms/4xx/uic.c 	u32 er, sr;
sr                100 arch/powerpc/platforms/4xx/uic.c 	sr = 1 << (31-src);
sr                103 arch/powerpc/platforms/4xx/uic.c 	er &= ~sr;
sr                114 arch/powerpc/platforms/4xx/uic.c 		mtdcr(uic->dcrbase + UIC_SR, sr);
sr                 40 arch/s390/include/asm/nmi.h 		u64 sr :  1; /* 02 system recovery */
sr               2794 arch/s390/kvm/interrupt.c 	if (mci.sr)
sr                156 arch/sh/include/asm/elf.h        _r->sr = SR_FD | SR_MMU; } while (0)
sr                163 arch/sh/include/asm/elf.h        _r->sr = SR_FD; } while (0)
sr                183 arch/sh/include/asm/elf.h 	_r->sr		= SR_FD;					\
sr                 31 arch/sh/include/asm/flat.h        _r->sr = SR_FD; } while (0)
sr                 14 arch/sh/include/asm/fpu.h 	regs->sr |= SR_FD;
sr                 19 arch/sh/include/asm/fpu.h 	regs->sr &= ~SR_FD;
sr                 63 arch/sh/include/asm/kexec.h 		__asm__ __volatile__ ("stc sr, %0" : "=r" (newregs->sr));
sr                 29 arch/sh/include/asm/mmu_context_64.h 	unsigned long long sr;
sr                 32 arch/sh/include/asm/mmu_context_64.h 		      : "=r" (sr));
sr                 34 arch/sh/include/asm/mmu_context_64.h 	sr = (sr >> SR_ASID_SHIFT) & MMU_CONTEXT_ASID_MASK;
sr                 35 arch/sh/include/asm/mmu_context_64.h 	return (unsigned long) sr;
sr                 41 arch/sh/include/asm/mmu_context_64.h 	unsigned long long sr, pc;
sr                 43 arch/sh/include/asm/mmu_context_64.h 	asm volatile ("getcon	" __SR ", %0" : "=r" (sr));
sr                 45 arch/sh/include/asm/mmu_context_64.h 	sr = (sr & SR_ASID_MASK) | (asid << SR_ASID_SHIFT);
sr                 63 arch/sh/include/asm/mmu_context_64.h 		      : "=r" (sr), "=r" (pc) : "0" (sr));
sr                142 arch/sh/include/asm/processor_64.h 	_regs->sr = SR_USER;	/* User mode. */		\
sr                 16 arch/sh/include/asm/ptrace.h #define user_mode(regs)			(((regs)->sr & 0x40000000)==0)
sr                 73 arch/sh/include/asm/suspend.h 	unsigned long sr;
sr                 25 arch/sh/include/asm/switch_to_64.h 		if (regs) regs->sr |= SR_FD;			\
sr                 49 arch/sh/include/uapi/asm/ptrace_32.h 	unsigned long sr;
sr                  7 arch/sh/include/uapi/asm/ptrace_64.h 	unsigned long long sr;
sr                 43 arch/sh/kernel/asm-offsets.c 	DEFINE(SH_SLEEP_SR, offsetof(struct sh_sleep_data, sr));
sr                232 arch/sh/kernel/cpu/init.c 	unsigned long sr;
sr                239 arch/sh/kernel/cpu/init.c 		: "=&r" (sr)
sr                246 arch/sh/kernel/cpu/init.c 	unsigned long sr;
sr                258 arch/sh/kernel/cpu/init.c 		: "=&r" (sr)
sr                263 arch/sh/kernel/cpu/init.c 	if (sr & SR_DSP)
sr                424 arch/sh/kernel/cpu/sh2a/fpu.c 		if (regs->sr & 1)
sr                430 arch/sh/kernel/cpu/sh2a/fpu.c 		if (regs->sr & 1)
sr                195 arch/sh/kernel/cpu/sh4/fpu.c 		if (regs->sr & 1)
sr                202 arch/sh/kernel/cpu/sh4/fpu.c 		if (regs->sr & 1)
sr                 54 arch/sh/kernel/kgdb.c 		if (linux_regs->sr & SR_T_BIT_MASK)
sr                 62 arch/sh/kernel/kgdb.c 		if (linux_regs->sr & SR_T_BIT_MASK)
sr                 70 arch/sh/kernel/kgdb.c 		if (!(linux_regs->sr & SR_T_BIT_MASK))
sr                 78 arch/sh/kernel/kgdb.c 		if (!(linux_regs->sr & SR_T_BIT_MASK))
sr                186 arch/sh/kernel/kgdb.c 	{ "sr",		GDB_SIZEOF_REG, offsetof(struct pt_regs, sr) },
sr                 40 arch/sh/kernel/process_32.c 	       regs->pc, regs->regs[15], regs->sr);
sr                 70 arch/sh/kernel/process_32.c 	regs->sr = SR_FD;
sr                145 arch/sh/kernel/process_32.c 		childregs->sr = SR_MD;
sr                147 arch/sh/kernel/process_32.c 		childregs->sr |= SR_FD;
sr                 54 arch/sh/kernel/process_64.c 	ah = (regs->sr) >> 32;
sr                 55 arch/sh/kernel/process_64.c 	al = (regs->sr) & 0xffffffff;
sr                357 arch/sh/kernel/process_64.c 			regs->sr |= SR_FD;
sr                385 arch/sh/kernel/process_64.c 		current_pt_regs()->sr |= SR_FD;
sr                396 arch/sh/kernel/process_64.c 		childregs->sr = (1 << 30); /* not user_mode */
sr                397 arch/sh/kernel/process_64.c 		childregs->sr |= SR_FD; /* Invalidate FPU flag */
sr                414 arch/sh/kernel/process_64.c 	childregs->sr |= SR_FD; /* Invalidate FPU flag */
sr                273 arch/sh/kernel/ptrace_32.c 	return regs->sr & SR_DSP ? regset->n : 0;
sr                296 arch/sh/kernel/ptrace_32.c 	REG_OFFSET_NAME(sr),
sr                 86 arch/sh/kernel/ptrace_64.c 		regs->sr |= SR_FD;
sr                121 arch/sh/kernel/ptrace_64.c 		regs->sr |= SR_FD;
sr                132 arch/sh/kernel/ptrace_64.c 	regs->sr |= SR_SSTEP;	/* auto-resetting upon exception */
sr                141 arch/sh/kernel/ptrace_64.c 	regs->sr &= ~SR_SSTEP;
sr                255 arch/sh/kernel/ptrace_64.c 	REG_OFFSET_NAME(sr),
sr                429 arch/sh/kernel/ptrace_64.c 			if (addr == offsetof (struct pt_regs, sr)+4)
sr                435 arch/sh/kernel/ptrace_64.c 			if (addr == offsetof (struct pt_regs, sr))
sr                552 arch/sh/kernel/ptrace_64.c 	regs->sr &= ~SR_SSTEP;
sr                131 arch/sh/kernel/signal_32.c 	COPY(sr);	COPY(pc);
sr                139 arch/sh/kernel/signal_32.c 		regs->sr |= SR_FD; /* Release FPU */
sr                235 arch/sh/kernel/signal_32.c 	COPY(sr);	COPY(pc);
sr                154 arch/sh/kernel/signal_64.c 		regs->sr |= SR_FD;
sr                179 arch/sh/kernel/signal_64.c 		regs->sr |= SR_FD;
sr                232 arch/sh/kernel/signal_64.c         current_sr = regs->sr;
sr                234 arch/sh/kernel/signal_64.c         regs->sr &= SR_MASK;
sr                235 arch/sh/kernel/signal_64.c         regs->sr |= (new_sr & ~SR_MASK);
sr                350 arch/sh/kernel/signal_64.c 	COPY(sr);	COPY(pc);
sr                406 arch/sh/kernel/traps_32.c 				if ((regs->sr & 0x00000001) != 0)
sr                420 arch/sh/kernel/traps_32.c 				if ((regs->sr & 0x00000001) == 0)
sr                573 arch/sh/kernel/traps_32.c 	if (!(current_cpu_data.flags & CPU_HAS_DSP) || (regs->sr & SR_DSP))
sr                633 arch/sh/kernel/traps_32.c 		regs->sr |= SR_DSP;
sr                345 arch/sh/kernel/traps_64.c 			regs->sr |= SR_FD;
sr                415 arch/sh/kernel/traps_64.c 			regs->sr |= SR_FD;
sr                 82 arch/sh/math-emu/math.c 		regs->sr |= 1;
sr                 84 arch/sh/math-emu/math.c 		regs->sr &= ~1;
sr                 93 arch/sh/math-emu/math.c 		regs->sr |= 1;
sr                 95 arch/sh/math-emu/math.c 		regs->sr &= ~1;
sr                524 arch/sh/math-emu/math.c 		if (regs->sr & 1)
sr                530 arch/sh/math-emu/math.c 		if (regs->sr & 1)
sr                412 arch/sh/mm/fault.c 	if ((regs->sr & SR_IMASK) != SR_IMASK)
sr                473 arch/x86/kernel/uprobes.c 		unsigned long *sr = scratch_reg(auprobe, regs);
sr                475 arch/x86/kernel/uprobes.c 		utask->autask.saved_scratch_register = *sr;
sr                476 arch/x86/kernel/uprobes.c 		*sr = utask->vaddr + auprobe->defparam.ilen;
sr                484 arch/x86/kernel/uprobes.c 		unsigned long *sr = scratch_reg(auprobe, regs);
sr                486 arch/x86/kernel/uprobes.c 		*sr = utask->autask.saved_scratch_register;
sr                226 arch/xtensa/include/asm/processor.h #define xtensa_set_sr(x, sr) \
sr                229 arch/xtensa/include/asm/processor.h 	 __asm__ __volatile__ ("wsr %0, "__stringify(sr) :: "a"(v)); \
sr                232 arch/xtensa/include/asm/processor.h #define xtensa_get_sr(sr) \
sr                235 arch/xtensa/include/asm/processor.h 	 __asm__ __volatile__ ("rsr %0, "__stringify(sr) : "=a"(v)); \
sr                 91 arch/xtensa/kernel/hw_breakpoint.c static void xtensa_wsr(unsigned long v, u8 sr)
sr                101 arch/xtensa/kernel/hw_breakpoint.c 	switch (sr) {
sr                114 arch/xtensa/variants/csp/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acclo, 4, 4, 4,0x0210,  sr,16 , 32,0,0,0) \
sr                115 arch/xtensa/variants/csp/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acchi, 4, 4, 4,0x0211,  sr,17 ,  8,0,0,0) \
sr                116 arch/xtensa/variants/csp/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             br, 4, 4, 4,0x0204,  sr,4  , 16,0,0,0) \
sr                117 arch/xtensa/variants/csp/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,      scompare1, 4, 4, 4,0x020C,  sr,12 , 32,0,0,0) \
sr                118 arch/xtensa/variants/csp/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m0, 4, 4, 4,0x0220,  sr,32 , 32,0,0,0) \
sr                119 arch/xtensa/variants/csp/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m1, 4, 4, 4,0x0221,  sr,33 , 32,0,0,0) \
sr                120 arch/xtensa/variants/csp/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m2, 4, 4, 4,0x0222,  sr,34 , 32,0,0,0) \
sr                121 arch/xtensa/variants/csp/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m3, 4, 4, 4,0x0223,  sr,35 , 32,0,0,0)
sr                 94 arch/xtensa/variants/dc232b/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acclo, 4, 4, 4,0x0210,  sr,16 , 32,0,0,0) \
sr                 95 arch/xtensa/variants/dc232b/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acchi, 4, 4, 4,0x0211,  sr,17 ,  8,0,0,0) \
sr                 96 arch/xtensa/variants/dc232b/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m0, 4, 4, 4,0x0220,  sr,32 , 32,0,0,0) \
sr                 97 arch/xtensa/variants/dc232b/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m1, 4, 4, 4,0x0221,  sr,33 , 32,0,0,0) \
sr                 98 arch/xtensa/variants/dc232b/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m2, 4, 4, 4,0x0222,  sr,34 , 32,0,0,0) \
sr                 99 arch/xtensa/variants/dc232b/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m3, 4, 4, 4,0x0223,  sr,35 , 32,0,0,0) \
sr                100 arch/xtensa/variants/dc232b/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,      scompare1, 4, 4, 4,0x020C,  sr,12 , 32,0,0,0) \
sr                114 arch/xtensa/variants/dc233c/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acclo, 4, 4, 4,0x0210,  sr,16 , 32,0,0,0) \
sr                115 arch/xtensa/variants/dc233c/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acchi, 4, 4, 4,0x0211,  sr,17 ,  8,0,0,0) \
sr                116 arch/xtensa/variants/dc233c/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m0, 4, 4, 4,0x0220,  sr,32 , 32,0,0,0) \
sr                117 arch/xtensa/variants/dc233c/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m1, 4, 4, 4,0x0221,  sr,33 , 32,0,0,0) \
sr                118 arch/xtensa/variants/dc233c/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m2, 4, 4, 4,0x0222,  sr,34 , 32,0,0,0) \
sr                119 arch/xtensa/variants/dc233c/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m3, 4, 4, 4,0x0223,  sr,35 , 32,0,0,0) \
sr                120 arch/xtensa/variants/dc233c/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,      scompare1, 4, 4, 4,0x020C,  sr,12 , 32,0,0,0)
sr                 90 arch/xtensa/variants/de212/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acclo, 4, 4, 4,0x0210,  sr,16 , 32,0,0,0) \
sr                 91 arch/xtensa/variants/de212/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acchi, 4, 4, 4,0x0211,  sr,17 ,  8,0,0,0) \
sr                 92 arch/xtensa/variants/de212/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,      scompare1, 4, 4, 4,0x020C,  sr,12 , 32,0,0,0) \
sr                 93 arch/xtensa/variants/de212/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m0, 4, 4, 4,0x0220,  sr,32 , 32,0,0,0) \
sr                 94 arch/xtensa/variants/de212/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m1, 4, 4, 4,0x0221,  sr,33 , 32,0,0,0) \
sr                 95 arch/xtensa/variants/de212/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m2, 4, 4, 4,0x0222,  sr,34 , 32,0,0,0) \
sr                 96 arch/xtensa/variants/de212/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m3, 4, 4, 4,0x0223,  sr,35 , 32,0,0,0)
sr                117 arch/xtensa/variants/test_kc705_be/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acclo, 4, 4, 4,0x0210,  sr,16 , 32,0,0,0) \
sr                118 arch/xtensa/variants/test_kc705_be/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acchi, 4, 4, 4,0x0211,  sr,17 ,  8,0,0,0) \
sr                119 arch/xtensa/variants/test_kc705_be/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             br, 4, 4, 4,0x0204,  sr,4  , 16,0,0,0) \
sr                120 arch/xtensa/variants/test_kc705_be/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,      scompare1, 4, 4, 4,0x020C,  sr,12 , 32,0,0,0) \
sr                121 arch/xtensa/variants/test_kc705_be/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m0, 4, 4, 4,0x0220,  sr,32 , 32,0,0,0) \
sr                122 arch/xtensa/variants/test_kc705_be/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m1, 4, 4, 4,0x0221,  sr,33 , 32,0,0,0) \
sr                123 arch/xtensa/variants/test_kc705_be/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m2, 4, 4, 4,0x0222,  sr,34 , 32,0,0,0) \
sr                124 arch/xtensa/variants/test_kc705_be/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m3, 4, 4, 4,0x0223,  sr,35 , 32,0,0,0)
sr                117 arch/xtensa/variants/test_kc705_hifi/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acclo, 4, 4, 4,0x0210,  sr,16 , 32,0,0,0) \
sr                118 arch/xtensa/variants/test_kc705_hifi/include/variant/tie.h  XCHAL_SA_REG(s,1,0,0,1,          acchi, 4, 4, 4,0x0211,  sr,17 ,  8,0,0,0) \
sr                119 arch/xtensa/variants/test_kc705_hifi/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m0, 4, 4, 4,0x0220,  sr,32 , 32,0,0,0) \
sr                120 arch/xtensa/variants/test_kc705_hifi/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m1, 4, 4, 4,0x0221,  sr,33 , 32,0,0,0) \
sr                121 arch/xtensa/variants/test_kc705_hifi/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m2, 4, 4, 4,0x0222,  sr,34 , 32,0,0,0) \
sr                122 arch/xtensa/variants/test_kc705_hifi/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             m3, 4, 4, 4,0x0223,  sr,35 , 32,0,0,0) \
sr                123 arch/xtensa/variants/test_kc705_hifi/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             br, 4, 4, 4,0x0204,  sr,4  , 16,0,0,0) \
sr                124 arch/xtensa/variants/test_kc705_hifi/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,      scompare1, 4, 4, 4,0x020C,  sr,12 , 32,0,0,0)
sr                 93 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,             br, 4, 4, 4,0x0204,  sr,4  , 16,0,0,0) \
sr                 94 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie.h  XCHAL_SA_REG(s,0,0,0,1,      scompare1, 4, 4, 4,0x020C,  sr,12 , 32,0,0,0) \
sr                141 crypto/poly1305_generic.c 		d1 += sr(d0, 26);     h0 = and(d0, 0x3ffffff);
sr                142 crypto/poly1305_generic.c 		d2 += sr(d1, 26);     h1 = and(d1, 0x3ffffff);
sr                143 crypto/poly1305_generic.c 		d3 += sr(d2, 26);     h2 = and(d2, 0x3ffffff);
sr                144 crypto/poly1305_generic.c 		d4 += sr(d3, 26);     h3 = and(d3, 0x3ffffff);
sr                145 crypto/poly1305_generic.c 		h0 += sr(d4, 26) * 5; h4 = and(d4, 0x3ffffff);
sr                951 drivers/ata/pata_hpt37x.c 		u8 sr;
sr                958 drivers/ata/pata_hpt37x.c 			pci_read_config_byte(dev, 0x78, &sr);
sr                959 drivers/ata/pata_hpt37x.c 			total += sr & 0x1FF;
sr                420 drivers/ata/pata_hpt3x2n.c 		u16 sr;
sr                427 drivers/ata/pata_hpt3x2n.c 			pci_read_config_word(pdev, 0x78, &sr);
sr                428 drivers/ata/pata_hpt3x2n.c 			total += sr & 0x1FF;
sr               2265 drivers/atm/horizon.c 	rounding sr;
sr               2280 drivers/atm/horizon.c 	  sr = round_down;
sr               2286 drivers/atm/horizon.c 	  sr = round_down;
sr               2289 drivers/atm/horizon.c 	  sr = round_up;
sr               2291 drivers/atm/horizon.c 	error = make_rate_with_tolerance (dev, scr, sr, 10,
sr                144 drivers/block/mtip32xx/mtip32xx.c 	if (dd->sr)
sr                150 drivers/block/mtip32xx/mtip32xx.c 		dd->sr = true;
sr               3014 drivers/block/mtip32xx/mtip32xx.c 	if (dd->sr || !dd->port)
sr               3041 drivers/block/mtip32xx/mtip32xx.c 	if (!dd->sr) {
sr               3789 drivers/block/mtip32xx/mtip32xx.c 	if (!dd->sr) {
sr               4208 drivers/block/mtip32xx/mtip32xx.c 	if (!dd->sr)
sr                452 drivers/block/mtip32xx/mtip32xx.h 	bool sr;
sr                 42 drivers/char/hw_random/stm32-rng.c 	u32 sr;
sr                 48 drivers/char/hw_random/stm32-rng.c 		sr = readl_relaxed(priv->base + RNG_SR);
sr                 51 drivers/char/hw_random/stm32-rng.c 		if (!sr && wait) {
sr                 54 drivers/char/hw_random/stm32-rng.c 								   sr, sr,
sr                 58 drivers/char/hw_random/stm32-rng.c 					"%s: timeout %x!\n", __func__, sr);
sr                 62 drivers/char/hw_random/stm32-rng.c 		if (sr != RNG_SR_DRDY) {
sr                 63 drivers/char/hw_random/stm32-rng.c 			if (WARN_ONCE(sr & (RNG_SR_SEIS | RNG_SR_CEIS),
sr                 64 drivers/char/hw_random/stm32-rng.c 					"bad RNG status - %x\n", sr))
sr                 50 drivers/clocksource/timer-atmel-st.c 	u32 sr;
sr                 52 drivers/clocksource/timer-atmel-st.c 	regmap_read(regmap_st, AT91_ST_SR, &sr);
sr                 53 drivers/clocksource/timer-atmel-st.c 	sr &= irqmask;
sr                 62 drivers/clocksource/timer-atmel-st.c 	if (sr & AT91_ST_ALMS) {
sr                 68 drivers/clocksource/timer-atmel-st.c 	if (sr & AT91_ST_PITS) {
sr                248 drivers/clocksource/timer-atmel-tcb.c 	unsigned int		sr;
sr                250 drivers/clocksource/timer-atmel-tcb.c 	sr = readl_relaxed(dev->regs + ATMEL_TC_REG(2, SR));
sr                251 drivers/clocksource/timer-atmel-tcb.c 	if (sr & ATMEL_TC_CPCS) {
sr                295 drivers/crypto/caam/regs.h 	u32 sr;		/* SR_VERSION */
sr                 54 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static void softreq_unmap_sgbufs(struct nitrox_softreq *sr)
sr                 56 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct nitrox_device *ndev = sr->ndev;
sr                 60 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	dma_unmap_sg(dev, sr->in.sg, sr->in.sgmap_cnt, DMA_BIDIRECTIONAL);
sr                 61 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	dma_unmap_single(dev, sr->in.sgcomp_dma, sr->in.sgcomp_len,
sr                 63 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	kfree(sr->in.sgcomp);
sr                 64 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->in.sg = NULL;
sr                 65 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->in.sgmap_cnt = 0;
sr                 67 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	dma_unmap_sg(dev, sr->out.sg, sr->out.sgmap_cnt,
sr                 69 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	dma_unmap_single(dev, sr->out.sgcomp_dma, sr->out.sgcomp_len,
sr                 71 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	kfree(sr->out.sgcomp);
sr                 72 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->out.sg = NULL;
sr                 73 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->out.sgmap_cnt = 0;
sr                 76 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static void softreq_destroy(struct nitrox_softreq *sr)
sr                 78 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	softreq_unmap_sgbufs(sr);
sr                 79 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	kfree(sr);
sr                105 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static int create_sg_component(struct nitrox_softreq *sr,
sr                108 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct nitrox_device *ndev = sr->ndev;
sr                119 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sgcomp = kzalloc(sz_comp, sr->gfp);
sr                156 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static int dma_map_inbufs(struct nitrox_softreq *sr,
sr                159 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct device *dev = DEV(sr->ndev);
sr                169 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		sr->in.total_bytes += sg_dma_len(sg);
sr                171 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->in.sg = req->src;
sr                172 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->in.sgmap_cnt = nents;
sr                173 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	ret = create_sg_component(sr, &sr->in, sr->in.sgmap_cnt);
sr                181 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->in.sgmap_cnt = 0;
sr                185 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static int dma_map_outbufs(struct nitrox_softreq *sr,
sr                188 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct device *dev = DEV(sr->ndev);
sr                196 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->out.sg = req->dst;
sr                197 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->out.sgmap_cnt = nents;
sr                198 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	ret = create_sg_component(sr, &sr->out, sr->out.sgmap_cnt);
sr                206 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->out.sgmap_cnt = 0;
sr                207 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->out.sg = NULL;
sr                211 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static inline int softreq_map_iobuf(struct nitrox_softreq *sr,
sr                216 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	ret = dma_map_inbufs(sr, creq);
sr                220 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	ret = dma_map_outbufs(sr, creq);
sr                222 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		softreq_unmap_sgbufs(sr);
sr                227 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static inline void backlog_list_add(struct nitrox_softreq *sr,
sr                230 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	INIT_LIST_HEAD(&sr->backlog);
sr                233 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	list_add_tail(&sr->backlog, &cmdq->backlog_head);
sr                235 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	atomic_set(&sr->status, REQ_BACKLOG);
sr                239 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static inline void response_list_add(struct nitrox_softreq *sr,
sr                242 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	INIT_LIST_HEAD(&sr->response);
sr                245 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	list_add_tail(&sr->response, &cmdq->response_head);
sr                249 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static inline void response_list_del(struct nitrox_softreq *sr,
sr                253 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	list_del(&sr->response);
sr                284 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static void post_se_instr(struct nitrox_softreq *sr,
sr                287 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct nitrox_device *ndev = sr->ndev;
sr                296 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	memcpy(ent, &sr->instr, cmdq->instr_size);
sr                298 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	atomic_set(&sr->status, REQ_POSTED);
sr                299 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	response_list_add(sr, cmdq);
sr                300 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->tstamp = jiffies;
sr                318 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct nitrox_softreq *sr, *tmp;
sr                326 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	list_for_each_entry_safe(sr, tmp, &cmdq->backlog_head, backlog) {
sr                333 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		list_del(&sr->backlog);
sr                339 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		post_se_instr(sr, cmdq);
sr                346 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static int nitrox_enqueue_request(struct nitrox_softreq *sr)
sr                348 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct nitrox_cmdq *cmdq = sr->cmdq;
sr                349 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct nitrox_device *ndev = sr->ndev;
sr                355 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		if (!(sr->flags & CRYPTO_TFM_REQ_MAY_BACKLOG)) {
sr                361 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		backlog_list_add(sr, cmdq);
sr                364 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	post_se_instr(sr, cmdq);
sr                381 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct nitrox_softreq *sr;
sr                388 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr = kzalloc(sizeof(*sr), req->gfp);
sr                389 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	if (!sr)
sr                392 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->ndev = ndev;
sr                393 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->flags = req->flags;
sr                394 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->gfp = req->gfp;
sr                395 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->callback = callback;
sr                396 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->cb_arg = cb_arg;
sr                398 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	atomic_set(&sr->status, REQ_NOT_POSTED);
sr                400 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->resp.orh = req->orh;
sr                401 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->resp.completion = req->comp;
sr                403 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	ret = softreq_map_iobuf(sr, req);
sr                405 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		kfree(sr);
sr                422 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->cmdq = &ndev->pkt_inq[qno];
sr                442 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.dptr0 = cpu_to_be64(sr->in.sgcomp_dma);
sr                445 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.ih.value = 0;
sr                446 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.ih.s.g = 1;
sr                447 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.ih.s.gsz = sr->in.sgmap_cnt;
sr                448 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.ih.s.ssz = sr->out.sgmap_cnt;
sr                449 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.ih.s.fsz = FDATA_SIZE + sizeof(struct gphdr);
sr                450 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.ih.s.tlen = sr->instr.ih.s.fsz + sr->in.total_bytes;
sr                451 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.ih.value = cpu_to_be64(sr->instr.ih.value);
sr                454 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.irh.value[0] = 0;
sr                455 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.irh.s.uddl = MIN_UDD_LEN;
sr                457 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.irh.s.ctxl = (req->ctrl.s.ctxl / 8);
sr                459 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.irh.s.destport = SOLICIT_BASE_DPORT + qno;
sr                460 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.irh.s.ctxc = req->ctrl.s.ctxc;
sr                461 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.irh.s.arg = req->ctrl.s.arg;
sr                462 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.irh.s.opcode = req->opcode;
sr                463 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.irh.value[0] = cpu_to_be64(sr->instr.irh.value[0]);
sr                466 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.irh.s.ctxp = cpu_to_be64(ctx_handle);
sr                469 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.slc.value[0] = 0;
sr                470 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.slc.s.ssz = sr->out.sgmap_cnt;
sr                471 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.slc.value[0] = cpu_to_be64(sr->instr.slc.value[0]);
sr                474 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.slc.s.rptr = cpu_to_be64(sr->out.sgcomp_dma);
sr                481 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.fdata[0] = *((u64 *)&req->gph);
sr                482 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	sr->instr.fdata[1] = 0;
sr                484 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	ret = nitrox_enqueue_request(sr);
sr                491 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	softreq_destroy(sr);
sr                508 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c static bool sr_completed(struct nitrox_softreq *sr)
sr                510 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	u64 orh = READ_ONCE(*sr->resp.orh);
sr                516 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	while (READ_ONCE(*sr->resp.completion) == PENDING_SIG) {
sr                536 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 	struct nitrox_softreq *sr;
sr                545 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		sr = get_first_response_entry(cmdq);
sr                546 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		if (!sr)
sr                549 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		if (atomic_read(&sr->status) != REQ_POSTED)
sr                553 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		if (!sr_completed(sr)) {
sr                555 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 			if (!cmd_timeout(sr->tstamp, ndev->timeout))
sr                559 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 					    READ_ONCE(*sr->resp.orh));
sr                566 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		response_list_del(sr, cmdq);
sr                568 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		err = READ_ONCE(*sr->resp.orh) & 0xff;
sr                569 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		callback = sr->callback;
sr                570 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		cb_arg = sr->cb_arg;
sr                571 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c 		softreq_destroy(sr);
sr                 99 drivers/crypto/ux500/cryp/cryp.c 	while (readl_relaxed(&device_data->base->sr) !=
sr                187 drivers/crypto/ux500/cryp/cryp.c 	return CRYP_TEST_BITS(&device_data->base->sr,
sr                308 drivers/crypto/ux500/cryp/cryp.c 	if (CRYP_TEST_BITS(&src_reg->sr, CRYP_SR_IFEM_MASK) == 0)
sr                 84 drivers/crypto/ux500/cryp/cryp_irqp.h 	u32 sr;			/* Status register          */
sr                 51 drivers/dma/fsldma.c 	FSL_DMA_OUT(chan, &chan->regs->sr, val, 32);
sr                 56 drivers/dma/fsldma.c 	return FSL_DMA_IN(chan, &chan->regs->sr, 32);
sr                172 drivers/dma/fsldma.c 	u32 sr = get_sr(chan);
sr                173 drivers/dma/fsldma.c 	return (!(sr & FSL_DMA_SR_CB)) || (sr & FSL_DMA_SR_CH);
sr                109 drivers/dma/fsldma.h 	u32 sr;		/* 0x04 - Status Register */
sr                148 drivers/dma/hsu/hsu.c 	u32 sr;
sr                161 drivers/dma/hsu/hsu.c 	sr = hsu_chan_readl(hsuc, HSU_CH_SR);
sr                165 drivers/dma/hsu/hsu.c 	sr &= ~(HSU_CH_SR_DESCE_ANY | HSU_CH_SR_CDESC_ANY);
sr                166 drivers/dma/hsu/hsu.c 	if (!sr)
sr                170 drivers/dma/hsu/hsu.c 	if (sr & HSU_CH_SR_DESCTO_ANY)
sr                180 drivers/dma/hsu/hsu.c 	sr &= ~HSU_CH_SR_DESCTO_ANY;
sr                182 drivers/dma/hsu/hsu.c 	*status = sr;
sr                184 drivers/dma/hsu/hsu.c 	return sr ? 0 : 1;
sr                985 drivers/dma/ppc4xx/adma.c 		rv = ioread32be(&xor_reg->sr);
sr                986 drivers/dma/ppc4xx/adma.c 		iowrite32be(rv, &xor_reg->sr);
sr               1008 drivers/dma/ppc4xx/adma.c 		if (!(ioread32be(&xor_reg->sr) & XOR_SR_XCP_BIT) &&
sr               1039 drivers/dma/ppc4xx/adma.c 		busy = (ioread32be(&xor_reg->sr) & XOR_SR_XCP_BIT) ? 1 : 0;
sr               1055 drivers/dma/ppc4xx/adma.c 	if (ioread32be(&xor_reg->sr) & XOR_SR_XCP_BIT)
sr               1147 drivers/dma/ppc4xx/adma.c 		if (!(ioread32be(&xor_reg->sr) & XOR_SR_XCP_BIT)) {
sr                106 drivers/dma/ppc4xx/xor.h 	u32	sr;		/* status register */
sr                443 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 	u32 sr;
sr                446 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 	sr = atmel_hlcdc_layer_read_reg(&plane->layer, ATMEL_HLCDC_LAYER_CHSR);
sr                457 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 		if (!(sr & ATMEL_HLCDC_LAYER_EN)) {
sr                740 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 	u32 sr;
sr                764 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 	sr = atmel_hlcdc_layer_read_reg(&plane->layer, ATMEL_HLCDC_LAYER_CHSR);
sr                767 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 			(sr & ATMEL_HLCDC_LAYER_EN ?
sr                655 drivers/gpu/drm/i915/display/intel_display_types.h 	struct g4x_sr_wm sr[NUM_VLV_WM_LEVELS];
sr                673 drivers/gpu/drm/i915/display/intel_display_types.h 	struct g4x_sr_wm sr;
sr                882 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c 	u32 sr = ce->lrc_reg_state[CTX_CONTEXT_CONTROL + 1];
sr                888 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c 	return (sr & SR_DISABLED) == SR_DISABLED;
sr                862 drivers/gpu/drm/i915/i915_drv.h 	struct g4x_sr_wm sr;
sr                870 drivers/gpu/drm/i915/i915_drv.h 	struct g4x_sr_wm sr;
sr                202 drivers/gpu/drm/i915/i915_trace.h 			   __entry->sr_plane = wm->sr.plane;
sr                203 drivers/gpu/drm/i915/i915_trace.h 			   __entry->sr_cursor = wm->sr.cursor;
sr                204 drivers/gpu/drm/i915/i915_trace.h 			   __entry->sr_fbc = wm->sr.fbc;
sr                249 drivers/gpu/drm/i915/i915_trace.h 			   __entry->sr_plane = wm->sr.plane;
sr                250 drivers/gpu/drm/i915/i915_trace.h 			   __entry->sr_cursor = wm->sr.cursor;
sr                958 drivers/gpu/drm/i915/intel_pm.c 		   FW_WM(wm->sr.plane, SR) |
sr                964 drivers/gpu/drm/i915/intel_pm.c 		   FW_WM(wm->sr.fbc, FBC_SR) |
sr                971 drivers/gpu/drm/i915/intel_pm.c 		   FW_WM(wm->sr.cursor, CURSOR_SR) |
sr               1008 drivers/gpu/drm/i915/intel_pm.c 		   FW_WM(wm->sr.plane, SR) |
sr               1017 drivers/gpu/drm/i915/intel_pm.c 		   FW_WM(wm->sr.cursor, CURSOR_SR));
sr               1030 drivers/gpu/drm/i915/intel_pm.c 			   FW_WM(wm->sr.plane >> 9, SR_HI) |
sr               1045 drivers/gpu/drm/i915/intel_pm.c 			   FW_WM(wm->sr.plane >> 9, SR_HI) |
sr               1319 drivers/gpu/drm/i915/intel_pm.c 		wm_state->sr.cursor = USHRT_MAX;
sr               1320 drivers/gpu/drm/i915/intel_pm.c 		wm_state->sr.plane = USHRT_MAX;
sr               1321 drivers/gpu/drm/i915/intel_pm.c 		wm_state->sr.fbc = USHRT_MAX;
sr               1376 drivers/gpu/drm/i915/intel_pm.c 	wm_state->sr.plane = raw->plane[PLANE_PRIMARY];
sr               1377 drivers/gpu/drm/i915/intel_pm.c 	wm_state->sr.cursor = raw->plane[PLANE_CURSOR];
sr               1378 drivers/gpu/drm/i915/intel_pm.c 	wm_state->sr.fbc = raw->fbc;
sr               1412 drivers/gpu/drm/i915/intel_pm.c 	    wm_state->sr.fbc > g4x_fbc_fifo_size(G4X_WM_LEVEL_SR))
sr               1456 drivers/gpu/drm/i915/intel_pm.c 	intermediate->sr.plane = max(optimal->sr.plane,
sr               1457 drivers/gpu/drm/i915/intel_pm.c 				     active->sr.plane);
sr               1458 drivers/gpu/drm/i915/intel_pm.c 	intermediate->sr.cursor = max(optimal->sr.cursor,
sr               1459 drivers/gpu/drm/i915/intel_pm.c 				      active->sr.cursor);
sr               1460 drivers/gpu/drm/i915/intel_pm.c 	intermediate->sr.fbc = max(optimal->sr.fbc,
sr               1461 drivers/gpu/drm/i915/intel_pm.c 				   active->sr.fbc);
sr               1470 drivers/gpu/drm/i915/intel_pm.c 	WARN_ON((intermediate->sr.plane >
sr               1472 drivers/gpu/drm/i915/intel_pm.c 		 intermediate->sr.cursor >
sr               1475 drivers/gpu/drm/i915/intel_pm.c 	WARN_ON((intermediate->sr.plane >
sr               1477 drivers/gpu/drm/i915/intel_pm.c 		 intermediate->sr.cursor >
sr               1481 drivers/gpu/drm/i915/intel_pm.c 	WARN_ON(intermediate->sr.fbc > g4x_fbc_fifo_size(1) &&
sr               1535 drivers/gpu/drm/i915/intel_pm.c 			wm->sr = wm_state->sr;
sr               1757 drivers/gpu/drm/i915/intel_pm.c 		wm_state->sr[level].cursor = USHRT_MAX;
sr               1758 drivers/gpu/drm/i915/intel_pm.c 		wm_state->sr[level].plane = USHRT_MAX;
sr               1931 drivers/gpu/drm/i915/intel_pm.c 		wm_state->sr[level].plane =
sr               1937 drivers/gpu/drm/i915/intel_pm.c 		wm_state->sr[level].cursor =
sr               2086 drivers/gpu/drm/i915/intel_pm.c 		intermediate->sr[level].plane = min(optimal->sr[level].plane,
sr               2087 drivers/gpu/drm/i915/intel_pm.c 						    active->sr[level].plane);
sr               2088 drivers/gpu/drm/i915/intel_pm.c 		intermediate->sr[level].cursor = min(optimal->sr[level].cursor,
sr               2089 drivers/gpu/drm/i915/intel_pm.c 						     active->sr[level].cursor);
sr               2139 drivers/gpu/drm/i915/intel_pm.c 			wm->sr = wm_state->sr[wm->level];
sr               5890 drivers/gpu/drm/i915/intel_pm.c 	wm->sr.plane = _FW_WM(tmp, SR);
sr               5897 drivers/gpu/drm/i915/intel_pm.c 	wm->sr.fbc = _FW_WM(tmp, FBC_SR);
sr               5905 drivers/gpu/drm/i915/intel_pm.c 	wm->sr.cursor = _FW_WM(tmp, CURSOR_SR);
sr               5930 drivers/gpu/drm/i915/intel_pm.c 	wm->sr.plane = _FW_WM(tmp, SR);
sr               5941 drivers/gpu/drm/i915/intel_pm.c 	wm->sr.cursor = _FW_WM(tmp, CURSOR_SR);
sr               5957 drivers/gpu/drm/i915/intel_pm.c 		wm->sr.plane |= _FW_WM(tmp, SR_HI) << 9;
sr               5973 drivers/gpu/drm/i915/intel_pm.c 		wm->sr.plane |= _FW_WM(tmp, SR_HI) << 9;
sr               6008 drivers/gpu/drm/i915/intel_pm.c 		active->sr = wm->sr;
sr               6032 drivers/gpu/drm/i915/intel_pm.c 		raw->plane[PLANE_PRIMARY] = active->sr.plane;
sr               6033 drivers/gpu/drm/i915/intel_pm.c 		raw->plane[PLANE_CURSOR] = active->sr.cursor;
sr               6035 drivers/gpu/drm/i915/intel_pm.c 		raw->fbc = active->sr.fbc;
sr               6063 drivers/gpu/drm/i915/intel_pm.c 		      wm->sr.plane, wm->sr.cursor, wm->sr.fbc);
sr               6106 drivers/gpu/drm/i915/intel_pm.c 			wm_state->sr.fbc = 0;
sr               6190 drivers/gpu/drm/i915/intel_pm.c 			active->sr[level].plane = wm->sr.plane;
sr               6191 drivers/gpu/drm/i915/intel_pm.c 			active->sr[level].cursor = wm->sr.cursor;
sr               6220 drivers/gpu/drm/i915/intel_pm.c 		      wm->sr.plane, wm->sr.cursor, wm->level, wm->cxsr);
sr                 40 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h 	u8 sr;
sr                 92 drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.c 		 info->di, info->sr, info->lcdid);
sr                 90 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c 		info->sr       = (nvbios_rd08(bios, data + 0x03) & 0x08) >> 3;
sr                 42 drivers/hwmon/max31790.c #define RPM_FROM_REG(reg, sr)		(((reg) >> 4) ? \
sr                 43 drivers/hwmon/max31790.c 					 ((60 * (sr) * 8192) / ((reg) >> 4)) : \
sr                 45 drivers/hwmon/max31790.c #define RPM_TO_REG(rpm, sr)		((60 * (sr) * 8192) / ((rpm) * 2))
sr                166 drivers/hwmon/max31790.c 	int sr, rpm;
sr                173 drivers/hwmon/max31790.c 		sr = get_tach_period(data->fan_dynamics[channel]);
sr                174 drivers/hwmon/max31790.c 		rpm = RPM_FROM_REG(data->tach[channel], sr);
sr                178 drivers/hwmon/max31790.c 		sr = get_tach_period(data->fan_dynamics[channel]);
sr                179 drivers/hwmon/max31790.c 		rpm = RPM_FROM_REG(data->target_count[channel], sr);
sr                198 drivers/hwmon/max31790.c 	int sr;
sr                216 drivers/hwmon/max31790.c 		sr = get_tach_period(data->fan_dynamics[channel]);
sr                217 drivers/hwmon/max31790.c 		target_count = RPM_TO_REG(val, sr);
sr                111 drivers/i2c/busses/i2c-iop3xx.c 	u32 sr = __raw_readl(iop3xx_adap->ioaddr + SR_OFFSET);
sr                113 drivers/i2c/busses/i2c-iop3xx.c 	if ((sr &= iop3xx_adap->SR_enabled)) {
sr                114 drivers/i2c/busses/i2c-iop3xx.c 		__raw_writel(sr, iop3xx_adap->ioaddr + SR_OFFSET);
sr                115 drivers/i2c/busses/i2c-iop3xx.c 		iop3xx_adap->SR_received |= sr;
sr                123 drivers/i2c/busses/i2c-iop3xx.c iop3xx_i2c_error(u32 sr)
sr                127 drivers/i2c/busses/i2c-iop3xx.c 	if ((sr & IOP3XX_ISR_BERRD)) {
sr                130 drivers/i2c/busses/i2c-iop3xx.c 	if ((sr & IOP3XX_ISR_ALD)) {
sr                140 drivers/i2c/busses/i2c-iop3xx.c 	u32 sr;
sr                143 drivers/i2c/busses/i2c-iop3xx.c 	sr = iop3xx_adap->SR_received;
sr                147 drivers/i2c/busses/i2c-iop3xx.c 	return sr;
sr                162 drivers/i2c/busses/i2c-iop3xx.c 	unsigned sr = 0;
sr                170 drivers/i2c/busses/i2c-iop3xx.c 			(done = compare( sr = iop3xx_i2c_get_srstat(iop3xx_adap) ,flags )),
sr                173 drivers/i2c/busses/i2c-iop3xx.c 		if ((rc = iop3xx_i2c_error(sr)) < 0) {
sr                174 drivers/i2c/busses/i2c-iop3xx.c 			*status = sr;
sr                177 drivers/i2c/busses/i2c-iop3xx.c 			*status = sr;
sr                182 drivers/i2c/busses/i2c-iop3xx.c 	*status = sr;
sr                129 drivers/i2c/busses/i2c-sh_mobile.c 	int sr;
sr                408 drivers/i2c/busses/i2c-sh_mobile.c 	unsigned char sr;
sr                411 drivers/i2c/busses/i2c-sh_mobile.c 	sr = iic_rd(pd, ICSR);
sr                412 drivers/i2c/busses/i2c-sh_mobile.c 	pd->sr |= sr; /* remember state */
sr                414 drivers/i2c/busses/i2c-sh_mobile.c 	dev_dbg(pd->dev, "i2c_isr 0x%02x 0x%02x %s %d %d!\n", sr, pd->sr,
sr                421 drivers/i2c/busses/i2c-sh_mobile.c 	else if (sr & (ICSR_AL | ICSR_TACK))
sr                423 drivers/i2c/busses/i2c-sh_mobile.c 		iic_wr(pd, ICSR, sr & ~(ICSR_AL | ICSR_TACK));
sr                433 drivers/i2c/busses/i2c-sh_mobile.c 	if (sr & ICSR_WAIT) /* TODO: add delay here to support slow acks */
sr                434 drivers/i2c/busses/i2c-sh_mobile.c 		iic_wr(pd, ICSR, sr & ~ICSR_WAIT);
sr                437 drivers/i2c/busses/i2c-sh_mobile.c 		pd->sr |= SW_DONE;
sr                588 drivers/i2c/busses/i2c-sh_mobile.c 	pd->sr = 0;
sr                624 drivers/i2c/busses/i2c-sh_mobile.c 		dev_dbg(pd->dev, "val 0x%02x pd->sr 0x%02x\n", val, pd->sr);
sr                632 drivers/i2c/busses/i2c-sh_mobile.c 			val |= pd->sr;
sr                673 drivers/i2c/busses/i2c-sh_mobile.c 				       pd->sr & (ICSR_TACK | SW_DONE),
sr                250 drivers/i2c/busses/i2c-xiic.c 	u8 sr;
sr                251 drivers/i2c/busses/i2c-xiic.c 	for (sr = xiic_getreg8(i2c, XIIC_SR_REG_OFFSET);
sr                252 drivers/i2c/busses/i2c-xiic.c 		!(sr & XIIC_SR_RX_FIFO_EMPTY_MASK);
sr                253 drivers/i2c/busses/i2c-xiic.c 		sr = xiic_getreg8(i2c, XIIC_SR_REG_OFFSET))
sr                496 drivers/i2c/busses/i2c-xiic.c 	u8 sr = xiic_getreg8(i2c, XIIC_SR_REG_OFFSET);
sr                498 drivers/i2c/busses/i2c-xiic.c 	return (sr & XIIC_SR_BUS_BUSY_MASK) ? -EBUSY : 0;
sr                732 drivers/i2c/busses/i2c-xiic.c 	u32 sr;
sr                791 drivers/i2c/busses/i2c-xiic.c 	sr = xiic_getreg32(i2c, XIIC_SR_REG_OFFSET);
sr                792 drivers/i2c/busses/i2c-xiic.c 	if (!(sr & XIIC_SR_TX_FIFO_EMPTY_MASK))
sr                855 drivers/infiniband/hw/hfi1/pio.c 		sc->sr = kcalloc_node(sc->sr_size,
sr                858 drivers/infiniband/hw/hfi1/pio.c 		if (!sc->sr) {
sr                913 drivers/infiniband/hw/hfi1/pio.c 	kfree(sc->sr);
sr                944 drivers/infiniband/hw/hfi1/pio.c 	if (sc->sr) {	/* this context has a shadow ring */
sr                946 drivers/infiniband/hw/hfi1/pio.c 			pbuf = &sc->sr[sc->sr_tail].pbuf;
sr               1510 drivers/infiniband/hw/hfi1/pio.c 	pbuf = &sc->sr[head].pbuf;
sr               1725 drivers/infiniband/hw/hfi1/pio.c 		pbuf = &sc->sr[tail].pbuf;
sr                101 drivers/infiniband/hw/hfi1/pio.h 	union pio_shadow_ring *sr;	/* shadow ring */
sr               1259 drivers/infiniband/hw/hfi1/verbs.c 	send_routine sr;
sr               1294 drivers/infiniband/hw/hfi1/verbs.c 	sr = get_send_routine(qp, ps);
sr               1306 drivers/infiniband/hw/hfi1/verbs.c 		if (sr == dd->process_pio_send) {
sr               1317 drivers/infiniband/hw/hfi1/verbs.c 	if (sr == dd->process_dma_send && iowait_pio_pending(&priv->s_iowait))
sr               1322 drivers/infiniband/hw/hfi1/verbs.c 	return sr(qp, ps, 0);
sr                 88 drivers/input/serio/xilinx_ps2.c 	u32 sr;
sr                 92 drivers/input/serio/xilinx_ps2.c 	sr = in_be32(drvdata->base_address + XPS2_STATUS_OFFSET);
sr                 93 drivers/input/serio/xilinx_ps2.c 	if (sr & XPS2_STATUS_RX_FULL) {
sr                159 drivers/input/serio/xilinx_ps2.c 	u32 sr;
sr                165 drivers/input/serio/xilinx_ps2.c 	sr = in_be32(drvdata->base_address + XPS2_STATUS_OFFSET);
sr                166 drivers/input/serio/xilinx_ps2.c 	if (!(sr & XPS2_STATUS_TX_FULL)) {
sr                147 drivers/ipack/devices/ipoctal.c static void ipoctal_irq_rx(struct ipoctal_channel *channel, u8 sr)
sr                158 drivers/ipack/devices/ipoctal.c 		if (sr & SR_ERROR) {
sr                161 drivers/ipack/devices/ipoctal.c 			if (sr & SR_OVERRUN_ERROR) {
sr                166 drivers/ipack/devices/ipoctal.c 			if (sr & SR_PARITY_ERROR) {
sr                170 drivers/ipack/devices/ipoctal.c 			if (sr & SR_FRAMING_ERROR) {
sr                174 drivers/ipack/devices/ipoctal.c 			if (sr & SR_RECEIVED_BREAK) {
sr                186 drivers/ipack/devices/ipoctal.c 		sr = ioread8(&channel->regs->r.sr);
sr                212 drivers/ipack/devices/ipoctal.c 	u8 isr, sr;
sr                217 drivers/ipack/devices/ipoctal.c 	sr = ioread8(&channel->regs->r.sr);
sr                222 drivers/ipack/devices/ipoctal.c 	if ((sr & SR_TX_EMPTY) && (channel->nb_bytes == 0)) {
sr                234 drivers/ipack/devices/ipoctal.c 	if ((isr & channel->isr_rx_rdy_mask) && (sr & SR_RX_READY))
sr                235 drivers/ipack/devices/ipoctal.c 		ipoctal_irq_rx(channel, sr);
sr                238 drivers/ipack/devices/ipoctal.c 	if ((isr & channel->isr_tx_rdy_mask) && (sr & SR_TX_READY))
sr                 24 drivers/ipack/devices/scc2698.h 		u8 d1, sr;  /* Status register */
sr                113 drivers/isdn/hardware/mISDN/avmfritz.c 		struct hdlc_stat_reg sr;
sr                355 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.cmd  = HDLC_CMD_XRS | HDLC_CMD_RRS;
sr                356 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS;
sr                364 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.cmd  = HDLC_CMD_XRS | HDLC_CMD_RRS;
sr                365 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS;
sr                367 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.cmd = HDLC_CMD_XRS;
sr                369 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.cmd = 0;
sr                374 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.cmd  = HDLC_CMD_XRS | HDLC_CMD_RRS;
sr                375 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.mode = mode | HDLC_MODE_ITF_FLG;
sr                377 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.cmd = HDLC_CMD_XRS;
sr                379 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.cmd = 0;
sr                461 drivers/isdn/hardware/mISDN/avmfritz.c 	hdlc->ctrl.sr.cmd &= ~HDLC_CMD_XME;
sr                466 drivers/isdn/hardware/mISDN/avmfritz.c 			hdlc->ctrl.sr.cmd |= HDLC_CMD_XME;
sr                476 drivers/isdn/hardware/mISDN/avmfritz.c 	hdlc->ctrl.sr.xml = ((count == fs) ? 0 : count);
sr                543 drivers/isdn/hardware/mISDN/avmfritz.c 			hdlc->ctrl.sr.xml = 0;
sr                544 drivers/isdn/hardware/mISDN/avmfritz.c 			hdlc->ctrl.sr.cmd |= HDLC_CMD_RRS;
sr                546 drivers/isdn/hardware/mISDN/avmfritz.c 			hdlc->ctrl.sr.cmd &= ~HDLC_CMD_RRS;
sr                585 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.xml = 0;
sr                586 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.cmd |= HDLC_CMD_XRS;
sr                588 drivers/isdn/hardware/mISDN/avmfritz.c 		hdlc->ctrl.sr.cmd &= ~HDLC_CMD_XRS;
sr                100 drivers/macintosh/windfarm.h 	int			(*get_value)(struct wf_sensor *sr, s32 *val);
sr                101 drivers/macintosh/windfarm.h 	void			(*release)(struct wf_sensor *sr);
sr                115 drivers/macintosh/windfarm.h extern int wf_register_sensor(struct wf_sensor *sr);
sr                116 drivers/macintosh/windfarm.h extern void wf_unregister_sensor(struct wf_sensor *sr);
sr                117 drivers/macintosh/windfarm.h extern int wf_get_sensor(struct wf_sensor *sr);
sr                118 drivers/macintosh/windfarm.h extern void wf_put_sensor(struct wf_sensor *sr);
sr                120 drivers/macintosh/windfarm.h static inline int wf_sensor_get(struct wf_sensor *sr, s32 *val)
sr                122 drivers/macintosh/windfarm.h 	return sr->ops->get_value(sr, val);
sr                 36 drivers/macintosh/windfarm_ad7417_sensor.c static int wf_ad7417_temp_get(struct wf_sensor *sr, s32 *value)
sr                 38 drivers/macintosh/windfarm_ad7417_sensor.c 	struct wf_ad7417_priv *pv = sr->priv;
sr                 99 drivers/macintosh/windfarm_ad7417_sensor.c static int wf_ad7417_adc_get(struct wf_sensor *sr, s32 *value)
sr                101 drivers/macintosh/windfarm_ad7417_sensor.c 	struct wf_ad7417_priv *pv = sr->priv;
sr                102 drivers/macintosh/windfarm_ad7417_sensor.c 	int chan = sr - pv->sensors;
sr                137 drivers/macintosh/windfarm_ad7417_sensor.c 			 chan, sr->name, raw, *value);
sr                159 drivers/macintosh/windfarm_ad7417_sensor.c static void wf_ad7417_sensor_release(struct wf_sensor *sr)
sr                161 drivers/macintosh/windfarm_ad7417_sensor.c 	struct wf_ad7417_priv *pv = sr->priv;
sr                163 drivers/macintosh/windfarm_ad7417_sensor.c 	kfree(sr->name);
sr                281 drivers/macintosh/windfarm_core.c 	struct wf_sensor *sr = container_of(kref, struct wf_sensor, ref);
sr                283 drivers/macintosh/windfarm_core.c 	DBG("wf: Deleting sensor %s\n", sr->name);
sr                285 drivers/macintosh/windfarm_core.c 	if (sr->ops && sr->ops->release)
sr                286 drivers/macintosh/windfarm_core.c 		sr->ops->release(sr);
sr                288 drivers/macintosh/windfarm_core.c 		kfree(sr);
sr                306 drivers/macintosh/windfarm_core.c 	struct wf_sensor *sr;
sr                309 drivers/macintosh/windfarm_core.c 	list_for_each_entry(sr, &wf_sensors, link) {
sr                310 drivers/macintosh/windfarm_core.c 		if (!strcmp(sr->name, new_sr->name)) {
sr                312 drivers/macintosh/windfarm_core.c 			       " duplicate sensor %s\n", sr->name);
sr                339 drivers/macintosh/windfarm_core.c void wf_unregister_sensor(struct wf_sensor *sr)
sr                342 drivers/macintosh/windfarm_core.c 	list_del(&sr->link);
sr                345 drivers/macintosh/windfarm_core.c 	DBG("wf: Unregistered sensor %s\n", sr->name);
sr                347 drivers/macintosh/windfarm_core.c 	wf_put_sensor(sr);
sr                351 drivers/macintosh/windfarm_core.c int wf_get_sensor(struct wf_sensor *sr)
sr                353 drivers/macintosh/windfarm_core.c 	if (!try_module_get(sr->ops->owner))
sr                355 drivers/macintosh/windfarm_core.c 	kref_get(&sr->ref);
sr                360 drivers/macintosh/windfarm_core.c void wf_put_sensor(struct wf_sensor *sr)
sr                362 drivers/macintosh/windfarm_core.c 	struct module *mod = sr->ops->owner;
sr                363 drivers/macintosh/windfarm_core.c 	kref_put(&sr->ref, wf_sensor_release);
sr                377 drivers/macintosh/windfarm_core.c 	struct wf_sensor *sr;
sr                386 drivers/macintosh/windfarm_core.c 	list_for_each_entry(sr, &wf_sensors, link)
sr                387 drivers/macintosh/windfarm_core.c 		wf_notify(WF_EVENT_NEW_SENSOR, sr);
sr                 44 drivers/macintosh/windfarm_lm75_sensor.c static int wf_lm75_get(struct wf_sensor *sr, s32 *value)
sr                 46 drivers/macintosh/windfarm_lm75_sensor.c 	struct wf_lm75_sensor *lm = wf_to_lm75(sr);
sr                 57 drivers/macintosh/windfarm_lm75_sensor.c 		    sr->name, cfg);
sr                 78 drivers/macintosh/windfarm_lm75_sensor.c static void wf_lm75_release(struct wf_sensor *sr)
sr                 80 drivers/macintosh/windfarm_lm75_sensor.c 	struct wf_lm75_sensor *lm = wf_to_lm75(sr);
sr                 66 drivers/macintosh/windfarm_lm87_sensor.c static int wf_lm87_get(struct wf_sensor *sr, s32 *value)
sr                 68 drivers/macintosh/windfarm_lm87_sensor.c 	struct wf_lm87_sensor *lm = sr->priv;
sr                 85 drivers/macintosh/windfarm_lm87_sensor.c static void wf_lm87_release(struct wf_sensor *sr)
sr                 87 drivers/macintosh/windfarm_lm87_sensor.c 	struct wf_lm87_sensor *lm = wf_to_lm87(sr);
sr                 34 drivers/macintosh/windfarm_max6690_sensor.c static int wf_max6690_get(struct wf_sensor *sr, s32 *value)
sr                 36 drivers/macintosh/windfarm_max6690_sensor.c 	struct wf_6690_sensor *max = wf_to_6690(sr);
sr                 50 drivers/macintosh/windfarm_max6690_sensor.c static void wf_max6690_release(struct wf_sensor *sr)
sr                 52 drivers/macintosh/windfarm_max6690_sensor.c 	struct wf_6690_sensor *max = wf_to_6690(sr);
sr                267 drivers/macintosh/windfarm_pm112.c 	struct wf_sensor *sr;
sr                274 drivers/macintosh/windfarm_pm112.c 		sr = sens_cpu_temp[cpu];
sr                275 drivers/macintosh/windfarm_pm112.c 		err = sr->ops->get_value(sr, &temp);
sr                289 drivers/macintosh/windfarm_pm112.c 		sr = sens_cpu_power[cpu];
sr                290 drivers/macintosh/windfarm_pm112.c 		err = sr->ops->get_value(sr, &power);
sr                596 drivers/macintosh/windfarm_pm112.c static void pm112_new_sensor(struct wf_sensor *sr)
sr                600 drivers/macintosh/windfarm_pm112.c 	if (!strncmp(sr->name, "cpu-temp-", 9)) {
sr                601 drivers/macintosh/windfarm_pm112.c 		i = sr->name[9] - '0';
sr                602 drivers/macintosh/windfarm_pm112.c 		if (sr->name[10] == 0 && i < NR_CORES &&
sr                603 drivers/macintosh/windfarm_pm112.c 		    sens_cpu_temp[i] == NULL && wf_get_sensor(sr) == 0)
sr                604 drivers/macintosh/windfarm_pm112.c 			sens_cpu_temp[i] = sr;
sr                606 drivers/macintosh/windfarm_pm112.c 	} else if (!strncmp(sr->name, "cpu-power-", 10)) {
sr                607 drivers/macintosh/windfarm_pm112.c 		i = sr->name[10] - '0';
sr                608 drivers/macintosh/windfarm_pm112.c 		if (sr->name[11] == 0 && i < NR_CORES &&
sr                609 drivers/macintosh/windfarm_pm112.c 		    sens_cpu_power[i] == NULL && wf_get_sensor(sr) == 0)
sr                610 drivers/macintosh/windfarm_pm112.c 			sens_cpu_power[i] = sr;
sr                611 drivers/macintosh/windfarm_pm112.c 	} else if (!strcmp(sr->name, "hd-temp")) {
sr                612 drivers/macintosh/windfarm_pm112.c 		if (hd_temp == NULL && wf_get_sensor(sr) == 0)
sr                613 drivers/macintosh/windfarm_pm112.c 			hd_temp = sr;
sr                614 drivers/macintosh/windfarm_pm112.c 	} else if (!strcmp(sr->name, "slots-power")) {
sr                615 drivers/macintosh/windfarm_pm112.c 		if (slots_power == NULL && wf_get_sensor(sr) == 0)
sr                616 drivers/macintosh/windfarm_pm112.c 			slots_power = sr;
sr                617 drivers/macintosh/windfarm_pm112.c 	} else if (!strcmp(sr->name, "backside-temp")) {
sr                618 drivers/macintosh/windfarm_pm112.c 		if (u4_temp == NULL && wf_get_sensor(sr) == 0)
sr                619 drivers/macintosh/windfarm_pm112.c 			u4_temp = sr;
sr                908 drivers/macintosh/windfarm_pm121.c static void pm121_new_sensor(struct wf_sensor *sr)
sr                915 drivers/macintosh/windfarm_pm121.c 	all = pm121_register_sensor(sr, "cpu-temp",
sr                917 drivers/macintosh/windfarm_pm121.c 	all = pm121_register_sensor(sr, "cpu-current",
sr                919 drivers/macintosh/windfarm_pm121.c 	all = pm121_register_sensor(sr, "cpu-voltage",
sr                921 drivers/macintosh/windfarm_pm121.c 	all = pm121_register_sensor(sr, "cpu-power",
sr                923 drivers/macintosh/windfarm_pm121.c 	all = pm121_register_sensor(sr, "hard-drive-temp",
sr                925 drivers/macintosh/windfarm_pm121.c 	all = pm121_register_sensor(sr, "optical-drive-temp",
sr                927 drivers/macintosh/windfarm_pm121.c 	all = pm121_register_sensor(sr, "incoming-air-temp",
sr                929 drivers/macintosh/windfarm_pm121.c 	all = pm121_register_sensor(sr, "north-bridge-temp",
sr                931 drivers/macintosh/windfarm_pm121.c 	all = pm121_register_sensor(sr, "gpu-temp",
sr                715 drivers/macintosh/windfarm_pm72.c static void pm72_new_sensor(struct wf_sensor *sr)
sr                719 drivers/macintosh/windfarm_pm72.c 	if (!strcmp(sr->name, "cpu-diode-temp-0"))
sr                720 drivers/macintosh/windfarm_pm72.c 		sens_cpu_temp[0] = sr;
sr                721 drivers/macintosh/windfarm_pm72.c 	else if (!strcmp(sr->name, "cpu-diode-temp-1"))
sr                722 drivers/macintosh/windfarm_pm72.c 		sens_cpu_temp[1] = sr;
sr                723 drivers/macintosh/windfarm_pm72.c 	else if (!strcmp(sr->name, "cpu-voltage-0"))
sr                724 drivers/macintosh/windfarm_pm72.c 		sens_cpu_volts[0] = sr;
sr                725 drivers/macintosh/windfarm_pm72.c 	else if (!strcmp(sr->name, "cpu-voltage-1"))
sr                726 drivers/macintosh/windfarm_pm72.c 		sens_cpu_volts[1] = sr;
sr                727 drivers/macintosh/windfarm_pm72.c 	else if (!strcmp(sr->name, "cpu-current-0"))
sr                728 drivers/macintosh/windfarm_pm72.c 		sens_cpu_amps[0] = sr;
sr                729 drivers/macintosh/windfarm_pm72.c 	else if (!strcmp(sr->name, "cpu-current-1"))
sr                730 drivers/macintosh/windfarm_pm72.c 		sens_cpu_amps[1] = sr;
sr                731 drivers/macintosh/windfarm_pm72.c 	else if (!strcmp(sr->name, "backside-temp"))
sr                732 drivers/macintosh/windfarm_pm72.c 		backside_temp = sr;
sr                733 drivers/macintosh/windfarm_pm72.c 	else if (!strcmp(sr->name, "hd-temp"))
sr                734 drivers/macintosh/windfarm_pm72.c 		drives_temp = sr;
sr                650 drivers/macintosh/windfarm_pm81.c static void wf_smu_new_sensor(struct wf_sensor *sr)
sr                655 drivers/macintosh/windfarm_pm81.c 	if (sensor_cpu_power == NULL && !strcmp(sr->name, "cpu-power")) {
sr                656 drivers/macintosh/windfarm_pm81.c 		if (wf_get_sensor(sr) == 0)
sr                657 drivers/macintosh/windfarm_pm81.c 			sensor_cpu_power = sr;
sr                660 drivers/macintosh/windfarm_pm81.c 	if (sensor_cpu_temp == NULL && !strcmp(sr->name, "cpu-temp")) {
sr                661 drivers/macintosh/windfarm_pm81.c 		if (wf_get_sensor(sr) == 0)
sr                662 drivers/macintosh/windfarm_pm81.c 			sensor_cpu_temp = sr;
sr                665 drivers/macintosh/windfarm_pm81.c 	if (sensor_hd_temp == NULL && !strcmp(sr->name, "hd-temp")) {
sr                666 drivers/macintosh/windfarm_pm81.c 		if (wf_get_sensor(sr) == 0)
sr                667 drivers/macintosh/windfarm_pm81.c 			sensor_hd_temp = sr;
sr                577 drivers/macintosh/windfarm_pm91.c static void wf_smu_new_sensor(struct wf_sensor *sr)
sr                582 drivers/macintosh/windfarm_pm91.c 	if (sensor_cpu_power == NULL && !strcmp(sr->name, "cpu-power")) {
sr                583 drivers/macintosh/windfarm_pm91.c 		if (wf_get_sensor(sr) == 0)
sr                584 drivers/macintosh/windfarm_pm91.c 			sensor_cpu_power = sr;
sr                587 drivers/macintosh/windfarm_pm91.c 	if (sensor_cpu_temp == NULL && !strcmp(sr->name, "cpu-temp")) {
sr                588 drivers/macintosh/windfarm_pm91.c 		if (wf_get_sensor(sr) == 0)
sr                589 drivers/macintosh/windfarm_pm91.c 			sensor_cpu_temp = sr;
sr                592 drivers/macintosh/windfarm_pm91.c 	if (sensor_hd_temp == NULL && !strcmp(sr->name, "hd-temp")) {
sr                593 drivers/macintosh/windfarm_pm91.c 		if (wf_get_sensor(sr) == 0)
sr                594 drivers/macintosh/windfarm_pm91.c 			sensor_hd_temp = sr;
sr                597 drivers/macintosh/windfarm_pm91.c 	if (sensor_slots_power == NULL && !strcmp(sr->name, "slots-power")) {
sr                598 drivers/macintosh/windfarm_pm91.c 		if (wf_get_sensor(sr) == 0)
sr                599 drivers/macintosh/windfarm_pm91.c 			sensor_slots_power = sr;
sr                605 drivers/macintosh/windfarm_rm31.c static void rm31_new_sensor(struct wf_sensor *sr)
sr                609 drivers/macintosh/windfarm_rm31.c 	if (!strcmp(sr->name, "cpu-diode-temp-0"))
sr                610 drivers/macintosh/windfarm_rm31.c 		sens_cpu_temp[0] = sr;
sr                611 drivers/macintosh/windfarm_rm31.c 	else if (!strcmp(sr->name, "cpu-diode-temp-1"))
sr                612 drivers/macintosh/windfarm_rm31.c 		sens_cpu_temp[1] = sr;
sr                613 drivers/macintosh/windfarm_rm31.c 	else if (!strcmp(sr->name, "cpu-voltage-0"))
sr                614 drivers/macintosh/windfarm_rm31.c 		sens_cpu_volts[0] = sr;
sr                615 drivers/macintosh/windfarm_rm31.c 	else if (!strcmp(sr->name, "cpu-voltage-1"))
sr                616 drivers/macintosh/windfarm_rm31.c 		sens_cpu_volts[1] = sr;
sr                617 drivers/macintosh/windfarm_rm31.c 	else if (!strcmp(sr->name, "cpu-current-0"))
sr                618 drivers/macintosh/windfarm_rm31.c 		sens_cpu_amps[0] = sr;
sr                619 drivers/macintosh/windfarm_rm31.c 	else if (!strcmp(sr->name, "cpu-current-1"))
sr                620 drivers/macintosh/windfarm_rm31.c 		sens_cpu_amps[1] = sr;
sr                621 drivers/macintosh/windfarm_rm31.c 	else if (!strcmp(sr->name, "backside-temp"))
sr                622 drivers/macintosh/windfarm_rm31.c 		backside_temp = sr;
sr                623 drivers/macintosh/windfarm_rm31.c 	else if (!strcmp(sr->name, "slots-temp"))
sr                624 drivers/macintosh/windfarm_rm31.c 		slots_temp = sr;
sr                625 drivers/macintosh/windfarm_rm31.c 	else if (!strcmp(sr->name, "dimms-temp"))
sr                626 drivers/macintosh/windfarm_rm31.c 		dimms_temp = sr;
sr                135 drivers/macintosh/windfarm_smu_sat.c static int wf_sat_sensor_get(struct wf_sensor *sr, s32 *value)
sr                137 drivers/macintosh/windfarm_smu_sat.c 	struct wf_sat_sensor *sens = wf_to_sat(sr);
sr                177 drivers/macintosh/windfarm_smu_sat.c static void wf_sat_sensor_release(struct wf_sensor *sr)
sr                179 drivers/macintosh/windfarm_smu_sat.c 	struct wf_sat_sensor *sens = wf_to_sat(sr);
sr                 58 drivers/macintosh/windfarm_smu_sensors.c static void smu_ads_release(struct wf_sensor *sr)
sr                 60 drivers/macintosh/windfarm_smu_sensors.c 	struct smu_ad_sensor *ads = to_smu_ads(sr);
sr                 87 drivers/macintosh/windfarm_smu_sensors.c static int smu_cputemp_get(struct wf_sensor *sr, s32 *value)
sr                 89 drivers/macintosh/windfarm_smu_sensors.c 	struct smu_ad_sensor *ads = to_smu_ads(sr);
sr                110 drivers/macintosh/windfarm_smu_sensors.c static int smu_cpuamp_get(struct wf_sensor *sr, s32 *value)
sr                112 drivers/macintosh/windfarm_smu_sensors.c 	struct smu_ad_sensor *ads = to_smu_ads(sr);
sr                131 drivers/macintosh/windfarm_smu_sensors.c static int smu_cpuvolt_get(struct wf_sensor *sr, s32 *value)
sr                133 drivers/macintosh/windfarm_smu_sensors.c 	struct smu_ad_sensor *ads = to_smu_ads(sr);
sr                152 drivers/macintosh/windfarm_smu_sensors.c static int smu_slotspow_get(struct wf_sensor *sr, s32 *value)
sr                154 drivers/macintosh/windfarm_smu_sensors.c 	struct smu_ad_sensor *ads = to_smu_ads(sr);
sr                284 drivers/macintosh/windfarm_smu_sensors.c static void smu_cpu_power_release(struct wf_sensor *sr)
sr                286 drivers/macintosh/windfarm_smu_sensors.c 	struct smu_cpu_power_sensor *pow = to_smu_cpu_power(sr);
sr                295 drivers/macintosh/windfarm_smu_sensors.c static int smu_cpu_power_get(struct wf_sensor *sr, s32 *value)
sr                297 drivers/macintosh/windfarm_smu_sensors.c 	struct smu_cpu_power_sensor *pow = to_smu_cpu_power(sr);
sr                164 drivers/media/dvb-frontends/mt312.c static int mt312_get_symbol_rate(struct mt312_state *state, u32 *sr)
sr                541 drivers/media/dvb-frontends/mt312.c 	u16 sr;
sr                613 drivers/media/dvb-frontends/mt312.c 	sr = mt312_div(p->symbol_rate * 4, 15625);
sr                616 drivers/media/dvb-frontends/mt312.c 	buf[0] = (sr >> 8) & 0x3f;
sr                617 drivers/media/dvb-frontends/mt312.c 	buf[1] = (sr >> 0) & 0xff;
sr                155 drivers/media/dvb-frontends/tda10023.c static int tda10023_set_symbolrate (struct tda10023_state* state, u32 sr)
sr                166 drivers/media/dvb-frontends/tda10023.c 	if (sr < (u32)(sysclk_x_10/984)) {
sr                169 drivers/media/dvb-frontends/tda10023.c 	} else if (sr < (u32)(sysclk_x_10/640)) {
sr                172 drivers/media/dvb-frontends/tda10023.c 	} else if (sr < (u32)(sysclk_x_10/492)) {
sr                175 drivers/media/dvb-frontends/tda10023.c 	} else if (sr < (u32)(sysclk_x_10/320)) {
sr                178 drivers/media/dvb-frontends/tda10023.c 	} else if (sr < (u32)(sysclk_x_10/246)) {
sr                181 drivers/media/dvb-frontends/tda10023.c 	} else if (sr < (u32)(sysclk_x_10/160)) {
sr                184 drivers/media/dvb-frontends/tda10023.c 	} else if (sr < (u32)(sysclk_x_10/123)) {
sr                191 drivers/media/dvb-frontends/tda10023.c 	BDRI +=sr/2;
sr                192 drivers/media/dvb-frontends/tda10023.c 	BDRI /=sr;
sr                201 drivers/media/dvb-frontends/tda10023.c 		BDRX*=sr;
sr                207 drivers/media/dvb-frontends/tda10023.c 		sr, BDR, BDRI, NDEC);
sr                330 drivers/media/pci/bt8xx/bttv-risc.c 	u32 xsf, sr;
sr                350 drivers/media/pci/bt8xx/bttv-risc.c 	sr = ((tvnorm->sheight >> (interleaved?0:1))*512)/height - 512;
sr                351 drivers/media/pci/bt8xx/bttv-risc.c 	geo->vscale =  (0x10000UL-sr) & 0x1fff;
sr                380 drivers/media/pci/bt8xx/bttv-risc.c 	u32 sr;
sr                405 drivers/media/pci/bt8xx/bttv-risc.c 	sr = c_height >> !both_fields;
sr                406 drivers/media/pci/bt8xx/bttv-risc.c 	sr = (sr * 512U + (height >> 1)) / height - 512;
sr                407 drivers/media/pci/bt8xx/bttv-risc.c 	geo->vscale = (0x10000UL - sr) & 0x1fff;
sr                680 drivers/media/platform/atmel/atmel-isc-base.c 	u32 sr;
sr                685 drivers/media/platform/atmel/atmel-isc-base.c 	regmap_read(regmap, ISC_CTRLSR, &sr);
sr                686 drivers/media/platform/atmel/atmel-isc-base.c 	while ((sr & ISC_CTRL_UPPRO) && counter--) {
sr                688 drivers/media/platform/atmel/atmel-isc-base.c 		regmap_read(regmap, ISC_CTRLSR, &sr);
sr                143 drivers/media/usb/dvb-usb/vp702x-fe.c 	u64 sr;
sr                155 drivers/media/usb/dvb-usb/vp702x-fe.c 	sr = (u64) (fep->symbol_rate/1000) << 20;
sr                156 drivers/media/usb/dvb-usb/vp702x-fe.c 	do_div(sr,88000);
sr                157 drivers/media/usb/dvb-usb/vp702x-fe.c 	cmd[3] = (sr >> 12) & 0xff;
sr                158 drivers/media/usb/dvb-usb/vp702x-fe.c 	cmd[4] = (sr >> 4)  & 0xff;
sr                159 drivers/media/usb/dvb-usb/vp702x-fe.c 	cmd[5] = (sr << 4)  & 0xf0;
sr                163 drivers/media/usb/dvb-usb/vp702x-fe.c 			(unsigned long) sr, (unsigned long) sr);
sr                748 drivers/misc/cxl/cxl.h 	__be64 sr;
sr                179 drivers/misc/cxl/cxllib.c 	attr->sr = cxl_calculate_sr(false,
sr                590 drivers/misc/cxl/native.c #define set_endian(sr) ((sr) |= CXL_PSL_SR_An_LE)
sr                592 drivers/misc/cxl/native.c #define set_endian(sr) ((sr) &= ~(CXL_PSL_SR_An_LE))
sr                597 drivers/misc/cxl/native.c 	u64 sr = 0;
sr                599 drivers/misc/cxl/native.c 	set_endian(sr);
sr                601 drivers/misc/cxl/native.c 		sr |= CXL_PSL_SR_An_MP;
sr                603 drivers/misc/cxl/native.c 		sr |= CXL_PSL_SR_An_TC;
sr                607 drivers/misc/cxl/native.c 			sr |= CXL_PSL_SR_An_R;
sr                608 drivers/misc/cxl/native.c 		sr |= (mfmsr() & MSR_SF) | CXL_PSL_SR_An_HV;
sr                610 drivers/misc/cxl/native.c 		sr |= CXL_PSL_SR_An_PR | CXL_PSL_SR_An_R;
sr                612 drivers/misc/cxl/native.c 			sr |= CXL_PSL_SR_An_HV;
sr                614 drivers/misc/cxl/native.c 			sr &= ~(CXL_PSL_SR_An_HV);
sr                616 drivers/misc/cxl/native.c 			sr |= CXL_PSL_SR_An_SF;
sr                620 drivers/misc/cxl/native.c 			sr |= CXL_PSL_SR_An_XLAT_ror;
sr                622 drivers/misc/cxl/native.c 			sr |= CXL_PSL_SR_An_XLAT_hpt;
sr                624 drivers/misc/cxl/native.c 	return sr;
sr                696 drivers/misc/cxl/native.c 	ctx->elem->sr = cpu_to_be64(calculate_sr(ctx));
sr                754 drivers/misc/cxl/native.c 	ctx->elem->sr = cpu_to_be64(calculate_sr(ctx));
sr                161 drivers/misc/eeprom/at25.c 		int		sr;
sr                211 drivers/misc/eeprom/at25.c 			sr = spi_w8r8(at25->spi, AT25_RDSR);
sr                212 drivers/misc/eeprom/at25.c 			if (sr < 0 || (sr & AT25_SR_nRDY)) {
sr                214 drivers/misc/eeprom/at25.c 					"rdsr --> %d (%02x)\n", sr, sr);
sr                219 drivers/misc/eeprom/at25.c 			if (!(sr & AT25_SR_nRDY))
sr                223 drivers/misc/eeprom/at25.c 		if ((sr < 0) || (sr & AT25_SR_nRDY)) {
sr                308 drivers/misc/eeprom/at25.c 	int			sr;
sr                335 drivers/misc/eeprom/at25.c 	sr = spi_w8r8(spi, AT25_RDSR);
sr                336 drivers/misc/eeprom/at25.c 	if (sr < 0 || sr & AT25_SR_nRDY) {
sr                337 drivers/misc/eeprom/at25.c 		dev_dbg(&spi->dev, "rdsr --> %d (%02x)\n", sr, sr);
sr                168 drivers/mtd/lpddr/lpddr2_nvm.c 		exec_cmd = { {0} }, sr;
sr                218 drivers/mtd/lpddr/lpddr2_nvm.c 		sr = map_read(map, ow_reg_add(map, STATUS_REG_OFS));
sr                219 drivers/mtd/lpddr/lpddr2_nvm.c 		status_reg = sr.x[0];
sr                221 drivers/mtd/lpddr/lpddr2_nvm.c 			sr = map_read(map, ow_reg_add(map,
sr                223 drivers/mtd/lpddr/lpddr2_nvm.c 			status_reg += sr.x[0] << 16;
sr                 71 drivers/mtd/nand/onenand/omap2.c 				 bool sr, bool sw,
sr                101 drivers/mtd/nand/onenand/omap2.c 	if (sr)
sr                286 drivers/mtd/nand/raw/atmel/nand-controller.c 	u32 sr, rcvd;
sr                289 drivers/mtd/nand/raw/atmel/nand-controller.c 	regmap_read(nc->base.smc, ATMEL_HSMC_NFC_SR, &sr);
sr                291 drivers/mtd/nand/raw/atmel/nand-controller.c 	rcvd = sr & (nc->op.wait | ATMEL_HSMC_NFC_SR_ERRORS);
sr                292 drivers/mtd/nand/raw/atmel/nand-controller.c 	done = atmel_nfc_op_done(&nc->op, sr);
sr                309 drivers/mtd/nand/raw/lpc32xx_mlc.c 	uint8_t sr;
sr                312 drivers/mtd/nand/raw/lpc32xx_mlc.c 	sr = readb(MLC_IRQ_SR(host->io_base));
sr                313 drivers/mtd/nand/raw/lpc32xx_mlc.c 	if (sr & MLCIRQ_NAND_READY)
sr                315 drivers/mtd/nand/raw/lpc32xx_mlc.c 	if (sr & MLCIRQ_CONTROLLER_READY)
sr                540 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	u32 sr, heccr;
sr                544 drivers/mtd/nand/raw/stm32_fmc2_nand.c 					 sr, sr & FMC2_SR_NWRF, 10,
sr               1338 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	u32 isr, sr;
sr               1341 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	if (readl_relaxed_poll_timeout_atomic(fmc2->io_base + FMC2_SR, sr,
sr               1342 drivers/mtd/nand/raw/stm32_fmc2_nand.c 					      sr & FMC2_SR_NWRF, 1,
sr                196 drivers/mtd/spi-nor/mtk-quadspi.c static int mtk_nor_wr_sr(struct mtk_nor *mtk_nor, u8 sr)
sr                198 drivers/mtd/spi-nor/mtk-quadspi.c 	writeb(sr, mtk_nor->base + MTK_NOR_PRGDATA5_REG);
sr                703 drivers/mtd/spi-nor/spi-nor.c static int spi_nor_xread_sr(struct spi_nor *nor, u8 *sr)
sr                710 drivers/mtd/spi-nor/spi-nor.c 				   SPI_MEM_OP_DATA_IN(1, sr, 1));
sr                715 drivers/mtd/spi-nor/spi-nor.c 	return nor->read_reg(nor, SPINOR_OP_XRDSR, sr, 1);
sr                748 drivers/mtd/spi-nor/spi-nor.c 	int sr = read_sr(nor);
sr                749 drivers/mtd/spi-nor/spi-nor.c 	if (sr < 0)
sr                750 drivers/mtd/spi-nor/spi-nor.c 		return sr;
sr                752 drivers/mtd/spi-nor/spi-nor.c 	if (nor->flags & SNOR_F_USE_CLSR && sr & (SR_E_ERR | SR_P_ERR)) {
sr                753 drivers/mtd/spi-nor/spi-nor.c 		if (sr & SR_E_ERR)
sr                762 drivers/mtd/spi-nor/spi-nor.c 	return !(sr & SR_WIP);
sr                805 drivers/mtd/spi-nor/spi-nor.c 	int sr, fsr;
sr                808 drivers/mtd/spi-nor/spi-nor.c 		sr = s3an_sr_ready(nor);
sr                810 drivers/mtd/spi-nor/spi-nor.c 		sr = spi_nor_sr_ready(nor);
sr                811 drivers/mtd/spi-nor/spi-nor.c 	if (sr < 0)
sr                812 drivers/mtd/spi-nor/spi-nor.c 		return sr;
sr                816 drivers/mtd/spi-nor/spi-nor.c 	return sr && fsr;
sr               1344 drivers/mtd/spi-nor/spi-nor.c static void stm_get_locked_range(struct spi_nor *nor, u8 sr, loff_t *ofs,
sr               1352 drivers/mtd/spi-nor/spi-nor.c 	if (!(sr & mask)) {
sr               1357 drivers/mtd/spi-nor/spi-nor.c 		pow = ((sr & mask) ^ mask) >> shift;
sr               1359 drivers/mtd/spi-nor/spi-nor.c 		if (nor->flags & SNOR_F_HAS_SR_TB && sr & SR_TB)
sr               1371 drivers/mtd/spi-nor/spi-nor.c 				    u8 sr, bool locked)
sr               1379 drivers/mtd/spi-nor/spi-nor.c 	stm_get_locked_range(nor, sr, &lock_offs, &lock_len);
sr               1390 drivers/mtd/spi-nor/spi-nor.c 			    u8 sr)
sr               1392 drivers/mtd/spi-nor/spi-nor.c 	return stm_check_lock_status_sr(nor, ofs, len, sr, true);
sr               1396 drivers/mtd/spi-nor/spi-nor.c 			      u8 sr)
sr               1398 drivers/mtd/spi-nor/spi-nor.c 	return stm_check_lock_status_sr(nor, ofs, len, sr, false);
sr               2748 drivers/net/ethernet/dec/tulip/de4x5.c     int ana, anlpa, cap, cr, slnk, sr;
sr               2781 drivers/net/ethernet/dec/tulip/de4x5.c 			            ((sr=is_anc_capable(dev)) & MII_SR_ANC)) {
sr               2782 drivers/net/ethernet/dec/tulip/de4x5.c 		    ana = (((sr >> 6) & MII_ANA_TAF) | MII_ANA_CSMA);
sr               2820 drivers/net/ethernet/dec/tulip/de4x5.c 	    if ((sr=test_mii_reg(dev, MII_SR, MII_SR_ASSC, true, 2000)) < 0) {
sr               2821 drivers/net/ethernet/dec/tulip/de4x5.c 		next_tick = sr & ~TIMER_CB;
sr               2825 drivers/net/ethernet/dec/tulip/de4x5.c 		if (sr) {                         /* Success! */
sr               2933 drivers/net/ethernet/dec/tulip/de4x5.c     s32 cr, anlpa, ana, cap, irqs, irq_mask, imr, omr, slnk, sr, sts;
sr               2970 drivers/net/ethernet/dec/tulip/de4x5.c 		                    ((sr=is_anc_capable(dev)) & MII_SR_ANC)) {
sr               2971 drivers/net/ethernet/dec/tulip/de4x5.c 		    ana = (((sr >> 6) & MII_ANA_TAF) | MII_ANA_CSMA);
sr               3003 drivers/net/ethernet/dec/tulip/de4x5.c 	    sr = test_mii_reg(dev, MII_SR, MII_SR_ASSC, true, 2000);
sr               3004 drivers/net/ethernet/dec/tulip/de4x5.c 	    if (sr < 0) {
sr               3005 drivers/net/ethernet/dec/tulip/de4x5.c 		next_tick = sr & ~TIMER_CB;
sr               3009 drivers/net/ethernet/dec/tulip/de4x5.c 		if (sr) {                         /* Success! */
sr                951 drivers/net/ethernet/dec/tulip/de4x5.h     sr = mii_rd(MII_SR, lp->phy[lp->active].addr, DE4X5_MII);\
sr                952 drivers/net/ethernet/dec/tulip/de4x5.h     if (!(sr & MII_ANA_T4AM) && lp->fdx) fdx=1;\
sr                 80 drivers/net/ethernet/jme.h 	u8	sr;
sr                197 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h MLXSW_ITEM32(pci, cqe0, sr, 0x0C, 6, 1);
sr                198 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h MLXSW_ITEM32(pci, cqe12, sr, 0x00, 26, 1);
sr                199 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h mlxsw_pci_cqe_item_helpers(sr, 0, 12, 12);
sr                708 drivers/net/ethernet/micrel/ks8842.c 	u16 sr = ks8842_read16(adapter, 16, REG_TXSR);
sr                709 drivers/net/ethernet/micrel/ks8842.c 	netdev_dbg(netdev, "%s - entry, sr: %x\n", __func__, sr);
sr                302 drivers/net/ethernet/natsemi/macsonic.c 	int sr;
sr                340 drivers/net/ethernet/natsemi/macsonic.c 		sr = SONIC_READ(SONIC_SR);
sr                341 drivers/net/ethernet/natsemi/macsonic.c 		if (sr == 0x0004 || sr == 0x0006 || sr == 0x0100 || sr == 0x0101)
sr                726 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_init_block *sr;
sr                743 drivers/net/ethernet/seeq/sgiseeq.c 	sr = dma_alloc_attrs(&pdev->dev, sizeof(*sp->srings), &sp->srings_dma,
sr                745 drivers/net/ethernet/seeq/sgiseeq.c 	if (!sr) {
sr                750 drivers/net/ethernet/seeq/sgiseeq.c 	sp->srings = sr;
sr                986 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 	u32 cr, sr;
sr               1009 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 	sr = axienet_dma_in32(lp, XAXIDMA_RX_SR_OFFSET);
sr               1010 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 	for (count = 0; !(sr & XAXIDMA_SR_HALT_MASK) && count < 5; ++count) {
sr               1012 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 		sr = axienet_dma_in32(lp, XAXIDMA_RX_SR_OFFSET);
sr               1015 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 	sr = axienet_dma_in32(lp, XAXIDMA_TX_SR_OFFSET);
sr               1016 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 	for (count = 0; !(sr & XAXIDMA_SR_HALT_MASK) && count < 5; ++count) {
sr               1018 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 		sr = axienet_dma_in32(lp, XAXIDMA_TX_SR_OFFSET);
sr                555 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static void brcmf_chip_socram_ramsize(struct brcmf_core_priv *sr, u32 *ramsize,
sr                566 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	if (WARN_ON(sr->pub.rev < 4))
sr                569 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	if (!brcmf_chip_iscoreup(&sr->pub))
sr                570 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_resetcore(&sr->pub, 0, 0, 0);
sr                573 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	coreinfo = brcmf_chip_core_read32(sr, SOCRAMREGOFFS(coreinfo));
sr                576 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	if ((sr->pub.rev <= 7) || (sr->pub.rev == 12)) {
sr                586 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		if (sr->pub.rev >= 23) {
sr                593 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 			retent = brcmf_chip_socram_banksize(sr, i, &banksize);
sr                601 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	switch (sr->chip->pub.chip) {
sr                603 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		if (sr->chip->pub.chiprev < 2)
sr               1187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core_priv *sr;
sr               1200 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		sr = container_of(core, struct brcmf_core_priv, pub);
sr               1201 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_core_write32(sr, SOCRAMREGOFFS(bankidx), 3);
sr               1202 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_core_write32(sr, SOCRAMREGOFFS(bankpda), 0);
sr                297 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 	struct cfg80211_sched_scan_request *sr;
sr                311 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 		sr = pi->reqs[i];
sr                312 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 		*scan_freq = gcd(sr->scan_plans[0].interval, *scan_freq);
sr                326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 		sr = pi->reqs[i];
sr                327 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 		chidx = brcmf_pno_get_bucket_channels(sr, pno_cfg);
sr                334 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 			sr->scan_plans[0].interval / *scan_freq;
sr               1858 drivers/net/wireless/cisco/airo.c static int readStatsRid(struct airo_info*ai, StatsRid *sr, int rid, int lock)
sr               1860 drivers/net/wireless/cisco/airo.c 	return PC4500_readrid(ai, rid, sr, sizeof(*sr), lock);
sr               1751 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	s32 sr;
sr               1942 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	sr = win->success_ratio;
sr               1954 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (sr <= RATE_DECREASE_TH || current_tpt == 0) {
sr               1961 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		if (high != RATE_INVALID && sr >= RATE_INCREASE_TH)
sr               1979 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			if (high_tpt > current_tpt && sr >= RATE_INCREASE_TH)
sr               1990 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			} else if (sr >= RATE_INCREASE_TH) {
sr               1999 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	    (sr > RATE_HIGH_TH || current_tpt > 100 * tbl->expected_tpt[low]))
sr               2215 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	s32 sr;
sr               2414 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	sr = window->success_ratio;
sr               2426 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	if ((sr <= IWL_RATE_DECREASE_TH) || (current_tpt == 0)) {
sr               2434 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		if (high != IWL_RATE_INVALID && sr >= IWL_RATE_INCREASE_TH)
sr               2455 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 					sr >= IWL_RATE_INCREASE_TH) {
sr               2468 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 			} else if (sr >= IWL_RATE_INCREASE_TH) {
sr               2477 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		    ((sr > IWL_RATE_HIGH_TH) ||
sr               1789 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 					 s32 sr, int low, int high,
sr               1795 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if ((sr <= RS_PERCENT(IWL_MVM_RS_SR_FORCE_DECREASE)) ||
sr               1855 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (sr >= RS_PERCENT(IWL_MVM_RS_SR_NO_DECREASE)) {
sr               1938 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 					 s32 sr, int weak, int strong,
sr               1949 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (sr <= RS_PERCENT(IWL_MVM_RS_TPC_SR_FORCE_INCREASE) ||
sr               1956 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (sr >= RS_PERCENT(IWL_MVM_RS_TPC_SR_NO_INCREASE) &&
sr               1974 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (sr < RS_PERCENT(IWL_MVM_RS_TPC_SR_NO_INCREASE) &&
sr               2009 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	s32 sr;
sr               2043 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	sr = window[cur].success_ratio;
sr               2052 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		       cur, current_tpt, sr, weak, strong,
sr               2055 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	action = rs_get_tpc_action(mvm, sr, weak, strong,
sr               2109 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	s32 sr;
sr               2244 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	sr = window->success_ratio;
sr               2255 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		       rs_pretty_rate(rate), current_tpt, sr,
sr               2258 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	scale_action = rs_get_rate_action(mvm, tbl, sr, low, high,
sr                361 drivers/net/wireless/quantenna/qtnfmac/event.c 			       const struct qlink_event_scan_result *sr,
sr                376 drivers/net/wireless/quantenna/qtnfmac/event.c 	if (len < sizeof(*sr)) {
sr                382 drivers/net/wireless/quantenna/qtnfmac/event.c 	channel = ieee80211_get_channel(wiphy, le16_to_cpu(sr->freq));
sr                385 drivers/net/wireless/quantenna/qtnfmac/event.c 		       vif->mac->macid, vif->vifid, le16_to_cpu(sr->freq));
sr                389 drivers/net/wireless/quantenna/qtnfmac/event.c 	payload_len = len - sizeof(*sr);
sr                390 drivers/net/wireless/quantenna/qtnfmac/event.c 	tlv = (struct qlink_tlv_hdr *)sr->payload;
sr                436 drivers/net/wireless/quantenna/qtnfmac/event.c 				  sr->bssid, get_unaligned_le64(&sr->tsf),
sr                437 drivers/net/wireless/quantenna/qtnfmac/event.c 				  le16_to_cpu(sr->capab),
sr                438 drivers/net/wireless/quantenna/qtnfmac/event.c 				  le16_to_cpu(sr->bintval), ies, ies_len,
sr                439 drivers/net/wireless/quantenna/qtnfmac/event.c 				  DBM_TO_MBM(sr->sig_dbm), GFP_KERNEL);
sr                331 drivers/pcmcia/db1xxx_ss.c #define GET_VS(sr, socknr)		\
sr                332 drivers/pcmcia/db1xxx_ss.c 	(((sr) >> (2 * (socknr))) & 3)
sr                342 drivers/pcmcia/db1xxx_ss.c 	unsigned short cr, sr;
sr                348 drivers/pcmcia/db1xxx_ss.c 	sr = bcsr_read(BCSR_STATUS);
sr                352 drivers/pcmcia/db1xxx_ss.c 		sr >>= 4;
sr                355 drivers/pcmcia/db1xxx_ss.c 	switch (GET_VS(sr, sock->nr)) {
sr                 39 drivers/power/avs/smartreflex.c static inline void sr_write_reg(struct omap_sr *sr, unsigned offset, u32 value)
sr                 41 drivers/power/avs/smartreflex.c 	__raw_writel(value, (sr->base + offset));
sr                 44 drivers/power/avs/smartreflex.c static inline void sr_modify_reg(struct omap_sr *sr, unsigned offset, u32 mask,
sr                 58 drivers/power/avs/smartreflex.c 	if (sr->ip_type == SR_TYPE_V1 && offset == ERRCONFIG_V1)
sr                 60 drivers/power/avs/smartreflex.c 	else if (sr->ip_type == SR_TYPE_V2 && offset == ERRCONFIG_V2)
sr                 63 drivers/power/avs/smartreflex.c 	reg_val = __raw_readl(sr->base + offset);
sr                 70 drivers/power/avs/smartreflex.c 	__raw_writel(reg_val, (sr->base + offset));
sr                 73 drivers/power/avs/smartreflex.c static inline u32 sr_read_reg(struct omap_sr *sr, unsigned offset)
sr                 75 drivers/power/avs/smartreflex.c 	return __raw_readl(sr->base + offset);
sr                127 drivers/power/avs/smartreflex.c static void sr_set_clk_length(struct omap_sr *sr)
sr                133 drivers/power/avs/smartreflex.c 	fck = clk_get(sr->pdev->dev.parent, "fck");
sr                135 drivers/power/avs/smartreflex.c 		fck = clk_get(&sr->pdev->dev, "fck");
sr                137 drivers/power/avs/smartreflex.c 			dev_err(&sr->pdev->dev,
sr                139 drivers/power/avs/smartreflex.c 				__func__, dev_name(&sr->pdev->dev));
sr                149 drivers/power/avs/smartreflex.c 		sr->clk_length = SRCLKLENGTH_12MHZ_SYSCLK;
sr                152 drivers/power/avs/smartreflex.c 		sr->clk_length = SRCLKLENGTH_13MHZ_SYSCLK;
sr                155 drivers/power/avs/smartreflex.c 		sr->clk_length = SRCLKLENGTH_19MHZ_SYSCLK;
sr                158 drivers/power/avs/smartreflex.c 		sr->clk_length = SRCLKLENGTH_26MHZ_SYSCLK;
sr                161 drivers/power/avs/smartreflex.c 		sr->clk_length = SRCLKLENGTH_38MHZ_SYSCLK;
sr                164 drivers/power/avs/smartreflex.c 		dev_err(&sr->pdev->dev, "%s: Invalid fclk rate: %d\n",
sr                170 drivers/power/avs/smartreflex.c static void sr_start_vddautocomp(struct omap_sr *sr)
sr                173 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev,
sr                179 drivers/power/avs/smartreflex.c 	if (!sr_class->enable(sr))
sr                180 drivers/power/avs/smartreflex.c 		sr->autocomp_active = true;
sr                183 drivers/power/avs/smartreflex.c static void sr_stop_vddautocomp(struct omap_sr *sr)
sr                186 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev,
sr                192 drivers/power/avs/smartreflex.c 	if (sr->autocomp_active) {
sr                193 drivers/power/avs/smartreflex.c 		sr_class->disable(sr, 1);
sr                194 drivers/power/avs/smartreflex.c 		sr->autocomp_active = false;
sr                235 drivers/power/avs/smartreflex.c static void sr_v1_disable(struct omap_sr *sr)
sr                242 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, ERRCONFIG_V1,
sr                246 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, SRCONFIG, SRCONFIG_SRENABLE, 0x0);
sr                249 drivers/power/avs/smartreflex.c 	if (sr_read_reg(sr, ERRCONFIG_V1) & ERRCONFIG_VPBOUNDINTST_V1)
sr                251 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, ERRCONFIG_V1,
sr                260 drivers/power/avs/smartreflex.c 	sr_test_cond_timeout((sr_read_reg(sr, ERRCONFIG_V1) &
sr                265 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev, "%s: Smartreflex disable timedout\n",
sr                269 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, ERRCONFIG_V1, ERRCONFIG_MCUDISACKINTEN,
sr                273 drivers/power/avs/smartreflex.c static void sr_v2_disable(struct omap_sr *sr)
sr                278 drivers/power/avs/smartreflex.c 	sr_write_reg(sr, IRQENABLE_SET, IRQENABLE_MCUDISABLEACKINT);
sr                281 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, SRCONFIG, SRCONFIG_SRENABLE, 0x0);
sr                288 drivers/power/avs/smartreflex.c 	if (sr_read_reg(sr, ERRCONFIG_V2) & ERRCONFIG_VPBOUNDINTST_V2)
sr                289 drivers/power/avs/smartreflex.c 		sr_modify_reg(sr, ERRCONFIG_V2, ERRCONFIG_VPBOUNDINTEN_V2,
sr                292 drivers/power/avs/smartreflex.c 		sr_modify_reg(sr, ERRCONFIG_V2, ERRCONFIG_VPBOUNDINTEN_V2,
sr                294 drivers/power/avs/smartreflex.c 	sr_write_reg(sr, IRQENABLE_CLR, (IRQENABLE_MCUACCUMINT |
sr                297 drivers/power/avs/smartreflex.c 	sr_write_reg(sr, IRQSTATUS, (IRQSTATUS_MCUACCUMINT |
sr                305 drivers/power/avs/smartreflex.c 	sr_test_cond_timeout((sr_read_reg(sr, IRQSTATUS) &
sr                310 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev, "%s: Smartreflex disable timedout\n",
sr                314 drivers/power/avs/smartreflex.c 	sr_write_reg(sr, IRQENABLE_CLR, IRQENABLE_MCUDISABLEACKINT);
sr                315 drivers/power/avs/smartreflex.c 	sr_write_reg(sr, IRQSTATUS, IRQSTATUS_MCUDISABLEACKINT);
sr                319 drivers/power/avs/smartreflex.c 				struct omap_sr *sr, u32 efuse_offs)
sr                323 drivers/power/avs/smartreflex.c 	if (!sr->nvalue_table) {
sr                324 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev, "%s: Missing ntarget value table\n",
sr                329 drivers/power/avs/smartreflex.c 	for (i = 0; i < sr->nvalue_count; i++) {
sr                330 drivers/power/avs/smartreflex.c 		if (sr->nvalue_table[i].efuse_offs == efuse_offs)
sr                331 drivers/power/avs/smartreflex.c 			return &sr->nvalue_table[i];
sr                351 drivers/power/avs/smartreflex.c int sr_configure_errgen(struct omap_sr *sr)
sr                358 drivers/power/avs/smartreflex.c 	if (!sr) {
sr                364 drivers/power/avs/smartreflex.c 	if (!sr->clk_length)
sr                365 drivers/power/avs/smartreflex.c 		sr_set_clk_length(sr);
sr                367 drivers/power/avs/smartreflex.c 	senp_en = sr->senp_mod;
sr                368 drivers/power/avs/smartreflex.c 	senn_en = sr->senn_mod;
sr                370 drivers/power/avs/smartreflex.c 	sr_config = (sr->clk_length << SRCONFIG_SRCLKLENGTH_SHIFT) |
sr                373 drivers/power/avs/smartreflex.c 	switch (sr->ip_type) {
sr                390 drivers/power/avs/smartreflex.c 		dev_err(&sr->pdev->dev, "%s: Trying to Configure smartreflex module without specifying the ip\n",
sr                396 drivers/power/avs/smartreflex.c 	sr_write_reg(sr, SRCONFIG, sr_config);
sr                397 drivers/power/avs/smartreflex.c 	sr_errconfig = (sr->err_weight << ERRCONFIG_ERRWEIGHT_SHIFT) |
sr                398 drivers/power/avs/smartreflex.c 		(sr->err_maxlimit << ERRCONFIG_ERRMAXLIMIT_SHIFT) |
sr                399 drivers/power/avs/smartreflex.c 		(sr->err_minlimit <<  ERRCONFIG_ERRMINLIMIT_SHIFT);
sr                400 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, errconfig_offs, (SR_ERRWEIGHT_MASK |
sr                405 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, errconfig_offs, (vpboundint_en | vpboundint_st),
sr                420 drivers/power/avs/smartreflex.c int sr_disable_errgen(struct omap_sr *sr)
sr                425 drivers/power/avs/smartreflex.c 	if (!sr) {
sr                431 drivers/power/avs/smartreflex.c 	switch (sr->ip_type) {
sr                443 drivers/power/avs/smartreflex.c 		dev_err(&sr->pdev->dev, "%s: Trying to Configure smartreflex module without specifying the ip\n",
sr                449 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, SRCONFIG, SRCONFIG_SENENABLE | SRCONFIG_ERRGEN_EN, 0);
sr                457 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, errconfig_offs, vpboundint_en | vpboundint_st, 0);
sr                474 drivers/power/avs/smartreflex.c int sr_configure_minmax(struct omap_sr *sr)
sr                480 drivers/power/avs/smartreflex.c 	if (!sr) {
sr                486 drivers/power/avs/smartreflex.c 	if (!sr->clk_length)
sr                487 drivers/power/avs/smartreflex.c 		sr_set_clk_length(sr);
sr                489 drivers/power/avs/smartreflex.c 	senp_en = sr->senp_mod;
sr                490 drivers/power/avs/smartreflex.c 	senn_en = sr->senn_mod;
sr                492 drivers/power/avs/smartreflex.c 	sr_config = (sr->clk_length << SRCONFIG_SRCLKLENGTH_SHIFT) |
sr                494 drivers/power/avs/smartreflex.c 		(sr->accum_data << SRCONFIG_ACCUMDATA_SHIFT);
sr                496 drivers/power/avs/smartreflex.c 	switch (sr->ip_type) {
sr                507 drivers/power/avs/smartreflex.c 		dev_err(&sr->pdev->dev, "%s: Trying to Configure smartreflex module without specifying the ip\n",
sr                513 drivers/power/avs/smartreflex.c 	sr_write_reg(sr, SRCONFIG, sr_config);
sr                514 drivers/power/avs/smartreflex.c 	sr_avgwt = (sr->senp_avgweight << AVGWEIGHT_SENPAVGWEIGHT_SHIFT) |
sr                515 drivers/power/avs/smartreflex.c 		(sr->senn_avgweight << AVGWEIGHT_SENNAVGWEIGHT_SHIFT);
sr                516 drivers/power/avs/smartreflex.c 	sr_write_reg(sr, AVGWEIGHT, sr_avgwt);
sr                522 drivers/power/avs/smartreflex.c 	switch (sr->ip_type) {
sr                524 drivers/power/avs/smartreflex.c 		sr_modify_reg(sr, ERRCONFIG_V1,
sr                532 drivers/power/avs/smartreflex.c 		sr_write_reg(sr, IRQSTATUS,
sr                535 drivers/power/avs/smartreflex.c 		sr_write_reg(sr, IRQENABLE_SET,
sr                540 drivers/power/avs/smartreflex.c 		dev_err(&sr->pdev->dev, "%s: Trying to Configure smartreflex module without specifying the ip\n",
sr                559 drivers/power/avs/smartreflex.c int sr_enable(struct omap_sr *sr, unsigned long volt)
sr                565 drivers/power/avs/smartreflex.c 	if (!sr) {
sr                571 drivers/power/avs/smartreflex.c 	volt_data = omap_voltage_get_voltdata(sr->voltdm, volt);
sr                574 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev, "%s: Unable to get voltage table for nominal voltage %ld\n",
sr                579 drivers/power/avs/smartreflex.c 	nvalue_row = sr_retrieve_nvalue_row(sr, volt_data->sr_efuse_offs);
sr                582 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev, "%s: failure getting SR data for this voltage %ld\n",
sr                588 drivers/power/avs/smartreflex.c 	sr->err_minlimit = nvalue_row->errminlimit;
sr                590 drivers/power/avs/smartreflex.c 	pm_runtime_get_sync(&sr->pdev->dev);
sr                593 drivers/power/avs/smartreflex.c 	if (sr_read_reg(sr, SRCONFIG) & SRCONFIG_SRENABLE)
sr                597 drivers/power/avs/smartreflex.c 	ret = sr_class->configure(sr);
sr                601 drivers/power/avs/smartreflex.c 	sr_write_reg(sr, NVALUERECIPROCAL, nvalue_row->nvalue);
sr                604 drivers/power/avs/smartreflex.c 	sr_modify_reg(sr, SRCONFIG, SRCONFIG_SRENABLE, SRCONFIG_SRENABLE);
sr                615 drivers/power/avs/smartreflex.c void sr_disable(struct omap_sr *sr)
sr                617 drivers/power/avs/smartreflex.c 	if (!sr) {
sr                624 drivers/power/avs/smartreflex.c 	if (pm_runtime_suspended(&sr->pdev->dev))
sr                631 drivers/power/avs/smartreflex.c 	if (sr_read_reg(sr, SRCONFIG) & SRCONFIG_SRENABLE) {
sr                632 drivers/power/avs/smartreflex.c 		switch (sr->ip_type) {
sr                634 drivers/power/avs/smartreflex.c 			sr_v1_disable(sr);
sr                637 drivers/power/avs/smartreflex.c 			sr_v2_disable(sr);
sr                640 drivers/power/avs/smartreflex.c 			dev_err(&sr->pdev->dev, "UNKNOWN IP type %d\n",
sr                641 drivers/power/avs/smartreflex.c 				sr->ip_type);
sr                645 drivers/power/avs/smartreflex.c 	pm_runtime_put_sync_suspend(&sr->pdev->dev);
sr                696 drivers/power/avs/smartreflex.c 	struct omap_sr *sr = _sr_lookup(voltdm);
sr                698 drivers/power/avs/smartreflex.c 	if (IS_ERR(sr)) {
sr                703 drivers/power/avs/smartreflex.c 	if (!sr->autocomp_active)
sr                707 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev, "%s: smartreflex class driver not registered\n",
sr                712 drivers/power/avs/smartreflex.c 	sr_class->enable(sr);
sr                728 drivers/power/avs/smartreflex.c 	struct omap_sr *sr = _sr_lookup(voltdm);
sr                730 drivers/power/avs/smartreflex.c 	if (IS_ERR(sr)) {
sr                735 drivers/power/avs/smartreflex.c 	if (!sr->autocomp_active)
sr                739 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev, "%s: smartreflex class driver not registered\n",
sr                744 drivers/power/avs/smartreflex.c 	sr_class->disable(sr, 0);
sr                760 drivers/power/avs/smartreflex.c 	struct omap_sr *sr = _sr_lookup(voltdm);
sr                762 drivers/power/avs/smartreflex.c 	if (IS_ERR(sr)) {
sr                767 drivers/power/avs/smartreflex.c 	if (!sr->autocomp_active)
sr                771 drivers/power/avs/smartreflex.c 		dev_warn(&sr->pdev->dev, "%s: smartreflex class driver not registered\n",
sr                776 drivers/power/avs/smartreflex.c 	sr_class->disable(sr, 1);
sr                196 drivers/pwm/pwm-imx27.c 	u32 sr;
sr                198 drivers/pwm/pwm-imx27.c 	sr = readl(imx->mmio_base + MX3_PWMSR);
sr                199 drivers/pwm/pwm-imx27.c 	fifoav = FIELD_GET(MX3_PWMSR_FIFOAV, sr);
sr                205 drivers/pwm/pwm-imx27.c 		sr = readl(imx->mmio_base + MX3_PWMSR);
sr                206 drivers/pwm/pwm-imx27.c 		if (fifoav == FIELD_GET(MX3_PWMSR_FIFOAV, sr))
sr                440 drivers/regulator/tps65910-regulator.c 	int opvsel = 0, srvsel = 0, vselmax = 0, mult = 0, sr = 0;
sr                454 drivers/regulator/tps65910-regulator.c 		sr = opvsel & VDD1_OP_CMD_MASK;
sr                470 drivers/regulator/tps65910-regulator.c 		sr = opvsel & VDD2_OP_CMD_MASK;
sr                484 drivers/regulator/tps65910-regulator.c 		sr = opvsel & VDDCTRL_OP_CMD_MASK;
sr                495 drivers/regulator/tps65910-regulator.c 	if (sr) {
sr                261 drivers/rtc/rtc-at91sam9.c 	u32 sr, mr;
sr                267 drivers/rtc/rtc-at91sam9.c 	sr = rtt_readl(rtc, SR) & (mr >> 16);
sr                268 drivers/rtc/rtc-at91sam9.c 	if (!sr)
sr                272 drivers/rtc/rtc-at91sam9.c 	if (sr & AT91_RTT_ALMS)
sr                276 drivers/rtc/rtc-at91sam9.c 	if (sr & AT91_RTT_RTTINC)
sr                191 drivers/rtc/rtc-ds1374.c 	int cr, sr;
sr                203 drivers/rtc/rtc-ds1374.c 	sr = ret = i2c_smbus_read_byte_data(client, DS1374_REG_SR);
sr                217 drivers/rtc/rtc-ds1374.c 	alarm->pending = !!(sr & DS1374_REG_SR_AF);
sr                209 drivers/rtc/rtc-isl12026.c 	u8 sr;
sr                227 drivers/rtc/rtc-isl12026.c 	msgs[1].buf = &sr;
sr                236 drivers/rtc/rtc-isl12026.c 	if (sr & ISL12026_REG_SR_RTCF)
sr                238 drivers/rtc/rtc-isl12026.c 	if (sr & ISL12026_REG_SR_OSCF)
sr                268 drivers/rtc/rtc-isl1208.c 	int sr, dtr, atr, usr;
sr                270 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_get_sr(client);
sr                271 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                273 drivers/rtc/rtc-isl1208.c 		return sr;
sr                277 drivers/rtc/rtc-isl1208.c 		   (sr & ISL1208_REG_SR_RTCF) ? " RTCF" : "",
sr                278 drivers/rtc/rtc-isl1208.c 		   (sr & ISL1208_REG_SR_BAT) ? " BAT" : "",
sr                279 drivers/rtc/rtc-isl1208.c 		   (sr & ISL1208_REG_SR_ALM) ? " ALM" : "",
sr                280 drivers/rtc/rtc-isl1208.c 		   (sr & ISL1208_REG_SR_WRTC) ? " WRTC" : "",
sr                281 drivers/rtc/rtc-isl1208.c 		   (sr & ISL1208_REG_SR_XTOSCB) ? " XTOSCB" : "",
sr                282 drivers/rtc/rtc-isl1208.c 		   (sr & ISL1208_REG_SR_ARST) ? " ARST" : "", sr);
sr                285 drivers/rtc/rtc-isl1208.c 		   (sr & ISL1208_REG_SR_RTCF) ? "bad" : "okay");
sr                306 drivers/rtc/rtc-isl1208.c 	int sr;
sr                309 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_get_sr(client);
sr                310 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                315 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_read_regs(client, 0, regs, ISL1208_RTC_SECTION_LEN);
sr                316 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                319 drivers/rtc/rtc-isl1208.c 		return sr;
sr                351 drivers/rtc/rtc-isl1208.c 	int icr, yr, sr = isl1208_i2c_get_sr(client);
sr                353 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                355 drivers/rtc/rtc-isl1208.c 		return sr;
sr                358 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_read_regs(client, ISL1208_REG_SCA, regs,
sr                360 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                363 drivers/rtc/rtc-isl1208.c 		return sr;
sr                447 drivers/rtc/rtc-isl1208.c 	int sr;
sr                467 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_get_sr(client);
sr                468 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                470 drivers/rtc/rtc-isl1208.c 		return sr;
sr                474 drivers/rtc/rtc-isl1208.c 	sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR,
sr                475 drivers/rtc/rtc-isl1208.c 				       sr | ISL1208_REG_SR_WRTC);
sr                476 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                478 drivers/rtc/rtc-isl1208.c 		return sr;
sr                482 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_set_regs(client, 0, regs, ISL1208_RTC_SECTION_LEN);
sr                483 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                486 drivers/rtc/rtc-isl1208.c 		return sr;
sr                490 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_get_sr(client);
sr                491 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                493 drivers/rtc/rtc-isl1208.c 		return sr;
sr                495 drivers/rtc/rtc-isl1208.c 	sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR,
sr                496 drivers/rtc/rtc-isl1208.c 				       sr & ~ISL1208_REG_SR_WRTC);
sr                497 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                499 drivers/rtc/rtc-isl1208.c 		return sr;
sr                529 drivers/rtc/rtc-isl1208.c 	int sr;
sr                531 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_get_sr(client);
sr                532 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                534 drivers/rtc/rtc-isl1208.c 		return sr;
sr                537 drivers/rtc/rtc-isl1208.c 	sr &= ~ISL1208_REG_SR_EVT;
sr                539 drivers/rtc/rtc-isl1208.c 	sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR, sr);
sr                540 drivers/rtc/rtc-isl1208.c 	if (sr < 0)
sr                553 drivers/rtc/rtc-isl1208.c 	int sr;
sr                555 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_get_sr(client);
sr                556 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                558 drivers/rtc/rtc-isl1208.c 		return sr;
sr                561 drivers/rtc/rtc-isl1208.c 	if (!(sr & ISL1208_REG_SR_EVT))
sr                564 drivers/rtc/rtc-isl1208.c 	sr = isl1208_i2c_read_regs(client, ISL1219_REG_SCT, regs,
sr                566 drivers/rtc/rtc-isl1208.c 	if (sr < 0) {
sr                581 drivers/rtc/rtc-isl1208.c 	sr = rtc_valid_tm(&tm);
sr                582 drivers/rtc/rtc-isl1208.c 	if (sr)
sr                583 drivers/rtc/rtc-isl1208.c 		return sr;
sr                597 drivers/rtc/rtc-isl1208.c 	int handled = 0, sr, err;
sr                605 drivers/rtc/rtc-isl1208.c 		sr = isl1208_i2c_get_sr(client);
sr                606 drivers/rtc/rtc-isl1208.c 		if (sr >= 0)
sr                612 drivers/rtc/rtc-isl1208.c 			return sr;
sr                616 drivers/rtc/rtc-isl1208.c 	if (sr & ISL1208_REG_SR_ALM) {
sr                622 drivers/rtc/rtc-isl1208.c 		sr &= ~ISL1208_REG_SR_ALM;
sr                623 drivers/rtc/rtc-isl1208.c 		sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR, sr);
sr                624 drivers/rtc/rtc-isl1208.c 		if (sr < 0)
sr                636 drivers/rtc/rtc-isl1208.c 	if (isl1208->config->has_tamper && (sr & ISL1208_REG_SR_EVT)) {
sr                178 drivers/rtc/rtc-rv3029c2.c 	int sr;
sr                181 drivers/rtc/rtc-rv3029c2.c 	sr = rv3029_write_regs(dev, RV3029_STATUS, buf, 1);
sr                183 drivers/rtc/rtc-rv3029c2.c 	if (sr < 0)
sr                191 drivers/rtc/rtc-rv3029c2.c 	u8 sr;
sr                194 drivers/rtc/rtc-rv3029c2.c 		ret = rv3029_get_sr(dev, &sr);
sr                197 drivers/rtc/rtc-rv3029c2.c 		if (!(sr & RV3029_STATUS_EEBUSY))
sr                220 drivers/rtc/rtc-rv3029c2.c 	u8 sr;
sr                223 drivers/rtc/rtc-rv3029c2.c 	ret = rv3029_get_sr(dev, &sr);
sr                226 drivers/rtc/rtc-rv3029c2.c 	if (sr & (RV3029_STATUS_VLOW1 | RV3029_STATUS_VLOW2)) {
sr                230 drivers/rtc/rtc-rv3029c2.c 		sr &= ~RV3029_STATUS_VLOW1;
sr                231 drivers/rtc/rtc-rv3029c2.c 		sr &= ~RV3029_STATUS_VLOW2;
sr                232 drivers/rtc/rtc-rv3029c2.c 		ret = rv3029_set_sr(dev, sr);
sr                236 drivers/rtc/rtc-rv3029c2.c 		ret = rv3029_get_sr(dev, &sr);
sr                239 drivers/rtc/rtc-rv3029c2.c 		if (sr & (RV3029_STATUS_VLOW1 | RV3029_STATUS_VLOW2)) {
sr                102 drivers/rtc/rtc-stm32.c 	u16 sr;
sr                214 drivers/rtc/rtc-stm32.c 	status = readl_relaxed(rtc->base + regs->sr);
sr                346 drivers/rtc/rtc-stm32.c 	status = readl_relaxed(rtc->base + regs->sr);
sr                559 drivers/rtc/rtc-stm32.c 		.sr = 0x0C, /* set to ISR offset to ease alarm management */
sr                581 drivers/rtc/rtc-stm32.c 		.sr = 0x0C, /* set to ISR offset to ease alarm management */
sr                612 drivers/rtc/rtc-stm32.c 		.sr = 0x50,
sr                145 drivers/rtc/rtc-x1205.c static int x1205_get_status(struct i2c_client *client, unsigned char *sr)
sr                159 drivers/rtc/rtc-x1205.c 			.buf = sr
sr                621 drivers/rtc/rtc-x1205.c 	unsigned char sr;
sr                641 drivers/rtc/rtc-x1205.c 	err = x1205_get_status(client, &sr);
sr                643 drivers/rtc/rtc-x1205.c 		if (sr & X1205_SR_RTCF) {
sr                375 drivers/scsi/BusLogic.c 		if (statusreg.sr.adapter_ready && !statusreg.sr.cmd_param_busy)
sr                417 drivers/scsi/BusLogic.c 		if (statusreg.sr.datain_ready)
sr                419 drivers/scsi/BusLogic.c 		if (statusreg.sr.cmd_param_busy)
sr                436 drivers/scsi/BusLogic.c 		if (statusreg.sr.cmd_invalid) {
sr                475 drivers/scsi/BusLogic.c 		if (statusreg.sr.datain_ready) {
sr                482 drivers/scsi/BusLogic.c 				statusreg.sr.adapter_ready)
sr                514 drivers/scsi/BusLogic.c 	if (statusreg.sr.cmd_invalid) {
sr                526 drivers/scsi/BusLogic.c 		if (statusreg.sr.cmd_invalid || statusreg.sr.rsvd ||
sr                527 drivers/scsi/BusLogic.c 				statusreg.sr.datain_ready ||
sr                528 drivers/scsi/BusLogic.c 				statusreg.sr.cmd_param_busy ||
sr                529 drivers/scsi/BusLogic.c 				!statusreg.sr.adapter_ready ||
sr                530 drivers/scsi/BusLogic.c 				!statusreg.sr.init_reqd ||
sr                531 drivers/scsi/BusLogic.c 				statusreg.sr.diag_active ||
sr                532 drivers/scsi/BusLogic.c 				statusreg.sr.diag_failed) {
sr               1156 drivers/scsi/BusLogic.c 	if (statusreg.all == 0 || statusreg.sr.diag_active ||
sr               1157 drivers/scsi/BusLogic.c 			statusreg.sr.cmd_param_busy || statusreg.sr.rsvd ||
sr               1158 drivers/scsi/BusLogic.c 			statusreg.sr.cmd_invalid || intreg.ir.rsvd != 0)
sr               1229 drivers/scsi/BusLogic.c 		if (statusreg.sr.diag_active)
sr               1249 drivers/scsi/BusLogic.c 		if (!statusreg.sr.diag_active)
sr               1264 drivers/scsi/BusLogic.c 		if (statusreg.sr.diag_failed || statusreg.sr.adapter_ready ||
sr               1265 drivers/scsi/BusLogic.c 				statusreg.sr.datain_ready)
sr               1279 drivers/scsi/BusLogic.c 	if (statusreg.sr.diag_failed || !statusreg.sr.adapter_ready) {
sr               1284 drivers/scsi/BusLogic.c 		if (statusreg.sr.datain_ready)
sr                306 drivers/scsi/BusLogic.h 	} sr;
sr                862 drivers/scsi/NCR5380.c 		unsigned char sr = NCR5380_read(STATUS_REG);
sr                865 drivers/scsi/NCR5380.c 		         irq, basr, sr, mr);
sr                883 drivers/scsi/NCR5380.c 		    (sr & (SR_SEL | SR_IO | SR_BSY | SR_RST)) == (SR_SEL | SR_IO)) {
sr                900 drivers/scsi/NCR5380.c 			if (sr & SR_RST) {
sr               1583 drivers/scsi/qla2xxx/qla_bsg.c 	struct qla_status_reg *sr = (void *)bsg;
sr               1594 drivers/scsi/qla2xxx/qla_bsg.c 	    bsg_job->request_payload.sg_cnt, sr, sizeof(*sr));
sr               1597 drivers/scsi/qla2xxx/qla_bsg.c 	    sr->field_address.device, sr->field_address.offset,
sr               1598 drivers/scsi/qla2xxx/qla_bsg.c 	    sizeof(sr->status_reg), sr->field_address.option);
sr               1599 drivers/scsi/qla2xxx/qla_bsg.c 	sr->status_reg = *sfp;
sr               1608 drivers/scsi/qla2xxx/qla_bsg.c 	    bsg_job->reply_payload.sg_cnt, sr, sizeof(*sr));
sr               1617 drivers/scsi/qla2xxx/qla_bsg.c 	bsg_reply->reply_payload_rcv_len = sizeof(*sr);
sr               1634 drivers/scsi/qla2xxx/qla_bsg.c 	struct qla_status_reg *sr = (void *)bsg;
sr               1645 drivers/scsi/qla2xxx/qla_bsg.c 	    bsg_job->request_payload.sg_cnt, sr, sizeof(*sr));
sr               1647 drivers/scsi/qla2xxx/qla_bsg.c 	*sfp = sr->status_reg;
sr               1649 drivers/scsi/qla2xxx/qla_bsg.c 	    sr->field_address.device, sr->field_address.offset,
sr               1650 drivers/scsi/qla2xxx/qla_bsg.c 	    sizeof(sr->status_reg), sr->field_address.option);
sr               2076 drivers/scsi/qla2xxx/qla_bsg.c 	struct qla_serdes_reg sr;
sr               2078 drivers/scsi/qla2xxx/qla_bsg.c 	memset(&sr, 0, sizeof(sr));
sr               2081 drivers/scsi/qla2xxx/qla_bsg.c 	    bsg_job->request_payload.sg_cnt, &sr, sizeof(sr));
sr               2083 drivers/scsi/qla2xxx/qla_bsg.c 	switch (sr.cmd) {
sr               2085 drivers/scsi/qla2xxx/qla_bsg.c 		rval = qla2x00_write_serdes_word(vha, sr.addr, sr.val);
sr               2089 drivers/scsi/qla2xxx/qla_bsg.c 		rval = qla2x00_read_serdes_word(vha, sr.addr, &sr.val);
sr               2091 drivers/scsi/qla2xxx/qla_bsg.c 		    bsg_job->reply_payload.sg_cnt, &sr, sizeof(sr));
sr               2092 drivers/scsi/qla2xxx/qla_bsg.c 		bsg_reply->reply_payload_rcv_len = sizeof(sr);
sr               2096 drivers/scsi/qla2xxx/qla_bsg.c 		    "Unknown serdes cmd %x.\n", sr.cmd);
sr               2118 drivers/scsi/qla2xxx/qla_bsg.c 	struct qla_serdes_reg_ex sr;
sr               2120 drivers/scsi/qla2xxx/qla_bsg.c 	memset(&sr, 0, sizeof(sr));
sr               2123 drivers/scsi/qla2xxx/qla_bsg.c 	    bsg_job->request_payload.sg_cnt, &sr, sizeof(sr));
sr               2125 drivers/scsi/qla2xxx/qla_bsg.c 	switch (sr.cmd) {
sr               2127 drivers/scsi/qla2xxx/qla_bsg.c 		rval = qla8044_write_serdes_word(vha, sr.addr, sr.val);
sr               2131 drivers/scsi/qla2xxx/qla_bsg.c 		rval = qla8044_read_serdes_word(vha, sr.addr, &sr.val);
sr               2133 drivers/scsi/qla2xxx/qla_bsg.c 		    bsg_job->reply_payload.sg_cnt, &sr, sizeof(sr));
sr               2134 drivers/scsi/qla2xxx/qla_bsg.c 		bsg_reply->reply_payload_rcv_len = sizeof(sr);
sr               2138 drivers/scsi/qla2xxx/qla_bsg.c 		    "Unknown serdes cmd %x.\n", sr.cmd);
sr                473 drivers/scsi/ufs/ufs.h 		struct utp_cmd_rsp sr;
sr               1905 drivers/scsi/ufs/ufshcd.c 		len = be16_to_cpu(lrbp->ucd_rsp_ptr->sr.sense_data_len);
sr               1908 drivers/scsi/ufs/ufshcd.c 		memcpy(lrbp->sense_buffer, lrbp->ucd_rsp_ptr->sr.sense_data,
sr                799 drivers/scsi/wd33c93.c 	uchar asr, sr, phs, id, lun, *ucp, msg;
sr                813 drivers/scsi/wd33c93.c 	sr = read_wd33c93(regs, WD_SCSI_STATUS);	/* clear the interrupt */
sr                816 drivers/scsi/wd33c93.c 	DB(DB_INTR, printk("{%02x:%02x-", asr, sr))
sr                845 drivers/scsi/wd33c93.c 	switch (sr) {
sr                972 drivers/scsi/wd33c93.c 			sr = read_wd33c93(regs, WD_SCSI_STATUS);	/* clear interrupt */
sr                989 drivers/scsi/wd33c93.c 		sr = read_wd33c93(regs, WD_SCSI_STATUS);	/* clear interrupt */
sr               1196 drivers/scsi/wd33c93.c 			     asr, sr, phs);
sr               1334 drivers/scsi/wd33c93.c 		DB(DB_INTR, printk("RESEL%s", sr == CSR_RESEL_AM ? "_AM" : ""))
sr               1367 drivers/scsi/wd33c93.c 					     asr, sr, phs);
sr               1385 drivers/scsi/wd33c93.c 		if (sr == CSR_RESEL_AM) {
sr               1403 drivers/scsi/wd33c93.c 				sr = read_wd33c93(regs, WD_SCSI_STATUS);
sr               1405 drivers/scsi/wd33c93.c 				if (sr == (CSR_ABORT | PHS_MESS_IN) ||
sr               1406 drivers/scsi/wd33c93.c 				    sr == (CSR_UNEXP | PHS_MESS_IN) ||
sr               1407 drivers/scsi/wd33c93.c 				    sr == (CSR_SRV_REQ | PHS_MESS_IN)) {
sr               1420 drivers/scsi/wd33c93.c 					sr = read_wd33c93(regs, WD_SCSI_STATUS);
sr               1422 drivers/scsi/wd33c93.c 					if (sr != CSR_MSGIN)
sr               1425 drivers/scsi/wd33c93.c 						     sr);
sr               1432 drivers/scsi/wd33c93.c 					     sr);
sr               1490 drivers/scsi/wd33c93.c 		printk("--UNKNOWN INTERRUPT:%02x:%02x:%02x--", asr, sr, phs);
sr               1504 drivers/scsi/wd33c93.c 	uchar sr;
sr               1541 drivers/scsi/wd33c93.c 	sr = read_wd33c93(regs, WD_SCSI_STATUS);
sr               1544 drivers/scsi/wd33c93.c 	if (sr == 0x00)
sr               1546 drivers/scsi/wd33c93.c 	else if (sr == 0x01) {
sr               1548 drivers/scsi/wd33c93.c 		sr = read_wd33c93(regs, WD_QUEUE_TAG);
sr               1549 drivers/scsi/wd33c93.c 		if (sr == 0xa5) {
sr               1655 drivers/scsi/wd33c93.c 		uchar sr, asr;
sr               1681 drivers/scsi/wd33c93.c 		sr = read_wd33c93(regs, WD_SCSI_STATUS);
sr               1684 drivers/scsi/wd33c93.c 		     asr, sr, read_wd33c93_count(regs), timeout);
sr               1699 drivers/scsi/wd33c93.c 		sr = read_wd33c93(regs, WD_SCSI_STATUS);
sr               1700 drivers/scsi/wd33c93.c 		printk("asr=%02x, sr=%02x.", asr, sr);
sr                261 drivers/sh/intc/handle.c 	struct intc_sense_reg *sr = desc->hw.sense_regs;
sr                264 drivers/sh/intc/handle.c 	for (i = 0; sr && enum_id && i < desc->hw.nr_sense_regs; i++) {
sr                265 drivers/sh/intc/handle.c 		sr = desc->hw.sense_regs + i;
sr                267 drivers/sh/intc/handle.c 		for (j = 0; j < ARRAY_SIZE(sr->enum_ids); j++) {
sr                268 drivers/sh/intc/handle.c 			if (sr->enum_ids[j] != enum_id)
sr                272 drivers/sh/intc/handle.c 			fn += (sr->reg_width >> 3) - 1;
sr                274 drivers/sh/intc/handle.c 			BUG_ON((j + 1) * sr->field_width > sr->reg_width);
sr                276 drivers/sh/intc/handle.c 			bit = sr->reg_width - ((j + 1) * sr->field_width);
sr                278 drivers/sh/intc/handle.c 			return _INTC_MK(fn, 0, intc_get_reg(d, sr->reg),
sr                279 drivers/sh/intc/handle.c 					0, sr->field_width, bit);
sr                330 drivers/spi/atmel-quadspi.c 	u32 sr, offset;
sr                363 drivers/spi/atmel-quadspi.c 	sr = readl_relaxed(aq->regs + QSPI_SR);
sr                364 drivers/spi/atmel-quadspi.c 	if ((sr & QSPI_SR_CMD_COMPLETED) == QSPI_SR_CMD_COMPLETED)
sr                369 drivers/spi/atmel-quadspi.c 	aq->pending = sr & QSPI_SR_CMD_COMPLETED;
sr                148 drivers/spi/spi-pic32.c 	u32 sr = readl(&pic32s->regs->status);
sr                150 drivers/spi/spi-pic32.c 	return (sr >> STAT_RF_LVL_SHIFT) & STAT_RF_LVL_MASK;
sr                155 drivers/spi/spi-pic32.c 	u32 sr = readl(&pic32s->regs->status);
sr                157 drivers/spi/spi-pic32.c 	return (sr >> STAT_TF_LVL_SHIFT) & STAT_TF_LVL_MASK;
sr                 98 drivers/spi/spi-ppc4xx.c 	u8 sr;
sr                293 drivers/spi/spi-ppc4xx.c 	status = in_8(&hw->regs->sr);
sr                310 drivers/spi/spi-ppc4xx.c 			lstatus = in_8(&hw->regs->sr);
sr                319 drivers/spi/spi-ppc4xx.c 			status = in_8(&hw->regs->sr);
sr                127 drivers/spi/spi-stm32-qspi.c 	u32 cr, sr;
sr                129 drivers/spi/spi-stm32-qspi.c 	sr = readl_relaxed(qspi->io_base + QSPI_SR);
sr                131 drivers/spi/spi-stm32-qspi.c 	if (sr & (SR_TEF | SR_TCF)) {
sr                156 drivers/spi/spi-stm32-qspi.c 	u32 len = op->data.nbytes, sr;
sr                171 drivers/spi/spi-stm32-qspi.c 							sr, (sr & SR_FTF), 1,
sr                175 drivers/spi/spi-stm32-qspi.c 				len, sr);
sr                280 drivers/spi/spi-stm32-qspi.c 	u32 sr;
sr                282 drivers/spi/spi-stm32-qspi.c 	return readl_relaxed_poll_timeout_atomic(qspi->io_base + QSPI_SR, sr,
sr                283 drivers/spi/spi-stm32-qspi.c 						 !(sr & SR_BUSY), 1,
sr                290 drivers/spi/spi-stm32-qspi.c 	u32 cr, sr;
sr                307 drivers/spi/spi-stm32-qspi.c 		sr = readl_relaxed(qspi->io_base + QSPI_SR);
sr                308 drivers/spi/spi-stm32-qspi.c 		if (sr & SR_TEF)
sr                597 drivers/spi/spi-stm32.c 	u32 sr = readl_relaxed(spi->base + STM32H7_SPI_SR);
sr                598 drivers/spi/spi-stm32.c 	u32 rxplvl = (sr & STM32H7_SPI_SR_RXPLVL) >>
sr                602 drivers/spi/spi-stm32.c 	       ((sr & STM32H7_SPI_SR_RXP) ||
sr                603 drivers/spi/spi-stm32.c 		(flush && ((sr & STM32H7_SPI_SR_RXWNE) || (rxplvl > 0))))) {
sr                607 drivers/spi/spi-stm32.c 		    (flush && (sr & STM32H7_SPI_SR_RXWNE))) {
sr                625 drivers/spi/spi-stm32.c 		sr = readl_relaxed(spi->base + STM32H7_SPI_SR);
sr                626 drivers/spi/spi-stm32.c 		rxplvl = (sr & STM32H7_SPI_SR_RXPLVL) >>
sr                653 drivers/spi/spi-stm32.c 	u32 sr;
sr                672 drivers/spi/spi-stm32.c 					      sr, !(sr & STM32F4_SPI_SR_BSY),
sr                709 drivers/spi/spi-stm32.c 	u32 cr1, sr;
sr                724 drivers/spi/spi-stm32.c 					      sr, !(sr & STM32H7_SPI_SR_EOT),
sr                731 drivers/spi/spi-stm32.c 						sr, !(sr & STM32H7_SPI_SR_SUSP),
sr                791 drivers/spi/spi-stm32.c 	u32 sr, mask = 0;
sr                797 drivers/spi/spi-stm32.c 	sr = readl_relaxed(spi->base + STM32F4_SPI_SR);
sr                802 drivers/spi/spi-stm32.c 	sr &= ~STM32F4_SPI_SR_BSY;
sr                807 drivers/spi/spi-stm32.c 		sr &= ~STM32F4_SPI_SR_OVR | STM32F4_SPI_SR_RXNE;
sr                813 drivers/spi/spi-stm32.c 		sr &= ~STM32F4_SPI_SR_TXE;
sr                817 drivers/spi/spi-stm32.c 	if (!(sr & mask)) {
sr                818 drivers/spi/spi-stm32.c 		dev_dbg(spi->dev, "spurious IT (sr=0x%08x)\n", sr);
sr                823 drivers/spi/spi-stm32.c 	if (sr & STM32F4_SPI_SR_OVR) {
sr                839 drivers/spi/spi-stm32.c 	if (sr & STM32F4_SPI_SR_TXE) {
sr                846 drivers/spi/spi-stm32.c 	if (sr & STM32F4_SPI_SR_RXNE) {
sr                894 drivers/spi/spi-stm32.c 	u32 sr, ier, mask;
sr                900 drivers/spi/spi-stm32.c 	sr = readl_relaxed(spi->base + STM32H7_SPI_SR);
sr                914 drivers/spi/spi-stm32.c 	if (!(sr & mask)) {
sr                916 drivers/spi/spi-stm32.c 			sr, ier);
sr                921 drivers/spi/spi-stm32.c 	if (sr & STM32H7_SPI_SR_SUSP) {
sr                933 drivers/spi/spi-stm32.c 	if (sr & STM32H7_SPI_SR_MODF) {
sr                938 drivers/spi/spi-stm32.c 	if (sr & STM32H7_SPI_SR_OVR) {
sr                950 drivers/spi/spi-stm32.c 	if (sr & STM32H7_SPI_SR_EOT) {
sr                956 drivers/spi/spi-stm32.c 	if (sr & STM32H7_SPI_SR_TXP)
sr                960 drivers/spi/spi-stm32.c 	if (sr & STM32H7_SPI_SR_RXP)
sr               1089 drivers/spi/spi-stm32.c 	u32 sr;
sr               1093 drivers/spi/spi-stm32.c 	sr = readl_relaxed(spi->base + STM32H7_SPI_SR);
sr               1097 drivers/spi/spi-stm32.c 	if (!(sr & STM32H7_SPI_SR_EOT))
sr               1098 drivers/spi/spi-stm32.c 		dev_warn(spi->dev, "DMA error (sr=0x%08x)\n", sr);
sr                271 drivers/spi/spi-xilinx.c 		u32 sr;
sr                295 drivers/spi/spi-xilinx.c 			sr = XSPI_SR_TX_EMPTY_MASK;
sr                297 drivers/spi/spi-xilinx.c 			sr = xspi->read_fn(xspi->regs + XSPI_SR_OFFSET);
sr                304 drivers/spi/spi-xilinx.c 			    !(sr & XSPI_SR_TX_EMPTY_MASK) &&
sr                305 drivers/spi/spi-xilinx.c 			    (sr & XSPI_SR_RX_EMPTY_MASK)) {
sr                312 drivers/spi/spi-xilinx.c 			if ((sr & XSPI_SR_TX_EMPTY_MASK) && (rx_words > 1)) {
sr                318 drivers/spi/spi-xilinx.c 			sr = xspi->read_fn(xspi->regs + XSPI_SR_OFFSET);
sr                319 drivers/spi/spi-xilinx.c 			if (!(sr & XSPI_SR_RX_EMPTY_MASK)) {
sr                361 drivers/spi/spi-xilinx.c 	u8 sr;
sr                374 drivers/spi/spi-xilinx.c 		sr = xspi->read_fn(xspi->regs + XSPI_SR_OFFSET);
sr                376 drivers/spi/spi-xilinx.c 	} while (!(sr & XSPI_SR_TX_FULL_MASK));
sr                362 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		u8 sr = 0;
sr                375 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 			rtw_get_wps_attr_content(wps_ie,  wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL);
sr                376 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		if (sr != 0)
sr               1706 drivers/staging/rtl8723bs/core/rtw_ap.c 		u8 sr = 0;
sr               1712 drivers/staging/rtl8723bs/core/rtw_ap.c 			(u8 *)(&sr),
sr               1716 drivers/staging/rtl8723bs/core/rtw_ap.c 		if (sr) {
sr               2503 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			u8 sr = 0;
sr               2507 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 				rtw_get_wps_attr_content(wps_ie,  wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL);
sr               2509 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			if (sr != 0)
sr                284 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 		u8 *psr = NULL, sr = 0;
sr                294 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 			psr = rtw_get_wps_attr_content(wpsie,  wpsielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL);
sr                296 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 		if (sr != 0)
sr               1036 drivers/staging/wlan-ng/prism2sta.c 	struct hfa384x_scan_result *sr = &inf->info.scanresult;
sr               1051 drivers/staging/wlan-ng/prism2sta.c 			 sr->result[i].chid,
sr               1052 drivers/staging/wlan-ng/prism2sta.c 			 sr->result[i].anl,
sr               1053 drivers/staging/wlan-ng/prism2sta.c 			 sr->result[i].sl, sr->result[i].bcnint);
sr               1055 drivers/staging/wlan-ng/prism2sta.c 			 sr->result[i].capinfo, sr->result[i].proberesp_rate);
sr               1058 drivers/staging/wlan-ng/prism2sta.c 	joinreq.channel = sr->result[0].chid;
sr               1059 drivers/staging/wlan-ng/prism2sta.c 	memcpy(joinreq.bssid, sr->result[0].bssid, WLAN_BSSID_LEN);
sr                826 drivers/tty/serial/fsl_lpuart.c 	unsigned char rx, sr;
sr                837 drivers/tty/serial/fsl_lpuart.c 		sr = readb(sport->port.membase + UARTSR1);
sr                843 drivers/tty/serial/fsl_lpuart.c 		if (sr & (UARTSR1_PE | UARTSR1_OR | UARTSR1_FE)) {
sr                844 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSR1_PE)
sr                846 drivers/tty/serial/fsl_lpuart.c 			else if (sr & UARTSR1_FE)
sr                849 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSR1_OR)
sr                852 drivers/tty/serial/fsl_lpuart.c 			if (sr & sport->port.ignore_status_mask) {
sr                858 drivers/tty/serial/fsl_lpuart.c 			sr &= sport->port.read_status_mask;
sr                860 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSR1_PE)
sr                862 drivers/tty/serial/fsl_lpuart.c 			else if (sr & UARTSR1_FE)
sr                865 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSR1_OR)
sr                907 drivers/tty/serial/fsl_lpuart.c 	unsigned long rx, sr;
sr                918 drivers/tty/serial/fsl_lpuart.c 		sr = lpuart32_read(&sport->port, UARTSTAT);
sr                925 drivers/tty/serial/fsl_lpuart.c 		if (sr & (UARTSTAT_PE | UARTSTAT_OR | UARTSTAT_FE)) {
sr                926 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSTAT_PE)
sr                928 drivers/tty/serial/fsl_lpuart.c 			else if (sr & UARTSTAT_FE)
sr                931 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSTAT_OR)
sr                934 drivers/tty/serial/fsl_lpuart.c 			if (sr & sport->port.ignore_status_mask) {
sr                940 drivers/tty/serial/fsl_lpuart.c 			sr &= sport->port.read_status_mask;
sr                942 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSTAT_PE)
sr                944 drivers/tty/serial/fsl_lpuart.c 			else if (sr & UARTSTAT_FE)
sr                947 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSTAT_OR)
sr               1009 drivers/tty/serial/fsl_lpuart.c 		unsigned long sr = lpuart32_read(&sport->port, UARTSTAT);
sr               1011 drivers/tty/serial/fsl_lpuart.c 		if (sr & (UARTSTAT_PE | UARTSTAT_FE)) {
sr               1015 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSTAT_PE)
sr               1017 drivers/tty/serial/fsl_lpuart.c 			else if (sr & UARTSTAT_FE)
sr               1021 drivers/tty/serial/fsl_lpuart.c 		unsigned char sr = readb(sport->port.membase + UARTSR1);
sr               1023 drivers/tty/serial/fsl_lpuart.c 		if (sr & (UARTSR1_PE | UARTSR1_FE)) {
sr               1034 drivers/tty/serial/fsl_lpuart.c 			if (sr & UARTSR1_PE)
sr               1036 drivers/tty/serial/fsl_lpuart.c 			else if (sr & UARTSR1_FE)
sr                689 drivers/tty/serial/msm_serial.c 	unsigned int sr;
sr                716 drivers/tty/serial/msm_serial.c 		sr = msm_read(port, UART_SR);
sr                717 drivers/tty/serial/msm_serial.c 		if ((sr & UART_SR_RX_READY) == 0) {
sr                764 drivers/tty/serial/msm_serial.c 	unsigned int sr;
sr                777 drivers/tty/serial/msm_serial.c 	while ((sr = msm_read(port, UART_SR)) & UART_SR_RX_READY) {
sr                784 drivers/tty/serial/msm_serial.c 		if (sr & UART_SR_RX_BREAK) {
sr                788 drivers/tty/serial/msm_serial.c 		} else if (sr & UART_SR_PAR_FRAME_ERR) {
sr                795 drivers/tty/serial/msm_serial.c 		sr &= port->read_status_mask;
sr                797 drivers/tty/serial/msm_serial.c 		if (sr & UART_SR_RX_BREAK)
sr                799 drivers/tty/serial/msm_serial.c 		else if (sr & UART_SR_PAR_FRAME_ERR)
sr                390 drivers/tty/serial/sccnxp.c 	u8 sr;
sr                394 drivers/tty/serial/sccnxp.c 		sr = sccnxp_port_read(port, SCCNXP_SR_REG);
sr                395 drivers/tty/serial/sccnxp.c 		if (!(sr & SR_RXRDY))
sr                397 drivers/tty/serial/sccnxp.c 		sr &= SR_PE | SR_FE | SR_OVR | SR_BRK;
sr                404 drivers/tty/serial/sccnxp.c 		if (unlikely(sr)) {
sr                405 drivers/tty/serial/sccnxp.c 			if (sr & SR_BRK) {
sr                411 drivers/tty/serial/sccnxp.c 			} else if (sr & SR_PE)
sr                413 drivers/tty/serial/sccnxp.c 			else if (sr & SR_FE)
sr                415 drivers/tty/serial/sccnxp.c 			else if (sr & SR_OVR) {
sr                421 drivers/tty/serial/sccnxp.c 			sr &= port->read_status_mask;
sr                422 drivers/tty/serial/sccnxp.c 			if (sr & SR_BRK)
sr                424 drivers/tty/serial/sccnxp.c 			else if (sr & SR_PE)
sr                426 drivers/tty/serial/sccnxp.c 			else if (sr & SR_FE)
sr                428 drivers/tty/serial/sccnxp.c 			else if (sr & SR_OVR)
sr                435 drivers/tty/serial/sccnxp.c 		if (sr & port->ignore_status_mask)
sr                438 drivers/tty/serial/sccnxp.c 		uart_insert_char(port, sr, SR_OVR, ch, flag);
sr                446 drivers/tty/serial/sccnxp.c 	u8 sr;
sr                470 drivers/tty/serial/sccnxp.c 		sr = sccnxp_port_read(port, SCCNXP_SR_REG);
sr                471 drivers/tty/serial/sccnxp.c 		if (!(sr & SR_TXRDY))
sr               2216 drivers/tty/serial/sh-sci.c 	unsigned int sr;
sr               2221 drivers/tty/serial/sh-sci.c 	for_each_sr(sr, s) {
sr               2222 drivers/tty/serial/sh-sci.c 		err = DIV_ROUND_CLOSEST(freq, sr) - bps;
sr               2227 drivers/tty/serial/sh-sci.c 		*srr = sr - 1;
sr               2243 drivers/tty/serial/sh-sci.c 	unsigned int sr, dl;
sr               2248 drivers/tty/serial/sh-sci.c 	for_each_sr(sr, s) {
sr               2249 drivers/tty/serial/sh-sci.c 		dl = DIV_ROUND_CLOSEST(freq, sr * bps);
sr               2252 drivers/tty/serial/sh-sci.c 		err = DIV_ROUND_CLOSEST(freq, sr * dl) - bps;
sr               2258 drivers/tty/serial/sh-sci.c 		*srr = sr - 1;
sr               2275 drivers/tty/serial/sh-sci.c 	unsigned int sr, br, prediv, scrate, c;
sr               2296 drivers/tty/serial/sh-sci.c 	for_each_sr(sr, s) {
sr               2299 drivers/tty/serial/sh-sci.c 			prediv = sr * (1 << (2 * c + 1));
sr               2323 drivers/tty/serial/sh-sci.c 			*srr = sr - 1;
sr                170 drivers/tty/serial/stm32-usart.c static int stm32_pending_rx(struct uart_port *port, u32 *sr, int *last_res,
sr                178 drivers/tty/serial/stm32-usart.c 	*sr = readl_relaxed(port->membase + ofs->isr);
sr                189 drivers/tty/serial/stm32-usart.c 	} else if (*sr & USART_SR_RXNE) {
sr                195 drivers/tty/serial/stm32-usart.c static unsigned long stm32_get_char(struct uart_port *port, u32 *sr,
sr                221 drivers/tty/serial/stm32-usart.c 	u32 sr;
sr                227 drivers/tty/serial/stm32-usart.c 	while (stm32_pending_rx(port, &sr, &stm32_port->last_res, threaded)) {
sr                228 drivers/tty/serial/stm32-usart.c 		sr |= USART_SR_DUMMY_RX;
sr                242 drivers/tty/serial/stm32-usart.c 		if ((sr & USART_SR_ERR_MASK) && ofs->icr != UNDEF_REG)
sr                243 drivers/tty/serial/stm32-usart.c 			writel_relaxed(sr & USART_SR_ERR_MASK,
sr                246 drivers/tty/serial/stm32-usart.c 		c = stm32_get_char(port, &sr, &stm32_port->last_res);
sr                248 drivers/tty/serial/stm32-usart.c 		if (sr & USART_SR_ERR_MASK) {
sr                249 drivers/tty/serial/stm32-usart.c 			if (sr & USART_SR_ORE) {
sr                251 drivers/tty/serial/stm32-usart.c 			} else if (sr & USART_SR_PE) {
sr                253 drivers/tty/serial/stm32-usart.c 			} else if (sr & USART_SR_FE) {
sr                264 drivers/tty/serial/stm32-usart.c 			sr &= port->read_status_mask;
sr                266 drivers/tty/serial/stm32-usart.c 			if (sr & USART_SR_PE) {
sr                268 drivers/tty/serial/stm32-usart.c 			} else if (sr & USART_SR_FE) {
sr                278 drivers/tty/serial/stm32-usart.c 		uart_insert_char(port, sr, USART_SR_ORE, c, flag);
sr                457 drivers/tty/serial/stm32-usart.c 	u32 sr;
sr                461 drivers/tty/serial/stm32-usart.c 	sr = readl_relaxed(port->membase + ofs->isr);
sr                463 drivers/tty/serial/stm32-usart.c 	if ((sr & USART_SR_RTOF) && ofs->icr != UNDEF_REG)
sr                467 drivers/tty/serial/stm32-usart.c 	if ((sr & USART_SR_WUF) && (ofs->icr != UNDEF_REG))
sr                471 drivers/tty/serial/stm32-usart.c 	if ((sr & USART_SR_RXNE) && !(stm32_port->rx_ch))
sr                474 drivers/tty/serial/stm32-usart.c 	if ((sr & USART_SR_TXE) && !(stm32_port->tx_ch))
sr                 65 drivers/usb/gadget/udc/bdc/bdc_dbg.c 	struct bdc_sr *sr;
sr                 69 drivers/usb/gadget/udc/bdc/bdc_dbg.c 	sr = bdc->srr.sr_bds;
sr                 72 drivers/usb/gadget/udc/bdc/bdc_dbg.c 						sr, bdc->srr.dqp_index);
sr                 74 drivers/usb/gadget/udc/bdc/bdc_dbg.c 		sr = &bdc->srr.sr_bds[i];
sr                 77 drivers/usb/gadget/udc/bdc/bdc_dbg.c 					le32_to_cpu(sr->offset[0]),
sr                 78 drivers/usb/gadget/udc/bdc/bdc_dbg.c 					le32_to_cpu(sr->offset[1]),
sr                 79 drivers/usb/gadget/udc/bdc/bdc_dbg.c 					le32_to_cpu(sr->offset[2]),
sr                 80 drivers/usb/gadget/udc/bdc/bdc_dbg.c 					le32_to_cpu(sr->offset[3]));
sr                 81 drivers/usb/gadget/udc/bdc/bdc_dbg.c 		addr += sizeof(*sr);
sr                156 drivers/video/fbdev/vga16fb.c static inline int setsr(int sr)
sr                161 drivers/video/fbdev/vga16fb.c 	vga_io_w(VGA_GFX_D, sr);
sr                473 fs/ioctl.c     	struct space_resv sr;
sr                475 fs/ioctl.c     	if (copy_from_user(&sr, argp, sizeof(sr)))
sr                478 fs/ioctl.c     	switch (sr.l_whence) {
sr                482 fs/ioctl.c     		sr.l_start += filp->f_pos;
sr                485 fs/ioctl.c     		sr.l_start += i_size_read(inode);
sr                491 fs/ioctl.c     	return vfs_fallocate(filp, FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len);
sr                134 fs/nilfs2/recovery.c 	struct nilfs_super_root *sr;
sr                145 fs/nilfs2/recovery.c 	sr = (struct nilfs_super_root *)bh_sr->b_data;
sr                147 fs/nilfs2/recovery.c 		unsigned int bytes = le16_to_cpu(sr->sr_bytes);
sr                154 fs/nilfs2/recovery.c 			    nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes,
sr                159 fs/nilfs2/recovery.c 		if (crc != le32_to_cpu(sr->sr_sum)) {
sr               1859 fs/ocfs2/file.c 				     struct ocfs2_space_resv *sr,
sr               1895 fs/ocfs2/file.c 	switch (sr->l_whence) {
sr               1899 fs/ocfs2/file.c 		sr->l_start += f_pos;
sr               1902 fs/ocfs2/file.c 		sr->l_start += i_size_read(inode);
sr               1908 fs/ocfs2/file.c 	sr->l_whence = 0;
sr               1910 fs/ocfs2/file.c 	llen = sr->l_len > 0 ? sr->l_len - 1 : sr->l_len;
sr               1912 fs/ocfs2/file.c 	if (sr->l_start < 0
sr               1913 fs/ocfs2/file.c 	    || sr->l_start > max_off
sr               1914 fs/ocfs2/file.c 	    || (sr->l_start + llen) < 0
sr               1915 fs/ocfs2/file.c 	    || (sr->l_start + llen) > max_off) {
sr               1919 fs/ocfs2/file.c 	size = sr->l_start + sr->l_len;
sr               1923 fs/ocfs2/file.c 		if (sr->l_len <= 0) {
sr               1945 fs/ocfs2/file.c 		ret = ocfs2_allocate_unwritten_extents(inode, sr->l_start,
sr               1946 fs/ocfs2/file.c 						       sr->l_len);
sr               1950 fs/ocfs2/file.c 		ret = ocfs2_remove_inode_range(inode, di_bh, sr->l_start,
sr               1951 fs/ocfs2/file.c 					       sr->l_len);
sr               1997 fs/ocfs2/file.c 			    struct ocfs2_space_resv *sr)
sr               2019 fs/ocfs2/file.c 	ret = __ocfs2_change_file_space(file, inode, file->f_pos, cmd, sr, 0);
sr               2029 fs/ocfs2/file.c 	struct ocfs2_space_resv sr;
sr               2044 fs/ocfs2/file.c 	sr.l_whence = 0;
sr               2045 fs/ocfs2/file.c 	sr.l_start = (s64)offset;
sr               2046 fs/ocfs2/file.c 	sr.l_len = (s64)len;
sr               2048 fs/ocfs2/file.c 	return __ocfs2_change_file_space(NULL, inode, offset, cmd, &sr,
sr                 65 fs/ocfs2/file.h 			    struct ocfs2_space_resv *sr);
sr                842 fs/ocfs2/ioctl.c 	struct ocfs2_space_resv sr;
sr                874 fs/ocfs2/ioctl.c 		if (copy_from_user(&sr, (int __user *) arg, sizeof(sr)))
sr                877 fs/ocfs2/ioctl.c 		return ocfs2_change_file_space(filp, cmd, &sr);
sr                238 include/linux/power/smartreflex.h 	int (*enable)(struct omap_sr *sr);
sr                239 include/linux/power/smartreflex.h 	int (*disable)(struct omap_sr *sr, int is_volt_reset);
sr                240 include/linux/power/smartreflex.h 	int (*configure)(struct omap_sr *sr);
sr                241 include/linux/power/smartreflex.h 	int (*notify)(struct omap_sr *sr, u32 status);
sr                307 include/linux/power/smartreflex.h int sr_enable(struct omap_sr *sr, unsigned long volt);
sr                308 include/linux/power/smartreflex.h void sr_disable(struct omap_sr *sr);
sr                309 include/linux/power/smartreflex.h int sr_configure_errgen(struct omap_sr *sr);
sr                310 include/linux/power/smartreflex.h int sr_disable_errgen(struct omap_sr *sr);
sr                311 include/linux/power/smartreflex.h int sr_configure_minmax(struct omap_sr *sr);
sr                101 include/misc/cxllib.h 	u64 sr;
sr                621 ipc/mqueue.c   static void wq_add(struct mqueue_inode_info *info, int sr,
sr                626 ipc/mqueue.c   	list_for_each_entry(walk, &info->e_wait_q[sr].list, list) {
sr                632 ipc/mqueue.c   	list_add_tail(&ewp->list, &info->e_wait_q[sr].list);
sr                640 ipc/mqueue.c   static int wq_sleep(struct mqueue_inode_info *info, int sr,
sr                647 ipc/mqueue.c   	wq_add(info, sr, ewp);
sr                685 ipc/mqueue.c   		struct mqueue_inode_info *info, int sr)
sr                689 ipc/mqueue.c   	ptr = info->e_wait_q[sr].list.prev;
sr                690 ipc/mqueue.c   	if (ptr == &info->e_wait_q[sr].list)
sr                 73 lib/reed_solomon/reed_solomon.c 	int i, j, sr, root, iprim;
sr                107 lib/reed_solomon/reed_solomon.c 		sr = 1;
sr                109 lib/reed_solomon/reed_solomon.c 			rs->index_of[sr] = i;
sr                110 lib/reed_solomon/reed_solomon.c 			rs->alpha_to[i] = sr;
sr                111 lib/reed_solomon/reed_solomon.c 			sr <<= 1;
sr                112 lib/reed_solomon/reed_solomon.c 			if (sr & (1 << symsize))
sr                113 lib/reed_solomon/reed_solomon.c 				sr ^= gfpoly;
sr                114 lib/reed_solomon/reed_solomon.c 			sr &= rs->nn;
sr                117 lib/reed_solomon/reed_solomon.c 		sr = gffunc(0);
sr                119 lib/reed_solomon/reed_solomon.c 			rs->index_of[sr] = i;
sr                120 lib/reed_solomon/reed_solomon.c 			rs->alpha_to[i] = sr;
sr                121 lib/reed_solomon/reed_solomon.c 			sr = gffunc(sr);
sr                125 lib/reed_solomon/reed_solomon.c 	if(sr != rs->alpha_to[0])
sr               1612 net/ipv4/ipmr.c 	struct sioc_sg_req sr;
sr               1646 net/ipv4/ipmr.c 		if (copy_from_user(&sr, arg, sizeof(sr)))
sr               1650 net/ipv4/ipmr.c 		c = ipmr_cache_find(mrt, sr.src.s_addr, sr.grp.s_addr);
sr               1652 net/ipv4/ipmr.c 			sr.pktcnt = c->_c.mfc_un.res.pkt;
sr               1653 net/ipv4/ipmr.c 			sr.bytecnt = c->_c.mfc_un.res.bytes;
sr               1654 net/ipv4/ipmr.c 			sr.wrong_if = c->_c.mfc_un.res.wrong_if;
sr               1657 net/ipv4/ipmr.c 			if (copy_to_user(arg, &sr, sizeof(sr)))
sr               1687 net/ipv4/ipmr.c 	struct compat_sioc_sg_req sr;
sr               1721 net/ipv4/ipmr.c 		if (copy_from_user(&sr, arg, sizeof(sr)))
sr               1725 net/ipv4/ipmr.c 		c = ipmr_cache_find(mrt, sr.src.s_addr, sr.grp.s_addr);
sr               1727 net/ipv4/ipmr.c 			sr.pktcnt = c->_c.mfc_un.res.pkt;
sr               1728 net/ipv4/ipmr.c 			sr.bytecnt = c->_c.mfc_un.res.bytes;
sr               1729 net/ipv4/ipmr.c 			sr.wrong_if = c->_c.mfc_un.res.wrong_if;
sr               1732 net/ipv4/ipmr.c 			if (copy_to_user(arg, &sr, sizeof(sr)))
sr               1851 net/ipv6/ip6mr.c 	struct sioc_sg_req6 sr;
sr               1885 net/ipv6/ip6mr.c 		if (copy_from_user(&sr, arg, sizeof(sr)))
sr               1889 net/ipv6/ip6mr.c 		c = ip6mr_cache_find(mrt, &sr.src.sin6_addr, &sr.grp.sin6_addr);
sr               1891 net/ipv6/ip6mr.c 			sr.pktcnt = c->_c.mfc_un.res.pkt;
sr               1892 net/ipv6/ip6mr.c 			sr.bytecnt = c->_c.mfc_un.res.bytes;
sr               1893 net/ipv6/ip6mr.c 			sr.wrong_if = c->_c.mfc_un.res.wrong_if;
sr               1896 net/ipv6/ip6mr.c 			if (copy_to_user(arg, &sr, sizeof(sr)))
sr               1926 net/ipv6/ip6mr.c 	struct compat_sioc_sg_req6 sr;
sr               1960 net/ipv6/ip6mr.c 		if (copy_from_user(&sr, arg, sizeof(sr)))
sr               1964 net/ipv6/ip6mr.c 		c = ip6mr_cache_find(mrt, &sr.src.sin6_addr, &sr.grp.sin6_addr);
sr               1966 net/ipv6/ip6mr.c 			sr.pktcnt = c->_c.mfc_un.res.pkt;
sr               1967 net/ipv6/ip6mr.c 			sr.bytecnt = c->_c.mfc_un.res.bytes;
sr               1968 net/ipv6/ip6mr.c 			sr.wrong_if = c->_c.mfc_un.res.wrong_if;
sr               1971 net/ipv6/ip6mr.c 			if (copy_to_user(arg, &sr, sizeof(sr)))
sr                147 net/tipc/name_table.c 	struct service_range *sr;
sr                150 net/tipc/name_table.c 		sr = container_of(n, struct service_range, tree_node);
sr                151 net/tipc/name_table.c 		if (sr->lower > instance)
sr                153 net/tipc/name_table.c 		else if (sr->upper < instance)
sr                156 net/tipc/name_table.c 			return sr;
sr                167 net/tipc/name_table.c 	struct service_range *sr;
sr                169 net/tipc/name_table.c 	sr = tipc_service_first_range(sc, lower);
sr                170 net/tipc/name_table.c 	if (!sr)
sr                174 net/tipc/name_table.c 	for (n = &sr->tree_node; n; n = rb_next(n)) {
sr                175 net/tipc/name_table.c 		sr = container_of(n, struct service_range, tree_node);
sr                176 net/tipc/name_table.c 		if (sr->upper == upper)
sr                179 net/tipc/name_table.c 	if (!n || sr->lower != lower || sr->upper != upper)
sr                182 net/tipc/name_table.c 	return sr;
sr                189 net/tipc/name_table.c 	struct service_range *sr, *tmp;
sr                207 net/tipc/name_table.c 	sr = kzalloc(sizeof(*sr), GFP_ATOMIC);
sr                208 net/tipc/name_table.c 	if (!sr)
sr                210 net/tipc/name_table.c 	sr->lower = lower;
sr                211 net/tipc/name_table.c 	sr->upper = upper;
sr                212 net/tipc/name_table.c 	INIT_LIST_HEAD(&sr->local_publ);
sr                213 net/tipc/name_table.c 	INIT_LIST_HEAD(&sr->all_publ);
sr                214 net/tipc/name_table.c 	rb_link_node(&sr->tree_node, parent, n);
sr                215 net/tipc/name_table.c 	rb_insert_color(&sr->tree_node, &sc->ranges);
sr                216 net/tipc/name_table.c 	return sr;
sr                227 net/tipc/name_table.c 	struct service_range *sr;
sr                231 net/tipc/name_table.c 	sr = tipc_service_create_range(sc, lower, upper);
sr                232 net/tipc/name_table.c 	if (!sr)
sr                235 net/tipc/name_table.c 	first = list_empty(&sr->all_publ);
sr                238 net/tipc/name_table.c 	list_for_each_entry(p, &sr->all_publ, all_publ) {
sr                248 net/tipc/name_table.c 		list_add(&p->local_publ, &sr->local_publ);
sr                249 net/tipc/name_table.c 	list_add(&p->all_publ, &sr->all_publ);
sr                265 net/tipc/name_table.c static struct publication *tipc_service_remove_publ(struct service_range *sr,
sr                270 net/tipc/name_table.c 	list_for_each_entry(p, &sr->all_publ, all_publ) {
sr                289 net/tipc/name_table.c 	struct service_range *sr;
sr                306 net/tipc/name_table.c 		sr = container_of(n, struct service_range, tree_node);
sr                307 net/tipc/name_table.c 		if (sr->lower > ns.upper)
sr                309 net/tipc/name_table.c 		if (!tipc_sub_check_overlap(&ns, sr->lower, sr->upper))
sr                313 net/tipc/name_table.c 		list_for_each_entry(p, &sr->all_publ, all_publ) {
sr                314 net/tipc/name_table.c 			tipc_sub_report_overlap(sub, sr->lower, sr->upper,
sr                369 net/tipc/name_table.c 	struct service_range *sr = NULL;
sr                377 net/tipc/name_table.c 	sr = tipc_service_find_range(sc, lower, upper);
sr                378 net/tipc/name_table.c 	if (!sr)
sr                380 net/tipc/name_table.c 	p = tipc_service_remove_publ(sr, node, key);
sr                385 net/tipc/name_table.c 	last = list_empty(&sr->all_publ);
sr                392 net/tipc/name_table.c 	if (list_empty(&sr->all_publ)) {
sr                393 net/tipc/name_table.c 		rb_erase(&sr->tree_node, &sc->ranges);
sr                394 net/tipc/name_table.c 		kfree(sr);
sr                428 net/tipc/name_table.c 	struct service_range *sr;
sr                444 net/tipc/name_table.c 	sr = tipc_service_first_range(sc, instance);
sr                445 net/tipc/name_table.c 	if (unlikely(!sr))
sr                450 net/tipc/name_table.c 		list = &sr->local_publ;
sr                454 net/tipc/name_table.c 		list_move_tail(&p->local_publ, &sr->local_publ);
sr                455 net/tipc/name_table.c 	} else if (legacy && !*dnode && !list_empty(&sr->local_publ)) {
sr                456 net/tipc/name_table.c 		list = &sr->local_publ;
sr                458 net/tipc/name_table.c 		list_move_tail(&p->local_publ, &sr->local_publ);
sr                460 net/tipc/name_table.c 		list = &sr->all_publ;
sr                462 net/tipc/name_table.c 		list_move_tail(&p->all_publ, &sr->all_publ);
sr                479 net/tipc/name_table.c 	struct service_range *sr;
sr                491 net/tipc/name_table.c 	sr = tipc_service_first_range(sc, instance);
sr                492 net/tipc/name_table.c 	if (!sr)
sr                495 net/tipc/name_table.c 	list_for_each_entry(p, &sr->all_publ, all_publ) {
sr                504 net/tipc/name_table.c 		list_move_tail(&p->all_publ, &sr->all_publ);
sr                517 net/tipc/name_table.c 	struct service_range *sr;
sr                530 net/tipc/name_table.c 		sr = container_of(n, struct service_range, tree_node);
sr                531 net/tipc/name_table.c 		if (sr->upper < lower)
sr                533 net/tipc/name_table.c 		if (sr->lower > upper)
sr                535 net/tipc/name_table.c 		list_for_each_entry(p, &sr->local_publ, local_publ) {
sr                552 net/tipc/name_table.c 	struct service_range *sr;
sr                565 net/tipc/name_table.c 		sr = container_of(n, struct service_range, tree_node);
sr                566 net/tipc/name_table.c 		if (sr->upper < lower)
sr                568 net/tipc/name_table.c 		if (sr->lower > upper)
sr                570 net/tipc/name_table.c 		list_for_each_entry(p, &sr->all_publ, all_publ) {
sr                584 net/tipc/name_table.c 	struct service_range *sr;
sr                596 net/tipc/name_table.c 		sr = container_of(n, struct service_range, tree_node);
sr                597 net/tipc/name_table.c 		list_for_each_entry(p, &sr->all_publ, all_publ) {
sr                758 net/tipc/name_table.c 	struct service_range *sr, *tmpr;
sr                762 net/tipc/name_table.c 	rbtree_postorder_for_each_entry_safe(sr, tmpr, &sc->ranges, tree_node) {
sr                763 net/tipc/name_table.c 		list_for_each_entry_safe(p, tmp, &sr->all_publ, all_publ) {
sr                764 net/tipc/name_table.c 			tipc_service_remove_publ(sr, p->node, p->key);
sr                767 net/tipc/name_table.c 		rb_erase(&sr->tree_node, &sc->ranges);
sr                768 net/tipc/name_table.c 		kfree(sr);
sr                803 net/tipc/name_table.c 					struct service_range *sr,
sr                812 net/tipc/name_table.c 		list_for_each_entry(p, &sr->all_publ, all_publ)
sr                818 net/tipc/name_table.c 		p = list_first_entry(&sr->all_publ,
sr                823 net/tipc/name_table.c 	list_for_each_entry_from(p, &sr->all_publ, all_publ) {
sr                842 net/tipc/name_table.c 		if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_LOWER, sr->lower))
sr                844 net/tipc/name_table.c 		if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_UPPER, sr->upper))
sr                877 net/tipc/name_table.c 	struct service_range *sr;
sr                882 net/tipc/name_table.c 		sr = container_of(n, struct service_range, tree_node);
sr                883 net/tipc/name_table.c 		if (sr->lower < *last_lower)
sr                885 net/tipc/name_table.c 		err = __tipc_nl_add_nametable_publ(msg, sc, sr, last_key);
sr                887 net/tipc/name_table.c 			*last_lower = sr->lower;
sr                485 sound/atmel/ac97c.c 	u32			sr     = ac97c_readl(chip, SR);
sr                490 sound/atmel/ac97c.c 	if (sr & AC97C_SR_CAEVT) {
sr                538 sound/atmel/ac97c.c 	if (sr & AC97C_SR_COEVT) {
sr                550 sound/atmel/ac97c.c 				"casr 0x%08x cosr 0x%08x\n", sr, casr, cosr);
sr                521 sound/drivers/mtpav.c 	u8 sr, cbyt;
sr                540 sound/drivers/mtpav.c 			sr = snd_mtpav_getreg(mcrd, SREG);
sr                543 sound/drivers/mtpav.c 			sr &= SIGS_IN0 | SIGS_IN1;
sr                544 sound/drivers/mtpav.c 			sr >>= 4;
sr                545 sound/drivers/mtpav.c 			mtp_read_byte |= sr << (i * 2);
sr                376 sound/pci/au88x0/au88x0_a3d.c static void a3dsrc_SetA3DSampleRate(a3dsrc_t * a, int sr)
sr                381 sound/pci/au88x0/au88x0_a3d.c 	esp0 = (((esp0 & 0x7fffffff) | 0xB8000000) & 0x7) | ((sr & 0x1f) << 3);
sr                414 sound/pci/au88x0/au88x0_a3d.c static void a3dsrc_GetA3DSampleRate(a3dsrc_t * a, int *sr)
sr                417 sound/pci/au88x0/au88x0_a3d.c 	*sr = ((hwread(vortex->mmio, A3D_SLICE_Control + (a->slice << 0xd))
sr                373 sound/pci/au88x0/au88x0_eq.c static void vortex_EqHw_SetSampleRate(vortex_t * vortex, u32 sr)
sr                375 sound/pci/au88x0/au88x0_eq.c 	hwwrite(vortex->mmio, 0x2b440, ((sr & 0x1f) << 3) | 0xb800);
sr                384 sound/pci/au88x0/au88x0_eq.c static void vortex_EqHw_GetSampleRate(vortex_t * vortex, u32 *sr)
sr                386 sound/pci/au88x0/au88x0_eq.c 	*sr = (hwread(vortex->mmio, 0x2b440) >> 3) & 0x1f;
sr                358 sound/pci/au88x0/au88x0_synth.c static void vortex_wt_SetFrequency(vortex_t * vortex, int wt, unsigned int sr)
sr                364 sound/pci/au88x0/au88x0_synth.c 	eax = ((sr << 0xf) * 0x57619F1) & 0xffffffff;
sr                365 sound/pci/au88x0/au88x0_synth.c 	edx = (((sr << 0xf) * 0x57619F1)) >> 0x20;
sr                640 sound/pci/au88x0/au88x0_xtalk.c static void vortex_XtalkHw_SetSampleRate(vortex_t * vortex, u32 sr)
sr                645 sound/pci/au88x0/au88x0_xtalk.c 	temp = (temp & 0xffffff07) | ((sr & 0x1f) << 3);
sr                650 sound/pci/au88x0/au88x0_xtalk.c static void vortex_XtalkHw_GetSampleRate(vortex_t * vortex, u32 *sr)
sr                652 sound/pci/au88x0/au88x0_xtalk.c 	*sr = (hwread(vortex->mmio, 0x24660) >> 3) & 0x1f;
sr                 39 sound/pci/au88x0/au88x0_xtalk.h static void vortex_XtalkHw_SetSampleRate(vortex_t * vortex, u32 sr);
sr                208 sound/soc/atmel/atmel-i2s.c 	unsigned int sr, imr, pending, ch, mask;
sr                211 sound/soc/atmel/atmel-i2s.c 	regmap_read(dev->regmap, ATMEL_I2SC_SR, &sr);
sr                213 sound/soc/atmel/atmel-i2s.c 	pending = sr & imr;
sr                222 sound/soc/atmel/atmel-i2s.c 			if (sr & ATMEL_I2SC_SR_RXORCH(ch)) {
sr                236 sound/soc/atmel/atmel-i2s.c 			if (sr & ATMEL_I2SC_SR_TXURCH(ch)) {
sr                272 sound/soc/atmel/atmel-i2s.c 	unsigned int rhr, sr = 0;
sr                275 sound/soc/atmel/atmel-i2s.c 		regmap_read(dev->regmap, ATMEL_I2SC_SR, &sr);
sr                276 sound/soc/atmel/atmel-i2s.c 		if (sr & ATMEL_I2SC_SR_RXRDY) {
sr                479 sound/soc/atmel/mchp-i2s-mcc.c 	u32 sr;
sr                481 sound/soc/atmel/mchp-i2s-mcc.c 	regmap_read(dev->regmap, MCHP_I2SMCC_SR, &sr);
sr                482 sound/soc/atmel/mchp-i2s-mcc.c 	return !!(sr & (MCHP_I2SMCC_SR_TXEN | MCHP_I2SMCC_SR_RXEN));
sr                741 sound/soc/atmel/mchp-i2s-mcc.c 	u32 sr;
sr                756 sound/soc/atmel/mchp-i2s-mcc.c 		regmap_read(dev->regmap, MCHP_I2SMCC_SR, &sr);
sr                757 sound/soc/atmel/mchp-i2s-mcc.c 		if (is_playback && (sr & MCHP_I2SMCC_SR_TXEN)) {
sr                765 sound/soc/atmel/mchp-i2s-mcc.c 		} else if (!is_playback && (sr & MCHP_I2SMCC_SR_RXEN)) {
sr               1423 sound/soc/codecs/da7219.c 	unsigned long sr, bclk_rate;
sr               1467 sound/soc/codecs/da7219.c 			sr = clk_get_rate(wclk);
sr               1468 sound/soc/codecs/da7219.c 			bclk_rate = sr * frame_size;
sr               1560 sound/soc/codecs/da7219.c 	unsigned long sr, bclk_rate;
sr               1590 sound/soc/codecs/da7219.c 	sr = params_rate(params);
sr               1592 sound/soc/codecs/da7219.c 		ret = clk_set_rate(wclk, sr);
sr               1595 sound/soc/codecs/da7219.c 				"Failed to set WCLK SR %lu: %d\n", sr, ret);
sr               1599 sound/soc/codecs/da7219.c 		ret = da7219_set_sr(component, sr);
sr               1602 sound/soc/codecs/da7219.c 				"Failed to set SR %lu: %d\n", sr, ret);
sr               1619 sound/soc/codecs/da7219.c 			bclk_rate = frame_size * sr;
sr               1629 sound/soc/codecs/da7219.c 			if ((bclk_rate / sr) < frame_size) {
sr                933 sound/soc/codecs/max98088.c        u8  sr;
sr                953 sound/soc/codecs/max98088.c                        *value = rate_table[i].sr;
sr                957 sound/soc/codecs/max98088.c        *value = rate_table[0].sr;
sr                910 sound/soc/codecs/max98095.c 	u8  sr;
sr                930 sound/soc/codecs/max98095.c 			*value = rate_table[i].sr;
sr                934 sound/soc/codecs/max98095.c 	*value = rate_table[0].sr;
sr                207 sound/soc/codecs/max98925.c 	int  sr;
sr                212 sound/soc/codecs/max98925.c 		.sr = 0,
sr                217 sound/soc/codecs/max98925.c 		.sr = 1,
sr                222 sound/soc/codecs/max98925.c 		.sr = 2,
sr                227 sound/soc/codecs/max98925.c 		.sr = 3,
sr                232 sound/soc/codecs/max98925.c 		.sr = 4,
sr                237 sound/soc/codecs/max98925.c 		.sr = 5,
sr                242 sound/soc/codecs/max98925.c 		.sr = 6,
sr                247 sound/soc/codecs/max98925.c 		.sr = 7,
sr                252 sound/soc/codecs/max98925.c 		.sr = 8,
sr                265 sound/soc/codecs/max98925.c 			*value = rate_table[i].sr;
sr                249 sound/soc/codecs/max98926.c 	int  sr;
sr                253 sound/soc/codecs/max98926.c 		.sr = 0,
sr                257 sound/soc/codecs/max98926.c 		.sr = 1,
sr                261 sound/soc/codecs/max98926.c 		.sr = 2,
sr                265 sound/soc/codecs/max98926.c 		.sr = 3,
sr                269 sound/soc/codecs/max98926.c 		.sr = 4,
sr                273 sound/soc/codecs/max98926.c 		.sr = 5,
sr                277 sound/soc/codecs/max98926.c 		.sr = 6,
sr                281 sound/soc/codecs/max98926.c 		.sr = 7,
sr                285 sound/soc/codecs/max98926.c 		.sr = 8,
sr                434 sound/soc/codecs/max98926.c 			dai_sr = rate_table[i].sr;
sr                226 sound/soc/codecs/ssm2602.c #define SSM2602_COEFF_SRATE(sr, bosr, usb) (((sr) << 2) | ((bosr) << 1) | (usb))
sr                298 sound/soc/codecs/tlv320aic23.c 	int sr = (src >> 2) & 0x0f;
sr                300 sound/soc/codecs/tlv320aic23.c 	int adc = (val * sr_adc_mult_table[sr]) / SR_MULT;
sr                301 sound/soc/codecs/tlv320aic23.c 	int dac = (val * sr_dac_mult_table[sr]) / SR_MULT;
sr               1402 sound/soc/codecs/wm5100.c 	int i, base, bclk, aif_rate, lrclk, wl, fl, sr;
sr               1426 sound/soc/codecs/wm5100.c 		sr = wm5100_alloc_sr(component, params_rate(params));
sr               1427 sound/soc/codecs/wm5100.c 		if (sr < 0)
sr               1428 sound/soc/codecs/wm5100.c 			return sr;
sr               1432 sound/soc/codecs/wm5100.c 		sr = 3;
sr               1496 sound/soc/codecs/wm5100.c 	snd_soc_component_update_bits(component, base + 4, WM5100_AIF1_RATE_MASK, sr);
sr                104 sound/soc/codecs/wm8711.c 	u8 sr:4;
sr                163 sound/soc/codecs/wm8711.c 	u16 srate = (coeff_div[i].sr << 2) |
sr                252 sound/soc/codecs/wm8731.c 	u8 sr:4;
sr                341 sound/soc/codecs/wm8731.c 	u16 srate = (coeff_div[i].sr << 2) |
sr                281 sound/soc/codecs/wm8737.c 	u8 sr;
sr                353 sound/soc/codecs/wm8737.c 	clocking |= coeff_div[i].usb | (coeff_div[i].sr << WM8737_SR_SHIFT);
sr                431 sound/soc/codecs/wm8750.c 	u8 sr:5;
sr                604 sound/soc/codecs/wm8750.c 			(coeff_div[coeff].sr << 1) | coeff_div[coeff].usb);
sr                793 sound/soc/codecs/wm8753.c 	u8 sr:5;
sr               1165 sound/soc/codecs/wm8753.c 	snd_soc_component_write(component, WM8753_SRATE1, srate | (coeff_div[coeff].sr << 1) |
sr                199 sound/soc/codecs/wm8955.c 	int sr;
sr                248 sound/soc/codecs/wm8955.c 	int sr = -1;
sr                259 sound/soc/codecs/wm8955.c 		sr = i;
sr                266 sound/soc/codecs/wm8955.c 	if (sr == -1) {
sr                269 sound/soc/codecs/wm8955.c 		WARN_ON(sr == -1);
sr                283 sound/soc/codecs/wm8955.c 					 clock_cfgs[sr].mclk, &pll);
sr                320 sound/soc/codecs/wm8955.c 	srate = clock_cfgs[sr].usb | (clock_cfgs[sr].sr << WM8955_SR_SHIFT);
sr                364 sound/soc/codecs/wm8971.c 	u8 sr:5;
sr                534 sound/soc/codecs/wm8971.c 			(coeff_div[coeff].sr << 1) | coeff_div[coeff].usb);
sr                453 sound/soc/codecs/wm8988.c 	u8 sr:5;
sr                705 sound/soc/codecs/wm8988.c 			(coeff_div[coeff].sr << 1) | coeff_div[coeff].usb);
sr                172 sound/soc/codecs/wmfw.h 	__le32 sr;
sr                208 sound/soc/fsl/fsl_dma.c 	u32 sr, sr2 = 0;
sr                213 sound/soc/fsl/fsl_dma.c 	sr = in_be32(&dma_channel->sr);
sr                215 sound/soc/fsl/fsl_dma.c 	if (sr & CCSR_DMA_SR_TE) {
sr                222 sound/soc/fsl/fsl_dma.c 	if (sr & CCSR_DMA_SR_CH)
sr                225 sound/soc/fsl/fsl_dma.c 	if (sr & CCSR_DMA_SR_PE) {
sr                232 sound/soc/fsl/fsl_dma.c 	if (sr & CCSR_DMA_SR_EOLNI) {
sr                237 sound/soc/fsl/fsl_dma.c 	if (sr & CCSR_DMA_SR_CB)
sr                240 sound/soc/fsl/fsl_dma.c 	if (sr & CCSR_DMA_SR_EOSI) {
sr                256 sound/soc/fsl/fsl_dma.c 	if (sr & CCSR_DMA_SR_EOLSI) {
sr                263 sound/soc/fsl/fsl_dma.c 		out_be32(&dma_channel->sr, sr2);
sr                781 sound/soc/fsl/fsl_dma.c 		out_be32(&dma_channel->sr, -1);
sr                 13 sound/soc/fsl/fsl_dma.h 		__be32 sr;      /* Status register */
sr                 40 sound/soc/rockchip/rockchip_pdm.c 	unsigned int sr;
sr                 47 sound/soc/rockchip/rockchip_pdm.c 	unsigned int sr;
sr                 76 sound/soc/rockchip/rockchip_pdm.c static unsigned int get_pdm_clk(struct rk_pdm_dev *pdm, unsigned int sr,
sr                 82 sound/soc/rockchip/rockchip_pdm.c 	if (!sr)
sr                 87 sound/soc/rockchip/rockchip_pdm.c 		if (sr % clkref[i].sr)
sr                 89 sound/soc/rockchip/rockchip_pdm.c 		div = sr / clkref[i].sr;
sr                108 sound/soc/rockchip/rockchip_pdm.c static unsigned int get_pdm_ds_ratio(unsigned int sr)
sr                113 sound/soc/rockchip/rockchip_pdm.c 	if (!sr)
sr                118 sound/soc/rockchip/rockchip_pdm.c 		if (sr == ds_ratio[i].sr)
sr                247 sound/soc/stm/stm32_i2s.c 	u32 sr, ier;
sr                251 sound/soc/stm/stm32_i2s.c 	regmap_read(i2s->regmap, STM32_I2S_SR_REG, &sr);
sr                254 sound/soc/stm/stm32_i2s.c 	flags = sr & ier;
sr                257 sound/soc/stm/stm32_i2s.c 			sr, ier);
sr                496 sound/soc/stm/stm32_sai_sub.c 	unsigned int sr, imr, flags;
sr                500 sound/soc/stm/stm32_sai_sub.c 	stm32_sai_sub_reg_rd(sai, STM_SAI_SR_REGX, &sr);
sr                502 sound/soc/stm/stm32_sai_sub.c 	flags = sr & imr;
sr                510 sound/soc/stm/stm32_sai_sub.c 		dev_err(&pdev->dev, "Device stopped. Spurious IRQ 0x%x\n", sr);
sr                667 sound/soc/stm/stm32_spdifrx.c 	unsigned int cr, mask, sr, imr;
sr                671 sound/soc/stm/stm32_spdifrx.c 	regmap_read(spdifrx->regmap, STM32_SPDIFRX_SR, &sr);
sr                679 sound/soc/stm/stm32_spdifrx.c 	flags = sr & mask;
sr                682 sound/soc/stm/stm32_spdifrx.c 			sr, imr);
sr                 42 sound/soc/sunxi/sun4i-i2s.c #define SUN4I_I2S_FMT0_SR(sr)				((sr) << 4)
sr                478 sound/soc/sunxi/sun4i-i2s.c 	int ret, sr, wss;
sr                504 sound/soc/sunxi/sun4i-i2s.c 	sr = i2s->variant->get_sr(i2s, word_size);
sr                505 sound/soc/sunxi/sun4i-i2s.c 	if (sr < 0)
sr                513 sound/soc/sunxi/sun4i-i2s.c 	regmap_field_write(i2s->field_fmt_sr, sr);
sr                188 tools/arch/powerpc/include/uapi/asm/kvm.h 				__u32 sr[16];