Lines Matching refs:options

541 	struct find_options *options;
544 options = parse_options(argc, argv);
545 /* need to free options manually ? */
546 if (options == NULL || ! options->lpname_defined) {
552 if ((siport = find_lport_by_wwn(options->lpname)) != NULL)
817 struct find_options *options;
821 options = parse_options(argc, argv);
822 /* need to free options manually ? */
823 if (options == NULL || (options->rpname_defined == 0 &&
824 options->rp_defined == 0)) {
829 if (options->rpname_defined && options->rp_defined) {
835 if (options->rp_defined) {
836 siport = irp_to_ilport(options->rp);
840 siport, options->rp);
844 /* if options->rpname_defined */
846 if ((irpp = find_irp_by_wwn(siport, options->rpname)) != NULL)
860 print_tasks(struct fct_i_cmd *icmdp, struct find_options *options, void *arg)
888 if (options->show_task_flags) {
894 if (options->show_lport) {
906 print_tasks_on_rp(struct fct_i_cmd *icmdp, struct find_options *options,
943 if (options->show_task_flags) {
949 if (options->show_lport) {
962 print_all_cmds(struct fct_i_cmd *icmd, struct find_options *options, void *arg)
972 struct find_options *options, void *arg)
1007 filter(slot.slot_cmd, options, arg);
1019 struct find_options *options;
1022 options = parse_options(argc, argv);
1023 if (options == NULL ||
1024 (options->lpname_defined == 0 && options->rpname_defined == 0)) {
1030 if (options->lpname_defined) {
1031 siport = find_lport_by_wwn(options->lpname);
1035 outstanding_cmds_on_lport(siport, print_tasks, options, NULL);
1039 if (options->rpname_defined) {
1044 if ((irpp = find_irp_by_wwn(siport, options->rpname))
1047 print_tasks_on_rp, options, irpp);
1059 struct find_options *options;
1062 options = parse_options(argc, argv);
1063 if (options == NULL || options->lpname_defined == 0) {
1068 siport = find_lport_by_wwn(options->lpname);
1072 outstanding_cmds_on_lport(siport, print_all_cmds, options, NULL);
1399 struct find_options *options;
1406 options = mdb_zalloc(sizeof (struct find_options), UM_SLEEP);
1427 ret = string2wwn(ptr, options->lpname);
1434 options->lpname_defined = 1;
1438 options->rp_defined = 1;
1439 options->rp =
1446 ret = string2wwn(ptr, options->rpname);
1449 options->rpname_defined = 1;
1464 options->show_task_flags = 1;
1467 options->show_lport = 1;
1484 return (options);
1486 mdb_free(options, sizeof (struct find_options));