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 p->p_bool_val_to_name[booldatum->s.value - 1] = key; in cond_index_bool()
555 p->bool_val_to_struct[booldatum->s.value - 1] = booldatum; in cond_index_bool()
572 cond_bool_datum_t *booldatum; in cond_read_bool() local
576 booldatum = malloc(sizeof(cond_bool_datum_t)); in cond_read_bool()
577 if (!booldatum) in cond_read_bool()
579 memset(booldatum, 0, sizeof(cond_bool_datum_t)); in cond_read_bool()
585 booldatum->s.value = le32_to_cpu(buf[0]); in cond_read_bool()
586 booldatum->state = le32_to_cpu(buf[1]); in cond_read_bool()
588 if (!bool_isvalid(booldatum)) in cond_read_bool()
606 booldatum->flags = le32_to_cpu(buf[0]); in cond_read_bool()
609 if (hashtab_insert(h, key, booldatum)) in cond_read_bool()
614 cond_destroy_bool(key, booldatum, 0); in cond_read_bool()