/linux/drivers/mtd/chips/ |
A D | jedec_probe.c | 271 const uint8_t dev_size; member 303 .dev_size = SIZE_4MiB, 315 .dev_size = SIZE_2MiB, 330 .dev_size = SIZE_2MiB, 375 .dev_size = SIZE_1MiB, 391 .dev_size = SIZE_1MiB, 408 .dev_size = SIZE_1MiB, 425 .dev_size = SIZE_1MiB, 440 .dev_size = SIZE_1MiB, 455 .dev_size = SIZE_1MiB, [all …]
|
/linux/Documentation/admin-guide/device-mapper/ |
A D | linear.rst | 50 my $dev_size = `blockdev --getsz $dev`; 51 my $extents = int($dev_size / $extent_size) - 52 (($dev_size % $extent_size) ? 1 : 0);
|
/linux/drivers/target/ |
A D | target_core_file.c | 138 unsigned long long dev_size; in fd_configure_device() local 145 dev_size = (i_size_read(file->f_mapping->host) - in fd_configure_device() 150 dev_size, div_u64(dev_size, fd_dev->fd_block_size), in fd_configure_device() 813 unsigned long long dev_size; in fd_get_blocks() local 820 dev_size = i_size_read(i); in fd_get_blocks() 822 dev_size = fd_dev->fd_dev_size; in fd_get_blocks() 824 return div_u64(dev_size - dev->dev_attrib.block_size, in fd_get_blocks()
|
A D | target_core_user.c | 131 uint64_t dev_size; member 2541 ret = match_u64(&args[0], &udev->dev_size); in tcmu_set_configfs_dev_params() 2585 bl += sprintf(b + bl, "Size: %llu ", udev->dev_size); in tcmu_show_configfs_dev_params() 2596 return div_u64(udev->dev_size - dev->dev_attrib.block_size, in tcmu_get_blocks() 2764 return snprintf(page, PAGE_SIZE, "%llu\n", udev->dev_size); in tcmu_dev_size_show() 2808 udev->dev_size = val; in tcmu_dev_size_store() 2811 CONFIGFS_ATTR(tcmu_, dev_size);
|
/linux/net/ethtool/ |
A D | common.c | 499 u32 dev_size, current_max = 0; in ethtool_get_max_rxfh_channel() local 506 dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); in ethtool_get_max_rxfh_channel() 507 if (dev_size == 0) in ethtool_get_max_rxfh_channel() 510 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_max_rxfh_channel() 518 while (dev_size--) in ethtool_get_max_rxfh_channel() 519 current_max = max(current_max, indir[dev_size]); in ethtool_get_max_rxfh_channel()
|
A D | ioctl.c | 1067 u32 user_size, dev_size; in ethtool_get_rxfh_indir() local 1075 if (dev_size == 0) in ethtool_get_rxfh_indir() 1084 &dev_size, sizeof(dev_size))) in ethtool_get_rxfh_indir() 1091 if (user_size < dev_size) in ethtool_get_rxfh_indir() 1104 indir, dev_size * sizeof(indir[0]))) in ethtool_get_rxfh_indir() 1116 u32 user_size, dev_size, i; in ethtool_set_rxfh_indir() local 1126 dev_size = ops->get_rxfh_indir_size(dev); in ethtool_set_rxfh_indir() 1127 if (dev_size == 0) in ethtool_set_rxfh_indir() 1135 if (user_size != 0 && user_size != dev_size) in ethtool_set_rxfh_indir() 1148 for (i = 0; i < dev_size; i++) in ethtool_set_rxfh_indir() [all …]
|
/linux/drivers/media/usb/gspca/ |
A D | gspca.h | 222 int dev_size, 227 int dev_size,
|
A D | gspca.c | 1447 int dev_size, in gspca_dev_probe2() argument 1459 if (dev_size < sizeof *gspca_dev) in gspca_dev_probe2() 1460 dev_size = sizeof *gspca_dev; in gspca_dev_probe2() 1461 gspca_dev = kzalloc(dev_size, GFP_KERNEL); in gspca_dev_probe2() 1593 int dev_size, in gspca_dev_probe() argument 1610 return gspca_dev_probe2(intf, id, sd_desc, dev_size, module); in gspca_dev_probe()
|
/linux/drivers/dma/sh/ |
A D | rcar-dmac.c | 1152 size_t dev_size; in rcar_dmac_map_slave_addr() local 1157 dev_size = rchan->src.xfer_size; in rcar_dmac_map_slave_addr() 1161 dev_size = rchan->dst.xfer_size; in rcar_dmac_map_slave_addr() 1167 dev_size == map->slave.xfer_size && in rcar_dmac_map_slave_addr() 1178 map->addr = dma_map_resource(chan->device->dev, dev_addr, dev_size, in rcar_dmac_map_slave_addr() 1184 dev_size, &dev_addr); in rcar_dmac_map_slave_addr() 1189 rchan->index, dev_size, &dev_addr, &map->addr, in rcar_dmac_map_slave_addr() 1193 map->slave.xfer_size = dev_size; in rcar_dmac_map_slave_addr()
|
/linux/drivers/dax/ |
A D | bus.c | 936 resource_size_t dev_size = dev_dax_size(dev_dax); in dev_dax_resize() local 945 if (size == dev_size) in dev_dax_resize() 947 if (size > dev_size && size - dev_size > avail) in dev_dax_resize() 949 if (size < dev_size) in dev_dax_resize() 952 to_alloc = size - dev_size; in dev_dax_resize()
|
/linux/fs/ntfs3/ |
A D | super.c | 680 u64 dev_size) in ntfs_init_from_boot() argument 691 sbi->volume.blocks = dev_size >> PAGE_SHIFT; in ntfs_init_from_boot() 757 dev_size += sector_size - 1; in ntfs_init_from_boot() 805 if (dev_size < sbi->volume.size + boot_sector_size) { in ntfs_init_from_boot() 808 gb0 = format_size_gb(dev_size, &mb0); in ntfs_init_from_boot()
|
/linux/drivers/md/ |
A D | dm-table.c | 230 sector_t dev_size = bdev_nr_sectors(bdev); in device_area_is_invalid() local 235 if (!dev_size) in device_area_is_invalid() 238 if ((start >= dev_size) || (start + len > dev_size)) { in device_area_is_invalid() 244 (unsigned long long)dev_size); in device_area_is_invalid()
|
A D | dm-snap.c | 1818 sector_t dev_size; in start_copy() local 1820 dev_size = get_dev_size(bdev); in start_copy() 1824 src.count = min((sector_t)s->store->chunk_size, dev_size - src.sector); in start_copy()
|
A D | md.c | 2139 static sector_t super_1_choose_bm_space(sector_t dev_size) in super_1_choose_bm_space() argument 2146 if (dev_size < 64*2) in super_1_choose_bm_space() 2148 else if (dev_size - 64*2 >= 200*1024*1024*2) in super_1_choose_bm_space() 2150 else if (dev_size - 4*2 > 8*1024*1024*2) in super_1_choose_bm_space() 2177 sector_t dev_size = bdev_nr_sectors(rdev->bdev); in super_1_rdev_size_change() local 2180 sb_start = dev_size - 8*2; in super_1_rdev_size_change() 2183 bm_space = super_1_choose_bm_space(dev_size); in super_1_rdev_size_change()
|
/linux/drivers/staging/ks7010/ |
A D | ks_wlan.h | 484 int dev_size[DEVICE_STOCK_COUNT]; member
|
A D | ks_hostif.c | 1583 priv->dev_size[atomic_read(&priv->rec_count)] = size; in devio_rec_ind()
|
/linux/fs/nilfs2/ |
A D | sysfs.c | 854 u64 dev_size = le64_to_cpu(sbp[0]->s_dev_size); in nilfs_dev_device_size_show() local 856 return sysfs_emit(buf, "%llu\n", dev_size); in nilfs_dev_device_size_show()
|
/linux/include/linux/ |
A D | drbd_genl.h | 286 __u64_field(1, 0, dev_size) /* (sectors) */
|
/linux/drivers/block/drbd/ |
A D | drbd_nl.c | 3382 s->dev_size = get_capacity(device->vdisk); in device_to_statistics()
|