Home
last modified time | relevance | path

Searched full:unit (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/qemu/hw/timer/
H A Dgrlib_gptimer.c39 #define UNIT_REG_SIZE 16 /* Size of memory mapped regs for the unit */
70 GPTimerUnit *unit; member
139 static void grlib_gptimer_set_scaler(GPTimerUnit *unit, uint32_t scaler) in grlib_gptimer_set_scaler() argument
144 assert(unit != NULL); in grlib_gptimer_set_scaler()
147 value = unit->freq_hz / (scaler + 1); in grlib_gptimer_set_scaler()
149 value = unit->freq_hz; in grlib_gptimer_set_scaler()
154 for (i = 0; i < unit->nr_timers; i++) { in grlib_gptimer_set_scaler()
155 ptimer_transaction_begin(unit->timers[i].ptimer); in grlib_gptimer_set_scaler()
156 ptimer_set_freq(unit->timers[i].ptimer, value); in grlib_gptimer_set_scaler()
157 ptimer_transaction_commit(unit->timers[i].ptimer); in grlib_gptimer_set_scaler()
[all …]
/qemu/hw/ide/
H A Dide-dev.c33 DEFINE_PROP_UINT32("unit", IDEDevice, unit, -1),
43 if (dev->unit == -1) { in ide_qdev_realize()
44 dev->unit = bus->master ? 1 : 0; in ide_qdev_realize()
47 if (dev->unit >= bus->max_units) { in ide_qdev_realize()
48 error_setg(errp, "Can't create IDE unit %d, bus supports only %d units", in ide_qdev_realize()
49 dev->unit, bus->max_units); in ide_qdev_realize()
53 switch (dev->unit) { in ide_qdev_realize()
56 error_setg(errp, "IDE unit %d is in use", dev->unit); in ide_qdev_realize()
63 error_setg(errp, "IDE unit %d is in use", dev->unit); in ide_qdev_realize()
69 error_setg(errp, "Invalid IDE unit %d", dev->unit); in ide_qdev_realize()
[all …]
H A Dide-bus.c74 IDEDevice *ide_bus_create_drive(IDEBus *bus, int unit, DriveInfo *drive) in ide_bus_create_drive() argument
79 qdev_prop_set_uint32(dev, "unit", unit); in ide_bus_create_drive()
86 int ide_get_geometry(BusState *bus, int unit, in ide_get_geometry() argument
89 IDEState *s = &DO_UPCAST(IDEBus, qbus, bus)->ifs[unit]; in ide_get_geometry()
101 int ide_get_bios_chs_trans(BusState *bus, int unit) in ide_get_bios_chs_trans() argument
103 return DO_UPCAST(IDEBus, qbus, bus)->ifs[unit].chs_trans; in ide_get_bios_chs_trans()
/qemu/tests/qemu-iotests/
H A D172.out21 unit = 0 (0x0)
50 unit = 0 (0x0)
86 unit = 1 (0x1)
100 unit = 0 (0x0)
140 unit = 1 (0x1)
154 unit = 0 (0x0)
195 unit = 1 (0x1)
209 unit = 0 (0x0)
238 unit = 0 (0x0)
274 unit = 1 (0x1)
[all …]
H A D172131 check_floppy_qtree -drive if=none,file="$TEST_IMG" -device floppy,drive=none0,unit=1
133 -device floppy,drive=none0 -device floppy,drive=none1,unit=1
148 …k_floppy_qtree -fda "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0,unit=1
151 …k_floppy_qtree -fdb "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0,unit=0
154 …k_floppy_qtree -fda "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0,unit=0
155 …k_floppy_qtree -fdb "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0,unit=1
163 …rive if=floppy,file="$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0,unit=1
166 …rive if=floppy,file="$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0,unit=0
174 -global floppy.drive=none0 -device floppy,unit=0
178 -global floppy.drive=none0 -device floppy,drive=none1,unit=0
/qemu/stats/
H A Dstats-hmp-cmds.c19 const char *unit = NULL; in print_stats_schema_value() local
24 if (value->unit == STATS_UNIT_SECONDS) { in print_stats_schema_value()
25 unit = "s"; in print_stats_schema_value()
26 } else if (value->unit == STATS_UNIT_BYTES) { in print_stats_schema_value()
27 unit = "B"; in print_stats_schema_value()
31 if (unit && value->base == 10 && in print_stats_schema_value()
35 } else if (unit && value->base == 2 && in print_stats_schema_value()
41 /* Use exponential notation and write the unit's English name */ in print_stats_schema_value()
45 unit = NULL; in print_stats_schema_value()
49 monitor_puts(mon, unit ? unit : StatsUnit_str(value->unit)); in print_stats_schema_value()
/qemu/hw/rx/
H A Drx62n.c159 static void register_tmr(RX62NState *s, int unit) in register_tmr() argument
165 &s->tmr[unit], TYPE_RENESAS_TMR); in register_tmr()
166 tmr = SYS_BUS_DEVICE(&s->tmr[unit]); in register_tmr()
170 irqbase = RX62N_TMR_IRQ + TMR_NR_IRQ * unit; in register_tmr()
175 sysbus_mmio_map(tmr, 0, RX62N_TMR_BASE + unit * 0x10); in register_tmr()
178 static void register_cmt(RX62NState *s, int unit) in register_cmt() argument
184 &s->cmt[unit], TYPE_RENESAS_CMT); in register_cmt()
185 cmt = SYS_BUS_DEVICE(&s->cmt[unit]); in register_cmt()
189 irqbase = RX62N_CMT_IRQ + CMT_NR_IRQ * unit; in register_cmt()
194 sysbus_mmio_map(cmt, 0, RX62N_CMT_BASE + unit * 0x10); in register_cmt()
[all …]
/qemu/include/scsi/
H A Dutils.h94 /* Command aborted, Logical Unit failure */
104 /* Unit attention, Capacity data has changed */
106 /* Unit attention, SCSI bus reset */
110 /* Unit attention, Power on, reset or bus device reset occurred */
112 /* Unit attention, Medium may have changed*/
114 /* Unit attention, Reported LUNs data has changed */
116 /* Unit attention, Device internal reset */
/qemu/.gitlab-ci.d/
H A Dcheck-units.py21 Hash table of ["unit"] = count
45 for unit, count in sorted_build_units[:20]:
46 print(f" {unit} built {count} times")
49 for unit, count in sorted_build_units[-10:]:
50 print(f" {unit} built {count} times")
/qemu/include/hw/ide/
H A Dide-bus.h18 uint8_t unit; member
36 IDEDevice *ide_bus_create_drive(IDEBus *bus, int unit, DriveInfo *drive);
38 int ide_get_geometry(BusState *bus, int unit,
40 int ide_get_bios_chs_trans(BusState *bus, int unit);
/qemu/docs/
H A Dqdev-device-use.txt17 IDE unit %u
50 -drive if=TYPE,bus=BUS,unit=UNIT,OPTS...
52 TYPE, BUS and UNIT identify the controller device, which of its buses
55 Instead of bus=BUS,unit=UNIT, you can also say index=IDX.
83 -device DEVNAME,drive=DRIVE-ID,bus=IDE-BUS,unit=UNIT
86 bus, normally either ide.0 or ide.1, and UNIT is either 0 or 1.
101 -device DEVNAME,drive=DRIVE-ID,bus=ID.0,scsi-id=UNIT
107 -device floppy,unit=UNIT,drive=DRIVE-ID
109 Without any -device floppy,... you get an empty unit 0 and no unit
110 1. You can use -nodefaults to suppress the default unit 0, see
/qemu/util/
H A Dcutils.c169 static int64_t suffix_mul(char suffix, int64_t unit) in suffix_mul() argument
175 return unit; in suffix_mul()
177 return unit * unit; in suffix_mul()
179 return unit * unit * unit; in suffix_mul()
181 return unit * unit * unit * unit; in suffix_mul()
183 return unit * unit * unit * unit * unit; in suffix_mul()
185 return unit * unit * unit * unit * unit * unit; in suffix_mul()
194 * - 12345 - decimal, scale determined by @default_suffix and @unit
195 * - 12345{bBkKmMgGtTpPeE} - decimal, scale determined by suffix and @unit
198 * - 0x7fEE - hexadecimal, unit determined by @default_suffix
[all …]
/qemu/hw/block/
H A Dswim.c170 DEFINE_PROP_INT32("unit", SWIMDrive, unit, -1),
181 if (dev->unit == -1) { in swim_drive_realize()
182 for (dev->unit = 0; dev->unit < SWIM_MAX_FD; dev->unit++) { in swim_drive_realize()
183 drive = &bus->ctrl->drives[dev->unit]; in swim_drive_realize()
190 if (dev->unit >= SWIM_MAX_FD) { in swim_drive_realize()
191 error_setg(errp, "Can't create floppy unit %d, bus supports " in swim_drive_realize()
192 "only %d units", dev->unit, SWIM_MAX_FD); in swim_drive_realize()
196 drive = &bus->ctrl->drives[dev->unit]; in swim_drive_realize()
198 error_setg(errp, "Floppy unit %d is in use", dev->unit); in swim_drive_realize()
/qemu/libdecnumber/
H A DdecNumber.c159 /* lsu -- least significant Unit (of coefficient) */
162 /* msu -- most significant Unit (of coefficient) */
202 static Unit uarrone[1]={1}; /* Unit array of 1, used for incrementing */
212 /* QUOT10 -- macro to return the quotient of unit u divided by 10**n */
241 static Int decGetDigits(Unit *, Int);
253 static void decReverse(Unit *, Unit *);
254 static void decSetCoeff(decNumber *, decContext *, const Unit *,
259 static Int decShiftToLeast(Unit *, Int, Int);
260 static Int decShiftToMost(Unit *, Int, Int);
264 static Int decUnitAddSub(const Unit *, Int, const Unit *, Int, Int,
[all …]
/qemu/tests/docker/
H A Dtest-unit3 # Build and run the unit tests
19 # build for the unit tests to be built and run
21 check_qemu check-unit
/qemu/qapi/
H A Dstats.json40 # Enumeration of unit of measurement for statistics
210 # @unit: basic unit of measure for the statistic; if missing, the
213 # @base: base for the multiple of @unit in which the statistic is
219 # @exponent: exponent for the multiple of @unit in which the statistic
220 # is expressed, or 0 for the basic unit
230 '*unit': 'StatsUnit',
/qemu/libdecnumber/dpd/
H A Ddecimal64.c615 /* QUOT10 -- macro to return the quotient of unit u divided by 10**n */
625 const Unit *inu=dn->lsu; /* -> current input unit */ in decDigitsToDPD()
626 Unit uar[DECMAXUNITS]; /* working copy of units, iff shifted */ in decDigitsToDPD()
628 Unit in; /* current unit */ in decDigitsToDPD()
635 const Unit *source; /* .. */ in decDigitsToDPD()
636 Unit *target, *first; /* .. */ in decDigitsToDPD()
642 if (cut==0) { /* unit-boundary case */ in decDigitsToDPD()
648 /* split the source Unit and accumulate remainder for next */ in decDigitsToDPD()
657 if (target<=first) *target=(Unit)next; /* write to target iff valid */ in decDigitsToDPD()
658 next=rem*DECPOWERS[DECDPUN-cut]; /* save remainder for next Unit */ in decDigitsToDPD()
[all …]
/qemu/docs/devel/
H A Dsecure-coding-practices.rst51 ProcessingUnit unit[2];
58 ProcessingUnit *unit;
62 unit = &mydev->unit[val]; <-- this input wasn't validated!
68 place when ``unit`` is dereferenced. The code must check that ``val`` is 0 or
/qemu/docs/devel/testing/
H A Dmain.rst7 everything from unit testing and exercising specific sub-systems all
48 which includes QAPI schema tests, unit tests, QTests and some iotests.
57 Unit tests
60 A unit test is responsible for exercising individual software components as a
61 unit, like interfaces, data structures, and functionality, uncovering errors
63 smallest software unit and focuses on the internal processing logic and data
64 structures. A test case of unit tests should be designed to uncover errors
68 In QEMU, unit tests can be invoked with ``make check-unit``. They are
72 If you are writing new code in QEMU, consider adding a unit test, especially
74 add a new unit test:
[all …]
/qemu/hw/net/
H A Dvirtio-net.c2070 * pointed to by unit->ip_len.
2072 static uint16_t read_unit_ip_len(VirtioNetRscUnit *unit) in read_unit_ip_len() argument
2074 return lduw_be_p(unit->ip_plen); in read_unit_ip_len()
2077 static void write_unit_ip_len(VirtioNetRscUnit *unit, uint16_t l) in write_unit_ip_len() argument
2079 stw_be_p(unit->ip_plen, l); in write_unit_ip_len()
2084 VirtioNetRscUnit *unit) in virtio_net_rsc_extract_unit4() argument
2091 unit->ip = (void *)ip; in virtio_net_rsc_extract_unit4()
2093 unit->ip_plen = &ip->ip_len; in virtio_net_rsc_extract_unit4()
2094 unit->tcp = (struct tcp_header *)(((uint8_t *)unit->ip) + ip_hdrlen); in virtio_net_rsc_extract_unit4()
2095 unit->tcp_hdrlen = (htons(unit->tcp->th_offset_flags) & 0xF000) >> 10; in virtio_net_rsc_extract_unit4()
[all …]
/qemu/tests/data/
H A Dtest-qga-os-release6 VARIANT="Unit test \"\'\$\`\\ and \\\\ etc."
7 VARIANT_ID=unit-test
/qemu/pc-bios/
HDopenbios-sparc32 ... -self get-my-property sd my-unit my-args sd(0,%d, ...
/qemu/scsi/
H A Dutils.c245 /* Command aborted, Logical Unit failure */
285 /* Unit attention, Capacity data has changed */
290 /* Unit attention, Power on, reset or bus device reset occurred */
295 /* Unit attention, SCSI bus reset */
300 /* Unit attention, No medium */
305 /* Unit attention, Medium may have changed */
310 /* Unit attention, Reported LUNs data has changed */
315 /* Unit attention, Device internal reset */
376 case 0x2500: /* LOGICAL UNIT NOT SUPPORTED */ in scsi_sense_is_guest_recoverable()
418 case 0x2500: /* LOGICAL UNIT NOT SUPPORTED */ in scsi_sense_to_errno()
/qemu/include/hw/misc/
H A Darmsse-mhu.h2 * ARM SSE-200 Message Handling Unit (MHU)
13 * This is a model of the Message Handling Unit (MHU) which is part of the
/qemu/include/hw/arm/
H A Dallwinner-r40.h153 * @unit: the mmc control's unit
155 bool allwinner_r40_bootrom_setup(AwR40State *s, BlockBackend *blk, int unit);

12345678910>>...13