• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sbin/camcontrol/

Lines Matching defs:cpi

323 static void cpi_print(struct ccb_pathinq *cpi);
324 static int get_cpi(struct cam_device *device, struct ccb_pathinq *cpi);
1205 struct ccb_pathinq cpi;
1212 if ((retval = get_cpi(device, &cpi)) != 0)
1246 speed = cpi.base_transfer_speed;
1854 struct ccb_pathinq cpi;
1856 if (get_cpi(device, &cpi) != 0) {
1861 if (cpi.protocol == PROTO_SCSI) {
2255 struct ccb_pathinq cpi;
2261 if (get_cpi(device, &cpi) != 0) {
2266 /* Neither PROTO_ATAPI or PROTO_SATAPM are used in cpi.protocol */
2267 if (cpi.protocol == PROTO_ATA) {
2401 struct ccb_pathinq cpi;
2403 if (get_cpi(device, &cpi) != 0) {
2408 if (cpi.protocol == PROTO_NVME) {
5344 get_cpi(struct cam_device *device, struct ccb_pathinq *cpi)
5354 CCB_CLEAR_ALL_EXCEPT_HDR(&ccb->cpi);
5368 bcopy(&ccb->cpi, cpi, sizeof(struct ccb_pathinq));
5788 cpi_print(struct ccb_pathinq *cpi)
5794 "%s%d:", cpi->dev_name, cpi->unit_number);
5797 cpi->version_num);
5802 if ((i & cpi->hba_inquiry) == 0)
5842 if ((i & cpi->hba_misc) == 0)
5889 if ((i & cpi->target_sprt) == 0)
5920 cpi->hba_eng_cnt);
5922 cpi->max_target);
5924 cpi->max_lun);
5926 adapter_str, cpi->hpath_id);
5928 cpi->initiator_id);
5929 fprintf(stdout, "%s SIM vendor: %s\n", adapter_str, cpi->sim_vid);
5930 fprintf(stdout, "%s HBA vendor: %s\n", adapter_str, cpi->hba_vid);
5932 adapter_str, cpi->hba_vendor);
5934 adapter_str, cpi->hba_device);
5936 adapter_str, cpi->hba_subvendor);
5938 adapter_str, cpi->hba_subdevice);
5939 fprintf(stdout, "%s bus ID: %d\n", adapter_str, cpi->bus_id);
5941 if (cpi->base_transfer_speed > 1000)
5943 cpi->base_transfer_speed / 1000,
5944 cpi->base_transfer_speed % 1000);
5947 (cpi->base_transfer_speed % 1000) * 1000);
5949 adapter_str, cpi->maxio);
6019 struct ccb_pathinq cpi;
6109 if ((retval = get_cpi(device, &cpi)) != 0)
6121 cpi_print(&cpi);
6152 if ((cpi.hba_inquiry & PI_TAG_ABLE) == 0) {
6175 if ((cpi.hba_inquiry & PI_SDTR_ABLE) == 0) {
6187 if ((cpi.hba_inquiry & PI_SDTR_ABLE) == 0) {
6213 if ((cpi.hba_inquiry & PI_SDTR_ABLE) == 0) {
6235 if ((cpi.hba_inquiry & PI_SDTR_ABLE) == 0) {
6273 && ((cpi.hba_inquiry & PI_WIDE_16) == 0)) {
6278 && ((cpi.hba_inquiry & PI_WIDE_32) == 0)) {