Lines Matching full:ac

143 	struct atopcase_child *ac;
171 if ((ac = atopcase_get_child_by_device(sc, device)) != NULL
173 if (ac->open)
174 ac->intr_handler(ac->intr_ctx, payload, pl_len);
177 && (ac = atopcase_get_child_by_device(sc, hdr->type_arg)) != NULL) {
179 CPOFF(ac->name, iface->name_len, iface->name_off);
180 DPRINTF("Interface #%d name: %s\n", ac->device, ac->name);
183 && (ac = atopcase_get_child_by_device(sc, hdr->type_arg)) != NULL) {
184 memcpy(ac->rdesc, payload, pl_len);
185 ac->rdesc_len = ac->hw.rdescsize = pl_len;
186 DPRINTF("%s HID report descriptor: %*D\n", ac->name,
187 (int) ac->hw.rdescsize, ac->rdesc, " ");
439 atopcase_add_child(struct atopcase_softc *sc, struct atopcase_child *ac,
445 ac->device = device;
448 strlcpy(ac->hw.name, "Apple MacBook", sizeof(ac->hw.name));
449 ac->hw.idBus = BUS_SPI;
450 ac->hw.idVendor = sc->sc_vid;
451 ac->hw.idProduct = sc->sc_pid;
452 ac->hw.idVersion = sc->sc_ver;
453 strlcpy(ac->hw.idPnP, sc->sc_hid, sizeof(ac->hw.idPnP));
454 strlcpy(ac->hw.serial, sc->sc_serial, sizeof(ac->hw.serial));
461 hid_add_dynamic_quirk(&ac->hw, HQ_NOWRITE);
471 DPRINTF("Get the \"%s\" HID report descriptor\n", ac->name);
485 device_set_ivars(hidbus, &ac->hw);
486 ac->hidbus = hidbus;
575 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
585 ac->intr_handler = intr;
586 ac->intr_ctx = context;
598 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
606 ac->open = true;
621 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
629 ac->open = false;
651 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
653 if (ac->rdesc_len != len)
655 memcpy(buf, ac->rdesc, len);
665 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child);
672 ac->name, id, len, len, buf, " ");
676 atopcase_create_message(&sc->sc_buf, ac->device,
677 ATOPCASE_MSG_TYPE_SET_REPORT(ac->device, id), 0, buf, len, 0);