Lines Matching refs:id
19 * @id: The ID to compare to
20 * @id_mask: Mask that is applied to the device ID before comparing to @id
22 * If @id is 0 this function returns true if the read device vendor ID is
23 * a valid ID. If @id is non 0 this functions returns true if @id
26 static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id,
29 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16;
30 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2);
32 if (ac97->id == 0x0 || ac97->id == 0xffffffff)
35 if (id != 0 && id != (ac97->id & id_mask))
45 * @id: Expected device vendor ID
46 * @id_mask: Mask that is applied to the device ID before comparing to @id
52 * otherwise a negative error code. If @id is 0 any valid device ID will be
53 * accepted, otherwise only the ID that matches @id and @id_mask is accepted.
55 int snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id,
62 if (snd_ac97_check_id(ac97, id, id_mask))
71 if (snd_ac97_check_id(ac97, id, id_mask))