/linux-6.14.4/drivers/thunderbolt/ |
D | lc.c | 62 int cap, ret; in tb_lc_reset_port() local 98 int cap, ret; in tb_lc_set_port_configured() local 156 int cap, ret; in tb_lc_set_xdomain_configured() local 219 int ret, cap; in tb_lc_start_lane_initialization() local 251 int cap, ret; in tb_lc_is_clx_supported() local 252 u32 val; in tb_lc_is_clx_supported() local 274 int cap, ret; in tb_lc_is_usb_plugged() local 275 u32 val; in tb_lc_is_usb_plugged() local 300 int cap, ret; in tb_lc_is_xhci_connected() local 301 u32 val; in tb_lc_is_xhci_connected() local [all …]
|
D | debugfs.c | 152 static bool parse_line(char **line, u32 *offs, u32 *val, int short_fmt_len, in parse_line() 206 static int path_write_one(struct tb_port *port, u32 val, u32 offset) in path_write_one() 227 u32 val, offset; in regs_write() local 621 unsigned int val; in margining_ber_level_write() local 661 static void ber_level_show(struct seq_file *s, unsigned int val) in ber_level_show() 891 unsigned int val; in margining_voltage_time_offset_write() local 1006 unsigned int val; in margining_dwell_time_write() local 1046 bool val; in margining_optional_voltage_offset_write() local 1219 static int margining_run_write(void *data, u64 val) in margining_run_write() 1341 const struct tb_margining *margining, u8 val) in voltage_margin_show() [all …]
|
/linux-6.14.4/drivers/pci/controller/dwc/ |
D | pcie-designware.c | 211 static u8 __dw_pcie_find_next_cap(struct dw_pcie *pci, u8 cap_ptr, in __dw_pcie_find_next_cap() 233 u8 dw_pcie_find_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_find_capability() 246 u8 cap) in dw_pcie_find_next_ext_capability() 280 u16 dw_pcie_find_ext_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_find_ext_capability() 286 int dw_pcie_read(void __iomem *addr, int size, u32 *val) in dw_pcie_read() 308 int dw_pcie_write(void __iomem *addr, int size, u32 val) in dw_pcie_write() 329 u32 val; in dw_pcie_read_dbi() local 342 void dw_pcie_write_dbi(struct dw_pcie *pci, u32 reg, size_t size, u32 val) in dw_pcie_write_dbi() 357 void dw_pcie_write_dbi2(struct dw_pcie *pci, u32 reg, size_t size, u32 val) in dw_pcie_write_dbi2() 386 u32 val; in dw_pcie_readl_atu() local [all …]
|
D | pcie-designware-ep.c | 73 u8 cap_ptr, u8 cap) in __dw_pcie_ep_find_next_cap() 94 static u8 dw_pcie_ep_find_capability(struct dw_pcie_ep *ep, u8 func_no, u8 cap) in dw_pcie_ep_find_capability() 352 u32 val, reg; in dw_pcie_ep_get_msi() local 374 u32 val, reg; in dw_pcie_ep_set_msi() local 395 u32 val, reg; in dw_pcie_ep_get_msix() local 417 u32 val, reg; in dw_pcie_ep_set_msix() local 693 static unsigned int dw_pcie_ep_find_ext_capability(struct dw_pcie *pci, int cap) in dw_pcie_ep_find_ext_capability()
|
/linux-6.14.4/drivers/power/supply/ |
D | sc27xx_fuel_gauge.c | 154 int ret, status, cap, mode; in sc27xx_fgu_is_first_poweron() local 224 static int sc27xx_fgu_save_last_cap(struct sc27xx_fgu_data *data, int cap) in sc27xx_fgu_save_last_cap() 267 static int sc27xx_fgu_read_last_cap(struct sc27xx_fgu_data *data, int *cap) in sc27xx_fgu_read_last_cap() 286 static int sc27xx_fgu_get_boot_capacity(struct sc27xx_fgu_data *data, int *cap) in sc27xx_fgu_get_boot_capacity() 385 static int sc27xx_fgu_get_vol_now(struct sc27xx_fgu_data *data, int *val) in sc27xx_fgu_get_vol_now() 404 static int sc27xx_fgu_get_cur_now(struct sc27xx_fgu_data *data, int *val) in sc27xx_fgu_get_cur_now() 423 static int sc27xx_fgu_get_capacity(struct sc27xx_fgu_data *data, int *cap) in sc27xx_fgu_get_capacity() 454 static int sc27xx_fgu_get_vbat_vol(struct sc27xx_fgu_data *data, int *val) in sc27xx_fgu_get_vbat_vol() 471 static int sc27xx_fgu_get_current(struct sc27xx_fgu_data *data, int *val) in sc27xx_fgu_get_current() 488 static int sc27xx_fgu_get_vbat_ocv(struct sc27xx_fgu_data *data, int *val) in sc27xx_fgu_get_vbat_ocv() [all …]
|
/linux-6.14.4/arch/arm64/kernel/ |
D | cpufeature.c | 995 u64 val = 0; in init_cpu_ftr_reg() local 1216 static int check_update_ftr_reg(u32 sys_id, int cpu, u64 val, u64 boot) in check_update_ftr_reg() 1504 u64 val; in __read_sysreg_by_encoding() local 1576 int val, min, max; in feature_matches() local 1615 u64 val = read_scoped_sysreg(entry, scope); in has_user_cpuid_feature() local 1633 u64 val = read_scoped_sysreg(entry, scope); in has_cpuid_feature() local 1998 static void cpu_enable_kpti(struct arm64_cpu_capabilities const *cap) in cpu_enable_kpti() 2051 static bool cpu_can_use_dbm(const struct arm64_cpu_capabilities *cap) in cpu_can_use_dbm() 2057 static void cpu_enable_hw_dbm(struct arm64_cpu_capabilities const *cap) in cpu_enable_hw_dbm() 2065 static bool has_hw_dbm(const struct arm64_cpu_capabilities *cap, in has_hw_dbm() [all …]
|
/linux-6.14.4/drivers/staging/media/starfive/camss/ |
D | stf-capture.c | 78 struct stf_capture *cap = to_stf_capture(video); in stf_init_addrs() local 112 struct stf_capture *cap = to_stf_capture(video); in stf_cap_s_cfg() local 137 struct stf_capture *cap = to_stf_capture(video); in stf_cap_s_cleanup() local 152 struct stf_capture *cap = to_stf_capture(video); in stf_wr_data_en() local 160 struct stf_capture *cap = to_stf_capture(video); in stf_wr_irq_enable() local 168 struct stf_capture *cap = to_stf_capture(video); in stf_wr_irq_disable() local 178 struct stf_capture *cap = to_stf_capture(video); in stf_channel_set() local 180 u32 val; in stf_channel_set() local 221 struct stf_capture *cap = to_stf_capture(video); in stf_capture_start() local 234 struct stf_capture *cap = to_stf_capture(video); in stf_capture_stop() local [all …]
|
/linux-6.14.4/include/linux/ |
D | capability.h | 24 typedef struct { u64 val; } kernel_cap_t; member 153 static inline bool has_capability(struct task_struct *t, int cap) in has_capability() 158 struct user_namespace *ns, int cap) in has_ns_capability() 162 static inline bool has_capability_noaudit(struct task_struct *t, int cap) in has_capability_noaudit() 167 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() 171 static inline bool capable(int cap) in capable() 175 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() 179 static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit() 183 static inline bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid()
|
/linux-6.14.4/drivers/media/usb/pvrusb2/ |
D | pvrusb2-hdw.c | 337 static void trace_stbit(const char *name,int val) in trace_stbit() 441 struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; in ctrl_cropl_min_get() local 452 struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; in ctrl_cropl_max_get() local 466 struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; in ctrl_cropt_min_get() local 477 struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; in ctrl_cropt_max_get() local 491 struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; in ctrl_cropw_max_get() local 507 struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; in ctrl_croph_max_get() local 521 static int ctrl_get_cropcapbl(struct pvr2_ctrl *cptr, int *val) in ctrl_get_cropcapbl() 523 struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; in ctrl_get_cropcapbl() local 532 static int ctrl_get_cropcapbt(struct pvr2_ctrl *cptr, int *val) in ctrl_get_cropcapbt() [all …]
|
/linux-6.14.4/drivers/pci/controller/cadence/ |
D | pcie-cadence-ep.c | 22 u32 cap = CDNS_PCIE_EP_FUNC_SRIOV_CAP_OFFSET; in cdns_pcie_get_fn_from_vfn() local 39 u32 cap = CDNS_PCIE_EP_FUNC_SRIOV_CAP_OFFSET; in cdns_pcie_ep_write_header() local 227 u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; in cdns_pcie_ep_set_msi() local 249 u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; in cdns_pcie_ep_get_msi() local 272 u32 cap = CDNS_PCIE_EP_FUNC_MSIX_CAP_OFFSET; in cdns_pcie_ep_get_msix() local 273 u32 val, reg; in cdns_pcie_ep_get_msix() local 293 u32 cap = CDNS_PCIE_EP_FUNC_MSIX_CAP_OFFSET; in cdns_pcie_ep_set_msix() local 294 u32 val, reg; in cdns_pcie_ep_set_msix() local 381 u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; in cdns_pcie_ep_send_msi_irq() local 433 u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; in cdns_pcie_ep_map_msi_irq() local [all …]
|
/linux-6.14.4/drivers/vfio/pci/ |
D | vfio_pci_config.c | 124 __le32 *val, int count) in vfio_user_config_read() 155 __le32 val, int count) in vfio_user_config_write() 177 int offset, __le32 *val) in vfio_default_config_read() 203 int offset, __le32 val) in vfio_default_config_write() 250 int offset, __le32 *val) in vfio_direct_config_read() 275 int offset, __le32 val) in vfio_raw_config_write() 288 int offset, __le32 *val) in vfio_raw_config_read() 302 int offset, __le32 val) in vfio_virt_config_write() 310 int offset, __le32 *val) in vfio_virt_config_read() 451 u32 val; in vfio_generate_bar_flags() local [all …]
|
/linux-6.14.4/drivers/gpu/drm/display/ |
D | drm_dp_cec.c | 96 u32 val = enable ? DP_CEC_TUNNELING_ENABLE : 0; in drm_dp_cec_adap_enable() local 142 u8 val; in drm_dp_cec_adap_monitor_all_enable() local 270 u8 cap = 0; in drm_dp_cec_cap() local 308 u8 cap; in drm_dp_cec_attach() local
|
/linux-6.14.4/sound/soc/sof/intel/ |
D | hda-ctrl.c | 34 u32 val; in hda_dsp_ctrl_link_reset() local 61 u32 cap, offset, feature; in hda_dsp_ctrl_get_caps() local 135 u32 val = enable ? SOF_HDA_PPCTL_GPROCEN : 0; in hda_dsp_ctrl_ppcap_enable() local 144 u32 val = enable ? SOF_HDA_PPCTL_PIE : 0; in hda_dsp_ctrl_ppcap_int_enable() local 153 u32 val = enable ? PCI_CGCTL_MISCBDCGE_MASK : 0; in hda_dsp_ctrl_misc_clock_gating() local 166 u32 val; in hda_dsp_ctrl_clock_power_gating() local
|
/linux-6.14.4/drivers/pci/pcie/ |
D | aspm.c | 33 u32 *cap; in pci_save_ltr_state() local 57 u32 *cap; in pci_restore_ltr_state() local 86 u32 *cap; in pci_save_aspm_l1ss_state() local 128 u32 *cap, pl_ctl1, pl_ctl2, pl_l1_2_enable; in pci_restore_aspm_l1ss_state() local 326 u16 *cap, lnkctl, aspm_ctl; in pci_update_aspm_saved_state() local 351 u32 val = enable ? PCI_EXP_LNKCTL_CLKREQ_EN : 0; in pcie_set_clkpm_nocheck() local 512 static u32 calc_l12_pwron(struct pci_dev *pdev, u32 scale, u32 val) in calc_l12_pwron() 887 u32 val; in pcie_config_aspm_l1ss() local 921 static void pcie_config_aspm_dev(struct pci_dev *pdev, u32 val) in pcie_config_aspm_dev() 1180 u32 cap, ctl; in pci_configure_ltr() local [all …]
|
/linux-6.14.4/drivers/gpu/drm/hisilicon/hibmc/dp/ |
D | dp_comm.h | 31 struct hibmc_link_cap cap; member 43 #define dp_field_modify(reg_value, mask, val) \ argument 49 #define hibmc_dp_reg_write_field(dp, offset, mask, val) \ argument
|
/linux-6.14.4/drivers/vdpa/octeon_ep/ |
D | octep_vdpa_hw.c | 20 #define MBOX_RSP_TO_ERR(val) (-(((val) & MBOX_RC_MASK) >> 2)) argument 21 #define MBOX_AVAIL(val) (((val) & MBOX_RSP_MASK)) argument 22 #define MBOX_RSP(val) ((val) & (MBOX_RC_MASK | MBOX_RSP_MASK)) argument 58 u32 val; in octep_wait_for_mbox_avail() local 66 u32 val; in octep_wait_for_mbox_rsp() local 111 u32 val; in octep_process_mbox() local 193 u8 val; in octep_hw_reset() local 205 u32 val; in feature_sel_write_with_timeout() local 265 u16 val; in octep_write_queue_select() local 372 static void __iomem *octep_get_cap_addr(struct octep_hw *oct_hw, struct virtio_pci_cap *cap) in octep_get_cap_addr() [all …]
|
/linux-6.14.4/arch/arm64/include/asm/ |
D | cpufeature.h | 90 u64 val; member 389 static inline int cpucap_default_scope(const struct arm64_cpu_capabilities *cap) in cpucap_default_scope() 433 #define for_each_available_cap(cap) \ argument 534 cpuid_feature_cap_perfmon_field(u64 features, int field, u64 cap) in cpuid_feature_cap_perfmon_field() 536 u64 val = cpuid_feature_extract_unsigned_field(features, field); in cpuid_feature_cap_perfmon_field() local 577 static inline s64 arm64_ftr_value(const struct arm64_ftr_bits *ftrp, u64 val) in arm64_ftr_value() 590 u32 val = cpuid_feature_extract_unsigned_field(pfr0, ID_AA64PFR0_EL1_EL1_SHIFT); in id_aa64pfr0_32bit_el1() local 597 u32 val = cpuid_feature_extract_unsigned_field(pfr0, ID_AA64PFR0_EL1_EL0_SHIFT); in id_aa64pfr0_32bit_el0() local 604 u32 val = cpuid_feature_extract_unsigned_field(pfr0, ID_AA64PFR0_EL1_SVE_SHIFT); in id_aa64pfr0_sve() local 611 u32 val = cpuid_feature_extract_unsigned_field(pfr1, ID_AA64PFR1_EL1_SME_SHIFT); in id_aa64pfr1_sme() local [all …]
|
/linux-6.14.4/arch/powerpc/platforms/powernv/ |
D | eeh-powernv.c | 105 static int pnv_eeh_dbgfs_set(void *data, int offset, u64 val) in pnv_eeh_dbgfs_set() 114 static int pnv_eeh_dbgfs_get(void *data, int offset, u64 *val) in pnv_eeh_dbgfs_get() 230 static int pnv_eeh_find_cap(struct pci_dn *pdn, int cap) in pnv_eeh_find_cap() 265 static int pnv_eeh_find_ecap(struct pci_dn *pdn, int cap) in pnv_eeh_find_ecap() 969 u32 cap = 0; in pnv_eeh_do_af_flr() local 1229 int where, int size, u32 *val) in pnv_eeh_read_config() 1245 int where, int size, u32 val) in pnv_eeh_write_config()
|
/linux-6.14.4/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 769 void print_hwp_cap(int cpu, struct msr_hwp_cap *cap, char *str) in print_hwp_cap() 777 void read_hwp_cap(int cpu, struct msr_hwp_cap *cap, unsigned int msr_offset) in read_hwp_cap() 851 long val; in get_epb() local 868 static int set_epb(int cpu, int val) in set_epb() 895 struct msr_hwp_cap cap; in print_cpu_msrs() local 1035 …check_hwp_request_v_hwp_capabilities(int cpu, struct msr_hwp_request *req, struct msr_hwp_cap *cap) in check_hwp_request_v_hwp_capabilities() 1080 struct msr_hwp_cap cap; in update_hwp_request() local 1125 struct msr_hwp_cap cap; in update_hwp_request_pkg() local
|
/linux-6.14.4/arch/x86/kernel/cpu/mce/ |
D | intel.c | 80 u64 cap; in cmci_supported() local 141 u64 val; in cmci_set_threshold() local 176 static bool cmci_skip_bank(int bank, u64 *val) in cmci_skip_bank() 206 static u64 cmci_pick_threshold(u64 val, int *bios_zero_thresh) in cmci_pick_threshold() 230 static void cmci_claim_bank(int bank, u64 val, int bios_zero_thresh, int *bios_wrong_thresh) in cmci_claim_bank() 285 u64 val; in cmci_discover() local 323 u64 val; in __cmci_disable_bank() local 428 u64 val; in intel_init_lmce() local 441 u64 val; in intel_clear_lmce() local
|
/linux-6.14.4/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | init.c | 80 long val; in mt7915_thermal_temp_store() local 229 u32 val; in mt7915_led_set_config() local 298 u32 val; in __mt7915_init_txpower() local 743 u32 val = MT_TOP_PWR_KEY | MT_TOP_PWR_SW_PWR_ON | MT_TOP_PWR_PWR_ON; in mt7915_wfsys_reset() local 863 u32 *cap; in mt7915_set_stream_vht_txbf_caps() local 1137 u16 cap = IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS | in mt7915_init_he_caps() local
|
/linux-6.14.4/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 259 static inline bool kvm_has_cap(long cap) in kvm_has_cap() 356 static inline int vm_check_cap(struct kvm_vm *vm, long cap) in vm_check_cap() 364 static inline int __vm_enable_cap(struct kvm_vm *vm, uint32_t cap, uint64_t arg0) in __vm_enable_cap() 370 static inline void vm_enable_cap(struct kvm_vm *vm, uint32_t cap, uint64_t arg0) in vm_enable_cap() 618 #define vcpu_arch_put_guest(mem, val) do { (mem) = (val); } while (0) argument 637 static inline void vcpu_enable_cap(struct kvm_vcpu *vcpu, uint32_t cap, in vcpu_enable_cap() 699 static inline int __vcpu_set_reg(struct kvm_vcpu *vcpu, uint64_t id, uint64_t val) in __vcpu_set_reg() 707 uint64_t val; in vcpu_get_reg() local 715 static inline void vcpu_set_reg(struct kvm_vcpu *vcpu, uint64_t id, uint64_t val) in vcpu_set_reg() 774 uint64_t attr, void *val) in kvm_device_attr_get() [all …]
|
/linux-6.14.4/drivers/pci/ |
D | pci.c | 427 u8 pos, int cap, int *ttl) in __pci_find_next_cap_ttl() 451 u8 pos, int cap) in __pci_find_next_cap() 458 u8 pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) in pci_find_next_capability() 504 u8 pci_find_capability(struct pci_dev *dev, int cap) in pci_find_capability() 529 u8 pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) in pci_bus_find_capability() 554 u16 pci_find_next_ext_capability(struct pci_dev *dev, u16 start, int cap) in pci_find_next_ext_capability() 609 u16 pci_find_ext_capability(struct pci_dev *dev, int cap) in pci_find_ext_capability() 652 u8 cap, mask; in __pci_find_next_ht_cap() local 729 u16 pci_find_vsec_capability(struct pci_dev *dev, u16 vendor, int cap) in pci_find_vsec_capability() 951 u16 cap; member [all …]
|
/linux-6.14.4/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_dcb.c | 195 static u8 qlcnic_dcb_get_num_app(struct qlcnic_adapter *adapter, u32 val) in qlcnic_dcb_get_num_app() 204 u32 val) in qlcnic_dcb_pfc_hdr_valid() 213 u32 val) in qlcnic_dcb_tsa_hdr_valid() 222 u32 val) in qlcnic_dcb_get_prio_map_app() 370 static int __qlcnic_dcb_get_capability(struct qlcnic_dcb *dcb, u32 *val) in __qlcnic_dcb_get_capability() 372 struct qlcnic_dcb_capability *cap = &dcb->cfg->capability; in __qlcnic_dcb_get_capability() local 406 struct qlcnic_dcb_capability *cap; in qlcnic_82xx_dcb_get_hw_capability() local 543 struct qlcnic_dcb_capability *cap = &dcb->cfg->capability; in qlcnic_83xx_dcb_get_hw_capability() local 572 u32 val; in qlcnic_83xx_dcb_query_cee_param() local 642 u32 *val = data; in qlcnic_83xx_dcb_aen_handler() local [all …]
|
/linux-6.14.4/arch/powerpc/platforms/pseries/ |
D | eeh_pseries.c | 263 static int pseries_eeh_find_cap(struct pci_dn *pdn, int cap) in pseries_eeh_find_cap() 288 static int pseries_eeh_find_ecap(struct pci_dn *pdn, int cap) in pseries_eeh_find_ecap() 677 static int pseries_eeh_read_config(struct eeh_dev *edev, int where, int size, u32 *val) in pseries_eeh_read_config() 693 static int pseries_eeh_write_config(struct eeh_dev *edev, int where, int size, u32 val) in pseries_eeh_write_config()
|