/** * mei_me_cl_is_active - check whether me client is active in the fw * * @me_cl: me client * * Return: true if the me client is active in the firmware
*/ staticinlinebool mei_me_cl_is_active(conststruct mei_me_client *me_cl)
{ return !list_empty_careful(&me_cl->list);
}
/** * mei_me_cl_uuid - return me client protocol name (uuid) * * @me_cl: me client * * Return: me client protocol name
*/ staticinlineconst uuid_le *mei_me_cl_uuid(conststruct mei_me_client *me_cl)
{ return &me_cl->props.protocol_name;
}
/** * mei_me_cl_ver - return me client protocol version * * @me_cl: me client * * Return: me client protocol version
*/ staticinline u8 mei_me_cl_ver(conststruct mei_me_client *me_cl)
{ return me_cl->props.protocol_version;
}
/** * mei_me_cl_max_conn - return me client max number of connections * * @me_cl: me client * * Return: me client max number of connections
*/ staticinline u8 mei_me_cl_max_conn(conststruct mei_me_client *me_cl)
{ return me_cl->props.max_number_of_connections;
}
/** * mei_me_cl_fixed - return me client fixed address, if any * * @me_cl: me client * * Return: me client fixed address
*/ staticinline u8 mei_me_cl_fixed(conststruct mei_me_client *me_cl)
{ return me_cl->props.fixed_address;
}
/** * mei_me_cl_vt - return me client vtag supported status * * @me_cl: me client * * Return: true if me client supports vt tagging
*/ staticinlinebool mei_me_cl_vt(conststruct mei_me_client *me_cl)
{ return me_cl->props.vt_supported == 1;
}
/** * mei_me_cl_max_len - return me client max msg length * * @me_cl: me client * * Return: me client max msg length
*/ staticinline u32 mei_me_cl_max_len(conststruct mei_me_client *me_cl)
{ return me_cl->props.max_msg_length;
}
/* * MEI IO Functions
*/ void mei_io_cb_free(struct mei_cl_cb *priv_cb);
struct mei_cl_vtag *mei_cl_vtag_alloc(struct file *fp, u8 vtag); conststruct file *mei_cl_fp_by_vtag(conststruct mei_cl *cl, u8 vtag); int mei_cl_vt_support_check(conststruct mei_cl *cl); /* * MEI input output function prototype
*/
/** * mei_cl_is_connected - host client is connected * * @cl: host client * * Return: true if the host client is connected
*/ staticinlinebool mei_cl_is_connected(conststruct mei_cl *cl)
{ return cl->state == MEI_FILE_CONNECTED;
}
/** * mei_cl_me_id - me client id * * @cl: host client * * Return: me client id or 0 if client is not connected
*/ staticinline u8 mei_cl_me_id(conststruct mei_cl *cl)
{ return cl->me_cl ? cl->me_cl->client_id : 0;
}
/** * mei_cl_mtu - maximal message that client can send and receive * * @cl: host client * * Return: mtu or 0 if client is not connected
*/ staticinline size_t mei_cl_mtu(conststruct mei_cl *cl)
{ return cl->me_cl ? cl->me_cl->props.max_msg_length : 0;
}
/** * mei_cl_is_fixed_address - check whether the me client uses fixed address * * @cl: host client * * Return: true if the client is connected and it has fixed me address
*/ staticinlinebool mei_cl_is_fixed_address(conststruct mei_cl *cl)
{ return cl->me_cl && cl->me_cl->props.fixed_address;
}
/** * mei_cl_is_single_recv_buf- check whether the me client * uses single receiving buffer * * @cl: host client * * Return: true if single_recv_buf == 1; 0 otherwise
*/ staticinlinebool mei_cl_is_single_recv_buf(conststruct mei_cl *cl)
{ return cl->me_cl->props.single_recv_buf;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.