Home
last modified time | relevance | path

Searched refs:z (Results 1 – 25 of 132) sorted by relevance

123456

/drivers/zorro/
Dzorro.c54 struct zorro_dev *z; in zorro_find_device() local
59 for (z = from ? from+1 : &zorro_autocon[0]; in zorro_find_device()
60 z < zorro_autocon+zorro_num_autocon; in zorro_find_device()
61 z++) in zorro_find_device()
62 if (id == ZORRO_WILDCARD || id == z->id) in zorro_find_device()
63 return z; in zorro_find_device()
115 struct platform_device *bridge, struct zorro_dev *z) in zorro_find_parent_resource() argument
122 if (zorro_resource_start(z) >= r->start && in zorro_find_parent_resource()
123 zorro_resource_end(z) <= r->end) in zorro_find_parent_resource()
135 struct zorro_dev *z; in amiga_zorro_probe() local
[all …]
Dzorro-sysfs.c29 struct zorro_dev *z; \
31 z = to_zorro_dev(dev); \
32 return sprintf(buf, format_string, z->field); \
44 struct zorro_dev *z; in serial_show() local
46 z = to_zorro_dev(dev); in serial_show()
47 return sprintf(buf, "0x%08x\n", be32_to_cpu(z->rom.er_SerialNumber)); in serial_show()
54 struct zorro_dev *z = to_zorro_dev(dev); in resource_show() local
57 (unsigned long)zorro_resource_start(z), in resource_show()
58 (unsigned long)zorro_resource_end(z), in resource_show()
59 zorro_resource_flags(z)); in resource_show()
[all …]
Dzorro-driver.c33 const struct zorro_dev *z) in zorro_match_device() argument
36 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_match_device()
49 struct zorro_dev *z = to_zorro_dev(dev); in zorro_device_probe() local
51 if (!z->driver && drv->probe) { in zorro_device_probe()
54 id = zorro_match_device(drv->id_table, z); in zorro_device_probe()
56 error = drv->probe(z, id); in zorro_device_probe()
58 z->driver = drv; in zorro_device_probe()
68 struct zorro_dev *z = to_zorro_dev(dev); in zorro_device_remove() local
73 drv->remove(z); in zorro_device_remove()
74 z->driver = NULL; in zorro_device_remove()
[all …]
Dproc.c33 struct zorro_dev *z = PDE_DATA(file_inode(file)); in proc_bus_zorro_read() local
46 cd.cd_Rom = z->rom; in proc_bus_zorro_read()
47 cd.cd_SlotAddr = cpu_to_be16(z->slotaddr); in proc_bus_zorro_read()
48 cd.cd_SlotSize = cpu_to_be16(z->slotsize); in proc_bus_zorro_read()
49 cd.cd_BoardAddr = cpu_to_be32(zorro_resource_start(z)); in proc_bus_zorro_read()
50 cd.cd_BoardSize = cpu_to_be32(zorro_resource_len(z)); in proc_bus_zorro_read()
83 struct zorro_dev *z = &zorro_autocon[slot]; in zorro_seq_show() local
85 seq_printf(m, "%02x\t%08x\t%08lx\t%08lx\t%02x\n", slot, z->id, in zorro_seq_show()
86 (unsigned long)zorro_resource_start(z), in zorro_seq_show()
87 (unsigned long)zorro_resource_len(z), in zorro_seq_show()
[all …]
/drivers/md/
Ddm-zoned.h132 #define dmz_is_rnd(z) test_bit(DMZ_RND, &(z)->flags) argument
133 #define dmz_is_seq(z) test_bit(DMZ_SEQ, &(z)->flags) argument
134 #define dmz_is_empty(z) ((z)->wp_block == 0) argument
135 #define dmz_is_offline(z) test_bit(DMZ_OFFLINE, &(z)->flags) argument
136 #define dmz_is_readonly(z) test_bit(DMZ_READ_ONLY, &(z)->flags) argument
137 #define dmz_in_reclaim(z) test_bit(DMZ_RECLAIM, &(z)->flags) argument
138 #define dmz_seq_write_err(z) test_bit(DMZ_SEQ_WRITE_ERR, &(z)->flags) argument
140 #define dmz_is_meta(z) test_bit(DMZ_META, &(z)->flags) argument
141 #define dmz_is_buf(z) test_bit(DMZ_BUF, &(z)->flags) argument
142 #define dmz_is_data(z) test_bit(DMZ_DATA, &(z)->flags) argument
[all …]
/drivers/i2c/busses/
Di2c-icy.c117 static int icy_probe(struct zorro_dev *z, in icy_probe() argument
128 i2c = devm_kzalloc(&z->dev, sizeof(*i2c), GFP_KERNEL); in icy_probe()
132 algo_data = devm_kzalloc(&z->dev, sizeof(*algo_data), GFP_KERNEL); in icy_probe()
136 dev_set_drvdata(&z->dev, i2c); in icy_probe()
137 i2c->adapter.dev.parent = &z->dev; in icy_probe()
144 if (!devm_request_mem_region(&z->dev, in icy_probe()
145 z->resource.start, in icy_probe()
150 i2c->reg_s0 = ZTWO_VADDR(z->resource.start); in icy_probe()
151 i2c->reg_s1 = ZTWO_VADDR(z->resource.start + 2); in icy_probe()
161 dev_err(&z->dev, "i2c_pcf_add_bus() failed\n"); in icy_probe()
[all …]
/drivers/ata/
Dpata_buddha.c150 static int pata_buddha_probe(struct zorro_dev *z, in pata_buddha_probe() argument
164 dev_info(&z->dev, "%s IDE controller\n", board_name[type]); in pata_buddha_probe()
166 board = z->resource.start; in pata_buddha_probe()
169 if (!devm_request_mem_region(&z->dev, in pata_buddha_probe()
174 if (!devm_request_mem_region(&z->dev, in pata_buddha_probe()
178 if (!devm_request_mem_region(&z->dev, in pata_buddha_probe()
186 old_drvdata = dev_get_drvdata(&z->dev); in pata_buddha_probe()
189 host = ata_host_alloc(&z->dev, nr_ports); in pata_buddha_probe()
191 dev_set_drvdata(&z->dev, old_drvdata); in pata_buddha_probe()
249 static void pata_buddha_remove(struct zorro_dev *z) in pata_buddha_remove() argument
[all …]
/drivers/scsi/
Dzorro7xx.c75 static int zorro7xx_init_one(struct zorro_dev *z, in zorro7xx_init_one() argument
83 board = zorro_resource_start(z); in zorro7xx_init_one()
92 if (!zorro_request_device(z, zdd->name)) { in zorro7xx_init_one()
106 hostdata->base = ioremap(ioaddr, zorro_resource_len(z)); in zorro7xx_init_one()
120 &z->dev); in zorro7xx_init_one()
137 zorro_set_drvdata(z, host); in zorro7xx_init_one()
149 zorro_release_device(z); in zorro7xx_init_one()
154 static void zorro7xx_remove_one(struct zorro_dev *z) in zorro7xx_remove_one() argument
156 struct Scsi_Host *host = zorro_get_drvdata(z); in zorro7xx_remove_one()
164 zorro_release_device(z); in zorro7xx_remove_one()
Da2091.c167 static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent) in a2091_probe() argument
175 if (!request_mem_region(z->resource.start, 256, "wd33c93")) in a2091_probe()
186 instance->unique_id = z->slotaddr; in a2091_probe()
188 regs = ZTWO_VADDR(z->resource.start); in a2091_probe()
212 zorro_set_drvdata(z, instance); in a2091_probe()
222 release_mem_region(z->resource.start, 256); in a2091_probe()
226 static void a2091_remove(struct zorro_dev *z) in a2091_remove() argument
228 struct Scsi_Host *instance = zorro_get_drvdata(z); in a2091_remove()
235 release_mem_region(z->resource.start, 256); in a2091_remove()
Dgvp11.c271 static int gvp11_probe(struct zorro_dev *z, const struct zorro_device_id *ent) in gvp11_probe() argument
289 if (zorro_resource_len(z) != 0x10000) in gvp11_probe()
292 address = z->resource.start; in gvp11_probe()
310 instance->unique_id = z->slotaddr; in gvp11_probe()
353 zorro_set_drvdata(z, instance); in gvp11_probe()
366 static void gvp11_remove(struct zorro_dev *z) in gvp11_remove() argument
368 struct Scsi_Host *instance = zorro_get_drvdata(z); in gvp11_remove()
375 release_mem_region(z->resource.start, 256); in gvp11_remove()
Dzorro_esp.c713 static int zorro_esp_probe(struct zorro_dev *z, in zorro_esp_probe() argument
724 board = zorro_resource_start(z); in zorro_esp_probe()
736 if ((z->rom.er_Type & ERT_TYPEMASK) == ERT_ZORROIII) { in zorro_esp_probe()
745 z->dev.coherent_dma_mask = DMA_BIT_MASK(32); in zorro_esp_probe()
770 if (!zorro_request_device(z, zdd->name)) { in zorro_esp_probe()
790 esp->dev = &z->dev; in zorro_esp_probe()
907 zorro_release_device(z); in zorro_esp_probe()
915 static void zorro_esp_remove(struct zorro_dev *z) in zorro_esp_remove() argument
917 struct zorro_esp_priv *zep = dev_get_drvdata(&z->dev); in zorro_esp_remove()
938 zorro_release_device(z); in zorro_esp_remove()
/drivers/net/ethernet/8390/
Dhydra.c56 static int hydra_init_one(struct zorro_dev *z,
58 static int hydra_init(struct zorro_dev *z);
68 static void hydra_remove_one(struct zorro_dev *z);
83 static int hydra_init_one(struct zorro_dev *z, in hydra_init_one() argument
88 if (!request_mem_region(z->resource.start, 0x10000, "Hydra")) in hydra_init_one()
90 if ((err = hydra_init(z))) { in hydra_init_one()
91 release_mem_region(z->resource.start, 0x10000); in hydra_init_one()
112 static int hydra_init(struct zorro_dev *z) in hydra_init() argument
115 unsigned long board = (unsigned long)ZTWO_VADDR(z->resource.start); in hydra_init()
173 zorro_set_drvdata(z, dev); in hydra_init()
[all …]
/drivers/net/wan/lmc/
Dlmc_debug.h7 #define LMC_CONSOLE_LOG(x,y,z) lmcConsoleLog((x), (y), (z)) argument
9 #define LMC_CONSOLE_LOG(x,y,z) argument
12 #define LMC_CONSOLE_LOG(x,y,z) argument
44 #define LMC_EVENT_LOG(x, y, z) lmcEventLog((x), (y), (z)) argument
46 #define LMC_EVENT_LOG(x,y,z) argument
/drivers/video/fbdev/
Dfm2fb.c214 static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id);
229 static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id) in fm2fb_probe() argument
236 is_fm = z->id == ZORRO_PROD_BSC_FRAMEMASTER_II; in fm2fb_probe()
238 if (!zorro_request_device(z,"fm2fb")) in fm2fb_probe()
241 info = framebuffer_alloc(16 * sizeof(u32), &z->dev); in fm2fb_probe()
243 zorro_release_device(z); in fm2fb_probe()
249 zorro_release_device(z); in fm2fb_probe()
254 fb_fix.smem_start = zorro_resource_start(z); in fm2fb_probe()
289 zorro_release_device(z); in fm2fb_probe()
/drivers/macintosh/ams/
Dams-core.c26 void ams_sensors(s8 *x, s8 *y, s8 *z) in ams_sensors() argument
32 ams_info.get_xyz(y, x, z); in ams_sensors()
34 ams_info.get_xyz(x, y, z); in ams_sensors()
37 *z = ~(*z); in ams_sensors()
47 s8 x, y, z; in ams_show_current() local
50 ams_sensors(&x, &y, &z); in ams_show_current()
53 return snprintf(buf, PAGE_SIZE, "%d %d %d\n", x, y, z); in ams_show_current()
Dams-input.c31 s8 x, y, z; in ams_idev_poll() local
35 ams_sensors(&x, &y, &z); in ams_idev_poll()
39 z -= ams_info.zcalib; in ams_idev_poll()
43 input_report_abs(idev, ABS_Z, z); in ams_idev_poll()
54 s8 x, y, z; in ams_input_enable() local
57 ams_sensors(&x, &y, &z); in ams_input_enable()
60 ams_info.zcalib = z; in ams_input_enable()
/drivers/ide/
Dbuddha.c161 struct zorro_dev *z = NULL; in buddha_init() local
166 while ((z = zorro_find_device(ZORRO_WILDCARD, z))) { in buddha_init()
171 if (z->id == ZORRO_PROD_INDIVIDUAL_COMPUTERS_BUDDHA) { in buddha_init()
174 } else if (z->id == ZORRO_PROD_INDIVIDUAL_COMPUTERS_CATWEASEL) { in buddha_init()
177 } else if (z->id == ZORRO_PROD_INDIVIDUAL_COMPUTERS_X_SURF) { in buddha_init()
184 board = z->resource.start; in buddha_init()
/drivers/input/tablet/
Dwacom_serial4.c313 int x, y, z; in wacom_handle_packet() local
322 z = wacom->data[6] & 0x7f; in wacom_handle_packet()
324 z = z << 1 | (wacom->data[3] & 0x4) >> 2; in wacom_handle_packet()
326 z = z << 1 | (wacom->data[0] & 0x4) >> 2; in wacom_handle_packet()
327 z = z ^ (0x40 << wacom->extra_z_bits); in wacom_handle_packet()
329 z = -1; in wacom_handle_packet()
348 input_report_abs(wacom->dev, ABS_PRESSURE, z); in wacom_handle_packet()
358 z = (wacom->data[6] & 0x30) >> 4; in wacom_handle_packet()
360 z = -z; in wacom_handle_packet()
361 input_report_rel(wacom->dev, REL_WHEEL, z); in wacom_handle_packet()
/drivers/thermal/
Dda9062-thermal.c124 static int da9062_thermal_get_mode(struct thermal_zone_device *z, in da9062_thermal_get_mode() argument
127 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_mode()
132 static int da9062_thermal_get_trip_type(struct thermal_zone_device *z, in da9062_thermal_get_trip_type() argument
136 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_trip_type()
151 static int da9062_thermal_get_trip_temp(struct thermal_zone_device *z, in da9062_thermal_get_trip_temp() argument
155 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_trip_temp()
170 static int da9062_thermal_get_temp(struct thermal_zone_device *z, in da9062_thermal_get_temp() argument
173 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_temp()
/drivers/s390/char/
DKconfig140 prompt "Support for the z/VM recording system services (VM only)"
144 by the z/VM recording system services, eg. from *LOGREC, *ACCOUNT or
150 prompt "Support for the z/VM CP interface"
155 program on z/VM
158 int "Memory in MiB reserved for z/VM CP interface"
162 Specify the default amount of memory in MiB reserved for the z/VM CP
169 prompt "API for reading z/VM monitor service records"
172 Character device driver for reading z/VM monitor service records
176 prompt "API for writing z/VM monitor service records"
179 Character device driver for writing z/VM monitor service records
[all …]
/drivers/input/misc/
Dadxl34x.c187 int z; member
251 ac->saved.z = (s16) le16_to_cpu(buf[2]); in adxl34x_get_triple()
252 axis->z = ac->saved.z; in adxl34x_get_triple()
268 axis.z - ac->swcal.z); in adxl34x_service_ev_fifo()
492 ac->hwcal.z * 4 + ac->swcal.z); in adxl34x_calibrate_show()
516 ac->hwcal.z -= (ac->saved.z / 4); in adxl34x_calibrate_store()
517 ac->swcal.z = ac->saved.z % 4; in adxl34x_calibrate_store()
521 AC_WRITE(ac, OFSZ, (s8) ac->hwcal.z); in adxl34x_calibrate_store()
611 ac->saved.x, ac->saved.y, ac->saved.z); in adxl34x_position_show()
834 ac->hwcal.z = pdata->z_axis_offset; in adxl34x_probe()
/drivers/staging/uwb/
Ddrp-ie.c131 int z, i, num_fields = 0, next = 0; in uwb_drp_ie_from_bm() local
142 for (z = 0; z < UWB_NUM_ZONES; z++) { in uwb_drp_ie_from_bm()
149 zones[i].zone_bm |= 1 << z; in uwb_drp_ie_from_bm()
156 zones[next].zone_bm = 1 << z; in uwb_drp_ie_from_bm()
/drivers/input/touchscreen/
Dti_am335x_tsc.c275 unsigned int z1, z2, z; in titsc_irq() local
315 z = z1 - z2; in titsc_irq()
316 z *= x; in titsc_irq()
317 z *= ts_dev->x_plate_resistance; in titsc_irq()
318 z /= z2; in titsc_irq()
319 z = (z + 2047) >> 12; in titsc_irq()
321 if (z <= MAX_12BIT) { in titsc_irq()
324 input_report_abs(input_dev, ABS_PRESSURE, z); in titsc_irq()
/drivers/staging/rtl8188eu/include/
Drtw_security.h283 #define Ch(x, y, z) (z ^ (x & (y ^ z))) argument
284 #define Maj(x, y, z) (((x | y) & z) | (x & y)) argument
/drivers/firewire/
Dohci.c1039 static struct descriptor *find_branch_descriptor(struct descriptor *d, int z) in find_branch_descriptor() argument
1046 if (z == 2 && branch == cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS)) in find_branch_descriptor()
1049 return d + z - 1; in find_branch_descriptor()
1057 int z; in context_tasklet() local
1066 z = address & 0xf; in context_tasklet()
1077 last = find_branch_descriptor(d, z); in context_tasklet()
1180 int z, dma_addr_t *d_bus) in context_get_descriptors() argument
1185 if (z * sizeof(*d) > desc->buffer_size) in context_get_descriptors()
1188 if (z * sizeof(*d) > desc->buffer_size - desc->used) { in context_get_descriptors()
1204 memset(d, 0, z * sizeof(*d)); in context_get_descriptors()
[all …]

123456