/drivers/s390/scsi/ |
H A D | zfcp_unit.c | 15 * @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 176 zfcp_unit_sdev(struct zfcp_unit *unit) argument 195 zfcp_unit_sdev_status(struct zfcp_unit *unit) argument 221 struct zfcp_unit *unit; local [all...] |
H A D | zfcp_ccw.c | 104 struct zfcp_unit *unit, *u; local 117 list_for_each_entry_safe(unit, u, &port->unit_list, list) 118 list_move(&unit->list, &unit_remove_lh); 125 list_for_each_entry_safe(unit, u, &unit_remove_lh, list) 126 zfcp_device_unregister(&unit->dev, &zfcp_sysfs_unit_attrs);
|
/drivers/net/ |
H A D | Space.c | 41 extern struct net_device *ne2_probe(int unit); 42 extern struct net_device *hp100_probe(int unit); 43 extern struct net_device *ultra_probe(int unit); 44 extern struct net_device *ultra32_probe(int unit); 45 extern struct net_device *wd_probe(int unit); 46 extern struct net_device *el2_probe(int unit); 47 extern struct net_device *ne_probe(int unit); 48 extern struct net_device *hp_probe(int unit); 49 extern struct net_device *hp_plus_probe(int unit); 50 extern struct net_device *express_probe(int unit); 99 probe_list2(int unit, struct devprobe2 *p, int autoprobe) argument 273 ethif_probe2(int unit) argument 299 trif_probe(int unit) argument 316 trif_probe2(int unit) argument [all...] |
/drivers/block/ |
H A D | amiflop.c | 94 #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/net/phy/ |
H A D | mdio-octeon.c | 23 int unit; member in struct:octeon_mdiobus 38 cvmx_write_csr(CVMX_SMIX_CMD(p->unit), smi_cmd.u64); 46 smi_rd.u64 = cvmx_read_csr(CVMX_SMIX_RD_DAT(p->unit)); 65 cvmx_write_csr(CVMX_SMIX_WR_DAT(p->unit), smi_wr.u64); 71 cvmx_write_csr(CVMX_SMIX_CMD(p->unit), smi_cmd.u64); 79 smi_wr.u64 = cvmx_read_csr(CVMX_SMIX_WR_DAT(p->unit)); 99 /* The platform_device id is our unit number. */ 100 bus->unit = pdev->id; 109 cvmx_write_csr(CVMX_SMIX_EN(bus->unit), smi_en.u64); 122 bus->mii_bus->name, bus->unit); [all...] |
/drivers/block/paride/ |
H A D | pg.c | 66 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 D | pt.c | 43 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 D | pcd.c | 32 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 ? */ 296 int unit; local 299 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { 308 cd->drive = (*drives[unit])[D_SLV]; 309 if ((*drives[unit])[D_PRT]) 313 snprintf(cd->name, sizeof(cd->info.name), "%s%d", name, unit); 658 int unit, r; local 688 int k, unit; local 934 int unit; local 976 int unit; local [all...] |
/drivers/ide/ |
H A D | it821x.c | 144 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 D | cs5535.c | 79 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 D | pata_it821x.c | 160 int unit = adev->devno; local 169 pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf); 190 u8 unit = adev->devno; local 233 if (pair && itdev->udma[1-unit] != UDMA_OFF) { 234 it821x_program_udma(ap, pair, itdev->udma[1-unit]); 235 it821x_program(ap, pair, itdev->pio[1-unit]); 241 if (itdev->udma[unit] != UDMA_OFF) { 242 it821x_program_udma(ap, adev, itdev->udma[unit]); 243 it821x_program(ap, adev, itdev->pio[unit]); 263 int unit local 296 int unit = adev->devno; local 351 int unit = adev->devno; local 374 int unit = adev->devno; local [all...] |
H A D | pata_acpi.c | 115 int unit = adev->devno; local 120 unit = 0; 124 acpi->gtm.drive[unit].pio = t->cycle; 138 int unit = adev->devno; local 143 unit = 0; 148 acpi->gtm.drive[unit].dma = t->udma; 149 acpi->gtm.flags |= (1 << (2 * unit)); 151 acpi->gtm.drive[unit].dma = t->cycle; 152 acpi->gtm.flags &= ~(1 << (2 * unit));
|
/drivers/gpu/drm/nouveau/ |
H A D | nvc0_fb.c | 36 nvc0_mfb_subp_isr(struct drm_device *dev, int unit, int subp) argument 38 u32 subp_base = 0x141000 + (unit * 0x2000) + (subp * 0x400); 42 NV_INFO(dev, "PMFB%d_SUBP%d: 0x%08x\n", unit, subp, stat); 52 u32 subp, unit = ffs(units) - 1; local 54 nvc0_mfb_subp_isr(dev, unit, subp); 55 units &= ~(1 << unit);
|
/drivers/infiniband/hw/ipath/ |
H A D | ipath_user_sdma.h | 37 ipath_user_sdma_queue_create(struct device *dev, int unit, int port, int sport);
|
H A D | ipath_fs.c | 237 char unit[10]; local 240 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); 241 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, 244 printk(KERN_ERR "create_file(%s) failed: %d\n", unit, ret); 252 "failed: %d\n", unit, ret); 260 "failed: %d\n", unit, ret); 302 char unit[10]; local 307 snprintf(unit, sizeof unit, " [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_user_sdma.h | 37 qib_user_sdma_queue_create(struct device *dev, int unit, int port, int sport);
|
/drivers/char/hw_random/ |
H A D | n2-drv.c | 110 unsigned long unit) 116 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, 141 * queue up the RNG control register write if it's for a unit 147 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) argument 151 return n2rng_generic_read_control_v2(ra, unit); 154 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, argument 167 watchdog_timeout, unit); 169 hv_err = n2rng_control_settle_v2(np, unit); 202 unsigned long unit, 213 unit, tick 109 n2rng_generic_read_control_v2(unsigned long ra, unsigned long unit) argument 201 n2rng_read_diag_data_one(struct n2rng *np, unsigned long unit, unsigned long data_ra, unsigned long data_len, unsigned long *ticks) argument 220 n2rng_generic_read_diag_data(struct n2rng *np, unsigned long unit, unsigned long data_ra, unsigned long data_len) argument 249 n2rng_generic_write_control(struct n2rng *np, unsigned long control_ra, unsigned long unit, unsigned long state) argument 430 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 489 n2rng_check_selftest_buffer(struct n2rng *np, unsigned long unit) argument 513 n2rng_control_selftest(struct n2rng *np, unsigned long unit) argument 554 int unit, err; local [all...] |
H A D | n2rng.h | 40 unsigned long unit, 52 unsigned long unit); 58 unsigned long unit, 71 #define N2RNG_FLAG_MULTI 0x00000001 /* Multi-unit capable RNG */
|
/drivers/media/video/saa7164/ |
H A D | saa7164-cards.c | 63 .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/usb/host/ |
H A D | ohci-au1xxx.c | 92 int ret, unit; local 123 unit = (hcd->rsrc_start == AU1300_USB_OHCI1_PHYS_ADDR) ? 125 if (alchemy_usb_control(unit, 1)) { 140 alchemy_usb_control(unit, 0); 153 int unit; local 155 unit = (hcd->rsrc_start == AU1300_USB_OHCI1_PHYS_ADDR) ? 158 alchemy_usb_control(unit, 0);
|
/drivers/sh/maple/ |
H A D | maple.c | 57 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/staging/telephony/ |
H A D | phonedev.c | 14 * phone_register_device now works with unit!=PHONE_UNIT_ANY 88 int phone_register_device(struct phone_device *p, int unit) argument 97 if (unit != PHONE_UNIT_ANY) { 98 base = unit; 99 end = unit + 1; /* enter the loop at least one time */
|
/drivers/net/ppp/ |
H A D | ppp_deflate.c | 30 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 D | ppp_mppe.c | 106 /* the unit has to change to bits */ 112 int unit; member in struct:ppp_mppe_state 274 mppe_init(void *arg, unsigned char *options, int optlen, int unit, int debug, argument 291 unit); 306 debugstr, unit, (state->keylen == 16) ? 128 : 40, 315 debugstr, unit, mkey, skey); 332 state->unit = unit; 339 mppe_comp_init(void *arg, unsigned char *options, int optlen, int unit, argument 343 return mppe_init(arg, options, optlen, unit, debu 455 mppe_decomp_init(void *arg, unsigned char *options, int optlen, int unit, int hdrlen, int mru, int debug) argument [all...] |
/drivers/watchdog/ |
H A D | smsc37b787_wdt.c | 80 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)"); 609 module_param(unit, int, 0); 610 MODULE_PARM_DESC(unit, 611 "set unit t [all...] |