# US 2024/0201892 A1 · Data storage device and method for dynamically determining a buffer size

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0201892 A1
- Document ID: US20240201892A1
- Status: Published application
- Kind: A1
- Application number: 18/218,014
- Filed: 2023-07-04
- Published: 2024-06-20
- Earliest claimed: 2022-12-14
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Po-Wei Wu
- Web page: https://patentgrep.com/patent/US20240201892A1

## CPC

- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/06: Digital input from, or digital output to, record carriers {, e.g. RAID, emulated record carriers or networked record carriers}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data storage device includes a memory device and a memory controller. The memory device has a corresponding total storage capacity and includes multiple memory blocks. The total storage capacity is set to a maximum storage capacity provided by the memory blocks by default. The memory blocks include one or more predetermined memory blocks configured as a buffer to receive data from a host device. The memory controller is coupled to the memory device to access the memory device. In response to setting of a maximum amount of write data, the memory controller determines a value of the total storage capacity according to the maximum amount of write data, and determines a number of said one or more predetermined memory blocks according to the value of the total storage capacity and the maximum storage capacity.

## Claims

### Claim 1

A data storage device, comprising:
a memory device, having a corresponding total storage capacity and comprising a plurality of memory blocks, wherein a value of the total storage capacity is set to a maximum storage capacity provided by the memory blocks by default and the memory blocks comprise one or more predetermined memory blocks configured to receive data from a host device; and
a memory controller, coupled to the memory device to access the memory device, wherein in response to a setting of a maximum amount of write data, the memory controller determines the value of the total storage capacity according to the maximum amount of write data, and determines a number of said one or more predetermined memory blocks according to the value of the total storage capacity and the maximum storage capacity.

### Claim 2 (depends on 1)

The data storage device of claim 1, wherein the maximum amount of write data is set by a user.

### Claim 3 (depends on 1)

The data storage device of claim 1, wherein the memory controller receives a current setting value of the maximum amount of write data from the host device.

### Claim 4 (depends on 1)

The data storage device of claim 1, wherein after determining the value of the total storage capacity according to the maximum amount of write data, the memory controller replies to the host device with the value of the total storage capacity instead of a value corresponding to the maximum storage capacity in response to a read capacity command received from the host device.

### Claim 5 (depends on 4)

The data storage device of claim 4, wherein the value of the total storage capacity is smaller than the value corresponding to the maximum storage capacity.

### Claim 6 (depends on 4)

The data storage device of claim 4, wherein after replying to the host device with the value of the total storage capacity, the value of the total storage capacity is displayed on a user interface of the host device as a maximum of storage capacity of the data storage device identified by the host device.

### Claim 7 (depends on 1)

The data storage device of claim 1, wherein the memory controller repeatedly determines the value of the total storage capacity according to a current setting value of the maximum amount of write data and dynamically determines the number of said one or more predetermined memory blocks according to the value of the total storage capacity and the maximum storage capacity.

### Claim 8 (depends on 1)

The data storage device of claim 1, wherein said one or more predetermined memory blocks is/are Single-Level Cell (SLC) memory block(s).

### Claim 9

A method for dynamically determining a buffer size, comprising:
determining a value of a total storage capacity corresponding to a memory device in response to a setting of a maximum amount of write data, wherein the memory device comprises a plurality of memory blocks, the memory blocks comprise one or more predetermined memory blocks configured as a buffer to receive data from a host device and the maximum amount of write data is set by a user; and
determining a number of said one or more predetermined memory blocks according to the value of the total storage capacity and a maximum storage capacity, wherein the maximum storage capacity is a maximum of storage capacity provided by the memory blocks.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
receiving a current setting value of the maximum amount of write data from the host device.

### Claim 11 (depends on 9)

The method of claim 9, further comprising:
replying to the host device with the value of the total storage capacity instead of a value corresponding to the maximum storage capacity in response to a read capacity command received from the host device.

### Claim 12 (depends on 11)

The method of claim 11, wherein the value of the total storage capacity is smaller than the value corresponding to the maximum storage capacity.

### Claim 13 (depends on 11)

The method of claim 11, further comprising:
displaying the value of the total storage capacity on a user interface of the host device as a maximum of storage capacity of the data storage device identified by the host device.

### Claim 14 (depends on 9)

The method of claim 9, wherein the value of the total storage capacity is repeatedly determined according to a current setting value of the maximum amount of write data and the number of said one or more predetermined memory blocks is dynamically determined according to the value of the total storage capacity and the maximum storage capacity.

### Claim 15 (depends on 9)

The method of claim 9, wherein said one or more predetermined memory blocks is/are Single-Level Cell (SLC) memory block(s).
