Home
last modified time | relevance | path

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

12

/openbmc/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()
/openbmc/linux/tools/lib/bpf/
H A Dgen_loader.c266 static void emit_sys_bpf(struct bpf_gen *gen, int cmd, int attr, int attr_size) in emit_sys_bpf() argument
271 emit(gen, BPF_MOV64_IMM(BPF_REG_3, attr_size)); in emit_sys_bpf()
420 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf() local
424 memset(&attr, 0, attr_size); in bpf_gen__load_btf()
429 btf_load_attr = add_data(gen, &attr, attr_size); in bpf_gen__load_btf()
441 emit_sys_bpf(gen, BPF_BTF_LOAD, btf_load_attr, attr_size); in bpf_gen__load_btf()
454 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create() local
459 memset(&attr, 0, attr_size); in bpf_gen__map_create()
476 map_create_attr = add_data(gen, &attr, attr_size); in bpf_gen__map_create()
499 emit_sys_bpf(gen, BPF_MAP_CREATE, map_create_attr, attr_size); in bpf_gen__map_create()
[all …]
H A Dskel_internal.h69 long kern_sys_bpf(__u32 cmd, void *attr, __u32 attr_size);
/openbmc/linux/net/sched/
H A Dact_api.c1449 int init_res[], size_t *attr_size, in tcf_action_init() argument
1534 *attr_size = tcf_action_full_attrs_size(sz); in tcf_action_init()
1827 size_t attr_size = tcf_action_fill_size(action); in tcf_reoffload_del_notify() local
1835 skb = alloc_skb(attr_size <= NLMSG_GOODSIZE ? NLMSG_GOODSIZE : attr_size, in tcf_reoffload_del_notify()
1916 u32 portid, size_t attr_size, struct netlink_ext_ack *extack) in tcf_del_notify() argument
1921 skb = alloc_skb(attr_size <= NLMSG_GOODSIZE ? NLMSG_GOODSIZE : attr_size, in tcf_del_notify()
1953 size_t attr_size = 0; in tca_action_gd() local
1975 attr_size += tcf_action_fill_size(act); in tca_action_gd()
1979 attr_size = tcf_action_full_attrs_size(attr_size); in tca_action_gd()
1984 ret = tcf_del_notify(net, n, actions, portid, attr_size, extack); in tca_action_gd()
[all …]
H A Dcls_api.c3277 size_t attr_size = 0; in tcf_exts_validate_ex() local
3305 &attr_size, flags, fl_flags, in tcf_exts_validate_ex()
/openbmc/linux/fs/ntfs/
H A Dattrib.c1559 u32 attr_size; in ntfs_attr_make_non_resident() local
1666 attr_size = le32_to_cpu(a->data.resident.value_length); in ntfs_attr_make_non_resident()
1667 BUG_ON(attr_size != data_size); in ntfs_attr_make_non_resident()
1672 attr_size); in ntfs_attr_make_non_resident()
1673 memset(kaddr + attr_size, 0, PAGE_SIZE - attr_size); in ntfs_attr_make_non_resident()
1704 cpu_to_sle64(attr_size); in ntfs_attr_make_non_resident()
1776 arec_size = (mp_ofs + attr_size + 7) & ~7; in ntfs_attr_make_non_resident()
1789 if ((mp_ofs + attr_size) > arec_size) { in ntfs_attr_make_non_resident()
1790 err2 = attr_size; in ntfs_attr_make_non_resident()
1791 attr_size = arec_size - mp_ofs; in ntfs_attr_make_non_resident()
[all …]
/openbmc/linux/include/net/9p/
H A Dclient.h292 const char *attr_name, u64 *attr_size);
294 u64 attr_size, int flags);
/openbmc/linux/drivers/hwmon/
H A Dcoretemp.c78 int attr_size; member
433 for (i = 0; i < tdata->attr_size; i++) { in create_core_attrs()
493 tdata->attr_size = MAX_CORE_ATTRS; in init_temp_data()
547 tdata->attr_size++; in create_core_data()
/openbmc/linux/drivers/gpu/drm/vc4/
H A Dvc4_validate.c903 uint32_t attr_size = *(uint8_t *)(pkt_u + o + 4) + 1; in validate_gl_shader_rec() local
914 vbo->base.size - offset < attr_size) { in validate_gl_shader_rec()
916 offset, attr_size, vbo->base.size); in validate_gl_shader_rec()
921 max_index = ((vbo->base.size - offset - attr_size) / in validate_gl_shader_rec()
/openbmc/linux/fs/ext4/
H A Dsysfs.c56 unsigned short attr_size; member
163 .attr_size = _size, \
429 return sysfs_emit(buf, "%.*s\n", a->attr_size, in ext4_attr_show()
/openbmc/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 */
445 This is an array of perf_event_attrs, each attr_size bytes long, which defines
633 struct perf_event_attr attr; /* Size defined by header.attr_size */
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbioscfg.c511 char *attr_display, int attr_size) in hp_friendly_user_name_update() argument
514 snprintf(attr_display, attr_size, "%s - %s", SCHEDULE_POWER_ON, attr_name); in hp_friendly_user_name_update()
516 strscpy(attr_display, attr_name, attr_size); in hp_friendly_user_name_update()
H A Dbioscfg.h483 char *attr_display, int attr_size);
/openbmc/linux/tools/perf/util/
H A Dheader.h67 u64 attr_size; member
H A Dheader.c3717 .attr_size = sizeof(f_attr), in perf_session__do_write_header()
3839 uint64_t ref_size, attr_size; in try_all_file_abis() local
3846 attr_size = bswap_64(hdr_sz); in try_all_file_abis()
3847 if (attr_size != ref_size) in try_all_file_abis()
3877 u64 attr_size; in try_all_pipe_abis() local
3882 attr_size = bswap_64(hdr_sz); in try_all_pipe_abis()
3883 if (attr_size != hdr_sz) in try_all_pipe_abis()
3951 header->attr_size, false, ph) < 0) { in perf_file_header__read()
4221 if (f_header.attr_size == 0) { in perf_session__read_header()
4228 nr_attrs = f_header.attrs.size / f_header.attr_size; in perf_session__read_header()
/openbmc/linux/fs/smb/server/
H A Dvfs.h112 void *attr_value, size_t attr_size, int flags,
H A Dvfs.c932 void *attr_value, size_t attr_size, int flags, in ksmbd_vfs_setxattr() argument
947 attr_size, in ksmbd_vfs_setxattr()
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/
H A Dcfg80211.c962 u16 attr_size; in wilc_wfi_cfg_parse_ch_attr() local
965 attr_size = le16_to_cpu(e->attr_len); in wilc_wfi_cfg_parse_ch_attr()
967 if (index + sizeof(*e) + attr_size > len) in wilc_wfi_cfg_parse_ch_attr()
971 attr_size >= (sizeof(struct wilc_attr_ch_list) - sizeof(*e))) in wilc_wfi_cfg_parse_ch_attr()
974 attr_size == (sizeof(struct wilc_attr_oper_ch) - sizeof(*e))) in wilc_wfi_cfg_parse_ch_attr()
980 index += sizeof(*e) + attr_size; in wilc_wfi_cfg_parse_ch_attr()
/openbmc/linux/net/9p/
H A Dclient.c1982 const char *attr_name, u64 *attr_size) in p9_client_xattrwalk() argument
2005 err = p9pdu_readf(&req->rc, clnt->proto_version, "q", attr_size); in p9_client_xattrwalk()
2013 attr_fid->fid, *attr_size); in p9_client_xattrwalk()
2027 u64 attr_size, int flags) in p9_client_xattrcreate() argument
2035 fid->fid, name, attr_size, flags); in p9_client_xattrcreate()
2038 fid->fid, name, attr_size, flags); in p9_client_xattrcreate()
/openbmc/linux/include/net/
H A Dact_api.h208 struct tc_action *actions[], int init_res[], size_t *attr_size,
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_opts.c2463 const size_t attr_size = offsetofend(union bpf_attr, query); in test_tc_opts_query_target() local
2556 memset(&attr, 0, attr_size); in test_tc_opts_query_target()
2560 err = syscall(__NR_bpf, BPF_PROG_QUERY, &attr, attr_size); in test_tc_opts_query_target()
2578 err = syscall(__NR_bpf, BPF_PROG_QUERY, &attr, attr_size); in test_tc_opts_query_target()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c4321 mlx5e_alloc_flow(struct mlx5e_priv *priv, int attr_size, in mlx5e_alloc_flow() argument
4413 int attr_size, err; in __mlx5e_add_fdb_flow() local
4416 attr_size = sizeof(struct mlx5_esw_flow_attr); in __mlx5e_add_fdb_flow()
4417 err = mlx5e_alloc_flow(priv, attr_size, f, flow_flags, in __mlx5e_add_fdb_flow()
4568 int attr_size, err; in mlx5e_add_nic_flow() local
4578 attr_size = sizeof(struct mlx5_nic_flow_attr); in mlx5e_add_nic_flow()
4579 err = mlx5e_alloc_flow(priv, attr_size, f, flow_flags, in mlx5e_add_nic_flow()
/openbmc/linux/fs/ntfs3/
H A Dntfs.h401 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()
/openbmc/linux/kernel/bpf/
H A Dsyscall.c5584 BPF_CALL_3(bpf_sys_bpf, int, cmd, union bpf_attr *, attr, u32, attr_size) in BPF_CALL_3() argument
5600 return __sys_bpf(cmd, KERNEL_BPFPTR(attr), attr_size); in BPF_CALL_3()

12