Lines Matching refs:cam_dev
272 static struct fw_vendor *fw_get_vendor(struct cam_device *cam_dev,
274 static int fw_get_timeout(struct cam_device *cam_dev, struct fw_vendor *vp,
286 static int fw_download_img(struct cam_device *cam_dev,
297 fw_get_vendor(struct cam_device *cam_dev, struct ata_params *ident_buf) in fw_get_vendor() argument
302 if (cam_dev == NULL) in fw_get_vendor()
313 cam_strvis((u_char *)vendor, (u_char *)cam_dev->inq_data.vendor, in fw_get_vendor()
314 sizeof(cam_dev->inq_data.vendor), sizeof(vendor)); in fw_get_vendor()
320 || (vp->dev_type == SID_TYPE(&cam_dev->inq_data))) in fw_get_vendor()
328 fw_get_timeout(struct cam_device *cam_dev, struct fw_vendor *vp, in fw_get_timeout() argument
354 retval = scsigetopcodes(/*device*/ cam_dev, in fw_get_timeout()
824 fw_download_img(struct cam_device *cam_dev, struct fw_vendor *vp, in fw_download_img() argument
845 retval = fw_check_device_ready(cam_dev, devtype, vp, printerrors, in fw_download_img()
850 if ((ccb = cam_getccb(cam_dev)) == NULL) { in fw_download_img()
947 if (cam_send_ccb(cam_dev, ccb) < 0 || in fw_download_img()
952 cam_error_print(cam_dev, ccb, in fw_download_img()
958 cam_error_print(cam_dev, ccb, CAM_ESF_COMMAND, 0, in fw_download_img()
972 fw_rescan_target(cam_dev, printerrors, sim_mode); in fw_download_img()