Lines Matching defs:cgd
3396 struct ccb_getdev *cgd;
3400 if ((cgd = (struct ccb_getdev*)xpt_alloc_ccb_nowait()) == NULL)
3405 xpt_setup_ccb(&cgd->ccb_h,
3408 cgd->ccb_h.func_code = XPT_GDEV_TYPE;
3409 xpt_action((union ccb *)cgd);
3415 if (cgd->ccb_h.status == CAM_DEV_NOT_THERE)
3416 cgd->inq_data.device = T_DIRECT;
3418 inq_data = &cgd->inq_data;
3439 xpt_free_ccb((union ccb *)cgd);
4802 struct ccb_getdev *cgd;
4827 if ((cgd = (struct ccb_getdev*)xpt_alloc_ccb_nowait()) == NULL)
4832 xpt_setup_ccb(&cgd->ccb_h,
4835 cgd->ccb_h.func_code = XPT_GDEV_TYPE;
4836 xpt_action((union ccb *)cgd);
4842 if (cgd->ccb_h.status == CAM_DEV_NOT_THERE)
4843 cgd->inq_data.device = T_DIRECT;
4845 inq_data = &cgd->inq_data;
4873 xpt_free_ccb((union ccb*)cgd);
4896 xpt_free_ccb((union ccb*)cgd);
4912 xpt_free_ccb((union ccb*)cgd);