Lines Matching refs:ff_path_ptd
302 this->ff_path_ptd = (char **) bs_calloc(n, sizeof(char *)); in pb_phy_initcom()
309 this->ff_path_ptd[d] = (char *)bs_calloc(flen, sizeof(char)); in pb_phy_initcom()
311 sprintf(this->ff_path_ptd[d], "%s/%s.d%i.ptd", pb_com_path, p, d); in pb_phy_initcom()
314 || (pb_create_fifo_if_not_there(this->ff_path_ptd[d]) != 0)) { in pb_phy_initcom()
319 if ((this->ff_ptd[d] = open(this->ff_path_ptd[d], O_WRONLY)) == -1) { in pb_phy_initcom()
351 if (this->ff_path_ptd[d]) { in pb_phy_free_one_device()
352 remove(this->ff_path_ptd[d]); in pb_phy_free_one_device()
353 free(this->ff_path_ptd[d]); in pb_phy_free_one_device()
354 this->ff_path_ptd[d] = NULL; in pb_phy_free_one_device()
394 if (this->ff_path_ptd) { in pb_phy_disconnect_devices()
395 free(this->ff_path_ptd); in pb_phy_disconnect_devices()
396 this->ff_path_ptd = NULL; in pb_phy_disconnect_devices()
478 this->ff_path_ptd = NULL; in pb_dev_init_com()
496 this->ff_path_ptd = (char *) bs_calloc(flen, sizeof(char)); in pb_dev_init_com()
498 sprintf(this->ff_path_ptd, "%s/%s.d%i.ptd", pb_com_path, p, d); in pb_dev_init_com()
501 || (pb_create_fifo_if_not_there(this->ff_path_ptd) != 0)) { in pb_dev_init_com()
506 if (((this->ff_ptd = open(this->ff_path_ptd, O_RDONLY )) == -1)) { in pb_dev_init_com()
568 if (this->ff_path_ptd) { in pb_dev_clean_up()
573 remove(this->ff_path_ptd); in pb_dev_clean_up()
574 free(this->ff_path_ptd); in pb_dev_clean_up()
575 this->ff_path_ptd = NULL; in pb_dev_clean_up()