Lines Matching refs:datum

71 		  const struct avtab_key *key, const struct avtab_datum *datum)  in avtab_insert_node()  argument
86 *xperms = *(datum->u.xperms); in avtab_insert_node()
87 newnode->datum.u.xperms = xperms; in avtab_insert_node()
89 newnode->datum.u.data = datum->u.data; in avtab_insert_node()
107 const struct avtab_datum *datum) in avtab_insert() argument
140 newnode = avtab_insert_node(h, hvalue, prev, cur, key, datum); in avtab_insert()
153 const struct avtab_datum *datum) in avtab_insert_nonunique() argument
180 return avtab_insert_node(h, hvalue, prev, cur, key, datum); in avtab_insert_nonunique()
199 return &cur->datum; in avtab_search()
294 temp->datum.u.xperms); in avtab_destroy()
409 struct avtab_datum datum; in avtab_read_item() local
416 memset(&datum, 0, sizeof(struct avtab_datum)); in avtab_read_item()
476 datum.u.data = le32_to_cpu(buf32[items++]); in avtab_read_item()
477 rc = insertf(a, &key, &datum, p); in avtab_read_item()
545 datum.u.xperms = &xperms; in avtab_read_item()
552 datum.u.data = le32_to_cpu(*buf32); in avtab_read_item()
555 !policydb_type_isvalid(pol, datum.u.data)) { in avtab_read_item()
559 return insertf(a, &key, &datum, p); in avtab_read_item()
615 __le32 buf32[ARRAY_SIZE(cur->datum.u.xperms->perms.p)]; in avtab_write_item()
628 rc = put_entry(&cur->datum.u.xperms->specified, sizeof(u8), 1, fp); in avtab_write_item()
631 rc = put_entry(&cur->datum.u.xperms->driver, sizeof(u8), 1, fp); in avtab_write_item()
634 for (i = 0; i < ARRAY_SIZE(cur->datum.u.xperms->perms.p); i++) in avtab_write_item()
635 buf32[i] = cpu_to_le32(cur->datum.u.xperms->perms.p[i]); in avtab_write_item()
637 ARRAY_SIZE(cur->datum.u.xperms->perms.p), fp); in avtab_write_item()
639 buf32[0] = cpu_to_le32(cur->datum.u.data); in avtab_write_item()