Lines Matching refs:path_struct

76 static	int load_flds_if_enc_disk(char *, struct path_struct **);
519 l_led(struct path_struct *path_struct, int led_action,
532 if ((path_struct == NULL) || (status == NULL)) {
539 * The path_struct will return a valid slot
544 if (!path_struct->ib_path_flag) {
545 if ((err = g_get_dev_map(path_struct->p_physical_path,
548 if ((err = l_get_ses_path(path_struct->p_physical_path,
554 (void) strcpy(ses_path, path_struct->p_physical_path);
562 if (!path_struct->slot_valid) {
564 (err = g_get_dev_map(path_struct->p_physical_path,
569 if ((err = l_get_ses_path(path_struct->p_physical_path,
582 if (err = l_get_slot(path_struct, l_state, verbose)) {
632 if (path_struct->slot >= l_state->total_num_drv/2) {
651 if (path_struct->f_flag) {
652 offset = (8 + (front_index + path_struct->slot)*4);
654 offset = (8 + (rear_index + path_struct->slot)*4);
680 " %s\n"), path_struct->f_flag ? path_struct->slot :
681 path_struct->slot + (MAX_DRIVES_DAK/2),
686 " %s\n"), path_struct->slot,
697 " %s\n"), path_struct->f_flag ? path_struct->slot
698 : path_struct->slot + (MAX_DRIVES_DAK/2),
704 " %s\n"), path_struct->slot,
797 l_dev_pwr_up_down(char *path_phys, struct path_struct *path_struct,
811 if (path_struct == NULL) {
818 if (err = g_get_dev_map(path_struct->p_physical_path,
822 if (err = l_get_ses_path(path_struct->p_physical_path,
853 if (!path_struct->slot_valid) {
855 if (err = l_get_slot(path_struct, l_state, verbose)) {
861 slot = path_struct->slot;
862 (void) strcpy(dev_path, path_struct->p_physical_path);
867 if (path_struct->f_flag) {
964 err = pwr_up_down(ses_path, l_state, path_struct->f_flag,
965 path_struct->slot, power_off_flag, verbose);
1779 * path_struct that is passed in IFF the device path passed in ("phys_path")
1784 * path_sturct - Pointer to pointer to a path_struct data structure
1788 * path_struct->slot is set to the slot position in enclosure
1789 * path_struct->slot_valid is set to 1
1790 * path_struct->f_flag is set to 1 if in the front of an A5k
1799 load_flds_if_enc_disk(char *phys_path, struct path_struct **path_struct)
1807 if ((path_struct == NULL) || (*path_struct == NULL) ||
1824 if ((*path_struct)->ib_path_flag) {
1884 if ((err = l_get_slot(*path_struct, l_state, verbose)) != 0) {
1899 * path_struct:
1928 struct path_struct **path_struct, int verbose)
1945 (path_struct == NULL)) {
1953 if ((*path_struct = path_ptr = (struct path_struct *)
1954 g_zalloc(sizeof (struct path_struct))) == NULL) {
1993 if (err = load_flds_if_enc_disk(result, path_struct)) {
2022 result, path_struct)) {
2218 * additional fields in path_struct.
2229 * path_struct fields
2243 result, path_struct)) {
2269 L_DPRINTF(" l_convert_name: path_struct:\n\tphysical_path:\n\t %s\n"
4843 * path_struct->p_physical_path must be of a disk.
4845 * OUTPUT: path_struct->slot_valid
4846 * path_struct->slot
4847 * path_struct->f_flag
4854 l_get_slot(struct path_struct *path_struct, L_state *l_state, int verbose)
4860 if ((path_struct == NULL) || (l_state == NULL)) {
4865 if (path_struct->slot_valid)
4869 assert(path_struct->ib_path_flag == 0);
4871 if (strstr(path_struct->p_physical_path, "ssd") == NULL) {
4874 if (err = g_get_wwn(path_struct->p_physical_path, port_wwn, node_wwn,
4892 path_struct->f_flag = 1;
4897 path_struct->f_flag = 0;
4910 path_struct->f_flag ? slot : slot + (MAX_DRIVES_DAK/2));
4913 path_struct->f_flag ? "Front" : "Rear");
4915 path_struct->slot = slot;
4916 path_struct->slot_valid = 1;