st95context 244 drivers/nfc/st95hf/core.c static int st95hf_send_recv_cmd(struct st95hf_context *st95context, st95context 252 drivers/nfc/st95hf/core.c struct device *dev = &st95context->spicontext.spidev->dev; st95context 275 drivers/nfc/st95hf/core.c ret = st95hf_spi_send(&st95context->spicontext, st95context 287 drivers/nfc/st95hf/core.c ret = st95hf_spi_recv_response(&st95context->spicontext, st95context 305 drivers/nfc/st95hf/core.c static int st95hf_echo_command(struct st95hf_context *st95context) st95context 310 drivers/nfc/st95hf/core.c result = st95hf_send_recv_cmd(st95context, CMD_ECHO, 0, NULL, false); st95context 315 drivers/nfc/st95hf/core.c result = st95hf_spi_recv_echo_res(&st95context->spicontext, st95context 318 drivers/nfc/st95hf/core.c dev_err(&st95context->spicontext.spidev->dev, st95context 326 drivers/nfc/st95hf/core.c dev_err(&st95context->spicontext.spidev->dev, "err: echo res is 0x%x\n", st95context 474 drivers/nfc/st95hf/core.c static int st95hf_send_spi_reset_sequence(struct st95hf_context *st95context) st95context 479 drivers/nfc/st95hf/core.c result = st95hf_spi_send(&st95context->spicontext, st95context 484 drivers/nfc/st95hf/core.c dev_err(&st95context->spicontext.spidev->dev, st95context 493 drivers/nfc/st95hf/core.c st95hf_send_st95enable_negativepulse(st95context); st95context 501 drivers/nfc/st95hf/core.c static int st95hf_por_sequence(struct st95hf_context *st95context) st95context 506 drivers/nfc/st95hf/core.c st95hf_send_st95enable_negativepulse(st95context); st95context 511 drivers/nfc/st95hf/core.c result = st95hf_echo_command(st95context); st95context 513 drivers/nfc/st95hf/core.c dev_dbg(&st95context->spicontext.spidev->dev, st95context 522 drivers/nfc/st95hf/core.c st95hf_send_st95enable_negativepulse(st95context); st95context 524 drivers/nfc/st95hf/core.c st95hf_send_spi_reset_sequence(st95context); st95context 533 drivers/nfc/st95hf/core.c static int iso14443_config_fdt(struct st95hf_context *st95context, int wtxm) st95context 536 drivers/nfc/st95hf/core.c struct device *dev = &st95context->spicontext.spidev->dev; st95context 537 drivers/nfc/st95hf/core.c struct nfc_digital_dev *nfcddev = st95context->ddev; st95context 544 drivers/nfc/st95hf/core.c st95context->fwi < 4) st95context 545 drivers/nfc/st95hf/core.c st95context->fwi = 4; st95context 549 drivers/nfc/st95hf/core.c new_params[0].new_param_val = st95context->fwi; st95context 558 drivers/nfc/st95hf/core.c result = st95hf_send_recv_cmd(st95context, st95context 570 drivers/nfc/st95hf/core.c result = secondary_configuration_type4a(st95context); st95context 578 drivers/nfc/st95hf/core.c result = st95hf_send_recv_cmd(st95context, st95context 590 drivers/nfc/st95hf/core.c result = secondary_configuration_type4b(st95context); st95context 1072 drivers/nfc/st95hf/core.c struct st95hf_context *st95context; st95context 1077 drivers/nfc/st95hf/core.c st95context = devm_kzalloc(&nfc_spi_dev->dev, st95context 1080 drivers/nfc/st95hf/core.c if (!st95context) st95context 1083 drivers/nfc/st95hf/core.c spicontext = &st95context->spicontext; st95context 1087 drivers/nfc/st95hf/core.c st95context->fwi = st95context 1091 drivers/nfc/st95hf/core.c st95context->st95hf_supply = st95context 1094 drivers/nfc/st95hf/core.c if (IS_ERR(st95context->st95hf_supply)) { st95context 1096 drivers/nfc/st95hf/core.c return PTR_ERR(st95context->st95hf_supply); st95context 1099 drivers/nfc/st95hf/core.c ret = regulator_enable(st95context->st95hf_supply); st95context 1115 drivers/nfc/st95hf/core.c st95context->enable_gpio = st95context 1119 drivers/nfc/st95hf/core.c if (!gpio_is_valid(st95context->enable_gpio)) { st95context 1121 drivers/nfc/st95hf/core.c ret = st95context->enable_gpio; st95context 1125 drivers/nfc/st95hf/core.c ret = devm_gpio_request_one(&nfc_spi_dev->dev, st95context->enable_gpio, st95context 1138 drivers/nfc/st95hf/core.c (void *)st95context) < 0) { st95context 1155 drivers/nfc/st95hf/core.c ret = st95hf_send_spi_reset_sequence(st95context); st95context 1162 drivers/nfc/st95hf/core.c ret = st95hf_por_sequence(st95context); st95context 1169 drivers/nfc/st95hf/core.c st95context->ddev = nfc_digital_allocate_device(&st95hf_nfc_digital_ops, st95context 1174 drivers/nfc/st95hf/core.c if (!st95context->ddev) { st95context 1179 drivers/nfc/st95hf/core.c st95context->nfcdev = st95context->ddev->nfc_dev; st95context 1180 drivers/nfc/st95hf/core.c nfc_digital_set_parent_dev(st95context->ddev, &nfc_spi_dev->dev); st95context 1182 drivers/nfc/st95hf/core.c ret = nfc_digital_register_device(st95context->ddev); st95context 1184 drivers/nfc/st95hf/core.c dev_err(&st95context->nfcdev->dev, "st95hf registration failed\n"); st95context 1189 drivers/nfc/st95hf/core.c nfc_digital_set_drvdata(st95context->ddev, st95context); st95context 1191 drivers/nfc/st95hf/core.c sema_init(&st95context->exchange_lock, 1); st95context 1192 drivers/nfc/st95hf/core.c mutex_init(&st95context->rm_lock); st95context 1197 drivers/nfc/st95hf/core.c nfc_digital_free_device(st95context->ddev); st95context 1199 drivers/nfc/st95hf/core.c if (st95context->st95hf_supply) st95context 1200 drivers/nfc/st95hf/core.c regulator_disable(st95context->st95hf_supply);