Lines Matching refs:typdatum
387 struct type_datum *typdatum; in type_index() local
390 typdatum = datum; in type_index()
393 if (typdatum->primary) { in type_index()
394 if (!typdatum->value in type_index()
395 || typdatum->value > p->p_types.nprim in type_index()
396 || typdatum->bounds > p->p_types.nprim) in type_index()
399 if (flex_array_put_ptr(fa, typdatum->value - 1, key, in type_index()
404 if (flex_array_put_ptr(fa, typdatum->value - 1, typdatum, in type_index()
1462 struct type_datum *typdatum; in type_read() local
1468 typdatum = kzalloc(sizeof(*typdatum), GFP_KERNEL); in type_read()
1469 if (!typdatum) in type_read()
1480 typdatum->value = le32_to_cpu(buf[1]); in type_read()
1485 typdatum->primary = 1; in type_read()
1487 typdatum->attribute = 1; in type_read()
1489 typdatum->bounds = le32_to_cpu(buf[3]); in type_read()
1491 typdatum->primary = le32_to_cpu(buf[2]); in type_read()
1498 rc = hashtab_insert(h, key, typdatum); in type_read()
1503 type_destroy(key, typdatum, NULL); in type_read()
2963 struct type_datum *typdatum = datum; in type_write() local
2974 buf[items++] = cpu_to_le32(typdatum->value); in type_write()
2978 if (typdatum->primary) in type_write()
2981 if (typdatum->attribute) in type_write()
2985 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()
2987 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()