Searched refs:unit (Results 51 - 75 of 226) sorted by relevance

12345678910

/drivers/input/tablet/
H A Dwacom_wac.h91 unsigned char unit; member in struct:wacom_features
/drivers/usb/core/
H A Dendpoint.c91 char unit; local
123 unit = 'u';
125 unit = 'm';
129 return sprintf(buf, "%d%cs\n", interval, unit);
/drivers/block/paride/
H A Dbpck.c201 id = pi->unit;
222 w0(0xff-pi->unit); w2(4); w0(pi->unit);
265 w0(0xff-pi->unit); w2(4); w0(pi->unit);
337 printk("%s: bpck: 0x%x unit %d mode %d: ",
338 pi->device,pi->port,pi->unit,pi->mode);
440 printk("%s: bpck %s, backpack %8.8s unit %d",
441 pi->device,BPCK_VERSION,&scratch[110],pi->unit);
H A Dparide.h44 int unit; /* unit number for chained adapters */ member in struct:pi_adapter
65 int unit, /* unit number, if supported */
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ldu.c48 * Display unit using the legacy register interface.
196 if (entry->base.unit > ldu->base.unit)
337 static int vmw_ldu_init(struct vmw_private *dev_priv, unsigned unit) argument
349 ldu->base.unit = unit;
356 ldu->base.pref_active = (unit == 0);
369 encoder->possible_crtcs = (1 << unit);
H A Dvmwgfx_kms.c503 /* do per unit writing, reuse fifo for each */
505 struct vmw_display_unit *unit = units[i]; local
509 clip.x1 = left - unit->crtc.x;
510 clip.y1 = top - unit->crtc.y;
511 clip.x2 = right - unit->crtc.x;
512 clip.y2 = bottom - unit->crtc.y;
515 if (clip.x1 >= unit->crtc.mode.hdisplay ||
516 clip.y1 >= unit->crtc.mode.vdisplay ||
530 clip.x2 = unit->crtc.mode.hdisplay - clip.x1;
531 clip.y2 = unit
861 struct vmw_display_unit *unit = units[k]; local
1263 struct vmw_display_unit *unit = units[k]; local
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_diag.c283 int unit = iminor(in) - IPATH_DIAG_MINOR_BASE; local
294 dd = ipath_lookup(unit);
358 * dp.unit (same offset) unit is unlikely to get that high.
360 * as odp.unit, is almost certainly at least one (512byte)page
366 if (dp.unit >= 20 && dp.data < 512) {
370 dp.unit = odp.unit;
384 dd = ipath_lookup(dp.unit);
387 ipath_cdbg(VERBOSE, "illegal unit
[all...]
/drivers/ide/
H A Dsiimage.c111 * including accounting for the unit shift.
118 u8 unit = drive->dn & 1; local
125 base |= unit << unit;
257 u8 unit = drive->dn & 1; local
279 mode &= ~(unit ? 0x30 : 0x03);
283 mode |= unit ? 0x10 : 0x01;
307 u8 mode = 0, unit = drive->dn & 1; local
320 mode &= ~(unit ? 0x30 : 0x03);
330 mode |= unit
[all...]
H A Daec62xx.c117 u8 unit = drive->dn & 1; local
130 tmp1 = ((0x00 << (4*unit)) | (ultra & ~(7 << (4*unit))));
132 tmp2 = ((ultra_conf << (4*unit)) | (tmp1 & ~(7 << (4*unit))));
H A Dide-dma-sff.c85 u8 unit = drive->dn & 1; local
89 dma_stat |= (1 << (5 + unit));
91 dma_stat &= ~(1 << (5 + unit));
H A Dqd65xx.c357 u8 config, unit, control; local
365 unit = ! (config & QD_CONFIG_IDE_BASEPORT);
367 if (unit)
H A Dserverworks.c139 u8 unit = drive->dn & 1; local
146 ultra_timing &= ~(0x0F << (4*unit));
151 ultra_timing |= (udma_modes[speed - XFER_UDMA_0] << (4 * unit));
/drivers/mtd/devices/
H A Dslram.c217 static unsigned long handle_unit(unsigned long value, char *unit) argument
219 if ((*unit == 'M') || (*unit == 'm')) {
221 } else if ((*unit == 'K') || (*unit == 'k')) {
/drivers/net/wan/
H A Dsealevel.c84 int unit = slvl->channel; local
90 switch (unit) {
104 switch (unit) {
127 int unit = slvl->channel; local
138 switch (unit) {
/drivers/infiniband/hw/qib/
H A Dqib_driver.c82 const char *qib_get_unit_name(int unit) argument
86 snprintf(iname, sizeof iname, "infinipath%u", unit);
657 dd->unit, ppd->port, lid);
741 * @unit: the device to reset
748 int qib_reset_device(int unit) argument
751 struct qib_devdata *dd = qib_lookup(unit);
761 qib_devinfo(dd->pcidev, "Reset on unit %u requested\n", unit);
764 qib_devinfo(dd->pcidev, "Invalid unit number %u or "
765 "not initialized or not present\n", unit);
[all...]
/drivers/firewire/
H A Dsbp2.c122 ", set power condition in start stop unit = "
143 * to the logical unit. Thus, I/O to the device will automatically
164 struct fw_unit *unit; member in struct:sbp2_target
176 int dont_block; /* counter for each logical unit */
182 return fw_parent_device(tgt->unit);
187 return &tgt->unit->device;
192 return &lu->tgt->unit->device;
331 #define SBP2_ROM_VALUE_MISSING 0xff000000 /* not present in the unit dir. */
1136 struct fw_unit *unit = fw_unit(dev); local
1137 struct fw_device *device = fw_parent_device(unit);
1207 sbp2_update(struct fw_unit *unit) argument
1227 struct fw_unit *unit = fw_unit(dev); local
[all...]
/drivers/scsi/
H A Dsgiwd93.c237 unsigned int unit = pd->unit; local
256 "host %d buffer.\n", unit);
275 "for host %d.\n", irq, unit);
H A DNCR_Q720.c83 static int unit = 0; local
109 printk("Q720 probe unit %d (siop%d) at 0x%lx, diff = %d, vers = %d\n", unit, siop,
112 p->hosts[siop] = ncr_attach(&NCR_Q720_tpnt, unit++, &device);
/drivers/isdn/i4l/
H A Disdn_ppp.c72 static int isdn_ppp_bundle(struct ippp_struct *, int unit);
85 isdn_ppp_frame_log(char *info, char *data, int len, int maxlen, int unit, int slot) argument
98 printk(KERN_DEBUG "[%d/%d].%s[%d]: %s\n", unit, slot, info, i, buf);
159 int unit = 0; local
194 /* get unit number from interface name .. ugly! */
195 unit = isdn_ppp_if_get_unit(lp->netdev->dev->name);
196 if (unit < 0) {
206 is->unit = unit;
310 is->unit
1932 isdn_ppp_bundle(struct ippp_struct *is, int unit) argument
2054 unit = 0, local
[all...]
/drivers/net/ethernet/amd/
H A Dmvme147.c71 struct net_device * __init mvme147lance_probe(int unit) argument
89 if (unit >= 0)
90 sprintf(dev->name, "eth%d", unit);
/drivers/video/console/
H A Dnewport_con.c53 static int newport_set_def_font(int unit, struct console_font *op);
494 static int newport_set_font(int unit, struct console_font *op) argument
530 if (i == unit)
537 if (font_data[unit] != FONT_DATA) {
538 if (--REFCOUNT(font_data[unit]) == 0)
539 kfree(font_data[unit] -
543 font_data[unit] = new_data;
548 static int newport_set_def_font(int unit, struct console_font *op) argument
550 if (font_data[unit] != FONT_DATA) {
551 if (--REFCOUNT(font_data[unit])
[all...]
/drivers/message/i2o/
H A Diop.c232 * @unit: unit number of the I2O controller to search for
238 struct i2o_controller *i2o_find_iop(int unit) argument
243 if (c->unit == unit)
737 msg->body[0] = cpu_to_le32(c->unit + 2);
876 systab->iops[count].iop_id = c->unit + 2;
1046 static int unit = 0; /* 0 and 1 are NULL IOP and Local Host */ local
1057 c->unit = unit
[all...]
/drivers/mfd/
H A Dsm501.c316 int sm501_unit_power(struct device *dev, unsigned int unit, unsigned int to) argument
331 if (unit >= ARRAY_SIZE(sm->unit_power)) {
332 dev_err(dev, "%s: bad unit %d\n", __func__, unit);
336 dev_dbg(sm->dev, "%s: unit %d, cur %d, to %d\n", __func__, unit,
337 sm->unit_power[unit], to);
339 if (to == 0 && sm->unit_power[unit] == 0) {
340 dev_err(sm->dev, "unit %d is already shutdown\n", unit);
[all...]
/drivers/ata/
H A Dlibata-acpi.c523 int unit; local
527 unit = dev->devno;
529 unit = 0;
532 mode = ata_timing_cycle2mode(ATA_SHIFT_PIO, gtm->drive[unit].pio);
539 if (!(gtm->flags & (1 << (2 * unit))))
544 mode = ata_timing_cycle2mode(type, gtm->drive[unit].dma);
H A Dpata_optidma.c207 int unit = 2 * ap->port_no + adev->devno; local
212 udcfg &= ~(1 << unit);
215 udcfg |= (1 << unit);

Completed in 621 milliseconds

12345678910