/linux-2.6.39/drivers/net/atl1e/ |
D | atl1e_ethtool.c | 213 u32 *eeprom_buff; in atl1e_get_eeprom() local 229 eeprom_buff = kmalloc(sizeof(u32) * in atl1e_get_eeprom() 231 if (eeprom_buff == NULL) in atl1e_get_eeprom() 235 if (!atl1e_read_eeprom(hw, i * 4, &(eeprom_buff[i-first_dword]))) { in atl1e_get_eeprom() 236 kfree(eeprom_buff); in atl1e_get_eeprom() 241 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), in atl1e_get_eeprom() 243 kfree(eeprom_buff); in atl1e_get_eeprom() 253 u32 *eeprom_buff; in atl1e_set_eeprom() local 267 eeprom_buff = kmalloc(AT_EEPROM_LEN, GFP_KERNEL); in atl1e_set_eeprom() 268 if (eeprom_buff == NULL) in atl1e_set_eeprom() [all …]
|
/linux-2.6.39/drivers/net/atl1c/ |
D | atl1c_ethtool.c | 194 u32 *eeprom_buff; in atl1c_get_eeprom() local 211 eeprom_buff = kmalloc(sizeof(u32) * in atl1c_get_eeprom() 213 if (eeprom_buff == NULL) in atl1c_get_eeprom() 217 if (!atl1c_read_eeprom(hw, i * 4, &(eeprom_buff[i-first_dword]))) { in atl1c_get_eeprom() 218 kfree(eeprom_buff); in atl1c_get_eeprom() 223 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), in atl1c_get_eeprom() 225 kfree(eeprom_buff); in atl1c_get_eeprom()
|
/linux-2.6.39/drivers/net/ixgb/ |
D | ixgb_ethtool.c | 422 __le16 *eeprom_buff; in ixgb_get_eeprom() local 446 eeprom_buff = kmalloc(sizeof(__le16) * in ixgb_get_eeprom() 448 if (!eeprom_buff) in ixgb_get_eeprom() 453 eeprom_buff[i] = ixgb_get_eeprom_word(hw, (first_word + i)); in ixgb_get_eeprom() 455 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in ixgb_get_eeprom() 456 kfree(eeprom_buff); in ixgb_get_eeprom() 468 u16 *eeprom_buff; in ixgb_set_eeprom() local 489 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in ixgb_set_eeprom() 490 if (!eeprom_buff) in ixgb_set_eeprom() 493 ptr = (void *)eeprom_buff; in ixgb_set_eeprom() [all …]
|
/linux-2.6.39/drivers/net/ |
D | ks8851.c | 1324 u16 *eeprom_buff; in ks8851_get_eeprom() local 1341 eeprom_buff = kmalloc(sizeof(u16) * in ks8851_get_eeprom() 1343 if (!eeprom_buff) in ks8851_get_eeprom() 1347 eeprom_buff[i] = ks8851_eeprom_read(dev, first_word + 1); in ks8851_get_eeprom() 1351 le16_to_cpus(&eeprom_buff[i]); in ks8851_get_eeprom() 1353 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in ks8851_get_eeprom() 1354 kfree(eeprom_buff); in ks8851_get_eeprom() 1363 u16 *eeprom_buff; in ks8851_set_eeprom() local 1383 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in ks8851_set_eeprom() 1384 if (!eeprom_buff) in ks8851_set_eeprom() [all …]
|
D | cs89x0.c | 514 int eeprom_buff[CHKSUM_LEN]; in cs89x0_probe1() local 668 else if (get_eeprom_data(dev, START_EEPROM_DATA,CHKSUM_LEN,eeprom_buff) < 0) { in cs89x0_probe1() 670 } else if (get_eeprom_cksum(START_EEPROM_DATA,CHKSUM_LEN,eeprom_buff) < 0) { in cs89x0_probe1() 682 if (!lp->auto_neg_cnf) lp->auto_neg_cnf = eeprom_buff[AUTO_NEG_CNF_OFFSET/2]; in cs89x0_probe1() 684 if (!lp->adapter_cnf) lp->adapter_cnf = eeprom_buff[ADAPTER_CNF_OFFSET/2]; in cs89x0_probe1() 686 lp->isa_config = eeprom_buff[ISA_CNF_OFFSET/2]; in cs89x0_probe1() 687 dev->mem_start = eeprom_buff[PACKET_PAGE_OFFSET/2] << 8; in cs89x0_probe1() 692 dev->dev_addr[i*2] = eeprom_buff[i]; in cs89x0_probe1() 693 dev->dev_addr[i*2+1] = eeprom_buff[i] >> 8; in cs89x0_probe1()
|
/linux-2.6.39/drivers/net/e1000/ |
D | e1000_ethtool.c | 473 u16 *eeprom_buff; in e1000_get_eeprom() local 486 eeprom_buff = kmalloc(sizeof(u16) * in e1000_get_eeprom() 488 if (!eeprom_buff) in e1000_get_eeprom() 494 eeprom_buff); in e1000_get_eeprom() 498 &eeprom_buff[i]); in e1000_get_eeprom() 506 le16_to_cpus(&eeprom_buff[i]); in e1000_get_eeprom() 508 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), in e1000_get_eeprom() 510 kfree(eeprom_buff); in e1000_get_eeprom() 520 u16 *eeprom_buff; in e1000_set_eeprom() local 535 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in e1000_set_eeprom() [all …]
|
/linux-2.6.39/drivers/net/e1000e/ |
D | ethtool.c | 494 u16 *eeprom_buff; in e1000_get_eeprom() local 508 eeprom_buff = kmalloc(sizeof(u16) * in e1000_get_eeprom() 510 if (!eeprom_buff) in e1000_get_eeprom() 516 eeprom_buff); in e1000_get_eeprom() 520 &eeprom_buff[i]); in e1000_get_eeprom() 528 memset(eeprom_buff, 0xff, sizeof(u16) * in e1000_get_eeprom() 533 le16_to_cpus(&eeprom_buff[i]); in e1000_get_eeprom() 536 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in e1000_get_eeprom() 537 kfree(eeprom_buff); in e1000_get_eeprom() 547 u16 *eeprom_buff; in e1000_set_eeprom() local [all …]
|
/linux-2.6.39/drivers/net/igb/ |
D | igb_ethtool.c | 627 u16 *eeprom_buff; in igb_get_eeprom() local 640 eeprom_buff = kmalloc(sizeof(u16) * in igb_get_eeprom() 642 if (!eeprom_buff) in igb_get_eeprom() 648 eeprom_buff); in igb_get_eeprom() 652 &eeprom_buff[i]); in igb_get_eeprom() 660 le16_to_cpus(&eeprom_buff[i]); in igb_get_eeprom() 662 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), in igb_get_eeprom() 664 kfree(eeprom_buff); in igb_get_eeprom() 674 u16 *eeprom_buff; in igb_set_eeprom() local 689 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in igb_set_eeprom() [all …]
|
/linux-2.6.39/drivers/net/atlx/ |
D | atl2.c | 1939 u32 *eeprom_buff; local 1955 eeprom_buff = kmalloc(sizeof(u32) * (last_dword - first_dword + 1), 1957 if (!eeprom_buff) 1961 if (!atl2_read_eeprom(hw, i*4, &(eeprom_buff[i-first_dword]))) { 1967 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), 1970 kfree(eeprom_buff); 1980 u32 *eeprom_buff; local 1995 eeprom_buff = kmalloc(max_len, GFP_KERNEL); 1996 if (!eeprom_buff) 1999 ptr = eeprom_buff; [all …]
|
/linux-2.6.39/drivers/net/ixgbe/ |
D | ixgbe_ethtool.c | 831 u16 *eeprom_buff; in ixgbe_get_eeprom() local 845 eeprom_buff = kmalloc(sizeof(u16) * eeprom_len, GFP_KERNEL); in ixgbe_get_eeprom() 846 if (!eeprom_buff) in ixgbe_get_eeprom() 851 &eeprom_buff[i]))) in ixgbe_get_eeprom() 857 le16_to_cpus(&eeprom_buff[i]); in ixgbe_get_eeprom() 859 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in ixgbe_get_eeprom() 860 kfree(eeprom_buff); in ixgbe_get_eeprom()
|