Lines Matching refs:typdatum
292 struct type_datum *typdatum;
294 typdatum = datum;
297 if (typdatum->primary) {
298 if (!typdatum->value
299 || typdatum->value > p->p_types.nprim
300 || typdatum->bounds > p->p_types.nprim)
302 p->p_type_val_to_name[typdatum->value - 1] = key;
303 p->type_val_to_struct[typdatum->value - 1] = typdatum;
1302 struct type_datum *typdatum;
1307 typdatum = kzalloc(sizeof(*typdatum), GFP_KERNEL);
1308 if (!typdatum) {
1321 typdatum->value = le32_to_cpu(buf[1]);
1326 typdatum->primary = 1;
1328 typdatum->attribute = 1;
1330 typdatum->bounds = le32_to_cpu(buf[3]);
1332 typdatum->primary = le32_to_cpu(buf[2]);
1345 rc = hashtab_insert(h, key, typdatum);
1351 type_destroy(key, typdatum, NULL);