/drivers/scsi/libsas/ |
H A D | sas_scsi_host.c | 855 struct block_device *bdev, 854 sas_bios_param(struct scsi_device *scsi_dev, struct block_device *bdev, sector_t capacity, int *hsc) argument
|
/drivers/block/ |
H A D | cpqarray.c | 162 static int ida_unlocked_open(struct block_device *bdev, fmode_t mode); 164 static int ida_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg); 165 static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo); 823 static int ida_open(struct block_device *bdev, fmode_t mode) argument 825 drv_info_t *drv = get_drv(bdev->bd_disk); 826 ctlr_info_t *host = get_host(bdev->bd_disk); 828 DBGINFO(printk("ida_open %s\n", bdev->bd_disk->disk_name)); 845 static int ida_unlocked_open(struct block_device *bdev, fmode_t mode) argument 850 ret = ida_open(bdev, mode); 1125 static int ida_getgeo(struct block_device *bdev, struc argument 1146 ida_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) argument 1213 ida_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long param) argument [all...] |
H A D | hd.c | 661 static int hd_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument 663 struct hd_i_struct *disk = bdev->bd_disk->private_data;
|
H A D | mg_disk.c | 769 static int mg_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument 771 struct mg_host *host = bdev->bd_disk->private_data;
|
H A D | umem.c | 793 static int mm_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument 795 struct cardinfo *card = bdev->bd_disk->private_data;
|
H A D | xd.c | 133 static int xd_getgeo(struct block_device *bdev, struct hd_geometry *geo); 340 static int xd_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument 342 XD_INFO *p = bdev->bd_disk->private_data; 351 static int xd_locked_ioctl(struct block_device *bdev, fmode_t mode, u_int cmd, u_long arg) argument 379 static int xd_ioctl(struct block_device *bdev, fmode_t mode, argument 385 ret = xd_locked_ioctl(bdev, mode, cmd, param);
|
H A D | xen-blkfront.c | 221 static int blkif_ioctl(struct block_device *bdev, fmode_t mode, argument 224 struct blkfront_info *info = bdev->bd_disk->private_data; 1112 struct block_device *bdev = NULL; local 1122 bdev = bdget_disk(info->gd, 0); 1126 if (!bdev) { 1131 mutex_lock(&bdev->bd_mutex); 1133 if (bdev->bd_openers) { 1142 mutex_unlock(&bdev->bd_mutex); 1143 bdput(bdev); 1322 struct block_device *bdev local 1375 blkif_open(struct block_device *bdev, fmode_t mode) argument 1406 struct block_device *bdev; local [all...] |
H A D | amiflop.c | 1453 static int fd_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument 1455 int drive = MINOR(bdev->bd_dev) & 3; 1463 static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, argument 1466 struct amiga_floppy_struct *p = bdev->bd_disk->private_data; 1478 fsync_bdev(bdev); 1507 invalidate_bdev(bdev); 1540 static int fd_ioctl(struct block_device *bdev, fmode_t mode, argument 1546 ret = fd_locked_ioctl(bdev, mode, cmd, param); 1587 static int floppy_open(struct block_device *bdev, fmode_t mode) argument 1589 int drive = MINOR(bdev [all...] |
H A D | ataflop.c | 364 static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int 369 static int floppy_open(struct block_device *bdev, fmode_t mode); 1509 static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, argument 1512 struct gendisk *disk = bdev->bd_disk; 1687 check_disk_change(bdev); 1694 static int fd_ioctl(struct block_device *bdev, fmode_t mode, argument 1700 ret = fd_locked_ioctl(bdev, mode, cmd, arg); 1841 static int floppy_open(struct block_device *bdev, fmode_t mode) argument 1843 struct atari_floppy_struct *p = bdev->bd_disk->private_data; 1844 int type = MINOR(bdev 1878 floppy_unlocked_open(struct block_device *bdev, fmode_t mode) argument [all...] |
H A D | loop.c | 623 static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, argument 663 ioctl_by_bdev(bdev, BLKRRPART, 0); 808 struct block_device *bdev, unsigned int arg) 835 if (f->f_mapping->host->i_bdev == bdev) 867 set_device_ro(bdev, (lo_flags & LO_FLAGS_READ_ONLY) != 0); 870 lo->lo_device = bdev; 892 bd_set_size(bdev, size << 9); 895 kobject_uevent(&disk_to_dev(bdev->bd_disk)->kobj, KOBJ_CHANGE); 897 set_blocksize(bdev, lo_blocksize); 910 ioctl_by_bdev(bdev, BLKRRPAR 807 loop_set_fd(struct loop_device *lo, fmode_t mode, struct block_device *bdev, unsigned int arg) argument 974 struct block_device *bdev = lo->lo_device; local 1250 loop_set_capacity(struct loop_device *lo, struct block_device *bdev) argument 1276 lo_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) argument 1447 lo_compat_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) argument 1483 lo_open(struct block_device *bdev, fmode_t mode) argument [all...] |
H A D | nvme.c | 1198 static int nvme_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, argument 1201 struct nvme_ns *ns = bdev->bd_disk->private_data;
|
/drivers/block/drbd/ |
H A D | drbd_actlog.c | 69 struct drbd_backing_dev *bdev, 86 bio->bi_bdev = bdev->md_bdev; 107 int drbd_md_sync_page_io(struct drbd_conf *mdev, struct drbd_backing_dev *bdev, argument 116 BUG_ON(!bdev->md_bdev); 118 logical_block_size = bdev_logical_block_size(bdev->md_bdev); 137 ok = _drbd_md_sync_page_io(mdev, bdev, iop, sector, 151 if (sector < drbd_md_first_sector(bdev) || 152 sector > drbd_md_last_sector(bdev)) 157 ok = _drbd_md_sync_page_io(mdev, bdev, iop, sector, rw, logical_block_size); 388 * @bdev 68 _drbd_md_sync_page_io(struct drbd_conf *mdev, struct drbd_backing_dev *bdev, struct page *page, sector_t sector, int rw, int size) argument 394 drbd_al_read_tr(struct drbd_conf *mdev, struct drbd_backing_dev *bdev, struct al_transaction *b, int index) argument 426 drbd_al_read_log(struct drbd_conf *mdev, struct drbd_backing_dev *bdev) argument [all...] |
H A D | drbd_nl.c | 508 struct drbd_backing_dev *bdev) 511 switch (bdev->dc.meta_dev_idx) { 514 bdev->md.md_size_sect = MD_RESERVED_SECT; 515 bdev->md.md_offset = drbd_md_ss__(mdev, bdev); 516 bdev->md.al_offset = MD_AL_OFFSET; 517 bdev->md.bm_offset = MD_BM_OFFSET; 521 bdev->md.md_size_sect = drbd_get_capacity(bdev->md_bdev); 522 bdev 507 drbd_md_set_sector_offsets(struct drbd_conf *mdev, struct drbd_backing_dev *bdev) argument 693 drbd_new_dev_size(struct drbd_conf *mdev, struct drbd_backing_dev *bdev, int assume_peer_has_space) argument 932 struct block_device *bdev; local [all...] |
/drivers/block/paride/ |
H A D | pcd.c | 227 static int pcd_block_open(struct block_device *bdev, fmode_t mode) argument 229 struct pcd_unit *cd = bdev->bd_disk->private_data; 233 ret = cdrom_open(&cd->info, bdev, mode); 248 static int pcd_block_ioctl(struct block_device *bdev, fmode_t mode, argument 251 struct pcd_unit *cd = bdev->bd_disk->private_data; 255 ret = cdrom_ioctl(&cd->info, bdev, mode, cmd, arg);
|
/drivers/cdrom/ |
H A D | gdrom.c | 497 static int gdrom_bdops_open(struct block_device *bdev, fmode_t mode) argument 501 ret = cdrom_open(gd.cd_info, bdev, mode); 520 static int gdrom_bdops_ioctl(struct block_device *bdev, fmode_t mode, argument 526 ret = cdrom_ioctl(gd.cd_info, bdev, mode, cmd, arg);
|
/drivers/gpu/drm/nouveau/ |
H A D | nouveau_mem.c | 158 ttm_bo_device_release(&dev_priv->ttm.bdev); 341 struct ttm_bo_device *bdev = &dev_priv->ttm.bdev; local 371 ret = ttm_bo_device_init(&dev_priv->ttm.bdev, 410 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, 440 struct ttm_bo_device *bdev = &dev_priv->ttm.bdev; local 465 ret = ttm_bo_init_mm(bdev, TTM_PL_TT, 1120 struct drm_nouveau_private *dev_priv = nouveau_bdev(man->bdev); 1134 struct drm_nouveau_private *dev_priv = nouveau_bdev(man->bdev); [all...] |
/drivers/gpu/drm/ttm/ |
H A D | ttm_bo.c | 69 static void ttm_mem_type_debug(struct ttm_bo_device *bdev, int mem_type) argument 71 struct ttm_mem_type_manager *man = &bdev->man[mem_type]; 99 ttm_mem_type_debug(bo->bdev, mem_type); 139 struct ttm_bo_device *bdev = bo->bdev; local 158 ttm_mem_global_free(bdev->glob->mem_glob, acc_size); 175 struct ttm_bo_device *bdev = bo->bdev; local 184 man = &bdev->man[bo->mem.mem_type]; 325 struct ttm_bo_device *bdev local 360 struct ttm_bo_device *bdev = bo->bdev; local 490 struct ttm_bo_device *bdev = bo->bdev; local 560 struct ttm_bo_device *bdev = bo->bdev; local 620 ttm_bo_delayed_delete(struct ttm_bo_device *bdev, bool remove_all) argument 667 struct ttm_bo_device *bdev = local 680 struct ttm_bo_device *bdev = bo->bdev; local 700 struct ttm_bo_device *bdev = bo->bdev; local 709 ttm_bo_lock_delayed_workqueue(struct ttm_bo_device *bdev) argument 715 ttm_bo_unlock_delayed_workqueue(struct ttm_bo_device *bdev, int resched) argument 726 struct ttm_bo_device *bdev = bo->bdev; local 778 ttm_mem_evict_first(struct ttm_bo_device *bdev, uint32_t mem_type, bool interruptible, bool no_wait_reserve, bool no_wait_gpu) argument 863 struct ttm_bo_device *bdev = bo->bdev; local 942 struct ttm_bo_device *bdev = bo->bdev; local 1060 struct ttm_bo_device *bdev = bo->bdev; local 1162 ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo, unsigned long size, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t page_alignment, unsigned long buffer_start, bool interruptible, struct file *persistent_swap_storage, size_t acc_size, void (*destroy) (struct ttm_buffer_object *)) argument 1258 ttm_bo_acc_size(struct ttm_bo_device *bdev, unsigned long bo_size, unsigned struct_size) argument 1272 ttm_bo_dma_acc_size(struct ttm_bo_device *bdev, unsigned long bo_size, unsigned struct_size) argument 1287 ttm_bo_create(struct ttm_bo_device *bdev, unsigned long size, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t page_alignment, unsigned long buffer_start, bool interruptible, struct file *persistent_swap_storage, struct ttm_buffer_object **p_bo) argument 1316 ttm_bo_force_list_clean(struct ttm_bo_device *bdev, unsigned mem_type, bool allow_errors) argument 1344 ttm_bo_clean_mm(struct ttm_bo_device *bdev, unsigned mem_type) argument 1375 ttm_bo_evict_mm(struct ttm_bo_device *bdev, unsigned mem_type) argument 1393 ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type, unsigned long p_size) argument 1490 ttm_bo_device_release(struct ttm_bo_device *bdev) argument 1536 ttm_bo_device_init(struct ttm_bo_device *bdev, struct ttm_bo_global *glob, struct ttm_bo_driver *driver, uint64_t file_page_offset, bool need_dma32) argument 1586 ttm_mem_reg_is_pci(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) argument 1605 struct ttm_bo_device *bdev = bo->bdev; local 1617 struct ttm_bo_device *bdev = bo->bdev; local 1630 struct ttm_bo_device *bdev = bo->bdev; local 1666 struct ttm_bo_device *bdev = bo->bdev; local 1705 struct ttm_bo_device *bdev = bo->bdev; local 1761 struct ttm_bo_device *bdev = bo->bdev; local 1892 ttm_bo_swapout_all(struct ttm_bo_device *bdev) argument [all...] |
/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_resource.c | 955 ret = ttm_bo_create(&dev_priv->bdev, srf->backup_size, 1556 struct ttm_bo_device *bdev = &dev_priv->bdev; local 1562 acc_size = ttm_bo_acc_size(bdev, size, sizeof(struct vmw_dma_buffer)); 1567 ret = ttm_bo_init(bdev, &vmw_bo->base, size,
|
/drivers/ide/ |
H A D | ide-cd.c | 1591 static int idecd_open(struct block_device *bdev, fmode_t mode) argument 1597 info = ide_cd_get(bdev->bd_disk); 1601 rc = cdrom_open(&info->devinfo, bdev, mode); 1661 static int idecd_locked_ioctl(struct block_device *bdev, fmode_t mode, argument 1664 struct cdrom_info *info = ide_drv_g(bdev->bd_disk, cdrom_info); 1676 err = generic_ide_ioctl(info->drive, bdev, cmd, arg); 1678 err = cdrom_ioctl(&info->devinfo, bdev, mode, cmd, arg); 1683 static int idecd_ioctl(struct block_device *bdev, fmode_t mode, argument 1689 ret = idecd_locked_ioctl(bdev, mode, cmd, arg);
|
/drivers/md/ |
H A D | dm-mpath.c | 167 scsi_dh_detach(bdev_get_queue(pgpath->path.dev->bdev)); 371 struct block_device *bdev; local 397 bdev = pgpath->path.dev->bdev; 398 clone->q = bdev_get_queue(bdev); 399 clone->rq_disk = bdev->bd_disk; 588 struct request_queue *q = bdev_get_queue(p->path.dev->bdev); 1225 scsi_dh_activate(bdev_get_queue(pgpath->path.dev->bdev), 1521 struct block_device *bdev = NULL; local 1532 bdev [all...] |
/drivers/net/fddi/ |
H A D | defxx.c | 378 struct device __maybe_unused *bdev = bp->bus_dev; local 379 int dfx_bus_tc = DFX_BUS_TC(bdev); 402 struct device __maybe_unused *bdev = bp->bus_dev; local 403 int dfx_bus_tc = DFX_BUS_TC(bdev); 426 * bdev - pointer to device information 436 static void dfx_get_bars(struct device *bdev, argument 439 int dfx_bus_pci = DFX_BUS_PCI(bdev); 440 int dfx_bus_eisa = DFX_BUS_EISA(bdev); 441 int dfx_bus_tc = DFX_BUS_TC(bdev); 447 *bar_start = pci_resource_start(to_pci_dev(bdev), nu 518 dfx_register(struct device *bdev) argument 669 struct device *bdev = bp->bus_dev; local 815 struct device *bdev = bp->bus_dev; local 871 struct device __maybe_unused *bdev = bp->bus_dev; local 970 struct device *bdev = bp->bus_dev; local 1883 struct device *bdev = bp->bus_dev; local 3582 dfx_unregister(struct device *bdev) argument [all...] |
/drivers/scsi/ |
H A D | 3w-xxxx.c | 1368 static int tw_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, argument
|
H A D | aha1542.c | 1704 struct block_device *bdev, sector_t capacity, int *ip) 1703 aha1542_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *ip) argument
|
H A D | fdomain.c | 1589 struct block_device *bdev, 1644 if (MAJOR(bdev->bd_dev) != SCSI_DISK0_MAJOR) { 1648 drive = MINOR(bdev->bd_dev) >> 4; 1681 unsigned char *p = scsi_bios_ptable(bdev); 1588 fdomain_16x0_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *info_array) argument
|
/drivers/ata/ |
H A D | libata-scsi.c | 360 * @bdev: block device associated with @sdev 375 int ata_std_bios_param(struct scsi_device *sdev, struct block_device *bdev, argument
|