Lines Matching refs:chg_item
146 struct chg_list *chg_item; in c_scsi() local
269 chg_item = (struct chg_list *) in c_scsi()
272 chg_item)) { in c_scsi()
273 add_new_change_list_item(chg_item); in c_scsi()
275 destroy_data((char *)chg_item); in c_scsi()
749 struct chg_list *chg_item) in parse_change_spec() argument
756 chg_item->pageno = pageno; in parse_change_spec()
757 chg_item->next = NULL; in parse_change_spec()
760 chg_item->byteno = (int)strtol(input, &p, 0); in parse_change_spec()
765 if (chg_item->byteno < 2) { in parse_change_spec()
766 err_print(" Unsupported byte offset: %d\n", chg_item->byteno); in parse_change_spec()
771 chg_item->mode = CHG_MODE_UNDEFINED; in parse_change_spec()
774 chg_item->mode = CHG_MODE_ABS; in parse_change_spec()
778 chg_item->mode = CHG_MODE_SET; in parse_change_spec()
783 chg_item->mode = CHG_MODE_CLR; in parse_change_spec()
787 if (chg_item->mode == CHG_MODE_UNDEFINED) { in parse_change_spec()
800 chg_item->value = (int)strtol(input, &p, 0); in parse_change_spec()
810 chg_item->value = ~chg_item->value; in parse_change_spec()
812 chg_item->value &= 0xff; in parse_change_spec()
819 add_new_change_list_item(struct chg_list *chg_item) in add_new_change_list_item() argument
824 change_list = chg_item; in add_new_change_list_item()
828 cp->next = chg_item; in add_new_change_list_item()
830 chg_item->next = NULL; in add_new_change_list_item()