Searched refs:efw (Results 1 - 9 of 9) sorted by relevance

/linux-master/sound/firewire/fireworks/
H A Dfireworks_stream.c11 static int init_stream(struct snd_efw *efw, struct amdtp_stream *stream) argument
18 if (stream == &efw->tx_stream) {
19 conn = &efw->out_conn;
23 conn = &efw->in_conn;
28 err = cmp_connection_init(conn, efw->unit, c_dir, 0);
32 err = amdtp_am824_init(stream, efw->unit, s_dir, CIP_BLOCKING | CIP_UNAWARE_SYT);
39 if (stream == &efw->tx_stream) {
41 efw->tx_stream.flags |= CIP_EMPTY_WITH_TAG0;
43 efw->tx_stream.flags |= CIP_DBC_IS_END_EVENT;
45 efw
65 start_stream(struct snd_efw *efw, struct amdtp_stream *stream, unsigned int rate) argument
94 destroy_stream(struct snd_efw *efw, struct amdtp_stream *stream) argument
105 check_connection_used_by_others(struct snd_efw *efw, struct amdtp_stream *s) argument
128 snd_efw_stream_init_duplex(struct snd_efw *efw) argument
159 keep_resources(struct snd_efw *efw, struct amdtp_stream *stream, unsigned int rate, unsigned int mode) argument
185 snd_efw_stream_reserve_duplex(struct snd_efw *efw, unsigned int rate, unsigned int frames_per_period, unsigned int frames_per_buffer) argument
247 snd_efw_stream_start_duplex(struct snd_efw *efw) argument
308 snd_efw_stream_stop_duplex(struct snd_efw *efw) argument
321 snd_efw_stream_update_duplex(struct snd_efw *efw) argument
332 snd_efw_stream_destroy_duplex(struct snd_efw *efw) argument
340 snd_efw_stream_lock_changed(struct snd_efw *efw) argument
346 snd_efw_stream_lock_try(struct snd_efw *efw) argument
367 snd_efw_stream_lock_release(struct snd_efw *efw) argument
[all...]
H A Dfireworks_hwdep.c22 hwdep_read_resp_buf(struct snd_efw *efw, char __user *buf, long remained, argument
42 spin_lock_irq(&efw->lock);
49 pull_ptr = efw->pull_ptr;
51 while (efw->push_ptr != pull_ptr) {
62 (unsigned int)(pull_ptr - efw->resp_buf);
65 spin_unlock_irq(&efw->lock);
70 spin_lock_irq(&efw->lock);
73 if (pull_ptr >= efw->resp_buf + snd_efw_resp_buf_size)
91 efw->pull_ptr = pull_ptr;
93 spin_unlock_irq(&efw
99 hwdep_read_locked(struct snd_efw *efw, char __user *buf, long count, loff_t *offset) argument
125 struct snd_efw *efw = hwdep->private_data; local
161 struct snd_efw *efw = hwdep->private_data; local
190 struct snd_efw *efw = hwdep->private_data; local
206 hwdep_get_info(struct snd_efw *efw, void __user *arg) argument
226 hwdep_lock(struct snd_efw *efw) argument
245 hwdep_unlock(struct snd_efw *efw) argument
266 struct snd_efw *efw = hwdep->private_data; local
280 struct snd_efw *efw = hwdep->private_data; local
306 snd_efw_create_hwdep_device(struct snd_efw *efw) argument
[all...]
H A Dfireworks_midi.c12 struct snd_efw *efw = substream->rmidi->private_data; local
15 err = snd_efw_stream_lock_try(efw);
19 mutex_lock(&efw->mutex);
20 err = snd_efw_stream_reserve_duplex(efw, 0, 0, 0);
22 ++efw->substreams_counter;
23 err = snd_efw_stream_start_duplex(efw);
25 --efw->substreams_counter;
27 mutex_unlock(&efw->mutex);
29 snd_efw_stream_lock_release(efw);
36 struct snd_efw *efw local
49 struct snd_efw *efw = substrm->rmidi->private_data; local
66 struct snd_efw *efw = substrm->rmidi->private_data; local
81 set_midi_substream_names(struct snd_efw *efw, struct snd_rawmidi_str *str) argument
92 snd_efw_create_midi_devices(struct snd_efw *efw) argument
[all...]
H A Dfireworks.c72 get_hardware_info(struct snd_efw *efw) argument
74 struct fw_device *fw_dev = fw_parent_device(efw->unit);
83 err = snd_efw_command_get_hwinfo(efw, hwinfo);
91 efw->firmware_version = hwinfo->arm_version;
93 strcpy(efw->card->driver, "Fireworks");
94 strcpy(efw->card->shortname, hwinfo->model_name);
95 strcpy(efw->card->mixername, hwinfo->model_name);
96 scnprintf(efw->card->longname, sizeof(efw->card->longname),
100 dev_name(&efw
189 struct snd_efw *efw = card->private_data; local
206 struct snd_efw *efw; local
286 struct snd_efw *efw = dev_get_drvdata(&unit->device); local
297 struct snd_efw *efw = dev_get_drvdata(&unit->device); local
[all...]
H A Dfireworks_pcm.c132 pcm_init_hw_params(struct snd_efw *efw, argument
142 s = &efw->tx_stream;
143 pcm_channels = efw->pcm_capture_channels;
146 s = &efw->rx_stream;
147 pcm_channels = efw->pcm_playback_channels;
151 runtime->hw.rates = efw->supported_sampling_rate;
175 struct snd_efw *efw = substream->private_data; local
176 struct amdtp_domain *d = &efw->domain;
180 err = snd_efw_stream_lock_try(efw);
184 err = pcm_init_hw_params(efw, substrea
242 struct snd_efw *efw = substream->private_data; local
250 struct snd_efw *efw = substream->private_data; local
271 struct snd_efw *efw = substream->private_data; local
287 struct snd_efw *efw = substream->private_data; local
298 struct snd_efw *efw = substream->private_data; local
310 struct snd_efw *efw = substream->private_data; local
327 struct snd_efw *efw = substream->private_data; local
345 struct snd_efw *efw = sbstrm->private_data; local
351 struct snd_efw *efw = sbstrm->private_data; local
358 struct snd_efw *efw = substream->private_data; local
365 struct snd_efw *efw = substream->private_data; local
370 snd_efw_create_pcm_devices(struct snd_efw *efw) argument
[all...]
H A Dfireworks_proc.c30 struct snd_efw *efw = entry->private_data; local
38 if (snd_efw_command_get_hwinfo(efw, hwinfo) < 0)
107 struct snd_efw *efw = entry->private_data; local
111 if (snd_efw_command_get_clock_source(efw, &clock_source) < 0)
114 if (snd_efw_command_get_sampling_rate(efw, &sampling_rate) < 0)
130 struct snd_efw *efw = entry->private_data; local
138 (efw->phys_in + efw->phys_out) * sizeof(u32);
143 err = snd_efw_command_get_phys_meters(efw, meters, size);
150 max = min(efw
181 struct snd_efw *efw = entry->private_data; local
195 add_node(struct snd_efw *efw, struct snd_info_entry *root, const char *name, void (*op)(struct snd_info_entry *e, struct snd_info_buffer *b)) argument
205 snd_efw_proc_init(struct snd_efw *efw) argument
[all...]
H A Dfireworks_transaction.c118 copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode) argument
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
169 struct snd_efw *efw; local
258 snd_efw_transaction_add_instance(struct snd_efw *efw) argument
274 snd_efw_transaction_remove_instance(struct snd_efw *efw) argument
[all...]
H A Dfireworks_command.c101 efw_transaction(struct snd_efw *efw, unsigned int category, argument
122 spin_lock(&efw->lock);
123 if ((efw->seqnum < KERNEL_SEQNUM_MIN) ||
124 (efw->seqnum >= KERNEL_SEQNUM_MAX - 2))
125 efw->seqnum = KERNEL_SEQNUM_MIN;
127 efw->seqnum += 2;
128 seqnum = efw->seqnum;
129 spin_unlock(&efw->lock);
144 err = snd_efw_transaction_run(efw->unit, buf, cmd_bytes,
154 dev_err(&efw
181 snd_efw_command_set_resp_addr(struct snd_efw *efw, u16 addr_high, u32 addr_low) argument
202 snd_efw_command_set_tx_mode(struct snd_efw *efw, enum snd_efw_transport_mode mode) argument
211 snd_efw_command_get_hwinfo(struct snd_efw *efw, struct snd_efw_hwinfo *hwinfo) argument
255 snd_efw_command_get_phys_meters(struct snd_efw *efw, struct snd_efw_phys_meters *meters, unsigned int len) argument
274 command_get_clock(struct snd_efw *efw, struct efc_clock *clock) argument
293 command_set_clock(struct snd_efw *efw, unsigned int source, unsigned int rate) argument
342 snd_efw_command_get_clock_source(struct snd_efw *efw, enum snd_efw_clock_source *source) argument
355 snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate) argument
367 snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate) argument
[all...]
H A Dfireworks.h119 void snd_efw_transaction_add_instance(struct snd_efw *efw);
120 void snd_efw_transaction_remove_instance(struct snd_efw *efw);
192 int snd_efw_command_set_resp_addr(struct snd_efw *efw,
194 int snd_efw_command_set_tx_mode(struct snd_efw *efw,
196 int snd_efw_command_get_hwinfo(struct snd_efw *efw,
198 int snd_efw_command_get_phys_meters(struct snd_efw *efw,
201 int snd_efw_command_get_clock_source(struct snd_efw *efw,
203 int snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate);
204 int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate);
206 int snd_efw_stream_init_duplex(struct snd_efw *efw);
[all...]

Completed in 133 milliseconds