Home
last modified time | relevance | path

Searched refs:q_ptr (Results 1 – 12 of 12) sorted by relevance

/ThreadX-v6.2.1/utility/rtos_compatibility_layers/posix/
Dpx_mq_reset_queue.c68 VOID posix_reset_queue(POSIX_MSG_QUEUE * q_ptr) in posix_reset_queue() argument
71 q_ptr->in_use = TX_FALSE; in posix_reset_queue()
74 q_ptr -> name = NULL; in posix_reset_queue()
77 q_ptr -> open_count = 0; in posix_reset_queue()
80 q_ptr -> storage = NULL; in posix_reset_queue()
83 if (tx_byte_pool_delete(&(q_ptr ->vq_message_area))) in posix_reset_queue()
89 q_ptr -> px_queue_id = 0; in posix_reset_queue()
92 q_ptr -> unlink_flag = TX_FALSE; in posix_reset_queue()
Dpx_mq_close.c77 POSIX_MSG_QUEUE * q_ptr; in mq_close() local
81 q_ptr = (POSIX_MSG_QUEUE * )Queue; in mq_close()
84 if ( (!q_ptr) || ( (q_ptr -> px_queue_id) != PX_QUEUE_ID)) in mq_close()
119 if( q_ptr->open_count ) in mq_close()
121 q_ptr ->open_count--; in mq_close()
125 if( (! q_ptr ->open_count ) && (q_ptr->unlink_flag == TX_TRUE)) in mq_close()
128 if( posix_queue_delete( q_ptr )) in mq_close()
Dpx_mq_find_queue.c70 POSIX_MSG_QUEUE *q_ptr; in posix_find_queue() local
77 q_ptr = (POSIX_MSG_QUEUE*)NULL; in posix_find_queue()
80 for(index = 0,q_ptr = posix_queue_pool;index < POSIX_MAX_QUEUES ;index ++,q_ptr ++) in posix_find_queue()
84 if(q_ptr->in_use == TX_TRUE) in posix_find_queue()
86 dummy_queue_name = q_ptr->name; in posix_find_queue()
109 return(q_ptr); in posix_find_queue()
111 q_ptr = (POSIX_MSG_QUEUE*)NULL; in posix_find_queue()
112 return (q_ptr); in posix_find_queue()
Dpx_mq_get_new_queue.c73 POSIX_MSG_QUEUE *q_ptr; in posix_get_new_queue() local
94 for (i = 0, q_ptr = &(posix_queue_pool[0]); in posix_get_new_queue()
96 i++, q_ptr++) in posix_get_new_queue()
99 if (q_ptr->in_use == TX_FALSE) in posix_get_new_queue()
102 q_ptr->in_use = TX_TRUE; in posix_get_new_queue()
105 q_ptr->storage = bp; in posix_get_new_queue()
107 q_ptr->px_queue_id = PX_QUEUE_ID; in posix_get_new_queue()
120 return(q_ptr); in posix_get_new_queue()
Dpx_mq_unlink.c73 POSIX_MSG_QUEUE *q_ptr; in mq_unlink() local
90 if(!(q_ptr = posix_find_queue(mqName))) in mq_unlink()
100 if(q_ptr) in mq_unlink()
102 q_ptr->unlink_flag = TX_TRUE; in mq_unlink()
105 if(q_ptr->open_count == 0) in mq_unlink()
108 temp1 = posix_queue_delete( q_ptr ); in mq_unlink()
Dpx_mq_priority_search.c75 POSIX_MSG_QUEUE *q_ptr; in posix_priority_search() local
83 q_ptr = (POSIX_MSG_QUEUE * )queue; in posix_priority_search()
86 numMsgs = q_ptr -> queue.tx_queue_enqueued; in posix_priority_search()
89 source = q_ptr->queue.tx_queue_read; in posix_priority_search()
99 if(source == q_ptr->queue.tx_queue_end) in posix_priority_search()
100 source = q_ptr->queue.tx_queue_start; in posix_priority_search()
Dpx_mq_putback_queue.c70 POSIX_MSG_QUEUE * q_ptr; in posix_putback_queue() local
73 q_ptr = MAKE_POSIX_QUEUE(qid); in posix_putback_queue()
76 posix_memory_release(q_ptr->storage); in posix_putback_queue()
79 q_ptr->in_use = TX_FALSE; in posix_putback_queue()
Dpx_mq_queue_delete.c70 INT posix_queue_delete(POSIX_MSG_QUEUE * q_ptr) in posix_queue_delete() argument
75 queue = &(q_ptr->queue); in posix_queue_delete()
87 posix_reset_queue(q_ptr); in posix_queue_delete()
88 q_ptr = NULL; in posix_queue_delete()
Dpx_mq_send.c86 POSIX_MSG_QUEUE *q_ptr; in mq_send() local
96 q_ptr = (POSIX_MSG_QUEUE * )mqdes->f_data; in mq_send()
99 if ( (!q_ptr) || ( (q_ptr -> px_queue_id) != PX_QUEUE_ID)) in mq_send()
121 if ( (!q_ptr) || ( (q_ptr->queue.tx_queue_id) != TX_QUEUE_ID)) in mq_send()
160 if ( msg_len > (q_ptr->q_attr.mq_msgsize ) ) in mq_send()
172 temp1 = tx_byte_allocate((TX_BYTE_POOL * )&(q_ptr->vq_message_area), &bp, in mq_send()
Dpx_mq_receive.c83 POSIX_MSG_QUEUE * q_ptr; in mq_receive() local
94 q_ptr = (POSIX_MSG_QUEUE * )mqdes->f_data; in mq_receive()
97 if ((!q_ptr) || ( (q_ptr -> px_queue_id) != PX_QUEUE_ID)) in mq_receive()
117 if( msgLen < q_ptr -> q_attr.mq_msgsize ) in mq_receive()
Dpx_mq_get_queue_desc.c69 struct mq_des * posix_get_queue_des(POSIX_MSG_QUEUE * q_ptr) in posix_get_queue_des() argument
86 q_des->f_data = q_ptr; in posix_get_queue_des()
Dpx_int.h152 struct mq_des *posix_get_queue_des(POSIX_MSG_QUEUE * q_ptr);
154 VOID posix_reset_queue(POSIX_MSG_QUEUE * q_ptr);
164 INT posix_queue_delete(POSIX_MSG_QUEUE * q_ptr);