Lines Matching defs:pl
3124 struct mfi_pd_list *pl;
3145 pl = malloc(sizeof *pl, M_DEVBUF, M_WAITOK);
3176 if (mfii_mgmt(sc, MR_DCMD_PD_GET_LIST, NULL, pl, sizeof(*pl),
3180 for (i = 0; i < pl->mpl_no_pd; i++) {
3181 if (pl->mpl_address[i].mpa_scsi_type != 0)
3185 mbox.s[0] = pl->mpl_address[i].mpa_pd_id;
3195 if (i == pl->mpl_no_pd)
3266 free(pl, M_DEVBUF, sizeof *pl);
3480 struct mfi_pd_list *pl;
3488 pl = malloc(sizeof *pl, M_DEVBUF, M_WAITOK);
3490 if (mfii_mgmt(sc, MR_DCMD_PD_GET_LIST, NULL, pl, sizeof(*pl), SCSI_DATA_IN))
3493 for (i = 0, found = 0; i < pl->mpl_no_pd; i++)
3494 if (bs->bs_channel == pl->mpl_address[i].mpa_enc_index &&
3495 bs->bs_target == pl->mpl_address[i].mpa_enc_slot) {
3504 mbox.s[0] = pl->mpl_address[i].mpa_pd_id;
3509 mbox.s[0] = pl->mpl_address[i].mpa_pd_id;
3528 pl->mpl_address[i].mpa_pd_id)))
3532 pl->mpl_address[i].mpa_pd_id)))
3536 mbox.s[0] = pl->mpl_address[i].mpa_pd_id;
3548 mbox.s[0] = pl->mpl_address[i].mpa_pd_id;
3564 free(pl, M_DEVBUF, sizeof *pl);