• Home
  • Raw
  • Download

Lines Matching refs:sns_cmd

975 	struct sns_cmd_pkt	*sns_cmd;  in qla2x00_prep_sns_cmd()  local
978 sns_cmd = ha->sns_cmd; in qla2x00_prep_sns_cmd()
979 memset(sns_cmd, 0, sizeof(struct sns_cmd_pkt)); in qla2x00_prep_sns_cmd()
981 sns_cmd->p.cmd.buffer_length = cpu_to_le16(wc); in qla2x00_prep_sns_cmd()
982 put_unaligned_le64(ha->sns_cmd_dma, &sns_cmd->p.cmd.buffer_address); in qla2x00_prep_sns_cmd()
983 sns_cmd->p.cmd.subcommand_length = cpu_to_le16(scmd_len); in qla2x00_prep_sns_cmd()
984 sns_cmd->p.cmd.subcommand = cpu_to_le16(cmd); in qla2x00_prep_sns_cmd()
986 sns_cmd->p.cmd.size = cpu_to_le16(wc); in qla2x00_prep_sns_cmd()
990 return (sns_cmd); in qla2x00_prep_sns_cmd()
1007 struct sns_cmd_pkt *sns_cmd; in qla2x00_sns_ga_nxt() local
1011 sns_cmd = qla2x00_prep_sns_cmd(vha, GA_NXT_CMD, GA_NXT_SNS_SCMD_LEN, in qla2x00_sns_ga_nxt()
1015 sns_cmd->p.cmd.param[0] = fcport->d_id.b.al_pa; in qla2x00_sns_ga_nxt()
1016 sns_cmd->p.cmd.param[1] = fcport->d_id.b.area; in qla2x00_sns_ga_nxt()
1017 sns_cmd->p.cmd.param[2] = fcport->d_id.b.domain; in qla2x00_sns_ga_nxt()
1026 } else if (sns_cmd->p.gan_data[8] != 0x80 || in qla2x00_sns_ga_nxt()
1027 sns_cmd->p.gan_data[9] != 0x02) { in qla2x00_sns_ga_nxt()
1031 sns_cmd->p.gan_data, 16); in qla2x00_sns_ga_nxt()
1035 fcport->d_id.b.domain = sns_cmd->p.gan_data[17]; in qla2x00_sns_ga_nxt()
1036 fcport->d_id.b.area = sns_cmd->p.gan_data[18]; in qla2x00_sns_ga_nxt()
1037 fcport->d_id.b.al_pa = sns_cmd->p.gan_data[19]; in qla2x00_sns_ga_nxt()
1039 memcpy(fcport->node_name, &sns_cmd->p.gan_data[284], WWN_SIZE); in qla2x00_sns_ga_nxt()
1040 memcpy(fcport->port_name, &sns_cmd->p.gan_data[20], WWN_SIZE); in qla2x00_sns_ga_nxt()
1042 if (sns_cmd->p.gan_data[16] != NS_N_PORT_TYPE && in qla2x00_sns_ga_nxt()
1043 sns_cmd->p.gan_data[16] != NS_NL_PORT_TYPE) in qla2x00_sns_ga_nxt()
1075 struct sns_cmd_pkt *sns_cmd; in qla2x00_sns_gid_pt() local
1082 sns_cmd = qla2x00_prep_sns_cmd(vha, GID_PT_CMD, GID_PT_SNS_SCMD_LEN, in qla2x00_sns_gid_pt()
1086 sns_cmd->p.cmd.param[0] = NS_NX_PORT_TYPE; in qla2x00_sns_gid_pt()
1095 } else if (sns_cmd->p.gid_data[8] != 0x80 || in qla2x00_sns_gid_pt()
1096 sns_cmd->p.gid_data[9] != 0x02) { in qla2x00_sns_gid_pt()
1100 sns_cmd->p.gid_data, 16); in qla2x00_sns_gid_pt()
1105 entry = &sns_cmd->p.gid_data[(i * 4) + 16]; in qla2x00_sns_gid_pt()
1145 struct sns_cmd_pkt *sns_cmd; in qla2x00_sns_gpn_id() local
1150 sns_cmd = qla2x00_prep_sns_cmd(vha, GPN_ID_CMD, in qla2x00_sns_gpn_id()
1154 sns_cmd->p.cmd.param[0] = list[i].d_id.b.al_pa; in qla2x00_sns_gpn_id()
1155 sns_cmd->p.cmd.param[1] = list[i].d_id.b.area; in qla2x00_sns_gpn_id()
1156 sns_cmd->p.cmd.param[2] = list[i].d_id.b.domain; in qla2x00_sns_gpn_id()
1165 } else if (sns_cmd->p.gpn_data[8] != 0x80 || in qla2x00_sns_gpn_id()
1166 sns_cmd->p.gpn_data[9] != 0x02) { in qla2x00_sns_gpn_id()
1170 sns_cmd->p.gpn_data, 16); in qla2x00_sns_gpn_id()
1174 memcpy(list[i].port_name, &sns_cmd->p.gpn_data[16], in qla2x00_sns_gpn_id()
1201 struct sns_cmd_pkt *sns_cmd; in qla2x00_sns_gnn_id() local
1206 sns_cmd = qla2x00_prep_sns_cmd(vha, GNN_ID_CMD, in qla2x00_sns_gnn_id()
1210 sns_cmd->p.cmd.param[0] = list[i].d_id.b.al_pa; in qla2x00_sns_gnn_id()
1211 sns_cmd->p.cmd.param[1] = list[i].d_id.b.area; in qla2x00_sns_gnn_id()
1212 sns_cmd->p.cmd.param[2] = list[i].d_id.b.domain; in qla2x00_sns_gnn_id()
1221 } else if (sns_cmd->p.gnn_data[8] != 0x80 || in qla2x00_sns_gnn_id()
1222 sns_cmd->p.gnn_data[9] != 0x02) { in qla2x00_sns_gnn_id()
1226 sns_cmd->p.gnn_data, 16); in qla2x00_sns_gnn_id()
1230 memcpy(list[i].node_name, &sns_cmd->p.gnn_data[16], in qla2x00_sns_gnn_id()
1262 struct sns_cmd_pkt *sns_cmd; in qla2x00_sns_rft_id() local
1266 sns_cmd = qla2x00_prep_sns_cmd(vha, RFT_ID_CMD, RFT_ID_SNS_SCMD_LEN, in qla2x00_sns_rft_id()
1270 sns_cmd->p.cmd.param[0] = vha->d_id.b.al_pa; in qla2x00_sns_rft_id()
1271 sns_cmd->p.cmd.param[1] = vha->d_id.b.area; in qla2x00_sns_rft_id()
1272 sns_cmd->p.cmd.param[2] = vha->d_id.b.domain; in qla2x00_sns_rft_id()
1274 sns_cmd->p.cmd.param[5] = 0x01; /* FCP-3 */ in qla2x00_sns_rft_id()
1283 } else if (sns_cmd->p.rft_data[8] != 0x80 || in qla2x00_sns_rft_id()
1284 sns_cmd->p.rft_data[9] != 0x02) { in qla2x00_sns_rft_id()
1288 sns_cmd->p.rft_data, 16); in qla2x00_sns_rft_id()
1311 struct sns_cmd_pkt *sns_cmd; in qla2x00_sns_rnn_id() local
1315 sns_cmd = qla2x00_prep_sns_cmd(vha, RNN_ID_CMD, RNN_ID_SNS_SCMD_LEN, in qla2x00_sns_rnn_id()
1319 sns_cmd->p.cmd.param[0] = vha->d_id.b.al_pa; in qla2x00_sns_rnn_id()
1320 sns_cmd->p.cmd.param[1] = vha->d_id.b.area; in qla2x00_sns_rnn_id()
1321 sns_cmd->p.cmd.param[2] = vha->d_id.b.domain; in qla2x00_sns_rnn_id()
1323 sns_cmd->p.cmd.param[4] = vha->node_name[7]; in qla2x00_sns_rnn_id()
1324 sns_cmd->p.cmd.param[5] = vha->node_name[6]; in qla2x00_sns_rnn_id()
1325 sns_cmd->p.cmd.param[6] = vha->node_name[5]; in qla2x00_sns_rnn_id()
1326 sns_cmd->p.cmd.param[7] = vha->node_name[4]; in qla2x00_sns_rnn_id()
1327 sns_cmd->p.cmd.param[8] = vha->node_name[3]; in qla2x00_sns_rnn_id()
1328 sns_cmd->p.cmd.param[9] = vha->node_name[2]; in qla2x00_sns_rnn_id()
1329 sns_cmd->p.cmd.param[10] = vha->node_name[1]; in qla2x00_sns_rnn_id()
1330 sns_cmd->p.cmd.param[11] = vha->node_name[0]; in qla2x00_sns_rnn_id()
1339 } else if (sns_cmd->p.rnn_data[8] != 0x80 || in qla2x00_sns_rnn_id()
1340 sns_cmd->p.rnn_data[9] != 0x02) { in qla2x00_sns_rnn_id()
1344 sns_cmd->p.rnn_data, 16); in qla2x00_sns_rnn_id()