Symbol: fptr
usr/src/cmd/cmd-crypto/tpmadm/main.c
61
cmdfunc_t fptr = NULL;
usr/src/cmd/cmd-crypto/tpmadm/main.c
84
fptr = p->func;
usr/src/cmd/cmd-crypto/tpmadm/main.c
88
if (fptr == NULL) {
usr/src/cmd/cmd-crypto/tpmadm/main.c
95
ret = fptr(hContext, hTPM, argc, argv);
usr/src/cmd/cron/cron.c
2169
FILE *fptr;
usr/src/cmd/cron/cron.c
2438
(fptr = fdopen(fd, "w")) == NULL) {
usr/src/cmd/cron/cron.c
2446
strlen(e->of.ct.input), fptr)) !=
usr/src/cmd/cron/cron.c
2452
(void) fclose(fptr);
usr/src/cmd/cron/cron.c
2455
if (fseek(fptr, (off_t)0, SEEK_SET) != -1) {
usr/src/cmd/cron/cron.c
2463
(void) fclose(fptr);
usr/src/cmd/csplit/csplit.c
356
static char *fptr;
usr/src/cmd/csplit/csplit.c
364
if (fptr == 0)
usr/src/cmd/csplit/csplit.c
365
for (fptr = file; *fptr != '\0'; fptr++)
usr/src/cmd/csplit/csplit.c
367
(void) sprintf(fptr, "%.*d", fiwidth, ctr++);
usr/src/cmd/csplit/csplit.c
370
if (strlen(fptr) > fiwidth) {
usr/src/cmd/csplit/csplit.c
399
(void) sprintf(fptr, "%.*d", fiwidth, (ctr-2));
usr/src/cmd/cxgbetool/cxgbetool.c
545
FILE *fptr = NULL;
usr/src/cmd/cxgbetool/cxgbetool.c
549
fptr = fopen(in_file, "rb");
usr/src/cmd/cxgbetool/cxgbetool.c
550
if (!fptr) {
usr/src/cmd/cxgbetool/cxgbetool.c
555
rc = fseek(fptr, 0, SEEK_END);
usr/src/cmd/cxgbetool/cxgbetool.c
561
*buf_size = ftell(fptr);
usr/src/cmd/cxgbetool/cxgbetool.c
562
rc = fseek(fptr, 0, SEEK_SET);
usr/src/cmd/cxgbetool/cxgbetool.c
575
count = fread(*buf, 1, *buf_size, fptr);
usr/src/cmd/cxgbetool/cxgbetool.c
582
if (fptr)
usr/src/cmd/cxgbetool/cxgbetool.c
583
fclose(fptr);
usr/src/cmd/format/menu_defect.c
534
FILE *fptr;
usr/src/cmd/format/menu_defect.c
562
if ((fptr = fopen(str, "w+")) == NULL) {
usr/src/cmd/format/menu_defect.c
570
(void) fprintf(fptr, "0x%08x%8d 0x%08x\n",
usr/src/cmd/format/menu_defect.c
579
(void) fprintf(fptr, "%4d%8d%7d%8d%8d%8d\n",
usr/src/cmd/format/menu_defect.c
587
(void) fclose(fptr);
usr/src/cmd/format/menu_defect.c
609
FILE *fptr;
usr/src/cmd/format/menu_defect.c
651
if ((fptr = fopen(filename, "r")) == NULL) {
usr/src/cmd/format/menu_defect.c
659
items = fscanf(fptr, "0x%x%d 0x%x\n", &magicno,
usr/src/cmd/format/menu_defect.c
701
items = fscanf(fptr, "%*d%hd%hd%d%hd%hd\n", &dptr->cyl,
usr/src/cmd/format/menu_defect.c
732
(void) fclose(fptr);
usr/src/cmd/fs.d/preenlib.c
148
int (*fptr)();
usr/src/cmd/fs.d/preenlib.c
158
fptr = (int (*)())dlsym(dlhandle, BUILD_NAME);
usr/src/cmd/fs.d/preenlib.c
159
if (fptr == NULL) {
usr/src/cmd/fs.d/preenlib.c
164
(*fptr)(name, dkiop, dp);
usr/src/cmd/grpck/grpck.c
126
if ((fptr = fopen(argv[1], "r")) == NULL) {
usr/src/cmd/grpck/grpck.c
156
while (!feof(fptr) && !ferror(fptr)) {
usr/src/cmd/grpck/grpck.c
159
while (fgets(buf_off, (bufsize - buf_len), fptr) != NULL) {
usr/src/cmd/grpck/grpck.c
161
if (buf[buf_len - 1] == '\n' || feof(fptr))
usr/src/cmd/grpck/grpck.c
65
FILE *fptr;
usr/src/cmd/ldap/common/convutf8.c
106
if (fptr == NULL) /* already in initial state */
usr/src/cmd/ldap/common/convutf8.c
108
fptr = NULL;
usr/src/cmd/ldap/common/convutf8.c
68
const char *fptr;
usr/src/cmd/ldap/common/convutf8.c
96
fptr = src;
usr/src/cmd/ldap/common/convutf8.c
99
ret = iconv(cd, &fptr, &ileft, &tptr, &oleft);
usr/src/cmd/mail/doopen.c
38
FILE *fptr;
usr/src/cmd/mail/doopen.c
42
(fptr = fopen(file, type)) == NULL) {
usr/src/cmd/mail/doopen.c
51
return(fptr);
usr/src/cmd/mdb/common/kmdb/kmdb_kvm.c
308
int (*fptr)(uintptr_t, struct as *, physaddr_t *);
usr/src/cmd/mdb/common/kmdb/kmdb_kvm.c
310
fptr = (int (*)(uintptr_t, struct as *, physaddr_t *))
usr/src/cmd/mdb/common/kmdb/kmdb_kvm.c
313
if ((fptr != NULL) && ((*fptr)(va, asp, pap) == 0))
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
872
int (*fptr)(uintptr_t, struct as *, physaddr_t *);
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
896
fptr = (int (*)(uintptr_t, struct as *, physaddr_t *))
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
899
if ((fptr != NULL) && ((*fptr)(va, asp, pap) == 0))
usr/src/cmd/oamuser/user/userdefs.c
228
dispusrdef(FILE *fptr, unsigned flags, char *usertype)
usr/src/cmd/oamuser/user/userdefs.c
236
outcount += fprintf(fptr, "group=%s,%ld ",
usr/src/cmd/oamuser/user/userdefs.c
242
outcount += fprintf(fptr, "project=%s,%ld ",
usr/src/cmd/oamuser/user/userdefs.c
248
outcount += fprintf(fptr, "basedir=%s ", deflts->defparent);
usr/src/cmd/oamuser/user/userdefs.c
253
outcount += fprintf(fptr, "rid=%ld ", deflts->defrid);
usr/src/cmd/oamuser/user/userdefs.c
258
outcount += fprintf(fptr, "skel=%s ", deflts->defskel);
usr/src/cmd/oamuser/user/userdefs.c
263
outcount += fprintf(fptr, "shell=%s ", deflts->defshell);
usr/src/cmd/oamuser/user/userdefs.c
268
outcount += fprintf(fptr, "inactive=%d ", deflts->definact);
usr/src/cmd/oamuser/user/userdefs.c
273
outcount += fprintf(fptr, "expire=%s ", deflts->defexpire);
usr/src/cmd/oamuser/user/userdefs.c
278
outcount += fprintf(fptr, "auths=%s ", deflts->defauth);
usr/src/cmd/oamuser/user/userdefs.c
283
outcount += fprintf(fptr, "profiles=%s ", deflts->defprof);
usr/src/cmd/oamuser/user/userdefs.c
289
outcount += fprintf(fptr, "roles=%s ", deflts->defrole);
usr/src/cmd/oamuser/user/userdefs.c
294
outcount += fprintf(fptr, "limitpriv=%s ", deflts->deflimpriv);
usr/src/cmd/oamuser/user/userdefs.c
299
outcount += fprintf(fptr, "defaultpriv=%s ",
usr/src/cmd/oamuser/user/userdefs.c
305
outcount += fprintf(fptr, "lock_after_retries=%s ",
usr/src/cmd/oamuser/user/userdefs.c
311
outcount += fprintf(fptr, "roleauth=%s ",
usr/src/cmd/oamuser/user/userdefs.c
316
(void) fprintf(fptr, "\n");
usr/src/cmd/oamuser/user/userdefs.c
54
(void) fprintf(fptr, "\n"); \
usr/src/cmd/pwck/pwck.c
104
(void) fclose(fptr);
usr/src/cmd/pwck/pwck.c
108
while (fgets(buf, sizeof (buf), fptr) != NULL) {
usr/src/cmd/pwck/pwck.c
217
(void) fclose(fptr);
usr/src/cmd/pwck/pwck.c
69
FILE *fptr;
usr/src/cmd/pwck/pwck.c
90
if ((fptr = fopen(pw_file, "r")) == NULL) {
usr/src/cmd/pwck/pwck.c
95
if (fstat(fileno(fptr), &stat_buf) < 0) {
usr/src/cmd/pwck/pwck.c
98
(void) fclose(fptr);
usr/src/cmd/sgs/ar/common/cmd.c
247
ARFILE *fptr;
usr/src/cmd/sgs/ar/common/cmd.c
250
for (fptr = getfile(cmd_info); fptr; fptr = getfile(cmd_info)) {
usr/src/cmd/sgs/ar/common/cmd.c
251
if (match(fptr->ar_longname, cmd_info) != NULL) {
usr/src/cmd/sgs/ar/common/cmd.c
261
mesg('d', fptr->ar_longname, cmd_info);
usr/src/cmd/sgs/ar/common/cmd.c
274
mesg('u', fptr->ar_longname, cmd_info);
usr/src/cmd/sgs/ar/common/cmd.c
275
backptr = fptr;
usr/src/cmd/sgs/ar/common/cmd.c
519
ARFILE *fptr;
usr/src/cmd/sgs/ar/common/cmd.c
525
for (fptr = getfile(cmd_info); fptr; fptr = getfile(cmd_info))
usr/src/cmd/sgs/ar/common/file.c
1014
ARFILE *fptr;
usr/src/cmd/sgs/ar/common/file.c
1040
for (fptr = listhead; fptr; fptr = fptr->ar_next) {
usr/src/cmd/sgs/ar/common/file.c
1041
size += sizeof (struct ar_hdr) + fptr->ar_size + PADSZ;
usr/src/cmd/sgs/ar/common/file.c
1054
ARFILE *fptr;
usr/src/cmd/sgs/ar/common/file.c
1240
for (fptr = listhead; fptr; fptr = fptr->ar_next) {
usr/src/cmd/sgs/ar/common/file.c
1246
is_elf = (fptr->ar_flag & (F_CLASS32 | F_CLASS64)) != 0;
usr/src/cmd/sgs/ar/common/file.c
1248
(fptr->ar_offset == lseek(ar_outfile.fd, 0, SEEK_CUR)));
usr/src/cmd/sgs/ar/common/file.c
1259
if (fptr->ar_name[0] == 0) {
usr/src/cmd/sgs/ar/common/file.c
1260
fptr->ar_longname = fptr->ar_rawname;
usr/src/cmd/sgs/ar/common/file.c
1261
(void) strncpy(fptr->ar_name, fptr->ar_rawname, SNAME);
usr/src/cmd/sgs/ar/common/file.c
1264
(strlen(fptr->ar_longname) <= (unsigned)SNAME-2) ?
usr/src/cmd/sgs/ar/common/file.c
1265
trimslash(fptr->ar_longname) : fptr->ar_name,
usr/src/cmd/sgs/ar/common/file.c
1266
EC_WORD(fptr->ar_date), fptr->ar_uid, fptr->ar_gid,
usr/src/cmd/sgs/ar/common/file.c
1267
fptr->ar_mode, fptr->ar_size + fptr->ar_padding);
usr/src/cmd/sgs/ar/common/file.c
1270
if ((fptr->ar_flag & F_ELFRAW) == 0) {
usr/src/cmd/sgs/ar/common/file.c
1280
if ((fd = open(fptr->ar_pathname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/ar/common/file.c
1283
fptr->ar_longname, strerror(err));
usr/src/cmd/sgs/ar/common/file.c
1286
if (stat(fptr->ar_pathname, &stbuf) < 0) {
usr/src/cmd/sgs/ar/common/file.c
1289
fptr->ar_longname, strerror(err));
usr/src/cmd/sgs/ar/common/file.c
1304
arwrite(name, ar_outfile.fd, fptr->ar_contents,
usr/src/cmd/sgs/ar/common/file.c
1305
fptr->ar_size);
usr/src/cmd/sgs/ar/common/file.c
1314
pad_cnt = ((fptr->ar_size & 0x1) != 0) + fptr->ar_padding;
usr/src/cmd/sgs/ar/common/file.c
1369
ARFILE *fptr;
usr/src/cmd/sgs/ar/common/file.c
1372
for (fptr = listhead; fptr; fptr = fptr->ar_next) {
usr/src/cmd/sgs/ar/common/file.c
1373
if (strlen(fptr->ar_longname) >= (unsigned)SNAME-1) {
usr/src/cmd/sgs/ar/common/file.c
1375
savelongname(fptr);
usr/src/cmd/sgs/ar/common/file.c
1420
search_sym_tab(const char *arname, ARFILE *fptr, Elf *elf, Elf_Scn *scn,
usr/src/cmd/sgs/ar/common/file.c
1433
char *fname = fptr->ar_pathname;
usr/src/cmd/sgs/ar/common/file.c
1443
arname, fptr->ar_longname, elf_errmsg(-1));
usr/src/cmd/sgs/ar/common/file.c
1462
arname, fptr->ar_longname, elf_errmsg(-1));
usr/src/cmd/sgs/ar/common/file.c
1477
arname, fptr->ar_longname);
usr/src/cmd/sgs/ar/common/file.c
1487
arname, fptr->ar_longname);
usr/src/cmd/sgs/ar/common/file.c
1496
arname, fptr->ar_longname);
usr/src/cmd/sgs/ar/common/file.c
1506
arname, fptr->ar_longname, elf_errmsg(-1));
usr/src/cmd/sgs/ar/common/file.c
1541
*sym_ptr = fptr;
usr/src/cmd/sgs/ar/common/file.c
1556
ARFILE *fptr;
usr/src/cmd/sgs/ar/common/file.c
1559
for (fptr = listhead; fptr; fptr = fptr->ar_next) {
usr/src/cmd/sgs/ar/common/file.c
1560
fptr->ar_offset = psum + sum;
usr/src/cmd/sgs/ar/common/file.c
1561
sum += fptr->ar_size;
usr/src/cmd/sgs/ar/common/file.c
1562
if (fptr->ar_size & 01)
usr/src/cmd/sgs/ar/common/file.c
1576
if ((fptr->ar_flag & (F_CLASS32 | F_CLASS64)) &&
usr/src/cmd/sgs/ar/common/file.c
1577
fptr->ar_next &&
usr/src/cmd/sgs/ar/common/file.c
1578
(fptr->ar_next->ar_flag & (F_CLASS32 | F_CLASS64))) {
usr/src/cmd/sgs/ar/common/file.c
1579
fptr->ar_padding = pad(psum + sum + hdrsize, PADSZ);
usr/src/cmd/sgs/ar/common/file.c
1580
sum += fptr->ar_padding;
usr/src/cmd/sgs/ar/common/file.c
1582
fptr->ar_padding = 0;
usr/src/cmd/sgs/ar/common/file.c
476
ARFILE *fptr;
usr/src/cmd/sgs/ar/common/file.c
488
for (fptr = listhead; fptr; fptr = fptr->ar_next) {
usr/src/cmd/sgs/ar/common/file.c
490
if ((fptr->ar_elf != NULL) && (fptr->ar_pathname == NULL)) {
usr/src/cmd/sgs/ar/common/file.c
494
elf = fptr->ar_elf;
usr/src/cmd/sgs/ar/common/file.c
495
} else if ((fptr->ar_elf == NULL) &&
usr/src/cmd/sgs/ar/common/file.c
496
(fptr->ar_pathname != NULL)) {
usr/src/cmd/sgs/ar/common/file.c
520
if (fptr->ar_size > 0xffffffff) {
usr/src/cmd/sgs/ar/common/file.c
523
fptr->ar_pathname);
usr/src/cmd/sgs/ar/common/file.c
529
open(fptr->ar_pathname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/ar/common/file.c
532
fptr->ar_pathname, strerror(err));
usr/src/cmd/sgs/ar/common/file.c
541
fptr->ar_pathname, elf_errmsg(-1));
usr/src/cmd/sgs/ar/common/file.c
562
fptr->ar_flag |= F_CLASS64;
usr/src/cmd/sgs/ar/common/file.c
564
fptr->ar_flag |= F_CLASS32;
usr/src/cmd/sgs/ar/common/file.c
567
if (fptr->ar_pathname != NULL) {
usr/src/cmd/sgs/ar/common/file.c
570
fptr->ar_pathname, elf_errmsg(-1));
usr/src/cmd/sgs/ar/common/file.c
574
arname, fptr->ar_longname,
usr/src/cmd/sgs/ar/common/file.c
588
if (fptr->ar_pathname != NULL)
usr/src/cmd/sgs/ar/common/file.c
591
fptr->ar_pathname, elf_errmsg(-1));
usr/src/cmd/sgs/ar/common/file.c
595
arname, fptr->ar_longname,
usr/src/cmd/sgs/ar/common/file.c
609
if (fptr->ar_pathname != NULL)
usr/src/cmd/sgs/ar/common/file.c
612
fptr->ar_pathname, elf_errmsg(-1));
usr/src/cmd/sgs/ar/common/file.c
616
arname, fptr->ar_longname,
usr/src/cmd/sgs/ar/common/file.c
627
if (fptr->ar_pathname != NULL)
usr/src/cmd/sgs/ar/common/file.c
630
fptr->ar_pathname);
usr/src/cmd/sgs/ar/common/file.c
634
arname, fptr->ar_longname);
usr/src/cmd/sgs/ar/common/file.c
650
if (fptr->ar_pathname != NULL)
usr/src/cmd/sgs/ar/common/file.c
653
fptr->ar_pathname,
usr/src/cmd/sgs/ar/common/file.c
658
arname, fptr->ar_longname,
usr/src/cmd/sgs/ar/common/file.c
671
if (search_sym_tab(arname, fptr, elf,
usr/src/cmd/sgs/ar/common/file.c
683
mem_offset += sizeof (struct ar_hdr) + fptr->ar_size;
usr/src/cmd/sgs/ar/common/file.c
684
if (fptr->ar_size & 01)
usr/src/cmd/sgs/ar/common/file.c
962
savelongname(ARFILE *fptr)
usr/src/cmd/sgs/ar/common/file.c
968
len = strlen(fptr->ar_longname);
usr/src/cmd/sgs/ar/common/file.c
983
(void) snprintf(fptr->ar_name, sizeof (fptr->ar_name),
usr/src/cmd/sgs/ar/common/file.c
992
(void) strcpy(p, fptr->ar_longname);
usr/src/cmd/sgs/elfedit/common/_elfedit.h
174
FILE *fptr; /* Output file */
usr/src/cmd/sgs/elfedit/common/elfedit.c
317
if (state.pager.fptr != NULL) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
320
stream = state.pager.fptr;
usr/src/cmd/sgs/elfedit/common/elfedit.c
412
(state.pager.fptr == NULL)) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
428
state.pager.fptr = popen(cmd, MSG_ORIG(MSG_STR_W));
usr/src/cmd/sgs/elfedit/common/elfedit.c
429
if (state.pager.fptr == NULL) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
453
if (state.pager.fptr != NULL) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
454
if (pclose(state.pager.fptr) == -1)
usr/src/cmd/sgs/elfedit/common/elfedit.c
457
state.pager.fptr = NULL;
usr/src/cmd/sgs/elfedit/common/elfedit.c
472
FILE *fptr;
usr/src/cmd/sgs/elfedit/common/elfedit.c
480
pager = (state.pager.fptr != NULL);
usr/src/cmd/sgs/elfedit/common/elfedit.c
481
fptr = pager ? state.pager.fptr : stdout;
usr/src/cmd/sgs/elfedit/common/elfedit.c
485
err = vfprintf(fptr, format, args);
usr/src/cmd/sgs/elfedit/common/elfedit.c
524
FILE *fptr;
usr/src/cmd/sgs/elfedit/common/elfedit.c
540
pager = (state.pager.fptr != NULL);
usr/src/cmd/sgs/elfedit/common/elfedit.c
541
fptr = pager ? state.pager.fptr : stdout;
usr/src/cmd/sgs/elfedit/common/elfedit.c
545
err = vfprintf(fptr, format, ap);
usr/src/cmd/sgs/elfedit/common/elfedit.c
547
err = fprintf(fptr, MSG_ORIG(MSG_STR_NL));
usr/src/cmd/sgs/elfedit/common/elfedit.c
580
FILE *fptr;
usr/src/cmd/sgs/elfedit/common/elfedit.c
587
fptr = (state.pager.fptr == NULL) ? stdout : state.pager.fptr;
usr/src/cmd/sgs/elfedit/common/elfedit.c
589
if (fwrite(ptr, 1, size, fptr) != size) {
usr/src/cmd/sgs/lex/common/ldefs.h
187
extern int fptr;
usr/src/cmd/sgs/lex/common/once.h
108
int fptr;
usr/src/cmd/sgs/libconv/common/cap_machelf.c
41
Conv_fmt_flags_t fmt_flags, elfcap_to_str_func_t *fptr)
usr/src/cmd/sgs/libconv/common/cap_machelf.c
59
if ((*fptr)(ELFCAP_STYLE_UC, val, str, len, ELFCAP_FMT_SNGSPACE,
usr/src/cmd/sgs/libconv/common/demangle.c
63
static char *(*fptr)() = 0;
usr/src/cmd/sgs/libconv/common/demangle.c
77
if (fptr == 0) {
usr/src/cmd/sgs/libconv/common/demangle.c
82
!(fptr = (char *(*)())dlsym(hdl, MSG_ORIG(MSG_DEM_SYM))))
usr/src/cmd/sgs/libconv/common/demangle.c
87
if ((d = fptr(name, SYSDEM_LANG_AUTO, NULL)) == NULL)
usr/src/cmd/sgs/libcrle/common/dump.c
125
scanconfig(Addr addr, int (*fptr)())
usr/src/cmd/sgs/libcrle/common/dump.c
157
if ((*fptr)(str, strtbl + obj->co_alter) != 0)
usr/src/cmd/sgs/libcrle/common/dump.c
167
if (fptr == load) {
usr/src/cmd/sgs/libld/common/debug.c
109
FILE *fptr = fopen(ofile, MSG_ORIG(MSG_DBG_FOPEN_MODE));
usr/src/cmd/sgs/libld/common/debug.c
110
if (fptr == NULL) {
usr/src/cmd/sgs/libld/common/debug.c
118
dbg_ofile.fptr = fptr;
usr/src/cmd/sgs/libld/common/debug.c
207
dbg_ofile.fptr);
usr/src/cmd/sgs/libld/common/debug.c
209
(void) fputs(MSG_INTL(MSG_DBG_DFLT_FMT), dbg_ofile.fptr);
usr/src/cmd/sgs/libld/common/debug.c
228
(void) vfprintf(dbg_ofile.fptr, format, args);
usr/src/cmd/sgs/libld/common/debug.c
229
(void) fprintf(dbg_ofile.fptr, MSG_ORIG(MSG_STR_NL));
usr/src/cmd/sgs/libld/common/debug.c
58
FILE *fptr; /* File to send debug output */
usr/src/cmd/sgs/libld/common/debug.c
73
(void) fclose(dbg_ofile.fptr);
usr/src/cmd/sgs/libld/common/debug.c
75
dbg_ofile.fptr = stderr;
usr/src/cmd/sgs/libld/common/support.c
129
fl.fl_fptr = fptr;
usr/src/cmd/sgs/libld/common/support.c
67
void *handle, *fptr;
usr/src/cmd/sgs/libld/common/support.c
83
if ((fptr = dlsym(handle, support[interface].sup_name)) == NULL)
usr/src/cmd/sgs/libld/common/support.c
93
version = ((uint_t(*)())fptr)(LD_SUP_VCURRENT);
usr/src/cmd/sgs/rtld/common/analyze.c
1723
Fct *fptr = NULL;
usr/src/cmd/sgs/rtld/common/analyze.c
1726
fptr = elf_verify((mpp->mr_addr + mpp->mr_offset),
usr/src/cmd/sgs/rtld/common/analyze.c
1729
if (fptr) {
usr/src/cmd/sgs/rtld/common/analyze.c
1735
return (fptr);
usr/src/cmd/sgs/rtld/common/external.c
440
int (*fptr)(int);
usr/src/cmd/sgs/rtld/common/external.c
443
if ((fptr = glcs[CI_BIND_GUARD].lc_un.lc_func) != NULL) {
usr/src/cmd/sgs/rtld/common/external.c
444
return ((*fptr)(flags));
usr/src/cmd/sgs/rtld/common/external.c
458
int (*fptr)(int);
usr/src/cmd/sgs/rtld/common/external.c
461
if ((fptr = glcs[CI_BIND_CLEAR].lc_un.lc_func) != NULL) {
usr/src/cmd/sgs/rtld/common/external.c
462
return ((*fptr)(flags));
usr/src/cmd/sgs/rtld/common/external.c
481
int (*fptr)(void);
usr/src/cmd/sgs/rtld/common/external.c
483
if ((fptr = lml->lm_lcs[CI_THRINIT].lc_un.lc_func) != NULL) {
usr/src/cmd/sgs/rtld/common/external.c
487
(void) (*fptr)();
usr/src/cmd/sgs/rtld/common/external.c
509
thread_t (*fptr)(void);
usr/src/cmd/sgs/rtld/common/external.c
511
if ((fptr = (thread_t (*)())glcs[CI_THR_SELF].lc_un.lc_func) != NULL)
usr/src/cmd/sgs/rtld/common/external.c
512
return ((*fptr)());
usr/src/cmd/sgs/rtld/common/external.c
537
int (*fptr)(void);
usr/src/cmd/sgs/rtld/common/external.c
539
if ((fptr = glcs[CI_CRITICAL].lc_un.lc_func) != NULL)
usr/src/cmd/sgs/rtld/common/external.c
540
return ((*fptr)());
usr/src/cmd/sgs/rtld/common/remove.c
126
error = (*fptr)(addr, (num - 1));
usr/src/cmd/sgs/rtld/common/remove.c
78
int (*fptr)(Lc_addr_range_t *, uint_t);
usr/src/cmd/sgs/rtld/common/remove.c
83
if ((fptr = lml->lm_lcs[CI_ATEXIT].lc_un.lc_func) == NULL)
usr/src/cmd/sgs/rtld/common/tls.c
123
int (*fptr)(TLS_modinfo *);
usr/src/cmd/sgs/rtld/common/tls.c
126
fptr = lml->lm_lcs[CI_TLS_MODADD].lc_un.lc_func;
usr/src/cmd/sgs/rtld/common/tls.c
128
fptr = lml->lm_lcs[CI_TLS_MODREM].lc_un.lc_func;
usr/src/cmd/sgs/rtld/common/tls.c
150
(void) (*fptr)(&tmi);
usr/src/cmd/sgs/rtld/common/tls.c
261
int (*fptr)(TLS_modinfo **, ulong_t);
usr/src/cmd/sgs/rtld/common/tls.c
263
fptr = lml->lm_lcs[CI_TLS_STATMOD].lc_un.lc_func;
usr/src/cmd/sgs/rtld/common/tls.c
288
if (fptr != NULL)
usr/src/cmd/sgs/rtld/common/tls.c
289
(void) (*fptr)(tlsmodlist, tls_static_resv);
usr/src/cmd/sgs/rtld/common/tls.c
333
(void) (*fptr)(tlsmodlist, (tls_static_size + tls_static_resv));
usr/src/cmd/sgs/rtld/common/util.c
122
void (*fptr)(Lm_list *);
usr/src/cmd/sgs/rtld/common/util.c
126
fptr = rtld_db_preinit;
usr/src/cmd/sgs/rtld/common/util.c
129
fptr = rtld_db_postinit;
usr/src/cmd/sgs/rtld/common/util.c
152
fptr = rtld_db_dlactivity;
usr/src/cmd/sgs/rtld/common/util.c
170
fptr(lml);
usr/src/cmd/sgs/rtld/common/util.c
685
void (*fptr)(void) = (void(*)())array[ndx];
usr/src/cmd/sgs/rtld/common/util.c
687
DBG_CALL(Dbg_util_call_array(lmp, (void *)fptr, ndx, shtype));
usr/src/cmd/sgs/rtld/common/util.c
691
(*fptr)();
usr/src/cmd/sgs/rtld/common/util.c
815
void (*fptr)(void) = FINI(lmp);
usr/src/cmd/sgs/rtld/common/util.c
817
if (FINIARRAY(lmp) || fptr)
usr/src/cmd/sgs/rtld/common/util.c
823
if (fptr) {
usr/src/cmd/sgs/rtld/common/util.c
828
(*fptr)();
usr/src/cmd/tic/tic_parse.c
115
struct use_item *fptr, *bptr;
usr/src/cmd/tic/tic_parse.c
218
ptr = ptr->fptr) {
usr/src/cmd/tic/tic_parse.c
240
for (ptr = use_list.head; ptr != NULL; ptr = ptr->fptr) {
usr/src/cmd/tic/tic_parse.c
257
for (ptr = use_list.head; ptr != NULL; ptr = ptr->fptr) {
usr/src/cmd/tic/tic_parse.c
261
ptr, ptr->offset, ptr->bptr, ptr->fptr, line);
usr/src/cmd/tic/tic_parse.c
452
use_list.tail->fptr = item;
usr/src/cmd/tic/tic_parse.c
453
item->fptr = NULL;
usr/src/cmd/tic/tic_parse.c
457
item->fptr = item->bptr = NULL;
usr/src/cmd/tic/tic_parse.c
473
if (ptr->fptr == NULL)
usr/src/cmd/tic/tic_parse.c
476
(ptr->fptr)->bptr = ptr->bptr;
usr/src/cmd/tic/tic_parse.c
479
use_list.head = ptr->fptr;
usr/src/cmd/tic/tic_parse.c
481
(ptr->bptr)->fptr = ptr->fptr;
usr/src/cmd/ypcmd/makedbm.c
106
return ((*fptr)(filedes));
usr/src/cmd/ypcmd/makedbm.c
87
static int (*fptr)() = 0;
usr/src/cmd/ypcmd/makedbm.c
89
if (fptr == 0) {
usr/src/cmd/ypcmd/makedbm.c
90
fptr = (int (*)())dlsym(RTLD_NEXT, "close");
usr/src/cmd/ypcmd/makedbm.c
91
if (fptr == 0) {
usr/src/lib/gss_mechs/mech_dh/backend/mech/seq.c
217
typedef OM_uint32 (*fptr)(OM_uint32 *, gss_ctx_id_t, void *);
usr/src/lib/gss_mechs/mech_dh/backend/mech/seq.c
220
static fptr __context_debug_entry_array[] = {
usr/src/lib/gss_mechs/mech_dh/backend/mech/seq.c
233
fptr *entrys;
usr/src/lib/gss_mechs/mech_dh/backend/mech/seq.c
235
sizeof (__context_debug_entry_array)/sizeof (fptr),
usr/src/lib/gss_mechs/mech_krb5/support/errors.c
129
r = (char *) fptr(code);
usr/src/lib/gss_mechs/mech_krb5/support/errors.c
164
fptr = f;
usr/src/lib/gss_mechs/mech_krb5/support/errors.c
28
static const char *(KRB5_CALLCONV *fptr)(long); /* = &error_message */
usr/src/lib/gss_mechs/mech_krb5/support/errors.c
93
if (fptr == NULL) {
usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
111
(void) fclose (fptr);
usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
52
FILE *fptr=NULL;
usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
85
if ((fptr = fopen(file, "rF")) == NULL) {
usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
93
while (fgets(line, RECORDLEN, fptr) != NULL) {
usr/src/lib/libc/amd64/unwind/thrp_unwind.c
103
if (fptr != NULL)
usr/src/lib/libc/amd64/unwind/thrp_unwind.c
104
(*fptr)(posix_stop_func, headp);
usr/src/lib/libc/amd64/unwind/thrp_unwind.c
87
void (*fptr)(_Unwind_Stop_Fn, void *);
usr/src/lib/libc/amd64/unwind/thrp_unwind.c
95
fptr = NULL;
usr/src/lib/libc/amd64/unwind/thrp_unwind.c
97
fptr = (void (*)())self->ul_ex_unwind;
usr/src/lib/libc/port/gen/iconv.c
344
iconv_t (*fptr)(const char *);
usr/src/lib/libc/port/gen/iconv.c
358
if ((fptr = (iconv_t(*)(const char *))dlsym(cdpath->_icv_handle,
usr/src/lib/libc/port/gen/iconv.c
400
cdpath->_icv_state = (void *)(*fptr)(tbl);
usr/src/lib/libc/port/gen/random.c
142
unsigned int *fptr, *rptr;
usr/src/lib/libc/port/gen/random.c
334
rp->fptr = &rp->state[ (rear + rp->rand_sep)%rp->rand_deg ];
usr/src/lib/libc/port/gen/random.c
368
*rp->fptr += *rp->rptr;
usr/src/lib/libc/port/gen/random.c
369
i = (*rp->fptr >> 1)&0x7fffffff; /* chucking least random bit */
usr/src/lib/libc/port/gen/random.c
370
if (++rp->fptr >= rp->end_ptr) {
usr/src/lib/libc/port/gen/random.c
371
rp->fptr = rp->state;
usr/src/lib/libc/port/gen/random.c
408
rp->fptr = &rp->state[ rp->rand_sep ];
usr/src/lib/libc/port/unwind/unwind.c
100
(*fptr)(_thrp_unwind, NULL);
usr/src/lib/libc/port/unwind/unwind.c
74
void (*fptr)(void (*func)(void *), void *arg);
usr/src/lib/libc/port/unwind/unwind.c
82
fptr = NULL;
usr/src/lib/libc/port/unwind/unwind.c
84
fptr = (void (*)())self->ul_ex_unwind;
usr/src/lib/libc/port/unwind/unwind.c
98
if (fptr != NULL && self->ul_unwind) {
usr/src/lib/libctf/common/ctf_dwarf.c
2228
boolean_t fptr)
usr/src/lib/libctf/common/ctf_dwarf.c
2256
if (tag == DW_TAG_formal_parameter && fptr == B_FALSE) {
usr/src/lib/libnisdb/ldap_cto.c
47
static int (*fptr)() = 0;
usr/src/lib/libnisdb/ldap_cto.c
51
if (fptr == 0) {
usr/src/lib/libnisdb/ldap_cto.c
52
fptr = (int (*)())dlsym(RTLD_NEXT, "socket");
usr/src/lib/libnisdb/ldap_cto.c
53
if (fptr == 0) {
usr/src/lib/libnisdb/ldap_cto.c
61
ret = (*fptr) (domain, type, protocol);
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
1006
FILE *fptr;
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
1021
if (!(fptr = fopen(mech_file, "rF"))) {
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
1026
while (mp = get_mechfile_ent(fptr)) {
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
1031
(void) fclose(fptr);
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
1036
(void) fclose(fptr);
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
351
get_secfile_ent(FILE *fptr)
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
377
while (((cp = nextline(fptr, line)) != NULL) &&
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
558
FILE *fptr;
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
575
if (!(fptr = fopen(NIS_SEC_CF_PATHNAME, "rF"))) {
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
580
while (mp = get_secfile_ent(fptr)) {
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
596
(void) fclose(fptr);
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
609
(void) fclose(fptr);
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
614
(void) fclose(fptr);
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
919
get_mechfile_ent(FILE *fptr)
usr/src/lib/libnsl/nis/gen/nis_sec_mechs.c
928
while (((cp = nextline(fptr, line)) != NULL) &&
usr/src/lib/libproc/common/Pcontrol.c
1745
file_info_t *fptr = list_head(&P->file_head);
usr/src/lib/libproc/common/Pcontrol.c
1747
(void *)P, fptr->file_pname);
usr/src/lib/libproc/common/Pgcore.c
557
is_debug_section(file_info_t *fptr, GElf_Shdr *shdr)
usr/src/lib/libproc/common/Pgcore.c
559
if (shdr->sh_name == 0 || shdr->sh_name > fptr->file_shstrsz)
usr/src/lib/libproc/common/Pgcore.c
562
if (strncmp(fptr->file_shstrs + shdr->sh_name, ".debug_",
usr/src/lib/libproc/common/Pgcore.c
571
count_debug(file_info_t *fptr)
usr/src/lib/libproc/common/Pgcore.c
576
if (fptr->file_elf == NULL || fptr->file_shstrsz <= 1) {
usr/src/lib/libproc/common/Pgcore.c
580
while ((scn = elf_nextscn(fptr->file_elf, scn)) != NULL) {
usr/src/lib/libproc/common/Pgcore.c
586
if (is_debug_section(fptr, &shdr))
usr/src/lib/libproc/common/Pgcore.c
597
file_info_t *fptr;
usr/src/lib/libproc/common/Pgcore.c
605
for (fptr = list_head(&P->file_head); fptr != NULL;
usr/src/lib/libproc/common/Pgcore.c
606
fptr = list_next(&P->file_head, fptr)) {
usr/src/lib/libproc/common/Pgcore.c
609
Pbuild_file_symtab(P, fptr);
usr/src/lib/libproc/common/Pgcore.c
612
Pbuild_file_ctf(P, fptr) != NULL) {
usr/src/lib/libproc/common/Pgcore.c
617
if (fptr->file_ctf_dyn) {
usr/src/lib/libproc/common/Pgcore.c
618
sym = &fptr->file_dynsym;
usr/src/lib/libproc/common/Pgcore.c
620
sym = &fptr->file_symtab;
usr/src/lib/libproc/common/Pgcore.c
630
fptr->file_symtab.sym_data_pri != NULL &&
usr/src/lib/libproc/common/Pgcore.c
631
fptr->file_symtab.sym_symn != 0 &&
usr/src/lib/libproc/common/Pgcore.c
632
fptr->file_symtab.sym_strs != NULL) {
usr/src/lib/libproc/common/Pgcore.c
637
nshdrs += count_debug(fptr);
usr/src/lib/libproc/common/Pgcore.c
700
dump_symtab(pgcore_t *pgc, file_info_t *fptr, uint_t index, int dynsym)
usr/src/lib/libproc/common/Pgcore.c
702
sym_tbl_t *sym = dynsym ? &fptr->file_dynsym : &fptr->file_symtab;
usr/src/lib/libproc/common/Pgcore.c
707
uintptr_t addr = fptr->file_map->map_pmap.pr_vaddr;
usr/src/lib/libproc/common/Pgcore.c
739
dump_debug(pgcore_t *pgc, file_info_t *fptr, uint_t *indexp)
usr/src/lib/libproc/common/Pgcore.c
743
if (fptr->file_elf == NULL || fptr->file_shstrsz <= 1) {
usr/src/lib/libproc/common/Pgcore.c
747
while ((scn = elf_nextscn(fptr->file_elf, scn)) != NULL) {
usr/src/lib/libproc/common/Pgcore.c
754
if (!is_debug_section(fptr, &shdr))
usr/src/lib/libproc/common/Pgcore.c
765
if (write_shdr(pgc, fptr->file_shstrs + shdr.sh_name,
usr/src/lib/libproc/common/Pgcore.c
767
fptr->file_map->map_pmap.pr_vaddr, *pgc->pgc_doff,
usr/src/lib/libproc/common/Pgcore.c
784
file_info_t *fptr;
usr/src/lib/libproc/common/Pgcore.c
792
for (fptr = list_head(&P->file_head); fptr != NULL;
usr/src/lib/libproc/common/Pgcore.c
793
fptr = list_next(&P->file_head, fptr)) {
usr/src/lib/libproc/common/Pgcore.c
796
Pbuild_file_symtab(P, fptr);
usr/src/lib/libproc/common/Pgcore.c
799
Pbuild_file_ctf(P, fptr) != NULL) {
usr/src/lib/libproc/common/Pgcore.c
810
if (fptr->file_ctf_dyn) {
usr/src/lib/libproc/common/Pgcore.c
811
sym = &fptr->file_dynsym;
usr/src/lib/libproc/common/Pgcore.c
814
sym = &fptr->file_symtab;
usr/src/lib/libproc/common/Pgcore.c
822
if (dump_symtab(pgc, fptr, index, dynsym) != 0)
usr/src/lib/libproc/common/Pgcore.c
831
if (gc_pwrite64(pgc->pgc_fd, fptr->file_ctf_buf,
usr/src/lib/libproc/common/Pgcore.c
832
fptr->file_ctf_size, *pgc->pgc_doff) != 0)
usr/src/lib/libproc/common/Pgcore.c
836
SHT_PROGBITS, 0, fptr->file_map->map_pmap.pr_vaddr,
usr/src/lib/libproc/common/Pgcore.c
837
*pgc->pgc_doff, fptr->file_ctf_size, symindex, 0,
usr/src/lib/libproc/common/Pgcore.c
842
*pgc->pgc_doff += roundup(fptr->file_ctf_size, 8);
usr/src/lib/libproc/common/Pgcore.c
846
fptr->file_symtab.sym_data_pri != NULL &&
usr/src/lib/libproc/common/Pgcore.c
847
fptr->file_symtab.sym_symn != 0 &&
usr/src/lib/libproc/common/Pgcore.c
848
fptr->file_symtab.sym_strs != NULL) {
usr/src/lib/libproc/common/Pgcore.c
849
if (dump_symtab(pgc, fptr, index, 0) != 0)
usr/src/lib/libproc/common/Pgcore.c
855
dump_debug(pgc, fptr, &index) != 0) {
usr/src/lib/libproc/common/Psymtab.c
1004
for (fptr = list_head(&P->file_head); fptr != NULL;
usr/src/lib/libproc/common/Psymtab.c
1005
fptr = list_next(&P->file_head, fptr)) {
usr/src/lib/libproc/common/Psymtab.c
1006
if (strcmp(fptr->file_pname, pmap->pr_mapname) == 0 &&
usr/src/lib/libproc/common/Psymtab.c
1007
fptr->file_lo && is_mapping_in_file(P, mptr, fptr)) {
usr/src/lib/libproc/common/Psymtab.c
1008
mptr->map_file = fptr;
usr/src/lib/libproc/common/Psymtab.c
1009
fptr->file_ref++;
usr/src/lib/libproc/common/Psymtab.c
1010
Pbuild_file_symtab(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
1011
return (fptr);
usr/src/lib/libproc/common/Psymtab.c
1022
if ((fptr = file_info_new(P, mptr)) == NULL)
usr/src/lib/libproc/common/Psymtab.c
1031
fptr->file_map = mptr;
usr/src/lib/libproc/common/Psymtab.c
1042
if (fptr->file_map == NULL)
usr/src/lib/libproc/common/Psymtab.c
1043
fptr->file_map = mptr;
usr/src/lib/libproc/common/Psymtab.c
1045
Pbuild_file_symtab(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
1047
return (fptr);
usr/src/lib/libproc/common/Psymtab.c
1194
file_differs(struct ps_prochandle *P, Elf *elf, file_info_t *fptr)
usr/src/lib/libproc/common/Psymtab.c
1204
if (fptr->file_map == NULL)
usr/src/lib/libproc/common/Psymtab.c
1254
addr = fptr->file_map->map_pmap.pr_vaddr;
usr/src/lib/libproc/common/Psymtab.c
1337
fake_elf(struct ps_prochandle *P, file_info_t *fptr)
usr/src/lib/libproc/common/Psymtab.c
1343
if (fptr->file_map == NULL)
usr/src/lib/libproc/common/Psymtab.c
1350
addr = fptr->file_map->map_pmap.pr_vaddr;
usr/src/lib/libproc/common/Psymtab.c
1360
elf = fake_elf32(P, fptr, addr, &ehdr, phnum, &phdr);
usr/src/lib/libproc/common/Psymtab.c
1370
elf = fake_elf64(P, fptr, addr, &ehdr, phnum, &phdr);
usr/src/lib/libproc/common/Psymtab.c
1580
build_fake_elf(struct ps_prochandle *P, file_info_t *fptr, GElf_Ehdr *ehdr,
usr/src/lib/libproc/common/Psymtab.c
1587
if ((elf = fake_elf(P, fptr)) == NULL ||
usr/src/lib/libproc/common/Psymtab.c
1614
build_alt_debug(file_info_t *fptr, const char *path, uint32_t crc,
usr/src/lib/libproc/common/Psymtab.c
1751
fptr->file_symtab.sym_data_pri = symdata;
usr/src/lib/libproc/common/Psymtab.c
1752
fptr->file_symtab.sym_symn += symshdr.sh_size / symshdr.sh_entsize;
usr/src/lib/libproc/common/Psymtab.c
1753
fptr->file_symtab.sym_strs = strdata->d_buf;
usr/src/lib/libproc/common/Psymtab.c
1754
fptr->file_symtab.sym_strsz = strdata->d_size;
usr/src/lib/libproc/common/Psymtab.c
1755
fptr->file_symtab.sym_hdr_pri = symshdr;
usr/src/lib/libproc/common/Psymtab.c
1756
fptr->file_symtab.sym_strhdr = strshdr;
usr/src/lib/libproc/common/Psymtab.c
1760
fptr->file_rname, path);
usr/src/lib/libproc/common/Psymtab.c
1762
fptr->file_dbgfile = fd;
usr/src/lib/libproc/common/Psymtab.c
1763
fptr->file_dbgelf = elf;
usr/src/lib/libproc/common/Psymtab.c
1786
find_alt_debuglink(file_info_t *fptr, const char *name, uint32_t crc)
usr/src/lib/libproc/common/Psymtab.c
1792
if (fptr->file_rname == NULL) {
usr/src/lib/libproc/common/Psymtab.c
1797
dup = strdup(fptr->file_rname);
usr/src/lib/libproc/common/Psymtab.c
1805
r = build_alt_debug(fptr, path, crc, NULL);
usr/src/lib/libproc/common/Psymtab.c
1814
r = build_alt_debug(fptr, path, crc, NULL);
usr/src/lib/libproc/common/Psymtab.c
1827
Pbuild_file_symtab(struct ps_prochandle *P, file_info_t *fptr)
usr/src/lib/libproc/common/Psymtab.c
1847
if (fptr->file_init)
usr/src/lib/libproc/common/Psymtab.c
1854
fptr->file_init = 1;
usr/src/lib/libproc/common/Psymtab.c
1875
if (fptr->file_rname != NULL)
usr/src/lib/libproc/common/Psymtab.c
1876
name = fptr->file_rname;
usr/src/lib/libproc/common/Psymtab.c
1877
else if (fptr->file_lname != NULL)
usr/src/lib/libproc/common/Psymtab.c
1878
name = fptr->file_lname;
usr/src/lib/libproc/common/Psymtab.c
1880
name = fptr->file_pname;
usr/src/lib/libproc/common/Psymtab.c
1885
procfs_path, (int)P->pid, fptr->file_pname);
usr/src/lib/libproc/common/Psymtab.c
1897
fptr->file_pname);
usr/src/lib/libproc/common/Psymtab.c
1899
if ((elf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) ==
usr/src/lib/libproc/common/Psymtab.c
1903
} else if ((fptr->file_fd = open(objectfile, O_RDONLY)) < 0) {
usr/src/lib/libproc/common/Psymtab.c
1907
if ((elf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) ==
usr/src/lib/libproc/common/Psymtab.c
1911
} else if ((elf = elf_begin(fptr->file_fd, ELF_C_READ, NULL)) == NULL ||
usr/src/lib/libproc/common/Psymtab.c
1924
if ((elf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) ==
usr/src/lib/libproc/common/Psymtab.c
1928
} else if (file_differs(P, elf, fptr)) {
usr/src/lib/libproc/common/Psymtab.c
193
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
1938
fptr->file_pname,
usr/src/lib/libproc/common/Psymtab.c
1939
(ulong_t)fptr->file_map->map_pmap.pr_vaddr);
usr/src/lib/libproc/common/Psymtab.c
1941
if ((newelf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata))
usr/src/lib/libproc/common/Psymtab.c
1954
if (fptr->file_rname != NULL && P->execname != NULL &&
usr/src/lib/libproc/common/Psymtab.c
1955
strcmp(fptr->file_rname, P->execname) == 0) {
usr/src/lib/libproc/common/Psymtab.c
1970
fptr->file_class = ehdr.e_ident[EI_CLASS];
usr/src/lib/libproc/common/Psymtab.c
1971
fptr->file_etype = ehdr.e_type;
usr/src/lib/libproc/common/Psymtab.c
1972
fptr->file_elf = elf;
usr/src/lib/libproc/common/Psymtab.c
1973
fptr->file_shstrs = shdata->d_buf;
usr/src/lib/libproc/common/Psymtab.c
1974
fptr->file_shstrsz = shdata->d_size;
usr/src/lib/libproc/common/Psymtab.c
198
if ((fptr = calloc(1, sizeof (file_info_t))) == NULL)
usr/src/lib/libproc/common/Psymtab.c
201
list_insert_tail(&P->file_head, fptr);
usr/src/lib/libproc/common/Psymtab.c
2011
&fptr->file_symtab : &fptr->file_dynsym;
usr/src/lib/libproc/common/Psymtab.c
202
(void) strcpy(fptr->file_pname, mptr->map_pmap.pr_mapname);
usr/src/lib/libproc/common/Psymtab.c
203
mptr->map_file = fptr;
usr/src/lib/libproc/common/Psymtab.c
204
fptr->file_ref = 1;
usr/src/lib/libproc/common/Psymtab.c
2040
if (fptr->file_dynsym.sym_data_aux == NULL) {
usr/src/lib/libproc/common/Psymtab.c
2043
fptr->file_dynsym.sym_data_aux = cp->c_data;
usr/src/lib/libproc/common/Psymtab.c
2044
fptr->file_dynsym.sym_symn_aux =
usr/src/lib/libproc/common/Psymtab.c
2046
fptr->file_dynsym.sym_symn +=
usr/src/lib/libproc/common/Psymtab.c
2047
fptr->file_dynsym.sym_symn_aux;
usr/src/lib/libproc/common/Psymtab.c
2048
fptr->file_dynsym.sym_hdr_aux = cp->c_shdr;
usr/src/lib/libproc/common/Psymtab.c
205
fptr->file_fd = -1;
usr/src/lib/libproc/common/Psymtab.c
206
fptr->file_dbgfile = -1;
usr/src/lib/libproc/common/Psymtab.c
2073
fptr->file_rname);
usr/src/lib/libproc/common/Psymtab.c
2100
fptr->file_rname);
usr/src/lib/libproc/common/Psymtab.c
2129
if (fptr->file_symtab.sym_data_pri == NULL && buildid != NULL) {
usr/src/lib/libproc/common/Psymtab.c
2164
r = build_alt_debug(fptr, path, 0, buildid->c_data);
usr/src/lib/libproc/common/Psymtab.c
217
if ((fptr->file_saddrs = get_saddrs(P, mptr->map_pmap.pr_vaddr,
usr/src/lib/libproc/common/Psymtab.c
2174
if (fptr->file_symtab.sym_data_pri == NULL && dbglink != NULL) {
usr/src/lib/libproc/common/Psymtab.c
218
&fptr->file_nsaddrs)) == NULL)
usr/src/lib/libproc/common/Psymtab.c
219
return (fptr);
usr/src/lib/libproc/common/Psymtab.c
2214
find_alt_debuglink(fptr, dbglink->c_data->d_buf, crc);
usr/src/lib/libproc/common/Psymtab.c
2223
optimize_symtab(&fptr->file_symtab);
usr/src/lib/libproc/common/Psymtab.c
2224
optimize_symtab(&fptr->file_dynsym);
usr/src/lib/libproc/common/Psymtab.c
223
while (mp < P->mappings + P->map_count && i < fptr->file_nsaddrs) {
usr/src/lib/libproc/common/Psymtab.c
2230
if (fptr->file_etype == ET_DYN) {
usr/src/lib/libproc/common/Psymtab.c
2231
fptr->file_dyn_base = fptr->file_map->map_pmap.pr_vaddr -
usr/src/lib/libproc/common/Psymtab.c
2232
fptr->file_map->map_pmap.pr_offset;
usr/src/lib/libproc/common/Psymtab.c
2234
objectfile, (long)fptr->file_dyn_base);
usr/src/lib/libproc/common/Psymtab.c
2241
fptr->file_ctf_off = ctf->c_shdr.sh_offset;
usr/src/lib/libproc/common/Psymtab.c
2242
fptr->file_ctf_size = ctf->c_shdr.sh_size;
usr/src/lib/libproc/common/Psymtab.c
2245
fptr->file_ctf_dyn = 1;
usr/src/lib/libproc/common/Psymtab.c
2248
if (fptr->file_lo == NULL)
usr/src/lib/libproc/common/Psymtab.c
2255
if (fptr->file_etype == ET_DYN &&
usr/src/lib/libproc/common/Psymtab.c
2256
fptr->file_lo->rl_base != fptr->file_dyn_base) {
usr/src/lib/libproc/common/Psymtab.c
2258
objectfile, (long)fptr->file_lo->rl_base);
usr/src/lib/libproc/common/Psymtab.c
2259
fptr->file_dyn_base = fptr->file_lo->rl_base;
usr/src/lib/libproc/common/Psymtab.c
2265
if (sym_by_name(&fptr->file_dynsym, "_PROCEDURE_LINKAGE_TABLE_", &s,
usr/src/lib/libproc/common/Psymtab.c
2267
fptr->file_plt_base = s.st_value + fptr->file_dyn_base;
usr/src/lib/libproc/common/Psymtab.c
2268
fptr->file_plt_size = (plt != NULL) ? plt->c_shdr.sh_size : 0;
usr/src/lib/libproc/common/Psymtab.c
2276
fptr->file_lo->rl_plt_base = fptr->file_plt_base;
usr/src/lib/libproc/common/Psymtab.c
2277
fptr->file_lo->rl_plt_size = fptr->file_plt_size;
usr/src/lib/libproc/common/Psymtab.c
228
sstart = fptr->file_saddrs[i];
usr/src/lib/libproc/common/Psymtab.c
2280
(void *)fptr->file_plt_base, (ulong_t)fptr->file_plt_size);
usr/src/lib/libproc/common/Psymtab.c
2287
uintptr_t dynaddr = dyn->c_shdr.sh_addr + fptr->file_dyn_base;
usr/src/lib/libproc/common/Psymtab.c
229
send = fptr->file_saddrs[i + 1];
usr/src/lib/libproc/common/Psymtab.c
2299
fptr->file_jmp_rel =
usr/src/lib/libproc/common/Psymtab.c
2300
d.d_un.d_ptr + fptr->file_dyn_base;
usr/src/lib/libproc/common/Psymtab.c
2326
(void *)dynaddr, (ulong_t)ndyn, (void *)fptr->file_jmp_rel);
usr/src/lib/libproc/common/Psymtab.c
2338
fptr->file_elf = NULL;
usr/src/lib/libproc/common/Psymtab.c
2339
if (fptr->file_elfmem != NULL) {
usr/src/lib/libproc/common/Psymtab.c
2340
free(fptr->file_elfmem);
usr/src/lib/libproc/common/Psymtab.c
2341
fptr->file_elfmem = NULL;
usr/src/lib/libproc/common/Psymtab.c
2343
(void) close(fptr->file_fd);
usr/src/lib/libproc/common/Psymtab.c
2344
if (fptr->file_dbgelf != NULL)
usr/src/lib/libproc/common/Psymtab.c
2345
(void) elf_end(fptr->file_dbgelf);
usr/src/lib/libproc/common/Psymtab.c
2346
fptr->file_dbgelf = NULL;
usr/src/lib/libproc/common/Psymtab.c
2347
if (fptr->file_dbgfile >= 0)
usr/src/lib/libproc/common/Psymtab.c
2348
(void) close(fptr->file_dbgfile);
usr/src/lib/libproc/common/Psymtab.c
2349
fptr->file_fd = -1;
usr/src/lib/libproc/common/Psymtab.c
2350
fptr->file_dbgfile = -1;
usr/src/lib/libproc/common/Psymtab.c
2393
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
2400
if ((fptr = mptr->map_file) != NULL &&
usr/src/lib/libproc/common/Psymtab.c
2401
fptr->file_lo != NULL) {
usr/src/lib/libproc/common/Psymtab.c
2402
base = fptr->file_lo->rl_base;
usr/src/lib/libproc/common/Psymtab.c
243
mp->map_file = fptr;
usr/src/lib/libproc/common/Psymtab.c
244
fptr->file_ref++;
usr/src/lib/libproc/common/Psymtab.c
256
return (fptr);
usr/src/lib/libproc/common/Psymtab.c
263
file_info_free(struct ps_prochandle *P, file_info_t *fptr)
usr/src/lib/libproc/common/Psymtab.c
265
if (--fptr->file_ref == 0) {
usr/src/lib/libproc/common/Psymtab.c
266
list_remove(&P->file_head, fptr);
usr/src/lib/libproc/common/Psymtab.c
267
if (fptr->file_symtab.sym_elf) {
usr/src/lib/libproc/common/Psymtab.c
268
(void) elf_end(fptr->file_symtab.sym_elf);
usr/src/lib/libproc/common/Psymtab.c
269
free(fptr->file_symtab.sym_elfmem);
usr/src/lib/libproc/common/Psymtab.c
271
if (fptr->file_symtab.sym_byname)
usr/src/lib/libproc/common/Psymtab.c
272
free(fptr->file_symtab.sym_byname);
usr/src/lib/libproc/common/Psymtab.c
273
if (fptr->file_symtab.sym_byaddr)
usr/src/lib/libproc/common/Psymtab.c
274
free(fptr->file_symtab.sym_byaddr);
usr/src/lib/libproc/common/Psymtab.c
276
if (fptr->file_dynsym.sym_elf) {
usr/src/lib/libproc/common/Psymtab.c
277
(void) elf_end(fptr->file_dynsym.sym_elf);
usr/src/lib/libproc/common/Psymtab.c
278
free(fptr->file_dynsym.sym_elfmem);
usr/src/lib/libproc/common/Psymtab.c
280
if (fptr->file_dynsym.sym_byname)
usr/src/lib/libproc/common/Psymtab.c
2808
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
281
free(fptr->file_dynsym.sym_byname);
usr/src/lib/libproc/common/Psymtab.c
2813
(fptr = build_map_symtab(P, mptr)) == NULL || /* no mapped file */
usr/src/lib/libproc/common/Psymtab.c
2814
fptr->file_elf == NULL) /* not an ELF file */
usr/src/lib/libproc/common/Psymtab.c
282
if (fptr->file_dynsym.sym_byaddr)
usr/src/lib/libproc/common/Psymtab.c
2821
addr -= fptr->file_dyn_base;
usr/src/lib/libproc/common/Psymtab.c
2826
if ((sym1p = sym_by_addr(&fptr->file_symtab, addr, &sym1, &i1)) != NULL)
usr/src/lib/libproc/common/Psymtab.c
2827
name1 = fptr->file_symtab.sym_strs + sym1.st_name;
usr/src/lib/libproc/common/Psymtab.c
2828
if ((sym2p = sym_by_addr(&fptr->file_dynsym, addr, &sym2, &i2)) != NULL)
usr/src/lib/libproc/common/Psymtab.c
2829
name2 = fptr->file_dynsym.sym_strs + sym2.st_name;
usr/src/lib/libproc/common/Psymtab.c
283
free(fptr->file_dynsym.sym_byaddr);
usr/src/lib/libproc/common/Psymtab.c
2843
if (lmresolve && (fptr->file_rname != NULL))
usr/src/lib/libproc/common/Psymtab.c
2844
sip->prs_object = fptr->file_rbase;
usr/src/lib/libproc/common/Psymtab.c
2846
sip->prs_object = fptr->file_lbase;
usr/src/lib/libproc/common/Psymtab.c
2849
sip->prs_lmid = (fptr->file_lo == NULL) ? LM_ID_BASE :
usr/src/lib/libproc/common/Psymtab.c
285
if (fptr->file_lo)
usr/src/lib/libproc/common/Psymtab.c
2850
fptr->file_lo->rl_lmident;
usr/src/lib/libproc/common/Psymtab.c
2854
symbolp->st_value += fptr->file_dyn_base;
usr/src/lib/libproc/common/Psymtab.c
286
free(fptr->file_lo);
usr/src/lib/libproc/common/Psymtab.c
287
if (fptr->file_lname)
usr/src/lib/libproc/common/Psymtab.c
288
free(fptr->file_lname);
usr/src/lib/libproc/common/Psymtab.c
289
if (fptr->file_rname)
usr/src/lib/libproc/common/Psymtab.c
2896
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
290
free(fptr->file_rname);
usr/src/lib/libproc/common/Psymtab.c
2908
fptr = list_head(&P->file_head);
usr/src/lib/libproc/common/Psymtab.c
291
if (fptr->file_elf)
usr/src/lib/libproc/common/Psymtab.c
2912
(fptr = build_map_symtab(P, mptr)) == NULL)
usr/src/lib/libproc/common/Psymtab.c
292
(void) elf_end(fptr->file_elf);
usr/src/lib/libproc/common/Psymtab.c
2923
for (; cnt > 0; cnt--, fptr = list_next(&P->file_head, fptr)) {
usr/src/lib/libproc/common/Psymtab.c
2924
Pbuild_file_symtab(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
2926
if (fptr->file_elf == NULL)
usr/src/lib/libproc/common/Psymtab.c
2929
if (lmid != PR_LMID_EVERY && fptr->file_lo != NULL &&
usr/src/lib/libproc/common/Psymtab.c
293
if (fptr->file_elfmem != NULL)
usr/src/lib/libproc/common/Psymtab.c
2930
lmid != fptr->file_lo->rl_lmident)
usr/src/lib/libproc/common/Psymtab.c
2933
if (fptr->file_symtab.sym_data_pri != NULL &&
usr/src/lib/libproc/common/Psymtab.c
2934
sym_by_name(&fptr->file_symtab, sname, symp, &id)) {
usr/src/lib/libproc/common/Psymtab.c
294
free(fptr->file_elfmem);
usr/src/lib/libproc/common/Psymtab.c
2940
sip->prs_lmid = fptr->file_lo == NULL ?
usr/src/lib/libproc/common/Psymtab.c
2941
LM_ID_BASE : fptr->file_lo->rl_lmident;
usr/src/lib/libproc/common/Psymtab.c
2943
} else if (fptr->file_dynsym.sym_data_pri != NULL &&
usr/src/lib/libproc/common/Psymtab.c
2944
sym_by_name(&fptr->file_dynsym, sname, symp, &id)) {
usr/src/lib/libproc/common/Psymtab.c
295
if (fptr->file_fd >= 0)
usr/src/lib/libproc/common/Psymtab.c
2950
sip->prs_lmid = fptr->file_lo == NULL ?
usr/src/lib/libproc/common/Psymtab.c
2951
LM_ID_BASE : fptr->file_lo->rl_lmident;
usr/src/lib/libproc/common/Psymtab.c
2958
symp->st_value += fptr->file_dyn_base;
usr/src/lib/libproc/common/Psymtab.c
296
(void) close(fptr->file_fd);
usr/src/lib/libproc/common/Psymtab.c
297
if (fptr->file_dbgelf)
usr/src/lib/libproc/common/Psymtab.c
298
(void) elf_end(fptr->file_dbgelf);
usr/src/lib/libproc/common/Psymtab.c
299
if (fptr->file_dbgfile >= 0)
usr/src/lib/libproc/common/Psymtab.c
2999
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
300
(void) close(fptr->file_dbgfile);
usr/src/lib/libproc/common/Psymtab.c
3008
if ((fptr = mptr->map_file) == NULL)
usr/src/lib/libproc/common/Psymtab.c
301
ctf_close(fptr->file_ctfp);
usr/src/lib/libproc/common/Psymtab.c
3010
else if (lmresolve && (fptr->file_rname != NULL))
usr/src/lib/libproc/common/Psymtab.c
3011
object_name = fptr->file_rname;
usr/src/lib/libproc/common/Psymtab.c
3013
object_name = fptr->file_lname;
usr/src/lib/libproc/common/Psymtab.c
302
free(fptr->file_ctf_buf);
usr/src/lib/libproc/common/Psymtab.c
303
if (fptr->file_saddrs)
usr/src/lib/libproc/common/Psymtab.c
304
free(fptr->file_saddrs);
usr/src/lib/libproc/common/Psymtab.c
3040
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
3046
for (fptr = list_head(&P->file_head); fptr != NULL;
usr/src/lib/libproc/common/Psymtab.c
3047
fptr = list_next(&P->file_head, fptr)) {
usr/src/lib/libproc/common/Psymtab.c
305
free(fptr);
usr/src/lib/libproc/common/Psymtab.c
3050
if (lmresolve && (fptr->file_rname != NULL))
usr/src/lib/libproc/common/Psymtab.c
3051
lname = fptr->file_rname;
usr/src/lib/libproc/common/Psymtab.c
3052
else if (fptr->file_lname != NULL)
usr/src/lib/libproc/common/Psymtab.c
3053
lname = fptr->file_lname;
usr/src/lib/libproc/common/Psymtab.c
3057
if ((mptr = fptr->file_map) == NULL)
usr/src/lib/libproc/common/Psymtab.c
3086
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
3095
if (((fptr = mptr->map_file) == NULL) ||
usr/src/lib/libproc/common/Psymtab.c
3096
(fptr->file_lname == NULL))
usr/src/lib/libproc/common/Psymtab.c
3098
(void) strlcpy(buffer, fptr->file_lname, bufsize);
usr/src/lib/libproc/common/Psymtab.c
3144
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
3150
(fptr = mptr->map_file) != NULL && fptr->file_lo != NULL) {
usr/src/lib/libproc/common/Psymtab.c
3151
*lmidp = fptr->file_lo->rl_lmident;
usr/src/lib/libproc/common/Psymtab.c
316
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
3174
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
318
if ((fptr = mptr->map_file) != NULL) {
usr/src/lib/libproc/common/Psymtab.c
3186
if ((fptr = build_map_symtab(P, mptr)) == NULL || /* no mapped file */
usr/src/lib/libproc/common/Psymtab.c
3187
fptr->file_elf == NULL) /* not an ELF file */
usr/src/lib/libproc/common/Psymtab.c
319
if (fptr->file_map == mptr)
usr/src/lib/libproc/common/Psymtab.c
3195
symtab = &fptr->file_symtab;
usr/src/lib/libproc/common/Psymtab.c
3199
symtab = &fptr->file_dynsym;
usr/src/lib/libproc/common/Psymtab.c
320
fptr->file_map = NULL;
usr/src/lib/libproc/common/Psymtab.c
3207
si.prs_lmid = fptr->file_lo == NULL ?
usr/src/lib/libproc/common/Psymtab.c
3208
LM_ID_BASE : fptr->file_lo->rl_lmident;
usr/src/lib/libproc/common/Psymtab.c
321
file_info_free(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
3263
sym.st_value += fptr->file_dyn_base;
usr/src/lib/libproc/common/Psymtab.c
3272
fptr->file_shstrs != NULL &&
usr/src/lib/libproc/common/Psymtab.c
3273
gelf_getshdr(elf_getscn(fptr->file_elf,
usr/src/lib/libproc/common/Psymtab.c
3276
shdr.sh_name < fptr->file_shstrsz)
usr/src/lib/libproc/common/Psymtab.c
3277
si.prs_name = fptr->file_shstrs + shdr.sh_name;
usr/src/lib/libproc/common/Psymtab.c
348
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
357
if ((fptr = mptr->map_file) == NULL &&
usr/src/lib/libproc/common/Psymtab.c
358
(fptr = file_info_new(P, mptr)) == NULL) {
usr/src/lib/libproc/common/Psymtab.c
363
if ((fptr->file_lo == NULL) &&
usr/src/lib/libproc/common/Psymtab.c
364
(fptr->file_lo = malloc(sizeof (rd_loadobj_t))) == NULL) {
usr/src/lib/libproc/common/Psymtab.c
366
file_info_free(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
370
fptr->file_map = mptr;
usr/src/lib/libproc/common/Psymtab.c
371
*fptr->file_lo = *lop;
usr/src/lib/libproc/common/Psymtab.c
373
fptr->file_lo->rl_plt_base = fptr->file_plt_base;
usr/src/lib/libproc/common/Psymtab.c
374
fptr->file_lo->rl_plt_size = fptr->file_plt_size;
usr/src/lib/libproc/common/Psymtab.c
376
if (fptr->file_lname) {
usr/src/lib/libproc/common/Psymtab.c
377
free(fptr->file_lname);
usr/src/lib/libproc/common/Psymtab.c
378
fptr->file_lname = NULL;
usr/src/lib/libproc/common/Psymtab.c
379
fptr->file_lbase = NULL;
usr/src/lib/libproc/common/Psymtab.c
381
if (fptr->file_rname) {
usr/src/lib/libproc/common/Psymtab.c
382
free(fptr->file_rname);
usr/src/lib/libproc/common/Psymtab.c
383
fptr->file_rname = NULL;
usr/src/lib/libproc/common/Psymtab.c
384
fptr->file_rbase = NULL;
usr/src/lib/libproc/common/Psymtab.c
388
if ((fptr->file_lname = strdup(buf)) != NULL)
usr/src/lib/libproc/common/Psymtab.c
389
fptr->file_lbase = basename(fptr->file_lname);
usr/src/lib/libproc/common/Psymtab.c
396
((fptr->file_rname = strdup(buf)) != NULL))
usr/src/lib/libproc/common/Psymtab.c
397
fptr->file_rbase = basename(fptr->file_rname);
usr/src/lib/libproc/common/Psymtab.c
400
fptr->file_lname ? buf : "<NULL>", lop->rl_lmident);
usr/src/lib/libproc/common/Psymtab.c
407
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
410
if ((fptr = mptr->map_file) == NULL &&
usr/src/lib/libproc/common/Psymtab.c
411
(fptr = file_info_new(P, mptr)) == NULL)
usr/src/lib/libproc/common/Psymtab.c
414
fptr->file_map = mptr;
usr/src/lib/libproc/common/Psymtab.c
416
if ((fptr->file_lo == NULL) &&
usr/src/lib/libproc/common/Psymtab.c
417
(fptr->file_lo = malloc(sizeof (rd_loadobj_t))) == NULL) {
usr/src/lib/libproc/common/Psymtab.c
418
file_info_free(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
422
(void) memset(fptr->file_lo, 0, sizeof (rd_loadobj_t));
usr/src/lib/libproc/common/Psymtab.c
423
fptr->file_lo->rl_base = mptr->map_pmap.pr_vaddr;
usr/src/lib/libproc/common/Psymtab.c
424
fptr->file_lo->rl_bend =
usr/src/lib/libproc/common/Psymtab.c
427
fptr->file_lo->rl_plt_base = fptr->file_plt_base;
usr/src/lib/libproc/common/Psymtab.c
428
fptr->file_lo->rl_plt_size = fptr->file_plt_size;
usr/src/lib/libproc/common/Psymtab.c
430
if ((fptr->file_lname == NULL) &&
usr/src/lib/libproc/common/Psymtab.c
431
(fptr->file_lname = strdup(lname)) != NULL)
usr/src/lib/libproc/common/Psymtab.c
432
fptr->file_lbase = basename(fptr->file_lname);
usr/src/lib/libproc/common/Psymtab.c
435
((fptr->file_rname = strdup(buf)) != NULL))
usr/src/lib/libproc/common/Psymtab.c
436
fptr->file_rbase = basename(fptr->file_rname);
usr/src/lib/libproc/common/Psymtab.c
592
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
596
for (fptr = list_head(&P->file_head); fptr != NULL;
usr/src/lib/libproc/common/Psymtab.c
597
fptr = list_next(&P->file_head, fptr)) {
usr/src/lib/libproc/common/Psymtab.c
598
Pbuild_file_symtab(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
599
(void) Pbuild_file_ctf(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
637
file_info_t *fptr = build_map_symtab(P, mptr);
usr/src/lib/libproc/common/Psymtab.c
647
if (fptr != NULL && fptr->file_lo != NULL &&
usr/src/lib/libproc/common/Psymtab.c
648
(fptr->file_lo->rl_data_base == (uintptr_t)NULL ||
usr/src/lib/libproc/common/Psymtab.c
650
fptr->file_lo->rl_data_base))
usr/src/lib/libproc/common/Psymtab.c
746
Pbuild_file_ctf(struct ps_prochandle *P, file_info_t *fptr)
usr/src/lib/libproc/common/Psymtab.c
752
if (fptr->file_ctfp != NULL)
usr/src/lib/libproc/common/Psymtab.c
753
return (fptr->file_ctfp);
usr/src/lib/libproc/common/Psymtab.c
755
Pbuild_file_symtab(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
757
if (fptr->file_ctf_size == 0)
usr/src/lib/libproc/common/Psymtab.c
760
symp = fptr->file_ctf_dyn ? &fptr->file_dynsym : &fptr->file_symtab;
usr/src/lib/libproc/common/Psymtab.c
768
if (fptr->file_ctf_buf == NULL) {
usr/src/lib/libproc/common/Psymtab.c
769
fptr->file_ctf_buf = malloc(fptr->file_ctf_size);
usr/src/lib/libproc/common/Psymtab.c
770
if (fptr->file_ctf_buf == NULL) {
usr/src/lib/libproc/common/Psymtab.c
775
if (pread(fptr->file_fd, fptr->file_ctf_buf,
usr/src/lib/libproc/common/Psymtab.c
776
fptr->file_ctf_size, fptr->file_ctf_off) !=
usr/src/lib/libproc/common/Psymtab.c
777
fptr->file_ctf_size) {
usr/src/lib/libproc/common/Psymtab.c
778
free(fptr->file_ctf_buf);
usr/src/lib/libproc/common/Psymtab.c
779
fptr->file_ctf_buf = NULL;
usr/src/lib/libproc/common/Psymtab.c
788
ctdata.cts_data = fptr->file_ctf_buf;
usr/src/lib/libproc/common/Psymtab.c
789
ctdata.cts_size = fptr->file_ctf_size;
usr/src/lib/libproc/common/Psymtab.c
793
symtab.cts_name = fptr->file_ctf_dyn ? ".dynsym" : ".symtab";
usr/src/lib/libproc/common/Psymtab.c
801
strtab.cts_name = fptr->file_ctf_dyn ? ".dynstr" : ".strtab";
usr/src/lib/libproc/common/Psymtab.c
809
fptr->file_ctfp = ctf_bufopen(&ctdata, &symtab, &strtab, &err);
usr/src/lib/libproc/common/Psymtab.c
810
if (fptr->file_ctfp == NULL) {
usr/src/lib/libproc/common/Psymtab.c
812
free(fptr->file_ctf_buf);
usr/src/lib/libproc/common/Psymtab.c
813
fptr->file_ctf_buf = NULL;
usr/src/lib/libproc/common/Psymtab.c
818
(ulong_t)fptr->file_ctf_size, fptr->file_pname);
usr/src/lib/libproc/common/Psymtab.c
820
return (fptr->file_ctfp);
usr/src/lib/libproc/common/Psymtab.c
827
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
833
(fptr = mptr->map_file) == NULL)
usr/src/lib/libproc/common/Psymtab.c
836
return (Pbuild_file_ctf(P, fptr));
usr/src/lib/libproc/common/Psymtab.c
843
file_info_t *fptr = NULL;
usr/src/lib/libproc/common/Psymtab.c
857
fptr = list_head(&P->file_head);
usr/src/lib/libproc/common/Psymtab.c
860
if (fptr == NULL) {
usr/src/lib/libproc/common/Psymtab.c
862
(fptr = mptr->map_file) == NULL)
usr/src/lib/libproc/common/Psymtab.c
866
return (Pbuild_file_ctf(P, fptr));
usr/src/lib/libproc/common/Psymtab.c
933
is_mapping_in_file(struct ps_prochandle *P, map_info_t *mptr, file_info_t *fptr)
usr/src/lib/libproc/common/Psymtab.c
936
rd_loadobj_t *lop = fptr->file_lo;
usr/src/lib/libproc/common/Psymtab.c
965
if (fptr->file_saddrs == NULL &&
usr/src/lib/libproc/common/Psymtab.c
966
(fptr->file_saddrs = get_saddrs(P,
usr/src/lib/libproc/common/Psymtab.c
967
fptr->file_map->map_pmap.pr_vaddr, &fptr->file_nsaddrs)) == NULL)
usr/src/lib/libproc/common/Psymtab.c
972
for (i = 0; i < fptr->file_nsaddrs; i += 2) {
usr/src/lib/libproc/common/Psymtab.c
974
sstart = fptr->file_saddrs[i];
usr/src/lib/libproc/common/Psymtab.c
975
send = fptr->file_saddrs[i + 1];
usr/src/lib/libproc/common/Psymtab.c
990
file_info_t *fptr;
usr/src/lib/libproc/common/Psymtab.c
992
if ((fptr = mptr->map_file) != NULL) {
usr/src/lib/libproc/common/Psymtab.c
993
Pbuild_file_symtab(P, fptr);
usr/src/lib/libproc/common/Psymtab.c
994
return (fptr);
usr/src/lib/libproc/common/Psymtab_machelf.h
34
extern Elf *fake_elf32(struct ps_prochandle *P, file_info_t *fptr,
usr/src/lib/libproc/common/Psymtab_machelf.h
37
extern Elf *fake_elf64(struct ps_prochandle *P, file_info_t *fptr,
usr/src/lib/libproc/common/Psymtab_machelf32.c
219
fake_elf(struct ps_prochandle *P, file_info_t *fptr, uintptr_t addr,
usr/src/lib/libproc/common/Psymtab_machelf32.c
728
fptr->file_elfmem = elfdata;
usr/src/lib/libproc/common/Pzone.c
775
file_info_t *fptr = mptr->map_file;
usr/src/lib/libproc/common/Pzone.c
780
if ((fptr != NULL) && (fptr->file_rname != NULL)) {
usr/src/lib/libproc/common/Pzone.c
781
(void) strlcpy(s, fptr->file_rname, n);
usr/src/lib/libproc/common/Pzone.c
788
((fptr != NULL) && (fptr->file_lname != NULL) &&
usr/src/lib/libproc/common/Pzone.c
789
(strcmp(fptr->file_lname, "a.out") == 0))) {
usr/src/lib/libproc/common/Pzone.c
817
fptr = mptr->map_file;
usr/src/lib/libproc/common/Pzone.c
818
if ((fptr != NULL) && (fptr->file_lname != NULL)) {
usr/src/lib/libproc/common/Pzone.c
819
(void) strlcpy(buf, fptr->file_lname, sizeof (buf));
usr/src/lib/librsm/common/rsmlib.c
288
rsm_attach_entry_t fptr;
usr/src/lib/librsm/common/rsmlib.c
307
fptr = (rsm_attach_entry_t)dlsym(dlh, clib); /* lint !e611 */
usr/src/lib/librsm/common/rsmlib.c
308
if (fptr != NULL) {
usr/src/lib/librsm/common/rsmlib.c
313
error = fptr(unit, &p->cntr_segops);
usr/src/lib/libtecla/common/expand.c
812
const char *fptr = file; /* The pointer used to scan the filename string */
usr/src/lib/libtecla/common/expand.c
845
for( ; *fptr; fptr++) {
usr/src/lib/libtecla/common/expand.c
846
if(ef_string_matches_pattern(fptr, pptr, 0, nextp))
usr/src/lib/libtecla/common/expand.c
859
if(!xplicit && *fptr) {
usr/src/lib/libtecla/common/expand.c
860
fptr++;
usr/src/lib/libtecla/common/expand.c
875
if(xplicit || !ef_matches_range(*fptr++, ++pptr, &pptr))
usr/src/lib/libtecla/common/expand.c
890
if(*fptr == *pptr) {
usr/src/lib/libtecla/common/expand.c
891
fptr++;
usr/src/lib/libtecla/common/expand.c
909
return *fptr == '\0';
usr/src/lib/libtecla/common/history.c
1530
const char *fptr; /* A pointer into the format string */
usr/src/lib/libtecla/common/history.c
1540
fptr = fmt;
usr/src/lib/libtecla/common/history.c
1541
while(*fptr) {
usr/src/lib/libtecla/common/history.c
1545
const char *start = fptr;
usr/src/lib/libtecla/common/history.c
1546
while(*fptr && *fptr != '%')
usr/src/lib/libtecla/common/history.c
1547
fptr++;
usr/src/lib/libtecla/common/history.c
1551
if(fptr > start) {
usr/src/lib/libtecla/common/history.c
1552
len = (int) (fptr - start);
usr/src/lib/libtecla/common/history.c
1559
if(*fptr) {
usr/src/lib/libtecla/common/history.c
1563
switch(*++fptr) {
usr/src/lib/libtecla/common/history.c
1605
if(*fptr)
usr/src/lib/libtecla/common/history.c
1606
fptr++;
usr/src/lib/libtecla/common/pcache.c
512
char **fptr; /* A pointer into pc->abs_mem->files[] */
usr/src/lib/libtecla/common/pcache.c
557
fptr = pc->abs_mem->files;
usr/src/lib/libtecla/common/pcache.c
559
node->files = fptr;
usr/src/lib/libtecla/common/pcache.c
560
fptr += node->nfile;
usr/src/lib/libumem/amd64/umem_genasm.c
430
genasm_frfini(uint8_t *bp, uint32_t maxthr, uintptr_t fptr)
usr/src/lib/libumem/amd64/umem_genasm.c
436
addr = PTC_JMPADDR(fptr, ((uintptr_t)bp + PTC_FRFINI_JFADDR));
usr/src/lib/libumem/amd64/umem_genasm.c
559
uint8_t *fptr;
usr/src/lib/libumem/amd64/umem_genasm.c
566
fptr = (void *)((uintptr_t)umem_genasm_fptr + 5);
usr/src/lib/libumem/amd64/umem_genasm.c
636
if (genasm_free(fptr, umem_genasm_fsize, nents, cp) != 0) {
usr/src/lib/libumem/i386/umem_genasm.c
420
genasm_frfini(uint8_t *bp, uint32_t maxthr, uintptr_t fptr)
usr/src/lib/libumem/i386/umem_genasm.c
426
addr = PTC_JMPADDR(fptr, ((uintptr_t)bp + PTC_FRFINI_JFADDR));
usr/src/lib/libumem/i386/umem_genasm.c
549
uint8_t *fptr;
usr/src/lib/libumem/i386/umem_genasm.c
556
fptr = (void *)((uintptr_t)umem_genasm_fptr + 5);
usr/src/lib/libumem/i386/umem_genasm.c
627
if (genasm_free(fptr, umem_genasm_fsize, nents,
usr/src/lib/print/libhttp-core/common/http.c
664
const char *fptr; /* Pointer into field */
usr/src/lib/print/libhttp-core/common/http.c
678
for (fptr = http->fields[field]; *fptr;)
usr/src/lib/print/libhttp-core/common/http.c
684
while (isspace(*fptr & 255))
usr/src/lib/print/libhttp-core/common/http.c
685
fptr ++;
usr/src/lib/print/libhttp-core/common/http.c
687
if (*fptr == ',')
usr/src/lib/print/libhttp-core/common/http.c
689
fptr ++;
usr/src/lib/print/libhttp-core/common/http.c
698
*fptr && *fptr != '=' && !isspace(*fptr & 255) && ptr < (temp + sizeof(temp) - 1);
usr/src/lib/print/libhttp-core/common/http.c
699
*ptr++ = *fptr++);
usr/src/lib/print/libhttp-core/common/http.c
709
while (isspace(*fptr & 255))
usr/src/lib/print/libhttp-core/common/http.c
710
fptr ++;
usr/src/lib/print/libhttp-core/common/http.c
712
if (!*fptr)
usr/src/lib/print/libhttp-core/common/http.c
715
if (*fptr != '=')
usr/src/lib/print/libhttp-core/common/http.c
722
fptr ++;
usr/src/lib/print/libhttp-core/common/http.c
724
while (isspace(*fptr & 255))
usr/src/lib/print/libhttp-core/common/http.c
725
fptr ++;
usr/src/lib/print/libhttp-core/common/http.c
727
if (*fptr == '\"')
usr/src/lib/print/libhttp-core/common/http.c
733
for (ptr = value, fptr ++;
usr/src/lib/print/libhttp-core/common/http.c
734
*fptr && *fptr != '\"' && ptr < (value + HTTP_MAX_VALUE - 1);
usr/src/lib/print/libhttp-core/common/http.c
735
*ptr++ = *fptr++);
usr/src/lib/print/libhttp-core/common/http.c
739
while (*fptr && *fptr != '\"')
usr/src/lib/print/libhttp-core/common/http.c
740
fptr ++;
usr/src/lib/print/libhttp-core/common/http.c
742
if (*fptr)
usr/src/lib/print/libhttp-core/common/http.c
743
fptr ++;
usr/src/lib/print/libhttp-core/common/http.c
752
*fptr && !isspace(*fptr & 255) && *fptr != ',' && ptr < (value + HTTP_MAX_VALUE - 1);
usr/src/lib/print/libhttp-core/common/http.c
753
*ptr++ = *fptr++);
usr/src/lib/print/libhttp-core/common/http.c
757
while (*fptr && !isspace(*fptr & 255) && *fptr != ',')
usr/src/lib/print/libhttp-core/common/http.c
758
fptr ++;
usr/src/lib/print/libprint/common/nss_ldap.c
1936
FILE *fptr;
usr/src/lib/print/libprint/common/nss_ldap.c
1948
if ((fptr = popen(safe_cmd, "r")) != NULL)
usr/src/lib/print/libprint/common/nss_ldap.c
1950
while ((fgets(linebuf, BUFSIZ, fptr) != NULL) &&
usr/src/lib/print/libprint/common/nss_ldap.c
1966
(void) pclose(fptr);
usr/src/uts/common/inet/ip/tn_ipopt.c
557
uchar_t *fptr, *tptr;
usr/src/uts/common/inet/ip/tn_ipopt.c
561
fptr = tptr = (uchar_t *)(ipha + 1);
usr/src/uts/common/inet/ip/tn_ipopt.c
564
oval = fptr[IPOPT_OPTVAL];
usr/src/uts/common/inet/ip/tn_ipopt.c
575
if (((fptr - (uchar_t *)ipha) & 3) == 0)
usr/src/uts/common/inet/ip/tn_ipopt.c
579
fptr++;
usr/src/uts/common/inet/ip/tn_ipopt.c
587
olen = fptr[IPOPT_OLEN];
usr/src/uts/common/inet/ip/tn_ipopt.c
594
fptr += olen;
usr/src/uts/common/inet/ip/tn_ipopt.c
601
if (tptr != fptr)
usr/src/uts/common/inet/ip/tn_ipopt.c
602
ovbcopy(fptr, tptr, olen);
usr/src/uts/common/inet/ip/tn_ipopt.c
603
fptr += olen;
usr/src/uts/common/inet/ip/tn_ipopt.c
608
fptr += remlen;
usr/src/uts/common/inet/ip/tn_ipopt.c
620
delta = fptr - tptr;
usr/src/uts/common/inet/ip/tn_ipopt.c
622
ovbcopy(fptr, tptr, ((uchar_t *)ipha + buflen) - fptr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17387
void *fptr = (void *)&ddi_intr_get_supported_types;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17389
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
266
ql_fcache_t *fptr = ha->fcache;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
269
while ((fptr != NULL) && (types != 0)) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
271
if ((fptr = ql_get_fbuf(ha->fcache, types)) != NULL) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
273
switch (fptr->type) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
277
"%s fcode: %s;", orv, fptr->verstr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
282
"%s BIOS: %s;", orv, fptr->verstr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
287
"%s EFI: %s;", orv, fptr->verstr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
291
fptr->type);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
294
types &= ~(fptr->type);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3122
ql_fcache_t *fptr;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3148
fptr = ha->fcache;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3154
while ((fptr != NULL) && (fptr->buf != NULL) && (types != 0)) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3156
if ((fptr = ql_get_fbuf(ha->fcache, types)) != NULL) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3158
cpsize = (fptr->buflen < 100 ? fptr->buflen : 100);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3160
if (ddi_copyout(fptr->buf,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3170
types &= ~(fptr->type);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3179
if ((fptr = ql_get_fbuf(ha->fcache, FTYPE_FW)) != NULL) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3182
if (hsize > fptr->buflen) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3184
hsize, fptr->buflen);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3190
cpsize = ((fptr->buflen - hsize) < 100 ?
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3191
fptr->buflen - hsize : 100);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3193
if (ddi_copyout(fptr->buf + hsize,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3230
ql_fcache_t *fptr;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3241
for (fptr = ha->fcache; fptr != NULL; fptr = fptr->next) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3256
fptr = ha->fcache;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3257
while ((fptr != NULL) && (fptr->buf != NULL)) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3259
if (ddi_copyout(fptr->buf,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3261
(fptr->buflen < FBUFSIZE ? fptr->buflen : FBUFSIZE),
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3269
fptr = fptr->next;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7090
ql_get_fbuf(ql_fcache_t *fptr, uint32_t ftype)
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7092
while (fptr != NULL) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7094
if (ftype & fptr->type) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7097
fptr = fptr->next;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7099
return (fptr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7300
ql_flt_ptr_t *fptr;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7322
fptr = (ql_flt_ptr_t *)bp;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7329
if (chksum != 0 || fptr->sig[0] != 'Q' || fptr->sig[1] != 'F' ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7330
fptr->sig[2] != 'L' || fptr->sig[3] != 'T') {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7332
chksum, fptr->sig[0],
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7333
fptr->sig[1], fptr->sig[2], fptr->sig[3]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7337
faddr = CHAR_TO_LONG(fptr->addr[0], fptr->addr[1], fptr->addr[2],
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7338
fptr->addr[3]);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1044
fcip_port_attach_handler(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1046
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1055
(void *)fcip_module_dip, ddi_get_instance(fptr->fcip_dip)));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1094
ddi_get_instance(fptr->fcip_dip), DDI_PSEUDO,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1099
ddi_get_instance(fptr->fcip_dip)));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1109
if (fcip_init_port(fptr) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1125
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1126
fptr->fcip_flags &= ~FCIP_ATTACHING;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1127
fptr->fcip_flags |= FCIP_INITED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1128
fptr->fcip_timeout_ticks = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1133
fptr->fcip_timeout_id = timeout(fcip_timeout, fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1136
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1164
struct fcip *fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1169
ASSERT(fptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1171
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1174
fptr->fcip_flags &= ~(FCIP_POWER_DOWN);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1175
if (fptr->fcip_flags & FCIP_SUSPENDED) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1176
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1180
fptr->fcip_flags &= ~(FCIP_SUSPENDED);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1182
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1194
if (tslp->sl_fcip == fptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1208
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1212
frp = fptr->fcip_rtable[index];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1219
did = fcip_get_broadcast_did(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1228
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1237
fcip_handle_topology(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1243
fptr->fcip_timeout_id = timeout(fcip_timeout, fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1245
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1255
fcip_rt_update(struct fcip *fptr, fc_portmap_t *devlist, uint32_t listlen)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1258
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1263
ASSERT(!mutex_owned(&fptr->fcip_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1264
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1269
frp = fcip_lookup_rtable(fptr, &(pmap->map_pwwn),
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1310
did = fptr->fcip_broadcast_did;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1315
fptr->fcip_timeout_ticks +
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1335
frp->fcipr_next = fptr->fcip_rtable[hash_bucket];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1336
fptr->fcip_rtable[hash_bucket] = frp;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
134
static void fcip_setipq(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1357
(frp->fcipr_d_id.port_id != fptr->fcip_broadcast_did)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1359
frp->fcipr_invalid_timeout = fptr->fcip_timeout_ticks +
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1370
(void) fcip_do_plogi(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1376
(void) fcip_do_plogi(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1380
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1388
fcip_lookup_rtable(struct fcip *fptr, la_wwn_t *wwn, int matchflag)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1393
ASSERT(mutex_owned(&fptr->fcip_rt_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1396
frp = fptr->fcip_rtable[hash_bucket];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
142
static int fcip_start(queue_t *wq, mblk_t *mp, struct fcip *fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
144
static void fcip_sendup(struct fcip *fptr, mblk_t *mp,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
146
static struct fcipstr *fcip_accept(struct fcipstr *slp, struct fcip *fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1463
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
148
static mblk_t *fcip_addudind(struct fcip *fptr, mblk_t *mp,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1487
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1488
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1491
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1492
fptr->fcip_flags |= FCIP_DETACHING;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1493
if (fptr->fcip_ipq ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1494
fptr->fcip_flags & (FCIP_IN_TIMEOUT |
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1498
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
150
static int fcip_setup_mac_addr(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1507
mutex_enter(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1508
if (fcip_port_get_num_pkts(fptr) > 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1509
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
151
static void fcip_kstat_init(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1510
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1516
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1518
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1519
if (fcip_plogi_in_progress(fptr)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1520
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1521
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1527
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1529
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1541
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1542
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1543
fptr->fcip_flags &= ~(FCIP_DETACHING);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1544
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1559
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1560
if (fptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1561
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1566
detached = fptr->fcip_flags & FCIP_DETACHED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1567
fptr->fcip_flags &= ~(FCIP_DETACHING);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1568
fptr->fcip_flags |= FCIP_DETACHED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1569
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1626
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1652
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1664
if (strp->sl_fcip == fptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1679
if (fptr != NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1680
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1682
(fptr) ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1683
(fptr->fcip_flags &
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1686
&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1692
fptr->fcip_flags |=
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1694
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
174
static int fcip_port_attach_handler(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1740
fcip_check_port_busy(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1744
ASSERT(fptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1745
ASSERT(MUTEX_HELD(&fptr->fcip_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1747
mutex_enter(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1749
if (fptr->fcip_flags & FCIP_PORT_BUSY ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1750
((num_pkts = fcip_port_get_num_pkts(fptr)) > 0) ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1751
fptr->fcip_num_ipkts_pending) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1756
fptr->fcip_flags, num_pkts, fptr->fcip_num_ipkts_pending));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1759
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1792
struct fcip *fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1800
ASSERT(fptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1801
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1809
((fptr->fcip_flags & FCIP_IN_CALLBACK) ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1810
(fptr->fcip_flags & FCIP_IN_TIMEOUT))) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1811
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1813
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1816
if (fptr->fcip_flags & FCIP_IN_CALLBACK ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1817
fptr->fcip_flags & FCIP_IN_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1818
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1823
if (fptr->fcip_flags & FCIP_SUSPENDED) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1824
fptr->fcip_flags |= FCIP_POWER_DOWN;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1825
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1828
fptr->fcip_flags |= FCIP_POWER_DOWN;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1831
fptr->fcip_flags |= FCIP_SUSPENDED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1833
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1837
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1845
if (tslp->sl_fcip == fptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1865
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1875
frp = fptr->fcip_rtable[index];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1890
mutex_enter(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1895
fdestp = fptr->fcip_dest[hash_bucket];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1911
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1926
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1928
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1949
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1952
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1953
fptr->fcip_flags &= ~(FCIP_SUSPENDED | FCIP_POWER_DOWN);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1954
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1959
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1960
tid = fptr->fcip_timeout_id;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1961
fptr->fcip_timeout_id = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1962
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
197
static void fcip_handle_topology(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
198
static int fcip_init_port(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
199
struct fcip_routing_table *fcip_lookup_rtable(struct fcip *fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2001
fcip_kstat_init(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2007
ASSERT(mutex_owned(&fptr->fcip_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2009
instance = ddi_get_instance(fptr->fcip_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
201
static void fcip_rt_update(struct fcip *fptr, fc_portmap_t *devlist,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2013
fptr->fcip_kstatp = kstat_create("fcip", instance, buf, "net",
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2018
fptr->fcip_kstatp = kstat_create("fcip", instance, buf, "net",
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2022
if (fptr->fcip_kstatp == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2027
fcipstatp = (struct fcipstat *)fptr->fcip_kstatp->ks_data;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
203
static void fcip_rt_flush(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
205
static int fcip_do_plogi(struct fcip *fptr, struct fcip_routing_table *frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
209
static struct fcip_dest *fcip_get_dest(struct fcip *fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2101
fptr->fcip_kstatp->ks_update = fcip_stat_update;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2102
fptr->fcip_kstatp->ks_private = (void *) fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2103
kstat_install(fptr->fcip_kstatp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
211
static struct fcip_dest *fcip_add_dest(struct fcip *fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2114
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2116
fptr = (struct fcip *)fcip_statp->ks_private;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2120
fptr->fcip_ipackets = fcipstatp->fcips_ipackets.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2121
fptr->fcip_ierrors = fcipstatp->fcips_ierrors.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2122
fptr->fcip_opackets = fcipstatp->fcips_opackets.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2123
fptr->fcip_oerrors = fcipstatp->fcips_oerrors.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2124
fptr->fcip_collisions = fcipstatp->fcips_collisions.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2125
fptr->fcip_defer = fcipstatp->fcips_defer.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2126
fptr->fcip_fram = fcipstatp->fcips_fram.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2127
fptr->fcip_crc = fcipstatp->fcips_crc.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2128
fptr->fcip_oflo = fcipstatp->fcips_oflo.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2129
fptr->fcip_uflo = fcipstatp->fcips_uflo.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
213
static int fcip_dest_add_broadcast_entry(struct fcip *fptr, int new_flag);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2130
fptr->fcip_missed = fcipstatp->fcips_missed.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2131
fptr->fcip_tlcol = fcipstatp->fcips_tlcol.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2132
fptr->fcip_trtry = fcipstatp->fcips_trtry.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2133
fptr->fcip_tnocar = fcipstatp->fcips_tnocar.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2134
fptr->fcip_inits = fcipstatp->fcips_inits.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2135
fptr->fcip_notbufs = fcipstatp->fcips_notbufs.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2136
fptr->fcip_norbufs = fcipstatp->fcips_norbufs.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2137
fptr->fcip_nocanput = fcipstatp->fcips_nocanput.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2138
fptr->fcip_allocbfail = fcipstatp->fcips_allocbfail.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2139
fptr->fcip_rcvbytes = fcipstatp->fcips_rcvbytes.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
214
static uint32_t fcip_get_broadcast_did(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2140
fptr->fcip_xmtbytes = fcipstatp->fcips_xmtbytes.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2141
fptr->fcip_multircv = fcipstatp->fcips_multircv.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2142
fptr->fcip_multixmt = fcipstatp->fcips_multixmt.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2143
fptr->fcip_brdcstrcv = fcipstatp->fcips_brdcstrcv.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2144
fptr->fcip_norcvbuf = fcipstatp->fcips_norcvbuf.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2145
fptr->fcip_noxmtbuf = fcipstatp->fcips_noxmtbuf.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2146
fptr->fcip_allocbfail = fcipstatp->fcips_allocbfail.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2147
fptr->fcip_allocbfail = fcipstatp->fcips_allocbfail.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2148
fptr->fcip_allocbfail = fcipstatp->fcips_allocbfail.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2149
fptr->fcip_allocbfail = fcipstatp->fcips_allocbfail.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
215
static void fcip_cleanup_dest(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2150
fptr->fcip_allocbfail = fcipstatp->fcips_allocbfail.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2151
fptr->fcip_allocbfail = fcipstatp->fcips_allocbfail.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2152
fptr->fcip_allocbfail = fcipstatp->fcips_allocbfail.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2153
fptr->fcip_allocbfail = fcipstatp->fcips_allocbfail.value.ul;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2156
fcipstatp->fcips_ipackets.value.ul = fptr->fcip_ipackets;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2157
fcipstatp->fcips_ierrors.value.ul = fptr->fcip_ierrors;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2158
fcipstatp->fcips_opackets.value.ul = fptr->fcip_opackets;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2159
fcipstatp->fcips_oerrors.value.ul = fptr->fcip_oerrors;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2160
fcipstatp->fcips_collisions.value.ul = fptr->fcip_collisions;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2161
fcipstatp->fcips_nocanput.value.ul = fptr->fcip_nocanput;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2162
fcipstatp->fcips_allocbfail.value.ul = fptr->fcip_allocbfail;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2163
fcipstatp->fcips_defer.value.ul = fptr->fcip_defer;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2164
fcipstatp->fcips_fram.value.ul = fptr->fcip_fram;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2165
fcipstatp->fcips_crc.value.ul = fptr->fcip_crc;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2166
fcipstatp->fcips_oflo.value.ul = fptr->fcip_oflo;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2167
fcipstatp->fcips_uflo.value.ul = fptr->fcip_uflo;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2168
fcipstatp->fcips_missed.value.ul = fptr->fcip_missed;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2169
fcipstatp->fcips_tlcol.value.ul = fptr->fcip_tlcol;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2170
fcipstatp->fcips_trtry.value.ul = fptr->fcip_trtry;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2171
fcipstatp->fcips_tnocar.value.ul = fptr->fcip_tnocar;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2172
fcipstatp->fcips_inits.value.ul = fptr->fcip_inits;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2173
fcipstatp->fcips_norbufs.value.ul = fptr->fcip_norbufs;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2174
fcipstatp->fcips_notbufs.value.ul = fptr->fcip_notbufs;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2175
fcipstatp->fcips_rcvbytes.value.ul = fptr->fcip_rcvbytes;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2176
fcipstatp->fcips_xmtbytes.value.ul = fptr->fcip_xmtbytes;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2177
fcipstatp->fcips_multircv.value.ul = fptr->fcip_multircv;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2178
fcipstatp->fcips_multixmt.value.ul = fptr->fcip_multixmt;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2179
fcipstatp->fcips_brdcstrcv.value.ul = fptr->fcip_brdcstrcv;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2180
fcipstatp->fcips_brdcstxmt.value.ul = fptr->fcip_brdcstxmt;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2181
fcipstatp->fcips_norcvbuf.value.ul = fptr->fcip_norcvbuf;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2182
fcipstatp->fcips_noxmtbuf.value.ul = fptr->fcip_noxmtbuf;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2200
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2213
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2214
ASSERT(fptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2216
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
222
static int fcip_port_get_num_pkts(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2226
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2228
if ((fptr->fcip_flags & (FCIP_DETACHING | FCIP_DETACHED)) ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2229
(fptr->fcip_flags & (FCIP_SUSPENDED | FCIP_POWER_DOWN))) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
223
static int fcip_check_port_busy(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2230
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2239
fptr->fcip_flags |= FCIP_IN_SC_CB;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2259
fcip_handle_topology(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
226
static int fcip_plogi_in_progress(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2262
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
227
static int fcip_check_port_exists(struct fcip *fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2289
fcip_rt_update(fptr, changelist, listlen);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2309
fcip_rt_update(fptr, changelist, listlen);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
232
static fcip_pkt_t *fcip_pkt_alloc(struct fcip *fptr, mblk_t *bp,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2322
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2323
fptr->fcip_port_state = FCIP_PORT_ONLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2324
if (fptr->fcip_flags & FCIP_LINK_DOWN) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2325
fptr->fcip_flags &= ~FCIP_LINK_DOWN;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2327
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2334
if (slp && slp->sl_fcip == fptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
235
static fcip_pkt_t *fcip_ipkt_alloc(struct fcip *fptr, int cmdlen,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2351
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2352
fptr->fcip_mark_offline = fptr->fcip_timeout_ticks +
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2354
fptr->fcip_port_state = FCIP_PORT_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2355
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2362
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2364
frtp = fptr->fcip_rtable[index];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2370
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2384
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2387
while (fptr->fcip_ub_upstream) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2388
cv_wait(&fptr->fcip_ub_cv, &fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2392
fptr->fcip_mark_offline = fptr->fcip_timeout_ticks +
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2394
fptr->fcip_port_state = FCIP_PORT_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2395
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2400
fcip_rt_update(fptr, changelist, listlen);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2413
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2414
fptr->fcip_flags &= ~(FCIP_IN_SC_CB);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2415
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2456
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2469
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2470
ASSERT(fptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2471
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2477
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2478
if ((fptr->fcip_flags & (FCIP_DETACHING | FCIP_DETACHED)) ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2479
(fptr->fcip_flags & (FCIP_SUSPENDED | FCIP_POWER_DOWN))) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2480
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2489
fptr->fcip_flags |= FCIP_IN_ELS_CB;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2490
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2531
fcip_handle_farp_request(fptr, fcmd) ==
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2565
fcip_handle_farp_response(fptr, fcmd) ==
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2570
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2571
fptr->fcip_farp_rsp_flag = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2572
cv_signal(&fptr->fcip_farp_cv);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2573
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2590
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2591
fptr->fcip_flags &= ~(FCIP_IN_ELS_CB);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2592
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2601
fcip_handle_farp_request(struct fcip *fptr, la_els_farp_t *fcmd)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2605
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2626
fcip_rt_update(fptr, &map, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2627
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2628
frp = fcip_lookup_rtable(fptr, &fcmd->req_pwwn, FCIP_COMPARE_NWWN);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2629
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2631
fdestp = fcip_add_dest(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2633
fcip_pkt = fcip_ipkt_alloc(fptr, sizeof (la_els_farp_t),
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2659
if (fcip_do_plogi(fptr, frp) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
268
static struct fcip_dest *fcip_do_farp(struct fcip *fptr, la_wwn_t *pwwn,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2693
fcip_handle_farp_response(struct fcip *fptr, la_els_farp_t *fcmd)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2714
fcip_rt_update(fptr, &map, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2715
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2716
frp = fcip_lookup_rtable(fptr, &fcmd->resp_pwwn, FCIP_COMPARE_NWWN);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2717
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2719
fdestp = fcip_add_dest(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
272
static int fcip_handle_farp_request(struct fcip *fptr, la_els_farp_t *fcmd);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
273
static int fcip_handle_farp_response(struct fcip *fptr, la_els_farp_t *fcmd);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2753
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2773
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2774
ASSERT(fptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2776
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2780
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2781
if ((fptr->fcip_flags & (FCIP_DETACHING | FCIP_DETACHED)) ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2782
(fptr->fcip_flags & (FCIP_SUSPENDED | FCIP_POWER_DOWN))) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2783
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2793
fptr->fcip_flags |= FCIP_IN_DATA_CB;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2794
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2861
fcip_cache_arp_broadcast(fptr, buf);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2943
fptr->fcip_ipackets++;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2946
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2947
fptr->fcip_ub_upstream++;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2948
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2954
if (fcip_sendup_alloc_enque(fptr, bp, NULL) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2963
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2964
fptr->fcip_ub_upstream++;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2965
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2966
if (fcip_sendup_alloc_enque(fptr, bp,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2978
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2979
fptr->fcip_flags &= ~(FCIP_IN_DATA_CB);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2980
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3008
fcip_sendup_alloc_enque(struct fcip *fptr, mblk_t *mp, struct fcipstr *(*f)())
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3013
msg_elem = kmem_cache_alloc(fptr->fcip_sendup_cache, KM_NOSLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3022
mutex_enter(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3023
if (fptr->fcip_sendup_head == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3024
fptr->fcip_sendup_head = fptr->fcip_sendup_tail = msg_elem;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3026
fptr->fcip_sendup_tail->fcipsu_next = msg_elem;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3027
fptr->fcip_sendup_tail = msg_elem;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3029
fptr->fcip_sendup_cnt++;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3030
cv_signal(&fptr->fcip_sendup_cv);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3031
mutex_exit(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3048
fcip_cache_arp_broadcast(struct fcip *fptr, fc_unsol_buf_t *buf)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3055
fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3063
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3064
frp = fcip_lookup_rtable(fptr, &nhdr->net_src_addr, FCIP_COMPARE_NWWN);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3065
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3077
fcip_rt_update(fptr, &map, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3078
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3079
frp = fcip_lookup_rtable(fptr, &nhdr->net_src_addr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3081
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3083
(void) fcip_add_dest(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3100
struct fcip *fptr = (struct fcip *)arg;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3104
CALLB_CPR_INIT(&fptr->fcip_cpr_info, &fptr->fcip_sendup_mutex,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3107
mutex_enter(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3110
while (fptr->fcip_sendup_thr_initted &&
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3111
fptr->fcip_sendup_head == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3112
CALLB_CPR_SAFE_BEGIN(&fptr->fcip_cpr_info);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3113
cv_wait(&fptr->fcip_sendup_cv,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3114
&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3115
CALLB_CPR_SAFE_END(&fptr->fcip_cpr_info,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3116
&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3119
if (fptr->fcip_sendup_thr_initted == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3123
msg_elem = fptr->fcip_sendup_head;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3124
fptr->fcip_sendup_head = msg_elem->fcipsu_next;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3126
mutex_exit(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3134
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3135
if (fptr->fcip_ipq && canputnext(fptr->fcip_ipq)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3136
ip4q = fptr->fcip_ipq;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3137
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3140
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3144
fcip_sendup(fptr, msg_elem->fcipsu_mp,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3152
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3153
ASSERT(fptr->fcip_ub_upstream > 0);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3154
fptr->fcip_ub_upstream--;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3155
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3158
kmem_cache_free(fptr->fcip_sendup_cache, (void *)msg_elem);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3159
mutex_enter(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3160
fptr->fcip_sendup_cnt--;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3165
CALLB_CPR_EXIT(&fptr->fcip_cpr_info);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3167
mutex_exit(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3171
cv_signal(&fptr->fcip_sendup_cv);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3189
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3193
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3204
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3205
ASSERT(fptr->fcip_ub_upstream > 0);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3206
fptr->fcip_ub_upstream--;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3207
cv_signal(&fptr->fcip_ub_cv);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3208
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3221
fcip_sendup(struct fcip *fptr, mblk_t *mp, struct fcipstr *(*acceptfunc)())
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3250
if ((slp = (*acceptfunc)(fcipstrup, fptr, type, dhostp)) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3259
for (; nslp = (*acceptfunc)(slp->sl_nextp, fptr, type, dhostp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3270
} else if ((nmp = fcip_addudind(fptr, nmp,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3287
} else if ((mp = fcip_addudind(fptr, mp, nhdr, type))) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3306
fcip_accept(struct fcipstr *slp, struct fcip *fptr, int type, la_wwn_t *dhostp)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3316
if ((slp->sl_fcip == fptr) && (type == sap)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3327
fcip_addudind(struct fcip *fptr, mblk_t *mp, fcph_network_hdr_t *nhdr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3347
fptr->fcip_allocbfail++;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3540
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3545
fptr = slp->sl_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3574
if (tslp->sl_fcip == fptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3586
fcip_setipq(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3596
fcip_setipq(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3607
if (slp->sl_fcip == fptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3623
if (fcip_check_port_exists(fptr)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3628
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3630
fptr->fcip_ipq = ipq;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3632
fptr->fcip_ipq = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3634
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3672
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3682
fptr = slp->sl_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3686
(fptr == NULL)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3706
fptr->fcip_wantw = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3708
} else if (fptr->fcip_flags & FCIP_PROMISC) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3718
fdestp = fcip_get_dest(fptr, &headerp->net_dest_addr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3727
(void) fcip_start(wq, mp, fptr, fdestp, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3886
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3891
fptr = slp->sl_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3898
if (fptr && mp) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3900
fdestp = fcip_get_dest(fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3906
if (fcip_start(wq, mp, fptr, fdestp,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3938
fcip_start(queue_t *wq, mblk_t *mp, struct fcip *fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3945
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3956
if (fptr->fcip_flags & FCIP_LINK_DOWN) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4001
fcip_pkt = fcip_pkt_alloc(fptr, mp, flags, datalen);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4049
fptr->fcip_opackets++;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4179
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4187
fptr = fcip_pkt->fcip_pkt_fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4188
fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4193
did = fptr->fcip_broadcast_did;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4201
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4204
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4206
} else if (fptr->fcip_port_state == FCIP_PORT_OFFLINE) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4207
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4210
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4216
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4222
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4232
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4247
(void) fcip_do_plogi(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4257
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4260
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4339
fcip_handle_topology(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4342
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4344
ASSERT(mutex_owned(&fptr->fcip_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4355
fptr->fcip_broadcast_did = fcip_get_broadcast_did(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4356
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4357
(void) fcip_dest_add_broadcast_entry(fptr, 0);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4358
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4363
fptr->fcip_instance, fport->fcipp_topology));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4383
fptr->fcip_port_state = FCIP_PORT_ONLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4390
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4391
fcip_rt_update(fptr, port_map, listlen);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4392
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4417
fptr->fcip_port_state = FCIP_PORT_ONLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4419
if (!(fptr->fcip_flags & FCIP_REG_INPROGRESS)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4420
fptr->fcip_flags |= FCIP_REG_INPROGRESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4421
if (taskq_dispatch(fptr->fcip_tq, fcip_port_ns,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4422
fptr, KM_NOSLEEP) == TASKQID_INVALID) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4423
fptr->fcip_flags &= ~FCIP_REG_INPROGRESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4434
fptr->fcip_port_state = FCIP_PORT_ONLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4441
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4442
fcip_rt_update(fptr, port_map, listlen);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4443
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4462
struct fcip *fptr = (struct fcip *)arg;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4463
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4468
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4469
if ((fptr->fcip_flags & (FCIP_DETACHING | FCIP_DETACHED)) ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4470
(fptr->fcip_flags & (FCIP_SUSPENDED | FCIP_POWER_DOWN))) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4471
fptr->fcip_flags &= ~FCIP_REG_INPROGRESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4472
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4475
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4502
(void) fc_ulp_port_ns(fptr->fcip_port_info->fcipp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4505
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4506
fptr->fcip_flags &= ~FCIP_REG_INPROGRESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4507
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4518
fcip_init_port(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4521
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4527
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4536
if (fcip_setup_mac_addr(fptr) == FCIP_INVALID_WWN) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4537
fptr->fcip_port_state = FCIP_PORT_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4545
fcip_rt_flush(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4550
fcip_kstat_init(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4555
fptr->fcip_ub_nbufs = fcip_ub_nbufs;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4556
tok_buf_size = sizeof (*fptr->fcip_ub_tokens) * fcip_ub_nbufs;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4561
fptr->fcip_ub_tokens = kmem_zalloc(tok_buf_size, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4563
if (fptr->fcip_ub_tokens == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4567
fptr->fcip_instance));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4570
rval = fc_ulp_uballoc(fport->fcipp_handle, &fptr->fcip_ub_nbufs,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4571
fcip_ub_size, FC_TYPE_IS8802_SNAP, fptr->fcip_ub_tokens);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4576
fptr->fcip_instance, rval));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4584
fptr->fcip_port_state = FCIP_PORT_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4598
if (fptr->fcip_ub_nbufs != fcip_ub_nbufs) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4619
(void) sprintf(buf, "fcip%d_cache", fptr->fcip_instance);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4620
fptr->fcip_xmit_cache = kmem_cache_create(buf,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4625
(void) sprintf(buf, "fcip%d_sendup_cache", fptr->fcip_instance);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4626
fptr->fcip_sendup_cache = kmem_cache_create(buf,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4630
if (fptr->fcip_xmit_cache == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4633
fptr->fcip_instance));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4643
fcip_handle_topology(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4644
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4645
if (fcip_dest_add_broadcast_entry(fptr, 1) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4648
fptr->fcip_instance));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4649
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4662
if (fptr->fcip_kstatp) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4663
kstat_delete(fptr->fcip_kstatp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4664
fptr->fcip_kstatp = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4667
if (fptr->fcip_xmit_cache) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4668
kmem_cache_destroy(fptr->fcip_xmit_cache);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4669
fptr->fcip_xmit_cache = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4672
if (fptr->fcip_sendup_cache) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4673
kmem_cache_destroy(fptr->fcip_sendup_cache);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4674
fptr->fcip_sendup_cache = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4678
if (fptr->fcip_ub_tokens) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4679
uint64_t *tokens = fptr->fcip_ub_tokens;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4680
fptr->fcip_ub_tokens = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4682
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4683
(void) fc_ulp_ubfree(fport->fcipp_handle, fptr->fcip_ub_nbufs,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4688
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4698
fcip_setup_mac_addr(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4700
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4702
ASSERT(mutex_owned(&fptr->fcip_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4704
fptr->fcip_addrflags = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4717
wwn_to_ether(&fport->fcipp_nwwn, &fptr->fcip_macaddr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4718
fcip_ether_to_str(&fptr->fcip_macaddr, etherstr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4722
fptr->fcip_addrflags = (FCIP_FACTADDR_PRESENT |
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4741
fcip_rt_flush(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4745
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4748
frtp = fptr->fcip_rtable[index];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4754
fptr->fcip_rtable[index] = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4756
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4775
struct fcip *fptr = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4785
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4790
if (fptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4791
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4792
instance = ddi_get_instance(fptr->fcip_dip);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4797
tid = fptr->fcip_timeout_id;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4798
fptr->fcip_timeout_id = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4800
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4802
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4810
mutex_enter(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4811
if (fptr->fcip_sendup_thr_initted) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4812
fptr->fcip_sendup_thr_initted = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4813
cv_signal(&fptr->fcip_sendup_cv);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4814
cv_wait(&fptr->fcip_sendup_cv,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4815
&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4817
ASSERT(fptr->fcip_sendup_head == NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4818
fptr->fcip_sendup_head = fptr->fcip_sendup_tail = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4819
mutex_exit(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4824
if (fptr->fcip_tq) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4825
taskq_t *tq = fptr->fcip_tq;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4827
fptr->fcip_tq = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4829
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4831
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4834
if (fptr->fcip_kstatp) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4835
kstat_delete(fptr->fcip_kstatp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4836
fptr->fcip_kstatp = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4840
fcip_rt_flush(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4842
if (fptr->fcip_xmit_cache) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4843
kmem_cache_destroy(fptr->fcip_xmit_cache);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4844
fptr->fcip_xmit_cache = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4847
if (fptr->fcip_sendup_cache) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4848
kmem_cache_destroy(fptr->fcip_sendup_cache);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4849
fptr->fcip_sendup_cache = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4852
fcip_cleanup_dest(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4855
if (fptr->fcip_ub_tokens) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4856
uint64_t *tokens = fptr->fcip_ub_tokens;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4858
fptr->fcip_ub_tokens = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4859
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4870
fptr->fcip_ub_nbufs, tokens);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4875
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4878
mutex_destroy(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4879
mutex_destroy(&fptr->fcip_ub_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4880
mutex_destroy(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4881
mutex_destroy(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4882
mutex_destroy(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4883
cv_destroy(&fptr->fcip_farp_cv);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4884
cv_destroy(&fptr->fcip_sendup_cv);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4885
cv_destroy(&fptr->fcip_ub_cv);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4948
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4957
fptr = slp->sl_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4985
if (fptr) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4986
fcip_ether_to_str(&fptr->fcip_macaddr, etherstr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4989
ether_bcopy(&fptr->fcip_macaddr, &dlap->dl_phys);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5010
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5031
fptr = slp->sl_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5033
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5038
fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5066
fdestp = fcip_get_dest(fptr, &wwn);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5095
ether_to_wwn(&fptr->fcip_macaddr, &wwn);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5158
(void) fcip_start(wq, mp, fptr, fdestp, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5172
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5198
if ((fptr = fport->fcipp_fcip) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5202
ddi_get_instance(fptr->fcip_dip)));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5204
if (ppa == ddi_get_instance(fptr->fcip_dip)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5231
fptr = ddi_get_soft_state(fcip_softp, ppa);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5232
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5242
slp->sl_fcip = fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5248
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5249
if (fptr->fcip_flags & FCIP_LINK_DOWN) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5252
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5293
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5311
fptr = slp->sl_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5313
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5340
ether_bcopy(&fptr->fcip_macaddr, &fcipaddr.dl_phys);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5343
fcip_setipq(fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5384
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5397
fptr = slp->sl_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5399
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5404
fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5416
ether_bcopy(&fptr->fcip_macaddr, &addr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5439
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5475
if ((fptr = slp->sl_fcip) == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5507
if (fc_ulp_port_ns(fptr->fcip_port_info->fcipp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5554
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5561
fptr = slp->sl_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5562
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5577
fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5659
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5665
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5679
fcip_pkt->fcip_pkt_fptr = fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5718
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5722
fptr = fport->fcipp_fcip;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5724
ASSERT(fptr == fcip_pkt->fcip_pkt_fptr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5737
fcip_get_dest(struct fcip *fptr, la_wwn_t *pwwn)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5758
if (fcip_check_port_exists(fptr)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5762
fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5768
mutex_enter(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5769
fdestp = fptr->fcip_dest[hash_bucket];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5778
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5785
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5792
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5793
frp = fcip_lookup_rtable(fptr, pwwn, FCIP_COMPARE_NWWN);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5794
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5869
fcip_rt_update(fptr, &map, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5871
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5872
frp = fcip_lookup_rtable(fptr, pwwn,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5874
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5876
fdestp = fcip_add_dest(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5884
fdestp = fcip_do_farp(fptr, pwwn, NULL,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5893
fdestp = fcip_add_dest(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5936
fcip_add_dest(struct fcip *fptr, struct fcip_routing_table *frp)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5948
mutex_enter(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5955
fdestp = fptr->fcip_dest[hash_bucket];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5962
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5976
fdest_new->fcipd_next = fptr->fcip_dest[hash_bucket];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5980
fptr->fcip_dest[hash_bucket] = fdest_new;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5983
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5991
fcip_cleanup_dest(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5997
mutex_enter(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6000
fdestp = fptr->fcip_dest[i];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6006
fptr->fcip_dest[i] = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6009
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6023
fcip_do_farp(struct fcip *fptr, la_wwn_t *pwwn, char *ip_addr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6028
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6038
bdestp = fcip_get_dest(fptr, &broadcast_wwn);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6044
fcip_pkt = fcip_ipkt_alloc(fptr, sizeof (la_els_farp_t),
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6136
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6137
fptr->fcip_farp_rsp_flag = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6138
while (!fptr->fcip_farp_rsp_flag) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6139
if (cv_timedwait(&fptr->fcip_farp_cv, &fptr->fcip_mutex,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6145
fptr->fcip_farp_rsp_flag = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6152
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6153
frp = fcip_lookup_rtable(fptr, pwwn, FCIP_COMPARE_NWWN);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6154
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6158
fdestp = fcip_get_dest(fptr, pwwn);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6164
fptr->fcip_farp_rsp_flag = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6168
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6189
fcip_do_plogi(struct fcip *fptr, struct fcip_routing_table *frp)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6193
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6215
fcip_pkt = fcip_ipkt_alloc(fptr, sizeof (la_els_logi_t),
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6249
fcip_pkt->fcip_pkt_ttl = fptr->fcip_timeout_ticks + fc_pkt->pkt_timeout;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6291
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6305
fptr = fcip_pkt->fcip_pkt_fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6306
fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6318
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6320
frp->fcipr_invalid_timeout = fptr->fcip_timeout_ticks +
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6322
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6332
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6337
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6350
fcip_pkt_alloc(struct fcip *fptr, mblk_t *bp, int flags, int datalen)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6357
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6359
fcip_pkt = kmem_cache_alloc(fptr->fcip_xmit_cache, flags);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6433
struct fcip *fptr = fcip_pkt->fcip_pkt_fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6447
(void) fc_ulp_uninit_packet(fptr->fcip_port_info->fcipp_handle, fc_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6449
kmem_cache_free(fptr->fcip_xmit_cache, (void *)fcip_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6457
fcip_ipkt_alloc(struct fcip *fptr, int cmdlen, int resplen,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6463
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6482
fcip_pkt->fcip_pkt_fptr = fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6494
if (ddi_dma_alloc_handle(fptr->fcip_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6548
if (ddi_dma_alloc_handle(fptr->fcip_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6621
if (!MUTEX_HELD(&fptr->fcip_mutex)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6623
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6626
fptr->fcip_num_ipkts_pending++;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6629
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6647
struct fcip *fptr = fcip_pkt->fcip_pkt_fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6648
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6650
ASSERT(fptr != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6651
ASSERT(!mutex_owned(&fptr->fcip_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6654
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6655
if (fptr->fcip_num_ipkts_pending) /* Safety check */
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6656
fptr->fcip_num_ipkts_pending--;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6657
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6692
struct fcip *fptr = fcip_pkt->fcip_pkt_fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6720
fcip_pkt->fcip_pkt_ttl = fptr->fcip_timeout_ticks + fc_pkt->pkt_timeout;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6732
struct fcip *fptr = fcip_pkt->fcip_pkt_fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6733
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6751
did = fptr->fcip_broadcast_did;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6776
fcip_pkt->fcip_pkt_ttl = fptr->fcip_timeout_ticks + fc_pkt->pkt_timeout;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6853
fcip_dest_add_broadcast_entry(struct fcip *fptr, int new_flag)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6864
did = fptr->fcip_broadcast_did;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6881
fcip_rt_update(fptr, &map, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6882
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6883
frp = fcip_lookup_rtable(fptr, &broadcast_wwn, FCIP_COMPARE_NWWN);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6884
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6888
(void) fcip_add_dest(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6900
fcip_rt_update(fptr, &map, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6901
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6902
frp = fcip_lookup_rtable(fptr, &broadcast_wwn, FCIP_COMPARE_NWWN);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6903
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6907
(void) fcip_add_dest(fptr, frp);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6917
fcip_get_broadcast_did(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6919
fcip_port_info_t *fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6985
fptr->fcip_instance));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7008
struct fcip *fptr = (struct fcip *)arg;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7016
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7018
fptr->fcip_flags |= FCIP_IN_TIMEOUT;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7019
fptr->fcip_timeout_ticks += fcip_tick_incr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7021
if (fptr->fcip_flags & (FCIP_DETACHED | FCIP_DETACHING | \
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7023
fptr->fcip_flags &= ~(FCIP_IN_TIMEOUT);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7024
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7028
if (fptr->fcip_port_state == FCIP_PORT_OFFLINE) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7029
if (fptr->fcip_timeout_ticks > fptr->fcip_mark_offline) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7030
fptr->fcip_flags |= FCIP_LINK_DOWN;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7033
if (!fptr->fcip_flags & FCIP_RTE_REMOVING) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7036
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7049
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7051
frtp = fptr->fcip_rtable[index];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7054
(fptr->fcip_timeout_ticks >
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7065
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7066
fptr->fcip_flags |= FCIP_RTE_REMOVING;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7067
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7069
if (taskq_dispatch(fptr->fcip_tq,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7070
fcip_rte_remove_deferred, fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7079
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7080
fptr->fcip_flags &=
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7082
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7088
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7091
mutex_enter(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7097
fdestp = fptr->fcip_dest[i];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7107
if (fptr->fcip_timeout_ticks >
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7113
if (taskq_dispatch(fptr->fcip_tq,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7145
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7150
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7152
fptr->fcip_timeout_id = timeout(fcip_timeout, fptr,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7154
fptr->fcip_flags &= ~(FCIP_IN_TIMEOUT);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7155
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7168
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7174
fptr = fcip_pkt->fcip_pkt_fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7175
fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7231
struct fcip *fptr = (struct fcip *)arg;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7239
mutex_enter(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7241
frtp = fptr->fcip_rtable[index];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7252
mutex_enter(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7257
fdestp = fptr->fcip_dest[hash_bucket];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7273
mutex_exit(&fptr->fcip_dest_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7301
fptr->fcip_rtable[index] =
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7317
mutex_exit(&fptr->fcip_rt_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7321
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7322
fptr->fcip_flags &= ~FCIP_RTE_REMOVING;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7323
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7331
fcip_port_get_num_pkts(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7337
ASSERT(mutex_owned(&fptr->fcip_dest_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7340
fdestp = fptr->fcip_dest[i];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7363
fcip_plogi_in_progress(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7368
ASSERT(mutex_owned(&fptr->fcip_rt_mutex));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7371
frp = fptr->fcip_rtable[i];
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7389
fcip_check_port_exists(struct fcip *fptr)
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7395
fport = fptr->fcip_port_info;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
759
struct fcip *fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
881
fptr = ddi_get_soft_state(fcip_softp, instance);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
883
if (fptr == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
893
mutex_init(&fptr->fcip_mutex, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
894
mutex_init(&fptr->fcip_ub_mutex, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
895
mutex_init(&fptr->fcip_rt_mutex, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
896
mutex_init(&fptr->fcip_dest_mutex, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
897
mutex_init(&fptr->fcip_sendup_mutex, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
898
cv_init(&fptr->fcip_farp_cv, NULL, CV_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
899
cv_init(&fptr->fcip_sendup_cv, NULL, CV_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
900
cv_init(&fptr->fcip_ub_cv, NULL, CV_DRIVER, NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
902
mutex_enter(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
904
fptr->fcip_dip = fport->fcipp_dip; /* parent's dip */
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
905
fptr->fcip_instance = instance;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
906
fptr->fcip_ub_upstream = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
910
fptr->fcip_port_state = FCIP_PORT_ONLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
911
if (fptr->fcip_flags & FCIP_LINK_DOWN) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
912
fptr->fcip_flags &= ~FCIP_LINK_DOWN;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
915
fptr->fcip_port_state = FCIP_PORT_OFFLINE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
918
fptr->fcip_flags |= FCIP_ATTACHING;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
919
fptr->fcip_port_info = fport;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
925
wwn_to_ether(&fport->fcipp_nwwn, &fptr->fcip_macaddr);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
927
fport->fcipp_fcip = fptr;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
931
(long)(sizeof (fptr->fcip_dest)),
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
932
(long)(sizeof (fptr->fcip_rtable))));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
934
bzero(fptr->fcip_dest, sizeof (fptr->fcip_dest));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
935
bzero(fptr->fcip_rtable, sizeof (fptr->fcip_rtable));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
941
fptr->fcip_tq = taskq_create("fcip_tasks",
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
945
mutex_exit(&fptr->fcip_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
956
mutex_enter(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
958
(void (*)())fcip_sendup_thr, (caddr_t)fptr, 0, &p0,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
960
mutex_exit(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
967
fptr->fcip_sendup_thr_initted = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
968
fptr->fcip_sendup_head = fptr->fcip_sendup_tail = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
969
mutex_exit(&fptr->fcip_sendup_mutex);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
973
if (fcip_port_attach_handler(fptr) != FC_SUCCESS) {
usr/src/uts/common/io/rwd/rt2661.c
2418
uint32_t tmp, sta[3], *fptr;
usr/src/uts/common/io/rwd/rt2661.c
2527
fptr = sta;
usr/src/uts/common/io/rwd/rt2661.c
2529
*fptr = RT2661_MEM_READ1(sc, off++);
usr/src/uts/common/io/rwd/rt2661.c
484
const uint8_t *fptr;
usr/src/uts/common/io/rwd/rt2661.c
486
fptr = ucode_p;
usr/src/uts/common/io/rwd/rt2661.c
503
RT2661_MEM_WRITE1(sc, off++, *fptr++);
usr/src/uts/common/io/rwn/rt2860.c
1466
uint8_t *fptr, wcid = 0;
usr/src/uts/common/io/rwn/rt2860.c
1475
fptr = in->in_macaddr;
usr/src/uts/common/io/rwn/rt2860.c
1477
rt2860_mem_write1(sc, off++, *fptr++);
usr/src/uts/common/io/rwn/rt2860.c
1944
uint8_t *ucode, *fptr;
usr/src/uts/common/io/rwn/rt2860.c
1955
fptr = ucode;
usr/src/uts/common/io/rwn/rt2860.c
1958
rt2860_mem_write1(sc, off++, *fptr++);
usr/src/uts/i86pc/io/mp_platform_common.c
338
caddr_t fptr = NULL;
usr/src/uts/i86pc/io/mp_platform_common.c
394
fptr = psm_map_phys(ebda_start, MPFPS_RAM_WIN_LEN, PROT_READ);
usr/src/uts/i86pc/io/mp_platform_common.c
395
PRM_DEBUG(fptr);
usr/src/uts/i86pc/io/mp_platform_common.c
396
if (fptr) {
usr/src/uts/i86pc/io/mp_platform_common.c
398
apic_find_fps_sig(fptr, MPFPS_RAM_WIN_LEN)))
usr/src/uts/i86pc/io/mp_platform_common.c
399
psm_unmap_phys(fptr, MPFPS_RAM_WIN_LEN);
usr/src/uts/i86pc/io/mp_platform_common.c
415
fptr = psm_map_phys(base_mem_end, MPFPS_RAM_WIN_LEN,
usr/src/uts/i86pc/io/mp_platform_common.c
417
PRM_DEBUG(fptr);
usr/src/uts/i86pc/io/mp_platform_common.c
419
if (fptr) {
usr/src/uts/i86pc/io/mp_platform_common.c
420
if (!(fpsp = apic_find_fps_sig(fptr,
usr/src/uts/i86pc/io/mp_platform_common.c
422
psm_unmap_phys(fptr, MPFPS_RAM_WIN_LEN);
usr/src/uts/i86pc/io/mp_platform_common.c
433
fptr = psm_map_phys(MPFPS_ROM_WIN_START,
usr/src/uts/i86pc/io/mp_platform_common.c
435
PRM_DEBUG(fptr);
usr/src/uts/i86pc/io/mp_platform_common.c
436
if (fptr) {
usr/src/uts/i86pc/io/mp_platform_common.c
438
apic_find_fps_sig(fptr, MPFPS_ROM_WIN_LEN))) {
usr/src/uts/i86pc/io/mp_platform_common.c
439
psm_unmap_phys(fptr, MPFPS_ROM_WIN_LEN);
usr/src/uts/i86pc/io/mp_platform_common.c
445
PRM_DEBUG(fptr);
usr/src/uts/i86pc/io/mp_platform_common.c
450
psm_unmap_phys(fptr, MPFPS_ROM_WIN_LEN);
usr/src/uts/i86pc/io/mp_platform_common.c
457
psm_unmap_phys(fptr, MPFPS_ROM_WIN_LEN);
usr/src/uts/i86pc/io/mp_platform_common.c
467
psm_unmap_phys(fptr, mapsize);
usr/src/uts/i86pc/io/mp_platform_common.c
479
psm_unmap_phys(fptr, mapsize); /* unmap floating ptr struct */
usr/src/uts/i86pc/io/mp_platform_common.c
86
static struct apic_mpfps_hdr *apic_find_fps_sig(caddr_t fptr, int size);