Lines Matching +defs:val +defs:data
53 handle_child_line(const char *line, void *data)
55 const char *val;
60 val = line + sizeof("Class:");
62 val += strspn(val, " \t") + sizeof("Class");
63 current_device.klass = strtol(val, NULL, 16);
67 val = line + sizeof("Vendor:");
68 current_device.vendor = strtol(val, NULL, 16);
72 val = line + sizeof("Device:");
75 if (!strchr(val, ':'))
76 current_device.device = strtol(val, NULL, 16);
80 val = line + sizeof("SVendor:");
81 current_device.subvendor = strtol(val, NULL, 16);
85 val = line + sizeof("SDevice:");
86 current_device.subdevice = strtol(val, NULL, 16);
90 val = line + sizeof("Rev:");
91 current_device.revision = strtol(val, NULL, 16);
95 val = line + sizeof("ProgIf:");
96 current_device.progif = strtol(val, NULL, 16);
118 lspci_process_line(const char *line, void *data)
137 /* Process new data from the virtual channel */
168 /* Send data to channel */