Lines Matching refs:typdatum
604 struct type_datum *typdatum; in type_index() local
606 typdatum = datum; in type_index()
609 if (typdatum->primary) { in type_index()
610 if (!typdatum->value in type_index()
611 || typdatum->value > p->p_types.nprim in type_index()
612 || typdatum->bounds > p->p_types.nprim) in type_index()
614 p->sym_val_to_name[SYM_TYPES][typdatum->value - 1] = key; in type_index()
615 p->type_val_to_struct[typdatum->value - 1] = typdatum; in type_index()
1449 struct type_datum *typdatum; in type_read() local
1454 typdatum = kzalloc(sizeof(*typdatum), GFP_KERNEL); in type_read()
1455 if (!typdatum) in type_read()
1466 typdatum->value = le32_to_cpu(buf[1]); in type_read()
1471 typdatum->primary = 1; in type_read()
1473 typdatum->attribute = 1; in type_read()
1475 typdatum->bounds = le32_to_cpu(buf[3]); in type_read()
1477 typdatum->primary = le32_to_cpu(buf[2]); in type_read()
1484 rc = symtab_insert(s, key, typdatum); in type_read()
1489 type_destroy(key, typdatum, NULL); in type_read()
3167 struct type_datum *typdatum = datum; in type_write() local
3178 buf[items++] = cpu_to_le32(typdatum->value); in type_write()
3182 if (typdatum->primary) in type_write()
3185 if (typdatum->attribute) in type_write()
3189 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()
3191 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()