/kernel/linux/linux-5.10/drivers/nfc/ |
H A D | trf7970a.c | 456 static int trf7970a_cmd(struct trf7970a *trf, u8 opcode) in trf7970a_cmd() argument 461 dev_dbg(trf->dev, "cmd: 0x%x\n", cmd); in trf7970a_cmd() 463 ret = spi_write(trf->spi, &cmd, 1); in trf7970a_cmd() 465 dev_err(trf->dev, "%s - cmd: 0x%x, ret: %d\n", __func__, cmd, in trf7970a_cmd() 470 static int trf7970a_read(struct trf7970a *trf, u8 reg, u8 *val) in trf7970a_read() argument 475 ret = spi_write_then_read(trf->spi, &addr, 1, val, 1); in trf7970a_read() 477 dev_err(trf->dev, "%s - addr: 0x%x, ret: %d\n", __func__, addr, in trf7970a_read() 480 dev_dbg(trf->dev, "read(0x%x): 0x%x\n", addr, *val); in trf7970a_read() 485 static int trf7970a_read_cont(struct trf7970a *trf, u8 reg, u8 *buf, in trf7970a_read_cont() argument 493 dev_dbg(trf in trf7970a_read_cont() 514 trf7970a_write(struct trf7970a *trf, u8 reg, u8 val) trf7970a_write() argument 529 trf7970a_read_irqstatus(struct trf7970a *trf, u8 *status) trf7970a_read_irqstatus() argument 553 trf7970a_read_target_proto(struct trf7970a *trf, u8 *target_proto) trf7970a_read_target_proto() argument 572 trf7970a_mode_detect(struct trf7970a *trf, u8 *rf_tech) trf7970a_mode_detect() argument 605 trf7970a_send_upstream(struct trf7970a *trf) trf7970a_send_upstream() argument 633 trf7970a_send_err_upstream(struct trf7970a *trf, int errno) trf7970a_send_err_upstream() argument 645 trf7970a_transmit(struct trf7970a *trf, struct sk_buff *skb, unsigned int len, u8 *prefix, unsigned int prefix_len) trf7970a_transmit() argument 703 trf7970a_fill_fifo(struct trf7970a *trf) trf7970a_fill_fifo() argument 738 trf7970a_drain_fifo(struct trf7970a *trf, u8 status) trf7970a_drain_fifo() argument 822 struct trf7970a *trf = dev_id; trf7970a_irq() local 982 trf7970a_issue_eof(struct trf7970a *trf) trf7970a_issue_eof() argument 1007 struct trf7970a *trf = container_of(work, struct trf7970a, trf7970a_timeout_work_handler() local 1027 trf7970a_init(struct trf7970a *trf) trf7970a_init() argument 1079 trf7970a_switch_rf_off(struct trf7970a *trf) trf7970a_switch_rf_off() argument 1098 trf7970a_switch_rf_on(struct trf7970a *trf) trf7970a_switch_rf_on() argument 1125 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_switch_rf() local 1169 trf7970a_in_config_rf_tech(struct trf7970a *trf, int tech) trf7970a_in_config_rf_tech() argument 1229 trf7970a_is_rf_field(struct trf7970a *trf, bool *is_rf_field) trf7970a_is_rf_field() argument 1263 trf7970a_in_config_framing(struct trf7970a *trf, int framing) trf7970a_in_config_framing() argument 1341 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_in_configure_hw() local 1390 trf7970a_per_cmd_config(struct trf7970a *trf, struct sk_buff *skb) trf7970a_per_cmd_config() argument 1462 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_send_cmd() local 1562 trf7970a_tg_config_rf_tech(struct trf7970a *trf, int tech) trf7970a_tg_config_rf_tech() argument 1621 trf7970a_tg_config_framing(struct trf7970a *trf, int framing) trf7970a_tg_config_framing() argument 1683 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_tg_configure_hw() local 1720 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); _trf7970a_tg_listen() local 1794 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_tg_listen() local 1806 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_tg_listen_md() local 1827 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_tg_get_rf_tech() local 1839 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_abort_cmd() local 1876 trf7970a_power_up(struct trf7970a *trf) trf7970a_power_up() argument 1908 trf7970a_power_down(struct trf7970a *trf) trf7970a_power_down() argument 1938 trf7970a_startup(struct trf7970a *trf) trf7970a_startup() argument 1953 trf7970a_shutdown(struct trf7970a *trf) trf7970a_shutdown() argument 1991 struct trf7970a *trf; trf7970a_probe() local 2148 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_remove() local 2170 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_suspend() local 2186 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_resume() local 2205 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_pm_runtime_suspend() local 2222 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_pm_runtime_resume() local [all...] |
/kernel/linux/linux-6.6/drivers/nfc/ |
H A D | trf7970a.c | 456 static int trf7970a_cmd(struct trf7970a *trf, u8 opcode) in trf7970a_cmd() argument 461 dev_dbg(trf->dev, "cmd: 0x%x\n", cmd); in trf7970a_cmd() 463 ret = spi_write(trf->spi, &cmd, 1); in trf7970a_cmd() 465 dev_err(trf->dev, "%s - cmd: 0x%x, ret: %d\n", __func__, cmd, in trf7970a_cmd() 470 static int trf7970a_read(struct trf7970a *trf, u8 reg, u8 *val) in trf7970a_read() argument 475 ret = spi_write_then_read(trf->spi, &addr, 1, val, 1); in trf7970a_read() 477 dev_err(trf->dev, "%s - addr: 0x%x, ret: %d\n", __func__, addr, in trf7970a_read() 480 dev_dbg(trf->dev, "read(0x%x): 0x%x\n", addr, *val); in trf7970a_read() 485 static int trf7970a_read_cont(struct trf7970a *trf, u8 reg, u8 *buf, in trf7970a_read_cont() argument 493 dev_dbg(trf in trf7970a_read_cont() 514 trf7970a_write(struct trf7970a *trf, u8 reg, u8 val) trf7970a_write() argument 529 trf7970a_read_irqstatus(struct trf7970a *trf, u8 *status) trf7970a_read_irqstatus() argument 553 trf7970a_read_target_proto(struct trf7970a *trf, u8 *target_proto) trf7970a_read_target_proto() argument 572 trf7970a_mode_detect(struct trf7970a *trf, u8 *rf_tech) trf7970a_mode_detect() argument 605 trf7970a_send_upstream(struct trf7970a *trf) trf7970a_send_upstream() argument 633 trf7970a_send_err_upstream(struct trf7970a *trf, int errno) trf7970a_send_err_upstream() argument 645 trf7970a_transmit(struct trf7970a *trf, struct sk_buff *skb, unsigned int len, const u8 *prefix, unsigned int prefix_len) trf7970a_transmit() argument 703 trf7970a_fill_fifo(struct trf7970a *trf) trf7970a_fill_fifo() argument 738 trf7970a_drain_fifo(struct trf7970a *trf, u8 status) trf7970a_drain_fifo() argument 822 struct trf7970a *trf = dev_id; trf7970a_irq() local 982 trf7970a_issue_eof(struct trf7970a *trf) trf7970a_issue_eof() argument 1007 struct trf7970a *trf = container_of(work, struct trf7970a, trf7970a_timeout_work_handler() local 1027 trf7970a_init(struct trf7970a *trf) trf7970a_init() argument 1079 trf7970a_switch_rf_off(struct trf7970a *trf) trf7970a_switch_rf_off() argument 1098 trf7970a_switch_rf_on(struct trf7970a *trf) trf7970a_switch_rf_on() argument 1125 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_switch_rf() local 1169 trf7970a_in_config_rf_tech(struct trf7970a *trf, int tech) trf7970a_in_config_rf_tech() argument 1229 trf7970a_is_rf_field(struct trf7970a *trf, bool *is_rf_field) trf7970a_is_rf_field() argument 1263 trf7970a_in_config_framing(struct trf7970a *trf, int framing) trf7970a_in_config_framing() argument 1341 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_in_configure_hw() local 1390 trf7970a_per_cmd_config(struct trf7970a *trf, const struct sk_buff *skb) trf7970a_per_cmd_config() argument 1463 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_send_cmd() local 1563 trf7970a_tg_config_rf_tech(struct trf7970a *trf, int tech) trf7970a_tg_config_rf_tech() argument 1622 trf7970a_tg_config_framing(struct trf7970a *trf, int framing) trf7970a_tg_config_framing() argument 1684 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_tg_configure_hw() local 1721 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); _trf7970a_tg_listen() local 1795 const struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_tg_listen() local 1807 const struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_tg_listen_md() local 1828 const struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_tg_get_rf_tech() local 1840 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); trf7970a_abort_cmd() local 1877 trf7970a_power_up(struct trf7970a *trf) trf7970a_power_up() argument 1909 trf7970a_power_down(struct trf7970a *trf) trf7970a_power_down() argument 1939 trf7970a_startup(struct trf7970a *trf) trf7970a_startup() argument 1954 trf7970a_shutdown(struct trf7970a *trf) trf7970a_shutdown() argument 1992 struct trf7970a *trf; trf7970a_probe() local 2149 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_remove() local 2169 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_suspend() local 2183 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_resume() local 2200 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_pm_runtime_suspend() local 2215 struct trf7970a *trf = spi_get_drvdata(spi); trf7970a_pm_runtime_resume() local [all...] |