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

/freebsd-13-stable/lib/libcam/tests/
H A Dlibcam_test.c228 struct cam_device *cam_dev; local
234 cam_dev = cam_open_device(cam_test_device, O_RDWR);
235 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s",
238 cam_close_device(cam_dev);
269 struct cam_device *cam_dev; local
275 cam_dev = cam_open_device(cam_test_device, O_RDWR);
276 ATF_CHECK_MSG(cam_dev != NULL, "cam_open_device failed: %s",
279 cam_ccb = cam_getccb(cam_dev);
283 cam_close_device(cam_dev);
/freebsd-13-stable/sbin/camcontrol/
H A Dfwdownload.c269 static struct fw_vendor *fw_get_vendor(struct cam_device *cam_dev,
271 static int fw_get_timeout(struct cam_device *cam_dev, struct fw_vendor *vp,
283 static int fw_download_img(struct cam_device *cam_dev,
294 fw_get_vendor(struct cam_device *cam_dev, struct ata_params *ident_buf) argument
299 if (cam_dev == NULL)
310 cam_strvis((u_char *)vendor, (u_char *)cam_dev->inq_data.vendor,
311 sizeof(cam_dev->inq_data.vendor), sizeof(vendor));
317 || (vp->dev_type == SID_TYPE(&cam_dev->inq_data)))
325 fw_get_timeout(struct cam_device *cam_dev, struct fw_vendor *vp, argument
351 retval = scsigetopcodes(/*device*/ cam_dev,
773 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.c658 getdevtype(struct cam_device *cam_dev) argument
666 error = get_device_type(cam_dev, -1, 0, 0, &dt);
10278 struct cam_device *cam_dev = NULL; local
10504 if ((cam_dev = ((arglist & (CAM_ARG_BUS | CAM_ARG_TARGET))?
10520 error = getdevlist(cam_dev);
10523 error = atahpa(cam_dev, retry_count, timeout,
10527 error = ataama(cam_dev, retry_count, timeout,
10534 error = getdevtype(cam_dev);
10537 error = testunitready(cam_dev, task_attr, retry_count,
10541 error = scsidoinquiry(cam_dev, arg
[all...]
/freebsd-13-stable/usr.bin/sdiotool/
H A Dsdiotool.c169 struct cam_device *cam_dev; member in struct:brcmf_sdio_dev
496 struct cam_device *cam_dev; local
518 if ((cam_dev = cam_open_spec_device(device, unit, O_RDWR, NULL)) == NULL)
521 get_sdio_card_info(cam_dev, &ci);
533 brcmf_dev.cam_dev = cam_dev;
543 = brcmf_dev.func[2]->dev = cam_dev;
548 ret = sdio_func_enable(cam_dev, 1, 1);bailout(ret);
555 cam_close_spec_device(cam_dev);
/freebsd-13-stable/usr.sbin/camdd/
H A Dcamdd.c464 int camdd_probe_pass_scsi(struct cam_device *cam_dev, union ccb *ccb,
467 int camdd_probe_pass_nvme(struct cam_device *cam_dev, union ccb *ccb,
472 struct camdd_dev *camdd_probe_pass(struct cam_device *cam_dev,
1296 camdd_probe_pass_scsi(struct cam_device *cam_dev, union ccb *ccb, argument
1325 if (cam_send_ccb(cam_dev, ccb) < 0) {
1328 cam_error_print(cam_dev, ccb, CAM_ESF_ALL,
1335 cam_error_print(cam_dev, ccb, CAM_ESF_ALL, CAM_EPF_ALL, stderr);
1370 if (cam_send_ccb(cam_dev, ccb) < 0) {
1372 cam_error_print(cam_dev, ccb, CAM_ESF_ALL,
1378 cam_error_print(cam_dev, cc
1392 camdd_probe_pass_nvme(struct cam_device *cam_dev, union ccb *ccb, camdd_argmask arglist, int probe_retry_count, int probe_timeout, uint64_t *maxsector, uint32_t *block_len) argument
1465 camdd_probe_pass(struct cam_device *cam_dev, struct camdd_io_opts *io_opts, camdd_argmask arglist, int probe_retry_count, int probe_timeout, int io_retry_count, int io_timeout) argument
[all...]

Completed in 115 milliseconds