Lines Matching refs:cp
8 cn_cbor* cp; in cn_cbor_mapget_int() local
10 for (cp = cb->first_child; cp && cp->next; cp = cp->next->next) { in cn_cbor_mapget_int()
11 switch(cp->type) { in cn_cbor_mapget_int()
13 if (cp->v.uint == (unsigned long)key) { in cn_cbor_mapget_int()
14 return cp->next; in cn_cbor_mapget_int()
18 if (cp->v.sint == (long)key) { in cn_cbor_mapget_int()
19 return cp->next; in cn_cbor_mapget_int()
30 cn_cbor *cp; in cn_cbor_mapget_string() local
35 for (cp = cb->first_child; cp && cp->next; cp = cp->next->next) { in cn_cbor_mapget_string()
36 switch(cp->type) { in cn_cbor_mapget_string()
39 if (keylen != cp->length) { in cn_cbor_mapget_string()
42 if (memcmp(key, cp->v.str, keylen) == 0) { in cn_cbor_mapget_string()
43 return cp->next; in cn_cbor_mapget_string()
53 cn_cbor *cp; in cn_cbor_index() local
56 for (cp = cb->first_child; cp; cp = cp->next) { in cn_cbor_index()
58 return cp; in cn_cbor_index()