struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) ctrl->hpc_ctlr_handle; 
struct php_ctlr_state_s *php_ctlr = ctrl->hpc_ctlr_handle; 
static int hpc_check_cmd_status(struct controller *ctrl){	struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) ctrl->hpc_ctlr_handle;	u16 cmd_status;	int retval = 0;	DBG_ENTER_ROUTINE 		if (!ctrl->hpc_ctlr_handle) {		err("%s: Invalid HPC controller handle!\n", __FUNCTION__);		return -1;	}	cmd_status = readw(php_ctlr->creg + CMD_STATUS) & 0x000F;		switch (cmd_status >> 1) {	case 0:		retval = 0;		break;	case 1:		retval = SWITCH_OPEN;		err("%s: Switch opened!\n", __FUNCTION__);		break;	case 2:		retval = INVALID_CMD;		err("%s: Invalid HPC command!\n", __FUNCTION__);		break;	case 4:		retval = INVALID_SPEED_MODE;		err("%s: Invalid bus speed/mode!\n", __FUNCTION__);		break;	default:		retval = cmd_status;	}	DBG_LEAVE_ROUTINE 	return retval;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ee138334d5eb5ca662b2d69228420c1ccc051e0e/shpchp_hpc.c/buggy/drivers/pci/hotplug/shpchp_hpc.c