Lines Matching refs:token
139 int token; in socal_solicited() local
185 token = hwrsp->shdr.token; in socal_solicited()
187 fc = (fc_channel *)(&s->port[(token >> 11) & 1]); in socal_solicited()
189 SOD(("Solicited token %08x status %08x\n", token, status)) in socal_solicited()
191 fcp_receive_solicited(fc, token >> 12, in socal_solicited()
192 token & ((1 << 11) - 1), in socal_solicited()
199 fcp_receive_solicited(fc, token >> 12, in socal_solicited()
200 token & ((1 << 11) - 1), status, &hwrsp->fchdr); in socal_solicited()
433 #define TOKEN(proto, port, token) (((proto)<<12)|(token)|(port)) argument
475 request->shdr.token = TOKEN(TYPE_SCSI_FCP, port->mask, fcmd->token); in socal_hw_enque()
476 request->data[0].base = fc->dma_scsi_cmd + fcmd->token * sizeof(fcp_cmd); in socal_hw_enque()
478 request->data[1].base = fc->dma_scsi_rsp + fcmd->token * fc->rsp_size; in socal_hw_enque()
482 i = fc->scsi_cmd_pool[fcmd->token].fcp_data_len; in socal_hw_enque()
486 request->type = (fc->scsi_cmd_pool[fcmd->token].fcp_cntl & FCP_CNTL_WRITE) ? in socal_hw_enque()
507 request->shdr.token = TOKEN(PROTO_OFFLINE, port->mask, fcmd->token); in socal_hw_enque()
519 request->shdr.token = TOKEN(PROTO_REPORT_AL_MAP, port->mask, fcmd->token); in socal_hw_enque()
529 request->shdr.token = TOKEN(fcmd->proto, port->mask, fcmd->token); in socal_hw_enque()
585 SOD(("queueing token %08x\n", request->shdr.token)) in socal_hw_enque()