Home
last modified time | relevance | path

Searched refs:padlen (Results 1 – 19 of 19) 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()
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()
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()
Dasix_common.c247 int padlen; in asix_tx_fixup() local
254 padlen = ((skb->len + 4) & (dev->maxpacket - 1)) ? 0 : 4; in asix_tx_fixup()
269 !(padlen && skb_cloned(skb)) && in asix_tx_fixup()
270 headroom + tailroom >= 4 + padlen) { in asix_tx_fixup()
273 tailroom < padlen) { in asix_tx_fixup()
280 skb2 = skb_copy_expand(skb, 4, padlen, flags); in asix_tx_fixup()
291 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.c332 unsigned int partial, padlen; in padlock_sha1_final_nano() local
340 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha1_final_nano()
341 padlock_sha1_update_nano(desc, padding, padlen); in padlock_sha1_final_nano()
417 unsigned int partial, padlen; in padlock_sha256_final_nano() local
425 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha256_final_nano()
426 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.c644 size_t padlen = atmel_aes_padlen(len, AES_BLOCK_SIZE); in atmel_aes_cpu_start() local
654 dd->datalen = len + padlen; in atmel_aes_cpu_start()
721 size_t padlen; in atmel_aes_map() local
734 padlen = atmel_aes_padlen(len, dd->ctx->block_size); in atmel_aes_map()
736 if (dd->buflen < len + padlen) in atmel_aes_map()
753 sg_set_buf(&dd->aligned_sg, dd->buf, len + padlen); in atmel_aes_map()
1517 size_t datalen, padlen; in atmel_aes_gcm_start() local
1534 padlen = atmel_aes_padlen(ivsize, AES_BLOCK_SIZE); in atmel_aes_gcm_start()
1535 datalen = ivsize + padlen + AES_BLOCK_SIZE; in atmel_aes_gcm_start()
1540 memset(data + ivsize, 0, padlen + sizeof(u64)); in atmel_aes_gcm_start()
[all …]
Datmel-sha.c363 unsigned int index, padlen; in atmel_sha_fill_padding() local
385 padlen = (index < 112) ? (112 - index) : ((128+112) - index); in atmel_sha_fill_padding()
387 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding()
388 memcpy(ctx->buffer + ctx->bufcnt + padlen, bits, 16); in atmel_sha_fill_padding()
389 ctx->bufcnt += padlen + 16; in atmel_sha_fill_padding()
395 padlen = (index < 56) ? (56 - index) : ((64+56) - index); in atmel_sha_fill_padding()
397 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding()
398 memcpy(ctx->buffer + ctx->bufcnt + padlen, &bits[1], 8); in atmel_sha_fill_padding()
399 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/marvell/cesa/
Dhash.c128 unsigned int index, padlen; in mv_cesa_ahash_pad_len() local
131 padlen = (index < 56) ? (56 - index) : (64 + 56 - index); in mv_cesa_ahash_pad_len()
133 return padlen; in mv_cesa_ahash_pad_len()
138 unsigned int padlen; in mv_cesa_ahash_pad_req() local
142 padlen = mv_cesa_ahash_pad_len(creq); in mv_cesa_ahash_pad_req()
143 memset(buf + 1, 0, padlen - 1); in mv_cesa_ahash_pad_req()
148 memcpy(buf + padlen, &bits, sizeof(bits)); in mv_cesa_ahash_pad_req()
152 memcpy(buf + padlen, &bits, sizeof(bits)); in mv_cesa_ahash_pad_req()
155 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/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.c853 int len, firstfraglen, padlen; in visornic_xmit() local
896 padlen = ETH_MIN_PACKET_SIZE - len; in visornic_xmit()
897 skb_put_zero(skb, padlen); in visornic_xmit()
898 len += padlen; in visornic_xmit()
899 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.c210 u8 padlen; member
220 u8 padlen; member
615 desc->qos, desc->padlen, desc->vlan_tci, in debug_desc()
/drivers/net/ethernet/cadence/
Dmacb_main.c2160 int padlen = ETH_ZLEN - (*skb)->len; in macb_pad_and_fcs() local
2170 if (padlen <= 0) { in macb_pad_and_fcs()
2176 padlen = ETH_FCS_LEN; in macb_pad_and_fcs()
2179 padlen += ETH_FCS_LEN; in macb_pad_and_fcs()
2182 if (cloned || tailroom < padlen) { in macb_pad_and_fcs()
2183 nskb = skb_copy_expand(*skb, 0, padlen, GFP_ATOMIC); in macb_pad_and_fcs()
2191 if (padlen > ETH_FCS_LEN) in macb_pad_and_fcs()
2192 skb_put_zero(*skb, padlen - ETH_FCS_LEN); in macb_pad_and_fcs()