/freebsd-current/tools/regression/iscsi/ |
H A D | ctl.conf | 13 lun 0 { 17 lun 1 { 26 lun 0 { 30 lun 1 {
|
/freebsd-current/sys/dev/mpr/ |
H A D | mpr_sas.h | 116 #define MPR_SET_LUN(lun, ccblun) \ 117 mprsas_set_lun(lun, ccblun) 120 mprsas_set_lun(uint8_t *lun, u_int ccblun) argument 124 newlun = (uint64_t *)lun; 128 lun[1] = ccblun; 131 scsi_ulto2b(ccblun, lun); 132 lun[0] |= 0x40; 135 scsi_ulto3b(ccblun, &lun[1]); 137 lun[0] = 0xc0; 139 lun[ [all...] |
/freebsd-current/sys/dev/mps/ |
H A D | mps_sas.h | 110 #define MPS_SET_LUN(lun, ccblun) \ 111 mpssas_set_lun(lun, ccblun) 114 mpssas_set_lun(uint8_t *lun, u_int ccblun) argument 118 newlun = (uint64_t *)lun; 122 lun[1] = ccblun; 125 scsi_ulto2b(ccblun, lun); 126 lun[0] |= 0x40; 129 scsi_ulto3b(ccblun, &lun[1]); 131 lun[0] = 0xc0; 133 lun[ [all...] |
/freebsd-current/usr.sbin/ctld/ |
H A D | ctld.h | 167 struct lun { struct 168 TAILQ_ENTRY(lun) l_next; 187 struct lun *t_luns[MAX_LUNS]; 204 TAILQ_HEAD(, lun) conf_luns; 333 struct lun *lun_new(struct conf *conf, const char *name); 334 void lun_delete(struct lun *lun); 335 struct lun *lun_find(const struct conf *conf, const char *name); 336 void lun_set_backend(struct lun *lun, cons [all...] |
H A D | parse.y | 52 static struct lun *lun = NULL; 104 lun 532 lun: LUN lun_name label 535 lun = NULL; 541 lun = lun_new(conf, $1); 543 if (lun == NULL) 890 lun = NULL; 911 ret = asprintf(&name, "%s,lun,%ju", target->t_name, tmp); 914 lun [all...] |
H A D | kernel.c | 177 if (strcmp(name, "lun") == 0) { 179 log_errx(1, "%s: improper lun element nesting", 258 } else if (strcmp(name, "lun") == 0) { 424 struct lun *cl; 428 struct cctl_lun *lun; local 619 STAILQ_FOREACH(lun, &devlist.lun_list, links) { 622 if (lun->ctld_name == NULL) { 623 log_debugx("CTL lun %ju wasn't managed by ctld; " 624 "ignoring", (uintmax_t)lun->lun_id); 628 cl = lun_find(conf, lun 672 kernel_lun_add(struct lun *lun) argument 777 kernel_lun_modify(struct lun *lun) argument 859 kernel_lun_remove(struct lun *lun) argument [all...] |
H A D | ctld.c | 116 struct lun *lun, *ltmp; local 125 TAILQ_FOREACH_SAFE(lun, &conf->conf_luns, l_next, ltmp) 126 lun_delete(lun); 1461 struct lun * 1464 struct lun *lun; local 1466 lun = lun_find(conf, name); 1467 if (lun != NULL) { 1468 log_warnx("duplicated lun \" 1485 lun_delete(struct lun *lun) argument 1513 struct lun *lun; local 1524 lun_set_backend(struct lun *lun, const char *value) argument 1531 lun_set_blocksize(struct lun *lun, size_t value) argument 1538 lun_set_device_type(struct lun *lun, uint8_t value) argument 1545 lun_set_device_id(struct lun *lun, const char *value) argument 1552 lun_set_path(struct lun *lun, const char *value) argument 1559 lun_set_scsiname(struct lun *lun, const char *value) argument 1566 lun_set_serial(struct lun *lun, const char *value) argument 1573 lun_set_size(struct lun *lun, size_t value) argument 1580 lun_set_ctl_lun(struct lun *lun, uint32_t value) argument 1747 conf_verify_lun(struct lun *lun) argument 1809 struct lun *lun; local [all...] |
H A D | uclparse.c | 189 struct lun *lun; local 202 asprintf(&name, "%s,lun,%ju", target->t_name, tmp); 203 lun = lun_new(conf, name); 204 if (lun == NULL) 207 lun_set_scsiname(lun, name); 208 target->t_luns[tmp] = lun; 217 log_warnx("lun section in target \"%s\" is missing " 229 log_warnx("lun section in target \"%s\" is missing " 234 lun 919 struct lun *lun; local [all...] |
H A D | token.l | 57 ctl-lun { return CTL_LUN; } 70 lun { return LUN; }
|
/freebsd-current/sys/cam/ctl/ |
H A D | ctl.c | 399 static void ctl_ioctl_fill_ooa(struct ctl_lun *lun, uint32_t *cur_fill_num, 404 static int ctl_enable_lun(struct ctl_lun *lun); 405 static int ctl_disable_lun(struct ctl_lun *lun); 406 static int ctl_free_lun(struct ctl_lun *lun); 409 static int ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, 415 static void ctl_pro_preempt_other(struct ctl_lun *lun, 436 static ctl_action ctl_check_for_blockage(struct ctl_lun *lun, 439 static ctl_action ctl_check_ooa(struct ctl_lun *lun, union ctl_io *pending_io, 441 static void ctl_try_unblock_io(struct ctl_lun *lun, union ctl_io *io, 443 static void ctl_try_unblock_others(struct ctl_lun *lun, unio 617 struct ctl_lun *lun = CTL_LUN(io); local 800 ctl_isc_announce_lun(struct ctl_lun *lun) argument 962 ctl_isc_announce_mode(struct ctl_lun *lun, uint32_t initidx, uint8_t page, uint8_t subpage) argument 1003 struct ctl_lun *lun; local 1033 struct ctl_lun *lun; local 1072 struct ctl_lun *lun; local 1110 struct ctl_lun *lun; local 1197 struct ctl_lun *lun; local 1403 struct ctl_lun *lun; local 1780 ctl_est_ua(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua) argument 1795 ctl_est_ua_port(struct ctl_lun *lun, int port, uint32_t except, ctl_ua_type ua) argument 1810 ctl_est_ua_all(struct ctl_lun *lun, uint32_t except, ctl_ua_type ua) argument 1821 ctl_clr_ua(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua) argument 1836 ctl_clr_ua_all(struct ctl_lun *lun, uint32_t except, ctl_ua_type ua) argument 1857 struct ctl_lun *lun; local 1871 struct ctl_lun *lun; local 2322 struct ctl_lun *lun; local 2437 ctl_ioctl_fill_ooa(struct ctl_lun *lun, uint32_t *cur_fill_num, struct ctl_ooa *ooa_hdr, struct ctl_ooa_entry *kern_entries) argument 2577 struct ctl_lun *lun; local 3640 struct ctl_lun *lun; local 3669 struct ctl_lun *lun; local 3758 uint8_t lun[8]; local 3875 ctl_get_prkey(struct ctl_lun *lun, uint32_t residx) argument 3886 ctl_clr_prkey(struct ctl_lun *lun, uint32_t residx) argument 3897 ctl_alloc_prkey(struct ctl_lun *lun, uint32_t residx) argument 3916 ctl_set_prkey(struct ctl_lun *lun, uint32_t residx, uint64_t key) argument 4077 ctl_init_page_index(struct ctl_lun *lun) argument 4362 ctl_init_log_page_index(struct ctl_lun *lun) argument 4453 struct ctl_lun *nlun, *lun; local 4689 ctl_free_lun(struct ctl_lun *lun) argument 4734 ctl_enable_lun(struct ctl_lun *lun) argument 4777 ctl_disable_lun(struct ctl_lun *lun) argument 4824 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4835 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4846 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4857 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4885 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4896 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4909 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4928 struct ctl_lun *lun; local 4954 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4980 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 5012 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 5223 struct ctl_lun *lun = CTL_LUN(ctsio); local 5260 struct ctl_lun *lun = CTL_LUN(ctsio); local 5300 struct ctl_lun *lun = CTL_LUN(ctsio); local 5353 struct ctl_lun *lun = CTL_LUN(ctsio); local 5393 struct ctl_lun *lun = CTL_LUN(ctsio); local 5538 struct ctl_lun *lun = CTL_LUN(ctsio); local 5612 struct ctl_lun *lun = CTL_LUN(ctsio); local 5663 struct ctl_lun *lun = CTL_LUN(io); local 5688 struct ctl_lun *lun = CTL_LUN(ctsio); local 5808 struct ctl_lun *lun = CTL_LUN(ctsio); local 5909 struct ctl_lun *lun = CTL_LUN(ctsio); local 5939 struct ctl_lun *lun = arg; local 5964 struct ctl_lun *lun = CTL_LUN(ctsio); local 6006 struct ctl_lun *lun = CTL_LUN(io); local 6229 struct ctl_lun *lun = CTL_LUN(ctsio); local 6373 struct ctl_lun *lun = CTL_LUN(ctsio); local 6710 struct ctl_lun *lun = CTL_LUN(ctsio); local 6744 struct ctl_lun *lun = CTL_LUN(ctsio); local 6812 struct ctl_lun *lun = CTL_LUN(ctsio); local 6861 struct ctl_lun *lun = CTL_LUN(ctsio); local 6884 struct ctl_lun *lun = CTL_LUN(ctsio); local 6961 struct ctl_lun *lun = CTL_LUN(ctsio); local 7015 struct ctl_lun *lun = CTL_LUN(ctsio); local 7065 struct ctl_lun *lun = CTL_LUN(ctsio); local 7170 struct ctl_lun *lun = CTL_LUN(ctsio); local 7253 struct ctl_lun *lun = CTL_LUN(ctsio); local 7421 struct ctl_lun *lun = CTL_LUN(ctsio); local 7669 struct ctl_lun *lun = CTL_LUN(ctsio); local 7906 ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, uint64_t res_key, uint64_t sa_res_key, uint8_t type, uint32_t residx, struct ctl_scsiio *ctsio, struct scsi_per_res_out *cdb, struct scsi_per_res_out_parms* param) argument 8163 ctl_pro_preempt_other(struct ctl_lun *lun, union ctl_ha_msg *msg) argument 8233 struct ctl_lun *lun = CTL_LUN(ctsio); local 8615 struct ctl_lun *lun; local 8734 struct ctl_lun *lun = CTL_LUN(ctsio); local 8925 struct ctl_lun *lun = CTL_LUN(io); local 8948 struct ctl_lun *lun = CTL_LUN(ctsio); local 9034 struct ctl_lun *lun = CTL_LUN(ctsio); local 9138 struct ctl_lun *lun, *request_lun = CTL_LUN(ctsio); local 9281 struct ctl_lun *lun = CTL_LUN(ctsio); local 9427 struct ctl_lun *lun = CTL_LUN(ctsio); local 9492 struct ctl_lun *lun = CTL_LUN(ctsio); local 9540 struct ctl_lun *lun = CTL_LUN(ctsio); local 9604 struct ctl_lun *lun = CTL_LUN(ctsio); local 9648 struct ctl_lun *lun = CTL_LUN(ctsio); local 9760 struct ctl_lun *lun = CTL_LUN(ctsio); local 9851 struct ctl_lun *lun = CTL_LUN(ctsio); local 9903 struct ctl_lun *lun = CTL_LUN(ctsio); local 9979 struct ctl_lun *lun = CTL_LUN(ctsio); local 10027 struct ctl_lun *lun = CTL_LUN(ctsio); local 10079 struct ctl_lun *lun = CTL_LUN(ctsio); local 10150 struct ctl_lun *lun = CTL_LUN(ctsio); local 10369 struct ctl_lun *lun = CTL_LUN(ctsio); local 10653 struct ctl_lun *lun = CTL_LUN(ctsio); local 10750 struct ctl_lun *lun = CTL_LUN(ctnio); local 10800 struct ctl_lun *lun = CTL_LUN(ctnio); local 10820 struct ctl_lun *lun = CTL_LUN(ctnio); local 10882 struct ctl_lun *lun = CTL_LUN(ctnio); local 10921 struct ctl_lun *lun = CTL_LUN(ctnio); local 10967 struct ctl_lun *lun = CTL_LUN(ctnio); local 11006 struct ctl_lun *lun = CTL_LUN(ctnio); local 11068 struct ctl_lun *lun = CTL_LUN(ctnio); local 11177 ctl_nvmeio_lun_check(struct ctl_lun *lun, const struct ctl_nvme_cmd_entry *entry, struct ctl_nvmeio *ctnio) argument 11200 ctl_nvme_check_ooa(struct ctl_lun *lun, union ctl_io *pending_io, union ctl_io **starting_io, union ctl_io **aborted_io) argument 11291 struct ctl_lun *lun; local 11688 ctl_check_for_blockage(struct ctl_lun *lun, union ctl_io *pending_io, const uint8_t *serialize_row, union ctl_io *ooa_io) argument 11794 ctl_check_ooa(struct ctl_lun *lun, union ctl_io *pending_io, union ctl_io **starting_io) argument 11852 ctl_scsi_try_unblock_io(struct ctl_lun *lun, union ctl_io *io, bool skip) argument 11948 ctl_nvme_try_unblock_io(struct ctl_lun *lun, union ctl_io *io, bool skip) argument 12000 ctl_try_unblock_io(struct ctl_lun *lun, union ctl_io *io, bool skip) argument 12022 ctl_try_unblock_others(struct ctl_lun *lun, union ctl_io *bio, bool skip) argument 12053 ctl_scsiio_lun_check(struct ctl_lun *lun, const struct ctl_cmd_entry *entry, struct ctl_scsiio *ctsio) argument 12178 struct ctl_lun *lun; local 12260 struct ctl_lun *lun; local 12585 struct ctl_lun *lun; local 12640 ctl_do_lun_reset(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua_type) argument 12679 struct ctl_lun *lun; local 12710 ctl_abort_tasks_lun(struct ctl_lun *lun, uint32_t targ_port, uint32_t init_id, int other_sc) argument 12758 struct ctl_lun *lun; local 12792 struct ctl_lun *lun; local 12853 struct ctl_lun *lun; local 12936 struct ctl_lun *lun; local 12976 struct ctl_lun *lun; local 13063 struct ctl_lun *lun; local 13200 ctl_inject_error(struct ctl_lun *lun, union ctl_io *io) argument 13356 struct ctl_lun *lun; local 13831 struct ctl_lun *lun = CTL_LUN(io); local 14046 struct ctl_lun *lun; local 14197 struct ctl_lun *lun = CTL_LUN(io); local 14281 struct ctl_lun *lun = CTL_LUN(io); local 14393 struct ctl_lun *lun; local [all...] |
H A D | ctl_tpc.h | 37 int tpcl_queue(union ctl_io *io, uint64_t lun);
|
H A D | ctl_tpc_local.c | 270 struct ctl_lun *lun; local 284 STAILQ_FOREACH(lun, &softc->lun_list, links) { 286 ctl_lun_map_to_port(port, lun->lun) == UINT32_MAX) 288 if (lun->lun_devid == NULL) 290 if (scsi_devid_match(lun->lun_devid->data, 291 lun->lun_devid->len, &cscdid->codeset, 293 lunid = lun->lun; 295 *ss = lun 318 tpcl_queue(union ctl_io *io, uint64_t lun) argument [all...] |
H A D | ctl_frontend.c | 314 struct ctl_lun *lun; local 327 STAILQ_FOREACH(lun, &softc->lun_list, links) 328 port->lun_enable(port->targ_lun_arg, lun->lun); 342 STAILQ_FOREACH(lun, &softc->lun_list, links) { 343 if (ctl_lun_map_to_port(port, lun->lun) == UINT32_MAX) 345 mtx_lock(&lun->lun_lock); 346 ctl_est_ua_all(lun, -1, CTL_UA_INQ_CHANGE); 347 mtx_unlock(&lun 357 struct ctl_lun *lun; local [all...] |
H A D | ctl.h | 191 void ctl_est_ua(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua); 192 void ctl_est_ua_port(struct ctl_lun *lun, int port, uint32_t except, 194 void ctl_est_ua_all(struct ctl_lun *lun, uint32_t except, ctl_ua_type ua); 195 void ctl_clr_ua(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua); 196 void ctl_clr_ua_all(struct ctl_lun *lun, uint32_t except, ctl_ua_type ua); 203 void ctl_isc_announce_lun(struct ctl_lun *lun); 206 void ctl_isc_announce_mode(struct ctl_lun *lun, uint32_t initidx,
|
H A D | ctl_tpc.c | 88 uint64_t lun; member in struct:tpc_io 98 uint64_t lun; member in struct:tpc_token 149 struct ctl_lun *lun; member in struct:tpc_list 159 struct ctl_lun *lun; local 164 STAILQ_FOREACH(lun, &softc->lun_list, links) { 165 mtx_lock(&lun->lun_lock); 166 TAILQ_FOREACH_SAFE(list, &lun->tpc_lists, links, tlist) { 170 TAILQ_REMOVE(&lun->tpc_lists, list, links); 173 mtx_unlock(&lun->lun_lock); 220 ctl_tpc_lun_init(struct ctl_lun *lun) argument 227 ctl_tpc_lun_clear(struct ctl_lun *lun, uint32_t initidx) argument 242 ctl_tpc_lun_shutdown(struct ctl_lun *lun) argument 271 struct ctl_lun *lun = CTL_LUN(ctsio); local 502 tpc_find_list(struct ctl_lun *lun, uint32_t list_id, uint32_t init_idx) argument 519 struct ctl_lun *lun = CTL_LUN(ctsio); local 589 struct ctl_lun *lun = CTL_LUN(ctsio); local 649 struct ctl_lun *lun = CTL_LUN(ctsio); local 723 struct ctl_lun *lun = CTL_LUN(ctsio); local 1418 struct ctl_lun *lun = list->lun; local 1664 struct ctl_lun *lun = CTL_LUN(ctsio); local 1818 struct ctl_lun *lun = CTL_LUN(ctsio); local 1970 tpc_create_token(struct ctl_lun *lun, struct ctl_port *port, off_t len, struct scsi_token *token) argument 2021 struct ctl_lun *lun = CTL_LUN(ctsio); local 2184 struct ctl_lun *lun = CTL_LUN(ctsio); local 2337 struct ctl_lun *lun = CTL_LUN(ctsio); local [all...] |
H A D | ctl_error.c | 71 struct ctl_lun *lun; local 73 lun = (struct ctl_lun *)lunptr; 91 if ((lun != NULL) && (lun->MODE_CTRL.rlec & SCP_DSENSE)) 101 if ((lun != NULL) && (lun->MODE_CTRLE.max_sense != 0)) 102 *sense_len = lun->MODE_CTRLE.max_sense; 129 struct ctl_lun *lun; local 137 lun = CTL_LUN(ctsio); 142 lun, 390 ctl_ua_to_ascq(struct ctl_lun *lun, ctl_ua_type ua_to_build, int *asc, int *ascq, ctl_ua_type *ua_to_clear, uint8_t **info) argument 495 ctl_build_qae(struct ctl_lun *lun, uint32_t initidx, uint8_t *resp) argument 529 ctl_build_ua(struct ctl_lun *lun, uint32_t initidx, struct scsi_sense_data *sense, u_int *sense_len, scsi_sense_data_type sense_format) argument [all...] |
H A D | ctl_error.h | 50 void *lun, scsi_sense_data_type sense_format, int current_error, 53 void *lun, scsi_sense_data_type sense_format, int current_error, 62 ctl_ua_type ctl_build_qae(struct ctl_lun *lun, uint32_t initidx, uint8_t *resp); 63 ctl_ua_type ctl_build_ua(struct ctl_lun *lun, uint32_t initidx,
|
/freebsd-current/tools/tools/usbtest/ |
H A D | usb_msc_test.c | 121 static void usb_request_sense(uint8_t lun); 124 do_msc_reset(uint8_t lun) argument 146 usb_request_sense(lun); 151 uint8_t isread, uint8_t isshort, uint8_t lun, uint8_t flags) 167 cbw.bCBWLUN = lun; 179 do_msc_reset(lun); 185 do_msc_reset(lun); 197 do_msc_reset(lun); 203 do_msc_reset(lun); 233 do_msc_reset(lun); 150 do_msc_cmd(uint8_t *pcmd, uint8_t cmdlen, void *pdata, uint32_t datalen, uint8_t isread, uint8_t isshort, uint8_t lun, uint8_t flags) argument 258 do_msc_shorter_cmd(uint8_t lun) argument 287 do_read_10(uint32_t lba, uint32_t len, void *buf, uint8_t lun) argument 314 do_write_10(uint32_t lba, uint32_t len, void *buf, uint8_t lun) argument 344 do_io_test(struct usb_msc_params *p, uint8_t lun, uint32_t lba_max, uint8_t *buffer, uint8_t *reference) argument 477 usb_request_sense(uint8_t lun) argument 508 uint8_t lun; local [all...] |
/freebsd-current/sys/dev/virtio/scsi/ |
H A D | virtio_scsi.h | 38 uint8_t lun[8]; /* Logical Unit Number */ member in struct:virtio_scsi_cmd_req 48 uint8_t lun[8]; /* Logical Unit Number */ member in struct:virtio_scsi_cmd_req_pi 72 uint8_t lun[8]; member in struct:virtio_scsi_ctrl_tmf_req 83 uint8_t lun[8]; member in struct:virtio_scsi_ctrl_an_req 94 uint8_t lun[8]; member in struct:virtio_scsi_event
|
/freebsd-current/sys/dev/isci/ |
H A D | isci_remote_device.c | 260 lun_id_t lun) 262 if (!(remote_device->frozen_lun_mask & (1 << lun))) { 267 remote_device->index, lun); 270 remote_device->frozen_lun_mask |= (1 << lun); 276 lun_id_t lun) 278 if (remote_device->frozen_lun_mask & (1 << lun)) { 281 remote_device->frozen_lun_mask &= ~(1 << lun); 284 remote_device->index, lun); 295 lun_id_t lun; local 297 for (lun 259 isci_remote_device_freeze_lun_queue(struct ISCI_REMOTE_DEVICE *remote_device, lun_id_t lun) argument 275 isci_remote_device_release_lun_queue(struct ISCI_REMOTE_DEVICE *remote_device, lun_id_t lun) argument [all...] |
/freebsd-current/sys/dev/ocs_fc/ |
H A D | ocs_cam.h | 53 lun_id_t lun; member in struct:ocs_tgt_resource_s 85 uint64_t lun; /* target_lun */ member in struct:__anon3907 102 uint64_t lun; /* target_lun */ member in struct:ocs_lun_crn
|
H A D | ocs_scsi.h | 295 extern int32_t ocs_scsi_recv_cmd(ocs_io_t *io, uint64_t lun, uint8_t *cdb, uint32_t cdb_len, uint32_t flags); 296 extern int32_t ocs_scsi_recv_cmd_first_burst(ocs_io_t *io, uint64_t lun, uint8_t *cdb, uint32_t cdb_len, uint32_t flags, 298 extern int32_t ocs_scsi_recv_tmf(ocs_io_t *tmfio, uint64_t lun, ocs_scsi_tmf_cmd_e cmd, ocs_io_t *abortio, 348 extern int32_t ocs_scsi_send_rd_io(ocs_node_t *node, ocs_io_t *io, uint64_t lun, void *cdb, uint32_t cdb_len, 351 extern int32_t ocs_scsi_send_wr_io(ocs_node_t *node, ocs_io_t *io, uint64_t lun, void *cdb, uint32_t cdb_len, 354 extern int32_t ocs_scsi_send_wr_io_first_burst(ocs_node_t *node, ocs_io_t *io, uint64_t lun, void *cdb, uint32_t cdb_len, 358 extern int32_t ocs_scsi_send_tmf(ocs_node_t *node, ocs_io_t *io, ocs_io_t *io_to_abort, uint64_t lun, 360 extern int32_t ocs_scsi_send_nodata_io(ocs_node_t *node, ocs_io_t *io, uint64_t lun, void *cdb, uint32_t cdb_len, 394 uint32_t ocs_get_crn(ocs_node_t *node, uint8_t *crn, uint64_t lun); 396 void ocs_reset_crn(ocs_node_t *node, uint64_t lun); [all...] |
/freebsd-current/tools/tools/vhba/mptest/ |
H A D | vhba_mptest.c | 38 SYSCTL_INT(_debug, OID_AUTO, vhba_stop_lun, CTLFLAG_RW, &vhba_stop_lun, 0, "stop lun bitmap"); 39 SYSCTL_INT(_debug, OID_AUTO, vhba_start_lun, CTLFLAG_RW, &vhba_start_lun, 0, "start lun bitmap"); 411 int lun; local 415 lun = (vhba_stop_lun & 1)? 0 : 1; 416 if (lun == 0 || lun == 1) { 417 if (vhbas->luns[lun]) { 420 if (xpt_create_path(&tp, xpt_periph, cam_sim_path(vhba->sim), 0, lun) != CAM_REQ_CMP) { 423 vhbas->luns[lun] = 0; 427 vhbas->luns[lun] [all...] |
/freebsd-current/sys/cam/scsi/ |
H A D | scsi_message.h | 46 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
|
/freebsd-current/sys/dev/pms/RefTisa/tisa/sassata/common/ |
H A D | tdmisc.c | 665 * \param lun: Pointer to the SCSI-3 LUN information 692 tiLUN_t *lun, 941 if (lun == agNULL) 943 osti_memset(agSSPTaskMgntRequest->lun, 0, 8); 947 osti_memcpy(agSSPTaskMgntRequest->lun, lun->lun, 8); 1085 if ( (lun->lun[0] | lun 688 tiINITaskManagement( tiRoot_t *tiRoot, tiDeviceHandle_t *tiDeviceHandle, bit32 task, tiLUN_t *lun, tiIORequest_t *taskTag, tiIORequest_t *currentTaskTag ) argument [all...] |