Lines Matching refs:termhdr
3164 struct nes_terminate_hdr *termhdr; in nes_bld_terminate_hdr() local
3166 termhdr = (struct nes_terminate_hdr *)nesqp->hwqp.q2_vbase; in nes_bld_terminate_hdr()
3167 memset(termhdr, 0, 64); in nes_bld_terminate_hdr()
3176 termhdr->hdrct = DDP_LEN_FLAG; in nes_bld_terminate_hdr()
3181 termhdr->hdrct |= DDP_HDR_FLAG; in nes_bld_terminate_hdr()
3186 termhdr->hdrct |= DDP_HDR_FLAG; in nes_bld_terminate_hdr()
3192 termhdr->hdrct |= RDMA_HDR_FLAG; in nes_bld_terminate_hdr()
3204 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_TAGGED_BUFFER; in nes_bld_terminate_hdr()
3205 termhdr->error_code = DDP_TAGGED_INV_STAG; in nes_bld_terminate_hdr()
3209 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_PROT; in nes_bld_terminate_hdr()
3210 termhdr->error_code = RDMAP_INV_STAG; in nes_bld_terminate_hdr()
3215 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_PROT; in nes_bld_terminate_hdr()
3216 termhdr->error_code = RDMAP_INV_STAG; in nes_bld_terminate_hdr()
3220 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_UNTAGGED_BUFFER; in nes_bld_terminate_hdr()
3221 termhdr->error_code = DDP_UNTAGGED_INV_QN; in nes_bld_terminate_hdr()
3229 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_OP; in nes_bld_terminate_hdr()
3230 termhdr->error_code = RDMAP_CANT_INV_STAG; in nes_bld_terminate_hdr()
3234 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_PROT; in nes_bld_terminate_hdr()
3235 termhdr->error_code = RDMAP_INV_STAG; in nes_bld_terminate_hdr()
3241 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_TAGGED_BUFFER; in nes_bld_terminate_hdr()
3242 termhdr->error_code = DDP_TAGGED_BOUNDS; in nes_bld_terminate_hdr()
3245 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_PROT; in nes_bld_terminate_hdr()
3246 termhdr->error_code = RDMAP_INV_BOUNDS; in nes_bld_terminate_hdr()
3253 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_PROT; in nes_bld_terminate_hdr()
3254 termhdr->error_code = RDMAP_ACCESS; in nes_bld_terminate_hdr()
3258 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_PROT; in nes_bld_terminate_hdr()
3259 termhdr->error_code = RDMAP_TO_WRAP; in nes_bld_terminate_hdr()
3265 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_TAGGED_BUFFER; in nes_bld_terminate_hdr()
3266 termhdr->error_code = DDP_TAGGED_UNASSOC_STAG; in nes_bld_terminate_hdr()
3271 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_PROT; in nes_bld_terminate_hdr()
3272 termhdr->error_code = RDMAP_CANT_INV_STAG; in nes_bld_terminate_hdr()
3276 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_PROT; in nes_bld_terminate_hdr()
3277 termhdr->error_code = RDMAP_UNASSOC_STAG; in nes_bld_terminate_hdr()
3282 termhdr->layer_etype = (LAYER_MPA << 4) | DDP_LLP; in nes_bld_terminate_hdr()
3283 termhdr->error_code = MPA_MARKER; in nes_bld_terminate_hdr()
3287 termhdr->layer_etype = (LAYER_MPA << 4) | DDP_LLP; in nes_bld_terminate_hdr()
3288 termhdr->error_code = MPA_CRC; in nes_bld_terminate_hdr()
3293 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_CATASTROPHIC; in nes_bld_terminate_hdr()
3294 termhdr->error_code = DDP_CATASTROPHIC_LOCAL; in nes_bld_terminate_hdr()
3299 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_CATASTROPHIC; in nes_bld_terminate_hdr()
3300 termhdr->error_code = DDP_CATASTROPHIC_LOCAL; in nes_bld_terminate_hdr()
3305 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_UNTAGGED_BUFFER; in nes_bld_terminate_hdr()
3306 termhdr->error_code = DDP_UNTAGGED_INV_MSN_RANGE; in nes_bld_terminate_hdr()
3310 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_UNTAGGED_BUFFER; in nes_bld_terminate_hdr()
3311 termhdr->error_code = DDP_UNTAGGED_INV_TOO_LONG; in nes_bld_terminate_hdr()
3316 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_TAGGED_BUFFER; in nes_bld_terminate_hdr()
3317 termhdr->error_code = DDP_TAGGED_INV_DDP_VER; in nes_bld_terminate_hdr()
3319 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_UNTAGGED_BUFFER; in nes_bld_terminate_hdr()
3320 termhdr->error_code = DDP_UNTAGGED_INV_DDP_VER; in nes_bld_terminate_hdr()
3325 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_UNTAGGED_BUFFER; in nes_bld_terminate_hdr()
3326 termhdr->error_code = DDP_UNTAGGED_INV_MO; in nes_bld_terminate_hdr()
3330 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_UNTAGGED_BUFFER; in nes_bld_terminate_hdr()
3331 termhdr->error_code = DDP_UNTAGGED_INV_MSN_NO_BUF; in nes_bld_terminate_hdr()
3335 termhdr->layer_etype = (LAYER_DDP << 4) | DDP_UNTAGGED_BUFFER; in nes_bld_terminate_hdr()
3336 termhdr->error_code = DDP_UNTAGGED_INV_QN; in nes_bld_terminate_hdr()
3340 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_OP; in nes_bld_terminate_hdr()
3341 termhdr->error_code = RDMAP_INV_RDMAP_VER; in nes_bld_terminate_hdr()
3345 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_OP; in nes_bld_terminate_hdr()
3346 termhdr->error_code = RDMAP_UNEXPECTED_OP; in nes_bld_terminate_hdr()
3350 termhdr->layer_etype = (LAYER_RDMA << 4) | RDMAP_REMOTE_OP; in nes_bld_terminate_hdr()
3351 termhdr->error_code = RDMAP_UNSPECIFIED; in nes_bld_terminate_hdr()
3356 memcpy(termhdr + 1, pkt, copy_len); in nes_bld_terminate_hdr()