Lines Matching refs:fill
593 int fill, count; in pasemi_mac_replenish_rx_ring() local
598 fill = rx_ring(mac)->next_to_fill; in pasemi_mac_replenish_rx_ring()
600 struct pasemi_mac_buffer *info = &RX_DESC_INFO(rx, fill); in pasemi_mac_replenish_rx_ring()
601 u64 *buff = &RX_BUFF(rx, fill); in pasemi_mac_replenish_rx_ring()
626 fill++; in pasemi_mac_replenish_rx_ring()
1359 int cs_size, i, fill, hdr, cpyhdr, evt; in pasemi_mac_queue_csdesc() local
1383 fill = csring->next_to_fill; in pasemi_mac_queue_csdesc()
1384 hdr = fill; in pasemi_mac_queue_csdesc()
1386 CS_DESC(csring, fill++) = fund; in pasemi_mac_queue_csdesc()
1388 csdma = csring->chan.ring_dma + (fill & (CS_RING_SIZE-1)) * 8 + 2; in pasemi_mac_queue_csdesc()
1389 CS_DESC(csring, fill++) = 0; in pasemi_mac_queue_csdesc()
1391 CS_DESC(csring, fill) = XCT_PTR_LEN(map_size[0]-nh_off) | XCT_PTR_ADDR(map[0]+nh_off); in pasemi_mac_queue_csdesc()
1393 CS_DESC(csring, fill+i) = XCT_PTR_LEN(map_size[i]) | XCT_PTR_ADDR(map[i]); in pasemi_mac_queue_csdesc()
1395 fill += i; in pasemi_mac_queue_csdesc()
1396 if (fill & 1) in pasemi_mac_queue_csdesc()
1397 fill++; in pasemi_mac_queue_csdesc()
1400 cpyhdr = fill; in pasemi_mac_queue_csdesc()
1401 CS_DESC(csring, fill++) = XCT_FUN_O | XCT_FUN_FUN(csring->fun) | in pasemi_mac_queue_csdesc()
1403 CS_DESC(csring, fill++) = XCT_PTR_LEN(2) | XCT_PTR_ADDR(cs_dest) | XCT_PTR_T; in pasemi_mac_queue_csdesc()
1404 CS_DESC(csring, fill++) = XCT_PTR_LEN(2) | XCT_PTR_ADDR(csdma); in pasemi_mac_queue_csdesc()
1405 fill++; in pasemi_mac_queue_csdesc()
1411 CS_DESC(csring, fill++) = CTRL_CMD_T | CTRL_CMD_META_EVT | CTRL_CMD_O | in pasemi_mac_queue_csdesc()
1413 CS_DESC(csring, fill++) = 0; in pasemi_mac_queue_csdesc()
1414 CS_DESC(csring, fill++) = CTRL_CMD_T | CTRL_CMD_META_EVT | CTRL_CMD_O | in pasemi_mac_queue_csdesc()
1416 CS_DESC(csring, fill++) = 0; in pasemi_mac_queue_csdesc()
1417 csring->next_to_fill = fill & (CS_RING_SIZE-1); in pasemi_mac_queue_csdesc()
1419 cs_size = fill - hdr; in pasemi_mac_queue_csdesc()
1423 fill = txring->next_to_fill; in pasemi_mac_queue_csdesc()
1424 TX_DESC(txring, fill++) = CTRL_CMD_T | CTRL_CMD_META_EVT | CTRL_CMD_O | in pasemi_mac_queue_csdesc()
1426 TX_DESC(txring, fill++) = 0; in pasemi_mac_queue_csdesc()
1427 TX_DESC(txring, fill++) = CTRL_CMD_T | CTRL_CMD_META_EVT | CTRL_CMD_O | in pasemi_mac_queue_csdesc()
1429 TX_DESC(txring, fill++) = 0; in pasemi_mac_queue_csdesc()
1430 txring->next_to_fill = fill; in pasemi_mac_queue_csdesc()
1446 int fill; in pasemi_mac_start_tx() local
1513 fill = txring->next_to_fill; in pasemi_mac_start_tx()
1514 TX_DESC(txring, fill) = mactx; in pasemi_mac_start_tx()
1515 TX_DESC_INFO(txring, fill).dma = nfrags; in pasemi_mac_start_tx()
1516 fill++; in pasemi_mac_start_tx()
1517 TX_DESC_INFO(txring, fill).skb = skb; in pasemi_mac_start_tx()
1519 TX_DESC(txring, fill+i) = in pasemi_mac_start_tx()
1521 TX_DESC_INFO(txring, fill+i).dma = map[i]; in pasemi_mac_start_tx()
1531 txring->next_to_fill = (fill + nfrags + 1) & (TX_RING_SIZE-1); in pasemi_mac_start_tx()