Use function('<SID>xxx') instead of function('s:xxx').