cnp 599 arch/arm64/include/asm/kvm_mmu.h u64 cnp = system_supports_cnp() ? VTTBR_CNP_BIT : 0; cnp 603 arch/arm64/include/asm/kvm_mmu.h return kvm_phys_to_vttbr(baddr) | vmid_field | cnp; cnp 605 drivers/mmc/host/atmel-mci.c struct device_node *cnp; cnp 618 drivers/mmc/host/atmel-mci.c for_each_child_of_node(np, cnp) { cnp 619 drivers/mmc/host/atmel-mci.c if (of_property_read_u32(cnp, "reg", &slot_id)) { cnp 621 drivers/mmc/host/atmel-mci.c cnp); cnp 628 drivers/mmc/host/atmel-mci.c of_node_put(cnp); cnp 632 drivers/mmc/host/atmel-mci.c if (of_property_read_u32(cnp, "bus-width", cnp 637 drivers/mmc/host/atmel-mci.c of_get_named_gpio(cnp, "cd-gpios", 0); cnp 640 drivers/mmc/host/atmel-mci.c of_property_read_bool(cnp, "cd-inverted"); cnp 643 drivers/mmc/host/atmel-mci.c of_property_read_bool(cnp, "non-removable"); cnp 646 drivers/mmc/host/atmel-mci.c of_get_named_gpio(cnp, "wp-gpios", 0); cnp 184 drivers/power/reset/at91-sama5d2_shdwc.c struct device_node *cnp; cnp 189 drivers/power/reset/at91-sama5d2_shdwc.c for_each_child_of_node(np, cnp) { cnp 190 drivers/power/reset/at91-sama5d2_shdwc.c if (of_property_read_u32(cnp, "reg", &wk_input)) { cnp 192 drivers/power/reset/at91-sama5d2_shdwc.c cnp); cnp 205 drivers/power/reset/at91-sama5d2_shdwc.c if (of_property_read_bool(cnp, "atmel,wakeup-active-high")) cnp 121 drivers/target/iscsi/cxgbit/cxgbit.h struct cxgbit_np *cnp; cnp 191 drivers/target/iscsi/cxgbit/cxgbit.h struct cxgbit_np *cnp; cnp 269 drivers/target/iscsi/cxgbit/cxgbit.h static inline void cxgbit_get_cnp(struct cxgbit_np *cnp) cnp 271 drivers/target/iscsi/cxgbit/cxgbit.h kref_get(&cnp->kref); cnp 274 drivers/target/iscsi/cxgbit/cxgbit.h static inline void cxgbit_put_cnp(struct cxgbit_np *cnp) cnp 276 drivers/target/iscsi/cxgbit/cxgbit.h kref_put(&cnp->kref, _cxgbit_free_cnp); cnp 73 drivers/target/iscsi/cxgbit/cxgbit_cm.c static int cxgbit_np_hashfn(const struct cxgbit_np *cnp) cnp 75 drivers/target/iscsi/cxgbit/cxgbit_cm.c return ((unsigned long)cnp >> 10) & (NP_INFO_HASH_SIZE - 1); cnp 79 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_np_hash_add(struct cxgbit_device *cdev, struct cxgbit_np *cnp, cnp 85 drivers/target/iscsi/cxgbit/cxgbit_cm.c int bucket = cxgbit_np_hashfn(cnp); cnp 87 drivers/target/iscsi/cxgbit/cxgbit_cm.c p->cnp = cnp; cnp 99 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_np_hash_find(struct cxgbit_device *cdev, struct cxgbit_np *cnp) cnp 101 drivers/target/iscsi/cxgbit/cxgbit_cm.c int stid = -1, bucket = cxgbit_np_hashfn(cnp); cnp 106 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (p->cnp == cnp) { cnp 116 drivers/target/iscsi/cxgbit/cxgbit_cm.c static int cxgbit_np_hash_del(struct cxgbit_device *cdev, struct cxgbit_np *cnp) cnp 118 drivers/target/iscsi/cxgbit/cxgbit_cm.c int stid = -1, bucket = cxgbit_np_hashfn(cnp); cnp 123 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (p->cnp == cnp) { cnp 137 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp; cnp 139 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp = container_of(kref, struct cxgbit_np, kref); cnp 140 drivers/target/iscsi/cxgbit/cxgbit_cm.c kfree(cnp); cnp 145 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp) cnp 148 drivers/target/iscsi/cxgbit/cxgbit_cm.c &cnp->com.local_addr; cnp 167 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_get_cnp(cnp); cnp 168 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_init_wr_wait(&cnp->com.wr_wait); cnp 175 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = cxgbit_wait_for_reply(cdev, &cnp->com.wr_wait, cnp 180 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_put_cnp(cnp); cnp 197 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp) cnp 200 drivers/target/iscsi/cxgbit/cxgbit_cm.c &cnp->com.local_addr; cnp 206 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_get_cnp(cnp); cnp 207 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_init_wr_wait(&cnp->com.wr_wait); cnp 215 drivers/target/iscsi/cxgbit/cxgbit_cm.c &cnp->com.wr_wait, cnp 220 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_put_cnp(cnp); cnp 290 drivers/target/iscsi/cxgbit/cxgbit_cm.c static struct cxgbit_device *cxgbit_find_np_cdev(struct cxgbit_np *cnp) cnp 292 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct sockaddr_storage *sockaddr = &cnp->com.local_addr; cnp 318 drivers/target/iscsi/cxgbit/cxgbit_cm.c static bool cxgbit_inaddr_any(struct cxgbit_np *cnp) cnp 320 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct sockaddr_storage *sockaddr = &cnp->com.local_addr; cnp 343 drivers/target/iscsi/cxgbit/cxgbit_cm.c __cxgbit_setup_cdev_np(struct cxgbit_device *cdev, struct cxgbit_np *cnp) cnp 346 drivers/target/iscsi/cxgbit/cxgbit_cm.c int ss_family = cnp->com.local_addr.ss_family; cnp 351 drivers/target/iscsi/cxgbit/cxgbit_cm.c stid = cxgb4_alloc_stid(cdev->lldi.tids, ss_family, cnp); cnp 355 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (!cxgbit_np_hash_add(cdev, cnp, stid)) { cnp 361 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = cxgbit_create_server4(cdev, stid, cnp); cnp 363 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = cxgbit_create_server6(cdev, stid, cnp); cnp 369 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_np_hash_del(cdev, cnp); cnp 375 drivers/target/iscsi/cxgbit/cxgbit_cm.c static int cxgbit_setup_cdev_np(struct cxgbit_np *cnp) cnp 381 drivers/target/iscsi/cxgbit/cxgbit_cm.c cdev = cxgbit_find_np_cdev(cnp); cnp 385 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (cxgbit_np_hash_find(cdev, cnp) >= 0) cnp 388 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (__cxgbit_setup_cdev_np(cdev, cnp)) cnp 391 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp->com.cdev = cdev; cnp 398 drivers/target/iscsi/cxgbit/cxgbit_cm.c static int cxgbit_setup_all_np(struct cxgbit_np *cnp) cnp 406 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (cxgbit_np_hash_find(cdev, cnp) >= 0) { cnp 413 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = __cxgbit_setup_cdev_np(cdev, cnp); cnp 427 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp; cnp 434 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp = kzalloc(sizeof(*cnp), GFP_KERNEL); cnp 435 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (!cnp) cnp 438 drivers/target/iscsi/cxgbit/cxgbit_cm.c init_waitqueue_head(&cnp->accept_wait); cnp 439 drivers/target/iscsi/cxgbit/cxgbit_cm.c init_completion(&cnp->com.wr_wait.completion); cnp 440 drivers/target/iscsi/cxgbit/cxgbit_cm.c init_completion(&cnp->accept_comp); cnp 441 drivers/target/iscsi/cxgbit/cxgbit_cm.c INIT_LIST_HEAD(&cnp->np_accept_list); cnp 442 drivers/target/iscsi/cxgbit/cxgbit_cm.c spin_lock_init(&cnp->np_accept_lock); cnp 443 drivers/target/iscsi/cxgbit/cxgbit_cm.c kref_init(&cnp->kref); cnp 446 drivers/target/iscsi/cxgbit/cxgbit_cm.c memcpy(&cnp->com.local_addr, &np->np_sockaddr, cnp 447 drivers/target/iscsi/cxgbit/cxgbit_cm.c sizeof(cnp->com.local_addr)); cnp 449 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp->np = np; cnp 450 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp->com.cdev = NULL; cnp 452 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (cxgbit_inaddr_any(cnp)) cnp 453 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = cxgbit_setup_all_np(cnp); cnp 455 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = cxgbit_setup_cdev_np(cnp); cnp 458 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_put_cnp(cnp); cnp 462 drivers/target/iscsi/cxgbit/cxgbit_cm.c np->np_context = cnp; cnp 463 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp->com.state = CSK_STATE_LISTEN; cnp 478 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp = np->np_context; cnp 483 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = wait_for_completion_interruptible(&cnp->accept_comp); cnp 498 drivers/target/iscsi/cxgbit/cxgbit_cm.c spin_lock_bh(&cnp->np_accept_lock); cnp 499 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (list_empty(&cnp->np_accept_list)) { cnp 500 drivers/target/iscsi/cxgbit/cxgbit_cm.c spin_unlock_bh(&cnp->np_accept_lock); cnp 504 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk = list_first_entry(&cnp->np_accept_list, cnp 509 drivers/target/iscsi/cxgbit/cxgbit_cm.c spin_unlock_bh(&cnp->np_accept_lock); cnp 518 drivers/target/iscsi/cxgbit/cxgbit_cm.c __cxgbit_free_cdev_np(struct cxgbit_device *cdev, struct cxgbit_np *cnp) cnp 523 drivers/target/iscsi/cxgbit/cxgbit_cm.c stid = cxgbit_np_hash_del(cdev, cnp); cnp 529 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (cnp->np->np_sockaddr.ss_family == AF_INET6) cnp 532 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_get_cnp(cnp); cnp 533 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_init_wr_wait(&cnp->com.wr_wait); cnp 541 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_put_cnp(cnp); cnp 545 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = cxgbit_wait_for_reply(cdev, &cnp->com.wr_wait, cnp 550 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (ipv6 && cnp->com.cdev) { cnp 553 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6 = (struct sockaddr_in6 *)&cnp->com.local_addr; cnp 560 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp->com.local_addr.ss_family); cnp 564 drivers/target/iscsi/cxgbit/cxgbit_cm.c static void cxgbit_free_all_np(struct cxgbit_np *cnp) cnp 571 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = __cxgbit_free_cdev_np(cdev, cnp); cnp 578 drivers/target/iscsi/cxgbit/cxgbit_cm.c static void cxgbit_free_cdev_np(struct cxgbit_np *cnp) cnp 585 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (cdev == cnp->com.cdev) { cnp 593 drivers/target/iscsi/cxgbit/cxgbit_cm.c __cxgbit_free_cdev_np(cdev, cnp); cnp 602 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp = np->np_context; cnp 605 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp->com.state = CSK_STATE_DEAD; cnp 606 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (cnp->com.cdev) cnp 607 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_free_cdev_np(cnp); cnp 609 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_free_all_np(cnp); cnp 611 drivers/target/iscsi/cxgbit/cxgbit_cm.c spin_lock_bh(&cnp->np_accept_lock); cnp 612 drivers/target/iscsi/cxgbit/cxgbit_cm.c list_for_each_entry_safe(csk, tmp, &cnp->np_accept_list, accept_node) { cnp 616 drivers/target/iscsi/cxgbit/cxgbit_cm.c spin_unlock_bh(&cnp->np_accept_lock); cnp 619 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_put_cnp(cnp); cnp 821 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_put_cnp(csk->cnp); cnp 1219 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp; cnp 1236 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp = lookup_stid(t, stid); cnp 1237 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (!cnp) { cnp 1243 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (cnp->com.state != CSK_STATE_LISTEN) { cnp 1263 drivers/target/iscsi/cxgbit/cxgbit_cm.c , __func__, cnp, tid, cnp 1274 drivers/target/iscsi/cxgbit/cxgbit_cm.c , __func__, cnp, tid, cnp 1282 drivers/target/iscsi/cxgbit/cxgbit_cm.c &cnp->com.local_addr)->sin6_scope_id); cnp 1318 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->cnp = cnp; cnp 1372 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_get_cnp(cnp); cnp 1568 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp = lookup_stid(t, stid); cnp 1571 drivers/target/iscsi/cxgbit/cxgbit_cm.c __func__, cnp, stid, rpl->status); cnp 1573 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (!cnp) { cnp 1578 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_wake_up(&cnp->com.wr_wait, __func__, rpl->status); cnp 1579 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_put_cnp(cnp); cnp 1590 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp = lookup_stid(t, stid); cnp 1593 drivers/target/iscsi/cxgbit/cxgbit_cm.c __func__, cnp, stid, rpl->status); cnp 1595 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (!cnp) { cnp 1600 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_wake_up(&cnp->com.wr_wait, __func__, rpl->status); cnp 1601 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgbit_put_cnp(cnp); cnp 1613 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_np *cnp; cnp 1623 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp = csk->cnp; cnp 1626 drivers/target/iscsi/cxgbit/cxgbit_cm.c __func__, csk, tid, cnp); cnp 1641 drivers/target/iscsi/cxgbit/cxgbit_cm.c spin_lock_bh(&cnp->np_accept_lock); cnp 1642 drivers/target/iscsi/cxgbit/cxgbit_cm.c list_add_tail(&csk->accept_node, &cnp->np_accept_list); cnp 1643 drivers/target/iscsi/cxgbit/cxgbit_cm.c spin_unlock_bh(&cnp->np_accept_lock); cnp 1644 drivers/target/iscsi/cxgbit/cxgbit_cm.c complete(&cnp->accept_comp); cnp 56 fs/coda/pioctl.c struct coda_inode_info *cnp; cnp 80 fs/coda/pioctl.c cnp = ITOC(target_inode); cnp 82 fs/coda/pioctl.c error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data);