Lines Matching refs:slot
35 static struct slot * get_slot_named(struct slotinfo *, char *);
36 static struct slot * get_slot_indexed(struct slotinfo *, unsigned);
37 static tnf_datum_t get_slot(tnf_datum_t, struct slot *);
76 static struct slot *
88 static struct slot *
103 get_slot(tnf_datum_t datum, struct slot *slot)
105 if (slot == NULL) {
109 } else if (INFO_TAGGED(slot->slot_type)) {
116 (DATUM_VAL(datum) + slot->slot_offset));
122 return DATUM(slot->slot_type,
123 DATUM_VAL(datum) + slot->slot_offset);
149 struct slot *slot;
154 slot = get_slot_named(slotinfo, name);
156 if (slot == NULL) {
160 return (((char *)slot - (char *)&slotinfo->slots[0])
161 / sizeof (struct slot));
172 struct slot *slot;
177 slot = get_slot_indexed(slotinfo, index);
179 if (slot == NULL) {
183 return (slot->slot_name);
194 struct slot *slot;
199 slot = get_slot_named(slotinfo, name);
201 return (get_slot(datum, slot));
212 struct slot *slot;
217 slot = get_slot_indexed(slotinfo, index);
219 return (get_slot(datum, slot));