Home
last modified time | relevance | path

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

12345678910>>...238

/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/
H A Ddriver.c255 struct hfi1_packet *packet) in rcv_hdrerr() argument
257 struct ib_header *rhdr = packet->hdr; in rcv_hdrerr()
258 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr()
265 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr()
269 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr()
272 if (packet->etype == RHF_RCV_TYPE_BYPASS) { in rcv_hdrerr()
279 packet->ohdr = &rhdr->u.oth; in rcv_hdrerr()
281 packet->ohdr = &rhdr->u.l.oth; in rcv_hdrerr()
282 packet->grh = &rhdr->u.l.grh; in rcv_hdrerr()
288 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_packet_manager_vi.c44 struct pm4_mes_map_process *packet; in pm_map_process_vi() local
46 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_vi()
50 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_vi()
52 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_vi()
53 packet->bitfields2.process_quantum = 10; in pm_map_process_vi()
54 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_vi()
55 packet->bitfields3.page_table_base = qpd->page_table_base; in pm_map_process_vi()
56 packet->bitfields10.gds_size = qpd->gds_size; in pm_map_process_vi()
57 packet->bitfields10.num_gws = qpd->num_gws; in pm_map_process_vi()
58 packet->bitfields10.num_oac = qpd->num_oac; in pm_map_process_vi()
[all …]
H A Dkfd_packet_manager_v9.c33 struct pm4_mes_map_process *packet; in pm_map_process_v9() local
36 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_v9()
39 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_v9()
41 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v9()
42 packet->bitfields2.process_quantum = 10; in pm_map_process_v9()
43 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_v9()
44 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; in pm_map_process_v9()
45 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; in pm_map_process_v9()
46 packet->bitfields14.num_gws = (qpd->mapped_gws_queue) ? qpd->num_gws : 0; in pm_map_process_v9()
47 packet->bitfields14.num_oac = qpd->num_oac; in pm_map_process_v9()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-pkt-decoder.c37 [INTEL_PT_BAD] = "Bad Packet!",
77 struct intel_pt_pkt *packet) in intel_pt_get_long_tnt() argument
93 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt()
94 packet->count = count; in intel_pt_get_long_tnt()
95 packet->payload = payload << 1; in intel_pt_get_long_tnt()
100 struct intel_pt_pkt *packet) in intel_pt_get_pip() argument
107 packet->type = INTEL_PT_PIP; in intel_pt_get_pip()
109 packet->payload = payload >> 1; in intel_pt_get_pip()
111 packet->payload |= NR_FLAG; in intel_pt_get_pip()
116 static int intel_pt_get_tracestop(struct intel_pt_pkt *packet) in intel_pt_get_tracestop() argument
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/external/mpp/mpp/base/
H A Dmpp_packet.cpp29 #define setup_mpp_packet_name(packet) \ argument
30 ((MppPacketImpl*)packet)->name = module_name;
32 MPP_RET check_is_mpp_packet(void *packet) in check_is_mpp_packet() argument
34 if (packet && ((MppPacketImpl*)packet)->name == module_name) in check_is_mpp_packet()
37 mpp_err_f("pointer %p failed on check\n", packet); in check_is_mpp_packet()
42 MPP_RET mpp_packet_new(MppPacket *packet) in mpp_packet_new() argument
44 if (NULL == packet) { in mpp_packet_new()
50 *packet = p; in mpp_packet_new()
61 MPP_RET mpp_packet_init(MppPacket *packet, void *data, size_t size) in mpp_packet_init() argument
63 if (NULL == packet) { in mpp_packet_init()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/mpp/include/rockchip/
H A Dmpp_packet.h32 MPP_RET mpp_packet_new(MppPacket *packet);
33 MPP_RET mpp_packet_init(MppPacket *packet, void *data, size_t size);
34 MPP_RET mpp_packet_init_with_buffer(MppPacket *packet, MppBuffer buffer);
35 MPP_RET mpp_packet_copy_init(MppPacket *packet, const MppPacket src);
36 MPP_RET mpp_packet_deinit(MppPacket *packet);
39 * data : ( R/W ) start address of the whole packet memory
40 * size : ( R/W ) total size of the whole packet memory
41 * pos : ( R/W ) current access position of the whole packet memory, used for buffer read/write
46 void mpp_packet_set_data(MppPacket packet, void *data);
47 void mpp_packet_set_size(MppPacket packet, size_t size);
[all …]
/OK3568_Linux_fs/external/mpp/inc/
H A Dmpp_packet.h32 MPP_RET mpp_packet_new(MppPacket *packet);
33 MPP_RET mpp_packet_init(MppPacket *packet, void *data, size_t size);
34 MPP_RET mpp_packet_init_with_buffer(MppPacket *packet, MppBuffer buffer);
35 MPP_RET mpp_packet_copy_init(MppPacket *packet, const MppPacket src);
36 MPP_RET mpp_packet_deinit(MppPacket *packet);
39 * data : ( R/W ) start address of the whole packet memory
40 * size : ( R/W ) total size of the whole packet memory
41 * pos : ( R/W ) current access position of the whole packet memory, used for buffer read/write
46 void mpp_packet_set_data(MppPacket packet, void *data);
47 void mpp_packet_set_size(MppPacket packet, size_t size);
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath6kl/
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 …]
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 …]
/OK3568_Linux_fs/kernel/tools/perf/util/arm-spe-decoder/
H A Darm-spe-pkt-decoder.c21 #define SPE_HEADER0_ADDRESS 0x30 /* address packet (short) */
23 #define SPE_HEADER0_COUNTER 0x18 /* counter packet (short) */
36 #define SPE_HEADER1_ADDRESS 0xb0 /* address packet (extended) */
38 #define SPE_HEADER1_COUNTER 0x98 /* counter packet (extended) */
86 struct arm_spe_pkt *packet) in arm_spe_get_payload() argument
96 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload()
97 case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break; in arm_spe_get_payload()
98 case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break; in arm_spe_get_payload()
99 case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break; in arm_spe_get_payload()
106 static int arm_spe_get_pad(struct arm_spe_pkt *packet) in arm_spe_get_pad() argument
[all …]
/OK3568_Linux_fs/buildroot/dl/rtmpdump/git/librtmp/
H A Drtmp.c130 static void HandleChangeChunkSize(RTMP *r, const RTMPPacket *packet);
131 static void HandleAudio(RTMP *r, const RTMPPacket *packet);
132 static void HandleVideo(RTMP *r, const RTMPPacket *packet);
133 static void HandleCtrl(RTMP *r, const RTMPPacket *packet);
134 static void HandleServerBW(RTMP *r, const RTMPPacket *packet);
135 static void HandleClientBW(RTMP *r, const RTMPPacket *packet);
216 …"RTMP PACKET: packet type: 0x%02x. channel: 0x%02x. info 1: %d info 2: %d. Body size: %u. body: 0x… in RTMPPacket_Dump()
1072 char packet[] = { in SocksNegotiate() local
1081 WriteN(r, packet, sizeof packet); in SocksNegotiate()
1083 if (ReadN(r, packet, 8) != 8) in SocksNegotiate()
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbatadv_packet.h32 * payload packet
33 * @BATADV_UNICAST_4ADDR: unicast packet including the originator address of
35 * @BATADV_ICMP: unicast packet like IP ICMP used for ping or traceroute
36 * @BATADV_UNICAST_TVLV: unicast packet carrying TVLV containers
57 * enum batadv_subtype - packet subtype for unicast4addr
75 * @BATADV_NOT_BEST_NEXT_HOP: flag is set when the ogm packet is forwarded and
94 * @BATADV_TP: throughput meter packet
157 * @BATADV_CLAIM_TYPE_LOOPDETECT: mesh-traversing loop detect packet
196 * struct batadv_ogm_packet - ogm (routing protocol) packet
197 * @packet_type: batman-adv packet type, part of the general header
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dbatadv_packet.h44 * payload packet
45 * @BATADV_UNICAST_4ADDR: unicast packet including the originator address of
47 * @BATADV_ICMP: unicast packet like IP ICMP used for ping or traceroute
48 * @BATADV_UNICAST_TVLV: unicast packet carrying TVLV containers
69 * enum batadv_subtype - packet subtype for unicast4addr
87 * @BATADV_NOT_BEST_NEXT_HOP: flag is set when ogm packet is forwarded and was
106 * @BATADV_TP: throughput meter packet
161 * @BATADV_CLAIM_TYPE_LOOPDETECT: mesh-traversing loop detect packet
200 * struct batadv_ogm_packet - ogm (routing protocol) packet
201 * @packet_type: batman-adv packet type, part of the general header
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dbatadv_packet.h44 * payload packet
45 * @BATADV_UNICAST_4ADDR: unicast packet including the originator address of
47 * @BATADV_ICMP: unicast packet like IP ICMP used for ping or traceroute
48 * @BATADV_UNICAST_TVLV: unicast packet carrying TVLV containers
69 * enum batadv_subtype - packet subtype for unicast4addr
87 * @BATADV_NOT_BEST_NEXT_HOP: flag is set when ogm packet is forwarded and was
106 * @BATADV_TP: throughput meter packet
161 * @BATADV_CLAIM_TYPE_LOOPDETECT: mesh-traversing loop detect packet
200 * struct batadv_ogm_packet - ogm (routing protocol) packet
201 * @packet_type: batman-adv packet type, part of the general header
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A Duser_mad.c63 MODULE_DESCRIPTION("InfiniBand userspace MAD packet access");
180 struct ib_umad_packet *packet) in queue_packet() argument
186 for (packet->mad.hdr.id = 0; in queue_packet()
187 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet()
188 packet->mad.hdr.id++) in queue_packet()
189 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
190 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
202 struct ib_umad_packet *packet) in dequeue_send() argument
205 list_del(&packet->list); in dequeue_send()
213 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler() local
[all …]
/OK3568_Linux_fs/kernel/tools/perf/arch/x86/tests/
H A Dintel-pt-pkt-decoder-test.c15 * @ctx: packet context to decode
16 * @packet: expected packet
17 * @new_ctx: expected new packet context
18 * @ctx_unchanged: the packet context must not change
24 struct intel_pt_pkt packet; member
28 /* Padding Packet */
30 /* Short Taken/Not Taken Packet */
35 /* Long Taken/Not Taken Packet */
40 /* Target IP Packet */
47 /* Packet Generation Enable */
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/u-boot/include/
H A Dfsl_memac.h24 u32 tx_ipg_length; /* Transmitter inter-packet-gap register */
66 u32 rx_undsz_l; /* Rx undersized packet lower */
67 u32 rx_undsz_u; /* Rx undersized packet upper */
68 u32 rx_64_l; /* Rx 64 oct packet lower */
69 u32 rx_64_u; /* Rx 64 oct packet upper */
70 u32 rx_127_l; /* Rx 65 to 127 oct packet lower */
71 u32 rx_127_u; /* Rx 65 to 127 oct packet upper */
72 u32 rx_255_l; /* Rx 128 to 255 oct packet lower */
73 u32 rx_255_u; /* Rx 128 to 255 oct packet upper */
74 u32 rx_511_l; /* Rx 256 to 511 oct packet lower */
[all …]
/OK3568_Linux_fs/kernel/include/linux/soc/mediatek/
H A Dmtk-cmdq.h69 * cmdq_pkt_create() - create a CMDQ packet
73 * Return: CMDQ packet pointer
78 * cmdq_pkt_destroy() - destroy the CMDQ packet
79 * @pkt: the CMDQ packet
84 * cmdq_pkt_write() - append write command to the CMDQ packet
85 * @pkt: the CMDQ packet
95 * cmdq_pkt_write_mask() - append write command with mask to the CMDQ packet
96 * @pkt: the CMDQ packet
108 * cmdq_pkt_read_s() - append read_s command to the CMDQ packet
109 * @pkt: the CMDQ packet
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/dhcp/
H A Dpacket.c156 } packet; in receive_packet() local
162 nread = read(s, &packet, sizeof(packet)); in receive_packet()
167 * The raw packet interface gives us all packets received by the in receive_packet()
174 ALOGD("Packet is too small (%d) to be a UDP datagram", nread); in receive_packet()
176 } else if (packet.ip.version != IPVERSION || packet.ip.ihl != (sizeof(packet.ip) >> 2)) { in receive_packet()
178 ALOGD("Not a valid IP packet"); in receive_packet()
180 } else if (nread < ntohs(packet.ip.tot_len)) { in receive_packet()
182 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); in receive_packet()
184 } else if (packet.ip.protocol != IPPROTO_UDP) { in receive_packet()
186 ALOGD("IP protocol (%d) is not UDP", packet.ip.protocol); in receive_packet()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/b43legacy/
H A 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 …]

12345678910>>...238