Home
last modified time | relevance | path

Searched refs:lastWrite (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/3com/
H A Dtyphoon.c469 cmd = (struct cmd_desc *)(ring->ringBase + ring->lastWrite); in typhoon_hello()
470 typhoon_inc_cmd_index(&ring->lastWrite, 1); in typhoon_hello()
474 iowrite32(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello()
539 typhoon_num_free(int lastWrite, int lastRead, int ringSize) in typhoon_num_free() argument
544 lastWrite /= sizeof(struct cmd_desc); in typhoon_num_free()
546 return (ringSize + lastRead - lastWrite - 1) % ringSize; in typhoon_num_free()
552 int lastWrite = tp->cmdRing.lastWrite; in typhoon_num_free_cmd() local
555 return typhoon_num_free(lastWrite, cmdCleared, COMMAND_ENTRIES); in typhoon_num_free_cmd()
571 return typhoon_num_free(ring->lastWrite, rin in typhoon_num_free_tx()
[all...]
H A Dtyphoon.h29 * lastWrite: the next entry we'll use
33 u32 lastWrite; member
42 u32 lastWrite; member
/kernel/linux/linux-6.6/drivers/net/ethernet/3com/
H A Dtyphoon.c464 cmd = (struct cmd_desc *)(ring->ringBase + ring->lastWrite); in typhoon_hello()
465 typhoon_inc_cmd_index(&ring->lastWrite, 1); in typhoon_hello()
469 iowrite32(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello()
534 typhoon_num_free(int lastWrite, int lastRead, int ringSize) in typhoon_num_free() argument
539 lastWrite /= sizeof(struct cmd_desc); in typhoon_num_free()
541 return (ringSize + lastRead - lastWrite - 1) % ringSize; in typhoon_num_free()
547 int lastWrite = tp->cmdRing.lastWrite; in typhoon_num_free_cmd() local
550 return typhoon_num_free(lastWrite, cmdCleared, COMMAND_ENTRIES); in typhoon_num_free_cmd()
566 return typhoon_num_free(ring->lastWrite, rin in typhoon_num_free_tx()
[all...]
H A Dtyphoon.h29 * lastWrite: the next entry we'll use
33 u32 lastWrite; member
42 u32 lastWrite; member

Completed in 8 milliseconds