Lines Matching refs:cgd
772 struct ccb_getdev cgd; in camperiphfree() local
774 xpt_gdev_type(&cgd, periph->path); in camperiphfree()
776 periph->path, &cgd); in camperiphfree()
1681 struct ccb_getdev cgd; in camperiphscsisenseerror() local
1686 xpt_gdev_type(&cgd, ccb->ccb_h.path); in camperiphscsisenseerror()
1688 err_action = scsi_error_action(&ccb->csio, &cgd.inq_data, in camperiphscsisenseerror()
1697 SID_TYPE(&cgd.inq_data) == T_SEQUENTIAL) { in camperiphscsisenseerror()
1782 if (SID_IS_REMOVABLE(&cgd.inq_data)) in camperiphscsisenseerror()
2117 struct ccb_getdev *cgd; in cam_periph_devctl_notify() local
2133 if ((cgd = (struct ccb_getdev *)xpt_alloc_ccb_nowait()) != NULL) { in cam_periph_devctl_notify()
2134 xpt_gdev_type(cgd, ccb->ccb_h.path); in cam_periph_devctl_notify()
2135 if (cgd->ccb_h.status == CAM_REQ_CMP) in cam_periph_devctl_notify()
2136 sbuf_bcat(&sb, cgd->serial_num, cgd->serial_num_len); in cam_periph_devctl_notify()
2137 xpt_free_ccb((union ccb *)cgd); in cam_periph_devctl_notify()