Searched refs:npipes (Results 1 – 5 of 5) sorted by relevance
/freebsd/tools/tools/netmap/ |
H A D | lb.c | 213 int npipes = glob_arg.output_rings; in print_stats() local 219 pipe_prev = calloc(npipes, sizeof(struct my_ctrs)); in print_stats() 253 for (j = 0; j < npipes; ++j) { in print_stats() 705 uint32_t npipes = glob_arg.output_rings; in main() local 710 ports = calloc(npipes + 1, sizeof(struct port_des)); in main() 715 struct port_des *rxport = &ports[npipes]; in main() 728 counters_buf.ctrs = calloc(npipes, sizeof(struct my_ctrs)); in main() 757 oq = calloc(npipes + 1, sizeof(struct overflow_queue)); in main() 763 freeq = &oq[npipes]; in main() 857 for (i = 0; i < npipes + 1; i++) { in main() [all …]
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_pipe.c | 90 nm_pipe_alloc(struct netmap_adapter *na, u_int npipes) in nm_pipe_alloc() argument 95 if (npipes <= na->na_max_pipes) in nm_pipe_alloc() 99 if (npipes < na->na_next_pipe || npipes > NM_MAXPIPES) in nm_pipe_alloc() 103 len = sizeof(struct netmap_pipe_adapter *) * npipes; in nm_pipe_alloc() 109 na->na_max_pipes = npipes; in nm_pipe_alloc() 156 u_int npipes = parent->na_max_pipes ? 2*parent->na_max_pipes : 2; in netmap_pipe_add() local 157 int error = nm_pipe_alloc(parent, npipes); in netmap_pipe_add()
|
H A D | netmap_mem2.h | 144 u_int extra_bufs, u_int npipes, int* error);
|
H A D | netmap_vale.c | 1147 u_int npipes = 0; in netmap_vale_vp_create() local 1179 nm_bound_var(&npipes, 2, 1, NM_MAXPIPES, NULL); in netmap_vale_vp_create() 1214 req->nr_extra_bufs, npipes, &error); in netmap_vale_vp_create()
|
H A D | netmap_mem2.c | 1765 u_int extra_bufs, u_int npipes, int *perr) in netmap_mem_private_new() argument 1784 v = 2 + 4 * npipes; in netmap_mem_private_new() 1794 v = txr + rxr + 8 * npipes; in netmap_mem_private_new() 1802 v = (4 * npipes + rxr) * rxd + (4 * npipes + txr) * txd + 2 + extra_bufs; in netmap_mem_private_new()
|