Lines Matching refs:efw

101 efw_transaction(struct snd_efw *efw, unsigned int category,  in efw_transaction()  argument
122 spin_lock(&efw->lock); in efw_transaction()
123 if ((efw->seqnum < KERNEL_SEQNUM_MIN) || in efw_transaction()
124 (efw->seqnum >= KERNEL_SEQNUM_MAX - 2)) in efw_transaction()
125 efw->seqnum = KERNEL_SEQNUM_MIN; in efw_transaction()
127 efw->seqnum += 2; in efw_transaction()
128 seqnum = efw->seqnum; in efw_transaction()
129 spin_unlock(&efw->lock); in efw_transaction()
144 err = snd_efw_transaction_run(efw->unit, buf, cmd_bytes, in efw_transaction()
154 dev_err(&efw->unit->device, "EFW command failed [%u/%u]: %s\n", in efw_transaction()
181 int snd_efw_command_set_resp_addr(struct snd_efw *efw, in snd_efw_command_set_resp_addr() argument
189 if (!efw->resp_addr_changable) in snd_efw_command_set_resp_addr()
192 return efw_transaction(efw, EFC_CAT_HWCTL, in snd_efw_command_set_resp_addr()
202 int snd_efw_command_set_tx_mode(struct snd_efw *efw, in snd_efw_command_set_tx_mode() argument
206 return efw_transaction(efw, EFC_CAT_TRANSPORT, in snd_efw_command_set_tx_mode()
211 int snd_efw_command_get_hwinfo(struct snd_efw *efw, in snd_efw_command_get_hwinfo() argument
216 err = efw_transaction(efw, EFC_CAT_HWINFO, in snd_efw_command_get_hwinfo()
255 int snd_efw_command_get_phys_meters(struct snd_efw *efw, in snd_efw_command_get_phys_meters() argument
263 err = efw_transaction(efw, EFC_CAT_HWINFO, in snd_efw_command_get_phys_meters()
274 command_get_clock(struct snd_efw *efw, struct efc_clock *clock) in command_get_clock() argument
278 err = efw_transaction(efw, EFC_CAT_HWCTL, in command_get_clock()
293 command_set_clock(struct snd_efw *efw, in command_set_clock() argument
306 err = command_get_clock(efw, &clock); in command_set_clock()
325 err = efw_transaction(efw, EFC_CAT_HWCTL, in command_set_clock()
342 int snd_efw_command_get_clock_source(struct snd_efw *efw, in snd_efw_command_get_clock_source() argument
348 err = command_get_clock(efw, &clock); in snd_efw_command_get_clock_source()
355 int snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate) in snd_efw_command_get_sampling_rate() argument
360 err = command_get_clock(efw, &clock); in snd_efw_command_get_sampling_rate()
367 int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate) in snd_efw_command_set_sampling_rate() argument
369 return command_set_clock(efw, UINT_MAX, rate); in snd_efw_command_set_sampling_rate()