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);
468 cp_pipe_to_32_user(struct dn_pipe *p, struct dn_pipe_32 *pipe_bp) in cp_pipe_to_32_user() argument
472 pipe_bp->pipe_nr = p->pipe_nr; in cp_pipe_to_32_user()
473 pipe_bp->bandwidth = p->bandwidth; in cp_pipe_to_32_user()
474 pipe_bp->delay = p->delay; in cp_pipe_to_32_user()
475 bcopy( &(p->scheduler_heap), &(pipe_bp->scheduler_heap), sizeof(struct dn_heap_32)); in cp_pipe_to_32_user()
476 pipe_bp->scheduler_heap.p = CAST_DOWN_EXPLICIT(user32_addr_t, pipe_bp->scheduler_heap.p); in cp_pipe_to_32_user()
477 bcopy( &(p->not_eligible_heap), &(pipe_bp->not_eligible_heap), sizeof(struct dn_heap_32)); in cp_pipe_to_32_user()
478 pipe_bp->not_eligible_heap.p = CAST_DOWN_EXPLICIT(user32_addr_t, pipe_bp->not_eligible_heap.p); in cp_pipe_to_32_user()
479 bcopy( &(p->idle_heap), &(pipe_bp->idle_heap), sizeof(struct dn_heap_32)); in cp_pipe_to_32_user()
480 pipe_bp->idle_heap.p = CAST_DOWN_EXPLICIT(user32_addr_t, pipe_bp->idle_heap.p); in cp_pipe_to_32_user()
481 pipe_bp->V = p->V; in cp_pipe_to_32_user()
482 pipe_bp->sum = p->sum; in cp_pipe_to_32_user()
483 pipe_bp->numbytes = p->numbytes; in cp_pipe_to_32_user()
484 pipe_bp->sched_time = p->sched_time; in cp_pipe_to_32_user()
485 bcopy( p->if_name, pipe_bp->if_name, IFNAMSIZ); in cp_pipe_to_32_user()
486 pipe_bp->ifp = CAST_DOWN_EXPLICIT(user32_addr_t, p->ifp); in cp_pipe_to_32_user()
487 pipe_bp->ready = p->ready; in cp_pipe_to_32_user()
489 cp_flow_set_to_32_user( &(p->fs), &(pipe_bp->fs)); in cp_pipe_to_32_user()
491 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz * 10); in cp_pipe_to_32_user()
498 pipe_bp->next = CAST_DOWN_EXPLICIT( user32_addr_t, DN_IS_PIPE ); in cp_pipe_to_32_user()
500 pipe_bp->head = pipe_bp->tail = (user32_addr_t) 0; in cp_pipe_to_32_user()
501 pipe_bp->fs.next = (user32_addr_t)0; in cp_pipe_to_32_user()
502 pipe_bp->fs.pipe = (user32_addr_t)0; in cp_pipe_to_32_user()
503 pipe_bp->fs.rq = (user32_addr_t)0; in cp_pipe_to_32_user()
504 bp = ((char *)pipe_bp) + sizeof(struct dn_pipe_32); in cp_pipe_to_32_user()
510 cp_pipe_to_64_user(struct dn_pipe *p, struct dn_pipe_64 *pipe_bp) in cp_pipe_to_64_user() argument
514 pipe_bp->pipe_nr = p->pipe_nr; in cp_pipe_to_64_user()
515 pipe_bp->bandwidth = p->bandwidth; in cp_pipe_to_64_user()
516 pipe_bp->delay = p->delay; in cp_pipe_to_64_user()
517 bcopy( &(p->scheduler_heap), &(pipe_bp->scheduler_heap), sizeof(struct dn_heap_64)); in cp_pipe_to_64_user()
518 pipe_bp->scheduler_heap.p = CAST_DOWN(user64_addr_t, pipe_bp->scheduler_heap.p); in cp_pipe_to_64_user()
519 bcopy( &(p->not_eligible_heap), &(pipe_bp->not_eligible_heap), sizeof(struct dn_heap_64)); in cp_pipe_to_64_user()
520 pipe_bp->not_eligible_heap.p = CAST_DOWN(user64_addr_t, pipe_bp->not_eligible_heap.p); in cp_pipe_to_64_user()
521 bcopy( &(p->idle_heap), &(pipe_bp->idle_heap), sizeof(struct dn_heap_64)); in cp_pipe_to_64_user()
522 pipe_bp->idle_heap.p = CAST_DOWN(user64_addr_t, pipe_bp->idle_heap.p); in cp_pipe_to_64_user()
523 pipe_bp->V = p->V; in cp_pipe_to_64_user()
524 pipe_bp->sum = p->sum; in cp_pipe_to_64_user()
525 pipe_bp->numbytes = p->numbytes; in cp_pipe_to_64_user()
526 pipe_bp->sched_time = p->sched_time; in cp_pipe_to_64_user()
527 bcopy( p->if_name, pipe_bp->if_name, IFNAMSIZ); in cp_pipe_to_64_user()
528 pipe_bp->ifp = CAST_DOWN(user64_addr_t, p->ifp); in cp_pipe_to_64_user()
529 pipe_bp->ready = p->ready; in cp_pipe_to_64_user()
531 cp_flow_set_to_64_user( &(p->fs), &(pipe_bp->fs)); in cp_pipe_to_64_user()
533 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz * 10); in cp_pipe_to_64_user()
540 pipe_bp->next = CAST_DOWN( user64_addr_t, DN_IS_PIPE ); in cp_pipe_to_64_user()
542 pipe_bp->head = pipe_bp->tail = USER_ADDR_NULL; in cp_pipe_to_64_user()
543 pipe_bp->fs.next = USER_ADDR_NULL; in cp_pipe_to_64_user()
544 pipe_bp->fs.pipe = USER_ADDR_NULL; in cp_pipe_to_64_user()
545 pipe_bp->fs.rq = USER_ADDR_NULL; in cp_pipe_to_64_user()
546 bp = ((char *)pipe_bp) + sizeof(struct dn_pipe_64); in cp_pipe_to_64_user()