Home
last modified time | relevance | path

Searched refs:padlen (Results 1 – 22 of 22) sorted by relevance

/drivers/net/usb/
Dcdc_eem.c95 int padlen = 0; in eem_tx_fixup() local
104 padlen += 2; in eem_tx_fixup()
110 if ((tailroom >= ETH_FCS_LEN + padlen) && in eem_tx_fixup()
115 > (EEM_HEAD + ETH_FCS_LEN + padlen)) { in eem_tx_fixup()
125 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup()
148 if (padlen) in eem_tx_fixup()
Dgl620a.c138 int padlen; in genelink_tx_fixup() local
146 padlen = ((skb->len + (4 + 4*1)) % 64) ? 0 : 1; in genelink_tx_fixup()
149 && ((headroom + tailroom) >= (padlen + (4 + 4*1)))) { in genelink_tx_fixup()
150 if ((headroom < (4 + 4*1)) || (tailroom < padlen)) { in genelink_tx_fixup()
157 skb2 = skb_copy_expand(skb, (4 + 4*1) , padlen, flags); in genelink_tx_fixup()
Dnet1080.c419 int padlen = sizeof (struct nc_trailer); in net1080_tx_fixup() local
422 if (!((len + padlen + sizeof (struct nc_header)) & 0x01)) in net1080_tx_fixup()
423 padlen++; in net1080_tx_fixup()
428 if (padlen <= tailroom && in net1080_tx_fixup()
433 if ((sizeof (struct nc_header) + padlen) < in net1080_tx_fixup()
447 padlen, in net1080_tx_fixup()
Dzaurus.c47 int padlen; in zaurus_tx_fixup() local
50 padlen = 2; in zaurus_tx_fixup()
53 if ((padlen + 4) <= tailroom) in zaurus_tx_fixup()
56 skb2 = skb_copy_expand(skb, 0, 4 + padlen, flags); in zaurus_tx_fixup()
Dkalmia.c164 u8 remainder, padlen = 0; in kalmia_tx_fixup() local
211 padlen = KALMIA_ALIGN_SIZE - remainder; in kalmia_tx_fixup()
212 skb_put_zero(skb, padlen); in kalmia_tx_fixup()
217 content_len, padlen, header_start); in kalmia_tx_fixup()
Dasix_common.c219 int padlen; in asix_tx_fixup() local
226 padlen = ((skb->len + 4) & (dev->maxpacket - 1)) ? 0 : 4; in asix_tx_fixup()
241 !(padlen && skb_cloned(skb)) && in asix_tx_fixup()
242 headroom + tailroom >= 4 + padlen) { in asix_tx_fixup()
245 tailroom < padlen) { in asix_tx_fixup()
252 skb2 = skb_copy_expand(skb, 4, padlen, flags); in asix_tx_fixup()
263 if (padlen) { in asix_tx_fixup()
Dsr9800.c117 int padlen; in sr_tx_fixup() local
120 padlen = ((skb->len + 4) % (dev->maxpacket - 1)) ? 0 : 4; in sr_tx_fixup()
122 if ((!skb_cloned(skb)) && ((headroom + tailroom) >= (4 + padlen))) { in sr_tx_fixup()
123 if ((headroom < 4) || (tailroom < padlen)) { in sr_tx_fixup()
130 skb2 = skb_copy_expand(skb, 4, padlen, flags); in sr_tx_fixup()
141 if (padlen) { in sr_tx_fixup()
/drivers/crypto/
Dpadlock-sha.c331 unsigned int partial, padlen; in padlock_sha1_final_nano() local
339 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha1_final_nano()
340 padlock_sha1_update_nano(desc, padding, padlen); in padlock_sha1_final_nano()
416 unsigned int partial, padlen; in padlock_sha256_final_nano() local
424 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha256_final_nano()
425 padlock_sha256_update_nano(desc, padding, padlen); in padlock_sha256_final_nano()
Datmel-aes-regs.h81 #define AES_EMR_PADLEN(padlen) (((padlen) << AES_EMR_PADLEN_OFFSET) &\ argument
Datmel-aes.c651 size_t padlen = atmel_aes_padlen(len, AES_BLOCK_SIZE); in atmel_aes_cpu_start() local
661 dd->datalen = len + padlen; in atmel_aes_cpu_start()
728 size_t padlen; in atmel_aes_map() local
741 padlen = atmel_aes_padlen(len, dd->ctx->block_size); in atmel_aes_map()
743 if (dd->buflen < len + padlen) in atmel_aes_map()
760 sg_set_buf(&dd->aligned_sg, dd->buf, len + padlen); in atmel_aes_map()
1480 size_t datalen, padlen; in atmel_aes_gcm_start() local
1497 padlen = atmel_aes_padlen(ivsize, AES_BLOCK_SIZE); in atmel_aes_gcm_start()
1498 datalen = ivsize + padlen + AES_BLOCK_SIZE; in atmel_aes_gcm_start()
1503 memset(data + ivsize, 0, padlen + sizeof(u64)); in atmel_aes_gcm_start()
[all …]
Datmel-sha.c362 unsigned int index, padlen; in atmel_sha_fill_padding() local
384 padlen = (index < 112) ? (112 - index) : ((128+112) - index); in atmel_sha_fill_padding()
386 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding()
387 memcpy(ctx->buffer + ctx->bufcnt + padlen, bits, 16); in atmel_sha_fill_padding()
388 ctx->bufcnt += padlen + 16; in atmel_sha_fill_padding()
394 padlen = (index < 56) ? (56 - index) : ((64+56) - index); in atmel_sha_fill_padding()
396 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding()
397 memcpy(ctx->buffer + ctx->bufcnt + padlen, &bits[1], 8); in atmel_sha_fill_padding()
398 ctx->bufcnt += padlen + 8; in atmel_sha_fill_padding()
/drivers/usb/gadget/function/
Df_eem.c345 int headroom, tailroom, padlen = 0; in eem_wrap() local
359 padlen += 2; in eem_wrap()
361 if ((tailroom >= (ETH_FCS_LEN + padlen)) && in eem_wrap()
365 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap()
384 if (padlen) in eem_wrap()
/drivers/crypto/mediatek/
Dmtk-sha.c241 u32 index, padlen; in mtk_sha_fill_padding() local
255 padlen = (index < 112) ? (112 - index) : ((128 + 112) - index); in mtk_sha_fill_padding()
257 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen - 1); in mtk_sha_fill_padding()
258 memcpy(ctx->buffer + ctx->bufcnt + padlen, bits, 16); in mtk_sha_fill_padding()
259 ctx->bufcnt += padlen + 16; in mtk_sha_fill_padding()
265 padlen = (index < 56) ? (56 - index) : ((64 + 56) - index); in mtk_sha_fill_padding()
267 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen - 1); in mtk_sha_fill_padding()
268 memcpy(ctx->buffer + ctx->bufcnt + padlen, &bits[1], 8); in mtk_sha_fill_padding()
269 ctx->bufcnt += padlen + 8; in mtk_sha_fill_padding()
Dmtk-aes.c450 size_t padlen = 0; in mtk_aes_dma() local
465 padlen = mtk_aes_padlen(len); in mtk_aes_dma()
467 if (len + padlen > AES_BUF_SIZE) in mtk_aes_dma()
484 sg_set_buf(&aes->aligned_sg, aes->buf, len + padlen); in mtk_aes_dma()
487 mtk_aes_info_init(cryp, aes, len + padlen); in mtk_aes_dma()
/drivers/crypto/marvell/cesa/
Dhash.c127 unsigned int index, padlen; in mv_cesa_ahash_pad_len() local
130 padlen = (index < 56) ? (56 - index) : (64 + 56 - index); in mv_cesa_ahash_pad_len()
132 return padlen; in mv_cesa_ahash_pad_len()
137 unsigned int padlen; in mv_cesa_ahash_pad_req() local
141 padlen = mv_cesa_ahash_pad_len(creq); in mv_cesa_ahash_pad_req()
142 memset(buf + 1, 0, padlen - 1); in mv_cesa_ahash_pad_req()
147 memcpy(buf + padlen, &bits, sizeof(bits)); in mv_cesa_ahash_pad_req()
151 memcpy(buf + padlen, &bits, sizeof(bits)); in mv_cesa_ahash_pad_req()
154 return padlen + 8; in mv_cesa_ahash_pad_req()
/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c524 u8 padlen; in ixgbevf_ipsec_tx() local
528 &padlen, 1); in ixgbevf_ipsec_tx()
531 itd->trailer_len = authlen + 2 + padlen; in ixgbevf_ipsec_tx()
/drivers/hid/usbhid/
Dhid-core.c387 int maxpacket, padlen; in hid_submit_ctrl() local
393 padlen = DIV_ROUND_UP(len, maxpacket); in hid_submit_ctrl()
394 padlen *= maxpacket; in hid_submit_ctrl()
395 if (padlen > usbhid->bufsize) in hid_submit_ctrl()
396 padlen = usbhid->bufsize; in hid_submit_ctrl()
398 padlen = 0; in hid_submit_ctrl()
399 usbhid->urbctrl->transfer_buffer_length = padlen; in hid_submit_ctrl()
/drivers/scsi/cxgbi/
Dlibcxgbi.c2154 u32 i, padlen = iscsi_padding(count); in cxgbi_conn_init_pdu() local
2214 (padlen && (tdata->nr_frags == in cxgbi_conn_init_pdu()
2227 if (padlen) { in cxgbi_conn_init_pdu()
2228 memset(dst, 0, padlen); in cxgbi_conn_init_pdu()
2229 padlen = 0; in cxgbi_conn_init_pdu()
2231 skb_put(skb, count + padlen); in cxgbi_conn_init_pdu()
2254 if (padlen) { in cxgbi_conn_init_pdu()
2257 rsvd_page, 0, padlen); in cxgbi_conn_init_pdu()
2259 skb->data_len += padlen; in cxgbi_conn_init_pdu()
2260 skb->truesize += padlen; in cxgbi_conn_init_pdu()
[all …]
/drivers/staging/unisys/visornic/
Dvisornic_main.c855 int len, firstfraglen, padlen; in visornic_xmit() local
898 padlen = ETH_MIN_PACKET_SIZE - len; in visornic_xmit()
899 skb_put_zero(skb, padlen); in visornic_xmit()
900 len += padlen; in visornic_xmit()
901 firstfraglen += padlen; in visornic_xmit()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c1132 u8 padlen; in ixgbe_ipsec_tx() local
1136 &padlen, 1); in ixgbe_ipsec_tx()
1139 itd->trailer_len = authlen + 2 + padlen; in ixgbe_ipsec_tx()
/drivers/net/ethernet/xscale/
Dixp4xx_eth.c207 u8 padlen; member
217 u8 padlen; member
606 desc->qos, desc->padlen, desc->vlan_tci, in debug_desc()
/drivers/net/ethernet/cadence/
Dmacb_main.c1969 int padlen = ETH_ZLEN - (*skb)->len; in macb_pad_and_fcs() local
1979 if (padlen <= 0) { in macb_pad_and_fcs()
1985 padlen = ETH_FCS_LEN; in macb_pad_and_fcs()
1988 padlen += ETH_FCS_LEN; in macb_pad_and_fcs()
1991 if (cloned || tailroom < padlen) { in macb_pad_and_fcs()
1992 nskb = skb_copy_expand(*skb, 0, padlen, GFP_ATOMIC); in macb_pad_and_fcs()
2000 if (padlen > ETH_FCS_LEN) in macb_pad_and_fcs()
2001 skb_put_zero(*skb, padlen - ETH_FCS_LEN); in macb_pad_and_fcs()