/freebsd-10.1-release/sys/cam/ctl/ |
H A D | ctl_backend_block.c | 148 typedef void (*cbb_dispatch_t)(struct ctl_be_block_lun *be_lun, 236 static void ctl_be_block_flush_file(struct ctl_be_block_lun *be_lun, 238 static void ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun, 240 static void ctl_be_block_flush_dev(struct ctl_be_block_lun *be_lun, 242 static void ctl_be_block_unmap_dev(struct ctl_be_block_lun *be_lun, 244 static void ctl_be_block_dispatch_dev(struct ctl_be_block_lun *be_lun, 246 static void ctl_be_block_cw_dispatch(struct ctl_be_block_lun *be_lun, 248 static void ctl_be_block_dispatch(struct ctl_be_block_lun *be_lun, 254 static int ctl_be_block_open_file(struct ctl_be_block_lun *be_lun, 256 static int ctl_be_block_open_dev(struct ctl_be_block_lun *be_lun, 356 struct ctl_be_block_lun *be_lun; local 458 struct ctl_be_block_lun *be_lun; local 537 ctl_be_block_flush_file(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument 591 ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument 744 ctl_be_block_dispatch_zvol(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument 826 ctl_be_block_flush_dev(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument 867 ctl_be_block_unmap_dev_range(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio, uint64_t off, uint64_t len, int last) argument 903 ctl_be_block_unmap_dev(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument 941 ctl_be_block_dispatch_dev(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument 1029 ctl_be_block_cw_dispatch_ws(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument 1139 ctl_be_block_cw_dispatch_unmap(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument 1210 ctl_be_block_cw_dispatch(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument 1255 struct ctl_be_block_lun *be_lun; local 1284 ctl_be_block_dispatch(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument 1417 struct ctl_be_block_lun *be_lun; local 1496 struct ctl_be_block_lun *be_lun; local 1571 ctl_be_block_open_file(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument 1654 ctl_be_block_open_dev(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument 1785 ctl_be_block_close(struct ctl_be_block_lun *be_lun) argument 1834 ctl_be_block_open(struct ctl_be_block_softc *softc, struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument 1927 struct ctl_be_block_lun *be_lun; local 2207 struct ctl_be_block_lun *be_lun; local 2301 ctl_be_block_modify_file(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument 2330 ctl_be_block_modify_dev(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument 2380 struct ctl_be_block_lun *be_lun; local 2448 ctl_be_block_lun_shutdown(void *be_lun) argument 2466 ctl_be_block_lun_config_status(void *be_lun, ctl_lun_config_status status) argument 2507 struct ctl_be_block_lun *be_lun; local 2593 ctl_be_block_lun_info(void *be_lun, struct sbuf *sb) argument [all...] |
H A D | ctl_backend.h | 121 typedef void (*be_callback_t)(void *be_lun); 122 typedef void (*be_lun_config_t)(void *be_lun, 133 * The be_lun field is the backend driver's own context that will get 186 void *be_lun; /* passed to CTL */ member in struct:ctl_be_lun 214 typedef int (*be_luninfo_t)(void *be_lun, struct sbuf *sb); 247 int ctl_add_lun(struct ctl_be_lun *be_lun); 248 int ctl_enable_lun(struct ctl_be_lun *be_lun); 255 int ctl_disable_lun(struct ctl_be_lun *be_lun); 256 int ctl_invalidate_lun(struct ctl_be_lun *be_lun); 263 int ctl_start_lun(struct ctl_be_lun *be_lun); [all...] |
H A D | ctl_backend_ramdisk.c | 119 static void ctl_backend_ramdisk_lun_shutdown(void *be_lun); 120 static void ctl_backend_ramdisk_lun_config_status(void *be_lun, 223 struct ctl_be_ramdisk_lun *be_lun; local 231 be_lun = (struct ctl_be_ramdisk_lun *)ctl_be_lun->be_lun; 245 mtx_lock(&be_lun->queue_lock); 246 STAILQ_INSERT_TAIL(&be_lun->cont_queue, 248 mtx_unlock(&be_lun->queue_lock); 249 taskqueue_enqueue(be_lun->io_taskqueue, 250 &be_lun 347 struct ctl_be_ramdisk_lun *be_lun; local 425 struct ctl_be_ramdisk_lun *be_lun; local 527 struct ctl_be_ramdisk_lun *be_lun; local 737 struct ctl_be_ramdisk_lun *be_lun; local 801 ctl_backend_ramdisk_lun_shutdown(void *be_lun) argument 831 ctl_backend_ramdisk_lun_config_status(void *be_lun, ctl_lun_config_status status) argument 914 struct ctl_be_ramdisk_lun *be_lun; local [all...] |
H A D | ctl_tpc_local.c | 340 if (ss && lun->be_lun) 341 *ss = lun->be_lun->blocksize; 357 if (ss && lun->be_lun) 358 *ss = lun->be_lun->blocksize;
|
H A D | ctl.c | 363 struct ctl_be_lun *be_lun, struct ctl_id target_id); 365 static void ctl_create_lun(struct ctl_be_lun *be_lun); 3139 lun->be_lun->lun_type); 3152 (lun->be_lun->maxlba > 0) ? 3153 lun->be_lun->maxlba + 1 : 0); 3159 lun->be_lun->blocksize); 3170 lun->be_lun->serial_num); 3185 retval = ctl_sbuf_printf_esc(sb,lun->be_lun->device_id); 3196 retval = lun->backend->lun_info(lun->be_lun->be_lun, s 4431 ctl_alloc_lun(struct ctl_softc *ctl_softc, struct ctl_lun *ctl_lun, struct ctl_be_lun *const be_lun, struct ctl_id target_id) argument 4772 ctl_create_lun(struct ctl_be_lun *be_lun) argument 4785 ctl_add_lun(struct ctl_be_lun *be_lun) argument 4798 ctl_enable_lun(struct ctl_be_lun *be_lun) argument 4854 ctl_disable_lun(struct ctl_be_lun *be_lun) argument 4901 ctl_start_lun(struct ctl_be_lun *be_lun) argument 4918 ctl_stop_lun(struct ctl_be_lun *be_lun) argument 4935 ctl_lun_offline(struct ctl_be_lun *be_lun) argument 4952 ctl_lun_online(struct ctl_be_lun *be_lun) argument 4969 ctl_invalidate_lun(struct ctl_be_lun *be_lun) argument 5009 ctl_lun_inoperable(struct ctl_be_lun *be_lun) argument 5025 ctl_lun_operable(struct ctl_be_lun *be_lun) argument 5041 ctl_lun_power_lock(struct ctl_be_lun *be_lun, struct ctl_nexus *nexus, int lock) argument 5130 ctl_lun_capacity_changed(struct ctl_be_lun *be_lun) argument 14006 struct ctl_be_lun *be_lun; local [all...] |
H A D | ctl_tpc.c | 298 lun->be_lun->lun_type; 793 if (ss && list->lun->be_lun) 794 *ss = list->lun->be_lun->blocksize; 1140 dstblock = list->lun->be_lun->blocksize; 1275 dstblock = list->lun->be_lun->blocksize; 1629 value = ctl_get_opt(&lun->be_lun->options, "insecure_tpc"); 1752 value = ctl_get_opt(&lun->be_lun->options, "insecure_tpc"); 1936 token->blocksize = lun->be_lun->blocksize; 1958 list->curbytes = (off_t)list->cursectors * lun->be_lun->blocksize;
|
H A D | ctl_private.h | 380 struct ctl_be_lun *be_lun; member in struct:ctl_lun
|
H A D | ctl_frontend_iscsi.c | 2326 target = ctl_get_opt(&control_softc->ctl_luns[lun_id]->be_lun->options, 2328 lun = ctl_get_opt(&control_softc->ctl_luns[lun_id]->be_lun->options,
|