Lines Matching refs:p_data
97 ** p_data - The parameters for the VS command
103 BT_HDR *p_data,
110 if (p_data == NULL)
112 p_data = NCI_GET_CMD_BUF (0);
113 if (p_data)
115 p_data->offset = NCI_VSC_MSG_HDR_SIZE;
116 p_data->len = 0;
121 if ((p_data == NULL) || (p_data->offset < NCI_VSC_MSG_HDR_SIZE) || (p_data->len > NCI_MAX_VSC_SIZE))
124 if (p_data)
125 GKI_freebuf (p_data);
129 p_data->event = BT_EVT_TO_NFC_NCI;
130 p_data->layer_specific = NFC_WAIT_RSP_VSC;
132 ((tNFC_NCI_VS_MSG *) p_data)->p_cback = p_cback;
134 p_data->offset -= NCI_MSG_HDR_SIZE;
135 pp = (UINT8 *) (p_data + 1) + p_data->offset;
138 *pp = (UINT8) p_data->len;
139 p_data->len += NCI_MSG_HDR_SIZE;
140 nfc_ncif_check_cmd_queue (p_data);