Lines Matching refs:typdatum
391 struct type_datum *typdatum; in type_index() local
394 typdatum = datum; in type_index()
397 if (typdatum->primary) { in type_index()
398 if (!typdatum->value in type_index()
399 || typdatum->value > p->p_types.nprim in type_index()
400 || typdatum->bounds > p->p_types.nprim) in type_index()
403 if (flex_array_put_ptr(fa, typdatum->value - 1, key, in type_index()
408 if (flex_array_put_ptr(fa, typdatum->value - 1, typdatum, in type_index()
1466 struct type_datum *typdatum; in type_read() local
1472 typdatum = kzalloc(sizeof(*typdatum), GFP_KERNEL); in type_read()
1473 if (!typdatum) in type_read()
1484 typdatum->value = le32_to_cpu(buf[1]); in type_read()
1489 typdatum->primary = 1; in type_read()
1491 typdatum->attribute = 1; in type_read()
1493 typdatum->bounds = le32_to_cpu(buf[3]); in type_read()
1495 typdatum->primary = le32_to_cpu(buf[2]); in type_read()
1502 rc = hashtab_insert(h, key, typdatum); in type_read()
1507 type_destroy(key, typdatum, NULL); in type_read()
2967 struct type_datum *typdatum = datum; in type_write() local
2978 buf[items++] = cpu_to_le32(typdatum->value); in type_write()
2982 if (typdatum->primary) in type_write()
2985 if (typdatum->attribute) in type_write()
2989 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()
2991 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()