Lines Matching defs:ctl_be_lun

186 	struct ctl_be_lun ctl_be_lun;
1685 struct ctl_be_lun *ctl_be_lun;
1689 ctl_be_lun = (struct ctl_be_lun *)io->io_hdr.ctl_private[
1691 be_lun = (struct ctl_be_block_lun *)ctl_be_lun->be_lun;
1829 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "pblocksize");
1832 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "pblockoffset");
1843 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "ublocksize");
1846 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "ublockoffset");
2005 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "pblocksize");
2008 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "pblockoffset");
2019 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "ublocksize");
2022 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "ublockoffset");
2047 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "unmap");
2225 ctl_init_opts(&be_lun->ctl_be_lun.options,
2238 be_lun->ctl_be_lun.lun_type = params->device_type;
2240 be_lun->ctl_be_lun.lun_type = T_DIRECT;
2242 if (be_lun->ctl_be_lun.lun_type == T_DIRECT) {
2243 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "file");
2269 be_lun->ctl_be_lun.maxlba = 0;
2281 value = ctl_get_opt(&be_lun->ctl_be_lun.options, "num_threads");
2300 be_lun->ctl_be_lun.flags = CTL_LUN_FLAG_PRIMARY;
2302 be_lun->ctl_be_lun.flags |= CTL_LUN_FLAG_OFFLINE;
2304 be_lun->ctl_be_lun.flags |= CTL_LUN_FLAG_UNMAP;
2306 be_lun->ctl_be_lun.flags |= CTL_LUN_FLAG_SERSEQ_READ;
2307 be_lun->ctl_be_lun.be_lun = be_lun;
2308 be_lun->ctl_be_lun.maxlba = (be_lun->size_blocks == 0) ?
2310 be_lun->ctl_be_lun.blocksize = be_lun->blocksize;
2311 be_lun->ctl_be_lun.pblockexp = be_lun->pblockexp;
2312 be_lun->ctl_be_lun.pblockoff = be_lun->pblockoff;
2313 be_lun->ctl_be_lun.ublockexp = be_lun->ublockexp;
2314 be_lun->ctl_be_lun.ublockoff = be_lun->ublockoff;
2315 be_lun->ctl_be_lun.atomicblock = be_lun->atomicblock;
2316 be_lun->ctl_be_lun.opttxferlen = be_lun->opttxferlen;
2321 be_lun->ctl_be_lun.req_lun_id = params->req_lun_id;
2322 be_lun->ctl_be_lun.flags |= CTL_LUN_FLAG_ID_REQ;
2324 be_lun->ctl_be_lun.req_lun_id = 0;
2326 be_lun->ctl_be_lun.lun_shutdown = ctl_be_block_lun_shutdown;
2327 be_lun->ctl_be_lun.lun_config_status =
2329 be_lun->ctl_be_lun.be = &ctl_be_block_driver;
2334 strncpy((char *)be_lun->ctl_be_lun.serial_num, tmpstr,
2335 MIN(sizeof(be_lun->ctl_be_lun.serial_num),
2342 strncpy((char *)be_lun->ctl_be_lun.serial_num,
2344 MIN(sizeof(be_lun->ctl_be_lun.serial_num),
2349 strncpy((char *)be_lun->ctl_be_lun.device_id, tmpstr,
2350 MIN(sizeof(be_lun->ctl_be_lun.device_id),
2357 strncpy((char *)be_lun->ctl_be_lun.device_id,
2359 MIN(sizeof(be_lun->ctl_be_lun.device_id),
2405 retval = ctl_add_lun(&be_lun->ctl_be_lun);
2443 params->req_lun_id = be_lun->ctl_be_lun.lun_id;
2451 be_lun->ctl_be_lun.lun_type
2467 ctl_free_opts(&be_lun->ctl_be_lun.options);
2489 if (be_lun->ctl_be_lun.lun_id == params->lun_id)
2501 retval = ctl_disable_lun(&be_lun->ctl_be_lun);
2511 retval = ctl_invalidate_lun(&be_lun->ctl_be_lun);
2554 ctl_free_opts(&be_lun->ctl_be_lun.options);
2655 if (be_lun->ctl_be_lun.lun_id == params->lun_id)
2688 be_lun->ctl_be_lun.flags |= CTL_LUN_FLAG_UNMAP;
2689 be_lun->ctl_be_lun.maxlba = (be_lun->size_blocks == 0) ?
2691 be_lun->ctl_be_lun.blocksize = be_lun->blocksize;
2692 be_lun->ctl_be_lun.pblockexp = be_lun->pblockexp;
2693 be_lun->ctl_be_lun.pblockoff = be_lun->pblockoff;
2694 be_lun->ctl_be_lun.ublockexp = be_lun->ublockexp;
2695 be_lun->ctl_be_lun.ublockoff = be_lun->ublockoff;
2696 be_lun->ctl_be_lun.atomicblock = be_lun->atomicblock;
2697 be_lun->ctl_be_lun.opttxferlen = be_lun->opttxferlen;
2698 ctl_lun_capacity_changed(&be_lun->ctl_be_lun);
2700 ctl_lun_online(&be_lun->ctl_be_lun);
2753 if (ctl_enable_lun(&lun->ctl_be_lun) != 0) {
2755 if (ctl_invalidate_lun(&lun->ctl_be_lun) != 0) {
2777 struct ctl_be_lun *ctl_be_lun;
2784 ctl_be_lun = (struct ctl_be_lun *)io->io_hdr.ctl_private[
2786 be_lun = (struct ctl_be_block_lun *)ctl_be_lun->be_lun;
2814 retval = ctl_start_lun(ctl_be_lun);
2816 retval = ctl_stop_lun(ctl_be_lun);
2824 retval = ctl_lun_offline(ctl_be_lun);
2858 struct ctl_be_lun *ctl_be_lun;
2863 ctl_be_lun = (struct ctl_be_lun *)io->io_hdr.ctl_private[
2865 be_lun = (struct ctl_be_block_lun *)ctl_be_lun->be_lun;