Home
last modified time | relevance | path

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

12345678910>>...33

/Linux-v6.6/drivers/s390/scsi/
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 …]
/Linux-v6.6/drivers/char/xillybus/
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 …]
/Linux-v6.6/arch/mips/include/asm/
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 …]
/Linux-v6.6/sound/
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 …]
/Linux-v6.6/drivers/block/
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 …]
/Linux-v6.6/drivers/clk/mmp/
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 …]
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 …]
Dclk-of-pxa1928.c29 struct mmp_clk_unit unit; member
71 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_pll_init() local
73 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa1928_pll_init()
76 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa1928_pll_init()
132 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_apb_periph_clk_init() local
134 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa1928_apb_periph_clk_init()
137 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa1928_apb_periph_clk_init()
171 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_axi_periph_clk_init() local
173 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init()
176 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init()
[all …]
Dclk-of-pxa910.c50 struct mmp_clk_unit unit; member
96 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_pll_init() local
98 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa910_pll_init()
101 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa910_pll_init()
109 mmp_clk_add(unit, PXA910_CLK_UART_PLL, clk); in pxa910_pll_init()
166 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_apb_periph_clk_init() local
168 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init()
171 mmp_register_mux_clks(unit, apbcp_mux_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init()
174 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init()
177 mmp_register_gate_clks(unit, apbcp_gate_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init()
[all …]
/Linux-v6.6/arch/powerpc/perf/
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 …]
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 …]
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 …]
/Linux-v6.6/include/net/
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);
/Linux-v6.6/arch/x86/events/intel/
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 …]
/Linux-v6.6/tools/perf/util/
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()
/Linux-v6.6/sound/firewire/bebob/
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 …]
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 …]
/Linux-v6.6/drivers/ata/
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 …]
/Linux-v6.6/sound/firewire/digi00x/
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 …]
/Linux-v6.6/sound/firewire/oxfw/
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 …]
/Linux-v6.6/sound/firewire/tascam/
Dtascam.c46 struct fw_device *fw_dev = fw_parent_device(tscm->unit); in identify_model()
53 dev_err(&tscm->unit->device, in identify_model()
82 dev_name(&tscm->unit->device), 100 << fw_dev->max_speed); in identify_model()
95 fw_unit_put(tscm->unit); in tscm_card_free()
98 static int snd_tscm_probe(struct fw_unit *unit, in snd_tscm_probe() argument
105 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, sizeof(*tscm), &card); in snd_tscm_probe()
111 tscm->unit = fw_unit_get(unit); in snd_tscm_probe()
112 dev_set_drvdata(&unit->device, tscm); in snd_tscm_probe()
155 static void snd_tscm_update(struct fw_unit *unit) in snd_tscm_update() argument
157 struct snd_tscm *tscm = dev_get_drvdata(&unit->device); in snd_tscm_update()
[all …]
/Linux-v6.6/drivers/media/pci/saa7164/
Dsaa7164-cards.c50 .unit = {{
96 .unit = {{
142 .unit = {{
202 .unit = {{
262 .unit = {{
322 .unit = {{
382 .unit = {{
438 .unit = {{
498 .unit = {{
544 .unit = {{
[all …]
/Linux-v6.6/sound/firewire/
Diso-resources.c26 int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) in fw_iso_resources_init() argument
29 r->unit = unit; in fw_iso_resources_init()
108 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_allocate()
140 dev_err(&r->unit->device, in fw_iso_resources_allocate()
143 dev_err(&r->unit->device, in fw_iso_resources_allocate()
166 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_update()
192 dev_err(&r->unit->device, in fw_iso_resources_update()
195 dev_err(&r->unit->device, in fw_iso_resources_update()
217 if (r->unit == NULL) in fw_iso_resources_free()
219 card = fw_parent_device(r->unit)->card; in fw_iso_resources_free()
[all …]
/Linux-v6.6/sound/firewire/motu/
Dmotu.c30 struct fw_device *fw_dev = fw_parent_device(motu->unit); in name_card()
35 fw_csr_iterator_init(&it, motu->unit->directory); in name_card()
51 dev_name(&motu->unit->device), 100 << fw_dev->max_speed); in name_card()
62 fw_unit_put(motu->unit); in motu_card_free()
65 static int motu_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry) in motu_probe() argument
71 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, sizeof(*motu), &card); in motu_probe()
77 motu->unit = fw_unit_get(unit); in motu_probe()
78 dev_set_drvdata(&unit->device, motu); in motu_probe()
135 static void motu_remove(struct fw_unit *unit) in motu_remove() argument
137 struct snd_motu *motu = dev_get_drvdata(&unit->device); in motu_remove()
[all …]
/Linux-v6.6/drivers/char/hw_random/
Dn2-drv.c110 unsigned long unit) in n2rng_generic_read_control_v2() argument
116 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, in n2rng_generic_read_control_v2()
147 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument
151 return n2rng_generic_read_control_v2(ra, unit); in n2rng_control_settle_v2()
154 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument
167 watchdog_timeout, unit); in n2rng_write_ctl_one()
169 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one()
202 unsigned long unit, in n2rng_read_diag_data_one() argument
213 unit, ticks); in n2rng_read_diag_data_one()
221 unsigned long unit, in n2rng_generic_read_diag_data() argument
[all …]

12345678910>>...33