Symbol: pptr
usr/src/cmd/cfgadm/cfgadm.c
816
char **pptr;
usr/src/cmd/cfgadm/cfgadm.c
821
pptr = sortpp;
usr/src/cmd/cfgadm/cfgadm.c
824
pptr = colspp;
usr/src/cmd/cfgadm/cfgadm.c
827
pptr = cols2pp;
usr/src/cmd/cfgadm/cfgadm.c
830
pptr = selectpp;
usr/src/cmd/cfgadm/cfgadm.c
833
pptr = matchpp;
usr/src/cmd/cfgadm/cfgadm.c
836
pptr = delimpp;
usr/src/cmd/cfgadm/cfgadm.c
843
*pptr = value;
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
1228
mechlist_t *ptr, *pptr;
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
1231
ptr = pptr = *pmechlist;
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
1237
pptr = *pmechlist = ptr->next;
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
1239
ptr = pptr;
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
1241
pptr->next = ptr->next;
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
1243
ptr = pptr->next;
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
1246
pptr = ptr;
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
182
char *pptr = (char *)packet;
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
190
pptr += sizeof (*rs);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
193
packetlen += add_opt_lla(pi, (struct nd_opt_lla *)pptr);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
212
char *pptr = (char *)packet;
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
217
ra = (struct nd_router_advert *)pptr;
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
236
pptr += sizeof (*ra);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
250
packetlen += add_opt_lla(pi, (struct nd_opt_lla *)pptr);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
251
pptr = (char *)packet + packetlen;
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
254
struct nd_opt_mtu *mo = (struct nd_opt_mtu *)pptr;
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
262
pptr += sizeof (struct nd_opt_mtu);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
276
po = (struct nd_opt_prefix_info *)pptr;
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
299
pptr = (char *)packet + sizeof (*ra);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
300
po = (struct nd_opt_prefix_info *)pptr;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_ether.c
1764
char *pptr;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_ether.c
1771
pptr = (char *)(ip6hdr + 1);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_ether.c
1780
exthdr = (ip6_hbh_t *)pptr;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_ether.c
1783
pptr += exthdrlen;
usr/src/cmd/dladm/dladm.c
6646
char **pptr)
usr/src/cmd/dladm/dladm.c
6710
*pptr += snprintf(*pptr, lim - *pptr,
usr/src/cmd/dladm/dladm.c
6713
*pptr += snprintf(*pptr, lim - *pptr, format, buf);
usr/src/cmd/flowadm/flowadm.c
1025
*pptr += snprintf(*pptr, lim - *pptr,
usr/src/cmd/flowadm/flowadm.c
1028
*pptr += snprintf(*pptr, lim - *pptr, format, buf);
usr/src/cmd/flowadm/flowadm.c
967
const char *format, char **pptr)
usr/src/cmd/format/menu_partition.c
187
struct partition_info *pptr, *parts;
usr/src/cmd/format/menu_partition.c
210
for (i = 0, pptr = parts; pptr != NULL; pptr = pptr->pinfo_next) {
usr/src/cmd/format/menu_partition.c
211
if (cur_parts == pptr) {
usr/src/cmd/format/menu_partition.c
215
if (pptr->pinfo_name == NULL)
usr/src/cmd/format/menu_partition.c
218
fmt_print(" %d. %s\n", i++, pptr->pinfo_name);
usr/src/cmd/format/menu_partition.c
227
for (i = 0, pptr = parts; i < index; i++, pptr = pptr->pinfo_next)
usr/src/cmd/format/menu_partition.c
231
cur_disk->disk_parts = cur_parts = pptr;
usr/src/cmd/format/menu_partition.c
243
cyl_offset = pptr->pinfo_map[I_PARTITION].dkl_cylno + 1;
usr/src/cmd/format/menu_partition.c
244
if (pptr->pinfo_map[J_PARTITION].dkl_nblk != 0) {
usr/src/cmd/format/menu_partition.c
245
cyl_offset = pptr->pinfo_map[J_PARTITION].dkl_cylno +
usr/src/cmd/format/menu_partition.c
246
((pptr->pinfo_map[J_PARTITION].dkl_nblk +
usr/src/cmd/format/menu_partition.c
263
} else if (pptr->pinfo_map[i].dkl_nblk == 0) {
usr/src/cmd/format/menu_partition.c
272
if (pptr->pinfo_map[i].dkl_cylno < b_cylno ||
usr/src/cmd/format/menu_partition.c
273
pptr->pinfo_map[i].dkl_cylno > (ncyl-1)) {
usr/src/cmd/format/menu_partition.c
276
pptr->pinfo_map[i].dkl_cylno);
usr/src/cmd/format/menu_partition.c
279
if (pptr->pinfo_map[i].dkl_nblk > ((ncyl -
usr/src/cmd/format/menu_partition.c
280
pptr->pinfo_map[i].dkl_cylno) * spc())) {
usr/src/cmd/format/menu_partition.c
285
pptr->pinfo_map[i].dkl_nblk);
usr/src/cmd/format/menu_partition.c
296
if (cur_parts != NULL && cur_parts != pptr &&
usr/src/cmd/format/menu_partition.c
302
cur_disk->disk_parts = cur_parts = pptr;
usr/src/cmd/format/partition.c
362
register struct partition_info *pptr;
usr/src/cmd/format/partition.c
380
for (pptr = parts; pptr != NULL; pptr = pptr->pinfo_next) {
usr/src/cmd/format/partition.c
382
if (pptr->pinfo_name != NULL && strcmp(pptr->pinfo_name,
usr/src/cmd/format/partition.c
387
cur_disk->disk_parts = cur_parts = pptr;
usr/src/cmd/format/partition.c
388
cur_parts->pinfo_name = pptr->pinfo_name;
usr/src/cmd/format/partition.c
413
register struct partition_info *pptr, *parts;
usr/src/cmd/format/partition.c
424
pptr = (struct partition_info *)zalloc(sizeof (struct partition_info));
usr/src/cmd/format/partition.c
427
cur_dtype->dtype_plist = pptr;
usr/src/cmd/format/partition.c
432
parts->pinfo_next = pptr;
usr/src/cmd/format/partition.c
433
pptr->pinfo_next = NULL;
usr/src/cmd/format/partition.c
448
pptr->etoc = map;
usr/src/cmd/format/partition.c
449
cur_disk->disk_parts = cur_parts = pptr;
usr/src/cmd/format/partition.c
455
pptr->pinfo_map[i] = cur_parts->pinfo_map[i];
usr/src/cmd/format/partition.c
457
pptr->vtoc = cur_parts->vtoc;
usr/src/cmd/format/partition.c
462
set_vtoc_defaults(pptr);
usr/src/cmd/format/partition.c
468
cur_disk->disk_parts = cur_parts = pptr;
usr/src/cmd/format/partition.c
480
struct partition_info *pptr;
usr/src/cmd/format/partition.c
495
for (pptr = cur_dtype->dtype_plist; pptr->pinfo_next != parts;
usr/src/cmd/format/partition.c
496
pptr = pptr->pinfo_next)
usr/src/cmd/format/partition.c
498
pptr->pinfo_next = parts->pinfo_next;
usr/src/cmd/genmsg/util.c
640
char *pptr;
usr/src/cmd/genmsg/util.c
644
msgid = (int)strtol(ptr, &pptr, 10);
usr/src/cmd/genmsg/util.c
645
ptr = pptr;
usr/src/cmd/oamuser/lib/vlogin.c
111
if (pptr) *pptr = t_pptr;
usr/src/cmd/oamuser/lib/vlogin.c
49
valid_login(char *login, struct passwd **pptr, int *warning)
usr/src/cmd/oamuser/lib/vproj.c
45
valid_project(char *project, struct project *pptr, void *buf, size_t len,
usr/src/cmd/oamuser/lib/vproj.c
55
return (valid_projid(projid, pptr, buf, len));
usr/src/cmd/oamuser/lib/vproj.c
63
return (valid_projname(project, pptr, buf, len, warning));
usr/src/cmd/oamuser/lib/vprojid.c
38
valid_projid(projid_t projid, struct project *pptr, void *buf, size_t len)
usr/src/cmd/oamuser/lib/vprojid.c
49
if (t_pptr = getprojbyid(projid, pptr, buf, len))
usr/src/cmd/oamuser/lib/vprojname.c
41
valid_projname(char *project, struct project *pptr, void *buf, size_t blen,
usr/src/cmd/oamuser/lib/vprojname.c
67
if ((t_pptr = getprojbyname(project, pptr, buf, blen)) != NULL)
usr/src/cmd/oamuser/lib/vuid.c
44
valid_uid( uid, pptr )
usr/src/cmd/oamuser/lib/vuid.c
46
struct passwd **pptr;
usr/src/cmd/oamuser/lib/vuid.c
52
if( pptr ) *pptr = getpwuid( uid );
usr/src/cmd/oamuser/lib/vuid.c
60
if( pptr ) *pptr = t_pptr;
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
115
char **pptr, /* pointer to pointer to position in current line */
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
129
ptr = *pptr;
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
138
*pptr = ptr;
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
149
*pptr = token_start + toklen;
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
40
static token_t get_token(char **pptr, int lineNo, actfun_t *fun);
usr/src/cmd/sendmail/db/lock/lock_deadlock.c
200
u_int8_t *pptr;
usr/src/cmd/sendmail/db/lock/lock_deadlock.c
363
pptr = SH_DBT_PTR(&lo->lockobj);
usr/src/cmd/sendmail/db/lock/lock_deadlock.c
365
memcpy(&id_array[id].pgno, pptr,
usr/src/cmd/sgs/rtld/common/setup.c
529
Phdr *pptr;
usr/src/cmd/sgs/rtld/common/setup.c
570
for (i = 0, pptr = phdr; i < ehdr->e_phnum; i++) {
usr/src/cmd/sgs/rtld/common/setup.c
571
if (pptr->p_type == PT_INTERP) {
usr/src/cmd/sgs/rtld/common/setup.c
572
i_offset = pptr->p_offset;
usr/src/cmd/sgs/rtld/common/setup.c
576
if ((pptr->p_type == PT_LOAD) &&
usr/src/cmd/sgs/rtld/common/setup.c
577
(pptr->p_filesz || pptr->p_memsz)) {
usr/src/cmd/sgs/rtld/common/setup.c
581
if (i_offset && pptr->p_filesz &&
usr/src/cmd/sgs/rtld/common/setup.c
582
(i_offset >= pptr->p_offset) &&
usr/src/cmd/sgs/rtld/common/setup.c
584
(pptr->p_memsz + pptr->p_offset))) {
usr/src/cmd/sgs/rtld/common/setup.c
586
pptr->p_vaddr + i_offset -
usr/src/cmd/sgs/rtld/common/setup.c
587
pptr->p_offset + base;
usr/src/cmd/sgs/rtld/common/setup.c
591
if (pptr->p_flags & PF_W)
usr/src/cmd/sgs/rtld/common/setup.c
600
off = pptr->p_vaddr + base;
usr/src/cmd/sgs/rtld/common/setup.c
608
mpp->mr_msize = pptr->p_memsz + off;
usr/src/cmd/sgs/rtld/common/setup.c
609
mpp->mr_fsize = pptr->p_filesz + off;
usr/src/cmd/sgs/rtld/common/setup.c
615
pptr = (Phdr *)((ulong_t)pptr + phsize);
usr/src/grub/grub-0.97/stage2/stage2.c
587
char *pptr = password;
usr/src/grub/grub-0.97/stage2/stage2.c
598
while (! isspace (*pptr) && *pptr)
usr/src/grub/grub-0.97/stage2/stage2.c
599
pptr++;
usr/src/grub/grub-0.97/stage2/stage2.c
602
*pptr++ = 0;
usr/src/grub/grub-0.97/stage2/stage2.c
607
while (isspace (*pptr))
usr/src/grub/grub-0.97/stage2/stage2.c
608
pptr++;
usr/src/grub/grub-0.97/stage2/stage2.c
613
if (*pptr != 0)
usr/src/grub/grub-0.97/stage2/stage2.c
615
while ((*(new_file++) = *(pptr++)) != 0)
usr/src/lib/libc/i386/crt/_rtld.c
168
for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++,
usr/src/lib/libc/i386/crt/_rtld.c
169
pptr = (Elf32_Phdr *)((caddr_t)pptr + ehdr->e_phentsize))
usr/src/lib/libc/i386/crt/_rtld.c
170
if (pptr->p_type == PT_LOAD) {
usr/src/lib/libc/i386/crt/_rtld.c
172
fph = pptr;
usr/src/lib/libc/i386/crt/_rtld.c
173
} else if (pptr->p_vaddr <= lph->p_vaddr)
usr/src/lib/libc/i386/crt/_rtld.c
175
lph = pptr;
usr/src/lib/libc/i386/crt/_rtld.c
221
for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++,
usr/src/lib/libc/i386/crt/_rtld.c
222
pptr = (Elf32_Phdr *)((caddr_t)pptr + ehdr->e_phentsize)) {
usr/src/lib/libc/i386/crt/_rtld.c
228
if ((pptr->p_type != PT_LOAD) || (pptr->p_memsz == 0))
usr/src/lib/libc/i386/crt/_rtld.c
236
foff = ALIGN(pptr->p_offset, page_size);
usr/src/lib/libc/i386/crt/_rtld.c
237
flen = pptr->p_memsz + (pptr->p_offset - foff);
usr/src/lib/libc/i386/crt/_rtld.c
242
addr = (caddr_t)ALIGN(faddr + pptr->p_vaddr, page_size);
usr/src/lib/libc/i386/crt/_rtld.c
248
if (pptr == phdr) {
usr/src/lib/libc/i386/crt/_rtld.c
267
if (pptr->p_flags & PF_R)
usr/src/lib/libc/i386/crt/_rtld.c
269
if (pptr->p_flags & PF_W)
usr/src/lib/libc/i386/crt/_rtld.c
271
if (pptr->p_flags & PF_X)
usr/src/lib/libc/i386/crt/_rtld.c
283
if (pptr->p_memsz > pptr->p_filesz) {
usr/src/lib/libc/i386/crt/_rtld.c
284
foff = (int)faddr + pptr->p_vaddr + pptr->p_filesz;
usr/src/lib/libc/i386/crt/_rtld.c
288
j = (faddr + pptr->p_vaddr + pptr->p_memsz) - zaddr;
usr/src/lib/libc/i386/crt/_rtld.c
85
Elf32_Phdr *pptr; /* working Phdr */
usr/src/lib/libc/port/gen/nss_dbdefs.c
1003
pptr = (nss_pnetgr_t *)((void *)bptr);
usr/src/lib/libc/port/gen/nss_dbdefs.c
1005
ing->arg[NSS_NETGR_MACHINE].argc = pptr->machine_argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
1006
ing->arg[NSS_NETGR_USER].argc = pptr->user_argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
1007
ing->arg[NSS_NETGR_DOMAIN].argc = pptr->domain_argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
1008
ing->groups.argc = pptr->groups_argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
400
nss_pnetgr_t *pptr;
usr/src/lib/libc/port/gen/nss_dbdefs.c
626
pptr = (nss_pnetgr_t *)buffer;
usr/src/lib/libc/port/gen/nss_dbdefs.c
658
pptr->machine_argc = ing->arg[NSS_NETGR_MACHINE].argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
659
pptr->user_argc = ing->arg[NSS_NETGR_USER].argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
660
pptr->domain_argc = ing->arg[NSS_NETGR_DOMAIN].argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
661
pptr->groups_argc = ing->groups.argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
666
if (pptr->machine_argc == 0) {
usr/src/lib/libc/port/gen/nss_dbdefs.c
667
pptr->machine_offv = (nssuint_t)0;
usr/src/lib/libc/port/gen/nss_dbdefs.c
669
pptr->machine_offv = offv;
usr/src/lib/libc/port/gen/nss_dbdefs.c
671
i = pptr->machine_argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
681
if (pptr->user_argc == 0) {
usr/src/lib/libc/port/gen/nss_dbdefs.c
682
pptr->user_offv = (nssuint_t)0;
usr/src/lib/libc/port/gen/nss_dbdefs.c
684
pptr->user_offv = offv;
usr/src/lib/libc/port/gen/nss_dbdefs.c
686
i = pptr->user_argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
696
if (pptr->domain_argc == 0) {
usr/src/lib/libc/port/gen/nss_dbdefs.c
697
pptr->domain_offv = (nssuint_t)0;
usr/src/lib/libc/port/gen/nss_dbdefs.c
699
pptr->domain_offv = offv;
usr/src/lib/libc/port/gen/nss_dbdefs.c
701
i = pptr->domain_argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
711
if (pptr->groups_argc == 0) {
usr/src/lib/libc/port/gen/nss_dbdefs.c
712
pptr->groups_offv = (nssuint_t)0;
usr/src/lib/libc/port/gen/nss_dbdefs.c
714
pptr->groups_offv = offv;
usr/src/lib/libc/port/gen/nss_dbdefs.c
716
i = pptr->groups_argc;
usr/src/lib/libc/port/gen/nss_dbdefs.c
880
nss_pnetgr_t *pptr;
usr/src/lib/libc/sparc/crt/_rtld.c
168
for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++,
usr/src/lib/libc/sparc/crt/_rtld.c
169
pptr = (Elf32_Phdr *)((caddr_t)pptr + ehdr->e_phentsize))
usr/src/lib/libc/sparc/crt/_rtld.c
170
if (pptr->p_type == PT_LOAD) {
usr/src/lib/libc/sparc/crt/_rtld.c
172
fph = pptr;
usr/src/lib/libc/sparc/crt/_rtld.c
173
} else if (pptr->p_vaddr <= lph->p_vaddr)
usr/src/lib/libc/sparc/crt/_rtld.c
175
lph = pptr;
usr/src/lib/libc/sparc/crt/_rtld.c
221
for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++,
usr/src/lib/libc/sparc/crt/_rtld.c
222
pptr = (Elf32_Phdr *)((caddr_t)pptr + ehdr->e_phentsize)) {
usr/src/lib/libc/sparc/crt/_rtld.c
228
if ((pptr->p_type != PT_LOAD) || (pptr->p_memsz == 0))
usr/src/lib/libc/sparc/crt/_rtld.c
236
foff = ALIGN(pptr->p_offset, page_size);
usr/src/lib/libc/sparc/crt/_rtld.c
237
flen = pptr->p_memsz + (pptr->p_offset - foff);
usr/src/lib/libc/sparc/crt/_rtld.c
242
addr = (caddr_t)ALIGN(faddr + pptr->p_vaddr, page_size);
usr/src/lib/libc/sparc/crt/_rtld.c
248
if (pptr == phdr) {
usr/src/lib/libc/sparc/crt/_rtld.c
267
if (pptr->p_flags & PF_R)
usr/src/lib/libc/sparc/crt/_rtld.c
269
if (pptr->p_flags & PF_W)
usr/src/lib/libc/sparc/crt/_rtld.c
271
if (pptr->p_flags & PF_X)
usr/src/lib/libc/sparc/crt/_rtld.c
283
if (pptr->p_memsz > pptr->p_filesz) {
usr/src/lib/libc/sparc/crt/_rtld.c
284
foff = (uintptr_t)faddr + pptr->p_vaddr +
usr/src/lib/libc/sparc/crt/_rtld.c
285
pptr->p_filesz;
usr/src/lib/libc/sparc/crt/_rtld.c
289
j = (faddr + pptr->p_vaddr + pptr->p_memsz) - zaddr;
usr/src/lib/libc/sparc/crt/_rtld.c
84
Elf32_Phdr *pptr; /* working Phdr */
usr/src/lib/libnisdb/db_dictionary.cc
596
transfer_aux(XDR* x, pptr tbl)
usr/src/lib/libnisdb/db_dictionary.cc
607
{ return (pickle_file::transfer((pptr) dp, &transfer_aux)); }
usr/src/lib/libnisdb/db_index.cc
311
transfer_aux(XDR* x, pptr ip)
usr/src/lib/libnisdb/db_index.cc
322
{ return (pickle_file::transfer((pptr) dp, &transfer_aux)); }
usr/src/lib/libnisdb/db_mindex.cc
1032
transfer_aux(XDR* x, pptr rp)
usr/src/lib/libnisdb/db_mindex.cc
1047
ret = pickle_file::transfer((pptr) dp, &transfer_aux);
usr/src/lib/libnisdb/db_pickle.cc
104
pickle_file::transfer(pptr p, bool_t (*f) (XDR*, pptr))
usr/src/lib/libnisdb/db_pickle.h
77
int transfer(pptr, bool_t (*f) (XDR*, pptr));
usr/src/lib/libnisdb/db_table.cc
1086
transfer_aux_table(XDR* x, pptr dp)
usr/src/lib/libnisdb/db_table.cc
1097
{ return (pickle_file::transfer((pptr) dp, &transfer_aux_table)); }
usr/src/lib/libnsl/nsl/_conn_util.c
157
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/_conn_util.c
225
pptr = (union T_primitives *)ctlbufp->buf;
usr/src/lib/libnsl/nsl/_conn_util.c
227
switch (pptr->type) {
usr/src/lib/libnsl/nsl/_conn_util.c
232
(pptr->conn_con.OPT_length != 0 &&
usr/src/lib/libnsl/nsl/_conn_util.c
233
(ctlbufp->len < (int)(pptr->conn_con.OPT_length +
usr/src/lib/libnsl/nsl/_conn_util.c
234
pptr->conn_con.OPT_offset)))) {
usr/src/lib/libnsl/nsl/_conn_util.c
246
if (TLEN_GT_NLEN(pptr->conn_con.RES_length,
usr/src/lib/libnsl/nsl/_conn_util.c
252
ctlbufp->buf + pptr->conn_con.RES_offset,
usr/src/lib/libnsl/nsl/_conn_util.c
253
(size_t)pptr->conn_con.RES_length);
usr/src/lib/libnsl/nsl/_conn_util.c
254
call->addr.len = pptr->conn_con.RES_length;
usr/src/lib/libnsl/nsl/_conn_util.c
257
if (TLEN_GT_NLEN(pptr->conn_con.OPT_length,
usr/src/lib/libnsl/nsl/_conn_util.c
263
ctlbufp->buf + pptr->conn_con.OPT_offset,
usr/src/lib/libnsl/nsl/_conn_util.c
264
(size_t)pptr->conn_con.OPT_length);
usr/src/lib/libnsl/nsl/_conn_util.c
265
call->opt.len = pptr->conn_con.OPT_length;
usr/src/lib/libnsl/nsl/_utility.c
339
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/_utility.c
406
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/_utility.c
408
switch (pptr->type) {
usr/src/lib/libnsl/nsl/_utility.c
411
(pptr->ok_ack.CORRECT_prim != type)) {
usr/src/lib/libnsl/nsl/_utility.c
428
(pptr->error_ack.ERROR_prim != type)) {
usr/src/lib/libnsl/nsl/_utility.c
438
if (pptr->error_ack.TLI_error == TOUTSTATE) {
usr/src/lib/libnsl/nsl/_utility.c
448
t_errno = pptr->error_ack.TLI_error;
usr/src/lib/libnsl/nsl/_utility.c
450
errno = pptr->error_ack.UNIX_error;
usr/src/lib/libnsl/nsl/t_listen.c
171
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_listen.c
173
switch (pptr->type) {
usr/src/lib/libnsl/nsl/t_listen.c
177
(ctlbuf.len < (int)(pptr->conn_ind.OPT_length
usr/src/lib/libnsl/nsl/t_listen.c
178
+ pptr->conn_ind.OPT_offset))) {
usr/src/lib/libnsl/nsl/t_listen.c
196
call->sequence = pptr->conn_ind.SEQ_number;
usr/src/lib/libnsl/nsl/t_listen.c
199
if (TLEN_GT_NLEN(pptr->conn_ind.SRC_length,
usr/src/lib/libnsl/nsl/t_listen.c
205
(size_t)pptr->conn_ind.SRC_offset,
usr/src/lib/libnsl/nsl/t_listen.c
206
(unsigned int)pptr->conn_ind.SRC_length);
usr/src/lib/libnsl/nsl/t_listen.c
207
call->addr.len = pptr->conn_ind.SRC_length;
usr/src/lib/libnsl/nsl/t_listen.c
210
if (TLEN_GT_NLEN(pptr->conn_ind.OPT_length,
usr/src/lib/libnsl/nsl/t_listen.c
216
pptr->conn_ind.OPT_offset,
usr/src/lib/libnsl/nsl/t_listen.c
217
(size_t)pptr->conn_ind.OPT_length);
usr/src/lib/libnsl/nsl/t_listen.c
218
call->opt.len = pptr->conn_ind.OPT_length;
usr/src/lib/libnsl/nsl/t_listen.c
50
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/t_look.c
150
pptr = (union T_primitives *)strpeek.ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_look.c
162
(pptr->type == T_DISCON_IND)) {
usr/src/lib/libnsl/nsl/t_look.c
163
type = pptr->type;
usr/src/lib/libnsl/nsl/t_look.c
170
type = pptr->type;
usr/src/lib/libnsl/nsl/t_look.c
84
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/t_rcv.c
205
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_rcv.c
207
switch (pptr->type) {
usr/src/lib/libnsl/nsl/t_rcv.c
231
if ((pptr->data_ind.MORE_flag) || retval)
usr/src/lib/libnsl/nsl/t_rcv.c
233
if ((pptr->data_ind.MORE_flag) && retval)
usr/src/lib/libnsl/nsl/t_rcv.c
56
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/t_rcvdis.c
182
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_rcvdis.c
185
(pptr->type != T_DISCON_IND)) {
usr/src/lib/libnsl/nsl/t_rcvdis.c
221
discon->reason = pptr->discon_ind.DISCON_reason;
usr/src/lib/libnsl/nsl/t_rcvdis.c
222
discon->sequence = pptr->discon_ind.SEQ_number;
usr/src/lib/libnsl/nsl/t_rcvdis.c
51
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/t_rcvrel.c
173
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_rcvrel.c
180
if (pptr->type != T_ORDREL_IND) {
usr/src/lib/libnsl/nsl/t_rcvrel.c
181
if (pptr->type == T_DISCON_IND) {
usr/src/lib/libnsl/nsl/t_rcvrel.c
55
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/t_rcvreldata.c
175
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_rcvreldata.c
182
if (pptr->type != T_ORDREL_IND) {
usr/src/lib/libnsl/nsl/t_rcvreldata.c
183
if (pptr->type == T_DISCON_IND) {
usr/src/lib/libnsl/nsl/t_rcvreldata.c
54
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/t_rcvudata.c
146
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_rcvudata.c
148
switch (pptr->type) {
usr/src/lib/libnsl/nsl/t_rcvudata.c
153
(pptr->unitdata_ind.OPT_length &&
usr/src/lib/libnsl/nsl/t_rcvudata.c
154
(ctlbuf.len < (int)(pptr->unitdata_ind.OPT_length
usr/src/lib/libnsl/nsl/t_rcvudata.c
155
+ pptr->unitdata_ind.OPT_offset)))) {
usr/src/lib/libnsl/nsl/t_rcvudata.c
164
if (TLEN_GT_NLEN(pptr->unitdata_ind.SRC_length,
usr/src/lib/libnsl/nsl/t_rcvudata.c
171
ctlbuf.buf + pptr->unitdata_ind.SRC_offset,
usr/src/lib/libnsl/nsl/t_rcvudata.c
172
(size_t)pptr->unitdata_ind.SRC_length);
usr/src/lib/libnsl/nsl/t_rcvudata.c
174
pptr->unitdata_ind.SRC_length;
usr/src/lib/libnsl/nsl/t_rcvudata.c
178
if (TLEN_GT_NLEN(pptr->unitdata_ind.OPT_length,
usr/src/lib/libnsl/nsl/t_rcvudata.c
185
pptr->unitdata_ind.OPT_offset,
usr/src/lib/libnsl/nsl/t_rcvudata.c
186
(size_t)pptr->unitdata_ind.OPT_length);
usr/src/lib/libnsl/nsl/t_rcvudata.c
188
pptr->unitdata_ind.OPT_length;
usr/src/lib/libnsl/nsl/t_rcvudata.c
60
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/t_rcvuderr.c
138
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_rcvuderr.c
141
(pptr->type != T_UDERROR_IND)) {
usr/src/lib/libnsl/nsl/t_rcvuderr.c
149
if (TLEN_GT_NLEN(pptr->uderror_ind.DEST_length,
usr/src/lib/libnsl/nsl/t_rcvuderr.c
155
pptr->uderror_ind.DEST_offset,
usr/src/lib/libnsl/nsl/t_rcvuderr.c
156
(size_t)pptr->uderror_ind.DEST_length);
usr/src/lib/libnsl/nsl/t_rcvuderr.c
158
(unsigned int)pptr->uderror_ind.DEST_length;
usr/src/lib/libnsl/nsl/t_rcvuderr.c
161
if (TLEN_GT_NLEN(pptr->uderror_ind.OPT_length,
usr/src/lib/libnsl/nsl/t_rcvuderr.c
167
pptr->uderror_ind.OPT_offset,
usr/src/lib/libnsl/nsl/t_rcvuderr.c
168
(size_t)pptr->uderror_ind.OPT_length);
usr/src/lib/libnsl/nsl/t_rcvuderr.c
170
(unsigned int)pptr->uderror_ind.OPT_length;
usr/src/lib/libnsl/nsl/t_rcvuderr.c
172
uderr->error = pptr->uderror_ind.ERROR_type;
usr/src/lib/libnsl/nsl/t_rcvuderr.c
51
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/t_rcvv.c
220
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_rcvv.c
222
switch (pptr->type) {
usr/src/lib/libnsl/nsl/t_rcvv.c
246
if ((pptr->data_ind.MORE_flag) || retval)
usr/src/lib/libnsl/nsl/t_rcvv.c
248
if ((pptr->data_ind.MORE_flag) && retval)
usr/src/lib/libnsl/nsl/t_rcvv.c
54
union T_primitives *pptr;
usr/src/lib/libnsl/nsl/t_rcvvudata.c
155
pptr = (union T_primitives *)ctlbuf.buf;
usr/src/lib/libnsl/nsl/t_rcvvudata.c
157
switch (pptr->type) {
usr/src/lib/libnsl/nsl/t_rcvvudata.c
162
(pptr->unitdata_ind.OPT_length &&
usr/src/lib/libnsl/nsl/t_rcvvudata.c
163
(ctlbuf.len < (int)(pptr->unitdata_ind.OPT_length
usr/src/lib/libnsl/nsl/t_rcvvudata.c
164
+ pptr->unitdata_ind.OPT_offset)))) {
usr/src/lib/libnsl/nsl/t_rcvvudata.c
171
if (TLEN_GT_NLEN(pptr->unitdata_ind.SRC_length,
usr/src/lib/libnsl/nsl/t_rcvvudata.c
177
ctlbuf.buf + pptr->unitdata_ind.SRC_offset,
usr/src/lib/libnsl/nsl/t_rcvvudata.c
178
(size_t)pptr->unitdata_ind.SRC_length);
usr/src/lib/libnsl/nsl/t_rcvvudata.c
180
pptr->unitdata_ind.SRC_length;
usr/src/lib/libnsl/nsl/t_rcvvudata.c
183
if (TLEN_GT_NLEN(pptr->unitdata_ind.OPT_length,
usr/src/lib/libnsl/nsl/t_rcvvudata.c
189
pptr->unitdata_ind.OPT_offset,
usr/src/lib/libnsl/nsl/t_rcvvudata.c
190
(size_t)pptr->unitdata_ind.OPT_length);
usr/src/lib/libnsl/nsl/t_rcvvudata.c
192
pptr->unitdata_ind.OPT_length;
usr/src/lib/libnsl/nsl/t_rcvvudata.c
62
union T_primitives *pptr;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
135
copy_protoent(struct protoent *pe, struct protoent *pptr, PROTO_R_COPY_ARGS) {
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
155
pptr->p_proto = pe->p_proto;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
162
pptr->p_name = cp;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
166
pptr->p_aliases = (char **)ALIGN(buf);
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
170
pptr->p_aliases[i] = cp;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
173
pptr->p_aliases[i] = NULL;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
179
copy_protoent(struct protoent *pe, struct protoent *pptr, PROTO_R_COPY_ARGS) {
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
184
pptr->p_proto = pe->p_proto;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
191
pptr->p_name = cp;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
199
pptr->p_aliases = pdptr->proto_aliases;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
203
pptr->p_aliases[i] = cp;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
210
pptr->p_aliases[i] = NULL;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
36
getprotobyname_r(const char *name, struct protoent *pptr, PROTO_R_ARGS) {
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
41
if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0)
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
44
*answerp = pptr;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
51
return (copy_protoent(pe, pptr, PROTO_R_COPY));
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
56
getprotobynumber_r(int proto, struct protoent *pptr, PROTO_R_ARGS) {
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
61
if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0)
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
64
*answerp = pptr;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
71
return (copy_protoent(pe, pptr, PROTO_R_COPY));
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
82
getprotoent_r(struct protoent *pptr, PROTO_R_ARGS) {
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
87
if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0)
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
90
*answerp = pptr;
usr/src/lib/libresolv2/common/irs/getprotoent_r.c
97
return (copy_protoent(pe, pptr, PROTO_R_COPY));
usr/src/lib/libresolv2/include/port_before.h
140
#define PROTO_R_OK pptr
usr/src/lib/libtecla/common/expand.c
1000
if(*pptr == ']') {
usr/src/lib/libtecla/common/expand.c
1001
*endp = pptr + 1;
usr/src/lib/libtecla/common/expand.c
1008
*endp = pptr;
usr/src/lib/libtecla/common/expand.c
1047
char *pptr; /* A pointer into the output path */
usr/src/lib/libtecla/common/expand.c
1139
pptr = ef->path->name;
usr/src/lib/libtecla/common/expand.c
1140
if(*pptr == '~' && path[0] != '\\') {
usr/src/lib/libtecla/common/expand.c
1153
pptr++;
usr/src/lib/libtecla/common/expand.c
1157
for(usrlen=0; usrlen<USR_LEN && *pptr &&
usr/src/lib/libtecla/common/expand.c
1158
strncmp(pptr, FS_DIR_SEP, FS_DIR_SEP_LEN); usrlen++)
usr/src/lib/libtecla/common/expand.c
1159
ef->usrnam[usrlen] = *pptr++;
usr/src/lib/libtecla/common/expand.c
1190
strncmp(pptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) {
usr/src/lib/libtecla/common/expand.c
350
const char *pptr; /* A pointer into path[] */
usr/src/lib/libtecla/common/expand.c
388
for(wild=0,pptr=path; !wild && *pptr; pptr++) {
usr/src/lib/libtecla/common/expand.c
389
switch(*pptr) {
usr/src/lib/libtecla/common/expand.c
391
if(pptr[1])
usr/src/lib/libtecla/common/expand.c
392
pptr++;
usr/src/lib/libtecla/common/expand.c
811
const char *pptr = pattern; /* The pointer used to scan the pattern */
usr/src/lib/libtecla/common/expand.c
816
while(pptr < nextp) {
usr/src/lib/libtecla/common/expand.c
820
switch(*pptr) {
usr/src/lib/libtecla/common/expand.c
828
pptr++;
usr/src/lib/libtecla/common/expand.c
838
if(pptr >= nextp)
usr/src/lib/libtecla/common/expand.c
846
if(ef_string_matches_pattern(fptr, pptr, 0, nextp))
usr/src/lib/libtecla/common/expand.c
861
pptr++;
usr/src/lib/libtecla/common/expand.c
875
if(xplicit || !ef_matches_range(*fptr++, ++pptr, &pptr))
usr/src/lib/libtecla/common/expand.c
883
pptr++;
usr/src/lib/libtecla/common/expand.c
890
if(*fptr == *pptr) {
usr/src/lib/libtecla/common/expand.c
892
pptr++;
usr/src/lib/libtecla/common/expand.c
929
const char *pptr = pattern; /* The pointer used to scan the pattern */
usr/src/lib/libtecla/common/expand.c
937
if(*pptr == '^') {
usr/src/lib/libtecla/common/expand.c
938
pptr++;
usr/src/lib/libtecla/common/expand.c
945
if(*pptr == '-') {
usr/src/lib/libtecla/common/expand.c
946
pptr++;
usr/src/lib/libtecla/common/expand.c
948
*endp = pptr;
usr/src/lib/libtecla/common/expand.c
954
while(*pptr == '-')
usr/src/lib/libtecla/common/expand.c
955
pptr++;
usr/src/lib/libtecla/common/expand.c
961
if(*pptr == ']') {
usr/src/lib/libtecla/common/expand.c
962
pptr++;
usr/src/lib/libtecla/common/expand.c
964
*endp = pptr;
usr/src/lib/libtecla/common/expand.c
974
while(!matched && *pptr && *pptr != ']') {
usr/src/lib/libtecla/common/expand.c
979
if(*pptr == '-') {
usr/src/lib/libtecla/common/expand.c
980
if(pptr[1] != ']') {
usr/src/lib/libtecla/common/expand.c
981
if(c >= pptr[-1] && c <= pptr[1])
usr/src/lib/libtecla/common/expand.c
983
pptr += 2;
usr/src/lib/libtecla/common/expand.c
988
} else if(*pptr++ == c) {
usr/src/lib/libtecla/common/expand.c
995
while(*pptr && *pptr != ']')
usr/src/lib/libtecla/common/expand.c
996
pptr++;
usr/src/lib/libtecla/common/getline.c
10005
const char *pptr; /* A pointer into prompt[] */
usr/src/lib/libtecla/common/getline.c
10018
for(pptr=gl->prompt; *pptr; pptr++) {
usr/src/lib/libtecla/common/getline.c
10022
if(*pptr == '%') {
usr/src/lib/libtecla/common/getline.c
10026
switch(pptr[1]) {
usr/src/lib/libtecla/common/getline.c
10028
pptr++;
usr/src/lib/libtecla/common/getline.c
10034
pptr++;
usr/src/lib/libtecla/common/getline.c
10038
slen += gl_displayed_char_width(gl, *pptr, slen);
usr/src/lib/libtecla/common/getline.c
9771
const char *pptr; /* A pointer into gl->prompt[] */
usr/src/lib/libtecla/common/getline.c
9798
for(pptr=gl->prompt; *pptr; pptr++) {
usr/src/lib/libtecla/common/getline.c
9802
if(*pptr == '%') {
usr/src/lib/libtecla/common/getline.c
9806
switch(pptr[1]) {
usr/src/lib/libtecla/common/getline.c
9812
switch(*++pptr) {
usr/src/lib/libtecla/common/getline.c
9855
pptr++;
usr/src/lib/libtecla/common/getline.c
9897
if(gl_print_char(gl, *pptr, pptr[1]))
usr/src/lib/libtecla/common/pcache.c
1637
const char *pptr = path; /* A pointer into path[] */
usr/src/lib/libtecla/common/pcache.c
1647
if(*pptr == '~') {
usr/src/lib/libtecla/common/pcache.c
1652
if(pca_read_username(pc, ++pptr, pathlen-1, literal, &pptr))
usr/src/lib/libtecla/common/pcache.c
1680
(pptr-path) + FS_DIR_SEP_LEN < pathlen &&
usr/src/lib/libtecla/common/pcache.c
1681
strncmp(pptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) {
usr/src/lib/libtecla/common/pcache.c
1682
pptr += FS_DIR_SEP_LEN;
usr/src/lib/libtecla/common/pcache.c
1687
*endp = pptr;
usr/src/lib/libtecla/common/pcache.c
510
const char *pptr; /* A pointer to the next unprocessed character in path[] */
usr/src/lib/libtecla/common/pcache.c
534
pptr = path;
usr/src/lib/libtecla/common/pcache.c
535
while(*pptr) {
usr/src/lib/libtecla/common/pcache.c
539
if(pca_extract_dir(pc, pptr, &pptr))
usr/src/lib/libtecla/common/pcache.c
583
const char *pptr; /* A pointer into path[] */
usr/src/lib/libtecla/common/pcache.c
591
if(pca_expand_tilde(pc, path, strlen(path), 0, &pptr))
usr/src/lib/libtecla/common/pcache.c
596
sptr = pptr;
usr/src/lib/libtecla/common/pcache.c
602
while(*pptr && (escaped || *pptr != ':'))
usr/src/lib/libtecla/common/pcache.c
603
escaped = !escaped && *pptr++ == '\\';
usr/src/lib/libtecla/common/pcache.c
607
if(_pn_append_to_path(pc->path, sptr, pptr - sptr, 1) == NULL) {
usr/src/lib/libtecla/common/pcache.c
632
if(*pptr==':')
usr/src/lib/libtecla/common/pcache.c
633
pptr++;
usr/src/lib/libtecla/common/pcache.c
637
*nextp = pptr;
usr/src/tools/smatch/src/pre-process.c
927
static int do_include_path(const char **pptr, struct token **list, struct token *token, const char *filename, int flen)
usr/src/tools/smatch/src/pre-process.c
931
while ((path = *pptr++) != NULL) {
usr/src/tools/smatch/src/pre-process.c
932
if (!try_include(path, filename, flen, list, pptr))
usr/src/uts/common/fs/nfs/nfs3_vnops.c
5982
page_t *pptr;
usr/src/uts/common/fs/nfs/nfs3_vnops.c
6133
pptr = plist;
usr/src/uts/common/fs/nfs/nfs3_vnops.c
6134
page_sub(&plist, pptr);
usr/src/uts/common/fs/nfs/nfs3_vnops.c
6135
page_unlock(pptr);
usr/src/uts/common/fs/nfs/nfs3_vnops.c
6148
pptr = plist;
usr/src/uts/common/fs/nfs/nfs3_vnops.c
6149
page_sub(&plist, pptr);
usr/src/uts/common/fs/nfs/nfs3_vnops.c
6150
pptr->p_fsdata = C_NOCOMMIT;
usr/src/uts/common/fs/nfs/nfs3_vnops.c
6151
(void) page_release(pptr, 1);
usr/src/uts/common/fs/nfs/nfs4_vnops.c
11534
page_t *pptr;
usr/src/uts/common/fs/nfs/nfs4_vnops.c
11687
pptr = plist;
usr/src/uts/common/fs/nfs/nfs4_vnops.c
11688
page_sub(&plist, pptr);
usr/src/uts/common/fs/nfs/nfs4_vnops.c
11689
page_unlock(pptr);
usr/src/uts/common/fs/nfs/nfs4_vnops.c
11702
pptr = plist;
usr/src/uts/common/fs/nfs/nfs4_vnops.c
11703
page_sub(&plist, pptr);
usr/src/uts/common/fs/nfs/nfs4_vnops.c
11704
pptr->p_fsdata = C_NOCOMMIT;
usr/src/uts/common/fs/nfs/nfs4_vnops.c
11705
page_unlock(pptr);
usr/src/uts/common/fs/smbclnt/netsmb/smb_trantcp.c
148
pptr = (union T_primitives *)tm->b_rptr;
usr/src/uts/common/fs/smbclnt/netsmb/smb_trantcp.c
149
switch (pptr->type) {
usr/src/uts/common/fs/smbclnt/netsmb/smb_trantcp.c
160
(int)pptr->discon_ind.DISCON_reason);
usr/src/uts/common/fs/smbclnt/netsmb/smb_trantcp.c
167
switch (pptr->ok_ack.CORRECT_prim) {
usr/src/uts/common/fs/smbclnt/netsmb/smb_trantcp.c
173
(int)pptr->ok_ack.CORRECT_prim);
usr/src/uts/common/fs/smbclnt/netsmb/smb_trantcp.c
177
NBDEBUG("M_PROTO/type=%d", (int)pptr->type);
usr/src/uts/common/fs/smbclnt/netsmb/smb_trantcp.c
91
union T_primitives *pptr;
usr/src/uts/common/inet/ip/sadb.c
6589
ipsec_find_listen_conn(uint16_t *pptr, ipsec_selector_t *sel, ip_stack_t *ipst)
usr/src/uts/common/inet/ip/sadb.c
6606
sel->ips_local_addr_v4, pptr[1]))
usr/src/uts/common/inet/ip/sadb.c
6621
*v6addrmatch, pptr[1]))
usr/src/uts/common/inet/ip/sadb.c
6643
uint16_t *pptr = (uint16_t *)&ports;
usr/src/uts/common/inet/ip/sadb.c
6661
pptr[0] = sel->ips_remote_port;
usr/src/uts/common/inet/ip/sadb.c
6662
pptr[1] = sel->ips_local_port;
usr/src/uts/common/inet/ip/sadb.c
6694
if ((connp = ipsec_find_listen_conn(pptr, sel, ipst)) == NULL)
usr/src/uts/common/inet/ip/sadb.c
6708
uint16_t *pptr = (uint16_t *)&ports;
usr/src/uts/common/inet/ip/sadb.c
6726
pptr[0] = sel->ips_remote_port;
usr/src/uts/common/inet/ip/sadb.c
6727
pptr[1] = sel->ips_local_port;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4122
fcip_pkt_t *pptr = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4130
pptr = fcipd_pkt->fcip_pkt_prev;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4131
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4132
pptr->fcip_pkt_next =
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4136
pptr = fcipd_pkt->fcip_pkt_next;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4137
pptr->fcip_pkt_prev =
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10014
if (fcp_do_ns_registry(pptr, s_id)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10015
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10016
pptr->port_state |= FCP_STATE_NS_REG_FAILED;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10017
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10019
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10020
pptr->port_state &= ~(FCP_STATE_NS_REG_FAILED);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10021
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10033
bcopy(boot_wwn, pptr->port_boot_wwn, FC_WWN_SIZE);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10043
switch (FC_PORT_STATE_MASK(pptr->port_phys_state)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10055
pptr->port_state |= FCP_STATE_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10059
if (pptr->port_topology == FC_TOP_UNKNOWN) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10060
(void) fcp_linkreset(pptr, NULL, KM_NOSLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10068
ASSERT(pptr->port_topology != FC_TOP_UNKNOWN);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10079
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10100
if ((res = fc_ulp_getportmap(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10114
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10133
fcp_statec_callback(ulph, pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10134
pptr->port_phys_state, pptr->port_topology, tmp_list,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10135
max_cnt, pptr->port_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10143
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10145
instance, pptr->port_phys_state);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10147
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10148
pptr->port_phys_state = FCP_STATE_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10149
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10161
pptr->port_attach_time = ddi_get_lbolt64();
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10168
fcp_log(CE_WARN, pptr->port_dip, "!failed to attach to port");
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10172
(void) fcp_soft_state_unlink(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10176
if (pptr->port_ndi_event_hdl) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10178
(void) ndi_event_unbind_set(pptr->port_ndi_event_hdl,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10179
&pptr->port_ndi_events, NDI_SLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10181
(void) ndi_event_free_hdl(pptr->port_ndi_event_hdl);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10184
if (pptr->port_ndi_event_defs) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10185
(void) kmem_free(pptr->port_ndi_event_defs,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10192
if (pptr->port_mpxio) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10193
(void) mdi_phci_unregister(pptr->port_dip, 0);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10194
pptr->port_mpxio--;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10199
(void) scsi_hba_detach(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10201
if (pptr->port_tran != NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10202
scsi_hba_tran_free(pptr->port_tran);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10228
mutex_destroy(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10229
mutex_destroy(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10244
fcp_handle_port_detach(struct fcp_port *pptr, int flag, int instance)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10248
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10255
if (pptr->port_state & (FCP_STATE_POWER_DOWN |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10257
pptr->port_state |= flag;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10258
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10263
if (pptr->port_state & FCP_STATE_IN_MDI) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10264
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10268
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10272
pptr->port_state |= flag;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10280
while (pptr->port_tmp_cnt || pptr->port_ipkt_cnt ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10281
(pptr->port_state & FCP_STATE_IN_WATCHDOG)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10289
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10291
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10298
if (pptr->port_tmp_cnt || pptr->port_ipkt_cnt ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10299
(pptr->port_state & FCP_STATE_IN_WATCHDOG)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10300
pptr->port_state &= ~flag;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10301
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10306
pptr = fcp_soft_state_unlink(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10307
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10310
pptr->port_link_cnt++;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10311
pptr->port_state |= FCP_STATE_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10312
pptr->port_state &= ~(FCP_STATE_ONLINING | FCP_STATE_ONLINE);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10314
fcp_update_state(pptr, (FCP_LUN_BUSY | FCP_LUN_MARK),
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10316
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10330
fcp_cleanup_port(pptr, instance);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10338
fcp_cleanup_port(struct fcp_port *pptr, int instance)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10340
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10343
if (pptr->port_ndi_event_hdl) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10344
(void) ndi_event_unbind_set(pptr->port_ndi_event_hdl,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10345
&pptr->port_ndi_events, NDI_SLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10346
(void) ndi_event_free_hdl(pptr->port_ndi_event_hdl);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10349
if (pptr->port_ndi_event_defs) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10350
(void) kmem_free(pptr->port_ndi_event_defs,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10355
fcp_free_targets(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10360
if (pptr->port_mpxio) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10361
(void) mdi_phci_unregister(pptr->port_dip, 0);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10362
pptr->port_mpxio--;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10366
(void) scsi_hba_detach(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10367
if (pptr->port_tran != NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10368
scsi_hba_tran_free(pptr->port_tran);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10373
if (pptr->fcp_ksp != NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10374
kstat_delete(pptr->fcp_ksp);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10379
mutex_destroy(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10380
mutex_destroy(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10476
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10479
pptr = (struct fcp_port *)tran->tran_hba_private;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10491
sizeof (struct fcp_pkt) + pptr->port_dmacookie_sz);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10499
if (pptr->port_fcp_dma == FC_NO_DVMA_SPACE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10517
if (fcp_alloc_cmd_resp(pptr, fpkt, kmflags) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10544
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10546
pptr = (struct fcp_port *)(tran->tran_hba_private);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10549
if (pptr->port_fcp_dma != FC_NO_DVMA_SPACE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10554
fcp_free_cmd_resp(pptr, cmd->cmd_fp_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10579
fcp_alloc_cmd_resp(struct fcp_port *pptr, fc_packet_t *fpkt, int flags)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10598
if (ddi_dma_alloc_handle(pptr->port_dip, &pptr->port_cmd_dma_attr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10605
&pptr->port_dma_acc_attr, DDI_DMA_CONSISTENT, cb, NULL,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10631
pptr->port_cmd_dma_attr.dma_attr_sgllen) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10669
if (ddi_dma_alloc_handle(pptr->port_dip, &pptr->port_resp_dma_attr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10678
&pptr->port_dma_acc_attr, DDI_DMA_CONSISTENT, cb, NULL,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10719
pptr->port_resp_dma_attr.dma_attr_sgllen) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10777
fcp_free_cmd_resp(struct fcp_port *pptr, fc_packet_t *fpkt)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10822
struct fcp_port *pptr = (struct fcp_port *)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10825
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10827
FCP_DTRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10838
FCP_DTRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10856
FCP_DTRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10866
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10867
if ((plun = fcp_lookup_lun(pptr, bytes, lun_num)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10868
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10869
FCP_DTRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10893
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10908
struct fcp_port *pptr = (struct fcp_port *)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10912
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10914
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10922
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10947
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10957
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10958
if ((plun = fcp_lookup_lun(pptr, bytes, lun_num)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10959
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10960
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10984
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11000
struct fcp_port *pptr = (struct fcp_port *)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11004
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11069
struct fcp_port *pptr = ADDR2FCP(ap);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11078
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11086
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11097
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11129
if (((plun->lun_state & FCP_LUN_BUSY) && (!(pptr->port_state &
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11131
(pptr->port_state & (FCP_STATE_ONLINING | FCP_STATE_IN_CB_DEVC)) ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11145
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11153
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11159
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11160
pptr->port_npkts++;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11161
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11165
fcp_queue_pkt(pptr, cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11171
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11181
fcp_reconfig_wait(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11188
fcp_prepare_pkt(pptr, cmd, plun);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11202
return (fcp_dopoll(pptr, cmd));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11206
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11207
pptr->port_npkts++;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11208
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11211
rval = fcp_transport(pptr->port_fp_handle, cmd->cmd_fp_pkt, 0);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11213
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11222
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11223
pptr->port_npkts--;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11224
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11244
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11252
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11259
fcp_queue_pkt(pptr, cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11276
struct fcp_port *pptr = ADDR2FCP(ap);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11285
fcp_abort_all(pptr, ptgt, plun, tgt_cnt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11300
struct fcp_port *pptr = ADDR2FCP(ap);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11305
if (fcp_linkreset(pptr, ap, KM_NOSLEEP) == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11380
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11387
pptr = ADDR2FCP(&pkt->pkt_address);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11424
if (pptr->port_state & FCP_STATE_OFFLINE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11431
if (fc_ulp_init_packet(pptr->port_fp_handle, fpkt, kf)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11490
struct fcp_port *pptr = ADDR2FCP(&pkt->pkt_address);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11515
(void) fc_ulp_uninit_packet(pptr->port_fp_handle, cmd->cmd_fp_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11527
struct fcp_port *pptr = ADDR2FCP(ap);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11530
&pptr->port_mutex, &pptr->port_reset_notify_listf));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11538
struct fcp_port *pptr = fcp_dip2port(dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11540
if (pptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11544
return (ndi_event_retrieve_cookie(pptr->port_ndi_event_hdl, rdip, name,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11554
struct fcp_port *pptr = fcp_dip2port(dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11556
if (pptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11560
return (ndi_event_add_callback(pptr->port_ndi_event_hdl, rdip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11569
struct fcp_port *pptr = fcp_dip2port(dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11571
if (pptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11574
return (ndi_event_remove_callback(pptr->port_ndi_event_hdl, cb_id));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11585
struct fcp_port *pptr = fcp_dip2port(dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11587
if (pptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11591
return (ndi_event_run_callbacks(pptr->port_ndi_event_hdl, rdip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11623
struct fcp_port *pptr = ADDR2FCP(ap);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11683
fcp_prepare_pkt(pptr, cmd, plun);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11691
(void) fc_ulp_busy_port(pptr->port_fp_handle);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11692
bval = fcp_dopoll(pptr, cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11693
fc_ulp_idle_port(pptr->port_fp_handle);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11704
if (fcp_validate_fcp_response(rsp, pptr) ==
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11706
if (pptr->port_fcp_dma != FC_NO_DVMA_SPACE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11725
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11732
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11741
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11755
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11776
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11787
p->next = pptr->port_reset_list;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11788
pptr->port_reset_list = p;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11790
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11794
scsi_hba_reset_notify_callback(&pptr->port_mutex,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11795
&pptr->port_reset_notify_listf);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11797
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11812
struct fcp_port *pptr = ADDR2FCP(ap);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11819
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11858
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11865
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11877
rval = (int)pptr->port_data_dma_attr.dma_attr_maxxfer;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11894
rval = pptr->port_id;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11908
if (FC_TOP_EXTERNAL(pptr->port_topology) ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11922
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11929
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11965
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11972
pptr = ddi_get_soft_state(fcp_softstate,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11974
if (pptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12005
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12006
if ((plun = fcp_lookup_lun(pptr, barray, lun_num)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12007
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12011
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12016
if (!FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12048
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12102
fcp_linkreset(struct fcp_port *pptr, struct scsi_address *ap, int sleep)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12109
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12111
if (pptr->port_state & (FCP_STATE_SUSPENDED |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12113
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12114
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12118
ddi_get_instance(pptr->port_dip));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12122
if (pptr->port_state & (FCP_STATE_OFFLINE | FCP_STATE_ONLINING)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12123
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12127
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12133
if (FC_TOP_EXTERNAL(pptr->port_topology) && (ap != NULL)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12140
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12142
return (fc_ulp_linkreset(pptr->port_fp_handle, &wwn, sleep));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12159
struct fcp_port *pptr; /* port state ptr */
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12168
if ((pptr = ddi_get_soft_state(fcp_softstate, instance)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12173
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12176
ASSERT((pptr->port_state & FCP_STATE_POWER_DOWN) == 0);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12177
pptr->port_state &= ~FCP_STATE_SUSPENDED;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12185
if (pptr->port_state & FCP_STATE_SUSPENDED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12186
pptr->port_state &= ~FCP_STATE_POWER_DOWN;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12187
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12190
pptr->port_state &= ~FCP_STATE_POWER_DOWN;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12192
pptr->port_id = s_id;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12193
pptr->port_state = FCP_STATE_INIT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12194
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12200
(void) fcp_cp_pinfo(pptr, pinfo);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12214
switch (FC_PORT_STATE_MASK(pptr->port_phys_state)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12225
if (pptr->port_topology == FC_TOP_UNKNOWN) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12226
(void) fcp_linkreset(pptr, NULL, KM_NOSLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12231
if (FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12233
tmp_list = fcp_construct_map(pptr, &alloc_cnt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12242
ASSERT(pptr->port_topology != FC_TOP_UNKNOWN);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12249
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12256
if ((res = fc_ulp_getportmap(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12263
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12268
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12281
fcp_statec_callback(ulph, pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12282
pptr->port_phys_state, pptr->port_topology, tmp_list,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12283
max_cnt, pptr->port_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12289
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12291
instance, pptr->port_phys_state);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12293
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12294
pptr->port_phys_state = FCP_STATE_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12295
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12310
fcp_cp_pinfo(struct fcp_port *pptr, fc_ulp_port_info_t *pinfo)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12312
pptr->port_fp_modlinkage = *pinfo->port_linkage;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12313
pptr->port_dip = pinfo->port_dip;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12314
pptr->port_fp_handle = pinfo->port_handle;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12319
pptr->port_data_dma_attr = *pinfo->port_data_dma_attr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12320
pptr->port_cmd_dma_attr = *pinfo->port_cmd_dma_attr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12321
pptr->port_resp_dma_attr = *pinfo->port_resp_dma_attr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12322
pptr->port_dma_acc_attr = *pinfo->port_acc_attr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12324
pptr->port_priv_pkt_len = pinfo->port_fca_pkt_size;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12325
pptr->port_max_exch = pinfo->port_fca_max_exch;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12326
pptr->port_phys_state = pinfo->port_state;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12327
pptr->port_topology = pinfo->port_flags;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12328
pptr->port_reset_action = pinfo->port_reset_action;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12329
pptr->port_cmds_dma_flags = pinfo->port_dma_behavior;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12330
pptr->port_fcp_dma = pinfo->port_fcp_dma;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12331
bcopy(&pinfo->port_nwwn, &pptr->port_nwwn, sizeof (la_wwn_t));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12332
bcopy(&pinfo->port_pwwn, &pptr->port_pwwn, sizeof (la_wwn_t));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12335
if (pptr->port_cmd_dma_attr.dma_attr_flags & DDI_DMA_FLAGERR)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12336
pptr->port_cmd_dma_attr.dma_attr_flags &= ~DDI_DMA_FLAGERR;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12337
if (pptr->port_data_dma_attr.dma_attr_flags & DDI_DMA_FLAGERR)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12338
pptr->port_data_dma_attr.dma_attr_flags &= ~DDI_DMA_FLAGERR;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12339
if (pptr->port_resp_dma_attr.dma_attr_flags & DDI_DMA_FLAGERR)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12340
pptr->port_resp_dma_attr.dma_attr_flags &= ~DDI_DMA_FLAGERR;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12377
struct fcp_port *pptr = elem->port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12385
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12389
pptr->port_state & (FCP_STATE_SUSPENDED |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12392
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12397
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12412
struct fcp_port *pptr = plun->lun_tgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12414
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12419
if (pptr->port_mpxio == 0 || plun->lun_mpxio == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12508
struct fcp_port *pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12509
dev_info_t *pdip = pptr->port_dip;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12519
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12569
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12572
(void) fcp_pass_to_hp(pptr, plun, CIP(old_dip), FCP_OFFLINE,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12578
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12583
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12589
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12595
if (ndi_devi_alloc(pptr->port_dip, nname,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12646
if (!FC_TOP_EXTERNAL(pptr->port_topology) && ptgt->tgt_hard_addr != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12706
struct fcp_port *pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12707
dev_info_t *pdip = pptr->port_dip;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12717
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12759
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12762
(void) fcp_pass_to_hp(pptr, plun, CIP(old_pip),
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12768
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12773
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12779
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12814
pptr->port_state |= FCP_STATE_IN_MDI;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12816
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12819
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12821
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12823
pptr->port_state &= ~FCP_STATE_IN_MDI;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12827
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12829
pptr->port_state &= ~FCP_STATE_IN_MDI;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12864
if (!FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12896
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12898
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12917
struct fcp_port *pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12991
if (!FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13093
struct fcp_port *pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13095
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13111
struct fcp_port *pptr = plun->lun_tgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13115
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13119
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13131
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13133
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13147
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13165
fcp_log(CE_NOTE, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13171
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13181
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13183
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13193
mdi_devi_exit_phci(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13197
mdi_devi_enter_phci(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13218
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13225
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13234
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13241
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13247
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13252
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13258
fcp_log(CE_NOTE, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13271
pptr->port_ndi_event_hdl, cdip, FCAL_INSERT_EVENT,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13273
(void) ndi_event_run_callbacks(pptr->port_ndi_event_hdl,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13277
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13289
struct fcp_port *pptr = plun->lun_tgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13294
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13297
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13315
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13318
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13326
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13333
mdi_devi_exit_phci(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13337
mdi_devi_enter_phci(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13387
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13394
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13398
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13484
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13500
for (pptr = fcp_port_head; pptr != NULL; pptr = pptr->port_next) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13502
pptr->port_state |= FCP_STATE_IN_WATCHDOG;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13505
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13506
if (pptr->port_ipkt_list == NULL &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13507
(pptr->port_state & (FCP_STATE_SUSPENDED |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13509
pptr->port_state &= ~FCP_STATE_IN_WATCHDOG;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13510
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13518
if (pptr->port_offline_tgts) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13519
fcp_scan_offline_tgts(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13525
if (pptr->port_offline_luns) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13526
fcp_scan_offline_luns(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13532
if (pptr->port_reset_list) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13533
fcp_check_reset_delay(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13536
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13542
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13543
tail = pptr->port_pkt_tail;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13545
for (pcmd = NULL, cmd = pptr->port_pkt_head;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13569
if (cmd == pptr->port_pkt_head) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13571
pptr->port_pkt_head = cmd->cmd_next;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13577
if (cmd == pptr->port_pkt_tail) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13579
pptr->port_pkt_tail = pcmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13595
save_head = pptr->port_pkt_head;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13596
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13607
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13617
fcp_retransport_cmd(pptr, cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13619
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13620
if (save_head && save_head != pptr->port_pkt_head) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13641
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13643
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13644
for (icmd = pptr->port_ipkt_list; icmd != NULL; icmd = nicmd) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13655
if (icmd == pptr->port_ipkt_list) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13656
pptr->port_ipkt_list = icmd->ipkt_next;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13657
if (pptr->port_ipkt_list) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13658
pptr->port_ipkt_list->ipkt_prev =
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13670
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13677
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13690
fc_ulp_get_rscn_count(pptr->
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13694
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13696
if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13698
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13703
pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13707
&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13711
pptr, ptgt, icmd, rval,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13714
&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13721
pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13725
&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13729
pptr, ptgt, icmd, rval,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13732
&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13739
pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13743
&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13747
pptr, ptgt, icmd, rval,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13750
&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13757
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13763
(void) fcp_call_finish_init(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13766
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13767
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13770
pptr->port_state &= ~FCP_STATE_IN_WATCHDOG;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13771
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13793
fcp_check_reset_delay(struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13803
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13805
next = pptr->port_reset_list;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13833
if (cur == pptr->port_reset_list) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13834
pptr->port_reset_list = next;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13838
which = pptr->port_reset_list;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13862
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13863
fcp_abort_all(pptr, ptgt, plun, tgt_cnt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13864
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13871
fcp_abort_all(struct fcp_port *pptr, struct fcp_tgt *ttgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13880
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13881
for (cmd = pptr->port_pkt_head; cmd != NULL; cmd = ncmd) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13893
ASSERT(pptr->port_pkt_head != cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13896
ASSERT(cmd == pptr->port_pkt_head);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13897
pptr->port_pkt_head = ncmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13899
if (pptr->port_pkt_tail == cmd) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13901
pptr->port_pkt_tail = pcmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13916
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13924
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13926
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13933
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13942
if (pptr->port_reset_action == FC_RESET_RETURN_ALL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13983
rval = fc_ulp_abort(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14008
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14026
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14027
if (pptr->port_pkt_head) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14028
ASSERT(pptr->port_pkt_tail
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14030
pptr->port_pkt_tail->cmd_next
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14032
pptr->port_pkt_tail = cmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14034
ASSERT(pptr->port_pkt_tail
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14036
pptr->port_pkt_head =
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14037
pptr->port_pkt_tail
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14041
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14055
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14057
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14060
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14072
fcp_soft_state_unlink(struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14081
if (hptr == pptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14106
fcp_lookup_lun(struct fcp_port *pptr, uchar_t *wwn, uint16_t lun)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14112
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14115
for (ptgt = pptr->port_tgt_hash_table[hash]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14150
fcp_prepare_pkt(struct fcp_port *pptr, struct fcp_pkt *cmd,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14175
pptr->port_data_dma_attr.dma_attr_sgllen);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14203
if (pptr->port_fcp_dma != FC_NO_DVMA_SPACE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14228
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14229
if (pptr->port_state & FCP_STATE_SUSPENDED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14232
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14235
fpkt->pkt_cmd_fhdr.s_id = pptr->port_id;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14258
fcp_dopoll(struct fcp_port *pptr, struct fcp_pkt *cmd)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14263
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14264
pptr->port_npkts++;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14265
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14278
rval = fc_ulp_transport(pptr->port_fp_handle, cmd->cmd_fp_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14281
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14282
pptr->port_npkts--;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14283
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14334
fcp_get_lun_from_cip(struct fcp_port *pptr, child_info_t *cip)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14341
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14344
for (ptgt = pptr->port_tgt_hash_table[i];
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14375
fcp_pass_to_hp_and_wait(struct fcp_port *pptr, struct fcp_lun *plun,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14382
if ((elem = fcp_pass_to_hp(pptr, plun, cip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14385
fcp_log(CE_CONT, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1441
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14421
fcp_pass_to_hp(struct fcp_port *pptr, struct fcp_lun *plun,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14427
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14441
elem->port = pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14454
pdip = pptr->port_dip;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14477
fcp_retransport_cmd(struct fcp_port *pptr, struct fcp_pkt *cmd)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14493
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14496
(!(pptr->port_state & FCP_STATE_ONLINING))) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14518
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14524
fcp_prepare_pkt(pptr, cmd, plun);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14534
fc_ulp_get_rscn_count(pptr->
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14538
rval = fcp_transport(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14547
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14550
fcp_queue_pkt(pptr, cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14583
fcp_queue_pkt(struct fcp_port *pptr, struct fcp_pkt *cmd)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14587
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14608
if (pptr->port_pkt_head) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14609
ASSERT(pptr->port_pkt_tail != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14611
pptr->port_pkt_tail->cmd_next = cmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14612
pptr->port_pkt_tail = cmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14614
ASSERT(pptr->port_pkt_tail == NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14616
pptr->port_pkt_head = pptr->port_pkt_tail = cmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14619
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14640
fcp_update_targets(struct fcp_port *pptr, fc_portmap_t *dev_list,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14646
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14650
ptgt = fcp_lookup_target(pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14667
fcp_call_finish_init(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14672
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14673
rval = fcp_call_finish_init_held(pptr, ptgt, lcount, tcount, cause);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14674
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14681
fcp_call_finish_init_held(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14695
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14699
pptr->port_link_cnt, lcount, ptgt->tgt_change_cnt, tcount,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14700
pptr->port_tmp_cnt, ptgt->tgt_tmp_cnt, cause,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14723
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14745
(void) fcp_finish_tgt(pptr, ptgt, lcount, tcount, cause);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14748
if (finish_init && lcount == pptr->port_link_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14749
ASSERT(pptr->port_tmp_cnt > 0);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14750
if (--pptr->port_tmp_cnt == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14751
fcp_finish_init(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14753
} else if (lcount != pptr->port_link_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14754
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14769
struct fcp_port *pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14782
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14784
pptr->port_instance);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14800
fcp_statec_callback(NULL, pptr->port_fp_handle, FC_STATE_DEVICE_CHANGE,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14801
pptr->port_topology, devlist, dev_cnt, pptr->port_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14816
fcp_free_targets(struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14821
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14823
ptgt = pptr->port_tgt_hash_table[i];
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14831
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1485
pptr = fcp_port_head;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1486
while (pptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1487
if (pptr->port_instance == (uint32_t)fioctl.fp_minor) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1490
pptr = pptr->port_next;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14910
fcp_create_on_demand(struct fcp_port *pptr, uchar_t *pwwn)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14936
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14937
pptr->port_deadline = fcp_watchdog_time + FCP_ICMD_DEADLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14938
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1494
if (pptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14944
pd = fc_ulp_get_remote_port(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14956
ret = fc_ulp_pwwn_to_portmap(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14969
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1497
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14975
ptgt = fcp_lookup_target(pptr, pwwn);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14977
lcount = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14978
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14980
ptgt = fcp_alloc_tgt(pptr, devlist, lcount);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14982
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14987
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14999
if (FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15007
fcp_update_targets(pptr, devlist, 1,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15010
lcount = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15013
if (fcp_handle_mapflags(pptr, ptgt, devlist, lcount,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15015
if (FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1502
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15022
if (pptr->port_link_cnt != lcount ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15026
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15028
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15033
ptgt, lcount, pptr->port_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15051
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15057
ntries, ptgt, lcount, pptr->port_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15062
while (ntries-- != 0 && pptr->port_link_cnt == lcount &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15065
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15069
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15074
if (pptr->port_link_cnt != lcount || ptgt->tgt_change_cnt != tcount) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15083
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15089
ntries, ptgt, lcount, pptr->port_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1509
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15094
if (FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15099
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15102
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15108
ntries, ptgt, lcount, pptr->port_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15119
lcount = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1512
link_cnt = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15131
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15144
rval = fcp_pass_to_hp_and_wait(pptr, plun, cip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15149
pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1516
if (bcmp(wwn_ptr->raw_wwn, pptr->port_pwwn.raw_wwn,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15170
if (FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1519
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15222
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15230
pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15288
if (fcp_validate_fcp_response(rsp, pptr) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15294
fcp_log(CE_WARN, pptr->port_dip, buf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15342
fcp_log(CE_WARN, pptr->port_dip, buf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15349
fcp_log(CE_WARN, pptr->port_dip, buf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15363
fcp_log(CE_WARN, pptr->port_dip, buf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15366
fcp_log(CE_WARN, pptr->port_dip, buf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15376
fcp_handle_ipkt_errors(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15403
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15415
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15421
fcp_queue_ipkt(pptr, icmd->ipkt_fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15440
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15446
fcp_queue_ipkt(pptr, icmd->ipkt_fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15453
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15455
if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15457
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15460
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15464
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15469
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15503
fcp_construct_map(struct fcp_port *pptr, uint32_t *dev_cnt)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15510
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15512
for (ptgt = pptr->port_tgt_hash_table[i]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15523
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15524
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15526
pptr->port_instance);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15531
for (ptgt = pptr->port_tgt_hash_table[i]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15537
pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15565
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15573
fcp_update_mpxio_path_verifybusy(struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15580
for (ptgt = pptr->port_tgt_hash_table[i]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15587
if (!fcp_pass_to_hp(pptr, plun,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15590
pptr->port_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15593
pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1562
if (pptr->port_state & (FCP_STATE_INIT | FCP_STATE_OFFLINE)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1564
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1568
for (i = 0; (i < fioctl.listlen) && (link_cnt == pptr->port_link_cnt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15713
struct fcp_port *pptr = fcp_dip2port(parent);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15716
(ddi_get_lbolt64() - pptr->port_attach_time);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15754
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15755
while ((reset_delay > 0) && pptr->port_tmp_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15756
(void) cv_timedwait(&pptr->port_config_cv,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15757
&pptr->port_mutex,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15761
(ddi_get_lbolt64() - pptr->port_attach_time);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15763
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1577
if ((ptgt = fcp_lookup_target(pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1579
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1580
if (fc_ulp_get_remote_port(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1583
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15860
fcp_reconfig_wait(struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15869
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15870
if (pptr->port_tmp_cnt == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15871
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15874
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15884
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15887
pptr->port_tmp_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15889
(void) cv_timedwait(&pptr->port_config_cv, &pptr->port_mutex,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1589
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15893
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16121
fcp_port_t *pptr = ADDR2FCP(ap);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16129
pkt = scsi_hba_pkt_alloc(pptr->port_dip, ap, cmdlen, statuslen,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16130
tgtlen, sizeof (fcp_pkt_t) + pptr->port_priv_pkt_len,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16177
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16218
fcp_port_t *pptr = ADDR2FCP(ap);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16223
(void) fc_ulp_uninit_packet(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16243
fcp_port_t *pptr = ADDR2FCP(ap);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16252
(void) fc_ulp_init_packet(pptr->port_fp_handle, cmd->cmd_fp_pkt, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16284
fpkt->pkt_cmd_fhdr.s_id = pptr->port_id;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16315
return (fcp_dopoll(pptr, cmd));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16319
rval = fcp_transport(pptr->port_fp_handle, fpkt, 0);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1637
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1658
fcp_create_on_demand(pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1670
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1681
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1690
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1697
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1747
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1793
pptr = fcp_port_head;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1794
while (pptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1795
if (pptr->port_instance == (uint32_t)fioctl.fp_minor) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1798
pptr = pptr->port_next;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1802
if (pptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1829
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1832
for (ptgt = pptr->port_tgt_hash_table[i]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1908
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2294
struct fcp_port *pptr = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2366
pptr = fcp_port_head;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2367
while (pptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2368
if (pptr->port_instance ==
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2372
pptr = pptr->port_next;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2376
if (pptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2384
ret = fc_ulp_busy_port(pptr->port_fp_handle);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2397
fcp_reconfig_wait(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2401
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2406
nodma = (pptr->port_fcp_dma == FC_NO_DVMA_SPACE)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2416
if (pptr->port_state & (FCP_STATE_INIT |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2419
} else if (pptr->port_state & FCP_STATE_ONLINING) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2429
ptgt = fcp_lookup_target(pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2440
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2441
ptgt = fcp_port_create_tgt(pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2445
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2486
lcount = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2495
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2512
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2529
} else if ((plun = fcp_lookup_lun(pptr, (uchar_t *)wwn_ptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2541
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2555
icmd = fcp_icmd_alloc(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2622
hp->s_id = pptr->port_id;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2658
fc_ulp_transport(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2686
if (fcp_validate_fcp_response(rsp, pptr) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2687
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2836
fc_ulp_idle_port(pptr->port_fp_handle);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
2878
fcp_port_t *pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3028
struct fcp_port *pptr = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3031
&pptr)) != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3035
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3041
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3042
if (pptr->port_state & FCP_STATE_OFFLINE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3043
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3055
if ((pptr->port_state & FCP_STATE_INIT) && pptr->port_tmp_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3056
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3060
link_cnt = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3061
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3106
struct fcp_ioctl *fioctl, struct fcp_port **pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3153
*pptr = t_pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3183
fcp_port_create_tgt(struct fcp_port *pptr, la_wwn_t *pwwn, int *ret_val,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3196
if (fc_ulp_get_remote_port(pptr->port_fp_handle, pwwn,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3200
if (fc_ulp_pwwn_to_portmap(pptr->port_fp_handle, pwwn,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3211
lcount = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3212
ptgt = fcp_alloc_tgt(pptr, &devlist, lcount);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3214
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3280
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3291
pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3293
lcount = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3297
icmd = fcp_icmd_alloc(pptr, ptgt, sizeof (la_els_logi_t),
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3299
pptr->port_state & FCP_STATE_FCA_IS_NODMA,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3332
hp->s_id = pptr->port_id; /* source ID */
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3358
fc_ulp_login(pptr->port_fp_handle, &fpkt, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3558
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3561
pptr = icmd->ipkt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3577
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3664
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3667
pptr = ddi_get_soft_state(fcp_softstate, instance);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3698
return (fcp_handle_port_detach(pptr, flag, instance));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3719
struct fcp_port *pptr = NULL; /* our soft state */
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3746
if ((pptr = fcp_get_port(port_handle)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3752
is_mpxio = pptr->port_mpxio;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3781
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3792
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3794
mdi_devi_enter(pptr->port_dip, &enteredv);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3796
ndi_devi_enter(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3800
if ((cdip = ndi_devi_find(pptr->port_dip, ndi_nm,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3803
pip = mdi_pi_find(pptr->port_dip, NULL, ndi_addr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3825
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3851
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3854
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3858
if ((plun = fcp_get_lun_from_cip(pptr, cip)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3859
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3868
lcount = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3870
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3877
mdi_devi_exit(pptr->port_dip, enteredv);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3879
ndi_devi_exit(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3883
*rval = fcp_pass_to_hp_and_wait(pptr, plun, cip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3912
if (FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3928
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3930
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3934
if ((plun = fcp_get_lun_from_cip(pptr, cip)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3935
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3939
lcount = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3941
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3954
mdi_devi_exit(pptr->port_dip, enteredv);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3956
ndi_devi_exit(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3960
*rval = fcp_pass_to_hp_and_wait(pptr, plun, cip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3985
*rval = ndi_dc_devi_create(dcp, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4002
*rval = fcp_create_on_demand(pptr, bytes);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4004
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4005
ptgt = fcp_lookup_target(pptr, (uchar_t *)bytes);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4028
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4118
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4133
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4134
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4138
if ((plun = fcp_get_lun_from_cip(pptr, cip)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4139
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4143
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
415
static struct fcp_tgt *fcp_port_create_tgt(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4174
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4175
ASSERT(pptr->port_dip != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4176
if (ndi_dc_return_bus_state(pptr->port_dip, dcp) !=
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4189
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4190
(void) fcp_linkreset(pptr, NULL, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4202
mdi_devi_exit(pptr->port_dip, enteredv);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4204
ndi_devi_exit(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4223
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4225
if ((pptr = fcp_get_port(port_handle)) == NULL || claimed) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4229
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4230
if (pptr->port_state & (FCP_STATE_DETACHING |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4232
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4235
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4251
if (fcp_unsol_prli(pptr, buf) == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
427
static void fcp_handle_devices(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
430
static int fcp_handle_mapflags(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4303
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4306
if ((pptr = fcp_get_port(port_handle)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4311
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4317
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4322
if (pptr->port_state & (FCP_STATE_DETACHING |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4324
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4335
pptr->port_state |= FCP_STATE_IN_CB_DEVC;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
434
static int fcp_send_els(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4348
pptr->port_phys_state = port_state;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4351
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4356
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4359
pptr->port_instance);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
436
static void fcp_update_state(struct fcp_port *pptr, uint32_t state,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4361
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4362
pptr->port_state &= ~FCP_STATE_IN_CB_DEVC;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4363
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4368
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4371
if (pptr->port_id != port_sid) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4372
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4374
"fcp: Port S_ID=0x%x => 0x%x", pptr->port_id,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4383
pptr->port_id = port_sid;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4393
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4396
if ((pptr->port_state & FCP_STATE_OFFLINE) && dev_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4402
pptr->port_tmp_cnt += dev_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4403
pptr->port_state &= ~FCP_STATE_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4404
pptr->port_state |= FCP_STATE_INIT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4405
link_count = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4406
fcp_handle_devices(pptr, devlist, dev_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4409
pptr->port_link_cnt++;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4410
ASSERT(!(pptr->port_state & FCP_STATE_SUSPENDED));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4411
fcp_update_state(pptr, (FCP_LUN_BUSY |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4413
if (pptr->port_mpxio) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4414
fcp_update_mpxio_path_verifybusy(pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4416
pptr->port_state |= FCP_STATE_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4417
pptr->port_state &=
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4419
pptr->port_tmp_cnt = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4421
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4430
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4434
pptr->port_link_cnt++;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4436
while (pptr->port_ipkt_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4437
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4439
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
444
static int fcp_unsol_prli(struct fcp_port *pptr, fc_unsol_buf_t *buf);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4442
pptr->port_topology = port_top;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4448
fcp_update_state(pptr, FCP_LUN_BUSY | FCP_LUN_MARK,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
445
static struct fcp_ipkt *fcp_icmd_alloc(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4451
pptr->port_state &= ~(FCP_STATE_INIT | FCP_STATE_OFFLINE);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4452
pptr->port_state |= FCP_STATE_ONLINING;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4453
pptr->port_tmp_cnt = dev_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4454
link_count = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4456
pptr->port_deadline = fcp_watchdog_time +
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4464
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4468
pptr->port_state &= ~FCP_STATE_ONLINING;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4469
pptr->port_state |= FCP_STATE_ONLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4478
if (pptr->port_state & FCP_STATE_NS_REG_FAILED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4479
fcp_retry_ns_registry(pptr, port_sid);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
448
static void fcp_icmd_free(struct fcp_port *pptr, struct fcp_ipkt *icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4482
fcp_handle_devices(pptr, devlist, dev_cnt, link_count,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
449
static int fcp_alloc_dma(struct fcp_port *pptr, struct fcp_ipkt *icmd,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4491
if (pptr->port_state & FCP_STATE_NS_REG_FAILED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4492
pptr->port_state &= ~FCP_STATE_NS_REG_FAILED;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4495
pptr->port_tmp_cnt -= dev_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4496
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4500
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4504
scsi_hba_reset_notify_callback(&pptr->port_mutex,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4505
&pptr->port_reset_notify_listf);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4507
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
451
static void fcp_free_dma(struct fcp_port *pptr, struct fcp_ipkt *icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4512
ASSERT(pptr->port_state & FCP_STATE_OFFLINE);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4513
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4516
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
452
static struct fcp_tgt *fcp_lookup_target(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4524
if (pptr->port_state & (FCP_STATE_OFFLINE |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4535
pptr->port_state &= ~FCP_STATE_IN_CB_DEVC;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4536
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
454
static struct fcp_tgt *fcp_get_target_by_did(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4540
if (pptr->port_state & FCP_STATE_NS_REG_FAILED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4541
fcp_retry_ns_registry(pptr, port_sid);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4548
if (!pptr->port_ipkt_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4549
pptr->port_deadline = fcp_watchdog_time +
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4564
fcp_update_targets(pptr, devlist, dev_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4567
link_count = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4569
fcp_handle_devices(pptr, devlist, dev_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4572
pptr->port_state &= ~FCP_STATE_IN_CB_DEVC;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4574
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4578
if (pptr->port_state & FCP_STATE_NS_REG_FAILED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4579
fcp_retry_ns_registry(pptr, port_sid);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4583
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4587
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4589
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4620
fcp_handle_devices(struct fcp_port *pptr, fc_portmap_t devlist[],
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4628
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4650
for (i = 0; (i < dev_cnt) && (pptr->port_link_cnt == link_cnt); i++) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4657
ptgt = fcp_lookup_target(pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
466
static int fcp_finish_tgt(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
468
static void fcp_finish_init(struct fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4680
for (ptgt = pptr->port_tgt_hash_table[i]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4686
fcp_offline_target_now(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4701
for (i = 0; (i < dev_cnt) && (pptr->port_link_cnt == link_cnt); i++) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4705
(void) fcp_call_finish_init_held(pptr, ptgt, link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4724
ptgt = fcp_lookup_target(pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
473
static int fcp_offline_target(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4734
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4748
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
475
static void fcp_offline_target_now(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4763
if (fcp_handle_mapflags(pptr, ptgt, map_entry,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4785
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4797
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4800
(void) fcp_offline_target(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4816
(void) fcp_offline_target(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4829
if (fcp_device_changed(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4835
if (fcp_handle_mapflags(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4843
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
485
static void fcp_scan_offline_luns(struct fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4850
if (check_finish_init && pptr->port_link_cnt == link_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4852
(void) fcp_call_finish_init_held(pptr, ptgt, link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4854
} else if (dev_cnt == 0 && pptr->port_link_cnt == link_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4855
fcp_offline_all(pptr, link_cnt, cause);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
486
static void fcp_scan_offline_tgts(struct fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4863
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4869
pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4878
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
490
fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4900
rscn_count = fc_ulp_get_rscn_count(pptr->port_fp_handle);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4902
sizeof (struct fcp_reportlun_resp), pptr->port_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4904
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4936
fcp_handle_mapflags(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
494
struct fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4948
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
495
static int fcp_device_changed(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4958
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4959
ptgt = fcp_alloc_tgt(pptr, map_entry, link_cnt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4960
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4963
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
499
static struct fcp_tgt *fcp_alloc_tgt(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5017
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
502
static void fcp_queue_ipkt(struct fcp_port *pptr, fc_packet_t *fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5021
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5033
if (FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5037
} else if (FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5061
if (FC_TOP_EXTERNAL(pptr->port_topology) && pptr->port_boot_wwn[0]) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5062
if (bcmp((caddr_t)pptr->port_boot_wwn,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5070
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
508
static int fcp_handle_port_detach(struct fcp_port *pptr, int flag,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5088
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
510
static void fcp_cleanup_port(struct fcp_port *pptr, int instance);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5101
icmd = fcp_icmd_alloc(pptr, ptgt, alloc, alloc, 0,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5102
pptr->port_state & FCP_STATE_FCA_IS_NODMA, lcount, tcount,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5111
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5118
if ((fcp_send_els(pptr, ptgt, icmd, opcode,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5122
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5125
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5148
fcp_send_els(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
515
static int fcp_alloc_cmd_resp(struct fcp_port *pptr, fc_packet_t *fpkt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5161
ASSERT(ptgt->tgt_port == pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5163
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
517
static void fcp_free_cmd_resp(struct fcp_port *pptr, fc_packet_t *fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5180
icmd = fcp_icmd_alloc(pptr, ptgt, alloc, alloc, 0,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5181
pptr->port_state & FCP_STATE_FCA_IS_NODMA,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5208
hp->s_id = pptr->port_id; /* source ID */
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
523
static int fcp_linkreset(struct fcp_port *pptr, struct scsi_address *ap,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5245
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5248
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5250
rval = fc_ulp_login(pptr->port_fp_handle, &fpkt, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5258
res = fcp_handle_ipkt_errors(pptr, ptgt, icmd,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5261
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5265
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
527
static void fcp_cp_pinfo(struct fcp_port *pptr, fc_ulp_port_info_t *pinfo);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5319
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5322
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5324
rval = fc_ulp_issue_els(pptr->port_fp_handle, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5332
res = fcp_handle_ipkt_errors(pptr, ptgt, icmd,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5335
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5346
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5352
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5371
fcp_update_state(struct fcp_port *pptr, uint32_t state, int cause)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5376
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5379
for (ptgt = pptr->port_tgt_hash_table[i]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5394
fcp_offline_all(struct fcp_port *pptr, int lcount, int cause)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5400
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5403
for (ptgt = pptr->port_tgt_hash_table[i]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5412
pptr->port_tmp_cnt = ndevs;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5415
for (ptgt = pptr->port_tgt_hash_table[i]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5417
(void) fcp_call_finish_init_held(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
543
static void fcp_check_reset_delay(struct fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
544
static void fcp_abort_all(struct fcp_port *pptr, struct fcp_tgt *ttgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
546
struct fcp_port *fcp_soft_state_unlink(struct fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
547
static struct fcp_lun *fcp_lookup_lun(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
549
static void fcp_prepare_pkt(struct fcp_port *pptr, struct fcp_pkt *cmd,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
552
static int fcp_dopoll(struct fcp_port *pptr, struct fcp_pkt *cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5533
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5538
for (pptr = fcp_port_head; pptr != NULL; pptr = pptr->port_next) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5539
if (pptr->port_fp_handle == port_handle) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
554
struct fcp_lun *fcp_get_lun_from_cip(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5545
return (pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5553
struct fcp_port *pptr = icmd->ipkt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
556
static int fcp_pass_to_hp_and_wait(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5561
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5567
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
559
static struct fcp_hp_elem *fcp_pass_to_hp(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5598
fcp_unsol_prli(struct fcp_port *pptr, fc_unsol_buf_t *buf)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5612
if ((ptgt = fcp_get_target_by_did(pptr, buf->ub_frame.s_id)) !=
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5619
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
562
static void fcp_retransport_cmd(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5620
lcount = pptr->port_link_cnt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5621
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5623
if ((icmd = fcp_icmd_alloc(pptr, ptgt, sizeof (la_els_prli_t),
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5625
pptr->port_state & FCP_STATE_FCA_IS_NODMA,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
566
static void fcp_queue_pkt(struct fcp_port *pptr, struct fcp_pkt *cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
567
static void fcp_update_targets(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5680
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5681
if (!FCP_LINK_STATE_CHANGED(pptr, icmd)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5683
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5685
if ((rval = fc_ulp_issue_els(pptr->port_fp_handle, fpkt)) !=
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5689
fcp_queue_ipkt(pptr, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
569
static int fcp_call_finish_init(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5693
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5697
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5698
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5702
(void) fc_ulp_ubrelease(pptr->port_fp_handle, 1, &buf->ub_token);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
571
static int fcp_call_finish_init_held(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5734
fcp_icmd_alloc(struct fcp_port *pptr, struct fcp_tgt *ptgt, int cmd_len,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
574
static void fcp_free_targets(struct fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5743
pptr->port_dmacookie_sz + pptr->port_priv_pkt_len,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5746
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5762
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5763
icmd->ipkt_port = pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5764
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
577
static int fcp_create_on_demand(struct fcp_port *pptr, uchar_t *pwwn);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5780
pptr->port_dmacookie_sz);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
581
static int fcp_handle_ipkt_errors(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5816
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5829
if (fcp_alloc_dma(pptr, icmd, nodma, KM_NOSLEEP) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
584
static fc_portmap_t *fcp_construct_map(struct fcp_port *pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5844
if (fc_ulp_init_packet(pptr->port_fp_handle, fpkt, KM_NOSLEEP)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5846
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5854
if (fc_ulp_init_packet(pptr->port_fp_handle, fpkt, KM_NOSLEEP)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5856
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
586
static void fcp_offline_all(struct fcp_port *pptr, int lcount, int cause);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5863
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5864
if (pptr->port_state & (FCP_STATE_DETACHING |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5868
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5870
rval = fc_ulp_uninit_packet(pptr->port_fp_handle, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5882
pptr->port_ipkt_cnt++;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5884
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5896
fcp_free_dma(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5898
kmem_free(icmd, sizeof (struct fcp_ipkt) + pptr->port_priv_pkt_len +
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5899
(size_t)pptr->port_dmacookie_sz);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5915
fcp_icmd_free(struct fcp_port *pptr, struct fcp_ipkt *icmd)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5920
(void) fc_ulp_uninit_packet(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5928
fcp_free_dma(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
593
static int fcp_do_ns_registry(struct fcp_port *pptr, uint32_t s_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5930
kmem_free(icmd, sizeof (struct fcp_ipkt) + pptr->port_priv_pkt_len +
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5931
(size_t)pptr->port_dmacookie_sz);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5933
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
594
static void fcp_retry_ns_registry(struct fcp_port *pptr, uint32_t s_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5941
pptr->port_ipkt_cnt--;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5942
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5960
fcp_alloc_dma(struct fcp_port *pptr, struct fcp_ipkt *icmd,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
598
static void fcp_reconfig_wait(struct fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5993
rval = fcp_alloc_cmd_resp(pptr, fpkt, flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6003
!(pptr->port_state & FCP_STATE_FCA_IS_NODMA)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6007
if (ddi_dma_alloc_handle(pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6008
&pptr->port_data_dma_attr, DDI_DMA_DONTWAIT,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6014
&pptr->port_dma_acc_attr, DDI_DMA_CONSISTENT,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6034
if (ccount > pptr->port_data_dma_attr.dma_attr_sgllen) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6089
fcp_free_cmd_resp(pptr, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6098
fcp_free_dma(struct fcp_port *pptr, struct fcp_ipkt *icmd)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
611
static void fcp_update_mpxio_path_verifybusy(struct fcp_port *pptr);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6127
fcp_free_cmd_resp(pptr, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6147
fcp_lookup_target(struct fcp_port *pptr, uchar_t *wwn)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6152
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6156
for (ptgt = pptr->port_tgt_hash_table[hash]; ptgt != NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6173
fcp_get_target_by_did(struct fcp_port *pptr, uint32_t d_id)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6181
if (fc_ulp_get_pwwn_by_did(pptr->port_fp_handle, port_id,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6183
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6184
ptgt = fcp_lookup_target(pptr, pwwn.raw_wwn);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6185
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6204
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6220
pptr = icmd->ipkt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6231
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6257
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6268
if (fcp_send_els(pptr, ptgt, icmd, LA_ELS_PRLI,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6278
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6306
fc_ulp_disable_relogin(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6311
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6317
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6322
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6326
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6345
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6383
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6385
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6390
pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6396
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6404
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6409
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6427
fcp_queue_ipkt(pptr, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6431
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6441
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6445
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6454
rval = fc_ulp_issue_els(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6462
fcp_queue_ipkt(pptr, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6467
fcp_log(CE_NOTE, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6472
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6476
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6483
fcp_queue_ipkt(pptr, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6487
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6490
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6493
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6497
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6503
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6505
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6524
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6536
pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6537
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6539
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6543
nodma = (pptr->port_fcp_dma == FC_NO_DVMA_SPACE) ? 1 : 0;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6544
icmd = fcp_icmd_alloc(pptr, ptgt, sizeof (struct fcp_cmd),
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6569
hp->s_id = pptr->port_id;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6638
fca_dev = fc_ulp_get_fca_device(pptr->port_fp_handle, d_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6660
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6670
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6673
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6674
if (fcp_transport(pptr->port_fp_handle, fpkt, 1) !=
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6676
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6681
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6685
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6686
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6705
struct fcp_port *pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6842
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6864
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6869
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6878
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6905
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6911
pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6922
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6960
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6985
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6987
if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6989
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6992
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6997
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6999
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7001
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7007
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7009
if (FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7010
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7015
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7016
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7018
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7024
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7035
if (fcp_validate_fcp_response(rsp, pptr) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7042
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7052
fcp_queue_ipkt(pptr, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7066
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7098
(void) fcp_call_finish_init(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7101
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7132
(void) fcp_call_finish_init(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7135
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7151
if (!(pptr->port_state & FCP_STATE_FCA_IS_NODMA)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7175
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7177
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7189
struct fcp_port *pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7193
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7195
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7196
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7203
fcp_queue_ipkt(pptr, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7205
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7209
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7210
(void) fcp_call_finish_init(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7213
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7217
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7219
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7240
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7251
pptr = icmd->ipkt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7261
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7265
pptr->port_instance, ptgt->tgt_d_id,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7335
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7347
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7355
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7387
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7396
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7409
if (fail || pptr->port_mpxio == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7416
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7423
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7426
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7443
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7452
pptr = icmd->ipkt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7462
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7465
"dtype=0x%x pqual: 0x%x", pptr->port_instance, ptgt->tgt_d_id,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7472
fcp_log(CE_CONT, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7477
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7485
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7487
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7506
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7507
if (!pptr->port_notify) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7513
pptr->port_notify = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7514
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7515
(void) fc_ulp_port_notify(pptr->port_fp_handle, cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7516
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7521
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7525
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7528
(void) fcp_call_finish_init(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7531
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7535
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7551
(void) fcp_call_finish_init(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7560
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7583
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7588
pptr = icmd->ipkt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7594
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7596
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7603
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7606
pptr->port_instance, ptgt->tgt_d_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7625
fcp_log(CE_NOTE, pptr->port_dip, "!Can not support"
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7629
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7631
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7654
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7672
(void) fcp_call_finish_init(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7677
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7682
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7734
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7736
if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7745
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7748
fcp_log(CE_NOTE, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7754
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7759
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7761
(void) fcp_call_finish_init(pptr, ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7764
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7780
fcp_log(CE_NOTE, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7792
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7795
pptr->port_instance, ptgt->tgt_d_id, nluns_claimed);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7803
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7831
fcp_log(CE_NOTE, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7867
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7869
if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7870
fcp_log(CE_NOTE, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7876
pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7883
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7901
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7906
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7908
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7913
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7948
fcp_finish_tgt(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7952
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7955
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7960
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7962
if ((pptr->port_link_cnt != link_cnt) ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7988
rval = fcp_offline_target(pptr, ptgt, link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8028
fcp_finish_init(struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8031
bzero(pptr->port_finish_stack, sizeof (pptr->port_finish_stack));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8032
pptr->port_finish_depth = getpcstack(pptr->port_finish_stack,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8036
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8038
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8040
" entering; ipkt count=%d", pptr->port_ipkt_cnt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8042
if ((pptr->port_state & FCP_STATE_ONLINING) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8043
!(pptr->port_state & (FCP_STATE_SUSPENDED |
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8045
pptr->port_state &= ~FCP_STATE_ONLINING;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8046
pptr->port_state |= FCP_STATE_ONLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8050
cv_broadcast(&pptr->port_config_cv);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8063
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8069
pptr = ptgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8071
ASSERT(pptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8080
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8095
(!fcp_pass_to_hp(pptr, plun, plun->lun_cip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8098
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8113
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8127
if (!fcp_pass_to_hp(pptr, plun, cip, FCP_ONLINE,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8136
if (!fcp_pass_to_hp(pptr, plun, cip, FCP_ONLINE,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8138
fcp_log(CE_CONT, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8157
struct fcp_port *pptr = plun->lun_tgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8158
int is_mpxio = pptr->port_mpxio;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8167
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8173
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8239
if (fc_ulp_busy_port(pptr->port_fp_handle) != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8244
mdi_devi_enter(pptr->port_dip, &enteredv);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8246
ndi_devi_enter(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8249
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8266
fc_ulp_log_device_event(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8270
fc_ulp_log_device_event(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8275
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8278
mdi_devi_exit(pptr->port_dip, enteredv);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8280
ndi_devi_exit(pptr->port_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8283
fc_ulp_idle_port(pptr->port_fp_handle);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8294
fcp_offline_target(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8299
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8304
if (link_cnt != pptr->port_link_cnt || (tgt_cnt && tgt_cnt !=
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8330
elem->next = pptr->port_offline_tgts;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8331
pptr->port_offline_tgts = elem;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8333
fcp_offline_target_now(pptr, ptgt, link_cnt, tgt_cnt, flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8341
fcp_offline_target_now(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8344
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8347
fc_ulp_enable_relogin(pptr->port_fp_handle, &ptgt->tgt_port_wwn);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8382
struct fcp_port *pptr = plun->lun_tgt->tgt_port;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8402
elem->next = pptr->port_offline_luns;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8403
pptr->port_offline_luns = elem;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8478
fcp_scan_offline_luns(struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8484
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8487
elem = pptr->port_offline_luns;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8495
if (pptr->port_link_cnt == elem->link_cnt &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8512
pptr->port_offline_luns = next;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8523
fcp_scan_offline_tgts(struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8529
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8532
elem = pptr->port_offline_tgts;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8545
pptr->port_link_cnt == elem->link_cnt + 1 &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8559
fcp_offline_target_now(pptr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8571
pptr->port_offline_tgts = next;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8584
struct fcp_port *pptr = LUN_PORT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8606
pptr->port_ndi_event_hdl, cdip, FCAL_REMOVE_EVENT,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8609
pptr->port_ndi_event_hdl, cdip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8626
struct fcp_port *pptr = LUN_PORT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8637
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8638
for (cmd = pptr->port_pkt_head; cmd != NULL; cmd = ncmd) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8655
ASSERT(pptr->port_pkt_head != cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8658
ASSERT(cmd == pptr->port_pkt_head);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8659
pptr->port_pkt_head = cmd->cmd_next;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8662
if (cmd == pptr->port_pkt_tail) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8663
pptr->port_pkt_tail = pcmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8679
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8681
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8693
fcp_abort_commands(struct fcp_pkt *head, struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8698
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8726
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8728
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8741
struct fcp_port *pptr = ADDR2FCP(&pkt->pkt_address);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8754
fcp_log(CE_CONT, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8763
mutex_enter(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8764
pptr->port_npkts--;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8765
mutex_exit(&pptr->port_pkt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8779
struct fcp_port *pptr = ADDR2FCP(&pkt->pkt_address);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8792
if (pptr->port_fcp_dma != FC_NO_DVMA_SPACE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8848
if (fcp_validate_fcp_response(rsp, pptr) !=
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8853
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8867
if (pptr->port_fcp_dma != FC_NO_DVMA_SPACE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8883
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8911
if (fcp_validate_fcp_response(rsp, pptr) !=
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8916
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8933
if (pptr->port_fcp_dma != FC_NO_DVMA_SPACE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8955
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8960
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8985
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9055
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9072
pptr->port_ndi_event_hdl, cdip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9076
pptr->port_ndi_event_hdl, cdip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9136
pptr->port_ndi_event_hdl, cdip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9141
pptr->port_ndi_event_hdl,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9179
if (pptr->port_fcp_dma != FC_NO_DVMA_SPACE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9217
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9226
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9238
fcp_validate_fcp_response(struct fcp_rsp *rsp, struct fcp_port *pptr)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9255
FCP_TRACE(fcp_logq, pptr->port_instbuf, fcp_trace,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9287
fcp_device_changed(struct fcp_port *pptr, struct fcp_tgt *ptgt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9290
ASSERT(mutex_owned(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9292
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9301
(FC_TOP_EXTERNAL(pptr->port_topology) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9307
(void) fcp_offline_target(pptr, ptgt, link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9312
fcp_log(CE_NOTE, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9319
return (fcp_handle_mapflags(pptr, ptgt, map_entry,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9407
fcp_alloc_tgt(struct fcp_port *pptr, fc_portmap_t *map_entry, int link_cnt)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9415
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9416
if (link_cnt != pptr->port_link_cnt) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9421
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9436
ptgt->tgt_next = pptr->port_tgt_hash_table[hash];
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9437
pptr->port_tgt_hash_table[hash] = ptgt;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9440
ptgt->tgt_port = pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9451
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9492
fcp_queue_ipkt(struct fcp_port *pptr, fc_packet_t *fpkt)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9497
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9499
if (FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9500
FCP_TRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9505
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9506
(void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9508
fcp_icmd_free(pptr, icmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9515
if (pptr->port_ipkt_list != NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9517
pptr->port_ipkt_list->ipkt_prev = icmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9518
icmd->ipkt_next = pptr->port_ipkt_list;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9519
pptr->port_ipkt_list = icmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9523
pptr->port_ipkt_list = icmd;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9527
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9625
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9629
pptr = ADDR2FCP(&cmd->cmd_pkt->pkt_address);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9632
FCP_DTRACE(fcp_logq, pptr->port_instbuf,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9638
fcp_queue_pkt(pptr, cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9672
fcp_retry_ns_registry(struct fcp_port *pptr, uint32_t s_id)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9676
ASSERT(MUTEX_HELD(&pptr->port_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9678
if (((pptr->port_state & FCP_STATE_NS_REG_FAILED) == 0) ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9679
((pptr->port_topology != FC_TOP_FABRIC) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9680
(pptr->port_topology != FC_TOP_PUBLIC_LOOP))) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9681
if (pptr->port_state & FCP_STATE_NS_REG_FAILED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9682
pptr->port_state &= ~FCP_STATE_NS_REG_FAILED;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9686
mutex_exit(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9687
rval = fcp_do_ns_registry(pptr, s_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9688
mutex_enter(&pptr->port_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9692
pptr->port_state &= ~(FCP_STATE_NS_REG_FAILED);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9700
fcp_do_ns_registry(struct fcp_port *pptr, uint32_t s_id)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9730
if (fc_ulp_port_ns(pptr->port_fp_handle, NULL, &ns_cmd)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9731
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9774
struct fcp_port *pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9795
if ((pptr = ddi_get_soft_state(fcp_softstate, instance)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9802
(void) sprintf(pptr->port_instbuf, "fcp(%d)", instance);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9808
(void) fcp_cp_pinfo(pptr, pinfo);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9815
if ((manual_cfg = ddi_prop_get_int(DDI_DEV_T_ANY, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9822
(void) ddi_pathname(pptr->port_dip, pathname);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9826
ddi_driver_name(pptr->port_dip),
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9827
ddi_get_instance(pptr->port_dip),
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9829
ddi_driver_name(pptr->port_dip));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9834
_NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(pptr->port_link_cnt));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9835
pptr->port_link_cnt = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9836
_NOTE(NOW_VISIBLE_TO_OTHER_THREADS(pptr->port_link_cnt));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9837
pptr->port_id = s_id;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9838
pptr->port_instance = instance;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9839
_NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(pptr->port_state));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9840
pptr->port_state = FCP_STATE_INIT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9845
pptr->port_state |= FCP_STATE_FCA_IS_NODMA;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9848
_NOTE(NOW_VISIBLE_TO_OTHER_THREADS(pptr->port_state));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9850
if (!(pptr->port_state & FCP_STATE_FCA_IS_NODMA)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9855
pptr->port_dmacookie_sz = sizeof (ddi_dma_cookie_t) *
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9856
pptr->port_data_dma_attr.dma_attr_sgllen;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9865
mutex_init(&pptr->port_mutex, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9866
mutex_init(&pptr->port_pkt_mutex, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9872
if ((tran = scsi_hba_tran_alloc(pptr->port_dip, 0)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9873
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9879
pptr->port_tran = tran;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9880
tran->tran_hba_private = pptr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9915
tran->tran_hba_len = pptr->port_priv_pkt_len +
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9916
sizeof (struct fcp_pkt) + pptr->port_dmacookie_sz;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9917
if (pptr->port_state & FCP_STATE_FCA_IS_NODMA) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9931
pptr->port_data_dma_attr = pseudo_fca_dma_attr;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9937
pptr->port_ndi_event_defs = (ndi_event_definition_t *)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9940
bcopy(fcp_ndi_event_defs, pptr->port_ndi_event_defs,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9943
(void) ndi_event_alloc_hdl(pptr->port_dip, NULL,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9944
&pptr->port_ndi_event_hdl, NDI_SLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9946
pptr->port_ndi_events.ndi_events_version = NDI_EVENTS_REV1;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9947
pptr->port_ndi_events.ndi_n_events = FCP_N_NDI_EVENTS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9948
pptr->port_ndi_events.ndi_event_defs = pptr->port_ndi_event_defs;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9950
if (DEVI_IS_ATTACHING(pptr->port_dip) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9951
(ndi_event_bind_set(pptr->port_ndi_event_hdl,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9952
&pptr->port_ndi_events, NDI_SLEEP) != NDI_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9957
if (scsi_hba_attach_setup(pptr->port_dip, &pptr->port_data_dma_attr,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9960
fcp_log(CE_WARN, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9966
pptr->port_mpxio = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9967
if (mdi_phci_register(MDI_HCI_CLASS_SCSI, pptr->port_dip, 0) ==
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9969
pptr->port_mpxio++;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9994
pptr->port_next = fcp_port_head;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9995
fcp_port_head = pptr;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
380
smhba_info_t *pptr = NULL;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
387
pptr = (smhba_info_t *)ks->ks_private;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
388
ASSERT((pptr != NULL));
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
389
mpt = (mptsas_t *)pptr->mpt;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
391
page_address = (MPI2_SAS_PHY_PGAD_FORM_PHY_NUMBER | pptr->phy_id);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
399
ret = mptsas_get_sas_phy_page1(pptr->mpt, page_address, pptr);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
405
(unsigned long long)pptr->invalid_dword_count;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
408
(unsigned long long)pptr->running_disparity_error_count;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
411
(unsigned long long)pptr->loss_of_dword_sync_count;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
414
(unsigned long long)pptr->phy_reset_problem_count;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
1702
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
1720
pptr = xp->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
1728
if (pptr->level) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
1733
result = pmcs_sata_identify(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
1751
(void) memcpy(pptr->sas_address, u.nsa, 8);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
1753
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
1755
__func__, pptr->path, SAS_ADDR_PRT(pptr->sas_address));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2782
pmcs_phy_t *pptr = tgt->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2784
switch (pptr->dtype) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2792
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2794
__func__, (void *)tgt, (void *)pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2802
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2804
pptr->path, tgt->target_num, SAS_ADDR_PRT(pptr->sas_address));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2807
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2809
tgt->target_num, SAS_ADDR_PRT(pptr->sas_address));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2823
pmcs_remove_device(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2837
if (xp->phy == pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2840
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2844
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3126
pmcs_phy_t *pptr = (pmcs_phy_t *)ks->ks_private;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3127
pmcs_hw_t *pwp = pptr->pwp;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3131
ASSERT((pptr != NULL) && (pwp != NULL));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3137
mutex_enter(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3140
val = pmcs_get_diag_report(pwp, PMCS_INVALID_DWORD_CNT, pptr->phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3145
val = pmcs_get_diag_report(pwp, PMCS_DISPARITY_ERR_CNT, pptr->phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3150
val = pmcs_get_diag_report(pwp, PMCS_LOST_DWORD_SYNC_CNT, pptr->phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3155
val = pmcs_get_diag_report(pwp, PMCS_RESET_FAILED_CNT, pptr->phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3162
mutex_exit(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
224
pmcs_ds_operational(pmcs_phy_t *pptr, pmcs_xscsi_t *tgt)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
228
ASSERT(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
229
pwp = pptr->pwp;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
234
pptr->ds_recovery_retries = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
236
if ((pptr->ds_prev_good_recoveries == 0) ||
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
237
(ddi_get_lbolt() - pptr->last_good_recovery >
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
239
pptr->last_good_recovery = ddi_get_lbolt();
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
240
pptr->ds_prev_good_recoveries = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
241
} else if (ddi_get_lbolt() < pptr->last_good_recovery +
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
243
pptr->ds_prev_good_recoveries++;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
245
pmcs_handle_ds_recovery_error(pptr, tgt, pwp, __func__,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
250
if (!pptr->dead) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
264
pmcs_phy_t *pptr, *pnext, *pchild;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
278
pptr = pwp->root_phys;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
281
pptr = phyp;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
284
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
289
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
290
pchild = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
291
pnext = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
292
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
299
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
301
if (pptr->dead || !pptr->valid_device_id) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
305
if (pptr->iport && (pptr->iport->ua_state != UA_ACTIVE)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
306
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
308
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
312
tgt = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
324
if (pptr->prev_recovery) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
325
if (ddi_get_lbolt() - pptr->prev_recovery <
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
327
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
330
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
337
pptr->prev_recovery = ddi_get_lbolt();
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
34
static void pmcs_ds_operational(pmcs_phy_t *pptr, pmcs_xscsi_t *tgt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
342
rc = pmcs_get_dev_state(pwp, pptr, tgt, &ds);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
344
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
347
__func__, pptr->path, rc);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
349
pmcs_handle_ds_recovery_error(pptr, tgt, pwp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
357
pmcs_ds_operational(pptr, tgt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
363
pmcs_prt(pwp, PMCS_PRT_DEBUG_DEV_STATE, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
372
rc = pmcs_send_err_recovery_cmd(pwp, ds, pptr, tgt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
373
pmcs_prt(pwp, PMCS_PRT_DEBUG_DEV_STATE, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
379
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
382
__func__, pptr->path, rc);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
384
pmcs_handle_ds_recovery_error(pptr, tgt, pwp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
394
pmcs_prt(pwp, PMCS_PRT_DEBUG_DEV_STATE, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
396
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
404
rc = pmcs_reset_phy(pwp, pptr, PMCS_PHYOP_HARD_RESET);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
409
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
411
__func__, pptr->path, rc);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
413
pmcs_handle_ds_recovery_error(pptr, tgt, pwp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
422
if (pptr->abort_all_start) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
423
while (pptr->abort_all_start) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
424
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
426
"PHY 0x%p", __func__, (void *)pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
427
cv_wait(&pptr->abort_all_cv, &pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
433
rc = pmcs_abort(pwp, pptr, pptr->device_id, 1, 1);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
438
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
439
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
441
__func__, pptr->path, rc);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
443
pmcs_handle_ds_recovery_error(pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
453
pmcs_prt(pwp, PMCS_PRT_DEBUG_DEV_STATE, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
455
__func__, (void *)pptr, (void *)tgt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
456
rc = pmcs_set_dev_state(pwp, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
459
pmcs_ds_operational(pptr, tgt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
461
pmcs_prt(pwp, PMCS_PRT_DEBUG_DEV_STATE, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
465
pmcs_handle_ds_recovery_error(pptr, tgt, pwp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
475
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
476
pptr = pnext;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
610
pmcs_phy_t *pptr = pwrk->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
617
if (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
618
pmcs_dec_phy_ref_count(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
620
pptr = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
626
if (pptr == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
638
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
647
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
655
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
657
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
661
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
666
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
688
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
693
pmcs_prt(pwp, PMCS_PRT_DEBUG1, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
698
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
709
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
715
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
730
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
731
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
750
pmcs_phy_t *pptr = pwrk->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
761
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
773
rv = pmcs_ssp_tmf(pwp, pptr, SAS_QUERY_TASK, htag,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
780
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
792
if (pmcs_ssp_tmf(pwp, pptr, SAS_ABORT_TASK, htag,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
796
(void) pmcs_abort(pwp, pptr, htag, 0, 1);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
809
pmcs_start_dev_state_recovery(tgt, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1033
pptr = pwp->ports[portid];
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1035
if (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1036
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1038
SAS_PORT_BROADCAST_D04_7, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1039
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1137
pmcs_phy_t *pptr = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1161
pptr = pwrk->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1162
path = pptr->path;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1179
pptr->need_rl_ext = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1182
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1184
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1195
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1202
mutex_exit(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1208
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1222
pptr = pwrk->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1223
if (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1224
pptr->abort_pending = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1225
pptr->abort_sent = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1232
pptr->abort_all_start = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1233
cv_signal(&pptr->abort_all_cv);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1235
path = pptr->path;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1236
mutex_exit(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1244
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1248
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1256
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1261
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1269
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL, "%s: ABORT %s failed "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1275
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL, "%s: Unknown status "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
257
pmcs_phy_t *pptr = pwp->ports[portid];
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
259
if (pptr == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
268
for (pptr = pwp->root_phys; pptr; pptr = pptr->sibling) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
269
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
270
if (pptr->link_rate && pptr->portid == portid &&
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
271
pptr->subsidiary) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
272
pmcs_clear_phy(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
274
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
277
pptr = pwp->ports[portid];
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
281
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
282
pmcs_kill_changed(pwp, pptr, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
283
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
298
pmcs_phy_t *pptr, *subphy, *tphyp;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
312
pptr = pwp->root_phys + phynum;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
313
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
315
if (pptr->configured) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
316
pmcs_kill_changed(pwp, pptr, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
318
pmcs_set_changed(pwp, pptr, B_TRUE, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
320
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
344
pptr = pwp->root_phys + phynum;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
345
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
360
(void) memcpy(pptr->sas_address, af.sas_address, 8);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
361
wwn = pmcs_barray2wwn(pptr->sas_address);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
369
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
370
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
383
if (pptr->dtype == NOTHING) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
384
pptr->subsidiary = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
386
pptr->link_rate =
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
388
pptr->portid = portid;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
389
pptr->dead = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
390
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
397
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
407
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
408
pmcs_update_phy_pm_props(pptr, (1ULL << phynum),
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
410
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
413
primary = !pptr->subsidiary;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
417
iport->pptr = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
420
pmcs_add_phy_to_iport(iport, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
421
pptr->iport = iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
439
if (pptr->dtype != NOTHING && pptr->configured) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
440
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
441
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
448
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
449
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
455
pptr->width = IOP_EVENT_NPIP(w3);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
456
pptr->portid = portid;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
457
pptr->dead = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
458
pptr->link_rate = pmcs_link_rate(IOP_EVENT_LINK_RATE(w1));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
465
pptr->pend_dtype = SAS;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
466
pptr->dtype = SAS;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
470
pptr->pend_dtype = EXPANDER;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
471
pptr->dtype = EXPANDER;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
474
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
476
pptr->pend_dtype = NOTHING;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
477
pptr->dtype = NOTHING;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
485
if (pptr->dtype == SAS) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
486
pptr->spinup_hold = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
487
pmcs_spinup_release(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
488
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
492
pmcs_set_changed(pwp, pptr, B_TRUE, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
493
if (pptr->width > 1) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
494
pmcs_prt(pwp, PMCS_PRT_INFO, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
497
pmcs_get_rate(pptr->link_rate), pptr->width);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
499
pmcs_prt(pwp, PMCS_PRT_INFO, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
502
pmcs_get_rate(pptr->link_rate));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
504
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
509
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
511
PRIx64, phynum, pwp->sas_wwns[pptr->phynum], wwn);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
517
primary = !pptr->subsidiary;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
521
iport->pptr = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
524
pmcs_add_phy_to_iport(iport, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
525
pptr->iport = iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
531
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
532
pmcs_update_phy_pm_props(pptr, (1ULL << phynum),
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
535
SAS_PHY_ONLINE, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
536
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
539
pwp->ports[portid] = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
560
pptr = pwp->root_phys + phynum;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
563
if (pptr->dtype != NOTHING && pptr->configured) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
564
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
565
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
572
pptr->width = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
573
pptr->dead = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
583
pptr->sas_address[0] = 0x30;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
584
pptr->sas_address[1] = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
585
pptr->sas_address[2] = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
586
pptr->sas_address[3] = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
587
pptr->sas_address[4] = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
588
pptr->sas_address[5] = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
589
pptr->sas_address[6] = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
590
pptr->sas_address[7] = phynum;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
591
pptr->portid = portid;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
592
pptr->link_rate = pmcs_link_rate(IOP_EVENT_LINK_RATE(w1));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
593
pptr->dtype = SATA;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
594
pmcs_set_changed(pwp, pptr, B_TRUE, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
595
pmcs_prt(pwp, PMCS_PRT_INFO, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
597
pptr->portid, phynum, pmcs_get_rate(pptr->link_rate));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
598
wwn = pmcs_barray2wwn(pptr->sas_address);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
599
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
604
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
606
PRIx64, phynum, pwp->sas_wwns[pptr->phynum],
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
614
iport->pptr = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
616
pmcs_add_phy_to_iport(iport, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
617
pptr->iport = iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
625
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
626
pmcs_update_phy_pm_props(pptr, (1ULL << phynum), 1ULL, B_TRUE);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
628
SAS_PHY_ONLINE, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
629
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
632
pwp->ports[pptr->portid] = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
659
pptr = pwp->ports[portid];
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
671
if (pptr == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
689
mutex_enter(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
691
pmcs_update_phy_pm_props(pptr, pptr->att_port_pm_tmp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
692
pptr->tgt_port_pm_tmp, B_FALSE);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
693
iport = pptr->iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
694
mutex_exit(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
702
for (pptr = pwp->root_phys; pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
703
pptr = pptr->sibling) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
704
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
705
if (pptr->portid == portid) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
706
pptr->pend_dtype = NOTHING;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
707
pptr->dtype = NOTHING;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
708
pptr->portid =
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
710
if (pptr->valid_device_id) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
711
pptr->deregister_wait = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
714
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
737
if (pptr == subphy) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
741
tphyp = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
742
pptr = pmcs_promote_next_phy(tphyp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
744
if (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
746
pwp->ports[portid] = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
747
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
750
pptr->phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
752
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
763
mutex_enter(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
764
pmcs_update_phy_pm_props(pptr, subphy->att_port_pm_tmp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
766
pptr->width = IOP_EVENT_NPIP(w3);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
767
mutex_exit(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
792
wwn = pmcs_barray2wwn(pptr->sas_address);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
800
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
803
pwp->sas_wwns[pptr->phynum], wwn);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
806
pmcs_prt(pwp, PMCS_PRT_INFO, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
808
"TO %d PHYS", portid, phynum, pptr->width);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
822
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
825
pwp->sas_wwns[pptr->phynum], wwn);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
841
ASSERT(pptr == subphy);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
842
mutex_enter(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
843
pptr->width = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
844
pmcs_update_phy_pm_props(pptr, pptr->att_port_pm_tmp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
845
pptr->tgt_port_pm_tmp, B_FALSE);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
847
SAS_PHY_OFFLINE, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
848
mutex_exit(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
873
iport->pptr = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
897
pptr = pwp->ports[portid];
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
898
if (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
899
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
900
if (pptr->phynum == phynum) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
901
pmcs_set_changed(pwp, pptr, B_TRUE, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
904
SAS_PORT_BROADCAST_CHANGE, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
905
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
913
pptr = pwp->ports[portid];
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
915
if (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
916
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
918
SAS_PORT_BROADCAST_SES, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
919
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
945
pptr = pwp->ports[portid];
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
947
if (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
948
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
950
SAS_PORT_BROADCAST_D01_4, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
951
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
101
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
116
retval = pmcs_sata_identify(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
123
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
133
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
172
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
184
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
327
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
380
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
412
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
439
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
494
pmcs_latch_status(pwp, sp, status, rp, 18, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
496
pmcs_latch_status(pwp, sp, status, NULL, 0, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
501
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
511
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
606
pmcs_sata_identify(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
614
return (pmcs_run_sata_cmd(pwp, pptr, fis, SATA_PROTOCOL_PIO,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
622
pmcs_run_sata_cmd(pmcs_hw_t *pwp, pmcs_phy_t *pptr, fis_t fis, uint32_t mode,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
630
pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
641
msg[2] = LE_32(pptr->device_id);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
648
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
65
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
668
GET_IO_IQ_ENTRY(pwp, ptr, pptr->device_id, iq);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
677
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
680
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
684
if (pmcs_abort(pwp, pptr, htag, 0, 1)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
685
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
695
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
697
__func__, pmcs_barray2wwn(pptr->sas_address));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
699
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
719
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
92
pptr = xp->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1019
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1051
pptr = pmcs_find_phy_by_wwn(pwp, wwn);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1053
if (pptr == NULL || pptr->dtype != EXPANDER) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1054
if (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1055
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1058
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1064
if ((pptr->iport == NULL) || !pptr->valid_device_id) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1065
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1067
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1068
"%s: Can't reach PHY %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1073
pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1075
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1077
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1090
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1099
msg[2] = LE_32(pptr->device_id);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1112
pmcs_hold_iport(pptr->iport);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1113
iport = pptr->iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1118
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1123
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1126
if (pmcs_abort(pwp, pptr, htag, 0, 0)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1127
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1131
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1135
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1148
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1151
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1162
xp = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1179
if (pmcs_abort(pwp, pptr, pptr->device_id, 1, 1) != 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1180
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1198
pmcs_prt(pwp, PMCS_PRT_DEBUG1, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1201
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2009
pmcs_phy_t *pptr = pwrk->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2019
ASSERT(pptr != NULL);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2034
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp, "%s: dead cmd tag "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2035
"0x%x for %s", __func__, pwrk->htag, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2044
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2046
__func__, (void *)sp, pwrk->htag, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2071
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2073
__func__, pptr->path, sts);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2129
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2133
xp->target_num, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2135
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2139
xp->target_num, pptr->path, sts);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2151
slen, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2163
0, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2181
pptr, xp, "%s: tgt 0x%p "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2198
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2204
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2210
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2212
__func__, (void *)pkt, pptr->path, (void *)pwrk);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2250
pmcs_prt(pwp, PMCS_PRT_DEBUG3, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2257
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2267
pmcs_prt(pwp, PMCS_PRT_DEBUG1, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2279
pmcs_status_disposition(pptr, sts);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2295
pmcs_prt(pwp, PMCS_PRT_DEBUG3, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2300
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2315
pmcs_start_dev_state_recovery(xp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2317
pmcs_prt(pwp, PMCS_PRT_DEBUG1, pptr, xp, "%s: Putting cmd 0x%p "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2619
pmcs_phy_t *pptr = pwrk->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2641
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp, "%s: dead cmd tag "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2642
"0x%x for %s", __func__, pwrk->htag, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2647
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2649
__func__, (void *)sp, pwrk->htag, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2659
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, xp, "%s: pkt %p tgt %u done",
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2682
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2687
if (pmcs_reset_phy(pwp, pptr,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2689
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2692
"recovery", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2697
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2708
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2714
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2716
__func__, (void *)pkt, pptr->path, (void *)pwrk);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2750
pmcs_prt(pwp, PMCS_PRT_DEBUG3, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2757
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2767
pmcs_prt(pwp, PMCS_PRT_DEBUG1, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2781
pmcs_status_disposition(pptr, sts);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2799
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
628
pmcs_phy_t *pptr = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
652
pptr = xp->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
654
if (pptr == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
659
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
660
if (pmcs_abort(pwp, pptr, 0, 1, 0)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
661
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
664
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
686
pptr = pwrk->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
690
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
691
if (pptr->dtype == SAS) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
692
if (pmcs_ssp_tmf(pwp, pptr, SAS_ABORT_TASK, tag, lun,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
694
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
695
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
704
pptr->need_rl_ext = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
705
if (pmcs_sata_abort_ncq(pwp, pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
706
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
707
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
712
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
713
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
752
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
804
pptr = xp->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
807
if (pmcs_reset_dev(pwp, pptr, lun)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_smhba.c
125
pmcs_smhba_set_scsi_device_props(pmcs_hw_t *pwp, pmcs_phy_t *pptr,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_smhba.c
133
pphy = pptr->parent;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_smhba.c
141
wwn = pmcs_barray2wwn(pptr->sas_address);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_smhba.c
144
if ((pptr->dtype == SATA) || pptr->virtual) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_smhba.c
158
if (pptr->dtype != EXPANDER) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_smhba.c
161
pptr->level);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1168
pmcs_phy_t *pptr, *pnext, *pnext_uplevel[PMCS_MAX_XPND];
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1175
pptr = pwp->root_phys;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1178
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1183
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1184
if (pptr->need_rl_ext) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1185
ASSERT(pptr->dtype == SATA);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1189
r = pmcs_sata_abort_ncq(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1195
r = pmcs_reset_phy(pwp, pptr,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1201
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1202
pptr->abort_sent = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1205
if (pptr->abort_pending == 0 || pptr->abort_sent) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1208
pptr->abort_pending = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1209
if (pmcs_abort(pwp, pptr, pptr->device_id, 1, 1) == ENOMEM) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1210
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1213
pptr->abort_sent = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1218
if ((pptr->iport == NULL) ||
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1219
(pptr->iport->ua_state != UA_ACTIVE)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1220
tgt = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1222
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1232
if (pptr->children) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1233
pnext = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1234
pnext_uplevel[level++] = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1236
pnext = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1242
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1243
pptr = pnext;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1254
pmcs_register_device(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1266
(pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr)) == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1273
pwrk->dtype = pptr->dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1278
(pptr->link_rate << PMCS_DEVREG_LINK_RATE_SHIFT);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1279
if (IS_ROOT_PHY(pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1280
msg[2] = LE_32(pptr->portid |
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1281
(pptr->phynum << PMCS_PHYID_SHIFT));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1283
msg[2] = LE_32(pptr->portid);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1285
if (pptr->dtype == SATA) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1286
if (IS_ROOT_PHY(pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1296
(void) memcpy(&msg[5], pptr->sas_address, 8);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1302
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1305
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1308
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL, pmcs_timeo, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1318
if (pmcs_validate_devid(pwp->root_phys, pptr, tmp) == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1323
pmcs_prt(pwp, PMCS_PRT_INFO, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1325
__func__, pptr->path, tmp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1329
pmcs_prt(pwp, PMCS_PRT_INFO, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1331
__func__, pptr->path, tmp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1336
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1338
__func__, status, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1342
pptr->device_id = tmp;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1343
pptr->valid_device_id = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1344
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL, "Phy %s/" SAS_ADDR_FMT
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1345
" registered with device_id 0x%x (portid %d)", pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1346
SAS_ADDR_PRT(pptr->sas_address), tmp, pptr->portid);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1356
pmcs_deregister_device(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1363
pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1369
pwrk->dtype = pptr->dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1380
msg[2] = LE_32(pptr->device_id);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1385
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1388
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1391
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL, pmcs_timeo, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1396
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1398
__func__, status, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1400
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1401
"%s: device %s deregistered", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1404
pptr->device_id = PMCS_INVALID_DEVICE_ID;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1405
pptr->configured = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1406
pptr->deregister_wait = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1407
pptr->valid_device_id = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1441
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1760
for (pptr = pwp->root_phys; pptr; pptr = pptr->sibling) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1761
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1762
pmcs_clear_phy(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1763
pptr->target = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1764
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1902
pmcs_reset_dev(pmcs_hw_t *pwp, pmcs_phy_t *pptr, uint64_t lun)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1906
if (pptr == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1910
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1911
if (pptr->dtype == SAS) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1926
rval = pmcs_ssp_tmf(pwp, pptr, SAS_LOGICAL_UNIT_RESET, 0, lun,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1928
} else if (pptr->dtype == SATA) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1930
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1933
rval = pmcs_reset_phy(pwp, pptr, PMCS_PHYOP_LINK_RESET);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1935
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1936
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1938
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1950
if (pmcs_abort(pwp, pptr, 0, 1, 0)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1951
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1955
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1963
pmcs_get_device_handle(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1965
if (pptr->valid_device_id == 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1966
int result = pmcs_register_device(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1971
if (pptr->changed) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1981
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1991
if (ddi_get_lbolt() < pptr->config_stop) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1992
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1995
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1997
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1998
pptr->config_stop = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1999
pmcs_kill_changed(pwp, pptr, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2007
if (result || pptr->valid_device_id == 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2008
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2010
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2075
iport->pptr = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2096
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2120
pptr = pwp->root_phys + phynum;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2121
ASSERT(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2122
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2123
ASSERT(pptr->phynum == phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2128
pptr->iport = iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2134
if (!pptr->subsidiary) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2135
iport->pptr = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2136
iport->portid = pptr->portid;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2142
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2143
pmcs_add_phy_to_iport(iport, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2145
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL, "%s: found "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2147
(void *)pptr, inst, iport->refcnt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2217
pmcs_phy_t *pptr, *child;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2226
for (pptr = pwp->root_phys; pptr; pptr = pptr->sibling) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2227
if ((pptr->portid == portid) && (pptr != prev_primary)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2228
mutex_enter(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2233
if (pptr == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2240
iport->pptr = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2245
pptr->children = prev_primary->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2246
child = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2248
child->parent = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2251
pptr->ncphy = prev_primary->ncphy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2252
pptr->width = prev_primary->width;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2253
pptr->dtype = prev_primary->dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2254
pptr->pend_dtype = prev_primary->pend_dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2255
pptr->tolerates_sas2 = prev_primary->tolerates_sas2;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2256
pptr->atdt = prev_primary->atdt;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2257
pptr->portid = prev_primary->portid;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2258
pptr->link_rate = prev_primary->link_rate;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2259
pptr->configured = prev_primary->configured;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2260
pptr->iport = prev_primary->iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2261
pptr->target = prev_primary->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2262
if (pptr->target) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2263
pptr->target->phy = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2268
pmcs_update_phy_pm_props(pptr, pptr->att_port_pm_tmp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2269
pptr->tgt_port_pm_tmp, B_FALSE);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2271
pmcs_update_phy_pm_props(pptr, prev_primary->att_port_pm_tmp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2274
pmcs_update_phy_pm_props(pptr, prev_primary->att_port_pm,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2280
pptr->subsidiary = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2285
pptr->device_id = prev_primary->device_id;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2286
pptr->valid_device_id = prev_primary->valid_device_id;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2293
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2295
return (pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2426
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2542
for (pptr = pwp->root_phys; pptr; pptr = pptr->sibling) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2548
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2549
pmcs_clear_expander(pwp, pptr, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2550
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2610
pptr = pmcs_find_phy_needing_work(pwp, pwp->root_phys);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2611
if (pptr != NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2613
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2615
"but no work scheduled", pptr->path, pptr->dead,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2616
pptr->changed, pptr->configured);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2618
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2641
pmcs_find_phy_needing_work(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2645
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2646
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2648
if (pptr->changed || (pptr->dead && pptr->valid_device_id)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2649
return (pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2652
pnext = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2654
if (pptr->children) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2655
cphyp = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2656
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2662
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2665
pptr = pnext;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2758
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2765
pptr = pwp->root_phys;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2767
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2768
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2773
if ((pptr->dtype == NOTHING) || pptr->dead) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2774
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2775
pptr = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2779
if (pptr->changed) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2780
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2782
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2783
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2791
wwn = pmcs_barray2wwn(pptr->sas_address);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2792
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2798
pptr = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2802
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2805
pwp, iport, pptr) == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2807
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2812
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2813
pptr = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2850
pptr = iport->pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2852
if (pptr == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2861
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2862
wwn = pmcs_barray2wwn(pptr->sas_address);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2864
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2980
pmcs_configure_new_devices(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2984
pmcs_phy_t *pnext, *orig_pptr = pptr, *root_phy, *pchild;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2990
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2991
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2992
pnext = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2997
if ((pptr->pend_dtype != NEW) &&
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2998
(pptr->pend_dtype != pptr->dtype)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2999
pptr->dtype = pptr->pend_dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3002
if (pptr->changed == 0 || pptr->dead || pptr->configured) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3007
root_phy = pmcs_get_root_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3009
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3017
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3021
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3022
switch (pptr->dtype) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3024
pptr->changed = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3028
pptr->iport = iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3029
pmcs_new_tport(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3032
pmcs_configure_expander(pwp, pptr, iport);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3046
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3047
pptr = pnext;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3058
pptr = orig_pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3059
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3060
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3061
pnext = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3062
pchild = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3063
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3072
pptr = pnext;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3088
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3104
pptr = parent;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3105
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3107
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3109
pptr->changed = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3111
if (pptr->dtype == EXPANDER && pptr->level) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3112
pptr->width = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3114
if (pptr->children) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3115
pmcs_set_changed(pwp, pptr->children, changed,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3118
pptr = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3132
pmcs_phy_t *pptr = parent;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3134
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3135
pptr->link_rate = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3136
pptr->abort_sent = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3137
pptr->abort_pending = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3139
pptr->need_rl_ext = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3141
if (pptr->dead == 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3142
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3146
pptr->dead = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3148
if (pptr->children) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3149
pmcs_kill_changed(pwp, pptr->children, level + 1);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3159
pptr = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3167
pmcs_clear_phys(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3171
phyp = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3199
pmcs_clear_phy(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3201
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL, "%s: %s",
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3202
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3203
ASSERT(mutex_owned(&pptr->phy_lock));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3207
pptr->device_id = PMCS_INVALID_DEVICE_ID;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3209
pptr->ncphy = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3211
pptr->width = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3212
pptr->ds_recovery_retries = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3213
pptr->ds_prev_good_recoveries = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3214
pptr->last_good_recovery = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3215
pptr->prev_recovery = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3218
pptr->config_stop = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3219
pptr->spinup_hold = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3220
pptr->atdt = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3222
pptr->link_rate = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3223
pptr->valid_device_id = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3224
pptr->abort_sent = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3225
pptr->abort_pending = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3226
pptr->need_rl_ext = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3227
pptr->subsidiary = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3228
pptr->configured = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3229
pptr->deregister_wait = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3230
pptr->reenumerate = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3233
if (!IS_ROOT_PHY(pptr) && (pptr->dtype != NOTHING))
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3234
pptr->dead = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3235
pptr->changed = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3240
if (!IS_ROOT_PHY(pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3241
pptr->last_iport = pptr->iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3242
pptr->iport = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3255
pmcs_new_tport(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3257
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL, "%s: phy 0x%p @ %s",
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3258
__func__, (void *)pptr, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3260
if (pmcs_configure_phy(pwp, pptr) == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3264
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3265
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3267
(void *)pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3272
pptr->changed = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3283
if (pptr->target == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3284
if (IS_ROOT_PHY(pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3288
if (rphy == pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3294
if ((rphy->iport == pptr->iport) &&
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3297
pptr->target = rphy->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3299
pptr->target->phy = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3301
mutex_exit(&pptr->target->statlock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3304
pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3306
__func__, rphy->path, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3314
pmcs_reap_dead_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3326
if (pptr->target) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3327
mutex_enter(&pptr->target->statlock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3328
if (pmcs_phy_target_match(pptr) == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3329
mutex_exit(&pptr->target->statlock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3330
if (!IS_ROOT_PHY(pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3331
pmcs_dec_phy_ref_count(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3333
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3335
"(WWN mismatch)", __func__, (void *)pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3336
(void *)pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3337
pptr->target = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3341
if (!pmcs_assign_device(pwp, pptr->target)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3342
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3344
__func__, (void *)pptr->target);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3346
mutex_exit(&pptr->target->statlock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3354
pmcs_configure_phy(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3358
ASSERT(mutex_owned(&pptr->phy_lock));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3363
pptr->changed = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3368
if (pmcs_get_device_handle(pwp, pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3372
pptr->configured = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3374
switch (pptr->dtype) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3388
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL, "config_dev: %s "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3389
"dev %s " SAS_ADDR_FMT " dev id 0x%x lr 0x%x", dtype, pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3390
SAS_ADDR_PRT(pptr->sas_address), pptr->device_id, pptr->link_rate);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3399
pmcs_configure_expander(pmcs_hw_t *pwp, pmcs_phy_t *pptr, pmcs_iport_t *iport)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3414
if (IS_ROOT_PHY(pptr) && pptr->changed) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3415
pptr->config_stop = ddi_get_lbolt() +
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3418
pptr->changed = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3423
if (pptr->level == PMCS_MAX_XPND-1) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3424
pmcs_prt(pwp, PMCS_PRT_WARN, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3438
if (!IS_ROOT_PHY(pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3446
ctmp = pptr->parent->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3460
if (ctmp == pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3476
memcmp(ctmp->sas_address, pptr->sas_address, 8) == 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3484
pptr->parent->sas_address, 8) == 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3492
pptr->subsidiary = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3500
pptr->att_port_pm_tmp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3501
pptr->tgt_port_pm_tmp, B_TRUE);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3503
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3505
"(now %d wide)", __func__, pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3525
pptr->subsidiary = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3526
pptr->iport = iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3527
if (pmcs_get_device_handle(pwp, pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3530
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL, "Config expander %s "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3531
SAS_ADDR_FMT " dev id 0x%x lr 0x%x", pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3532
SAS_ADDR_PRT(pptr->sas_address), pptr->device_id, pptr->link_rate);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3537
nphy = pmcs_expander_get_nphy(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3539
if (nphy == 0 && ddi_get_lbolt() < pptr->config_stop) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3540
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3543
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3545
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3546
pptr->config_stop = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3547
pmcs_kill_changed(pwp, pptr, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3588
ctmp->parent = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3590
ctmp->level = pptr->level+1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3591
ctmp->portid = pptr->portid;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3607
result = pmcs_expander_content_discover(pwp, pptr, ctmp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3609
if (ddi_get_lbolt() < pptr->config_stop) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3610
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3613
pptr->config_stop = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3614
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3616
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3617
pmcs_kill_changed(pwp, pptr, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3635
if (pptr->children != NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3636
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3638
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3639
pmcs_add_dead_phys(pwp, pptr->children);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3645
pptr->children = clist;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3647
pptr->ncphy = nphy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3648
pptr->configured = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3653
if (pptr->level) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3654
pptr->width = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3660
pptr->iport = iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3661
pmcs_new_tport(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3688
pmcs_check_expander(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3694
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3695
"%s: check %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3701
pptr->changed = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3708
pptr->config_stop = ddi_get_lbolt() +
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3717
nphy = pmcs_expander_get_nphy(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3719
if ((nphy == 0) && (ddi_get_lbolt() < pptr->config_stop)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3720
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3723
pptr->config_stop = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3724
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3726
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3727
pmcs_kill_changed(pwp, pptr, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3735
if (nphy != pptr->ncphy) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3736
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3738
__func__, pptr->path, pptr->ncphy, nphy);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3743
pmcs_kill_changed(pwp, pptr, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3751
if (pptr->level == PMCS_MAX_XPND-1) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3760
ctmp = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3763
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3765
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3791
result = pmcs_expander_content_discover(pwp, pptr, local);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3794
if (ddi_get_lbolt() < pptr->config_stop) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3795
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3798
pptr->config_stop = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3799
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3801
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3802
pmcs_kill_changed(pwp, pptr, 0);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3828
ctmp = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4006
pmcs_check_expanders(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4010
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4011
"%s: %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4016
phyp = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4034
phyp = pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4053
pmcs_clear_expander(pmcs_hw_t *pwp, pmcs_phy_t *pptr, int level)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4058
ASSERT(mutex_owned(&pptr->phy_lock));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4059
ASSERT(pptr->level < PMCS_MAX_XPND - 1);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4061
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4062
"%s: checking %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4064
ctmp = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4069
if (pptr->dead) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4081
if (!pptr->dead) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4088
if (pptr->children) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4089
pmcs_add_dead_phys(pwp, pptr->children);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4092
pptr->children = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4099
if (!IS_ROOT_PHY(pptr)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4101
mutex_enter(&pptr->parent->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4103
ctmp = pptr->parent->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4105
mutex_exit(&pptr->parent->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4112
if (ctmp == pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4125
memcmp(ctmp->sas_address, pptr->sas_address,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4142
pmcs_clear_phy(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4155
pmcs_expander_get_nphy(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4169
if (!pptr->iport || !pptr->valid_device_id) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4170
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4171
"%s: Can't reach PHY %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4175
pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4181
pwrk->dtype = pptr->dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4182
pwrk->xp = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4188
pmcs_prt(pwp, PMCS_PRT_DEBUG2, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4196
msg[2] = LE_32(pptr->device_id);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4216
pmcs_hold_iport(pptr->iport);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4217
iport = pptr->iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4222
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4227
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4230
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4232
if (pmcs_abort(pwp, pptr, htag, 0, 1)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4233
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4254
pmcs_prt(pwp, PMCS_PRT_DEBUG_UNDERFLOW, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4290
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4292
__func__, pptr->path, nag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4301
pmcs_xscsi_t *xp = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4303
pmcs_prt(pwp, PMCS_PRT_DEBUG_DEV_STATE, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4305
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4316
pmcs_start_dev_state_recovery(xp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4329
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4334
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4346
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4351
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4355
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4357
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4362
pptr->tolerates_sas2 = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4367
bcopy(srgr, &pptr->rg_resp, sizeof (smp_report_general_resp_t));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4368
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4369
"%s has %d phys and %s SAS2", pptr->path, result,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4370
pptr->tolerates_sas2? "tolerates" : "does not tolerate");
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4386
pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4431
msg[6] = BE_32((pptr->phynum << 16));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4463
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4465
if (pmcs_abort(pwp, pptr, htag, 0, 1)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4466
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4494
pmcs_prt(pwp, PMCS_PRT_DEBUG_UNDERFLOW, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4523
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4525
__func__, pptr->path, nag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4534
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4540
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4557
bcopy(sdr, &pptr->disc_resp, sizeof (smp_discover_resp_t));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4572
pptr->virtual = sdr->sdr_virtual_phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4577
pptr->routing_attr = sdr->sdr_routing_attr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4581
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4584
pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4595
pptr->dtype = SATA;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4597
pptr->dtype = SAS;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4599
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4601
__func__, pptr->path, tgt_support, ini_support);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4604
switch (pptr->routing_attr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4608
pptr->routing_method = SMP_ROUTING_DIRECT;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4611
pptr->routing_method = 0xff; /* Invalid method */
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4614
pmcs_update_phy_pm_props(pptr, (1ULL << pptr->phynum),
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4619
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4622
pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4639
pmcs_prt(pwp, PMCS_PRT_DEBUG3, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4641
"expander (%s)", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4642
pptr->dtype = NOTHING;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4645
pptr->dtype = EXPANDER;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4648
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4650
pptr->path, tgt_support, ini_support);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4651
pptr->dtype = EXPANDER;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4653
if (pptr->routing_attr == SMP_ROUTING_DIRECT) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4654
pptr->routing_method = 0xff; /* Invalid method */
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4656
pptr->routing_method = pptr->routing_attr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4658
pmcs_update_phy_pm_props(pptr, (1ULL << pptr->phynum),
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4662
pptr->dtype = NOTHING;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4665
if (pptr->dtype != NOTHING) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4674
if (expander->tolerates_sas2 && pptr->dtype == SATA &&
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4676
(void) memcpy(pptr->sas_address,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4679
(void) memcpy(pptr->sas_address, att_sas_address, 8);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4681
pptr->atdt = (sdr->sdr_attached_device_type);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4689
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4691
"to %s being slower", pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4699
pptr->link_rate = sdr->sdr_negotiated_logical_link_rate;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4700
pptr->state.prog_min_rate = sdr->sdr_prog_min_phys_link_rate;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4701
pptr->state.hw_min_rate = sdr->sdr_hw_min_phys_link_rate;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4702
pptr->state.prog_max_rate = sdr->sdr_prog_max_phys_link_rate;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4703
pptr->state.hw_max_rate = sdr->sdr_hw_max_phys_link_rate;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4704
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4706
pmcs_clear_phy(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4874
pmcs_abort(pmcs_hw_t *pwp, pmcs_phy_t *pptr, uint32_t tag, int all_cmds,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4883
if (pptr->abort_all_start) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4884
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL, "%s: ABORT_ALL for "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4885
"(%s) already in progress.", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4889
switch (pptr->dtype) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4904
pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4907
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL, pmcs_nowrk, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4911
pwrk->dtype = pptr->dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4912
pwrk->xp = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4917
if (pptr->valid_device_id == 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4919
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4925
msg[2] = LE_32(pptr->device_id);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4931
pptr->abort_all_start = gethrtime();
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4942
pptr->abort_all_start = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4943
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL, pmcs_nomsg, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4949
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4951
__func__, pmcs_get_typename(pptr->dtype), pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4954
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4956
__func__, tag, pmcs_get_typename(pptr->dtype), pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4968
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4971
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4972
tgt = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4975
pptr->abort_all_start = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4976
cv_signal(&pptr->abort_all_cv);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4981
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4984
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4993
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4997
PMCS_DEVICE_STATE_IN_RECOVERY, pptr, tgt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5018
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5021
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5033
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5037
PMCS_DEVICE_STATE_OPERATIONAL, pptr, tgt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5052
pmcs_ssp_tmf(pmcs_hw_t *pwp, pmcs_phy_t *pptr, uint8_t tmf, uint32_t tag,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5065
pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5067
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL, pmcs_nowrk, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5079
msg[2] = LE_32(pptr->device_id);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5095
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL, pmcs_nomsg, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5100
pwrk->dtype = pptr->dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5101
xp = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5110
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp, "%s: Not "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5119
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5121
pmcs_tmf2str(tmf), pptr->path, (unsigned long long) lun, tag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5125
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5133
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5134
xp = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5142
pmcs_start_dev_state_recovery(xp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5149
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5152
pptr->path, (unsigned long long) lun);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5171
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5177
pptr, xp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5187
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5193
pptr, xp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5199
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5207
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5230
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5235
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5240
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5245
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5250
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5255
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5260
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5266
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, xp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5278
pmcs_sata_abort_ncq(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5288
pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5296
msg[2] = LE_32(pptr->device_id);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5311
pwrk->dtype = pptr->dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5312
pwrk->xp = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5325
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5328
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5330
tgt = pptr->target;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5332
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt, pmcs_timeo, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5338
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5340
"dev state recovery", __func__, (void *)pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5355
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt, "%s: Trying "
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5358
(void) pmcs_send_err_recovery_cmd(pwp, ds, pptr, tgt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5370
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5373
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, tgt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5377
pptr->need_rl_ext = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5706
pmcs_phy_name(pmcs_hw_t *pwp, pmcs_phy_t *pptr, char *obuf, size_t olen)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5708
if (pptr->parent) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5709
pmcs_phy_name(pwp, pptr->parent, obuf, olen);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5710
(void) snprintf(obuf, olen, "%s.%02x", obuf, pptr->phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5712
(void) snprintf(obuf, olen, "pp%02x", pptr->phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5723
pmcs_phy_t *pptr, *pchild;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5726
pptr = parent;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5728
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5729
if (pptr->valid_device_id && (pptr != phyp) &&
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5730
(pptr->device_id == device_id)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5739
if ((phyp->parent == pptr->parent) &&
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5741
pptr->sas_address, 8) == 0) && (phyp->width > 1)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5746
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5747
phyp->children = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5754
phyp->ncphy = pptr->ncphy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5759
pptr->children = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5760
pptr->subsidiary = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5761
pptr->ncphy = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5762
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5763
pmcs_prt(pptr->pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5765
__func__, device_id, pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5769
pmcs_prt(pptr->pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5772
pptr->path, device_id);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5776
if (pptr->children) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5777
rval = pmcs_validate_devid(pptr->children, phyp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5784
pptr = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5841
pmcs_phy_t *pptr, *matched_phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5845
pptr = pwp->root_phys;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5846
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5847
matched_phy = pmcs_find_phy_by_wwn_impl(pptr, ebstr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5853
pptr = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5873
pmcs_phy_t *pptr, *pnext, *pchild;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5876
pptr = pwp->root_phys;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5878
pptr = root;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5881
while (pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5882
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5887
if ((pptr->dead) || (!pptr->valid_device_id)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5891
if (pptr->iport != iport) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5895
wwn = pmcs_barray2wwn(pptr->sas_address);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5898
return (pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5901
if (pptr->children) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5902
pchild = pptr->children;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5903
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5909
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5913
pnext = pptr->sibling;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5914
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5915
pptr = pnext;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6109
pmcs_kill_device(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6113
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL, "kill %s device @ %s",
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6114
pmcs_get_typename(pptr->dtype), pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6123
if (pptr->abort_all_start) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6124
while (pptr->abort_all_start) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6125
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6127
__func__, (void *)pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6128
cv_wait(&pptr->abort_all_cv, &pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6130
} else if (pptr->abort_pending) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6131
rval = pmcs_abort(pwp, pptr, pptr->device_id, 1, 1);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6133
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6135
"PHY 0x%p", __func__, rval, (void *)pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6138
pptr->abort_pending = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6141
if (pptr->valid_device_id) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6142
pmcs_deregister_device(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6145
PHY_CHANGED(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6147
pptr->valid_device_id = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6160
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6162
for (pptr = pwp->root_phys; pptr; pptr = pptr->sibling) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6163
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6164
if (pptr->hw_event_ack == 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6165
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6174
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6182
msg[2] = LE_32(pptr->hw_event_ack);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6185
pwrk->dtype = pptr->dtype;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6186
pptr->hw_event_ack = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6189
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
630
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
634
pptr = pwp->root_phys + phynum;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
635
if (pptr == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
642
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
645
pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
647
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
648
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL, pmcs_nowrk, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
657
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
659
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL, pmcs_nomsg, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
681
pptr->state.prog_min_rate = (lowbit((ulong_t)speed) - 1);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
682
pptr->state.prog_max_rate = (highbit((ulong_t)speed) - 1);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
683
pptr->state.hw_min_rate = PMCS_HW_MIN_LINK_RATE;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
684
pptr->state.hw_max_rate = PMCS_HW_MAX_LINK_RATE;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
686
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
691
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL, pmcs_timeo, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7124
pmcs_phy_t *pptr = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7144
pptr = pwrk->phy;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7148
if ((pwrk->abt_htag == PMCS_ABT_HTAG_ALL) && (pptr != NULL)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7149
mutex_enter(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7150
if (pptr->abort_all_start) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7151
pptr->abort_all_start = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7152
cv_signal(&pptr->abort_all_cv);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7154
mutex_exit(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
737
pmcs_reset_phy(pmcs_hw_t *pwp, pmcs_phy_t *pptr, uint8_t type)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
751
ASSERT(mutex_owned(&pptr->phy_lock));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
754
phynum = pptr->phynum;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
755
level = pptr->level;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
757
pdevid = pptr->parent->device_id;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
758
} else if ((level == 0) && (pptr->dtype == EXPANDER)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
759
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
760
"%s: Not resetting HBA PHY @ %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
764
if (!pptr->iport || !pptr->valid_device_id) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
765
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, pptr->target,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
766
"%s: Can't reach PHY %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
770
pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
773
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL, pmcs_nowrk, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7920
pmcs_phy_t *pptr, *next_pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7928
for (pptr = list_head(&iport->phys); pptr != NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7929
pptr = next_pptr) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7930
next_pptr = list_next(&iport->phys, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7931
mutex_enter(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7932
if (pptr->phy_stats != NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7933
kstat_delete(pptr->phy_stats);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7934
pptr->phy_stats = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7936
pptr->iport = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7937
pmcs_update_phy_pm_props(pptr, pptr->att_port_pm_tmp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7938
pptr->tgt_port_pm_tmp, B_FALSE);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7939
mutex_exit(&pptr->phy_lock);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7941
list_remove(&iport->phys, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
807
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
809
__func__, mbar, pptr->parent->path, pptr->phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
8140
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
8142
for (pptr = pwp->root_phys; pptr; pptr = pptr->sibling) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
8143
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
8144
if (pptr->deregister_wait) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
8145
pmcs_deregister_device(pwp, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
8147
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
827
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
828
"%s: sending %s to %s", __func__, mbar, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
837
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL, pmcs_nomsg, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
843
pmcs_hold_iport(pptr->iport);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
844
iport = pptr->iport;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
848
pmcs_unlock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
853
pmcs_lock_phy(pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
855
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL, pmcs_timeo, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
857
if (pmcs_abort(pwp, pptr, htag, 0, 0)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
858
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
862
pmcs_prt(pwp, PMCS_PRT_DEBUG_CONFIG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
878
pmcs_prt(pwp, PMCS_PRT_DEBUG, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
880
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
895
pmcs_phy_t *pptr;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
899
pptr = pwp->root_phys + phynum;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
900
if (pptr == NULL) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
907
pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
910
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
921
pmcs_prt(pwp, PMCS_PRT_ERR, pptr, NULL,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
938
pptr, NULL, pmcs_timeo, __func__);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
944
pptr->configured = 0;
usr/src/uts/common/io/timod.c
1102
pptr = (union T_primitives *)
usr/src/uts/common/io/timod.c
1104
pptr->error_ack.ERROR_prim = T_INFO_REQ;
usr/src/uts/common/io/timod.c
1105
pptr->error_ack.TLI_error = TSYSERR;
usr/src/uts/common/io/timod.c
1106
pptr->error_ack.UNIX_error = EAGAIN;
usr/src/uts/common/io/timod.c
1107
pptr->error_ack.PRIM_type = T_ERROR_ACK;
usr/src/uts/common/io/timod.c
1114
pptr = (union T_primitives *)
usr/src/uts/common/io/timod.c
1276
if (pptr->type == T_EXDATA_IND)
usr/src/uts/common/io/timod.c
1454
union T_primitives *pptr;
usr/src/uts/common/io/timod.c
1508
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/io/timod.c
1509
switch (pptr->type) {
usr/src/uts/common/io/timod.c
1586
union T_primitives *pptr;
usr/src/uts/common/io/timod.c
1940
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/io/timod.c
1941
switch (pptr->type) {
usr/src/uts/common/io/timod.c
1948
if (pptr->type == T_EXDATA_REQ)
usr/src/uts/common/io/timod.c
2075
tp->tim_saved_prim = pptr->type;
usr/src/uts/common/io/timod.c
573
union T_primitives *pptr;
usr/src/uts/common/io/timod.c
607
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/io/timod.c
608
switch (pptr->type) {
usr/src/uts/common/io/timod.c
686
union T_primitives *pptr;
usr/src/uts/common/io/timod.c
771
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/io/timod.c
772
switch (pptr->type) {
usr/src/uts/common/io/timod.c
792
tp->tim_saved_prim == pptr->error_ack.ERROR_prim) {
usr/src/uts/common/io/timod.c
807
if (blen < sizeof (pptr->ok_ack)) {
usr/src/uts/common/io/timod.c
815
if (pptr->ok_ack.CORRECT_prim == T_UNBIND_REQ)
usr/src/uts/common/io/timod.c
819
tp->tim_saved_prim == pptr->ok_ack.CORRECT_prim) {
usr/src/uts/common/io/timod.c
885
tim_send_reply(q, mp, tp, pptr->ok_ack.CORRECT_prim);
usr/src/uts/common/io/timod.c
974
struct T_info_ack *tia = (struct T_info_ack *)pptr;
usr/src/uts/common/io/tirdwr.c
211
union T_primitives *pptr;
usr/src/uts/common/io/tirdwr.c
223
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/io/tirdwr.c
225
pptr->type = T_ORDREL_REQ;
usr/src/uts/common/io/tirdwr.c
244
union T_primitives *pptr;
usr/src/uts/common/io/tirdwr.c
275
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/io/tirdwr.c
277
switch (pptr->type) {
usr/src/uts/common/io/tirdwr.c
381
union T_primitives *pptr;
usr/src/uts/common/io/tirdwr.c
387
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/io/tirdwr.c
390
switch (pptr->type) {
usr/src/uts/common/io/tirdwr.c
423
union T_primitives *pptr;
usr/src/uts/common/io/tirdwr.c
431
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/io/tirdwr.c
432
switch (pptr->type) {
usr/src/uts/common/ktli/t_kconnect.c
169
pptr = (union T_primitives *)bp->b_rptr;
usr/src/uts/common/ktli/t_kconnect.c
170
switch (pptr->type) {
usr/src/uts/common/ktli/t_kconnect.c
178
hdrsz < (pptr->conn_con.OPT_length +
usr/src/uts/common/ktli/t_kconnect.c
179
pptr->conn_con.OPT_offset) ||
usr/src/uts/common/ktli/t_kconnect.c
180
hdrsz < (pptr->conn_con.RES_length +
usr/src/uts/common/ktli/t_kconnect.c
181
pptr->conn_con.RES_offset)) {
usr/src/uts/common/ktli/t_kconnect.c
191
len = MIN(pptr->conn_con.RES_length,
usr/src/uts/common/ktli/t_kconnect.c
193
bcopy(bp->b_rptr + pptr->conn_con.RES_offset,
usr/src/uts/common/ktli/t_kconnect.c
197
len = MIN(pptr->conn_con.OPT_length,
usr/src/uts/common/ktli/t_kconnect.c
199
bcopy(bp->b_rptr + pptr->conn_con.OPT_offset,
usr/src/uts/common/ktli/t_kconnect.c
222
error = pptr->discon_ind.DISCON_reason;
usr/src/uts/common/ktli/t_kconnect.c
75
union T_primitives *pptr;
usr/src/uts/common/ktli/t_krcvudat.c
115
pptr = (union T_primitives *)bp->b_rptr;
usr/src/uts/common/ktli/t_krcvudat.c
116
switch (pptr->type) {
usr/src/uts/common/ktli/t_krcvudat.c
125
hdrsz < (pptr->unitdata_ind.OPT_length +
usr/src/uts/common/ktli/t_krcvudat.c
126
pptr->unitdata_ind.OPT_offset) ||
usr/src/uts/common/ktli/t_krcvudat.c
127
hdrsz < (pptr->unitdata_ind.SRC_length +
usr/src/uts/common/ktli/t_krcvudat.c
128
pptr->unitdata_ind.SRC_offset)) {
usr/src/uts/common/ktli/t_krcvudat.c
137
len = MIN(pptr->unitdata_ind.SRC_length,
usr/src/uts/common/ktli/t_krcvudat.c
139
bcopy(bp->b_rptr + pptr->unitdata_ind.SRC_offset,
usr/src/uts/common/ktli/t_krcvudat.c
143
len = MIN(pptr->unitdata_ind.OPT_length,
usr/src/uts/common/ktli/t_krcvudat.c
145
bcopy(bp->b_rptr + pptr->unitdata_ind.OPT_offset,
usr/src/uts/common/ktli/t_krcvudat.c
240
hdrsz < (pptr->uderror_ind.OPT_length +
usr/src/uts/common/ktli/t_krcvudat.c
241
pptr->uderror_ind.OPT_offset) ||
usr/src/uts/common/ktli/t_krcvudat.c
242
hdrsz < (pptr->uderror_ind.DEST_length +
usr/src/uts/common/ktli/t_krcvudat.c
243
pptr->uderror_ind.DEST_offset)) {
usr/src/uts/common/ktli/t_krcvudat.c
249
if (pptr->uderror_ind.DEST_length >
usr/src/uts/common/ktli/t_krcvudat.c
251
pptr->uderror_ind.OPT_length >
usr/src/uts/common/ktli/t_krcvudat.c
261
bcopy(bp->b_rptr + pptr->uderror_ind.DEST_offset,
usr/src/uts/common/ktli/t_krcvudat.c
263
(size_t)pptr->uderror_ind.DEST_length);
usr/src/uts/common/ktli/t_krcvudat.c
264
unitdata->addr.len = pptr->uderror_ind.DEST_length;
usr/src/uts/common/ktli/t_krcvudat.c
266
bcopy(bp->b_rptr + pptr->uderror_ind.OPT_offset,
usr/src/uts/common/ktli/t_krcvudat.c
268
(size_t)pptr->uderror_ind.OPT_length);
usr/src/uts/common/ktli/t_krcvudat.c
269
unitdata->opt.len = pptr->uderror_ind.OPT_length;
usr/src/uts/common/ktli/t_krcvudat.c
271
*uderr = pptr->uderror_ind.ERROR_type;
usr/src/uts/common/ktli/t_krcvudat.c
285
pptr->type);
usr/src/uts/common/ktli/t_krcvudat.c
76
union T_primitives *pptr;
usr/src/uts/common/ktli/t_kutil.c
117
union T_primitives *pptr;
usr/src/uts/common/ktli/t_kutil.c
135
pptr = (void *)bp->b_rptr;
usr/src/uts/common/ktli/t_kutil.c
136
switch (pptr->type) {
usr/src/uts/common/ktli/t_kutil.c
138
if (msgsz < TOKACKSZ || pptr->ok_ack.CORRECT_prim != type)
usr/src/uts/common/ktli/t_kutil.c
148
if (pptr->error_ack.TLI_error == TSYSERR)
usr/src/uts/common/ktli/t_kutil.c
149
error = pptr->error_ack.UNIX_error;
usr/src/uts/common/ktli/t_kutil.c
151
error = t_tlitosyserr(pptr->error_ack.TLI_error);
usr/src/uts/common/os/sunpm.c
5054
pm_thresh_rec_t *pptr, *ptr;
usr/src/uts/common/os/sunpm.c
5058
for (pptr = NULL, ptr = pm_thresh_head;
usr/src/uts/common/os/sunpm.c
5059
ptr; pptr = ptr, ptr = ptr->ptr_next) {
usr/src/uts/common/os/sunpm.c
5063
if (pptr) {
usr/src/uts/common/os/sunpm.c
5064
pptr->ptr_next = rp;
usr/src/uts/common/os/sunpm.c
6171
pm_thresh_rec_t *pptr, *ptr;
usr/src/uts/common/os/sunpm.c
6174
for (pptr = NULL, ptr = pm_thresh_head; ptr; ptr = ptr->ptr_next) {
usr/src/uts/common/os/sunpm.c
6176
if (pptr) {
usr/src/uts/common/os/sunpm.c
6177
pptr->ptr_next = ptr->ptr_next;
usr/src/uts/common/os/sunpm.c
6185
pptr = ptr;
usr/src/uts/common/rpc/clnt_clts.c
726
union T_primitives *pptr;
usr/src/uts/common/rpc/clnt_clts.c
728
pptr = (union T_primitives *)resp->b_rptr;
usr/src/uts/common/rpc/clnt_clts.c
729
bcopy(resp->b_rptr + pptr->unitdata_ind.SRC_offset, sin->buf,
usr/src/uts/common/rpc/clnt_clts.c
730
pptr->unitdata_ind.SRC_length);
usr/src/uts/common/rpc/clnt_clts.c
731
sin->len = pptr->unitdata_ind.SRC_length;
usr/src/uts/common/rpc/rpcmod.c
443
struct T_info_ack *pptr;
usr/src/uts/common/rpc/rpcmod.c
447
pptr = (struct T_info_ack *)mp->b_rptr;
usr/src/uts/common/rpc/rpcmod.c
448
switch (pptr->PRIM_type) {
usr/src/uts/common/rpc/rpcmod.c
475
struct T_info_ack *pptr;
usr/src/uts/common/rpc/rpcmod.c
524
pptr = (struct T_info_ack *)t->info_ack->b_rptr;
usr/src/uts/common/rpc/rpcmod.c
526
if (pptr->SERV_type == T_CLTS) {
usr/src/uts/common/rpc/rpcmod.c
696
union T_primitives *pptr;
usr/src/uts/common/rpc/rpcmod.c
717
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/rpc/rpcmod.c
722
if (pptr->type == T_UNITDATA_IND) {
usr/src/uts/common/rpc/rpcmod.c
742
hdrsz < (pptr->unitdata_ind.OPT_length +
usr/src/uts/common/rpc/rpcmod.c
743
pptr->unitdata_ind.OPT_offset) ||
usr/src/uts/common/rpc/rpcmod.c
744
hdrsz < (pptr->unitdata_ind.SRC_length +
usr/src/uts/common/rpc/rpcmod.c
745
pptr->unitdata_ind.SRC_offset)) {
usr/src/uts/common/rpc/rpcmod.c
787
} else if (pptr->type == T_UDERROR_IND) {
usr/src/uts/common/rpc/rpcmod.c
795
hdrsz < (pptr->uderror_ind.OPT_length +
usr/src/uts/common/rpc/rpcmod.c
796
pptr->uderror_ind.OPT_offset) ||
usr/src/uts/common/rpc/rpcmod.c
797
hdrsz < (pptr->uderror_ind.DEST_length +
usr/src/uts/common/rpc/rpcmod.c
798
pptr->uderror_ind.DEST_offset)) {
usr/src/uts/common/rpc/svc_clts.c
280
union T_primitives *pptr;
usr/src/uts/common/rpc/svc_clts.c
301
pptr = (union T_primitives *)mp->b_rptr;
usr/src/uts/common/rpc/svc_clts.c
302
if (pptr->type != T_UNITDATA_IND) {
usr/src/uts/common/rpc/svc_clts.c
310
hdrsz < (pptr->unitdata_ind.OPT_offset +
usr/src/uts/common/rpc/svc_clts.c
311
pptr->unitdata_ind.OPT_length) ||
usr/src/uts/common/rpc/svc_clts.c
312
hdrsz < (pptr->unitdata_ind.SRC_offset +
usr/src/uts/common/rpc/svc_clts.c
313
pptr->unitdata_ind.SRC_length)) {
usr/src/uts/common/rpc/svc_clts.c
320
if (pptr->unitdata_ind.SRC_length <= 0) {
usr/src/uts/common/rpc/svc_clts.c
328
pptr->unitdata_ind.SRC_offset;
usr/src/uts/common/rpc/svc_clts.c
329
clone_xprt->xp_rtaddr.len = pptr->unitdata_ind.SRC_length;
usr/src/uts/common/rpc/svc_clts.c
337
if (pptr->unitdata_ind.OPT_length && pptr->unitdata_ind.OPT_offset) {
usr/src/uts/common/rpc/svc_clts.c
339
pptr->unitdata_ind.OPT_offset;
usr/src/uts/common/sys/fibre-channel/ulp/fcpvar.h
1379
if (!((pptr)->port_state & FCP_STATE_FCA_IS_NODMA)) { \
usr/src/uts/common/sys/fibre-channel/ulp/fcpvar.h
1389
if (!((pptr)->port_state & FCP_STATE_FCA_IS_NODMA)) { \
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs.h
244
pmcs_phy_t *pptr; /* pointer to this port's primary phy */
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_def.h
419
#define PHY_TYPE(pptr) \
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_def.h
420
(((pptr)->dtype == NOTHING)? "NOTHING" : \
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_def.h
421
(((pptr)->dtype == SATA)? "SATA" : \
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_def.h
422
(((pptr)->dtype == SAS)? "SAS" : "EXPANDER")))
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_def.h
424
#define IS_ROOT_PHY(pptr) (pptr->parent == NULL)
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_proto.h
311
pmcs_phy_t *pmcs_promote_next_phy(pmcs_phy_t *pptr);
usr/src/uts/intel/io/vmm/intel/vmx.c
3390
uint32_t *pptr;
usr/src/uts/intel/io/vmm/intel/vmx.c
3394
pptr = NULL;
usr/src/uts/intel/io/vmm/intel/vmx.c
3399
pptr = &vmx->cap[vcpu].proc_ctls;
usr/src/uts/intel/io/vmm/intel/vmx.c
3400
baseval = *pptr;
usr/src/uts/intel/io/vmm/intel/vmx.c
3407
pptr = &vmx->cap[vcpu].proc_ctls;
usr/src/uts/intel/io/vmm/intel/vmx.c
3408
baseval = *pptr;
usr/src/uts/intel/io/vmm/intel/vmx.c
3416
pptr = &vmx->cap[vcpu].proc_ctls;
usr/src/uts/intel/io/vmm/intel/vmx.c
3417
baseval = *pptr;
usr/src/uts/intel/io/vmm/intel/vmx.c
3425
pptr = &vmx->cap[vcpu].proc_ctls2;
usr/src/uts/intel/io/vmm/intel/vmx.c
3426
baseval = *pptr;
usr/src/uts/intel/io/vmm/intel/vmx.c
3436
pptr = &vmx->cap[vcpu].exc_bitmap;
usr/src/uts/intel/io/vmm/intel/vmx.c
3437
baseval = *pptr;
usr/src/uts/intel/io/vmm/intel/vmx.c
3450
if (pptr != NULL) {
usr/src/uts/intel/io/vmm/intel/vmx.c
3464
*pptr = baseval;
usr/src/uts/sun4/os/intr.c
459
struct intr_dist **pptr;
usr/src/uts/sun4/os/intr.c
468
for (iptr = *phead, pptr = phead; iptr != NULL;
usr/src/uts/sun4/os/intr.c
469
pptr = &iptr->next, iptr = iptr->next) {
usr/src/uts/sun4/os/intr.c
476
*pptr = new;