Home
last modified time | relevance | path

Searched refs:num_slots (Results 1 – 22 of 22) sorted by relevance

/freebsd-14.2/sys/dev/netmap/
H A Dnetmap_kloop.c96 uint32_t num_slots) in sync_kloop_kernel_read() argument
168 uint32_t num_slots; in netmap_sync_kloop_tx_ring() local
175 num_slots = kring->nkr_num_slots; in netmap_sync_kloop_tx_ring()
187 batch += num_slots; in netmap_sync_kloop_tx_ring()
190 if (batch > PTN_TX_BATCH_LIM(num_slots)) { in netmap_sync_kloop_tx_ring()
195 if (head_lim >= num_slots) in netmap_sync_kloop_tx_ring()
196 head_lim -= num_slots; in netmap_sync_kloop_tx_ring()
200 batch = PTN_TX_BATCH_LIM(num_slots); in netmap_sync_kloop_tx_ring()
325 uint32_t num_slots; in netmap_sync_kloop_rx_ring() local
331 num_slots = kring->nkr_num_slots; in netmap_sync_kloop_rx_ring()
[all …]
H A Dnetmap_mem2.c2022 *(uint32_t *)(uintptr_t)&ring->num_slots = ndesc; in netmap_mem2_rings_create()
/freebsd-14.2/crypto/heimdal/lib/hx509/
H A Dtest_soft_pkcs11.c85 CK_ULONG num_slots; in main() local
98 ret = (*func->C_GetSlotList)(FALSE, NULL, &num_slots); in main()
102 if (num_slots == 0) in main()
105 if ((slot_ids = calloc(1, num_slots * sizeof(*slot_ids))) == NULL) in main()
108 ret = (*func->C_GetSlotList)(FALSE, slot_ids, &num_slots); in main()
H A Dks_p11.c66 CK_ULONG num_slots; member
901 ret = P11FUNC(p, GetSlotList, (FALSE, NULL, &p->num_slots)); in p11_init()
909 if (p->num_slots == 0) { in p11_init()
922 slot_ids = malloc(p->num_slots * sizeof(*slot_ids)); in p11_init()
939 p->slot = calloc(p->num_slots, sizeof(p->slot[0])); in p11_init()
948 for (i = 0; i < p->num_slots; i++) { in p11_init()
982 for (i = 0; i < p->num_slots; i++) { in p11_release_module()
1025 for (i = 0; i < p->num_slots; i++) { in p11_free()
1058 for (i = 0 ; i < p->num_slots; i++) { in p11_iter_start()
1149 p->num_slots, p->num_slots > 1 ? "s" : ""); in p11_printinfo()
[all …]
/freebsd-14.2/sys/dev/sdhci/
H A Dsdhci_pci.c162 int num_slots; /* Number of slots on this controller */ member
379 slot = &sc->slots[sc->num_slots]; in sdhci_pci_attach()
396 sc->num_slots++; in sdhci_pci_attach()
398 device_printf(dev, "%d slot(s) allocated\n", sc->num_slots); in sdhci_pci_attach()
406 for (i = 0; i < sc->num_slots; i++) { in sdhci_pci_attach()
424 for (i = 0; i < sc->num_slots; i++) { in sdhci_pci_detach()
453 for (i = 0; i < sc->num_slots; i++) in sdhci_pci_suspend()
464 for (i = 0; i < sc->num_slots; i++) in sdhci_pci_resume()
480 for (i = 0; i < sc->num_slots; i++) in sdhci_pci_intr()
H A Dsdhci_fdt.c135 int num_slots; /* Number of slots on this controller*/ member
430 for (i = 0; i < sc->num_slots; i++) in sdhci_fdt_intr()
512 sc->num_slots = 1; in sdhci_fdt_probe()
552 sc->num_slots = cid; in sdhci_fdt_probe()
622 slots = sc->num_slots; /* number of slots determined in probe(). */ in sdhci_fdt_attach()
623 sc->num_slots = 0; in sdhci_fdt_attach()
625 slot = &sc->slots[sc->num_slots]; in sdhci_fdt_attach()
645 sc->num_slots++; in sdhci_fdt_attach()
647 device_printf(dev, "%d slot(s) allocated\n", sc->num_slots); in sdhci_fdt_attach()
658 for (i = 0; i < sc->num_slots; i++) in sdhci_fdt_attach()
[all …]
/freebsd-14.2/tools/tools/pirtool/
H A Dpirtool.c204 int i, num_slots; in dump_pir_table() local
207 num_slots = (pir->size - offsetof(pir_table_t, entry[0])) / 16; in dump_pir_table()
225 num_slots, in dump_pir_table()
248 pend += num_slots; in dump_pir_table()
/freebsd-14.2/sys/dev/mps/
H A Dmps_mapping.c96 enc_entry->num_slots = 0; in _mapping_clear_enc_entry()
926 if (num_found == et_entry->num_slots) { in _mapping_find_enc_map_space()
948 if (num_found == et_entry->num_slots) { in _mapping_find_enc_map_space()
1042 enc_entry->num_slots)) in _mapping_find_enc_map_space()
1056 enc_entry->num_slots - 1)) in _mapping_find_enc_map_space()
1081 enc_entry->num_slots); map_idx++, in _mapping_find_enc_map_space()
1487 et_entry->num_slots; in _mapping_add_new_device()
1765 u16 slot_id, entry_num, num_slots; in _mapping_process_dpm_pg0() local
1843 num_slots = max_num_phy_ids; in _mapping_process_dpm_pg0()
1865 et_entry->num_slots = num_slots; in _mapping_process_dpm_pg0()
[all …]
H A Dmpsvar.h153 u16 num_slots; member
/freebsd-14.2/sys/dev/mpr/
H A Dmpr_mapping.c95 enc_entry->num_slots = 0; in _mapping_clear_enc_entry()
964 if (num_found == et_entry->num_slots) { in _mapping_find_enc_map_space()
1080 enc_entry->num_slots)) in _mapping_find_enc_map_space()
1094 enc_entry->num_slots - 1)) in _mapping_find_enc_map_space()
1119 enc_entry->num_slots); map_idx++, in _mapping_find_enc_map_space()
1677 et_entry->num_slots; in _mapping_add_new_device()
1934 et_entry->num_slots; in _mapping_add_new_pcie_device()
2214 u16 slot_id, entry_num, num_slots; in _mapping_process_dpm_pg0() local
2292 num_slots = max_num_phy_ids; in _mapping_process_dpm_pg0()
2314 et_entry->num_slots = num_slots; in _mapping_process_dpm_pg0()
[all …]
H A Dmprvar.h181 u16 num_slots; member
/freebsd-14.2/sys/dev/mmc/host/
H A Ddwmmc_var.h87 uint32_t num_slots; member
H A Ddwmmc.c538 sc->num_slots = 1; in parse_fdt()
542 sc->num_slots = dts_value[0]; in parse_fdt()
/freebsd-14.2/sys/net/route/
H A Dnhgrp_ctl.c236 uint32_t num_slots) in compile_nhgrp() argument
248 remaining_slots = num_slots; in compile_nhgrp()
266 KASSERT((slot_idx + nh_slots <= num_slots), in compile_nhgrp()
/freebsd-14.2/sys/contrib/vchiq/interface/vchi/connections/
H A Dconnection.h197 …STATE_T *state, uint32_t protocol_version, uint32_t slot_size, uint32_t num_slots, uint32_t min_bu…
/freebsd-14.2/sys/net/
H A Dnetmap.h291 const uint32_t num_slots; /* number of slots in the ring. */ member
H A Dnetmap_user.h144 return ( unlikely(i + 1 == r->num_slots) ? 0 : i + 1); in nm_ring_next()
165 ret += ring->num_slots; in nm_ring_space()
/freebsd-14.2/sys/dev/iwn/
H A Dif_iwnvar.h39 uint8_t num_slots; member
/freebsd-14.2/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_core.c2288 int num_slots = (mem_size - mem_align)/VCHIQ_SLOT_SIZE; in vchiq_init_slots() local
2292 num_slots -= first_data_slot; in vchiq_init_slots()
2294 if (num_slots < 4) { in vchiq_init_slots()
2313 slot_zero->master.slot_last = first_data_slot + (num_slots/2) - 1; in vchiq_init_slots()
2314 slot_zero->slave.slot_sync = first_data_slot + (num_slots/2); in vchiq_init_slots()
2315 slot_zero->slave.slot_first = first_data_slot + (num_slots/2) + 1; in vchiq_init_slots()
2316 slot_zero->slave.slot_last = first_data_slot + num_slots - 1; in vchiq_init_slots()
/freebsd-14.2/tools/tools/netmap/
H A Dpkt-gen.c1767 for (j = 0; j < txring->num_slots; j++) { in sender_body()
2009 m = rxring->head + rxring->num_slots - rxring->tail; in receiver_body()
2010 if (m >= (int) rxring->num_slots) in receiver_body()
2011 m -= rxring->num_slots; in receiver_body()
3306 (void *)((char *)ring - (char *)nifp), ring->num_slots); in main()
3311 (void *)((char *)ring - (char *)nifp), ring->num_slots); in main()
H A Dlb.c985 lim += ring->num_slots; in main()
/freebsd-14.2/tests/sys/netmap/
H A Dctrl-api-test.c2011 ckroff(num_slots, 8); in binarycomp()