sqp 367 drivers/infiniband/hw/cxgb3/cxio_hal.c struct t3_swsq *sqp) sqp 375 drivers/infiniband/hw/cxgb3/cxio_hal.c V_CQE_OPCODE(sqp->opcode) | sqp 381 drivers/infiniband/hw/cxgb3/cxio_hal.c cqe.u.scqe.wrid_hi = sqp->sq_wptr; sqp 391 drivers/infiniband/hw/cxgb3/cxio_hal.c struct t3_swsq *sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); sqp 394 drivers/infiniband/hw/cxgb3/cxio_hal.c sqp->signaled = 0; sqp 395 drivers/infiniband/hw/cxgb3/cxio_hal.c insert_sq_cqe(wq, cq, sqp); sqp 397 drivers/infiniband/hw/cxgb3/cxio_hal.c sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); sqp 1044 drivers/infiniband/hw/cxgb3/cxio_hal.c struct t3_swsq *sqp; sqp 1048 drivers/infiniband/hw/cxgb3/cxio_hal.c sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); sqp 1050 drivers/infiniband/hw/cxgb3/cxio_hal.c if (!sqp->signaled) { sqp 1052 drivers/infiniband/hw/cxgb3/cxio_hal.c sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); sqp 1053 drivers/infiniband/hw/cxgb3/cxio_hal.c } else if (sqp->complete) { sqp 1061 drivers/infiniband/hw/cxgb3/cxio_hal.c sqp->cqe.header |= htonl(V_CQE_SWCQE(1)); sqp 1063 drivers/infiniband/hw/cxgb3/cxio_hal.c = sqp->cqe; sqp 1065 drivers/infiniband/hw/cxgb3/cxio_hal.c sqp->signaled = 0; sqp 1247 drivers/infiniband/hw/cxgb3/cxio_hal.c struct t3_swsq *sqp; sqp 1253 drivers/infiniband/hw/cxgb3/cxio_hal.c sqp = wq->sq + sqp 1255 drivers/infiniband/hw/cxgb3/cxio_hal.c sqp->cqe = *hw_cqe; sqp 1256 drivers/infiniband/hw/cxgb3/cxio_hal.c sqp->complete = 1; sqp 363 drivers/infiniband/hw/cxgb3/iwch_qp.c struct t3_swsq *sqp; sqp 392 drivers/infiniband/hw/cxgb3/iwch_qp.c sqp = qhp->wq.sq + sqp 414 drivers/infiniband/hw/cxgb3/iwch_qp.c sqp->read_len = wqe->read.local_len; sqp 416 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->wq.oldest_read = sqp; sqp 437 drivers/infiniband/hw/cxgb3/iwch_qp.c sqp->wr_id = wr->wr_id; sqp 438 drivers/infiniband/hw/cxgb3/iwch_qp.c sqp->opcode = wr2opcode(t3_wr_opcode); sqp 439 drivers/infiniband/hw/cxgb3/iwch_qp.c sqp->sq_wptr = qhp->wq.sq_wptr; sqp 440 drivers/infiniband/hw/cxgb3/iwch_qp.c sqp->complete = 0; sqp 441 drivers/infiniband/hw/cxgb3/iwch_qp.c sqp->signaled = (wr->send_flags & IB_SEND_SIGNALED); sqp 450 drivers/infiniband/hw/cxgb3/iwch_qp.c sqp->opcode); sqp 73 drivers/infiniband/hw/hfi1/ud.c static void ud_loopback(struct rvt_qp *sqp, struct rvt_swqe *swqe) sqp 75 drivers/infiniband/hw/hfi1/ud.c struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); sqp 77 drivers/infiniband/hw/hfi1/ud.c struct hfi1_qp_priv *priv = sqp->priv; sqp 89 drivers/infiniband/hw/hfi1/ud.c qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, sqp 97 drivers/infiniband/hw/hfi1/ud.c sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? sqp 98 drivers/infiniband/hw/hfi1/ud.c IB_QPT_UD : sqp->ibqp.qp_type; sqp 116 drivers/infiniband/hw/hfi1/ud.c pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); sqp 124 drivers/infiniband/hw/hfi1/ud.c sqp->ibqp.qp_num, qp->ibqp.qp_num, sqp 139 drivers/infiniband/hw/hfi1/ud.c sqp->qkey : rvt_get_swqe_remote_qkey(swqe); sqp 239 drivers/infiniband/hw/hfi1/ud.c wc.src_qp = sqp->ibqp.qp_num; sqp 241 drivers/infiniband/hw/hfi1/ud.c if (sqp->ibqp.qp_type == IB_QPT_GSI || sqp 242 drivers/infiniband/hw/hfi1/ud.c sqp->ibqp.qp_type == IB_QPT_SMI) sqp 245 drivers/infiniband/hw/hfi1/ud.c wc.pkey_index = sqp->s_pkey_index; sqp 252 drivers/infiniband/hw/hfi1/ud.c if (wc.slid == 0 && sqp->ibqp.qp_type == IB_QPT_GSI) sqp 1369 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_demux_pv_qp *sqp; sqp 1386 drivers/infiniband/hw/mlx4/mad.c sqp = &sqp_ctx->qp[0]; sqp 1390 drivers/infiniband/hw/mlx4/mad.c sqp = &sqp_ctx->qp[1]; sqp 1394 drivers/infiniband/hw/mlx4/mad.c send_qp = sqp->qp; sqp 1410 drivers/infiniband/hw/mlx4/mad.c spin_lock(&sqp->tx_lock); sqp 1411 drivers/infiniband/hw/mlx4/mad.c if (sqp->tx_ix_head - sqp->tx_ix_tail >= sqp 1415 drivers/infiniband/hw/mlx4/mad.c wire_tx_ix = (++sqp->tx_ix_head) & (MLX4_NUM_TUNNEL_BUFS - 1); sqp 1416 drivers/infiniband/hw/mlx4/mad.c spin_unlock(&sqp->tx_lock); sqp 1420 drivers/infiniband/hw/mlx4/mad.c sqp_mad = (struct mlx4_mad_snd_buf *) (sqp->tx_ring[wire_tx_ix].buf.addr); sqp 1421 drivers/infiniband/hw/mlx4/mad.c kfree(sqp->tx_ring[wire_tx_ix].ah); sqp 1422 drivers/infiniband/hw/mlx4/mad.c sqp->tx_ring[wire_tx_ix].ah = ah; sqp 1424 drivers/infiniband/hw/mlx4/mad.c sqp->tx_ring[wire_tx_ix].buf.map, sqp 1431 drivers/infiniband/hw/mlx4/mad.c sqp->tx_ring[wire_tx_ix].buf.map, sqp 1435 drivers/infiniband/hw/mlx4/mad.c list.addr = sqp->tx_ring[wire_tx_ix].buf.map; sqp 1455 drivers/infiniband/hw/mlx4/mad.c spin_lock(&sqp->tx_lock); sqp 1456 drivers/infiniband/hw/mlx4/mad.c sqp->tx_ix_tail++; sqp 1457 drivers/infiniband/hw/mlx4/mad.c spin_unlock(&sqp->tx_lock); sqp 1458 drivers/infiniband/hw/mlx4/mad.c sqp->tx_ring[wire_tx_ix].ah = NULL; sqp 1789 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_demux_pv_ctx *sqp = qp_context; sqp 1793 drivers/infiniband/hw/mlx4/mad.c event->event, sqp->port); sqp 1899 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_demux_pv_qp *sqp; sqp 1908 drivers/infiniband/hw/mlx4/mad.c sqp = &ctx->qp[MLX4_TUN_WRID_QPN(wc.wr_id)]; sqp 1912 drivers/infiniband/hw/mlx4/mad.c kfree(sqp->tx_ring[wc.wr_id & sqp 1914 drivers/infiniband/hw/mlx4/mad.c sqp->tx_ring[wc.wr_id & (MLX4_NUM_TUNNEL_BUFS - 1)].ah sqp 1916 drivers/infiniband/hw/mlx4/mad.c spin_lock(&sqp->tx_lock); sqp 1917 drivers/infiniband/hw/mlx4/mad.c sqp->tx_ix_tail++; sqp 1918 drivers/infiniband/hw/mlx4/mad.c spin_unlock(&sqp->tx_lock); sqp 1922 drivers/infiniband/hw/mlx4/mad.c (sqp->ring[wc.wr_id & sqp 1925 drivers/infiniband/hw/mlx4/mad.c (sqp->ring[wc.wr_id & sqp 1928 drivers/infiniband/hw/mlx4/mad.c if (mlx4_ib_post_pv_qp_buf(ctx, sqp, wc.wr_id & sqp 1941 drivers/infiniband/hw/mlx4/mad.c kfree(sqp->tx_ring[wc.wr_id & sqp 1943 drivers/infiniband/hw/mlx4/mad.c sqp->tx_ring[wc.wr_id & (MLX4_NUM_TUNNEL_BUFS - 1)].ah sqp 1945 drivers/infiniband/hw/mlx4/mad.c spin_lock(&sqp->tx_lock); sqp 1946 drivers/infiniband/hw/mlx4/mad.c sqp->tx_ix_tail++; sqp 1947 drivers/infiniband/hw/mlx4/mad.c spin_unlock(&sqp->tx_lock); sqp 997 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_sqp *sqp = NULL; sqp 1050 drivers/infiniband/hw/mlx4/qp.c sqp = kzalloc(sizeof(struct mlx4_ib_sqp), GFP_KERNEL); sqp 1051 drivers/infiniband/hw/mlx4/qp.c if (!sqp) sqp 1053 drivers/infiniband/hw/mlx4/qp.c qp = &sqp->qp; sqp 1296 drivers/infiniband/hw/mlx4/qp.c if (!sqp && !*caller_qp) sqp 1298 drivers/infiniband/hw/mlx4/qp.c kfree(sqp); sqp 1657 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_sqp *sqp = to_msqp((to_mqp(ibqp))); sqp 1663 drivers/infiniband/hw/mlx4/qp.c sqp->roce_v2_gsi = ib_create_qp(pd, init_attr); sqp 1665 drivers/infiniband/hw/mlx4/qp.c if (IS_ERR(sqp->roce_v2_gsi)) { sqp 1666 drivers/infiniband/hw/mlx4/qp.c pr_err("Failed to create GSI QP for RoCEv2 (%ld)\n", PTR_ERR(sqp->roce_v2_gsi)); sqp 1667 drivers/infiniband/hw/mlx4/qp.c sqp->roce_v2_gsi = NULL; sqp 1669 drivers/infiniband/hw/mlx4/qp.c sqp = to_msqp(to_mqp(sqp->roce_v2_gsi)); sqp 1670 drivers/infiniband/hw/mlx4/qp.c sqp->qp.flags |= MLX4_IB_ROCE_V2_GSI_QP; sqp 1716 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_sqp *sqp = to_msqp(mqp); sqp 1718 drivers/infiniband/hw/mlx4/qp.c if (sqp->roce_v2_gsi) sqp 1719 drivers/infiniband/hw/mlx4/qp.c ib_destroy_qp(sqp->roce_v2_gsi); sqp 1779 drivers/infiniband/hw/mlx4/qp.c static void store_sqp_attrs(struct mlx4_ib_sqp *sqp, const struct ib_qp_attr *attr, sqp 1783 drivers/infiniband/hw/mlx4/qp.c sqp->pkey_index = attr->pkey_index; sqp 1785 drivers/infiniband/hw/mlx4/qp.c sqp->qkey = attr->qkey; sqp 1787 drivers/infiniband/hw/mlx4/qp.c sqp->send_psn = attr->sq_psn; sqp 2855 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_sqp *sqp = to_msqp(mqp); sqp 2858 drivers/infiniband/hw/mlx4/qp.c if (sqp->roce_v2_gsi) sqp 2859 drivers/infiniband/hw/mlx4/qp.c err = ib_modify_qp(sqp->roce_v2_gsi, attr, attr_mask); sqp 2880 drivers/infiniband/hw/mlx4/qp.c static int build_sriov_qp0_header(struct mlx4_ib_sqp *sqp, sqp 2884 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *mdev = to_mdev(sqp->qp.ibqp.device); sqp 2907 drivers/infiniband/hw/mlx4/qp.c if (sqp->qp.mlx4_ib_qp_type == MLX4_IB_QPT_PROXY_SMI_OWNER) sqp 2910 drivers/infiniband/hw/mlx4/qp.c ib_ud_header_init(send_size, 1, 0, 0, 0, 0, 0, 0, &sqp->ud_header); sqp 2912 drivers/infiniband/hw/mlx4/qp.c if (sqp->qp.mlx4_ib_qp_type == MLX4_IB_QPT_PROXY_SMI_OWNER) { sqp 2913 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.service_level = sqp 2915 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.destination_lid = sqp 2917 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.source_lid = sqp 2925 drivers/infiniband/hw/mlx4/qp.c mlx->rlid = sqp->ud_header.lrh.destination_lid; sqp 2927 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.virtual_lane = 0; sqp 2928 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); sqp 2929 drivers/infiniband/hw/mlx4/qp.c err = ib_get_cached_pkey(ib_dev, sqp->qp.port, 0, &pkey); sqp 2932 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.pkey = cpu_to_be16(pkey); sqp 2933 drivers/infiniband/hw/mlx4/qp.c if (sqp->qp.mlx4_ib_qp_type == MLX4_IB_QPT_TUN_SMI_OWNER) sqp 2934 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); sqp 2936 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.destination_qpn = sqp 2937 drivers/infiniband/hw/mlx4/qp.c cpu_to_be32(mdev->dev->caps.spec_qps[sqp->qp.port - 1].qp0_tunnel); sqp 2939 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); sqp 2941 drivers/infiniband/hw/mlx4/qp.c if (mlx4_get_parav_qkey(mdev->dev, sqp->qp.mqp.qpn, &qkey)) sqp 2944 drivers/infiniband/hw/mlx4/qp.c if (vf_get_qp0_qkey(mdev->dev, sqp->qp.mqp.qpn, &qkey)) sqp 2947 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.deth.qkey = cpu_to_be32(qkey); sqp 2948 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.mqp.qpn); sqp 2950 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; sqp 2951 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.immediate_present = 0; sqp 2953 drivers/infiniband/hw/mlx4/qp.c header_size = ib_ud_header_pack(&sqp->ud_header, sqp->header_buf); sqp 2965 drivers/infiniband/hw/mlx4/qp.c memcpy(inl + 1, sqp->header_buf, header_size); sqp 2969 drivers/infiniband/hw/mlx4/qp.c memcpy(inl + 1, sqp->header_buf, spc); sqp 2972 drivers/infiniband/hw/mlx4/qp.c memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); sqp 3032 drivers/infiniband/hw/mlx4/qp.c static int build_mlx_header(struct mlx4_ib_sqp *sqp, const struct ib_ud_wr *wr, sqp 3035 drivers/infiniband/hw/mlx4/qp.c struct ib_device *ib_dev = sqp->qp.ibqp.device; sqp 3059 drivers/infiniband/hw/mlx4/qp.c is_eth = rdma_port_get_link_layer(sqp->qp.ibqp.device, sqp->qp.port) == IB_LINK_LAYER_ETHERNET; sqp 3073 drivers/infiniband/hw/mlx4/qp.c err = fill_gid_by_hw_index(ibdev, sqp->qp.port, sqp 3095 drivers/infiniband/hw/mlx4/qp.c ip_version, is_udp, 0, &sqp->ud_header); sqp 3100 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.service_level = sqp 3102 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.destination_lid = ah->av.ib.dlid; sqp 3103 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.source_lid = cpu_to_be16(ah->av.ib.g_slid & 0x7f); sqp 3107 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.grh.traffic_class = sqp 3109 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.grh.flow_label = sqp 3111 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.grh.hop_limit = ah->av.ib.hop_limit; sqp 3113 drivers/infiniband/hw/mlx4/qp.c memcpy(sqp->ud_header.grh.source_gid.raw, sgid.raw, 16); sqp 3120 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.grh.source_gid.global.subnet_prefix = sqp 3122 drivers/infiniband/hw/mlx4/qp.c demux[sqp->qp.port - 1]. sqp 3124 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.grh.source_gid.global.interface_id = sqp 3125 drivers/infiniband/hw/mlx4/qp.c to_mdev(ib_dev)->sriov.demux[sqp->qp.port - 1]. sqp 3128 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.grh.source_gid = sqp 3132 drivers/infiniband/hw/mlx4/qp.c memcpy(sqp->ud_header.grh.destination_gid.raw, sqp 3137 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.ip4.tos = sqp 3139 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.ip4.id = 0; sqp 3140 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.ip4.frag_off = htons(IP_DF); sqp 3141 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.ip4.ttl = ah->av.eth.hop_limit; sqp 3143 drivers/infiniband/hw/mlx4/qp.c memcpy(&sqp->ud_header.ip4.saddr, sqp 3145 drivers/infiniband/hw/mlx4/qp.c memcpy(&sqp->ud_header.ip4.daddr, ah->av.ib.dgid + 12, 4); sqp 3146 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.ip4.check = ib_ud_ip4_csum(&sqp->ud_header); sqp 3150 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.udp.dport = htons(ROCE_V2_UDP_DPORT); sqp 3151 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.udp.sport = htons(MLX4_ROCEV2_QP1_SPORT); sqp 3152 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.udp.csum = 0; sqp 3158 drivers/infiniband/hw/mlx4/qp.c mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MLX4_WQE_MLX_VL15 : 0) | sqp 3159 drivers/infiniband/hw/mlx4/qp.c (sqp->ud_header.lrh.destination_lid == sqp 3161 drivers/infiniband/hw/mlx4/qp.c (sqp->ud_header.lrh.service_level << 8)); sqp 3164 drivers/infiniband/hw/mlx4/qp.c mlx->rlid = sqp->ud_header.lrh.destination_lid; sqp 3169 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; sqp 3170 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.immediate_present = 0; sqp 3173 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; sqp 3174 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.immediate_present = 1; sqp 3175 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.immediate_data = wr->wr.ex.imm_data; sqp 3191 drivers/infiniband/hw/mlx4/qp.c ether_addr_copy(sqp->ud_header.eth.smac_h, ah->av.eth.s_mac); sqp 3192 drivers/infiniband/hw/mlx4/qp.c memcpy(sqp->ud_header.eth.dmac_h, ah->av.eth.mac, 6); sqp 3198 drivers/infiniband/hw/mlx4/qp.c if (!memcmp(sqp->ud_header.eth.smac_h, sqp->ud_header.eth.dmac_h, 6)) sqp 3201 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.eth.type = cpu_to_be16(ether_type); sqp 3203 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.vlan.type = cpu_to_be16(ether_type); sqp 3204 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.vlan.tag = cpu_to_be16(vlan | pcp); sqp 3207 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.virtual_lane = !sqp->qp.ibqp.qp_num ? 15 : sqp 3209 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.service_level, sqp 3210 drivers/infiniband/hw/mlx4/qp.c sqp->qp.port); sqp 3211 drivers/infiniband/hw/mlx4/qp.c if (sqp->qp.ibqp.qp_num && sqp->ud_header.lrh.virtual_lane == 15) sqp 3213 drivers/infiniband/hw/mlx4/qp.c if (sqp->ud_header.lrh.destination_lid == IB_LID_PERMISSIVE) sqp 3214 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.source_lid = IB_LID_PERMISSIVE; sqp 3216 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); sqp 3217 drivers/infiniband/hw/mlx4/qp.c if (!sqp->qp.ibqp.qp_num) sqp 3218 drivers/infiniband/hw/mlx4/qp.c err = ib_get_cached_pkey(ib_dev, sqp->qp.port, sqp->pkey_index, sqp 3221 drivers/infiniband/hw/mlx4/qp.c err = ib_get_cached_pkey(ib_dev, sqp->qp.port, wr->pkey_index, sqp 3226 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.pkey = cpu_to_be16(pkey); sqp 3227 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); sqp 3228 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); sqp 3229 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.deth.qkey = cpu_to_be32(wr->remote_qkey & 0x80000000 ? sqp 3230 drivers/infiniband/hw/mlx4/qp.c sqp->qkey : wr->remote_qkey); sqp 3231 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num); sqp 3233 drivers/infiniband/hw/mlx4/qp.c header_size = ib_ud_header_pack(&sqp->ud_header, sqp->header_buf); sqp 3241 drivers/infiniband/hw/mlx4/qp.c be32_to_cpu(((__be32 *) sqp->header_buf)[i])); sqp 3258 drivers/infiniband/hw/mlx4/qp.c memcpy(inl + 1, sqp->header_buf, header_size); sqp 3262 drivers/infiniband/hw/mlx4/qp.c memcpy(inl + 1, sqp->header_buf, spc); sqp 3265 drivers/infiniband/hw/mlx4/qp.c memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); sqp 3554 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_sqp *sqp = to_msqp(qp); sqp 3556 drivers/infiniband/hw/mlx4/qp.c if (sqp->roce_v2_gsi) { sqp 3561 drivers/infiniband/hw/mlx4/qp.c if (!fill_gid_by_hw_index(mdev, sqp->qp.port, sqp 3565 drivers/infiniband/hw/mlx4/qp.c to_mqp(sqp->roce_v2_gsi) : qp; sqp 561 drivers/infiniband/hw/mthca/mthca_dev.h struct mthca_sqp *sqp, sqp 299 drivers/infiniband/hw/mthca/mthca_qp.c static void store_attrs(struct mthca_sqp *sqp, const struct ib_qp_attr *attr, sqp 303 drivers/infiniband/hw/mthca/mthca_qp.c sqp->pkey_index = attr->pkey_index; sqp 305 drivers/infiniband/hw/mthca/mthca_qp.c sqp->qkey = attr->qkey; sqp 307 drivers/infiniband/hw/mthca/mthca_qp.c sqp->send_psn = attr->sq_psn; sqp 1371 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_sqp *sqp, sqp 1377 drivers/infiniband/hw/mthca/mthca_qp.c sqp->qp.transport = MLX; sqp 1378 drivers/infiniband/hw/mthca/mthca_qp.c err = mthca_set_qp_size(dev, cap, pd, &sqp->qp); sqp 1382 drivers/infiniband/hw/mthca/mthca_qp.c sqp->header_buf_size = sqp->qp.sq.max * MTHCA_UD_HEADER_SIZE; sqp 1383 drivers/infiniband/hw/mthca/mthca_qp.c sqp->header_buf = dma_alloc_coherent(&dev->pdev->dev, sqp->header_buf_size, sqp 1384 drivers/infiniband/hw/mthca/mthca_qp.c &sqp->header_dma, GFP_KERNEL); sqp 1385 drivers/infiniband/hw/mthca/mthca_qp.c if (!sqp->header_buf) sqp 1392 drivers/infiniband/hw/mthca/mthca_qp.c mthca_array_set(&dev->qp_table.qp, mqpn, sqp); sqp 1398 drivers/infiniband/hw/mthca/mthca_qp.c sqp->qp.port = port; sqp 1399 drivers/infiniband/hw/mthca/mthca_qp.c sqp->qp.qpn = mqpn; sqp 1400 drivers/infiniband/hw/mthca/mthca_qp.c sqp->qp.transport = MLX; sqp 1403 drivers/infiniband/hw/mthca/mthca_qp.c send_policy, &sqp->qp, udata); sqp 1425 drivers/infiniband/hw/mthca/mthca_qp.c dma_free_coherent(&dev->pdev->dev, sqp->header_buf_size, sqp 1426 drivers/infiniband/hw/mthca/mthca_qp.c sqp->header_buf, sqp->header_dma); sqp 1499 drivers/infiniband/hw/mthca/mthca_qp.c static int build_mlx_header(struct mthca_dev *dev, struct mthca_sqp *sqp, sqp 1510 drivers/infiniband/hw/mthca/mthca_qp.c &sqp->ud_header); sqp 1512 drivers/infiniband/hw/mthca/mthca_qp.c err = mthca_read_ah(dev, to_mah(wr->ah), &sqp->ud_header); sqp 1516 drivers/infiniband/hw/mthca/mthca_qp.c mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MTHCA_MLX_VL15 : 0) | sqp 1517 drivers/infiniband/hw/mthca/mthca_qp.c (sqp->ud_header.lrh.destination_lid == sqp 1519 drivers/infiniband/hw/mthca/mthca_qp.c (sqp->ud_header.lrh.service_level << 8)); sqp 1520 drivers/infiniband/hw/mthca/mthca_qp.c mlx->rlid = sqp->ud_header.lrh.destination_lid; sqp 1525 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; sqp 1526 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.immediate_present = 0; sqp 1529 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; sqp 1530 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.immediate_present = 1; sqp 1531 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.immediate_data = wr->wr.ex.imm_data; sqp 1537 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.lrh.virtual_lane = !sqp->qp.ibqp.qp_num ? 15 : 0; sqp 1538 drivers/infiniband/hw/mthca/mthca_qp.c if (sqp->ud_header.lrh.destination_lid == IB_LID_PERMISSIVE) sqp 1539 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.lrh.source_lid = IB_LID_PERMISSIVE; sqp 1540 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); sqp 1541 drivers/infiniband/hw/mthca/mthca_qp.c if (!sqp->qp.ibqp.qp_num) sqp 1542 drivers/infiniband/hw/mthca/mthca_qp.c ib_get_cached_pkey(&dev->ib_dev, sqp->qp.port, sqp 1543 drivers/infiniband/hw/mthca/mthca_qp.c sqp->pkey_index, &pkey); sqp 1545 drivers/infiniband/hw/mthca/mthca_qp.c ib_get_cached_pkey(&dev->ib_dev, sqp->qp.port, sqp 1547 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.bth.pkey = cpu_to_be16(pkey); sqp 1548 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); sqp 1549 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); sqp 1550 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.deth.qkey = cpu_to_be32(wr->remote_qkey & 0x80000000 ? sqp 1551 drivers/infiniband/hw/mthca/mthca_qp.c sqp->qkey : wr->remote_qkey); sqp 1552 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num); sqp 1554 drivers/infiniband/hw/mthca/mthca_qp.c header_size = ib_ud_header_pack(&sqp->ud_header, sqp 1555 drivers/infiniband/hw/mthca/mthca_qp.c sqp->header_buf + sqp 1559 drivers/infiniband/hw/mthca/mthca_qp.c data->lkey = cpu_to_be32(to_mpd(sqp->qp.ibqp.pd)->ntmr.ibmr.lkey); sqp 1560 drivers/infiniband/hw/mthca/mthca_qp.c data->addr = cpu_to_be64(sqp->header_dma + sqp 51 drivers/infiniband/hw/qib/qib_ud.c static void qib_ud_loopback(struct rvt_qp *sqp, struct rvt_swqe *swqe) sqp 53 drivers/infiniband/hw/qib/qib_ud.c struct qib_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); sqp 73 drivers/infiniband/hw/qib/qib_ud.c sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? sqp 74 drivers/infiniband/hw/qib/qib_ud.c IB_QPT_UD : sqp->ibqp.qp_type; sqp 92 drivers/infiniband/hw/qib/qib_ud.c pkey1 = qib_get_pkey(ibp, sqp->s_pkey_index); sqp 99 drivers/infiniband/hw/qib/qib_ud.c sqp->ibqp.qp_num, qp->ibqp.qp_num, sqp 115 drivers/infiniband/hw/qib/qib_ud.c sqp->qkey : rvt_get_swqe_remote_qkey(swqe); sqp 205 drivers/infiniband/hw/qib/qib_ud.c wc.src_qp = sqp->ibqp.qp_num; sqp 2943 drivers/infiniband/sw/rdmavt/qp.c struct rvt_qp *sqp) sqp 2950 drivers/infiniband/sw/rdmavt/qp.c return sqp->ibqp.qp_type == IB_QPT_RC ? sqp 2964 drivers/infiniband/sw/rdmavt/qp.c void rvt_ruc_loopback(struct rvt_qp *sqp) sqp 2967 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(sqp->ibqp.device); sqp 2982 drivers/infiniband/sw/rdmavt/qp.c rvp = rdi->ports[sqp->port_num - 1]; sqp 2989 drivers/infiniband/sw/rdmavt/qp.c qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), rvp, sqp 2990 drivers/infiniband/sw/rdmavt/qp.c sqp->remote_qpn); sqp 2992 drivers/infiniband/sw/rdmavt/qp.c spin_lock_irqsave(&sqp->s_lock, flags); sqp 2995 drivers/infiniband/sw/rdmavt/qp.c if ((sqp->s_flags & (RVT_S_BUSY | RVT_S_ANY_WAIT)) || sqp 2996 drivers/infiniband/sw/rdmavt/qp.c !(ib_rvt_state_ops[sqp->state] & RVT_PROCESS_OR_FLUSH_SEND)) sqp 2999 drivers/infiniband/sw/rdmavt/qp.c sqp->s_flags |= RVT_S_BUSY; sqp 3002 drivers/infiniband/sw/rdmavt/qp.c if (sqp->s_last == READ_ONCE(sqp->s_head)) sqp 3004 drivers/infiniband/sw/rdmavt/qp.c wqe = rvt_get_swqe_ptr(sqp, sqp->s_last); sqp 3007 drivers/infiniband/sw/rdmavt/qp.c if (!(ib_rvt_state_ops[sqp->state] & RVT_PROCESS_NEXT_SEND_OK)) { sqp 3008 drivers/infiniband/sw/rdmavt/qp.c if (!(ib_rvt_state_ops[sqp->state] & RVT_FLUSH_SEND)) sqp 3020 drivers/infiniband/sw/rdmavt/qp.c if (sqp->s_last == sqp->s_cur) { sqp 3021 drivers/infiniband/sw/rdmavt/qp.c if (++sqp->s_cur >= sqp->s_size) sqp 3022 drivers/infiniband/sw/rdmavt/qp.c sqp->s_cur = 0; sqp 3024 drivers/infiniband/sw/rdmavt/qp.c spin_unlock_irqrestore(&sqp->s_lock, flags); sqp 3027 drivers/infiniband/sw/rdmavt/qp.c send_status = loopback_qp_drop(rvp, sqp); sqp 3032 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.qp_type != sqp->ibqp.qp_type) { sqp 3033 drivers/infiniband/sw/rdmavt/qp.c send_status = loopback_qp_drop(rvp, sqp); sqp 3041 drivers/infiniband/sw/rdmavt/qp.c sqp->s_sge.sge = wqe->sg_list[0]; sqp 3042 drivers/infiniband/sw/rdmavt/qp.c sqp->s_sge.sg_list = wqe->sg_list + 1; sqp 3043 drivers/infiniband/sw/rdmavt/qp.c sqp->s_sge.num_sge = wqe->wr.num_sge; sqp 3044 drivers/infiniband/sw/rdmavt/qp.c sqp->s_len = wqe->length; sqp 3051 drivers/infiniband/sw/rdmavt/qp.c if (rvt_invalidate_rkey(sqp, sqp 3118 drivers/infiniband/sw/rdmavt/qp.c if (unlikely(!rvt_rkey_ok(qp, &sqp->s_sge.sge, wqe->length, sqp 3124 drivers/infiniband/sw/rdmavt/qp.c sqp->s_sge.sg_list = NULL; sqp 3125 drivers/infiniband/sw/rdmavt/qp.c sqp->s_sge.num_sge = 1; sqp 3144 drivers/infiniband/sw/rdmavt/qp.c *(u64 *)sqp->s_sge.sge.vaddr = sqp 3158 drivers/infiniband/sw/rdmavt/qp.c sge = &sqp->s_sge.sge; sqp 3159 drivers/infiniband/sw/rdmavt/qp.c while (sqp->s_len) { sqp 3160 drivers/infiniband/sw/rdmavt/qp.c u32 len = rvt_get_sge_length(sge, sqp->s_len); sqp 3165 drivers/infiniband/sw/rdmavt/qp.c rvt_update_sge(&sqp->s_sge, len, !release); sqp 3166 drivers/infiniband/sw/rdmavt/qp.c sqp->s_len -= len; sqp 3191 drivers/infiniband/sw/rdmavt/qp.c spin_lock_irqsave(&sqp->s_lock, flags); sqp 3194 drivers/infiniband/sw/rdmavt/qp.c sqp->s_rnr_retry = sqp->s_rnr_retry_cnt; sqp 3195 drivers/infiniband/sw/rdmavt/qp.c rvt_send_complete(sqp, wqe, send_status); sqp 3197 drivers/infiniband/sw/rdmavt/qp.c atomic_dec(&sqp->local_ops_pending); sqp 3211 drivers/infiniband/sw/rdmavt/qp.c if (sqp->s_rnr_retry == 0) { sqp 3215 drivers/infiniband/sw/rdmavt/qp.c if (sqp->s_rnr_retry_cnt < 7) sqp 3216 drivers/infiniband/sw/rdmavt/qp.c sqp->s_rnr_retry--; sqp 3218 drivers/infiniband/sw/rdmavt/qp.c spin_lock_irqsave(&sqp->s_lock, flags); sqp 3219 drivers/infiniband/sw/rdmavt/qp.c if (!(ib_rvt_state_ops[sqp->state] & RVT_PROCESS_RECV_OK)) sqp 3221 drivers/infiniband/sw/rdmavt/qp.c rvt_add_rnr_timer(sqp, qp->r_min_rnr_timer << sqp 3232 drivers/infiniband/sw/rdmavt/qp.c sqp->ibqp.qp_type == IB_QPT_RC ? sqp 3248 drivers/infiniband/sw/rdmavt/qp.c spin_lock_irqsave(&sqp->s_lock, flags); sqp 3249 drivers/infiniband/sw/rdmavt/qp.c rvt_send_complete(sqp, wqe, send_status); sqp 3250 drivers/infiniband/sw/rdmavt/qp.c if (sqp->ibqp.qp_type == IB_QPT_RC) { sqp 3251 drivers/infiniband/sw/rdmavt/qp.c int lastwqe = rvt_error_qp(sqp, IB_WC_WR_FLUSH_ERR); sqp 3253 drivers/infiniband/sw/rdmavt/qp.c sqp->s_flags &= ~RVT_S_BUSY; sqp 3254 drivers/infiniband/sw/rdmavt/qp.c spin_unlock_irqrestore(&sqp->s_lock, flags); sqp 3258 drivers/infiniband/sw/rdmavt/qp.c ev.device = sqp->ibqp.device; sqp 3259 drivers/infiniband/sw/rdmavt/qp.c ev.element.qp = &sqp->ibqp; sqp 3261 drivers/infiniband/sw/rdmavt/qp.c sqp->ibqp.event_handler(&ev, sqp->ibqp.qp_context); sqp 3266 drivers/infiniband/sw/rdmavt/qp.c sqp->s_flags &= ~RVT_S_BUSY; sqp 3268 drivers/infiniband/sw/rdmavt/qp.c spin_unlock_irqrestore(&sqp->s_lock, flags); sqp 493 drivers/infiniband/sw/rxe/rxe_hdr.h __be32 sqp; sqp 517 drivers/infiniband/sw/rxe/rxe_hdr.h return DETH_SQP_MASK & be32_to_cpu(deth->sqp); sqp 520 drivers/infiniband/sw/rxe/rxe_hdr.h static inline void __deth_set_sqp(void *arg, u32 sqp) sqp 524 drivers/infiniband/sw/rxe/rxe_hdr.h deth->sqp = cpu_to_be32(DETH_SQP_MASK & sqp); sqp 545 drivers/infiniband/sw/rxe/rxe_hdr.h static inline void deth_set_sqp(struct rxe_pkt_info *pkt, u32 sqp) sqp 548 drivers/infiniband/sw/rxe/rxe_hdr.h + rxe_opcode[pkt->opcode].offset[RXE_DETH], sqp); sqp 3714 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 3723 drivers/scsi/scsi_debug.c sqp = sdebug_q_arr + sd_dp->sqa_idx; sqp 3733 drivers/scsi/scsi_debug.c spin_lock_irqsave(&sqp->qc_lock, iflags); sqp 3734 drivers/scsi/scsi_debug.c sqcp = &sqp->qc_arr[qc_idx]; sqp 3737 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 3751 drivers/scsi/scsi_debug.c if (unlikely(!test_and_clear_bit(qc_idx, sqp->in_use_bm))) { sqp 3752 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 3762 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 3766 drivers/scsi/scsi_debug.c k = find_last_bit(sqp->in_use_bm, retval); sqp 3772 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 3927 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 3932 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) { sqp 3933 drivers/scsi/scsi_debug.c spin_lock_irqsave(&sqp->qc_lock, iflags); sqp 3939 drivers/scsi/scsi_debug.c if (test_bit(k, sqp->in_use_bm)) { sqp 3940 drivers/scsi/scsi_debug.c sqcp = &sqp->qc_arr[k]; sqp 3955 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 3957 drivers/scsi/scsi_debug.c clear_bit(k, sqp->in_use_bm); sqp 3961 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 3972 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 3977 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) { sqp 3978 drivers/scsi/scsi_debug.c spin_lock_irqsave(&sqp->qc_lock, iflags); sqp 3980 drivers/scsi/scsi_debug.c if (test_bit(k, sqp->in_use_bm)) { sqp 3981 drivers/scsi/scsi_debug.c sqcp = &sqp->qc_arr[k]; sqp 3995 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 3997 drivers/scsi/scsi_debug.c clear_bit(k, sqp->in_use_bm); sqp 3998 drivers/scsi/scsi_debug.c spin_lock_irqsave(&sqp->qc_lock, iflags); sqp 4001 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 4009 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 4012 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) { sqp 4014 drivers/scsi/scsi_debug.c sqcp = &sqp->qc_arr[k]; sqp 4199 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 4201 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) sqp 4202 drivers/scsi/scsi_debug.c atomic_set(&sqp->blocked, (int)block); sqp 4229 drivers/scsi/scsi_debug.c static void setup_inject(struct sdebug_queue *sqp, sqp 4262 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 4278 drivers/scsi/scsi_debug.c sqp = get_queue(cmnd); sqp 4279 drivers/scsi/scsi_debug.c spin_lock_irqsave(&sqp->qc_lock, iflags); sqp 4280 drivers/scsi/scsi_debug.c if (unlikely(atomic_read(&sqp->blocked))) { sqp 4281 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 4289 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 4305 drivers/scsi/scsi_debug.c k = find_first_zero_bit(sqp->in_use_bm, sdebug_max_queue); sqp 4307 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 4323 drivers/scsi/scsi_debug.c __set_bit(k, sqp->in_use_bm); sqp 4325 drivers/scsi/scsi_debug.c sqcp = &sqp->qc_arr[k]; sqp 4329 drivers/scsi/scsi_debug.c spin_unlock_irqrestore(&sqp->qc_lock, iflags); sqp 4331 drivers/scsi/scsi_debug.c setup_inject(sqp, sqcp); sqp 4366 drivers/scsi/scsi_debug.c sd_dp->sqa_idx = sqp - sdebug_q_arr; sqp 4377 drivers/scsi/scsi_debug.c sd_dp->sqa_idx = sqp - sdebug_q_arr; sqp 4577 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 4604 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) { sqp 4606 drivers/scsi/scsi_debug.c f = find_first_bit(sqp->in_use_bm, sdebug_max_queue); sqp 4608 drivers/scsi/scsi_debug.c l = find_last_bit(sqp->in_use_bm, sdebug_max_queue); sqp 4632 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 4635 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; sqp 4636 drivers/scsi/scsi_debug.c ++j, ++sqp) { sqp 4637 drivers/scsi/scsi_debug.c k = find_first_bit(sqp->in_use_bm, sqp 4672 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 4675 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; sqp 4676 drivers/scsi/scsi_debug.c ++j, ++sqp) { sqp 4677 drivers/scsi/scsi_debug.c k = find_first_bit(sqp->in_use_bm, sqp 4911 drivers/scsi/scsi_debug.c struct sdebug_queue *sqp; sqp 4917 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; sqp 4918 drivers/scsi/scsi_debug.c ++j, ++sqp) { sqp 4919 drivers/scsi/scsi_debug.c a = find_last_bit(sqp->in_use_bm, SDEBUG_CANQUEUE);