| /linux/drivers/s390/scsi/ |
| H A D | zfcp_unit.c | 22 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/drivers/char/xillybus/ |
| H A D | xillybus_class.c | 58 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/drivers/power/sequencing/ |
| H A D | core.c | 91 struct pwrseq_unit *unit; in pwrseq_unit_new() local 93 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in pwrseq_unit_new() 94 if (!unit) in pwrseq_unit_new() 97 unit->name = kstrdup_const(data->name, GFP_KERNEL); in pwrseq_unit_new() 98 if (!unit->name) { in pwrseq_unit_new() 99 kfree(unit); in pwrseq_unit_new() 103 kref_init(&unit->ref); in pwrseq_unit_new() 104 INIT_LIST_HEAD(&unit->deps); in pwrseq_unit_new() 105 unit->enable = data->enable; in pwrseq_unit_new() 106 unit->disable = data->disable; in pwrseq_unit_new() [all …]
|
| /linux/sound/ |
| H A D | sound_core.c | 212 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/arch/x86/events/intel/ |
| H A D | uncore_discovery.c | 80 add_uncore_discovery_type(struct uncore_unit_discovery *unit) in add_uncore_discovery_type() argument 84 if (unit->access_type >= UNCORE_ACCESS_MAX) { in add_uncore_discovery_type() 85 pr_warn("Unsupported access type %d\n", unit->access_type); in add_uncore_discovery_type() 95 type->access_type = unit->access_type; in add_uncore_discovery_type() 97 type->type = unit->box_type; in add_uncore_discovery_type() 105 get_uncore_discovery_type(struct uncore_unit_discovery *unit) in get_uncore_discovery_type() argument 109 type = search_uncore_discovery_type(unit->box_type); in get_uncore_discovery_type() 113 return add_uncore_discovery_type(unit); in get_uncore_discovery_type() 118 struct intel_uncore_discovery_unit *unit; in pmu_idx_cmp() local 121 unit = rb_entry(b, struct intel_uncore_discovery_unit, node); in pmu_idx_cmp() [all …]
|
| /linux/drivers/clk/mmp/ |
| H A D | reset.c | 15 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 D | clk.c | 10 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 …]
|
| 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() 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 …]
|
| H A D | clk-of-pxa910.c | 50 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 …]
|
| H A D | clk-of-mmp2.c | 89 struct mmp_clk_unit unit; member 182 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_main_clk_init() local 184 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in mmp2_main_clk_init() 188 mmp_register_pll_clks(unit, mmp3_pll_clks, in mmp2_main_clk_init() 192 mmp_register_pll_clks(unit, pll_clks, in mmp2_main_clk_init() 197 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in mmp2_main_clk_init() 205 mmp_clk_add(unit, MMP2_CLK_UART_PLL, clk); in mmp2_main_clk_init() 218 mmp_register_gate_clks(unit, mpmu_gate_clks, pxa_unit->mpmu_base, in mmp2_main_clk_init() 285 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_apb_periph_clk_init() local 287 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in mmp2_apb_periph_clk_init() [all …]
|
| /linux/arch/powerpc/perf/ |
| H A D | power5-pmu.c | 141 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 D | power5+-pmu.c | 137 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 D | ppc970-pmu.c | 147 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/sound/firewire/bebob/ |
| H A D | bebob.h | 85 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 D | bebob_command.c | 10 int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id, in avc_audio_set_selector() argument 30 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_set_selector() 48 int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id, in avc_audio_get_selector() argument 68 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_get_selector() 109 int avc_bridgeco_get_plug_type(struct fw_unit *unit, in avc_bridgeco_get_plug_type() argument 123 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_type() 146 int avc_bridgeco_get_plug_ch_count(struct fw_unit *unit, u8 addr[AVC_BRIDGECO_ADDR_BYTES], in avc_bridgeco_get_plug_ch_count() argument 159 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_ch_count() 182 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, in avc_bridgeco_get_plug_ch_pos() argument 191 err = fcp_avc_transaction(unit, buf, 12, buf, 256, in avc_bridgeco_get_plug_ch_pos() [all …]
|
| /linux/mm/ |
| H A D | shrinker.c | 23 struct shrinker_info_unit **unit; in shrinker_unit_free() local 29 unit = info->unit; in shrinker_unit_free() 33 if (!unit[i]) in shrinker_unit_free() 36 kfree(unit[i]); in shrinker_unit_free() 37 unit[i] = NULL; in shrinker_unit_free() 44 struct shrinker_info_unit *unit; in shrinker_unit_alloc() local 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() 137 memcpy(new->unit, old->unit, old_size); in expand_one_shrinker_info() [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[] = "BKMG"; in unit_number__scnprintf() local 75 return scnprintf(buf, size, "%" PRIu64 "%c", n, unit[i]); in unit_number__scnprintf()
|
| /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/drivers/ata/ |
| H A D | pata_it821x.c | 160 int unit = adev->devno; in it821x_program_udma() local 169 pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf); in it821x_program_udma() 190 u8 unit = adev->devno; in it821x_clock_strategy() local 233 if (pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy() 234 it821x_program_udma(ap, pair, itdev->udma[1-unit]); in it821x_clock_strategy() 235 it821x_program(ap, pair, itdev->pio[1-unit]); in it821x_clock_strategy() 241 if (itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy() 242 it821x_program_udma(ap, adev, itdev->udma[unit]); in it821x_clock_strategy() 243 it821x_program(ap, adev, itdev->pio[unit]); in it821x_clock_strategy() 263 int unit = adev->devno; in it821x_passthru_set_piomode() local [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 = {{ 498 .unit = {{ 544 .unit = {{ [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() 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/Documentation/devicetree/bindings/powerpc/fsl/ |
| H A D | srio-rmu.txt | 1 Message unit node: 3 For SRIO controllers that implement the message unit as part of the controller 5 node is composed of three types of sub-nodes ("fsl-srio-msg-unit", 6 "fsl-srio-dbell-unit" and "fsl-srio-port-write-unit"). 33 (msg-unit, doorbell, port-write). 44 Definition: Must include "fsl,srio-msg-unit-vX.Y", "fsl,srio-msg-unit". 74 "fsl,srio-dbell-unit-vX.Y", "fsl,srio-dbell-unit" 104 "fsl,srio-port-write-unit-vX.Y", "fsl,srio-port-write-unit" 137 message-unit@0 { 138 compatible = "fsl,srio-msg-unit"; [all …]
|
| /linux/sound/firewire/fireface/ |
| H A D | ff.c | 18 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() 49 fw_unit_put(ff->unit); in ff_card_free() 52 static int snd_ff_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry) in snd_ff_probe() argument 58 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, sizeof(*ff), &card); in snd_ff_probe() 64 ff->unit = fw_unit_get(unit); in snd_ff_probe() 65 dev_set_drvdata(&unit->device, ff); in snd_ff_probe() 117 static void snd_ff_update(struct fw_unit *unit) in snd_ff_update() argument 119 struct snd_ff *ff = dev_get_drvdata(&unit->device); in snd_ff_update() 126 static void snd_ff_remove(struct fw_unit *unit) in snd_ff_remove() argument [all …]
|
| /linux/drivers/sh/maple/ |
| H A D | maple.c | 56 int unit; member 207 mdev->port, mdev->unit); in maple_allocq() 211 static struct maple_device *maple_alloc_dev(int port, int unit) in maple_alloc_dev() argument 223 mdev->unit = unit; in maple_alloc_dev() 249 int port, unit, from, to, len; in maple_build_block() local 253 unit = mq->dev->unit; in maple_build_block() 256 to = (port << 6) | (unit > 0 ? (1 << (unit - 1)) & 0x1f : 0x20); in maple_build_block() 366 mdev->product_name, function, mdev->port, mdev->unit); in maple_attach_driver() 384 mdev->unit, function); in maple_attach_driver() 394 " (%d, %d), with error 0x%X\n", mdev->unit, in maple_attach_driver() [all …]
|
| /linux/sound/firewire/oxfw/ |
| H A D | oxfw.h | 66 struct fw_unit *unit; member 99 int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, 101 int avc_stream_get_format(struct fw_unit *unit, 105 avc_stream_get_format_single(struct fw_unit *unit, in avc_stream_get_format_single() argument 109 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); in avc_stream_get_format_single() 112 avc_stream_get_format_list(struct fw_unit *unit, in avc_stream_get_format_list() argument 117 return avc_stream_get_format(unit, dir, pid, buf, len, eid); in avc_stream_get_format_list() 124 int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate,
|