Lines Matching refs:booldatum
195 struct cond_bool_datum *booldatum; in cond_index_bool() local
197 booldatum = datum; in cond_index_bool()
200 if (!booldatum->value || booldatum->value > p->p_bools.nprim) in cond_index_bool()
203 p->sym_val_to_name[SYM_BOOLS][booldatum->value - 1] = key; in cond_index_bool()
204 p->bool_val_to_struct[booldatum->value - 1] = booldatum; in cond_index_bool()
219 struct cond_bool_datum *booldatum; in cond_read_bool() local
224 booldatum = kzalloc(sizeof(*booldatum), GFP_KERNEL); in cond_read_bool()
225 if (!booldatum) in cond_read_bool()
232 booldatum->value = le32_to_cpu(buf[0]); in cond_read_bool()
233 booldatum->state = le32_to_cpu(buf[1]); in cond_read_bool()
236 if (!bool_isvalid(booldatum)) in cond_read_bool()
251 rc = hashtab_insert(h, key, booldatum); in cond_read_bool()
257 cond_destroy_bool(key, booldatum, NULL); in cond_read_bool()
492 struct cond_bool_datum *booldatum = datum; in cond_write_bool() local
500 buf[0] = cpu_to_le32(booldatum->value); in cond_write_bool()
501 buf[1] = cpu_to_le32(booldatum->state); in cond_write_bool()