Lines Matching refs:err
68 int err = 0; in alloc_buffer() local
83 err = open_device(); in alloc_buffer()
84 if (err) in alloc_buffer()
85 return err; in alloc_buffer()
87 err = -errno; in alloc_buffer()
89 return err; in alloc_buffer()
95 err = -errno; in alloc_buffer()
99 return err; in alloc_buffer()
106 err = -errno; in alloc_buffer()
110 return err; in alloc_buffer()
132 int err = 0; in free_buffer() local
133 err = open_device(); in free_buffer()
134 if (err) in free_buffer()
135 return err; in free_buffer()
138 err = unmap_buffer(base, size, offset); in free_buffer()
140 return err; in free_buffer()
145 int err = 0; in map_buffer() local
149 err = open_device(); in map_buffer()
150 if (err) in map_buffer()
151 return err; in map_buffer()
157 err = -errno; in map_buffer()
164 return err; in map_buffer()
170 int err = 0; in unmap_buffer() local
172 err = -errno; in unmap_buffer()
176 return err; in unmap_buffer()
184 int err = 0; in clean_buffer() local
186 err = open_device(); in clean_buffer()
187 if (err) in clean_buffer()
188 return err; in clean_buffer()
192 err = -errno; in clean_buffer()
195 return err; in clean_buffer()
220 err = -errno; in clean_buffer()
225 return err; in clean_buffer()