Home
last modified time | relevance | path

Searched refs:z (Results 1 – 25 of 141) 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()
48 struct zorro_dev *z = to_zorro_dev(dev); in zorro_device_probe() local
53 id = zorro_match_device(drv->id_table, z); in zorro_device_probe()
55 error = drv->probe(z, id); in zorro_device_probe()
65 struct zorro_dev *z = to_zorro_dev(dev); in zorro_device_remove() local
69 drv->remove(z); in zorro_device_remove()
123 struct zorro_dev *z = to_zorro_dev(dev); in zorro_bus_match() local
130 return !!zorro_match_device(ids, z); in zorro_bus_match()
135 struct zorro_dev *z; in zorro_uevent() local
[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()
82 struct zorro_dev *z = &zorro_autocon[slot]; in zorro_seq_show() local
84 seq_printf(m, "%02x\t%08x\t%08lx\t%08lx\t%02x\n", slot, z->id, in zorro_seq_show()
85 (unsigned long)zorro_resource_start(z), in zorro_seq_show()
86 (unsigned long)zorro_resource_len(z), in zorro_seq_show()
[all …]
/drivers/md/
Ddm-zoned.h156 #define dmz_is_cache(z) test_bit(DMZ_CACHE, &(z)->flags) argument
157 #define dmz_is_rnd(z) test_bit(DMZ_RND, &(z)->flags) argument
158 #define dmz_is_seq(z) test_bit(DMZ_SEQ, &(z)->flags) argument
159 #define dmz_is_empty(z) ((z)->wp_block == 0) argument
160 #define dmz_is_offline(z) test_bit(DMZ_OFFLINE, &(z)->flags) argument
161 #define dmz_is_readonly(z) test_bit(DMZ_READ_ONLY, &(z)->flags) argument
162 #define dmz_in_reclaim(z) test_bit(DMZ_RECLAIM, &(z)->flags) argument
163 #define dmz_is_reserved(z) test_bit(DMZ_RESERVED, &(z)->flags) argument
164 #define dmz_seq_write_err(z) test_bit(DMZ_SEQ_WRITE_ERR, &(z)->flags) argument
165 #define dmz_reclaim_should_terminate(z) \ argument
[all …]
/drivers/i2c/busses/
Di2c-icy.c121 static int icy_probe(struct zorro_dev *z, in icy_probe() argument
131 i2c = devm_kzalloc(&z->dev, sizeof(*i2c), GFP_KERNEL); in icy_probe()
135 algo_data = devm_kzalloc(&z->dev, sizeof(*algo_data), GFP_KERNEL); in icy_probe()
139 dev_set_drvdata(&z->dev, i2c); in icy_probe()
140 i2c->adapter.dev.parent = &z->dev; in icy_probe()
147 if (!devm_request_mem_region(&z->dev, in icy_probe()
148 z->resource.start, in icy_probe()
153 i2c->reg_s0 = ZTWO_VADDR(z->resource.start); in icy_probe()
154 i2c->reg_s1 = ZTWO_VADDR(z->resource.start + 2); in icy_probe()
164 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()
166 zorro_release_device(z); in zorro7xx_remove_one()
Da2091.c200 static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent) in a2091_probe() argument
208 if (dma_set_mask_and_coherent(&z->dev, DMA_BIT_MASK(24))) { in a2091_probe()
209 dev_warn(&z->dev, "cannot use 24 bit DMA\n"); in a2091_probe()
213 if (!request_mem_region(z->resource.start, 256, "wd33c93")) in a2091_probe()
224 instance->unique_id = z->slotaddr; in a2091_probe()
226 regs = ZTWO_VADDR(z->resource.start); in a2091_probe()
233 hdata->dev = &z->dev; in a2091_probe()
251 zorro_set_drvdata(z, instance); in a2091_probe()
261 release_mem_region(z->resource.start, 256); in a2091_probe()
265 static void a2091_remove(struct zorro_dev *z) in a2091_remove() argument
[all …]
Dgvp11.c322 static int gvp11_probe(struct zorro_dev *z, const struct zorro_device_id *ent) in gvp11_probe() argument
335 if (dma_set_mask_and_coherent(&z->dev, in gvp11_probe()
337 dev_warn(&z->dev, "cannot use DMA mask %llx\n", in gvp11_probe()
347 if (zorro_resource_len(z) != 0x10000) in gvp11_probe()
350 address = z->resource.start; in gvp11_probe()
368 instance->unique_id = z->slotaddr; in gvp11_probe()
384 if (dma_set_mask_and_coherent(&z->dev, in gvp11_probe()
386 dev_warn(&z->dev, "cannot use DMA mask %llx\n", in gvp11_probe()
418 zorro_set_drvdata(z, instance); in gvp11_probe()
431 static void gvp11_remove(struct zorro_dev *z) in gvp11_remove() argument
[all …]
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()
906 zorro_release_device(z); in zorro_esp_probe()
914 static void zorro_esp_remove(struct zorro_dev *z) in zorro_esp_remove() argument
916 struct zorro_esp_priv *zep = dev_get_drvdata(&z->dev); in zorro_esp_remove()
937 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()
175 zorro_set_drvdata(z, dev); in hydra_init()
[all …]
Dzorro8390.c259 static void zorro8390_remove_one(struct zorro_dev *z) in zorro8390_remove_one() argument
261 struct net_device *dev = zorro_get_drvdata(z); in zorro8390_remove_one()
399 static int zorro8390_init_one(struct zorro_dev *z, in zorro8390_init_one() argument
407 if (z->id == cards[i].id) in zorro8390_init_one()
412 board = z->resource.start; in zorro8390_init_one()
427 zorro_set_drvdata(z, dev); in zorro8390_init_one()
/drivers/nvme/target/
Dzns.c27 static int validate_conv_zones_cb(struct blk_zone *z, in validate_conv_zones_cb() argument
30 if (z->type == BLK_ZONE_TYPE_CONVENTIONAL) in validate_conv_zones_cb()
214 static int nvmet_bdev_report_zone_cb(struct blk_zone *z, unsigned i, void *d) in nvmet_bdev_report_zone_cb() argument
228 z->cond != nvme_zrasf_to_blk_zcond[rz->zrasf]) in nvmet_bdev_report_zone_cb()
235 zdesc.zcap = nvmet_sect_to_lba(rz->req->ns, z->capacity); in nvmet_bdev_report_zone_cb()
236 zdesc.zslba = nvmet_sect_to_lba(rz->req->ns, z->start); in nvmet_bdev_report_zone_cb()
237 zdesc.wp = nvmet_sect_to_lba(rz->req->ns, z->wp); in nvmet_bdev_report_zone_cb()
238 zdesc.za = z->reset ? 1 << 2 : 0; in nvmet_bdev_report_zone_cb()
239 zdesc.zs = z->cond << 4; in nvmet_bdev_report_zone_cb()
240 zdesc.zt = z->type; in nvmet_bdev_report_zone_cb()
[all …]
/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-input.c30 s8 x, y, z; in ams_idev_poll() local
34 ams_sensors(&x, &y, &z); in ams_idev_poll()
38 z -= ams_info.zcalib; in ams_idev_poll()
42 input_report_abs(idev, ABS_Z, z); in ams_idev_poll()
53 s8 x, y, z; in ams_input_enable() local
56 ams_sensors(&x, &y, &z); in ams_input_enable()
59 ams_info.zcalib = z; in ams_input_enable()
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 sysfs_emit(buf, "%d %d %d\n", x, y, z); in ams_show_current()
/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/iio/imu/inv_icm42600/
Dinv_icm42600_buffer.h49 __be16 z; member
61 int16_t x, y, z; in inv_icm42600_fifo_is_data_valid() local
65 z = inv_icm42600_fifo_get_sensor_data(s->z); in inv_icm42600_fifo_is_data_valid()
69 z == INV_ICM42600_FIFO_DATA_INVALID) in inv_icm42600_fifo_is_data_valid()
/drivers/gpu/drm/vmwgfx/
Dvmw_surface_cache.h194 u32 x, u32 y, u32 z) in vmw_surface_get_pixel_offset() argument
202 const u32 offset = (z / bd * imgstride + in vmw_surface_get_pixel_offset()
351 u32 x, y, z; member
454 loc->z = offset / mip->img_stride; in vmw_surface_get_loc()
455 offset -= loc->z * mip->img_stride; in vmw_surface_get_loc()
456 loc->z *= desc->blockSize.depth; in vmw_surface_get_loc()
491 loc->z += desc->blockSize.depth; in vmw_surface_inc_loc()
492 if (loc->z > size->depth) in vmw_surface_inc_loc()
493 loc->z = size->depth; in vmw_surface_inc_loc()
509 loc->x = loc->y = loc->z = 0; in vmw_surface_min_loc()
[all …]
/drivers/s390/char/
DKconfig151 prompt "Support for the z/VM recording system services (VM only)"
155 by the z/VM recording system services, eg. from *LOGREC, *ACCOUNT or
161 prompt "Support for the z/VM CP interface"
166 program on z/VM
169 int "Memory in MiB reserved for z/VM CP interface"
173 Specify the default amount of memory in MiB reserved for the z/VM CP
180 prompt "API for reading z/VM monitor service records"
183 Character device driver for reading z/VM monitor service records
187 prompt "API for writing z/VM monitor service records"
190 Character device driver for writing z/VM monitor service records
[all …]
/drivers/thermal/
Dda9062-thermal.c123 static int da9062_thermal_get_trip_type(struct thermal_zone_device *z, in da9062_thermal_get_trip_type() argument
127 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_trip_type()
142 static int da9062_thermal_get_trip_temp(struct thermal_zone_device *z, in da9062_thermal_get_trip_temp() argument
146 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_trip_temp()
161 static int da9062_thermal_get_temp(struct thermal_zone_device *z, in da9062_thermal_get_temp() argument
164 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_temp()
/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()
833 ac->hwcal.z = pdata->z_axis_offset; in adxl34x_probe()
/drivers/input/touchscreen/
Dti_am335x_tsc.c283 unsigned int z1, z2, z; in titsc_irq() local
323 z = z1 - z2; in titsc_irq()
324 z *= x; in titsc_irq()
325 z *= ts_dev->x_plate_resistance; in titsc_irq()
326 z /= z2; in titsc_irq()
327 z = (z + 2047) >> 12; in titsc_irq()
329 if (z <= MAX_12BIT) { in titsc_irq()
332 input_report_abs(input_dev, ABS_PRESSURE, z); in titsc_irq()
/drivers/firewire/
Dohci.c1080 static struct descriptor *find_branch_descriptor(struct descriptor *d, int z) in find_branch_descriptor() argument
1087 if (z == 2 && branch == cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS)) in find_branch_descriptor()
1090 return d + z - 1; in find_branch_descriptor()
1098 int z; in context_tasklet() local
1107 z = address & 0xf; in context_tasklet()
1118 last = find_branch_descriptor(d, z); in context_tasklet()
1221 int z, dma_addr_t *d_bus) in context_get_descriptors() argument
1226 if (z * sizeof(*d) > desc->buffer_size) in context_get_descriptors()
1229 if (z * sizeof(*d) > desc->buffer_size - desc->used) { in context_get_descriptors()
1245 memset(d, 0, z * sizeof(*d)); in context_get_descriptors()
[all …]

123456