Home
last modified time | relevance | path

Searched full:trailer (Results 1 – 25 of 122) 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()
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()
36 trailer in trailer_rcv()
18 u8 *trailer; trailer_xmit() local
31 u8 *trailer; trailer_rcv() local
[all...]
H A Dtag_xrs700x.c16 u8 *trailer; in xrs700x_xmit()
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_xmit()
29 trailer = skb_tail_pointer(skb) - 1;
31 source_port = ffs((int)trailer[0]) - 1; in xrs700x_rcv()
17 u8 *trailer; xrs700x_xmit() local
33 u8 *trailer; xrs700x_rcv() local
/linux/include/net/caif/
H A Dcfpkt.h74 * Extract header from trailer (end of packet).
77 * data Pointer to copy the trailer data into.
95 * Add trailer to packet.
98 * pkt Packet to add trailer data to.
99 * data Pointer to data to copy into the trailer.
100 * len Length of trailer data to copy.
106 * Pad trailer on packet.
109 * pkt Packet in which to pad trailer.
158 * Set the packet length, by adjusting the trailer pointer according to length.
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_wed_mcu.c260 const struct mtk_wed_fw_trailer *trailer; in mtk_wed_mcu_run_firmware() local
263 trailer_ptr = fw->data + fw->size - sizeof(*trailer); in mtk_wed_mcu_run_firmware()
264 trailer = (const struct mtk_wed_fw_trailer *)trailer_ptr; in mtk_wed_mcu_run_firmware()
265 region_ptr = trailer_ptr - trailer->num_region * sizeof(*fw_region); in mtk_wed_mcu_run_firmware()
310 const struct mtk_wed_fw_trailer *trailer; in mtk_wed_mcu_load_firmware() local
349 trailer = (void *)(fw->data + fw->size - in mtk_wed_mcu_load_firmware()
353 trailer->fw_ver, trailer->build_date); in mtk_wed_mcu_load_firmware()
355 trailer->chip_id, trailer->num_region); in mtk_wed_mcu_load_firmware()
/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/net/rxrpc/
H A Dconn_event.c100 struct rxrpc_acktrailer trailer; in rxrpc_conn_retransmit_call()
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()
92 struct rxrpc_acktrailer trailer; rxrpc_conn_retransmit_call() local
H A Doutput.c80 struct rxrpc_acktrailer *trailer; in rxrpc_alloc_ack() local
88 sizeof(*whdr) + sizeof(*ack) + 1 + 3 + sizeof(*trailer), gfp); in rxrpc_alloc_ack()
103 trailer = buf + sizeof(*whdr) + sizeof(*ack) + 1 + 3; in rxrpc_alloc_ack()
110 kv[2].iov_len = 3 + sizeof(*trailer); in rxrpc_alloc_ack()
157 struct rxrpc_acktrailer *trailer = kv[2].iov_base + 3; in rxrpc_fill_out_ack() local
229 trailer->maxMTU = htonl(max_mtu); in rxrpc_fill_out_ack()
230 trailer->ifMTU = htonl(if_mtu); in rxrpc_fill_out_ack()
231 trailer->rwind = htonl(rsize); in rxrpc_fill_out_ack()
232 trailer->jumbo_max = 0; /* Advertise pmtu discovery */ in rxrpc_fill_out_ack()
250 struct rxrpc_acktrailer *trailer = kv[2].iov_base + 3; in rxrpc_send_ack_packet() local
[all …]
H A Dinput.c787 struct rxrpc_acktrailer *trailer) in rxrpc_input_ack_trailer() argument
793 u32 max_mtu = ntohl(trailer->maxMTU); in rxrpc_input_ack_trailer()
794 //u32 if_mtu = ntohl(trailer->ifMTU); in rxrpc_input_ack_trailer()
795 u32 rwind = ntohl(trailer->rwind); in rxrpc_input_ack_trailer()
796 u32 jumbo_max = ntohl(trailer->jumbo_max); in rxrpc_input_ack_trailer()
1059 struct rxrpc_acktrailer trailer; in rxrpc_input_ack() local
1114 trailer.maxMTU = 0; in rxrpc_input_ack()
1116 if (skb->len >= ioffset + sizeof(trailer) && in rxrpc_input_ack()
1117 skb_copy_bits(skb, ioffset, &trailer, sizeof(trailer)) < 0) in rxrpc_input_ack()
1143 if (trailer.maxMTU) in rxrpc_input_ack()
[all …]
/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/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 …]
/linux/fs/jfs/
H A Djfs_logmgr.h87 * the header and trailer structures (h,t) will normally have
95 * bottom 16 bits in the trailer. logredo can easily recognize pages
101 * ordering the updates to the header, trailer, and the move of data
103 * is updated (3) trailer is updated. In logredo, when the header
104 * differed from the trailer, the header and trailer were reconciled
118 struct { /* trailer */
126 #define LOGPTLRSIZE 8 /* log page trailer size */
150 * the field eor in page header/trailer points to the byte following
/linux/drivers/net/wireless/ath/ath12k/
H A Dhtc.c227 /* multiple records may be present in a trailer */ in ath12k_htc_process_trailer()
291 /* get flags to check for trailer */ in ath12k_htc_rx_completion_handler()
296 u8 *trailer; in ath12k_htc_rx_completion_handler() local
304 ath12k_warn(ab, "Invalid trailer length: %d\n", in ath12k_htc_rx_completion_handler()
309 trailer = (u8 *)hdr; in ath12k_htc_rx_completion_handler()
310 trailer += sizeof(*hdr); in ath12k_htc_rx_completion_handler()
311 trailer += payload_len; in ath12k_htc_rx_completion_handler()
312 trailer -= trailer_len; in ath12k_htc_rx_completion_handler()
313 status = ath12k_htc_process_trailer(htc, trailer, in ath12k_htc_rx_completion_handler()
322 /* zero length packet with trailer data, just drop these */ in ath12k_htc_rx_completion_handler()
/linux/fs/ocfs2/
H A Ddir.c136 struct ocfs2_dir_block_trailer *trailer; in ocfs2_init_dir_trailer() local
138 trailer = ocfs2_trailer_from_bh(bh, inode->i_sb); in ocfs2_init_dir_trailer()
139 strscpy(trailer->db_signature, OCFS2_DIR_TRAILER_SIGNATURE); in ocfs2_init_dir_trailer()
140 trailer->db_compat_rec_len = in ocfs2_init_dir_trailer()
142 trailer->db_parent_dinode = cpu_to_le64(OCFS2_I(inode)->ip_blkno); in ocfs2_init_dir_trailer()
143 trailer->db_blkno = cpu_to_le64(bh->b_blocknr); in ocfs2_init_dir_trailer()
144 trailer->db_free_rec_len = cpu_to_le16(rec_len); in ocfs2_init_dir_trailer()
147 * Link an unindexed block with a dir trailer structure into the index free
157 struct ocfs2_dir_block_trailer *trailer; in ocfs2_dx_dir_link_trailer() local
165 trailer = ocfs2_trailer_from_bh(dirdata_bh, dir->i_sb); in ocfs2_dx_dir_link_trailer()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dhtc.c235 /* multiple records may be present in a trailer */ in ath11k_htc_process_trailer()
324 /* get flags to check for trailer */ in ath11k_htc_rx_completion_handler()
332 u8 *trailer; in ath11k_htc_rx_completion_handler() local
339 ath11k_warn(ab, "Invalid trailer length: %d\n", in ath11k_htc_rx_completion_handler()
344 trailer = (u8 *)hdr; in ath11k_htc_rx_completion_handler()
345 trailer += sizeof(*hdr); in ath11k_htc_rx_completion_handler()
346 trailer += payload_len; in ath11k_htc_rx_completion_handler()
347 trailer -= trailer_len; in ath11k_htc_rx_completion_handler()
348 status = ath11k_htc_process_trailer(htc, trailer, in ath11k_htc_rx_completion_handler()
357 /* zero length packet with trailer data, just drop these */ in ath11k_htc_rx_completion_handler()
/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/infiniband/sw/siw/
H A Dsiw.h271 SIW_SEND_TRAILER, /* start or continue sending TRAILER */
272 SIW_SEND_SHORT_FPDU/* send whole FPDU hdr|data|trailer at once */
279 SIW_GET_TRAILER/* await new trailer or within trailer */
291 struct mpa_trailer trailer; member
298 * trailer information (CRC + possibly padding).
300 * current FPDU part (hdr, data, trailer).
384 struct mpa_trailer trailer; member
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/usb/serial/
H A Dsafe_serial.c22 * This protocol adds a two byte trailer to each USB packet to specify the
45 * The 10 bit CRC is computed across the sent data, followed by the trailer
47 * the trailer.
50 * the trailer and should be equal to zero.
251 /* compute fcs and insert into trailer */ in safe_prepare_write_buffer()
/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
H A Dhtc.c427 /* multiple records may be present in a trailer */ in ath10k_htc_process_trailer()
433 ath10k_dbg_dump(ar, ATH10K_DBG_HTC, "htc rx bad trailer", "", in ath10k_htc_process_trailer()
489 /* get flags to check for trailer */ in ath10k_htc_rx_completion_handler()
492 u8 *trailer; in ath10k_htc_rx_completion_handler() local
499 ath10k_warn(ar, "Invalid trailer length: %d\n", in ath10k_htc_rx_completion_handler()
504 trailer = (u8 *)hdr; in ath10k_htc_rx_completion_handler()
505 trailer += sizeof(*hdr); in ath10k_htc_rx_completion_handler()
506 trailer += payload_len; in ath10k_htc_rx_completion_handler()
507 trailer -= trailer_len; in ath10k_htc_rx_completion_handler()
508 status = ath10k_htc_process_trailer(htc, trailer, in ath10k_htc_rx_completion_handler()
[all …]
/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 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()
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()
/linux/drivers/net/wireguard/
H A Dsend.c167 struct sk_buff *trailer; in encrypt_packet() local
181 num_frags = skb_cow_data(skb, trailer_len, &trailer); in encrypt_packet()
188 memset(skb_tail_pointer(trailer), 0, padding_len); in encrypt_packet()
209 pskb_put(skb, trailer, trailer_len); in encrypt_packet()

12345