Home
last modified time | relevance | path

Searched refs:dev_size (Results 1 – 20 of 20) sorted by relevance

/Linux-v6.1/drivers/mtd/chips/
Djedec_probe.c271 const uint8_t dev_size; member
303 .dev_size = SIZE_4MiB,
315 .dev_size = SIZE_2MiB,
330 .dev_size = SIZE_2MiB,
345 .dev_size = SIZE_512KiB,
360 .dev_size = SIZE_512KiB,
375 .dev_size = SIZE_1MiB,
391 .dev_size = SIZE_1MiB,
408 .dev_size = SIZE_1MiB,
425 .dev_size = SIZE_1MiB,
[all …]
/Linux-v6.1/Documentation/admin-guide/device-mapper/
Dlinear.rst50 my $dev_size = `blockdev --getsz $dev`;
51 my $extents = int($dev_size / $extent_size) -
52 (($dev_size % $extent_size) ? 1 : 0);
/Linux-v6.1/drivers/target/
Dtarget_core_file.c156 unsigned long long dev_size; in fd_configure_device() local
163 dev_size = (i_size_read(file->f_mapping->host) - in fd_configure_device()
168 dev_size, div_u64(dev_size, fd_dev->fd_block_size), in fd_configure_device()
816 unsigned long long dev_size; in fd_get_blocks() local
823 dev_size = i_size_read(i); in fd_get_blocks()
825 dev_size = fd_dev->fd_dev_size; in fd_get_blocks()
827 return div_u64(dev_size - dev->dev_attrib.block_size, in fd_get_blocks()
Dtarget_core_user.c132 uint64_t dev_size; member
2603 ret = match_u64(&args[0], &udev->dev_size); in tcmu_set_configfs_dev_params()
2650 bl += sprintf(b + bl, "Size: %llu ", udev->dev_size); in tcmu_show_configfs_dev_params()
2663 return div_u64(udev->dev_size - dev->dev_attrib.block_size, in tcmu_get_blocks()
2842 return snprintf(page, PAGE_SIZE, "%llu\n", udev->dev_size); in tcmu_dev_size_show()
2886 udev->dev_size = val; in tcmu_dev_size_store()
2889 CONFIGFS_ATTR(tcmu_, dev_size);
/Linux-v6.1/net/ethtool/
Dcommon.c503 u32 dev_size, current_max = 0; in ethtool_get_max_rxfh_channel() local
510 dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); in ethtool_get_max_rxfh_channel()
511 if (dev_size == 0) in ethtool_get_max_rxfh_channel()
514 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_max_rxfh_channel()
522 while (dev_size--) in ethtool_get_max_rxfh_channel()
523 current_max = max(current_max, indir[dev_size]); in ethtool_get_max_rxfh_channel()
Dioctl.c1059 u32 user_size, dev_size; in ethtool_get_rxfh_indir() local
1066 dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); in ethtool_get_rxfh_indir()
1067 if (dev_size == 0) in ethtool_get_rxfh_indir()
1076 &dev_size, sizeof(dev_size))) in ethtool_get_rxfh_indir()
1083 if (user_size < dev_size) in ethtool_get_rxfh_indir()
1086 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_rxfh_indir()
1096 indir, dev_size * sizeof(indir[0]))) in ethtool_get_rxfh_indir()
1108 u32 user_size, dev_size, i; in ethtool_set_rxfh_indir() local
1118 dev_size = ops->get_rxfh_indir_size(dev); in ethtool_set_rxfh_indir()
1119 if (dev_size == 0) in ethtool_set_rxfh_indir()
[all …]
/Linux-v6.1/drivers/media/usb/gspca/
Dgspca.h222 int dev_size,
227 int dev_size,
Dgspca.c1447 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-v6.1/drivers/dma/sh/
Drcar-dmac.c1152 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-v6.1/drivers/dax/
Dbus.c966 resource_size_t dev_size = dev_dax_size(dev_dax); in dev_dax_resize() local
975 if (size == dev_size) in dev_dax_resize()
977 if (size > dev_size && size - dev_size > avail) in dev_dax_resize()
979 if (size < dev_size) in dev_dax_resize()
982 to_alloc = size - dev_size; in dev_dax_resize()
/Linux-v6.1/fs/ntfs3/
Dsuper.c683 u64 dev_size) in ntfs_init_from_boot() argument
694 sbi->volume.blocks = dev_size >> PAGE_SHIFT; in ntfs_init_from_boot()
762 dev_size += sector_size - 1; in ntfs_init_from_boot()
810 if (dev_size < sbi->volume.size + boot_sector_size) { in ntfs_init_from_boot()
813 gb0 = format_size_gb(dev_size, &mb0); in ntfs_init_from_boot()
/Linux-v6.1/drivers/iio/adc/
Dxilinx-ams.c1269 size_t ams_size, dev_size; in ams_parse_firmware() local
1326 dev_size = array_size(sizeof(*dev_channels), num_channels); in ams_parse_firmware()
1327 if (dev_size == SIZE_MAX) in ams_parse_firmware()
1330 dev_channels = devm_krealloc(dev, ams_channels, dev_size, GFP_KERNEL); in ams_parse_firmware()
/Linux-v6.1/drivers/md/
Ddm-table.c229 sector_t dev_size = bdev_nr_sectors(bdev); in device_area_is_invalid() local
233 if (!dev_size) in device_area_is_invalid()
236 if ((start >= dev_size) || (start + len > dev_size)) { in device_area_is_invalid()
242 (unsigned long long)dev_size); in device_area_is_invalid()
Ddm-snap.c1799 sector_t dev_size; in start_copy() local
1801 dev_size = get_dev_size(bdev); in start_copy()
1805 src.count = min((sector_t)s->store->chunk_size, dev_size - src.sector); in start_copy()
Dmd.c2113 static sector_t super_1_choose_bm_space(sector_t dev_size) in super_1_choose_bm_space() argument
2120 if (dev_size < 64*2) in super_1_choose_bm_space()
2122 else if (dev_size - 64*2 >= 200*1024*1024*2) in super_1_choose_bm_space()
2124 else if (dev_size - 4*2 > 8*1024*1024*2) in super_1_choose_bm_space()
2151 sector_t dev_size = bdev_nr_sectors(rdev->bdev); in super_1_rdev_size_change() local
2154 sb_start = dev_size - 8*2; in super_1_rdev_size_change()
2157 bm_space = super_1_choose_bm_space(dev_size); in super_1_rdev_size_change()
/Linux-v6.1/drivers/staging/ks7010/
Dks_wlan.h484 int dev_size[DEVICE_STOCK_COUNT]; member
Dks_hostif.c1579 priv->dev_size[atomic_read(&priv->rec_count)] = size; in devio_rec_ind()
/Linux-v6.1/fs/nilfs2/
Dsysfs.c860 u64 dev_size = le64_to_cpu(sbp[0]->s_dev_size); in nilfs_dev_device_size_show() local
862 return sysfs_emit(buf, "%llu\n", dev_size); in nilfs_dev_device_size_show()
/Linux-v6.1/include/linux/
Ddrbd_genl.h286 __u64_field(1, 0, dev_size) /* (sectors) */
/Linux-v6.1/drivers/block/drbd/
Ddrbd_nl.c3303 s->dev_size = get_capacity(device->vdisk); in device_to_statistics()