/linux-6.3-rc2/drivers/s390/scsi/ |
A D | zfcp_unit.c | 40 put_device(&unit->dev); in zfcp_unit_scsi_scan_work() 74 return unit; in _zfcp_unit_find() 98 return unit; in zfcp_unit_find() 110 kfree(unit); in zfcp_unit_release() 134 if (unit) { in zfcp_unit_add() 141 if (!unit) { in zfcp_unit_add() 146 unit->port = port; in zfcp_unit_add() 155 kfree(unit); in zfcp_unit_add() 202 port = unit->port; in zfcp_unit_sdev() 245 if (unit) in zfcp_unit_remove() [all …]
|
/linux-6.3-rc2/drivers/char/xillybus/ |
A D | xillybus_class.c | 58 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in xillybus_init_chrdev() 60 if (!unit) in xillybus_init_chrdev() 100 rc = cdev_add(unit->cdev, MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev() 161 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev() 167 kfree(unit); in xillybus_init_chrdev() 183 unit = iter; in xillybus_cleanup_chrdev() 187 if (!unit) { in xillybus_cleanup_chrdev() 194 minor < (unit->lowest_minor + unit->num_nodes); in xillybus_cleanup_chrdev() 207 kfree(unit); in xillybus_cleanup_chrdev() 226 unit = iter; in xillybus_find_inode() [all …]
|
/linux-6.3-rc2/arch/mips/include/asm/ |
A D | mips-cps.h | 20 return mips_##unit##_base + (off); \ 61 addr_##unit##_##name() + 4); \ 78 write_##unit##_##name(reg_val); \ 88 change_##unit##_##name(val, 0); \ 92 CPS_ACCESSOR_A(unit, off, name) \ 93 CPS_ACCESSOR_R(unit, sz, name) 96 CPS_ACCESSOR_A(unit, off, name) \ 97 CPS_ACCESSOR_W(unit, sz, name) 101 CPS_ACCESSOR_R(unit, sz, name) \ 102 CPS_ACCESSOR_W(unit, sz, name) \ [all …]
|
/linux-6.3-rc2/sound/ |
A D | sound_core.c | 216 if(p->unit_minor==unit) in __sound_remove_unit() 360 if (unit >= SOUND_STEP) in register_sound_special_device() 362 max_unit = unit + 1; in register_sound_special_device() 378 if (unit >= SOUND_STEP) in register_sound_special_device() 380 max_unit = unit + 1; in register_sound_special_device() 480 sound_remove_unit(&chains[unit % SOUND_STEP], unit); in unregister_sound_special() 525 if(s->unit_minor==unit) in __look_for_unit() 535 int unit = iminor(inode); in soundcore_open() local 539 chain=unit&0x0F; in soundcore_open() 542 unit&=0xF0; in soundcore_open() [all …]
|
/linux-6.3-rc2/include/net/ |
A D | Space.h | 6 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 *ni65_probe(int unit); 12 struct net_device *sonic_probe(int unit); 13 struct net_device *smc_init(int unit); 15 struct net_device *tc515_probe(int unit); 16 struct net_device *lance_probe(int unit); [all …]
|
/linux-6.3-rc2/drivers/block/ |
A D | amiflop.c | 733 if ((ulong)unit[drive].track >= unit[drive].type->precomp2) in raw_write() 735 else if ((ulong)unit[drive].track >= unit[drive].type->precomp1) in raw_write() 1188 if (hdr.track != unit[drive].track/unit[drive].type->heads) { in dos_read() 1191 unit[drive].track/unit[drive].type->heads); in dos_read() 1195 if (hdr.side != unit[drive].track%unit[drive].type->heads) { in dos_read() 1198 unit[drive].track%unit[drive].type->heads); in dos_read() 1288 hdr.track=unit[drive].track/unit[drive].type->heads; in ms_putsec() 1289 hdr.side=unit[drive].track%unit[drive].type->heads; in ms_putsec() 1701 unit[drive].blocks=unit[drive].type->heads*unit[drive].type->tracks* in floppy_open() 1703 set_capacity(unit[drive].gendisk[system], unit[drive].blocks); in floppy_open() [all …]
|
/linux-6.3-rc2/drivers/clk/mmp/ |
A D | reset.c | 23 cell = &unit->cells[i]; in mmp_of_reset_xlate() 42 cell = &unit->cells[id]; in mmp_clk_reset_assert() 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() 93 unit->rcdev.of_reset_n_cells = 1; in mmp_clk_reset_register() 94 unit->rcdev.nr_resets = nr_resets; in mmp_clk_reset_register() 95 unit->rcdev.ops = &mmp_clk_reset_ops; in mmp_clk_reset_register() [all …]
|
A D | clk.c | 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() 44 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_rate_clks() 66 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_factor_clks() 92 unit->clk_table[clks[i].id] = clk; in mmp_register_general_gate_clks() 120 unit->clk_table[clks[i].id] = clk; in mmp_register_gate_clks() 148 unit->clk_table[clks[i].id] = clk; in mmp_register_mux_clks() 186 if (id >= unit->nr_clks) { in mmp_clk_add() [all …]
|
A D | clk-of-pxa1928.c | 26 struct mmp_clk_unit unit; member 68 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_pll_init() local 70 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa1928_pll_init() 73 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa1928_pll_init() 129 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_apb_periph_clk_init() local 131 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa1928_apb_periph_clk_init() 168 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_axi_periph_clk_init() local 170 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init() 173 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init() 238 mmp_clk_init(np, &pxa_unit->unit, PXA1928_APMU_NR_CLKS); in pxa1928_apmu_clk_init() [all …]
|
A D | clk-of-pxa910.c | 48 struct mmp_clk_unit unit; member 94 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_pll_init() local 96 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa910_pll_init() 99 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa910_pll_init() 107 mmp_clk_add(unit, PXA910_CLK_UART_PLL, clk); in pxa910_pll_init() 164 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_apb_periph_clk_init() local 166 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init() 219 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_axi_periph_clk_init() local 221 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa910_axi_periph_clk_init() 224 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, in pxa910_axi_periph_clk_init() [all …]
|
/linux-6.3-rc2/arch/powerpc/perf/ |
A D | power5-pmu.c | 163 unit = PM_ISU0; 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() 342 int bit, byte, unit; in power5_marked_instr_event() local 424 unit = PM_ISU0; in power5_compute_mmcr() 428 ++unit; in power5_compute_mmcr() 436 unituse[unit] = 1; in power5_compute_mmcr() 476 if (!unit) in power5_compute_mmcr() 480 unit = PM_ISU0_ALT; in power5_compute_mmcr() [all …]
|
A D | power5+-pmu.c | 156 unit = PM_ISU0; 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() 406 int bit, byte, unit; in power5p_marked_instr_event() local 488 unit = PM_ISU0; in power5p_compute_mmcr() 492 ++unit; in power5p_compute_mmcr() 498 unituse[unit] = 1; in power5p_compute_mmcr() 536 if (!unit) in power5p_compute_mmcr() 540 unit = PM_ISU0_ALT; in power5p_compute_mmcr() [all …]
|
A D | ppc970-pmu.c | 167 switch (unit) { in p970_marked_instr_event() 209 if (unit) { in p970_get_constraint() 210 if (unit > PM_LASTUNIT) in p970_get_constraint() 293 if (unit) { in p970_compute_mmcr() 300 busbyte[byte] = unit; in p970_compute_mmcr() 301 unituse[unit] = 1; in p970_compute_mmcr() 331 unit = busbyte[byte]; in p970_compute_mmcr() 332 if (!unit) in p970_compute_mmcr() 334 if (unit <= PM_STS) in p970_compute_mmcr() 356 if (unit) in p970_compute_mmcr() [all …]
|
/linux-6.3-rc2/arch/x86/events/intel/ |
A D | uncore_discovery.c | 98 type->type = unit->box_type; in add_uncore_discovery_type() 131 if (!unit->ctl || !unit->ctl_offset || !unit->ctr_offset) { in uncore_insert_box_info() 134 unit->box_type, unit->box_id); in uncore_insert_box_info() 143 unit->box_type); in uncore_insert_box_info() 166 type->box_ctrl = unit->ctl; in uncore_insert_box_info() 172 *ids = unit->box_id; in uncore_insert_box_info() 180 if (unit->box_id == ids[i]) { in uncore_insert_box_info() 183 unit->box_type, unit->box_id); in uncore_insert_box_info() 187 ids[i] = unit->box_id; in uncore_insert_box_info() 214 if (unit->box_type == ignore[i]) in uncore_ignore_unit() [all …]
|
/linux-6.3-rc2/tools/perf/util/ |
A D | units.c | 36 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-6.3-rc2/sound/firewire/bebob/ |
A D | bebob.h | 85 struct fw_unit *unit; member 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() 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, 199 int avc_bridgeco_get_plug_type(struct fw_unit *unit, 207 int avc_bridgeco_get_plug_input(struct fw_unit *unit, 210 int avc_bridgeco_get_plug_strm_fmt(struct fw_unit *unit, [all …]
|
A D | bebob.c | 132 fw_unit_put(bebob->unit); in bebob_card_free() 136 get_saffire_spec(struct fw_unit *unit) in get_saffire_spec() argument 150 check_audiophile_booted(struct fw_unit *unit) in check_audiophile_booted() argument 194 spec = get_saffire_spec(unit); in bebob_probe() 197 !check_audiophile_booted(unit)) in bebob_probe() 205 return snd_bebob_maudio_load_firmware(unit); in bebob_probe() 231 bebob->unit = fw_unit_get(unit); in bebob_probe() 232 dev_set_drvdata(&unit->device, bebob); in bebob_probe() 319 bebob_update(struct fw_unit *unit) in bebob_update() argument 326 fcp_bus_reset(bebob->unit); in bebob_update() [all …]
|
/linux-6.3-rc2/sound/firewire/digi00x/ |
A D | digi00x.c | 21 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() 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() 124 static void snd_dg00x_remove(struct fw_unit *unit) in snd_dg00x_remove() argument [all …]
|
/linux-6.3-rc2/drivers/ata/ |
A D | pata_it821x.c | 159 int unit = adev->devno; in it821x_program_udma() local 189 u8 unit = adev->devno; in it821x_clock_strategy() local 240 if (itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy() 262 int unit = adev->devno; in it821x_passthru_set_piomode() local 268 itdev->pio[unit] = pio[mode_wanted]; in it821x_passthru_set_piomode() 295 int unit = adev->devno; in it821x_passthru_set_dmamode() local 303 itdev->mwdma[unit] = MWDMA_OFF; in it821x_passthru_set_dmamode() 323 itdev->udma[unit] = UDMA_OFF; in it821x_passthru_set_dmamode() 350 int unit = adev->devno; in it821x_passthru_bmdma_start() local 352 if (itdev->mwdma[unit] != MWDMA_OFF) in it821x_passthru_bmdma_start() [all …]
|
/linux-6.3-rc2/sound/firewire/oxfw/ |
A D | oxfw.c | 45 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() 128 fw_unit_put(oxfw->unit); in oxfw_card_free() 133 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in detect_quirks() 223 oxfw->unit = fw_unit_get(unit); in oxfw_probe() 224 dev_set_drvdata(&unit->device, oxfw); in oxfw_probe() 273 static void oxfw_bus_reset(struct fw_unit *unit) in oxfw_bus_reset() argument 277 fcp_bus_reset(oxfw->unit); in oxfw_bus_reset() [all …]
|
/linux-6.3-rc2/sound/firewire/tascam/ |
A D | tascam.c | 46 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 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() 166 static void snd_tscm_remove(struct fw_unit *unit) in snd_tscm_remove() argument [all …]
|
/linux-6.3-rc2/sound/firewire/ |
A D | iso-resources.c | 26 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-6.3-rc2/drivers/media/pci/saa7164/ |
A D | saa7164-cards.c | 50 .unit = {{ 96 .unit = {{ 142 .unit = {{ 202 .unit = {{ 262 .unit = {{ 322 .unit = {{ 382 .unit = {{ 438 .unit = {{ 877 unit = &saa7164_boards[dev->board].unit[i]; in saa7164_i2caddr_to_unitid() 904 unit = &saa7164_boards[dev->board].unit[i]; in saa7164_i2caddr_to_reglen() [all …]
|
/linux-6.3-rc2/sound/firewire/motu/ |
A D | motu.c | 30 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() 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() 143 static void motu_bus_update(struct fw_unit *unit) in motu_bus_update() argument [all …]
|
/linux-6.3-rc2/drivers/char/hw_random/ |
A D | n2-drv.c | 110 unsigned long unit) in n2rng_generic_read_control_v2() argument 167 watchdog_timeout, 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 229 hv_err = n2rng_read_diag_data_one(np, unit, in n2rng_generic_read_diag_data() 251 unsigned long unit, in n2rng_generic_write_control() argument 591 &np->units[unit].control[0], in n2rng_control_selftest() 616 int unit, err; in n2rng_control_configure_units() local 619 for (unit = 0; unit < np->num_units; unit++) { in n2rng_control_configure_units() [all …]
|