Lines Matching refs:buffer
64 (memcmp(psTransport->pCachedServiceNames[i].sServiceName.buffer, psServiceName->buffer, psServiceName->length) == 0))
134 psServiceName->buffer);
210 && !memcmp(pServiceName->buffer, pSocket->sServiceName.buffer, pServiceName->length))
216 if (pCachedServiceName->sServiceName.buffer != NULL)
219 (memcmp(pCachedServiceName->sServiceName.buffer, pServiceName->buffer, pServiceName->length) == 0))
231 pCachedServiceName->sServiceName.buffer = phOsalNfc_GetMemory(pServiceName->length);
232 if (pCachedServiceName->sServiceName.buffer == NULL)
237 memcpy(pCachedServiceName->sServiceName.buffer, pServiceName->buffer, pServiceName->length);
267 /* Prepare the info buffer */
268 sInfoBuffer.buffer = psTransport->pDiscoveryBuffer;
294 /* Update buffer length to match real TLV size */
330 /* Prepare buffer */
331 sResponseData.buffer = psTransport->pDiscoveryBuffer;
351 nTid = sValue.buffer[0];
353 sServiceName.buffer = sValue.buffer + 1;
358 && !memcmp(sServiceName.buffer, PHFRINFC_LLCP_SERVICENAME_SDP, sServiceName.length))
386 different TID values), drop invalid requests to avoid buffer overflow
403 nTid = sValue.buffer[0];
409 nSap = sValue.buffer[1];
461 phFriNfc_Llcp_Buffer2Header( psData->buffer,0x00, &sLlcpLocalHeader);
470 /* Update the buffer pointer */
471 psData->buffer = psData->buffer + PHFRINFC_LLCP_PACKET_HEADER_SIZE;
577 sFrmrBuffer.buffer = psTransport->FrmrInfoBuffer;
730 if (pLlcpTransport->pSocketTable[i].sServiceName.buffer != NULL) {
731 phOsalNfc_FreeMemory(pLlcpTransport->pSocketTable[i].sServiceName.buffer);
733 pLlcpTransport->pSocketTable[i].sServiceName.buffer = NULL;
790 if (pCachedServiceName->sServiceName.buffer != NULL)
792 phOsalNfc_FreeMemory(pCachedServiceName->sServiceName.buffer);
793 pCachedServiceName->sServiceName.buffer = NULL;
905 sFrmrBuffer.buffer = psTransport->FrmrInfoBuffer;
958 psTransport->sDmPayload.buffer = &psTransport->DmInfoBuffer[2];
1089 /* Prepare the info buffer */
1090 sInfoBuffer.buffer = psTransport->pDiscoveryBuffer;
1115 /* Update buffer length to match real TLV size */
1171 * must provide a working buffer to the socket in order to handle incoming data. This buffer
1173 * used as a linear buffer to store incoming data as a stream. Data will be readable later
1175 * The options and working buffer are not required if the socket is used as a listening socket,
1181 * \param[in] psWorkingBuffer A working buffer to be used by the library.
1191 * \retval NFCSTATUS_BUFFER_TOO_SMALL The working buffer is too small for the MIU and RW
1274 /* Set the Max length for the Send and Receive Window Buffer */
1287 /* Set the pointer and the length for the Receive Window Buffer */
1290 pLlcpTransport->pSocketTable[index].sSocketRwBufferTable[cpt].buffer = psWorkingBuffer->buffer + (cpt*pLlcpTransport->pSocketTable[index].sSocketOption.miu);
1294 /* Set the pointer and the length for the Send Buffer */
1295 pLlcpTransport->pSocketTable[index].sSocketSendBuffer.buffer = psWorkingBuffer->buffer + pLlcpTransport->pSocketTable[index].bufferRwMaxLength;
1298 /** Set the pointer and the length for the Linear Buffer */
1299 pLlcpTransport->pSocketTable[index].sSocketLinearBuffer.buffer = psWorkingBuffer->buffer + pLlcpTransport->pSocketTable[index].bufferRwMaxLength + pLlcpTransport->pSocketTable[index].bufferSendMaxLength;
1306 pLlcpTransport->pSocketTable[index].sSocketLinearBuffer.buffer,
1313 /* Determine how many packets can be bufferized in working buffer */
1332 pLlcpTransport->pSocketTable[index].sSocketRwBufferTable[cpt].buffer = psWorkingBuffer->buffer + (cpt*(pLlcpTransport->pLlcp->sLocalParams.miu + 1));
1589 bSnMatch = (memcmp(psTransport->pCachedServiceNames[index].sServiceName.buffer, psServiceName->buffer, psServiceName->length) == 0);
1606 if (pLlcpSocket->sServiceName.buffer != NULL)
1608 phOsalNfc_FreeMemory(pLlcpSocket->sServiceName.buffer);
1610 pLlcpSocket->sServiceName.buffer = NULL;
1630 if(memcmp(pCurrentSocket->sServiceName.buffer, psServiceName->buffer, psServiceName->length) == 0)
1639 pLlcpSocket->sServiceName.buffer = phOsalNfc_GetMemory(psServiceName->length);
1640 if (pLlcpSocket->sServiceName.buffer == NULL)
1644 memcpy(pLlcpSocket->sServiceName.buffer, psServiceName->buffer, psServiceName->length);
1660 * \param[in] psWorkingBuffer A working buffer to be used by the library.
1668 * \retval NFCSTATUS_BUFFER_TOO_SMALL The working buffer is too small for the MIU and RW
1703 /* Set the Max length for the Send and Receive Window Buffer */
2016 * \param[in] psBuffer The buffer containing the data to send.
2053 /* Test the length of the buffer */
2079 * size of the reception buffer, but can also return less bytes if less bytes
2086 * \param[in] psBuffer The buffer receiving the data.
2153 * \param[in] psBuffer The buffer containing the data to send.
2209 /* Test the length of the socket buffer for ConnectionLess mode*/
2242 * \param[in] psBuffer The buffer receiving the data.