Lines Matching refs:cam_dev
263 static struct fw_vendor *fw_get_vendor(struct cam_device *cam_dev,
265 static int fw_get_timeout(struct cam_device *cam_dev, struct fw_vendor *vp,
277 static int fw_download_img(struct cam_device *cam_dev,
288 fw_get_vendor(struct cam_device *cam_dev, struct ata_params *ident_buf)
293 if (cam_dev == NULL)
304 cam_strvis((u_char *)vendor, (u_char *)cam_dev->inq_data.vendor,
305 sizeof(cam_dev->inq_data.vendor), sizeof(vendor));
311 || (vp->dev_type == SID_TYPE(&cam_dev->inq_data)))
319 fw_get_timeout(struct cam_device *cam_dev, struct fw_vendor *vp,
345 retval = scsigetopcodes(/*device*/ cam_dev,
753 * Download firmware stored in buf to cam_dev. If simulation mode
758 fw_download_img(struct cam_device *cam_dev, struct fw_vendor *vp,
779 retval = fw_check_device_ready(cam_dev, devtype, vp, printerrors,
784 if ((ccb = cam_getccb(cam_dev)) == NULL) {
874 if (cam_send_ccb(cam_dev, ccb) < 0 ||
879 cam_error_print(cam_dev, ccb,
885 cam_error_print(cam_dev, ccb, CAM_ESF_COMMAND, 0,