Lines Matching refs:res
145 int res; in ps3av_cmd_init() local
153 res = ps3av_do_pkt(PS3AV_CID_VIDEO_INIT, sizeof(video_init.send_hdr), in ps3av_cmd_init()
155 if (res < 0) in ps3av_cmd_init()
156 return res; in ps3av_cmd_init()
158 res = get_status(&video_init); in ps3av_cmd_init()
159 if (res) { in ps3av_cmd_init()
160 printk(KERN_ERR "PS3AV_CID_VIDEO_INIT: failed %x\n", res); in ps3av_cmd_init()
161 return res; in ps3av_cmd_init()
167 res = ps3av_do_pkt(PS3AV_CID_AUDIO_INIT, sizeof(audio_init.send_hdr), in ps3av_cmd_init()
169 if (res < 0) in ps3av_cmd_init()
170 return res; in ps3av_cmd_init()
172 res = get_status(&audio_init); in ps3av_cmd_init()
173 if (res) { in ps3av_cmd_init()
174 printk(KERN_ERR "PS3AV_CID_AUDIO_INIT: failed %x\n", res); in ps3av_cmd_init()
175 return res; in ps3av_cmd_init()
182 res = ps3av_do_pkt(PS3AV_CID_AV_INIT, sizeof(av_init), sizeof(av_init), in ps3av_cmd_init()
184 if (res < 0) in ps3av_cmd_init()
185 return res; in ps3av_cmd_init()
187 res = get_status(&av_init); in ps3av_cmd_init()
188 if (res) in ps3av_cmd_init()
189 printk(KERN_ERR "PS3AV_CID_AV_INIT: failed %x\n", res); in ps3av_cmd_init()
191 return res; in ps3av_cmd_init()
196 int res; in ps3av_cmd_fin() local
201 res = ps3av_do_pkt(PS3AV_CID_AV_FIN, sizeof(av_fin.send_hdr), in ps3av_cmd_fin()
203 if (res < 0) in ps3av_cmd_fin()
204 return res; in ps3av_cmd_fin()
206 res = get_status(&av_fin); in ps3av_cmd_fin()
207 if (res) in ps3av_cmd_fin()
208 printk(KERN_ERR "PS3AV_CID_AV_FIN: failed %x\n", res); in ps3av_cmd_fin()
210 return res; in ps3av_cmd_fin()
215 int i, send_len, res; in ps3av_cmd_av_video_mute() local
229 res = ps3av_do_pkt(PS3AV_CID_AV_VIDEO_MUTE, send_len, in ps3av_cmd_av_video_mute()
231 if (res < 0) in ps3av_cmd_av_video_mute()
232 return res; in ps3av_cmd_av_video_mute()
234 res = get_status(&av_video_mute); in ps3av_cmd_av_video_mute()
235 if (res) in ps3av_cmd_av_video_mute()
236 printk(KERN_ERR "PS3AV_CID_AV_VIDEO_MUTE: failed %x\n", res); in ps3av_cmd_av_video_mute()
238 return res; in ps3av_cmd_av_video_mute()
243 int res; in ps3av_cmd_av_video_disable_sig() local
249 res = ps3av_do_pkt(PS3AV_CID_AV_VIDEO_DISABLE_SIG, in ps3av_cmd_av_video_disable_sig()
252 if (res < 0) in ps3av_cmd_av_video_disable_sig()
253 return res; in ps3av_cmd_av_video_disable_sig()
255 res = get_status(&av_video_sig); in ps3av_cmd_av_video_disable_sig()
256 if (res) in ps3av_cmd_av_video_disable_sig()
259 res, port); in ps3av_cmd_av_video_disable_sig()
261 return res; in ps3av_cmd_av_video_disable_sig()
266 int res; in ps3av_cmd_av_tv_mute() local
273 res = ps3av_do_pkt(PS3AV_CID_AV_TV_MUTE, sizeof(tv_mute), in ps3av_cmd_av_tv_mute()
275 if (res < 0) in ps3av_cmd_av_tv_mute()
276 return res; in ps3av_cmd_av_tv_mute()
278 res = get_status(&tv_mute); in ps3av_cmd_av_tv_mute()
279 if (res) in ps3av_cmd_av_tv_mute()
281 res, avport); in ps3av_cmd_av_tv_mute()
283 return res; in ps3av_cmd_av_tv_mute()
288 int res; in ps3av_cmd_enable_event() local
295 res = ps3av_do_pkt(PS3AV_CID_AV_ENABLE_EVENT, sizeof(av_event), in ps3av_cmd_enable_event()
297 if (res < 0) in ps3av_cmd_enable_event()
298 return res; in ps3av_cmd_enable_event()
300 res = get_status(&av_event); in ps3av_cmd_enable_event()
301 if (res) in ps3av_cmd_enable_event()
302 printk(KERN_ERR "PS3AV_CID_AV_ENABLE_EVENT: failed %x\n", res); in ps3av_cmd_enable_event()
304 return res; in ps3av_cmd_enable_event()
309 int res; in ps3av_cmd_av_hdmi_mode() local
315 res = ps3av_do_pkt(PS3AV_CID_AV_HDMI_MODE, sizeof(hdmi_mode), in ps3av_cmd_av_hdmi_mode()
317 if (res < 0) in ps3av_cmd_av_hdmi_mode()
318 return res; in ps3av_cmd_av_hdmi_mode()
320 res = get_status(&hdmi_mode); in ps3av_cmd_av_hdmi_mode()
321 if (res && res != PS3AV_STATUS_UNSUPPORTED_HDMI_MODE) in ps3av_cmd_av_hdmi_mode()
322 printk(KERN_ERR "PS3AV_CID_AV_HDMI_MODE: failed %x\n", res); in ps3av_cmd_av_hdmi_mode()
324 return res; in ps3av_cmd_av_hdmi_mode()
411 int res; in ps3av_cmd_video_format_black() local
423 res = ps3av_do_pkt(PS3AV_CID_VIDEO_FORMAT, sizeof(video_format), in ps3av_cmd_video_format_black()
425 if (res < 0) in ps3av_cmd_video_format_black()
426 return res; in ps3av_cmd_video_format_black()
428 res = get_status(&video_format); in ps3av_cmd_video_format_black()
429 if (res) in ps3av_cmd_video_format_black()
430 printk(KERN_ERR "PS3AV_CID_VIDEO_FORMAT: failed %x\n", res); in ps3av_cmd_video_format_black()
432 return res; in ps3av_cmd_video_format_black()
438 int i, res; in ps3av_cmd_av_audio_mute() local
451 res = ps3av_do_pkt(PS3AV_CID_AV_AUDIO_MUTE, in ps3av_cmd_av_audio_mute()
455 if (res < 0) in ps3av_cmd_av_audio_mute()
456 return res; in ps3av_cmd_av_audio_mute()
458 res = get_status(&av_audio_mute); in ps3av_cmd_av_audio_mute()
459 if (res) in ps3av_cmd_av_audio_mute()
460 printk(KERN_ERR "PS3AV_CID_AV_AUDIO_MUTE: failed %x\n", res); in ps3av_cmd_av_audio_mute()
462 return res; in ps3av_cmd_av_audio_mute()
785 int res; in ps3av_cmd_audio_mode() local
787 res = ps3av_do_pkt(PS3AV_CID_AUDIO_MODE, sizeof(*audio_mode), in ps3av_cmd_audio_mode()
789 if (res < 0) in ps3av_cmd_audio_mode()
790 return res; in ps3av_cmd_audio_mode()
792 res = get_status(audio_mode); in ps3av_cmd_audio_mode()
793 if (res) in ps3av_cmd_audio_mode()
794 printk(KERN_ERR "PS3AV_CID_AUDIO_MODE: failed %x\n", res); in ps3av_cmd_audio_mode()
796 return res; in ps3av_cmd_audio_mode()
801 int i, res; in ps3av_cmd_audio_mute() local
814 res = ps3av_do_pkt(PS3AV_CID_AUDIO_MUTE, in ps3av_cmd_audio_mute()
818 if (res < 0) in ps3av_cmd_audio_mute()
819 return res; in ps3av_cmd_audio_mute()
821 res = get_status(&audio_mute); in ps3av_cmd_audio_mute()
822 if (res) in ps3av_cmd_audio_mute()
823 printk(KERN_ERR "PS3AV_CID_AUDIO_MUTE: failed %x\n", res); in ps3av_cmd_audio_mute()
825 return res; in ps3av_cmd_audio_mute()
830 int res; in ps3av_cmd_audio_active() local
839 res = ps3av_do_pkt(cid, sizeof(audio_active), sizeof(audio_active), in ps3av_cmd_audio_active()
841 if (res < 0) in ps3av_cmd_audio_active()
842 return res; in ps3av_cmd_audio_active()
844 res = get_status(&audio_active); in ps3av_cmd_audio_active()
845 if (res) in ps3av_cmd_audio_active()
847 res); in ps3av_cmd_audio_active()
849 return res; in ps3av_cmd_audio_active()
854 int res; in ps3av_cmd_avb_param() local
859 res = ps3av_do_pkt(PS3AV_CID_AVB_PARAM, send_len, sizeof(*avb), in ps3av_cmd_avb_param()
861 if (res < 0) in ps3av_cmd_avb_param()
864 res = get_status(avb); in ps3av_cmd_avb_param()
865 if (res) in ps3av_cmd_avb_param()
867 res); in ps3av_cmd_avb_param()
871 return res; in ps3av_cmd_avb_param()
876 int res; in ps3av_cmd_av_get_hw_conf() local
880 res = ps3av_do_pkt(PS3AV_CID_AV_GET_HW_CONF, sizeof(hw_conf->send_hdr), in ps3av_cmd_av_get_hw_conf()
882 if (res < 0) in ps3av_cmd_av_get_hw_conf()
883 return res; in ps3av_cmd_av_get_hw_conf()
885 res = get_status(hw_conf); in ps3av_cmd_av_get_hw_conf()
886 if (res) in ps3av_cmd_av_get_hw_conf()
887 printk(KERN_ERR "PS3AV_CID_AV_GET_HW_CONF: failed %x\n", res); in ps3av_cmd_av_get_hw_conf()
889 return res; in ps3av_cmd_av_get_hw_conf()
895 int res; in ps3av_cmd_video_get_monitor_info() local
900 res = ps3av_do_pkt(PS3AV_CID_AV_GET_MONITOR_INFO, in ps3av_cmd_video_get_monitor_info()
904 if (res < 0) in ps3av_cmd_video_get_monitor_info()
905 return res; in ps3av_cmd_video_get_monitor_info()
907 res = get_status(info); in ps3av_cmd_video_get_monitor_info()
908 if (res) in ps3av_cmd_video_get_monitor_info()
910 res); in ps3av_cmd_video_get_monitor_info()
912 return res; in ps3av_cmd_video_get_monitor_info()