Lines Matching refs:p_dst

172     UINT8 *p_dst, *p_rsp_start;
182 p_dst = p_rsp_start = (UINT8 *) (p_rsp_msg+1) + p_rsp_msg->offset;
185 UINT8_TO_STREAM (p_dst, opcode);
188 ARRAY_TO_STREAM (p_dst, p_nfcid2, NCI_RF_F_UID_LEN);
191 UINT8_TO_STREAM (p_dst, status1);
192 UINT8_TO_STREAM (p_dst, status2);
194 p_rsp_msg->len = (UINT16) (p_dst - p_rsp_start);
402 UINT8 *p_dst, *p_temp, *p_status;
411 p_dst = p_rsp_start = (UINT8 *) (p_rsp_msg+1) + p_rsp_msg->offset;
414 UINT8_TO_STREAM (p_dst, T3T_MSG_OPC_CHECK_RSP);
417 ARRAY_TO_STREAM (p_dst, p_cb->local_nfcid2, NCI_RF_F_UID_LEN);
420 p_status = p_dst;
423 UINT8_TO_STREAM (p_dst, T3T_MSG_RSP_STATUS_OK);
424 UINT8_TO_STREAM (p_dst, T3T_MSG_RSP_STATUS_OK);
425 UINT8_TO_STREAM (p_dst, p_cb->cur_cmd.num_blocks);
453 p_dst = p_status;
454 UINT8_TO_STREAM (p_dst, T3T_MSG_RSP_STATUS_ERROR);
455 UINT8_TO_STREAM (p_dst, T3T_MSG_RSP_STATUS2_ERROR_MEMORY);
461 p_temp = p_dst;
475 UINT8_TO_STREAM (p_dst, p_cb->ndef_info.version);
476 UINT8_TO_STREAM (p_dst, p_cb->ndef_info.nbr);
477 UINT8_TO_STREAM (p_dst, p_cb->ndef_info.nbw);
478 UINT16_TO_BE_STREAM (p_dst, p_cb->ndef_info.nmaxb);
479 UINT32_TO_STREAM (p_dst, 0);
480 UINT8_TO_STREAM (p_dst, ndef_writef);
481 UINT8_TO_STREAM (p_dst, p_cb->ndef_info.rwflag);
482 UINT8_TO_STREAM (p_dst, (ndef_len >> 16 & 0xFF));
483 UINT16_TO_BE_STREAM (p_dst, (ndef_len & 0xFFFF));
490 UINT16_TO_BE_STREAM (p_dst, checksum);
498 p_dst = p_status;
503 UINT8_TO_STREAM (p_dst, T3T_MSG_RSP_STATUS_ERROR);
504 UINT8_TO_STREAM (p_dst, T3T_MSG_RSP_STATUS2_ERROR_MEMORY);
512 ARRAY_TO_STREAM (p_dst, (&p_cb->ndef_info.p_scratch_buf[(block_number-1) * T3T_MSG_BLOCKSIZE]), T3T_MSG_BLOCKSIZE);
516 ARRAY_TO_STREAM (p_dst, (&p_cb->ndef_info.p_buf[(block_number-1) * T3T_MSG_BLOCKSIZE]), T3T_MSG_BLOCKSIZE);
526 p_dst = p_status;
527 UINT8_TO_STREAM (p_dst, T3T_MSG_RSP_STATUS_ERROR);
528 UINT8_TO_STREAM (p_dst, T3T_MSG_RSP_STATUS2_ERROR_MEMORY);
533 p_rsp_msg->len = (UINT16) (p_dst - p_rsp_start);
559 UINT8 *p_dst;
567 p_dst = p_rsp_start = (UINT8 *) (p_rsp_msg+1) + p_rsp_msg->offset;
582 UINT8_TO_STREAM (p_dst, T3T_MSG_OPC_POLL_RSP);
585 ARRAY_TO_STREAM (p_dst, p_cb->local_nfcid2, NCI_RF_F_UID_LEN);
588 ARRAY_TO_STREAM (p_dst, p_cb->local_pmm, NCI_T3T_PMM_LEN);
593 UINT16_TO_BE_STREAM (p_dst, p_cb->system_code);
605 UINT8_TO_STREAM (p_dst, T3T_MSG_OPC_REQ_RESPONSE_RSP);
608 ARRAY_TO_STREAM (p_dst, p_cb->local_nfcid2, NCI_RF_F_UID_LEN);
611 UINT8_TO_STREAM (p_dst, 0);
616 UINT8_TO_STREAM (p_dst, T3T_MSG_OPC_REQ_SYSTEMCODE_RSP);
619 ARRAY_TO_STREAM (p_dst, p_cb->local_nfcid2, NCI_RF_F_UID_LEN);
622 UINT8_TO_STREAM (p_dst, 1);
625 UINT16_TO_BE_STREAM (p_dst, T3T_SYSTEM_CODE_NDEF);
639 p_rsp_msg->len = (UINT16) (p_dst - p_rsp_start);
1000 UINT8 *p_dst, *p_rsp_start;
1013 p_dst = p_rsp_start = (UINT8 *) (p_rsp_msg+1) + p_rsp_msg->offset;
1016 UINT8_TO_STREAM (p_dst, T3T_MSG_OPC_CHECK_RSP);
1019 ARRAY_TO_STREAM (p_dst, p_cb->local_nfcid2, NCI_RF_F_UID_LEN);
1022 UINT8_TO_STREAM (p_dst, status1);
1023 UINT8_TO_STREAM (p_dst, status2);
1027 UINT8_TO_STREAM (p_dst, num_blocks);
1028 ARRAY_TO_STREAM (p_dst, p_block_data, (num_blocks * T3T_MSG_BLOCKSIZE));
1031 p_rsp_msg->len = (UINT16) (p_dst - p_rsp_start);