Lines Matching refs:comdatum
188 struct common_datum *comdatum; in common_destroy() local
192 comdatum = datum; in common_destroy()
193 hashtab_map(&comdatum->permissions.table, perm_destroy, NULL); in common_destroy()
194 hashtab_destroy(&comdatum->permissions.table); in common_destroy()
546 struct common_datum *comdatum; in common_index() local
548 comdatum = datum; in common_index()
550 if (!comdatum->value || comdatum->value > p->p_commons.nprim) in common_index()
553 p->sym_val_to_name[SYM_COMMONS][comdatum->value - 1] = key; in common_index()
1152 struct common_datum *comdatum; in common_read() local
1157 comdatum = kzalloc(sizeof(*comdatum), GFP_KERNEL); in common_read()
1158 if (!comdatum) in common_read()
1166 comdatum->value = le32_to_cpu(buf[1]); in common_read()
1169 rc = symtab_init(&comdatum->permissions, nel); in common_read()
1172 comdatum->permissions.nprim = le32_to_cpu(buf[2]); in common_read()
1179 rc = perm_read(p, &comdatum->permissions, fp); in common_read()
1184 hash_eval(&comdatum->permissions.table, "common_permissions", key); in common_read()
1186 rc = symtab_insert(s, key, comdatum); in common_read()
1191 common_destroy(key, comdatum, NULL); in common_read()
1352 cladatum->comdatum = in class_read()
1354 if (!cladatum->comdatum) { in class_read()
1822 struct common_datum *comdatum; in string_to_av_perm() local
1828 comdatum = cladatum->comdatum; in string_to_av_perm()
1829 if (comdatum) in string_to_av_perm()
1830 perdatum = symtab_search(&comdatum->permissions, name); in string_to_av_perm()
2992 struct common_datum *comdatum = datum; in common_write() local
3001 buf[1] = cpu_to_le32(comdatum->value); in common_write()
3002 buf[2] = cpu_to_le32(comdatum->permissions.nprim); in common_write()
3003 buf[3] = cpu_to_le32(comdatum->permissions.table.nel); in common_write()
3012 rc = hashtab_map(&comdatum->permissions.table, perm_write, fp); in common_write()