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

1234567891011>>

/freebsd-10.0-release/sys/dev/sdhci/
H A Dsdhci.c72 #define RD1(slot, off) SDHCI_READ_1((slot)->bus, (slot), (off))
73 #define RD2(slot, off) SDHCI_READ_2((slot)->bus, (slot), (off))
74 #define RD4(slot, off) SDHCI_READ_4((slot)->bus, (slot), (off))
75 #define RD_MULTI_4(slot, of
115 slot_printf(struct sdhci_slot *slot, const char * fmt, ...) argument
130 sdhci_dumpregs(struct sdhci_slot *slot) argument
161 sdhci_reset(struct sdhci_slot *slot, uint8_t mask) argument
207 sdhci_init(struct sdhci_slot *slot) argument
225 sdhci_set_clock(struct sdhci_slot *slot, uint32_t clock) argument
302 sdhci_set_power(struct sdhci_slot *slot, u_char power) argument
338 sdhci_read_block_pio(struct sdhci_slot *slot) argument
381 sdhci_write_block_pio(struct sdhci_slot *slot) argument
421 sdhci_transfer_pio(struct sdhci_slot *slot) argument
445 struct sdhci_slot *slot = arg; local
453 struct sdhci_slot *slot = arg; local
478 sdhci_init_slot(device_t dev, struct sdhci_slot *slot, int num) argument
616 sdhci_start_slot(struct sdhci_slot *slot) argument
622 sdhci_cleanup_slot(struct sdhci_slot *slot) argument
649 sdhci_generic_suspend(struct sdhci_slot *slot) argument
657 sdhci_generic_resume(struct sdhci_slot *slot) argument
665 sdhci_generic_min_freq(device_t brdev, struct sdhci_slot *slot) argument
676 struct sdhci_slot *slot = device_get_ivars(reqdev); local
706 sdhci_set_transfer_mode(struct sdhci_slot *slot, struct mmc_data *data) argument
728 sdhci_start_command(struct sdhci_slot *slot, struct mmc_command *cmd) argument
825 sdhci_finish_command(struct sdhci_slot *slot) argument
865 sdhci_start_data(struct sdhci_slot *slot, struct mmc_data *data) argument
942 sdhci_finish_data(struct sdhci_slot *slot) argument
979 sdhci_start(struct sdhci_slot *slot) argument
1016 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1045 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1057 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1073 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1085 sdhci_cmd_irq(struct sdhci_slot *slot, uint32_t intmask) argument
1105 sdhci_data_irq(struct sdhci_slot *slot, uint32_t intmask) argument
1201 sdhci_acmd_irq(struct sdhci_slot *slot) argument
1217 sdhci_generic_intr(struct sdhci_slot *slot) argument
1290 struct sdhci_slot *slot = device_get_ivars(child); local
1344 struct sdhci_slot *slot = device_get_ivars(child); local
[all...]
H A Dsdhci_fdt.c78 sdhci_fdt_read_1(device_t dev, struct sdhci_slot *slot, bus_size_t off) argument
81 return (bus_read_1(sc->mem_res[slot->num], off));
85 sdhci_fdt_write_1(device_t dev, struct sdhci_slot *slot, bus_size_t off, argument
89 bus_write_1(sc->mem_res[slot->num], off, val);
93 sdhci_fdt_read_2(device_t dev, struct sdhci_slot *slot, bus_size_t off) argument
96 return (bus_read_2(sc->mem_res[slot->num], off));
100 sdhci_fdt_write_2(device_t dev, struct sdhci_slot *slot, bus_size_t off, argument
104 bus_write_2(sc->mem_res[slot->num], off, val);
108 sdhci_fdt_read_4(device_t dev, struct sdhci_slot *slot, bus_size_t off) argument
111 return (bus_read_4(sc->mem_res[slot
115 sdhci_fdt_write_4(device_t dev, struct sdhci_slot *slot, bus_size_t off, uint32_t val) argument
123 sdhci_fdt_read_multi_4(device_t dev, struct sdhci_slot *slot, bus_size_t off, uint32_t *data, bus_size_t count) argument
131 sdhci_fdt_write_multi_4(device_t dev, struct sdhci_slot *slot, bus_size_t off, uint32_t *data, bus_size_t count) argument
145 struct sdhci_slot *slot = &sc->slots[i]; local
200 struct sdhci_slot *slot = &sc->slots[sc->num_slots]; local
232 struct sdhci_slot *slot = &sc->slots[i]; local
251 struct sdhci_slot *slot = &sc->slots[i]; local
[all...]
/freebsd-10.0-release/sys/ia64/include/
H A Dpci_cfgreg.h34 uint32_t pci_cfgregread(int bus, int slot, int func, int reg, int len);
35 void pci_cfgregwrite(int bus, int slot, int func, int reg, uint32_t data,
/freebsd-10.0-release/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_get(u_int type, struct osd *osd, u_int slot);
63 void osd_del(u_int type, struct osd *osd, u_int slot);
70 #define osd_thread_deregister(slot) \
71 osd_deregister(OSD_THREAD, (slot))
72 #define osd_thread_set(td, slot, value) \
73 osd_set(OSD_THREAD, &(td)->td_osd, (slot), (value))
74 #define osd_thread_get(td, slot) \
75 osd_get(OSD_THREAD, &(td)->td_osd, (slot))
[all...]
/freebsd-10.0-release/sys/amd64/pci/
H A Dpci_cfgreg.c51 static uint32_t pci_docfgregread(int bus, int slot, int func, int reg,
53 static int pciereg_cfgread(int bus, unsigned slot, unsigned func,
55 static void pciereg_cfgwrite(int bus, unsigned slot, unsigned func,
57 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
58 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
123 pci_docfgregread(int bus, int slot, int func, int reg, int bytes) argument
128 (bus != 0 || !(1 << slot & pcie_badslots)))
129 return (pciereg_cfgread(bus, slot, func, reg, bytes));
131 return (pcireg_cfgread(bus, slot, func, reg, bytes));
138 pci_cfgregread(int bus, int slot, in argument
163 pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_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
314 pciereg_cfgread(int bus, unsigned slot, unsigned func, unsigned reg, unsigned bytes) argument
345 pciereg_cfgwrite(int bus, unsigned slot, unsigned func, unsigned reg, int data, unsigned bytes) argument
[all...]
/freebsd-10.0-release/sys/mips/atheros/
H A Dar71xx_fixup.h34 u_int bus, u_int slot, u_int func, long int flash_addr, int size);
/freebsd-10.0-release/contrib/openpam/lib/libpam/
H A Dpam_set_item.c63 void **slot, *tmp; local
69 slot = &pamh->item[item_type];
74 if (*slot != NULL)
87 if (*slot != NULL)
88 osize = strlen(*slot) + 1;
101 if (*slot != NULL) {
102 memset(*slot, 0xd0, osize);
103 FREE(*slot);
112 *slot = tmp;
/freebsd-10.0-release/sys/sparc64/sparc64/
H A Dzeus.c143 u_int i, slot; local
146 slot = TLB_DAR_SLOT(TLB_DAR_FTLB, i);
147 data = ldxa(slot, ASI_DTLB_DATA_ACCESS_REG);
148 tag = ldxa(slot, ASI_DTLB_TAG_READ_REG);
151 stxa_sync(slot, ASI_DTLB_DATA_ACCESS_REG, 0);
152 data = ldxa(slot, ASI_ITLB_DATA_ACCESS_REG);
153 tag = ldxa(slot, ASI_ITLB_TAG_READ_REG);
156 stxa_sync(slot, ASI_ITLB_DATA_ACCESS_REG, 0);
159 slot = TLB_DAR_SLOT(TLB_DAR_STLB, i);
160 data = ldxa(slot, ASI_DTLB_DATA_ACCESS_RE
[all...]
H A Dcheetah.c238 u_int i, slot; local
245 slot = TLB_DAR_SLOT(TLB_DAR_T16, i);
247 (void)ldxa(slot, ASI_DTLB_DATA_ACCESS_REG);
248 data = ldxa(slot, ASI_DTLB_DATA_ACCESS_REG);
250 tag = ldxa(slot, ASI_DTLB_TAG_READ_REG);
253 stxa_sync(slot, ASI_DTLB_DATA_ACCESS_REG, 0);
255 (void)ldxa(slot, ASI_ITLB_DATA_ACCESS_REG);
256 data = ldxa(slot, ASI_ITLB_DATA_ACCESS_REG);
258 tag = ldxa(slot, ASI_ITLB_TAG_READ_REG);
261 stxa_sync(slot, ASI_ITLB_DATA_ACCESS_RE
[all...]
H A Dspitfire.c149 u_int slot; local
152 slot = TLB_DAR_SLOT(TLB_DAR_T32, i);
153 if ((ldxa(slot, ASI_DTLB_DATA_ACCESS_REG) & TD_L) == 0)
154 stxa_sync(slot, ASI_DTLB_DATA_ACCESS_REG, 0);
155 if ((ldxa(slot, ASI_ITLB_DATA_ACCESS_REG) & TD_L) == 0)
156 stxa_sync(slot, ASI_ITLB_DATA_ACCESS_REG, 0);
169 u_int slot; local
172 slot = TLB_DAR_SLOT(TLB_DAR_T32, i);
173 data = ldxa(slot, ASI_DTLB_DATA_ACCESS_REG);
174 tag = ldxa(slot, ASI_DTLB_TAG_READ_RE
[all...]
/freebsd-10.0-release/sys/amd64/vmm/io/
H A Dppt.h33 int ppt_map_mmio(struct vm *vm, int bus, int slot, int func,
35 int ppt_setup_msi(struct vm *vm, int vcpu, int bus, int slot, int func,
37 int ppt_setup_msix(struct vm *vm, int vcpu, int bus, int slot, int func,
46 int ppt_assign_device(struct vm *vm, int bus, int slot, int func);
47 int ppt_unassign_device(struct vm *vm, int bus, int slot, int func);
H A Diommu.c105 IOMMU_ADD_DEVICE(void *domain, int bus, int slot, int func) argument
109 (*ops->add_device)(domain, bus, slot, func);
113 IOMMU_REMOVE_DEVICE(void *domain, int bus, int slot, int func) argument
117 (*ops->remove_device)(domain, bus, slot, func);
147 int error, bus, slot, func; local
180 for (slot = 0; slot <= PCI_SLOTMAX; slot++) {
182 dev = pci_find_dbsf(0, bus, slot, func);
192 iommu_add_device(host_domain, bus, slot, fun
259 iommu_add_device(void *dom, int bus, int slot, int func) argument
266 iommu_remove_device(void *dom, int bus, int slot, int func) argument
[all...]
/freebsd-10.0-release/contrib/xz/src/xz/
H A Dutil.c138 check_thousand_sep(uint32_t slot) argument
141 bufs[slot][0] = '\0';
142 snprintf(bufs[slot], sizeof(bufs[slot]), "%'u", 1U);
143 thousand = bufs[slot][0] == '1' ? WORKS : BROKEN;
151 uint64_to_str(uint64_t value, uint32_t slot) argument
153 assert(slot < ARRAY_SIZE(bufs));
155 check_thousand_sep(slot);
158 snprintf(bufs[slot], sizeof(bufs[slot]), "
167 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...]
/freebsd-10.0-release/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);
239 struct p11_slot *slot,
245 ret = P11FUNC(p, GetMechanismList, (slot
237 p11_mech_info(hx509_context context, struct p11_module *p, struct p11_slot *slot, int num) argument
301 p11_init_slot(hx509_context context, struct p11_module *p, hx509_lock lock, CK_SLOT_ID id, int num, struct p11_slot *slot) argument
368 p11_get_session(hx509_context context, struct p11_module *p, struct p11_slot *slot, hx509_lock lock, CK_SESSION_HANDLE *psession) argument
478 p11_put_session(struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session) argument
490 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
566 getattr_bn(struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object, unsigned int type) argument
600 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
676 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
736 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-10.0-release/sys/ia64/pci/
H A Dpci_cfgreg.c36 pci_sal_address(int dom, int bus, int slot, int func, int reg) argument
42 slot >= 0 && slot <= 31 && func >= 0 && func <= 7 &&
45 ((u_long)slot << 11) | ((u_long)func << 8) | (u_long)reg;
67 pci_cfgregread(int bus, int slot, int func, int reg, int len) argument
73 addr = pci_sal_address(bus >> 8, bus & 0xff, slot, func, reg);
88 pci_cfgregwrite(int bus, int slot, int func, int reg, uint32_t data, int len) argument
94 addr = pci_sal_address(bus >> 8, bus & 0xff, slot, func, reg);
/freebsd-10.0-release/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-10.0-release/sys/i386/pci/
H A Dpci_cfgreg.c93 static uint32_t pci_docfgregread(int bus, int slot, int func, int reg,
95 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
96 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
100 static int pciereg_cfgread(int bus, unsigned slot, unsigned func,
102 static void pciereg_cfgwrite(int bus, unsigned slot, unsigned func,
210 pci_docfgregread(int bus, int slot, int func, int reg, int bytes) argument
215 (bus != 0 || !(1 << slot & pcie_badslots)))
216 return (pciereg_cfgread(bus, slot, func, reg, bytes));
218 return (pcireg_cfgread(bus, slot, func, reg, bytes));
225 pci_cfgregread(int bus, int slot, in argument
245 pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes) argument
262 pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes) argument
345 pcireg_cfgread(int bus, int slot, int func, int reg, int bytes) argument
371 pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes) argument
533 int i, slot; local
621 pciereg_findaddr(int bus, unsigned slot, unsigned func, unsigned reg) argument
668 pciereg_cfgread(int bus, unsigned slot, unsigned func, unsigned reg, unsigned bytes) argument
701 pciereg_cfgwrite(int bus, unsigned slot, unsigned func, unsigned reg, int data, unsigned bytes) argument
[all...]
/freebsd-10.0-release/sys/ia64/ia64/
H A Demulate.c44 int slot; local
49 slot = ((tf->tf_special.psr & IA64_PSR_RI) == IA64_PSR_RI_0) ? 0 :
51 if (slot == 1 && bundle.b_templ[slot] == 'L')
52 slot++;
54 i = bundle.b_inst + slot;
/freebsd-10.0-release/sys/arm/broadcom/bcm2835/
H A Dbcm2835_sdhci.c329 bcm_sdhci_read_1(device_t dev, struct sdhci_slot *slot, bus_size_t off) argument
338 bcm_sdhci_read_2(device_t dev, struct sdhci_slot *slot, bus_size_t off) argument
347 bcm_sdhci_read_4(device_t dev, struct sdhci_slot *slot, bus_size_t off) argument
355 bcm_sdhci_read_multi_4(device_t dev, struct sdhci_slot *slot, bus_size_t off, argument
364 bcm_sdhci_write_1(device_t dev, struct sdhci_slot *slot, bus_size_t off, uint8_t val) argument
374 bcm_sdhci_write_2(device_t dev, struct sdhci_slot *slot, bus_size_t off, uint16_t val) argument
392 bcm_sdhci_write_4(device_t dev, struct sdhci_slot *slot, bus_size_t off, uint32_t val) argument
399 bcm_sdhci_write_multi_4(device_t dev, struct sdhci_slot *slot, bus_size_t off, argument
408 bcm_sdhci_min_freq(device_t dev, struct sdhci_slot *slot) argument
418 struct sdhci_slot *slot local
502 bcm_sdhci_read_dma(struct sdhci_slot *slot) argument
541 bcm_sdhci_write_dma(struct sdhci_slot *slot) argument
580 bcm_sdhci_will_handle_transfer(device_t dev, struct sdhci_slot *slot) argument
599 bcm_sdhci_start_transfer(device_t dev, struct sdhci_slot *slot, uint32_t *intmask) argument
615 bcm_sdhci_finish_transfer(device_t dev, struct sdhci_slot *slot) argument
[all...]
/freebsd-10.0-release/sys/kern/
H A Dkern_osd.c61 static void do_osd_del(u_int type, struct osd *osd, u_int slot,
100 * destructor, because NULL destructor means unused slot.
107 * First, we try to find unused slot.
111 OSD_DEBUG("Unused slot found (type=%u, slot=%u).",
117 * If no unused slot was found, allocate one.
133 OSD_DEBUG("New slot allocated (type=%u, slot=%u).",
148 osd_deregister(u_int type, u_int slot) argument
153 KASSERT(slot >
196 osd_set(u_int type, struct osd *osd, u_int slot, void *value) argument
254 osd_get(u_int type, struct osd *osd, u_int slot) argument
277 osd_del(u_int type, struct osd *osd, u_int slot) argument
287 do_osd_del(u_int type, struct osd *osd, u_int slot, int list_locked) argument
[all...]
H A Dsubr_pctrie.c120 int slot; local
125 for (slot = 0; slot < PCTRIE_COUNT; slot++)
126 KASSERT(node->pn_child[slot] == NULL,
203 int slot; local
205 slot = pctrie_slot(index, clev);
206 node->pn_child[slot] = (void *)((uintptr_t)val | PCTRIE_ISLEAF);
210 * Returns the slot where two keys differ.
250 int slot; local
297 int slot; local
367 int slot; local
398 int slot, tos; local
509 int slot, tos; local
618 int i, slot; local
[all...]
/freebsd-10.0-release/sys/dev/ata/
H A Data-dma.c165 bzero(ch->dma.slot, sizeof(struct ata_dmaslot) * ATA_DMA_SLOTS);
167 struct ata_dmaslot *slot = &ch->dma.slot[i]; local
172 0, NULL, NULL, &slot->sg_tag)) {
177 if (bus_dmamem_alloc(slot->sg_tag, (void **)&slot->sg, BUS_DMA_WAITOK,
178 &slot->sg_map)) {
183 if (bus_dmamap_load(slot->sg_tag, slot->sg_map, slot
221 struct ata_dmaslot *slot = &ch->dma.slot[i]; local
[all...]
/freebsd-10.0-release/sys/vm/
H A Dvm_radix.c203 int slot; local
205 slot = vm_radix_slot(index, clev);
206 rnode->rn_child[slot] = (void *)((uintptr_t)page | VM_RADIX_ISLEAF);
210 * Returns the slot where two keys differ.
249 int slot; local
253 for (slot = 0; rnode->rn_count != 0; slot++) {
254 if (rnode->rn_child[slot] == NULL)
256 if (!vm_radix_isleaf(rnode->rn_child[slot]))
257 vm_radix_reclaim_allnodes_int(rnode->rn_child[slot]);
272 int slot; local
339 int slot; local
458 int slot; local
489 int slot, tos; local
600 int slot, tos; local
709 int i, slot; local
800 int slot; local
[all...]
/freebsd-10.0-release/sys/x86/pci/
H A Dpci_bus.c63 legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func, argument
66 return(pci_cfgregread(bus, slot, func, reg, bytes));
72 legacy_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func, argument
75 pci_cfgregwrite(bus, slot, func, reg, data, bytes);
120 int error, func, slot; local
127 slot = legacy_get_pcislot(pcib);
129 if (slot == -1 || func == -1)
131 hostb = pci_find_bsf(0, slot, func);
133 slot, func));
139 legacy_pcib_is_host_bridge(int bus, int slot, in argument
378 int bus, slot, func; local
[all...]
/freebsd-10.0-release/sys/dev/fdt/
H A Dfdt_pci.c254 fdt_pci_route_intr(int bus, int slot, int func, int pin, argument
270 addr = (bus << 16) | (slot << 11) | (func << 8);
362 fdt_pci_config_bar(device_t dev, int bus, int slot, int func, int bar)
367 fdt_pci_config_normal(device_t dev, int bus, int slot, int func)
372 command = PCIB_READ_CONFIG(dev, bus, slot, func, PCIR_COMMAND, 1);
374 PCIB_WRITE_CONFIG(dev, bus, slot, func, PCIR_COMMAND, command, 1);
379 bar += fdt_pci_config_bar(dev, bus, slot, func, bar);
382 intpin = PCIB_READ_CONFIG(dev, bus, slot, func, PCIR_INTPIN, 1);
383 intline = fsl_pcib_route_int(dev, bus, slot, func, intpin);
384 PCIB_WRITE_CONFIG(dev, bus, slot, fun
[all...]

Completed in 180 milliseconds

1234567891011>>