/linux-6.6.21/drivers/net/usb/ |
D | asix_common.c | 640 int first_word, last_word; in asix_get_eeprom() local 649 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_get_eeprom() 651 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_get_eeprom() 657 for (i = first_word; i <= last_word; i++) { in asix_get_eeprom() 675 int first_word, last_word; in asix_set_eeprom() local 689 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_set_eeprom() 691 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_set_eeprom() 708 ret = asix_read_cmd(dev, AX_CMD_READ_EEPROM, last_word, 0, 2, in asix_set_eeprom() 709 &eeprom_buff[last_word - first_word], 0); in asix_set_eeprom() 711 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in asix_set_eeprom() [all …]
|
D | ax88179_178a.c | 547 int first_word, last_word; in ax88179_get_eeprom() local 556 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_get_eeprom() 557 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_get_eeprom() 563 for (i = first_word; i <= last_word; i++) { in ax88179_get_eeprom() 584 int last_word; in ax88179_set_eeprom() local 598 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_set_eeprom() 600 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_set_eeprom() 617 ret = ax88179_read_cmd(dev, AX_ACCESS_EEPROM, last_word, 1, 2, in ax88179_set_eeprom() 618 &eeprom_buff[last_word - first_word]); in ax88179_set_eeprom() 620 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in ax88179_set_eeprom() [all …]
|
/linux-6.6.21/drivers/block/drbd/ |
D | drbd_bitmap.c | 559 int idx, last_word; in bm_count_bits() local 569 last_word = ((b->bm_bits - 1) & BITS_PER_PAGE_MASK) >> LN2_BPL; in bm_count_bits() 571 bits += bitmap_weight(p_addr, last_word * BITS_PER_LONG); in bm_count_bits() 572 p_addr[last_word] &= cpu_to_lel(mask); in bm_count_bits() 573 bits += hweight_long(p_addr[last_word]); in bm_count_bits() 575 if (BITS_PER_LONG == 32 && (last_word & 1) == 0) in bm_count_bits() 576 p_addr[last_word+1] = 0; in bm_count_bits() 1472 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument 1481 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page() 1518 int last_word; in _drbd_bm_set_bits() local [all …]
|
/linux-6.6.21/drivers/i3c/master/mipi-i3c-hci/ |
D | pio.c | 413 u32 last_word; in hci_pio_push_to_next_rx() local 447 last_word = (count == 1) ? from_last : *from++; in hci_pio_push_to_next_rx() 457 xfer->data_word_before_partial = last_word; in hci_pio_push_to_next_rx() 458 last_word = (__force u32) cpu_to_le32(last_word); in hci_pio_push_to_next_rx() 460 *p_byte++ = last_word; in hci_pio_push_to_next_rx() 461 last_word >>= 8; in hci_pio_push_to_next_rx() 466 p[chunk] = last_word; in hci_pio_push_to_next_rx()
|
/linux-6.6.21/drivers/net/ethernet/intel/e1000/ |
D | e1000_ethtool.c | 426 int first_word, last_word; in e1000_get_eeprom() local 436 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom() 438 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom() 445 last_word - first_word + 1, in e1000_get_eeprom() 448 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom() 457 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom() 474 int max_len, first_word, last_word, ret_val = 0; in e1000_set_eeprom() local 486 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom() 505 ret_val = e1000_read_eeprom(hw, last_word, 1, in e1000_set_eeprom() 506 &eeprom_buff[last_word - first_word]); in e1000_set_eeprom() [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 515 int last_word; in e1000_get_eeprom() local 525 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom() 527 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom() 536 last_word - first_word + 1, in e1000_get_eeprom() 539 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom() 552 (last_word - first_word + 1)); in e1000_get_eeprom() 555 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom() 574 int last_word; in e1000_set_eeprom() local 591 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom() 609 ret_val = e1000_read_nvm(hw, last_word, 1, in e1000_set_eeprom() [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 462 int first_word, last_word; in igc_ethtool_get_eeprom() local 473 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igc_ethtool_get_eeprom() 475 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igc_ethtool_get_eeprom() 482 last_word - first_word + 1, in igc_ethtool_get_eeprom() 485 for (i = 0; i < last_word - first_word + 1; i++) { in igc_ethtool_get_eeprom() 494 for (i = 0; i < last_word - first_word + 1; i++) in igc_ethtool_get_eeprom() 509 int max_len, first_word, last_word, ret_val = 0; in igc_ethtool_set_eeprom() local 528 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igc_ethtool_set_eeprom() 547 ret_val = hw->nvm.ops.read(hw, last_word, 1, in igc_ethtool_set_eeprom() 548 &eeprom_buff[last_word - first_word]); in igc_ethtool_set_eeprom() [all …]
|
/linux-6.6.21/drivers/net/wireless/intersil/p54/ |
D | p54spi.c | 93 __le16 last_word; in p54spi_spi_write() local 94 last_word = cpu_to_le16(((u8 *)buf)[len - 1]); in p54spi_spi_write() 96 t[2].tx_buf = &last_word; in p54spi_spi_write() 97 t[2].len = sizeof(last_word); in p54spi_spi_write()
|
/linux-6.6.21/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 739 int first_word, last_word; in igb_get_eeprom() local 749 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igb_get_eeprom() 751 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igb_get_eeprom() 758 last_word - first_word + 1, in igb_get_eeprom() 761 for (i = 0; i < last_word - first_word + 1; i++) { in igb_get_eeprom() 770 for (i = 0; i < last_word - first_word + 1; i++) in igb_get_eeprom() 787 int max_len, first_word, last_word, ret_val = 0; in igb_set_eeprom() local 804 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igb_set_eeprom() 823 ret_val = hw->nvm.ops.read(hw, last_word, 1, in igb_set_eeprom() 824 &eeprom_buff[last_word - first_word]); in igb_set_eeprom() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath6kl/ |
D | bmi.c | 496 u32 last_word = 0; in ath6kl_bmi_fast_download() local 506 memcpy(&last_word, &buf[last_word_offset], unaligned_bytes); in ath6kl_bmi_fast_download() 514 ret = ath6kl_bmi_lz_data(ar, (u8 *)&last_word, 4); in ath6kl_bmi_fast_download()
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 1004 int first_word, last_word, eeprom_len; in ixgbe_get_eeprom() local 1014 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgbe_get_eeprom() 1015 eeprom_len = last_word - first_word + 1; in ixgbe_get_eeprom() 1041 int max_len, first_word, last_word, ret_val = 0; in ixgbe_set_eeprom() local 1053 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgbe_set_eeprom() 1076 ret_val = hw->eeprom.ops.read(hw, last_word, in ixgbe_set_eeprom() 1077 &eeprom_buff[last_word - first_word]); in ixgbe_set_eeprom() 1083 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom() 1088 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom() 1092 last_word - first_word + 1, in ixgbe_set_eeprom()
|
/linux-6.6.21/scripts/ |
D | checkpatch.pl | 3552 my $last_word = $1; 3553 if ($rawline =~ /^\+\s*\*\s*$last_word /) { 3555 "Possible repeated word: '$last_word'\n" . $hereprev) && 3557 $fixed[$fixlinenr] =~ s/(\+\s*\*\s*)$last_word /$1/;
|