Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
5f306af
Documentation
LICENSES
arch
block
certs
crypto
drivers
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block
bluetooth
bus
cdrom
char
clk
clocksource
connector
counter
cpufreq
cpuidle
crypto
dax
dca
devfreq
dio
dma-buf
dma
edac
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio
gpu
greybus
hid
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
ide
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
lightnvm
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc
mtd
mux
net
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
oprofile
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi
sfi
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target
iscsi
loopback
sbp
tcm_fc
Kconfig
Makefile
target_core_alua.c
target_core_alua.h
target_core_configfs.c
target_core_device.c
target_core_fabric_configfs.c
target_core_fabric_lib.c
target_core_file.c
target_core_file.h
target_core_hba.c
target_core_iblock.c
target_core_iblock.h
target_core_internal.h
target_core_pr.c
target_core_pr.h
target_core_pscsi.c
target_core_pscsi.h
target_core_rd.c
target_core_rd.h
target_core_sbc.c
target_core_spc.c
target_core_stat.c
target_core_tmr.c
target_core_tpg.c
target_core_transport.c
target_core_ua.c
target_core_ua.h
target_core_user.c
target_core_xcopy.c
target_core_xcopy.h
tc
tee
thermal
thunderbolt
tty
uio
usb
vfio
vhost
video
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Breadcrumbs
linux
/
drivers
/
target
/
target_core_xcopy.h
Copy path
Blame
Blame
Latest commit
History
History
72 lines (60 loc) · 1.94 KB
Breadcrumbs
linux
/
drivers
/
target
/
target_core_xcopy.h
Top
File metadata and controls
Code
Blame
72 lines (60 loc) · 1.94 KB
Raw
/* SPDX-License-Identifier: GPL-2.0 */ #include <target/target_core_base.h> #define XCOPY_HDR_LEN 16 #define XCOPY_TARGET_DESC_LEN 32 #define XCOPY_SEGMENT_DESC_LEN 28 #define XCOPY_NAA_IEEE_REGEX_LEN 16 #define XCOPY_MAX_SECTORS 4096 /* * SPC4r37 6.4.6.1 * Table 150 — CSCD descriptor ID values */ #define XCOPY_CSCD_DESC_ID_LIST_OFF_MAX 0x07FF enum xcopy_origin_list { XCOL_SOURCE_RECV_OP = 0x01, XCOL_DEST_RECV_OP = 0x02, }; struct xcopy_pt_cmd; struct xcopy_op { int op_origin; struct se_cmd *xop_se_cmd; struct se_device *src_dev; unsigned char src_tid_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; struct se_device *dst_dev; unsigned char dst_tid_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; unsigned char local_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; sector_t src_lba; sector_t dst_lba; unsigned short stdi; unsigned short dtdi; unsigned short nolb; struct xcopy_pt_cmd *src_pt_cmd; struct xcopy_pt_cmd *dst_pt_cmd; u32 xop_data_bytes; u32 xop_data_nents; struct scatterlist *xop_data_sg; struct work_struct xop_work; }; /* * Receive Copy Results Sevice Actions */ #define RCR_SA_COPY_STATUS 0x00 #define RCR_SA_RECEIVE_DATA 0x01 #define RCR_SA_OPERATING_PARAMETERS 0x03 #define RCR_SA_FAILED_SEGMENT_DETAILS 0x04 /* * Receive Copy Results defs for Operating Parameters */ #define RCR_OP_MAX_TARGET_DESC_COUNT 0x2 #define RCR_OP_MAX_SG_DESC_COUNT 0x1 #define RCR_OP_MAX_DESC_LIST_LEN 1024 #define RCR_OP_MAX_SEGMENT_LEN 268435456 /* 256 MB */ #define RCR_OP_TOTAL_CONCURR_COPIES 0x1 /* Must be <= 16384 */ #define RCR_OP_MAX_CONCURR_COPIES 0x1 /* Must be <= 255 */ #define RCR_OP_DATA_SEG_GRAN_LOG2 9 /* 512 bytes in log 2 */ #define RCR_OP_INLINE_DATA_GRAN_LOG2 9 /* 512 bytes in log 2 */ #define RCR_OP_HELD_DATA_GRAN_LOG2 9 /* 512 bytes in log 2 */ extern int target_xcopy_setup_pt(void); extern void target_xcopy_release_pt(void); extern sense_reason_t target_do_xcopy(struct se_cmd *); extern sense_reason_t target_do_receive_copy_results(struct se_cmd *);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
You can’t perform that action at this time.