Home
last modified time | relevance | path

Searched refs:nla_put (Results 1 – 25 of 122) sorted by relevance

12345

/linux/drivers/net/can/dev/
H A Dnetlink.c551 nla_put(skb, IFLA_CAN_BITTIMING, in can_fill_info()
555 nla_put(skb, IFLA_CAN_BITTIMING_CONST, in can_fill_info()
558 nla_put(skb, IFLA_CAN_CLOCK, sizeof(priv->clock), &priv->clock) || in can_fill_info()
560 nla_put(skb, IFLA_CAN_CTRLMODE, sizeof(cm), &cm) || in can_fill_info()
565 nla_put(skb, IFLA_CAN_BERR_COUNTER, sizeof(bec), &bec)) || in can_fill_info()
568 nla_put(skb, IFLA_CAN_DATA_BITTIMING, in can_fill_info()
572 nla_put(skb, IFLA_CAN_DATA_BITTIMING_CONST, in can_fill_info()
578 nla_put(skb, IFLA_CAN_TERMINATION_CONST, in can_fill_info()
584 nla_put(skb, IFLA_CAN_BITRATE_CONST, in can_fill_info()
590 nla_put(skb, IFLA_CAN_DATA_BITRATE_CONST, in can_fill_info()
[all …]
/linux/drivers/nfc/st-nci/
H A Dvendor_cmds.c110 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_get_info()
142 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_get_data()
226 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_get_param()
271 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_vdc_measurement_value()
307 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_vdc_value_comparison()
341 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_loopback()
365 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, sizeof(ndev->manufact_specific_info), in st_nci_manufacturer_specific()
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_restrack.c57 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context); in hns_roce_fill_res_cq_entry_raw()
127 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context); in hns_roce_fill_res_qp_entry_raw()
176 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context); in hns_roce_fill_res_mr_entry_raw()
225 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context); in hns_roce_fill_res_srq_entry_raw()
/linux/net/xdp/
H A Dxsk_diag.c23 return nla_put(nlskb, XDP_DIAG_INFO, sizeof(di), &di); in xsk_diag_put_info()
32 return nla_put(nlskb, nl_type, sizeof(dr), &dr); in xsk_diag_put_ring()
69 err = nla_put(nlskb, XDP_DIAG_UMEM, sizeof(du), &du); in xsk_diag_put_umem()
89 return nla_put(nlskb, XDP_DIAG_STATS, sizeof(du), &du); in xsk_diag_put_stats()
/linux/drivers/net/wireguard/
H A Dnetlink.c86 nla_put(skb, WGALLOWEDIP_A_IPADDR, family == AF_INET6 ? in get_allowedips()
117 fail = nla_put(skb, WGPEER_A_PUBLIC_KEY, NOISE_PUBLIC_KEY_LEN, in get_peer()
130 fail = nla_put(skb, WGPEER_A_PRESHARED_KEY, in get_peer()
137 if (nla_put(skb, WGPEER_A_LAST_HANDSHAKE_TIME, in get_peer()
150 fail = nla_put(skb, WGPEER_A_ENDPOINT, in get_peer()
154 fail = nla_put(skb, WGPEER_A_ENDPOINT, in get_peer()
241 if (nla_put(skb, WGDEVICE_A_PRIVATE_KEY, in wg_get_device_dump()
244 nla_put(skb, WGDEVICE_A_PUBLIC_KEY, in wg_get_device_dump()
/linux/drivers/nfc/st21nfca/
H A Dvendor_cmds.c107 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_dm_get_info()
142 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_dm_get_data()
205 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_get_param()
284 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, info->vendor_info.rx_skb->len, in st21nfca_hci_loopback()
/linux/net/unix/
H A Ddiag.c22 return nla_put(nlskb, UNIX_DIAG_NAME, in sk_diag_dump_name()
37 return nla_put(nlskb, UNIX_DIAG_VFS, sizeof(uv), &uv); in sk_diag_dump_vfs()
101 return nla_put(nlskb, UNIX_DIAG_RQLEN, sizeof(rql), &rql); in sk_diag_show_rqlen()
108 return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); in sk_diag_dump_uid()
/linux/net/smc/
H A Dsmc_diag.c103 if (nla_put(skb, SMC_DIAG_FALLBACK, sizeof(fallback), &fallback) < 0) in __smc_diag_dump()
142 if (nla_put(skb, SMC_DIAG_CONNINFO, sizeof(cinfo), &cinfo) < 0) in __smc_diag_dump()
162 if (nla_put(skb, SMC_DIAG_LGRINFO, sizeof(linfo), &linfo) < 0) in __smc_diag_dump()
184 if (nla_put(skb, SMC_DIAG_DMBINFO, sizeof(dinfo), &dinfo) < 0) in __smc_diag_dump()
/linux/net/sched/
H A Dsch_netem.c1141 if (nla_put(skb, NETEM_LOSS_GI, sizeof(gi), &gi)) in dump_loss_model()
1153 if (nla_put(skb, NETEM_LOSS_GE, sizeof(ge), &ge)) in dump_loss_model()
1186 if (nla_put(skb, TCA_OPTIONS, sizeof(qopt), &qopt)) in netem_dump()
1189 if (nla_put(skb, TCA_NETEM_LATENCY64, sizeof(q->latency), &q->latency)) in netem_dump()
1192 if (nla_put(skb, TCA_NETEM_JITTER64, sizeof(q->jitter), &q->jitter)) in netem_dump()
1198 if (nla_put(skb, TCA_NETEM_CORR, sizeof(cor), &cor)) in netem_dump()
1203 if (nla_put(skb, TCA_NETEM_REORDER, sizeof(reorder), &reorder)) in netem_dump()
1208 if (nla_put(skb, TCA_NETEM_CORRUPT, sizeof(corrupt), &corrupt)) in netem_dump()
1222 if (nla_put(skb, TCA_NETEM_RATE, sizeof(rate), &rate)) in netem_dump()
1238 if (nla_put(skb, TCA_NETEM_SLOT, sizeof(slot), &slot)) in netem_dump()
H A Dact_skbmod.c256 if (nla_put(skb, TCA_SKBMOD_PARMS, sizeof(opt), &opt)) in tcf_skbmod_dump()
259 nla_put(skb, TCA_SKBMOD_DMAC, ETH_ALEN, p->eth_dst)) in tcf_skbmod_dump()
262 nla_put(skb, TCA_SKBMOD_SMAC, ETH_ALEN, p->eth_src)) in tcf_skbmod_dump()
H A Dact_ife.c66 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u32()
110 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u16()
660 if (nla_put(skb, TCA_IFE_PARMS, sizeof(opt), &opt)) in tcf_ife_dump()
668 if (nla_put(skb, TCA_IFE_DMAC, ETH_ALEN, p->eth_dst)) in tcf_ife_dump()
673 if (nla_put(skb, TCA_IFE_SMAC, ETH_ALEN, p->eth_src)) in tcf_ife_dump()
677 if (nla_put(skb, TCA_IFE_TYPE, 2, &p->eth_type)) in tcf_ife_dump()
H A Dact_vlan.c304 if (nla_put(skb, TCA_VLAN_PARMS, sizeof(opt), &opt)) in tcf_vlan_dump()
317 if (nla_put(skb, TCA_VLAN_PUSH_ETH_DST, ETH_ALEN, in tcf_vlan_dump()
320 if (nla_put(skb, TCA_VLAN_PUSH_ETH_SRC, ETH_ALEN, in tcf_vlan_dump()
H A Dact_gact.c199 if (nla_put(skb, TCA_GACT_PARMS, sizeof(opt), &opt)) in tcf_gact_dump()
209 if (nla_put(skb, TCA_GACT_PROB, sizeof(p_opt), &p_opt)) in tcf_gact_dump()
/linux/net/batman-adv/
H A Dbat_v.c144 if (nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_neigh_dump_neigh()
297 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, orig_node->orig) || in batadv_v_orig_dump_subentry()
298 nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_orig_dump_subentry()
695 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, in batadv_v_gw_dump_entry()
707 if (nla_put(msg, BATADV_ATTR_ROUTER, ETH_ALEN, router->addr)) { in batadv_v_gw_dump_entry()
/linux/net/wireless/
H A Dnl80211.c1767 if (tcp->tok && nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, in nl80211_send_wowlan_tcp_caps()
1823 if (nla_put(msg, NL80211_WOWLAN_TRIG_PKT_PATTERN, in nl80211_send_wowlan()
1857 if (nla_put(msg, NL80211_ATTR_COALESCE_RULE, sizeof(rule), &rule)) in nl80211_send_coalesce()
1876 if (nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC, in nl80211_send_iftype_data()
1879 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY, in nl80211_send_iftype_data()
1882 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET, in nl80211_send_iftype_data()
1885 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE, in nl80211_send_iftype_data()
1908 if (nla_put(msg, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC, in nl80211_send_iftype_data()
1911 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY, in nl80211_send_iftype_data()
1914 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET, in nl80211_send_iftype_data()
[all …]
/linux/drivers/net/wireless/ti/wl18xx/
H A Devent.c93 if (nla_put(skb, WLCORE_VENDOR_ATTR_SSID, ssid_len, ssid) || in wlcore_smart_config_decode_event()
94 nla_put(skb, WLCORE_VENDOR_ATTR_PSK, pwd_len, pwd)) { in wlcore_smart_config_decode_event()
/linux/net/bridge/
H A Dbr_netlink.c261 nla_put(skb, IFLA_BRPORT_ROOT_ID, sizeof(struct ifla_bridge_id), in br_port_fill_attrs()
263 nla_put(skb, IFLA_BRPORT_BRIDGE_ID, sizeof(struct ifla_bridge_id), in br_port_fill_attrs()
339 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
345 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
351 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
437 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo()
490 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in br_fill_ifinfo()
1674 nla_put(skb, IFLA_BR_BRIDGE_ID, sizeof(struct ifla_bridge_id), in br_fill_info()
1676 nla_put(skb, IFLA_BR_ROOT_ID, sizeof(struct ifla_bridge_id), in br_fill_info()
1683 nla_put(skb, IFLA_BR_GROUP_ADDR, ETH_ALEN, br->group_addr) || in br_fill_info()
[all …]
/linux/net/netfilter/
H A Dnfnetlink_log.c443 if (nla_put(inst->skb, NFULA_L2HDR, len, skb_mac_header(skb))) in nfulnl_put_bridge()
484 if (nla_put(inst->skb, NFULA_PACKET_HDR, sizeof(pmsg), &pmsg)) in __build_packet_message()
488 nla_put(inst->skb, NFULA_PREFIX, plen, prefix)) in __build_packet_message()
579 if (nla_put(inst->skb, NFULA_HWADDR, sizeof(phw), &phw)) in __build_packet_message()
596 nla_put(inst->skb, NFULA_HWHEADER, in __build_packet_message()
607 if (nla_put(inst->skb, NFULA_TIMESTAMP, sizeof(ts), &ts)) in __build_packet_message()
/linux/crypto/
H A Dcrypto_user.c83 return nla_put(skb, CRYPTOCFGA_REPORT_CIPHER, in crypto_report_cipher()
95 return nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, sizeof(rcomp), &rcomp); in crypto_report_comp()
121 if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, sizeof(rl), &rl)) in crypto_report_one()
/linux/include/linux/
H A Dgenl_magic_struct.h90 nla_strscpy, nla_put, false)
93 nla_memcpy, nla_put, false)
/linux/drivers/net/wireless/ath/ath6kl/
H A Dtestmode.c59 nla_put(skb, ATH6KL_TM_ATTR_DATA, buf_len, buf)) in ath6kl_tm_rx_event()
/linux/net/psample/
H A Dpsample.c277 nla_put(skb, PSAMPLE_TUNNEL_KEY_ATTR_GENEVE_OPTS, in __psample_ip_tun_to_nlattr()
282 nla_put(skb, PSAMPLE_TUNNEL_KEY_ATTR_ERSPAN_OPTS, in __psample_ip_tun_to_nlattr()
499 nla_put(nl_skb, PSAMPLE_ATTR_USER_COOKIE, md->user_cookie_len, in psample_sample_packet()
/linux/net/packet/
H A Ddiag.c35 return nla_put(nlskb, PACKET_DIAG_INFO, sizeof(pinfo), &pinfo); in pdiag_put_info()
95 return nla_put(nlskb, nl_type, sizeof(pdr), &pdr); in pdiag_put_ring()
/linux/net/ethtool/
H A Dphc_vclocks.c68 nla_put(skb, ETHTOOL_A_PHC_VCLOCKS_INDEX, in phc_vclocks_fill_reply()
/linux/net/netfilter/ipset/
H A Dip_set_hash_ipmac.c62 nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_ipmac4_data_list()
170 nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_ipmac6_data_list()

12345