Lines Matching refs:cc

16 static inline void zpci_err_insn(u8 cc, u8 status, u64 req, u64 offset)  in zpci_err_insn()  argument
21 u8 cc; in zpci_err_insn() member
23 } __packed data = {req, offset, cc, status}; in zpci_err_insn()
31 u8 cc; in __mpcifc() local
37 : [cc] "=d" (cc), [req] "+d" (req), [fib] "+Q" (*fib) in __mpcifc()
40 return cc; in __mpcifc()
45 u8 cc, status; in zpci_mod_fc() local
48 cc = __mpcifc(req, fib, &status); in zpci_mod_fc()
49 if (cc == 2) in zpci_mod_fc()
51 } while (cc == 2); in zpci_mod_fc()
53 if (cc) in zpci_mod_fc()
54 zpci_err_insn(cc, status, req, 0); in zpci_mod_fc()
56 return (cc) ? -EIO : 0; in zpci_mod_fc()
64 u8 cc; in __rpcit() local
70 : [cc] "=d" (cc), [fn] "+d" (fn) in __rpcit()
74 return cc; in __rpcit()
79 u8 cc, status; in zpci_refresh_trans() local
82 cc = __rpcit(fn, addr, range, &status); in zpci_refresh_trans()
83 if (cc == 2) in zpci_refresh_trans()
85 } while (cc == 2); in zpci_refresh_trans()
87 if (cc) in zpci_refresh_trans()
88 zpci_err_insn(cc, status, addr, range); in zpci_refresh_trans()
90 return (cc) ? -EIO : 0; in zpci_refresh_trans()
106 int cc = -ENXIO; in __pcilg() local
115 : [cc] "+d" (cc), [data] "=d" (__data), [req] "+d" (__req) in __pcilg()
119 if (!cc) in __pcilg()
122 return cc; in __pcilg()
128 int cc; in zpci_load() local
131 cc = __pcilg(data, req, offset, &status); in zpci_load()
132 if (cc == 2) in zpci_load()
134 } while (cc == 2); in zpci_load()
136 if (cc) in zpci_load()
137 zpci_err_insn(cc, status, req, offset); in zpci_load()
139 return (cc > 0) ? -EIO : cc; in zpci_load()
148 int cc = -ENXIO; in __pcistg() local
156 : [cc] "+d" (cc), [req] "+d" (__req) in __pcistg()
160 return cc; in __pcistg()
166 int cc; in zpci_store() local
169 cc = __pcistg(data, req, offset, &status); in zpci_store()
170 if (cc == 2) in zpci_store()
172 } while (cc == 2); in zpci_store()
174 if (cc) in zpci_store()
175 zpci_err_insn(cc, status, req, offset); in zpci_store()
177 return (cc > 0) ? -EIO : cc; in zpci_store()
184 int cc = -ENXIO; in __pcistb() local
192 : [cc] "+d" (cc), [req] "+d" (req) in __pcistb()
196 return cc; in __pcistb()
202 int cc; in zpci_store_block() local
205 cc = __pcistb(data, req, offset, &status); in zpci_store_block()
206 if (cc == 2) in zpci_store_block()
208 } while (cc == 2); in zpci_store_block()
210 if (cc) in zpci_store_block()
211 zpci_err_insn(cc, status, req, offset); in zpci_store_block()
213 return (cc > 0) ? -EIO : cc; in zpci_store_block()