arch/csky/abiv1/inc/abi/elf.h
10
pr_reg[3] = regs->sr; \
arch/csky/abiv1/inc/abi/elf.h
11
pr_reg[4] = regs->a0; \
arch/csky/abiv1/inc/abi/elf.h
12
pr_reg[5] = regs->a1; \
arch/csky/abiv1/inc/abi/elf.h
13
pr_reg[6] = regs->a2; \
arch/csky/abiv1/inc/abi/elf.h
14
pr_reg[7] = regs->a3; \
arch/csky/abiv1/inc/abi/elf.h
15
pr_reg[8] = regs->regs[0]; \
arch/csky/abiv1/inc/abi/elf.h
16
pr_reg[9] = regs->regs[1]; \
arch/csky/abiv1/inc/abi/elf.h
17
pr_reg[10] = regs->regs[2]; \
arch/csky/abiv1/inc/abi/elf.h
18
pr_reg[11] = regs->regs[3]; \
arch/csky/abiv1/inc/abi/elf.h
19
pr_reg[12] = regs->regs[4]; \
arch/csky/abiv1/inc/abi/elf.h
20
pr_reg[13] = regs->regs[5]; \
arch/csky/abiv1/inc/abi/elf.h
21
pr_reg[14] = regs->regs[6]; \
arch/csky/abiv1/inc/abi/elf.h
22
pr_reg[15] = regs->regs[7]; \
arch/csky/abiv1/inc/abi/elf.h
23
pr_reg[16] = regs->regs[8]; \
arch/csky/abiv1/inc/abi/elf.h
24
pr_reg[17] = regs->lr; \
arch/csky/abiv1/inc/abi/elf.h
6
#define ELF_CORE_COPY_REGS(pr_reg, regs) do { \
arch/csky/abiv1/inc/abi/elf.h
7
pr_reg[0] = regs->pc; \
arch/csky/abiv1/inc/abi/elf.h
8
pr_reg[1] = regs->regs[9]; \
arch/csky/abiv1/inc/abi/elf.h
9
pr_reg[2] = regs->usp; \
arch/csky/abiv2/inc/abi/elf.h
10
pr_reg[2] = regs->a0; \
arch/csky/abiv2/inc/abi/elf.h
11
pr_reg[3] = regs->sr; \
arch/csky/abiv2/inc/abi/elf.h
12
pr_reg[4] = regs->a2; \
arch/csky/abiv2/inc/abi/elf.h
13
pr_reg[5] = regs->a3; \
arch/csky/abiv2/inc/abi/elf.h
14
pr_reg[6] = regs->regs[0]; \
arch/csky/abiv2/inc/abi/elf.h
15
pr_reg[7] = regs->regs[1]; \
arch/csky/abiv2/inc/abi/elf.h
16
pr_reg[8] = regs->regs[2]; \
arch/csky/abiv2/inc/abi/elf.h
17
pr_reg[9] = regs->regs[3]; \
arch/csky/abiv2/inc/abi/elf.h
18
pr_reg[10] = regs->regs[4]; \
arch/csky/abiv2/inc/abi/elf.h
19
pr_reg[11] = regs->regs[5]; \
arch/csky/abiv2/inc/abi/elf.h
20
pr_reg[12] = regs->regs[6]; \
arch/csky/abiv2/inc/abi/elf.h
21
pr_reg[13] = regs->regs[7]; \
arch/csky/abiv2/inc/abi/elf.h
22
pr_reg[14] = regs->regs[8]; \
arch/csky/abiv2/inc/abi/elf.h
23
pr_reg[15] = regs->regs[9]; \
arch/csky/abiv2/inc/abi/elf.h
24
pr_reg[16] = regs->usp; \
arch/csky/abiv2/inc/abi/elf.h
25
pr_reg[17] = regs->lr; \
arch/csky/abiv2/inc/abi/elf.h
26
pr_reg[18] = regs->exregs[0]; \
arch/csky/abiv2/inc/abi/elf.h
27
pr_reg[19] = regs->exregs[1]; \
arch/csky/abiv2/inc/abi/elf.h
28
pr_reg[20] = regs->exregs[2]; \
arch/csky/abiv2/inc/abi/elf.h
29
pr_reg[21] = regs->exregs[3]; \
arch/csky/abiv2/inc/abi/elf.h
30
pr_reg[22] = regs->exregs[4]; \
arch/csky/abiv2/inc/abi/elf.h
31
pr_reg[23] = regs->exregs[5]; \
arch/csky/abiv2/inc/abi/elf.h
32
pr_reg[24] = regs->exregs[6]; \
arch/csky/abiv2/inc/abi/elf.h
33
pr_reg[25] = regs->exregs[7]; \
arch/csky/abiv2/inc/abi/elf.h
34
pr_reg[26] = regs->exregs[8]; \
arch/csky/abiv2/inc/abi/elf.h
35
pr_reg[27] = regs->exregs[9]; \
arch/csky/abiv2/inc/abi/elf.h
36
pr_reg[28] = regs->exregs[10]; \
arch/csky/abiv2/inc/abi/elf.h
37
pr_reg[29] = regs->exregs[11]; \
arch/csky/abiv2/inc/abi/elf.h
38
pr_reg[30] = regs->exregs[12]; \
arch/csky/abiv2/inc/abi/elf.h
39
pr_reg[31] = regs->exregs[13]; \
arch/csky/abiv2/inc/abi/elf.h
40
pr_reg[32] = regs->exregs[14]; \
arch/csky/abiv2/inc/abi/elf.h
41
pr_reg[33] = regs->tls; \
arch/csky/abiv2/inc/abi/elf.h
7
#define ELF_CORE_COPY_REGS(pr_reg, regs) do { \
arch/csky/abiv2/inc/abi/elf.h
8
pr_reg[0] = regs->pc; \
arch/csky/abiv2/inc/abi/elf.h
9
pr_reg[1] = regs->a1; \
arch/m68k/include/asm/elf.h
100
pr_reg[17] = regs->sr; \
arch/m68k/include/asm/elf.h
101
pr_reg[18] = regs->pc; \
arch/m68k/include/asm/elf.h
102
pr_reg[19] = (regs->format << 12) | regs->vector; \
arch/m68k/include/asm/elf.h
105
pr_reg[5] = sw->d6; \
arch/m68k/include/asm/elf.h
106
pr_reg[6] = sw->d7; \
arch/m68k/include/asm/elf.h
107
pr_reg[10] = sw->a3; \
arch/m68k/include/asm/elf.h
108
pr_reg[11] = sw->a4; \
arch/m68k/include/asm/elf.h
109
pr_reg[12] = sw->a5; \
arch/m68k/include/asm/elf.h
110
pr_reg[13] = sw->a6; \
arch/m68k/include/asm/elf.h
87
#define ELF_CORE_COPY_REGS(pr_reg, regs) \
arch/m68k/include/asm/elf.h
89
pr_reg[0] = regs->d1; \
arch/m68k/include/asm/elf.h
90
pr_reg[1] = regs->d2; \
arch/m68k/include/asm/elf.h
91
pr_reg[2] = regs->d3; \
arch/m68k/include/asm/elf.h
92
pr_reg[3] = regs->d4; \
arch/m68k/include/asm/elf.h
93
pr_reg[4] = regs->d5; \
arch/m68k/include/asm/elf.h
94
pr_reg[7] = regs->a0; \
arch/m68k/include/asm/elf.h
95
pr_reg[8] = regs->a1; \
arch/m68k/include/asm/elf.h
96
pr_reg[9] = regs->a2; \
arch/m68k/include/asm/elf.h
97
pr_reg[14] = regs->d0; \
arch/m68k/include/asm/elf.h
98
pr_reg[15] = rdusp(); \
arch/m68k/include/asm/elf.h
99
pr_reg[16] = regs->orig_d0; \
arch/mips/include/asm/elfcore-compat.h
16
unsigned int pr_reg[ELF_NGREG];
arch/nios2/include/asm/elf.h
35
#define ELF_CORE_COPY_REGS(pr_reg, regs) \
arch/nios2/include/asm/elf.h
38
pr_reg[0] = regs->r8; \
arch/nios2/include/asm/elf.h
39
pr_reg[1] = regs->r9; \
arch/nios2/include/asm/elf.h
40
pr_reg[2] = regs->r10; \
arch/nios2/include/asm/elf.h
41
pr_reg[3] = regs->r11; \
arch/nios2/include/asm/elf.h
42
pr_reg[4] = regs->r12; \
arch/nios2/include/asm/elf.h
43
pr_reg[5] = regs->r13; \
arch/nios2/include/asm/elf.h
44
pr_reg[6] = regs->r14; \
arch/nios2/include/asm/elf.h
45
pr_reg[7] = regs->r15; \
arch/nios2/include/asm/elf.h
46
pr_reg[8] = regs->r1; \
arch/nios2/include/asm/elf.h
47
pr_reg[9] = regs->r2; \
arch/nios2/include/asm/elf.h
48
pr_reg[10] = regs->r3; \
arch/nios2/include/asm/elf.h
49
pr_reg[11] = regs->r4; \
arch/nios2/include/asm/elf.h
50
pr_reg[12] = regs->r5; \
arch/nios2/include/asm/elf.h
51
pr_reg[13] = regs->r6; \
arch/nios2/include/asm/elf.h
52
pr_reg[14] = regs->r7; \
arch/nios2/include/asm/elf.h
53
pr_reg[15] = regs->orig_r2; \
arch/nios2/include/asm/elf.h
54
pr_reg[16] = regs->ra; \
arch/nios2/include/asm/elf.h
55
pr_reg[17] = regs->fp; \
arch/nios2/include/asm/elf.h
56
pr_reg[18] = regs->sp; \
arch/nios2/include/asm/elf.h
57
pr_reg[19] = regs->gp; \
arch/nios2/include/asm/elf.h
58
pr_reg[20] = regs->estatus; \
arch/nios2/include/asm/elf.h
59
pr_reg[21] = regs->ea; \
arch/nios2/include/asm/elf.h
60
pr_reg[22] = regs->orig_r7; \
arch/nios2/include/asm/elf.h
63
pr_reg[23] = sw->r16; \
arch/nios2/include/asm/elf.h
64
pr_reg[24] = sw->r17; \
arch/nios2/include/asm/elf.h
65
pr_reg[25] = sw->r18; \
arch/nios2/include/asm/elf.h
66
pr_reg[26] = sw->r19; \
arch/nios2/include/asm/elf.h
67
pr_reg[27] = sw->r20; \
arch/nios2/include/asm/elf.h
68
pr_reg[28] = sw->r21; \
arch/nios2/include/asm/elf.h
69
pr_reg[29] = sw->r22; \
arch/nios2/include/asm/elf.h
70
pr_reg[30] = sw->r23; \
arch/nios2/include/asm/elf.h
71
pr_reg[31] = sw->fp; \
arch/nios2/include/asm/elf.h
72
pr_reg[32] = sw->gp; \
arch/nios2/include/asm/elf.h
73
pr_reg[33] = sw->ra; \
arch/powerpc/kernel/fadump.c
752
elf_core_copy_regs(&prstatus.pr_reg, regs);
arch/powerpc/platforms/powernv/opal-core.c
115
elf_core_copy_regs(&(prstatus->pr_reg), regs);
arch/s390/kernel/crash_dump.c
303
memcpy(&nt_prstatus.pr_reg.gprs, sa->gprs, sizeof(sa->gprs));
arch/s390/kernel/crash_dump.c
304
memcpy(&nt_prstatus.pr_reg.psw, sa->psw, sizeof(sa->psw));
arch/s390/kernel/crash_dump.c
305
memcpy(&nt_prstatus.pr_reg.acrs, sa->acrs, sizeof(sa->acrs));
arch/x86/include/asm/elf.h
117
#define ELF_CORE_COPY_REGS(pr_reg, regs) \
arch/x86/include/asm/elf.h
119
pr_reg[0] = regs->bx; \
arch/x86/include/asm/elf.h
120
pr_reg[1] = regs->cx; \
arch/x86/include/asm/elf.h
121
pr_reg[2] = regs->dx; \
arch/x86/include/asm/elf.h
122
pr_reg[3] = regs->si; \
arch/x86/include/asm/elf.h
123
pr_reg[4] = regs->di; \
arch/x86/include/asm/elf.h
124
pr_reg[5] = regs->bp; \
arch/x86/include/asm/elf.h
125
pr_reg[6] = regs->ax; \
arch/x86/include/asm/elf.h
126
pr_reg[7] = regs->ds; \
arch/x86/include/asm/elf.h
127
pr_reg[8] = regs->es; \
arch/x86/include/asm/elf.h
128
pr_reg[9] = regs->fs; \
arch/x86/include/asm/elf.h
129
savesegment(gs, pr_reg[10]); \
arch/x86/include/asm/elf.h
130
pr_reg[11] = regs->orig_ax; \
arch/x86/include/asm/elf.h
131
pr_reg[12] = regs->ip; \
arch/x86/include/asm/elf.h
132
pr_reg[13] = regs->cs; \
arch/x86/include/asm/elf.h
133
pr_reg[14] = regs->flags; \
arch/x86/include/asm/elf.h
134
pr_reg[15] = regs->sp; \
arch/x86/include/asm/elf.h
135
pr_reg[16] = regs->ss; \
arch/x86/include/asm/elf.h
188
#define ELF_CORE_COPY_REGS(pr_reg, regs) \
arch/x86/include/asm/elf.h
191
(pr_reg)[0] = (regs)->r15; \
arch/x86/include/asm/elf.h
192
(pr_reg)[1] = (regs)->r14; \
arch/x86/include/asm/elf.h
193
(pr_reg)[2] = (regs)->r13; \
arch/x86/include/asm/elf.h
194
(pr_reg)[3] = (regs)->r12; \
arch/x86/include/asm/elf.h
195
(pr_reg)[4] = (regs)->bp; \
arch/x86/include/asm/elf.h
196
(pr_reg)[5] = (regs)->bx; \
arch/x86/include/asm/elf.h
197
(pr_reg)[6] = (regs)->r11; \
arch/x86/include/asm/elf.h
198
(pr_reg)[7] = (regs)->r10; \
arch/x86/include/asm/elf.h
199
(pr_reg)[8] = (regs)->r9; \
arch/x86/include/asm/elf.h
200
(pr_reg)[9] = (regs)->r8; \
arch/x86/include/asm/elf.h
201
(pr_reg)[10] = (regs)->ax; \
arch/x86/include/asm/elf.h
202
(pr_reg)[11] = (regs)->cx; \
arch/x86/include/asm/elf.h
203
(pr_reg)[12] = (regs)->dx; \
arch/x86/include/asm/elf.h
204
(pr_reg)[13] = (regs)->si; \
arch/x86/include/asm/elf.h
205
(pr_reg)[14] = (regs)->di; \
arch/x86/include/asm/elf.h
206
(pr_reg)[15] = (regs)->orig_ax; \
arch/x86/include/asm/elf.h
207
(pr_reg)[16] = (regs)->ip; \
arch/x86/include/asm/elf.h
208
(pr_reg)[17] = (regs)->cs; \
arch/x86/include/asm/elf.h
209
(pr_reg)[18] = (regs)->flags; \
arch/x86/include/asm/elf.h
210
(pr_reg)[19] = (regs)->sp; \
arch/x86/include/asm/elf.h
211
(pr_reg)[20] = (regs)->ss; \
arch/x86/include/asm/elf.h
212
(pr_reg)[21] = x86_fsbase_read_cpu(); \
arch/x86/include/asm/elf.h
213
(pr_reg)[22] = x86_gsbase_read_cpu_inactive(); \
arch/x86/include/asm/elf.h
214
asm("movl %%ds,%0" : "=r" (v)); (pr_reg)[23] = v; \
arch/x86/include/asm/elf.h
215
asm("movl %%es,%0" : "=r" (v)); (pr_reg)[24] = v; \
arch/x86/include/asm/elf.h
216
asm("movl %%fs,%0" : "=r" (v)); (pr_reg)[25] = v; \
arch/x86/include/asm/elf.h
217
asm("movl %%gs,%0" : "=r" (v)); (pr_reg)[26] = v; \
arch/x86/include/asm/elfcore-compat.h
18
struct user_regs_struct32 pr_reg;
arch/x86/um/asm/elf.h
123
#define ELF_CORE_COPY_REGS(pr_reg, _regs) \
arch/x86/um/asm/elf.h
124
(pr_reg)[0] = (_regs)->regs.gp[0]; \
arch/x86/um/asm/elf.h
125
(pr_reg)[1] = (_regs)->regs.gp[1]; \
arch/x86/um/asm/elf.h
126
(pr_reg)[2] = (_regs)->regs.gp[2]; \
arch/x86/um/asm/elf.h
127
(pr_reg)[3] = (_regs)->regs.gp[3]; \
arch/x86/um/asm/elf.h
128
(pr_reg)[4] = (_regs)->regs.gp[4]; \
arch/x86/um/asm/elf.h
129
(pr_reg)[5] = (_regs)->regs.gp[5]; \
arch/x86/um/asm/elf.h
130
(pr_reg)[6] = (_regs)->regs.gp[6]; \
arch/x86/um/asm/elf.h
131
(pr_reg)[7] = (_regs)->regs.gp[7]; \
arch/x86/um/asm/elf.h
132
(pr_reg)[8] = (_regs)->regs.gp[8]; \
arch/x86/um/asm/elf.h
133
(pr_reg)[9] = (_regs)->regs.gp[9]; \
arch/x86/um/asm/elf.h
134
(pr_reg)[10] = (_regs)->regs.gp[10]; \
arch/x86/um/asm/elf.h
135
(pr_reg)[11] = (_regs)->regs.gp[11]; \
arch/x86/um/asm/elf.h
136
(pr_reg)[12] = (_regs)->regs.gp[12]; \
arch/x86/um/asm/elf.h
137
(pr_reg)[13] = (_regs)->regs.gp[13]; \
arch/x86/um/asm/elf.h
138
(pr_reg)[14] = (_regs)->regs.gp[14]; \
arch/x86/um/asm/elf.h
139
(pr_reg)[15] = (_regs)->regs.gp[15]; \
arch/x86/um/asm/elf.h
140
(pr_reg)[16] = (_regs)->regs.gp[16]; \
arch/x86/um/asm/elf.h
141
(pr_reg)[17] = (_regs)->regs.gp[17]; \
arch/x86/um/asm/elf.h
142
(pr_reg)[18] = (_regs)->regs.gp[18]; \
arch/x86/um/asm/elf.h
143
(pr_reg)[19] = (_regs)->regs.gp[19]; \
arch/x86/um/asm/elf.h
144
(pr_reg)[20] = (_regs)->regs.gp[20]; \
arch/x86/um/asm/elf.h
145
(pr_reg)[21] = (_regs)->regs.gp[21]; \
arch/x86/um/asm/elf.h
146
(pr_reg)[22] = (_regs)->regs.gp[22]; \
arch/x86/um/asm/elf.h
147
(pr_reg)[23] = 0; \
arch/x86/um/asm/elf.h
148
(pr_reg)[24] = 0; \
arch/x86/um/asm/elf.h
149
(pr_reg)[25] = 0; \
arch/x86/um/asm/elf.h
150
(pr_reg)[26] = 0;
arch/x86/um/asm/elf.h
50
#define ELF_CORE_COPY_REGS(pr_reg, regs) do { \
arch/x86/um/asm/elf.h
51
pr_reg[0] = PT_REGS_BX(regs); \
arch/x86/um/asm/elf.h
52
pr_reg[1] = PT_REGS_CX(regs); \
arch/x86/um/asm/elf.h
53
pr_reg[2] = PT_REGS_DX(regs); \
arch/x86/um/asm/elf.h
54
pr_reg[3] = PT_REGS_SI(regs); \
arch/x86/um/asm/elf.h
55
pr_reg[4] = PT_REGS_DI(regs); \
arch/x86/um/asm/elf.h
56
pr_reg[5] = PT_REGS_BP(regs); \
arch/x86/um/asm/elf.h
57
pr_reg[6] = PT_REGS_AX(regs); \
arch/x86/um/asm/elf.h
58
pr_reg[7] = PT_REGS_DS(regs); \
arch/x86/um/asm/elf.h
59
pr_reg[8] = PT_REGS_ES(regs); \
arch/x86/um/asm/elf.h
61
pr_reg[9] = PT_REGS_DS(regs); \
arch/x86/um/asm/elf.h
62
pr_reg[10] = PT_REGS_DS(regs); \
arch/x86/um/asm/elf.h
63
pr_reg[11] = PT_REGS_SYSCALL_NR(regs); \
arch/x86/um/asm/elf.h
64
pr_reg[12] = PT_REGS_IP(regs); \
arch/x86/um/asm/elf.h
65
pr_reg[13] = PT_REGS_CS(regs); \
arch/x86/um/asm/elf.h
66
pr_reg[14] = PT_REGS_EFLAGS(regs); \
arch/x86/um/asm/elf.h
67
pr_reg[15] = PT_REGS_SP(regs); \
arch/x86/um/asm/elf.h
68
pr_reg[16] = PT_REGS_SS(regs); \
drivers/iommu/omap-iommu-debug.c
48
pr_reg(REVISION);
drivers/iommu/omap-iommu-debug.c
49
pr_reg(IRQSTATUS);
drivers/iommu/omap-iommu-debug.c
50
pr_reg(IRQENABLE);
drivers/iommu/omap-iommu-debug.c
51
pr_reg(WALKING_ST);
drivers/iommu/omap-iommu-debug.c
52
pr_reg(CNTL);
drivers/iommu/omap-iommu-debug.c
53
pr_reg(FAULT_AD);
drivers/iommu/omap-iommu-debug.c
54
pr_reg(TTB);
drivers/iommu/omap-iommu-debug.c
55
pr_reg(LOCK);
drivers/iommu/omap-iommu-debug.c
56
pr_reg(LD_TLB);
drivers/iommu/omap-iommu-debug.c
57
pr_reg(CAM);
drivers/iommu/omap-iommu-debug.c
58
pr_reg(RAM);
drivers/iommu/omap-iommu-debug.c
59
pr_reg(GFLUSH);
drivers/iommu/omap-iommu-debug.c
60
pr_reg(FLUSH_ENTRY);
drivers/iommu/omap-iommu-debug.c
61
pr_reg(READ_CAM);
drivers/iommu/omap-iommu-debug.c
62
pr_reg(READ_RAM);
drivers/iommu/omap-iommu-debug.c
63
pr_reg(EMU_FAULT_AD);
drivers/target/target_core_configfs.c
1877
struct t10_pr_registration *pr_reg;
drivers/target/target_core_configfs.c
1880
pr_reg = dev->dev_pr_res_holder;
drivers/target/target_core_configfs.c
1881
if (!pr_reg)
drivers/target/target_core_configfs.c
1884
se_nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_configfs.c
1885
core_pr_dump_initiator_port(pr_reg, i_buf, PR_REG_ISID_ID_LEN);
drivers/target/target_core_configfs.c
1965
struct t10_pr_registration *pr_reg;
drivers/target/target_core_configfs.c
1970
pr_reg = dev->dev_pr_res_holder;
drivers/target/target_core_configfs.c
1971
if (!pr_reg) {
drivers/target/target_core_configfs.c
1976
se_nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_configfs.c
1985
" %s Logical Unit: %llu\n", pr_reg->tg_pt_sep_rtpi,
drivers/target/target_core_configfs.c
1987
tfo->fabric_name, pr_reg->pr_aptpl_target_lun);
drivers/target/target_core_configfs.c
2000
struct t10_pr_registration *pr_reg;
drivers/target/target_core_configfs.c
2009
list_for_each_entry(pr_reg, &dev->t10_pr.registration_list,
drivers/target/target_core_configfs.c
2014
tfo = pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo;
drivers/target/target_core_configfs.c
2015
core_pr_dump_initiator_port(pr_reg, i_buf,
drivers/target/target_core_configfs.c
2019
pr_reg->pr_reg_nacl->initiatorname, i_buf, pr_reg->pr_res_key,
drivers/target/target_core_configfs.c
2020
pr_reg->pr_res_generation);
drivers/target/target_core_configfs.c
2039
struct t10_pr_registration *pr_reg;
drivers/target/target_core_configfs.c
2043
pr_reg = dev->dev_pr_res_holder;
drivers/target/target_core_configfs.c
2044
if (pr_reg) {
drivers/target/target_core_configfs.c
2046
core_scsi3_pr_dump_type(pr_reg->pr_res_type));
drivers/target/target_core_fabric_lib.c
131
struct t10_pr_registration *pr_reg,
drivers/target/target_core_fabric_lib.c
157
if ((*format_code == 1) && (pr_reg->isid_present_at_reg)) {
drivers/target/target_core_fabric_lib.c
191
isid_len = sprintf(buf + off, "%s", pr_reg->pr_reg_isid);
drivers/target/target_core_fabric_lib.c
219
struct t10_pr_registration *pr_reg,
drivers/target/target_core_fabric_lib.c
237
if (pr_reg->isid_present_at_reg) {
drivers/target/target_core_fabric_lib.c
239
len += strlen(pr_reg->pr_reg_isid);
drivers/target/target_core_fabric_lib.c
378
struct t10_pr_registration *pr_reg, int *format_code)
drivers/target/target_core_fabric_lib.c
387
return iscsi_get_pr_transport_id_len(nacl, pr_reg, format_code);
drivers/target/target_core_fabric_lib.c
401
struct t10_pr_registration *pr_reg, int *format_code,
drivers/target/target_core_fabric_lib.c
414
return iscsi_get_pr_transport_id(nacl, pr_reg, format_code,
drivers/target/target_core_internal.h
102
struct t10_pr_registration *pr_reg, int *format_code);
drivers/target/target_core_internal.h
104
struct t10_pr_registration *pr_reg, int *format_code,
drivers/target/target_core_pr.c
1018
struct t10_pr_registration *pr_reg,
drivers/target/target_core_pr.c
1024
core_pr_dump_initiator_port(pr_reg, i_buf, PR_REG_ISID_ID_LEN);
drivers/target/target_core_pr.c
1036
(pr_reg->pr_reg_all_tg_pt) ? "ALL" : "SINGLE",
drivers/target/target_core_pr.c
1040
pr_reg->pr_res_key, pr_reg->pr_res_generation,
drivers/target/target_core_pr.c
1041
pr_reg->pr_reg_aptpl);
drivers/target/target_core_pr.c
1047
struct t10_pr_registration *pr_reg,
drivers/target/target_core_pr.c
1065
pr_reg->pr_res_generation = (register_move) ?
drivers/target/target_core_pr.c
1070
list_add_tail(&pr_reg->pr_reg_list, &pr_tmpl->registration_list);
drivers/target/target_core_pr.c
1072
__core_scsi3_dump_registration(tfo, dev, nacl, pr_reg, register_type);
drivers/target/target_core_pr.c
1077
if (!pr_reg->pr_reg_all_tg_pt || register_move)
drivers/target/target_core_pr.c
1084
&pr_reg->pr_reg_atp_list, pr_reg_atp_mem_list) {
drivers/target/target_core_pr.c
1116
deve = pr_reg->pr_reg_deve;
drivers/target/target_core_pr.c
1120
pr_reg->pr_reg_deve = NULL;
drivers/target/target_core_pr.c
1138
struct t10_pr_registration *pr_reg;
drivers/target/target_core_pr.c
1140
pr_reg = __core_scsi3_alloc_registration(dev, nacl, lun, deve, mapped_lun,
drivers/target/target_core_pr.c
1143
if (!pr_reg)
drivers/target/target_core_pr.c
1146
__core_scsi3_add_registration(dev, nacl, pr_reg,
drivers/target/target_core_pr.c
1157
struct t10_pr_registration *pr_reg, *pr_reg_tmp;
drivers/target/target_core_pr.c
1160
list_for_each_entry_safe(pr_reg, pr_reg_tmp,
drivers/target/target_core_pr.c
1165
if (pr_reg->pr_reg_nacl != nacl)
drivers/target/target_core_pr.c
1172
if (!pr_reg->isid_present_at_reg) {
drivers/target/target_core_pr.c
1173
atomic_inc_mb(&pr_reg->pr_res_holders);
drivers/target/target_core_pr.c
1175
return pr_reg;
drivers/target/target_core_pr.c
1184
if (strcmp(isid, pr_reg->pr_reg_isid))
drivers/target/target_core_pr.c
1187
atomic_inc_mb(&pr_reg->pr_res_holders);
drivers/target/target_core_pr.c
1189
return pr_reg;
drivers/target/target_core_pr.c
1214
static void core_scsi3_put_pr_reg(struct t10_pr_registration *pr_reg)
drivers/target/target_core_pr.c
1216
atomic_dec_mb(&pr_reg->pr_res_holders);
drivers/target/target_core_pr.c
1221
struct t10_pr_registration *pr_reg)
drivers/target/target_core_pr.c
1223
struct se_node_acl *nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_pr.c
123
struct t10_pr_registration *pr_reg;
drivers/target/target_core_pr.c
1233
if (pr_res_holder == pr_reg) {
drivers/target/target_core_pr.c
1247
__core_scsi3_complete_pro_release(dev, nacl, pr_reg, 0, 1);
drivers/target/target_core_pr.c
1255
} else if (pr_reg->pr_reg_all_tg_pt &&
drivers/target/target_core_pr.c
1257
pr_reg->pr_reg_nacl->initiatorname)) &&
drivers/target/target_core_pr.c
1258
(pr_res_holder->pr_res_key == pr_reg->pr_res_key)) {
drivers/target/target_core_pr.c
1262
" Port\n", pr_reg->pr_res_key);
drivers/target/target_core_pr.c
127
pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl,
drivers/target/target_core_pr.c
1272
struct t10_pr_registration *pr_reg,
drivers/target/target_core_pr.c
1279
pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo;
drivers/target/target_core_pr.c
1281
struct se_node_acl *nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_pr.c
1287
core_pr_dump_initiator_port(pr_reg, i_buf, PR_REG_ISID_ID_LEN);
drivers/target/target_core_pr.c
1289
if (!list_empty(&pr_reg->pr_reg_list))
drivers/target/target_core_pr.c
129
if (pr_reg) {
drivers/target/target_core_pr.c
1290
list_del(&pr_reg->pr_reg_list);
drivers/target/target_core_pr.c
1296
core_scsi3_put_pr_reg(pr_reg);
drivers/target/target_core_pr.c
1305
while (atomic_read(&pr_reg->pr_res_holders) != 0) {
drivers/target/target_core_pr.c
1312
deve = target_nacl_find_deve(nacl, pr_reg->pr_res_mapped_lun);
drivers/target/target_core_pr.c
1320
pr_reg->pr_reg_nacl->initiatorname,
drivers/target/target_core_pr.c
1324
(pr_reg->pr_reg_all_tg_pt) ? "ALL" : "SINGLE",
drivers/target/target_core_pr.c
1327
" 0x%08x\n", tfo->fabric_name, pr_reg->pr_res_key,
drivers/target/target_core_pr.c
1328
pr_reg->pr_res_generation);
drivers/target/target_core_pr.c
1331
pr_reg->pr_reg_deve = NULL;
drivers/target/target_core_pr.c
1332
pr_reg->pr_reg_nacl = NULL;
drivers/target/target_core_pr.c
1333
kmem_cache_free(t10_pr_reg_cache, pr_reg);
drivers/target/target_core_pr.c
1340
list_add_tail(&pr_reg->pr_reg_abort_list, preempt_and_abort_list);
drivers/target/target_core_pr.c
1348
struct t10_pr_registration *pr_reg, *pr_reg_tmp, *pr_res_holder;
drivers/target/target_core_pr.c
1369
list_for_each_entry_safe(pr_reg, pr_reg_tmp,
drivers/target/target_core_pr.c
1372
if (pr_reg->pr_reg_nacl != nacl)
drivers/target/target_core_pr.c
1375
__core_scsi3_free_registration(dev, pr_reg, NULL, 0);
drivers/target/target_core_pr.c
1384
struct t10_pr_registration *pr_reg, *pr_reg_tmp, *pr_res_holder;
drivers/target/target_core_pr.c
1396
list_for_each_entry_safe(pr_reg, pr_reg_tmp,
drivers/target/target_core_pr.c
1399
__core_scsi3_free_registration(dev, pr_reg, NULL, 0);
drivers/target/target_core_pr.c
1404
list_for_each_entry_safe(pr_reg, pr_reg_tmp, &pr_tmpl->aptpl_reg_list,
drivers/target/target_core_pr.c
1406
list_del(&pr_reg->pr_reg_aptpl_list);
drivers/target/target_core_pr.c
1407
kmem_cache_free(t10_pr_reg_cache, pr_reg);
drivers/target/target_core_pr.c
151
if (pr_reg->pr_res_holder) {
drivers/target/target_core_pr.c
152
core_scsi3_put_pr_reg(pr_reg);
drivers/target/target_core_pr.c
155
if ((pr_reg->pr_res_type == PR_TYPE_WRITE_EXCLUSIVE_REGONLY) ||
drivers/target/target_core_pr.c
156
(pr_reg->pr_res_type == PR_TYPE_EXCLUSIVE_ACCESS_REGONLY) ||
drivers/target/target_core_pr.c
157
(pr_reg->pr_res_type == PR_TYPE_WRITE_EXCLUSIVE_ALLREG) ||
drivers/target/target_core_pr.c
158
(pr_reg->pr_res_type == PR_TYPE_EXCLUSIVE_ACCESS_ALLREG)) {
drivers/target/target_core_pr.c
159
core_scsi3_put_pr_reg(pr_reg);
drivers/target/target_core_pr.c
162
core_scsi3_put_pr_reg(pr_reg);
drivers/target/target_core_pr.c
1864
struct t10_pr_registration *pr_reg;
drivers/target/target_core_pr.c
1875
list_for_each_entry(pr_reg, &dev->t10_pr.registration_list,
drivers/target/target_core_pr.c
1880
tpg = pr_reg->pr_reg_nacl->se_tpg;
drivers/target/target_core_pr.c
1885
if (pr_reg->isid_present_at_reg)
drivers/target/target_core_pr.c
1887
pr_reg->pr_reg_isid);
drivers/target/target_core_pr.c
1892
if (dev->dev_pr_res_holder == pr_reg) {
drivers/target/target_core_pr.c
1901
pr_reg->pr_reg_nacl->initiatorname, isid_buf,
drivers/target/target_core_pr.c
1902
pr_reg->pr_res_key, pr_reg->pr_res_type,
drivers/target/target_core_pr.c
1903
pr_reg->pr_res_scope, pr_reg->pr_reg_all_tg_pt,
drivers/target/target_core_pr.c
1904
pr_reg->pr_res_mapped_lun);
drivers/target/target_core_pr.c
1911
pr_reg->pr_reg_nacl->initiatorname, isid_buf,
drivers/target/target_core_pr.c
1912
pr_reg->pr_res_key, pr_reg->pr_reg_all_tg_pt,
drivers/target/target_core_pr.c
1913
pr_reg->pr_res_mapped_lun);
drivers/target/target_core_pr.c
1932
pr_reg->tg_pt_sep_rtpi, pr_reg->pr_aptpl_target_lun,
drivers/target/target_core_pr.c
2045
struct t10_pr_registration *pr_reg, *pr_reg_p, *pr_reg_tmp;
drivers/target/target_core_pr.c
2066
pr_reg = core_scsi3_locate_pr_reg(dev, se_sess->se_node_acl, se_sess);
drivers/target/target_core_pr.c
2067
if (!pr_reg) {
drivers/target/target_core_pr.c
2113
if ((register_type == REGISTER) && (res_key != pr_reg->pr_res_key)) {
drivers/target/target_core_pr.c
2118
pr_reg->pr_res_key);
drivers/target/target_core_pr.c
2134
if (pr_reg->pr_reg_all_tg_pt && !all_tg_pt) {
drivers/target/target_core_pr.c
2151
pr_reg->pr_res_generation = core_scsi3_pr_generation(cmd->se_dev);
drivers/target/target_core_pr.c
2152
pr_reg->pr_res_key = sa_res_key;
drivers/target/target_core_pr.c
2157
pr_reg->pr_reg_nacl->initiatorname,
drivers/target/target_core_pr.c
2158
pr_reg->pr_res_key, pr_reg->pr_res_generation);
drivers/target/target_core_pr.c
2164
type = pr_reg->pr_res_type;
drivers/target/target_core_pr.c
2166
pr_reg);
drivers/target/target_core_pr.c
2177
if (pr_reg->pr_reg_all_tg_pt) {
drivers/target/target_core_pr.c
2186
if (pr_reg == pr_reg_p)
drivers/target/target_core_pr.c
2188
if (strcmp(pr_reg->pr_reg_nacl->initiatorname,
drivers/target/target_core_pr.c
2200
__core_scsi3_free_registration(cmd->se_dev, pr_reg, NULL, 1);
drivers/target/target_core_pr.c
2201
pr_reg = NULL;
drivers/target/target_core_pr.c
2235
if (pr_reg)
drivers/target/target_core_pr.c
2236
core_scsi3_put_pr_reg(pr_reg);
drivers/target/target_core_pr.c
2268
struct t10_pr_registration *pr_reg, *pr_res_holder;
drivers/target/target_core_pr.c
2280
pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl,
drivers/target/target_core_pr.c
2282
if (!pr_reg) {
drivers/target/target_core_pr.c
2296
if (res_key != pr_reg->pr_res_key) {
drivers/target/target_core_pr.c
2299
" 0x%016Lx\n", res_key, pr_reg->pr_res_key);
drivers/target/target_core_pr.c
2336
if (!is_reservation_holder(pr_res_holder, pr_reg)) {
drivers/target/target_core_pr.c
2391
pr_reg->pr_res_scope = scope;
drivers/target/target_core_pr.c
2392
pr_reg->pr_res_type = type;
drivers/target/target_core_pr.c
2393
pr_reg->pr_res_holder = 1;
drivers/target/target_core_pr.c
2394
dev->dev_pr_res_holder = pr_reg;
drivers/target/target_core_pr.c
2395
core_pr_dump_initiator_port(pr_reg, i_buf, PR_REG_ISID_ID_LEN);
drivers/target/target_core_pr.c
2400
(pr_reg->pr_reg_all_tg_pt) ? 1 : 0);
drivers/target/target_core_pr.c
2412
core_scsi3_put_pr_reg(pr_reg);
drivers/target/target_core_pr.c
2438
struct t10_pr_registration *pr_reg,
drivers/target/target_core_pr.c
2448
core_pr_dump_initiator_port(pr_reg, i_buf, PR_REG_ISID_ID_LEN);
drivers/target/target_core_pr.c
2467
list_del_init(&pr_reg->pr_reg_list);
drivers/target/target_core_pr.c
2491
(pr_reg->pr_reg_all_tg_pt) ? 1 : 0);
drivers/target/target_core_pr.c
2499
pr_reg->pr_res_holder = pr_reg->pr_res_type = pr_reg->pr_res_scope = 0;
drivers/target/target_core_pr.c
2509
struct t10_pr_registration *pr_reg, *pr_reg_p, *pr_res_holder;
drivers/target/target_core_pr.c
2520
pr_reg = core_scsi3_locate_pr_reg(dev, se_sess->se_node_acl, se_sess);
drivers/target/target_core_pr.c
2521
if (!pr_reg) {
drivers/target/target_core_pr.c
2548
if (!is_reservation_holder(pr_res_holder, pr_reg)) {
drivers/target/target_core_pr.c
2571
if (res_key != pr_reg->pr_res_key) {
drivers/target/target_core_pr.c
2574
" 0x%016Lx\n", res_key, pr_reg->pr_res_key);
drivers/target/target_core_pr.c
2618
pr_reg, 1, 0);
drivers/target/target_core_pr.c
2641
if (pr_reg_p == pr_reg)
drivers/target/target_core_pr.c
2655
core_scsi3_put_pr_reg(pr_reg);
drivers/target/target_core_pr.c
2666
struct t10_pr_registration *pr_reg, *pr_reg_tmp, *pr_reg_n, *pr_res_holder;
drivers/target/target_core_pr.c
2713
list_for_each_entry_safe(pr_reg, pr_reg_tmp,
drivers/target/target_core_pr.c
2716
calling_it_nexus = (pr_reg_n == pr_reg) ? 1 : 0;
drivers/target/target_core_pr.c
2717
pr_reg_nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_pr.c
2718
pr_res_mapped_lun = pr_reg->pr_res_mapped_lun;
drivers/target/target_core_pr.c
2719
__core_scsi3_free_registration(dev, pr_reg, NULL,
drivers/target/target_core_pr.c
2745
struct t10_pr_registration *pr_reg,
drivers/target/target_core_pr.c
2751
struct se_node_acl *nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_pr.c
2757
core_pr_dump_initiator_port(pr_reg, i_buf, PR_REG_ISID_ID_LEN);
drivers/target/target_core_pr.c
2765
dev->dev_pr_res_holder = pr_reg;
drivers/target/target_core_pr.c
2766
pr_reg->pr_res_holder = 1;
drivers/target/target_core_pr.c
2767
pr_reg->pr_res_type = type;
drivers/target/target_core_pr.c
2768
pr_reg->pr_res_scope = scope;
drivers/target/target_core_pr.c
2774
(pr_reg->pr_reg_all_tg_pt) ? 1 : 0);
drivers/target/target_core_pr.c
2784
list_add_tail(&pr_reg->pr_reg_abort_list,
drivers/target/target_core_pr.c
2792
struct t10_pr_registration *pr_reg, *pr_reg_tmp;
drivers/target/target_core_pr.c
2794
list_for_each_entry_safe(pr_reg, pr_reg_tmp, preempt_and_abort_list,
drivers/target/target_core_pr.c
2797
list_del(&pr_reg->pr_reg_abort_list);
drivers/target/target_core_pr.c
2798
if (pr_reg_holder == pr_reg)
drivers/target/target_core_pr.c
2800
if (pr_reg->pr_res_holder) {
drivers/target/target_core_pr.c
2805
pr_reg->pr_reg_deve = NULL;
drivers/target/target_core_pr.c
2806
pr_reg->pr_reg_nacl = NULL;
drivers/target/target_core_pr.c
2807
kmem_cache_free(t10_pr_reg_cache, pr_reg);
drivers/target/target_core_pr.c
2819
struct t10_pr_registration *pr_reg, *pr_reg_tmp, *pr_reg_n, *pr_res_holder;
drivers/target/target_core_pr.c
2876
list_for_each_entry_safe(pr_reg, pr_reg_tmp,
drivers/target/target_core_pr.c
2896
if (pr_reg->pr_res_key != sa_res_key)
drivers/target/target_core_pr.c
2900
calling_it_nexus = (pr_reg_n == pr_reg) ? 1 : 0;
drivers/target/target_core_pr.c
2901
pr_reg_nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_pr.c
2902
pr_res_mapped_lun = pr_reg->pr_res_mapped_lun;
drivers/target/target_core_pr.c
2903
__core_scsi3_free_registration(dev, pr_reg,
drivers/target/target_core_pr.c
2921
(pr_reg->pr_res_key != sa_res_key))
drivers/target/target_core_pr.c
2925
calling_it_nexus = (pr_reg_n == pr_reg) ? 1 : 0;
drivers/target/target_core_pr.c
2929
pr_reg_nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_pr.c
2930
pr_res_mapped_lun = pr_reg->pr_res_mapped_lun;
drivers/target/target_core_pr.c
2931
__core_scsi3_free_registration(dev, pr_reg,
drivers/target/target_core_pr.c
3036
list_for_each_entry_safe(pr_reg, pr_reg_tmp,
drivers/target/target_core_pr.c
3039
calling_it_nexus = (pr_reg_n == pr_reg) ? 1 : 0;
drivers/target/target_core_pr.c
3043
if (sa_res_key && pr_reg->pr_res_key != sa_res_key)
drivers/target/target_core_pr.c
3046
pr_reg_nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_pr.c
3047
pr_res_mapped_lun = pr_reg->pr_res_mapped_lun;
drivers/target/target_core_pr.c
3048
__core_scsi3_free_registration(dev, pr_reg,
drivers/target/target_core_pr.c
3083
list_for_each_entry_safe(pr_reg, pr_reg_tmp,
drivers/target/target_core_pr.c
3086
calling_it_nexus = (pr_reg_n == pr_reg) ? 1 : 0;
drivers/target/target_core_pr.c
3090
target_ua_allocate_lun(pr_reg->pr_reg_nacl,
drivers/target/target_core_pr.c
3091
pr_reg->pr_res_mapped_lun, 0x2A,
drivers/target/target_core_pr.c
3153
struct t10_pr_registration *pr_reg, *pr_res_holder, *dest_pr_reg;
drivers/target/target_core_pr.c
3178
pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl,
drivers/target/target_core_pr.c
3180
if (!pr_reg) {
drivers/target/target_core_pr.c
3189
if (res_key != pr_reg->pr_res_key) {
drivers/target/target_core_pr.c
3192
" res_key: 0x%016Lx\n", res_key, pr_reg->pr_res_key);
drivers/target/target_core_pr.c
3306
pr_reg_nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_pr.c
3312
if (!iport_ptr || !pr_reg->isid_present_at_reg) {
drivers/target/target_core_pr.c
3319
if (!strcmp(iport_ptr, pr_reg->pr_reg_isid)) {
drivers/target/target_core_pr.c
3323
pr_reg->pr_reg_isid);
drivers/target/target_core_pr.c
3403
if (!is_reservation_holder(pr_res_holder, pr_reg)) {
drivers/target/target_core_pr.c
3489
pr_reg->pr_res_scope = scope;
drivers/target/target_core_pr.c
3490
core_pr_dump_initiator_port(pr_reg, i_buf, PR_REG_ISID_ID_LEN);
drivers/target/target_core_pr.c
3522
__core_scsi3_free_registration(dev, pr_reg, NULL, 1);
drivers/target/target_core_pr.c
3525
core_scsi3_put_pr_reg(pr_reg);
drivers/target/target_core_pr.c
3541
core_scsi3_put_pr_reg(pr_reg);
drivers/target/target_core_pr.c
3741
struct t10_pr_registration *pr_reg;
drivers/target/target_core_pr.c
3758
list_for_each_entry(pr_reg, &dev->t10_pr.registration_list,
drivers/target/target_core_pr.c
3765
put_unaligned_be64(pr_reg->pr_res_key, &buf[off]);
drivers/target/target_core_pr.c
3795
struct t10_pr_registration *pr_reg;
drivers/target/target_core_pr.c
3813
pr_reg = dev->dev_pr_res_holder;
drivers/target/target_core_pr.c
3814
if (pr_reg) {
drivers/target/target_core_pr.c
3840
if ((pr_reg->pr_res_type == PR_TYPE_WRITE_EXCLUSIVE_ALLREG) ||
drivers/target/target_core_pr.c
3841
(pr_reg->pr_res_type == PR_TYPE_EXCLUSIVE_ACCESS_ALLREG))
drivers/target/target_core_pr.c
3844
pr_res_key = pr_reg->pr_res_key;
drivers/target/target_core_pr.c
3850
buf[21] = (pr_reg->pr_res_scope & 0xf0) |
drivers/target/target_core_pr.c
3851
(pr_reg->pr_res_type & 0x0f);
drivers/target/target_core_pr.c
3933
struct t10_pr_registration *pr_reg, *pr_reg_tmp;
drivers/target/target_core_pr.c
3968
list_for_each_entry_safe(pr_reg, pr_reg_tmp,
drivers/target/target_core_pr.c
3971
se_nacl = pr_reg->pr_reg_nacl;
drivers/target/target_core_pr.c
3972
se_tpg = pr_reg->pr_reg_nacl->se_tpg;
drivers/target/target_core_pr.c
3975
atomic_inc_mb(&pr_reg->pr_res_holders);
drivers/target/target_core_pr.c
3981
exp_desc_len = target_get_pr_transport_id_len(se_nacl, pr_reg,
drivers/target/target_core_pr.c
3988
atomic_dec_mb(&pr_reg->pr_res_holders);
drivers/target/target_core_pr.c
3994
put_unaligned_be64(pr_reg->pr_res_key, &buf[off]);
drivers/target/target_core_pr.c
4001
if (pr_reg->pr_reg_all_tg_pt)
drivers/target/target_core_pr.c
4011
if (pr_reg->pr_res_holder) {
drivers/target/target_core_pr.c
4013
buf[off++] = (pr_reg->pr_res_scope & 0xf0) |
drivers/target/target_core_pr.c
4014
(pr_reg->pr_res_type & 0x0f);
drivers/target/target_core_pr.c
4034
if (!pr_reg->pr_reg_all_tg_pt) {
drivers/target/target_core_pr.c
4035
u16 sep_rtpi = pr_reg->tg_pt_sep_rtpi;
drivers/target/target_core_pr.c
4047
desc_len = target_get_pr_transport_id(se_nacl, pr_reg,
drivers/target/target_core_pr.c
4051
atomic_dec_mb(&pr_reg->pr_res_holders);
drivers/target/target_core_pr.c
44
struct t10_pr_registration *pr_reg,
drivers/target/target_core_pr.c
48
if (!pr_reg->isid_present_at_reg) {
drivers/target/target_core_pr.c
53
snprintf(buf, size, ",i,0x%s", pr_reg->pr_reg_isid);
drivers/target/target_core_pr.c
627
struct t10_pr_registration *pr_reg;
drivers/target/target_core_pr.c
629
pr_reg = kmem_cache_zalloc(t10_pr_reg_cache, GFP_ATOMIC);
drivers/target/target_core_pr.c
630
if (!pr_reg) {
drivers/target/target_core_pr.c
635
INIT_LIST_HEAD(&pr_reg->pr_reg_list);
drivers/target/target_core_pr.c
636
INIT_LIST_HEAD(&pr_reg->pr_reg_abort_list);
drivers/target/target_core_pr.c
637
INIT_LIST_HEAD(&pr_reg->pr_reg_aptpl_list);
drivers/target/target_core_pr.c
638
INIT_LIST_HEAD(&pr_reg->pr_reg_atp_list);
drivers/target/target_core_pr.c
639
INIT_LIST_HEAD(&pr_reg->pr_reg_atp_mem_list);
drivers/target/target_core_pr.c
640
atomic_set(&pr_reg->pr_res_holders, 0);
drivers/target/target_core_pr.c
641
pr_reg->pr_reg_nacl = nacl;
drivers/target/target_core_pr.c
651
pr_reg->pr_reg_deve = dest_deve;
drivers/target/target_core_pr.c
654
pr_reg->pr_reg_deve = target_nacl_find_deve(nacl, mapped_lun);
drivers/target/target_core_pr.c
655
if (!pr_reg->pr_reg_deve) {
drivers/target/target_core_pr.c
659
kmem_cache_free(t10_pr_reg_cache, pr_reg);
drivers/target/target_core_pr.c
662
kref_get(&pr_reg->pr_reg_deve->pr_kref);
drivers/target/target_core_pr.c
665
pr_reg->pr_res_mapped_lun = mapped_lun;
drivers/target/target_core_pr.c
666
pr_reg->pr_aptpl_target_lun = lun->unpacked_lun;
drivers/target/target_core_pr.c
667
pr_reg->tg_pt_sep_rtpi = lun->lun_tpg->tpg_rtpi;
drivers/target/target_core_pr.c
668
pr_reg->pr_res_key = sa_res_key;
drivers/target/target_core_pr.c
669
pr_reg->pr_reg_all_tg_pt = all_tg_pt;
drivers/target/target_core_pr.c
670
pr_reg->pr_reg_aptpl = aptpl;
drivers/target/target_core_pr.c
676
pr_reg->pr_reg_bin_isid = get_unaligned_be64(isid);
drivers/target/target_core_pr.c
677
snprintf(pr_reg->pr_reg_isid, PR_REG_ISID_LEN, "%s", isid);
drivers/target/target_core_pr.c
678
pr_reg->isid_present_at_reg = 1;
drivers/target/target_core_pr.c
681
return pr_reg;
drivers/target/target_core_pr.c
707
struct t10_pr_registration *pr_reg, *pr_reg_atp, *pr_reg_tmp, *pr_reg_tmp_safe;
drivers/target/target_core_pr.c
713
pr_reg = __core_scsi3_do_alloc_registration(dev, nacl, lun, deve, mapped_lun,
drivers/target/target_core_pr.c
716
if (!pr_reg)
drivers/target/target_core_pr.c
72
struct t10_pr_registration *pr_reg)
drivers/target/target_core_pr.c
722
return pr_reg;
drivers/target/target_core_pr.c
79
return pr_res_holder == pr_reg ||
drivers/target/target_core_pr.c
800
&pr_reg->pr_reg_atp_list);
drivers/target/target_core_pr.c
810
return pr_reg;
drivers/target/target_core_pr.c
813
&pr_reg->pr_reg_atp_list, pr_reg_atp_mem_list) {
drivers/target/target_core_pr.c
818
kmem_cache_free(t10_pr_reg_cache, pr_reg);
drivers/target/target_core_pr.c
835
struct t10_pr_registration *pr_reg;
drivers/target/target_core_pr.c
842
pr_reg = kmem_cache_zalloc(t10_pr_reg_cache, GFP_KERNEL);
drivers/target/target_core_pr.c
843
if (!pr_reg) {
drivers/target/target_core_pr.c
848
INIT_LIST_HEAD(&pr_reg->pr_reg_list);
drivers/target/target_core_pr.c
849
INIT_LIST_HEAD(&pr_reg->pr_reg_abort_list);
drivers/target/target_core_pr.c
850
INIT_LIST_HEAD(&pr_reg->pr_reg_aptpl_list);
drivers/target/target_core_pr.c
851
INIT_LIST_HEAD(&pr_reg->pr_reg_atp_list);
drivers/target/target_core_pr.c
852
INIT_LIST_HEAD(&pr_reg->pr_reg_atp_mem_list);
drivers/target/target_core_pr.c
853
atomic_set(&pr_reg->pr_res_holders, 0);
drivers/target/target_core_pr.c
854
pr_reg->pr_reg_nacl = NULL;
drivers/target/target_core_pr.c
855
pr_reg->pr_reg_deve = NULL;
drivers/target/target_core_pr.c
856
pr_reg->pr_res_mapped_lun = mapped_lun;
drivers/target/target_core_pr.c
857
pr_reg->pr_aptpl_target_lun = target_lun;
drivers/target/target_core_pr.c
858
pr_reg->pr_res_key = sa_res_key;
drivers/target/target_core_pr.c
859
pr_reg->pr_reg_all_tg_pt = all_tg_pt;
drivers/target/target_core_pr.c
860
pr_reg->pr_reg_aptpl = 1;
drivers/target/target_core_pr.c
861
pr_reg->pr_res_scope = 0; /* Always LUN_SCOPE */
drivers/target/target_core_pr.c
862
pr_reg->pr_res_type = type;
drivers/target/target_core_pr.c
868
pr_reg->pr_reg_bin_isid = get_unaligned_be64(isid);
drivers/target/target_core_pr.c
869
snprintf(pr_reg->pr_reg_isid, PR_REG_ISID_LEN, "%s", isid);
drivers/target/target_core_pr.c
870
pr_reg->isid_present_at_reg = 1;
drivers/target/target_core_pr.c
875
snprintf(pr_reg->pr_iport, PR_APTPL_MAX_IPORT_LEN, "%s", i_port);
drivers/target/target_core_pr.c
876
snprintf(pr_reg->pr_tport, PR_APTPL_MAX_TPORT_LEN, "%s", t_port);
drivers/target/target_core_pr.c
877
pr_reg->pr_reg_tpgt = tpgt;
drivers/target/target_core_pr.c
884
pr_reg->pr_res_holder = res_holder;
drivers/target/target_core_pr.c
886
list_add_tail(&pr_reg->pr_reg_aptpl_list, &pr_tmpl->aptpl_reg_list);
drivers/target/target_core_pr.c
896
struct t10_pr_registration *pr_reg)
drivers/target/target_core_pr.c
900
core_pr_dump_initiator_port(pr_reg, i_buf, PR_REG_ISID_ID_LEN);
drivers/target/target_core_pr.c
903
dev->dev_pr_res_holder = pr_reg;
drivers/target/target_core_pr.c
909
core_scsi3_pr_dump_type(pr_reg->pr_res_type),
drivers/target/target_core_pr.c
910
(pr_reg->pr_reg_all_tg_pt) ? 1 : 0);
drivers/target/target_core_pr.c
927
struct t10_pr_registration *pr_reg, *pr_reg_tmp;
drivers/target/target_core_pr.c
947
list_for_each_entry_safe(pr_reg, pr_reg_tmp, &pr_tmpl->aptpl_reg_list,
drivers/target/target_core_pr.c
950
if (!strcmp(pr_reg->pr_iport, i_port) &&
drivers/target/target_core_pr.c
951
(pr_reg->pr_res_mapped_lun == mapped_lun) &&
drivers/target/target_core_pr.c
952
!(strcmp(pr_reg->pr_tport, t_port)) &&
drivers/target/target_core_pr.c
953
(pr_reg->pr_reg_tpgt == tpgt) &&
drivers/target/target_core_pr.c
954
(pr_reg->pr_aptpl_target_lun == target_lun)) {
drivers/target/target_core_pr.c
960
pr_reg->pr_reg_deve = target_nacl_find_deve(nacl, mapped_lun);
drivers/target/target_core_pr.c
961
if (!pr_reg->pr_reg_deve) {
drivers/target/target_core_pr.c
967
kref_get(&pr_reg->pr_reg_deve->pr_kref);
drivers/target/target_core_pr.c
970
pr_reg->pr_reg_nacl = nacl;
drivers/target/target_core_pr.c
971
pr_reg->tg_pt_sep_rtpi = lun->lun_tpg->tpg_rtpi;
drivers/target/target_core_pr.c
972
list_del(&pr_reg->pr_reg_aptpl_list);
drivers/target/target_core_pr.c
978
__core_scsi3_add_registration(dev, nacl, pr_reg, 0, 0);
drivers/target/target_core_pr.c
983
if (pr_reg->pr_res_holder)
drivers/target/target_core_pr.c
985
nacl, pr_reg);
fs/binfmt_elf.c
1735
sizeof(t->prstatus.pr_reg), &t->prstatus.pr_reg);
fs/binfmt_elf.c
1797
elf_core_copy_task_regs(p, &t->prstatus.pr_reg);
fs/binfmt_elf_fdpic.c
1200
elf_gregset_t pr_reg; /* GP registers */
fs/binfmt_elf_fdpic.c
1408
sizeof(t->prstatus.pr_reg), &t->prstatus.pr_reg);
include/linux/elfcore-compat.h
62
compat_elf_gregset_t pr_reg;
include/linux/elfcore.h
51
elf_gregset_t pr_reg; /* GP registers */
kernel/crash_core.c
468
elf_core_copy_regs(&prstatus.pr_reg, regs);