Lines Matching defs:cgd
331 static int get_cgd(struct cam_device *device, struct ccb_getdev *cgd);
2359 struct ccb_getdev cgd;
2371 if (get_cgd(device, &cgd) != 0) {
2376 command = (cgd.protocol == PROTO_ATA) ?
2888 struct ccb_getdev cgd;
2962 if (get_cgd(device, &cgd) != 0) {
3097 struct ccb_getdev cgd;
3132 if (get_cgd(device, &cgd) != 0) {
5473 get_cgd(struct cam_device *device, struct ccb_getdev *cgd)
5496 bcopy(&ccb->cgd, cgd, sizeof(struct ccb_getdev));
5578 struct ccb_getdev cgd;
5581 retval = get_cgd(dev, &cgd);
5585 switch (cgd.protocol) {
5618 if (cgd.ident_data.serial[0] != 0 ||
5619 cgd.ident_data.revision[0] != 0 ||
5620 cgd.ident_data.model[0] != 0)