Lines Matching refs:rc
93 int rc;
108 rc = -EINVAL;
117 rc = -EINVAL;
127 rc = -EINVAL;
137 rc = c4iw_init_resource(rdev, c4iw_num_stags(rdev), T4_MAX_NUM_PD);
138 if (rc) {
139 device_printf(sc->dev, "error %d initializing resources\n", rc);
142 rc = c4iw_pblpool_create(rdev);
143 if (rc) {
144 device_printf(sc->dev, "error %d initializing pbl pool\n", rc);
147 rc = c4iw_rqtpool_create(rdev);
148 if (rc) {
149 device_printf(sc->dev, "error %d initializing rqt pool\n", rc);
155 rc = -ENOMEM;
172 rc = -ENOMEM;
185 return (rc);
211 int rc;
243 rc = c4iw_rdev_open(&iwsc->rdev);
244 if (rc != 0) {
245 device_printf(sc->dev, "Unable to open CXIO rdev (%d)\n", rc);
247 return (ERR_PTR(rc));
277 int rc;
300 rc = -PTR_ERR(iwsc);
301 device_printf(sc->dev, "initialization failed: %d\n", rc);
302 return (rc);
307 rc = -c4iw_register_device(iwsc);
308 if (rc) {
309 device_printf(sc->dev, "RDMA registration failed: %d\n", rc);
314 return (rc);
378 int rc;
380 rc = -c4iw_cm_init();
381 if (rc != 0)
382 return (rc);
384 rc = t4_register_uld(&c4iw_uld_info);
385 if (rc != 0) {
387 return (rc);
392 return (rc);
419 int rc = 0;
424 rc = c4iw_mod_load();
425 if (rc == 0)
430 rc = c4iw_mod_unload();
434 rc = EINVAL;
438 rc = EOPNOTSUPP;
440 return (rc);