/external/iptables/extensions/ |
D | libxt_connbytes.c | 33 struct xt_connbytes_info *sinfo = cb->data; in connbytes_parse() local 39 sinfo->count.from = cb->val.u64_range[0]; in connbytes_parse() 40 sinfo->count.to = UINT64_MAX; in connbytes_parse() 42 sinfo->count.to = cb->val.u64_range[1]; in connbytes_parse() 44 if (sinfo->count.to < sinfo->count.from) in connbytes_parse() 46 (unsigned long long)sinfo->count.from, in connbytes_parse() 47 (unsigned long long)sinfo->count.to); in connbytes_parse() 49 i = sinfo->count.from; in connbytes_parse() 50 sinfo->count.from = sinfo->count.to; in connbytes_parse() 51 sinfo->count.to = i; in connbytes_parse() [all …]
|
D | libxt_conntrack.c | 189 parse_state(const char *state, size_t len, struct xt_conntrack_info *sinfo) in parse_state() argument 192 sinfo->statemask |= XT_CONNTRACK_STATE_INVALID; in parse_state() 194 sinfo->statemask |= XT_CONNTRACK_STATE_BIT(IP_CT_NEW); in parse_state() 196 sinfo->statemask |= XT_CONNTRACK_STATE_BIT(IP_CT_ESTABLISHED); in parse_state() 198 sinfo->statemask |= XT_CONNTRACK_STATE_BIT(IP_CT_RELATED); in parse_state() 200 sinfo->statemask |= XT_CONNTRACK_STATE_UNTRACKED; in parse_state() 202 sinfo->statemask |= XT_CONNTRACK_STATE_SNAT; in parse_state() 204 sinfo->statemask |= XT_CONNTRACK_STATE_DNAT; in parse_state() 211 parse_states(const char *arg, struct xt_conntrack_info *sinfo) in parse_states() argument 216 if (comma == arg || !parse_state(arg, comma-arg, sinfo)) in parse_states() [all …]
|
/external/strace/tests-mx32/ |
D | siginfo.c | 37 static siginfo_t sinfo; variable 42 memcpy(&sinfo, si, sizeof(sinfo)); in handler() 88 sinfo.si_pid, sinfo.si_uid, sinfo.si_status, in main() 89 zero_extend_signed_to_ull(sinfo.si_utime), in main() 90 zero_extend_signed_to_ull(sinfo.si_stime)); in main() 119 sinfo.si_pid, sinfo.si_uid, in main() 120 zero_extend_signed_to_ull(sinfo.si_utime), in main() 121 zero_extend_signed_to_ull(sinfo.si_stime)); in main() 146 sinfo.si_pid, sinfo.si_uid, in main() 147 zero_extend_signed_to_ull(sinfo.si_utime), in main() [all …]
|
D | waitid.c | 188 siginfo_t *const sinfo = tail_alloc(sizeof(*sinfo)); in main() local 189 memset(sinfo, 0, sizeof(*sinfo)); in main() 191 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main() 199 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 202 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main() 213 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 216 pid, sprint_siginfo(sinfo, "SIGUSR1"), sprint_rusage(rusage)); in main() 234 if (do_waitid(P_PID, pid, sinfo, WSTOPPED, rusage)) in main() 237 pid, sprint_siginfo(sinfo, "SIGSTOP"), sprint_rusage(rusage)); in main() 243 if (do_waitid(P_PID, pid, sinfo, WCONTINUED, rusage)) in main() [all …]
|
/external/strace/tests-m32/ |
D | siginfo.c | 37 static siginfo_t sinfo; variable 42 memcpy(&sinfo, si, sizeof(sinfo)); in handler() 88 sinfo.si_pid, sinfo.si_uid, sinfo.si_status, in main() 89 zero_extend_signed_to_ull(sinfo.si_utime), in main() 90 zero_extend_signed_to_ull(sinfo.si_stime)); in main() 119 sinfo.si_pid, sinfo.si_uid, in main() 120 zero_extend_signed_to_ull(sinfo.si_utime), in main() 121 zero_extend_signed_to_ull(sinfo.si_stime)); in main() 146 sinfo.si_pid, sinfo.si_uid, in main() 147 zero_extend_signed_to_ull(sinfo.si_utime), in main() [all …]
|
D | waitid.c | 188 siginfo_t *const sinfo = tail_alloc(sizeof(*sinfo)); in main() local 189 memset(sinfo, 0, sizeof(*sinfo)); in main() 191 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main() 199 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 202 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main() 213 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 216 pid, sprint_siginfo(sinfo, "SIGUSR1"), sprint_rusage(rusage)); in main() 234 if (do_waitid(P_PID, pid, sinfo, WSTOPPED, rusage)) in main() 237 pid, sprint_siginfo(sinfo, "SIGSTOP"), sprint_rusage(rusage)); in main() 243 if (do_waitid(P_PID, pid, sinfo, WCONTINUED, rusage)) in main() [all …]
|
/external/strace/tests/ |
D | siginfo.c | 37 static siginfo_t sinfo; variable 42 memcpy(&sinfo, si, sizeof(sinfo)); in handler() 88 sinfo.si_pid, sinfo.si_uid, sinfo.si_status, in main() 89 zero_extend_signed_to_ull(sinfo.si_utime), in main() 90 zero_extend_signed_to_ull(sinfo.si_stime)); in main() 119 sinfo.si_pid, sinfo.si_uid, in main() 120 zero_extend_signed_to_ull(sinfo.si_utime), in main() 121 zero_extend_signed_to_ull(sinfo.si_stime)); in main() 146 sinfo.si_pid, sinfo.si_uid, in main() 147 zero_extend_signed_to_ull(sinfo.si_utime), in main() [all …]
|
D | waitid.c | 188 siginfo_t *const sinfo = tail_alloc(sizeof(*sinfo)); in main() local 189 memset(sinfo, 0, sizeof(*sinfo)); in main() 191 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main() 199 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 202 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main() 213 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 216 pid, sprint_siginfo(sinfo, "SIGUSR1"), sprint_rusage(rusage)); in main() 234 if (do_waitid(P_PID, pid, sinfo, WSTOPPED, rusage)) in main() 237 pid, sprint_siginfo(sinfo, "SIGSTOP"), sprint_rusage(rusage)); in main() 243 if (do_waitid(P_PID, pid, sinfo, WCONTINUED, rusage)) in main() [all …]
|
/external/libjpeg-turbo/ |
D | rdtarga.c | 62 void (*read_pixel) (tga_source_ptr sinfo); 74 JDIMENSION (*get_pixel_rows) (j_compress_ptr cinfo, cjpeg_source_ptr sinfo); 90 read_byte (tga_source_ptr sinfo) in read_byte() argument 93 register FILE *infile = sinfo->pub.input_file; in read_byte() 97 ERREXIT(sinfo->cinfo, JERR_INPUT_EOF); in read_byte() 103 read_colormap (tga_source_ptr sinfo, int cmaplen, int mapentrysize) in read_colormap() argument 110 ERREXIT(sinfo->cinfo, JERR_TGA_BADCMAP); in read_colormap() 113 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 114 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 115 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() [all …]
|
D | rdbmp.c | 73 read_byte (bmp_source_ptr sinfo) in read_byte() argument 76 register FILE *infile = sinfo->pub.input_file; in read_byte() 80 ERREXIT(sinfo->cinfo, JERR_INPUT_EOF); in read_byte() 86 read_colormap (bmp_source_ptr sinfo, int cmaplen, int mapentrysize) in read_colormap() argument 95 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 96 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 97 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 103 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 104 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 105 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() [all …]
|
D | rdppm.c | 140 get_text_gray_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_text_gray_row() argument 143 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_text_gray_row() 159 get_text_rgb_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_text_rgb_row() argument 162 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_text_rgb_row() 180 get_scaled_gray_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_scaled_gray_row() argument 183 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_scaled_gray_row() 201 get_scaled_rgb_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_scaled_rgb_row() argument 204 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_scaled_rgb_row() 224 get_raw_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_raw_row() argument 230 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_raw_row() [all …]
|
D | rdrle.c | 84 start_input_rle (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in start_input_rle() argument 86 rle_source_ptr source = (rle_source_ptr) sinfo; in start_input_rle() 190 get_rle_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_rle_row() argument 192 rle_source_ptr source = (rle_source_ptr) sinfo; in get_rle_row() 208 get_pseudocolor_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_pseudocolor_row() argument 210 rle_source_ptr source = (rle_source_ptr) sinfo; in get_pseudocolor_row() 244 load_image (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in load_image() argument 246 rle_source_ptr source = (rle_source_ptr) sinfo; in load_image() 353 return (*source->pub.get_pixel_rows) (cinfo, sinfo); in load_image() 362 finish_input_rle (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in finish_input_rle() argument
|
/external/iw/ |
D | survey.c | 20 struct nlattr *sinfo[NL80211_SURVEY_INFO_MAX + 1]; in print_survey_handler() local 39 if (nla_parse_nested(sinfo, NL80211_SURVEY_INFO_MAX, in print_survey_handler() 46 if (sinfo[NL80211_SURVEY_INFO_FREQUENCY]) in print_survey_handler() 48 nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]), in print_survey_handler() 49 sinfo[NL80211_SURVEY_INFO_IN_USE] ? " [in use]" : ""); in print_survey_handler() 50 if (sinfo[NL80211_SURVEY_INFO_NOISE]) in print_survey_handler() 52 (int8_t)nla_get_u8(sinfo[NL80211_SURVEY_INFO_NOISE])); in print_survey_handler() 53 if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME]) in print_survey_handler() 55 (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME])); in print_survey_handler() 56 if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY]) in print_survey_handler() [all …]
|
D | station.c | 125 struct nlattr *sinfo[NL80211_STA_INFO_MAX + 1]; in print_sta_handler() local 166 if (nla_parse_nested(sinfo, NL80211_STA_INFO_MAX, in print_sta_handler() 177 if (sinfo[NL80211_STA_INFO_INACTIVE_TIME]) in print_sta_handler() 179 nla_get_u32(sinfo[NL80211_STA_INFO_INACTIVE_TIME])); in print_sta_handler() 180 if (sinfo[NL80211_STA_INFO_RX_BYTES]) in print_sta_handler() 182 nla_get_u32(sinfo[NL80211_STA_INFO_RX_BYTES])); in print_sta_handler() 183 if (sinfo[NL80211_STA_INFO_RX_PACKETS]) in print_sta_handler() 185 nla_get_u32(sinfo[NL80211_STA_INFO_RX_PACKETS])); in print_sta_handler() 186 if (sinfo[NL80211_STA_INFO_TX_BYTES]) in print_sta_handler() 188 nla_get_u32(sinfo[NL80211_STA_INFO_TX_BYTES])); in print_sta_handler() [all …]
|
D | link.c | 117 struct nlattr *sinfo[NL80211_STA_INFO_MAX + 1]; in print_link_sta() local 146 if (nla_parse_nested(sinfo, NL80211_STA_INFO_MAX, in print_link_sta() 153 if (sinfo[NL80211_STA_INFO_RX_BYTES] && sinfo[NL80211_STA_INFO_RX_PACKETS]) in print_link_sta() 155 nla_get_u32(sinfo[NL80211_STA_INFO_RX_BYTES]), in print_link_sta() 156 nla_get_u32(sinfo[NL80211_STA_INFO_RX_PACKETS])); in print_link_sta() 157 if (sinfo[NL80211_STA_INFO_TX_BYTES] && sinfo[NL80211_STA_INFO_TX_PACKETS]) in print_link_sta() 159 nla_get_u32(sinfo[NL80211_STA_INFO_TX_BYTES]), in print_link_sta() 160 nla_get_u32(sinfo[NL80211_STA_INFO_TX_PACKETS])); in print_link_sta() 161 if (sinfo[NL80211_STA_INFO_SIGNAL]) in print_link_sta() 163 (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL])); in print_link_sta() [all …]
|
/external/ltp/utils/sctp/lib/ |
D | sendmsg.c | 40 struct sctp_sndrcvinfo *sinfo; in sctp_sendmsg() local 59 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in sctp_sendmsg() 60 memset(sinfo, 0, sizeof(struct sctp_sndrcvinfo)); in sctp_sendmsg() 61 sinfo->sinfo_ppid = ppid; in sctp_sendmsg() 62 sinfo->sinfo_flags = flags; in sctp_sendmsg() 63 sinfo->sinfo_stream = stream_no; in sctp_sendmsg() 64 sinfo->sinfo_timetolive = timetolive; in sctp_sendmsg() 65 sinfo->sinfo_context = context; in sctp_sendmsg() 75 const struct sctp_sndrcvinfo *sinfo, int flags) in sctp_send() argument 89 if (sinfo) { in sctp_send() [all …]
|
/external/ltp/utils/sctp/func_tests/ |
D | test_timetolive.c | 101 struct sctp_sndrcvinfo *sinfo; in main() local 204 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 205 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 208 sinfo->sinfo_ppid = ppid; in main() 209 sinfo->sinfo_stream = stream; in main() 278 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 279 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 282 sinfo->sinfo_ppid = ppid; in main() 283 sinfo->sinfo_stream = stream; in main() 290 sinfo->sinfo_assoc_id = associd1; in main() [all …]
|
D | test_assoc_shutdown.c | 74 struct sctp_sndrcvinfo *sinfo; in main() local 130 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 131 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 134 sinfo->sinfo_ppid = ppid; in main() 135 sinfo->sinfo_stream = stream; in main() 194 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 195 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 196 sinfo->sinfo_flags |= SCTP_EOF; in main() 200 sinfo->sinfo_assoc_id = svr_associd[i]; in main() 204 status.sstat_assoc_id = sinfo->sinfo_assoc_id; in main() [all …]
|
D | test_assoc_abort.c | 75 struct sctp_sndrcvinfo *sinfo; in main() local 130 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 131 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 134 sinfo->sinfo_ppid = ppid; in main() 135 sinfo->sinfo_stream = stream; in main() 193 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 194 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 195 sinfo->sinfo_flags |= SCTP_ABORT; in main() 199 sinfo->sinfo_assoc_id = svr_associd[i]; in main() 203 status.sstat_assoc_id = sinfo->sinfo_assoc_id; in main() [all …]
|
D | test_sctp_sendrecvmsg.c | 89 struct sctp_sndrcvinfo sinfo; in main() local 181 &sinfo, &msg_flags); in main() 204 &sinfo, &msg_flags); in main() 218 &sinfo, &msg_flags); in main() 219 test_check_buf_data(big_buffer, error, msg_flags, &sinfo, in main() 280 &sinfo, &msg_flags); in main() 289 &sinfo, &msg_flags); in main() 290 test_check_buf_data(big_buffer, error, msg_flags, &sinfo, in main() 305 &sinfo, &msg_flags); in main() 327 &sinfo, &msg_flags); in main() [all …]
|
D | test_inaddr_any.c | 74 struct sctp_sndrcvinfo *sinfo; in main() local 162 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 163 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 166 sinfo->sinfo_ppid = ppid; in main() 167 sinfo->sinfo_stream = stream; in main() 210 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 211 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 214 sinfo->sinfo_ppid = ppid; in main() 215 sinfo->sinfo_stream = stream; in main()
|
D | test_basic.c | 76 struct sctp_sndrcvinfo *sinfo; in main() local 179 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 180 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 183 sinfo->sinfo_ppid = ppid; in main() 184 sinfo->sinfo_stream = stream; in main() 294 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 295 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 298 sinfo->sinfo_ppid = ppid; in main() 299 sinfo->sinfo_stream = stream; in main() 312 sinfo->sinfo_assoc_id = associd2; in main() [all …]
|
D | test_1_to_1_sendmsg.c | 79 struct sctp_sndrcvinfo *sinfo; in main() local 140 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 141 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 211 sinfo->sinfo_flags = 999; in main() 220 sinfo->sinfo_flags = SCTP_EOF; in main() 229 sinfo->sinfo_flags = SCTP_ABORT; in main() 237 sinfo->sinfo_flags = 0; in main() 298 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 299 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main()
|
D | test_1_to_1_events.c | 66 struct sctp_sndrcvinfo *sinfo; in main() local 122 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main() 123 memset(sinfo, 0x00, sizeof(struct sctp_sndrcvinfo)); in main() 127 sinfo->sinfo_ppid = ppid; in main() 128 sinfo->sinfo_stream = stream; in main()
|
/external/ltp/utils/sctp/testlib/ |
D | sctputil.c | 235 struct sctp_sndrcvinfo *sinfo, int expected_datalen, in test_check_buf_data() argument 258 if (!sinfo) in test_check_buf_data() 263 if (sinfo->sinfo_stream != expected_stream) in test_check_buf_data() 265 "got:%x", expected_stream, sinfo->sinfo_stream); in test_check_buf_data() 266 if (sinfo->sinfo_ppid != expected_ppid) in test_check_buf_data() 268 "got:%x\n", expected_ppid, sinfo->sinfo_ppid); in test_check_buf_data() 280 struct sctp_sndrcvinfo *sinfo = NULL; in test_check_msg_data() local 292 sinfo = NULL; in test_check_msg_data() 294 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in test_check_msg_data() 297 sinfo, expected_datalen, expected_msg_flags, in test_check_msg_data()
|