csring 353 drivers/net/ethernet/pasemi/pasemi_mac.c static void pasemi_mac_free_csring(struct pasemi_mac_csring *csring) csring 355 drivers/net/ethernet/pasemi/pasemi_mac.c pasemi_dma_stop_chan(&csring->chan); csring 356 drivers/net/ethernet/pasemi/pasemi_mac.c pasemi_dma_free_flag(csring->events[0]); csring 357 drivers/net/ethernet/pasemi/pasemi_mac.c pasemi_dma_free_flag(csring->events[1]); csring 358 drivers/net/ethernet/pasemi/pasemi_mac.c pasemi_dma_free_ring(&csring->chan); csring 359 drivers/net/ethernet/pasemi/pasemi_mac.c pasemi_dma_free_chan(&csring->chan); csring 360 drivers/net/ethernet/pasemi/pasemi_mac.c pasemi_dma_free_fun(csring->fun); csring 1340 drivers/net/ethernet/pasemi/pasemi_mac.c struct pasemi_mac_csring *csring) csring 1351 drivers/net/ethernet/pasemi/pasemi_mac.c XCT_FUN_O | XCT_FUN_FUN(csring->fun) | csring 1371 drivers/net/ethernet/pasemi/pasemi_mac.c fill = csring->next_to_fill; csring 1374 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill++) = fund; csring 1376 drivers/net/ethernet/pasemi/pasemi_mac.c csdma = csring->chan.ring_dma + (fill & (CS_RING_SIZE-1)) * 8 + 2; csring 1377 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill++) = 0; csring 1379 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill) = XCT_PTR_LEN(map_size[0]-nh_off) | XCT_PTR_ADDR(map[0]+nh_off); csring 1381 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill+i) = XCT_PTR_LEN(map_size[i]) | XCT_PTR_ADDR(map[i]); csring 1388 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill++) = XCT_FUN_O | XCT_FUN_FUN(csring->fun) | csring 1390 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill++) = XCT_PTR_LEN(2) | XCT_PTR_ADDR(cs_dest) | XCT_PTR_T; csring 1391 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill++) = XCT_PTR_LEN(2) | XCT_PTR_ADDR(csdma); csring 1394 drivers/net/ethernet/pasemi/pasemi_mac.c evt = !csring->last_event; csring 1395 drivers/net/ethernet/pasemi/pasemi_mac.c csring->last_event = evt; csring 1398 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill++) = CTRL_CMD_T | CTRL_CMD_META_EVT | CTRL_CMD_O | csring 1399 drivers/net/ethernet/pasemi/pasemi_mac.c CTRL_CMD_ETYPE_SET | CTRL_CMD_REG(csring->events[evt]); csring 1400 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill++) = 0; csring 1401 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill++) = CTRL_CMD_T | CTRL_CMD_META_EVT | CTRL_CMD_O | csring 1402 drivers/net/ethernet/pasemi/pasemi_mac.c CTRL_CMD_ETYPE_WCLR | CTRL_CMD_REG(csring->events[!evt]); csring 1403 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill++) = 0; csring 1404 drivers/net/ethernet/pasemi/pasemi_mac.c csring->next_to_fill = fill & (CS_RING_SIZE-1); csring 1407 drivers/net/ethernet/pasemi/pasemi_mac.c write_dma_reg(PAS_DMA_TXCHAN_INCR(csring->chan.chno), (cs_size) >> 1); csring 1412 drivers/net/ethernet/pasemi/pasemi_mac.c CTRL_CMD_ETYPE_WSET | CTRL_CMD_REG(csring->events[evt]); csring 1415 drivers/net/ethernet/pasemi/pasemi_mac.c CTRL_CMD_ETYPE_CLR | CTRL_CMD_REG(csring->events[!evt]); csring 1426 drivers/net/ethernet/pasemi/pasemi_mac.c struct pasemi_mac_csring *csring; csring 1494 drivers/net/ethernet/pasemi/pasemi_mac.c csring = mac->cs[mac->last_cs]; csring 1497 drivers/net/ethernet/pasemi/pasemi_mac.c pasemi_mac_queue_csdesc(skb, map, map_size, txring, csring);