Lines Matching refs:hvterm_priv0
81 static struct hvterm_priv hvterm_priv0; variable
262 if (hvterm_privs[0] == &hvterm_priv0 && in hvc_vio_probe()
263 vdev->unit_address == hvterm_priv0.termno) { in hvc_vio_probe()
303 if (hvterm_privs[termno] != &hvterm_priv0) in hvc_vio_remove()
342 switch(hvterm_priv0.proto) { in udbg_hvc_putc()
358 switch(hvterm_priv0.proto) { in udbg_hvc_getc_poll()
415 hvterm_priv0.termno = *termno; in hvc_vio_init_early()
416 spin_lock_init(&hvterm_priv0.buf_lock); in hvc_vio_init_early()
417 hvterm_privs[0] = &hvterm_priv0; in hvc_vio_init_early()
421 hvterm_priv0.proto = HV_PROTOCOL_RAW; in hvc_vio_init_early()
425 hvterm_priv0.proto = HV_PROTOCOL_HVSI; in hvc_vio_init_early()
427 hvsilib_init(&hvterm_priv0.hvsi, hvc_get_chars, hvc_put_chars, in hvc_vio_init_early()
428 hvterm_priv0.termno, 1); in hvc_vio_init_early()
430 hvsilib_establish(&hvterm_priv0.hvsi); in hvc_vio_init_early()
440 if (hvterm_priv0.proto == HV_PROTOCOL_HVSI) in hvc_vio_init_early()
455 hvterm_privs[0] = &hvterm_priv0; in udbg_init_debug_lpar()
456 hvterm_priv0.termno = 0; in udbg_init_debug_lpar()
457 hvterm_priv0.proto = HV_PROTOCOL_RAW; in udbg_init_debug_lpar()
458 spin_lock_init(&hvterm_priv0.buf_lock); in udbg_init_debug_lpar()
468 hvterm_privs[0] = &hvterm_priv0; in udbg_init_debug_lpar_hvsi()
469 hvterm_priv0.termno = CONFIG_PPC_EARLY_DEBUG_HVSI_VTERMNO; in udbg_init_debug_lpar_hvsi()
470 hvterm_priv0.proto = HV_PROTOCOL_HVSI; in udbg_init_debug_lpar_hvsi()
471 spin_lock_init(&hvterm_priv0.buf_lock); in udbg_init_debug_lpar_hvsi()
475 hvsilib_init(&hvterm_priv0.hvsi, hvc_get_chars, hvc_put_chars, in udbg_init_debug_lpar_hvsi()
476 hvterm_priv0.termno, 1); in udbg_init_debug_lpar_hvsi()
477 hvsilib_establish(&hvterm_priv0.hvsi); in udbg_init_debug_lpar_hvsi()