Home
last modified time | relevance | path

Searched refs:pad_len (Results 1 – 16 of 16) sorted by relevance

/drivers/s390/crypto/
Dzcrypt_cca_key.h118 unsigned short pad_len; member
290 int short_len, long_len, pad_len, key_len, size; in zcrypt_type6_crt_key() local
296 pad_len = -(3*long_len + 2*short_len) & 7; in zcrypt_type6_crt_key()
297 key_len = 3*long_len + 2*short_len + pad_len + crt->inputdatalength; in zcrypt_type6_crt_key()
321 key->pvt.pad_len = pad_len; in zcrypt_type6_crt_key()
334 memset(key->key_parts + 3*long_len + 2*short_len + pad_len, in zcrypt_type6_crt_key()
Dzcrypt_msgtype6.c553 unsigned int reply_len, pad_len; in convert_type86_ica() local
595 pad_len = outputdatalength - reply_len; in convert_type86_ica()
596 if (pad_len > 0) { in convert_type86_ica()
597 if (pad_len < 10) in convert_type86_ica()
600 if (copy_to_user(outputdata, static_pad, pad_len - 1)) in convert_type86_ica()
602 if (put_user(0, outputdata + pad_len - 1)) in convert_type86_ica()
606 if (copy_to_user(outputdata + pad_len, data, reply_len)) in convert_type86_ica()
/drivers/net/caif/
Dcaif_virtio.c221 u32 cfpkt_len, pad_len; in cfv_alloc_and_copy_skb() local
235 pad_len = (unsigned long)(frm + cfv->rx_hr) & (IP_HDR_ALIGN - 1); in cfv_alloc_and_copy_skb()
237 skb = netdev_alloc_skb(cfv->ndev, frm_len + pad_len); in cfv_alloc_and_copy_skb()
243 skb_reserve(skb, cfv->rx_hr + pad_len); in cfv_alloc_and_copy_skb()
485 u8 pad_len, hdr_ofs; in cfv_alloc_and_copy_to_shm() local
502 pad_len = hdr_ofs & (IP_HDR_ALIGN - 1); in cfv_alloc_and_copy_to_shm()
503 buf_info->size = cfv->tx_hr + skb->len + cfv->tx_tr + pad_len; in cfv_alloc_and_copy_to_shm()
511 skb_copy_bits(skb, 0, buf_info->vaddr + cfv->tx_hr + pad_len, skb->len); in cfv_alloc_and_copy_to_shm()
512 sg_init_one(sg, buf_info->vaddr + pad_len, in cfv_alloc_and_copy_to_shm()
/drivers/iommu/
Ddma-iommu.c478 size_t pad_len = roundup_pow_of_two(s_length); in iommu_dma_map_sg() local
480 pad_len = (pad_len - iova_len) & (pad_len - 1); in iommu_dma_map_sg()
481 prev->length += pad_len; in iommu_dma_map_sg()
482 iova_len += pad_len; in iommu_dma_map_sg()
/drivers/net/ethernet/qualcomm/
Dqca_spi.c667 u8 pad_len = 0; in qcaspi_netdev_xmit() local
670 pad_len = QCAFRM_ETHMINLEN - skb->len; in qcaspi_netdev_xmit()
680 (skb_tailroom(skb) < QCAFRM_FOOTER_LEN + pad_len)) { in qcaspi_netdev_xmit()
682 QCAFRM_FOOTER_LEN + pad_len, GFP_ATOMIC); in qcaspi_netdev_xmit()
692 frame_len = skb->len + pad_len; in qcaspi_netdev_xmit()
697 if (pad_len) { in qcaspi_netdev_xmit()
698 ptmp = skb_put(skb, pad_len); in qcaspi_netdev_xmit()
699 memset(ptmp, 0, pad_len); in qcaspi_netdev_xmit()
/drivers/net/ethernet/realtek/
Datp.c497 static void write_packet(long ioaddr, int length, unsigned char *packet, int pad_len, int data_mode) in write_packet() argument
502 pad_len++; in write_packet()
511 } while (--length > pad_len) ; in write_packet()
527 while (--length > pad_len) in write_packet()
/drivers/net/wireless/ath/ath9k/
Dhif_usb.c576 u16 pad_len; in ath9k_hif_usb_rx_stream() local
596 pad_len = 4 - (pkt_len & 0x3); in ath9k_hif_usb_rx_stream()
597 if (pad_len == 4) in ath9k_hif_usb_rx_stream()
598 pad_len = 0; in ath9k_hif_usb_rx_stream()
601 index = index + 4 + pkt_len + pad_len; in ath9k_hif_usb_rx_stream()
608 hif_dev->rx_pad_len = pad_len; in ath9k_hif_usb_rx_stream()
/drivers/net/wireless/ti/wlcore/
Drx.h144 u8 pad_len; member
Drx.c203 skb->len - desc->pad_len, in wl1271_rx_handle_data()
/drivers/scsi/bnx2i/
Dbnx2i_hwi.c1459 int pad_len; in bnx2i_process_login_resp() local
1489 pad_len = 0; in bnx2i_process_login_resp()
1491 pad_len = 4 - (pld_len % 4); in bnx2i_process_login_resp()
1493 if (pad_len) { in bnx2i_process_login_resp()
1495 for (i = 0; i < pad_len; i++) { in bnx2i_process_login_resp()
1527 int pad_len; in bnx2i_process_text_resp() local
1550 pad_len = 0; in bnx2i_process_text_resp()
1552 pad_len = 4 - (pld_len % 4); in bnx2i_process_text_resp()
1554 if (pad_len) { in bnx2i_process_text_resp()
1556 for (i = 0; i < pad_len; i++) { in bnx2i_process_text_resp()
/drivers/staging/rdma/hfi1/
Dsdma.c2782 int pad_len, rval; in ext_coal_sdma_tx_descs() local
2816 pad_len = tx->packet_len & (sizeof(u32) - 1); in ext_coal_sdma_tx_descs()
2817 if (pad_len) { in ext_coal_sdma_tx_descs()
2818 pad_len = sizeof(u32) - pad_len; in ext_coal_sdma_tx_descs()
2819 memset(tx->coalesce_buf + tx->coalesce_idx, 0, pad_len); in ext_coal_sdma_tx_descs()
2821 tx->packet_len += pad_len; in ext_coal_sdma_tx_descs()
2822 tx->tlen += pad_len; in ext_coal_sdma_tx_descs()
/drivers/net/ethernet/intel/fm10k/
Dfm10k_netdev.c656 int pad_len = 17 - skb->len; in fm10k_xmit_frame() local
658 if (skb_pad(skb, pad_len)) in fm10k_xmit_frame()
660 __skb_put(skb, pad_len); in fm10k_xmit_frame()
/drivers/net/wireless/ath/ath6kl/
Dhtc_mbox.c1951 int pad_len; in ath6kl_htc_rx_bundle() local
1956 pad_len = CALC_TXRX_PADDED_LEN(target, in ath6kl_htc_rx_bundle()
1959 if ((rem_space - pad_len) < 0) { in ath6kl_htc_rx_bundle()
1964 rem_space -= pad_len; in ath6kl_htc_rx_bundle()
1977 scat_req->scat_list[i].len = pad_len; in ath6kl_htc_rx_bundle()
/drivers/scsi/
Dlibiscsi.c186 unsigned rlen, pad_len; in iscsi_prep_ecdb_ahs() local
197 pad_len = iscsi_padding(rlen); in iscsi_prep_ecdb_ahs()
200 sizeof(ecdb_ahdr->ahstype) + ahslength + pad_len); in iscsi_prep_ecdb_ahs()
204 if (pad_len) in iscsi_prep_ecdb_ahs()
205 memset(&ecdb_ahdr->ecdb[rlen], 0, pad_len); in iscsi_prep_ecdb_ahs()
215 "%u\n", cmd->cmd_len, rlen, pad_len, ahslength, in iscsi_prep_ecdb_ahs()
/drivers/net/wireless/ti/wl12xx/
Dmain.c1369 data_len < sizeof(*desc) + desc->pad_len) in wl12xx_get_rx_packet_len()
1372 return data_len - sizeof(*desc) - desc->pad_len; in wl12xx_get_rx_packet_len()
/drivers/net/ethernet/octeon/
Docteon_mgmt.c1185 rxx_frm_ctl.s.pad_len = 1; in octeon_mgmt_open()