Lines Matching refs:cdp

52 	common_data_t *cdp = env->private;  in dot_request()  local
55 " attach: %x args: '%s'\n", cdp->fc.config_address, in dot_request()
56 cdp->fc.fcode_size, cdp->fc.unit_address, cdp->attach, in dot_request()
64 fc_get_request(common_data_t *cdp) in fc_get_request() argument
69 if (cdp->fcode_fd < 0) { in fc_get_request()
74 if ((nbytes = read(cdp->fcode_fd, &c, sizeof (c))) < 0) { in fc_get_request()
79 if (ioctl(cdp->fcode_fd, FC_GET_PARAMETERS, &cdp->fc) < 0) { in fc_get_request()
84 if ((cdp->attach = fc_get_ap(cdp)) == NULL) in fc_get_request()
93 common_data_t *cdp = env->private; in get_my_args() local
102 if (ioctl(cdp->fcode_fd, FC_GET_MY_ARGS, buffer) < 0) { in get_my_args()
136 common_data_t *cdp = env->private; in get_fcode_from_device() local
141 if (!cdp->fc.fcode_size) { in get_fcode_from_device()
147 fcode_info.fcode_size = cdp->fc.fcode_size; in get_fcode_from_device()
148 fcode_info.fcode_ptr = MALLOC(cdp->fc.fcode_size); in get_fcode_from_device()
149 if (ioctl(cdp->fcode_fd, FC_GET_FCODE_DATA, &fcode_info) < 0) { in get_fcode_from_device()
155 (int)cdp->fc.fcode_size); in get_fcode_from_device()
157 PUSH(DS, (fstack_t)cdp->fc.fcode_size); in get_fcode_from_device()
255 common_data_t *cdp = env->private; in find_fcode() local
308 if (ioctl(cdp->fcode_fd, FC_SET_FCODE_ERROR, &error) < 0) { in find_fcode()
317 common_data_t *cdp = env->private; in open_fcode_dev() local
319 if ((cdp->fcode_fd = open(fcode_dev, O_RDONLY)) < 0) in open_fcode_dev()
321 return (cdp->fcode_fd >= 0); in open_fcode_dev()
327 common_data_t *cdp = env->private; in get_request() local
329 if (cdp->fcode_fd >= 0) in get_request()
330 close(cdp->fcode_fd); in get_request()
333 if (!fc_get_request(cdp)) { in get_request()
350 common_data_t *cdp = env->private; in get_efdaemon_request() local
352 cdp->fcode_fd = 0; in get_efdaemon_request()
353 if (ioctl(cdp->fcode_fd, FC_GET_PARAMETERS, &cdp->fc) < 0) { in get_efdaemon_request()
358 if ((cdp->attach = fc_get_ap(cdp)) == NULL) in get_efdaemon_request()
369 common_data_t *cdp = env->private; in process_request() local
376 push_a_string(env, cdp->fc.unit_address); in process_request()
408 common_data_t *cdp = env->private; in finish_request() local
410 close(cdp->fcode_fd); in finish_request()