Lines Matching refs:rc
135 int rc; in nfc_genl_dump_targets() local
150 rc = nfc_genl_send_target(skb, &dev->targets[i], cb, in nfc_genl_dump_targets()
152 if (rc < 0) in nfc_genl_dump_targets()
370 int rc = -EMSGSIZE; in nfc_genl_llc_send_sdres() local
387 rc = -ENOMEM; in nfc_genl_llc_send_sdres()
397 rc = -ENOMEM; in nfc_genl_llc_send_sdres()
426 return rc; in nfc_genl_llc_send_sdres()
623 int rc; in nfc_genl_dump_devices() local
625 rc = nfc_genl_send_device(skb, dev, NETLINK_CB(cb->skb).portid, in nfc_genl_dump_devices()
627 if (rc < 0) in nfc_genl_dump_devices()
727 int rc = -ENOBUFS; in nfc_genl_get_device() local
740 rc = -ENOMEM; in nfc_genl_get_device()
744 rc = nfc_genl_send_device(msg, dev, info->snd_portid, info->snd_seq, in nfc_genl_get_device()
746 if (rc < 0) in nfc_genl_get_device()
757 return rc; in nfc_genl_get_device()
763 int rc; in nfc_genl_dev_up() local
775 rc = nfc_dev_up(dev); in nfc_genl_dev_up()
778 return rc; in nfc_genl_dev_up()
784 int rc; in nfc_genl_dev_down() local
796 rc = nfc_dev_down(dev); in nfc_genl_dev_down()
799 return rc; in nfc_genl_dev_down()
805 int rc; in nfc_genl_start_poll() local
833 rc = nfc_start_poll(dev, im_protocols, tm_protocols); in nfc_genl_start_poll()
834 if (!rc) in nfc_genl_start_poll()
840 return rc; in nfc_genl_start_poll()
846 int rc; in nfc_genl_stop_poll() local
871 rc = -EBUSY; in nfc_genl_stop_poll()
875 rc = nfc_stop_poll(dev); in nfc_genl_stop_poll()
881 return rc; in nfc_genl_stop_poll()
888 int rc; in nfc_genl_activate_target() local
905 rc = nfc_activate_target(dev, target_idx, protocol); in nfc_genl_activate_target()
908 return rc; in nfc_genl_activate_target()
916 int rc; in nfc_genl_deactivate_target() local
930 rc = nfc_deactivate_target(dev, target_idx, NFC_TARGET_MODE_SLEEP); in nfc_genl_deactivate_target()
933 return rc; in nfc_genl_deactivate_target()
939 int rc, tgt_idx; in nfc_genl_dep_link_up() local
964 rc = nfc_dep_link_up(dev, tgt_idx, comm); in nfc_genl_dep_link_up()
968 return rc; in nfc_genl_dep_link_up()
974 int rc; in nfc_genl_dep_link_down() local
986 rc = nfc_dep_link_down(dev); in nfc_genl_dep_link_down()
989 return rc; in nfc_genl_dep_link_down()
1021 int rc = 0; in nfc_genl_llc_get_params() local
1038 rc = -ENODEV; in nfc_genl_llc_get_params()
1044 rc = -ENOMEM; in nfc_genl_llc_get_params()
1048 rc = nfc_genl_send_params(msg, local, info->snd_portid, info->snd_seq); in nfc_genl_llc_get_params()
1058 if (rc < 0) { in nfc_genl_llc_get_params()
1062 return rc; in nfc_genl_llc_get_params()
1075 int rc = 0; in nfc_genl_llc_set_params() local
1107 rc = -ENODEV; in nfc_genl_llc_set_params()
1113 rc = -EINPROGRESS; in nfc_genl_llc_set_params()
1134 return rc; in nfc_genl_llc_set_params()
1145 int rc = 0, rem; in nfc_genl_llc_sdreq() local
1163 rc = -ENOLINK; in nfc_genl_llc_sdreq()
1169 rc = -ENODEV; in nfc_genl_llc_sdreq()
1178 rc = nla_parse_nested_deprecated(sdp_attrs, NFC_SDP_ATTR_MAX, in nfc_genl_llc_sdreq()
1182 if (rc != 0) { in nfc_genl_llc_sdreq()
1183 rc = -EINVAL; in nfc_genl_llc_sdreq()
1202 rc = -ENOMEM; in nfc_genl_llc_sdreq()
1212 rc = -EINVAL; in nfc_genl_llc_sdreq()
1216 rc = nfc_llcp_send_snl_sdreq(local, &sdreq_list, tlvs_len); in nfc_genl_llc_sdreq()
1226 return rc; in nfc_genl_llc_sdreq()
1232 int rc; in nfc_genl_fw_download() local
1248 rc = nfc_fw_download(dev, firmware_name); in nfc_genl_fw_download()
1251 return rc; in nfc_genl_fw_download()
1289 int rc; in nfc_genl_enable_se() local
1303 rc = nfc_enable_se(dev, se_idx); in nfc_genl_enable_se()
1306 return rc; in nfc_genl_enable_se()
1312 int rc; in nfc_genl_disable_se() local
1326 rc = nfc_disable_se(dev, se_idx); in nfc_genl_disable_se()
1329 return rc; in nfc_genl_disable_se()
1389 int rc; in nfc_genl_dump_ses() local
1391 rc = nfc_genl_send_se(skb, dev, NETLINK_CB(cb->skb).portid, in nfc_genl_dump_ses()
1393 if (rc < 0) in nfc_genl_dump_ses()
1423 int rc; in nfc_se_io() local
1430 rc = -ENODEV; in nfc_se_io()
1435 rc = -ENODEV; in nfc_se_io()
1440 rc = -EOPNOTSUPP; in nfc_se_io()
1446 rc = -EINVAL; in nfc_se_io()
1451 rc = -ENODEV; in nfc_se_io()
1455 rc = dev->ops->se_io(dev, se_idx, apdu, in nfc_se_io()
1459 return rc; in nfc_se_io()
1464 return rc; in nfc_se_io()
1517 int rc; in nfc_genl_se_io() local
1532 rc = -EOPNOTSUPP; in nfc_genl_se_io()
1538 rc = -EINVAL; in nfc_genl_se_io()
1546 rc = -ENOMEM; in nfc_genl_se_io()
1553 rc = nfc_se_io(dev, se_idx, apdu, apdu_len, se_io_cb, ctx); in nfc_genl_se_io()
1557 return rc; in nfc_genl_se_io()
1911 int rc; in nfc_genl_init() local
1913 rc = genl_register_family(&nfc_genl_family); in nfc_genl_init()
1914 if (rc) in nfc_genl_init()
1915 return rc; in nfc_genl_init()