Lines Matching refs:pOutTlv
1267 u16 NANTLV_WriteTlv(pNanTlv pInTlv, u8 *pOutTlv) in NANTLV_WriteTlv() argument
1278 if (!pOutTlv) in NANTLV_WriteTlv()
1284 *pOutTlv++ = pInTlv->type & 0xFF; in NANTLV_WriteTlv()
1285 *pOutTlv++ = (pInTlv->type & 0xFF00) >> 8; in NANTLV_WriteTlv()
1290 *pOutTlv++ = pInTlv->length & 0xFF; in NANTLV_WriteTlv()
1291 *pOutTlv++ = (pInTlv->length & 0xFF00) >> 8; in NANTLV_WriteTlv()
1298 *pOutTlv++ = pInTlv->value[i]; in NANTLV_WriteTlv()
1306 u16 NANTLV_ReadTlv(u8 *pInTlv, pNanTlv pOutTlv) in NANTLV_ReadTlv() argument
1316 if (!pOutTlv) in NANTLV_ReadTlv()
1322 pOutTlv->type = *pInTlv++; in NANTLV_ReadTlv()
1323 pOutTlv->type |= *pInTlv++ << 8; in NANTLV_ReadTlv()
1326 ALOGV("READ TLV type %u, readLen %u", pOutTlv->type, readLen); in NANTLV_ReadTlv()
1328 pOutTlv->length = *pInTlv++; in NANTLV_ReadTlv()
1329 pOutTlv->length |= *pInTlv++ << 8; in NANTLV_ReadTlv()
1332 ALOGV("READ TLV length %u, readLen %u", pOutTlv->length, readLen); in NANTLV_ReadTlv()
1334 if (pOutTlv->length) { in NANTLV_ReadTlv()
1335 pOutTlv->value = pInTlv; in NANTLV_ReadTlv()
1336 readLen += pOutTlv->length; in NANTLV_ReadTlv()
1338 pOutTlv->value = NULL; in NANTLV_ReadTlv()
1345 u8* addTlv(u16 type, u16 length, const u8* value, u8* pOutTlv) in addTlv() argument
1354 len = NANTLV_WriteTlv(&nanTlv, pOutTlv); in addTlv()
1355 return (pOutTlv + len); in addTlv()