Lines Matching full:uid

27 			sdev->uid.domain, sdev->uid.category, sdev->uid.target,  in modalias_show()
28 sdev->uid.instance, sdev->uid.function); in modalias_show()
43 sdev->uid.domain, sdev->uid.category, in ssam_device_uevent()
44 sdev->uid.target, sdev->uid.instance, in ssam_device_uevent()
45 sdev->uid.function); in ssam_device_uevent()
68 * @uid: The UID of the device to be added.
72 * UID. Note that the device still has to be added via ssam_device_add().
79 struct ssam_device_uid uid) in ssam_device_alloc() argument
92 sdev->uid = uid; in ssam_device_alloc()
95 sdev->uid.domain, sdev->uid.category, sdev->uid.target, in ssam_device_alloc()
96 sdev->uid.instance, sdev->uid.function); in ssam_device_alloc()
175 * ssam_device_id_compatible() - Check if a device ID matches a UID.
177 * @uid: The device UID matching against.
179 * Check if the given ID is a match for the given UID, i.e. if a device with
180 * the provided UID is compatible to the given ID following the match rules
183 * Return: Returns %true if the given UID is compatible to the match rule
187 struct ssam_device_uid uid) in ssam_device_id_compatible() argument
189 if (id->domain != uid.domain || id->category != uid.category) in ssam_device_id_compatible()
192 if ((id->match_flags & SSAM_MATCH_TARGET) && id->target != uid.target) in ssam_device_id_compatible()
195 if ((id->match_flags & SSAM_MATCH_INSTANCE) && id->instance != uid.instance) in ssam_device_id_compatible()
198 if ((id->match_flags & SSAM_MATCH_FUNCTION) && id->function != uid.function) in ssam_device_id_compatible()
226 * ssam_device_id_match() - Find the matching ID table entry for the given UID.
228 * @uid: The UID to matched against the individual table entries.
230 * Find the first match for the provided device UID in the provided ID table
234 const struct ssam_device_uid uid) in ssam_device_id_match() argument
239 if (ssam_device_id_compatible(id, uid)) in ssam_device_id_match()
251 * Find the fist match for the UID of the device in the ID table of the
257 * the bound device driver and the UID of the device.
259 * Return: Returns the first match for the UID of the device in the device
273 return ssam_device_id_match(sdrv->match_table, dev->uid); in ssam_device_get_match()
282 * Find the fist match for the UID of the device in the ID table of the
291 * Return: Returns the driver data associated with the first match for the UID
315 return !!ssam_device_id_match(sdrv->match_table, sdev->uid); in ssam_bus_match()
393 static int ssam_device_uid_from_string(const char *str, struct ssam_device_uid *uid) in ssam_device_uid_from_string() argument
402 uid->domain = d; in ssam_device_uid_from_string()
403 uid->category = tc; in ssam_device_uid_from_string()
404 uid->target = tid; in ssam_device_uid_from_string()
405 uid->instance = iid; in ssam_device_uid_from_string()
406 uid->function = fn; in ssam_device_uid_from_string()
411 static int ssam_get_uid_for_node(struct fwnode_handle *node, struct ssam_device_uid *uid) in ssam_get_uid_for_node() argument
417 * based on the UID of the device, prefixed with "ssam:". in ssam_get_uid_for_node()
423 return ssam_device_uid_from_string(str, uid); in ssam_get_uid_for_node()
429 struct ssam_device_uid uid; in ssam_add_client_device() local
433 status = ssam_get_uid_for_node(node, &uid); in ssam_add_client_device()
437 sdev = ssam_device_alloc(ctrl, uid); in ssam_add_client_device()