/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_stats.h | 45 #define MLX5E_DECLARE_STAT(type, fld) #fld, offsetof(type, fld) argument 46 #define MLX5E_DECLARE_RX_STAT(type, fld) "rx%d_"#fld, offsetof(type, fld) argument 47 #define MLX5E_DECLARE_TX_STAT(type, fld) "tx%d_"#fld, offsetof(type, fld) argument 48 #define MLX5E_DECLARE_XDPSQ_STAT(type, fld) "tx%d_xdp_"#fld, offsetof(type, fld) argument 49 #define MLX5E_DECLARE_RQ_XDPSQ_STAT(type, fld) "rx%d_xdp_tx_"#fld, offsetof(type, fld) argument 50 #define MLX5E_DECLARE_XSKRQ_STAT(type, fld) "rx%d_xsk_"#fld, offsetof(type, fld) argument 51 #define MLX5E_DECLARE_XSKSQ_STAT(type, fld) "tx%d_xsk_"#fld, offsetof(type, fld) argument 52 #define MLX5E_DECLARE_CH_STAT(type, fld) "ch%d_"#fld, offsetof(type, fld) argument 54 #define MLX5E_DECLARE_PTP_TX_STAT(type, fld) "ptp_tx%d_"#fld, offsetof(type, fld) argument 55 #define MLX5E_DECLARE_PTP_CH_STAT(type, fld) "ptp_ch_"#fld, offsetof(type, fld) argument [all …]
|
D | en_fs_ethtool.c | 134 #define MLX5E_FTE_SET(header_p, fld, v) \ argument 135 MLX5_SET(fte_match_set_lyr_2_4, header_p, fld, v) 137 #define MLX5E_FTE_ADDR_OF(header_p, fld) \ argument 138 MLX5_ADDR_OF(fte_match_set_lyr_2_4, header_p, fld)
|
/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fs_tracepoint.c | 39 #define MASK_VAL(type, spec, name, mask, val, fld) \ argument 41 {.m = MLX5_GET(spec, mask, fld),\ 42 .v = MLX5_GET(spec, val, fld)} 43 #define MASK_VAL_BE(type, spec, name, mask, val, fld) \ argument 45 {.m = MLX5_GET_BE(type, spec, mask, fld),\ 46 .v = MLX5_GET_BE(type, spec, val, fld)} 49 #define GET_MASK_VAL(name, type, mask, val, fld) \ argument 50 (name.m = MLX5_GET(type, mask, fld), \ 51 name.v = MLX5_GET(type, val, fld), \ 66 #define MASK_VAL_L2(type, name, fld) \ in print_lyr_2_4_hdrs() argument [all …]
|
/drivers/clk/baikal-t1/ |
D | ccu-pll.c | 385 struct ccu_pll_dbgfs_fld *fld = priv; in ccu_pll_dbgfs_fld_set() local 386 struct ccu_pll *pll = fld->pll; in ccu_pll_dbgfs_fld_set() 390 val = clamp_t(u64, val, fld->min, fld->max); in ccu_pll_dbgfs_fld_set() 391 data = ((val - 1) << fld->lsb) & fld->mask; in ccu_pll_dbgfs_fld_set() 394 regmap_update_bits(pll->sys_regs, pll->reg_ctl + fld->reg, fld->mask, in ccu_pll_dbgfs_fld_set() 427 struct ccu_pll_dbgfs_fld *fld = priv; in ccu_pll_dbgfs_fld_get() local 428 struct ccu_pll *pll = fld->pll; in ccu_pll_dbgfs_fld_get() 431 regmap_read(pll->sys_regs, pll->reg_ctl + fld->reg, &data); in ccu_pll_dbgfs_fld_get() 432 *val = ((data & fld->mask) >> fld->lsb) + 1; in ccu_pll_dbgfs_fld_get()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_flow.c | 903 u8 seg, enum ice_flow_field fld, u64 match) in ice_flow_xtract_fld() argument 916 switch (fld) { in ice_flow_xtract_fld() 940 if (fld == ICE_FLOW_FIELD_IDX_IPV4_TTL) in ice_flow_xtract_fld() 942 else if (fld == ICE_FLOW_FIELD_IDX_IPV4_PROT) in ice_flow_xtract_fld() 959 if (fld == ICE_FLOW_FIELD_IDX_IPV6_TTL) in ice_flow_xtract_fld() 961 else if (fld == ICE_FLOW_FIELD_IDX_IPV6_PROT) in ice_flow_xtract_fld() 1030 sib = fld == ICE_FLOW_FIELD_IDX_ICMP_TYPE ? in ice_flow_xtract_fld() 1046 flds[fld].xtrct.prot_id = prot_id; in ice_flow_xtract_fld() 1047 flds[fld].xtrct.off = (ice_flds_info[fld].off / ese_bits) * in ice_flow_xtract_fld() 1049 flds[fld].xtrct.disp = (u8)(ice_flds_info[fld].off % ese_bits); in ice_flow_xtract_fld() [all …]
|
D | ice_virtchnl_fdir.c | 243 enum ice_flow_field fld; member 441 enum ice_flow_field *fld, int *fld_cnt) in ice_vc_fdir_parse_flow_fld() argument 456 fld[*fld_cnt] = fdir_inset_map[i].fld; in ice_vc_fdir_parse_flow_fld() 485 enum ice_flow_field fld[ICE_FLOW_FIELD_IDX_MAX]; in ice_vc_fdir_set_flow_fld() local 496 ret = ice_vc_fdir_parse_flow_fld(hdr, conf, fld, &fld_cnt); in ice_vc_fdir_set_flow_fld() 507 ice_flow_set_fld(seg, fld[i], in ice_vc_fdir_set_flow_fld()
|
D | ice_flow.h | 399 ice_flow_set_fld(struct ice_flow_seg_info *seg, enum ice_flow_field fld,
|
/drivers/perf/ |
D | arm_spe_pmu.c | 955 int fld; in __arm_spe_pmu_dev_probe() local 960 fld = cpuid_feature_extract_unsigned_field(read_cpuid(ID_AA64DFR0_EL1), in __arm_spe_pmu_dev_probe() 962 if (!fld) { in __arm_spe_pmu_dev_probe() 965 fld, smp_processor_id()); in __arm_spe_pmu_dev_probe() 968 spe_pmu->pmsver = (u16)fld; in __arm_spe_pmu_dev_probe() 979 fld = reg >> SYS_PMBIDR_EL1_ALIGN_SHIFT & SYS_PMBIDR_EL1_ALIGN_MASK; in __arm_spe_pmu_dev_probe() 980 spe_pmu->align = 1 << fld; in __arm_spe_pmu_dev_probe() 983 fld, smp_processor_id()); in __arm_spe_pmu_dev_probe() 1008 fld = reg >> SYS_PMSIDR_EL1_INTERVAL_SHIFT & SYS_PMSIDR_EL1_INTERVAL_MASK; in __arm_spe_pmu_dev_probe() 1009 switch (fld) { in __arm_spe_pmu_dev_probe() [all …]
|
/drivers/power/supply/ |
D | mp2629_charger.c | 172 enum mp2629_field fld, in mp2629_get_prop() argument 178 ret = regmap_field_read(charger->regmap_fields[fld], &rval); in mp2629_get_prop() 182 val->intval = rval * props[fld].step + props[fld].min; in mp2629_get_prop() 188 enum mp2629_field fld, in mp2629_set_prop() argument 193 if (val->intval < props[fld].min || val->intval > props[fld].max) in mp2629_set_prop() 196 rval = (val->intval - props[fld].min) / props[fld].step; in mp2629_set_prop() 197 return regmap_field_write(charger->regmap_fields[fld], rval); in mp2629_set_prop()
|
/drivers/media/platform/ti-vpe/ |
D | vpdma.h | 200 #define ADB_ADDR(dma_buf, str, fld) ((dma_buf)->addr + offsetof(str, fld)) argument 201 #define MMR_ADB_ADDR(buf, str, fld) ADB_ADDR(&(buf), struct str, fld) argument
|
/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3-sva.c | 432 unsigned long reg, fld; in arm_smmu_sva_supported() local 452 fld = cpuid_feature_extract_unsigned_field(reg, ID_AA64MMFR0_EL1_PARANGE_SHIFT); in arm_smmu_sva_supported() 453 oas = id_aa64mmfr0_parange_to_phys_shift(fld); in arm_smmu_sva_supported() 458 fld = cpuid_feature_extract_unsigned_field(reg, ID_AA64MMFR0_EL1_ASIDBITS_SHIFT); in arm_smmu_sva_supported() 459 asid_bits = fld ? 16 : 8; in arm_smmu_sva_supported()
|
/drivers/irqchip/ |
D | irq-gic-v4.c | 95 unsigned long fld, reg = read_sanitised_ftr_reg(SYS_ID_AA64PFR0_EL1); in gic_cpuif_has_vsgi() local 97 fld = cpuid_feature_extract_unsigned_field(reg, ID_AA64PFR0_EL1_GIC_SHIFT); in gic_cpuif_has_vsgi() 99 return fld >= 0x3; in gic_cpuif_has_vsgi()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_dev.c | 4007 u32 port_cfg_addr, link_temp, nvm_cfg_addr, device_capabilities, fld; in qed_hw_get_nvm_info() local 4104 fld = GET_MFW_FIELD(link_temp, NVM_CFG1_PORT_DRV_FLOW_CONTROL); in qed_hw_get_nvm_info() 4105 link->pause.autoneg = !!(fld & NVM_CFG1_PORT_DRV_FLOW_CONTROL_AUTONEG); in qed_hw_get_nvm_info() 4106 link->pause.forced_rx = !!(fld & NVM_CFG1_PORT_DRV_FLOW_CONTROL_RX); in qed_hw_get_nvm_info() 4107 link->pause.forced_tx = !!(fld & NVM_CFG1_PORT_DRV_FLOW_CONTROL_TX); in qed_hw_get_nvm_info() 4176 fld = GET_MFW_FIELD(link_temp, NVM_CFG1_PORT_EXTENDED_SPEED); in qed_hw_get_nvm_info() 4177 if (fld & NVM_CFG1_PORT_EXTENDED_SPEED_EXTND_SPD_AN) in qed_hw_get_nvm_info() 4181 if (fld & NVM_CFG1_PORT_EXTENDED_SPEED_EXTND_SPD_1G) in qed_hw_get_nvm_info() 4183 if (fld & NVM_CFG1_PORT_EXTENDED_SPEED_EXTND_SPD_10G) in qed_hw_get_nvm_info() 4185 if (fld & NVM_CFG1_PORT_EXTENDED_SPEED_EXTND_SPD_20G) in qed_hw_get_nvm_info() [all …]
|
/drivers/scsi/ |
D | virtio_scsi.c | 758 #define virtscsi_config_get(vdev, fld) \ argument 760 __virtio_native_type(struct virtio_scsi_config, fld) __val; \ 761 virtio_cread(vdev, struct virtio_scsi_config, fld, &__val); \ 765 #define virtscsi_config_set(vdev, fld, val) \ argument 767 __virtio_native_type(struct virtio_scsi_config, fld) __val = (val); \ 768 virtio_cwrite(vdev, struct virtio_scsi_config, fld, &__val); \
|
/drivers/net/ethernet/ti/ |
D | davinci_cpdma.c | 174 #define chan_read(chan, fld) readl((chan)->fld) argument 175 #define desc_read(desc, fld) readl(&(desc)->fld) argument 177 #define chan_write(chan, fld, v) writel(v, (chan)->fld) argument 178 #define desc_write(desc, fld, v) writel((u32)(v), &(desc)->fld) argument
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_devcmd.h | 550 #define FILTER_FIELD_VALID(fld) (1 << (fld - 1)) argument
|
/drivers/media/platform/rcar-vin/ |
D | rcar-csi2.c | 552 u32 phycnt, vcdt = 0, vcdt2 = 0, fld = 0; in rcsi2_start_receiver() local 588 fld = FLD_DET_SEL(1) | FLD_FLD_EN4 | FLD_FLD_EN3 | FLD_FLD_EN2 in rcsi2_start_receiver() 592 fld |= FLD_FLD_NUM(0); in rcsi2_start_receiver() 594 fld |= FLD_FLD_NUM(1); in rcsi2_start_receiver() 651 rcsi2_write(priv, FLD_REG, fld); in rcsi2_start_receiver()
|
/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_smp.c | 227 int fld = blk % 3; in update_smp_state() local 231 switch (fld) { in update_smp_state()
|
/drivers/mmc/host/ |
D | sdhci-of-arasan.c | 217 const struct sdhci_arasan_soc_ctl_field *fld, in sdhci_arasan_syscon_write() argument 223 u32 reg = fld->reg; in sdhci_arasan_syscon_write() 224 u16 width = fld->width; in sdhci_arasan_syscon_write() 225 s16 shift = fld->shift; in sdhci_arasan_syscon_write()
|
/drivers/usb/misc/ |
D | usb251xb.c | 383 bool ds_only, u8 *fld) in usb251xb_get_ports_field() argument 392 *fld |= BIT(port); in usb251xb_get_ports_field()
|
/drivers/hid/usbhid/ |
D | hid-pidff.c | 894 static int pidff_find_special_keys(int *keys, struct hid_field *fld, in pidff_find_special_keys() argument 902 for (j = 0; j < fld->maxusage; j++) { in pidff_find_special_keys() 903 if (fld->usage[j].hid == (HID_UP_PID | usagetable[i])) { in pidff_find_special_keys()
|
/drivers/message/fusion/ |
D | mptscsih.c | 597 req_idx = le16_to_cpu(mf->u.frame.hwhdr.msgctxu.fld.req_idx); in mptscsih_io_done() 599 le16_to_cpu(mr->u.frame.hwhdr.msgctxu.fld.req_idx) : req_idx; in mptscsih_io_done() 1348 my_idx = le16_to_cpu(mf->u.frame.hwhdr.msgctxu.fld.req_idx); in mptscsih_qcmd() 2423 req_index = le16_to_cpu(mf->u.frame.hwhdr.msgctxu.fld.req_idx); in mptscsih_copy_sense_data() 2649 req_idx = le16_to_cpu(req->u.frame.hwhdr.msgctxu.fld.req_idx); in mptscsih_scandv_complete() 2910 my_idx = le16_to_cpu(mf->u.frame.hwhdr.msgctxu.fld.req_idx); in mptscsih_do_cmd()
|
D | mptbase.c | 528 req_idx = le16_to_cpu(mr->u.frame.hwhdr.msgctxu.fld.req_idx); in mpt_reply() 529 cb_idx = mr->u.frame.hwhdr.msgctxu.fld.cb_idx; in mpt_reply() 914 mf->u.frame.hwhdr.msgctxu.fld.cb_idx = cb_idx; /* byte */ in mpt_get_msg_frame() 918 mf->u.frame.hwhdr.msgctxu.fld.req_idx = cpu_to_le16(req_idx); in mpt_get_msg_frame() 919 mf->u.frame.hwhdr.msgctxu.fld.rsvd = 0; in mpt_get_msg_frame() 964 mf->u.frame.hwhdr.msgctxu.fld.cb_idx = cb_idx; /* byte */ in mpt_put_msg_frame() 968 mf->u.frame.hwhdr.msgctxu.fld.req_idx = cpu_to_le16(req_idx); in mpt_put_msg_frame() 969 mf->u.frame.hwhdr.msgctxu.fld.rsvd = 0; in mpt_put_msg_frame() 1000 mf->u.frame.hwhdr.msgctxu.fld.cb_idx = cb_idx; in mpt_put_msg_frame_hi_pri() 1003 mf->u.frame.hwhdr.msgctxu.fld.req_idx = cpu_to_le16(req_idx); in mpt_put_msg_frame_hi_pri() [all …]
|
D | mptbase.h | 301 } fld; member
|
/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net.h | 274 } __packed fld; member
|