handle             19 sample/dso/ftdmload.c static int (*real_dlclose)(void *handle) = NULL;
handle             41 sample/dso/ftdmload.c 	void *handle = NULL;
handle             52 sample/dso/ftdmload.c 	handle = real_dlopen(filename, flag);
handle             53 sample/dso/ftdmload.c 	if (!handle) {
handle             56 sample/dso/ftdmload.c 	ftdm_log(FTDM_LOG_NOTICE, "Loaded %s with handle %p\n", filename, handle);
handle             57 sample/dso/ftdmload.c 	return handle;
handle             60 sample/dso/ftdmload.c int dlclose(void *handle)
handle             73 sample/dso/ftdmload.c 	ftdm_log(FTDM_LOG_NOTICE, "Unloading %p\n", handle);
handle             74 sample/dso/ftdmload.c 	return real_dlclose(handle);
handle            135 src/fsk.c      	dsp_fsk_handle_t	*handle;
handle            137 src/fsk.c      	handle = ftdm_malloc(sizeof(*handle));
handle            138 src/fsk.c      	if (!handle) {
handle            142 src/fsk.c      	memset(handle, 0, sizeof(*handle));
handle            145 src/fsk.c      	memcpy(&handle->attr, attr, sizeof(*attr));
handle            149 src/fsk.c      		handle->downsampling_count = attr->sample_rate / fsk_modem_definitions[FSK_BELL202].freq_mark / 6;
handle            151 src/fsk.c      		handle->downsampling_count = 1;
handle            153 src/fsk.c      	handle->current_downsample = 1;
handle            156 src/fsk.c      	handle->corrsize = attr->sample_rate / handle->downsampling_count / fsk_modem_definitions[FSK_BELL202].freq_mark;
handle            160 src/fsk.c      		handle->correlates[i] = ftdm_malloc(sizeof(double) * handle->corrsize);
handle            161 src/fsk.c      		if (handle->correlates[i] == NULL) {
handle            163 src/fsk.c      			dsp_fsk_destroy(&handle);
handle            169 src/fsk.c      	phi_mark = 2. * M_PI / ((double) attr->sample_rate / (double) handle->downsampling_count / (double) fsk_modem_definitions[FSK_BELL202].freq_mark);
handle            170 src/fsk.c      	phi_space = 2. * M_PI / ((double) attr->sample_rate / (double) handle->downsampling_count / (double) fsk_modem_definitions[FSK_BELL202].freq_space);
handle            172 src/fsk.c      	for (i = 0; i < handle->corrsize; i++) {
handle            173 src/fsk.c      		handle->correlates[0][i] = sin(phi_mark * (double) i);
handle            174 src/fsk.c      		handle->correlates[1][i] = cos(phi_mark * (double) i);
handle            175 src/fsk.c      		handle->correlates[2][i] = sin(phi_space * (double) i);
handle            176 src/fsk.c      		handle->correlates[3][i] = cos(phi_space * (double) i);
handle            180 src/fsk.c      	handle->buffer = ftdm_malloc(sizeof(double) * handle->corrsize);
handle            181 src/fsk.c      	if (!handle->buffer) {				/* failed; back out memory allocations */
handle            182 src/fsk.c      		dsp_fsk_destroy(&handle);
handle            185 src/fsk.c      	memset(handle->buffer, 0, sizeof(double) * handle->corrsize);
handle            186 src/fsk.c      	handle->ringstart = 0;
handle            189 src/fsk.c      	handle->cellpos = 0;
handle            190 src/fsk.c      	handle->celladj = fsk_modem_definitions[FSK_BELL202].baud_rate / (double) attr->sample_rate * (double) handle->downsampling_count;
handle            193 src/fsk.c      	if (handle->attr.bytehandler) {
handle            198 src/fsk.c      		dsp_uart_attr_set_bytehandler(&uart_attr, handle->attr.bytehandler, handle->attr.bytehandler_arg);
handle            201 src/fsk.c      			dsp_fsk_destroy(&handle);
handle            204 src/fsk.c      		handle->attr.bithandler = dsp_uart_bit_handler;
handle            205 src/fsk.c      		handle->attr.bithandler_arg = uart_handle;
handle            208 src/fsk.c      	return handle;
handle            218 src/fsk.c      void dsp_fsk_destroy(dsp_fsk_handle_t **handle)
handle            223 src/fsk.c      	if (*handle == NULL) {
handle            228 src/fsk.c      		if ((*handle)->correlates[i] != NULL) {
handle            229 src/fsk.c      			ftdm_safe_free((*handle)->correlates[i]);
handle            230 src/fsk.c      			(*handle)->correlates[i] = NULL;
handle            234 src/fsk.c      	if ((*handle)->buffer != NULL) {
handle            235 src/fsk.c      		ftdm_safe_free((*handle)->buffer);
handle            236 src/fsk.c      		(*handle)->buffer = NULL;
handle            239 src/fsk.c      	if ((*handle)->attr.bytehandler) {
handle            240 src/fsk.c      		dsp_uart_handle_t** dhandle = (void *)(&(*handle)->attr.bithandler_arg);
handle            244 src/fsk.c      	ftdm_safe_free(*handle);
handle            245 src/fsk.c      	*handle = NULL;
handle            261 src/fsk.c      dsp_fsk_sample (dsp_fsk_handle_t *handle, double normalized_sample)
handle            268 src/fsk.c      	if (handle->downsampling_count != 1) {
handle            269 src/fsk.c      		if (handle->current_downsample < handle->downsampling_count) {
handle            270 src/fsk.c      			handle->current_downsample++;
handle            273 src/fsk.c      		handle->current_downsample = 1;
handle            277 src/fsk.c      	handle->buffer[handle->ringstart++] = normalized_sample;
handle            278 src/fsk.c      	if (handle->ringstart >= handle->corrsize) {
handle            279 src/fsk.c      		handle->ringstart = 0;
handle            284 src/fsk.c      	j = handle->ringstart;
handle            285 src/fsk.c      	for (i = 0; i < handle->corrsize; i++) {
handle            286 src/fsk.c      		if (j >= handle->corrsize) {
handle            289 src/fsk.c      		val = handle->buffer[j];
handle            290 src/fsk.c      		factors[0] += handle->correlates[0][i] * val;
handle            291 src/fsk.c      		factors[1] += handle->correlates[1][i] * val;
handle            292 src/fsk.c      		factors[2] += handle->correlates[2][i] * val;
handle            293 src/fsk.c      		factors[3] += handle->correlates[3][i] * val;
handle            298 src/fsk.c      	handle->previous_bit = handle->current_bit;
handle            299 src/fsk.c      	handle->current_bit = (factors[0] * factors[0] + factors[1] * factors[1] > factors[2] * factors[2] + factors[3] * factors[3]);
handle            302 src/fsk.c      	if (handle->previous_bit != handle->current_bit) {
handle            303 src/fsk.c      		handle->cellpos = 0.5;								/* adjust cell position to be in the middle of the cell */
handle            305 src/fsk.c      	handle->cellpos += handle->celladj;						/* walk the cell along */
handle            307 src/fsk.c      	if (handle->cellpos > 1.0) {
handle            308 src/fsk.c      		handle->cellpos -= 1.0;
handle            310 src/fsk.c      		switch (handle->state) {
handle            314 src/fsk.c      				(*handle->attr.bithandler) (handle->attr.bithandler_arg, handle->current_bit);
handle            320 src/fsk.c      				if (handle->last_bit != handle->current_bit) {
handle            321 src/fsk.c      					handle->conscutive_state_bits++;
handle            323 src/fsk.c      					handle->conscutive_state_bits = 0;
handle            326 src/fsk.c      				if (handle->conscutive_state_bits > 15) {
handle            327 src/fsk.c      					handle->state = FSK_STATE_CARRIERSIG;
handle            328 src/fsk.c      					handle->conscutive_state_bits = 0;
handle            334 src/fsk.c      				if (handle->current_bit) {
handle            335 src/fsk.c      					handle->conscutive_state_bits++;
handle            337 src/fsk.c      					handle->conscutive_state_bits = 0;
handle            340 src/fsk.c      				if (handle->conscutive_state_bits > 15) {
handle            341 src/fsk.c      					handle->state = FSK_STATE_DATA;
handle            342 src/fsk.c      					handle->conscutive_state_bits = 0;
handle            348 src/fsk.c      		handle->last_bit = handle->current_bit;
handle           5224 src/ftdm_io.c  FT_DECLARE_NONSTD(ftdm_status_t) ftdm_console_stream_raw_write(ftdm_stream_handle_t *handle, uint8_t *data, ftdm_size_t datalen)
handle           5226 src/ftdm_io.c  	ftdm_size_t need = handle->data_len + datalen;
handle           5228 src/ftdm_io.c  	if (need >= handle->data_size) {
handle           5230 src/ftdm_io.c  		need += handle->alloc_chunk;
handle           5232 src/ftdm_io.c  		if (!(new_data = realloc(handle->data, need))) {
handle           5236 src/ftdm_io.c  		handle->data = new_data;
handle           5237 src/ftdm_io.c  		handle->data_size = need;
handle           5240 src/ftdm_io.c  	memcpy((uint8_t *) (handle->data) + handle->data_len, data, datalen);
handle           5241 src/ftdm_io.c  	handle->data_len += datalen;
handle           5242 src/ftdm_io.c  	handle->end = (uint8_t *) (handle->data) + handle->data_len;
handle           5243 src/ftdm_io.c  	*(uint8_t *)handle->end = '\0';
handle           5284 src/ftdm_io.c  FT_DECLARE_NONSTD(ftdm_status_t) ftdm_console_stream_write(ftdm_stream_handle_t *handle, const char *fmt, ...)
handle           5287 src/ftdm_io.c  	char *buf = handle->data;
handle           5288 src/ftdm_io.c  	char *end = handle->end;
handle           5292 src/ftdm_io.c  	if (handle->data_len >= handle->data_size) {
handle           5301 src/ftdm_io.c  		ftdm_size_t remaining = handle->data_size - handle->data_len;
handle           5304 src/ftdm_io.c  		if ((remaining < need) && handle->alloc_len) {
handle           5308 src/ftdm_io.c  			new_len = handle->data_size + need + handle->alloc_chunk;
handle           5309 src/ftdm_io.c  			if ((new_data = ftdm_realloc(handle->data, new_len))) {
handle           5310 src/ftdm_io.c  				handle->data_size = handle->alloc_len = new_len;
handle           5311 src/ftdm_io.c  				handle->data = new_data;
handle           5312 src/ftdm_io.c  				buf = handle->data;
handle           5313 src/ftdm_io.c  				remaining = handle->data_size - handle->data_len;
handle           5314 src/ftdm_io.c  				handle->end = (uint8_t *) (handle->data) + handle->data_len;
handle           5315 src/ftdm_io.c  				end = handle->end;
handle           5328 src/ftdm_io.c  			handle->data_len = strlen(buf);
handle           5329 src/ftdm_io.c  			handle->end = (uint8_t *) (handle->data) + handle->data_len;
handle             67 src/ftdm_threadmutex.c 	void *handle;
handle             69 src/ftdm_threadmutex.c 	pthread_t handle;
handle            118 src/ftdm_threadmutex.c 	thread->handle = (void *)_beginthreadex(NULL, (unsigned)thread->stack_size, (unsigned int (__stdcall *)(void *))thread_launch, thread, 0, NULL);
handle            119 src/ftdm_threadmutex.c 	if (!thread->handle) {
handle            122 src/ftdm_threadmutex.c 	CloseHandle(thread->handle);
handle            134 src/ftdm_threadmutex.c 	if (pthread_create(&thread->handle, &thread->attribute, thread_launch, thread) != 0) goto failpthread;
handle            106 src/ftmod/ftmod_pika/ftmod_pika.c 	TPikaHandle handle;
handle            112 src/ftmod/ftmod_pika/ftmod_pika.c 	TPikaHandle handle;
handle            385 src/ftmod/ftmod_pika/ftmod_pika.c 		if ((type == FTDM_CHAN_TYPE_B || type == FTDM_CHAN_TYPE_DQ921) && !span_data->handle) {
handle            409 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_SPAN_Open(globals.open_boards[boardno], spanno, NULL, &span_data->handle), PK_SUCCESS, error);
handle            410 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_SPAN_GetConfig(span_data->handle, &span_data->span_config), PK_SUCCESS, error);
handle            411 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_QUEUE_Attach(span_data->event_queue, span_data->handle, (PK_VOID*) span), PK_SUCCESS, error);
handle            417 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_TRUNK_Open(globals.open_boards[boardno], x, &chan_data->handle), PK_SUCCESS, error);
handle            418 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_TRUNK_Seize(chan_data->handle), PK_SUCCESS, error);
handle            421 src/ftmod/ftmod_pika/ftmod_pika.c 				TRY_OR_DIE(PKH_TRUNK_GetConfig(chan_data->handle, &trunkConfig), PK_SUCCESS, error);
handle            426 src/ftmod/ftmod_pika/ftmod_pika.c 				TRY_OR_DIE(PKH_TRUNK_SetConfig(chan_data->handle, &trunkConfig), PK_SUCCESS, error);
handle            432 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_QUEUE_Attach(span_data->event_queue, chan_data->handle, (PK_VOID*) chan), PK_SUCCESS, error);
handle            433 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_TRUNK_GetMediaStreams(chan_data->handle, &chan_data->media_in, &chan_data->media_out), PK_SUCCESS, error);
handle            439 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_TRUNK_Start(chan_data->handle), PK_SUCCESS, error);
handle            444 src/ftmod/ftmod_pika/ftmod_pika.c 				TRY_OR_DIE(PKH_PHONE_GetConfig(chan_data->handle, &phoneConfig), PK_SUCCESS, error);
handle            448 src/ftmod/ftmod_pika/ftmod_pika.c 				TRY_OR_DIE(PKH_PHONE_SetConfig(chan_data->handle, &phoneConfig), PK_SUCCESS, error);
handle            453 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_PHONE_Open(globals.open_boards[boardno], x, &chan_data->handle), PK_SUCCESS, error);
handle            454 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_PHONE_Seize(chan_data->handle), PK_SUCCESS, error);
handle            455 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_PHONE_GetMediaStreams(chan_data->handle, &chan_data->media_in, &chan_data->media_out), PK_SUCCESS, error);
handle            456 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_QUEUE_Attach(span_data->event_queue, chan_data->handle, (PK_VOID*) chan), PK_SUCCESS, error);
handle            462 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_PHONE_Start(chan_data->handle), PK_SUCCESS, error);
handle            464 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_SPAN_SeizeChannel(span_data->handle, x), PK_SUCCESS, error);
handle            465 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_SPAN_GetMediaStreams(span_data->handle, x, &chan_data->media_in, &chan_data->media_out), PK_SUCCESS, error);
handle            472 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_SPAN_HDLC_Open(span_data->handle, PKH_SPAN_HDLC_MODE_NORMAL, &chan_data->handle), PK_SUCCESS, error);
handle            473 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_SPAN_HDLC_GetConfig(chan_data->handle, &chan_data->hdlc_config), PK_SUCCESS, error);
handle            475 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_SPAN_HDLC_SetConfig(chan_data->handle, &chan_data->hdlc_config), PK_SUCCESS, error);
handle            477 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_QUEUE_Attach(chan_data->media_in_queue, chan_data->handle, (PK_VOID*) chan), PK_SUCCESS, error);
handle            478 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_QUEUE_Attach(span_data->event_queue, chan_data->handle, (PK_VOID*) chan), PK_SUCCESS, error);
handle            502 src/ftmod/ftmod_pika/ftmod_pika.c 			PKH_SPAN_SetConfig(span_data->handle, &span_data->span_config);
handle            503 src/ftmod/ftmod_pika/ftmod_pika.c 			TRY_OR_DIE(PKH_SPAN_Start(span_data->handle), PK_SUCCESS, error);
handle            763 src/ftmod/ftmod_pika/ftmod_pika.c 		if ((status = PKH_SPAN_HDLC_GetMessage(chan_data->handle, data, *datalen)) == PK_SUCCESS) {
handle            802 src/ftmod/ftmod_pika/ftmod_pika.c 		if ((status = PKH_SPAN_HDLC_SendMessage(chan_data->handle, data, *datalen)) == PK_SUCCESS) {
handle            832 src/ftmod/ftmod_pika/ftmod_pika.c 			if ((pk_status = PKH_TRUNK_SetHookSwitch(chan_data->handle, PKH_TRUNK_OFFHOOK)) != PK_SUCCESS) {
handle            842 src/ftmod/ftmod_pika/ftmod_pika.c 			if ((pk_status = PKH_TRUNK_SetHookSwitch(chan_data->handle, PKH_TRUNK_ONHOOK)) != PK_SUCCESS) {
handle            852 src/ftmod/ftmod_pika/ftmod_pika.c 			if ((pk_status = PKH_PHONE_RingStart(chan_data->handle, 0, 0)) != PK_SUCCESS) {
handle            862 src/ftmod/ftmod_pika/ftmod_pika.c 			if ((pk_status = PKH_PHONE_RingStop(chan_data->handle)) != PK_SUCCESS) {
handle           1245 src/ftmod/ftmod_pika/ftmod_pika.c 		PKH_QUEUE_Detach(span_data->event_queue, chan_data->handle);
handle           1246 src/ftmod/ftmod_pika/ftmod_pika.c 		PKH_PHONE_Close(chan_data->handle);
handle           1249 src/ftmod/ftmod_pika/ftmod_pika.c 		PKH_QUEUE_Detach(span_data->event_queue, chan_data->handle);
handle           1250 src/ftmod/ftmod_pika/ftmod_pika.c 		PKH_TRUNK_Close(chan_data->handle);
handle           1253 src/ftmod/ftmod_pika/ftmod_pika.c 		PKH_SPAN_Stop(span_data->handle);
handle            110 src/include/private/fsk.h void					dsp_fsk_destroy(dsp_fsk_handle_t **handle);
handle            112 src/include/private/fsk.h void					dsp_fsk_sample(dsp_fsk_handle_t *handle, double normalized_sample);
handle            244 src/include/private/ftdm_core.h FT_DECLARE_NONSTD(ftdm_status_t) ftdm_console_stream_raw_write(ftdm_stream_handle_t *handle, uint8_t *data, ftdm_size_t datalen);
handle            245 src/include/private/ftdm_core.h FT_DECLARE_NONSTD(ftdm_status_t) ftdm_console_stream_write(ftdm_stream_handle_t *handle, const char *fmt, ...);
handle            305 src/include/private/ftdm_types.h typedef ftdm_status_t (*ftdm_stream_handle_raw_write_function_t) (ftdm_stream_handle_t *handle, uint8_t *data, ftdm_size_t datalen);
handle            306 src/include/private/ftdm_types.h typedef ftdm_status_t (*ftdm_stream_handle_write_function_t) (ftdm_stream_handle_t *handle, const char *fmt, ...);
handle             75 src/include/private/uart.h void					dsp_uart_destroy(dsp_uart_handle_t **handle);
handle             77 src/include/private/uart.h void					dsp_uart_bit_handler(void *handle, int bit);
handle             78 src/uart.c     	dsp_uart_handle_t *handle;
handle             80 src/uart.c     	handle = ftdm_malloc(sizeof (*handle));
handle             81 src/uart.c     	if (handle) {
handle             82 src/uart.c     		memset(handle, 0, sizeof (*handle));
handle             85 src/uart.c     		memcpy(&handle->attr, attr, sizeof (*attr));
handle             87 src/uart.c     	return handle;
handle             90 src/uart.c     void dsp_uart_destroy(dsp_uart_handle_t **handle)
handle             92 src/uart.c     	if (*handle) {
handle             93 src/uart.c     		ftdm_safe_free(*handle);
handle             94 src/uart.c     		*handle = NULL;
handle            101 src/uart.c     	dsp_uart_handle_t *handle = (dsp_uart_handle_t *) x;
handle            103 src/uart.c     	if (!handle->have_start) {
handle            107 src/uart.c     		handle->have_start = 1;
handle            108 src/uart.c     		handle->data = 0;
handle            109 src/uart.c     		handle->nbits = 0;
handle            113 src/uart.c     	handle->data >>= 1;
handle            114 src/uart.c     	handle->data |= 0x80 * !!bit;
handle            115 src/uart.c     	handle->nbits++;
handle            117 src/uart.c     	if (handle->nbits == 8) {
handle            118 src/uart.c     		handle->attr.bytehandler(handle->attr.bytehandler_arg, handle->data);
handle            119 src/uart.c     		handle->nbits = 0;
handle            120 src/uart.c     		handle->data = 0;
handle            121 src/uart.c     		handle->have_start = 0;