Lines Matching refs:value
254 static void fw_cfg_write(FWCfgState *s, uint8_t value) in fw_cfg_write() argument
300 uint64_t value = 0; in fw_cfg_data_read() local
302 assert(size > 0 && size <= sizeof(value)); in fw_cfg_data_read()
311 value = (value << 8) | e->data[s->cur_offset++]; in fw_cfg_data_read()
317 value <<= 8 * size; in fw_cfg_data_read()
320 trace_fw_cfg_read(s, value); in fw_cfg_data_read()
321 return value; in fw_cfg_data_read()
325 uint64_t value, unsigned size) in fw_cfg_data_mem_write() argument
331 fw_cfg_write(s, value >> (8 * --i)); in fw_cfg_data_mem_write()
450 uint64_t value, unsigned size) in fw_cfg_dma_mem_write() argument
457 s->dma_addr = value << 32; in fw_cfg_dma_mem_write()
460 s->dma_addr |= value; in fw_cfg_dma_mem_write()
464 s->dma_addr = value; in fw_cfg_dma_mem_write()
490 uint64_t value, unsigned size) in fw_cfg_ctl_mem_write() argument
492 fw_cfg_select(opaque, (uint16_t)value); in fw_cfg_ctl_mem_write()
503 uint64_t value, unsigned size) in fw_cfg_comb_write() argument
507 fw_cfg_write(opaque, (uint8_t)value); in fw_cfg_comb_write()
510 fw_cfg_select(opaque, (uint16_t)value); in fw_cfg_comb_write()
745 void fw_cfg_add_string(FWCfgState *s, uint16_t key, const char *value) in fw_cfg_add_string() argument
747 size_t sz = strlen(value) + 1; in fw_cfg_add_string()
749 trace_fw_cfg_add_string(key, trace_key_name(key), value); in fw_cfg_add_string()
750 fw_cfg_add_bytes(s, key, g_memdup(value, sz), sz); in fw_cfg_add_string()
753 void fw_cfg_modify_string(FWCfgState *s, uint16_t key, const char *value) in fw_cfg_modify_string() argument
755 size_t sz = strlen(value) + 1; in fw_cfg_modify_string()
758 old = fw_cfg_modify_bytes_read(s, key, g_memdup(value, sz), sz); in fw_cfg_modify_string()
762 void fw_cfg_add_i16(FWCfgState *s, uint16_t key, uint16_t value) in fw_cfg_add_i16() argument
766 copy = g_malloc(sizeof(value)); in fw_cfg_add_i16()
767 *copy = cpu_to_le16(value); in fw_cfg_add_i16()
768 trace_fw_cfg_add_i16(key, trace_key_name(key), value); in fw_cfg_add_i16()
769 fw_cfg_add_bytes(s, key, copy, sizeof(value)); in fw_cfg_add_i16()
772 void fw_cfg_modify_i16(FWCfgState *s, uint16_t key, uint16_t value) in fw_cfg_modify_i16() argument
776 copy = g_malloc(sizeof(value)); in fw_cfg_modify_i16()
777 *copy = cpu_to_le16(value); in fw_cfg_modify_i16()
778 old = fw_cfg_modify_bytes_read(s, key, copy, sizeof(value)); in fw_cfg_modify_i16()
782 void fw_cfg_add_i32(FWCfgState *s, uint16_t key, uint32_t value) in fw_cfg_add_i32() argument
786 copy = g_malloc(sizeof(value)); in fw_cfg_add_i32()
787 *copy = cpu_to_le32(value); in fw_cfg_add_i32()
788 trace_fw_cfg_add_i32(key, trace_key_name(key), value); in fw_cfg_add_i32()
789 fw_cfg_add_bytes(s, key, copy, sizeof(value)); in fw_cfg_add_i32()
792 void fw_cfg_modify_i32(FWCfgState *s, uint16_t key, uint32_t value) in fw_cfg_modify_i32() argument
796 copy = g_malloc(sizeof(value)); in fw_cfg_modify_i32()
797 *copy = cpu_to_le32(value); in fw_cfg_modify_i32()
798 old = fw_cfg_modify_bytes_read(s, key, copy, sizeof(value)); in fw_cfg_modify_i32()
802 void fw_cfg_add_i64(FWCfgState *s, uint16_t key, uint64_t value) in fw_cfg_add_i64() argument
806 copy = g_malloc(sizeof(value)); in fw_cfg_add_i64()
807 *copy = cpu_to_le64(value); in fw_cfg_add_i64()
808 trace_fw_cfg_add_i64(key, trace_key_name(key), value); in fw_cfg_add_i64()
809 fw_cfg_add_bytes(s, key, copy, sizeof(value)); in fw_cfg_add_i64()
812 void fw_cfg_modify_i64(FWCfgState *s, uint16_t key, uint64_t value) in fw_cfg_modify_i64() argument
816 copy = g_malloc(sizeof(value)); in fw_cfg_modify_i64()
817 *copy = cpu_to_le64(value); in fw_cfg_modify_i64()
818 old = fw_cfg_modify_bytes_read(s, key, copy, sizeof(value)); in fw_cfg_modify_i64()