Home
last modified time | relevance | path

Searched refs:trailer (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v5.4/net/dsa/
Dtag_trailer.c18 u8 *trailer; in trailer_xmit() local
45 trailer = skb_put(nskb, 4); in trailer_xmit()
46 trailer[0] = 0x80; in trailer_xmit()
47 trailer[1] = 1 << dp->index; in trailer_xmit()
48 trailer[2] = 0x10; in trailer_xmit()
49 trailer[3] = 0x00; in trailer_xmit()
57 u8 *trailer; in trailer_rcv() local
63 trailer = skb_tail_pointer(skb) - 4; in trailer_rcv()
64 if (trailer[0] != 0x80 || (trailer[1] & 0xf8) != 0x00 || in trailer_rcv()
65 (trailer[2] & 0xef) != 0x00 || trailer[3] != 0x00) in trailer_rcv()
[all …]
DKconfig105 tristate "Tag driver for switches using a trailer tag"
/Linux-v5.4/drivers/net/usb/
Dnet1080.c343 struct nc_trailer *trailer; in net1080_rx_fixup() local
380 trailer = (struct nc_trailer *) in net1080_rx_fixup()
381 (skb->data + skb->len - sizeof *trailer); in net1080_rx_fixup()
382 skb_trim(skb, skb->len - sizeof *trailer); in net1080_rx_fixup()
399 if (header->packet_id != get_unaligned(&trailer->packet_id)) { in net1080_rx_fixup()
403 le16_to_cpu(trailer->packet_id)); in net1080_rx_fixup()
419 struct nc_trailer *trailer = NULL; in net1080_tx_fixup() local
463 if (!((skb->len + sizeof *trailer) & 0x01)) in net1080_tx_fixup()
465 trailer = skb_put(skb, sizeof *trailer); in net1080_tx_fixup()
466 put_unaligned(header->packet_id, &trailer->packet_id); in net1080_tx_fixup()
/Linux-v5.4/fs/ocfs2/
Ddir.c138 struct ocfs2_dir_block_trailer *trailer; in ocfs2_init_dir_trailer() local
140 trailer = ocfs2_trailer_from_bh(bh, inode->i_sb); in ocfs2_init_dir_trailer()
141 strcpy(trailer->db_signature, OCFS2_DIR_TRAILER_SIGNATURE); in ocfs2_init_dir_trailer()
142 trailer->db_compat_rec_len = in ocfs2_init_dir_trailer()
144 trailer->db_parent_dinode = cpu_to_le64(OCFS2_I(inode)->ip_blkno); in ocfs2_init_dir_trailer()
145 trailer->db_blkno = cpu_to_le64(bh->b_blocknr); in ocfs2_init_dir_trailer()
146 trailer->db_free_rec_len = cpu_to_le16(rec_len); in ocfs2_init_dir_trailer()
159 struct ocfs2_dir_block_trailer *trailer; in ocfs2_dx_dir_link_trailer() local
167 trailer = ocfs2_trailer_from_bh(dirdata_bh, dir->i_sb); in ocfs2_dx_dir_link_trailer()
170 trailer->db_free_next = dx_root->dr_free_blk; in ocfs2_dx_dir_link_trailer()
[all …]
/Linux-v5.4/arch/s390/kernel/
Dperf_cpum_cf_diag.c404 struct cf_trailer_entry *trailer; in cf_diag_getctr() local
409 sz -= sizeof(*trailer); /* Always room for trailer */ in cf_diag_getctr()
422 trailer = data + offset; in cf_diag_getctr()
423 cf_diag_trailer(trailer); in cf_diag_getctr()
424 return offset + sizeof(*trailer); in cf_diag_getctr()
Dperf_cpum_sf.c166 unsigned long sdb, *trailer; in alloc_sample_data_block() local
172 trailer = trailer_entry_ptr(sdb); in alloc_sample_data_block()
173 *trailer = SDB_TE_ALERT_REQ_MASK; in alloc_sample_data_block()
/Linux-v5.4/net/ipv6/
Desp6.c232 struct sk_buff *trailer; in esp6_output_head() local
238 trailer = skb; in esp6_output_head()
239 tail = skb_tail_pointer(trailer); in esp6_output_head()
293 nfrags = skb_cow_data(skb, tailen, &trailer); in esp6_output_head()
296 tail = skb_tail_pointer(trailer); in esp6_output_head()
300 pskb_put(skb, trailer, tailen); in esp6_output_head()
595 struct sk_buff *trailer; in esp6_input() local
638 nfrags = skb_cow_data(skb, 0, &trailer); in esp6_input()
Dah6.c330 struct sk_buff *trailer; in ah6_output() local
346 err = skb_cow_data(skb, 0, &trailer); in ah6_output()
516 struct sk_buff *trailer; in ah6_input() local
558 err = skb_cow_data(skb, 0, &trailer); in ah6_input()
/Linux-v5.4/net/ipv4/
Desp4.c279 struct sk_buff *trailer; in esp_output_head() local
293 trailer = skb; in esp_output_head()
294 tail = skb_tail_pointer(trailer); in esp_output_head()
350 nfrags = skb_cow_data(skb, tailen, &trailer); in esp_output_head()
353 tail = skb_tail_pointer(trailer); in esp_output_head()
358 pskb_put(skb, trailer, tailen); in esp_output_head()
700 struct sk_buff *trailer; in esp_input() local
739 err = skb_cow_data(skb, 0, &trailer); in esp_input()
Dah4.c153 struct sk_buff *trailer; in ah_output() local
168 if ((err = skb_cow_data(skb, 0, &trailer)) < 0) in ah_output()
311 struct sk_buff *trailer; in ah_input() local
355 if ((err = skb_cow_data(skb, 0, &trailer)) < 0) in ah_input()
/Linux-v5.4/fs/cifs/
Drfc1002pdu.h58 } __attribute__((packed)) trailer; member
/Linux-v5.4/drivers/net/wireless/ath/ath10k/
Dhtc.c434 u8 *trailer; in ath10k_htc_rx_completion_handler() local
446 trailer = (u8 *)hdr; in ath10k_htc_rx_completion_handler()
447 trailer += sizeof(*hdr); in ath10k_htc_rx_completion_handler()
448 trailer += payload_len; in ath10k_htc_rx_completion_handler()
449 trailer -= trailer_len; in ath10k_htc_rx_completion_handler()
450 status = ath10k_htc_process_trailer(htc, trailer, in ath10k_htc_rx_completion_handler()
Dbmi.c416 u8 trailer[4] = {}; in ath10k_bmi_fast_download() local
431 memcpy(trailer, buffer + head_len, trailer_len); in ath10k_bmi_fast_download()
438 ret = ath10k_bmi_lz_data(ar, trailer, 4); in ath10k_bmi_fast_download()
Dusb.c291 u8 *trailer; in ath10k_usb_rx_complete() local
315 trailer = skb->data + sizeof(*htc_hdr) + payload_len - in ath10k_usb_rx_complete()
319 trailer, in ath10k_usb_rx_complete()
Dhtc.h229 struct ath10k_htc_record trailer[0]; member
/Linux-v5.4/drivers/usb/atm/
Dusbatm.c486 u8 *trailer = target + ATM_CELL_SIZE - ATM_AAL5_TRAILER; in usbatm_write_cells() local
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-v5.4/drivers/infiniband/sw/siw/
Dsiw_qp_tx.c560 iov[seg].iov_base = &c_tx->trailer.pad[4 - c_tx->pad]; in siw_tx_hdt()
563 iov[seg].iov_base = &c_tx->trailer.pad[c_tx->ctrl_sent]; in siw_tx_hdt()
568 *(u32 *)c_tx->trailer.pad = 0; in siw_tx_hdt()
571 (u8 *)&c_tx->trailer.crc - c_tx->pad, in siw_tx_hdt()
575 c_tx->trailer.crc = 0; in siw_tx_hdt()
577 crypto_shash_final(c_tx->mpa_crc_hd, (u8 *)&c_tx->trailer.crc); in siw_tx_hdt()
Dsiw.h305 struct mpa_trailer trailer; member
399 struct mpa_trailer trailer; member
/Linux-v5.4/tools/vm/
Dslabinfo.c243 char trailer = 0; in store_size() local
249 trailer = 'G'; in store_size()
252 trailer = 'M'; in store_size()
255 trailer = 'K'; in store_size()
261 if (trailer) { in store_size()
262 buffer[n] = trailer; in store_size()
/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_hw4.h3990 uint32_t trailer; member
3993 #define lpfc_trailer_valid_WORD trailer
3996 #define lpfc_trailer_async_WORD trailer
3999 #define lpfc_trailer_hpi_WORD trailer
4002 #define lpfc_trailer_completed_WORD trailer
4005 #define lpfc_trailer_consumed_WORD trailer
4008 #define lpfc_trailer_type_WORD trailer
4011 #define lpfc_trailer_code_WORD trailer
4065 uint32_t trailer; member
4080 uint32_t trailer; member
[all …]
/Linux-v5.4/drivers/scsi/sym53c8xx_2/
Dsym_nvram.h116 u_char trailer[6]; /* 0xfe 0xfe 0x00 0x00 0x00 0x00 */ member
/Linux-v5.4/drivers/media/pci/meye/
Dmeye.c601 int pt_start, pt_end, trailer; in mchip_comp_read_frame() local
607 trailer = (v >> 1) & 0x3FF; in mchip_comp_read_frame()
611 pt_end * PAGE_SIZE + trailer * 4; in mchip_comp_read_frame()
613 fsize = (pt_end - pt_start) * PAGE_SIZE + trailer * 4; in mchip_comp_read_frame()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c1887 struct bnxt_ucode_trailer *trailer; in bnxt_flash_microcode() local
1897 trailer = (struct bnxt_ucode_trailer *)(fw_data + (fw_size - in bnxt_flash_microcode()
1898 sizeof(*trailer))); in bnxt_flash_microcode()
1899 if (trailer->sig != cpu_to_le32(BNXT_UCODE_TRAILER_SIGNATURE)) { in bnxt_flash_microcode()
1901 le32_to_cpu(trailer->sig)); in bnxt_flash_microcode()
1904 if (le16_to_cpu(trailer->dir_type) != dir_type) { in bnxt_flash_microcode()
1906 dir_type, le16_to_cpu(trailer->dir_type)); in bnxt_flash_microcode()
1909 if (le16_to_cpu(trailer->trailer_length) < in bnxt_flash_microcode()
1912 le16_to_cpu(trailer->trailer_length)); in bnxt_flash_microcode()
/Linux-v5.4/drivers/atm/
Diphase.c1307 struct cpcs_trailer *trailer; local
1329 trailer = (struct cpcs_trailer*)((u_char *)skb->data +
1330 skb->len - sizeof(*trailer));
1331 length = swap_byte_order(trailer->length);
2904 struct cpcs_trailer *trailer; local
2989 trailer = iadev->tx_buf[desc-1].cpcs;
2992 trailer->control = 0;
2994 trailer->length = ((skb->len & 0xff) << 8) | ((skb->len & 0xff00) >> 8);
2995 trailer->crc32 = 0; /* not needed - dummy bytes */
/Linux-v5.4/drivers/net/wireless/ath/ath6kl/
Dhtc_pipe.c946 u8 *netdata, *trailer, hdr_info; in ath6kl_htc_pipe_rx_complete() local
1010 trailer = (u8 *) htc_hdr + HTC_HDR_LENGTH + in ath6kl_htc_pipe_rx_complete()
1012 status = htc_process_trailer(target, trailer, hdr_info, in ath6kl_htc_pipe_rx_complete()

12