Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 25 of 882) sorted by relevance

12345678910>>...36

/third_party/lwip/src/netif/ppp/
Dpppoe.c145 static err_t pppoe_xmit(struct pppoe_softc *sc, struct pbuf *pb);
177 struct pppoe_softc *sc; in pppoe_create() local
184 sc = (struct pppoe_softc *)LWIP_MEMPOOL_ALLOC(PPPOE_IF); in pppoe_create()
185 if (sc == NULL) { in pppoe_create()
189 ppp = ppp_new(pppif, &pppoe_callbacks, sc, link_status_cb, ctx_cb); in pppoe_create()
191 LWIP_MEMPOOL_FREE(PPPOE_IF, sc); in pppoe_create()
195 memset(sc, 0, sizeof(struct pppoe_softc)); in pppoe_create()
196 sc->pcb = ppp; in pppoe_create()
197 sc->sc_ethif = ethif; in pppoe_create()
199 sc->sc_service_name = service_name; in pppoe_create()
[all …]
/third_party/FreeBSD/sys/dev/usb/serial/
Dusb_serial.c75 extern int ucom_modem(struct ucom_softc *sc, int sigon, int sigoff);
124 static void ucom_close(struct ucom_softc *sc);
173 ucom_attach(struct ucom_super_softc *ssc, struct ucom_softc *sc, in ucom_attach() argument
182 if ((sc == NULL) || in ucom_attach()
215 sc[subunit].sc_subunit = subunit; in ucom_attach()
216 sc[subunit].sc_super = ssc; in ucom_attach()
217 sc[subunit].sc_mtx = umtx; in ucom_attach()
218 sc[subunit].sc_parent = parent; in ucom_attach()
219 sc[subunit].sc_callback = callback; in ucom_attach()
221 error = ucom_attach_tty(ssc, &sc[subunit]); in ucom_attach()
[all …]
/third_party/FreeBSD/sys/dev/usb/storage/
Dumass.c124 #define DPRINTF_UMASS(sc, m, fmt, ...) \ argument
128 (sc) ? (const char *)(sc)->sc_name : \
322 typedef void (umass_callback_t)(struct umass_softc *sc, union ccb *ccb,
330 typedef uint8_t (umass_transform_t)(struct umass_softc *sc, uint8_t *cmd_ptr,
463 struct umass_softc *sc; member
472 static void umass_dev_delete(struct umass_softc *sc, unsigned int dev_unit);
538 static int32_t umass_attach_dev(struct umass_softc *sc, unsigned int dev_unit);
539 static void umass_detach_dev_sub(struct umass_softc *sc, int dev_unit, int flag);
917 struct umass_softc *sc = in umass_attach() local
931 sc->sc_dev = dev; in umass_attach()
[all …]
/third_party/FreeBSD/sys/dev/usb/net/
Dif_axe.c139 static int axe_miibus_writereg(struct axe_softc *sc, int reg, int val);
140 static uint16_t axe_miibus_readreg(struct axe_softc *sc, int reg);
222 axe_cmd(struct axe_softc *sc, int cmd, int index, int val, void *buf) in axe_cmd() argument
227 AXE_LOCK_ASSERT(sc, MA_OWNED); in axe_cmd()
237 err = uether_do_request(&sc->sc_ue, &req, buf, 10000); in axe_cmd()
244 axe_miibus_readreg(struct axe_softc *sc, int reg) in axe_miibus_readreg() argument
248 axe_cmd(sc, AXE_CMD_MII_OPMODE_SW, 0, 0, NULL); in axe_miibus_readreg()
249 axe_cmd(sc, AXE_CMD_MII_READ_REG, reg, 0x10, &val); in axe_miibus_readreg()
250 axe_cmd(sc, AXE_CMD_MII_OPMODE_HW, 0, 0, NULL); in axe_miibus_readreg()
253 if (AXE_IS_772(sc) && reg == MII_BMSR) { in axe_miibus_readreg()
[all …]
Dif_cdce.c256 cdce_ncm_init(struct cdce_softc *sc) in cdce_ncm_init() argument
266 ufd = usbd_find_descriptor(sc->sc_ue.ue_udev, NULL, in cdce_ncm_init()
267 sc->sc_ifaces_index[1], UDESC_CS_INTERFACE, 0xFF, in cdce_ncm_init()
281 req.wIndex[0] = sc->sc_ifaces_index[1]; in cdce_ncm_init()
285 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req, in cdce_ncm_init()
294 if (usbd_get_mode(sc->sc_ue.ue_udev) == USB_MODE_HOST) { in cdce_ncm_init()
295 sc->sc_ncm.rx_max = UGETDW(temp.dwNtbInMaxSize); in cdce_ncm_init()
296 sc->sc_ncm.tx_max = UGETDW(temp.dwNtbOutMaxSize); in cdce_ncm_init()
297 sc->sc_ncm.tx_remainder = UGETW(temp.wNdpOutPayloadRemainder); in cdce_ncm_init()
298 sc->sc_ncm.tx_modulus = UGETW(temp.wNdpOutDivisor); in cdce_ncm_init()
[all …]
Dif_axge.c46 static void axge_miibus_statchg(struct axge_softc *sc, uint8_t link_status);
149 axge_write_mem(struct axge_softc *sc, uint8_t cmd, uint16_t index, in axge_write_mem() argument
160 if (uether_do_request(&sc->sc_ue, &req, buf, 1000)) { in axge_write_mem()
166 axge_write_cmd_1(struct axge_softc *sc, uint8_t cmd, uint16_t reg, uint8_t val) in axge_write_cmd_1() argument
168 axge_write_mem(sc, cmd, 1, reg, &val, 1); in axge_write_cmd_1()
172 axge_write_cmd_2(struct axge_softc *sc, uint8_t cmd, uint16_t index, in axge_write_cmd_2() argument
178 axge_write_mem(sc, cmd, index, reg, &temp, 2); in axge_write_cmd_2()
183 axge_read_mem(struct axge_softc *sc, uint8_t cmd, uint16_t index, in axge_read_mem() argument
188 AXGE_LOCK_ASSERT(sc, MA_OWNED); in axge_read_mem()
196 return (uether_do_request(&sc->sc_ue, &req, buf, 1000)); in axge_read_mem()
[all …]
/third_party/FreeBSD/sys/dev/usb/input/
Duhid.c141 struct uhid_softc *sc = usbd_xfer_softc(xfer); in uhid_intr_write_callback() local
150 if (usb_fifo_get_data(sc->sc_fifo.fp[USB_FIFO_TX], pc, in uhid_intr_write_callback()
197 struct uhid_softc *sc = usbd_xfer_softc(xfer); in uhid_intr_read_callback() local
208 if (sc->input_dev && sc->input_dev->devType == INDEV_TYPE_MOUSE) { in uhid_intr_read_callback()
209 mouse_report_events(sc->input_dev, pc->buffer, actlen); in uhid_intr_read_callback()
213 usbd_xfer_set_frame_len(xfer, 0, sc->sc_isize); in uhid_intr_read_callback()
220 usbd_xfer_set_frame_len(xfer, 0, sc->sc_isize); in uhid_intr_read_callback()
254 struct uhid_softc *sc = usbd_xfer_softc(xfer); in uhid_write_callback() local
257 uint32_t size = sc->sc_osize; in uhid_write_callback()
265 if (sc->sc_oid) { in uhid_write_callback()
[all …]
/third_party/FreeBSD/sys/dev/usb/controller/
Dehci_pci.c60 hiehci_post_reset(struct ehci_softc *sc) in hiehci_post_reset() argument
65 usb_mode = EOREAD4(sc, EHCI_USBMODE_NOLPM); in hiehci_post_reset()
68 EOWRITE4(sc, EHCI_USBMODE_NOLPM, usb_mode); in hiehci_post_reset()
94 ehci_softc_t *sc = device_get_softc(self); in ehci_pci_attach() local
98 sc->sc_bus.parent = self; in ehci_pci_attach()
99 sc->sc_bus.devices = sc->sc_devices; in ehci_pci_attach()
100 sc->sc_bus.devices_max = EHCI_MAX_DEVICES; in ehci_pci_attach()
101 sc->sc_bus.dma_bits = 32; in ehci_pci_attach()
102 sc->sc_bus.dma_parent_tag[0].dma_bits = 32; in ehci_pci_attach()
105 if (usb_bus_mem_alloc_all(&sc->sc_bus, in ehci_pci_attach()
[all …]
Dehci.c61 static void ehci_dump_regs(ehci_softc_t *sc);
62 static void ehci_dump_sqh(ehci_softc_t *sc, ehci_qh_t *sqh);
90 static void ehci_root_intr(ehci_softc_t *sc);
93 ehci_softc_t *sc; member
112 ehci_softc_t *sc = EHCI_BUS2SC(bus); in ehci_iterate_hw_softc() local
115 cb(bus, &sc->sc_hw.pframes_pc, &sc->sc_hw.pframes_pg, in ehci_iterate_hw_softc()
118 cb(bus, &sc->sc_hw.terminate_pc, &sc->sc_hw.terminate_pg, in ehci_iterate_hw_softc()
121 cb(bus, &sc->sc_hw.async_start_pc, &sc->sc_hw.async_start_pg, in ehci_iterate_hw_softc()
125 cb(bus, sc->sc_hw.intr_start_pc + i, in ehci_iterate_hw_softc()
126 sc->sc_hw.intr_start_pg + i, in ehci_iterate_hw_softc()
[all …]
Dxhci_pci.c90 struct xhci_softc *sc = device_get_softc(self);; in xhci_pci_attach() local
102 sc->sc_io_res = ioremap(res->start, res->count); in xhci_pci_attach()
103 if (!sc->sc_io_res) { in xhci_pci_attach()
106 sc->sc_io_tag = (void *)sc->sc_io_res; in xhci_pci_attach()
107 sc->sc_io_hdl = (uintptr_t)sc->sc_io_res; in xhci_pci_attach()
108 sc->sc_io_size = res->count; in xhci_pci_attach()
116 sc->sc_irq_res = res; in xhci_pci_attach()
117 err = bus_setup_intr(res->start, 0, (driver_intr_t *)xhci_interrupt, sc); in xhci_pci_attach()
124 if (xhci_init(sc, self, usedma32)) { in xhci_pci_attach()
128 callout_init_mtx(&sc->sc_callout, &sc->sc_bus.bus_mtx, 0); in xhci_pci_attach()
[all …]
Dxhci.c80 struct xhci_softc *sc; member
118 static void xhci_ctx_set_le32(struct xhci_softc *sc, volatile uint32_t *ptr, uint32_t val);
119 static uint32_t xhci_ctx_get_le32(struct xhci_softc *sc, volatile uint32_t *ptr);
120 static void xhci_ctx_set_le64(struct xhci_softc *sc, volatile uint64_t *ptr, uint64_t val);
122 static uint64_t xhci_ctx_get_le64(struct xhci_softc *sc, volatile uint64_t *ptr);
138 xhci_dump_endpoint(struct xhci_softc *sc, struct xhci_endp_ctx *pep) in xhci_dump_endpoint() argument
141 DPRINTFN(5, "dwEpCtx0=0x%08x\n", xhci_ctx_get_le32(sc, &pep->dwEpCtx0)); in xhci_dump_endpoint()
142 DPRINTFN(5, "dwEpCtx1=0x%08x\n", xhci_ctx_get_le32(sc, &pep->dwEpCtx1)); in xhci_dump_endpoint()
143 DPRINTFN(5, "qwEpCtx2=0x%016llx\n", (long long)xhci_ctx_get_le64(sc, &pep->qwEpCtx2)); in xhci_dump_endpoint()
144 DPRINTFN(5, "dwEpCtx4=0x%08x\n", xhci_ctx_get_le32(sc, &pep->dwEpCtx4)); in xhci_dump_endpoint()
[all …]
Dehci.h363 void (*sc_vendor_post_reset)(struct ehci_softc *sc);
364 uint16_t (*sc_vendor_get_port_speed)(struct ehci_softc *sc, uint16_t index);
367 #define EREAD1(sc, a) bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (a)) argument
368 #define EREAD2(sc, a) bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (a)) argument
369 #define EREAD4(sc, a) bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (a)) argument
370 #define EWRITE1(sc, a, x) \ argument
371 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
372 #define EWRITE2(sc, a, x) \ argument
373 bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
374 #define EWRITE4(sc, a, x) \ argument
[all …]
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_cache.c39 static inline struct cso_hash *_cso_hash_for_type(struct cso_cache *sc, enum cso_cache_type type) in _cso_hash_for_type() argument
41 return &sc->hashes[type]; in _cso_hash_for_type()
73 static inline void sanitize_hash(struct cso_cache *sc, in sanitize_hash() argument
78 if (sc->sanitize_cb) in sanitize_hash()
79 sc->sanitize_cb(hash, type, max_size, sc->sanitize_data); in sanitize_hash()
106 cso_insert_state(struct cso_cache *sc, in cso_insert_state() argument
110 struct cso_hash *hash = _cso_hash_for_type(sc, type); in cso_insert_state()
111 sanitize_hash(sc, hash, type, sc->max_size); in cso_insert_state()
117 cso_find_state(struct cso_cache *sc, in cso_find_state() argument
120 struct cso_hash *hash = _cso_hash_for_type(sc, type); in cso_find_state()
[all …]
/third_party/libuv/test/
Dtest-signal.c157 struct signal_ctx sc; in TEST_IMPL() local
163 start_watcher(loop, SIGCHLD, &sc, 0); in TEST_IMPL()
164 sc.stop_or_close = STOP; /* stop, don't close the signal handle */ in TEST_IMPL()
167 ASSERT(sc.ncalls == NSIGNALS); in TEST_IMPL()
172 ASSERT(sc.ncalls == NSIGNALS); in TEST_IMPL()
174 sc.ncalls = 0; in TEST_IMPL()
175 sc.stop_or_close = CLOSE; /* now close it when it's done */ in TEST_IMPL()
176 uv_signal_start(&sc.handle, signal_cb, SIGCHLD); in TEST_IMPL()
181 ASSERT(sc.ncalls == NSIGNALS); in TEST_IMPL()
189 struct signal_ctx sc[4]; in TEST_IMPL() local
[all …]
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/
Dstress.c177 for (sc = 0; sc < NSCENAR; sc++) in main()
178 ids[sc] = sc; in main()
205 for (sc = 0; sc < NSCENAR; sc++) { in main()
207 status[sc] = in main()
208 pthread_create(&creation[sc], &scenarii[sc].ta, in main()
209 threaded, &ids[sc]); in main()
212 switch (scenarii[sc].result) { in main()
214 if (status[sc] != 0) { in main()
221 if (status[sc] == 0) { in main()
238 for (sc = 0; sc < NSCENAR; sc++) { in main()
[all …]
/third_party/typescript/tests/baselines/reference/
Dinheritance1.types47 var sc: SelectableControl;
48 >sc : SelectableControl
56 sc = b;
57 >sc = b : Button
58 >sc : SelectableControl
66 b = sc;
67 >b = sc : SelectableControl
69 >sc : SelectableControl
79 sc = t;
80 >sc = t : TextBox
[all …]
Dinheritance1.js25 var sc: SelectableControl; variable
29 sc = b;
31 b = sc;
35 sc = t;
37 t = sc;
41 sc = i;
43 i = sc;
47 sc = i1;
49 i1 = sc;
53 sc = l;
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/text/
DSpoofCheckerTest.java75 SpoofChecker sc = new SpoofChecker.Builder().build(); in TestUSpoof() local
76 if (sc == null) { in TestUSpoof()
163 SpoofChecker sc = new SpoofChecker.Builder().setChecks(SpoofChecker.ALL_CHECKS).build(); in TestGetSetChecks1() local
165 t = sc.getChecks(); in TestGetSetChecks1()
168 sc = new SpoofChecker.Builder().setChecks(0).build(); in TestGetSetChecks1()
169 t = sc.getChecks(); in TestGetSetChecks1()
174 sc = new SpoofChecker.Builder().setChecks(checks).build(); in TestGetSetChecks1()
175 t = sc.getChecks(); in TestGetSetChecks1()
184 SpoofChecker sc = new SpoofChecker.Builder().setChecks(SpoofChecker.CHAR_LIMIT).build(); in TestGetSetAllowedChars() local
188 uset = sc.getAllowedChars(); in TestGetSetAllowedChars()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/text/
DSpoofCheckerTest.java78 SpoofChecker sc = new SpoofChecker.Builder().build(); in TestUSpoof() local
79 if (sc == null) { in TestUSpoof()
166 SpoofChecker sc = new SpoofChecker.Builder().setChecks(SpoofChecker.ALL_CHECKS).build(); in TestGetSetChecks1() local
168 t = sc.getChecks(); in TestGetSetChecks1()
171 sc = new SpoofChecker.Builder().setChecks(0).build(); in TestGetSetChecks1()
172 t = sc.getChecks(); in TestGetSetChecks1()
177 sc = new SpoofChecker.Builder().setChecks(checks).build(); in TestGetSetChecks1()
178 t = sc.getChecks(); in TestGetSetChecks1()
187 SpoofChecker sc = new SpoofChecker.Builder().setChecks(SpoofChecker.CHAR_LIMIT).build(); in TestGetSetAllowedChars() local
191 uset = sc.getAllowedChars(); in TestGetSetAllowedChars()
[all …]
/third_party/ffmpeg/libavformat/
Dmov.c185 MOVStreamContext *sc; in mov_read_covr() local
202 sc = av_mallocz(sizeof(*sc)); in mov_read_covr()
203 if (!sc) in mov_read_covr()
205 st->priv_data = sc; in mov_read_covr()
580 MOVStreamContext *sc; in mov_read_dref() local
586 sc = st->priv_data; in mov_read_dref()
592 entries >= UINT_MAX / sizeof(*sc->drefs)) in mov_read_dref()
595 for (i = 0; i < sc->drefs_count; i++) { in mov_read_dref()
596 MOVDref *dref = &sc->drefs[i]; in mov_read_dref()
600 av_free(sc->drefs); in mov_read_dref()
[all …]
Dgxfenc.c123 GXFStreamContext *sc = st->priv_data; in gxf_find_lines_index() local
128 sc->lines_index = gxf_lines_tab[i].index; in gxf_find_lines_index()
183 GXFStreamContext *sc = st->priv_data; in gxf_write_mpeg_auxiliary() local
187 if (sc->iframes) { in gxf_write_mpeg_auxiliary()
188 sc->p_per_gop = sc->pframes / sc->iframes; in gxf_write_mpeg_auxiliary()
189 if (sc->pframes % sc->iframes) in gxf_write_mpeg_auxiliary()
190 sc->p_per_gop++; in gxf_write_mpeg_auxiliary()
191 if (sc->pframes) { in gxf_write_mpeg_auxiliary()
192 sc->b_per_i_or_p = sc->bframes / sc->pframes; in gxf_write_mpeg_auxiliary()
193 if (sc->bframes % sc->pframes) in gxf_write_mpeg_auxiliary()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/
Dstress.c128 pthread_cleanup_push(cleanup, &scenarii[sc].sem); in threaded()
171 for (sc = 0; sc < NSCENAR; sc++) { in main()
173 if (scenarii[sc].altstack != 0) in main()
176 rets[i * NSCENAR + sc] = in main()
177 pthread_create(&threads[i * NSCENAR + sc], in main()
178 &scenarii[sc].ta, threaded, in main()
179 &threads[i * NSCENAR + sc]); in main()
180 switch (scenarii[sc].result) { in main()
182 if (rets[i * NSCENAR + sc] != 0) { in main()
184 [i * NSCENAR + sc], in main()
[all …]
/third_party/libunwind/src/aarch64/
DGresume.c99 struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr; in aarch64_local_resume() local
101 if (c->dwarf.eh_valid_mask & 0x1) sc->regs[0] = c->dwarf.eh_args[0]; in aarch64_local_resume()
102 if (c->dwarf.eh_valid_mask & 0x2) sc->regs[1] = c->dwarf.eh_args[1]; in aarch64_local_resume()
103 if (c->dwarf.eh_valid_mask & 0x4) sc->regs[2] = c->dwarf.eh_args[2]; in aarch64_local_resume()
104 if (c->dwarf.eh_valid_mask & 0x8) sc->regs[3] = c->dwarf.eh_args[3]; in aarch64_local_resume()
106 sc->regs[4] = uc->uc_mcontext.regs[4]; in aarch64_local_resume()
107 sc->regs[5] = uc->uc_mcontext.regs[5]; in aarch64_local_resume()
108 sc->regs[6] = uc->uc_mcontext.regs[6]; in aarch64_local_resume()
109 sc->regs[7] = uc->uc_mcontext.regs[7]; in aarch64_local_resume()
110 sc->regs[8] = uc->uc_mcontext.regs[8]; in aarch64_local_resume()
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_signature.c94 StreamContext *sc = &(sic->streamcontexts[FF_INLINK_IDX(inlink)]); in config_input() local
96 sc->time_base = inlink->time_base; in config_input()
98sc->divide = (((uint64_t) inlink->w/32) * (inlink->w/32 + 1) * (inlink->h/32 * inlink->h/32 + 1) >… in config_input()
99 if (sc->divide) { in config_input()
102 sc->w = inlink->w; in config_input()
103 sc->h = inlink->h; in config_input()
112 static uint64_t get_block_sum(StreamContext *sc, uint64_t intpic[32][32], const Block *b) in get_block_sum() argument
154 StreamContext *sc = &(sic->streamcontexts[FF_INLINK_IDX(inlink)]); in filter_frame() local
181 int64_t precfactor = (sc->divide) ? 65536 : BLOCK_LCM; in filter_frame()
184 if (sc->curfinesig) { in filter_frame()
[all …]
/third_party/NuttX/drivers/usbdev/gadget/
Df_mass_storage_ram.c74 struct ram_storage_sc *sc = ram_inode->i_private; in ram_read() local
75 uint32_t sector_size = sc->sector_size; in ram_read()
76 uint8_t *start_addr = sc->start_addr; in ram_read()
78 if (start_sector + nsectors > sc->len / sector_size) in ram_read()
98 struct ram_storage_sc *sc = ram_inode->i_private; in ram_write() local
99 uint32_t sector_size = sc->sector_size; in ram_write()
100 uint8_t *start_addr = sc->start_addr; in ram_write()
102 if (start_sector + nsectors > sc->len / sector_size) in ram_write()
120 struct ram_storage_sc *sc; in ram_geometry() local
127 sc = ram_inode->i_private; in ram_geometry()
[all …]

12345678910>>...36