AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/07/02 17:53 flow patch-triage
2m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch is a pure refactoring that moves CDC-related functions from cdc_ether.c to the core usbnet.c module and replaces the use of the generic data array with a dedicated cdc_state struct in usbnet. It does not introduce any new functional logic or fix any bugs related to data aliasing, as no drivers were concurrently using both the generic data array and the CDC state.",
  "WorthFuzzing": false
}

1/1 2026/07/02 17:53 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit b9f287a8b230d94d549c41d8b62d2237254178af\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Thu Jul 2 17:53:49 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c\nindex a0a5740590b945..76ad4ffa950ab3 100644\n--- a/drivers/net/usb/cdc_ether.c\n+++ b/drivers/net/usb/cdc_ether.c\n@@ -63,35 +63,6 @@ static const u8 mbm_guid[16] = {\n \t0xa6, 0x07, 0xc0, 0xff, 0xcb, 0x7e, 0x39, 0x2a,\n };\n \n-void usbnet_cdc_update_filter(struct usbnet *dev)\n-{\n-\tstruct net_device\t*net = dev-\u003enet;\n-\n-\tu16 cdc_filter = USB_CDC_PACKET_TYPE_DIRECTED\n-\t\t\t| USB_CDC_PACKET_TYPE_BROADCAST;\n-\n-\t/* filtering on the device is an optional feature and not worth\n-\t * the hassle so we just roughly care about snooping and if any\n-\t * multicast is requested, we take every multicast\n-\t */\n-\tif (net-\u003eflags \u0026 IFF_PROMISC)\n-\t\tcdc_filter |= USB_CDC_PACKET_TYPE_PROMISCUOUS;\n-\tif (!netdev_mc_empty(net) || (net-\u003eflags \u0026 IFF_ALLMULTI))\n-\t\tcdc_filter |= USB_CDC_PACKET_TYPE_ALL_MULTICAST;\n-\n-\tusb_control_msg(dev-\u003eudev,\n-\t\t\tusb_sndctrlpipe(dev-\u003eudev, 0),\n-\t\t\tUSB_CDC_SET_ETHERNET_PACKET_FILTER,\n-\t\t\tUSB_TYPE_CLASS | USB_RECIP_INTERFACE,\n-\t\t\tcdc_filter,\n-\t\t\tdev-\u003eintf-\u003ecur_altsetting-\u003edesc.bInterfaceNumber,\n-\t\t\tNULL,\n-\t\t\t0,\n-\t\t\tUSB_CTRL_SET_TIMEOUT\n-\t\t);\n-}\n-EXPORT_SYMBOL_GPL(usbnet_cdc_update_filter);\n-\n /* We need to override usbnet_*_link_ksettings in bind() */\n static const struct ethtool_ops cdc_ether_ethtool_ops = {\n \t.get_link\t\t= usbnet_get_link,\n@@ -114,7 +85,7 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)\n \tu8\t\t\t\t*buf = intf-\u003ecur_altsetting-\u003eextra;\n \tint\t\t\t\tlen = intf-\u003ecur_altsetting-\u003eextralen;\n \tstruct usb_interface_descriptor\t*d;\n-\tstruct cdc_state\t\t*info = (void *) \u0026dev-\u003edata;\n+\tstruct cdc_state\t\t*info = \u0026dev-\u003ecdc;\n \tint\t\t\t\tstatus = -ENODEV;\n \tint\t\t\t\trndis;\n \tbool\t\t\t\tandroid_rndis_quirk = false;\n@@ -365,7 +336,7 @@ EXPORT_SYMBOL_GPL(usbnet_ether_cdc_bind);\n \n void usbnet_cdc_unbind(struct usbnet *dev, struct usb_interface *intf)\n {\n-\tstruct cdc_state\t\t*info = (void *) \u0026dev-\u003edata;\n+\tstruct cdc_state\t\t*info = \u0026dev-\u003ecdc;\n \tstruct usb_driver\t\t*driver = driver_of(intf);\n \n \t/* combined interface - nothing  to do */\n@@ -400,59 +371,10 @@ EXPORT_SYMBOL_GPL(usbnet_cdc_unbind);\n  * (by Brad Hards) talked with, with more functionality.\n  */\n \n-static void speed_change(struct usbnet *dev, __le32 *speeds)\n-{\n-\tdev-\u003etx_speed = __le32_to_cpu(speeds[0]);\n-\tdev-\u003erx_speed = __le32_to_cpu(speeds[1]);\n-}\n-\n-void usbnet_cdc_status(struct usbnet *dev, struct urb *urb)\n-{\n-\tstruct usb_cdc_notification\t*event;\n-\n-\tif (urb-\u003eactual_length \u003c sizeof(*event))\n-\t\treturn;\n-\n-\t/* SPEED_CHANGE can get split into two 8-byte packets */\n-\tif (test_and_clear_bit(EVENT_STS_SPLIT, \u0026dev-\u003eflags)) {\n-\t\tspeed_change(dev, (__le32 *) urb-\u003etransfer_buffer);\n-\t\treturn;\n-\t}\n-\n-\tevent = urb-\u003etransfer_buffer;\n-\tswitch (event-\u003ebNotificationType) {\n-\tcase USB_CDC_NOTIFY_NETWORK_CONNECTION:\n-\t\tnetif_dbg(dev, timer, dev-\u003enet, \"CDC: carrier %s\\n\",\n-\t\t\t  event-\u003ewValue ? \"on\" : \"off\");\n-\t\tif (netif_carrier_ok(dev-\u003enet) != !!event-\u003ewValue)\n-\t\t\tusbnet_link_change(dev, !!event-\u003ewValue, 0);\n-\t\tbreak;\n-\tcase USB_CDC_NOTIFY_SPEED_CHANGE:\t/* tx/rx rates */\n-\t\tnetif_dbg(dev, timer, dev-\u003enet, \"CDC: speed change (len %d)\\n\",\n-\t\t\t  urb-\u003eactual_length);\n-\t\tif (urb-\u003eactual_length != (sizeof(*event) + 8))\n-\t\t\tset_bit(EVENT_STS_SPLIT, \u0026dev-\u003eflags);\n-\t\telse\n-\t\t\tspeed_change(dev, (__le32 *) \u0026event[1]);\n-\t\tbreak;\n-\t/* USB_CDC_NOTIFY_RESPONSE_AVAILABLE can happen too (e.g. RNDIS),\n-\t * but there are no standard formats for the response data.\n-\t */\n-\tdefault:\n-\t\tnetdev_err(dev-\u003enet, \"CDC: unexpected notification %02x!\\n\",\n-\t\t\t   event-\u003ebNotificationType);\n-\t\tbreak;\n-\t}\n-}\n-EXPORT_SYMBOL_GPL(usbnet_cdc_status);\n-\n int usbnet_cdc_bind(struct usbnet *dev, struct usb_interface *intf)\n {\n \tint\t\t\t\tstatus;\n-\tstruct cdc_state\t\t*info = (void *) \u0026dev-\u003edata;\n-\n-\tBUILD_BUG_ON((sizeof(((struct usbnet *)0)-\u003edata)\n-\t\t\t\u003c sizeof(struct cdc_state)));\n+\tstruct cdc_state\t\t*info = \u0026dev-\u003ecdc;\n \n \tstatus = usbnet_ether_cdc_bind(dev, intf);\n \tif (status \u003c 0)\n@@ -479,25 +401,6 @@ static int usbnet_cdc_zte_bind(struct usbnet *dev, struct usb_interface *intf)\n \treturn status;\n }\n \n-/* Make sure packets have correct destination MAC address\n- *\n- * A firmware bug observed on some devices (ZTE MF823/831/910) is that the\n- * device sends packets with a static, bogus, random MAC address (event if\n- * device MAC address has been updated). Always set MAC address to that of the\n- * device.\n- */\n-int usbnet_cdc_zte_rx_fixup(struct usbnet *dev, struct sk_buff *skb)\n-{\n-\tif (skb-\u003elen \u003c ETH_HLEN || !(skb-\u003edata[0] \u0026 0x02))\n-\t\treturn 1;\n-\n-\tskb_reset_mac_header(skb);\n-\tether_addr_copy(eth_hdr(skb)-\u003eh_dest, dev-\u003enet-\u003edev_addr);\n-\n-\treturn 1;\n-}\n-EXPORT_SYMBOL_GPL(usbnet_cdc_zte_rx_fixup);\n-\n /* Ensure correct link state\n  *\n  * Some devices (ZTE MF823/831/910) export two carrier on notifications when\ndiff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c\nindex 5e39d05a2d7b6d..d539654687c305 100644\n--- a/drivers/net/usb/rndis_host.c\n+++ b/drivers/net/usb/rndis_host.c\n@@ -57,7 +57,7 @@ EXPORT_SYMBOL_GPL(rndis_status);\n static void rndis_msg_indicate(struct usbnet *dev, struct rndis_indicate *msg,\n \t\t\t\tint buflen)\n {\n-\tstruct cdc_state *info = (void *)\u0026dev-\u003edata;\n+\tstruct cdc_state *info = \u0026dev-\u003ecdc;\n \tstruct device *udev = \u0026info-\u003econtrol-\u003edev;\n \n \tif (dev-\u003edriver_info-\u003eindication) {\n@@ -90,7 +90,7 @@ static void rndis_msg_indicate(struct usbnet *dev, struct rndis_indicate *msg,\n  */\n int rndis_command(struct usbnet *dev, struct rndis_msg_hdr *buf, int buflen)\n {\n-\tstruct cdc_state\t*info = (void *) \u0026dev-\u003edata;\n+\tstruct cdc_state\t*info = \u0026dev-\u003ecdc;\n \tstruct usb_cdc_notification notification;\n \tint\t\t\tmaster_ifnum;\n \tint\t\t\tretval;\n@@ -290,7 +290,7 @@ generic_rndis_bind(struct usbnet *dev, struct usb_interface *intf, int flags)\n {\n \tint\t\t\tretval;\n \tstruct net_device\t*net = dev-\u003enet;\n-\tstruct cdc_state\t*info = (void *) \u0026dev-\u003edata;\n+\tstruct cdc_state\t*info = \u0026dev-\u003ecdc;\n \tunion {\n \t\tvoid\t\t\t*buf;\n \t\tstruct rndis_msg_hdr\t*header;\ndiff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c\nindex 25518635b7b72d..7beea6d0e731cc 100644\n--- a/drivers/net/usb/usbnet.c\n+++ b/drivers/net/usb/usbnet.c\n@@ -22,6 +22,7 @@\n #include \u003clinux/init.h\u003e\n #include \u003clinux/netdevice.h\u003e\n #include \u003clinux/etherdevice.h\u003e\n+#include \u003clinux/usb/cdc.h\u003e\n #include \u003clinux/ctype.h\u003e\n #include \u003clinux/ethtool.h\u003e\n #include \u003clinux/workqueue.h\u003e\n@@ -2271,6 +2272,100 @@ int usbnet_write_cmd_async(struct usbnet *dev, u8 cmd, u8 reqtype,\n \n }\n EXPORT_SYMBOL_GPL(usbnet_write_cmd_async);\n+\n+void usbnet_cdc_update_filter(struct usbnet *dev)\n+{\n+\tstruct net_device\t*net = dev-\u003enet;\n+\n+\tu16 cdc_filter = USB_CDC_PACKET_TYPE_DIRECTED\n+\t\t\t| USB_CDC_PACKET_TYPE_BROADCAST;\n+\n+\t/* filtering on the device is an optional feature and not worth\n+\t * the hassle so we just roughly care about snooping and if any\n+\t * multicast is requested, we take every multicast\n+\t */\n+\tif (net-\u003eflags \u0026 IFF_PROMISC)\n+\t\tcdc_filter |= USB_CDC_PACKET_TYPE_PROMISCUOUS;\n+\tif (!netdev_mc_empty(net) || (net-\u003eflags \u0026 IFF_ALLMULTI))\n+\t\tcdc_filter |= USB_CDC_PACKET_TYPE_ALL_MULTICAST;\n+\n+\tusb_control_msg(dev-\u003eudev,\n+\t\t\tusb_sndctrlpipe(dev-\u003eudev, 0),\n+\t\t\tUSB_CDC_SET_ETHERNET_PACKET_FILTER,\n+\t\t\tUSB_TYPE_CLASS | USB_RECIP_INTERFACE,\n+\t\t\tcdc_filter,\n+\t\t\tdev-\u003eintf-\u003ecur_altsetting-\u003edesc.bInterfaceNumber,\n+\t\t\tNULL,\n+\t\t\t0,\n+\t\t\tUSB_CTRL_SET_TIMEOUT\n+\t\t);\n+}\n+EXPORT_SYMBOL_GPL(usbnet_cdc_update_filter);\n+\n+static void speed_change(struct usbnet *dev, __le32 *speeds)\n+{\n+\tdev-\u003etx_speed = __le32_to_cpu(speeds[0]);\n+\tdev-\u003erx_speed = __le32_to_cpu(speeds[1]);\n+}\n+\n+void usbnet_cdc_status(struct usbnet *dev, struct urb *urb)\n+{\n+\tstruct usb_cdc_notification\t*event;\n+\n+\tif (urb-\u003eactual_length \u003c sizeof(*event))\n+\t\treturn;\n+\n+\t/* SPEED_CHANGE can get split into two 8-byte packets */\n+\tif (test_and_clear_bit(EVENT_STS_SPLIT, \u0026dev-\u003eflags)) {\n+\t\tspeed_change(dev, (__le32 *)urb-\u003etransfer_buffer);\n+\t\treturn;\n+\t}\n+\n+\tevent = urb-\u003etransfer_buffer;\n+\tswitch (event-\u003ebNotificationType) {\n+\tcase USB_CDC_NOTIFY_NETWORK_CONNECTION:\n+\t\tnetif_dbg(dev, timer, dev-\u003enet, \"CDC: carrier %s\\n\",\n+\t\t\t  event-\u003ewValue ? \"on\" : \"off\");\n+\t\tif (netif_carrier_ok(dev-\u003enet) != !!event-\u003ewValue)\n+\t\t\tusbnet_link_change(dev, !!event-\u003ewValue, 0);\n+\t\tbreak;\n+\tcase USB_CDC_NOTIFY_SPEED_CHANGE:\t/* tx/rx rates */\n+\t\tnetif_dbg(dev, timer, dev-\u003enet, \"CDC: speed change (len %d)\\n\",\n+\t\t\t  urb-\u003eactual_length);\n+\t\tif (urb-\u003eactual_length != (sizeof(*event) + 8))\n+\t\t\tset_bit(EVENT_STS_SPLIT, \u0026dev-\u003eflags);\n+\t\telse\n+\t\t\tspeed_change(dev, (__le32 *)\u0026event[1]);\n+\t\tbreak;\n+\t/* USB_CDC_NOTIFY_RESPONSE_AVAILABLE can happen too (e.g. RNDIS),\n+\t * but there are no standard formats for the response data.\n+\t */\n+\tdefault:\n+\t\tnetdev_err(dev-\u003enet, \"CDC: unexpected notification %02x!\\n\",\n+\t\t\t   event-\u003ebNotificationType);\n+\t\tbreak;\n+\t}\n+}\n+EXPORT_SYMBOL_GPL(usbnet_cdc_status);\n+\n+/* Make sure packets have correct destination MAC address\n+ *\n+ * A firmware bug observed on some devices (ZTE MF823/831/910) is that the\n+ * device sends packets with a static, bogus, random MAC address (event if\n+ * device MAC address has been updated). Always set MAC address to that of the\n+ * device.\n+ */\n+int usbnet_cdc_zte_rx_fixup(struct usbnet *dev, struct sk_buff *skb)\n+{\n+\tif (skb-\u003elen \u003c ETH_HLEN || !(skb-\u003edata[0] \u0026 0x02))\n+\t\treturn 1;\n+\n+\tskb_reset_mac_header(skb);\n+\tether_addr_copy(eth_hdr(skb)-\u003eh_dest, dev-\u003enet-\u003edev_addr);\n+\n+\treturn 1;\n+}\n+EXPORT_SYMBOL_GPL(usbnet_cdc_zte_rx_fixup);\n /*-------------------------------------------------------------------------*/\n \n static int __init usbnet_init(void)\ndiff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h\nindex bbf799ccf3b30e..79f48eb388ee6c 100644\n--- a/include/linux/usb/usbnet.h\n+++ b/include/linux/usb/usbnet.h\n@@ -16,6 +16,14 @@\n #include \u003clinux/usb.h\u003e\n #include \u003clinux/spinlock.h\u003e\n \n+struct cdc_state {\n+\tstruct usb_cdc_header_desc      *header;\n+\tstruct usb_cdc_union_desc       *u;\n+\tstruct usb_cdc_ether_desc       *ether;\n+\tstruct usb_interface            *control;\n+\tstruct usb_interface            *data;\n+};\n+\n /* interface from usbnet core to each USB networking link we handle */\n struct usbnet {\n \t/* housekeeping */\n@@ -41,6 +49,7 @@ struct usbnet {\n \t/* protocol/interface state */\n \tstruct net_device\t*net;\n \tint\t\t\tmsg_enable;\n+\tstruct cdc_state\tcdc;\t\t/* too common to leave out*/\n \tunsigned long\t\tdata[5];\n \tu32\t\t\txid;\n \tu32\t\t\thard_mtu;\t/* count any extra framing */\n@@ -211,13 +220,6 @@ extern int usbnet_write_cmd_async(struct usbnet *dev, u8 cmd, u8 reqtype,\n  * (notably, using multiple interfaces according to the CDC\n  * union descriptor) get some helper code.\n  */\n-struct cdc_state {\n-\tstruct usb_cdc_header_desc\t*header;\n-\tstruct usb_cdc_union_desc\t*u;\n-\tstruct usb_cdc_ether_desc\t*ether;\n-\tstruct usb_interface\t\t*control;\n-\tstruct usb_interface\t\t*data;\n-};\n \n extern void usbnet_cdc_update_filter(struct usbnet *dev);\n extern int usbnet_generic_cdc_bind(struct usbnet *, struct usb_interface *);\n"
}

2/1 2026/07/02 17:53 agent patch-evaluator
2m Model:
gemini-3.1-pro-preview

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch is a pure refactoring that moves CDC-related functions from cdc_ether.c to the core usbnet.c module and replaces the use of the generic data array with a dedicated cdc_state struct in usbnet. It does not introduce any new functional logic or fix any bugs related to data aliasing, as no drivers were concurrently using both the generic data array and the CDC state.",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer.
Your job is to review a provided patch series and determine
if it makes functional changes to the kernel that should be fuzzed.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively
use your code access tools to examine the actual source code and confirm any assumptions.

Return WorthFuzzing=false if the patch only contains:
- Modifications to Documentation/, Kconfig files, or code comments.
- Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints.
- Changes to numeric constants or macros that do not functionally alter execution flow.
- Code paths that are impossible to reach in virtualized environments like GCE or QEMU,
even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim).

If it modifies reachable core kernel logic, drivers, or architectures, use your code search
tools to verify the code can be executed, then return WorthFuzzing=true.

When returning WorthFuzzing=true, you MUST ALSO:
1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols.
   Avoid listing generic hot-path functions to prevent skewed test distributions.
2. Identify any specific CONFIG_ options required to properly test this new/modified feature.
   Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions.
   Do not list too generic configs (we already have them enabled). Only list those that
   specifically cover the modified code. List them in the EnableConfigs output array,
   and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
For your convenience, here is the diff of the changes:
commit b9f287a8b230d94d549c41d8b62d2237254178af
Author: syz-cluster <triage@syzkaller.com>
Date:   Thu Jul 2 17:53:49 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index a0a5740590b945..76ad4ffa950ab3 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -63,35 +63,6 @@ static const u8 mbm_guid[16] = {
 	0xa6, 0x07, 0xc0, 0xff, 0xcb, 0x7e, 0x39, 0x2a,
 };
 
-void usbnet_cdc_update_filter(struct usbnet *dev)
-{
-	struct net_device	*net = dev->net;
-
-	u16 cdc_filter = USB_CDC_PACKET_TYPE_DIRECTED
-			| USB_CDC_PACKET_TYPE_BROADCAST;
-
-	/* filtering on the device is an optional feature and not worth
-	 * the hassle so we just roughly care about snooping and if any
-	 * multicast is requested, we take every multicast
-	 */
-	if (net->flags & IFF_PROMISC)
-		cdc_filter |= USB_CDC_PACKET_TYPE_PROMISCUOUS;
-	if (!netdev_mc_empty(net) || (net->flags & IFF_ALLMULTI))
-		cdc_filter |= USB_CDC_PACKET_TYPE_ALL_MULTICAST;
-
-	usb_control_msg(dev->udev,
-			usb_sndctrlpipe(dev->udev, 0),
-			USB_CDC_SET_ETHERNET_PACKET_FILTER,
-			USB_TYPE_CLASS | USB_RECIP_INTERFACE,
-			cdc_filter,
-			dev->intf->cur_altsetting->desc.bInterfaceNumber,
-			NULL,
-			0,
-			USB_CTRL_SET_TIMEOUT
-		);
-}
-EXPORT_SYMBOL_GPL(usbnet_cdc_update_filter);
-
 /* We need to override usbnet_*_link_ksettings in bind() */
 static const struct ethtool_ops cdc_ether_ethtool_ops = {
 	.get_link		= usbnet_get_link,
@@ -114,7 +85,7 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
 	u8				*buf = intf->cur_altsetting->extra;
 	int				len = intf->cur_altsetting->extralen;
 	struct usb_interface_descriptor	*d;
-	struct cdc_state		*info = (void *) &dev->data;
+	struct cdc_state		*info = &dev->cdc;
 	int				status = -ENODEV;
 	int				rndis;
 	bool				android_rndis_quirk = false;
@@ -365,7 +336,7 @@ EXPORT_SYMBOL_GPL(usbnet_ether_cdc_bind);
 
 void usbnet_cdc_unbind(struct usbnet *dev, struct usb_interface *intf)
 {
-	struct cdc_state		*info = (void *) &dev->data;
+	struct cdc_state		*info = &dev->cdc;
 	struct usb_driver		*driver = driver_of(intf);
 
 	/* combined interface - nothing  to do */
@@ -400,59 +371,10 @@ EXPORT_SYMBOL_GPL(usbnet_cdc_unbind);
  * (by Brad Hards) talked with, with more functionality.
  */
 
-static void speed_change(struct usbnet *dev, __le32 *speeds)
-{
-	dev->tx_speed = __le32_to_cpu(speeds[0]);
-	dev->rx_speed = __le32_to_cpu(speeds[1]);
-}
-
-void usbnet_cdc_status(struct usbnet *dev, struct urb *urb)
-{
-	struct usb_cdc_notification	*event;
-
-	if (urb->actual_length < sizeof(*event))
-		return;
-
-	/* SPEED_CHANGE can get split into two 8-byte packets */
-	if (test_and_clear_bit(EVENT_STS_SPLIT, &dev->flags)) {
-		speed_change(dev, (__le32 *) urb->transfer_buffer);
-		return;
-	}
-
-	event = urb->transfer_buffer;
-	switch (event->bNotificationType) {
-	case USB_CDC_NOTIFY_NETWORK_CONNECTION:
-		netif_dbg(dev, timer, dev->net, "CDC: carrier %s\n",
-			  event->wValue ? "on" : "off");
-		if (netif_carrier_ok(dev->net) != !!event->wValue)
-			usbnet_link_change(dev, !!event->wValue, 0);
-		break;
-	case USB_CDC_NOTIFY_SPEED_CHANGE:	/* tx/rx rates */
-		netif_dbg(dev, timer, dev->net, "CDC: speed change (len %d)\n",
-			  urb->actual_length);
-		if (urb->actual_length != (sizeof(*event) + 8))
-			set_bit(EVENT_STS_SPLIT, &dev->flags);
-		else
-			speed_change(dev, (__le32 *) &event[1]);
-		break;
-	/* USB_CDC_NOTIFY_RESPONSE_AVAILABLE can happen too (e.g. RNDIS),
-	 * but there are no standard formats for the response data.
-	 */
-	default:
-		netdev_err(dev->net, "CDC: unexpected notification %02x!\n",
-			   event->bNotificationType);
-		break;
-	}
-}
-EXPORT_SYMBOL_GPL(usbnet_cdc_status);
-
 int usbnet_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
 {
 	int				status;
-	struct cdc_state		*info = (void *) &dev->data;
-
-	BUILD_BUG_ON((sizeof(((struct usbnet *)0)->data)
-			< sizeof(struct cdc_state)));
+	struct cdc_state		*info = &dev->cdc;
 
 	status = usbnet_ether_cdc_bind(dev, intf);
 	if (status < 0)
@@ -479,25 +401,6 @@ static int usbnet_cdc_zte_bind(struct usbnet *dev, struct usb_interface *intf)
 	return status;
 }
 
-/* Make sure packets have correct destination MAC address
- *
- * A firmware bug observed on some devices (ZTE MF823/831/910) is that the
- * device sends packets with a static, bogus, random MAC address (event if
- * device MAC address has been updated). Always set MAC address to that of the
- * device.
- */
-int usbnet_cdc_zte_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
-{
-	if (skb->len < ETH_HLEN || !(skb->data[0] & 0x02))
-		return 1;
-
-	skb_reset_mac_header(skb);
-	ether_addr_copy(eth_hdr(skb)->h_dest, dev->net->dev_addr);
-
-	return 1;
-}
-EXPORT_SYMBOL_GPL(usbnet_cdc_zte_rx_fixup);
-
 /* Ensure correct link state
  *
  * Some devices (ZTE MF823/831/910) export two carrier on notifications when
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c
index 5e39d05a2d7b6d..d539654687c305 100644
--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -57,7 +57,7 @@ EXPORT_SYMBOL_GPL(rndis_status);
 static void rndis_msg_indicate(struct usbnet *dev, struct rndis_indicate *msg,
 				int buflen)
 {
-	struct cdc_state *info = (void *)&dev->data;
+	struct cdc_state *info = &dev->cdc;
 	struct device *udev = &info->control->dev;
 
 	if (dev->driver_info->indication) {
@@ -90,7 +90,7 @@ static void rndis_msg_indicate(struct usbnet *dev, struct rndis_indicate *msg,
  */
 int rndis_command(struct usbnet *dev, struct rndis_msg_hdr *buf, int buflen)
 {
-	struct cdc_state	*info = (void *) &dev->data;
+	struct cdc_state	*info = &dev->cdc;
 	struct usb_cdc_notification notification;
 	int			master_ifnum;
 	int			retval;
@@ -290,7 +290,7 @@ generic_rndis_bind(struct usbnet *dev, struct usb_interface *intf, int flags)
 {
 	int			retval;
 	struct net_device	*net = dev->net;
-	struct cdc_state	*info = (void *) &dev->data;
+	struct cdc_state	*info = &dev->cdc;
 	union {
 		void			*buf;
 		struct rndis_msg_hdr	*header;
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 25518635b7b72d..7beea6d0e731cc 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -22,6 +22,7 @@
 #include <linux/init.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
+#include <linux/usb/cdc.h>
 #include <linux/ctype.h>
 #include <linux/ethtool.h>
 #include <linux/workqueue.h>
@@ -2271,6 +2272,100 @@ int usbnet_write_cmd_async(struct usbnet *dev, u8 cmd, u8 reqtype,
 
 }
 EXPORT_SYMBOL_GPL(usbnet_write_cmd_async);
+
+void usbnet_cdc_update_filter(struct usbnet *dev)
+{
+	struct net_device	*net = dev->net;
+
+	u16 cdc_filter = USB_CDC_PACKET_TYPE_DIRECTED
+			| USB_CDC_PACKET_TYPE_BROADCAST;
+
+	/* filtering on the device is an optional feature and not worth
+	 * the hassle so we just roughly care about snooping and if any
+	 * multicast is requested, we take every multicast
+	 */
+	if (net->flags & IFF_PROMISC)
+		cdc_filter |= USB_CDC_PACKET_TYPE_PROMISCUOUS;
+	if (!netdev_mc_empty(net) || (net->flags & IFF_ALLMULTI))
+		cdc_filter |= USB_CDC_PACKET_TYPE_ALL_MULTICAST;
+
+	usb_control_msg(dev->udev,
+			usb_sndctrlpipe(dev->udev, 0),
+			USB_CDC_SET_ETHERNET_PACKET_FILTER,
+			USB_TYPE_CLASS | USB_RECIP_INTERFACE,
+			cdc_filter,
+			dev->intf->cur_altsetting->desc.bInterfaceNumber,
+			NULL,
+			0,
+			USB_CTRL_SET_TIMEOUT
+		);
+}
+EXPORT_SYMBOL_GPL(usbnet_cdc_update_filter);
+
+static void speed_change(struct usbnet *dev, __le32 *speeds)
+{
+	dev->tx_speed = __le32_to_cpu(speeds[0]);
+	dev->rx_speed = __le32_to_cpu(speeds[1]);
+}
+
+void usbnet_cdc_status(struct usbnet *dev, struct urb *urb)
+{
+	struct usb_cdc_notification	*event;
+
+	if (urb->actual_length < sizeof(*event))
+		return;
+
+	/* SPEED_CHANGE can get split into two 8-byte packets */
+	if (test_and_clear_bit(EVENT_STS_SPLIT, &dev->flags)) {
+		speed_change(dev, (__le32 *)urb->transfer_buffer);
+		return;
+	}
+
+	event = urb->transfer_buffer;
+	switch (event->bNotificationType) {
+	case USB_CDC_NOTIFY_NETWORK_CONNECTION:
+		netif_dbg(dev, timer, dev->net, "CDC: carrier %s\n",
+			  event->wValue ? "on" : "off");
+		if (netif_carrier_ok(dev->net) != !!event->wValue)
+			usbnet_link_change(dev, !!event->wValue, 0);
+		break;
+	case USB_CDC_NOTIFY_SPEED_CHANGE:	/* tx/rx rates */
+		netif_dbg(dev, timer, dev->net, "CDC: speed change (len %d)\n",
+			  urb->actual_length);
+		if (urb->actual_length != (sizeof(*event) + 8))
+			set_bit(EVENT_STS_SPLIT, &dev->flags);
+		else
+			speed_change(dev, (__le32 *)&event[1]);
+		break;
+	/* USB_CDC_NOTIFY_RESPONSE_AVAILABLE can happen too (e.g. RNDIS),
+	 * but there are no standard formats for the response data.
+	 */
+	default:
+		netdev_err(dev->net, "CDC: unexpected notification %02x!\n",
+			   event->bNotificationType);
+		break;
+	}
+}
+EXPORT_SYMBOL_GPL(usbnet_cdc_status);
+
+/* Make sure packets have correct destination MAC address
+ *
+ * A firmware bug observed on some devices (ZTE MF823/831/910) is that the
+ * device sends packets with a static, bogus, random MAC address (event if
+ * device MAC address has been updated). Always set MAC address to that of the
+ * device.
+ */
+int usbnet_cdc_zte_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
+{
+	if (skb->len < ETH_HLEN || !(skb->data[0] & 0x02))
+		return 1;
+
+	skb_reset_mac_header(skb);
+	ether_addr_copy(eth_hdr(skb)->h_dest, dev->net->dev_addr);
+
+	return 1;
+}
+EXPORT_SYMBOL_GPL(usbnet_cdc_zte_rx_fixup);
 /*-------------------------------------------------------------------------*/
 
 static int __init usbnet_init(void)
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h
index bbf799ccf3b30e..79f48eb388ee6c 100644
--- a/include/linux/usb/usbnet.h
+++ b/include/linux/usb/usbnet.h
@@ -16,6 +16,14 @@
 #include <linux/usb.h>
 #include <linux/spinlock.h>
 
+struct cdc_state {
+	struct usb_cdc_header_desc      *header;
+	struct usb_cdc_union_desc       *u;
+	struct usb_cdc_ether_desc       *ether;
+	struct usb_interface            *control;
+	struct usb_interface            *data;
+};
+
 /* interface from usbnet core to each USB networking link we handle */
 struct usbnet {
 	/* housekeeping */
@@ -41,6 +49,7 @@ struct usbnet {
 	/* protocol/interface state */
 	struct net_device	*net;
 	int			msg_enable;
+	struct cdc_state	cdc;		/* too common to leave out*/
 	unsigned long		data[5];
 	u32			xid;
 	u32			hard_mtu;	/* count any extra framing */
@@ -211,13 +220,6 @@ extern int usbnet_write_cmd_async(struct usbnet *dev, u8 cmd, u8 reqtype,
  * (notably, using multiple interfaces according to the CDC
  * union descriptor) get some helper code.
  */
-struct cdc_state {
-	struct usb_cdc_header_desc	*header;
-	struct usb_cdc_union_desc	*u;
-	struct usb_cdc_ether_desc	*ether;
-	struct usb_interface		*control;
-	struct usb_interface		*data;
-};
 
 extern void usbnet_cdc_update_filter(struct usbnet *dev);
 extern int usbnet_generic_cdc_bind(struct usbnet *, struct usb_interface *);

3/2 2026/07/02 17:53 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 6005
							output: 20
							thoughts: 2078
						

Thoughts:
**Analysis of the USB CDC Ethernet Refactoring Patch**

Okay, so I'm looking at this patch that's shuffling some code around in the USB networking stack. Specifically, it's moving a few functions, `usbnet_cdc_update_filter`, `usbnet_cdc_status`, and `usbnet_cdc_zte_rx_fixup`, from `cdc_ether.c` into the more general `usbnet.c`. It's also modifying the `struct usbnet` in `usbnet.h`. Before, the `cdc_state` data was placed on top of the generic `data` array; now, it's getting its own dedicated `cdc` member. Basically, it’s allocating space for a `struct cdc_state` directly within `struct usbnet`. Also it changes `struct cdc_state *info = (void *) &dev->data;` to `struct cdc_state *info = &dev->cdc;` in a few places.

My first thought is, is this a functional change? The code's moving, the structure is different, so how does it affect things? It looks like the main goal is to avoid aliasing issues and improve clarity. It's making the struct layout more explicit.

The code changes appear to be mainly refactoring, but I need to make sure. I'm focusing on whether this affects existing drivers or adds new logic. I quickly check the functions being moved. Nope, they are identical. They seem to be moved from a specific driver (`cdc_ether`) to the core module (`usbnet`). This change might be to allow other drivers to use them without depending on `cdc_ether`.

I check the struct change more closely. The size of `struct usbnet` is increasing, but `data[5]` is still there, so the new `cdc` field is not overlaying anything. Previously, there was an overlap and now it’s all dedicated. This means the `data` array is no longer used for the `cdc_state`. It's a clean refactoring.

So, does it warrant fuzzing? Typically, just moving code and changing struct layouts *without* introducing new logic doesn't necessitate focused fuzzing, but it can be a good test to check it didn't break anything. And since the prompt's instructions are to return `WorthFuzzing=false` if the patch contains "Purely decorative changes..." I need to be sure.

But then I think... is there a subtle functional change? Separating `cdc` and `data` might fix a bug where `data` was overwritten, but only if another driver was using both the generic data array and the CDC state through the array. This is probably a bug fix. But in our case the `cdc_ether` and `rndis_host` use it the old way. I should check the commit message, but I don't have it.

The diff does not show new code, only moving, and struct changes. The patch is definitely refactoring. It moves functions and changes struct layout.

So, am I at `WorthFuzzing=false` or `WorthFuzzing=true`? The prompt doesn’t explicitly say refactoring is `WorthFuzzing=false`. But, it *does* say if it modifies reachable kernel logic, I need to do further checks and return `WorthFuzzing=true`. Refactoring *does* modify reachable drivers. And that logic *is* accessible by drivers, especially through CDC Ethernet. Therefore, if I say `WorthFuzzing=true`, the focus symbols would be `usbnet_cdc_status`, `usbnet_cdc_update_filter`, and `usbnet_cdc_zte_rx_fixup`. They're the critical pieces of this shuffle. These functions *are* reachable.

After consideration, I will mark it as `WorthFuzzing=false`. This is because the functions and struct layout are refactored, but no new features or functional logic is introduced.



4/2 2026/07/02 17:54 tool grepper
0m Args:
{
  "Expression": "usbnet_cdc_status"
}

Results:
{
  "Output": "drivers/net/usb/cdc_ether.c=410=static void usbnet_cdc_zte_status(struct usbnet *dev, struct urb *urb)\n--\ndrivers/net/usb/cdc_ether.c-419-\tif (event-\u003ebNotificationType != USB_CDC_NOTIFY_NETWORK_CONNECTION) {\ndrivers/net/usb/cdc_ether.c:420:\t\tusbnet_cdc_status(dev, urb);\ndrivers/net/usb/cdc_ether.c-421-\t\treturn;\n--\ndrivers/net/usb/cdc_ether.c=434=static const struct driver_info\tcdc_info = {\n--\ndrivers/net/usb/cdc_ether.c-438-\t.unbind =\tusbnet_cdc_unbind,\ndrivers/net/usb/cdc_ether.c:439:\t.status =\tusbnet_cdc_status,\ndrivers/net/usb/cdc_ether.c-440-\t.set_rx_mode =\tusbnet_cdc_update_filter,\n--\ndrivers/net/usb/cdc_ether.c=455=static const struct driver_info wwan_info = {\n--\ndrivers/net/usb/cdc_ether.c-459-\t.unbind =\tusbnet_cdc_unbind,\ndrivers/net/usb/cdc_ether.c:460:\t.status =\tusbnet_cdc_status,\ndrivers/net/usb/cdc_ether.c-461-\t.set_rx_mode =\tusbnet_cdc_update_filter,\n--\ndrivers/net/usb/lg-vl600.c=301=static const struct driver_info\tvl600_info = {\n--\ndrivers/net/usb/lg-vl600.c-305-\t.unbind\t\t= vl600_unbind,\ndrivers/net/usb/lg-vl600.c:306:\t.status\t\t= usbnet_cdc_status,\ndrivers/net/usb/lg-vl600.c-307-\t.rx_fixup\t= vl600_rx_fixup,\n--\ndrivers/net/usb/r8153_ecm.c=115=static const struct driver_info r8153_info = {\n--\ndrivers/net/usb/r8153_ecm.c-119-\t.unbind =\tusbnet_cdc_unbind,\ndrivers/net/usb/r8153_ecm.c:120:\t.status =\tusbnet_cdc_status,\ndrivers/net/usb/r8153_ecm.c-121-\t.manage_power =\tusbnet_manage_power,\n--\ndrivers/net/usb/usbnet.c=2305=static void speed_change(struct usbnet *dev, __le32 *speeds)\n--\ndrivers/net/usb/usbnet.c-2310-\ndrivers/net/usb/usbnet.c:2311:void usbnet_cdc_status(struct usbnet *dev, struct urb *urb)\ndrivers/net/usb/usbnet.c-2312-{\n--\ndrivers/net/usb/usbnet.c-2348-}\ndrivers/net/usb/usbnet.c:2349:EXPORT_SYMBOL_GPL(usbnet_cdc_status);\ndrivers/net/usb/usbnet.c-2350-\n--\ninclude/linux/usb/usbnet.h=228=extern void usbnet_cdc_unbind(struct usbnet *, struct usb_interface *);\ninclude/linux/usb/usbnet.h:229:extern void usbnet_cdc_status(struct usbnet *, struct urb *);\ninclude/linux/usb/usbnet.h-230-extern int usbnet_cdc_zte_rx_fixup(struct usbnet *dev, struct sk_buff *skb);\n"
}

5/2 2026/07/02 17:55 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 9925
							output: 17
							thoughts: 229
						

Thoughts:
**Refactoring Analysis: usbnet_cdc_status Move**

Okay, so this patch is moving `usbnet_cdc_status` and a few other things into `usbnet.c`. My initial thought is, is there any real need to fuzz this? If it's a straightforward refactoring, the underlying logic is identical, so it seems like a low-yield target for fuzzing.

But wait, hold on. Let's dig deeper into that `cdc_state` change. The original code had `struct cdc_state *info = (void *) &dev->data;` and now it's `struct cdc_state *info = &dev->cdc;`. That's significant. It means `cdc_state` is no longer aliased with `data`. I bet this is aimed at fixing a potential concurrency issue, where a driver was potentially using both `cdc_state` and `data` simultaneously.

I need to confirm that suspicion. Let me check if any drivers were, in fact, doing that. I recall `dev->data` is an array of five `unsigned long`s, and `cdc_state` is five pointers. If a driver decided to use `dev->data` for its own state, but also utilized any CDC functions, that would inevitably corrupt the `cdc_state` data. This is where I can apply my expertise. I should be able to identify any drivers that might have fallen into this trap and were relying on shared memory that was, effectively, a time-bomb. I need to know if any drivers used `dev->data` while simultaneously calling CDC functions.



6/2 2026/07/02 17:55 tool grepper
0m Args:
{
  "Expression": "dev-\u003edata"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 2839 lines.\nUse more precise expression if possible.\n\nblock/sed-opal.c=460=static int opal_send_cmd(struct opal_dev *dev)\nblock/sed-opal.c-461-{\nblock/sed-opal.c:462:\treturn dev-\u003esend_recv(dev-\u003edata, dev-\u003ecomid, TCG_SECP_01,\nblock/sed-opal.c-463-\t\t\t      dev-\u003ecmd, IO_BUFFER_LENGTH,\n--\nblock/sed-opal.c=467=static int opal_recv_cmd(struct opal_dev *dev)\nblock/sed-opal.c-468-{\nblock/sed-opal.c:469:\treturn dev-\u003esend_recv(dev-\u003edata, dev-\u003ecomid, TCG_SECP_01,\nblock/sed-opal.c-470-\t\t\t      dev-\u003eresp, IO_BUFFER_LENGTH,\n--\nblock/sed-opal.c=2598=struct opal_dev *init_opal_dev(void *data, sec_send_recv *send_recv)\n--\nblock/sed-opal.c-2620-\tdev-\u003eflags = 0;\nblock/sed-opal.c:2621:\tdev-\u003edata = data;\nblock/sed-opal.c-2622-\tdev-\u003esend_recv = send_recv;\n--\nblock/sed-opal.c=3548=static int opal_stack_reset(struct opal_dev *dev)\n--\nblock/sed-opal.c-3561-\nblock/sed-opal.c:3562:\tret = dev-\u003esend_recv(dev-\u003edata, dev-\u003ecomid, TCG_SECP_02,\nblock/sed-opal.c-3563-\t\t\t     dev-\u003ecmd, IO_BUFFER_LENGTH, true);\n--\nblock/sed-opal.c-3569-\tmemset(dev-\u003eresp, 0, IO_BUFFER_LENGTH);\nblock/sed-opal.c:3570:\tret = dev-\u003esend_recv(dev-\u003edata, dev-\u003ecomid, TCG_SECP_02,\nblock/sed-opal.c-3571-\t\t\t     dev-\u003eresp, IO_BUFFER_LENGTH, false);\n--\ndrivers/acpi/bus.c=901=bool acpi_of_match_device(const struct acpi_device *adev,\n--\ndrivers/acpi/bus.c-910-\ndrivers/acpi/bus.c:911:\tof_compatible = adev-\u003edata.of_compatible;\ndrivers/acpi/bus.c-912-\tif (!of_match_table || !of_compatible)\n--\ndrivers/acpi/bus.c=937=static bool acpi_of_modalias(struct acpi_device *adev,\n--\ndrivers/acpi/bus.c-943-\ndrivers/acpi/bus.c:944:\tof_compatible = adev-\u003edata.of_compatible;\ndrivers/acpi/bus.c-945-\tif (!of_compatible)\n--\ndrivers/acpi/device_sysfs.c=192=static int create_of_modalias(const struct acpi_device *acpi_dev, char *modalias,\n--\ndrivers/acpi/device_sysfs.c-217-\ndrivers/acpi/device_sysfs.c:218:\tof_compatible = acpi_dev-\u003edata.of_compatible;\ndrivers/acpi/device_sysfs.c-219-\tif (of_compatible-\u003etype == ACPI_TYPE_PACKAGE) {\n--\ndrivers/acpi/device_sysfs.c=240=int __acpi_device_uevent_modalias(const struct acpi_device *adev,\n--\ndrivers/acpi/device_sysfs.c-253-\ndrivers/acpi/device_sysfs.c:254:\tif (adev-\u003edata.of_compatible)\ndrivers/acpi/device_sysfs.c-255-\t\tlen = create_of_modalias(adev, \u0026env-\u003ebuf[env-\u003ebuflen - 1],\n--\ndrivers/acpi/device_sysfs.c=284=static int __acpi_device_modalias(const struct acpi_device *adev, char *buf, int size)\n--\ndrivers/acpi/device_sysfs.c-300-\t}\ndrivers/acpi/device_sysfs.c:301:\tif (!adev-\u003edata.of_compatible)\ndrivers/acpi/device_sysfs.c-302-\t\treturn len;\n--\ndrivers/acpi/device_sysfs.c=639=void acpi_device_setup_files(struct acpi_device *dev)\ndrivers/acpi/device_sysfs.c-640-{\ndrivers/acpi/device_sysfs.c:641:\tacpi_expose_nondev_subnodes(\u0026dev-\u003edev.kobj, \u0026dev-\u003edata);\ndrivers/acpi/device_sysfs.c-642-}\n--\ndrivers/acpi/device_sysfs.c=648=void acpi_device_remove_files(struct acpi_device *dev)\ndrivers/acpi/device_sysfs.c-649-{\ndrivers/acpi/device_sysfs.c:650:\tacpi_hide_nondev_subnodes(\u0026dev-\u003edata);\ndrivers/acpi/device_sysfs.c-651-}\n--\ndrivers/acpi/property.c=342=static void acpi_init_of_compatible(struct acpi_device *adev)\n--\ndrivers/acpi/property.c-346-\ndrivers/acpi/property.c:347:\tret = acpi_data_get_property_array(\u0026adev-\u003edata, \"compatible\",\ndrivers/acpi/property.c-348-\t\t\t\t\t   ACPI_TYPE_STRING, \u0026of_compatible);\n--\ndrivers/acpi/property.c-361-\t}\ndrivers/acpi/property.c:362:\tadev-\u003edata.of_compatible = of_compatible;\ndrivers/acpi/property.c-363-\n--\ndrivers/acpi/property.c=585=void acpi_init_properties(struct acpi_device *adev)\n--\ndrivers/acpi/property.c-591-\ndrivers/acpi/property.c:592:\tINIT_LIST_HEAD(\u0026adev-\u003edata.properties);\ndrivers/acpi/property.c:593:\tINIT_LIST_HEAD(\u0026adev-\u003edata.subnodes);\ndrivers/acpi/property.c-594-\n--\ndrivers/acpi/property.c-613-\ndrivers/acpi/property.c:614:\tif (acpi_extract_properties(adev-\u003ehandle, buf.pointer, \u0026adev-\u003edata)) {\ndrivers/acpi/property.c:615:\t\tadev-\u003edata.pointer = buf.pointer;\ndrivers/acpi/property.c-616-\t\tif (acpi_of)\n--\ndrivers/acpi/property.c-619-\tif (acpi_enumerate_nondev_subnodes(adev-\u003ehandle, buf.pointer,\ndrivers/acpi/property.c:620:\t\t\t\t\t\u0026adev-\u003edata, acpi_fwnode_handle(adev)))\ndrivers/acpi/property.c:621:\t\tadev-\u003edata.pointer = buf.pointer;\ndrivers/acpi/property.c-622-\ndrivers/acpi/property.c:623:\tif (!adev-\u003edata.pointer) {\ndrivers/acpi/property.c-624-\t\tacpi_handle_debug(adev-\u003ehandle, \"Invalid _DSD data, skipping\\n\");\n--\ndrivers/acpi/property.c-626-\t} else {\ndrivers/acpi/property.c:627:\t\tif (!acpi_tie_nondev_subnodes(\u0026adev-\u003edata))\ndrivers/acpi/property.c:628:\t\t\tacpi_untie_nondev_subnodes(\u0026adev-\u003edata);\ndrivers/acpi/property.c-629-\t}\n--\ndrivers/acpi/property.c-635-\ndrivers/acpi/property.c:636:\tif (!adev-\u003edata.pointer)\ndrivers/acpi/property.c-637-\t\tacpi_extract_apple_properties(adev);\n--\ndrivers/acpi/property.c=673=void acpi_free_properties(struct acpi_device *adev)\ndrivers/acpi/property.c-674-{\ndrivers/acpi/property.c:675:\tacpi_untie_nondev_subnodes(\u0026adev-\u003edata);\ndrivers/acpi/property.c:676:\tacpi_destroy_nondev_subnodes(\u0026adev-\u003edata.subnodes);\ndrivers/acpi/property.c:677:\tACPI_FREE((void *)adev-\u003edata.pointer);\ndrivers/acpi/property.c:678:\tadev-\u003edata.of_compatible = NULL;\ndrivers/acpi/property.c:679:\tadev-\u003edata.pointer = NULL;\ndrivers/acpi/property.c:680:\tacpi_free_device_properties(\u0026adev-\u003edata.properties);\ndrivers/acpi/property.c-681-}\n--\ndrivers/acpi/property.c=748=int acpi_dev_get_property(const struct acpi_device *adev, const char *name,\n--\ndrivers/acpi/property.c-750-{\ndrivers/acpi/property.c:751:\treturn adev ? acpi_data_get_property(\u0026adev-\u003edata, name, type, obj) : -EINVAL;\ndrivers/acpi/property.c-752-}\n--\ndrivers/acpi/property.c=756=acpi_device_data_of_node(const struct fwnode_handle *fwnode)\n--\ndrivers/acpi/property.c-759-\t\tconst struct acpi_device *adev = to_acpi_device_node(fwnode);\ndrivers/acpi/property.c:760:\t\treturn \u0026adev-\u003edata;\ndrivers/acpi/property.c-761-\t}\n--\ndrivers/acpi/property.c=1338=acpi_get_next_subnode(const struct fwnode_handle *fwnode,\n--\ndrivers/acpi/property.c-1367-\t\tif (adev)\ndrivers/acpi/property.c:1368:\t\t\thead = \u0026adev-\u003edata.subnodes;\ndrivers/acpi/property.c-1369-\t\telse if (data)\n--\ndrivers/acpi/scan.c=2291=static int acpi_generic_device_attach(struct acpi_device *adev,\n--\ndrivers/acpi/scan.c-2297-\t */\ndrivers/acpi/scan.c:2298:\tif (adev-\u003edata.of_compatible)\ndrivers/acpi/scan.c-2299-\t\tacpi_default_enumeration(adev);\n--\ndrivers/acpi/x86/apple.c=28=void acpi_extract_apple_properties(struct acpi_device *adev)\n--\ndrivers/acpi/x86/apple.c-141-\ndrivers/acpi/x86/apple.c:142:\tadev-\u003edata.pointer = newprops;\ndrivers/acpi/x86/apple.c:143:\tacpi_data_add_props(\u0026adev-\u003edata, \u0026apple_prp_guid, newprops);\ndrivers/acpi/x86/apple.c-144-\n--\ndrivers/block/null_blk/main.c=777=static struct nullb_device *null_alloc_dev(void)\n--\ndrivers/block/null_blk/main.c-790-\ndrivers/block/null_blk/main.c:791:\tINIT_RADIX_TREE(\u0026dev-\u003edata, GFP_ATOMIC);\ndrivers/block/null_blk/main.c-792-\tINIT_RADIX_TREE(\u0026dev-\u003ecache, GFP_ATOMIC);\n--\ndrivers/block/null_blk/main.c=900=static void null_free_sector(struct nullb *nullb, sector_t sector,\n--\ndrivers/block/null_blk/main.c-907-\ndrivers/block/null_blk/main.c:908:\troot = is_cache ? \u0026nullb-\u003edev-\u003ecache : \u0026nullb-\u003edev-\u003edata;\ndrivers/block/null_blk/main.c-909-\tidx = sector \u003e\u003e PAGE_SECTORS_SHIFT;\n--\ndrivers/block/null_blk/main.c=926=static struct nullb_page *null_radix_tree_insert(struct nullb *nullb, u64 idx,\n--\ndrivers/block/null_blk/main.c-930-\ndrivers/block/null_blk/main.c:931:\troot = is_cache ? \u0026nullb-\u003edev-\u003ecache : \u0026nullb-\u003edev-\u003edata;\ndrivers/block/null_blk/main.c-932-\n--\ndrivers/block/null_blk/main.c=943=static void null_free_device_storage(struct nullb_device *dev, bool is_cache)\n--\ndrivers/block/null_blk/main.c-949-\ndrivers/block/null_blk/main.c:950:\troot = is_cache ? \u0026dev-\u003ecache : \u0026dev-\u003edata;\ndrivers/block/null_blk/main.c-951-\n--\ndrivers/block/null_blk/main.c=972=static struct nullb_page *__null_lookup_page(struct nullb *nullb,\n--\ndrivers/block/null_blk/main.c-982-\ndrivers/block/null_blk/main.c:983:\troot = is_cache ? \u0026nullb-\u003edev-\u003ecache : \u0026nullb-\u003edev-\u003edata;\ndrivers/block/null_blk/main.c-984-\tt_page = radix_tree_lookup(root, idx);\n--\ndrivers/block/null_blk/main.c=1040=static int null_flush_cache_page(struct nullb *nullb, struct nullb_page *c_page)\n--\ndrivers/block/null_blk/main.c-1055-\t\tif (t_page \u0026\u0026 null_page_empty(t_page)) {\ndrivers/block/null_blk/main.c:1056:\t\t\tret = radix_tree_delete_item(\u0026nullb-\u003edev-\u003edata,\ndrivers/block/null_blk/main.c-1057-\t\t\t\tidx, t_page);\n--\ndrivers/bluetooth/btmtksdio.c=326=static int btmtksdio_fw_pmctrl(struct btmtksdio_dev *bdev)\n--\ndrivers/bluetooth/btmtksdio.c-332-\ndrivers/bluetooth/btmtksdio.c:333:\tif (bdev-\u003edata-\u003elp_mbox_supported \u0026\u0026\ndrivers/bluetooth/btmtksdio.c-334-\t    test_bit(BTMTKSDIO_PATCH_ENABLED, \u0026bdev-\u003etx_state)) {\n--\ndrivers/bluetooth/btmtksdio.c=363=static int btmtksdio_drv_pmctrl(struct btmtksdio_dev *bdev)\n--\ndrivers/bluetooth/btmtksdio.c-377-\ndrivers/bluetooth/btmtksdio.c:378:\tif (!err \u0026\u0026 bdev-\u003edata-\u003elp_mbox_supported \u0026\u0026\ndrivers/bluetooth/btmtksdio.c-379-\t    test_bit(BTMTKSDIO_PATCH_ENABLED, \u0026bdev-\u003etx_state))\n--\ndrivers/bluetooth/btmtksdio.c=558=static void btmtksdio_txrx_work(struct work_struct *work)\n--\ndrivers/bluetooth/btmtksdio.c-591-\t\tif ((int_status \u0026 FW_MAILBOX_INT) \u0026\u0026\ndrivers/bluetooth/btmtksdio.c:592:\t\t    bdev-\u003edata-\u003echipid == 0x7921) {\ndrivers/bluetooth/btmtksdio.c-593-\t\t\tsdio_writel(bdev-\u003efunc, PH2DSM0R_DRIVER_OWN,\n--\ndrivers/bluetooth/btmtksdio.c=1093=static int btmtksdio_setup(struct hci_dev *hdev)\n--\ndrivers/bluetooth/btmtksdio.c-1104-\ndrivers/bluetooth/btmtksdio.c:1105:\tswitch (bdev-\u003edata-\u003echipid) {\ndrivers/bluetooth/btmtksdio.c-1106-\tcase 0x7902:\n--\ndrivers/bluetooth/btmtksdio.c-1171-\tcase 0x7668:\ndrivers/bluetooth/btmtksdio.c:1172:\t\terr = mt76xx_setup(hdev, bdev-\u003edata-\u003efwname);\ndrivers/bluetooth/btmtksdio.c-1173-\t\tif (err \u003c 0)\n--\ndrivers/bluetooth/btmtksdio.c-1183-\ndrivers/bluetooth/btmtksdio.c:1184:\tif (bdev-\u003edata-\u003epm_runtime_supported) {\ndrivers/bluetooth/btmtksdio.c-1185-\t\tpm_runtime_set_autosuspend_delay(bdev-\u003edev,\n--\ndrivers/bluetooth/btmtksdio.c=1272=static void btmtksdio_reset(struct hci_dev *hdev)\n--\ndrivers/bluetooth/btmtksdio.c-1277-\ndrivers/bluetooth/btmtksdio.c:1278:\tif (!bdev-\u003ereset || bdev-\u003edata-\u003echipid != 0x7921)\ndrivers/bluetooth/btmtksdio.c-1279-\t\treturn;\n--\ndrivers/bluetooth/btmtksdio.c=1332=static bool btmtksdio_sdio_wakeup(struct hci_dev *hdev)\n--\ndrivers/bluetooth/btmtksdio.c-1343-\ndrivers/bluetooth/btmtksdio.c:1344:\tif (may_wakeup \u0026\u0026 bdev-\u003edata-\u003echipid == 0x7921) {\ndrivers/bluetooth/btmtksdio.c-1345-\t\tstruct sk_buff *skb;\n--\ndrivers/bluetooth/btmtksdio.c=1358=static int btmtksdio_probe(struct sdio_func *func,\n--\ndrivers/bluetooth/btmtksdio.c-1370-\ndrivers/bluetooth/btmtksdio.c:1371:\tbdev-\u003edata = (void *)id-\u003edriver_data;\ndrivers/bluetooth/btmtksdio.c:1372:\tif (!bdev-\u003edata)\ndrivers/bluetooth/btmtksdio.c-1373-\t\treturn -ENODEV;\n--\ndrivers/bluetooth/btmtkuart.c=589=static int btmtkuart_setup(struct hci_dev *hdev)\n--\ndrivers/bluetooth/btmtkuart.c-642-\t/* Setup a firmware which the device definitely requires */\ndrivers/bluetooth/btmtkuart.c:643:\terr = btmtk_setup_firmware(hdev, bdev-\u003edata-\u003efwname, mtk_hci_wmt_sync);\ndrivers/bluetooth/btmtkuart.c-644-\tif (err \u003c 0)\n--\ndrivers/bluetooth/btmtkuart.c=828=static int btmtkuart_probe(struct serdev_device *serdev)\n--\ndrivers/bluetooth/btmtkuart.c-837-\ndrivers/bluetooth/btmtkuart.c:838:\tbdev-\u003edata = of_device_get_match_data(\u0026serdev-\u003edev);\ndrivers/bluetooth/btmtkuart.c:839:\tif (!bdev-\u003edata)\ndrivers/bluetooth/btmtkuart.c-840-\t\treturn -ENODEV;\n--\ndrivers/crypto/aspeed/aspeed-acry.c=210=static void aspeed_acry_rsa_sg_copy_to_buffer(struct aspeed_acry_dev *acry_dev,\n--\ndrivers/crypto/aspeed/aspeed-acry.c-222-\tfor (j = nbytes - 1; j \u003e= 0; j--) {\ndrivers/crypto/aspeed/aspeed-acry.c:223:\t\tdata_idx = acry_dev-\u003edata_byte_mapping[i];\ndrivers/crypto/aspeed/aspeed-acry.c-224-\t\tbuf[data_idx] =  dram_buffer[j];\n--\ndrivers/crypto/aspeed/aspeed-acry.c-228-\tfor (; i \u003c ASPEED_ACRY_SRAM_MAX_LEN; i++) {\ndrivers/crypto/aspeed/aspeed-acry.c:229:\t\tdata_idx = acry_dev-\u003edata_byte_mapping[i];\ndrivers/crypto/aspeed/aspeed-acry.c-230-\t\tbuf[data_idx] = 0;\n--\ndrivers/crypto/aspeed/aspeed-acry.c=299=static int aspeed_acry_rsa_transfer(struct aspeed_acry_dev *acry_dev)\n--\ndrivers/crypto/aspeed/aspeed-acry.c-319-\tfor (j = ASPEED_ACRY_SRAM_MAX_LEN - 1; j \u003e= 0; j--) {\ndrivers/crypto/aspeed/aspeed-acry.c:320:\t\tdata_idx = acry_dev-\u003edata_byte_mapping[j];\ndrivers/crypto/aspeed/aspeed-acry.c-321-\t\tif (readb(sram_buffer + data_idx) == 0 \u0026\u0026 leading_zero) {\n--\ndrivers/crypto/aspeed/aspeed-acry.c=677=static void aspeed_acry_sram_mapping(struct aspeed_acry_dev *acry_dev)\n--\ndrivers/crypto/aspeed/aspeed-acry.c-683-\t\tacry_dev-\u003emod_dw_mapping[i] = j + 4;\ndrivers/crypto/aspeed/aspeed-acry.c:684:\t\tacry_dev-\u003edata_byte_mapping[(i * 4)] = (j + 8) * 4;\ndrivers/crypto/aspeed/aspeed-acry.c:685:\t\tacry_dev-\u003edata_byte_mapping[(i * 4) + 1] = (j + 8) * 4 + 1;\ndrivers/crypto/aspeed/aspeed-acry.c:686:\t\tacry_dev-\u003edata_byte_mapping[(i * 4) + 2] = (j + 8) * 4 + 2;\ndrivers/crypto/aspeed/aspeed-acry.c:687:\t\tacry_dev-\u003edata_byte_mapping[(i * 4) + 3] = (j + 8) * 4 + 3;\ndrivers/crypto/aspeed/aspeed-acry.c-688-\t\tj++;\n--\ndrivers/edac/altera_edac.c=1502=static int altr_portb_setup(struct altr_edac_device_dev *device)\n--\ndrivers/edac/altera_edac.c-1542-\taltdev-\u003eedac_dev = dci;\ndrivers/edac/altera_edac.c:1543:\taltdev-\u003edata = prv;\ndrivers/edac/altera_edac.c-1544-\tdci-\u003edev = \u0026altdev-\u003eddev;\n--\ndrivers/edac/altera_edac.c=1889=static int altr_edac_a10_device_add(struct altr_arria10_edac *edac,\n--\ndrivers/edac/altera_edac.c-1943-\taltdev-\u003eedac_dev = dci;\ndrivers/edac/altera_edac.c:1944:\taltdev-\u003edata = prv;\ndrivers/edac/altera_edac.c-1945-\taltdev-\u003eddev = *edac-\u003edev;\n--\ndrivers/edac/altera_edac.c-1957-\t/* Check specific dependencies for the module */\ndrivers/edac/altera_edac.c:1958:\tif (altdev-\u003edata-\u003esetup) {\ndrivers/edac/altera_edac.c:1959:\t\trc = altdev-\u003edata-\u003esetup(altdev);\ndrivers/edac/altera_edac.c-1960-\t\tif (rc)\n--\ndrivers/gpio/gpio-rdc321x.c=119=static int rdc321x_gpio_probe(struct platform_device *pdev)\n--\ndrivers/gpio/gpio-rdc321x.c-172-\t\t\t\t\trdc321x_gpio_dev-\u003ereg1_data_base,\ndrivers/gpio/gpio-rdc321x.c:173:\t\t\t\t\t\u0026rdc321x_gpio_dev-\u003edata_reg[0]);\ndrivers/gpio/gpio-rdc321x.c-174-\tif (err)\n--\ndrivers/gpio/gpio-rdc321x.c-178-\t\t\t\t\trdc321x_gpio_dev-\u003ereg2_data_base,\ndrivers/gpio/gpio-rdc321x.c:179:\t\t\t\t\t\u0026rdc321x_gpio_dev-\u003edata_reg[1]);\ndrivers/gpio/gpio-rdc321x.c-180-\tif (err)\n--\ndrivers/gpio/gpiolib.c=1101=static void gpiochip_set_data(struct gpio_chip *gc, void *data)\ndrivers/gpio/gpiolib.c-1102-{\ndrivers/gpio/gpiolib.c:1103:\tgc-\u003egpiodev-\u003edata = data;\ndrivers/gpio/gpiolib.c-1104-}\n--\ndrivers/gpio/gpiolib.c=1113=void *gpiochip_get_data(struct gpio_chip *gc)\ndrivers/gpio/gpiolib.c-1114-{\ndrivers/gpio/gpiolib.c:1115:\treturn gc-\u003egpiodev-\u003edata;\ndrivers/gpio/gpiolib.c-1116-}\n--\ndrivers/hwmon/npcm750-pwm-fan.c=811=npcm7xx_pwm_cz_set_cur_state(struct thermal_cooling_device *tcdev,\n--\ndrivers/hwmon/npcm750-pwm-fan.c-820-\tcdev-\u003ecur_state = state;\ndrivers/hwmon/npcm750-pwm-fan.c:821:\tret = npcm7xx_pwm_config_set(cdev-\u003edata, cdev-\u003epwm_port,\ndrivers/hwmon/npcm750-pwm-fan.c-822-\t\t\t\t     cdev-\u003ecooling_levels[cdev-\u003ecur_state]);\n--\ndrivers/hwmon/npcm750-pwm-fan.c=833=static int npcm7xx_create_pwm_cooling(struct device *dev,\n--\ndrivers/hwmon/npcm750-pwm-fan.c-866-\ndrivers/hwmon/npcm750-pwm-fan.c:867:\tcdev-\u003edata = data;\ndrivers/hwmon/npcm750-pwm-fan.c-868-\tcdev-\u003epwm_port = pwm_port;\n--\ndrivers/i2c/busses/i2c-brcmstb.c=181=static inline int brcmstb_i2c_get_xfersz(struct brcmstb_i2c_dev *dev)\ndrivers/i2c/busses/i2c-brcmstb.c-182-{\ndrivers/i2c/busses/i2c-brcmstb.c:183:\treturn (N_DATA_REGS * dev-\u003edata_regsz);\ndrivers/i2c/busses/i2c-brcmstb.c-184-}\n--\ndrivers/i2c/busses/i2c-brcmstb.c=186=static inline int brcmstb_i2c_get_data_regsz(struct brcmstb_i2c_dev *dev)\ndrivers/i2c/busses/i2c-brcmstb.c-187-{\ndrivers/i2c/busses/i2c-brcmstb.c:188:\treturn dev-\u003edata_regsz;\ndrivers/i2c/busses/i2c-brcmstb.c-189-}\n--\ndrivers/i2c/busses/i2c-brcmstb.c=612=static int brcmstb_i2c_probe(struct platform_device *pdev)\n--\ndrivers/i2c/busses/i2c-brcmstb.c-677-\t\t\t\t    \"brcm,brcmper-i2c\"))\ndrivers/i2c/busses/i2c-brcmstb.c:678:\t\tdev-\u003edata_regsz = sizeof(u8);\ndrivers/i2c/busses/i2c-brcmstb.c-679-\telse\ndrivers/i2c/busses/i2c-brcmstb.c:680:\t\tdev-\u003edata_regsz = sizeof(u32);\ndrivers/i2c/busses/i2c-brcmstb.c-681-\n--\ndrivers/iio/adc/ti_am335x_adc.c=191=static irqreturn_t tiadc_worker_h(int irq, void *private)\n--\ndrivers/iio/adc/ti_am335x_adc.c-195-\tint i, k, fifo1count, read;\ndrivers/iio/adc/ti_am335x_adc.c:196:\tu16 *data = adc_dev-\u003edata;\ndrivers/iio/adc/ti_am335x_adc.c-197-\n--\ndrivers/infiniband/hw/mlx5/main.c=4022=static int mlx5_ib_data_direct_init(struct mlx5_ib_dev *dev)\n--\ndrivers/infiniband/hw/mlx5/main.c-4038-\ndrivers/infiniband/hw/mlx5/main.c:4039:\tINIT_LIST_HEAD(\u0026dev-\u003edata_direct_mr_list);\ndrivers/infiniband/hw/mlx5/main.c-4040-\tret = mlx5_data_direct_ib_reg(dev, vuid);\n--\ndrivers/infiniband/hw/mlx5/main.c=4501=static int mlx5_ib_stage_init_init(struct mlx5_ib_dev *dev)\n--\ndrivers/infiniband/hw/mlx5/main.c-4545-\tmutex_init(\u0026dev-\u003ecap_mask_mutex);\ndrivers/infiniband/hw/mlx5/main.c:4546:\tmutex_init(\u0026dev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/main.c-4547-\tINIT_LIST_HEAD(\u0026dev-\u003eqp_list);\n--\ndrivers/infiniband/hw/mlx5/main.c=5080=void mlx5_ib_data_direct_bind(struct mlx5_ib_dev *ibdev,\n--\ndrivers/infiniband/hw/mlx5/main.c-5082-{\ndrivers/infiniband/hw/mlx5/main.c:5083:\tmutex_lock(\u0026ibdev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/main.c:5084:\tibdev-\u003edata_direct_dev = dev;\ndrivers/infiniband/hw/mlx5/main.c:5085:\tmutex_unlock(\u0026ibdev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/main.c-5086-}\n--\ndrivers/infiniband/hw/mlx5/main.c=5088=void mlx5_ib_data_direct_unbind(struct mlx5_ib_dev *ibdev)\ndrivers/infiniband/hw/mlx5/main.c-5089-{\ndrivers/infiniband/hw/mlx5/main.c:5090:\tmutex_lock(\u0026ibdev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/main.c-5091-\tmlx5_ib_revoke_data_direct_mrs(ibdev);\ndrivers/infiniband/hw/mlx5/main.c:5092:\tibdev-\u003edata_direct_dev = NULL;\ndrivers/infiniband/hw/mlx5/main.c:5093:\tmutex_unlock(\u0026ibdev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/main.c-5094-}\n--\ndrivers/infiniband/hw/mlx5/mr.c=985=reg_user_mr_dmabuf_by_data_direct(struct ib_pd *pd, u64 offset,\n--\ndrivers/infiniband/hw/mlx5/mr.c-998-\ndrivers/infiniband/hw/mlx5/mr.c:999:\tmutex_lock(\u0026dev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/mr.c:1000:\tdata_direct_dev = dev-\u003edata_direct_dev;\ndrivers/infiniband/hw/mlx5/mr.c-1001-\tif (!data_direct_dev) {\n--\ndrivers/infiniband/hw/mlx5/mr.c-1029-\ndrivers/infiniband/hw/mlx5/mr.c:1030:\tlist_add_tail(\u0026to_mmr(crossed_mr)-\u003edd_node, \u0026dev-\u003edata_direct_mr_list);\ndrivers/infiniband/hw/mlx5/mr.c-1031-\tto_mmr(crossing_mr)-\u003edd_crossed_mr = to_mmr(crossed_mr);\n--\ndrivers/infiniband/hw/mlx5/mr.c-1033-end:\ndrivers/infiniband/hw/mlx5/mr.c:1034:\tmutex_unlock(\u0026dev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/mr.c-1035-\treturn ret ? ERR_PTR(ret) : crossing_mr;\n--\ndrivers/infiniband/hw/mlx5/mr.c=1337=static int mlx5_ib_revoke_data_direct_mr(struct mlx5_ib_mr *mr)\n--\ndrivers/infiniband/hw/mlx5/mr.c-1342-\ndrivers/infiniband/hw/mlx5/mr.c:1343:\tlockdep_assert_held(\u0026dev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/mr.c-1344-\tmr-\u003erevoked = true;\n--\ndrivers/infiniband/hw/mlx5/mr.c=1353=void mlx5_ib_revoke_data_direct_mrs(struct mlx5_ib_dev *dev)\n--\ndrivers/infiniband/hw/mlx5/mr.c-1356-\ndrivers/infiniband/hw/mlx5/mr.c:1357:\tlockdep_assert_held(\u0026dev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/mr.c-1358-\ndrivers/infiniband/hw/mlx5/mr.c:1359:\tlist_for_each_entry_safe(mr, next, \u0026dev-\u003edata_direct_mr_list, dd_node) {\ndrivers/infiniband/hw/mlx5/mr.c-1360-\t\tlist_del(\u0026mr-\u003edd_node);\n--\ndrivers/infiniband/hw/mlx5/mr.c=1505=static int dereg_crossing_data_direct_mr(struct mlx5_ib_dev *dev,\n--\ndrivers/infiniband/hw/mlx5/mr.c-1514-\ndrivers/infiniband/hw/mlx5/mr.c:1515:\tmutex_lock(\u0026dev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/mr.c-1516-\tif (!dd_crossed_mr-\u003erevoked)\n--\ndrivers/infiniband/hw/mlx5/mr.c-1519-\tret = __mlx5_ib_dereg_mr(\u0026dd_crossed_mr-\u003eibmr);\ndrivers/infiniband/hw/mlx5/mr.c:1520:\tmutex_unlock(\u0026dev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/mr.c-1521-\treturn ret;\n--\ndrivers/infiniband/hw/mlx5/std_types.c=189=static int UVERBS_HANDLER(MLX5_IB_METHOD_GET_DATA_DIRECT_SYSFS_PATH)(\n--\ndrivers/infiniband/hw/mlx5/std_types.c-204-\tdev = to_mdev(c-\u003eibucontext.device);\ndrivers/infiniband/hw/mlx5/std_types.c:205:\tmutex_lock(\u0026dev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/std_types.c:206:\tdata_direct_dev = dev-\u003edata_direct_dev;\ndrivers/infiniband/hw/mlx5/std_types.c-207-\tif (!data_direct_dev) {\n--\ndrivers/infiniband/hw/mlx5/std_types.c-228-\tkfree(dev_path);\ndrivers/infiniband/hw/mlx5/std_types.c:229:\tmutex_unlock(\u0026dev-\u003edata_direct_lock);\ndrivers/infiniband/hw/mlx5/std_types.c-230-\treturn ret;\n--\ndrivers/input/keyboard/gpio_keys_polled.c=87=static void gpio_keys_polled_poll(struct input_dev *input)\n--\ndrivers/input/keyboard/gpio_keys_polled.c-96-\tfor (i = 0; i \u003c pdata-\u003enbuttons; i++) {\ndrivers/input/keyboard/gpio_keys_polled.c:97:\t\tstruct gpio_keys_button_data *bdata = \u0026bdev-\u003edata[i];\ndrivers/input/keyboard/gpio_keys_polled.c-98-\n--\ndrivers/input/keyboard/gpio_keys_polled.c=226=static int gpio_keys_polled_probe(struct platform_device *pdev)\n--\ndrivers/input/keyboard/gpio_keys_polled.c-278-\t\tconst struct gpio_keys_button *button = \u0026pdata-\u003ebuttons[i];\ndrivers/input/keyboard/gpio_keys_polled.c:279:\t\tstruct gpio_keys_button_data *bdata = \u0026bdev-\u003edata[i];\ndrivers/input/keyboard/gpio_keys_polled.c-280-\t\tunsigned int type = button-\u003etype ?: EV_KEY;\n--\ndrivers/input/keyboard/gpio_keys_polled.c-361-\t\tgpio_keys_polled_check_state(input, \u0026pdata-\u003ebuttons[i],\ndrivers/input/keyboard/gpio_keys_polled.c:362:\t\t\t\t\t     \u0026bdev-\u003edata[i]);\ndrivers/input/keyboard/gpio_keys_polled.c-363-\n--\ndrivers/input/keyboard/hil_kbd.c=102=static void hil_dev_handle_command_response(struct hil_dev *dev)\n--\ndrivers/input/keyboard/hil_kbd.c-108-\tidx = dev-\u003eidx4 / 4;\ndrivers/input/keyboard/hil_kbd.c:109:\tp = dev-\u003edata[idx - 1];\ndrivers/input/keyboard/hil_kbd.c-110-\n--\ndrivers/input/keyboard/hil_kbd.c-138-\tfor (i = 0; i \u003c idx; i++)\ndrivers/input/keyboard/hil_kbd.c:139:\t\tbuf[i] = dev-\u003edata[i] \u0026 HIL_PKT_DATA_MASK;\ndrivers/input/keyboard/hil_kbd.c-140-\tfor (; i \u003c HIL_PACKET_MAX_LENGTH; i++)\n--\ndrivers/input/keyboard/hil_kbd.c=274=static irqreturn_t hil_dev_interrupt(struct serio *serio,\n--\ndrivers/input/keyboard/hil_kbd.c-290-\tif (!(dev-\u003eidx4 % 4))\ndrivers/input/keyboard/hil_kbd.c:291:\t\tdev-\u003edata[idx] = 0;\ndrivers/input/keyboard/hil_kbd.c:292:\tpacket = dev-\u003edata[idx];\ndrivers/input/keyboard/hil_kbd.c-293-\tpacket |= ((hil_packet)data) \u003c\u003c ((3 - (dev-\u003eidx4 % 4)) * 8);\ndrivers/input/keyboard/hil_kbd.c:294:\tdev-\u003edata[idx] = packet;\ndrivers/input/keyboard/hil_kbd.c-295-\n--\ndrivers/input/misc/keyspan_remote.c=141=static int keyspan_load_tester(struct usb_keyspan* dev, int bits_needed)\ndrivers/input/misc/keyspan_remote.c-142-{\ndrivers/input/misc/keyspan_remote.c:143:\tif (dev-\u003edata.bits_left \u003e= bits_needed)\ndrivers/input/misc/keyspan_remote.c-144-\t\treturn 0;\n--\ndrivers/input/misc/keyspan_remote.c-149-\t */\ndrivers/input/misc/keyspan_remote.c:150:\tif (dev-\u003edata.pos \u003e= dev-\u003edata.len) {\ndrivers/input/misc/keyspan_remote.c-151-\t\tdev_dbg(\u0026dev-\u003einterface-\u003edev,\ndrivers/input/misc/keyspan_remote.c-152-\t\t\t\"%s - Error ran out of data. pos: %d, len: %d\\n\",\ndrivers/input/misc/keyspan_remote.c:153:\t\t\t__func__, dev-\u003edata.pos, dev-\u003edata.len);\ndrivers/input/misc/keyspan_remote.c-154-\t\treturn -1;\n--\ndrivers/input/misc/keyspan_remote.c-157-\t/* Load as much as we can into the tester. */\ndrivers/input/misc/keyspan_remote.c:158:\twhile ((dev-\u003edata.bits_left + 7 \u003c (sizeof(dev-\u003edata.tester) * 8)) \u0026\u0026\ndrivers/input/misc/keyspan_remote.c:159:\t       (dev-\u003edata.pos \u003c dev-\u003edata.len)) {\ndrivers/input/misc/keyspan_remote.c:160:\t\tdev-\u003edata.tester += (dev-\u003edata.buffer[dev-\u003edata.pos++] \u003c\u003c dev-\u003edata.bits_left);\ndrivers/input/misc/keyspan_remote.c:161:\t\tdev-\u003edata.bits_left += 8;\ndrivers/input/misc/keyspan_remote.c-162-\t}\n--\ndrivers/input/mouse/appletouch.c=444=static int atp_status_check(struct urb *urb)\n--\ndrivers/input/mouse/appletouch.c-480-\t\t\t\" (first byte: %d, length: %d).\\n\",\ndrivers/input/mouse/appletouch.c:481:\t\t\tdev-\u003edata[0], dev-\u003eurb-\u003eactual_length);\ndrivers/input/mouse/appletouch.c-482-\t\treturn ATP_URB_STATUS_ERROR;\n--\ndrivers/input/mouse/appletouch.c=514=static void atp_complete_geyser_1_2(struct urb *urb)\n--\ndrivers/input/mouse/appletouch.c-538-\t\tfor (i = 0, j = 19; i \u003c 20; i += 2, j += 3) {\ndrivers/input/mouse/appletouch.c:539:\t\t\tdev-\u003exy_cur[i] = dev-\u003edata[j];\ndrivers/input/mouse/appletouch.c:540:\t\t\tdev-\u003exy_cur[i + 1] = dev-\u003edata[j + 1];\ndrivers/input/mouse/appletouch.c-541-\t\t}\n--\ndrivers/input/mouse/appletouch.c-544-\t\tfor (i = 0, j = 1; i \u003c 9; i += 2, j += 3) {\ndrivers/input/mouse/appletouch.c:545:\t\t\tdev-\u003exy_cur[ATP_XSENSORS + i] = dev-\u003edata[j];\ndrivers/input/mouse/appletouch.c:546:\t\t\tdev-\u003exy_cur[ATP_XSENSORS + i + 1] = dev-\u003edata[j + 1];\ndrivers/input/mouse/appletouch.c-547-\t\t}\n--\ndrivers/input/mouse/appletouch.c-550-\t\t\t/* X values */\ndrivers/input/mouse/appletouch.c:551:\t\t\tdev-\u003exy_cur[i +  0] = dev-\u003edata[5 * i +  2];\ndrivers/input/mouse/appletouch.c:552:\t\t\tdev-\u003exy_cur[i +  8] = dev-\u003edata[5 * i +  4];\ndrivers/input/mouse/appletouch.c:553:\t\t\tdev-\u003exy_cur[i + 16] = dev-\u003edata[5 * i + 42];\ndrivers/input/mouse/appletouch.c-554-\t\t\tif (i \u003c 2)\ndrivers/input/mouse/appletouch.c:555:\t\t\t\tdev-\u003exy_cur[i + 24] = dev-\u003edata[5 * i + 44];\ndrivers/input/mouse/appletouch.c-556-\n\n"
}

7/2 2026/07/02 17:55 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 22168
							output: 29
							thoughts: 45
						

Thoughts:
**Analyzing the Kernel USB Network Driver Code**

Okay, so I'm looking at this output and I'm seeing a lot of drivers accessing `dev->data`. That immediately raises a flag for me. I need to understand what `struct usbnet *dev` represents in this context. Let's dig into that structure and see exactly how it's defined and how that `data` field is being used. Where are those drivers accessing `dev->data`?

Time to narrow my scope, I'll restrict my search to the relevant directory tree, likely `drivers/net/usb/`. That's where I would expect to find the core USB network driver logic and therefore the most meaningful instances of `dev->data`. I want to see the typical usage patterns, possible race conditions, and how those drivers are interfacing with that data field. This is going to be interesting; I anticipate finding common usage practices, and hopefully no critical errors.



8/2 2026/07/02 17:55 tool grepper
0m Args:
{
  "Expression": "dev-\u003edata",
  "PathPrefix": "drivers/net/usb/"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 643 lines.\nUse more precise expression if possible.\n\ndrivers/net/usb/asix_common.c=441=void asix_set_multicast(struct net_device *net)\n--\ndrivers/net/usb/asix_common.c-443-\tstruct usbnet *dev = netdev_priv(net);\ndrivers/net/usb/asix_common.c:444:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_common.c-445-\tu16 rx_ctl = AX_DEFAULT_RX_CTL;\n--\ndrivers/net/usb/asix_common.c-454-\t} else {\ndrivers/net/usb/asix_common.c:455:\t\t/* We use the 20 byte dev-\u003edata\ndrivers/net/usb/asix_common.c-456-\t\t * for our 8 byte filter buffer\n--\ndrivers/net/usb/asix_common.c=734=int asix_set_mac_address(struct net_device *net, void *p)\n--\ndrivers/net/usb/asix_common.c-736-\tstruct usbnet *dev = netdev_priv(net);\ndrivers/net/usb/asix_common.c:737:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_common.c-738-\tstruct sockaddr *addr = p;\n--\ndrivers/net/usb/asix_common.c-746-\ndrivers/net/usb/asix_common.c:747:\t/* We use the 20 byte dev-\u003edata\ndrivers/net/usb/asix_common.c-748-\t * for our 6 byte mac buffer\n--\ndrivers/net/usb/asix_devices.c=118=static void ax88172_set_multicast(struct net_device *net)\n--\ndrivers/net/usb/asix_devices.c-120-\tstruct usbnet *dev = netdev_priv(net);\ndrivers/net/usb/asix_devices.c:121:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_devices.c-122-\tu8 rx_ctl = 0x8c;\n--\ndrivers/net/usb/asix_devices.c-131-\t} else {\ndrivers/net/usb/asix_devices.c:132:\t\t/* We use the 20 byte dev-\u003edata\ndrivers/net/usb/asix_devices.c-133-\t\t * for our 8 byte filter buffer\n--\ndrivers/net/usb/asix_devices.c=332=static int ax88772_reset(struct usbnet *dev)\ndrivers/net/usb/asix_devices.c-333-{\ndrivers/net/usb/asix_devices.c:334:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_devices.c-335-\tstruct asix_common_private *priv = dev-\u003edriver_priv;\n--\ndrivers/net/usb/asix_devices.c=362=static int ax88772_hw_reset(struct usbnet *dev, int in_pm)\ndrivers/net/usb/asix_devices.c-363-{\ndrivers/net/usb/asix_devices.c:364:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_devices.c-365-\tstruct asix_common_private *priv = dev-\u003edriver_priv;\n--\ndrivers/net/usb/asix_devices.c=456=static int ax88772a_hw_reset(struct usbnet *dev, int in_pm)\ndrivers/net/usb/asix_devices.c-457-{\ndrivers/net/usb/asix_devices.c:458:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_devices.c-459-\tstruct asix_common_private *priv = dev-\u003edriver_priv;\n--\ndrivers/net/usb/asix_devices.c=990=static int marvell_phy_init(struct usbnet *dev)\ndrivers/net/usb/asix_devices.c-991-{\ndrivers/net/usb/asix_devices.c:992:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_devices.c-993-\tu16 reg;\n--\ndrivers/net/usb/asix_devices.c=1021=static int rtl8211cl_phy_init(struct usbnet *dev)\ndrivers/net/usb/asix_devices.c-1022-{\ndrivers/net/usb/asix_devices.c:1023:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_devices.c-1024-\n--\ndrivers/net/usb/asix_devices.c=1068=static int ax88178_reset(struct usbnet *dev)\ndrivers/net/usb/asix_devices.c-1069-{\ndrivers/net/usb/asix_devices.c:1070:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_devices.c-1071-\tint ret;\n--\ndrivers/net/usb/asix_devices.c=1164=static int ax88178_link_reset(struct usbnet *dev)\n--\ndrivers/net/usb/asix_devices.c-1167-\tstruct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET };\ndrivers/net/usb/asix_devices.c:1168:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/asix_devices.c-1169-\tu32 speed;\n--\ndrivers/net/usb/ax88172a.c=261=static int ax88172a_reset(struct usbnet *dev)\ndrivers/net/usb/ax88172a.c-262-{\ndrivers/net/usb/ax88172a.c:263:\tstruct asix_data *data = (struct asix_data *)\u0026dev-\u003edata;\ndrivers/net/usb/ax88172a.c-264-\tstruct ax88172a_private *priv = dev-\u003edriver_priv;\n--\ndrivers/net/usb/ax88179_178a.c=867=static void ax88179_set_multicast(struct net_device *net)\n--\ndrivers/net/usb/ax88179_178a.c-870-\tstruct ax88179_data *data = dev-\u003edriver_priv;\ndrivers/net/usb/ax88179_178a.c:871:\tu8 *m_filter = ((u8 *)dev-\u003edata);\ndrivers/net/usb/ax88179_178a.c-872-\n--\ndrivers/net/usb/ax88179_178a.c-882-\t} else {\ndrivers/net/usb/ax88179_178a.c:883:\t\t/* We use dev-\u003edata for our 8 byte filter buffer\ndrivers/net/usb/ax88179_178a.c-884-\t\t * to avoid allocating memory that is tricky to free later\n--\ndrivers/net/usb/cdc_ether.c=83=int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)\n--\ndrivers/net/usb/cdc_ether.c-94-\ndrivers/net/usb/cdc_ether.c:95:\tif (sizeof(dev-\u003edata) \u003c sizeof(*info))\ndrivers/net/usb/cdc_ether.c-96-\t\treturn -EDOM;\n--\ndrivers/net/usb/cdc_mbim.c=43=static int cdc_mbim_manage_power(struct usbnet *dev, int on)\ndrivers/net/usb/cdc_mbim.c-44-{\ndrivers/net/usb/cdc_mbim.c:45:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-46-\tint rv = 0;\n--\ndrivers/net/usb/cdc_mbim.c=71=static int cdc_mbim_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid)\n--\ndrivers/net/usb/cdc_mbim.c-73-\tstruct usbnet *dev = netdev_priv(netdev);\ndrivers/net/usb/cdc_mbim.c:74:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-75-\n--\ndrivers/net/usb/cdc_mbim.c=85=static int cdc_mbim_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid)\n--\ndrivers/net/usb/cdc_mbim.c-87-\tstruct usbnet *dev = netdev_priv(netdev);\ndrivers/net/usb/cdc_mbim.c:88:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-89-\n--\ndrivers/net/usb/cdc_mbim.c=139=static int cdc_mbim_bind(struct usbnet *dev, struct usb_interface *intf)\n--\ndrivers/net/usb/cdc_mbim.c-144-\tu8 data_altsetting = 1;\ndrivers/net/usb/cdc_mbim.c:145:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-146-\n--\ndrivers/net/usb/cdc_mbim.c=195=static void cdc_mbim_unbind(struct usbnet *dev, struct usb_interface *intf)\ndrivers/net/usb/cdc_mbim.c-196-{\ndrivers/net/usb/cdc_mbim.c:197:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-198-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n--\ndrivers/net/usb/cdc_mbim.c=220=static struct sk_buff *cdc_mbim_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags)\n--\ndrivers/net/usb/cdc_mbim.c-222-\tstruct sk_buff *skb_out;\ndrivers/net/usb/cdc_mbim.c:223:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-224-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n--\ndrivers/net/usb/cdc_mbim.c=412=static int cdc_mbim_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in)\n--\ndrivers/net/usb/cdc_mbim.c-414-\tstruct sk_buff *skb;\ndrivers/net/usb/cdc_mbim.c:415:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-416-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n--\ndrivers/net/usb/cdc_mbim.c=506=static int cdc_mbim_suspend(struct usb_interface *intf, pm_message_t message)\n--\ndrivers/net/usb/cdc_mbim.c-509-\tstruct usbnet *dev = usb_get_intfdata(intf);\ndrivers/net/usb/cdc_mbim.c:510:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-511-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n--\ndrivers/net/usb/cdc_mbim.c=534=static int cdc_mbim_resume(struct usb_interface *intf)\n--\ndrivers/net/usb/cdc_mbim.c-537-\tstruct usbnet *dev = usb_get_intfdata(intf);\ndrivers/net/usb/cdc_mbim.c:538:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-539-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n--\ndrivers/net/usb/cdc_ncm.c=105=static void cdc_ncm_get_ethtool_stats(struct net_device *netdev,\n--\ndrivers/net/usb/cdc_ncm.c-109-\tstruct usbnet *dev = netdev_priv(netdev);\ndrivers/net/usb/cdc_ncm.c:110:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-111-\tint i;\n--\ndrivers/net/usb/cdc_ncm.c=150=static u32 cdc_ncm_check_rx_max(struct usbnet *dev, u32 new_rx)\ndrivers/net/usb/cdc_ncm.c-151-{\ndrivers/net/usb/cdc_ncm.c:152:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-153-\tu32 val, max, min;\n--\ndrivers/net/usb/cdc_ncm.c=173=static u32 cdc_ncm_check_tx_max(struct usbnet *dev, u32 new_tx)\ndrivers/net/usb/cdc_ncm.c-174-{\ndrivers/net/usb/cdc_ncm.c:175:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-176-\tu32 val, max, min;\n--\ndrivers/net/usb/cdc_ncm.c=201=static ssize_t min_tx_pkt_show(struct device *d,\n--\ndrivers/net/usb/cdc_ncm.c-204-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:205:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-206-\n--\ndrivers/net/usb/cdc_ncm.c=210=static ssize_t rx_max_show(struct device *d,\n--\ndrivers/net/usb/cdc_ncm.c-213-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:214:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-215-\n--\ndrivers/net/usb/cdc_ncm.c=219=static ssize_t tx_max_show(struct device *d,\n--\ndrivers/net/usb/cdc_ncm.c-222-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:223:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-224-\n--\ndrivers/net/usb/cdc_ncm.c=228=static ssize_t tx_timer_usecs_show(struct device *d,\n--\ndrivers/net/usb/cdc_ncm.c-231-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:232:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-233-\n--\ndrivers/net/usb/cdc_ncm.c=237=static ssize_t min_tx_pkt_store(struct device *d,\n--\ndrivers/net/usb/cdc_ncm.c-241-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:242:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-243-\tunsigned long val;\n--\ndrivers/net/usb/cdc_ncm.c=253=static ssize_t rx_max_store(struct device *d,\n--\ndrivers/net/usb/cdc_ncm.c-257-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:258:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-259-\tunsigned long val;\n--\ndrivers/net/usb/cdc_ncm.c=268=static ssize_t tx_max_store(struct device *d,\n--\ndrivers/net/usb/cdc_ncm.c-272-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:273:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-274-\tunsigned long val;\n--\ndrivers/net/usb/cdc_ncm.c=283=static ssize_t tx_timer_usecs_store(struct device *d,\n--\ndrivers/net/usb/cdc_ncm.c-287-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:288:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-289-\tssize_t ret;\n--\ndrivers/net/usb/cdc_ncm.c=311=static ssize_t ndp_to_end_show(struct device *d, struct device_attribute *attr, char *buf)\n--\ndrivers/net/usb/cdc_ncm.c-313-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:314:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-315-\n--\ndrivers/net/usb/cdc_ncm.c=319=static ssize_t ndp_to_end_store(struct device *d,  struct device_attribute *attr, const char *buf, size_t len)\n--\ndrivers/net/usb/cdc_ncm.c-321-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/cdc_ncm.c:322:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-323-\tbool enable;\n--\ndrivers/net/usb/cdc_ncm.c=361=static ssize_t cdc_ncm_show_##name(struct device *d, struct device_attribute *attr, char *buf) \\\n--\ndrivers/net/usb/cdc_ncm.c-363-\tstruct usbnet *dev = netdev_priv(to_net_dev(d)); \\\ndrivers/net/usb/cdc_ncm.c:364:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0]; \\\ndrivers/net/usb/cdc_ncm.c-365-\treturn sprintf(buf, format \"\\n\", tocpu(ctx-\u003encm_parm.name));\t\\\n--\ndrivers/net/usb/cdc_ncm.c=405=static void cdc_ncm_update_rxtx_max(struct usbnet *dev, u32 new_rx, u32 new_tx)\ndrivers/net/usb/cdc_ncm.c-406-{\ndrivers/net/usb/cdc_ncm.c:407:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-408-\tu8 iface_no = ctx-\u003econtrol-\u003ecur_altsetting-\u003edesc.bInterfaceNumber;\n--\ndrivers/net/usb/cdc_ncm.c=477=static u8 cdc_ncm_flags(struct usbnet *dev)\ndrivers/net/usb/cdc_ncm.c-478-{\ndrivers/net/usb/cdc_ncm.c:479:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-480-\n--\ndrivers/net/usb/cdc_ncm.c=502=static u32 cdc_ncm_max_dgram_size(struct usbnet *dev)\ndrivers/net/usb/cdc_ncm.c-503-{\ndrivers/net/usb/cdc_ncm.c:504:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-505-\n--\ndrivers/net/usb/cdc_ncm.c=516=static int cdc_ncm_init(struct usbnet *dev)\ndrivers/net/usb/cdc_ncm.c-517-{\ndrivers/net/usb/cdc_ncm.c:518:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-519-\tu8 iface_no = ctx-\u003econtrol-\u003ecur_altsetting-\u003edesc.bInterfaceNumber;\n--\ndrivers/net/usb/cdc_ncm.c=609=static void cdc_ncm_set_dgram_size(struct usbnet *dev, int new_size)\ndrivers/net/usb/cdc_ncm.c-610-{\ndrivers/net/usb/cdc_ncm.c:611:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-612-\tu8 iface_no = ctx-\u003econtrol-\u003ecur_altsetting-\u003edesc.bInterfaceNumber;\n--\ndrivers/net/usb/cdc_ncm.c=657=static void cdc_ncm_fix_modulus(struct usbnet *dev)\ndrivers/net/usb/cdc_ncm.c-658-{\ndrivers/net/usb/cdc_ncm.c:659:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-660-\tu32 val;\n--\ndrivers/net/usb/cdc_ncm.c=701=static int cdc_ncm_setup(struct usbnet *dev)\ndrivers/net/usb/cdc_ncm.c-702-{\ndrivers/net/usb/cdc_ncm.c:703:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-704-\tu32 def_rx, def_tx;\n--\ndrivers/net/usb/cdc_ncm.c=820=int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_altsetting, int drvflags)\n--\ndrivers/net/usb/cdc_ncm.c-841-\t/* store ctx pointer in device data field */\ndrivers/net/usb/cdc_ncm.c:842:\tdev-\u003edata[0] = (unsigned long)ctx;\ndrivers/net/usb/cdc_ncm.c-843-\n--\ndrivers/net/usb/cdc_ncm.c-990-error:\ndrivers/net/usb/cdc_ncm.c:991:\tcdc_ncm_free((struct cdc_ncm_ctx *)dev-\u003edata[0]);\ndrivers/net/usb/cdc_ncm.c:992:\tdev-\u003edata[0] = 0;\ndrivers/net/usb/cdc_ncm.c-993-\tdev_info(\u0026intf-\u003edev, \"bind() failure\\n\");\n--\ndrivers/net/usb/cdc_ncm.c=998=void cdc_ncm_unbind(struct usbnet *dev, struct usb_interface *intf)\ndrivers/net/usb/cdc_ncm.c-999-{\ndrivers/net/usb/cdc_ncm.c:1000:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-1001-\tstruct usb_driver *driver = driver_of(intf);\n--\ndrivers/net/usb/cdc_ncm.c=1204=cdc_ncm_fill_tx_frame(struct usbnet *dev, struct sk_buff *skb, __le32 sign)\ndrivers/net/usb/cdc_ncm.c-1205-{\ndrivers/net/usb/cdc_ncm.c:1206:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-1207-\tunion {\n--\ndrivers/net/usb/cdc_ncm.c=1523=cdc_ncm_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags)\n--\ndrivers/net/usb/cdc_ncm.c-1525-\tstruct sk_buff *skb_out;\ndrivers/net/usb/cdc_ncm.c:1526:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-1527-\n--\ndrivers/net/usb/cdc_ncm.c=1727=int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in)\n--\ndrivers/net/usb/cdc_ncm.c-1729-\tstruct sk_buff *skb;\ndrivers/net/usb/cdc_ncm.c:1730:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-1731-\tunsigned int len;\n--\ndrivers/net/usb/cdc_ncm.c=1907=static void cdc_ncm_update_filter(struct usbnet *dev)\ndrivers/net/usb/cdc_ncm.c-1908-{\ndrivers/net/usb/cdc_ncm.c:1909:\tstruct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev-\u003edata[0];\ndrivers/net/usb/cdc_ncm.c-1910-\n--\ndrivers/net/usb/dm9601.c=274=static void dm9601_set_multicast(struct net_device *net)\n--\ndrivers/net/usb/dm9601.c-276-\tstruct usbnet *dev = netdev_priv(net);\ndrivers/net/usb/dm9601.c:277:\t/* We use the 20 byte dev-\u003edata for our 8 byte filter buffer\ndrivers/net/usb/dm9601.c-278-\t * to avoid allocating memory that is tricky to free later */\ndrivers/net/usb/dm9601.c:279:\tu8 *hashes = (u8 *) \u0026 dev-\u003edata;\ndrivers/net/usb/dm9601.c-280-\tu8 rx_ctl = 0x31;\n--\ndrivers/net/usb/huawei_cdc_ncm.c=37=static int huawei_cdc_ncm_manage_power(struct usbnet *usbnet_dev, int on)\ndrivers/net/usb/huawei_cdc_ncm.c-38-{\ndrivers/net/usb/huawei_cdc_ncm.c:39:\tstruct huawei_cdc_ncm_state *drvstate = (void *)\u0026usbnet_dev-\u003edata;\ndrivers/net/usb/huawei_cdc_ncm.c-40-\tint rv;\n--\ndrivers/net/usb/huawei_cdc_ncm.c=65=static int huawei_cdc_ncm_bind(struct usbnet *usbnet_dev,\n--\ndrivers/net/usb/huawei_cdc_ncm.c-70-\tint ret;\ndrivers/net/usb/huawei_cdc_ncm.c:71:\tstruct huawei_cdc_ncm_state *drvstate = (void *)\u0026usbnet_dev-\u003edata;\ndrivers/net/usb/huawei_cdc_ncm.c-72-\tint drvflags = 0;\n--\ndrivers/net/usb/huawei_cdc_ncm.c=116=static void huawei_cdc_ncm_unbind(struct usbnet *usbnet_dev,\n--\ndrivers/net/usb/huawei_cdc_ncm.c-118-{\ndrivers/net/usb/huawei_cdc_ncm.c:119:\tstruct huawei_cdc_ncm_state *drvstate = (void *)\u0026usbnet_dev-\u003edata;\ndrivers/net/usb/huawei_cdc_ncm.c-120-\tstruct cdc_ncm_ctx *ctx = drvstate-\u003ectx;\n--\ndrivers/net/usb/huawei_cdc_ncm.c=129=static int huawei_cdc_ncm_suspend(struct usb_interface *intf,\n--\ndrivers/net/usb/huawei_cdc_ncm.c-133-\tstruct usbnet *usbnet_dev = usb_get_intfdata(intf);\ndrivers/net/usb/huawei_cdc_ncm.c:134:\tstruct huawei_cdc_ncm_state *drvstate = (void *)\u0026usbnet_dev-\u003edata;\ndrivers/net/usb/huawei_cdc_ncm.c-135-\tstruct cdc_ncm_ctx *ctx = drvstate-\u003ectx;\n--\ndrivers/net/usb/huawei_cdc_ncm.c=157=static int huawei_cdc_ncm_resume(struct usb_interface *intf)\n--\ndrivers/net/usb/huawei_cdc_ncm.c-160-\tstruct usbnet *usbnet_dev = usb_get_intfdata(intf);\ndrivers/net/usb/huawei_cdc_ncm.c:161:\tstruct huawei_cdc_ncm_state *drvstate = (void *)\u0026usbnet_dev-\u003edata;\ndrivers/net/usb/huawei_cdc_ncm.c-162-\tbool callsub;\n--\ndrivers/net/usb/lan78xx.c=1383=static int lan78xx_dataport_write(struct lan78xx_net *dev, u32 ram_select,\n--\ndrivers/net/usb/lan78xx.c-1385-{\ndrivers/net/usb/lan78xx.c:1386:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-1387-\tint i, ret;\n--\ndrivers/net/usb/lan78xx.c=1455=static int lan78xx_write_mchash_table(struct lan78xx_net *dev)\ndrivers/net/usb/lan78xx.c-1456-{\ndrivers/net/usb/lan78xx.c:1457:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-1458-\n--\ndrivers/net/usb/lan78xx.c=1502=static void lan78xx_set_multicast(struct net_device *netdev)\n--\ndrivers/net/usb/lan78xx.c-1504-\tstruct lan78xx_net *dev = netdev_priv(netdev);\ndrivers/net/usb/lan78xx.c:1505:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-1506-\tunsigned long flags;\n--\ndrivers/net/usb/lan78xx.c=1746=static void lan78xx_get_wol(struct net_device *netdev,\n--\ndrivers/net/usb/lan78xx.c-1751-\tu32 buf;\ndrivers/net/usb/lan78xx.c:1752:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-1753-\n--\ndrivers/net/usb/lan78xx.c=1775=static int lan78xx_set_wol(struct net_device *netdev,\n--\ndrivers/net/usb/lan78xx.c-1778-\tstruct lan78xx_net *dev = netdev_priv(netdev);\ndrivers/net/usb/lan78xx.c:1779:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-1780-\tint ret;\n--\ndrivers/net/usb/lan78xx.c=3055=static int lan78xx_set_features(struct net_device *netdev,\n--\ndrivers/net/usb/lan78xx.c-3058-\tstruct lan78xx_net *dev = netdev_priv(netdev);\ndrivers/net/usb/lan78xx.c:3059:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-3060-\tunsigned long flags;\n--\ndrivers/net/usb/lan78xx.c=3087=static int lan78xx_write_vlan_table(struct lan78xx_net *dev)\ndrivers/net/usb/lan78xx.c-3088-{\ndrivers/net/usb/lan78xx.c:3089:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-3090-\n--\ndrivers/net/usb/lan78xx.c=3103=static int lan78xx_vlan_rx_add_vid(struct net_device *netdev,\n--\ndrivers/net/usb/lan78xx.c-3106-\tstruct lan78xx_net *dev = netdev_priv(netdev);\ndrivers/net/usb/lan78xx.c:3107:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-3108-\tu16 vid_bit_index;\n--\ndrivers/net/usb/lan78xx.c=3122=static int lan78xx_vlan_rx_kill_vid(struct net_device *netdev,\n--\ndrivers/net/usb/lan78xx.c-3125-\tstruct lan78xx_net *dev = netdev_priv(netdev);\ndrivers/net/usb/lan78xx.c:3126:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-3127-\tu16 vid_bit_index;\n--\ndrivers/net/usb/lan78xx.c=3248=static int lan78xx_reset(struct lan78xx_net *dev)\ndrivers/net/usb/lan78xx.c-3249-{\ndrivers/net/usb/lan78xx.c:3250:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-3251-\tunsigned long timeout;\n--\ndrivers/net/usb/lan78xx.c=3752=static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf)\n--\ndrivers/net/usb/lan78xx.c-3757-\ndrivers/net/usb/lan78xx.c:3758:\tdev-\u003edata[0] = (unsigned long) kzalloc_obj(*pdata);\ndrivers/net/usb/lan78xx.c-3759-\ndrivers/net/usb/lan78xx.c:3760:\tpdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-3761-\tif (!pdata) {\n--\ndrivers/net/usb/lan78xx.c=3834=static void lan78xx_unbind(struct lan78xx_net *dev, struct usb_interface *intf)\ndrivers/net/usb/lan78xx.c-3835-{\ndrivers/net/usb/lan78xx.c:3836:\tstruct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-3837-\n--\ndrivers/net/usb/lan78xx.c-3847-\t\tpdata = NULL;\ndrivers/net/usb/lan78xx.c:3848:\t\tdev-\u003edata[0] = 0;\ndrivers/net/usb/lan78xx.c-3849-\t}\n--\ndrivers/net/usb/lan78xx.c=5105=static int lan78xx_suspend(struct usb_interface *intf, pm_message_t message)\n--\ndrivers/net/usb/lan78xx.c-5166-\ndrivers/net/usb/lan78xx.c:5167:\t\t\tpdata = (struct lan78xx_priv *)(dev-\u003edata[0]);\ndrivers/net/usb/lan78xx.c-5168-\t\t\tnetif_carrier_off(dev-\u003enet);\n--\ndrivers/net/usb/mcs7830.c=328=static inline struct mcs7830_data *mcs7830_get_data(struct usbnet *dev)\ndrivers/net/usb/mcs7830.c-329-{\ndrivers/net/usb/mcs7830.c:330:\treturn (struct mcs7830_data *)\u0026dev-\u003edata;\ndrivers/net/usb/mcs7830.c-331-}\n--\ndrivers/net/usb/mcs7830.c=349=static void mcs7830_data_set_multicast(struct net_device *net)\n--\ndrivers/net/usb/mcs7830.c-368-\t} else {\ndrivers/net/usb/mcs7830.c:369:\t\t/* We use the 20 byte dev-\u003edata\ndrivers/net/usb/mcs7830.c-370-\t\t * for our 8 byte filter buffer\n--\ndrivers/net/usb/qmi_wwan.c=306=static void qmi_wwan_netdev_setup(struct net_device *net)\n--\ndrivers/net/usb/qmi_wwan.c-308-\tstruct usbnet *dev = netdev_priv(net);\ndrivers/net/usb/qmi_wwan.c:309:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-310-\n--\ndrivers/net/usb/qmi_wwan.c=332=static ssize_t raw_ip_show(struct device *d, struct device_attribute *attr, char *buf)\n--\ndrivers/net/usb/qmi_wwan.c-334-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:335:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-336-\n--\ndrivers/net/usb/qmi_wwan.c=340=static ssize_t raw_ip_store(struct device *d,  struct device_attribute *attr, const char *buf, size_t len)\n--\ndrivers/net/usb/qmi_wwan.c-342-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:343:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-344-\tbool enable;\n--\ndrivers/net/usb/qmi_wwan.c=409=static ssize_t add_mux_store(struct device *d,  struct device_attribute *attr, const char *buf, size_t len)\n--\ndrivers/net/usb/qmi_wwan.c-411-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:412:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-413-\tu8 mux_id;\n--\ndrivers/net/usb/qmi_wwan.c=447=static ssize_t del_mux_store(struct device *d,  struct device_attribute *attr, const char *buf, size_t len)\n--\ndrivers/net/usb/qmi_wwan.c-449-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:450:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-451-\tstruct net_device *del_dev;\n--\ndrivers/net/usb/qmi_wwan.c=477=static ssize_t pass_through_show(struct device *d,\n--\ndrivers/net/usb/qmi_wwan.c-482-\ndrivers/net/usb/qmi_wwan.c:483:\tinfo = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-484-\treturn sprintf(buf, \"%c\\n\",\n--\ndrivers/net/usb/qmi_wwan.c=488=static ssize_t pass_through_store(struct device *d,\n--\ndrivers/net/usb/qmi_wwan.c-498-\ndrivers/net/usb/qmi_wwan.c:499:\tinfo = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-500-\n--\ndrivers/net/usb/qmi_wwan.c=563=static int qmi_wwan_rx_fixup(struct usbnet *dev, struct sk_buff *skb)\ndrivers/net/usb/qmi_wwan.c-564-{\ndrivers/net/usb/qmi_wwan.c:565:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-566-\tbool rawip = info-\u003eflags \u0026 QMI_WWAN_FLAG_RAWIP;\n--\ndrivers/net/usb/qmi_wwan.c=654=static int qmi_wwan_manage_power(struct usbnet *dev, int on)\ndrivers/net/usb/qmi_wwan.c-655-{\ndrivers/net/usb/qmi_wwan.c:656:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-657-\tint rv;\n--\ndrivers/net/usb/qmi_wwan.c=686=static int qmi_wwan_register_subdriver(struct usbnet *dev)\n--\ndrivers/net/usb/qmi_wwan.c-689-\tstruct usb_driver *subdriver = NULL;\ndrivers/net/usb/qmi_wwan.c:690:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-691-\n--\ndrivers/net/usb/qmi_wwan.c=744=static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf)\n--\ndrivers/net/usb/qmi_wwan.c-752-\tstruct usb_driver *driver = driver_of(intf);\ndrivers/net/usb/qmi_wwan.c:753:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-754-\tstruct usb_cdc_parsed_header hdr;\n--\ndrivers/net/usb/qmi_wwan.c=849=static void qmi_wwan_unbind(struct usbnet *dev, struct usb_interface *intf)\ndrivers/net/usb/qmi_wwan.c-850-{\ndrivers/net/usb/qmi_wwan.c:851:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-852-\tstruct usb_driver *driver = driver_of(intf);\n--\ndrivers/net/usb/qmi_wwan.c=887=static int qmi_wwan_suspend(struct usb_interface *intf, pm_message_t message)\n--\ndrivers/net/usb/qmi_wwan.c-889-\tstruct usbnet *dev = usb_get_intfdata(intf);\ndrivers/net/usb/qmi_wwan.c:890:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-891-\tint ret;\n--\ndrivers/net/usb/qmi_wwan.c=910=static int qmi_wwan_resume(struct usb_interface *intf)\n--\ndrivers/net/usb/qmi_wwan.c-912-\tstruct usbnet *dev = usb_get_intfdata(intf);\n\n"
}

9/2 2026/07/02 17:55 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 34894
							output: 32
							thoughts: 433
						

Thoughts:
**Investigating the Ubiquitous `dev->data` Usage**

Okay, hold on a minute. It's hitting me just how extensively `dev->data` is leveraged across these USB network drivers! I'm seeing it everywhere. I've been reviewing the code, and it's being type-punned to hell and back. `asix_common.c`, `ax88179_178a.c`, `cdc_mbim.c`, `cdc_ncm.c`, `dm9601.c`, `huawei_cdc_ncm.c`, `lan78xx.c`, `mcs7830.c`, `qmi_wwan.c` – they're all casting `dev->data` to their own custom structs!

And it's not just the current crop of drivers, either. Looking back, `cdc_ether.c` and `rndis_host.c` *used* to use this same technique! They've since refactored to use `dev->cdc` instead of directly accessing `dev->data`. That shift immediately sparks a question...

Could a driver be potentially using *both* `cdc_ether` functions AND its own `dev->data`? Is that even a valid pattern, or am I missing something? I need to clarify that. Let's dig into `cdc_mbim.c` specifically. Does the `cdc_mbim_state` struct it uses contain a `cdc_state` member? If so, we may have the answer to our question. I'll need to confirm the relationship between these structures to fully grasp the design.



10/2 2026/07/02 17:55 tool grepper
0m Args:
{
  "Expression": "cdc_mbim_state",
  "PathPrefix": "drivers/net/usb/"
}

Results:
{
  "Output": "drivers/net/usb/cdc_mbim.c-28-/* driver specific data - must match cdc_ncm usage */\ndrivers/net/usb/cdc_mbim.c:29:struct cdc_mbim_state {\ndrivers/net/usb/cdc_mbim.c-30-\tstruct cdc_ncm_ctx *ctx;\n--\ndrivers/net/usb/cdc_mbim.c-36-\ndrivers/net/usb/cdc_mbim.c:37:/* flags for the cdc_mbim_state.flags field */\ndrivers/net/usb/cdc_mbim.c-38-enum cdc_mbim_flags {\n--\ndrivers/net/usb/cdc_mbim.c=43=static int cdc_mbim_manage_power(struct usbnet *dev, int on)\ndrivers/net/usb/cdc_mbim.c-44-{\ndrivers/net/usb/cdc_mbim.c:45:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-46-\tint rv = 0;\n--\ndrivers/net/usb/cdc_mbim.c=71=static int cdc_mbim_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid)\n--\ndrivers/net/usb/cdc_mbim.c-73-\tstruct usbnet *dev = netdev_priv(netdev);\ndrivers/net/usb/cdc_mbim.c:74:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-75-\n--\ndrivers/net/usb/cdc_mbim.c=85=static int cdc_mbim_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid)\n--\ndrivers/net/usb/cdc_mbim.c-87-\tstruct usbnet *dev = netdev_priv(netdev);\ndrivers/net/usb/cdc_mbim.c:88:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-89-\n--\ndrivers/net/usb/cdc_mbim.c=139=static int cdc_mbim_bind(struct usbnet *dev, struct usb_interface *intf)\n--\ndrivers/net/usb/cdc_mbim.c-144-\tu8 data_altsetting = 1;\ndrivers/net/usb/cdc_mbim.c:145:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-146-\n--\ndrivers/net/usb/cdc_mbim.c=195=static void cdc_mbim_unbind(struct usbnet *dev, struct usb_interface *intf)\ndrivers/net/usb/cdc_mbim.c-196-{\ndrivers/net/usb/cdc_mbim.c:197:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-198-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n--\ndrivers/net/usb/cdc_mbim.c=220=static struct sk_buff *cdc_mbim_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags)\n--\ndrivers/net/usb/cdc_mbim.c-222-\tstruct sk_buff *skb_out;\ndrivers/net/usb/cdc_mbim.c:223:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-224-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n--\ndrivers/net/usb/cdc_mbim.c=412=static int cdc_mbim_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in)\n--\ndrivers/net/usb/cdc_mbim.c-414-\tstruct sk_buff *skb;\ndrivers/net/usb/cdc_mbim.c:415:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-416-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n--\ndrivers/net/usb/cdc_mbim.c=506=static int cdc_mbim_suspend(struct usb_interface *intf, pm_message_t message)\n--\ndrivers/net/usb/cdc_mbim.c-509-\tstruct usbnet *dev = usb_get_intfdata(intf);\ndrivers/net/usb/cdc_mbim.c:510:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-511-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n--\ndrivers/net/usb/cdc_mbim.c=534=static int cdc_mbim_resume(struct usb_interface *intf)\n--\ndrivers/net/usb/cdc_mbim.c-537-\tstruct usbnet *dev = usb_get_intfdata(intf);\ndrivers/net/usb/cdc_mbim.c:538:\tstruct cdc_mbim_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/cdc_mbim.c-539-\tstruct cdc_ncm_ctx *ctx = info-\u003ectx;\n"
}

11/2 2026/07/02 17:55 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 37157
							output: 33
							thoughts: 97
						

Thoughts:
**Analyzing the MBIM Driver Structure**

Okay, let me think this through. I'm focusing on the structure of this `cdc_mbim` module. Right, so it's using the `cdc_mbim_state` structure, which I can see defined here:

```c
struct cdc_mbim_state {
	struct cdc_ncm_ctx *ctx;
	atomic_t pmcount;
	struct usb_driver *subdriver;
	unsigned long flags;
};
```

Interesting. It's clearly managing its internal state with a `cdc_ncm_ctx`, an atomic power management counter, a sub-driver pointer and flags. Crucially, I see that it's *not* relying on the `cdc_state` structure, which is something I'll need to keep in mind when evaluating its implementation. I'm making a mental note of that distinction.

Now, that brings me to `qmi_wwan`. How does that compare and contrast? What's its architecture for state management? I need to analyze its structure next.



12/2 2026/07/02 17:55 tool grepper
0m Args:
{
  "Expression": "qmi_wwan_state",
  "PathPrefix": "drivers/net/usb/"
}

Results:
{
  "Output": "drivers/net/usb/qmi_wwan.c-49-/* driver specific data */\ndrivers/net/usb/qmi_wwan.c:50:struct qmi_wwan_state {\ndrivers/net/usb/qmi_wwan.c-51-\tstruct usb_driver *subdriver;\n--\ndrivers/net/usb/qmi_wwan.c=306=static void qmi_wwan_netdev_setup(struct net_device *net)\n--\ndrivers/net/usb/qmi_wwan.c-308-\tstruct usbnet *dev = netdev_priv(net);\ndrivers/net/usb/qmi_wwan.c:309:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-310-\n--\ndrivers/net/usb/qmi_wwan.c=332=static ssize_t raw_ip_show(struct device *d, struct device_attribute *attr, char *buf)\n--\ndrivers/net/usb/qmi_wwan.c-334-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:335:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-336-\n--\ndrivers/net/usb/qmi_wwan.c=340=static ssize_t raw_ip_store(struct device *d,  struct device_attribute *attr, const char *buf, size_t len)\n--\ndrivers/net/usb/qmi_wwan.c-342-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:343:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-344-\tbool enable;\n--\ndrivers/net/usb/qmi_wwan.c=409=static ssize_t add_mux_store(struct device *d,  struct device_attribute *attr, const char *buf, size_t len)\n--\ndrivers/net/usb/qmi_wwan.c-411-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:412:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-413-\tu8 mux_id;\n--\ndrivers/net/usb/qmi_wwan.c=447=static ssize_t del_mux_store(struct device *d,  struct device_attribute *attr, const char *buf, size_t len)\n--\ndrivers/net/usb/qmi_wwan.c-449-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:450:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-451-\tstruct net_device *del_dev;\n--\ndrivers/net/usb/qmi_wwan.c=477=static ssize_t pass_through_show(struct device *d,\n--\ndrivers/net/usb/qmi_wwan.c-480-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:481:\tstruct qmi_wwan_state *info;\ndrivers/net/usb/qmi_wwan.c-482-\n--\ndrivers/net/usb/qmi_wwan.c=488=static ssize_t pass_through_store(struct device *d,\n--\ndrivers/net/usb/qmi_wwan.c-492-\tstruct usbnet *dev = netdev_priv(to_net_dev(d));\ndrivers/net/usb/qmi_wwan.c:493:\tstruct qmi_wwan_state *info;\ndrivers/net/usb/qmi_wwan.c-494-\tbool enable;\n--\ndrivers/net/usb/qmi_wwan.c=563=static int qmi_wwan_rx_fixup(struct usbnet *dev, struct sk_buff *skb)\ndrivers/net/usb/qmi_wwan.c-564-{\ndrivers/net/usb/qmi_wwan.c:565:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-566-\tbool rawip = info-\u003eflags \u0026 QMI_WWAN_FLAG_RAWIP;\n--\ndrivers/net/usb/qmi_wwan.c=654=static int qmi_wwan_manage_power(struct usbnet *dev, int on)\ndrivers/net/usb/qmi_wwan.c-655-{\ndrivers/net/usb/qmi_wwan.c:656:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-657-\tint rv;\n--\ndrivers/net/usb/qmi_wwan.c=686=static int qmi_wwan_register_subdriver(struct usbnet *dev)\n--\ndrivers/net/usb/qmi_wwan.c-689-\tstruct usb_driver *subdriver = NULL;\ndrivers/net/usb/qmi_wwan.c:690:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-691-\n--\ndrivers/net/usb/qmi_wwan.c=744=static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf)\n--\ndrivers/net/usb/qmi_wwan.c-752-\tstruct usb_driver *driver = driver_of(intf);\ndrivers/net/usb/qmi_wwan.c:753:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-754-\tstruct usb_cdc_parsed_header hdr;\n--\ndrivers/net/usb/qmi_wwan.c-756-\tBUILD_BUG_ON((sizeof(((struct usbnet *)0)-\u003edata) \u003c\ndrivers/net/usb/qmi_wwan.c:757:\t\t      sizeof(struct qmi_wwan_state)));\ndrivers/net/usb/qmi_wwan.c-758-\n--\ndrivers/net/usb/qmi_wwan.c=849=static void qmi_wwan_unbind(struct usbnet *dev, struct usb_interface *intf)\ndrivers/net/usb/qmi_wwan.c-850-{\ndrivers/net/usb/qmi_wwan.c:851:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-852-\tstruct usb_driver *driver = driver_of(intf);\n--\ndrivers/net/usb/qmi_wwan.c=887=static int qmi_wwan_suspend(struct usb_interface *intf, pm_message_t message)\n--\ndrivers/net/usb/qmi_wwan.c-889-\tstruct usbnet *dev = usb_get_intfdata(intf);\ndrivers/net/usb/qmi_wwan.c:890:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-891-\tint ret;\n--\ndrivers/net/usb/qmi_wwan.c=910=static int qmi_wwan_resume(struct usb_interface *intf)\n--\ndrivers/net/usb/qmi_wwan.c-912-\tstruct usbnet *dev = usb_get_intfdata(intf);\ndrivers/net/usb/qmi_wwan.c:913:\tstruct qmi_wwan_state *info = (void *)\u0026dev-\u003edata;\ndrivers/net/usb/qmi_wwan.c-914-\tint ret = 0;\n--\ndrivers/net/usb/qmi_wwan.c=1578=static void qmi_wwan_disconnect(struct usb_interface *intf)\n--\ndrivers/net/usb/qmi_wwan.c-1580-\tstruct usbnet *dev = usb_get_intfdata(intf);\ndrivers/net/usb/qmi_wwan.c:1581:\tstruct qmi_wwan_state *info;\ndrivers/net/usb/qmi_wwan.c-1582-\tstruct list_head *iter;\n"
}

13/2 2026/07/02 17:55 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 39821
							output: 35
							thoughts: 177
						

Thoughts:
**Analyzing USB Gadget Driver Data Structures**

Okay, hold on a second. I need to make sure I'm understanding the data structures correctly. I was just looking at `qmi_wwan`, and it's using `qmi_wwan_state`, defined as: `struct qmi_wwan_state { struct usb_driver *subdriver; atomic_t pmcount; unsigned long flags; };`. This is interesting, it seems it doesn't utilize `cdc_state` at all, right? I need to keep that straight.

Now, what about `rndis_host`? That's a different beast, I think. I know it leverages `cdc_state`, and it does so via the `info` pointer. The relevant code snippet shows it casts `dev->data` to a `cdc_state` struct. And the driver uses `usbnet_generic_cdc_bind`, which, as I recall, is where `cdc_state` gets populated.

Hmm, but what else does `rndis_host` do with `dev->data`? I should make sure there aren't any unexpected interactions there. I'm going to quickly check through the rest of `rndis_host.c` to be completely certain.



14/2 2026/07/02 17:55 tool grepper
0m Error:
no matches

Args:
{
  "Expression": "dev-\u003edata",
  "PathPrefix": "drivers/net/usb/rndis_host.c"
}

Results:
{
  "error": "no matches"
}

15/2 2026/07/02 17:55 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 40317
							output: 32
							thoughts: 177
						

Thoughts:
**Investigating a Potential Bug with USB CDC Device State**

Okay, so I'm looking at this diff and immediately see a change in how `cdc_state` is accessed. It used to be `dev->data` in `rndis_host.c`, and now it's `dev->cdc`. The same thing happened in `cdc_ether.c`, so clearly there's been some refactoring related to the state structure. I'm assuming this is a fix or improvement.

The main concern now is whether this change breaks any existing drivers. I'm thinking, are there any drivers out there that are still relying on `dev->data` for their own private state AND are calling functions like `usbnet_cdc_status` or `usbnet_cdc_update_filter`?  If so, then we've got a problem and their state will be corrupted if the old `dev->data` pointer is not correct. I need to quickly identify any potential conflicts here, so my next step is to examine the callers of those two CDC functions.  I need to check for any interaction that may be happening on the old `dev->data` structure, which might now be used differently.



16/2 2026/07/02 17:55 tool grepper
0m Args:
{
  "Expression": "usbnet_cdc_status",
  "PathPrefix": "drivers/net/usb/"
}

Results:
{
  "Output": "drivers/net/usb/cdc_ether.c=410=static void usbnet_cdc_zte_status(struct usbnet *dev, struct urb *urb)\n--\ndrivers/net/usb/cdc_ether.c-419-\tif (event-\u003ebNotificationType != USB_CDC_NOTIFY_NETWORK_CONNECTION) {\ndrivers/net/usb/cdc_ether.c:420:\t\tusbnet_cdc_status(dev, urb);\ndrivers/net/usb/cdc_ether.c-421-\t\treturn;\n--\ndrivers/net/usb/cdc_ether.c=434=static const struct driver_info\tcdc_info = {\n--\ndrivers/net/usb/cdc_ether.c-438-\t.unbind =\tusbnet_cdc_unbind,\ndrivers/net/usb/cdc_ether.c:439:\t.status =\tusbnet_cdc_status,\ndrivers/net/usb/cdc_ether.c-440-\t.set_rx_mode =\tusbnet_cdc_update_filter,\n--\ndrivers/net/usb/cdc_ether.c=455=static const struct driver_info wwan_info = {\n--\ndrivers/net/usb/cdc_ether.c-459-\t.unbind =\tusbnet_cdc_unbind,\ndrivers/net/usb/cdc_ether.c:460:\t.status =\tusbnet_cdc_status,\ndrivers/net/usb/cdc_ether.c-461-\t.set_rx_mode =\tusbnet_cdc_update_filter,\n--\ndrivers/net/usb/lg-vl600.c=301=static const struct driver_info\tvl600_info = {\n--\ndrivers/net/usb/lg-vl600.c-305-\t.unbind\t\t= vl600_unbind,\ndrivers/net/usb/lg-vl600.c:306:\t.status\t\t= usbnet_cdc_status,\ndrivers/net/usb/lg-vl600.c-307-\t.rx_fixup\t= vl600_rx_fixup,\n--\ndrivers/net/usb/r8153_ecm.c=115=static const struct driver_info r8153_info = {\n--\ndrivers/net/usb/r8153_ecm.c-119-\t.unbind =\tusbnet_cdc_unbind,\ndrivers/net/usb/r8153_ecm.c:120:\t.status =\tusbnet_cdc_status,\ndrivers/net/usb/r8153_ecm.c-121-\t.manage_power =\tusbnet_manage_power,\n--\ndrivers/net/usb/usbnet.c=2305=static void speed_change(struct usbnet *dev, __le32 *speeds)\n--\ndrivers/net/usb/usbnet.c-2310-\ndrivers/net/usb/usbnet.c:2311:void usbnet_cdc_status(struct usbnet *dev, struct urb *urb)\ndrivers/net/usb/usbnet.c-2312-{\n--\ndrivers/net/usb/usbnet.c-2348-}\ndrivers/net/usb/usbnet.c:2349:EXPORT_SYMBOL_GPL(usbnet_cdc_status);\ndrivers/net/usb/usbnet.c-2350-\n"
}

17/2 2026/07/02 17:55 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 41635
							output: 37
							thoughts: 28
						

Thoughts:
Okay, here's my interpretation of those thoughts, presented as a first-person expert summary:

**Digging into lg-vl600.c: USB CDC Status and Data**

Alright, let's see... *lg-vl600.c*.  That name's familiar; it's likely something related to the LG VL600 modem drivers.  My immediate thought is about the `usbnet_cdc_status` function call I'm seeing in it. I know that function, it's pretty standard USB CDC Ethernet stuff. But the crucial question that comes to mind is *how* is the driver actually handling the device specific data? And more specifically, is it using `dev->data` for device-specific private data?  That's where the real nuance is. It is one of the more common design considerations, but it isn't always utilized. This is a common pattern, and it's essential to understand how this driver is managing its internal state.  Gotta follow the data flow to be sure.  Let's see where that goes...



18/2 2026/07/02 17:55 tool grepper
0m Error:
no matches

Args:
{
  "Expression": "dev-\u003edata",
  "PathPrefix": "drivers/net/usb/lg-vl600.c"
}

Results:
{
  "error": "no matches"
}

19/2 2026/07/02 17:55 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 41946
							output: 39
							thoughts: 30
						

Thoughts:
Okay, here's my interpretation of that thought process, from an expert's perspective:

**Diving into the USB Ethernet Control Model Code**

Right, so I'm looking at `r8153_ecm.c` and immediately a question pops into my head – a pretty fundamental one, actually. I see it's using `usbnet_cdc_status`. That tells me this is likely dealing with a CDC-ECM (Ethernet Control Model) network device based on a Realtek chipset. The question is, and this is crucial for understanding how the driver's handling communication and device-specific data: is it accessing `dev->data`? Is the driver correctly associating any context data with the `usbnet` device? This bit of information is key for data management and state tracking within the device.



20/2 2026/07/02 17:55 tool grepper
0m Error:
no matches

Args:
{
  "Expression": "dev-\u003edata",
  "PathPrefix": "drivers/net/usb/r8153_ecm.c"
}

Results:
{
  "error": "no matches"
}

21/2 2026/07/02 17:55 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 42203
							output: 114
							thoughts: 1232
						

Thoughts:
**Refactoring Analysis: `usbnet.c` and `cdc_state`**

Okay, so I initially thought there might be a subtle bug fix related to the `cdc_state` within `usbnet.c`. But first, I needed to confirm that the relevant functions actually used `cdc_state`.  I started by examining `usbnet_cdc_status`. No, it doesn't use `cdc_state` directly. I then looked at `usbnet_cdc_update_filter`.  Nope, that function also doesn't touch `cdc_state`.

Then, I looked at `usbnet_cdc_unbind`. Aha!  That function *does* use `cdc_state`.  I further checked if the driver `r8153_ecm.c` uses `usbnet_cdc_unbind`. Yes. But does it use `dev->data`? No.

Therefore, it seems that the change from the more general `dev->data` to the more specific `dev->cdc` is purely a refactoring to improve code clarity and avoid potential aliasing. It consolidates use of `cdc_state` where applicable, which is a good practice. No drivers are using `dev->data` and `cdc_state` simultaneously, and this refactoring doesn't fix a pre-existing bug.  It's just cleaner.

Considering the prompt's criteria for a non-fuzzable patch ("Changes to numeric constants or macros that do not functionally alter execution flow"), I conclude that this change qualifies.  It's a pure refactoring and doesn't introduce any new code paths or alter the execution flow, so I'll return `WorthFuzzing=false`.



22/2 2026/07/02 17:56 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch is a pure refactoring that moves CDC-related functions from cdc_ether.c to the core usbnet.c module and replaces the use of the generic data array with a dedicated cdc_state struct in usbnet. It does not introduce any new functional logic or fix any bugs related to data aliasing, as no drivers were concurrently using both the generic data array and the CDC state.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch is a pure refactoring that moves CDC-related functions from cdc_ether.c to the core usbnet.c module and replaces the use of the generic data array with a dedicated cdc_state struct in usbnet. It does not introduce any new functional logic or fix any bugs related to data aliasing, as no drivers were concurrently using both the generic data array and the CDC state.",
  "WorthFuzzing": false
}

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)