| /linux/net/dsa/ |
| H A D | tag_trailer.c | 3 * 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 D | tag_xrs700x.c | 16 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()
|
| /linux/drivers/net/usb/ |
| H A D | net1080.c | 342 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 D | s390-cpumsf.c | 309 /* 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/net/hsr/ |
| H A D | hsr_forward.c | 221 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/drivers/net/ethernet/qualcomm/rmnet/ |
| H A D | rmnet_map_data.c | 70 /* The checksum value in the trailer is computed over the entire in rmnet_map_ipv4_dl_csum_trailer() 73 * of the IP header from the trailer checksum. We then add the in rmnet_map_ipv4_dl_csum_trailer() 77 * trailer checksum. Therefore the checksum in the trailer is in rmnet_map_ipv4_dl_csum_trailer() 82 * zero). This means the trailer checksum and the pseudo checksum in rmnet_map_ipv4_dl_csum_trailer() 84 * message passes the checksum test if the trailer checksum value in rmnet_map_ipv4_dl_csum_trailer() 89 * checksum value found in the trailer. in rmnet_map_ipv4_dl_csum_trailer() 128 /* The checksum value in the trailer is computed over the entire in rmnet_map_ipv6_dl_csum_trailer() 131 * of the IP header from the trailer checksum. We then add the in rmnet_map_ipv6_dl_csum_trailer() 408 * padding + checksum trailer [all...] |
| /linux/net/rxrpc/ |
| H A D | conn_event.c | 100 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 D | output.c | 78 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 D | input.c | 800 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 D | xe_sriov_pf_migration_types.h | 31 /** @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 D | htc.h | 27 * 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 D | downcall.h | 103 /* 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 D | img-ir-rc6.c | 18 * 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 D | meson-ir.c | 122 * @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 D | ir-xmp-decoder.c | 81 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/infiniband/sw/siw/ |
| H A D | siw_qp_tx.c | 321 * trailer checksum segment to be pushed after user data. 427 * and trailer: 433 * Write out iov referencing hdr, data and trailer of current FPDU. 568 /* trailer */ in siw_tx_hdt() 570 iov[seg].iov_base = &c_tx->trailer.pad[4 - c_tx->pad]; in siw_tx_hdt() 573 iov[seg].iov_base = &c_tx->trailer.pad[c_tx->ctrl_sent]; in siw_tx_hdt() 578 *(u32 *)c_tx->trailer.pad = 0; in siw_tx_hdt() 581 (u8 *)&c_tx->trailer.crc - c_tx->pad, in siw_tx_hdt() 585 c_tx->trailer.crc = 0; in siw_tx_hdt() 587 siw_crc_final(&c_tx->mpa_crc, (u8 *)&c_tx->trailer in siw_tx_hdt() [all...] |
| /linux/drivers/net/wireguard/ |
| H A D | send.c | 167 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/drivers/usb/atm/ |
| H A D | usbatm.c | 486 if (left >= ATM_AAL5_TRAILER) { /* trailer will go in this cell */ in usbatm_write_cells() local 487 u8 *trailer = target + ATM_CELL_SIZE - ATM_AAL5_TRAILER; in usbatm_write_cells() 488 /* trailer[0] = 0; UU = 0 */ in usbatm_write_cells() 489 /* trailer[1] = 0; CPI = 0 */ in usbatm_write_cells() 490 trailer[2] = ctrl->len >> 8; in usbatm_write_cells() 491 trailer[3] = ctrl->len; in usbatm_write_cells() 495 trailer[4] = ctrl->crc >> 24; in usbatm_write_cells() 496 trailer[5] = ctrl->crc >> 16; in usbatm_write_cells() 497 trailer[6] = ctrl->crc >> 8; in usbatm_write_cells() 498 trailer[ in usbatm_write_cells() [all...] |
| /linux/arch/s390/kernel/ |
| H A D | perf_cpum_cf.c | 95 static unsigned int cfdiag_cpu_speed; /* CPU speed for CF_DIAG trailer */ 373 * All counter sets are followed by a 64 byte trailer. 374 * The trailer consists of a: 394 struct cf_trailer_entry { /* CPU-M CF_DIAG trailer (64 byte) */ 429 /* Create the trailer data at the end of a page. */ 554 * The last 64 byte host an artificial trailer entry. 559 struct cf_trailer_entry *trailer; in cfdiag_getctr() local 564 sz -= sizeof(*trailer); /* Always room for trailer */ in cfdiag_getctr() 574 trailer = data + offset; in cfdiag_getctr() 575 cfdiag_trailer(trailer); in cfdiag_getctr() [all …]
|
| /linux/net/ipv4/ |
| H A D | esp4.c | 414 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() 489 nfrags = skb_cow_data(skb, tailen, &trailer); in esp_output_head() 492 tail = skb_tail_pointer(trailer); in esp_output_head() 497 pskb_put(skb, trailer, tailen); in esp_output_head() 856 struct sk_buff *trailer; in esp_input() local 896 err = skb_cow_data(skb, 0, &trailer); in esp_input()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | efx_reflash.c | 27 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/Documentation/staging/ |
| H A D | xz.rst | 44 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/net/ipv6/ |
| H A D | esp6.c | 445 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() 521 nfrags = skb_cow_data(skb, tailen, &trailer); in esp6_output_head() 524 tail = skb_tail_pointer(trailer); in esp6_output_head() 529 pskb_put(skb, trailer, tailen); in esp6_output_head() 895 struct sk_buff *trailer; in esp6_input() local 939 nfrags = skb_cow_data(skb, 0, &trailer); in esp6_input()
|
| /linux/drivers/net/ovpn/ |
| H A D | crypto_aead.c | 143 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/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec_rxtx.c | 248 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()
|