Home
last modified time | relevance | path

Searched refs:piod (Results 1 – 6 of 6) sorted by relevance

/freebsd-11-stable/sys/dev/tdfx/
HDtdfx_pci.c486 tdfx_query_fetch(u_int cmd, struct tdfx_pio_data *piod) in tdfx_query_fetch() argument
498 if((piod == NULL) ||(tdfx_count <= piod->device) || in tdfx_query_fetch()
499 (piod->device < 0)) { in tdfx_query_fetch()
507 piod->device); in tdfx_query_fetch()
514 switch(piod->port) { in tdfx_query_fetch()
516 if(piod->size != 2) return -EINVAL; in tdfx_query_fetch()
517 copyout(&tdfx_info->vendor, piod->value, piod->size); in tdfx_query_fetch()
520 if(piod->size != 2) return -EINVAL; in tdfx_query_fetch()
521 copyout(&tdfx_info->type, piod->value, piod->size); in tdfx_query_fetch()
524 if(piod->size != 4) return -EINVAL; in tdfx_query_fetch()
[all …]
HDtdfx_pci.h54 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-11-stable/lib/libproc/
HDproc_bkpt.c94 struct ptrace_io_desc piod; in proc_bkptset() local
119 piod.piod_op = PIOD_READ_I; in proc_bkptset()
120 piod.piod_offs = (void *)caddr; in proc_bkptset()
121 piod.piod_addr = &paddr; in proc_bkptset()
122 piod.piod_len = BREAKPOINT_INSTR_SZ; in proc_bkptset()
123 if (ptrace(PT_IO, proc_getpid(phdl), (caddr_t)&piod, 0) < 0) { in proc_bkptset()
135 piod.piod_op = PIOD_WRITE_I; in proc_bkptset()
136 piod.piod_offs = (void *)caddr; in proc_bkptset()
137 piod.piod_addr = &paddr; in proc_bkptset()
138 piod.piod_len = BREAKPOINT_INSTR_SZ; in proc_bkptset()
[all …]
HDproc_util.c190 struct ptrace_io_desc piod; in proc_read() local
194 piod.piod_op = PIOD_READ_D; in proc_read()
195 piod.piod_len = size; in proc_read()
196 piod.piod_addr = (void *)buf; in proc_read()
197 piod.piod_offs = (void *)addr; in proc_read()
199 if (ptrace(PT_IO, phdl->pid, (caddr_t)&piod, 0) < 0) in proc_read()
201 return (piod.piod_len); in proc_read()
/freebsd-11-stable/contrib/gdb/gdb/
HDinfptrace.c525 struct ptrace_io_desc piod; in child_xfer_memory() local
529 piod.piod_op = write ? PIOD_WRITE_D : PIOD_READ_D; in child_xfer_memory()
530 piod.piod_offs = (void *) memaddr; in child_xfer_memory()
531 piod.piod_addr = myaddr; in child_xfer_memory()
532 piod.piod_len = len; in child_xfer_memory()
534 if (ptrace (PT_IO, PIDGET (inferior_ptid), (caddr_t) &piod, 0) == -1) in child_xfer_memory()
545 return piod.piod_len; in child_xfer_memory()
/freebsd-11-stable/sys/kern/
HDsys_process.c566 struct ptrace_io_desc piod; in sys_ptrace() member
625 error = COPYIN(uap->addr, &r.piod, sizeof r.piod); in sys_ptrace()
646 error = COPYOUT(&r.piod, uap->addr, sizeof r.piod); in sys_ptrace()
719 struct ptrace_io_desc *piod = NULL; local
1237 piod = addr;
1238 iov.iov_base = piod->piod_addr;
1239 iov.iov_len = piod->piod_len;
1240 uio.uio_offset = (off_t)(uintptr_t)piod->piod_offs;
1241 uio.uio_resid = piod->piod_len;
1248 tmp = wrap32 ? piod32->piod_op : piod->piod_op;
[all …]