/Linux-v5.10/drivers/mtd/nand/raw/ |
D | mxic_nand.c | 184 static int mxic_nfc_clk_enable(struct mxic_nand_ctlr *nfc) in mxic_nfc_clk_enable() argument 188 ret = clk_prepare_enable(nfc->ps_clk); in mxic_nfc_clk_enable() 192 ret = clk_prepare_enable(nfc->send_clk); in mxic_nfc_clk_enable() 196 ret = clk_prepare_enable(nfc->send_dly_clk); in mxic_nfc_clk_enable() 203 clk_disable_unprepare(nfc->send_clk); in mxic_nfc_clk_enable() 205 clk_disable_unprepare(nfc->ps_clk); in mxic_nfc_clk_enable() 210 static void mxic_nfc_clk_disable(struct mxic_nand_ctlr *nfc) in mxic_nfc_clk_disable() argument 212 clk_disable_unprepare(nfc->send_clk); in mxic_nfc_clk_disable() 213 clk_disable_unprepare(nfc->send_dly_clk); in mxic_nfc_clk_disable() 214 clk_disable_unprepare(nfc->ps_clk); in mxic_nfc_clk_disable() [all …]
|
D | vf610_nfc.c | 173 static inline u32 vf610_nfc_read(struct vf610_nfc *nfc, uint reg) in vf610_nfc_read() argument 175 return readl(nfc->regs + reg); in vf610_nfc_read() 178 static inline void vf610_nfc_write(struct vf610_nfc *nfc, uint reg, u32 val) in vf610_nfc_write() argument 180 writel(val, nfc->regs + reg); in vf610_nfc_write() 183 static inline void vf610_nfc_set(struct vf610_nfc *nfc, uint reg, u32 bits) in vf610_nfc_set() argument 185 vf610_nfc_write(nfc, reg, vf610_nfc_read(nfc, reg) | bits); in vf610_nfc_set() 188 static inline void vf610_nfc_clear(struct vf610_nfc *nfc, uint reg, u32 bits) in vf610_nfc_clear() argument 190 vf610_nfc_write(nfc, reg, vf610_nfc_read(nfc, reg) & ~bits); in vf610_nfc_clear() 193 static inline void vf610_nfc_set_field(struct vf610_nfc *nfc, u32 reg, in vf610_nfc_set_field() argument 196 vf610_nfc_write(nfc, reg, in vf610_nfc_set_field() [all …]
|
D | stm32_fmc2_nand.c | 281 struct stm32_fmc2_nfc *nfc = to_stm32_nfc(chip->controller); in stm32_fmc2_nfc_timings_init() local 287 regmap_update_bits(nfc->regmap, FMC2_PCR, in stm32_fmc2_nfc_timings_init() 297 regmap_write(nfc->regmap, FMC2_PMEM, pmem); in stm32_fmc2_nfc_timings_init() 304 regmap_write(nfc->regmap, FMC2_PATT, patt); in stm32_fmc2_nfc_timings_init() 309 struct stm32_fmc2_nfc *nfc = to_stm32_nfc(chip->controller); in stm32_fmc2_nfc_setup() local 331 regmap_update_bits(nfc->regmap, FMC2_PCR, pcr_mask, pcr); in stm32_fmc2_nfc_setup() 336 struct stm32_fmc2_nfc *nfc = to_stm32_nfc(chip->controller); in stm32_fmc2_nfc_select_chip() local 341 if (nand->cs_used[chipnr] == nfc->cs_sel) in stm32_fmc2_nfc_select_chip() 344 nfc->cs_sel = nand->cs_used[chipnr]; in stm32_fmc2_nfc_select_chip() 348 if (nfc->dma_tx_ch && nfc->dma_rx_ch) { in stm32_fmc2_nfc_select_chip() [all …]
|
D | mtk_nand.c | 217 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_data_ptr() local 219 return nfc->buffer + i * mtk_data_len(chip); in mtk_data_ptr() 224 struct mtk_nfc *nfc = nand_get_controller_data(chip); in mtk_oob_ptr() local 226 return nfc->buffer + i * mtk_data_len(chip) + chip->ecc.size; in mtk_oob_ptr() 229 static inline void nfi_writel(struct mtk_nfc *nfc, u32 val, u32 reg) in nfi_writel() argument 231 writel(val, nfc->regs + reg); in nfi_writel() 234 static inline void nfi_writew(struct mtk_nfc *nfc, u16 val, u32 reg) in nfi_writew() argument 236 writew(val, nfc->regs + reg); in nfi_writew() 239 static inline void nfi_writeb(struct mtk_nfc *nfc, u8 val, u32 reg) in nfi_writeb() argument 241 writeb(val, nfc->regs + reg); in nfi_writeb() [all …]
|
D | meson_nand.c | 225 struct meson_nfc *nfc = nand_get_controller_data(nand); in meson_nfc_select_chip() local 231 nfc->param.chip_select = meson_chip->sels[chip] ? NAND_CE1 : NAND_CE0; in meson_nfc_select_chip() 232 nfc->param.rb_select = nfc->param.chip_select; in meson_nfc_select_chip() 233 nfc->timing.twb = meson_chip->twb; in meson_nfc_select_chip() 234 nfc->timing.tadl = meson_chip->tadl; in meson_nfc_select_chip() 235 nfc->timing.tbers_max = meson_chip->tbers_max; in meson_nfc_select_chip() 237 if (nfc->clk_rate != meson_chip->clk_rate) { in meson_nfc_select_chip() 238 ret = clk_set_rate(nfc->device_clk, meson_chip->clk_rate); in meson_nfc_select_chip() 240 dev_err(nfc->dev, "failed to set clock rate\n"); in meson_nfc_select_chip() 243 nfc->clk_rate = meson_chip->clk_rate; in meson_nfc_select_chip() [all …]
|
D | marvell_nand.c | 508 static void marvell_nfc_disable_int(struct marvell_nfc *nfc, u32 int_mask) in marvell_nfc_disable_int() argument 513 reg = readl_relaxed(nfc->regs + NDCR); in marvell_nfc_disable_int() 514 writel_relaxed(reg | int_mask, nfc->regs + NDCR); in marvell_nfc_disable_int() 517 static void marvell_nfc_enable_int(struct marvell_nfc *nfc, u32 int_mask) in marvell_nfc_enable_int() argument 522 reg = readl_relaxed(nfc->regs + NDCR); in marvell_nfc_enable_int() 523 writel_relaxed(reg & ~int_mask, nfc->regs + NDCR); in marvell_nfc_enable_int() 526 static u32 marvell_nfc_clear_int(struct marvell_nfc *nfc, u32 int_mask) in marvell_nfc_clear_int() argument 530 reg = readl_relaxed(nfc->regs + NDSR); in marvell_nfc_clear_int() 531 writel_relaxed(int_mask, nfc->regs + NDSR); in marvell_nfc_clear_int() 539 struct marvell_nfc *nfc = to_marvell_nfc(chip->controller); in marvell_nfc_force_byte_access() local [all …]
|
D | arasan-nand-controller.c | 205 static int anfc_wait_for_event(struct arasan_nfc *nfc, unsigned int event) in anfc_wait_for_event() argument 210 ret = readl_relaxed_poll_timeout(nfc->base + INTR_STS_REG, val, in anfc_wait_for_event() 214 dev_err(nfc->dev, "Timeout waiting for event 0x%x\n", event); in anfc_wait_for_event() 218 writel_relaxed(event, nfc->base + INTR_STS_REG); in anfc_wait_for_event() 223 static int anfc_wait_for_rb(struct arasan_nfc *nfc, struct nand_chip *chip, in anfc_wait_for_rb() argument 231 ret = readl_relaxed_poll_timeout(nfc->base + READY_STS_REG, val, in anfc_wait_for_rb() 235 dev_err(nfc->dev, "Timeout waiting for R/B 0x%x\n", in anfc_wait_for_rb() 236 readl_relaxed(nfc->base + READY_STS_REG)); in anfc_wait_for_rb() 243 static void anfc_trigger_op(struct arasan_nfc *nfc, struct anfc_op *nfc_op) in anfc_trigger_op() argument 245 writel_relaxed(nfc_op->pkt_reg, nfc->base + PKT_REG); in anfc_trigger_op() [all …]
|
D | sunxi_nand.c | 259 struct sunxi_nfc *nfc = dev_id; in sunxi_nfc_interrupt() local 260 u32 st = readl(nfc->regs + NFC_REG_ST); in sunxi_nfc_interrupt() 261 u32 ien = readl(nfc->regs + NFC_REG_INT); in sunxi_nfc_interrupt() 267 complete(&nfc->complete); in sunxi_nfc_interrupt() 269 writel(st & NFC_INT_MASK, nfc->regs + NFC_REG_ST); in sunxi_nfc_interrupt() 270 writel(~st & ien & NFC_INT_MASK, nfc->regs + NFC_REG_INT); in sunxi_nfc_interrupt() 275 static int sunxi_nfc_wait_events(struct sunxi_nfc *nfc, u32 events, in sunxi_nfc_wait_events() argument 287 init_completion(&nfc->complete); in sunxi_nfc_wait_events() 289 writel(events, nfc->regs + NFC_REG_INT); in sunxi_nfc_wait_events() 291 ret = wait_for_completion_timeout(&nfc->complete, in sunxi_nfc_wait_events() [all …]
|
D | tango_nand.c | 118 struct tango_nfc *nfc = to_tango_nfc(chip->controller); in tango_select_target() local 121 writel_relaxed(tchip->timing1, nfc->reg_base + NFC_TIMING1); in tango_select_target() 122 writel_relaxed(tchip->timing2, nfc->reg_base + NFC_TIMING2); in tango_select_target() 123 writel_relaxed(tchip->xfer_cfg, nfc->reg_base + NFC_XFER_CFG); in tango_select_target() 124 writel_relaxed(tchip->pkt_0_cfg, nfc->reg_base + NFC_PKT_0_CFG); in tango_select_target() 125 writel_relaxed(tchip->pkt_n_cfg, nfc->reg_base + NFC_PKT_N_CFG); in tango_select_target() 126 writel_relaxed(tchip->bb_cfg, nfc->reg_base + NFC_BB_CFG); in tango_select_target() 131 struct tango_nfc *nfc = to_tango_nfc(chip->controller); in tango_waitrdy() local 134 return readl_relaxed_poll_timeout(nfc->pbus_base + PBUS_CS_CTRL, in tango_waitrdy() 227 struct tango_nfc *nfc = to_tango_nfc(chip->controller); in decode_error_report() local [all …]
|
/Linux-v5.10/drivers/mtd/nand/raw/ingenic/ |
D | ingenic_nand_drv.c | 152 struct ingenic_nfc *nfc = to_ingenic_nfc(nand->chip.controller); in ingenic_nand_ecc_calculate() local 166 return ingenic_ecc_calculate(nfc->ecc, ¶ms, dat, ecc_code); in ingenic_nand_ecc_calculate() 173 struct ingenic_nfc *nfc = to_ingenic_nfc(nand->chip.controller); in ingenic_nand_ecc_correct() local 180 return ingenic_ecc_correct(nfc->ecc, ¶ms, dat, read_ecc); in ingenic_nand_ecc_correct() 186 struct ingenic_nfc *nfc = to_ingenic_nfc(chip->controller); in ingenic_nand_attach_chip() local 199 if (!nfc->ecc) { in ingenic_nand_attach_chip() 200 dev_err(nfc->dev, "HW ECC selected, but ECC controller not found\n"); in ingenic_nand_attach_chip() 209 dev_info(nfc->dev, "using %s (strength %d, size %d, bytes %d)\n", in ingenic_nand_attach_chip() 210 (nfc->ecc) ? "hardware ECC" : "software ECC", in ingenic_nand_attach_chip() 214 dev_info(nfc->dev, "not using ECC\n"); in ingenic_nand_attach_chip() [all …]
|
/Linux-v5.10/Documentation/driver-api/mei/ |
D | nfc.rst | 18 "drivers/nfc/mei_phy" -> cl_nfc [lhead=bus]; 19 "drivers/nfc/microread/mei" -> cl_nfc; 20 "drivers/nfc/microread/mei" -> "drivers/nfc/mei_phy"; 21 "drivers/nfc/pn544/mei" -> cl_nfc; 22 "drivers/nfc/pn544/mei" -> "drivers/nfc/mei_phy"; 23 "net/nfc" -> "drivers/nfc/microread/mei"; 24 "net/nfc" -> "drivers/nfc/pn544/mei"; 25 "neard" -> "net/nfc"; 26 cl_nfc [label="mei/bus(nfc)"]; 27 me_cl_nfc [label="me fw (nfc)"];
|
/Linux-v5.10/drivers/nfc/ |
D | Kconfig | 25 This adds support to use an mei bus nfc device. Select this if you 52 source "drivers/nfc/fdp/Kconfig" 53 source "drivers/nfc/pn544/Kconfig" 54 source "drivers/nfc/pn533/Kconfig" 55 source "drivers/nfc/microread/Kconfig" 56 source "drivers/nfc/nfcmrvl/Kconfig" 57 source "drivers/nfc/st21nfca/Kconfig" 58 source "drivers/nfc/st-nci/Kconfig" 59 source "drivers/nfc/nxp-nci/Kconfig" 60 source "drivers/nfc/s3fwrn5/Kconfig" [all …]
|
/Linux-v5.10/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";
|
/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ethtool.c | 421 struct ethtool_rxnfc *nfc) in otx2_get_rss_hash_opts() argument 430 nfc->data = RXH_IP_SRC | RXH_IP_DST; in otx2_get_rss_hash_opts() 432 nfc->data |= RXH_VLAN; in otx2_get_rss_hash_opts() 434 switch (nfc->flow_type) { in otx2_get_rss_hash_opts() 438 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in otx2_get_rss_hash_opts() 443 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in otx2_get_rss_hash_opts() 448 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in otx2_get_rss_hash_opts() 466 struct ethtool_rxnfc *nfc) in otx2_set_rss_hash_opts() argument 479 if (!(nfc->data & RXH_IP_SRC) || !(nfc->data & RXH_IP_DST)) in otx2_set_rss_hash_opts() 482 if (nfc->data & RXH_VLAN) in otx2_set_rss_hash_opts() [all …]
|
/Linux-v5.10/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 | 21 - atmel,nfc-io: phandle to the NFC IO block. Only required for sama5d3 23 - atmel,nfc-sram: phandle to the NFC SRAM block. Only required for sama5d3 70 - compatible: should be "atmel,sama5d3-nfc-io", "syscon". 75 nfc_io: nfc-io@70000000 { 76 compatible = "atmel,sama5d3-nfc-io", "syscon"; 101 atmel,nfc-sram = <&nfc_sram>; 102 atmel,nfc-io = <&nfc_io>; 163 - compatible : "atmel,sama5d3-nfc". 226 nfc@70000000 { 227 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 | amlogic,meson-nand.txt | 8 - "amlogic,meson-gxl-nfc" 9 - "amlogic,meson-axg-nfc" 37 compatible = "amlogic,meson-axg-nfc";
|
/Linux-v5.10/net/nfc/ |
D | Kconfig | 16 be called nfc. 32 source "net/nfc/nci/Kconfig" 33 source "net/nfc/hci/Kconfig" 35 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-v5.10/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 1069 struct ethtool_rxnfc *nfc) in bcm_sf2_cfp_rule_get() argument 1073 rule = bcm_sf2_cfp_rule_find(priv, port, nfc->fs.location); in bcm_sf2_cfp_rule_get() 1077 memcpy(&nfc->fs, &rule->fs, sizeof(rule->fs)); in bcm_sf2_cfp_rule_get() 1079 bcm_sf2_invert_masks(&nfc->fs); in bcm_sf2_cfp_rule_get() 1082 nfc->data = bcm_sf2_cfp_rule_size(priv); in bcm_sf2_cfp_rule_get() 1089 int port, struct ethtool_rxnfc *nfc, in bcm_sf2_cfp_rule_get_all() argument 1100 nfc->data = bcm_sf2_cfp_rule_size(priv); in bcm_sf2_cfp_rule_get_all() 1101 nfc->rule_cnt = rules_cnt; in bcm_sf2_cfp_rule_get_all() 1107 struct ethtool_rxnfc *nfc, u32 *rule_locs) in bcm_sf2_get_rxnfc() argument 1115 switch (nfc->cmd) { in bcm_sf2_get_rxnfc() [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 817 struct ethtool_rxnfc *nfc) in mlx5e_set_rss_hash_opt() argument 824 tt = flow_type_to_traffic_type(nfc->flow_type); in mlx5e_set_rss_hash_opt() 832 if (nfc->flow_type != TCP_V4_FLOW && in mlx5e_set_rss_hash_opt() 833 nfc->flow_type != TCP_V6_FLOW && in mlx5e_set_rss_hash_opt() 834 nfc->flow_type != UDP_V4_FLOW && in mlx5e_set_rss_hash_opt() 835 nfc->flow_type != UDP_V6_FLOW) in mlx5e_set_rss_hash_opt() 838 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in mlx5e_set_rss_hash_opt() 842 if (nfc->data & RXH_IP_SRC) in mlx5e_set_rss_hash_opt() 844 if (nfc->data & RXH_IP_DST) in mlx5e_set_rss_hash_opt() 846 if (nfc->data & RXH_L4_B_0_1) in mlx5e_set_rss_hash_opt() [all …]
|
/Linux-v5.10/Documentation/driver-api/nfc/ |
D | index.rst | 10 nfc-hci 11 nfc-pn544
|
/Linux-v5.10/drivers/net/vmxnet3/ |
D | vmxnet3_ethtool.c | 801 struct ethtool_rxnfc *nfc) in vmxnet3_set_rss_hash_opt() argument 808 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in vmxnet3_set_rss_hash_opt() 812 switch (nfc->flow_type) { in vmxnet3_set_rss_hash_opt() 815 if (!(nfc->data & RXH_IP_SRC) || in vmxnet3_set_rss_hash_opt() 816 !(nfc->data & RXH_IP_DST) || in vmxnet3_set_rss_hash_opt() 817 !(nfc->data & RXH_L4_B_0_1) || in vmxnet3_set_rss_hash_opt() 818 !(nfc->data & RXH_L4_B_2_3)) in vmxnet3_set_rss_hash_opt() 822 if (!(nfc->data & RXH_IP_SRC) || in vmxnet3_set_rss_hash_opt() 823 !(nfc->data & RXH_IP_DST)) in vmxnet3_set_rss_hash_opt() 825 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in vmxnet3_set_rss_hash_opt() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 748 struct ethtool_rxnfc *nfc) in fm10k_set_rss_hash_opt() argument 758 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in fm10k_set_rss_hash_opt() 762 switch (nfc->flow_type) { in fm10k_set_rss_hash_opt() 765 if (!(nfc->data & RXH_IP_SRC) || in fm10k_set_rss_hash_opt() 766 !(nfc->data & RXH_IP_DST) || in fm10k_set_rss_hash_opt() 767 !(nfc->data & RXH_L4_B_0_1) || in fm10k_set_rss_hash_opt() 768 !(nfc->data & RXH_L4_B_2_3)) in fm10k_set_rss_hash_opt() 772 if (!(nfc->data & RXH_IP_SRC) || in fm10k_set_rss_hash_opt() 773 !(nfc->data & RXH_IP_DST)) in fm10k_set_rss_hash_opt() 775 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in fm10k_set_rss_hash_opt() [all …]
|