Home
last modified time | relevance | path

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

12345678910>>...194

/openbmc/linux/drivers/infiniband/hw/hfi1/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A 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 …]
H A Dkfd_packet_manager_v9.c35 struct pm4_mes_map_process *packet; in pm_map_process_v9() local
41 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_v9()
43 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_v9()
45 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v9()
46 packet->bitfields2.process_quantum = 10; in pm_map_process_v9()
47 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_v9()
48 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; in pm_map_process_v9()
49 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; in pm_map_process_v9()
50 packet->bitfields14.num_gws = (qpd->mapped_gws_queue) ? qpd->num_gws : 0; in pm_map_process_v9()
51 packet->bitfields14.num_oac = qpd->num_oac; in pm_map_process_v9()
[all …]
/openbmc/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-pkt-decoder.c35 [INTEL_PT_BAD] = "Bad Packet!",
78 struct intel_pt_pkt *packet) in intel_pt_get_long_tnt() argument
94 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt()
95 packet->count = count; in intel_pt_get_long_tnt()
96 packet->payload = payload << 1; in intel_pt_get_long_tnt()
101 struct intel_pt_pkt *packet) in intel_pt_get_pip() argument
108 packet->type = INTEL_PT_PIP; in intel_pt_get_pip()
110 packet->payload = payload; in intel_pt_get_pip()
115 static int intel_pt_get_tracestop(struct intel_pt_pkt *packet) in intel_pt_get_tracestop() argument
117 packet->type = INTEL_PT_TRACESTOP; in intel_pt_get_tracestop()
[all …]
/openbmc/linux/include/net/caif/
H A 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 destoyed.
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 …]
/openbmc/linux/drivers/platform/surface/aggregator/
H A 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 …]
/openbmc/linux/net/sctp/
H A 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 …]
/openbmc/qemu/hw/net/
H A Dnet_rx_pkt.h23 /* defines to enable packet dump functions */
29 * Clean all rx packet resources
31 * @pkt: packet
37 * Init function for rx packet functionality
39 * @pkt: packet pointer
47 * @pkt: packet
55 * parse and set packet analysis results
57 * @pkt: packet
68 * fetches packet analysis results
70 * @pkt: packet
[all …]
H A Dnet_tx_pkt.h24 /* define to enable packet dump functions */
33 * Init function for tx packet functionality
35 * @pkt: packet pointer
41 * Clean all tx packet resources.
43 * @pkt: packet.
50 * @pkt: packet
58 * @pkt: packet
72 * @pkt: packet
83 * @pkt: packet
96 * @pkt: packet
[all …]
/openbmc/u-boot/net/
H A Dfastboot.c30 /* Sequence number sent for every packet */
35 /* Keep track of last packet for resubmission */
49 * fastboot_udp_send_info() - Send an INFO packet during long commands.
55 uchar *packet; in fastboot_udp_send_info() local
66 packet = net_tx_packet + net_eth_hdr_size() + IP_UDP_HDR_SIZE; in fastboot_udp_send_info()
67 packet_base = packet; in fastboot_udp_send_info()
70 memcpy(packet, &response_header, sizeof(response_header)); in fastboot_udp_send_info()
71 packet += sizeof(response_header); in fastboot_udp_send_info()
74 memcpy(packet, response, strlen(response)); in fastboot_udp_send_info()
75 packet += strlen(response); in fastboot_udp_send_info()
[all …]
/openbmc/linux/tools/perf/util/arm-spe-decoder/
H A Darm-spe-pkt-decoder.c62 struct arm_spe_pkt *packet) in arm_spe_get_payload() argument
72 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload()
73 case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break; in arm_spe_get_payload()
74 case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break; in arm_spe_get_payload()
75 case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break; in arm_spe_get_payload()
82 static int arm_spe_get_pad(struct arm_spe_pkt *packet) in arm_spe_get_pad() argument
84 packet->type = ARM_SPE_PAD; in arm_spe_get_pad()
89 struct arm_spe_pkt *packet) in arm_spe_get_alignment() argument
96 packet->type = ARM_SPE_PAD; in arm_spe_get_alignment()
100 static int arm_spe_get_end(struct arm_spe_pkt *packet) in arm_spe_get_end() argument
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath6kl/
H A 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 …]
H A 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()
368 put_unaligned((u16)packet->act_len, &hdr->payld_len); in ath6kl_htc_tx_prep_pkt()
370 hdr->eid = packet->endpoint; in ath6kl_htc_tx_prep_pkt()
386 struct htc_packet *packet = NULL; in htc_get_control_buf() local
398 packet = list_first_entry(buf_list, struct htc_packet, list); in htc_get_control_buf()
399 list_del(&packet->list); in htc_get_control_buf()
403 packet->buf = packet->buf_start + HTC_HDR_LENGTH; in htc_get_control_buf()
405 return packet; in htc_get_control_buf()
[all …]
/openbmc/qemu/net/
H A Dqueue.c37 * the packet.
39 * If a sent callback isn't provided, we just drop the packet to avoid
83 NetPacket *packet, *next; in qemu_del_net_queue() local
85 QTAILQ_FOREACH_SAFE(packet, &queue->packets, entry, next) { in qemu_del_net_queue()
86 QTAILQ_REMOVE(&queue->packets, packet, entry); in qemu_del_net_queue()
87 g_free(packet); in qemu_del_net_queue()
100 NetPacket *packet; in qemu_net_queue_append() local
105 packet = g_malloc(sizeof(NetPacket) + size); in qemu_net_queue_append()
106 packet->sender = sender; in qemu_net_queue_append()
107 packet->flags = flags; in qemu_net_queue_append()
[all …]
/openbmc/phosphor-net-ipmid/
H A Dmessage_parsers.hpp75 * @brief Unflatten an incoming packet and prepare the IPMI message
77 * @param[in] inPacket - Incoming IPMI packet
80 * response packet. In case of success incoming message and session
88 * @brief Flatten an IPMI message and generate the IPMI packet with the
93 * packet
95 * @return IPMI packet on success
121 * @brief Unflatten an incoming packet and prepare the IPMI message
123 * @param[in] inPacket - Incoming IPMI packet
125 * @return IPMI message in the packet on success
130 * @brief Flatten an IPMI message and generate the IPMI packet with the
[all …]
H A Dmessage_parsers.cpp19 // Check if the packet has atleast the size of the RMCP Header in unflatten()
122 // the packet length in the header in unflatten()
140 std::vector<uint8_t> packet(sizeof(SessionHeader_t)); in flatten() local
142 // Insert Session Header into the Packet in flatten()
143 auto header = reinterpret_cast<SessionHeader_t*>(packet.data()); in flatten()
155 // Insert the Payload into the Packet in flatten()
156 packet.insert(packet.end(), outMessage->payload.begin(), in flatten()
160 packet.resize(packet.size() + sizeof(SessionTrailer_t)); in flatten()
162 reinterpret_cast<SessionTrailer_t*>(packet.data() + packet.size()); in flatten()
165 return packet; in flatten()
[all …]
H A Dintegrity_algo.hpp38 * Unless otherwise specified, the integrity algorithm is applied to the packet
60 * @brief Verify the integrity data of the packet
62 * @param[in] packet - Incoming IPMI packet
63 * @param[in] packetLen - Packet length excluding authCode
65 * packet
66 * @param[in] integrityDataEnd - End to the authCode in the packet
68 * @return true if authcode in the packet is equal to one generated
69 * using integrity algorithm on the packet data, false otherwise
72 const std::vector<uint8_t>& packet, const size_t packetLen,
77 * @brief Generate integrity data for the outgoing IPMI packet
[all …]
/openbmc/linux/include/uapi/linux/
H A 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
159 * @BATADV_CLAIM_TYPE_LOOPDETECT: mesh-traversing loop detect packet
198 * struct batadv_ogm_packet - ogm (routing protocol) packet
[all …]
/openbmc/linux/drivers/tty/ipwireless/
H A 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 …]
/openbmc/u-boot/include/
H A Dfsl_memac.h23 u32 tx_ipg_length; /* Transmitter inter-packet-gap register */
65 u32 rx_undsz_l; /* Rx undersized packet lower */
66 u32 rx_undsz_u; /* Rx undersized packet upper */
67 u32 rx_64_l; /* Rx 64 oct packet lower */
68 u32 rx_64_u; /* Rx 64 oct packet upper */
69 u32 rx_127_l; /* Rx 65 to 127 oct packet lower */
70 u32 rx_127_u; /* Rx 65 to 127 oct packet upper */
71 u32 rx_255_l; /* Rx 128 to 255 oct packet lower */
72 u32 rx_255_u; /* Rx 128 to 255 oct packet upper */
73 u32 rx_511_l; /* Rx 256 to 511 oct packet lower */
[all …]
/openbmc/linux/Documentation/driver-api/surface_aggregator/
H A 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 …]
/openbmc/qemu/hw/usb/
H A Dpcap.c2 * usb packet capture
32 uint32_t incl_len; /* number of octets of packet saved in file */
33 uint32_t orig_len; /* actual length of packet */
103 static void do_usb_pcap_header(FILE *fp, struct usbmon_packet *packet) in do_usb_pcap_header() argument
109 packet->ts_sec = tv.tv_sec; in do_usb_pcap_header()
110 packet->ts_usec = tv.tv_usec; in do_usb_pcap_header()
112 header.ts_sec = packet->ts_sec; in do_usb_pcap_header()
113 header.ts_usec = packet->ts_usec; in do_usb_pcap_header()
114 header.incl_len = packet->len_cap; in do_usb_pcap_header()
115 header.orig_len = packet->length + sizeof(*packet); in do_usb_pcap_header()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A 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 …]
/openbmc/linux/Documentation/networking/devlink/
H A 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 …]
/openbmc/linux/drivers/tty/hvc/
H A 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 …]

12345678910>>...194