Lines Matching defs:lp
93 #define CAM_GET_SIMPLE_LUN(lp, i, lval) \
94 if (((lp)->luns[(i)].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \
96 (lval) = (lp)->luns[(i)].lundata[1]; \
98 (lval) = (lp)->luns[(i)].lundata[0]; \
101 (lval) |= (lp)->luns[(i)].lundata[1]; \
103 #define CAM_GET_LUN(lp, i, lval) \
104 (lval) = scsi_4btoul((lp)->luns[(i)].lundata); \
106 #define CAM_LUN_ONLY_32BITS(lp, i) \
107 (scsi_4btoul(&((lp)->luns[(i)].lundata[4])) == 0)
1273 struct scsi_report_luns_data *lp;
1278 lp = (struct scsi_report_luns_data *)csio->data_ptr;
1279 nlun = scsi_4btoul(lp->length) / 8;
1293 free(lp, M_CAMXPT);
1294 lp = NULL;
1302 free(lp, M_CAMXPT);
1311 free(lp, M_CAMXPT);
1312 lp = NULL;
1320 CAM_GET_LUN(lp, 0, lun);
1327 CAM_GET_LUN(lp, idx, lun);
1335 lp->luns[0].lundata, 8);
1336 memcpy(lp->luns[0].lundata,
1337 lp->luns[idx].lundata, 8);
1338 memcpy(lp->luns[idx].lundata,
1351 probe_purge_old(path, lp, softc->flags);
1352 lp = NULL;
1355 * out` or leave the `lp` variable `NULL` and (if
1359 KASSERT(lp == NULL, ("%s: lp is not NULL", __func__));