Lines Matching full:osd
6 * based on the gdsys osd driver, which is
18 /* Container for selected OSD device */
22 * cmd_osd_set_osd_num() - Set the OSD selected for operation
24 * Set the OSD device, which will be used by all subsequent OSD commands.
26 * Devices are identified by their uclass sequence number (as listed by 'osd
29 * @osdnum: The OSD device to be selected, identified by its sequence number.
34 struct udevice *osd; in cmd_osd_set_osd_num() local
37 res = uclass_get_device_by_seq(UCLASS_VIDEO_OSD, osdnum, &osd); in cmd_osd_set_osd_num()
39 printf("%s: No OSD %u (err = %d)\n", __func__, osdnum, res); in cmd_osd_set_osd_num()
42 osd_cur = osd; in cmd_osd_set_osd_num()
48 * osd_get_osd_cur() - Get the selected OSD device
50 * Get the OSD device that is used by all OSD commands.
52 * @osdp: Pointer to structure that will receive the currently selected OSD
59 puts("No osd selected\n"); in osd_get_osd_cur()
68 * show_osd() - Display information about a OSD device
73 * @osd: OSD device to print information for
75 static void show_osd(struct udevice *osd) in show_osd() argument
77 printf("OSD %d:\t%s", osd->req_seq, osd->name); in show_osd()
78 if (device_active(osd)) in show_osd()
79 printf(" (active %d)", osd->seq); in show_osd()
97 puts("No osd selected\n"); in do_osd_write()
146 puts("No osd selected\n"); in do_osd_print()
157 printf("Could not print string to osd %s\n", osd_cur->name); in do_osd_print()
174 puts("No osd selected\n"); in do_osd_size()
183 printf("Could not set size on osd %s\n", osd_cur->name); in do_osd_size()
193 struct udevice *osd; in do_show_osd() local
202 printf("Error while getting OSD uclass (err=%d)\n", in do_show_osd()
207 uclass_foreach_dev(osd, uc) in do_show_osd()
208 show_osd(osd); in do_show_osd()
212 /* show specific OSD */ in do_show_osd()
215 res = uclass_get_device_by_seq(UCLASS_VIDEO_OSD, i, &osd); in do_show_osd()
217 printf("Invalid osd %d: err=%d\n", i, res); in do_show_osd()
220 show_osd(osd); in do_show_osd()
234 struct udevice *osd; in do_osd_num() local
236 if (!osd_get_osd_cur(&osd)) in do_osd_num()
237 osd_no = osd->seq; in do_osd_num()
240 printf("Current osd is %d\n", osd_no); in do_osd_num()
243 printf("Setting osd to %d\n", osd_no); in do_osd_num()
247 printf("Failure changing osd number (err = %d)\n", res); in do_osd_num()
268 /* Strip off leading 'osd' command argument */ in do_osd()
281 "show - show OSD info\n"
282 "osd dev [dev] - show or set current OSD\n"
283 …"write [pos_x] [pos_y] [buffer] [count] - write 8-bit hex encoded buffer to osd memory at a given …
284 …t] - write ASCII buffer (given by text data and driver-specific color information) to osd memory\n"
285 "size [size_x] [size_y] - set OSD XY size in characters\n";
288 osd, 6, 1, do_osd,
289 "OSD sub-system",