Home
last modified time | relevance | path

Searched refs:eeprom_buff (Results 1 – 12 of 12) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c209 u32 *eeprom_buff; in atl1e_get_eeprom() local
225 eeprom_buff = kmalloc_array(last_dword - first_dword + 1, sizeof(u32), in atl1e_get_eeprom()
227 if (eeprom_buff == NULL) in atl1e_get_eeprom()
231 if (!atl1e_read_eeprom(hw, i * 4, &(eeprom_buff[i-first_dword]))) { in atl1e_get_eeprom()
232 kfree(eeprom_buff); in atl1e_get_eeprom()
237 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), in atl1e_get_eeprom()
239 kfree(eeprom_buff); in atl1e_get_eeprom()
249 u32 *eeprom_buff; in atl1e_set_eeprom() local
263 eeprom_buff = kmalloc(AT_EEPROM_LEN, GFP_KERNEL); in atl1e_set_eeprom()
264 if (eeprom_buff == NULL) in atl1e_set_eeprom()
[all …]
/Linux-v6.6/drivers/net/usb/
Dasix_common.c639 u16 *eeprom_buff; in asix_get_eeprom() local
651 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_get_eeprom()
653 if (!eeprom_buff) in asix_get_eeprom()
659 &eeprom_buff[i - first_word], 0) < 0) { in asix_get_eeprom()
660 kfree(eeprom_buff); in asix_get_eeprom()
665 memcpy(data, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in asix_get_eeprom()
666 kfree(eeprom_buff); in asix_get_eeprom()
674 u16 *eeprom_buff; in asix_set_eeprom() local
691 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_set_eeprom()
693 if (!eeprom_buff) in asix_set_eeprom()
[all …]
Dax88179_178a.c529 u16 *eeprom_buff; in ax88179_get_eeprom() local
540 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_get_eeprom()
542 if (!eeprom_buff) in ax88179_get_eeprom()
548 &eeprom_buff[i - first_word]); in ax88179_get_eeprom()
550 kfree(eeprom_buff); in ax88179_get_eeprom()
555 memcpy(data, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in ax88179_get_eeprom()
556 kfree(eeprom_buff); in ax88179_get_eeprom()
565 u16 *eeprom_buff; in ax88179_set_eeprom() local
583 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_set_eeprom()
585 if (!eeprom_buff) in ax88179_set_eeprom()
[all …]
/Linux-v6.6/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c181 u32 *eeprom_buff; in atl1c_get_eeprom() local
198 eeprom_buff = kmalloc_array(last_dword - first_dword + 1, sizeof(u32), in atl1c_get_eeprom()
200 if (eeprom_buff == NULL) in atl1c_get_eeprom()
204 if (!atl1c_read_eeprom(hw, i * 4, &(eeprom_buff[i-first_dword]))) { in atl1c_get_eeprom()
205 kfree(eeprom_buff); in atl1c_get_eeprom()
210 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), in atl1c_get_eeprom()
212 kfree(eeprom_buff); in atl1c_get_eeprom()
/Linux-v6.6/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c425 u16 *eeprom_buff; in e1000_get_eeprom() local
438 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
440 if (!eeprom_buff) in e1000_get_eeprom()
446 eeprom_buff); in e1000_get_eeprom()
450 &eeprom_buff[i]); in e1000_get_eeprom()
458 le16_to_cpus(&eeprom_buff[i]); in e1000_get_eeprom()
460 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), in e1000_get_eeprom()
462 kfree(eeprom_buff); in e1000_get_eeprom()
472 u16 *eeprom_buff; in e1000_set_eeprom() local
487 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in e1000_set_eeprom()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/igc/
Digc_ethtool.c463 u16 *eeprom_buff; in igc_ethtool_get_eeprom() local
475 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igc_ethtool_get_eeprom()
477 if (!eeprom_buff) in igc_ethtool_get_eeprom()
483 eeprom_buff); in igc_ethtool_get_eeprom()
487 &eeprom_buff[i]); in igc_ethtool_get_eeprom()
495 le16_to_cpus(&eeprom_buff[i]); in igc_ethtool_get_eeprom()
497 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), in igc_ethtool_get_eeprom()
499 kfree(eeprom_buff); in igc_ethtool_get_eeprom()
510 u16 *eeprom_buff; in igc_ethtool_set_eeprom() local
529 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in igc_ethtool_set_eeprom()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/e1000e/
Dethtool.c513 u16 *eeprom_buff; in e1000_get_eeprom() local
527 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
529 if (!eeprom_buff) in e1000_get_eeprom()
537 eeprom_buff); in e1000_get_eeprom()
541 &eeprom_buff[i]); in e1000_get_eeprom()
551 memset(eeprom_buff, 0xff, sizeof(u16) * in e1000_get_eeprom()
556 le16_to_cpus(&eeprom_buff[i]); in e1000_get_eeprom()
559 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in e1000_get_eeprom()
560 kfree(eeprom_buff); in e1000_get_eeprom()
570 u16 *eeprom_buff; in e1000_set_eeprom() local
[all …]
/Linux-v6.6/drivers/net/ethernet/atheros/atlx/
Datl2.c1881 u32 *eeprom_buff; in atl2_get_eeprom() local
1897 eeprom_buff = kmalloc_array(last_dword - first_dword + 1, sizeof(u32), in atl2_get_eeprom()
1899 if (!eeprom_buff) in atl2_get_eeprom()
1903 if (!atl2_read_eeprom(hw, i*4, &(eeprom_buff[i-first_dword]))) { in atl2_get_eeprom()
1909 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), in atl2_get_eeprom()
1912 kfree(eeprom_buff); in atl2_get_eeprom()
1922 u32 *eeprom_buff; in atl2_set_eeprom() local
1937 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in atl2_set_eeprom()
1938 if (!eeprom_buff) in atl2_set_eeprom()
1941 ptr = eeprom_buff; in atl2_set_eeprom()
[all …]
/Linux-v6.6/drivers/net/ethernet/cirrus/
Dcs89x0.c1317 int eeprom_buff[CHKSUM_LEN]; in cs89x0_probe1() local
1443 else if (get_eeprom_data(dev, START_EEPROM_DATA, CHKSUM_LEN, eeprom_buff) < 0) { in cs89x0_probe1()
1445 } else if (get_eeprom_cksum(START_EEPROM_DATA, CHKSUM_LEN, eeprom_buff) < 0) { in cs89x0_probe1()
1459 lp->auto_neg_cnf = eeprom_buff[AUTO_NEG_CNF_OFFSET / 2]; in cs89x0_probe1()
1462 lp->adapter_cnf = eeprom_buff[ADAPTER_CNF_OFFSET / 2]; in cs89x0_probe1()
1464 lp->isa_config = eeprom_buff[ISA_CNF_OFFSET / 2]; in cs89x0_probe1()
1465 dev->mem_start = eeprom_buff[PACKET_PAGE_OFFSET / 2] << 8; in cs89x0_probe1()
1470 addr[i * 2] = eeprom_buff[i]; in cs89x0_probe1()
1471 addr[i * 2 + 1] = eeprom_buff[i] >> 8; in cs89x0_probe1()
/Linux-v6.6/drivers/net/ethernet/intel/igb/
Digb_ethtool.c738 u16 *eeprom_buff; in igb_get_eeprom() local
751 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igb_get_eeprom()
753 if (!eeprom_buff) in igb_get_eeprom()
759 eeprom_buff); in igb_get_eeprom()
763 &eeprom_buff[i]); in igb_get_eeprom()
771 le16_to_cpus(&eeprom_buff[i]); in igb_get_eeprom()
773 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), in igb_get_eeprom()
775 kfree(eeprom_buff); in igb_get_eeprom()
785 u16 *eeprom_buff; in igb_set_eeprom() local
805 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in igb_set_eeprom()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c1003 u16 *eeprom_buff; in ixgbe_get_eeprom() local
1017 eeprom_buff = kmalloc_array(eeprom_len, sizeof(u16), GFP_KERNEL); in ixgbe_get_eeprom()
1018 if (!eeprom_buff) in ixgbe_get_eeprom()
1022 eeprom_buff); in ixgbe_get_eeprom()
1026 le16_to_cpus(&eeprom_buff[i]); in ixgbe_get_eeprom()
1028 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in ixgbe_get_eeprom()
1029 kfree(eeprom_buff); in ixgbe_get_eeprom()
1039 u16 *eeprom_buff; in ixgbe_set_eeprom() local
1054 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in ixgbe_set_eeprom()
1055 if (!eeprom_buff) in ixgbe_set_eeprom()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c1858 u8 *eeprom_buff; in i40e_get_eeprom() local
1895 eeprom_buff = kzalloc(eeprom->len, GFP_KERNEL); in i40e_get_eeprom()
1896 if (!eeprom_buff) in i40e_get_eeprom()
1918 (u8 *)eeprom_buff + (I40E_NVM_SECTOR_SIZE * i), in i40e_get_eeprom()
1940 memcpy(bytes, (u8 *)eeprom_buff, eeprom->len); in i40e_get_eeprom()
1942 kfree(eeprom_buff); in i40e_get_eeprom()