Home
last modified time | relevance | path

Searched refs:last_word (Results 1 – 13 of 13) sorted by relevance

/linux-6.3-rc2/drivers/net/usb/
A Dasix_common.c640 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 …]
A Dax88179_178a.c530 int first_word, last_word; in ax88179_get_eeprom() local
539 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_get_eeprom()
540 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_get_eeprom()
546 for (i = first_word; i <= last_word; i++) { in ax88179_get_eeprom()
567 int last_word; in ax88179_set_eeprom() local
581 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_set_eeprom()
583 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_set_eeprom()
600 ret = ax88179_read_cmd(dev, AX_ACCESS_EEPROM, last_word, 1, 2, in ax88179_set_eeprom()
601 &eeprom_buff[last_word - first_word]); in ax88179_set_eeprom()
603 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in ax88179_set_eeprom()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgb/
A Dixgb_ethtool.c355 int i, max_len, first_word, last_word; in ixgb_get_eeprom() local
376 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgb_get_eeprom()
378 eeprom_buff = kmalloc_array(last_word - first_word + 1, in ixgb_get_eeprom()
385 for (i = 0; i <= (last_word - first_word); i++) in ixgb_get_eeprom()
403 int max_len, first_word, last_word; in ixgb_set_eeprom() local
421 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgb_set_eeprom()
437 eeprom_buff[last_word - first_word] in ixgb_set_eeprom()
438 = ixgb_read_eeprom(hw, last_word); in ixgb_set_eeprom()
442 for (i = 0; i <= (last_word - first_word); i++) in ixgb_set_eeprom()
/linux-6.3-rc2/drivers/block/drbd/
A Ddrbd_bitmap.c559 int idx, last_word; in bm_count_bits() local
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()
1469 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument
1478 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page()
1515 int last_word; in _drbd_bm_set_bits() local
1539 last_word = LWPP; in _drbd_bm_set_bits()
1550 last_word = MLPP(el >> LN2_BPL); in _drbd_bm_set_bits()
[all …]
/linux-6.3-rc2/drivers/i3c/master/mipi-i3c-hci/
A Dpio.c413 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.3-rc2/drivers/net/ethernet/intel/e1000/
A De1000_ethtool.c426 int first_word, last_word; in e1000_get_eeprom() local
436 last_word = (eeprom->offset + eeprom->len - 1) >> 1; 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
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()
510 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
515 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/e1000e/
A Dethtool.c515 int last_word; in e1000_get_eeprom() local
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
609 ret_val = e1000_read_nvm(hw, last_word, 1, in e1000_set_eeprom()
610 &eeprom_buff[last_word - first_word]); in e1000_set_eeprom()
616 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
621 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/igc/
A Digc_ethtool.c461 int first_word, last_word; in igc_ethtool_get_eeprom() local
472 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igc_ethtool_get_eeprom()
481 last_word - first_word + 1, in igc_ethtool_get_eeprom()
484 for (i = 0; i < last_word - first_word + 1; i++) { in igc_ethtool_get_eeprom()
493 for (i = 0; i < last_word - first_word + 1; i++) in igc_ethtool_get_eeprom()
508 int max_len, first_word, last_word, ret_val = 0; in igc_ethtool_set_eeprom() local
546 ret_val = hw->nvm.ops.read(hw, last_word, 1, in igc_ethtool_set_eeprom()
547 &eeprom_buff[last_word - first_word]); in igc_ethtool_set_eeprom()
551 for (i = 0; i < last_word - first_word + 1; i++) in igc_ethtool_set_eeprom()
556 for (i = 0; i < last_word - first_word + 1; i++) in igc_ethtool_set_eeprom()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intersil/p54/
A Dp54spi.c92 __le16 last_word; in p54spi_spi_write() local
93 last_word = cpu_to_le16(((u8 *)buf)[len - 1]); in p54spi_spi_write()
95 t[2].tx_buf = &last_word; in p54spi_spi_write()
96 t[2].len = sizeof(last_word); in p54spi_spi_write()
/linux-6.3-rc2/drivers/net/ethernet/intel/igb/
A Digb_ethtool.c739 int first_word, last_word; in igb_get_eeprom() local
758 last_word - first_word + 1, 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
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()
828 for (i = 0; i < last_word - first_word + 1; i++) in igb_set_eeprom()
833 for (i = 0; i < last_word - first_word + 1; i++) in igb_set_eeprom()
837 last_word - first_word + 1, eeprom_buff); in igb_set_eeprom()
3227 u16 first_word, last_word; in igb_get_module_eeprom() local
[all …]
/linux-6.3-rc2/drivers/net/wireless/ath/ath6kl/
A Dbmi.c496 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.3-rc2/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_ethtool.c1004 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.3-rc2/scripts/
A Dcheckpatch.pl3523 my $last_word = $1;
3524 if ($rawline =~ /^\+\s*\*\s*$last_word /) {
3526 "Possible repeated word: '$last_word'\n" . $hereprev) &&
3528 $fixed[$fixlinenr] =~ s/(\+\s*\*\s*)$last_word /$1/;

Completed in 146 milliseconds