Searched refs:piod (Results 1 – 5 of 5) sorted by relevance
/freebsd/sys/dev/tdfx/ |
H A D | tdfx_pci.c | 483 tdfx_query_fetch(u_int cmd, struct tdfx_pio_data *piod) in tdfx_query_fetch() argument 495 if((piod == NULL) ||(tdfx_count <= piod->device) || in tdfx_query_fetch() 496 (piod->device < 0)) { in tdfx_query_fetch() 504 piod->device); in tdfx_query_fetch() 511 switch(piod->port) { in tdfx_query_fetch() 513 if(piod->size != 2) return -EINVAL; in tdfx_query_fetch() 514 return -copyout(&tdfx_info->vendor, piod->value, piod->size); in tdfx_query_fetch() 516 if(piod->size != 2) return -EINVAL; in tdfx_query_fetch() 517 return -copyout(&tdfx_info->type, piod->value, piod->size); in tdfx_query_fetch() 519 if(piod->size != 4) return -EINVAL; in tdfx_query_fetch() [all …]
|
H A D | tdfx_pci.h | 54 static int tdfx_do_query(u_int cmd, struct tdfx_pio_data *piod); 56 static int tdfx_query_fetch(u_int cmd, struct tdfx_pio_data *piod); 57 static int tdfx_query_update(u_int cmd, struct tdfx_pio_data *piod); 60 static int tdfx_do_pio(u_int cmd, struct tdfx_pio_data *piod); 61 static int tdfx_do_pio_wt(struct tdfx_pio_data *piod); 62 static int tdfx_do_pio_rd(struct tdfx_pio_data *piod);
|
/freebsd/lib/libproc/ |
H A D | proc_util.c | 192 struct ptrace_io_desc piod; in proc_read() local 196 piod.piod_op = PIOD_READ_D; in proc_read() 197 piod.piod_len = size; in proc_read() 198 piod.piod_addr = (void *)buf; in proc_read() 199 piod.piod_offs = (void *)addr; in proc_read() 201 if (ptrace(PT_IO, proc_getpid(phdl), (caddr_t)&piod, 0) < 0) in proc_read() 203 return (piod.piod_len); in proc_read()
|
/freebsd/sys/kern/ |
H A D | sys_process.c | 603 struct ptrace_io_desc piod; in sys_ptrace() member 663 error = copyin(uap->addr, &r.piod, sizeof(r.piod)); in sys_ptrace() 708 error = copyout(&r.piod, uap->addr, sizeof(r.piod)); in sys_ptrace() 849 struct ptrace_io_desc *piod = NULL; in kern_ptrace() local 1383 piod = addr; in kern_ptrace() 1384 iov.iov_base = piod->piod_addr; in kern_ptrace() 1385 iov.iov_len = piod->piod_len; in kern_ptrace() 1386 uio.uio_offset = (off_t)(uintptr_t)piod->piod_offs; in kern_ptrace() 1387 uio.uio_resid = piod->piod_len; in kern_ptrace() 1392 switch (piod->piod_op) { in kern_ptrace() [all …]
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_misc.c | 979 struct ptrace_io_desc piod; in freebsd32_ptrace() member 993 struct ptrace_io_desc32 piod; in freebsd32_ptrace() member 1068 error = copyin(uap->addr, &r32.piod, sizeof(r32.piod)); in freebsd32_ptrace() 1071 CP(r32.piod, r.piod, piod_op); in freebsd32_ptrace() 1072 PTRIN_CP(r32.piod, r.piod, piod_offs); in freebsd32_ptrace() 1073 PTRIN_CP(r32.piod, r.piod, piod_add in freebsd32_ptrace() [all...] |