Lines Matching refs:efw

119 copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode)  in copy_resp_to_buf()  argument
124 spin_lock_irq(&efw->lock); in copy_resp_to_buf()
129 if (efw->push_ptr < efw->pull_ptr) in copy_resp_to_buf()
130 capacity = (unsigned int)(efw->pull_ptr - efw->push_ptr); in copy_resp_to_buf()
133 (unsigned int)(efw->push_ptr - efw->pull_ptr); in copy_resp_to_buf()
144 (unsigned int)(efw->push_ptr - efw->resp_buf); in copy_resp_to_buf()
147 memcpy(efw->push_ptr, data, till_end); in copy_resp_to_buf()
149 efw->push_ptr += till_end; in copy_resp_to_buf()
150 if (efw->push_ptr >= efw->resp_buf + snd_efw_resp_buf_size) in copy_resp_to_buf()
151 efw->push_ptr -= snd_efw_resp_buf_size; in copy_resp_to_buf()
158 efw->resp_queues++; in copy_resp_to_buf()
159 wake_up(&efw->hwdep_wait); in copy_resp_to_buf()
163 spin_unlock_irq(&efw->lock); in copy_resp_to_buf()
171 struct snd_efw *efw; in handle_resp_for_user() local
177 efw = instances[i]; in handle_resp_for_user()
178 if (efw == NULL) in handle_resp_for_user()
180 device = fw_parent_device(efw->unit); in handle_resp_for_user()
193 copy_resp_to_buf(efw, data, length, rcode); in handle_resp_for_user()
260 void snd_efw_transaction_add_instance(struct snd_efw *efw) in snd_efw_transaction_add_instance() argument
269 instances[i] = efw; in snd_efw_transaction_add_instance()
276 void snd_efw_transaction_remove_instance(struct snd_efw *efw) in snd_efw_transaction_remove_instance() argument
283 if (instances[i] != efw) in snd_efw_transaction_remove_instance()