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()
128 int err = 0; in free_buffer() local
129 err = open_device(); in free_buffer()
130 if (err) in free_buffer()
131 return err; in free_buffer()
134 err = unmap_buffer(base, size, offset); in free_buffer()
136 return err; in free_buffer()
141 int err = 0; in map_buffer() local
145 err = open_device(); in map_buffer()
146 if (err) in map_buffer()
147 return err; in map_buffer()
153 err = -errno; in map_buffer()
160 return err; in map_buffer()
166 int err = 0; in unmap_buffer() local
168 err = -errno; in unmap_buffer()
172 return err; in unmap_buffer()
180 int err = 0; in clean_buffer() local
182 err = open_device(); in clean_buffer()
183 if (err) in clean_buffer()
184 return err; in clean_buffer()
188 err = -errno; in clean_buffer()
191 return err; in clean_buffer()
217 err = -errno; in clean_buffer()
222 return err; in clean_buffer()