unit 8 arch/alpha/include/asm/console.h extern long callback_puts(long unit, const char *s, long length); unit 9 arch/alpha/include/asm/console.h extern long callback_getc(long unit); unit 13 arch/alpha/include/asm/console.h extern long callback_close(long unit); unit 29 arch/alpha/include/asm/extable.h unsigned unit; unit 52 arch/alpha/include/asm/extable.h (a)->fixup.unit = (b)->fixup.unit; \ unit 53 arch/alpha/include/asm/extable.h (b)->fixup.unit = (tmp).fixup.unit; \ unit 90 arch/arm/mach-imx/mmdc.c PMU_EVENT_ATTR_STRING(read-bytes.unit, mmdc_pmu_read_bytes_unit, "MB"); unit 93 arch/arm/mach-imx/mmdc.c PMU_EVENT_ATTR_STRING(write-bytes.unit, mmdc_pmu_write_bytes_unit, "MB"); unit 268 arch/arm/mm/dump.c const char *unit = units; unit 277 arch/arm/mm/dump.c while (!(delta & 1023) && unit[1]) { unit 279 arch/arm/mm/dump.c unit++; unit 281 arch/arm/mm/dump.c pt_dump_seq_printf(st->seq, "%9lu%c", delta, *unit); unit 256 arch/arm64/mm/dump.c const char *unit = units; unit 266 arch/arm64/mm/dump.c while (!(delta & 1023) && unit[1]) { unit 268 arch/arm64/mm/dump.c unit++; unit 270 arch/arm64/mm/dump.c pt_dump_seq_printf(st->seq, "%9lu%c %s", delta, *unit, unit 570 arch/ia64/kernel/efi.c const char *unit; unit 579 arch/ia64/kernel/efi.c unit = "TB"; unit 582 arch/ia64/kernel/efi.c unit = "GB"; unit 585 arch/ia64/kernel/efi.c unit = "MB"; unit 588 arch/ia64/kernel/efi.c unit = "KB"; unit 595 arch/ia64/kernel/efi.c md->phys_addr + efi_md_size(md), size, unit); unit 189 arch/ia64/mm/discontig.c int node, prev_node, unit, nr_units; unit 204 arch/ia64/mm/discontig.c unit = 0; unit 208 arch/ia64/mm/discontig.c cpu_map[unit++] = cpu; unit 209 arch/ia64/mm/discontig.c nr_units = unit; unit 232 arch/ia64/mm/discontig.c for (unit = 0; unit < nr_units; unit++) { unit 233 arch/ia64/mm/discontig.c cpu = cpu_map[unit]; unit 245 arch/ia64/mm/discontig.c gi->cpu_map = &cpu_map[unit]; unit 185 arch/m68k/emu/nfeth.c static struct net_device * __init nfeth_probe(int unit) unit 192 arch/m68k/emu/nfeth.c if (!nf_call(nfEtherID + XIF_GET_MAC, unit, virt_to_phys(mac), unit 206 arch/m68k/emu/nfeth.c priv->ethX = unit; unit 214 arch/m68k/emu/nfeth.c nf_call(nfEtherID + XIF_GET_IPHOST, unit, unit 216 arch/m68k/emu/nfeth.c nf_call(nfEtherID + XIF_GET_IPATARI, unit, unit 158 arch/mips/alchemy/common/platform.c int unit; unit 160 arch/mips/alchemy/common/platform.c unit = (pdev->id == 1) ? unit 163 arch/mips/alchemy/common/platform.c return alchemy_usb_control(unit, 1); unit 169 arch/mips/alchemy/common/platform.c int unit; unit 171 arch/mips/alchemy/common/platform.c unit = (pdev->id == 1) ? unit 174 arch/mips/alchemy/common/platform.c alchemy_usb_control(unit, 0); unit 210 arch/mips/bcm63xx/dev-enet.c int __init bcm63xx_enet_register(int unit, unit 217 arch/mips/bcm63xx/dev-enet.c if (unit > 1) unit 220 arch/mips/bcm63xx/dev-enet.c if (unit == 1 && (BCMCPU_IS_6338() || BCMCPU_IS_6345())) unit 227 arch/mips/bcm63xx/dev-enet.c if (unit == 0) { unit 253 arch/mips/bcm63xx/dev-enet.c if (unit == 1) unit 276 arch/mips/bcm63xx/dev-enet.c if (unit == 0) { unit 102 arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h int __init bcm63xx_enet_register(int unit, unit 16 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_A(unit, off, name) \ unit 17 arch/mips/include/asm/mips-cps.h static inline void *addr_##unit##_##name(void) \ unit 19 arch/mips/include/asm/mips-cps.h return mips_##unit##_base + (off); \ unit 22 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_R(unit, sz, name) \ unit 23 arch/mips/include/asm/mips-cps.h static inline uint##sz##_t read_##unit##_##name(void) \ unit 29 arch/mips/include/asm/mips-cps.h return __raw_readl(addr_##unit##_##name()); \ unit 33 arch/mips/include/asm/mips-cps.h return __raw_readq(addr_##unit##_##name()); \ unit 35 arch/mips/include/asm/mips-cps.h val64 = __raw_readl(addr_##unit##_##name() + 4); \ unit 37 arch/mips/include/asm/mips-cps.h val64 |= __raw_readl(addr_##unit##_##name()); \ unit 45 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_W(unit, sz, name) \ unit 46 arch/mips/include/asm/mips-cps.h static inline void write_##unit##_##name(uint##sz##_t val) \ unit 50 arch/mips/include/asm/mips-cps.h __raw_writel(val, addr_##unit##_##name()); \ unit 55 arch/mips/include/asm/mips-cps.h __raw_writeq(val, addr_##unit##_##name()); \ unit 60 arch/mips/include/asm/mips-cps.h addr_##unit##_##name() + 4); \ unit 61 arch/mips/include/asm/mips-cps.h __raw_writel(val, addr_##unit##_##name()); \ unit 70 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_M(unit, sz, name) \ unit 71 arch/mips/include/asm/mips-cps.h static inline void change_##unit##_##name(uint##sz##_t mask, \ unit 74 arch/mips/include/asm/mips-cps.h uint##sz##_t reg_val = read_##unit##_##name(); \ unit 77 arch/mips/include/asm/mips-cps.h write_##unit##_##name(reg_val); \ unit 80 arch/mips/include/asm/mips-cps.h static inline void set_##unit##_##name(uint##sz##_t val) \ unit 82 arch/mips/include/asm/mips-cps.h change_##unit##_##name(val, val); \ unit 85 arch/mips/include/asm/mips-cps.h static inline void clear_##unit##_##name(uint##sz##_t val) \ unit 87 arch/mips/include/asm/mips-cps.h change_##unit##_##name(val, 0); \ unit 90 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_RO(unit, sz, off, name) \ unit 91 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_A(unit, off, name) \ unit 92 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_R(unit, sz, name) unit 94 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_WO(unit, sz, off, name) \ unit 95 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_A(unit, off, name) \ unit 96 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_W(unit, sz, name) unit 98 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_RW(unit, sz, off, name) \ unit 99 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_A(unit, off, name) \ unit 100 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_R(unit, sz, name) \ unit 101 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_W(unit, sz, name) \ unit 102 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_M(unit, sz, name) unit 223 arch/mips/include/asm/octeon/cvmx-cmd-queue.h int unit = queue_id >> 16; unit 226 arch/mips/include/asm/octeon/cvmx-cmd-queue.h return unit * 256 + core * 16 + q; unit 14 arch/mips/include/asm/sgi/wd.h unsigned int unit; unit 25 arch/mips/sgi-ip22/ip22-platform.c .unit = 0, unit 53 arch/mips/sgi-ip22/ip22-platform.c .unit = 1, unit 55 arch/powerpc/include/asm/imc-pmu.h char *unit; unit 145 arch/powerpc/mm/ptdump/hashpagetable.c const char *unit = units; unit 147 arch/powerpc/mm/ptdump/hashpagetable.c while (ps > 9 && unit[1]) { unit 149 arch/powerpc/mm/ptdump/hashpagetable.c unit++; unit 151 arch/powerpc/mm/ptdump/hashpagetable.c seq_printf(st->seq, " %s_ps: %i%c\t", s, 1<<ps, *unit); unit 149 arch/powerpc/mm/ptdump/ptdump.c const char *unit = units; unit 167 arch/powerpc/mm/ptdump/ptdump.c while (!(delta & 1023) && unit[1]) { unit 169 arch/powerpc/mm/ptdump/ptdump.c unit++; unit 171 arch/powerpc/mm/ptdump/ptdump.c pt_dump_seq_printf(st->seq, "%9lu%c", delta, *unit); unit 40 arch/powerpc/oprofile/op_model_power4.c u64 psel, unit; unit 53 arch/powerpc/oprofile/op_model_power4.c unit = mmcr1 & (OPROFILE_PM_UNIT_MSK unit 56 arch/powerpc/oprofile/op_model_power4.c unit = unit >> (OPROFILE_PM_UNIT_SHIFT unit 78 arch/powerpc/oprofile/op_model_power4.c cntr_marked_events |= (unit == 0xd) << pmc; unit 85 arch/powerpc/oprofile/op_model_power4.c cntr_marked_events |= (unit == 0xd) << pmc; unit 68 arch/powerpc/perf/generic-compat-pmu.c PMU_FORMAT_ATTR(unit, "config:12-15"); unit 141 arch/powerpc/perf/imc-pmu.c const char *unit, const char *prefix, unit 169 arch/powerpc/perf/imc-pmu.c s = unit; unit 172 arch/powerpc/perf/imc-pmu.c event->unit = kstrdup(s, GFP_KERNEL); unit 173 arch/powerpc/perf/imc-pmu.c if (!event->unit) unit 179 arch/powerpc/perf/imc-pmu.c kfree(event->unit); unit 197 arch/powerpc/perf/imc-pmu.c kfree(events[i].unit); unit 298 arch/powerpc/perf/imc-pmu.c if (pmu->events[i].unit) { unit 300 arch/powerpc/perf/imc-pmu.c dev_str = device_str_attr_create(ev_unit_str, pmu->events[i].unit); unit 15 arch/powerpc/perf/isa207-common.c PMU_FORMAT_ATTR(unit, "config:12-15"); unit 244 arch/powerpc/perf/isa207-common.c unsigned int unit, pmc, cache, ebb; unit 253 arch/powerpc/perf/isa207-common.c unit = (event >> EVENT_UNIT_SHIFT) & EVENT_UNIT_MASK; unit 285 arch/powerpc/perf/isa207-common.c if (unit >= 6 && unit <= 9) { unit 369 arch/powerpc/perf/isa207-common.c unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; unit 387 arch/powerpc/perf/isa207-common.c unit = (event[i] >> EVENT_UNIT_SHIFT) & EVENT_UNIT_MASK; unit 401 arch/powerpc/perf/isa207-common.c mmcr1 |= unit << MMCR1_UNIT_SHIFT(pmc); unit 135 arch/powerpc/perf/power5+-pmu.c int pmc, byte, unit, sh; unit 150 arch/powerpc/perf/power5+-pmu.c unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; unit 151 arch/powerpc/perf/power5+-pmu.c if (unit > PM_LASTUNIT) unit 153 arch/powerpc/perf/power5+-pmu.c if (unit == PM_ISU0_ALT) unit 154 arch/powerpc/perf/power5+-pmu.c unit = PM_ISU0; unit 155 arch/powerpc/perf/power5+-pmu.c mask |= unit_cons[unit][0]; unit 156 arch/powerpc/perf/power5+-pmu.c value |= unit_cons[unit][1]; unit 159 arch/powerpc/perf/power5+-pmu.c if (unit != PM_LSU1) unit 162 arch/powerpc/perf/power5+-pmu.c ++unit; unit 165 arch/powerpc/perf/power5+-pmu.c if (unit == PM_GRS) { unit 175 arch/powerpc/perf/power5+-pmu.c value |= (unsigned long)unit << (24 - 4 * byte); unit 404 arch/powerpc/perf/power5+-pmu.c int bit, byte, unit; unit 436 arch/powerpc/perf/power5+-pmu.c unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; unit 437 arch/powerpc/perf/power5+-pmu.c if (unit == PM_LSU0) { unit 440 arch/powerpc/perf/power5+-pmu.c } else if (unit == PM_LSU1 && byte >= 4) { unit 455 arch/powerpc/perf/power5+-pmu.c unsigned int pmc, unit, byte, psel; unit 479 arch/powerpc/perf/power5+-pmu.c unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; unit 481 arch/powerpc/perf/power5+-pmu.c if (unit > PM_LASTUNIT) unit 483 arch/powerpc/perf/power5+-pmu.c if (unit == PM_ISU0_ALT) unit 484 arch/powerpc/perf/power5+-pmu.c unit = PM_ISU0; unit 486 arch/powerpc/perf/power5+-pmu.c if (unit != PM_LSU1) unit 488 arch/powerpc/perf/power5+-pmu.c ++unit; unit 491 arch/powerpc/perf/power5+-pmu.c if (busbyte[byte] && busbyte[byte] != unit) unit 493 arch/powerpc/perf/power5+-pmu.c busbyte[byte] = unit; unit 494 arch/powerpc/perf/power5+-pmu.c unituse[unit] = 1; unit 531 arch/powerpc/perf/power5+-pmu.c unit = busbyte[byte]; unit 532 arch/powerpc/perf/power5+-pmu.c if (!unit) unit 534 arch/powerpc/perf/power5+-pmu.c if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) { unit 536 arch/powerpc/perf/power5+-pmu.c unit = PM_ISU0_ALT; unit 537 arch/powerpc/perf/power5+-pmu.c } else if (unit == PM_LSU1 + 1) { unit 541 arch/powerpc/perf/power5+-pmu.c ttm = unit >> 2; unit 549 arch/powerpc/perf/power5+-pmu.c unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; unit 573 arch/powerpc/perf/power5+-pmu.c if (isbus && unit == PM_GRS) { unit 139 arch/powerpc/perf/power5-pmu.c int pmc, byte, unit, sh; unit 157 arch/powerpc/perf/power5-pmu.c unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; unit 158 arch/powerpc/perf/power5-pmu.c if (unit > PM_LASTUNIT) unit 160 arch/powerpc/perf/power5-pmu.c if (unit == PM_ISU0_ALT) unit 161 arch/powerpc/perf/power5-pmu.c unit = PM_ISU0; unit 162 arch/powerpc/perf/power5-pmu.c mask |= unit_cons[unit][0]; unit 163 arch/powerpc/perf/power5-pmu.c value |= unit_cons[unit][1]; unit 166 arch/powerpc/perf/power5-pmu.c if (unit != PM_LSU1) unit 169 arch/powerpc/perf/power5-pmu.c ++unit; unit 172 arch/powerpc/perf/power5-pmu.c if (unit == PM_GRS) { unit 188 arch/powerpc/perf/power5-pmu.c value |= (unsigned long)unit << (24 - 4 * byte); unit 340 arch/powerpc/perf/power5-pmu.c int bit, byte, unit; unit 367 arch/powerpc/perf/power5-pmu.c unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; unit 368 arch/powerpc/perf/power5-pmu.c if (unit == PM_LSU0) { unit 371 arch/powerpc/perf/power5-pmu.c } else if (unit == PM_LSU1 && byte >= 4) { unit 386 arch/powerpc/perf/power5-pmu.c unsigned int pmc, unit, byte, psel; unit 415 arch/powerpc/perf/power5-pmu.c unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; unit 417 arch/powerpc/perf/power5-pmu.c if (unit > PM_LASTUNIT) unit 419 arch/powerpc/perf/power5-pmu.c if (unit == PM_ISU0_ALT) unit 420 arch/powerpc/perf/power5-pmu.c unit = PM_ISU0; unit 422 arch/powerpc/perf/power5-pmu.c if (unit != PM_LSU1) unit 424 arch/powerpc/perf/power5-pmu.c ++unit; unit 429 arch/powerpc/perf/power5-pmu.c if (busbyte[byte] && busbyte[byte] != unit) unit 431 arch/powerpc/perf/power5-pmu.c busbyte[byte] = unit; unit 432 arch/powerpc/perf/power5-pmu.c unituse[unit] = 1; unit 471 arch/powerpc/perf/power5-pmu.c unit = busbyte[byte]; unit 472 arch/powerpc/perf/power5-pmu.c if (!unit) unit 474 arch/powerpc/perf/power5-pmu.c if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) { unit 476 arch/powerpc/perf/power5-pmu.c unit = PM_ISU0_ALT; unit 477 arch/powerpc/perf/power5-pmu.c } else if (unit == PM_LSU1 + 1) { unit 481 arch/powerpc/perf/power5-pmu.c ttm = unit >> 2; unit 489 arch/powerpc/perf/power5-pmu.c unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; unit 518 arch/powerpc/perf/power5-pmu.c if (isbus && unit == PM_GRS) { unit 138 arch/powerpc/perf/power6-pmu.c int bit, byte, unit; unit 165 arch/powerpc/perf/power6-pmu.c unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; unit 166 arch/powerpc/perf/power6-pmu.c mask = marked_bus_events[unit]; unit 84 arch/powerpc/perf/power7-pmu.c int pmc, sh, unit; unit 103 arch/powerpc/perf/power7-pmu.c unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; unit 104 arch/powerpc/perf/power7-pmu.c if (unit == 6) { unit 214 arch/powerpc/perf/power7-pmu.c int unit; unit 217 arch/powerpc/perf/power7-pmu.c unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; unit 233 arch/powerpc/perf/power7-pmu.c return unit == 0xd; unit 239 arch/powerpc/perf/power7-pmu.c return unit == 0xd; unit 249 arch/powerpc/perf/power7-pmu.c unsigned int pmc, unit, combine, l2sel, psel; unit 268 arch/powerpc/perf/power7-pmu.c unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; unit 286 arch/powerpc/perf/power7-pmu.c mmcr1 |= (unsigned long) unit unit 291 arch/powerpc/perf/power7-pmu.c if (unit == 6) /* L2 events */ unit 215 arch/powerpc/perf/power9-pmu.c PMU_FORMAT_ATTR(unit, "config:12-15"); unit 145 arch/powerpc/perf/ppc970-pmu.c int pmc, psel, unit, byte, bit; unit 163 arch/powerpc/perf/ppc970-pmu.c unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; unit 165 arch/powerpc/perf/ppc970-pmu.c switch (unit) { unit 193 arch/powerpc/perf/ppc970-pmu.c int pmc, byte, unit, sh, spcsel; unit 206 arch/powerpc/perf/ppc970-pmu.c unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; unit 207 arch/powerpc/perf/ppc970-pmu.c if (unit) { unit 208 arch/powerpc/perf/ppc970-pmu.c if (unit > PM_LASTUNIT) unit 210 arch/powerpc/perf/ppc970-pmu.c mask |= unit_cons[unit][0]; unit 211 arch/powerpc/perf/ppc970-pmu.c value |= unit_cons[unit][1]; unit 221 arch/powerpc/perf/ppc970-pmu.c value |= (unsigned long)unit << (28 - 4 * byte); unit 259 arch/powerpc/perf/ppc970-pmu.c unsigned int pmc, unit, byte, psel; unit 287 arch/powerpc/perf/ppc970-pmu.c unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; unit 289 arch/powerpc/perf/ppc970-pmu.c if (unit) { unit 290 arch/powerpc/perf/ppc970-pmu.c if (unit > PM_LASTUNIT) unit 294 arch/powerpc/perf/ppc970-pmu.c if (busbyte[byte] && busbyte[byte] != unit) unit 296 arch/powerpc/perf/ppc970-pmu.c busbyte[byte] = unit; unit 297 arch/powerpc/perf/ppc970-pmu.c unituse[unit] = 1; unit 327 arch/powerpc/perf/ppc970-pmu.c unit = busbyte[byte]; unit 328 arch/powerpc/perf/ppc970-pmu.c if (!unit) unit 330 arch/powerpc/perf/ppc970-pmu.c if (unit <= PM_STS) unit 331 arch/powerpc/perf/ppc970-pmu.c ttm = (unitmap[unit] >> 2) & 1; unit 332 arch/powerpc/perf/ppc970-pmu.c else if (unit == PM_LSU0) unit 336 arch/powerpc/perf/ppc970-pmu.c if (unit == PM_LSU1L && byte >= 2) unit 347 arch/powerpc/perf/ppc970-pmu.c unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; unit 352 arch/powerpc/perf/ppc970-pmu.c if (unit) unit 360 arch/powerpc/perf/ppc970-pmu.c if (unit) { unit 51 arch/powerpc/platforms/cell/interrupt.c unsigned char unit = bits.source & 0xf; unit 59 arch/powerpc/platforms/cell/interrupt.c return (node << IIC_IRQ_NODE_SHIFT) | (class << 4) | unit; unit 236 arch/powerpc/platforms/cell/interrupt.c unsigned int node, ext, unit, class; unit 251 arch/powerpc/platforms/cell/interrupt.c unit = intspec[0] & 0xff; unit 259 arch/powerpc/platforms/cell/interrupt.c if (unit == IIC_UNIT_IIC && class == 1) unit 263 arch/powerpc/platforms/cell/interrupt.c (class << IIC_IRQ_CLASS_SHIFT) | unit; unit 219 arch/powerpc/platforms/cell/spider-pic.c int imaplen, intsize, unit; unit 251 arch/powerpc/platforms/cell/spider-pic.c unit = imap[intsize - 1]; unit 270 arch/powerpc/platforms/cell/spider-pic.c unit); unit 210 arch/s390/include/uapi/asm/dasd.h unsigned int unit; /* Track that is in error */ unit 72 arch/s390/mm/dump_pagetables.c const char *unit = units; unit 97 arch/s390/mm/dump_pagetables.c while (!(delta & 0x3ff) && unit[1]) { unit 99 arch/s390/mm/dump_pagetables.c unit++; unit 101 arch/s390/mm/dump_pagetables.c seq_printf(m, "%9lu%c ", delta, *unit); unit 868 arch/um/drivers/ubd_kern.c static int ubd_disk_register(int major, u64 size, int unit, unit 879 arch/um/drivers/ubd_kern.c disk->first_minor = unit << UBD_SHIFT; unit 883 arch/um/drivers/ubd_kern.c sprintf(disk->disk_name, "ubd%c", 'a' + unit); unit 885 arch/um/drivers/ubd_kern.c sprintf(disk->disk_name, "ubd_fake%d", unit); unit 889 arch/um/drivers/ubd_kern.c ubd_devs[unit].pdev.id = unit; unit 890 arch/um/drivers/ubd_kern.c ubd_devs[unit].pdev.name = DRIVER_NAME; unit 891 arch/um/drivers/ubd_kern.c ubd_devs[unit].pdev.dev.release = ubd_device_release; unit 892 arch/um/drivers/ubd_kern.c dev_set_drvdata(&ubd_devs[unit].pdev.dev, &ubd_devs[unit]); unit 893 arch/um/drivers/ubd_kern.c platform_device_register(&ubd_devs[unit].pdev); unit 894 arch/um/drivers/ubd_kern.c parent = &ubd_devs[unit].pdev.dev; unit 897 arch/um/drivers/ubd_kern.c disk->private_data = &ubd_devs[unit]; unit 898 arch/um/drivers/ubd_kern.c disk->queue = ubd_devs[unit].queue; unit 49 arch/um/drivers/vector_kern.c int unit; unit 57 arch/um/drivers/vector_kern.c int unit; unit 682 arch/um/drivers/vector_kern.c if (device->unit == n) unit 1199 arch/um/drivers/vector_kern.c vp->fds = uml_vector_user_open(vp->unit, vp->parsed); unit 1283 arch/um/drivers/vector_kern.c vdevice = find_device(vp->unit); unit 1480 arch/um/drivers/vector_kern.c device->unit = n; unit 1509 arch/um/drivers/vector_kern.c .unit = n, unit 1585 arch/um/drivers/vector_kern.c vector_eth_configure(def->unit, parsed); unit 1613 arch/um/drivers/vector_kern.c new->unit = n; unit 73 arch/um/drivers/vector_kern.h int unit; unit 558 arch/um/drivers/vector_user.c int unit, unit 565 arch/um/drivers/vector_user.c printk(UM_KERN_ERR "no parsed config for unit %d\n", unit); unit 570 arch/um/drivers/vector_user.c printk(UM_KERN_ERR "missing transport for unit %d\n", unit); unit 75 arch/um/drivers/vector_user.h int unit, unit 173 arch/x86/events/amd/power.c EVENT_ATTR_STR(power-pkg.unit, power_pkg_unit, "mWatts"); unit 404 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-cores.unit, rapl_cores_unit, "Joules"); unit 405 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-pkg.unit , rapl_pkg_unit, "Joules"); unit 406 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-ram.unit , rapl_ram_unit, "Joules"); unit 407 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-gpu.unit , rapl_gpu_unit, "Joules"); unit 408 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-psys.unit, rapl_psys_unit, "Joules"); unit 371 arch/x86/events/intel/uncore_snb.c INTEL_UNCORE_EVENT_DESC(data_reads.unit, "MiB"), unit 375 arch/x86/events/intel/uncore_snb.c INTEL_UNCORE_EVENT_DESC(data_writes.unit, "MiB"), unit 654 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(cas_count_read.unit, "MiB"), unit 657 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(cas_count_write.unit, "MiB"), unit 2785 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(cas_count_read.unit, "MiB"), unit 2788 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(cas_count_write.unit, "MiB"), unit 3615 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port0.unit, "MiB"), unit 3618 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port1.unit, "MiB"), unit 3621 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port2.unit, "MiB"), unit 3624 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port3.unit, "MiB"), unit 3627 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_out_port0.unit, "MiB"), unit 3630 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_out_port1.unit, "MiB"), unit 3633 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_out_port2.unit, "MiB"), unit 3636 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_out_port3.unit, "MiB"), unit 4228 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port0.unit, "MiB"), unit 4231 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port1.unit, "MiB"), unit 4234 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port2.unit, "MiB"), unit 4237 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port3.unit, "MiB"), unit 4240 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port4.unit, "MiB"), unit 4243 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port5.unit, "MiB"), unit 4246 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port6.unit, "MiB"), unit 4249 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(bw_in_port7.unit, "MiB"), unit 4469 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(cas_count_read.unit, "MiB"), unit 4472 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(cas_count_write.unit, "MiB"), unit 4511 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(read.unit, "MiB"), unit 4514 arch/x86/events/intel/uncore_snbep.c INTEL_UNCORE_EVENT_DESC(write.unit, "MiB"), unit 118 arch/x86/events/msr.c PMU_EVENT_ATTR_STRING(cpu_thermal_margin.unit, attr_therm_unit, "C" ); unit 186 arch/x86/kvm/mtrr.c static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) unit 191 arch/x86/kvm/mtrr.c *unit = 0; unit 195 arch/x86/kvm/mtrr.c *unit = array_index_nospec( unit 201 arch/x86/kvm/mtrr.c *unit = array_index_nospec( unit 212 arch/x86/kvm/mtrr.c static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) unit 217 arch/x86/kvm/mtrr.c *start = mtrr_seg->start + unit * unit_size; unit 222 arch/x86/kvm/mtrr.c static int fixed_mtrr_seg_unit_range_index(int seg, int unit) unit 226 arch/x86/kvm/mtrr.c WARN_ON(mtrr_seg->start + unit * fixed_mtrr_seg_unit_size(seg) unit 230 arch/x86/kvm/mtrr.c return mtrr_seg->range_start + 8 * unit; unit 244 arch/x86/kvm/mtrr.c int seg, unit; unit 246 arch/x86/kvm/mtrr.c if (!fixed_msr_to_seg_unit(msr, &seg, &unit)) unit 249 arch/x86/kvm/mtrr.c fixed_mtrr_seg_unit_range(seg, unit, start, end); unit 255 arch/x86/kvm/mtrr.c int seg, unit; unit 257 arch/x86/kvm/mtrr.c if (!fixed_msr_to_seg_unit(msr, &seg, &unit)) unit 260 arch/x86/kvm/mtrr.c return fixed_mtrr_seg_unit_range_index(seg, unit); unit 294 arch/x86/mm/dump_pagetables.c const char *unit = units; unit 312 arch/x86/mm/dump_pagetables.c while (!(delta & 1023) && unit[1]) { unit 314 arch/x86/mm/dump_pagetables.c unit++; unit 317 arch/x86/mm/dump_pagetables.c delta, *unit); unit 496 drivers/ata/libata-acpi.c int unit; unit 500 drivers/ata/libata-acpi.c unit = dev->devno; unit 502 drivers/ata/libata-acpi.c unit = 0; unit 505 drivers/ata/libata-acpi.c mode = ata_timing_cycle2mode(ATA_SHIFT_PIO, gtm->drive[unit].pio); unit 512 drivers/ata/libata-acpi.c if (!(gtm->flags & (1 << (2 * unit)))) unit 517 drivers/ata/libata-acpi.c mode = ata_timing_cycle2mode(type, gtm->drive[unit].dma); unit 3222 drivers/ata/libata-core.c #define ENOUGH(v, unit) (((v)-1)/(unit)+1) unit 3223 drivers/ata/libata-core.c #define EZ(v, unit) ((v)?ENOUGH(((v) * 1000), unit):0) unit 114 drivers/ata/pata_acpi.c int unit = adev->devno; unit 119 drivers/ata/pata_acpi.c unit = 0; unit 123 drivers/ata/pata_acpi.c acpi->gtm.drive[unit].pio = t->cycle; unit 137 drivers/ata/pata_acpi.c int unit = adev->devno; unit 142 drivers/ata/pata_acpi.c unit = 0; unit 147 drivers/ata/pata_acpi.c acpi->gtm.drive[unit].dma = t->udma; unit 148 drivers/ata/pata_acpi.c acpi->gtm.flags |= (1 << (2 * unit)); unit 150 drivers/ata/pata_acpi.c acpi->gtm.drive[unit].dma = t->cycle; unit 151 drivers/ata/pata_acpi.c acpi->gtm.flags &= ~(1 << (2 * unit)); unit 159 drivers/ata/pata_it821x.c int unit = adev->devno; unit 168 drivers/ata/pata_it821x.c pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf); unit 189 drivers/ata/pata_it821x.c u8 unit = adev->devno; unit 232 drivers/ata/pata_it821x.c if (pair && itdev->udma[1-unit] != UDMA_OFF) { unit 233 drivers/ata/pata_it821x.c it821x_program_udma(ap, pair, itdev->udma[1-unit]); unit 234 drivers/ata/pata_it821x.c it821x_program(ap, pair, itdev->pio[1-unit]); unit 240 drivers/ata/pata_it821x.c if (itdev->udma[unit] != UDMA_OFF) { unit 241 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); unit 242 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[unit]); unit 262 drivers/ata/pata_it821x.c int unit = adev->devno; unit 266 drivers/ata/pata_it821x.c itdev->want[unit][1] = pio_want[mode_wanted]; unit 267 drivers/ata/pata_it821x.c itdev->want[unit][0] = 1; /* PIO is lowest priority */ unit 268 drivers/ata/pata_it821x.c itdev->pio[unit] = pio[mode_wanted]; unit 270 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[unit]); unit 295 drivers/ata/pata_it821x.c int unit = adev->devno; unit 301 drivers/ata/pata_it821x.c itdev->want[unit][1] = udma_want[mode_wanted]; unit 302 drivers/ata/pata_it821x.c itdev->want[unit][0] = 3; /* UDMA is high priority */ unit 303 drivers/ata/pata_it821x.c itdev->mwdma[unit] = MWDMA_OFF; unit 304 drivers/ata/pata_it821x.c itdev->udma[unit] = udma[mode_wanted]; unit 306 drivers/ata/pata_it821x.c itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ unit 313 drivers/ata/pata_it821x.c conf &= ~ (1 << (3 + 2 * channel + unit)); unit 316 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); unit 320 drivers/ata/pata_it821x.c itdev->want[unit][1] = mwdma_want[mode_wanted]; unit 321 drivers/ata/pata_it821x.c itdev->want[unit][0] = 2; /* MWDMA is low priority */ unit 322 drivers/ata/pata_it821x.c itdev->mwdma[unit] = dma[mode_wanted]; unit 323 drivers/ata/pata_it821x.c itdev->udma[unit] = UDMA_OFF; unit 330 drivers/ata/pata_it821x.c conf |= 1 << (3 + 2 * channel + unit); unit 350 drivers/ata/pata_it821x.c int unit = adev->devno; unit 352 drivers/ata/pata_it821x.c if (itdev->mwdma[unit] != MWDMA_OFF) unit 353 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->mwdma[unit]); unit 354 drivers/ata/pata_it821x.c else if (itdev->udma[unit] != UDMA_OFF && itdev->timing10) unit 355 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); unit 373 drivers/ata/pata_it821x.c int unit = adev->devno; unit 376 drivers/ata/pata_it821x.c if (itdev->mwdma[unit] != MWDMA_OFF) unit 377 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[unit]); unit 56 drivers/ata/pata_ns87415.c int unit = 2 * ap->port_no + adev->devno; unit 57 drivers/ata/pata_ns87415.c int timing = 0x44 + 2 * unit; unit 77 drivers/ata/pata_ns87415.c iordy &= ~(1 << (4 + unit)); unit 79 drivers/ata/pata_ns87415.c iordy |= (1 << (4 + unit)); unit 207 drivers/ata/pata_optidma.c int unit = 2 * ap->port_no + adev->devno; unit 212 drivers/ata/pata_optidma.c udcfg &= ~(1 << unit); unit 215 drivers/ata/pata_optidma.c udcfg |= (1 << unit); unit 152 drivers/bcma/driver_mips.c u16 coreid, u8 unit) unit 156 drivers/bcma/driver_mips.c core = bcma_find_core_unit(bus, coreid, unit); unit 160 drivers/bcma/driver_mips.c coreid, unit); unit 87 drivers/bcma/main.c u8 unit) unit 92 drivers/bcma/main.c if (core->id.id == coreid && core->core_unit == unit) unit 264 drivers/block/amiflop.c static struct amiga_floppy_struct unit[FD_MAX_UNITS]; unit 406 drivers/block/amiflop.c if (unit[drive].track % 2 != 0) unit 408 drivers/block/amiflop.c if (unit[drive].motor == 1) unit 461 drivers/block/amiflop.c if (!unit[nr].motor) { unit 462 drivers/block/amiflop.c unit[nr].motor = 1; unit 500 drivers/block/amiflop.c unit[drive].motor = 0; unit 528 drivers/block/amiflop.c for (n = unit[drive].type->tracks/2; n != 0; --n) { unit 536 drivers/block/amiflop.c ms_delay(unit[drive].type->step_delay); unit 538 drivers/block/amiflop.c ms_delay (unit[drive].type->settle_time); unit 540 drivers/block/amiflop.c n = unit[drive].type->tracks + 20; unit 547 drivers/block/amiflop.c ms_delay(unit[drive].type->step_delay + 1); unit 553 drivers/block/amiflop.c unit[drive].track = -1; unit 558 drivers/block/amiflop.c unit[drive].track = 0; unit 559 drivers/block/amiflop.c ms_delay(unit[drive].type->settle_time); unit 576 drivers/block/amiflop.c if (unit[drive].track == track) { unit 584 drivers/block/amiflop.c if (unit[drive].track < 0 && !fd_calibrate(drive)) { unit 590 drivers/block/amiflop.c cnt = unit[drive].track/2 - track/2; unit 600 drivers/block/amiflop.c if (track % 2 != unit[drive].track % 2) unit 601 drivers/block/amiflop.c ms_delay (unit[drive].type->side_time); unit 602 drivers/block/amiflop.c unit[drive].track = track; unit 614 drivers/block/amiflop.c ms_delay (unit[drive].type->step_delay); unit 616 drivers/block/amiflop.c ms_delay (unit[drive].type->settle_time); unit 705 drivers/block/amiflop.c custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; unit 706 drivers/block/amiflop.c custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; unit 733 drivers/block/amiflop.c if ((ulong)unit[drive].track >= unit[drive].type->precomp2) unit 735 drivers/block/amiflop.c else if ((ulong)unit[drive].track >= unit[drive].type->precomp1) unit 741 drivers/block/amiflop.c custom.dsklen = unit[drive].type->write_size/sizeof(short) | DSKLEN_DMAEN|DSKLEN_WRITE; unit 742 drivers/block/amiflop.c custom.dsklen = unit[drive].type->write_size/sizeof(short) | DSKLEN_DMAEN|DSKLEN_WRITE; unit 762 drivers/block/amiflop.c unit[drive].dirty = 0; unit 845 drivers/block/amiflop.c end = raw + unit[drive].type->read_size; unit 847 drivers/block/amiflop.c for (scnt = 0;scnt < unit[drive].dtype->sects * unit[drive].type->sect_mult; scnt++) { unit 874 drivers/block/amiflop.c if (hdr.track != unit[drive].track) { unit 875 drivers/block/amiflop.c printk(KERN_INFO "MFM_TRACK: %d, %d\n", hdr.track, unit[drive].track); unit 879 drivers/block/amiflop.c raw = decode ((ulong *)(unit[drive].trackbuf + hdr.sect*512), unit 881 drivers/block/amiflop.c csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512); unit 888 drivers/block/amiflop.c ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[0], unit 889 drivers/block/amiflop.c ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[1], unit 890 drivers/block/amiflop.c ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[2], unit 891 drivers/block/amiflop.c ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[3]); unit 942 drivers/block/amiflop.c hdr.track = unit[disk].track; unit 944 drivers/block/amiflop.c hdr.ord = unit[disk].dtype->sects * unit[disk].type->sect_mult - cnt; unit 949 drivers/block/amiflop.c hdr.datachk = checksum((ulong *)(unit[disk].trackbuf+cnt*512), 512); unit 959 drivers/block/amiflop.c encode_block(raw, (ulong *)(unit[disk].trackbuf+cnt*512), 512); unit 972 drivers/block/amiflop.c for (cnt = 0; cnt < 415 * unit[disk].type->sect_mult; cnt++) unit 976 drivers/block/amiflop.c for (cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) unit 1160 drivers/block/amiflop.c end = raw + unit[drive].type->read_size; unit 1162 drivers/block/amiflop.c for (scnt=0; scnt < unit[drive].dtype->sects * unit[drive].type->sect_mult; scnt++) { unit 1167 drivers/block/amiflop.c unit[drive].track,drive,scnt); unit 1188 drivers/block/amiflop.c if (hdr.track != unit[drive].track/unit[drive].type->heads) { unit 1191 drivers/block/amiflop.c unit[drive].track/unit[drive].type->heads); unit 1195 drivers/block/amiflop.c if (hdr.side != unit[drive].track%unit[drive].type->heads) { unit 1198 drivers/block/amiflop.c unit[drive].track%unit[drive].type->heads); unit 1213 drivers/block/amiflop.c unit[drive].track, drive, scnt, hdr.sec); unit 1228 drivers/block/amiflop.c raw = dos_decode((unsigned char *)(unit[drive].trackbuf + (hdr.sec - 1) * 512), (ushort *) raw, 512); unit 1230 drivers/block/amiflop.c crc = dos_data_crc(unit[drive].trackbuf + (hdr.sec - 1) * 512); unit 1237 drivers/block/amiflop.c ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[0], unit 1238 drivers/block/amiflop.c ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[1], unit 1239 drivers/block/amiflop.c ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[2], unit 1240 drivers/block/amiflop.c ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[3]); unit 1288 drivers/block/amiflop.c hdr.track=unit[drive].track/unit[drive].type->heads; unit 1289 drivers/block/amiflop.c hdr.side=unit[drive].track%unit[drive].type->heads; unit 1307 drivers/block/amiflop.c (unsigned char *)unit[drive].trackbuf+cnt*512,512); unit 1311 drivers/block/amiflop.c crc[0]=dos_data_crc(unit[drive].trackbuf+cnt*512); unit 1334 drivers/block/amiflop.c if (unit[disk].type->sect_mult==2) /* check for HD-Disks */ unit 1349 drivers/block/amiflop.c for(cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) unit 1380 drivers/block/amiflop.c (*unit[nr].dtype->write_fkt)(nr); unit 1405 drivers/block/amiflop.c (*unit[nr].dtype->write_fkt)(nr); unit 1428 drivers/block/amiflop.c if (unit[drive].track == track) unit 1436 drivers/block/amiflop.c if (unit[drive].dirty == 1) { unit 1445 drivers/block/amiflop.c error = (*unit[drive].dtype->read_fkt)(drive); unit 1451 drivers/block/amiflop.c unit[drive].track = -1; unit 1461 drivers/block/amiflop.c int drive = floppy - unit; unit 1529 drivers/block/amiflop.c geo->heads = unit[drive].type->heads; unit 1530 drivers/block/amiflop.c geo->sectors = unit[drive].dtype->sects * unit[drive].type->sect_mult; unit 1531 drivers/block/amiflop.c geo->cylinders = unit[drive].type->tracks; unit 1539 drivers/block/amiflop.c int drive = p - unit; unit 1639 drivers/block/amiflop.c unit[drive].type = &drive_types[num_dr_types-1]; /* FD_NODRIVE */ unit 1643 drivers/block/amiflop.c unit[drive].type = drive_types + type; unit 1644 drivers/block/amiflop.c unit[drive].track = -1; unit 1646 drivers/block/amiflop.c unit[drive].disk = -1; unit 1647 drivers/block/amiflop.c unit[drive].motor = 0; unit 1648 drivers/block/amiflop.c unit[drive].busy = 0; unit 1649 drivers/block/amiflop.c unit[drive].status = -1; unit 1695 drivers/block/amiflop.c unit[drive].dtype=&data_types[system]; unit 1696 drivers/block/amiflop.c unit[drive].blocks=unit[drive].type->heads*unit[drive].type->tracks* unit 1697 drivers/block/amiflop.c data_types[system].sects*unit[drive].type->sect_mult; unit 1698 drivers/block/amiflop.c set_capacity(unit[drive].gendisk, unit[drive].blocks); unit 1701 drivers/block/amiflop.c unit[drive].type->name, data_types[system].name); unit 1710 drivers/block/amiflop.c int drive = p - unit; unit 1713 drivers/block/amiflop.c if (unit[drive].dirty == 1) { unit 1737 drivers/block/amiflop.c int drive = p - unit; unit 1783 drivers/block/amiflop.c disk->queue = blk_mq_init_sq_queue(&unit[drive].tag_set, &amiflop_mq_ops, unit 1790 drivers/block/amiflop.c unit[drive].trackbuf = kmalloc(FLOPPY_MAX_SECTORS * 512, GFP_KERNEL); unit 1791 drivers/block/amiflop.c if (!unit[drive].trackbuf) unit 1799 drivers/block/amiflop.c blk_mq_free_tag_set(&unit[drive].tag_set); unit 1803 drivers/block/amiflop.c unit[drive].type->code = FD_NODRIVE; unit 1817 drivers/block/amiflop.c if (unit[drive].type->code == FD_NODRIVE) unit 1826 drivers/block/amiflop.c unit[drive].gendisk = disk; unit 1835 drivers/block/amiflop.c disk->private_data = &unit[drive]; unit 1852 drivers/block/amiflop.c if (unit[drive].type->code == FD_NODRIVE) unit 1855 drivers/block/amiflop.c return get_disk_and_module(unit[drive].gendisk); unit 1899 drivers/block/amiflop.c unit[i].track = -1; unit 304 drivers/block/ataflop.c } unit[FD_MAX_UNITS]; unit 306 drivers/block/ataflop.c #define UD unit[drive] unit 307 drivers/block/ataflop.c #define UDT unit[drive].disktype unit 308 drivers/block/ataflop.c #define SUD unit[SelectedDrive] unit 309 drivers/block/ataflop.c #define SUDT unit[SelectedDrive].disktype unit 726 drivers/block/ataflop.c struct request_queue *q = unit[drive].disk->queue; unit 1157 drivers/block/ataflop.c set_capacity(unit[SelectedDrive].disk, unit 1172 drivers/block/ataflop.c set_capacity(unit[SelectedDrive].disk, unit 1410 drivers/block/ataflop.c unsigned int drive = p - unit; unit 1432 drivers/block/ataflop.c unsigned int drive = p - unit; unit 1488 drivers/block/ataflop.c int drive = floppy - unit; unit 1564 drivers/block/ataflop.c int drive = floppy - unit; unit 1971 drivers/block/ataflop.c return get_disk_and_module(unit[drive].disk); unit 1987 drivers/block/ataflop.c unit[i].disk = alloc_disk(1); unit 1988 drivers/block/ataflop.c if (!unit[i].disk) { unit 1993 drivers/block/ataflop.c unit[i].disk->queue = blk_mq_init_sq_queue(&unit[i].tag_set, unit 1996 drivers/block/ataflop.c if (IS_ERR(unit[i].disk->queue)) { unit 1997 drivers/block/ataflop.c put_disk(unit[i].disk); unit 1998 drivers/block/ataflop.c ret = PTR_ERR(unit[i].disk->queue); unit 1999 drivers/block/ataflop.c unit[i].disk->queue = NULL; unit 2027 drivers/block/ataflop.c unit[i].track = -1; unit 2028 drivers/block/ataflop.c unit[i].flags = 0; unit 2029 drivers/block/ataflop.c unit[i].disk->major = FLOPPY_MAJOR; unit 2030 drivers/block/ataflop.c unit[i].disk->first_minor = i; unit 2031 drivers/block/ataflop.c sprintf(unit[i].disk->disk_name, "fd%d", i); unit 2032 drivers/block/ataflop.c unit[i].disk->fops = &floppy_fops; unit 2033 drivers/block/ataflop.c unit[i].disk->events = DISK_EVENT_MEDIA_CHANGE; unit 2034 drivers/block/ataflop.c unit[i].disk->private_data = &unit[i]; unit 2035 drivers/block/ataflop.c set_capacity(unit[i].disk, MAX_DISK_SIZE * 2); unit 2036 drivers/block/ataflop.c add_disk(unit[i].disk); unit 2051 drivers/block/ataflop.c struct gendisk *disk = unit[i].disk; unit 2054 drivers/block/ataflop.c blk_mq_free_tag_set(&unit[i].tag_set); unit 2055 drivers/block/ataflop.c put_disk(unit[i].disk); unit 2106 drivers/block/ataflop.c del_gendisk(unit[i].disk); unit 2107 drivers/block/ataflop.c blk_cleanup_queue(unit[i].disk->queue); unit 2108 drivers/block/ataflop.c blk_mq_free_tag_set(&unit[i].tag_set); unit 2109 drivers/block/ataflop.c put_disk(unit[i].disk); unit 307 drivers/block/floppy.c #define REVDRIVE(fdc, unit) ((unit) + ((fdc) << 2)) unit 784 drivers/block/floppy.c static inline int is_selected(int dor, int unit) unit 786 drivers/block/floppy.c return ((dor & (0x10 << unit)) && (dor & 3) == unit); unit 797 drivers/block/floppy.c unsigned char unit; unit 808 drivers/block/floppy.c unit = olddor & 0x3; unit 809 drivers/block/floppy.c if (is_selected(olddor, unit) && !is_selected(newdor, unit)) { unit 810 drivers/block/floppy.c drive = REVDRIVE(fdc, unit); unit 818 drivers/block/floppy.c unit = newdor & 0x3; unit 819 drivers/block/floppy.c if (!is_selected(olddor, unit) && is_selected(newdor, unit)) { unit 820 drivers/block/floppy.c drive = REVDRIVE(fdc, unit); unit 4540 drivers/block/floppy.c int i, unit, drive, err; unit 4657 drivers/block/floppy.c for (unit = 0; unit < 4; unit++) unit 4658 drivers/block/floppy.c FDCS->track[unit] = 0; unit 3170 drivers/block/mtip32xx/mtip32xx.c int unit; unit 3174 drivers/block/mtip32xx/mtip32xx.c unit = base; unit 3178 drivers/block/mtip32xx/mtip32xx.c *--p = 'a' + (index % unit); unit 3179 drivers/block/mtip32xx/mtip32xx.c index = (index / unit) - 1; unit 201 drivers/block/paride/bpck.c id = pi->unit; unit 222 drivers/block/paride/bpck.c w0(0xff-pi->unit); w2(4); w0(pi->unit); unit 265 drivers/block/paride/bpck.c w0(0xff-pi->unit); w2(4); w0(pi->unit); unit 338 drivers/block/paride/bpck.c pi->device,pi->port,pi->unit,pi->mode); unit 440 drivers/block/paride/bpck.c pi->device,BPCK_VERSION,&scratch[110],pi->unit); unit 135 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->ppc_id=pi->unit; unit 163 drivers/block/paride/bpck6.c printk(KERN_DEBUG "PROBE UNIT %x on port:%x\n",pi->unit,pi->port); unit 167 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->ppc_id=pi->unit; unit 208 drivers/block/paride/bpck6.c pi->unit,pi->mode,mode_string[pi->mode],pi->delay); unit 248 drivers/block/paride/paride.c static int pi_register_parport(PIA *pi, int verbose, int unit) unit 260 drivers/block/paride/paride.c unit); unit 305 drivers/block/paride/paride.c static int pi_probe_unit(PIA * pi, int unit, char *scratch, int verbose) unit 309 drivers/block/paride/paride.c s = unit; unit 329 drivers/block/paride/paride.c for (pi->unit = s; pi->unit < e; pi->unit++) unit 351 drivers/block/paride/paride.c int unit, int protocol, int delay, char *scratch, unit 367 drivers/block/paride/paride.c (!protocols[s]) || (unit < 0) || unit 368 drivers/block/paride/paride.c (unit >= protocols[s]->max_units)) { unit 403 drivers/block/paride/paride.c if (pi_probe_unit(pi, unit, scratch, verbose)) unit 410 drivers/block/paride/paride.c (pi, unit, scratch, verbose)) unit 44 drivers/block/paride/paride.h int unit; /* unit number for chained adapters */ unit 65 drivers/block/paride/paride.h int unit, /* unit number, if supported */ unit 305 drivers/block/paride/pcd.c int unit; unit 308 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { unit 330 drivers/block/paride/pcd.c cd->drive = (*drives[unit])[D_SLV]; unit 331 drivers/block/paride/pcd.c if ((*drives[unit])[D_PRT]) unit 335 drivers/block/paride/pcd.c snprintf(cd->name, sizeof(cd->info.name), "%s%d", name, unit); unit 342 drivers/block/paride/pcd.c disk->first_minor = unit; unit 681 drivers/block/paride/pcd.c int unit, r; unit 686 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { unit 711 drivers/block/paride/pcd.c int k, unit; unit 735 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { unit 736 drivers/block/paride/pcd.c int *conf = *drives[unit]; unit 756 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { unit 1005 drivers/block/paride/pcd.c int unit; unit 1019 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { unit 1030 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { unit 1044 drivers/block/paride/pcd.c int unit; unit 1046 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { unit 939 drivers/block/paride/pd.c int found = 0, unit, pd_drive_count = 0; unit 942 drivers/block/paride/pd.c for (unit = 0; unit < PD_UNITS; unit++) { unit 943 drivers/block/paride/pd.c int *parm = *drives[unit]; unit 944 drivers/block/paride/pd.c struct pd_unit *disk = pd + unit; unit 950 drivers/block/paride/pd.c snprintf(disk->name, PD_NAMELEN, "%s%c", name, 'a'+unit); unit 974 drivers/block/paride/pd.c for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { unit 975 drivers/block/paride/pd.c int *parm = *drives[unit]; unit 987 drivers/block/paride/pd.c for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { unit 1025 drivers/block/paride/pd.c int unit; unit 1027 drivers/block/paride/pd.c for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { unit 290 drivers/block/paride/pf.c int unit; unit 293 drivers/block/paride/pf.c for (unit = 0, pf = units; unit < PF_UNITS; unit++, pf++) { unit 315 drivers/block/paride/pf.c pf->drive = (*drives[unit])[D_SLV]; unit 316 drivers/block/paride/pf.c pf->lun = (*drives[unit])[D_LUN]; unit 317 drivers/block/paride/pf.c snprintf(pf->name, PF_NAMELEN, "%s%d", name, unit); unit 319 drivers/block/paride/pf.c disk->first_minor = unit; unit 323 drivers/block/paride/pf.c if (!(*drives[unit])[D_PRT]) unit 725 drivers/block/paride/pf.c int k, unit; unit 747 drivers/block/paride/pf.c for (unit = 0; unit < PF_UNITS; unit++, pf++) { unit 748 drivers/block/paride/pf.c int *conf = *drives[unit]; unit 765 drivers/block/paride/pf.c for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { unit 1023 drivers/block/paride/pf.c int unit; unit 1035 drivers/block/paride/pf.c for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { unit 1045 drivers/block/paride/pf.c for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { unit 1059 drivers/block/paride/pf.c int unit; unit 1061 drivers/block/paride/pf.c for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { unit 245 drivers/block/paride/pg.c int unit; unit 248 drivers/block/paride/pg.c for (unit = 0; unit < PG_UNITS; unit++) { unit 249 drivers/block/paride/pg.c int *parm = *drives[unit]; unit 250 drivers/block/paride/pg.c struct pg *dev = &devices[unit]; unit 257 drivers/block/paride/pg.c snprintf(dev->name, PG_NAMELEN, "%s%c", name, 'a'+unit); unit 481 drivers/block/paride/pg.c int k, unit; unit 503 drivers/block/paride/pg.c for (unit = 0; unit < PG_UNITS; unit++, dev++) { unit 504 drivers/block/paride/pg.c int *parm = *drives[unit]; unit 528 drivers/block/paride/pg.c int unit = iminor(inode) & 0x7f; unit 529 drivers/block/paride/pg.c struct pg *dev = &devices[unit]; unit 533 drivers/block/paride/pg.c if ((unit >= PG_UNITS) || (!dev->present)) { unit 667 drivers/block/paride/pg.c int unit; unit 685 drivers/block/paride/pg.c for (unit = 0; unit < PG_UNITS; unit++) { unit 686 drivers/block/paride/pg.c struct pg *dev = &devices[unit]; unit 698 drivers/block/paride/pg.c for (unit = 0; unit < PG_UNITS; unit++) { unit 699 drivers/block/paride/pg.c struct pg *dev = &devices[unit]; unit 701 drivers/block/paride/pg.c device_create(pg_class, NULL, MKDEV(major, unit), NULL, unit 702 drivers/block/paride/pg.c "pg%u", unit); unit 715 drivers/block/paride/pg.c int unit; unit 717 drivers/block/paride/pg.c for (unit = 0; unit < PG_UNITS; unit++) { unit 718 drivers/block/paride/pg.c struct pg *dev = &devices[unit]; unit 720 drivers/block/paride/pg.c device_destroy(pg_class, MKDEV(major, unit)); unit 725 drivers/block/paride/pg.c for (unit = 0; unit < PG_UNITS; unit++) { unit 726 drivers/block/paride/pg.c struct pg *dev = &devices[unit]; unit 139 drivers/block/paride/pt.c #define DU (*drives[unit]) unit 605 drivers/block/paride/pt.c int unit; unit 616 drivers/block/paride/pt.c for (unit = 0; unit < PT_UNITS; unit++) { unit 617 drivers/block/paride/pt.c struct pt_unit *tape = &pt[unit]; unit 625 drivers/block/paride/pt.c snprintf(tape->name, PT_NAMELEN, "%s%d", name, unit); unit 661 drivers/block/paride/pt.c int unit = iminor(inode) & 0x7F; unit 662 drivers/block/paride/pt.c struct pt_unit *tape = pt + unit; unit 666 drivers/block/paride/pt.c if (unit >= PT_UNITS || (!tape->present)) { unit 964 drivers/block/paride/pt.c int unit; unit 980 drivers/block/paride/pt.c for (unit = 0; unit < PT_UNITS; unit++) unit 981 drivers/block/paride/pt.c if (pt[unit].present) unit 982 drivers/block/paride/pt.c pi_release(pt[unit].pi); unit 992 drivers/block/paride/pt.c for (unit = 0; unit < PT_UNITS; unit++) unit 993 drivers/block/paride/pt.c if (pt[unit].present) { unit 994 drivers/block/paride/pt.c device_create(pt_class, NULL, MKDEV(major, unit), NULL, unit 995 drivers/block/paride/pt.c "pt%d", unit); unit 996 drivers/block/paride/pt.c device_create(pt_class, NULL, MKDEV(major, unit + 128), unit 997 drivers/block/paride/pt.c NULL, "pt%dn", unit); unit 1009 drivers/block/paride/pt.c int unit; unit 1010 drivers/block/paride/pt.c for (unit = 0; unit < PT_UNITS; unit++) unit 1011 drivers/block/paride/pt.c if (pt[unit].present) { unit 1012 drivers/block/paride/pt.c device_destroy(pt_class, MKDEV(major, unit)); unit 1013 drivers/block/paride/pt.c device_destroy(pt_class, MKDEV(major, unit + 128)); unit 1017 drivers/block/paride/pt.c for (unit = 0; unit < PT_UNITS; unit++) unit 1018 drivers/block/paride/pt.c if (pt[unit].present) unit 1019 drivers/block/paride/pt.c pi_release(pt[unit].pi); unit 212 drivers/block/swim.c struct floppy_state unit[FD_MAX_UNIT]; unit 775 drivers/block/swim.c return get_disk_and_module(swd->unit[drive].disk); unit 780 drivers/block/swim.c struct floppy_state *fs = &swd->unit[swd->floppy_count]; unit 835 drivers/block/swim.c swd->unit[drive].disk = alloc_disk(1); unit 836 drivers/block/swim.c if (swd->unit[drive].disk == NULL) { unit 841 drivers/block/swim.c q = blk_mq_init_sq_queue(&swd->unit[drive].tag_set, &swim_mq_ops, unit 848 drivers/block/swim.c swd->unit[drive].disk->queue = q; unit 849 drivers/block/swim.c blk_queue_bounce_limit(swd->unit[drive].disk->queue, unit 851 drivers/block/swim.c swd->unit[drive].disk->queue->queuedata = &swd->unit[drive]; unit 852 drivers/block/swim.c swd->unit[drive].swd = swd; unit 856 drivers/block/swim.c swd->unit[drive].disk->flags = GENHD_FL_REMOVABLE; unit 857 drivers/block/swim.c swd->unit[drive].disk->major = FLOPPY_MAJOR; unit 858 drivers/block/swim.c swd->unit[drive].disk->first_minor = drive; unit 859 drivers/block/swim.c sprintf(swd->unit[drive].disk->disk_name, "fd%d", drive); unit 860 drivers/block/swim.c swd->unit[drive].disk->fops = &floppy_fops; unit 861 drivers/block/swim.c swd->unit[drive].disk->events = DISK_EVENT_MEDIA_CHANGE; unit 862 drivers/block/swim.c swd->unit[drive].disk->private_data = &swd->unit[drive]; unit 863 drivers/block/swim.c set_capacity(swd->unit[drive].disk, 2880); unit 864 drivers/block/swim.c add_disk(swd->unit[drive].disk); unit 875 drivers/block/swim.c struct gendisk *disk = swd->unit[drive].disk; unit 882 drivers/block/swim.c blk_mq_free_tag_set(&swd->unit[drive].tag_set); unit 956 drivers/block/swim.c del_gendisk(swd->unit[drive].disk); unit 957 drivers/block/swim.c blk_cleanup_queue(swd->unit[drive].disk->queue); unit 958 drivers/block/swim.c blk_mq_free_tag_set(&swd->unit[drive].tag_set); unit 959 drivers/block/swim.c put_disk(swd->unit[drive].disk); unit 967 drivers/block/swim.c floppy_eject(&swd->unit[drive]); unit 639 drivers/block/virtio_blk.c int unit; unit 643 drivers/block/virtio_blk.c unit = base; unit 647 drivers/block/virtio_blk.c *--p = 'a' + (index % unit); unit 648 drivers/block/virtio_blk.c index = (index / unit) - 1; unit 110 drivers/char/hw_random/n2-drv.c unsigned long unit) unit 116 drivers/char/hw_random/n2-drv.c hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, unit 147 drivers/char/hw_random/n2-drv.c static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) unit 151 drivers/char/hw_random/n2-drv.c return n2rng_generic_read_control_v2(ra, unit); unit 154 drivers/char/hw_random/n2-drv.c static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, unit 167 drivers/char/hw_random/n2-drv.c watchdog_timeout, unit); unit 169 drivers/char/hw_random/n2-drv.c hv_err = n2rng_control_settle_v2(np, unit); unit 202 drivers/char/hw_random/n2-drv.c unsigned long unit, unit 213 drivers/char/hw_random/n2-drv.c unit, ticks); unit 221 drivers/char/hw_random/n2-drv.c unsigned long unit, unit 229 drivers/char/hw_random/n2-drv.c hv_err = n2rng_read_diag_data_one(np, unit, unit 251 drivers/char/hw_random/n2-drv.c unsigned long unit, unit 258 drivers/char/hw_random/n2-drv.c hv_err = n2rng_write_ctl_one(np, unit, state, control_ra, unit 462 drivers/char/hw_random/n2-drv.c static int n2rng_entropy_diag_read(struct n2rng *np, unsigned long unit, unit 472 drivers/char/hw_random/n2-drv.c err = n2rng_generic_write_control(np, pre_ctl_ra, unit, pre_state); unit 476 drivers/char/hw_random/n2-drv.c err = n2rng_generic_read_diag_data(np, unit, unit 479 drivers/char/hw_random/n2-drv.c (void) n2rng_generic_write_control(np, post_ctl_ra, unit, unit 521 drivers/char/hw_random/n2-drv.c static int n2rng_check_selftest_buffer(struct n2rng *np, unsigned long unit) unit 549 drivers/char/hw_random/n2-drv.c dev_err(&np->op->dev, "Selftest failed on unit %lu\n", unit); unit 552 drivers/char/hw_random/n2-drv.c dev_info(&np->op->dev, "Selftest passed on unit %lu\n", unit); unit 557 drivers/char/hw_random/n2-drv.c static int n2rng_control_selftest(struct n2rng *np, unsigned long unit) unit 587 drivers/char/hw_random/n2-drv.c err = n2rng_entropy_diag_read(np, unit, np->test_control, unit 591 drivers/char/hw_random/n2-drv.c &np->units[unit].control[0], unit 596 drivers/char/hw_random/n2-drv.c return n2rng_check_selftest_buffer(np, unit); unit 616 drivers/char/hw_random/n2-drv.c int unit, err; unit 619 drivers/char/hw_random/n2-drv.c for (unit = 0; unit < np->num_units; unit++) { unit 620 drivers/char/hw_random/n2-drv.c struct n2rng_unit *up = &np->units[unit]; unit 650 drivers/char/hw_random/n2-drv.c err = n2rng_generic_write_control(np, ctl_ra, unit, unit 57 drivers/char/hw_random/n2rng.h unsigned long unit, unit 69 drivers/char/hw_random/n2rng.h unsigned long unit); unit 75 drivers/char/hw_random/n2rng.h unsigned long unit, unit 59 drivers/clk/mmp/clk-of-mmp2.c struct mmp_clk_unit unit; unit 109 drivers/clk/mmp/clk-of-mmp2.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 111 drivers/clk/mmp/clk-of-mmp2.c mmp_register_fixed_rate_clks(unit, fixed_rate_clks, unit 114 drivers/clk/mmp/clk-of-mmp2.c mmp_register_fixed_factor_clks(unit, fixed_factor_clks, unit 122 drivers/clk/mmp/clk-of-mmp2.c mmp_clk_add(unit, MMP2_CLK_UART_PLL, clk); unit 181 drivers/clk/mmp/clk-of-mmp2.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 183 drivers/clk/mmp/clk-of-mmp2.c mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, unit 186 drivers/clk/mmp/clk-of-mmp2.c mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, unit 248 drivers/clk/mmp/clk-of-mmp2.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 261 drivers/clk/mmp/clk-of-mmp2.c mmp_clk_add(unit, MMP2_CLK_CCIC0_MIX, clk); unit 268 drivers/clk/mmp/clk-of-mmp2.c mmp_clk_add(unit, MMP2_CLK_CCIC1_MIX, clk); unit 270 drivers/clk/mmp/clk-of-mmp2.c mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, unit 273 drivers/clk/mmp/clk-of-mmp2.c mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, unit 276 drivers/clk/mmp/clk-of-mmp2.c mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, unit 328 drivers/clk/mmp/clk-of-mmp2.c mmp_clk_init(np, &pxa_unit->unit, MMP2_NR_CLKS); unit 52 drivers/clk/mmp/clk-of-pxa168.c struct mmp_clk_unit unit; unit 97 drivers/clk/mmp/clk-of-pxa168.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 99 drivers/clk/mmp/clk-of-pxa168.c mmp_register_fixed_rate_clks(unit, fixed_rate_clks, unit 102 drivers/clk/mmp/clk-of-pxa168.c mmp_register_fixed_factor_clks(unit, fixed_factor_clks, unit 110 drivers/clk/mmp/clk-of-pxa168.c mmp_clk_add(unit, PXA168_CLK_UART_PLL, clk); unit 166 drivers/clk/mmp/clk-of-pxa168.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 168 drivers/clk/mmp/clk-of-pxa168.c mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, unit 171 drivers/clk/mmp/clk-of-pxa168.c mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, unit 216 drivers/clk/mmp/clk-of-pxa168.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 218 drivers/clk/mmp/clk-of-pxa168.c mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, unit 221 drivers/clk/mmp/clk-of-pxa168.c mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, unit 224 drivers/clk/mmp/clk-of-pxa168.c mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, unit 276 drivers/clk/mmp/clk-of-pxa168.c mmp_clk_init(np, &pxa_unit->unit, PXA168_NR_CLKS); unit 29 drivers/clk/mmp/clk-of-pxa1928.c struct mmp_clk_unit unit; unit 72 drivers/clk/mmp/clk-of-pxa1928.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 74 drivers/clk/mmp/clk-of-pxa1928.c mmp_register_fixed_rate_clks(unit, fixed_rate_clks, unit 77 drivers/clk/mmp/clk-of-pxa1928.c mmp_register_fixed_factor_clks(unit, fixed_factor_clks, unit 133 drivers/clk/mmp/clk-of-pxa1928.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 135 drivers/clk/mmp/clk-of-pxa1928.c mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, unit 138 drivers/clk/mmp/clk-of-pxa1928.c mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, unit 172 drivers/clk/mmp/clk-of-pxa1928.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 174 drivers/clk/mmp/clk-of-pxa1928.c mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, unit 177 drivers/clk/mmp/clk-of-pxa1928.c mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, unit 180 drivers/clk/mmp/clk-of-pxa1928.c mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, unit 242 drivers/clk/mmp/clk-of-pxa1928.c mmp_clk_init(np, &pxa_unit->unit, PXA1928_APMU_NR_CLKS); unit 263 drivers/clk/mmp/clk-of-pxa1928.c mmp_clk_init(np, &pxa_unit->unit, PXA1928_APBC_NR_CLKS); unit 51 drivers/clk/mmp/clk-of-pxa910.c struct mmp_clk_unit unit; unit 97 drivers/clk/mmp/clk-of-pxa910.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 99 drivers/clk/mmp/clk-of-pxa910.c mmp_register_fixed_rate_clks(unit, fixed_rate_clks, unit 102 drivers/clk/mmp/clk-of-pxa910.c mmp_register_fixed_factor_clks(unit, fixed_factor_clks, unit 110 drivers/clk/mmp/clk-of-pxa910.c mmp_clk_add(unit, PXA910_CLK_UART_PLL, clk); unit 167 drivers/clk/mmp/clk-of-pxa910.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 169 drivers/clk/mmp/clk-of-pxa910.c mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, unit 172 drivers/clk/mmp/clk-of-pxa910.c mmp_register_mux_clks(unit, apbcp_mux_clks, pxa_unit->apbcp_base, unit 175 drivers/clk/mmp/clk-of-pxa910.c mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, unit 178 drivers/clk/mmp/clk-of-pxa910.c mmp_register_gate_clks(unit, apbcp_gate_clks, pxa_unit->apbcp_base, unit 222 drivers/clk/mmp/clk-of-pxa910.c struct mmp_clk_unit *unit = &pxa_unit->unit; unit 224 drivers/clk/mmp/clk-of-pxa910.c mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, unit 227 drivers/clk/mmp/clk-of-pxa910.c mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, unit 230 drivers/clk/mmp/clk-of-pxa910.c mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, unit 302 drivers/clk/mmp/clk-of-pxa910.c mmp_clk_init(np, &pxa_unit->unit, PXA910_NR_CLKS); unit 10 drivers/clk/mmp/clk.c void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit, unit 19 drivers/clk/mmp/clk.c unit->clk_table = clk_table; unit 20 drivers/clk/mmp/clk.c unit->nr_clks = nr_clks; unit 21 drivers/clk/mmp/clk.c unit->clk_data.clks = clk_table; unit 22 drivers/clk/mmp/clk.c unit->clk_data.clk_num = nr_clks; unit 23 drivers/clk/mmp/clk.c of_clk_add_provider(np, of_clk_src_onecell_get, &unit->clk_data); unit 26 drivers/clk/mmp/clk.c void mmp_register_fixed_rate_clks(struct mmp_clk_unit *unit, unit 44 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; unit 48 drivers/clk/mmp/clk.c void mmp_register_fixed_factor_clks(struct mmp_clk_unit *unit, unit 66 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; unit 70 drivers/clk/mmp/clk.c void mmp_register_general_gate_clks(struct mmp_clk_unit *unit, unit 92 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; unit 96 drivers/clk/mmp/clk.c void mmp_register_gate_clks(struct mmp_clk_unit *unit, unit 120 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; unit 124 drivers/clk/mmp/clk.c void mmp_register_mux_clks(struct mmp_clk_unit *unit, unit 148 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; unit 152 drivers/clk/mmp/clk.c void mmp_register_div_clks(struct mmp_clk_unit *unit, unit 175 drivers/clk/mmp/clk.c unit->clk_table[clks[i].id] = clk; unit 179 drivers/clk/mmp/clk.c void mmp_clk_add(struct mmp_clk_unit *unit, unsigned int id, unit 186 drivers/clk/mmp/clk.c if (id >= unit->nr_clks) { unit 191 drivers/clk/mmp/clk.c unit->clk_table[id] = clk; unit 150 drivers/clk/mmp/clk.h void mmp_register_fixed_rate_clks(struct mmp_clk_unit *unit, unit 162 drivers/clk/mmp/clk.h void mmp_register_fixed_factor_clks(struct mmp_clk_unit *unit, unit 176 drivers/clk/mmp/clk.h void mmp_register_general_gate_clks(struct mmp_clk_unit *unit, unit 192 drivers/clk/mmp/clk.h void mmp_register_gate_clks(struct mmp_clk_unit *unit, unit 208 drivers/clk/mmp/clk.h void mmp_register_mux_clks(struct mmp_clk_unit *unit, unit 223 drivers/clk/mmp/clk.h void mmp_register_div_clks(struct mmp_clk_unit *unit, unit 236 drivers/clk/mmp/clk.h void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit, unit 238 drivers/clk/mmp/clk.h void mmp_clk_add(struct mmp_clk_unit *unit, unsigned int id, unit 15 drivers/clk/mmp/reset.c struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); unit 23 drivers/clk/mmp/reset.c cell = &unit->cells[i]; unit 37 drivers/clk/mmp/reset.c struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); unit 42 drivers/clk/mmp/reset.c cell = &unit->cells[id]; unit 59 drivers/clk/mmp/reset.c struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); unit 64 drivers/clk/mmp/reset.c cell = &unit->cells[id]; unit 86 drivers/clk/mmp/reset.c struct mmp_clk_reset_unit *unit; unit 88 drivers/clk/mmp/reset.c unit = kzalloc(sizeof(*unit), GFP_KERNEL); unit 89 drivers/clk/mmp/reset.c if (!unit) unit 92 drivers/clk/mmp/reset.c unit->cells = cells; unit 93 drivers/clk/mmp/reset.c unit->rcdev.of_reset_n_cells = 1; unit 94 drivers/clk/mmp/reset.c unit->rcdev.nr_resets = nr_resets; unit 95 drivers/clk/mmp/reset.c unit->rcdev.ops = &mmp_clk_reset_ops; unit 96 drivers/clk/mmp/reset.c unit->rcdev.of_node = np; unit 97 drivers/clk/mmp/reset.c unit->rcdev.of_xlate = mmp_of_reset_xlate; unit 99 drivers/clk/mmp/reset.c reset_controller_register(&unit->rcdev); unit 30 drivers/clk/qcom/clk-rpmh.c __le32 unit; unit 61 drivers/clk/qcom/clk-rpmh.c u32 unit; unit 304 drivers/clk/qcom/clk-rpmh.c c->aggr_state = rate / c->unit; unit 326 drivers/clk/qcom/clk-rpmh.c return c->aggr_state * c->unit; unit 446 drivers/clk/qcom/clk-rpmh.c rpmh_clk->unit = le32_to_cpu(data->unit) * 1000ULL; unit 1276 drivers/clk/sirf/clk-atlas7.c struct clk_unit *unit; unit 1279 drivers/clk/sirf/clk-atlas7.c unit = kzalloc(sizeof(*unit), GFP_KERNEL); unit 1280 drivers/clk/sirf/clk-atlas7.c if (!unit) unit 1289 drivers/clk/sirf/clk-atlas7.c unit->hw.init = &init; unit 1290 drivers/clk/sirf/clk-atlas7.c unit->regofs = regofs; unit 1291 drivers/clk/sirf/clk-atlas7.c unit->bit = bit; unit 1293 drivers/clk/sirf/clk-atlas7.c unit->type = type; unit 1294 drivers/clk/sirf/clk-atlas7.c unit->idle_bit = idle_bit; unit 1295 drivers/clk/sirf/clk-atlas7.c unit->lock = lock; unit 1297 drivers/clk/sirf/clk-atlas7.c clk = clk_register(dev, &unit->hw); unit 1299 drivers/clk/sirf/clk-atlas7.c kfree(unit); unit 1440 drivers/clk/sirf/clk-atlas7.c struct atlas7_unit_init_data *unit; unit 1666 drivers/clk/sirf/clk-atlas7.c unit = &unit_list[i]; unit 1667 drivers/clk/sirf/clk-atlas7.c atlas7_clks[i] = atlas7_unit_clk_register(NULL, unit->unit_name, unit->parent_name, unit 1668 drivers/clk/sirf/clk-atlas7.c unit->flags, unit->regofs, unit->bit, unit->type, unit->idle_bit, unit->lock); unit 112 drivers/crypto/ccp/ccp-crypto-aes-xts.c unsigned int unit; unit 129 drivers/crypto/ccp/ccp-crypto-aes-xts.c for (unit = 0; unit < ARRAY_SIZE(xts_unit_sizes); unit++) { unit 130 drivers/crypto/ccp/ccp-crypto-aes-xts.c if (req->nbytes == xts_unit_sizes[unit].size) { unit 131 drivers/crypto/ccp/ccp-crypto-aes-xts.c unit_size = unit; unit 136 drivers/firewire/core-device.c static void get_modalias_ids(struct fw_unit *unit, int *id) unit 138 drivers/firewire/core-device.c get_ids(&fw_parent_device(unit)->config_rom[5], id); unit 139 drivers/firewire/core-device.c get_ids(unit->directory, id); unit 198 drivers/firewire/core-device.c static int get_modalias(struct fw_unit *unit, char *buffer, size_t buffer_size) unit 202 drivers/firewire/core-device.c get_modalias_ids(unit, id); unit 211 drivers/firewire/core-device.c struct fw_unit *unit = fw_unit(dev); unit 214 drivers/firewire/core-device.c get_modalias(unit, modalias, sizeof(modalias)); unit 360 drivers/firewire/core-device.c struct fw_unit *unit = fw_unit(dev); unit 363 drivers/firewire/core-device.c length = get_modalias(unit, buf, PAGE_SIZE); unit 373 drivers/firewire/core-device.c struct fw_unit *unit = fw_unit(dev); unit 376 drivers/firewire/core-device.c (int)(unit->directory - device->config_rom)); unit 673 drivers/firewire/core-device.c struct fw_unit *unit = fw_unit(dev); unit 675 drivers/firewire/core-device.c fw_device_put(fw_parent_device(unit)); unit 676 drivers/firewire/core-device.c kfree(unit); unit 692 drivers/firewire/core-device.c struct fw_unit *unit; unit 705 drivers/firewire/core-device.c unit = kzalloc(sizeof(*unit), GFP_KERNEL); unit 706 drivers/firewire/core-device.c if (unit == NULL) unit 709 drivers/firewire/core-device.c unit->directory = ci.p + value - 1; unit 710 drivers/firewire/core-device.c unit->device.bus = &fw_bus_type; unit 711 drivers/firewire/core-device.c unit->device.type = &fw_unit_type; unit 712 drivers/firewire/core-device.c unit->device.parent = &device->device; unit 713 drivers/firewire/core-device.c dev_set_name(&unit->device, "%s.%d", dev_name(&device->device), i++); unit 715 drivers/firewire/core-device.c BUILD_BUG_ON(ARRAY_SIZE(unit->attribute_group.attrs) < unit 718 drivers/firewire/core-device.c init_fw_attribute_group(&unit->device, unit 720 drivers/firewire/core-device.c &unit->attribute_group); unit 722 drivers/firewire/core-device.c if (device_register(&unit->device) < 0) unit 729 drivers/firewire/core-device.c kfree(unit); unit 850 drivers/firewire/core-device.c struct fw_unit *unit = fw_unit(dev); unit 855 drivers/firewire/core-device.c driver->update(unit); unit 1411 drivers/firewire/net.c struct fw_unit *unit, struct fw_device *device) unit 1419 drivers/firewire/net.c dev_set_drvdata(&unit->device, peer); unit 1442 drivers/firewire/net.c static int fwnet_probe(struct fw_unit *unit, unit 1445 drivers/firewire/net.c struct fw_device *device = fw_parent_device(unit); unit 1515 drivers/firewire/net.c ret = fwnet_add_peer(dev, unit, device); unit 1533 drivers/firewire/net.c static void fwnet_update(struct fw_unit *unit) unit 1535 drivers/firewire/net.c struct fw_device *device = fw_parent_device(unit); unit 1536 drivers/firewire/net.c struct fwnet_peer *peer = dev_get_drvdata(&unit->device); unit 1563 drivers/firewire/net.c static void fwnet_remove(struct fw_unit *unit) unit 1565 drivers/firewire/net.c struct fwnet_peer *peer = dev_get_drvdata(&unit->device); unit 152 drivers/firewire/sbp2.c struct fw_unit *unit; unit 171 drivers/firewire/sbp2.c return fw_parent_device(tgt->unit); unit 176 drivers/firewire/sbp2.c return &tgt->unit->device; unit 181 drivers/firewire/sbp2.c return &lu->tgt->unit->device; unit 1120 drivers/firewire/sbp2.c static void sbp2_remove(struct fw_unit *unit); unit 1122 drivers/firewire/sbp2.c static int sbp2_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) unit 1124 drivers/firewire/sbp2.c struct fw_device *device = fw_parent_device(unit); unit 1139 drivers/firewire/sbp2.c dev_set_drvdata(&unit->device, tgt); unit 1140 drivers/firewire/sbp2.c tgt->unit = unit; unit 1150 drivers/firewire/sbp2.c if (scsi_add_host_with_dma(shost, &unit->device, unit 1155 drivers/firewire/sbp2.c tgt->directory_id = ((unit->directory - device->config_rom) * 4 unit 1161 drivers/firewire/sbp2.c if (sbp2_scan_unit_dir(tgt, unit->directory, &model, unit 1184 drivers/firewire/sbp2.c sbp2_remove(unit); unit 1192 drivers/firewire/sbp2.c static void sbp2_update(struct fw_unit *unit) unit 1194 drivers/firewire/sbp2.c struct sbp2_target *tgt = dev_get_drvdata(&unit->device); unit 1197 drivers/firewire/sbp2.c fw_device_enable_phys_dma(fw_parent_device(unit)); unit 1210 drivers/firewire/sbp2.c static void sbp2_remove(struct fw_unit *unit) unit 1212 drivers/firewire/sbp2.c struct fw_device *device = fw_parent_device(unit); unit 1213 drivers/firewire/sbp2.c struct sbp2_target *tgt = dev_get_drvdata(&unit->device); unit 1248 drivers/firewire/sbp2.c dev_notice(&unit->device, "released target %d:0:0\n", shost->host_no); unit 150 drivers/fsi/fsi-core.c uint32_t addr = FSI_PEEK_BASE + ((dev->unit - 2) * sizeof(uint32_t)); unit 517 drivers/fsi/fsi-core.c dev->unit = i; unit 523 drivers/fsi/fsi-core.c dev->unit, dev->engine_type, version, unit 354 drivers/gpu/drm/amd/amdgpu/cik_sdma.c unsigned unit = 0; unit 359 drivers/gpu/drm/amd/amdgpu/cik_sdma.c unit++; unit 361 drivers/gpu/drm/amd/amdgpu/cik_sdma.c if (unit > (SDMA0_PHASE0_QUANTUM__UNIT_MASK >> unit 365 drivers/gpu/drm/amd/amdgpu/cik_sdma.c unit = (SDMA0_PHASE0_QUANTUM__UNIT_MASK >> unit 369 drivers/gpu/drm/amd/amdgpu/cik_sdma.c value << unit); unit 373 drivers/gpu/drm/amd/amdgpu/cik_sdma.c unit << SDMA0_PHASE0_QUANTUM__UNIT__SHIFT; unit 563 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c unsigned unit = 0; unit 568 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c unit++; unit 570 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c if (unit > (SDMA0_PHASE0_QUANTUM__UNIT_MASK >> unit 574 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c unit = (SDMA0_PHASE0_QUANTUM__UNIT_MASK >> unit 578 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c value << unit); unit 582 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c unit << SDMA0_PHASE0_QUANTUM__UNIT__SHIFT; unit 894 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c unsigned unit = 0; unit 899 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c unit++; unit 901 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c if (unit > (SDMA0_PHASE0_QUANTUM__UNIT_MASK >> unit 905 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c unit = (SDMA0_PHASE0_QUANTUM__UNIT_MASK >> unit 909 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c value << unit); unit 913 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c unit << SDMA0_PHASE0_QUANTUM__UNIT__SHIFT; unit 549 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c unsigned unit = 0; unit 554 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c unit++; unit 556 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c if (unit > (SDMA0_PHASE0_QUANTUM__UNIT_MASK >> unit 560 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c unit = (SDMA0_PHASE0_QUANTUM__UNIT_MASK >> unit 564 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c value << unit); unit 568 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c unit << SDMA0_PHASE0_QUANTUM__UNIT__SHIFT; unit 803 drivers/gpu/drm/i915/i915_pmu.c .unit = (__unit), \ unit 844 drivers/gpu/drm/i915/i915_pmu.c const char *unit; unit 912 drivers/gpu/drm/i915/i915_pmu.c if (events[i].unit) { unit 918 drivers/gpu/drm/i915/i915_pmu.c pmu_iter = add_pmu_attr(pmu_iter, str, events[i].unit); unit 400 drivers/gpu/drm/mga/mga_state.c static int mga_verify_tex(drm_mga_private_t *dev_priv, int unit) unit 403 drivers/gpu/drm/mga/mga_state.c drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[unit]; unit 409 drivers/gpu/drm/mga/mga_state.c DRM_ERROR("*** bad TEXORG: 0x%x, unit %d\n", tex->texorg, unit); unit 625 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c uint32_t unit; unit 639 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c unit = 1 << PHASE_STEP_SHIFT; unit 640 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c *out_phase = mult_frac(unit, src, dst); unit 36 drivers/gpu/drm/nouveau/include/nvif/if0001.h char unit[16]; unit 115 drivers/gpu/drm/nouveau/nouveau_debugfs.c seq_printf(m, " %s", attr.unit); unit 125 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c snprintf(args->v0.unit, sizeof(args->v0.unit), "MHz"); unit 373 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_fault(struct nvkm_fifo *fifo, int unit) unit 376 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 inst = nvkm_rd32(device, 0x002800 + (unit * 0x10)); unit 377 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 valo = nvkm_rd32(device, 0x002804 + (unit * 0x10)); unit 378 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 vahi = nvkm_rd32(device, 0x002808 + (unit * 0x10)); unit 379 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 type = nvkm_rd32(device, 0x00280c + (unit * 0x10)); unit 385 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c info.engine = unit; unit 405 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_pbdma(struct gf100_fifo *fifo, int unit) unit 409 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 stat = nvkm_rd32(device, 0x040108 + (unit * 0x2000)); unit 410 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 addr = nvkm_rd32(device, 0x0400c0 + (unit * 0x2000)); unit 411 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 data = nvkm_rd32(device, 0x0400c4 + (unit * 0x2000)); unit 412 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 chid = nvkm_rd32(device, 0x040120 + (unit * 0x2000)) & 0x7f; unit 432 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c unit, show, msg, chid, chan ? chan->inst->addr : 0, unit 438 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_wr32(device, 0x0400c0 + (unit * 0x2000), 0x80600008); unit 439 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_wr32(device, 0x040108 + (unit * 0x2000), stat); unit 492 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 unit = __ffs(mask); unit 493 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_engine_unit(fifo, unit); unit 494 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c mask &= ~(1 << unit); unit 537 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 unit = __ffs(mask); unit 538 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_fault(&fifo->base, unit); unit 539 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_wr32(device, 0x00259c, (1 << unit)); unit 540 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c mask &= ~(1 << unit); unit 548 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 unit = __ffs(mask); unit 549 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_pbdma(fifo, unit); unit 550 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_wr32(device, 0x0025a0, (1 << unit)); unit 551 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c mask &= ~(1 << unit); unit 684 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_pbdma_0(struct gk104_fifo *fifo, int unit) unit 688 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 mask = nvkm_rd32(device, 0x04010c + (unit * 0x2000)); unit 689 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 stat = nvkm_rd32(device, 0x040108 + (unit * 0x2000)) & mask; unit 690 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 addr = nvkm_rd32(device, 0x0400c0 + (unit * 0x2000)); unit 691 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 data = nvkm_rd32(device, 0x0400c4 + (unit * 0x2000)); unit 692 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 chid = nvkm_rd32(device, 0x040120 + (unit * 0x2000)) & 0xfff; unit 707 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_wr32(device, 0x0400c0 + (unit * 0x2000), 0x80600008); unit 714 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c unit, show, msg, chid, chan ? chan->inst->addr : 0, unit 720 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_wr32(device, 0x040108 + (unit * 0x2000), stat); unit 733 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_pbdma_1(struct gk104_fifo *fifo, int unit) unit 737 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 mask = nvkm_rd32(device, 0x04014c + (unit * 0x2000)); unit 738 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 stat = nvkm_rd32(device, 0x040148 + (unit * 0x2000)) & mask; unit 739 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 chid = nvkm_rd32(device, 0x040120 + (unit * 0x2000)) & 0xfff; unit 745 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c unit, stat, msg, chid, unit 746 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_rd32(device, 0x040150 + (unit * 0x2000)), unit 747 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_rd32(device, 0x040154 + (unit * 0x2000))); unit 750 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_wr32(device, 0x040148 + (unit * 0x2000), stat); unit 826 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 unit = __ffs(mask); unit 827 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->func->intr.fault(&fifo->base, unit); unit 828 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_wr32(device, 0x00259c, (1 << unit)); unit 829 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c mask &= ~(1 << unit); unit 837 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c u32 unit = __ffs(mask); unit 838 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_pbdma_0(fifo, unit); unit 839 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_pbdma_1(fifo, unit); unit 840 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_wr32(device, 0x0025a0, (1 << unit)); unit 841 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c mask &= ~(1 << unit); unit 49 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h void (*fault)(struct nvkm_fifo *, int unit); unit 72 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c gm107_fifo_intr_fault(struct nvkm_fifo *fifo, int unit) unit 75 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c u32 inst = nvkm_rd32(device, 0x002800 + (unit * 0x10)); unit 76 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c u32 valo = nvkm_rd32(device, 0x002804 + (unit * 0x10)); unit 77 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c u32 vahi = nvkm_rd32(device, 0x002808 + (unit * 0x10)); unit 78 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c u32 type = nvkm_rd32(device, 0x00280c + (unit * 0x10)); unit 84 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c info.engine = unit; unit 56 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c gp100_fifo_intr_fault(struct nvkm_fifo *fifo, int unit) unit 59 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c u32 inst = nvkm_rd32(device, 0x002800 + (unit * 0x10)); unit 60 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c u32 valo = nvkm_rd32(device, 0x002804 + (unit * 0x10)); unit 61 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c u32 vahi = nvkm_rd32(device, 0x002808 + (unit * 0x10)); unit 62 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c u32 type = nvkm_rd32(device, 0x00280c + (unit * 0x10)); unit 68 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c info.engine = unit; unit 45 drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c if (map->unit == devidx) unit 101 drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c subdev = nvkm_device_subdev(device, map->unit); unit 127 drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c if (map->unit == devidx) { unit 14 drivers/gpu/drm/nouveau/nvkm/subdev/mc/priv.h u32 unit; unit 1375 drivers/gpu/drm/omapdrm/dss/dispc.c u32 unit; unit 1378 drivers/gpu/drm/omapdrm/dss/dispc.c unit = dispc->feat->buffer_size_unit; unit 1385 drivers/gpu/drm/omapdrm/dss/dispc.c size *= unit; unit 1464 drivers/gpu/drm/omapdrm/dss/dispc.c u32 unit; unit 1466 drivers/gpu/drm/omapdrm/dss/dispc.c unit = dispc->feat->buffer_size_unit; unit 1468 drivers/gpu/drm/omapdrm/dss/dispc.c WARN_ON(low % unit != 0); unit 1469 drivers/gpu/drm/omapdrm/dss/dispc.c WARN_ON(high % unit != 0); unit 1471 drivers/gpu/drm/omapdrm/dss/dispc.c low /= unit; unit 1472 drivers/gpu/drm/omapdrm/dss/dispc.c high /= unit; unit 1482 drivers/gpu/drm/omapdrm/dss/dispc.c lo_start, lo_end) * unit, unit 1484 drivers/gpu/drm/omapdrm/dss/dispc.c hi_start, hi_end) * unit, unit 1485 drivers/gpu/drm/omapdrm/dss/dispc.c low * unit, high * unit); unit 1601 drivers/gpu/drm/omapdrm/dss/dispc.c u32 unit = dispc->feat->buffer_size_unit; unit 1612 drivers/gpu/drm/omapdrm/dss/dispc.c low = size * 4 / 8 / unit; unit 1613 drivers/gpu/drm/omapdrm/dss/dispc.c high = size * 5 / 8 / unit; unit 1620 drivers/gpu/drm/omapdrm/dss/dispc.c u32 unit = dispc->feat->buffer_size_unit; unit 1631 drivers/gpu/drm/omapdrm/dss/dispc.c low = size * 4 / 8 / unit; unit 1632 drivers/gpu/drm/omapdrm/dss/dispc.c high = size * 5 / 8 / unit; unit 34 drivers/gpu/drm/radeon/rv6xx_dpm.c u32 unscaled_count, u32 unit); unit 410 drivers/gpu/drm/radeon/rv6xx_dpm.c static u32 rv6xx_clocks_per_unit(u32 unit) unit 412 drivers/gpu/drm/radeon/rv6xx_dpm.c u32 tmp = 1 << (2 * unit); unit 418 drivers/gpu/drm/radeon/rv6xx_dpm.c u32 unscaled_count, u32 unit) unit 420 drivers/gpu/drm/radeon/rv6xx_dpm.c u32 count_per_unit = rv6xx_clocks_per_unit(unit); unit 426 drivers/gpu/drm/radeon/rv6xx_dpm.c u32 delay_us, u32 unit) unit 430 drivers/gpu/drm/radeon/rv6xx_dpm.c return rv6xx_scale_count_given_unit(rdev, delay_us * (ref_clk / 100), unit); unit 132 drivers/gpu/drm/radeon/sumo_smc.c static u32 sumo_power_of_4(u32 unit) unit 137 drivers/gpu/drm/radeon/sumo_smc.c for (i = 0; i < unit; i++) unit 146 drivers/gpu/drm/radeon/sumo_smc.c u32 period, unit, timer_value; unit 149 drivers/gpu/drm/radeon/sumo_smc.c unit = (RREG32_RCU(RCU_LCLK_SCALING_CNTL) & LCLK_SCALING_TIMER_PRESCALER_MASK) unit 152 drivers/gpu/drm/radeon/sumo_smc.c period = 100 * (xclk / 100 / sumo_power_of_4(unit)); unit 154 drivers/gpu/drm/radeon/sumo_smc.c timer_value = (period << 16) | (unit << 4); unit 88 drivers/gpu/drm/savage/savage_state.c static int savage_verify_texaddr(drm_savage_private_t * dev_priv, int unit, unit 92 drivers/gpu/drm/savage/savage_state.c DRM_ERROR("bad texAddr%d %08x (reserved bits)\n", unit, addr); unit 101 drivers/gpu/drm/savage/savage_state.c unit, addr); unit 107 drivers/gpu/drm/savage/savage_state.c unit, addr); unit 116 drivers/gpu/drm/savage/savage_state.c unit, addr); unit 2050 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (num_rects > du->unit) { unit 2051 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c du->pref_width = drm_rect_width(&rects[du->unit]); unit 2052 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c du->pref_height = drm_rect_height(&rects[du->unit]); unit 2054 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c du->gui_x = rects[du->unit].x1; unit 2055 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c du->gui_y = rects[du->unit].y1; unit 2068 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (num_rects > du->unit) { unit 2129 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c return ((vmw_connector_to_du(connector)->unit < num_displays && unit 2468 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c struct vmw_display_unit *unit = units[k]; unit 2469 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c s32 crtc_x = unit->crtc.x; unit 2470 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c s32 crtc_y = unit->crtc.y; unit 2471 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c s32 crtc_width = unit->crtc.mode.hdisplay; unit 2472 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c s32 crtc_height = unit->crtc.mode.vdisplay; unit 2476 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c dirty->unit = unit; unit 2647 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c unsigned unit, unit 2663 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (i == unit) unit 2669 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (i != unit) { unit 189 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h struct vmw_display_unit *unit; unit 355 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h unsigned unit; unit 443 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h unsigned unit, unit 183 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c if (entry->base.unit > ldu->base.unit) unit 353 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c static int vmw_ldu_init(struct vmw_private *dev_priv, unsigned unit) unit 367 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c ldu->base.unit = unit; unit 376 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c ldu->base.pref_active = (unit == 0); unit 437 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c encoder->possible_crtcs = (1 << unit); unit 142 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c cmd->obj.id = sou->base.unit; unit 144 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c (sou->base.unit == 0 ? SVGA_SCREEN_IS_PRIMARY : 0); unit 190 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c cmd->body.screenId = sou->base.unit; unit 508 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c blit->body.destScreenId = update->du->unit; unit 601 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c blit->body.destScreenId = update->du->unit; unit 826 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c static int vmw_sou_init(struct vmw_private *dev_priv, unsigned unit) unit 840 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c sou->base.unit = unit; unit 847 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c sou->base.pref_active = (unit == 0); unit 909 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c encoder->possible_crtcs = (1 << unit); unit 1027 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c s32 trans_x = dirty->unit->crtc.x - sdirty->dst_x; unit 1028 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c s32 trans_y = dirty->unit->crtc.y - sdirty->dst_y; unit 1056 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c cmd->body.destScreenId = dirty->unit->unit; unit 1212 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c blit->body.destScreenId = dirty->unit->unit; unit 1322 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c blit->body.srcScreenId = dirty->unit->unit; unit 180 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c cmd->body.stid = stdu->base.unit; unit 239 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c cmd->body.stid = stdu->base.unit; unit 258 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c static void vmw_stdu_populate_update(void *cmd, int unit, unit 266 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c update->body.stid = unit; unit 300 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c vmw_stdu_populate_update(cmd, stdu->base.unit, unit 339 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c cmd->body.stid = stdu->base.unit; unit 494 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c container_of(dirty->unit, typeof(*stdu), base); unit 520 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c vmw_stdu_populate_update(&suffix[1], stdu->base.unit, unit 576 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c container_of(dirty->unit, typeof(*stdu), base); unit 635 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c vmw_stdu_populate_update(cmd, stdu->base.unit, unit 753 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c container_of(dirty->unit, typeof(*stdu), base); unit 791 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c container_of(dirty->unit, typeof(*stdu), base); unit 817 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c vmw_stdu_populate_update(update, stdu->base.unit, sdirty->left, unit 1255 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c vmw_stdu_populate_update(&suffix[1], stdu->base.unit, bb->x1, bb->x2, unit 1340 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c vmw_stdu_populate_update(cmd_update, stdu->base.unit, unit 1519 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c vmw_stdu_populate_update(cmd, update->du->unit, bb->x1, bb->x2, bb->y1, unit 1725 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c static int vmw_stdu_init(struct vmw_private *dev_priv, unsigned unit) unit 1740 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c stdu->base.unit = unit; unit 1747 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c stdu->base.pref_active = (unit == 0); unit 1804 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c encoder->possible_crtcs = (1 << unit); unit 951 drivers/gpu/ipu-v3/ipu-common.c char *unit; unit 958 drivers/gpu/ipu-v3/ipu-common.c unit = "cpmem"; unit 965 drivers/gpu/ipu-v3/ipu-common.c unit = "csi0"; unit 972 drivers/gpu/ipu-v3/ipu-common.c unit = "csi1"; unit 980 drivers/gpu/ipu-v3/ipu-common.c unit = "ic"; unit 988 drivers/gpu/ipu-v3/ipu-common.c unit = "vdi"; unit 994 drivers/gpu/ipu-v3/ipu-common.c unit = "image_convert"; unit 1001 drivers/gpu/ipu-v3/ipu-common.c unit = "di0"; unit 1008 drivers/gpu/ipu-v3/ipu-common.c unit = "di1"; unit 1015 drivers/gpu/ipu-v3/ipu-common.c unit = "dc_template"; unit 1022 drivers/gpu/ipu-v3/ipu-common.c unit = "dmfc"; unit 1028 drivers/gpu/ipu-v3/ipu-common.c unit = "dp"; unit 1035 drivers/gpu/ipu-v3/ipu-common.c unit = "smfc"; unit 1064 drivers/gpu/ipu-v3/ipu-common.c dev_err(&pdev->dev, "init %s failed with %d\n", unit, ret); unit 334 drivers/hid/hid-core.c field->unit = parser->global.unit; unit 432 drivers/hid/hid-core.c parser->global.unit = item_udata(item); unit 555 drivers/hid/hid-debug.c if (field->unit) { unit 567 drivers/hid/hid-debug.c __u32 data = field->unit; unit 226 drivers/hid/hid-input.c if (field->unit == 0x11) { /* If centimeters */ unit 229 drivers/hid/hid-input.c } else if (field->unit == 0x13) { /* If inches */ unit 247 drivers/hid/hid-input.c if (field->unit == 0x14) { /* If degrees */ unit 254 drivers/hid/hid-input.c } else if (field->unit != 0x12) { /* If not radians */ unit 495 drivers/hid/hid-sensor-custom.c sensor_field->attribute.units = field->unit; unit 91 drivers/hid/hid-sensor-hub.c info->units = field->unit; unit 777 drivers/hid/usbhid/hiddev.c finfo.unit = field->unit; unit 199 drivers/hid/wacom_sys.c unsigned unit, int exponent) unit 204 drivers/hid/wacom_sys.c .unit = unit, unit 457 drivers/hid/wacom_sys.c features->unit = field->unit; unit 468 drivers/hid/wacom_sys.c features->unit = field->unit; unit 2132 drivers/hid/wacom_sys.c if (!features->unit) { unit 2133 drivers/hid/wacom_sys.c features->unit = 0x11; unit 2139 drivers/hid/wacom_sys.c features->unit, unit 2143 drivers/hid/wacom_sys.c features->unit, unit 265 drivers/hid/wacom_wac.h unsigned unit; unit 389 drivers/hwmon/aspeed-pwm-tacho.c u8 div_high, u8 div_low, u8 unit) unit 393 drivers/hwmon/aspeed-pwm-tacho.c (unit << type_params[type].unit_value)); unit 441 drivers/hwmon/aspeed-pwm-tacho.c u8 mode, u16 unit, u8 division) unit 444 drivers/hwmon/aspeed-pwm-tacho.c (unit << TYPE_CTRL_FAN_PERIOD) | unit 450 drivers/hwmon/aspeed-pwm-tacho.c TYPE_CTRL_FAN1_MASK, unit << 16); unit 118 drivers/ide/aec62xx.c u8 unit = drive->dn & 1; unit 131 drivers/ide/aec62xx.c tmp1 = ((0x00 << (4*unit)) | (ultra & ~(7 << (4*unit)))); unit 133 drivers/ide/aec62xx.c tmp2 = ((ultra_conf << (4*unit)) | (tmp1 & ~(7 << (4*unit)))); unit 70 drivers/ide/alim15x3.c u8 unit = drive->dn & 1, udma; unit 71 drivers/ide/alim15x3.c int shift = 4 * unit; unit 90 drivers/ide/alim15x3.c pci_write_config_byte(dev, port + unit + 2, unit 154 drivers/ide/cmd64x.c u8 unit = drive->dn & 0x01; unit 159 drivers/ide/cmd64x.c regU &= ~(unit ? 0xCA : 0x35); unit 163 drivers/ide/cmd64x.c regU |= unit ? 0x0A : 0x05; unit 166 drivers/ide/cmd64x.c regU |= unit ? 0x4A : 0x15; unit 169 drivers/ide/cmd64x.c regU |= unit ? 0x8A : 0x25; unit 172 drivers/ide/cmd64x.c regU |= unit ? 0x42 : 0x11; unit 175 drivers/ide/cmd64x.c regU |= unit ? 0x82 : 0x21; unit 178 drivers/ide/cmd64x.c regU |= unit ? 0xC2 : 0x31; unit 76 drivers/ide/cs5535.c u8 unit = drive->dn & 1; unit 95 drivers/ide/cs5535.c wrmsr(unit ? ATAC_CH0D1_PIO : ATAC_CH0D0_PIO, reg, 0); unit 98 drivers/ide/cs5535.c rdmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, dummy); unit 104 drivers/ide/cs5535.c wrmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, 0); unit 108 drivers/ide/cs5535.c rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); unit 109 drivers/ide/cs5535.c wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, unit 112 drivers/ide/cs5535.c rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); unit 123 drivers/ide/cs5535.c wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, 0); unit 86 drivers/ide/ide-dma-sff.c u8 unit = drive->dn & 1; unit 90 drivers/ide/ide-dma-sff.c dma_stat |= (1 << (5 + unit)); unit 92 drivers/ide/ide-dma-sff.c dma_stat &= ~(1 << (5 + unit)); unit 914 drivers/ide/ide-probe.c int unit = *part >> PARTN_BITS; unit 915 drivers/ide/ide-probe.c ide_drive_t *drive = hwif->devices[unit]; unit 967 drivers/ide/ide-probe.c unsigned int unit = drive->dn & 1; unit 970 drivers/ide/ide-probe.c disk->first_minor = unit << PARTN_BITS; unit 971 drivers/ide/ide-probe.c sprintf(disk->disk_name, "hd%c", 'a' + hwif->index * MAX_DRIVES + unit); unit 93 drivers/ide/ide-timings.c #define ENOUGH(v, unit) (((v) - 1) / (unit) + 1) unit 94 drivers/ide/ide-timings.c #define EZ(v, unit) ((v) ? ENOUGH((v) * 1000, unit) : 0) unit 281 drivers/ide/ide.c static void ide_dev_apply_params(ide_drive_t *drive, u8 unit) unit 283 drivers/ide/ide.c int i = drive->hwif->index * MAX_DRIVES + unit; unit 144 drivers/ide/it821x.c u8 unit = drive->dn & 1, conf; unit 153 drivers/ide/it821x.c pci_write_config_byte(dev, 0x56 + 4 * channel + unit, conf); unit 175 drivers/ide/it821x.c u8 unit = drive->dn & 1, v; unit 216 drivers/ide/it821x.c if(pair && itdev->udma[1-unit] != UDMA_OFF) { unit 217 drivers/ide/it821x.c it821x_program_udma(pair, itdev->udma[1-unit]); unit 218 drivers/ide/it821x.c it821x_program(pair, itdev->pio[1-unit]); unit 224 drivers/ide/it821x.c if(itdev->udma[unit] != UDMA_OFF) { unit 225 drivers/ide/it821x.c it821x_program_udma(drive, itdev->udma[unit]); unit 226 drivers/ide/it821x.c it821x_program(drive, itdev->pio[unit]); unit 244 drivers/ide/it821x.c u8 unit = drive->dn & 1, set_pio = pio; unit 263 drivers/ide/it821x.c itdev->want[unit][1] = pio_want[set_pio]; unit 264 drivers/ide/it821x.c itdev->want[unit][0] = 1; /* PIO is lowest priority */ unit 265 drivers/ide/it821x.c itdev->pio[unit] = pio_timings[set_pio]; unit 267 drivers/ide/it821x.c it821x_program(drive, itdev->pio[unit]); unit 286 drivers/ide/it821x.c u8 unit = drive->dn & 1, channel = hwif->channel, conf; unit 291 drivers/ide/it821x.c itdev->want[unit][1] = mwdma_want[mode_wanted]; unit 292 drivers/ide/it821x.c itdev->want[unit][0] = 2; /* MWDMA is low priority */ unit 293 drivers/ide/it821x.c itdev->mwdma[unit] = dma[mode_wanted]; unit 294 drivers/ide/it821x.c itdev->udma[unit] = UDMA_OFF; unit 301 drivers/ide/it821x.c conf |= 1 << (3 + 2 * channel + unit); unit 323 drivers/ide/it821x.c u8 unit = drive->dn & 1, channel = hwif->channel, conf; unit 328 drivers/ide/it821x.c itdev->want[unit][1] = udma_want[mode_wanted]; unit 329 drivers/ide/it821x.c itdev->want[unit][0] = 3; /* UDMA is high priority */ unit 330 drivers/ide/it821x.c itdev->mwdma[unit] = MWDMA_OFF; unit 331 drivers/ide/it821x.c itdev->udma[unit] = udma[mode_wanted]; unit 333 drivers/ide/it821x.c itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ unit 340 drivers/ide/it821x.c conf &= ~ (1 << (3 + 2 * channel + unit)); unit 344 drivers/ide/it821x.c it821x_program_udma(drive, itdev->udma[unit]); unit 365 drivers/ide/it821x.c u8 unit = drive->dn & 1; unit 367 drivers/ide/it821x.c if(itdev->mwdma[unit] != MWDMA_OFF) unit 368 drivers/ide/it821x.c it821x_program(drive, itdev->mwdma[unit]); unit 369 drivers/ide/it821x.c else if(itdev->udma[unit] != UDMA_OFF && itdev->timing10) unit 370 drivers/ide/it821x.c it821x_program_udma(drive, itdev->udma[unit]); unit 388 drivers/ide/it821x.c u8 unit = drive->dn & 1; unit 390 drivers/ide/it821x.c if(itdev->mwdma[unit] != MWDMA_OFF) unit 391 drivers/ide/it821x.c it821x_program(drive, itdev->pio[unit]); unit 778 drivers/ide/pmac.c u8 unit = drive->dn & 1; unit 781 drivers/ide/pmac.c timings = &pmif->timings[unit]; unit 782 drivers/ide/pmac.c timings2 = &pmif->timings[unit+2]; unit 1534 drivers/ide/pmac.c u8 unit = drive->dn & 1, ata4 = (pmif->kind == controller_kl_ata4); unit 1541 drivers/ide/pmac.c if (ata4 && (pmif->timings[unit] & TR_66_UDMA_EN)) { unit 1542 drivers/ide/pmac.c writel(pmif->timings[unit] + (write ? 0 : 0x00800000UL), unit 358 drivers/ide/qd65xx.c u8 config, unit, control; unit 366 drivers/ide/qd65xx.c unit = ! (config & QD_CONFIG_IDE_BASEPORT); unit 368 drivers/ide/qd65xx.c if (unit) unit 143 drivers/ide/serverworks.c u8 unit = drive->dn & 1; unit 153 drivers/ide/serverworks.c ultra_timing &= ~(0x0F << (4*unit)); unit 158 drivers/ide/serverworks.c ultra_timing |= (udma_modes[speed - XFER_UDMA_0] << (4 * unit)); unit 118 drivers/ide/siimage.c u8 unit = drive->dn & 1; unit 125 drivers/ide/siimage.c base |= unit << unit; unit 257 drivers/ide/siimage.c u8 unit = drive->dn & 1; unit 279 drivers/ide/siimage.c mode &= ~(unit ? 0x30 : 0x03); unit 283 drivers/ide/siimage.c mode |= unit ? 0x10 : 0x01; unit 307 drivers/ide/siimage.c u8 mode = 0, unit = drive->dn & 1; unit 320 drivers/ide/siimage.c mode &= ~(unit ? 0x30 : 0x03); unit 330 drivers/ide/siimage.c mode |= unit ? 0x30 : 0x03; unit 333 drivers/ide/siimage.c mode |= unit ? 0x20 : 0x02; unit 30 drivers/ide/triflex.c u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; unit 66 drivers/ide/triflex.c triflex_timings &= ~(0xFFFF << (16 * unit)); unit 67 drivers/ide/triflex.c triflex_timings |= (timing << (16 * unit)); unit 203 drivers/ide/tx4939ide.c u8 unit = drive->dn; unit 208 drivers/ide/tx4939ide.c dma_stat |= (1 << (5 + unit)); unit 210 drivers/ide/tx4939ide.c dma_stat &= ~(1 << (5 + unit)); unit 23 drivers/iio/common/hid-sensors/hid-sensor-attributes.c int unit; /* 0 for default others from HID sensor spec */ unit 365 drivers/iio/common/hid-sensors/hid-sensor-attributes.c unit_conversion[i].unit == attr_info->units) { unit 12401 drivers/infiniband/hw/hfi1/chip.c dd->unit, cur_tx, cur_rx, dd->last_tx, dd->last_rx); unit 12410 drivers/infiniband/hw/hfi1/chip.c dd->unit); unit 12414 drivers/infiniband/hw/hfi1/chip.c "[%d] total flits 0x%llx limit 0x%llx\n", dd->unit, unit 12418 drivers/infiniband/hw/hfi1/chip.c dd->unit); unit 12424 drivers/infiniband/hw/hfi1/chip.c hfi1_cdbg(CNTR, "[%d] Updating dd and ppd counters", dd->unit); unit 12462 drivers/infiniband/hw/hfi1/chip.c dd->unit, dd->last_tx, dd->last_rx); unit 12465 drivers/infiniband/hw/hfi1/chip.c hfi1_cdbg(CNTR, "[%d] No update necessary", dd->unit); unit 12711 drivers/infiniband/hw/hfi1/chip.c WQ_MEM_RECLAIM, dd->unit); unit 14723 drivers/infiniband/hw/hfi1/chip.c dd->unit != peer->unit) unit 229 drivers/infiniband/hw/hfi1/common.h __u16 unit; /* which device */ unit 1244 drivers/infiniband/hw/hfi1/debugfs.c int unit = dd->unit; unit 1249 drivers/infiniband/hw/hfi1/debugfs.c snprintf(name, sizeof(name), "%s_%d", class_name(), unit); unit 1250 drivers/infiniband/hw/hfi1/debugfs.c snprintf(link, sizeof(link), "%d", unit); unit 1354 drivers/infiniband/hw/hfi1/driver.c int hfi1_reset_device(int unit) unit 1357 drivers/infiniband/hw/hfi1/driver.c struct hfi1_devdata *dd = hfi1_lookup(unit); unit 1366 drivers/infiniband/hw/hfi1/driver.c dd_dev_info(dd, "Reset on unit %u requested\n", unit); unit 1371 drivers/infiniband/hw/hfi1/driver.c unit); unit 1401 drivers/infiniband/hw/hfi1/driver.c unit, ret); unit 1404 drivers/infiniband/hw/hfi1/driver.c unit); unit 1157 drivers/infiniband/hw/hfi1/file_ops.c cinfo.unit = uctxt->dd->unit; unit 1696 drivers/infiniband/hw/hfi1/file_ops.c snprintf(name, sizeof(name), "%s_%d", class_name(), dd->unit); unit 1697 drivers/infiniband/hw/hfi1/file_ops.c ret = hfi1_cdev_init(dd->unit, name, &hfi1_file_ops, unit 1212 drivers/infiniband/hw/hfi1/hfi.h int unit; /* unit # of this chip */ unit 1465 drivers/infiniband/hw/hfi1/hfi.h struct hfi1_devdata *hfi1_lookup(int unit); unit 811 drivers/infiniband/hw/hfi1/init.c dd->unit, pidx); unit 825 drivers/infiniband/hw/hfi1/init.c dd->unit, pidx); unit 1022 drivers/infiniband/hw/hfi1/init.c struct hfi1_devdata *hfi1_lookup(int unit) unit 1024 drivers/infiniband/hw/hfi1/init.c return xa_load(&hfi1_dev_table, unit); unit 1229 drivers/infiniband/hw/hfi1/init.c __xa_erase(&hfi1_dev_table, dd->unit); unit 1295 drivers/infiniband/hw/hfi1/init.c ret = xa_alloc_irq(&hfi1_dev_table, &dd->unit, dd, xa_limit_32b, unit 1302 drivers/infiniband/hw/hfi1/init.c rvt_set_ibdev_name(&dd->verbs_dev.rdi, "%s_%d", class_name(), dd->unit); unit 150 drivers/infiniband/hw/hfi1/msix.c snprintf(name, sizeof(name), DRIVER_NAME "_%d", dd->unit); unit 155 drivers/infiniband/hw/hfi1/msix.c dd->unit, idx); unit 160 drivers/infiniband/hw/hfi1/msix.c dd->unit, idx); unit 591 drivers/infiniband/hw/hfi1/sysfs.c ret = hfi1_reset_device(dd->unit); unit 209 drivers/infiniband/hw/hfi1/user_sdma.c snprintf(buf, 64, "txreq-kmem-cache-%u-%u-%u", dd->unit, uctxt->ctxt, unit 366 drivers/infiniband/hw/hfi1/user_sdma.c dd->unit, uctxt->ctxt, fd->subctxt, unit 373 drivers/infiniband/hw/hfi1/user_sdma.c dd->unit, uctxt->ctxt, fd->subctxt, ret); unit 382 drivers/infiniband/hw/hfi1/user_sdma.c dd->unit, uctxt->ctxt, fd->subctxt, info.comp_idx); unit 393 drivers/infiniband/hw/hfi1/user_sdma.c dd->unit, uctxt->ctxt, fd->subctxt, info.comp_idx, unit 401 drivers/infiniband/hw/hfi1/user_sdma.c dd->unit, uctxt->ctxt, fd->subctxt, info.comp_idx); unit 408 drivers/infiniband/hw/hfi1/user_sdma.c dd->unit, uctxt->ctxt, fd->subctxt, unit 116 drivers/infiniband/hw/hfi1/user_sdma.h hfi1_cdbg(SDMA, "[%u:%u:%u:%u] " fmt, (req)->pq->dd->unit, \ unit 127 drivers/infiniband/hw/hfi1/verbs_txreq.c snprintf(buf, sizeof(buf), "hfi1_%u_vtxreq_cache", dd->unit); unit 309 drivers/infiniband/hw/hfi1/vnic_sdma.c snprintf(buf, sizeof(buf), "hfi1_%u_vnic_txreq_cache", dd->unit); unit 1233 drivers/infiniband/hw/hns/hns_roce_hem.c static u32 hem_list_calc_ba_range(int hopnum, int bt_level, int unit) unit 1255 drivers/infiniband/hw/hns/hns_roce_hem.c step = step * unit; unit 1267 drivers/infiniband/hw/hns/hns_roce_hem.c int region_cnt, int unit) unit 1277 drivers/infiniband/hw/hns/hns_roce_hem.c step = hem_list_calc_ba_range(r->hopnum, 1, unit); unit 1289 drivers/infiniband/hw/hns/hns_roce_hem.c const struct hns_roce_buf_region *r, int unit, unit 1332 drivers/infiniband/hw/hns/hns_roce_hem.c step = hem_list_calc_ba_range(hopnum, level, unit); unit 1340 drivers/infiniband/hw/hns/hns_roce_hem.c cur = hem_list_alloc_item(hr_dev, start_aligned, end, unit, unit 1374 drivers/infiniband/hw/hns/hns_roce_hem.c struct hns_roce_hem_list *hem_list, int unit, unit 1401 drivers/infiniband/hw/hns/hns_roce_hem.c unit, true, 0); unit 1413 drivers/infiniband/hw/hns/hns_roce_hem.c for (i = 0; i < region_cnt && total < unit; i++) { unit 1438 drivers/infiniband/hw/hns/hns_roce_hem.c step = hem_list_calc_ba_range(r->hopnum, 1, unit); unit 1479 drivers/infiniband/hw/hns/hns_roce_hem.c int unit; unit 1488 drivers/infiniband/hw/hns/hns_roce_hem.c unit = (1 << hem_list->bt_pg_shift) / BA_BYTE_LEN; unit 1495 drivers/infiniband/hw/hns/hns_roce_hem.c for (ofs = r->offset; ofs < end; ofs += unit) { unit 1496 drivers/infiniband/hw/hns/hns_roce_hem.c ret = hem_list_alloc_mid_bt(hr_dev, r, unit, ofs, unit 1507 drivers/infiniband/hw/hns/hns_roce_hem.c ret = hem_list_alloc_root_bt(hr_dev, hem_list, unit, regions, unit 139 drivers/infiniband/hw/hns/hns_roce_hem.h int region_cnt, int unit); unit 1015 drivers/infiniband/hw/qib/qib.h int unit; /* unit # of this chip */ unit 1110 drivers/infiniband/hw/qib/qib.h extern struct qib_devdata *qib_lookup(int unit); unit 1494 drivers/infiniband/hw/qib/qib.h rvt_get_ibdev_name(&(dd)->verbs_dev.rdi), (dd)->unit, (port), \ unit 421 drivers/infiniband/hw/qib/qib_common.h __u16 unit; /* unit (chip) assigned to caller */ unit 518 drivers/infiniband/hw/qib/qib_common.h __u16 unit; unit 246 drivers/infiniband/hw/qib/qib_debugfs.c snprintf(name, sizeof(name), "qib%d", dd_from_dev(ibd)->unit); unit 173 drivers/infiniband/hw/qib/qib_diag.c snprintf(name, sizeof(name), "ipath_diag%d", dd->unit); unit 174 drivers/infiniband/hw/qib/qib_diag.c ret = qib_cdev_init(QIB_DIAG_MINOR_BASE + dd->unit, name, unit 510 drivers/infiniband/hw/qib/qib_diag.c int unit = iminor(in) - QIB_DIAG_MINOR_BASE; unit 517 drivers/infiniband/hw/qib/qib_diag.c dd = qib_lookup(unit); unit 568 drivers/infiniband/hw/qib/qib_diag.c dd = qib_lookup(dp.unit); unit 648 drivers/infiniband/hw/qib/qib_driver.c dd->unit, ppd->port, lid); unit 738 drivers/infiniband/hw/qib/qib_driver.c int qib_reset_device(int unit) unit 741 drivers/infiniband/hw/qib/qib_driver.c struct qib_devdata *dd = qib_lookup(unit); unit 751 drivers/infiniband/hw/qib/qib_driver.c qib_devinfo(dd->pcidev, "Reset on unit %u requested\n", unit); unit 756 drivers/infiniband/hw/qib/qib_driver.c unit); unit 795 drivers/infiniband/hw/qib/qib_driver.c unit, ret); unit 799 drivers/infiniband/hw/qib/qib_driver.c unit); unit 151 drivers/infiniband/hw/qib/qib_eeprom.c int t = dd->unit; unit 160 drivers/infiniband/hw/qib/qib_file_ops.c kinfo->spi_unit = dd->unit; unit 1391 drivers/infiniband/hw/qib/qib_file_ops.c static int find_free_ctxt(int unit, struct file *fp, unit 1394 drivers/infiniband/hw/qib/qib_file_ops.c struct qib_devdata *dd = qib_lookup(unit); unit 1528 drivers/infiniband/hw/qib/qib_file_ops.c static int find_hca(unsigned int cpu, int *unit) unit 1532 drivers/infiniband/hw/qib/qib_file_ops.c *unit = -1; unit 1553 drivers/infiniband/hw/qib/qib_file_ops.c *unit = ndev; unit 1571 drivers/infiniband/hw/qib/qib_file_ops.c dd->unit, unit 1625 drivers/infiniband/hw/qib/qib_file_ops.c int unit; unit 1630 drivers/infiniband/hw/qib/qib_file_ops.c if (!find_hca(cpu, &unit) && unit >= 0) unit 1631 drivers/infiniband/hw/qib/qib_file_ops.c if (!find_free_ctxt(unit, fp, uinfo)) { unit 1687 drivers/infiniband/hw/qib/qib_file_ops.c dd->unit, rcd->ctxt); unit 1889 drivers/infiniband/hw/qib/qib_file_ops.c info.unit = rcd->dd->unit; unit 2372 drivers/infiniband/hw/qib/qib_file_ops.c snprintf(name, sizeof(name), "ipath%d", dd->unit); unit 2373 drivers/infiniband/hw/qib/qib_file_ops.c ret = qib_cdev_init(dd->unit + 1, name, &qib_file_ops, unit 363 drivers/infiniband/hw/qib/qib_fs.c char unit[10]; unit 367 drivers/infiniband/hw/qib/qib_fs.c snprintf(unit, sizeof(unit), "%u", dd->unit); unit 368 drivers/infiniband/hw/qib/qib_fs.c ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, unit 371 drivers/infiniband/hw/qib/qib_fs.c pr_err("create_file(%s) failed: %d\n", unit, ret); unit 380 drivers/infiniband/hw/qib/qib_fs.c unit, ret); unit 387 drivers/infiniband/hw/qib/qib_fs.c unit, ret); unit 394 drivers/infiniband/hw/qib/qib_fs.c unit, "portcounter_names", ret); unit 406 drivers/infiniband/hw/qib/qib_fs.c unit, fname, ret); unit 416 drivers/infiniband/hw/qib/qib_fs.c unit, fname, ret); unit 425 drivers/infiniband/hw/qib/qib_fs.c unit, ret); unit 465 drivers/infiniband/hw/qib/qib_fs.c char unit[10]; unit 470 drivers/infiniband/hw/qib/qib_fs.c snprintf(unit, sizeof(unit), "%u", dd->unit); unit 471 drivers/infiniband/hw/qib/qib_fs.c dir = lookup_one_len(unit, root, strlen(unit)); unit 475 drivers/infiniband/hw/qib/qib_fs.c pr_err("Lookup of %s failed\n", unit); unit 1764 drivers/infiniband/hw/qib/qib_iba6120.c qib_dev_err(dd, "Resetting InfiniPath unit %u\n", dd->unit); unit 2895 drivers/infiniband/hw/qib/qib_iba6120.c ppd->dd->unit, ppd->port); unit 2900 drivers/infiniband/hw/qib/qib_iba6120.c ppd->dd->unit, ppd->port); unit 919 drivers/infiniband/hw/qib/qib_iba7220.c ppd->dd->unit, ppd->port, sbuf[2], sbuf[1], unit 924 drivers/infiniband/hw/qib/qib_iba7220.c qib_dev_err(dd, "IB%u:%u SDmaUnexpData\n", ppd->dd->unit, unit 2077 drivers/infiniband/hw/qib/qib_iba7220.c qib_dev_err(dd, "Resetting InfiniPath unit %u\n", dd->unit); unit 2679 drivers/infiniband/hw/qib/qib_iba7220.c ppd->dd->unit, ppd->port); unit 2686 drivers/infiniband/hw/qib/qib_iba7220.c ppd->dd->unit, ppd->port); unit 1596 drivers/infiniband/hw/qib/qib_iba7322.c qib_dev_err(dd, "IB%u:%u SDmaUnexpData\n", dd->unit, unit 1845 drivers/infiniband/hw/qib/qib_iba7322.c ppd->dd->unit, ppd->port, ibclt); unit 3333 drivers/infiniband/hw/qib/qib_iba7322.c dd->unit, pci_irq_vector(dd->pcidev, msixnum)); unit 3463 drivers/infiniband/hw/qib/qib_iba7322.c dd->unit, unit 3483 drivers/infiniband/hw/qib/qib_iba7322.c dd->unit); unit 3616 drivers/infiniband/hw/qib/qib_iba7322.c dd->unit); unit 3637 drivers/infiniband/hw/qib/qib_iba7322.c qib_dev_err(dd, "Resetting InfiniPath unit %u\n", dd->unit); unit 4332 drivers/infiniband/hw/qib/qib_iba7322.c ppd->dd->unit, ppd->port); unit 4340 drivers/infiniband/hw/qib/qib_iba7322.c ppd->dd->unit, ppd->port); unit 6052 drivers/infiniband/hw/qib/qib_iba7322.c u32 pidx, unit, port, deflt, h1; unit 6070 drivers/infiniband/hw/qib/qib_iba7322.c unit = simple_strtoul(str, &nxt, 0); unit 6103 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; dd->unit == unit && pidx < dd->num_pports; unit 6570 drivers/infiniband/hw/qib/qib_iba7322.c dd->unit, ppd->port); unit 7675 drivers/infiniband/hw/qib/qib_iba7322.c ppd->dd->unit, ppd->port, idx); unit 7829 drivers/infiniband/hw/qib/qib_iba7322.c ppd->dd->unit, ppd->port); unit 7833 drivers/infiniband/hw/qib/qib_iba7322.c ppd->dd->unit, ppd->port); unit 587 drivers/infiniband/hw/qib/qib_init.c dd->unit, pidx); unit 787 drivers/infiniband/hw/qib/qib_init.c struct qib_devdata *qib_lookup(int unit) unit 789 drivers/infiniband/hw/qib/qib_init.c return xa_load(&qib_dev_table, unit); unit 1037 drivers/infiniband/hw/qib/qib_init.c __xa_erase(&qib_dev_table, dd->unit); unit 1089 drivers/infiniband/hw/qib/qib_init.c ret = xa_alloc_irq(&qib_dev_table, &dd->unit, dd, xa_limit_32b, unit 1096 drivers/infiniband/hw/qib/qib_init.c rvt_set_ibdev_name(&dd->verbs_dev.rdi, "%s%d", "qib", dd->unit); unit 677 drivers/infiniband/hw/qib/qib_sysfs.c ret = qib_reset_device(dd->unit); unit 821 drivers/infiniband/hw/qib/qib_sysfs.c dd->unit, port_num); unit 183 drivers/infiniband/hw/qib/qib_user_sdma.c qib_user_sdma_queue_create(struct device *dev, int unit, int ctxt, int sctxt) unit 204 drivers/infiniband/hw/qib/qib_user_sdma.c "qib-user-sdma-pkts-%u-%02u.%02u", unit, ctxt, sctxt); unit 213 drivers/infiniband/hw/qib/qib_user_sdma.c "qib-user-sdma-headers-%u-%02u.%02u", unit, ctxt, sctxt); unit 37 drivers/infiniband/hw/qib/qib_user_sdma.h qib_user_sdma_queue_create(struct device *dev, int unit, int port, int sport); unit 41 drivers/interconnect/qcom/sdm845.c __le32 unit; unit 512 drivers/interconnect/qcom/sdm845.c bcm->aux_data.unit = le32_to_cpu(data->unit); unit 614 drivers/interconnect/qcom/sdm845.c do_div(temp, bcm->aux_data.unit); unit 618 drivers/interconnect/qcom/sdm845.c do_div(temp, bcm->aux_data.unit); unit 919 drivers/isdn/capi/capi.c int unit = -ESRCH; unit 929 drivers/isdn/capi/capi.c unit = mp->minor; unit 932 drivers/isdn/capi/capi.c return unit; unit 843 drivers/isdn/hardware/mISDN/hfcmulti.c unsigned int unit; unit 863 drivers/isdn/hardware/mISDN/hfcmulti.c unit = ch % 4; unit 868 drivers/isdn/hardware/mISDN/hfcmulti.c vpm_out(hc, unit, timeslot, 0x7e); unit 875 drivers/isdn/hardware/mISDN/hfcmulti.c unsigned int unit; unit 896 drivers/isdn/hardware/mISDN/hfcmulti.c unit = ch % 4; unit 901 drivers/isdn/hardware/mISDN/hfcmulti.c vpm_out(hc, unit, timeslot, 0x01); unit 647 drivers/md/md.c static struct mddev *mddev_find(dev_t unit) unit 651 drivers/md/md.c if (unit && MAJOR(unit) != MD_MAJOR) unit 652 drivers/md/md.c unit &= ~((1<<MdpMinorShift)-1); unit 657 drivers/md/md.c if (unit) { unit 659 drivers/md/md.c if (mddev->unit == unit) { unit 692 drivers/md/md.c if (mddev->unit == dev) { unit 697 drivers/md/md.c new->unit = dev; unit 710 drivers/md/md.c new->unit = unit; unit 711 drivers/md/md.c if (MAJOR(unit) == MD_MAJOR) unit 712 drivers/md/md.c new->md_minor = MINOR(unit); unit 714 drivers/md/md.c new->md_minor = MINOR(unit) >> MdpMinorShift; unit 5440 drivers/md/md.c int unit; unit 5446 drivers/md/md.c partitioned = (MAJOR(mddev->unit) != MD_MAJOR); unit 5448 drivers/md/md.c unit = MINOR(mddev->unit) >> shift; unit 5495 drivers/md/md.c disk->major = MAJOR(mddev->unit); unit 5496 drivers/md/md.c disk->first_minor = unit << shift; unit 5500 drivers/md/md.c sprintf(disk->disk_name, "md_d%d", unit); unit 5502 drivers/md/md.c sprintf(disk->disk_name, "md%d", unit); unit 6277 drivers/md/md.c int unit; unit 6299 drivers/md/md.c unit = MINOR(dev) >> MdpMinorShift; unit 6302 drivers/md/md.c unit = MINOR(dev); unit 6304 drivers/md/md.c if (rdev0->preferred_minor != unit) { unit 277 drivers/md/md.h dev_t unit; unit 632 drivers/media/dvb-frontends/mb86a16.c int unit) unit 700 drivers/media/dvb-frontends/mb86a16.c if (unit == 0) { /* MHz */ unit 252 drivers/media/firewire/firedtv-fw.c static int node_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) unit 262 drivers/media/firewire/firedtv-fw.c dev_set_drvdata(&unit->device, fdtv); unit 263 drivers/media/firewire/firedtv-fw.c fdtv->device = &unit->device; unit 273 drivers/media/firewire/firedtv-fw.c name_len = fw_csr_string(unit->directory, CSR_MODEL, unit 281 drivers/media/firewire/firedtv-fw.c err = fdtv_register_rc(fdtv, &unit->device); unit 311 drivers/media/firewire/firedtv-fw.c static void node_remove(struct fw_unit *unit) unit 313 drivers/media/firewire/firedtv-fw.c struct firedtv *fdtv = dev_get_drvdata(&unit->device); unit 326 drivers/media/firewire/firedtv-fw.c static void node_update(struct fw_unit *unit) unit 328 drivers/media/firewire/firedtv-fw.c struct firedtv *fdtv = dev_get_drvdata(&unit->device); unit 50 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 96 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 142 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 202 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 262 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 322 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 382 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 438 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 498 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 544 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 590 drivers/media/pci/saa7164/saa7164-cards.c .unit = {{ unit 873 drivers/media/pci/saa7164/saa7164-cards.c struct saa7164_unit *unit; unit 877 drivers/media/pci/saa7164/saa7164-cards.c unit = &saa7164_boards[dev->board].unit[i]; unit 879 drivers/media/pci/saa7164/saa7164-cards.c if (unit->type == SAA7164_UNIT_UNDEFINED) unit 881 drivers/media/pci/saa7164/saa7164-cards.c if ((bus->nr == unit->i2c_bus_nr) && unit 882 drivers/media/pci/saa7164/saa7164-cards.c (addr == unit->i2c_bus_addr)) unit 883 drivers/media/pci/saa7164/saa7164-cards.c return unit->id; unit 900 drivers/media/pci/saa7164/saa7164-cards.c struct saa7164_unit *unit; unit 904 drivers/media/pci/saa7164/saa7164-cards.c unit = &saa7164_boards[dev->board].unit[i]; unit 906 drivers/media/pci/saa7164/saa7164-cards.c if (unit->type == SAA7164_UNIT_UNDEFINED) unit 909 drivers/media/pci/saa7164/saa7164-cards.c if ((bus->nr == unit->i2c_bus_nr) && unit 910 drivers/media/pci/saa7164/saa7164-cards.c (addr == unit->i2c_bus_addr)) unit 911 drivers/media/pci/saa7164/saa7164-cards.c return unit->i2c_reg_len; unit 925 drivers/media/pci/saa7164/saa7164-cards.c struct saa7164_unit *unit; unit 932 drivers/media/pci/saa7164/saa7164-cards.c unit = &saa7164_boards[dev->board].unit[i]; unit 934 drivers/media/pci/saa7164/saa7164-cards.c if (unit->type == SAA7164_UNIT_UNDEFINED) unit 937 drivers/media/pci/saa7164/saa7164-cards.c if (unitid == unit->id) unit 938 drivers/media/pci/saa7164/saa7164-cards.c return unit->name; unit 168 drivers/media/pci/saa7164/saa7164.h struct saa7164_unit unit[SAA7164_MAX_UNITS]; unit 680 drivers/media/platform/coda/coda-bit.c int size, unit; unit 688 drivers/media/platform/coda/coda-bit.c unit = 1; unit 692 drivers/media/platform/coda/coda-bit.c unit = 0; unit 697 drivers/media/platform/coda/coda-bit.c ((unit & CODA_SLICING_UNIT_MASK) << CODA_SLICING_UNIT_OFFSET) | unit 66 drivers/media/rc/img-ir/img-ir-hw.c unsigned int unit) unit 70 drivers/media/rc/img-ir/img-ir-hw.c if (unit) { unit 72 drivers/media/rc/img-ir/img-ir-hw.c range->min = (range->min*unit)/1000; unit 73 drivers/media/rc/img-ir/img-ir-hw.c range->max = (range->max*unit + 999)/1000; /* round up */ unit 78 drivers/media/rc/img-ir/img-ir-hw.c unsigned int unit) unit 80 drivers/media/rc/img-ir/img-ir-hw.c img_ir_timing_preprocess(&timing->pulse, unit); unit 81 drivers/media/rc/img-ir/img-ir-hw.c img_ir_timing_preprocess(&timing->space, unit); unit 85 drivers/media/rc/img-ir/img-ir-hw.c unsigned int unit) unit 87 drivers/media/rc/img-ir/img-ir-hw.c img_ir_symbol_timing_preprocess(&timings->ldr, unit); unit 88 drivers/media/rc/img-ir/img-ir-hw.c img_ir_symbol_timing_preprocess(&timings->s00, unit); unit 89 drivers/media/rc/img-ir/img-ir-hw.c img_ir_symbol_timing_preprocess(&timings->s01, unit); unit 90 drivers/media/rc/img-ir/img-ir-hw.c img_ir_symbol_timing_preprocess(&timings->s10, unit); unit 91 drivers/media/rc/img-ir/img-ir-hw.c img_ir_symbol_timing_preprocess(&timings->s11, unit); unit 93 drivers/media/rc/img-ir/img-ir-hw.c if (unit) unit 95 drivers/media/rc/img-ir/img-ir-hw.c timings->ft.ft_min = (timings->ft.ft_min*unit + 999)/1000; unit 326 drivers/media/rc/img-ir/img-ir-hw.c img_ir_timings_preprocess(&decoder->timings, decoder->unit); unit 330 drivers/media/rc/img-ir/img-ir-hw.c img_ir_timings_preprocess(&decoder->rtimings, decoder->unit); unit 168 drivers/media/rc/img-ir/img-ir-hw.h unsigned int unit; unit 57 drivers/media/rc/img-ir/img-ir-jvc.c .unit = 527500, /* 527.5 us */ unit 133 drivers/media/rc/img-ir/img-ir-nec.c .unit = 562500, /* 562.5 us */ unit 59 drivers/media/rc/img-ir/img-ir-rc5.c .unit = 888888, /* 1/36k*32=888.888microseconds */ unit 85 drivers/media/rc/img-ir/img-ir-sanyo.c .unit = 562500, /* 562.5 us */ unit 134 drivers/media/rc/img-ir/img-ir-sony.c .unit = 600000, /* 600 us */ unit 1856 drivers/media/usb/uvc/uvc_ctrl.c entity->id == xqry->unit) unit 1860 drivers/media/usb/uvc/uvc_ctrl.c if (entity->id != xqry->unit) { unit 1862 drivers/media/usb/uvc/uvc_ctrl.c xqry->unit); unit 1946 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(chain->dev, xqry->query, xqry->unit, unit 1001 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *unit; unit 1046 drivers/media/usb/uvc/uvc_driver.c unit = uvc_alloc_entity(UVC_VC_EXTENSION_UNIT, buffer[3], unit 1048 drivers/media/usb/uvc/uvc_driver.c if (unit == NULL) unit 1051 drivers/media/usb/uvc/uvc_driver.c memcpy(unit->extension.guidExtensionCode, &buffer[4], 16); unit 1052 drivers/media/usb/uvc/uvc_driver.c unit->extension.bNumControls = buffer[20]; unit 1053 drivers/media/usb/uvc/uvc_driver.c memcpy(unit->baSourceID, &buffer[22], p); unit 1054 drivers/media/usb/uvc/uvc_driver.c unit->extension.bControlSize = buffer[22+p]; unit 1055 drivers/media/usb/uvc/uvc_driver.c unit->extension.bmControls = (u8 *)unit + sizeof(*unit); unit 1056 drivers/media/usb/uvc/uvc_driver.c unit->extension.bmControlsType = (u8 *)unit + sizeof(*unit) unit 1058 drivers/media/usb/uvc/uvc_driver.c memcpy(unit->extension.bmControls, &buffer[23+p], 2*n); unit 1061 drivers/media/usb/uvc/uvc_driver.c usb_string(udev, buffer[24+p+2*n], unit->name, unit 1062 drivers/media/usb/uvc/uvc_driver.c sizeof(unit->name)); unit 1064 drivers/media/usb/uvc/uvc_driver.c sprintf(unit->name, "Extension %u", buffer[3]); unit 1066 drivers/media/usb/uvc/uvc_driver.c list_add_tail(&unit->list, &dev->entities); unit 1078 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *unit, *term; unit 1247 drivers/media/usb/uvc/uvc_driver.c unit = uvc_alloc_entity(buffer[2], buffer[3], p + 1, 0); unit 1248 drivers/media/usb/uvc/uvc_driver.c if (unit == NULL) unit 1251 drivers/media/usb/uvc/uvc_driver.c memcpy(unit->baSourceID, &buffer[5], p); unit 1254 drivers/media/usb/uvc/uvc_driver.c usb_string(udev, buffer[5+p], unit->name, unit 1255 drivers/media/usb/uvc/uvc_driver.c sizeof(unit->name)); unit 1257 drivers/media/usb/uvc/uvc_driver.c sprintf(unit->name, "Selector %u", buffer[3]); unit 1259 drivers/media/usb/uvc/uvc_driver.c list_add_tail(&unit->list, &dev->entities); unit 1273 drivers/media/usb/uvc/uvc_driver.c unit = uvc_alloc_entity(buffer[2], buffer[3], 2, n); unit 1274 drivers/media/usb/uvc/uvc_driver.c if (unit == NULL) unit 1277 drivers/media/usb/uvc/uvc_driver.c memcpy(unit->baSourceID, &buffer[4], 1); unit 1278 drivers/media/usb/uvc/uvc_driver.c unit->processing.wMaxMultiplier = unit 1280 drivers/media/usb/uvc/uvc_driver.c unit->processing.bControlSize = buffer[7]; unit 1281 drivers/media/usb/uvc/uvc_driver.c unit->processing.bmControls = (u8 *)unit + sizeof(*unit); unit 1282 drivers/media/usb/uvc/uvc_driver.c memcpy(unit->processing.bmControls, &buffer[8], n); unit 1284 drivers/media/usb/uvc/uvc_driver.c unit->processing.bmVideoStandards = buffer[9+n]; unit 1287 drivers/media/usb/uvc/uvc_driver.c usb_string(udev, buffer[8+n], unit->name, unit 1288 drivers/media/usb/uvc/uvc_driver.c sizeof(unit->name)); unit 1290 drivers/media/usb/uvc/uvc_driver.c sprintf(unit->name, "Processing %u", buffer[3]); unit 1292 drivers/media/usb/uvc/uvc_driver.c list_add_tail(&unit->list, &dev->entities); unit 1306 drivers/media/usb/uvc/uvc_driver.c unit = uvc_alloc_entity(buffer[2], buffer[3], p + 1, n); unit 1307 drivers/media/usb/uvc/uvc_driver.c if (unit == NULL) unit 1310 drivers/media/usb/uvc/uvc_driver.c memcpy(unit->extension.guidExtensionCode, &buffer[4], 16); unit 1311 drivers/media/usb/uvc/uvc_driver.c unit->extension.bNumControls = buffer[20]; unit 1312 drivers/media/usb/uvc/uvc_driver.c memcpy(unit->baSourceID, &buffer[22], p); unit 1313 drivers/media/usb/uvc/uvc_driver.c unit->extension.bControlSize = buffer[22+p]; unit 1314 drivers/media/usb/uvc/uvc_driver.c unit->extension.bmControls = (u8 *)unit + sizeof(*unit); unit 1315 drivers/media/usb/uvc/uvc_driver.c memcpy(unit->extension.bmControls, &buffer[23+p], n); unit 1318 drivers/media/usb/uvc/uvc_driver.c usb_string(udev, buffer[23+p+n], unit->name, unit 1319 drivers/media/usb/uvc/uvc_driver.c sizeof(unit->name)); unit 1321 drivers/media/usb/uvc/uvc_driver.c sprintf(unit->name, "Extension %u", buffer[3]); unit 1323 drivers/media/usb/uvc/uvc_driver.c list_add_tail(&unit->list, &dev->entities); unit 1346 drivers/media/usb/uvc/uvc_v4l2.c u8 unit; unit 1362 drivers/media/usb/uvc/uvc_v4l2.c .unit = v.unit, unit 28 drivers/media/usb/uvc/uvc_video.c static int __uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, unit 40 drivers/media/usb/uvc/uvc_video.c unit << 8 | intfnum, data, size, timeout); unit 67 drivers/media/usb/uvc/uvc_video.c int uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, unit 74 drivers/media/usb/uvc/uvc_video.c ret = __uvc_query_ctrl(dev, query, unit, intfnum, cs, data, size, unit 81 drivers/media/usb/uvc/uvc_video.c uvc_query_name(query), cs, unit, ret, size); unit 800 drivers/media/usb/uvc/uvcvideo.h int uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, unit 315 drivers/mfd/sm501.c int sm501_unit_power(struct device *dev, unsigned int unit, unsigned int to) unit 330 drivers/mfd/sm501.c if (unit >= ARRAY_SIZE(sm->unit_power)) { unit 331 drivers/mfd/sm501.c dev_err(dev, "%s: bad unit %d\n", __func__, unit); unit 335 drivers/mfd/sm501.c dev_dbg(sm->dev, "%s: unit %d, cur %d, to %d\n", __func__, unit, unit 336 drivers/mfd/sm501.c sm->unit_power[unit], to); unit 338 drivers/mfd/sm501.c if (to == 0 && sm->unit_power[unit] == 0) { unit 339 drivers/mfd/sm501.c dev_err(sm->dev, "unit %d is already shutdown\n", unit); unit 343 drivers/mfd/sm501.c sm->unit_power[unit] += to ? 1 : -1; unit 344 drivers/mfd/sm501.c to = sm->unit_power[unit] ? 1 : 0; unit 347 drivers/mfd/sm501.c if (gate & (1 << unit)) unit 349 drivers/mfd/sm501.c gate |= (1 << unit); unit 351 drivers/mfd/sm501.c if (!(gate & (1 << unit))) unit 353 drivers/mfd/sm501.c gate &= ~(1 << unit); unit 214 drivers/mtd/devices/slram.c static unsigned long handle_unit(unsigned long value, char *unit) unit 216 drivers/mtd/devices/slram.c if ((*unit == 'M') || (*unit == 'm')) { unit 218 drivers/mtd/devices/slram.c } else if ((*unit == 'K') || (*unit == 'k')) { unit 435 drivers/mtd/ftl.c uint16_t unit; unit 468 drivers/mtd/ftl.c unit = cpu_to_le16(0x7fff); unit 471 drivers/mtd/ftl.c (u_char *)&unit); unit 593 drivers/mtd/maps/pcmciamtd.c char unit = ' '; unit 599 drivers/mtd/maps/pcmciamtd.c unit = 'K'; unit 602 drivers/mtd/maps/pcmciamtd.c unit = 'M'; unit 604 drivers/mtd/maps/pcmciamtd.c snprintf(dev->mtd_name, sizeof(dev->mtd_name), "%d%ciB %s", size, unit, "PCMCIA Memory card"); unit 133 drivers/mtd/maps/vmu-flash.c mdev->unit); unit 152 drivers/mtd/maps/vmu-flash.c " is busy\n", mdev->port, mdev->unit); unit 197 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit, num); unit 201 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit, num); unit 259 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit); unit 281 drivers/mtd/maps/vmu-flash.c mdev->unit, num, x); unit 297 drivers/mtd/maps/vmu-flash.c mdev->unit); unit 530 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit, card->partition); unit 578 drivers/mtd/maps/vmu-flash.c "error is 0x%X\n", mdev->port, mdev->unit, error); unit 660 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit); unit 676 drivers/mtd/maps/vmu-flash.c " error is 0x%X\n", mdev->port, mdev->unit, error); unit 738 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit); unit 743 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit); unit 748 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit); unit 753 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit); unit 758 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit); unit 763 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit); unit 768 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit, error); unit 38 drivers/net/Space.c struct net_device *(*probe)(int unit); unit 42 drivers/net/Space.c static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe) unit 49 drivers/net/Space.c dev = p->probe(unit); unit 120 drivers/net/Space.c static void __init ethif_probe2(int unit) unit 122 drivers/net/Space.c unsigned long base_addr = netdev_boot_base("eth", unit); unit 127 drivers/net/Space.c (void)(probe_list2(unit, m68k_probes, base_addr == 0) && unit 128 drivers/net/Space.c probe_list2(unit, isa_probes, base_addr == 0)); unit 213 drivers/net/appletalk/cops.c struct net_device * __init cops_probe(int unit) unit 224 drivers/net/appletalk/cops.c if (unit >= 0) { unit 225 drivers/net/appletalk/cops.c sprintf(dev->name, "lt%d", unit); unit 366 drivers/net/ethernet/3com/3c515.c static struct net_device *corkscrew_scan(int unit); unit 429 drivers/net/ethernet/3com/3c515.c struct net_device *tc515_probe(int unit) unit 431 drivers/net/ethernet/3com/3c515.c struct net_device *dev = corkscrew_scan(unit); unit 484 drivers/net/ethernet/3com/3c515.c static struct net_device *corkscrew_scan(int unit) unit 499 drivers/net/ethernet/3com/3c515.c if (unit >= 0) { unit 500 drivers/net/ethernet/3com/3c515.c sprintf(dev->name, "eth%d", unit); unit 998 drivers/net/ethernet/3com/3c59x.c int rc, unit, pci_bar; unit 1011 drivers/net/ethernet/3com/3c59x.c unit = vortex_cards_found; unit 1013 drivers/net/ethernet/3com/3c59x.c if (global_use_mmio < 0 && (unit >= MAX_UNITS || use_mmio[unit] < 0)) { unit 1017 drivers/net/ethernet/3com/3c59x.c } else if (unit < MAX_UNITS && use_mmio[unit] >= 0) unit 1018 drivers/net/ethernet/3com/3c59x.c pci_bar = use_mmio[unit] ? 1 : 0; unit 1031 drivers/net/ethernet/3com/3c59x.c ent->driver_data, unit); unit 78 drivers/net/ethernet/8390/apne.c struct net_device * __init apne_probe(int unit); unit 123 drivers/net/ethernet/8390/apne.c struct net_device * __init apne_probe(int unit) unit 153 drivers/net/ethernet/8390/apne.c if (unit >= 0) { unit 154 drivers/net/ethernet/8390/apne.c sprintf(dev->name, "eth%d", unit); unit 954 drivers/net/ethernet/8390/ne.c struct net_device * __init ne_probe(int unit) unit 972 drivers/net/ethernet/8390/ne.c sprintf(dev->name, "eth%d", unit); unit 167 drivers/net/ethernet/8390/smc-ultra.c struct net_device * __init ultra_probe(int unit) unit 175 drivers/net/ethernet/8390/smc-ultra.c sprintf(dev->name, "eth%d", unit); unit 129 drivers/net/ethernet/8390/wd.c struct net_device * __init wd_probe(int unit) unit 137 drivers/net/ethernet/8390/wd.c sprintf(dev->name, "eth%d", unit); unit 370 drivers/net/ethernet/amd/atarilance.c struct net_device * __init atarilance_probe(int unit) unit 385 drivers/net/ethernet/amd/atarilance.c if (unit >= 0) { unit 386 drivers/net/ethernet/amd/atarilance.c sprintf(dev->name, "eth%d", unit); unit 436 drivers/net/ethernet/amd/lance.c struct net_device * __init lance_probe(int unit) unit 444 drivers/net/ethernet/amd/lance.c sprintf(dev->name, "eth%d", unit); unit 71 drivers/net/ethernet/amd/mvme147.c struct net_device * __init mvme147lance_probe(int unit) unit 89 drivers/net/ethernet/amd/mvme147.c if (unit >= 0) unit 90 drivers/net/ethernet/amd/mvme147.c sprintf(dev->name, "eth%d", unit); unit 361 drivers/net/ethernet/amd/ni65.c struct net_device * __init ni65_probe(int unit) unit 371 drivers/net/ethernet/amd/ni65.c if (unit >= 0) { unit 372 drivers/net/ethernet/amd/ni65.c sprintf(dev->name, "eth%d", unit); unit 248 drivers/net/ethernet/amd/sun3lance.c struct net_device * __init sun3lance_probe(int unit) unit 275 drivers/net/ethernet/amd/sun3lance.c if (unit >= 0) { unit 276 drivers/net/ethernet/amd/sun3lance.c sprintf(dev->name, "eth%d", unit); unit 1311 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c static int unit; unit 1314 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c snprintf(tdev->name, sizeof(tdev->name), "ofld_dev%d", unit++); unit 10369 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c cmd.u.params.unit = rateunit; unit 3518 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h __u8 unit; unit 1646 drivers/net/ethernet/cirrus/cs89x0.c struct net_device * __init cs89x0_probe(int unit) unit 1657 drivers/net/ethernet/cirrus/cs89x0.c sprintf(dev->name, "eth%d", unit); unit 383 drivers/net/ethernet/hp/hp100.c struct net_device * __init hp100_probe(int unit) unit 396 drivers/net/ethernet/hp/hp100.c if (unit >= 0) { unit 397 drivers/net/ethernet/hp/hp100.c sprintf(dev->name, "eth%d", unit); unit 1126 drivers/net/ethernet/i825xx/82596.c struct net_device * __init i82596_probe(int unit) unit 1143 drivers/net/ethernet/i825xx/82596.c if (unit >= 0) { unit 1144 drivers/net/ethernet/i825xx/82596.c sprintf(dev->name, "eth%d", unit); unit 279 drivers/net/ethernet/i825xx/sun3_82586.c struct net_device * __init sun3_82586_probe(int unit) unit 308 drivers/net/ethernet/i825xx/sun3_82586.c if (unit >= 0) { unit 309 drivers/net/ethernet/i825xx/sun3_82586.c sprintf(dev->name, "eth%d", unit); unit 1923 drivers/net/ethernet/mscc/ocelot.c u32 unit = 0, direction = 0; unit 1943 drivers/net/ethernet/mscc/ocelot.c unit = PTP_CFG_CLK_ADJ_FREQ_NS; unit 1951 drivers/net/ethernet/mscc/ocelot.c ocelot_write(ocelot, unit | adj, PTP_CLK_CFG_ADJ_FREQ); unit 175 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h #define NFP_CPP_INTERFACE(type, unit, channel) \ unit 177 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h (((unit) & 0xf) << 8) | \ unit 107 drivers/net/ethernet/sfc/mcdi_mon.c const char *name = NULL, *state_txt, *unit; unit 124 drivers/net/ethernet/sfc/mcdi_mon.c unit = efx_hwmon_unit[hwmon_type]; unit 125 drivers/net/ethernet/sfc/mcdi_mon.c if (!unit) unit 126 drivers/net/ethernet/sfc/mcdi_mon.c unit = ""; unit 130 drivers/net/ethernet/sfc/mcdi_mon.c type, name, state_txt, value, unit); unit 208 drivers/net/ethernet/smsc/smc9194.c struct net_device *smc_init(int unit); unit 690 drivers/net/ethernet/smsc/smc9194.c struct net_device * __init smc_init(int unit) unit 699 drivers/net/ethernet/smsc/smc9194.c if (unit >= 0) { unit 700 drivers/net/ethernet/smsc/smc9194.c sprintf(dev->name, "eth%d", unit); unit 164 drivers/net/netdevsim/dev.c .unit = DEVLINK_RESOURCE_UNIT_ENTRY unit 1256 drivers/net/plip/plip.c static int unit; unit 1264 drivers/net/plip/plip.c if (unit == PLIP_MAX) { unit 1269 drivers/net/plip/plip.c sprintf(name, "plip%d", unit); unit 1293 drivers/net/plip/plip.c &plip_cb, unit); unit 1316 drivers/net/plip/plip.c dev_plip[unit++] = dev; unit 143 drivers/net/ppp/bsd_comp.c unsigned char unit; /* ppp unit number */ unit 174 drivers/net/ppp/bsd_comp.c int opt_len, int unit, int debug, int decomp); unit 176 drivers/net/ppp/bsd_comp.c int opt_len, int unit, int opthdr, int debug); unit 178 drivers/net/ppp/bsd_comp.c int opt_len, int unit, int opthdr, int mru, unit 464 drivers/net/ppp/bsd_comp.c int opt_len, int unit, int debug, int decomp) unit 494 drivers/net/ppp/bsd_comp.c db->unit = unit; unit 507 drivers/net/ppp/bsd_comp.c int opt_len, int unit, int opthdr, int debug) unit 509 drivers/net/ppp/bsd_comp.c return bsd_init (state, options, opt_len, unit, debug, 0); unit 513 drivers/net/ppp/bsd_comp.c int opt_len, int unit, int opthdr, int mru, unit 516 drivers/net/ppp/bsd_comp.c return bsd_init (state, options, opt_len, unit, debug, 1); unit 880 drivers/net/ppp/bsd_comp.c db->unit, seq, db->seqno - 1); unit 941 drivers/net/ppp/bsd_comp.c printk("bsd_decomp%d: bad CLEAR\n", db->unit); unit 956 drivers/net/ppp/bsd_comp.c db->unit, incode, oldcode); unit 981 drivers/net/ppp/bsd_comp.c printk("bsd_decomp%d: ran out of mru\n", db->unit); unit 1006 drivers/net/ppp/bsd_comp.c printk("bsd_decomp%d: fell off end of chain ", db->unit); unit 1016 drivers/net/ppp/bsd_comp.c db->unit, incode, finchar); unit 1034 drivers/net/ppp/bsd_comp.c db->unit, codelen, incode, max_ent); unit 1122 drivers/net/ppp/bsd_comp.c db->unit, db->seqno - 1); unit 27 drivers/net/ppp/ppp_deflate.c int unit; unit 42 drivers/net/ppp/ppp_deflate.c int unit, int hdrlen, int debug); unit 45 drivers/net/ppp/ppp_deflate.c int unit, int hdrlen, int mru, int debug); unit 138 drivers/net/ppp/ppp_deflate.c int unit, int hdrlen, int debug) unit 151 drivers/net/ppp/ppp_deflate.c state->unit = unit; unit 353 drivers/net/ppp/ppp_deflate.c int unit, int hdrlen, int mru, int debug) unit 366 drivers/net/ppp/ppp_deflate.c state->unit = unit; unit 422 drivers/net/ppp/ppp_deflate.c state->unit, isize); unit 431 drivers/net/ppp/ppp_deflate.c state->unit, seq, state->seqno & 0xffff); unit 464 drivers/net/ppp/ppp_deflate.c state->unit, r, (state->strm.msg? state->strm.msg: "")); unit 490 drivers/net/ppp/ppp_deflate.c state->unit); unit 498 drivers/net/ppp/ppp_deflate.c state->unit); unit 547 drivers/net/ppp/ppp_deflate.c state->unit, r, (state->strm.msg? state->strm.msg: "")); unit 188 drivers/net/ppp/ppp_generic.c s32 unit; unit 278 drivers/net/ppp/ppp_generic.c static int ppp_create_interface(struct net *net, struct file *file, int *unit); unit 281 drivers/net/ppp/ppp_generic.c static struct ppp *ppp_find_unit(struct ppp_net *pn, int unit); unit 282 drivers/net/ppp/ppp_generic.c static struct channel *ppp_find_channel(struct ppp_net *pn, int unit); unit 283 drivers/net/ppp/ppp_generic.c static int ppp_connect_channel(struct channel *pch, int unit); unit 588 drivers/net/ppp/ppp_generic.c int unit, cflags; unit 622 drivers/net/ppp/ppp_generic.c if (get_user(unit, p)) unit 624 drivers/net/ppp/ppp_generic.c err = ppp_connect_channel(pch, unit); unit 833 drivers/net/ppp/ppp_generic.c int unit, err = -EFAULT; unit 842 drivers/net/ppp/ppp_generic.c if (get_user(unit, p)) unit 844 drivers/net/ppp/ppp_generic.c err = ppp_create_interface(net, file, &unit); unit 849 drivers/net/ppp/ppp_generic.c if (put_user(unit, p)) unit 856 drivers/net/ppp/ppp_generic.c if (get_user(unit, p)) unit 861 drivers/net/ppp/ppp_generic.c ppp = ppp_find_unit(pn, unit); unit 871 drivers/net/ppp/ppp_generic.c if (get_user(unit, p)) unit 876 drivers/net/ppp/ppp_generic.c chan = ppp_find_channel(pn, unit); unit 954 drivers/net/ppp/ppp_generic.c static int ppp_unit_register(struct ppp *ppp, int unit, bool ifname_is_set) unit 961 drivers/net/ppp/ppp_generic.c if (unit < 0) { unit 971 drivers/net/ppp/ppp_generic.c if (unit_find(&pn->units_idr, unit)) { unit 975 drivers/net/ppp/ppp_generic.c ret = unit_set(&pn->units_idr, ppp, unit); unit 1045 drivers/net/ppp/ppp_generic.c err = ppp_unit_register(ppp, conf->unit, conf->ifname_is_set); unit 1081 drivers/net/ppp/ppp_generic.c .unit = -1, unit 2651 drivers/net/ppp/ppp_generic.c int unit = -1; unit 2656 drivers/net/ppp/ppp_generic.c unit = pch->ppp->file.index; unit 2659 drivers/net/ppp/ppp_generic.c return unit; unit 3036 drivers/net/ppp/ppp_generic.c static int ppp_create_interface(struct net *net, struct file *file, int *unit) unit 3040 drivers/net/ppp/ppp_generic.c .unit = *unit, unit 3061 drivers/net/ppp/ppp_generic.c *unit = ppp->file.index; unit 3137 drivers/net/ppp/ppp_generic.c ppp_find_unit(struct ppp_net *pn, int unit) unit 3139 drivers/net/ppp/ppp_generic.c return unit_find(&pn->units_idr, unit); unit 3151 drivers/net/ppp/ppp_generic.c ppp_find_channel(struct ppp_net *pn, int unit) unit 3156 drivers/net/ppp/ppp_generic.c if (pch->file.index == unit) { unit 3163 drivers/net/ppp/ppp_generic.c if (pch->file.index == unit) unit 3174 drivers/net/ppp/ppp_generic.c ppp_connect_channel(struct channel *pch, int unit) unit 3184 drivers/net/ppp/ppp_generic.c ppp = ppp_find_unit(pn, unit); unit 3288 drivers/net/ppp/ppp_generic.c int unit; unit 3290 drivers/net/ppp/ppp_generic.c unit = idr_alloc(p, ptr, n, n + 1, GFP_KERNEL); unit 3291 drivers/net/ppp/ppp_generic.c if (unit == -ENOSPC) unit 3292 drivers/net/ppp/ppp_generic.c unit = -EINVAL; unit 3293 drivers/net/ppp/ppp_generic.c return unit; unit 106 drivers/net/ppp/ppp_mppe.c int unit; unit 250 drivers/net/ppp/ppp_mppe.c mppe_init(void *arg, unsigned char *options, int optlen, int unit, int debug, unit 267 drivers/net/ppp/ppp_mppe.c unit); unit 278 drivers/net/ppp/ppp_mppe.c debugstr, unit, (state->keylen == 16) ? 128 : 40, unit 282 drivers/net/ppp/ppp_mppe.c debugstr, unit, unit 301 drivers/net/ppp/ppp_mppe.c state->unit = unit; unit 308 drivers/net/ppp/ppp_mppe.c mppe_comp_init(void *arg, unsigned char *options, int optlen, int unit, unit 312 drivers/net/ppp/ppp_mppe.c return mppe_init(arg, options, optlen, unit, debug, "mppe_comp_init"); unit 354 drivers/net/ppp/ppp_mppe.c "(have: %d need: %d)\n", state->unit, unit 371 drivers/net/ppp/ppp_mppe.c printk(KERN_DEBUG "mppe_compress[%d]: ccount %d\n", state->unit, unit 381 drivers/net/ppp/ppp_mppe.c state->unit); unit 414 drivers/net/ppp/ppp_mppe.c mppe_decomp_init(void *arg, unsigned char *options, int optlen, int unit, unit 418 drivers/net/ppp/ppp_mppe.c return mppe_init(arg, options, optlen, unit, debug, "mppe_decomp_init"); unit 445 drivers/net/ppp/ppp_mppe.c state->unit, isize); unit 457 drivers/net/ppp/ppp_mppe.c "(have: %d need: %d)\n", state->unit, unit 466 drivers/net/ppp/ppp_mppe.c state->unit, ccount); unit 472 drivers/net/ppp/ppp_mppe.c state->unit); unit 478 drivers/net/ppp/ppp_mppe.c "stateless mode!\n", state->unit); unit 484 drivers/net/ppp/ppp_mppe.c "flag packet!\n", state->unit); unit 618 drivers/net/ppp/ppp_mppe.c "(proto %04x)\n", state->unit, PPP_PROTOCOL(ibuf)); unit 225 drivers/net/wan/sbni.c int __init sbni_probe(int unit) unit 237 drivers/net/wan/sbni.c sprintf(dev->name, "sbni%d", unit); unit 79 drivers/net/wan/sealevel.c int unit = slvl->channel; unit 85 drivers/net/wan/sealevel.c switch (unit) { unit 99 drivers/net/wan/sealevel.c switch (unit) { unit 122 drivers/net/wan/sealevel.c int unit = slvl->channel; unit 133 drivers/net/wan/sealevel.c switch (unit) { unit 191 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c wlc->pub->unit); unit 196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c wlc->pub->unit); unit 817 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c wlc->pub->unit, skb_queue_len(&session->skb_list), unit 612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c wlc->pub->unit, chspec); unit 731 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c wlc->pub->unit, __func__, request->alpha2); unit 1130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c int unit, err; unit 1134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c unit = n_adapters_found; unit 1137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c if (unit < 0) unit 1159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c wl->wlc = brcms_c_attach((void *)wl, pdev, unit, false, &err); unit 1172 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c wiphy_err(wl->wiphy, "wl%d: request_irq() failed\n", unit); unit 1181 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c wiphy_err(wl->wiphy, "wl%d: %s: ieee_hw_init failed!\n", unit, unit 1353 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c wl->pub->unit); unit 1363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c brcms_dbg_info(wl->wlc->hw->d11core, "Resetting wl%d\n", wl->pub->unit); unit 1378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c wl->wlc->pub->unit); unit 462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit) unit 482 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_attach_malloc(uint unit, uint *err, uint devid) unit 537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->bsscfg = brcms_c_bsscfg_malloc(unit); unit 623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit); unit 689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); unit 730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c __func__, wlc_hw->unit, unit 740 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c __func__, wlc_hw->unit, unit 745 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c __func__, wlc_hw->unit, wlc_hw->corerev); unit 760 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc_hw->d11core, "wl%d: clk %d\n", wlc_hw->unit, clk); unit 785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: bandunit %d\n", wlc_hw->unit, unit 814 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_mac80211(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); unit 1050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, unit 1122 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint unit = wlc_hw->unit; unit 1125 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c snprintf(name, sizeof(name), "wl%d", unit); unit 1178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit); unit 1512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_rx(core, "wl%d: brcms_b_set_addrmatch\n", wlc_hw->unit); unit 1535 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(core, "wl%d\n", wlc_hw->unit); unit 1708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: bandunit %d\n", wlc_hw->unit, unit 1788 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc_hw->d11core, "wl%d: reset phy\n", wlc_hw->unit); unit 1922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc_hw->d11core, "wl%d: want %d\n", wlc_hw->unit, want); unit 2011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc_hw->d11core, "wl%d: core reset\n", wlc_hw->unit); unit 2024 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->unit, __func__, i); unit 2030 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->unit, __func__, RX_FIFO); unit 2267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); unit 2297 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c __func__, wlc_hw->unit, wlc_hw->corerev); unit 2306 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c __func__, wlc_hw->unit, wlc_hw->corerev); unit 2339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint unit; unit 2343 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit = wlc_hw->unit; unit 2355 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit, idx, intstatus); unit 2359 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "overflow\n", unit, idx); unit 2365 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit, idx); unit 2370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_err(core, "wl%d: fifo %d: data error\n", unit, unit 2377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "error\n", unit, idx); unit 2383 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "underflow\n", idx, unit); unit 2387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "underflow\n", idx, unit); unit 2651 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit, unit 2667 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, unit 2678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, unit 2693 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->unit, BRCMS_MAX_MAC_SUSPEND); unit 2695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "psm_brc 0x%04x\n", wlc_hw->unit, unit 2703 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, unit 2719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit, unit 2779 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "expected 0xaa5555aa\n", wlc_hw->unit, val); unit 2792 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "expected 0x55aaaa55\n", wlc_hw->unit, val); unit 2807 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "0x%x, expected 0x%x or 0x%x\n", wlc_hw->unit, w, unit 2823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(core, "wl%d\n", wlc_hw->unit); unit 2875 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc_hw->d11core, "wl%d: disable core\n", wlc_hw->unit); unit 3115 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, delta); unit 3123 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, delta, i); unit 3146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); unit 3192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(core, "wl%d: core init\n", wlc_hw->unit); unit 3213 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "suspend!\n", wlc_hw->unit); unit 3224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c " %d\n", __func__, wlc_hw->unit, unit 3231 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c " %d\n", __func__, wlc_hw->unit, unit 3235 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c __func__, wlc_hw->unit, wlc_hw->corerev); unit 3708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, wlc->band->bandunit); unit 3733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit); unit 3759 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_mac80211(wlc->hw->d11core, "wl%d: hps %d\n", wlc->pub->unit, unit 3855 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: 0x%x\n", wlc_hw->unit, unit 3918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec)); unit 3930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__, unit 4070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 4089 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "aifs %d\n", wlc->pub->unit, acp_shm.aifs); unit 4208 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 4239 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); unit 4246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 4283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static bool brcms_c_timers_init(struct brcms_c_info *wlc, int unit) unit 4289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "failed\n", unit); unit 4297 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "failed\n", unit); unit 4311 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static void brcms_c_info_init(struct brcms_c_info *wlc, int unit) unit 4364 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint unit; unit 4365 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit = wlc->pub->unit; unit 4370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "failed\n", unit); unit 4378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "failed\n", unit); unit 4385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "failed\n", unit); unit 4405 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint unit, bool piomode) unit 4417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit, unit 4421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit, unit 4429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->unit = unit; unit 4443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit); unit 4451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit); unit 4487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "failed\n", unit); unit 4501 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit, ai_get_boardtype(wlc_hw->sih), unit 4542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "failed\n", unit); unit 4550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c sha_params.unit = unit; unit 4603 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "attach failed\n", unit); unit 4634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "phy type/rev (%d/%d)\n", unit, unit 4655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(core, "wl%d: phy %u/%u radio %x/%u\n", unit, unit 4693 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit); unit 4705 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wiphy_err(wiphy, "wl%d: brcms_b_attach: failed with err %d\n", unit, unit 4713 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint unit; unit 4717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit = wlc->pub->unit; unit 4728 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c " srom (0x%x), using 3\n", unit, __func__, aa); unit 4912 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); unit 4949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); unit 5019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); unit 5063 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit); unit 5195 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); unit 5201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 5302 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__, gmode); unit 5870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "not in hw_rateset\n", wlc->pub->unit, rspec); unit 5897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 5908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 5918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, rate); unit 5930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 5938 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 5946 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 5952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 5959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "request\n", wlc->pub->unit, __func__); unit 6269 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 6441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__); unit 6833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, fifo_names[queue], unit 6840 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, __func__, unit 7671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->unit, p->len); unit 7771 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, unit 7782 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->unit, macintstatus); unit 7821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "(seconds). Resetting.\n", wlc_hw->unit, wlc_hw->now); unit 7835 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c " RF Disable Input\n", wlc_hw->unit); unit 7857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_dbg_info(core, "wl%d\n", wlc->pub->unit); unit 7954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_attach(struct brcms_info *wl, struct bcma_device *core, uint unit, unit 7963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc = brcms_c_attach_malloc(unit, &err, 0); unit 7976 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c pub->unit = unit; unit 7982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_info_init(wlc, unit); unit 7991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c err = brcms_b_attach(wlc, core, unit, piomode); unit 8069 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!brcms_c_timers_init(wlc, unit)) { unit 8070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wiphy_err(wl->wiphy, "wl%d: %s: init_timer failed\n", unit, unit 8080 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c "\n", unit, __func__); unit 8120 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c unit, __func__, err); unit 319 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h uint unit; /* device instance number */ unit 363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c sh->unit = shp->unit; unit 156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_hal.h uint unit; unit 472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h uint unit; unit 149 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pub.h uint unit; /* device instance number */ unit 270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pub.h struct bcma_device *core, uint unit, unit 165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c wlc->pub->unit, Nsts, core_mask); unit 198 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c brcms_dbg_ht(wlc->hw->d11core, "wl%d: val %x\n", wlc->pub->unit, unit 522 drivers/net/wireless/intersil/p54/txrx.c unsigned int i, rssi, tx, cca, dtime, dtotal, dcca, dtx, drssi, unit; unit 570 drivers/net/wireless/intersil/p54/txrx.c unit = dtime / dtotal; unit 573 drivers/net/wireless/intersil/p54/txrx.c priv->survey_raw.cca += dcca * unit; unit 577 drivers/net/wireless/intersil/p54/txrx.c priv->survey_raw.tx += dtx * unit; unit 581 drivers/net/wireless/intersil/p54/txrx.c priv->survey_raw.rssi += drssi * unit; unit 587 drivers/net/wireless/intersil/p54/txrx.c priv->survey_raw.active += dtotal * unit; unit 589 drivers/net/wireless/intersil/p54/txrx.c priv->survey_raw.active += (dcca + dtx) * unit; unit 187 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c mt76x2_power_on_rf(struct mt76x02_dev *dev, int unit) unit 189 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c int shift = unit ? 8 : 0; unit 48 drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c static void mt76x2u_power_on_rf(struct mt76x02_dev *dev, int unit) unit 50 drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c int shift = unit ? 8 : 0; unit 423 drivers/platform/x86/asus-laptop.c static int asus_pega_lucid_set(struct asus_laptop *asus, int unit, bool enable) unit 426 drivers/platform/x86/asus-laptop.c return write_acpi_int(asus->handle, method, unit); unit 1543 drivers/platform/x86/dell-laptop.c u8 unit; unit 1561 drivers/platform/x86/dell-laptop.c unit = KBD_TIMEOUT_SECONDS; unit 1566 drivers/platform/x86/dell-laptop.c unit = KBD_TIMEOUT_MINUTES; unit 1571 drivers/platform/x86/dell-laptop.c unit = KBD_TIMEOUT_HOURS; unit 1576 drivers/platform/x86/dell-laptop.c unit = KBD_TIMEOUT_DAYS; unit 1587 drivers/platform/x86/dell-laptop.c switch (unit) { unit 1596 drivers/platform/x86/dell-laptop.c unit = KBD_TIMEOUT_SECONDS; unit 1609 drivers/platform/x86/dell-laptop.c unit = KBD_TIMEOUT_SECONDS; unit 1612 drivers/platform/x86/dell-laptop.c unit = KBD_TIMEOUT_MINUTES; unit 1615 drivers/platform/x86/dell-laptop.c unit = KBD_TIMEOUT_HOURS; unit 1618 drivers/platform/x86/dell-laptop.c unit = KBD_TIMEOUT_DAYS; unit 1634 drivers/platform/x86/dell-laptop.c new_state.timeout_unit_ac = unit; unit 1637 drivers/platform/x86/dell-laptop.c new_state.timeout_unit = unit; unit 1657 drivers/platform/x86/dell-laptop.c u8 unit; unit 1665 drivers/platform/x86/dell-laptop.c unit = state.timeout_unit_ac; unit 1668 drivers/platform/x86/dell-laptop.c unit = state.timeout_unit; unit 1673 drivers/platform/x86/dell-laptop.c switch (unit) { unit 117 drivers/powercap/intel_rapl_common.c enum unit_type unit; unit 126 drivers/powercap/intel_rapl_common.c .unit = u, \ unit 676 drivers/powercap/intel_rapl_common.c *data = rapl_unit_xlate(rd, rp->unit, value, 0); unit 695 drivers/powercap/intel_rapl_common.c bits = rapl_unit_xlate(rd, rp->unit, value, 1); unit 1010 drivers/powercap/intel_rapl_common.c rpi[prim].unit, &val)) unit 322 drivers/s390/block/dasd_alias.c private->uid.type = lcu->uac->unit[private->uid.real_unit_addr].ua_type; unit 324 drivers/s390/block/dasd_alias.c lcu->uac->unit[private->uid.real_unit_addr].base_ua; unit 508 drivers/s390/block/dasd_alias.c switch (lcu->uac->unit[i].ua_type) { unit 616 drivers/s390/block/dasd_alias.c if (private->uid.type != lcu->uac->unit[uaddr].ua_type) { unit 3364 drivers/s390/block/dasd_eckd.c cdata->unit = i; unit 593 drivers/s390/block/dasd_eckd.h } unit[256]; unit 116 drivers/s390/scsi/zfcp_ccw.c struct zfcp_unit *unit, *u; unit 129 drivers/s390/scsi/zfcp_ccw.c list_for_each_entry_safe(unit, u, &port->unit_list, list) unit 130 drivers/s390/scsi/zfcp_ccw.c list_move(&unit->list, &unit_remove_lh); unit 137 drivers/s390/scsi/zfcp_ccw.c list_for_each_entry_safe(unit, u, &unit_remove_lh, list) unit 138 drivers/s390/scsi/zfcp_ccw.c device_unregister(&unit->dev); unit 176 drivers/s390/scsi/zfcp_ext.h extern struct scsi_device *zfcp_unit_sdev(struct zfcp_unit *unit); unit 120 drivers/s390/scsi/zfcp_scsi.c struct zfcp_unit *unit; unit 141 drivers/s390/scsi/zfcp_scsi.c unit = zfcp_unit_find(port, zfcp_scsi_dev_lun(sdev)); unit 142 drivers/s390/scsi/zfcp_scsi.c if (unit) unit 143 drivers/s390/scsi/zfcp_scsi.c put_device(&unit->dev); unit 145 drivers/s390/scsi/zfcp_scsi.c if (!unit && !(allow_lun_scan && npiv)) { unit 79 drivers/s390/scsi/zfcp_sysfs.c ZFCP_DEFINE_ATTR(zfcp_unit, unit, status, "0x%08x\n", unit 80 drivers/s390/scsi/zfcp_sysfs.c zfcp_unit_sdev_status(unit)); unit 81 drivers/s390/scsi/zfcp_sysfs.c ZFCP_DEFINE_ATTR(zfcp_unit, unit, in_recovery, "%d\n", unit 82 drivers/s390/scsi/zfcp_sysfs.c (zfcp_unit_sdev_status(unit) & unit 84 drivers/s390/scsi/zfcp_sysfs.c ZFCP_DEFINE_ATTR(zfcp_unit, unit, access_denied, "%d\n", unit 85 drivers/s390/scsi/zfcp_sysfs.c (zfcp_unit_sdev_status(unit) & unit 87 drivers/s390/scsi/zfcp_sysfs.c ZFCP_DEFINE_ATTR_CONST(unit, access_shared, "%d\n", 0); unit 88 drivers/s390/scsi/zfcp_sysfs.c ZFCP_DEFINE_ATTR_CONST(unit, access_readonly, "%d\n", 0); unit 126 drivers/s390/scsi/zfcp_sysfs.c struct zfcp_unit *unit = container_of(dev, struct zfcp_unit, dev); unit 130 drivers/s390/scsi/zfcp_sysfs.c sdev = zfcp_unit_sdev(unit); unit 144 drivers/s390/scsi/zfcp_sysfs.c struct zfcp_unit *unit = container_of(dev, struct zfcp_unit, dev); unit 151 drivers/s390/scsi/zfcp_sysfs.c sdev = zfcp_unit_sdev(unit); unit 156 drivers/s390/scsi/zfcp_sysfs.c zfcp_erp_wait(unit->port->adapter); unit 158 drivers/s390/scsi/zfcp_sysfs.c zfcp_unit_scsi_scan(unit); unit 162 drivers/s390/scsi/zfcp_sysfs.c static ZFCP_DEV_ATTR(unit, failed, S_IWUSR | S_IRUGO, unit 22 drivers/s390/scsi/zfcp_unit.c void zfcp_unit_scsi_scan(struct zfcp_unit *unit) unit 24 drivers/s390/scsi/zfcp_unit.c struct fc_rport *rport = unit->port->rport; unit 27 drivers/s390/scsi/zfcp_unit.c lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); unit 36 drivers/s390/scsi/zfcp_unit.c struct zfcp_unit *unit = container_of(work, struct zfcp_unit, unit 39 drivers/s390/scsi/zfcp_unit.c zfcp_unit_scsi_scan(unit); unit 40 drivers/s390/scsi/zfcp_unit.c put_device(&unit->dev); unit 55 drivers/s390/scsi/zfcp_unit.c struct zfcp_unit *unit; unit 58 drivers/s390/scsi/zfcp_unit.c list_for_each_entry(unit, &port->unit_list, list) { unit 59 drivers/s390/scsi/zfcp_unit.c get_device(&unit->dev); unit 61 drivers/s390/scsi/zfcp_unit.c &unit->scsi_work) <= 0) unit 62 drivers/s390/scsi/zfcp_unit.c put_device(&unit->dev); unit 69 drivers/s390/scsi/zfcp_unit.c struct zfcp_unit *unit; unit 71 drivers/s390/scsi/zfcp_unit.c list_for_each_entry(unit, &port->unit_list, list) unit 72 drivers/s390/scsi/zfcp_unit.c if (unit->fcp_lun == fcp_lun) { unit 73 drivers/s390/scsi/zfcp_unit.c get_device(&unit->dev); unit 74 drivers/s390/scsi/zfcp_unit.c return unit; unit 93 drivers/s390/scsi/zfcp_unit.c struct zfcp_unit *unit; unit 96 drivers/s390/scsi/zfcp_unit.c unit = _zfcp_unit_find(port, fcp_lun); unit 98 drivers/s390/scsi/zfcp_unit.c return unit; unit 107 drivers/s390/scsi/zfcp_unit.c struct zfcp_unit *unit = container_of(dev, struct zfcp_unit, dev); unit 109 drivers/s390/scsi/zfcp_unit.c atomic_dec(&unit->port->units); unit 110 drivers/s390/scsi/zfcp_unit.c kfree(unit); unit 123 drivers/s390/scsi/zfcp_unit.c struct zfcp_unit *unit; unit 133 drivers/s390/scsi/zfcp_unit.c unit = zfcp_unit_find(port, fcp_lun); unit 134 drivers/s390/scsi/zfcp_unit.c if (unit) { unit 135 drivers/s390/scsi/zfcp_unit.c put_device(&unit->dev); unit 140 drivers/s390/scsi/zfcp_unit.c unit = kzalloc(sizeof(struct zfcp_unit), GFP_KERNEL); unit 141 drivers/s390/scsi/zfcp_unit.c if (!unit) { unit 146 drivers/s390/scsi/zfcp_unit.c unit->port = port; unit 147 drivers/s390/scsi/zfcp_unit.c unit->fcp_lun = fcp_lun; unit 148 drivers/s390/scsi/zfcp_unit.c unit->dev.parent = &port->dev; unit 149 drivers/s390/scsi/zfcp_unit.c unit->dev.release = zfcp_unit_release; unit 150 drivers/s390/scsi/zfcp_unit.c unit->dev.groups = zfcp_unit_attr_groups; unit 151 drivers/s390/scsi/zfcp_unit.c INIT_WORK(&unit->scsi_work, zfcp_unit_scsi_scan_work); unit 153 drivers/s390/scsi/zfcp_unit.c if (dev_set_name(&unit->dev, "0x%016llx", unit 155 drivers/s390/scsi/zfcp_unit.c kfree(unit); unit 160 drivers/s390/scsi/zfcp_unit.c if (device_register(&unit->dev)) { unit 161 drivers/s390/scsi/zfcp_unit.c put_device(&unit->dev); unit 169 drivers/s390/scsi/zfcp_unit.c list_add_tail(&unit->list, &port->unit_list); unit 177 drivers/s390/scsi/zfcp_unit.c zfcp_unit_scsi_scan(unit); unit 195 drivers/s390/scsi/zfcp_unit.c struct scsi_device *zfcp_unit_sdev(struct zfcp_unit *unit) unit 201 drivers/s390/scsi/zfcp_unit.c lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); unit 202 drivers/s390/scsi/zfcp_unit.c port = unit->port; unit 214 drivers/s390/scsi/zfcp_unit.c unsigned int zfcp_unit_sdev_status(struct zfcp_unit *unit) unit 220 drivers/s390/scsi/zfcp_unit.c sdev = zfcp_unit_sdev(unit); unit 240 drivers/s390/scsi/zfcp_unit.c struct zfcp_unit *unit; unit 244 drivers/s390/scsi/zfcp_unit.c unit = _zfcp_unit_find(port, fcp_lun); unit 245 drivers/s390/scsi/zfcp_unit.c if (unit) unit 246 drivers/s390/scsi/zfcp_unit.c list_del(&unit->list); unit 249 drivers/s390/scsi/zfcp_unit.c if (!unit) unit 252 drivers/s390/scsi/zfcp_unit.c sdev = zfcp_unit_sdev(unit); unit 258 drivers/s390/scsi/zfcp_unit.c put_device(&unit->dev); unit 260 drivers/s390/scsi/zfcp_unit.c device_unregister(&unit->dev); unit 1838 drivers/scsi/3w-9xxx.c command_packet->unit = srb->device->id; unit 1844 drivers/scsi/3w-9xxx.c command_packet->unit = 0; unit 512 drivers/scsi/3w-9xxx.h unsigned char unit; unit 324 drivers/scsi/3w-sas.c command_packet->unit = srb->device->id; unit 330 drivers/scsi/3w-sas.c command_packet->unit = 0; unit 243 drivers/scsi/3w-sas.h unsigned char unit; unit 1225 drivers/scsi/aic7xxx/aic79xx.h int unit; unit 6092 drivers/scsi/aic7xxx/aic79xx_core.c ahd->unit = -1; unit 6133 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_unit(struct ahd_softc *ahd, int unit) unit 6135 drivers/scsi/aic7xxx/aic79xx_core.c ahd->unit = unit; unit 7067 drivers/scsi/aic7xxx/aic79xx_core.c if ((AHD_TMODE_ENABLE & (0x1 << ahd->unit)) == 0) unit 1256 drivers/scsi/aic7xxx/aic79xx_osm.c host->unique_id = ahd->unit; unit 1378 drivers/scsi/aic7xxx/aic79xx_osm.c if (ahd->unit < ARRAY_SIZE(aic79xx_iocell_info)) { unit 1381 drivers/scsi/aic7xxx/aic79xx_osm.c iocell_opts = &aic79xx_iocell_info[ahd->unit]; unit 1500 drivers/scsi/aic7xxx/aic79xx_osm.c if (ahd->unit >= ARRAY_SIZE(aic79xx_tag_info)) { unit 1514 drivers/scsi/aic7xxx/aic79xx_osm.c tag_info = &aic79xx_tag_info[ahd->unit]; unit 2750 drivers/scsi/aic7xxx/aic79xx_osm.c if (ahd->unit < ARRAY_SIZE(aic79xx_iocell_info)) { unit 2753 drivers/scsi/aic7xxx/aic79xx_osm.c iocell_opts = &aic79xx_iocell_info[ahd->unit]; unit 1076 drivers/scsi/aic7xxx/aic7xxx.h int unit; unit 4424 drivers/scsi/aic7xxx/aic7xxx_core.c ahc->unit = -1; unit 4469 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_unit(struct ahc_softc *ahc, int unit) unit 4471 drivers/scsi/aic7xxx/aic7xxx_core.c ahc->unit = unit; unit 5310 drivers/scsi/aic7xxx/aic7xxx_core.c if ((AHC_TMODE_ENABLE & (0x1 << ahc->unit)) == 0) unit 1119 drivers/scsi/aic7xxx/aic7xxx_osm.c host->unique_id = ahc->unit; unit 1364 drivers/scsi/aic7xxx/aic7xxx_osm.c if (ahc->unit >= ARRAY_SIZE(aic7xxx_tag_info)) { unit 1378 drivers/scsi/aic7xxx/aic7xxx_osm.c tag_info = &aic7xxx_tag_info[ahc->unit]; unit 60 drivers/scsi/atp870u.h unsigned int unit; unit 611 drivers/scsi/ch.c ch_checkrange(scsi_changer *ch, unsigned int type, unsigned int unit) unit 613 drivers/scsi/ch.c if (type >= CH_TYPES || unit >= ch->counts[type]) unit 86 drivers/scsi/dpt/dpti_i2o.h int unit; unit 281 drivers/scsi/dpt_i2o.c NULL, MKDEV(DPTI_I2O_MAJOR, pHba->unit), NULL, unit 282 drivers/scsi/dpt_i2o.c "dpti%d", pHba->unit); unit 286 drivers/scsi/dpt_i2o.c pHba->unit); unit 547 drivers/scsi/dpt_i2o.c int unit; unit 577 drivers/scsi/dpt_i2o.c unit = d->pI2o_dev->lct_data.tid; unit 579 drivers/scsi/dpt_i2o.c unit, (int)d->scsi_channel, (int)d->scsi_id, d->scsi_lun, unit 979 drivers/scsi/dpt_i2o.c pHba->unit = hba_count; unit 1107 drivers/scsi/dpt_i2o.c MKDEV(DPTI_I2O_MAJOR, pHba->unit)); unit 1204 drivers/scsi/dpt_i2o.c printk(KERN_INFO"dpti%d: POST WAIT TIMEOUT\n",pHba->unit); unit 1246 drivers/scsi/dpt_i2o.c printk(KERN_WARNING"dpti%d: Timeout waiting for message frame!\n", pHba->unit); unit 1608 drivers/scsi/dpt_i2o.c if (pHba->unit == minor) { unit 1641 drivers/scsi/dpt_i2o.c if (pHba->unit == minor) { unit 1964 drivers/scsi/dpt_i2o.c if (pHba->unit == minor) { unit 1993 drivers/scsi/dpt_i2o.c HbaInfo.drvrHBAnum = pHba->unit; unit 2335 drivers/scsi/dpt_i2o.c host->unique_id = (u32)sys_tbl_pa + pHba->unit; unit 2897 drivers/scsi/dpt_i2o.c pHba->unit); unit 2938 drivers/scsi/dpt_i2o.c pHba->unit); unit 2974 drivers/scsi/dpt_i2o.c printk("dpti%d: State = ",pHba->unit); unit 3110 drivers/scsi/dpt_i2o.c sys_tbl->iops[count].iop_id = pHba->unit + 2; unit 3147 drivers/scsi/dpt_i2o.c int unit = d->lct_data.tid; unit 3149 drivers/scsi/dpt_i2o.c printk(KERN_INFO "TID %3.3d ", unit); unit 3151 drivers/scsi/dpt_i2o.c if(adpt_i2o_query_scalar(pHba, unit, 0xF100, 3, buf, 16)>=0) unit 3156 drivers/scsi/dpt_i2o.c if(adpt_i2o_query_scalar(pHba, unit, 0xF100, 4, buf, 16)>=0) unit 3161 drivers/scsi/dpt_i2o.c if(adpt_i2o_query_scalar(pHba, unit, 0xF100, 6, buf, 8)>=0) unit 3415 drivers/scsi/dpt_i2o.c pHba->unit, -ret); unit 3417 drivers/scsi/dpt_i2o.c printk(KERN_INFO"dpti%d: Quiesced.\n",pHba->unit); unit 3470 drivers/scsi/dpt_i2o.c msg[4] = (0<<16) | ((pHba->unit+2) << 12); /* Host 0 IOP ID (unit + 2) */ unit 208 drivers/scsi/dpti.h int unit; unit 787 drivers/scsi/ncr53c8xx.c static int device_queue_depth(int unit, int target, int lun) unit 814 drivers/scsi/ncr53c8xx.c if (h == unit && unit 1609 drivers/scsi/ncr53c8xx.c int unit; /* Unit number */ unit 7981 drivers/scsi/ncr53c8xx.c numtags = device_queue_depth(np->unit, device->id, device->lun); unit 8011 drivers/scsi/ncr53c8xx.c np->unit, device->id, device->lun, depth_to_use); unit 8287 drivers/scsi/ncr53c8xx.c int unit, struct ncr_device *device) unit 8313 drivers/scsi/ncr53c8xx.c unit, device->chip.revision_id, device->slot.irq); unit 8333 drivers/scsi/ncr53c8xx.c np->unit = unit; unit 8335 drivers/scsi/ncr53c8xx.c sprintf(np->inst_name, "ncr53c720-%d", np->unit); unit 1307 drivers/scsi/ncr53c8xx.h extern struct Scsi_Host *ncr_attach(struct scsi_host_template *tpnt, int unit, struct ncr_device *device); unit 3250 drivers/scsi/sd.c int unit; unit 3254 drivers/scsi/sd.c unit = base; unit 3258 drivers/scsi/sd.c *--p = 'a' + (index % unit); unit 3259 drivers/scsi/sd.c index = (index / unit) - 1; unit 222 drivers/scsi/sgiwd93.c unsigned int unit = pd->unit; unit 241 drivers/scsi/sgiwd93.c "host %d buffer.\n", unit); unit 260 drivers/scsi/sgiwd93.c "for host %d.\n", irq, unit); unit 1236 drivers/scsi/sym53c8xx_2/sym_glue.c static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit, unit 1248 drivers/scsi/sym53c8xx_2/sym_glue.c unit, dev->chip.name, pdev->revision, pci_name(pdev), unit 1284 drivers/scsi/sym53c8xx_2/sym_glue.c np->s.unit = unit; unit 1299 drivers/scsi/sym53c8xx_2/sym_glue.c sprintf(np->s.inst_name, "sym%d", np->s.unit); unit 1374 drivers/scsi/sym53c8xx_2/sym_glue.c printf_info("sym%d: giving up ...\n", unit); unit 166 drivers/scsi/sym53c8xx_2/sym_glue.h int unit; unit 6335 drivers/scsi/ufs/ufshcd.c u16 unit; unit 6339 drivers/scsi/ufs/ufshcd.c unit = (data & ATTR_ICC_LVL_UNIT_MASK) >> unit 6342 drivers/scsi/ufs/ufshcd.c switch (unit) { unit 94 drivers/scsi/zalon.c static int unit = 0; unit 136 drivers/scsi/zalon.c host = ncr_attach(&zalon7xx_template, unit, &device); unit 146 drivers/scsi/zalon.c unit++; unit 57 drivers/sh/maple/maple.c int unit; unit 207 drivers/sh/maple/maple.c mdev->port, mdev->unit); unit 211 drivers/sh/maple/maple.c static struct maple_device *maple_alloc_dev(int port, int unit) unit 223 drivers/sh/maple/maple.c mdev->unit = unit; unit 249 drivers/sh/maple/maple.c int port, unit, from, to, len; unit 253 drivers/sh/maple/maple.c unit = mq->dev->unit; unit 256 drivers/sh/maple/maple.c to = (port << 6) | (unit > 0 ? (1 << (unit - 1)) & 0x1f : 0x20); unit 366 drivers/sh/maple/maple.c mdev->product_name, function, mdev->port, mdev->unit); unit 384 drivers/sh/maple/maple.c mdev->unit, function); unit 394 drivers/sh/maple/maple.c " (%d, %d), with error 0x%X\n", mdev->unit, unit 414 drivers/sh/maple/maple.c if (mdev->port == ds->port && mdev->unit == ds->unit) unit 500 drivers/sh/maple/maple.c ds.unit = k + 1; unit 528 drivers/sh/maple/maple.c killbit = (mdev->unit > 0 ? (1 << (mdev->unit - 1)) & 0x1f : 0x20); unit 539 drivers/sh/maple/maple.c if (likely(mdev->unit != 0)) { unit 558 drivers/sh/maple/maple.c mdev->port, mdev->unit); unit 582 drivers/sh/maple/maple.c if ((mdev->unit == 0) && (checked[mdev->port] == false)) { unit 586 drivers/sh/maple/maple.c if (mdev->unit != 0) unit 588 drivers/sh/maple/maple.c if (mdev->unit == 0) { unit 594 drivers/sh/maple/maple.c if (mdev->unit == 0) { unit 610 drivers/sh/maple/maple.c "file error 0x%X\n", mdev->port, mdev->unit, unit 678 drivers/sh/maple/maple.c mdev->port, mdev->unit); unit 686 drivers/sh/maple/maple.c mdev->unit); unit 1113 drivers/spi/spi.c u32 unit = xfer->cs_change_delay_unit; unit 1117 drivers/spi/spi.c if (!delay && unit != SPI_DELAY_UNIT_USECS) unit 1120 drivers/spi/spi.c switch (unit) { unit 1440 drivers/staging/fwserial/fwserial.c seq_printf(m, " %s:", dev_name(&peer->unit->device)); unit 1642 drivers/staging/fwserial/fwserial.c fwtty_info(&peer->unit, "peer (guid:%016llx) connected on %s\n", unit 1664 drivers/staging/fwserial/fwserial.c fwtty_dbg(&peer->unit, "mgmt write error: %d\n", rcode); unit 1786 drivers/staging/fwserial/fwserial.c fwtty_err(&peer->unit, "avail ports in use\n"); unit 1994 drivers/staging/fwserial/fwserial.c static int fwserial_add_peer(struct fw_serial *serial, struct fw_unit *unit) unit 1996 drivers/staging/fwserial/fwserial.c struct device *dev = &unit->device; unit 1997 drivers/staging/fwserial/fwserial.c struct fw_device *parent = fw_parent_device(unit); unit 2010 drivers/staging/fwserial/fwserial.c peer->unit = unit; unit 2023 drivers/staging/fwserial/fwserial.c fw_csr_iterator_init(&ci, unit->directory); unit 2049 drivers/staging/fwserial/fwserial.c fwtty_info(&peer->unit, "peer added (guid:%016llx)\n", unit 2113 drivers/staging/fwserial/fwserial.c fwtty_info(&peer->unit, "peer removed (guid:%016llx)\n", unit 2140 drivers/staging/fwserial/fwserial.c static int fwserial_create(struct fw_unit *unit) unit 2142 drivers/staging/fwserial/fwserial.c struct fw_device *parent = fw_parent_device(unit); unit 2200 drivers/staging/fwserial/fwserial.c fwtty_err(&unit, "no space in port table\n"); unit 2211 drivers/staging/fwserial/fwserial.c fwtty_err(&unit, "register tty device error (%d)\n", unit 2229 drivers/staging/fwserial/fwserial.c fwtty_err(&unit, "create loop device failed (%d)\n", unit 2238 drivers/staging/fwserial/fwserial.c serial->debugfs = debugfs_create_dir(dev_name(&unit->device), unit 2250 drivers/staging/fwserial/fwserial.c fwtty_notice(&unit, "TTY over FireWire on device %s (guid %016llx)\n", unit 2253 drivers/staging/fwserial/fwserial.c err = fwserial_add_peer(serial, unit); unit 2257 drivers/staging/fwserial/fwserial.c fwtty_err(&unit, "unable to add peer unit device (%d)\n", err); unit 2317 drivers/staging/fwserial/fwserial.c static int fwserial_probe(struct fw_unit *unit, unit 2324 drivers/staging/fwserial/fwserial.c serial = fwserial_lookup(fw_parent_device(unit)->card); unit 2326 drivers/staging/fwserial/fwserial.c err = fwserial_create(unit); unit 2328 drivers/staging/fwserial/fwserial.c err = fwserial_add_peer(serial, unit); unit 2341 drivers/staging/fwserial/fwserial.c static void fwserial_remove(struct fw_unit *unit) unit 2343 drivers/staging/fwserial/fwserial.c struct fwtty_peer *peer = dev_get_drvdata(&unit->device); unit 2379 drivers/staging/fwserial/fwserial.c static void fwserial_update(struct fw_unit *unit) unit 2381 drivers/staging/fwserial/fwserial.c struct fw_device *parent = fw_parent_device(unit); unit 2382 drivers/staging/fwserial/fwserial.c struct fwtty_peer *peer = dev_get_drvdata(&unit->device); unit 2498 drivers/staging/fwserial/fwserial.c fwtty_err(&peer->unit, "no more ports avail\n"); unit 2540 drivers/staging/fwserial/fwserial.c fwtty_err(&peer->unit, "PLUG_RSP error (%d)\n", rcode); unit 2591 drivers/staging/fwserial/fwserial.c fwtty_err(&peer->unit, "UNPLUG_RSP error (%d)\n", unit 2626 drivers/staging/fwserial/fwserial.c fwtty_err(&peer->unit, "peer already removed\n"); unit 2633 drivers/staging/fwserial/fwserial.c fwtty_dbg(&peer->unit, "mgmt: hdr.code: %04hx\n", pkt->hdr.code); unit 2638 drivers/staging/fwserial/fwserial.c fwtty_err(&peer->unit, "plug req: busy\n"); unit 2653 drivers/staging/fwserial/fwserial.c fwtty_notice(&peer->unit, "NACK plug rsp\n"); unit 2669 drivers/staging/fwserial/fwserial.c fwtty_err(&peer->unit, "unplug req: busy\n"); unit 2682 drivers/staging/fwserial/fwserial.c fwtty_notice(&peer->unit, "NACK unplug?\n"); unit 2689 drivers/staging/fwserial/fwserial.c fwtty_err(&peer->unit, "unknown mgmt code %d\n", unit 77 drivers/staging/fwserial/fwserial.h struct fw_unit *unit; unit 75 drivers/staging/gdm724x/netlink_k.c struct sock *netlink_init(int unit, unit 84 drivers/staging/gdm724x/netlink_k.c sock = netlink_kernel_create(&init_net, unit, &cfg); unit 10 drivers/staging/gdm724x/netlink_k.h struct sock *netlink_init(int unit, unit 503 drivers/staging/most/dim2/hal.c u32 const unit = bytes_per_frame << g.fcnt; unit 508 drivers/staging/most/dim2/hal.c n = buf_size / unit; unit 513 drivers/staging/most/dim2/hal.c return unit * n; unit 412 drivers/tty/ipwireless/tty.c int unit = ipwireless_ppp_unit_number( unit 415 drivers/tty/ipwireless/tty.c if (unit < 0) unit 417 drivers/tty/ipwireless/tty.c if (put_user(unit, (int __user *) arg)) unit 164 drivers/usb/core/devices.c char dir, unit, *type; unit 209 drivers/usb/core/devices.c unit = 'u'; unit 211 drivers/usb/core/devices.c unit = 'm'; unit 219 drivers/usb/core/devices.c interval, unit); unit 87 drivers/usb/core/endpoint.c char unit; unit 119 drivers/usb/core/endpoint.c unit = 'u'; unit 121 drivers/usb/core/endpoint.c unit = 'm'; unit 125 drivers/usb/core/endpoint.c return sprintf(buf, "%d%cs\n", interval, unit); unit 54 drivers/video/console/newport_con.c static int newport_set_def_font(int unit, struct console_font *op); unit 502 drivers/video/console/newport_con.c static int newport_set_font(int unit, struct console_font *op) unit 538 drivers/video/console/newport_con.c if (i == unit) unit 545 drivers/video/console/newport_con.c if (font_data[unit] != FONT_DATA) { unit 546 drivers/video/console/newport_con.c if (--REFCOUNT(font_data[unit]) == 0) unit 547 drivers/video/console/newport_con.c kfree(font_data[unit] - unit 551 drivers/video/console/newport_con.c font_data[unit] = new_data; unit 556 drivers/video/console/newport_con.c static int newport_set_def_font(int unit, struct console_font *op) unit 558 drivers/video/console/newport_con.c if (font_data[unit] != FONT_DATA) { unit 559 drivers/video/console/newport_con.c if (--REFCOUNT(font_data[unit]) == 0) unit 560 drivers/video/console/newport_con.c kfree(font_data[unit] - unit 562 drivers/video/console/newport_con.c font_data[unit] = FONT_DATA; unit 210 drivers/video/fbdev/core/fbcon.c int unit); unit 737 drivers/video/fbdev/core/fbcon.c int unit, int oldidx) unit 765 drivers/video/fbdev/core/fbcon.c con2fb_map[unit] = oldidx; unit 773 drivers/video/fbdev/core/fbcon.c struct fb_info *newinfo, int unit, unit 781 drivers/video/fbdev/core/fbcon.c con2fb_map[unit] = oldidx; unit 819 drivers/video/fbdev/core/fbcon.c int unit, int show_logo) unit 837 drivers/video/fbdev/core/fbcon.c fbcon_set_disp(info, &info->var, unit); unit 863 drivers/video/fbdev/core/fbcon.c static int set_con2fb_map(int unit, int newidx, int user) unit 865 drivers/video/fbdev/core/fbcon.c struct vc_data *vc = vc_cons[unit].d; unit 866 drivers/video/fbdev/core/fbcon.c int oldidx = con2fb_map[unit]; unit 889 drivers/video/fbdev/core/fbcon.c con2fb_map[unit] = newidx; unit 891 drivers/video/fbdev/core/fbcon.c err = con2fb_acquire_newinfo(vc, info, unit, oldidx); unit 899 drivers/video/fbdev/core/fbcon.c err = con2fb_release_oldinfo(vc, oldinfo, info, unit, oldidx, unit 908 drivers/video/fbdev/core/fbcon.c con2fb_map_boot[unit] = newidx; unit 909 drivers/video/fbdev/core/fbcon.c con2fb_init_display(vc, info, unit, show_logo); unit 1414 drivers/video/fbdev/core/fbcon.c int unit) unit 1422 drivers/video/fbdev/core/fbcon.c p = &fb_display[unit]; unit 1427 drivers/video/fbdev/core/fbcon.c vc = vc_cons[unit].d; unit 1062 drivers/video/fbdev/omap2/omapfb/dss/dispc.c unsigned unit = dss_feat_get_burst_size_unit(); unit 1064 drivers/video/fbdev/omap2/omapfb/dss/dispc.c return unit * 8; unit 1149 drivers/video/fbdev/omap2/omapfb/dss/dispc.c u32 unit; unit 1152 drivers/video/fbdev/omap2/omapfb/dss/dispc.c unit = dss_feat_get_buffer_size_unit(); unit 1158 drivers/video/fbdev/omap2/omapfb/dss/dispc.c size *= unit; unit 1233 drivers/video/fbdev/omap2/omapfb/dss/dispc.c u32 unit; unit 1235 drivers/video/fbdev/omap2/omapfb/dss/dispc.c unit = dss_feat_get_buffer_size_unit(); unit 1237 drivers/video/fbdev/omap2/omapfb/dss/dispc.c WARN_ON(low % unit != 0); unit 1238 drivers/video/fbdev/omap2/omapfb/dss/dispc.c WARN_ON(high % unit != 0); unit 1240 drivers/video/fbdev/omap2/omapfb/dss/dispc.c low /= unit; unit 1241 drivers/video/fbdev/omap2/omapfb/dss/dispc.c high /= unit; unit 1249 drivers/video/fbdev/omap2/omapfb/dss/dispc.c lo_start, lo_end) * unit, unit 1251 drivers/video/fbdev/omap2/omapfb/dss/dispc.c hi_start, hi_end) * unit, unit 1252 drivers/video/fbdev/omap2/omapfb/dss/dispc.c low * unit, high * unit); unit 1365 drivers/video/fbdev/omap2/omapfb/dss/dispc.c u32 unit = dss_feat_get_buffer_size_unit(); unit 1376 drivers/video/fbdev/omap2/omapfb/dss/dispc.c low = size * 4 / 8 / unit; unit 1377 drivers/video/fbdev/omap2/omapfb/dss/dispc.c high = size * 5 / 8 / unit; unit 1384 drivers/video/fbdev/omap2/omapfb/dss/dispc.c u32 unit = dss_feat_get_buffer_size_unit(); unit 1395 drivers/video/fbdev/omap2/omapfb/dss/dispc.c low = size * 4 / 8 / unit; unit 1396 drivers/video/fbdev/omap2/omapfb/dss/dispc.c high = size * 5 / 8 / unit; unit 76 drivers/watchdog/smsc37b787_wdt.c static int unit = UNIT_SECOND; /* timer's unit */ unit 236 drivers/watchdog/smsc37b787_wdt.c if (unit == UNIT_SECOND) unit 363 drivers/watchdog/smsc37b787_wdt.c timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)"); unit 471 drivers/watchdog/smsc37b787_wdt.c if (unit == UNIT_MINUTE) unit 480 drivers/watchdog/smsc37b787_wdt.c if (unit == UNIT_MINUTE) unit 561 drivers/watchdog/smsc37b787_wdt.c timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)"); unit 603 drivers/watchdog/smsc37b787_wdt.c module_param(unit, int, 0); unit 604 drivers/watchdog/smsc37b787_wdt.c MODULE_PARM_DESC(unit, unit 1421 fs/btrfs/free-space-cache.c static inline unsigned long offset_to_bit(u64 bitmap_start, u32 unit, unit 1426 fs/btrfs/free-space-cache.c return (unsigned long)(div_u64(offset, unit)); unit 1429 fs/btrfs/free-space-cache.c static inline unsigned long bytes_to_bits(u64 bytes, u32 unit) unit 1431 fs/btrfs/free-space-cache.c return (unsigned long)(div_u64(bytes, unit)); unit 1440 fs/btrfs/free-space-cache.c bytes_per_bitmap = BITS_PER_BITMAP * ctl->unit; unit 1597 fs/btrfs/free-space-cache.c if (entry->offset + BITS_PER_BITMAP * ctl->unit > offset) unit 1608 fs/btrfs/free-space-cache.c ctl->unit > offset) unit 1661 fs/btrfs/free-space-cache.c u64 bytes_per_bg = BITS_PER_BITMAP * ctl->unit; unit 1683 fs/btrfs/free-space-cache.c bitmap_bytes = (ctl->total_bitmaps + 1) * ctl->unit; unit 1707 fs/btrfs/free-space-cache.c start = offset_to_bit(info->offset, ctl->unit, offset); unit 1708 fs/btrfs/free-space-cache.c count = bytes_to_bits(bytes, ctl->unit); unit 1714 fs/btrfs/free-space-cache.c if (info->max_extent_size > ctl->unit) unit 1732 fs/btrfs/free-space-cache.c start = offset_to_bit(info->offset, ctl->unit, offset); unit 1733 fs/btrfs/free-space-cache.c count = bytes_to_bits(bytes, ctl->unit); unit 1767 fs/btrfs/free-space-cache.c i = offset_to_bit(bitmap_info->offset, ctl->unit, unit 1769 fs/btrfs/free-space-cache.c bits = bytes_to_bits(*bytes, ctl->unit); unit 1789 fs/btrfs/free-space-cache.c *offset = (u64)(i * ctl->unit) + bitmap_info->offset; unit 1790 fs/btrfs/free-space-cache.c *bytes = (u64)(found_bits) * ctl->unit; unit 1794 fs/btrfs/free-space-cache.c *bytes = (u64)(max_bits) * ctl->unit; unit 1906 fs/btrfs/free-space-cache.c end = bitmap_info->offset + (u64)(BITS_PER_BITMAP * ctl->unit) - 1; unit 1915 fs/btrfs/free-space-cache.c search_bytes = ctl->unit; unit 1961 fs/btrfs/free-space-cache.c search_bytes = ctl->unit; unit 1981 fs/btrfs/free-space-cache.c end = info->offset + (u64)(BITS_PER_BITMAP * ctl->unit); unit 2037 fs/btrfs/free-space-cache.c if (((BITS_PER_BITMAP * ctl->unit) >> 1) > block_group->key.offset) unit 2227 fs/btrfs/free-space-cache.c i = offset_to_bit(bitmap->offset, ctl->unit, end); unit 2231 fs/btrfs/free-space-cache.c bytes = (j - i) * ctl->unit; unit 2268 fs/btrfs/free-space-cache.c i = offset_to_bit(bitmap->offset, ctl->unit, info->offset) - 1; unit 2280 fs/btrfs/free-space-cache.c bytes = (i + 1) * ctl->unit; unit 2282 fs/btrfs/free-space-cache.c bytes = (i - prev_j) * ctl->unit; unit 2518 fs/btrfs/free-space-cache.c ctl->unit = fs_info->sectorsize; unit 2853 fs/btrfs/free-space-cache.c i = offset_to_bit(entry->offset, ctl->unit, unit 2855 fs/btrfs/free-space-cache.c want_bits = bytes_to_bits(bytes, ctl->unit); unit 2856 fs/btrfs/free-space-cache.c min_bits = bytes_to_bits(min_bytes, ctl->unit); unit 2882 fs/btrfs/free-space-cache.c entry->max_extent_size = (u64)max_bits * ctl->unit; unit 2893 fs/btrfs/free-space-cache.c if (cluster->max_size < found_bits * ctl->unit) unit 2894 fs/btrfs/free-space-cache.c cluster->max_size = found_bits * ctl->unit; unit 2901 fs/btrfs/free-space-cache.c cluster->window_start = start * ctl->unit + entry->offset; unit 2908 fs/btrfs/free-space-cache.c total_found * ctl->unit, 1); unit 3343 fs/btrfs/free-space-cache.c offset += BITS_PER_BITMAP * ctl->unit; unit 3346 fs/btrfs/free-space-cache.c if (start >= offset + BITS_PER_BITMAP * ctl->unit) unit 3347 fs/btrfs/free-space-cache.c offset += BITS_PER_BITMAP * ctl->unit; unit 3690 fs/btrfs/free-space-cache.c bit_bytes = ctl->unit; unit 25 fs/btrfs/free-space-cache.h int unit; unit 374 fs/btrfs/inode-map.c ctl->unit = 1; unit 389 fs/btrfs/inode-map.c pinned->unit = 1; unit 561 fs/proc/base.c const char *unit; unit 618 fs/proc/base.c if (lnames[i].unit) unit 619 fs/proc/base.c seq_printf(m, "%-10s\n", lnames[i].unit); unit 445 include/linux/bcma/bcma.h u8 unit); unit 235 include/linux/firewire.h static inline struct fw_unit *fw_unit_get(struct fw_unit *unit) unit 237 include/linux/firewire.h get_device(&unit->device); unit 239 include/linux/firewire.h return unit; unit 242 include/linux/firewire.h static inline void fw_unit_put(struct fw_unit *unit) unit 244 include/linux/firewire.h put_device(&unit->device); unit 247 include/linux/firewire.h static inline struct fw_device *fw_parent_device(struct fw_unit *unit) unit 249 include/linux/firewire.h return fw_device(unit->device.parent); unit 256 include/linux/firewire.h int (*probe)(struct fw_unit *unit, const struct ieee1394_device_id *id); unit 258 include/linux/firewire.h void (*update)(struct fw_unit *unit); unit 259 include/linux/firewire.h void (*remove)(struct fw_unit *unit); unit 16 include/linux/fsi.h u8 unit; unit 394 include/linux/hid.h unsigned unit; unit 464 include/linux/hid.h unsigned unit; unit 76 include/linux/maple.h unsigned char port, unit; unit 2608 include/linux/netdevice.h unsigned long netdev_boot_base(const char *prefix, int unit); unit 54 include/linux/netlink.h struct sock *__netlink_kernel_create(struct net *net, int unit, unit 58 include/linux/netlink.h netlink_kernel_create(struct net *net, int unit, struct netlink_kernel_cfg *cfg) unit 60 include/linux/netlink.h return __netlink_kernel_create(net, unit, THIS_MODULE, cfg); unit 44 include/linux/ppp-comp.h int opt_len, int unit, int opthdr, int debug); unit 64 include/linux/ppp-comp.h int opt_len, int unit, int opthdr, int mru, unit 10 include/linux/sm501.h unsigned int unit, unsigned int to); unit 12 include/linux/sound.h extern int register_sound_special(const struct file_operations *fops, int unit); unit 13 include/linux/sound.h extern int register_sound_special_device(const struct file_operations *fops, int unit, struct device *dev); unit 17 include/linux/sound.h extern void unregister_sound_special(int unit); unit 18 include/linux/sound.h extern void unregister_sound_mixer(int unit); unit 19 include/linux/sound.h extern void unregister_sound_dsp(int unit); unit 6 include/net/Space.h struct net_device *hp100_probe(int unit); unit 7 include/net/Space.h struct net_device *ultra_probe(int unit); unit 8 include/net/Space.h struct net_device *wd_probe(int unit); unit 9 include/net/Space.h struct net_device *ne_probe(int unit); unit 10 include/net/Space.h struct net_device *fmv18x_probe(int unit); unit 11 include/net/Space.h struct net_device *i82596_probe(int unit); unit 12 include/net/Space.h struct net_device *ni65_probe(int unit); unit 13 include/net/Space.h struct net_device *sonic_probe(int unit); unit 14 include/net/Space.h struct net_device *smc_init(int unit); unit 15 include/net/Space.h struct net_device *atarilance_probe(int unit); unit 16 include/net/Space.h struct net_device *sun3lance_probe(int unit); unit 17 include/net/Space.h struct net_device *sun3_82586_probe(int unit); unit 18 include/net/Space.h struct net_device *apne_probe(int unit); unit 19 include/net/Space.h struct net_device *cs89x0_probe(int unit); unit 20 include/net/Space.h struct net_device *mvme147lance_probe(int unit); unit 21 include/net/Space.h struct net_device *tc515_probe(int unit); unit 22 include/net/Space.h struct net_device *lance_probe(int unit); unit 23 include/net/Space.h struct net_device *cops_probe(int unit); unit 30 include/net/Space.h int sbni_probe(int unit); unit 172 include/net/addrconf.h unsigned int unit) unit 182 include/net/addrconf.h if (0xfffffffe > LONG_MAX / unit && timeout > LONG_MAX / unit) unit 183 include/net/addrconf.h return LONG_MAX / unit; unit 288 include/net/devlink.h enum devlink_resource_unit unit; unit 295 include/net/devlink.h enum devlink_resource_unit unit) unit 300 include/net/devlink.h size_params->unit = unit; unit 481 include/rdma/rdma_vt.h const int unit) unit 489 include/rdma/rdma_vt.h dev_set_name(&rdi->ibdev.dev, fmt, name, unit); unit 105 include/uapi/linux/hiddev.h __u32 unit; unit 62 include/uapi/linux/uvcvideo.h __u8 unit; unit 85 include/uapi/rdma/hfi/hfi1_ioctl.h __u16 unit; /* unit (chip) assigned to caller */ unit 55 lib/string_helpers.c const char *unit; unit 124 lib/string_helpers.c unit = "UNK"; unit 126 lib/string_helpers.c unit = units_str[units][i]; unit 129 lib/string_helpers.c tmp, unit); unit 2126 mm/percpu.c int unit; unit 2140 mm/percpu.c for (unit = 0; unit < nr_units; unit++) unit 2141 mm/percpu.c ai->groups[0].cpu_map[unit] = NR_CPUS; unit 2195 mm/percpu.c int unit = 0, unit_end = 0; unit 2206 mm/percpu.c for (unit_end += upa; unit < unit_end; unit++) unit 2207 mm/percpu.c if (gi->cpu_map[unit] != NR_CPUS) unit 2209 mm/percpu.c cpu_width, gi->cpu_map[unit]); unit 2282 mm/percpu.c int group, unit, i; unit 2347 mm/percpu.c for (group = 0, unit = 0; group < ai->nr_groups; group++, unit += i) { unit 2362 mm/percpu.c unit_map[cpu] = unit + i; unit 2374 mm/percpu.c pcpu_nr_units = unit; unit 2540 mm/percpu.c int last_allocs, group, unit; unit 2643 mm/percpu.c for (group = 0, unit = 0; group < nr_groups; group++) { unit 2651 mm/percpu.c gi->base_offset = unit * ai->unit_size; unit 2657 mm/percpu.c unit += gi->nr_units; unit 2659 mm/percpu.c BUG_ON(unit != nr_units); unit 2838 mm/percpu.c int unit, i, j, rc = 0; unit 2867 mm/percpu.c for (unit = 0; unit < num_possible_cpus(); unit++) { unit 2868 mm/percpu.c unsigned int cpu = ai->groups[0].cpu_map[unit]; unit 2889 mm/percpu.c for (unit = 0; unit < num_possible_cpus(); unit++) { unit 2891 mm/percpu.c (unsigned long)vm.addr + unit * ai->unit_size; unit 2897 mm/percpu.c rc = __pcpu_map_pages(unit_addr, &pages[unit * unit_pages], unit 541 net/core/dev.c unsigned long netdev_boot_base(const char *prefix, int unit) unit 547 net/core/dev.c sprintf(name, "%s%d", prefix, unit); unit 2506 net/core/devlink.c nla_put_u8(skb, DEVLINK_ATTR_RESOURCE_UNIT, size_params->unit)) unit 57 net/netfilter/nft_limit.c u64 unit, tokens; unit 64 net/netfilter/nft_limit.c unit = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_UNIT])); unit 65 net/netfilter/nft_limit.c limit->nsecs = unit * NSEC_PER_SEC; unit 66 net/netfilter/nft_limit.c if (limit->rate == 0 || limit->nsecs < unit) unit 2026 net/netlink/af_netlink.c __netlink_kernel_create(struct net *net, int unit, struct module *module, unit 2038 net/netlink/af_netlink.c if (unit < 0 || unit >= MAX_LINKS) unit 2041 net/netlink/af_netlink.c if (sock_create_lite(PF_NETLINK, SOCK_DGRAM, unit, &sock)) unit 2044 net/netlink/af_netlink.c if (__netlink_create(net, sock, cb_mutex, unit, 1) < 0) unit 2069 net/netlink/af_netlink.c if (!nl_table[unit].registered) { unit 2070 net/netlink/af_netlink.c nl_table[unit].groups = groups; unit 2071 net/netlink/af_netlink.c rcu_assign_pointer(nl_table[unit].listeners, listeners); unit 2072 net/netlink/af_netlink.c nl_table[unit].cb_mutex = cb_mutex; unit 2073 net/netlink/af_netlink.c nl_table[unit].module = module; unit 2075 net/netlink/af_netlink.c nl_table[unit].bind = cfg->bind; unit 2076 net/netlink/af_netlink.c nl_table[unit].unbind = cfg->unbind; unit 2077 net/netlink/af_netlink.c nl_table[unit].flags = cfg->flags; unit 2079 net/netlink/af_netlink.c nl_table[unit].compare = cfg->compare; unit 2081 net/netlink/af_netlink.c nl_table[unit].registered = 1; unit 2084 net/netlink/af_netlink.c nl_table[unit].registered++; unit 34 scripts/dtc/dtc.c const char *unit; unit 38 scripts/dtc/dtc.c unit = strchr(tree->name, '@'); unit 39 scripts/dtc/dtc.c if (unit) unit 40 scripts/dtc/dtc.c tree->basenamelen = unit - tree->name; unit 2060 sound/core/timer.c long result = 0, unit; unit 2065 sound/core/timer.c unit = tu->tread ? sizeof(struct snd_timer_tread) : sizeof(struct snd_timer_read); unit 2068 sound/core/timer.c while ((long)count - result >= unit) { unit 2117 sound/core/timer.c result += unit; unit 2118 sound/core/timer.c buffer += unit; unit 414 sound/firewire/amdtp-am824.c int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit, unit 424 sound/firewire/amdtp-am824.c return amdtp_stream_init(s, unit, dir, flags, CIP_FMT_AM, unit 47 sound/firewire/amdtp-am824.h int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit, unit 38 sound/firewire/amdtp-stream-trace.h __entry->src = fw_parent_device(s->unit)->node_id; unit 39 sound/firewire/amdtp-stream-trace.h __entry->dest = fw_parent_device(s->unit)->card->node_id; unit 41 sound/firewire/amdtp-stream-trace.h __entry->src = fw_parent_device(s->unit)->card->node_id; unit 42 sound/firewire/amdtp-stream-trace.h __entry->dest = fw_parent_device(s->unit)->node_id; unit 80 sound/firewire/amdtp-stream.c int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, unit 93 sound/firewire/amdtp-stream.c s->unit = unit; unit 450 sound/firewire/amdtp-stream.c dev_err(&s->unit->device, "queueing error: %d\n", err); unit 538 sound/firewire/amdtp-stream.c dev_info_ratelimited(&s->unit->device, unit 548 sound/firewire/amdtp-stream.c dev_info_ratelimited(&s->unit->device, unit 564 sound/firewire/amdtp-stream.c dev_err(&s->unit->device, unit 599 sound/firewire/amdtp-stream.c dev_err(&s->unit->device, unit 625 sound/firewire/amdtp-stream.c dev_err(&s->unit->device, unit 956 sound/firewire/amdtp-stream.c err = iso_packets_buffer_init(&s->buffer, s->unit, QUEUE_LENGTH, unit 961 sound/firewire/amdtp-stream.c s->context = fw_iso_context_create(fw_parent_device(s->unit)->card, unit 967 sound/firewire/amdtp-stream.c dev_err(&s->unit->device, unit 1024 sound/firewire/amdtp-stream.c iso_packets_buffer_destroy(&s->buffer, s->unit); unit 1089 sound/firewire/amdtp-stream.c (fw_parent_device(s->unit)->card->node_id << CIP_SID_SHIFT) & CIP_SID_MASK); unit 1113 sound/firewire/amdtp-stream.c iso_packets_buffer_destroy(&s->buffer, s->unit); unit 112 sound/firewire/amdtp-stream.h struct fw_unit *unit; unit 180 sound/firewire/amdtp-stream.h int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, unit 71 sound/firewire/bebob/bebob.c struct fw_device *fw_dev = fw_parent_device(bebob->unit); unit 87 sound/firewire/bebob/bebob.c err = fw_csr_string(bebob->unit->directory, CSR_MODEL, unit 93 sound/firewire/bebob/bebob.c err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, unit 99 sound/firewire/bebob/bebob.c err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, unit 105 sound/firewire/bebob/bebob.c err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, unit 110 sound/firewire/bebob/bebob.c err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_BEBOB_VERSION, unit 122 sound/firewire/bebob/bebob.c data[0], data[1], dev_name(&bebob->unit->device), unit 141 sound/firewire/bebob/bebob.c get_saffire_spec(struct fw_unit *unit) unit 145 sound/firewire/bebob/bebob.c if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) unit 155 sound/firewire/bebob/bebob.c check_audiophile_booted(struct fw_unit *unit) unit 159 sound/firewire/bebob/bebob.c if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) unit 186 sound/firewire/bebob/bebob.c err = snd_card_new(&bebob->unit->device, index[card_index], unit 242 sound/firewire/bebob/bebob.c dev_info(&bebob->unit->device, unit 247 sound/firewire/bebob/bebob.c bebob_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry) unit 254 sound/firewire/bebob/bebob.c spec = get_saffire_spec(unit); unit 257 sound/firewire/bebob/bebob.c !check_audiophile_booted(unit)) unit 265 sound/firewire/bebob/bebob.c return snd_bebob_maudio_load_firmware(unit); unit 271 sound/firewire/bebob/bebob.c bebob = devm_kzalloc(&unit->device, sizeof(struct snd_bebob), unit 275 sound/firewire/bebob/bebob.c bebob->unit = fw_unit_get(unit); unit 276 sound/firewire/bebob/bebob.c dev_set_drvdata(&unit->device, bebob); unit 290 sound/firewire/bebob/bebob.c snd_fw_schedule_registration(unit, &bebob->dwork); unit 302 sound/firewire/bebob/bebob.c fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card, unit 326 sound/firewire/bebob/bebob.c bebob_update(struct fw_unit *unit) unit 328 sound/firewire/bebob/bebob.c struct snd_bebob *bebob = dev_get_drvdata(&unit->device); unit 335 sound/firewire/bebob/bebob.c snd_fw_schedule_registration(unit, &bebob->dwork); unit 337 sound/firewire/bebob/bebob.c fcp_bus_reset(bebob->unit); unit 340 sound/firewire/bebob/bebob.c static void bebob_remove(struct fw_unit *unit) unit 342 sound/firewire/bebob/bebob.c struct snd_bebob *bebob = dev_get_drvdata(&unit->device); unit 360 sound/firewire/bebob/bebob.c fw_unit_put(bebob->unit); unit 80 sound/firewire/bebob/bebob.h struct fw_unit *unit; unit 123 sound/firewire/bebob/bebob.h snd_bebob_read_block(struct fw_unit *unit, u64 addr, void *buf, int size) unit 125 sound/firewire/bebob/bebob.h return snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, unit 131 sound/firewire/bebob/bebob.h snd_bebob_read_quad(struct fw_unit *unit, u64 addr, u32 *buf) unit 133 sound/firewire/bebob/bebob.h return snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, unit 139 sound/firewire/bebob/bebob.h int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id, unit 141 sound/firewire/bebob/bebob.h int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id, unit 175 sound/firewire/bebob/bebob.h enum avc_bridgeco_plug_unit unit, unit 181 sound/firewire/bebob/bebob.h buf[3] = unit; unit 197 sound/firewire/bebob/bebob.h int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, unit 200 sound/firewire/bebob/bebob.h int avc_bridgeco_get_plug_type(struct fw_unit *unit, unit 203 sound/firewire/bebob/bebob.h int avc_bridgeco_get_plug_section_type(struct fw_unit *unit, unit 206 sound/firewire/bebob/bebob.h int avc_bridgeco_get_plug_input(struct fw_unit *unit, unit 209 sound/firewire/bebob/bebob.h int avc_bridgeco_get_plug_strm_fmt(struct fw_unit *unit, unit 251 sound/firewire/bebob/bebob.h int snd_bebob_maudio_load_firmware(struct fw_unit *unit); unit 10 sound/firewire/bebob/bebob_command.c int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id, unit 30 sound/firewire/bebob/bebob_command.c err = fcp_avc_transaction(unit, buf, 12, buf, 12, unit 48 sound/firewire/bebob/bebob_command.c int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id, unit 68 sound/firewire/bebob/bebob_command.c err = fcp_avc_transaction(unit, buf, 12, buf, 12, unit 109 sound/firewire/bebob/bebob_command.c int avc_bridgeco_get_plug_type(struct fw_unit *unit, unit 123 sound/firewire/bebob/bebob_command.c err = fcp_avc_transaction(unit, buf, 12, buf, 12, unit 146 sound/firewire/bebob/bebob_command.c int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, unit 155 sound/firewire/bebob/bebob_command.c err = fcp_avc_transaction(unit, buf, 12, buf, 256, unit 178 sound/firewire/bebob/bebob_command.c int avc_bridgeco_get_plug_section_type(struct fw_unit *unit, unit 194 sound/firewire/bebob/bebob_command.c err = fcp_avc_transaction(unit, buf, 12, buf, 12, unit 217 sound/firewire/bebob/bebob_command.c int avc_bridgeco_get_plug_input(struct fw_unit *unit, unit 230 sound/firewire/bebob/bebob_command.c err = fcp_avc_transaction(unit, buf, 16, buf, 16, unit 253 sound/firewire/bebob/bebob_command.c int avc_bridgeco_get_plug_strm_fmt(struct fw_unit *unit, unit 271 sound/firewire/bebob/bebob_command.c err = fcp_avc_transaction(unit, buf, 12, buf, *len, unit 68 sound/firewire/bebob/bebob_focusrite.c err = snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, unit 86 sound/firewire/bebob/bebob_focusrite.c err = snd_fw_transaction(bebob->unit, TCODE_READ_QUADLET_REQUEST, unit 102 sound/firewire/bebob/bebob_focusrite.c return snd_fw_transaction(bebob->unit, TCODE_WRITE_QUADLET_REQUEST, unit 76 sound/firewire/bebob/bebob_hwdep.c struct fw_device *dev = fw_parent_device(bebob->unit); unit 93 sound/firewire/bebob/bebob_maudio.c int snd_bebob_maudio_load_firmware(struct fw_unit *unit) unit 95 sound/firewire/bebob/bebob_maudio.c struct fw_device *device = fw_parent_device(unit); unit 101 sound/firewire/bebob/bebob_maudio.c err = snd_bebob_read_block(unit, INFO_OFFSET_SW_DATE, unit 110 sound/firewire/bebob/bebob_maudio.c dev_err(&unit->device, unit 129 sound/firewire/bebob/bebob_maudio.c dev_err(&unit->device, unit 140 sound/firewire/bebob/bebob_maudio.c return snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, unit 200 sound/firewire/bebob/bebob_maudio.c err = fcp_avc_transaction(bebob->unit, buf, 12, buf, 12, unit 278 sound/firewire/bebob/bebob_maudio.c dev_err(&bebob->unit->device, unit 308 sound/firewire/bebob/bebob_maudio.c err = avc_general_get_sig_fmt(bebob->unit, rate, unit 319 sound/firewire/bebob/bebob_maudio.c err = avc_general_set_sig_fmt(bebob->unit, rate, unit 330 sound/firewire/bebob/bebob_maudio.c err = avc_general_set_sig_fmt(bebob->unit, rate, unit 461 sound/firewire/bebob/bebob_maudio.c err = avc_audio_get_selector(bebob->unit, 0x00, 0x04, unit 464 sound/firewire/bebob/bebob_maudio.c dev_err(&bebob->unit->device, unit 514 sound/firewire/bebob/bebob_maudio.c err = avc_audio_set_selector(bebob->unit, 0x00, 0x04, dig_in_iface); unit 516 sound/firewire/bebob/bebob_maudio.c dev_err(&bebob->unit->device, unit 162 sound/firewire/bebob/bebob_pcm.c dev_err(&bebob->unit->device, unit 45 sound/firewire/bebob/bebob_proc.c if (snd_bebob_read_block(bebob->unit, 0, unit 71 sound/firewire/bebob/bebob_stream.c err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, unit 79 sound/firewire/bebob/bebob_stream.c err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, unit 90 sound/firewire/bebob/bebob_stream.c err = avc_general_set_sig_fmt(bebob->unit, rx_rate, unit 101 sound/firewire/bebob/bebob_stream.c err = avc_general_set_sig_fmt(bebob->unit, rate, unit 106 sound/firewire/bebob/bebob_stream.c err = avc_general_set_sig_fmt(bebob->unit, rate, unit 133 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 139 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 165 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_input(bebob->unit, addr, input); unit 167 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 222 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, unit 278 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_ch_pos(bebob->unit, addr, buf, 256); unit 280 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 299 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_section_type(bebob->unit, addr, unit 302 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 391 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 472 sound/firewire/bebob/bebob_stream.c err = cmp_connection_init(conn, bebob->unit, dir_conn, 0); unit 476 sound/firewire/bebob/bebob_stream.c err = amdtp_am824_init(stream, bebob->unit, dir_stream, CIP_BLOCKING); unit 591 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 661 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 805 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_strm_fmt(bebob->unit, addr, buf, unit 812 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 839 sound/firewire/bebob/bebob_stream.c err = avc_general_get_plug_info(bebob->unit, 0x0c, 0x00, 0x00, plugs); unit 841 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 851 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); unit 853 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 877 sound/firewire/bebob/bebob_stream.c err = avc_general_get_plug_info(bebob->unit, 0x1f, 0x07, 0x00, plugs); unit 879 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 896 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); unit 898 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 911 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); unit 913 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 929 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); unit 931 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 945 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); unit 947 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, unit 21 sound/firewire/bebob/bebob_terratec.c err = avc_audio_get_selector(bebob->unit, 0, 9, &enable_ext); unit 24 sound/firewire/bebob/bebob_terratec.c err = avc_audio_get_selector(bebob->unit, 0, 8, &enable_word); unit 42 sound/firewire/bebob/bebob_yamaha_terratec.c err = avc_audio_get_selector(bebob->unit, 0, 4, id); unit 51 sound/firewire/cmp.c dev_err(&c->resources.unit->device, "%cPCR%u: %pV", unit 87 sound/firewire/cmp.c c->resources.unit, TCODE_LOCK_COMPARE_SWAP, unit 121 sound/firewire/cmp.c struct fw_unit *unit, unit 130 sound/firewire/cmp.c err = snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, unit 139 sound/firewire/cmp.c err = fw_iso_resources_init(&c->resources, unit); unit 166 sound/firewire/cmp.c c->resources.unit, TCODE_READ_QUADLET_REQUEST, unit 201 sound/firewire/cmp.c fw_parent_device(c->resources.unit)->max_speed); unit 39 sound/firewire/cmp.h struct fw_unit *unit, unit 53 sound/firewire/dice/dice-extension.c return snd_fw_transaction(dice->unit, unit 151 sound/firewire/dice/dice-extension.c err = snd_fw_transaction(dice->unit, TCODE_READ_BLOCK_REQUEST, unit 74 sound/firewire/dice/dice-hwdep.c struct fw_device *dev = fw_parent_device(dice->unit); unit 35 sound/firewire/dice/dice-presonus.c fw_csr_iterator_init(&it, dice->unit->directory); unit 17 sound/firewire/dice/dice-proc.c err = snd_fw_transaction(dice->unit, TCODE_READ_BLOCK_REQUEST, unit 207 sound/firewire/dice/dice-stream.c fw_parent_device(dice->unit)->max_speed); unit 257 sound/firewire/dice/dice-stream.c dev_info(&dice->unit->device, unit 338 sound/firewire/dice/dice-stream.c unsigned int max_speed = fw_parent_device(dice->unit)->max_speed; unit 417 sound/firewire/dice/dice-stream.c if (generation != fw_parent_device(dice->unit)->card->generation) { unit 453 sound/firewire/dice/dice-stream.c dev_err(&dice->unit->device, unit 516 sound/firewire/dice/dice-stream.c err = fw_iso_resources_init(resources, dice->unit); unit 521 sound/firewire/dice/dice-stream.c err = amdtp_am824_init(stream, dice->unit, dir, CIP_BLOCKING); unit 77 sound/firewire/dice/dice-tcelectronic.c fw_csr_iterator_init(&it, dice->unit->directory); unit 40 sound/firewire/dice/dice-transaction.c return snd_fw_transaction(dice->unit, unit 50 sound/firewire/dice/dice-transaction.c return snd_fw_transaction(dice->unit, unit 105 sound/firewire/dice/dice-transaction.c err = snd_fw_transaction(dice->unit, TCODE_WRITE_QUADLET_REQUEST, unit 123 sound/firewire/dice/dice-transaction.c snd_fw_transaction(dice->unit, TCODE_WRITE_QUADLET_REQUEST, unit 165 sound/firewire/dice/dice-transaction.c struct fw_device *device = fw_parent_device(dice->unit); unit 184 sound/firewire/dice/dice-transaction.c err = snd_fw_transaction(dice->unit, TCODE_LOCK_COMPARE_SWAP, unit 199 sound/firewire/dice/dice-transaction.c dev_err(&dice->unit->device, unit 219 sound/firewire/dice/dice-transaction.c struct fw_device *device = fw_parent_device(dice->unit); unit 230 sound/firewire/dice/dice-transaction.c snd_fw_transaction(dice->unit, TCODE_LOCK_COMPARE_SWAP, unit 289 sound/firewire/dice/dice-transaction.c err = snd_fw_transaction(dice->unit, TCODE_READ_BLOCK_REQUEST, unit 308 sound/firewire/dice/dice-transaction.c err = snd_fw_transaction(dice->unit, TCODE_READ_QUADLET_REQUEST, unit 317 sound/firewire/dice/dice-transaction.c dev_err(&dice->unit->device, unit 30 sound/firewire/dice/dice.c static int check_dice_category(struct fw_unit *unit) unit 32 sound/firewire/dice/dice.c struct fw_device *device = fw_parent_device(unit); unit 43 sound/firewire/dice/dice.c fw_csr_iterator_init(&it, unit->directory); unit 95 sound/firewire/dice/dice.c struct fw_device *dev = fw_parent_device(dice->unit); unit 118 sound/firewire/dice/dice.c fw_csr_string(dice->unit->directory, CSR_MODEL, model, sizeof(model)); unit 122 sound/firewire/dice/dice.c dev_name(&dice->unit->device), 100 << dev->max_speed); unit 143 sound/firewire/dice/dice.c err = snd_card_new(&dice->unit->device, -1, NULL, THIS_MODULE, 0, unit 191 sound/firewire/dice/dice.c dev_info(&dice->unit->device, unit 195 sound/firewire/dice/dice.c static int dice_probe(struct fw_unit *unit, unit 202 sound/firewire/dice/dice.c err = check_dice_category(unit); unit 208 sound/firewire/dice/dice.c dice = devm_kzalloc(&unit->device, sizeof(struct snd_dice), GFP_KERNEL); unit 211 sound/firewire/dice/dice.c dice->unit = fw_unit_get(unit); unit 212 sound/firewire/dice/dice.c dev_set_drvdata(&unit->device, dice); unit 228 sound/firewire/dice/dice.c snd_fw_schedule_registration(unit, &dice->dwork); unit 233 sound/firewire/dice/dice.c static void dice_remove(struct fw_unit *unit) unit 235 sound/firewire/dice/dice.c struct snd_dice *dice = dev_get_drvdata(&unit->device); unit 250 sound/firewire/dice/dice.c fw_unit_put(dice->unit); unit 253 sound/firewire/dice/dice.c static void dice_bus_reset(struct fw_unit *unit) unit 255 sound/firewire/dice/dice.c struct snd_dice *dice = dev_get_drvdata(&unit->device); unit 259 sound/firewire/dice/dice.c snd_fw_schedule_registration(unit, &dice->dwork); unit 77 sound/firewire/dice/dice.h struct fw_unit *unit; unit 395 sound/firewire/digi00x/amdtp-dot.c int amdtp_dot_init(struct amdtp_stream *s, struct fw_unit *unit, unit 410 sound/firewire/digi00x/amdtp-dot.c return amdtp_stream_init(s, unit, dir, flags, CIP_FMT_AM, unit 82 sound/firewire/digi00x/digi00x-hwdep.c struct fw_device *dev = fw_parent_device(dg00x->unit); unit 16 sound/firewire/digi00x/digi00x-proc.c err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, unit 36 sound/firewire/digi00x/digi00x-stream.c err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, unit 64 sound/firewire/digi00x/digi00x-stream.c return snd_fw_transaction(dg00x->unit, TCODE_WRITE_QUADLET_REQUEST, unit 75 sound/firewire/digi00x/digi00x-stream.c err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, unit 93 sound/firewire/digi00x/digi00x-stream.c err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, unit 109 sound/firewire/digi00x/digi00x-stream.c err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, unit 130 sound/firewire/digi00x/digi00x-stream.c snd_fw_transaction(dg00x->unit, TCODE_WRITE_QUADLET_REQUEST, unit 136 sound/firewire/digi00x/digi00x-stream.c snd_fw_transaction(dg00x->unit, TCODE_WRITE_QUADLET_REQUEST, unit 154 sound/firewire/digi00x/digi00x-stream.c err = snd_fw_transaction(dg00x->unit, TCODE_WRITE_QUADLET_REQUEST, unit 160 sound/firewire/digi00x/digi00x-stream.c err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, unit 173 sound/firewire/digi00x/digi00x-stream.c err = snd_fw_transaction(dg00x->unit, unit 215 sound/firewire/digi00x/digi00x-stream.c fw_parent_device(dg00x->unit)->max_speed); unit 232 sound/firewire/digi00x/digi00x-stream.c err = fw_iso_resources_init(resources, dg00x->unit); unit 236 sound/firewire/digi00x/digi00x-stream.c err = amdtp_dot_init(s, dg00x->unit, dir); unit 337 sound/firewire/digi00x/digi00x-stream.c if (generation != fw_parent_device(dg00x->unit)->card->generation) { unit 352 sound/firewire/digi00x/digi00x-stream.c int spd = fw_parent_device(dg00x->unit)->max_speed; unit 39 sound/firewire/digi00x/digi00x-transaction.c struct fw_device *device = fw_parent_device(dg00x->unit); unit 46 sound/firewire/digi00x/digi00x-transaction.c return snd_fw_transaction(dg00x->unit, TCODE_WRITE_BLOCK_REQUEST, unit 20 sound/firewire/digi00x/digi00x.c struct fw_device *fw_dev = fw_parent_device(dg00x->unit); unit 25 sound/firewire/digi00x/digi00x.c err = fw_csr_string(dg00x->unit->directory, CSR_MODEL, name, unit 38 sound/firewire/digi00x/digi00x.c dev_name(&dg00x->unit->device), 100 << fw_dev->max_speed); unit 60 sound/firewire/digi00x/digi00x.c err = snd_card_new(&dg00x->unit->device, -1, NULL, THIS_MODULE, 0, unit 102 sound/firewire/digi00x/digi00x.c dev_info(&dg00x->unit->device, unit 106 sound/firewire/digi00x/digi00x.c static int snd_dg00x_probe(struct fw_unit *unit, unit 112 sound/firewire/digi00x/digi00x.c dg00x = devm_kzalloc(&unit->device, sizeof(struct snd_dg00x), unit 117 sound/firewire/digi00x/digi00x.c dg00x->unit = fw_unit_get(unit); unit 118 sound/firewire/digi00x/digi00x.c dev_set_drvdata(&unit->device, dg00x); unit 128 sound/firewire/digi00x/digi00x.c snd_fw_schedule_registration(unit, &dg00x->dwork); unit 133 sound/firewire/digi00x/digi00x.c static void snd_dg00x_update(struct fw_unit *unit) unit 135 sound/firewire/digi00x/digi00x.c struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); unit 139 sound/firewire/digi00x/digi00x.c snd_fw_schedule_registration(unit, &dg00x->dwork); unit 154 sound/firewire/digi00x/digi00x.c static void snd_dg00x_remove(struct fw_unit *unit) unit 156 sound/firewire/digi00x/digi00x.c struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); unit 171 sound/firewire/digi00x/digi00x.c fw_unit_put(dg00x->unit); unit 35 sound/firewire/digi00x/digi00x.h struct fw_unit *unit; unit 118 sound/firewire/digi00x/digi00x.h int amdtp_dot_init(struct amdtp_stream *s, struct fw_unit *unit, unit 28 sound/firewire/fcp.c int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate, unit 64 sound/firewire/fcp.c err = fcp_avc_transaction(unit, buf, 8, buf, 8, unit 84 sound/firewire/fcp.c int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate, unit 109 sound/firewire/fcp.c err = fcp_avc_transaction(unit, buf, 8, buf, 8, unit 139 sound/firewire/fcp.c int avc_general_get_plug_info(struct fw_unit *unit, unsigned int subunit_type, unit 160 sound/firewire/fcp.c err = fcp_avc_transaction(unit, buf, 8, buf, 8, BIT(1) | BIT(2)); unit 198 sound/firewire/fcp.c struct fw_unit *unit; unit 229 sound/firewire/fcp.c int fcp_avc_transaction(struct fw_unit *unit, unit 237 sound/firewire/fcp.c t.unit = unit; unit 254 sound/firewire/fcp.c ret = snd_fw_transaction(t.unit, tcode, unit 279 sound/firewire/fcp.c dev_err(&t.unit->device, "FCP command timed out\n"); unit 301 sound/firewire/fcp.c void fcp_bus_reset(struct fw_unit *unit) unit 307 sound/firewire/fcp.c if (t->unit == unit && unit 353 sound/firewire/fcp.c struct fw_device *device = fw_parent_device(t->unit); unit 18 sound/firewire/fcp.h int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate, unit 21 sound/firewire/fcp.h int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate, unit 24 sound/firewire/fcp.h int avc_general_get_plug_info(struct fw_unit *unit, unsigned int subunit_type, unit 28 sound/firewire/fcp.h int fcp_avc_transaction(struct fw_unit *unit, unit 32 sound/firewire/fcp.h void fcp_bus_reset(struct fw_unit *unit); unit 161 sound/firewire/fireface/amdtp-ff.c int amdtp_ff_init(struct amdtp_stream *s, struct fw_unit *unit, unit 171 sound/firewire/fireface/amdtp-ff.c return amdtp_stream_init(s, unit, dir, CIP_NO_HEADER, 0, unit 74 sound/firewire/fireface/ff-hwdep.c struct fw_device *dev = fw_parent_device(ff->unit); unit 80 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_READ_QUADLET_REQUEST, unit 116 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_WRITE_BLOCK_REQUEST, unit 132 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_READ_BLOCK_REQUEST, unit 202 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_READ_BLOCK_REQUEST, unit 304 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 313 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_READ_QUADLET_REQUEST, unit 344 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 357 sound/firewire/fireface/ff-protocol-former.c fw_parent_device(ff->unit)->max_speed); unit 367 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 380 sound/firewire/fireface/ff-protocol-former.c if (generation != fw_parent_device(ff->unit)->card->generation) { unit 388 sound/firewire/fireface/ff-protocol-former.c if (fw_parent_device(ff->unit)->max_speed == SCODE_800) unit 390 sound/firewire/fireface/ff-protocol-former.c return snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 399 sound/firewire/fireface/ff-protocol-former.c snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 458 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 473 sound/firewire/fireface/ff-protocol-former.c fw_parent_device(ff->unit)->max_speed); unit 481 sound/firewire/fireface/ff-protocol-former.c fw_parent_device(ff->unit)->max_speed); unit 494 sound/firewire/fireface/ff-protocol-former.c if (generation != fw_parent_device(ff->unit)->card->generation) { unit 508 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 519 sound/firewire/fireface/ff-protocol-former.c err = snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 526 sound/firewire/fireface/ff-protocol-former.c return snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 535 sound/firewire/fireface/ff-protocol-former.c snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 76 sound/firewire/fireface/ff-protocol-latter.c err = snd_fw_transaction(ff->unit, TCODE_READ_QUADLET_REQUEST, unit 96 sound/firewire/fireface/ff-protocol-latter.c return snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 125 sound/firewire/fireface/ff-protocol-latter.c err = snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 161 sound/firewire/fireface/ff-protocol-latter.c fw_parent_device(ff->unit)->max_speed); unit 169 sound/firewire/fireface/ff-protocol-latter.c fw_parent_device(ff->unit)->max_speed); unit 193 sound/firewire/fireface/ff-protocol-latter.c if (generation != fw_parent_device(ff->unit)->card->generation) { unit 205 sound/firewire/fireface/ff-protocol-latter.c err = snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 213 sound/firewire/fireface/ff-protocol-latter.c return snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 222 sound/firewire/fireface/ff-protocol-latter.c snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 245 sound/firewire/fireface/ff-protocol-latter.c err = snd_fw_transaction(ff->unit, TCODE_READ_QUADLET_REQUEST, unit 53 sound/firewire/fireface/ff-stream.c err = fw_iso_resources_init(resources, ff->unit); unit 57 sound/firewire/fireface/ff-stream.c err = amdtp_ff_init(s, ff->unit, dir); unit 176 sound/firewire/fireface/ff-stream.c int spd = fw_parent_device(ff->unit)->max_speed; unit 59 sound/firewire/fireface/ff-transaction.c struct fw_device *fw_dev = fw_parent_device(ff->unit); unit 176 sound/firewire/fireface/ff-transaction.c struct fw_card *fw_card = fw_parent_device(ff->unit)->card; unit 186 sound/firewire/fireface/ff-transaction.c return snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 227 sound/firewire/fireface/ff-transaction.c snd_fw_transaction(ff->unit, TCODE_WRITE_QUADLET_REQUEST, unit 18 sound/firewire/fireface/ff.c struct fw_device *fw_dev = fw_parent_device(ff->unit); unit 26 sound/firewire/fireface/ff.c dev_name(&ff->unit->device), 100 << fw_dev->max_speed); unit 45 sound/firewire/fireface/ff.c err = snd_card_new(&ff->unit->device, -1, NULL, THIS_MODULE, 0, unit 85 sound/firewire/fireface/ff.c dev_info(&ff->unit->device, unit 89 sound/firewire/fireface/ff.c static int snd_ff_probe(struct fw_unit *unit, unit 94 sound/firewire/fireface/ff.c ff = devm_kzalloc(&unit->device, sizeof(struct snd_ff), GFP_KERNEL); unit 97 sound/firewire/fireface/ff.c ff->unit = fw_unit_get(unit); unit 98 sound/firewire/fireface/ff.c dev_set_drvdata(&unit->device, ff); unit 108 sound/firewire/fireface/ff.c snd_fw_schedule_registration(unit, &ff->dwork); unit 113 sound/firewire/fireface/ff.c static void snd_ff_update(struct fw_unit *unit) unit 115 sound/firewire/fireface/ff.c struct snd_ff *ff = dev_get_drvdata(&unit->device); unit 119 sound/firewire/fireface/ff.c snd_fw_schedule_registration(unit, &ff->dwork); unit 127 sound/firewire/fireface/ff.c static void snd_ff_remove(struct fw_unit *unit) unit 129 sound/firewire/fireface/ff.c struct snd_ff *ff = dev_get_drvdata(&unit->device); unit 144 sound/firewire/fireface/ff.c fw_unit_put(ff->unit); unit 62 sound/firewire/fireface/ff.h struct fw_unit *unit; unit 135 sound/firewire/fireface/ff.h int amdtp_ff_init(struct amdtp_stream *s, struct fw_unit *unit, unit 74 sound/firewire/fireworks/fireworks.c struct fw_device *fw_dev = fw_parent_device(efw->unit); unit 100 sound/firewire/fireworks/fireworks.c dev_name(&efw->unit->device), 100 << fw_dev->max_speed); unit 220 sound/firewire/fireworks/fireworks.c err = snd_card_new(&efw->unit->device, index[card_index], unit 277 sound/firewire/fireworks/fireworks.c dev_info(&efw->unit->device, unit 282 sound/firewire/fireworks/fireworks.c efw_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry) unit 286 sound/firewire/fireworks/fireworks.c efw = devm_kzalloc(&unit->device, sizeof(struct snd_efw), GFP_KERNEL); unit 289 sound/firewire/fireworks/fireworks.c efw->unit = fw_unit_get(unit); unit 290 sound/firewire/fireworks/fireworks.c dev_set_drvdata(&unit->device, efw); unit 298 sound/firewire/fireworks/fireworks.c snd_fw_schedule_registration(unit, &efw->dwork); unit 303 sound/firewire/fireworks/fireworks.c static void efw_update(struct fw_unit *unit) unit 305 sound/firewire/fireworks/fireworks.c struct snd_efw *efw = dev_get_drvdata(&unit->device); unit 309 sound/firewire/fireworks/fireworks.c snd_fw_schedule_registration(unit, &efw->dwork); unit 311 sound/firewire/fireworks/fireworks.c snd_efw_transaction_bus_reset(efw->unit); unit 324 sound/firewire/fireworks/fireworks.c static void efw_remove(struct fw_unit *unit) unit 326 sound/firewire/fireworks/fireworks.c struct snd_efw *efw = dev_get_drvdata(&unit->device); unit 341 sound/firewire/fireworks/fireworks.c fw_unit_put(efw->unit); unit 62 sound/firewire/fireworks/fireworks.h struct fw_unit *unit; unit 114 sound/firewire/fireworks/fireworks.h int snd_efw_transaction_cmd(struct fw_unit *unit, unit 116 sound/firewire/fireworks/fireworks.h int snd_efw_transaction_run(struct fw_unit *unit, unit 121 sound/firewire/fireworks/fireworks.h void snd_efw_transaction_bus_reset(struct fw_unit *unit); unit 144 sound/firewire/fireworks/fireworks_command.c err = snd_efw_transaction_run(efw->unit, buf, cmd_bytes, unit 154 sound/firewire/fireworks/fireworks_command.c dev_err(&efw->unit->device, "EFW command failed [%u/%u]: %s\n", unit 179 sound/firewire/fireworks/fireworks_hwdep.c if (snd_efw_transaction_cmd(efw->unit, buf, count) < 0) unit 207 sound/firewire/fireworks/fireworks_hwdep.c struct fw_device *dev = fw_parent_device(efw->unit); unit 28 sound/firewire/fireworks/fireworks_stream.c err = cmp_connection_init(conn, efw->unit, c_dir, 0); unit 32 sound/firewire/fireworks/fireworks_stream.c err = amdtp_am824_init(stream, efw->unit, s_dir, CIP_BLOCKING); unit 117 sound/firewire/fireworks/fireworks_stream.c dev_err(&efw->unit->device, unit 54 sound/firewire/fireworks/fireworks_transaction.c struct fw_unit *unit; unit 62 sound/firewire/fireworks/fireworks_transaction.c int snd_efw_transaction_cmd(struct fw_unit *unit, unit 65 sound/firewire/fireworks/fireworks_transaction.c return snd_fw_transaction(unit, TCODE_WRITE_BLOCK_REQUEST, unit 70 sound/firewire/fireworks/fireworks_transaction.c int snd_efw_transaction_run(struct fw_unit *unit, unit 78 sound/firewire/fireworks/fireworks_transaction.c t.unit = unit; unit 91 sound/firewire/fireworks/fireworks_transaction.c ret = snd_efw_transaction_cmd(t.unit, (void *)cmd, cmd_size); unit 104 sound/firewire/fireworks/fireworks_transaction.c dev_err(&t.unit->device, "EFW transaction timed out\n"); unit 178 sound/firewire/fireworks/fireworks_transaction.c device = fw_parent_device(efw->unit); unit 206 sound/firewire/fireworks/fireworks_transaction.c device = fw_parent_device(t->unit); unit 289 sound/firewire/fireworks/fireworks_transaction.c void snd_efw_transaction_bus_reset(struct fw_unit *unit) unit 295 sound/firewire/fireworks/fireworks_transaction.c if ((t->unit == unit) && unit 51 sound/firewire/isight.c struct fw_unit *unit; unit 200 sound/firewire/isight.c dev_err(&isight->unit->device, "queueing error: %d\n", err); unit 227 sound/firewire/isight.c err = snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, unit 270 sound/firewire/isight.c return iso_packets_buffer_init(&isight->buffer, isight->unit, unit 280 sound/firewire/isight.c iso_packets_buffer_destroy(&isight->buffer, isight->unit); unit 303 sound/firewire/isight.c return snd_fw_transaction(isight->unit, TCODE_READ_QUADLET_REQUEST, unit 309 sound/firewire/isight.c return snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, unit 325 sound/firewire/isight.c snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, unit 607 sound/firewire/isight.c static u64 get_unit_base(struct fw_unit *unit) unit 612 sound/firewire/isight.c fw_csr_iterator_init(&i, unit->directory); unit 619 sound/firewire/isight.c static int isight_probe(struct fw_unit *unit, unit 622 sound/firewire/isight.c struct fw_device *fw_dev = fw_parent_device(unit); unit 627 sound/firewire/isight.c err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, unit 635 sound/firewire/isight.c isight->unit = fw_unit_get(unit); unit 637 sound/firewire/isight.c isight->audio_base = get_unit_base(unit); unit 639 sound/firewire/isight.c dev_err(&unit->device, "audio unit base not found\n"); unit 643 sound/firewire/isight.c fw_iso_resources_init(&isight->resources, unit); unit 652 sound/firewire/isight.c dev_name(&unit->device), 100 << fw_dev->max_speed); unit 667 sound/firewire/isight.c dev_set_drvdata(&unit->device, isight); unit 674 sound/firewire/isight.c fw_unit_put(isight->unit); unit 679 sound/firewire/isight.c static void isight_bus_reset(struct fw_unit *unit) unit 681 sound/firewire/isight.c struct isight *isight = dev_get_drvdata(&unit->device); unit 692 sound/firewire/isight.c static void isight_remove(struct fw_unit *unit) unit 694 sound/firewire/isight.c struct isight *isight = dev_get_drvdata(&unit->device); unit 708 sound/firewire/isight.c fw_unit_put(isight->unit); unit 26 sound/firewire/iso-resources.c int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) unit 29 sound/firewire/iso-resources.c r->unit = unit; unit 108 sound/firewire/iso-resources.c struct fw_card *card = fw_parent_device(r->unit)->card; unit 140 sound/firewire/iso-resources.c dev_err(&r->unit->device, unit 143 sound/firewire/iso-resources.c dev_err(&r->unit->device, unit 166 sound/firewire/iso-resources.c struct fw_card *card = fw_parent_device(r->unit)->card; unit 192 sound/firewire/iso-resources.c dev_err(&r->unit->device, unit 195 sound/firewire/iso-resources.c dev_err(&r->unit->device, unit 217 sound/firewire/iso-resources.c if (r->unit == NULL) unit 219 sound/firewire/iso-resources.c card = fw_parent_device(r->unit)->card; unit 228 sound/firewire/iso-resources.c dev_err(&r->unit->device, unit 21 sound/firewire/iso-resources.h struct fw_unit *unit; unit 31 sound/firewire/iso-resources.h struct fw_unit *unit); unit 33 sound/firewire/lib.c int snd_fw_transaction(struct fw_unit *unit, int tcode, unit 37 sound/firewire/lib.c struct fw_device *device = fw_parent_device(unit); unit 59 sound/firewire/lib.c dev_err(&unit->device, unit 84 sound/firewire/lib.c void snd_fw_schedule_registration(struct fw_unit *unit, unit 90 sound/firewire/lib.c delay = fw_parent_device(unit)->card->reset_jiffies unit 16 sound/firewire/lib.h int snd_fw_transaction(struct fw_unit *unit, int tcode, unit 26 sound/firewire/lib.h void snd_fw_schedule_registration(struct fw_unit *unit, unit 32 sound/firewire/motu/amdtp-motu-trace.h __entry->src = fw_parent_device(s->unit)->node_id; unit 33 sound/firewire/motu/amdtp-motu-trace.h __entry->dst = fw_parent_device(s->unit)->card->node_id; unit 35 sound/firewire/motu/amdtp-motu-trace.h __entry->src = fw_parent_device(s->unit)->card->node_id; unit 36 sound/firewire/motu/amdtp-motu-trace.h __entry->dst = fw_parent_device(s->unit)->node_id; unit 61 sound/firewire/motu/amdtp-motu-trace.h __entry->src = fw_parent_device(s->unit)->node_id; unit 62 sound/firewire/motu/amdtp-motu-trace.h __entry->dst = fw_parent_device(s->unit)->card->node_id; unit 64 sound/firewire/motu/amdtp-motu-trace.h __entry->src = fw_parent_device(s->unit)->card->node_id; unit 65 sound/firewire/motu/amdtp-motu-trace.h __entry->dst = fw_parent_device(s->unit)->node_id; unit 441 sound/firewire/motu/amdtp-motu.c int amdtp_motu_init(struct amdtp_stream *s, struct fw_unit *unit, unit 474 sound/firewire/motu/amdtp-motu.c err = amdtp_stream_init(s, unit, dir, flags, fmt, process_ctx_payloads, unit 81 sound/firewire/motu/motu-hwdep.c struct fw_device *dev = fw_parent_device(motu->unit); unit 59 sound/firewire/motu/motu-stream.c fw_parent_device(motu->unit)->max_speed); unit 156 sound/firewire/motu/motu-stream.c dev_err(&motu->unit->device, unit 198 sound/firewire/motu/motu-stream.c data |= fw_parent_device(motu->unit)->max_speed; unit 219 sound/firewire/motu/motu-stream.c if (generation != fw_parent_device(motu->unit)->card->generation) { unit 230 sound/firewire/motu/motu-stream.c int spd = fw_parent_device(motu->unit)->max_speed; unit 238 sound/firewire/motu/motu-stream.c dev_err(&motu->unit->device, unit 267 sound/firewire/motu/motu-stream.c dev_err(&motu->unit->device, unit 306 sound/firewire/motu/motu-stream.c err = fw_iso_resources_init(resources, motu->unit); unit 310 sound/firewire/motu/motu-stream.c err = amdtp_motu_init(s, motu->unit, dir, motu->spec->protocol); unit 27 sound/firewire/motu/motu-transaction.c return snd_fw_transaction(motu->unit, tcode, unit 43 sound/firewire/motu/motu-transaction.c return snd_fw_transaction(motu->unit, tcode, unit 77 sound/firewire/motu/motu-transaction.c struct fw_device *device = fw_parent_device(motu->unit); unit 30 sound/firewire/motu/motu.c struct fw_device *fw_dev = fw_parent_device(motu->unit); unit 35 sound/firewire/motu/motu.c fw_csr_iterator_init(&it, motu->unit->directory); unit 51 sound/firewire/motu/motu.c dev_name(&motu->unit->device), 100 << fw_dev->max_speed); unit 70 sound/firewire/motu/motu.c err = snd_card_new(&motu->unit->device, -1, NULL, THIS_MODULE, 0, unit 115 sound/firewire/motu/motu.c dev_info(&motu->unit->device, unit 119 sound/firewire/motu/motu.c static int motu_probe(struct fw_unit *unit, unit 125 sound/firewire/motu/motu.c motu = devm_kzalloc(&unit->device, sizeof(struct snd_motu), GFP_KERNEL); unit 128 sound/firewire/motu/motu.c motu->unit = fw_unit_get(unit); unit 129 sound/firewire/motu/motu.c dev_set_drvdata(&unit->device, motu); unit 138 sound/firewire/motu/motu.c snd_fw_schedule_registration(unit, &motu->dwork); unit 143 sound/firewire/motu/motu.c static void motu_remove(struct fw_unit *unit) unit 145 sound/firewire/motu/motu.c struct snd_motu *motu = dev_get_drvdata(&unit->device); unit 160 sound/firewire/motu/motu.c fw_unit_put(motu->unit); unit 163 sound/firewire/motu/motu.c static void motu_bus_update(struct fw_unit *unit) unit 165 sound/firewire/motu/motu.c struct snd_motu *motu = dev_get_drvdata(&unit->device); unit 169 sound/firewire/motu/motu.c snd_fw_schedule_registration(unit, &motu->dwork); unit 45 sound/firewire/motu/motu.h struct fw_unit *unit; unit 135 sound/firewire/motu/motu.h int amdtp_motu_init(struct amdtp_stream *s, struct fw_unit *unit, unit 10 sound/firewire/oxfw/oxfw-command.c int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, unit 33 sound/firewire/oxfw/oxfw-command.c err = fcp_avc_transaction(unit, buf, len + 10, buf, len + 10, unit 52 sound/firewire/oxfw/oxfw-command.c int avc_stream_get_format(struct fw_unit *unit, unit 78 sound/firewire/oxfw/oxfw-command.c err = fcp_avc_transaction(unit, buf, 12, buf, *len, unit 111 sound/firewire/oxfw/oxfw-command.c int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate, unit 143 sound/firewire/oxfw/oxfw-command.c err = fcp_avc_transaction(unit, buf, 8, buf, 8, unit 74 sound/firewire/oxfw/oxfw-hwdep.c struct fw_device *dev = fw_parent_device(oxfw->unit); unit 341 sound/firewire/oxfw/oxfw-scs1x.c return snd_fw_transaction(oxfw->unit, TCODE_WRITE_BLOCK_REQUEST, unit 378 sound/firewire/oxfw/oxfw-scs1x.c scs->fw_dev = fw_parent_device(oxfw->unit); unit 28 sound/firewire/oxfw/oxfw-spkr.c static int avc_audio_feature_mute(struct fw_unit *unit, u8 fb_id, bool *value, unit 60 sound/firewire/oxfw/oxfw-spkr.c err = fcp_avc_transaction(unit, buf, 11, buf, 11, 0x3fe); unit 64 sound/firewire/oxfw/oxfw-spkr.c dev_err(&unit->device, "short FCP response\n"); unit 69 sound/firewire/oxfw/oxfw-spkr.c dev_err(&unit->device, "mute command failed\n"); unit 84 sound/firewire/oxfw/oxfw-spkr.c static int avc_audio_feature_volume(struct fw_unit *unit, u8 fb_id, s16 *value, unit 121 sound/firewire/oxfw/oxfw-spkr.c err = fcp_avc_transaction(unit, buf, 12, buf, 12, 0x3fe); unit 125 sound/firewire/oxfw/oxfw-spkr.c dev_err(&unit->device, "short FCP response\n"); unit 130 sound/firewire/oxfw/oxfw-spkr.c dev_err(&unit->device, "volume command failed\n"); unit 169 sound/firewire/oxfw/oxfw-spkr.c err = avc_audio_feature_mute(oxfw->unit, spkr->mute_fb_id, &mute, unit 238 sound/firewire/oxfw/oxfw-spkr.c err = avc_audio_feature_volume(oxfw->unit, unit 289 sound/firewire/oxfw/oxfw-spkr.c err = avc_audio_feature_volume(oxfw->unit, spkr->volume_fb_id, unit 293 sound/firewire/oxfw/oxfw-spkr.c err = avc_audio_feature_volume(oxfw->unit, spkr->volume_fb_id, unit 298 sound/firewire/oxfw/oxfw-spkr.c err = avc_audio_feature_mute(oxfw->unit, spkr->mute_fb_id, &spkr->mute, unit 305 sound/firewire/oxfw/oxfw-spkr.c err = avc_audio_feature_volume(oxfw->unit, spkr->volume_fb_id, unit 45 sound/firewire/oxfw/oxfw-stream.c err = avc_general_set_sig_fmt(oxfw->unit, rate, unit 51 sound/firewire/oxfw/oxfw-stream.c err = avc_general_set_sig_fmt(oxfw->unit, rate, unit 93 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_set_format(oxfw->unit, dir, 0, formats[i], len); unit 141 sound/firewire/oxfw/oxfw-stream.c dev_err(&oxfw->unit->device, unit 168 sound/firewire/oxfw/oxfw-stream.c err = cmp_connection_init(conn, oxfw->unit, c_dir, 0); unit 172 sound/firewire/oxfw/oxfw-stream.c err = amdtp_am824_init(stream, oxfw->unit, s_dir, CIP_NONBLOCKING); unit 292 sound/firewire/oxfw/oxfw-stream.c dev_err(&oxfw->unit->device, unit 332 sound/firewire/oxfw/oxfw-stream.c dev_err(&oxfw->unit->device, unit 341 sound/firewire/oxfw/oxfw-stream.c dev_err(&oxfw->unit->device, unit 472 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len); unit 578 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_get_format_single(oxfw->unit, dir, pid, buf, len); unit 580 sound/firewire/oxfw/oxfw-stream.c dev_err(&oxfw->unit->device, unit 605 sound/firewire/oxfw/oxfw-stream.c err = avc_general_inquiry_sig_fmt(oxfw->unit, unit 647 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_get_format_list(oxfw->unit, dir, 0, buf, &len, 0); unit 655 sound/firewire/oxfw/oxfw-stream.c dev_err(&oxfw->unit->device, unit 684 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_get_format_list(oxfw->unit, dir, 0, unit 691 sound/firewire/oxfw/oxfw-stream.c dev_err(&oxfw->unit->device, unit 713 sound/firewire/oxfw/oxfw-stream.c err = avc_general_get_plug_info(oxfw->unit, 0x1f, 0x07, 0x00, plugs); unit 715 sound/firewire/oxfw/oxfw-stream.c dev_err(&oxfw->unit->device, unit 42 sound/firewire/oxfw/oxfw.c static bool detect_loud_models(struct fw_unit *unit) unit 55 sound/firewire/oxfw/oxfw.c err = fw_csr_string(unit->directory, CSR_MODEL, unit 65 sound/firewire/oxfw/oxfw.c struct fw_device *fw_dev = fw_parent_device(oxfw->unit); unit 80 sound/firewire/oxfw/oxfw.c err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, unit 85 sound/firewire/oxfw/oxfw.c err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, unit 112 sound/firewire/oxfw/oxfw.c dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); unit 126 sound/firewire/oxfw/oxfw.c struct fw_device *fw_dev = fw_parent_device(oxfw->unit); unit 190 sound/firewire/oxfw/oxfw.c err = snd_card_new(&oxfw->unit->device, -1, NULL, THIS_MODULE, 0, unit 236 sound/firewire/oxfw/oxfw.c dev_info(&oxfw->unit->device, unit 240 sound/firewire/oxfw/oxfw.c static int oxfw_probe(struct fw_unit *unit, unit 245 sound/firewire/oxfw/oxfw.c if (entry->vendor_id == VENDOR_LOUD && !detect_loud_models(unit)) unit 249 sound/firewire/oxfw/oxfw.c oxfw = devm_kzalloc(&unit->device, sizeof(struct snd_oxfw), GFP_KERNEL); unit 252 sound/firewire/oxfw/oxfw.c oxfw->unit = fw_unit_get(unit); unit 253 sound/firewire/oxfw/oxfw.c dev_set_drvdata(&unit->device, oxfw); unit 262 sound/firewire/oxfw/oxfw.c snd_fw_schedule_registration(unit, &oxfw->dwork); unit 267 sound/firewire/oxfw/oxfw.c static void oxfw_bus_reset(struct fw_unit *unit) unit 269 sound/firewire/oxfw/oxfw.c struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); unit 272 sound/firewire/oxfw/oxfw.c snd_fw_schedule_registration(unit, &oxfw->dwork); unit 274 sound/firewire/oxfw/oxfw.c fcp_bus_reset(oxfw->unit); unit 286 sound/firewire/oxfw/oxfw.c static void oxfw_remove(struct fw_unit *unit) unit 288 sound/firewire/oxfw/oxfw.c struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); unit 303 sound/firewire/oxfw/oxfw.c fw_unit_put(oxfw->unit); unit 39 sound/firewire/oxfw/oxfw.h struct fw_unit *unit; unit 74 sound/firewire/oxfw/oxfw.h int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, unit 76 sound/firewire/oxfw/oxfw.h int avc_stream_get_format(struct fw_unit *unit, unit 80 sound/firewire/oxfw/oxfw.h avc_stream_get_format_single(struct fw_unit *unit, unit 84 sound/firewire/oxfw/oxfw.h return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); unit 87 sound/firewire/oxfw/oxfw.h avc_stream_get_format_list(struct fw_unit *unit, unit 92 sound/firewire/oxfw/oxfw.h return avc_stream_get_format(unit, dir, pid, buf, len, eid); unit 99 sound/firewire/oxfw/oxfw.h int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate, unit 21 sound/firewire/packets-buffer.c int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, unit 44 sound/firewire/packets-buffer.c err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, unit 72 sound/firewire/packets-buffer.c struct fw_unit *unit) unit 74 sound/firewire/packets-buffer.c fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); unit 21 sound/firewire/packets-buffer.h int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, unit 25 sound/firewire/packets-buffer.h struct fw_unit *unit); unit 227 sound/firewire/tascam/amdtp-tascam.c int amdtp_tscm_init(struct amdtp_stream *s, struct fw_unit *unit, unit 243 sound/firewire/tascam/amdtp-tascam.c err = amdtp_stream_init(s, unit, dir, unit 147 sound/firewire/tascam/tascam-hwdep.c struct fw_device *dev = fw_parent_device(tscm->unit); unit 18 sound/firewire/tascam/tascam-proc.c err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, unit 25 sound/firewire/tascam/tascam-proc.c err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, unit 32 sound/firewire/tascam/tascam-proc.c err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, unit 39 sound/firewire/tascam/tascam-proc.c err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, unit 23 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, unit 81 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 92 sound/firewire/tascam/tascam-stream.c return snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 157 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 172 sound/firewire/tascam/tascam-stream.c return snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 184 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 198 sound/firewire/tascam/tascam-stream.c snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 203 sound/firewire/tascam/tascam-stream.c snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 209 sound/firewire/tascam/tascam-stream.c snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 213 sound/firewire/tascam/tascam-stream.c snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 217 sound/firewire/tascam/tascam-stream.c snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 229 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 237 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 245 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 252 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 259 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 267 sound/firewire/tascam/tascam-stream.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 275 sound/firewire/tascam/tascam-stream.c return snd_fw_transaction(tscm->unit, unit 298 sound/firewire/tascam/tascam-stream.c fw_parent_device(tscm->unit)->max_speed); unit 323 sound/firewire/tascam/tascam-stream.c err = fw_iso_resources_init(resources, tscm->unit); unit 327 sound/firewire/tascam/tascam-stream.c err = amdtp_tscm_init(s, tscm->unit, dir, pcm_channels); unit 435 sound/firewire/tascam/tascam-stream.c if (generation != fw_parent_device(tscm->unit)->card->generation) { unit 446 sound/firewire/tascam/tascam-stream.c int spd = fw_parent_device(tscm->unit)->max_speed; unit 320 sound/firewire/tascam/tascam-transaction.c tscm->out_ports[i].parent = fw_parent_device(tscm->unit); unit 335 sound/firewire/tascam/tascam-transaction.c struct fw_device *device = fw_parent_device(tscm->unit); unit 342 sound/firewire/tascam/tascam-transaction.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 349 sound/firewire/tascam/tascam-transaction.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 357 sound/firewire/tascam/tascam-transaction.c err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 365 sound/firewire/tascam/tascam-transaction.c return snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 379 sound/firewire/tascam/tascam-transaction.c snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 385 sound/firewire/tascam/tascam-transaction.c snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 390 sound/firewire/tascam/tascam-transaction.c snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 393 sound/firewire/tascam/tascam-transaction.c snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, unit 49 sound/firewire/tascam/tascam.c struct fw_device *fw_dev = fw_parent_device(tscm->unit); unit 56 sound/firewire/tascam/tascam.c dev_err(&tscm->unit->device, unit 85 sound/firewire/tascam/tascam.c dev_name(&tscm->unit->device), 100 << fw_dev->max_speed); unit 103 sound/firewire/tascam/tascam.c err = snd_card_new(&tscm->unit->device, -1, NULL, THIS_MODULE, 0, unit 145 sound/firewire/tascam/tascam.c dev_info(&tscm->unit->device, unit 149 sound/firewire/tascam/tascam.c static int snd_tscm_probe(struct fw_unit *unit, unit 155 sound/firewire/tascam/tascam.c tscm = devm_kzalloc(&unit->device, sizeof(struct snd_tscm), GFP_KERNEL); unit 158 sound/firewire/tascam/tascam.c tscm->unit = fw_unit_get(unit); unit 159 sound/firewire/tascam/tascam.c dev_set_drvdata(&unit->device, tscm); unit 167 sound/firewire/tascam/tascam.c snd_fw_schedule_registration(unit, &tscm->dwork); unit 172 sound/firewire/tascam/tascam.c static void snd_tscm_update(struct fw_unit *unit) unit 174 sound/firewire/tascam/tascam.c struct snd_tscm *tscm = dev_get_drvdata(&unit->device); unit 178 sound/firewire/tascam/tascam.c snd_fw_schedule_registration(unit, &tscm->dwork); unit 193 sound/firewire/tascam/tascam.c static void snd_tscm_remove(struct fw_unit *unit) unit 195 sound/firewire/tascam/tascam.c struct snd_tscm *tscm = dev_get_drvdata(&unit->device); unit 210 sound/firewire/tascam/tascam.c fw_unit_put(tscm->unit); unit 68 sound/firewire/tascam/tascam.h struct fw_unit *unit; unit 159 sound/firewire/tascam/tascam.h int amdtp_tscm_init(struct amdtp_stream *s, struct fw_unit *unit, unit 215 sound/sound_core.c static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit) unit 220 sound/sound_core.c if(p->unit_minor==unit) unit 227 sound/sound_core.c printk(KERN_ERR "Sound device %d went missing!\n", unit); unit 298 sound/sound_core.c static void sound_remove_unit(struct sound_unit **list, int unit) unit 303 sound/sound_core.c p = __sound_remove_unit(list, unit); unit 350 sound/sound_core.c int register_sound_special_device(const struct file_operations *fops, int unit, unit 353 sound/sound_core.c const int chain = unit % SOUND_STEP; unit 364 sound/sound_core.c if (unit >= SOUND_STEP) unit 366 sound/sound_core.c max_unit = unit + 1; unit 382 sound/sound_core.c if (unit >= SOUND_STEP) unit 384 sound/sound_core.c max_unit = unit + 1; unit 405 sound/sound_core.c if (unit >= SOUND_STEP) unit 411 sound/sound_core.c return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, unit 417 sound/sound_core.c int register_sound_special(const struct file_operations *fops, int unit) unit 419 sound/sound_core.c return register_sound_special_device(fops, unit, NULL); unit 482 sound/sound_core.c void unregister_sound_special(int unit) unit 484 sound/sound_core.c sound_remove_unit(&chains[unit % SOUND_STEP], unit); unit 497 sound/sound_core.c void unregister_sound_mixer(int unit) unit 499 sound/sound_core.c sound_remove_unit(&chains[0], unit); unit 514 sound/sound_core.c void unregister_sound_dsp(int unit) unit 516 sound/sound_core.c sound_remove_unit(&chains[3], unit); unit 522 sound/sound_core.c static struct sound_unit *__look_for_unit(int chain, int unit) unit 527 sound/sound_core.c while(s && s->unit_minor <= unit) unit 529 sound/sound_core.c if(s->unit_minor==unit) unit 539 sound/sound_core.c int unit = iminor(inode); unit 543 sound/sound_core.c chain=unit&0x0F; unit 546 sound/sound_core.c unit&=0xF0; unit 547 sound/sound_core.c unit|=3; unit 552 sound/sound_core.c s = __look_for_unit(chain, unit); unit 565 sound/sound_core.c request_module("sound-slot-%i", unit>>4); unit 566 sound/sound_core.c request_module("sound-service-%i-%i", unit>>4, chain); unit 575 sound/sound_core.c if (request_module("char-major-%d-%d", SOUND_MAJOR, unit) > 0) unit 579 sound/sound_core.c s = __look_for_unit(chain, unit); unit 168 sound/usb/mixer.c unsigned char unit) unit 178 sound/usb/mixer.c hdr->bUnitID == unit) unit 420 tools/perf/builtin-report.c char unit; unit 455 tools/perf/builtin-report.c nr_samples = convert_unit(nr_samples, &unit); unit 456 tools/perf/builtin-report.c ret = fprintf(fp, "# Samples: %lu%c", nr_samples, unit); unit 1695 tools/perf/builtin-script.c const char *unit, double val) unit 1708 tools/perf/builtin-script.c fprintf(mctx->fp, " %s\n", unit); unit 516 tools/perf/builtin-stat.c l = strlen(counter->unit); unit 1895 tools/perf/builtin-timechart.c char unit = 'n'; unit 1898 tools/perf/builtin-timechart.c if (sscanf(arg, "%" PRIu64 "%cs", value, &unit) > 0) { unit 1899 tools/perf/builtin-timechart.c switch (unit) { unit 323 tools/perf/pmu-events/jevents.c char *pmu, char *unit, char *perpkg, unit 347 tools/perf/pmu-events/jevents.c if (unit) unit 348 tools/perf/pmu-events/jevents.c fprintf(outfp, "\t.unit = \"%s\",\n", unit); unit 369 tools/perf/pmu-events/jevents.c char *unit; unit 396 tools/perf/pmu-events/jevents.c op(unit); \ unit 418 tools/perf/pmu-events/jevents.c char *unit, char *perpkg, char *metric_expr, unit 481 tools/perf/pmu-events/jevents.c char **perpkg, char **unit, char **metric_expr, char **metric_name, unit 508 tools/perf/pmu-events/jevents.c char *pmu, char *unit, char *perpkg, unit 535 tools/perf/pmu-events/jevents.c char *unit = NULL; unit 614 tools/perf/pmu-events/jevents.c addfield(map, &unit, "", "", val); unit 660 tools/perf/pmu-events/jevents.c &unit, &metric_expr, &metric_name, unit 666 tools/perf/pmu-events/jevents.c pmu, unit, perpkg, metric_expr, metric_name, metric_group); unit 676 tools/perf/pmu-events/jevents.c free(unit); unit 9 tools/perf/pmu-events/jevents.h char *unit, char *perpkg, char *metric_expr, unit 15 tools/perf/pmu-events/pmu-events.h const char *unit; unit 102 tools/perf/tests/event_update.c evsel->unit = strdup("KRAVA"); unit 3230 tools/perf/ui/browsers/hists.c char bf[256], unit; unit 3248 tools/perf/ui/browsers/hists.c nr_events = convert_unit(nr_events, &unit); unit 3250 tools/perf/ui/browsers/hists.c unit, unit == ' ' ? "" : " ", ev_name); unit 3258 tools/perf/ui/browsers/hists.c nr_events = convert_unit(nr_events, &unit); unit 3260 tools/perf/ui/browsers/hists.c nr_events, unit, unit == ' ' ? "" : " "); unit 244 tools/perf/util/evsel.c evsel->unit = ""; unit 281 tools/perf/util/evsel.c static const char *unit = "msec"; unit 283 tools/perf/util/evsel.c evsel->unit = unit; unit 1140 tools/perf/util/evsel.c if (evsel->core.own_cpus || evsel->unit) unit 54 tools/perf/util/evsel.h const char *unit; unit 3779 tools/perf/util/header.c evsel->unit = strdup(ev->data); unit 2627 tools/perf/util/hist.c char unit; unit 2672 tools/perf/util/hist.c nr_samples = convert_unit(nr_samples, &unit); unit 2675 tools/perf/util/hist.c nr_samples, unit, evsel->core.nr_members > 1 ? "s" : "", unit 465 tools/perf/util/metricgroup.c eg->metric_unit = pe->unit; unit 373 tools/perf/util/parse-events.c evsel->unit = strdup("ns"); unit 1382 tools/perf/util/parse-events.c evsel->unit = info.unit; unit 185 tools/perf/util/pmu.c sret = read(fd, alias->unit, UNIT_MAX_LEN); unit 191 tools/perf/util/pmu.c if (alias->unit[sret - 1] == '\n') unit 192 tools/perf/util/pmu.c alias->unit[sret - 1] = '\0'; unit 194 tools/perf/util/pmu.c alias->unit[sret] = '\0'; unit 199 tools/perf/util/pmu.c alias->unit[0] = '\0'; unit 271 tools/perf/util/pmu.c memcpy(old->unit, newalias->unit, sizeof(old->unit)); unit 309 tools/perf/util/pmu.c char *unit, char *perpkg, unit 325 tools/perf/util/pmu.c alias->unit[0] = '\0'; unit 374 tools/perf/util/pmu.c if (unit) { unit 375 tools/perf/util/pmu.c if (perf_pmu__convert_scale(unit, &unit, &alias->scale) < 0) unit 377 tools/perf/util/pmu.c snprintf(alias->unit, sizeof(alias->unit), "%s", unit); unit 788 tools/perf/util/pmu.c (char *)pe->unit, (char *)pe->perpkg, unit 1193 tools/perf/util/pmu.c if ((info->unit && alias->unit[0]) || unit 1198 tools/perf/util/pmu.c if (alias->unit[0]) unit 1199 tools/perf/util/pmu.c info->unit = alias->unit; unit 1227 tools/perf/util/pmu.c info->unit = NULL; unit 1259 tools/perf/util/pmu.c if (info->unit == NULL) unit 1260 tools/perf/util/pmu.c info->unit = ""; unit 38 tools/perf/util/pmu.h const char *unit; unit 56 tools/perf/util/pmu.h char unit[UNIT_MAX_LEN+1]; unit 164 tools/perf/util/stat-display.c const char *unit, double val) unit 173 tools/perf/util/stat-display.c if (unit == NULL || fmt == NULL) { unit 186 tools/perf/util/stat-display.c fprintf(out, " %-*s", METRIC_LEN - n - 1, unit); unit 205 tools/perf/util/stat-display.c const char *fmt, const char *unit, double val) unit 211 tools/perf/util/stat-display.c if (unit == NULL || fmt == NULL) { unit 220 tools/perf/util/stat-display.c fprintf(out, "%s%s%s%s", config->csv_sep, vals, config->csv_sep, skip_spaces(unit)); unit 225 tools/perf/util/stat-display.c static bool valid_only_metric(const char *unit) unit 227 tools/perf/util/stat-display.c if (!unit) unit 229 tools/perf/util/stat-display.c if (strstr(unit, "/sec") || unit 230 tools/perf/util/stat-display.c strstr(unit, "hz") || unit 231 tools/perf/util/stat-display.c strstr(unit, "Hz") || unit 232 tools/perf/util/stat-display.c strstr(unit, "CPUs utilized")) unit 238 tools/perf/util/stat-display.c const char *unit) unit 240 tools/perf/util/stat-display.c if (!strncmp(unit, "of all", 6)) { unit 242 tools/perf/util/stat-display.c unit); unit 245 tools/perf/util/stat-display.c return unit; unit 250 tools/perf/util/stat-display.c const char *unit, double val) unit 257 tools/perf/util/stat-display.c if (!valid_only_metric(unit)) unit 259 tools/perf/util/stat-display.c unit = fixunit(buf, os->evsel, unit); unit 260 tools/perf/util/stat-display.c if (mlen < strlen(unit)) unit 261 tools/perf/util/stat-display.c mlen = strlen(unit) + 1; unit 273 tools/perf/util/stat-display.c const char *unit, double val) unit 280 tools/perf/util/stat-display.c if (!valid_only_metric(unit)) unit 282 tools/perf/util/stat-display.c unit = fixunit(tbuf, os->evsel, unit); unit 299 tools/perf/util/stat-display.c const char *unit, double val __maybe_unused) unit 304 tools/perf/util/stat-display.c if (!valid_only_metric(unit)) unit 306 tools/perf/util/stat-display.c unit = fixunit(tbuf, os->evsel, unit); unit 308 tools/perf/util/stat-display.c fprintf(os->fh, "%s%s", unit, config->csv_sep); unit 310 tools/perf/util/stat-display.c fprintf(os->fh, "%*s ", config->metric_only_len, unit); unit 357 tools/perf/util/stat-display.c if (evsel->unit) unit 360 tools/perf/util/stat-display.c evsel->unit, config->csv_sep); unit 453 tools/perf/util/stat-display.c counter->unit, config->csv_sep); unit 557 tools/perf/util/stat-display.c strcmp(alias->unit, counter->unit) || unit 783 tools/perf/util/stat-shadow.c char *unit; unit 788 tools/perf/util/stat-shadow.c &unit, &scale) >= 0) { unit 793 tools/perf/util/stat-shadow.c "%s %s", unit, metric_name); unit 1026 tools/perf/util/stat-shadow.c char unit = 'M'; unit 1035 tools/perf/util/stat-shadow.c unit = 'K'; unit 1037 tools/perf/util/stat-shadow.c snprintf(unit_buf, sizeof(unit_buf), "%c/sec", unit); unit 167 tools/perf/util/stat.h void *ctx, const char *color, const char *unit, unit 1514 tools/perf/util/synthetic-events.c size_t size = strlen(evsel->unit); unit 1522 tools/perf/util/synthetic-events.c strlcpy(ev->data, evsel->unit, size + 1); unit 1611 tools/perf/util/synthetic-events.c return evsel->unit && *evsel->unit; unit 36 tools/perf/util/units.c unsigned long convert_unit(unsigned long value, char *unit) unit 38 tools/perf/util/units.c *unit = ' '; unit 42 tools/perf/util/units.c *unit = 'K'; unit 47 tools/perf/util/units.c *unit = 'M'; unit 52 tools/perf/util/units.c *unit = 'G'; unit 60 tools/perf/util/units.c char unit[4] = "BKMG"; unit 68 tools/perf/util/units.c return scnprintf(buf, size, "%" PRIu64 "%c", n, unit[i]); unit 15 tools/perf/util/units.h unsigned long convert_unit(unsigned long value, char *unit); unit 65 tools/power/cpupower/utils/cpufreq-set.c const struct freq_units *unit; unit 83 tools/power/cpupower/utils/cpufreq-set.c for (unit = def_units; unit->str_unit; unit++) { unit 85 tools/power/cpupower/utils/cpufreq-set.c scan[i] && tolower(scan[i]) == unit->str_unit[i]; unit 91 tools/power/cpupower/utils/cpufreq-set.c power = unit->power_of_ten;