Lines Matching refs:slotinfo
34 static struct slotinfo *get_slotinfo(tnf_datum_t);
35 static struct slot * get_slot_named(struct slotinfo *, char *);
36 static struct slot * get_slot_indexed(struct slotinfo *, unsigned);
61 static struct slotinfo *
73 return (base_info->slotinfo); in get_slotinfo()
77 get_slot_indexed(struct slotinfo *slotinfo, unsigned index) in get_slot_indexed() argument
81 count = slotinfo->slot_count; in get_slot_indexed()
85 return (&slotinfo->slots[index]); in get_slot_indexed()
89 get_slot_named(struct slotinfo *slotinfo, char *name) in get_slot_named() argument
93 count = slotinfo->slot_count; in get_slot_named()
96 if (strcmp(name, slotinfo->slots[i].slot_name) == 0) in get_slot_named()
97 return (&slotinfo->slots[i]); in get_slot_named()
133 struct slotinfo *slotinfo; in tnf_get_slot_count() local
137 slotinfo = get_slotinfo(datum); in tnf_get_slot_count()
138 return (slotinfo->slot_count); in tnf_get_slot_count()
148 struct slotinfo *slotinfo; in tnf_get_slot_index() local
153 slotinfo = get_slotinfo(datum); in tnf_get_slot_index()
154 slot = get_slot_named(slotinfo, name); in tnf_get_slot_index()
160 return (((char *)slot - (char *)&slotinfo->slots[0]) in tnf_get_slot_index()
171 struct slotinfo *slotinfo; in tnf_get_slot_name() local
176 slotinfo = get_slotinfo(datum); in tnf_get_slot_name()
177 slot = get_slot_indexed(slotinfo, index); in tnf_get_slot_name()
193 struct slotinfo *slotinfo; in tnf_get_slot_named() local
198 slotinfo = get_slotinfo(datum); in tnf_get_slot_named()
199 slot = get_slot_named(slotinfo, name); in tnf_get_slot_named()
211 struct slotinfo *slotinfo; in tnf_get_slot_indexed() local
216 slotinfo = get_slotinfo(datum); in tnf_get_slot_indexed()
217 slot = get_slot_indexed(slotinfo, index); in tnf_get_slot_indexed()