جَاءَ أَبِي — رَأَيْتُ أَبِي — سَلَّمْتُ عَلَى أَبِي.
Translation: My father came; I saw my father; I greeted my father.
«أَبِي» functions as a subject, then an object, then a genitive noun across the three sentences.
Why the identical form? It is attached to first-person possessive yāʾ, so case is implicit/estimated rather than overtly marked in the regular six-noun pattern.
The ي in «أَبِي» is not the genitive case sign in every sentence; it is the possessive pronoun meaning “my”.