Lines Matching refs:pipe_bp

236 static char *cp_pipe_to_64_user(struct dn_pipe *p, struct dn_pipe_64 *pipe_bp);
242 static char *cp_pipe_to_32_user(struct dn_pipe *p, struct dn_pipe_32 *pipe_bp);
461 char *cp_pipe_to_32_user(struct dn_pipe *p, struct dn_pipe_32 *pipe_bp)
465 pipe_bp->pipe_nr = p->pipe_nr;
466 pipe_bp->bandwidth = p->bandwidth;
467 pipe_bp->delay = p->delay;
468 bcopy( &(p->scheduler_heap), &(pipe_bp->scheduler_heap), sizeof(struct dn_heap_32));
469 pipe_bp->scheduler_heap.p = CAST_DOWN_EXPLICIT(user32_addr_t, pipe_bp->scheduler_heap.p);
470 bcopy( &(p->not_eligible_heap), &(pipe_bp->not_eligible_heap), sizeof(struct dn_heap_32));
471 pipe_bp->not_eligible_heap.p = CAST_DOWN_EXPLICIT(user32_addr_t, pipe_bp->not_eligible_heap.p);
472 bcopy( &(p->idle_heap), &(pipe_bp->idle_heap), sizeof(struct dn_heap_32));
473 pipe_bp->idle_heap.p = CAST_DOWN_EXPLICIT(user32_addr_t, pipe_bp->idle_heap.p);
474 pipe_bp->V = p->V;
475 pipe_bp->sum = p->sum;
476 pipe_bp->numbytes = p->numbytes;
477 pipe_bp->sched_time = p->sched_time;
478 bcopy( p->if_name, pipe_bp->if_name, IFNAMSIZ);
479 pipe_bp->ifp = CAST_DOWN_EXPLICIT(user32_addr_t, p->ifp);
480 pipe_bp->ready = p->ready;
482 cp_flow_set_to_32_user( &(p->fs), &(pipe_bp->fs));
484 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz*10) ;
491 pipe_bp->next = CAST_DOWN_EXPLICIT( user32_addr_t, DN_IS_PIPE );
493 pipe_bp->head = pipe_bp->tail = (user32_addr_t) 0 ;
494 pipe_bp->fs.next = (user32_addr_t)0 ;
495 pipe_bp->fs.pipe = (user32_addr_t)0 ;
496 pipe_bp->fs.rq = (user32_addr_t)0 ;
497 bp = ((char *)pipe_bp) + sizeof(struct dn_pipe_32);
502 char *cp_pipe_to_64_user(struct dn_pipe *p, struct dn_pipe_64 *pipe_bp)
506 pipe_bp->pipe_nr = p->pipe_nr;
507 pipe_bp->bandwidth = p->bandwidth;
508 pipe_bp->delay = p->delay;
509 bcopy( &(p->scheduler_heap), &(pipe_bp->scheduler_heap), sizeof(struct dn_heap_64));
510 pipe_bp->scheduler_heap.p = CAST_DOWN(user64_addr_t, pipe_bp->scheduler_heap.p);
511 bcopy( &(p->not_eligible_heap), &(pipe_bp->not_eligible_heap), sizeof(struct dn_heap_64));
512 pipe_bp->not_eligible_heap.p = CAST_DOWN(user64_addr_t, pipe_bp->not_eligible_heap.p);
513 bcopy( &(p->idle_heap), &(pipe_bp->idle_heap), sizeof(struct dn_heap_64));
514 pipe_bp->idle_heap.p = CAST_DOWN(user64_addr_t, pipe_bp->idle_heap.p);
515 pipe_bp->V = p->V;
516 pipe_bp->sum = p->sum;
517 pipe_bp->numbytes = p->numbytes;
518 pipe_bp->sched_time = p->sched_time;
519 bcopy( p->if_name, pipe_bp->if_name, IFNAMSIZ);
520 pipe_bp->ifp = CAST_DOWN(user64_addr_t, p->ifp);
521 pipe_bp->ready = p->ready;
523 cp_flow_set_to_64_user( &(p->fs), &(pipe_bp->fs));
525 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz*10) ;
532 pipe_bp->next = CAST_DOWN( user64_addr_t, DN_IS_PIPE );
534 pipe_bp->head = pipe_bp->tail = USER_ADDR_NULL ;
535 pipe_bp->fs.next = USER_ADDR_NULL ;
536 pipe_bp->fs.pipe = USER_ADDR_NULL ;
537 pipe_bp->fs.rq = USER_ADDR_NULL ;
538 bp = ((char *)pipe_bp) + sizeof(struct dn_pipe_64);