Lines Matching refs:res
92 int res=0;
186 res = cfe_write(fh,PTR2HSADDR(tx_packet),pktsize);
188 if (res < 0) {
191 res = cfe_read(fh,PTR2HSADDR(rx_packet),pktsize);
192 if (res == 0) continue;
194 xprintf("RX[%d] %d ",rx_count,res);
196 if (res > 32) res = 32;
197 for (idx3 = 0,idx4 = 1; idx3 < res; idx3++,idx4++) {
206 res = cfe_write(fh,PTR2HSADDR(tx_packet),pktsize);
207 if (res < 0) ui_showerror(res,"ERROR Could not transmit packet");
214 res = cfe_read(fh,PTR2HSADDR(rx_packet),pktsize);
215 if (res == 0) continue;
216 if (res < 0) {
217 xprintf("Read error: %s\n",cfe_errortext(res));
220 xprintf("RX[%d] %d ",rx_count,res);
222 if (res > 32) res = 32;
224 for (idx = 0,idx2 = 1; idx < res; idx++,idx2++) {
254 res = cfe_read(fh,PTR2HSADDR(rx_packet),sizeof(rx_packet));
255 if (res < 0) {
256 xprintf("Read error: %s\n",cfe_errortext(res));
259 if (res == 0) continue;
260 xprintf("RX[%d] %d ",rx_count,res);
262 if (res > 32) res = 32;
264 for (idx3 = 0,idx4 = 1; idx3 < res; idx3++,idx4++) {
295 res = cfe_write(fh,PTR2HSADDR(tx_packet),pktsize);
296 if (res < 0) {
300 res = cfe_read(fh,PTR2HSADDR(rx_packet),pktsize);
301 if (res == 0) continue;
303 xprintf("RX[%d] %d ",rx_count,res);
305 if (res > 32) res = 32;
306 for (idx3 = 0,idx4 = 1; idx3 < res; idx3++,idx4++) {
315 res = cfe_write(fh,PTR2HSADDR(tx_packet),pktsize);
316 if (res < 0) ui_showerror(res,"ERROR Could not transmit packet");