Lines Matching refs:rc
75 int rc; in digital_skb_check_crc() local
89 rc = (skb->data[skb->len - 2] - (crc & 0xFF)) + in digital_skb_check_crc()
92 if (rc) in digital_skb_check_crc()
154 int rc; in digital_wq_cmd() local
180 rc = ddev->ops->in_send_cmd(ddev, cmd->req, cmd->timeout, in digital_wq_cmd()
185 rc = ddev->ops->tg_send_cmd(ddev, cmd->req, cmd->timeout, in digital_wq_cmd()
190 rc = ddev->ops->tg_listen(ddev, cmd->timeout, in digital_wq_cmd()
197 rc = ddev->ops->tg_listen_mdaa(ddev, params, cmd->timeout, in digital_wq_cmd()
202 rc = ddev->ops->tg_listen_md(ddev, cmd->timeout, in digital_wq_cmd()
211 if (!rc) in digital_wq_cmd()
214 pr_err("in_send_command returned err %d\n", rc); in digital_wq_cmd()
257 int rc; in digital_in_configure_hw() local
259 rc = ddev->ops->in_configure_hw(ddev, type, param); in digital_in_configure_hw()
260 if (rc) in digital_in_configure_hw()
261 pr_err("in_configure_hw failed: %d\n", rc); in digital_in_configure_hw()
263 return rc; in digital_in_configure_hw()
268 int rc; in digital_tg_configure_hw() local
270 rc = ddev->ops->tg_configure_hw(ddev, type, param); in digital_tg_configure_hw()
271 if (rc) in digital_tg_configure_hw()
272 pr_err("tg_configure_hw failed: %d\n", rc); in digital_tg_configure_hw()
274 return rc; in digital_tg_configure_hw()
280 int rc; in digital_tg_listen_mdaa() local
295 rc = digital_send_cmd(ddev, DIGITAL_CMD_TG_LISTEN_MDAA, NULL, params, in digital_tg_listen_mdaa()
297 if (rc) in digital_tg_listen_mdaa()
300 return rc; in digital_tg_listen_mdaa()
312 int rc; in digital_target_found() local
387 rc = digital_in_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING, framing); in digital_target_found()
388 if (rc) in digital_target_found()
389 return rc; in digital_target_found()
396 rc = nfc_targets_found(ddev->nfc_dev, target, 1); in digital_target_found()
397 if (rc) { in digital_target_found()
399 return rc; in digital_target_found()
429 int rc; in digital_wq_poll() local
445 rc = poll_tech->poll_func(ddev, poll_tech->rf_tech); in digital_wq_poll()
446 if (rc) in digital_wq_poll()
600 int rc; in digital_dep_link_up() local
602 rc = digital_in_send_atr_req(ddev, target, comm_mode, gb, gb_len); in digital_dep_link_up()
604 if (!rc) in digital_dep_link_up()
607 return rc; in digital_dep_link_up()
667 int rc; in digital_in_send_complete() local
670 rc = PTR_ERR(resp); in digital_in_send_complete()
676 rc = digital_in_recv_mifare_res(resp); in digital_in_send_complete()
683 rc = digital_in_iso_dep_pull_sod(ddev, resp); in digital_in_send_complete()
684 if (rc) in digital_in_send_complete()
688 rc = ddev->skb_check_crc(resp); in digital_in_send_complete()
691 if (rc) { in digital_in_send_complete()
696 data_exch->cb(data_exch->cb_context, resp, rc); in digital_in_send_complete()
707 int rc; in digital_in_send() local
717 rc = digital_in_send_dep_req(ddev, target, skb, data_exch); in digital_in_send()
723 rc = digital_in_iso_dep_push_sod(ddev, skb); in digital_in_send()
724 if (rc) in digital_in_send()
730 rc = digital_in_send_cmd(ddev, skb, 500, digital_in_send_complete, in digital_in_send()
734 if (rc) in digital_in_send()
737 return rc; in digital_in_send()