Searched refs:cam_dev (Results 1 - 4 of 4) sorted by relevance

/freebsd-10-stable/lib/libcam/tests/
H A Dlibcam_test.c200 struct cam_device *cam_dev; local
206 cam_dev = cam_open_device(cam_test_device, O_RDWR);
207 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s",
210 cam_close_device(cam_dev);
241 struct cam_device *cam_dev; local
247 cam_dev = cam_open_device(cam_test_device, O_RDWR);
248 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s",
251 cam_ccb = cam_getccb(cam_dev);
255 cam_close_device(cam_dev);
/freebsd-10-stable/sbin/camcontrol/
H A Dfwdownload.c263 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) argument
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, argument
345 retval = scsigetopcodes(/*device*/ cam_dev,
758 fw_download_img(struct cam_device *cam_dev, struct fw_vendor *vp, char *buf, int img_size, int sim_mode, int printerrors, int quiet, int retry_count, int timeout, const char *imgname, camcontrol_devtype devtype) argument
[all...]
H A Dcamcontrol.c9115 struct cam_device *cam_dev = NULL; local
9346 if ((cam_dev = ((arglist & (CAM_ARG_BUS | CAM_ARG_TARGET))?
9364 error = getdevlist(cam_dev);
9367 error = atahpa(cam_dev, retry_count, timeout,
9376 error = testunitready(cam_dev, task_attr, retry_count,
9380 error = scsidoinquiry(cam_dev, argc, argv, combinedopt,
9384 error = ataidentify(cam_dev, retry_count, timeout);
9387 error = scsistart(cam_dev, arglist & CAM_ARG_START_UNIT,
9400 error = readdefects(cam_dev, argc, argv, combinedopt,
9404 modepage(cam_dev, arg
[all...]
/freebsd-10-stable/usr.sbin/camdd/
H A Dcamdd.c482 struct camdd_dev *camdd_probe_pass(struct cam_device *cam_dev,
1259 camdd_probe_pass(struct cam_device *cam_dev, struct camdd_io_opts *io_opts, argument
1276 scsi_dev_type = SID_TYPE(&cam_dev->inq_data);
1297 ccb = cam_getccb(cam_dev);
1320 if (cam_send_ccb(cam_dev, ccb) < 0) {
1323 cam_error_print(cam_dev, ccb, CAM_ESF_ALL,
1330 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, CAM_EPF_ALL, stderr);
1363 if (cam_send_ccb(cam_dev, ccb) < 0) {
1365 cam_error_print(cam_dev, ccb, CAM_ESF_ALL,
1371 cam_error_print(cam_dev, cc
[all...]

Completed in 130 milliseconds