Lines Matching refs:olen

2808 	t_scalar_t		alen, aoff, olen, ooff,	err = 0;  in tl_conn_req()  local
2863 olen = creq->OPT_length; in tl_conn_req()
2865 if (olen == 0) in tl_conn_req()
2892 (olen > 0 && ((ssize_t)(ooff + olen) > msz || in tl_conn_req()
2893 ooff + olen < 0)) || in tl_conn_req()
2894 olen < 0 || ooff < 0) { in tl_conn_req()
2926 if (olen) { in tl_conn_req()
3055 t_scalar_t olen = creq->OPT_length; in tl_conn_req_ser() local
3079 if (olen == 0) in tl_conn_req_ser()
3107 olen = (t_scalar_t) sizeof (struct opthdr) + in tl_conn_req_ser()
3112 olen = (t_scalar_t)sizeof (struct opthdr) + in tl_conn_req_ser()
3118 ci_msz = T_ALIGN(ci_msz) + olen; in tl_conn_req_ser()
3125 opts = kmem_alloc(olen, KM_NOSLEEP); in tl_conn_req_ser()
3139 bcopy(mp->b_rptr + ooff, opts, olen); in tl_conn_req_ser()
3158 kmem_free(opts, olen); in tl_conn_req_ser()
3177 kmem_free(opts, olen); in tl_conn_req_ser()
3194 kmem_free(opts, olen); in tl_conn_req_ser()
3236 kmem_free(opts, olen); in tl_conn_req_ser()
3256 ci->OPT_length = olen; /* because only 1 option */ in tl_conn_req_ser()
3264 ci->OPT_length = olen; in tl_conn_req_ser()
3266 bcopy(opts, (void *)((uintptr_t)ci + ci->OPT_offset), olen); in tl_conn_req_ser()
3272 kmem_free(opts, olen); in tl_conn_req_ser()
3329 t_scalar_t olen, ooff, err = 0; in tl_conn_res() local
3395 olen = cres->OPT_length; in tl_conn_res()
3397 if (((olen > 0) && ((ooff + olen) > msz))) { in tl_conn_res()
3404 if (olen) { in tl_conn_res()
3587 olen = 0; in tl_conn_res()
3589 olen = (t_scalar_t)sizeof (struct opthdr) + in tl_conn_res()
3592 olen = (t_scalar_t)sizeof (struct opthdr) + in tl_conn_res()
3596 acc_ep->te_alen) + olen; in tl_conn_res()
3738 cc->OPT_length = olen; in tl_conn_res()
4909 t_scalar_t olen; in tl_uderr() local
4917 olen = udreq->OPT_length; in tl_uderr()
4921 if (olen > 0) in tl_uderr()
4922 err_sz += olen; in tl_uderr()
4942 uderr->OPT_length = olen; in tl_uderr()
4952 if (olen <= 0) { in tl_uderr()
4960 (size_t)olen); in tl_uderr()
5004 t_scalar_t alen, aoff, olen, ooff; in tl_unitdata() local
5040 oldolen = olen = udreq->OPT_length; in tl_unitdata()
5042 if (olen == 0) in tl_unitdata()
5049 (olen < 0) || (ooff < 0) || in tl_unitdata()
5050 ((olen > 0) && ((ooff + olen) > msz))) { in tl_unitdata()
5055 (int)msz, alen, aoff, olen, ooff)); in tl_unitdata()
5075 ((olen > 0) && ((ooff + olen) > msz)) || in tl_unitdata()
5076 (olen < 0) || in tl_unitdata()
5078 ((ssize_t)olen > (msz - sizeof (struct T_unitdata_req)))) { in tl_unitdata()
5088 if (alen == 0 || (olen != 0 && !IS_SOCKET(tep))) { in tl_unitdata()
5183 ASSERT(olen == 0); in tl_unitdata()
5184 olen = (t_scalar_t)sizeof (struct opthdr) + in tl_unitdata()
5188 ASSERT(olen == 0); in tl_unitdata()
5189 olen = (t_scalar_t)sizeof (struct opthdr) + in tl_unitdata()
5194 olen += (t_scalar_t)sizeof (struct T_opthdr) + in tl_unitdata()
5200 olen; in tl_unitdata()
5240 udind->OPT_length = olen; in tl_unitdata()
5257 olen); in tl_unitdata()