/external/srec/srec/clib/ |
D | voicing.c | 45 void init_voicing_analysis(voicing_info *chan) in init_voicing_analysis() argument 47 chan->count = -1; in init_voicing_analysis() 48 chan->sil_count = 0; in init_voicing_analysis() 49 chan->speech_count = 0; in init_voicing_analysis() 50 chan->fast_count = 0; in init_voicing_analysis() 57 long voicing_analysis(voicing_info *chan, voicedata enval , int* log) in voicing_analysis() argument 62 if (chan->count < 0) in voicing_analysis() 64 chan->b1 = SHIFT_UP(enval, 8); in voicing_analysis() 65 chan->b0 = SHIFT_UP(enval, 8); in voicing_analysis() 66 chan->count = -1; in voicing_analysis() [all …]
|
/external/quake/quake/src/QW/client/ |
D | net_chan.c | 162 void Netchan_Setup (netchan_t *chan, netadr_t adr, int qport) in Netchan_Setup() argument 164 memset (chan, 0, sizeof(*chan)); in Netchan_Setup() 166 chan->remote_address = adr; in Netchan_Setup() 167 chan->last_received = realtime; in Netchan_Setup() 169 chan->message.data = chan->message_buf; in Netchan_Setup() 170 chan->message.allowoverflow = true; in Netchan_Setup() 171 chan->message.maxsize = sizeof(chan->message_buf); in Netchan_Setup() 173 chan->qport = qport; in Netchan_Setup() 175 chan->rate = 1.0/2500; in Netchan_Setup() 187 qboolean Netchan_CanPacket (netchan_t *chan) in Netchan_CanPacket() argument [all …]
|
D | net.h | 104 void Netchan_Transmit (netchan_t *chan, int length, byte *data); 107 qboolean Netchan_Process (netchan_t *chan); 108 void Netchan_Setup (netchan_t *chan, netadr_t adr, int qport); 110 qboolean Netchan_CanPacket (netchan_t *chan); 111 qboolean Netchan_CanReliable (netchan_t *chan);
|
D | snd_dma.c | 672 channel_t *chan; in S_UpdateAmbientSounds() local 691 chan = &channels[ambient_channel]; in S_UpdateAmbientSounds() 692 chan->sfx = ambient_sfx[ambient_channel]; in S_UpdateAmbientSounds() 699 if (chan->master_vol < vol) in S_UpdateAmbientSounds() 701 chan->master_vol += host_frametime * ambient_fade.value; in S_UpdateAmbientSounds() 702 if (chan->master_vol > vol) in S_UpdateAmbientSounds() 703 chan->master_vol = vol; in S_UpdateAmbientSounds() 705 else if (chan->master_vol > vol) in S_UpdateAmbientSounds() 707 chan->master_vol -= host_frametime * ambient_fade.value; in S_UpdateAmbientSounds() 708 if (chan->master_vol < vol) in S_UpdateAmbientSounds() [all …]
|
/external/kernel-headers/original/linux/ |
D | dmaengine.h | 115 static inline void dma_chan_get(struct dma_chan *chan) in dma_chan_get() argument 117 if (unlikely(chan->slow_ref)) in dma_chan_get() 118 kref_get(&chan->refcount); in dma_chan_get() 120 local_inc(&(per_cpu_ptr(chan->local, get_cpu())->refcount)); in dma_chan_get() 125 static inline void dma_chan_put(struct dma_chan *chan) in dma_chan_put() argument 127 if (unlikely(chan->slow_ref)) in dma_chan_put() 128 kref_put(&chan->refcount, dma_chan_cleanup); in dma_chan_put() 130 local_dec(&(per_cpu_ptr(chan->local, get_cpu())->refcount)); in dma_chan_put() 139 struct dma_chan *chan, enum dma_event event); 188 int (*device_alloc_chan_resources)(struct dma_chan *chan); [all …]
|
D | relay.h | 39 struct rchan *chan; /* associated channel */ member 166 extern void relay_close(struct rchan *chan); 167 extern void relay_flush(struct rchan *chan); 168 extern void relay_subbufs_consumed(struct rchan *chan, 171 extern void relay_reset(struct rchan *chan); 190 static inline void relay_write(struct rchan *chan, in relay_write() argument 198 buf = chan->buf[smp_processor_id()]; in relay_write() 199 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write() 218 static inline void __relay_write(struct rchan *chan, in __relay_write() argument 224 buf = chan->buf[get_cpu()]; in __relay_write() [all …]
|
/external/bluetooth/bluez/health/ |
D | hdp.c | 90 static struct hdp_channel *hdp_channel_ref(struct hdp_channel *chan) in hdp_channel_ref() argument 92 if (!chan) in hdp_channel_ref() 95 chan->ref++; in hdp_channel_ref() 97 DBG("health_channel_ref(%p): ref=%d", chan, chan->ref); in hdp_channel_ref() 98 return chan; in hdp_channel_ref() 101 static void free_health_channel(struct hdp_channel *chan) in free_health_channel() argument 103 if (chan->mdep == HDP_MDEP_ECHO) { in free_health_channel() 104 free_echo_data(chan->edata); in free_health_channel() 105 chan->edata = NULL; in free_health_channel() 108 mcap_mdl_unref(chan->mdl); in free_health_channel() [all …]
|
/external/speex/libspeex/ |
D | mdf.c | 694 int i,j, chan, speak; in speex_echo_cancellation() local 722 for (chan = 0; chan < C; chan++) in speex_echo_cancellation() 725 …filter_dc_notch16(in+chan, st->notch_radius, st->input+chan*st->frame_size, st->frame_size, st->no… in speex_echo_cancellation() 732 …tmp32 = SUB32(EXTEND32(st->input[chan*st->frame_size+i]), EXTEND32(MULT16_16_P15(st->preemph, st->… in speex_echo_cancellation() 747 st->memD[chan] = st->input[chan*st->frame_size+i]; in speex_echo_cancellation() 748 st->input[chan*st->frame_size+i] = EXTRACT16(tmp32); in speex_echo_cancellation() 797 for (chan = 0; chan < C; chan++) in speex_echo_cancellation() 801 spectral_mul_accum16(st->X, st->foreground+chan*N*K*M, st->Y+chan*N, N, M*K); in speex_echo_cancellation() 802 spx_ifft(st->fft_table, st->Y+chan*N, st->e+chan*N); in speex_echo_cancellation() 804 st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->e[chan*N+i+st->frame_size]); in speex_echo_cancellation() [all …]
|
/external/bluetooth/bluez/plugins/ |
D | echo.c | 43 static gboolean session_event(GIOChannel *chan, in session_event() argument 53 err = g_io_channel_read(chan, (gchar *) buf, sizeof(buf), &len); in session_event() 57 g_io_channel_write(chan, (const gchar *) buf, len, &written); in session_event() 62 static gboolean connect_event(GIOChannel *chan, in connect_event() argument 71 sk = g_io_channel_unix_get_fd(chan); in connect_event() 124 static GIOChannel *chan = NULL; variable 132 chan = setup_rfcomm(23); in echo_probe() 143 g_io_channel_unref(chan); in echo_remove()
|
/external/bluetooth/bluez/input/ |
D | server.c | 61 static void connect_event_cb(GIOChannel *chan, GError *err, gpointer data) in connect_event_cb() argument 73 bt_io_get(chan, BT_IO_L2CAP, &gerr, in connect_event_cb() 81 g_io_channel_shutdown(chan, TRUE, NULL); in connect_event_cb() 87 ret = input_device_set_channel(&src, &dst, psm, chan); in connect_event_cb() 94 int sk = g_io_channel_unix_get_fd(chan); in connect_event_cb() 99 g_io_channel_shutdown(chan, TRUE, NULL); in connect_event_cb() 142 static void confirm_event_cb(GIOChannel *chan, gpointer user_data) in confirm_event_cb() argument 149 bt_io_get(chan, BT_IO_L2CAP, &err, in confirm_event_cb() 164 server->confirm = g_io_channel_ref(chan); in confirm_event_cb() 176 g_io_channel_shutdown(chan, TRUE, NULL); in confirm_event_cb()
|
/external/wpa_supplicant_8/src/ap/ |
D | hw_features.c | 94 feature->channels[j].chan, in hostapd_get_hw_features() 197 struct hostapd_channel_data *chan = in ieee80211n_allowed_ht40_channel_pair() local 199 if (!(chan->flag & HOSTAPD_CHAN_DISABLED) && in ieee80211n_allowed_ht40_channel_pair() 200 chan->chan == sec_chan) { in ieee80211n_allowed_ht40_channel_pair() 639 struct hostapd_channel_data *chan = in hostapd_select_hw_mode() local 641 if (chan->chan == iface->conf->channel) { in hostapd_select_hw_mode() 642 if (chan->flag & HOSTAPD_CHAN_DISABLED) { in hostapd_select_hw_mode() 646 j, chan->chan, chan->flag); in hostapd_select_hw_mode() 658 struct hostapd_channel_data *chan = in hostapd_select_hw_mode() local 660 if (!(chan->flag & HOSTAPD_CHAN_DISABLED) && in hostapd_select_hw_mode() [all …]
|
D | beacon.c | 113 *pos++ = start->chan; in hostapd_eid_country_add() 115 *pos++ = (prev->chan - start->chan) / chan_spacing + 1; in hostapd_eid_country_add() 148 struct hostapd_channel_data *chan = &mode->channels[i]; in hostapd_eid_country() local 149 if (chan->flag & HOSTAPD_CHAN_DISABLED) in hostapd_eid_country() 152 prev->chan + chan_spacing == chan->chan && in hostapd_eid_country() 153 start->max_tx_power == chan->max_tx_power) { in hostapd_eid_country() 154 prev = chan; in hostapd_eid_country() 165 start = prev = chan; in hostapd_eid_country()
|
D | hw_features.h | 25 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan); 52 static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) in hostapd_hw_get_freq() argument
|
/external/bluetooth/bluez/audio/ |
D | main.c | 70 static void sco_server_cb(GIOChannel *chan, GError *err, gpointer data) in sco_server_cb() argument 82 bt_io_get(chan, BT_IO_SCO, &err, in sco_server_cb() 114 if (headset_connect_sco(device, chan) < 0) in sco_server_cb() 124 if (gateway_connect_sco(device, chan) < 0) in sco_server_cb() 129 sk = g_io_channel_unix_get_fd(chan); in sco_server_cb() 137 g_io_channel_shutdown(chan, TRUE, NULL); in sco_server_cb()
|
D | manager.c | 444 static gboolean hs_preauth_cb(GIOChannel *chan, GIOCondition cond, in hs_preauth_cb() argument 460 static void ag_confirm(GIOChannel *chan, gpointer data) in ag_confirm() argument 470 bt_io_get(chan, BT_IO_RFCOMM, &err, in ag_confirm() 513 if (headset_connect_rfcomm(device, chan) < 0) { in ag_confirm() 528 device->hs_preauth_id = g_io_add_watch(chan, in ag_confirm() 537 g_io_channel_shutdown(chan, TRUE, NULL); in ag_confirm() 557 static void hf_io_cb(GIOChannel *chan, gpointer data) in hf_io_cb() argument 566 bt_io_get(chan, BT_IO_RFCOMM, &err, in hf_io_cb() 596 if (gateway_connect_rfcomm(device, chan) < 0) { in hf_io_cb() 611 g_io_channel_shutdown(chan, TRUE, NULL); in hf_io_cb() [all …]
|
/external/quake/quake/src/WinQuake/ |
D | snd_dma.cpp | 676 channel_t *chan; in S_UpdateAmbientSounds() local 695 chan = &channels[ambient_channel]; in S_UpdateAmbientSounds() 696 chan->sfx = ambient_sfx[ambient_channel]; in S_UpdateAmbientSounds() 703 if (chan->master_vol < vol) in S_UpdateAmbientSounds() 705 chan->master_vol += (int) (host_frametime * ambient_fade.value); in S_UpdateAmbientSounds() 706 if (chan->master_vol > vol) in S_UpdateAmbientSounds() 707 chan->master_vol = (int) vol; in S_UpdateAmbientSounds() 709 else if (chan->master_vol > vol) in S_UpdateAmbientSounds() 711 chan->master_vol -= (int) (host_frametime * ambient_fade.value); in S_UpdateAmbientSounds() 712 if (chan->master_vol < vol) in S_UpdateAmbientSounds() [all …]
|
/external/bluetooth/bluez/attrib/ |
D | utils.c | 47 GIOChannel *chan; in gatt_connect() local 85 chan = bt_io_connect(BT_IO_L2CAP, connect_cb, NULL, NULL, &err, in gatt_connect() 93 chan = bt_io_connect(BT_IO_L2CAP, connect_cb, NULL, NULL, &err, in gatt_connect() 107 return chan; in gatt_connect()
|
/external/dropbear/ |
D | common-channel.c | 173 unsigned int chan; in getchannel_msg() local 175 chan = buf_getint(ses.payload); in getchannel_msg() 176 if (chan >= ses.chansize || ses.channels[chan] == NULL) { in getchannel_msg() 178 dropbear_exit("%s for unknown channel %d", kind, chan); in getchannel_msg() 180 dropbear_exit("Unknown channel %d", chan); in getchannel_msg() 183 return ses.channels[chan]; in getchannel_msg() 950 struct Channel* chan; in send_msg_channel_open_init() local 953 chan = newchannel(0, type, 0, 0); in send_msg_channel_open_init() 954 if (!chan) { in send_msg_channel_open_init() 962 chan->writefd = chan->readfd = fd; in send_msg_channel_open_init() [all …]
|
/external/bluetooth/bluez/network/ |
D | server.c | 114 static struct network_session *find_session(GSList *list, GIOChannel *chan) in find_session() argument 121 if (session->io == chan) { in find_session() 311 static void bnep_watchdog_cb(GIOChannel *chan, GIOCondition cond, in bnep_watchdog_cb() argument 319 session = find_session(ns->sessions, chan); in bnep_watchdog_cb() 328 g_io_channel_shutdown(chan, TRUE, NULL); in bnep_watchdog_cb() 440 static gboolean bnep_setup(GIOChannel *chan, in bnep_setup() argument 458 sk = g_io_channel_unix_get_fd(chan); in bnep_setup() 522 static void connect_event(GIOChannel *chan, GError *err, gpointer user_data) in connect_event() argument 532 g_io_channel_set_close_on_unref(chan, TRUE); in connect_event() 534 na->setup->watch = g_io_add_watch_full(chan, G_PRIORITY_DEFAULT, in connect_event() [all …]
|
/external/bluetooth/bluez/test/ |
D | hciemu.c | 83 GIOChannel *chan; member 135 static gboolean io_acl_data(GIOChannel *chan, GIOCondition cond, gpointer data); 136 static gboolean io_conn_ind(GIOChannel *chan, GIOCondition cond, gpointer data); 137 static gboolean io_hci_data(GIOChannel *chan, GIOCondition cond, gpointer data); 483 g_io_add_watch(conn->chan, G_IO_IN | G_IO_NVAL | G_IO_HUP, in accept_connection() 495 g_io_channel_shutdown(conn->chan, TRUE, NULL); in close_connection() 496 g_io_channel_unref(conn->chan); in close_connection() 588 conn->chan = g_io_channel_unix_new(sk); in create_connection() 591 g_io_add_watch(conn->chan, G_IO_IN | G_IO_NVAL | G_IO_HUP, in create_connection() 848 fd = g_io_channel_unix_get_fd(conn->chan); in hci_acl_data() [all …]
|
D | test-health | 209 chan = device.CreateChannel(app_path, "Reliable") variable 211 chan = device.CreateChannel(app_path, "Any") variable 213 print chan
|
D | test-health-sink | 76 chan = device.CreateChannel(app_path, "Any") variable 78 print chan
|
/external/bluetooth/bluez/src/ |
D | glib-helper.c | 188 static gboolean search_process_cb(GIOChannel *chan, GIOCondition cond, in search_process_cb() argument 218 static gboolean connect_watch(GIOChannel *chan, GIOCondition cond, in connect_watch() argument 227 sk = g_io_channel_unix_get_fd(chan); in connect_watch() 258 ctxt->io_id = g_io_add_watch(chan, in connect_watch() 281 GIOChannel *chan; in create_search_context() local 301 chan = g_io_channel_unix_new(sdp_get_socket(s)); in create_search_context() 302 (*ctxt)->io_id = g_io_add_watch(chan, in create_search_context() 305 g_io_channel_unref(chan); in create_search_context()
|
/external/bluetooth/bluez/gdbus/ |
D | mainloop.c | 94 static gboolean watch_func(GIOChannel *chan, GIOCondition cond, gpointer data) in watch_func() argument 135 GIOChannel *chan; in add_watch() local 146 chan = g_io_channel_unix_new(fd); in add_watch() 158 info->id = g_io_add_watch(chan, cond, watch_func, info); in add_watch() 160 g_io_channel_unref(chan); in add_watch()
|
/external/wpa_supplicant/ |
D | mlme.c | 459 wpa_hw_mode phymode, int chan, in ieee80211_sta_set_channel() argument 474 return wpa_drv_set_channel(wpa_s, phymode, chan, freq); in ieee80211_sta_set_channel() 2057 struct ieee80211_channel *chan = &mode->channels[c]; in ieee80211_ibss_allowed() 2058 if (chan->flag & IEEE80211_CHAN_W_SCAN && in ieee80211_ibss_allowed() 2059 chan->chan == local->conf.channel) { in ieee80211_ibss_allowed() 2060 if (chan->flag & IEEE80211_CHAN_W_IBSS) in ieee80211_ibss_allowed() 2525 struct wpa_channel_data *chan = &mode->channels[c]; in ieee80211_active_scan() local 2526 if (chan->flag & WPA_CHAN_W_SCAN && in ieee80211_active_scan() 2527 chan->chan == wpa_s->mlme.channel) { in ieee80211_active_scan() 2528 if (chan->flag & WPA_CHAN_W_ACTIVE_SCAN) in ieee80211_active_scan() [all …]
|