Lines Matching defs:res

403 #define IPR_QUEUEING_MODEL(res)	((((res)->flags) & 0x70) >> 4)
420 #define IPR_QUEUEING_MODEL64(res) ((((res)->res_flags) & 0x7000) >> 12)
1246 #define IPR_GET_RES_PHYS_LOC(res) \
1247 (((res)->bus << 24) | ((res)->target << 8) | (res)->lun)
1570 struct ipr_resource_entry *res;
1723 #define ipr_res_err(ioa_cfg, res, fmt, ...) \
1724 ipr_res_printk(KERN_ERR, ioa_cfg, (res)->bus, (res)->target, (res)->lun, fmt, ##__VA_ARGS__)
1733 #define ipr_phys_res_err(ioa_cfg, res, fmt, ...) \
1735 if ((res).bus >= IPR_MAX_NUM_BUSES) { \
1740 (res).bus, (res).target, (res).lun); \
1780 * @res: resource entry struct
1785 static inline int ipr_is_ioa_resource(struct ipr_resource_entry *res)
1787 return res->type == IPR_RES_TYPE_IOAFP;
1792 * @res: resource entry struct
1797 static inline int ipr_is_af_dasd_device(struct ipr_resource_entry *res)
1799 return res->type == IPR_RES_TYPE_AF_DASD ||
1800 res->type == IPR_RES_TYPE_REMOTE_AF_DASD;
1805 * @res: resource entry struct
1810 static inline int ipr_is_vset_device(struct ipr_resource_entry *res)
1812 return res->type == IPR_RES_TYPE_VOLUME_SET;
1817 * @res: resource entry struct
1822 static inline int ipr_is_gscsi(struct ipr_resource_entry *res)
1824 return res->type == IPR_RES_TYPE_GENERIC_SCSI;
1829 * @res: resource entry struct
1834 static inline int ipr_is_scsi_disk(struct ipr_resource_entry *res)
1836 if (ipr_is_af_dasd_device(res) ||
1837 (ipr_is_gscsi(res) && IPR_IS_DASD_DEVICE(res->std_inq_data)))
1845 * @res: resource entry struct
1850 static inline int ipr_is_gata(struct ipr_resource_entry *res)
1852 return res->type == IPR_RES_TYPE_GENERIC_ATA;
1857 * @res: resource entry struct
1862 static inline int ipr_is_naca_model(struct ipr_resource_entry *res)
1864 if (ipr_is_gscsi(res) && res->qmodel == IPR_QUEUE_NACA_MODEL)