/linux/drivers/infiniband/hw/mthca/ |
A D | mthca_eq.c | 397 if (dev->eq_table.clr_mask) in mthca_tavor_interrupt() 398 writel(dev->eq_table.clr_mask, dev->eq_table.clr_int); in mthca_tavor_interrupt() 437 if (dev->eq_table.clr_mask) in mthca_arbel_interrupt() 438 writel(dev->eq_table.clr_mask, dev->eq_table.clr_int); in mthca_arbel_interrupt() 632 if (dev->eq_table.have_irq) in mthca_free_irqs() 637 dev->eq_table.eq + i); in mthca_free_irqs() 740 if (!dev->eq_table.icm_page) in mthca_map_eq_icm() 742 dev->eq_table.icm_dma = in mthca_map_eq_icm() 786 dev->eq_table.clr_mask = 0; in mthca_init_eq_table() 788 dev->eq_table.clr_mask = in mthca_init_eq_table() [all …]
|
A D | mthca_main.c | 682 mdev->eq_table.inta_pin = adapter.inta_pin; in mthca_init_hca() 762 dev->eq_table.eq[MTHCA_EQ_CMD].msi_x_vector); in mthca_setup_hca() 859 mdev->eq_table.eq[MTHCA_EQ_COMP ].msi_x_vector = in mthca_enable_msi_x() 861 mdev->eq_table.eq[MTHCA_EQ_ASYNC].msi_x_vector = in mthca_enable_msi_x() 863 mdev->eq_table.eq[MTHCA_EQ_CMD ].msi_x_vector = in mthca_enable_msi_x()
|
A D | mthca_cq.c | 833 cq_context->error_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_ASYNC].eqn); in mthca_init_cq() 834 cq_context->comp_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_COMP].eqn); in mthca_init_cq() 934 synchronize_irq(dev->eq_table.eq[MTHCA_EQ_COMP].msi_x_vector); in mthca_free_cq()
|
A D | mthca_dev.h | 341 struct mthca_eq_table eq_table; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | eq.c | 446 eq_table = kvzalloc(sizeof(*eq_table), GFP_KERNEL); in mlx5_eq_table_init() 447 if (!eq_table) in mlx5_eq_table_init() 450 dev->priv.eq_table = eq_table; in mlx5_eq_table_init() 473 struct mlx5_eq_table *eq_table = dev->priv.eq_table; in create_async_eq() local 484 struct mlx5_eq_table *eq_table = dev->priv.eq_table; in destroy_async_eq() local 939 struct mlx5_eq_table *eq_table = dev->priv.eq_table; in clear_rmap() local 949 struct mlx5_eq_table *eq_table = mdev->priv.eq_table; in set_rmap() local 952 eq_table->rmap = alloc_irq_cpu_rmap(eq_table->num_comp_eqs); in set_rmap() 953 if (!eq_table->rmap) { in set_rmap() 997 struct mlx5_eq_table *eq_table = dev->priv.eq_table; in mlx5_eq_table_create() local [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | eq.c | 855 writel(priv->eq_table.clr_mask, priv->eq_table.clr_int); in mlx4_interrupt() 1117 struct mlx4_eq_table *eq_table = &mlx4_priv(dev)->eq_table; in mlx4_free_irqs() local 1120 if (eq_table->have_irq) in mlx4_free_irqs() 1129 free_irq(eq_table->eq[i].irq, eq_table->eq + i); in mlx4_free_irqs() 1133 kfree(eq_table->irq_names); in mlx4_free_irqs() 1164 if (!priv->eq_table.eq) in mlx4_alloc_eq_table() 1184 if (!priv->eq_table.uar_map) { in mlx4_init_eq_table() 1206 priv->eq_table.clr_mask = in mlx4_init_eq_table() 1212 priv->eq_table.irq_names = in mlx4_init_eq_table() 1290 priv->eq_table.have_irq = 1; in mlx4_init_eq_table() [all …]
|
A D | cq.c | 384 cq_context->comp_eqn = priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(vector)].eqn; in mlx4_cq_alloc() 417 &priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(vector)].tasklet_ctx; in mlx4_cq_alloc() 421 cq->irq = priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(vector)].irq; in mlx4_cq_alloc() 450 synchronize_irq(priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(cq->vector)].irq); in mlx4_cq_free() 451 if (priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(cq->vector)].irq != in mlx4_cq_free() 452 priv->eq_table.eq[MLX4_EQ_ASYNC].irq) in mlx4_cq_free() 453 synchronize_irq(priv->eq_table.eq[MLX4_EQ_ASYNC].irq); in mlx4_cq_free()
|
A D | main.c | 1681 err = mlx4_init_icm_table(dev, &priv->eq_table.table, in mlx4_init_icm() 1829 mlx4_cleanup_icm_table(dev, &priv->eq_table.table); in mlx4_init_icm() 1859 mlx4_cleanup_icm_table(dev, &priv->eq_table.table); in mlx4_free_icms() 2474 priv->eq_table.inta_pin = adapter.inta_pin; in mlx4_init_hca() 2776 priv->eq_table.eq[MLX4_EQ_ASYNC].irq); in mlx4_setup_hca() 2780 priv->eq_table.eq[MLX4_EQ_ASYNC].irq); in mlx4_setup_hca() 2925 eq = &priv->eq_table.eq[eqn]; in mlx4_init_affinity_hint() 2976 priv->eq_table.eq[i].irq = in mlx4_enable_msi_x() 2987 priv->eq_table.eq[i].actv_ports.ports); in mlx4_enable_msi_x() 3022 priv->eq_table.eq[i].irq = dev->persist->pdev->irq; in mlx4_enable_msi_x() [all …]
|
A D | mlx4.h | 897 struct mlx4_eq_table eq_table; member
|
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_hw_v1.c | 4273 struct hns_roce_eq_table *eq_table = &hr_dev->eq_table; in hns_roce_v1_init_eq_table() local 4284 eq_table->eq = kcalloc(eq_num, sizeof(*eq_table->eq), GFP_KERNEL); in hns_roce_v1_init_eq_table() 4285 if (!eq_table->eq) in hns_roce_v1_init_eq_table() 4288 eq_table->eqc_base = kcalloc(eq_num, sizeof(*eq_table->eqc_base), in hns_roce_v1_init_eq_table() 4290 if (!eq_table->eqc_base) { in hns_roce_v1_init_eq_table() 4296 eq = &eq_table->eq[i]; in hns_roce_v1_init_eq_table() 4351 &eq_table->eq[j]); in hns_roce_v1_init_eq_table() 4376 kfree(eq_table->eqc_base); in hns_roce_v1_init_eq_table() 4379 kfree(eq_table->eq); in hns_roce_v1_init_eq_table() 4386 struct hns_roce_eq_table *eq_table = &hr_dev->eq_table; in hns_roce_v1_cleanup_eq_table() local [all …]
|
A D | hns_roce_hw_v2.c | 6031 struct hns_roce_eq_table *eq_table = &hr_dev->eq_table; in __hns_roce_request_irq() local 6067 &eq_table->eq[j - other_num]); in __hns_roce_request_irq() 6087 &eq_table->eq[j - other_num]); in __hns_roce_request_irq() 6109 free_irq(hr_dev->eq_table.eq[i].irq, &hr_dev->eq_table.eq[i]); in __hns_roce_free_irq() 6117 struct hns_roce_eq_table *eq_table = &hr_dev->eq_table; in hns_roce_v2_init_eq_table() local 6136 eq_table->eq = kcalloc(eq_num, sizeof(*eq_table->eq), GFP_KERNEL); in hns_roce_v2_init_eq_table() 6137 if (!eq_table->eq) in hns_roce_v2_init_eq_table() 6142 eq = &eq_table->eq[i]; in hns_roce_v2_init_eq_table() 6197 kfree(eq_table->eq); in hns_roce_v2_init_eq_table() 6204 struct hns_roce_eq_table *eq_table = &hr_dev->eq_table; in hns_roce_v2_cleanup_eq_table() local [all …]
|
A D | hns_roce_cq.c | 188 synchronize_irq(hr_dev->eq_table.eq[hr_cq->vector].irq); in free_cqc()
|
A D | hns_roce_device.h | 992 struct hns_roce_eq_table eq_table; member
|
/linux/drivers/infiniband/hw/mlx4/ |
A D | main.c | 2443 ibdev->eq_table = kcalloc(dev->caps.num_comp_vectors, in mlx4_ib_alloc_eqs() 2444 sizeof(ibdev->eq_table[0]), GFP_KERNEL); in mlx4_ib_alloc_eqs() 2445 if (!ibdev->eq_table) in mlx4_ib_alloc_eqs() 2453 ibdev->eq_table[eq] = total_eqs; in mlx4_ib_alloc_eqs() 2455 &ibdev->eq_table[eq])) in mlx4_ib_alloc_eqs() 2458 ibdev->eq_table[eq] = -1; in mlx4_ib_alloc_eqs() 2463 ibdev->eq_table[i++] = -1) in mlx4_ib_alloc_eqs() 2476 if (!ibdev->eq_table) in mlx4_ib_free_eqs() 2483 mlx4_release_eq(dev, ibdev->eq_table[i]); in mlx4_ib_free_eqs() 2485 kfree(ibdev->eq_table); in mlx4_ib_free_eqs() [all …]
|
A D | cq.c | 244 if (dev->eq_table) in mlx4_ib_create_cq() 245 vector = dev->eq_table[vector % ibdev->num_comp_vectors]; in mlx4_ib_create_cq()
|
A D | mlx4_ib.h | 629 int *eq_table; member
|
/linux/include/linux/mlx5/ |
A D | driver.h | 546 struct mlx5_eq_table *eq_table; member
|