/src/sys/arch/vax/vsa/ |
gpx.c | 430 struct gpx_screen *ss = sc->sc_scr; local in function:gpx_ioctl 442 wdf->height = ss->ss_ri.ri_height; 443 wdf->width = ss->ss_ri.ri_width; 444 wdf->depth = ss->ss_depth; 445 wdf->cmsize = 1 << ss->ss_depth; 450 error = gpx_getcmap(ss, cm); 456 error = gpx_putcmap(ss, cm); 459 gpx_loadcmap(ss, cm->index, cm->count); 487 struct gpx_screen *ss = sc->sc_scr; local in function:gpx_alloc_screen 488 struct rasops_info *ri = &ss->ss_ri 525 struct gpx_screen *ss = ri->ri_hw; local in function:gpx_putchar 581 struct gpx_screen *ss = ri->ri_hw; local in function:gpx_copycols 598 struct gpx_screen *ss = ri->ri_hw; local in function:gpx_erasecols 614 struct gpx_screen *ss = ri->ri_hw; local in function:gpx_copyrows 631 struct gpx_screen *ss = ri->ri_hw; local in function:gpx_eraserows 646 struct gpx_screen *ss = ri->ri_hw; local in function:gpx_do_cursor 1324 struct gpx_screen *ss = &gpx_consscr; local in function:gpxcninit [all...] |
smg.c | 356 smg_setup_screen(struct smg_screen *ss) 358 struct rasops_info *ri = &ss->ss_ri; 367 ri->ri_bits = (void *)ss->ss_addr; 368 ri->ri_hw = ss; 369 if (ss == &smg_consscr) 406 ss->ss_curcmd = PCCCMD_HSHI; 407 ss->ss_cursor->cmdr = ss->ss_curcmd; 416 struct smg_screen *ss = sc->sc_scr; local in function:smg_ioctl 427 wdf->height = ss->ss_ri.ri_height 487 struct smg_screen *ss = sc->sc_scr; local in function:smg_alloc_screen 1022 struct smg_screen *ss = &smg_consscr; local in function:smgcninit [all...] |
/src/sys/dev/scsipi/ |
ss_scanjet.c | 85 /* scanjet_attach: attach special functions to ss */ 87 scanjet_attach(struct ss_softc *ss, struct scsipibus_attach_args *sa) 91 SC_DEBUG(ss->sc_periph, SCSIPI_DB1, ("scanjet_attach: start\n")); 92 ss->sio.scan_scanner_type = 0; 94 printf("%s: ", device_xname(ss->sc_dev)); 98 ss->sio.scan_scanner_type = HP_SCANJET_IIC; 101 ss->sio.scan_scanner_type = HP_SCANJET_IIC; 104 ss->sio.scan_scanner_type = HP_SCANJET_IIC; 107 ss->sio.scan_scanner_type = HP_SCANJET_IIC; 110 ss->sio.scan_scanner_type = HP_SCANJET_IIC [all...] |
ss.c | 1 /* $NetBSD: ss.c,v 1.91 2022/02/23 21:54:41 andvar Exp $ */ 34 __KERNEL_RCSID(0, "$NetBSD: ss.c,v 1.91 2022/02/23 21:54:41 andvar Exp $"); 76 ss, 160 struct ss_softc *ss = device_private(self); local in function:ssattach 165 ss->sc_dev = self; 167 ss->flags |= SSF_AUTOCONF; 170 ss->sc_periph = periph; 171 periph->periph_dev = ss->sc_dev; 177 bufq_alloc(&ss->buf_queue, "fcfs", 0); 179 callout_init(&ss->sc_callout, 0) 201 struct ss_softc *ss = device_private(self); local in function:ssdetach 238 struct ss_softc *ss; local in function:ssopen 306 struct ss_softc *ss = device_lookup_private(&ss_cd, SSUNIT(dev)); local in function:ssclose 341 struct ss_softc *ss = device_lookup_private(&ss_cd, SSUNIT(bp->b_dev)); local in function:ssminphys 364 struct ss_softc *ss = device_lookup_private(&ss_cd, SSUNIT(dev)); local in function:ssread 391 struct ss_softc *ss = device_lookup_private(&ss_cd, SSUNIT(bp->b_dev)); local in function:ssstrategy 462 struct ss_softc *ss = device_private(periph->periph_dev); local in function:ssstart 520 struct ss_softc *ss = device_lookup_private(&ss_cd, SSUNIT(dev)); local in function:ssioctl [all...] |
ss_mustek.c | 98 /* mustek_attach: attach special functions to ss */ 100 mustek_attach(struct ss_softc *ss, struct scsipibus_attach_args *sa) 107 ss->sio.scan_scanner_type = 0; 109 printf("\n%s: ", device_xname(ss->sc_dev)); 113 ss->sio.scan_scanner_type = MUSTEK_06000CX; 118 ss->sio.scan_scanner_type = MUSTEK_12000CX; 124 ss->sio.scan_scanner_type)); 127 ss->special = &mustek_special; 133 ss->sio.scan_width = 1200; 134 ss->sio.scan_height = 1200 [all...] |
/src/sys/dev/microcode/siop/ |
Makefile | 13 esiop.out: esiop.ss ${PROG} 14 ./${PROG} esiop.ss -p esiop.out 16 siop.out: siop.ss ${PROG} 17 ./${PROG} siop.ss -p siop.out 19 osiop.out: osiop.ss ${PROG} 20 ./${PROG} osiop.ss -p osiop.out 22 oosiop.out: oosiop.ss ${PROG} 23 ./${PROG} oosiop.ss -p oosiop.out
|
/src/lib/libbluetooth/ |
sdp_session.c | 52 struct sdp_session * ss; local in function:_sdp_open 57 ss = calloc(1, sizeof(struct sdp_session)); 58 if (ss == NULL) 61 ss->s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); 62 if (ss->s == -1) 68 if (setsockopt(ss->s, SOL_SOCKET, SO_LINGER, &li, sizeof(li)) == -1) 78 if (bind(ss->s, (struct sockaddr *)&sa, sizeof(sa)) == -1) 83 if (connect(ss->s, (struct sockaddr *)&sa, sizeof(sa)) == -1) 86 len = sizeof(ss->imtu); 87 if (getsockopt(ss->s, BTPROTO_L2CAP, SO_L2CAP_IMTU, &ss->imtu, &len) == -1 107 struct sdp_session * ss; local in function:_sdp_open_local [all...] |
sdp_service.c | 90 sdp_service_search(struct sdp_session *ss, const sdp_data_t *ssp, 132 ss->cs[0] = 0; 142 req[4].iov_base = ss->cs; 143 req[4].iov_len = ss->cs[0] + 1; 145 if (!_sdp_send_pdu(ss, SDP_PDU_SERVICE_SEARCH_REQUEST, 149 len = _sdp_recv_pdu(ss, SDP_PDU_SERVICE_SEARCH_RESPONSE); 153 ptr = ss->ibuf; 154 end = ss->ibuf + len; 197 memcpy(ss->cs, ptr, (size_t)(ptr[0] + 1)); 202 if (ss->cs[0] == 0) [all...] |
sdp_record.c | 49 sdp_record_insert(struct sdp_session *ss, bdaddr_t *bdaddr, 87 if (!_sdp_send_pdu(ss, SDP_PDU_RECORD_INSERT_REQUEST, 91 len = _sdp_recv_pdu(ss, SDP_PDU_ERROR_RESPONSE); 103 ec = be16dec(ss->ibuf); 113 *handle = be32dec(ss->ibuf + sizeof(uint16_t)); 119 sdp_record_update(struct sdp_session *ss, uint32_t handle, 156 if (!_sdp_send_pdu(ss, SDP_PDU_RECORD_UPDATE_REQUEST, 160 len = _sdp_recv_pdu(ss, SDP_PDU_ERROR_RESPONSE); 172 if ((ec = be16dec(ss->ibuf)) != 0) { 181 sdp_record_remove(struct sdp_session *ss, uint32_t handle [all...] |
/src/sys/arch/hp300/stand/common/ |
sd.c | 86 struct sd_softc *ss = &sd_softc[ctlr][unit]; local in function:sdinit 114 ss->sc_type = inqbuf.type & SID_TYPE; 117 ss->sc_type = T_DIRECT; 130 ++ss->sc_blkshift; 132 ss->sc_alive = 1; 139 sdgetinfo(struct sd_softc *ss) 141 struct sdminilabel *pi = &ss->sc_pinfo; 148 lp->d_secsize = (DEV_BSIZE << ss->sc_blkshift); 151 savepart = ss->sc_part; 152 ss->sc_part = RAW_PART 194 struct sd_softc *ss; local in function:sdopen 232 struct sd_softc *ss = f->f_devdata; local in function:sdclose 248 struct sd_softc *ss = devdata; local in function:sdstrategy [all...] |
/src/regress/sys/arch/arm/sigstackalign/ |
sigstackalign.c | 53 stack_t ss; local in function:main 65 ss.ss_sp = stackblock; 66 ss.ss_size = MINSIGSTKSZ + i; 67 ss.ss_flags = 0; 68 if (sigaltstack(&ss, NULL) != 0)
|
/src/libexec/identd/ |
npf.c | 53 npf_natlookup(const struct sockaddr_storage *ss, 61 memcpy(nat_addr, &ss[0], sizeof(ss[0])); 63 switch (af = ss[0].ss_family) { 66 addr[1] = __UNCONST(&csatosin(&ss[1])->sin_addr); 67 port[0] = csatosin(&ss[0])->sin_port; 68 port[1] = csatosin(&ss[1])->sin_port; 72 addr[1] = __UNCONST(&csatosin6(&ss[0])->sin6_addr); 73 port[0] = csatosin6(&ss[0])->sin6_port; 74 port[1] = csatosin6(&ss[1])->sin6_port [all...] |
pf.c | 30 pf_natlookup(const struct sockaddr_storage *ss, 39 switch (ss[0].ss_family) { 41 (void)memcpy(&nl.daddr.v4, &csatosin(&ss[0])->sin_addr, 43 (void)memcpy(&nl.saddr.v4, &csatosin(&ss[1])->sin_addr, 45 nl.dport = csatosin(&ss[0])->sin_port; 46 nl.sport = csatosin(&ss[1])->sin_port; 52 (void)memcpy(&nl.daddr.v6, &csatosin6(&ss[0])->sin6_addr, 54 (void)memcpy(&nl.saddr.v6, &csatosin6(&ss[1])->sin6_addr, 56 nl.dport = csatosin6(&ss[0])->sin6_port; 57 nl.sport = csatosin6(&ss[1])->sin6_port [all...] |
ipf.c | 34 ipf_natlookup(const struct sockaddr_storage *ss, 51 switch (ss[0].ss_family) { 53 (void)memcpy(&nl.nl_realip, &csatosin(&ss[0])->sin_addr, 55 (void)memcpy(&nl.nl_outip, &csatosin(&ss[1])->sin_addr, 57 nl.nl_realport = ntohs(csatosin(&ss[0])->sin_port); 58 nl.nl_outport = ntohs(csatosin(&ss[1])->sin_port); 66 "(no. %d)", ss[0].ss_family); 86 switch (ss[0].ss_family) {
|
/src/sys/dev/acpi/ |
acpi_pcc.c | 176 struct pcc_subspace * const ss = &sc->sc_ss[id]; local in function:pcc_subspace_attach 179 ss->ss_id = id; 180 ss->ss_type = header->Type; 181 ss->ss_data = AcpiOsMapMemory(generic->BaseAddress, generic->Length); 182 if (ss->ss_data == NULL) { 186 ss->ss_len = generic->Length; 187 ss->ss_doorbell_reg.reg_addr = generic->DoorbellRegister; 188 ss->ss_doorbell_reg.reg_preserve = generic->PreserveMask; 189 ss->ss_doorbell_reg.reg_set = generic->WriteMask; 190 mutex_init(&ss->ss_lock, MUTEX_DEFAULT, IPL_NONE) 335 struct pcc_subspace *ss; local in function:pcc_message [all...] |
/src/sys/arch/next68k/stand/boot/ |
sd.c | 69 int sdgetinfo(struct sd_softc *ss); 115 sdgetinfo(struct sd_softc *ss) 119 struct sdminilabel *pi = &ss->sc_pinfo; 129 error = scsiicmd(ss->sc_unit, ss->sc_lun, (u_char *)&cdb, sizeof(cdb), 139 ss->sc_dev_bsize = blklen; 141 ss->sc_pinfo.offset[ss->sc_part] = 0; /* read absolute sector */ 142 error = sdstrategy(ss, F_READ, NEXT68K_LABEL_SECTOR, 191 register struct sd_softc *ss; local in function:sdopen 243 register struct sd_softc *ss = f->f_devdata; local in function:sdclose 253 struct sd_softc *ss = devdata; local in function:sdstrategy [all...] |
/src/lib/libc/net/ |
getpeereid.c | 48 struct sockaddr_storage ss; local in function:getpeereid 51 len = sizeof(ss); 52 if (getsockname(s, (void *)&ss, &len) == -1) 54 if (ss.ss_family != AF_LOCAL) {
|
/src/lib/libm/noieee_src/ |
n_tan.c | 42 double a,z,ss,cc,c; local in function:tan 62 ss = sin__S(z); 66 return x+(x*(z-(cc-ss)))/c; /* ... sin/cos */ 72 return c/(x+x*ss); /* ... cos/sin */
|
/src/usr.bin/sdpquery/ |
command.c | 116 sdp_session_t ss; local in function:do_sdp_record 125 ss = open_session(); 132 rv = sdp_service_attribute(ss, (uint32_t)handle, NULL, &rsp); 142 sdp_close(ss); 149 sdp_session_t ss; local in function:do_sdp_search 161 ss = open_session(); 163 rv = sdp_service_search_attribute(ss, &ssp, NULL, &rsp); 181 sdp_close(ss); 189 sdp_session_t ss; local in function:open_session 192 ss = sdp_open_local(control_socket) [all...] |
/src/sys/arch/vax/uba/ |
qv.c | 565 struct qv_screen * const ss = id; local in function:qv_cursor 567 if (ss == ss->ss_sc->sc_curscr) { 568 *qv_fbp(ss->ss_sc, ss->ss_cury, ss->ss_curx, 14) 569 = *qv_font(ss->ss_sc, 570 ss->ss_image[ss->ss_cury][ss->ss_curx], 14) 599 struct qv_screen * const ss = id; local in function:qv_putchar 631 struct qv_screen * const ss = id; local in function:qv_copycols 649 struct qv_screen * const ss = id; local in function:qv_erasecols 689 struct qv_screen * const ss = id; local in function:qv_copyrows 746 struct qv_screen * const ss = id; local in function:qv_eraserows 904 struct qv_screen *ss; local in function:qv_alloc_screen 932 struct qv_screen *ss = cookie; local in function:qv_show_screen [all...] |
/src/tests/lib/libc/setjmp/ |
t_sigstack.c | 41 struct sigaltstack ss[3]; variable in typeref:struct:sigaltstack[3] 114 ssp = &ss[nentries]; 128 for (ssp = &ss[0]; ssp < &ss[__arraycount(ss)]; ssp++) { 137 sp, ssp - ss, 160 RL(sigaltstack(&ss[nentries], NULL)); 183 for (i = 0; i < __arraycount(ss); i++) { 184 ss[i].ss_size = SIGSTKSZ; 185 REQUIRE_LIBC(ss[i].ss_sp = malloc(ss[i].ss_size), NULL) [all...] |
/src/sys/arch/evbarm/g42xxeb/ |
gb225_pcic.c | 71 struct sapcic_socket ss; /* inherit socket for sa11x0 pcic */ member in struct:opcic_socket 120 struct opcic_softc *sc = (struct opcic_softc *)(so->ss.sc); 125 GB225_CFDET + 2 * so->ss.socket); 160 sc->sc_socket[i].ss.sc = &sc->sc_pc; 161 sc->sc_socket[i].ss.socket = i; 162 sc->sc_socket[i].ss.pcictag_cookie = NULL; 163 sc->sc_socket[i].ss.pcictag = &opcic_tag; 164 sc->sc_socket[i].ss.event_thread = NULL; 165 sc->sc_socket[i].ss.event = 0; 166 sc->sc_socket[i].ss.laststatus = CARDDET_NOCARD [all...] |
/src/sys/compat/common/ |
kern_sig_43.c | 86 compat_43_sigmask_to_sigset(const int *sm, sigset_t *ss) 89 memset(ss, 0, sizeof(*ss)); 90 ss->__bits[0] = *sm; 91 ss->__bits[1] = 0; 92 ss->__bits[2] = 0; 93 ss->__bits[3] = 0; 97 compat_43_sigset_to_sigmask(const sigset_t *ss, int *sm) 100 *sm = ss->__bits[0]; 124 compat_43_sigstack_to_sigaltstack(const struct sigstack *ss, stack_t *sa [all...] |
/src/tests/net/net/ |
t_socket_afinet.c | 131 int ss, ss2, cs, rc; local in function:ATF_TC_BODY 141 ss = socket(PF_INET, SOCK_STREAM, 0); 142 ATF_CHECK(ss >= 0); 143 rc = setsockopt(ss, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)); 150 rc = bind(ss, (struct sockaddr *)&sin, sizeof(sin)); 152 rc = listen(ss, 1); 160 ss2 = accept(ss, NULL, NULL); 186 close(ss); 192 int ss, ss2, cs, rc; local in function:ATF_TC_BODY 203 ss = socket(PF_INET, SOCK_STREAM, 0) [all...] |
/src/tests/net/sys/ |
t_rfc6056.c | 55 struct sockaddr_storage ss; local in function:test 87 memset(&ss, 0, sizeof(ss)); 88 ss.ss_len = res->ai_addrlen; 89 ss.ss_family = res->ai_family; 91 if (bind(s, (struct sockaddr *)&ss, ss.ss_len) == -1)
|