/Linux-v4.19/drivers/mtd/nand/raw/ |
D | vf610_nfc.c | 181 static inline u32 vf610_nfc_read(struct vf610_nfc *nfc, uint reg) in vf610_nfc_read() argument 183 return readl(nfc->regs + reg); in vf610_nfc_read() 186 static inline void vf610_nfc_write(struct vf610_nfc *nfc, uint reg, u32 val) in vf610_nfc_write() argument 188 writel(val, nfc->regs + reg); in vf610_nfc_write() 191 static inline void vf610_nfc_set(struct vf610_nfc *nfc, uint reg, u32 bits) in vf610_nfc_set() argument 193 vf610_nfc_write(nfc, reg, vf610_nfc_read(nfc, reg) | bits); in vf610_nfc_set() 196 static inline void vf610_nfc_clear(struct vf610_nfc *nfc, uint reg, u32 bits) in vf610_nfc_clear() argument 198 vf610_nfc_write(nfc, reg, vf610_nfc_read(nfc, reg) & ~bits); in vf610_nfc_clear() 201 static inline void vf610_nfc_set_field(struct vf610_nfc *nfc, u32 reg, in vf610_nfc_set_field() argument 204 vf610_nfc_write(nfc, reg, in vf610_nfc_set_field() [all …]
|
D | mtk_nand.c | 219 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_data_ptr() local 221 return nfc->buffer + i * mtk_data_len(chip); in mtk_data_ptr() 226 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_oob_ptr() local 228 return nfc->buffer + i * mtk_data_len(chip) + chip->ecc.size; in mtk_oob_ptr() 231 static inline void nfi_writel(struct mtk_nfc *nfc, u32 val, u32 reg) in nfi_writel() argument 233 writel(val, nfc->regs + reg); in nfi_writel() 236 static inline void nfi_writew(struct mtk_nfc *nfc, u16 val, u32 reg) in nfi_writew() argument 238 writew(val, nfc->regs + reg); in nfi_writew() 241 static inline void nfi_writeb(struct mtk_nfc *nfc, u8 val, u32 reg) in nfi_writeb() argument 243 writeb(val, nfc->regs + reg); in nfi_writeb() [all …]
|
D | jz4780_nand.c | 77 struct jz4780_nand_controller *nfc = to_jz4780_nand_controller(nand->chip.controller); in jz4780_nand_select_chip() local 81 if (chipnr == -1 && nfc->selected >= 0) { in jz4780_nand_select_chip() 82 cs = &nfc->cs[nfc->selected]; in jz4780_nand_select_chip() 83 jz4780_nemc_assert(nfc->dev, cs->bank, false); in jz4780_nand_select_chip() 86 nfc->selected = chipnr; in jz4780_nand_select_chip() 93 struct jz4780_nand_controller *nfc = to_jz4780_nand_controller(nand->chip.controller); in jz4780_nand_cmd_ctrl() local 96 if (WARN_ON(nfc->selected < 0)) in jz4780_nand_cmd_ctrl() 99 cs = &nfc->cs[nfc->selected]; in jz4780_nand_cmd_ctrl() 101 jz4780_nemc_assert(nfc->dev, cs->bank, ctrl & NAND_NCE); in jz4780_nand_cmd_ctrl() 130 struct jz4780_nand_controller *nfc = to_jz4780_nand_controller(nand->chip.controller); in jz4780_nand_ecc_calculate() local [all …]
|
D | marvell_nand.c | 429 static void marvell_nfc_disable_int(struct marvell_nfc *nfc, u32 int_mask) in marvell_nfc_disable_int() argument 434 reg = readl_relaxed(nfc->regs + NDCR); in marvell_nfc_disable_int() 435 writel_relaxed(reg | int_mask, nfc->regs + NDCR); in marvell_nfc_disable_int() 438 static void marvell_nfc_enable_int(struct marvell_nfc *nfc, u32 int_mask) in marvell_nfc_enable_int() argument 443 reg = readl_relaxed(nfc->regs + NDCR); in marvell_nfc_enable_int() 444 writel_relaxed(reg & ~int_mask, nfc->regs + NDCR); in marvell_nfc_enable_int() 447 static void marvell_nfc_clear_int(struct marvell_nfc *nfc, u32 int_mask) in marvell_nfc_clear_int() argument 449 writel_relaxed(int_mask, nfc->regs + NDSR); in marvell_nfc_clear_int() 455 struct marvell_nfc *nfc = to_marvell_nfc(chip->controller); in marvell_nfc_force_byte_access() local 467 ndcr = readl_relaxed(nfc->regs + NDCR); in marvell_nfc_force_byte_access() [all …]
|
D | sunxi_nand.c | 255 struct sunxi_nfc *nfc = dev_id; in sunxi_nfc_interrupt() local 256 u32 st = readl(nfc->regs + NFC_REG_ST); in sunxi_nfc_interrupt() 257 u32 ien = readl(nfc->regs + NFC_REG_INT); in sunxi_nfc_interrupt() 263 complete(&nfc->complete); in sunxi_nfc_interrupt() 265 writel(st & NFC_INT_MASK, nfc->regs + NFC_REG_ST); in sunxi_nfc_interrupt() 266 writel(~st & ien & NFC_INT_MASK, nfc->regs + NFC_REG_INT); in sunxi_nfc_interrupt() 271 static int sunxi_nfc_wait_events(struct sunxi_nfc *nfc, u32 events, in sunxi_nfc_wait_events() argument 283 init_completion(&nfc->complete); in sunxi_nfc_wait_events() 285 writel(events, nfc->regs + NFC_REG_INT); in sunxi_nfc_wait_events() 287 ret = wait_for_completion_timeout(&nfc->complete, in sunxi_nfc_wait_events() [all …]
|
D | tango_nand.c | 133 struct tango_nfc *nfc = to_tango_nfc(chip->controller); in tango_dev_ready() local 135 return readl_relaxed(nfc->pbus_base + PBUS_CS_CTRL) & PBUS_IORDY; in tango_dev_ready() 162 struct tango_nfc *nfc = to_tango_nfc(chip->controller); in tango_select_chip() local 168 writel_relaxed(tchip->timing1, nfc->reg_base + NFC_TIMING1); in tango_select_chip() 169 writel_relaxed(tchip->timing2, nfc->reg_base + NFC_TIMING2); in tango_select_chip() 170 writel_relaxed(tchip->xfer_cfg, nfc->reg_base + NFC_XFER_CFG); in tango_select_chip() 171 writel_relaxed(tchip->pkt_0_cfg, nfc->reg_base + NFC_PKT_0_CFG); in tango_select_chip() 172 writel_relaxed(tchip->pkt_n_cfg, nfc->reg_base + NFC_PKT_N_CFG); in tango_select_chip() 173 writel_relaxed(tchip->bb_cfg, nfc->reg_base + NFC_BB_CFG); in tango_select_chip() 211 struct tango_nfc *nfc = to_tango_nfc(chip->controller); in decode_error_report() local [all …]
|
/Linux-v4.19/drivers/nfc/ |
D | Kconfig | 24 This adds support to use an mei bus nfc device. Select this if you 51 source "drivers/nfc/fdp/Kconfig" 52 source "drivers/nfc/pn544/Kconfig" 53 source "drivers/nfc/pn533/Kconfig" 54 source "drivers/nfc/microread/Kconfig" 55 source "drivers/nfc/nfcmrvl/Kconfig" 56 source "drivers/nfc/st21nfca/Kconfig" 57 source "drivers/nfc/st-nci/Kconfig" 58 source "drivers/nfc/nxp-nci/Kconfig" 59 source "drivers/nfc/s3fwrn5/Kconfig" [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/net/nfc/ |
D | nfcmrvl.txt | 5 - "marvell,nfc-uart" or "mrvl,nfc-uart" for UART devices 6 - "marvell,nfc-i2c" for I2C devices 7 - "marvell,nfc-spi" for SPI devices 30 compatible = "marvell,nfc-uart"; 46 compatible = "marvell,nfc-i2c"; 68 compatible = "marvell,nfc-spi";
|
D | st21nfca.txt | 12 - ese-present: Specifies that an ese is physically connected to the nfc 15 connected to the nfc controller.
|
D | st-nci-spi.txt | 12 - ese-present: Specifies that an ese is physically connected to the nfc 15 connected to the nfc controller.
|
D | st-nci-i2c.txt | 13 - ese-present: Specifies that an ese is physically connected to the nfc 16 connected to the nfc controller.
|
/Linux-v4.19/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 1115 struct ethtool_rxnfc *nfc) in bcm_sf2_cfp_rule_get() argument 1121 bcm_sf2_cfp_rule_addr_set(priv, nfc->fs.location); in bcm_sf2_cfp_rule_get() 1134 nfc->fs.ring_cookie = fls((reg >> DST_MAP_IB_SHIFT) & in bcm_sf2_cfp_rule_get() 1138 if (nfc->fs.ring_cookie >= 6) in bcm_sf2_cfp_rule_get() 1139 nfc->fs.ring_cookie++; in bcm_sf2_cfp_rule_get() 1140 nfc->fs.ring_cookie *= SF2_NUM_EGRESS_QUEUES; in bcm_sf2_cfp_rule_get() 1144 nfc->fs.ring_cookie += queue_num; in bcm_sf2_cfp_rule_get() 1155 ret = bcm_sf2_cfp_ipv4_rule_get(priv, port, &nfc->fs); in bcm_sf2_cfp_rule_get() 1157 ret = bcm_sf2_cfp_ipv6_rule_get(priv, port, &nfc->fs, in bcm_sf2_cfp_rule_get() 1169 bcm_sf2_invert_masks(&nfc->fs); in bcm_sf2_cfp_rule_get() [all …]
|
D | bcm_sf2.h | 212 struct ethtool_rxnfc *nfc, u32 *rule_locs); 214 struct ethtool_rxnfc *nfc);
|
/Linux-v4.19/Documentation/devicetree/bindings/mtd/ |
D | vf610-nfc.txt | 7 - 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";
|
D | atmel-nand.txt | 20 - atmel,nfc-io: phandle to the NFC IO block. Only required for sama5d3 22 - atmel,nfc-sram: phandle to the NFC SRAM block. Only required for sama5d3 68 - compatible: should be "atmel,sama5d3-nfc-io", "syscon". 73 nfc_io: nfc-io@70000000 { 74 compatible = "atmel,sama5d3-nfc-io", "syscon"; 99 atmel,nfc-sram = <&nfc_sram>; 100 atmel,nfc-io = <&nfc_io>; 161 - compatible : "atmel,sama5d3-nfc". 224 nfc@70000000 { 225 compatible = "atmel,sama5d3-nfc";
|
D | hisi504-nand.txt | 5 - compatible: Should be "hisilicon,504-nfc". 9 - interrupts: Interrupt number for nfc. 30 compatible = "hisilicon,504-nfc";
|
D | mtk-nand.txt | 16 "mediatek,mt2701-nfc", 17 "mediatek,mt2712-nfc", 18 "mediatek,mt7622-nfc". 30 compatible = "mediatek,mt2701-nfc";
|
D | mxc-nand.txt | 5 - reg: address range of the nfc block
|
/Linux-v4.19/net/nfc/ |
D | Kconfig | 15 be called nfc. 31 source "net/nfc/nci/Kconfig" 32 source "net/nfc/hci/Kconfig" 34 source "drivers/nfc/Kconfig"
|
D | Makefile | 6 obj-$(CONFIG_NFC) += nfc.o 11 nfc-objs := core.o netlink.o af_nfc.o rawsock.o llcp_core.o llcp_commands.o \
|
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 751 struct ethtool_rxnfc *nfc) in fm10k_set_rss_hash_opt() argument 761 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in fm10k_set_rss_hash_opt() 765 switch (nfc->flow_type) { in fm10k_set_rss_hash_opt() 768 if (!(nfc->data & RXH_IP_SRC) || in fm10k_set_rss_hash_opt() 769 !(nfc->data & RXH_IP_DST) || in fm10k_set_rss_hash_opt() 770 !(nfc->data & RXH_L4_B_0_1) || in fm10k_set_rss_hash_opt() 771 !(nfc->data & RXH_L4_B_2_3)) in fm10k_set_rss_hash_opt() 775 if (!(nfc->data & RXH_IP_SRC) || in fm10k_set_rss_hash_opt() 776 !(nfc->data & RXH_IP_DST)) in fm10k_set_rss_hash_opt() 778 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in fm10k_set_rss_hash_opt() [all …]
|
/Linux-v4.19/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_ethtool.c | 472 struct ethtool_rxnfc *nfc) in dpaa_set_hash_opts() argument 477 if (nfc->data & in dpaa_set_hash_opts() 481 switch (nfc->flow_type) { in dpaa_set_hash_opts() 496 dpaa_set_hash(dev, !!nfc->data); in dpaa_set_hash_opts()
|
/Linux-v4.19/drivers/clk/imx/ |
D | clk-imx31.c | 52 dummy, ckih, ckil, mpll, spll, upll, mcu_main, hsp, ahb, nfc, ipg, enumerator 87 clk[nfc] = imx_clk_divider("nfc", "ahb", base + MXC_CCM_PDR0, 8, 3); in _mx31_clocks_init() 168 clk_register_clkdev(clk[nfc], NULL, "imx27-nand.0"); in mx31_clocks_init()
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | imx35-pdk.dts | 49 &nfc {
|
D | sun8i-r16-nintendo-nes-classic.dts | 32 &nfc {
|