Lines Matching defs:size

105 static int usb4_do_read_data(u16 address, void *buf, size_t size,
118 nbytes = min_t(size_t, size + offset, USB4_DATA_DWORDS * 4);
133 size -= nbytes;
136 } while (size > 0);
141 static int usb4_do_write_data(unsigned int address, const void *buf, size_t size,
151 u32 nbytes = min_t(u32, size, USB4_DATA_DWORDS * 4);
167 size -= nbytes;
170 } while (size > 0);
371 * @size: Number of bytes to read from DROM
378 size_t size)
380 return usb4_do_read_data(address, buf, size,
503 * usb4_switch_nvm_sector_size() - Return router NVM sector size
507 * sector size in bytes. If NVM operations are not supported returns
562 * @size: How many bytes to read
568 size_t size)
570 return usb4_do_read_data(address, buf, size,
619 * @size: Size of @buf in bytes
625 const void *buf, size_t size)
633 return usb4_do_write_data(address, buf, size,
1008 u8 index, u8 reg, void *buf, u8 size)
1010 size_t dwords = DIV_ROUND_UP(size, 4);
1018 val |= size << PORT_CS_1_LENGTH_SHIFT;
1048 u8 index, u8 reg, const void *buf, u8 size)
1050 size_t dwords = DIV_ROUND_UP(size, 4);
1064 val |= size << PORT_CS_1_LENGTH_SHIFT;
1167 * @size: Number of bytes to read
1176 u8 size)
1179 size);
1188 * @size: Number of bytes to write
1196 const void *buf, u8 size)
1199 size);
1228 * usb4_port_retimer_nvm_sector_size() - Read retimer NVM sector size
1232 * Reads NVM sector size (in bytes) of a retimer at @index. This
1234 * upgrade for example. Returns sector size in bytes or negative errno
1301 * @size: Size in bytes how much to write
1303 * Writes @size bytes from @buf to the retimer NVM. Used for NVM
1309 const void *buf, size_t size)
1318 return usb4_do_write_data(address, buf, size,
1425 * @size: Number of bytes to read
1432 unsigned int address, void *buf, size_t size)
1436 return usb4_do_read_data(address, buf, size,