Searched refs:slot (Results 1 - 25 of 354) sorted by relevance

1234567891011>>

/freebsd-current/sys/dev/sdhci/
H A Dsdhci.c81 #define RD1(slot, off) SDHCI_READ_1((slot)->bus, (slot), (off))
82 #define RD2(slot, off) SDHCI_READ_2((slot)->bus, (slot), (off))
83 #define RD4(slot, off) SDHCI_READ_4((slot)->bus, (slot), (off))
84 #define RD_MULTI_4(slot, of
190 slot_printf(const struct sdhci_slot *slot, const char * fmt, ...) argument
210 slot_sprintf(const struct sdhci_slot *slot, struct sbuf *s, const char * fmt, ...) argument
226 sdhci_dumpregs_buf(struct sdhci_slot *slot, struct sbuf *s) argument
259 sdhci_dumpregs(struct sdhci_slot *slot) argument
277 struct sdhci_slot *slot = arg1; local
290 sdhci_dumpcaps_buf(struct sdhci_slot *slot, struct sbuf *s) argument
339 sdhci_dumpcaps(struct sdhci_slot *slot) argument
357 struct sdhci_slot *slot = arg1; local
370 sdhci_tuning_intmask(const struct sdhci_slot *slot) argument
385 sdhci_init(struct sdhci_slot *slot) argument
408 sdhci_set_clock(struct sdhci_slot *slot, uint32_t clock) argument
509 sdhci_set_power(struct sdhci_slot *slot, u_char power) argument
564 sdhci_read_block_pio(struct sdhci_slot *slot) argument
613 sdhci_write_block_pio(struct sdhci_slot *slot) argument
659 sdhci_transfer_pio(struct sdhci_slot *slot) argument
683 struct sdhci_slot *slot = arg; local
742 sdhci_handle_card_present_locked(struct sdhci_slot *slot, bool is_present) argument
771 sdhci_handle_card_present(struct sdhci_slot *slot, bool is_present) argument
782 struct sdhci_slot *slot = arg; local
791 sdhci_dma_alloc(struct sdhci_slot *slot) argument
857 sdhci_dma_free(struct sdhci_slot *slot) argument
866 sdhci_init_slot(device_t dev, struct sdhci_slot *slot, int num) argument
1158 slot, 0, &sdhci_syctl_dumpregs, local
1163 slot, 0, &sdhci_syctl_dumpcaps, local
1171 sdhci_start_slot(struct sdhci_slot *slot) argument
1179 sdhci_cleanup_slot(struct sdhci_slot *slot) argument
1213 sdhci_generic_suspend(struct sdhci_slot *slot) argument
1231 sdhci_generic_resume(struct sdhci_slot *slot) argument
1242 sdhci_generic_reset(device_t brdev __unused, struct sdhci_slot *slot, uint8_t mask) argument
1303 sdhci_generic_min_freq(device_t brdev __unused, struct sdhci_slot *slot) argument
1313 sdhci_generic_get_card_present(device_t brdev __unused, struct sdhci_slot *slot) argument
1323 sdhci_generic_set_uhs_timing(device_t brdev __unused, struct sdhci_slot *slot) argument
1360 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1403 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1458 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1531 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1563 sdhci_exec_tuning(struct sdhci_slot *slot, bool reset) argument
1646 struct sdhci_slot *slot = arg; local
1653 sdhci_req_done(struct sdhci_slot *slot) argument
1676 sdhci_req_done(struct sdhci_slot *slot) argument
1701 struct sdhci_slot *slot = arg; local
1716 sdhci_set_transfer_mode(struct sdhci_slot *slot, const struct mmc_data *data) argument
1744 sdhci_start_command(struct sdhci_slot *slot, struct mmc_command *cmd) argument
[all...]
H A Dsdhci_fdt_gpio.h50 * can't trigger interrupts on both edges, it configures the slot to use polling
55 struct sdhci_fdt_gpio *sdhci_fdt_gpio_setup(device_t dev, struct sdhci_slot *slot);
H A Dsdhci_xenon_fdt.c67 sdhci_xenon_fdt_get_card_present(device_t dev, struct sdhci_slot *slot) argument
91 sdhci_xenon_fdt_parse(device_t dev, struct sdhci_slot *slot) argument
100 mmc_fdt_parse(dev, 0, &mmc_helper, &slot->host);
109 slot->opt |= SDHCI_NON_REMOVABLE;
119 struct sdhci_slot *slot; local
122 slot = malloc(sizeof(*slot), M_DEVBUF, M_ZERO | M_WAITOK);
124 sdhci_xenon_fdt_parse(dev, slot);
130 sc->gpio = sdhci_fdt_gpio_setup(dev, slot);
131 sc->slot
[all...]
H A Dsdhci_xenon_acpi.c82 struct sdhci_slot *slot; local
88 slot = malloc(sizeof(*slot), M_DEVBUF, M_ZERO | M_WAITOK);
89 if (!slot)
97 sc->slot = slot;
99 if (mmc_parse(dev, &mmc_helper, &slot->host) != 0)
103 slot->opt |= SDHCI_NON_REMOVABLE;
/freebsd-current/sys/sys/
H A Dosd.h59 void osd_deregister(u_int type, u_int slot);
61 int osd_set(u_int type, struct osd *osd, u_int slot, void *value);
62 void **osd_reserve(u_int slot);
63 int osd_set_reserved(u_int type, struct osd *osd, u_int slot, void **rsv,
66 void *osd_get(u_int type, struct osd *osd, u_int slot);
67 void *osd_get_unlocked(u_int type, struct osd *osd, u_int slot);
68 void osd_del(u_int type, struct osd *osd, u_int slot);
75 #define osd_thread_deregister(slot) \
76 osd_deregister(OSD_THREAD, (slot))
77 #define osd_thread_set(td, slot, valu
[all...]
/freebsd-current/contrib/openpam/lib/libpam/
H A Dpam_set_item.c61 void **slot; local
65 slot = &pamh->item[item_type];
70 if (*slot != NULL && item != NULL)
83 if (*slot != NULL)
84 osize = strlen(*slot) + 1;
97 if (*slot != NULL) {
98 memset(*slot, 0xd0, osize);
99 FREE(*slot);
102 if ((*slot = malloc(nsize)) == NULL)
104 memcpy(*slot, ite
[all...]
/freebsd-current/sys/amd64/vmm/io/
H A Dppt.h33 int ppt_map_mmio(struct vm *vm, int bus, int slot, int func,
35 int ppt_unmap_mmio(struct vm *vm, int bus, int slot, int func,
37 int ppt_setup_msi(struct vm *vm, int bus, int slot, int func,
39 int ppt_setup_msix(struct vm *vm, int bus, int slot, int func,
41 int ppt_disable_msix(struct vm *vm, int bus, int slot, int func);
55 int ppt_assign_device(struct vm *vm, int bus, int slot, int func);
56 int ppt_unassign_device(struct vm *vm, int bus, int slot, int func);
/freebsd-current/sys/contrib/ck/include/
H A Dck_bytelock.h82 ck_bytelock_write_lock(struct ck_bytelock *bytelock, unsigned int slot) argument
88 while (ck_pr_cas_uint(&bytelock->owner, 0, slot) == false)
92 if (slot <= sizeof bytelock->readers)
93 ck_pr_store_8(&bytelock->readers[slot - 1], false);
128 ck_bytelock_read_lock(struct ck_bytelock *bytelock, unsigned int slot) argument
131 if (ck_pr_load_uint(&bytelock->owner) == slot) {
132 ck_pr_store_8(&bytelock->readers[slot - 1], true);
139 if (slot > sizeof bytelock->readers) {
155 slot -= 1;
158 ck_pr_fas_8(&bytelock->readers[slot], tru
183 ck_bytelock_read_unlock(struct ck_bytelock *bytelock, unsigned int slot) argument
[all...]
/freebsd-current/lib/libvmmapi/
H A Dppt.c40 vm_assign_pptdev(struct vmctx *ctx, int bus, int slot, int func) argument
46 pptdev.slot = slot;
53 vm_unassign_pptdev(struct vmctx *ctx, int bus, int slot, int func) argument
59 pptdev.slot = slot;
66 vm_map_pptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, argument
73 pptmmio.slot = slot;
83 vm_unmap_pptdev_mmio(struct vmctx *ctx, int bus, int slot, in argument
99 vm_setup_pptdev_msi(struct vmctx *ctx, int bus, int slot, int func, uint64_t addr, uint64_t msg, int numvec) argument
116 vm_setup_pptdev_msix(struct vmctx *ctx, int bus, int slot, int func, int idx, uint64_t addr, uint64_t msg, uint32_t vector_control) argument
134 vm_disable_pptdev_msix(struct vmctx *ctx, int bus, int slot, int func) argument
[all...]
/freebsd-current/sys/amd64/pci/
H A Dpci_cfgreg.c52 static uint32_t pci_docfgregread(int domain, int bus, int slot, int func,
56 unsigned slot, unsigned func, unsigned reg, unsigned bytes);
58 unsigned slot, unsigned func, unsigned reg, int data,
60 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
61 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
101 pci_docfgregread(int domain, int bus, int slot, int func, int reg, int bytes) argument
103 if (domain == 0 && bus == 0 && (1 << slot & pcie_badslots) != 0)
104 return (pcireg_cfgread(bus, slot, func, reg, bytes));
111 return (pciereg_cfgread(region, bus, slot, func, reg,
116 return (pcireg_cfgread(bus, slot, fun
125 pci_cfgregread(int domain, int bus, int slot, int func, int reg, int bytes) argument
151 pci_cfgregwrite(int domain, int bus, int slot, int func, int reg, uint32_t data, int bytes) argument
180 pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes) argument
206 pcireg_cfgread(int bus, int slot, int func, int reg, int bytes) argument
232 pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes) argument
259 int slot; local
329 pciereg_cfgread(struct pcie_mcfg_region *region, int bus, unsigned slot, unsigned func, unsigned reg, unsigned bytes) argument
361 pciereg_cfgwrite(struct pcie_mcfg_region *region, int bus, unsigned slot, unsigned func, unsigned reg, int data, unsigned bytes) argument
[all...]
/freebsd-current/sys/kern/
H A Dsubr_pctrie.c106 * sets slot value, and returns false.
109 pctrie_keybarr(struct pctrie_node *node, uint64_t index, int *slot) argument
114 *slot = index;
125 int slot; local
130 for (slot = 0; slot < PCTRIE_COUNT; slot++) {
131 if ((node->pn_popmap & (1 << slot)) != 0)
133 KASSERT(smr_unserialized_load(&node->pn_child[slot], true) ==
141 * Fetch a node pointer from a slot
231 int slot; local
292 int slot; local
482 int slot; local
537 int slot; local
658 int slot; local
744 int slot; local
805 int slot; local
872 int slot; local
907 int slot; local
[all...]
H A Dkern_osd.c76 static void do_osd_del(u_int type, struct osd *osd, u_int slot,
102 * destructor, because NULL destructor means unused slot.
109 * First, we try to find unused slot.
113 OSD_DEBUG("Unused slot found (type=%u, slot=%u).",
119 * If no unused slot was found, allocate one.
135 OSD_DEBUG("New slot allocated (type=%u, slot=%u).",
150 osd_deregister(u_int type, u_int slot) argument
155 KASSERT(slot >
185 osd_set(u_int type, struct osd *osd, u_int slot, void *value) argument
192 osd_reserve(u_int slot) argument
202 osd_set_reserved(u_int type, struct osd *osd, u_int slot, void **rsv, void *value) argument
281 osd_get_unlocked(u_int type, struct osd *osd, u_int slot) argument
299 osd_get(u_int type, struct osd *osd, u_int slot) argument
314 osd_del(u_int type, struct osd *osd, u_int slot) argument
324 do_osd_del(u_int type, struct osd *osd, u_int slot, int list_locked) argument
[all...]
/freebsd-current/crypto/heimdal/lib/hx509/
H A Dks_p11.c68 struct p11_slot *slot; member in struct:p11_module
96 struct p11_slot *slot; member in struct:p11_rsa
144 ret = p11_get_session(NULL, p11rsa->p, p11rsa->slot, NULL, &session);
150 p11_put_session(p11rsa->p, p11rsa->slot, session);
156 p11_put_session(p11rsa->p, p11rsa->slot, session);
182 ret = p11_get_session(NULL, p11rsa->p, p11rsa->slot, NULL, &session);
188 p11_put_session(p11rsa->p, p11rsa->slot, session);
194 p11_put_session(p11rsa->p, p11rsa->slot, session);
265 struct p11_slot *slot,
271 ret = P11FUNC(p, GetMechanismList, (slot
263 p11_mech_info(hx509_context context, struct p11_module *p, struct p11_slot *slot, int num) argument
327 p11_init_slot(hx509_context context, struct p11_module *p, hx509_lock lock, CK_SLOT_ID id, int num, struct p11_slot *slot) argument
394 p11_get_session(hx509_context context, struct p11_module *p, struct p11_slot *slot, hx509_lock lock, CK_SESSION_HANDLE *psession) argument
504 p11_put_session(struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session) argument
516 iterate_entries(hx509_context context, struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session, CK_ATTRIBUTE *search_data, int num_search_data, CK_ATTRIBUTE *query, int num_query, int (*func)(hx509_context, struct p11_module *, struct p11_slot *, CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object, void *, CK_ATTRIBUTE *, int), void *ptr) argument
592 getattr_bn(struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object, unsigned int type) argument
626 collect_private_key(hx509_context context, struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object, void *ptr, CK_ATTRIBUTE *query, int num_query) argument
714 collect_cert(hx509_context context, struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object, void *ptr, CK_ATTRIBUTE *query, int num_query) argument
774 p11_list_keys(hx509_context context, struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session, hx509_lock lock, hx509_certs *certs) argument
[all...]
/freebsd-current/sys/dev/evdev/
H A Devdev_mt.c110 int slot, slots; local
139 for (slot = 0; slot < slots; slot++)
140 mt->slots[slot].id = -1;
169 evdev_mt_send_slot(struct evdev_dev *evdev, int slot, argument
176 MPASS(type_a || (slot >= 0 && slot <= MAXIMAL_MT_SLOT(evdev)));
180 evdev_send_event(evdev, EV_ABS, ABS_MT_SLOT, slot);
194 evdev_mt_push_slot(struct evdev_dev *evdev, int slot, argument
318 int i, j, m, n, dx, dy, slot, num_touches; local
372 union evdev_mt_slot *slot; local
453 int slot, size = 0; local
481 evdev_mt_set_last_slot(struct evdev_dev *evdev, int slot) argument
492 evdev_mt_get_value(struct evdev_dev *evdev, int slot, int16_t code) argument
502 evdev_mt_set_value(struct evdev_dev *evdev, int slot, int16_t code, int32_t value) argument
522 int slot; local
544 evdev_mt_reassign_id(struct evdev_dev *evdev, int slot, int32_t id) argument
656 int slot; local
[all...]
/freebsd-current/sys/powerpc/include/
H A Ddbdma.h90 void dbdma_set_current_cmd(dbdma_channel_t *chan, int slot);
119 uint16_t dbdma_get_cmd_status(dbdma_channel_t *chan, int slot);
120 uint16_t dbdma_get_residuals(dbdma_channel_t *chan, int slot);
122 void dbdma_clear_cmd_status(dbdma_channel_t *chan, int slot);
140 void dbdma_insert_command(dbdma_channel_t *chan, int slot, int command,
144 void dbdma_insert_stop(dbdma_channel_t *chan, int slot);
145 void dbdma_insert_nop(dbdma_channel_t *chan, int slot);
146 void dbdma_insert_branch(dbdma_channel_t *chan, int slot, int to_slot);
/freebsd-current/sys/arm64/acpica/
H A Dpci_cfgreg.c43 pci_cfgregread(int domain, int bus, int slot, int func, int reg, int bytes) argument
55 pci_cfgregwrite(int domain, int bus, int slot, int func, int reg, uint32_t data, argument
/freebsd-current/sys/compat/linuxkpi/common/src/
H A Dlinux_dmi.c78 enum dmi_field slot; local
82 slot = dsi->matches[i].slot;
83 if (slot == DMI_NONE)
85 if (slot >= DMI_STRING_MAX ||
86 dmi_data[slot] == NULL)
89 if (dmi_match(slot, dsi->matches[i].substr))
91 } else if (strstr(dmi_data[slot],
119 for (dsi = list; dsi->matches[0].slot != 0; dsi++) {
138 for (dsi = sysid; dsi->matches[0].slot !
[all...]
/freebsd-current/sys/arm/annapurna/alpine/
H A Dalpine_pci.c120 int bus, slot, func, maxfunc; local
124 for (slot = 0; slot <= PCI_SLOTMAX; slot++) {
127 hdrtype = PCIB_READ_CONFIG(dev, bus, slot, func,
136 vid = PCIB_READ_CONFIG(dev, bus, slot, func,
139 val = PCIB_READ_CONFIG(dev, bus, slot, func,
142 PCIB_WRITE_CONFIG(dev, bus, slot, func,
145 val = PCIB_READ_CONFIG(dev, bus, slot, func,
149 PCIB_WRITE_CONFIG(dev, bus, slot, fun
[all...]
/freebsd-current/sys/x86/pci/
H A Dpci_early_quirks.c70 intel_stolen_base_gen3(int domain, int bus, int slot, int func) argument
75 ctrl = pci_cfgregread(domain, bus, slot, func, INTEL_BSM, 4);
81 intel_stolen_base_gen11(int domain, int bus, int slot, int func) argument
86 ctrl = pci_cfgregread(domain, bus, slot, func, INTEL_GEN11_BSM_DW0, 4);
89 domain, bus, slot, func, INTEL_GEN11_BSM_DW1, 4) << 32;
94 intel_stolen_size_gen3(int domain, int bus, int slot, int func) argument
134 intel_stolen_size_gen6(int domain, int bus, int slot, int func) argument
139 ctrl = pci_cfgregread(domain, bus, slot, func, SNB_GMCH_CTRL, 2);
145 intel_stolen_size_gen8(int domain, int bus, int slot, int func) argument
150 ctrl = pci_cfgregread(domain, bus, slot, fun
156 intel_stolen_size_chv(int domain, int bus, int slot, int func) argument
178 intel_stolen_size_gen9(int domain, int bus, int slot, int func) argument
283 const int slot = 2; local
[all...]
/freebsd-current/sys/dev/ata/
H A Data-dma.c163 bzero(ch->dma.slot, sizeof(struct ata_dmaslot) * ATA_DMA_SLOTS);
165 struct ata_dmaslot *slot = &ch->dma.slot[i]; local
170 0, NULL, NULL, &slot->sg_tag)) {
175 if (bus_dmamem_alloc(slot->sg_tag, (void **)&slot->sg, BUS_DMA_WAITOK,
176 &slot->sg_map)) {
181 if (bus_dmamap_load(slot->sg_tag, slot->sg_map, slot
219 struct ata_dmaslot *slot = &ch->dma.slot[i]; local
[all...]
/freebsd-current/sys/dev/pci/
H A Dpcib_support.c58 uint8_t bus, slot, func; local
67 slot = pci_get_slot(dev);
70 *id = (PCI_RID(bus, slot, func));
75 pcib_decode_rid(device_t pcib, uint16_t rid, int *bus, int *slot, argument
80 *slot = PCI_RID2SLOT(rid);
/freebsd-current/usr.sbin/mpsutil/
H A Dmps_slot.c45 MPS_TABLE(top, slot);
57 U16 slot; local
81 warnx("Invalid slot argument '%s'", argv[3]);
84 slot = x;
101 if (mps_set_slot_status(fd, htole16(handle), htole16(slot),
109 printf("Successfully set slot status\n");
113 MPS_COMMAND(slot, set, slot_set, "status <enclosure handle> <slot number> "
114 "<status>", "\n Set status of the slot in the directly attached enclosure");
/freebsd-current/contrib/lua/src/
H A Dlvm.h80 ** return 1 with 'slot' pointing to 't[k]' (position of final result).
82 ** with 'slot' pointing to an empty 't[k]' (if 't' is a table) or NULL
85 #define luaV_fastget(L,t,k,slot,f) \
87 ? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \
88 : (slot = f(hvalue(t), k), /* else, do raw access */ \
89 !isempty(slot))) /* result not empty? */
96 #define luaV_fastgeti(L,t,k,slot) \
98 ? (slot = NULL, 0) /* not a table; 'slot' i
[all...]
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dmod_devicetable.h63 unsigned char slot : 7; member in struct:dmi_strmatch
75 #define DMI_MATCH(a, b) { .slot = a, .substr = b }
76 #define DMI_EXACT_MATCH(a, b) { .slot = a, .substr = b, .exact_match = 1 }
/freebsd-current/contrib/xz/src/xz/
H A Dutil.c30 # define check_thousand_sep(slot) do { } while (0)
46 check_thousand_sep(uint32_t slot) argument
49 bufs[slot][0] = '\0';
50 snprintf(bufs[slot], sizeof(bufs[slot]), "%'u", 1U);
51 thousand = bufs[slot][0] == '1' ? WORKS : BROKEN;
181 uint64_to_str(uint64_t value, uint32_t slot) argument
183 assert(slot < ARRAY_SIZE(bufs));
185 check_thousand_sep(slot);
187 snprintf(bufs[slot], sizeo
195 uint64_to_nicestr(uint64_t value, enum nicestr_unit unit_min, enum nicestr_unit unit_max, bool always_also_bytes, uint32_t slot) argument
[all...]

Completed in 279 milliseconds

1234567891011>>