Lines Matching full:block
78 unsigned long blksz; /* block size */
121 * @param start - starting block number
123 * @param blksz - size in bytes of each block
126 * @return - '1' if block returned from cache, '0' otherwise.
133 * blkcache_fill() - make data read from a block device available
134 * to the block cache
138 * @param start - starting block number
140 * @param blksz - size in bytes of each block
158 * blkcache_configure() - configure block cache
166 * statistics of the block cache
203 /* Operations on block devices */
206 * read() - read from a block device
209 * @start: Start block number to read (0=first)
219 * write() - write to a block device
222 * @start: Start block number to write (0=first)
232 * erase() - erase a section of a block device
235 * @start: Start block number to erase (0=first)
255 * @desc: Block device to update
279 * blk_find_device() - Find a block device
292 * blk_get_device() - Find and probe a block device ready for use
327 * blk_create_device() - Create a new block device
330 * @drv_name: Driver name to use for the block device
335 * @blksz: Block size of the device in bytes (typically 512)
344 * blk_create_devicef() - Create a new named block device
347 * @drv_name: Driver name to use for the block device
352 * @blksz: Block size of the device in bytes (typically 512)
405 * blk_get_from_parent() - obtain a block device by looking up its parent
412 * blk_get_by_device() - Get the block device descriptor for the given device
415 * Return: With block device descriptor on success , NULL if there is no such
416 * block device.
464 * struct blk_driver - Driver for block interface types
466 * This provides access to the block devices for each interface type. One
482 * get_dev() - get a pointer to a block device given its number
486 * There is no global numbering for block devices. This method allows
491 * @descp: Returns pointer to the block device on success
509 * @desc: Block device descriptor
519 * Declare a new U-Boot legacy block driver. New drivers should use driver
530 * blk_get_devnum_by_typename() - Get a block device by type and number
532 * This looks through the available block devices of the given type, returning
535 * @if_type: Block device type
537 * @return point to block device descriptor, or NULL if not found
542 * blk_get_devnum_by_type() - Get a block device by type name, and number
544 * This looks up the block device type based on @if_typename, then calls
547 * @if_typename: Block device type name
549 * @return point to block device descriptor, or NULL if not found
557 * This selects a hardware partition (such as is supported by MMC). The block
558 * device size may change as this effectively points the block device to a
561 * @desc: Block device descriptor for the device to select
568 * blk_list_part() - list the partitions for block devices of a given type
570 * This looks up the partition type for each block device of type @if_type,
573 * @if_type: Block device type
579 * blk_list_devices() - list the block devices of a given type
581 * This lists each block device of the type @if_type, showing the capacity
584 * @if_type: Block device type
589 * blk_show_device() - show information about a given block device
591 * This shows the block device capacity as well as type-specific information.
593 * @if_type: Block device type
600 * blk_print_device_num() - show information about a given block device
602 * This is similar to blk_show_device() but returns an error if the block
605 * @if_type: Block device type
607 * @return 0 if OK, -ENODEV for invalid device number, -ENOENT if the block
615 * @if_type: Block device type
617 * @return 0 if OK, -ENOENT if the block device is not connected, -ENOSYS if
625 * @if_type: Block device type
637 * @if_type: Block device type
652 * @if_type: Block device type
668 * blk_common_cmd() - handle common commands with block devices