schp 702 drivers/infiniband/hw/cxgb3/iwch_provider.c struct iwch_cq *schp; schp 713 drivers/infiniband/hw/cxgb3/iwch_provider.c schp = get_chp(rhp, ((struct iwch_cq *) attrs->send_cq)->cq.cqid); schp 715 drivers/infiniband/hw/cxgb3/iwch_provider.c if (!schp || !rchp) schp 724 drivers/infiniband/hw/cxgb3/iwch_qp.c struct iwch_cq *schp) schp 733 drivers/infiniband/hw/cxgb3/iwch_qp.c pr_debug("%s qhp %p rchp %p schp %p\n", __func__, qhp, rchp, schp); schp 753 drivers/infiniband/hw/cxgb3/iwch_qp.c spin_lock(&schp->lock); schp 755 drivers/infiniband/hw/cxgb3/iwch_qp.c cxio_flush_hw_cq(&schp->cq); schp 756 drivers/infiniband/hw/cxgb3/iwch_qp.c cxio_count_scqes(&schp->cq, &qhp->wq, &count); schp 757 drivers/infiniband/hw/cxgb3/iwch_qp.c flushed = cxio_flush_sq(&qhp->wq, &schp->cq, count); schp 759 drivers/infiniband/hw/cxgb3/iwch_qp.c spin_unlock(&schp->lock); schp 761 drivers/infiniband/hw/cxgb3/iwch_qp.c spin_lock(&schp->comp_handler_lock); schp 762 drivers/infiniband/hw/cxgb3/iwch_qp.c (*schp->ibcq.comp_handler)(&schp->ibcq, schp->ibcq.cq_context); schp 763 drivers/infiniband/hw/cxgb3/iwch_qp.c spin_unlock(&schp->comp_handler_lock); schp 775 drivers/infiniband/hw/cxgb3/iwch_qp.c struct iwch_cq *rchp, *schp; schp 778 drivers/infiniband/hw/cxgb3/iwch_qp.c schp = get_chp(qhp->rhp, qhp->attr.scq); schp 786 drivers/infiniband/hw/cxgb3/iwch_qp.c if (schp != rchp) { schp 787 drivers/infiniband/hw/cxgb3/iwch_qp.c cxio_set_cq_in_error(&schp->cq); schp 788 drivers/infiniband/hw/cxgb3/iwch_qp.c spin_lock(&schp->comp_handler_lock); schp 789 drivers/infiniband/hw/cxgb3/iwch_qp.c (*schp->ibcq.comp_handler)(&schp->ibcq, schp 790 drivers/infiniband/hw/cxgb3/iwch_qp.c schp->ibcq.cq_context); schp 791 drivers/infiniband/hw/cxgb3/iwch_qp.c spin_unlock(&schp->comp_handler_lock); schp 795 drivers/infiniband/hw/cxgb3/iwch_qp.c __flush_qp(qhp, rchp, schp); schp 982 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_cq *schp; schp 987 drivers/infiniband/hw/cxgb4/qp.c schp = to_c4iw_cq(qhp->ibqp.send_cq); schp 988 drivers/infiniband/hw/cxgb4/qp.c cq = &schp->cq; schp 1002 drivers/infiniband/hw/cxgb4/qp.c spin_lock_irqsave(&schp->lock, flag); schp 1006 drivers/infiniband/hw/cxgb4/qp.c spin_unlock_irqrestore(&schp->lock, flag); schp 1008 drivers/infiniband/hw/cxgb4/qp.c if (t4_clear_cq_armed(&schp->cq)) { schp 1009 drivers/infiniband/hw/cxgb4/qp.c spin_lock_irqsave(&schp->comp_handler_lock, flag); schp 1010 drivers/infiniband/hw/cxgb4/qp.c (*schp->ibcq.comp_handler)(&schp->ibcq, schp 1011 drivers/infiniband/hw/cxgb4/qp.c schp->ibcq.cq_context); schp 1012 drivers/infiniband/hw/cxgb4/qp.c spin_unlock_irqrestore(&schp->comp_handler_lock, flag); schp 1596 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_cq *schp) schp 1602 drivers/infiniband/hw/cxgb4/qp.c pr_debug("qhp %p rchp %p schp %p\n", qhp, rchp, schp); schp 1606 drivers/infiniband/hw/cxgb4/qp.c if (schp != rchp) schp 1607 drivers/infiniband/hw/cxgb4/qp.c spin_lock(&schp->lock); schp 1612 drivers/infiniband/hw/cxgb4/qp.c if (schp != rchp) schp 1613 drivers/infiniband/hw/cxgb4/qp.c spin_unlock(&schp->lock); schp 1626 drivers/infiniband/hw/cxgb4/qp.c if (schp != rchp) schp 1627 drivers/infiniband/hw/cxgb4/qp.c c4iw_flush_hw_cq(schp, qhp); schp 1631 drivers/infiniband/hw/cxgb4/qp.c if (schp != rchp) schp 1632 drivers/infiniband/hw/cxgb4/qp.c spin_unlock(&schp->lock); schp 1635 drivers/infiniband/hw/cxgb4/qp.c if (schp == rchp) { schp 1650 drivers/infiniband/hw/cxgb4/qp.c if (sq_flushed && t4_clear_cq_armed(&schp->cq)) { schp 1651 drivers/infiniband/hw/cxgb4/qp.c spin_lock_irqsave(&schp->comp_handler_lock, flag); schp 1652 drivers/infiniband/hw/cxgb4/qp.c (*schp->ibcq.comp_handler)(&schp->ibcq, schp 1653 drivers/infiniband/hw/cxgb4/qp.c schp->ibcq.cq_context); schp 1654 drivers/infiniband/hw/cxgb4/qp.c spin_unlock_irqrestore(&schp->comp_handler_lock, flag); schp 1661 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_cq *rchp, *schp; schp 1665 drivers/infiniband/hw/cxgb4/qp.c schp = to_c4iw_cq(qhp->ibqp.send_cq); schp 1679 drivers/infiniband/hw/cxgb4/qp.c if (schp != rchp) { schp 1680 drivers/infiniband/hw/cxgb4/qp.c t4_set_cq_in_error(&schp->cq); schp 1681 drivers/infiniband/hw/cxgb4/qp.c spin_lock_irqsave(&schp->comp_handler_lock, flag); schp 1682 drivers/infiniband/hw/cxgb4/qp.c (*schp->ibcq.comp_handler)(&schp->ibcq, schp 1683 drivers/infiniband/hw/cxgb4/qp.c schp->ibcq.cq_context); schp 1684 drivers/infiniband/hw/cxgb4/qp.c spin_unlock_irqrestore(&schp->comp_handler_lock, flag); schp 1688 drivers/infiniband/hw/cxgb4/qp.c __flush_qp(qhp, rchp, schp); schp 2117 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_cq *schp; schp 2134 drivers/infiniband/hw/cxgb4/qp.c schp = get_chp(rhp, ((struct c4iw_cq *)attrs->send_cq)->cq.cqid); schp 2136 drivers/infiniband/hw/cxgb4/qp.c if (!schp || !rchp) schp 2185 drivers/infiniband/hw/cxgb4/qp.c ret = create_qp(&rhp->rdev, &qhp->wq, &schp->cq, &rchp->cq, schp 178 drivers/scsi/sg.c static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size); schp 187 drivers/scsi/sg.c static void sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp); schp 1859 drivers/scsi/sg.c sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) schp 1864 drivers/scsi/sg.c schp->pages = kzalloc(sg_bufflen, gfp_flags); schp 1865 drivers/scsi/sg.c if (!schp->pages) schp 1867 drivers/scsi/sg.c schp->sglist_len = sg_bufflen; schp 1872 drivers/scsi/sg.c sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) schp 1891 drivers/scsi/sg.c mx_sc_elems = sg_build_sgat(schp, sfp, sg_tablesize); schp 1917 drivers/scsi/sg.c schp->pages[k] = alloc_pages(gfp_mask, order); schp 1918 drivers/scsi/sg.c if (!schp->pages[k]) schp 1933 drivers/scsi/sg.c schp->page_order = order; schp 1934 drivers/scsi/sg.c schp->k_use_sg = k; schp 1939 drivers/scsi/sg.c schp->bufflen = blk_size; schp 1945 drivers/scsi/sg.c __free_pages(schp->pages[i], order); schp 1954 drivers/scsi/sg.c sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp) schp 1957 drivers/scsi/sg.c "sg_remove_scat: k_use_sg=%d\n", schp->k_use_sg)); schp 1958 drivers/scsi/sg.c if (schp->pages && schp->sglist_len > 0) { schp 1959 drivers/scsi/sg.c if (!schp->dio_in_use) { schp 1962 drivers/scsi/sg.c for (k = 0; k < schp->k_use_sg && schp->pages[k]; k++) { schp 1966 drivers/scsi/sg.c k, schp->pages[k])); schp 1967 drivers/scsi/sg.c __free_pages(schp->pages[k], schp->page_order); schp 1970 drivers/scsi/sg.c kfree(schp->pages); schp 1973 drivers/scsi/sg.c memset(schp, 0, sizeof (*schp)); schp 1979 drivers/scsi/sg.c Sg_scatter_hold *schp = &srp->data; schp 1988 drivers/scsi/sg.c num = 1 << (PAGE_SHIFT + schp->page_order); schp 1989 drivers/scsi/sg.c for (k = 0; k < schp->k_use_sg && schp->pages[k]; k++) { schp 1991 drivers/scsi/sg.c if (__copy_to_user(outp, page_address(schp->pages[k]), schp 1996 drivers/scsi/sg.c if (__copy_to_user(outp, page_address(schp->pages[k]), schp 2012 drivers/scsi/sg.c Sg_scatter_hold *schp = &sfp->reserve; schp 2019 drivers/scsi/sg.c if (0 == sg_build_indirect(schp, sfp, req_size)) schp 2022 drivers/scsi/sg.c sg_remove_scat(sfp, schp);