Lines Matching refs:devinfo_table

271 	struct scsi_dev_info_list_table *devinfo_table;  in scsi_devinfo_lookup_by_key()  local
274 list_for_each_entry(devinfo_table, &scsi_dev_info_list, node) in scsi_devinfo_lookup_by_key()
275 if (devinfo_table->key == key) { in scsi_devinfo_lookup_by_key()
282 return devinfo_table; in scsi_devinfo_lookup_by_key()
357 struct scsi_dev_info_list_table *devinfo_table = in scsi_dev_info_list_add_keyed() local
360 if (IS_ERR(devinfo_table)) in scsi_dev_info_list_add_keyed()
361 return PTR_ERR(devinfo_table); in scsi_dev_info_list_add_keyed()
395 &devinfo_table->scsi_dev_info_list); in scsi_dev_info_list_add_keyed()
398 &devinfo_table->scsi_dev_info_list); in scsi_dev_info_list_add_keyed()
420 struct scsi_dev_info_list_table *devinfo_table = in scsi_dev_info_list_find() local
425 if (IS_ERR(devinfo_table)) in scsi_dev_info_list_find()
426 return (struct scsi_dev_info_list *) devinfo_table; in scsi_dev_info_list_find()
457 list_for_each_entry(devinfo, &devinfo_table->scsi_dev_info_list, in scsi_dev_info_list_find()
633 struct scsi_dev_info_list_table *devinfo_table = in devinfo_seq_show() local
639 if (devinfo_table->scsi_dev_info_list.next == dl->bottom && in devinfo_seq_show()
640 devinfo_table->name) in devinfo_seq_show()
641 seq_printf(m, "[%s]:\n", devinfo_table->name); in devinfo_seq_show()
657 struct scsi_dev_info_list_table *devinfo_table = in devinfo_seq_start() local
660 list_for_each(dl->bottom, &devinfo_table->scsi_dev_info_list) in devinfo_seq_start()
672 struct scsi_dev_info_list_table *devinfo_table = in devinfo_seq_next() local
677 while (&devinfo_table->scsi_dev_info_list == dl->bottom) { in devinfo_seq_next()
683 devinfo_table = list_entry(dl->top, in devinfo_seq_next()
686 dl->bottom = devinfo_table->scsi_dev_info_list.next; in devinfo_seq_next()
787 struct scsi_dev_info_list_table *devinfo_table = in scsi_dev_info_add_list() local
790 if (!IS_ERR(devinfo_table)) in scsi_dev_info_add_list()
794 devinfo_table = kmalloc(sizeof(*devinfo_table), GFP_KERNEL); in scsi_dev_info_add_list()
796 if (!devinfo_table) in scsi_dev_info_add_list()
799 INIT_LIST_HEAD(&devinfo_table->node); in scsi_dev_info_add_list()
800 INIT_LIST_HEAD(&devinfo_table->scsi_dev_info_list); in scsi_dev_info_add_list()
801 devinfo_table->name = name; in scsi_dev_info_add_list()
802 devinfo_table->key = key; in scsi_dev_info_add_list()
803 list_add_tail(&devinfo_table->node, &scsi_dev_info_list); in scsi_dev_info_add_list()
820 struct scsi_dev_info_list_table *devinfo_table = in scsi_dev_info_remove_list() local
823 if (IS_ERR(devinfo_table)) in scsi_dev_info_remove_list()
828 list_del(&devinfo_table->node); in scsi_dev_info_remove_list()
830 list_for_each_safe(lh, lh_next, &devinfo_table->scsi_dev_info_list) { in scsi_dev_info_remove_list()
837 kfree(devinfo_table); in scsi_dev_info_remove_list()