Lines Matching refs:resource_no
590 int macio_request_resource(struct macio_dev *dev, int resource_no, in macio_request_resource() argument
595 if (macio_resource_len(dev, resource_no) == 0) in macio_request_resource()
598 if (!request_mem_region(macio_resource_start(dev, resource_no), in macio_request_resource()
599 macio_resource_len(dev, resource_no), in macio_request_resource()
603 if (dr && resource_no < 32) in macio_request_resource()
604 dr->res_mask |= 1 << resource_no; in macio_request_resource()
611 resource_no, in macio_request_resource()
612 macio_resource_len(dev, resource_no), in macio_request_resource()
613 macio_resource_start(dev, resource_no), in macio_request_resource()
623 void macio_release_resource(struct macio_dev *dev, int resource_no) in macio_release_resource() argument
627 if (macio_resource_len(dev, resource_no) == 0) in macio_release_resource()
629 release_mem_region(macio_resource_start(dev, resource_no), in macio_release_resource()
630 macio_resource_len(dev, resource_no)); in macio_release_resource()
631 if (dr && resource_no < 32) in macio_release_resource()
632 dr->res_mask &= ~(1 << resource_no); in macio_release_resource()