Lines Matching defs:drvr_path

879 	char	drvr_path[MAXPATHLEN];
886 (void) strcpy(drvr_path, path);
897 if (stat(drvr_path, &stbuf) < 0) {
902 (void) strcat(drvr_path, ":0");
906 " %s\n", drvr_path);
909 if ((fd = g_object_open(drvr_path, O_NDELAY | O_RDONLY)) == -1)
1542 char drvr_path[MAXPATHLEN], drvr_path0[MAXPATHLEN];
1565 (void) strcpy(drvr_path, path);
1600 (void) strcpy(drvr_path,
1604 (void) strcpy(drvr_path,
1608 (void) strcat(drvr_path, FC_CTLR);
1610 (void) strcpy(drvr_path, path);
1611 if (strstr(drvr_path, DRV_NAME_SSD) ||
1612 strstr(drvr_path, SES_NAME) ||
1613 strstr(drvr_path, DRV_NAME_ST)) {
1614 if ((char_ptr = strrchr(drvr_path, '/')) == NULL) {
1619 (void) strcat(drvr_path, FC_CTLR);
1621 if (stat(drvr_path, &stbuf) < 0) {
1626 (void) strcat(drvr_path, FC_CTLR);
1632 " %s\n", drvr_path);
1634 dev_type = g_get_path_type(drvr_path);
1640 if ((err = g_get_fca_port_topology(drvr_path,
1659 if ((err = g_get_dev_list(drvr_path, &dev_list,
1675 if ((err = g_get_host_params(drvr_path, &fp_hba_port,
1849 if ((fd = g_object_open(drvr_path, O_NDELAY | O_RDONLY)) == -1)
2154 char drvr_path[MAXPATHLEN], drvr_path0[MAXPATHLEN];
2181 (void) strcpy(drvr_path, path);
2217 (void) strcpy(drvr_path,
2221 (void) strcpy(drvr_path,
2225 (void) strcat(drvr_path, FC_CTLR);
2227 (void) strcpy(drvr_path, path);
2228 if (strstr(drvr_path, DRV_NAME_SSD) ||
2229 strstr(drvr_path, SES_NAME) ||
2230 strstr(drvr_path, DRV_NAME_ST)) {
2231 if ((char_ptr = strrchr(drvr_path, '/')) == NULL) {
2237 (void) strcat(drvr_path, FC_CTLR);
2239 if (stat(drvr_path, &stbuf) < 0) {
2245 (void) strcat(drvr_path, FC_CTLR);
2251 " %s\n", drvr_path);
2253 path_type = g_get_path_type(drvr_path);
2260 if ((err = g_get_fca_port_topology(drvr_path,
2266 if ((fd = g_object_open(drvr_path, O_NDELAY | O_RDONLY)) == -1) {
2555 if ((fd = g_object_open(drvr_path,
2637 if ((err = g_get_nexus_path(drvr_path, &nexus_path)) != 0) {
3756 char drvr_path[MAXPATHLEN];
3785 (void) strcpy(drvr_path, path_phys);
3787 if (strstr(drvr_path, SCSI_VHCI)) {
3788 if (g_get_pathlist(drvr_path, &pathlist)) {
3807 (void) strcpy(drvr_path,
3815 (void) strcpy(drvr_path,
3823 (void) strcat(drvr_path, FC_CTLR);
3825 if ((map_root = g_dev_map_init(drvr_path, &err,
4563 char drvr_path[MAXPATHLEN];
4577 (void) strcpy(drvr_path, path_phys);
4580 if (g_get_pathlist(drvr_path, &pathlist)) {
4600 (void) strcpy(drvr_path,
4604 (void) strcpy(drvr_path,
4608 (void) strcat(drvr_path, FC_CTLR);
4610 if (strstr(drvr_path, DRV_NAME_SSD) || strstr(drvr_path,
4611 DRV_NAME_ST) || strstr(drvr_path, SES_NAME)) {
4612 if ((char_ptr = strrchr(drvr_path, '/')) == NULL) {
4618 path_type = g_get_path_type(drvr_path);
4623 if ((char_ptr = strstr(drvr_path, "sf@")) == NULL) {
4631 if ((char_ptr = strrchr(drvr_path, '/')) == NULL) {
4657 if ((char_ptr = strstr(drvr_path, "/fp@")) == NULL) {
4663 if (stat(drvr_path, &stbuf) != 0) {
4677 (void) sprintf(temp_buf, "%s:0", drvr_path);
4702 (void) strcat(drvr_path, buf);
4706 *nexus_path = g_alloc_string(drvr_path);
4707 L_DPRINTF(" g_get_nexus_path: Nexus path = %s\n", drvr_path);
4765 char drvr_path[MAXPATHLEN];
4781 (void) strcpy(drvr_path, path);
4783 if (g_get_pathlist(drvr_path, &pathlist)) {
4803 (void) strcpy(drvr_path,
4807 (void) strcpy(drvr_path,
4811 (void) strcat(drvr_path, FC_CTLR);
4831 if ((strstr(drvr_path, DRV_NAME_SSD) ||
4832 strstr(drvr_path, SES_NAME)) ||
4833 strstr(drvr_path, DRV_NAME_ST)) {
4834 if ((char_ptr = strrchr(drvr_path, '/')) == NULL) {
4839 (void) strcat(drvr_path, FC_CTLR);
4841 if (stat(drvr_path, &stbuf) < 0) {
4846 (void) strcat(drvr_path, FC_CTLR);
4851 if ((dev_type = g_get_path_type(drvr_path)) == 0) {
4865 if ((fd = g_object_open(drvr_path, O_NDELAY | O_RDONLY)) == -1)
4869 " %s\n", drvr_path);
5973 * drvr_path: path type to verify ("/ssd@", "/st@")
5979 init_drv(char *dir_name, char *pattern_match, char *drvr_path)
6011 if (strstr(result, drvr_path) == NULL) {