Lines Matching full:device
63 * device's uclass instead.
66 int devnum; /* device number */
71 unsigned char type; /* device type */
72 unsigned char removable; /* removable device */
74 /* device can use 48bit addr (ATA/ATAPI v7) */
80 char vendor[BLK_VEN_SIZE + 1]; /* device vendor string */
81 char product[BLK_PRD_SIZE + 1]; /* device product number */
92 * device. Once these functions are removed we can drop this field.
119 * @param iftype - IF_TYPE_x for type of device
120 * @param dev - device index of particular type
133 * blkcache_fill() - make data read from a block device available
136 * @param iftype - IF_TYPE_x for type of device
137 * @param dev - device index of particular type
150 * because of a write or device (re)initialization.
152 * @param iftype - IF_TYPE_x for type of device
153 * @param dev - device index of particular type
206 * read() - read from a block device
208 * @dev: Device to read from
219 * write() - write to a block device
221 * @dev: Device to write to
232 * erase() - erase a section of a block device
234 * @dev: Device to (partially) erase
249 * explicitly selected. Once selected only the region of the device
255 * @desc: Block device to update
257 * device, 1 is the first partition, 2 is the second, etc.
279 * blk_find_device() - Find a block device
281 * This function does not activate the device. The device will be returned
285 * @devnum: Device number (specific to each interface type)
286 * @devp: the device, if found
287 * @return 0 if found, -ENODEV if no device found, or other -ve error value
292 * blk_get_device() - Find and probe a block device ready for use
295 * @devnum: Device number (specific to each interface type)
296 * @devp: the device, if found
297 * @return 0 if found, -ENODEV if no device found, or other -ve error value
302 * blk_first_device() - Find the first device for a given interface
304 * The device is probed ready for use
306 * @devnum: Device number (specific to each interface type)
307 * @devp: the device, if found
308 * @return 0 if found, -ENODEV if no device, or other -ve error value
313 * blk_next_device() - Find the next device for a given interface
318 * The device is probed ready for use
320 * @devp: On entry, the previous device returned. On exit, the next
321 * device, if found
322 * @return 0 if found, -ENODEV if no device, or other -ve error value
327 * blk_create_device() - Create a new block device
329 * @parent: Parent of the new device
330 * @drv_name: Driver name to use for the block device
331 * @name: Name for the device
333 * @devnum: Device number, specific to the interface type, or -1 to
335 * @blksz: Block size of the device in bytes (typically 512)
336 * @lba: Total number of blocks of the device
337 * @devp: the new device (which has not been probed)
344 * blk_create_devicef() - Create a new named block device
346 * @parent: Parent of the new device
347 * @drv_name: Driver name to use for the block device
348 * @name: Name for the device (parent name is prepended)
350 * @devnum: Device number, specific to the interface type, or -1 to
352 * @blksz: Block size of the device in bytes (typically 512)
353 * @lba: Total number of blocks of the device
354 * @devp: the new device (which has not been probed)
361 * blk_unbind_all() - Unbind all device of the given interface type
371 * blk_find_max_devnum() - find the maximum device number for an interface type
373 * Finds the last allocated device number for an interface type @if_type. The
374 * next number is safe to use for a newly allocated device.
377 * @return maximum device number found, or -ENODEV if none, or other -ve on
383 * blk_next_free_devnum() - get the next device number for an interface type
385 * Finds the next number that is safe to use for a newly allocated device for
389 * @return next device number safe to use, or -ve on error
396 * Select a hardware partition if the device supports it (typically MMC does)
398 * @dev: Device to update
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
413 * @dev: Instance of a storage device
415 * Return: With block device descriptor on success , NULL if there is no such
416 * block device.
482 * get_dev() - get a pointer to a block device given its number
487 * the device for an interface type to be obtained when @desc is NULL.
489 * @devnum: Device number (0 for first device on that interface,
491 * @descp: Returns pointer to the block device on success
502 * explicitly selected. Once selected only the region of the device
509 * @desc: Block device descriptor
530 * blk_get_devnum_by_typename() - Get a block device by type and number
535 * @if_type: Block device type
536 * @devnum: Device number
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
548 * @devnum: Device number
549 * @return point to block device descriptor, or NULL if not found
558 * device size may change as this effectively points the block device to a
561 * @desc: Block device descriptor for the device to select
570 * This looks up the partition type for each block device of type @if_type,
573 * @if_type: Block device 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
594 * @devnum: Device number
595 * @return 0 if OK, -ENODEV for invalid device number
600 * blk_print_device_num() - show information about a given block device
603 * device type is unknown.
605 * @if_type: Block device type
606 * @devnum: Device number
607 * @return 0 if OK, -ENODEV for invalid device number, -ENOENT if the block
608 * device is not connected
613 * blk_print_part_devnum() - print the partition information for a device
615 * @if_type: Block device type
616 * @devnum: Device number
617 * @return 0 if OK, -ENOENT if the block device is not connected, -ENOSYS if
623 * blk_read_devnum() - read blocks from a device
625 * @if_type: Block device type
626 * @devnum: Device number
635 * blk_write_devnum() - write blocks to a device
637 * @if_type: Block device type
638 * @devnum: Device number
650 * device number.
652 * @if_type: Block device type
653 * @devnum: Device number
673 * @cur_devnump: Current device number for this interface type