ctl.c (267498) | ctl.c (267514) |
---|---|
1/*- 2 * Copyright (c) 2003-2009 Silicon Graphics International Corp. 3 * Copyright (c) 2012 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * Portions of this software were developed by Edward Tomasz Napierala 7 * under sponsorship from the FreeBSD Foundation. 8 * --- 28 unchanged lines hidden (view full) --- 37 * CAM Target Layer, a SCSI device emulation subsystem. 38 * 39 * Author: Ken Merry <ken@FreeBSD.org> 40 */ 41 42#define _CTL_C 43 44#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003-2009 Silicon Graphics International Corp. 3 * Copyright (c) 2012 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * Portions of this software were developed by Edward Tomasz Napierala 7 * under sponsorship from the FreeBSD Foundation. 8 * --- 28 unchanged lines hidden (view full) --- 37 * CAM Target Layer, a SCSI device emulation subsystem. 38 * 39 * Author: Ken Merry <ken@FreeBSD.org> 40 */ 41 42#define _CTL_C 43 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: head/sys/cam/ctl/ctl.c 267498 2014-06-15 08:43:52Z mav $"); | 45__FBSDID("$FreeBSD: head/sys/cam/ctl/ctl.c 267514 2014-06-15 17:14:52Z mav $"); |
46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/kernel.h> 50#include <sys/types.h> 51#include <sys/kthread.h> 52#include <sys/bio.h> 53#include <sys/fcntl.h> --- 8741 unchanged lines hidden (view full) --- 8795 return (CTL_RETVAL_COMPLETE); 8796 } 8797 8798 lbalen.lba = lba; 8799 lbalen.len = num_blocks; 8800 memcpy(ctsio->io_hdr.ctl_private[CTL_PRIV_LBA_LEN].bytes, &lbalen, 8801 sizeof(lbalen)); 8802 | 46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/kernel.h> 50#include <sys/types.h> 51#include <sys/kthread.h> 52#include <sys/bio.h> 53#include <sys/fcntl.h> --- 8741 unchanged lines hidden (view full) --- 8795 return (CTL_RETVAL_COMPLETE); 8796 } 8797 8798 lbalen.lba = lba; 8799 lbalen.len = num_blocks; 8800 memcpy(ctsio->io_hdr.ctl_private[CTL_PRIV_LBA_LEN].bytes, &lbalen, 8801 sizeof(lbalen)); 8802 |
8803 ctsio->kern_total_len = num_blocks * lun->be_lun->blocksize; 8804 ctsio->kern_rel_offset = 0; 8805 |
|
8803 CTL_DEBUG_PRINT(("ctl_read_write: calling data_submit()\n")); 8804 8805 retval = lun->backend->data_submit((union ctl_io *)ctsio); 8806 8807 return (retval); 8808} 8809 8810int --- 4700 unchanged lines hidden --- | 8806 CTL_DEBUG_PRINT(("ctl_read_write: calling data_submit()\n")); 8807 8808 retval = lun->backend->data_submit((union ctl_io *)ctsio); 8809 8810 return (retval); 8811} 8812 8813int --- 4700 unchanged lines hidden --- |