Lines Matching defs:ptr

22 	u8 *ptr = buf;
44 packet_log(" MH 0x%08x\n", be32_to_cpup((__be32 *)ptr));
59 ptr += sizeof(spuh->mh) + sizeof(spuh->emh); /* skip emh. unused */
104 ptr += sizeof(struct SCTX);
144 packet_dump(" KEY: ", ptr, hash_key_len);
145 ptr += hash_key_len;
166 packet_dump(" KEY: ", ptr, hash_key_len);
167 ptr += hash_key_len;
209 packet_dump(" State: ", ptr, hash_state_len);
210 ptr += hash_state_len;
250 packet_dump(" KEY2: ", ptr, cipher_key_len);
251 ptr += cipher_key_len;
252 packet_dump(" KEY1: ", ptr, cipher_key_len);
253 ptr += cipher_key_len;
257 packet_dump(" KEY: ", ptr, cipher_key_len);
258 ptr += cipher_key_len;
268 packet_dump(" IV: ", ptr, iv_len);
269 ptr += iv_len;
276 struct BDESC_HEADER *bdesc = (struct BDESC_HEADER *)ptr;
278 packet_log(" BDESC[0] 0x%08x\n", be32_to_cpup((__be32 *)ptr));
282 ptr += sizeof(u32);
284 packet_log(" BDESC[1] 0x%08x\n", be32_to_cpup((__be32 *)ptr));
288 ptr += sizeof(u32);
290 packet_log(" BDESC[2] 0x%08x\n", be32_to_cpup((__be32 *)ptr));
294 ptr += sizeof(u32);
299 struct BD_HEADER *bd = (struct BD_HEADER *)ptr;
301 packet_log(" BD[0] 0x%08x\n", be32_to_cpup((__be32 *)ptr));
304 ptr += 4;
308 if (buf + buf_len != ptr) {
310 packet_log("buf:%p buf_len:%u buf+buf_len:%p ptr:%p\n",
311 buf, buf_len, buf + buf_len, ptr);
597 u8 *ptr;
666 ptr = spu_hdr;
667 memset(ptr, 0, sizeof(struct SPUHEADER));
671 spuh = (struct SPUHEADER *)ptr;
672 ptr += sizeof(struct SPUHEADER);
704 memcpy(ptr, hash_parms->key_buf, hash_parms->key_len);
705 ptr += hash_parms->key_len;
738 memcpy(ptr, cipher_parms->key_buf,
740 ptr += cipher_parms->key_len;
754 memcpy(ptr, cipher_parms->iv_buf, cipher_parms->iv_len);
756 ptr += cipher_parms->iv_len;
784 bdesc = (struct BDESC_HEADER *)ptr;
801 ptr += sizeof(struct BDESC_HEADER);
809 bd = (struct BD_HEADER *)ptr;
813 ptr += sizeof(struct BD_HEADER);
839 u8 *ptr = spu_hdr;
850 ptr += sizeof(struct SPUHEADER);
865 ptr += cipher_parms->key_len;
876 ptr += cipher_parms->iv_len;
1032 u8 *ptr = pad_start;
1038 memset(ptr, 0, gcm_ccm_padding);
1039 ptr += gcm_ccm_padding;
1044 memset(ptr, 0, hash_pad_len);
1049 ptr += hash_pad_len;
1052 *ptr = 0x80;
1053 ptr += (hash_pad_len - sizeof(u64));
1057 *(__le64 *)ptr = cpu_to_le64(total_sent * 8ull);
1059 *(__be64 *)ptr = cpu_to_be64(total_sent * 8ull);
1060 ptr += sizeof(u64);
1069 memset(ptr, 0, status_padding);
1070 ptr += status_padding;