Searched refs:ids (Results 1 – 9 of 9) sorted by relevance
/net/openvswitch/ |
D | vport.c | 334 int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids) in ovs_vport_set_upcall_portids() argument 338 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_vport_set_upcall_portids() 343 vport_portids = kmalloc(sizeof(*vport_portids) + nla_len(ids), in ovs_vport_set_upcall_portids() 348 vport_portids->n_ids = nla_len(ids) / sizeof(u32); in ovs_vport_set_upcall_portids() 350 nla_memcpy(vport_portids->ids, ids, nla_len(ids)); in ovs_vport_set_upcall_portids() 376 struct vport_portids *ids; in ovs_vport_get_upcall_portids() local 378 ids = rcu_dereference_ovsl(vport->upcall_portids); in ovs_vport_get_upcall_portids() 382 ids->n_ids * sizeof(u32), (void *)ids->ids); in ovs_vport_get_upcall_portids() 384 return nla_put_u32(skb, OVS_VPORT_ATTR_UPCALL_PID, ids->ids[0]); in ovs_vport_get_upcall_portids() 400 struct vport_portids *ids; in ovs_vport_find_upcall_portid() local [all …]
|
D | vport.h | 55 u32 ids[]; member
|
D | datapath.c | 2156 struct nlattr *ids = a[OVS_VPORT_ATTR_UPCALL_PID]; in ovs_vport_cmd_set() local 2158 err = ovs_vport_set_upcall_portids(vport, ids); in ovs_vport_cmd_set()
|
/net/ipv6/netfilter/ |
D | ip6t_frag.c | 64 id_match(fraginfo->ids[0], fraginfo->ids[1], in frag_mt6() 89 id_match(fraginfo->ids[0], fraginfo->ids[1], in frag_mt6()
|
/net/ceph/crush/ |
D | mapper.c | 320 if (!arg || !arg->ids) in get_choose_arg_ids() 323 return arg->ids; in get_choose_arg_ids() 335 __s32 *ids = get_choose_arg_ids(bucket, arg); in bucket_straw2_choose() local 338 dprintk("weight 0x%x item %d\n", weights[i], ids[i]); in bucket_straw2_choose() 340 u = crush_hash32_3(bucket->h.hash, x, ids[i], r); in bucket_straw2_choose()
|
/net/wireless/ |
D | util.c | 1418 static bool ieee80211_id_in_list(const u8 *ids, int n_ids, u8 id, bool id_ext) in ieee80211_id_in_list() argument 1423 if (WARN_ON(ids[n_ids - 1] == WLAN_EID_EXTENSION)) in ieee80211_id_in_list() 1428 if (ids[i] == WLAN_EID_EXTENSION) { in ieee80211_id_in_list() 1429 if (id_ext && (ids[i + 1] == id)) in ieee80211_id_in_list() 1436 if (ids[i] == id && !id_ext) in ieee80211_id_in_list() 1464 const u8 *ids, int n_ids, in ieee80211_ie_split_ric() argument 1478 if (!ieee80211_id_in_list(ids, n_ids, ies[pos + ext], in ieee80211_ie_split_ric()
|
/net/ceph/ |
D | osdmap.c | 166 kfree(arg->ids); in free_choose_arg_map() 248 arg->ids = decode_array_32_alloc(p, end, &arg->ids_size); in decode_choose_arg() 249 if (IS_ERR(arg->ids)) { in decode_choose_arg() 250 ret = PTR_ERR(arg->ids); in decode_choose_arg() 251 arg->ids = NULL; in decode_choose_arg()
|
/net/9p/ |
D | trans_xen.c | 524 .ids = xen_9pfs_front_ids,
|
/net/sctp/ |
D | socket.c | 7133 struct sctp_assoc_ids *ids; in sctp_getsockopt_assoc_ids() local 7151 ids = kmalloc(len, GFP_USER | __GFP_NOWARN); in sctp_getsockopt_assoc_ids() 7152 if (unlikely(!ids)) in sctp_getsockopt_assoc_ids() 7155 ids->gaids_number_of_ids = num; in sctp_getsockopt_assoc_ids() 7158 ids->gaids_assoc_id[num++] = asoc->assoc_id; in sctp_getsockopt_assoc_ids() 7161 if (put_user(len, optlen) || copy_to_user(optval, ids, len)) { in sctp_getsockopt_assoc_ids() 7162 kfree(ids); in sctp_getsockopt_assoc_ids() 7166 kfree(ids); in sctp_getsockopt_assoc_ids()
|