Home
last modified time | relevance | path

Searched full:trailer (Results 1 – 25 of 109) sorted by relevance

12345

/linux/net/dsa/
H A Dtag_trailer.c3 * net/dsa/tag_trailer.c - Trailer tag format handling
13 #define TRAILER_NAME "trailer"
17 u8 *trailer; in trailer_xmit() local
19 trailer = skb_put(skb, 4); in trailer_xmit()
20 trailer[0] = 0x80; in trailer_xmit()
21 trailer[1] = dsa_xmit_port_mask(skb, dev); in trailer_xmit()
22 trailer[2] = 0x10; in trailer_xmit()
23 trailer[3] = 0x00; in trailer_xmit()
30 u8 *trailer; in trailer_rcv() local
38 trailer = skb_tail_pointer(skb) - 4; in trailer_rcv()
[all …]
H A Dtag_xrs700x.c16 u8 *trailer; in xrs700x_xmit() local
18 trailer = skb_put(skb, 1); in xrs700x_xmit()
19 trailer[0] = dsa_xmit_port_mask(skb, dev); in xrs700x_xmit()
27 u8 *trailer; in xrs700x_rcv() local
29 trailer = skb_tail_pointer(skb) - 1; in xrs700x_rcv()
31 source_port = ffs((int)trailer[0]) - 1; in xrs700x_rcv()
H A Dtag_sja1105.c23 /* Trap-to-host format (no trailer present) */
27 /* Timestamp format (trailer present) */
600 /* Timestamp frame, we have a trailer */ in sja1110_rcv_inband_control_extension()
618 * padding and trailer we need to account for the fact that in sja1110_rcv_inband_control_extension()
625 /* Trap-to-host frame, no timestamp trailer */ in sja1110_rcv_inband_control_extension()
/linux/drivers/net/usb/
H A Dnet1080.c342 struct nc_trailer *trailer; in net1080_rx_fixup() local
379 trailer = (struct nc_trailer *) in net1080_rx_fixup()
380 (skb->data + skb->len - sizeof *trailer); in net1080_rx_fixup()
381 skb_trim(skb, skb->len - sizeof *trailer); in net1080_rx_fixup()
398 if (header->packet_id != get_unaligned(&trailer->packet_id)) { in net1080_rx_fixup()
402 le16_to_cpu(trailer->packet_id)); in net1080_rx_fixup()
418 struct nc_trailer *trailer = NULL; in net1080_tx_fixup() local
461 /* maybe pad; then trailer */ in net1080_tx_fixup()
462 if (!((skb->len + sizeof *trailer) & 0x01)) in net1080_tx_fixup()
464 trailer = skb_put(skb, sizeof *trailer); in net1080_tx_fixup()
[all …]
/linux/tools/perf/util/
H A Ds390-cpumsf.c309 /* Return TOD timestamp contained in an trailer entry */
322 /* Display s390 CPU measurement facility trailer entry */
343 pr_err("Invalid AUX trace trailer entry [%#08zx]\n", pos); in s390_cpumsf_trailer_show()
346 color_fprintf(stdout, color, " [%#08zx] Trailer %c%c%c bsdes:%d" in s390_cpumsf_trailer_show()
360 * 4KB page aligned. Each sample data page has a trailer entry at the
369 * in the trailer entry. Use the type number instead.
384 /* Check for trailer entry at end of SDB */ in s390_cpumsf_validate()
413 /* Illegal trailer entry */ in s390_cpumsf_validate()
472 /* Check for trailer entry */ in s390_cpumsf_dump()
474 /* Show trailer entry */ in s390_cpumsf_dump()
[all …]
H A Ds390-sample-raw.c71 * If the last entry (trailer) is 4 bytes off the raw in s390_cpumcfdg_testctr()
103 color_fprintf(stdout, color, " [%#08zx] Trailer:%c%c%c%c%c" in s390_cpumcfdg_dumptrail()
243 if (!ctrset_valid(&ce)) { /* Print trailer */ in s390_cpumcfdg_dump()
/linux/net/hsr/
H A Dhsr_forward.c221 static void prp_set_lan_id(struct prp_rct *trailer, in prp_set_lan_id() argument
233 set_prp_lan_id(trailer, lane_id); in prp_set_lan_id()
241 struct prp_rct *trailer; in prp_fill_rct() local
254 trailer = (struct prp_rct *)skb_put(skb, HSR_HLEN); in prp_fill_rct()
258 prp_set_lan_id(trailer, port); in prp_fill_rct()
259 set_prp_LSDU_size(trailer, lsdu_size); in prp_fill_rct()
260 trailer->sequence_nr = htons(frame->sequence_nr); in prp_fill_rct()
261 trailer->PRP_suffix = htons(ETH_P_PRP); in prp_fill_rct()
380 struct prp_rct *trailer = skb_get_PRP_rct(frame->skb_prp); in prp_create_tagged_frame() local
382 if (trailer) { in prp_create_tagged_frame()
[all …]
/linux/net/rxrpc/
H A Dconn_event.c100 struct rxrpc_acktrailer trailer; in rxrpc_conn_retransmit_call() local
134 iov[2].iov_base = &trailer; in rxrpc_conn_retransmit_call()
135 iov[2].iov_len = sizeof(trailer); in rxrpc_conn_retransmit_call()
175 trailer.maxMTU = htonl(max_mtu); in rxrpc_conn_retransmit_call()
176 trailer.ifMTU = htonl(if_mtu); in rxrpc_conn_retransmit_call()
177 trailer.rwind = htonl(rxrpc_rx_window_size); in rxrpc_conn_retransmit_call()
178 trailer.jumbo_max = 0; in rxrpc_conn_retransmit_call()
182 len += sizeof(pkt.ack) + 3 + sizeof(trailer); in rxrpc_conn_retransmit_call()
H A Doutput.c78 struct rxrpc_acktrailer *trailer; in rxrpc_alloc_ack() local
86 sizeof(*whdr) + sizeof(*ack) + 1 + 3 + sizeof(*trailer), gfp); in rxrpc_alloc_ack()
101 trailer = buf + sizeof(*whdr) + sizeof(*ack) + 1 + 3; in rxrpc_alloc_ack()
108 kv[2].iov_len = 3 + sizeof(*trailer); in rxrpc_alloc_ack()
155 struct rxrpc_acktrailer *trailer = kv[2].iov_base + 3; in rxrpc_fill_out_ack() local
227 trailer->maxMTU = htonl(max_mtu); in rxrpc_fill_out_ack()
228 trailer->ifMTU = htonl(if_mtu); in rxrpc_fill_out_ack()
229 trailer->rwind = htonl(rsize); in rxrpc_fill_out_ack()
230 trailer->jumbo_max = 0; /* Advertise pmtu discovery */ in rxrpc_fill_out_ack()
248 struct rxrpc_acktrailer *trailer = kv[2].iov_base + 3; in rxrpc_send_ack_packet() local
[all …]
H A Dinput.c800 struct rxrpc_acktrailer *trailer) in rxrpc_input_ack_trailer() argument
806 u32 max_mtu = ntohl(trailer->maxMTU); in rxrpc_input_ack_trailer()
807 //u32 if_mtu = ntohl(trailer->ifMTU); in rxrpc_input_ack_trailer()
808 u32 rwind = ntohl(trailer->rwind); in rxrpc_input_ack_trailer()
809 u32 jumbo_max = ntohl(trailer->jumbo_max); in rxrpc_input_ack_trailer()
1083 struct rxrpc_acktrailer trailer; in rxrpc_input_ack() local
1138 trailer.maxMTU = 0; in rxrpc_input_ack()
1140 if (skb->len >= ioffset + sizeof(trailer) && in rxrpc_input_ack()
1141 skb_copy_bits(skb, ioffset, &trailer, sizeof(trailer)) < 0) in rxrpc_input_ack()
1164 if (trailer.maxMTU) in rxrpc_input_ack()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_sriov_pf_migration_types.h31 /** @trailer: data packet used to indicate the end of stream */
32 struct xe_sriov_packet *trailer; member
/linux/drivers/net/wireless/ath/ath10k/
H A Dhtc.h27 * rx packets are more complex: <htc_hdr><payload><trailer>
29 * The payload + trailer length is stored in len.
32 * Trailer contains (possibly) multiple <htc_record>.
39 * Alignment: htc_hdr, payload and trailer are
/linux/fs/orangefs/
H A Ddowncall.h103 /* currently trailer is used only by readdir */
126 * The readdir response comes in the trailer. It is followed by the
/linux/drivers/media/rc/img-ir/
H A Dimg-ir-rc6.c18 * Trailer bit, the header information is a bit scrambled, and the in img_ir_rc6_scancode()
43 * Due to the above explained irregularity the trailer bits cannot in img_ir_rc6_scancode()
/linux/drivers/media/rc/
H A Dir-xmp-decoder.c81 dev_dbg(&dev->dev, "received TRAILER period at index %d: %u\n", in ir_xmp_decode()
154 * so trailer can be found and key press in ir_xmp_decode()
168 /* store nibble raw data, decode after trailer */ in ir_xmp_decode()
H A Dmeson-ir.c122 * @bit0_max: max time for NEC Logic '0', half of RC6 trailer bit, XMP Logic '00'
123 * @bit0_min: min time for NEC Logic '0', half of RC6 trailer bit, XMP Logic '00'
124 * @bit1_max: max time for NEC Logic '1', whole of RC6 trailer bit, XMP Logic '01'
125 * @bit1_min: min time for NEC Logic '1', whole of RC6 trailer bit, XMP Logic '01'
353 * RC6: Time for half of trailer bit in meson_ir_hw_decoder_init()
362 * RC6: Time for whole of trailer bit in meson_ir_hw_decoder_init()
/linux/drivers/infiniband/sw/siw/
H A Dsiw_qp_tx.c321 * trailer checksum segment to be pushed after user data.
428 * and trailer:
434 * Write out iov referencing hdr, data and trailer of current FPDU.
569 /* trailer */ in siw_tx_hdt()
571 iov[seg].iov_base = &c_tx->trailer.pad[4 - c_tx->pad]; in siw_tx_hdt()
574 iov[seg].iov_base = &c_tx->trailer.pad[c_tx->ctrl_sent]; in siw_tx_hdt()
579 *(u32 *)c_tx->trailer.pad = 0; in siw_tx_hdt()
582 (u8 *)&c_tx->trailer.crc - c_tx->pad, in siw_tx_hdt()
586 c_tx->trailer.crc = 0; in siw_tx_hdt()
588 siw_crc_final(&c_tx->mpa_crc, (u8 *)&c_tx->trailer.crc); in siw_tx_hdt()
/linux/drivers/net/wireguard/
H A Dsend.c167 struct sk_buff *trailer; in encrypt_packet() local
192 num_frags = skb_cow_data(skb, trailer_len, &trailer); in encrypt_packet()
199 memset(skb_tail_pointer(trailer), 0, padding_len); in encrypt_packet()
209 pskb_put(skb, trailer, trailer_len); in encrypt_packet()
/linux/Documentation/staging/
H A Dxz.rst44 this also appends a four-byte trailer containing the uncompressed size
45 of the file. The trailer is needed by the boot code on some archs.
/linux/drivers/net/ethernet/sfc/
H A Defx_reflash.c27 const u8 *header, *trailer; in efx_reflash_parse_reflash_header() local
56 trailer = fw->data + trailer_offset; in efx_reflash_parse_reflash_header()
57 expected_crc = get_unaligned_le32(trailer + EFX_REFLASH_TRAILER_CRC_OFST); in efx_reflash_parse_reflash_header()
72 /* Other payload types strip the reflash header and trailer in efx_reflash_parse_reflash_header()
/linux/net/ipv4/
H A Desp4.c414 struct sk_buff *trailer; in esp_output_head() local
432 trailer = skb; in esp_output_head()
433 tail = skb_tail_pointer(trailer); in esp_output_head()
483 nfrags = skb_cow_data(skb, tailen, &trailer); in esp_output_head()
486 tail = skb_tail_pointer(trailer); in esp_output_head()
491 pskb_put(skb, trailer, tailen); in esp_output_head()
850 struct sk_buff *trailer; in esp_input() local
890 err = skb_cow_data(skb, 0, &trailer); in esp_input()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c248 eseg->trailer |= cpu_to_be32(MLX5_ETH_WQE_INSERT_TRAILER); in mlx5e_ipsec_tx_build_eseg()
251 eseg->trailer |= (l3_proto == IPPROTO_ESP) ? in mlx5e_ipsec_tx_build_eseg()
255 eseg->trailer |= (l3_proto == IPPROTO_ESP) ? in mlx5e_ipsec_tx_build_eseg()
/linux/drivers/net/ovpn/
H A Dcrypto_aead.c143 struct sk_buff *trailer; in ovpn_aead_encrypt() local
167 nfrags = skb_cow_data(skb, 0, &trailer); in ovpn_aead_encrypt()
248 struct sk_buff *trailer; in ovpn_aead_decrypt() local
272 nfrags = skb_cow_data(skb, 0, &trailer); in ovpn_aead_decrypt()
/linux/net/ipv6/
H A Desp6.c445 struct sk_buff *trailer; in esp6_output_head() local
462 trailer = skb; in esp6_output_head()
463 tail = skb_tail_pointer(trailer); in esp6_output_head()
515 nfrags = skb_cow_data(skb, tailen, &trailer); in esp6_output_head()
518 tail = skb_tail_pointer(trailer); in esp6_output_head()
523 pskb_put(skb, trailer, tailen); in esp6_output_head()
889 struct sk_buff *trailer; in esp6_input() local
933 nfrags = skb_cow_data(skb, 0, &trailer); in esp6_input()
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_nvram.h41 u_short byte_count; /* excluding header/trailer */
116 u_char trailer[6]; /* 0xfe 0xfe 0x00 0x00 0x00 0x00 */ member

12345