Lines Matching refs:cpi

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()
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()
1208 cpi->target_sprt = 0; in mmc_path_inq()
1209 cpi->hba_misc = PIM_NOBUSRESET | PIM_SEQSCAN; in mmc_path_inq()
1210 cpi->hba_eng_cnt = 0; in mmc_path_inq()
1211 cpi->max_target = 0; in mmc_path_inq()
1212 cpi->max_lun = 0; in mmc_path_inq()
1213 cpi->initiator_id = 1; in mmc_path_inq()
1214 cpi->maxio = maxio; in mmc_path_inq()
1215 strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); in mmc_path_inq()
1216 strlcpy(cpi->hba_vid, hba, HBA_IDLEN); in mmc_path_inq()
1217 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in mmc_path_inq()
1218 cpi->unit_number = cam_sim_unit(sim); in mmc_path_inq()
1219 cpi->bus_id = cam_sim_bus(sim); in mmc_path_inq()
1220 cpi->protocol = PROTO_MMCSD; in mmc_path_inq()
1221 cpi->protocol_version = SCSI_REV_0; in mmc_path_inq()
1222 cpi->transport = XPORT_MMCSD; in mmc_path_inq()
1223 cpi->transport_version = 1; in mmc_path_inq()
1225 cpi->base_transfer_speed = 100; /* XXX WTF? */ in mmc_path_inq()
1227 cpi->ccb_h.status = CAM_REQ_CMP; in mmc_path_inq()