Lines Matching refs:id_table

30 	const struct scmi_device_id *id_table;
40 * @id_table: A protocol/name pair descriptor for the device to be created.
43 * @id_table to be created for each active SCMI instance.
46 * at first the freshly requested @id_table is annotated in the IDR table
52 static int scmi_protocol_device_request(const struct scmi_device_id *id_table)
60 id_table->name, id_table->protocol_id);
65 id_table->name, id_table->protocol_id);
79 if (rdev->id_table->protocol_id ==
80 id_table->protocol_id)
84 if (!strcmp(rdev->id_table->name, id_table->name)) {
86 rdev->id_table->protocol_id,
87 rdev->id_table->name);
95 * No duplicate found for requested id_table, so let's create a new
103 rdev->id_table = id_table;
120 id_table->protocol_id,
121 id_table->protocol_id + 1, GFP_KERNEL);
122 if (ret != id_table->protocol_id) {
139 (void *)rdev->id_table);
144 static int scmi_protocol_table_register(const struct scmi_device_id *id_table)
149 for (entry = id_table; entry->name && ret == 0; entry++)
158 * @id_table: A protocol/name pair descriptor for the device to be unrequested.
160 * The unrequested device, described by the provided id_table, is at first
165 static void scmi_protocol_device_unrequest(const struct scmi_device_id *id_table)
170 id_table->name, id_table->protocol_id);
173 phead = idr_find(&scmi_requested_devices, id_table->protocol_id);
178 if (!strcmp(victim->id_table->name, id_table->name)) {
184 (void *)victim->id_table);
193 id_table->protocol_id);
201 scmi_protocol_table_unregister(const struct scmi_device_id *id_table)
205 for (entry = id_table; entry->name; entry++)
212 const struct scmi_device_id *id = scmi_drv->id_table;
244 struct scmi_device_id *id_table = data;
246 return sdev->protocol_id == id_table->protocol_id &&
247 (id_table->name && !strcmp(sdev->name, id_table->name));
253 struct scmi_device_id id_table;
256 id_table.protocol_id = prot_id;
257 id_table.name = name;
259 dev = device_find_child(parent, &id_table, scmi_match_by_id_table);
302 retval = scmi_protocol_table_register(driver->id_table);
322 scmi_protocol_table_unregister(driver->id_table);
466 rdev->id_table->protocol_id,
467 rdev->id_table->name);
474 rdev->id_table->protocol_id,
475 rdev->id_table->name);