Lines Matching defs:hm
59 struct hidmap *hm, struct hidmap_hid_item *hi, union hidmap_cb_ctx ctx
64 ((hm == NULL) ? HIDMAP_CB_IS_PROBING : hm->cb_state)
66 (hm == NULL ? NULL : device_get_softc(hm->dev))
68 (hm == NULL ? NULL : hm->evdev)
74 hid_get_data(hm->intr_buf, hm->intr_len, (loc))
76 hid_get_udata(hm->intr_buf, hm->intr_len, (loc))
230 hidmap_set_dev(struct hidmap *hm, device_t dev)
232 hm->dev = dev;
241 void _hidmap_set_debug_var(struct hidmap *hm, int *debug_var);
242 #define HIDMAP_ADD_MAP(hm, map, caps) \
243 hidmap_add_map((hm), (map), nitems(map), (caps))
244 uint32_t hidmap_add_map(struct hidmap *hm, const struct hidmap_item *map,
248 void hidmap_support_key(struct hidmap *hm, uint16_t key);
249 void hidmap_push_key(struct hidmap *hm, uint16_t key, int32_t value);
252 #define HIDMAP_PROBE(hm, dev, id, map, suffix) \
253 hidmap_probe((hm), (dev), (id), nitems(id), (map), nitems(map), \
255 int hidmap_probe(struct hidmap* hm, device_t dev,
259 int hidmap_attach(struct hidmap *hm);
260 int hidmap_detach(struct hidmap *hm);