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

/freebsd-12-stable/sys/cam/ctl/
H A Dctl_backend_ramdisk.c214 ctl_backend_ramdisk_getpage(struct ctl_be_ramdisk_lun *be_lun, off_t pn, argument
221 if (be_lun->cap_bytes == 0) {
224 return (be_lun->zero_page);
226 return ((uint8_t *)be_lun->pages);
234 sx_xlock(&be_lun->page_lock);
235 pp = &be_lun->pages;
236 for (s = (be_lun->indir - 1) * PPPS; s >= 0; s -= PPPS) {
245 if (*pp == P_UNMAPPED && be_lun->cap_used < be_lun->cap_bytes) {
247 *pp = malloc(be_lun
276 ctl_backend_ramdisk_unmappage(struct ctl_be_ramdisk_lun *be_lun, off_t pn) argument
306 ctl_backend_ramdisk_anchorpage(struct ctl_be_ramdisk_lun *be_lun, off_t pn) argument
369 struct ctl_be_ramdisk_lun *be_lun = (struct ctl_be_ramdisk_lun *)cbe_lun; local
406 struct ctl_be_ramdisk_lun *be_lun = local
459 struct ctl_be_ramdisk_lun *be_lun = (struct ctl_be_ramdisk_lun *)cbe_lun; local
536 struct ctl_be_ramdisk_lun *be_lun; local
567 struct ctl_be_ramdisk_lun *be_lun = (struct ctl_be_ramdisk_lun *)cbe_lun; local
621 struct ctl_be_ramdisk_lun *be_lun = (struct ctl_be_ramdisk_lun *)cbe_lun; local
663 struct ctl_be_ramdisk_lun *be_lun = (struct ctl_be_ramdisk_lun *)cbe_lun; local
799 struct ctl_be_ramdisk_lun *be_lun = (struct ctl_be_ramdisk_lun *)cbe_lun; local
858 struct ctl_be_ramdisk_lun *be_lun; local
932 struct ctl_be_ramdisk_lun *be_lun; local
1144 struct ctl_be_ramdisk_lun *be_lun; local
1221 struct ctl_be_ramdisk_lun *be_lun = (struct ctl_be_ramdisk_lun *)cbe_lun; local
[all...]
H A Dctl_backend.h84 typedef void (*be_callback_t)(struct ctl_be_lun *be_lun);
94 * The be_lun field is the backend driver's own context that will get
181 typedef int (*be_luninfo_t)(struct ctl_be_lun *be_lun, struct sbuf *sb);
182 typedef uint64_t (*be_lunattr_t)(struct ctl_be_lun *be_lun, const char *attrname);
211 int ctl_add_lun(struct ctl_be_lun *be_lun);
218 int ctl_remove_lun(struct ctl_be_lun *be_lun);
225 int ctl_start_lun(struct ctl_be_lun *be_lun);
226 int ctl_stop_lun(struct ctl_be_lun *be_lun);
231 int ctl_lun_no_media(struct ctl_be_lun *be_lun);
232 int ctl_lun_has_media(struct ctl_be_lun *be_lun);
[all...]
H A Dctl_backend_block.c145 typedef void (*cbb_dispatch_t)(struct ctl_be_block_lun *be_lun,
147 typedef uint64_t (*cbb_getattr_t)(struct ctl_be_block_lun *be_lun,
239 static void ctl_be_block_flush_file(struct ctl_be_block_lun *be_lun,
241 static void ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun,
243 static void ctl_be_block_gls_file(struct ctl_be_block_lun *be_lun,
245 static uint64_t ctl_be_block_getattr_file(struct ctl_be_block_lun *be_lun,
247 static void ctl_be_block_flush_dev(struct ctl_be_block_lun *be_lun,
249 static void ctl_be_block_unmap_dev(struct ctl_be_block_lun *be_lun,
251 static void ctl_be_block_dispatch_dev(struct ctl_be_block_lun *be_lun,
253 static uint64_t ctl_be_block_getattr_dev(struct ctl_be_block_lun *be_lun,
417 struct ctl_be_block_lun *be_lun; local
474 struct ctl_be_block_lun *be_lun; local
566 ctl_be_block_flush_file(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
618 ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
780 ctl_be_block_gls_file(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
819 ctl_be_block_getattr_file(struct ctl_be_block_lun *be_lun, const char *attrname) argument
847 ctl_be_block_dispatch_zvol(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
948 ctl_be_block_gls_zvol(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
995 ctl_be_block_flush_dev(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
1040 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
1084 ctl_be_block_unmap_dev(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
1120 ctl_be_block_dispatch_dev(struct ctl_be_block_lun *be_lun, struct ctl_be_block_io *beio) argument
1198 ctl_be_block_getattr_dev(struct ctl_be_block_lun *be_lun, const char *attrname) argument
1222 ctl_be_block_cw_dispatch_sync(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1260 ctl_be_block_cw_dispatch_ws(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1364 ctl_be_block_cw_dispatch_unmap(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1406 ctl_be_block_cr_dispatch(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1449 ctl_be_block_cw_dispatch(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1504 struct ctl_be_block_lun *be_lun; local
1527 ctl_be_block_dispatch(struct ctl_be_block_lun *be_lun, union ctl_io *io) argument
1644 struct ctl_be_block_lun *be_lun = (struct ctl_be_block_lun *)context; local
1728 struct ctl_be_block_lun *be_lun; local
1789 ctl_be_block_open_file(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument
1888 ctl_be_block_open_dev(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument
2065 ctl_be_block_close(struct ctl_be_block_lun *be_lun) argument
2098 ctl_be_block_open(struct ctl_be_block_lun *be_lun, struct ctl_lun_req *req) argument
2196 struct ctl_be_block_lun *be_lun; local
2400 struct ctl_be_block_lun *be_lun; local
2475 struct ctl_be_block_lun *be_lun; local
2575 struct ctl_be_block_lun *be_lun = (struct ctl_be_block_lun *)cbe_lun; local
2599 struct ctl_be_block_lun *be_lun; local
2684 struct ctl_be_block_lun *be_lun; local
[all...]
H A Dctl_tpc_local.c299 *ss = lun->be_lun->blocksize;
301 *ps = lun->be_lun->blocksize <<
302 lun->be_lun->pblockexp;
304 *pso = lun->be_lun->blocksize *
305 lun->be_lun->pblockoff;
H A Dctl.c2324 CTL_BACKEND_LUN(ctsio) = lun->be_lun;
3035 lun->be_lun->lun_type);
3048 (lun->be_lun->maxlba > 0) ?
3049 lun->be_lun->maxlba + 1 : 0);
3055 lun->be_lun->blocksize);
3066 lun->be_lun->serial_num,
3067 sizeof(lun->be_lun->serial_num));
3083 lun->be_lun->device_id,
3084 sizeof(lun->be_lun->device_id));
3095 retval = lun->backend->lun_info(lun->be_lun, s
4500 ctl_add_lun(struct ctl_be_lun *be_lun) argument
4872 ctl_start_lun(struct ctl_be_lun *be_lun) argument
4883 ctl_stop_lun(struct ctl_be_lun *be_lun) argument
4894 ctl_lun_no_media(struct ctl_be_lun *be_lun) argument
4905 ctl_lun_has_media(struct ctl_be_lun *be_lun) argument
4933 ctl_lun_ejected(struct ctl_be_lun *be_lun) argument
4944 ctl_lun_primary(struct ctl_be_lun *be_lun) argument
4957 ctl_lun_secondary(struct ctl_be_lun *be_lun) argument
4976 ctl_remove_lun(struct ctl_be_lun *be_lun) argument
5002 ctl_lun_capacity_changed(struct ctl_be_lun *be_lun) argument
[all...]
H A Dctl_tpc.c315 lun->be_lun->lun_type;
763 *ss = list->lun->be_lun->blocksize;
765 *pb = list->lun->be_lun->blocksize <<
766 list->lun->be_lun->pblockexp;
768 *pbo = list->lun->be_lun->blocksize *
769 list->lun->be_lun->pblockoff;
1216 dstblock = list->lun->be_lun->blocksize;
1217 pb = dstblock << list->lun->be_lun->pblockexp;
1218 if (list->lun->be_lun->pblockoff > 0)
1219 pbo = pb - dstblock * list->lun->be_lun
[all...]
H A Dctl_private.h385 struct ctl_be_lun *be_lun; member in struct:ctl_lun

Completed in 76 milliseconds