/drivers/net/usb/ |
D | cdc_eem.c | 95 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()
|
D | gl620a.c | 138 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()
|
D | net1080.c | 419 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()
|
D | kalmia.c | 164 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()
|
D | zaurus.c | 47 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()
|
D | asix_common.c | 247 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()
|
D | sr9800.c | 117 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/ |
D | padlock-sha.c | 332 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()
|
D | atmel-aes-regs.h | 81 #define AES_EMR_PADLEN(padlen) (((padlen) << AES_EMR_PADLEN_OFFSET) &\ argument
|
D | atmel-aes.c | 644 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 …]
|
D | atmel-sha.c | 363 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/ |
D | f_eem.c | 345 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/ |
D | hash.c | 128 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/ |
D | ipsec.c | 524 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/ |
D | libcxgbi.c | 2154 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/ |
D | visornic_main.c | 853 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/ |
D | ixgbe_ipsec.c | 1132 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/ |
D | ixp4xx_eth.c | 210 u8 padlen; member 220 u8 padlen; member 615 desc->qos, desc->padlen, desc->vlan_tci, in debug_desc()
|
/drivers/net/ethernet/cadence/ |
D | macb_main.c | 2160 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()
|