Home
last modified time | relevance | path

Searched refs:count (Results 1 – 19 of 19) sorted by relevance

/block/partitions/
Daix.c96 size_t count) in read_lba() argument
100 if (!buffer || lba + count / 512 > last_lba(state->bdev)) in read_lba()
103 while (count) { in read_lba()
109 if (copied > count) in read_lba()
110 copied = count; in read_lba()
115 count -= copied; in read_lba()
131 size_t count = sizeof(struct pvd); in alloc_pvd() local
134 p = kmalloc(count, GFP_KERNEL); in alloc_pvd()
138 if (read_lba(state, lba, (u8 *) p, count) < count) { in alloc_pvd()
156 size_t count = sizeof(struct lvname) * LVM_MAXLVS; in alloc_lvn() local
[all …]
Defi.c238 u64 lba, u8 *buffer, size_t count) in read_lba() argument
247 while (count) { in read_lba()
253 if (copied > count) in read_lba()
254 copied = count; in read_lba()
259 count -= copied; in read_lba()
276 size_t count; in alloc_read_gpt_entries() local
282 count = (size_t)le32_to_cpu(gpt->num_partition_entries) * in alloc_read_gpt_entries()
284 if (!count) in alloc_read_gpt_entries()
286 pte = kmalloc(count, GFP_KERNEL); in alloc_read_gpt_entries()
291 (u8 *) pte, count) < count) { in alloc_read_gpt_entries()
/block/
Dbadblocks.c76 hi = bb->count; in badblocks_check()
137 for (i = 0; i < bb->count ; i++) { in badblocks_update_acked()
189 hi = bb->count; in badblocks_set()
235 if (sectors && hi < bb->count) { in badblocks_set()
265 if (sectors == 0 && hi < bb->count) { in badblocks_set()
279 (bb->count - hi - 1) * 8); in badblocks_set()
280 bb->count--; in badblocks_set()
287 if (bb->count >= MAX_BADBLOCKS) { in badblocks_set()
295 (bb->count - hi) * 8); in badblocks_set()
296 bb->count++; in badblocks_set()
[all …]
Dblk-sysfs.c34 queue_var_store(unsigned long *var, const char *page, size_t count) in queue_var_store() argument
45 return count; in queue_var_store()
67 queue_requests_store(struct request_queue *q, const char *page, size_t count) in queue_requests_store() argument
75 ret = queue_var_store(&nr, page, count); in queue_requests_store()
98 queue_ra_store(struct request_queue *q, const char *page, size_t count) in queue_ra_store() argument
101 ssize_t ret = queue_var_store(&ra_kb, page, count); in queue_ra_store()
183 const char *page, size_t count) in queue_discard_max_store() argument
186 ssize_t ret = queue_var_store(&max_discard, page, count); in queue_discard_max_store()
230 queue_max_sectors_store(struct request_queue *q, const char *page, size_t count) in queue_max_sectors_store() argument
235 ssize_t ret = queue_var_store(&max_sectors_kb, page, count); in queue_max_sectors_store()
[all …]
Dblk-mq-debugfs.c148 size_t count, loff_t *ppos) in queue_state_write() argument
161 if (count >= sizeof(opbuf)) { in queue_state_write()
166 if (copy_from_user(opbuf, buf, count)) in queue_state_write()
181 return count; in queue_state_write()
196 size_t count, loff_t *ppos) in queue_write_hint_store() argument
204 return count; in queue_write_hint_store()
545 size_t count, loff_t *ppos) in hctx_io_poll_write() argument
550 return count; in hctx_io_poll_write()
571 size_t count, loff_t *ppos) in hctx_dispatched_write() argument
578 return count; in hctx_dispatched_write()
[all …]
Dblk-integrity.c234 size_t count) in integrity_attr_store() argument
243 ret = entry->store(bi, page, count); in integrity_attr_store()
268 const char *page, size_t count) in integrity_verify_store() argument
278 return count; in integrity_verify_store()
287 const char *page, size_t count) in integrity_generate_store() argument
297 return count; in integrity_generate_store()
Dblk-timeout.c49 const char *buf, size_t count) in part_timeout_store() argument
54 if (count) { in part_timeout_store()
65 return count; in part_timeout_store()
Dblk-mq-sched.c91 unsigned int count = 0; in blk_mq_dispatch_hctx_list() local
98 count++; in blk_mq_dispatch_hctx_list()
103 return blk_mq_dispatch_rq_list(hctx, &hctx_list, count); in blk_mq_dispatch_hctx_list()
124 int count = 0; in __blk_mq_do_dispatch_sched() local
167 } while (++count < max_dispatch); in __blk_mq_do_dispatch_sched()
169 if (!count) { in __blk_mq_do_dispatch_sched()
185 dispatched = blk_mq_dispatch_rq_list(hctx, &rq_list, count); in __blk_mq_do_dispatch_sched()
Dblk-mq-tag.c401 unsigned *count = data; in blk_mq_tagset_count_completed_rqs() local
404 (*count)++; in blk_mq_tagset_count_completed_rqs()
418 unsigned count = 0; in blk_mq_tagset_wait_completed_request() local
421 blk_mq_tagset_count_completed_rqs, &count); in blk_mq_tagset_wait_completed_request()
422 if (!count) in blk_mq_tagset_wait_completed_request()
Dblk-core.c1095 unsigned int count; in submit_bio() local
1098 count = queue_logical_block_size(bio->bi_disk->queue) >> 9; in submit_bio()
1100 count = bio_sectors(bio); in submit_bio()
1103 count_vm_events(PGPGOUT, count); in submit_bio()
1106 count_vm_events(PGPGIN, count); in submit_bio()
1115 bio_devname(bio, b), count); in submit_bio()
Delevator.c760 size_t count) in elv_iosched_store() argument
765 return count; in elv_iosched_store()
769 return count; in elv_iosched_store()
Dblk.h231 const char *buf, size_t count);
320 const char *page, size_t count);
Dbfq-iosched.c6643 __FUNC(struct elevator_queue *e, const char *page, size_t count) \
6662 return count; \
6675 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count)\
6689 return count; \
6696 const char *page, size_t count) in bfq_max_budget_store() argument
6716 return count; in bfq_max_budget_store()
6724 const char *page, size_t count) in bfq_timeout_sync_store() argument
6743 return count; in bfq_timeout_sync_store()
6747 const char *page, size_t count) in bfq_strict_guarantees_store() argument
6765 return count; in bfq_strict_guarantees_store()
[all …]
Dgenhd.c1397 const char *buf, size_t count) in part_fail_store() argument
1402 if (count > 0 && sscanf(buf, "%d", &i) > 0) in part_fail_store()
1405 return count; in part_fail_store()
2230 const char *buf, size_t count) in disk_events_poll_msecs_store() argument
2235 if (!count || !sscanf(buf, "%ld", &intv)) in disk_events_poll_msecs_store()
2248 return count; in disk_events_poll_msecs_store()
Dkyber-iosched.c870 const char *page, size_t count) \
882 return count; \
Dmq-deadline-main.c889 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count) \
902 return count; \
Dblk-map.c138 unsigned int len = iter->count; in bio_copy_user_iov()
Dblk-throttle.c2501 const char *page, size_t count) in blk_throtl_sample_time_store() argument
2514 return count; in blk_throtl_sample_time_store()
Dbio.c975 len = min_t(size_t, bv->bv_len - iter->iov_offset, iter->count); in __bio_iov_bvec_add_pages()