Lines Matching defs:inp

246 	struct inpcb *inp = toep->inp;
247 struct tcpcb *tp = intotcpcb(inp); /* don't use if INP_DROPPED */
249 INP_WLOCK_ASSERT(inp);
253 inp->inp_flags & INP_DROPPED ? "inp dropped" :
255 toep->flags, inp->inp_flags,
275 if (inp->inp_flags & INP_DROPPED)
283 * XXX: What's the correct way to tell that the inp hasn't been detached
286 if ((inp->inp_flags & INP_DROPPED) == 0) {
287 struct socket *so = inp->inp_socket;
304 struct inpcb *inp = tptoinpcb(tp);
307 INP_LOCK_ASSERT(inp);
311 if (inp->inp_inc.inc_flags & INC_ISIPV6)
360 struct inpcb *inp = toep->inp;
361 struct socket *so = inp->inp_socket;
362 struct tcpcb *tp = intotcpcb(inp);
365 INP_WLOCK_ASSERT(inp);
370 CTR6(KTR_CXGBE, "%s: tid %d, so %p, inp %p, tp %p, toep %p",
371 __func__, toep->tid, so, inp, tp, toep);
420 struct inpcb *inp = tptoinpcb(tp);
421 struct socket *so = inp->inp_socket;
426 INP_WLOCK_ASSERT(inp);
443 struct inpcb *inp = tptoinpcb(tp);
444 struct socket *so = inp->inp_socket;
627 struct inpcb *inp = toep->inp;
633 INP_WLOCK_ASSERT(inp);
693 struct inpcb *inp = toep->inp;
694 struct tcpcb *tp = intotcpcb(inp);
695 struct socket *so = inp->inp_socket;
702 INP_WLOCK_ASSERT(inp);
720 if (__predict_false(inp->inp_flags2 & INP_RATE_LIMIT_CHANGED) &&
722 inp->inp_flags2 &= ~INP_RATE_LIMIT_CHANGED;
1037 struct inpcb *inp = toep->inp;
1038 struct tcpcb *tp = intotcpcb(inp);
1193 struct inpcb *inp = toep->inp;
1197 INP_WLOCK_ASSERT(inp);
1217 struct socket *so = inp->inp_socket;
1317 struct inpcb *inp = toep->inp;
1320 INP_WLOCK_ASSERT(inp);
1347 struct inpcb *inp = tptoinpcb(tp);
1351 INP_WLOCK_ASSERT(inp);
1352 KASSERT((inp->inp_flags & INP_DROPPED) == 0,
1353 ("%s: inp %p dropped.", __func__, inp));
1366 struct inpcb *inp = tptoinpcb(tp);
1370 INP_WLOCK_ASSERT(inp);
1371 KASSERT((inp->inp_flags & INP_DROPPED) == 0,
1372 ("%s: inp %p dropped.", __func__, inp));
1387 struct inpcb *inp = tptoinpcb(tp);
1391 INP_WLOCK_ASSERT(inp);
1392 KASSERT((inp->inp_flags & INP_DROPPED) == 0,
1393 ("%s: inp %p dropped.", __func__, inp));
1415 struct inpcb *inp = toep->inp;
1443 INP_WLOCK(inp);
1444 tp = intotcpcb(inp);
1447 "%s: tid %u (%s), toep_flags 0x%x, ddp_flags 0x%x, inp %p",
1449 toep->ddp.flags, inp);
1461 so = inp->inp_socket;
1494 restore_so_proto(so, inp->inp_vflag & INP_IPV6);
1497 INP_UNLOCK_ASSERT(inp); /* safe, we have a ref on the inp */
1501 INP_WLOCK(inp);
1510 INP_WUNLOCK(inp);
1527 struct inpcb *inp = toep->inp;
1542 INP_WLOCK(inp);
1543 tp = intotcpcb(inp);
1551 so = inp->inp_socket;
1556 restore_so_proto(so, inp->inp_vflag & INP_IPV6);
1560 INP_UNLOCK_ASSERT(inp); /* safe, we have a ref on the inp */
1564 INP_WLOCK(inp);
1570 INP_WUNLOCK(inp);
1585 INP_WUNLOCK(inp);
1639 struct inpcb *inp;
1661 inp = toep->inp;
1664 INP_WLOCK(inp);
1666 tp = intotcpcb(inp);
1671 inp->inp_flags, cpl->status);
1679 INP_WUNLOCK(inp);
1684 if ((inp->inp_flags & INP_DROPPED) == 0) {
1685 struct socket *so = inp->inp_socket;
1692 INP_WLOCK(inp); /* re-acquire */
1713 struct inpcb *inp = toep->inp;
1727 CTR5(KTR_CXGBE, "%s: tid %u, toep %p, inp %p, status %d",
1728 __func__, tid, toep, inp, cpl->status);
1733 INP_WLOCK(inp);
1746 struct inpcb *inp = toep->inp;
1773 INP_WLOCK(inp);
1774 if (inp->inp_flags & INP_DROPPED) {
1776 __func__, tid, len, inp->inp_flags);
1777 INP_WUNLOCK(inp);
1782 tp = intotcpcb(inp);
1807 so = inp_inpcbtosocket(inp);
1818 INP_WUNLOCK(inp);
1822 INP_WLOCK(inp);
1825 INP_WUNLOCK(inp);
1900 INP_WUNLOCK(inp);
1912 struct inpcb *inp;
1932 inp = toep->inp;
1939 INP_WLOCK(inp);
1942 INP_WUNLOCK(inp);
1946 KASSERT((inp->inp_flags & INP_DROPPED) == 0,
1947 ("%s: inp_flags 0x%x", __func__, inp->inp_flags));
1949 tp = intotcpcb(inp);
1971 so = inp->inp_socket;
2037 INP_WUNLOCK(inp);
2291 struct inpcb *inp;
2388 inp = toep->inp;
2389 INP_WLOCK(inp);
2390 if (inp->inp_flags & INP_DROPPED) {
2391 INP_WUNLOCK(inp);
2404 if (!(inp->inp_flags & INP_DROPPED)) {
2405 tp = intotcpcb(inp);
2410 INP_UNLOCK_ASSERT(inp);
2419 INP_WUNLOCK(inp);
2496 SOCKBUF_LOCK_ASSERT(&toep->inp->inp_socket->so_snd);