Lines Matching defs:info
85 usb_dev_handle_info_t *info, int index, int interface, int alternate);
327 usb_dev_handle_info_t *info;
340 /* create a handle and info structure */
346 if ((info = calloc(sizeof (*info), 1)) == NULL) {
352 hdl->info = info;
356 hdl->info->ep_fd[i] = -1;
357 hdl->info->ep_status_fd[i] = -1;
359 hdl->info->ep_interface[i] = -1;
366 free(info);
373 * setup config info: trees of configs, interfaces, alternates
379 free(info);
386 info->configuration_value =
387 info->claimed_interface = info->alternate = -1;
404 usb_dev_handle_info_t *info;
409 info = hdl->info;
413 info->claimed_interface);
415 if (info->claimed_interface != -1) {
417 info->claimed_interface);
422 free(info);
444 usb_dev_handle_info_t *info;
454 info = hdl->info;
462 rval = usb_send_msg(info->ep_fd[0], info->ep_status_fd[0],
478 additional = usb_do_io(info->ep_fd[0],
479 info->ep_status_fd[0], data, size, READ);
502 usb_dev_handle_info_t *info;
514 info = hdl->info;
526 sent = usb_do_io(info->ep_fd[ep_index], info->ep_status_fd[ep_index],
544 usb_dev_handle_info_t *info;
558 info = hdl->info;
570 received = usb_do_io(info->ep_fd[ep_index],
571 info->ep_status_fd[ep_index],
589 usb_dev_handle_info_t *info;
601 info = hdl->info;
613 sent = usb_do_io(info->ep_fd[ep_index],
614 info->ep_status_fd[ep_index],
632 usb_dev_handle_info_t *info;
646 info = hdl->info;
658 received = usb_do_io(info->ep_fd[ep_index],
659 info->ep_status_fd[ep_index],
663 (void) close(info->ep_fd[ep_index]);
664 (void) close(info->ep_status_fd[ep_index]);
665 info->ep_fd[ep_index] = -1;
666 info->ep_status_fd[ep_index] = -1;
835 usb_dev_handle_info_t *info;
849 info = hdl->info;
852 if (info->claimed_interface == -1) {
866 iface = info->claimed_interface;
870 info->claimed_interface, info->configuration_value,
873 if ((info->claimed_interface == -1) ||
874 (info->configuration_value == -1) ||
885 if (info->configuration_value ==
893 info->configuration_value, index, iface, alt,
902 info->alternate = alt;
904 usb_set_ep_iface_alts(hdl, info, index, iface, alt);
922 usb_dev_handle_info_t *info;
934 info = hdl->info;
953 info->configuration_value = configuration;
954 info->configuration_index = index;
958 info->ep_interface[i] = -1;
960 if (info->claimed_interface != -1) {
961 (void) usb_release_interface(dev, info->claimed_interface);
981 usb_dev_handle_info_t *info;
991 info = hdl->info;
994 index, info->ep_interface[index]);
996 if (info->ep_interface[index] == -1) {
1031 usb_dev_handle_info_t *info;
1041 info = hdl->info;
1047 if (info->configuration_value == -1) {
1054 if (info->configuration_value ==
1060 info->configuration_value =
1062 info->configuration_index = index;
1065 info->configuration_value, index);
1080 if (info->claimed_interface != -1) {
1092 hdl, interface, info->claimed_interface,
1096 info->claimed_interface = interface;
1097 info->alternate = 0;
1100 usb_set_ep_iface_alts(hdl, info, index, interface, 0);
1116 usb_dev_handle_info_t *info;
1126 info = hdl->info;
1132 if ((info->claimed_interface == -1) ||
1133 (info->claimed_interface != interface)) {
1140 hdl, interface, info->claimed_interface,
1144 info->claimed_interface = -1;
1303 usb_dev_handle_info_t *info = hdl->info;
1309 info = hdl->info;
1313 (int)hdl, info->configuration_value,
1314 info->claimed_interface, info->alternate);
1316 if ((info->configuration_value == -1) ||
1317 (info->claimed_interface == -1) ||
1318 (info->alternate == -1)) {
1331 usb_set_ep_iface_alts(usb_dev_handle_impl_t *hdl, usb_dev_handle_info_t *info,
1340 info->ep_interface[i] = -1;
1351 info->configuration_value, interface, alternate,
1357 info->ep_interface[usb_ep_index(
1364 info->ep_interface[i]);
1381 usb_dev_handle_info_t *info = hdl->info;
1402 info->claimed_interface, info->ep_interface[index]);
1404 if (info->claimed_interface != info->ep_interface[index]) {
1409 if ((info->ep_fd[index] > 0) && (info->ep_status_fd[index] > 0)) {
1431 info->configuration_value);
1434 if (info->configuration_index > 0) {
1436 info->configuration_value);
1441 if (info->alternate > 0) {
1443 info->alternate);
1450 cfg_num, info->ep_interface[index],
1522 info->ep_fd[index] = fd;
1523 info->ep_status_fd[index] = fdstat;
1560 hdl->info->ep_fd[0] = dev_specific->ep0_fd;
1561 hdl->info->ep_status_fd[0] = dev_specific->ep0_fd_stat;
1580 hdl->info->ep_fd[0] = open(filename, O_RDWR);
1581 if (hdl->info->ep_fd[0] < 0) {
1583 hdl->info->ep_fd[0]);
1594 hdl->info->ep_status_fd[0] = open(filename, O_RDONLY);
1595 if (hdl->info->ep_status_fd[0] < 0) {
1602 dev_specific->ep0_fd = hdl->info->ep_fd[0];
1603 dev_specific->ep0_fd_stat = hdl->info->ep_status_fd[0];
1635 if (hdl->info->ep_fd[0] != -1) {
1636 (void) close(hdl->info->ep_fd[0]);
1637 hdl->info->ep_fd[0] = -1;
1639 if (hdl->info->ep_status_fd[0] != -1) {
1640 (void) close(hdl->info->ep_status_fd[0]);
1641 hdl->info->ep_status_fd[0] = -1;
1659 if (hdl->info->ep_fd[i] != -1) {
1660 (void) close(hdl->info->ep_fd[i]);
1661 hdl->info->ep_fd[i] = -1;
1663 if (hdl->info->ep_status_fd[i] != -1) {
1664 (void) close(hdl->info->ep_status_fd[i]);
1665 hdl->info->ep_status_fd[i] = -1;