Lines Matching refs:rc
136 u8 rc; member
220 int rc; in digital_in_recv_ats() local
223 rc = PTR_ERR(resp); in digital_in_recv_ats()
229 rc = -EIO; in digital_in_recv_ats()
241 rc = digital_target_found(ddev, target, NFC_PROTO_ISO14443); in digital_in_recv_ats()
247 if (rc) in digital_in_recv_ats()
254 int rc; in digital_in_send_rats() local
264 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_ats, in digital_in_send_rats()
266 if (rc) in digital_in_send_rats()
269 return rc; in digital_in_send_rats()
276 int rc; in digital_in_recv_sel_res() local
281 rc = PTR_ERR(resp); in digital_in_recv_sel_res()
287 rc = digital_skb_check_crc_a(resp); in digital_in_recv_sel_res()
288 if (rc) { in digital_in_recv_sel_res()
295 rc = -EIO; in digital_in_recv_sel_res()
302 rc = digital_in_send_sdd_req(ddev, target); in digital_in_recv_sel_res()
303 if (rc) in digital_in_recv_sel_res()
316 rc = digital_in_send_rats(ddev, target); in digital_in_recv_sel_res()
317 if (rc) in digital_in_recv_sel_res()
325 rc = -EOPNOTSUPP; in digital_in_recv_sel_res()
329 rc = digital_target_found(ddev, target, nfc_proto); in digital_in_recv_sel_res()
337 if (rc) in digital_in_recv_sel_res()
348 int rc; in digital_in_send_sel_req() local
370 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_sel_req()
372 if (rc) in digital_in_send_sel_req()
378 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_sel_res, in digital_in_send_sel_req()
381 if (rc) in digital_in_send_sel_req()
384 return rc; in digital_in_send_sel_req()
392 int rc; in digital_in_recv_sdd_res() local
397 rc = PTR_ERR(resp); in digital_in_recv_sdd_res()
404 rc = -EINVAL; in digital_in_recv_sdd_res()
415 rc = -EINVAL; in digital_in_recv_sdd_res()
431 rc = digital_in_send_sel_req(ddev, target, sdd_res); in digital_in_recv_sdd_res()
436 if (rc) { in digital_in_recv_sdd_res()
445 int rc; in digital_in_send_sdd_req() local
449 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_sdd_req()
451 if (rc) in digital_in_send_sdd_req()
452 return rc; in digital_in_send_sdd_req()
468 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_sdd_res, in digital_in_send_sdd_req()
470 if (rc) in digital_in_send_sdd_req()
473 return rc; in digital_in_send_sdd_req()
480 int rc; in digital_in_recv_sens_res() local
483 rc = PTR_ERR(resp); in digital_in_recv_sens_res()
489 rc = -EIO; in digital_in_recv_sens_res()
495 rc = -ENOMEM; in digital_in_recv_sens_res()
503 rc = -EINVAL; in digital_in_recv_sens_res()
508 rc = digital_target_found(ddev, target, NFC_PROTO_JEWEL); in digital_in_recv_sens_res()
510 rc = digital_in_send_sdd_req(ddev, target); in digital_in_recv_sens_res()
515 if (rc) { in digital_in_recv_sens_res()
524 int rc; in digital_in_send_sens_req() local
526 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, in digital_in_send_sens_req()
528 if (rc) in digital_in_send_sens_req()
529 return rc; in digital_in_send_sens_req()
531 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_sens_req()
533 if (rc) in digital_in_send_sens_req()
534 return rc; in digital_in_send_sens_req()
542 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_sens_res, NULL); in digital_in_send_sens_req()
543 if (rc) in digital_in_send_sens_req()
546 return rc; in digital_in_send_sens_req()
580 int rc; in digital_in_recv_attrib_res() local
583 rc = PTR_ERR(resp); in digital_in_recv_attrib_res()
590 rc = -EIO; in digital_in_recv_attrib_res()
598 rc = -EIO; in digital_in_recv_attrib_res()
602 rc = digital_target_found(ddev, target, NFC_PROTO_ISO14443_B); in digital_in_recv_attrib_res()
608 if (rc) in digital_in_recv_attrib_res()
618 int rc; in digital_in_send_attrib_req() local
637 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_attrib_res, in digital_in_send_attrib_req()
639 if (rc) in digital_in_send_attrib_req()
642 return rc; in digital_in_send_attrib_req()
651 int rc; in digital_in_recv_sensb_res() local
654 rc = PTR_ERR(resp); in digital_in_recv_sensb_res()
661 rc = -EIO; in digital_in_recv_sensb_res()
669 rc = -EIO; in digital_in_recv_sensb_res()
675 rc = -EIO; in digital_in_recv_sensb_res()
681 rc = -EIO; in digital_in_recv_sensb_res()
693 rc = -ENOMEM; in digital_in_recv_sensb_res()
697 rc = digital_in_send_attrib_req(ddev, target, sensb_res); in digital_in_recv_sensb_res()
702 if (rc) { in digital_in_recv_sensb_res()
712 int rc; in digital_in_send_sensb_req() local
714 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, in digital_in_send_sensb_req()
716 if (rc) in digital_in_send_sensb_req()
717 return rc; in digital_in_send_sensb_req()
719 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_sensb_req()
721 if (rc) in digital_in_send_sensb_req()
722 return rc; in digital_in_send_sensb_req()
734 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_sensb_res, in digital_in_send_sensb_req()
736 if (rc) in digital_in_send_sensb_req()
739 return rc; in digital_in_send_sensb_req()
745 int rc; in digital_in_recv_sensf_res() local
751 rc = PTR_ERR(resp); in digital_in_recv_sensf_res()
757 rc = -EIO; in digital_in_recv_sensf_res()
762 rc = digital_skb_check_crc_f(resp); in digital_in_recv_sensf_res()
763 if (rc) { in digital_in_recv_sensf_res()
787 rc = digital_target_found(ddev, &target, proto); in digital_in_recv_sensf_res()
792 if (rc) in digital_in_recv_sensf_res()
800 int rc; in digital_in_send_sensf_req() local
803 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, rf_tech); in digital_in_send_sensf_req()
804 if (rc) in digital_in_send_sensf_req()
805 return rc; in digital_in_send_sensf_req()
807 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_sensf_req()
809 if (rc) in digital_in_send_sensf_req()
810 return rc; in digital_in_send_sensf_req()
824 sensf_req->rc = 0; in digital_in_send_sensf_req()
832 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_sensf_res, in digital_in_send_sensf_req()
834 if (rc) in digital_in_send_sensf_req()
837 return rc; in digital_in_send_sensf_req()
845 int rc; in digital_in_recv_iso15693_inv_res() local
848 rc = PTR_ERR(resp); in digital_in_recv_iso15693_inv_res()
854 rc = -EIO; in digital_in_recv_iso15693_inv_res()
862 rc = -EINVAL; in digital_in_recv_iso15693_inv_res()
868 rc = -ENOMEM; in digital_in_recv_iso15693_inv_res()
876 rc = digital_target_found(ddev, target, NFC_PROTO_ISO15693); in digital_in_recv_iso15693_inv_res()
883 if (rc) in digital_in_recv_iso15693_inv_res()
891 int rc; in digital_in_send_iso15693_inv_req() local
893 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, in digital_in_send_iso15693_inv_req()
895 if (rc) in digital_in_send_iso15693_inv_req()
896 return rc; in digital_in_send_iso15693_inv_req()
898 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_iso15693_inv_req()
900 if (rc) in digital_in_send_iso15693_inv_req()
901 return rc; in digital_in_send_iso15693_inv_req()
919 rc = digital_in_send_cmd(ddev, skb, 30, in digital_in_send_iso15693_inv_req()
921 if (rc) in digital_in_send_iso15693_inv_req()
924 return rc; in digital_in_send_iso15693_inv_req()
930 int rc; in digital_tg_send_sel_res() local
941 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_tg_send_sel_res()
943 if (rc) { in digital_tg_send_sel_res()
945 return rc; in digital_tg_send_sel_res()
948 rc = digital_tg_send_cmd(ddev, skb, 300, digital_tg_recv_atr_req, in digital_tg_send_sel_res()
950 if (rc) in digital_tg_send_sel_res()
953 return rc; in digital_tg_send_sel_res()
959 int rc; in digital_tg_recv_sel_req() local
962 rc = PTR_ERR(resp); in digital_tg_recv_sel_req()
968 rc = digital_skb_check_crc_a(resp); in digital_tg_recv_sel_req()
969 if (rc) { in digital_tg_recv_sel_req()
977 rc = digital_tg_send_sel_res(ddev); in digital_tg_recv_sel_req()
980 if (rc) in digital_tg_recv_sel_req()
990 int rc, i; in digital_tg_send_sdd_res() local
1006 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_tg_send_sdd_res()
1008 if (rc) { in digital_tg_send_sdd_res()
1010 return rc; in digital_tg_send_sdd_res()
1013 rc = digital_tg_send_cmd(ddev, skb, 300, digital_tg_recv_sel_req, in digital_tg_send_sdd_res()
1015 if (rc) in digital_tg_send_sdd_res()
1018 return rc; in digital_tg_send_sdd_res()
1025 int rc; in digital_tg_recv_sdd_req() local
1028 rc = PTR_ERR(resp); in digital_tg_recv_sdd_req()
1037 rc = -EINVAL; in digital_tg_recv_sdd_req()
1041 rc = digital_tg_send_sdd_res(ddev); in digital_tg_recv_sdd_req()
1044 if (rc) in digital_tg_recv_sdd_req()
1054 int rc; in digital_tg_send_sens_res() local
1065 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_tg_send_sens_res()
1067 if (rc) { in digital_tg_send_sens_res()
1069 return rc; in digital_tg_send_sens_res()
1072 rc = digital_tg_send_cmd(ddev, skb, 300, digital_tg_recv_sdd_req, in digital_tg_send_sens_res()
1074 if (rc) in digital_tg_send_sens_res()
1077 return rc; in digital_tg_send_sens_res()
1084 int rc; in digital_tg_recv_sens_req() local
1087 rc = PTR_ERR(resp); in digital_tg_recv_sens_req()
1096 rc = -EINVAL; in digital_tg_recv_sens_req()
1100 rc = digital_tg_send_sens_res(ddev); in digital_tg_recv_sens_req()
1103 if (rc) in digital_tg_recv_sens_req()
1126 int rc; in digital_tg_send_sensf_res() local
1131 if (sensf_req->rc == DIGITAL_SENSF_REQ_RC_NONE) in digital_tg_send_sensf_res()
1149 switch (sensf_req->rc) { in digital_tg_send_sensf_res()
1165 rc = digital_tg_send_cmd(ddev, skb, 300, in digital_tg_send_sensf_res()
1167 if (rc) in digital_tg_send_sensf_res()
1170 return rc; in digital_tg_send_sensf_res()
1177 int rc; in digital_tg_recv_sensf_req() local
1180 rc = PTR_ERR(resp); in digital_tg_recv_sensf_req()
1186 rc = digital_skb_check_crc_f(resp); in digital_tg_recv_sensf_req()
1187 if (rc) { in digital_tg_recv_sensf_req()
1194 rc = -EINVAL; in digital_tg_recv_sensf_req()
1202 rc = -EINVAL; in digital_tg_recv_sensf_req()
1206 rc = digital_tg_send_sensf_res(ddev, sensf_req); in digital_tg_recv_sensf_req()
1209 if (rc) in digital_tg_recv_sensf_req()
1217 int rc; in digital_tg_config_nfca() local
1219 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, in digital_tg_config_nfca()
1221 if (rc) in digital_tg_config_nfca()
1222 return rc; in digital_tg_config_nfca()
1230 int rc; in digital_tg_listen_nfca() local
1232 rc = digital_tg_config_nfca(ddev); in digital_tg_listen_nfca()
1233 if (rc) in digital_tg_listen_nfca()
1234 return rc; in digital_tg_listen_nfca()
1241 int rc; in digital_tg_config_nfcf() local
1243 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, rf_tech); in digital_tg_config_nfcf()
1244 if (rc) in digital_tg_config_nfcf()
1245 return rc; in digital_tg_config_nfcf()
1253 int rc; in digital_tg_listen_nfcf() local
1255 rc = digital_tg_config_nfcf(ddev, rf_tech); in digital_tg_listen_nfcf()
1256 if (rc) in digital_tg_listen_nfcf()
1257 return rc; in digital_tg_listen_nfcf()
1266 int rc; in digital_tg_recv_md_req() local
1273 rc = ddev->ops->tg_get_rf_tech(ddev, &rf_tech); in digital_tg_recv_md_req()
1274 if (rc) in digital_tg_recv_md_req()
1279 rc = digital_tg_config_nfca(ddev); in digital_tg_recv_md_req()
1280 if (rc) in digital_tg_recv_md_req()
1286 rc = digital_tg_config_nfcf(ddev, rf_tech); in digital_tg_recv_md_req()
1287 if (rc) in digital_tg_recv_md_req()