Home
last modified time | relevance | path

Searched refs:unaligned_len (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/sgi/
A Dmeth.c625 int unaligned_len = (int)((unsigned long)buffer_data - (unsigned long)skb->data); in meth_tx_1page_prepare() local
626 int buffer_len = skb->len - unaligned_len; in meth_tx_1page_prepare()
632 if (unaligned_len) { in meth_tx_1page_prepare()
633 skb_copy_from_linear_data(skb, desc->data.dt + (120 - unaligned_len), in meth_tx_1page_prepare()
634 unaligned_len); in meth_tx_1page_prepare()
635 desc->header.raw |= (128 - unaligned_len) << 16; in meth_tx_1page_prepare()
653 int buffer2_len = skb->len - buffer1_len - unaligned_len; in meth_tx_2page_prepare()
658 if (unaligned_len){ in meth_tx_2page_prepare()
659 skb_copy_from_linear_data(skb, desc->data.dt + (120 - unaligned_len), in meth_tx_2page_prepare()
660 unaligned_len); in meth_tx_2page_prepare()
[all …]
/linux/crypto/
A Dshash.c97 unsigned int unaligned_len = alignmask + 1 - in shash_update_unaligned() local
107 if (WARN_ON(buf + unaligned_len > ubuf + sizeof(ubuf))) in shash_update_unaligned()
110 if (unaligned_len > len) in shash_update_unaligned()
111 unaligned_len = len; in shash_update_unaligned()
113 memcpy(buf, data, unaligned_len); in shash_update_unaligned()
114 err = shash->update(desc, buf, unaligned_len); in shash_update_unaligned()
115 memset(buf, 0, unaligned_len); in shash_update_unaligned()
118 shash->update(desc, data + unaligned_len, len - unaligned_len); in shash_update_unaligned()

Completed in 8 milliseconds