Home
last modified time | relevance | path

Searched refs:srcu_index (Results 1 – 2 of 2) sorted by relevance

/linux/net/bluetooth/
H A Dhci_core.c64 static struct hci_dev *__hci_dev_get(int index, int *srcu_index) in __hci_dev_get() argument
78 if (srcu_index) in __hci_dev_get()
79 *srcu_index = srcu_read_lock(&d->srcu); in __hci_dev_get()
92 static struct hci_dev *hci_dev_get_srcu(int index, int *srcu_index) in hci_dev_get_srcu() argument
95 return __hci_dev_get(index, srcu_index); in hci_dev_get_srcu()
98 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()
553 int err, srcu_index; in hci_dev_reset() local
555 hdev = hci_dev_get_srcu(dev, &srcu_index); in hci_dev_reset()
577 hci_dev_put_srcu(hdev, srcu_index); in hci_dev_reset()
/linux/net/core/
H A Drtnetlink.c591 static struct rtnl_link_ops *rtnl_link_ops_get(const char *kind, int *srcu_index) in rtnl_link_ops_get() argument
599 *srcu_index = srcu_read_lock(&ops->srcu); in rtnl_link_ops_get()
611 static void rtnl_link_ops_put(struct rtnl_link_ops *ops, int srcu_index) in rtnl_link_ops_put() argument
613 srcu_read_unlock(&ops->srcu, srcu_index); in rtnl_link_ops_put()
786 static struct rtnl_af_ops *rtnl_af_lookup(const int family, int *srcu_index) in rtnl_af_lookup() argument
794 *srcu_index = srcu_read_lock(&ops->srcu); in rtnl_af_lookup()
806 static void rtnl_af_put(struct rtnl_af_ops *ops, int srcu_index) in rtnl_af_put() argument
808 srcu_read_unlock(&ops->srcu, srcu_index); in rtnl_af_put()