Lines Matching refs:payload
130 static void BuildLinkServicePayload(PTACHYON fcChip, u32 type, void *payload);
2949 static void BuildLinkServicePayload(PTACHYON fcChip, u32 type, void *payload) in BuildLinkServicePayload() argument
3032 BigEndianSwap((u8 *) & PlogiPayload, payload, sizeof(PlogiPayload)); in BuildLinkServicePayload()
3038 BigEndianSwap((u8 *) & PlogiPayload, payload, 4); in BuildLinkServicePayload()
3054 BigEndianSwap((u8 *) & scr, payload, sizeof(SCR_PL)); in BuildLinkServicePayload()
3072 BigEndianSwap((u8 *) & nsr, payload, sizeof(NSR_PL)); in BuildLinkServicePayload()
3091 BigEndianSwap((u8 *) & LogoutPayload, payload, sizeof(LogoutPayload)); // 16 u8 struct in BuildLinkServicePayload()
3098 BigEndianSwap((u8 *) & LogoutPayload, payload, 4); // 4 u8 cmnd in BuildLinkServicePayload()
3102 prjt = (REJECT_MESSAGE *) payload; // pick up passed data in BuildLinkServicePayload()
3110 BigEndianSwap((u8 *) & rjt, payload, 8); // 8 u8 cmnd in BuildLinkServicePayload()
3138 BigEndianSwap((u8 *) & PrliPayload, payload, prli->payload_length); in BuildLinkServicePayload()
3254 static int build_FCP_payload(Scsi_Cmnd * Cmnd, u8 * payload, u32 type, u32 fcp_dl);
5284 static int build_FCP_payload(Scsi_Cmnd * Cmnd, u8 * payload, u32 type, u32 fcp_dl) in build_FCP_payload() argument
5298 *payload++ = (u8) Cmnd->SCp.phase; in build_FCP_payload()
5305 *payload++ = (u8) Cmnd->SCp.have_data_in; in build_FCP_payload()
5311 *payload++ = 0; // 2nd level addressing in build_FCP_payload()
5312 *payload++ = 0; in build_FCP_payload()
5313 *payload++ = 0; // 3rd level addressing in build_FCP_payload()
5314 *payload++ = 0; in build_FCP_payload()
5315 *payload++ = 0; // 4th level addressing in build_FCP_payload()
5316 *payload++ = 0; in build_FCP_payload()
5319 *payload++ = 0; // byte 0: (MSB) reserved in build_FCP_payload()
5320 *payload++ = 0; // byte 1: task codes in build_FCP_payload()
5327 *payload++ = 0x20; // target device reset bit in build_FCP_payload()
5329 *payload++ = 0; // no TDR in build_FCP_payload()
5335 *payload++ = 1; in build_FCP_payload()
5337 *payload++ = 2; in build_FCP_payload()
5342 *payload++ = 0; // no data (necessary for CPQ) in build_FCP_payload()
5350 *payload++ = Cmnd->cmnd[i]; in build_FCP_payload()
5353 memcpy(payload, &Cmnd->SCp.buffers_residual, 4); in build_FCP_payload()
5355 payload += (16 - i); in build_FCP_payload()
5359 *payload++ = (u8) (fcp_dl >> 24); // (MSB) 8 bytes data len FCP_DL in build_FCP_payload()
5360 *payload++ = (u8) (fcp_dl >> 16); in build_FCP_payload()
5361 *payload++ = (u8) (fcp_dl >> 8); in build_FCP_payload()
5362 *payload++ = (u8) fcp_dl; // (LSB) in build_FCP_payload()
5366 *payload++ = 0; // (4 bytes) DATA_RO (MSB byte 0) in build_FCP_payload()
5367 *payload++ = 0; in build_FCP_payload()
5368 *payload++ = 0; in build_FCP_payload()
5369 *payload++ = 0; // LSB (byte 3) in build_FCP_payload()
5372 *payload++ = (u8) (fcp_dl >> 24); // (MSB) 8 bytes data len FCP_DL in build_FCP_payload()
5373 *payload++ = (u8) (fcp_dl >> 16); in build_FCP_payload()
5374 *payload++ = (u8) (fcp_dl >> 8); in build_FCP_payload()
5375 *payload++ = (u8) fcp_dl; // (LSB) in build_FCP_payload()
5377 *payload++ = 0; in build_FCP_payload()
5378 *payload++ = 0; in build_FCP_payload()
5379 *payload++ = 0; in build_FCP_payload()
5380 *payload++ = 0; in build_FCP_payload()