Home
last modified time | relevance | path

Searched refs:value_size (Results 1 – 16 of 16) sorted by relevance

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dpipe.c137 match_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
138 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
143 action_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
144 action_value->value = kmalloc(action_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
421 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
422 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
432 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
435 match_value->value_size = sizeof(struct in6_addr); in mlxsw_sp_dpipe_table_host_entry_prepare()
442 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
447 action_value->value_size = sizeof(u64); in mlxsw_sp_dpipe_table_host_entry_prepare()
[all …]
/drivers/md/persistent-data/
Ddm-btree-internal.h35 __le32 value_size; member
120 uint32_t value_size = le32_to_cpu(n->header.value_size); in value_ptr() local
121 return value_base(n) + (value_size * index); in value_ptr()
Ddm-btree-remove.c59 uint32_t value_size = le32_to_cpu(n->header.value_size); in node_shift() local
70 (nr_entries - shift) * value_size); in node_shift()
78 nr_entries * value_size); in node_shift()
85 uint32_t value_size = le32_to_cpu(left->header.value_size); in node_copy() local
86 BUG_ON(value_size != le32_to_cpu(right->header.value_size)); in node_copy()
96 shift * value_size); in node_copy()
104 shift * value_size); in node_copy()
115 uint32_t value_size = le32_to_cpu(n->header.value_size); in delete_at() local
125 nr_to_copy * value_size); in delete_at()
Ddm-btree.c85 static int insert_at(size_t value_size, struct btree_node *node, unsigned index, in insert_at() argument
104 array_insert(value_base(node), value_size, nr_entries, index, value); in insert_at()
116 static uint32_t calc_max_entries(size_t value_size, size_t block_size) in calc_max_entries() argument
119 size_t elt_size = sizeof(uint64_t) + value_size; /* key + value */ in calc_max_entries()
148 n->header.value_size = cpu_to_le32(info->value_type.size); in dm_btree_empty()
348 uint64_t *result_key, void *v, size_t value_size) in btree_lookup_raw() argument
372 memcpy(v, value_ptr(ro_node(s), i), value_size); in btree_lookup_raw()
562 rn->header.value_size = ln->header.value_size; in btree_split_sibling()
649 ln->header.value_size = pn->header.value_size; in btree_split_beneath()
666 rn->header.value_size = pn->header.value_size; in btree_split_beneath()
[all …]
Ddm-btree-spine.c43 size_t value_size; in node_check() local
62 value_size = le32_to_cpu(h->value_size); in node_check()
65 (sizeof(__le64) + value_size) * le32_to_cpu(h->max_entries) > block_size) { in node_check()
Ddm-array.c27 __le32 value_size; member
144 static uint32_t calc_max_entries(size_t value_size, size_t size_of_block) in calc_max_entries() argument
146 return (size_of_block - sizeof(struct array_block)) / value_size; in calc_max_entries()
165 (*ab)->value_size = cpu_to_le32(info->value_type.size); in alloc_ablock()
/drivers/gpu/drm/radeon/
Dradeon_kms.c229 uint32_t *value, value_tmp, *value_ptr, value_size; in radeon_info_ioctl() local
236 value_size = sizeof(uint32_t); in radeon_info_ioctl()
434 value_size = sizeof(uint64_t); in radeon_info_ioctl()
487 value_size = sizeof(uint32_t)*32; in radeon_info_ioctl()
490 value_size = sizeof(uint32_t)*32; in radeon_info_ioctl()
499 value_size = sizeof(uint32_t)*16; in radeon_info_ioctl()
533 value_size = sizeof(uint64_t); in radeon_info_ioctl()
538 value_size = sizeof(uint64_t); in radeon_info_ioctl()
543 value_size = sizeof(uint64_t); in radeon_info_ioctl()
601 if (copy_to_user(value_ptr, (char*)value, value_size)) { in radeon_info_ioctl()
/drivers/net/ethernet/netronome/nfp/bpf/
Doffload.c264 for (i = 0; i < DIV_ROUND_UP(nfp_map->offmap->map.value_size, 4); i++) in nfp_map_bpf_byte_swap()
278 for (i = 0; i < DIV_ROUND_UP(nfp_map->offmap->map.value_size, 4); i++) in nfp_map_bpf_byte_swap_record()
364 round_up(offmap->map.value_size, 8) > bpf->maps.max_elem_sz) { in nfp_bpf_map_alloc()
367 round_up(offmap->map.value_size, 8), in nfp_bpf_map_alloc()
376 if (offmap->map.value_size > bpf->maps.max_val_sz) { in nfp_bpf_map_alloc()
378 offmap->map.value_size, bpf->maps.max_val_sz); in nfp_bpf_map_alloc()
382 use_map_size = DIV_ROUND_UP(offmap->map.value_size, 4) * in nfp_bpf_map_alloc()
Dcmsg.c96 req->value_size = cpu_to_be32(map->value_size); in nfp_bpf_ctrl_alloc_map()
236 map->value_size); in nfp_bpf_ctrl_op_cache_get()
331 map->value_size); in nfp_bpf_ctrl_entry_op()
371 map->value_size); in nfp_bpf_ctrl_entry_op()
Dfw.h81 __be32 value_size; /* in bytes */ member
Dverifier.c103 for (i = 0; i < offmap->map.value_size; i++) { in nfp_bpf_map_update_value_ok()
436 if (off + size > offmap->map.value_size) { in nfp_bpf_map_mark_used()
/drivers/staging/vc04_services/vchiq-mmal/
Dmmal-vchiq.h142 u32 value_size);
148 u32 *value_size);
Dmmal-vchiq.c1200 u32 parameter_id, void *value, u32 value_size) in port_parameter_set() argument
1212 m.u.port_parameter_set.size = (2 * sizeof(u32)) + value_size; in port_parameter_set()
1213 memcpy(&m.u.port_parameter_set.value, value, value_size); in port_parameter_set()
1216 (4 * sizeof(u32)) + value_size, in port_parameter_set()
1241 u32 parameter_id, void *value, u32 *value_size) in port_parameter_get() argument
1253 m.u.port_parameter_get.size = (2 * sizeof(u32)) + *value_size; in port_parameter_get()
1276 if (ret || rmsg->u.port_parameter_get_reply.size > *value_size) { in port_parameter_get()
1281 *value_size); in port_parameter_get()
1287 *value_size = rmsg->u.port_parameter_get_reply.size; in port_parameter_get()
1420 u32 parameter, void *value, u32 value_size) in vchiq_mmal_port_parameter_set() argument
[all …]
/drivers/hv/
Dhv_kvp.c424 message->body.kvp_set.data.value_size = in kvp_send_key()
427 in_msg->body.kvp_set.data.value_size, in kvp_send_key()
439 message->body.kvp_set.data.value_size = in kvp_send_key()
450 message->body.kvp_set.data.value_size = in kvp_send_key()
607 kvp_data->value_size = 2*(valuelen + 1); /* utf16 encoding */ in kvp_respond_to_host()
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_rule.c871 size_t value_size = value->match_sz; in dr_rule_verify() local
876 if (!value_size || in dr_rule_verify()
877 (value_size > sizeof(struct mlx5dr_match_param) || in dr_rule_verify()
878 (value_size % sizeof(u32)))) { in dr_rule_verify()
887 e_idx = min(s_idx + sizeof(param->outer), value_size); in dr_rule_verify()
897 e_idx = min(s_idx + sizeof(param->misc), value_size); in dr_rule_verify()
907 e_idx = min(s_idx + sizeof(param->inner), value_size); in dr_rule_verify()
917 e_idx = min(s_idx + sizeof(param->misc2), value_size); in dr_rule_verify()
927 e_idx = min(s_idx + sizeof(param->misc3), value_size); in dr_rule_verify()
/drivers/net/netdevsim/
Dbpf.c358 nmap->entry[idx].value = kmalloc(offmap->map.value_size, in nsim_map_alloc_elem()
410 memcpy(value, nmap->entry[idx].value, offmap->map.value_size); in nsim_map_lookup_elem()
451 memcpy(nmap->entry[idx].value, value, offmap->map.value_size); in nsim_map_update_elem()
519 memset(nmap->entry[i].value, 0, offmap->map.value_size); in nsim_bpf_map_alloc()