Lines Matching refs:comdatum
189 struct common_datum *comdatum; in common_destroy() local
193 comdatum = datum; in common_destroy()
194 hashtab_map(&comdatum->permissions.table, perm_destroy, NULL); in common_destroy()
195 hashtab_destroy(&comdatum->permissions.table); in common_destroy()
552 struct common_datum *comdatum; in common_index() local
554 comdatum = datum; in common_index()
556 if (!comdatum->value || comdatum->value > p->p_commons.nprim) in common_index()
559 p->sym_val_to_name[SYM_COMMONS][comdatum->value - 1] = key; in common_index()
1128 struct common_datum *comdatum; in common_read() local
1133 comdatum = kzalloc(sizeof(*comdatum), GFP_KERNEL); in common_read()
1134 if (!comdatum) in common_read()
1142 comdatum->value = le32_to_cpu(buf[1]); in common_read()
1145 rc = symtab_init(&comdatum->permissions, nel); in common_read()
1148 comdatum->permissions.nprim = le32_to_cpu(buf[2]); in common_read()
1155 rc = perm_read(p, &comdatum->permissions, fp); in common_read()
1160 rc = symtab_insert(s, key, comdatum); in common_read()
1165 common_destroy(key, comdatum, NULL); in common_read()
1327 cladatum->comdatum = symtab_search(&p->p_commons, in class_read()
1329 if (!cladatum->comdatum) { in class_read()
1789 struct common_datum *comdatum; in string_to_av_perm() local
1795 comdatum = cladatum->comdatum; in string_to_av_perm()
1796 if (comdatum) in string_to_av_perm()
1797 perdatum = symtab_search(&comdatum->permissions, name); in string_to_av_perm()
2942 struct common_datum *comdatum = datum; in common_write() local
2951 buf[1] = cpu_to_le32(comdatum->value); in common_write()
2952 buf[2] = cpu_to_le32(comdatum->permissions.nprim); in common_write()
2953 buf[3] = cpu_to_le32(comdatum->permissions.table.nel); in common_write()
2962 rc = hashtab_map(&comdatum->permissions.table, perm_write, fp); in common_write()