Searched refs:unaligned_len (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/drivers/net/ |
D | meth.c | 616 int unaligned_len = (int)((unsigned long)buffer_data - (unsigned long)skb->data); in meth_tx_1page_prepare() local 617 int buffer_len = skb->len - unaligned_len; in meth_tx_1page_prepare() 623 if (unaligned_len) { in meth_tx_1page_prepare() 624 skb_copy_from_linear_data(skb, desc->data.dt + (120 - unaligned_len), in meth_tx_1page_prepare() 625 unaligned_len); in meth_tx_1page_prepare() 626 desc->header.raw |= (128 - unaligned_len) << 16; in meth_tx_1page_prepare() 642 int unaligned_len = (int)((unsigned long)buffer1_data - (unsigned long)skb->data); in meth_tx_2page_prepare() local 644 int buffer2_len = skb->len - buffer1_len - unaligned_len; in meth_tx_2page_prepare() 649 if (unaligned_len){ in meth_tx_2page_prepare() 650 skb_copy_from_linear_data(skb, desc->data.dt + (120 - unaligned_len), in meth_tx_2page_prepare() [all …]
|
/linux-2.6.39/crypto/ |
D | shash.c | 77 unsigned int unaligned_len = alignmask + 1 - in shash_update_unaligned() local 79 u8 ubuf[shash_align_buffer_size(unaligned_len, alignmask)] in shash_update_unaligned() 84 if (unaligned_len > len) in shash_update_unaligned() 85 unaligned_len = len; in shash_update_unaligned() 87 memcpy(buf, data, unaligned_len); in shash_update_unaligned() 88 err = shash->update(desc, buf, unaligned_len); in shash_update_unaligned() 89 memset(buf, 0, unaligned_len); in shash_update_unaligned() 92 shash->update(desc, data + unaligned_len, len - unaligned_len); in shash_update_unaligned()
|