Home
last modified time | relevance | path

Searched refs:pkt_type (Results 1 – 25 of 251) sorted by relevance

1234567891011

/linux-6.15/drivers/input/keyboard/
H A Dapplespi_trace.h22 enum applespi_pkt_type pkt_type,
26 TP_ARGS(evt_type, pkt_type, buf, len),
30 __field(enum applespi_pkt_type, pkt_type)
37 __entry->pkt_type = pkt_type;
43 __print_symbolic(__entry->pkt_type,
54 enum applespi_pkt_type pkt_type, \
57 TP_ARGS(evt_type, pkt_type, buf, len) \
70 enum applespi_pkt_type pkt_type),
72 TP_ARGS(evt_type, pkt_type),
76 __field(enum applespi_pkt_type, pkt_type)
[all …]
/linux-6.15/net/mac802154/
H A Drx.c161 skb->pkt_type = PACKET_HOST; in ieee802154_subif_frame()
164 skb->pkt_type = PACKET_HOST; in ieee802154_subif_frame()
167 skb->pkt_type = PACKET_OTHERHOST; in ieee802154_subif_frame()
172 skb->pkt_type = PACKET_OTHERHOST; in ieee802154_subif_frame()
174 skb->pkt_type = PACKET_HOST; in ieee802154_subif_frame()
176 skb->pkt_type = PACKET_OTHERHOST; in ieee802154_subif_frame()
181 skb->pkt_type = PACKET_OTHERHOST; in ieee802154_subif_frame()
183 skb->pkt_type = PACKET_HOST; in ieee802154_subif_frame()
186 skb->pkt_type = PACKET_BROADCAST; in ieee802154_subif_frame()
188 skb->pkt_type = PACKET_OTHERHOST; in ieee802154_subif_frame()
[all …]
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dkfree_skb.c70 char pkt_type; in BPF_PROG() local
88 bpf_probe_read_kernel(&pkt_type, sizeof(pkt_type), _(&skb->__pkt_type_offset)); in BPF_PROG()
89 pkt_type &= 7; in BPF_PROG()
96 _(skb->len), users, pkt_type); in BPF_PROG()
H A Dtest_tc_link.c43 seen_host = skb->pkt_type == PACKET_HOST; in tc1()
101 seen_mcast = skb->pkt_type == PACKET_MULTICAST; in tc7()
/linux-6.15/net/bridge/netfilter/
H A Debt_dnat.c31 skb->pkt_type = PACKET_BROADCAST; in ebt_dnat_tg()
33 skb->pkt_type = PACKET_MULTICAST; in ebt_dnat_tg()
53 skb->pkt_type = PACKET_HOST; in ebt_dnat_tg()
55 skb->pkt_type = PACKET_OTHERHOST; in ebt_dnat_tg()
H A Debt_pkttype.c21 return (skb->pkt_type == info->pkt_type) ^ info->invert; in ebt_pkttype_mt()
H A Debtable_broute.c78 if (skb->pkt_type == PACKET_HOST && in ebt_broute()
81 skb->pkt_type = PACKET_OTHERHOST; in ebt_broute()
/linux-6.15/drivers/media/platform/qcom/venus/
H A Dhfi_cmds.c17 pkt->hdr.pkt_type = HFI_CMD_SYS_INIT; in pkt_sys_init()
24 pkt->hdr.pkt_type = HFI_CMD_SYS_PC_PREP; in pkt_sys_pc_prep()
32 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_idle_indicator()
44 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_debug_config()
55 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_coverage_config()
64 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_ubwc_config()
74 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_RESOURCE; in pkt_sys_set_resource()
121 pkt->hdr.pkt_type = HFI_CMD_SYS_PING; in pkt_sys_ping()
130 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_power_control()
148 pkt->hdr.pkt_type = HFI_CMD_SYS_TEST_SSR; in pkt_sys_ssr_cmd()
[all …]
/linux-6.15/drivers/media/platform/qcom/iris/
H A Diris_hfi_gen2_packet.c100 static void iris_hfi_gen2_create_packet(struct iris_hfi_header *hdr, u32 pkt_type, in iris_hfi_gen2_create_packet() argument
109 pkt->type = pkt_type; in iris_hfi_gen2_create_packet()
225 void iris_hfi_gen2_packet_session_command(struct iris_inst *inst, u32 pkt_type, in iris_hfi_gen2_packet_session_command() argument
236 pkt_type, in iris_hfi_gen2_packet_session_command()
246 u32 pkt_type, u32 flags, u32 port, in iris_hfi_gen2_packet_session_property() argument
255 pkt_type, in iris_hfi_gen2_packet_session_property()
H A Diris_hfi_gen1_command.c34 sys_init_pkt.hdr.pkt_type = HFI_CMD_SYS_INIT; in iris_hfi_gen1_sys_init()
45 packet.hdr.pkt_type = HFI_CMD_SYS_GET_PROPERTY; in iris_hfi_gen1_sys_image_version()
67 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in iris_hfi_gen1_sys_interframe_powercollapse()
83 pkt.hdr.pkt_type = HFI_CMD_SYS_PC_PREP; in iris_hfi_gen1_sys_pc_prep()
97 packet.shdr.hdr.pkt_type = HFI_CMD_SYS_SESSION_INIT; in iris_hfi_gen1_session_open()
116 packet->shdr.hdr.pkt_type = ptype; in iris_hfi_gen1_packet_session_cmd()
206 flush_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_FLUSH; in iris_hfi_gen1_session_stop()
232 ip_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER; in iris_hfi_gen1_queue_input_buffer()
253 op_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_FILL_BUFFER; in iris_hfi_gen1_queue_output_buffer()
283 int_pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_BUFFERS; in iris_hfi_gen1_queue_internal_buffer()
[all …]
H A Diris_hfi_gen1_response.c207 flush_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_FLUSH; in iris_hfi_gen1_event_seq_changed()
408 flush_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_FLUSH; in iris_hfi_gen1_session_ftb_done()
568 if (pkt_info->pkt != hdr->pkt_type) in iris_hfi_gen1_handle_response()
576 hdr->size, pkt_info->pkt_sz, hdr->pkt_type, found); in iris_hfi_gen1_handle_response()
581 switch (hdr->pkt_type) { in iris_hfi_gen1_handle_response()
611 if (hdr->pkt_type == HFI_MSG_SESSION_EMPTY_BUFFER) { in iris_hfi_gen1_handle_response()
613 } else if (hdr->pkt_type == HFI_MSG_SESSION_FILL_BUFFER) { in iris_hfi_gen1_handle_response()
639 if (pkt->hdr.pkt_type != HFI_MSG_SYS_COV) { in iris_hfi_gen1_flush_debug_queue()
H A Diris_hfi_gen2_packet.h114 void iris_hfi_gen2_packet_session_command(struct iris_inst *inst, u32 pkt_type,
119 u32 pkt_type, u32 flags, u32 port,
/linux-6.15/drivers/net/wireless/marvell/mwifiex/
H A Dsta_tx.c39 u16 pkt_type, pkt_length, pkt_offset; in mwifiex_process_sta_txpd() local
42 pkt_type = mwifiex_is_skb_mgmt_frame(skb) ? PKT_TYPE_MGMT : 0; in mwifiex_process_sta_txpd()
53 if (pkt_type == PKT_TYPE_MGMT) in mwifiex_process_sta_txpd()
90 if (pkt_type == PKT_TYPE_MGMT) { in mwifiex_process_sta_txpd()
92 local_tx_pd->tx_pkt_type = cpu_to_le16(pkt_type); in mwifiex_process_sta_txpd()
H A Duap_txrx.c381 u8 ta[ETH_ALEN], pkt_type; in mwifiex_process_uap_rx_packet() local
442 pkt_type = (u8)le16_to_cpu(uap_rx_pd->rx_pkt_type); in mwifiex_process_uap_rx_packet()
444 uap_rx_pd->priority, ta, pkt_type, in mwifiex_process_uap_rx_packet()
480 u16 pkt_type, pkt_offset; in mwifiex_process_uap_txpd() local
483 pkt_type = mwifiex_is_skb_mgmt_frame(skb) ? PKT_TYPE_MGMT : 0; in mwifiex_process_uap_txpd()
516 if (pkt_type == PKT_TYPE_MGMT) { in mwifiex_process_uap_txpd()
518 txpd->tx_pkt_type = cpu_to_le16(pkt_type); in mwifiex_process_uap_txpd()
/linux-6.15/net/bluetooth/
H A Dcoredump.c21 u16 pkt_type; member
34 hci_dmp_cb(skb)->pkt_type, hdev->dump.state)
349 switch (hci_dmp_cb(skb)->pkt_type) { in hci_devcd_rx()
372 hci_dmp_cb(skb)->pkt_type, hdev->dump.state); in hci_devcd_rx()
461 hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_INIT; in hci_devcd_init()
481 hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_SKB; in hci_devcd_append()
505 hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_PATTERN; in hci_devcd_append_pattern()
526 hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_COMPLETE; in hci_devcd_complete()
546 hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_ABORT; in hci_devcd_abort()
H A Dhci_conn.c42 u16 pkt_type; member
215 cp.pkt_type = cpu_to_le16(conn->pkt_type); in hci_add_sco()
399 cp.pkt_type = __cpu_to_le16(param->pkt_type); in hci_enhanced_setup_sync()
451 cp.pkt_type = __cpu_to_le16(param->pkt_type); in hci_setup_sync_conn()
969 conn->pkt_type = hdev->pkt_type & ACL_PTYPE_MASK; in __hci_conn_add()
995 conn->pkt_type = hdev->pkt_type & SCO_PTYPE_MASK; in __hci_conn_add()
2781 if (!(conn->pkt_type & HCI_2DH1)) in hci_conn_get_phy()
2784 if (!(conn->pkt_type & HCI_2DH3)) in hci_conn_get_phy()
2787 if (!(conn->pkt_type & HCI_2DH5)) in hci_conn_get_phy()
2793 if (!(conn->pkt_type & HCI_3DH1)) in hci_conn_get_phy()
[all …]
/linux-6.15/net/bridge/
H A Dbr_input.c80 enum br_pkt_type pkt_type = BR_PKT_UNICAST; in br_handle_frame_finish() local
152 pkt_type = BR_PKT_BROADCAST; in br_handle_frame_finish()
155 pkt_type = BR_PKT_MULTICAST; in br_handle_frame_finish()
186 switch (pkt_type) { in br_handle_frame_finish()
220 br_flood(br, skb, pkt_type, local_rcv, false, vid); in br_handle_frame_finish()
337 if (unlikely(skb->pkt_type == PACKET_LOOPBACK)) in br_handle_frame()
431 skb->pkt_type = PACKET_HOST; in br_handle_frame()
H A Dbr_netfilter_hooks.c388 skb->pkt_type = PACKET_OTHERHOST; in br_nf_pre_routing_finish()
410 skb->pkt_type = PACKET_HOST; in br_nf_pre_routing_finish()
453 if (skb->pkt_type == PACKET_OTHERHOST) { in setup_pre_routing()
454 skb->pkt_type = PACKET_HOST; in setup_pre_routing()
595 if (!nfct || skb->pkt_type == PACKET_HOST) in br_nf_local_in()
656 skb->pkt_type = PACKET_OTHERHOST; in br_nf_forward_finish()
697 if (skb->pkt_type == PACKET_OTHERHOST) { in br_nf_forward_ip()
698 skb->pkt_type = PACKET_HOST; in br_nf_forward_ip()
843 skb->pkt_type = PACKET_OTHERHOST; in br_nf_dev_queue_xmit()
958 if (skb->pkt_type == PACKET_OTHERHOST) { in br_nf_post_routing()
[all …]
/linux-6.15/drivers/net/can/dev/
H A Dskb.c127 if (skb->pkt_type == PACKET_LOOPBACK) { in __can_get_echo_skb()
128 skb->pkt_type = PACKET_BROADCAST; in __can_get_echo_skb()
197 skb->pkt_type = PACKET_BROADCAST; in init_can_skb_reserve()
321 skb->pkt_type = PACKET_LOOPBACK; in can_skb_headroom_valid()
323 skb->pkt_type = PACKET_HOST; in can_skb_headroom_valid()
/linux-6.15/net/802/
H A Dfddi.c122 skb->pkt_type = PACKET_BROADCAST; in fddi_type_trans()
124 skb->pkt_type = PACKET_MULTICAST; in fddi_type_trans()
130 skb->pkt_type = PACKET_OTHERHOST; in fddi_type_trans()
/linux-6.15/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c842 static const char *pkt_type_str(u16 pkt_type) in pkt_type_str() argument
844 if (pkt_type < ARRAY_SIZE(pkt_types)) in pkt_type_str()
845 return pkt_types[pkt_type]; in pkt_type_str()
853 u16 proto, bool ipv6, u8 pkt_type) in show_transport() argument
879 ifname, pkt_type_str(pkt_type), src_addr, dst_addr, len, in show_transport()
884 ifname, pkt_type_str(pkt_type), src_addr, dst_addr, len, in show_transport()
889 ifname, pkt_type_str(pkt_type), ipv6 ? "IPv6" : "IPv4", in show_transport()
905 ifname, pkt_type_str(pkt_type), src_addr, src_port, in show_transport()
909 ifname, pkt_type_str(pkt_type), src_addr, src_port, in show_transport()
929 ifindex, src, dst, proto, true, pkt_type); in show_ipv6_packet()
[all …]
/linux-6.15/net/netfilter/
H A Dxt_pkttype.c28 if (skb->pkt_type != PACKET_LOOPBACK) in pkttype_mt()
29 type = skb->pkt_type; in pkttype_mt()
/linux-6.15/drivers/infiniband/sw/rxe/
H A Drxe_recv.c16 unsigned int pkt_type; in check_type_state() local
22 pkt_type = pkt->opcode & 0xe0; in check_type_state()
26 if (unlikely(pkt_type != IB_OPCODE_RC)) in check_type_state()
30 if (unlikely(pkt_type != IB_OPCODE_UC)) in check_type_state()
35 if (unlikely(pkt_type != IB_OPCODE_UD)) in check_type_state()
/linux-6.15/drivers/net/ipvlan/
H A Dipvlan_core.c238 u8 pkt_type; in ipvlan_process_multicast() local
256 pkt_type = PACKET_BROADCAST; in ipvlan_process_multicast()
258 pkt_type = PACKET_MULTICAST; in ipvlan_process_multicast()
274 nskb->pkt_type = pkt_type; in ipvlan_process_multicast()
289 skb->pkt_type = pkt_type; in ipvlan_process_multicast()
342 skb->pkt_type = PACKET_HOST; in ipvlan_rcv_frame()
/linux-6.15/drivers/bluetooth/
H A Dvirtio_bt.c200 __u8 pkt_type; in virtbt_rx_handle() local
202 pkt_type = *((__u8 *) skb->data); in virtbt_rx_handle()
205 switch (pkt_type) { in virtbt_rx_handle()
210 hci_skb_pkt_type(skb) = pkt_type; in virtbt_rx_handle()

1234567891011