Lines Matching full:uid

28 			sdev->uid.domain, sdev->uid.category, sdev->uid.target,  in modalias_show()
29 sdev->uid.instance, sdev->uid.function); in modalias_show()
46 sdev->uid.domain, sdev->uid.category, in ssam_device_uevent()
47 sdev->uid.target, sdev->uid.instance, in ssam_device_uevent()
48 sdev->uid.function); in ssam_device_uevent()
71 * @uid: The UID of the device to be added.
75 * UID. Note that the device still has to be added via ssam_device_add().
82 struct ssam_device_uid uid) in ssam_device_alloc() argument
95 sdev->uid = uid; in ssam_device_alloc()
98 sdev->uid.domain, sdev->uid.category, sdev->uid.target, in ssam_device_alloc()
99 sdev->uid.instance, sdev->uid.function); in ssam_device_alloc()
178 * ssam_device_id_compatible() - Check if a device ID matches a UID.
180 * @uid: The device UID matching against.
182 * Check if the given ID is a match for the given UID, i.e. if a device with
183 * the provided UID is compatible to the given ID following the match rules
186 * Return: Returns %true if the given UID is compatible to the match rule
190 struct ssam_device_uid uid) in ssam_device_id_compatible() argument
192 if (id->domain != uid.domain || id->category != uid.category) in ssam_device_id_compatible()
195 if ((id->match_flags & SSAM_MATCH_TARGET) && id->target != uid.target) in ssam_device_id_compatible()
198 if ((id->match_flags & SSAM_MATCH_INSTANCE) && id->instance != uid.instance) in ssam_device_id_compatible()
201 if ((id->match_flags & SSAM_MATCH_FUNCTION) && id->function != uid.function) in ssam_device_id_compatible()
229 * ssam_device_id_match() - Find the matching ID table entry for the given UID.
231 * @uid: The UID to matched against the individual table entries.
233 * Find the first match for the provided device UID in the provided ID table
237 const struct ssam_device_uid uid) in ssam_device_id_match() argument
242 if (ssam_device_id_compatible(id, uid)) in ssam_device_id_match()
254 * Find the fist match for the UID of the device in the ID table of the
260 * the bound device driver and the UID of the device.
262 * Return: Returns the first match for the UID of the device in the device
276 return ssam_device_id_match(sdrv->match_table, dev->uid); in ssam_device_get_match()
285 * Find the fist match for the UID of the device in the ID table of the
294 * Return: Returns the driver data associated with the first match for the UID
318 return !!ssam_device_id_match(sdrv->match_table, sdev->uid); in ssam_bus_match()
395 static int ssam_device_uid_from_string(const char *str, struct ssam_device_uid *uid) in ssam_device_uid_from_string() argument
404 uid->domain = d; in ssam_device_uid_from_string()
405 uid->category = tc; in ssam_device_uid_from_string()
406 uid->target = tid; in ssam_device_uid_from_string()
407 uid->instance = iid; in ssam_device_uid_from_string()
408 uid->function = fn; in ssam_device_uid_from_string()
413 static int ssam_get_uid_for_node(struct fwnode_handle *node, struct ssam_device_uid *uid) in ssam_get_uid_for_node() argument
419 * based on the UID of the device, prefixed with "ssam:". in ssam_get_uid_for_node()
425 return ssam_device_uid_from_string(str, uid); in ssam_get_uid_for_node()
431 struct ssam_device_uid uid; in ssam_add_client_device() local
435 status = ssam_get_uid_for_node(node, &uid); in ssam_add_client_device()
439 sdev = ssam_device_alloc(ctrl, uid); in ssam_add_client_device()