Lines Matching refs:num_devices

1128 	int		num_devices = 0;
1181 fcio.fcio_olen = sizeof (num_devices);
1183 fcio.fcio_obuf = (caddr_t)&num_devices;
1189 if (num_devices == 0) {
1195 if ((dlist = (fc_port_dev_t *)calloc(num_devices,
1205 fcio.fcio_olen = num_devices * sizeof (fc_port_dev_t);
1217 num_devices = new_count;
1219 if ((dlist = (fc_port_dev_t *)calloc(num_devices,
1228 fcio.fcio_olen = num_devices * sizeof (fc_port_dev_t);
1241 num_devices, new_count);
1264 if (new_count < num_devices) {
1271 num_devices = new_count;
1282 *ndevs = num_devices;
1294 for (i = 0; i < num_devices; i++, dlist++) {
1541 int fd, i, j, num_devices = 0, err, pathcnt = 1;
1660 &num_devices)) != 0) {
1678 if (num_devices == 0)
1686 if (num_devices > 0) {
1691 map_ptr->count = ++num_devices;
1693 map_ptr->count = num_devices;
1709 /* dev_addr array only when num_devices > 0 */
1710 if (map_type == MAP_FORMAT_LILP && num_devices > 0) {
1716 (num_devices * sizeof (fc_port_dev_t))))
1725 if (memcpy(dev_list+(num_devices-1), &fp_hba_port,
1734 qsort((void*)dev_list, num_devices,
1754 for (i = 0; i < num_devices; i++, dev_ptr++,
1801 for (i = 0; (i < num_devices &&
2153 int fd, i, num_devices = 0, err, pathcnt = 1, new_count = 0;
2275 fcio.fcio_olen = sizeof (num_devices);
2277 fcio.fcio_obuf = (caddr_t)&num_devices;
2284 if (num_devices != 0) {
2285 if ((dev_list = (fc_port_dev_t *)calloc(num_devices,
2297 fcio.fcio_olen = num_devices * sizeof (fc_port_dev_t);
2309 num_devices = new_count;
2312 calloc(num_devices,
2322 fcio.fcio_olen = num_devices *
2341 num_devices,
2371 if (new_count < num_devices) {
2372 num_devices = new_count;
2396 if (num_devices == 0) {
2414 if (num_devices > 0) {
2417 (++num_devices *
2433 if (memcpy(dev_list+(num_devices-1),
2443 qsort((void*)dev_list, num_devices,
2496 for (i = 0; i < num_devices; i++, dlist++) {
5093 int fd, err, num_devices = 0;
5152 num_devices = map.lilp_length;
5155 *portstate = (num_devices > 1) ? PORT_CONNECTED :
5287 int num_devices = 0;
5297 if (((err = g_get_dev_list(fca_path, &dev_list, &num_devices))
5306 for (i = 0; i < num_devices; i++, dev_list++) {
5318 for (i = 0; i < num_devices; i++, dev_list++) {