Home
last modified time | relevance | path

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

/freebsd-12.1/lib/libcam/tests/
H A Dlibcam_test.c228 struct cam_device *cam_dev; in ATF_TC_BODY() local
234 cam_dev = cam_open_device(cam_test_device, O_RDWR); in ATF_TC_BODY()
235 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s", in ATF_TC_BODY()
238 cam_close_device(cam_dev); in ATF_TC_BODY()
269 struct cam_device *cam_dev; in ATF_TC_BODY() local
275 cam_dev = cam_open_device(cam_test_device, O_RDWR); in ATF_TC_BODY()
276 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s", in ATF_TC_BODY()
279 cam_ccb = cam_getccb(cam_dev); in ATF_TC_BODY()
283 cam_close_device(cam_dev); in ATF_TC_BODY()
/freebsd-12.1/sbin/camcontrol/
H A Dfwdownload.c269 static struct fw_vendor *fw_get_vendor(struct cam_device *cam_dev,
283 static int fw_download_img(struct cam_device *cam_dev,
299 if (cam_dev == NULL) in fw_get_vendor()
311 sizeof(cam_dev->inq_data.vendor), sizeof(vendor)); in fw_get_vendor()
317 || (vp->dev_type == SID_TYPE(&cam_dev->inq_data))) in fw_get_vendor()
325 fw_get_timeout(struct cam_device *cam_dev, struct fw_vendor *vp, in fw_get_timeout() argument
351 retval = scsigetopcodes(/*device*/ cam_dev, in fw_get_timeout()
799 if ((ccb = cam_getccb(cam_dev)) == NULL) { in fw_download_img()
898 if (cam_send_ccb(cam_dev, ccb) < 0 || in fw_download_img()
903 cam_error_print(cam_dev, ccb, in fw_download_img()
[all …]
H A Dcamcontrol.c676 getdevtype(struct cam_device *cam_dev) in getdevtype() argument
10198 struct cam_device *cam_dev = NULL; in main() local
10447 error = getdevlist(cam_dev); in main()
10462 error = getdevtype(cam_dev); in main()
10494 modepage(cam_dev, argc, argv, combinedopt, in main()
10537 error = scsiformat(cam_dev, argc, argv, in main()
10555 error = atapm(cam_dev, argc, argv, in main()
10560 error = ataaxm(cam_dev, argc, argv, in main()
10594 error = reprobe(cam_dev); in main()
10620 if (cam_dev != NULL) in main()
[all …]
/freebsd-12.1/usr.bin/sdiotool/
H A Dsdiotool.c169 struct cam_device *cam_dev; member
496 struct cam_device *cam_dev; in main() local
518 if ((cam_dev = cam_open_spec_device(device, unit, O_RDWR, NULL)) == NULL) in main()
521 get_sdio_card_info(cam_dev, &ci); in main()
533 brcmf_dev.cam_dev = cam_dev; in main()
543 = brcmf_dev.func[2]->dev = cam_dev; in main()
548 ret = sdio_func_enable(cam_dev, 1, 1);bailout(ret); in main()
555 cam_close_spec_device(cam_dev); in main()
/freebsd-12.1/usr.sbin/camdd/
H A Dcamdd.c1317 if (cam_send_ccb(cam_dev, ccb) < 0) { in camdd_probe_pass_scsi()
1320 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, in camdd_probe_pass_scsi()
1362 if (cam_send_ccb(cam_dev, ccb) < 0) { in camdd_probe_pass_scsi()
1364 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, in camdd_probe_pass_scsi()
1406 if ((retval = camdd_get_cgd(cam_dev, &cgd)) != 0) { in camdd_probe_pass()
1411 ccb = cam_getccb(cam_dev); in camdd_probe_pass()
1420 scsi_dev_type = SID_TYPE(&cam_dev->inq_data); in camdd_probe_pass()
1453 cam_dev->device_name, cam_dev->dev_unit_num); in camdd_probe_pass()
1463 if (cam_send_ccb(cam_dev, ccb) < 0) { in camdd_probe_pass()
1466 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, in camdd_probe_pass()
[all …]