Searched refs:nb (Results 1 – 7 of 7) sorted by relevance
/tools/lib/bpf/ |
D | xsk.h | 85 static inline __u32 xsk_prod_nb_free(struct xsk_ring_prod *r, __u32 nb) in xsk_prod_nb_free() argument 89 if (free_entries >= nb) in xsk_prod_nb_free() 104 static inline __u32 xsk_cons_nb_avail(struct xsk_ring_cons *r, __u32 nb) in xsk_cons_nb_avail() argument 113 return (entries > nb) ? nb : entries; in xsk_cons_nb_avail() 117 size_t nb, __u32 *idx) in xsk_ring_prod__reserve() argument 119 if (xsk_prod_nb_free(prod, nb) < nb) in xsk_ring_prod__reserve() 123 prod->cached_prod += nb; in xsk_ring_prod__reserve() 125 return nb; in xsk_ring_prod__reserve() 128 static inline void xsk_ring_prod__submit(struct xsk_ring_prod *prod, size_t nb) in xsk_ring_prod__submit() argument 135 *prod->producer += nb; in xsk_ring_prod__submit() [all …]
|
/tools/perf/arch/powerpc/util/ |
D | header.c | 23 int nb; in get_cpuid() local 27 nb = scnprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr)); in get_cpuid() 31 buffer[nb-1] = '\0'; in get_cpuid()
|
/tools/perf/arch/x86/util/ |
D | header.c | 31 int nb; in __get_cpuid() local 55 nb = scnprintf(buffer, sz, fmt, vendor, family, model, step); in __get_cpuid() 59 buffer[nb-1] = '\0'; in __get_cpuid()
|
/tools/arch/x86/lib/ |
D | insn.c | 106 int i, nb; in insn_get_prefixes() local 113 nb = 0; in insn_get_prefixes() 119 for (i = 0; i < nb; i++) in insn_get_prefixes() 122 if (nb == 4) in insn_get_prefixes() 125 prefixes->bytes[nb++] = b; in insn_get_prefixes() 148 for (i = 0; i < nb; i++) in insn_get_prefixes()
|
/tools/perf/util/ |
D | symbol.c | 141 size_t na, nb; in choose_best_symbol() local 177 nb = strlen(symb->name); in choose_best_symbol() 178 if (na > nb) in choose_best_symbol() 180 else if (na < nb) in choose_best_symbol()
|
D | probe-finder.c | 281 #define BYTES_TO_BITS(nb) ((nb) * BITS_PER_LONG / sizeof(long)) argument
|
D | header.c | 1254 const struct memory_node *nb = b; in memory_node__sort() local 1256 return na->node - nb->node; in memory_node__sort()
|