/drivers/video/fbdev/ |
H A D | edid.h | 72 #define PIXEL_CLOCK_LO (unsigned)block[ 0 ] 73 #define PIXEL_CLOCK_HI (unsigned)block[ 1 ] 75 #define H_ACTIVE_LO (unsigned)block[ 2 ] 76 #define H_BLANKING_LO (unsigned)block[ 3 ] 77 #define H_ACTIVE_HI UPPER_NIBBLE( (unsigned)block[ 4 ] ) 79 #define H_BLANKING_HI LOWER_NIBBLE( (unsigned)block[ 4 ] ) 82 #define V_ACTIVE_LO (unsigned)block[ 5 ] 83 #define V_BLANKING_LO (unsigned)block[ 6 ] 84 #define V_ACTIVE_HI UPPER_NIBBLE( (unsigned)block[ 7 ] ) 86 #define V_BLANKING_HI LOWER_NIBBLE( (unsigned)block[ [all...] |
/drivers/s390/block/ |
H A D | dasd_genhd.c | 29 int dasd_gendisk_alloc(struct dasd_block *block) argument 36 base = block->base; 76 gdp->queue = block->request_queue; 77 block->gdp = gdp; 78 set_capacity(block->gdp, 0); 79 add_disk(block->gdp); 86 void dasd_gendisk_free(struct dasd_block *block) argument 88 if (block->gdp) { 89 del_gendisk(block->gdp); 90 block 99 dasd_scan_partitions(struct dasd_block *block) argument 129 dasd_destroy_partitions(struct dasd_block *block) argument [all...] |
H A D | dasd_ioctl.c | 59 (loff_t)get_capacity(base->block->gdp) << 9); 83 * BIODASDDISABLE to disable accesses to the device via the block 103 static int dasd_ioctl_quiesce(struct dasd_block *block) argument 108 base = block->base; 124 static int dasd_ioctl_resume(struct dasd_block *block) argument 129 base = block->base; 139 dasd_schedule_block_bh(block); 146 static int dasd_ioctl_abortio(struct dasd_block *block) argument 152 base = block->base; 160 spin_lock_irqsave(&block 182 dasd_ioctl_allowio(struct dasd_block *block) argument 203 dasd_format(struct dasd_block *block, struct format_data_t *fdata) argument 304 dasd_ioctl_reset_profile(struct dasd_block *block) argument 313 dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) argument 357 dasd_ioctl_reset_profile(struct dasd_block *block) argument 362 dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) argument 371 dasd_ioctl_information(struct dasd_block *block, unsigned int cmd, void __user *argp) argument 486 dasd_ioctl_readall_cmb(struct dasd_block *block, unsigned int cmd, struct cmbdata __user *argp) argument 502 struct dasd_block *block; local [all...] |
H A D | dasd_proc.c | 38 struct dasd_block *block; local 44 if (device->block) 45 block = device->block; 58 if (block->gdp) 60 MAJOR(disk_devt(block->gdp)), 61 MINOR(disk_devt(block->gdp))); 65 if (block->gdp) 66 seq_printf(m, " is %-8s", block->gdp->disk_name); 89 if (dasd_check_blocksize(block [all...] |
H A D | dasd.c | 96 /* Get two pages for normal block device operations. */ 147 struct dasd_block *block; local 149 block = kzalloc(sizeof(*block), GFP_ATOMIC); 150 if (!block) 153 atomic_set(&block->open_count, -1); 155 spin_lock_init(&block->request_queue_lock); 156 atomic_set(&block->tasklet_scheduled, 0); 157 tasklet_init(&block->tasklet, 159 (unsigned long) block); 174 dasd_free_block(struct dasd_block *block) argument 249 struct dasd_block *block = device->block; local 332 struct dasd_block *block; local 386 struct dasd_block *block = device->block; local 684 dasd_profile_start(struct dasd_block *block, struct dasd_ccw_req *cqr, struct request *req) argument 792 dasd_profile_end(struct dasd_block *block, struct dasd_ccw_req *cqr, struct request *req) argument 1830 struct dasd_block *block; local 2507 struct dasd_block *block; local 2520 dasd_block_set_timer(struct dasd_block *block, int expires) argument 2532 dasd_block_clear_timer(struct dasd_block *block) argument 2557 __dasd_process_request_queue(struct dasd_block *block) argument 2675 __dasd_process_block_ccw_queue(struct dasd_block *block, struct list_head *final_queue) argument 2744 __dasd_block_start_head(struct dasd_block *block) argument 2793 dasd_block_tasklet(struct dasd_block *block) argument 2835 struct dasd_block *block = cqr->block; local 2854 dasd_flush_block_queue(struct dasd_block *block) argument 2909 dasd_schedule_block_bh(struct dasd_block *block) argument 2931 struct dasd_block *block; local 2955 struct dasd_block *block = req->q->queuedata; local 3021 dasd_alloc_queue(struct dasd_block *block) argument 3045 dasd_setup_queue(struct dasd_block *block) argument 3075 dasd_free_queue(struct dasd_block *block) argument 3086 dasd_flush_request_queue(struct dasd_block *block) argument 3298 struct dasd_block *block; local 3408 struct dasd_block *block; local [all...] |
/drivers/w1/ |
H A D | w1_netlink.c | 60 struct w1_cb_block *block; member in struct:w1_cb_node 68 * @block: block to calculate 74 static u16 w1_reply_len(struct w1_cb_block *block) argument 76 if (!block->cn) 78 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; 81 static void w1_unref_block(struct w1_cb_block *block) argument 83 if (atomic_sub_return(1, &block 101 w1_reply_make_space(struct w1_cb_block *block, u16 space) argument 114 w1_netlink_check_send(struct w1_cb_block *block) argument 129 w1_netlink_setup_msg(struct w1_cb_block *block, u32 ack) argument 152 w1_netlink_queue_cmd(struct w1_cb_block *block, struct w1_netlink_cmd *cmd) argument 179 w1_netlink_queue_status(struct w1_cb_block *block, struct w1_netlink_msg *req_msg, struct w1_netlink_cmd *req_cmd, int error) argument 255 struct w1_cb_block *block = dev->priv; local 562 struct w1_cb_block *block = NULL; local [all...] |
/drivers/gpio/ |
H A D | gpio-sch311x.c | 43 struct sch311x_gpio_block { /* one GPIO block runtime data */ 48 spinlock_t lock; /* lock for this GPIO block */ 145 struct sch311x_gpio_block *block = to_sch311x_gpio_block(chip); local 147 if (block->config_regs[offset] == 0) /* GPIO is not available */ 150 if (!request_region(block->runtime_reg + block->config_regs[offset], 153 block->runtime_reg + block->config_regs[offset]); 161 struct sch311x_gpio_block *block = to_sch311x_gpio_block(chip); local 163 if (block 171 struct sch311x_gpio_block *block = to_sch311x_gpio_block(chip); local 181 __sch311x_gpio_set(struct sch311x_gpio_block *block, unsigned offset, int value) argument 195 struct sch311x_gpio_block *block = to_sch311x_gpio_block(chip); local 204 struct sch311x_gpio_block *block = to_sch311x_gpio_block(chip); local 217 struct sch311x_gpio_block *block = to_sch311x_gpio_block(chip); local 234 struct sch311x_gpio_block *block; local [all...] |
/drivers/mtd/ |
H A D | nftlmount.c | 41 unsigned int block, boot_record_count = 0; local 61 for (block = 0; block < nftl->nb_blocks; block++) { 66 ret = mtd_read(mtd, block * nftl->EraseSize, SECTORSIZE, 75 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); 77 printk(KERN_WARNING "Further failures for this block will not be printed\n"); 86 block * nftl->EraseSize, nftl->mbd.mtd->index); 92 if ((ret = nftl_read_oob(mtd, block * nftl->EraseSize + 96 block * nft 303 NFTL_formatblock(struct NFTLrecord *nftl, int block) argument 375 unsigned int block, i, status; local 428 unsigned int length = 0, block = first_block; local 460 unsigned int block = first_block, block1; local 491 check_and_mark_free_block(struct NFTLrecord *nftl, int block) argument 552 get_fold_mark(struct NFTLrecord *nftl, unsigned int block) argument 569 unsigned int block, first_block, is_first_block; local [all...] |
H A D | inftlmount.c | 48 unsigned int i, block; local 68 for (block = 0; block < inftl->nb_blocks; block++) { 75 ret = mtd_read(mtd, block * inftl->EraseSize, SECTORSIZE, 83 printk(KERN_WARNING "INFTL: block read at 0x%x " 85 block * inftl->EraseSize, 89 "failures for this block will " 102 block * inftl->EraseSize + SECTORSIZE + 8, 107 "(err %d)\n", block * inft 372 INFTL_formatblock(struct INFTLrecord *inftl, int block) argument 440 unsigned int block = first_block, block1; local 513 int logical, block, i; local 540 unsigned int block, first_block, prev_block, last_block; local [all...] |
H A D | nftlcore.c | 41 /* maximum number of loops while examining next block, to have a 205 /* For a given Virtual Unit Chain: find or create a free block and 218 /* Scan for a free block */ 251 int block; local 270 512-byte block within the Chain. 278 for (block = 0; block < nftl->EraseSize / 512; block ++) { 280 (block * 512), 16 , &retlen, 282 if (block 535 NFTL_findwriteunit(struct NFTLrecord *nftl, unsigned block) argument 687 nftl_writeblock(struct mtd_blktrans_dev *mbd, unsigned long block, char *buffer) argument 714 nftl_readblock(struct mtd_blktrans_dev *mbd, unsigned long block, char *buffer) argument [all...] |
H A D | sm_ftl.c | 147 * Read LBA associated with block 148 * returns -1, if block is erased 159 /* First test for erased block */ 195 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) argument 199 WARN_ON(block >= ftl->zone_size); 202 if (block == -1) 205 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; 210 int *zone, int *block, int *boffset) 213 *block = do_div(offset, ftl->max_lba); 237 int zone, int block, in 209 sm_break_offset(struct sm_ftl *ftl, loff_t offset, int *zone, int *block, int *boffset) argument 236 sm_read_sector(struct sm_ftl *ftl, int zone, int block, int boffset, uint8_t *buffer, struct sm_oob *oob) argument 318 sm_write_sector(struct sm_ftl *ftl, int zone, int block, int boffset, uint8_t *buffer, struct sm_oob *oob) argument 365 sm_write_block(struct sm_ftl *ftl, uint8_t *buf, int zone, int block, int lba, unsigned long invalid_bitmap) argument 428 sm_mark_block_bad(struct sm_ftl *ftl, int zone, int block) argument 455 sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block, int put_free) argument 510 sm_check_block(struct sm_ftl *ftl, int zone, int block) argument 689 int block, boffset; local 762 uint16_t block; local 1016 int zone_num, block, boffset; local 1061 int error = 0, zone_num, block, boffset; local [all...] |
H A D | rfd_ftl.c | 56 struct block { struct 79 int reserved_block; /* block next up for reclaim */ 80 int current_block; /* block to write to */ 87 struct block *blocks; 94 struct block *block = &part->blocks[block_no]; local 97 block->offset = part->block_size * block_no; 100 block->state = BLOCK_UNUSED; 104 block->state = BLOCK_OK; 115 block 326 erase_block(struct partition *part, int block) argument 447 int block, best_block, score, old_sector_block; local 519 int block, stop; local 543 int rc, block; local 585 int block, offset, rc; local 620 find_free_sector(const struct partition *part, const struct block *block) argument 642 struct block *block; local [all...] |
H A D | mtdblock_ro.c | 30 unsigned long block, char *buf) 34 if (mtd_read(dev->mtd, (block * 512), 512, &retlen, buf)) 40 unsigned long block, char *buf) 44 if (mtd_write(dev->mtd, (block * 512), 512, &retlen, buf)) 99 MODULE_DESCRIPTION("Simple read-only block device emulation access to MTD devices"); 29 mtdblock_readsect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf) argument 39 mtdblock_writesect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf) argument
|
H A D | inftlcore.c | 42 * Maximum number of loops while examining next block, to have a 229 /* Scan for a free block */ 255 int block, silly; local 276 * 512-byte block within the Chain. 280 for (block = 0; block < inftl->EraseSize/SECTORSIZE; block ++) { 281 if ((BlockMap[block] != BLOCK_NIL) || 282 BlockDeleted[block]) 286 + (block * SECTORSIZ 473 INFTL_findwriteunit(struct INFTLrecord *inftl, unsigned block) argument 644 int block, silly; local 758 INFTL_deleteblock(struct INFTLrecord *inftl, unsigned block) argument 817 inftl_writeblock(struct mtd_blktrans_dev *mbd, unsigned long block, char *buffer) argument 865 inftl_readblock(struct mtd_blktrans_dev *mbd, unsigned long block, char *buffer) argument [all...] |
/drivers/block/mtip32xx/ |
H A D | Kconfig | 9 This enables the block driver for Micron PCIe SSDs.
|
/drivers/s390/ |
H A D | Makefile | 5 obj-y += cio/ block/ char/ crypto/ net/ scsi/ kvm/
|
/drivers/mmc/card/ |
H A D | Makefile | 6 mmc_block-objs := block.o queue.o
|
/drivers/video/fbdev/core/ |
H A D | fbmon.c | 100 static int edid_is_serial_block(unsigned char *block) argument 102 if ((block[0] == 0x00) && (block[1] == 0x00) && 103 (block[2] == 0x00) && (block[3] == 0xff) && 104 (block[4] == 0x00)) 110 static int edid_is_ascii_block(unsigned char *block) argument 112 if ((block[0] == 0x00) && (block[1] == 0x00) && 113 (block[ 120 edid_is_limits_block(unsigned char *block) argument 130 edid_is_monitor_block(unsigned char *block) argument 140 edid_is_timing_block(unsigned char *block) argument 151 unsigned char *block = edid + ID_MANUFACTURER_NAME, manufacturer[4]; local 296 parse_vendor_block(unsigned char *block, struct fb_monspecs *specs) argument 330 get_chroma(unsigned char *block, struct fb_monspecs *specs) argument 413 get_est_timing(unsigned char *block, struct fb_videomode *mode) argument 498 get_std_timing(unsigned char *block, struct fb_videomode *mode, int ver, int rev) argument 542 get_dst_timing(unsigned char *block, struct fb_videomode *mode, int ver, int rev) argument 553 get_detailed_timing(unsigned char *block, struct fb_videomode *mode) argument 607 unsigned char *block; local 684 unsigned char *block; local 764 unsigned char c, *block; local 883 unsigned char *block; local 925 unsigned char *block; local 994 unsigned char *block; local [all...] |
/drivers/md/ |
H A D | dm-bufio.h | 44 * Read a given block from disk. Returns pointer to data. Returns a 48 void *dm_bufio_read(struct dm_bufio_client *c, sector_t block, 55 void *dm_bufio_get(struct dm_bufio_client *c, sector_t block, 62 void *dm_bufio_new(struct dm_bufio_client *c, sector_t block, 71 sector_t block, unsigned n_blocks); 107 * block. dm_bufio_write_dirty_buffers is needed to commit the new block. 116 void dm_bufio_forget(struct dm_bufio_client *c, sector_t block);
|
/drivers/net/wireless/ath/wil6210/ |
H A D | ioctl.c | 50 wil_err(wil, "Requested block does not fit into memory: " 105 void *block; local 128 block = kmalloc(io.size, GFP_USER); 129 if (!block) 135 wil_memcpy_fromio_32(block, a, io.size); 136 wil_hex_dump_ioctl("Read ", block, io.size); 137 if (copy_to_user(io.block, block, io.size)) { 143 if (copy_from_user(block, io.block, i [all...] |
H A D | fw_inc.c | 206 const struct wil_fw_data_dwrite *block = d->data; local 209 if (size % sizeof(*block)) { 211 sizeof(*block), size); 214 n = size / sizeof(*block); 218 u32 m = le32_to_cpu(block[i].mask); 219 u32 v = le32_to_cpu(block[i].value); 222 FW_ADDR_CHECK(dst, block[i].addr, "address"); 228 le32_to_cpu(block[i].addr), y, x, v, m); 262 const struct wil_fw_data_gw *block = d->data; local 270 if (size < sizeof(*d) + sizeof(*block)) { 321 const struct wil_fw_data_gw4 *block = d->data; local [all...] |
/drivers/misc/ |
H A D | sram.c | 64 struct sram_reserve *rblocks, *block; local 93 * We need an additional block to mark the end of the memory region 103 block = &rblocks[0]; 117 "reserved block %s outside the sram area\n", 123 block->start = child_res.start - res->start; 124 block->size = resource_size(&child_res); 125 list_add_tail(&block->list, &reserve_list); 127 dev_dbg(&pdev->dev, "found reserved block 0x%x-0x%x\n", 128 block->start, 129 block [all...] |
/drivers/md/persistent-data/ |
H A D | dm-array.c | 35 * block location into the header (paranoia about ssds remapping areas by 92 * Returns a pointer to a value within an array block. 94 * index - The index into _this_ specific block. 108 * in an array block. 120 * Increment every value in an array block. 131 * Decrement every value in an array block. 142 * Each array block can hold this many values. 150 * Allocate a new array block. The caller will need to unlock block. 154 struct dm_block **block, struc 152 alloc_ablock(struct dm_array_info *info, size_t size_of_block, uint32_t max_entries, struct dm_block **block, struct array_block **ab) argument 220 get_ablock(struct dm_array_info *info, dm_block_t b, struct dm_block **block, struct array_block **ab) argument 236 unlock_ablock(struct dm_array_info *info, struct dm_block *block) argument 253 lookup_ablock(struct dm_array_info *info, dm_block_t root, unsigned index, struct dm_block **block, struct array_block **ab) argument 271 insert_ablock(struct dm_array_info *info, uint64_t index, struct dm_block *block, dm_block_t *root) argument 285 shadow_ablock(struct dm_array_info *info, dm_block_t *root, unsigned index, struct dm_block **block, struct array_block **ab) argument 343 struct dm_block *block; local 455 struct dm_block *block; local 494 struct dm_block *block; local 577 struct dm_block *block; local 692 struct dm_block *block; local 720 struct dm_block *block; local 783 struct dm_block *block; local [all...] |
/drivers/gpu/drm/udl/ |
H A D | udl_connector.c | 24 u8 *block; local 28 block = kmalloc(EDID_LENGTH, GFP_KERNEL); 29 if (block == NULL) 45 block[i] = rbuf[1]; 49 return block; 52 kfree(block); 70 * We only read the main block, but if the monitor reports extension
|
/drivers/gpu/drm/omapdrm/ |
H A D | omap_dmm_tiler.c | 330 int tiler_pin(struct tiler_block *block, struct page **pages, argument 335 ret = fill(&block->area, pages, npages, roll, wait); 338 tiler_unpin(block); 343 int tiler_unpin(struct tiler_block *block) argument 345 return fill(&block->area, NULL, 0, 0, false); 354 struct tiler_block *block = kzalloc(sizeof(*block), GFP_KERNEL); local 370 block->fmt = fmt; 372 ret = tcm_reserve_2d(containers[fmt], w, h, align, &block->area); 374 kfree(block); 388 struct tiler_block *block = kzalloc(sizeof(*block), GFP_KERNEL); local 411 tiler_release(struct tiler_block *block) argument 483 tiler_ssptr(struct tiler_block *block) argument 492 tiler_tsptr(struct tiler_block *block, uint32_t orient, uint32_t x, uint32_t y) argument 539 struct tiler_block *block, *_block; local 849 struct tiler_block *block; local [all...] |