| /dragonfly/lib/libsdp/ |
| HD | session.c | 79 sdp_session_p ss = NULL; in sdp_open() local 84 if ((ss = calloc(1, sizeof(*ss))) == NULL) in sdp_open() 88 ss->error = EINVAL; in sdp_open() 92 ss->s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); in sdp_open() 93 if (ss->s < 0) { in sdp_open() 94 ss->error = errno; in sdp_open() 101 if (setsockopt(ss->s, SOL_SOCKET, SO_LINGER, &li, sizeof(li)) < 0) { in sdp_open() 102 ss->error = errno; in sdp_open() 110 if (bind(ss->s, (void *) &sa, sizeof(sa)) < 0) { in sdp_open() 111 ss->error = errno; in sdp_open() [all …]
|
| HD | service.c | 76 static int32_t sdp_receive_error_pdu(sdp_session_p ss); 82 sdp_session_p ss = (sdp_session_p) xss; in sdp_register_service() local 87 if (ss == NULL) in sdp_register_service() 90 datalen == 0 || !(ss->flags & SDP_SESSION_LOCAL)) { in sdp_register_service() 91 ss->error = EINVAL; in sdp_register_service() 95 ss->error = EMSGSIZE; in sdp_register_service() 100 pdu.tid = htons(++ss->tid); in sdp_register_service() 118 len = writev(ss->s, iov, sizeof(iov)/sizeof(iov[0])); in sdp_register_service() 122 ss->error = errno; in sdp_register_service() 126 len = sdp_receive_error_pdu(ss); in sdp_register_service() [all …]
|
| HD | search.c | 59 sdp_session_p ss = (sdp_session_p) xss; in sdp_search() local 64 if (ss == NULL) in sdp_search() 67 if (ss->req == NULL || ss->rsp == NULL || in sdp_search() 69 ss->error = EINVAL; in sdp_search() 73 req = ss->req; in sdp_search() 84 ss->error = EINVAL; in sdp_search() 103 if (ss->req_e - req < len) { in sdp_search() 104 ss->error = ENOBUFS; in sdp_search() 140 ss->cslen = 0; in sdp_search() 141 rsp = ss->rsp; in sdp_search() [all …]
|
| /dragonfly/sys/netproto/802_11/wlan/ |
| HD | ieee80211_scan_sw.c | 70 #define SCAN_PRIVATE(ss) ((struct scan_state *) ss) argument 114 struct ieee80211_scan_state *ss = ic->ic_scan; in ieee80211_swscan_detach() local 116 if (ss != NULL) { in ieee80211_swscan_detach() 117 scan_signal(ss, ISCAN_ABORT); in ieee80211_swscan_detach() 118 ieee80211_draintask(ic, &SCAN_PRIVATE(ss)->ss_scan_start); in ieee80211_swscan_detach() 120 &SCAN_PRIVATE(ss)->ss_scan_curchan); in ieee80211_swscan_detach() 131 if (ss->ss_ops != NULL) { in ieee80211_swscan_detach() 132 ss->ss_ops->scan_detach(ss); in ieee80211_swscan_detach() 133 ss->ss_ops = NULL; in ieee80211_swscan_detach() 136 IEEE80211_FREE(SCAN_PRIVATE(ss), M_80211_SCAN); in ieee80211_swscan_detach() [all …]
|
| HD | ieee80211_scan.c | 140 struct ieee80211_scan_state *ss; in ieee80211_scan_vdetach() local 143 ss = ic->ic_scan; in ieee80211_scan_vdetach() 147 if (ss != NULL && ss->ss_vap == vap) { in ieee80211_scan_vdetach() 148 if (ss->ss_ops != NULL) { in ieee80211_scan_vdetach() 149 ss->ss_ops->scan_detach(ss); in ieee80211_scan_vdetach() 150 ss->ss_ops = NULL; in ieee80211_scan_vdetach() 152 ss->ss_vap = NULL; in ieee80211_scan_vdetach() 223 struct ieee80211_scan_state *ss = ic->ic_scan; in ieee80211_scan_update_locked() local 228 if (ss->ss_vap != vap || ss->ss_ops != scan) { in ieee80211_scan_update_locked() 232 ss->ss_vap != NULL ? in ieee80211_scan_update_locked() [all …]
|
| HD | ieee80211_scan_sta.c | 160 sta_attach(struct ieee80211_scan_state *ss) in sta_attach() argument 177 ss->ss_priv = st; in sta_attach() 186 sta_detach(struct ieee80211_scan_state *ss) in sta_detach() argument 188 struct sta_table *st = ss->ss_priv; in sta_detach() 205 sta_flush(struct ieee80211_scan_state *ss) in sta_flush() argument 207 struct sta_table *st = ss->ss_priv; in sta_flush() 212 ss->ss_last = 0; in sta_flush() 238 sta_add(struct ieee80211_scan_state *ss, in sta_add() argument 246 ((ss->ss_flags & (IEEE80211_SCAN_PICK1ST | IEEE80211_SCAN_GOTPICK)) == \ in sta_add() 248 struct sta_table *st = ss->ss_priv; in sta_add() [all …]
|
| /dragonfly/sbin/jscan/ |
| HD | jsession.c | 40 jsession_init(struct jsession *ss, struct jfile *jfin, in jsession_init() argument 44 bzero(ss, sizeof(*ss)); in jsession_init() 45 ss->ss_jfin = jfin; in jsession_init() 46 ss->ss_direction = direction; in jsession_init() 47 ss->ss_transid = transid; in jsession_init() 48 ss->ss_transid_file = transid_file; in jsession_init() 49 ss->ss_transid_fd = -1; in jsession_init() 59 jsession_update_transid(struct jsession *ss __unused, int64_t transid) in jsession_update_transid() 63 if (ss->ss_transid_file) { in jsession_update_transid() 64 if (ss->ss_transid_fd < 0) { in jsession_update_transid() [all …]
|
| HD | jstream.c | 42 static int jaddrecord_backtrack(struct jsession *ss, struct jdata *jd); 66 jaddrecord(struct jsession *ss, struct jdata *jd) in jaddrecord() argument 77 js->js_session = ss; in jaddrecord() 97 if (jh->jh_session == ss && in jaddrecord() 124 if (ss->ss_direction == JD_FORWARDS && in jaddrecord() 132 if (jaddrecord_backtrack(ss, jd) == 0) { in jaddrecord() 143 } else if (ss->ss_direction == JD_BACKWARDS && in jaddrecord() 151 if (jaddrecord_backtrack(ss, jd) == 0) { in jaddrecord() 176 jh->jh_session = ss; in jaddrecord() 184 if (ss->ss_direction == JD_FORWARDS) { in jaddrecord() [all …]
|
| /dragonfly/games/bs/ |
| HD | bs.c | 271 placeship(int b, ship_t *ss, int vis) in placeship() argument 275 for(l = 0; l < ss->length; ++l) { in placeship() 276 int newx = ss->x + l * xincr[ss->dir]; in placeship() 277 int newy = ss->y + l * yincr[ss->dir]; in placeship() 279 board[b][newx][newy] = ss->symbol; in placeship() 282 addch((chtype)ss->symbol); in placeship() 285 ss->hits = 0; in placeship() 296 randomplace(int b, ship_t *ss) in randomplace() argument 299 ss->y = rnd(BDEPTH); in randomplace() 300 ss->x = rnd(BWIDTH); in randomplace() [all …]
|
| /dragonfly/sys/dev/netif/mxge/ |
| HD | if_mxge.c | 1129 struct mxge_slice_state *ss; in mxge_reset() local 1192 ss = &sc->ss[slice]; in mxge_reset() 1194 rx_done = &ss->rx_data.rx_done; in mxge_reset() 1198 MXGE_LOWPART_TO_U32(ss->rx_done_dma.dmem_busaddr); in mxge_reset() 1200 MXGE_HIGHPART_TO_U32(ss->rx_done_dma.dmem_busaddr); in mxge_reset() 1228 ss = &sc->ss[slice]; in mxge_reset() 1230 ss->irq_claim = irq_claim + (2 * slice); in mxge_reset() 1233 ss->rx_data.rx_done.idx = 0; in mxge_reset() 1234 ss->tx.req = 0; in mxge_reset() 1235 ss->tx.done = 0; in mxge_reset() [all …]
|
| /dragonfly/crypto/libressl/ssl/ |
| HD | ssl_sess.c | 213 SSL_SESSION *ss; in SSL_SESSION_new() local 220 if ((ss = calloc(1, sizeof(*ss))) == NULL) { in SSL_SESSION_new() 225 ss->verify_result = 1; /* avoid 0 (= X509_V_OK) just in case */ in SSL_SESSION_new() 226 ss->references = 1; in SSL_SESSION_new() 227 ss->timeout = 60 * 5 + 4; /* 5 minutes 4 seconds timeout by default */ in SSL_SESSION_new() 228 ss->time = time(NULL); in SSL_SESSION_new() 229 ss->prev = NULL; in SSL_SESSION_new() 230 ss->next = NULL; in SSL_SESSION_new() 231 ss->tlsext_hostname = NULL; in SSL_SESSION_new() 233 ss->peer_cert_type = -1; in SSL_SESSION_new() [all …]
|
| /dragonfly/sys/dev/netif/ath/ath_hal/ar5416/ |
| HD | ar5416_spectral.c | 84 ar5416ConfigureSpectralScan(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss) in ar5416ConfigureSpectralScan() argument 92 if (ss->ss_fft_period != HAL_SPECTRAL_PARAM_NOVAL) { in ar5416ConfigureSpectralScan() 94 val |= SM(ss->ss_fft_period, AR_PHY_SPECTRAL_SCAN_FFT_PERIOD); in ar5416ConfigureSpectralScan() 97 if (ss->ss_period != HAL_SPECTRAL_PARAM_NOVAL) { in ar5416ConfigureSpectralScan() 99 val |= SM(ss->ss_period, AR_PHY_SPECTRAL_SCAN_PERIOD); in ar5416ConfigureSpectralScan() 102 if (ss->ss_period != HAL_SPECTRAL_PARAM_NOVAL) { in ar5416ConfigureSpectralScan() 104 val |= SM(ss->ss_period, AR_PHY_SPECTRAL_SCAN_PERIOD); in ar5416ConfigureSpectralScan() 109 if (ss->ss_count != HAL_SPECTRAL_PARAM_NOVAL) { in ar5416ConfigureSpectralScan() 111 val |= SM(ss->ss_count, AR_PHY_SPECTRAL_SCAN_COUNT); in ar5416ConfigureSpectralScan() 114 if (ss->ss_short_report == AH_TRUE) { in ar5416ConfigureSpectralScan() [all …]
|
| /dragonfly/share/examples/sunrpc/sort/ |
| HD | sort_proc.c | 18 if (ss_res.ss.ss_val != NULL) 19 free(ss_res.ss.ss_val); 21 qsort(ssp->ss.ss_val, ssp->ss.ss_len, sizeof (char *), comparestrings); 22 ss_res.ss.ss_len = ssp->ss.ss_len; 23 ss_res.ss.ss_val = (str *)malloc(ssp->ss.ss_len * sizeof(str *)); 24 bcopy(ssp->ss.ss_val, ss_res.ss.ss_val, 25 ssp->ss.ss_len * sizeof(str *));
|
| /dragonfly/contrib/gdb-7/gdb/ |
| HD | progspace.c | 168 struct program_space *ss, **ss_link; in remove_program_space() local 170 ss = program_spaces; in remove_program_space() 172 while (ss) in remove_program_space() 174 if (ss != pspace) in remove_program_space() 176 ss_link = &ss->next; in remove_program_space() 177 ss = *ss_link; in remove_program_space() 181 *ss_link = ss->next; in remove_program_space() 182 release_program_space (ss); in remove_program_space() 183 ss = *ss_link; in remove_program_space() 268 struct program_space *ss, **ss_link; in prune_program_spaces() local [all …]
|
| /dragonfly/sys/dev/netif/ath/ath/ |
| HD | if_ath_spectral.c | 108 struct ath_spectral_state *ss; in ath_spectral_attach() local 117 ss = kmalloc(sizeof(struct ath_spectral_state), in ath_spectral_attach() 120 if (ss == NULL) { in ath_spectral_attach() 126 sc->sc_spectral = ss; in ath_spectral_attach() 128 (void) ath_hal_spectral_get_config(sc->sc_ah, &ss->spectral_state); in ath_spectral_attach() 156 struct ath_spectral_state *ss = sc->sc_spectral; in ath_spectral_enable() local 161 if (ss == NULL) in ath_spectral_enable() 164 if (ss->spectral_enable_after_reset) { in ath_spectral_enable() 166 &ss->spectral_state); in ath_spectral_enable() 191 struct ath_spectral_state *ss = sc->sc_spectral; in ath_ioctl_spectral() local [all …]
|
| /dragonfly/usr.sbin/inetd/ |
| HD | builtins.c | 123 struct sockaddr_storage ss; in chargen_dg() local 134 size = sizeof(ss); in chargen_dg() 136 (struct sockaddr *)&ss, &size) < 0) in chargen_dg() 139 if (check_loop((struct sockaddr *)&ss, sep)) in chargen_dg() 152 sendto(s, text, sizeof(text), 0, (struct sockaddr *)&ss, size); in chargen_dg() 197 struct sockaddr_storage ss; in daytime_dg() local 202 size = sizeof(ss); in daytime_dg() 204 (struct sockaddr *)&ss, &size) < 0) in daytime_dg() 207 if (check_loop((struct sockaddr *)&ss, sep)) in daytime_dg() 211 sendto(s, buffer, strlen(buffer), 0, (struct sockaddr *)&ss, size); in daytime_dg() [all …]
|
| /dragonfly/sys/contrib/dev/ath/ath_hal/ar9300/ |
| HD | ar9300_spectral.c | 310 ar9300_configure_spectral_scan(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss) in ar9300_configure_spectral_scan() argument 323 if (ss->ss_spectral_pri) { in ar9300_configure_spectral_scan() 325 nf_buf[i] = NOISE_PWR_DBM_2_INT(ss->ss_nf_cal[i]); in ar9300_configure_spectral_scan() 339 if (ss->ss_fft_period != HAL_SPECTRAL_PARAM_NOVAL) { in ar9300_configure_spectral_scan() 341 val |= SM(ss->ss_fft_period, AR_PHY_SPECTRAL_SCAN_FFT_PERIOD); in ar9300_configure_spectral_scan() 344 if (ss->ss_period != HAL_SPECTRAL_PARAM_NOVAL) { in ar9300_configure_spectral_scan() 346 val |= SM(ss->ss_period, AR_PHY_SPECTRAL_SCAN_PERIOD); in ar9300_configure_spectral_scan() 349 if (ss->ss_count != HAL_SPECTRAL_PARAM_NOVAL) { in ar9300_configure_spectral_scan() 355 if (ss->ss_count == 128) { in ar9300_configure_spectral_scan() 358 val |= SM(ss->ss_count, AR_PHY_SPECTRAL_SCAN_COUNT); in ar9300_configure_spectral_scan() [all …]
|
| /dragonfly/contrib/gcc-8.0/libcpp/ |
| HD | pch.c | 130 struct cpp_savedstate *const ss = (struct cpp_savedstate *)ss_p; in save_idents() local 139 slot = htab_find_slot (ss->definedhash, &news, INSERT); in save_idents() 227 struct cpp_savedstate *const ss = (struct cpp_savedstate *)ss_p; in count_defs() local 244 slot = (void **) htab_find (ss->definedhash, &news); in count_defs() 247 ss->hashsize += NODE_LEN (hn) + 1; in count_defs() 248 ss->n_defs += 1; in count_defs() 266 struct cpp_savedstate *const ss = (struct cpp_savedstate *)ss_p; in write_defs() local 283 slot = (void **) htab_find (ss->definedhash, &news); in write_defs() 286 ss->defs[ss->n_defs] = hn; in write_defs() 287 ss->n_defs += 1; in write_defs() [all …]
|
| /dragonfly/contrib/gcc-4.7/libcpp/ |
| HD | pch.c | 129 struct cpp_savedstate *const ss = (struct cpp_savedstate *)ss_p; in save_idents() local 138 slot = htab_find_slot (ss->definedhash, &news, INSERT); in save_idents() 216 struct cpp_savedstate *const ss = (struct cpp_savedstate *)ss_p; in count_defs() local 233 slot = (void **) htab_find (ss->definedhash, &news); in count_defs() 236 ss->hashsize += NODE_LEN (hn) + 1; in count_defs() 237 ss->n_defs += 1; in count_defs() 255 struct cpp_savedstate *const ss = (struct cpp_savedstate *)ss_p; in write_defs() local 272 slot = (void **) htab_find (ss->definedhash, &news); in write_defs() 275 ss->defs[ss->n_defs] = hn; in write_defs() 276 ss->n_defs += 1; in write_defs() [all …]
|
| /dragonfly/lib/i18n_module/iconv_std/ |
| HD | citrus_iconv_std.c | 259 struct _citrus_iconv_std_src *ss; in close_srcs() local 261 while ((ss = TAILQ_FIRST(sl)) != NULL) { in close_srcs() 262 TAILQ_REMOVE(sl, ss, ss_entry); in close_srcs() 263 close_dsts(&ss->ss_dsts); in close_srcs() 264 free(ss); in close_srcs() 272 struct _citrus_iconv_std_src *ss; in open_srcs() local 275 ss = malloc(sizeof(*ss)); in open_srcs() 276 if (ss == NULL) in open_srcs() 279 TAILQ_INIT(&ss->ss_dsts); in open_srcs() 282 ret = open_dsts(&ss->ss_dsts, &dbsrc->db_charsets[i], dbdst); in open_srcs() [all …]
|
| /dragonfly/usr.bin/rfcomm_sppd/ |
| HD | rfcomm_sdp.c | 87 if (ss != NULL) { \ 88 sdp_close(ss); \ 89 ss = NULL; \ 99 void *ss = NULL; in rfcomm_channel_lookup() local 112 if ((ss = sdp_open(local, remote)) == NULL) in rfcomm_channel_lookup() 114 if (sdp_error(ss) != 0) in rfcomm_channel_lookup() 115 rfcomm_channel_lookup_exit(sdp_error(ss)); in rfcomm_channel_lookup() 117 if (sdp_search(ss, 1, &serv, 1, &attr, 1, &proto) != 0) in rfcomm_channel_lookup() 118 rfcomm_channel_lookup_exit(sdp_error(ss)); in rfcomm_channel_lookup() 122 sdp_close(ss); in rfcomm_channel_lookup() [all …]
|
| /dragonfly/usr.bin/truss/ |
| HD | syscalls.c | 282 struct sockaddr_storage ss; in print_arg() local 293 if (get_struct(fd, (void *)args[sc->offset], &ss, in print_arg() 294 sizeof(ss.ss_len) + sizeof(ss.ss_family)) == -1) in print_arg() 297 if (ss.ss_family == AF_UNIX) { in print_arg() 298 if (get_struct(fd, (void *)args[sc->offset], &ss, in print_arg() 303 if (get_struct(fd, (void *)args[sc->offset], &ss, in print_arg() 304 ss.ss_len < sizeof(ss) ? ss.ss_len : sizeof(ss)) in print_arg() 309 switch (ss.ss_family) { in print_arg() 311 lsin = (struct sockaddr_in *)&ss; in print_arg() 316 lsin6 = (struct sockaddr_in6 *)&ss; in print_arg() [all …]
|
| /dragonfly/contrib/nvi2/regex/ |
| HD | engine.c | 296 sopno ss; /* start sop of current subRE */ in dissect() local 311 for (ss = startst; ss < stopst; ss = es) { in dissect() 313 es = ss; in dissect() 327 switch (m->g->strip[ss]) { in dissect() 352 rest = slow(m, sp, stp, ss, es); in dissect() 362 ssub = ss + 1; in dissect() 376 rest = slow(m, sp, stp, ss, es); in dissect() 386 ssub = ss + 1; in dissect() 412 rest = slow(m, sp, stp, ss, es); in dissect() 422 ssub = ss + 1; in dissect() [all …]
|
| /dragonfly/sys/kern/ |
| HD | subr_sglist.c | 85 struct sglist_seg *ss; in _sglist_append_range() local 87 ss = *ssp; in _sglist_append_range() 88 if (ss->ss_paddr + ss->ss_len == paddr) in _sglist_append_range() 89 ss->ss_len += len; in _sglist_append_range() 93 ss++; in _sglist_append_range() 94 ss->ss_paddr = paddr; in _sglist_append_range() 95 ss->ss_len = len; in _sglist_append_range() 97 *ssp = ss; in _sglist_append_range() 110 struct sglist_seg *ss; in _sglist_append_buf() local 133 ss = sg->sg_segs; in _sglist_append_buf() [all …]
|
| /dragonfly/sys/sys/ |
| HD | serialize.h | 27 #define IS_SERIALIZED(ss) ((ss)->last_td == curthread) argument 28 #define ASSERT_SERIALIZED(ss) KKASSERT(IS_SERIALIZED((ss))) argument 29 #define ASSERT_NOT_SERIALIZED(ss) KKASSERT(!IS_SERIALIZED((ss))) argument
|