Lines Matching refs:booldatum
546 cond_bool_datum_t *booldatum; in cond_index_bool() local
548 booldatum = datum; in cond_index_bool()
551 if (!booldatum->s.value || booldatum->s.value > p->p_bools.nprim) in cond_index_bool()
554 if (p->p_bool_val_to_name[booldatum->s.value - 1] != NULL) in cond_index_bool()
557 p->p_bool_val_to_name[booldatum->s.value - 1] = key; in cond_index_bool()
558 p->bool_val_to_struct[booldatum->s.value - 1] = booldatum; in cond_index_bool()
575 cond_bool_datum_t *booldatum; in cond_read_bool() local
579 booldatum = malloc(sizeof(cond_bool_datum_t)); in cond_read_bool()
580 if (!booldatum) in cond_read_bool()
582 memset(booldatum, 0, sizeof(cond_bool_datum_t)); in cond_read_bool()
588 booldatum->s.value = le32_to_cpu(buf[0]); in cond_read_bool()
589 booldatum->state = le32_to_cpu(buf[1]); in cond_read_bool()
591 if (!bool_isvalid(booldatum)) in cond_read_bool()
603 booldatum->flags = le32_to_cpu(buf[0]); in cond_read_bool()
606 if (hashtab_insert(h, key, booldatum)) in cond_read_bool()
611 cond_destroy_bool(key, booldatum, 0); in cond_read_bool()