Home
last modified time | relevance | path

Searched refs:nla_put_u8 (Results 1 – 25 of 117) sorted by relevance

12345

/kernel/linux/linux-5.10/net/bridge/
Dbr_netlink.c182 if (nla_put_u8(skb, IFLA_BRPORT_STATE, p->state) || in br_port_fill_attrs()
185 nla_put_u8(skb, IFLA_BRPORT_MODE, mode) || in br_port_fill_attrs()
186 nla_put_u8(skb, IFLA_BRPORT_GUARD, !!(p->flags & BR_BPDU_GUARD)) || in br_port_fill_attrs()
187 nla_put_u8(skb, IFLA_BRPORT_PROTECT, in br_port_fill_attrs()
189 nla_put_u8(skb, IFLA_BRPORT_FAST_LEAVE, in br_port_fill_attrs()
191 nla_put_u8(skb, IFLA_BRPORT_MCAST_TO_UCAST, in br_port_fill_attrs()
193 nla_put_u8(skb, IFLA_BRPORT_LEARNING, !!(p->flags & BR_LEARNING)) || in br_port_fill_attrs()
194 nla_put_u8(skb, IFLA_BRPORT_UNICAST_FLOOD, in br_port_fill_attrs()
196 nla_put_u8(skb, IFLA_BRPORT_MCAST_FLOOD, in br_port_fill_attrs()
198 nla_put_u8(skb, IFLA_BRPORT_BCAST_FLOOD, in br_port_fill_attrs()
[all …]
/kernel/linux/linux-5.10/net/ethtool/
Dlinkinfo.c62 if (nla_put_u8(skb, ETHTOOL_A_LINKINFO_PORT, data->lsettings->port) || in linkinfo_fill_reply()
63 nla_put_u8(skb, ETHTOOL_A_LINKINFO_PHYADDR, in linkinfo_fill_reply()
65 nla_put_u8(skb, ETHTOOL_A_LINKINFO_TP_MDIX, in linkinfo_fill_reply()
67 nla_put_u8(skb, ETHTOOL_A_LINKINFO_TP_MDIX_CTRL, in linkinfo_fill_reply()
69 nla_put_u8(skb, ETHTOOL_A_LINKINFO_TRANSCEIVER, in linkinfo_fill_reply()
Dcabletest.c40 err = nla_put_u8(skb, ETHTOOL_A_CABLE_TEST_NTF_STATUS, in ethnl_cable_test_started()
125 err = nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_TEST_NTF_STATUS, in ethnl_cable_test_alloc()
172 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_RESULT_PAIR, pair)) in ethnl_cable_test_result()
174 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_RESULT_CODE, result)) in ethnl_cable_test_result()
196 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR, pair)) in ethnl_cable_test_fault_length()
371 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_AMPLITUDE_PAIR, pair)) in ethnl_cable_test_amplitude()
Dlinkstate.c147 nla_put_u8(skb, ETHTOOL_A_LINKSTATE_LINK, !!data->link)) in linkstate_fill_reply()
159 if (nla_put_u8(skb, ETHTOOL_A_LINKSTATE_EXT_STATE, in linkstate_fill_reply()
164 nla_put_u8(skb, ETHTOOL_A_LINKSTATE_EXT_SUBSTATE, in linkstate_fill_reply()
Deee.c101 if (nla_put_u8(skb, ETHTOOL_A_EEE_ACTIVE, !!eee->eee_active) || in eee_fill_reply()
102 nla_put_u8(skb, ETHTOOL_A_EEE_ENABLED, !!eee->eee_enabled) || in eee_fill_reply()
103 nla_put_u8(skb, ETHTOOL_A_EEE_TX_LPI_ENABLED, in eee_fill_reply()
Dpause.c111 if (nla_put_u8(skb, ETHTOOL_A_PAUSE_AUTONEG, !!pauseparam->autoneg) || in pause_fill_reply()
112 nla_put_u8(skb, ETHTOOL_A_PAUSE_RX, !!pauseparam->rx_pause) || in pause_fill_reply()
113 nla_put_u8(skb, ETHTOOL_A_PAUSE_TX, !!pauseparam->tx_pause)) in pause_fill_reply()
Dlinkmodes.c103 if (nla_put_u8(skb, ETHTOOL_A_LINKMODES_AUTONEG, lsettings->autoneg)) in linkmodes_fill_reply()
123 nla_put_u8(skb, ETHTOOL_A_LINKMODES_DUPLEX, lsettings->duplex)) in linkmodes_fill_reply()
127 nla_put_u8(skb, ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG, in linkmodes_fill_reply()
132 nla_put_u8(skb, ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE, in linkmodes_fill_reply()
/kernel/linux/linux-5.10/net/dcb/
Ddcbnl.c214 return nla_put_u8(skb, DCB_ATTR_STATE, in dcbnl_getstate()
252 ret = nla_put_u8(skb, i, value); in dcbnl_getpfccfg()
310 ret = nla_put_u8(skb, i, value); in dcbnl_getcap()
356 ret = nla_put_u8(skb, i, value); in dcbnl_getnumtcs()
400 return nla_put_u8(skb, DCB_ATTR_NUMTCS, !!ret); in dcbnl_setnumtcs()
409 return nla_put_u8(skb, DCB_ATTR_PFC_STATE, in dcbnl_getpfcstate()
428 return nla_put_u8(skb, DCB_ATTR_PFC_STATE, 0); in dcbnl_setpfcstate()
480 ret = nla_put_u8(skb, DCB_APP_ATTR_IDTYPE, idtype); in dcbnl_getapp()
488 ret = nla_put_u8(skb, DCB_APP_ATTR_PRIORITY, up); in dcbnl_getapp()
545 ret = nla_put_u8(skb, DCB_ATTR_APP, ret); in dcbnl_setapp()
[all …]
/kernel/linux/linux-5.10/drivers/net/bonding/
Dbond_netlink.c38 if (nla_put_u8(skb, IFLA_BOND_SLAVE_STATE, bond_slave_state(slave))) in bond_fill_slave_info()
41 if (nla_put_u8(skb, IFLA_BOND_SLAVE_MII_STATUS, slave->link)) in bond_fill_slave_info()
65 if (nla_put_u8(skb, in bond_fill_slave_info()
530 if (nla_put_u8(skb, IFLA_BOND_MODE, BOND_MODE(bond))) in bond_fill_info()
552 if (nla_put_u8(skb, IFLA_BOND_USE_CARRIER, bond->params.use_carrier)) in bond_fill_info()
588 if (nla_put_u8(skb, IFLA_BOND_PRIMARY_RESELECT, in bond_fill_info()
592 if (nla_put_u8(skb, IFLA_BOND_FAIL_OVER_MAC, in bond_fill_info()
596 if (nla_put_u8(skb, IFLA_BOND_XMIT_HASH_POLICY, in bond_fill_info()
604 if (nla_put_u8(skb, IFLA_BOND_NUM_PEER_NOTIF, in bond_fill_info()
608 if (nla_put_u8(skb, IFLA_BOND_ALL_SLAVES_ACTIVE, in bond_fill_info()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dtestmode.c470 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_MODE, td->tx_rate_mode) || in mt76_testmode_dump()
471 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_NSS, td->tx_rate_nss) || in mt76_testmode_dump()
472 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_IDX, td->tx_rate_idx) || in mt76_testmode_dump()
473 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_SGI, td->tx_rate_sgi) || in mt76_testmode_dump()
474 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_LDPC, td->tx_rate_ldpc) || in mt76_testmode_dump()
476 nla_put_u8(msg, MT76_TM_ATTR_TX_ANTENNA, td->tx_antenna_mask)) || in mt76_testmode_dump()
478 nla_put_u8(msg, MT76_TM_ATTR_TX_POWER_CONTROL, td->tx_power_control)) || in mt76_testmode_dump()
480 nla_put_u8(msg, MT76_TM_ATTR_FREQ_OFFSET, td->freq_offset))) in mt76_testmode_dump()
489 if (nla_put_u8(msg, i, td->tx_power[i])) in mt76_testmode_dump()
/kernel/linux/linux-5.10/net/ieee802154/
Dnl-mac.c65 nla_put_u8(msg, IEEE802154_ATTR_STATUS, status)) in ieee802154_nl_start_confirm()
117 nla_put_u8(msg, IEEE802154_ATTR_LBT_ENABLED, params.lbt) || in ieee802154_nl_fill_iface()
118 nla_put_u8(msg, IEEE802154_ATTR_CCA_MODE, in ieee802154_nl_fill_iface()
122 nla_put_u8(msg, IEEE802154_ATTR_CSMA_RETRIES, in ieee802154_nl_fill_iface()
124 nla_put_u8(msg, IEEE802154_ATTR_CSMA_MIN_BE, in ieee802154_nl_fill_iface()
126 nla_put_u8(msg, IEEE802154_ATTR_CSMA_MAX_BE, in ieee802154_nl_fill_iface()
606 if (nla_put_u8(msg, IEEE802154_ATTR_LLSEC_KEY_MODE, desc->mode)) in ieee802154_llsec_fill_key_id()
627 nla_put_u8(msg, IEEE802154_ATTR_LLSEC_KEY_ID, desc->id)) in ieee802154_llsec_fill_key_id()
679 nla_put_u8(msg, IEEE802154_ATTR_LLSEC_ENABLED, params.enabled) || in ieee802154_llsec_getparams()
680 nla_put_u8(msg, IEEE802154_ATTR_LLSEC_SECLEVEL, params.out_level) || in ieee802154_llsec_getparams()
[all …]
Dnl802154.c409 if (nla_put_u8(msg, NL802154_CAP_ATTR_MIN_MINBE, caps->min_minbe) || in nl802154_put_capabilities()
410 nla_put_u8(msg, NL802154_CAP_ATTR_MAX_MINBE, caps->max_minbe) || in nl802154_put_capabilities()
411 nla_put_u8(msg, NL802154_CAP_ATTR_MIN_MAXBE, caps->min_maxbe) || in nl802154_put_capabilities()
412 nla_put_u8(msg, NL802154_CAP_ATTR_MAX_MAXBE, caps->max_maxbe) || in nl802154_put_capabilities()
413 nla_put_u8(msg, NL802154_CAP_ATTR_MIN_CSMA_BACKOFFS, in nl802154_put_capabilities()
415 nla_put_u8(msg, NL802154_CAP_ATTR_MAX_CSMA_BACKOFFS, in nl802154_put_capabilities()
457 if (nla_put_u8(msg, NL802154_ATTR_PAGE, in nl802154_send_wpan_phy()
459 nla_put_u8(msg, NL802154_ATTR_CHANNEL, in nl802154_send_wpan_phy()
730 if (nla_put_u8(msg, NL802154_KEY_ID_ATTR_INDEX, desc->id)) in ieee802154_llsec_send_key_id()
749 if (nla_put_u8(msg, NL802154_ATTR_SEC_ENABLED, params.enabled) || in nl802154_get_llsec_params()
[all …]
/kernel/linux/linux-5.10/net/batman-adv/
Dnetlink.c190 return nla_put_u8(msg, BATADV_ATTR_AP_ISOLATION_ENABLED, in batadv_netlink_mesh_fill_ap_isolation()
248 nla_put_u8(msg, BATADV_ATTR_TT_TTVN, in batadv_netlink_mesh_fill()
274 if (nla_put_u8(msg, BATADV_ATTR_AGGREGATED_OGMS_ENABLED, in batadv_netlink_mesh_fill()
289 if (nla_put_u8(msg, BATADV_ATTR_BONDING_ENABLED, in batadv_netlink_mesh_fill()
294 if (nla_put_u8(msg, BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED, in batadv_netlink_mesh_fill()
300 if (nla_put_u8(msg, BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED, in batadv_netlink_mesh_fill()
305 if (nla_put_u8(msg, BATADV_ATTR_FRAGMENTATION_ENABLED, in batadv_netlink_mesh_fill()
317 if (nla_put_u8(msg, BATADV_ATTR_GW_MODE, in batadv_netlink_mesh_fill()
331 if (nla_put_u8(msg, BATADV_ATTR_HOP_PENALTY, in batadv_netlink_mesh_fill()
342 if (nla_put_u8(msg, BATADV_ATTR_MULTICAST_FORCEFLOOD_ENABLED, in batadv_netlink_mesh_fill()
[all …]
/kernel/linux/linux-5.10/net/mptcp/
Ddiag.c65 nla_put_u8(skb, MPTCP_SUBFLOW_ATTR_ID_REM, sf->remote_id) || in subflow_get_info()
66 nla_put_u8(skb, MPTCP_SUBFLOW_ATTR_ID_LOC, sf->local_id)) { in subflow_get_info()
/kernel/linux/linux-5.10/net/sched/
Dact_tunnel_key.c583 nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE, in tunnel_key_geneve_opts_dump()
628 if (nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_VER, md->version)) in tunnel_key_erspan_opts_dump()
636 (nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_DIR, in tunnel_key_erspan_opts_dump()
638 nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_HWID, in tunnel_key_erspan_opts_dump()
747 nla_put_u8(skb, TCA_TUNNEL_KEY_NO_CSUM, in tunnel_key_dump()
752 if (key->tos && nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_TOS, key->tos)) in tunnel_key_dump()
755 if (key->ttl && nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_TTL, key->ttl)) in tunnel_key_dump()
/kernel/linux/linux-5.10/net/ipv6/ila/
Dila_lwt.c272 if (nla_put_u8(skb, ILA_ATTR_CSUM_MODE, (__force u8)p->csum_mode)) in ila_fill_encap_info()
275 if (nla_put_u8(skb, ILA_ATTR_IDENT_TYPE, (__force u8)p->ident_type)) in ila_fill_encap_info()
278 if (nla_put_u8(skb, ILA_ATTR_HOOK_TYPE, in ila_fill_encap_info()
/kernel/linux/linux-5.10/net/netfilter/ipset/
Dip_set_hash_netportnet.c117 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netportnet4_data_list()
118 nla_put_u8(skb, IPSET_ATTR_CIDR2, data->cidr[1]) || in hash_netportnet4_data_list()
119 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || in hash_netportnet4_data_list()
393 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netportnet6_data_list()
394 nla_put_u8(skb, IPSET_ATTR_CIDR2, data->cidr[1]) || in hash_netportnet6_data_list()
395 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || in hash_netportnet6_data_list()
Dip_set_hash_netport.c104 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr + 1) || in hash_netport4_data_list()
105 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || in hash_netport4_data_list()
317 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr + 1) || in hash_netport6_data_list()
318 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || in hash_netport6_data_list()
Dip_set_hash_netnet.c109 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netnet4_data_list()
110 nla_put_u8(skb, IPSET_ATTR_CIDR2, data->cidr[1]) || in hash_netnet4_data_list()
340 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netnet6_data_list()
341 nla_put_u8(skb, IPSET_ATTR_CIDR2, data->cidr[1]) || in hash_netnet6_data_list()
Dip_set_core.c1606 if (nla_put_u8(skb, IPSET_ATTR_PROTOCOL, in ip_set_dump_do()
1617 nla_put_u8(skb, IPSET_ATTR_FAMILY, in ip_set_dump_do()
1619 nla_put_u8(skb, IPSET_ATTR_REVISION, in ip_set_dump_do()
1909 if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) || in ip_set_header()
1912 nla_put_u8(skb2, IPSET_ATTR_FAMILY, set->family) || in ip_set_header()
1913 nla_put_u8(skb2, IPSET_ATTR_REVISION, set->revision)) in ip_set_header()
1969 if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) || in ip_set_type()
1971 nla_put_u8(skb2, IPSET_ATTR_FAMILY, family) || in ip_set_type()
1972 nla_put_u8(skb2, IPSET_ATTR_REVISION, max) || in ip_set_type()
1973 nla_put_u8(skb2, IPSET_ATTR_REVISION_MIN, min)) in ip_set_type()
[all …]
/kernel/linux/linux-5.10/net/nfc/
Dnetlink.c76 nla_put_u8(msg, NFC_ATTR_TARGET_SEL_RES, target->sel_res)) in nfc_genl_send_target()
92 if (nla_put_u8(msg, NFC_ATTR_TARGET_ISO15693_DSFID, in nfc_genl_send_target()
294 nla_put_u8(msg, NFC_ATTR_DEVICE_POWERED, dev->dev_up) || in nfc_genl_setup_device_added()
295 nla_put_u8(msg, NFC_ATTR_RF_MODE, dev->rf_mode)) in nfc_genl_setup_device_added()
396 if (nla_put_u8(msg, NFC_SDP_ATTR_SAP, sdres->sap)) in nfc_genl_llc_send_sdres()
440 nla_put_u8(msg, NFC_ATTR_SE_TYPE, type)) in nfc_genl_se_added()
507 nla_put_u8(msg, NFC_ATTR_SE_TYPE, se->type) || in nfc_genl_se_transaction()
552 nla_put_u8(msg, NFC_ATTR_SE_TYPE, se->type)) in nfc_genl_se_connectivity()
668 if (nla_put_u8(msg, NFC_ATTR_COMM_MODE, comm_mode) || in nfc_genl_dep_link_up_event()
669 nla_put_u8(msg, NFC_ATTR_RF_MODE, rf_mode)) in nfc_genl_dep_link_up_event()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dip_tunnel_core.c753 nla_put_u8(skb, LWTUNNEL_IP_OPT_GENEVE_TYPE, opt->type) || in ip_tun_fill_encap_opts_geneve()
797 if (nla_put_u8(skb, LWTUNNEL_IP_OPT_ERSPAN_VER, md->version)) in ip_tun_fill_encap_opts_erspan()
805 (nla_put_u8(skb, LWTUNNEL_IP_OPT_ERSPAN_DIR, md->u.md2.dir) || in ip_tun_fill_encap_opts_erspan()
806 nla_put_u8(skb, LWTUNNEL_IP_OPT_ERSPAN_HWID, in ip_tun_fill_encap_opts_erspan()
855 nla_put_u8(skb, LWTUNNEL_IP_TOS, tun_info->key.tos) || in ip_tun_fill_encap_info()
856 nla_put_u8(skb, LWTUNNEL_IP_TTL, tun_info->key.ttl) || in ip_tun_fill_encap_info()
1017 nla_put_u8(skb, LWTUNNEL_IP6_TC, tun_info->key.tos) || in ip6_tun_fill_encap_info()
1018 nla_put_u8(skb, LWTUNNEL_IP6_HOPLIMIT, tun_info->key.ttl) || in ip6_tun_fill_encap_info()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dnldev.c157 nla_put_u8(msg, RDMA_NLDEV_ATTR_DRIVER_PRINT_TYPE, print_type)) in put_driver_name_print_type()
272 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_DEV_NODE_TYPE, device->node_type)) in fill_dev_info()
274 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_DEV_DIM, device->use_cq_dim)) in fill_dev_info()
331 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_LMC, attr.lmc)) in fill_port_info()
334 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_PORT_STATE, attr.state)) in fill_port_info()
336 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_PORT_PHYS_STATE, attr.phys_state)) in fill_port_info()
477 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_PATH_MIG_STATE, in fill_res_qp_entry_query()
481 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, qp->qp_type)) in fill_res_qp_entry_query()
483 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_STATE, qp_attr.qp_state)) in fill_res_qp_entry_query()
553 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, cm_id->qp_type)) in fill_res_cm_id_entry()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnft_tunnel.c580 if (nla_put_u8(skb, NFTA_TUNNEL_KEY_ERSPAN_V2_HWID, in nft_tunnel_opts_dump()
582 nla_put_u8(skb, NFTA_TUNNEL_KEY_ERSPAN_V2_DIR, in nft_tunnel_opts_dump()
599 nla_put_u8(skb, NFTA_TUNNEL_KEY_GENEVE_TYPE, in nft_tunnel_opts_dump()
657 nla_put_u8(skb, NFTA_TUNNEL_KEY_TOS, info->key.tos) || in nft_tunnel_obj_dump()
658 nla_put_u8(skb, NFTA_TUNNEL_KEY_TTL, info->key.ttl) || in nft_tunnel_obj_dump()
/kernel/linux/linux-5.10/drivers/net/
Dmacsec.c2995 nla_put_u8(skb, MACSEC_SECY_ATTR_ICV_LEN, secy->icv_len) || in nla_put_secy()
2996 nla_put_u8(skb, MACSEC_SECY_ATTR_OPER, secy->operational) || in nla_put_secy()
2997 nla_put_u8(skb, MACSEC_SECY_ATTR_PROTECT, secy->protect_frames) || in nla_put_secy()
2998 nla_put_u8(skb, MACSEC_SECY_ATTR_REPLAY, secy->replay_protect) || in nla_put_secy()
2999 nla_put_u8(skb, MACSEC_SECY_ATTR_VALIDATE, secy->validate_frames) || in nla_put_secy()
3000 nla_put_u8(skb, MACSEC_SECY_ATTR_ENCRYPT, tx_sc->encrypt) || in nla_put_secy()
3001 nla_put_u8(skb, MACSEC_SECY_ATTR_INC_SCI, tx_sc->send_sci) || in nla_put_secy()
3002 nla_put_u8(skb, MACSEC_SECY_ATTR_ES, tx_sc->end_station) || in nla_put_secy()
3003 nla_put_u8(skb, MACSEC_SECY_ATTR_SCB, tx_sc->scb) || in nla_put_secy()
3004 nla_put_u8(skb, MACSEC_SECY_ATTR_ENCODING_SA, tx_sc->encoding_sa)) in nla_put_secy()
[all …]

12345