Home
last modified time | relevance | path

Searched full:packet (Results 1 – 25 of 4316) sorted by relevance

12345678910>>...173

/linux-6.12.1/drivers/infiniband/hw/hfi1/
Ddriver.c208 struct hfi1_packet *packet) in rcv_hdrerr() argument
210 struct ib_header *rhdr = packet->hdr; in rcv_hdrerr()
211 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr()
218 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr()
222 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr()
225 if (packet->etype == RHF_RCV_TYPE_BYPASS) { in rcv_hdrerr()
232 packet->ohdr = &rhdr->u.oth; in rcv_hdrerr()
234 packet->ohdr = &rhdr->u.l.oth; in rcv_hdrerr()
235 packet->grh = &rhdr->u.l.grh; in rcv_hdrerr()
241 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/
Dkfd_packet_manager_vi.c45 struct pm4_mes_map_process *packet; in pm_map_process_vi() local
47 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_vi()
51 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_vi()
53 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_vi()
54 packet->bitfields2.process_quantum = 10; in pm_map_process_vi()
55 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_vi()
56 packet->bitfields3.page_table_base = qpd->page_table_base; in pm_map_process_vi()
57 packet->bitfields10.gds_size = qpd->gds_size; in pm_map_process_vi()
58 packet->bitfields10.num_gws = qpd->num_gws; in pm_map_process_vi()
59 packet->bitfields10.num_oac = qpd->num_oac; in pm_map_process_vi()
[all …]
Dkfd_packet_manager_v9.c35 struct pm4_mes_map_process *packet; in pm_map_process_v9() local
42 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_v9()
44 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_v9()
47 packet->bitfields2.exec_cleaner_shader = 1; in pm_map_process_v9()
48 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v9()
49 packet->bitfields2.process_quantum = 10; in pm_map_process_v9()
50 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_v9()
51 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; in pm_map_process_v9()
52 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; in pm_map_process_v9()
53 packet->bitfields14.num_gws = (qpd->mapped_gws_queue) ? qpd->num_gws : 0; in pm_map_process_v9()
[all …]
/linux-6.12.1/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c31 [INTEL_PT_BAD] = "Bad Packet!",
74 struct intel_pt_pkt *packet) in intel_pt_get_long_tnt() argument
90 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt()
91 packet->count = count; in intel_pt_get_long_tnt()
92 packet->payload = payload << 1; in intel_pt_get_long_tnt()
97 struct intel_pt_pkt *packet) in intel_pt_get_pip() argument
104 packet->type = INTEL_PT_PIP; in intel_pt_get_pip()
106 packet->payload = payload; in intel_pt_get_pip()
111 static int intel_pt_get_tracestop(struct intel_pt_pkt *packet) in intel_pt_get_tracestop() argument
113 packet->type = INTEL_PT_TRACESTOP; in intel_pt_get_tracestop()
[all …]
/linux-6.12.1/include/net/caif/
Dcfpkt.h13 /* Create a CAIF packet.
14 * len: Length of packet to be created
15 * @return New packet.
20 * Destroy a CAIF Packet.
21 * pkt Packet to be destroyed.
26 * Extract header from packet.
28 * pkt Packet to extract header data from.
63 * Peek header from packet.
64 * Reads data from packet without changing packet.
66 * pkt Packet to extract header data from.
[all …]
/linux-6.12.1/drivers/platform/surface/aggregator/
Dssh_packet_layer.c3 * SSH packet transport layer.
51 * >> Data Structures, Packet Ownership, General Overview <<
53 * The code below employs two main data structures: The packet queue,
57 * Shared ownership of a packet is controlled via reference counting. Inside
58 * the transport system are a total of five packet owners:
60 * - the packet queue,
66 * Normal operation is as follows: The initial reference of the packet is
67 * obtained by submitting the packet and queuing it. The receiver thread takes
69 * but takes over the reference (removing it from the queue). If the packet is
71 * sets-up the timeout and adds the packet to the pending set before starting
[all …]
/linux-6.12.1/net/sctp/
Doutput.c45 static enum sctp_xmit __sctp_packet_append_chunk(struct sctp_packet *packet,
47 static enum sctp_xmit sctp_packet_can_append_data(struct sctp_packet *packet,
49 static void sctp_packet_append_data(struct sctp_packet *packet,
51 static enum sctp_xmit sctp_packet_will_fit(struct sctp_packet *packet,
55 static void sctp_packet_reset(struct sctp_packet *packet) in sctp_packet_reset() argument
60 packet->size = packet->overhead; in sctp_packet_reset()
62 packet->has_cookie_echo = 0; in sctp_packet_reset()
63 packet->has_sack = 0; in sctp_packet_reset()
64 packet->has_data = 0; in sctp_packet_reset()
65 packet->has_auth = 0; in sctp_packet_reset()
[all …]
/linux-6.12.1/drivers/net/wireless/ath/ath6kl/
Dhtc_pipe.c25 struct htc_packet *packet);
29 static inline void restore_tx_packet(struct htc_packet *packet) in restore_tx_packet() argument
31 if (packet->info.tx.flags & HTC_FLAGS_TX_FIXUP_NETBUF) { in restore_tx_packet()
32 skb_pull(packet->skb, sizeof(struct htc_frame_hdr)); in restore_tx_packet()
33 packet->info.tx.flags &= ~HTC_FLAGS_TX_FIXUP_NETBUF; in restore_tx_packet()
40 struct htc_packet *packet; in do_send_completion() local
65 packet = list_first_entry(queue_to_indicate, in do_send_completion()
68 list_del(&packet->list); in do_send_completion()
70 "%s: calling ep %d send complete callback on packet 0x%p\n", in do_send_completion()
71 __func__, ep->eid, packet); in do_send_completion()
[all …]
Dhtc_mbox.c359 static void ath6kl_htc_tx_prep_pkt(struct htc_packet *packet, u8 flags, in ath6kl_htc_tx_prep_pkt() argument
364 packet->buf -= HTC_HDR_LENGTH; in ath6kl_htc_tx_prep_pkt()
365 hdr = (struct htc_frame_hdr *)packet->buf; in ath6kl_htc_tx_prep_pkt()
367 put_unaligned_le16(packet->act_len, &hdr->payld_len); in ath6kl_htc_tx_prep_pkt()
369 hdr->eid = packet->endpoint; in ath6kl_htc_tx_prep_pkt()
385 struct htc_packet *packet = NULL; in htc_get_control_buf() local
397 packet = list_first_entry(buf_list, struct htc_packet, list); in htc_get_control_buf()
398 list_del(&packet->list); in htc_get_control_buf()
402 packet->buf = packet->buf_start + HTC_HDR_LENGTH; in htc_get_control_buf()
404 return packet; in htc_get_control_buf()
[all …]
/linux-6.12.1/tools/perf/util/arm-spe-decoder/
Darm-spe-pkt-decoder.c49 struct arm_spe_pkt *packet) in arm_spe_get_payload() argument
59 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload()
60 case 2: packet->payload = get_unaligned_le16(buf); break; in arm_spe_get_payload()
61 case 4: packet->payload = get_unaligned_le32(buf); break; in arm_spe_get_payload()
62 case 8: packet->payload = get_unaligned_le64(buf); break; in arm_spe_get_payload()
69 static int arm_spe_get_pad(struct arm_spe_pkt *packet) in arm_spe_get_pad() argument
71 packet->type = ARM_SPE_PAD; in arm_spe_get_pad()
76 struct arm_spe_pkt *packet) in arm_spe_get_alignment() argument
83 packet->type = ARM_SPE_PAD; in arm_spe_get_alignment()
87 static int arm_spe_get_end(struct arm_spe_pkt *packet) in arm_spe_get_end() argument
[all …]
/linux-6.12.1/drivers/tty/ipwireless/
Dhardware.c127 /* Number of bytes in NL packet header (cannot do
131 /* Number of bytes in NL packet header (cannot do
155 /* Network packet header of the first packet (a special case) */
157 /* Network packet header of the following packets (if any) */
159 /* Complete network packet (header + data) */
239 /* Flag if hw is ready to send next packet */
291 * Packet info structure for tx packets.
305 /* Count of packet fragments, starting at 0 */
308 /* Called after packet is sent and before is freed */
459 static void do_send_packet(struct ipw_hardware *hw, struct ipw_tx_packet *packet) in do_send_packet() argument
[all …]
/linux-6.12.1/include/uapi/linux/
Dbatadv_packet.h29 * @BATADV_MCAST: multicast packet with multiple destination addresses
33 * payload packet
34 * @BATADV_UNICAST_4ADDR: unicast packet including the originator address of
36 * @BATADV_ICMP: unicast packet like IP ICMP used for ping or traceroute
37 * @BATADV_UNICAST_TVLV: unicast packet carrying TVLV containers
59 * enum batadv_subtype - packet subtype for unicast4addr
77 * @BATADV_NOT_BEST_NEXT_HOP: flag is set when the ogm packet is forwarded and
96 * @BATADV_TP: throughput meter packet
163 * @BATADV_CLAIM_TYPE_LOOPDETECT: mesh-traversing loop detect packet
204 * struct batadv_ogm_packet - ogm (routing protocol) packet
[all …]
/linux-6.12.1/Documentation/driver-api/surface_aggregator/
Dinternal.rst63 Lower-level packet transport is implemented in the *packet transport layer
66 the packet transport logic and handles things like packet validation, packet
67 acknowledgment (ACKing), packet (retransmission) timeouts, and relaying
68 packet payloads to higher-level layers.
71 around command-type packet payloads, i.e. requests (sent from host to EC),
97 Packet Transport Layer
100 The packet transport layer is represented via |ssh_ptl| and is structured
107 managed by the packet transport layer, which is essentially the lowest layer
113 This structure contains the required fields to manage the packet inside the
118 counter reaches zero, the ``release()`` callback provided to the packet via
[all …]
/linux-6.12.1/drivers/infiniband/core/
Duser_mad.c63 MODULE_DESCRIPTION("InfiniBand userspace MAD packet access");
187 struct ib_umad_packet *packet, bool is_recv_mad) in queue_packet() argument
197 for (packet->mad.hdr.id = 0; in queue_packet()
198 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet()
199 packet->mad.hdr.id++) in queue_packet()
200 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
201 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
214 struct ib_umad_packet *packet) in dequeue_send() argument
217 list_del(&packet->list); in dequeue_send()
225 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler() local
[all …]
/linux-6.12.1/Documentation/networking/devlink/
Ddevlink-trap.rst20 packet with a TTL of 1. Upon routing the packet the device must send it to the
26 is called "packet trapping".
32 supported packet traps with ``devlink`` and report trapped packets to
36 bytes accounting and potentially report the packet to user space via a netlink
39 as it allows users to obtain further visibility into packet drops that would
44 Netlink event: Packet w/ metadata
76 | Trapped packet
89 The ``devlink-trap`` mechanism supports the following packet trap types:
112 The ``devlink-trap`` mechanism supports the following packet trap actions:
114 * ``trap``: The sole copy of the packet is sent to the CPU.
[all …]
/linux-6.12.1/drivers/tty/hvc/
Dhvsi.c68 /* inbuf is for packet reassembly. leave a little room for leftovers. */
75 atomic_t seqno; /* HVSI packet sequence number */
145 static inline int len_packet(const uint8_t *packet) in len_packet() argument
147 return (int)((struct hvsi_header *)packet)->len; in len_packet()
150 static inline int is_header(const uint8_t *packet) in is_header() argument
152 struct hvsi_header *header = (struct hvsi_header *)packet; in is_header()
156 static inline int got_packet(const struct hvsi_struct *hp, uint8_t *packet) in got_packet() argument
158 if (hp->inbuf_end < packet + sizeof(struct hvsi_header)) in got_packet()
159 return 0; /* don't even have the packet header */ in got_packet()
161 if (hp->inbuf_end < (packet + len_packet(packet))) in got_packet()
[all …]
/linux-6.12.1/drivers/net/wireless/broadcom/b43legacy/
Dpio.c43 const u8 *packet, in tx_get_next_word() argument
54 source = packet; in tx_get_next_word()
65 const u8 *packet, in tx_data() argument
72 data = tx_get_next_word(txhdr, packet, in tx_data()
80 data = tx_get_next_word(txhdr, packet, in tx_data()
85 tx_octet(queue, packet[octets - in tx_data()
104 struct b43legacy_pio_txpacket *packet) in generate_cookie() argument
111 * for the packet index (in the cache). in generate_cookie()
128 packetindex = pio_txpacket_getindex(packet); in generate_cookie()
138 struct b43legacy_pio_txpacket **packet) in parse_cookie() argument
[all …]
/linux-6.12.1/arch/mips/include/asm/octeon/
Dcvmx-wqe.h43 #include <asm/octeon/cvmx-packet.h>
58 /* Use this struct if the hardware determines that the packet is IP */
61 /* HW sets this to the number of buffers used by this packet */
77 /* the packet needs to be decompressed */
79 /* the packet is either TCP or UDP */
81 /* the packet needs to be decrypted (ESP or AH) */
83 /* the packet is IPv6 */
93 * packet creation.
106 * the IP packet (as defined by the IP header
110 * - 8 = TCP FIN Only: the packet is TCP and only the
[all …]
/linux-6.12.1/net/batman-adv/
Dsend.c46 * batadv_send_skb_packet() - send an already prepared packet
47 * @skb: the packet to send
48 * @hard_iface: the interface to use to send the broadcast packet
51 * Send out an already prepared packet to the given neighbor or broadcast it
54 * If neigh_node is NULL, then the packet is broadcasted using hard_iface,
80 pr_warn("Interface %s is not up - can't send packet via that interface!\n", in batadv_send_skb_packet()
116 * batadv_send_broadcast_skb() - Send broadcast packet via hard interface
117 * @skb: packet to be transmitted (with batadv header and no outer eth header)
131 * batadv_send_unicast_skb() - Send unicast packet to neighbor
132 * @skb: packet to be transmitted (with batadv header and no outer eth header)
[all …]
/linux-6.12.1/drivers/media/test-drivers/vivid/
Dvivid-vbi-gen.c176 static void vivid_vbi_gen_set_time_of_day(u8 *packet) in vivid_vbi_gen_set_time_of_day() argument
182 packet[0] = calc_parity(0x07); in vivid_vbi_gen_set_time_of_day()
183 packet[1] = calc_parity(0x01); in vivid_vbi_gen_set_time_of_day()
184 packet[2] = calc_parity(0x40 | tm.tm_min); in vivid_vbi_gen_set_time_of_day()
185 packet[3] = calc_parity(0x40 | tm.tm_hour); in vivid_vbi_gen_set_time_of_day()
186 packet[4] = calc_parity(0x40 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day()
189 packet[4] = calc_parity(0x60 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day()
190 packet[5] = calc_parity(0x40 | (1 + tm.tm_mon)); in vivid_vbi_gen_set_time_of_day()
191 packet[6] = calc_parity(0x40 | (1 + tm.tm_wday)); in vivid_vbi_gen_set_time_of_day()
192 packet[7] = calc_parity(0x40 | ((tm.tm_year - 90) & 0x3f)); in vivid_vbi_gen_set_time_of_day()
[all …]
/linux-6.12.1/drivers/nvmem/
Dmicrochip-otpc.c46 * struct mchp_otpc_packet - OTPC packet data structure
48 * @id: packet ID
49 * @offset: packet offset (in words) in OTP memory
60 struct mchp_otpc_packet *packet; in mchp_otpc_id_to_packet() local
65 list_for_each_entry(packet, &otpc->packets, list) { in mchp_otpc_id_to_packet()
66 if (packet->id == id) in mchp_otpc_id_to_packet()
67 return packet; in mchp_otpc_id_to_packet()
89 /* Wait for packet to be transferred into temporary buffers. */ in mchp_otpc_prepare_read()
99 * Memory offset Memory footprint Packet ID
102 * 0x0 +------------+ <-- packet 0
[all …]
/linux-6.12.1/drivers/usb/misc/sisusbvga/
Dsisusbvga.c513 struct sisusb_packet *packet) in sisusb_send_packet() argument
520 packet->data = 0; in sisusb_send_packet()
528 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_packet()
530 /* 1. send the packet */ in sisusb_send_packet()
532 (char *)packet, NULL, 0, &bytes_transferred, 0, 0); in sisusb_send_packet()
536 /* 2. if packet len == 6, it means we read, so wait for 32bit in sisusb_send_packet()
537 * return value and write it to packet->data in sisusb_send_packet()
542 packet->data = le32_to_cpu(tmp); in sisusb_send_packet()
549 struct sisusb_packet *packet, unsigned int tflags) in sisusb_send_bridge_packet() argument
556 packet->data = 0; in sisusb_send_bridge_packet()
[all …]
/linux-6.12.1/Documentation/networking/device_drivers/cellular/qualcomm/
Drmnet.rst27 2. Packet format
30 a. MAP packet v1 (data / control)
34 Packet format::
42 Command (1)/ Data (0) bit value is to indicate if the packet is a MAP command
43 or data packet. Command packet is used for transport level flow control. Data
56 b. Map packet v4 (data / control)
60 Packet format::
68 Command (1)/ Data (0) bit value is to indicate if the packet is a MAP command
69 or data packet. Command packet is used for transport level flow control. Data
85 Packet format::
[all …]
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/
Dicmps-accept.c192 } packet = {}; in icmp_interfere4() local
199 packet_len = sizeof(packet); in icmp_interfere4()
200 set_ip4hdr(&packet.iph, packet_len, IPPROTO_ICMP, src, dst); in icmp_interfere4()
202 packet.icmph.type = type; in icmp_interfere4()
203 packet.icmph.code = code; in icmp_interfere4()
205 randomize_buffer(&packet.icmph.un.frag.mtu, in icmp_interfere4()
206 sizeof(packet.icmph.un.frag.mtu)); in icmp_interfere4()
209 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp_interfere4()
210 set_ip4hdr(&packet.iphe, packet_len, IPPROTO_TCP, dst, src); in icmp_interfere4()
212 packet.tcph.sport = dst->sin_port; in icmp_interfere4()
[all …]
Dicmps-discard.c192 } packet = {}; in icmp_interfere4() local
199 packet_len = sizeof(packet); in icmp_interfere4()
200 set_ip4hdr(&packet.iph, packet_len, IPPROTO_ICMP, src, dst); in icmp_interfere4()
202 packet.icmph.type = type; in icmp_interfere4()
203 packet.icmph.code = code; in icmp_interfere4()
205 randomize_buffer(&packet.icmph.un.frag.mtu, in icmp_interfere4()
206 sizeof(packet.icmph.un.frag.mtu)); in icmp_interfere4()
209 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp_interfere4()
210 set_ip4hdr(&packet.iphe, packet_len, IPPROTO_TCP, dst, src); in icmp_interfere4()
212 packet.tcph.sport = dst->sin_port; in icmp_interfere4()
[all …]

12345678910>>...173