Home
last modified time | relevance | path

Searched refs:nfc (Results 1 – 67 of 67) sorted by relevance

/linux-4.4.14/drivers/mtd/nand/
Dvf610_nfc.c204 static inline u32 vf610_nfc_read(struct vf610_nfc *nfc, uint reg) in vf610_nfc_read() argument
206 return readl(nfc->regs + reg); in vf610_nfc_read()
209 static inline void vf610_nfc_write(struct vf610_nfc *nfc, uint reg, u32 val) in vf610_nfc_write() argument
211 writel(val, nfc->regs + reg); in vf610_nfc_write()
214 static inline void vf610_nfc_set(struct vf610_nfc *nfc, uint reg, u32 bits) in vf610_nfc_set() argument
216 vf610_nfc_write(nfc, reg, vf610_nfc_read(nfc, reg) | bits); in vf610_nfc_set()
219 static inline void vf610_nfc_clear(struct vf610_nfc *nfc, uint reg, u32 bits) in vf610_nfc_clear() argument
221 vf610_nfc_write(nfc, reg, vf610_nfc_read(nfc, reg) & ~bits); in vf610_nfc_clear()
224 static inline void vf610_nfc_set_field(struct vf610_nfc *nfc, u32 reg, in vf610_nfc_set_field() argument
227 vf610_nfc_write(nfc, reg, in vf610_nfc_set_field()
[all …]
Dsunxi_nand.c285 struct sunxi_nfc *nfc = dev_id; in sunxi_nfc_interrupt() local
286 u32 st = readl(nfc->regs + NFC_REG_ST); in sunxi_nfc_interrupt()
287 u32 ien = readl(nfc->regs + NFC_REG_INT); in sunxi_nfc_interrupt()
293 complete(&nfc->complete); in sunxi_nfc_interrupt()
295 writel(st & NFC_INT_MASK, nfc->regs + NFC_REG_ST); in sunxi_nfc_interrupt()
296 writel(~st & ien & NFC_INT_MASK, nfc->regs + NFC_REG_INT); in sunxi_nfc_interrupt()
301 static int sunxi_nfc_wait_int(struct sunxi_nfc *nfc, u32 flags, in sunxi_nfc_wait_int() argument
304 init_completion(&nfc->complete); in sunxi_nfc_wait_int()
306 writel(flags, nfc->regs + NFC_REG_INT); in sunxi_nfc_wait_int()
311 if (!wait_for_completion_timeout(&nfc->complete, in sunxi_nfc_wait_int()
[all …]
Datmel_nand.c129 struct atmel_nfc *nfc; member
273 if (host->nfc && host->nfc->use_nfc_sram && host->nfc->data_in_sram) { in atmel_read_buf8()
274 memcpy(buf, host->nfc->data_in_sram, len); in atmel_read_buf8()
275 host->nfc->data_in_sram += len; in atmel_read_buf8()
286 if (host->nfc && host->nfc->use_nfc_sram && host->nfc->data_in_sram) { in atmel_read_buf16()
287 memcpy(buf, host->nfc->data_in_sram, len); in atmel_read_buf16()
288 host->nfc->data_in_sram += len; in atmel_read_buf16()
323 nfc_writel(host->nfc->hsmc_regs, BANK, ATMEL_HSMC_NFC_BANK1); in nfc_set_sram_bank()
325 nfc_writel(host->nfc->hsmc_regs, BANK, ATMEL_HSMC_NFC_BANK0); in nfc_set_sram_bank()
333 if (nfc_readl(host->nfc->hsmc_regs, BANK) & ATMEL_HSMC_NFC_BANK1) in nfc_get_sram_off()
[all …]
/linux-4.4.14/drivers/nfc/
DKconfig45 This adds support to use an mei bus nfc device. Select this if you
71 source "drivers/nfc/fdp/Kconfig"
72 source "drivers/nfc/pn544/Kconfig"
73 source "drivers/nfc/microread/Kconfig"
74 source "drivers/nfc/nfcmrvl/Kconfig"
75 source "drivers/nfc/st21nfca/Kconfig"
76 source "drivers/nfc/st-nci/Kconfig"
77 source "drivers/nfc/nxp-nci/Kconfig"
78 source "drivers/nfc/s3fwrn5/Kconfig"
/linux-4.4.14/Documentation/devicetree/bindings/net/nfc/
Dnfcmrvl.txt5 - "marvell,nfc-uart" or "mrvl,nfc-uart" for UART devices
6 - "marvell,nfc-i2c" for I2C devices
7 - "marvell,nfc-spi" for SPI devices
31 compatible = "marvell,nfc-uart";
48 compatible = "marvell,nfc-i2c";
70 compatible = "marvell,nfc-spi";
Dst-nci-spi.txt13 - ese-present: Specifies that an ese is physically connected to the nfc
16 connected to the nfc controller.
Dst-nci-i2c.txt14 - ese-present: Specifies that an ese is physically connected to the nfc
17 connected to the nfc controller.
Dst21nfca.txt14 - ese-present: Specifies that an ese is physically connected to the nfc
17 connected to the nfc controller.
Dtrf7970a.txt30 nfc@0 {
/linux-4.4.14/net/nfc/
DKconfig15 be called nfc.
31 source "net/nfc/nci/Kconfig"
32 source "net/nfc/hci/Kconfig"
34 source "drivers/nfc/Kconfig"
DMakefile5 obj-$(CONFIG_NFC) += nfc.o
10 nfc-objs := core.o netlink.o af_nfc.o rawsock.o llcp_core.o llcp_commands.o \
/linux-4.4.14/Documentation/devicetree/bindings/mtd/
Dvf610-nfc.txt7 - compatible: Should be set to "fsl,vf610-nfc".
27 - compatible: Should be set to "fsl,vf610-nfc-cs".
39 nfc: nand@400e0000 {
40 compatible = "fsl,vf610-nfc";
46 clock-names = "nfc";
51 compatible = "fsl,vf610-nfc-nandcs";
Dhisi504-nand.txt5 - compatible: Should be "hisilicon,504-nfc".
9 - interrupts: Interrupt number for nfc.
30 compatible = "hisilicon,504-nfc";
Datmel-nand.txt37 - compatible : "atmel,sama5d3-nfc".
100 nfc@70000000 {
101 compatible = "atmel,sama5d3-nfc";
Dmxc-nand.txt5 - reg: address range of the nfc block
Dsunxi-nand.txt28 nfc: nand@01c03000 {
/linux-4.4.14/drivers/mtd/nand/gpmi-nand/
Dgpmi-lib.c330 struct timing_threshod *nfc = &timing_default_threshold; in gpmi_nfc_compute_hardware_timing() local
371 nfc->clock_frequency_in_hz = clk_get_rate(r->clock[0]); in gpmi_nfc_compute_hardware_timing()
372 clock_frequency_in_hz = nfc->clock_frequency_in_hz; in gpmi_nfc_compute_hardware_timing()
450 if (clock_period_in_ns > (nfc->max_dll_clock_period_in_ns >> 1)) { in gpmi_nfc_compute_hardware_timing()
463 if (clock_period_in_ns > nfc->max_dll_clock_period_in_ns) in gpmi_nfc_compute_hardware_timing()
471 (nfc->max_sample_delay_factor * clock_period_in_ns) >> in gpmi_nfc_compute_hardware_timing()
478 if (max_sample_delay_in_ns > nfc->max_dll_delay_in_ns) in gpmi_nfc_compute_hardware_timing()
479 max_sample_delay_in_ns = nfc->max_dll_delay_in_ns; in gpmi_nfc_compute_hardware_timing()
492 nfc->internal_data_setup_in_ns; in gpmi_nfc_compute_hardware_timing()
505 (data_setup_in_cycles < nfc->max_data_setup_cycles)) { in gpmi_nfc_compute_hardware_timing()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c459 struct ethtool_rxnfc *nfc) in i40evf_set_rss_hash_opt() argument
469 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in i40evf_set_rss_hash_opt()
474 if (!(nfc->data & RXH_IP_SRC) || in i40evf_set_rss_hash_opt()
475 !(nfc->data & RXH_IP_DST)) in i40evf_set_rss_hash_opt()
478 switch (nfc->flow_type) { in i40evf_set_rss_hash_opt()
480 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in i40evf_set_rss_hash_opt()
492 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in i40evf_set_rss_hash_opt()
504 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in i40evf_set_rss_hash_opt()
518 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in i40evf_set_rss_hash_opt()
535 if ((nfc->data & RXH_L4_B_0_1) || in i40evf_set_rss_hash_opt()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c814 struct ethtool_rxnfc *nfc) in fm10k_set_rss_hash_opt() argument
821 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in fm10k_set_rss_hash_opt()
825 switch (nfc->flow_type) { in fm10k_set_rss_hash_opt()
828 if (!(nfc->data & RXH_IP_SRC) || in fm10k_set_rss_hash_opt()
829 !(nfc->data & RXH_IP_DST) || in fm10k_set_rss_hash_opt()
830 !(nfc->data & RXH_L4_B_0_1) || in fm10k_set_rss_hash_opt()
831 !(nfc->data & RXH_L4_B_2_3)) in fm10k_set_rss_hash_opt()
835 if (!(nfc->data & RXH_IP_SRC) || in fm10k_set_rss_hash_opt()
836 !(nfc->data & RXH_IP_DST)) in fm10k_set_rss_hash_opt()
838 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in fm10k_set_rss_hash_opt()
[all …]
/linux-4.4.14/arch/arm/boot/dts/
Dvf-colibri.dtsi55 &nfc {
63 compatible = "fsl,vf610-nfc-nandcs";
Dimx28-m28cu3.dts33 label = "gpmi-nfc-0-boot";
39 label = "gpmi-nfc-general-use";
Dimx35-pdk.dts56 &nfc {
Dimx25-eukrea-cpuimx25.dtsi68 &nfc {
Dimx51-apf51.dts78 &nfc {
Dimx27-phytec-phycard-s-som.dtsi96 &nfc {
Dvf610-twr.dts304 &nfc {
312 compatible = "fsl,vf610-nfc-nandcs";
Dimx25-karo-tx25.dts106 &nfc {
Dimx27-apf27.dts84 &nfc {
Dimx35-eukrea-cpuimx35.dtsi91 &nfc {
Dimx51-eukrea-cpuimx51.dtsi99 &nfc {
Dimx53-m53.dtsi134 &nfc {
Dvfxxx.dtsi569 nfc: nand@400e0000 { label
572 compatible = "fsl,vf610-nfc";
576 clock-names = "nfc";
Dimx27-pdk.dts100 &nfc {
Dimx27-eukrea-cpuimx27.dtsi54 &nfc {
Dimx53-voipac-dmm-668.dtsi259 &nfc {
Dste-hrefv60plus.dtsi126 nfc {
Dimx27-phytec-phycore-som.dtsi301 &nfc {
Dimx25-pdk.dts264 &nfc {
Darmada-385-db-ap.dts162 nfc: flash@d0000 { label
Dimx51-digi-connectcore-som.dtsi192 &nfc {
Dimx35.dtsi341 nfc: nand@bb000000 { label
Dimx53-tx53.dtsi485 &nfc {
Dimx25.dtsi541 nfc: nand@bb000000 { label
Dimx27.dtsi562 nfc: nand@d8000000 { label
Dimx51.dtsi547 nfc: nand@83fdb000 { label
Dsama5d3.dtsi1480 nfc@70000000 {
1481 compatible = "atmel,sama5d3-nfc";
Dimx53.dtsi711 nfc: nand@63fdb000 { label
Dsama5d4.dtsi300 nfc@90000000 {
301 compatible = "atmel,sama5d3-nfc";
/linux-4.4.14/drivers/clk/imx/
Dclk-imx31.c51 dummy, ckih, ckil, mpll, spll, upll, mcu_main, hsp, ahb, nfc, ipg, enumerator
92 clk[nfc] = imx_clk_divider("nfc", "ahb", base + MXC_CCM_PDR0, 8, 3); in _mx31_clocks_init()
177 clk_register_clkdev(clk[nfc], NULL, "imx27-nand.0"); in mx31_clocks_init()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2490 struct ethtool_rxnfc *nfc) in igb_set_rss_hash_opt() argument
2497 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in igb_set_rss_hash_opt()
2501 switch (nfc->flow_type) { in igb_set_rss_hash_opt()
2504 if (!(nfc->data & RXH_IP_SRC) || in igb_set_rss_hash_opt()
2505 !(nfc->data & RXH_IP_DST) || in igb_set_rss_hash_opt()
2506 !(nfc->data & RXH_L4_B_0_1) || in igb_set_rss_hash_opt()
2507 !(nfc->data & RXH_L4_B_2_3)) in igb_set_rss_hash_opt()
2511 if (!(nfc->data & RXH_IP_SRC) || in igb_set_rss_hash_opt()
2512 !(nfc->data & RXH_IP_DST)) in igb_set_rss_hash_opt()
2514 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in igb_set_rss_hash_opt()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2741 struct ethtool_rxnfc *nfc) in ixgbe_set_rss_hash_opt() argument
2749 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in ixgbe_set_rss_hash_opt()
2753 switch (nfc->flow_type) { in ixgbe_set_rss_hash_opt()
2756 if (!(nfc->data & RXH_IP_SRC) || in ixgbe_set_rss_hash_opt()
2757 !(nfc->data & RXH_IP_DST) || in ixgbe_set_rss_hash_opt()
2758 !(nfc->data & RXH_L4_B_0_1) || in ixgbe_set_rss_hash_opt()
2759 !(nfc->data & RXH_L4_B_2_3)) in ixgbe_set_rss_hash_opt()
2763 if (!(nfc->data & RXH_IP_SRC) || in ixgbe_set_rss_hash_opt()
2764 !(nfc->data & RXH_IP_DST)) in ixgbe_set_rss_hash_opt()
2766 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in ixgbe_set_rss_hash_opt()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2145 static int i40e_set_rss_hash_opt(struct i40e_pf *pf, struct ethtool_rxnfc *nfc) in i40e_set_rss_hash_opt() argument
2154 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in i40e_set_rss_hash_opt()
2159 if (!(nfc->data & RXH_IP_SRC) || in i40e_set_rss_hash_opt()
2160 !(nfc->data & RXH_IP_DST)) in i40e_set_rss_hash_opt()
2163 switch (nfc->flow_type) { in i40e_set_rss_hash_opt()
2165 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in i40e_set_rss_hash_opt()
2177 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in i40e_set_rss_hash_opt()
2189 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in i40e_set_rss_hash_opt()
2203 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in i40e_set_rss_hash_opt()
2220 if ((nfc->data & RXH_L4_B_0_1) || in i40e_set_rss_hash_opt()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dimx31-clock.txt24 nfc 9
/linux-4.4.14/Documentation/nfc/
Dnfc-pn544.txt8 communication. The driver goes under drives/nfc/ and is compiled as a
Dnfc-hci.txt11 backend, implementing an abstract nfc device and translating NFC Core API
17 HCI registers as an nfc device with NFC Core. Requests coming from userspace are
97 to nfc core.
99 - target_from_gate() is an optional entrypoint to return the nfc protocols
169 The llc must be registered with nfc before it can be used. Do that by
/linux-4.4.14/net/
DMakefile69 obj-$(CONFIG_NFC) += nfc/
DKconfig376 source "net/nfc/Kconfig"
/linux-4.4.14/arch/powerpc/boot/dts/
Dpdm360ng.dts30 nfc@40000000 {
Dmpc5121ads.dts18 nfc@40000000 {
Dmpc5121.dtsi65 nfc@40000000 {
66 compatible = "fsl,mpc5121-nfc";
Dac14xx.dts40 nfc@40000000 {
/linux-4.4.14/drivers/
DMakefile67 obj-y += base/ block/ misc/ mfd/ nfc/
/linux-4.4.14/drivers/net/ethernet/sun/
Dniu.c7082 static int niu_get_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc) in niu_get_hash_opts() argument
7086 nfc->data = 0; in niu_get_hash_opts()
7088 if (!niu_ethflow_to_class(nfc->flow_type, &class)) in niu_get_hash_opts()
7093 nfc->data = RXH_DISCARD; in niu_get_hash_opts()
7095 nfc->data = niu_flowkey_to_ethflow(np->parent->flow_key[class - in niu_get_hash_opts()
7177 struct ethtool_rxnfc *nfc) in niu_get_ethtool_tcam_entry() argument
7181 struct ethtool_rx_flow_spec *fsp = &nfc->fs; in niu_get_ethtool_tcam_entry()
7186 idx = tcam_get_index(np, (u16)nfc->fs.location); in niu_get_ethtool_tcam_entry()
7191 parent->index, (u16)nfc->fs.location, idx); in niu_get_ethtool_tcam_entry()
7250 nfc->data = tcam_get_size(np); in niu_get_ethtool_tcam_entry()
[all …]
/linux-4.4.14/Documentation/networking/
D00-INDEX157 nfc.txt
/linux-4.4.14/include/uapi/linux/
DKbuild297 header-y += nfc.h
/linux-4.4.14/Documentation/
D00-INDEX336 nfc/
/linux-4.4.14/
DMAINTAINERS7497 L: linux-nfc@lists.01.org (subscribers-only)
7499 F: net/nfc/
7500 F: include/net/nfc/
7501 F: include/uapi/linux/nfc.h
7502 F: drivers/nfc/
7504 F: Documentation/devicetree/bindings/net/nfc/
7627 L: linux-nfc@lists.01.org (moderated for non-subscribers)
7629 F: drivers/nfc/nxp-nci
9279 L: linux-nfc@lists.01.org (moderated for non-subscribers)
9281 F: drivers/nfc/s3fwrn5