Home
last modified time | relevance | path

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

/drivers/net/usb/
Dasix_common.c674 int first_word, last_word; in asix_get_eeprom() local
683 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_get_eeprom()
685 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_get_eeprom()
691 for (i = first_word; i <= last_word; i++) { in asix_get_eeprom()
709 int first_word, last_word; in asix_set_eeprom() local
723 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_set_eeprom()
725 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_set_eeprom()
742 ret = asix_read_cmd(dev, AX_CMD_READ_EEPROM, last_word, 0, 2, in asix_set_eeprom()
743 &eeprom_buff[last_word - first_word], 0); in asix_set_eeprom()
745 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in asix_set_eeprom()
[all …]
Dax88179_178a.c572 int first_word, last_word; in ax88179_get_eeprom() local
581 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_get_eeprom()
582 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_get_eeprom()
588 for (i = first_word; i <= last_word; i++) { in ax88179_get_eeprom()
609 int last_word; in ax88179_set_eeprom() local
623 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_set_eeprom()
625 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_set_eeprom()
642 ret = ax88179_read_cmd(dev, AX_ACCESS_EEPROM, last_word, 1, 2, in ax88179_set_eeprom()
643 &eeprom_buff[last_word - first_word]); in ax88179_set_eeprom()
645 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in ax88179_set_eeprom()
[all …]
/drivers/block/drbd/
Ddrbd_bitmap.c559 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()
1435 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument
1444 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page()
1481 int last_word; in _drbd_bm_set_bits() local
[all …]
/drivers/net/ethernet/intel/ixgb/
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()
/drivers/i3c/master/mipi-i3c-hci/
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()
/drivers/net/ethernet/intel/e1000/
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()
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 …]
/drivers/net/ethernet/intel/e1000e/
Dethtool.c507 int last_word; in e1000_get_eeprom() local
517 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom()
519 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
528 last_word - first_word + 1, in e1000_get_eeprom()
531 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
544 (last_word - first_word + 1)); in e1000_get_eeprom()
547 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
566 int last_word; in e1000_set_eeprom() local
583 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom()
601 ret_val = e1000_read_nvm(hw, last_word, 1, in e1000_set_eeprom()
[all …]
/drivers/net/ethernet/intel/igc/
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()
474 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), 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
527 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igc_ethtool_set_eeprom()
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()
[all …]
/drivers/net/wireless/intersil/p54/
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()
/drivers/net/ethernet/intel/igb/
Digb_ethtool.c739 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 …]
/drivers/net/wireless/ath/ath6kl/
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()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c1005 int first_word, last_word, eeprom_len; in ixgbe_get_eeprom() local
1015 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgbe_get_eeprom()
1016 eeprom_len = last_word - first_word + 1; in ixgbe_get_eeprom()
1042 int max_len, first_word, last_word, ret_val = 0; in ixgbe_set_eeprom() local
1054 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgbe_set_eeprom()
1077 ret_val = hw->eeprom.ops.read(hw, last_word, in ixgbe_set_eeprom()
1078 &eeprom_buff[last_word - first_word]); in ixgbe_set_eeprom()
1084 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
1089 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
1093 last_word - first_word + 1, in ixgbe_set_eeprom()