Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixl_pf_qmgr.c
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | ixl_pf_qmgr_alloc_contiguous(struct ixl_pf_qmgr *qmgr, u16 num, struct ixl_pf_qtag *qtag) | ||||
/* Mark queues as allocated */ | /* Mark queues as allocated */ | ||||
for (i = block_start; i < block_start + alloc_size; i++) | for (i = block_start; i < block_start + alloc_size; i++) | ||||
qmgr->qinfo[i].allocated = true; | qmgr->qinfo[i].allocated = true; | ||||
bzero(qtag, sizeof(*qtag)); | bzero(qtag, sizeof(*qtag)); | ||||
qtag->qmgr = qmgr; | qtag->qmgr = qmgr; | ||||
qtag->type = IXL_PF_QALLOC_CONTIGUOUS; | qtag->type = IXL_PF_QALLOC_CONTIGUOUS; | ||||
qtag->qidx[0] = block_start; | qtag->qidx[0] = block_start; | ||||
qtag->num_allocated = num; | qtag->num_allocated = alloc_size; | ||||
qtag->num_active = alloc_size; | qtag->num_active = num; | ||||
return (0); | return (0); | ||||
} | } | ||||
/* | /* | ||||
* NB: indices is u16 because this is the queue index width used in the Add VSI AQ command | * NB: indices is u16 because this is the queue index width used in the Add VSI AQ command | ||||
*/ | */ | ||||
int | int | ||||
▲ Show 20 Lines • Show All 213 Lines • Show Last 20 Lines |