Lines Matching refs:ret
40 int i, ret, hopid;
48 ret = tb_port_read(port, &hop, TB_CFG_HOPS, 2 * hopid, 2);
49 if (ret) {
112 int ret, i, h;
134 ret = tb_port_read(p, &hop, TB_CFG_HOPS, 2 * h, 2);
135 if (ret) {
180 ret = tb_port_read(p, &hop, TB_CFG_HOPS, 2 * h, 2);
181 if (ret) {
246 int i, ret;
291 ret = tb_port_alloc_in_hopid(in_port, in_hopid, in_hopid);
292 if (ret < 0)
294 in_hopid = ret;
323 ret = tb_port_alloc_out_hopid(out_port, dst_hopid,
326 ret = tb_port_alloc_out_hopid(out_port, -1, -1);
328 if (ret < 0)
330 out_hopid = ret;
397 int ret;
400 ret = tb_port_read(port, &hop, TB_CFG_HOPS, 2 * hop_index, 2);
401 if (ret)
402 return ret;
410 ret = tb_port_write(port, &hop, TB_CFG_HOPS, 2 * hop_index, 2);
411 if (ret)
412 return ret;
417 ret = tb_port_read(port, &hop, TB_CFG_HOPS, 2 * hop_index, 2);
418 if (ret)
419 return ret;