Home
last modified time | relevance | path

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

/drivers/net/usb/
Dcdc_eem.c110 int padlen = 0; in eem_tx_fixup() local
119 padlen += 2; in eem_tx_fixup()
125 if ((tailroom >= ETH_FCS_LEN + padlen) && in eem_tx_fixup()
130 > (EEM_HEAD + ETH_FCS_LEN + padlen)) { in eem_tx_fixup()
140 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup()
163 if (padlen) in eem_tx_fixup()
Dgl620a.c151 int padlen; in genelink_tx_fixup() local
159 padlen = ((skb->len + (4 + 4*1)) % 64) ? 0 : 1; in genelink_tx_fixup()
162 && ((headroom + tailroom) >= (padlen + (4 + 4*1)))) { in genelink_tx_fixup()
163 if ((headroom < (4 + 4*1)) || (tailroom < padlen)) { in genelink_tx_fixup()
170 skb2 = skb_copy_expand(skb, (4 + 4*1) , padlen, flags); in genelink_tx_fixup()
Dkalmia.c172 u8 remainder, padlen = 0; in kalmia_tx_fixup() local
219 padlen = KALMIA_ALIGN_SIZE - remainder; in kalmia_tx_fixup()
220 memset(skb_put(skb, padlen), 0, padlen); in kalmia_tx_fixup()
225 content_len, padlen, header_start); in kalmia_tx_fixup()
Dzaurus.c59 int padlen; in zaurus_tx_fixup() local
62 padlen = 2; in zaurus_tx_fixup()
65 if ((padlen + 4) <= tailroom) in zaurus_tx_fixup()
68 skb2 = skb_copy_expand(skb, 0, 4 + padlen, flags); in zaurus_tx_fixup()
Dnet1080.c441 int padlen = sizeof (struct nc_trailer); in net1080_tx_fixup() local
444 if (!((len + padlen + sizeof (struct nc_header)) & 0x01)) in net1080_tx_fixup()
445 padlen++; in net1080_tx_fixup()
450 if (padlen <= tailroom && in net1080_tx_fixup()
455 if ((sizeof (struct nc_header) + padlen) < in net1080_tx_fixup()
469 padlen, in net1080_tx_fixup()
Dasix_common.c199 int padlen; in asix_tx_fixup() local
205 padlen = ((skb->len + 4) & (dev->maxpacket - 1)) ? 0 : 4; in asix_tx_fixup()
220 !(padlen && skb_cloned(skb)) && in asix_tx_fixup()
221 headroom + tailroom >= 4 + padlen) { in asix_tx_fixup()
224 tailroom < padlen) { in asix_tx_fixup()
231 skb2 = skb_copy_expand(skb, 4, padlen, flags); in asix_tx_fixup()
243 if (padlen) { in asix_tx_fixup()
Dsr9800.c117 int padlen; in sr_tx_fixup() local
119 padlen = ((skb->len + 4) % (dev->maxpacket - 1)) ? 0 : 4; in sr_tx_fixup()
121 if ((!skb_cloned(skb)) && ((headroom + tailroom) >= (4 + padlen))) { in sr_tx_fixup()
122 if ((headroom < 4) || (tailroom < padlen)) { in sr_tx_fixup()
129 skb2 = skb_copy_expand(skb, 4, padlen, flags); in sr_tx_fixup()
141 if (padlen) { in sr_tx_fixup()
/drivers/crypto/
Dpadlock-sha.c362 unsigned int partial, padlen; in padlock_sha1_final_nano() local
370 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha1_final_nano()
371 padlock_sha1_update_nano(desc, padding, padlen); in padlock_sha1_final_nano()
452 unsigned int partial, padlen; in padlock_sha256_final_nano() local
460 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha256_final_nano()
461 padlock_sha256_update_nano(desc, padding, padlen); in padlock_sha256_final_nano()
Datmel-aes.c530 size_t padlen = atmel_aes_padlen(len, AES_BLOCK_SIZE); in atmel_aes_cpu_start() local
540 dd->datalen = len + padlen; in atmel_aes_cpu_start()
607 size_t padlen; in atmel_aes_map() local
620 padlen = atmel_aes_padlen(len, dd->ctx->block_size); in atmel_aes_map()
622 if (dd->buflen < len + padlen) in atmel_aes_map()
639 sg_set_buf(&dd->aligned_sg, dd->buf, len + padlen); in atmel_aes_map()
1457 size_t datalen, padlen; in atmel_aes_gcm_start() local
1474 padlen = atmel_aes_padlen(ivsize, AES_BLOCK_SIZE); in atmel_aes_gcm_start()
1475 datalen = ivsize + padlen + AES_BLOCK_SIZE; in atmel_aes_gcm_start()
1480 memset(data + ivsize, 0, padlen + sizeof(u64)); in atmel_aes_gcm_start()
[all …]
Datmel-sha.c226 unsigned int index, padlen; in atmel_sha_fill_padding() local
246 padlen = (index < 112) ? (112 - index) : ((128+112) - index); in atmel_sha_fill_padding()
248 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding()
249 memcpy(ctx->buffer + ctx->bufcnt + padlen, bits, 16); in atmel_sha_fill_padding()
250 ctx->bufcnt += padlen + 16; in atmel_sha_fill_padding()
254 padlen = (index < 56) ? (56 - index) : ((64+56) - index); in atmel_sha_fill_padding()
256 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding()
257 memcpy(ctx->buffer + ctx->bufcnt + padlen, &bits[1], 8); in atmel_sha_fill_padding()
258 ctx->bufcnt += padlen + 8; in atmel_sha_fill_padding()
/drivers/usb/gadget/function/
Df_eem.c344 int headroom, tailroom, padlen = 0; in eem_wrap() local
358 padlen += 2; in eem_wrap()
360 if ((tailroom >= (ETH_FCS_LEN + padlen)) && in eem_wrap()
364 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap()
383 if (padlen) in eem_wrap()
/drivers/crypto/marvell/
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 index, 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()
147 memcpy(buf + padlen, &bits, sizeof(bits)); in mv_cesa_ahash_pad_req()
150 memcpy(buf + padlen, &bits, sizeof(bits)); in mv_cesa_ahash_pad_req()
153 return padlen + 8; in mv_cesa_ahash_pad_req()
/drivers/net/irda/
Dks959-sir.c292 unsigned int padlen; in ks959_submit_tx_fragment() local
304 padlen = obfuscate_tx_buffer(kingsun->tx_buf_clear, wraplen, in ks959_submit_tx_fragment()
310 kingsun->tx_setuprequest->wLength = cpu_to_le16(padlen); in ks959_submit_tx_fragment()
315 kingsun->tx_buf_xored, padlen, in ks959_submit_tx_fragment()
/drivers/crypto/sunxi-ss/
Dsun4i-ss-hash.c195 unsigned int index, padlen; in sun4i_hash() local
426 padlen = (index < 56) ? (56 - index) : ((64 + 56) - index); in sun4i_hash()
427 zeros = (padlen - 1) / 4; in sun4i_hash()
/drivers/staging/unisys/visornic/
Dvisornic_main.c765 int len, firstfraglen, padlen; in visornic_xmit() local
807 padlen = ETH_MIN_PACKET_SIZE - len; in visornic_xmit()
808 memset(&skb->data[len], 0, padlen); in visornic_xmit()
809 skb->tail += padlen; in visornic_xmit()
810 skb->len += padlen; in visornic_xmit()
811 len += padlen; in visornic_xmit()
812 firstfraglen += padlen; in visornic_xmit()
/drivers/hid/usbhid/
Dhid-core.c385 int maxpacket, padlen; in hid_submit_ctrl() local
391 padlen = DIV_ROUND_UP(len, maxpacket); in hid_submit_ctrl()
392 padlen *= maxpacket; in hid_submit_ctrl()
393 if (padlen > usbhid->bufsize) in hid_submit_ctrl()
394 padlen = usbhid->bufsize; in hid_submit_ctrl()
396 padlen = 0; in hid_submit_ctrl()
397 usbhid->urbctrl->transfer_buffer_length = padlen; in hid_submit_ctrl()
/drivers/scsi/cxgbi/
Dlibcxgbi.c1897 int i, padlen = iscsi_padding(count); in cxgbi_conn_init_pdu() local
1935 (padlen && tdata->nr_frags == MAX_SKB_FRAGS)) { in cxgbi_conn_init_pdu()
1947 if (padlen) { in cxgbi_conn_init_pdu()
1948 memset(dst, 0, padlen); in cxgbi_conn_init_pdu()
1949 padlen = 0; in cxgbi_conn_init_pdu()
1951 skb_put(skb, count + padlen); in cxgbi_conn_init_pdu()
1978 if (padlen) { in cxgbi_conn_init_pdu()
1982 padlen); in cxgbi_conn_init_pdu()
1984 skb->data_len += padlen; in cxgbi_conn_init_pdu()
1985 skb->truesize += padlen; in cxgbi_conn_init_pdu()
[all …]
/drivers/net/ethernet/xscale/
Dixp4xx_eth.c208 u8 padlen; member
218 u8 padlen; member
618 desc->qos, desc->padlen, desc->vlan_tci, in debug_desc()