/Linux-v6.6/drivers/net/can/dev/ |
D | netlink.c | 551 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-v6.6/include/net/ |
D | netlink.h | 539 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data); 1292 return nla_put(skb, attrtype, sizeof(u8), &tmp); in nla_put_u8() 1305 return nla_put(skb, attrtype, sizeof(u16), &tmp); in nla_put_u16() 1318 return nla_put(skb, attrtype, sizeof(__be16), &tmp); in nla_put_be16() 1344 return nla_put(skb, attrtype, sizeof(__le16), &tmp); in nla_put_le16() 1357 return nla_put(skb, attrtype, sizeof(u32), &tmp); in nla_put_u32() 1370 return nla_put(skb, attrtype, sizeof(__be32), &tmp); in nla_put_be32() 1396 return nla_put(skb, attrtype, sizeof(__le32), &tmp); in nla_put_le32() 1470 return nla_put(skb, attrtype, sizeof(s8), &tmp); in nla_put_s8() 1483 return nla_put(skb, attrtype, sizeof(s16), &tmp); in nla_put_s16() [all …]
|
/Linux-v6.6/drivers/nfc/st-nci/ |
D | vendor_cmds.c | 110 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-v6.6/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | vendor-cmd.c | 47 nla_put(skb, IWL_MVM_VENDOR_ATTR_SSID, in iwl_mvm_vendor_get_csme_conn_info() 54 nla_put(skb, IWL_MVM_VENDOR_ATTR_ADDR, ETH_ALEN, in iwl_mvm_vendor_get_csme_conn_info() 143 if (nla_put(msg, IWL_MVM_VENDOR_ATTR_VIF_ADDR, in iwl_mvm_send_roaming_forbidden_event()
|
/Linux-v6.6/drivers/infiniband/hw/hns/ |
D | hns_roce_restrack.c | 57 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context); in hns_roce_fill_res_cq_entry_raw() 110 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context); in hns_roce_fill_res_qp_entry_raw() 159 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context); in hns_roce_fill_res_mr_entry_raw()
|
/Linux-v6.6/net/xdp/ |
D | xsk_diag.c | 23 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-v6.6/crypto/ |
D | crypto_user_stat.c | 35 return nla_put(skb, CRYPTOCFGA_STAT_CIPHER, sizeof(rcipher), &rcipher); in crypto_report_cipher() 46 return nla_put(skb, CRYPTOCFGA_STAT_COMPRESS, sizeof(rcomp), &rcomp); in crypto_report_comp() 73 if (nla_put(skb, CRYPTOCFGA_STAT_LARVAL, sizeof(rl), &rl)) in crypto_reportstat_one()
|
D | sig.c | 45 return nla_put(skb, CRYPTOCFGA_REPORT_AKCIPHER, sizeof(rsig), &rsig); in crypto_sig_report() 55 return nla_put(skb, CRYPTOCFGA_STAT_AKCIPHER, sizeof(rsig), &rsig); in crypto_sig_report_stat()
|
D | kpp.c | 29 return nla_put(skb, CRYPTOCFGA_REPORT_KPP, sizeof(rkpp), &rkpp); in crypto_kpp_report() 89 return nla_put(skb, CRYPTOCFGA_STAT_KPP, sizeof(rkpp), &rkpp); in crypto_kpp_report_stat()
|
D | hash.h | 31 return nla_put(skb, CRYPTOCFGA_STAT_HASH, sizeof(rhash), &rhash); in crypto_hash_report_stat()
|
/Linux-v6.6/net/hsr/ |
D | hsr_netlink.c | 139 if (nla_put(skb, IFLA_HSR_SUPERVISION_ADDR, ETH_ALEN, in hsr_fill_info() 203 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror() 244 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_nodedown() 340 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, in hsr_get_node_status() 346 res = nla_put(skb_out, HSR_A_NODE_ADDR_B, ETH_ALEN, in hsr_get_node_status() 461 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_get_node_list()
|
/Linux-v6.6/drivers/net/wireguard/ |
D | netlink.c | 86 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-v6.6/drivers/nfc/st21nfca/ |
D | vendor_cmds.c | 107 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-v6.6/drivers/net/wireless/ti/wlcore/ |
D | testmode.c | 118 if (nla_put(skb, WL1271_TM_ATTR_DATA, buf_len, buf)) { in wl1271_tm_cmd_test() 182 if (nla_put(skb, WL1271_TM_ATTR_DATA, sizeof(*cmd), cmd)) { in wl1271_tm_cmd_interrogate() 254 if (nla_put(skb, WL1271_TM_ATTR_DATA, sizeof(wl->fem_manuf), in wl1271_tm_detect_fem() 334 if (nla_put(skb, WL1271_TM_ATTR_DATA, ETH_ALEN, mac_addr)) { in wl12xx_tm_cmd_get_mac()
|
/Linux-v6.6/net/smc/ |
D | smc_diag.c | 102 if (nla_put(skb, SMC_DIAG_FALLBACK, sizeof(fallback), &fallback) < 0) in __smc_diag_dump() 141 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() 180 if (nla_put(skb, SMC_DIAG_DMBINFO, sizeof(dinfo), &dinfo) < 0) in __smc_diag_dump()
|
/Linux-v6.6/net/unix/ |
D | diag.c | 22 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() 114 return nla_put(nlskb, UNIX_DIAG_RQLEN, sizeof(rql), &rql); in sk_diag_show_rqlen() 121 return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); in sk_diag_dump_uid()
|
/Linux-v6.6/net/sched/ |
D | sch_netem.c | 1120 if (nla_put(skb, NETEM_LOSS_GI, sizeof(gi), &gi)) in dump_loss_model() 1132 if (nla_put(skb, NETEM_LOSS_GE, sizeof(ge), &ge)) in dump_loss_model() 1165 if (nla_put(skb, TCA_OPTIONS, sizeof(qopt), &qopt)) in netem_dump() 1168 if (nla_put(skb, TCA_NETEM_LATENCY64, sizeof(q->latency), &q->latency)) in netem_dump() 1171 if (nla_put(skb, TCA_NETEM_JITTER64, sizeof(q->jitter), &q->jitter)) in netem_dump() 1177 if (nla_put(skb, TCA_NETEM_CORR, sizeof(cor), &cor)) in netem_dump() 1182 if (nla_put(skb, TCA_NETEM_REORDER, sizeof(reorder), &reorder)) in netem_dump() 1187 if (nla_put(skb, TCA_NETEM_CORRUPT, sizeof(corrupt), &corrupt)) in netem_dump() 1201 if (nla_put(skb, TCA_NETEM_RATE, sizeof(rate), &rate)) in netem_dump() 1217 if (nla_put(skb, TCA_NETEM_SLOT, sizeof(slot), &slot)) in netem_dump()
|
D | act_skbmod.c | 256 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()
|
D | act_ife.c | 66 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()
|
/Linux-v6.6/net/can/ |
D | gw.c | 659 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job() 666 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job() 673 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job() 680 if (nla_put(skb, CGW_FDMOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job() 689 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job() 696 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job() 703 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job() 710 if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job() 721 if (nla_put(skb, CGW_CS_CRC8, CGW_CS_CRC8_LEN, in cgw_put_job() 727 if (nla_put(skb, CGW_CS_XOR, CGW_CS_XOR_LEN, in cgw_put_job() [all …]
|
/Linux-v6.6/net/8021q/ |
D | vlan_netlink.c | 233 if (nla_put(skb, IFLA_VLAN_FLAGS, sizeof(f), &f)) in vlan_fill_info() 247 if (nla_put(skb, IFLA_VLAN_QOS_MAPPING, in vlan_fill_info() 267 if (nla_put(skb, IFLA_VLAN_QOS_MAPPING, in vlan_fill_info()
|
/Linux-v6.6/net/ethtool/ |
D | rss.c | 129 nla_put(skb, ETHTOOL_A_RSS_INDIR, in rss_fill_reply() 132 nla_put(skb, ETHTOOL_A_RSS_HKEY, data->hkey_size, data->hkey))) in rss_fill_reply()
|
/Linux-v6.6/net/batman-adv/ |
D | bat_v.c | 146 if (nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_neigh_dump_neigh() 299 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, orig_node->orig) || in batadv_v_orig_dump_subentry() 300 nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_orig_dump_subentry() 697 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, in batadv_v_gw_dump_entry() 709 if (nla_put(msg, BATADV_ATTR_ROUTER, ETH_ALEN, router->addr)) { in batadv_v_gw_dump_entry()
|
/Linux-v6.6/net/wireless/ |
D | nl80211.c | 1714 if (tcp->tok && nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, in nl80211_send_wowlan_tcp_caps() 1770 if (nla_put(msg, NL80211_WOWLAN_TRIG_PKT_PATTERN, in nl80211_send_wowlan() 1804 if (nla_put(msg, NL80211_ATTR_COALESCE_RULE, sizeof(rule), &rule)) in nl80211_send_coalesce() 1823 if (nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC, in nl80211_send_iftype_data() 1826 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY, in nl80211_send_iftype_data() 1829 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET, in nl80211_send_iftype_data() 1832 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE, in nl80211_send_iftype_data() 1855 if (nla_put(msg, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC, in nl80211_send_iftype_data() 1858 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY, in nl80211_send_iftype_data() 1861 nla_put(msg, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET, in nl80211_send_iftype_data() [all …]
|
/Linux-v6.6/drivers/net/wireless/ti/wl18xx/ |
D | event.c | 93 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()
|