Lines Matching refs:efw

102 efw_transaction(struct snd_efw *efw, unsigned int category,  in efw_transaction()  argument
123 spin_lock(&efw->lock); in efw_transaction()
124 if ((efw->seqnum < KERNEL_SEQNUM_MIN) || in efw_transaction()
125 (efw->seqnum >= KERNEL_SEQNUM_MAX - 2)) in efw_transaction()
126 efw->seqnum = KERNEL_SEQNUM_MIN; in efw_transaction()
128 efw->seqnum += 2; in efw_transaction()
129 seqnum = efw->seqnum; in efw_transaction()
130 spin_unlock(&efw->lock); in efw_transaction()
145 err = snd_efw_transaction_run(efw->unit, buf, cmd_bytes, in efw_transaction()
155 dev_err(&efw->unit->device, "EFW command failed [%u/%u]: %s\n", in efw_transaction()
182 int snd_efw_command_set_resp_addr(struct snd_efw *efw, in snd_efw_command_set_resp_addr() argument
190 if (!efw->resp_addr_changable) in snd_efw_command_set_resp_addr()
193 return efw_transaction(efw, EFC_CAT_HWCTL, in snd_efw_command_set_resp_addr()
203 int snd_efw_command_set_tx_mode(struct snd_efw *efw, in snd_efw_command_set_tx_mode() argument
207 return efw_transaction(efw, EFC_CAT_TRANSPORT, in snd_efw_command_set_tx_mode()
212 int snd_efw_command_get_hwinfo(struct snd_efw *efw, in snd_efw_command_get_hwinfo() argument
217 err = efw_transaction(efw, EFC_CAT_HWINFO, in snd_efw_command_get_hwinfo()
256 int snd_efw_command_get_phys_meters(struct snd_efw *efw, in snd_efw_command_get_phys_meters() argument
264 err = efw_transaction(efw, EFC_CAT_HWINFO, in snd_efw_command_get_phys_meters()
275 command_get_clock(struct snd_efw *efw, struct efc_clock *clock) in command_get_clock() argument
279 err = efw_transaction(efw, EFC_CAT_HWCTL, in command_get_clock()
294 command_set_clock(struct snd_efw *efw, in command_set_clock() argument
307 err = command_get_clock(efw, &clock); in command_set_clock()
326 err = efw_transaction(efw, EFC_CAT_HWCTL, in command_set_clock()
343 int snd_efw_command_get_clock_source(struct snd_efw *efw, in snd_efw_command_get_clock_source() argument
349 err = command_get_clock(efw, &clock); in snd_efw_command_get_clock_source()
356 int snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate) in snd_efw_command_get_sampling_rate() argument
361 err = command_get_clock(efw, &clock); in snd_efw_command_get_sampling_rate()
368 int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate) in snd_efw_command_set_sampling_rate() argument
370 return command_set_clock(efw, UINT_MAX, rate); in snd_efw_command_set_sampling_rate()