Lines Matching full:trf7970a
3 * TI TRF7970a RFID/NFC Transceiver Driver
28 /* There are 3 ways the host can communicate with the trf7970a:
32 * The trf7970a is very timing sensitive and the VIN, EN2, and EN
36 * version of the trf7970a that requires that EN2 remain low no matter
40 * indicates that trf7970a currently being used has the erratum and
45 * from the trf7970a (or tag). Using this mechanism creates a race with
145 /* Erratum: When reading IRQ Status register on trf7970a, we must issue a
429 struct trf7970a { struct
465 static int trf7970a_cmd(struct trf7970a *trf, u8 opcode) in trf7970a_cmd() argument
479 static int trf7970a_read(struct trf7970a *trf, u8 reg, u8 *val) in trf7970a_read()
494 static int trf7970a_read_cont(struct trf7970a *trf, u8 reg, u8 *buf, in trf7970a_read_cont()
523 static int trf7970a_write(struct trf7970a *trf, u8 reg, u8 val) in trf7970a_write()
538 static int trf7970a_read_irqstatus(struct trf7970a *trf, u8 *status) in trf7970a_read_irqstatus()
562 static int trf7970a_update_rx_gain_reduction(struct trf7970a *trf) in trf7970a_update_rx_gain_reduction()
581 static int trf7970a_update_iso_ctrl_register(struct trf7970a *trf, u8 iso_ctrl) in trf7970a_update_iso_ctrl_register()
597 static int trf7970a_read_target_proto(struct trf7970a *trf, u8 *target_proto) in trf7970a_read_target_proto()
616 static int trf7970a_mode_detect(struct trf7970a *trf, u8 *rf_tech) in trf7970a_mode_detect()
649 static void trf7970a_send_upstream(struct trf7970a *trf) in trf7970a_send_upstream()
655 print_hex_dump_debug("trf7970a rx data: ", DUMP_PREFIX_NONE, in trf7970a_send_upstream()
677 static void trf7970a_send_err_upstream(struct trf7970a *trf, int errno) in trf7970a_send_err_upstream()
689 static int trf7970a_transmit(struct trf7970a *trf, struct sk_buff *skb, in trf7970a_transmit()
698 print_hex_dump_debug("trf7970a tx data: ", DUMP_PREFIX_NONE, in trf7970a_transmit()
747 static void trf7970a_fill_fifo(struct trf7970a *trf) in trf7970a_fill_fifo()
782 static void trf7970a_drain_fifo(struct trf7970a *trf, u8 status) in trf7970a_drain_fifo()
845 * for the trf7970a to generate another RX interrupt. in trf7970a_drain_fifo()
866 struct trf7970a *trf = dev_id; in trf7970a_irq()
1025 static void trf7970a_issue_eof(struct trf7970a *trf) in trf7970a_issue_eof()
1050 struct trf7970a *trf = container_of(work, struct trf7970a, in trf7970a_timeout_work_handler()
1070 static int trf7970a_init(struct trf7970a *trf) in trf7970a_init()
1127 static void trf7970a_switch_rf_off(struct trf7970a *trf) in trf7970a_switch_rf_off()
1146 static int trf7970a_switch_rf_on(struct trf7970a *trf) in trf7970a_switch_rf_on()
1173 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_switch_rf()
1217 static int trf7970a_in_config_rf_tech(struct trf7970a *trf, int tech) in trf7970a_in_config_rf_tech()
1277 static int trf7970a_is_rf_field(struct trf7970a *trf, bool *is_rf_field) in trf7970a_is_rf_field()
1311 static int trf7970a_in_config_framing(struct trf7970a *trf, int framing) in trf7970a_in_config_framing()
1389 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_in_configure_hw()
1438 static int trf7970a_per_cmd_config(struct trf7970a *trf, in trf7970a_per_cmd_config()
1511 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_send_cmd()
1611 static int trf7970a_tg_config_rf_tech(struct trf7970a *trf, int tech) in trf7970a_tg_config_rf_tech()
1669 static int trf7970a_tg_config_framing(struct trf7970a *trf, int framing) in trf7970a_tg_config_framing()
1731 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_tg_configure_hw()
1768 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in _trf7970a_tg_listen()
1846 const struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_tg_listen()
1858 const struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_tg_listen_md()
1879 const struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_tg_get_rf_tech()
1891 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_abort_cmd()
1928 static int trf7970a_power_up(struct trf7970a *trf) in trf7970a_power_up()
1960 static int trf7970a_power_down(struct trf7970a *trf) in trf7970a_power_down()
1990 static int trf7970a_startup(struct trf7970a *trf) in trf7970a_startup()
2009 static void trf7970a_shutdown(struct trf7970a *trf) in trf7970a_shutdown()
2047 struct trf7970a *trf; in trf7970a_probe()
2107 dev_dbg(trf->dev, "trf7970a configured for 27MHz crystal\n"); in trf7970a_probe()
2129 "trf7970a", trf); in trf7970a_probe()
2170 dev_dbg(trf->dev, "trf7970a config vdd_io to 1.8V\n"); in trf7970a_probe()
2221 struct trf7970a *trf = spi_get_drvdata(spi); in trf7970a_remove()
2242 struct trf7970a *trf = spi_get_drvdata(spi); in trf7970a_suspend()
2256 struct trf7970a *trf = spi_get_drvdata(spi); in trf7970a_resume()
2273 struct trf7970a *trf = spi_get_drvdata(spi); in trf7970a_pm_runtime_suspend()
2288 struct trf7970a *trf = spi_get_drvdata(spi); in trf7970a_pm_runtime_resume()
2306 {.compatible = "ti,trf7970a",},
2313 {"trf7970a", 0},
2324 .name = "trf7970a",
2334 MODULE_DESCRIPTION("TI trf7970a RFID/NFC Transceiver Driver");