Searched refs:srcu_index (Results 1 – 2 of 2) sorted by relevance
/linux/net/bluetooth/ |
H A D | hci_core.c | 67 static struct hci_dev *__hci_dev_get(int index, int *srcu_index) in __hci_dev_get() argument 80 if (srcu_index) in __hci_dev_get() 81 *srcu_index = srcu_read_lock(&d->srcu); in __hci_dev_get() 94 static struct hci_dev *hci_dev_get_srcu(int index, int *srcu_index) in hci_dev_get_srcu() argument 96 return __hci_dev_get(index, srcu_index); in hci_dev_get_srcu() 99 static void hci_dev_put_srcu(struct hci_dev *hdev, int srcu_index) in hci_dev_put_srcu() argument 101 srcu_read_unlock(&hdev->srcu, srcu_index); in hci_dev_put_srcu() 589 int err, srcu_index; in hci_dev_reset() local 591 hdev = hci_dev_get_srcu(dev, &srcu_index); in hci_dev_reset() 613 hci_dev_put_srcu(hdev, srcu_index); in hci_dev_reset()
|
/linux/net/core/ |
H A D | rtnetlink.c | 566 static struct rtnl_link_ops *rtnl_link_ops_get(const char *kind, int *srcu_index) in rtnl_link_ops_get() argument 574 *srcu_index = srcu_read_lock(&ops->srcu); in rtnl_link_ops_get() 586 static void rtnl_link_ops_put(struct rtnl_link_ops *ops, int srcu_index) in rtnl_link_ops_put() argument 588 srcu_read_unlock(&ops->srcu, srcu_index); in rtnl_link_ops_put() 748 static struct rtnl_af_ops *rtnl_af_lookup(const int family, int *srcu_index) in rtnl_af_lookup() argument 758 *srcu_index = srcu_read_lock(&ops->srcu); in rtnl_af_lookup() 770 static void rtnl_af_put(struct rtnl_af_ops *ops, int srcu_index) in rtnl_af_put() argument 772 srcu_read_unlock(&ops->srcu, srcu_index); in rtnl_af_put()
|