Lines Matching refs:softs

60 	struct pqisrc_softstate *softs = (struct pqisrc_softstate *)data;  in os_wellness_periodic()  local
64 if (!pqisrc_ctrl_offline(softs)){ in os_wellness_periodic()
65 if( (ret = pqisrc_write_current_time_to_host_wellness(softs)) != 0 ) in os_wellness_periodic()
70 callout_reset(&softs->os_specific.wellness_periodic, in os_wellness_periodic()
71 PQI_HOST_WELLNESS_TIMEOUT_SEC * hz, os_wellness_periodic, softs); in os_wellness_periodic()
78 os_stop_heartbeat_timer(pqisrc_softstate_t *softs) in os_stop_heartbeat_timer() argument
83 callout_stop(&softs->os_specific.heartbeat_timeout_id); in os_stop_heartbeat_timer()
94 struct pqisrc_softstate *softs = (struct pqisrc_softstate *)data; in os_start_heartbeat_timer() local
97 pqisrc_heartbeat_timer_handler(softs); in os_start_heartbeat_timer()
98 if (!pqisrc_ctrl_offline(softs)) { in os_start_heartbeat_timer()
99 callout_reset(&softs->os_specific.heartbeat_timeout_id, in os_start_heartbeat_timer()
101 os_start_heartbeat_timer, softs); in os_start_heartbeat_timer()
111 os_init_spinlock(struct pqisrc_softstate *softs, struct mtx *lock, in os_init_spinlock() argument
190 check_device_hint_status(struct pqisrc_softstate *softs, unsigned int feature_bit) in check_device_hint_status() argument
196 if (!softs->hint.aio_raid1_write_status) in check_device_hint_status()
200 if (!softs->hint.aio_raid5_write_status) in check_device_hint_status()
204 if (!softs->hint.aio_raid6_write_status) in check_device_hint_status()
208 if (!softs->hint.sata_unique_wwn_status) in check_device_hint_status()
221 bsd_set_hint_adapter_queue_depth(struct pqisrc_softstate *softs) in bsd_set_hint_adapter_queue_depth() argument
223 uint32_t queue_depth = softs->pqi_cap.max_outstanding_io; in bsd_set_hint_adapter_queue_depth()
227 if ((!softs->hint.queue_depth) || (softs->hint.queue_depth > in bsd_set_hint_adapter_queue_depth()
228 softs->pqi_cap.max_outstanding_io)) { in bsd_set_hint_adapter_queue_depth()
232 else if (softs->hint.queue_depth < PQISRC_MIN_OUTSTANDING_REQ) { in bsd_set_hint_adapter_queue_depth()
238 softs->pqi_cap.max_outstanding_io = in bsd_set_hint_adapter_queue_depth()
239 softs->hint.queue_depth; in bsd_set_hint_adapter_queue_depth()
243 queue_depth, softs->pqi_cap.max_outstanding_io); in bsd_set_hint_adapter_queue_depth()
249 bsd_set_hint_scatter_gather_config(struct pqisrc_softstate *softs) in bsd_set_hint_scatter_gather_config() argument
251 uint32_t pqi_sg_segments = softs->pqi_cap.max_sg_elem; in bsd_set_hint_scatter_gather_config()
258 if ((!softs->hint.sg_segments) || (softs->hint.sg_segments > in bsd_set_hint_scatter_gather_config()
259 softs->pqi_cap.max_sg_elem)) { in bsd_set_hint_scatter_gather_config()
263 else if (softs->hint.sg_segments < BSD_MIN_SG_SEGMENTS) in bsd_set_hint_scatter_gather_config()
270 softs->pqi_cap.max_sg_elem = softs->hint.sg_segments; in bsd_set_hint_scatter_gather_config()
274 pqi_sg_segments, softs->pqi_cap.max_sg_elem); in bsd_set_hint_scatter_gather_config()
280 bsd_set_hint_adapter_cap(struct pqisrc_softstate *softs) in bsd_set_hint_adapter_cap() argument
284 bsd_set_hint_adapter_queue_depth(softs); in bsd_set_hint_adapter_cap()
285 bsd_set_hint_scatter_gather_config(softs); in bsd_set_hint_adapter_cap()
291 bsd_set_hint_adapter_cpu_config(struct pqisrc_softstate *softs) in bsd_set_hint_adapter_cpu_config() argument
302 if (softs->hint.cpu_count > softs->num_cpus_online) { in bsd_set_hint_adapter_cpu_config()
308 softs->num_cpus_online = softs->hint.cpu_count; in bsd_set_hint_adapter_cpu_config()