Lines Matching refs:err
72 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()
130 int err = 0; in free_buffer() local
131 err = open_device(); in free_buffer()
132 if (err) in free_buffer()
133 return err; in free_buffer()
136 err = unmap_buffer(base, size, offset); in free_buffer()
138 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()
172 int err = 0; in unmap_buffer() local
174 err = -errno; in unmap_buffer()
178 return err; in unmap_buffer()
189 int err = 0; in clean_buffer() local
191 err = open_device(); in clean_buffer()
192 if (err) in clean_buffer()
193 return err; in clean_buffer()
197 err = -errno; in clean_buffer()
200 return err; in clean_buffer()
226 err = -errno; in clean_buffer()
231 return err; in clean_buffer()