Lines Matching +full:signal +full:- +full:id

1 // SPDX-License-Identifier: GPL-2.0-or-later
28 * snd_pci_quirk_lookup_id - look up a PCI SSID quirk list
29 * @vendor: PCI SSV id
30 * @device: PCI SSD id
45 for (q = list; q->subvendor || q->subdevice; q++) { in snd_pci_quirk_lookup_id()
46 if (q->subvendor != vendor) in snd_pci_quirk_lookup_id()
48 if (!q->subdevice || in snd_pci_quirk_lookup_id()
49 (device & q->subdevice_mask) == q->subdevice) in snd_pci_quirk_lookup_id()
57 * snd_pci_quirk_lookup - look up a PCI SSID quirk list
72 return snd_pci_quirk_lookup_id(pci->subsystem_vendor, in snd_pci_quirk_lookup()
73 pci->subsystem_device, in snd_pci_quirk_lookup()
80 * Deferred async signal helpers
82 * Below are a few helper functions to wrap the async signal handling
91 int signal; member
107 list_del_init(&fasync->list); in snd_fasync_work_fn()
109 if (fasync->on) in snd_fasync_work_fn()
110 kill_fasync(&fasync->fasync, fasync->signal, fasync->poll); in snd_fasync_work_fn()
126 return -ENOMEM; in snd_fasync_helper()
127 INIT_LIST_HEAD(&fasync->list); in snd_fasync_helper()
141 fasync->on = on; in snd_fasync_helper()
143 return fasync_helper(fd, file, on, &fasync->fasync); in snd_fasync_helper()
147 void snd_kill_fasync(struct snd_fasync *fasync, int signal, int poll) in snd_kill_fasync() argument
151 if (!fasync || !fasync->on) in snd_kill_fasync()
154 fasync->signal = signal; in snd_kill_fasync()
155 fasync->poll = poll; in snd_kill_fasync()
156 list_move(&fasync->list, &snd_fasync_list); in snd_kill_fasync()
166 fasync->on = 0; in snd_fasync_free()