/block/partitions/ |
D | acorn.c | 31 adfs_partition(struct parsed_partitions *state, char *name, char *data, in adfs_partition() argument 37 if (adfs_checkbblk(data)) in adfs_partition() 40 dr = (struct adfs_discrecord *)(data + 0x1c0); in adfs_partition() 170 unsigned char *data; in adfspart_check_CUMANA() local 192 data = read_part_sector(state, start_blk * 2 + 6, §); in adfspart_check_CUMANA() 193 if (!data) in adfspart_check_CUMANA() 199 dr = adfs_partition(state, name, data, first_sector, slot++); in adfspart_check_CUMANA() 205 nr_sects = (data[0x1fd] + (data[0x1fe] << 8)) * in adfspart_check_CUMANA() 217 switch (data[0x1fc] & 15) { in adfspart_check_CUMANA() 260 unsigned char *data; in adfspart_check_ADFS() local [all …]
|
D | ldm.c | 133 static bool ldm_parse_privhead(const u8 *data, struct privhead *ph) in ldm_parse_privhead() argument 137 BUG_ON(!data || !ph); in ldm_parse_privhead() 138 if (MAGIC_PRIVHEAD != get_unaligned_be64(data)) { in ldm_parse_privhead() 143 ph->ver_major = get_unaligned_be16(data + 0x000C); in ldm_parse_privhead() 144 ph->ver_minor = get_unaligned_be16(data + 0x000E); in ldm_parse_privhead() 145 ph->logical_disk_start = get_unaligned_be64(data + 0x011B); in ldm_parse_privhead() 146 ph->logical_disk_size = get_unaligned_be64(data + 0x0123); in ldm_parse_privhead() 147 ph->config_start = get_unaligned_be64(data + 0x012B); in ldm_parse_privhead() 148 ph->config_size = get_unaligned_be64(data + 0x0133); in ldm_parse_privhead() 170 if (!ldm_parse_guid(data + 0x0030, ph->disk_id)) { in ldm_parse_privhead() [all …]
|
D | amiga.c | 31 unsigned char *data; in amiga_partition() local 42 data = read_part_sector(state, blk, §); in amiga_partition() 43 if (!data) { in amiga_partition() 50 if (*(__be32 *)data != cpu_to_be32(IDNAME_RIGIDDISK)) in amiga_partition() 53 rdb = (struct RigidDiskBlock *)data; in amiga_partition() 54 if (checksum_block((__be32 *)data, be32_to_cpu(rdb->rdb_SummedLongs) & 0x7F) == 0) in amiga_partition() 59 *(__be32 *)(data+0xdc) = 0; in amiga_partition() 60 if (checksum_block((__be32 *)data, in amiga_partition() 85 data = read_part_sector(state, blk, §); in amiga_partition() 86 if (!data) { in amiga_partition() [all …]
|
D | sysv68.c | 54 unsigned char *data; in sysv68_partition() local 59 data = read_part_sector(state, 0, §); in sysv68_partition() 60 if (!data) in sysv68_partition() 63 b = (struct dkblk0 *)data; in sysv68_partition() 72 data = read_part_sector(state, i, §); in sysv68_partition() 73 if (!data) in sysv68_partition() 79 slice = (struct slice *)data; in sysv68_partition()
|
D | msdos.c | 126 unsigned char *data; in parse_extended() local 141 data = read_part_sector(state, this_sector, §); in parse_extended() 142 if (!data) in parse_extended() 145 if (!msdos_magic_present(data + 510)) in parse_extended() 148 p = (struct partition *) (data + 0x1be); in parse_extended() 404 unsigned char *data; in parse_minix() local 408 data = read_part_sector(state, offset, §); in parse_minix() 409 if (!data) in parse_minix() 412 p = (struct partition *)(data + 0x1be); in parse_minix() 417 if (msdos_magic_present(data + 510) && in parse_minix() [all …]
|
D | mac.c | 33 unsigned char *data; in mac_partition() local 54 data = read_part_sector(state, datasize / 512, §); in mac_partition() 55 if (!data) in mac_partition() 60 part = (struct mac_partition *) (data + partoffset); in mac_partition() 78 data = read_part_sector(state, pos/512, §); in mac_partition() 79 if (!data) in mac_partition() 81 part = (struct mac_partition *) (data + pos%512); in mac_partition()
|
D | ibm.c | 73 unsigned char *data; in find_label() local 101 data = read_part_sector(state, testsect[i], §); in find_label() 102 if (data == NULL) in find_label() 104 memcpy(label, data, sizeof(*label)); in find_label() 105 memcpy(temp, data, 4); in find_label() 142 unsigned char *data; in find_vol1_partitions() local 156 data = read_part_sector(state, blk * secperblk, §); in find_vol1_partitions() 157 while (data != NULL) { in find_vol1_partitions() 158 memcpy(&f1, data, sizeof(struct vtoc_format1_label)); in find_vol1_partitions() 166 data = read_part_sector(state, blk * secperblk, §); in find_vol1_partitions() [all …]
|
D | ultrix.c | 16 unsigned char *data; in ultrix_partition() local 29 data = read_part_sector(state, (16384 - sizeof(*label))/512, §); in ultrix_partition() 30 if (!data) in ultrix_partition() 33 label = (struct ultrix_disklabel *)(data + 512 - sizeof(*label)); in ultrix_partition()
|
D | karma.c | 18 unsigned char *data; in karma_partition() local 33 data = read_part_sector(state, 0, §); in karma_partition() 34 if (!data) in karma_partition() 37 label = (struct disklabel *)data; in karma_partition()
|
D | osf.c | 21 unsigned char *data; in osf_partition() local 55 data = read_part_sector(state, 0, §); in osf_partition() 56 if (!data) in osf_partition() 59 label = (struct disklabel *) (data+64); in osf_partition()
|
D | aix.c | 106 unsigned char *data = read_part_sector(state, lba++, §); in read_lba() local 107 if (!data) in read_lba() 111 memcpy(buffer, data, copied); in read_lba()
|
D | efi.c | 264 unsigned char *data = read_part_sector(state, n++, §); in read_lba() local 265 if (!data) in read_lba() 269 memcpy(buffer, data, copied); in read_lba()
|
/block/ |
D | blk-mq-tag.c | 258 static int bt_get(struct blk_mq_alloc_data *data, in bt_get() argument 271 if (!gfpflags_allow_blocking(data->gfp)) in bt_get() 299 blk_mq_put_ctx(data->ctx); in bt_get() 303 data->ctx = blk_mq_get_ctx(data->q); in bt_get() 304 data->hctx = data->q->mq_ops->map_queue(data->q, in bt_get() 305 data->ctx->cpu); in bt_get() 306 if (data->reserved) { in bt_get() 307 bt = &data->hctx->tags->breserved_tags; in bt_get() 309 last_tag = &data->ctx->last_tag; in bt_get() 310 hctx = data->hctx; in bt_get() [all …]
|
D | blk-mq.h | 40 void *data); 107 static inline void blk_mq_set_alloc_data(struct blk_mq_alloc_data *data, in blk_mq_set_alloc_data() argument 112 data->q = q; in blk_mq_set_alloc_data() 113 data->gfp = gfp; in blk_mq_set_alloc_data() 114 data->reserved = reserved; in blk_mq_set_alloc_data() 115 data->ctx = ctx; in blk_mq_set_alloc_data() 116 data->hctx = hctx; in blk_mq_set_alloc_data()
|
D | blk-softirq.c | 40 static void trigger_softirq(void *data) in trigger_softirq() argument 42 struct request *rq = data; in trigger_softirq() 62 struct call_single_data *data = &rq->csd; in raise_blk_irq() local 64 data->func = trigger_softirq; in raise_blk_irq() 65 data->info = rq; in raise_blk_irq() 66 data->flags = 0; in raise_blk_irq() 68 smp_call_function_single_async(cpu, data); in raise_blk_irq()
|
D | compat_ioctl.c | 125 __u32 data; in compat_cdrom_read_audio() local 137 if (get_user(data, &cdread_audio32->buf)) in compat_cdrom_read_audio() 139 datap = compat_ptr(data); in compat_cdrom_read_audio() 152 u32 data; in compat_cdrom_generic_command() local 160 get_user(data, &cgc32->buffer) || in compat_cdrom_generic_command() 161 put_user(compat_ptr(data), &cgc->buffer) || in compat_cdrom_generic_command() 164 get_user(data, &cgc32->sense) || in compat_cdrom_generic_command() 165 put_user(compat_ptr(data), &cgc->sense) || in compat_cdrom_generic_command() 172 get_user(data, &cgc32->reserved[0]) || in compat_cdrom_generic_command() 173 put_user(compat_ptr(data), &cgc->reserved[0])) in compat_cdrom_generic_command() [all …]
|
D | blk-mq-cpu.c | 31 ret = notify->notify(notify->data, action, cpu); in blk_mq_main_cpu_notify() 58 void *data) in blk_mq_init_cpu_notifier() argument 61 notifier->data = data; in blk_mq_init_cpu_notifier()
|
D | blk-mq.c | 210 __blk_mq_alloc_request(struct blk_mq_alloc_data *data, int rw) in __blk_mq_alloc_request() argument 215 tag = blk_mq_get_tag(data); in __blk_mq_alloc_request() 217 rq = data->hctx->tags->rqs[tag]; in __blk_mq_alloc_request() 219 if (blk_mq_tag_busy(data->hctx)) { in __blk_mq_alloc_request() 221 atomic_inc(&data->hctx->nr_active); in __blk_mq_alloc_request() 225 blk_mq_rq_ctx_init(data->q, data->ctx, rq, rw); in __blk_mq_alloc_request() 328 static void __blk_mq_complete_request_remote(void *data) in __blk_mq_complete_request_remote() argument 330 struct request *rq = data; in __blk_mq_complete_request_remote() 597 struct blk_mq_timeout_data *data = priv; in blk_mq_check_expired() local 616 } else if (!data->next_set || time_after(data->next, rq->deadline)) { in blk_mq_check_expired() [all …]
|
D | t10-pi.c | 34 static __be16 t10_pi_crc_fn(void *data, unsigned int len) in t10_pi_crc_fn() argument 36 return cpu_to_be16(crc_t10dif(data, len)); in t10_pi_crc_fn() 39 static __be16 t10_pi_ip_fn(void *data, unsigned int len) in t10_pi_ip_fn() argument 41 return (__force __be16)ip_compute_csum(data, len); in t10_pi_ip_fn()
|
D | ioprio.c | 64 int data = IOPRIO_PRIO_DATA(ioprio); in SYSCALL_DEFINE3() local 77 if (data >= IOPRIO_BE_NR || data < 0) in SYSCALL_DEFINE3() 84 if (data) in SYSCALL_DEFINE3()
|
D | Kconfig | 59 with bidirectional data transfers and generic request/response 79 bool "Block layer data integrity support" 83 stored/retrieved to help protect the data. The block layer 84 data integrity option provides hooks which can be used by 85 filesystems to ensure better data integrity.
|
D | scsi_ioctl.c | 439 if (get_user(opcode, sic->data)) in sg_scsi_ioctl() 464 if (copy_from_user(rq->cmd, sic->data, cmdlen)) in sg_scsi_ioctl() 467 if (in_len && copy_from_user(buffer, sic->data + cmdlen, in_len)) in sg_scsi_ioctl() 517 if (copy_to_user(sic->data, rq->sense, bytes)) in sg_scsi_ioctl() 521 if (copy_to_user(sic->data, buffer, out_len)) in sg_scsi_ioctl() 537 int cmd, int data) in __blk_send_generic() argument 548 rq->cmd[4] = data; in __blk_send_generic() 557 struct gendisk *bd_disk, int data) in blk_send_start_stop() argument 559 return __blk_send_generic(q, bd_disk, GPCMD_START_STOP_UNIT, data); in blk_send_start_stop()
|
D | bio.c | 528 char *data = bvec_kmap_irq(&bv, &flags); in zero_fill_bio() local 529 memset(data, 0, bv.bv_len); in zero_fill_bio() 531 bvec_kunmap_irq(data, &flags); in zero_fill_bio() 1444 struct bio *bio_map_kern(struct request_queue *q, void *data, unsigned int len, in bio_map_kern() argument 1447 unsigned long kaddr = (unsigned long)data; in bio_map_kern() 1468 if (bio_add_pc_page(q, bio, virt_to_page(data), bytes, in bio_map_kern() 1475 data += bytes; in bio_map_kern() 1516 struct bio *bio_copy_kern(struct request_queue *q, void *data, unsigned int len, in bio_copy_kern() argument 1519 unsigned long kaddr = (unsigned long)data; in bio_copy_kern() 1523 void *p = data; in bio_copy_kern() [all …]
|
D | blk-timeout.c | 130 void blk_rq_timed_out_timer(unsigned long data) in blk_rq_timed_out_timer() argument 132 struct request_queue *q = (struct request_queue *) data; in blk_rq_timed_out_timer()
|
D | bounce.c | 75 static void *mempool_alloc_pages_isa(gfp_t gfp_mask, void *data) in mempool_alloc_pages_isa() argument 77 return mempool_alloc_pages(gfp_mask | GFP_DMA, data); in mempool_alloc_pages_isa()
|