Lines Matching defs:hdr

650 	msg.hdr.msg_type = CTL_MSG_DATAMOVE;
651 msg.hdr.original_sc = io->io_hdr.remote_io;
652 msg.hdr.serializing_sc = io;
653 msg.hdr.nexus = io->io_hdr.nexus;
654 msg.hdr.status = io->io_hdr.status;
765 msg.hdr.msg_type = CTL_MSG_FINISH_IO;
766 msg.hdr.original_sc = io->io_hdr.remote_io;
767 msg.hdr.nexus = io->io_hdr.nexus;
768 msg.hdr.status = io->io_hdr.status;
788 if (msg_info->hdr.original_sc == NULL) {
794 ctsio = &msg_info->hdr.original_sc->scsiio;
797 ctsio->io_hdr.status = msg_info->hdr.status;
811 if (msg_info->hdr.serializing_sc == NULL) {
817 ctsio = &msg_info->hdr.serializing_sc->scsiio;
851 msg->hdr.msg_type = CTL_MSG_LUN_SYNC;
852 msg->hdr.nexus.targ_lun = lun->lun;
853 msg->hdr.nexus.targ_mapped_lun = lun->lun;
909 msg->hdr.msg_type = CTL_MSG_PORT_SYNC;
910 msg->hdr.nexus.targ_port = port->targ_port;
971 msg->hdr.msg_type = CTL_MSG_IID_SYNC;
972 msg->hdr.nexus.targ_port = port->targ_port;
973 msg->hdr.nexus.initid = iid;
1007 msg.hdr.msg_type = CTL_MSG_MODE_SYNC;
1008 msg.hdr.nexus.targ_port = initidx / CTL_MAX_INIT_PER_PORT;
1009 msg.hdr.nexus.initid = initidx % CTL_MAX_INIT_PER_PORT;
1010 msg.hdr.nexus.targ_lun = lun->lun;
1011 msg.hdr.nexus.targ_mapped_lun = lun->lun;
1095 uint32_t iid = ctl_get_initindex(&msg->hdr.nexus);
1098 if (msg->hdr.nexus.targ_mapped_lun >= ctl_max_luns ||
1099 (lun = softc->ctl_luns[msg->hdr.nexus.targ_mapped_lun]) == NULL) {
1130 targ_lun = msg->hdr.nexus.targ_mapped_lun;
1200 port = softc->ctl_ports[msg->hdr.nexus.targ_port];
1203 msg->hdr.nexus.targ_port));
1207 port->targ_port = msg->hdr.nexus.targ_port;
1212 msg->hdr.nexus.targ_port));
1216 __func__, msg->hdr.nexus.targ_port);
1313 port = softc->ctl_ports[msg->hdr.nexus.targ_port];
1316 __func__, msg->hdr.nexus.targ_port);
1319 iid = msg->hdr.nexus.initid;
1370 targ_lun = msg->hdr.nexus.targ_mapped_lun;
1395 initidx = ctl_get_initindex(&msg->hdr.nexus);
1432 switch (msg->hdr.msg_type) {
1439 io->io_hdr.remote_io = msg->hdr.original_sc;
1451 io->io_hdr.nexus = msg->hdr.nexus;
1477 io = msg->hdr.original_sc;
1489 io->io_hdr.remote_io = msg->hdr.serializing_sc;
1490 if (msg->hdr.status == CTL_SUCCESS)
1491 io->io_hdr.status = msg->hdr.status;
1544 if (msg->hdr.serializing_sc == NULL) {
1555 io = msg->hdr.serializing_sc;
1561 if (msg->hdr.status != CTL_STATUS_NONE) {
1562 io->io_hdr.status = msg->hdr.status;
1568 if (msg->hdr.status == CTL_SUCCESS)
1577 io = msg->hdr.original_sc;
1585 io->io_hdr.remote_io = msg->hdr.serializing_sc;
1604 io = msg->hdr.original_sc;
1619 /* io = msg->hdr.serializing_sc; */
1632 taskio->io_hdr.nexus = msg->hdr.nexus;
1650 presio->io_hdr.nexus = msg->hdr.nexus;
1674 msg->hdr.msg_type);
1708 dest->io_hdr.status = src->hdr.status;
1719 dest->hdr.status = src->io_hdr.status;
2344 msg_info.hdr.original_sc = ctsio->io_hdr.remote_io;
2345 msg_info.hdr.serializing_sc = (union ctl_io *)ctsio;
2346 msg_info.hdr.msg_type = CTL_MSG_R2R;
2348 sizeof(msg_info.hdr), M_WAITOK);
2370 msg_info.hdr.original_sc = ctsio->io_hdr.remote_io;
2371 msg_info.hdr.serializing_sc = NULL;
2372 msg_info.hdr.msg_type = CTL_MSG_BAD_JUJU;
4935 msg.hdr.msg_type = CTL_MSG_UA;
4936 msg.hdr.nexus.initid = -1;
4937 msg.hdr.nexus.targ_port = -1;
4938 msg.hdr.nexus.targ_lun = lun->lun;
4939 msg.hdr.nexus.targ_mapped_lun = lun->lun;
5032 msg.hdr.msg_type = CTL_MSG_UA;
5033 msg.hdr.nexus.initid = -1;
5034 msg.hdr.nexus.targ_port = -1;
5035 msg.hdr.nexus.targ_lun = lun->lun;
5036 msg.hdr.nexus.targ_mapped_lun = lun->lun;
5766 struct scsi_unmap_header *hdr;
5797 hdr = (struct scsi_unmap_header *)ctsio->kern_data_ptr;
5798 if (len < sizeof (*hdr) ||
5799 len < (scsi_2btoul(hdr->length) + sizeof(hdr->length)) ||
5800 len < (scsi_2btoul(hdr->desc_length) + sizeof (*hdr)) ||
5801 scsi_2btoul(hdr->desc_length) % sizeof(*buf) != 0) {
5810 len = scsi_2btoul(hdr->desc_length);
5811 buf = (struct scsi_unmap_desc *)(hdr + 1);
6730 scsi_ulto2b(SLP_SAP, data->sap.hdr.param_code);
6731 data->sap.hdr.param_control = SLP_LBIN;
6732 data->sap.hdr.param_len = sizeof(struct scsi_log_stat_and_perf) -
6752 scsi_ulto2b(SLP_IT, data->it.hdr.param_code);
6753 data->it.hdr.param_control = SLP_LBIN;
6754 data->it.hdr.param_len = sizeof(struct scsi_log_idle_time) -
6759 scsi_ulto2b(SLP_TI, data->ti.hdr.param_code);
6760 data->it.hdr.param_control = SLP_LBIN;
6761 data->ti.hdr.param_len = sizeof(struct scsi_log_time_interval) -
6778 scsi_ulto2b(SLP_IE_GEN, data->hdr.param_code);
6779 data->hdr.param_control = SLP_LBIN;
6780 data->hdr.param_len = sizeof(struct scsi_log_informational_exceptions) -
7788 persis_io.hdr.nexus = ctsio->io_hdr.nexus;
7789 persis_io.hdr.msg_type = CTL_MSG_PERS_ACTION;
7858 persis_io.hdr.nexus = ctsio->io_hdr.nexus;
7859 persis_io.hdr.msg_type = CTL_MSG_PERS_ACTION;
7935 persis_io.hdr.nexus = ctsio->io_hdr.nexus;
7936 persis_io.hdr.msg_type = CTL_MSG_PERS_ACTION;
7972 persis_io.hdr.nexus = ctsio->io_hdr.nexus;
7973 persis_io.hdr.msg_type = CTL_MSG_PERS_ACTION;
8253 persis_io.hdr.nexus = ctsio->io_hdr.nexus;
8254 persis_io.hdr.msg_type = CTL_MSG_PERS_ACTION;
8272 persis_io.hdr.nexus = ctsio->io_hdr.nexus;
8273 persis_io.hdr.msg_type = CTL_MSG_PERS_ACTION;
8320 persis_io.hdr.nexus = ctsio->io_hdr.nexus;
8321 persis_io.hdr.msg_type = CTL_MSG_PERS_ACTION;
8378 persis_io.hdr.nexus = ctsio->io_hdr.nexus;
8379 persis_io.hdr.msg_type = CTL_MSG_PERS_ACTION;
8403 persis_io.hdr.nexus = ctsio->io_hdr.nexus;
8404 persis_io.hdr.msg_type = CTL_MSG_PERS_ACTION;
8447 targ_lun = msg->hdr.nexus.targ_mapped_lun;
8460 residx = ctl_get_initindex(&msg->hdr.nexus);
10128 struct scsi_get_config_header *hdr;
10156 hdr = (struct scsi_get_config_header *)ctsio->kern_data_ptr;
10158 scsi_ulto2b(0x0000, hdr->current_profile);
10160 scsi_ulto2b(0x0010, hdr->current_profile);
10161 feature = (struct scsi_get_config_feature *)(hdr + 1);
10312 data_len = (uint8_t *)feature - (uint8_t *)hdr;
10314 feature = (struct scsi_get_config_feature *)(hdr + 1);
10318 data_len = (uint8_t *)feature - (uint8_t *)hdr;
10320 scsi_ulto4b(data_len - 4, hdr->data_length);
10334 struct scsi_get_event_status_header *hdr;
10356 hdr = (struct scsi_get_event_status_header *)ctsio->kern_data_ptr;
10357 scsi_ulto2b(0, hdr->descr_length);
10358 hdr->nea_class = SGESN_NEA;
10359 hdr->supported_class = 0;
10371 struct scsi_mechanism_status_header *hdr;
10385 hdr = (struct scsi_mechanism_status_header *)ctsio->kern_data_ptr;
10386 hdr->state1 = 0x00;
10387 hdr->state2 = 0xe0;
10388 scsi_ulto3b(0, hdr->lba);
10389 hdr->slots_num = 0;
10390 scsi_ulto2b(0, hdr->slots_length);
10414 struct scsi_read_toc_hdr *hdr;
10436 hdr = (struct scsi_read_toc_hdr *)ctsio->kern_data_ptr;
10438 scsi_ulto2b(0x12, hdr->data_length);
10439 hdr->first = 1;
10440 hdr->last = 1;
10441 descr = (struct scsi_read_toc_type01_descr *)(hdr + 1);
10456 scsi_ulto2b(0x0a, hdr->data_length);
10457 hdr->first = 1;
10458 hdr->last = 1;
10459 descr = (struct scsi_read_toc_type01_descr *)(hdr + 1);
10954 msg_info.hdr.original_sc = io->io_hdr.remote_io;
10955 msg_info.hdr.serializing_sc = io;
10956 msg_info.hdr.msg_type = CTL_MSG_R2R;
10958 sizeof(msg_info.hdr), M_NOWAIT);
10990 msg_info.hdr.original_sc = io->io_hdr.remote_io;
10991 msg_info.hdr.serializing_sc = NULL;
10992 msg_info.hdr.msg_type = CTL_MSG_BAD_JUJU;
11408 msg_info.hdr.msg_type = CTL_MSG_SERIALIZE;
11409 msg_info.hdr.original_sc = (union ctl_io *)ctsio;
11410 msg_info.hdr.serializing_sc = NULL;
11411 msg_info.hdr.nexus = ctsio->io_hdr.nexus;
11586 msg_info.hdr.nexus = io->io_hdr.nexus;
11588 msg_info.hdr.msg_type = CTL_MSG_MANAGE_TASKS;
11589 msg_info.hdr.original_sc = NULL;
11590 msg_info.hdr.serializing_sc = NULL;
11693 msg_info.hdr.msg_type = CTL_MSG_MANAGE_TASKS;
11694 msg_info.hdr.nexus = io->io_hdr.nexus;
11696 msg_info.hdr.original_sc = NULL;
11697 msg_info.hdr.serializing_sc = NULL;
11733 msg_info.hdr.nexus = xio->io_hdr.nexus;
11737 msg_info.hdr.msg_type = CTL_MSG_MANAGE_TASKS;
11738 msg_info.hdr.original_sc = NULL;
11739 msg_info.hdr.serializing_sc = NULL;
11827 msg_info.hdr.nexus = io->io_hdr.nexus;
11829 msg_info.hdr.msg_type = CTL_MSG_MANAGE_TASKS;
11830 msg_info.hdr.original_sc = NULL;
11831 msg_info.hdr.serializing_sc = NULL;
11906 msg_info.hdr.nexus = io->io_hdr.nexus;
11910 msg_info.hdr.msg_type = CTL_MSG_MANAGE_TASKS;
11911 msg_info.hdr.original_sc = NULL;
11912 msg_info.hdr.serializing_sc = NULL;
12376 msg.hdr.msg_type = CTL_MSG_DATAMOVE_DONE;
12377 msg.hdr.original_sc = io;
12378 msg.hdr.serializing_sc = io->io_hdr.remote_io;
12379 msg.hdr.nexus = io->io_hdr.nexus;
12380 msg.hdr.status = io->io_hdr.status;
12983 msg.hdr.msg_type = CTL_MSG_FINISH_IO;
12984 msg.hdr.serializing_sc = io->io_hdr.remote_io;
12985 msg.hdr.nexus = io->io_hdr.nexus;
13319 msg.hdr.msg_type = CTL_MSG_UA;
13320 msg.hdr.nexus.initid = -1;
13321 msg.hdr.nexus.targ_port = -1;
13322 msg.hdr.nexus.targ_lun = lun->lun;
13323 msg.hdr.nexus.targ_mapped_lun = lun->lun;