Lines Matching +full:0 +full:x3f8
9 #if 0
13 return flex_i2c_write(adapter, 0x20000000, 0x50, addr, buf, len);
21 for (i = 0; i < retries; i++) {
27 return 0;
38 return 0;
41 wbuf[16] = 0;
42 wbuf[17] = 0;
43 wbuf[18] = 0;
45 return eeprom_lrc_write(adapter, 0x3e4, 20, wbuf, rbuf, 4);
53 return 0;
55 if (eeprom_lrc_read(adapter, 0x3e4, 20, buf, 4) == 0)
56 return 0;
66 if (type != 0) {
67 tmp[0] = mac[0];
74 tmp[0] = mac[0];
82 tmp[6] = 0;
85 if (eeprom_write(adapter, 0x3f8, tmp, 8) == 8)
87 return 0;
93 return fc->i2c_request(fc,FC_READ,FC_I2C_PORT_EEPROM,0x50,addr,buf,len);
101 u8 sum = 0; in calc_lrc()
102 for (i = 0; i < len; i++) in calc_lrc()
110 int i,ret = 0; in flexcop_eeprom_request()
111 u8 chipaddr = 0x50 | ((addr >> 8) & 3); in flexcop_eeprom_request()
112 for (i = 0; i < retries; i++) { in flexcop_eeprom_request()
114 addr & 0xff, buf, len); in flexcop_eeprom_request()
115 if (ret == 0) in flexcop_eeprom_request()
125 if (ret == 0) in flexcop_eeprom_lrc_read()
136 int ret = 0; in flexcop_eeprom_check_mac_addr()
138 if ((ret = flexcop_eeprom_lrc_read(fc,0x3f8,buf,8,4)) == 0) { in flexcop_eeprom_check_mac_addr()
139 if (extended != 0) { in flexcop_eeprom_check_mac_addr()