Lines Matching refs:typdatum
599 struct type_datum *typdatum; in type_index() local
601 typdatum = datum; in type_index()
604 if (typdatum->primary) { in type_index()
605 if (!typdatum->value in type_index()
606 || typdatum->value > p->p_types.nprim in type_index()
607 || typdatum->bounds > p->p_types.nprim) in type_index()
609 p->sym_val_to_name[SYM_TYPES][typdatum->value - 1] = key; in type_index()
610 p->type_val_to_struct[typdatum->value - 1] = typdatum; in type_index()
1443 struct type_datum *typdatum; in type_read() local
1448 typdatum = kzalloc(sizeof(*typdatum), GFP_KERNEL); in type_read()
1449 if (!typdatum) in type_read()
1460 typdatum->value = le32_to_cpu(buf[1]); in type_read()
1465 typdatum->primary = 1; in type_read()
1467 typdatum->attribute = 1; in type_read()
1469 typdatum->bounds = le32_to_cpu(buf[3]); in type_read()
1471 typdatum->primary = le32_to_cpu(buf[2]); in type_read()
1478 rc = symtab_insert(s, key, typdatum); in type_read()
1483 type_destroy(key, typdatum, NULL); in type_read()
3161 struct type_datum *typdatum = datum; in type_write() local
3172 buf[items++] = cpu_to_le32(typdatum->value); in type_write()
3176 if (typdatum->primary) in type_write()
3179 if (typdatum->attribute) in type_write()
3183 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()
3185 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()