Lines Matching refs:kring

408  * The kring is manipulated by txsync/rxsync and generic netmap function.
471 NM_LOCK_T q_lock; /* protects kring and ring. */
474 /* the adapter the owns this kring */
477 /* the adapter that wants to be notified when this kring has
491 * be started on this kring.
494 * structures pointed to by the kring can be added or removed
511 uint32_t ring_id; /* kring identifier */
515 /* [tx]sync callback for this kring.
517 * sets the nm_sync callback of each hardware tx(rx) kring to
526 int (*nm_sync)(struct netmap_kring *kring, int flags);
527 int (*nm_notify)(struct netmap_kring *kring, int flags);
536 int (*save_notify)(struct netmap_kring *kring, int flags);
539 /* array of krings that are monitoring this kring */
554 int (*mon_sync)(struct netmap_kring *kring, int flags);
555 int (*mon_notify)(struct netmap_kring *kring, int flags);
565 /* return 1 iff the kring needs to be turned on */
567 nm_kring_pending_on(struct netmap_kring *kring)
569 return kring->nr_pending_mode == NKR_NETMAP_ON &&
570 kring->nr_mode == NKR_NETMAP_OFF;
573 /* return 1 iff the kring needs to be turned off */
575 nm_kring_pending_off(struct netmap_kring *kring)
577 return kring->nr_pending_mode == NKR_NETMAP_OFF &&
578 kring->nr_mode == NKR_NETMAP_ON;
784 * rx_rings arrays of kring structures. In particular,
801 * kring->nm_notify.
809 int (*nm_txsync)(struct netmap_kring *kring, int flags);
810 int (*nm_rxsync)(struct netmap_kring *kring, int flags);
811 int (*nm_notify)(struct netmap_kring *kring, int flags);
1158 nm_kr_txempty(struct netmap_kring *kring)
1160 return kring->rhead == kring->nr_hwtail;
1171 nm_kr_wouldblock(struct netmap_kring *kring)
1173 return kring->rcur == kring->nr_hwtail;
1379 * from host kring.
1385 * validates parameters in the ring/kring, returns a value for head
1392 * validates parameters in the ring/kring, returns a value for head
1403 kring->ring_id, nm_i, slot->buf_idx, len); \
1446 /* deletes the kring array of the adapter. The array must have
1973 struct netmap_kring *kring = NMR(na, t)[i];
1974 if (kring->nr_mode != kring->nr_pending_mode) {
2254 struct netmap_kring *kring, int flags);
2257 struct netmap_kring *kring, int flags);
2264 ptnet_sync_tail(struct nm_csb_ktoa *ktoa, struct netmap_kring *kring)
2266 struct netmap_ring *ring = kring->ring;
2269 nm_sync_kloop_appl_read(ktoa, &kring->nr_hwtail, &kring->nr_hwcur);
2272 ring->tail = kring->rtail = kring->nr_hwtail;