Lines Matching refs:elf
41 Elf * elf; in elf_flagdata() local
49 elf = scn->s_elf; in elf_flagdata()
51 READLOCKS(elf, scn) in elf_flagdata()
59 READUNLOCKS(elf, scn) in elf_flagdata()
65 elf_flagehdr(Elf * elf, Elf_Cmd cmd, unsigned flags) in elf_flagehdr() argument
68 if (elf == 0) in elf_flagehdr()
71 ELFWLOCK(elf) in elf_flagehdr()
72 rc = elf->ed_ehflags |= flags; in elf_flagehdr()
73 ELFUNLOCK(elf) in elf_flagehdr()
77 ELFWLOCK(elf) in elf_flagehdr()
78 rc = elf->ed_ehflags &= ~flags; in elf_flagehdr()
79 ELFUNLOCK(elf) in elf_flagehdr()
88 elf_flagelf(Elf * elf, Elf_Cmd cmd, unsigned flags) in elf_flagelf() argument
91 if (elf == 0) in elf_flagelf()
94 ELFWLOCK(elf) in elf_flagelf()
95 rc = elf->ed_uflags |= flags; in elf_flagelf()
96 ELFUNLOCK(elf) in elf_flagelf()
100 ELFWLOCK(elf) in elf_flagelf()
101 rc = elf->ed_uflags &= ~flags; in elf_flagelf()
102 ELFUNLOCK(elf) in elf_flagelf()
111 elf_flagphdr(Elf * elf, Elf_Cmd cmd, unsigned flags) in elf_flagphdr() argument
114 if (elf == 0) in elf_flagphdr()
117 ELFWLOCK(elf); in elf_flagphdr()
118 rc = elf->ed_phflags |= flags; in elf_flagphdr()
119 ELFUNLOCK(elf); in elf_flagphdr()
123 ELFWLOCK(elf); in elf_flagphdr()
124 rc = elf->ed_phflags &= ~flags; in elf_flagphdr()
125 ELFUNLOCK(elf); in elf_flagphdr()
137 Elf * elf; in elf_flagscn() local
142 elf = scn->s_elf; in elf_flagscn()
144 READLOCKS(elf, scn) in elf_flagscn()
146 READUNLOCKS(elf, scn) in elf_flagscn()
150 READLOCKS(elf, scn) in elf_flagscn()
152 READUNLOCKS(elf, scn) in elf_flagscn()
164 Elf * elf; in elf_flagshdr() local
168 elf = scn->s_elf; in elf_flagshdr()
170 READLOCKS(elf, scn) in elf_flagshdr()
172 READUNLOCKS(elf, scn) in elf_flagshdr()
176 READLOCKS(elf, scn) in elf_flagshdr()
178 READUNLOCKS(elf, scn) in elf_flagshdr()