Lines Matching defs:alloc
993 * @alloc: Number of descriptors allocated.
1005 int alloc;
3806 int alloc = info->alloc;
3810 while (!(alloc & 1)) {
3812 alloc >>= 1;
3814 if (alloc != 1 || shift < MIN_DESC_SHIFT) {
3816 while (alloc) {
3818 alloc >>= 1;
3822 alloc = 1 << shift;
3823 info->alloc = alloc;
3825 info->mask = info->alloc - 1;
3836 for (i = 0; i < desc_info->alloc; i++) {
3846 desc_info->avail = desc_info->alloc;
3870 info->avail = info->alloc;
4366 desc_info->ring = kcalloc(desc_info->alloc, sizeof(struct ksz_desc),
4390 hw->rx_desc_info.size * hw->rx_desc_info.alloc +
4391 hw->tx_desc_info.size * hw->tx_desc_info.alloc +
4414 offset = hw->rx_desc_info.alloc * hw->rx_desc_info.size;
4459 for (i = 0; i < hw->rx_desc_info.alloc; i++) {
4495 hw->rx_desc_info.alloc = NUM_OF_RX_DESC;
4496 hw->tx_desc_info.alloc = NUM_OF_TX_DESC;
4580 for (i = 0; i < desc_info->alloc; i++) {
4747 while (info->avail < info->alloc) {
5035 int left = info->alloc;
5071 int left = info->alloc;
5116 int left = info->alloc;
6406 ring->tx_pending = hw->tx_desc_info.alloc;
6408 ring->rx_pending = hw->rx_desc_info.alloc;