Lines Matching defs:cbp
227 sbp2_cfgrom_read_bib(sbp2_tgt_t *tp, void *cmd, sbp2_cfgrom_bib_t *cbp)
239 cbp->cb_len = (val >> 24);
240 if (cbp->cb_len < 1) {
243 cbp->cb_buf = kmem_zalloc(cbp->cb_len * 4, KM_SLEEP);
246 for (i = 0; i < cbp->cb_len; i++, addr += 4) {
247 SBP2_CFGROM_RQ(tp, cmd, addr, &cbp->cb_buf[i]);
251 sbp2_cfgrom_free_bib(tp, cbp);
258 sbp2_cfgrom_free_bib(sbp2_tgt_t *tp, sbp2_cfgrom_bib_t *cbp)
260 if ((cbp->cb_buf != NULL) && (cbp->cb_len > 0)) {
261 kmem_free(cbp->cb_buf, cbp->cb_len * 4);
262 cbp->cb_buf = NULL;