Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
fc_fcp_pkt Struct Reference

#include <libfc.h>

Data Fields

spinlock_t scsi_pkt_lock
 
atomic_t ref_cnt
 
u32 data_len
 
struct scsi_cmndcmd
 
struct list_head list
 
struct fc_lportlp
 
u8 state
 
u8 cdb_status
 
u8 status_code
 
u8 scsi_comp_flags
 
u32 io_status
 
u32 req_flags
 
u32 scsi_resid
 
size_t xfer_len
 
struct fcp_cmnd cdb_cmd
 
u32 xfer_contig_end
 
u16 max_payload
 
u16 xfer_ddp
 
struct fc_rportrport
 
struct fc_seqseq_ptr
 
struct timer_list timer
 
int wait_for_comp
 
u32 recov_retry
 
struct fc_seqrecov_seq
 
struct completion tm_done
 

Detailed Description

struct fc_fcp_pkt - FCP request structure (one for each scsi_cmnd request) : The associated local port : The state of the I/O : Reference count : Lock to protect the SCSI packet (must be taken before the host_lock if both are to be held at the same time) : The SCSI command (set and clear with the host_lock held) : Tracks queued commands (accessed with the host_lock held) : The command timer : Completion indicator : Indicator to wait for completion of the I/O (in jiffies) : The length of the data : The CDB command : The transfer length : Indicates if this transfer used DDP (XID of the exchange will be set here if DDP was setup) : The offset into the buffer if the buffer is contiguous (Tx and Rx) : The maximum payload size (in bytes) : SCSI result (upper 24 bits) : CDB status : FCP I/O status : Completion flags (bit 3 Underrun bit 2: overrun) : Request flags (bit 0: read bit:1 write) : SCSI residule length : The remote port that the SCSI command is targeted at : The sequence that will carry the SCSI command : Number of recovery retries : The sequence for REC or SRR

Definition at line 317 of file libfc.h.

Field Documentation

struct fcp_cmnd cdb_cmd

Definition at line 342 of file libfc.h.

u8 cdb_status

Definition at line 333 of file libfc.h.

Definition at line 325 of file libfc.h.

u32 data_len

Definition at line 322 of file libfc.h.

Definition at line 336 of file libfc.h.

Definition at line 326 of file libfc.h.

Definition at line 329 of file libfc.h.

u16 max_payload

Definition at line 344 of file libfc.h.

u32 recov_retry

Definition at line 354 of file libfc.h.

struct fc_seq* recov_seq

Definition at line 355 of file libfc.h.

atomic_t ref_cnt

Definition at line 319 of file libfc.h.

u32 req_flags

Definition at line 337 of file libfc.h.

struct fc_rport* rport

Definition at line 348 of file libfc.h.

u8 scsi_comp_flags

Definition at line 335 of file libfc.h.

spinlock_t scsi_pkt_lock

Definition at line 318 of file libfc.h.

u32 scsi_resid

Definition at line 338 of file libfc.h.

struct fc_seq* seq_ptr

Definition at line 349 of file libfc.h.

Definition at line 330 of file libfc.h.

u8 status_code

Definition at line 334 of file libfc.h.

Definition at line 352 of file libfc.h.

struct completion tm_done

Definition at line 356 of file libfc.h.

int wait_for_comp

Definition at line 353 of file libfc.h.

u32 xfer_contig_end

Definition at line 343 of file libfc.h.

u16 xfer_ddp

Definition at line 345 of file libfc.h.

size_t xfer_len

Definition at line 341 of file libfc.h.


The documentation for this struct was generated from the following file: