Lines Matching defs:data

107 				    u64 *data)
110 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
116 data[i] = (cdc_ncm_gstrings_stats[i].sizeof_stat == sizeof(u64)) ? *(u64 *)p : *(u32 *)p;
120 static void cdc_ncm_get_strings(struct net_device __always_unused *netdev, u32 stringset, u8 *data)
122 u8 *p = data;
152 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
175 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
205 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
214 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
223 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
232 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
242 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
258 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
273 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
288 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
314 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
322 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
345 /* flush pending data before changing flag */
364 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0]; \
407 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
479 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
504 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
513 /* initial one-time device setup. MUST be called with the data interface
518 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
611 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
659 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
703 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
734 /* ignore endpoints which cannot transfer data */
842 /* store ctx pointer in device data field */
843 dev->data[0] = (unsigned long)ctx;
857 ctx->data = usb_ifnum_to_if(dev->udev,
866 ctx->data = usb_ifnum_to_if(dev->udev, intf->cur_altsetting->desc.bInterfaceNumber + 1);
871 if (!ctx->data) {
887 /* claim data interface, if different from control */
888 if (ctx->data != ctx->control) {
889 temp = usb_driver_claim_interface(driver, ctx->data, dev);
891 dev_err(&intf->dev, "failed to claim data intf\n");
896 iface_no = ctx->data->cur_altsetting->desc.bInterfaceNumber;
901 /* Reset data interface. Some devices will not reset properly
927 /* configure data interface */
934 cdc_ncm_find_endpoints(dev, ctx->data);
952 /* finish setting up the device specific data */
983 usb_set_intfdata(ctx->data, NULL);
984 if (ctx->data != ctx->control)
985 usb_driver_release_interface(driver, ctx->data);
987 cdc_ncm_free((struct cdc_ncm_ctx *)dev->data[0]);
988 dev->data[0] = 0;
996 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
1008 /* handle devices with combined control and data interface */
1009 if (ctx->control == ctx->data)
1010 ctx->data = NULL;
1013 if (intf == ctx->control && ctx->data) {
1014 usb_set_intfdata(ctx->data, NULL);
1015 usb_driver_release_interface(driver, ctx->data);
1016 ctx->data = NULL;
1018 } else if (intf == ctx->data && ctx->control) {
1069 /* The NCM data altsetting is fixed, so we hard-coded it.
1092 struct usb_cdc_ncm_nth16 *nth16 = (void *)skb->data;
1113 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb->data + ndpoffset);
1147 struct usb_cdc_ncm_nth32 *nth32 = (void *)skb->data;
1168 ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb->data + ndpoffset);
1202 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
1357 skb_put_data(skb_out, skb->data, skb->len);
1358 ctx->tx_curr_frame_payload += skb->len; /* count real tx payload data */
1404 nth.nth16 = (struct usb_cdc_ncm_nth16 *)skb_out->data;
1412 nth.nth32 = (struct usb_cdc_ncm_nth32 *)skb_out->data;
1421 /* If collected data size is less or equal ctx->min_tx_pkt
1422 * bytes, we send buffers as it is. If we get more data, it
1442 nth.nth16 = (struct usb_cdc_ncm_nth16 *)skb_out->data;
1445 nth.nth32 = (struct usb_cdc_ncm_nth32 *)skb_out->data;
1458 * payload data instead.
1522 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
1569 nth16 = (struct usb_cdc_ncm_nth16 *)skb_in->data;
1617 nth32 = (struct usb_cdc_ncm_nth32 *)skb_in->data;
1661 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset);
1697 ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb_in->data + ndpoffset);
1724 struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0];
1756 ndp.ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset);
1770 ndp.ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb_in->data + ndpoffset);
1815 skb_put_data(skb, skb_in->data + offset, len);
1847 struct usb_cdc_speed_change *data)
1850 dev->rx_speed = le32_to_cpu(data->DLBitRRate);
1851 dev->tx_speed = le32_to_cpu(data->ULBitRate);
1861 /* test for split data in 8-byte chunks */