Lines Matching refs:global

55    Rename global function hp_init_openfd to sanei_hp_init_openfd
118 - change handling of options that have global effects.
119 i.e. if option scanmode is received (has global effect),
203 - Rename global symbols to sanei_...
307 } global;
310 /* Get the info structure for a device. If not available in global list */
316 HpDeviceInfoList *infolist = &(global.infolist);
321 if (!global.is_up) return 0;
378 if (!global.is_up) return 0;
379 return &(global.config);
418 if (!global.is_up)
420 DBG(17, "sanei_hp_device_info_get: global.is_up = %d\n", (int)global.is_up);
427 infolist = &(global.infolist);
456 for (ptr = global.device_list; ptr; ptr = ptr->next)
466 HpDeviceInfoList next, infolistelement = global.infolist;
468 if (!global.is_up) return;
529 memset(&global, 0, sizeof(global));
530 global.is_up++;
531 DBG(3, "hp_init: global.is_up = %d\n", (int)global.is_up);
538 if (global.is_up)
541 while (global.handle_list)
542 sane_close(global.handle_list->dev);
548 global.is_up = 0;
549 DBG(3, "hp_destroy: global.is_up = %d\n", (int)global.is_up);
563 for (ptr = global.device_list; ptr; ptr = ptr->next)
591 RETURN_IF_FAIL( hp_device_list_add(&global.device_list, new) );
638 if (!global.is_up)
640 if (global.config_read)
767 global.config_read++;
780 if (global.devlist)
781 sanei_hp_free(global.devlist);
783 for (devp = global.device_list; devp; devp = devp->next)
789 global.devlist = devlist;
791 for (devp = global.device_list; devp; devp = devp->next)
837 *device_list = global.devlist;
858 if (global.device_list)
859 dev = global.device_list->dev;
867 RETURN_IF_FAIL( hp_handle_list_add(&global.handle_list, h) );
881 if (!FAILED( hp_handle_list_remove(&global.handle_list, h) ))