Lines Matching defs:sServiceName
63 if((psTransport->pCachedServiceNames[i].sServiceName.length > 0) &&
64 (memcmp(psTransport->pCachedServiceNames[i].sServiceName.buffer, psServiceName->buffer, psServiceName->length) == 0))
209 (pServiceName->length == pSocket->sServiceName.length)
210 && !memcmp(pServiceName->buffer, pSocket->sServiceName.buffer, pServiceName->length))
216 if (pCachedServiceName->sServiceName.buffer != NULL)
218 if ((pCachedServiceName->sServiceName.length == pServiceName->length) &&
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);
238 pCachedServiceName->sServiceName.length = pServiceName->length;
320 phNfc_sData_t sServiceName;
353 sServiceName.buffer = sValue.buffer + 1;
354 sServiceName.length = sValue.length - 1;
357 if((sServiceName.length == sizeof(PHFRINFC_LLCP_SERVICENAME_SDP)-1)
358 && !memcmp(sServiceName.buffer, PHFRINFC_LLCP_SERVICENAME_SDP, sServiceName.length))
365 pSocket = phFriNfc_LlcpTransport_ServiceNameLoockup(psTransport, &sServiceName);
730 if (pLlcpTransport->pSocketTable[i].sServiceName.buffer != NULL) {
731 phOsalNfc_FreeMemory(pLlcpTransport->pSocketTable[i].sServiceName.buffer);
733 pLlcpTransport->pSocketTable[i].sServiceName.buffer = NULL;
734 pLlcpTransport->pSocketTable[i].sServiceName.length = 0;
790 if (pCachedServiceName->sServiceName.buffer != NULL)
792 phOsalNfc_FreeMemory(pCachedServiceName->sServiceName.buffer);
793 pCachedServiceName->sServiceName.buffer = NULL;
795 pCachedServiceName->sServiceName.length = 0;
1583 if(psTransport->pCachedServiceNames[index].sServiceName.length == 0)
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;
1611 pLlcpSocket->sServiceName.length = 0;
1626 if(pCurrentSocket->sServiceName.length != psServiceName->length) {
1630 if(memcmp(pCurrentSocket->sServiceName.buffer, psServiceName->buffer, psServiceName->length) == 0)
1638 pLlcpSocket->sServiceName.length = psServiceName->length;
1639 pLlcpSocket->sServiceName.buffer = phOsalNfc_GetMemory(psServiceName->length);
1640 if (pLlcpSocket->sServiceName.buffer == NULL)
1644 memcpy(pLlcpSocket->sServiceName.buffer, psServiceName->buffer, psServiceName->length);
1825 else if(pLlcpSocket->sServiceName.length != 0)