Home
last modified time | relevance | path

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

/freebsd/lib/libcam/tests/
H A Dlibcam_test.c226 struct cam_device *cam_dev; in ATF_TC_BODY() local
232 cam_dev = cam_open_device(cam_test_device, O_RDWR); in ATF_TC_BODY()
233 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s", in ATF_TC_BODY()
236 cam_close_device(cam_dev); in ATF_TC_BODY()
267 struct cam_device *cam_dev; in ATF_TC_BODY() local
273 cam_dev = cam_open_device(cam_test_device, O_RDWR); in ATF_TC_BODY()
274 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s", in ATF_TC_BODY()
277 cam_ccb = cam_getccb(cam_dev); in ATF_TC_BODY()
281 cam_close_device(cam_dev); in ATF_TC_BODY()
/freebsd/sbin/camcontrol/
H A Dfwdownload.c272 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()
[all …]
H A Dcamcontrol.c663 getdevtype(struct cam_device *cam_dev) in getdevtree()
671 error = get_device_type(cam_dev, -1, 0, 0, &dt); in getdevtype()
10355 struct cam_device *cam_dev = NULL; in main()
10582 if ((cam_dev = ((arglist & (CAM_ARG_BUS | CAM_ARG_TARGET))? in main()
10598 error = getdevlist(cam_dev); in main()
10601 error = atahpa(cam_dev, retry_count, timeout, in main()
10605 error = ataama(cam_dev, retry_count, timeout, in main()
10612 error = getdevtype(cam_dev); in main()
10615 error = requestsense(cam_dev, argc, argv, combinedopt, in main()
10619 error = testunitready(cam_dev, task_att in main()
667 getdevtype(struct cam_device * cam_dev) getdevtype() argument
10353 struct cam_device *cam_dev = NULL; main() local
[all...]
/freebsd/usr.bin/sdiotool/
H A Dsdiotool.c165 struct cam_device *cam_dev; member
492 struct cam_device *cam_dev; in main() local
514 if ((cam_dev = cam_open_spec_device(device, unit, O_RDWR, NULL)) == NULL) in main()
517 get_sdio_card_info(cam_dev, &ci); in main()
529 brcmf_dev.cam_dev = cam_dev; in main()
539 = brcmf_dev.func[2]->dev = cam_dev; in main()
544 ret = sdio_func_enable(cam_dev, 1, 1);bailout(ret); in main()
551 cam_close_spec_device(cam_dev); in main()
/freebsd/usr.sbin/camdd/
H A Dcamdd.c454 int camdd_probe_pass_scsi(struct cam_device *cam_dev, union ccb *ccb,
457 int camdd_probe_pass_nvme(struct cam_device *cam_dev, union ccb *ccb,
462 struct camdd_dev *camdd_probe_pass(struct cam_device *cam_dev,
1283 camdd_probe_pass_scsi(struct cam_device *cam_dev, union ccb *ccb, in camdd_probe_pass_scsi() argument
1312 if (cam_send_ccb(cam_dev, ccb) < 0) { in camdd_probe_pass_scsi()
1315 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, in camdd_probe_pass_scsi()
1322 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, CAM_EPF_ALL, stderr); in camdd_probe_pass_scsi()
1357 if (cam_send_ccb(cam_dev, ccb) < 0) { in camdd_probe_pass_scsi()
1359 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, in camdd_probe_pass_scsi()
1365 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, CAM_EPF_ALL, stderr); in camdd_probe_pass_scsi()
[all …]