Home
last modified time | relevance | path

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

12

/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.c284 static void emit_sys_bpf(struct bpf_gen *gen, int cmd, int attr, int attr_size)
289 emit(gen, BPF_MOV64_IMM(BPF_REG_3, attr_size));
471 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf()
475 memset(&attr, 0, attr_size); in bpf_gen__load_btf()
479 btf_load_attr = add_data(gen, &attr, attr_size); in bpf_gen__load_btf()
481 btf_data, btf_raw_size, btf_load_attr, attr_size); in bpf_gen__load_btf()
493 emit_sys_bpf(gen, BPF_BTF_LOAD, btf_load_attr, attr_size); in bpf_gen__map_create() local
506 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create()
511 memset(&attr, 0, attr_size); in bpf_gen__map_create()
525 map_create_attr = add_data(gen, &attr, attr_size); in bpf_gen__map_create()
274 emit_sys_bpf(struct bpf_gen * gen,int cmd,int attr,int attr_size) emit_sys_bpf() argument
458 int attr_size = offsetofend(union bpf_attr, btf_log_level); bpf_gen__load_btf() local
1015 int attr_size = offsetofend(union bpf_attr, core_relo_rec_size); bpf_gen__prog_load() local
1133 int attr_size = offsetofend(union bpf_attr, flags); bpf_gen__map_update_elem() local
1191 int attr_size = offsetofend(union bpf_attr, flags); bpf_gen__populate_outer_map() local
1219 int attr_size = offsetofend(union bpf_attr, map_fd); bpf_gen__map_freeze() local
[all...]
H A Dskel_internal.h76 long kern_sys_bpf(__u32 cmd, void *attr, __u32 attr_size);
/linux/net/sched/
H A Dact_api.c1495 int init_res[], size_t *attr_size, in tcf_action_init()
1593 *attr_size = tcf_action_full_attrs_size(sz); in tcf_action_update_stats()
1737 struct tc_action *actions[], size_t attr_size, int event, in tcf_action_get_1()
1742 skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL); in tcf_action_get_1()
1911 size_t attr_size; in tcf_reoffload_del_notify()
1913 attr_size = tcf_action_full_attrs_size(tcf_action_fill_size(action)); in tcf_reoffload_del_notify()
1915 skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL); in tcf_reoffload_del_notify()
2015 u32 portid, size_t attr_size, in tcf_del_notify()
2021 skb = alloc_skb(max(attr_size + tcf_action_warn_attr_size(extack), in tcf_del_notify()
2039 size_t attr_size, struc in tca_action_gd()
1479 tcf_action_init(struct net * net,struct tcf_proto * tp,struct nlattr * nla,struct nlattr * est,struct tc_action * actions[],int init_res[],size_t * attr_size,u32 flags,u32 fl_flags,struct netlink_ext_ack * extack) tcf_action_init() argument
1699 tcf_get_notify(struct net * net,u32 portid,struct nlmsghdr * n,struct tc_action * actions[],size_t attr_size,int event,struct netlink_ext_ack * extack) tcf_get_notify() argument
1873 size_t attr_size; tcf_reoffload_del_notify_msg() local
1977 tcf_del_notify_msg(struct net * net,struct nlmsghdr * n,struct tc_action * actions[],u32 portid,size_t attr_size,struct netlink_ext_ack * extack) tcf_del_notify_msg() argument
1998 tcf_del_notify(struct net * net,struct nlmsghdr * n,struct tc_action * actions[],u32 portid,size_t attr_size,struct netlink_ext_ack * extack) tcf_del_notify() argument
2031 size_t attr_size = 0; tca_action_gd() local
2075 tcf_add_notify_msg(struct net * net,struct nlmsghdr * n,struct tc_action * actions[],u32 portid,size_t attr_size,struct netlink_ext_ack * extack) tcf_add_notify_msg() argument
2096 tcf_add_notify(struct net * net,struct nlmsghdr * n,struct tc_action * actions[],u32 portid,size_t attr_size,struct netlink_ext_ack * extack) tcf_add_notify() argument
2117 size_t attr_size = 0; tcf_action_add() local
[all...]
H A Dcls_api.c3452 size_t attr_size = 0; in tcf_exts_validate_ex()
3479 &attr_size, flags, fl_flags, in tcf_exts_validate_ex()
3437 size_t attr_size = 0; tcf_exts_validate_ex() local
/linux/fs/ntfs/
H A Dreparse.c271 s64 attr_size = 0; in ntfs_parse_reparse() local
283 &attr_size); in ntfs_parse_reparse()
290 if (!valid_reparse_data(ni, reparse_attr, attr_size)) { in ntfs_parse_reparse()
401 s64 attr_size = 0; in ntfs_reparse_tag_dt_types() local
411 AT_REPARSE_POINT, NULL, 0, &attr_size); in ntfs_reparse_tag_dt_types()
415 if (reparse_attr && attr_size >= sizeof(*reparse_attr)) { in ntfs_reparse_tag_dt_types()
H A Dattrib.c1892 u32 old_size, alloc_size, attr_size;
1896 attr_size = le32_to_cpu(a->length);
1900 (unsigned int)attr_size, (unsigned int)new_size);
1906 if (new_size != attr_size) { in ntfs_resident_attr_value_resize()
1908 attr_size + new_size; in ntfs_resident_attr_value_resize()
1913 if (a->type == AT_INDEX_ROOT && new_size > attr_size && in ntfs_resident_attr_value_resize()
1923 (u8 *)m) - attr_size);
2005 u32 attr_size; in ntfs_attr_make_non_resident()
2144 attr_size = le32_to_cpu(a->data.resident.value_length); in ntfs_attr_make_non_resident()
2145 WARN_ON(attr_size ! in ntfs_attr_make_non_resident()
1852 u32 old_size, alloc_size, attr_size; ntfs_attr_record_resize() local
1951 u32 attr_size; ntfs_attr_make_non_resident() local
2993 int attr_size; ntfs_attr_add() local
[all...]
/linux/drivers/gpu/drm/vc4/
H A Dvc4_validate.c914 uint32_t attr_size = *(uint8_t *)(pkt_u + o + 4) + 1; in validate_gl_shader_rec()
922 vbo->base.size - offset < attr_size) { in validate_gl_shader_rec()
924 offset, attr_size, vbo->base.size); in validate_gl_shader_rec()
929 max_index = ((vbo->base.size - offset - attr_size) / in validate_gl_shader_rec()
913 uint32_t attr_size = *(uint8_t *)(pkt_u + o + 4) + 1; validate_gl_shader_rec() local
/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 */
499 This is an array of perf_event_attrs, each attr_size bytes long, which defines
701 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.c575 char *attr_display, int attr_size)
578 snprintf(attr_display, attr_size, "%s - %s", SCHEDULE_POWER_ON, attr_name);
580 strscpy(attr_display, attr_name, attr_size);
508 hp_friendly_user_name_update(char * path,const char * attr_name,char * attr_display,int attr_size) hp_friendly_user_name_update() argument
H A Dbioscfg.h493 char *attr_display, int attr_size);
/linux/tools/perf/util/
H A Dheader.h83 * @attr_size: Size of attrs entries - sizeof(struct perf_event_attr) +
86 u64 attr_size;
84 u64 attr_size; global() member
H A Dheader.c2399 u32 attr_size; in memory_node__fprintf()
2411 attr_size = ff->ph->needs_swap ? bswap_32(attr->size) : attr->size; in print_mem_topology()
2413 if (!attr_size) { in print_mem_topology()
2414 attr_size = PERF_ATTR_SIZE_VER0; in print_mem_topology()
2428 attr->size = attr_size; in print_cpu_domain_info()
2430 if (attr_size < PERF_ATTR_SIZE_VER0 || attr_size > sz) { in print_cpu_domain_info()
2432 i, attr_size, PERF_ATTR_SIZE_VER0, sz); in print_cpu_domain_info()
4730 u64 attr_offset = sizeof(f_header), attr_size = 0; in perf_event__fprintf_event_update()
4789 attr_size in perf_event__process_attr()
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/fs/smb/server/
H A Dvfs.h122 void *attr_value, size_t attr_size, int flags,
H A Dvfs.c956 * @attr_size: size of xattr value in ksmbd_vfs_zero_data()
964 void *attr_value, size_t attr_size, int flags, in ksmbd_vfs_zero_data()
979 attr_size, in ksmbd_vfs_zero_data()
898 ksmbd_vfs_setxattr(const struct mnt_idmap * idmap,const struct path * path,const char * attr_name,void * attr_value,size_t attr_size,int flags,bool get_write) ksmbd_vfs_setxattr() argument
/linux/drivers/net/wireless/microchip/wilc1000/
H A Dcfg80211.c956 u16 attr_size; in wilc_wfi_cfg_parse_ch_attr()
959 attr_size = le16_to_cpu(e->attr_len); in wilc_wfi_cfg_parse_ch_attr()
961 if (index + sizeof(*e) + attr_size > len) in wilc_wfi_cfg_parse_ch_attr()
965 attr_size >= (sizeof(struct wilc_attr_ch_list) - sizeof(*e))) in wilc_wfi_cfg_parse_ch_attr()
968 attr_size == (sizeof(struct wilc_attr_oper_ch) - sizeof(*e))) in wilc_wfi_cfg_parse_ch_attr()
974 index += sizeof(*e) + attr_size; in wilc_wfi_cfg_parse_ch_attr()
951 u16 attr_size; wilc_wfi_cfg_parse_ch_attr() local
/linux/fs/xfs/scrub/
H A Dinode_repair.c1242 size_t attr_size; in xrep_dinode_check_afork()
1261 attr_size = be16_to_cpu(afork_ptr->totsize); in xrep_dinode_zap_afork()
1262 if (attr_size > afork_size) in xrep_dinode_zap_afork()
1266 return xfs_attr_shortform_verify(afork_ptr, attr_size) != NULL; in xrep_dinode_zap_afork()
1207 size_t attr_size; xrep_dinode_check_afork() local
/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.c4466 mlx5e_alloc_flow(struct mlx5e_priv *priv, int attr_size, in mlx5e_alloc_flow()
4558 int attr_size, err; in __mlx5e_add_fdb_flow()
4561 attr_size = sizeof(struct mlx5_esw_flow_attr); in __mlx5e_add_fdb_flow()
4562 err = mlx5e_alloc_flow(priv, attr_size, f, flow_flags, in __mlx5e_add_fdb_flow()
4736 int attr_size, err; in mlx5e_add_nic_flow()
4746 attr_size = sizeof(struct mlx5_nic_flow_attr); in mlx5e_add_nic_flow()
4747 err = mlx5e_alloc_flow(priv, attr_size, f, flow_flags, in mlx5e_add_nic_flow()
4464 mlx5e_alloc_flow(struct mlx5e_priv * priv,int attr_size,struct flow_cls_offload * f,unsigned long flow_flags,struct mlx5e_tc_flow_parse_attr ** __parse_attr,struct mlx5e_tc_flow ** __flow) mlx5e_alloc_flow() argument
4556 int attr_size, err; __mlx5e_add_fdb_flow() local
4730 int attr_size, err; mlx5e_add_nic_flow() local
/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.c2388 ondisk_size = attr_size(attr) - vbo_data; in ni_read_frame()
/linux/kernel/bpf/
H A Dsyscall.c6619 BPF_CALL_3(bpf_sys_bpf, int, cmd, union bpf_attr *, attr, u32, attr_size)
6638 return __sys_bpf(cmd, KERNEL_BPFPTR(attr), attr_size, KERNEL_BPFPTR(NULL), 0);
6520 BPF_CALL_3(bpf_sys_bpf,int,cmd,union bpf_attr *,attr,u32,attr_size) BPF_CALL_3() argument

12