Lines Matching refs:resource_no
591 int macio_request_resource(struct macio_dev *dev, int resource_no, in macio_request_resource() argument
596 if (macio_resource_len(dev, resource_no) == 0) in macio_request_resource()
599 if (!request_mem_region(macio_resource_start(dev, resource_no), in macio_request_resource()
600 macio_resource_len(dev, resource_no), in macio_request_resource()
604 if (dr && resource_no < 32) in macio_request_resource()
605 dr->res_mask |= 1 << resource_no; in macio_request_resource()
612 resource_no, in macio_request_resource()
613 macio_resource_len(dev, resource_no), in macio_request_resource()
614 macio_resource_start(dev, resource_no), in macio_request_resource()
624 void macio_release_resource(struct macio_dev *dev, int resource_no) in macio_release_resource() argument
628 if (macio_resource_len(dev, resource_no) == 0) in macio_release_resource()
630 release_mem_region(macio_resource_start(dev, resource_no), in macio_release_resource()
631 macio_resource_len(dev, resource_no)); in macio_release_resource()
632 if (dr && resource_no < 32) in macio_release_resource()
633 dr->res_mask &= ~(1 << resource_no); in macio_release_resource()