Lines Matching refs:num_addr
30 int num_addr; /* number of addresses in use */ member
42 CreateAddressPool(in_addr_t addr_base, int num_addr) in CreateAddressPool() argument
55 num_entry = num_addr * (MAX_PORT - MIN_PORT); in CreateAddressPool()
63 ap->mapper = (struct addr_map *)calloc(num_addr, sizeof(struct addr_map)); in CreateAddressPool()
82 ap->num_addr = num_addr; in CreateAddressPool()
85 for (i = 0; i < num_addr; i++) { in CreateAddressPool()
110 in_addr_t saddr_base, int num_addr, in_addr_t daddr, in_port_t dport) in CreateAddressPoolPerCore() argument
125 num_entry = (num_addr * (MAX_PORT - MIN_PORT)) / num_queues; in CreateAddressPoolPerCore()
133 ap->mapper = (struct addr_map *)calloc(num_addr, sizeof(struct addr_map)); in CreateAddressPoolPerCore()
152 ap->num_addr = num_addr; in CreateAddressPoolPerCore()
158 for (i = 0; i < num_addr; i++) { in CreateAddressPoolPerCore()
312 if (index >= 0 && index < ap->num_addr) { in FreeAddress()