Lines Matching refs:index
149 static u8 i2c_ctrl_read (struct controller *ctlr_ptr, void __iomem *WPGBbar, u8 index) in i2c_ctrl_read() argument
158 debug_polling ("%s - Entry WPGBbar[%p] index[%x] \n", __func__, WPGBbar, index); in i2c_ctrl_read()
172 data |= (unsigned long)index; in i2c_ctrl_read()
177 ultemp = (unsigned long)index; in i2c_ctrl_read()
245 debug_polling ("%s - Exit index[%x] status[%x]\n", __func__, index, status); in i2c_ctrl_read()
257 static u8 i2c_ctrl_write (struct controller *ctlr_ptr, void __iomem *WPGBbar, u8 index, u8 cmd) in i2c_ctrl_write() argument
266 debug_polling ("%s - Entry WPGBbar[%p] index[%x] cmd[%x]\n", __func__, WPGBbar, index, cmd); in i2c_ctrl_write()
283 data |= (unsigned long)index; in i2c_ctrl_write()
288 ultemp = (unsigned long)index; in i2c_ctrl_write()
447 static u8 hpc_writecmdtoindex (u8 cmd, u8 index) in hpc_writecmdtoindex() argument
467 rc = index; in hpc_writecmdtoindex()
475 rc = index + WPG_1ST_BUS_INDEX - 1; in hpc_writecmdtoindex()
493 static u8 hpc_readcmdtoindex (u8 cmd, u8 index) in hpc_readcmdtoindex() argument
503 rc = index; in hpc_readcmdtoindex()
506 rc = index + WPG_1ST_EXTSLOT_INDEX; in hpc_readcmdtoindex()
509 rc = index + WPG_1ST_BUS_INDEX - 1; in hpc_readcmdtoindex()
541 u8 index, status; in ibmphp_hpc_readslot() local
561 index = (u8) busindex; in ibmphp_hpc_readslot()
563 index = pslot->ctlr_index; in ibmphp_hpc_readslot()
565 index = hpc_readcmdtoindex (cmd, index); in ibmphp_hpc_readslot()
567 if (index == HPC_ERROR) { in ibmphp_hpc_readslot()
592 pslot->status = ctrl_read (ctlr_ptr, wpg_bbar, index); in ibmphp_hpc_readslot()
596 pslot->ext_status = ctrl_read (ctlr_ptr, wpg_bbar, index + WPG_1ST_EXTSLOT_INDEX); in ibmphp_hpc_readslot()
602 *pstatus = ctrl_read (ctlr_ptr, wpg_bbar, index); in ibmphp_hpc_readslot()
607 *pstatus = ctrl_read (ctlr_ptr, wpg_bbar, index); in ibmphp_hpc_readslot()
616 pslot->busstatus = ctrl_read (ctlr_ptr, wpg_bbar, index); in ibmphp_hpc_readslot()
619 *pstatus = ctrl_read (ctlr_ptr, wpg_bbar, index); in ibmphp_hpc_readslot()
622 *pstatus = ctrl_read (ctlr_ptr, wpg_bbar, index); in ibmphp_hpc_readslot()
626 *pstatus = ctrl_read (ctlr_ptr, wpg_bbar, index); in ibmphp_hpc_readslot()
633 index = pslot->ctlr_index; in ibmphp_hpc_readslot()
637 pslot->status = ctrl_read (ctlr_ptr, wpg_bbar, index); in ibmphp_hpc_readslot()
643 index + WPG_1ST_EXTSLOT_INDEX); in ibmphp_hpc_readslot()
679 u8 index, status; in ibmphp_hpc_writeslot() local
701 index = (u8) busindex; in ibmphp_hpc_writeslot()
703 index = pslot->ctlr_index; in ibmphp_hpc_writeslot()
705 index = hpc_writecmdtoindex (cmd, index); in ibmphp_hpc_writeslot()
707 if (index == HPC_ERROR) { in ibmphp_hpc_writeslot()
733 ctrl_write (ctlr_ptr, wpg_bbar, index, cmd); in ibmphp_hpc_writeslot()