Home
last modified time | relevance | path

Searched refs:rrp (Results 1 – 9 of 9) sorted by relevance

/titanic_41/usr/src/uts/common/io/bge/
H A Dbge_recv2.c69 recv_ring_t *rrp);
73 bge_receive_packet(bge_t *bgep, bge_rbd_t *hw_rbd_p, recv_ring_t *rrp) in bge_receive_packet() argument
246 rrp->rx_pkts++; in bge_receive_packet()
247 rrp->rx_bytes += len; in bge_receive_packet()
278 static mblk_t *bge_receive_ring(bge_t *bgep, recv_ring_t *rrp);
284 bge_receive_ring(bge_t *bgep, recv_ring_t *rrp) in bge_receive_ring() argument
293 ASSERT(mutex_owned(rrp->rx_lock)); in bge_receive_ring()
299 DMA_SYNC(rrp->desc, DDI_DMA_SYNC_FORKERNEL); in bge_receive_ring()
300 if (*rrp->prod_index_p >= rrp->desc.nslots) { in bge_receive_ring()
305 if (bge_check_dma_handle(bgep, rrp->desc.dma_hdl) != DDI_FM_OK) { in bge_receive_ring()
[all …]
H A Dbge_main2.c276 bge_reinit_recv_ring(recv_ring_t *rrp) in bge_reinit_recv_ring() argument
281 rrp->rx_next = 0; in bge_reinit_recv_ring()
1522 recv_ring_t *rrp = (recv_ring_t *)arg; local
1523 bge_t *bgep = rrp->bgep;
1526 uint8_t ring = (uint8_t)(rrp - bgep->recv) + 1;
1560 if (rrp->mac_addr_rule != NULL) {
1561 err = ether_cmp(mac_addr, rrp->mac_addr_val) ? EEXIST : EBUSY;
1600 rrp->mac_addr_rule = rinfop;
1601 bcopy(mac_addr, rrp->mac_addr_val, ETHERADDRL);
1622 recv_ring_t *rrp = (recv_ring_t *)arg; local
[all …]
H A Dbge_chip2.c6377 recv_ring_t *rrp = arg; in bge_chip_blank() local
6378 bge_t *bgep = rrp->bgep; in bge_chip_blank()
6381 rrp->poll_flag = flag; in bge_chip_blank()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rarpd.c573 struct rarpreply *rrp; in rarp_request() local
624 rrp = calloc(1, sizeof (struct rarpreply) + rdev->physaddrlen + in rarp_request()
626 if (rrp == NULL) in rarp_request()
628 rrp->lldest = (uchar_t *)rrp + sizeof (struct rarpreply); in rarp_request()
629 rrp->arprep = rrp->lldest + rdev->physaddrlen; in rarp_request()
634 (void) gettimeofday(&rrp->tv, NULL); in rarp_request()
635 rrp->tv.tv_sec += 3; /* delay */ in rarp_request()
636 rrp->rdev = rdev; in rarp_request()
637 (void) memcpy(rrp->lldest, shost, rdev->physaddrlen); in rarp_request()
638 (void) memcpy(rrp->arprep, rp, rdev->ifrarplen); in rarp_request()
[all …]
/titanic_41/usr/src/uts/common/io/nge/
H A Dnge_rx.c319 recv_ring_t *rrp; in nge_recv_ring() local
328 rrp = ngep->recv; in nge_recv_ring()
331 end_index = sync_start = rrp->prod_index; in nge_recv_ring()
334 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring()
339 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring()
343 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring()
357 end_index = rrp->prod_index; in nge_recv_ring()
387 rrp->prod_index = NEXT(end_index, rrp->desc.nslots); in nge_recv_ring()
394 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring()
399 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring()
[all …]
H A Dnge_main.c614 recv_ring_t *rrp; in nge_init_recv_ring() local
616 rrp = ngep->recv; in nge_init_recv_ring()
617 rrp->desc.nslots = ngep->rx_desc; in nge_init_recv_ring()
618 rrp->ngep = ngep; in nge_init_recv_ring()
627 recv_ring_t *rrp; in nge_reinit_recv_ring() local
629 rrp = ngep->recv; in nge_reinit_recv_ring()
634 rrp->prod_index = 0; in nge_reinit_recv_ring()
638 DMA_ZERO(rrp->desc); in nge_reinit_recv_ring()
639 DMA_SYNC(rrp->desc, DDI_DMA_SYNC_FORDEV); in nge_reinit_recv_ring()
705 recv_ring_t *rrp; in nge_init_buff_ring() local
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dns.c77 const uchar_t *rrp; /* Resource Record Pointer. */ in interpret_dns() local
123 rrp = data + sizeof (dns_header); in interpret_dns()
125 if (rrp >= data_end) { in interpret_dns()
128 rrp += skip_question(data, in interpret_dns()
129 rrp, data_end); in interpret_dns()
134 data, rrp, data_end, FALSE); in interpret_dns()
143 rrp = data + sizeof (dns_header); in interpret_dns()
144 if (rrp >= data_end) { in interpret_dns()
147 (void) print_question(line, data, rrp, data_end, in interpret_dns()
181 rrp = data + sizeof (dns_header); in interpret_dns()
[all …]
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dnbns_rq.c100 static int nbns_rq_getrr(struct nbns_rq *rqp, struct nbns_rr *rrp);
411 nbns_rq_getrr(struct nbns_rq *rqp, struct nbns_rr *rrp) in nbns_rq_getrr() argument
417 bzero(rrp, sizeof (*rrp)); in nbns_rq_getrr()
422 rrp->rr_name = cp; in nbns_rq_getrr()
426 md_get_uint16be(mbp, &rrp->rr_type); in nbns_rq_getrr()
427 md_get_uint16be(mbp, &rrp->rr_class); in nbns_rq_getrr()
428 md_get_uint32be(mbp, &rrp->rr_ttl); in nbns_rq_getrr()
429 md_get_uint16be(mbp, &rrp->rr_rdlength); in nbns_rq_getrr()
430 rrp->rr_data = (uchar_t *)mbp->mb_pos; in nbns_rq_getrr()
431 error = md_get_mem(mbp, NULL, rrp->rr_rdlength, MB_MSYSTEM); in nbns_rq_getrr()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c1134 struct ip_sourceroute *rrp; in pr_rropt() local
1138 rrp = (struct ip_sourceroute *)opt; in pr_rropt()
1146 if ((rrp->ipsr_ptr == (sr_index + 1) * sizeof (addr)) && in pr_rropt()
1152 bcopy(&rrp->ipsr_addrs[sr_index], &addr, sizeof (addr)); in pr_rropt()
1155 if (rrp->ipsr_ptr == (sr_index + 1) * sizeof (addr)) { in pr_rropt()