| /freebsd/sys/dev/netmap/ |
| H A D | netmap_kloop.c | 96 uint32_t num_slots) in sync_kloop_kernel_read() argument 169 uint32_t num_slots; in netmap_sync_kloop_tx_ring() local 176 num_slots = kring->nkr_num_slots; in netmap_sync_kloop_tx_ring() 183 sync_kloop_kernel_read(csb_atok, &shadow_ring, num_slots); in netmap_sync_kloop_tx_ring() 188 batch += num_slots; in netmap_sync_kloop_tx_ring() 191 if (batch > PTN_TX_BATCH_LIM(num_slots)) { in netmap_sync_kloop_tx_ring() 194 uint32_t head_lim = kring->nr_hwcur + PTN_TX_BATCH_LIM(num_slots); in netmap_sync_kloop_tx_ring() 196 if (head_lim >= num_slots) in netmap_sync_kloop_tx_ring() 197 head_lim -= num_slots; in netmap_sync_kloop_tx_ring() 201 batch = PTN_TX_BATCH_LIM(num_slots); in netmap_sync_kloop_tx_ring() [all …]
|
| H A D | netmap_mem2.c | 2023 *(uint32_t *)(uintptr_t)&ring->num_slots = ndesc; in netmap_mem2_rings_create()
|
| /freebsd/sys/dev/sdhci/ |
| H A D | sdhci_fdt.c | 332 for (i = 0; i < sc->num_slots; i++) in sdhci_fdt_intr() 390 sc->num_slots = 1; in sdhci_fdt_attach() 397 sc->num_slots = cid; in sdhci_fdt_attach() 417 slots = sc->num_slots; /* number of slots determined in probe(). */ in sdhci_fdt_attach() 418 sc->num_slots = 0; in sdhci_fdt_attach() 420 slot = &sc->slots[sc->num_slots]; in sdhci_fdt_attach() 439 sc->num_slots++; in sdhci_fdt_attach() 441 device_printf(dev, "%d slot(s) allocated\n", sc->num_slots); in sdhci_fdt_attach() 452 for (i = 0; i < sc->num_slots; i++) in sdhci_fdt_attach() 469 for (i = 0; i < sc->num_slots; i++) { in sdhci_fdt_detach()
|
| H A D | sdhci_pci.c | 162 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 D | sdhci_fdt.h | 40 int num_slots; /* Number of slots on this controller*/ member
|
| /freebsd/crypto/heimdal/lib/hx509/ |
| H A D | test_soft_pkcs11.c | 85 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 D | ks_p11.c | 66 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() 929 ret = P11FUNC(p, GetSlotList, (FALSE, slot_ids, &p->num_slots)); 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() [all …]
|
| /freebsd/sys/dev/mpr/ |
| H A D | mpr_mapping.c | 94 enc_entry->num_slots = 0; in _mapping_clear_enc_entry() 133 dpm_entry->MappingInformation = et_entry->num_slots; in _mapping_commit_enc_entry() 963 if (num_found == et_entry->num_slots) { in _mapping_find_enc_map_space() 985 if (num_found == et_entry->num_slots) { in _mapping_find_enc_map_space() 1034 (enc_entry->start_index + enc_entry->num_slots); map_idx++, in _mapping_find_enc_map_space() 1051 if (num_found == et_entry->num_slots) { in _mapping_find_enc_map_space() 1079 enc_entry->num_slots)) in _mapping_find_enc_map_space() 1093 enc_entry->num_slots - 1)) in _mapping_find_enc_map_space() 1118 enc_entry->num_slots); map_idx++, in _mapping_find_enc_map_space() 1293 " %d.\n", __func__, et_entry->num_slots, map_idx); in _mapping_get_dev_info() [all …]
|
| H A D | mprvar.h | 181 u16 num_slots; member
|
| /freebsd/tools/tools/pirtool/ |
| H A D | pirtool.c | 204 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/sys/dev/mps/ |
| H A D | mps_mapping.c | 95 enc_entry->num_slots = 0; in _mapping_clear_enc_entry() 134 dpm_entry->MappingInformation = et_entry->num_slots; in _mapping_commit_enc_entry() 925 if (num_found == et_entry->num_slots) { in _mapping_find_enc_map_space() 947 if (num_found == et_entry->num_slots) { in _mapping_find_enc_map_space() 996 (enc_entry->start_index + enc_entry->num_slots); map_idx++, in _mapping_find_enc_map_space() 1013 if (num_found == et_entry->num_slots) { in _mapping_find_enc_map_space() 1041 enc_entry->num_slots)) in _mapping_find_enc_map_space() 1055 enc_entry->num_slots - 1)) in _mapping_find_enc_map_space() 1080 enc_entry->num_slots); map_idx++, in _mapping_find_enc_map_space() 1255 " %d.\n", __func__, et_entry->num_slots, map_idx); in _mapping_get_dev_info() [all …]
|
| H A D | mpsvar.h | 153 u16 num_slots; member
|
| /freebsd/sys/dev/mmc/host/ |
| H A D | dwmmc_var.h | 87 uint32_t num_slots; member
|
| H A D | dwmmc.c | 527 sc->num_slots = 1; in parse_fdt() 531 sc->num_slots = dts_value[0]; in parse_fdt()
|
| /freebsd/sys/net/route/ |
| H A D | nhgrp_ctl.c | 235 uint32_t num_slots) in compile_nhgrp() argument 247 remaining_slots = num_slots; in compile_nhgrp() 265 KASSERT((slot_idx + nh_slots <= num_slots), in compile_nhgrp()
|
| /freebsd/sys/contrib/vchiq/interface/vchi/connections/ |
| H A D | connection.h | 197 …STATE_T *state, uint32_t protocol_version, uint32_t slot_size, uint32_t num_slots, uint32_t min_bu…
|
| /freebsd/sys/net/ |
| H A D | netmap.h | 291 const uint32_t num_slots; /* number of slots in the ring. */ member
|
| H A D | netmap_user.h | 144 return ( unlikely(i + 1 == r->num_slots) ? 0 : i + 1); in nm_ring_next() 165 ret += ring->num_slots; in nm_ring_space()
|
| /freebsd/sys/dev/iwn/ |
| H A D | if_iwnvar.h | 39 uint8_t num_slots; member
|
| /freebsd/sys/contrib/vchiq/interface/vchiq_arm/ |
| H A D | vchiq_core.c | 2307 int num_slots = (mem_size - mem_align)/VCHIQ_SLOT_SIZE; in vchiq_init_slots() local 2311 num_slots -= first_data_slot; in vchiq_init_slots() 2313 if (num_slots < 4) { in vchiq_init_slots() 2332 slot_zero->master.slot_last = first_data_slot + (num_slots/2) - 1; in vchiq_init_slots() 2333 slot_zero->slave.slot_sync = first_data_slot + (num_slots/2); in vchiq_init_slots() 2334 slot_zero->slave.slot_first = first_data_slot + (num_slots/2) + 1; in vchiq_init_slots() 2335 slot_zero->slave.slot_last = first_data_slot + num_slots - 1; in vchiq_init_slots()
|
| /freebsd/tools/tools/netmap/ |
| H A D | pkt-gen.c | 1767 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 D | lb.c | 985 lim += ring->num_slots; in main()
|
| /freebsd/tests/sys/netmap/ |
| H A D | ctrl-api-test.c | 2017 ckroff(num_slots, 8); in binarycomp()
|
| /freebsd/sys/dev/iwx/ |
| H A D | if_iwx.c | 2935 int num_slots) in iwx_enable_txq() argument 2961 cmd_v0.cb_size = htole32(IWX_TFD_QUEUE_CB_SIZE(num_slots)); in iwx_enable_txq() 2972 cmd_v3.u.add.cb_size = htole32(IWX_TFD_QUEUE_CB_SIZE(num_slots)); in iwx_enable_txq()
|