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_pos() local
155 err = fcp_avc_transaction(unit, buf, 12, buf, 256, in avc_bridgeco_get_plug_ch_pos()
158 if (err < 0) in avc_bridgeco_get_plug_ch_pos()
160 else if (err < 11) in avc_bridgeco_get_plug_ch_pos()
161 err = -EIO; in avc_bridgeco_get_plug_ch_pos()
163 err = -ENOSYS; in avc_bridgeco_get_plug_ch_pos()
165 err = -EINVAL; in avc_bridgeco_get_plug_ch_pos()
167 err = -EAGAIN; in avc_bridgeco_get_plug_ch_pos()
168 if (err < 0) in avc_bridgeco_get_plug_ch_pos()
172 memmove(buf, buf + 10, err - 10); in avc_bridgeco_get_plug_ch_pos()
173 err = 0; in avc_bridgeco_get_plug_ch_pos()
175 return err; in avc_bridgeco_get_plug_ch_pos()
183 int err; in avc_bridgeco_get_plug_section_type() local
194 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_section_type()
197 if (err < 0) in avc_bridgeco_get_plug_section_type()
199 else if (err < 12) in avc_bridgeco_get_plug_section_type()
200 err = -EIO; in avc_bridgeco_get_plug_section_type()
202 err = -ENOSYS; in avc_bridgeco_get_plug_section_type()
204 err = -EINVAL; in avc_bridgeco_get_plug_section_type()
206 err = -EAGAIN; in avc_bridgeco_get_plug_section_type()
207 if (err < 0) in avc_bridgeco_get_plug_section_type()
211 err = 0; in avc_bridgeco_get_plug_section_type()
214 return err; in avc_bridgeco_get_plug_section_type()
220 int err; in avc_bridgeco_get_plug_input() local
230 err = fcp_avc_transaction(unit, buf, 16, buf, 16, in avc_bridgeco_get_plug_input()
233 if (err < 0) in avc_bridgeco_get_plug_input()
235 else if (err < 16) in avc_bridgeco_get_plug_input()
236 err = -EIO; in avc_bridgeco_get_plug_input()
238 err = -ENOSYS; in avc_bridgeco_get_plug_input()
240 err = -EINVAL; in avc_bridgeco_get_plug_input()
242 err = -EAGAIN; in avc_bridgeco_get_plug_input()
243 if (err < 0) in avc_bridgeco_get_plug_input()
247 err = 0; in avc_bridgeco_get_plug_input()
250 return err; in avc_bridgeco_get_plug_input()
257 int err; in avc_bridgeco_get_plug_strm_fmt() local
261 err = -EINVAL; in avc_bridgeco_get_plug_strm_fmt()
271 err = fcp_avc_transaction(unit, buf, 12, buf, *len, in avc_bridgeco_get_plug_strm_fmt()
274 if (err < 0) in avc_bridgeco_get_plug_strm_fmt()
276 else if (err < 12) in avc_bridgeco_get_plug_strm_fmt()
277 err = -EIO; in avc_bridgeco_get_plug_strm_fmt()
279 err = -ENOSYS; in avc_bridgeco_get_plug_strm_fmt()
281 err = -EINVAL; in avc_bridgeco_get_plug_strm_fmt()
283 err = -EAGAIN; in avc_bridgeco_get_plug_strm_fmt()
285 err = -EIO; in avc_bridgeco_get_plug_strm_fmt()
286 if (err < 0) in avc_bridgeco_get_plug_strm_fmt()
290 memmove(buf, buf + 11, err - 11); in avc_bridgeco_get_plug_strm_fmt()
291 *len = err - 11; in avc_bridgeco_get_plug_strm_fmt()
292 err = 0; in avc_bridgeco_get_plug_strm_fmt()
294 return err; in avc_bridgeco_get_plug_strm_fmt()