Home
last modified time | relevance | path

Searched refs:token_mask (Results 1 – 6 of 6) sorted by relevance

/drivers/infiniband/hw/hns/
Dhns_roce_cmd.c97 *context = &hr_dev->cmd.context[token & hr_dev->cmd.token_mask]; in hns_roce_cmd_event()
121 context->token += cmd->token_mask + 1; in __hns_roce_cmd_mbox_wait()
251 hr_cmd->token_mask = CMD_TOKEN_MASK; in hns_roce_cmd_use_events()
Dhns_roce_device.h619 u16 token_mask; member
/drivers/infiniband/hw/mthca/
Dmthca_cmd.c393 &dev->cmd.context[token & dev->cmd.token_mask]; in mthca_cmd_event()
423 context->token += dev->cmd.token_mask + 1; in mthca_cmd_wait()
579 for (dev->cmd.token_mask = 1; in mthca_cmd_use_events()
580 dev->cmd.token_mask < dev->cmd.max_cmds; in mthca_cmd_use_events()
581 dev->cmd.token_mask <<= 1) in mthca_cmd_use_events()
583 --dev->cmd.token_mask; in mthca_cmd_use_events()
Dmthca_dev.h129 u16 token_mask; member
/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c351 context->token += cmd->token_mask + 1; in mlx4_comm_cmd_wait()
664 &priv->cmd.context[token & priv->cmd.token_mask]; in mlx4_cmd_event()
691 context->token += cmd->token_mask + 1; in mlx4_cmd_wait()
2653 for (priv->cmd.token_mask = 1; in mlx4_cmd_use_events()
2654 priv->cmd.token_mask < priv->cmd.max_cmds; in mlx4_cmd_use_events()
2655 priv->cmd.token_mask <<= 1) in mlx4_cmd_use_events()
2657 --priv->cmd.token_mask; in mlx4_cmd_use_events()
Dmlx4.h638 u16 token_mask; member