Lines Matching refs:err
71 int err = 0; in alloc_buffer() local
86 err = open_device(); in alloc_buffer()
87 if (err) in alloc_buffer()
88 return err; in alloc_buffer()
90 err = -errno; in alloc_buffer()
92 return err; in alloc_buffer()
98 err = -errno; in alloc_buffer()
102 return err; in alloc_buffer()
109 err = -errno; in alloc_buffer()
113 return err; in alloc_buffer()
133 int err = 0; in free_buffer() local
134 err = open_device(); in free_buffer()
135 if (err) in free_buffer()
136 return err; in free_buffer()
139 err = unmap_buffer(base, size, offset); in free_buffer()
141 return err; in free_buffer()
148 int err = 0; in map_buffer() local
152 err = open_device(); in map_buffer()
153 if (err) in map_buffer()
154 return err; in map_buffer()
160 err = -errno; in map_buffer()
167 return err; in map_buffer()
175 int err = 0; in unmap_buffer() local
177 err = -errno; in unmap_buffer()
181 return err; in unmap_buffer()
192 int err = 0; in clean_buffer() local
194 err = open_device(); in clean_buffer()
195 if (err) in clean_buffer()
196 return err; in clean_buffer()
200 err = -errno; in clean_buffer()
203 return err; in clean_buffer()
229 err = -errno; in clean_buffer()
234 return err; in clean_buffer()