Lines Matching refs:levdatum
453 struct level_datum *levdatum; in sens_index() local
456 levdatum = datum; in sens_index()
459 if (!levdatum->isalias) { in sens_index()
460 if (!levdatum->level->sens || in sens_index()
461 levdatum->level->sens > p->p_levels.nprim) in sens_index()
464 if (flex_array_put_ptr(fa, levdatum->level->sens - 1, key, in sens_index()
732 struct level_datum *levdatum; in sens_destroy() local
736 levdatum = datum; in sens_destroy()
737 if (levdatum->level) in sens_destroy()
738 ebitmap_destroy(&levdatum->level->cat); in sens_destroy()
739 kfree(levdatum->level); in sens_destroy()
1596 struct level_datum *levdatum; in sens_read() local
1601 levdatum = kzalloc(sizeof(*levdatum), GFP_ATOMIC); in sens_read()
1602 if (!levdatum) in sens_read()
1610 levdatum->isalias = le32_to_cpu(buf[1]); in sens_read()
1617 levdatum->level = kmalloc(sizeof(*levdatum->level), GFP_ATOMIC); in sens_read()
1618 if (!levdatum->level) in sens_read()
1621 rc = mls_read_level(levdatum->level, fp); in sens_read()
1625 rc = hashtab_insert(h, key, levdatum); in sens_read()
1630 sens_destroy(key, levdatum, NULL); in sens_read()
2649 struct level_datum *levdatum = datum; in sens_write() local
2658 buf[1] = cpu_to_le32(levdatum->isalias); in sens_write()
2667 rc = mls_write_level(levdatum->level, fp); in sens_write()