Lines Matching refs:err
71 int err = 0; in alloc_buffer() local
92 err = open_device(); in alloc_buffer()
93 if (err) in alloc_buffer()
94 return err; in alloc_buffer()
96 err = -errno; in alloc_buffer()
98 return err; in alloc_buffer()
104 err = -errno; in alloc_buffer()
108 return err; in alloc_buffer()
115 err = -errno; in alloc_buffer()
119 return err; in alloc_buffer()
139 int err = 0; in free_buffer() local
140 err = open_device(); in free_buffer()
141 if (err) in free_buffer()
142 return err; in free_buffer()
145 err = unmap_buffer(base, size, offset); in free_buffer()
147 return err; in free_buffer()
154 int err = 0; in map_buffer() local
158 err = open_device(); in map_buffer()
159 if (err) in map_buffer()
160 return err; in map_buffer()
166 err = -errno; in map_buffer()
173 return err; in map_buffer()
181 int err = 0; in unmap_buffer() local
183 err = -errno; in unmap_buffer()
187 return err; in unmap_buffer()
198 int err = 0; in clean_buffer() local
200 err = open_device(); in clean_buffer()
201 if (err) in clean_buffer()
202 return err; in clean_buffer()
206 err = -errno; in clean_buffer()
209 return err; in clean_buffer()
235 err = -errno; in clean_buffer()
240 return err; in clean_buffer()