/linux/drivers/s390/scsi/ |
H 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/drivers/char/xillybus/ |
H A D | xillybus_class.c | 60 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in xillybus_init_chrdev() 62 if (!unit) in xillybus_init_chrdev() 102 rc = cdev_add(unit->cdev, MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev() 163 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev() 169 kfree(unit); in xillybus_init_chrdev() 185 unit = iter; in xillybus_cleanup_chrdev() 189 if (!unit) { in xillybus_cleanup_chrdev() 196 minor < (unit->lowest_minor + unit->num_nodes); in xillybus_cleanup_chrdev() 209 kfree(unit); in xillybus_cleanup_chrdev() 228 unit = iter; in xillybus_find_inode() [all …]
|
/linux/arch/mips/include/asm/ |
H 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/sound/ |
H A D | sound_core.c | 217 if(p->unit_minor==unit) in __sound_remove_unit() 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() 381 max_unit = unit + 1; in register_sound_special_device() 481 sound_remove_unit(&chains[unit % SOUND_STEP], unit); in unregister_sound_special() 526 if(s->unit_minor==unit) in __look_for_unit() 536 int unit = iminor(inode); in soundcore_open() local 540 chain=unit&0x0F; in soundcore_open() 543 unit&=0xF0; in soundcore_open() [all …]
|
/linux/drivers/block/ |
H 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() 1698 unit[drive].blocks=unit[drive].type->heads*unit[drive].type->tracks* in floppy_open() 1700 set_capacity(unit[drive].gendisk[system], unit[drive].blocks); in floppy_open() [all …]
|
/linux/drivers/clk/mmp/ |
H 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 …]
|
H 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 …]
|
H A D | clk-of-pxa1928.c | 29 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() 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() 241 mmp_clk_init(np, &pxa_unit->unit, APMU_NR_CLKS); in pxa1928_apmu_clk_init() [all …]
|
/linux/arch/powerpc/perf/ |
H 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 …]
|
H 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 …]
|
H 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/arch/x86/events/intel/ |
H A D | uncore_discovery.c | 98 type->type = unit->box_type; in add_uncore_discovery_type() 132 if (!unit->ctl || !unit->ctl_offset || !unit->ctr_offset) { in uncore_insert_box_info() 135 unit->box_type, unit->box_id); in uncore_insert_box_info() 144 unit->box_type); in uncore_insert_box_info() 167 type->box_ctrl = unit->ctl; in uncore_insert_box_info() 173 *ids = unit->box_id; in uncore_insert_box_info() 181 if (unit->box_id == ids[i]) { in uncore_insert_box_info() 184 unit->box_type, unit->box_id); in uncore_insert_box_info() 188 ids[i] = unit->box_id; in uncore_insert_box_info() 215 if (unit->box_type == ignore[i]) in uncore_ignore_unit() [all …]
|
/linux/tools/perf/util/ |
H 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/sound/firewire/bebob/ |
H 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 …]
|
H 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/include/net/ |
H A D | Space.h | 6 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);
|
/linux/mm/ |
H A D | shrinker.c | 29 unit = info->unit; in shrinker_unit_free() 33 if (!unit[i]) in shrinker_unit_free() 36 kfree(unit[i]); in shrinker_unit_free() 50 unit = kzalloc_node(sizeof(*unit), GFP_KERNEL, nid); in shrinker_unit_alloc() 51 if (!unit) { in shrinker_unit_alloc() 56 new->unit[i] = unit; in shrinker_unit_alloc() 135 memcpy(new->unit, old->unit, old_size); in expand_one_shrinker_info() 202 unit = info->unit[shrinker_id_to_index(shrinker_id)]; in set_shrinker_bit() 259 unit = info->unit[shrinker_id_to_index(shrinker->id)]; in xchg_nr_deferred_memcg() 275 unit = info->unit[shrinker_id_to_index(shrinker->id)]; in add_nr_deferred_memcg() [all …]
|
/linux/drivers/ata/ |
H 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/sound/firewire/digi00x/ |
H 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/sound/firewire/tascam/ |
H 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/sound/firewire/oxfw/ |
H A D | oxfw.c | 46 static bool detect_loud_models(struct fw_unit *unit) in detect_loud_models() argument 57 err = fw_csr_string(unit->directory, CSR_MODEL, in detect_loud_models() 67 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card() 82 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card() 129 fw_unit_put(oxfw->unit); in oxfw_card_free() 134 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in detect_quirks() 224 oxfw->unit = fw_unit_get(unit); in oxfw_probe() 225 dev_set_drvdata(&unit->device, oxfw); in oxfw_probe() 279 static void oxfw_bus_reset(struct fw_unit *unit) in oxfw_bus_reset() argument 283 fcp_bus_reset(oxfw->unit); in oxfw_bus_reset() [all …]
|
/linux/drivers/char/hw_random/ |
H A D | n2-drv.c | 111 unsigned long unit) in n2rng_generic_read_control_v2() argument 168 watchdog_timeout, unit); in n2rng_write_ctl_one() 203 unsigned long unit, in n2rng_read_diag_data_one() argument 214 unit, ticks); in n2rng_read_diag_data_one() 222 unsigned long unit, in n2rng_generic_read_diag_data() argument 230 hv_err = n2rng_read_diag_data_one(np, unit, in n2rng_generic_read_diag_data() 252 unsigned long unit, in n2rng_generic_write_control() argument 592 &np->units[unit].control[0], in n2rng_control_selftest() 617 int unit, err; in n2rng_control_configure_units() local 620 for (unit = 0; unit < np->num_units; unit++) { in n2rng_control_configure_units() [all …]
|
/linux/sound/firewire/ |
H 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/drivers/media/pci/saa7164/ |
H 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/sound/firewire/motu/ |
H 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 …]
|