Searched refs:be_lun (Results 1 - 7 of 7) sorted by relevance

/freebsd-11-stable/sys/cam/ctl/
H A Dctl_backend_ramdisk.c145 static uint64_t ctl_backend_ramdisk_lun_attr(void *be_lun, const char *attrname);
154 static void ctl_backend_ramdisk_lun_shutdown(void *be_lun);
211 ctl_backend_ramdisk_getpage(struct ctl_be_ramdisk_lun *be_lun, off_t pn, argument
218 if (be_lun->cap_bytes == 0) {
221 return (be_lun->zero_page);
223 return ((uint8_t *)be_lun->pages);
231 sx_xlock(&be_lun->page_lock);
232 pp = &be_lun->pages;
233 for (s = (be_lun->indir - 1) * PPPS; s >= 0; s -= PPPS) {
242 if (*pp == P_UNMAPPED && be_lun
273 ctl_backend_ramdisk_unmappage(struct ctl_be_ramdisk_lun *be_lun, off_t pn) argument
303 ctl_backend_ramdisk_anchorpage(struct ctl_be_ramdisk_lun *be_lun, off_t pn) argument
366 struct ctl_be_ramdisk_lun *be_lun = cbe_lun->be_lun; local
404 struct ctl_be_ramdisk_lun *be_lun = cbe_lun->be_lun; local
480 struct ctl_be_ramdisk_lun *be_lun = cbe_lun->be_lun; local
560 struct ctl_be_ramdisk_lun *be_lun; local
592 struct ctl_be_ramdisk_lun *be_lun = cbe_lun->be_lun; local
646 struct ctl_be_ramdisk_lun *be_lun = cbe_lun->be_lun; local
688 struct ctl_be_ramdisk_lun *be_lun = cbe_lun->be_lun; local
824 struct ctl_be_ramdisk_lun *be_lun = arg; local
883 struct ctl_be_ramdisk_lun *be_lun; local
957 struct ctl_be_ramdisk_lun *be_lun; local
1169 struct ctl_be_ramdisk_lun *be_lun; local
1242 struct ctl_be_ramdisk_lun *be_lun = lun; local
[all...]
H A Dctl_backend.h80 typedef void (*be_callback_t)(void *be_lun);
90 * The be_lun field is the backend driver's own context that will get
147 void *be_lun; /* passed to CTL */ member in struct:ctl_be_lun
178 typedef int (*be_luninfo_t)(void *be_lun, struct sbuf *sb);
179 typedef uint64_t (*be_lunattr_t)(void *be_lun, const char *attrname);
209 int ctl_add_lun(struct ctl_be_lun *be_lun);
216 int ctl_remove_lun(struct ctl_be_lun *be_lun);
223 int ctl_start_lun(struct ctl_be_lun *be_lun);
224 int ctl_stop_lun(struct ctl_be_lun *be_lun);
229 int ctl_lun_no_media(struct ctl_be_lun *be_lun);
[all...]
H A Dctl_backend_block.c141 typedef void (*cbb_dispatch_t)(struct ctl_be_block_lun *be_lun,
143 typedef uint64_t (*cbb_getattr_t)(struct ctl_be_block_lun *be_lun,
231 static void ctl_be_block_flush_file(struct ctl_be_block_lun *be_lun,
233 static void ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun,
235 static void ctl_be_block_gls_file(struct ctl_be_block_lun *be_lun,
237 static uint64_t ctl_be_block_getattr_file(struct ctl_be_block_lun *be_lun,
239 static void ctl_be_block_flush_dev(struct ctl_be_block_lun *be_lun,
241 static void ctl_be_block_unmap_dev(struct ctl_be_block_lun *be_lun,
243 static void ctl_be_block_dispatch_dev(struct ctl_be_block_lun *be_lun,
245 static uint64_t ctl_be_block_getattr_dev(struct ctl_be_block_lun *be_lun,
396 struct ctl_be_block_lun *be_lun; local
472 struct ctl_be_block_lun *be_lun; local
567 ctl_be_block_flush_file(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
619 ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
784 ctl_be_block_gls_file(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
823 ctl_be_block_getattr_file(struct ctl_be_block_lun *be_lun, const char *attrname) argument
851 ctl_be_block_dispatch_zvol(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
955 ctl_be_block_gls_zvol(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
1002 ctl_be_block_flush_dev(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
1047 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
1091 ctl_be_block_unmap_dev(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
1127 ctl_be_block_dispatch_dev(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
1206 ctl_be_block_getattr_dev(struct ctl_be_block_lun *be_lun, const char *attrname) argument
1230 ctl_be_block_cw_dispatch_sync(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1268 ctl_be_block_cw_dispatch_ws(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1372 ctl_be_block_cw_dispatch_unmap(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1414 ctl_be_block_cr_dispatch(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1457 ctl_be_block_cw_dispatch(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1512 struct ctl_be_block_lun *be_lun; local
1535 ctl_be_block_dispatch(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1654 struct ctl_be_block_lun *be_lun = (struct ctl_be_block_lun *)context; local
1742 struct ctl_be_block_lun *be_lun; local
1808 ctl_be_block_open_file(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument
1907 ctl_be_block_open_dev(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument
2084 ctl_be_block_close(struct ctl_be_block_lun *be_lun) argument
2117 ctl_be_block_open(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument
2215 struct ctl_be_block_lun *be_lun; local
2429 struct ctl_be_block_lun *be_lun; local
2504 struct ctl_be_block_lun *be_lun; local
2600 struct ctl_be_block_lun *be_lun = lun; local
2625 struct ctl_be_block_lun *be_lun; local
2710 struct ctl_be_block_lun *be_lun; local
2751 ctl_be_block_lun_info(void *be_lun, struct sbuf *sb) argument
2771 ctl_be_block_lun_attr(void *be_lun, const char *attrname) argument
[all...]
H A Dctl_tpc_local.c298 if (ss && lun->be_lun)
299 *ss = lun->be_lun->blocksize;
300 if (ps && lun->be_lun)
301 *ps = lun->be_lun->blocksize <<
302 lun->be_lun->pblockexp;
303 if (pso && lun->be_lun)
304 *pso = lun->be_lun->blocksize *
305 lun->be_lun->pblockoff;
H A Dctl.c2313 CTL_BACKEND_LUN(ctsio) = lun->be_lun;
3117 lun->be_lun->lun_type);
3130 (lun->be_lun->maxlba > 0) ?
3131 lun->be_lun->maxlba + 1 : 0);
3137 lun->be_lun->blocksize);
3148 lun->be_lun->serial_num,
3149 sizeof(lun->be_lun->serial_num));
3165 lun->be_lun->device_id,
3166 sizeof(lun->be_lun->device_id));
3177 retval = lun->backend->lun_info(lun->be_lun
4506 ctl_add_lun(struct ctl_be_lun *be_lun) argument
4889 ctl_start_lun(struct ctl_be_lun *be_lun) argument
4900 ctl_stop_lun(struct ctl_be_lun *be_lun) argument
4911 ctl_lun_no_media(struct ctl_be_lun *be_lun) argument
4922 ctl_lun_has_media(struct ctl_be_lun *be_lun) argument
4950 ctl_lun_ejected(struct ctl_be_lun *be_lun) argument
4961 ctl_lun_primary(struct ctl_be_lun *be_lun) argument
4974 ctl_lun_secondary(struct ctl_be_lun *be_lun) argument
4993 ctl_remove_lun(struct ctl_be_lun *be_lun) argument
5021 ctl_lun_capacity_changed(struct ctl_be_lun *be_lun) argument
[all...]
H A Dctl_tpc.c311 lun->be_lun->lun_type;
758 if (ss && list->lun->be_lun)
759 *ss = list->lun->be_lun->blocksize;
760 if (pb && list->lun->be_lun)
761 *pb = list->lun->be_lun->blocksize <<
762 list->lun->be_lun->pblockexp;
763 if (pbo && list->lun->be_lun)
764 *pbo = list->lun->be_lun->blocksize *
765 list->lun->be_lun->pblockoff;
1212 dstblock = list->lun->be_lun
[all...]
H A Dctl_private.h382 struct ctl_be_lun *be_lun; member in struct:ctl_lun

Completed in 184 milliseconds