/netbsd-current/external/ibm-public/postfix/dist/src/master/ |
H A D | master_monitor.c | 63 int pipes[2]; local 75 if (pipe(pipes) < 0) 77 close_on_exec(pipes[0], CLOSE_ON_EXEC); 78 close_on_exec(pipes[1], CLOSE_ON_EXEC); 89 close(pipes[0]); 90 return (pipes[1]); 93 close(pipes[1]); 94 switch (timed_read(pipes[0], buf, 1, time_limit, (void *) 0)) {
|
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/test/ |
H A D | bench_cascade.c | 65 static evutil_socket_t *pipes; variable 90 pipes = (evutil_socket_t *)calloc(num_pipes * 2, sizeof(evutil_socket_t)); 92 if (events == NULL || pipes == NULL) { 97 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 111 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 121 if (send(pipes[1], "e", 1, 0) < 0) 129 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 135 free(pipes);
|
H A D | bench.c | 70 static evutil_socket_t *pipes; variable 90 n = send(pipes[2 * widx + 1], "e", 1, 0); 105 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 118 (void) send(pipes[i * space + 1], "e", 1, 0); 181 pipes = calloc(num_pipes * 2, sizeof(evutil_socket_t)); 182 if (events == NULL || pipes == NULL) { 189 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) {
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn20/ |
H A D | amdgpu_dcn20_resource.c | 1601 /* The number of DSCs can be less than the number of pipes */ 1833 struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) 1844 pipes[pipe_cnt].dout.wb_enable = (wb_info->wb_enabled == true) ? 1 : 0; 1845 pipes[pipe_cnt].dout.num_active_wb++; 1846 pipes[pipe_cnt].dout.wb.wb_src_height = wb_info->dwb_params.cnv_params.crop_height; 1847 pipes[pipe_cnt].dout.wb.wb_src_width = wb_info->dwb_params.cnv_params.crop_width; 1848 pipes[pipe_cnt].dout.wb.wb_dst_width = wb_info->dwb_params.dest_width; 1849 pipes[pipe_cnt].dout.wb.wb_dst_height = wb_info->dwb_params.dest_height; 1850 pipes[pipe_cnt].dout.wb.wb_htaps_luma = 1; 1851 pipes[pipe_cn 1832 dcn20_populate_dml_writeback_from_context( struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) argument 1885 dcn20_populate_dml_pipes_from_context( struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes) argument 2232 dcn20_set_mcif_arb_params( struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes, int pipe_cnt) argument 2546 dcn20_fast_validate_bw( struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes, int *pipe_cnt_out, int *pipe_split_from, int *vlevel_out) argument 2660 dcn20_calculate_wm( struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes, int *out_pipe_cnt, int *pipe_split_from, int vlevel) argument 2775 dcn20_calculate_dlg_params( struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes, int pipe_cnt, int vlevel) argument 2889 display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_KERNEL); local [all...] |
H A D | dcn20_resource.h | 55 struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes); 61 struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes); 121 display_e2e_pipe_params_st *pipes, 150 display_e2e_pipe_params_st *pipes, 156 display_e2e_pipe_params_st *pipes,
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/ |
H A D | amdgpu_dc_link_hwss.c | 106 struct pipe_ctx *pipes = local 116 if (pipes[i].stream != NULL && 117 pipes[i].stream->link == link) { 118 if (pipes[i].clock_source != NULL && 119 pipes[i].clock_source->id != CLOCK_SOURCE_ID_DP_DTO) { 120 pipes[i].clock_source = dp_cs; 121 pipes[i].stream_res.pix_clk_params.requested_pix_clk_100hz = 122 pipes[i].stream->timing.pix_clk_100hz; 123 pipes[i].clock_source->funcs->program_pix_clk( 124 pipes[ 315 struct pipe_ctx *pipes = local [all...] |
/netbsd-current/external/bsd/libevent/dist/test/ |
H A D | bench_cascade.c | 66 static evutil_socket_t *pipes; variable 91 pipes = (evutil_socket_t *)calloc(num_pipes * 2, sizeof(evutil_socket_t)); 93 if (events == NULL || pipes == NULL) { 98 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 112 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 122 if (send(pipes[1], "e", 1, 0) < 0) 130 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 136 free(pipes);
|
H A D | bench.c | 73 static evutil_socket_t *pipes; variable 94 n = send(pipes[2 * widx + 1], "e", 1, 0); 109 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 122 (void) send(pipes[i * space + 1], "e", 1, 0); 201 pipes = calloc(num_pipes * 2, sizeof(evutil_socket_t)); 202 if (events == NULL || pipes == NULL) { 218 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) {
|
/netbsd-current/external/mit/libuv/dist/src/unix/ |
H A D | process.c | 258 int (*pipes)[2], 294 use_fd = pipes[fd][1]; 298 pipes[fd][1] = fcntl(use_fd, F_DUPFD_CLOEXEC, stdio_count); 300 pipes[fd][1] = fcntl(use_fd, F_DUPFD, stdio_count); 302 if (pipes[fd][1] == -1) 305 n = uv__cloexec(pipes[fd][1], 1); 313 use_fd = pipes[fd][1]; 516 int (*pipes)[2]) { 540 /* Do not return ENOSYS after this point, as we may mutate pipes. */ 547 use_fd = pipes[f 256 uv__process_child_init(const uv_process_options_t* options, int stdio_count, int (*pipes)[2], int error_fd) argument 511 uv__spawn_set_posix_spawn_file_actions( posix_spawn_file_actions_t* actions, const uv__posix_spawn_fncs_t* posix_spawn_fncs, const uv_process_options_t* options, int stdio_count, int (*pipes)[2]) argument 748 uv__spawn_and_init_child_posix_spawn( const uv_process_options_t* options, int stdio_count, int (*pipes)[2], pid_t* pid, const uv__posix_spawn_fncs_t* posix_spawn_fncs) argument 789 uv__spawn_and_init_child_fork(const uv_process_options_t* options, int stdio_count, int (*pipes)[2], int error_fd, pid_t* pid) argument 830 uv__spawn_and_init_child( uv_loop_t* loop, const uv_process_options_t* options, int stdio_count, int (*pipes)[2], pid_t* pid) argument [all...] |
/netbsd-current/external/gpl2/xcvs/dist/src/ |
H A D | rsh-client.c | 47 int pipes[2]; local 121 child_pid = popenRW (rsh_argv, pipes); 126 make_bufs_from_fds (pipes[0], pipes[1], child_pid, to_server_p,
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/dc/dml/ |
H A D | amdgpu_display_mode_vba.c | 51 const display_e2e_pipe_params_st *pipes, 58 const display_e2e_pipe_params_st *pipes, 64 || memcmp(pipes, mode_lib->vba.cache_pipes, 69 memcpy(mode_lib->vba.cache_pipes, pipes, sizeof(*pipes) * num_pipes); 72 if (need_recalculate && pipes[0].clks_cfg.dppclk_mhz != 0) 85 #define dml_get_attr_func(attr, var) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) \ 87 recalculate_params(mode_lib, pipes, num_pipes); \ 115 #define dml_get_pipe_attr_func(attr, var) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes, unsigned int which_pipe) \ 118 recalculate_params(mode_lib, pipes, num_pipe 56 dml_get_voltage_level( struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) argument 148 get_vstartup_calculated( struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes, unsigned int which_pipe) argument 161 get_total_immediate_flip_bytes( struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) argument 170 get_total_immediate_flip_bw( struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) argument 183 get_total_prefetch_bw( struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) argument 360 display_e2e_pipe_params_st *pipes = mode_lib->vba.cache_pipes; local 699 recalculate_params( struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) argument [all...] |
/netbsd-current/external/bsd/flex/dist/src/ |
H A D | filter.c | 133 int pid, pipes[2]; local 152 if (pipe (pipes) == -1) 167 close (pipes[1]); 169 if (dup2 (pipes[0], fileno (stdin)) == -1) 170 flexfatal (_("dup2(pipes[0],0)")); 171 close (pipes[0]); 195 close (pipes[0]); 196 if (dup2 (pipes[1], fileno (stdout)) == -1) 197 flexfatal (_("dup2(pipes[1],1)")); 198 close (pipes[ [all...] |
/netbsd-current/crypto/external/bsd/openssl.old/dist/ssl/record/ |
H A D | ssl3_buffer.c | 161 size_t pipes; local 163 pipes = s->rlayer.numwpipes; 164 while (pipes > 0) { 165 wb = &RECORD_LAYER_get_wbuf(&s->rlayer)[pipes - 1]; 169 pipes--;
|
/netbsd-current/crypto/external/bsd/openssl/dist/ssl/record/ |
H A D | ssl3_buffer.c | 168 size_t pipes; local 170 pipes = s->rlayer.numwpipes; 171 while (pipes > 0) { 172 wb = &RECORD_LAYER_get_wbuf(&s->rlayer)[pipes - 1]; 179 pipes--;
|
/netbsd-current/tests/fs/common/ |
H A D | fstest_nfs.c | 84 int pipes[2]; local 109 if (pipe(pipes) == -1) 116 close(pipes[0]); 117 if (dup2(pipes[1], 3) == -1) 124 close(pipes[1]); 135 if (read(pipes[0], &devnull, 4) == -1)
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn21/ |
H A D | amdgpu_dcn21_resource.c | 673 struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes); 983 display_e2e_pipe_params_st *pipes, 990 pipes[0].clks_cfg.voltage = vlevel; 991 pipes[0].clks_cfg.dcfclk_mhz = dml->soc.clock_limits[vlevel].dcfclk_mhz; 992 pipes[0].clks_cfg.socclk_mhz = dml->soc.clock_limits[vlevel].socclk_mhz; 998 wm_set->urgent_ns = get_wm_urgent(dml, pipes, pipe_cnt) * 1000; 999 wm_set->cstate_pstate.cstate_enter_plus_exit_ns = get_wm_stutter_enter_exit(dml, pipes, pipe_cnt) * 1000; 1000 wm_set->cstate_pstate.cstate_exit_ns = get_wm_stutter_exit(dml, pipes, pipe_cnt) * 1000; 1001 wm_set->cstate_pstate.pstate_change_ns = get_wm_dram_clock_change(dml, pipes, pipe_cnt) * 1000; 1002 wm_set->pte_meta_urgent_ns = get_wm_memory_trip(dml, pipes, pipe_cn 978 calculate_wm_set_for_vlevel( int vlevel, struct wm_range_table_entry *table_entry, struct dcn_watermarks *wm_set, struct display_mode_lib *dml, display_e2e_pipe_params_st *pipes, int pipe_cnt) argument 1044 dcn21_calculate_wm( struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes, int *out_pipe_cnt, int *pipe_split_from, int vlevel_req) argument 1139 display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_KERNEL); local 1628 dcn21_populate_dml_pipes_from_context( struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes) argument [all...] |
/netbsd-current/external/gpl3/binutils/dist/libiberty/ |
H A D | pex-unix.c | 1 /* Utilities to execute a program in a subprocess (possibly linked by pipes 581 volatile int pipes[2]; /* [0]:reader,[1]:writer. */ local 588 if (pipe2 ((int *)pipes, O_CLOEXEC)) 591 if (pipe ((int *)pipes)) 595 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1) 597 close (pipes[0]); 598 close (pipes[1]); 632 close (pipes[0]); 633 close (pipes[1]); 646 close (pipes[ [all...] |
/netbsd-current/external/gpl3/binutils.old/dist/libiberty/ |
H A D | pex-unix.c | 1 /* Utilities to execute a program in a subprocess (possibly linked by pipes 581 volatile int pipes[2]; /* [0]:reader,[1]:writer. */ local 588 if (pipe2 ((int *)pipes, O_CLOEXEC)) 591 if (pipe ((int *)pipes)) 595 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1) 597 close (pipes[0]); 598 close (pipes[1]); 632 close (pipes[0]); 633 close (pipes[1]); 646 close (pipes[ [all...] |
/netbsd-current/external/gpl3/gcc.old/dist/libiberty/ |
H A D | pex-unix.c | 1 /* Utilities to execute a program in a subprocess (possibly linked by pipes 581 volatile int pipes[2]; /* [0]:reader,[1]:writer. */ local 588 if (pipe2 ((int *)pipes, O_CLOEXEC)) 591 if (pipe ((int *)pipes)) 595 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1) 597 close (pipes[0]); 598 close (pipes[1]); 632 close (pipes[0]); 633 close (pipes[1]); 646 close (pipes[ [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/libiberty/ |
H A D | pex-unix.c | 1 /* Utilities to execute a program in a subprocess (possibly linked by pipes 581 volatile int pipes[2]; /* [0]:reader,[1]:writer. */ local 588 if (pipe2 ((int *)pipes, O_CLOEXEC)) 591 if (pipe ((int *)pipes)) 595 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1) 597 close (pipes[0]); 598 close (pipes[1]); 632 close (pipes[0]); 633 close (pipes[1]); 646 close (pipes[ [all...] |
/netbsd-current/external/gpl3/gcc/dist/libiberty/ |
H A D | pex-unix.c | 1 /* Utilities to execute a program in a subprocess (possibly linked by pipes 581 volatile int pipes[2]; /* [0]:reader,[1]:writer. */ local 588 if (pipe2 ((int *)pipes, O_CLOEXEC)) 591 if (pipe ((int *)pipes)) 595 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1) 597 close (pipes[0]); 598 close (pipes[1]); 632 close (pipes[0]); 633 close (pipes[1]); 646 close (pipes[ [all...] |
/netbsd-current/external/gpl3/gdb/dist/libiberty/ |
H A D | pex-unix.c | 1 /* Utilities to execute a program in a subprocess (possibly linked by pipes 581 volatile int pipes[2]; /* [0]:reader,[1]:writer. */ local 588 if (pipe2 ((int *)pipes, O_CLOEXEC)) 591 if (pipe ((int *)pipes)) 595 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1) 597 close (pipes[0]); 598 close (pipes[1]); 632 close (pipes[0]); 633 close (pipes[1]); 646 close (pipes[ [all...] |
/netbsd-current/external/gpl2/diffutils/dist/src/ |
H A D | util.c | 204 int pipes[2]; 206 if (pipe (pipes) != 0) 215 close (pipes[1]); 216 if (pipes[0] != STDIN_FILENO) 218 if (dup2 (pipes[0], STDIN_FILENO) < 0) 220 close (pipes[0]); 228 close (pipes[0]); 229 outfile = fdopen (pipes[1], "w"); 201 int pipes[2]; local
|
/netbsd-current/external/gpl2/gmake/dist/w32/include/ |
H A D | sub_proc.h | 58 EXTERN_DECL(void process_pipes, (HANDLE proc, int pipes[3]));
|
/netbsd-current/external/gpl2/xcvs/dist/diff/ |
H A D | util.c | 220 int pipes[2]; 222 if (pipe (pipes) != 0) 233 close (pipes[1]); 234 if (pipes[0] != STDIN_FILENO) 236 if (dup2 (pipes[0], STDIN_FILENO) < 0) 238 close (pipes[0]); 246 close (pipes[0]); 247 outfile = fdopen (pipes[1], "w"); 217 int pipes[2]; local
|