Lines Matching +full:data +full:- +full:width

1 /* SPDX-License-Identifier: GPL-2.0+ */
14 * sandbox_sdl_init_display() - Set up SDL video ready for use
16 * @width: Window width in pixels
20 * @return 0 if OK, -ENODEV if no device, -EIO if SDL failed to initialize
21 * and -EPERM if the video failed to come up.
23 int sandbox_sdl_init_display(int width, int height, int log2_bpp);
26 * sandbox_sdl_sync() - Sync current U-Boot LCD frame buffer to SDL
32 * @return 0 if screen was updated, -ENODEV is there is no screen.
37 * sandbox_sdl_scan_keys() - scan for pressed keys
43 * @return number of keycodes found, 0 if none, -ENODEV if no keyboard
48 * sandbox_sdl_key_pressed() - check if a particular key is pressed
50 * @keycode: Keycode to check (KEY_... - see include/linux/input.h
51 * @return 0 if pressed, -ENOENT if not pressed. -ENODEV if keybord not
57 * sandbox_sdl_sound_play() - Play a sound
59 * @data: Data to play (typically 16-bit)
60 * @count: Number of bytes in data
62 int sandbox_sdl_sound_play(const void *data, uint count);
65 * sandbox_sdl_sound_stop() - stop playing a sound
67 * @return 0 if OK, -ENODEV if no sound is available
72 * sandbox_sdl_sound_init() - set up the sound system
76 * @return 0 if OK, -ENODEV if no sound is available
81 static inline int sandbox_sdl_init_display(int width, int height, in sandbox_sdl_init_display() argument
84 return -ENODEV; in sandbox_sdl_init_display()
89 return -ENODEV; in sandbox_sdl_sync()
94 return -ENODEV; in sandbox_sdl_scan_keys()
99 return -ENODEV; in sandbox_sdl_key_pressed()
104 return -ENODEV; in sandbox_sdl_sound_start()
107 int sandbox_sdl_sound_play(const void *data, uint count) in sandbox_sdl_sound_play() argument
109 return -ENODEV; in sandbox_sdl_sound_play()
114 return -ENODEV; in sandbox_sdl_sound_stop()
119 return -ENODEV; in sandbox_sdl_sound_init()