srx               704 drivers/infiniband/sw/siw/siw.h static inline void siw_crc_skb(struct siw_rx_stream *srx, unsigned int len)
srx               710 drivers/infiniband/sw/siw/siw.h 	__wsum crc = *(u32 *)shash_desc_ctx(srx->mpa_crc_hd);
srx               712 drivers/infiniband/sw/siw/siw.h 	crc = __skb_checksum(srx->skb, srx->skb_offset, len, crc,
srx               714 drivers/infiniband/sw/siw/siw.h 	*(u32 *)shash_desc_ctx(srx->mpa_crc_hd) = crc;
srx               393 drivers/infiniband/sw/siw/siw_qp.c 	struct siw_rx_stream *srx = &qp->rx_stream;
srx               394 drivers/infiniband/sw/siw/siw_qp.c 	union iwarp_hdr *rx_hdr = &srx->hdr;
srx                29 drivers/infiniband/sw/siw/siw_qp_rx.c static int siw_rx_umem(struct siw_rx_stream *srx, struct siw_umem *umem,
srx                42 drivers/infiniband/sw/siw/siw_qp_rx.c 				__func__, qp_id(rx_qp(srx)),
srx                46 drivers/infiniband/sw/siw/siw_qp_rx.c 			srx->skb_copied += copied;
srx                47 drivers/infiniband/sw/siw/siw_qp_rx.c 			srx->skb_new -= copied;
srx                54 drivers/infiniband/sw/siw/siw_qp_rx.c 		siw_dbg_qp(rx_qp(srx), "page %pK, bytes=%u\n", p, bytes);
srx                57 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = skb_copy_bits(srx->skb, srx->skb_offset, dest + pg_off,
srx                62 drivers/infiniband/sw/siw/siw_qp_rx.c 			srx->skb_copied += copied;
srx                63 drivers/infiniband/sw/siw/siw_qp_rx.c 			srx->skb_new -= copied;
srx                66 drivers/infiniband/sw/siw/siw_qp_rx.c 				qp_id(rx_qp(srx)), __func__, len, p, rv);
srx                70 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (srx->mpa_crc_hd) {
srx                71 drivers/infiniband/sw/siw/siw_qp_rx.c 			if (rx_qp(srx)->kernel_verbs) {
srx                72 drivers/infiniband/sw/siw/siw_qp_rx.c 				crypto_shash_update(srx->mpa_crc_hd,
srx                87 drivers/infiniband/sw/siw/siw_qp_rx.c 				siw_crc_skb(srx, bytes);
srx                92 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->skb_offset += bytes;
srx                98 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_copied += copied;
srx                99 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_new -= copied;
srx               104 drivers/infiniband/sw/siw/siw_qp_rx.c static int siw_rx_kva(struct siw_rx_stream *srx, void *kva, int len)
srx               108 drivers/infiniband/sw/siw/siw_qp_rx.c 	siw_dbg_qp(rx_qp(srx), "kva: 0x%pK, len: %u\n", kva, len);
srx               110 drivers/infiniband/sw/siw/siw_qp_rx.c 	rv = skb_copy_bits(srx->skb, srx->skb_offset, kva, len);
srx               113 drivers/infiniband/sw/siw/siw_qp_rx.c 			qp_id(rx_qp(srx)), __func__, len, kva, rv);
srx               117 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (srx->mpa_crc_hd)
srx               118 drivers/infiniband/sw/siw/siw_qp_rx.c 		crypto_shash_update(srx->mpa_crc_hd, (u8 *)kva, len);
srx               120 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_offset += len;
srx               121 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_copied += len;
srx               122 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_new -= len;
srx               127 drivers/infiniband/sw/siw/siw_qp_rx.c static int siw_rx_pbl(struct siw_rx_stream *srx, int *pbl_idx,
srx               142 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (siw_rx_kva(srx, (void *)buf_addr, bytes) == bytes) {
srx               164 drivers/infiniband/sw/siw/siw_qp_rx.c static int siw_rresp_check_ntoh(struct siw_rx_stream *srx,
srx               167 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct iwarp_rdma_rresp *rresp = &srx->hdr.rresp;
srx               175 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->ddp_stag = wqe->sqe.sge[0].lkey;
srx               176 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->ddp_to = wqe->sqe.sge[0].laddr;
srx               189 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (unlikely(srx->ddp_stag != sink_stag)) {
srx               191 drivers/infiniband/sw/siw/siw_qp_rx.c 			qp_id(rx_qp(srx)), sink_stag, srx->ddp_stag);
srx               195 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (unlikely(srx->ddp_to != sink_to)) {
srx               197 drivers/infiniband/sw/siw/siw_qp_rx.c 			qp_id(rx_qp(srx)), (unsigned long long)sink_to,
srx               198 drivers/infiniband/sw/siw/siw_qp_rx.c 			(unsigned long long)srx->ddp_to);
srx               203 drivers/infiniband/sw/siw/siw_qp_rx.c 		     (wqe->processed + srx->fpdu_part_rem != wqe->bytes))) {
srx               205 drivers/infiniband/sw/siw/siw_qp_rx.c 			qp_id(rx_qp(srx)),
srx               206 drivers/infiniband/sw/siw/siw_qp_rx.c 			wqe->processed + srx->fpdu_part_rem, wqe->bytes);
srx               212 drivers/infiniband/sw/siw/siw_qp_rx.c 	siw_init_terminate(rx_qp(srx), TERM_ERROR_LAYER_DDP,
srx               228 drivers/infiniband/sw/siw/siw_qp_rx.c static int siw_write_check_ntoh(struct siw_rx_stream *srx,
srx               231 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct iwarp_rdma_write *write = &srx->hdr.rwrite;
srx               238 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->ddp_stag = sink_stag;
srx               239 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->ddp_to = sink_to;
srx               242 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (unlikely(srx->ddp_stag != sink_stag)) {
srx               244 drivers/infiniband/sw/siw/siw_qp_rx.c 				qp_id(rx_qp(srx)), sink_stag,
srx               245 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->ddp_stag);
srx               249 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (unlikely(srx->ddp_to != sink_to)) {
srx               251 drivers/infiniband/sw/siw/siw_qp_rx.c 				qp_id(rx_qp(srx)),
srx               253 drivers/infiniband/sw/siw/siw_qp_rx.c 				(unsigned long long)srx->ddp_to);
srx               260 drivers/infiniband/sw/siw/siw_qp_rx.c 	siw_init_terminate(rx_qp(srx), TERM_ERROR_LAYER_DDP,
srx               276 drivers/infiniband/sw/siw/siw_qp_rx.c static int siw_send_check_ntoh(struct siw_rx_stream *srx,
srx               279 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct iwarp_send_inv *send = &srx->hdr.send_inv;
srx               289 drivers/infiniband/sw/siw/siw_qp_rx.c 			qp_id(rx_qp(srx)), ddp_qn);
srx               293 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (unlikely(ddp_msn != srx->ddp_msn[RDMAP_UNTAGGED_QN_SEND])) {
srx               295 drivers/infiniband/sw/siw/siw_qp_rx.c 			qp_id(rx_qp(srx)), ddp_msn,
srx               296 drivers/infiniband/sw/siw/siw_qp_rx.c 			srx->ddp_msn[RDMAP_UNTAGGED_QN_SEND]);
srx               302 drivers/infiniband/sw/siw/siw_qp_rx.c 			qp_id(rx_qp(srx)), ddp_mo, wqe->processed);
srx               313 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->inval_stag = be32_to_cpu(send->inval_stag);
srx               315 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (unlikely(wqe->bytes < wqe->processed + srx->fpdu_part_rem)) {
srx               316 drivers/infiniband/sw/siw/siw_qp_rx.c 		siw_dbg_qp(rx_qp(srx), "receive space short: %d - %d < %d\n",
srx               317 drivers/infiniband/sw/siw/siw_qp_rx.c 			   wqe->bytes, wqe->processed, srx->fpdu_part_rem);
srx               324 drivers/infiniband/sw/siw/siw_qp_rx.c 	siw_init_terminate(rx_qp(srx), TERM_ERROR_LAYER_DDP,
srx               422 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct siw_rx_stream *srx = &qp->rx_stream;
srx               440 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (srx->state == SIW_GET_DATA_START) {
srx               441 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = siw_send_check_ntoh(srx, frx);
srx               446 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (!srx->fpdu_part_rem) /* zero length SEND */
srx               449 drivers/infiniband/sw/siw/siw_qp_rx.c 	data_bytes = min(srx->fpdu_part_rem, srx->skb_new);
srx               488 drivers/infiniband/sw/siw/siw_qp_rx.c 			rv = siw_rx_kva(srx,
srx               492 drivers/infiniband/sw/siw/siw_qp_rx.c 			rv = siw_rx_umem(srx, mem_p->umem,
srx               495 drivers/infiniband/sw/siw/siw_qp_rx.c 			rv = siw_rx_pbl(srx, &frx->pbl_idx, mem_p,
srx               516 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->fpdu_part_rem -= rv;
srx               517 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->fpdu_part_rcvd += rv;
srx               521 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (!srx->fpdu_part_rem)
srx               541 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct siw_rx_stream *srx = &qp->rx_stream;
srx               546 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (srx->state == SIW_GET_DATA_START) {
srx               547 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (!srx->fpdu_part_rem) /* zero length WRITE */
srx               550 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = siw_write_check_ntoh(srx, frx);
srx               556 drivers/infiniband/sw/siw/siw_qp_rx.c 	bytes = min(srx->fpdu_part_rem, srx->skb_new);
srx               561 drivers/infiniband/sw/siw/siw_qp_rx.c 		rx_mem(frx) = siw_mem_id2obj(qp->sdev, srx->ddp_stag >> 8);
srx               565 drivers/infiniband/sw/siw/siw_qp_rx.c 				   srx->ddp_stag);
srx               582 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (unlikely(mem->stag != srx->ddp_stag)) {
srx               588 drivers/infiniband/sw/siw/siw_qp_rx.c 	rv = siw_check_mem(qp->pd, mem, srx->ddp_to + srx->fpdu_part_rcvd,
srx               601 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = siw_rx_kva(srx,
srx               602 drivers/infiniband/sw/siw/siw_qp_rx.c 			(void *)(uintptr_t)(srx->ddp_to + srx->fpdu_part_rcvd),
srx               605 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = siw_rx_umem(srx, mem->umem,
srx               606 drivers/infiniband/sw/siw/siw_qp_rx.c 				 srx->ddp_to + srx->fpdu_part_rcvd, bytes);
srx               608 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = siw_rx_pbl(srx, &frx->pbl_idx, mem,
srx               609 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->ddp_to + srx->fpdu_part_rcvd, bytes);
srx               617 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->fpdu_part_rem -= rv;
srx               618 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->fpdu_part_rcvd += rv;
srx               620 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (!srx->fpdu_part_rem) {
srx               621 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->ddp_to += srx->fpdu_part_rcvd;
srx               632 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct siw_rx_stream *srx = &qp->rx_stream;
srx               634 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (!srx->fpdu_part_rem)
srx               638 drivers/infiniband/sw/siw/siw_qp_rx.c 		be16_to_cpu(srx->hdr.ctrl.mpa_len));
srx               659 drivers/infiniband/sw/siw/siw_qp_rx.c static int siw_init_rresp(struct siw_qp *qp, struct siw_rx_stream *srx)
srx               664 drivers/infiniband/sw/siw/siw_qp_rx.c 	uint64_t raddr = be64_to_cpu(srx->hdr.rreq.sink_to),
srx               665 drivers/infiniband/sw/siw/siw_qp_rx.c 		 laddr = be64_to_cpu(srx->hdr.rreq.source_to);
srx               666 drivers/infiniband/sw/siw/siw_qp_rx.c 	uint32_t length = be32_to_cpu(srx->hdr.rreq.read_size),
srx               667 drivers/infiniband/sw/siw/siw_qp_rx.c 		 lkey = be32_to_cpu(srx->hdr.rreq.source_stag),
srx               668 drivers/infiniband/sw/siw/siw_qp_rx.c 		 rkey = be32_to_cpu(srx->hdr.rreq.sink_stag),
srx               669 drivers/infiniband/sw/siw/siw_qp_rx.c 		 msn = be32_to_cpu(srx->hdr.rreq.ddp_msn);
srx               674 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (unlikely(msn != srx->ddp_msn[RDMAP_UNTAGGED_QN_RDMA_READ])) {
srx               779 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct siw_rx_stream *srx = &qp->rx_stream;
srx               802 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = siw_rresp_check_ntoh(srx, frx);
srx               815 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (!srx->fpdu_part_rem) /* zero length RRESPONSE */
srx               842 drivers/infiniband/sw/siw/siw_qp_rx.c 	bytes = min(srx->fpdu_part_rem, srx->skb_new);
srx               845 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = siw_rx_kva(srx,
srx               849 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = siw_rx_umem(srx, mem_p->umem, sge->laddr + wqe->processed,
srx               852 drivers/infiniband/sw/siw/siw_qp_rx.c 		rv = siw_rx_pbl(srx, &frx->pbl_idx, mem_p,
srx               859 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->fpdu_part_rem -= rv;
srx               860 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->fpdu_part_rcvd += rv;
srx               863 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (!srx->fpdu_part_rem) {
srx               864 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->ddp_to += srx->fpdu_part_rcvd;
srx               877 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct siw_rx_stream *srx = &qp->rx_stream;
srx               878 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct sk_buff *skb = srx->skb;
srx               879 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct iwarp_terminate *term = &srx->hdr.terminate;
srx               907 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (srx->skb_new < sizeof(struct iwarp_ctrl_tagged))
srx               912 drivers/infiniband/sw/siw/siw_qp_rx.c 	skb_copy_bits(skb, srx->skb_offset, infop, to_copy);
srx               919 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_offset += to_copy;
srx               920 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_new -= to_copy;
srx               921 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_copied += to_copy;
srx               922 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->fpdu_part_rcvd += to_copy;
srx               923 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->fpdu_part_rem -= to_copy;
srx               928 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (to_copy + MPA_CRC_SIZE > srx->skb_new)
srx               931 drivers/infiniband/sw/siw/siw_qp_rx.c 	skb_copy_bits(skb, srx->skb_offset, infop, to_copy);
srx               943 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_new -= to_copy;
srx               944 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_offset += to_copy;
srx               945 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_copied += to_copy;
srx               946 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->fpdu_part_rcvd += to_copy;
srx               947 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->fpdu_part_rem -= to_copy;
srx               952 drivers/infiniband/sw/siw/siw_qp_rx.c static int siw_get_trailer(struct siw_qp *qp, struct siw_rx_stream *srx)
srx               954 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct sk_buff *skb = srx->skb;
srx               955 drivers/infiniband/sw/siw/siw_qp_rx.c 	u8 *tbuf = (u8 *)&srx->trailer.crc - srx->pad;
srx               959 drivers/infiniband/sw/siw/siw_qp_rx.c 		   srx->fpdu_part_rem, srx->skb_new, srx->pad);
srx               961 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (srx->skb_new < srx->fpdu_part_rem)
srx               964 drivers/infiniband/sw/siw/siw_qp_rx.c 	skb_copy_bits(skb, srx->skb_offset, tbuf, srx->fpdu_part_rem);
srx               966 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (srx->mpa_crc_hd && srx->pad)
srx               967 drivers/infiniband/sw/siw/siw_qp_rx.c 		crypto_shash_update(srx->mpa_crc_hd, tbuf, srx->pad);
srx               969 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_new -= srx->fpdu_part_rem;
srx               970 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_offset += srx->fpdu_part_rem;
srx               971 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_copied += srx->fpdu_part_rem;
srx               973 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (!srx->mpa_crc_hd)
srx               980 drivers/infiniband/sw/siw/siw_qp_rx.c 	crypto_shash_final(srx->mpa_crc_hd, (u8 *)&crc_own);
srx               981 drivers/infiniband/sw/siw/siw_qp_rx.c 	crc_in = (__force __wsum)srx->trailer.crc;
srx               997 drivers/infiniband/sw/siw/siw_qp_rx.c static int siw_get_hdr(struct siw_rx_stream *srx)
srx               999 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct sk_buff *skb = srx->skb;
srx              1000 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct siw_qp *qp = rx_qp(srx);
srx              1001 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct iwarp_ctrl *c_hdr = &srx->hdr.ctrl;
srx              1006 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (srx->fpdu_part_rcvd < MIN_DDP_HDR) {
srx              1010 drivers/infiniband/sw/siw/siw_qp_rx.c 		bytes = min_t(int, srx->skb_new,
srx              1011 drivers/infiniband/sw/siw/siw_qp_rx.c 			      MIN_DDP_HDR - srx->fpdu_part_rcvd);
srx              1013 drivers/infiniband/sw/siw/siw_qp_rx.c 		skb_copy_bits(skb, srx->skb_offset,
srx              1014 drivers/infiniband/sw/siw/siw_qp_rx.c 			      (char *)c_hdr + srx->fpdu_part_rcvd, bytes);
srx              1016 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->fpdu_part_rcvd += bytes;
srx              1018 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->skb_new -= bytes;
srx              1019 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->skb_offset += bytes;
srx              1020 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->skb_copied += bytes;
srx              1022 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (srx->fpdu_part_rcvd < MIN_DDP_HDR)
srx              1039 drivers/infiniband/sw/siw/siw_qp_rx.c 			siw_init_terminate(rx_qp(srx), TERM_ERROR_LAYER_DDP,
srx              1047 drivers/infiniband/sw/siw/siw_qp_rx.c 			siw_init_terminate(rx_qp(srx), TERM_ERROR_LAYER_RDMAP,
srx              1058 drivers/infiniband/sw/siw/siw_qp_rx.c 			siw_init_terminate(rx_qp(srx), TERM_ERROR_LAYER_RDMAP,
srx              1063 drivers/infiniband/sw/siw/siw_qp_rx.c 		siw_dbg_qp(rx_qp(srx), "new header, opcode %u\n", opcode);
srx              1079 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (srx->skb_new < bytes)
srx              1082 drivers/infiniband/sw/siw/siw_qp_rx.c 		skb_copy_bits(skb, srx->skb_offset,
srx              1083 drivers/infiniband/sw/siw/siw_qp_rx.c 			      (char *)c_hdr + srx->fpdu_part_rcvd, bytes);
srx              1085 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->fpdu_part_rcvd += bytes;
srx              1087 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->skb_new -= bytes;
srx              1088 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->skb_offset += bytes;
srx              1089 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->skb_copied += bytes;
srx              1104 drivers/infiniband/sw/siw/siw_qp_rx.c 	if (srx->mpa_crc_hd) {
srx              1108 drivers/infiniband/sw/siw/siw_qp_rx.c 		crypto_shash_init(srx->mpa_crc_hd);
srx              1109 drivers/infiniband/sw/siw/siw_qp_rx.c 		crypto_shash_update(srx->mpa_crc_hd, (u8 *)c_hdr,
srx              1110 drivers/infiniband/sw/siw/siw_qp_rx.c 				    srx->fpdu_part_rcvd);
srx              1207 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct siw_rx_stream *srx = &qp->rx_stream;
srx              1210 drivers/infiniband/sw/siw/siw_qp_rx.c 	u8 opcode = __rdmap_get_opcode(&srx->hdr.ctrl);
srx              1224 drivers/infiniband/sw/siw/siw_qp_rx.c 		srx->ddp_msn[RDMAP_UNTAGGED_QN_SEND]++;
srx              1234 drivers/infiniband/sw/siw/siw_qp_rx.c 			rv = siw_invalidate_stag(qp->pd, srx->inval_stag);
srx              1246 drivers/infiniband/sw/siw/siw_qp_rx.c 					      rv ? 0 : srx->inval_stag,
srx              1260 drivers/infiniband/sw/siw/siw_qp_rx.c 			if ((srx->state == SIW_GET_HDR &&
srx              1301 drivers/infiniband/sw/siw/siw_qp_rx.c 			rv = siw_init_rresp(qp, srx);
srx              1302 drivers/infiniband/sw/siw/siw_qp_rx.c 			srx->ddp_msn[RDMAP_UNTAGGED_QN_RDMA_READ]++;
srx              1344 drivers/infiniband/sw/siw/siw_qp_rx.c 	struct siw_rx_stream *srx = &qp->rx_stream;
srx              1347 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb = skb;
srx              1348 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_new = skb->len - off;
srx              1349 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_offset = off;
srx              1350 drivers/infiniband/sw/siw/siw_qp_rx.c 	srx->skb_copied = 0;
srx              1352 drivers/infiniband/sw/siw/siw_qp_rx.c 	siw_dbg_qp(qp, "new data, len %d\n", srx->skb_new);
srx              1354 drivers/infiniband/sw/siw/siw_qp_rx.c 	while (srx->skb_new) {
srx              1357 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (unlikely(srx->rx_suspend)) {
srx              1359 drivers/infiniband/sw/siw/siw_qp_rx.c 			srx->skb_copied += srx->skb_new;
srx              1362 drivers/infiniband/sw/siw/siw_qp_rx.c 		switch (srx->state) {
srx              1364 drivers/infiniband/sw/siw/siw_qp_rx.c 			rv = siw_get_hdr(srx);
srx              1366 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->fpdu_part_rem =
srx              1367 drivers/infiniband/sw/siw/siw_qp_rx.c 					be16_to_cpu(srx->hdr.ctrl.mpa_len) -
srx              1368 drivers/infiniband/sw/siw/siw_qp_rx.c 					srx->fpdu_part_rcvd + MPA_HDR_SIZE;
srx              1370 drivers/infiniband/sw/siw/siw_qp_rx.c 				if (srx->fpdu_part_rem)
srx              1371 drivers/infiniband/sw/siw/siw_qp_rx.c 					srx->pad = -srx->fpdu_part_rem & 0x3;
srx              1373 drivers/infiniband/sw/siw/siw_qp_rx.c 					srx->pad = 0;
srx              1375 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->state = SIW_GET_DATA_START;
srx              1376 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->fpdu_part_rcvd = 0;
srx              1398 drivers/infiniband/sw/siw/siw_qp_rx.c 					be16_to_cpu(srx->hdr.ctrl.mpa_len)
srx              1401 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->fpdu_part_rem = (-mpa_len & 0x3)
srx              1403 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->fpdu_part_rcvd = 0;
srx              1404 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->state = SIW_GET_TRAILER;
srx              1409 drivers/infiniband/sw/siw/siw_qp_rx.c 					srx->state = SIW_GET_DATA_MORE;
srx              1417 drivers/infiniband/sw/siw/siw_qp_rx.c 			rv = siw_get_trailer(qp, srx);
srx              1423 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->state = SIW_GET_HDR;
srx              1424 drivers/infiniband/sw/siw/siw_qp_rx.c 				srx->fpdu_part_rcvd = 0;
srx              1426 drivers/infiniband/sw/siw/siw_qp_rx.c 				if (!(srx->hdr.ctrl.ddp_rdmap_ctrl &
srx              1442 drivers/infiniband/sw/siw/siw_qp_rx.c 			if ((srx->state > SIW_GET_HDR ||
srx              1447 drivers/infiniband/sw/siw/siw_qp_rx.c 				   srx->state);
srx              1455 drivers/infiniband/sw/siw/siw_qp_rx.c 				   srx->state, srx->fpdu_part_rem);
srx              1459 drivers/infiniband/sw/siw/siw_qp_rx.c 	return srx->skb_copied;
srx                48 fs/afs/addr_list.c 		struct sockaddr_rxrpc *srx = &alist->addrs[i];
srx                49 fs/afs/addr_list.c 		srx->srx_family			= AF_RXRPC;
srx                50 fs/afs/addr_list.c 		srx->srx_service		= service;
srx                51 fs/afs/addr_list.c 		srx->transport_type		= SOCK_DGRAM;
srx                52 fs/afs/addr_list.c 		srx->transport_len		= sizeof(srx->transport.sin6);
srx                53 fs/afs/addr_list.c 		srx->transport.sin6.sin6_family	= AF_INET6;
srx                54 fs/afs/addr_list.c 		srx->transport.sin6.sin6_port	= htons(port);
srx               276 fs/afs/addr_list.c 	struct sockaddr_rxrpc *srx;
srx               301 fs/afs/addr_list.c 	srx = &alist->addrs[i];
srx               302 fs/afs/addr_list.c 	srx->srx_family = AF_RXRPC;
srx               303 fs/afs/addr_list.c 	srx->transport_type = SOCK_DGRAM;
srx               304 fs/afs/addr_list.c 	srx->transport_len = sizeof(srx->transport.sin);
srx               305 fs/afs/addr_list.c 	srx->transport.sin.sin_family = AF_INET;
srx               306 fs/afs/addr_list.c 	srx->transport.sin.sin_port = htons(port);
srx               307 fs/afs/addr_list.c 	srx->transport.sin.sin_addr.s_addr = xdr;
srx               317 fs/afs/addr_list.c 	struct sockaddr_rxrpc *srx;
srx               341 fs/afs/addr_list.c 	srx = &alist->addrs[i];
srx               342 fs/afs/addr_list.c 	srx->srx_family = AF_RXRPC;
srx               343 fs/afs/addr_list.c 	srx->transport_type = SOCK_DGRAM;
srx               344 fs/afs/addr_list.c 	srx->transport_len = sizeof(srx->transport.sin6);
srx               345 fs/afs/addr_list.c 	srx->transport.sin6.sin6_family = AF_INET6;
srx               346 fs/afs/addr_list.c 	srx->transport.sin6.sin6_port = htons(port);
srx               347 fs/afs/addr_list.c 	memcpy(&srx->transport.sin6.sin6_addr, xdr, 16);
srx               201 fs/afs/cmservice.c 	struct sockaddr_rxrpc srx;
srx               204 fs/afs/cmservice.c 	rxrpc_kernel_get_peer(call->net->socket, call->rxcall, &srx);
srx               206 fs/afs/cmservice.c 	server = afs_find_server(call->net, &srx);
srx               208 fs/afs/cmservice.c 		trace_afs_cm_no_server(call, &srx);
srx                38 fs/afs/rxrpc.c 	struct sockaddr_rxrpc srx;
srx                52 fs/afs/rxrpc.c 	memset(&srx, 0, sizeof(srx));
srx                53 fs/afs/rxrpc.c 	srx.srx_family			= AF_RXRPC;
srx                54 fs/afs/rxrpc.c 	srx.srx_service			= CM_SERVICE;
srx                55 fs/afs/rxrpc.c 	srx.transport_type		= SOCK_DGRAM;
srx                56 fs/afs/rxrpc.c 	srx.transport_len		= sizeof(srx.transport.sin6);
srx                57 fs/afs/rxrpc.c 	srx.transport.sin6.sin6_family	= AF_INET6;
srx                58 fs/afs/rxrpc.c 	srx.transport.sin6.sin6_port	= htons(AFS_CM_PORT);
srx                66 fs/afs/rxrpc.c 	ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx));
srx                68 fs/afs/rxrpc.c 		srx.transport.sin6.sin6_port = 0;
srx                69 fs/afs/rxrpc.c 		ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx));
srx                74 fs/afs/rxrpc.c 	srx.srx_service = YFS_CM_SERVICE;
srx                75 fs/afs/rxrpc.c 	ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx));
srx               363 fs/afs/rxrpc.c 	struct sockaddr_rxrpc *srx = &ac->alist->addrs[ac->index];
srx               370 fs/afs/rxrpc.c 	_enter(",{%pISp},", &srx->transport);
srx               410 fs/afs/rxrpc.c 	rxcall = rxrpc_kernel_begin_call(call->net->socket, srx, call->key,
srx                33 fs/afs/server.c 				   const struct sockaddr_rxrpc *srx)
srx                48 fs/afs/server.c 		if (srx->transport.family == AF_INET6) {
srx                49 fs/afs/server.c 			const struct sockaddr_in6 *a = &srx->transport.sin6, *b;
srx                65 fs/afs/server.c 			const struct sockaddr_in *a = &srx->transport.sin, *b;
srx              1058 include/trace/events/afs.h 	    TP_PROTO(struct afs_call *call, struct sockaddr_rxrpc *srx),
srx              1060 include/trace/events/afs.h 	    TP_ARGS(call, srx),
srx              1065 include/trace/events/afs.h 		    __field_struct(struct sockaddr_rxrpc,	srx	)
srx              1071 include/trace/events/afs.h 		    memcpy(&__entry->srx, srx, sizeof(__entry->srx));
srx              1075 include/trace/events/afs.h 		      __entry->call, __entry->op_id, &__entry->srx.transport)
srx              1438 include/trace/events/rxrpc.h 		     struct sockaddr_rxrpc *srx),
srx              1440 include/trace/events/rxrpc.h 	    TP_ARGS(peer, ee, srx),
srx              1445 include/trace/events/rxrpc.h 		    __field_struct(struct sockaddr_rxrpc,	srx	)
srx              1451 include/trace/events/rxrpc.h 		    memcpy(&__entry->srx, srx, sizeof(__entry->srx));
srx              1462 include/trace/events/rxrpc.h 		      &__entry->srx.transport)
srx                77 net/rxrpc/af_rxrpc.c 				  struct sockaddr_rxrpc *srx,
srx                85 net/rxrpc/af_rxrpc.c 	if (srx->srx_family != AF_RXRPC)
srx                88 net/rxrpc/af_rxrpc.c 	if (srx->transport_type != SOCK_DGRAM)
srx                92 net/rxrpc/af_rxrpc.c 	if (srx->transport_len < sizeof(sa_family_t) ||
srx                93 net/rxrpc/af_rxrpc.c 	    srx->transport_len > len)
srx                96 net/rxrpc/af_rxrpc.c 	if (srx->transport.family != rx->family &&
srx                97 net/rxrpc/af_rxrpc.c 	    srx->transport.family == AF_INET && rx->family != AF_INET6)
srx               100 net/rxrpc/af_rxrpc.c 	switch (srx->transport.family) {
srx               102 net/rxrpc/af_rxrpc.c 		if (srx->transport_len < sizeof(struct sockaddr_in))
srx               109 net/rxrpc/af_rxrpc.c 		if (srx->transport_len < sizeof(struct sockaddr_in6))
srx               121 net/rxrpc/af_rxrpc.c 		memset((void *)srx + tail, 0, len - tail);
srx               122 net/rxrpc/af_rxrpc.c 	_debug("INET: %pISp", &srx->transport);
srx               131 net/rxrpc/af_rxrpc.c 	struct sockaddr_rxrpc *srx = (struct sockaddr_rxrpc *)saddr;
srx               139 net/rxrpc/af_rxrpc.c 	ret = rxrpc_validate_address(rx, srx, len);
srx               142 net/rxrpc/af_rxrpc.c 	service_id = srx->srx_service;
srx               148 net/rxrpc/af_rxrpc.c 		rx->srx = *srx;
srx               149 net/rxrpc/af_rxrpc.c 		local = rxrpc_lookup_local(sock_net(&rx->sk), &rx->srx);
srx               175 net/rxrpc/af_rxrpc.c 		if (service_id == rx->srx.srx_service)
srx               178 net/rxrpc/af_rxrpc.c 		srx->srx_service = rx->srx.srx_service;
srx               179 net/rxrpc/af_rxrpc.c 		if (memcmp(srx, &rx->srx, sizeof(*srx)) != 0)
srx               281 net/rxrpc/af_rxrpc.c 					   struct sockaddr_rxrpc *srx,
srx               299 net/rxrpc/af_rxrpc.c 	ret = rxrpc_validate_address(rx, srx, sizeof(*srx));
srx               321 net/rxrpc/af_rxrpc.c 	cp.service_id		= srx->srx_service;
srx               322 net/rxrpc/af_rxrpc.c 	call = rxrpc_new_client_call(rx, &cp, srx, &p, gfp, debug_id);
srx               452 net/rxrpc/af_rxrpc.c 	struct sockaddr_rxrpc *srx = (struct sockaddr_rxrpc *)addr;
srx               458 net/rxrpc/af_rxrpc.c 	ret = rxrpc_validate_address(rx, srx, addr_len);
srx               481 net/rxrpc/af_rxrpc.c 	rx->connect_srx = *srx;
srx               523 net/rxrpc/af_rxrpc.c 		rx->srx.srx_family = AF_RXRPC;
srx               524 net/rxrpc/af_rxrpc.c 		rx->srx.srx_service = 0;
srx               525 net/rxrpc/af_rxrpc.c 		rx->srx.transport_type = SOCK_DGRAM;
srx               526 net/rxrpc/af_rxrpc.c 		rx->srx.transport.family = rx->family;
srx               529 net/rxrpc/af_rxrpc.c 			rx->srx.transport_len = sizeof(struct sockaddr_in);
srx               533 net/rxrpc/af_rxrpc.c 			rx->srx.transport_len = sizeof(struct sockaddr_in6);
srx               540 net/rxrpc/af_rxrpc.c 		local = rxrpc_lookup_local(sock_net(sock->sk), &rx->srx);
srx               652 net/rxrpc/af_rxrpc.c 			if ((service_upgrade[0] != rx->srx.srx_service ||
srx               655 net/rxrpc/af_rxrpc.c 			     service_upgrade[1] != rx->srx.srx_service))
srx               772 net/rxrpc/af_rxrpc.c 	memset(&rx->srx, 0, sizeof(rx->srx));
srx               158 net/rxrpc/ar-internal.h 	struct sockaddr_rxrpc	srx;		/* Primary Service/local addresses */
srx               285 net/rxrpc/ar-internal.h 	struct sockaddr_rxrpc	srx;		/* local address */
srx               309 net/rxrpc/ar-internal.h 	struct sockaddr_rxrpc	srx;		/* remote address */
srx               297 net/rxrpc/call_accept.c 			if (rxrpc_extract_addr_from_skb(&peer->srx, skb) < 0)
srx               170 net/rxrpc/call_object.c 						  struct sockaddr_rxrpc *srx,
srx               183 net/rxrpc/call_object.c 	call->service_id = srx->srx_service;
srx               218 net/rxrpc/call_object.c 					 struct sockaddr_rxrpc *srx,
srx               233 net/rxrpc/call_object.c 	call = rxrpc_alloc_client_call(rx, srx, gfp, debug_id);
srx               289 net/rxrpc/call_object.c 	ret = rxrpc_connect_call(rx, call, cp, srx, gfp);
srx               278 net/rxrpc/conn_client.c 				 struct sockaddr_rxrpc *srx,
srx               289 net/rxrpc/conn_client.c 	cp->peer = rxrpc_lookup_peer(rx, cp->local, srx, gfp);
srx               697 net/rxrpc/conn_client.c 		       struct sockaddr_rxrpc *srx,
srx               708 net/rxrpc/conn_client.c 	ret = rxrpc_get_client_conn(rx, call, cp, srx, gfp);
srx                55 net/rxrpc/conn_event.c 	msg.msg_name	= &conn->params.peer->srx.transport;
srx                56 net/rxrpc/conn_event.c 	msg.msg_namelen	= conn->params.peer->srx.transport_len;
srx               216 net/rxrpc/conn_event.c 	msg.msg_name	= &conn->params.peer->srx.transport;
srx               217 net/rxrpc/conn_event.c 	msg.msg_namelen	= conn->params.peer->srx.transport_len;
srx                80 net/rxrpc/conn_object.c 	struct sockaddr_rxrpc srx;
srx                85 net/rxrpc/conn_object.c 	if (rxrpc_extract_addr_from_skb(&srx, skb) < 0)
srx                88 net/rxrpc/conn_object.c 	if (srx.transport.family != local->srx.transport.family &&
srx                89 net/rxrpc/conn_object.c 	    (srx.transport.family == AF_INET &&
srx                90 net/rxrpc/conn_object.c 	     local->srx.transport.family != AF_INET6)) {
srx                92 net/rxrpc/conn_object.c 				    srx.transport.family,
srx                93 net/rxrpc/conn_object.c 				    local->srx.transport.family);
srx               105 net/rxrpc/conn_object.c 		peer = rxrpc_lookup_peer_rcu(local, &srx);
srx               130 net/rxrpc/conn_object.c 		switch (srx.transport.family) {
srx               132 net/rxrpc/conn_object.c 			if (peer->srx.transport.sin.sin_port !=
srx               133 net/rxrpc/conn_object.c 			    srx.transport.sin.sin_port ||
srx               134 net/rxrpc/conn_object.c 			    peer->srx.transport.sin.sin_addr.s_addr !=
srx               135 net/rxrpc/conn_object.c 			    srx.transport.sin.sin_addr.s_addr)
srx               140 net/rxrpc/conn_object.c 			if (peer->srx.transport.sin6.sin6_port !=
srx               141 net/rxrpc/conn_object.c 			    srx.transport.sin6.sin6_port ||
srx               142 net/rxrpc/conn_object.c 			    memcmp(&peer->srx.transport.sin6.sin6_addr,
srx               143 net/rxrpc/conn_object.c 				   &srx.transport.sin6.sin6_addr,
srx              1314 net/rxrpc/input.c 		if (!rx || (sp->hdr.serviceId != rx->srx.srx_service &&
srx                30 net/rxrpc/local_event.c 	struct sockaddr_rxrpc srx;
srx                38 net/rxrpc/local_event.c 	if (rxrpc_extract_addr_from_skb(&srx, skb) < 0)
srx                41 net/rxrpc/local_event.c 	msg.msg_name	= &srx.transport;
srx                42 net/rxrpc/local_event.c 	msg.msg_namelen	= srx.transport_len;
srx                35 net/rxrpc/local_object.c 				const struct sockaddr_rxrpc *srx)
srx                39 net/rxrpc/local_object.c 	diff = ((local->srx.transport_type - srx->transport_type) ?:
srx                40 net/rxrpc/local_object.c 		(local->srx.transport_len - srx->transport_len) ?:
srx                41 net/rxrpc/local_object.c 		(local->srx.transport.family - srx->transport.family));
srx                45 net/rxrpc/local_object.c 	switch (srx->transport.family) {
srx                50 net/rxrpc/local_object.c 		return ((u16 __force)local->srx.transport.sin.sin_port -
srx                51 net/rxrpc/local_object.c 			(u16 __force)srx->transport.sin.sin_port) ?:
srx                52 net/rxrpc/local_object.c 			memcmp(&local->srx.transport.sin.sin_addr,
srx                53 net/rxrpc/local_object.c 			       &srx->transport.sin.sin_addr,
srx                60 net/rxrpc/local_object.c 		return ((u16 __force)local->srx.transport.sin6.sin6_port -
srx                61 net/rxrpc/local_object.c 			(u16 __force)srx->transport.sin6.sin6_port) ?:
srx                62 net/rxrpc/local_object.c 			memcmp(&local->srx.transport.sin6.sin6_addr,
srx                63 net/rxrpc/local_object.c 			       &srx->transport.sin6.sin6_addr,
srx                75 net/rxrpc/local_object.c 					     const struct sockaddr_rxrpc *srx)
srx                94 net/rxrpc/local_object.c 		memcpy(&local->srx, srx, sizeof(*srx));
srx                95 net/rxrpc/local_object.c 		local->srx.srx_service = 0;
srx               113 net/rxrpc/local_object.c 	       local, local->srx.transport_type, local->srx.transport.family);
srx               116 net/rxrpc/local_object.c 	ret = sock_create_kern(net, local->srx.transport.family,
srx               117 net/rxrpc/local_object.c 			       local->srx.transport_type, 0, &local->socket);
srx               140 net/rxrpc/local_object.c 	if (local->srx.transport.family == AF_INET6)
srx               146 net/rxrpc/local_object.c 	if (local->srx.transport_len > sizeof(sa_family_t)) {
srx               149 net/rxrpc/local_object.c 				  (struct sockaddr *)&local->srx.transport,
srx               150 net/rxrpc/local_object.c 				  local->srx.transport_len);
srx               157 net/rxrpc/local_object.c 	switch (local->srx.transport.family) {
srx               222 net/rxrpc/local_object.c 				       const struct sockaddr_rxrpc *srx)
srx               232 net/rxrpc/local_object.c 	       srx->transport_type, srx->transport.family, &srx->transport);
srx               241 net/rxrpc/local_object.c 		diff = rxrpc_local_cmp_key(local, srx);
srx               252 net/rxrpc/local_object.c 		if (srx->srx_service) {
srx               268 net/rxrpc/local_object.c 	local = rxrpc_alloc_local(rxnet, srx);
srx               286 net/rxrpc/local_object.c 	     age, local->debug_id, &local->srx.transport);
srx               151 net/rxrpc/output.c 	msg.msg_name	= &call->peer->srx.transport;
srx               152 net/rxrpc/output.c 	msg.msg_namelen	= call->peer->srx.transport_len;
srx               274 net/rxrpc/output.c 	msg.msg_name	= &call->peer->srx.transport;
srx               275 net/rxrpc/output.c 	msg.msg_namelen	= call->peer->srx.transport_len;
srx               353 net/rxrpc/output.c 	msg.msg_name = &call->peer->srx.transport;
srx               354 net/rxrpc/output.c 	msg.msg_namelen = call->peer->srx.transport_len;
srx               473 net/rxrpc/output.c 	switch (conn->params.local->srx.transport.family) {
srx               511 net/rxrpc/output.c 	struct sockaddr_rxrpc srx;
srx               528 net/rxrpc/output.c 	msg.msg_name = &srx.transport;
srx               556 net/rxrpc/output.c 		if (rxrpc_extract_addr_from_skb(&srx, skb) == 0) {
srx               557 net/rxrpc/output.c 			msg.msg_namelen = srx.transport_len;
srx               596 net/rxrpc/output.c 	msg.msg_name	= &peer->srx.transport;
srx               597 net/rxrpc/output.c 	msg.msg_namelen	= peer->srx.transport_len;
srx                30 net/rxrpc/peer_event.c 						     struct sockaddr_rxrpc *srx)
srx                36 net/rxrpc/peer_event.c 	memset(srx, 0, sizeof(*srx));
srx                37 net/rxrpc/peer_event.c 	srx->transport_type = local->srx.transport_type;
srx                38 net/rxrpc/peer_event.c 	srx->transport_len = local->srx.transport_len;
srx                39 net/rxrpc/peer_event.c 	srx->transport.family = local->srx.transport.family;
srx                44 net/rxrpc/peer_event.c 	switch (srx->transport.family) {
srx                46 net/rxrpc/peer_event.c 		srx->transport_len = sizeof(srx->transport.sin);
srx                47 net/rxrpc/peer_event.c 		srx->transport.family = AF_INET;
srx                48 net/rxrpc/peer_event.c 		srx->transport.sin.sin_port = serr->port;
srx                52 net/rxrpc/peer_event.c 			memcpy(&srx->transport.sin.sin_addr,
srx                58 net/rxrpc/peer_event.c 			memcpy(&srx->transport.sin.sin_addr,
srx                63 net/rxrpc/peer_event.c 			memcpy(&srx->transport.sin.sin_addr, &ip_hdr(skb)->saddr,
srx                74 net/rxrpc/peer_event.c 			srx->transport.sin6.sin6_port = serr->port;
srx                75 net/rxrpc/peer_event.c 			memcpy(&srx->transport.sin6.sin6_addr,
srx                81 net/rxrpc/peer_event.c 			srx->transport_len = sizeof(srx->transport.sin);
srx                82 net/rxrpc/peer_event.c 			srx->transport.family = AF_INET;
srx                83 net/rxrpc/peer_event.c 			srx->transport.sin.sin_port = serr->port;
srx                84 net/rxrpc/peer_event.c 			memcpy(&srx->transport.sin.sin_addr,
srx                89 net/rxrpc/peer_event.c 			memcpy(&srx->transport.sin6.sin6_addr,
srx               101 net/rxrpc/peer_event.c 	return rxrpc_lookup_peer_rcu(local, srx);
srx               149 net/rxrpc/peer_event.c 	struct sockaddr_rxrpc srx;
srx               182 net/rxrpc/peer_event.c 	peer = rxrpc_lookup_peer_icmp_rcu(local, skb, &srx);
srx               192 net/rxrpc/peer_event.c 	trace_rxrpc_rx_icmp(peer, &serr->ee, &srx);
srx               327 net/rxrpc/peer_event.c 			       cursor, peer->debug_id, slot, &peer->srx.transport);
srx                29 net/rxrpc/peer_object.c 					 const struct sockaddr_rxrpc *srx)
srx                38 net/rxrpc/peer_object.c 	hash_key += srx->transport_type;
srx                39 net/rxrpc/peer_object.c 	hash_key += srx->transport_len;
srx                40 net/rxrpc/peer_object.c 	hash_key += srx->transport.family;
srx                42 net/rxrpc/peer_object.c 	switch (srx->transport.family) {
srx                44 net/rxrpc/peer_object.c 		hash_key += (u16 __force)srx->transport.sin.sin_port;
srx                45 net/rxrpc/peer_object.c 		size = sizeof(srx->transport.sin.sin_addr);
srx                46 net/rxrpc/peer_object.c 		p = (u16 *)&srx->transport.sin.sin_addr;
srx                50 net/rxrpc/peer_object.c 		hash_key += (u16 __force)srx->transport.sin.sin_port;
srx                51 net/rxrpc/peer_object.c 		size = sizeof(srx->transport.sin6.sin6_addr);
srx                52 net/rxrpc/peer_object.c 		p = (u16 *)&srx->transport.sin6.sin6_addr;
srx                78 net/rxrpc/peer_object.c 			       const struct sockaddr_rxrpc *srx,
srx                85 net/rxrpc/peer_object.c 		(peer->srx.transport_type - srx->transport_type) ?:
srx                86 net/rxrpc/peer_object.c 		(peer->srx.transport_len - srx->transport_len) ?:
srx                87 net/rxrpc/peer_object.c 		(peer->srx.transport.family - srx->transport.family));
srx                91 net/rxrpc/peer_object.c 	switch (srx->transport.family) {
srx                93 net/rxrpc/peer_object.c 		return ((u16 __force)peer->srx.transport.sin.sin_port -
srx                94 net/rxrpc/peer_object.c 			(u16 __force)srx->transport.sin.sin_port) ?:
srx                95 net/rxrpc/peer_object.c 			memcmp(&peer->srx.transport.sin.sin_addr,
srx                96 net/rxrpc/peer_object.c 			       &srx->transport.sin.sin_addr,
srx               100 net/rxrpc/peer_object.c 		return ((u16 __force)peer->srx.transport.sin6.sin6_port -
srx               101 net/rxrpc/peer_object.c 			(u16 __force)srx->transport.sin6.sin6_port) ?:
srx               102 net/rxrpc/peer_object.c 			memcmp(&peer->srx.transport.sin6.sin6_addr,
srx               103 net/rxrpc/peer_object.c 			       &srx->transport.sin6.sin6_addr,
srx               116 net/rxrpc/peer_object.c 	const struct sockaddr_rxrpc *srx,
srx               123 net/rxrpc/peer_object.c 		if (rxrpc_peer_cmp_key(peer, local, srx, hash_key) == 0 &&
srx               135 net/rxrpc/peer_object.c 					 const struct sockaddr_rxrpc *srx)
srx               138 net/rxrpc/peer_object.c 	unsigned long hash_key = rxrpc_peer_hash_key(local, srx);
srx               140 net/rxrpc/peer_object.c 	peer = __rxrpc_lookup_peer_rcu(local, srx, hash_key);
srx               142 net/rxrpc/peer_object.c 		_net("PEER %d {%pISp}", peer->debug_id, &peer->srx.transport);
srx               167 net/rxrpc/peer_object.c 	switch (peer->srx.transport.family) {
srx               171 net/rxrpc/peer_object.c 			peer->srx.transport.sin.sin_addr.s_addr, 0,
srx               185 net/rxrpc/peer_object.c 		memcpy(&fl6->daddr, &peer->srx.transport.sin6.sin6_addr,
srx               252 net/rxrpc/peer_object.c 	switch (peer->srx.transport.family) {
srx               265 net/rxrpc/peer_object.c 	switch (peer->srx.transport_type) {
srx               282 net/rxrpc/peer_object.c 					    struct sockaddr_rxrpc *srx,
srx               292 net/rxrpc/peer_object.c 		memcpy(&peer->srx, srx, sizeof(*srx));
srx               311 net/rxrpc/peer_object.c 	hash_key = rxrpc_peer_hash_key(local, &peer->srx);
srx               325 net/rxrpc/peer_object.c 				     struct sockaddr_rxrpc *srx, gfp_t gfp)
srx               329 net/rxrpc/peer_object.c 	unsigned long hash_key = rxrpc_peer_hash_key(local, srx);
srx               331 net/rxrpc/peer_object.c 	_enter("{%pISp}", &srx->transport);
srx               335 net/rxrpc/peer_object.c 	peer = __rxrpc_lookup_peer_rcu(local, srx, hash_key);
srx               344 net/rxrpc/peer_object.c 		candidate = rxrpc_create_peer(rx, local, srx, hash_key, gfp);
srx               353 net/rxrpc/peer_object.c 		peer = __rxrpc_lookup_peer_rcu(local, srx, hash_key);
srx               371 net/rxrpc/peer_object.c 	_net("PEER %d {%pISp}", peer->debug_id, &peer->srx.transport);
srx               479 net/rxrpc/peer_object.c 			       &peer->srx.transport);
srx               495 net/rxrpc/peer_object.c 	*_srx = call->peer->srx;
srx                81 net/rxrpc/proc.c 			sprintf(lbuff, "%pISpc", &local->srx.transport);
srx                90 net/rxrpc/proc.c 		sprintf(rbuff, "%pISpc", &peer->srx.transport);
srx               180 net/rxrpc/proc.c 	sprintf(lbuff, "%pISpc", &conn->params.local->srx.transport);
srx               182 net/rxrpc/proc.c 	sprintf(rbuff, "%pISpc", &conn->params.peer->srx.transport);
srx               232 net/rxrpc/proc.c 	sprintf(lbuff, "%pISpc", &peer->local->srx.transport);
srx               234 net/rxrpc/proc.c 	sprintf(rbuff, "%pISpc", &peer->srx.transport);
srx               545 net/rxrpc/recvmsg.c 		struct sockaddr_rxrpc *srx = msg->msg_name;
srx               546 net/rxrpc/recvmsg.c 		size_t len = sizeof(call->peer->srx);
srx               548 net/rxrpc/recvmsg.c 		memcpy(msg->msg_name, &call->peer->srx, len);
srx               549 net/rxrpc/recvmsg.c 		srx->srx_service = call->service_id;
srx               664 net/rxrpc/rxkad.c 	msg.msg_name	= &conn->params.peer->srx.transport;
srx               665 net/rxrpc/rxkad.c 	msg.msg_namelen	= conn->params.peer->srx.transport_len;
srx               723 net/rxrpc/rxkad.c 	msg.msg_name	= &conn->params.peer->srx.transport;
srx               724 net/rxrpc/rxkad.c 	msg.msg_namelen	= conn->params.peer->srx.transport_len;
srx               604 net/rxrpc/sendmsg.c 	DECLARE_SOCKADDR(struct sockaddr_rxrpc *, srx, msg->msg_name);
srx               623 net/rxrpc/sendmsg.c 	cp.service_id		= srx->srx_service;
srx               624 net/rxrpc/sendmsg.c 	call = rxrpc_new_client_call(rx, &cp, srx, &p->call, GFP_KERNEL,
srx                16 net/rxrpc/utils.c int rxrpc_extract_addr_from_skb(struct sockaddr_rxrpc *srx, struct sk_buff *skb)
srx                18 net/rxrpc/utils.c 	memset(srx, 0, sizeof(*srx));
srx                22 net/rxrpc/utils.c 		srx->transport_type = SOCK_DGRAM;
srx                23 net/rxrpc/utils.c 		srx->transport_len = sizeof(srx->transport.sin);
srx                24 net/rxrpc/utils.c 		srx->transport.sin.sin_family = AF_INET;
srx                25 net/rxrpc/utils.c 		srx->transport.sin.sin_port = udp_hdr(skb)->source;
srx                26 net/rxrpc/utils.c 		srx->transport.sin.sin_addr.s_addr = ip_hdr(skb)->saddr;
srx                31 net/rxrpc/utils.c 		srx->transport_type = SOCK_DGRAM;
srx                32 net/rxrpc/utils.c 		srx->transport_len = sizeof(srx->transport.sin6);
srx                33 net/rxrpc/utils.c 		srx->transport.sin6.sin6_family = AF_INET6;
srx                34 net/rxrpc/utils.c 		srx->transport.sin6.sin6_port = udp_hdr(skb)->source;
srx                35 net/rxrpc/utils.c 		srx->transport.sin6.sin6_addr = ipv6_hdr(skb)->saddr;