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);
147 * @id_table: A protocol/name pair descriptor for the device to be unrequested.
149 * The unrequested device, described by the provided id_table, is at first
154 static void scmi_protocol_device_unrequest(const struct scmi_device_id *id_table)
159 id_table->name, id_table->protocol_id);
162 phead = idr_find(&scmi_requested_devices, id_table->protocol_id);
167 if (!strcmp(victim->id_table->name, id_table->name)) {
173 (void *)victim->id_table);
182 id_table->protocol_id);
192 const struct scmi_device_id *id = scmi_drv->id_table;
224 struct scmi_device_id *id_table = data;
226 return sdev->protocol_id == id_table->protocol_id &&
227 (id_table->name && !strcmp(sdev->name, id_table->name));
233 struct scmi_device_id id_table;
236 id_table.protocol_id = prot_id;
237 id_table.name = name;
239 dev = device_find_child(parent, &id_table, scmi_match_by_id_table);
282 retval = scmi_protocol_device_request(driver->id_table);
302 scmi_protocol_device_unrequest(driver->id_table);
446 rdev->id_table->protocol_id,
447 rdev->id_table->name);
454 rdev->id_table->protocol_id,
455 rdev->id_table->name);