tcs_id 728 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c static int cxgb4_getnumtcs(struct net_device *dev, int tcs_id, u8 *num) tcs_id 732 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c switch (tcs_id) { tcs_id 754 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c static int cxgb4_setnumtcs(struct net_device *dev, int tcs_id, u8 num) tcs_id 858 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c int tcs_id, u8 *num) tcs_id 863 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c switch (tcs_id) { tcs_id 64 drivers/soc/qcom/rpmh-rsc.c static u32 read_tcs_reg(struct rsc_drv *drv, int reg, int tcs_id, int cmd_id) tcs_id 66 drivers/soc/qcom/rpmh-rsc.c return readl_relaxed(drv->tcs_base + reg + RSC_DRV_TCS_OFFSET * tcs_id + tcs_id 70 drivers/soc/qcom/rpmh-rsc.c static void write_tcs_cmd(struct rsc_drv *drv, int reg, int tcs_id, int cmd_id, tcs_id 73 drivers/soc/qcom/rpmh-rsc.c writel_relaxed(data, drv->tcs_base + reg + RSC_DRV_TCS_OFFSET * tcs_id + tcs_id 77 drivers/soc/qcom/rpmh-rsc.c static void write_tcs_reg(struct rsc_drv *drv, int reg, int tcs_id, u32 data) tcs_id 79 drivers/soc/qcom/rpmh-rsc.c writel_relaxed(data, drv->tcs_base + reg + RSC_DRV_TCS_OFFSET * tcs_id); tcs_id 82 drivers/soc/qcom/rpmh-rsc.c static void write_tcs_reg_sync(struct rsc_drv *drv, int reg, int tcs_id, tcs_id 85 drivers/soc/qcom/rpmh-rsc.c writel(data, drv->tcs_base + reg + RSC_DRV_TCS_OFFSET * tcs_id); tcs_id 88 drivers/soc/qcom/rpmh-rsc.c RSC_DRV_TCS_OFFSET * tcs_id)) tcs_id 94 drivers/soc/qcom/rpmh-rsc.c static bool tcs_is_free(struct rsc_drv *drv, int tcs_id) tcs_id 96 drivers/soc/qcom/rpmh-rsc.c return !test_bit(tcs_id, drv->tcs_in_use) && tcs_id 97 drivers/soc/qcom/rpmh-rsc.c read_tcs_reg(drv, RSC_DRV_STATUS, tcs_id, 0); tcs_id 190 drivers/soc/qcom/rpmh-rsc.c int tcs_id) tcs_id 197 drivers/soc/qcom/rpmh-rsc.c if (tcs->mask & BIT(tcs_id)) tcs_id 198 drivers/soc/qcom/rpmh-rsc.c return tcs->req[tcs_id - tcs->offset]; tcs_id 255 drivers/soc/qcom/rpmh-rsc.c static void __tcs_buffer_write(struct rsc_drv *drv, int tcs_id, int cmd_id, tcs_id 268 drivers/soc/qcom/rpmh-rsc.c cmd_complete = read_tcs_reg(drv, RSC_DRV_CMD_WAIT_FOR_CMPL, tcs_id, 0); tcs_id 277 drivers/soc/qcom/rpmh-rsc.c write_tcs_cmd(drv, RSC_DRV_CMD_MSGID, tcs_id, j, msgid); tcs_id 278 drivers/soc/qcom/rpmh-rsc.c write_tcs_cmd(drv, RSC_DRV_CMD_ADDR, tcs_id, j, cmd->addr); tcs_id 279 drivers/soc/qcom/rpmh-rsc.c write_tcs_cmd(drv, RSC_DRV_CMD_DATA, tcs_id, j, cmd->data); tcs_id 280 drivers/soc/qcom/rpmh-rsc.c trace_rpmh_send_msg(drv, tcs_id, j, msgid, cmd); tcs_id 283 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg(drv, RSC_DRV_CMD_WAIT_FOR_CMPL, tcs_id, cmd_complete); tcs_id 284 drivers/soc/qcom/rpmh-rsc.c cmd_enable |= read_tcs_reg(drv, RSC_DRV_CMD_ENABLE, tcs_id, 0); tcs_id 285 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg(drv, RSC_DRV_CMD_ENABLE, tcs_id, cmd_enable); tcs_id 288 drivers/soc/qcom/rpmh-rsc.c static void __tcs_trigger(struct rsc_drv *drv, int tcs_id) tcs_id 297 drivers/soc/qcom/rpmh-rsc.c enable = read_tcs_reg(drv, RSC_DRV_CONTROL, tcs_id, 0); tcs_id 299 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable); tcs_id 301 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable); tcs_id 305 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable); tcs_id 307 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable); tcs_id 316 drivers/soc/qcom/rpmh-rsc.c int tcs_id = tcs->offset; tcs_id 318 drivers/soc/qcom/rpmh-rsc.c for (i = 0; i < tcs->num_tcs; i++, tcs_id++) { tcs_id 319 drivers/soc/qcom/rpmh-rsc.c if (tcs_is_free(drv, tcs_id)) tcs_id 322 drivers/soc/qcom/rpmh-rsc.c curr_enabled = read_tcs_reg(drv, RSC_DRV_CMD_ENABLE, tcs_id, 0); tcs_id 325 drivers/soc/qcom/rpmh-rsc.c addr = read_tcs_reg(drv, RSC_DRV_CMD_ADDR, tcs_id, j); tcs_id 351 drivers/soc/qcom/rpmh-rsc.c int tcs_id; tcs_id 371 drivers/soc/qcom/rpmh-rsc.c tcs_id = find_free_tcs(tcs); tcs_id 372 drivers/soc/qcom/rpmh-rsc.c if (tcs_id < 0) { tcs_id 373 drivers/soc/qcom/rpmh-rsc.c ret = tcs_id; tcs_id 378 drivers/soc/qcom/rpmh-rsc.c tcs->req[tcs_id - tcs->offset] = msg; tcs_id 379 drivers/soc/qcom/rpmh-rsc.c set_bit(tcs_id, drv->tcs_in_use); tcs_id 382 drivers/soc/qcom/rpmh-rsc.c __tcs_buffer_write(drv, tcs_id, 0, msg); tcs_id 383 drivers/soc/qcom/rpmh-rsc.c __tcs_trigger(drv, tcs_id); tcs_id 448 drivers/soc/qcom/rpmh-rsc.c int *tcs_id, int *cmd_id) tcs_id 474 drivers/soc/qcom/rpmh-rsc.c *tcs_id = offset + tcs->offset; tcs_id 483 drivers/soc/qcom/rpmh-rsc.c int tcs_id = 0, cmd_id = 0; tcs_id 493 drivers/soc/qcom/rpmh-rsc.c ret = find_slots(tcs, msg, &tcs_id, &cmd_id); tcs_id 495 drivers/soc/qcom/rpmh-rsc.c __tcs_buffer_write(drv, tcs_id, cmd_id, msg);