Lines Matching refs:ip
88 free_conf_item(struct spdk_conf_item *ip) in free_conf_item() argument
90 if (ip == NULL) { in free_conf_item()
94 if (ip->val != NULL) { in free_conf_item()
95 free_all_conf_value(ip->val); in free_conf_item()
98 if (ip->key != NULL) { in free_conf_item()
99 free(ip->key); in free_conf_item()
102 free(ip); in free_conf_item()
106 free_all_conf_item(struct spdk_conf_item *ip) in free_all_conf_item() argument
110 if (ip == NULL) { in free_all_conf_item()
114 while (ip != NULL) { in free_all_conf_item()
115 next = ip->next; in free_all_conf_item()
116 free_conf_item(ip); in free_all_conf_item()
117 ip = next; in free_all_conf_item()
263 struct spdk_conf_item *ip; in find_cf_nitem() local
271 for (ip = sp->item; ip != NULL; ip = ip->next) { in find_cf_nitem()
272 if (ip->key != NULL && ip->key[0] == key[0] in find_cf_nitem()
273 && strcasecmp(ip->key, key) == 0) { in find_cf_nitem()
275 return ip; in find_cf_nitem()
285 append_cf_item(struct spdk_conf_section *sp, struct spdk_conf_item *ip) in append_cf_item() argument
294 sp->item = ip; in append_cf_item()
300 last->next = ip; in append_cf_item()
304 append_cf_value(struct spdk_conf_item *ip, struct spdk_conf_value *vp) in append_cf_value() argument
308 if (ip == NULL) { in append_cf_value()
312 if (ip->val == NULL) { in append_cf_value()
313 ip->val = vp; in append_cf_value()
317 for (last = ip->val; last->next != NULL; last = last->next) in append_cf_value()
343 struct spdk_conf_item *ip; in spdk_conf_section_get_nmval() local
347 ip = find_cf_nitem(sp, key, idx1); in spdk_conf_section_get_nmval()
348 if (ip == NULL) { in spdk_conf_section_get_nmval()
352 vp = ip->val; in spdk_conf_section_get_nmval()
369 struct spdk_conf_item *ip; in spdk_conf_section_get_nval() local
372 ip = find_cf_nitem(sp, key, idx); in spdk_conf_section_get_nval()
373 if (ip == NULL) { in spdk_conf_section_get_nval()
377 vp = ip->val; in spdk_conf_section_get_nval()
431 struct spdk_conf_item *ip; in parse_line() local
499 ip = allocate_cf_item(); in parse_line()
500 if (ip == NULL) { in parse_line()
504 append_cf_item(sp, ip); in parse_line()
505 ip->key = strdup(key); in parse_line()
506 if (ip->key == NULL) { in parse_line()
510 ip->val = NULL; in parse_line()
520 append_cf_value(ip, vp); in parse_line()