Home
last modified time | relevance | path

Searched refs:cgd (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-14.2/sys/cam/ata/
H A Data_da.c1325 struct ccb_getdev cgd; in adaasync() local
1333 struct ccb_getdev *cgd; in adaasync() local
1337 if (cgd == NULL) in adaasync()
1363 memset(&cgd, 0, sizeof(cgd)); in adaasync()
1371 adasetflags(softc, &cgd); in adaasync()
1372 adasetgeom(softc, &cgd); in adaasync()
1738 (cgd->inq_flags & SID_DMA) && (cgd->inq_flags & SID_CmdQue)) in adasetflags()
1813 struct ccb_getdev *cgd; in adaregister() local
1821 if (cgd == NULL) { in adaregister()
1895 adasetflags(softc, cgd); in adaregister()
[all …]
H A Data_pmp.c273 struct ccb_getdev *cgd; in pmpasync() local
276 cgd = (struct ccb_getdev *)arg; in pmpasync()
277 if (cgd == NULL) in pmpasync()
280 if (cgd->protocol != PROTO_SATAPM) in pmpasync()
292 AC_FOUND_DEVICE, cgd); in pmpasync()
369 struct ccb_getdev *cgd; in pmpregister() local
371 cgd = (struct ccb_getdev *)arg; in pmpregister()
372 if (cgd == NULL) { in pmpregister()
387 softc->pm_pid = ((uint32_t *)&cgd->ident_data)[0]; in pmpregister()
388 softc->pm_prv = ((uint32_t *)&cgd->ident_data)[1]; in pmpregister()
/freebsd-14.2/sys/cam/scsi/
H A Dscsi_pt.c248 struct ccb_getdev *cgd; in ptctor() local
253 cgd = (struct ccb_getdev *)arg; in ptctor()
254 if (cgd == NULL) { in ptctor()
297 SID_TYPE(&cgd->inq_data) | in ptctor()
365 struct ccb_getdev *cgd; in ptasync() local
368 cgd = (struct ccb_getdev *)arg; in ptasync()
369 if (cgd == NULL) in ptasync()
372 if (cgd->protocol != PROTO_SCSI) in ptasync()
374 if (SID_QUAL(&cgd->inq_data) != SID_QUAL_LU_CONNECTED) in ptasync()
376 if (SID_TYPE(&cgd->inq_data) != T_PROCESSOR) in ptasync()
[all …]
H A Dscsi_enc.c221 struct ccb_getdev *cgd; in enc_async() local
225 cgd = (struct ccb_getdev *)arg; in enc_async()
230 if (enc_type(cgd) == ENC_NONE) { in enc_async()
251 cgd->protocol != PROTO_ATA)) in enc_async()
678 enc_type(struct ccb_getdev *cgd) in enc_type() argument
683 if (cgd->protocol == PROTO_SEMB) { in enc_type()
695 buflen = min(sizeof(cgd->inq_data), in enc_type()
889 struct ccb_getdev *cgd; in enc_ctor() local
894 cgd = (struct ccb_getdev *)arg; in enc_ctor()
895 if (cgd == NULL) { in enc_ctor()
[all …]
H A Dscsi_ch.c326 struct ccb_getdev *cgd; in chasync() local
329 cgd = (struct ccb_getdev *)arg; in chasync()
330 if (cgd == NULL) in chasync()
367 struct ccb_getdev *cgd; in chregister() local
372 cgd = (struct ccb_getdev *)arg; in chregister()
373 if (cgd == NULL) { in chregister()
409 SID_TYPE(&cgd->inq_data) | in chregister()
1700 struct ccb_getdev *cgd; in chscsiversion() local
1709 xpt_setup_ccb(&cgd->ccb_h, in chscsiversion()
1713 xpt_action((union ccb *)cgd); in chscsiversion()
[all …]
H A Dscsi_sg.c259 struct ccb_getdev *cgd; in sgasync() local
262 cgd = (struct ccb_getdev *)arg; in sgasync()
263 if (cgd == NULL) in sgasync()
266 if (cgd->protocol != PROTO_SCSI) in sgasync()
276 sgasync, AC_FOUND_DEVICE, cgd); in sgasync()
297 struct ccb_getdev *cgd; in sgregister() local
302 cgd = (struct ccb_getdev *)arg; in sgregister()
303 if (cgd == NULL) { in sgregister()
315 softc->pd_type = SID_TYPE(&cgd->inq_data); in sgregister()
335 no_tags = (cgd->inq_data.flags & SID_CmdQue) == 0; in sgregister()
H A Dscsi_cd.c422 struct ccb_getdev *cgd; in cdasync() local
426 if (cgd == NULL) in cdasync()
446 AC_FOUND_DEVICE, cgd); in cdasync()
593 struct ccb_getdev *cgd; in cdregister() local
597 cgd = (struct ccb_getdev *)arg; in cdregister()
598 if (cgd == NULL) { in cdregister()
695 cgd->inq_data.product, sizeof(cgd->inq_data.product), in cdregister()
1244 struct ccb_getdev cgd; in cddone() local
1256 bzero(&cgd, sizeof(cgd)); in cddone()
1257 xpt_setup_ccb(&cgd.ccb_h, in cddone()
[all …]
H A Dscsi_sa.c2303 struct ccb_getdev *cgd; in saasync() local
2307 if (cgd == NULL) in saasync()
2466 struct ccb_getdev *cgd; in saregister() local
2475 if (cgd == NULL) { in saregister()
4715 struct ccb_getdev cgd; in saextget() local
4735 memset(&cgd, 0, sizeof(cgd)); in saextget()
4736 xpt_setup_ccb(&cgd.ccb_h, in saextget()
4740 xpt_action((union ccb *)&cgd); in saextget()
4745 cgd.ccb_h.status); in saextget()
4764 if (cgd.serial_num_len > 0) { in saextget()
[all …]
H A Dscsi_da.c2128 struct ccb_getdev *cgd; in daasync() local
2131 cgd = (struct ccb_getdev *)arg; in daasync()
2132 if (cgd == NULL) in daasync()
2154 AC_FOUND_DEVICE, cgd); in daasync()
2788 struct ccb_getdev *cgd; in daregister() local
2793 cgd = (struct ccb_getdev *)arg; in daregister()
2794 if (cgd == NULL) { in daregister()
2942 SID_TYPE(&cgd->inq_data) | in daregister()
2975 cgd->inq_data.product, sizeof(cgd->inq_data.product), in daregister()
4900 struct ccb_getdev cgd; in dadone_proberc() local
[all …]
H A Dscsi_pass.c496 struct ccb_getdev *cgd; in passasync() local
499 cgd = (struct ccb_getdev *)arg; in passasync()
500 if (cgd == NULL) in passasync()
511 passasync, AC_FOUND_DEVICE, cgd); in passasync()
559 struct ccb_getdev *cgd; in passregister() local
564 cgd = (struct ccb_getdev *)arg; in passregister()
565 if (cgd == NULL) { in passregister()
581 if (cgd->protocol == PROTO_SCSI || cgd->protocol == PROTO_ATAPI) in passregister()
582 softc->pd_type = SID_TYPE(&cgd->inq_data); in passregister()
583 else if (cgd->protocol == PROTO_SATAPM) in passregister()
[all …]
H A Dscsi_all.c3695 struct ccb_getdev *cgd; in scsi_command_string() local
3704 xpt_setup_ccb(&cgd->ccb_h, in scsi_command_string()
3708 xpt_action((union ccb *)cgd); in scsi_command_string()
3717 inq_data = &cgd->inq_data; in scsi_command_string()
3730 xpt_free_ccb((union ccb *)cgd); in scsi_command_string()
5111 struct ccb_getdev *cgd; in scsi_sense_sbuf() local
5140 xpt_setup_ccb(&cgd->ccb_h, in scsi_sense_sbuf()
5144 xpt_action((union ccb *)cgd); in scsi_sense_sbuf()
5153 inq_data = &cgd->inq_data; in scsi_sense_sbuf()
5180 xpt_free_ccb((union ccb*)cgd); in scsi_sense_sbuf()
[all …]
H A Dscsi_enc_ses.c975 struct ccb_getdev cgd; in ses_paths_iter() local
983 memset(&cgd, 0, sizeof(cgd)); in ses_paths_iter()
984 xpt_setup_ccb(&cgd.ccb_h, path, CAM_PRIORITY_NORMAL); in ses_paths_iter()
985 cgd.ccb_h.func_code = XPT_GDEV_TYPE; in ses_paths_iter()
986 xpt_action((union ccb *)&cgd); in ses_paths_iter()
987 if (cam_ccb_success((union ccb *)&cgd)) in ses_paths_iter()
/freebsd-14.2/sys/cam/
H A Dcam_periph.c1695 struct ccb_getdev cgd; in camperiphscsisenseerror() local
1700 memset(&cgd, 0, sizeof(cgd)); in camperiphscsisenseerror()
1702 cgd.ccb_h.func_code = XPT_GDEV_TYPE; in camperiphscsisenseerror()
1703 xpt_action((union ccb *)&cgd); in camperiphscsisenseerror()
1799 if (SID_IS_REMOVABLE(&cgd.inq_data)) in camperiphscsisenseerror()
2133 struct ccb_getdev *cgd; in cam_periph_devctl_notify() local
2152 cgd->ccb_h.func_code = XPT_GDEV_TYPE; in cam_periph_devctl_notify()
2153 xpt_action((union ccb *)cgd); in cam_periph_devctl_notify()
2155 if (cgd->ccb_h.status == CAM_REQ_CMP) in cam_periph_devctl_notify()
2156 sbuf_bcat(&sb, cgd->serial_num, cgd->serial_num_len); in cam_periph_devctl_notify()
[all …]
H A Dcam_xpt.c2466 struct ccb_getdev cgd; in xptsetasyncfunc() local
2478 memset(&cgd, 0, sizeof(cgd)); in xptsetasyncfunc()
2485 cgd.ccb_h.func_code = XPT_GDEV_TYPE; in xptsetasyncfunc()
2486 xpt_action((union ccb *)&cgd); in xptsetasyncfunc()
2489 &path, &cgd); in xptsetasyncfunc()
2707 struct ccb_getdev *cgd; in xpt_action_default() local
2709 cgd = &start_ccb->cgd; in xpt_action_default()
2710 cgd->protocol = dev->protocol; in xpt_action_default()
2711 cgd->inq_data = dev->inq_data; in xpt_action_default()
2713 cgd->inq_flags = dev->inq_flags; in xpt_action_default()
[all …]
/freebsd-14.2/sbin/fsck_ffs/
H A Dpass1.c67 ufs2_daddr_t i, cgd; in pass1() local
77 cgd = cgdmin(&sblock, c); in pass1()
82 for (; i < cgd; i++) in pass1()
86 cgd = i + howmany(sblock.fs_cssize, sblock.fs_fsize); in pass1()
87 for (; i < cgd; i++) in pass1()
/freebsd-14.2/sys/cam/mmc/
H A Dmmc_da.c652 struct ccb_getdev cgd; in sddaasync() local
661 struct ccb_getdev *cgd; in sddaasync() local
664 cgd = (struct ccb_getdev *)arg; in sddaasync()
665 if (cgd == NULL) in sddaasync()
668 if (cgd->protocol != PROTO_MMCSD) in sddaasync()
685 AC_FOUND_DEVICE, cgd); in sddaasync()
696 memset(&cgd, 0, sizeof(cgd)); in sddaasync()
699 xpt_action((union ccb *)&cgd); in sddaasync()
755 struct ccb_getdev *cgd; in sddaregister() local
758 cgd = (struct ccb_getdev *)arg; in sddaregister()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZHazardRecognizer.cpp282 LLVM_DEBUG(raw_string_ostream cgd(CurGroupDbg); in EmitInstruction()
283 if (CurGroupDbg.length()) cgd << ", "; dumpSU(SU, cgd);); in EmitInstruction()
/freebsd-14.2/lib/libcam/
H A Dcamlib.c620 device->pd_type = SID_TYPE(&ccb.cgd.inq_data); in cam_real_open_device()
621 bcopy(&ccb.cgd.inq_data, &device->inq_data, in cam_real_open_device()
623 device->serial_num_len = ccb.cgd.serial_num_len; in cam_real_open_device()
624 bcopy(&ccb.cgd.serial_num, &device->serial_num, device->serial_num_len); in cam_real_open_device()
/freebsd-14.2/sys/cam/nvme/
H A Dnvme_da.c657 struct ccb_getdev *cgd; in ndaasync() local
660 cgd = (struct ccb_getdev *)arg; in ndaasync()
661 if (cgd == NULL) in ndaasync()
664 if (cgd->protocol != PROTO_NVME) in ndaasync()
676 AC_FOUND_DEVICE, cgd); in ndaasync()
/freebsd-14.2/sys/dev/smartpqi/
H A Dsmartpqi_cam.c1205 struct ccb_getdev *cgd; in smartpqi_async() local
1206 cgd = (struct ccb_getdev *)arg; in smartpqi_async()
1207 if (cgd == NULL) { in smartpqi_async()
1210 uint32_t t_id = cgd->ccb_h.target_id; in smartpqi_async()
1216 int lun = cgd->ccb_h.target_lun; in smartpqi_async()
/freebsd-14.2/sys/dev/sdio/
H A Dsdiob.c1098 struct ccb_getdev *cgd; in sdiobasync() local
1108 cgd = (struct ccb_getdev *)arg; in sdiobasync()
1109 if (cgd->protocol != PROTO_MMCSD) in sdiobasync()
1126 sdiobasync, AC_FOUND_DEVICE, cgd); in sdiobasync()
/freebsd-14.2/usr.sbin/camdd/
H A Dcamdd.c474 int camdd_get_cgd(struct cam_device *device, struct ccb_getdev *cgd);
1243 camdd_get_cgd(struct cam_device *device, struct ccb_getdev *cgd) in camdd_get_cgd() argument
1255 CCB_CLEAR_ALL_EXCEPT_HDR(&ccb->cgd); in camdd_get_cgd()
1274 bcopy(&ccb->cgd, cgd, sizeof(struct ccb_getdev)); in camdd_get_cgd()
1462 struct ccb_getdev cgd; in camdd_probe_pass() local
1466 if ((retval = camdd_get_cgd(cam_dev, &cgd)) != 0) { in camdd_probe_pass()
1478 switch (cgd.protocol) { in camdd_probe_pass()
1514 errx(1, "Unsupported PROTO type %d", cgd.protocol); in camdd_probe_pass()
1547 pass_dev->protocol = cgd.protocol; in camdd_probe_pass()
/freebsd-14.2/contrib/tnftp/
H A DTHANKS10 Chris G. Demetriou <cgd@NetBSD.org>
/freebsd-14.2/crypto/heimdal/lib/roken/
H A Dfnmatch.hin1 /* $NetBSD: fnmatch.h,v 1.5 1994/10/26 00:55:53 cgd Exp $ */
/freebsd-14.2/sys/dev/mpt/
H A Dmpt_raid.c236 struct ccb_getdev *cgd; in mpt_raid_async() local
239 cgd = (struct ccb_getdev *)arg; in mpt_raid_async()
240 if (cgd == NULL) { in mpt_raid_async()
245 cgd->ccb_h.target_id); in mpt_raid_async()
252 == cgd->ccb_h.target_id) { in mpt_raid_async()

12