/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 | 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 | 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 | asix_common.c | 268 int padlen; in asix_tx_fixup() local 275 padlen = ((skb->len + 4) & (dev->maxpacket - 1)) ? 0 : 4; in asix_tx_fixup() 290 !(padlen && skb_cloned(skb)) && in asix_tx_fixup() 291 headroom + tailroom >= 4 + padlen) { in asix_tx_fixup() 294 tailroom < padlen) { in asix_tx_fixup() 301 skb2 = skb_copy_expand(skb, 4, padlen, flags); in asix_tx_fixup() 312 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/crypto/aspeed/ |
D | aspeed-hace-hash.c | 91 unsigned int index, padlen; in aspeed_ahash_fill_padding() local 102 padlen = (index < 56) ? (56 - index) : ((64 + 56) - index); in aspeed_ahash_fill_padding() 104 memset(rctx->buffer + rctx->bufcnt + 1, 0, padlen - 1); in aspeed_ahash_fill_padding() 105 memcpy(rctx->buffer + rctx->bufcnt + padlen, bits, 8); in aspeed_ahash_fill_padding() 106 rctx->bufcnt += padlen + 8; in aspeed_ahash_fill_padding() 113 padlen = (index < 112) ? (112 - index) : ((128 + 112) - index); in aspeed_ahash_fill_padding() 115 memset(rctx->buffer + rctx->bufcnt + 1, 0, padlen - 1); in aspeed_ahash_fill_padding() 116 memcpy(rctx->buffer + rctx->bufcnt + padlen, bits, 16); in aspeed_ahash_fill_padding() 117 rctx->bufcnt += padlen + 16; in aspeed_ahash_fill_padding()
|
/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/net/ethernet/asix/ |
D | ax88796c_main.c | 252 u8 padlen, seq_num; in ax88796c_tx_fixup() local 268 padlen = round_up(pkt_len, 4) - pkt_len; in ax88796c_tx_fixup() 275 (tailroom < (padlen + TX_EOP_SIZE))) { in ax88796c_tx_fixup() 277 size_t t = max((padlen + TX_EOP_SIZE) - tailroom, 0); in ax88796c_tx_fixup() 293 skb_put(skb, padlen); in ax88796c_tx_fixup()
|
/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/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 1131 u8 padlen; in ixgbe_ipsec_tx() local 1135 &padlen, 1); in ixgbe_ipsec_tx() 1138 itd->trailer_len = authlen + 2 + padlen; in ixgbe_ipsec_tx()
|
/drivers/net/ethernet/xscale/ |
D | ixp4xx_eth.c | 225 u8 padlen; member 235 u8 padlen; member 627 desc->qos, desc->padlen, desc->vlan_tci, in debug_desc()
|
/drivers/net/ethernet/cadence/ |
D | macb_main.c | 2204 int padlen = ETH_ZLEN - (*skb)->len; in macb_pad_and_fcs() local 2214 if (padlen <= 0) { in macb_pad_and_fcs() 2220 padlen = ETH_FCS_LEN; in macb_pad_and_fcs() 2223 padlen += ETH_FCS_LEN; in macb_pad_and_fcs() 2226 if (cloned || tailroom < padlen) { in macb_pad_and_fcs() 2227 nskb = skb_copy_expand(*skb, 0, padlen, GFP_ATOMIC); in macb_pad_and_fcs() 2235 if (padlen > ETH_FCS_LEN) in macb_pad_and_fcs() 2236 skb_put_zero(*skb, padlen - ETH_FCS_LEN); in macb_pad_and_fcs()
|