/xen/xen/common/xz/ |
A D | dec_stream.c | 166 if (s->temp.pos == s->temp.size) { in fill_temp() 285 s->crc32 = xz_crc32(b->in + s->in_start, in_used, s->crc32); in index_update() 309 s->index.count = s->vli; in dec_index() 323 s->index.hash.unpadded += s->vli; in dec_index() 438 if (s->temp.buf[8] != 0 || s->temp.buf[9] != s->check_type) in dec_stream_footer() 477 if (dec_vli(s, s->temp.buf, &s->temp.pos, s->temp.size) in dec_block_header() 488 if (dec_vli(s, s->temp.buf, &s->temp.pos, s->temp.size) in dec_block_header() 504 ret = xz_dec_bcj_reset(s->bcj, s->temp.buf[s->temp.pos++]); in dec_block_header() 518 if (s->temp.size - s->temp.pos < 2) in dec_block_header() 533 ret = xz_dec_lzma2_reset(s->lzma2, s->temp.buf[s->temp.pos++]); in dec_block_header() [all …]
|
A D | dec_lzma2.c | 654 s->lzma.rep3 = s->lzma.rep2; in lzma_match() 655 s->lzma.rep2 = s->lzma.rep1; in lzma_match() 692 if (!rc_bit(&s->rc, &s->lzma.is_rep0[s->lzma.state])) { in lzma_rep_match() 700 if (!rc_bit(&s->rc, &s->lzma.is_rep1[s->lzma.state])) { in lzma_rep_match() 703 if (!rc_bit(&s->rc, &s->lzma.is_rep2[s->lzma.state])) { in lzma_rep_match() 731 dict_repeat(&s->dict, &s->lzma.len, s->lzma.rep0); in lzma_main() 744 if (rc_bit(&s->rc, &s->lzma.is_rep[s->lzma.state])) in lzma_main() 749 if (!dict_repeat(&s->dict, &s->lzma.len, s->lzma.rep0)) in lzma_main() 874 s->rc.in = s->temp.buf; in lzma2_lzma() 877 if (!lzma_main(s) || s->rc.in_pos > s->temp.size + tmp) in lzma2_lzma() [all …]
|
A D | dec_bcj.c | 409 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush() 451 memcpy(b->out + b->out_pos, s->temp.buf, s->temp.size); in xz_dec_bcj_run() 456 && (s->ret != XZ_OK || s->single_call)) in xz_dec_bcj_run() 471 memcpy(s->temp.buf, b->out + b->out_pos, s->temp.size); in xz_dec_bcj_run() 506 if (s->ret != XZ_OK && s->ret != XZ_STREAM_END) in xz_dec_bcj_run() 509 bcj_apply(s, s->temp.buf, &s->temp.filtered, s->temp.size); in xz_dec_bcj_run() 517 s->temp.filtered = s->temp.size; in xz_dec_bcj_run() 529 struct xz_dec_bcj *s = malloc(sizeof(*s)); in xz_dec_bcj_create() local 533 return s; in xz_dec_bcj_create() 564 s->type = id; in xz_dec_bcj_reset() [all …]
|
/xen/xen/arch/x86/hvm/ |
A D | rtc.c | 56 #define rtc_mode_is(s, m) mode_is(vrtc_domain(s), m) argument 116 if ( (now - s->start_time) / s->period in check_for_pf_ticks() 117 != (s->check_ticks_since - s->start_time) / s->period ) in check_for_pf_ticks() 460 orig = s->hw.cmos_data[s->hw.cmos_index]; in rtc_ioport_write() 466 s->hw.cmos_data[s->hw.cmos_index] = data; in rtc_ioport_write() 478 s->hw.cmos_data[s->hw.cmos_index] = data; in rtc_ioport_write() 621 s->hw.cmos_data[RTC_HOURS] = to_bcd(s, h); in rtc_copy_date() 672 ret = s->hw.cmos_data[s->hw.cmos_index]; in rtc_ioport_read() 675 ret = s->hw.cmos_data[s->hw.cmos_index]; in rtc_ioport_read() 681 ret = s->hw.cmos_data[s->hw.cmos_index]; in rtc_ioport_read() [all …]
|
A D | stdvga.c | 143 s->sr_index = val; in stdvga_outb() 147 rc = (s->sr_index < sizeof(s->sr)); in stdvga_outb() 149 s->sr[s->sr_index] = val & sr_mask[s->sr_index] ; in stdvga_outb() 157 rc = (s->gr_index < sizeof(s->gr)); in stdvga_outb() 159 s->gr[s->gr_index] = val & gr_mask[s->gr_index]; in stdvga_outb() 169 s->stdvga = (s->sr[7] == 0x00); in stdvga_outb() 295 ret = (s->latch ^ mask16[s->gr[2]]) & mask16[s->gr[7]]; in stdvga_mem_readb() 448 mask = s->sr[2]; in stdvga_mem_writeb() 471 if ( !stdvga_cache_is_enabled(s) || !s->stdvga ) in stdvga_mem_write() 550 (!stdvga_cache_is_enabled(s) || !s->stdvga) ) in stdvga_mem_accept() [all …]
|
A D | ioreq.c | 670 s->range[i] = rangeset_new(s->target, name, in hvm_ioreq_server_alloc_rangesets() 807 if ( !s ) in hvm_create_ioreq_server() 848 xfree(s); in hvm_create_ioreq_server() 862 if ( !s ) in hvm_destroy_ioreq_server() 884 xfree(s); in hvm_destroy_ioreq_server() 907 if ( !s ) in hvm_get_ioreq_server_info() 954 if ( !s ) in hvm_get_ioreq_server_frame() 1008 if ( !s ) in hvm_map_io_range_to_ioreq_server() 1060 if ( !s ) in hvm_unmap_io_range_from_ioreq_server() 1121 if ( !s ) in hvm_map_mem_type_to_ioreq_server() [all …]
|
A D | pmtimer.c | 76 spin_lock(&s->lock); in hvm_acpi_power_button() 78 pmt_update_sci(s); in hvm_acpi_power_button() 89 spin_lock(&s->lock); in hvm_acpi_sleep_button() 91 pmt_update_sci(s); in hvm_acpi_sleep_button() 107 tmp = ((curr_gtime - s->last_gtime) * s->scale) + s->not_accounted; in pmt_update_time() 136 pmt_update_time(s); in pmt_timer_callback() 269 x = (((s->vcpu->arch.hvm.guest_time ?: hvm_get_guest_time(s->vcpu)) - in acpi_save() 270 s->last_gtime) * s->scale) >> 32; in acpi_save() 302 s->last_gtime = hvm_get_guest_time(s->vcpu); in acpi_load() 359 s->vcpu = v; in pmtimer_init() [all …]
|
/xen/tools/debugger/kdd/ |
A D | kdd.c | 219 if (!s->os.w64 && kdd_get_regs(s->guest, s->cpuid, &r, 0) == 0) in kdd_get_ip() 604 ret = kdd_get_ctrl(s->guest, s->cpuid, &ctrl, s->os.w64); in get_os_info_64() 832 s->txp.stc.stop.rip1 = s->txp.stc.stop.rip2 = kdd_get_ip(s); in kdd_break() 835 ilen = kdd_read_virtual(s, s->cpuid, s->txp.stc.stop.rip1, in kdd_break() 896 s->txp.cmd.shake.mods_addr = s->os.base + s->os.modules; in kdd_handle_handshake() 897 s->txp.cmd.shake.data_addr = s->os.kddl ? s->os.base + s->os.kddl : 0; in kdd_handle_handshake() 995 if (kdd_get_ctrl(s->guest, s->cpuid, &ctrl, s->os.w64)) { in kdd_handle_read_ctrl() 1222 s = malloc(sizeof *s); in kdd_init() 1228 memset(s, 0, sizeof *s); in kdd_init() 1303 rc = read(s->fd, s->rxb + s->cur, to_read); in kdd_select_callback() [all …]
|
/xen/tools/ocaml/libs/xl/ |
A D | genwrap.py | 121 s = "" 128 return s 131 s = "" 179 s= "" 192 s = indent + s 270 s = indent 357 s += "\n" 482 return s 510 return s 514 return s [all …]
|
/xen/tools/libxl/ |
A D | gentypes.py | 102 s = indent + s 157 s = indent + s 214 s = indent + s 276 s = indent + s 329 s = indent + s 426 s = indent + s 435 s = indent + s 539 s = indent +s 548 s = indent + s 562 s = indent + s [all …]
|
A D | check-xl-vif-parse | 59 one $e rate=10ZB/s 104 one 0 rate=16Kb/s 106 one 0 rate=2KB/s 129 one 0 rate=2MB/s 150 one 0 rate=8Gb/s 152 one 0 rate=1GB/s 164 one $e rate=0B/s 191 one 0 rate=80Mb/s@1s 192 one 0 rate=10MB/s@1s 198 one $e rate=1B/s@4295s [all …]
|
/xen/xen/include/acpi/ |
A D | acmacros.h | 569 #define return_UINT8(s) return_VALUE(s) argument 587 #define return_ACPI_STATUS(s) return(s) argument 588 #define return_VALUE(s) return(s) argument 589 #define return_UINT8(s) return(s) argument 590 #define return_UINT32(s) return(s) argument 591 #define return_PTR(s) return(s) argument 636 #define return_ACPI_STATUS(s) return(s) argument 637 #define return_VALUE(s) return(s) argument 638 #define return_UINT8(s) return(s) argument 639 #define return_UINT32(s) return(s) argument [all …]
|
/xen/tools/golang/xenlight/ |
A D | gengotypes.py | 71 s = '' 86 s += ')\n' 88 return s 91 s = '' 151 s = '' 286 s = '' 325 return s 417 s = '' 487 s = '' 591 s = '' [all …]
|
/xen/xen/xsm/flask/ss/ |
A D | sidtab.c | 19 #define INIT_SIDTAB_LOCK(s) spin_lock_init(&s->lock) argument 20 #define SIDTAB_LOCK(s) spin_lock(&s->lock) argument 21 #define SIDTAB_UNLOCK(s) spin_unlock(&s->lock) argument 32 s->nel = 0; in sidtab_init() 44 if ( !s ) in sidtab_insert() 92 s->nel++; in sidtab_insert() 104 if ( !s ) in sidtab_search() 133 if ( !s ) in sidtab_map() 157 if ( !s ) in sidtab_map_remove_on_error() 231 if ( s->next_sid == UINT_MAX || s->shutdown ) in sidtab_context_to_sid() [all …]
|
/xen/tools/ocaml/libs/xentoollog/ |
A D | genlevels.py | 30 s = "" 32 s += "type level = \n" 46 return s 51 s = "" 53 s += "type level = \n" 57 return s 62 s = "" 65 s += "{\n" 69 s += "\t\tbreak;\n" 87 return s [all …]
|
/xen/xen/common/sched/ |
A D | private.h | 337 return s->init(s); in sched_init() 342 s->deinit(s); in sched_deinit() 355 s->dump_settings(s); in sched_dump_settings() 367 return s->alloc_domdata ? s->alloc_domdata(s, d) : NULL; in sched_alloc_domdata() 380 return s->alloc_pdata ? s->alloc_pdata(s, cpu) : NULL; in sched_alloc_pdata() 406 s->free_udata(s, data); in sched_free_udata() 427 s->sleep(s, unit); in sched_sleep() 434 s->wake(s, unit); in sched_wake() 441 s->yield(s, unit); in sched_yield() 478 return s->adjust ? s->adjust(s, d, op) : 0; in sched_adjust_dom() [all …]
|
/xen/xen/include/acpi/platform/ |
A D | acenv.h | 233 #define ACPI_STRLEN(s) (acpi_size) strlen((s)) argument 234 #define ACPI_STRCPY(d,s) (void) strcpy((d), (s)) argument 236 #define ACPI_STRNCMP(d,s,n) strncmp((d), (s), (acpi_size)(n)) argument 237 #define ACPI_STRCMP(d,s) strcmp((d), (s)) argument 238 #define ACPI_STRCAT(d,s) (void) strcat((d), (s)) argument 239 #define ACPI_STRNCAT(d,s,n) strncat((d), (s), (acpi_size)(n)) argument 240 #define ACPI_STRTOUL(d,s,n) strtoul((d), (s), (acpi_size)(n)) argument 294 #define ACPI_STRLEN(s) (acpi_size) acpi_ut_strlen ((s)) argument 295 #define ACPI_STRCPY(d,s) (void) acpi_ut_strcpy ((d), (s)) argument 298 #define ACPI_STRCMP(d,s) acpi_ut_strcmp ((d), (s)) argument [all …]
|
/xen/xen/common/ |
A D | rangeset.c | 52 if ( y->s > s ) in find_range() 139 x->s = s; in rangeset_add_range() 152 x->s = s; in rangeset_add_range() 157 x->s = s; in rangeset_add_range() 201 if ( (x->s < s) && (x->e > e) ) in rangeset_remove_range() 216 else if ( (x->s == s) && (x->e <= e) ) in rangeset_remove_range() 218 else if ( x->s == s ) in rangeset_remove_range() 228 if ( x->s < s ) in rangeset_remove_range() 402 return rangeset_add_range(r, s, s); in rangeset_add_singleton() 408 return rangeset_remove_range(r, s, s); in rangeset_remove_singleton() [all …]
|
A D | string.c | 162 for(; *s != (char) c; ++s) 163 if (*s == '\0') 177 const char *p = s + strlen(s); 180 if (p == s) 198 return sc - s; in size_t() 214 return sc - s; in strnlen() 287 *s = end; in strsep() 330 return s; 349 *tmp++ = *s++; 366 char *tmp, *s; variable [all …]
|
/xen/xen/arch/x86/ |
A D | dom0_build.c | 81 s++; in parse_amt() 108 *ps = --s; in parse_amt() 109 if ( *s && *s != ',' ) in parse_amt() 132 ret = parse_amt(s + 4, &s, &dom0_min_size); in parse_dom0_mem() 134 ret = parse_amt(s + 4, &s, &dom0_max_size); in parse_dom0_mem() 136 ret = parse_amt(s, &s, &dom0_size); in parse_dom0_mem() 157 else if ( *s++ == '-' && *s ) /* N-M */ in parse_dom0_max_vcpus() 178 if ( !*s || *s == ',' ) in parse_dom0_nodes() 181 else if ( !strncmp(s, "relaxed", 7) && (!s[7] || s[7] == ',') ) in parse_dom0_nodes() 186 else if ( !strncmp(s, "strict", 6) && (!s[6] || s[6] == ',') ) in parse_dom0_nodes() [all …]
|
A D | emul-i8254.c | 102 switch ( s->mode ) in pit_get_out() 109 out = (d < s->count); in pit_get_out() 115 out = ((d % s->count) < ((s->count + 1) >> 1)); in pit_get_out() 133 switch ( s->mode ) in pit_set_gate() 145 if ( s->gate < val ) in pit_set_gate() 150 s->gate = val; in pit_set_gate() 181 s->count = val; in pit_load_count() 187 switch ( s->mode ) in pit_load_count() 327 if ( s->status_latched ) in pit_ioport_read() 330 ret = s->status; in pit_ioport_read() [all …]
|
/xen/xen/tools/kconfig/ |
A D | util.c | 38 strcpy(gs.s, "\0"); in str_new() 45 if (gs->s) in str_free() 46 free(gs->s); in str_free() 47 gs->s = NULL; in str_free() 55 if (s) { in str_append() 56 l = strlen(gs->s) + strlen(s) + 1; in str_append() 58 gs->s = xrealloc(gs->s, l); in str_append() 61 strcat(gs->s, s); in str_append() 71 vsnprintf(s, sizeof(s), fmt, ap); in str_printf() 79 return gs->s; in str_get() [all …]
|
/xen/xen/common/lz4/ |
A D | defs.h | 50 #define PUT4(s, d) (A32(d) = A32(s)) argument 51 #define PUT8(s, d) (A64(d) = A64(s)) argument 63 #define PUT4(s, d) \ argument 65 #define PUT8(s, d) \ argument 109 PUT8(s, d); \ 111 s += 8; \ 114 #define LZ4_COPYPACKET(s, d) LZ4_COPYSTEP(s, d) argument 135 PUT4(s, d); \ 137 s += 4; \ 142 LZ4_COPYSTEP(s, d); \ [all …]
|
/xen/xen/include/asm-x86/ |
A D | io.h | 17 #define __OUT1(s,x) \ argument 20 #define __OUT2(s,s1,s2) \ argument 21 __asm__ __volatile__ ("out" #s " %" s1 "0,%" s2 "1" 23 #define __OUT(s,s1,x) \ argument 24 __OUT1(s,x) __OUT2(s,s1,"w") : : "a" (value), "Nd" (port)); } \ 25 __OUT1(s##_p,x) __OUT2(s,s1,"w") : : "a" (value), "Nd" (port));} 27 #define __IN1(s) \ argument 30 #define __IN2(s,s1,s2) \ argument 33 #define __IN(s,s1,i...) \ argument 34 __IN1(s) __IN2(s,s1,"w") : "=a" (_v) : "Nd" (port) ,##i ); return _v; } \ [all …]
|
/xen/tools/firmware/hvmloader/ |
A D | smbios.c | 106 const char *s; in smbios_pt_init() local 109 if ( s == NULL ) in smbios_pt_init() 383 const char *s; in smbios_type_0_init() local 533 if ( (s != NULL) && (*s != '\0') ) in smbios_type_2_init() 541 if ( (s != NULL) && (*s != '\0') ) in smbios_type_2_init() 549 if ( (s != NULL) && (*s != '\0') ) in smbios_type_2_init() 557 if ( (s != NULL) && (*s != '\0') ) in smbios_type_2_init() 565 if ( (s != NULL) && (*s != '\0') ) in smbios_type_2_init() 573 if ( (s != NULL) && (*s != '\0') ) in smbios_type_2_init() 632 if ( (s != NULL)&&(*s != '\0') ) in smbios_type_3_init() [all …]
|