Home
last modified time | relevance | path

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

123456

/linux-6.6.21/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()
Dmm.c131 if (nla_put_u8(skb, ETHTOOL_A_MM_TX_ENABLED, state->tx_enabled) || in mm_fill_reply()
132 nla_put_u8(skb, ETHTOOL_A_MM_TX_ACTIVE, state->tx_active) || in mm_fill_reply()
133 nla_put_u8(skb, ETHTOOL_A_MM_PMAC_ENABLED, state->pmac_enabled) || in mm_fill_reply()
134 nla_put_u8(skb, ETHTOOL_A_MM_VERIFY_ENABLED, state->verify_enabled) || in mm_fill_reply()
135 nla_put_u8(skb, ETHTOOL_A_MM_VERIFY_STATUS, state->verify_status) || in mm_fill_reply()
Dlinkmodes.c110 if (nla_put_u8(skb, ETHTOOL_A_LINKMODES_AUTONEG, lsettings->autoneg)) in linkmodes_fill_reply()
130 nla_put_u8(skb, ETHTOOL_A_LINKMODES_DUPLEX, lsettings->duplex)) in linkmodes_fill_reply()
138 nla_put_u8(skb, ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG, in linkmodes_fill_reply()
143 nla_put_u8(skb, ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE, in linkmodes_fill_reply()
147 if (nla_put_u8(skb, ETHTOOL_A_LINKMODES_RATE_MATCHING, in linkmodes_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()
Dlinkstate.c164 nla_put_u8(skb, ETHTOOL_A_LINKSTATE_LINK, !!data->link)) in linkstate_fill_reply()
176 if (nla_put_u8(skb, ETHTOOL_A_LINKSTATE_EXT_STATE, in linkstate_fill_reply()
181 nla_put_u8(skb, ETHTOOL_A_LINKSTATE_EXT_SUBSTATE, in linkstate_fill_reply()
Dpause.c151 if (nla_put_u8(skb, ETHTOOL_A_PAUSE_AUTONEG, !!pauseparam->autoneg) || in pause_fill_reply()
152 nla_put_u8(skb, ETHTOOL_A_PAUSE_RX, !!pauseparam->rx_pause) || in pause_fill_reply()
153 nla_put_u8(skb, ETHTOOL_A_PAUSE_TX, !!pauseparam->tx_pause)) in pause_fill_reply()
Dmodule.c82 nla_put_u8(skb, ETHTOOL_A_MODULE_POWER_MODE_POLICY, in module_fill_reply()
87 nla_put_u8(skb, ETHTOOL_A_MODULE_POWER_MODE, data->power.mode)) in module_fill_reply()
Drings.c101 (nla_put_u8(skb, ETHTOOL_A_RINGS_TCP_DATA_SPLIT, in rings_fill_reply()
105 nla_put_u8(skb, ETHTOOL_A_RINGS_TX_PUSH, !!kr->tx_push) || in rings_fill_reply()
106 nla_put_u8(skb, ETHTOOL_A_RINGS_RX_PUSH, !!kr->rx_push) || in rings_fill_reply()
/linux-6.6.21/net/bridge/
Dbr_netlink.c240 if (nla_put_u8(skb, IFLA_BRPORT_STATE, p->state) || in br_port_fill_attrs()
243 nla_put_u8(skb, IFLA_BRPORT_MODE, mode) || in br_port_fill_attrs()
244 nla_put_u8(skb, IFLA_BRPORT_GUARD, !!(p->flags & BR_BPDU_GUARD)) || in br_port_fill_attrs()
245 nla_put_u8(skb, IFLA_BRPORT_PROTECT, in br_port_fill_attrs()
247 nla_put_u8(skb, IFLA_BRPORT_FAST_LEAVE, in br_port_fill_attrs()
249 nla_put_u8(skb, IFLA_BRPORT_MCAST_TO_UCAST, in br_port_fill_attrs()
251 nla_put_u8(skb, IFLA_BRPORT_LEARNING, !!(p->flags & BR_LEARNING)) || in br_port_fill_attrs()
252 nla_put_u8(skb, IFLA_BRPORT_UNICAST_FLOOD, in br_port_fill_attrs()
254 nla_put_u8(skb, IFLA_BRPORT_MCAST_FLOOD, in br_port_fill_attrs()
256 nla_put_u8(skb, IFLA_BRPORT_BCAST_FLOOD, in br_port_fill_attrs()
[all …]
Dbr_vlan_options.c54 if (nla_put_u8(skb, BRIDGE_VLANDB_ENTRY_STATE, br_vlan_get_state(v)) || in br_vlan_opts_fill()
56 nla_put_u8(skb, BRIDGE_VLANDB_ENTRY_NEIGH_SUPPRESS, in br_vlan_opts_fill()
61 if (nla_put_u8(skb, BRIDGE_VLANDB_ENTRY_MCAST_ROUTER, in br_vlan_opts_fill()
368 if (nla_put_u8(skb, BRIDGE_VLANDB_GOPTS_MCAST_SNOOPING, in br_vlan_global_opts_fill()
370 nla_put_u8(skb, BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION, in br_vlan_global_opts_fill()
376 nla_put_u8(skb, BRIDGE_VLANDB_GOPTS_MCAST_QUERIER, in br_vlan_global_opts_fill()
425 if (nla_put_u8(skb, BRIDGE_VLANDB_GOPTS_MCAST_MLD_VERSION, in br_vlan_global_opts_fill()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dtestmode.c621 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_MODE, td->tx_rate_mode) || in mt76_testmode_dump()
622 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_NSS, td->tx_rate_nss) || in mt76_testmode_dump()
623 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_IDX, td->tx_rate_idx) || in mt76_testmode_dump()
624 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_SGI, td->tx_rate_sgi) || in mt76_testmode_dump()
625 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_LDPC, td->tx_rate_ldpc) || in mt76_testmode_dump()
626 nla_put_u8(msg, MT76_TM_ATTR_TX_RATE_STBC, td->tx_rate_stbc) || in mt76_testmode_dump()
628 nla_put_u8(msg, MT76_TM_ATTR_TX_LTF, td->tx_ltf)) || in mt76_testmode_dump()
630 nla_put_u8(msg, MT76_TM_ATTR_TX_ANTENNA, td->tx_antenna_mask)) || in mt76_testmode_dump()
632 nla_put_u8(msg, MT76_TM_ATTR_TX_SPE_IDX, td->tx_spe_idx)) || in mt76_testmode_dump()
634 nla_put_u8(msg, MT76_TM_ATTR_TX_DUTY_CYCLE, td->tx_duty_cycle)) || in mt76_testmode_dump()
[all …]
/linux-6.6.21/net/dcb/
Ddcbnl.c248 return nla_put_u8(skb, DCB_ATTR_STATE, in dcbnl_getstate()
286 ret = nla_put_u8(skb, i, value); in dcbnl_getpfccfg()
344 ret = nla_put_u8(skb, i, value); in dcbnl_getcap()
390 ret = nla_put_u8(skb, i, value); in dcbnl_getnumtcs()
434 return nla_put_u8(skb, DCB_ATTR_NUMTCS, !!ret); in dcbnl_setnumtcs()
443 return nla_put_u8(skb, DCB_ATTR_PFC_STATE, in dcbnl_getpfcstate()
462 return nla_put_u8(skb, DCB_ATTR_PFC_STATE, 0); in dcbnl_setpfcstate()
514 ret = nla_put_u8(skb, DCB_APP_ATTR_IDTYPE, idtype); in dcbnl_getapp()
522 ret = nla_put_u8(skb, DCB_APP_ATTR_PRIORITY, up); in dcbnl_getapp()
579 ret = nla_put_u8(skb, DCB_ATTR_APP, ret); in dcbnl_setapp()
[all …]
/linux-6.6.21/drivers/net/bonding/
Dbond_netlink.c40 if (nla_put_u8(skb, IFLA_BOND_SLAVE_STATE, bond_slave_state(slave))) in bond_fill_slave_info()
43 if (nla_put_u8(skb, IFLA_BOND_SLAVE_MII_STATUS, slave->link)) in bond_fill_slave_info()
70 if (nla_put_u8(skb, in bond_fill_slave_info()
642 if (nla_put_u8(skb, IFLA_BOND_MODE, BOND_MODE(bond))) in bond_fill_info()
664 if (nla_put_u8(skb, IFLA_BOND_USE_CARRIER, bond->params.use_carrier)) in bond_fill_info()
720 if (nla_put_u8(skb, IFLA_BOND_PRIMARY_RESELECT, in bond_fill_info()
724 if (nla_put_u8(skb, IFLA_BOND_FAIL_OVER_MAC, in bond_fill_info()
728 if (nla_put_u8(skb, IFLA_BOND_XMIT_HASH_POLICY, in bond_fill_info()
736 if (nla_put_u8(skb, IFLA_BOND_NUM_PEER_NOTIF, in bond_fill_info()
740 if (nla_put_u8(skb, IFLA_BOND_ALL_SLAVES_ACTIVE, in bond_fill_info()
[all …]
/linux-6.6.21/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.c428 if (nla_put_u8(msg, NL802154_CAP_ATTR_MIN_MINBE, caps->min_minbe) || in nl802154_put_capabilities()
429 nla_put_u8(msg, NL802154_CAP_ATTR_MAX_MINBE, caps->max_minbe) || in nl802154_put_capabilities()
430 nla_put_u8(msg, NL802154_CAP_ATTR_MIN_MAXBE, caps->min_maxbe) || in nl802154_put_capabilities()
431 nla_put_u8(msg, NL802154_CAP_ATTR_MAX_MAXBE, caps->max_maxbe) || in nl802154_put_capabilities()
432 nla_put_u8(msg, NL802154_CAP_ATTR_MIN_CSMA_BACKOFFS, in nl802154_put_capabilities()
434 nla_put_u8(msg, NL802154_CAP_ATTR_MAX_CSMA_BACKOFFS, in nl802154_put_capabilities()
476 if (nla_put_u8(msg, NL802154_ATTR_PAGE, in nl802154_send_wpan_phy()
478 nla_put_u8(msg, NL802154_ATTR_CHANNEL, in nl802154_send_wpan_phy()
749 if (nla_put_u8(msg, NL802154_KEY_ID_ATTR_INDEX, desc->id)) in ieee802154_llsec_send_key_id()
768 if (nla_put_u8(msg, NL802154_ATTR_SEC_ENABLED, params.enabled) || in nl802154_get_llsec_params()
[all …]
/linux-6.6.21/net/batman-adv/
Dnetlink.c191 return nla_put_u8(msg, BATADV_ATTR_AP_ISOLATION_ENABLED, in batadv_netlink_mesh_fill_ap_isolation()
249 nla_put_u8(msg, BATADV_ATTR_TT_TTVN, in batadv_netlink_mesh_fill()
275 if (nla_put_u8(msg, BATADV_ATTR_AGGREGATED_OGMS_ENABLED, in batadv_netlink_mesh_fill()
290 if (nla_put_u8(msg, BATADV_ATTR_BONDING_ENABLED, in batadv_netlink_mesh_fill()
295 if (nla_put_u8(msg, BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED, in batadv_netlink_mesh_fill()
301 if (nla_put_u8(msg, BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED, in batadv_netlink_mesh_fill()
306 if (nla_put_u8(msg, BATADV_ATTR_FRAGMENTATION_ENABLED, in batadv_netlink_mesh_fill()
318 if (nla_put_u8(msg, BATADV_ATTR_GW_MODE, in batadv_netlink_mesh_fill()
332 if (nla_put_u8(msg, BATADV_ATTR_HOP_PENALTY, in batadv_netlink_mesh_fill()
343 if (nla_put_u8(msg, BATADV_ATTR_MULTICAST_FORCEFLOOD_ENABLED, in batadv_netlink_mesh_fill()
[all …]
/linux-6.6.21/net/mptcp/
Ddiag.c70 nla_put_u8(skb, MPTCP_SUBFLOW_ATTR_ID_REM, sf->remote_id) || in subflow_get_info()
71 nla_put_u8(skb, MPTCP_SUBFLOW_ATTR_ID_LOC, subflow_get_local_id(sf))) { in subflow_get_info()
/linux-6.6.21/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()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/
Dvendor-cmd.c52 nla_put_u8(skb, IWL_MVM_VENDOR_ATTR_CHANNEL_NUM, in iwl_mvm_vendor_get_csme_conn_info()
145 nla_put_u8(msg, IWL_MVM_VENDOR_ATTR_ROAMING_FORBIDDEN, forbidden)) in iwl_mvm_send_roaming_forbidden_event()
/linux-6.6.21/net/netfilter/ipset/
Dip_set_hash_netportnet.c119 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netportnet4_data_list()
120 nla_put_u8(skb, IPSET_ATTR_CIDR2, data->cidr[1]) || in hash_netportnet4_data_list()
121 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || in hash_netportnet4_data_list()
411 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netportnet6_data_list()
412 nla_put_u8(skb, IPSET_ATTR_CIDR2, data->cidr[1]) || in hash_netportnet6_data_list()
413 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || in hash_netportnet6_data_list()
/linux-6.6.21/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 …]
/linux-6.6.21/net/sched/
Dact_tunnel_key.c587 nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE, in tunnel_key_geneve_opts_dump()
632 if (nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_VER, md->version)) in tunnel_key_erspan_opts_dump()
640 (nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_DIR, in tunnel_key_erspan_opts_dump()
642 nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_HWID, in tunnel_key_erspan_opts_dump()
751 nla_put_u8(skb, TCA_TUNNEL_KEY_NO_CSUM, in tunnel_key_dump()
758 if (key->tos && nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_TOS, key->tos)) in tunnel_key_dump()
761 if (key->ttl && nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_TTL, key->ttl)) in tunnel_key_dump()
/linux-6.6.21/drivers/infiniband/core/
Dnldev.c167 nla_put_u8(msg, RDMA_NLDEV_ATTR_DRIVER_PRINT_TYPE, print_type)) in put_driver_name_print_type()
282 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_DEV_NODE_TYPE, device->node_type)) in fill_dev_info()
284 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_DEV_DIM, device->use_cq_dim)) in fill_dev_info()
341 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_LMC, attr.lmc)) in fill_port_info()
344 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_PORT_STATE, attr.state)) in fill_port_info()
346 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_PORT_PHYS_STATE, attr.phys_state)) in fill_port_info()
488 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_PATH_MIG_STATE, in fill_res_qp_entry_query()
492 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, qp->qp_type)) in fill_res_qp_entry_query()
494 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_STATE, qp_attr.qp_state)) in fill_res_qp_entry_query()
564 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, cm_id->qp_type)) in fill_res_cm_id_entry()
[all …]
/linux-6.6.21/net/ipv4/
Dipip.c518 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) || in ipip_fill_info()
519 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) || in ipip_fill_info()
520 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) || in ipip_fill_info()
521 nla_put_u8(skb, IFLA_IPTUN_PMTUDISC, in ipip_fill_info()

123456