Lines Matching full:result

307 	int result = 0;  in st95hf_echo_command()  local
310 result = st95hf_send_recv_cmd(st95context, CMD_ECHO, 0, NULL, false); in st95hf_echo_command()
311 if (result) in st95hf_echo_command()
312 return result; in st95hf_echo_command()
315 result = st95hf_spi_recv_echo_res(&st95context->spicontext, in st95hf_echo_command()
317 if (result) { in st95hf_echo_command()
319 "err: echo response receive error = 0x%x\n", result); in st95hf_echo_command()
320 return result; in st95hf_echo_command()
334 int result = 0; in secondary_configuration_type4a() local
338 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4a()
343 if (result) { in secondary_configuration_type4a()
344 dev_err(dev, "type a config cmd, err = 0x%x\n", result); in secondary_configuration_type4a()
345 return result; in secondary_configuration_type4a()
349 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4a()
354 if (result) in secondary_configuration_type4a()
355 dev_err(dev, "type a demogain cmd, err = 0x%x\n", result); in secondary_configuration_type4a()
357 return result; in secondary_configuration_type4a()
362 int result = 0; in secondary_configuration_type4b() local
365 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4b()
370 if (result) in secondary_configuration_type4b()
371 dev_err(dev, "type b demogain cmd, err = 0x%x\n", result); in secondary_configuration_type4b()
373 return result; in secondary_configuration_type4b()
378 int result = 0; in st95hf_select_protocol() local
386 result = st95hf_send_recv_cmd(stcontext, in st95hf_select_protocol()
391 if (result) { in st95hf_select_protocol()
393 result); in st95hf_select_protocol()
394 return result; in st95hf_select_protocol()
398 result = secondary_configuration_type4a(stcontext); in st95hf_select_protocol()
399 if (result) { in st95hf_select_protocol()
401 result); in st95hf_select_protocol()
402 return result; in st95hf_select_protocol()
407 result = st95hf_send_recv_cmd(stcontext, in st95hf_select_protocol()
412 if (result) { in st95hf_select_protocol()
414 result); in st95hf_select_protocol()
415 return result; in st95hf_select_protocol()
425 result = secondary_configuration_type4b(stcontext); in st95hf_select_protocol()
426 if (result) { in st95hf_select_protocol()
428 result); in st95hf_select_protocol()
429 return result; in st95hf_select_protocol()
434 result = st95hf_send_recv_cmd(stcontext, in st95hf_select_protocol()
439 if (result) { in st95hf_select_protocol()
441 result); in st95hf_select_protocol()
442 return result; in st95hf_select_protocol()
476 int result = 0; in st95hf_send_spi_reset_sequence() local
479 result = st95hf_spi_send(&st95context->spicontext, in st95hf_send_spi_reset_sequence()
483 if (result) { in st95hf_send_spi_reset_sequence()
485 "spi reset sequence cmd error = %d", result); in st95hf_send_spi_reset_sequence()
486 return result; in st95hf_send_spi_reset_sequence()
498 return result; in st95hf_send_spi_reset_sequence()
504 int result; in st95hf_por_sequence() local
511 result = st95hf_echo_command(st95context); in st95hf_por_sequence()
515 result, nth_attempt); in st95hf_por_sequence()
517 if (!result) in st95hf_por_sequence()
535 int result = 0; in iso14443_config_fdt() local
558 result = st95hf_send_recv_cmd(st95context, in iso14443_config_fdt()
563 if (result) { in iso14443_config_fdt()
565 result); in iso14443_config_fdt()
566 return result; in iso14443_config_fdt()
570 result = secondary_configuration_type4a(st95context); in iso14443_config_fdt()
571 if (result) { in iso14443_config_fdt()
573 result); in iso14443_config_fdt()
574 return result; in iso14443_config_fdt()
578 result = st95hf_send_recv_cmd(st95context, in iso14443_config_fdt()
583 if (result) { in iso14443_config_fdt()
585 result); in iso14443_config_fdt()
586 return result; in iso14443_config_fdt()
590 result = secondary_configuration_type4b(st95context); in iso14443_config_fdt()
591 if (result) { in iso14443_config_fdt()
593 result); in iso14443_config_fdt()
594 return result; in iso14443_config_fdt()
608 int result = 0; in st95hf_handle_wtx() local
615 result = iso14443_config_fdt(stcontext, wtx_val & 0x3f); in st95hf_handle_wtx()
616 if (result) { in st95hf_handle_wtx()
618 result); in st95hf_handle_wtx()
619 return result; in st95hf_handle_wtx()
626 result = st95hf_send_recv_cmd(stcontext, in st95hf_handle_wtx()
631 if (result) in st95hf_handle_wtx()
632 dev_err(dev, "WTX response send, err = 0x%x\n", result); in st95hf_handle_wtx()
633 return result; in st95hf_handle_wtx()
642 result = iso14443_config_fdt(stcontext, val_mm); in st95hf_handle_wtx()
643 if (result) in st95hf_handle_wtx()
645 result); in st95hf_handle_wtx()
647 return result; in st95hf_handle_wtx()
654 int result = 0; in st95hf_error_handling() local
661 result = -ETIMEDOUT; in st95hf_error_handling()
663 result = -EIO; in st95hf_error_handling()
664 return result; in st95hf_error_handling()
676 result = -EIO; in st95hf_error_handling()
687 result = -EIO; in st95hf_error_handling()
692 return result; in st95hf_error_handling()
699 int result = 0; in st95hf_response_handler() local
728 result = iso14443_config_fdt(stcontext, val_mm); in st95hf_response_handler()
729 if (result) { in st95hf_response_handler()
731 result); in st95hf_response_handler()
732 return result; in st95hf_response_handler()
751 return result; in st95hf_response_handler()
770 int result = 0; in st95hf_irq_thread_handler() local
808 result = res_len; in st95hf_irq_thread_handler()
814 result = -ENODEV; in st95hf_irq_thread_handler()
820 result = st95hf_handle_wtx(stcontext, true, skb_resp->data[3]); in st95hf_irq_thread_handler()
821 if (result) in st95hf_irq_thread_handler()
829 result = st95hf_error_handling(stcontext, skb_resp, res_len); in st95hf_irq_thread_handler()
830 if (result) in st95hf_irq_thread_handler()
833 result = st95hf_response_handler(stcontext, skb_resp, res_len); in st95hf_irq_thread_handler()
834 if (result) in st95hf_irq_thread_handler()
843 result = st95hf_handle_wtx(stcontext, false, 0); in st95hf_irq_thread_handler()
844 if (result) in st95hf_irq_thread_handler()
861 skb_resp = ERR_PTR(result); in st95hf_irq_thread_handler()
1207 int result = 0; in st95hf_remove() local
1224 result = down_killable(&stcontext->exchange_lock); in st95hf_remove()
1225 if (result == -EINTR) in st95hf_remove()
1229 result = st95hf_spi_send(&stcontext->spicontext, in st95hf_remove()
1233 if (result) { in st95hf_remove()
1235 "ST95HF reset failed in remove() err = %d\n", result); in st95hf_remove()
1236 return result; in st95hf_remove()
1246 return result; in st95hf_remove()