/external/syslinux/com32/lib/sys/ |
H A D | openconsole.c | 38 int openconsole(const struct input_dev *idev, const struct output_dev *odev) argument 41 if (opendev(idev, odev, O_RDONLY) != 0) 44 if (opendev(idev, odev, O_WRONLY) != 1) 47 if (opendev(idev, odev, O_WRONLY) != 2)
|
H A D | opendev.c | 41 const struct output_dev *odev, int flags) 48 okflags = (idev ? idev->fileflags : 0) | (odev ? odev->fileflags : 0); 77 while (odev) { 78 if (odev->open && (e = odev->open(fp))) { 80 if (odev->fallback) { 81 odev = odev->fallback; 90 fp->oop = odev; 40 opendev(const struct input_dev *idev, const struct output_dev *odev, int flags) argument [all...] |
/external/adhd/cras/src/server/ |
H A D | cras_hfp_ag_profile.c | 77 * odev - The output iodev for HFP/HSP. 88 struct cras_iodev *odev; member in struct:audio_gateway 106 if (ag->odev) 107 hfp_iodev_destroy(ag->odev); 331 ag->odev = hfp_iodev_create(CRAS_STREAM_OUTPUT, ag->device, 335 if (!ag->idev && !ag->odev) {
|
H A D | cras_hfp_info.c | 39 * odev - The output iodev using this hfp_info. 52 struct cras_iodev *odev; member in struct:hfp_info 59 if (info->odev) 61 info->odev = dev; 80 if (dev->direction == CRAS_STREAM_OUTPUT && info->odev == dev) { 81 info->odev = NULL; 92 return info->odev || info->idev; 285 if (info->odev) {
|
H A D | cras_bt_device.c | 450 struct cras_iodev *odev = device->bt_iodevs[CRAS_STREAM_OUTPUT]; local 453 return odev && cras_bt_io_get_profile( 454 odev, CRAS_BT_DEVICE_PROFILE_A2DP_SOURCE);
|
H A D | cras_iodev.c | 44 static int default_no_stream_playback(struct cras_iodev *odev) argument 48 unsigned int target_hw_level = odev->min_cb_level * 2; 52 rc = cras_iodev_frames_queued(odev, &hw_tstamp); 58 odev->info.idx, hw_level, target_hw_level); 60 fr_to_write = cras_iodev_buffer_avail(odev, hw_level); 63 return cras_iodev_fill_odev_zeros(odev, fr_to_write); 89 static unsigned int dev_playback_frames(struct cras_iodev* odev) argument 94 DL_FOREACH(odev->streams, curr) { 128 static int cras_iodev_no_stream_playback_transition(struct cras_iodev *odev, argument 133 if (odev 163 output_should_mute(struct cras_iodev *odev) argument 173 cras_iodev_is_zero_volume(const struct cras_iodev *odev) argument 216 cras_iodev_output_event_sample_ready(struct cras_iodev *odev) argument 1085 cras_iodev_fill_odev_zeros(struct cras_iodev *odev, unsigned int frames) argument 1116 cras_iodev_output_underrun(struct cras_iodev *odev) argument 1123 cras_iodev_odev_should_wake(const struct cras_iodev *odev) argument 1136 cras_iodev_frames_to_play_in_sleep(struct cras_iodev *odev, unsigned int *hw_level, struct timespec *hw_tstamp) argument 1161 cras_iodev_default_no_stream_playback(struct cras_iodev *odev, int enable) argument 1168 cras_iodev_prepare_output_before_write_samples(struct cras_iodev *odev) argument 1225 struct cras_iodev *odev = (struct cras_iodev *)data; local 1230 cras_iodev_start_ramp(struct cras_iodev *odev, enum CRAS_IODEV_RAMP_REQUEST request) argument [all...] |
H A D | audio_thread.c | 209 static void fill_odevs_zeros_min_level(struct cras_iodev *odev) argument 211 cras_iodev_fill_odev_zeros(odev, odev->min_buffer_level); 581 struct cras_iodev *odev = adev->dev; local 585 delay = cras_iodev_delay_frames(odev); 666 struct cras_iodev *odev = adev->dev; local 669 unsigned int frame_bytes = cras_get_format_bytes(odev->ext_format); 674 max_offset = cras_iodev_max_stream_offset(odev); 720 offset = cras_iodev_stream_offset(odev, curr); 723 nwritten = dev_stream_mix(curr, odev 1147 struct cras_iodev *odev = adev->dev; local [all...] |
H A D | cras_alsa_io.c | 1659 static int adjust_appl_ptr(struct cras_iodev *odev) argument 1661 struct alsa_io *aio = (struct alsa_io *)odev; 1668 odev->min_buffer_level + odev->min_cb_level); 1671 static int alsa_output_underrun(struct cras_iodev *odev) argument 1676 rc = fill_whole_buffer_with_zeros(odev); 1680 return adjust_appl_ptr(odev); 1683 static int possibly_enter_free_run(struct cras_iodev *odev) argument 1685 struct alsa_io *aio = (struct alsa_io *)odev; 1688 unsigned int target_hw_level = odev 1723 leave_free_run(struct cras_iodev *odev) argument 1749 no_stream(struct cras_iodev *odev, int enable) argument 1757 output_should_wake(const struct cras_iodev *odev) argument [all...] |
/external/adhd/cras/src/tests/ |
H A D | bt_io_unittest.cc | 432 int cras_iodev_default_no_stream_playback(struct cras_iodev *odev, int enable) argument
|
H A D | rclient_unittest.cc | 652 struct cras_iodev *odev) 651 audio_thread_add_output_dev(struct audio_thread *thread, struct cras_iodev *odev) argument
|
H A D | audio_thread_unittest.cc | 273 struct cras_iodev odev; local 281 SetupDevice(&odev, CRAS_STREAM_OUTPUT); 289 thread_add_open_dev(thread_, &odev); 292 EXPECT_EQ(adev->dev, &odev); 296 thread_rm_open_dev(thread_, &odev); 981 int cras_iodev_fill_odev_zeros(struct cras_iodev *odev, unsigned int frames) argument 987 int cras_iodev_output_underrun(struct cras_iodev *odev) argument 993 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev *odev) argument 996 odev->state = cras_iodev_prepare_output_before_write_samples_state; 1010 unsigned int cras_iodev_frames_to_play_in_sleep(struct cras_iodev *odev, argument 1019 cras_iodev_odev_should_wake(const struct cras_iodev *odev) argument 1059 cras_iodev_start_ramp(struct cras_iodev *odev, enum CRAS_IODEV_RAMP_REQUEST request) argument [all...] |
H A D | iodev_unittest.cc | 545 static int no_stream(struct cras_iodev *odev, int enable) argument 550 return cras_iodev_default_no_stream_playback(odev, enable); 553 static int output_should_wake(const struct cras_iodev *odev) argument
|
H A D | alsa_io_unittest.cc | 2749 int cras_iodev_fill_odev_zeros(struct cras_iodev *odev, unsigned int frames) argument 2795 int cras_iodev_default_no_stream_playback(struct cras_iodev *odev, int enable) argument
|
/external/iputils/Modules/ |
H A D | pg3.c | 78 pgset "odev eth0" 149 struct net_device *odev; local 153 odev = __dev_get_by_name(pg_outdev); 154 if (!odev) { 159 if (odev->type != ARPHRD_ETHER) { 164 if (!netif_running(odev)) { 169 for(p1=6,p2=0; p1 < odev->addr_len+6;p1++) 170 hh[p1]=odev->dev_addr[p2++]; 173 if (odev->ip_ptr) { 174 struct in_device *in_dev = odev 239 fill_packet(struct net_device *odev, __u32 saddr) argument 344 struct net_device *odev; local [all...] |
/external/iproute2/ip/ |
H A D | iproute.c | 1682 char *odev = NULL; local 1723 odev = *argv; 1732 odev = *argv; 1775 if (idev || odev) { 1785 if (odev) { 1786 if ((idx = ll_name_to_index(odev)) == 0) { 1787 fprintf(stderr, "Cannot find device \"%s\"\n", odev); 1835 if (!odev && tb[RTA_OIF])
|
/external/toybox/toys/pending/ |
H A D | ip.c | 1446 int tb,idev,odev,proto; member in struct:__anon26964 1548 if (gfilter.odev != 0) if (!attr[RTA_OIF]) return 0; 1550 if (gfilter.odev !=0 && gfilter.odev != *(int*)RTA_DATA(attr[RTA_OIF])) 1671 char *idev = NULL, *odev = NULL; local 1708 else odev = *argv, flag = RTA_OIF; 1745 if (!odev && attr[RTA_OIF]) attr[RTA_OIF]->rta_type = 0; 1791 else gfilter.odev = dev;
|