Lines Matching defs:count

468 	__le16 count;
529 u32 count;
786 static int e100_eeprom_save(struct nic *nic, u16 start, u16 count)
794 if (start + count >= nic->eeprom_wc)
797 for (addr = start; addr < start + count; addr++)
1038 struct param_range rfds = { .min = 16, .max = 256, .count = 256 };
1039 struct param_range cbs = { .min = 64, .max = 256, .count = 128 };
1563 u16 i, count = min(netdev_mc_count(netdev), E100_MAX_MULTICAST_ADDRS);
1566 cb->u.multi.count = cpu_to_le16(count * ETH_ALEN);
1569 if (i == count)
1851 while (nic->cbs_avail != nic->params.cbs.count) {
1875 unsigned int i, count = nic->params.cbs.count;
1886 for (cb = nic->cbs, i = 0; i < count; cb++, i++) {
1887 cb->next = (i + 1 < count) ? cb + 1 : nic->cbs;
1888 cb->prev = (i == 0) ? nic->cbs + count - 1 : cb - 1;
1892 ((i+1) % count) * sizeof(struct cb));
1896 nic->cbs_avail = count;
2131 unsigned int i, count = nic->params.rfds.count;
2136 for (rx = nic->rxs, i = 0; i < count; rx++, i++) {
2154 unsigned int i, count = nic->params.rfds.count;
2160 if (!(nic->rxs = kcalloc(count, sizeof(struct rx), GFP_KERNEL)))
2163 for (rx = nic->rxs, i = 0; i < count; rx++, i++) {
2164 rx->next = (i + 1 < count) ? rx + 1 : nic->rxs;
2165 rx->prev = (i == 0) ? nic->rxs + count - 1 : rx - 1;
2566 ring->rx_pending = rfds->count;
2567 ring->tx_pending = cbs->count;
2584 rfds->count = max(ring->rx_pending, rfds->min);
2585 rfds->count = min(rfds->count, rfds->max);
2586 cbs->count = max(ring->tx_pending, cbs->min);
2587 cbs->count = min(cbs->count, cbs->max);
2589 rfds->count, cbs->count);