• Home
  • Raw
  • Download

Lines Matching refs:result

318 	int result = 0;  in st95hf_echo_command()  local
321 result = st95hf_send_recv_cmd(st95context, CMD_ECHO, 0, NULL, false); in st95hf_echo_command()
322 if (result) in st95hf_echo_command()
323 return result; in st95hf_echo_command()
326 result = st95hf_spi_recv_echo_res(&st95context->spicontext, in st95hf_echo_command()
328 if (result) { in st95hf_echo_command()
330 "err: echo response receieve error = 0x%x\n", result); in st95hf_echo_command()
331 return result; in st95hf_echo_command()
345 int result = 0; in secondary_configuration_type4a() local
349 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4a()
354 if (result) { in secondary_configuration_type4a()
355 dev_err(dev, "type a config cmd, err = 0x%x\n", result); in secondary_configuration_type4a()
356 return result; in secondary_configuration_type4a()
360 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4a()
365 if (result) in secondary_configuration_type4a()
366 dev_err(dev, "type a demogain cmd, err = 0x%x\n", result); in secondary_configuration_type4a()
368 return result; in secondary_configuration_type4a()
373 int result = 0; in secondary_configuration_type4b() local
376 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4b()
381 if (result) in secondary_configuration_type4b()
382 dev_err(dev, "type b demogain cmd, err = 0x%x\n", result); in secondary_configuration_type4b()
384 return result; in secondary_configuration_type4b()
389 int result = 0; in st95hf_select_protocol() local
397 result = st95hf_send_recv_cmd(stcontext, in st95hf_select_protocol()
402 if (result) { in st95hf_select_protocol()
404 result); in st95hf_select_protocol()
405 return result; in st95hf_select_protocol()
409 result = secondary_configuration_type4a(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()
418 result = st95hf_send_recv_cmd(stcontext, in st95hf_select_protocol()
423 if (result) { in st95hf_select_protocol()
425 result); in st95hf_select_protocol()
426 return result; in st95hf_select_protocol()
436 result = secondary_configuration_type4b(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()
445 result = st95hf_send_recv_cmd(stcontext, in st95hf_select_protocol()
450 if (result) { in st95hf_select_protocol()
452 result); in st95hf_select_protocol()
453 return result; in st95hf_select_protocol()
487 int result = 0; in st95hf_send_spi_reset_sequence() local
490 result = st95hf_spi_send(&st95context->spicontext, in st95hf_send_spi_reset_sequence()
494 if (result) { in st95hf_send_spi_reset_sequence()
496 "spi reset sequence cmd error = %d", result); in st95hf_send_spi_reset_sequence()
497 return result; in st95hf_send_spi_reset_sequence()
509 return result; in st95hf_send_spi_reset_sequence()
515 int result; in st95hf_por_sequence() local
522 result = st95hf_echo_command(st95context); in st95hf_por_sequence()
526 result, nth_attempt); in st95hf_por_sequence()
528 if (!result) in st95hf_por_sequence()
546 int result = 0; in iso14443_config_fdt() local
569 result = st95hf_send_recv_cmd(st95context, in iso14443_config_fdt()
574 if (result) { in iso14443_config_fdt()
576 result); in iso14443_config_fdt()
577 return result; in iso14443_config_fdt()
581 result = secondary_configuration_type4a(st95context); in iso14443_config_fdt()
582 if (result) { in iso14443_config_fdt()
584 result); in iso14443_config_fdt()
585 return result; in iso14443_config_fdt()
589 result = st95hf_send_recv_cmd(st95context, in iso14443_config_fdt()
594 if (result) { in iso14443_config_fdt()
596 result); in iso14443_config_fdt()
597 return result; in iso14443_config_fdt()
601 result = secondary_configuration_type4b(st95context); in iso14443_config_fdt()
602 if (result) { in iso14443_config_fdt()
604 result); in iso14443_config_fdt()
605 return result; in iso14443_config_fdt()
619 int result = 0; in st95hf_handle_wtx() local
626 result = iso14443_config_fdt(stcontext, wtx_val & 0x3f); in st95hf_handle_wtx()
627 if (result) { in st95hf_handle_wtx()
629 result); in st95hf_handle_wtx()
630 return result; in st95hf_handle_wtx()
637 result = st95hf_send_recv_cmd(stcontext, in st95hf_handle_wtx()
642 if (result) in st95hf_handle_wtx()
643 dev_err(dev, "WTX response send, err = 0x%x\n", result); in st95hf_handle_wtx()
644 return result; in st95hf_handle_wtx()
653 result = iso14443_config_fdt(stcontext, val_mm); in st95hf_handle_wtx()
654 if (result) in st95hf_handle_wtx()
656 result); in st95hf_handle_wtx()
658 return result; in st95hf_handle_wtx()
665 int result = 0; in st95hf_error_handling() local
672 result = -ETIMEDOUT; in st95hf_error_handling()
674 result = -EIO; in st95hf_error_handling()
675 return result; in st95hf_error_handling()
687 result = -EIO; in st95hf_error_handling()
698 result = -EIO; in st95hf_error_handling()
703 return result; in st95hf_error_handling()
710 int result = 0; in st95hf_response_handler() local
739 result = iso14443_config_fdt(stcontext, val_mm); in st95hf_response_handler()
740 if (result) { in st95hf_response_handler()
742 result); in st95hf_response_handler()
743 return result; in st95hf_response_handler()
762 return result; in st95hf_response_handler()
781 int result = 0; in st95hf_irq_thread_handler() local
821 result = res_len; in st95hf_irq_thread_handler()
827 result = -ENODEV; in st95hf_irq_thread_handler()
835 result = st95hf_handle_wtx(stcontext, true, skb_resp->data[3]); in st95hf_irq_thread_handler()
836 if (result) in st95hf_irq_thread_handler()
844 result = st95hf_error_handling(stcontext, skb_resp, res_len); in st95hf_irq_thread_handler()
845 if (result) in st95hf_irq_thread_handler()
848 result = st95hf_response_handler(stcontext, skb_resp, res_len); in st95hf_irq_thread_handler()
849 if (result) in st95hf_irq_thread_handler()
858 result = st95hf_handle_wtx(stcontext, false, 0); in st95hf_irq_thread_handler()
859 if (result) in st95hf_irq_thread_handler()
876 skb_resp = ERR_PTR(result); in st95hf_irq_thread_handler()
1222 int result = 0; in st95hf_remove() local
1239 result = down_killable(&stcontext->exchange_lock); in st95hf_remove()
1240 if (result == -EINTR) in st95hf_remove()
1244 result = st95hf_spi_send(&stcontext->spicontext, in st95hf_remove()
1248 if (result) { in st95hf_remove()
1250 "ST95HF reset failed in remove() err = %d\n", result); in st95hf_remove()
1251 return result; in st95hf_remove()
1261 return result; in st95hf_remove()