Lines Matching refs:efw
118 copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode)
126 spin_lock(&efw->lock);
128 if (efw->push_ptr < efw->pull_ptr)
129 capacity = (unsigned int)(efw->pull_ptr - efw->push_ptr);
132 (unsigned int)(efw->push_ptr - efw->pull_ptr);
143 (unsigned int)(efw->push_ptr - efw->resp_buf);
146 memcpy(efw->push_ptr, data, till_end);
148 efw->push_ptr += till_end;
149 if (efw->push_ptr >= efw->resp_buf + snd_efw_resp_buf_size)
150 efw->push_ptr -= snd_efw_resp_buf_size;
157 wake_up(&efw->hwdep_wait);
161 spin_unlock_irq(&efw->lock);
169 struct snd_efw *efw;
175 efw = instances[i];
176 if (efw == NULL)
178 device = fw_parent_device(efw->unit);
191 copy_resp_to_buf(efw, data, length, rcode);
258 void snd_efw_transaction_add_instance(struct snd_efw *efw)
267 instances[i] = efw;
274 void snd_efw_transaction_remove_instance(struct snd_efw *efw)
281 if (instances[i] != efw)