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()
476 int rc; in digital_in_recv_sens_res() local
479 rc = PTR_ERR(resp); in digital_in_recv_sens_res()
485 rc = -EIO; in digital_in_recv_sens_res()
491 rc = -ENOMEM; in digital_in_recv_sens_res()
499 rc = -EINVAL; in digital_in_recv_sens_res()
504 rc = digital_target_found(ddev, target, NFC_PROTO_JEWEL); in digital_in_recv_sens_res()
506 rc = digital_in_send_sdd_req(ddev, target); in digital_in_recv_sens_res()
511 if (rc) { in digital_in_recv_sens_res()
520 int rc; in digital_in_send_sens_req() local
522 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, in digital_in_send_sens_req()
524 if (rc) in digital_in_send_sens_req()
525 return rc; in digital_in_send_sens_req()
527 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_sens_req()
529 if (rc) in digital_in_send_sens_req()
530 return rc; in digital_in_send_sens_req()
538 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_sens_res, NULL); in digital_in_send_sens_req()
539 if (rc) in digital_in_send_sens_req()
542 return rc; in digital_in_send_sens_req()
576 int rc; in digital_in_recv_attrib_res() local
579 rc = PTR_ERR(resp); in digital_in_recv_attrib_res()
586 rc = -EIO; in digital_in_recv_attrib_res()
594 rc = -EIO; in digital_in_recv_attrib_res()
598 rc = digital_target_found(ddev, target, NFC_PROTO_ISO14443_B); in digital_in_recv_attrib_res()
604 if (rc) in digital_in_recv_attrib_res()
614 int rc; in digital_in_send_attrib_req() local
633 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_attrib_res, in digital_in_send_attrib_req()
635 if (rc) in digital_in_send_attrib_req()
638 return rc; in digital_in_send_attrib_req()
647 int rc; in digital_in_recv_sensb_res() local
650 rc = PTR_ERR(resp); in digital_in_recv_sensb_res()
657 rc = -EIO; in digital_in_recv_sensb_res()
665 rc = -EIO; in digital_in_recv_sensb_res()
671 rc = -EIO; in digital_in_recv_sensb_res()
677 rc = -EIO; in digital_in_recv_sensb_res()
689 rc = -ENOMEM; in digital_in_recv_sensb_res()
693 rc = digital_in_send_attrib_req(ddev, target, sensb_res); in digital_in_recv_sensb_res()
698 if (rc) { in digital_in_recv_sensb_res()
708 int rc; in digital_in_send_sensb_req() local
710 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, in digital_in_send_sensb_req()
712 if (rc) in digital_in_send_sensb_req()
713 return rc; in digital_in_send_sensb_req()
715 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_sensb_req()
717 if (rc) in digital_in_send_sensb_req()
718 return rc; in digital_in_send_sensb_req()
730 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_sensb_res, in digital_in_send_sensb_req()
732 if (rc) in digital_in_send_sensb_req()
735 return rc; in digital_in_send_sensb_req()
741 int rc; in digital_in_recv_sensf_res() local
747 rc = PTR_ERR(resp); in digital_in_recv_sensf_res()
753 rc = -EIO; in digital_in_recv_sensf_res()
758 rc = digital_skb_check_crc_f(resp); in digital_in_recv_sensf_res()
759 if (rc) { in digital_in_recv_sensf_res()
783 rc = digital_target_found(ddev, &target, proto); in digital_in_recv_sensf_res()
788 if (rc) in digital_in_recv_sensf_res()
796 int rc; in digital_in_send_sensf_req() local
799 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, rf_tech); in digital_in_send_sensf_req()
800 if (rc) in digital_in_send_sensf_req()
801 return rc; in digital_in_send_sensf_req()
803 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_sensf_req()
805 if (rc) in digital_in_send_sensf_req()
806 return rc; in digital_in_send_sensf_req()
820 sensf_req->rc = 0; in digital_in_send_sensf_req()
828 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_sensf_res, in digital_in_send_sensf_req()
830 if (rc) in digital_in_send_sensf_req()
833 return rc; in digital_in_send_sensf_req()
841 int rc; in digital_in_recv_iso15693_inv_res() local
844 rc = PTR_ERR(resp); in digital_in_recv_iso15693_inv_res()
850 rc = -EIO; in digital_in_recv_iso15693_inv_res()
858 rc = -EINVAL; in digital_in_recv_iso15693_inv_res()
864 rc = -ENOMEM; in digital_in_recv_iso15693_inv_res()
872 rc = digital_target_found(ddev, target, NFC_PROTO_ISO15693); in digital_in_recv_iso15693_inv_res()
879 if (rc) in digital_in_recv_iso15693_inv_res()
887 int rc; in digital_in_send_iso15693_inv_req() local
889 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, in digital_in_send_iso15693_inv_req()
891 if (rc) in digital_in_send_iso15693_inv_req()
892 return rc; in digital_in_send_iso15693_inv_req()
894 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_in_send_iso15693_inv_req()
896 if (rc) in digital_in_send_iso15693_inv_req()
897 return rc; in digital_in_send_iso15693_inv_req()
915 rc = digital_in_send_cmd(ddev, skb, 30, in digital_in_send_iso15693_inv_req()
917 if (rc) in digital_in_send_iso15693_inv_req()
920 return rc; in digital_in_send_iso15693_inv_req()
926 int rc; in digital_tg_send_sel_res() local
937 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_tg_send_sel_res()
939 if (rc) { in digital_tg_send_sel_res()
941 return rc; in digital_tg_send_sel_res()
944 rc = digital_tg_send_cmd(ddev, skb, 300, digital_tg_recv_atr_req, in digital_tg_send_sel_res()
946 if (rc) in digital_tg_send_sel_res()
949 return rc; in digital_tg_send_sel_res()
955 int rc; in digital_tg_recv_sel_req() local
958 rc = PTR_ERR(resp); in digital_tg_recv_sel_req()
964 rc = digital_skb_check_crc_a(resp); in digital_tg_recv_sel_req()
965 if (rc) { in digital_tg_recv_sel_req()
973 rc = digital_tg_send_sel_res(ddev); in digital_tg_recv_sel_req()
976 if (rc) in digital_tg_recv_sel_req()
986 int rc, i; in digital_tg_send_sdd_res() local
1002 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_tg_send_sdd_res()
1004 if (rc) { in digital_tg_send_sdd_res()
1006 return rc; in digital_tg_send_sdd_res()
1009 rc = digital_tg_send_cmd(ddev, skb, 300, digital_tg_recv_sel_req, in digital_tg_send_sdd_res()
1011 if (rc) in digital_tg_send_sdd_res()
1014 return rc; in digital_tg_send_sdd_res()
1021 int rc; in digital_tg_recv_sdd_req() local
1024 rc = PTR_ERR(resp); in digital_tg_recv_sdd_req()
1033 rc = -EINVAL; in digital_tg_recv_sdd_req()
1037 rc = digital_tg_send_sdd_res(ddev); in digital_tg_recv_sdd_req()
1040 if (rc) in digital_tg_recv_sdd_req()
1050 int rc; in digital_tg_send_sens_res() local
1061 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, in digital_tg_send_sens_res()
1063 if (rc) { in digital_tg_send_sens_res()
1065 return rc; in digital_tg_send_sens_res()
1068 rc = digital_tg_send_cmd(ddev, skb, 300, digital_tg_recv_sdd_req, in digital_tg_send_sens_res()
1070 if (rc) in digital_tg_send_sens_res()
1073 return rc; in digital_tg_send_sens_res()
1080 int rc; in digital_tg_recv_sens_req() local
1083 rc = PTR_ERR(resp); in digital_tg_recv_sens_req()
1092 rc = -EINVAL; in digital_tg_recv_sens_req()
1096 rc = digital_tg_send_sens_res(ddev); in digital_tg_recv_sens_req()
1099 if (rc) in digital_tg_recv_sens_req()
1122 int rc; in digital_tg_send_sensf_res() local
1127 if (sensf_req->rc == DIGITAL_SENSF_REQ_RC_NONE) in digital_tg_send_sensf_res()
1145 switch (sensf_req->rc) { in digital_tg_send_sensf_res()
1161 rc = digital_tg_send_cmd(ddev, skb, 300, in digital_tg_send_sensf_res()
1163 if (rc) in digital_tg_send_sensf_res()
1166 return rc; in digital_tg_send_sensf_res()
1173 int rc; in digital_tg_recv_sensf_req() local
1176 rc = PTR_ERR(resp); in digital_tg_recv_sensf_req()
1182 rc = digital_skb_check_crc_f(resp); in digital_tg_recv_sensf_req()
1183 if (rc) { in digital_tg_recv_sensf_req()
1190 rc = -EINVAL; in digital_tg_recv_sensf_req()
1198 rc = -EINVAL; in digital_tg_recv_sensf_req()
1202 rc = digital_tg_send_sensf_res(ddev, sensf_req); in digital_tg_recv_sensf_req()
1205 if (rc) in digital_tg_recv_sensf_req()
1213 int rc; in digital_tg_config_nfca() local
1215 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, in digital_tg_config_nfca()
1217 if (rc) in digital_tg_config_nfca()
1218 return rc; in digital_tg_config_nfca()
1226 int rc; in digital_tg_listen_nfca() local
1228 rc = digital_tg_config_nfca(ddev); in digital_tg_listen_nfca()
1229 if (rc) in digital_tg_listen_nfca()
1230 return rc; in digital_tg_listen_nfca()
1237 int rc; in digital_tg_config_nfcf() local
1239 rc = digital_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH, rf_tech); in digital_tg_config_nfcf()
1240 if (rc) in digital_tg_config_nfcf()
1241 return rc; in digital_tg_config_nfcf()
1249 int rc; in digital_tg_listen_nfcf() local
1251 rc = digital_tg_config_nfcf(ddev, rf_tech); in digital_tg_listen_nfcf()
1252 if (rc) in digital_tg_listen_nfcf()
1253 return rc; in digital_tg_listen_nfcf()
1262 int rc; in digital_tg_recv_md_req() local
1269 rc = ddev->ops->tg_get_rf_tech(ddev, &rf_tech); in digital_tg_recv_md_req()
1270 if (rc) in digital_tg_recv_md_req()
1275 rc = digital_tg_config_nfca(ddev); in digital_tg_recv_md_req()
1276 if (rc) in digital_tg_recv_md_req()
1282 rc = digital_tg_config_nfcf(ddev, rf_tech); in digital_tg_recv_md_req()
1283 if (rc) in digital_tg_recv_md_req()