Home
last modified time | relevance | path

Searched refs:block_count (Results 1 – 25 of 69) sorted by relevance

123

/Linux-v4.19/fs/hfsplus/
Dextents.c57 count = be32_to_cpu(ext->block_count); in hfsplus_ext_find_block()
72 count += be32_to_cpu(ext->block_count); in hfsplus_ext_block_count()
82 if (ext->block_count) in hfsplus_ext_lastblock()
84 return be32_to_cpu(ext->start_block) + be32_to_cpu(ext->block_count); in hfsplus_ext_lastblock()
299 be32_to_cpu(extent[i].block_count)); in hfsplus_dump_extent()
304 u32 alloc_block, u32 block_count) in hfsplus_add_extent() argument
311 count = be32_to_cpu(extent->block_count); in hfsplus_add_extent()
320 block_count += count; in hfsplus_add_extent()
321 extent->block_count = cpu_to_be32(block_count); in hfsplus_add_extent()
344 count = be32_to_cpu(extent->block_count); in hfsplus_free_extents()
[all …]
/Linux-v4.19/drivers/media/i2c/
Dsaa6588.c75 unsigned int block_count; member
174 s->block_count--; in block_from_buf()
177 dprintk("%d blocks total.\n", s->block_count); in block_from_buf()
203 rd_blocks = a->block_count; in read_from_buf()
205 if (rd_blocks > s->block_count) in read_from_buf()
206 rd_blocks = s->block_count; in read_from_buf()
228 s->data_available_for_read = (s->block_count > 0); in read_from_buf()
254 s->block_count++; in block_to_buf()
257 dprintk("%d blocks total.\n", s->block_count); in block_to_buf()
484 s->block_count = 0; in saa6588_probe()
/Linux-v4.19/drivers/input/rmi4/
Drmi_f34v7.c350 struct block_count *blkcount, in rmi_f34v7_parse_partition_table()
579 u16 block_count; in rmi_f34v7_check_ui_firmware_size() local
581 block_count = f34->v7.img.ui_firmware.size / f34->v7.block_size; in rmi_f34v7_check_ui_firmware_size()
582 f34->update_size += block_count; in rmi_f34v7_check_ui_firmware_size()
584 if (block_count != f34->v7.blkcount.ui_firmware) { in rmi_f34v7_check_ui_firmware_size()
587 block_count, f34->v7.blkcount.ui_firmware); in rmi_f34v7_check_ui_firmware_size()
596 u16 block_count; in rmi_f34v7_check_ui_config_size() local
598 block_count = f34->v7.img.ui_config.size / f34->v7.block_size; in rmi_f34v7_check_ui_config_size()
599 f34->update_size += block_count; in rmi_f34v7_check_ui_config_size()
601 if (block_count != f34->v7.blkcount.ui_config) { in rmi_f34v7_check_ui_config_size()
[all …]
Drmi_f34.h179 struct block_count { struct
224 struct block_count blkcount;
232 u8 block_count; member
285 struct block_count blkcount;
/Linux-v4.19/fs/udf/
Dballoc.c174 uint32_t block_count) in udf_bitmap_prealloc_blocks() argument
188 if (first_block + block_count > part_len) in udf_bitmap_prealloc_blocks()
189 block_count = part_len - first_block; in udf_bitmap_prealloc_blocks()
204 while (bit < (sb->s_blocksize << 3) && block_count > 0) { in udf_bitmap_prealloc_blocks()
207 block_count--; in udf_bitmap_prealloc_blocks()
213 } while (block_count > 0); in udf_bitmap_prealloc_blocks()
491 uint32_t first_block, uint32_t block_count) in udf_table_prealloc_blocks() argument
529 if (alloc_count > block_count) { in udf_table_prealloc_blocks()
530 alloc_count = block_count; in udf_table_prealloc_blocks()
672 uint32_t block_count) in udf_prealloc_blocks() argument
[all …]
/Linux-v4.19/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_top.c366 u32 *block_count) in cxd2880_read_block_err_t() argument
371 if (!tnrdmd || !block_err || !block_count) in cxd2880_read_block_err_t()
412 *block_count = 1U << (rdata[0] & 0x0f); in cxd2880_read_block_err_t()
414 if ((*block_count == 0) || (*block_err > *block_count)) in cxd2880_read_block_err_t()
422 u32 *block_count) in cxd2880_read_block_err_t2() argument
427 if (!tnrdmd || !block_err || !block_count) in cxd2880_read_block_err_t2()
467 *block_count = 1U << (rdata[0] & 0x0f); in cxd2880_read_block_err_t2()
469 if ((*block_count == 0) || (*block_err > *block_count)) in cxd2880_read_block_err_t2()
1064 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1065 c->block_count.stat[0].uvalue = 0; in cxd2880_set_frontend()
[all …]
/Linux-v4.19/block/partitions/
Dmac.h16 __be32 block_count; /* number of blocks in partition */ member
41 __be32 block_count; member
Dibm.c263 size = (label->cms.block_count - 1) * secperblk; in find_cms1_partitions()
278 size = label->cms.block_count * secperblk; in find_cms1_partitions()
/Linux-v4.19/drivers/media/common/siano/
Dsmsdvb-main.c154 c->block_count.len = n_layers; in smsdvb_stats_not_ready()
164 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
263 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
265 c->block_count.stat[0].uvalue += p->ets_packets + p->ts_packets; in smsdvb_update_per_slices()
318 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_dvb_stats()
320 c->block_count.stat[0].uvalue += p->total_ts_packets; in smsdvb_update_dvb_stats()
386 c->block_count.stat[0].uvalue = 0; in smsdvb_update_isdbt_stats()
388 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_isdbt_stats()
408 c->block_count.stat[i + 1].scale = FE_SCALE_COUNTER; in smsdvb_update_isdbt_stats()
410 c->block_count.stat[i + 1].uvalue += lr->total_ts_packets; in smsdvb_update_isdbt_stats()
[all …]
/Linux-v4.19/drivers/media/dvb-frontends/
Dlgdt330x.c303 p->block_count.len = 1; in lgdt330x_init()
304 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
692 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
719 p->block_count.stat[0].uvalue += 10000; in lgdt3302_read_status()
722 p->block_count.stat[0].scale = FE_SCALE_COUNTER; in lgdt3302_read_status()
725 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
798 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3303_read_status()
825 p->block_count.stat[0].uvalue += 10000; in lgdt3303_read_status()
828 p->block_count.stat[0].scale = FE_SCALE_COUNTER; in lgdt3303_read_status()
831 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3303_read_status()
Dmb86a20s.c760 memset(&c->block_count, 0, sizeof(c->block_count)); in mb86a20s_reset_counters()
1560 c->block_count.len = NUM_LAYERS + 1; in mb86a20s_stats_not_ready()
1574 c->block_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1586 u32 block_error = 0, block_count = 0; in mb86a20s_get_stats() local
1658 &block_count); in mb86a20s_get_stats()
1662 c->block_count.stat[1 + layer].scale = FE_SCALE_COUNTER; in mb86a20s_get_stats()
1663 c->block_count.stat[1 + layer].uvalue += block_count; in mb86a20s_get_stats()
1670 c->block_count.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_stats()
1689 t_block_count += c->block_count.stat[1 + layer].uvalue; in mb86a20s_get_stats()
1745 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in mb86a20s_get_stats()
[all …]
Dsi2165.c294 u32 block_count) in si2165_upload_firmware_block() argument
309 __func__, len, offset, block_count); in si2165_upload_firmware_block()
310 while (offset + 12 <= len && cur_block < block_count) { in si2165_upload_firmware_block()
313 __func__, len, offset, cur_block, block_count); in si2165_upload_firmware_block()
354 __func__, len, offset, cur_block, block_count); in si2165_upload_firmware_block()
381 u8 block_count; in si2165_upload_firmware() local
428 block_count = data[4]; in si2165_upload_firmware()
460 __func__, patch_version, block_count, crc_expected); in si2165_upload_firmware()
476 &offset, block_count); in si2165_upload_firmware()
Dmn88473.c455 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in mn88473_read_status()
456 c->block_count.stat[0].uvalue += utmp2; in mn88473_read_status()
459 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
550 c->block_count.len = 1; in mn88473_init()
551 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_init()
Dmn88472.c195 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in mn88472_read_status()
196 c->block_count.stat[0].uvalue += utmp2; in mn88472_read_status()
199 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88472_read_status()
680 c->block_count.len = 1; in mn88472_probe()
/Linux-v4.19/fs/reiserfs/
Dresize.c34 unsigned long int block_count, free_blocks; in reiserfs_resize() local
80 block_count = SB_BLOCK_COUNT(s); in reiserfs_resize()
221 free_blocks + (block_count_new - block_count - in reiserfs_resize()
/Linux-v4.19/drivers/memstick/core/
Dms_block.c162 if (msb->block_count - bitmap_weight(msb->used_blocks_bitmap, in msb_validate_used_block_bitmap()
163 msb->block_count) == total_free_blocks) in msb_validate_used_block_bitmap()
901 if (pba >= msb->block_count) { in msb_read_page()
958 if (pba > msb->block_count) { in msb_read_oob()
1015 if (pba >= msb->block_count || lba >= msb->logical_block_count) { in msb_write_block()
1098 msb->block_count, pba); in msb_get_free_block()
1101 msb->block_count, pba + 1); in msb_get_free_block()
1105 if (pba == msb->block_count || (msb_get_zone_from_pba(pba)) != zone) { in msb_get_free_block()
1213 msb->block_count = MS_BLOCK_MAX_BOOT_ADDR; in msb_read_boot_blocks()
1312 if (bad_block >= msb->block_count) { in msb_read_bad_block_table()
[all …]
/Linux-v4.19/drivers/uwb/
Dallocator.c226 int block_count = 0, start_block = 0; in uwb_rsv_fill_column_info() local
243 block_count++; in uwb_rsv_fill_column_info()
244 if ((block_count > safe_mas_in_row[start_block]) && in uwb_rsv_fill_column_info()
250 block_count = 1; in uwb_rsv_fill_column_info()
/Linux-v4.19/drivers/s390/block/
Ddasd_diag.c60 unsigned int block_count; member
184 private->iob.block_count = dreq->block_count; in dasd_start_diag()
411 private->iob.block_count = 1; in dasd_diag_check_device()
437 block->blocks = (unsigned long) label->block_count; in dasd_diag_check_device()
545 dreq->block_count = count; in dasd_diag_build_cp()
Ddasd_diag.h75 u32 block_count; member
/Linux-v4.19/include/media/i2c/
Dsaa6588.h29 unsigned int block_count; member
/Linux-v4.19/drivers/media/pci/bt8xx/
Dbt878.c143 bt->block_count = 1 << 4; in bt878_make_risc()
145 bt->line_count = bt->block_count; in bt878_make_risc()
178 (bt->block_count - in bt878_risc_program()
180 bt->block_count) | bt-> in bt878_risc_program()
Dbt878.h121 u32 block_count; member
/Linux-v4.19/drivers/mmc/host/
Dvub300.c72 u8 block_count[2]; member
1081 vub300->cmnd.head.block_count[0] = 0; in send_command()
1082 vub300->cmnd.head.block_count[1] = 0; in send_command()
1091 vub300->cmnd.head.block_count[0] = 0; in send_command()
1092 vub300->cmnd.head.block_count[1] = 0; in send_command()
1103 vub300->cmnd.head.block_count[0] = in send_command()
1105 vub300->cmnd.head.block_count[1] = in send_command()
1112 vub300->cmnd.head.block_count[0] = 0; in send_command()
1113 vub300->cmnd.head.block_count[1] = 0; in send_command()
1130 vub300->cmnd.head.block_count[0] = 0; in send_command()
[all …]
/Linux-v4.19/drivers/net/ethernet/
Dec_bhf.c263 unsigned block_count, i; in ec_bhf_setup_offsets() local
266 block_count = ioread8(priv->io + INFO_BLOCK_BLK_CNT); in ec_bhf_setup_offsets()
267 for (i = 0; i < block_count; i++) { in ec_bhf_setup_offsets()
273 if (i == block_count) { in ec_bhf_setup_offsets()
/Linux-v4.19/drivers/media/radio/si470x/
Dradio-si470x-common.c473 unsigned int block_count = 0; in si470x_fops_read() local
496 while (block_count < count) { in si470x_fops_read()
511 block_count++; in si470x_fops_read()

123