/third_party/lwip/src/netif/ppp/ |
H A D | pppoe.c | 145 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 in pppoe_create() 210 struct pppoe_softc *sc = (struct pppoe_softc *)ctx; pppoe_write() local 252 struct pppoe_softc *sc = (struct pppoe_softc *)ctx; pppoe_netif_output() local 296 struct pppoe_softc *sc = (struct pppoe_softc *)ctx; pppoe_destroy() local 321 struct pppoe_softc *sc; pppoe_find_softc_by_session() local 336 struct pppoe_softc *sc, *t; pppoe_find_softc_by_hunique() local 374 struct pppoe_softc *sc; pppoe_disc_input() local 652 struct pppoe_softc *sc; pppoe_data_input() local 718 pppoe_output(struct pppoe_softc *sc, struct pbuf *pb) pppoe_output() argument 752 pppoe_send_padi(struct pppoe_softc *sc) pppoe_send_padi() argument 818 struct pppoe_softc *sc = (struct pppoe_softc*)arg; pppoe_timeout() local 888 struct pppoe_softc *sc = (struct pppoe_softc *)ctx; pppoe_connect() local 945 struct pppoe_softc *sc = (struct pppoe_softc *)ctx; pppoe_disconnect() local 968 pppoe_abort_connect(struct pppoe_softc *sc) pppoe_abort_connect() argument 977 pppoe_send_padr(struct pppoe_softc *sc) pppoe_send_padr() argument 1067 pppoe_send_pado(struct pppoe_softc *sc) pppoe_send_pado() argument 1097 pppoe_send_pads(struct pppoe_softc *sc) pppoe_send_pads() argument 1135 pppoe_xmit(struct pppoe_softc *sc, struct pbuf *pb) pppoe_xmit() argument [all...] |
/third_party/FreeBSD/sys/dev/usb/net/ |
H A D | if_axe.c | 137 static int axe_miibus_writereg(struct axe_softc *sc, int reg, int val); 138 static uint16_t axe_miibus_readreg(struct axe_softc *sc, int reg); 220 axe_cmd(struct axe_softc *sc, int cmd, int index, int val, void *buf) in axe_cmd() argument 225 AXE_LOCK_ASSERT(sc, MA_OWNED); in axe_cmd() 235 err = uether_do_request(&sc->sc_ue, &req, buf, 10000); in axe_cmd() 242 axe_miibus_readreg(struct axe_softc *sc, int reg) in axe_miibus_readreg() argument 246 axe_cmd(sc, AXE_CMD_MII_OPMODE_SW, 0, 0, NULL); in axe_miibus_readreg() 247 axe_cmd(sc, AXE_CMD_MII_READ_REG, reg, 0x10, &val); in axe_miibus_readreg() 248 axe_cmd(sc, AXE_CMD_MII_OPMODE_HW, 0, 0, NULL); in axe_miibus_readreg() 251 if (AXE_IS_772(sc) in axe_miibus_readreg() 264 axe_miibus_writereg(struct axe_softc *sc, int reg, int val) axe_miibus_writereg() argument 275 axe_setmedium(struct axe_softc *sc) axe_setmedium() argument 314 axe_get_phyno(struct axe_softc *sc, int sel) axe_get_phyno() argument 349 axe_ax88178_init(struct axe_softc *sc) axe_ax88178_init() argument 457 axe_ax88772_init(struct axe_softc *sc) axe_ax88772_init() argument 498 axe_ax88772_phywake(struct axe_softc *sc) axe_ax88772_phywake() argument 528 axe_ax88772b_init(struct axe_softc *sc) axe_ax88772b_init() argument 582 axe_reset(struct axe_softc *sc) axe_reset() argument 613 struct axe_softc *sc = uether_getsc(ue); axe_attach_post() local 655 axe_miibus_statchg(struct axe_softc *sc, uint16_t link_status) axe_miibus_statchg() argument 694 struct axe_softc *sc = device_get_softc(dev); axe_attach() local 733 struct axe_softc *sc = device_get_softc(dev); axe_detach() local 750 struct axe_softc *sc = usbd_xfer_softc(xfer); axe_bulk_read_callback() local 783 struct axe_softc *sc = ue->ue_sc; axe_rx_frame() local 903 struct axe_softc *sc = usbd_xfer_softc(xfer); axe_bulk_write_callback() local 987 struct axe_softc *sc = ue->ue_sc; axe_start() local 1005 struct axe_softc *sc = uether_getsc(ue); axe_init() local 1094 struct axe_softc *sc = uether_getsc(ue); axe_setpromisc() local 1116 struct axe_softc *sc = uether_getsc(ue); axe_tick() local 1131 struct axe_softc *sc = uether_getsc(ue); axe_stop() local [all...] |
H A D | if_cdce.c | 255 cdce_ncm_init(struct cdce_softc *sc) in cdce_ncm_init() argument 265 ufd = usbd_find_descriptor(sc->sc_ue.ue_udev, NULL, in cdce_ncm_init() 266 sc->sc_ifaces_index[1], UDESC_CS_INTERFACE, 0xFF, in cdce_ncm_init() 280 req.wIndex[0] = sc->sc_ifaces_index[1]; in cdce_ncm_init() 284 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req, in cdce_ncm_init() 293 if (usbd_get_mode(sc->sc_ue.ue_udev) == USB_MODE_HOST) { in cdce_ncm_init() 294 sc->sc_ncm.rx_max = UGETDW(temp.dwNtbInMaxSize); in cdce_ncm_init() 295 sc->sc_ncm.tx_max = UGETDW(temp.dwNtbOutMaxSize); in cdce_ncm_init() 296 sc->sc_ncm.tx_remainder = UGETW(temp.wNdpOutPayloadRemainder); in cdce_ncm_init() 297 sc in cdce_ncm_init() 460 struct cdce_softc *sc = (struct cdce_softc *)device_get_softc(dev); cdce_attach() local 638 struct cdce_softc *sc = (struct cdce_softc *)device_get_softc(dev); cdce_detach() local 652 struct cdce_softc *sc = (struct cdce_softc *)uether_getsc(ue); cdce_start() local 689 struct cdce_softc *sc = (struct cdce_softc *)usbd_xfer_softc(xfer); cdce_bulk_write_callback() local 774 struct cdce_softc *sc = (struct cdce_softc *)uether_getsc(ue); cdce_init() local 804 struct cdce_softc *sc = (struct cdce_softc *)uether_getsc(ue); cdce_stop() local 854 struct cdce_softc *sc = (struct cdce_softc *)usbd_xfer_softc(xfer); cdce_bulk_read_callback() local 966 struct cdce_softc *sc = usbd_xfer_softc(xfer); cdce_intr_write_callback() local 1052 struct cdce_softc *sc = device_get_softc(dev); cdce_handle_request() local 1093 struct cdce_softc *sc = usbd_xfer_softc(xfer); cdce_ncm_fill_tx_frames() local 1287 struct cdce_softc *sc = usbd_xfer_softc(xfer); cdce_ncm_bulk_read_callback() local [all...] |
H A D | if_axge.c | 45 static void axge_miibus_statchg(struct axge_softc *sc, uint8_t link_status); 148 axge_write_mem(struct axge_softc *sc, uint8_t cmd, uint16_t index, in axge_write_mem() argument 159 if (uether_do_request(&sc->sc_ue, &req, buf, 1000)) { in axge_write_mem() 165 axge_write_cmd_1(struct axge_softc *sc, uint8_t cmd, uint16_t reg, uint8_t val) in axge_write_cmd_1() argument 167 axge_write_mem(sc, cmd, 1, reg, &val, 1); in axge_write_cmd_1() 171 axge_write_cmd_2(struct axge_softc *sc, uint8_t cmd, uint16_t index, in axge_write_cmd_2() argument 177 axge_write_mem(sc, cmd, index, reg, &temp, 2); in axge_write_cmd_2() 182 axge_read_mem(struct axge_softc *sc, uint8_t cmd, uint16_t index, in axge_read_mem() argument 187 AXGE_LOCK_ASSERT(sc, MA_OWNED); in axge_read_mem() 195 return (uether_do_request(&sc in axge_read_mem() 199 axge_read_cmd_1(struct axge_softc *sc, uint8_t cmd, uint16_t reg) axge_read_cmd_1() argument 208 axge_read_cmd_2(struct axge_softc *sc, uint8_t cmd, uint16_t index, uint16_t reg) axge_read_cmd_2() argument 217 axge_chip_init(struct axge_softc *sc) axge_chip_init() argument 231 struct axge_softc *sc = ue->ue_sc; axge_csum_cfg() local 246 struct axge_softc *sc = ue->ue_sc; axge_setmulti() local 264 struct axge_softc *sc = uether_getsc(ue); axge_setpromisc() local 282 struct axge_softc *sc = uether_getsc(ue); axge_tick() local 296 axge_reset(struct axge_softc *sc) axge_reset() argument 317 struct axge_softc *sc = uether_getsc(ue); axge_attach_post() local 350 struct axge_softc *sc = device_get_softc(dev); axge_attach() local 387 struct axge_softc *sc = device_get_softc(dev); axge_detach() local 398 axge_miibus_statchg(struct axge_softc *sc, uint8_t link_status) axge_miibus_statchg() argument 449 struct axge_softc *sc = usbd_xfer_softc(xfer); axge_bulk_read_callback() local 570 struct axge_softc *sc = usbd_xfer_softc(xfer); axge_bulk_write_callback() local 651 struct axge_softc *sc = ue->ue_sc; axge_start() local 663 struct axge_softc *sc = uether_getsc(ue); axge_init() local 714 struct axge_softc *sc = uether_getsc(ue); axge_stop() local [all...] |
H A D | if_urndis.c | 49 static uint32_t urndis_ctrl_query(struct urndis_softc *sc, uint32_t oid, 52 static uint32_t urndis_ctrl_set(struct urndis_softc *sc, uint32_t oid, 54 static uint32_t urndis_ctrl_handle_init(struct urndis_softc *sc, 56 static uint32_t urndis_ctrl_handle_query(struct urndis_softc *sc, 59 static uint32_t urndis_ctrl_handle_reset(struct urndis_softc *sc, 61 static uint32_t urndis_ctrl_init(struct urndis_softc *sc); 62 static uint32_t urndis_ctrl_halt(struct urndis_softc *sc); 187 struct urndis_softc *sc = device_get_softc(dev); in urndis_attach() local 188 struct usb_ether *ue = &sc->sc_ue; in urndis_attach() 199 sc in urndis_attach() 312 struct urndis_softc *sc = device_get_softc(dev); urndis_detach() local 332 struct urndis_softc *sc = uether_getsc(ue); urndis_start() local 344 struct urndis_softc *sc = uether_getsc(ue); urndis_init() local 362 struct urndis_softc *sc = uether_getsc(ue); urndis_stop() local 404 urndis_ctrl_msg(struct urndis_softc *sc, uint8_t rt, uint8_t r, uint16_t index, uint16_t value, void *buf, uint16_t buflen) urndis_ctrl_msg() argument 421 urndis_ctrl_send(struct urndis_softc *sc, void *buf, uint16_t len) urndis_ctrl_send() argument 434 urndis_ctrl_recv(struct urndis_softc *sc) urndis_ctrl_recv() argument 460 urndis_ctrl_handle(struct urndis_softc *sc, struct urndis_comp_hdr *hdr, const void **buf, uint16_t *bufsz) urndis_ctrl_handle() argument 501 urndis_ctrl_handle_init(struct urndis_softc *sc, const struct urndis_comp_hdr *hdr) urndis_ctrl_handle_init() argument 544 urndis_ctrl_handle_query(struct urndis_softc *sc, const struct urndis_comp_hdr *hdr, const void **buf, uint16_t *bufsz) urndis_ctrl_handle_query() argument 592 urndis_ctrl_handle_reset(struct urndis_softc *sc, const struct urndis_comp_hdr *hdr) urndis_ctrl_handle_reset() argument 632 urndis_ctrl_init(struct urndis_softc *sc) urndis_ctrl_init() argument 670 urndis_ctrl_halt(struct urndis_softc *sc) urndis_ctrl_halt() argument 697 urndis_ctrl_query(struct urndis_softc *sc, uint32_t oid, struct urndis_query_req *msg, uint16_t len, const void **rbuf, uint16_t *rbufsz) urndis_ctrl_query() argument 744 urndis_ctrl_set(struct urndis_softc *sc, uint32_t oid, struct urndis_set_req *msg, uint16_t len) urndis_ctrl_set() argument 796 struct urndis_softc *sc = usbd_xfer_softc(xfer); urndis_bulk_read() local 838 struct urndis_softc *sc = usbd_xfer_softc(xfer); urndis_bulk_read_callback() local 944 struct urndis_softc *sc = usbd_xfer_softc(xfer); urndis_bulk_write_callback() local [all...] |
/third_party/FreeBSD/sys/dev/usb/serial/ |
H A D | usb_serial.c | 73 extern int ucom_modem(struct ucom_softc *sc, int sigon, int sigoff); 122 static void ucom_close(struct ucom_softc *sc); 171 ucom_attach(struct ucom_super_softc *ssc, struct ucom_softc *sc, in ucom_attach() argument 180 if ((sc == NULL) || in ucom_attach() 213 sc[subunit].sc_subunit = subunit; in ucom_attach() 214 sc[subunit].sc_super = ssc; in ucom_attach() 215 sc[subunit].sc_mtx = umtx; in ucom_attach() 216 sc[subunit].sc_parent = parent; in ucom_attach() 217 sc[subunit].sc_callback = callback; in ucom_attach() 219 error = ucom_attach_tty(ssc, &sc[subuni in ucom_attach() 243 ucom_detach(struct ucom_super_softc *ssc, struct ucom_softc *sc) ucom_detach() argument 306 ucom_attach_tty(struct ucom_super_softc *ssc, struct ucom_softc *sc) ucom_attach_tty() argument 334 ucom_detach_tty(struct ucom_super_softc *ssc, struct ucom_softc *sc) ucom_detach_tty() argument 382 ucom_queue_command(struct ucom_softc *sc, usb_proc_callback_t *fn, struct termios *pt, struct usb_proc_msg *t0, struct usb_proc_msg *t1) ucom_queue_command() argument 429 ucom_shutdown(struct ucom_softc *sc) ucom_shutdown() argument 439 ucom_cfg_is_gone(struct ucom_softc *sc) ucom_cfg_is_gone() argument 451 struct ucom_softc *sc = task->sc; ucom_cfg_start_transfers() local 473 ucom_start_transfers(struct ucom_softc *sc) ucom_start_transfers() argument 495 struct ucom_softc *sc = task->sc; ucom_cfg_open() local 515 ucom_open(struct ucom_softc *sc) ucom_open() argument 582 struct ucom_softc *sc = task->sc; ucom_cfg_close() local 596 ucom_close(struct ucom_softc *sc) ucom_close() argument 625 ucom_modem(struct ucom_softc *sc, int sigon, int sigoff) ucom_modem() argument 681 struct ucom_softc *sc = task->sc; ucom_cfg_line_state() local 744 ucom_line_state(struct ucom_softc *sc, uint8_t set_bits, uint8_t clear_bits) ucom_line_state() argument 768 ucom_ring(struct ucom_softc *sc, uint8_t onoff) ucom_ring() argument 779 ucom_break(struct ucom_softc *sc, uint8_t onoff) ucom_break() argument 790 ucom_dtr(struct ucom_softc *sc, uint8_t onoff) ucom_dtr() argument 801 ucom_rts(struct ucom_softc *sc, uint8_t onoff) ucom_rts() argument 816 struct ucom_softc *sc = task->sc; ucom_cfg_status_change() local 866 ucom_status_change(struct ucom_softc *sc) ucom_status_change() argument 884 ucom_outwakeup(struct ucom_softc *sc) ucom_outwakeup() argument 901 ucom_get_data(struct ucom_softc *sc, struct usb_page_cache *pc, uint32_t offset, uint32_t len, uint32_t *actlen) ucom_get_data() argument 936 ucom_put_data(struct ucom_softc *sc, struct usb_page_cache *pc, uint32_t offset, uint32_t len) ucom_put_data() argument 1022 tx_data_copy_in(struct ucom_softc *sc, const void *tx_data, unsigned int len) tx_data_copy_in() argument 1351 struct ucom_softc *sc = (struct ucom_softc *)drvData->priv; tty_usb_open() local 1370 struct ucom_softc *sc = (struct ucom_softc *)drvData->priv; tty_usb_close() local 1384 struct ucom_softc *sc = (struct ucom_softc *)drvData->priv; tty_usb_read() local 1443 struct ucom_softc *sc = (struct ucom_softc *)drvData->priv; tty_usb_write() local [all...] |
/third_party/FreeBSD/sys/dev/usb/storage/ |
H A D | umass.c | 65 * sc->sc_transform method is used to convert the commands into the appropriate 120 #define DPRINTF_UMASS(sc, m, fmt, ...) \ 124 (sc) ? (const char *)(sc)->sc_name : \ 318 typedef void (umass_callback_t)(struct umass_softc *sc, union ccb *ccb, 326 typedef uint8_t (umass_transform_t)(struct umass_softc *sc, uint8_t *cmd_ptr, 459 struct umass_softc *sc; member 468 static void umass_dev_delete(struct umass_softc *sc, unsigned int dev_unit); 534 static int32_t umass_attach_dev(struct umass_softc *sc, unsigned int dev_unit); 535 static void umass_detach_dev_sub(struct umass_softc *sc, in 913 struct umass_softc *sc = umass_attach() local 1108 struct umass_softc *sc = (struct umass_softc *)device_get_softc(dev); umass_detach() local 1149 umass_init_shuttle(struct umass_softc *sc) umass_init_shuttle() argument 1179 umass_transfer_start(struct umass_softc *sc, uint8_t xfer_index) umass_transfer_start() argument 1193 umass_cancel_ccb(struct umass_softc *sc) umass_cancel_ccb() argument 1213 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_tr_error() local 1228 umass_scsi_inquiry_data(struct umass_softc *sc, void *data, int len) umass_scsi_inquiry_data() argument 1277 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_bbb_reset1_callback() local 1342 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_bbb_data_clear_stall_callback() local 1365 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_bbb_command_callback() local 1454 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_bbb_data_callback() local 1528 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_bbb_status_callback() local 1645 umass_command_start(struct umass_softc *sc, uint8_t dir, void *data_ptr, uint32_t data_len, uint32_t data_timeout, umass_callback_t *callback, union ccb *umass_ccb) umass_command_start() argument 1685 umass_bbb_get_max_lun(struct umass_softc *sc) umass_bbb_get_max_lun() argument 1715 umass_cbi_start_status(struct umass_softc *sc) umass_cbi_start_status() argument 1735 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_cbi_reset1_callback() local 1813 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_cbi_reset3_callback() local 1833 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_cbi_data_clear_stall_callback() local 1860 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_cbi_command_callback() local 1940 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_cbi_data_read_callback() local 1996 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_cbi_data_write_callback() local 2052 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); umass_t_cbi_status_callback() local 2145 umass_cam_cb(struct umass_softc *sc, union ccb *umass_ccb, uint32_t residue, uint8_t status) umass_cam_cb() argument 2173 umass_scsi_transform(struct umass_softc *sc, uint8_t *cmd_ptr, uint8_t cmd_len) umass_scsi_transform() argument 2229 umass_rbc_transform(struct umass_softc *sc, uint8_t *cmd_ptr, uint8_t cmd_len) umass_rbc_transform() argument 2287 umass_ufi_transform(struct umass_softc *sc, uint8_t *cmd_ptr, uint8_t cmd_len) umass_ufi_transform() argument 2376 umass_atapi_transform(struct umass_softc *sc, uint8_t *cmd_ptr, uint8_t cmd_len) umass_atapi_transform() argument 2483 umass_no_transform(struct umass_softc *sc, uint8_t *cmd, uint8_t cmdlen) umass_no_transform() argument 2491 umass_bbb_dump_cbw(struct umass_softc *sc, umass_bbb_cbw_t *cbw) umass_bbb_dump_cbw() argument 2512 umass_bbb_dump_csw(struct umass_softc *sc, umass_bbb_csw_t *csw) umass_bbb_dump_csw() argument 2529 umass_cbi_dump_cmd(struct umass_softc *sc, void *cmd, uint8_t cmdlen) umass_cbi_dump_cmd() argument 2684 umass_test_unit_ready(struct umass_softc *sc) umass_test_unit_ready() argument 2708 umass_read_capacity_16(struct umass_softc *sc) umass_read_capacity_16() argument 2736 umass_read_capacity(struct umass_softc *sc) umass_read_capacity() argument 2780 umass_read10(struct umass_softc *sc, size_t startsector, uint16_t blocksize, unsigned int nsectors, unsigned char *buf) umass_read10() argument 2839 umass_read16(struct umass_softc *sc, uint64_t startsector, uint16_t blocksize, unsigned int nsectors, unsigned char *buf) umass_read16() argument 2898 umass_write10(struct umass_softc *sc, size_t startsector, uint16_t blocksize, unsigned int nsectors, const unsigned char *buf) umass_write10() argument 2953 umass_write16(struct umass_softc *sc, uint64_t startsector, uint16_t blocksize, unsigned int nsectors, const unsigned char *buf) umass_write16() argument 3012 umass_inquiry(struct umass_softc *sc) umass_inquiry() argument 3048 umass_request_sense(struct umass_softc *sc) umass_request_sense() argument 3080 struct umass_softc *sc = p_umsf; umass_status() local 3170 struct umass_softc *sc = (struct umass_softc *)((struct drv_data*)umass_inode->data)->priv; umass_read() local 3191 struct umass_softc *sc = (struct umass_softc *)((struct drv_data*)umass_inode->data)->priv; umass_write() local 3210 struct umass_softc *sc; umass_geometry() local 3251 umass_dev_is_ready(struct umass_softc *sc) umass_dev_is_ready() argument 3289 umass_attach_dev_sub(struct umass_softc *sc, unsigned int dev_unit) umass_attach_dev_sub() argument 3350 umass_detach_dev_sub(struct umass_softc *sc, int dev_unit, int flag) umass_detach_dev_sub() argument 3410 struct umass_softc *sc; umass_dev_status_check() local 3457 umass_dev_add(struct umass_softc *sc, int dev_unit) umass_dev_add() argument 3473 umass_dev_delete(struct umass_softc *sc, unsigned int dev_unit) umass_dev_delete() argument 3555 umass_attach_dev(struct umass_softc *sc, unsigned int dev_unit) umass_attach_dev() argument [all...] |
/third_party/FreeBSD/sys/dev/usb/controller/ |
H A D | ehci_pci.c | 58 hiehci_post_reset(struct ehci_softc *sc) in hiehci_post_reset() argument 63 usb_mode = EOREAD4(sc, EHCI_USBMODE_NOLPM); in hiehci_post_reset() 66 EOWRITE4(sc, EHCI_USBMODE_NOLPM, usb_mode); in hiehci_post_reset() 92 ehci_softc_t *sc = device_get_softc(self); in ehci_pci_attach() local 96 sc->sc_bus.parent = self; in ehci_pci_attach() 97 sc->sc_bus.devices = sc->sc_devices; in ehci_pci_attach() 98 sc->sc_bus.devices_max = EHCI_MAX_DEVICES; in ehci_pci_attach() 99 sc->sc_bus.dma_bits = 32; in ehci_pci_attach() 100 sc in ehci_pci_attach() 188 ehci_softc_t *sc = device_get_softc(self); ehci_pci_detach() local [all...] |
H A D | ehci.c | 60 static void ehci_dump_regs(ehci_softc_t *sc); 61 static void ehci_dump_sqh(ehci_softc_t *sc, ehci_qh_t *sqh); 89 static void ehci_root_intr(ehci_softc_t *sc); 92 ehci_softc_t *sc; member 111 ehci_softc_t *sc = EHCI_BUS2SC(bus); in ehci_iterate_hw_softc() local 114 cb(bus, &sc->sc_hw.pframes_pc, &sc->sc_hw.pframes_pg, in ehci_iterate_hw_softc() 117 cb(bus, &sc->sc_hw.terminate_pc, &sc->sc_hw.terminate_pg, in ehci_iterate_hw_softc() 120 cb(bus, &sc in ehci_iterate_hw_softc() 143 ehci_reset(ehci_softc_t *sc) ehci_reset() argument 163 ehci_hcreset(ehci_softc_t *sc) ehci_hcreset() argument 187 ehci_init_sub(struct ehci_softc *sc) ehci_init_sub() argument 240 ehci_init(ehci_softc_t *sc) ehci_init() argument 496 ehci_detach(ehci_softc_t *sc) ehci_detach() argument 518 ehci_suspend(ehci_softc_t *sc) ehci_suspend() argument 527 ehci_resume(ehci_softc_t *sc) ehci_resume() argument 541 ehci_dump_regs(ehci_softc_t *sc) ehci_dump_regs() argument 620 ehci_dump_link(ehci_softc_t *sc, uint32_t link, int type) ehci_dump_link() argument 649 ehci_dump_qtd(ehci_softc_t *sc, ehci_qtd_t *qtd) ehci_dump_qtd() argument 684 ehci_dump_sqtd(ehci_softc_t *sc, ehci_qtd_t *sqtd) ehci_dump_sqtd() argument 696 ehci_dump_sqtds(ehci_softc_t *sc, ehci_qtd_t *sqtd) ehci_dump_sqtds() argument 711 ehci_dump_sqh(ehci_softc_t *sc, ehci_qh_t *qh) ehci_dump_sqh() argument 744 ehci_dump_sitd(ehci_softc_t *sc, ehci_sitd_t *sitd) ehci_dump_sitd() argument 770 ehci_dump_itd(ehci_softc_t *sc, ehci_itd_t *itd) ehci_dump_itd() argument 817 ehci_dump_isoc(ehci_softc_t *sc) ehci_dump_isoc() argument 1041 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_non_isoc_done_sub() local 1145 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_non_isoc_done() local 1195 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_check_transfer() local 1331 ehci_pcd_enable(ehci_softc_t *sc) ehci_pcd_enable() argument 1345 ehci_interrupt_poll(ehci_softc_t *sc) ehci_interrupt_poll() argument 1377 ehci_softc_t *sc = (ehci_softc_t *)ehci_arg; ehci_poll_timeout() local 1391 ehci_interrupt(unsigned int irq, ehci_softc_t *sc) ehci_interrupt() argument 1475 ehci_softc_t *sc = EHCI_BUS2SC(bus); ehci_do_poll() local 1953 ehci_root_intr(ehci_softc_t *sc) ehci_root_intr() argument 1979 ehci_isoc_fs_done(ehci_softc_t *sc, struct usb_xfer *xfer) ehci_isoc_fs_done() argument 2032 ehci_isoc_hs_done(ehci_softc_t *sc, struct usb_xfer *xfer) ehci_isoc_hs_done() argument 2108 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_device_done() local 2178 ehci_doorbell_async(struct ehci_softc *sc) ehci_doorbell_async() argument 2197 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_device_bulk_start() local 2247 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_device_ctrl_start() local 2270 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_device_intr_open() local 2309 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_device_intr_close() local 2328 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_device_intr_start() local 2351 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_device_isoc_fs_open() local 2397 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_device_isoc_fs_enter() local 2647 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); ehci_device_isoc_hs_open() local 2704 ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus); global() local 3000 ehci_get_port_speed_portsc(struct ehci_softc *sc, uint16_t index) global() argument 3015 ehci_get_port_speed_hostc(struct ehci_softc *sc, uint16_t index) global() argument 3033 ehci_softc_t *sc = EHCI_BUS2SC(udev->bus); global() local 3421 ehci_softc_t *sc; global() local 3697 ehci_softc_t *sc = EHCI_BUS2SC(udev->bus); global() local 3757 ehci_softc_t *sc = EHCI_BUS2SC(udev->bus); global() local 3789 ehci_softc_t *sc = EHCI_BUS2SC(udev->bus); global() local 3821 struct ehci_softc *sc = EHCI_BUS2SC(bus); global() local 3839 ehci_softc_t *sc = EHCI_BUS2SC(bus); global() local 3873 struct ehci_softc *sc = EHCI_BUS2SC(xfer->xroot->bus); global() local 3893 struct ehci_softc *sc = EHCI_BUS2SC(xfer->xroot->bus); global() local [all...] |
H A D | xhci.c | 79 struct xhci_softc *sc; member 117 static void xhci_ctx_set_le32(struct xhci_softc *sc, volatile uint32_t *ptr, uint32_t val); 118 static uint32_t xhci_ctx_get_le32(struct xhci_softc *sc, volatile uint32_t *ptr); 119 static void xhci_ctx_set_le64(struct xhci_softc *sc, volatile uint64_t *ptr, uint64_t val); 121 static uint64_t xhci_ctx_get_le64(struct xhci_softc *sc, volatile uint64_t *ptr); 137 xhci_dump_endpoint(struct xhci_softc *sc, struct xhci_endp_ctx *pep) in xhci_dump_endpoint() argument 140 DPRINTFN(5, "dwEpCtx0=0x%08x\n", xhci_ctx_get_le32(sc, &pep->dwEpCtx0)); in xhci_dump_endpoint() 141 DPRINTFN(5, "dwEpCtx1=0x%08x\n", xhci_ctx_get_le32(sc, &pep->dwEpCtx1)); in xhci_dump_endpoint() 142 DPRINTFN(5, "qwEpCtx2=0x%016llx\n", (long long)xhci_ctx_get_le64(sc, &pep->qwEpCtx2)); in xhci_dump_endpoint() 143 DPRINTFN(5, "dwEpCtx4=0x%08x\n", xhci_ctx_get_le32(sc, in xhci_dump_endpoint() 150 xhci_dump_device(struct xhci_softc *sc, struct xhci_slot_ctx *psl) xhci_dump_device() argument 173 struct xhci_softc *sc = XHCI_BUS2SC(bus); xhci_iterate_hw_softc() local 189 xhci_ctx_set_le32(struct xhci_softc *sc, volatile uint32_t *ptr, uint32_t val) xhci_ctx_set_le32() argument 202 xhci_ctx_get_le32(struct xhci_softc *sc, volatile uint32_t *ptr) xhci_ctx_get_le32() argument 215 xhci_ctx_set_le64(struct xhci_softc *sc, volatile uint64_t *ptr, uint64_t val) xhci_ctx_set_le64() argument 229 xhci_ctx_get_le64(struct xhci_softc *sc, volatile uint64_t *ptr) xhci_ctx_get_le64() argument 243 xhci_reset_command_queue_locked(struct xhci_softc *sc) xhci_reset_command_queue_locked() argument 306 xhci_start_controller(struct xhci_softc *sc) xhci_start_controller() argument 464 xhci_halt_controller(struct xhci_softc *sc) xhci_halt_controller() argument 494 xhci_reset_controller(struct xhci_softc *sc) xhci_reset_controller() argument 521 xhci_init(struct xhci_softc *sc, device_t self, uint8_t dma32) xhci_init() argument 647 xhci_uninit(struct xhci_softc *sc) xhci_uninit() argument 664 struct xhci_softc *sc = XHCI_BUS2SC(bus); xhci_set_hw_power_sleep() local 856 xhci_check_transfer(struct xhci_softc *sc, struct xhci_trb *trb) xhci_check_transfer() argument 1024 xhci_check_command(struct xhci_softc *sc, struct xhci_trb *trb) xhci_check_command() argument 1037 xhci_interrupt_poll(struct xhci_softc *sc) xhci_interrupt_poll() argument 1124 xhci_do_command(struct xhci_softc *sc, struct xhci_trb *trb, uint16_t timeout_ms) xhci_do_command() argument 1268 xhci_cmd_enable_slot(struct xhci_softc *sc, uint8_t *pslot) xhci_cmd_enable_slot() argument 1293 xhci_cmd_disable_slot(struct xhci_softc *sc, uint8_t slot_id) xhci_cmd_disable_slot() argument 1311 xhci_cmd_set_address(struct xhci_softc *sc, uint64_t input_ctx, uint8_t bsr, uint8_t slot_id) xhci_cmd_set_address() argument 1337 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_set_address() local 1460 xhci_cmd_configure_ep(struct xhci_softc *sc, uint64_t input_ctx, uint8_t deconfigure, uint8_t slot_id) xhci_cmd_configure_ep() argument 1482 xhci_cmd_evaluate_ctx(struct xhci_softc *sc, uint64_t input_ctx, uint8_t slot_id) xhci_cmd_evaluate_ctx() argument 1500 xhci_cmd_reset_ep(struct xhci_softc *sc, uint8_t preserve, uint8_t ep_id, uint8_t slot_id) xhci_cmd_reset_ep() argument 1523 xhci_cmd_set_tr_dequeue_ptr(struct xhci_softc *sc, uint64_t dequeue_ptr, uint16_t stream_id, uint8_t ep_id, uint8_t slot_id) xhci_cmd_set_tr_dequeue_ptr() argument 1545 xhci_cmd_stop_ep(struct xhci_softc *sc, uint8_t suspend, uint8_t ep_id, uint8_t slot_id) xhci_cmd_stop_ep() argument 1568 xhci_cmd_reset_dev(struct xhci_softc *sc, uint8_t slot_id) xhci_cmd_reset_dev() argument 1589 xhci_interrupt(unsigned int irq, struct xhci_softc *sc) xhci_interrupt() argument 1656 struct xhci_softc *sc = XHCI_BUS2SC(bus); xhci_do_poll() local 2220 xhci_set_slot_pointer(struct xhci_softc *sc, uint8_t index, uint64_t dev_addr) xhci_set_slot_pointer() argument 2239 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_configure_mask() local 2300 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_configure_endpoint() local 2497 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_configure_device() local 2666 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_alloc_device_ext() local 2749 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_free_device_ext() local 2765 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_get_endpoint_ext() local 2795 struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus); xhci_endpoint_doorbell() local 2893 struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus); xhci_transfer_insert() local 2977 xhci_root_intr(struct xhci_softc *sc) xhci_root_intr() argument 3233 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_roothub_exec() local 3760 struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus); xhci_configure_reset_endpoint() local 3857 struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus); xhci_start_dma_delay() local 3869 struct xhci_softc *sc; xhci_configure_msg() local 4003 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_device_init() local 4064 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_device_uninit() local 4099 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_device_resume() local 4133 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_device_suspend() local 4170 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); xhci_device_state_change() local [all...] |
H A D | xhci_pci.c | 89 struct xhci_softc *sc = device_get_softc(self);; in xhci_pci_attach() local 101 sc->sc_io_res = ioremap(res->start, res->count); in xhci_pci_attach() 102 if (!sc->sc_io_res) { in xhci_pci_attach() 105 sc->sc_io_tag = (void *)sc->sc_io_res; in xhci_pci_attach() 106 sc->sc_io_hdl = (uintptr_t)sc->sc_io_res; in xhci_pci_attach() 107 sc->sc_io_size = res->count; in xhci_pci_attach() 115 sc->sc_irq_res = res; in xhci_pci_attach() 116 err = bus_setup_intr(res->start, 0, (driver_intr_t *)xhci_interrupt, sc); in xhci_pci_attach() 168 struct xhci_softc *sc = device_get_softc(self); xhci_pci_detach() local 198 struct xhci_softc *sc = device_get_softc(self); xhci_pci_take_controller() local [all...] |
H A D | ehci.h | 362 void (*sc_vendor_post_reset)(struct ehci_softc *sc); 363 uint16_t (*sc_vendor_get_port_speed)(struct ehci_softc *sc, 368 #define EREAD1(sc, a) bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (a)) 369 #define EREAD2(sc, a) bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (a)) 370 #define EREAD4(sc, a) bus_space_read_4((sc) 397 htohc32(const struct ehci_softc *sc, const uint32_t v) htohc32() argument 403 htohc16(const struct ehci_softc *sc, const uint16_t v) htohc16() argument 409 hc32toh(const struct ehci_softc *sc, const uint32_t v) hc32toh() argument 415 hc16toh(const struct ehci_softc *sc, const uint16_t v) hc16toh() argument 424 htohc32(const struct ehci_softc *sc, const uint32_t v) htohc32() argument 430 htohc16(const struct ehci_softc *sc, const uint16_t v) htohc16() argument 436 hc32toh(const struct ehci_softc *sc, const uint32_t v) hc32toh() argument 442 hc16toh(const struct ehci_softc *sc, const uint16_t v) hc16toh() argument [all...] |
/third_party/FreeBSD/sys/dev/usb/input/ |
H A D | uhid.c | 139 struct uhid_softc *sc = usbd_xfer_softc(xfer); in uhid_intr_write_callback() local 148 if (usb_fifo_get_data(sc->sc_fifo.fp[USB_FIFO_TX], pc, in uhid_intr_write_callback() 195 struct uhid_softc *sc = usbd_xfer_softc(xfer); in uhid_intr_read_callback() local 206 if (sc->input_dev && sc->input_dev->devType == INDEV_TYPE_MOUSE) { in uhid_intr_read_callback() 207 mouse_report_events(sc->input_dev, pc->buffer, actlen); in uhid_intr_read_callback() 211 usbd_xfer_set_frame_len(xfer, 0, sc->sc_isize); in uhid_intr_read_callback() 218 usbd_xfer_set_frame_len(xfer, 0, sc->sc_isize); in uhid_intr_read_callback() 252 struct uhid_softc *sc = usbd_xfer_softc(xfer); in uhid_write_callback() local 255 uint32_t size = sc in uhid_write_callback() 313 struct uhid_softc *sc = usbd_xfer_softc(xfer); uhid_read_callback() local 391 struct uhid_softc *sc = usb_fifo_softc(fifo); uhid_start_read() local 403 struct uhid_softc *sc = usb_fifo_softc(fifo); uhid_stop_read() local 412 struct uhid_softc *sc = usb_fifo_softc(fifo); uhid_start_write() local 425 struct uhid_softc *sc = usb_fifo_softc(fifo); uhid_stop_write() local 432 uhid_get_report(struct uhid_softc *sc, uint8_t type, uint8_t id, void *kern_data, void *user_data, uint16_t len) uhid_get_report() argument 473 uhid_set_report(struct uhid_softc *sc, uint8_t type, uint8_t id, void *kern_data, const void *user_data, uint16_t len) uhid_set_report() argument 513 struct uhid_softc *sc = usb_fifo_softc(fifo); uhid_open() local 552 struct uhid_softc *sc = usb_fifo_softc(fifo); uhid_ioctl() local 736 struct uhid_softc *sc = device_get_softc(dev); uhid_attach() local 898 struct uhid_softc *sc = device_get_softc(dev); uhid_detach() local [all...] |
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/ |
H A D | stress.c | 177 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], in main() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
H A D | cso_cache.c | 39 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 in cso_insert_state() 117 cso_find_state(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type) cso_find_state() argument 145 cso_find_state_template(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type, void *templ, unsigned size) cso_find_state_template() argument 159 cso_cache_init(struct cso_cache *sc, struct pipe_context *pipe) cso_cache_init() argument 173 cso_delete_all(struct cso_cache *sc, enum cso_cache_type type) cso_delete_all() argument 188 cso_cache_delete(struct cso_cache *sc) cso_cache_delete() argument 203 cso_set_maximum_cache_size(struct cso_cache *sc, int number) cso_set_maximum_cache_size() argument 213 cso_cache_set_sanitize_callback(struct cso_cache *sc, cso_sanitize_callback cb, void *user_data) cso_cache_set_sanitize_callback() argument 221 cso_cache_set_delete_cso_callback(struct cso_cache *sc, cso_delete_cso_callback delete_cso, void *ctx) cso_cache_set_delete_cso_callback() argument [all...] |
/third_party/libuv/test/ |
H A D | test-signal.c | 157 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_EQ(sc.ncalls, NSIGNALS); in TEST_IMPL() 172 ASSERT_EQ(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_EQ(sc.ncalls, NSIGNALS); in TEST_IMPL() 189 struct signal_ctx sc[ in TEST_IMPL() local 214 struct signal_ctx sc; TEST_IMPL() local 243 struct signal_ctx sc[4]; TEST_IMPL() local [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/text/ |
H A D | SpoofCheckerTest.java | 55 String scMixed = new String(scMixedChars); /* "sc", with Cyrillic 'c' */ 58 String scLatin = "sc"; /* "sc", plain ascii. */ 78 SpoofChecker sc = new SpoofChecker.Builder().build(); in TestUSpoof() 79 if (sc == null) { in TestUSpoof() 166 SpoofChecker sc = new SpoofChecker.Builder().setChecks(SpoofChecker.ALL_CHECKS).build(); in TestGetSetChecks1() 168 t = sc.getChecks(); in TestGetSetChecks1() 171 sc = new SpoofChecker.Builder().setChecks(0).build(); in TestGetSetChecks1() 172 t = sc.getChecks(); in TestGetSetChecks1() 177 sc in TestGetSetChecks1() 394 checkSkeleton(SpoofChecker sc, String testName) checkSkeleton() argument 452 checkSkeleton(SpoofChecker sc, int type, String input, String expected, String testName) checkSkeleton() argument [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/text/ |
H A D | SpoofCheckerTest.java | 52 String scMixed = new String(scMixedChars); /* "sc", with Cyrillic 'c' */ 55 String scLatin = "sc"; /* "sc", plain ascii. */ 75 SpoofChecker sc = new SpoofChecker.Builder().build(); in TestUSpoof() 76 if (sc == null) { in TestUSpoof() 163 SpoofChecker sc = new SpoofChecker.Builder().setChecks(SpoofChecker.ALL_CHECKS).build(); in TestGetSetChecks1() 165 t = sc.getChecks(); in TestGetSetChecks1() 168 sc = new SpoofChecker.Builder().setChecks(0).build(); in TestGetSetChecks1() 169 t = sc.getChecks(); in TestGetSetChecks1() 174 sc in TestGetSetChecks1() 391 checkSkeleton(SpoofChecker sc, String testName) checkSkeleton() argument 449 checkSkeleton(SpoofChecker sc, int type, String input, String expected, String testName) checkSkeleton() argument [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | mov.c | 197 MOVStreamContext *sc; in mov_read_covr() local 211 sc = av_mallocz(sizeof(*sc)); in mov_read_covr() 212 if (!sc) in mov_read_covr() 216 av_free(sc); in mov_read_covr() 220 st->priv_data = sc; in mov_read_covr() 629 MOVStreamContext *sc; in mov_read_dref() local 635 sc = st->priv_data; in mov_read_dref() 641 entries >= UINT_MAX / sizeof(*sc->drefs)) in mov_read_dref() 644 for (i = 0; i < sc in mov_read_dref() 1362 MOVStreamContext *sc = st->priv_data; search_frag_timestamp() local 1503 MOVStreamContext *sc; mov_read_mdhd() local 2114 MOVStreamContext *sc; mov_read_stco() local [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_signature.c | 89 StreamContext *sc = &(sic->streamcontexts[FF_INLINK_IDX(inlink)]); in config_input() local 91 sc->time_base = inlink->time_base; in config_input() 93 sc->divide = (((uint64_t) inlink->w/32) * (inlink->w/32 + 1) * (inlink->h/32 * inlink->h/32 + 1) > INT64_MAX / (BLOCK_LCM * 255)); in config_input() 94 if (sc->divide) { in config_input() 97 sc->w = inlink->w; in config_input() 98 sc->h = inlink->h; in config_input() 107 static uint64_t get_block_sum(StreamContext *sc, uint64_t intpic[32][32], const Block *b) in get_block_sum() argument 149 StreamContext *sc = &(sic->streamcontexts[FF_INLINK_IDX(inlink)]); in filter_frame() local 176 int64_t precfactor = (sc->divide) ? 65536 : BLOCK_LCM; in filter_frame() 179 if (sc in filter_frame() 381 xml_export(AVFilterContext *ctx, StreamContext *sc, const char* filename) xml_export() argument 490 binary_export(AVFilterContext *ctx, StreamContext *sc, const char* filename) binary_export() argument 568 export(AVFilterContext *ctx, StreamContext *sc, int input) export() argument 591 StreamContext *sc, *sc2; request_frame() local 647 StreamContext *sc; init() local 699 StreamContext *sc; uninit() local [all...] |
H A D | vf_bm3d.c | 272 SliceContext *sc = &s->slices[jobnr]; in do_block_matching_multi() local 276 int i, index = sc->nb_match_blocks; in do_block_matching_multi() 288 if (index >= s->group_size && score >= sc->match_blocks[index - 1].score) { in do_block_matching_multi() 295 sc->match_blocks[index].score = score; in do_block_matching_multi() 296 sc->match_blocks[index].y = pos.y; in do_block_matching_multi() 297 sc->match_blocks[index].x = pos.x; in do_block_matching_multi() 299 qsort(sc->match_blocks, index, sizeof(PosPairCode), cmp_scores); in do_block_matching_multi() 303 sc->nb_match_blocks = index; in do_block_matching_multi() 309 SliceContext *sc = &s->slices[jobnr]; in block_matching_multi() local 331 sc in block_matching_multi() 349 SliceContext *sc = &s->slices[jobnr]; block_matching() local 389 SliceContext *sc = &s->slices[jobnr]; basic_block_filtering() local 508 SliceContext *sc = &s->slices[jobnr]; final_block_filtering() local 650 SliceContext *sc = &s->slices[k]; do_output() local 678 SliceContext *sc = &s->slices[k]; do_output16() local 694 SliceContext *sc = &s->slices[jobnr]; filter_slice() local 792 SliceContext *sc = &s->slices[i]; config_input() local 1013 SliceContext *sc = &s->slices[i]; uninit() local [all...] |
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/ |
H A D | stress.c | 128 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] in main() [all...] |
/third_party/libunwind/libunwind/src/aarch64/ |
H A D | Gresume.c | 99 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 in aarch64_local_resume() [all...] |
/third_party/NuttX/drivers/usbdev/gadget/ |
H A D | f_mass_storage_ram.c | 74 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 in ram_geometry() 156 struct ram_storage_sc *sc; ram_mass_storage_init() local 219 struct ram_storage_sc *sc; ram_mass_storage_deinit() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | inheritance1.js | 25 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 127 var sc; global() variable [all...] |