Lines Matching refs:iop
162 emlxs_iotrace_t *iop = port->iotrace; in emlxs_fct_io_trace() local
167 if (!iop) { in emlxs_fct_io_trace()
183 if ((iop->fct_cmd == fct_cmd) && in emlxs_fct_io_trace()
184 (iop->trc[0] != (uint8_t)(0))) in emlxs_fct_io_trace()
186 iop++; in emlxs_fct_io_trace()
196 iop = port->iotrace + iotrace_index; in emlxs_fct_io_trace()
198 if (iop->trc[0] == (uint8_t)(0)) in emlxs_fct_io_trace()
201 iop++; in emlxs_fct_io_trace()
202 if (iop == (port->iotrace + iotrace_cnt)) in emlxs_fct_io_trace()
203 iop = port->iotrace; in emlxs_fct_io_trace()
217 bzero((uint8_t *)iop, sizeof (emlxs_iotrace_t)); in emlxs_fct_io_trace()
218 iop->fct_cmd = fct_cmd; in emlxs_fct_io_trace()
219 iop->xri = fct_cmd->cmd_rxid; in emlxs_fct_io_trace()
220 iop->marker = 0xff; in emlxs_fct_io_trace()
221 iop->trc[0] = 2; in emlxs_fct_io_trace()
222 iop->trc[1] = data; in emlxs_fct_io_trace()
228 if ((iop->fct_cmd == fct_cmd) && in emlxs_fct_io_trace()
229 (iop->trc[0] != (uint8_t)(0))) in emlxs_fct_io_trace()
231 iop++; in emlxs_fct_io_trace()
246 if (iop->trc[0] >= MAX_IO_TRACE) { in emlxs_fct_io_trace()
255 if (iop->xri != fct_cmd->cmd_rxid) { in emlxs_fct_io_trace()
260 iop->xri, fct_cmd->cmd_rxid, fct_cmd, data); in emlxs_fct_io_trace()
264 iop->trc[iop->trc[0]] = data; in emlxs_fct_io_trace()
267 if (iop->trc[iop->trc[0]-1] == EMLXS_FCT_IOCB_ISSUED) { in emlxs_fct_io_trace()
268 iop->trc[0]++; in emlxs_fct_io_trace()
270 iop->trc[0] = 0; in emlxs_fct_io_trace()
273 iop->trc[0]++; in emlxs_fct_io_trace()