Searched refs:attr_data (Results 1 – 3 of 3) sorted by relevance
175 if (uattr->attr_data.reserved) in uverbs_process_idrs_array()249 if (uattr->attr_data.enum_data.elem_id >= spec->u.enum_def.num_elems) in uverbs_process_attr()252 if (uattr->attr_data.enum_data.reserved) in uverbs_process_attr()255 val_spec = &spec->u2.enum_def.ids[uattr->attr_data.enum_data.elem_id]; in uverbs_process_attr()261 e->ptr_attr.enum_id = uattr->attr_data.enum_data.elem_id; in uverbs_process_attr()282 uattr->attr_data.reserved) in uverbs_process_attr()307 if (uattr->attr_data.reserved) in uverbs_process_attr()
37 u32 attr_data = 0, len = 0; in fm10k_tlv_attr_put_null_string() local50 attr[len / 4] = attr_data; in fm10k_tlv_attr_put_null_string()51 attr_data = 0; in fm10k_tlv_attr_put_null_string()55 attr_data |= (u32)(*string) << (8 * (len % 4)); in fm10k_tlv_attr_put_null_string()62 attr[(len + 3) / 4] = attr_data; in fm10k_tlv_attr_put_null_string()
2575 struct nlattr *attr_data; in team_nl_cmd_options_set() local2621 attr_data = opt_attrs[TEAM_ATTR_OPTION_DATA]; in team_nl_cmd_options_set()2622 if (opt_type != TEAM_OPTION_TYPE_BOOL && !attr_data) { in team_nl_cmd_options_set()2657 ctx.data.u32_val = nla_get_u32(attr_data); in team_nl_cmd_options_set()2660 if (nla_len(attr_data) > TEAM_STRING_MAX_LEN) { in team_nl_cmd_options_set()2664 ctx.data.str_val = nla_data(attr_data); in team_nl_cmd_options_set()2667 ctx.data.bin_val.len = nla_len(attr_data); in team_nl_cmd_options_set()2668 ctx.data.bin_val.ptr = nla_data(attr_data); in team_nl_cmd_options_set()2671 ctx.data.bool_val = attr_data ? true : false; in team_nl_cmd_options_set()2674 ctx.data.s32_val = nla_get_s32(attr_data); in team_nl_cmd_options_set()