Home
last modified time | relevance | path

Searched full:nci (Results 1 – 25 of 87) sorted by relevance

1234

/openbmc/linux/net/nfc/nci/
H A DKconfig4 tristate "NCI protocol support"
7 NCI (NFC Controller Interface) is a communication protocol between
10 Say Y here to compile NCI support into the kernel or say M to
11 compile it as module (nci).
16 tristate "NCI over SPI protocol support"
19 NCI (NFC Controller Interface) is a communication protocol between
22 Say yes if you use an NCI driver that requires SPI link layer.
26 tristate "NCI over UART protocol support"
29 Say yes if you use an NCI driver that requires UART link layer.
H A DMakefile3 # Makefile for the Linux NFC NCI layer.
6 obj-$(CONFIG_NFC_NCI) += nci.o
8 nci-objs := core.o data.o lib.o ntf.o rsp.o hci.o
H A Dspi.c66 /* add the NCI SPI header to the start of the buffer */ in nci_spi_send()
114 /* ---- Interface to NCI SPI drivers ---- */
117 * nci_spi_allocate_spi - allocate a new nci spi
122 * @ndev: nci dev to send incoming nci frames to
157 /* add the NCI SPI header to the start of the buffer */ in send_acknowledge()
271 * nci_spi_read - read frame from NCI SPI drivers
273 * @nspi: The nci spi
H A Ddata.c21 #include <net/nfc/nci.h>
62 /* ----------------- NCI TX Data ----------------- */
166 /* Send NCI data */
208 /* ----------------- NCI RX Data ----------------- */
276 pr_debug("NCI RX: MT=data, PBF=%d, conn_id=%d, plen=%d\n", in nci_rx_data_packet()
287 /* strip the nci data header */ in nci_rx_data_packet()
H A Dcore.c30 #include <net/nfc/nci.h>
76 /* ---- NCI requests ---- */
610 /* NCI command timer function */
619 /* NCI data exchange timer function */
1140 /* ---- Interface to NCI drivers ---- */
1142 * nci_allocate_device - allocate a new nci device
1203 * nci_free_device - deallocate nci device
1205 * @ndev: The nci device to deallocate
1220 * nci_register_device - register a nci device in the nfc subsystem
1222 * @ndev: The nci device to register
[all …]
H A Duart.c30 #include <net/nfc/nci.h>
222 * This handler supposes that NCI frames are sent over UART link without any
223 * framing. It reads NCI header, retrieve the packet size and once all packet
233 "receive data from tty but no NCI dev is attached yet, drop buffer\n"); in nci_uart_default_recv_buf()
387 pr_info("NCI uart driver '%s [%d]' registered\n", nu->name, nu->driver); in nci_uart_register()
395 pr_info("NCI uart driver '%s [%d]' unregistered\n", nu->name, in nci_uart_unregister()
452 MODULE_DESCRIPTION("NFC NCI UART driver");
H A Dlib.c20 #include <net/nfc/nci.h>
23 /* NCI status codes to Unix errno mapping */
H A Drsp.c23 #include <net/nfc/nci.h>
26 /* Handle NCI Response packets */
35 /* Handle NCI 1.x ver */ in nci_core_reset_rsp_packet()
352 pr_debug("NCI RX: MT=rsp, PBF=%d, GID=0x%x, OID=0x%x, plen=%d\n", in nci_rsp_packet()
358 /* strip the nci control header */ in nci_rsp_packet()
/openbmc/linux/include/net/nfc/
H A Dnci.h21 /* NCI constants */
31 /* NCI Status Codes */
76 /* NCI RF Technology and Mode */
91 /* NCI RF Technologies */
97 /* NCI Bit Rates */
107 /* NCI RF Protocols */
116 /* NCI RF Interfaces */
122 /* NCI Configuration Parameter Tags */
129 /* NCI Configuration Parameters masks */
136 /* NCI 2.x Feature Enable Bit */
[all …]
H A Dnci_core.h25 #include <net/nfc/nci.h>
27 /* NCI device flags */
36 /* NCI device states */
47 /* NCI timeouts */
101 /* NCI specification 4.4.2 Connection Creation
195 /* NCI Core structures */
270 /* ----- NCI Devices ----- */
375 /* ----- NCI requests ----- */
386 /* ----- NCI status code ----- */
389 /* ----- NCI over SPI acknowledge modes ----- */
[all …]
/openbmc/linux/drivers/nfc/st-nci/
H A DKconfig5 STMicroelectronics NFC NCI chips core driver. It implements the chipset
6 NCI logic and hooks into the NFC kernel APIs. Physical layers will
10 tristate "STMicroelectronics ST NCI NFC driver (I2C)"
15 STMicroelectronics NFC NCI chips family.
22 tristate "STMicroelectronics ST NCI NFC driver (SPI)"
27 STMicroelectronics NFC NCI chips family.
H A DMakefile3 # Makefile for ST_NCI NCI based NFC driver
6 st-nci-objs = ndlc.o core.o se.o vendor_cmds.o
7 obj-$(CONFIG_NFC_ST_NCI) += st-nci.o
H A Dcore.c3 * NCI based Driver for STMicroelectronics NFC Chip
10 #include <net/nfc/nci.h>
13 #include "st-nci.h"
15 #define DRIVER_DESC "NCI NFC driver for ST_NCI"
151 pr_err("Cannot register nfc device to nci core\n"); in st_nci_probe()
H A Dspi.c3 * SPI Link Layer for ST NCI based Driver
17 #include <net/nfc/nci.h>
19 #include "st-nci.h"
21 #define DRIVER_DESC "NCI NFC driver for ST_NCI"
27 #define ST_NCI_SPI_MIN_SIZE 4 /* PCB(1) + NCI Packet header(3) */
H A Di2c.c3 * I2C Link Layer for ST NCI NFC controller familly based Driver
18 #include "st-nci.h"
20 #define DRIVER_DESC "NCI NFC driver for ST_NCI"
26 #define ST_NCI_I2C_MIN_SIZE 4 /* PCB(1) + NCI Packet header(3) */
/openbmc/linux/drivers/nfc/
H A DKconfig53 tristate "NCI device simulator driver"
56 NCI virtual device simulates a NCI device to the user.
57 It can be used to validate the NCI module and applications.
58 This driver supports communication between the virtual NCI device and
69 source "drivers/nfc/st-nci/Kconfig"
70 source "drivers/nfc/nxp-nci/Kconfig"
H A DMakefile16 obj-$(CONFIG_NFC_ST_NCI) += st-nci/
17 obj-$(CONFIG_NFC_NXP_NCI) += nxp-nci/
/openbmc/linux/drivers/nfc/nxp-nci/
H A DKconfig3 tristate "NXP-NCI NFC driver"
6 Generic core driver for NXP NCI chips such as the NPC100 (PN547),
8 This is a driver based on the NCI NFC kernel layers and
16 tristate "NXP-NCI I2C support"
19 This module adds support for an I2C interface to the NXP NCI
H A DMakefile3 # Makefile for NXP-NCI NFC driver
6 nxp-nci-objs = core.o firmware.o
9 obj-$(CONFIG_NFC_NXP_NCI) += nxp-nci.o
H A Dcore.c3 * Generic driver for NXP NCI NFC chips
19 #include "nxp-nci.h"
201 MODULE_DESCRIPTION("NXP NCI NFC driver");
/openbmc/linux/Documentation/devicetree/bindings/net/nfc/
H A Dnxp,nci.yaml4 $id: http://devicetree.org/schemas/net/nfc/nxp,nci.yaml#
7 title: NXP Semiconductors NCI NFC controller
15 - const: nxp,nxp-nci-i2c
20 - const: nxp,nxp-nci-i2c
52 compatible = "nxp,nxp-nci-i2c";
H A Dmarvell,nci.yaml4 $id: http://devicetree.org/schemas/net/nfc/marvell,nci.yaml#
7 title: Marvell International Ltd. NCI NFC controller
22 Specifies that the chip is muxing NCI over HCI frames
/openbmc/linux/drivers/nfc/nfcmrvl/
H A Di2c.c14 #include <net/nfc/nci.h>
31 /* Read NCI header to know the payload size */ in nfcmrvl_i2c_read()
34 nfc_err(&drv_data->i2c->dev, "cannot read NCI header\n"); in nfcmrvl_i2c_read()
43 /* Copy NCI header into the SKB */ in nfcmrvl_i2c_read()
47 /* Read the NCI payload */ in nfcmrvl_i2c_read()
/openbmc/linux/fs/nilfs2/
H A Dcpfile.c425 size_t nci) in nilfs_cpfile_do_get_cpinfo() argument
440 for (n = 0; n < nci; cno += ncps) { in nilfs_cpfile_do_get_cpinfo()
452 for (i = 0; i < ncps && n < nci; i++, cp = (void *)cp + cpsz) { in nilfs_cpfile_do_get_cpinfo()
477 size_t nci) in nilfs_cpfile_do_get_ssinfo() argument
516 while (n < nci) { in nilfs_cpfile_do_get_ssinfo()
559 * @nci:
563 void *buf, unsigned int cisz, size_t nci) in nilfs_cpfile_get_cpinfo() argument
567 return nilfs_cpfile_do_get_cpinfo(cpfile, cnop, buf, cisz, nci); in nilfs_cpfile_get_cpinfo()
569 return nilfs_cpfile_do_get_ssinfo(cpfile, cnop, buf, cisz, nci); in nilfs_cpfile_get_cpinfo()
584 ssize_t nci; in nilfs_cpfile_delete_checkpoint() local
[all …]
/openbmc/linux/tools/testing/selftests/nci/
H A Dnci_dev.c6 * Test code for nci
298 FIXTURE(NCI) { in FIXTURE() argument
309 FIXTURE_VARIANT(NCI) { in FIXTURE_VARIANT() argument
313 FIXTURE_VARIANT_ADD(NCI, NCI1_0) { in FIXTURE_VARIANT_ADD() argument
317 FIXTURE_VARIANT_ADD(NCI, NCI2_0) { in FIXTURE_VARIANT_ADD() argument
402 FIXTURE_SETUP(NCI) in FIXTURE_SETUP() argument
497 FIXTURE_TEARDOWN(NCI) in FIXTURE_TEARDOWN() argument
526 TEST_F(NCI, init) in TEST_F() argument
625 TEST_F(NCI, start_poll) in TEST_F() argument
839 TEST_F(NCI, t4t_tag_read) in TEST_F() argument
[all …]

1234