Lines Matching defs:alloc
925 * @alloc: Number of descriptors allocated.
937 int alloc;
3433 int alloc = info->alloc;
3437 while (!(alloc & 1)) {
3439 alloc >>= 1;
3441 if (alloc != 1 || shift < MIN_DESC_SHIFT) {
3443 while (alloc) {
3445 alloc >>= 1;
3449 alloc = 1 << shift;
3450 info->alloc = alloc;
3452 info->mask = info->alloc - 1;
3463 for (i = 0; i < desc_info->alloc; i++) {
3473 desc_info->avail = desc_info->alloc;
3497 info->avail = info->alloc;
3993 desc_info->ring = kcalloc(desc_info->alloc, sizeof(struct ksz_desc),
4017 hw->rx_desc_info.size * hw->rx_desc_info.alloc +
4018 hw->tx_desc_info.size * hw->tx_desc_info.alloc +
4041 offset = hw->rx_desc_info.alloc * hw->rx_desc_info.size;
4086 for (i = 0; i < hw->rx_desc_info.alloc; i++) {
4122 hw->rx_desc_info.alloc = NUM_OF_RX_DESC;
4123 hw->tx_desc_info.alloc = NUM_OF_TX_DESC;
4207 for (i = 0; i < desc_info->alloc; i++) {
4374 while (info->avail < info->alloc) {
4662 int left = info->alloc;
4698 int left = info->alloc;
4743 int left = info->alloc;
6035 ring->tx_pending = hw->tx_desc_info.alloc;
6037 ring->rx_pending = hw->rx_desc_info.alloc;