Home
last modified time | relevance | path

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

/freebsd-10-stable/lib/libcam/tests/
Dlibcam_test.c200 struct cam_device *cam_dev; in ATF_TC_BODY() local
206 cam_dev = cam_open_device(cam_test_device, O_RDWR); in ATF_TC_BODY()
207 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s", in ATF_TC_BODY()
210 cam_close_device(cam_dev); in ATF_TC_BODY()
241 struct cam_device *cam_dev; in ATF_TC_BODY() local
247 cam_dev = cam_open_device(cam_test_device, O_RDWR); in ATF_TC_BODY()
248 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s", in ATF_TC_BODY()
251 cam_ccb = cam_getccb(cam_dev); in ATF_TC_BODY()
255 cam_close_device(cam_dev); in ATF_TC_BODY()
/freebsd-10-stable/sbin/camcontrol/
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) in fw_get_vendor() argument
293 if (cam_dev == NULL) in fw_get_vendor()
304 cam_strvis((u_char *)vendor, (u_char *)cam_dev->inq_data.vendor, in fw_get_vendor()
305 sizeof(cam_dev->inq_data.vendor), sizeof(vendor)); in fw_get_vendor()
311 || (vp->dev_type == SID_TYPE(&cam_dev->inq_data))) in fw_get_vendor()
319 fw_get_timeout(struct cam_device *cam_dev, struct fw_vendor *vp, in fw_get_timeout() argument
345 retval = scsigetopcodes(/*device*/ cam_dev, in fw_get_timeout()
[all …]
Dcamcontrol.c9115 struct cam_device *cam_dev = NULL; in main() local
9346 if ((cam_dev = ((arglist & (CAM_ARG_BUS | CAM_ARG_TARGET))? in main()
9364 error = getdevlist(cam_dev); in main()
9367 error = atahpa(cam_dev, retry_count, timeout, in main()
9376 error = testunitready(cam_dev, task_attr, retry_count, in main()
9380 error = scsidoinquiry(cam_dev, argc, argv, combinedopt, in main()
9384 error = ataidentify(cam_dev, retry_count, timeout); in main()
9387 error = scsistart(cam_dev, arglist & CAM_ARG_START_UNIT, in main()
9400 error = readdefects(cam_dev, argc, argv, combinedopt, in main()
9404 modepage(cam_dev, argc, argv, combinedopt, in main()
[all …]
/freebsd-10-stable/usr.sbin/camdd/
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, in camdd_probe_pass() argument
1276 scsi_dev_type = SID_TYPE(&cam_dev->inq_data); in camdd_probe_pass()
1297 ccb = cam_getccb(cam_dev); in camdd_probe_pass()
1320 if (cam_send_ccb(cam_dev, ccb) < 0) { in camdd_probe_pass()
1323 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, in camdd_probe_pass()
1330 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, CAM_EPF_ALL, stderr); in camdd_probe_pass()
1363 if (cam_send_ccb(cam_dev, ccb) < 0) { in camdd_probe_pass()
1365 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, in camdd_probe_pass()
1371 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, CAM_EPF_ALL, stderr); in camdd_probe_pass()
[all …]