Searched refs:cgd (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-10.2-release/sys/cam/ata/
H A Data_da.c517 struct ccb_getdev *cgd);
967 struct ccb_getdev cgd; local
975 struct ccb_getdev *cgd; local
978 cgd = (struct ccb_getdev *)arg;
979 if (cgd == NULL)
982 if (cgd->protocol != PROTO_ATA)
994 AC_FOUND_DEVICE, cgd);
1005 xpt_setup_ccb(&cgd.ccb_h, periph->path, CAM_PRIORITY_NORMAL);
1006 cgd.ccb_h.func_code = XPT_GDEV_TYPE;
1007 xpt_action((union ccb *)&cgd);
1163 struct ccb_getdev *cgd; local
1741 struct ccb_getdev *cgd; local
1911 adagetparams(struct cam_periph *periph, struct ccb_getdev *cgd) argument
[all...]
H A Data_pmp.c278 struct ccb_getdev *cgd; local
281 cgd = (struct ccb_getdev *)arg;
282 if (cgd == NULL)
285 if (cgd->protocol != PROTO_SATAPM)
297 AC_FOUND_DEVICE, cgd);
374 struct ccb_getdev *cgd; local
376 cgd = (struct ccb_getdev *)arg;
377 if (cgd == NULL) {
392 softc->pm_pid = ((uint32_t *)&cgd->ident_data)[0];
393 softc->pm_prv = ((uint32_t *)&cgd
[all...]
/freebsd-10.2-release/sys/cam/scsi/
H A Dscsi_pass.c280 struct ccb_getdev *cgd; local
283 cgd = (struct ccb_getdev *)arg;
284 if (cgd == NULL)
295 passasync, AC_FOUND_DEVICE, cgd);
334 struct ccb_getdev *cgd; local
338 cgd = (struct ccb_getdev *)arg;
339 if (cgd == NULL) {
355 if (cgd->protocol == PROTO_SCSI || cgd->protocol == PROTO_ATAPI)
356 softc->pd_type = SID_TYPE(&cgd
[all...]
H A Dscsi_pt.c253 struct ccb_getdev *cgd; local
256 cgd = (struct ccb_getdev *)arg;
257 if (cgd == NULL) {
288 SID_TYPE(&cgd->inq_data) |
360 struct ccb_getdev *cgd; local
363 cgd = (struct ccb_getdev *)arg;
364 if (cgd == NULL)
367 if (cgd->protocol != PROTO_SCSI)
370 if (SID_TYPE(&cgd->inq_data) != T_PROCESSOR)
381 AC_FOUND_DEVICE, cgd);
[all...]
H A Dscsi_enc.c210 struct ccb_getdev *cgd; local
214 cgd = (struct ccb_getdev *)arg;
219 if (enc_type(cgd) == ENC_NONE) {
245 path, enc_async, AC_FOUND_DEVICE, cgd);
663 enc_type(struct ccb_getdev *cgd) argument
668 if (cgd->protocol == PROTO_SEMB) {
669 iqd = (unsigned char *)&cgd->ident_data;
676 } else if (cgd->protocol != PROTO_SCSI)
679 iqd = (unsigned char *)&cgd->inq_data;
680 buflen = min(sizeof(cgd
902 struct ccb_getdev *cgd; local
[all...]
H A Dscsi_ch.c331 struct ccb_getdev *cgd; local
334 cgd = (struct ccb_getdev *)arg;
335 if (cgd == NULL)
338 if (cgd->protocol != PROTO_SCSI)
341 if (SID_TYPE(&cgd->inq_data)!= T_CHANGER)
352 chasync, AC_FOUND_DEVICE, cgd);
372 struct ccb_getdev *cgd; local
375 cgd = (struct ccb_getdev *)arg;
376 if (cgd == NULL) {
399 if (cgd
1708 struct ccb_getdev *cgd; local
[all...]
H A Dscsi_da.c1661 struct ccb_getdev *cgd; local
1664 cgd = (struct ccb_getdev *)arg;
1665 if (cgd == NULL)
1668 if (cgd->protocol != PROTO_SCSI)
1671 if (SID_TYPE(&cgd->inq_data) != T_DIRECT
1672 && SID_TYPE(&cgd->inq_data) != T_RBC
1673 && SID_TYPE(&cgd->inq_data) != T_OPTICAL)
1685 AC_FOUND_DEVICE, cgd);
2071 struct ccb_getdev *cgd; local
2075 cgd
3178 struct ccb_getdev cgd; local
[all...]
H A Dscsi_sg.c262 struct ccb_getdev *cgd; local
265 cgd = (struct ccb_getdev *)arg;
266 if (cgd == NULL)
269 if (cgd->protocol != PROTO_SCSI)
279 sgasync, AC_FOUND_DEVICE, cgd);
300 struct ccb_getdev *cgd; local
304 cgd = (struct ccb_getdev *)arg;
305 if (cgd == NULL) {
317 softc->pd_type = SID_TYPE(&cgd->inq_data);
333 no_tags = (cgd
[all...]
H A Dscsi_sa.c2248 struct ccb_getdev *cgd; local
2251 cgd = (struct ccb_getdev *)arg;
2252 if (cgd == NULL)
2255 if (cgd->protocol != PROTO_SCSI)
2258 if (SID_TYPE(&cgd->inq_data) != T_SEQUENTIAL)
2269 saasync, AC_FOUND_DEVICE, cgd);
2346 struct ccb_getdev *cgd; local
2351 cgd = (struct ccb_getdev *)arg;
2352 if (cgd == NULL) {
2364 softc->scsi_rev = SID_ANSI_REV(&cgd
4369 struct ccb_getdev cgd; local
[all...]
H A Dscsi_cd.c386 struct ccb_getdev *cgd; local
389 cgd = (struct ccb_getdev *)arg;
390 if (cgd == NULL)
393 if (cgd->protocol != PROTO_SCSI)
396 if (SID_TYPE(&cgd->inq_data) != T_CDROM
397 && SID_TYPE(&cgd->inq_data) != T_WORM)
409 AC_FOUND_DEVICE, cgd);
550 struct ccb_getdev *cgd; local
554 cgd = (struct ccb_getdev *)arg;
555 if (cgd
1103 struct ccb_getdev cgd; local
[all...]
H A Dscsi_all.c3396 struct ccb_getdev *cgd; local
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; local
[all...]
/freebsd-10.2-release/sbin/fsck_ffs/
H A Dpass1.c67 ufs2_daddr_t i, cgd; local
77 cgd = cgdmin(&sblock, c);
82 for (; i < cgd; i++)
86 cgd = i + howmany(sblock.fs_cssize, sblock.fs_fsize);
87 for (; i < cgd; i++)
/freebsd-10.2-release/lib/libcam/
H A Dcamlib.c613 device->pd_type = SID_TYPE(&ccb.cgd.inq_data);
614 bcopy(&ccb.cgd.inq_data, &device->inq_data,
616 device->serial_num_len = ccb.cgd.serial_num_len;
617 bcopy(&ccb.cgd.serial_num, &device->serial_num, device->serial_num_len);
/freebsd-10.2-release/sys/cam/
H A Dcam_periph.c1427 struct ccb_getdev cgd; local
1432 xpt_setup_ccb(&cgd.ccb_h, ccb->ccb_h.path, CAM_PRIORITY_NORMAL);
1433 cgd.ccb_h.func_code = XPT_GDEV_TYPE;
1434 xpt_action((union ccb *)&cgd);
1436 err_action = scsi_error_action(&ccb->csio, &cgd.inq_data,
1445 SID_TYPE(&cgd.inq_data) == T_SEQUENTIAL) {
1524 if (SID_IS_REMOVABLE(&cgd.inq_data))
H A Dcam_xpt.c2395 struct ccb_getdev cgd; local
2412 xpt_setup_ccb(&cgd.ccb_h, &path, CAM_PRIORITY_NORMAL);
2413 cgd.ccb_h.func_code = XPT_GDEV_TYPE;
2414 xpt_action((union ccb *)&cgd);
2417 &path, &cgd);
2635 struct ccb_getdev *cgd; local
2637 cgd = &start_ccb->cgd;
2638 cgd->protocol = dev->protocol;
2639 cgd
[all...]
/freebsd-10.2-release/contrib/bmake/mk/sys/
H A DAIX.mk1 # $NetBSD: sys.mk,v 1.19.2.1 1994/07/26 19:58:31 cgd Exp $
H A DLinux.mk2 # $NetBSD: sys.mk,v 1.19.2.1 1994/07/26 19:58:31 cgd Exp $
H A DOSF1.mk2 # $NetBSD: sys.mk,v 1.19.2.1 1994/07/26 19:58:31 cgd Exp $
H A DHP-UX.mk2 # $NetBSD: sys.mk,v 1.19.2.1 1994/07/26 19:58:31 cgd Exp $
H A DUnixWare.mk3 # $NetBSD: sys.mk,v 1.19.2.1 1994/07/26 19:58:31 cgd Exp $
/freebsd-10.2-release/sys/dev/advansys/
H A Dadvlib.c308 struct ccb_getdev *cgd; local
315 cgd = (struct ccb_getdev *)arg;
317 target_mask = ADV_TID_TO_TARGET_MASK(cgd->ccb_h.target_id);
320 match = cam_quirkmatch((caddr_t)&cgd->inq_data,
351 tinfo = &adv->tinfo[cgd->ccb_h.target_id];
352 adv_set_syncrate(adv, cgd->ccb_h.path,
353 cgd->ccb_h.target_id,
/freebsd-10.2-release/sys/dev/buslogic/
H A Dbt.c2198 struct ccb_getdev cgd; local
2207 xpt_setup_ccb(&cgd.ccb_h, cts->ccb_h.path, /*priority*/1);
2208 cgd.ccb_h.func_code = XPT_GDEV_TYPE;
2209 xpt_action((union ccb *)&cgd);
2210 if ((cgd.ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP
2211 && (cgd.inq_data.flags & SID_WBus16) != 0)
/freebsd-10.2-release/sys/dev/mpt/
H A Dmpt_raid.c236 struct ccb_getdev *cgd; local
239 cgd = (struct ccb_getdev *)arg;
240 if (cgd == NULL) {
245 cgd->ccb_h.target_id);
252 == cgd->ccb_h.target_id) {
/freebsd-10.2-release/sbin/camcontrol/
H A Dcamcontrol.c303 static int get_cgd(struct cam_device *device, struct ccb_getdev *cgd);
2043 struct ccb_getdev cgd; local
2055 if (get_cgd(device, &cgd) != 0) {
2060 command = (cgd.protocol == PROTO_ATA) ?
2569 struct ccb_getdev cgd; local
2644 if (get_cgd(device, &cgd) != 0) {
4909 get_cgd(struct cam_device *device, struct ccb_getdev *cgd) argument
4937 bcopy(&ccb->cgd, cgd, sizeof(struct ccb_getdev));
4948 struct ccb_getdev cgd; local
[all...]
/freebsd-10.2-release/sys/dev/mpr/
H A Dmpr_sas.c136 struct ccb_getdev *cgd);
3160 struct ccb_getdev *cgd; local
3174 cgd = arg;
3177 mprsas_check_eedp(sc, path, cgd);
3190 struct ccb_getdev *cgd)
3223 if ((cgd->inq_data.spc3_flags & SPC3_SID_PROTECT) == 0)
3189 mprsas_check_eedp(struct mpr_softc *sc, struct cam_path *path, struct ccb_getdev *cgd) argument

Completed in 363 milliseconds

12