Home
last modified time | relevance | path

Searched refs:lsc (Results 1 – 25 of 54) sorted by relevance

123

/netbsd-src/sys/net/lagg/
H A Dif_lagg_lacp.c308 lacp_dprintf(const struct lacp_softc *lsc, const struct lacp_port *lacpp, in lacp_dprintf() argument
314 if (lsc != NULL && lsc->lsc_softc != NULL) { in lacp_dprintf()
315 sc = lsc->lsc_softc; in lacp_dprintf()
332 lacp_evcnt_attach(struct lacp_softc *lsc, in lacp_evcnt_attach() argument
337 lsc->lsc_evgroup, name); in lacp_evcnt_attach()
355 lacp_isactive(struct lacp_softc *lsc, struct lacp_port *lacpp) in lacp_isactive() argument
364 if (lacpp->lp_aggregator != lsc->lsc_aggregator) in lacp_isactive()
465 struct lacp_softc *lsc; in lacp_attach() local
471 lsc = kmem_zalloc(sizeof(*lsc), KM_NOSLEEP); in lacp_attach()
472 if (lsc == NULL) in lacp_attach()
[all …]
/netbsd-src/sys/arch/evbppc/virtex/dev/
H A Dtft_ll.c98 struct ll_tft_softc *lsc = device_private(self); in ll_tft_attach() local
99 struct tft_softc *sc = &lsc->lsc_sc; in ll_tft_attach()
104 lsc->lsc_dma_iot = tx->dmac_iot; in ll_tft_attach()
105 lsc->lsc_dmat = vaa->vaa_dmat; in ll_tft_attach()
116 if ((error = bus_space_map(lsc->lsc_dma_iot, tx->dmac_ctrl_addr, in ll_tft_attach()
117 CDMAC_CTRL_SIZE, 0, &lsc->lsc_dma_ioh)) != 0) { in ll_tft_attach()
126 if ((error = bus_dmamem_alloc(lsc->lsc_dmat, in ll_tft_attach()
128 &lsc->lsc_seg, 1, &nseg, 0)) != 0) { in ll_tft_attach()
132 if ((error = bus_dmamem_map(lsc->lsc_dmat, &lsc->lsc_seg, nseg, in ll_tft_attach()
134 (void **)&lsc->lsc_cd, BUS_DMA_COHERENT)) != 0) { in ll_tft_attach()
[all …]
/netbsd-src/sys/dev/isa/
H A Datppc_isa.c135 struct atppc_softc *lsc = &sc->sc_atppc; in atppc_isa_attach() local
140 lsc->sc_iot = ia->ia_iot; in atppc_isa_attach()
141 lsc->sc_dmat = ia->ia_dmat; in atppc_isa_attach()
142 lsc->sc_has = 0; in atppc_isa_attach()
146 if (bus_space_map(lsc->sc_iot, sc->sc_iobase, IO_LPTSIZE, 0, in atppc_isa_attach()
147 &lsc->sc_ioh) != 0) { in atppc_isa_attach()
150 lsc->sc_dev_ok = ATPPC_NOATTACH; in atppc_isa_attach()
154 lsc->sc_dev = self; in atppc_isa_attach()
155 lsc->sc_dev_ok = ATPPC_ATTACHED; in atppc_isa_attach()
167 lsc->sc_ieh = isa_intr_establish(sc->sc_ic, sc->sc_irq, in atppc_isa_attach()
[all …]
H A Dlpt_isa.c220 struct lpt_softc *lsc = &sc->sc_lpt; in lpt_isa_attach() local
225 lsc->sc_dev = self; in lpt_isa_attach()
239 iot = lsc->sc_iot = ia->ia_iot; in lpt_isa_attach()
244 lsc->sc_ioh = ioh; in lpt_isa_attach()
246 lpt_attach_subr(lsc); in lpt_isa_attach()
250 lsc->sc_ih = isa_intr_establish_xname(sc->sc_ic, sc->sc_irq, in lpt_isa_attach()
251 IST_EDGE, IPL_TTY, lptintr, lsc, device_xname(lsc->sc_dev)); in lpt_isa_attach()
259 struct lpt_softc *lsc = &sc->sc_lpt; in lpt_isa_detach() local
265 isa_intr_disestablish(sc->sc_ic, lsc->sc_ih); in lpt_isa_detach()
267 bus_space_unmap(lsc->sc_iot, lsc->sc_ioh, LPT_NPORTS); in lpt_isa_detach()
H A Datppc_isadma.c56 atppc_isadma_setup(struct atppc_softc * lsc, isa_chipset_tag_t ic, int drq) in atppc_isadma_setup() argument
63 device_xname(lsc->sc_dev))); in atppc_isadma_setup()
68 lsc->sc_dma_maxsize = isa_dmamaxsize(ic, drq); in atppc_isadma_setup()
71 error = isa_dmamap_create(ic, drq, lsc->sc_dma_maxsize, in atppc_isadma_setup()
H A Dif_le_isa.c279 struct lance_softc *sc = &lesc->sc_am7990.lsc; in le_ne2100_attach()
289 struct lance_softc *sc = &lesc->sc_am7990.lsc; in le_bicc_attach()
299 struct lance_softc *sc = &lesc->sc_am7990.lsc; in le_isa_attach()
/netbsd-src/sys/arch/mvme68k/dev/
H A Dif_le.c128 struct le_softc *lsc; in le_pcc_wrcsr() local
130 lsc = (struct le_softc *)sc; in le_pcc_wrcsr()
131 bus_space_write_2(lsc->sc_bust, lsc->sc_bush, LEPCC_RAP, port); in le_pcc_wrcsr()
132 bus_space_write_2(lsc->sc_bust, lsc->sc_bush, LEPCC_RDP, val); in le_pcc_wrcsr()
138 struct le_softc *lsc; in le_pcc_rdcsr() local
140 lsc = (struct le_softc *)sc; in le_pcc_rdcsr()
141 bus_space_write_2(lsc->sc_bust, lsc->sc_bush, LEPCC_RAP, port); in le_pcc_rdcsr()
142 return bus_space_read_2(lsc->sc_bust, lsc->sc_bush, LEPCC_RDP); in le_pcc_rdcsr()
162 struct le_softc *lsc; in le_pcc_attach() local
168 lsc = device_private(self); in le_pcc_attach()
[all …]
/netbsd-src/sys/dev/mca/
H A Dif_le_mca.c132 struct lance_softc *sc = &lesc->sc_am7990.lsc; in le_mca_attach()
320 struct le_mca_softc *lsc = (struct le_mca_softc *)sc; in le_mca_wrcsr() local
322 le_mca_set_RAP(lsc, port); in le_mca_wrcsr()
323 le_mca_wrreg(lsc, val, RDATA | REGWRITE); in le_mca_wrcsr()
329 struct le_mca_softc *lsc = (struct le_mca_softc *)sc; in le_mca_rdcsr() local
331 le_mca_set_RAP(lsc, port); in le_mca_rdcsr()
332 le_mca_wrreg(lsc, 0, RDATA | REGREAD); in le_mca_rdcsr()
334 return (bus_space_read_2(lsc->sc_memt, lsc->sc_memh, LE_LANCEREG)); in le_mca_rdcsr()
340 struct le_mca_softc *lsc = (struct le_mca_softc *)sc; in le_mca_hwreset() local
342 bus_space_write_1(lsc->sc_memt, lsc->sc_memh, LE_PORT, 0); in le_mca_hwreset()
[all …]
/netbsd-src/sys/net/agr/
H A Dieee8023ad_lacp.c364 struct lacp_softc *lsc = LACP_SOFTC(AGR_SC_FROM_PORT(port)); in lacp_disable_distributing() local
386 lacp_suppress_distributing(lsc, la); in lacp_disable_distributing()
391 if (lsc->lsc_active_aggregator == la) { in lacp_disable_distributing()
392 lacp_select_active_aggregator(lsc); in lacp_disable_distributing()
401 struct lacp_softc *lsc = LACP_SOFTC(AGR_SC_FROM_PORT(port)); in lacp_enable_distributing() local
421 lacp_suppress_distributing(lsc, la); in lacp_enable_distributing()
426 if (lsc->lsc_active_aggregator != la) { in lacp_enable_distributing()
427 lacp_select_active_aggregator(lsc); in lacp_enable_distributing()
435 struct lacp_softc *lsc = LACP_SOFTC(sc); in lacp_transit_expire() local
439 lsc->lsc_suppress_distributing = false; in lacp_transit_expire()
[all …]
H A Dieee8023ad_lacp_select.c67 lacp_aggregator_addref(struct lacp_softc *lsc, struct lacp_aggregator *la) in lacp_aggregator_addref() argument
85 lacp_aggregator_delref(struct lacp_softc *lsc, struct lacp_aggregator *la) in lacp_aggregator_delref() argument
104 KASSERT(lsc->lsc_active_aggregator != la); in lacp_aggregator_delref()
106 TAILQ_REMOVE(&lsc->lsc_aggregators, la, la_q); in lacp_aggregator_delref()
116 lacp_aggregator_get(struct lacp_softc *lsc, struct lacp_port *lp) in lacp_aggregator_get() argument
126 TAILQ_INSERT_TAIL(&lsc->lsc_aggregators, la, la_q); in lacp_aggregator_get()
209 struct lacp_softc *lsc = LACP_SOFTC(AGR_SC_FROM_PORT(lp->lp_agrport)); in lacp_select() local
225 TAILQ_FOREACH(la, &lsc->lsc_aggregators, la_q) { in lacp_select()
232 la = lacp_aggregator_get(lsc, lp); in lacp_select()
246 lacp_aggregator_addref(lsc, la); in lacp_select()
[all …]
/netbsd-src/sys/arch/vax/if/
H A Dif_le_vsbus.c200 sc->sc_am7990.lsc.sc_dev = self; in le_vsbus_attach()
207 sc->sc_am7990.lsc.sc_rdcsr = lerdcsr; in le_vsbus_attach()
208 sc->sc_am7990.lsc.sc_wrcsr = lewrcsr; in le_vsbus_attach()
209 sc->sc_am7990.lsc.sc_nocarrier = NULL; in le_vsbus_attach()
228 (void **)&sc->sc_am7990.lsc.sc_mem, in le_vsbus_attach()
240 err = bus_dmamap_load(va->va_dmat, sc->sc_dm, sc->sc_am7990.lsc.sc_mem, in le_vsbus_attach()
248 sc->sc_am7990.lsc.sc_addr = sc->sc_dm->dm_segs->ds_addr & 0xffffff; in le_vsbus_attach()
249 sc->sc_am7990.lsc.sc_memsize = sc->sc_dm->dm_segs->ds_len; in le_vsbus_attach()
251 sc->sc_am7990.lsc.sc_copytodesc = lance_copytobuf_contig; in le_vsbus_attach()
252 sc->sc_am7990.lsc.sc_copyfromdesc = lance_copyfrombuf_contig; in le_vsbus_attach()
[all …]
H A Dif_le.c166 sc->sc_am7990.lsc.sc_dev = self; in le_mainbus_attach()
192 sc->sc_am7990.lsc.sc_rdcsr = lerdcsr; in le_mainbus_attach()
193 sc->sc_am7990.lsc.sc_wrcsr = lewrcsr; in le_mainbus_attach()
194 sc->sc_am7990.lsc.sc_nocarrier = NULL; in le_mainbus_attach()
196 sc->sc_am7990.lsc.sc_mem = in le_mainbus_attach()
198 if (sc->sc_am7990.lsc.sc_mem == 0) in le_mainbus_attach()
201 ioaccess((vaddr_t)sc->sc_am7990.lsc.sc_mem, LE_RAM, in le_mainbus_attach()
205 sc->sc_am7990.lsc.sc_addr = 0; in le_mainbus_attach()
206 sc->sc_am7990.lsc.sc_memsize = (64 * 1024); in le_mainbus_attach()
208 sc->sc_am7990.lsc.sc_copytodesc = lance_copytobuf_gap2; in le_mainbus_attach()
[all …]
/netbsd-src/sys/dev/dec/
H A Dif_le_dec.c131 sc->lsc.sc_rdcsr = le_dec_rdcsr; in dec_le_common_attach()
132 sc->lsc.sc_wrcsr = le_dec_wrcsr; in dec_le_common_attach()
133 sc->lsc.sc_hwinit = NULL; in dec_le_common_attach()
135 sc->lsc.sc_conf3 = 0; in dec_le_common_attach()
136 sc->lsc.sc_addr = 0; in dec_le_common_attach()
137 sc->lsc.sc_memsize = 65536; in dec_le_common_attach()
142 for (i = 0; i < sizeof(sc->lsc.sc_enaddr); i++) { in dec_le_common_attach()
143 sc->lsc.sc_enaddr[i] = *eap; in dec_le_common_attach()
/netbsd-src/sys/arch/sgimips/hpc/
H A Dpi1ppc.c201 pi1ppc_sc_attach(struct pi1ppc_softc *lsc) in pi1ppc_sc_attach() argument
210 lsc->sc_type = PI1PPC_TYPE_INDY; in pi1ppc_sc_attach()
211 lsc->sc_model = GENERIC; in pi1ppc_sc_attach()
214 lsc->sc_has = PI1PPC_HAS_PS2; in pi1ppc_sc_attach()
216 mutex_init(&lsc->sc_lock, MUTEX_DEFAULT, IPL_TTY); in pi1ppc_sc_attach()
217 cv_init(&lsc->sc_in_cv, "pi1ppcin"); in pi1ppc_sc_attach()
218 cv_init(&lsc->sc_out_cv, "pi1ppcou"); in pi1ppc_sc_attach()
222 lsc->sc_has); in pi1ppc_sc_attach()
223 printf("\n%s: capabilities=%s\n", device_xname(lsc->sc_dev), buf); in pi1ppc_sc_attach()
226 lsc->sc_outb = lsc->sc_outbstart = lsc->sc_inb = lsc->sc_inbstart in pi1ppc_sc_attach()
[all …]
/netbsd-src/sys/dev/ic/
H A Datppc.c145 atppc_sc_attach(struct atppc_softc *lsc) in atppc_sc_attach() argument
151 mutex_init(&lsc->sc_lock, MUTEX_DEFAULT, IPL_TTY); in atppc_sc_attach()
152 cv_init(&lsc->sc_out_cv, "atppcout"); in atppc_sc_attach()
153 cv_init(&lsc->sc_in_cv, "atppcin"); in atppc_sc_attach()
156 if (atppc_detect_chipset(lsc) != 0) { in atppc_sc_attach()
157 if (atppc_detect_generic(lsc) != 0) { in atppc_sc_attach()
159 device_xname(lsc->sc_dev))); in atppc_sc_attach()
164 if (atppc_detect_fifo(lsc) == 0) { in atppc_sc_attach()
166 device_xname(lsc->sc_dev), lsc->sc_fifo, lsc->sc_wthr, in atppc_sc_attach()
167 lsc->sc_rthr); in atppc_sc_attach()
[all …]
H A Dam79900.c148 sc->lsc.sc_meminit = am79900_meminit; in am79900_config()
149 sc->lsc.sc_start = am79900_start; in am79900_config()
151 lance_config(&sc->lsc); in am79900_config()
152 if_deferred_start_init(&sc->lsc.sc_ethercom.ec_if, NULL); in am79900_config()
155 sc->lsc.sc_initaddr = mem; in am79900_config()
157 sc->lsc.sc_rmdaddr = mem; in am79900_config()
158 mem += sizeof(struct lermd) * sc->lsc.sc_nrbuf; in am79900_config()
159 sc->lsc.sc_tmdaddr = mem; in am79900_config()
160 mem += sizeof(struct letmd) * sc->lsc.sc_ntbuf; in am79900_config()
161 for (i = 0; i < sc->lsc.sc_nrbuf; i++, mem += LEBLEN) in am79900_config()
[all …]
H A Dam7990.c110 sc->lsc.sc_meminit = am7990_meminit; in am7990_config()
111 sc->lsc.sc_start = am7990_start; in am7990_config()
113 lance_config(&sc->lsc); in am7990_config()
114 if_deferred_start_init(&sc->lsc.sc_ethercom.ec_if, NULL); in am7990_config()
117 sc->lsc.sc_initaddr = mem; in am7990_config()
119 sc->lsc.sc_rmdaddr = mem; in am7990_config()
120 mem += sizeof(struct lermd) * sc->lsc.sc_nrbuf; in am7990_config()
121 sc->lsc.sc_tmdaddr = mem; in am7990_config()
122 mem += sizeof(struct letmd) * sc->lsc.sc_ntbuf; in am7990_config()
123 for (i = 0; i < sc->lsc.sc_nrbuf; i++, mem += LEBLEN) in am7990_config()
[all …]
H A Dam79900var.h46 struct lance_softc lsc; member
/netbsd-src/sys/arch/amiga/dev/
H A Dlpt_supio.c97 struct lpt_softc *lsc = &sc->sc_lpt; in lpt_supio_attach() local
105 lsc->sc_dev = self; in lpt_supio_attach()
107 iot = lsc->sc_iot = supa->supio_iot; in lpt_supio_attach()
111 if (bus_space_map(iot, iobase, LPT_NPORTS, 0, &lsc->sc_ioh)) { in lpt_supio_attach()
116 lpt_attach_subr(lsc); in lpt_supio_attach()
/netbsd-src/sys/dev/sbus/
H A Desp_sbus.c155 struct lsi64854_softc *lsc; in espattach_sbus() local
195 lsc = malloc(sizeof(struct lsi64854_softc), M_DEVBUF, M_WAITOK); in espattach_sbus()
196 lsc->sc_dev = malloc(sizeof(struct device), M_DEVBUF, in espattach_sbus()
198 esc->sc_dma = lsc; in espattach_sbus()
200 lsc->sc_bustag = sa->sa_bustag; in espattach_sbus()
201 lsc->sc_dmatag = sa->sa_dmatag; in espattach_sbus()
203 strlcpy(lsc->sc_dev->dv_xname, device_xname(sc->sc_dev), in espattach_sbus()
204 sizeof(lsc->sc_dev->dv_xname)); in espattach_sbus()
209 sa->sa_promvaddrs[0], &lsc->sc_regs); in espattach_sbus()
215 0, &lsc->sc_regs) != 0) { in espattach_sbus()
[all …]
/netbsd-src/sys/arch/i386/pnpbios/
H A Datppc_pnpbios.c143 atppc_pnpbios_dma_start(struct atppc_softc *lsc, void *buf, u_int nbytes, in atppc_pnpbios_dma_start() argument
146 struct atppc_pnpbios_softc * sc = (struct atppc_pnpbios_softc *) lsc; in atppc_pnpbios_dma_start()
153 atppc_pnpbios_dma_finish(struct atppc_softc * lsc) in atppc_pnpbios_dma_finish() argument
155 struct atppc_pnpbios_softc * sc = (struct atppc_pnpbios_softc *) lsc; in atppc_pnpbios_dma_finish()
162 atppc_pnpbios_dma_abort(struct atppc_softc * lsc) in atppc_pnpbios_dma_abort() argument
164 struct atppc_pnpbios_softc * sc = (struct atppc_pnpbios_softc *) lsc; in atppc_pnpbios_dma_abort()
/netbsd-src/sys/dev/isapnp/
H A Datppc_isapnp.c141 atppc_isapnp_dma_start(struct atppc_softc *lsc, void *buf, u_int nbytes, in atppc_isapnp_dma_start() argument
144 struct atppc_isapnp_softc * sc = (struct atppc_isapnp_softc *) lsc; in atppc_isapnp_dma_start()
151 atppc_isapnp_dma_finish(struct atppc_softc * lsc) in atppc_isapnp_dma_finish() argument
153 struct atppc_isapnp_softc * sc = (struct atppc_isapnp_softc *) lsc; in atppc_isapnp_dma_finish()
160 atppc_isapnp_dma_abort(struct atppc_softc * lsc) in atppc_isapnp_dma_abort() argument
162 struct atppc_isapnp_softc * sc = (struct atppc_isapnp_softc *) lsc; in atppc_isapnp_dma_abort()
/netbsd-src/sys/dev/acpi/
H A Datppc_acpi.c169 atppc_acpi_dma_start(struct atppc_softc *lsc, void *buf, u_int nbytes, in atppc_acpi_dma_start() argument
172 struct atppc_acpi_softc * sc = (struct atppc_acpi_softc *) lsc; in atppc_acpi_dma_start()
179 atppc_acpi_dma_finish(struct atppc_softc * lsc) in atppc_acpi_dma_finish() argument
181 struct atppc_acpi_softc * sc = (struct atppc_acpi_softc *) lsc; in atppc_acpi_dma_finish()
188 atppc_acpi_dma_abort(struct atppc_softc * lsc) in atppc_acpi_dma_abort() argument
190 struct atppc_acpi_softc * sc = (struct atppc_acpi_softc *) lsc; in atppc_acpi_dma_abort()
/netbsd-src/sys/dev/ofisa/
H A Datppc_ofisa.c176 atppc_ofisa_dma_start(struct atppc_softc *lsc, void *buf, u_int nbytes, in atppc_ofisa_dma_start() argument
179 struct atppc_ofisa_softc * sc = (struct atppc_ofisa_softc *) lsc; in atppc_ofisa_dma_start()
186 atppc_ofisa_dma_finish(struct atppc_softc * lsc) in atppc_ofisa_dma_finish() argument
188 struct atppc_ofisa_softc * sc = (struct atppc_ofisa_softc *) lsc; in atppc_ofisa_dma_finish()
195 atppc_ofisa_dma_abort(struct atppc_softc * lsc) in atppc_ofisa_dma_abort() argument
197 struct atppc_ofisa_softc * sc = (struct atppc_ofisa_softc *) lsc; in atppc_ofisa_dma_abort()
/netbsd-src/sys/dev/dkwedge/
H A Ddk.c423 struct dkwedge_softc *sc, *lsc; in dkwedge_add() local
449 LIST_FOREACH(lsc, &pdk->dk_wedges, sc_plink) { in dkwedge_add()
450 if (lsc->sc_offset != dkw->dkw_offset) in dkwedge_add()
452 if (strcmp(lsc->sc_wname, dkw->dkw_wname) != 0) in dkwedge_add()
454 if (strcmp(lsc->sc_ptype, dkw->dkw_ptype) != 0) in dkwedge_add()
456 if (dkwedge_size(lsc) > dkw->dkw_size) in dkwedge_add()
458 if (lsc->sc_dev == NULL) in dkwedge_add()
461 sc = lsc; in dkwedge_add()
502 LIST_FOREACH(lsc, &pdk->dk_wedges, sc_plink) { in dkwedge_add()
505 uint64_t lsize = dkwedge_size(lsc); in dkwedge_add()
[all …]

123