Commit e1a0f210 authored by Federico Vaga's avatar Federico Vaga

lib: use same patter for hmq function name

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 345b6a12
......@@ -25,10 +25,8 @@ static inline int wrtd_in_send_and_receive_sync(struct wrtd_desc *wrtd,
return -1;
/* Send the message and get answer */
err = wrnc_slot_send_and_receive_sync(hmq,
WRTD_OUT_TDC_CONTROL,
msg,
WRTD_DEFAULT_TIMEOUT);
err = wrnc_hmq_send_and_receive_sync(hmq, WRTD_OUT_TDC_CONTROL, msg,
WRTD_DEFAULT_TIMEOUT);
wrnc_hmq_close(hmq);
return err;
......@@ -541,7 +539,7 @@ int wrtd_in_read_log(struct wrtd_node *dev, struct wrtd_log_entry *log,
struct wrnc_msg *msg;
while (remaining) {
msg = wrnc_slot_receive(wrtd->wrnc, WRTD_OUT_FD_LOGGING);
msg = wrnc_hmq_receive(wrtd->wrnc, WRTD_OUT_FD_LOGGING);
if (!msg)
break;
......
......@@ -24,10 +24,8 @@ static inline int wrtd_out_send_and_receive_sync(struct wrtd_desc *wrtd,
if (!hmq)
return -1;
err = wrnc_slot_send_and_receive_sync(hmq,
WRTD_OUT_FD_CONTROL,
msg,
WRTD_DEFAULT_TIMEOUT);
err = wrnc_hmq_send_and_receive_sync(hmq, WRTD_OUT_FD_CONTROL, msg,
WRTD_DEFAULT_TIMEOUT);
wrnc_hmq_close(hmq);
......
......@@ -614,10 +614,10 @@ void wrnc_hmq_close(struct wrnc_hmq *hmq)
* @param[in] timeout_ms maximum ms to wait for an answer
* @return 0 on success, -1 on error and errno is set appropriately
*/
int wrnc_slot_send_and_receive_sync(struct wrnc_hmq *hmq,
unsigned int index_out,
struct wrnc_msg *msg,
unsigned int timeout_ms)
int wrnc_hmq_send_and_receive_sync(struct wrnc_hmq *hmq,
unsigned int index_out,
struct wrnc_msg *msg,
unsigned int timeout_ms)
{
struct wrnc_msg_sync smsg;
int err;
......@@ -815,7 +815,7 @@ int wrnc_cpu_disable(struct wrnc_dev *wrnc, unsigned int index)
* @param[in] hmq HMQ device descriptor
* @return a WRNC message, NULL on error and errno is set appropriately
*/
struct wrnc_msg *wrnc_slot_receive(struct wrnc_hmq *hmq)
struct wrnc_msg *wrnc_hmq_receive(struct wrnc_hmq *hmq)
{
struct wrnc_msg *msg;
int n;
......@@ -846,7 +846,7 @@ struct wrnc_msg *wrnc_slot_receive(struct wrnc_hmq *hmq)
* @param[in] msg message to send
* @return 0 on success, -1 otherwise and errno is set appropriately
*/
int wrnc_slot_send(struct wrnc_hmq *hmq, struct wrnc_msg *msg)
int wrnc_hmq_send(struct wrnc_hmq *hmq, struct wrnc_msg *msg)
{
int n;
......
......@@ -129,9 +129,9 @@ extern struct wrnc_hmq *wrnc_hmq_open(struct wrnc_dev *wrnc,
unsigned int index,
unsigned long flags);
extern void wrnc_hmq_close(struct wrnc_hmq *hmq);
extern struct wrnc_msg *wrnc_slot_receive(struct wrnc_hmq *hmq);
extern int wrnc_slot_send(struct wrnc_hmq *hmq, struct wrnc_msg *msg);
extern int wrnc_slot_send_and_receive_sync(struct wrnc_hmq *hmq,
extern struct wrnc_msg *wrnc_hmq_receive(struct wrnc_hmq *hmq);
extern int wrnc_hmq_send(struct wrnc_hmq *hmq, struct wrnc_msg *msg);
extern int wrnc_hmq_send_and_receive_sync(struct wrnc_hmq *hmq,
unsigned int index_out,
struct wrnc_msg *msg,
unsigned int timeout_ms);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment