Lines Matching defs:nesnic
338 struct nes_hw_nic *nesnic = &nesvnic->nic;
347 nic_sqe = &nesnic->sq_vbase[nesnic->sq_head];
384 memcpy(&nesnic->first_frag_vbase[nesnic->sq_head].buffer,
397 set_bit(nesnic->sq_head, nesnic->first_frag_overflow);
405 nesnic->tx_skb[nesnic->sq_head] = skb;
411 nesnic->tx_skb[nesnic->sq_head] = skb;
415 nesnic->tx_skb[nesnic->sq_head] = skb;
434 nesnic->sq_head++;
435 nesnic->sq_head &= nesnic->sq_size - 1;
448 struct nes_hw_nic *nesnic = &nesvnic->nic;
489 if ((((nesnic->sq_tail+(nesnic->sq_size*2))-nesnic->sq_head) & (nesnic->sq_size - 1)) == 1) {
493 if ((((((volatile u16)nesnic->sq_tail)+(nesnic->sq_size*2))-nesnic->sq_head) & (nesnic->sq_size - 1)) != 1) {
515 wqes_available = (((nesnic->sq_tail+nesnic->sq_size)-nesnic->sq_head) - 1) &
516 (nesnic->sq_size - 1);
522 wqes_available = (((((volatile u16)nesnic->sq_tail)+nesnic->sq_size)-nesnic->sq_head) - 1) &
523 (nesnic->sq_size - 1);
553 nic_sqe = &nesnic->sq_vbase[nesnic->sq_head];
578 memcpy(&nesnic->first_frag_vbase[nesnic->sq_head].buffer,
582 (&nesnic->first_frag_vbase[nesnic->sq_head].buffer[nhoffset]);
584 (&nesnic->first_frag_vbase[nesnic->sq_head].buffer[hoffset]);
600 set_bit(nesnic->sq_head, nesnic->first_frag_overflow);
624 nesnic->tx_skb[nesnic->sq_head] = skb;
626 nesnic->tx_skb[nesnic->sq_head] = NULL;
643 nesnic->sq_head++;
644 nesnic->sq_head &= nesnic->sq_size-1;