/net/openvswitch/ |
D | vport.c | 402 int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids) in ovs_vport_set_upcall_portids() argument 406 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_vport_set_upcall_portids() 411 vport_portids = kmalloc(sizeof(*vport_portids) + nla_len(ids), in ovs_vport_set_upcall_portids() 416 vport_portids->n_ids = nla_len(ids) / sizeof(u32); in ovs_vport_set_upcall_portids() 418 nla_memcpy(vport_portids->ids, ids, nla_len(ids)); in ovs_vport_set_upcall_portids() 444 struct vport_portids *ids; in ovs_vport_get_upcall_portids() local 446 ids = rcu_dereference_ovsl(vport->upcall_portids); in ovs_vport_get_upcall_portids() 450 ids->n_ids * sizeof(u32), (void *)ids->ids); in ovs_vport_get_upcall_portids() 452 return nla_put_u32(skb, OVS_VPORT_ATTR_UPCALL_PID, ids->ids[0]); in ovs_vport_get_upcall_portids() 469 struct vport_portids *ids; in ovs_vport_find_upcall_portid() local [all …]
|
D | datapath.c | 1656 const struct nlattr *ids) in ovs_dp_set_upcall_portids() argument 1660 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_dp_set_upcall_portids() 1665 dp_nlsk_pids = kmalloc(sizeof(*dp_nlsk_pids) + nla_len(ids), in ovs_dp_set_upcall_portids() 1670 dp_nlsk_pids->n_pids = nla_len(ids) / sizeof(u32); in ovs_dp_set_upcall_portids() 1671 nla_memcpy(dp_nlsk_pids->pids, ids, nla_len(ids)); in ovs_dp_set_upcall_portids() 2373 struct nlattr *ids = a[OVS_VPORT_ATTR_UPCALL_PID]; in ovs_vport_cmd_set() local 2375 err = ovs_vport_set_upcall_portids(vport, ids); in ovs_vport_cmd_set()
|
D | vport.h | 57 u32 ids[]; member
|
/net/ipv6/netfilter/ |
D | ip6t_frag.c | 64 id_match(fraginfo->ids[0], fraginfo->ids[1], in frag_mt6() 88 return 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/mptcp/ |
D | options.c | 311 mp_opt->rm_list.ids[i] = *ptr++; in mptcp_parse_option() 729 pr_debug("rm_list_ids[%d]=%d", i, opts->rm_list.ids[i]); in mptcp_established_options_rm_addr() 1621 0, opts->rm_list.ids[0]); in mptcp_write_options() 1626 id1 = opts->rm_list.ids[i]; in mptcp_write_options() 1627 id2 = i + 1 < opts->rm_list.nr ? opts->rm_list.ids[i + 1] : TCPOPT_NOP; in mptcp_write_options() 1628 id3 = i + 2 < opts->rm_list.nr ? opts->rm_list.ids[i + 2] : TCPOPT_NOP; in mptcp_write_options() 1629 id4 = i + 3 < opts->rm_list.nr ? opts->rm_list.ids[i + 3] : TCPOPT_NOP; in mptcp_write_options()
|
D | pm_netlink.c | 829 u8 rm_id = rm_list->ids[i]; in mptcp_pm_nl_rm_addr_or_subflow() 1479 list.ids[list.nr++] = addr->id; in mptcp_pm_remove_anno_addr() 1512 list.ids[list.nr++] = addr->id; in mptcp_nl_remove_subflow_and_signal_addr() 1539 __mark_subflow_endp_available(msk, list.ids[0]); in mptcp_nl_remove_subflow_and_signal_addr() 1560 list.ids[list.nr++] = 0; in mptcp_nl_remove_id_zero_address() 1654 alist.ids[alist.nr++] = entry->addr.id; in mptcp_pm_remove_addrs() 1674 slist.ids[slist.nr++] = entry->addr.id; in mptcp_pm_remove_addrs_and_subflows() 1678 alist.ids[alist.nr++] = entry->addr.id; in mptcp_pm_remove_addrs_and_subflows() 1966 list.ids[list.nr++] = addr->id; in mptcp_pm_nl_fullmesh() 1970 __mark_subflow_endp_available(msk, list.ids[0]); in mptcp_pm_nl_fullmesh()
|
D | pm.c | 274 mptcp_event_addr_removed(msk, rm_list->ids[i]); in mptcp_pm_rm_addr_received()
|
D | pm_userspace.c | 262 list.ids[list.nr++] = 0; in mptcp_userspace_pm_remove_id_zero_address()
|
/net/wireless/ |
D | util.c | 1884 static bool ieee80211_id_in_list(const u8 *ids, int n_ids, u8 id, bool id_ext) in ieee80211_id_in_list() argument 1889 if (WARN_ON(ids[n_ids - 1] == WLAN_EID_EXTENSION)) in ieee80211_id_in_list() 1894 if (ids[i] == WLAN_EID_EXTENSION) { in ieee80211_id_in_list() 1895 if (id_ext && (ids[i + 1] == id)) in ieee80211_id_in_list() 1902 if (ids[i] == id && !id_ext) in ieee80211_id_in_list() 1930 const u8 *ids, int n_ids, in ieee80211_ie_split_ric() argument 1944 if (!ieee80211_id_in_list(ids, n_ids, ies[pos + ext], in ieee80211_ie_split_ric()
|
/net/ceph/ |
D | osdmap.c | 255 kfree(arg->ids); in free_choose_arg_map() 337 arg->ids = decode_array_32_alloc(p, end, &arg->ids_size); in decode_choose_arg() 338 if (IS_ERR(arg->ids)) { in decode_choose_arg() 339 ret = PTR_ERR(arg->ids); in decode_choose_arg() 340 arg->ids = NULL; in decode_choose_arg()
|
/net/9p/ |
D | trans_xen.c | 535 .ids = xen_9pfs_front_ids,
|
/net/sctp/ |
D | socket.c | 7120 struct sctp_assoc_ids *ids; in sctp_getsockopt_assoc_ids() local 7134 ids_size = struct_size(ids, gaids_assoc_id, num); in sctp_getsockopt_assoc_ids() 7139 ids = kmalloc(len, GFP_USER | __GFP_NOWARN); in sctp_getsockopt_assoc_ids() 7140 if (unlikely(!ids)) in sctp_getsockopt_assoc_ids() 7143 ids->gaids_number_of_ids = num; in sctp_getsockopt_assoc_ids() 7146 ids->gaids_assoc_id[num++] = asoc->assoc_id; in sctp_getsockopt_assoc_ids() 7149 if (put_user(len, optlen) || copy_to_user(optval, ids, len)) { in sctp_getsockopt_assoc_ids() 7150 kfree(ids); in sctp_getsockopt_assoc_ids() 7154 kfree(ids); in sctp_getsockopt_assoc_ids()
|