Lines Matching refs:buffer
7 * e1000_calculate_checksum - Calculate checksum for buffer
8 * @buffer: pointer to EEPROM
11 * Calculates the checksum for some buffer on a specified length. The
14 static u8 e1000_calculate_checksum(u8 *buffer, u32 length)
19 if (!buffer)
23 sum += buffer[i];
95 u32 *buffer = (u32 *)&hw->mng_cookie;
121 *(buffer + i) = E1000_READ_REG_ARRAY(hw, E1000_HOST_IF,
172 * @buffer: pointer to the host interface buffer
173 * @length: size of the buffer
174 * @offset: location in the buffer to write to
177 * This function writes the buffer content at the offset given on the host if.
179 * way. Also fills up the sum of the buffer in *buffer parameter.
181 static s32 e1000_mng_host_if_write(struct e1000_hw *hw, u8 *buffer,
185 u8 *bufptr = buffer;
244 * @buffer: pointer to the host interface
245 * @length: size of the buffer
249 s32 e1000e_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length)
266 /* Populate the host interface with the contents of "buffer". */
267 ret_val = e1000_mng_host_if_write(hw, buffer, length,