Lines Matching defs:typdatum
604 struct type_datum *typdatum;
606 typdatum = datum;
609 if (typdatum->primary) {
610 if (!typdatum->value
611 || typdatum->value > p->p_types.nprim
612 || typdatum->bounds > p->p_types.nprim)
614 p->sym_val_to_name[SYM_TYPES][typdatum->value - 1] = key;
615 p->type_val_to_struct[typdatum->value - 1] = typdatum;
1449 struct type_datum *typdatum;
1454 typdatum = kzalloc(sizeof(*typdatum), GFP_KERNEL);
1455 if (!typdatum)
1466 typdatum->value = le32_to_cpu(buf[1]);
1471 typdatum->primary = 1;
1473 typdatum->attribute = 1;
1475 typdatum->bounds = le32_to_cpu(buf[3]);
1477 typdatum->primary = le32_to_cpu(buf[2]);
1484 rc = symtab_insert(s, key, typdatum);
1489 type_destroy(key, typdatum, NULL);
3168 struct type_datum *typdatum = datum;
3179 buf[items++] = cpu_to_le32(typdatum->value);
3183 if (typdatum->primary)
3186 if (typdatum->attribute)
3190 buf[items++] = cpu_to_le32(typdatum->bounds);
3192 buf[items++] = cpu_to_le32(typdatum->primary);