Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 34) sorted by relevance

12

/block/partitions/
Dacorn.c31 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, &sect); 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 …]
Dldm.c133 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 …]
Damiga.c31 unsigned char *data; in amiga_partition() local
42 data = read_part_sector(state, blk, &sect); 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, &sect); in amiga_partition()
86 if (!data) { in amiga_partition()
[all …]
Dsysv68.c54 unsigned char *data; in sysv68_partition() local
59 data = read_part_sector(state, 0, &sect); in sysv68_partition()
60 if (!data) in sysv68_partition()
63 b = (struct dkblk0 *)data; in sysv68_partition()
72 data = read_part_sector(state, i, &sect); in sysv68_partition()
73 if (!data) in sysv68_partition()
79 slice = (struct slice *)data; in sysv68_partition()
Dmsdos.c126 unsigned char *data; in parse_extended() local
141 data = read_part_sector(state, this_sector, &sect); 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, &sect); 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 …]
Dmac.c33 unsigned char *data; in mac_partition() local
54 data = read_part_sector(state, datasize / 512, &sect); 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, &sect); in mac_partition()
79 if (!data) in mac_partition()
81 part = (struct mac_partition *) (data + pos%512); in mac_partition()
Dibm.c73 unsigned char *data; in find_label() local
101 data = read_part_sector(state, testsect[i], &sect); 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, &sect); 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, &sect); in find_vol1_partitions()
[all …]
Dultrix.c16 unsigned char *data; in ultrix_partition() local
29 data = read_part_sector(state, (16384 - sizeof(*label))/512, &sect); in ultrix_partition()
30 if (!data) in ultrix_partition()
33 label = (struct ultrix_disklabel *)(data + 512 - sizeof(*label)); in ultrix_partition()
Dkarma.c18 unsigned char *data; in karma_partition() local
33 data = read_part_sector(state, 0, &sect); in karma_partition()
34 if (!data) in karma_partition()
37 label = (struct disklabel *)data; in karma_partition()
Dosf.c21 unsigned char *data; in osf_partition() local
55 data = read_part_sector(state, 0, &sect); in osf_partition()
56 if (!data) in osf_partition()
59 label = (struct disklabel *) (data+64); in osf_partition()
Daix.c106 unsigned char *data = read_part_sector(state, lba++, &sect); in read_lba() local
107 if (!data) in read_lba()
111 memcpy(buffer, data, copied); in read_lba()
Defi.c264 unsigned char *data = read_part_sector(state, n++, &sect); in read_lba() local
265 if (!data) in read_lba()
269 memcpy(buffer, data, copied); in read_lba()
/block/
Dblk-mq-tag.c258 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 …]
Dblk-mq.h40 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()
Dblk-softirq.c40 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()
Dcompat_ioctl.c125 __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 …]
Dblk-mq-cpu.c31 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()
Dblk-mq.c210 __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 …]
Dt10-pi.c34 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()
Dioprio.c64 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()
DKconfig59 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.
Dscsi_ioctl.c439 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()
Dbio.c528 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 …]
Dblk-timeout.c130 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()
Dbounce.c75 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()

12