Searched refs:num_slots (Results 1 - 23 of 23) sorted by relevance

/freebsd-13-stable/sys/dev/netmap/
H A Dnetmap_kloop.c98 uint32_t num_slots)
168 uint32_t num_slots; local
175 num_slots = kring->nkr_num_slots;
182 sync_kloop_kernel_read(csb_atok, &shadow_ring, num_slots);
187 batch += num_slots;
190 if (batch > PTN_TX_BATCH_LIM(num_slots)) {
193 uint32_t head_lim = kring->nr_hwcur + PTN_TX_BATCH_LIM(num_slots);
195 if (head_lim >= num_slots)
196 head_lim -= num_slots;
200 batch = PTN_TX_BATCH_LIM(num_slots);
96 sync_kloop_kernel_read(struct nm_csb_atok __user *ptr, struct netmap_ring *shadow_ring, uint32_t num_slots) argument
321 uint32_t num_slots; local
[all...]
H A Dnetmap_mem2.c1925 *(uint32_t *)(uintptr_t)&ring->num_slots = ndesc;
/freebsd-13-stable/crypto/heimdal/lib/hx509/
H A Dtest_soft_pkcs11.c85 CK_ULONG num_slots; local
98 ret = (*func->C_GetSlotList)(FALSE, NULL, &num_slots);
102 if (num_slots == 0)
105 if ((slot_ids = calloc(1, num_slots * sizeof(*slot_ids))) == NULL)
108 ret = (*func->C_GetSlotList)(FALSE, slot_ids, &num_slots);
H A Dks_p11.c66 CK_ULONG num_slots; member in struct:p11_module
901 ret = P11FUNC(p, GetSlotList, (FALSE, NULL, &p->num_slots));
909 if (p->num_slots == 0) {
922 slot_ids = malloc(p->num_slots * sizeof(*slot_ids));
929 ret = P11FUNC(p, GetSlotList, (FALSE, slot_ids, &p->num_slots));
939 p->slot = calloc(p->num_slots, sizeof(p->slot[0]));
948 for (i = 0; i < p->num_slots; i++) {
982 for (i = 0; i < p->num_slots; i++) {
1025 for (i = 0; i < p->num_slots; i++) {
1058 for (i = 0 ; i < p->num_slots;
[all...]
/freebsd-13-stable/sys/dev/sdhci/
H A Dsdhci_fdt.c116 int num_slots; /* Number of slots on this controller*/ member in struct:sdhci_fdt_softc
405 for (i = 0; i < sc->num_slots; i++)
425 sc->num_slots = 1;
462 sc->num_slots = cid;
504 slots = sc->num_slots; /* number of slots determined in probe(). */
505 sc->num_slots = 0;
507 slot = &sc->slots[sc->num_slots];
527 sc->num_slots++;
529 device_printf(dev, "%d slot(s) allocated\n", sc->num_slots);
540 for (i = 0; i < sc->num_slots;
[all...]
H A Dsdhci_pci.c164 int num_slots; /* Number of slots on this controller */ member in struct:sdhci_pci_softc
381 slot = &sc->slots[sc->num_slots];
398 sc->num_slots++;
400 device_printf(dev, "%d slot(s) allocated\n", sc->num_slots);
408 for (i = 0; i < sc->num_slots; i++) {
426 for (i = 0; i < sc->num_slots; i++) {
455 for (i = 0; i < sc->num_slots; i++)
466 for (i = 0; i < sc->num_slots; i++)
482 for (i = 0; i < sc->num_slots; i++)
/freebsd-13-stable/sys/dev/mmc/host/
H A Ddwmmc_var.h92 uint32_t num_slots; member in struct:dwmmc_softc
H A Ddwmmc.c539 sc->num_slots = 1;
543 sc->num_slots = dts_value[0];
/freebsd-13-stable/tools/tools/pirtool/
H A Dpirtool.c206 int i, num_slots; local
209 num_slots = (pir->size - offsetof(pir_table_t, entry[0])) / 16;
227 num_slots,
250 pend += num_slots;
/freebsd-13-stable/sys/dev/mpr/
H A Dmpr_mapping.c97 enc_entry->num_slots = 0;
136 dpm_entry->MappingInformation = et_entry->num_slots;
966 if (num_found == et_entry->num_slots) {
988 if (num_found == et_entry->num_slots) {
1037 (enc_entry->start_index + enc_entry->num_slots); map_idx++,
1054 if (num_found == et_entry->num_slots) {
1082 enc_entry->num_slots))
1096 enc_entry->num_slots - 1))
1121 enc_entry->num_slots); map_idx++,
1296 " %d.\n", __func__, et_entry->num_slots, map_id
2216 u16 slot_id, entry_num, num_slots; local
[all...]
H A Dmprvar.h170 * @num_slots: number of slots in the enclosure
183 u16 num_slots; member in struct:enc_mapping_table
/freebsd-13-stable/sys/mips/mediatek/
H A Dmtk_pcie.h60 uint32_t num_slots; member in struct:mtk_pci_softc
H A Dmtk_pcie.c787 sc->num_slots = 0;
993 sc->num_slots = 3;
1061 sc->num_slots = 1;
1165 sc->num_slots = 1;
1197 sc->num_slots = 1;
1230 for (i = 0; i < sc->num_slots; i++) {
/freebsd-13-stable/sys/dev/mps/
H A Dmps_mapping.c98 enc_entry->num_slots = 0;
137 dpm_entry->MappingInformation = et_entry->num_slots;
928 if (num_found == et_entry->num_slots) {
950 if (num_found == et_entry->num_slots) {
999 (enc_entry->start_index + enc_entry->num_slots); map_idx++,
1016 if (num_found == et_entry->num_slots) {
1044 enc_entry->num_slots))
1058 enc_entry->num_slots - 1))
1083 enc_entry->num_slots); map_idx++,
1258 " %d.\n", __func__, et_entry->num_slots, map_id
1767 u16 slot_id, entry_num, num_slots; local
[all...]
H A Dmpsvar.h142 * @num_slots: number of slots in the enclosure
155 u16 num_slots; member in struct:enc_mapping_table
/freebsd-13-stable/sys/contrib/vchiq/interface/vchi/connections/
H A Dconnection.h197 typedef void (*VCHI_CONNECTION_INFO)(VCHI_CONNECTION_STATE_T *state, uint32_t protocol_version, uint32_t slot_size, uint32_t num_slots, uint32_t min_bulk_size);
/freebsd-13-stable/sys/net/route/
H A Dnhgrp_ctl.c212 uint32_t num_slots)
224 remaining_slots = num_slots;
241 KASSERT((slot_idx + nh_slots <= num_slots),
211 compile_nhgrp(struct nhgrp_priv *dst_priv, const struct weightened_nhop *x, uint32_t num_slots) argument
/freebsd-13-stable/sys/net/
H A Dnetmap.h80 (tx+htx entries) (num_slots entries)
286 const uint32_t num_slots; /* number of slots in the ring. */ member in struct:netmap_ring
H A Dnetmap_user.h129 return ( unlikely(i + 1 == r->num_slots) ? 0 : i + 1);
149 ret += ring->num_slots;
/freebsd-13-stable/sys/dev/iwn/
H A Dif_iwnvar.h40 uint8_t num_slots; member in struct:iwn_pan_params_cmd
/freebsd-13-stable/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_core.c2288 int num_slots = (mem_size - mem_align)/VCHIQ_SLOT_SIZE; local
2292 num_slots -= first_data_slot;
2294 if (num_slots < 4) {
2313 slot_zero->master.slot_last = first_data_slot + (num_slots/2) - 1;
2314 slot_zero->slave.slot_sync = first_data_slot + (num_slots/2);
2315 slot_zero->slave.slot_first = first_data_slot + (num_slots/2) + 1;
2316 slot_zero->slave.slot_last = first_data_slot + num_slots - 1;
/freebsd-13-stable/tools/tools/netmap/
H A Dpkt-gen.c1896 m = rxring->head + rxring->num_slots - rxring->tail;
1897 if (m >= (int) rxring->num_slots)
1898 m -= rxring->num_slots;
3192 (void *)((char *)ring - (char *)nifp), ring->num_slots);
3197 (void *)((char *)ring - (char *)nifp), ring->num_slots);
H A Dlb.c987 lim += ring->num_slots;

Completed in 361 milliseconds