Home | History | Annotate | Download | only in gatt

Lines Matching defs:num_attr

47 static void bta_gattc_cache_write(BD_ADDR server_bda, UINT16 num_attr, tBTA_GATTC_NV_ATTR *attr);
1346 void bta_gattc_rebuild_cache(tBTA_GATTC_SERV *p_srvc_cb, UINT16 num_attr,
1355 while (num_attr > 0 && p_attr != NULL)
1387 num_attr --;
1544 UINT16 num_attr = 0;
1546 if (fread(&num_attr, sizeof(UINT16), 1, fd) != 1) {
1551 attr = osi_malloc(sizeof(tBTA_GATTC_NV_ATTR) * num_attr);
1553 if (fread(attr, sizeof(tBTA_GATTC_NV_ATTR), 0xFF, fd) != num_attr) {
1558 bta_gattc_rebuild_cache(p_clcb->p_srcb, num_attr, attr);
1576 ** num_attr: number of attribute to be save.
1581 static void bta_gattc_cache_write(BD_ADDR server_bda, UINT16 num_attr,
1600 if (fwrite(&num_attr, sizeof(UINT16), 1, fd) != 1) {
1606 if (fwrite(attr, sizeof(tBTA_GATTC_NV_ATTR), num_attr, fd) != num_attr) {