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 };
1564 u16 i, count = min(netdev_mc_count(netdev), E100_MAX_MULTICAST_ADDRS);
1567 cb->u.multi.count = cpu_to_le16(count * ETH_ALEN);
1570 if (i == count)
1852 while (nic->cbs_avail != nic->params.cbs.count) {
1876 unsigned int i, count = nic->params.cbs.count;
1887 for (cb = nic->cbs, i = 0; i < count; cb++, i++) {
1888 cb->next = (i + 1 < count) ? cb + 1 : nic->cbs;
1889 cb->prev = (i == 0) ? nic->cbs + count - 1 : cb - 1;
1893 ((i+1) % count) * sizeof(struct cb));
1897 nic->cbs_avail = count;
2132 unsigned int i, count = nic->params.rfds.count;
2137 for (rx = nic->rxs, i = 0; i < count; rx++, i++) {
2155 unsigned int i, count = nic->params.rfds.count;
2161 if (!(nic->rxs = kcalloc(count, sizeof(struct rx), GFP_KERNEL)))
2164 for (rx = nic->rxs, i = 0; i < count; rx++, i++) {
2165 rx->next = (i + 1 < count) ? rx + 1 : nic->rxs;
2166 rx->prev = (i == 0) ? nic->rxs + count - 1 : rx - 1;
2565 ring->rx_pending = rfds->count;
2566 ring->tx_pending = cbs->count;
2581 rfds->count = max(ring->rx_pending, rfds->min);
2582 rfds->count = min(rfds->count, rfds->max);
2583 cbs->count = max(ring->tx_pending, cbs->min);
2584 cbs->count = min(cbs->count, cbs->max);
2586 rfds->count, cbs->count);