Home
last modified time | relevance | path

Searched refs:cap_size (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/drivers/vfio/pci/
Dvfio_pci_zdev.c69 int cap_size = sizeof(*cap) + CLP_UTIL_STR_LEN; in zpci_util_cap() local
72 cap = kmalloc(cap_size, GFP_KERNEL); in zpci_util_cap()
81 ret = vfio_info_add_capability(caps, &cap->header, cap_size); in zpci_util_cap()
94 int cap_size = sizeof(*cap) + CLP_PFIP_NR_SEGMENTS; in zpci_pfip_cap() local
97 cap = kmalloc(cap_size, GFP_KERNEL); in zpci_pfip_cap()
106 ret = vfio_info_add_capability(caps, &cap->header, cap_size); in zpci_pfip_cap()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dcmd.c95 unsigned int cap_size = MLX5_CAP_FPGA(dev, sandbox_extended_caps_len); in mlx5_fpga_sbu_caps() local
100 if (cap_size > size) { in mlx5_fpga_sbu_caps()
102 size, cap_size); in mlx5_fpga_sbu_caps()
106 while (cap_size > 0) { in mlx5_fpga_sbu_caps()
107 read = min_t(unsigned int, cap_size, in mlx5_fpga_sbu_caps()
117 cap_size -= read; in mlx5_fpga_sbu_caps()
/linux-6.6.21/drivers/iommu/iommufd/
Dvfio_compat.c475 int cap_size; in iommufd_vfio_iommu_get_info() local
478 cap_size = fill_fns[i](ioas, arg + total_cap_size, in iommufd_vfio_iommu_get_info()
481 cap_size = fill_fns[i](ioas, NULL, 0); in iommufd_vfio_iommu_get_info()
482 if (cap_size < 0) { in iommufd_vfio_iommu_get_info()
483 rc = cap_size; in iommufd_vfio_iommu_get_info()
486 cap_size = ALIGN(cap_size, sizeof(u64)); in iommufd_vfio_iommu_get_info()
494 total_cap_size += cap_size; in iommufd_vfio_iommu_get_info()
/linux-6.6.21/tools/perf/util/
Denv.c552 int cap_size; in perf_env__find_pmu_cap() local
559 cap_size = strlen(cap); in perf_env__find_pmu_cap()
560 cap_eq = zalloc(cap_size + 2); in perf_env__find_pmu_cap()
564 memcpy(cap_eq, cap, cap_size); in perf_env__find_pmu_cap()
565 cap_eq[cap_size] = '='; in perf_env__find_pmu_cap()
569 if (!strncmp(env->cpu_pmu_caps[i], cap_eq, cap_size + 1)) { in perf_env__find_pmu_cap()
571 return &env->cpu_pmu_caps[i][cap_size + 1]; in perf_env__find_pmu_cap()
584 if (!strncmp(ptr[j], cap_eq, cap_size + 1)) { in perf_env__find_pmu_cap()
586 return &ptr[j][cap_size + 1]; in perf_env__find_pmu_cap()
/linux-6.6.21/net/mac80211/
Dtdls.c556 u8 cap_size; in ieee80211_tdls_add_setup_start_ies() local
558 cap_size = in ieee80211_tdls_add_setup_start_ies()
563 pos = skb_put(skb, cap_size); in ieee80211_tdls_add_setup_start_ies()
564 pos = ieee80211_ie_build_he_cap(0, pos, he_cap, pos + cap_size); in ieee80211_tdls_add_setup_start_ies()
568 cap_size = 2 + 1 + sizeof(struct ieee80211_he_6ghz_capa); in ieee80211_tdls_add_setup_start_ies()
569 pos = skb_put(skb, cap_size); in ieee80211_tdls_add_setup_start_ies()
573 pos + cap_size); in ieee80211_tdls_add_setup_start_ies()
598 u8 cap_size; in ieee80211_tdls_add_setup_start_ies() local
600 cap_size = in ieee80211_tdls_add_setup_start_ies()
606 pos = skb_put(skb, cap_size); in ieee80211_tdls_add_setup_start_ies()
[all …]
/linux-6.6.21/drivers/vdpa/ifcvf/
Difcvf_base.c266 u32 cap_size = hw->cap_dev_config_size; in ifcvf_get_config_size() local
276 config_size = min(cap_size, net_config_size); in ifcvf_get_config_size()
279 config_size = min(cap_size, blk_config_size); in ifcvf_get_config_size()
/linux-6.6.21/sound/pci/
Dfm801.c202 unsigned int cap_size; member
501 chip->cap_size = snd_pcm_lib_buffer_bytes(substream); in snd_fm801_capture_prepare()
518 chip->cap_buffer + (chip->cap_count % chip->cap_size)); in snd_fm801_capture_prepare()
551 ptr %= chip->cap_size; in snd_fm801_capture_pointer()
587 chip->cap_pos %= chip->cap_size; in snd_fm801_interrupt()
589 tmp %= chip->cap_size; in snd_fm801_interrupt()
/linux-6.6.21/fs/overlayfs/
Dcopy_up.c993 ssize_t cap_size; in ovl_copy_up_meta_inode_data() local
1000 err = cap_size = ovl_getxattr_value(&upperpath, XATTR_NAME_CAPS, in ovl_copy_up_meta_inode_data()
1002 if (cap_size < 0) in ovl_copy_up_meta_inode_data()
1016 capability, cap_size, 0); in ovl_copy_up_meta_inode_data()
/linux-6.6.21/drivers/media/i2c/s5c73m3/
Ds5c73m3-core.c374 const struct s5c73m3_frame_size *cap_size = in s5c73m3_set_frame_size() local
387 cap_size->width, cap_size->height, cap_size->reg_val); in s5c73m3_set_frame_size()
388 chg_mode |= cap_size->reg_val; in s5c73m3_set_frame_size()
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c48 u32 cap_size; member
896 if (size != entry->hdr.cap_size) { in qlcnic_valid_dump_entry()
900 entry->hdr.cap_size); in qlcnic_valid_dump_entry()
1383 buf_offset += entry->hdr.cap_size; in qlcnic_dump_fw()
/linux-6.6.21/tools/testing/selftests/iommu/
Diommufd.c1615 size_t cap_size; in check_vfio_info_cap_chain() local
1618 cap_size = (buffer + cap->next) - (void *)cap; in check_vfio_info_cap_chain()
1620 cap_size = (buffer + info_cmd->argsz) - (void *)cap; in check_vfio_info_cap_chain()
1639 ASSERT_EQ(sizeof(*data), cap_size); in check_vfio_info_cap_chain()