Lines Matching defs:ptr
419 static void smc_options_write(__be32 *ptr, u16 *options)
424 *ptr++ = htonl((TCPOPT_NOP << 24) |
428 *ptr++ = htonl(TCPOPT_SMC_MAGIC);
447 static void mptcp_options_write(__be32 *ptr, struct tcp_out_options *opts)
451 mptcp_write_options(ptr, &opts->mptcp);
607 static void tcp_options_write(__be32 *ptr, struct tcp_sock *tp,
613 *ptr++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) |
616 opts->hash_location = (__u8 *)ptr;
617 ptr += 4;
621 *ptr++ = htonl((TCPOPT_MSS << 24) |
628 *ptr++ = htonl((TCPOPT_SACK_PERM << 24) |
634 *ptr++ = htonl((TCPOPT_NOP << 24) |
639 *ptr++ = htonl(opts->tsval);
640 *ptr++ = htonl(opts->tsecr);
644 *ptr++ = htonl((TCPOPT_NOP << 24) |
651 *ptr++ = htonl((TCPOPT_NOP << 24) |
662 *ptr++ = htonl((TCPOPT_NOP << 24) |
670 *ptr++ = htonl(sp[this_sack].start_seq);
671 *ptr++ = htonl(sp[this_sack].end_seq);
679 u8 *p = (u8 *)ptr;
684 *ptr = htonl((TCPOPT_EXP << 24) | (len << 16) |
698 ptr += (len + 3) >> 2;
701 smc_options_write(ptr, &options);
703 mptcp_options_write(ptr, opts);