| /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() 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 D | tag_xrs700x.c | 16 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/drivers/net/ethernet/mediatek/ |
| H A D | mtk_wed_mcu.c | 260 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 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/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 | 787 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/drivers/net/wireless/ath/ath11k/ |
| H A D | htc.c | 235 /* 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 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/infiniband/sw/siw/ |
| H A D | siw.h | 271 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 D | siw_qp_tx.c | 321 * 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/arch/s390/boot/ |
| H A D | vmlinux.lds.S | 129 /* Trailer needed for Secure Boot */ 130 . += SB_TRAILER_SIZE; /* make sure .sb.trailer does not overwrite the previous section */ 132 .sb.trailer : {
|
| /linux/drivers/usb/serial/ |
| H A D | safe_serial.c | 22 * 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 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
|
| H A D | htc.c | 427 /* 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 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/net/wireguard/ |
| H A D | send.c | 167 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()
|
| /linux/drivers/usb/atm/ |
| H A D | usbatm.c | 485 if (left >= ATM_AAL5_TRAILER) { /* trailer will go in this cell */ in usbatm_write_cells() 486 u8 *trailer = target + ATM_CELL_SIZE - ATM_AAL5_TRAILER; in usbatm_write_cells() local 487 /* trailer[0] = 0; UU = 0 */ in usbatm_write_cells() 488 /* trailer[1] = 0; CPI = 0 */ in usbatm_write_cells() 489 trailer[2] = ctrl->len >> 8; in usbatm_write_cells() 490 trailer[3] = ctrl->len; in usbatm_write_cells() 494 trailer[4] = ctrl->crc >> 24; in usbatm_write_cells() 495 trailer[5] = ctrl->crc >> 16; in usbatm_write_cells() 496 trailer[6] = ctrl->crc >> 8; in usbatm_write_cells() 497 trailer[7] = ctrl->crc; in usbatm_write_cells()
|
| /linux/arch/s390/kernel/ |
| H A D | perf_cpum_cf.c | 94 static unsigned int cfdiag_cpu_speed; /* CPU speed for CF_DIAG trailer */ 334 * All counter sets are followed by a 64 byte trailer. 335 * The trailer consists of a: 355 struct cf_trailer_entry { /* CPU-M CF_DIAG trailer (64 byte) */ 390 /* Create the trailer data at the end of a page. */ 515 * The last 64 byte host an artificial trailer entry. 520 struct cf_trailer_entry *trailer; in cfdiag_getctr() local 525 sz -= sizeof(*trailer); /* Always room for trailer */ in cfdiag_getctr() 535 trailer = data + offset; in cfdiag_getctr() 536 cfdiag_trailer(trailer); in cfdiag_getctr() [all …]
|
| /linux/net/ipv4/ |
| H A D | esp4.c | 411 struct sk_buff *trailer; in esp_output_head() local 429 trailer = skb; in esp_output_head() 430 tail = skb_tail_pointer(trailer); in esp_output_head() 480 nfrags = skb_cow_data(skb, tailen, &trailer); in esp_output_head() 483 tail = skb_tail_pointer(trailer); in esp_output_head() 488 pskb_put(skb, trailer, tailen); in esp_output_head() 845 struct sk_buff *trailer; in esp_input() local 885 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()
|