Lines Matching refs:sg_dev_arr
251 static Sg_device ** sg_dev_arr = NULL; variable
1212 if (sg_dev_arr && (dev >= 0)) { in sg_cmd_done_bh()
1214 sdp = sg_dev_arr[dev]; in sg_cmd_done_bh()
1349 if ((sg_template.dev_noticed == 0) || sg_dev_arr) in sg_init()
1367 sg_dev_arr = (Sg_device **)kmalloc(sg_template.dev_max * in sg_init()
1369 if (NULL == sg_dev_arr) { in sg_init()
1375 memset(sg_dev_arr, 0, sg_template.dev_max * sizeof(Sg_device *)); in sg_init()
1424 memcpy(tmp_da, sg_dev_arr, sg_template.dev_max * sizeof(Sg_device *)); in sg_attach()
1425 kfree((char *)sg_dev_arr); in sg_attach()
1426 sg_dev_arr = tmp_da; in sg_attach()
1431 if(! sg_dev_arr[k]) break; in sg_attach()
1466 sg_dev_arr[k] = sdp; in sg_attach()
1496 if (NULL == sg_dev_arr) in sg_detach()
1501 sdp = sg_dev_arr[k]; in sg_detach()
1532 sg_dev_arr[k] = NULL; in sg_detach()
1539 sg_dev_arr[k] = NULL; in sg_detach()
1575 if(sg_dev_arr != NULL) { in exit_sg()
1576 kfree((char *)sg_dev_arr); in exit_sg()
1577 sg_dev_arr = NULL; in exit_sg()
2443 if (sdp == sg_dev_arr[k]) in sg_remove_sfp()
2447 sg_dev_arr[k] = NULL; in sg_remove_sfp()
2677 if (sg_dev_arr[k] && sg_dev_arr[k]->device) break; in sg_last_dev()
2688 if (sg_dev_arr && (dev >= 0)) in sg_get_dev()
2692 sdp = sg_dev_arr[dev]; in sg_get_dev()
2887 if (NULL == sg_dev_arr) { in sg_proc_debug_info()