Home
last modified time | relevance | path

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

123456

/Linux-v4.19/include/net/
Dnetlink.h272 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data);
780 return nla_put(skb, attrtype, sizeof(u8), &tmp); in nla_put_u8()
793 return nla_put(skb, attrtype, sizeof(u16), &tmp); in nla_put_u16()
806 return nla_put(skb, attrtype, sizeof(__be16), &tmp); in nla_put_be16()
832 return nla_put(skb, attrtype, sizeof(__le16), &tmp); in nla_put_le16()
845 return nla_put(skb, attrtype, sizeof(u32), &tmp); in nla_put_u32()
858 return nla_put(skb, attrtype, sizeof(__be32), &tmp); in nla_put_be32()
884 return nla_put(skb, attrtype, sizeof(__le32), &tmp); in nla_put_le32()
958 return nla_put(skb, attrtype, sizeof(s8), &tmp); in nla_put_s8()
971 return nla_put(skb, attrtype, sizeof(s16), &tmp); in nla_put_s16()
[all …]
/Linux-v4.19/drivers/nfc/st-nci/
Dvendor_cmds.c121 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_get_info()
154 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_get_data()
239 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_get_param()
285 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_vdc_measurement_value()
322 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_vdc_value_comparison()
357 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_loopback()
381 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, sizeof(ndev->manufact_specific_info), in st_nci_manufacturer_specific()
/Linux-v4.19/net/hsr/
Dhsr_netlink.c101 if (nla_put(skb, IFLA_HSR_SUPERVISION_ADDR, ETH_ALEN, in hsr_fill_info()
163 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror()
205 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_nodedown()
302 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, in hsr_get_node_status()
308 res = nla_put(skb_out, HSR_A_NODE_ADDR_B, ETH_ALEN, in hsr_get_node_status()
421 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_get_node_list()
/Linux-v4.19/crypto/
Dcrypto_user.c92 if (nla_put(skb, CRYPTOCFGA_REPORT_CIPHER, in crypto_report_cipher()
106 if (nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, in crypto_report_comp()
121 if (nla_put(skb, CRYPTOCFGA_REPORT_ACOMP, in crypto_report_acomp()
136 if (nla_put(skb, CRYPTOCFGA_REPORT_AKCIPHER, in crypto_report_akcipher()
151 if (nla_put(skb, CRYPTOCFGA_REPORT_KPP, in crypto_report_kpp()
180 if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, in crypto_report_one()
/Linux-v4.19/drivers/net/can/
Ddev.c1121 nla_put(skb, IFLA_CAN_BITTIMING, in can_fill_info()
1125 nla_put(skb, IFLA_CAN_BITTIMING_CONST, in can_fill_info()
1128 nla_put(skb, IFLA_CAN_CLOCK, sizeof(priv->clock), &priv->clock) || in can_fill_info()
1130 nla_put(skb, IFLA_CAN_CTRLMODE, sizeof(cm), &cm) || in can_fill_info()
1135 nla_put(skb, IFLA_CAN_BERR_COUNTER, sizeof(bec), &bec)) || in can_fill_info()
1138 nla_put(skb, IFLA_CAN_DATA_BITTIMING, in can_fill_info()
1142 nla_put(skb, IFLA_CAN_DATA_BITTIMING_CONST, in can_fill_info()
1148 nla_put(skb, IFLA_CAN_TERMINATION_CONST, in can_fill_info()
1154 nla_put(skb, IFLA_CAN_BITRATE_CONST, in can_fill_info()
1160 nla_put(skb, IFLA_CAN_DATA_BITRATE_CONST, in can_fill_info()
[all …]
/Linux-v4.19/drivers/nfc/st21nfca/
Dvendor_cmds.c118 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_dm_get_info()
153 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_dm_get_data()
216 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_get_param()
295 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, info->vendor_info.rx_skb->len, in st21nfca_hci_loopback()
/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dtestmode.c134 if (nla_put(skb, WL1271_TM_ATTR_DATA, buf_len, buf)) { in wl1271_tm_cmd_test()
200 if (nla_put(skb, WL1271_TM_ATTR_DATA, sizeof(*cmd), cmd)) { in wl1271_tm_cmd_interrogate()
272 if (nla_put(skb, WL1271_TM_ATTR_DATA, sizeof(wl->fem_manuf), in wl1271_tm_detect_fem()
352 if (nla_put(skb, WL1271_TM_ATTR_DATA, ETH_ALEN, mac_addr)) { in wl12xx_tm_cmd_get_mac()
/Linux-v4.19/net/smc/
Dsmc_diag.c107 if (nla_put(skb, SMC_DIAG_FALLBACK, sizeof(fallback), &fallback) < 0) in __smc_diag_dump()
146 if (nla_put(skb, SMC_DIAG_CONNINFO, sizeof(cinfo), &cinfo) < 0) in __smc_diag_dump()
167 if (nla_put(skb, SMC_DIAG_LGRINFO, sizeof(linfo), &linfo) < 0) in __smc_diag_dump()
182 if (nla_put(skb, SMC_DIAG_DMBINFO, sizeof(dinfo), &dinfo) < 0) in __smc_diag_dump()
/Linux-v4.19/net/sched/
Dsch_netem.c1064 if (nla_put(skb, NETEM_LOSS_GI, sizeof(gi), &gi)) in dump_loss_model()
1076 if (nla_put(skb, NETEM_LOSS_GE, sizeof(ge), &ge)) in dump_loss_model()
1109 if (nla_put(skb, TCA_OPTIONS, sizeof(qopt), &qopt)) in netem_dump()
1112 if (nla_put(skb, TCA_NETEM_LATENCY64, sizeof(q->latency), &q->latency)) in netem_dump()
1115 if (nla_put(skb, TCA_NETEM_JITTER64, sizeof(q->jitter), &q->jitter)) in netem_dump()
1121 if (nla_put(skb, TCA_NETEM_CORR, sizeof(cor), &cor)) in netem_dump()
1126 if (nla_put(skb, TCA_NETEM_REORDER, sizeof(reorder), &reorder)) in netem_dump()
1131 if (nla_put(skb, TCA_NETEM_CORRUPT, sizeof(corrupt), &corrupt)) in netem_dump()
1145 if (nla_put(skb, TCA_NETEM_RATE, sizeof(rate), &rate)) in netem_dump()
1161 if (nla_put(skb, TCA_NETEM_SLOT, sizeof(slot), &slot)) in netem_dump()
Dact_skbmod.c220 if (nla_put(skb, TCA_SKBMOD_PARMS, sizeof(opt), &opt)) in tcf_skbmod_dump()
223 nla_put(skb, TCA_SKBMOD_DMAC, ETH_ALEN, p->eth_dst)) in tcf_skbmod_dump()
226 nla_put(skb, TCA_SKBMOD_SMAC, ETH_ALEN, p->eth_src)) in tcf_skbmod_dump()
Dact_ife.c70 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u32()
114 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u16()
627 if (nla_put(skb, TCA_IFE_PARMS, sizeof(opt), &opt)) in tcf_ife_dump()
635 if (nla_put(skb, TCA_IFE_DMAC, ETH_ALEN, p->eth_dst)) in tcf_ife_dump()
640 if (nla_put(skb, TCA_IFE_SMAC, ETH_ALEN, p->eth_src)) in tcf_ife_dump()
644 if (nla_put(skb, TCA_IFE_TYPE, 2, &p->eth_type)) in tcf_ife_dump()
Dact_gact.c188 if (nla_put(skb, TCA_GACT_PARMS, sizeof(opt), &opt)) in tcf_gact_dump()
198 if (nla_put(skb, TCA_GACT_PROB, sizeof(p_opt), &p_opt)) in tcf_gact_dump()
/Linux-v4.19/net/8021q/
Dvlan_netlink.c225 if (nla_put(skb, IFLA_VLAN_FLAGS, sizeof(f), &f)) in vlan_fill_info()
239 if (nla_put(skb, IFLA_VLAN_QOS_MAPPING, in vlan_fill_info()
259 if (nla_put(skb, IFLA_VLAN_QOS_MAPPING, in vlan_fill_info()
/Linux-v4.19/net/unix/
Ddiag.c18 return nla_put(nlskb, UNIX_DIAG_NAME, addr->len - sizeof(short), in sk_diag_dump_name()
32 return nla_put(nlskb, UNIX_DIAG_VFS, sizeof(uv), &uv); in sk_diag_dump_vfs()
109 return nla_put(nlskb, UNIX_DIAG_RQLEN, sizeof(rql), &rql); in sk_diag_show_rqlen()
/Linux-v4.19/net/batman-adv/
Dnetlink.c145 nla_put(msg, BATADV_ATTR_MESH_ADDRESS, ETH_ALEN, in batadv_netlink_mesh_info_put()
168 nla_put(msg, BATADV_ATTR_HARD_ADDRESS, ETH_ALEN, in batadv_netlink_mesh_info_put()
302 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, dst)) in batadv_netlink_tpmeter_notify()
469 nla_put(msg, BATADV_ATTR_HARD_ADDRESS, ETH_ALEN, in batadv_netlink_dump_hardif_entry()
Dbat_v.c244 if (nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_neigh_dump_neigh()
464 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, orig_node->orig) || in batadv_v_orig_dump_subentry()
465 nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_orig_dump_subentry()
960 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, in batadv_v_gw_dump_entry()
972 if (nla_put(msg, BATADV_ATTR_ROUTER, ETH_ALEN, router->addr)) { in batadv_v_gw_dump_entry()
/Linux-v4.19/drivers/net/wireless/ti/wl18xx/
Devent.c107 if (nla_put(skb, WLCORE_VENDOR_ATTR_SSID, ssid_len, ssid) || in wlcore_smart_config_decode_event()
108 nla_put(skb, WLCORE_VENDOR_ATTR_PSK, pwd_len, pwd)) { in wlcore_smart_config_decode_event()
/Linux-v4.19/net/dcb/
Ddcbnl.c284 return nla_put(skb, DCB_ATTR_PERM_HWADDR, sizeof(perm_addr), perm_addr); in dcbnl_getperm_hwaddr()
1010 nla_put(skb, app_info_type, sizeof(info), &info)) in dcbnl_build_peer_app()
1014 if (nla_put(skb, app_entry_type, sizeof(struct dcb_app), in dcbnl_build_peer_app()
1048 nla_put(skb, DCB_ATTR_IEEE_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill()
1057 err = nla_put(skb, DCB_ATTR_IEEE_MAXRATE, in dcbnl_ieee_fill()
1070 err = nla_put(skb, DCB_ATTR_IEEE_QCN, in dcbnl_ieee_fill()
1083 err = nla_put(skb, DCB_ATTR_IEEE_QCN_STATS, in dcbnl_ieee_fill()
1095 nla_put(skb, DCB_ATTR_IEEE_PFC, sizeof(pfc), &pfc)) in dcbnl_ieee_fill()
1105 nla_put(skb, DCB_ATTR_DCB_BUFFER, sizeof(buffer), &buffer)) in dcbnl_ieee_fill()
1116 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app), in dcbnl_ieee_fill()
[all …]
/Linux-v4.19/net/bridge/
Dbr_netlink.c204 nla_put(skb, IFLA_BRPORT_ROOT_ID, sizeof(struct ifla_bridge_id), in br_port_fill_attrs()
206 nla_put(skb, IFLA_BRPORT_BRIDGE_ID, sizeof(struct ifla_bridge_id), in br_port_fill_attrs()
262 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
268 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
274 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
360 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo()
410 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in br_fill_ifinfo()
1404 nla_put(skb, IFLA_BR_BRIDGE_ID, sizeof(struct ifla_bridge_id), in br_fill_info()
1406 nla_put(skb, IFLA_BR_ROOT_ID, sizeof(struct ifla_bridge_id), in br_fill_info()
1413 nla_put(skb, IFLA_BR_GROUP_ADDR, ETH_ALEN, br->group_addr)) in br_fill_info()
[all …]
/Linux-v4.19/net/wireless/
Dnl80211.c1234 if (tcp->tok && nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, in nl80211_send_wowlan_tcp_caps()
1289 if (nla_put(msg, NL80211_WOWLAN_TRIG_PKT_PATTERN, in nl80211_send_wowlan()
1323 if (nla_put(msg, NL80211_ATTR_COALESCE_RULE, sizeof(rule), &rule)) in nl80211_send_coalesce()
1340 if (nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC, in nl80211_send_iftype_data()
1343 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY, in nl80211_send_iftype_data()
1346 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET, in nl80211_send_iftype_data()
1349 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE, in nl80211_send_iftype_data()
1366 (nla_put(msg, NL80211_BAND_ATTR_HT_MCS_SET, in nl80211_send_band_rateinfo()
1379 (nla_put(msg, NL80211_BAND_ATTR_VHT_MCS_SET, in nl80211_send_band_rateinfo()
1680 if (nla_put(msg, NL80211_ATTR_CIPHER_SUITES, in nl80211_send_wiphy()
[all …]
/Linux-v4.19/net/can/
Dgw.c524 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
531 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
538 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
545 if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
555 if (nla_put(skb, CGW_CS_CRC8, CGW_CS_CRC8_LEN, in cgw_put_job()
561 if (nla_put(skb, CGW_CS_XOR, CGW_CS_XOR_LEN, in cgw_put_job()
569 if (nla_put(skb, CGW_FILTER, sizeof(struct can_filter), in cgw_put_job()
/Linux-v4.19/drivers/net/wireless/ath/ath6kl/
Dtestmode.c59 nla_put(skb, ATH6KL_TM_ATTR_DATA, buf_len, buf)) in ath6kl_tm_rx_event()
/Linux-v4.19/include/linux/
Dgenl_magic_struct.h92 nla_strlcpy, nla_put, false)
95 nla_memcpy, nla_put, false)
/Linux-v4.19/net/xfrm/
Dxfrm_user.c877 ret = nla_put(skb, XFRMA_COADDR, sizeof(*x->coaddr), x->coaddr); in copy_to_user_state_extra()
888 ret = nla_put(skb, XFRMA_ALG_AEAD, aead_len(x->aead), x->aead); in copy_to_user_state_extra()
895 ret = nla_put(skb, XFRMA_ALG_AUTH_TRUNC, in copy_to_user_state_extra()
901 ret = nla_put(skb, XFRMA_ALG_CRYPT, xfrm_alg_len(x->ealg), x->ealg); in copy_to_user_state_extra()
906 ret = nla_put(skb, XFRMA_ALG_COMP, sizeof(*(x->calg)), x->calg); in copy_to_user_state_extra()
911 ret = nla_put(skb, XFRMA_ENCAP, sizeof(*x->encap), x->encap); in copy_to_user_state_extra()
929 ret = nla_put(skb, XFRMA_REPLAY_ESN_VAL, in copy_to_user_state_extra()
933 ret = nla_put(skb, XFRMA_REPLAY_VAL, sizeof(x->replay), in copy_to_user_state_extra()
1120 err = nla_put(skb, XFRMA_SPD_INFO, sizeof(spc), &spc); in build_spdinfo()
1122 err = nla_put(skb, XFRMA_SPD_HINFO, sizeof(sph), &sph); in build_spdinfo()
[all …]
/Linux-v4.19/net/packet/
Ddiag.c34 return nla_put(nlskb, PACKET_DIAG_INFO, sizeof(pinfo), &pinfo); in pdiag_put_info()
94 return nla_put(nlskb, nl_type, sizeof(pdr), &pdr); in pdiag_put_ring()

123456