The shoshi (small shrine) built in graveyards or related places to enshrine ancestral souls is called reisha shrine, and the reisha shrine enshrining all the ancestors is called soreisha shrine.
祖先の霊を祀るために墓所や縁故の場所に小祠を設けたものを霊社、祖先の代々を合せた霊社を祖霊社と言った。