Lines Matching refs:cc
17 static inline void zpci_err_insn(u8 cc, u8 status, u64 req, u64 offset) in zpci_err_insn() argument
22 u8 cc; in zpci_err_insn() member
24 } __packed data = {req, offset, cc, status}; in zpci_err_insn()
32 u8 cc; in __mpcifc() local
38 : [cc] "=d" (cc), [req] "+d" (req), [fib] "+Q" (*fib) in __mpcifc()
41 return cc; in __mpcifc()
46 u8 cc, status; in zpci_mod_fc() local
49 cc = __mpcifc(req, fib, &status); in zpci_mod_fc()
50 if (cc == 2) in zpci_mod_fc()
52 } while (cc == 2); in zpci_mod_fc()
54 if (cc) in zpci_mod_fc()
55 zpci_err_insn(cc, status, req, 0); in zpci_mod_fc()
57 return (cc) ? -EIO : 0; in zpci_mod_fc()
65 u8 cc; in __rpcit() local
71 : [cc] "=d" (cc), [fn] "+d" (fn) in __rpcit()
75 return cc; in __rpcit()
80 u8 cc, status; in zpci_refresh_trans() local
83 cc = __rpcit(fn, addr, range, &status); in zpci_refresh_trans()
84 if (cc == 2) in zpci_refresh_trans()
86 } while (cc == 2); in zpci_refresh_trans()
88 if (cc) in zpci_refresh_trans()
89 zpci_err_insn(cc, status, addr, range); in zpci_refresh_trans()
91 return (cc) ? -EIO : 0; in zpci_refresh_trans()
110 int cc = -ENXIO; in ____pcilg() local
119 : [cc] "+d" (cc), [data] "=d" (__data), [req] "+d" (__req) in ____pcilg()
124 return cc; in ____pcilg()
130 int cc; in __pcilg() local
132 cc = ____pcilg(&__data, req, offset, status); in __pcilg()
133 if (!cc) in __pcilg()
136 return cc; in __pcilg()
142 int cc; in zpci_load() local
145 cc = __pcilg(data, req, offset, &status); in zpci_load()
146 if (cc == 2) in zpci_load()
148 } while (cc == 2); in zpci_load()
150 if (cc) in zpci_load()
151 zpci_err_insn(cc, status, req, offset); in zpci_load()
153 return (cc > 0) ? -EIO : cc; in zpci_load()
162 int cc = -ENXIO; in __pcistg() local
170 : [cc] "+d" (cc), [req] "+d" (__req) in __pcistg()
174 return cc; in __pcistg()
180 int cc; in zpci_store() local
183 cc = __pcistg(data, req, offset, &status); in zpci_store()
184 if (cc == 2) in zpci_store()
186 } while (cc == 2); in zpci_store()
188 if (cc) in zpci_store()
189 zpci_err_insn(cc, status, req, offset); in zpci_store()
191 return (cc > 0) ? -EIO : cc; in zpci_store()
198 int cc = -ENXIO; in __pcistb() local
206 : [cc] "+d" (cc), [req] "+d" (req) in __pcistb()
210 return cc; in __pcistb()
216 int cc; in zpci_store_block() local
219 cc = __pcistb(data, req, offset, &status); in zpci_store_block()
220 if (cc == 2) in zpci_store_block()
222 } while (cc == 2); in zpci_store_block()
224 if (cc) in zpci_store_block()
225 zpci_err_insn(cc, status, req, offset); in zpci_store_block()
227 return (cc > 0) ? -EIO : cc; in zpci_store_block()