Home
last modified time | relevance | path

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

/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c73 static int cxgbit_np_hashfn(const struct cxgbit_np *cnp) in cxgbit_np_hashfn() argument
75 return ((unsigned long)cnp >> 10) & (NP_INFO_HASH_SIZE - 1); in cxgbit_np_hashfn()
79 cxgbit_np_hash_add(struct cxgbit_device *cdev, struct cxgbit_np *cnp, in cxgbit_np_hash_add() argument
85 int bucket = cxgbit_np_hashfn(cnp); in cxgbit_np_hash_add()
87 p->cnp = cnp; in cxgbit_np_hash_add()
99 cxgbit_np_hash_find(struct cxgbit_device *cdev, struct cxgbit_np *cnp) in cxgbit_np_hash_find() argument
101 int stid = -1, bucket = cxgbit_np_hashfn(cnp); in cxgbit_np_hash_find()
106 if (p->cnp == cnp) { in cxgbit_np_hash_find()
116 static int cxgbit_np_hash_del(struct cxgbit_device *cdev, struct cxgbit_np *cnp) in cxgbit_np_hash_del() argument
118 int stid = -1, bucket = cxgbit_np_hashfn(cnp); in cxgbit_np_hash_del()
[all …]
Dcxgbit.h121 struct cxgbit_np *cnp; member
191 struct cxgbit_np *cnp; member
269 static inline void cxgbit_get_cnp(struct cxgbit_np *cnp) in cxgbit_get_cnp() argument
271 kref_get(&cnp->kref); in cxgbit_get_cnp()
274 static inline void cxgbit_put_cnp(struct cxgbit_np *cnp) in cxgbit_put_cnp() argument
276 kref_put(&cnp->kref, _cxgbit_free_cnp); in cxgbit_put_cnp()
/drivers/power/reset/
Dat91-sama5d2_shdwc.c184 struct device_node *cnp; in at91_shdwc_get_wakeup_input() local
189 for_each_child_of_node(np, cnp) { in at91_shdwc_get_wakeup_input()
190 if (of_property_read_u32(cnp, "reg", &wk_input)) { in at91_shdwc_get_wakeup_input()
192 cnp); in at91_shdwc_get_wakeup_input()
205 if (of_property_read_bool(cnp, "atmel,wakeup-active-high")) in at91_shdwc_get_wakeup_input()
/drivers/mmc/host/
Datmel-mci.c605 struct device_node *cnp; in atmci_of_init() local
618 for_each_child_of_node(np, cnp) { in atmci_of_init()
619 if (of_property_read_u32(cnp, "reg", &slot_id)) { in atmci_of_init()
621 cnp); in atmci_of_init()
628 of_node_put(cnp); in atmci_of_init()
632 if (of_property_read_u32(cnp, "bus-width", in atmci_of_init()
637 of_get_named_gpio(cnp, "cd-gpios", 0); in atmci_of_init()
640 of_property_read_bool(cnp, "cd-inverted"); in atmci_of_init()
643 of_property_read_bool(cnp, "non-removable"); in atmci_of_init()
646 of_get_named_gpio(cnp, "wp-gpios", 0); in atmci_of_init()