Home
last modified time | relevance | path

Searched refs:attr_size (Results 1 – 22 of 22) sorted by relevance

/linux/fs/9p/
H A Dxattr.c22 u64 attr_size; in v9fs_fid_xattr_get() local
30 attr_fid = p9_client_xattrwalk(fid, name, &attr_size); in v9fs_fid_xattr_get()
37 if (attr_size > buffer_size) { in v9fs_fid_xattr_get()
40 else if (attr_size > SSIZE_MAX) in v9fs_fid_xattr_get()
43 retval = attr_size; in v9fs_fid_xattr_get()
45 iov_iter_truncate(&to, attr_size); in v9fs_fid_xattr_get()
/linux/tools/lib/bpf/
H A Dgen_loader.c274 static void emit_sys_bpf(struct bpf_gen *gen, int cmd, int attr, int attr_size) in emit_sys_bpf() argument
279 emit(gen, BPF_MOV64_IMM(BPF_REG_3, attr_size)); in emit_sys_bpf()
458 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf() local
462 memset(&attr, 0, attr_size); in bpf_gen__load_btf()
466 btf_load_attr = add_data(gen, &attr, attr_size); in bpf_gen__load_btf()
468 btf_data, btf_raw_size, btf_load_attr, attr_size); in bpf_gen__load_btf()
480 emit_sys_bpf(gen, BPF_BTF_LOAD, btf_load_attr, attr_size); in bpf_gen__load_btf()
493 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create() local
498 memset(&attr, 0, attr_size); in bpf_gen__map_create()
512 map_create_attr = add_data(gen, &attr, attr_size); in bpf_gen__map_create()
[all …]
H A Dskel_internal.h75 long kern_sys_bpf(__u32 cmd, void *attr, __u32 attr_size);
/linux/net/sched/
H A Dact_api.c1468 int init_res[], size_t *attr_size, in tcf_action_init() argument
1563 *attr_size = tcf_action_full_attrs_size(sz); in tcf_action_init()
1858 size_t attr_size = tcf_action_fill_size(action); in tcf_reoffload_del_notify_msg() local
1864 skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL); in tcf_reoffload_del_notify_msg()
1961 u32 portid, size_t attr_size, in tcf_del_notify_msg() argument
1966 skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL); in tcf_del_notify_msg()
1982 size_t attr_size, struct netlink_ext_ack *extack) in tcf_del_notify() argument
1990 skb = tcf_del_notify_msg(net, n, actions, portid, attr_size, in tcf_del_notify()
2015 size_t attr_size = 0; in tca_action_gd() local
2037 attr_size += tcf_action_fill_size(act); in tca_action_gd()
[all …]
H A Dcls_api.c3423 size_t attr_size = 0; in tcf_exts_validate_ex() local
3450 &attr_size, flags, fl_flags, in tcf_exts_validate_ex()
/linux/drivers/gpu/drm/vc4/
H A Dvc4_validate.c913 uint32_t attr_size = *(uint8_t *)(pkt_u + o + 4) + 1; in validate_gl_shader_rec() local
921 vbo->base.size - offset < attr_size) { in validate_gl_shader_rec()
923 offset, attr_size, vbo->base.size); in validate_gl_shader_rec()
928 max_index = ((vbo->base.size - offset - attr_size) / in validate_gl_shader_rec()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_opts.c2461 const size_t attr_size = offsetofend(union bpf_attr, query); in test_tc_opts_query_target() local
2554 memset(&attr, 0, attr_size); in test_tc_opts_query_target()
2558 err = syscall(__NR_bpf, BPF_PROG_QUERY, &attr, attr_size); in test_tc_opts_query_target()
2576 err = syscall(__NR_bpf, BPF_PROG_QUERY, &attr, attr_size); in test_tc_opts_query_target()
2597 memset(&attr, 0, attr_size); in test_tc_opts_query_target()
2605 err = syscall(__NR_bpf, BPF_PROG_QUERY, &attr, attr_size); in test_tc_opts_query_target()
2626 memset(&attr, 0, attr_size); in test_tc_opts_query_target()
2634 err = syscall(__NR_bpf, BPF_PROG_QUERY, &attr, attr_size); in test_tc_opts_query_target()
2655 memset(&attr, 0, attr_size); in test_tc_opts_query_target()
2662 err = syscall(__NR_bpf, BPF_PROG_QUERY, &attr, attr_size); in test_tc_opts_query_target()
[all …]
/linux/tools/perf/Documentation/
H A Dperf.data-file-format.txt22 uint64_t attr_size; /* size of an attribute in attrs */
143 uint32_t attr_size; /* size of each perf_event_attr */
145 struct perf_event_attr attr; /* size of attr_size */
486 This is an array of perf_event_attrs, each attr_size bytes long, which defines
688 struct perf_event_attr attr; /* Size defined by header.attr_size */
/linux/fs/ext4/
H A Dsysfs.c59 unsigned short attr_size; member
196 .attr_size = _size, \
447 return sysfs_emit(buf, "%.*s\n", a->attr_size, (char *) ptr); in ext4_generic_attr_show()
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbioscfg.c508 char *attr_display, int attr_size) in hp_friendly_user_name_update() argument
511 snprintf(attr_display, attr_size, "%s - %s", SCHEDULE_POWER_ON, attr_name); in hp_friendly_user_name_update()
513 strscpy(attr_display, attr_name, attr_size); in hp_friendly_user_name_update()
H A Dbioscfg.h493 char *attr_display, int attr_size);
/linux/tools/perf/util/
H A Dheader.h82 * @attr_size: Size of attrs entries - sizeof(struct perf_event_attr) +
85 u64 attr_size;
84 u64 attr_size; global() member
H A Dheader.c2248 u32 attr_size; in print_stat()
2260 attr_size = ff->ph->needs_swap ? bswap_32(attr->size) : attr->size; in print_cache()
2262 if (!attr_size) { in print_cache()
2263 attr_size = PERF_ATTR_SIZE_VER0;
2277 attr->size = attr_size; in __print_pmu_caps()
2279 if (attr_size < PERF_ATTR_SIZE_VER0 || attr_size > sz) { in __print_pmu_caps()
2281 i, attr_size, PERF_ATTR_SIZE_VER0, sz); in __print_pmu_caps()
4498 u64 attr_offset = sizeof(f_header), attr_size = 0; in evsel__prepare_tracepoint_event()
4557 attr_size in perf_session__read_header()
3987 u64 attr_offset = sizeof(f_header), attr_size = 0; perf_session__do_write_header() local
4195 uint64_t ref_size, attr_size; try_all_file_abis() local
4233 u64 attr_size; try_all_pipe_abis() local
[all...]
/linux/drivers/net/wireless/microchip/wilc1000/
H A Dcfg80211.c951 u16 attr_size; in wilc_wfi_cfg_parse_ch_attr() local
954 attr_size = le16_to_cpu(e->attr_len); in wilc_wfi_cfg_parse_ch_attr()
956 if (index + sizeof(*e) + attr_size > len) in wilc_wfi_cfg_parse_ch_attr()
960 attr_size >= (sizeof(struct wilc_attr_ch_list) - sizeof(*e))) in wilc_wfi_cfg_parse_ch_attr()
963 attr_size == (sizeof(struct wilc_attr_oper_ch) - sizeof(*e))) in wilc_wfi_cfg_parse_ch_attr()
969 index += sizeof(*e) + attr_size; in wilc_wfi_cfg_parse_ch_attr()
/linux/fs/xfs/scrub/
H A Dinode_repair.c1207 size_t attr_size; in xrep_dinode_check_afork() local
1224 attr_size = be16_to_cpu(afork_ptr->totsize); in xrep_dinode_check_afork()
1225 if (attr_size > afork_size) in xrep_dinode_check_afork()
1229 return xfs_attr_shortform_verify(afork_ptr, attr_size) != NULL; in xrep_dinode_check_afork()
/linux/include/net/
H A Dact_api.h218 struct tc_action *actions[], int init_res[], size_t *attr_size,
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c4464 mlx5e_alloc_flow(struct mlx5e_priv *priv, int attr_size, in mlx5e_alloc_flow() argument
4556 int attr_size, err; in __mlx5e_add_fdb_flow() local
4559 attr_size = sizeof(struct mlx5_esw_flow_attr); in __mlx5e_add_fdb_flow()
4560 err = mlx5e_alloc_flow(priv, attr_size, f, flow_flags, in __mlx5e_add_fdb_flow()
4730 int attr_size, err; in mlx5e_add_nic_flow() local
4740 attr_size = sizeof(struct mlx5_nic_flow_attr); in mlx5e_add_nic_flow()
4741 err = mlx5e_alloc_flow(priv, attr_size, f, flow_flags, in mlx5e_add_nic_flow()
/linux/fs/ntfs3/
H A Dntfs.h406 static inline u64 attr_size(const struct ATTRIB *attr) in attr_size() function
H A Dxattr.c107 if (attr_size(attr_ea) > sbi->ea_max_size) { in ntfs_read_ea()
H A Dfrecord.c2386 ondisk_size = attr_size(attr) - vbo_data; in ni_read_frame()
/linux/fs/smb/server/
H A Dvfs.c898 void *attr_value, size_t attr_size, int flags, in ksmbd_vfs_setxattr() argument
913 attr_size, in ksmbd_vfs_setxattr()
/linux/kernel/bpf/
H A Dsyscall.c6500 BPF_CALL_3(bpf_sys_bpf, int, cmd, union bpf_attr *, attr, u32, attr_size) in BPF_CALL_3() argument
6516 return __sys_bpf(cmd, KERNEL_BPFPTR(attr), attr_size, KERNEL_BPFPTR(NULL), 0); in BPF_CALL_3()