/drivers/mtd/nand/raw/ |
D | rockchip-nand-controller.c | 227 struct rk_nfc *nfc = nand_get_controller_data(chip); in rk_nfc_data_ptr() local 229 return nfc->page_buf + i * rk_nfc_data_len(chip); in rk_nfc_data_ptr() 234 struct rk_nfc *nfc = nand_get_controller_data(chip); in rk_nfc_oob_ptr() local 236 return nfc->page_buf + i * rk_nfc_data_len(chip) + chip->ecc.size; in rk_nfc_oob_ptr() 241 struct rk_nfc *nfc = nand_get_controller_data(chip); in rk_nfc_hw_ecc_setup() local 245 if (strength == nfc->cfg->ecc_strengths[i]) { in rk_nfc_hw_ecc_setup() 246 reg = nfc->cfg->ecc_cfgs[i]; in rk_nfc_hw_ecc_setup() 254 writel(reg, nfc->regs + nfc->cfg->bchctl_off); in rk_nfc_hw_ecc_setup() 257 nfc->cur_ecc = strength; in rk_nfc_hw_ecc_setup() 264 struct rk_nfc *nfc = nand_get_controller_data(chip); in rk_nfc_select_chip() local [all …]
|
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 | 227 struct meson_nfc *nfc = nand_get_controller_data(nand); in meson_nfc_select_chip() local 233 nfc->param.chip_select = meson_chip->sels[chip] ? NAND_CE1 : NAND_CE0; in meson_nfc_select_chip() 234 nfc->param.rb_select = nfc->param.chip_select; in meson_nfc_select_chip() 235 nfc->timing.twb = meson_chip->twb; in meson_nfc_select_chip() 236 nfc->timing.tadl = meson_chip->tadl; in meson_nfc_select_chip() 237 nfc->timing.tbers_max = meson_chip->tbers_max; in meson_nfc_select_chip() 239 if (nfc->clk_rate != meson_chip->clk_rate) { in meson_nfc_select_chip() 240 ret = clk_set_rate(nfc->device_clk, meson_chip->clk_rate); in meson_nfc_select_chip() 242 dev_err(nfc->dev, "failed to set clock rate\n"); in meson_nfc_select_chip() 245 nfc->clk_rate = meson_chip->clk_rate; in meson_nfc_select_chip() [all …]
|
D | arasan-nand-controller.c | 234 static int anfc_wait_for_event(struct arasan_nfc *nfc, unsigned int event) in anfc_wait_for_event() argument 239 ret = readl_relaxed_poll_timeout(nfc->base + INTR_STS_REG, val, in anfc_wait_for_event() 243 dev_err(nfc->dev, "Timeout waiting for event 0x%x\n", event); in anfc_wait_for_event() 247 writel_relaxed(event, nfc->base + INTR_STS_REG); in anfc_wait_for_event() 252 static int anfc_wait_for_rb(struct arasan_nfc *nfc, struct nand_chip *chip, in anfc_wait_for_rb() argument 260 ret = readl_relaxed_poll_timeout(nfc->base + READY_STS_REG, val, in anfc_wait_for_rb() 264 dev_err(nfc->dev, "Timeout waiting for R/B 0x%x\n", in anfc_wait_for_rb() 265 readl_relaxed(nfc->base + READY_STS_REG)); in anfc_wait_for_rb() 272 static void anfc_trigger_op(struct arasan_nfc *nfc, struct anfc_op *nfc_op) in anfc_trigger_op() argument 274 writel_relaxed(nfc_op->pkt_reg, nfc->base + PKT_REG); in anfc_trigger_op() [all …]
|
D | pl35x-nand-controller.c | 216 static void pl35x_smc_update_regs(struct pl35x_nandc *nfc) in pl35x_smc_update_regs() argument 220 nfc->conf_regs + PL35X_SMC_DIRECT_CMD); in pl35x_smc_update_regs() 223 static int pl35x_smc_set_buswidth(struct pl35x_nandc *nfc, unsigned int bw) in pl35x_smc_set_buswidth() argument 228 writel(bw, nfc->conf_regs + PL35X_SMC_OPMODE); in pl35x_smc_set_buswidth() 229 pl35x_smc_update_regs(nfc); in pl35x_smc_set_buswidth() 234 static void pl35x_smc_clear_irq(struct pl35x_nandc *nfc) in pl35x_smc_clear_irq() argument 237 nfc->conf_regs + PL35X_SMC_MEMC_CFG_CLR); in pl35x_smc_clear_irq() 240 static int pl35x_smc_wait_for_irq(struct pl35x_nandc *nfc) in pl35x_smc_wait_for_irq() argument 245 ret = readl_poll_timeout(nfc->conf_regs + PL35X_SMC_MEMC_STATUS, reg, in pl35x_smc_wait_for_irq() 249 dev_err(nfc->dev, in pl35x_smc_wait_for_irq() [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 | sunxi_nand.c | 263 struct sunxi_nfc *nfc = dev_id; in sunxi_nfc_interrupt() local 264 u32 st = readl(nfc->regs + NFC_REG_ST); in sunxi_nfc_interrupt() 265 u32 ien = readl(nfc->regs + NFC_REG_INT); in sunxi_nfc_interrupt() 271 complete(&nfc->complete); in sunxi_nfc_interrupt() 273 writel(st & NFC_INT_MASK, nfc->regs + NFC_REG_ST); in sunxi_nfc_interrupt() 274 writel(~st & ien & NFC_INT_MASK, nfc->regs + NFC_REG_INT); in sunxi_nfc_interrupt() 279 static int sunxi_nfc_wait_events(struct sunxi_nfc *nfc, u32 events, in sunxi_nfc_wait_events() argument 291 init_completion(&nfc->complete); in sunxi_nfc_wait_events() 293 writel(events, nfc->regs + NFC_REG_INT); in sunxi_nfc_wait_events() 295 ret = wait_for_completion_timeout(&nfc->complete, in sunxi_nfc_wait_events() [all …]
|
/drivers/mtd/nand/raw/ingenic/ |
D | ingenic_nand_drv.c | 153 struct ingenic_nfc *nfc = to_ingenic_nfc(nand->chip.controller); in ingenic_nand_ecc_calculate() local 167 return ingenic_ecc_calculate(nfc->ecc, ¶ms, dat, ecc_code); in ingenic_nand_ecc_calculate() 174 struct ingenic_nfc *nfc = to_ingenic_nfc(nand->chip.controller); in ingenic_nand_ecc_correct() local 181 return ingenic_ecc_correct(nfc->ecc, ¶ms, dat, read_ecc); in ingenic_nand_ecc_correct() 187 struct ingenic_nfc *nfc = to_ingenic_nfc(chip->controller); in ingenic_nand_attach_chip() local 200 if (!nfc->ecc) { in ingenic_nand_attach_chip() 201 dev_err(nfc->dev, "HW ECC selected, but ECC controller not found\n"); in ingenic_nand_attach_chip() 210 dev_info(nfc->dev, "using %s (strength %d, size %d, bytes %d)\n", in ingenic_nand_attach_chip() 211 (nfc->ecc) ? "hardware ECC" : "software ECC", in ingenic_nand_attach_chip() 215 dev_info(nfc->dev, "not using ECC\n"); in ingenic_nand_attach_chip() [all …]
|
/drivers/nfc/ |
D | Kconfig | 25 This adds support to use an mei bus nfc device. Select this if you 63 source "drivers/nfc/fdp/Kconfig" 64 source "drivers/nfc/pn544/Kconfig" 65 source "drivers/nfc/pn533/Kconfig" 66 source "drivers/nfc/microread/Kconfig" 67 source "drivers/nfc/nfcmrvl/Kconfig" 68 source "drivers/nfc/st21nfca/Kconfig" 69 source "drivers/nfc/st-nci/Kconfig" 70 source "drivers/nfc/nxp-nci/Kconfig" 71 source "drivers/nfc/s3fwrn5/Kconfig" [all …]
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ethtool.c | 490 struct ethtool_rxnfc *nfc) in otx2_get_rss_hash_opts() argument 499 nfc->data = RXH_IP_SRC | RXH_IP_DST; in otx2_get_rss_hash_opts() 501 nfc->data |= RXH_VLAN; in otx2_get_rss_hash_opts() 503 switch (nfc->flow_type) { in otx2_get_rss_hash_opts() 507 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in otx2_get_rss_hash_opts() 512 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in otx2_get_rss_hash_opts() 517 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in otx2_get_rss_hash_opts() 522 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in otx2_get_rss_hash_opts() 540 struct ethtool_rxnfc *nfc) in otx2_set_rss_hash_opts() argument 553 if (!(nfc->data & RXH_IP_SRC) || !(nfc->data & RXH_IP_DST)) in otx2_set_rss_hash_opts() [all …]
|
D | otx2_flows.c | 447 int otx2_get_flow(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc, in otx2_get_flow() argument 457 nfc->fs = iter->flow_spec; in otx2_get_flow() 458 nfc->rss_context = iter->rss_ctx_id; in otx2_get_flow() 466 int otx2_get_all_flows(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc, in otx2_get_all_flows() argument 469 u32 rule_cnt = nfc->rule_cnt; in otx2_get_all_flows() 474 nfc->data = otx2_get_maxflows(pfvf->flow_cfg); in otx2_get_all_flows() 476 err = otx2_get_flow(pfvf, nfc, location); in otx2_get_all_flows() 481 nfc->rule_cnt = rule_cnt; in otx2_get_all_flows() 997 int otx2_add_flow(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc) in otx2_add_flow() argument 1000 struct ethtool_rx_flow_spec *fsp = &nfc->fs; in otx2_add_flow() [all …]
|
/drivers/net/vmxnet3/ |
D | vmxnet3_ethtool.c | 808 struct ethtool_rxnfc *nfc) in vmxnet3_set_rss_hash_opt() argument 815 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in vmxnet3_set_rss_hash_opt() 819 switch (nfc->flow_type) { 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() 824 !(nfc->data & RXH_L4_B_0_1) || in vmxnet3_set_rss_hash_opt() 825 !(nfc->data & RXH_L4_B_2_3)) in vmxnet3_set_rss_hash_opt() 829 if (!(nfc->data & RXH_IP_SRC) || in vmxnet3_set_rss_hash_opt() 830 !(nfc->data & RXH_IP_DST)) in vmxnet3_set_rss_hash_opt() 832 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in vmxnet3_set_rss_hash_opt() [all …]
|
/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 1065 struct ethtool_rxnfc *nfc) in bcm_sf2_cfp_rule_get() argument 1069 rule = bcm_sf2_cfp_rule_find(priv, port, nfc->fs.location); in bcm_sf2_cfp_rule_get() 1073 memcpy(&nfc->fs, &rule->fs, sizeof(rule->fs)); in bcm_sf2_cfp_rule_get() 1075 bcm_sf2_invert_masks(&nfc->fs); in bcm_sf2_cfp_rule_get() 1078 nfc->data = bcm_sf2_cfp_rule_size(priv); in bcm_sf2_cfp_rule_get() 1085 int port, struct ethtool_rxnfc *nfc, in bcm_sf2_cfp_rule_get_all() argument 1096 nfc->data = bcm_sf2_cfp_rule_size(priv); in bcm_sf2_cfp_rule_get_all() 1097 nfc->rule_cnt = rules_cnt; in bcm_sf2_cfp_rule_get_all() 1103 struct ethtool_rxnfc *nfc, u32 *rule_locs) in bcm_sf2_get_rxnfc() argument 1111 switch (nfc->cmd) { in bcm_sf2_get_rxnfc() [all …]
|
D | bcm_sf2.h | 215 struct ethtool_rxnfc *nfc, u32 *rule_locs); 217 struct ethtool_rxnfc *nfc);
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 875 struct ethtool_rxnfc *nfc) in mlx5e_set_rss_hash_opt() argument 881 tt = flow_type_to_traffic_type(nfc->flow_type); in mlx5e_set_rss_hash_opt() 889 if (nfc->flow_type != TCP_V4_FLOW && in mlx5e_set_rss_hash_opt() 890 nfc->flow_type != TCP_V6_FLOW && in mlx5e_set_rss_hash_opt() 891 nfc->flow_type != UDP_V4_FLOW && in mlx5e_set_rss_hash_opt() 892 nfc->flow_type != UDP_V6_FLOW) in mlx5e_set_rss_hash_opt() 895 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in mlx5e_set_rss_hash_opt() 899 if (nfc->data & RXH_IP_SRC) in mlx5e_set_rss_hash_opt() 901 if (nfc->data & RXH_IP_DST) in mlx5e_set_rss_hash_opt() 903 if (nfc->data & RXH_L4_B_0_1) in mlx5e_set_rss_hash_opt() [all …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 753 struct ethtool_rxnfc *nfc) in fm10k_set_rss_hash_opt() argument 763 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in fm10k_set_rss_hash_opt() 767 switch (nfc->flow_type) { in fm10k_set_rss_hash_opt() 770 if (!(nfc->data & RXH_IP_SRC) || in fm10k_set_rss_hash_opt() 771 !(nfc->data & RXH_IP_DST) || in fm10k_set_rss_hash_opt() 772 !(nfc->data & RXH_L4_B_0_1) || in fm10k_set_rss_hash_opt() 773 !(nfc->data & RXH_L4_B_2_3)) in fm10k_set_rss_hash_opt() 777 if (!(nfc->data & RXH_IP_SRC) || in fm10k_set_rss_hash_opt() 778 !(nfc->data & RXH_IP_DST)) in fm10k_set_rss_hash_opt() 780 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in fm10k_set_rss_hash_opt() [all …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool.c | 2406 static u32 ice_parse_hdrs(struct ethtool_rxnfc *nfc) in ice_parse_hdrs() argument 2410 switch (nfc->flow_type) { in ice_parse_hdrs() 2455 static u64 ice_parse_hash_flds(struct ethtool_rxnfc *nfc) in ice_parse_hash_flds() argument 2459 if (nfc->data & RXH_IP_SRC || nfc->data & RXH_IP_DST) { in ice_parse_hash_flds() 2460 switch (nfc->flow_type) { in ice_parse_hash_flds() 2464 if (nfc->data & RXH_IP_SRC) in ice_parse_hash_flds() 2466 if (nfc->data & RXH_IP_DST) in ice_parse_hash_flds() 2472 if (nfc->data & RXH_IP_SRC) in ice_parse_hash_flds() 2474 if (nfc->data & RXH_IP_DST) in ice_parse_hash_flds() 2482 if (nfc->data & RXH_L4_B_0_1 || nfc->data & RXH_L4_B_2_3) { in ice_parse_hash_flds() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 1109 struct ethtool_rxnfc *nfc) in igc_ethtool_set_rss_hash_opt() argument 1116 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in igc_ethtool_set_rss_hash_opt() 1120 switch (nfc->flow_type) { in igc_ethtool_set_rss_hash_opt() 1123 if (!(nfc->data & RXH_IP_SRC) || in igc_ethtool_set_rss_hash_opt() 1124 !(nfc->data & RXH_IP_DST) || in igc_ethtool_set_rss_hash_opt() 1125 !(nfc->data & RXH_L4_B_0_1) || in igc_ethtool_set_rss_hash_opt() 1126 !(nfc->data & RXH_L4_B_2_3)) in igc_ethtool_set_rss_hash_opt() 1130 if (!(nfc->data & RXH_IP_SRC) || in igc_ethtool_set_rss_hash_opt() 1131 !(nfc->data & RXH_IP_DST)) in igc_ethtool_set_rss_hash_opt() 1133 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in igc_ethtool_set_rss_hash_opt() [all …]
|
/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_ethtool.c | 431 struct ethtool_rxnfc *nfc) in dpaa_set_hash_opts() argument 436 if (nfc->data & in dpaa_set_hash_opts() 440 switch (nfc->flow_type) { in dpaa_set_hash_opts() 455 dpaa_set_hash(dev, !!nfc->data); in dpaa_set_hash_opts()
|
/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 2156 struct ethtool_rxnfc *nfc) in bcm_sysport_rule_get() argument 2161 index = bcm_sysport_rule_find(priv, nfc->fs.location); in bcm_sysport_rule_get() 2165 nfc->fs.ring_cookie = RX_CLS_FLOW_WAKE; in bcm_sysport_rule_get() 2171 struct ethtool_rxnfc *nfc) in bcm_sysport_rule_set() argument 2179 if (nfc->fs.location > RXCHK_BRCM_TAG_CID_MASK) in bcm_sysport_rule_set() 2183 if (nfc->fs.ring_cookie != RX_CLS_FLOW_WAKE) in bcm_sysport_rule_set() 2200 reg |= nfc->fs.location << RXCHK_BRCM_TAG_CID_SHIFT; in bcm_sysport_rule_set() 2204 priv->filters_loc[index] = nfc->fs.location; in bcm_sysport_rule_set() 2230 struct ethtool_rxnfc *nfc, u32 *rule_locs) in bcm_sysport_get_rxnfc() argument 2235 switch (nfc->cmd) { in bcm_sysport_get_rxnfc() [all …]
|
/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2583 struct ethtool_rxnfc *nfc) in igb_set_rss_hash_opt() argument 2590 if (nfc->data & ~(RXH_IP_SRC | RXH_IP_DST | in igb_set_rss_hash_opt() 2594 switch (nfc->flow_type) { in igb_set_rss_hash_opt() 2597 if (!(nfc->data & RXH_IP_SRC) || in igb_set_rss_hash_opt() 2598 !(nfc->data & RXH_IP_DST) || in igb_set_rss_hash_opt() 2599 !(nfc->data & RXH_L4_B_0_1) || in igb_set_rss_hash_opt() 2600 !(nfc->data & RXH_L4_B_2_3)) in igb_set_rss_hash_opt() 2604 if (!(nfc->data & RXH_IP_SRC) || in igb_set_rss_hash_opt() 2605 !(nfc->data & RXH_IP_DST)) in igb_set_rss_hash_opt() 2607 switch (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3)) { in igb_set_rss_hash_opt() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.c | 879 static u8 hclgevf_get_rss_hash_bits(struct ethtool_rxnfc *nfc) in hclgevf_get_rss_hash_bits() argument 881 u8 hash_sets = nfc->data & RXH_L4_B_0_1 ? HCLGEVF_S_PORT_BIT : 0; in hclgevf_get_rss_hash_bits() 883 if (nfc->data & RXH_L4_B_2_3) in hclgevf_get_rss_hash_bits() 888 if (nfc->data & RXH_IP_SRC) in hclgevf_get_rss_hash_bits() 893 if (nfc->data & RXH_IP_DST) in hclgevf_get_rss_hash_bits() 898 if (nfc->flow_type == SCTP_V4_FLOW || nfc->flow_type == SCTP_V6_FLOW) in hclgevf_get_rss_hash_bits() 905 struct ethtool_rxnfc *nfc, in hclgevf_init_rss_tuple_cmd() argument 921 tuple_sets = hclgevf_get_rss_hash_bits(nfc); in hclgevf_init_rss_tuple_cmd() 922 switch (nfc->flow_type) { in hclgevf_init_rss_tuple_cmd() 940 (nfc->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3))) in hclgevf_init_rss_tuple_cmd() [all …]
|