Lines Matching defs:handle
295 * Find the first handle that is not in use, starting from
301 uint32_t index, handle = req->current_outstanding_cmd;
304 handle++;
305 if (handle == req->num_outstanding_cmds)
306 handle = 1;
307 if (!req->outstanding_cmds[handle])
308 return handle;
328 uint32_t handle;
360 handle = qla2xxx_get_next_handle(req);
361 if (handle == 0)
390 req->current_outstanding_cmd = handle;
391 req->outstanding_cmds[handle] = sp;
392 sp->handle = handle;
393 cmd->host_scribble = (unsigned char *)(unsigned long)handle;
397 cmd_pkt->handle = handle;
532 mrk24->handle = make_handle(req->id, mrk24->handle);
1452 /* Set handle */
1453 crc_ctx_pkt->handle = cmd_pkt->handle;
1598 uint32_t handle;
1625 handle = qla2xxx_get_next_handle(req);
1626 if (handle == 0)
1665 req->current_outstanding_cmd = handle;
1666 req->outstanding_cmds[handle] = sp;
1667 sp->handle = handle;
1668 cmd->host_scribble = (unsigned char *)(unsigned long)handle;
1672 cmd_pkt->handle = make_handle(req->id, handle);
1742 uint32_t handle;
1782 handle = qla2xxx_get_next_handle(req);
1783 if (handle == 0)
1864 req->current_outstanding_cmd = handle;
1865 req->outstanding_cmds[handle] = sp;
1866 sp->handle = handle;
1867 cmd->host_scribble = (unsigned char *)(unsigned long)handle;
1872 cmd_pkt->handle = make_handle(req->id, handle);
1918 req->outstanding_cmds[handle] = NULL;
1941 uint32_t handle;
1971 handle = qla2xxx_get_next_handle(req);
1972 if (handle == 0)
2011 req->current_outstanding_cmd = handle;
2012 req->outstanding_cmds[handle] = sp;
2013 sp->handle = handle;
2014 cmd->host_scribble = (unsigned char *)(unsigned long)handle;
2018 cmd_pkt->handle = make_handle(req->id, handle);
2089 uint32_t handle;
2143 handle = qla2xxx_get_next_handle(req);
2144 if (handle == 0)
2226 req->current_outstanding_cmd = handle;
2227 req->outstanding_cmds[handle] = sp;
2228 sp->handle = handle;
2229 cmd->host_scribble = (unsigned char *)(unsigned long)handle;
2234 cmd_pkt->handle = make_handle(req->id, handle);
2283 req->outstanding_cmds[handle] = NULL;
2305 uint32_t handle;
2311 handle = 0;
2350 handle = qla2xxx_get_next_handle(req);
2351 if (handle == 0) {
2358 req->current_outstanding_cmd = handle;
2359 req->outstanding_cmds[handle] = sp;
2360 sp->handle = handle;
2369 wrt_reg_dword((__le32 __force __iomem *)&pkt->handle, handle);
2372 pkt->handle = handle;
2563 tsk->handle = make_handle(req->id, tsk->handle);
2616 sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area,
2647 sp->name, sp->handle, fcport->d_id.b.domain,
2731 sp->name, sp->handle, fcport->loop_id, fcport->d_id.b.domain,
2750 els_iocb->handle = sp->handle;
2815 sp->name, sp->handle, fcport->port_name, fcport->d_id.b24);
2864 sp->name, res, sp->handle, fcport->d_id.b24, fcport->port_name);
3061 sp->name, sp->handle, fcport->loop_id,
3092 els_iocb->handle = sp->handle;
3141 ct_iocb->handle1 = sp->handle;
3209 ct_iocb->handle = sp->handle;
3281 uint32_t handle;
3320 handle = qla2xxx_get_next_handle(req);
3321 if (handle == 0)
3409 /* Initialize the DSD list and dma handle */
3431 cmd_pkt->handle = make_handle(req->id, handle);
3502 cmd_pkt->handle = make_handle(req->id, handle);
3543 req->current_outstanding_cmd = handle;
3544 req->outstanding_cmds[handle] = sp;
3545 sp->handle = handle;
3546 cmd->host_scribble = (unsigned char *)(unsigned long)handle;
3607 abt_iocb->handle = make_handle(req->id, sp->handle);
3629 mbx->handle = sp->handle;
3641 ct_pkt->handle = sp->handle;
3653 nack->u.isp24.handle = sp->handle;
3706 vce->handle = sp->handle;
3928 uint32_t handle;
3953 handle = qla2xxx_get_next_handle(req);
3954 if (handle == 0) {
3984 cmd_pkt->handle = make_handle(req->id, handle);
4000 req->current_outstanding_cmd = handle;
4001 req->outstanding_cmds[handle] = sp;
4002 sp->handle = handle;