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

1234567891011>>

/freebsd-9.3-release/sys/dev/sdhci/
H A Dsdhci.c168 RD1(struct sdhci_slot *slot, bus_size_t off) argument
170 bus_barrier(slot->mem_res, 0, 0xFF,
172 return bus_read_1(slot->mem_res, off);
176 WR1(struct sdhci_slot *slot, bus_size_t off, uint8_t val) argument
178 bus_barrier(slot->mem_res, 0, 0xFF,
180 bus_write_1(slot->mem_res, off, val);
184 RD2(struct sdhci_slot *slot, bus_size_t off) argument
186 bus_barrier(slot->mem_res, 0, 0xFF,
188 return bus_read_2(slot->mem_res, off);
192 WR2(struct sdhci_slot *slot, bus_size_ argument
200 RD4(struct sdhci_slot *slot, bus_size_t off) argument
208 WR4(struct sdhci_slot *slot, bus_size_t off, uint32_t val) argument
237 slot_printf(struct sdhci_slot *slot, const char * fmt, ...) argument
262 sdhci_dumpregs(struct sdhci_slot *slot) argument
293 sdhci_reset(struct sdhci_slot *slot, uint8_t mask) argument
339 sdhci_init(struct sdhci_slot *slot) argument
375 sdhci_set_clock(struct sdhci_slot *slot, uint32_t clock) argument
424 sdhci_set_power(struct sdhci_slot *slot, u_char power) argument
459 sdhci_read_block_pio(struct sdhci_slot *slot) argument
502 sdhci_write_block_pio(struct sdhci_slot *slot) argument
542 sdhci_transfer_pio(struct sdhci_slot *slot) argument
566 struct sdhci_slot *slot = arg; local
574 struct sdhci_slot *slot = arg; local
678 struct sdhci_slot *slot = &sc->slots[sc->num_slots]; local
795 struct sdhci_slot *slot = &sc->slots[i]; local
814 struct sdhci_slot *slot = &sc->slots[i]; local
868 struct sdhci_slot *slot = device_get_ivars(reqdev); local
898 sdhci_set_transfer_mode(struct sdhci_slot *slot, struct mmc_data *data) argument
920 sdhci_start_command(struct sdhci_slot *slot, struct mmc_command *cmd) argument
1019 sdhci_finish_command(struct sdhci_slot *slot) argument
1054 sdhci_start_data(struct sdhci_slot *slot, struct mmc_data *data) argument
1128 sdhci_finish_data(struct sdhci_slot *slot) argument
1163 sdhci_start(struct sdhci_slot *slot) argument
1200 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1229 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1241 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1257 struct sdhci_slot *slot = device_get_ivars(reqdev); local
1269 sdhci_cmd_irq(struct sdhci_slot *slot, uint32_t intmask) argument
1289 sdhci_data_irq(struct sdhci_slot *slot, uint32_t intmask) argument
1370 sdhci_acmd_irq(struct sdhci_slot *slot) argument
1392 struct sdhci_slot *slot = &sc->slots[i]; local
1465 struct sdhci_slot *slot = device_get_ivars(child); local
1519 struct sdhci_slot *slot = device_get_ivars(child); local
[all...]
/freebsd-9.3-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-9.3-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-9.3-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
313 pciereg_cfgread(int bus, unsigned slot, unsigned func, unsigned reg, unsigned bytes) argument
344 pciereg_cfgwrite(int bus, unsigned slot, unsigned func, unsigned reg, int data, unsigned bytes) argument
[all...]
/freebsd-9.3-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-9.3-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-9.3-release/contrib/xz/src/xz/
H A Dutil.c148 check_thousand_sep(uint32_t slot) argument
151 bufs[slot][0] = '\0';
152 snprintf(bufs[slot], sizeof(bufs[slot]), "%'u", 1U);
153 thousand = bufs[slot][0] == '1' ? WORKS : BROKEN;
161 uint64_to_str(uint64_t value, uint32_t slot) argument
163 assert(slot < ARRAY_SIZE(bufs));
165 check_thousand_sep(slot);
168 snprintf(bufs[slot], sizeof(bufs[slot]), "
177 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-9.3-release/crypto/heimdal/lib/hx509/
H A Dks_p11.c69 struct p11_slot *slot; member in struct:p11_module
97 struct p11_slot *slot; member in struct:p11_rsa
145 ret = p11_get_session(NULL, p11rsa->p, p11rsa->slot, NULL, &session);
151 p11_put_session(p11rsa->p, p11rsa->slot, session);
157 p11_put_session(p11rsa->p, p11rsa->slot, session);
183 ret = p11_get_session(NULL, p11rsa->p, p11rsa->slot, NULL, &session);
189 p11_put_session(p11rsa->p, p11rsa->slot, session);
195 p11_put_session(p11rsa->p, p11rsa->slot, session);
240 struct p11_slot *slot,
246 ret = P11FUNC(p, GetMechanismList, (slot
238 p11_mech_info(hx509_context context, struct p11_module *p, struct p11_slot *slot, int num) argument
302 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
480 p11_put_session(struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session) argument
492 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
569 getattr_bn(struct p11_module *p, struct p11_slot *slot, CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object, unsigned int type) argument
603 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
677 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
735 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-9.3-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(0, bus, 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(0, bus, slot, func, reg);
/freebsd-9.3-release/sys/mips/include/
H A Dpci_cfgreg.h46 u_int32_t pci_cfgregread(int bus, int slot, int func, int reg, int bytes);
47 void pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes);
/freebsd-9.3-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-9.3-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-9.3-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
664 pciereg_cfgread(int bus, unsigned slot, unsigned func, unsigned reg, unsigned bytes) argument
702 pciereg_cfgwrite(int bus, unsigned slot, unsigned func, unsigned reg, int data, unsigned bytes) argument
[all...]
/freebsd-9.3-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...]
/freebsd-9.3-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-9.3-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));
140 legacy_pcib_is_host_bridge(int bus, int slot, in argument
379 int bus, slot, func; local
[all...]
/freebsd-9.3-release/sys/dev/fdt/
H A Dfdt_pci.c249 fdt_pci_route_intr(int bus, int slot, int func, int pin, argument
265 addr = (bus << 16) | (slot << 11) | (func << 8);
357 fdt_pci_config_bar(device_t dev, int bus, int slot, int func, int bar)
362 fdt_pci_config_normal(device_t dev, int bus, int slot, int func)
367 command = PCIB_READ_CONFIG(dev, bus, slot, func, PCIR_COMMAND, 1);
369 PCIB_WRITE_CONFIG(dev, bus, slot, func, PCIR_COMMAND, command, 1);
374 bar += fdt_pci_config_bar(dev, bus, slot, func, bar);
377 intpin = PCIB_READ_CONFIG(dev, bus, slot, func, PCIR_INTPIN, 1);
378 intline = fsl_pcib_route_int(dev, bus, slot, func, intpin);
379 PCIB_WRITE_CONFIG(dev, bus, slot, fun
[all...]
/freebsd-9.3-release/contrib/gcc/
H A Dgenconstants.c41 print_md_constant (void **slot, void *info) argument
43 struct md_constant *def = (struct md_constant *) *slot;
H A Dvarray.c67 struct varray_descriptor **slot; local
72 slot = (struct varray_descriptor **)
76 if (*slot)
77 return *slot;
78 *slot = xcalloc (sizeof (**slot), 1);
79 (*slot)->name = name;
80 return *slot;
226 print_statistics (void **slot, void *b) argument
228 struct varray_descriptor *d = (struct varray_descriptor *) *slot;
[all...]
/freebsd-9.3-release/crypto/heimdal/kcm/
H A Dcache.c98 kcm_log(7, "cache %08x: empty slot");
162 kcm_ccache slot = NULL, p; local
177 } else if (slot == NULL)
178 slot = p;
185 * Then try and find an empty slot
188 if (slot == NULL) {
191 slot = p;
196 if (slot == NULL) {
197 slot = (kcm_ccache_data *)malloc(sizeof(*slot));
[all...]
/freebsd-9.3-release/sbin/nvmecontrol/
H A Dfirmware.c52 slot_has_valid_firmware(int fd, int slot) argument
60 if (fw.revision[slot-1] != 0LLU)
145 activate_firmware(int fd, int slot, int activate_action) argument
151 pt.cmd.cdw10 = (activate_action << 3) | slot;
178 int fd = -1, slot = 0; local
195 slot = strtol(optarg, &p, 0);
198 "\"%s\" not valid slot.\n",
201 } else if (slot == 0) {
203 "0 is not a valid slot number. "
206 } else if (slot >
[all...]
/freebsd-9.3-release/sys/powerpc/mpc85xx/
H A Dpci_fdt.c327 fsl_pcib_cfgread(struct fsl_pcib_softc *sc, u_int bus, u_int slot, u_int func, argument
337 addr |= (slot & 0x1f) << 11;
368 fsl_pcib_cfgwrite(struct fsl_pcib_softc *sc, u_int bus, u_int slot, u_int func, argument
378 addr |= (slot & 0x1f) << 11;
443 fsl_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func, argument
449 if (bus == sc->sc_busnr && !sc->sc_pcie && slot < 10)
451 devfn = DEVFN(bus, slot, func);
456 return (fsl_pcib_cfgread(sc, bus, slot, func, reg, bytes));
460 fsl_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func, argument
465 if (bus == sc->sc_busnr && !sc->sc_pcie && slot < 1
471 fsl_pcib_init_via(struct fsl_pcib_softc *sc, uint16_t device, int bus, int slot, int fn) argument
487 fsl_pcib_init_bar(struct fsl_pcib_softc *sc, int bus, int slot, int func, int barno) argument
546 fsl_pcib_route_int(struct fsl_pcib_softc *sc, u_int bus, u_int slot, u_int func, u_int intpin) argument
582 int slot, func, maxfunc; local
[all...]
/freebsd-9.3-release/sys/i386/bios/
H A Dmca_machdep.c128 int slot; local
135 /* For each slot */
136 for (slot = 0; slot < MCA_MAX_SLOTS; slot++) {
138 /* Select the slot */
139 outb(MCA_ADAP_SETUP_REG, slot | MCA_ADAP_SET);
148 printf("MCA NMI: slot %d, POS6=0x%02x, POS7=0x%02x\n",
149 slot+1,
153 printf("MCA NMI: slot
[all...]

Completed in 258 milliseconds

1234567891011>>