Lines Matching refs:cpi

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()
191 cpi->bus_id = cam_sim_bus(sim); in nvme_sim_action()
192 cpi->base_transfer_speed = nvme_link_kBps(ctrlr); in nvme_sim_action()
193 strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); in nvme_sim_action()
194 strlcpy(cpi->hba_vid, "NVMe", HBA_IDLEN); in nvme_sim_action()
195 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in nvme_sim_action()
196 cpi->unit_number = cam_sim_unit(sim); in nvme_sim_action()
197 cpi->transport = XPORT_NVME; /* XXX XPORT_PCIE ? */ in nvme_sim_action()
198 cpi->transport_version = nvme_mmio_read_4(ctrlr, vs); in nvme_sim_action()
199 cpi->protocol = PROTO_NVME; in nvme_sim_action()
200 cpi->protocol_version = nvme_mmio_read_4(ctrlr, vs); in nvme_sim_action()
201 cpi->xport_specific.nvme.nsid = xpt_path_lun_id(ccb->ccb_h.path); in nvme_sim_action()
202 cpi->xport_specific.nvme.domain = pci_get_domain(dev); in nvme_sim_action()
203 cpi->xport_specific.nvme.bus = pci_get_bus(dev); in nvme_sim_action()
204 cpi->xport_specific.nvme.slot = pci_get_slot(dev); in nvme_sim_action()
205 cpi->xport_specific.nvme.function = pci_get_function(dev); in nvme_sim_action()
206 cpi->xport_specific.nvme.extra = 0; in nvme_sim_action()
207 strlcpy(cpi->xport_specific.nvme.dev_name, device_get_nameunit(dev), in nvme_sim_action()
208 sizeof(cpi->xport_specific.nvme.dev_name)); in nvme_sim_action()
209 cpi->hba_vendor = pci_get_vendor(dev); in nvme_sim_action()
210 cpi->hba_device = pci_get_device(dev); in nvme_sim_action()
211 cpi->hba_subvendor = pci_get_subvendor(dev); in nvme_sim_action()
212 cpi->hba_subdevice = pci_get_subdevice(dev); in nvme_sim_action()
213 cpi->ccb_h.status = CAM_REQ_CMP; in nvme_sim_action()