Lines Matching refs:result

305 	int result = 0;  in st95hf_echo_command()  local
308 result = st95hf_send_recv_cmd(st95context, CMD_ECHO, 0, NULL, false); in st95hf_echo_command()
309 if (result) in st95hf_echo_command()
310 return result; in st95hf_echo_command()
313 result = st95hf_spi_recv_echo_res(&st95context->spicontext, in st95hf_echo_command()
315 if (result) { in st95hf_echo_command()
317 "err: echo response receive error = 0x%x\n", result); in st95hf_echo_command()
318 return result; in st95hf_echo_command()
332 int result = 0; in secondary_configuration_type4a() local
336 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4a()
341 if (result) { in secondary_configuration_type4a()
342 dev_err(dev, "type a config cmd, err = 0x%x\n", result); in secondary_configuration_type4a()
343 return result; in secondary_configuration_type4a()
347 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4a()
352 if (result) in secondary_configuration_type4a()
353 dev_err(dev, "type a demogain cmd, err = 0x%x\n", result); in secondary_configuration_type4a()
355 return result; in secondary_configuration_type4a()
360 int result = 0; in secondary_configuration_type4b() local
363 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4b()
368 if (result) in secondary_configuration_type4b()
369 dev_err(dev, "type b demogain cmd, err = 0x%x\n", result); in secondary_configuration_type4b()
371 return result; in secondary_configuration_type4b()
376 int result = 0; in st95hf_select_protocol() local
384 result = st95hf_send_recv_cmd(stcontext, in st95hf_select_protocol()
389 if (result) { in st95hf_select_protocol()
391 result); in st95hf_select_protocol()
392 return result; in st95hf_select_protocol()
396 result = secondary_configuration_type4a(stcontext); in st95hf_select_protocol()
397 if (result) { in st95hf_select_protocol()
399 result); in st95hf_select_protocol()
400 return result; in st95hf_select_protocol()
405 result = st95hf_send_recv_cmd(stcontext, in st95hf_select_protocol()
410 if (result) { in st95hf_select_protocol()
412 result); in st95hf_select_protocol()
413 return result; in st95hf_select_protocol()
423 result = secondary_configuration_type4b(stcontext); in st95hf_select_protocol()
424 if (result) { in st95hf_select_protocol()
426 result); in st95hf_select_protocol()
427 return result; in st95hf_select_protocol()
432 result = st95hf_send_recv_cmd(stcontext, in st95hf_select_protocol()
437 if (result) { in st95hf_select_protocol()
439 result); in st95hf_select_protocol()
440 return result; in st95hf_select_protocol()
474 int result = 0; in st95hf_send_spi_reset_sequence() local
477 result = st95hf_spi_send(&st95context->spicontext, in st95hf_send_spi_reset_sequence()
481 if (result) { in st95hf_send_spi_reset_sequence()
483 "spi reset sequence cmd error = %d", result); in st95hf_send_spi_reset_sequence()
484 return result; in st95hf_send_spi_reset_sequence()
496 return result; in st95hf_send_spi_reset_sequence()
502 int result; in st95hf_por_sequence() local
509 result = st95hf_echo_command(st95context); in st95hf_por_sequence()
513 result, nth_attempt); in st95hf_por_sequence()
515 if (!result) in st95hf_por_sequence()
533 int result = 0; in iso14443_config_fdt() local
556 result = st95hf_send_recv_cmd(st95context, in iso14443_config_fdt()
561 if (result) { in iso14443_config_fdt()
563 result); in iso14443_config_fdt()
564 return result; in iso14443_config_fdt()
568 result = secondary_configuration_type4a(st95context); in iso14443_config_fdt()
569 if (result) { in iso14443_config_fdt()
571 result); in iso14443_config_fdt()
572 return result; in iso14443_config_fdt()
576 result = st95hf_send_recv_cmd(st95context, in iso14443_config_fdt()
581 if (result) { in iso14443_config_fdt()
583 result); in iso14443_config_fdt()
584 return result; in iso14443_config_fdt()
588 result = secondary_configuration_type4b(st95context); in iso14443_config_fdt()
589 if (result) { in iso14443_config_fdt()
591 result); in iso14443_config_fdt()
592 return result; in iso14443_config_fdt()
606 int result = 0; in st95hf_handle_wtx() local
613 result = iso14443_config_fdt(stcontext, wtx_val & 0x3f); in st95hf_handle_wtx()
614 if (result) { in st95hf_handle_wtx()
616 result); in st95hf_handle_wtx()
617 return result; in st95hf_handle_wtx()
624 result = st95hf_send_recv_cmd(stcontext, in st95hf_handle_wtx()
629 if (result) in st95hf_handle_wtx()
630 dev_err(dev, "WTX response send, err = 0x%x\n", result); in st95hf_handle_wtx()
631 return result; in st95hf_handle_wtx()
640 result = iso14443_config_fdt(stcontext, val_mm); in st95hf_handle_wtx()
641 if (result) in st95hf_handle_wtx()
643 result); in st95hf_handle_wtx()
645 return result; in st95hf_handle_wtx()
652 int result = 0; in st95hf_error_handling() local
659 result = -ETIMEDOUT; in st95hf_error_handling()
661 result = -EIO; in st95hf_error_handling()
662 return result; in st95hf_error_handling()
674 result = -EIO; in st95hf_error_handling()
685 result = -EIO; in st95hf_error_handling()
690 return result; in st95hf_error_handling()
697 int result = 0; in st95hf_response_handler() local
726 result = iso14443_config_fdt(stcontext, val_mm); in st95hf_response_handler()
727 if (result) { in st95hf_response_handler()
729 result); in st95hf_response_handler()
730 return result; in st95hf_response_handler()
749 return result; in st95hf_response_handler()
768 int result = 0; in st95hf_irq_thread_handler() local
806 result = res_len; in st95hf_irq_thread_handler()
812 result = -ENODEV; in st95hf_irq_thread_handler()
818 result = st95hf_handle_wtx(stcontext, true, skb_resp->data[3]); in st95hf_irq_thread_handler()
819 if (result) in st95hf_irq_thread_handler()
827 result = st95hf_error_handling(stcontext, skb_resp, res_len); in st95hf_irq_thread_handler()
828 if (result) in st95hf_irq_thread_handler()
831 result = st95hf_response_handler(stcontext, skb_resp, res_len); in st95hf_irq_thread_handler()
832 if (result) in st95hf_irq_thread_handler()
841 result = st95hf_handle_wtx(stcontext, false, 0); in st95hf_irq_thread_handler()
842 if (result) in st95hf_irq_thread_handler()
859 skb_resp = ERR_PTR(result); in st95hf_irq_thread_handler()
1198 int result = 0; in st95hf_remove() local
1215 result = down_killable(&stcontext->exchange_lock); in st95hf_remove()
1216 if (result == -EINTR) in st95hf_remove()
1220 result = st95hf_spi_send(&stcontext->spicontext, in st95hf_remove()
1224 if (result) in st95hf_remove()
1226 "ST95HF reset failed in remove() err = %d\n", result); in st95hf_remove()