Lines Matching refs:id
247 ldcdebug(int64_t id, const char *fmt, ...) in ldcdebug() argument
258 if ((id != DBG_ALL_LDCS) && in ldcdebug()
260 (ldcdbgchan != id)) { in ldcdebug()
279 if ((ldcdbgchan != DBG_ALL_LDCS) && (ldcdbgchan != ldcp->id)) in ldc_inject_error()
303 #define DUMP_PAYLOAD(id, addr) \ argument
311 D2((id), "payload: %s", buf); \
319 D2((c)->id, "%s: msg%d (/%x/%x/%x/,env[%c%c,sz=%d])", \
325 D2((c)->id, "%s: msg%d (/%x/%x/%x/,env=%x)", (s), \
344 #define DUMP_PAYLOAD(id, addr) argument
361 uint64_t, ldcp->id, \
368 uint64_t, ldcp->id, \
375 DTRACE_PROBE2(rxdq__copy, uint64_t, ldcp->id, uint64_t, bytes) \
590 rv = hv_ldc_tx_qconf(ldcp->id, ldcp->tx_q_ra, ldcp->tx_q_entries); in i_ldc_txq_reconf()
593 "i_ldc_txq_reconf: (0x%lx) cannot set qconf", ldcp->id); in i_ldc_txq_reconf()
596 rv = hv_ldc_tx_get_state(ldcp->id, &(ldcp->tx_head), in i_ldc_txq_reconf()
600 "i_ldc_txq_reconf: (0x%lx) cannot get qptrs", ldcp->id); in i_ldc_txq_reconf()
603 D1(ldcp->id, "i_ldc_txq_reconf: (0x%llx) h=0x%llx,t=0x%llx," in i_ldc_txq_reconf()
604 "s=0x%llx\n", ldcp->id, ldcp->tx_head, ldcp->tx_tail, in i_ldc_txq_reconf()
620 rv = hv_ldc_rx_get_state(ldcp->id, &rx_head, &rx_tail, in i_ldc_rxq_reconf()
625 ldcp->id); in i_ldc_rxq_reconf()
630 rv = hv_ldc_rx_qconf(ldcp->id, ldcp->rx_q_ra, in i_ldc_rxq_reconf()
635 ldcp->id); in i_ldc_rxq_reconf()
638 D1(ldcp->id, "i_ldc_rxq_reconf: (0x%llx) completed q reconf", in i_ldc_rxq_reconf()
639 ldcp->id); in i_ldc_rxq_reconf()
657 rv = hv_ldc_rx_get_state(ldcp->id, &rx_head, &rx_tail, in i_ldc_rxq_drain()
661 "rv = 0x%x", ldcp->id, rv); in i_ldc_rxq_drain()
675 if ((rv = hv_ldc_rx_set_qhead(ldcp->id, rx_tail)) == 0) in i_ldc_rxq_drain()
680 if ((rv = hv_ldc_rx_set_qhead(ldcp->id, rx_tail)) == 0) in i_ldc_rxq_drain()
685 "rv = 0x%x", ldcp->id, rx_tail, rv); in i_ldc_rxq_drain()
728 DWARN(ldcp->id, "i_ldc_reset: (0x%llx) channel reset\n", ldcp->id); in i_ldc_reset()
763 (void) hv_ldc_rx_qconf(ldcp->id, ldcp->rx_q_ra, in i_ldc_debug_enter()
799 (void) cinfo->clr_intr(cinfo->dip, ldcp->id, itype); in i_ldc_clear_intr()
800 D2(ldcp->id, in i_ldc_clear_intr()
802 ldcp->id, itype); in i_ldc_clear_intr()
818 if ((rv = hv_ldc_rx_set_qhead(ldcp->id, head)) == 0) in i_ldc_set_rx_head()
829 "rv = 0x%x", ldcp->id, head, rv); in i_ldc_set_rx_head()
884 rv = hv_ldc_tx_get_state(ldcp->id, in i_ldc_get_tx_tail()
889 ldcp->id); in i_ldc_get_tx_tail()
893 D1(ldcp->id, "i_ldc_get_tx_tail: (0x%llx) channel not ready\n", in i_ldc_get_tx_tail()
894 ldcp->id); in i_ldc_get_tx_tail()
905 DWARN(ldcp->id, in i_ldc_get_tx_tail()
907 ldcp->id); in i_ldc_get_tx_tail()
911 D2(ldcp->id, "i_ldc_get_tx_tail: (0x%llx) head=0x%llx, tail=0x%llx\n", in i_ldc_get_tx_tail()
912 ldcp->id, ldcp->tx_head, ldcp->tx_tail); in i_ldc_get_tx_tail()
932 if ((rv = hv_ldc_tx_set_qtail(ldcp->id, tail)) == 0) { in i_ldc_set_tx_tail()
937 DWARN(ldcp->id, "i_ldc_set_tx_tail: (0x%llx) set " in i_ldc_set_tx_tail()
938 "qtail=0x%llx failed, rv=%d\n", ldcp->id, tail, rv); in i_ldc_set_tx_tail()
1013 return (i_ldc_h2v_error(hv_ldc_rx_get_state(ldcp->id, head, tail, in i_ldc_hvq_rx_get_state()
1040 D1(ldcp->id, "i_ldc_rx_hdlr: (0x%llx) Received intr, ldcp=0x%p\n", in i_ldc_rx_hdlr()
1041 ldcp->id, ldcp); in i_ldc_rx_hdlr()
1042 D1(ldcp->id, "i_ldc_rx_hdlr: (%llx) USR%lx/TS%lx/HS%lx, LSTATE=%lx\n", in i_ldc_rx_hdlr()
1043 ldcp->id, ldcp->status, ldcp->tstate, ldcp->hstate, in i_ldc_rx_hdlr()
1075 DWARN(ldcp->id, in i_ldc_rx_hdlr()
1077 ldcp->id); in i_ldc_rx_hdlr()
1106 D1(ldcp->id, "i_ldc_rx_hdlr: (0x%llx) exiting handler", ldcp->id); in i_ldc_rx_hdlr()
1146 DWARN(ldcp->id, in i_ldc_send_pkt()
1149 ldcp->id, pkttype, subtype, ctrlmsg); in i_ldc_send_pkt()
1179 DWARN(ldcp->id, in i_ldc_send_pkt()
1182 ldcp->id, pkttype, subtype, ctrlmsg); in i_ldc_send_pkt()
1214 DWARN(ldcp->id, in i_ldc_check_seqid()
1216 "expecting 0x%x\n", ldcp->id, msg->seqid, in i_ldc_check_seqid()
1223 DWARN(ldcp->id, in i_ldc_check_seqid()
1224 "i_ldc_check_seqid: (0x%llx) inject pkt loss\n", ldcp->id); in i_ldc_check_seqid()
1247 D2(ldcp->id, "i_ldc_process_VER: (0x%llx) received VER v%u.%u\n", in i_ldc_process_VER()
1248 ldcp->id, rcvd_ver->major, rcvd_ver->minor); in i_ldc_process_VER()
1266 DWARN(ldcp->id, in i_ldc_process_VER()
1268 "version ACK/NACK\n", ldcp->id); in i_ldc_process_VER()
1283 D1(ldcp->id, "i_ldc_process_VER: got %u.%u chk %u.%u\n", in i_ldc_process_VER()
1305 D1(ldcp->id, "i_ldc_process_VER: using next" in i_ldc_process_VER()
1321 D1(ldcp->id, "i_ldc_process_VER: inc idx %x\n", idx); in i_ldc_process_VER()
1340 D2(ldcp->id, "i_ldc_process_VER: (0x%llx) sent" in i_ldc_process_VER()
1341 " version ACK\n", ldcp->id); in i_ldc_process_VER()
1350 ldcp->id, rcvd_ver->major, rcvd_ver->minor); in i_ldc_process_VER()
1353 DWARN(ldcp->id, in i_ldc_process_VER()
1355 "ACK/NACK\n", ldcp->id); in i_ldc_process_VER()
1369 DWARN(ldcp->id, in i_ldc_process_VER()
1371 " ACK ver != sent ACK ver\n", ldcp->id); in i_ldc_process_VER()
1383 D1(ldcp->id, "(0x%llx) Got ACK, Agreed on version v%u.%u\n", in i_ldc_process_VER()
1384 ldcp->id, rcvd_ver->major, rcvd_ver->minor); in i_ldc_process_VER()
1389 DWARN(ldcp->id, in i_ldc_process_VER()
1391 ldcp->id); in i_ldc_process_VER()
1417 D2(ldcp->id, in i_ldc_process_VER()
1419 ldcp->id); in i_ldc_process_VER()
1436 ldcp->id); in i_ldc_process_VER()
1447 "version ACK/NACK\n", ldcp->id); in i_ldc_process_VER()
1478 D1(ldcp->id, "i_ldc_process_VER: using next" in i_ldc_process_VER()
1493 D1(ldcp->id, "i_ldc_process_VER: inc idx %x\n", idx); in i_ldc_process_VER()
1509 D2(ldcp->id, "i_ldc_process_VER: (0x%llx) sent version" in i_ldc_process_VER()
1510 "INFO v%u.%u\n", ldcp->id, ldc_versions[idx].major, in i_ldc_process_VER()
1516 "INFO\n", ldcp->id); in i_ldc_process_VER()
1541 D2(ldcp->id, "i_ldc_process_RTS: (0x%llx) received RTS\n", ldcp->id); in i_ldc_process_RTS()
1545 DWARN(ldcp->id, in i_ldc_process_RTS()
1547 ldcp->id); in i_ldc_process_RTS()
1562 ldcp->id); in i_ldc_process_RTS()
1580 DWARN(ldcp->id, "i_ldc_process_RTS: (0x%llx) unexp ACK\n", in i_ldc_process_RTS()
1581 ldcp->id); in i_ldc_process_RTS()
1612 ldcp->id); in i_ldc_process_RTS()
1637 D2(ldcp->id, in i_ldc_process_RTS()
1638 "i_ldc_process_RTS: (0x%llx) sent RTR\n", ldcp->id); in i_ldc_process_RTS()
1647 ldcp->id); in i_ldc_process_RTS()
1666 D2(ldcp->id, "i_ldc_process_RTR: (0x%llx) received RTR\n", ldcp->id); in i_ldc_process_RTR()
1671 DWARN(ldcp->id, in i_ldc_process_RTR()
1673 ldcp->id); in i_ldc_process_RTR()
1687 DWARN(ldcp->id, in i_ldc_process_RTR()
1690 ldcp->id, ldcp->mode, (ldc_mode_t)msg->env); in i_ldc_process_RTR()
1709 DWARN(ldcp->id, "i_ldc_process_RTR: (0x%llx) unexp ACK\n", in i_ldc_process_RTR()
1710 ldcp->id); in i_ldc_process_RTR()
1736 ldcp->id); in i_ldc_process_RTR()
1742 D2(ldcp->id, in i_ldc_process_RTR()
1743 "i_ldc_process_RTR: (0x%llx) sent RDX\n", ldcp->id); in i_ldc_process_RTR()
1750 D1(ldcp->id, "(0x%llx) Handshake Complete\n", ldcp->id); in i_ldc_process_RTR()
1764 D2(ldcp->id, "i_ldc_process_RDX: (0x%llx) received RDX\n", ldcp->id); in i_ldc_process_RDX()
1769 DWARN(ldcp->id, in i_ldc_process_RDX()
1771 ldcp->id); in i_ldc_process_RDX()
1790 " - LDC reset\n", ldcp->id); in i_ldc_process_RDX()
1802 D1(DBG_ALL_LDCS, "(0x%llx) Handshake Complete\n", ldcp->id); in i_ldc_process_RDX()
1806 DWARN(ldcp->id, "i_ldc_process_RDX: (0x%llx) unexp ACK\n", in i_ldc_process_RDX()
1807 ldcp->id); in i_ldc_process_RDX()
1836 rv = hv_ldc_tx_get_state(ldcp->id, in i_ldc_process_data_ACK()
1841 ldcp->id); in i_ldc_process_data_ACK()
1862 D2(ldcp->id, in i_ldc_process_data_ACK()
1864 ldcp->id); in i_ldc_process_data_ACK()
1871 DWARN(ldcp->id, in i_ldc_process_data_ACK()
1873 ldcp->id); in i_ldc_process_data_ACK()
1897 D1(ldcp->id, "i_ldc_ctrlmsg: (%llx) tstate = %lx, hstate = %lx\n", in i_ldc_ctrlmsg()
1898 ldcp->id, ldcp->tstate, ldcp->hstate); in i_ldc_ctrlmsg()
1911 DWARN(ldcp->id, in i_ldc_ctrlmsg()
1913 "tstate=0x%x\n", ldcp->id, in i_ldc_ctrlmsg()
1940 DWARN(ldcp->id, in i_ldc_ctrlmsg()
1942 "tstate=0x%x\n", ldcp->id, in i_ldc_ctrlmsg()
1953 DWARN(ldcp->id, in i_ldc_ctrlmsg()
1955 "- LDC reset\n", ldcp->id); in i_ldc_ctrlmsg()
1970 DWARN(ldcp->id, in i_ldc_ctrlmsg()
1972 "tstate=0x%x\n", ldcp->id, in i_ldc_ctrlmsg()
1991 DWARN(ldcp->id, in i_ldc_register_channel()
1996 rv = cinfo->reg_chan(cinfo->dip, ldcp->id, ldcp->devclass); in i_ldc_register_channel()
1998 DWARN(ldcp->id, in i_ldc_register_channel()
2003 rv = cinfo->add_intr(cinfo->dip, ldcp->id, CNEX_TX_INTR, in i_ldc_register_channel()
2006 DWARN(ldcp->id, in i_ldc_register_channel()
2008 (void) cinfo->unreg_chan(cinfo->dip, ldcp->id); in i_ldc_register_channel()
2012 rv = cinfo->add_intr(cinfo->dip, ldcp->id, CNEX_RX_INTR, in i_ldc_register_channel()
2015 DWARN(ldcp->id, in i_ldc_register_channel()
2017 (void) cinfo->rem_intr(cinfo->dip, ldcp->id, CNEX_TX_INTR); in i_ldc_register_channel()
2018 (void) cinfo->unreg_chan(cinfo->dip, ldcp->id); in i_ldc_register_channel()
2037 DWARN(ldcp->id, in i_ldc_unregister_channel()
2045 rv = cinfo->rem_intr(cinfo->dip, ldcp->id, CNEX_RX_INTR); in i_ldc_unregister_channel()
2048 DWARN(ldcp->id, in i_ldc_unregister_channel()
2063 rv = cinfo->rem_intr(cinfo->dip, ldcp->id, in i_ldc_unregister_channel()
2066 DWARN(ldcp->id, "i_ldc_unregister_channel: " in i_ldc_unregister_channel()
2073 rv = cinfo->rem_intr(cinfo->dip, ldcp->id, CNEX_TX_INTR); in i_ldc_unregister_channel()
2075 DWARN(ldcp->id, in i_ldc_unregister_channel()
2081 rv = cinfo->unreg_chan(ldcssp->cinfo.dip, ldcp->id); in i_ldc_unregister_channel()
2083 DWARN(ldcp->id, in i_ldc_unregister_channel()
2114 D1(ldcp->id, "i_ldc_tx_hdlr: (0x%llx) Received intr, ldcp=0x%p\n", in i_ldc_tx_hdlr()
2115 ldcp->id, ldcp); in i_ldc_tx_hdlr()
2129 rv = hv_ldc_tx_get_state(ldcp->id, &ldcp->tx_head, &ldcp->tx_tail, in i_ldc_tx_hdlr()
2134 ldcp->id, rv); in i_ldc_tx_hdlr()
2148 D1(ldcp->id, "i_ldc_tx_hdlr: channel link down\n", ldcp->id); in i_ldc_tx_hdlr()
2156 D1(ldcp->id, "i_ldc_tx_hdlr: channel link reset\n", ldcp->id); in i_ldc_tx_hdlr()
2165 D1(ldcp->id, "i_ldc_tx_hdlr: channel link up\n", ldcp->id); in i_ldc_tx_hdlr()
2184 DWARN(ldcp->id, "i_ldc_tx_hdlr: (0x%llx) callback " in i_ldc_tx_hdlr()
2185 "failure", ldcp->id); in i_ldc_tx_hdlr()
2193 D1(ldcp->id, "i_ldc_tx_hdlr: (0x%llx) exiting handler", ldcp->id); in i_ldc_tx_hdlr()
2245 rv = hv_ldc_rx_get_state(ldcp->id, &rx_head, &rx_tail, in i_ldc_rx_process_hvq()
2250 "queue ptrs, rv=0x%d\n", ldcp->id, rv); in i_ldc_rx_process_hvq()
2265 D1(ldcp->id, "i_ldc_rx_process_hvq: channel " in i_ldc_rx_process_hvq()
2266 "link down\n", ldcp->id); in i_ldc_rx_process_hvq()
2275 D1(ldcp->id, "i_ldc_rx_process_hvq: " in i_ldc_rx_process_hvq()
2276 "channel link up\n", ldcp->id); in i_ldc_rx_process_hvq()
2291 D1(ldcp->id, "i_ldc_rx_process_hvq: channel " in i_ldc_rx_process_hvq()
2292 "link reset\n", ldcp->id); in i_ldc_rx_process_hvq()
2314 D2(ldcp->id, "i_ldc_rx_process_hvq: (0x%llx) " in i_ldc_rx_process_hvq()
2315 "No packets\n", ldcp->id); in i_ldc_rx_process_hvq()
2319 D2(ldcp->id, "i_ldc_rx_process_hvq: head=0x%llx, " in i_ldc_rx_process_hvq()
2375 DWARN(ldcp->id, "i_ldc_rx_process_hvq: (0x%llx) " in i_ldc_rx_process_hvq()
2376 "seqid error, q_ptrs=0x%lx,0x%lx", ldcp->id, in i_ldc_rx_process_hvq()
2394 ldcp->id); in i_ldc_rx_process_hvq()
2444 DWARN(ldcp->id, in i_ldc_rx_process_hvq()
2446 ldcp->id); in i_ldc_rx_process_hvq()
2501 "send ACK\n", ldcp->id); in i_ldc_rx_process_hvq()
2581 ldc_init(uint64_t id, ldc_attr_t *attr, ldc_handle_t *handle) in ldc_init() argument
2591 DWARN(id, "ldc_init: (0x%llx) invalid attr\n", id); in ldc_init()
2595 DWARN(id, "ldc_init: (0x%llx) invalid handle\n", id); in ldc_init()
2600 rv = hv_ldc_tx_qinfo(id, &ra_base, &nentries); in ldc_init()
2602 DWARN(id, "ldc_init: (0x%llx) invalid channel id\n", id); in ldc_init()
2610 if (ldcp->id == id) { in ldc_init()
2611 DWARN(id, "ldc_init: (0x%llx) already initialized\n", in ldc_init()
2612 id); in ldc_init()
2647 ldcp->id = id; in ldc_init()
2660 D1(ldcp->id, in ldc_init()
2663 ldcp->id, ldcp->devclass, ldcp->devinst, ldcp->mode, ldcp->mtu); in ldc_init()
2726 D1(ldcp->id, "ldc_init: queue length = 0x%llx\n", ldcp->rx_q_entries); in ldc_init()
2734 ldcp->id); in ldc_init()
2740 D2(ldcp->id, "ldc_init: txq_va=0x%llx, txq_ra=0x%llx, entries=0x%llx\n", in ldc_init()
2751 ldcp->id); in ldc_init()
2757 D2(ldcp->id, "ldc_init: rxq_va=0x%llx, rxq_ra=0x%llx, entries=0x%llx\n", in ldc_init()
2769 D1(ldcp->id, "ldc_init: (0x%llx) ldc_rxdq_multiplier " in ldc_init()
2770 "not a power of 2, resetting", ldcp->id); in ldc_init()
2781 "allocation failed\n", ldcp->id); in ldc_init()
2788 D2(ldcp->id, "ldc_init: rx_dq_va=0x%llx, " in ldc_init()
2814 D1(ldcp->id, "ldc_init: (0x%llx) channel initialized\n", ldcp->id); in ldc_init()
2851 uint64_t id; in ldc_fini() local
2858 id = ldcp->id; in ldc_fini()
2863 DWARN(ldcp->id, "ldc_fini: (0x%llx) channel is open\n", in ldc_fini()
2864 ldcp->id); in ldc_fini()
2898 (void) hv_ldc_set_map_table(ldcp->id, NULL, NULL); in ldc_fini()
2941 D1(id, "ldc_fini: (0x%llx) channel finalized\n", id); in ldc_fini()
2967 DWARN(ldcp->id, in ldc_open()
2968 "ldc_open: (0x%llx) channel not initialized\n", ldcp->id); in ldc_open()
2973 DWARN(ldcp->id, in ldc_open()
2974 "ldc_open: (0x%llx) channel is already open\n", ldcp->id); in ldc_open()
2982 rv = hv_ldc_tx_qconf(ldcp->id, NULL, NULL); in ldc_open()
2986 ldcp->id); in ldc_open()
2991 rv = hv_ldc_tx_qconf(ldcp->id, ldcp->tx_q_ra, ldcp->tx_q_entries); in ldc_open()
2995 ldcp->id); in ldc_open()
3000 D2(ldcp->id, "ldc_open: (0x%llx) registered tx queue with LDC\n", in ldc_open()
3001 ldcp->id); in ldc_open()
3006 rv = hv_ldc_rx_qconf(ldcp->id, NULL, NULL); in ldc_open()
3010 ldcp->id); in ldc_open()
3015 rv = hv_ldc_rx_qconf(ldcp->id, ldcp->rx_q_ra, ldcp->rx_q_entries); in ldc_open()
3019 ldcp->id); in ldc_open()
3024 D2(ldcp->id, "ldc_open: (0x%llx) registered rx queue with LDC\n", in ldc_open()
3025 ldcp->id); in ldc_open()
3033 "ldc_open: (0x%lx) channel register failed\n", ldcp->id); in ldc_open()
3035 (void) hv_ldc_tx_qconf(ldcp->id, NULL, NULL); in ldc_open()
3036 (void) hv_ldc_rx_qconf(ldcp->id, NULL, NULL); in ldc_open()
3045 rv = hv_ldc_tx_get_state(ldcp->id, in ldc_open()
3050 ldcp->id); in ldc_open()
3053 (void) hv_ldc_tx_qconf(ldcp->id, NULL, NULL); in ldc_open()
3054 (void) hv_ldc_rx_qconf(ldcp->id, NULL, NULL); in ldc_open()
3089 D1(ldcp->id, in ldc_open()
3092 ldcp->id, ldcp, ldcp->tstate, ldcp->status); in ldc_open()
3119 DWARN(ldcp->id, in ldc_close()
3120 "ldc_close: (0x%llx) channel is not open\n", ldcp->id); in ldc_close()
3127 DWARN(ldcp->id, in ldc_close()
3129 ldcp->id); in ldc_close()
3134 DWARN(ldcp->id, in ldc_close()
3136 ldcp->id); in ldc_close()
3141 DWARN(ldcp->id, in ldc_close()
3143 ldcp->id); in ldc_close()
3149 DWARN(ldcp->id, "ldc_close: (0x%llx) callback active\n", in ldc_close()
3150 ldcp->id); in ldc_close()
3164 rv = hv_ldc_tx_get_state(ldcp->id, in ldc_close()
3168 "ldc_close: (0x%lx) cannot read qptrs\n", ldcp->id); in ldc_close()
3180 DWARN(ldcp->id, in ldc_close()
3182 ldcp->id); in ldc_close()
3214 ldcp->id, rv); in ldc_close()
3233 rv = hv_ldc_tx_qconf(ldcp->id, NULL, NULL); in ldc_close()
3237 ldcp->id); in ldc_close()
3242 rv = hv_ldc_rx_qconf(ldcp->id, NULL, NULL); in ldc_close()
3246 ldcp->id); in ldc_close()
3269 D1(ldcp->id, "ldc_close: (0x%llx) channel closed\n", ldcp->id); in ldc_close()
3297 DWARN(ldcp->id, "ldc_reg_callback: (0x%llx) callback exists\n", in ldc_reg_callback()
3298 ldcp->id); in ldc_reg_callback()
3303 DWARN(ldcp->id, "ldc_reg_callback: (0x%llx) callback active\n", in ldc_reg_callback()
3304 ldcp->id); in ldc_reg_callback()
3313 D1(ldcp->id, in ldc_reg_callback()
3315 ldcp->id); in ldc_reg_callback()
3340 DWARN(ldcp->id, in ldc_unreg_callback()
3342 ldcp->id); in ldc_unreg_callback()
3347 DWARN(ldcp->id, in ldc_unreg_callback()
3349 ldcp->id); in ldc_unreg_callback()
3358 D1(ldcp->id, in ldc_unreg_callback()
3360 ldcp->id); in ldc_unreg_callback()
3389 D1(ldcp->id, "ldc_up: (0x%llx) doing channel UP\n", ldcp->id); in ldc_up()
3396 DWARN(ldcp->id, in ldc_up()
3398 ldcp->id); in ldc_up()
3411 D1(ldcp->id, in ldc_up()
3413 "clearing interrupt\n", ldcp->id); in ldc_up()
3430 D1(ldcp->id, in ldc_up()
3432 ldcp->id); in ldc_up()
3445 D1(ldcp->id, "ldc_up: (0x%llx) cannot initiate handshake\n", in ldc_up()
3446 ldcp->id); in ldc_up()
3493 DWARN(ldcp->id, in ldc_up()
3495 ldcp->id, rv); in ldc_up()
3503 D1(ldcp->id, "ldc_up: (0x%llx) channel up initiated\n", ldcp->id); in ldc_up()
3550 D1(ldcp->id, in ldc_status()
3551 "ldc_status: (0x%llx) returned status %d\n", ldcp->id, *status); in ldc_status()
3579 DWARN(ldcp->id, in ldc_set_cb_mode()
3581 ldcp->id); in ldc_set_cb_mode()
3586 D1(ldcp->id, "ldc_set_cb_mode: (0x%llx) disabled callbacks\n", in ldc_set_cb_mode()
3587 ldcp->id); in ldc_set_cb_mode()
3592 DWARN(ldcp->id, in ldc_set_cb_mode()
3594 ldcp->id); in ldc_set_cb_mode()
3599 D1(ldcp->id, "ldc_set_cb_mode: (0x%llx) enabled callbacks\n", in ldc_set_cb_mode()
3600 ldcp->id); in ldc_set_cb_mode()
3631 D1(ldcp->id, in ldc_chkq()
3632 "ldc_chkq: (0x%llx) channel is not up\n", ldcp->id); in ldc_chkq()
3638 rv = hv_ldc_rx_get_state(ldcp->id, &rx_head, &rx_tail, in ldc_chkq()
3642 "ldc_chkq: (0x%lx) unable to read queue ptrs", ldcp->id); in ldc_chkq()
3703 "(0x%x)", ldcp->id, ldcp->mode); in ldc_chkq()
3738 DWARN(ldcp->id, in ldc_read()
3740 ldcp->id); in ldc_read()
3772 rv = hv_ldc_rx_get_state(ldcp->id, &rx_head, &rx_tail, in ldc_read()
3776 ldcp->id); in ldc_read()
3831 rv = hv_ldc_rx_get_state(ldcp->id, &rx_head, &rx_tail, in i_ldc_read_raw()
3836 ldcp->id); in i_ldc_read_raw()
3839 D1(ldcp->id, "ldc_read_raw: (0x%llx) rxh=0x%llx," in i_ldc_read_raw()
3841 ldcp->id, rx_head, rx_tail, ldcp->link_state); in i_ldc_read_raw()
3868 DUMP_PAYLOAD(ldcp->id, msgbufp); in i_ldc_read_raw()
3903 DWARN(ldcp->id, "ldc_read: (0x%llx) invalid buffer/size\n", in i_ldc_read_packet()
3904 ldcp->id); in i_ldc_read_packet()
3924 ldcp->id); in i_ldc_read_packet()
3930 D1(ldcp->id, "ldc_read: (0x%llx) chd=0x%llx, tl=0x%llx, st=0x%llx\n", in i_ldc_read_packet()
3931 ldcp->id, curr_head, rx_tail, ldcp->link_state); in i_ldc_read_packet()
3953 ldcp->id); in i_ldc_read_packet()
3979 "(0x%llx) read timeout", ldcp->id); in i_ldc_read_packet()
3988 D2(ldcp->id, in i_ldc_read_packet()
3990 ldcp->id, curr_head, rx_head, rx_tail); in i_ldc_read_packet()
4002 DWARN(ldcp->id, "ldc_read: (0x%llx) seqid " in i_ldc_read_packet()
4004 ldcp->id, rx_head, rx_tail); in i_ldc_read_packet()
4023 "NACK msg\n", ldcp->id); in i_ldc_read_packet()
4069 DWARN(ldcp->id, in i_ldc_read_packet()
4071 ldcp->id); in i_ldc_read_packet()
4086 D2(ldcp->id, in i_ldc_read_packet()
4087 "ldc_read: (0x%llx) received data msg\n", ldcp->id); in i_ldc_read_packet()
4112 "frag=%x\n", ldcp->id, in i_ldc_read_packet()
4136 ldcp->id, msg->env&LDC_FRAG_MASK, in i_ldc_read_packet()
4164 "head=0x%lx, expect=%d, got=%d\n", ldcp->id, in i_ldc_read_packet()
4214 D2(ldcp->id, "ldc_read: (0x%llx) set ACK qhead 0x%llx", in i_ldc_read_packet()
4215 ldcp->id, curr_head); in i_ldc_read_packet()
4220 D2(ldcp->id, "ldc_read: (0x%llx) end size=%d", ldcp->id, *sizep); in i_ldc_read_packet()
4245 D2(ldcp->id, "i_ldc_read_stream: (0x%llx) buffer size=%d", in i_ldc_read_stream()
4246 ldcp->id, *sizep); in i_ldc_read_stream()
4252 D2(ldcp->id, "i_ldc_read_stream: read packet (0x%llx) size=%d", in i_ldc_read_stream()
4253 ldcp->id, size); in i_ldc_read_stream()
4268 D2(ldcp->id, "i_ldc_read_stream: (0x%llx) fill from buffer size=%d", in i_ldc_read_stream()
4269 ldcp->id, size); in i_ldc_read_stream()
4299 DWARN(ldcp->id, "ldc_write: (0x%llx) invalid data write\n", in ldc_write()
4300 ldcp->id); in ldc_write()
4306 DWARN(ldcp->id, "ldc_write: (0x%llx) write size of zero\n", in ldc_write()
4307 ldcp->id); in ldc_write()
4314 DWARN(ldcp->id, in ldc_write()
4316 ldcp->id); in ldc_write()
4350 DWARN(ldcp->id, in i_ldc_write_raw()
4352 ldcp->id, *sizep); in i_ldc_write_raw()
4358 rv = hv_ldc_tx_get_state(ldcp->id, in i_ldc_write_raw()
4362 "ldc_write: (0x%lx) cannot read queue ptrs\n", ldcp->id); in i_ldc_write_raw()
4369 DWARN(ldcp->id, in i_ldc_write_raw()
4370 "ldc_write: (0x%llx) channel down/reset\n", ldcp->id); in i_ldc_write_raw()
4397 "ldc_write: (0x%llx) TX queue is full\n", ldcp->id); in i_ldc_write_raw()
4402 D2(ldcp->id, "ldc_write: (0x%llx) start xfer size=%d", in i_ldc_write_raw()
4403 ldcp->id, size); in i_ldc_write_raw()
4421 DWARN(ldcp->id, "ldc_write: (0x%llx) write timed out\n", in i_ldc_write_raw()
4422 ldcp->id); in i_ldc_write_raw()
4448 D2(ldcp->id, "ldc_write: (0x%llx) end xfer size=%d", ldcp->id, size); in i_ldc_write_raw()
4483 rv = hv_ldc_tx_get_state(ldcp->id, in i_ldc_write_packet()
4487 "ldc_write: (0x%lx) cannot read queue ptrs\n", ldcp->id); in i_ldc_write_packet()
4494 DWARN(ldcp->id, in i_ldc_write_packet()
4495 "ldc_write: (0x%llx) channel down/reset\n", ldcp->id); in i_ldc_write_packet()
4526 "ldc_write: (0x%llx) TX queue is full\n", ldcp->id); in i_ldc_write_packet()
4540 "ldc_write: (0x%llx) TX queue has no space\n", ldcp->id); in i_ldc_write_packet()
4544 D2(ldcp->id, "ldc_write: (0x%llx) start xfer size=%d", in i_ldc_write_packet()
4545 ldcp->id, *size); in i_ldc_write_packet()
4618 D1(ldcp->id, "hv_tx_set_tail returns 0x%x (head 0x%x, " in i_ldc_write_packet()
4623 rv2 = hv_ldc_tx_get_state(ldcp->id, in i_ldc_write_packet()
4626 D1(ldcp->id, "hv_ldc_tx_get_state returns 0x%x " in i_ldc_write_packet()
4633 D2(ldcp->id, "ldc_write: (0x%llx) end xfer size=%d", ldcp->id, *size); in i_ldc_write_packet()
4749 DWARN(ldcp->id, in ldc_info()
4751 ldcp->id); in ldc_info()