Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ctl/ctl_private.h
Show First 20 Lines • Show All 384 Lines • ▼ Show 20 Lines | struct ctl_lun { | ||||
struct ctl_lun_delay_info delay_info; | struct ctl_lun_delay_info delay_info; | ||||
#ifdef CTL_TIME_IO | #ifdef CTL_TIME_IO | ||||
sbintime_t idle_time; | sbintime_t idle_time; | ||||
sbintime_t last_busy; | sbintime_t last_busy; | ||||
#endif | #endif | ||||
TAILQ_HEAD(ctl_ooaq, ctl_io_hdr) ooa_queue; | TAILQ_HEAD(ctl_ooaq, ctl_io_hdr) ooa_queue; | ||||
TAILQ_HEAD(ctl_blockq,ctl_io_hdr) blocked_queue; | TAILQ_HEAD(ctl_blockq,ctl_io_hdr) blocked_queue; | ||||
STAILQ_ENTRY(ctl_lun) links; | STAILQ_ENTRY(ctl_lun) links; | ||||
struct scsi_sense_data *pending_sense[CTL_MAX_PORTS]; | struct scsi_sense_data **pending_sense; | ||||
ctl_ua_type *pending_ua[CTL_MAX_PORTS]; | ctl_ua_type **pending_ua; | ||||
uint8_t ua_tpt_info[8]; | uint8_t ua_tpt_info[8]; | ||||
time_t lasttpt; | time_t lasttpt; | ||||
uint8_t ie_asc; /* Informational exceptions */ | uint8_t ie_asc; /* Informational exceptions */ | ||||
uint8_t ie_ascq; | uint8_t ie_ascq; | ||||
int ie_reported; /* Already reported */ | int ie_reported; /* Already reported */ | ||||
uint32_t ie_reportcnt; /* REPORT COUNT */ | uint32_t ie_reportcnt; /* REPORT COUNT */ | ||||
struct callout ie_callout; /* INTERVAL TIMER */ | struct callout ie_callout; /* INTERVAL TIMER */ | ||||
struct ctl_mode_pages mode_pages; | struct ctl_mode_pages mode_pages; | ||||
struct ctl_log_pages log_pages; | struct ctl_log_pages log_pages; | ||||
#ifdef CTL_LEGACY_STATS | #ifdef CTL_LEGACY_STATS | ||||
struct ctl_lun_io_stats legacy_stats; | struct ctl_lun_io_stats legacy_stats; | ||||
#endif /* CTL_LEGACY_STATS */ | #endif /* CTL_LEGACY_STATS */ | ||||
struct ctl_io_stats stats; | struct ctl_io_stats stats; | ||||
uint32_t res_idx; | uint32_t res_idx; | ||||
uint32_t pr_generation; | uint32_t pr_generation; | ||||
uint64_t *pr_keys[CTL_MAX_PORTS]; | uint64_t **pr_keys; | ||||
int pr_key_count; | int pr_key_count; | ||||
uint32_t pr_res_idx; | uint32_t pr_res_idx; | ||||
uint8_t pr_res_type; | uint8_t pr_res_type; | ||||
int prevent_count; | int prevent_count; | ||||
uint32_t *prevent; | uint32_t *prevent; | ||||
uint8_t *write_buffer; | uint8_t *write_buffer; | ||||
struct ctl_devid *lun_devid; | struct ctl_devid *lun_devid; | ||||
TAILQ_HEAD(tpc_lists, tpc_list) tpc_lists; | TAILQ_HEAD(tpc_lists, tpc_list) tpc_lists; | ||||
Show All 29 Lines | struct ctl_softc { | ||||
int port_max; | int port_max; | ||||
int port_cnt; | int port_cnt; | ||||
int init_min; | int init_min; | ||||
int init_max; | int init_max; | ||||
struct sysctl_ctx_list sysctl_ctx; | struct sysctl_ctx_list sysctl_ctx; | ||||
struct sysctl_oid *sysctl_tree; | struct sysctl_oid *sysctl_tree; | ||||
void *othersc_pool; | void *othersc_pool; | ||||
struct proc *ctl_proc; | struct proc *ctl_proc; | ||||
uint32_t ctl_lun_mask[(CTL_MAX_LUNS + 31) / 32]; | uint32_t *ctl_lun_mask; | ||||
struct ctl_lun *ctl_luns[CTL_MAX_LUNS]; | struct ctl_lun **ctl_luns; | ||||
uint32_t ctl_port_mask[(CTL_MAX_PORTS + 31) / 32]; | uint32_t *ctl_port_mask; | ||||
STAILQ_HEAD(, ctl_lun) lun_list; | STAILQ_HEAD(, ctl_lun) lun_list; | ||||
STAILQ_HEAD(, ctl_be_lun) pending_lun_queue; | STAILQ_HEAD(, ctl_be_lun) pending_lun_queue; | ||||
uint32_t num_frontends; | uint32_t num_frontends; | ||||
STAILQ_HEAD(, ctl_frontend) fe_list; | STAILQ_HEAD(, ctl_frontend) fe_list; | ||||
uint32_t num_ports; | uint32_t num_ports; | ||||
STAILQ_HEAD(, ctl_port) port_list; | STAILQ_HEAD(, ctl_port) port_list; | ||||
struct ctl_port *ctl_ports[CTL_MAX_PORTS]; | struct ctl_port **ctl_ports; | ||||
uint32_t num_backends; | uint32_t num_backends; | ||||
STAILQ_HEAD(, ctl_backend_driver) be_list; | STAILQ_HEAD(, ctl_backend_driver) be_list; | ||||
struct uma_zone *io_zone; | struct uma_zone *io_zone; | ||||
uint32_t cur_pool_id; | uint32_t cur_pool_id; | ||||
int shutdown; | int shutdown; | ||||
struct ctl_thread threads[CTL_MAX_THREADS]; | struct ctl_thread threads[CTL_MAX_THREADS]; | ||||
struct thread *lun_thread; | struct thread *lun_thread; | ||||
struct thread *thresh_thread; | struct thread *thresh_thread; | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |