/freebsd-11-stable/tools/regression/iscsi/ |
H A D | ctl.conf | 13 lun 0 { 17 lun 1 { 26 lun 0 { 30 lun 1 {
|
/freebsd-11-stable/sys/dev/mps/ |
H A D | mps_sas.h | 115 #define MPS_SET_LUN(lun, ccblun) \ 116 mpssas_set_lun(lun, ccblun) 119 mpssas_set_lun(uint8_t *lun, u_int ccblun) argument 123 newlun = (uint64_t *)lun; 127 lun[1] = ccblun; 130 scsi_ulto2b(ccblun, lun); 131 lun[0] |= 0x40; 134 scsi_ulto3b(ccblun, &lun[1]); 136 lun[0] = 0xc0; 138 lun[ [all...] |
/freebsd-11-stable/sys/cam/ctl/ |
H A D | ctl.c | 459 static void ctl_ioctl_fill_ooa(struct ctl_lun *lun, uint32_t *cur_fill_num, 464 static int ctl_enable_lun(struct ctl_lun *lun); 465 static int ctl_disable_lun(struct ctl_lun *lun); 466 static int ctl_free_lun(struct ctl_lun *lun); 469 static int ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, 475 static void ctl_pro_preempt_other(struct ctl_lun *lun, 495 static ctl_action ctl_check_for_blockage(struct ctl_lun *lun, 497 static ctl_action ctl_check_ooa(struct ctl_lun *lun, union ctl_io *pending_io, 499 static void ctl_try_unblock_io(struct ctl_lun *lun, union ctl_io *io, 501 static void ctl_try_unblock_others(struct ctl_lun *lun, unio 643 struct ctl_lun *lun = CTL_LUN(io); local 823 ctl_isc_announce_lun(struct ctl_lun *lun) argument 985 ctl_isc_announce_mode(struct ctl_lun *lun, uint32_t initidx, uint8_t page, uint8_t subpage) argument 1025 struct ctl_lun *lun; local 1055 struct ctl_lun *lun; local 1094 struct ctl_lun *lun; local 1124 struct ctl_lun *lun; local 1197 struct ctl_lun *lun; local 1366 struct ctl_lun *lun; local 1723 ctl_est_ua(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua) argument 1738 ctl_est_ua_port(struct ctl_lun *lun, int port, uint32_t except, ctl_ua_type ua) argument 1753 ctl_est_ua_all(struct ctl_lun *lun, uint32_t except, ctl_ua_type ua) argument 1764 ctl_clr_ua(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua) argument 1779 ctl_clr_ua_all(struct ctl_lun *lun, uint32_t except, ctl_ua_type ua) argument 1800 struct ctl_lun *lun; local 1814 struct ctl_lun *lun; local 2264 struct ctl_lun *lun; local 2384 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 2625 struct ctl_lun *lun; local 3569 struct ctl_lun *lun; local 3598 struct ctl_lun *lun; local 3687 uint8_t lun[8]; local 3804 ctl_get_prkey(struct ctl_lun *lun, uint32_t residx) argument 3815 ctl_clr_prkey(struct ctl_lun *lun, uint32_t residx) argument 3826 ctl_alloc_prkey(struct ctl_lun *lun, uint32_t residx) argument 3845 ctl_set_prkey(struct ctl_lun *lun, uint32_t residx, uint64_t key) argument 4007 ctl_init_page_index(struct ctl_lun *lun) argument 4419 ctl_init_log_page_index(struct ctl_lun *lun) argument 4509 struct ctl_lun *nlun, *lun; local 4756 ctl_free_lun(struct ctl_lun *lun) argument 4801 ctl_enable_lun(struct ctl_lun *lun) argument 4844 ctl_disable_lun(struct ctl_lun *lun) argument 4891 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4902 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4913 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4924 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4952 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4963 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4976 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 4996 struct ctl_lun *lun; local 5023 struct ctl_lun *lun = (struct ctl_lun *)be_lun->ctl_lun; local 5211 struct ctl_lun *lun = CTL_LUN(ctsio); local 5248 struct ctl_lun *lun = CTL_LUN(ctsio); local 5288 struct ctl_lun *lun = CTL_LUN(ctsio); local 5342 struct ctl_lun *lun = CTL_LUN(ctsio); local 5382 struct ctl_lun *lun = CTL_LUN(ctsio); local 5527 struct ctl_lun *lun = CTL_LUN(ctsio); local 5601 struct ctl_lun *lun = CTL_LUN(ctsio); local 5652 struct ctl_lun *lun = CTL_LUN(ctsio); local 5763 struct ctl_lun *lun = CTL_LUN(ctsio); local 5864 struct ctl_lun *lun = CTL_LUN(ctsio); local 5894 struct ctl_lun *lun = arg; local 5918 struct ctl_lun *lun = CTL_LUN(ctsio); local 5960 struct ctl_lun *lun = CTL_LUN(io); local 6184 struct ctl_lun *lun = CTL_LUN(ctsio); local 6332 struct ctl_lun *lun = CTL_LUN(ctsio); local 6656 struct ctl_lun *lun = CTL_LUN(ctsio); local 6724 struct ctl_lun *lun = CTL_LUN(ctsio); local 6773 struct ctl_lun *lun = CTL_LUN(ctsio); local 6791 struct ctl_lun *lun = CTL_LUN(ctsio); local 6868 struct ctl_lun *lun = CTL_LUN(ctsio); local 6922 struct ctl_lun *lun = CTL_LUN(ctsio); local 6972 struct ctl_lun *lun = CTL_LUN(ctsio); local 7078 struct ctl_lun *lun = CTL_LUN(ctsio); local 7246 struct ctl_lun *lun = CTL_LUN(ctsio); local 7494 struct ctl_lun *lun = CTL_LUN(ctsio); local 7731 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 7988 ctl_pro_preempt_other(struct ctl_lun *lun, union ctl_ha_msg *msg) argument 8059 struct ctl_lun *lun = CTL_LUN(ctsio); local 8443 struct ctl_lun *lun; local 8562 struct ctl_lun *lun = CTL_LUN(ctsio); local 8753 struct ctl_lun *lun = CTL_LUN(io); local 8774 struct ctl_lun *lun = CTL_LUN(ctsio); local 8860 struct ctl_lun *lun = CTL_LUN(ctsio); local 8964 struct ctl_lun *lun, *request_lun = CTL_LUN(ctsio); local 9107 struct ctl_lun *lun = CTL_LUN(ctsio); local 9253 struct ctl_lun *lun = CTL_LUN(ctsio); local 9316 struct ctl_lun *lun = CTL_LUN(ctsio); local 9365 struct ctl_lun *lun = CTL_LUN(ctsio); local 9429 struct ctl_lun *lun = CTL_LUN(ctsio); local 9473 struct ctl_lun *lun = CTL_LUN(ctsio); local 9585 struct ctl_lun *lun = CTL_LUN(ctsio); local 9676 struct ctl_lun *lun = CTL_LUN(ctsio); local 9742 struct ctl_lun *lun = CTL_LUN(ctsio); local 9790 struct ctl_lun *lun = CTL_LUN(ctsio); local 9841 struct ctl_lun *lun = CTL_LUN(ctsio); local 9909 struct ctl_lun *lun = CTL_LUN(ctsio); local 10127 struct ctl_lun *lun = CTL_LUN(ctsio); local 10413 struct ctl_lun *lun = CTL_LUN(ctsio); local 10726 ctl_check_for_blockage(struct ctl_lun *lun, union ctl_io *pending_io, union ctl_io *ooa_io) argument 10869 ctl_check_ooa(struct ctl_lun *lun, union ctl_io *pending_io, union ctl_io **starting_io) argument 10905 ctl_try_unblock_io(struct ctl_lun *lun, union ctl_io *io, bool skip) argument 11013 ctl_try_unblock_others(struct ctl_lun *lun, union ctl_io *bio, bool skip) argument 11044 ctl_scsiio_lun_check(struct ctl_lun *lun, const struct ctl_cmd_entry *entry, struct ctl_scsiio *ctsio) argument 11168 struct ctl_lun *lun; local 11249 struct ctl_lun *lun; local 11579 struct ctl_lun *lun; local 11634 ctl_do_lun_reset(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua_type) argument 11674 struct ctl_lun *lun; local 11705 ctl_abort_tasks_lun(struct ctl_lun *lun, uint32_t targ_port, uint32_t init_id, int other_sc) argument 11752 struct ctl_lun *lun; local 11786 struct ctl_lun *lun; local 11847 struct ctl_lun *lun; local 11929 struct ctl_lun *lun; local 11968 struct ctl_lun *lun; local 12055 struct ctl_lun *lun; local 12191 ctl_inject_error(struct ctl_lun *lun, union ctl_io *io) argument 12319 struct ctl_lun *lun; local 12773 struct ctl_lun *lun = CTL_LUN(io); local 13003 struct ctl_lun *lun; local 13095 struct ctl_lun *lun = CTL_LUN(io);; local 13146 struct ctl_lun *lun = CTL_LUN(io); local 13237 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 | 274 struct ctl_lun *lun; local 288 STAILQ_FOREACH(lun, &softc->lun_list, links) { 290 ctl_lun_map_to_port(port, lun->lun) == UINT32_MAX) 292 if (lun->lun_devid == NULL) 294 if (scsi_devid_match(lun->lun_devid->data, 295 lun->lun_devid->len, &cscdid->codeset, 297 lunid = lun->lun; 298 if (ss && lun 322 tpcl_queue(union ctl_io *io, uint64_t lun) argument [all...] |
H A D | ctl_error.c | 72 struct ctl_lun *lun; local 74 lun = (struct ctl_lun *)lunptr; 92 if ((lun != NULL) && (lun->MODE_CTRL.rlec & SCP_DSENSE)) 102 if ((lun != NULL) && (lun->MODE_CTRLE.max_sense != 0)) 103 *sense_len = lun->MODE_CTRLE.max_sense; 130 struct ctl_lun *lun; local 138 lun = CTL_LUN(ctsio); 143 lun, 391 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 496 ctl_build_qae(struct ctl_lun *lun, uint32_t initidx, uint8_t *resp) argument 530 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_frontend.c | 313 struct ctl_lun *lun; local 326 STAILQ_FOREACH(lun, &softc->lun_list, links) 327 port->lun_enable(port->targ_lun_arg, lun->lun); 341 STAILQ_FOREACH(lun, &softc->lun_list, links) { 342 if (ctl_lun_map_to_port(port, lun->lun) == UINT32_MAX) 344 mtx_lock(&lun->lun_lock); 345 ctl_est_ua_all(lun, -1, CTL_UA_INQ_CHANGE); 346 mtx_unlock(&lun 356 struct ctl_lun *lun; local [all...] |
H A D | ctl.h | 179 void ctl_est_ua(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua); 180 void ctl_est_ua_port(struct ctl_lun *lun, int port, uint32_t except, 182 void ctl_est_ua_all(struct ctl_lun *lun, uint32_t except, ctl_ua_type ua); 183 void ctl_clr_ua(struct ctl_lun *lun, uint32_t initidx, ctl_ua_type ua); 184 void ctl_clr_ua_all(struct ctl_lun *lun, uint32_t except, ctl_ua_type ua); 191 void ctl_isc_announce_lun(struct ctl_lun *lun); 194 void ctl_isc_announce_mode(struct ctl_lun *lun, uint32_t initidx,
|
H A D | ctl_tpc.c | 87 uint64_t lun; member in struct:tpc_io 97 uint64_t lun; member in struct:tpc_token 148 struct ctl_lun *lun; member in struct:tpc_list 158 struct ctl_lun *lun; local 163 STAILQ_FOREACH(lun, &softc->lun_list, links) { 164 mtx_lock(&lun->lun_lock); 165 TAILQ_FOREACH_SAFE(list, &lun->tpc_lists, links, tlist) { 169 TAILQ_REMOVE(&lun->tpc_lists, list, links); 172 mtx_unlock(&lun->lun_lock); 218 ctl_tpc_lun_init(struct ctl_lun *lun) argument 225 ctl_tpc_lun_clear(struct ctl_lun *lun, uint32_t initidx) argument 240 ctl_tpc_lun_shutdown(struct ctl_lun *lun) argument 269 struct ctl_lun *lun = CTL_LUN(ctsio); local 500 tpc_find_list(struct ctl_lun *lun, uint32_t list_id, uint32_t init_idx) argument 517 struct ctl_lun *lun = CTL_LUN(ctsio); local 587 struct ctl_lun *lun = CTL_LUN(ctsio); local 647 struct ctl_lun *lun = CTL_LUN(ctsio); local 721 struct ctl_lun *lun = CTL_LUN(ctsio); local 1416 struct ctl_lun *lun = list->lun; local 1662 struct ctl_lun *lun = CTL_LUN(ctsio); local 1816 struct ctl_lun *lun = CTL_LUN(ctsio); local 1968 tpc_create_token(struct ctl_lun *lun, struct ctl_port *port, off_t len, struct scsi_token *token) argument 2019 struct ctl_lun *lun = CTL_LUN(ctsio); local 2182 struct ctl_lun *lun = CTL_LUN(ctsio); local 2335 struct ctl_lun *lun = CTL_LUN(ctsio); local [all...] |
H A D | ctl_error.h | 49 void *lun, scsi_sense_data_type sense_format, int current_error, 52 void *lun, scsi_sense_data_type sense_format, int current_error, 61 ctl_ua_type ctl_build_qae(struct ctl_lun *lun, uint32_t initidx, uint8_t *resp); 62 ctl_ua_type ctl_build_ua(struct ctl_lun *lun, uint32_t initidx,
|
/freebsd-11-stable/sys/dev/mpr/ |
H A D | mpr_sas.h | 121 #define MPR_SET_LUN(lun, ccblun) \ 122 mprsas_set_lun(lun, ccblun) 125 mprsas_set_lun(uint8_t *lun, u_int ccblun) argument 129 newlun = (uint64_t *)lun; 133 lun[1] = ccblun; 136 scsi_ulto2b(ccblun, lun); 137 lun[0] |= 0x40; 140 scsi_ulto3b(ccblun, &lun[1]); 142 lun[0] = 0xc0; 144 lun[ [all...] |
/freebsd-11-stable/usr.sbin/ctld/ |
H A D | ctld.h | 166 struct lun { struct 167 TAILQ_ENTRY(lun) l_next; 186 struct lun *t_luns[MAX_LUNS]; 203 TAILQ_HEAD(, lun) conf_luns; 384 struct lun *lun_new(struct conf *conf, const char *name); 385 void lun_delete(struct lun *lun); 386 struct lun *lun_find(const struct conf *conf, const char *name); 387 void lun_set_backend(struct lun *lun, cons [all...] |
H A D | parse.y | 53 static struct lun *lun = NULL; 104 lun 466 lun: LUN lun_name label 469 lun = NULL; 475 lun = lun_new(conf, $1); 477 if (lun == NULL) 811 lun = NULL; 832 ret = asprintf(&name, "%s,lun,%ju", target->t_name, tmp); 835 lun [all...] |
H A D | kernel.c | 175 if (strcmp(name, "lun") == 0) { 177 log_errx(1, "%s: improper lun element nesting", 250 } else if (strcmp(name, "lun") == 0) { 408 struct lun *cl; 412 struct cctl_lun *lun; local 603 STAILQ_FOREACH(lun, &devlist.lun_list, links) { 606 if (lun->ctld_name == NULL) { 607 log_debugx("CTL lun %ju wasn't managed by ctld; " 608 "ignoring", (uintmax_t)lun->lun_id); 612 cl = lun_find(conf, lun 667 kernel_lun_add(struct lun *lun) argument 775 kernel_lun_modify(struct lun *lun) argument 836 kernel_lun_remove(struct lun *lun) argument [all...] |
H A D | ctld.c | 114 struct lun *lun, *ltmp; local 123 TAILQ_FOREACH_SAFE(lun, &conf->conf_luns, l_next, ltmp) 124 lun_delete(lun); 1404 struct lun * 1407 struct lun *lun; local 1409 lun = lun_find(conf, name); 1410 if (lun != NULL) { 1411 log_warnx("duplicated lun \" 1428 lun_delete(struct lun *lun) argument 1456 struct lun *lun; local 1467 lun_set_backend(struct lun *lun, const char *value) argument 1474 lun_set_blocksize(struct lun *lun, size_t value) argument 1481 lun_set_device_type(struct lun *lun, uint8_t value) argument 1488 lun_set_device_id(struct lun *lun, const char *value) argument 1495 lun_set_path(struct lun *lun, const char *value) argument 1502 lun_set_scsiname(struct lun *lun, const char *value) argument 1509 lun_set_serial(struct lun *lun, const char *value) argument 1516 lun_set_size(struct lun *lun, size_t value) argument 1523 lun_set_ctl_lun(struct lun *lun, uint32_t value) argument 1657 conf_verify_lun(struct lun *lun) argument 1719 struct lun *lun; local [all...] |
H A D | uclparse.c | 187 struct lun *lun; local 200 asprintf(&name, "%s,lun,%ju", target->t_name, tmp); 201 lun = lun_new(conf, name); 202 if (lun == NULL) 205 lun_set_scsiname(lun, name); 206 target->t_luns[tmp] = lun; 215 log_warnx("lun section in target \"%s\" is missing " 227 log_warnx("lun section in target \"%s\" is missing " 232 lun 808 struct lun *lun; local [all...] |
H A D | token.l | 60 ctl-lun { return CTL_LUN; } 71 lun { return LUN; }
|
/freebsd-11-stable/tools/tools/usbtest/ |
H A D | usb_msc_test.c | 122 static void usb_request_sense(uint8_t lun); 125 do_msc_reset(uint8_t lun) argument 147 usb_request_sense(lun); 152 uint8_t isread, uint8_t isshort, uint8_t lun, uint8_t flags) 168 cbw.bCBWLUN = lun; 180 do_msc_reset(lun); 186 do_msc_reset(lun); 198 do_msc_reset(lun); 204 do_msc_reset(lun); 234 do_msc_reset(lun); 151 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 259 do_msc_shorter_cmd(uint8_t lun) argument 288 do_read_10(uint32_t lba, uint32_t len, void *buf, uint8_t lun) argument 315 do_write_10(uint32_t lba, uint32_t len, void *buf, uint8_t lun) argument 345 do_io_test(struct usb_msc_params *p, uint8_t lun, uint32_t lba_max, uint8_t *buffer, uint8_t *reference) argument 478 usb_request_sense(uint8_t lun) argument 509 uint8_t lun; local [all...] |
/freebsd-11-stable/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-11-stable/sys/dev/virtio/scsi/ |
H A D | virtio_scsi.h | 44 uint8_t lun[8]; /* Logical Unit Number */ member in struct:virtio_scsi_cmd_req 66 uint8_t lun[8]; member in struct:virtio_scsi_ctrl_tmf_req 77 uint8_t lun[8]; member in struct:virtio_scsi_ctrl_an_req 88 uint8_t lun[8]; member in struct:virtio_scsi_event
|
/freebsd-11-stable/sys/dev/ocs_fc/ |
H A D | ocs_cam.h | 56 lun_id_t lun; member in struct:ocs_tgt_resource_s 88 uint64_t lun; /* target_lun */ member in struct:__anon7524 105 uint64_t lun; /* target_lun */ member in struct:ocs_lun_crn
|
/freebsd-11-stable/tools/tools/vhba/mptest/ |
H A D | vhba_mptest.c | 39 SYSCTL_INT(_debug, OID_AUTO, vhba_stop_lun, CTLFLAG_RW, &vhba_stop_lun, 0, "stop lun bitmap"); 40 SYSCTL_INT(_debug, OID_AUTO, vhba_start_lun, CTLFLAG_RW, &vhba_start_lun, 0, "start lun bitmap"); 412 int lun; local 416 lun = (vhba_stop_lun & 1)? 0 : 1; 417 if (lun == 0 || lun == 1) { 418 if (vhbas->luns[lun]) { 421 if (xpt_create_path(&tp, xpt_periph, cam_sim_path(vhba->sim), 0, lun) != CAM_REQ_CMP) { 424 vhbas->luns[lun] = 0; 428 vhbas->luns[lun] [all...] |
/freebsd-11-stable/sys/cam/scsi/ |
H A D | scsi_message.h | 47 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
|
/freebsd-11-stable/sys/sys/ |
H A D | ipmi.h | 114 unsigned char lun; member in struct:ipmi_system_interface_addr 121 unsigned char lun; member in struct:ipmi_ipmb_addr
|
/freebsd-11-stable/sys/dev/pms/RefTisa/tisa/sassata/common/ |
H A D | tdmisc.c | 666 * \param lun: Pointer to the SCSI-3 LUN information 693 tiLUN_t *lun, 942 if (lun == agNULL) 944 osti_memset(agSSPTaskMgntRequest->lun, 0, 8); 948 osti_memcpy(agSSPTaskMgntRequest->lun, lun->lun, 8); 1086 if ( (lun->lun[0] | lun 689 tiINITaskManagement( tiRoot_t *tiRoot, tiDeviceHandle_t *tiDeviceHandle, bit32 task, tiLUN_t *lun, tiIORequest_t *taskTag, tiIORequest_t *currentTaskTag ) argument [all...] |