Home
last modified time | relevance | path

Searched refs:slave_list (Results 1 – 4 of 4) sorted by relevance

/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c507 priv->mfunc.master.res_tracker.slave_list = in mlx4_init_resource_tracker()
508 kcalloc(dev->num_slaves, sizeof(struct slave_list), in mlx4_init_resource_tracker()
510 if (!priv->mfunc.master.res_tracker.slave_list) in mlx4_init_resource_tracker()
516 slave_list[i].res_list[t]); in mlx4_init_resource_tracker()
517 mutex_init(&priv->mfunc.master.res_tracker.slave_list[i].mutex); in mlx4_init_resource_tracker()
661 if (priv->mfunc.master.res_tracker.slave_list) { in mlx4_free_resource_tracker()
671 mutex_lock(&priv->mfunc.master.res_tracker.slave_list[i].mutex); in mlx4_free_resource_tracker()
673 mutex_unlock(&priv->mfunc.master.res_tracker.slave_list[i].mutex); in mlx4_free_resource_tracker()
685 kfree(priv->mfunc.master.res_tracker.slave_list); in mlx4_free_resource_tracker()
686 priv->mfunc.master.res_tracker.slave_list = NULL; in mlx4_free_resource_tracker()
[all …]
Dmlx4.h535 struct slave_list { struct
560 struct slave_list *slave_list; member
/drivers/w1/
Dw1_netlink.c504 int slave_list = 0; in w1_list_count_cmds() local
513 ++slave_list; in w1_list_count_cmds()
521 if (slave_list) { in w1_list_count_cmds()
527 *slave_len += sizeof(struct w1_reg_num) * slave_list * in w1_list_count_cmds()
/drivers/net/ethernet/ti/
Dnetcp_ethss.c704 struct list_head slave_list; member
1729 list_for_each_entry((slave), &(priv)->secondary_slaves, slave_list)
1733 struct gbe_slave, slave_list)
3143 list_add_tail(&slave->slave_list, &gbe_dev->secondary_slaves); in init_secondary_ports()
3212 list_del(&slave->slave_list); in free_secondary_ports()