Lines Matching defs:dev

75  * open and close results in updates to the dev handle list.
288 * this includes things like bus/dev ptr mappings, handles, etc.
402 * walk through the dev handle pointers added
403 * during open and find the matching dev handle
406 * dev handle
409 get_index_devhdl(struct usb_dev_handle *dev)
417 if (dev == devh->dev) {
434 usb_add_dev(struct usb_dev_handle *dev, struct usb_device *device,
472 devh->dev = dev;
485 usb_del_dev(struct usb_dev_handle *dev, int pindex)
493 if (d_dev->dev == dev) {
494 /* Not the last dev hdl */
500 /* Not the first dev hdl */
507 * first dev hdl on list
548 lookup_sym_hdl(usb_dev_handle *dev, int sym_index, const char *func)
552 if ((pindex = get_pindex(dev, func)) < 0) {
675 * walk the dev handles lists. Else active
680 get_pindex(struct usb_dev_handle *dev, const char *func)
684 if (dev == NULL) {
690 pindex = get_index_devhdl(dev);
1027 struct usb_dev_handle *dev;
1051 dev = (*hdl)(device);
1052 if (usb_add_dev(dev, device, pindex) == SUCCESS) {
1053 return (dev);
1061 usb_close(usb_dev_handle *dev)
1068 pindex = get_pindex(dev, func);
1078 usb_del_dev(dev, pindex);
1079 ret = (*hdl)(dev);
1085 usb_get_string(usb_dev_handle *dev, int index, int langid, char *buf,
1092 (lookup_sym_hdl(dev, USB_GET_STRING, func))) == NULL) {
1098 return ((*hdl)(dev, index, langid, buf, buflen));
1102 usb_get_string_simple(usb_dev_handle *dev, int index, char *buf,
1109 (lookup_sym_hdl(dev, USB_GET_STRING_SIMPLE, func))) == NULL) {
1115 return ((*hdl)(dev, index, buf, buflen));
1119 usb_get_descriptor_by_endpoint(usb_dev_handle *dev, int ep,
1127 (lookup_sym_hdl(dev, USB_GET_DESCRIPTOR_BY_ENDPOINT, func)))
1134 return ((*hdl)(dev, ep, type, index, buf, size));
1138 usb_get_descriptor(usb_dev_handle *dev, unsigned char type,
1146 (lookup_sym_hdl(dev, USB_GET_DESCRIPTOR, func))) == NULL) {
1152 return ((*hdl)(dev, type, index, buf, size));
1156 usb_bulk_write(usb_dev_handle *dev, int ep, char *bytes, int size, int timeout)
1162 (lookup_sym_hdl(dev, USB_BULK_WRITE, func))) == NULL) {
1167 return (*hdl)(dev, ep, bytes, size, timeout);
1171 usb_bulk_read(usb_dev_handle *dev, int ep, char *bytes, int size, int timeout)
1177 (lookup_sym_hdl(dev, USB_BULK_READ, func))) == NULL) {
1183 return ((*hdl)(dev, ep, bytes, size, timeout));
1187 usb_interrupt_read(usb_dev_handle *dev, int ep, char *bytes,
1194 (lookup_sym_hdl(dev, USB_INTERRUPT_READ, func))) == NULL) {
1200 return ((*hdl)(dev, ep, bytes, size, timeout));
1204 usb_interrupt_write(usb_dev_handle *dev, int ep, char *bytes,
1211 (lookup_sym_hdl(dev, USB_INTERRUPT_WRITE, func))) == NULL) {
1217 return ((*hdl)(dev, ep, bytes, size, timeout));
1221 usb_control_msg(usb_dev_handle *dev, int requesttype, int request,
1228 (lookup_sym_hdl(dev, USB_CONTROL_MSG, func))) == NULL) {
1234 return ((*hdl)(dev, requesttype, request, value, index,
1239 usb_set_configuration(usb_dev_handle *dev, int configuration)
1245 (lookup_sym_hdl(dev, USB_SET_CONFIGURATION, func))) == NULL) {
1251 return ((*hdl)(dev, configuration));
1255 usb_claim_interface(usb_dev_handle *dev, int interface)
1261 (lookup_sym_hdl(dev, USB_CLAIM_INTERFACE, func))) == NULL) {
1267 return ((*hdl)(dev, interface));
1271 usb_release_interface(usb_dev_handle *dev, int interface)
1277 (lookup_sym_hdl(dev, USB_RELEASE_INTERFACE, func))) == NULL) {
1283 return ((*hdl)(dev, interface));
1287 usb_set_altinterface(usb_dev_handle *dev, int alternate)
1293 (lookup_sym_hdl(dev, USB_SET_ALTINTERFACE, func))) == NULL) {
1299 return ((*hdl)(dev, alternate));
1303 usb_resetep(usb_dev_handle *dev, unsigned int ep)
1309 (lookup_sym_hdl(dev, USB_RESETEP, func))) == NULL) {
1315 return ((*hdl)(dev, ep));
1319 usb_clear_halt(usb_dev_handle *dev, unsigned int ep)
1326 (lookup_sym_hdl(dev, USB_CLEAR_HALT, func))) == NULL) {
1332 return ((*hdl)(dev, ep));
1336 usb_reset(usb_dev_handle *dev)
1342 (lookup_sym_hdl(dev, USB_RESET, func))) == NULL) {
1347 return ((*hdl)(dev));
1361 * the dev handles list does not update it only updates
1386 usb_device(usb_dev_handle *dev)
1392 (lookup_sym_hdl(dev, USB_DEVICE, func))) == NULL) {
1398 return ((*hdl)(dev));