| /linux/fs/9p/ |
| H A D | xattr.c | 22 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 D | gen_loader.c | 274 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 D | skel_internal.h | 75 long kern_sys_bpf(__u32 cmd, void *attr, __u32 attr_size);
|
| /linux/net/sched/ |
| H A D | act_api.c | 1480 int init_res[], size_t *attr_size, in tcf_action_init() argument 1575 *attr_size = tcf_action_full_attrs_size(sz); in tcf_action_init() 1700 struct tc_action *actions[], size_t attr_size, int event, in tcf_get_notify() argument 1705 skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL); in tcf_get_notify() 1874 size_t attr_size; in tcf_reoffload_del_notify_msg() local 1876 attr_size = tcf_action_full_attrs_size(tcf_action_fill_size(action)); in tcf_reoffload_del_notify_msg() 1878 skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL); in tcf_reoffload_del_notify_msg() 1978 u32 portid, size_t attr_size, in tcf_del_notify_msg() argument 1983 skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL); in tcf_del_notify_msg() 1999 size_t attr_size, struct netlink_ext_ack *extack) in tcf_del_notify() argument [all …]
|
| H A D | cls_api.c | 3437 size_t attr_size = 0; in tcf_exts_validate_ex() 3464 &attr_size, flags, fl_flags, in tcf_exts_validate_ex() 3424 size_t attr_size = 0; tcf_exts_validate_ex() local
|
| /linux/fs/ntfs/ |
| H A D | reparse.c | 271 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 D | attrib.c | 1852 u32 old_size, alloc_size, attr_size; in ntfs_attr_record_resize() local 1856 attr_size = le32_to_cpu(a->length); in ntfs_attr_record_resize() 1860 (unsigned int)attr_size, (unsigned int)new_size); in ntfs_attr_record_resize() 1866 if (new_size != attr_size) { in ntfs_attr_record_resize() 1868 attr_size + new_size; in ntfs_attr_record_resize() 1873 if (a->type == AT_INDEX_ROOT && new_size > attr_size && in ntfs_attr_record_resize() 1883 (u8 *)m) - attr_size); in ntfs_attr_record_resize() 1951 u32 attr_size; in ntfs_attr_make_non_resident() local 2077 attr_size = le32_to_cpu(a->data.resident.value_length); in ntfs_attr_make_non_resident() 2078 WARN_ON(attr_size != data_size); in ntfs_attr_make_non_resident() [all …]
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_validate.c | 913 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 D | tc_opts.c | 2461 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 D | perf.data-file-format.txt | 22 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 D | sysfs.c | 59 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 D | bioscfg.c | 508 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 D | bioscfg.h | 493 char *attr_display, int attr_size);
|
| /linux/tools/perf/util/ |
| H A D | header.h | 82 * @attr_size: Size of attrs entries - sizeof(struct perf_event_attr) + 85 u64 attr_size; 84 u64 attr_size; global() member
|
| H A D | header.c | 2248 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 D | cfg80211.c | 951 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 D | inode_repair.c | 1207 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 D | act_api.h | 218 struct tc_action *actions[], int init_res[], size_t *attr_size,
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_tc.c | 4464 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 D | ntfs.h | 406 static inline u64 attr_size(const struct ATTRIB *attr) in attr_size() function
|
| H A D | xattr.c | 107 if (attr_size(attr_ea) > sbi->ea_max_size) { in ntfs_read_ea()
|
| H A D | frecord.c | 2386 ondisk_size = attr_size(attr) - vbo_data; in ni_read_frame()
|
| /linux/fs/smb/server/ |
| H A D | vfs.c | 898 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 D | syscall.c | 6520 BPF_CALL_3(bpf_sys_bpf, int, cmd, union bpf_attr *, attr, u32, attr_size) in BPF_CALL_3() 6536 return __sys_bpf(cmd, KERNEL_BPFPTR(attr), attr_size, KERNEL_BPFPTR(NULL), 0); in kern_sys_bpf() 6503 BPF_CALL_3(bpf_sys_bpf,int,cmd,union bpf_attr *,attr,u32,attr_size) BPF_CALL_3() argument
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| H A D | mvpp2_main.c | 7274 int attr_size = MVPP2_RX_FIFO_PORT_ATTR_SIZE(data_size); in mvpp22_rx_fifo_set_hw() local 7277 mvpp2_write(priv, MVPP2_RX_ATTR_FIFO_SIZE_REG(port), attr_size); in mvpp22_rx_fifo_set_hw()
|