Searched refs:lun_id (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-10.3-release/sys/cam/scsi/
H A Dscsi_targetio.h51 * target_id, and lun_id fields must be set. The grp6/7_len fields
63 lun_id_t lun_id; member in struct:ioc_enable_lun
H A Dscsi_xpt.c585 lun_id_t lun_id);
1204 if (path->device->lun_id == 0 &&
1228 } else if (path->device->lun_id == 0 &&
2054 lun_id_t lun_id; local
2062 lun_id = request_ccb->ccb_h.target_lun;
2090 lun_id);
2102 lun_id);
2116 (uintmax_t)lun_id));
2141 if (lun_id < (CAM_SCSI2_MAXLUN-1) ||
2147 if (lun_id < (CAM_SCSI2_MAXLU
2366 scsi_alloc_device(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id) argument
[all...]
H A Dscsi_target.c245 new_lun->lun_id);
/freebsd-10.3-release/sys/cam/
H A Dcam_xpt.h85 target_id_t target_id, lun_id_t lun_id);
89 target_id_t target_id, lun_id_t lun_id);
131 lun_id_t lun_id);
H A Dcam_xpt_internal.h41 lun_id_t lun_id);
69 lun_id_t lun_id; member in struct:cam_ed
173 lun_id_t lun_id);
H A Dcam_xpt.c256 xpt_find_device(struct cam_et *target, lun_id_t lun_id);
311 lun_id_t lun_id);
683 periph->path->device->lun_id;
805 ccb->ccb_h.path->device->lun_id == CAM_LUN_WILDCARD)
808 ccb->ccb_h.path->device->lun_id == CAM_LUN_WILDCARD)
811 ccb->ccb_h.path->device->lun_id != CAM_LUN_WILDCARD)
1025 (uintmax_t)path->device->lun_id);
1078 (uintmax_t)path->device->lun_id);
1362 && (cur_pattern->target_lun != device->lun_id))
1494 || (cur_pattern->target_lun != periph->path->device->lun_id)))
3371 xpt_create_path(struct cam_path **new_path_ptr, struct cam_periph *perph, path_id_t path_id, target_id_t target_id, lun_id_t lun_id) argument
3393 xpt_create_path_unlocked(struct cam_path **new_path_ptr, struct cam_periph *periph, path_id_t path_id, target_id_t target_id, lun_id_t lun_id) argument
3403 xpt_compile_path(struct cam_path *new_path, struct cam_periph *perph, path_id_t path_id, target_id_t target_id, lun_id_t lun_id) argument
4681 xpt_alloc_device_default(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id) argument
4706 xpt_alloc_device(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id) argument
4871 xpt_find_device(struct cam_et *target, lun_id_t lun_id) argument
[all...]
H A Dcam_periph.c167 lun_id_t lun_id; local
209 lun_id = xpt_path_lun_id(path);
220 status = xpt_create_path(&path, periph, path_id, target_id, lun_id);
237 periph->unit_number = camperiphunit(*p_drv, path_id, target_id, lun_id);
1758 lun_id_t lun_id; local
1767 lun_id = CAM_LUN_WILDCARD;
1769 lun_id = xpt_path_lun_id(ccb->ccb_h.path);
1775 lun_id) == CAM_REQ_CMP) {
/freebsd-10.3-release/sys/dev/mps/
H A Dmps_sas.h36 lun_id_t lun_id; member in struct:mpssas_lun
170 struct mpssas_target *target, lun_id_t lun_id);
H A Dmps_sas.c1041 target_id_t target_id, lun_id_t lun_id)
1047 ac_code, target_id, (uintmax_t)lun_id);
1050 path_id, target_id, lun_id) != CAM_REQ_CMP) {
1786 if (lun->lun_id == csio->ccb_h.target_lun) {
3257 if (lun->lun_id == lunid) {
3271 lun->lun_id = lunid;
3387 if (lun->lun_id == lunid) {
3402 lun->lun_id = lunid;
3486 if (lun->lun_id != done_ccb->ccb_h.target_lun)
3524 struct mpssas_target *target, lun_id_t lun_id)
1040 mpssas_announce_reset(struct mps_softc *sc, uint32_t ac_code, target_id_t target_id, lun_id_t lun_id) argument
3523 mpssas_prepare_for_tm(struct mps_softc *sc, struct mps_command *tm, struct mpssas_target *target, lun_id_t lun_id) argument
[all...]
/freebsd-10.3-release/sys/dev/mpr/
H A Dmpr_sas.h36 lun_id_t lun_id; member in struct:mprsas_lun
174 struct mprsas_target *target, lun_id_t lun_id);
H A Dmpr_sas.c1099 target_id_t target_id, lun_id_t lun_id)
1105 ac_code, target_id, (uintmax_t)lun_id);
1108 path_id, target_id, lun_id) != CAM_REQ_CMP) {
1856 if (lun->lun_id == csio->ccb_h.target_lun) {
3113 if (lun->lun_id == lunid) {
3127 lun->lun_id = lunid;
3250 if (lun->lun_id == lunid) {
3265 lun->lun_id = lunid;
3347 if (lun->lun_id != done_ccb->ccb_h.target_lun)
3384 struct mprsas_target *target, lun_id_t lun_id)
1098 mprsas_announce_reset(struct mpr_softc *sc, uint32_t ac_code, target_id_t target_id, lun_id_t lun_id) argument
3383 mprsas_prepare_for_tm(struct mpr_softc *sc, struct mpr_command *tm, struct mprsas_target *target, lun_id_t lun_id) argument
[all...]
/freebsd-10.3-release/sys/cam/ctl/
H A Dctl_ioctl.h105 uint32_t lun_id; member in struct:ctl_io_delay_info
235 * lun_id LUN to act on.
245 uint32_t lun_id; /* To kernel */ member in struct:ctl_error_desc
408 * lun_id: The number of the LUN to delete. This must be set.
412 uint32_t lun_id; member in struct:ctl_lun_rm_params
418 * lun_id: The number of the LUN to modify. This must be set.
425 uint32_t lun_id; member in struct:ctl_lun_modify_params
H A Dctl_backend_ramdisk.c412 if (be_lun->cbe_lun.lun_id == params->lun_id)
419 __func__, params->lun_id);
427 "LUN %d", __func__, retval, params->lun_id);
447 "LUN %d", __func__, retval, params->lun_id);
672 params->req_lun_id = cbe_lun->lun_id;
707 if (be_lun->cbe_lun.lun_id == params->lun_id)
714 __func__, params->lun_id);
H A Dctl_frontend.h52 typedef int (*lun_func_t)(void *arg, int lun_id);
H A Dctl_backend.h215 uint32_t lun_id; /* returned from CTL */ member in struct:ctl_be_lun
H A Dscsi_ctl.c203 static int ctlfe_lun_enable(void *arg, int lun_id);
204 static int ctlfe_lun_disable(void *arg, int lun_id);
1827 ctlfe_lun_enable(void *arg, int lun_id) argument
1837 lun_id = CAM_EXTLUN_BYTE_SWIZZLE(ctl_encode_lun(lun_id));
1840 bus_softc->path_id, bus_softc->target_id, lun_id);
1891 ctlfe_lun_disable(void *arg, int lun_id) argument
1898 lun_id = CAM_EXTLUN_BYTE_SWIZZLE(ctl_encode_lun(lun_id));
1907 && (xpt_path_lun_id(path) == lun_id)) {
[all...]
H A Dctl_backend_block.c2448 params->req_lun_id = cbe_lun->lun_id;
2492 if (be_lun->cbe_lun.lun_id == params->lun_id)
2499 params->lun_id);
2508 "LUN %d", retval, params->lun_id);
2523 "LUN %d", retval, params->lun_id);
2584 if (be_lun->cbe_lun.lun_id == params->lun_id)
2591 params->lun_id);
H A Dctl.c1767 ireq.reqdata.modify.lun_id = lun->lun;
2731 if ((delay_info->lun_id >= CTL_MAX_LUNS)
2732 || (softc->ctl_luns[delay_info->lun_id] == NULL)) {
2735 lun = softc->ctl_luns[delay_info->lun_id];
2823 lun = softc->ctl_luns[err_desc->lun_id];
2828 __func__, (uintmax_t)err_desc->lun_id);
2867 lun = softc->ctl_luns[delete_desc->lun_id];
2871 __func__, (uintmax_t)delete_desc->lun_id);
2890 delete_desc->serial, delete_desc->lun_id);
3526 ctl_lun_map_from_port(struct ctl_port *port, uint32_t lun_id) argument
3537 ctl_lun_map_to_port(struct ctl_port *port, uint32_t lun_id) argument
9100 uint32_t initidx, targ_lun_id, lun_id; local
[all...]
/freebsd-10.3-release/usr.sbin/ctld/
H A Dkernel.c109 uint64_t lun_id; member in struct:cctl_lun
183 cur_lun->lun_id = strtoull(attr[i+1], NULL, 0);
594 "ignoring", (uintmax_t)lun->lun_id);
602 (uintmax_t)lun->lun_id, lun->ctld_name,
608 (uintmax_t)lun->lun_id, lun->ctld_name);
621 lun_set_ctl_lun(cl, lun->lun_id);
633 nv->name, (uintmax_t) lun->lun_id,
772 req.reqdata.modify.lun_id = lun->l_ctl_lun;
831 req.reqdata.rm.lun_id = lun->l_ctl_lun;
/freebsd-10.3-release/sys/dev/virtio/scsi/
H A Dvirtio_scsi.c1561 vtscsi_get_request_lun(uint8_t lun[], target_id_t *target_id, lun_id_t *lun_id) argument
1565 *lun_id = (lun[2] << 8) | lun[3];
1668 target_id_t target_id, lun_id_t lun_id)
1673 if (target_id == CAM_TARGET_WILDCARD && lun_id == CAM_LUN_WILDCARD) {
1679 target_id, lun_id) != CAM_REQ_CMP) {
1690 lun_id_t lun_id)
1702 cam_sim_path(sc->vtscsi_sim), target_id, lun_id);
1723 lun_id_t lun_id; local
1725 vtscsi_get_request_lun(event->lun, &target_id, &lun_id);
1730 vtscsi_execute_rescan(sc, target_id, lun_id);
1667 vtscsi_announce(struct vtscsi_softc *sc, uint32_t ac_code, target_id_t target_id, lun_id_t lun_id) argument
1689 vtscsi_execute_rescan(struct vtscsi_softc *sc, target_id_t target_id, lun_id_t lun_id) argument
[all...]
/freebsd-10.3-release/usr.sbin/ctladm/
H A Dctladm.c642 delay_info.lun_id = lun;
728 err_desc.lun_id = lun;
2493 uint32_t lun_id = 0; local
2508 lun_id = strtoul(optarg, NULL, 0);
2564 req.reqdata.rm.lun_id = lun_id;
2624 printf("LUN %d removed successfully\n", lun_id);
2635 uint32_t lun_id = 0; local
2649 lun_id = strtoul(optarg, NULL, 0);
2721 req.reqdata.modify.lun_id
3208 uint64_t lun_id; member in struct:cctl_lun
[all...]
/freebsd-10.3-release/sys/cam/ata/
H A Data_xpt.c182 lun_id_t lun_id);
1520 path->device->lun_id);
1576 ata_alloc_device(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id) argument
1581 device = xpt_alloc_device(bus, target, lun_id);
1972 || device->lun_id == CAM_LUN_WILDCARD)
1985 device->lun_id);
2016 device->lun_id);
/freebsd-10.3-release/share/examples/scsi_target/
H A Dscsi_target.c212 &ioc_enlun.lun_id);
217 ioc_enlun.lun_id == CAM_LUN_WILDCARD) {
/freebsd-10.3-release/sys/dev/firewire/
H A Dsbp.c201 uint16_t lun_id; member in struct:sbp_dev
543 sdev->lun_id = lun;
552 sdev->lun_id);
1008 sdev = sbp_next_dev(target, sdev->lun_id + 1);
1085 target->target_id, sdev->lun_id);
1390 ocb->orb[7] = htonl(SBP_DEV2ADDR(target->target_id, sdev->lun_id));
1403 ocb->orb[4] = htonl(ORB_NOTIFY | sdev->lun_id);
/freebsd-10.3-release/sys/dev/mfi/
H A Dmfi_cam.c366 pt->header.lun_id = ccbh->target_lun;

Completed in 322 milliseconds

12