• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/rxrpc/

Lines Matching refs:sg

115 	struct scatterlist sg[2];
138 memset(sg, 0, sizeof(sg));
139 sg_set_buf(&sg[0], &tmpbuf, sizeof(tmpbuf));
140 sg_set_buf(&sg[1], &tmpbuf, sizeof(tmpbuf));
141 crypto_blkcipher_encrypt_iv(&desc, &sg[0], &sg[1], sizeof(tmpbuf));
160 struct scatterlist sg[2];
183 memset(sg, 0, sizeof(sg));
184 sg_set_buf(&sg[0], &tmpbuf, sizeof(tmpbuf));
185 sg_set_buf(&sg[1], &tmpbuf, sizeof(tmpbuf));
186 crypto_blkcipher_encrypt_iv(&desc, &sg[0], &sg[1], sizeof(tmpbuf));
208 struct scatterlist sg[16];
230 memset(sg, 0, sizeof(sg[0]) * 2);
231 sg_set_buf(&sg[0], sechdr, sizeof(rxkhdr));
232 sg_set_buf(&sg[1], &rxkhdr, sizeof(rxkhdr));
233 crypto_blkcipher_encrypt_iv(&desc, &sg[0], &sg[1], sizeof(rxkhdr));
243 skb_to_sgvec(skb, sg, 0, len);
244 crypto_blkcipher_encrypt_iv(&desc, sg, sg, len);
261 struct scatterlist sg[2];
293 memset(&sg, 0, sizeof(sg));
294 sg_set_buf(&sg[0], &tmpbuf, sizeof(tmpbuf));
295 sg_set_buf(&sg[1], &tmpbuf, sizeof(tmpbuf));
296 crypto_blkcipher_encrypt_iv(&desc, &sg[0], &sg[1], sizeof(tmpbuf));
335 struct scatterlist sg[2];
348 skb_to_sgvec(skb, sg, 0, 8);
356 crypto_blkcipher_decrypt_iv(&desc, sg, sg, 8);
407 struct scatterlist _sg[4], *sg;
422 sg = _sg;
424 sg = kmalloc(sizeof(*sg) * nsg, GFP_NOIO);
425 if (!sg)
429 skb_to_sgvec(skb, sg, 0, skb->len);
438 crypto_blkcipher_decrypt_iv(&desc, sg, sg, skb->len);
439 if (sg != _sg)
440 kfree(sg);
489 struct scatterlist sg[2];
524 memset(&sg, 0, sizeof(sg));
525 sg_set_buf(&sg[0], &tmpbuf, sizeof(tmpbuf));
526 sg_set_buf(&sg[1], &tmpbuf, sizeof(tmpbuf));
527 crypto_blkcipher_encrypt_iv(&desc, &sg[0], &sg[1], sizeof(tmpbuf));
690 static void rxkad_sg_set_buf2(struct scatterlist sg[2],
694 memset(sg, 0, sizeof(sg));
696 sg_set_buf(&sg[0], buf, buflen);
697 if (sg[0].offset + buflen > PAGE_SIZE) {
699 sg[0].length = PAGE_SIZE - sg[0].offset;
700 sg_set_buf(&sg[1], buf + sg[0].length, buflen - sg[0].length);
703 ASSERTCMP(sg[0].length + sg[1].length, ==, buflen);