/linux-6.3-rc2/drivers/media/platform/qcom/venus/ |
A D | hfi_platform_v4.c | 7 static const struct hfi_plat_caps caps[] = { variable 12 .caps[0] = {HFI_CAPABILITY_FRAME_WIDTH, 96, 4096, 1}, 16 .caps[4] = {HFI_CAPABILITY_SCALE_X, 4096, 65536, 1}, 17 .caps[5] = {HFI_CAPABILITY_SCALE_Y, 4096, 65536, 1}, 19 .caps[7] = {HFI_CAPABILITY_FRAMERATE, 1, 480, 1}, 21 .caps[9] = {HFI_CAPABILITY_MAX_WORKMODES, 1, 3, 1}, 151 .caps[13] = {HFI_CAPABILITY_BFRAME, 0, 1, 1}, 188 .caps[13] = {HFI_CAPABILITY_BFRAME, 0, 1, 1}, 225 .caps[13] = {HFI_CAPABILITY_BFRAME, 0, 1, 1}, 250 *entries = ARRAY_SIZE(caps); in get_capabilities() [all …]
|
A D | hfi_platform_v6.c | 7 static const struct hfi_plat_caps caps[] = { variable 12 .caps[0] = {HFI_CAPABILITY_FRAME_WIDTH, 128, 8192, 1}, 16 .caps[3] = {HFI_CAPABILITY_BITRATE, 1, 220000000, 1}, 17 .caps[4] = {HFI_CAPABILITY_SCALE_X, 65536, 65536, 1}, 20 .caps[7] = {HFI_CAPABILITY_FRAMERATE, 1, 960, 1}, 45 .caps[7] = {HFI_CAPABILITY_FRAMERATE, 1, 960, 1}, 151 .caps[13] = {HFI_CAPABILITY_BFRAME, 0, 1, 1}, 188 .caps[13] = {HFI_CAPABILITY_BFRAME, 0, 1, 1}, 225 .caps[13] = {HFI_CAPABILITY_BFRAME, 0, 0, 1}, 250 *entries = ARRAY_SIZE(caps); in get_capabilities() [all …]
|
A D | hfi_parser.c | 19 struct hfi_plat_caps *caps = core->caps, *cap; in init_codecs() local 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() 114 memcpy(&cap->caps[cap->num_caps], caps, num * sizeof(*caps)); in fill_caps() 131 for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, in parse_caps() 221 caps = inst->core->caps; in parser_fini() 225 cap = &caps[i]; in parser_fini() 260 memset(core->caps, 0, sizeof(*caps) * MAX_CODEC_NUM); in hfi_platform_parser() 261 memcpy(core->caps, caps, sizeof(*caps) * entries); in hfi_platform_parser() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/mdp5/ |
A D | mdp5_cfg.c | 21 .caps = MDP_CAP_SMP | 110 .caps = MDP_CAP_SMP | 197 .caps = MDP_CAP_SMP | 298 .caps = MDP_CAP_SMP | 370 .caps = MDP_CAP_SMP | 449 .caps = MDP_CAP_SMP | 549 .caps = MDP_CAP_DSC | 662 .caps = MDP_CAP_SMP | 759 .caps = MDP_CAP_CDM | 852 .caps = MDP_CAP_CDM, [all …]
|
A D | mdp5_pipe.c | 10 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() 160 uint32_t reg_offset, uint32_t caps) in mdp5_pipe_init() argument 171 hwpipe->caps = caps; in mdp5_pipe_init()
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath5k/ |
A D | caps.c | 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() 91 if (!caps->cap_needs_2GHz_ovr) { in ath5k_hw_set_capabilities() 94 caps->cap_mode); in ath5k_hw_set_capabilities() 99 caps->cap_mode); in ath5k_hw_set_capabilities() 115 caps->cap_has_phyerr_counters = true; in ath5k_hw_set_capabilities() 121 caps->cap_has_mrr_support = true; in ath5k_hw_set_capabilities() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/ |
A D | nfp_net_ctrl.c | 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() 37 caps->crypto_ops = readl(data); in nfp_net_tls_parse_crypto_ops() 45 struct nfp_net_tlv_caps *caps) in nfp_net_tlv_caps_parse() argument 51 nfp_net_tlv_caps_reset(caps); in nfp_net_tlv_caps_parse() 99 caps->me_freq_mhz = readl(data); in nfp_net_tlv_caps_parse() 103 caps->mbox_off = 0; in nfp_net_tlv_caps_parse() 104 caps->mbox_len = 0; in nfp_net_tlv_caps_parse() 107 caps->mbox_len = length; in nfp_net_tlv_caps_parse() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/ |
A D | dcn10_dwb.c | 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() 58 caps->caps.support_wbscl = true; in dwb1_get_caps() [all …]
|
/linux-6.3-rc2/net/bluetooth/ |
A D | hci_codec.c | 12 void *caps, in hci_codec_list_add() argument 31 memcpy(entry->caps, caps, len); in hci_codec_list_add() 105 len += sizeof(caps->len) + caps->len; in hci_read_codec_capabilities() 106 skb_pull(skb, sizeof(caps->len) + caps->len); in hci_read_codec_capabilities() 156 memset(&caps, 0, sizeof(caps)); in hci_read_supported_codecs() 159 caps.direction = 0x00; in hci_read_supported_codecs() 177 caps.id = 0xFF; in hci_read_supported_codecs() 224 memset(&caps, 0, sizeof(caps)); in hci_read_supported_codecs_v2() 229 &caps); in hci_read_supported_codecs_v2() 244 caps.id = 0xFF; in hci_read_supported_codecs_v2() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | main.c | 336 dev->caps.port_mask[i] = dev->caps.port_type[i]; in mlx4_set_port_mask() 604 dev->caps.port_type[i] = dev->caps.suggested_type[i] ? in mlx4_dev_cap() 633 dev->caps.possible_type[i] = dev->caps.port_type[i]; in mlx4_dev_cap() 868 struct mlx4_caps *caps = &dev->caps; in mlx4_slave_special_qp_cap() local 872 caps->spec_qps = kcalloc(caps->num_ports, sizeof(*caps->spec_qps), GFP_KERNEL); in mlx4_slave_special_qp_cap() 888 caps->port_mask[i] = caps->port_type[i]; in mlx4_slave_special_qp_cap() 1029 if (dev->caps.uar_page_size * (dev->caps.num_uars - in mlx4_slave_cap() 1034 dev->caps.uar_page_size * dev->caps.num_uars, in mlx4_slave_cap() 1794 dev->caps.num_mgms + dev->caps.num_amgms, in mlx4_init_icm() 1795 dev->caps.num_mgms + dev->caps.num_amgms, in mlx4_init_icm() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_domain.c | 9 ((dmn)->info.caps.dmn_type##_sw_owner || \ 10 ((dmn)->info.caps.dmn_type##_sw_owner_v2 && \ 232 struct mlx5dr_cmd_caps *caps = &dmn->info.caps; in dr_domain_add_vport_cap() local 259 struct mlx5dr_cmd_caps *caps = &dmn->info.caps; in dr_domain_is_esw_mgr_vport() local 268 struct mlx5dr_cmd_caps *caps = &dmn->info.caps; in mlx5dr_domain_get_vport_cap() local 275 return &caps->vports.uplink_caps; in mlx5dr_domain_get_vport_cap() 306 if (!dmn->info.caps.eswitch_manager) in dr_domain_query_fdb_caps() 313 dmn->info.caps.fdb_sw_owner = dmn->info.caps.esw_caps.sw_owner; in dr_domain_query_fdb_caps() 314 dmn->info.caps.fdb_sw_owner_v2 = dmn->info.caps.esw_caps.sw_owner_v2; in dr_domain_query_fdb_caps() 315 dmn->info.caps.esw_rx_drop_address = dmn->info.caps.esw_caps.drop_icm_address_rx; in dr_domain_query_fdb_caps() [all …]
|
/linux-6.3-rc2/arch/powerpc/perf/ |
A D | hv-common.c | 8 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-6.3-rc2/tools/power/cpupower/utils/helpers/ |
A D | cpuid.c | 60 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() 151 cpu_info->caps |= CPUPOWER_CAP_AMD_RDPRU; in get_cpu_info() 154 cpu_info->caps |= CPUPOWER_CAP_AMD_PSTATE; in get_cpu_info() 160 cpu_info->caps &= ~CPUPOWER_CAP_AMD_CPB; in get_cpu_info() 161 cpu_info->caps &= ~CPUPOWER_CAP_AMD_CPB_MSR; in get_cpu_info() 170 cpu_info->caps |= CPUPOWER_CAP_INTEL_IDA; in get_cpu_info() 176 cpu_info->caps |= CPUPOWER_CAP_PERF_BIAS; in get_cpu_info() [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/hns/ |
A D | hns_roce_main.c | 69 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() 689 hr_dev->caps.num_mtpts); in hns_roce_init_hem() 697 hr_dev->caps.num_qps); in hns_roce_init_hem() 707 hr_dev->caps.num_qps); in hns_roce_init_hem() 719 hr_dev->caps.num_qps); in hns_roce_init_hem() 729 hr_dev->caps.num_cqs); in hns_roce_init_hem() 751 hr_dev->caps.sccc_sz, in hns_roce_init_hem() 752 hr_dev->caps.num_qps); in hns_roce_init_hem() 784 if (hr_dev->caps.gmv_entry_sz) { in hns_roce_init_hem() [all …]
|
A D | hns_roce_hw_v2.c | 1658 struct hns_roce_caps *caps = &hr_dev->caps; in load_func_res_caps() local 1705 struct hns_roce_caps *caps = &hr_dev->caps; in load_ext_cfg_caps() local 1728 struct hns_roce_caps *caps = &hr_dev->caps; in load_pf_timer_res_caps() local 2115 calc_pg_sz(caps->num_mtpts, caps->mtpt_entry_sz, caps->mpt_hop_num, in set_hem_page_size() 2116 caps->mpt_bt_num, &caps->mpt_buf_pg_sz, &caps->mpt_ba_pg_sz, in set_hem_page_size() 2128 calc_pg_sz(caps->num_qps, caps->qpc_sz, caps->qpc_hop_num, in set_hem_page_size() 2129 caps->qpc_bt_num, &caps->qpc_buf_pg_sz, &caps->qpc_ba_pg_sz, in set_hem_page_size() 2133 calc_pg_sz(caps->num_qps, caps->sccc_sz, caps->sccc_hop_num, in set_hem_page_size() 2144 calc_pg_sz(caps->num_cqs, caps->cqc_entry_sz, caps->cqc_hop_num, in set_hem_page_size() 2145 caps->cqc_bt_num, &caps->cqc_buf_pg_sz, &caps->cqc_ba_pg_sz, in set_hem_page_size() [all …]
|
/linux-6.3-rc2/arch/powerpc/platforms/pseries/ |
A D | vas-sysfs.c | 23 struct vas_cop_feat_caps *caps; member 48 err = vas_reconfig_capabilties(caps->win_type, creds); in update_total_credits_store() 125 struct vas_cop_feat_caps *caps; in vas_type_show() local 129 caps = centry->caps; in vas_type_show() 135 return entry->show(caps, buf); in vas_type_show() 142 struct vas_cop_feat_caps *caps; in vas_type_store() local 146 caps = centry->caps; in vas_type_store() 151 return entry->store(caps, buf, count); in vas_type_store() 180 struct vas_cop_feat_caps *caps = centry->caps; in vas_caps_kobj_name() local 182 if (caps->descriptor == VAS_GZIP_QOS_CAPABILITIES) { in vas_caps_kobj_name() [all …]
|
A D | vas.c | 302 struct vas_caps *caps; in vas_allocate_window() local 339 cop_feat_caps = &caps->caps; in vas_allocate_window() 415 if (!caps->nr_close_wins) { in vas_allocate_window() 417 caps->nr_open_windows++; in vas_allocate_window() 487 caps = &vascaps[win->win_type].caps; in vas_deallocate_window() 559 caps = &vcaps->caps; in get_vas_capabilities() 592 rc = sysfs_add_vas_caps(caps); in get_vas_capabilities() 613 struct vas_cop_feat_caps *caps = &vcaps->caps; in reconfig_open_windows() local 680 caps->win_type); in reconfig_open_windows() 817 caps = &vcaps->caps; in vas_reconfig_capabilties() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/stm/ |
A D | ltdc.c | 1377 if (ldev->caps.ycbcr_input) { in ltdc_plane_atomic_update() 1596 if (ldev->caps.ycbcr_input) { in ltdc_plane_create() 1625 if (ldev->caps.ycbcr_input) { in ltdc_plane_create() 1678 if (ldev->caps.crc) in ltdc_crtc_init() 1840 ldev->caps.nb_irq = 2; in ltdc_get_caps() 1844 ldev->caps.crc = false; in ltdc_get_caps() 1858 ldev->caps.nb_irq = 4; in ltdc_get_caps() 1862 ldev->caps.crc = false; in ltdc_get_caps() 1876 ldev->caps.nb_irq = 2; in ltdc_get_caps() 1880 ldev->caps.crc = true; in ltdc_get_caps() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn30/ |
A D | dcn30_dwb.c | 48 if (caps) { 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() 57 caps->caps.support_wbscl = true; in dwb3_get_caps() 58 caps->caps.support_ocsc = false; in dwb3_get_caps() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/omapdrm/ |
A D | omap_overlay.c | 28 u32 caps, u32 fourcc) in omap_plane_find_free_overlay() argument 33 DBG("caps: %x fourcc: %x", caps, fourcc); in omap_plane_find_free_overlay() 39 cur->idx, cur->id, cur->caps); in omap_plane_find_free_overlay() 46 if (caps & ~cur->caps) in omap_plane_find_free_overlay() 69 u32 caps, u32 fourcc, struct omap_hw_overlay **overlay, in omap_overlay_assign() argument 86 caps, fourcc); in omap_overlay_assign() 101 r_ovl->name, plane->name, caps); in omap_overlay_assign() 157 enum omap_overlay_caps caps) in omap_overlay_init() argument 167 overlay->caps = caps; in omap_overlay_init() 179 enum omap_overlay_caps caps; in omap_hwoverlays_init() local [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/arm/display/komeda/ |
A D | komeda_format_caps.c | 16 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() 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() 102 if (!caps) in komeda_format_mod_supported() [all …]
|
/linux-6.3-rc2/drivers/soc/mediatek/ |
A D | mt8188-pm-domains.h | 72 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 82 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 92 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 112 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 120 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 128 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 178 .caps = MTK_SCPD_ALWAYS_ON, 258 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 351 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 367 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, [all …]
|
A D | mt8186-pm-domains.h | 64 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 74 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 84 .caps = MTK_SCPD_ACTIVE_WAKEUP, 94 .caps = MTK_SCPD_ACTIVE_WAKEUP, 133 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 143 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 163 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 183 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 193 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 203 .caps = MTK_SCPD_KEEP_DEFAULT_OFF, [all …]
|
/linux-6.3-rc2/drivers/crypto/stm32/ |
A D | stm32-cryp.c | 358 if (cryp->caps->iv_protection) in stm32_cryp_get_iv() 369 if (cryp->caps->iv_protection) in stm32_cryp_get_iv() 480 r_id = c->caps->k1l; in stm32_cryp_hw_write_key() 487 r_id = c->caps->k3r; in stm32_cryp_hw_write_key() 671 if (!cryp->caps->padding_wa) in stm32_cryp_ccm_init() 734 if (cryp->caps->kp_mode) in stm32_cryp_hw_init() 1322 if (cryp->caps->swap_final) in stm32_cryp_read_auth_tag() 1331 if (cryp->caps->swap_final) in stm32_cryp_read_auth_tag() 1348 if (!cryp->caps->padding_wa) in stm32_cryp_read_auth_tag() 1617 if (cryp->caps->padding_wa) { in stm32_cryp_irq_write_data() [all …]
|
/linux-6.3-rc2/drivers/vfio/pci/ |
A D | vfio_pci_zdev.c | 23 static int zpci_base_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_base_cap() argument 38 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); in zpci_base_cap() 44 static int zpci_group_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_group_cap() argument 60 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); in zpci_group_cap() 81 ret = vfio_info_add_capability(caps, &cap->header, cap_size); in zpci_util_cap() 106 ret = vfio_info_add_capability(caps, &cap->header, cap_size); in zpci_pfip_cap() 117 struct vfio_info_cap *caps) in vfio_pci_info_zdev_add_caps() argument 125 ret = zpci_base_cap(zdev, caps); in vfio_pci_info_zdev_add_caps() 129 ret = zpci_group_cap(zdev, caps); in vfio_pci_info_zdev_add_caps() 134 ret = zpci_util_cap(zdev, caps); in vfio_pci_info_zdev_add_caps() [all …]
|