csky: replace definitions of __pXd_offset() with pXd_index()