return cat_socket_info + socket;
}
-static inline bool_t cdp_is_enabled(unsigned int socket)
+static inline bool cdp_is_enabled(unsigned int socket)
{
return cdp_socket_enable && test_bit(socket, cdp_socket_enable);
}
uint64_t *cbm, enum cbm_type type)
{
struct psr_cat_socket_info *info = get_cat_socket_info(socket);
- bool_t cdp_enabled = cdp_is_enabled(socket);
+ bool cdp_enabled = cdp_is_enabled(socket);
if ( IS_ERR(info) )
return PTR_ERR(info);
return 0;
}
-static bool_t psr_check_cbm(unsigned int cbm_len, uint64_t cbm)
+static bool psr_check_cbm(unsigned int cbm_len, uint64_t cbm)
{
unsigned int first_bit, zero_bit;
struct cos_cbm_info
{
unsigned int cos;
- bool_t cdp;
+ bool cdp;
uint64_t cbm_code;
uint64_t cbm_data;
};
}
static int write_l3_cbm(unsigned int socket, unsigned int cos,
- uint64_t cbm_code, uint64_t cbm_data, bool_t cdp)
+ uint64_t cbm_code, uint64_t cbm_data, bool cdp)
{
struct cos_cbm_info info =
{
}
static int find_cos(struct psr_cat_cbm *map, unsigned int cos_max,
- uint64_t cbm_code, uint64_t cbm_data, bool_t cdp_enabled)
+ uint64_t cbm_code, uint64_t cbm_data, bool cdp_enabled)
{
unsigned int cos;
unsigned int old_cos, cos_max;
int cos, ret;
uint64_t cbm_data, cbm_code;
- bool_t cdp_enabled = cdp_is_enabled(socket);
+ bool cdp_enabled = cdp_is_enabled(socket);
struct psr_cat_cbm *map;
struct psr_cat_socket_info *info = get_cat_socket_info(socket);