Home
last modified time | relevance | path

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

1234567

/linux-6.3-rc2/crypto/
A Dcrypto_user_stat.c45 return nla_put(skb, CRYPTOCFGA_STAT_AEAD, sizeof(raead), &raead); in crypto_report_aead()
62 return nla_put(skb, CRYPTOCFGA_STAT_CIPHER, sizeof(rcipher), &rcipher); in crypto_report_cipher()
78 return nla_put(skb, CRYPTOCFGA_STAT_COMPRESS, sizeof(rcomp), &rcomp); in crypto_report_comp()
94 return nla_put(skb, CRYPTOCFGA_STAT_ACOMP, sizeof(racomp), &racomp); in crypto_report_acomp()
112 return nla_put(skb, CRYPTOCFGA_STAT_AKCIPHER, in crypto_report_akcipher()
129 return nla_put(skb, CRYPTOCFGA_STAT_KPP, sizeof(rkpp), &rkpp); in crypto_report_kpp()
144 return nla_put(skb, CRYPTOCFGA_STAT_HASH, sizeof(rhash), &rhash); in crypto_report_ahash()
159 return nla_put(skb, CRYPTOCFGA_STAT_HASH, sizeof(rhash), &rhash); in crypto_report_shash()
175 return nla_put(skb, CRYPTOCFGA_STAT_RNG, sizeof(rrng), &rrng); in crypto_report_rng()
202 if (nla_put(skb, CRYPTOCFGA_STAT_LARVAL, sizeof(rl), &rl)) in crypto_reportstat_one()
/linux-6.3-rc2/drivers/net/can/dev/
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()
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()
595 (nla_put(skb, IFLA_CAN_BITRATE_MAX, in can_fill_info()
[all …]
/linux-6.3-rc2/include/net/
A Dnetlink.h1296 return nla_put(skb, attrtype, sizeof(u8), &tmp); in nla_put_u8()
1309 return nla_put(skb, attrtype, sizeof(u16), &tmp); in nla_put_u16()
1322 return nla_put(skb, attrtype, sizeof(__be16), &tmp); in nla_put_be16()
1361 return nla_put(skb, attrtype, sizeof(u32), &tmp); in nla_put_u32()
1474 return nla_put(skb, attrtype, sizeof(s8), &tmp); in nla_put_s8()
1487 return nla_put(skb, attrtype, sizeof(s16), &tmp); in nla_put_s16()
1500 return nla_put(skb, attrtype, sizeof(s32), &tmp); in nla_put_s32()
1537 return nla_put(skb, attrtype, 0, NULL); in nla_put_flag()
1580 return nla_put(skb, attrtype, sizeof(*addr), addr); in nla_put_in6_addr()
1595 return nla_put(skb, attrtype, sizeof(tmp), &tmp); in nla_put_bitfield32()
[all …]
/linux-6.3-rc2/drivers/nfc/st-nci/
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-6.3-rc2/drivers/net/wireless/intel/iwlwifi/mvm/
A Dvendor-cmd.c47 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-6.3-rc2/net/xdp/
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-6.3-rc2/net/hsr/
A Dhsr_netlink.c139 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-6.3-rc2/drivers/net/wireguard/
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-6.3-rc2/drivers/nfc/st21nfca/
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-6.3-rc2/drivers/net/wireless/ti/wlcore/
A Dtestmode.c118 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-6.3-rc2/net/smc/
A Dsmc_diag.c102 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-6.3-rc2/net/unix/
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()
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-6.3-rc2/net/sched/
A Dsch_netem.c1109 if (nla_put(skb, NETEM_LOSS_GI, sizeof(gi), &gi)) in dump_loss_model()
1121 if (nla_put(skb, NETEM_LOSS_GE, sizeof(ge), &ge)) in dump_loss_model()
1154 if (nla_put(skb, TCA_OPTIONS, sizeof(qopt), &qopt)) in netem_dump()
1157 if (nla_put(skb, TCA_NETEM_LATENCY64, sizeof(q->latency), &q->latency)) in netem_dump()
1160 if (nla_put(skb, TCA_NETEM_JITTER64, sizeof(q->jitter), &q->jitter)) in netem_dump()
1166 if (nla_put(skb, TCA_NETEM_CORR, sizeof(cor), &cor)) in netem_dump()
1171 if (nla_put(skb, TCA_NETEM_REORDER, sizeof(reorder), &reorder)) in netem_dump()
1176 if (nla_put(skb, TCA_NETEM_CORRUPT, sizeof(corrupt), &corrupt)) in netem_dump()
1190 if (nla_put(skb, TCA_NETEM_RATE, sizeof(rate), &rate)) in netem_dump()
1206 if (nla_put(skb, TCA_NETEM_SLOT, sizeof(slot), &slot)) in netem_dump()
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()
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()
A Dact_vlan.c303 if (nla_put(skb, TCA_VLAN_PARMS, sizeof(opt), &opt)) in tcf_vlan_dump()
316 if (nla_put(skb, TCA_VLAN_PUSH_ETH_DST, ETH_ALEN, in tcf_vlan_dump()
319 if (nla_put(skb, TCA_VLAN_PUSH_ETH_SRC, ETH_ALEN, in tcf_vlan_dump()
/linux-6.3-rc2/net/can/
A Dgw.c659 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-6.3-rc2/net/8021q/
A Dvlan_netlink.c233 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-6.3-rc2/net/ethtool/
A Drss.c128 nla_put(skb, ETHTOOL_A_RSS_INDIR, in rss_fill_reply()
131 nla_put(skb, ETHTOOL_A_RSS_HKEY, data->hkey_size, data->hkey))) in rss_fill_reply()
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_restrack.c77 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, offset * sizeof(u32), data); in hns_roce_fill_res_cq_entry_raw()
167 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, offset * sizeof(u32), data); in hns_roce_fill_res_qp_entry_raw()
228 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, offset * sizeof(u32), data); in hns_roce_fill_res_mr_entry_raw()
/linux-6.3-rc2/net/batman-adv/
A Dbat_v.c146 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()
716 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, in batadv_v_gw_dump_entry()
728 if (nla_put(msg, BATADV_ATTR_ROUTER, ETH_ALEN, router->addr)) { in batadv_v_gw_dump_entry()
/linux-6.3-rc2/drivers/net/wireless/ti/wl18xx/
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-6.3-rc2/net/wireless/
A Dnl80211.c2450 if (nla_put(msg, NL80211_ATTR_CIPHER_SUITES, in nl80211_send_wiphy()
2722 (nla_put(msg, NL80211_ATTR_EXT_CAPA, in nl80211_send_wiphy()
2753 if (nla_put(msg, i + 1, ETH_ALEN, in nl80211_send_wiphy()
2829 if (nla_put(msg, NL80211_ATTR_EXT_FEATURES, in nl80211_send_wiphy()
2877 nla_put(msg, NL80211_ATTR_EXT_CAPA, in nl80211_send_wiphy()
2941 nla_put(msg, NL80211_ATTR_AKM_SUITES, in nl80211_send_wiphy()
4432 nla_put(cookie->msg, NL80211_KEY_DATA, in get_key_callback()
4435 nla_put(cookie->msg, NL80211_KEY_SEQ, in get_key_callback()
6525 nla_put(msg, NL80211_STA_INFO_STA_FLAGS, in nl80211_send_station()
13664 if (nla_put(msg, NL80211_PKTPAT_MASK, in nl80211_send_coalesce_rules()
[all …]
/linux-6.3-rc2/net/dcb/
A Ddcbnl.c1047 nla_put(skb, app_info_type, sizeof(info), &info)) in dcbnl_build_peer_app()
1051 if (nla_put(skb, app_entry_type, sizeof(struct dcb_app), in dcbnl_build_peer_app()
1159 nla_put(skb, DCB_ATTR_IEEE_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill()
1168 err = nla_put(skb, DCB_ATTR_IEEE_MAXRATE, in dcbnl_ieee_fill()
1181 err = nla_put(skb, DCB_ATTR_IEEE_QCN, in dcbnl_ieee_fill()
1194 err = nla_put(skb, DCB_ATTR_IEEE_QCN_STATS, in dcbnl_ieee_fill()
1206 nla_put(skb, DCB_ATTR_IEEE_PFC, sizeof(pfc), &pfc)) in dcbnl_ieee_fill()
1229 err = nla_put(skb, type, sizeof(itr->app), &itr->app); in dcbnl_ieee_fill()
1254 err = nla_put(skb, type, sizeof(itr->app), &itr->app); in dcbnl_ieee_fill()
1468 nla_put(skb, DCB_ATTR_CEE_PEER_PG, sizeof(pg), &pg)) in dcbnl_cee_fill()
[all …]
/linux-6.3-rc2/net/bridge/
A Dbr_netlink.c259 nla_put(skb, IFLA_BRPORT_ROOT_ID, sizeof(struct ifla_bridge_id), in br_port_fill_attrs()
331 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
337 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
343 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
429 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo()
481 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in br_fill_ifinfo()
1643 nla_put(skb, IFLA_BR_BRIDGE_ID, sizeof(struct ifla_bridge_id), in br_fill_info()
1645 nla_put(skb, IFLA_BR_ROOT_ID, sizeof(struct ifla_bridge_id), in br_fill_info()
1652 nla_put(skb, IFLA_BR_GROUP_ADDR, ETH_ALEN, br->group_addr) || in br_fill_info()
1653 nla_put(skb, IFLA_BR_MULTI_BOOLOPT, sizeof(bm), &bm)) in br_fill_info()
[all …]

Completed in 102 milliseconds

1234567