Home
last modified time | relevance | path

Searched refs:caps (Results 1 – 25 of 1048) sorted by relevance

12345678910>>...42

/Linux-v5.15/drivers/media/platform/qcom/venus/
Dhfi_platform_v4.c7 static const struct hfi_plat_caps caps[] = { variable
12 .caps[0] = {HFI_CAPABILITY_FRAME_WIDTH, 96, 4096, 1},
13 .caps[1] = {HFI_CAPABILITY_FRAME_HEIGHT, 96, 4096, 1},
14 .caps[2] = {HFI_CAPABILITY_MBS_PER_FRAME, 1, 36864, 1},
15 .caps[3] = {HFI_CAPABILITY_BITRATE, 1, 120000000, 1},
16 .caps[4] = {HFI_CAPABILITY_SCALE_X, 4096, 65536, 1},
17 .caps[5] = {HFI_CAPABILITY_SCALE_Y, 4096, 65536, 1},
18 .caps[6] = {HFI_CAPABILITY_MBS_PER_SECOND, 1, 2073600, 1},
19 .caps[7] = {HFI_CAPABILITY_FRAMERATE, 1, 480, 1},
20 .caps[8] = {HFI_CAPABILITY_MAX_VIDEOCORES, 1, 2, 1},
[all …]
Dhfi_platform_v6.c7 static const struct hfi_plat_caps caps[] = { variable
12 .caps[0] = {HFI_CAPABILITY_FRAME_WIDTH, 128, 8192, 1},
13 .caps[1] = {HFI_CAPABILITY_FRAME_HEIGHT, 128, 8192, 1},
15 .caps[2] = {HFI_CAPABILITY_MBS_PER_FRAME, 64, 138240, 1},
16 .caps[3] = {HFI_CAPABILITY_BITRATE, 1, 220000000, 1},
17 .caps[4] = {HFI_CAPABILITY_SCALE_X, 65536, 65536, 1},
18 .caps[5] = {HFI_CAPABILITY_SCALE_Y, 65536, 65536, 1},
19 .caps[6] = {HFI_CAPABILITY_MBS_PER_SECOND, 64, 7833600, 1},
20 .caps[7] = {HFI_CAPABILITY_FRAMERATE, 1, 960, 1},
21 .caps[8] = {HFI_CAPABILITY_MAX_VIDEOCORES, 0, 1, 1},
[all …]
Dhfi_parser.c19 struct hfi_plat_caps *caps = core->caps, *cap; in init_codecs() local
23 cap = &caps[core->codecs_count++]; in init_codecs()
30 cap = &caps[core->codecs_count++]; in init_codecs()
37 static void for_each_codec(struct hfi_plat_caps *caps, unsigned int caps_num, in for_each_codec() argument
45 cap = &caps[i]; in for_each_codec()
77 for_each_codec(core->caps, ARRAY_SIZE(core->caps), in parse_alloc_mode()
105 for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, in parse_profile_level()
112 const struct hfi_capability *caps = data; in fill_caps() local
114 memcpy(&cap->caps[cap->num_caps], caps, num * sizeof(*caps)); in fill_caps()
121 struct hfi_capabilities *caps = data; in parse_caps() local
[all …]
/Linux-v5.15/drivers/net/wireless/ath/ath5k/
Dcaps.c35 struct ath5k_capabilities *caps = &ah->ah_capabilities; in ath5k_hw_set_capabilities() local
39 ee_header = caps->cap_eeprom.ee_header; in ath5k_hw_set_capabilities()
46 caps->cap_range.range_5ghz_min = 5120; in ath5k_hw_set_capabilities()
47 caps->cap_range.range_5ghz_max = 5430; in ath5k_hw_set_capabilities()
48 caps->cap_range.range_2ghz_min = 0; in ath5k_hw_set_capabilities()
49 caps->cap_range.range_2ghz_max = 0; in ath5k_hw_set_capabilities()
52 __set_bit(AR5K_MODE_11A, caps->cap_mode); in ath5k_hw_set_capabilities()
69 if (ath_is_49ghz_allowed(caps->cap_eeprom.ee_regdomain)) in ath5k_hw_set_capabilities()
70 caps->cap_range.range_5ghz_min = 4920; in ath5k_hw_set_capabilities()
72 caps->cap_range.range_5ghz_min = 5005; in ath5k_hw_set_capabilities()
[all …]
/Linux-v5.15/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_cfg.c21 .caps = MDP_CAP_SMP |
41 .caps = MDP_PIPE_CAP_HFLIP |
50 .caps = MDP_PIPE_CAP_HFLIP |
58 .caps = MDP_PIPE_CAP_HFLIP |
67 .caps = MDP_LM_CAP_DISPLAY, },
69 .caps = MDP_LM_CAP_DISPLAY, },
71 .caps = MDP_LM_CAP_DISPLAY, },
73 .caps = MDP_LM_CAP_WB },
75 .caps = MDP_LM_CAP_WB },
110 .caps = MDP_CAP_SMP |
[all …]
Dmdp5_pipe.c10 uint32_t caps, uint32_t blkcfg, in mdp5_pipe_assign() argument
45 if (caps & ~cur->caps) in mdp5_pipe_assign()
52 if (cur->caps & MDP_PIPE_CAP_CURSOR && in mdp5_pipe_assign()
59 if (!(*hwpipe) || (hweight_long(cur->caps & ~caps) < in mdp5_pipe_assign()
60 hweight_long((*hwpipe)->caps & ~caps))) { in mdp5_pipe_assign()
70 if (r_cur->caps != cur->caps) in mdp5_pipe_assign()
110 (*hwpipe)->name, plane->name, caps); in mdp5_pipe_assign()
115 (*r_hwpipe)->name, plane->name, caps); in mdp5_pipe_assign()
152 uint32_t reg_offset, uint32_t caps) in mdp5_pipe_init() argument
163 hwpipe->caps = caps; in mdp5_pipe_init()
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ctrl.c12 static void nfp_net_tlv_caps_reset(struct nfp_net_tlv_caps *caps) in nfp_net_tlv_caps_reset() argument
14 memset(caps, 0, sizeof(*caps)); in nfp_net_tlv_caps_reset()
15 caps->me_freq_mhz = 1200; in nfp_net_tlv_caps_reset()
16 caps->mbox_off = NFP_NET_CFG_MBOX_BASE; in nfp_net_tlv_caps_reset()
17 caps->mbox_len = NFP_NET_CFG_MBOX_VAL_MAX_SZ; in nfp_net_tlv_caps_reset()
21 nfp_net_tls_parse_crypto_ops(struct device *dev, struct nfp_net_tlv_caps *caps, in nfp_net_tls_parse_crypto_ops() argument
27 if (caps->tls_resync_ss && !rx_stream_scan) in nfp_net_tls_parse_crypto_ops()
37 caps->crypto_ops = readl(data); in nfp_net_tls_parse_crypto_ops()
38 caps->crypto_enable_off = data - ctrl_mem + 16; in nfp_net_tls_parse_crypto_ops()
39 caps->tls_resync_ss = rx_stream_scan; in nfp_net_tls_parse_crypto_ops()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_dwb.c47 static bool dwb1_get_caps(struct dwbc *dwbc, struct dwb_caps *caps) in dwb1_get_caps() argument
49 if (caps) { in dwb1_get_caps()
50 caps->adapter_id = 0; /* we only support 1 adapter currently */ in dwb1_get_caps()
51 caps->hw_version = DCN_VERSION_1_0; in dwb1_get_caps()
52 caps->num_pipes = 2; in dwb1_get_caps()
53 memset(&caps->reserved, 0, sizeof(caps->reserved)); in dwb1_get_caps()
54 memset(&caps->reserved2, 0, sizeof(caps->reserved2)); in dwb1_get_caps()
55 caps->sw_version = dwb_ver_1_0; in dwb1_get_caps()
56 caps->caps.support_dwb = true; in dwb1_get_caps()
57 caps->caps.support_ogam = false; in dwb1_get_caps()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/
Dmain.c300 dev->caps.reserved_uars = in mlx4_set_num_reserved_uars()
312 if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_DPDP)) { in mlx4_check_port_params()
313 for (i = 0; i < dev->caps.num_ports - 1; i++) { in mlx4_check_port_params()
321 for (i = 0; i < dev->caps.num_ports; i++) { in mlx4_check_port_params()
322 if (!(port_type[i] & dev->caps.supported_type[i+1])) { in mlx4_check_port_params()
335 for (i = 1; i <= dev->caps.num_ports; ++i) in mlx4_set_port_mask()
336 dev->caps.port_mask[i] = dev->caps.port_type[i]; in mlx4_set_port_mask()
348 if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_SYS_EQS) { in mlx4_query_func()
364 struct mlx4_caps *dev_cap = &dev->caps; in mlx4_enable_cqe_eqe_stride()
400 dev->caps.vl_cap[port] = port_cap->max_vl; in _mlx4_dev_port()
[all …]
/Linux-v5.15/drivers/infiniband/hw/hns/
Dhns_roce_main.c69 if (port >= hr_dev->caps.num_ports) in hns_roce_add_gid()
83 if (port >= hr_dev->caps.num_ports) in hns_roce_del_gid()
136 for (port = 0; port < hr_dev->caps.num_ports; port++) { in hns_roce_netdev_event()
153 for (i = 0; i < hr_dev->caps.num_ports; i++) { in hns_roce_setup_mtu_mac()
156 hr_dev->caps.max_mtu); in hns_roce_setup_mtu_mac()
174 props->fw_ver = hr_dev->caps.fw_ver; in hns_roce_query_device()
177 props->page_size_cap = hr_dev->caps.page_size_cap; in hns_roce_query_device()
181 props->max_qp = hr_dev->caps.num_qps; in hns_roce_query_device()
182 props->max_qp_wr = hr_dev->caps.max_wqes; in hns_roce_query_device()
185 props->max_send_sge = hr_dev->caps.max_sq_sg; in hns_roce_query_device()
[all …]
Dhns_roce_hw_v2.c1564 hr_dev->caps.fw_ver = (u64)(le32_to_cpu(resp->fw_ver)); in hns_roce_query_fw_ver()
1612 struct hns_roce_caps *caps = &hr_dev->caps; in load_func_res_caps() local
1633 caps->qpc_bt_num = hr_reg_read(r_a, FUNC_RES_A_QPC_BT_NUM) / func_num; in load_func_res_caps()
1634 caps->srqc_bt_num = hr_reg_read(r_a, FUNC_RES_A_SRQC_BT_NUM) / func_num; in load_func_res_caps()
1635 caps->cqc_bt_num = hr_reg_read(r_a, FUNC_RES_A_CQC_BT_NUM) / func_num; in load_func_res_caps()
1636 caps->mpt_bt_num = hr_reg_read(r_a, FUNC_RES_A_MPT_BT_NUM) / func_num; in load_func_res_caps()
1637 caps->eqc_bt_num = hr_reg_read(r_a, FUNC_RES_A_EQC_BT_NUM) / func_num; in load_func_res_caps()
1638 caps->smac_bt_num = hr_reg_read(r_b, FUNC_RES_B_SMAC_NUM) / func_num; in load_func_res_caps()
1639 caps->sgid_bt_num = hr_reg_read(r_b, FUNC_RES_B_SGID_NUM) / func_num; in load_func_res_caps()
1640 caps->sccc_bt_num = hr_reg_read(r_b, FUNC_RES_B_SCCC_BT_NUM) / func_num; in load_func_res_caps()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_domain.c8 ((dmn)->info.caps.dmn_type##_sw_owner || \
9 ((dmn)->info.caps.dmn_type##_sw_owner_v2 && \
10 (dmn)->info.caps.sw_format_ver <= MLX5_STEERING_FORMAT_CONNECTX_6DX))
17 dmn->cache.recalc_cs_ft = kcalloc(dmn->info.caps.num_vports, in dr_domain_init_cache()
30 for (i = 0; i < dmn->info.caps.num_vports; i++) { in dr_domain_uninit_cache()
65 dmn->ste_ctx = mlx5dr_ste_get_ctx(dmn->info.caps.sw_format_ver); in dr_domain_init_resources()
134 vport_caps = &dmn->info.caps.vports_caps[vport_number]; in dr_domain_query_vport()
152 vport_caps->vhca_gvmi = dmn->info.caps.gvmi; in dr_domain_query_vport()
159 struct mlx5dr_esw_caps *esw_caps = &dmn->info.caps.esw_caps; in dr_domain_query_vports()
165 for (vport = 0; vport < dmn->info.caps.num_esw_ports - 1; vport++) { in dr_domain_query_vports()
[all …]
Ddr_matcher.c116 dr_matcher_supp_vxlan_gpe(struct mlx5dr_cmd_caps *caps) in dr_matcher_supp_vxlan_gpe() argument
118 return (caps->sw_format_ver == MLX5_STEERING_FORMAT_CONNECTX_6DX) || in dr_matcher_supp_vxlan_gpe()
119 (caps->flex_protocols & MLX5_FLEX_PARSER_VXLAN_GPE_ENABLED); in dr_matcher_supp_vxlan_gpe()
127 dr_matcher_supp_vxlan_gpe(&dmn->info.caps); in dr_mask_is_tnl_vxlan_gpe()
144 dr_matcher_supp_tnl_geneve(struct mlx5dr_cmd_caps *caps) in dr_matcher_supp_tnl_geneve() argument
146 return (caps->sw_format_ver == MLX5_STEERING_FORMAT_CONNECTX_6DX) || in dr_matcher_supp_tnl_geneve()
147 (caps->flex_protocols & MLX5_FLEX_PARSER_GENEVE_ENABLED); in dr_matcher_supp_tnl_geneve()
155 dr_matcher_supp_tnl_geneve(&dmn->info.caps); in dr_mask_is_tnl_geneve()
163 static bool dr_matcher_supp_tnl_gtpu(struct mlx5dr_cmd_caps *caps) in dr_matcher_supp_tnl_gtpu() argument
165 return caps->flex_protocols & MLX5_FLEX_PARSER_GTPU_ENABLED; in dr_matcher_supp_tnl_gtpu()
[all …]
Ddr_cmd.c67 struct mlx5dr_esw_caps *caps) in mlx5dr_cmd_query_esw_caps() argument
69 caps->drop_icm_address_rx = in mlx5dr_cmd_query_esw_caps()
72 caps->drop_icm_address_tx = in mlx5dr_cmd_query_esw_caps()
75 caps->uplink_icm_address_rx = in mlx5dr_cmd_query_esw_caps()
78 caps->uplink_icm_address_tx = in mlx5dr_cmd_query_esw_caps()
81 caps->sw_owner_v2 = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner_v2); in mlx5dr_cmd_query_esw_caps()
82 if (!caps->sw_owner_v2) in mlx5dr_cmd_query_esw_caps()
83 caps->sw_owner = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner); in mlx5dr_cmd_query_esw_caps()
110 struct mlx5dr_cmd_caps *caps) in mlx5dr_cmd_query_device() argument
115 caps->prio_tag_required = MLX5_CAP_GEN(mdev, prio_tag_required); in mlx5dr_cmd_query_device()
[all …]
/Linux-v5.15/arch/powerpc/perf/
Dhv-common.c8 unsigned long hv_perf_caps_get(struct hv_perf_caps *caps) in hv_perf_caps_get() argument
13 struct hv_gpci_system_performance_capabilities caps; in hv_perf_caps_get() member
31 pr_devel("capability_mask: 0x%x\n", arg.caps.capability_mask); in hv_perf_caps_get()
33 caps->version = arg.params.counter_info_version_out; in hv_perf_caps_get()
34 caps->collect_privileged = !!arg.caps.perf_collect_privileged; in hv_perf_caps_get()
35 caps->ga = !!(arg.caps.capability_mask & HV_GPCI_CM_GA); in hv_perf_caps_get()
36 caps->expanded = !!(arg.caps.capability_mask & HV_GPCI_CM_EXPANDED); in hv_perf_caps_get()
37 caps->lab = !!(arg.caps.capability_mask & HV_GPCI_CM_LAB); in hv_perf_caps_get()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_dwb.c46 static bool dwb3_get_caps(struct dwbc *dwbc, struct dwb_caps *caps) in dwb3_get_caps() argument
48 if (caps) { in dwb3_get_caps()
49 caps->adapter_id = 0; /* we only support 1 adapter currently */ in dwb3_get_caps()
50 caps->hw_version = DCN_VERSION_3_0; in dwb3_get_caps()
51 caps->num_pipes = 2; in dwb3_get_caps()
52 memset(&caps->reserved, 0, sizeof(caps->reserved)); in dwb3_get_caps()
53 memset(&caps->reserved2, 0, sizeof(caps->reserved2)); in dwb3_get_caps()
54 caps->sw_version = dwb_ver_2_0; in dwb3_get_caps()
55 caps->caps.support_dwb = true; in dwb3_get_caps()
56 caps->caps.support_ogam = true; in dwb3_get_caps()
[all …]
/Linux-v5.15/drivers/cpufreq/
Dcppc_cpufreq.c316 struct cppc_perf_caps *caps = &cpu_data->perf_caps; in cppc_cpufreq_perf_to_khz() local
320 if (caps->lowest_freq && caps->nominal_freq) { in cppc_cpufreq_perf_to_khz()
321 if (perf >= caps->nominal_perf) { in cppc_cpufreq_perf_to_khz()
322 mul = caps->nominal_freq; in cppc_cpufreq_perf_to_khz()
323 div = caps->nominal_perf; in cppc_cpufreq_perf_to_khz()
325 mul = caps->nominal_freq - caps->lowest_freq; in cppc_cpufreq_perf_to_khz()
326 div = caps->nominal_perf - caps->lowest_perf; in cppc_cpufreq_perf_to_khz()
332 div = caps->highest_perf; in cppc_cpufreq_perf_to_khz()
340 struct cppc_perf_caps *caps = &cpu_data->perf_caps; in cppc_cpufreq_khz_to_perf() local
344 if (caps->lowest_freq && caps->nominal_freq) { in cppc_cpufreq_khz_to_perf()
[all …]
/Linux-v5.15/drivers/vfio/pci/
Dvfio_pci_zdev.c22 static int zpci_base_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_base_cap() argument
36 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); in zpci_base_cap()
42 static int zpci_group_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_group_cap() argument
56 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); in zpci_group_cap()
62 static int zpci_util_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_util_cap() argument
77 ret = vfio_info_add_capability(caps, &cap->header, cap_size); in zpci_util_cap()
87 static int zpci_pfip_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_pfip_cap() argument
102 ret = vfio_info_add_capability(caps, &cap->header, cap_size); in zpci_pfip_cap()
113 struct vfio_info_cap *caps) in vfio_pci_info_zdev_add_caps() argument
121 ret = zpci_base_cap(zdev, caps); in vfio_pci_info_zdev_add_caps()
[all …]
/Linux-v5.15/tools/power/cpupower/utils/helpers/
Dcpuid.c60 cpu_info->caps = 0; in get_cpu_info()
122 cpu_info->caps |= CPUPOWER_CAP_INV_TSC; in get_cpu_info()
126 cpu_info->caps |= CPUPOWER_CAP_APERF; in get_cpu_info()
133 cpu_info->caps |= CPUPOWER_CAP_AMD_CPB; in get_cpu_info()
136 cpu_info->caps |= CPUPOWER_CAP_AMD_CPB_MSR; in get_cpu_info()
142 cpu_info->caps |= CPUPOWER_CAP_AMD_HW_PSTATE; in get_cpu_info()
145 cpu_info->caps |= CPUPOWER_CAP_AMD_PSTATEDEF; in get_cpu_info()
151 cpu_info->caps |= CPUPOWER_CAP_AMD_RDPRU; in get_cpu_info()
157 cpu_info->caps |= CPUPOWER_CAP_INTEL_IDA; in get_cpu_info()
163 cpu_info->caps |= CPUPOWER_CAP_PERF_BIAS; in get_cpu_info()
[all …]
/Linux-v5.15/drivers/gpu/drm/arm/display/komeda/
Dkomeda_format_caps.c16 const struct komeda_format_caps *caps; in komeda_get_format_caps() local
22 caps = &table->format_caps[id]; in komeda_get_format_caps()
24 if (fourcc != caps->fourcc) in komeda_get_format_caps()
27 if ((modifier == 0ULL) && (caps->supported_afbc_layouts == 0)) in komeda_get_format_caps()
28 return caps; in komeda_get_format_caps()
30 if (has_bits(afbc_features, caps->supported_afbc_features) && in komeda_get_format_caps()
31 has_bit(afbc_layout, caps->supported_afbc_layouts)) in komeda_get_format_caps()
32 return caps; in komeda_get_format_caps()
99 const struct komeda_format_caps *caps; in komeda_format_mod_supported() local
101 caps = komeda_get_format_caps(table, fourcc, modifier); in komeda_format_mod_supported()
[all …]
/Linux-v5.15/arch/powerpc/platforms/pseries/
Dvas.c267 struct vas_caps *caps; in vas_allocate_window() local
300 caps = &vascaps[VAS_GZIP_QOS_FEAT_TYPE]; in vas_allocate_window()
302 caps = &vascaps[VAS_GZIP_DEF_FEAT_TYPE]; in vas_allocate_window()
304 cop_feat_caps = &caps->caps; in vas_allocate_window()
368 list_add(&txwin->win_list, &caps->list); in vas_allocate_window()
417 struct vas_cop_feat_caps *caps; in vas_deallocate_window() local
432 caps = &vascaps[win->win_type].caps; in vas_deallocate_window()
441 atomic_dec(&caps->used_lpar_creds); in vas_deallocate_window()
488 struct vas_cop_feat_caps *caps; in get_vas_capabilities() local
496 caps = &vcaps->caps; in get_vas_capabilities()
[all …]
/Linux-v5.15/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.c74 props->fw_ver = dev->dsr->caps.fw_ver; in pvrdma_query_device()
75 props->sys_image_guid = dev->dsr->caps.sys_image_guid; in pvrdma_query_device()
76 props->max_mr_size = dev->dsr->caps.max_mr_size; in pvrdma_query_device()
77 props->page_size_cap = dev->dsr->caps.page_size_cap; in pvrdma_query_device()
78 props->vendor_id = dev->dsr->caps.vendor_id; in pvrdma_query_device()
80 props->hw_ver = dev->dsr->caps.hw_ver; in pvrdma_query_device()
81 props->max_qp = dev->dsr->caps.max_qp; in pvrdma_query_device()
82 props->max_qp_wr = dev->dsr->caps.max_qp_wr; in pvrdma_query_device()
83 props->device_cap_flags = dev->dsr->caps.device_cap_flags; in pvrdma_query_device()
84 props->max_send_sge = dev->dsr->caps.max_sge; in pvrdma_query_device()
[all …]
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dcapsgv100.c34 struct gv100_disp_caps *caps = gv100_disp_caps(object); in gv100_disp_caps_map() local
35 struct nvkm_device *device = caps->disp->base.engine.subdev.device; in gv100_disp_caps_map()
51 struct gv100_disp_caps *caps; in gv100_disp_caps_new() local
53 if (!(caps = kzalloc(sizeof(*caps), GFP_KERNEL))) in gv100_disp_caps_new()
55 *pobject = &caps->object; in gv100_disp_caps_new()
57 nvkm_object_ctor(&gv100_disp_caps, oclass, &caps->object); in gv100_disp_caps_new()
58 caps->disp = disp; in gv100_disp_caps_new()
/Linux-v5.15/drivers/mtd/nand/raw/
Dmtk_ecc.c56 const struct mtk_ecc_caps *caps; member
138 dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECIRQ_STA]) in mtk_ecc_irq()
141 dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECDONE]); in mtk_ecc_irq()
147 readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECIRQ_STA]); in mtk_ecc_irq()
154 enc = readl(ecc->regs + ecc->caps->ecc_regs[ECC_ENCIRQ_STA]) in mtk_ecc_irq()
170 for (i = 0; i < ecc->caps->num_ecc_strength; i++) { in mtk_ecc_config()
171 if (ecc->caps->ecc_strength[i] == config->strength) in mtk_ecc_config()
175 if (i == ecc->caps->num_ecc_strength) { in mtk_ecc_config()
187 reg = ecc_bit | (config->mode << ecc->caps->ecc_mode_shift); in mtk_ecc_config()
198 config->strength * ecc->caps->parity_bits; in mtk_ecc_config()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dwb.c50 static bool dwb2_get_caps(struct dwbc *dwbc, struct dwb_caps *caps) in dwb2_get_caps() argument
53 if (caps) { in dwb2_get_caps()
54 caps->adapter_id = 0; /* we only support 1 adapter currently */ in dwb2_get_caps()
55 caps->hw_version = DCN_VERSION_2_0; in dwb2_get_caps()
56 caps->num_pipes = 1; in dwb2_get_caps()
57 memset(&caps->reserved, 0, sizeof(caps->reserved)); in dwb2_get_caps()
58 memset(&caps->reserved2, 0, sizeof(caps->reserved2)); in dwb2_get_caps()
59 caps->sw_version = dwb_ver_1_0; in dwb2_get_caps()
60 caps->caps.support_dwb = true; in dwb2_get_caps()
61 caps->caps.support_ogam = false; in dwb2_get_caps()
[all …]

12345678910>>...42