Home
last modified time | relevance | path

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

/freebsd/sys/cam/ctl/
H A Dctl_backend_block.c148 typedef void (*cbb_dispatch_t)(struct ctl_be_block_lun *be_lun,
150 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_unmap_file(struct ctl_be_block_lun *be_lun,
249 static void ctl_be_block_flush_dev(struct ctl_be_block_lun *be_lun,
251 static void ctl_be_block_unmap_dev(struct ctl_be_block_lun *be_lun,
253 static void ctl_be_block_dispatch_dev(struct ctl_be_block_lun *be_lun,
[all …]
H A Dctl_backend_ramdisk.c210 ctl_backend_ramdisk_getpage(struct ctl_be_ramdisk_lun *be_lun, off_t pn, in ctl_backend_ramdisk_getpage() argument
217 if (be_lun->cap_bytes == 0) { in ctl_backend_ramdisk_getpage()
220 return (be_lun->zero_page); in ctl_backend_ramdisk_getpage()
222 return ((uint8_t *)be_lun->pages); in ctl_backend_ramdisk_getpage()
230 sx_xlock(&be_lun->page_lock); in ctl_backend_ramdisk_getpage()
231 pp = &be_lun->pages; in ctl_backend_ramdisk_getpage()
232 for (s = (be_lun->indir - 1) * PPPS; s >= 0; s -= PPPS) { in ctl_backend_ramdisk_getpage()
241 if (*pp == P_UNMAPPED && be_lun->cap_used < be_lun->cap_bytes) { in ctl_backend_ramdisk_getpage()
243 *pp = malloc(be_lun->pblocksize, M_RAMDISK, in ctl_backend_ramdisk_getpage()
247 be_lun->cap_used += be_lun->pblocksize; in ctl_backend_ramdisk_getpage()
[all …]
H A Dctl_backend.h83 typedef void (*be_callback_t)(struct ctl_be_lun *be_lun);
93 * The be_lun field is the backend driver's own context that will get
180 typedef int (*be_luninfo_t)(struct ctl_be_lun *be_lun, struct sbuf *sb);
181 typedef uint64_t (*be_lunattr_t)(struct ctl_be_lun *be_lun, const char *attrname);
210 int ctl_add_lun(struct ctl_be_lun *be_lun);
217 int ctl_remove_lun(struct ctl_be_lun *be_lun);
224 int ctl_start_lun(struct ctl_be_lun *be_lun);
225 int ctl_stop_lun(struct ctl_be_lun *be_lun);
230 int ctl_lun_no_media(struct ctl_be_lun *be_lun);
231 int ctl_lun_has_media(struct ctl_be_lun *be_lun);
[all...]
H A Dctl.c2372 CTL_BACKEND_LUN(ctsio) = lun->be_lun; in ctl_serialize_other_sc_cmd()
3086 lun->be_lun->lun_type); in ctl_ioctl()
3099 (lun->be_lun->maxlba > 0) ? in ctl_ioctl()
3100 lun->be_lun->maxlba + 1 : 0); in ctl_ioctl()
3106 lun->be_lun->blocksize); in ctl_ioctl()
3117 lun->be_lun->serial_num, in ctl_ioctl()
3118 sizeof(lun->be_lun->serial_num)); in ctl_ioctl()
3134 lun->be_lun->device_id, in ctl_ioctl()
3135 sizeof(lun->be_lun->device_id)); in ctl_ioctl()
3146 retval = lun->backend->lun_info(lun->be_lun, sb); in ctl_ioctl()
[all …]
H A Dctl_tpc_local.c295 *ss = lun->be_lun->blocksize; in tpcl_resolve()
297 *ps = lun->be_lun->blocksize << in tpcl_resolve()
298 lun->be_lun->pblockexp; in tpcl_resolve()
300 *pso = lun->be_lun->blocksize * in tpcl_resolve()
301 lun->be_lun->pblockoff; in tpcl_resolve()
H A Dctl_tpc.c313 lun->be_lun->lun_type; in ctl_inquiry_evpd_tpc()
761 *ss = list->lun->be_lun->blocksize; in tpc_resolve()
763 *pb = list->lun->be_lun->blocksize << in tpc_resolve()
764 list->lun->be_lun->pblockexp; in tpc_resolve()
766 *pbo = list->lun->be_lun->blocksize * in tpc_resolve()
767 list->lun->be_lun->pblockoff; in tpc_resolve()
1214 dstblock = list->lun->be_lun->blocksize; in tpc_process_wut()
1215 pb = dstblock << list->lun->be_lun->pblockexp; in tpc_process_wut()
1216 if (list->lun->be_lun->pblockoff > 0) in tpc_process_wut()
1217 pbo = pb - dstblock * list->lun->be_lun->pblockoff; in tpc_process_wut()
[all …]
H A Dctl_private.h329 struct ctl_be_lun *be_lun; member