Lines Matching defs:desc
1352 struct irda_class_desc *desc;
1356 desc = self->irda_desc;
1364 self->qos.baud_rate.bits = le16_to_cpu(desc->wBaudRate);
1365 self->qos.min_turn_time.bits = desc->bmMinTurnaroundTime;
1366 self->qos.additional_bofs.bits = desc->bmAdditionalBOFs;
1367 self->qos.window_size.bits = desc->bmWindowSize;
1368 self->qos.data_size.bits = desc->bmDataSize;
1479 ep = endpoint[i].desc.bEndpointAddress & USB_ENDPOINT_NUMBER_MASK;
1480 dir = endpoint[i].desc.bEndpointAddress & USB_ENDPOINT_DIR_MASK;
1481 attr = endpoint[i].desc.bmAttributes;
1482 psize = le16_to_cpu(endpoint[i].desc.wMaxPacketSize);
1515 * Function usb_irda_dump_class_desc(desc)
1520 static inline void irda_usb_dump_class_desc(struct irda_class_desc *desc)
1523 printk("bLength=%x\n", desc->bLength);
1524 printk("bDescriptorType=%x\n", desc->bDescriptorType);
1525 printk("bcdSpecRevision=%x\n", le16_to_cpu(desc->bcdSpecRevision));
1526 printk("bmDataSize=%x\n", desc->bmDataSize);
1527 printk("bmWindowSize=%x\n", desc->bmWindowSize);
1528 printk("bmMinTurnaroundTime=%d\n", desc->bmMinTurnaroundTime);
1529 printk("wBaudRate=%x\n", le16_to_cpu(desc->wBaudRate));
1530 printk("bmAdditionalBOFs=%x\n", desc->bmAdditionalBOFs);
1531 printk("bIrdaRateSniff=%x\n", desc->bIrdaRateSniff);
1532 printk("bMaxUnicastList=%x\n", desc->bMaxUnicastList);
1549 struct irda_class_desc *desc;
1552 desc = kzalloc(sizeof(*desc), GFP_KERNEL);
1553 if (!desc)
1566 0, intf->altsetting->desc.bInterfaceNumber, desc,
1567 sizeof(*desc), 500);
1570 if (ret < sizeof(*desc)) {
1574 else if (desc->bDescriptorType != USB_DT_IRDA) {
1579 irda_usb_dump_class_desc(desc);
1582 return desc;
1584 kfree(desc);
1675 ret = usb_set_interface(dev, intf->altsetting->desc.bInterfaceNumber, 0);
1676 IRDA_DEBUG(1, "usb-irda: set interface %d result %d\n", intf->altsetting->desc.bInterfaceNumber, ret);
1695 interface->desc.bNumEndpoints)) {