Lines Matching refs:ioctl_cmds

1006 	if (sc->ioctl_cmds.state & MPI3MR_CMD_PENDING) {  in mpi3mr_app_mptcmds()
1063 sc->ioctl_cmds.state = MPI3MR_CMD_PENDING; in mpi3mr_app_mptcmds()
1064 sc->ioctl_cmds.is_waiting = 1; in mpi3mr_app_mptcmds()
1065 sc->ioctl_cmds.callback = NULL; in mpi3mr_app_mptcmds()
1066 sc->ioctl_cmds.is_senseprst = 0; in mpi3mr_app_mptcmds()
1067 sc->ioctl_cmds.sensebuf = kern_erb; in mpi3mr_app_mptcmds()
1068 memset((sc->ioctl_cmds.reply), 0, sc->reply_sz); in mpi3mr_app_mptcmds()
1070 init_completion(&sc->ioctl_cmds.completion); in mpi3mr_app_mptcmds()
1076 wait_for_completion_timeout(&sc->ioctl_cmds.completion, karg->timeout); in mpi3mr_app_mptcmds()
1078 if (!(sc->ioctl_cmds.state & MPI3MR_CMD_COMPLETE)) { in mpi3mr_app_mptcmds()
1079 sc->ioctl_cmds.is_waiting = 0; in mpi3mr_app_mptcmds()
1082 if (sc->ioctl_cmds.state & MPI3MR_CMD_RESET) in mpi3mr_app_mptcmds()
1097 if (((sc->ioctl_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_app_mptcmds()
1101 (sc->ioctl_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_app_mptcmds()
1102 sc->ioctl_cmds.ioc_loginfo); in mpi3mr_app_mptcmds()
1118 if (sc->ioctl_cmds.state & MPI3MR_CMD_REPLYVALID) { in mpi3mr_app_mptcmds()
1121 memcpy(mpirepbuf->repbuf, sc->ioctl_cmds.reply, sc->reply_sz); in mpi3mr_app_mptcmds()
1127 status_desc->IOCStatus = sc->ioctl_cmds.ioc_status; in mpi3mr_app_mptcmds()
1128 status_desc->IOCLogInfo = sc->ioctl_cmds.ioc_loginfo; in mpi3mr_app_mptcmds()
1139 if (erb_offset != 0xFF && sc->ioctl_cmds.sensebuf && in mpi3mr_app_mptcmds()
1140 sc->ioctl_cmds.is_senseprst) { in mpi3mr_app_mptcmds()
1181 sc->ioctl_cmds.is_senseprst = 0; in mpi3mr_app_mptcmds()
1182 sc->ioctl_cmds.sensebuf = NULL; in mpi3mr_app_mptcmds()
1183 sc->ioctl_cmds.state = MPI3MR_CMD_NOTUSED; in mpi3mr_app_mptcmds()
2136 mtx_lock(&sc->ioctl_cmds.completion.lock); in mpi3mr_app_drvrcmds()
2170 mtx_unlock(&sc->ioctl_cmds.completion.lock); in mpi3mr_app_drvrcmds()
2214 mtx_lock(&sc->ioctl_cmds.completion.lock); in mpi3mr_ioctl()
2216 mtx_unlock(&sc->ioctl_cmds.completion.lock); in mpi3mr_ioctl()