irdma_uk.c
Source contains an unconditional loopSource contains low-bit mask syntax
SHA-256bad1d02a87bc776d9cd82aa03b57898b8ed05a7588291bfe4fe9e5004555c329
MaleculeO(Er)H(Db₂)
Evidence
31:38… E USE OR OTHER DEALINGS IN THE
32 * SOFTWARE.
33 */
34
35#include "osdep.h"
36#include "irdma_defs.h"
37#include "irdma_user.h"
38#include "irdma.h"
39
40/**
41 * irdma_set_fragment - set fragment in wqe
42 * @wqe: wqe for setting fragment
43 * @offset …
⋯4 lines
107
108 if (!qp->sq_ring.head)
109 return -EINVAL;
110
111 wqe_idx = IRDMA_RING_CURRENT_HEAD(qp->sq_ring);
112 wqe = qp->sq_base[wqe_idx].elem;
113
114 qp->sq_wrtrk_array[wqe_idx].quanta = IRD …
273:41… && wqe_quanta == 1 &&
274 (IRDMA_RING_CURRENT_HEAD(qp->sq_ring) & 1)) {
275 wqe_0 = qp->sq_base[IRDMA_RING_CURRENT_HEAD(qp->sq_ring)].elem;
276 wqe_0[3] = cpu_to_le64(FIELD_PREP(IRDMAQPSQ_VALID,
277 …
1212:22… = qword6 & 0xFF;
1213 info->ud_smac[4] = (qword6 >> 8) & 0xFF;
1214 info->ud_smac[3] = (qword6 >> 16) & 0xFF;
1215 info->ud_smac[2] = (qword6 >> 24) & 0xFF;
1216 info->ud_smac[1] = (qword6 >> 32) & 0xFF;
1217 info->ud_smac[0] = (qword6 >> 40) & …
1260:39… ET(IRDMACQ_SOEVENT, qword3);
1261 if (!qp || qp->destroy_pending) {
1262 ret_code = -EFAULT;
1263 goto exit;
1264 }
1265 wqe_idx = (u32)FIELD_GET(IRDMA_CQ_WQEIDX, qword3);
1266 info->qp_handle = (irdma_qp_handle) (irdma_uintptr) qp;
1267 i …