| /drivers/zorro/ |
| A D | zorro.c | 55 struct zorro_dev *z; in zorro_find_device() local 62 z++) in zorro_find_device() 64 return z; in zorro_find_device() 132 struct zorro_dev *z; in amiga_zorro_probe() local 163 z->rom = zi->rom; in amiga_zorro_probe() 164 z->id = (be16_to_cpu(z->rom.er_Manufacturer) << 16) | in amiga_zorro_probe() 174 sprintf(z->name, "Zorro device %08x", z->id); in amiga_zorro_probe() 182 z->name, &z->resource); in amiga_zorro_probe() 185 z->dev.id = i; in amiga_zorro_probe() 196 z->dev.dma_mask = &z->dev.coherent_dma_mask; in amiga_zorro_probe() [all …]
|
| A D | zorro-sysfs.c | 29 struct zorro_dev *z; \ 31 z = to_zorro_dev(dev); \ 44 struct zorro_dev *z; in serial_show() local 46 z = to_zorro_dev(dev); in serial_show() 54 struct zorro_dev *z = to_zorro_dev(dev); in resource_show() local 58 (unsigned long)zorro_resource_end(z), in resource_show() 59 zorro_resource_flags(z)); in resource_show() 66 struct zorro_dev *z = to_zorro_dev(dev); in modalias_show() local 92 cd.cd_Rom = z->rom; in zorro_read_config() 93 cd.cd_SlotAddr = cpu_to_be16(z->slotaddr); in zorro_read_config() [all …]
|
| A D | zorro-driver.c | 33 const struct zorro_dev *z) in zorro_match_device() argument 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 const struct zorro_dev *z; in zorro_uevent() local 140 z = to_zorro_dev(dev); in zorro_uevent() [all …]
|
| A D | proc.c | 33 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/ |
| A D | dm-zoned.h | 156 #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 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 168 #define dmz_is_meta(z) test_bit(DMZ_META, &(z)->flags) argument 169 #define dmz_is_buf(z) test_bit(DMZ_BUF, &(z)->flags) argument 170 #define dmz_is_data(z) test_bit(DMZ_DATA, &(z)->flags) argument [all …]
|
| /drivers/i2c/busses/ |
| A D | i2c-icy.c | 121 static int icy_probe(struct zorro_dev *z, in icy_probe() argument 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() 169 &z->resource.start); in icy_probe() 187 static void icy_remove(struct zorro_dev *z) in icy_remove() argument [all …]
|
| /drivers/ata/ |
| A D | pata_buddha.c | 149 static int pata_buddha_probe(struct zorro_dev *z, in pata_buddha_probe() argument 165 board = z->resource.start; in pata_buddha_probe() 168 if (!devm_request_mem_region(&z->dev, in pata_buddha_probe() 173 if (!devm_request_mem_region(&z->dev, in pata_buddha_probe() 177 if (!devm_request_mem_region(&z->dev, in pata_buddha_probe() 185 old_drvdata = dev_get_drvdata(&z->dev); in pata_buddha_probe() 188 host = ata_host_alloc(&z->dev, nr_ports); in pata_buddha_probe() 190 dev_set_drvdata(&z->dev, old_drvdata); in pata_buddha_probe() 277 struct zorro_dev *z = NULL; in pata_buddha_late_init() local 283 while ((z = zorro_find_device(ZORRO_PROD_INDIVIDUAL_COMPUTERS_X_SURF, z))) { in pata_buddha_late_init() [all …]
|
| /drivers/scsi/ |
| A D | zorro7xx.c | 75 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()
|
| A D | a2091.c | 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 267 struct Scsi_Host *instance = zorro_get_drvdata(z); in a2091_remove() [all …]
|
| A D | gvp11.c | 330 if (dma_set_mask_and_coherent(&z->dev, in gvp11_probe() 332 dev_warn(&z->dev, "cannot use DMA mask %llx\n", in gvp11_probe() 342 if (zorro_resource_len(z) != 0x10000) in gvp11_probe() 345 address = z->resource.start; in gvp11_probe() 363 instance->unique_id = z->slotaddr; in gvp11_probe() 379 if (dma_set_mask_and_coherent(&z->dev, in gvp11_probe() 381 dev_warn(&z->dev, "cannot use DMA mask %llx\n", in gvp11_probe() 413 zorro_set_drvdata(z, instance); in gvp11_probe() 426 static void gvp11_remove(struct zorro_dev *z) in gvp11_remove() argument 428 struct Scsi_Host *instance = zorro_get_drvdata(z); in gvp11_remove() [all …]
|
| /drivers/net/ethernet/8390/ |
| A D | hydra.c | 54 static int hydra_init_one(struct zorro_dev *z, 56 static int hydra_init(struct zorro_dev *z); 66 static void hydra_remove_one(struct zorro_dev *z); 81 static int hydra_init_one(struct zorro_dev *z, in hydra_init_one() argument 88 if ((err = hydra_init(z))) { in hydra_init_one() 89 release_mem_region(z->resource.start, 0x10000); in hydra_init_one() 110 static int hydra_init(struct zorro_dev *z) in hydra_init() argument 173 zorro_set_drvdata(z, dev); in hydra_init() 176 dev->name, &z->resource, dev->dev_addr); in hydra_init() 250 static void hydra_remove_one(struct zorro_dev *z) in hydra_remove_one() argument [all …]
|
| /drivers/md/dm-vdo/indexer/ |
| A D | delta-index.c | 210 unsigned int z; in uds_reset_delta_index() local 217 for (z = 0; z < delta_index->zone_count; z++) { in uds_reset_delta_index() 298 for (z = 0; z < delta_index->zone_count; z++) { in uds_uninitialize_delta_index() 367 for (z = 0; z < zone_count; z++) { in uds_initialize_delta_index() 838 for (z = 0; z < zone_count; z++) { in uds_start_restoring_delta_index() 892 z, first_list[z], list_next); in uds_start_restoring_delta_index() 916 for (z = 0; z < zone_count; z++) { in uds_start_restoring_delta_index() 947 for (z = 0; z < delta_index->zone_count; z++) in uds_start_restoring_delta_index() 1054 for (z = 0; z < reader_count; z++) { in uds_finish_restoring_delta_index() 1076 for (z = 0; z < reader_count; z++) { in uds_check_guard_delta_lists() [all …]
|
| A D | open-chapter.c | 214 unsigned int z; in fill_delta_chapter_index() local 224 for (z = 0; z < zone_count; z++) { in fill_delta_chapter_index() 225 struct open_chapter_zone *zone = chapter_zones[z]; in fill_delta_chapter_index() 300 unsigned int z; in uds_save_open_chapter() local 312 for (z = 0; z < index->zone_count; z++) { in uds_save_open_chapter() 313 open_chapter = index->zones[z]->open_chapter; in uds_save_open_chapter() 325 for (z = 0; z < index->zone_count; z++) { in uds_save_open_chapter() 326 open_chapter = index->zones[z]->open_chapter; in uds_save_open_chapter()
|
| A D | volume-index.c | 809 unsigned int z; in start_restoring_volume_sub_index() local 885 for (z = 0; z < sub_index->zone_count; z++) { in start_restoring_volume_sub_index() 886 memset(&sub_index->zones[z], 0, sizeof(struct volume_sub_index_zone)); in start_restoring_volume_sub_index() 887 sub_index->zones[z].virtual_chapter_low = virtual_chapter_low; in start_restoring_volume_sub_index() 888 sub_index->zones[z].virtual_chapter_high = virtual_chapter_high; in start_restoring_volume_sub_index() 1138 unsigned int z; in get_volume_sub_index_stats() local 1149 for (z = 0; z < sub_index->zone_count; z++) in get_volume_sub_index_stats() 1150 stats->early_flushes += sub_index->zones[z].early_flushes; in get_volume_sub_index_stats() 1180 unsigned int z; in initialize_volume_sub_index() local 1204 for (z = 0; z < sub_index->delta_index.zone_count; z++) in initialize_volume_sub_index() [all …]
|
| /drivers/video/fbdev/ |
| A D | fm2fb.c | 212 static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id); 227 static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id) in fm2fb_probe() argument 234 is_fm = z->id == ZORRO_PROD_BSC_FRAMEMASTER_II; in fm2fb_probe() 236 if (!zorro_request_device(z,"fm2fb")) in fm2fb_probe() 239 info = framebuffer_alloc(16 * sizeof(u32), &z->dev); in fm2fb_probe() 241 zorro_release_device(z); in fm2fb_probe() 247 zorro_release_device(z); in fm2fb_probe() 252 fb_fix.smem_start = zorro_resource_start(z); in fm2fb_probe() 286 zorro_release_device(z); in fm2fb_probe()
|
| /drivers/nvme/target/ |
| A D | zns.c | 27 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() 234 zdesc.za = z->reset ? 1 << 2 : 0; in nvmet_bdev_report_zone_cb() 235 zdesc.zs = z->cond << 4; in nvmet_bdev_report_zone_cb() 236 zdesc.zt = z->type; in nvmet_bdev_report_zone_cb() 318 queue_work(zbd_wq, &req->z.zmgmt_work); in nvmet_bdev_execute_zone_mgmt_recv() 361 switch (z->cond) { in zmgmt_send_scan_cb() 369 switch (z->cond) { in zmgmt_send_scan_cb() 378 switch (z->cond) { in zmgmt_send_scan_cb() 517 queue_work(zbd_wq, &req->z.zmgmt_work); in nvmet_bdev_execute_zone_mgmt_send() [all …]
|
| /drivers/macintosh/ams/ |
| A D | ams-input.c | 30 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()
|
| A D | ams-core.c | 26 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/ |
| A D | wacom_serial4.c | 313 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/ |
| A D | inv_icm42600_buffer.h | 51 __be16 z; member 63 s16 x, y, z; in inv_icm42600_fifo_is_data_valid() local 67 z = inv_icm42600_fifo_get_sensor_data(s->z); in inv_icm42600_fifo_is_data_valid() 71 z == INV_ICM42600_FIFO_DATA_INVALID) in inv_icm42600_fifo_is_data_valid()
|
| /drivers/s390/char/ |
| A D | Kconfig | 144 prompt "Support for the z/VM recording system services (VM only)" 148 by the z/VM recording system services, eg. from *LOGREC, *ACCOUNT or 154 prompt "Support for the z/VM CP interface" 159 program on z/VM 162 int "Memory in MiB reserved for z/VM CP interface" 173 prompt "API for reading z/VM monitor service records" 176 Character device driver for reading z/VM monitor service records 180 prompt "API for writing z/VM monitor service records" 183 Character device driver for writing z/VM monitor service records 187 prompt "z/VM unit record device driver" [all …]
|
| /drivers/gpu/drm/vmwgfx/ |
| A D | vmw_surface_cache.h | 200 u32 x, u32 y, u32 z) in vmw_surface_get_pixel_offset() argument 208 const u32 offset = (z / bd * imgstride + in vmw_surface_get_pixel_offset() 357 u32 x, y, z; member 460 loc->z = offset / mip->img_stride; in vmw_surface_get_loc() 461 offset -= loc->z * mip->img_stride; in vmw_surface_get_loc() 462 loc->z *= desc->blockSize.depth; in vmw_surface_get_loc() 497 loc->z += desc->blockSize.depth; in vmw_surface_inc_loc() 498 if (loc->z > size->depth) in vmw_surface_inc_loc() 499 loc->z = size->depth; in vmw_surface_inc_loc() 515 loc->x = loc->y = loc->z = 0; in vmw_surface_min_loc() [all …]
|
| /drivers/iio/magnetometer/ |
| A D | als31300.c | 106 u16 *t, s16 *x, s16 *y, s16 *z) in als31300_get_measure() argument 140 *z = ALS31300_DATA_Z_GET(buf); in als31300_get_measure() 154 s16 x, y, z; in als31300_read_raw() local 161 ret = als31300_get_measure(data, &t, &x, &y, &z); in als31300_read_raw() 176 *val = z; in als31300_read_raw() 236 s16 x, y, z; in als31300_trigger_handler() local 240 ret = als31300_get_measure(data, &t, &x, &y, &z); in als31300_trigger_handler() 247 scan.channels[2] = z; in als31300_trigger_handler()
|
| /drivers/input/misc/ |
| A D | adxl34x.c | 187 int z; member 252 ac->saved.z = (s16) le16_to_cpu(buf[2]); in adxl34x_get_triple() 253 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() 514 ac->hwcal.z -= (ac->saved.z / 4); in adxl34x_calibrate_store() 515 ac->swcal.z = ac->saved.z % 4; in adxl34x_calibrate_store() 519 AC_WRITE(ac, OFSZ, (s8) ac->hwcal.z); in adxl34x_calibrate_store() 604 ac->saved.x, ac->saved.y, ac->saved.z); in adxl34x_position_show() 812 ac->hwcal.z = pdata->z_axis_offset; in adxl34x_probe()
|
| /drivers/input/touchscreen/ |
| A D | ti_am335x_tsc.c | 281 unsigned int z1, z2, z; in titsc_irq() local 321 z = z1 - z2; in titsc_irq() 322 z *= x; in titsc_irq() 323 z *= ts_dev->x_plate_resistance; in titsc_irq() 324 z /= z2; in titsc_irq() 325 z = (z + 2047) >> 12; in titsc_irq() 327 if (z <= MAX_12BIT) { in titsc_irq() 330 input_report_abs(input_dev, ABS_PRESSURE, z); in titsc_irq()
|