Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mpr/mprvar.h
Context not available. | |||||
u_int enable_ssu; | u_int enable_ssu; | ||||
int spinup_wait_time; | int spinup_wait_time; | ||||
int use_phynum; | int use_phynum; | ||||
int dump_reqs_alltypes; | |||||
uint64_t chain_alloc_fail; | uint64_t chain_alloc_fail; | ||||
uint64_t prp_page_alloc_fail; | uint64_t prp_page_alloc_fail; | ||||
struct sysctl_ctx_list sysctl_ctx; | struct sysctl_ctx_list sysctl_ctx; | ||||
Context not available. | |||||
struct mpr_chain *chain, *chain_temp; | struct mpr_chain *chain, *chain_temp; | ||||
struct mpr_prp_page *prp_page, *prp_page_temp; | struct mpr_prp_page *prp_page, *prp_page_temp; | ||||
KASSERT(cm->cm_state == MPR_CM_STATE_BUSY, ("state not busy\n")); | KASSERT(cm->cm_state == MPR_CM_STATE_BUSY, | ||||
("state not busy, state = %u\n", cm->cm_state)); | |||||
if (cm->cm_reply != NULL) | if (cm->cm_reply != NULL) | ||||
mpr_free_reply(sc, cm->cm_reply_data); | mpr_free_reply(sc, cm->cm_reply_data); | ||||
Context not available. | |||||
return (NULL); | return (NULL); | ||||
KASSERT(cm->cm_state == MPR_CM_STATE_FREE, | KASSERT(cm->cm_state == MPR_CM_STATE_FREE, | ||||
("mpr: Allocating busy command\n")); | ("mpr: Allocating busy command, state = %u\n", cm->cm_state)); | ||||
TAILQ_REMOVE(&sc->req_list, cm, cm_link); | TAILQ_REMOVE(&sc->req_list, cm, cm_link); | ||||
cm->cm_state = MPR_CM_STATE_BUSY; | cm->cm_state = MPR_CM_STATE_BUSY; | ||||
Context not available. | |||||
{ | { | ||||
struct mpr_chain *chain, *chain_temp; | struct mpr_chain *chain, *chain_temp; | ||||
KASSERT(cm->cm_state == MPR_CM_STATE_BUSY, ("state not busy\n")); | KASSERT(cm->cm_state == MPR_CM_STATE_BUSY, | ||||
("state not busy, state = %u\n", cm->cm_state)); | |||||
if (cm->cm_reply != NULL) | if (cm->cm_reply != NULL) | ||||
mpr_free_reply(sc, cm->cm_reply_data); | mpr_free_reply(sc, cm->cm_reply_data); | ||||
Context not available. | |||||
return (NULL); | return (NULL); | ||||
KASSERT(cm->cm_state == MPR_CM_STATE_FREE, | KASSERT(cm->cm_state == MPR_CM_STATE_FREE, | ||||
("mpr: Allocating busy command\n")); | ("mpr: Allocating busy command, state = %u\n", cm->cm_state)); | ||||
TAILQ_REMOVE(&sc->high_priority_req_list, cm, cm_link); | TAILQ_REMOVE(&sc->high_priority_req_list, cm, cm_link); | ||||
cm->cm_state = MPR_CM_STATE_BUSY; | cm->cm_state = MPR_CM_STATE_BUSY; | ||||
Context not available. |