Home
last modified time | relevance | path

Searched refs:resource_no (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/arch/powerpc/include/asm/
Dmacio.h65 static inline unsigned long macio_resource_start(struct macio_dev *dev, int resource_no) in macio_resource_start() argument
67 return dev->resource[resource_no].start; in macio_resource_start()
70 static inline unsigned long macio_resource_end(struct macio_dev *dev, int resource_no) in macio_resource_end() argument
72 return dev->resource[resource_no].end; in macio_resource_end()
75 static inline unsigned long macio_resource_len(struct macio_dev *dev, int resource_no) in macio_resource_len() argument
77 struct resource *res = &dev->resource[resource_no]; in macio_resource_len()
85 extern int macio_request_resource(struct macio_dev *dev, int resource_no, const char *name);
86 extern void macio_release_resource(struct macio_dev *dev, int resource_no);
/linux-6.1.9/drivers/macintosh/
Dmacio_asic.c590 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
[all …]