It wasn't until he finally became aware of his own name being shouted that he looked up.
When he finally realised it was his name being shouted, he looked up.
His name was not being shouted as he wasn't looking up.