Lines Matching refs:opal_lpc_chip_id
22 static int opal_lpc_chip_id = -1; variable
29 if (opal_lpc_chip_id < 0 || port > 0xffff) in opal_lpc_inb()
31 rc = opal_lpc_read(opal_lpc_chip_id, OPAL_LPC_IO, port, &data, 1); in opal_lpc_inb()
40 if (opal_lpc_chip_id < 0 || port > 0xfffe) in __opal_lpc_inw()
44 rc = opal_lpc_read(opal_lpc_chip_id, OPAL_LPC_IO, port, &data, 2); in __opal_lpc_inw()
57 if (opal_lpc_chip_id < 0 || port > 0xfffc) in __opal_lpc_inl()
64 rc = opal_lpc_read(opal_lpc_chip_id, OPAL_LPC_IO, port, &data, 4); in __opal_lpc_inl()
75 if (opal_lpc_chip_id < 0 || port > 0xffff) in opal_lpc_outb()
77 opal_lpc_write(opal_lpc_chip_id, OPAL_LPC_IO, port, val, 1); in opal_lpc_outb()
82 if (opal_lpc_chip_id < 0 || port > 0xfffe) in __opal_lpc_outw()
89 opal_lpc_write(opal_lpc_chip_id, OPAL_LPC_IO, port, val, 2); in __opal_lpc_outw()
99 if (opal_lpc_chip_id < 0 || port > 0xfffc) in __opal_lpc_outl()
108 opal_lpc_write(opal_lpc_chip_id, OPAL_LPC_IO, port, val, 4); in __opal_lpc_outl()
210 rc = opal_lpc_read(opal_lpc_chip_id, lpc->lpc_type, pos, in lpc_debug_read()
334 rc = opal_lpc_write(opal_lpc_chip_id, lpc->lpc_type, pos, in lpc_debug_write()
371 if (opal_lpc_chip_id < 0) in opal_lpc_init_debugfs()
398 opal_lpc_chip_id = of_get_ibm_chip_id(np); in opal_lpc_init()
402 if (opal_lpc_chip_id < 0) in opal_lpc_init()
408 opal_lpc_chip_id); in opal_lpc_init()
412 opal_lpc_chip_id); in opal_lpc_init()