Searched refs:bus_no (Results 1 - 15 of 15) sorted by relevance

/linux-4.1.27/drivers/staging/unisys/uislib/
H A Duislib.c147 u32 bus_no, dev_count; create_bus() local
157 bus_no = msg->cmd.create_bus.bus_no; create_bus()
160 POSTCODE_LINUX_4(BUS_CREATE_ENTRY_PC, bus_no, dev_count, create_bus()
168 POSTCODE_LINUX_3(BUS_CREATE_FAILURE_PC, bus_no, create_bus()
179 bus->bus_no = bus_no; create_bus()
182 bus->bus_no = bus_no; create_bus()
183 bus->guest_handle = bus_no; create_bus()
185 sprintf(bus->name, "%d", (int)bus->bus_no); create_bus()
196 if (tmp->bus_no == bus->bus_no) create_bus()
201 /* found a bus already in the list with same bus_no - create_bus()
204 POSTCODE_LINUX_3(BUS_CREATE_FAILURE_PC, bus->bus_no, create_bus()
221 cmd.add_vbus.bus_no = bus_no; create_bus()
227 POSTCODE_LINUX_3(BUS_CREATE_FAILURE_PC, bus->bus_no, create_bus()
233 POSTCODE_LINUX_3(BUS_CREATE_FAILURE_PC, bus->bus_no, create_bus()
252 POSTCODE_LINUX_3(BUS_CREATE_EXIT_PC, bus->bus_no, create_bus()
263 u32 bus_no; destroy_bus() local
265 bus_no = msg->cmd.destroy_bus.bus_no; destroy_bus()
271 if (bus->bus_no == bus_no) destroy_bus()
297 cmd.del_vbus.bus_no = bus_no; destroy_bus()
328 u32 bus_no, dev_no; create_device() local
333 bus_no = msg->cmd.create_device.bus_no; create_device()
336 POSTCODE_LINUX_4(DEVICE_CREATE_ENTRY_PC, dev_no, bus_no, create_device()
341 POSTCODE_LINUX_4(DEVICE_CREATE_FAILURE_PC, dev_no, bus_no, create_device()
349 dev->bus_no = bus_no; create_device()
352 sprintf(dev->devid, "vbus%u:dev%u", (unsigned)bus_no, (unsigned)dev_no); create_device()
365 bus_no, POSTCODE_SEVERITY_ERR); create_device()
375 bus_no, POSTCODE_SEVERITY_ERR); create_device()
384 if (bus->bus_no != bus_no) create_device()
390 bus_no, POSTCODE_SEVERITY_ERR); create_device()
397 dev_no, bus_no, create_device()
410 bus_no, POSTCODE_SEVERITY_INFO); create_device()
419 dev_no, bus_no, create_device()
426 cmd.add_vhba.bus_no = bus_no; create_device()
436 dev_no, bus_no, create_device()
443 cmd.add_vnic.bus_no = bus_no; create_device()
449 bus_no, POSTCODE_SEVERITY_ERR); create_device()
456 bus_no, POSTCODE_SEVERITY_ERR); create_device()
463 bus_no, POSTCODE_SEVERITY_ERR); create_device()
471 bus_no, POSTCODE_SEVERITY_INFO); create_device()
476 POSTCODE_LINUX_4(DEVICE_CREATE_FAILURE_PC, dev_no, bus_no, create_device()
492 u32 bus_no, dev_no; pause_device() local
498 bus_no = msg->cmd.device_change_state.bus_no; pause_device()
503 if (bus->bus_no == bus_no) { pause_device()
549 u32 bus_no, dev_no; resume_device() local
555 bus_no = msg->cmd.device_change_state.bus_no; resume_device()
560 if (bus->bus_no == bus_no) { resume_device()
607 u32 bus_no, dev_no; destroy_device() local
613 bus_no = msg->cmd.destroy_device.bus_no; destroy_device()
614 dev_no = msg->cmd.destroy_device.bus_no; destroy_device()
618 if (bus->bus_no == bus_no) { destroy_device()
667 uislib_disable_channel_interrupts(bus_no, dev_no); destroy_device()
702 static int delete_bus_glue(u32 bus_no) delete_bus_glue() argument
707 msg.cmd.destroy_bus.bus_no = bus_no; delete_bus_glue()
713 static int delete_device_glue(u32 bus_no, u32 dev_no) delete_device_glue() argument
718 msg.cmd.destroy_device.bus_no = bus_no; delete_device_glue()
726 uislib_client_inject_add_bus(u32 bus_no, uuid_le inst_uuid, uislib_client_inject_add_bus() argument
732 POSTCODE_LINUX_3(CHIPSET_INIT_ENTRY_PC, bus_no, POSTCODE_SEVERITY_INFO); uislib_client_inject_add_bus()
748 POSTCODE_LINUX_3(CHIPSET_INIT_EXIT_PC, bus_no, uislib_client_inject_add_bus()
753 POSTCODE_LINUX_3(BUS_CREATE_ENTRY_PC, bus_no, uislib_client_inject_add_bus()
756 msg.cmd.create_bus.bus_no = bus_no; uislib_client_inject_add_bus()
761 POSTCODE_LINUX_3(BUS_CREATE_FAILURE_PC, bus_no, uislib_client_inject_add_bus()
765 POSTCODE_LINUX_3(BUS_CREATE_EXIT_PC, bus_no, POSTCODE_SEVERITY_INFO); uislib_client_inject_add_bus()
772 uislib_client_inject_del_bus(u32 bus_no) uislib_client_inject_del_bus() argument
774 return delete_bus_glue(bus_no); uislib_client_inject_del_bus()
779 uislib_client_inject_pause_vhba(u32 bus_no, u32 dev_no) uislib_client_inject_pause_vhba() argument
785 msg.cmd.device_change_state.bus_no = bus_no; uislib_client_inject_pause_vhba()
796 uislib_client_inject_resume_vhba(u32 bus_no, u32 dev_no) uislib_client_inject_resume_vhba() argument
802 msg.cmd.device_change_state.bus_no = bus_no; uislib_client_inject_resume_vhba()
813 uislib_client_inject_add_vhba(u32 bus_no, u32 dev_no, uislib_client_inject_add_vhba() argument
824 POSTCODE_LINUX_4(VHBA_CREATE_ENTRY_PC, dev_no, bus_no, uislib_client_inject_add_vhba()
833 msg.cmd.create_device.bus_no = bus_no; uislib_client_inject_add_vhba()
850 POSTCODE_LINUX_4(VHBA_CREATE_FAILURE_PC, dev_no, bus_no, uislib_client_inject_add_vhba()
854 POSTCODE_LINUX_4(VHBA_CREATE_SUCCESS_PC, dev_no, bus_no, uislib_client_inject_add_vhba()
861 uislib_client_inject_del_vhba(u32 bus_no, u32 dev_no) uislib_client_inject_del_vhba() argument
863 return delete_device_glue(bus_no, dev_no); uislib_client_inject_del_vhba()
868 uislib_client_inject_add_vnic(u32 bus_no, u32 dev_no, uislib_client_inject_add_vnic() argument
879 POSTCODE_LINUX_4(VNIC_CREATE_ENTRY_PC, dev_no, bus_no, uislib_client_inject_add_vnic()
888 msg.cmd.create_device.bus_no = bus_no; uislib_client_inject_add_vnic()
905 POSTCODE_LINUX_4(VNIC_CREATE_FAILURE_PC, dev_no, bus_no, uislib_client_inject_add_vnic()
910 POSTCODE_LINUX_4(VNIC_CREATE_SUCCESS_PC, dev_no, bus_no, uislib_client_inject_add_vnic()
917 uislib_client_inject_pause_vnic(u32 bus_no, u32 dev_no) uislib_client_inject_pause_vnic() argument
923 msg.cmd.device_change_state.bus_no = bus_no; uislib_client_inject_pause_vnic()
934 uislib_client_inject_resume_vnic(u32 bus_no, u32 dev_no) uislib_client_inject_resume_vnic() argument
940 msg.cmd.device_change_state.bus_no = bus_no; uislib_client_inject_resume_vnic()
951 uislib_client_inject_del_vnic(u32 bus_no, u32 dev_no) uislib_client_inject_del_vnic() argument
953 return delete_device_glue(bus_no, dev_no); uislib_client_inject_del_vnic()
1001 bus, bus->bus_no, bus->device_count) < 0) info_debugfs_read_helper()
1010 bus->bus_no, i, bus->device[i], info_debugfs_read_helper()
1076 static struct device_info *find_dev(u32 bus_no, u32 dev_no) find_dev() argument
1083 if (bus->bus_no == bus_no) { find_dev()
1236 uislib_enable_channel_interrupts(u32 bus_no, u32 dev_no, uislib_enable_channel_interrupts() argument
1242 dev = find_dev(bus_no, dev_no); uislib_enable_channel_interrupts()
1261 uislib_disable_channel_interrupts(u32 bus_no, u32 dev_no) uislib_disable_channel_interrupts() argument
1265 dev = find_dev(bus_no, dev_no); uislib_disable_channel_interrupts()
1292 uislib_force_channel_interrupt(u32 bus_no, u32 dev_no) uislib_force_channel_interrupt() argument
/linux-4.1.27/drivers/staging/unisys/visorchipset/
H A Dvisorchipset.h80 u32 bus_no; member in struct:visorchipset_device_info
96 struct list_head *list, u32 bus_no, u32 dev_no) finddevice()
101 if (p->bus_no == bus_no && p->dev_no == dev_no) list_for_each_entry()
107 static inline void delbusdevices(struct list_head *list, u32 bus_no) delbusdevices() argument
112 if (p->bus_no == bus_no) { list_for_each_entry_safe()
127 u32 bus_no; member in struct:visorchipset_bus_info
149 findbus(struct list_head *list, u32 bus_no) findbus() argument
154 if (p->bus_no == bus_no) list_for_each_entry()
165 void (*bus_create)(ulong bus_no);
166 void (*bus_destroy)(ulong bus_no);
167 void (*device_create)(ulong bus_no, ulong dev_no);
168 void (*device_destroy)(ulong bus_no, ulong dev_no);
169 void (*device_pause)(ulong bus_no, ulong dev_no);
170 void (*device_resume)(ulong bus_no, ulong dev_no);
182 void (*bus_create)(ulong bus_no, int response);
183 void (*bus_destroy)(ulong bus_no, int response);
184 void (*device_create)(ulong bus_no, ulong dev_no, int response);
185 void (*device_destroy)(ulong bus_no, ulong dev_no, int response);
186 void (*device_pause)(ulong bus_no, ulong dev_no, int response);
187 void (*device_resume)(ulong bus_no, ulong dev_no, int response);
217 void visorchipset_device_pause_response(ulong bus_no, ulong dev_no,
220 BOOL visorchipset_get_bus_info(ulong bus_no,
222 BOOL visorchipset_get_device_info(ulong bus_no, ulong dev_no,
224 BOOL visorchipset_set_bus_context(ulong bus_no, void *context);
225 BOOL visorchipset_set_device_context(ulong bus_no, ulong dev_no, void *context);
95 finddevice( struct list_head *list, u32 bus_no, u32 dev_no) finddevice() argument
H A Dvisorchipset_main.c225 static void bus_create_response(ulong bus_no, int response);
226 static void bus_destroy_response(ulong bus_no, int response);
227 static void device_create_response(ulong bus_no, ulong dev_no, int response);
228 static void device_destroy_response(ulong bus_no, ulong dev_no, int response);
229 static void device_resume_response(ulong bus_no, ulong dev_no, int response);
678 g_devicechangestate_packet.device_change_state.bus_no == controlvm_respond()
779 bus_responder(enum controlvm_id cmd_id, ulong bus_no, int response) bus_responder() argument
784 p = findbus(&bus_info_list, bus_no); bus_responder()
792 delbusdevices(&dev_info_list, bus_no); bus_responder()
808 delbusdevices(&dev_info_list, bus_no); bus_responder()
814 ulong bus_no, ulong dev_no, int response, device_changestate_responder()
820 p = finddevice(&dev_info_list, bus_no, dev_no); device_changestate_responder()
830 outmsg.cmd.device_change_state.bus_no = bus_no; device_changestate_responder()
842 device_responder(enum controlvm_id cmd_id, ulong bus_no, ulong dev_no, device_responder() argument
848 p = finddevice(&dev_info_list, bus_no, dev_no); device_responder()
871 bus_epilog(u32 bus_no, bus_epilog() argument
878 bus_no); bus_epilog()
905 (*busdev_server_notifiers.bus_create) (bus_no); bus_epilog()
910 (*busdev_client_notifiers.bus_create) (bus_no); bus_epilog()
916 (*busdev_server_notifiers.bus_destroy) (bus_no); bus_epilog()
921 (*busdev_client_notifiers.bus_destroy) (bus_no); bus_epilog()
934 bus_responder(cmd, bus_no, response); bus_epilog()
939 device_epilog(u32 bus_no, u32 dev_no, struct spar_segment_state state, u32 cmd, device_epilog() argument
947 finddevice(&dev_info_list, bus_no, dev_no); device_epilog()
972 (*notifiers->device_create) (bus_no, dev_no); device_epilog()
982 (*notifiers->device_resume) (bus_no, device_epilog()
995 (*notifiers->device_pause) (bus_no, device_epilog()
1005 if (bus_no == g_diagpool_bus_no && device_epilog()
1018 (*notifiers->device_destroy) (bus_no, dev_no); device_epilog()
1031 device_responder(cmd, bus_no, dev_no, response); device_epilog()
1039 ulong bus_no = cmd->create_bus.bus_no; bus_create() local
1043 bus_info = findbus(&bus_info_list, bus_no); bus_create()
1045 POSTCODE_LINUX_3(BUS_CREATE_FAILURE_PC, bus_no, bus_create()
1052 POSTCODE_LINUX_3(BUS_CREATE_FAILURE_PC, bus_no, bus_create()
1059 bus_info->bus_no = bus_no; bus_create()
1062 POSTCODE_LINUX_3(BUS_CREATE_ENTRY_PC, bus_no, POSTCODE_SEVERITY_INFO); bus_create()
1078 POSTCODE_LINUX_3(BUS_CREATE_EXIT_PC, bus_no, POSTCODE_SEVERITY_INFO); bus_create()
1081 bus_epilog(bus_no, CONTROLVM_BUS_CREATE, &inmsg->hdr, bus_create()
1089 ulong bus_no = cmd->destroy_bus.bus_no; bus_destroy() local
1093 bus_info = findbus(&bus_info_list, bus_no); bus_destroy()
1099 bus_epilog(bus_no, CONTROLVM_BUS_DESTROY, &inmsg->hdr, bus_destroy()
1108 ulong bus_no = cmd->configure_bus.bus_no; bus_configure() local
1113 bus_no = cmd->configure_bus.bus_no; bus_configure()
1114 POSTCODE_LINUX_3(BUS_CONFIGURE_ENTRY_PC, bus_no, bus_configure()
1117 bus_info = findbus(&bus_info_list, bus_no); bus_configure()
1119 POSTCODE_LINUX_3(BUS_CONFIGURE_FAILURE_PC, bus_no, bus_configure()
1123 POSTCODE_LINUX_3(BUS_CONFIGURE_FAILURE_PC, bus_no, bus_configure()
1127 POSTCODE_LINUX_3(BUS_CONFIGURE_FAILURE_PC, bus_no, bus_configure()
1137 POSTCODE_LINUX_3(BUS_CONFIGURE_EXIT_PC, bus_no, bus_configure()
1140 bus_epilog(bus_no, CONTROLVM_BUS_CONFIGURE, &inmsg->hdr, bus_configure()
1148 ulong bus_no = cmd->create_device.bus_no; my_device_create() local
1154 dev_info = finddevice(&dev_info_list, bus_no, dev_no); my_device_create()
1156 POSTCODE_LINUX_4(DEVICE_CREATE_FAILURE_PC, dev_no, bus_no, my_device_create()
1161 bus_info = findbus(&bus_info_list, bus_no); my_device_create()
1163 POSTCODE_LINUX_4(DEVICE_CREATE_FAILURE_PC, dev_no, bus_no, my_device_create()
1169 POSTCODE_LINUX_4(DEVICE_CREATE_FAILURE_PC, dev_no, bus_no, my_device_create()
1176 POSTCODE_LINUX_4(DEVICE_CREATE_FAILURE_PC, dev_no, bus_no, my_device_create()
1183 dev_info->bus_no = bus_no; my_device_create()
1186 POSTCODE_LINUX_4(DEVICE_CREATE_ENTRY_PC, dev_no, bus_no, my_device_create()
1199 POSTCODE_LINUX_4(DEVICE_CREATE_EXIT_PC, dev_no, bus_no, my_device_create()
1205 g_diagpool_bus_no = bus_no; my_device_create()
1208 device_epilog(bus_no, dev_no, segment_state_running, my_device_create()
1218 ulong bus_no = cmd->device_change_state.bus_no; my_device_changestate() local
1224 dev_info = finddevice(&dev_info_list, bus_no, dev_no); my_device_changestate()
1226 POSTCODE_LINUX_4(DEVICE_CHANGESTATE_FAILURE_PC, dev_no, bus_no, my_device_changestate()
1230 POSTCODE_LINUX_4(DEVICE_CHANGESTATE_FAILURE_PC, dev_no, bus_no, my_device_changestate()
1235 device_epilog(bus_no, dev_no, state, my_device_changestate()
1246 ulong bus_no = cmd->destroy_device.bus_no; my_device_destroy() local
1251 dev_info = finddevice(&dev_info_list, bus_no, dev_no); my_device_destroy()
1258 device_epilog(bus_no, dev_no, segment_state_running, my_device_destroy()
1521 cmd->device_change_state.bus_no); parahotplug_request_kickoff()
1962 bus_create_response(ulong bus_no, int response) bus_create_response() argument
1964 bus_responder(CONTROLVM_BUS_CREATE, bus_no, response); bus_create_response()
1968 bus_destroy_response(ulong bus_no, int response) bus_destroy_response() argument
1970 bus_responder(CONTROLVM_BUS_DESTROY, bus_no, response); bus_destroy_response()
1974 device_create_response(ulong bus_no, ulong dev_no, int response) device_create_response() argument
1976 device_responder(CONTROLVM_DEVICE_CREATE, bus_no, dev_no, response); device_create_response()
1980 device_destroy_response(ulong bus_no, ulong dev_no, int response) device_destroy_response() argument
1982 device_responder(CONTROLVM_DEVICE_DESTROY, bus_no, dev_no, response); device_destroy_response()
1986 visorchipset_device_pause_response(ulong bus_no, ulong dev_no, int response) visorchipset_device_pause_response() argument
1989 bus_no, dev_no, response, visorchipset_device_pause_response()
1995 device_resume_response(ulong bus_no, ulong dev_no, int response) device_resume_response() argument
1998 bus_no, dev_no, response, device_resume_response()
2003 visorchipset_get_bus_info(ulong bus_no, struct visorchipset_bus_info *bus_info) visorchipset_get_bus_info() argument
2005 void *p = findbus(&bus_info_list, bus_no); visorchipset_get_bus_info()
2015 visorchipset_set_bus_context(ulong bus_no, void *context) visorchipset_set_bus_context() argument
2017 struct visorchipset_bus_info *p = findbus(&bus_info_list, bus_no); visorchipset_set_bus_context()
2027 visorchipset_get_device_info(ulong bus_no, ulong dev_no, visorchipset_get_device_info() argument
2030 void *p = finddevice(&dev_info_list, bus_no, dev_no); visorchipset_get_device_info()
2040 visorchipset_set_device_context(ulong bus_no, ulong dev_no, void *context) visorchipset_set_device_context() argument
2043 finddevice(&dev_info_list, bus_no, dev_no); visorchipset_set_device_context()
813 device_changestate_responder(enum controlvm_id cmd_id, ulong bus_no, ulong dev_no, int response, struct spar_segment_state response_state) device_changestate_responder() argument
/linux-4.1.27/arch/microblaze/pci/
H A Dindirect_pci.c29 u32 bus_no, reg; indirect_read_config() local
42 bus_no = (bus->number == hose->first_busno) ? indirect_read_config()
51 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | indirect_read_config()
54 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | indirect_read_config()
83 u32 bus_no, reg; indirect_write_config() local
96 bus_no = (bus->number == hose->first_busno) ? indirect_write_config()
105 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | indirect_write_config()
108 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | indirect_write_config()
/linux-4.1.27/drivers/staging/unisys/include/
H A Duisutils.h113 int uislib_client_inject_add_bus(u32 bus_no, uuid_le inst_uuid,
115 int uislib_client_inject_del_bus(u32 bus_no);
117 int uislib_client_inject_add_vhba(u32 bus_no, u32 dev_no,
121 int uislib_client_inject_pause_vhba(u32 bus_no, u32 dev_no);
122 int uislib_client_inject_resume_vhba(u32 bus_no, u32 dev_no);
123 int uislib_client_inject_del_vhba(u32 bus_no, u32 dev_no);
124 int uislib_client_inject_add_vnic(u32 bus_no, u32 dev_no,
128 int uislib_client_inject_pause_vnic(u32 bus_no, u32 dev_no);
129 int uislib_client_inject_resume_vnic(u32 bus_no, u32 dev_no);
130 int uislib_client_inject_del_vnic(u32 bus_no, u32 dev_no);
293 void uislib_enable_channel_interrupts(u32 bus_no, u32 dev_no,
296 void uislib_disable_channel_interrupts(u32 bus_no, u32 dev_no);
297 void uislib_force_channel_interrupt(u32 bus_no, u32 dev_no);
H A Duisqueue.h139 u32 bus_no; member in struct:device_info
156 u32 bus_no, device_count; member in struct:bus_info
232 u32 bus_no; member in struct:add_virt_iopart
329 u32 bus_no; /* bus number to be created/deleted */ member in struct:add_vbus_guestpart
336 u32 bus_no; /* bus number to be deleted */ member in struct:del_vbus_guestpart
344 u32 bus_no; /* bus number for the operation */ member in struct:add_virt_guestpart
/linux-4.1.27/arch/powerpc/sysdev/
H A Dindirect_pci.c29 u32 bus_no, reg; __indirect_read_config() local
46 bus_no = (bus_number == hose->first_busno) ? __indirect_read_config()
55 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | __indirect_read_config()
58 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | __indirect_read_config()
95 u32 bus_no, reg; indirect_write_config() local
112 bus_no = (bus->number == hose->first_busno) ? indirect_write_config()
121 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | indirect_write_config()
124 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | indirect_write_config()
/linux-4.1.27/drivers/staging/unisys/common-spar/include/channels/
H A Dcontrolvmchannel.h219 u32 bus_no; /* bus # (0..n-1) from the msg receiver's end */ member in struct:controlvm_packet_device_create
231 u32 bus_no; /**< bus # (0..n-1) from the msg member in struct:controlvm_packet_device_configure
252 u32 bus_no; /* bus # (0..n-1) from the msg member in struct:controlvm_message_packet::__anon10292::__anon10293
266 u32 bus_no; /* bus # (0..n-1) from the msg member in struct:controlvm_message_packet::__anon10292::__anon10294
271 u32 bus_no; /* bus # (0..n-1) from the receiver's member in struct:controlvm_message_packet::__anon10292::__anon10295
287 u32 bus_no; /* bus # (0..n-1) from the msg member in struct:controlvm_message_packet::__anon10292::__anon10296
294 u32 bus_no; /* bus # (0..n-1) from the msg member in struct:controlvm_message_packet::__anon10292::__anon10297
299 u32 bus_no; member in struct:controlvm_message_packet::__anon10292::__anon10298
304 u32 bus_no; member in struct:controlvm_message_packet::__anon10292::__anon10299
314 u32 bus_no; member in struct:controlvm_message_packet::__anon10292::__anon10301
/linux-4.1.27/drivers/scsi/
H A Ddpt_i2o.c1461 u8 bus_no = 0; adpt_i2o_parse_lct() local
1495 bus_no = buf[0]>>16; adpt_i2o_parse_lct()
1498 if(bus_no >= MAX_CHANNEL) { // Something wrong skip it adpt_i2o_parse_lct()
1499 printk(KERN_WARNING"%s: Channel number %d out of range \n", pHba->name, bus_no); adpt_i2o_parse_lct()
1503 printk(KERN_WARNING"%s: SCSI ID %d out of range \n", pHba->name, bus_no); adpt_i2o_parse_lct()
1506 if(bus_no > pHba->top_scsi_channel){ adpt_i2o_parse_lct()
1507 pHba->top_scsi_channel = bus_no; adpt_i2o_parse_lct()
1534 bus_no = 0; adpt_i2o_parse_lct()
1539 // TODO get the bus_no from hrt-but for now they are in order adpt_i2o_parse_lct()
1540 //bus_no = adpt_i2o_parse_lct()
1541 if(bus_no > pHba->top_scsi_channel){ adpt_i2o_parse_lct()
1542 pHba->top_scsi_channel = bus_no; adpt_i2o_parse_lct()
1544 pHba->channel[bus_no].type = d->lct_data.class_id; adpt_i2o_parse_lct()
1545 pHba->channel[bus_no].tid = tid; adpt_i2o_parse_lct()
1548 pHba->channel[bus_no].scsi_id = buf[1]; adpt_i2o_parse_lct()
1549 PDEBUG("Bus %d - SCSI ID %d.\n", bus_no, buf[1]); adpt_i2o_parse_lct()
1552 bus_no++; adpt_i2o_parse_lct()
1553 if(bus_no >= MAX_CHANNEL) { // Something wrong skip it adpt_i2o_parse_lct()
1554 printk(KERN_WARNING"%s: Channel number %d out of range - LCT\n", pHba->name, bus_no); adpt_i2o_parse_lct()
1570 bus_no = buf[0]>>16; adpt_i2o_parse_lct()
1573 if(bus_no >= MAX_CHANNEL) { // Something wrong skip it adpt_i2o_parse_lct()
1579 if( pHba->channel[bus_no].device[scsi_id] == NULL){ adpt_i2o_parse_lct()
1584 pHba->channel[bus_no].device[scsi_id] = pDev; adpt_i2o_parse_lct()
1586 for( pDev = pHba->channel[bus_no].device[scsi_id]; adpt_i2o_parse_lct()
1596 pDev->scsi_channel = bus_no; adpt_i2o_parse_lct()
2517 u8 bus_no = 0; adpt_i2o_reparse_lct() local
2557 bus_no = buf[0]>>16; adpt_i2o_reparse_lct()
2558 if (bus_no >= MAX_CHANNEL) { /* Something wrong skip it */ adpt_i2o_reparse_lct()
2561 pHba->name, bus_no); adpt_i2o_reparse_lct()
2567 pDev = pHba->channel[bus_no].device[scsi_id]; adpt_i2o_reparse_lct()
2593 pDev = pHba->channel[bus_no].device[scsi_id]; adpt_i2o_reparse_lct()
2601 pHba->channel[bus_no].device[scsi_id] = pDev; adpt_i2o_reparse_lct()
2614 pDev->scsi_channel = bus_no; adpt_i2o_reparse_lct()
2636 pHba->name,bus_no,scsi_id,scsi_lun); adpt_i2o_reparse_lct()
H A Dgdth.c1554 u32 bus_no, drv_cnt, drv_no, j; gdth_search_drives() local
1675 for (bus_no = 0; bus_no < ha->bus_cnt; ++bus_no) { gdth_search_drives()
1676 if (iocr->list[bus_no].proc_id < MAXID) gdth_search_drives()
1677 ha->bus_id[bus_no] = iocr->list[bus_no].proc_id; gdth_search_drives()
1679 ha->bus_id[bus_no] = 0xff; gdth_search_drives()
1684 for (bus_no = 0; bus_no < MAXBUS; ++bus_no) { gdth_search_drives()
1685 chn->channel_no = bus_no; gdth_search_drives()
1690 if (bus_no == 0) { gdth_search_drives()
1698 ha->bus_id[bus_no] = chn->siop_id; gdth_search_drives()
1700 ha->bus_id[bus_no] = 0xff; gdth_search_drives()
1702 ha->bus_cnt = (u8)bus_no; gdth_search_drives()
1747 for (bus_no = 0; bus_no < ha->bus_cnt; ++bus_no) { gdth_search_drives()
1748 ha->raw[bus_no].address = ioc->list[bus_no].address; gdth_search_drives()
1749 ha->raw[bus_no].local_no = ioc->list[bus_no].local_no; gdth_search_drives()
1752 for (bus_no = 0; bus_no < ha->bus_cnt; ++bus_no) { gdth_search_drives()
1753 ha->raw[bus_no].address = IO_CHANNEL; gdth_search_drives()
1754 ha->raw[bus_no].local_no = bus_no; gdth_search_drives()
1757 for (bus_no = 0; bus_no < ha->bus_cnt; ++bus_no) { gdth_search_drives()
1759 chn->channel_no = ha->raw[bus_no].local_no; gdth_search_drives()
1762 ha->raw[bus_no].address | INVALID_CHANNEL, gdth_search_drives()
1764 ha->raw[bus_no].pdev_cnt = chn->drive_cnt; gdth_search_drives()
1766 bus_no,chn->drive_cnt)); gdth_search_drives()
1768 if (ha->raw[bus_no].pdev_cnt > 0) { gdth_search_drives()
1770 drl->sc_no = ha->raw[bus_no].local_no; gdth_search_drives()
1771 drl->sc_cnt = ha->raw[bus_no].pdev_cnt; gdth_search_drives()
1774 ha->raw[bus_no].address | INVALID_CHANNEL, gdth_search_drives()
1776 for (j = 0; j < ha->raw[bus_no].pdev_cnt; ++j) gdth_search_drives()
1777 ha->raw[bus_no].id_list[j] = drl->sc_list[j]; gdth_search_drives()
1779 ha->raw[bus_no].pdev_cnt = 0; gdth_search_drives()
/linux-4.1.27/drivers/staging/unisys/virtpci/
H A Dvirtpci.c253 dev_set_name(vbus, "vbus%d", addparams->bus_no); add_vbus()
311 sprintf(busid, "vbus%d", addparams->bus_no); add_vhba()
365 sprintf(busid, "vbus%d", addparams->bus_no); add_vnic()
390 sprintf(busid, "vbus%d", delparams->bus_no); delete_vbus()
553 sprintf(busid, "vbus%d", delparams->bus_no); delete_all_virt()
827 virtpcidev->bus_no = addparams->bus_no; virtpci_device_add()
845 addparams->bus_no, addparams->device_no); virtpci_device_add()
1301 tmpvpcidev->bus_no, info_debugfs_read()
1312 tmpvpcidev->bus_no, info_debugfs_read()
H A Dvirtpci.h61 u32 bus_no; /* number of bus on which device exists */ member in struct:virtpci_dev
/linux-4.1.27/arch/ia64/sn/kernel/
H A Dio_common.c233 unsigned int bus_no, devfn; sn_pci_fixup_slot() local
245 bus_no = (pcidev_info->pdi_slot_host_handle >> 32) & 0xff; sn_pci_fixup_slot()
247 host_pci_dev = pci_get_domain_bus_and_slot(segment, bus_no, devfn); sn_pci_fixup_slot()
/linux-4.1.27/drivers/pci/hotplug/
H A Dibmphp_pci.c1105 debug ("the bus_no behind the bridge is %x\n", busno); scan_behind_bridge()
1335 int bus_no, pri_no, sub_no, sec_no = 0; unconfigure_boot_bridge() local
1351 bus_no = (int) busno; unconfigure_boot_bridge()
1360 if (pri_no != bus_no) { unconfigure_boot_bridge()
/linux-4.1.27/drivers/staging/unisys/virthba/
H A Dvirthba.c1404 visorchipset_device_pause_response(virtpcidev->bus_no, virthba_serverdown_complete()

Completed in 704 milliseconds