Lines Matching refs:eeprom
754 struct mwifiex_ds_read_eeprom *eeprom; in mwifiex_ret_reg_access() local
760 struct host_cmd_ds_802_11_eeprom_access *eeprom; in mwifiex_ret_reg_access() member
767 eeprom = data_buf; in mwifiex_ret_reg_access()
796 r.eeprom = &resp->params.eeprom; in mwifiex_ret_reg_access()
797 pr_debug("info: EEPROM read len=%x\n", r.eeprom->byte_count); in mwifiex_ret_reg_access()
798 if (le16_to_cpu(eeprom->byte_count) < in mwifiex_ret_reg_access()
799 le16_to_cpu(r.eeprom->byte_count)) { in mwifiex_ret_reg_access()
800 eeprom->byte_count = cpu_to_le16(0); in mwifiex_ret_reg_access()
804 eeprom->offset = r.eeprom->offset; in mwifiex_ret_reg_access()
805 eeprom->byte_count = r.eeprom->byte_count; in mwifiex_ret_reg_access()
806 if (le16_to_cpu(eeprom->byte_count) > 0) in mwifiex_ret_reg_access()
807 memcpy(&eeprom->value, &r.eeprom->value, in mwifiex_ret_reg_access()
808 le16_to_cpu(r.eeprom->byte_count)); in mwifiex_ret_reg_access()