Searched refs:unit (Results 1 - 25 of 266) sorted by relevance

1234567891011

/drivers/s390/scsi/
H A Dzfcp_unit.c15 * @unit: The zfcp LUN/unit to register
21 void zfcp_unit_scsi_scan(struct zfcp_unit *unit) argument
23 struct fc_rport *rport = unit->port->rport;
26 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun);
34 struct zfcp_unit *unit = container_of(work, struct zfcp_unit, local
37 zfcp_unit_scsi_scan(unit);
38 put_device(&unit->dev);
53 struct zfcp_unit *unit; local
56 list_for_each_entry(unit,
67 struct zfcp_unit *unit; local
91 struct zfcp_unit *unit; local
105 struct zfcp_unit *unit = container_of(dev, struct zfcp_unit, dev); local
121 struct zfcp_unit *unit; local
187 zfcp_unit_sdev(struct zfcp_unit *unit) argument
206 zfcp_unit_sdev_status(struct zfcp_unit *unit) argument
232 struct zfcp_unit *unit; local
[all...]
/drivers/net/
H A DSpace.c42 struct net_device *(*probe)(int unit);
46 static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe) argument
52 dev = p->probe(unit);
131 static void __init ethif_probe2(int unit) argument
133 unsigned long base_addr = netdev_boot_base("eth", unit);
138 (void)( probe_list2(unit, m68k_probes, base_addr == 0) &&
139 probe_list2(unit, isa_probes, base_addr == 0));
/drivers/block/
H A Damiflop.c94 #define FD_NOUNIT 1 /* unit does not exist */
95 #define FD_UNITBUSY 2 /* unit already active */
96 #define FD_NOTACTIVE 3 /* unit is not active */
97 #define FD_NOTREADY 4 /* unit is not ready (motor not on/no disk) */
107 #define FD_NODRIVE 0x00000000 /* response when no unit is present */
144 /* current info on each unit */
145 static struct amiga_floppy_struct unit[FD_MAX_UNITS]; variable in typeref:struct:amiga_floppy_struct
287 if (unit[drive].track % 2 != 0)
289 if (unit[drive].motor == 1)
342 if (!unit[n
[all...]
/drivers/staging/gdm724x/
H A Dnetlink_k.h20 struct sock *netlink_init(int unit,
/drivers/staging/gdm72xx/
H A Dnetlink_k.h20 struct sock *netlink_init(int unit, void (*cb)(struct net_device *dev, u16 type,
/drivers/block/paride/
H A Dpg.c66 devices, this is the unit selector for the
244 int unit; local
247 for (unit = 0; unit < PG_UNITS; unit++) {
248 int *parm = *drives[unit];
249 struct pg *dev = &devices[unit];
256 snprintf(dev->name, PG_NAMELEN, "%s%c", name, 'a'+unit);
480 int k, unit; local
496 for (unit
520 int unit = iminor(inode) & 0x7f; local
659 int unit; local
707 int unit; local
[all...]
H A Dpt.c43 devices, this is the unit selector for the
139 #define DU (*drives[unit])
491 pt_atapi(tape, tr_cmd, 0, NULL, DBMSG("test unit ready"));
604 int unit; local
609 for (unit = 0; unit < PT_UNITS; unit++) {
610 struct pt_unit *tape = &pt[unit];
618 snprintf(tape->name, PT_NAMELEN, "%s%d", name, unit);
653 int unit local
956 int unit; local
1001 int unit; local
[all...]
H A Dpcd.c32 devices, this is the unit selector for the
89 1.01 GRG 1998.01.24 Added test unit ready support
198 int present; /* does this unit exist ? */
295 int unit; local
298 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) {
307 cd->drive = (*drives[unit])[D_SLV];
308 if ((*drives[unit])[D_PRT])
312 snprintf(cd->name, sizeof(cd->info.name), "%s%d", name, unit);
657 int unit, r; local
687 int k, unit; local
933 int unit; local
975 int unit; local
[all...]
/drivers/ide/
H A Dit821x.c144 u8 unit = drive->dn & 1, conf; local
153 pci_write_config_byte(dev, 0x56 + 4 * channel + unit, conf);
175 u8 unit = drive->dn & 1, v; local
216 if(pair && itdev->udma[1-unit] != UDMA_OFF) {
217 it821x_program_udma(pair, itdev->udma[1-unit]);
218 it821x_program(pair, itdev->pio[1-unit]);
224 if(itdev->udma[unit] != UDMA_OFF) {
225 it821x_program_udma(drive, itdev->udma[unit]);
226 it821x_program(drive, itdev->pio[unit]);
244 u8 unit local
286 u8 unit = drive->dn & 1, channel = hwif->channel, conf; local
323 u8 unit = drive->dn & 1, channel = hwif->channel, conf; local
365 u8 unit = drive->dn & 1; local
388 u8 unit = drive->dn & 1; local
[all...]
H A Dcs5535.c79 u8 unit = drive->dn & 1; local
98 wrmsr(unit ? ATAC_CH0D1_PIO : ATAC_CH0D0_PIO, reg, 0);
101 rdmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, dummy);
107 wrmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, 0);
111 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy);
112 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA,
115 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy);
126 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, 0);
/drivers/ata/
H A Dpata_it821x.c159 int unit = adev->devno; local
168 pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf);
189 u8 unit = adev->devno; local
232 if (pair && itdev->udma[1-unit] != UDMA_OFF) {
233 it821x_program_udma(ap, pair, itdev->udma[1-unit]);
234 it821x_program(ap, pair, itdev->pio[1-unit]);
240 if (itdev->udma[unit] != UDMA_OFF) {
241 it821x_program_udma(ap, adev, itdev->udma[unit]);
242 it821x_program(ap, adev, itdev->pio[unit]);
262 int unit local
295 int unit = adev->devno; local
350 int unit = adev->devno; local
373 int unit = adev->devno; local
[all...]
H A Dpata_acpi.c113 int unit = adev->devno; local
118 unit = 0;
122 acpi->gtm.drive[unit].pio = t->cycle;
136 int unit = adev->devno; local
141 unit = 0;
146 acpi->gtm.drive[unit].dma = t->udma;
147 acpi->gtm.flags |= (1 << (2 * unit));
149 acpi->gtm.drive[unit].dma = t->cycle;
150 acpi->gtm.flags &= ~(1 << (2 * unit));
/drivers/infiniband/hw/ipath/
H A Dipath_user_sdma.h37 ipath_user_sdma_queue_create(struct device *dev, int unit, int port, int sport);
H A Dipath_fs.c236 char unit[10]; local
239 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit);
240 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir,
243 printk(KERN_ERR "create_file(%s) failed: %d\n", unit, ret);
251 "failed: %d\n", unit, ret);
259 "failed: %d\n", unit, ret);
301 char unit[10]; local
306 snprintf(unit, sizeof unit, "
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_user_sdma.h37 qib_user_sdma_queue_create(struct device *dev, int unit, int port, int sport);
/drivers/gpu/drm/nouveau/core/core/
H A Dsubdev.c58 if (subdev->unit) {
59 nv_mask(subdev, 0x000200, subdev->unit, 0x00000000);
60 nv_mask(subdev, 0x000200, subdev->unit, subdev->unit);
/drivers/char/hw_random/
H A Dn2-drv.c109 unsigned long unit)
115 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state,
140 * queue up the RNG control register write if it's for a unit
146 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) argument
150 return n2rng_generic_read_control_v2(ra, unit);
153 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, argument
166 watchdog_timeout, unit);
168 hv_err = n2rng_control_settle_v2(np, unit);
201 unsigned long unit,
212 unit, tick
108 n2rng_generic_read_control_v2(unsigned long ra, unsigned long unit) argument
200 n2rng_read_diag_data_one(struct n2rng *np, unsigned long unit, unsigned long data_ra, unsigned long data_len, unsigned long *ticks) argument
219 n2rng_generic_read_diag_data(struct n2rng *np, unsigned long unit, unsigned long data_ra, unsigned long data_len) argument
248 n2rng_generic_write_control(struct n2rng *np, unsigned long control_ra, unsigned long unit, unsigned long state) argument
429 n2rng_entropy_diag_read(struct n2rng *np, unsigned long unit, u64 *pre_control, u64 pre_state, u64 *buffer, unsigned long buf_len, u64 *post_control, u64 post_state) argument
488 n2rng_check_selftest_buffer(struct n2rng *np, unsigned long unit) argument
512 n2rng_control_selftest(struct n2rng *np, unsigned long unit) argument
553 int unit, err; local
[all...]
H A Dn2rng.h40 unsigned long unit,
52 unsigned long unit);
58 unsigned long unit,
71 #define N2RNG_FLAG_MULTI 0x00000001 /* Multi-unit capable RNG */
/drivers/gpu/drm/nouveau/core/subdev/mc/
H A Dbase.c51 struct nouveau_subdev *unit; local
64 unit = nouveau_subdev(pmc, map->unit);
65 if (unit && unit->intr)
66 unit->intr(unit);
/drivers/media/pci/saa7164/
H A Dsaa7164-cards.c63 .unit = {{
109 .unit = {{
155 .unit = {{
215 .unit = {{
275 .unit = {{
335 .unit = {{
395 .unit = {{
451 .unit = {{
687 * register access to 'processing units'. Each unit has a unique
703 struct saa7164_unit *unit; local
730 struct saa7164_unit *unit; local
755 struct saa7164_unit *unit; local
[all...]
/drivers/sh/maple/
H A Dmaple.c57 int unit; member in struct:maple_device_specify
207 mdev->port, mdev->unit);
211 static struct maple_device *maple_alloc_dev(int port, int unit) argument
223 mdev->unit = unit;
249 int port, unit, from, to, len; local
253 unit = mq->dev->unit;
256 to = (port << 6) | (unit > 0 ? (1 << (unit
[all...]
/drivers/gpu/drm/radeon/
H A Dsumo_smc.c133 static u32 sumo_power_of_4(u32 unit) argument
138 for (i = 0; i < unit; i++)
147 u32 period, unit, timer_value; local
150 unit = (RREG32_RCU(RCU_LCLK_SCALING_CNTL) & LCLK_SCALING_TIMER_PRESCALER_MASK)
153 period = 100 * (xclk / 100 / sumo_power_of_4(unit));
155 timer_value = (period << 16) | (unit << 4);
/drivers/net/ppp/
H A Dppp_deflate.c30 int unit; member in struct:ppp_deflate_state
45 int unit, int hdrlen, int debug);
48 int unit, int hdrlen, int mru, int debug);
131 * @unit: PPP unit number for diagnostic messages
141 int unit, int hdrlen, int debug)
154 state->unit = unit;
345 * @unit: PPP unit numbe
140 z_comp_init(void *arg, unsigned char *options, int opt_len, int unit, int hdrlen, int debug) argument
355 z_decomp_init(void *arg, unsigned char *options, int opt_len, int unit, int hdrlen, int mru, int debug) argument
[all...]
H A Dppp_mppe.c105 /* the unit has to change to bits */
111 int unit; member in struct:ppp_mppe_state
273 mppe_init(void *arg, unsigned char *options, int optlen, int unit, int debug, argument
290 unit);
305 debugstr, unit, (state->keylen == 16) ? 128 : 40,
314 debugstr, unit, mkey, skey);
331 state->unit = unit;
338 mppe_comp_init(void *arg, unsigned char *options, int optlen, int unit, argument
342 return mppe_init(arg, options, optlen, unit, debu
454 mppe_decomp_init(void *arg, unsigned char *options, int optlen, int unit, int hdrlen, int mru, int debug) argument
[all...]
/drivers/watchdog/
H A Dsmsc37b787_wdt.c80 static int unit = UNIT_SECOND; /* timer's unit */ variable
240 if (unit == UNIT_SECOND)
367 timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)");
475 if (unit == UNIT_MINUTE)
484 if (unit == UNIT_MINUTE)
565 timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)");
607 module_param(unit, int, 0);
608 MODULE_PARM_DESC(unit,
609 "set unit t
[all...]

Completed in 486 milliseconds

1234567891011