Lines Matching refs:fp
220 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) in cond_read_bool() argument
232 rc = next_entry(buf, fp, sizeof buf); in cond_read_bool()
249 rc = next_entry(key, fp, len); in cond_read_bool()
351 static int cond_read_av_list(struct policydb *p, void *fp, struct cond_av_list **ret_list, struct c… in cond_read_av_list() argument
361 rc = next_entry(buf, fp, sizeof(u32)); in cond_read_av_list()
374 rc = avtab_read_item(&p->te_cond_avtab, fp, p, cond_insertf, in cond_read_av_list()
398 static int cond_read_node(struct policydb *p, struct cond_node *node, void *fp) in cond_read_node() argument
405 rc = next_entry(buf, fp, sizeof(u32) * 2); in cond_read_node()
415 rc = next_entry(buf, fp, sizeof(u32) * 2); in cond_read_node()
440 rc = cond_read_av_list(p, fp, &node->true_list, NULL); in cond_read_node()
443 rc = cond_read_av_list(p, fp, &node->false_list, node->true_list); in cond_read_node()
452 int cond_read_list(struct policydb *p, void *fp) in cond_read_list() argument
459 rc = next_entry(buf, fp, sizeof buf); in cond_read_list()
475 rc = cond_read_node(p, node, fp); in cond_read_list()
497 void *fp = pd->fp; in cond_write_bool() local
506 rc = put_entry(buf, sizeof(u32), 3, fp); in cond_write_bool()
509 rc = put_entry(key, 1, len, fp); in cond_write_bool()
525 struct cond_av_list *list, struct policy_file *fp) in cond_write_av_list() argument
537 rc = put_entry(buf, sizeof(u32), 1, fp); in cond_write_av_list()
545 rc = avtab_write_item(p, cur_list->node, fp); in cond_write_av_list()
554 struct policy_file *fp) in cond_write_node() argument
562 rc = put_entry(buf, sizeof(u32), 1, fp); in cond_write_node()
570 rc = put_entry(buf, sizeof(u32), 1, fp); in cond_write_node()
577 rc = put_entry(buf, sizeof(u32), 2, fp); in cond_write_node()
582 rc = cond_write_av_list(p, node->true_list, fp); in cond_write_node()
585 rc = cond_write_av_list(p, node->false_list, fp); in cond_write_node()
592 int cond_write_list(struct policydb *p, struct cond_node *list, void *fp) in cond_write_list() argument
603 rc = put_entry(buf, sizeof(u32), 1, fp); in cond_write_list()
608 rc = cond_write_node(p, cur, fp); in cond_write_list()