/linux-6.12.1/security/selinux/ |
D | netlink.c | 24 static int selnl_msglen(int msgtype) in selnl_msglen() argument 28 switch (msgtype) { in selnl_msglen() 43 static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data) in selnl_add_payload() argument 45 switch (msgtype) { in selnl_add_payload() 67 static void selnl_notify(int msgtype, void *data) in selnl_notify() argument 74 len = selnl_msglen(msgtype); in selnl_notify() 81 nlh = nlmsg_put(skb, 0, 0, msgtype, len, 0); in selnl_notify() 84 selnl_add_payload(nlh, len, msgtype, data); in selnl_notify()
|
/linux-6.12.1/include/net/ |
D | rtnetlink.h | 27 static inline enum rtnl_kinds rtnl_msgtype_kind(int msgtype) in rtnl_msgtype_kind() argument 29 return msgtype & RTNL_KIND_MASK; in rtnl_msgtype_kind() 35 int msgtype; member 41 void rtnl_register(int protocol, int msgtype, 43 int rtnl_register_module(struct module *owner, int protocol, int msgtype, 45 int rtnl_unregister(int protocol, int msgtype);
|
/linux-6.12.1/include/linux/ |
D | ptp_classify.h | 124 u8 msgtype; in ptp_get_msgtype() local 128 msgtype = hdr->control; in ptp_get_msgtype() 130 msgtype = hdr->tsmt & 0x0f; in ptp_get_msgtype() 133 return msgtype; in ptp_get_msgtype()
|
/linux-6.12.1/include/uapi/scsi/ |
D | scsi_netlink.h | 32 __u16 msgtype; member 104 (hdr)->msgtype = mtype; \
|
/linux-6.12.1/drivers/net/phy/ |
D | bcm-phy-ptp.c | 147 u8 msgtype; member 154 u8 msgtype; member 444 capts->msgtype = reg >> 12; in bcm_ptp_get_tstamp() 471 BCM_SKB_CB(skb)->msgtype == capts->msgtype) { in bcm_ptp_match_tstamp() 751 int msgtype; in bcm_ptp_txtstamp() local 756 msgtype = ptp_get_msgtype(hdr, type); in bcm_ptp_txtstamp() 760 if (msgtype == PTP_MSGTYPE_PDELAY_RESP) in bcm_ptp_txtstamp() 764 if (msgtype == PTP_MSGTYPE_SYNC) in bcm_ptp_txtstamp() 770 BCM_SKB_CB(skb)->msgtype = msgtype; in bcm_ptp_txtstamp()
|
D | dp83640.c | 84 u16 msgtype; /* messageType[3:0], hash[11:0] */ member 99 u8 msgtype; member 283 rxts->msgtype = (p->msgtype >> 12) & 0xf; in phy2rxts() 284 rxts->hash = p->msgtype & 0x0fff; in phy2rxts() 808 u8 msgtype; in match() local 818 msgtype = ptp_get_msgtype(hdr, type); in match() 820 if (rxts->msgtype != (msgtype & 0xf)) in match()
|
/linux-6.12.1/drivers/hv/ |
D | channel_mgmt.c | 434 msg.header.msgtype = CHANNELMSG_RELID_RELEASED; in vmbus_release_relid() 867 if (hdr->msgtype == CHANNELMSG_UNLOAD_RESPONSE) in vmbus_wait_for_unload() 933 hdr.msgtype = CHANNELMSG_UNLOAD; in vmbus_initiate_unload() 1337 if (requestheader->msgtype == CHANNELMSG_OPENCHANNEL) { in vmbus_onopen_result() 1384 if (requestheader->msgtype == CHANNELMSG_GPADL_HEADER) { in vmbus_ongpadl_created() 1428 if (responseheader->msgtype == CHANNELMSG_MODIFYCHANNEL) { in vmbus_onmodifychannel_response() 1473 if (requestheader->msgtype == CHANNELMSG_GPADL_TEARDOWN) { in vmbus_ongpadl_torndown() 1516 if (requestheader->msgtype == in vmbus_onversion_response() 1577 channel_message_table[hdr->msgtype].message_handler(hdr); in vmbus_onmessage() 1597 msg->msgtype = CHANNELMSG_REQUESTOFFERS; in vmbus_request_offers()
|
D | channel.c | 203 conn_msg.header.msgtype = CHANNELMSG_TL_CONNECT_REQUEST; in vmbus_send_tl_connect_request() 221 msg.header.msgtype = CHANNELMSG_MODIFYCHANNEL; in send_modifychannel_without_ack() 248 msg->header.msgtype = CHANNELMSG_MODIFYCHANNEL; in send_modifychannel_with_ack() 466 gpadlmsg->header.msgtype = CHANNELMSG_GPADL_HEADER; in __vmbus_establish_gpadl() 495 gpadl_body->header.msgtype = in __vmbus_establish_gpadl() 701 open_msg->header.msgtype = CHANNELMSG_OPENCHANNEL; in __vmbus_open() 826 msg->header.msgtype = CHANNELMSG_GPADL_TEARDOWN; in vmbus_teardown_gpadl() 929 msg->header.msgtype = CHANNELMSG_CLOSECHANNEL; in vmbus_close_internal()
|
D | hv_trace.h | 14 TP_STRUCT__entry(__field(unsigned int, msgtype)), 15 TP_fast_assign(__entry->msgtype = hdr->msgtype;), 16 TP_printk("msgtype=%u", __entry->msgtype)
|
D | connection.c | 85 msg->header.msgtype = CHANNELMSG_INITIATE_CONTACT; in vmbus_negotiate_version() 456 if (hdr->msgtype == CHANNELMSG_INITIATE_CONTACT) in vmbus_post_msg()
|
D | vmbus_drv.c | 1025 enum vmbus_channel_message_type msgtype; in vmbus_on_msg_dpc() local 1052 msgtype = hdr->msgtype; in vmbus_on_msg_dpc() 1056 if (msgtype >= CHANNELMSG_COUNT) { in vmbus_on_msg_dpc() 1057 WARN_ONCE(1, "unknown msgtype=%d\n", msgtype); in vmbus_on_msg_dpc() 1067 entry = &channel_message_table[msgtype]; in vmbus_on_msg_dpc() 1073 WARN_ONCE(1, "message too short: msgtype=%d len=%d\n", msgtype, payload_size); in vmbus_on_msg_dpc() 1093 switch (msgtype) { in vmbus_on_msg_dpc() 1184 rescind->header.msgtype = CHANNELMSG_RESCIND_CHANNELOFFER; in vmbus_force_channel_rescinded()
|
/linux-6.12.1/drivers/scsi/ |
D | scsi_netlink.c | 82 switch (hdr->msgtype) { in scsi_nl_rcv_msg() 93 __func__, hdr->msgtype, err); in scsi_nl_rcv_msg()
|
D | nsp32.c | 1933 unsigned char msgtype; in nsp32_msgin_occur() local 1947 msgtype = data->msginbuf[0]; in nsp32_msgin_occur() 1950 data->msgin_len, msg, msgtype); in nsp32_msgin_occur() 1964 if (msgtype & 0x80) { in nsp32_msgin_occur() 1970 newlun = msgtype & 0x1f; /* TODO: SPI-3 compliant? */ in nsp32_msgin_occur() 1984 switch (msgtype) { in nsp32_msgin_occur() 2060 "unsupported message: 0x%x", msgtype); in nsp32_msgin_occur() 2213 msg, data->msgin_len, msgtype); in nsp32_msgin_occur()
|
/linux-6.12.1/drivers/ptp/ |
D | ptp_ines.c | 434 u8 msgtype; in ines_match() local 444 msgtype = ptp_get_msgtype(hdr, ptp_class); in ines_match() 449 if (tag_to_msgtype(ts->tag & 0x7) != msgtype) { in ines_match() 451 tag_to_msgtype(ts->tag & 0x7), msgtype); in ines_match() 663 u8 msgtype; in is_sync_pdelay_resp() local 669 msgtype = ptp_get_msgtype(hdr, type); in is_sync_pdelay_resp() 671 switch (msgtype) { in is_sync_pdelay_resp()
|
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | msgbuf.c | 77 u8 msgtype; member 453 request->msg.msgtype = MSGBUF_TYPE_IOCTLPTR_REQ; in brcmf_msgbuf_tx_ioctl() 622 create->msg.msgtype = MSGBUF_TYPE_FLOW_RING_CREATE; in brcmf_msgbuf_flowring_create_worker() 744 tx_msghdr->msg.msgtype = MSGBUF_TYPE_TX_POST; in brcmf_msgbuf_txflow() 961 rx_bufpost->msg.msgtype = MSGBUF_TYPE_RXBUF_POST; in brcmf_msgbuf_rxbuf_data_post() 1058 rx_bufpost->msg.msgtype = MSGBUF_TYPE_EVENT_BUF_POST; in brcmf_msgbuf_rxbuf_ctrl_post() 1060 rx_bufpost->msg.msgtype = in brcmf_msgbuf_rxbuf_ctrl_post() 1294 switch (msg->msgtype) { in brcmf_msgbuf_process_msgtype() 1331 bphy_err(drvr, "Unsupported msgtype %d\n", msg->msgtype); in brcmf_msgbuf_process_msgtype() 1449 delete->msg.msgtype = MSGBUF_TYPE_FLOW_RING_DELETE; in brcmf_msgbuf_delete_flowring()
|
/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_ptp.c | 152 u8 msgtype; in sparx5_ptp_classify() local 194 msgtype = ptp_get_msgtype(header, type); in sparx5_ptp_classify() 195 if ((msgtype & 0xf) == 0) { in sparx5_ptp_classify()
|
/linux-6.12.1/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 642 u8 msgtype, twostep; in ocelot_ptp_is_onestep_sync() local 648 msgtype = ptp_get_msgtype(hdr, ptp_class); in ocelot_ptp_is_onestep_sync() 651 if (msgtype == PTP_MSGTYPE_SYNC && twostep == 0) in ocelot_ptp_is_onestep_sync()
|
/linux-6.12.1/drivers/net/ethernet/ti/ |
D | cpts.c | 438 u8 msgtype; in cpts_skb_get_mtype_seqid() local 448 msgtype = ptp_get_msgtype(hdr, ptp_class); in cpts_skb_get_mtype_seqid() 451 *mtype_seqid = (msgtype & MESSAGE_TYPE_MASK) << MESSAGE_TYPE_SHIFT; in cpts_skb_get_mtype_seqid()
|
D | am65-cpts.c | 878 u8 msgtype; in am65_skb_get_mtype_seqid() local 888 msgtype = ptp_get_msgtype(hdr, ptp_class); in am65_skb_get_mtype_seqid() 891 *mtype_seqid = (msgtype << AM65_CPTS_EVENT_1_MESSAGE_TYPE_SHIFT) & in am65_skb_get_mtype_seqid()
|
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_ptp.c | 328 u8 msgtype; in lan966x_ptp_classify() local 348 msgtype = ptp_get_msgtype(header, type); in lan966x_ptp_classify() 349 if ((msgtype & 0xf) == 0) in lan966x_ptp_classify()
|
/linux-6.12.1/net/core/ |
D | rtnetlink.c | 184 static inline int rtm_msgindex(int msgtype) in rtm_msgindex() argument 186 int msgindex = msgtype - RTM_BASE; in rtm_msgindex() 198 static struct rtnl_link *rtnl_get_link(int protocol, int msgtype) in rtnl_get_link() argument 209 return rcu_dereference_rtnl(tab[msgtype]); in rtnl_get_link() 213 int protocol, int msgtype, in rtnl_register_internal() argument 223 msgindex = rtm_msgindex(msgtype); in rtnl_register_internal() 257 WARN_ON(rtnl_msgtype_kind(msgtype) != RTNL_KIND_DEL && in rtnl_register_internal() 284 int protocol, int msgtype, in rtnl_register_module() argument 288 return rtnl_register_internal(owner, protocol, msgtype, in rtnl_register_module() 309 void rtnl_register(int protocol, int msgtype, in rtnl_register() argument [all …]
|
/linux-6.12.1/kernel/ |
D | audit.h | 342 extern int audit_filter(int msgtype, unsigned int listtype);
|
/linux-6.12.1/drivers/net/ethernet/freescale/enetc/ |
D | enetc.c | 113 u8 *msgtype, u8 *twostep, in enetc_ptp_parse() argument 135 *msgtype = ptp_get_msgtype(hdr, ptp_class); in enetc_ptp_parse() 153 u8 msgtype, twostep, udp; in enetc_map_tx_buffs() local 183 if (enetc_ptp_parse(skb, &udp, &msgtype, &twostep, &offset1, in enetc_map_tx_buffs() 185 msgtype != PTP_MSGTYPE_SYNC || twostep) in enetc_map_tx_buffs() 652 u8 udp, msgtype, twostep; in enetc_xmit() local 665 if (enetc_ptp_parse(skb, &udp, &msgtype, &twostep, in enetc_xmit() 667 msgtype != PTP_MSGTYPE_SYNC || twostep != 0) in enetc_xmit()
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_txrx.c | 1025 u8 *data = skb->data, *msgtype; in otx2_ptp_is_sync() local 1070 msgtype = data + *offset; in otx2_ptp_is_sync() 1072 is_sync = !(*msgtype & 0xf); in otx2_ptp_is_sync()
|
/linux-6.12.1/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth.c | 761 u8 *msgtype, u8 *twostep, u8 *udp, in dpaa2_eth_ptp_parse() argument 778 *msgtype = ptp_get_msgtype(hdr, ptp_class); in dpaa2_eth_ptp_parse() 802 u8 msgtype, twostep, udp; in dpaa2_eth_enable_tx_tstamp() local 827 if (dpaa2_eth_ptp_parse(skb, &msgtype, &twostep, &udp, in dpaa2_eth_enable_tx_tstamp() 829 msgtype != PTP_MSGTYPE_SYNC || twostep) { in dpaa2_eth_enable_tx_tstamp() 1545 u8 msgtype, twostep, udp; in dpaa2_eth_tx() local 1560 if (!dpaa2_eth_ptp_parse(skb, &msgtype, &twostep, &udp, in dpaa2_eth_tx() 1562 if (msgtype == PTP_MSGTYPE_SYNC && twostep == 0) { in dpaa2_eth_tx()
|