Lines Matching refs:data_bytes_per_chunk

65 		chunk_base = ((loff_t) chunk) * dev->data_bytes_per_chunk;  in yaffs_addr_to_chunk()
161 return kmalloc(dev->data_bytes_per_chunk, GFP_NOFS); in yaffs_get_temp_buffer()
323 if (!yaffs_check_ff(data, dev->data_bytes_per_chunk) || in yaffs_check_chunk_erased()
346 if (memcmp(buffer, data, dev->data_bytes_per_chunk) || in yaffs_verify_chunk_written()
624 memset(buffer, 0xff, dev->data_bytes_per_chunk); in yaffs_retire_block()
694 return ((loff_t) YAFFS_MAX_CHUNK_ID) * dev->data_bytes_per_chunk; in yaffs_max_file_size()
2918 memset(buffer, 0, in->my_dev->data_bytes_per_chunk); in yaffs_rd_data_obj()
3068 int x_size = dev->data_bytes_per_chunk - sizeof(struct yaffs_obj_hdr); in yaffs_apply_xattrib_mod()
3093 int x_size = dev->data_bytes_per_chunk - sizeof(struct yaffs_obj_hdr); in yaffs_do_xattrib_fetch()
3296 memset(buffer, 0xff, dev->data_bytes_per_chunk); in yaffs_update_oh()
3431 if ((start + n) < dev->data_bytes_per_chunk) in yaffs_file_rd()
3434 n_copy = dev->data_bytes_per_chunk - start; in yaffs_file_rd()
3442 if (cache || n_copy != dev->data_bytes_per_chunk || in yaffs_file_rd()
3513 dev->data_bytes_per_chunk + start != offset || in yaffs_do_file_wr()
3514 start >= dev->data_bytes_per_chunk) { in yaffs_do_file_wr()
3525 if ((start + n) < dev->data_bytes_per_chunk) { in yaffs_do_file_wr()
3535 dev->data_bytes_per_chunk); in yaffs_do_file_wr()
3544 if (n_bytes_read > dev->data_bytes_per_chunk) in yaffs_do_file_wr()
3545 n_bytes_read = dev->data_bytes_per_chunk; in yaffs_do_file_wr()
3552 n_writeback > dev->data_bytes_per_chunk) in yaffs_do_file_wr()
3556 n_copy = dev->data_bytes_per_chunk - start; in yaffs_do_file_wr()
3557 n_writeback = dev->data_bytes_per_chunk; in yaffs_do_file_wr()
3560 if (n_copy != dev->data_bytes_per_chunk || in yaffs_do_file_wr()
3638 dev->data_bytes_per_chunk, 0); in yaffs_do_file_wr()
3687 yaffs_addr_to_chunk(dev, new_size + dev->data_bytes_per_chunk - 1, in yaffs_prune_chunks()
3738 dev->data_bytes_per_chunk - new_partial); in yaffs_resize_file_down()
4428 memset(buffer, 0, obj->my_dev->data_bytes_per_chunk); in yaffs_get_obj_name()
4460 return obj->my_dev->data_bytes_per_chunk; in yaffs_get_obj_length()
4647 dev->data_bytes_per_chunk = in yaffs_guts_initialise()
4651 dev->data_bytes_per_chunk = dev->param.total_bytes_per_chunk; in yaffs_guts_initialise()
4671 x = dev->data_bytes_per_chunk; in yaffs_guts_initialise()