Lines Matching refs:typdatum
386 struct type_datum *typdatum; in type_index() local
389 typdatum = datum; in type_index()
392 if (typdatum->primary) { in type_index()
393 if (!typdatum->value in type_index()
394 || typdatum->value > p->p_types.nprim in type_index()
395 || typdatum->bounds > p->p_types.nprim) in type_index()
398 if (flex_array_put_ptr(fa, typdatum->value - 1, key, in type_index()
403 if (flex_array_put_ptr(fa, typdatum->value - 1, typdatum, in type_index()
1461 struct type_datum *typdatum; in type_read() local
1467 typdatum = kzalloc(sizeof(*typdatum), GFP_KERNEL); in type_read()
1468 if (!typdatum) in type_read()
1479 typdatum->value = le32_to_cpu(buf[1]); in type_read()
1484 typdatum->primary = 1; in type_read()
1486 typdatum->attribute = 1; in type_read()
1488 typdatum->bounds = le32_to_cpu(buf[3]); in type_read()
1490 typdatum->primary = le32_to_cpu(buf[2]); in type_read()
1497 rc = hashtab_insert(h, key, typdatum); in type_read()
1502 type_destroy(key, typdatum, NULL); in type_read()
2962 struct type_datum *typdatum = datum; in type_write() local
2973 buf[items++] = cpu_to_le32(typdatum->value); in type_write()
2977 if (typdatum->primary) in type_write()
2980 if (typdatum->attribute) in type_write()
2984 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()
2986 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()