Lines Matching defs:bm
206 struct bio_mapping *bm;
211 bm = kmem_zalloc(sizeof(*bm), KM_SLEEP);
212 bm->bm_dev = dev;
213 bm->bm_ioctl = ioctl;
215 LIST_INSERT_HEAD(&bios, bm, bm_link);
223 struct bio_mapping *bm, *next;
226 for (bm = LIST_FIRST(&bios); bm != NULL; bm = next) {
227 next = LIST_NEXT(bm, bm_link);
229 if (dev == bm->bm_dev) {
230 LIST_REMOVE(bm, bm_link);
231 kmem_free(bm, sizeof(*bm));
240 struct bio_mapping *bm;
243 LIST_FOREACH(bm, &bios, bm_link) {
244 if (strcmp(name, device_xname(bm->bm_dev)) == 0) {
246 return bm;
256 struct bio_mapping *bm;
258 LIST_FOREACH(bm, &bios, bm_link)
259 if (bm == cookie)
268 struct bio_mapping *bm = cookie;
270 return bm->bm_ioctl(bm->bm_dev, cmd, addr);