Lines Matching refs:dr
552 struct macio_devres *dr = res; in maciom_release() local
557 if (dr->res_mask & (1 << i)) in maciom_release()
564 struct macio_devres *dr; in macio_enable_devres() local
566 dr = devres_find(&dev->ofdev.dev, maciom_release, NULL, NULL); in macio_enable_devres()
567 if (!dr) { in macio_enable_devres()
568 dr = devres_alloc(maciom_release, sizeof(*dr), GFP_KERNEL); in macio_enable_devres()
569 if (!dr) in macio_enable_devres()
572 return devres_get(&dev->ofdev.dev, dr, NULL, NULL) != NULL; in macio_enable_devres()
597 struct macio_devres *dr = find_macio_dr(dev); in macio_request_resource() local
607 if (dr && resource_no < 32) in macio_request_resource()
608 dr->res_mask |= 1 << resource_no; in macio_request_resource()
629 struct macio_devres *dr = find_macio_dr(dev); in macio_release_resource() local
635 if (dr && resource_no < 32) in macio_release_resource()
636 dr->res_mask &= ~(1 << resource_no); in macio_release_resource()