/freebsd/sys/dev/sdhci/ |
H A D | sdhci.c | 81 #define RD1(slot, off) SDHCI_READ_1((slot)->bus, (slot), (off)) argument 82 #define RD2(slot, off) SDHCI_READ_2((slot)->bus, (slot), (off)) argument 83 #define RD4(slot, off) SDHCI_READ_4((slot)->bus, (slot), (off)) argument 845 bus_dmamem_free(slot->dmatag, slot->dmamem, slot->dmamap); 861 bus_dmamem_free(slot->dmatag, slot->dmamem, slot->dmamap); 946 slot->host.f_min = SDHCI_MIN_FREQ(slot->bus, slot); 947 slot->host.f_max = slot->max_clk; 1393 SDHCI_RESET(slot->bus, slot, 1706 SDHCI_RESET(slot->bus, slot, 1771 slot->power, slot->clock); [all …]
|
H A D | sdhci_acpi.c | 98 struct sdhci_slot slot; member 202 bus = slot->bus; in sdhci_acpi_set_uhs_timing() 205 sdhci_generic_set_uhs_timing(dev, slot); in sdhci_acpi_set_uhs_timing() 216 ios = &slot->host.ios; in sdhci_acpi_set_uhs_timing() 326 sc->slot.quirks = quirks; in sdhci_acpi_attach() 328 err = sdhci_init_slot(dev, &sc->slot, 0); in sdhci_acpi_attach() 345 sdhci_start_slot(&sc->slot); in sdhci_acpi_attach() 362 sdhci_cleanup_slot(&sc->slot); in sdhci_acpi_detach() 386 sdhci_generic_suspend(&sc->slot); in sdhci_acpi_suspend() 396 sdhci_generic_resume(&sc->slot); in sdhci_acpi_resume() [all …]
|
H A D | sdhci_fsl_fdt.c | 195 struct sdhci_slot slot; member 603 struct sdhci_slot *slot; in sdhci_fsl_fdt_update_ios() local 611 ios = &slot->host.ios; in sdhci_fsl_fdt_update_ios() 697 struct sdhci_slot *slot; in sdhci_fsl_fdt_switch_vccq() local 727 slot->host.ios.vccq); in sdhci_fsl_fdt_switch_vccq() 822 sc->slot.caps = sdhci_fsl_fdt_read_4(dev, &sc->slot, in sdhci_fsl_fdt_of_parse() 824 sc->slot.caps2 = sdhci_fsl_fdt_read_4(dev, &sc->slot, in sdhci_fsl_fdt_of_parse() 880 host = &sc->slot.host; in sdhci_fsl_fdt_attach() 1194 struct sdhci_slot *slot; in sdhci_fsl_fdt_tune() local 1307 struct sdhci_slot *slot; in sdhci_fsl_fdt_retune() local [all …]
|
H A D | sdhci_xenon_fdt.c | 67 sdhci_xenon_fdt_get_card_present(device_t dev, struct sdhci_slot *slot) in sdhci_xenon_fdt_get_card_present() argument 91 sdhci_xenon_fdt_parse(device_t dev, struct sdhci_slot *slot) in sdhci_xenon_fdt_parse() argument 100 mmc_fdt_parse(dev, 0, &mmc_helper, &slot->host); in sdhci_xenon_fdt_parse() 109 slot->opt |= SDHCI_NON_REMOVABLE; in sdhci_xenon_fdt_parse() 119 struct sdhci_slot *slot; in sdhci_xenon_fdt_attach() local 122 slot = malloc(sizeof(*slot), M_DEVBUF, M_ZERO | M_WAITOK); in sdhci_xenon_fdt_attach() 124 sdhci_xenon_fdt_parse(dev, slot); in sdhci_xenon_fdt_attach() 130 sc->gpio = sdhci_fdt_gpio_setup(dev, slot); in sdhci_xenon_fdt_attach() 131 sc->slot = slot; in sdhci_xenon_fdt_attach()
|
/freebsd/sys/sys/ |
H A D | osd.h | 62 void **osd_reserve(u_int slot); 74 #define osd_thread_deregister(slot) \ argument 75 osd_deregister(OSD_THREAD, (slot)) 80 #define osd_thread_get(td, slot) \ argument 82 #define osd_thread_del(td, slot) do { \ argument 93 #define osd_jail_deregister(slot) \ argument 94 osd_deregister(OSD_JAIL, (slot)) 99 #define osd_jail_get(pr, slot) \ argument 100 osd_get(OSD_JAIL, &(pr)->pr_osd, (slot)) 101 #define osd_jail_del(pr, slot) \ argument [all …]
|
/freebsd/sys/kern/ |
H A D | subr_pctrie.c | 125 int slot; in pctrie_node_put() local 130 for (slot = 0; slot < PCTRIE_COUNT; slot++) { in pctrie_node_put() 231 int slot; in pctrie_addnode() local 273 int slot; in pctrie_insert_lookup() local 375 int slot; in _pctrie_lookup() local 430 int slot; in pctrie_lookup_ge() local 490 slot += ffs(succ->pn_popmap >> slot) - 1; in pctrie_lookup_ge() 519 int slot; in pctrie_lookup_le() local 573 int slot; in pctrie_remove_lookup() local 634 int slot; in pctrie_reclaim_prune() local [all …]
|
H A D | kern_osd.c | 166 do_osd_del(type, osd, slot, 1); in osd_deregister() 192 osd_reserve(u_int slot) in osd_reserve() argument 213 if (slot > osd->osd_nslots) { in osd_set_reserved() 219 type, slot); in osd_set_reserved() 262 osd->osd_nslots = slot; in osd_set_reserved() 266 slot, value); in osd_set_reserved() 292 if (slot > osd->osd_nslots) { in osd_get() 298 type, slot, value); in osd_get() 310 do_osd_del(type, osd, slot, 0); in osd_del() 325 if (slot > osd->osd_nslots) { in do_osd_del() [all …]
|
/freebsd/sys/amd64/pci/ |
H A D | pci_cfgreg.c | 155 pcireg_cfgwrite(bus, slot, func, reg, data, bytes); in pci_cfgregwrite() 171 pcireg_cfgwrite(bus, slot, func, reg, data, bytes); in pci_cfgregwrite() 212 port = pci_cfgenable(bus, slot, func, reg, bytes); in pcireg_cfgread() 237 port = pci_cfgenable(bus, slot, func, reg, bytes); in pcireg_cfgwrite() 259 int slot; in pcie_init_badslots() local 268 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in pcie_init_badslots() 269 val1 = pcireg_cfgread(0, slot, 0, 0, 4); in pcie_init_badslots() 273 val2 = pciereg_cfgread(region, 0, slot, 0, 0, 4); in pcie_init_badslots() 275 pcie_badslots |= (1 << slot); in pcie_init_badslots() 313 #define PCIE_VADDR(base, reg, bus, slot, func) \ argument [all …]
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | ks_p11.c | 283 slot->mechs.list = calloc(i, sizeof(slot->mechs.list[0])); in p11_mech_info() 290 ret = P11FUNC(p, GetMechanismList, (slot->id, slot->mechs.list, &i)); in p11_mech_info() 299 slot->mechs.infos = calloc(i, sizeof(*slot->mechs.infos)); in p11_mech_info() 307 slot->mechs.infos[i] = calloc(1, sizeof(*(slot->mechs.infos[0]))); in p11_mech_info() 313 ret = P11FUNC(p, GetMechanismInfo, (slot->id, slot->mechs.list[i], in p11_mech_info() 341 slot->id = id; in p11_init_slot() 386 ret = p11_list_keys(context, p, slot, session, lock, &slot->certs); in p11_init_slot() 672 p11rsa->slot = slot; in collect_private_key() 939 p->slot = calloc(p->num_slots, sizeof(p->slot[0])); in p11_init() 992 memset(p->slot[i].pin, 0, strlen(p->slot[i].pin)); in p11_release_module() [all …]
|
/freebsd/sys/dev/evdev/ |
H A D | evdev_mt.c | 110 int slot, slots; in evdev_mt_init() local 139 for (slot = 0; slot < slots; slot++) in evdev_mt_init() 176 MPASS(type_a || (slot >= 0 && slot <= MAXIMAL_MT_SLOT(evdev))); in evdev_mt_send_slot() 202 if (!type_a && (slot < 0 || slot > MAXIMAL_MT_SLOT(evdev))) in evdev_mt_push_slot() 381 for (slot = pt; slot < pt + size; slot++) { in evdev_mt_send_frame() 385 evdev_mt_send_slot(evdev, slot->id, slot); in evdev_mt_send_frame() 485 MPASS(slot >= 0 && slot <= MAXIMAL_MT_SLOT(evdev)); in evdev_mt_set_last_slot() 496 MPASS(slot >= 0 && slot <= MAXIMAL_MT_SLOT(evdev)); in evdev_mt_get_value() 507 MPASS(slot >= 0 && slot <= MAXIMAL_MT_SLOT(evdev)); in evdev_mt_set_value() 522 int slot; in evdev_mt_id_to_slot() local [all …]
|
/freebsd/lib/libvmmapi/ |
H A D | ppt.c | 40 vm_assign_pptdev(struct vmctx *ctx, int bus, int slot, int func) in vm_assign_pptdev() argument 46 pptdev.slot = slot; in vm_assign_pptdev() 53 vm_unassign_pptdev(struct vmctx *ctx, int bus, int slot, int func) in vm_unassign_pptdev() argument 59 pptdev.slot = slot; in vm_unassign_pptdev() 66 vm_map_pptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, in vm_map_pptdev_mmio() argument 73 pptmmio.slot = slot; in vm_map_pptdev_mmio() 90 pptmmio.slot = slot; in vm_unmap_pptdev_mmio() 99 vm_setup_pptdev_msi(struct vmctx *ctx, int bus, int slot, int func, in vm_setup_pptdev_msi() argument 106 pptmsi.slot = slot; in vm_setup_pptdev_msi() 123 pptmsix.slot = slot; in vm_setup_pptdev_msix() [all …]
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_sdhci.c | 83 ((slot)->curcmd->data->len - (slot)->offset) 580 slot = &sc->sc_slot; in bcm_sdhci_start_dma_seg() 584 slot->offset += len; in bcm_sdhci_start_dma_seg() 623 slot->intmask); in bcm_sdhci_start_dma_seg() 643 bcm_sdhci_write_4(slot->bus, slot, SDHCI_SIGNAL_ENABLE, in bcm_sdhci_dma_exit() 644 slot->intmask); in bcm_sdhci_dma_exit() 673 mtx_lock(&slot->mtx); in bcm_sdhci_dma_intr() 694 reg = bcm_sdhci_read_4(slot->bus, slot, SDHCI_INT_STATUS) & in bcm_sdhci_dma_intr() 699 bcm_sdhci_write_4(slot->bus, slot, SDHCI_INT_STATUS, in bcm_sdhci_dma_intr() 711 bcm_sdhci_write_4(slot->bus, slot, SDHCI_INT_STATUS, in bcm_sdhci_dma_intr() [all …]
|
/freebsd/sys/i386/pci/ |
H A D | pci_cfgreg.c | 254 && slot < devmax in pci_cfgenable() 264 | (bus << 16) | (slot << 11) in pci_cfgenable() 271 dataport = 0xc000 | (slot << 8) | reg; in pci_cfgenable() 305 port = pci_cfgenable(bus, slot, func, reg, bytes); in pcireg_cfgread() 330 port = pci_cfgenable(bus, slot, func, reg, bytes); in pcireg_cfgwrite() 521 int slot; in pcie_init_badslots() local 530 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in pcie_init_badslots() 531 val1 = pcireg_cfgread(0, slot, 0, 0, 4); in pcie_init_badslots() 537 pcie_badslots |= (1 << slot); in pcie_init_badslots() 592 #define PCIE_PADDR(base, reg, bus, slot, func) \ argument [all …]
|
/freebsd/sys/dev/ata/ |
H A D | ata-dma.c | 165 struct ata_dmaslot *slot = &ch->dma.slot[i]; in ata_dmaalloc() local 175 if (bus_dmamem_alloc(slot->sg_tag, (void **)&slot->sg, BUS_DMA_WAITOK, in ata_dmaalloc() 181 if (bus_dmamap_load(slot->sg_tag, slot->sg_map, slot->sg, MAXTABSZ, in ata_dmaalloc() 198 if (bus_dmamap_create(slot->data_tag, 0, &slot->data_map)) { in ata_dmaalloc() 219 struct ata_dmaslot *slot = &ch->dma.slot[i]; in ata_dmafree() local 221 if (slot->sg_bus) { in ata_dmafree() 222 bus_dmamap_unload(slot->sg_tag, slot->sg_map); in ata_dmafree() 225 if (slot->sg) { in ata_dmafree() 226 bus_dmamem_free(slot->sg_tag, slot->sg, slot->sg_map); in ata_dmafree() 230 bus_dmamap_destroy(slot->data_tag, slot->data_map); in ata_dmafree() [all …]
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_bytelock.h | 92 if (slot <= sizeof bytelock->readers) in ck_bytelock_write_lock() 93 ck_pr_store_8(&bytelock->readers[slot - 1], false); in ck_bytelock_write_lock() 131 if (ck_pr_load_uint(&bytelock->owner) == slot) { in ck_bytelock_read_lock() 132 ck_pr_store_8(&bytelock->readers[slot - 1], true); in ck_bytelock_read_lock() 139 if (slot > sizeof bytelock->readers) { in ck_bytelock_read_lock() 155 slot -= 1; in ck_bytelock_read_lock() 158 ck_pr_fas_8(&bytelock->readers[slot], true); in ck_bytelock_read_lock() 161 ck_pr_store_8(&bytelock->readers[slot], true); in ck_bytelock_read_lock() 173 ck_pr_store_8(&bytelock->readers[slot], false); in ck_bytelock_read_lock() 188 if (slot > sizeof bytelock->readers) in ck_bytelock_read_unlock() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/sound/ |
H A D | tdm-slot.txt | 1 TDM slot: 3 This specifies audio DAI's TDM slot. 5 TDM slot properties: 6 dai-tdm-slot-num : Number of slots in use. 7 dai-tdm-slot-width : Width in bits for each slot. 8 dai-tdm-slot-tx-mask : Transmit direction slot mask, optional 9 dai-tdm-slot-rx-mask : Receive direction slot mask, optional 12 dai-tdm-slot-num = <2>; 13 dai-tdm-slot-width = <8>; 14 dai-tdm-slot-tx-mask = <0 1>; [all …]
|
H A D | max98373.txt | 13 - maxim,vmon-slot-no : slot number used to send voltage information 15 interleave slot. 16 slot range : 0 ~ 15, Default : 0 18 - maxim,imon-slot-no : slot number used to send current information 19 slot range : 0 ~ 15, Default : 0 21 - maxim,spkfb-slot-no : slot number used to send speaker feedback information 22 slot range : 0 ~ 15, Default : 0 36 maxim,vmon-slot-no = <0>; 37 maxim,imon-slot-no = <1>; 38 maxim,spkfb-slot-no = <2>;
|
/freebsd/contrib/openpam/lib/libpam/ |
H A D | pam_set_item.c | 61 void **slot; in pam_set_item() local 65 slot = &pamh->item[item_type]; in pam_set_item() 70 if (*slot != NULL && item != NULL) in pam_set_item() 83 if (*slot != NULL) in pam_set_item() 84 osize = strlen(*slot) + 1; in pam_set_item() 97 if (*slot != NULL) { in pam_set_item() 98 memset(*slot, 0xd0, osize); in pam_set_item() 99 FREE(*slot); in pam_set_item() 102 if ((*slot = malloc(nsize)) == NULL) in pam_set_item() 104 memcpy(*slot, item, nsize); in pam_set_item() [all …]
|
/freebsd/sys/x86/pci/ |
H A D | pci_early_quirks.c | 70 intel_stolen_base_gen3(int domain, int bus, int slot, int func) in intel_stolen_base_gen3() argument 75 ctrl = pci_cfgregread(domain, bus, slot, func, INTEL_BSM, 4); in intel_stolen_base_gen3() 81 intel_stolen_base_gen11(int domain, int bus, int slot, int func) in intel_stolen_base_gen11() argument 89 domain, bus, slot, func, INTEL_GEN11_BSM_DW1, 4) << 32; in intel_stolen_base_gen11() 94 intel_stolen_size_gen3(int domain, int bus, int slot, int func) in intel_stolen_size_gen3() argument 134 intel_stolen_size_gen6(int domain, int bus, int slot, int func) in intel_stolen_size_gen6() argument 145 intel_stolen_size_gen8(int domain, int bus, int slot, int func) in intel_stolen_size_gen8() argument 156 intel_stolen_size_chv(int domain, int bus, int slot, int func) in intel_stolen_size_chv() argument 194 vm_paddr_t (*base)(int domain, int bus, int slot, int func); 195 vm_paddr_t (*size)(int domain, int bus, int slot, int func); [all …]
|
H A D | pci_bus.c | 120 int error, func, slot; in legacy_pcib_map_msi() local 127 slot = legacy_get_pcislot(pcib); in legacy_pcib_map_msi() 129 if (slot == -1 || func == -1) in legacy_pcib_map_msi() 131 hostb = pci_find_bsf(0, slot, func); in legacy_pcib_map_msi() 133 slot, func)); in legacy_pcib_map_msi() 215 switch (slot) { in legacy_pcib_is_host_bridge() 378 int bus, slot, func; in legacy_pcib_identify() local 400 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in legacy_pcib_identify() 427 id = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_identify() 436 s = legacy_pcib_is_host_bridge(bus, slot, func, in legacy_pcib_identify() [all …]
|
/freebsd/contrib/xz/src/xz/ |
H A D | util.c | 47 check_thousand_sep(uint32_t slot) in check_thousand_sep() argument 50 bufs[slot][0] = '\0'; in check_thousand_sep() 51 snprintf(bufs[slot], sizeof(bufs[slot]), "%'u", 1U); in check_thousand_sep() 184 assert(slot < ARRAY_SIZE(bufs)); in uint64_to_str() 186 check_thousand_sep(slot); in uint64_to_str() 188 snprintf(bufs[slot], sizeof(bufs[slot]), in uint64_to_str() 191 return bufs[slot]; in uint64_to_str() 198 uint32_t slot) in uint64_to_nicestr() argument 204 check_thousand_sep(slot); in uint64_to_nicestr() 207 char *pos = bufs[slot]; in uint64_to_nicestr() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl.cpp | 246 for (auto& slot : ctx->slots) slot.mtx.Unlock(); in DoReset() local 260 if (slot) { in FindSlotAndLock() 269 if (!slot) in FindSlotAndLock() 277 if (!slot) { in FindSlotAndLock() 287 slot->SetEpoch(slot->thr->fast_state.epoch()); in FindSlotAndLock() 291 return slot; in FindSlotAndLock() 301 thr->slot = slot; in SlotAttachAndLock() 320 TidSlot* slot = thr->slot; in SlotDetachImpl() local 365 TidSlot* slot = thr->slot; in SlotLock() local 812 for (auto& slot : ctx->slots) slot.mtx.Lock(); in ForkBefore() local [all …]
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_sata.c | 162 (FSL_SATA_CT_SIZE * slot->slot))) 165 (FSL_SATA_CL_SIZE * slot->slot))) 640 bzero(ch->slot, sizeof(ch->slot)); in fsl_sata_slotsalloc() 645 slot->slot = i; in fsl_sata_slotsalloc() 906 slot = &ch->slot[tag]; in fsl_sata_begin_transaction() 1030 slot->slot); in fsl_sata_execute_transaction() 1037 ch->rslots |= (1 << slot->slot); in fsl_sata_execute_transaction() 1149 slot->slot, slot->ccb->ccb_h.target_id & 0x0f); in fsl_sata_timeout() 1164 ch->toslots |= (1 << slot->slot); in fsl_sata_timeout() 1234 ch->eslots |= (1 << slot->slot); in fsl_sata_end_transaction() [all …]
|
/freebsd/sys/arm/ti/ |
H A D | ti_sdhci.c | 73 struct sdhci_slot slot; member 195 if (slot->version >= SDHCI_SPEC_300) in ti_sdhci_read_2() 290 if (slot->version >= SDHCI_SPEC_300) in ti_sdhci_write_2() 348 sdhci_generic_intr(&sc->slot); in ti_sdhci_intr() 355 struct sdhci_slot *slot; in ti_sdhci_update_ios() local 359 slot = device_get_ivars(reqdev); in ti_sdhci_update_ios() 360 ios = &slot->host.ios; in ti_sdhci_update_ios() 534 sc->slot.host.caps |= MMC_OCR_LOW_VOLTAGE; in ti_sdhci_attach() 621 sc->slot.max_clk = sc->baseclk_hz; in ti_sdhci_attach() 657 sdhci_init_slot(dev, &sc->slot, 0); in ti_sdhci_attach() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | pci_ahci.c | 131 int slot; member 486 int slot; in ahci_port_stop() local 499 slot = aior->slot; in ahci_port_stop() 726 aior->slot = slot; in ahci_handle_rw() 764 aior->slot = slot; in ahci_handle_flush() 873 aior->slot = slot; in ahci_handle_dsm_trim() 1431 aior->slot = slot; in atapi_read() 1902 int slot, ncq, dsm; in ata_ioreq_cb() local 1910 slot = aior->slot; in ata_ioreq_cb() 1976 int slot; in atapi_ioreq_cb() local [all …]
|