Lines Matching refs:ioctl_cmds

1007 	if (sc->ioctl_cmds.state & MPI3MR_CMD_PENDING) {  in mpi3mr_app_mptcmds()
1064 sc->ioctl_cmds.state = MPI3MR_CMD_PENDING; in mpi3mr_app_mptcmds()
1065 sc->ioctl_cmds.is_waiting = 1; in mpi3mr_app_mptcmds()
1066 sc->ioctl_cmds.callback = NULL; in mpi3mr_app_mptcmds()
1067 sc->ioctl_cmds.is_senseprst = 0; in mpi3mr_app_mptcmds()
1068 sc->ioctl_cmds.sensebuf = kern_erb; in mpi3mr_app_mptcmds()
1069 memset((sc->ioctl_cmds.reply), 0, sc->reply_sz); in mpi3mr_app_mptcmds()
1071 init_completion(&sc->ioctl_cmds.completion); in mpi3mr_app_mptcmds()
1077 wait_for_completion_timeout(&sc->ioctl_cmds.completion, karg->timeout); in mpi3mr_app_mptcmds()
1079 if (!(sc->ioctl_cmds.state & MPI3MR_CMD_COMPLETE)) { in mpi3mr_app_mptcmds()
1080 sc->ioctl_cmds.is_waiting = 0; in mpi3mr_app_mptcmds()
1083 if (sc->ioctl_cmds.state & MPI3MR_CMD_RESET) in mpi3mr_app_mptcmds()
1098 if (((sc->ioctl_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_app_mptcmds()
1102 (sc->ioctl_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_app_mptcmds()
1103 sc->ioctl_cmds.ioc_loginfo); in mpi3mr_app_mptcmds()
1119 if (sc->ioctl_cmds.state & MPI3MR_CMD_REPLYVALID) { in mpi3mr_app_mptcmds()
1122 memcpy(mpirepbuf->repbuf, sc->ioctl_cmds.reply, sc->reply_sz); in mpi3mr_app_mptcmds()
1128 status_desc->IOCStatus = sc->ioctl_cmds.ioc_status; in mpi3mr_app_mptcmds()
1129 status_desc->IOCLogInfo = sc->ioctl_cmds.ioc_loginfo; in mpi3mr_app_mptcmds()
1140 if (erb_offset != 0xFF && sc->ioctl_cmds.sensebuf && in mpi3mr_app_mptcmds()
1141 sc->ioctl_cmds.is_senseprst) { in mpi3mr_app_mptcmds()
1182 sc->ioctl_cmds.is_senseprst = 0; in mpi3mr_app_mptcmds()
1183 sc->ioctl_cmds.sensebuf = NULL; in mpi3mr_app_mptcmds()
1184 sc->ioctl_cmds.state = MPI3MR_CMD_NOTUSED; in mpi3mr_app_mptcmds()
2125 mtx_lock(&sc->ioctl_cmds.completion.lock); in mpi3mr_app_drvrcmds()
2159 mtx_unlock(&sc->ioctl_cmds.completion.lock); in mpi3mr_app_drvrcmds()
2203 mtx_lock(&sc->ioctl_cmds.completion.lock); in mpi3mr_ioctl()
2205 mtx_unlock(&sc->ioctl_cmds.completion.lock); in mpi3mr_ioctl()