Lines Matching +full:tx +full:- +full:device

32  * can support communications to a single network device). The
42 * The ldc is a bi-directional channel, which is divided up into
44 * virtual network device, the other inbound to the switch.
45 * Depending on the type of device each lane may have seperate
58 * +----->port_t----->port_t----->port_t----->
60 * +--->ldc_t
62 * +--->lane_t (inbound)
64 * | +--->dring
66 * +--->lane_t (outbound)
68 * +--->dring
80 * LDC pkt tranfer MTU - largest msg size used
184 * Each descriptor element has a pre-allocated data buffer
186 * copied. By pre-allocating we speed up the copying process.
187 * The buffer is re-used once the peer has indicated that it is
214 ((i) = (((i) + 1) & ((dp)->num_descriptors - 1)))
218 ((i) = (((i) - 1) & ((dp)->num_descriptors - 1)))
227 (((i) >= 0) && ((i) < (dp)->num_descriptors))
269 kmutex_t txlock; /* protect tx desc alloc */
270 uint32_t next_txi; /* next tx descriptor index */
289 * common ldc parameters and also has private lane-specific
308 #define VSW_LDC_INIT 0x1 /* Initial non-drain state */
312 * vnet-protocol-version dependent function prototypes.
318 /* ldc information associated with a vsw-port */
343 uint8_t dev_class; /* Peer device class */
351 /* tx thread fields */
352 kthread_t *tx_thread; /* tx thread */
353 uint32_t tx_thr_flags; /* tx thread flags */
354 kmutex_t tx_thr_lock; /* lock for tx thread */
355 kcondvar_t tx_thr_cv; /* cond.var for tx thread */
356 mblk_t *tx_mhead; /* tx mblks head */
357 mblk_t *tx_mtail; /* tx mblks tail */
358 uint32_t tx_cnt; /* # of pkts queued for tx */
372 vsw_ldctx_t tx; /* transmit function */ member
390 boolean_t mac_added; /* added into physical device */
394 #define VSW_PORT_INIT 0x1 /* Initial non-detach state */
424 * mac address of the port & connected device
461 * VSW_CONN_RESET -> LDC_RESET_EVT
462 * VSW_CONN_UP -> LDC_UP_EVT
481 (bcmp(&ehp->ether_dhost, &etherbroadcastaddr, ETHERADDRL) == 0)
483 ((ehp->ether_dhost.ether_addr_octet[0] & 01) == 1)
489 #define VSW_PORT_REFHOLD(portp) atomic_inc_32(&((portp)->ref_cnt))
490 #define VSW_PORT_REFRELE(portp) atomic_dec_32(&((portp)->ref_cnt))