Home
last modified time | relevance | path

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

12345678910>>...32

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dmips-cps.h16 #define CPS_ACCESSOR_A(unit, off, name) \ argument
17 static inline void *addr_##unit##_##name(void) \
19 return mips_##unit##_base + (off); \
22 #define CPS_ACCESSOR_R(unit, sz, name) \ argument
23 static inline uint##sz##_t read_##unit##_##name(void) \
29 return __raw_readl(addr_##unit##_##name()); \
33 return __raw_readq(addr_##unit##_##name()); \
35 val64 = __raw_readl(addr_##unit##_##name() + 4); \
37 val64 |= __raw_readl(addr_##unit##_##name()); \
45 #define CPS_ACCESSOR_W(unit, sz, name) \ argument
[all …]
/kernel/linux/linux-5.10/include/net/
DSpace.h6 struct net_device *hp100_probe(int unit);
7 struct net_device *ultra_probe(int unit);
8 struct net_device *wd_probe(int unit);
9 struct net_device *ne_probe(int unit);
10 struct net_device *fmv18x_probe(int unit);
11 struct net_device *i82596_probe(int unit);
12 struct net_device *ni65_probe(int unit);
13 struct net_device *sonic_probe(int unit);
14 struct net_device *smc_init(int unit);
15 struct net_device *atarilance_probe(int unit);
[all …]
/kernel/linux/linux-5.10/sound/
Dsound_core.c215 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit) in __sound_remove_unit() argument
220 if(p->unit_minor==unit) in __sound_remove_unit()
227 printk(KERN_ERR "Sound device %d went missing!\n", unit); in __sound_remove_unit()
298 static void sound_remove_unit(struct sound_unit **list, int unit) in sound_remove_unit() argument
303 p = __sound_remove_unit(list, unit); in sound_remove_unit()
350 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument
353 const int chain = unit % SOUND_STEP; in register_sound_special_device()
364 if (unit >= SOUND_STEP) in register_sound_special_device()
366 max_unit = unit + 1; in register_sound_special_device()
382 if (unit >= SOUND_STEP) in register_sound_special_device()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
61 err = snd_card_new(&dg00x->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
103 dev_info(&dg00x->unit->device, in do_registration()
107 static int snd_dg00x_probe(struct fw_unit *unit, in snd_dg00x_probe() argument
113 dg00x = devm_kzalloc(&unit->device, sizeof(struct snd_dg00x), in snd_dg00x_probe()
118 dg00x->unit = fw_unit_get(unit); in snd_dg00x_probe()
119 dev_set_drvdata(&unit->device, dg00x); in snd_dg00x_probe()
129 snd_fw_schedule_registration(unit, &dg00x->dwork); in snd_dg00x_probe()
[all …]
/kernel/linux/linux-5.10/sound/firewire/bebob/
Dbebob.c72 struct fw_device *fw_dev = fw_parent_device(bebob->unit); in name_device()
88 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, in name_device()
94 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, in name_device()
100 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, in name_device()
106 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, in name_device()
111 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_BEBOB_VERSION, in name_device()
123 data[0], data[1], dev_name(&bebob->unit->device), in name_device()
142 get_saffire_spec(struct fw_unit *unit) in get_saffire_spec() argument
146 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in get_saffire_spec()
156 check_audiophile_booted(struct fw_unit *unit) in check_audiophile_booted() argument
[all …]
Dbebob.h80 struct fw_unit *unit; member
123 snd_bebob_read_block(struct fw_unit *unit, u64 addr, void *buf, int size) in snd_bebob_read_block() argument
125 return snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, in snd_bebob_read_block()
131 snd_bebob_read_quad(struct fw_unit *unit, u64 addr, u32 *buf) in snd_bebob_read_quad() argument
133 return snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, in snd_bebob_read_quad()
139 int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id,
141 int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id,
175 enum avc_bridgeco_plug_unit unit, in avc_bridgeco_fill_unit_addr() argument
181 buf[3] = unit; in avc_bridgeco_fill_unit_addr()
197 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit,
[all …]
Dbebob_stream.c71 err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, in snd_bebob_stream_get_rate()
79 err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, in snd_bebob_stream_get_rate()
90 err = avc_general_set_sig_fmt(bebob->unit, rx_rate, in snd_bebob_stream_get_rate()
101 err = avc_general_set_sig_fmt(bebob->unit, rate, in snd_bebob_stream_set_rate()
106 err = avc_general_set_sig_fmt(bebob->unit, rate, in snd_bebob_stream_set_rate()
133 dev_err(&bebob->unit->device, in snd_bebob_stream_get_clock_src()
139 dev_err(&bebob->unit->device, in snd_bebob_stream_get_clock_src()
165 err = avc_bridgeco_get_plug_input(bebob->unit, addr, input); in snd_bebob_stream_get_clock_src()
167 dev_err(&bebob->unit->device, in snd_bebob_stream_get_clock_src()
222 err = avc_bridgeco_get_plug_type(bebob->unit, addr, in snd_bebob_stream_get_clock_src()
[all …]
/kernel/linux/linux-5.10/drivers/ide/
Dit821x.c144 u8 unit = drive->dn & 1, conf; in it821x_program_udma() local
153 pci_write_config_byte(dev, 0x56 + 4 * channel + unit, conf); in it821x_program_udma()
175 u8 unit = drive->dn & 1, v; in it821x_clock_strategy() local
216 if(pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy()
217 it821x_program_udma(pair, itdev->udma[1-unit]); in it821x_clock_strategy()
218 it821x_program(pair, itdev->pio[1-unit]); in it821x_clock_strategy()
224 if(itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy()
225 it821x_program_udma(drive, itdev->udma[unit]); in it821x_clock_strategy()
226 it821x_program(drive, itdev->pio[unit]); in it821x_clock_strategy()
244 u8 unit = drive->dn & 1, set_pio = pio; in it821x_set_pio_mode() local
[all …]
/kernel/linux/linux-5.10/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()
70 err = snd_card_new(&motu->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
115 dev_info(&motu->unit->device, in do_registration()
119 static int motu_probe(struct fw_unit *unit, in motu_probe() argument
125 motu = devm_kzalloc(&unit->device, sizeof(struct snd_motu), GFP_KERNEL); in motu_probe()
128 motu->unit = fw_unit_get(unit); in motu_probe()
129 dev_set_drvdata(&unit->device, motu); in motu_probe()
138 snd_fw_schedule_registration(unit, &motu->dwork); in motu_probe()
[all …]
/kernel/linux/linux-5.10/sound/firewire/oxfw/
Doxfw.c42 static bool detect_loud_models(struct fw_unit *unit) in detect_loud_models() argument
55 err = fw_csr_string(unit->directory, CSR_MODEL, in detect_loud_models()
65 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card()
80 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card()
85 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, in name_card()
112 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); in name_card()
127 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in detect_quirks()
191 err = snd_card_new(&oxfw->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
239 dev_info(&oxfw->unit->device, in do_registration()
243 static int oxfw_probe(struct fw_unit *unit, in oxfw_probe() argument
[all …]
/kernel/linux/linux-5.10/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()
100 err = snd_card_new(&tscm->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
142 dev_info(&tscm->unit->device, in do_registration()
146 static int snd_tscm_probe(struct fw_unit *unit, in snd_tscm_probe() argument
152 tscm = devm_kzalloc(&unit->device, sizeof(struct snd_tscm), GFP_KERNEL); in snd_tscm_probe()
155 tscm->unit = fw_unit_get(unit); in snd_tscm_probe()
156 dev_set_drvdata(&unit->device, tscm); in snd_tscm_probe()
164 snd_fw_schedule_registration(unit, &tscm->dwork); in snd_tscm_probe()
[all …]
/kernel/linux/linux-5.10/drivers/block/paride/
Dpg.c245 int unit; in pg_init_units() local
248 for (unit = 0; unit < PG_UNITS; unit++) { in pg_init_units()
249 int *parm = *drives[unit]; in pg_init_units()
250 struct pg *dev = &devices[unit]; in pg_init_units()
257 snprintf(dev->name, PG_NAMELEN, "%s%c", name, 'a'+unit); in pg_init_units()
481 int k, unit; in pg_detect() local
503 for (unit = 0; unit < PG_UNITS; unit++, dev++) { in pg_detect()
504 int *parm = *drives[unit]; in pg_detect()
528 int unit = iminor(inode) & 0x7f; in pg_open() local
529 struct pg *dev = &devices[unit]; in pg_open()
[all …]
/kernel/linux/linux-5.10/sound/firewire/dice/
Ddice.c30 static int check_dice_category(struct fw_unit *unit) in check_dice_category() argument
32 struct fw_device *device = fw_parent_device(unit); in check_dice_category()
43 fw_csr_iterator_init(&it, unit->directory); in check_dice_category()
95 struct fw_device *dev = fw_parent_device(dice->unit); in dice_card_strings()
118 fw_csr_string(dice->unit->directory, CSR_MODEL, model, sizeof(model)); in dice_card_strings()
122 dev_name(&dice->unit->device), 100 << dev->max_speed); in dice_card_strings()
143 err = snd_card_new(&dice->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
191 dev_info(&dice->unit->device, in do_registration()
195 static int dice_probe(struct fw_unit *unit, in dice_probe() argument
202 err = check_dice_category(unit); in dice_probe()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/sound/firewire/fireface/
Dff.c18 struct fw_device *fw_dev = fw_parent_device(ff->unit); in name_card()
36 dev_name(&ff->unit->device), 100 << fw_dev->max_speed); in name_card()
55 err = snd_card_new(&ff->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
95 dev_info(&ff->unit->device, in do_registration()
99 static int snd_ff_probe(struct fw_unit *unit, in snd_ff_probe() argument
104 ff = devm_kzalloc(&unit->device, sizeof(struct snd_ff), GFP_KERNEL); in snd_ff_probe()
107 ff->unit = fw_unit_get(unit); in snd_ff_probe()
108 dev_set_drvdata(&unit->device, ff); in snd_ff_probe()
119 snd_fw_schedule_registration(unit, &ff->dwork); in snd_ff_probe()
124 static void snd_ff_update(struct fw_unit *unit) in snd_ff_update() argument
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dunits.c36 unsigned long convert_unit(unsigned long value, char *unit) in convert_unit() argument
38 *unit = ' '; in convert_unit()
42 *unit = 'K'; in convert_unit()
47 *unit = 'M'; in convert_unit()
52 *unit = 'G'; in convert_unit()
60 char unit[4] = "BKMG"; in unit_number__scnprintf() local
68 return scnprintf(buf, size, "%" PRIu64 "%c", n, unit[i]); in unit_number__scnprintf()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]

12345678910>>...32