Home
last modified time | relevance | path

Searched refs:sc_size (Results 1 – 25 of 120) sorted by relevance

12345

/netbsd/src/sys/arch/evbppc/virtex/dev/
Dtft_plb.c108 if ((error = bus_dmamem_alloc(psc->psc_dmat, sc->sc_size, ADDR_ALIGN, in plb_tft_attach()
114 sc->sc_size, &sc->sc_image, BUS_DMA_COHERENT)) != 0) { in plb_tft_attach()
118 if ((error = bus_dmamap_create(psc->psc_dmat, sc->sc_size, 1, in plb_tft_attach()
119 sc->sc_size, 0, 0, &psc->psc_dmap)) != 0) { in plb_tft_attach()
124 sc->sc_image, sc->sc_size, NULL, 0)) != 0) { in plb_tft_attach()
143 sc->sc_size, BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE); in plb_tft_attach()
162 bus_dmamem_unmap(psc->psc_dmat, sc->sc_image, sc->sc_size); in plb_tft_attach()
179 if (offs < psc->psc_sc.sc_size) in plb_tft_mmap()
183 if (offs < psc->psc_sc.sc_size) in plb_tft_mmap()
Dtft_ll.c127 sizeof(struct ll_tft_control) + sc->sc_size, 8, 0, in ll_tft_attach()
133 sizeof(struct ll_tft_control) + sc->sc_size, in ll_tft_attach()
139 sizeof(struct ll_tft_control) + sc->sc_size, 1, in ll_tft_attach()
140 sizeof(struct ll_tft_control) + sc->sc_size, 0, 0, in ll_tft_attach()
146 sizeof(struct ll_tft_control) + sc->sc_size, NULL, 0)) != 0) { in ll_tft_attach()
158 lsc->lsc_cd->cd_dsc.desc_size = sc->sc_size; in ll_tft_attach()
162 sizeof(struct ll_tft_control) + sc->sc_size, in ll_tft_attach()
187 sizeof(struct ll_tft_control) + sc->sc_size); in ll_tft_attach()
204 if (offs < lsc->lsc_sc.sc_size) { in ll_tft_mmap()
/netbsd/src/sys/dev/i2c/
Dat24cxx.c81 int sc_size; member
181 sc->sc_size = (device_cfdata(self)->cf_flags << 7); in seeprom_attach()
183 if (sc->sc_size <= 0) { in seeprom_attach()
185 sc->sc_size = dce->value; in seeprom_attach()
188 switch (sc->sc_size) { in seeprom_attach()
195 aprint_normal(": size %d\n", sc->sc_size); in seeprom_attach()
204 aprint_normal(": size %d\n", sc->sc_size); in seeprom_attach()
221 sc->sc_size = 2048; in seeprom_attach()
271 if (uio->uio_offset >= sc->sc_size) in seeprom_read()
281 while (uio->uio_resid > 0 && uio->uio_offset < sc->sc_size) { in seeprom_read()
[all …]
/netbsd/src/sys/dev/pci/
Dohci_pci.c116 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size)) { in ohci_pci_attach()
117 sc->sc.sc_size = 0; in ohci_pci_attach()
179 if (sc->sc.sc_size) { in ohci_pci_attach()
180 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in ohci_pci_attach()
181 sc->sc.sc_size = 0; in ohci_pci_attach()
237 if (sc->sc.sc_size) { in ohci_pci_detach()
238 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in ohci_pci_detach()
239 sc->sc.sc_size = 0; in ohci_pci_detach()
Dmfi_pci.c184 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_size); in mfi_pci_detach()
222 &sc->sc_iot, &sc->sc_ioh, NULL, &sc->sc_size)) { in mfi_pci_attach()
238 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_size); in mfi_pci_attach()
254 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_size); in mfi_pci_attach()
283 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_size); in mfi_pci_attach()
Duhci_pci.c107 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size)) { in uhci_pci_attach()
222 if (sc->sc.sc_size) { in uhci_pci_detach()
223 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in uhci_pci_detach()
224 sc->sc.sc_size = 0; in uhci_pci_detach()
/netbsd/src/sys/arch/arm/xscale/
Dpxa2x0_udc.c37 bus_size_t sc_size; member
72 sc->sc_size = 0; in pxaudc_attach()
83 sc->sc_size = pxa->pxa_size; in pxaudc_attach()
85 bus_space_barrier(sc->sc_iot, sc->sc_ioh, 0, sc->sc_size, in pxaudc_attach()
107 if (sc->sc_size) { in pxaudc_detach()
108 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_size); in pxaudc_detach()
109 sc->sc_size = 0; in pxaudc_detach()
Dpxa2x0_ohci.c83 sc->sc.sc_size = 0; in pxaohci_attach()
97 sc->sc.sc_size = pxa->pxa_size; in pxaohci_attach()
100 bus_space_barrier(sc->sc.iot, sc->sc.ioh, 0, sc->sc.sc_size, in pxaohci_attach()
140 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in pxaohci_attach()
141 sc->sc.sc_size = 0; in pxaohci_attach()
201 if (sc->sc.sc_size) { in pxaohci_detach()
202 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in pxaohci_detach()
203 sc->sc.sc_size = 0; in pxaohci_detach()
/netbsd/src/sys/arch/mips/ralink/
Dralink_ohci.c108 sc->sc_ohci.sc_size = RA_USB_BLOCK_SIZE; in ralink_ohci_attach()
157 bus_space_unmap(sc->sc_ohci.iot, sc->sc_ohci.ioh, sc->sc_ohci.sc_size); in ralink_ohci_attach()
158 sc->sc_ohci.sc_size = 0; in ralink_ohci_attach()
212 if (sc->sc_ohci.sc_size) { in ralink_ohci_detach()
214 sc->sc_ohci.sc_size); in ralink_ohci_detach()
215 sc->sc_ohci.sc_size = 0; in ralink_ohci_detach()
Dralink_ehci.c103 sc->sc_ehci.sc_size = RA_USB_BLOCK_SIZE; in ralink_ehci_attach()
174 bus_space_unmap(sc->sc_ehci.iot, sc->sc_ehci.ioh, sc->sc_ehci.sc_size); in ralink_ehci_attach()
175 sc->sc_ehci.sc_size = 0; in ralink_ehci_attach()
195 if (sc->sc_ehci.sc_size != 0) { in ralink_ehci_detach()
197 sc->sc_ehci.sc_size); in ralink_ehci_detach()
198 sc->sc_ehci.sc_size = 0; in ralink_ehci_detach()
Dralink_cfi.c65 bus_size_t sc_size; member
155 sc->sc_size = 1 << qryp->device_size; in ra_cfi_attach()
163 error = bus_space_map(sc->sc_cfi.cfi_bst, sc->sc_addr, sc->sc_size, in ra_cfi_attach()
189 bus_space_unmap(sc->sc_cfi.cfi_bst, sc->sc_cfi.cfi_bsh, sc->sc_size); in ra_cfi_detach()
/netbsd/src/sys/arch/evbppc/pmppc/dev/
Dflash.c47 u_int32_t sc_size; member
73 sc->sc_size = maa->u.mb_flash.size / 8; /* bytes */ in flash_attach()
76 aprint_normal(": %d Mbyte, %d bits wide\n", sc->sc_size / (1024*1024), in flash_attach()
80 if (bus_space_map(sc->sc_tag, sc->sc_addr, sc->sc_size, 0, in flash_attach()
/netbsd/src/sys/arch/sandpoint/sandpoint/
Dflash_cfi.c54 bus_size_t sc_size; member
134 sc->sc_size = 1 << sc->sc_cfi.cfi_qry_data.device_size; in sandpointcfi_attach()
137 addr = (0xffffffff - sc->sc_size) + 1; in sandpointcfi_attach()
145 error = bus_space_map(sc->sc_cfi.cfi_bst, addr, sc->sc_size, 0, in sandpointcfi_attach()
170 bus_space_unmap(sc->sc_cfi.cfi_bst, sc->sc_cfi.cfi_bsh, sc->sc_size); in sandpointcfi_detach()
/netbsd/src/sys/dev/
Dmd.c94 #define sc_size sc_md.md_size macro
249 res = sc->sc_size >> DEV_BSHIFT; in mdsize()
442 if (off >= sc->sc_size) { in mdstrategy()
448 if (xfer > (sc->sc_size - off)) in mdstrategy()
449 xfer = (sc->sc_size - off); in mdstrategy()
536 lp->d_secperunit = sc->sc_size / DEV_BSIZE; in md_set_disklabel()
614 sc->sc_size = (size_t)size; in md_ioctl_kalloc()
652 sc->sc_size = umd->md_size; in md_ioctl_server()
662 sc->sc_size = 0; in md_ioctl_server()
693 if (off >= sc->sc_size) { in md_server_loop()
[all …]
/netbsd/src/sys/dev/altmem/
Daltmem.c50 size_t sc_size; member
112 sc->sc_size = sc->sc_memops->getsize(sc->sc_cookie); in altmem_attach()
114 format_bytes(pbuf, sizeof(pbuf), sc->sc_size); in altmem_attach()
129 return sc->sc_size >> DEV_BSHIFT; in altmemsize()
196 dkw->dkw_size = sc->sc_size >> DEV_BSHIFT; in altmemioctl()
/netbsd/src/sys/arch/powerpc/booke/dev/
Dpq3cfi.c63 bus_size_t sc_size; member
141 sc->sc_size = 1 << qryp->device_size; in pq3cfi_attach()
149 error = bus_space_map(sc->sc_cfi.cfi_bst, sc->sc_addr, sc->sc_size, in pq3cfi_attach()
175 bus_space_unmap(sc->sc_cfi.cfi_bst, sc->sc_cfi.cfi_bsh, sc->sc_size); in pq3cfi_detach()
Dpq3ehci.c129 sc->sc.sc_size = cnl->cnl_size; in pq3ehci_attach()
174 if (sc->sc.sc_size) { in pq3ehci_attach()
175 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in pq3ehci_attach()
176 sc->sc.sc_size = 0; in pq3ehci_attach()
/netbsd/src/sys/dev/cardbus/
Dohci_cardbus.c123 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size)) { in ohci_cardbus_attach()
225 if (sc->sc.sc_size) { in ohci_cardbus_detach()
227 sc->sc.ioh, sc->sc.sc_size); in ohci_cardbus_detach()
228 sc->sc.sc_size = 0; in ohci_cardbus_detach()
Duhci_cardbus.c112 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size)) { in uhci_cardbus_attach()
190 if (sc->sc.sc_size) { in uhci_cardbus_detach()
192 sc->sc.ioh, sc->sc.sc_size); in uhci_cardbus_detach()
193 sc->sc.sc_size = 0; in uhci_cardbus_detach()
Dadv_cardbus.c80 bus_size_t sc_size; member
160 &iot, &ioh, NULL, &csc->sc_size) == 0) { in adv_cardbus_attach()
169 PCI_MAPREG_TYPE_IO, 0, &iot, &ioh, NULL, &csc->sc_size) == 0) { in adv_cardbus_attach()
250 sc->sc_iot, sc->sc_ioh, csc->sc_size); in adv_cardbus_detach()
Dahc_cardbus.c84 bus_size_t sc_size; member
132 &bst, &bsh, NULL, &csc->sc_size) == 0) { in ahc_cardbus_attach()
136 PCI_MAPREG_TYPE_IO, 0, &bst, &bsh, NULL, &csc->sc_size) == 0) { in ahc_cardbus_attach()
263 ahc->tag, ahc->bsh, csc->sc_size); in ahc_cardbus_detach()
Dehci_cardbus.c146 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size)) { in ehci_cardbus_attach()
224 if (sc->sc.sc_size) { in ehci_cardbus_detach()
226 sc->sc.ioh, sc->sc.sc_size); in ehci_cardbus_detach()
227 sc->sc.sc_size = 0; in ehci_cardbus_detach()
/netbsd/src/sys/arch/amiga/dev/
Dz3rambd.c96 sc->sc_size = zap->size; in z3rambd_attach()
107 if (bus_space_map(sc->sc_iot, 0, sc->sc_size, 0, in z3rambd_attach()
160 return sc->sc_size; in z3rambd_altmem_getsize()
/netbsd/src/sys/dev/acpi/
Dattimer_acpi.c128 sc->sc_size = io->ar_length; in attimer_acpi_attach()
129 if (bus_space_map(sc->sc_iot, io->ar_base, sc->sc_size, in attimer_acpi_attach()
Dpcppi_acpi.c102 sc->sc_size = io->ar_length; in pcppi_acpi_attach()
103 if (bus_space_map(sc->sc_iot, io->ar_base, sc->sc_size, in pcppi_acpi_attach()

12345