Lines Matching refs:nmport_key
307 #define nmport_key(p, o, k) ((p)->keys[NPKEY_ID(o, k)])
362 if (nmport_extmem_from_file(d, nmport_key(p, extmem, file)) < 0)
399 if (nmport_key(p, conf, rings) != NULL) {
400 uint16_t nr_rings = atoi(nmport_key(p, conf, rings));
404 if (nmport_key(p, conf, host_rings) != NULL) {
405 uint16_t nr_rings = atoi(nmport_key(p, conf, host_rings));
409 if (nmport_key(p, conf, slots) != NULL) {
410 uint32_t nr_slots = atoi(nmport_key(p, conf, slots));
414 if (nmport_key(p, conf, tx_rings) != NULL) {
415 d->reg.nr_tx_rings = atoi(nmport_key(p, conf, tx_rings));
417 if (nmport_key(p, conf, rx_rings) != NULL) {
418 d->reg.nr_rx_rings = atoi(nmport_key(p, conf, rx_rings));
420 if (nmport_key(p, conf, host_tx_rings) != NULL) {
421 d->reg.nr_host_tx_rings = atoi(nmport_key(p, conf, host_tx_rings));
423 if (nmport_key(p, conf, host_rx_rings) != NULL) {
424 d->reg.nr_host_rx_rings = atoi(nmport_key(p, conf, host_rx_rings));
426 if (nmport_key(p, conf, tx_slots) != NULL) {
427 d->reg.nr_tx_slots = atoi(nmport_key(p, conf, tx_slots));
429 if (nmport_key(p, conf, rx_slots) != NULL) {
430 d->reg.nr_rx_slots = atoi(nmport_key(p, conf, rx_slots));