Searched refs:fr_len (Results 1 – 14 of 14) sorted by relevance
/linux-5.19.10/include/scsi/ |
D | fc_frame.h | 52 #define fr_len(fp) ((fp)->skb.len) macro 161 WARN_ON(fr_len(fp) < sizeof(struct fc_frame_header)); in fc_frame_header_get() 196 if (fr_len(fp) >= sizeof(struct fc_frame_header) + len) in fc_frame_payload_get()
|
/linux-5.19.10/drivers/scsi/libfc/ |
D | fc_libfc.c | 166 fill = -fr_len(fp) & 3; in fc_fill_hdr() 174 WARN_ON(fr_len(fp) % 4 != 0); /* no pad to non last frame */ in fc_fill_hdr()
|
D | fc_frame.c | 31 len = (fr_len(fp) + 3) & ~3; /* round up length to include fill */ in fc_frame_crc_check()
|
D | fc_disc.c | 518 len = fr_len(fp) - sizeof(*fh); in fc_disc_gpn_ft_resp() 524 fr_len(fp)); in fc_disc_gpn_ft_resp() 595 if (fr_len(fp) < sizeof(struct fc_frame_header) + in fc_disc_gpn_id_resp()
|
D | fc_fcp.c | 485 len = fr_len(fp) - sizeof(*fh); in fc_fcp_recv_data() 679 fr_len(fp) += sg_bytes; in fc_fcp_send_data() 822 WARN_ON(fr_len(fp) < sizeof(*fh)); /* len may be 0 */ in fc_fcp_recv() 855 plen = fr_len(fp); in fc_fcp_resp() 959 "snsl %u\n", flags, fr_len(fp), respl, snsl); in fc_fcp_resp()
|
D | fc_exch.c | 285 fill = fr_len(fp) & 3; in fc_exch_setup_hdr() 293 WARN_ON(fr_len(fp) % 4 != 0); /* no pad to non last frame */ in fc_exch_setup_hdr() 491 sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)), in fc_seq_send_locked() 2635 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl)); in fc_exch_recv()
|
D | fc_lport.c | 426 len = fr_len(in_fp) - sizeof(struct fc_frame_header); in fc_lport_recv_echo_req() 1971 len = fr_len(fp) - sizeof(*fh); in fc_lport_bsg_resp()
|
D | fc_rport.c | 1987 len = fr_len(rx_fp) - sizeof(struct fc_frame_header); in fc_rport_recv_prli_req() 2101 len = fr_len(rx_fp) - sizeof(struct fc_frame_header); in fc_rport_recv_prlo_req()
|
/linux-5.19.10/drivers/target/tcm_fc/ |
D | tfc_io.c | 136 fr_len(fp) += tlen; in ft_queue_data_in() 261 frame_len = fr_len(fp); in ft_recv_write_data()
|
/linux-5.19.10/drivers/scsi/fcoe/ |
D | fcoe.c | 1487 WARN_ON((fr_len(fp) % sizeof(u32)) != 0); in fcoe_xmit() 1650 u32 fr_len; in fcoe_recv_frame() local 1695 fr_len = skb->len - sizeof(struct fcoe_crc_eof); in fcoe_recv_frame() 1698 this_cpu_add(lport->stats->RxWords, fr_len / FCOE_WORD_TO_BYTE); in fcoe_recv_frame() 1706 if (skb_copy_bits(skb, fr_len, &crc_eof, sizeof(crc_eof))) in fcoe_recv_frame() 1710 if (pskb_trim(skb, fr_len)) in fcoe_recv_frame()
|
/linux-5.19.10/drivers/scsi/bnx2fc/ |
D | bnx2fc_fcoe.c | 509 u32 fr_len, fr_crc; in bnx2fc_recv_frame() local 540 fr_len = skb->len - sizeof(struct fcoe_crc_eof); in bnx2fc_recv_frame() 543 this_cpu_add(lport->stats->RxWords, fr_len / FCOE_WORD_TO_BYTE); in bnx2fc_recv_frame() 549 if (skb_copy_bits(skb, fr_len, &crc_eof, sizeof(crc_eof))) { in bnx2fc_recv_frame() 555 if (pskb_trim(skb, fr_len)) { in bnx2fc_recv_frame() 629 if (unlikely(fr_crc != ~crc32(~0, skb->data, fr_len))) { in bnx2fc_recv_frame()
|
/linux-5.19.10/drivers/net/wireless/ath/wcn36xx/ |
D | dxe.h | 408 u32 fr_len; member
|
D | dxe.c | 791 desc_bd->fr_len = sizeof(struct wcn36xx_tx_bd); in wcn36xx_dxe_tx_frame() 813 desc_skb->fr_len = ctl_skb->skb->len; in wcn36xx_dxe_tx_frame()
|
/linux-5.19.10/drivers/scsi/qedf/ |
D | qedf_main.c | 2441 u32 fr_len; in qedf_recv_frame() local 2469 fr_len = skb->len - sizeof(struct fcoe_crc_eof); in qedf_recv_frame() 2475 if (skb_copy_bits(skb, fr_len, &crc_eof, sizeof(crc_eof))) { in qedf_recv_frame() 2482 if (pskb_trim(skb, fr_len)) { in qedf_recv_frame()
|