/freebsd/sys/dev/nvmf/host/ |
H A D | nvmf_sim.c | 167 struct ccb_pathinq *cpi = &ccb->cpi; in nvmf_sim_action() local 169 cpi->version_num = 1; in nvmf_sim_action() 170 cpi->hba_inquiry = 0; in nvmf_sim_action() 171 cpi->target_sprt = 0; in nvmf_sim_action() 172 cpi->hba_misc = PIM_UNMAPPED | PIM_NOSCAN; in nvmf_sim_action() 173 cpi->hba_eng_cnt = 0; in nvmf_sim_action() 174 cpi->max_target = 0; in nvmf_sim_action() 175 cpi->max_lun = sc->cdata->nn; in nvmf_sim_action() 176 cpi->async_flags = 0; in nvmf_sim_action() 177 cpi->hpath_id = 0; in nvmf_sim_action() [all …]
|
/freebsd/sys/dev/nvme/ |
H A D | nvme_sim.c | 172 struct ccb_pathinq *cpi = &ccb->cpi; in nvme_sim_action() local 182 cpi->version_num = 1; in nvme_sim_action() 183 cpi->hba_inquiry = 0; in nvme_sim_action() 184 cpi->target_sprt = 0; in nvme_sim_action() 185 cpi->hba_misc = PIM_UNMAPPED | PIM_NOSCAN; in nvme_sim_action() 186 cpi->hba_eng_cnt = 0; in nvme_sim_action() 187 cpi->max_target = 0; in nvme_sim_action() 188 cpi->max_lun = ctrlr->cdata.nn; in nvme_sim_action() 189 cpi->maxio = ctrlr->max_xfer_size; in nvme_sim_action() 190 cpi->initiator_id = 0; in nvme_sim_action() [all …]
|
/freebsd/sys/dev/mmcnull/ |
H A D | mmcnull.c | 356 struct ccb_pathinq *cpi; in mmcnull_action_sd() local 358 cpi = &ccb->cpi; in mmcnull_action_sd() 359 cpi->version_num = 1; in mmcnull_action_sd() 360 cpi->hba_inquiry = PI_SDTR_ABLE | PI_TAG_ABLE | PI_WIDE_16; in mmcnull_action_sd() 361 cpi->target_sprt = 0; in mmcnull_action_sd() 362 cpi->hba_misc = PIM_NOBUSRESET | PIM_SEQSCAN; in mmcnull_action_sd() 363 cpi->hba_eng_cnt = 0; in mmcnull_action_sd() 364 cpi->max_target = 0; in mmcnull_action_sd() 365 cpi->max_lun = 0; in mmcnull_action_sd() 366 cpi->initiator_id = 1; in mmcnull_action_sd() [all …]
|
/freebsd/sys/dev/mfi/ |
H A D | mfi_cam.c | 215 struct ccb_pathinq *cpi = &ccb->cpi; in mfip_cam_action() local 217 cpi->version_num = 1; in mfip_cam_action() 218 cpi->hba_inquiry = PI_TAG_ABLE; in mfip_cam_action() 219 cpi->target_sprt = 0; in mfip_cam_action() 220 cpi->hba_misc = PIM_NOBUSRESET | PIM_SEQSCAN | PIM_UNMAPPED; in mfip_cam_action() 221 cpi->hba_eng_cnt = 0; in mfip_cam_action() 222 cpi->max_target = MFI_SCSI_MAX_TARGETS; in mfip_cam_action() 223 cpi->max_lun = MFI_SCSI_MAX_LUNS; in mfip_cam_action() 224 cpi->initiator_id = MFI_SCSI_INITIATOR_ID; in mfip_cam_action() 225 strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); in mfip_cam_action() [all …]
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend_cam_sim.c | 744 struct ccb_pathinq *cpi; in cfcs_action() local 746 cpi = &ccb->cpi; in cfcs_action() 748 cpi->version_num = 0; in cfcs_action() 749 cpi->hba_inquiry = PI_TAG_ABLE; in cfcs_action() 750 cpi->target_sprt = 0; in cfcs_action() 751 cpi->hba_misc = PIM_EXTLUNS; in cfcs_action() 752 cpi->hba_eng_cnt = 0; in cfcs_action() 753 cpi->max_target = 0; in cfcs_action() 754 cpi->max_lun = 1024; in cfcs_action() 756 cpi->maxio = 1024 * 1024; in cfcs_action() [all …]
|
/freebsd/tools/tools/vhba/ |
H A D | vhba.c | 125 struct ccb_pathinq *cpi = &ccb->cpi; in vhba_action() local 127 cpi->version_num = 1; in vhba_action() 128 cpi->max_target = VHBA_MAXTGT - 1; in vhba_action() 129 cpi->max_lun = 16383; in vhba_action() 130 cpi->hba_misc = PIM_NOBUSRESET; in vhba_action() 131 cpi->initiator_id = cpi->max_target + 1; in vhba_action() 132 cpi->transport = XPORT_PPB; in vhba_action() 133 cpi->base_transfer_speed = 1000000; in vhba_action() 134 cpi->protocol = PROTO_SCSI; in vhba_action() 135 cpi->protocol_version = SCSI_REV_SPC3; in vhba_action() [all …]
|
/freebsd/sys/powerpc/ps3/ |
H A D | ps3cdrom.c | 408 struct ccb_pathinq *cpi = &ccb->cpi; in ps3cdrom_action() local 410 cpi->version_num = 1; in ps3cdrom_action() 411 cpi->hba_inquiry = 0; in ps3cdrom_action() 412 cpi->target_sprt = 0; in ps3cdrom_action() 413 cpi->hba_inquiry = PI_SDTR_ABLE; in ps3cdrom_action() 414 cpi->hba_misc = PIM_NOBUSRESET | PIM_SEQSCAN | PIM_NO_6_BYTE; in ps3cdrom_action() 415 cpi->hba_eng_cnt = 0; in ps3cdrom_action() 416 bzero(cpi->vuhba_flags, sizeof(cpi->vuhba_flags)); in ps3cdrom_action() 417 cpi->max_target = 0; in ps3cdrom_action() 418 cpi->max_lun = 0; in ps3cdrom_action() [all …]
|
/freebsd/sys/dev/isci/ |
H A D | isci_controller.c | 666 struct ccb_pathinq *cpi = &ccb->cpi; in isci_action() local 669 cpi->version_num = 1; in isci_action() 670 cpi->hba_inquiry = PI_TAG_ABLE; in isci_action() 671 cpi->target_sprt = 0; in isci_action() 672 cpi->hba_misc = PIM_NOBUSRESET | PIM_SEQSCAN | in isci_action() 674 cpi->hba_eng_cnt = 0; in isci_action() 675 cpi->max_target = SCI_MAX_REMOTE_DEVICES - 1; in isci_action() 676 cpi->max_lun = ISCI_MAX_LUN; in isci_action() 677 cpi->maxio = isci_io_request_get_max_io_size(); in isci_action() 678 cpi->unit_number = cam_sim_unit(sim); in isci_action() [all …]
|
/freebsd/sys/dev/aac/ |
H A D | aac_cam.c | 300 struct ccb_pathinq *cpi = &ccb->cpi; in aac_cam_action() local 302 cpi->version_num = 1; in aac_cam_action() 303 cpi->hba_inquiry = PI_WIDE_16; in aac_cam_action() 304 cpi->target_sprt = 0; in aac_cam_action() 310 cpi->hba_misc = PIM_NOBUSRESET | PIM_SEQSCAN; in aac_cam_action() 311 cpi->hba_eng_cnt = 0; in aac_cam_action() 312 cpi->max_target = camsc->inf->TargetsPerBus; in aac_cam_action() 313 cpi->max_lun = 8; /* Per the controller spec */ in aac_cam_action() 314 cpi->initiator_id = camsc->inf->InitiatorBusId; in aac_cam_action() 315 cpi->bus_id = camsc->inf->BusNumber; in aac_cam_action() [all …]
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 36 update_sim_properties(struct cam_sim *sim, struct ccb_pathinq *cpi) in update_sim_properties() argument 46 cpi->version_num = 1; in update_sim_properties() 47 cpi->hba_inquiry = PI_SDTR_ABLE|PI_TAG_ABLE|PI_WIDE_16; in update_sim_properties() 48 cpi->target_sprt = 0; in update_sim_properties() 49 cpi->hba_misc = PIM_NOBUSRESET | PIM_UNMAPPED; in update_sim_properties() 50 cpi->hba_eng_cnt = 0; in update_sim_properties() 51 cpi->max_lun = PQI_MAX_MULTILUN; in update_sim_properties() 52 cpi->max_target = MAX_TARGET_DEVICES; in update_sim_properties() 53 cpi->maxio = (softs->pqi_cap.max_sg_elem - 1) * PAGE_SIZE; in update_sim_properties() 54 cpi->initiator_id = 255; in update_sim_properties() [all …]
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_xpt.c | 688 struct ccb_pathinq cpi; in probeschedule() local 695 xpt_path_inq(&cpi, periph->path); in probeschedule() 718 } else if ((cpi.hba_inquiry & (PI_WIDE_32|PI_WIDE_16|PI_SDTR_ABLE)) != 0 in probeschedule() 719 && (cpi.hba_misc & PIM_NOBUSRESET) != 0) { in probeschedule() 731 if (cpi.hba_misc & PIM_EXTLUNS) in probeschedule() 1914 struct ccb_pathinq *cpi; member 1960 if ((work_ccb->cpi.hba_misc & PIM_NOINITIATOR) != 0) { in scsi_scan_bus() 1972 if ((work_ccb->cpi.hba_inquiry & in scsi_scan_bus() 1974 !(work_ccb->cpi.hba_misc & PIM_NOBUSRESET) && in scsi_scan_bus() 1993 (work_ccb->cpi.max_target * sizeof (u_int)), M_CAMXPT, M_ZERO|M_NOWAIT); in scsi_scan_bus() [all …]
|
/freebsd/sys/cam/mmc/ |
H A D | mmc_xpt.c | 230 struct ccb_pathinq cpi; in mmc_scan_lun() local 237 xpt_path_inq(&cpi, path); in mmc_scan_lun() 239 if (cpi.ccb_h.status != CAM_REQ_CMP) { in mmc_scan_lun() 241 request_ccb->ccb_h.status = cpi.ccb_h.status; in mmc_scan_lun() 379 struct ccb_pathinq cpi; in mmc_announce_periph_sbuf() local 394 xpt_path_inq(&cpi, periph->path); in mmc_announce_periph_sbuf() 612 xpt_path_inq(&start_ccb->cpi, periph->path); in mmcprobe_start() 1202 mmc_path_inq(struct ccb_pathinq *cpi, const char *hba, in mmc_path_inq() argument 1206 cpi->version_num = 1; in mmc_path_inq() 1207 cpi->hba_inquiry = 0; in mmc_path_inq() [all …]
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_mad.h | 272 static inline u8 ib_get_cpi_resp_time(struct ib_class_port_info *cpi) in ib_get_cpi_resp_time() argument 274 return (u8)(be32_to_cpu(cpi->cap_mask2_resp_time) & in ib_get_cpi_resp_time() 284 static inline void ib_set_cpi_resp_time(struct ib_class_port_info *cpi, in ib_set_cpi_resp_time() argument 287 cpi->cap_mask2_resp_time = in ib_set_cpi_resp_time() 288 (cpi->cap_mask2_resp_time & in ib_set_cpi_resp_time() 298 static inline u32 ib_get_cpi_capmask2(struct ib_class_port_info *cpi) in ib_get_cpi_capmask2() argument 300 return (be32_to_cpu(cpi->cap_mask2_resp_time) >> in ib_get_cpi_capmask2() 310 static inline void ib_set_cpi_capmask2(struct ib_class_port_info *cpi, in ib_set_cpi_capmask2() argument 313 cpi->cap_mask2_resp_time = in ib_set_cpi_capmask2() 314 (cpi->cap_mask2_resp_time & in ib_set_cpi_capmask2()
|
/freebsd/sys/cam/ |
H A D | cam_xpt.h | 152 xpt_path_inq(struct ccb_pathinq *cpi, struct cam_path *path) in xpt_path_inq() argument 155 bzero(cpi, sizeof(*cpi)); in xpt_path_inq() 156 xpt_setup_ccb(&cpi->ccb_h, path, CAM_PRIORITY_NORMAL); in xpt_path_inq() 157 cpi->ccb_h.func_code = XPT_PATH_INQ; in xpt_path_inq() 158 xpt_action((union ccb *)cpi); in xpt_path_inq()
|
/freebsd/sys/dev/aic7xxx/ |
H A D | aic7xxx_osm.c | 774 struct ccb_pathinq *cpi = &ccb->cpi; in ahc_action() 776 cpi->version_num = 1; /* XXX??? */ in ahc_action() 777 cpi->hba_inquiry = PI_SDTR_ABLE|PI_TAG_ABLE; in ahc_action() 779 cpi->hba_inquiry |= PI_WIDE_16; in ahc_action() 781 cpi->target_sprt = PIT_PROCESSOR in ahc_action() 785 cpi->target_sprt = 0; in ahc_action() 787 cpi->hba_misc = 0; in ahc_action() 788 cpi->hba_eng_cnt = 0; in ahc_action() 789 cpi in ahc_action() 762 struct ccb_pathinq *cpi = &ccb->cpi; ahc_action() local [all...] |
H A D | aic79xx_osm.c | 685 struct ccb_pathinq *cpi = &ccb->cpi; in ahd_action() 687 cpi->version_num = 1; /* XXX??? */ in ahd_action() 688 cpi->hba_inquiry = PI_SDTR_ABLE|PI_TAG_ABLE; in ahd_action() 690 cpi->hba_inquiry |= PI_WIDE_16; in ahd_action() 692 cpi->target_sprt = PIT_PROCESSOR in ahd_action() 696 cpi->target_sprt = 0; in ahd_action() 698 cpi->hba_misc = 0; in ahd_action() 699 cpi->hba_eng_cnt = 0; in ahd_action() 700 cpi in ahd_action() 673 struct ccb_pathinq *cpi = &ccb->cpi; ahd_action() local [all...] |
/freebsd/sys/dev/ata/ |
H A D | ata-all.c | 1148 struct ccb_pathinq *cpi = &ccb->cpi; in ataaction() local 1151 cpi->version_num = 1; /* XXX??? */ in ataaction() 1152 cpi->hba_inquiry = PI_SDTR_ABLE; in ataaction() 1153 cpi->target_sprt = 0; in ataaction() 1154 cpi->hba_misc = PIM_SEQSCAN | PIM_UNMAPPED; in ataaction() 1155 cpi->hba_eng_cnt = 0; in ataaction() 1157 cpi->max_target = 0; in ataaction() 1159 cpi->max_target = 1; in ataaction() 1160 cpi->max_lun = 0; in ataaction() 1161 cpi->initiator_id = 0; in ataaction() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-ipcomp.c | 41 uint16_t cpi; in ipcomp_print() local 45 cpi = GET_BE_U_2(ipcomp->comp_cpi); in ipcomp_print() 47 ND_PRINT("IPComp(cpi=0x%04x)", cpi); in ipcomp_print()
|
/freebsd/sys/powerpc/pseries/ |
H A D | phyp_vscsi.c | 421 struct ccb_pathinq *cpi = &ccb->cpi; in vscsi_cam_action() local 423 cpi->version_num = 1; in vscsi_cam_action() 424 cpi->hba_inquiry = PI_TAG_ABLE; in vscsi_cam_action() 425 cpi->hba_misc = PIM_EXTLUNS; in vscsi_cam_action() 426 cpi->target_sprt = 0; in vscsi_cam_action() 427 cpi->hba_eng_cnt = 0; in vscsi_cam_action() 428 cpi->max_target = 0; in vscsi_cam_action() 429 cpi->max_lun = 0; in vscsi_cam_action() 430 cpi->initiator_id = ~0; in vscsi_cam_action() 431 strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); in vscsi_cam_action() [all …]
|
/freebsd/contrib/ofed/libibumad/ |
H A D | umad_types.h | 205 umad_class_cap_mask2(struct umad_class_port_info *cpi) in umad_class_cap_mask2() argument 207 return (be32toh(cpi->cap_mask2_resp_time) >> 5); in umad_class_cap_mask2() 210 umad_class_resp_time(struct umad_class_port_info *cpi) in umad_class_resp_time() argument 212 return (uint8_t)(be32toh(cpi->cap_mask2_resp_time) in umad_class_resp_time()
|
/freebsd/sys/dev/hyperv/storvsc/ |
H A D | hv_storvsc_drv_freebsd.c | 1448 struct ccb_pathinq *cpi = &ccb->cpi; in storvsc_action() local 1450 cpi->version_num = 1; in storvsc_action() 1451 cpi->hba_inquiry = PI_TAG_ABLE|PI_SDTR_ABLE; in storvsc_action() 1452 cpi->target_sprt = 0; in storvsc_action() 1453 cpi->hba_misc = PIM_NOBUSRESET; in storvsc_action() 1455 cpi->hba_misc |= PIM_UNMAPPED; in storvsc_action() 1456 cpi->maxio = STORVSC_DATA_SIZE_MAX; in storvsc_action() 1457 cpi->hba_eng_cnt = 0; in storvsc_action() 1458 cpi->max_target = STORVSC_MAX_TARGETS; in storvsc_action() 1459 cpi->max_lun = sc->hs_drv_props->drv_max_luns_per_target; in storvsc_action() [all …]
|
/freebsd/sys/dev/hptrr/ |
H A D | hptrr_osm_bsd.c | 771 struct ccb_pathinq *cpi = &ccb->cpi; in hpt_action() local 773 cpi->version_num = 1; in hpt_action() 774 cpi->hba_inquiry = PI_SDTR_ABLE; in hpt_action() 775 cpi->target_sprt = 0; in hpt_action() 776 cpi->hba_misc = PIM_NOBUSRESET; in hpt_action() 777 cpi->hba_eng_cnt = 0; in hpt_action() 778 cpi->max_target = osm_max_targets; in hpt_action() 779 cpi->max_lun = 0; in hpt_action() 780 cpi->unit_number = cam_sim_unit(sim); in hpt_action() 781 cpi->bus_id = cam_sim_bus(sim); in hpt_action() [all …]
|
/freebsd/sys/dev/hpt27xx/ |
H A D | hpt27xx_osm_bsd.c | 839 struct ccb_pathinq *cpi = &ccb->cpi; in hpt_action() local 841 cpi->version_num = 1; in hpt_action() 842 cpi->hba_inquiry = PI_SDTR_ABLE; in hpt_action() 843 cpi->target_sprt = 0; in hpt_action() 844 cpi->hba_misc = PIM_NOBUSRESET; in hpt_action() 845 cpi->hba_eng_cnt = 0; in hpt_action() 846 cpi->max_target = osm_max_targets; in hpt_action() 847 cpi->max_lun = 0; in hpt_action() 848 cpi->unit_number = cam_sim_unit(sim); in hpt_action() 849 cpi->bus_id = cam_sim_bus(sim); in hpt_action() [all …]
|
/freebsd/sys/cam/ata/ |
H A D | ata_xpt.c | 884 struct ccb_pathinq cpi; in aprobedone() local 989 xpt_path_inq(&cpi, path); in aprobedone() 990 if (cam_ccb_success((union ccb *)&cpi) && in aprobedone() 991 (cpi.hba_inquiry & PI_TAG_ABLE)) { in aprobedone() 1369 struct ccb_pathinq *cpi; member 1399 xpt_path_inq(&work_ccb->cpi, request_ccb->ccb_h.path); in ata_scan_bus() 1408 if ((work_ccb->cpi.hba_inquiry & in ata_scan_bus() 1410 !(work_ccb->cpi.hba_misc & PIM_NOBUSRESET) && in ata_scan_bus() 1443 scan_info->cpi = &work_ccb->cpi; in ata_scan_bus() 1445 if (scan_info->cpi->hba_inquiry & PI_SATAPM) in ata_scan_bus() [all …]
|
/freebsd/sys/dev/virtio/scsi/ |
H A D | virtio_scsi.c | 951 struct ccb_pathinq *cpi; in vtscsi_cam_path_inquiry() local 954 cpi = &ccb->cpi; in vtscsi_cam_path_inquiry() 958 cpi->version_num = 1; in vtscsi_cam_path_inquiry() 959 cpi->hba_inquiry = PI_TAG_ABLE; in vtscsi_cam_path_inquiry() 960 cpi->target_sprt = 0; in vtscsi_cam_path_inquiry() 961 cpi->hba_misc = PIM_SEQSCAN | PIM_UNMAPPED; in vtscsi_cam_path_inquiry() 963 cpi->hba_misc |= PIM_NOBUSRESET; in vtscsi_cam_path_inquiry() 964 cpi->hba_eng_cnt = 0; in vtscsi_cam_path_inquiry() 966 cpi->max_target = sc->vtscsi_max_target; in vtscsi_cam_path_inquiry() 967 cpi->max_lun = sc->vtscsi_max_lun; in vtscsi_cam_path_inquiry() [all …]
|