Lines Matching refs:fbl

108           struct fbdevlist *fbl = &fblist;  in fb_unblank()  local
110 while (fbl != NULL && fbl->fb_dev != NULL) { in fb_unblank()
111 (*fbl->fb_dev->fb_driver->fbd_unblank)(fbl->fb_dev->fb_device); in fb_unblank()
112 fbl = fbl->fb_next; in fb_unblank()
163 struct fbdevlist *fbl = &fblist; in fb_attach() local
171 while (fbl->fb_next != NULL) { in fb_attach()
172 fbl = fbl->fb_next; in fb_attach()
175 fbl->fb_next = malloc(sizeof (struct fbdevlist), in fb_attach()
177 fbl = fbl->fb_next; in fb_attach()
179 fbl->fb_dev = fblist.fb_dev; in fb_attach()
180 fbl->fb_next = NULL; in fb_attach()
181 aprint_normal_dev(fbl->fb_dev->fb_device, in fb_attach()
183 aprint_normal_dev(fbl->fb_dev->fb_device, in fb_attach()
191 while (fbl->fb_next != NULL) { in fb_attach()
192 fbl = fbl->fb_next; in fb_attach()
195 fbl->fb_next = malloc(sizeof (struct fbdevlist), in fb_attach()
197 fbl = fbl->fb_next; in fb_attach()
200 fbl->fb_dev = fb; in fb_attach()
201 fbl->fb_next = NULL; in fb_attach()
202 aprint_normal_dev(fbl->fb_dev->fb_device, in fb_attach()
211 struct fbdevlist *fbl = &fblist; in fbopen() local
214 while (unit-- && fbl != NULL) in fbopen()
215 fbl = fbl->fb_next; in fbopen()
216 if (fbl == NULL || fbl->fb_dev == NULL) in fbopen()
219 nunit = device_unit(fbl->fb_dev->fb_device); in fbopen()
220 return (fbl->fb_dev->fb_driver->fbd_open)(makedev(0, nunit), flags, in fbopen()
228 struct fbdevlist *fbl = &fblist; in fbclose() local
231 while (unit-- && fbl != NULL) in fbclose()
232 fbl = fbl->fb_next; in fbclose()
233 if (fbl == NULL || fbl->fb_dev == NULL) in fbclose()
236 nunit = device_unit(fbl->fb_dev->fb_device); in fbclose()
237 return (fbl->fb_dev->fb_driver->fbd_close)(makedev(0, nunit), flags, in fbclose()
245 struct fbdevlist *fbl = &fblist; in fbioctl() local
248 while (unit-- && fbl != NULL) in fbioctl()
249 fbl = fbl->fb_next; in fbioctl()
250 if (fbl == NULL || fbl->fb_dev == NULL) in fbioctl()
253 nunit = device_unit(fbl->fb_dev->fb_device); in fbioctl()
254 return (fbl->fb_dev->fb_driver->fbd_ioctl)(makedev(0, nunit), cmd, in fbioctl()
262 struct fbdevlist *fbl = &fblist; in fbpoll() local
265 while (unit-- && fbl != NULL) in fbpoll()
266 fbl = fbl->fb_next; in fbpoll()
267 if (fbl == NULL || fbl->fb_dev == NULL) in fbpoll()
270 nunit = device_unit(fbl->fb_dev->fb_device); in fbpoll()
271 return (fbl->fb_dev->fb_driver->fbd_poll)(makedev(0, nunit), events, in fbpoll()
279 struct fbdevlist *fbl = &fblist; in fbkqfilter() local
282 while (unit-- && fbl != NULL) in fbkqfilter()
283 fbl = fbl->fb_next; in fbkqfilter()
284 if (fbl == NULL || fbl->fb_dev == NULL) in fbkqfilter()
287 nunit = device_unit(fbl->fb_dev->fb_device); in fbkqfilter()
288 return (fbl->fb_dev->fb_driver->fbd_kqfilter)(makedev(0, nunit), kn); in fbkqfilter()
295 struct fbdevlist *fbl = &fblist; in fbmmap() local
298 while (unit-- && fbl != NULL) in fbmmap()
299 fbl = fbl->fb_next; in fbmmap()
300 if (fbl == NULL || fbl->fb_dev == NULL) in fbmmap()
303 nunit = device_unit(fbl->fb_dev->fb_device); in fbmmap()
304 paddr_t (*map)(dev_t, off_t, int) = fbl->fb_dev->fb_driver->fbd_mmap; in fbmmap()