Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 25 of 82) sorted by relevance

1234

/external/tinyalsa/
Dmixer.c59 struct mixer_ctl *ctl; member
73 if (mixer->ctl) { in mixer_close()
75 if (mixer->ctl[n].ename) { in mixer_close()
76 unsigned int max = mixer->ctl[n].info->value.enumerated.items; in mixer_close()
78 free(mixer->ctl[n].ename[m]); in mixer_close()
79 free(mixer->ctl[n].ename); in mixer_close()
82 free(mixer->ctl); in mixer_close()
116 mixer->ctl = calloc(elist.count, sizeof(struct mixer_ctl)); in mixer_open()
118 if (!mixer->ctl || !mixer->elem_info) in mixer_open()
140 mixer->ctl[n].info = ei; in mixer_open()
[all …]
Dtinymix.c43 static void tinymix_print_enum(struct mixer_ctl *ctl, const char *space,
130 struct mixer_ctl *ctl; in tinymix_list_controls() local
148 ctl = mixer_get_ctl(mixer, i); in tinymix_list_controls()
150 name = mixer_ctl_get_name(ctl); in tinymix_list_controls()
151 type = mixer_ctl_get_type_string(ctl); in tinymix_list_controls()
152 num_values = mixer_ctl_get_num_values(ctl); in tinymix_list_controls()
161 static void tinymix_print_enum(struct mixer_ctl *ctl, const char *space, in tinymix_print_enum() argument
167 int control_value = mixer_ctl_get_value(ctl, 0); in tinymix_print_enum()
170 num_enums = mixer_ctl_get_num_enums(ctl); in tinymix_print_enum()
172 string = mixer_ctl_get_enum_string(ctl, i); in tinymix_print_enum()
[all …]
/external/syslinux/core/fs/pxe/
Dftp.c155 if (socket->ctl) { in ftp_free()
156 core_tcp_close_file(socket->ctl); in ftp_free()
157 free_socket(socket->ctl); in ftp_free()
158 socket->ctl = NULL; in ftp_free()
169 ctlsock = socket->ctl ? PVT(socket->ctl) : NULL; in ftp_close_file()
171 resp = ftp_cmd_response(socket->ctl, "QUIT", NULL, NULL, NULL); in ftp_close_file()
173 resp = ftp_cmd_response(socket->ctl, NULL, NULL, NULL, NULL); in ftp_close_file()
207 socket->ctl = alloc_inode(inode->fs, 0, sizeof(struct pxe_pvt_inode)); in ftp_open()
208 if (!socket->ctl) in ftp_open()
210 ctlsock = PVT(socket->ctl); in ftp_open()
[all …]
/external/tinyalsa/include/tinyalsa/
Dasoundlib.h288 const char *mixer_ctl_get_name(struct mixer_ctl *ctl);
289 enum mixer_ctl_type mixer_ctl_get_type(struct mixer_ctl *ctl);
290 const char *mixer_ctl_get_type_string(struct mixer_ctl *ctl);
291 unsigned int mixer_ctl_get_num_values(struct mixer_ctl *ctl);
292 unsigned int mixer_ctl_get_num_enums(struct mixer_ctl *ctl);
293 const char *mixer_ctl_get_enum_string(struct mixer_ctl *ctl,
300 void mixer_ctl_update(struct mixer_ctl *ctl);
303 int mixer_ctl_get_percent(struct mixer_ctl *ctl, unsigned int id);
304 int mixer_ctl_set_percent(struct mixer_ctl *ctl, unsigned int id, int percent);
306 int mixer_ctl_get_value(struct mixer_ctl *ctl, unsigned int id);
[all …]
/external/valgrind/coregrind/
Dvgdb-invoker-solaris.c144 ctl_t ctl; in attach() local
145 ctl.cmd = PCSET; in attach()
146 ctl.arg.flags = PR_RLC; in attach()
147 size_t bytes = sizeof(ctl.cmd) + sizeof(ctl.arg.flags); in attach()
148 ssize_t written = write(ctl_fd, (void *) &ctl, bytes); in attach()
157 ctl.cmd = PCSTOP; in attach()
158 bytes = sizeof(ctl.cmd); in attach()
159 written = write(ctl_fd, (void *) &ctl, bytes); in attach()
378 ctl_t ctl; in invoke_agent() local
379 ctl.cmd = PCAGENT; in invoke_agent()
[all …]
/external/libpcap/
Dpcap-enet.c150 struct eniocb ctl; in initdevice() local
170 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) { in initdevice()
178 ctl.en_rtout = 1 * ctl.en_hz; in initdevice()
179 ctl.en_tr_etherhead = 1; in initdevice()
180 ctl.en_tap_network = 1; in initdevice()
181 ctl.en_multi_packet = 1; in initdevice()
182 ctl.en_maxlen = BUFSPACE; in initdevice()
184 ctl.en_rtout = 64; /* randomly picked value for HZ */ in initdevice()
186 if (ioctl(if_fd, EIOCSETP, &ctl) == -1) { in initdevice()
202 maxwaiting = ctl.en_maxwaiting; in initdevice()
Dpcap-dlpi.c184 struct strbuf ctl = { in pcap_read_dlpi() local
216 ctl.buf = (char *)ctlbuf; in pcap_read_dlpi()
217 ctl.maxlen = MAXDLBUF; in pcap_read_dlpi()
218 ctl.len = 0; in pcap_read_dlpi()
219 if (getmsg(p->fd, &ctl, &data, &flags) < 0) { in pcap_read_dlpi()
1082 struct strbuf ctl; local
1085 ctl.maxlen = 0;
1086 ctl.len = len;
1087 ctl.buf = ptr;
1090 if (putmsg(fd, &ctl, (struct strbuf *) NULL, flags) < 0) {
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D4-1.c52 pid_t child, ctl; in main() local
56 ctl = getpid(); in main()
67 if (ctl != getppid()) { in main()
77 ctl = waitpid(child, &status, 0); in main()
78 if (ctl != child) { in main()
D21-1.c73 pid_t child, ctl; in main() local
78 ctl = getpid(); in main()
89 ret = pthread_create(&th, NULL, threaded, &ctl); in main()
118 ctl = waitpid(child, &status, 0); in main()
120 if (ctl != child) in main()
D9-1.c55 pid_t child, ctl; in main() local
88 ctl = waitpid(child, &status, 0); in main()
90 if (ctl != child) { in main()
D3-1.c54 pid_t child, ctl; in main() local
72 ctl = waitpid(child, &status, 0); in main()
73 if (ctl != child) { in main()
D17-1.c59 pid_t child, ctl; in main() local
116 ctl = waitpid(child, &status, 0); in main()
118 if (ctl != child) { in main()
D17-2.c89 pid_t child, ctl; in main() local
147 ctl = waitpid(child, &status, 0); in main()
149 if (ctl != child) { in main()
D6-1.c78 pid_t child, ctl; in main() local
131 ctl = waitpid(child, &status, 0); in main()
133 if (ctl != child) { in main()
D18-1.c67 pid_t child, ctl; in main() local
130 ctl = waitpid(child, &status, 0); in main()
132 if (ctl != child) { in main()
D13-1.c62 pid_t child, ctl; in main() local
147 ctl = waitpid(child, &status, 0); in main()
149 if (ctl != child) { in main()
D14-1.c57 pid_t child, ctl; in main() local
113 ctl = waitpid(child, &status, 0); in main()
115 if (ctl != child) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
D2-2.c132 pid_t p1, p2, p3, ctl; in main() local
217 ctl = waitpid(p1, &status, 0); in main()
219 if (ctl != p1) { in main()
227 ctl = waitpid(p2, &status, 0); in main()
229 if (ctl != p2) { in main()
237 ctl = waitpid(p3, &status, 0); in main()
239 if (ctl != p3) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/
D6-1.c107 int *ctl; variable
112 *ctl = 1; in clnp()
124 *ctl = 0; in threaded()
176 if (*ctl != 1) in threaded()
248 ctl = (int *)mmaped; in main()
263 ret = pthread_create(&child, &scenarii[sc].ta, threaded, &ctl); in main()
D5-1.c154 int ctl = 0; in main() local
178 ctl = 0; in main()
182 &ctl); in main()
228 if (ctl != 3) { in main()
/external/vulkan-validation-layers/loader/
Dvk_loader_platform.h152 static inline void loader_platform_thread_once(pthread_once_t *ctl, in loader_platform_thread_once() argument
155 assert(ctl != NULL); in loader_platform_thread_once()
156 pthread_once(ctl, func); in loader_platform_thread_once()
340 static void loader_platform_thread_once(void *ctl, void (*func)(void)) { in loader_platform_thread_once() argument
342 assert(ctl != NULL); in loader_platform_thread_once()
343 InitOnceExecuteOnce((PINIT_ONCE)ctl, InitFuncWrapper, func, NULL); in loader_platform_thread_once()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
D3-3.c92 pid_t child, ctl; in main() local
153 ctl = waitpid(child, &status, 0); in main()
155 if (ctl != child) { in main()
D3-2.c92 pid_t child, ctl; in main() local
162 ctl = waitpid(child, &status, 0); in main()
164 if (ctl != child) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/
D1-2.c115 pid_t child, ctl; in threaded() local
163 ctl = waitpid(child, &status, 0); in threaded()
165 if (ctl != child) { in threaded()
D3-2.c104 pid_t child, ctl; in threaded() local
149 ctl = waitpid(child, &status, 0); in threaded()
151 if (ctl != child) { in threaded()

1234