eal: modify device event process function