Searched refs:resource_no (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/arch/powerpc/include/asm/
H A Dmacio.h64 static inline unsigned long macio_resource_start(struct macio_dev *dev, int resource_no) macio_resource_start() argument
66 return dev->resource[resource_no].start; macio_resource_start()
69 static inline unsigned long macio_resource_end(struct macio_dev *dev, int resource_no) macio_resource_end() argument
71 return dev->resource[resource_no].end; macio_resource_end()
74 static inline unsigned long macio_resource_len(struct macio_dev *dev, int resource_no) macio_resource_len() argument
76 struct resource *res = &dev->resource[resource_no]; macio_resource_len()
84 extern int macio_request_resource(struct macio_dev *dev, int resource_no, const char *name);
85 extern void macio_release_resource(struct macio_dev *dev, int resource_no);
/linux-4.1.27/drivers/macintosh/
H A Dmacio_asic.c584 * @resource_no: resource number to request
587 * Mark memory region number @resource_no associated with MacIO
595 int macio_request_resource(struct macio_dev *dev, int resource_no, macio_request_resource() argument
600 if (macio_resource_len(dev, resource_no) == 0) macio_request_resource()
603 if (!request_mem_region(macio_resource_start(dev, resource_no), macio_request_resource()
604 macio_resource_len(dev, resource_no), macio_request_resource()
608 if (dr && resource_no < 32) macio_request_resource()
609 dr->res_mask |= 1 << resource_no; macio_request_resource()
616 resource_no, macio_request_resource()
617 macio_resource_len(dev, resource_no), macio_request_resource()
618 macio_resource_start(dev, resource_no), macio_request_resource()
626 * @resource_no: resource number to release
628 void macio_release_resource(struct macio_dev *dev, int resource_no) macio_release_resource() argument
632 if (macio_resource_len(dev, resource_no) == 0) macio_release_resource()
634 release_mem_region(macio_resource_start(dev, resource_no), macio_release_resource()
635 macio_resource_len(dev, resource_no)); macio_release_resource()
636 if (dr && resource_no < 32) macio_release_resource()
637 dr->res_mask &= ~(1 << resource_no); macio_release_resource()
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
H A Dvxge-reg.h873 /*0x00000*/ u64 resource_no; member in struct:vxge_hw_pcicfgmgmt_reg

Completed in 248 milliseconds