Lines Matching refs:pipe_bp
224 static char *cp_pipe_to_64_user(struct dn_pipe *p, struct dn_pipe_64 *pipe_bp);
230 static char *cp_pipe_to_32_user(struct dn_pipe *p, struct dn_pipe_32 *pipe_bp);
465 cp_pipe_to_32_user(struct dn_pipe *p, struct dn_pipe_32 *pipe_bp) in cp_pipe_to_32_user() argument
469 pipe_bp->pipe_nr = p->pipe_nr; in cp_pipe_to_32_user()
470 pipe_bp->bandwidth = p->bandwidth; in cp_pipe_to_32_user()
471 pipe_bp->delay = p->delay; in cp_pipe_to_32_user()
472 bcopy( &(p->scheduler_heap), &(pipe_bp->scheduler_heap), sizeof(struct dn_heap_32)); in cp_pipe_to_32_user()
473 pipe_bp->scheduler_heap.p = CAST_DOWN_EXPLICIT(user32_addr_t, pipe_bp->scheduler_heap.p); in cp_pipe_to_32_user()
474 bcopy( &(p->not_eligible_heap), &(pipe_bp->not_eligible_heap), sizeof(struct dn_heap_32)); in cp_pipe_to_32_user()
475 pipe_bp->not_eligible_heap.p = CAST_DOWN_EXPLICIT(user32_addr_t, pipe_bp->not_eligible_heap.p); in cp_pipe_to_32_user()
476 bcopy( &(p->idle_heap), &(pipe_bp->idle_heap), sizeof(struct dn_heap_32)); in cp_pipe_to_32_user()
477 pipe_bp->idle_heap.p = CAST_DOWN_EXPLICIT(user32_addr_t, pipe_bp->idle_heap.p); in cp_pipe_to_32_user()
478 pipe_bp->V = p->V; in cp_pipe_to_32_user()
479 pipe_bp->sum = p->sum; in cp_pipe_to_32_user()
480 pipe_bp->numbytes = p->numbytes; in cp_pipe_to_32_user()
481 pipe_bp->sched_time = p->sched_time; in cp_pipe_to_32_user()
482 bcopy( p->if_name, pipe_bp->if_name, IFNAMSIZ); in cp_pipe_to_32_user()
483 pipe_bp->ifp = CAST_DOWN_EXPLICIT(user32_addr_t, p->ifp); in cp_pipe_to_32_user()
484 pipe_bp->ready = p->ready; in cp_pipe_to_32_user()
486 cp_flow_set_to_32_user( &(p->fs), &(pipe_bp->fs)); in cp_pipe_to_32_user()
488 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz * 10); in cp_pipe_to_32_user()
495 pipe_bp->next = CAST_DOWN_EXPLICIT( user32_addr_t, DN_IS_PIPE ); in cp_pipe_to_32_user()
497 pipe_bp->head = pipe_bp->tail = (user32_addr_t) 0; in cp_pipe_to_32_user()
498 pipe_bp->fs.next = (user32_addr_t)0; in cp_pipe_to_32_user()
499 pipe_bp->fs.pipe = (user32_addr_t)0; in cp_pipe_to_32_user()
500 pipe_bp->fs.rq = (user32_addr_t)0; in cp_pipe_to_32_user()
501 bp = ((char *)pipe_bp) + sizeof(struct dn_pipe_32); in cp_pipe_to_32_user()
507 cp_pipe_to_64_user(struct dn_pipe *p, struct dn_pipe_64 *pipe_bp) in cp_pipe_to_64_user() argument
511 pipe_bp->pipe_nr = p->pipe_nr; in cp_pipe_to_64_user()
512 pipe_bp->bandwidth = p->bandwidth; in cp_pipe_to_64_user()
513 pipe_bp->delay = p->delay; in cp_pipe_to_64_user()
514 bcopy( &(p->scheduler_heap), &(pipe_bp->scheduler_heap), sizeof(struct dn_heap_64)); in cp_pipe_to_64_user()
515 pipe_bp->scheduler_heap.p = CAST_DOWN(user64_addr_t, pipe_bp->scheduler_heap.p); in cp_pipe_to_64_user()
516 bcopy( &(p->not_eligible_heap), &(pipe_bp->not_eligible_heap), sizeof(struct dn_heap_64)); in cp_pipe_to_64_user()
517 pipe_bp->not_eligible_heap.p = CAST_DOWN(user64_addr_t, pipe_bp->not_eligible_heap.p); in cp_pipe_to_64_user()
518 bcopy( &(p->idle_heap), &(pipe_bp->idle_heap), sizeof(struct dn_heap_64)); in cp_pipe_to_64_user()
519 pipe_bp->idle_heap.p = CAST_DOWN(user64_addr_t, pipe_bp->idle_heap.p); in cp_pipe_to_64_user()
520 pipe_bp->V = p->V; in cp_pipe_to_64_user()
521 pipe_bp->sum = p->sum; in cp_pipe_to_64_user()
522 pipe_bp->numbytes = p->numbytes; in cp_pipe_to_64_user()
523 pipe_bp->sched_time = p->sched_time; in cp_pipe_to_64_user()
524 bcopy( p->if_name, pipe_bp->if_name, IFNAMSIZ); in cp_pipe_to_64_user()
525 pipe_bp->ifp = CAST_DOWN(user64_addr_t, p->ifp); in cp_pipe_to_64_user()
526 pipe_bp->ready = p->ready; in cp_pipe_to_64_user()
528 cp_flow_set_to_64_user( &(p->fs), &(pipe_bp->fs)); in cp_pipe_to_64_user()
530 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz * 10); in cp_pipe_to_64_user()
537 pipe_bp->next = CAST_DOWN( user64_addr_t, DN_IS_PIPE ); in cp_pipe_to_64_user()
539 pipe_bp->head = pipe_bp->tail = USER_ADDR_NULL; in cp_pipe_to_64_user()
540 pipe_bp->fs.next = USER_ADDR_NULL; in cp_pipe_to_64_user()
541 pipe_bp->fs.pipe = USER_ADDR_NULL; in cp_pipe_to_64_user()
542 pipe_bp->fs.rq = USER_ADDR_NULL; in cp_pipe_to_64_user()
543 bp = ((char *)pipe_bp) + sizeof(struct dn_pipe_64); in cp_pipe_to_64_user()