Lines Matching refs:err
14 int err; in avc_audio_set_selector() local
30 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_set_selector()
33 if (err < 0) in avc_audio_set_selector()
35 else if (err < 9) in avc_audio_set_selector()
36 err = -EIO; in avc_audio_set_selector()
38 err = -ENOSYS; in avc_audio_set_selector()
40 err = -EINVAL; in avc_audio_set_selector()
42 err = 0; in avc_audio_set_selector()
45 return err; in avc_audio_set_selector()
52 int err; in avc_audio_get_selector() local
68 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_get_selector()
71 if (err < 0) in avc_audio_get_selector()
73 else if (err < 9) in avc_audio_get_selector()
74 err = -EIO; in avc_audio_get_selector()
76 err = -ENOSYS; in avc_audio_get_selector()
78 err = -EINVAL; in avc_audio_get_selector()
80 err = -EAGAIN; in avc_audio_get_selector()
81 if (err < 0) in avc_audio_get_selector()
85 err = 0; in avc_audio_get_selector()
88 return err; in avc_audio_get_selector()
114 int err; in avc_bridgeco_get_plug_type() local
123 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_type()
126 if (err < 0) in avc_bridgeco_get_plug_type()
128 else if (err < 11) in avc_bridgeco_get_plug_type()
129 err = -EIO; in avc_bridgeco_get_plug_type()
131 err = -ENOSYS; in avc_bridgeco_get_plug_type()
133 err = -EINVAL; in avc_bridgeco_get_plug_type()
135 err = -EAGAIN; in avc_bridgeco_get_plug_type()
136 if (err < 0) in avc_bridgeco_get_plug_type()
140 err = 0; in avc_bridgeco_get_plug_type()
143 return err; in avc_bridgeco_get_plug_type()
150 int err; in avc_bridgeco_get_plug_ch_count() local
159 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_ch_count()
162 if (err < 0) in avc_bridgeco_get_plug_ch_count()
164 else if (err < 11) in avc_bridgeco_get_plug_ch_count()
165 err = -EIO; in avc_bridgeco_get_plug_ch_count()
167 err = -ENOSYS; in avc_bridgeco_get_plug_ch_count()
169 err = -EINVAL; in avc_bridgeco_get_plug_ch_count()
171 err = -EAGAIN; in avc_bridgeco_get_plug_ch_count()
172 if (err < 0) in avc_bridgeco_get_plug_ch_count()
176 err = 0; in avc_bridgeco_get_plug_ch_count()
179 return err; in avc_bridgeco_get_plug_ch_count()
186 int err; in avc_bridgeco_get_plug_ch_pos() local
191 err = fcp_avc_transaction(unit, buf, 12, buf, 256, in avc_bridgeco_get_plug_ch_pos()
194 if (err < 0) in avc_bridgeco_get_plug_ch_pos()
196 else if (err < 11) in avc_bridgeco_get_plug_ch_pos()
197 err = -EIO; in avc_bridgeco_get_plug_ch_pos()
199 err = -ENOSYS; in avc_bridgeco_get_plug_ch_pos()
201 err = -EINVAL; in avc_bridgeco_get_plug_ch_pos()
203 err = -EAGAIN; in avc_bridgeco_get_plug_ch_pos()
204 if (err < 0) in avc_bridgeco_get_plug_ch_pos()
208 memmove(buf, buf + 10, err - 10); in avc_bridgeco_get_plug_ch_pos()
209 err = 0; in avc_bridgeco_get_plug_ch_pos()
211 return err; in avc_bridgeco_get_plug_ch_pos()
219 int err; in avc_bridgeco_get_plug_section_type() local
230 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_section_type()
233 if (err < 0) in avc_bridgeco_get_plug_section_type()
235 else if (err < 12) in avc_bridgeco_get_plug_section_type()
236 err = -EIO; in avc_bridgeco_get_plug_section_type()
238 err = -ENOSYS; in avc_bridgeco_get_plug_section_type()
240 err = -EINVAL; in avc_bridgeco_get_plug_section_type()
242 err = -EAGAIN; in avc_bridgeco_get_plug_section_type()
243 if (err < 0) in avc_bridgeco_get_plug_section_type()
247 err = 0; in avc_bridgeco_get_plug_section_type()
250 return err; in avc_bridgeco_get_plug_section_type()
256 int err; in avc_bridgeco_get_plug_input() local
266 err = fcp_avc_transaction(unit, buf, 16, buf, 16, in avc_bridgeco_get_plug_input()
269 if (err < 0) in avc_bridgeco_get_plug_input()
271 else if (err < 16) in avc_bridgeco_get_plug_input()
272 err = -EIO; in avc_bridgeco_get_plug_input()
274 err = -ENOSYS; in avc_bridgeco_get_plug_input()
276 err = -EINVAL; in avc_bridgeco_get_plug_input()
278 err = -EAGAIN; in avc_bridgeco_get_plug_input()
279 if (err < 0) in avc_bridgeco_get_plug_input()
283 err = 0; in avc_bridgeco_get_plug_input()
286 return err; in avc_bridgeco_get_plug_input()
293 int err; in avc_bridgeco_get_plug_strm_fmt() local
297 err = -EINVAL; in avc_bridgeco_get_plug_strm_fmt()
307 err = fcp_avc_transaction(unit, buf, 12, buf, *len, in avc_bridgeco_get_plug_strm_fmt()
310 if (err < 0) in avc_bridgeco_get_plug_strm_fmt()
312 else if (err < 12) in avc_bridgeco_get_plug_strm_fmt()
313 err = -EIO; in avc_bridgeco_get_plug_strm_fmt()
315 err = -ENOSYS; in avc_bridgeco_get_plug_strm_fmt()
317 err = -EINVAL; in avc_bridgeco_get_plug_strm_fmt()
319 err = -EAGAIN; in avc_bridgeco_get_plug_strm_fmt()
321 err = -EIO; in avc_bridgeco_get_plug_strm_fmt()
322 if (err < 0) in avc_bridgeco_get_plug_strm_fmt()
326 memmove(buf, buf + 11, err - 11); in avc_bridgeco_get_plug_strm_fmt()
327 *len = err - 11; in avc_bridgeco_get_plug_strm_fmt()
328 err = 0; in avc_bridgeco_get_plug_strm_fmt()
330 return err; in avc_bridgeco_get_plug_strm_fmt()