Lines Matching refs:aSegs
574 if (pSG->aSegs[0].cb >= sizeof(RTNETETHERHDR))
575 u16Type = RT_BE2H_U16(((PCRTNETETHERHDR)pSG->aSegs[0].pv)->EtherType);
582 if (off <= pSG->aSegs[i].cb)
584 if (off + sizeof(uint16_t) <= pSG->aSegs[i].cb)
585 u16Type = RT_BE2H_U16(*(uint16_t *)((uintptr_t)pSG->aSegs[i].pv + off));
587 u16Type = RT_BE2H_U16( ((uint16_t)( ((uint8_t *)pSG->aSegs[i].pv)[off] ) << 8)
588 + *(uint8_t *)pSG->aSegs[i + 1].pv); /* ASSUMES no empty segments! */
592 off -= pSG->aSegs[i].cb;
757 pSG->aSegs[0].cb = skb_headlen(pBuf);
758 pSG->aSegs[0].pv = pBuf->data;
759 pSG->aSegs[0].Phys = NIL_RTHCPHYS;
764 pSG->aSegs[i+1].cb = pFrag->size;
765 pSG->aSegs[i+1].pv = kmap(pFrag->page);
766 printk("%p = kmap()\n", pSG->aSegs[i+1].pv);
767 pSG->aSegs[i+1].Phys = NIL_RTHCPHYS;
772 pSG->aSegs[0].cb = pBuf->len;
773 pSG->aSegs[0].pv = pBuf->data;
774 pSG->aSegs[0].Phys = NIL_RTHCPHYS;
794 pSG->aSegs[i].Phys = NIL_RTHCPHYS;
795 pSG->aSegs[i].pv = (void *)&s_abZero[0];
796 pSG->aSegs[i].cb = 60 - pSG->cbTotal;
807 i, pSG->aSegs[i].cb, pSG->aSegs[i].pv));
973 printk("kunmap(%p)\n", pSG->aSegs[i+1].pv);
974 kunmap(pSG->aSegs[i+1].pv);
992 pExt = pSG->aSegs[0].pv;
997 pInt = pSG->aSegs[0].pv;
1008 Log3(("%.*Rhxd\n", pSG->aSegs[0].cb, pSG->aSegs[0].pv));
1015 i, offSeg, pSG->aSegs[i].cb, pSG->aSegs[i].cb, pSG->aSegs[i].pv));
1016 offSeg += pSG->aSegs[i].cb;
1255 PINTNETSG pSG = (PINTNETSG)alloca(RT_OFFSETOF(INTNETSG, aSegs[cSegs]));
1299 PINTNETSG pSG = (PINTNETSG)alloca(RT_OFFSETOF(INTNETSG, aSegs[cSegs]));