Lines Matching refs:fp
221 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) in cond_read_bool() argument
233 rc = next_entry(buf, fp, sizeof buf); in cond_read_bool()
250 rc = next_entry(key, fp, len); in cond_read_bool()
352 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
362 rc = next_entry(buf, fp, sizeof(u32)); in cond_read_av_list()
375 rc = avtab_read_item(&p->te_cond_avtab, fp, p, cond_insertf, in cond_read_av_list()
399 static int cond_read_node(struct policydb *p, struct cond_node *node, void *fp) in cond_read_node() argument
406 rc = next_entry(buf, fp, sizeof(u32) * 2); in cond_read_node()
416 rc = next_entry(buf, fp, sizeof(u32) * 2); in cond_read_node()
441 rc = cond_read_av_list(p, fp, &node->true_list, NULL); in cond_read_node()
444 rc = cond_read_av_list(p, fp, &node->false_list, node->true_list); in cond_read_node()
453 int cond_read_list(struct policydb *p, void *fp) in cond_read_list() argument
460 rc = next_entry(buf, fp, sizeof buf); in cond_read_list()
476 rc = cond_read_node(p, node, fp); in cond_read_list()
498 void *fp = pd->fp; in cond_write_bool() local
507 rc = put_entry(buf, sizeof(u32), 3, fp); in cond_write_bool()
510 rc = put_entry(key, 1, len, fp); in cond_write_bool()
526 struct cond_av_list *list, struct policy_file *fp) in cond_write_av_list() argument
538 rc = put_entry(buf, sizeof(u32), 1, fp); in cond_write_av_list()
546 rc = avtab_write_item(p, cur_list->node, fp); in cond_write_av_list()
555 struct policy_file *fp) in cond_write_node() argument
563 rc = put_entry(buf, sizeof(u32), 1, fp); in cond_write_node()
571 rc = put_entry(buf, sizeof(u32), 1, fp); in cond_write_node()
578 rc = put_entry(buf, sizeof(u32), 2, fp); in cond_write_node()
583 rc = cond_write_av_list(p, node->true_list, fp); in cond_write_node()
586 rc = cond_write_av_list(p, node->false_list, fp); in cond_write_node()
593 int cond_write_list(struct policydb *p, struct cond_node *list, void *fp) in cond_write_list() argument
604 rc = put_entry(buf, sizeof(u32), 1, fp); in cond_write_list()
609 rc = cond_write_node(p, cur, fp); in cond_write_list()