Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 1281) sorted by relevance

12345678910>>...52

/openbmc/u-boot/drivers/ddr/marvell/axp/
H A Dxor_regs.h16 #define MV_XOR_REGS_OFFSET(unit) (0x60900) argument
17 #define MV_XOR_REGS_BASE(unit) (MV_XOR_REGS_OFFSET(unit)) argument
20 #define XOR_CHANNEL_ARBITER_REG(unit) (MV_XOR_REGS_BASE(unit)) argument
21 #define XOR_CONFIG_REG(unit, chan) (MV_XOR_REGS_BASE(unit) + (0x10 + ((chan) * 4))) argument
22 #define XOR_ACTIVATION_REG(unit, chan) (MV_XOR_REGS_BASE(unit) + (0x20 + ((chan) * 4))) argument
25 #define XOR_CAUSE_REG(unit) (MV_XOR_REGS_BASE(unit) + 0x30) argument
26 #define XOR_MASK_REG(unit) (MV_XOR_REGS_BASE(unit) + 0x40) argument
27 #define XOR_ERROR_CAUSE_REG(unit) (MV_XOR_REGS_BASE(unit) + 0x50) argument
28 #define XOR_ERROR_ADDR_REG(unit) (MV_XOR_REGS_BASE(unit) + 0x60) argument
31 #define XOR_NEXT_DESC_PTR_REG(unit, chan) (MV_XOR_REGS_BASE(unit) + (0x200 + ((chan) * 4))) argument
[all …]
/openbmc/linux/drivers/s390/scsi/
H A Dzfcp_unit.c22 void zfcp_unit_scsi_scan(struct zfcp_unit *unit) in zfcp_unit_scsi_scan() argument
24 struct fc_rport *rport = unit->port->rport; in zfcp_unit_scsi_scan()
27 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_scsi_scan()
36 struct zfcp_unit *unit = container_of(work, struct zfcp_unit, in zfcp_unit_scsi_scan_work() local
39 zfcp_unit_scsi_scan(unit); in zfcp_unit_scsi_scan_work()
40 put_device(&unit->dev); in zfcp_unit_scsi_scan_work()
55 struct zfcp_unit *unit; in zfcp_unit_queue_scsi_scan() local
58 list_for_each_entry(unit, &port->unit_list, list) { in zfcp_unit_queue_scsi_scan()
59 get_device(&unit->dev); in zfcp_unit_queue_scsi_scan()
61 &unit->scsi_work) <= 0) in zfcp_unit_queue_scsi_scan()
[all …]
/openbmc/qemu/hw/timer/
H A Dgrlib_gptimer.c70 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()
184 GPTimerUnit *unit = opaque; in grlib_gptimer_read() local
[all …]
/openbmc/u-boot/drivers/ddr/marvell/a38x/
H A Dxor_regs.h16 #define MV_XOR_REGS_OFFSET(unit) (0x60900) argument
17 #define MV_XOR_REGS_BASE(unit) (MV_XOR_REGS_OFFSET(unit)) argument
20 #define XOR_CHANNEL_ARBITER_REG(unit) (MV_XOR_REGS_BASE(unit)) argument
21 #define XOR_CONFIG_REG(unit, chan) (MV_XOR_REGS_BASE(unit) + \ argument
23 #define XOR_ACTIVATION_REG(unit, chan) (MV_XOR_REGS_BASE(unit) + \ argument
27 #define XOR_CAUSE_REG(unit) (MV_XOR_REGS_BASE(unit)+(0x30)) argument
28 #define XOR_MASK_REG(unit) (MV_XOR_REGS_BASE(unit)+(0x40)) argument
29 #define XOR_ERROR_CAUSE_REG(unit) (MV_XOR_REGS_BASE(unit)+(0x50)) argument
30 #define XOR_ERROR_ADDR_REG(unit) (MV_XOR_REGS_BASE(unit)+(0x60)) argument
33 #define XOR_NEXT_DESC_PTR_REG(unit, chan) (MV_XOR_REGS_BASE(unit) + \ argument
[all …]
/openbmc/linux/drivers/char/xillybus/
H A Dxillybus_class.c58 struct xilly_unit *unit, *u; in xillybus_init_chrdev() local
60 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in xillybus_init_chrdev()
62 if (!unit) in xillybus_init_chrdev()
68 snprintf(unit->name, UNITNAMELEN, "%s", prefix); in xillybus_init_chrdev()
71 snprintf(unit->name, UNITNAMELEN, "%s_%02d", in xillybus_init_chrdev()
76 if (!strcmp(unit->name, u->name)) { in xillybus_init_chrdev()
82 rc = alloc_chrdev_region(&mdev, 0, num_nodes, unit->name); in xillybus_init_chrdev()
89 unit->major = MAJOR(mdev); in xillybus_init_chrdev()
90 unit->lowest_minor = MINOR(mdev); in xillybus_init_chrdev()
91 unit->num_nodes = num_nodes; in xillybus_init_chrdev()
[all …]
/openbmc/linux/arch/mips/include/asm/
H A Dmips-cps.h17 #define CPS_ACCESSOR_A(unit, off, name) \ argument
18 static inline void *addr_##unit##_##name(void) \
20 return mips_##unit##_base + (off); \
23 #define CPS_ACCESSOR_R(unit, sz, name) \ argument
24 static inline uint##sz##_t read_##unit##_##name(void) \
30 return __raw_readl(addr_##unit##_##name()); \
34 return __raw_readq(addr_##unit##_##name()); \
36 val64 = __raw_readl(addr_##unit##_##name() + 4); \
38 val64 |= __raw_readl(addr_##unit##_##name()); \
46 #define CPS_ACCESSOR_W(unit, sz, name) \ argument
[all …]
/openbmc/linux/sound/
H A Dsound_core.c212 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit) in __sound_remove_unit() argument
217 if(p->unit_minor==unit) in __sound_remove_unit()
224 printk(KERN_ERR "Sound device %d went missing!\n", unit); in __sound_remove_unit()
295 static void sound_remove_unit(struct sound_unit **list, int unit) in sound_remove_unit() argument
300 p = __sound_remove_unit(list, unit); in sound_remove_unit()
347 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument
350 const int chain = unit % SOUND_STEP; in register_sound_special_device()
361 if (unit >= SOUND_STEP) in register_sound_special_device()
363 max_unit = unit + 1; in register_sound_special_device()
379 if (unit >= SOUND_STEP) in register_sound_special_device()
[all …]
/openbmc/linux/drivers/block/
H A Damiflop.c264 static struct amiga_floppy_struct unit[FD_MAX_UNITS]; variable
406 if (unit[drive].track % 2 != 0) in fd_select()
408 if (unit[drive].motor == 1) in fd_select()
461 if (!unit[nr].motor) { in fd_motor_on()
462 unit[nr].motor = 1; in fd_motor_on()
500 unit[drive].motor = 0; in fd_motor_off()
528 for (n = unit[drive].type->tracks/2; n != 0; --n) { in fd_calibrate()
536 ms_delay(unit[drive].type->step_delay); in fd_calibrate()
538 ms_delay (unit[drive].type->settle_time); in fd_calibrate()
540 n = unit[drive].type->tracks + 20; in fd_calibrate()
[all …]
/openbmc/linux/drivers/clk/mmp/
H A Dreset.c15 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_of_reset_xlate() local
23 cell = &unit->cells[i]; in mmp_of_reset_xlate()
37 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_assert() local
42 cell = &unit->cells[id]; in mmp_clk_reset_assert()
59 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_deassert() local
64 cell = &unit->cells[id]; in mmp_clk_reset_deassert()
86 struct mmp_clk_reset_unit *unit; in mmp_clk_reset_register() local
88 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in mmp_clk_reset_register()
89 if (!unit) in mmp_clk_reset_register()
92 unit->cells = cells; in mmp_clk_reset_register()
[all …]
H A Dclk.c10 void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit, in mmp_clk_init() argument
19 unit->clk_table = clk_table; in mmp_clk_init()
20 unit->nr_clks = nr_clks; in mmp_clk_init()
21 unit->clk_data.clks = clk_table; in mmp_clk_init()
22 unit->clk_data.clk_num = nr_clks; in mmp_clk_init()
23 of_clk_add_provider(np, of_clk_src_onecell_get, &unit->clk_data); in mmp_clk_init()
26 void mmp_register_fixed_rate_clks(struct mmp_clk_unit *unit, in mmp_register_fixed_rate_clks() argument
44 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_rate_clks()
48 void mmp_register_fixed_factor_clks(struct mmp_clk_unit *unit, in mmp_register_fixed_factor_clks() argument
66 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_factor_clks()
[all …]
/openbmc/openbmc/meta-phosphor/classes/
H A Dobmc-phosphor-dbus-service.bbclass36 def make_default_dbus_config(d, unit, user):
37 bus = unit.base
38 if unit.is_template:
43 with open('%s/%s.conf' % (path, unit.base), 'w+') as fd:
55 def make_default_dbus_activation(d, unit, user):
56 dest = unit.base
57 sd_unit = unit.name
58 if unit.is_instance:
59 dest = '%s.%s' % (unit.base, unit.instance)
60 sd_unit = '%s@%s' % (unit.base, unit.instance)
[all …]
/openbmc/linux/arch/powerpc/perf/
H A Dpower5-pmu.c141 int pmc, byte, unit, sh; in power5_get_constraint() local
159 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_get_constraint()
160 if (unit > PM_LASTUNIT) in power5_get_constraint()
162 if (unit == PM_ISU0_ALT) in power5_get_constraint()
163 unit = PM_ISU0; in power5_get_constraint()
164 mask |= unit_cons[unit][0]; in power5_get_constraint()
165 value |= unit_cons[unit][1]; in power5_get_constraint()
168 if (unit != PM_LSU1) in power5_get_constraint()
171 ++unit; in power5_get_constraint()
174 if (unit == PM_GRS) { in power5_get_constraint()
[all …]
H A Dpower5+-pmu.c137 int pmc, byte, unit, sh; in power5p_get_constraint() local
152 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_get_constraint()
153 if (unit > PM_LASTUNIT) in power5p_get_constraint()
155 if (unit == PM_ISU0_ALT) in power5p_get_constraint()
156 unit = PM_ISU0; in power5p_get_constraint()
157 mask |= unit_cons[unit][0]; in power5p_get_constraint()
158 value |= unit_cons[unit][1]; in power5p_get_constraint()
161 if (unit != PM_LSU1) in power5p_get_constraint()
164 ++unit; in power5p_get_constraint()
167 if (unit == PM_GRS) { in power5p_get_constraint()
[all …]
H A Dppc970-pmu.c147 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local
165 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_marked_instr_event()
167 switch (unit) { in p970_marked_instr_event()
195 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local
208 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_get_constraint()
209 if (unit) { in p970_get_constraint()
210 if (unit > PM_LASTUNIT) in p970_get_constraint()
212 mask |= unit_cons[unit][0]; in p970_get_constraint()
213 value |= unit_cons[unit][1]; in p970_get_constraint()
223 value |= (unsigned long)unit << (28 - 4 * byte); in p970_get_constraint()
[all …]
/openbmc/linux/arch/x86/events/intel/
H A Duncore_discovery.c79 add_uncore_discovery_type(struct uncore_unit_discovery *unit) in add_uncore_discovery_type() argument
83 if (unit->access_type >= UNCORE_ACCESS_MAX) { in add_uncore_discovery_type()
84 pr_warn("Unsupported access type %d\n", unit->access_type); in add_uncore_discovery_type()
96 type->access_type = unit->access_type; in add_uncore_discovery_type()
98 type->type = unit->box_type; in add_uncore_discovery_type()
112 get_uncore_discovery_type(struct uncore_unit_discovery *unit) in get_uncore_discovery_type() argument
116 type = search_uncore_discovery_type(unit->box_type); in get_uncore_discovery_type()
120 return add_uncore_discovery_type(unit); in get_uncore_discovery_type()
124 uncore_insert_box_info(struct uncore_unit_discovery *unit, in uncore_insert_box_info() argument
131 if (!unit->ctl || !unit->ctl_offset || !unit->ctr_offset) { in uncore_insert_box_info()
[all …]
/openbmc/linux/include/net/
H A DSpace.h6 struct net_device *ultra_probe(int unit);
7 struct net_device *wd_probe(int unit);
8 struct net_device *ne_probe(int unit);
9 struct net_device *smc_init(int unit);
10 struct net_device *cs89x0_probe(int unit);
11 struct net_device *tc515_probe(int unit);
12 struct net_device *lance_probe(int unit);
13 struct net_device *cops_probe(int unit);
/openbmc/linux/sound/firewire/bebob/
H A Dbebob.h85 struct fw_unit *unit; member
122 snd_bebob_read_block(struct fw_unit *unit, u64 addr, void *buf, int size) in snd_bebob_read_block() argument
124 return snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, in snd_bebob_read_block()
130 snd_bebob_read_quad(struct fw_unit *unit, u64 addr, u32 *buf) in snd_bebob_read_quad() argument
132 return snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, in snd_bebob_read_quad()
138 int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id,
140 int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id,
174 enum avc_bridgeco_plug_unit unit, in avc_bridgeco_fill_unit_addr() argument
180 buf[3] = unit; in avc_bridgeco_fill_unit_addr()
196 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit,
[all …]
H A Dbebob.c70 struct fw_device *fw_dev = fw_parent_device(bebob->unit); in name_device()
85 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, in name_device()
91 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, in name_device()
97 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, in name_device()
103 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, in name_device()
114 data[0], data[1], dev_name(&bebob->unit->device), in name_device()
132 fw_unit_put(bebob->unit); in bebob_card_free()
136 get_saffire_spec(struct fw_unit *unit) in get_saffire_spec() argument
140 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in get_saffire_spec()
150 check_audiophile_booted(struct fw_unit *unit) in check_audiophile_booted() argument
[all …]
/openbmc/linux/tools/perf/util/
H A Dunits.c36 double convert_unit_double(double value, char *unit) in convert_unit_double() argument
38 *unit = ' '; in convert_unit_double()
42 *unit = 'K'; in convert_unit_double()
47 *unit = 'M'; in convert_unit_double()
52 *unit = 'G'; in convert_unit_double()
58 unsigned long convert_unit(unsigned long value, char *unit) in convert_unit() argument
60 double v = convert_unit_double((double)value, unit); in convert_unit()
67 char unit[4] = "BKMG"; in unit_number__scnprintf() local
75 return scnprintf(buf, size, "%" PRIu64 "%c", n, unit[i]); in unit_number__scnprintf()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/systemd/systemd-systemctl/
H A Dsystemctl163 def __init__(self, path, unit): argument
165 self.unit = unit
169 def __init__(self, root, unit): argument
171 self.unit = unit
174 def _path_for_unit(self, unit): argument
176 path = self.root / location / "system" / unit
180 raise SystemdUnitNotFoundError(self.root, unit)
197 template = re.match(r"[^@]+@(?P<instance>[^\.]*)\.", self.unit)
200 unit = re.sub(r"@[^\.]*\.", "@.", self.unit, 1)
203 unit = self.unit
[all …]
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/
H A Dfirmware_json_unittest.cpp32 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
36 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
60 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
64 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
89 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
93 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
118 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
122 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
143 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
147 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
[all …]
/openbmc/linux/drivers/ata/
H A Dpata_it821x.c159 int unit = adev->devno; in it821x_program_udma() local
168 pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf); in it821x_program_udma()
189 u8 unit = adev->devno; in it821x_clock_strategy() local
232 if (pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy()
233 it821x_program_udma(ap, pair, itdev->udma[1-unit]); in it821x_clock_strategy()
234 it821x_program(ap, pair, itdev->pio[1-unit]); in it821x_clock_strategy()
240 if (itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy()
241 it821x_program_udma(ap, adev, itdev->udma[unit]); in it821x_clock_strategy()
242 it821x_program(ap, adev, itdev->pio[unit]); in it821x_clock_strategy()
262 int unit = adev->devno; in it821x_passthru_set_piomode() local
[all …]
/openbmc/linux/sound/firewire/digi00x/
H A Ddigi00x.c21 struct fw_device *fw_dev = fw_parent_device(dg00x->unit); in name_card()
26 err = fw_csr_string(dg00x->unit->directory, CSR_MODEL, name, in name_card()
39 dev_name(&dg00x->unit->device), 100 << fw_dev->max_speed); in name_card()
52 fw_unit_put(dg00x->unit); in dg00x_card_free()
55 static int snd_dg00x_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry) in snd_dg00x_probe() argument
61 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, sizeof(*dg00x), &card); in snd_dg00x_probe()
67 dg00x->unit = fw_unit_get(unit); in snd_dg00x_probe()
68 dev_set_drvdata(&unit->device, dg00x); in snd_dg00x_probe()
113 static void snd_dg00x_update(struct fw_unit *unit) in snd_dg00x_update() argument
115 struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); in snd_dg00x_update()
[all …]
/openbmc/linux/sound/firewire/oxfw/
H A Doxfw.c45 static bool detect_loud_models(struct fw_unit *unit) in detect_loud_models() argument
56 err = fw_csr_string(unit->directory, CSR_MODEL, in detect_loud_models()
66 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card()
81 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card()
86 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, in name_card()
115 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); in name_card()
128 fw_unit_put(oxfw->unit); in oxfw_card_free()
133 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in detect_quirks()
208 static int oxfw_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry) in oxfw_probe() argument
214 if (entry->vendor_id == VENDOR_LOUD && entry->model_id == 0 && !detect_loud_models(unit)) in oxfw_probe()
[all …]
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd-systemctl/
H A Dsystemctl179 def __init__(self, path, unit): argument
181 self.unit = unit
185 def __init__(self, root, unit, unit_type): argument
187 self.unit = unit
191 def _path_for_unit(self, unit): argument
193 path = self.root / location / self.unit_type / unit
197 raise SystemdUnitNotFoundError(self.root, unit)
216 template = re.match(r"[^@]+@(?P<instance>[^\.]*)\.", self.unit)
221 instance_unit_name = self.unit
222 unit = re.sub(r"@[^\.]*\.", "@.", self.unit, 1)
[all …]

12345678910>>...52