/drivers/net/ethernet/marvell/prestera/ |
D | prestera_dsa.c | 38 u32 words[4]; in prestera_dsa_parse() local 41 words[0] = ntohl(dsa_words[0]); in prestera_dsa_parse() 42 words[1] = ntohl(dsa_words[1]); in prestera_dsa_parse() 43 words[2] = ntohl(dsa_words[2]); in prestera_dsa_parse() 44 words[3] = ntohl(dsa_words[3]); in prestera_dsa_parse() 47 cmd = (enum prestera_dsa_cmd)FIELD_GET(PRESTERA_DSA_W0_CMD, words[0]); in prestera_dsa_parse() 53 if (FIELD_GET(PRESTERA_DSA_W0_EXT_BIT, words[0]) == 0) in prestera_dsa_parse() 55 if (FIELD_GET(PRESTERA_DSA_W1_EXT_BIT, words[1]) == 0) in prestera_dsa_parse() 57 if (FIELD_GET(PRESTERA_DSA_W2_EXT_BIT, words[2]) == 0) in prestera_dsa_parse() 60 field = FIELD_GET(PRESTERA_DSA_W3_VID, words[3]); in prestera_dsa_parse() [all …]
|
/drivers/spi/ |
D | spi-sh-msiof.c | 395 u32 bits, u32 words) in sh_msiof_spi_set_mode_regs() argument 397 u32 dr2 = SIMDR2_BITLEN1(bits) | SIMDR2_WDLEN1(words); in sh_msiof_spi_set_mode_regs() 415 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_8() argument 420 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_8() 425 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16() argument 430 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_16() 435 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16u() argument 440 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_16u() 445 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32() argument 450 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_32() [all …]
|
D | spi-hisi-sfc-v3xx.c | 207 int words = len / 4; in hisi_sfc_v3xx_read_databuf() local 209 __ioread32_copy(to, from, words); in hisi_sfc_v3xx_read_databuf() 211 len -= words * 4; in hisi_sfc_v3xx_read_databuf() 215 to += words * 4; in hisi_sfc_v3xx_read_databuf() 216 from += words * 4; in hisi_sfc_v3xx_read_databuf() 244 int words = len / 4; in hisi_sfc_v3xx_write_databuf() local 246 __iowrite32_copy(to, from, words); in hisi_sfc_v3xx_write_databuf() 248 len -= words * 4; in hisi_sfc_v3xx_write_databuf() 252 to += words * 4; in hisi_sfc_v3xx_write_databuf() 253 from += words * 4; in hisi_sfc_v3xx_write_databuf()
|
/drivers/atm/ |
D | eni.c | 185 eni_dev->tx[i].send,eni_dev->tx[i].words*4); in dump() 191 ENI_VCC(eni_dev->rx_map[i])->words*4); in dump() 323 eni_vcc->rxing,eni_vcc->words); in rx_ident_err() 368 here = (eni_vcc->descr+skip) & (eni_vcc->words-1); in do_rx_dma() 373 here = (eni_vcc->descr+size+skip) & (eni_vcc->words-1); in do_rx_dma() 376 unsigned long words; in do_rx_dma() local 383 words = eff; in do_rx_dma() 388 if (init > words) init = words; in do_rx_dma() 393 words -= init; in do_rx_dma() 396 if (words & ~15) { in do_rx_dma() [all …]
|
/drivers/video/fbdev/ |
D | c2p_planar.c | 92 u32 words[8]; in c2p_planar() member 112 c2p_32x8(d.words); in c2p_planar() 113 store_planar_masked(p, dst_nextplane, bpp, d.words, in c2p_planar() 125 c2p_32x8(d.words); in c2p_planar() 127 d.words, first); in c2p_planar() 135 c2p_32x8(d.words); in c2p_planar() 136 store_planar(p, dst_nextplane, bpp, d.words); in c2p_planar() 145 c2p_32x8(d.words); in c2p_planar() 147 d.words, last); in c2p_planar()
|
D | c2p_iplan2.c | 90 u32 words[4]; in c2p_iplan2() member 112 c2p_16x8(d.words); in c2p_iplan2() 113 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2() 124 c2p_16x8(d.words); in c2p_iplan2() 125 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2() 133 c2p_16x8(d.words); in c2p_iplan2() 134 store_iplan2(p, bpp, d.words); in c2p_iplan2() 143 c2p_16x8(d.words); in c2p_iplan2() 144 store_iplan2_masked(p, bpp, d.words, last); in c2p_iplan2()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_nvm.c | 221 u16 words, void *data, in i40e_read_nvm_aq() argument 235 if ((offset + words) > hw->nvm.sr_size) in i40e_read_nvm_aq() 238 (offset + words), hw->nvm.sr_size); in i40e_read_nvm_aq() 239 else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq() 243 words, I40E_SR_SECTOR_SIZE_IN_WORDS); in i40e_read_nvm_aq() 244 else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq() 249 offset, words); in i40e_read_nvm_aq() 253 2 * words, /*bytes*/ in i40e_read_nvm_aq() 410 u16 *words, u16 *data) in i40e_read_nvm_buffer_srctl() argument 416 for (word = 0; word < *words; word++) { in i40e_read_nvm_buffer_srctl() [all …]
|
/drivers/gpu/host1x/ |
D | job.c | 108 unsigned int words, unsigned int offset) in host1x_job_add_gather() argument 112 gather->words = words; in host1x_job_add_gather() 342 u32 words; member 388 if (fw->words == 0) in check_mask() 396 fw->words--; in check_mask() 413 if (fw->words == 0) in check_incr() 421 fw->words--; in check_incr() 435 if (fw->words == 0) in check_nonincr() 442 fw->words--; in check_nonincr() 457 fw->words = g->words; in validate() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc_i225.c | 186 static s32 igc_read_nvm_srrd_i225(struct igc_hw *hw, u16 offset, u16 words, in igc_read_nvm_srrd_i225() argument 196 for (i = 0; i < words; i += IGC_EERD_EEWR_MAX_COUNT) { in igc_read_nvm_srrd_i225() 197 count = (words - i) / IGC_EERD_EEWR_MAX_COUNT > 0 ? in igc_read_nvm_srrd_i225() 198 IGC_EERD_EEWR_MAX_COUNT : (words - i); in igc_read_nvm_srrd_i225() 225 static s32 igc_write_nvm_srwr(struct igc_hw *hw, u16 offset, u16 words, in igc_write_nvm_srwr() argument 236 if (offset >= nvm->word_size || (words > (nvm->word_size - offset)) || in igc_write_nvm_srwr() 237 words == 0) { in igc_write_nvm_srwr() 242 for (i = 0; i < words; i++) { in igc_write_nvm_srwr() 284 static s32 igc_write_nvm_srwr_i225(struct igc_hw *hw, u16 offset, u16 words, in igc_write_nvm_srwr_i225() argument 294 for (i = 0; i < words; i += IGC_EERD_EEWR_MAX_COUNT) { in igc_write_nvm_srwr_i225() [all …]
|
D | igc_nvm.c | 97 s32 igc_read_nvm_eerd(struct igc_hw *hw, u16 offset, u16 words, u16 *data) in igc_read_nvm_eerd() argument 106 if (offset >= nvm->word_size || (words > (nvm->word_size - offset)) || in igc_read_nvm_eerd() 107 words == 0) { in igc_read_nvm_eerd() 113 for (i = 0; i < words; i++) { in igc_read_nvm_eerd()
|
/drivers/bcma/ |
D | sprom.c | 76 size_t words) in bcma_sprom_read() argument 79 for (i = 0; i < words; i++) in bcma_sprom_read() 127 static u8 bcma_sprom_crc(const u16 *sprom, size_t words) in bcma_sprom_crc() argument 132 for (word = 0; word < words - 1; word++) { in bcma_sprom_crc() 136 crc = bcma_crc8(crc, sprom[words - 1] & 0x00FF); in bcma_sprom_crc() 142 static int bcma_sprom_check_crc(const u16 *sprom, size_t words) in bcma_sprom_check_crc() argument 148 crc = bcma_sprom_crc(sprom, words); in bcma_sprom_check_crc() 149 tmp = sprom[words - 1] & SSB_SPROM_REVISION_CRC; in bcma_sprom_check_crc() 158 size_t words) in bcma_sprom_valid() argument 163 err = bcma_sprom_check_crc(sprom, words); in bcma_sprom_valid() [all …]
|
/drivers/ata/ |
D | pata_falcon.c | 47 unsigned int words = buflen >> 1; in pata_falcon_data_xfer() local 58 raw_insw_swapw(data_addr, (u16 *)buf, words); in pata_falcon_data_xfer() 60 raw_insw(data_addr, (u16 *)buf, words); in pata_falcon_data_xfer() 63 raw_outsw_swapw(data_addr, (u16 *)buf, words); in pata_falcon_data_xfer() 65 raw_outsw(data_addr, (u16 *)buf, words); in pata_falcon_data_xfer() 88 words++; in pata_falcon_data_xfer() 91 return words << 1; in pata_falcon_data_xfer()
|
D | pata_gayle.c | 50 unsigned int words = buflen >> 1; in pata_gayle_data_xfer() local 54 raw_insw((u16 *)data_addr, (u16 *)buf, words); in pata_gayle_data_xfer() 56 raw_outsw((u16 *)data_addr, (u16 *)buf, words); in pata_gayle_data_xfer() 72 words++; in pata_gayle_data_xfer() 75 return words << 1; in pata_gayle_data_xfer()
|
D | pata_buddha.c | 72 unsigned int words = buflen >> 1; in pata_buddha_data_xfer() local 76 raw_insw((u16 *)data_addr, (u16 *)buf, words); in pata_buddha_data_xfer() 78 raw_outsw((u16 *)data_addr, (u16 *)buf, words); in pata_buddha_data_xfer() 94 words++; in pata_buddha_data_xfer() 97 return words << 1; in pata_buddha_data_xfer()
|
D | pata_ixp4xx_cf.c | 127 unsigned int words = buflen >> 1; in ixp4xx_mmio_data_xfer() local 147 for (i = 0; i < words; i++) in ixp4xx_mmio_data_xfer() 150 for (i = 0; i < words; i++) in ixp4xx_mmio_data_xfer() 165 words++; in ixp4xx_mmio_data_xfer() 173 return words << 1; in ixp4xx_mmio_data_xfer()
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_nvm.c | 305 s32 igb_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) in igb_read_nvm_spi() argument 316 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in igb_read_nvm_spi() 317 (words == 0)) { in igb_read_nvm_spi() 344 for (i = 0; i < words; i++) { in igb_read_nvm_spi() 365 s32 igb_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) in igb_read_nvm_eerd() argument 374 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in igb_read_nvm_eerd() 375 (words == 0)) { in igb_read_nvm_eerd() 381 for (i = 0; i < words; i++) { in igb_read_nvm_eerd() 410 s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) in igb_write_nvm_spi() argument 419 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in igb_write_nvm_spi() [all …]
|
D | e1000_i210.c | 187 static s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, u16 words, in igb_read_nvm_srrd_i210() argument 197 for (i = 0; i < words; i += E1000_EERD_EEWR_MAX_COUNT) { in igb_read_nvm_srrd_i210() 198 count = (words - i) / E1000_EERD_EEWR_MAX_COUNT > 0 ? in igb_read_nvm_srrd_i210() 199 E1000_EERD_EEWR_MAX_COUNT : (words - i); in igb_read_nvm_srrd_i210() 227 static s32 igb_write_nvm_srwr(struct e1000_hw *hw, u16 offset, u16 words, in igb_write_nvm_srwr() argument 238 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in igb_write_nvm_srwr() 239 (words == 0)) { in igb_write_nvm_srwr() 245 for (i = 0; i < words; i++) { in igb_write_nvm_srwr() 287 static s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, u16 words, in igb_write_nvm_srwr_i210() argument 297 for (i = 0; i < words; i += E1000_EERD_EEWR_MAX_COUNT) { in igb_write_nvm_srwr_i210() [all …]
|
D | e1000_nvm.h | 13 s32 igb_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data); 14 s32 igb_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data); 15 s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
|
/drivers/soundwire/ |
D | mipi_disco.c | 139 dp0->words = devm_kcalloc(&slave->dev, in sdw_slave_read_dp0() 140 dp0->num_words, sizeof(*dp0->words), in sdw_slave_read_dp0() 142 if (!dp0->words) in sdw_slave_read_dp0() 147 dp0->words, dp0->num_words); in sdw_slave_read_dp0() 196 dpn[i].words = devm_kcalloc(&slave->dev, in sdw_slave_read_dpn() 198 sizeof(*dpn[i].words), in sdw_slave_read_dpn() 200 if (!dpn[i].words) in sdw_slave_read_dpn() 205 dpn[i].words, dpn[i].num_words); in sdw_slave_read_dpn()
|
/drivers/net/ethernet/intel/e1000e/ |
D | nvm.c | 291 s32 e1000e_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) in e1000e_read_nvm_eerd() argument 300 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000e_read_nvm_eerd() 301 (words == 0)) { in e1000e_read_nvm_eerd() 306 for (i = 0; i < words; i++) { in e1000e_read_nvm_eerd() 335 s32 e1000e_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) in e1000e_write_nvm_spi() argument 344 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000e_write_nvm_spi() 345 (words == 0)) { in e1000e_write_nvm_spi() 350 while (widx < words) { in e1000e_write_nvm_spi() 383 while (widx < words) { in e1000e_write_nvm_spi()
|
/drivers/iio/chemical/ |
D | sgp30.c | 339 struct sgp_crc_word *words; in sgp_read_raw() local 349 words = data->iaq_buffer.raw_words; in sgp_read_raw() 354 *val2 = be16_to_cpu(words[1].value); in sgp_read_raw() 359 *val2 = be16_to_cpu(words[0].value); in sgp_read_raw() 375 words = data->iaq_buffer.raw_words; in sgp_read_raw() 380 words = data->buffer.raw_words; in sgp_read_raw() 389 *val = be16_to_cpu(words[1].value); in sgp_read_raw() 394 *val = be16_to_cpu(words[0].value); in sgp_read_raw()
|
/drivers/platform/chrome/ |
D | cros_ec_sysfs.c | 45 } words[] = { in reboot_store() local 76 for (i = 0; i < ARRAY_SIZE(words); i++) { in reboot_store() 77 if (!strncasecmp(words[i].str, buf+offset, in reboot_store() 78 strlen(words[i].str))) { in reboot_store() 79 if (words[i].flags) { in reboot_store() 80 param->flags |= words[i].flags; in reboot_store() 82 param->cmd = words[i].cmd; in reboot_store()
|
/drivers/gpu/host1x/hw/ |
D | channel_hw.c | 22 u32 offset, u32 words) in trace_write_gather() argument 36 for (i = 0; i < words; i += TRACE_MAX_LENGTH) { in trace_write_gather() 37 u32 num_words = min(words - i, TRACE_MAX_LENGTH); in trace_write_gather() 141 trace_write_gather(cdma, g->bo, g->offset, g->words); in submit_gathers() 145 u32 op1 = host1x_opcode_gather_wide(g->words); in submit_gathers() 155 u32 op1 = host1x_opcode_gather(g->words); in submit_gathers()
|
D | debug_hw.c | 160 unsigned int words, struct host1x_cdma *cdma, in show_gather() argument 178 for (i = 0; i < words; i++) { in show_gather() 228 &g->base, g->offset, g->words); in show_channel_gathers() 230 show_gather(o, g->base + g->offset, g->words, cdma, in show_channel_gathers()
|
/drivers/i2c/ |
D | i2c-stub.c | 71 u16 words[256]; /* Byte operations use the LSB as per SMBus member 119 return chip->words + offset; in stub_get_wordp() 222 chip->words[command + i] &= 0xff00; in stub_xfer() 223 chip->words[command + i] |= data->block[1 + i]; in stub_xfer() 231 chip->words[command + i] & 0xff; in stub_xfer() 267 chip->words[command] = (b->block[0] << 8) | b->len; in stub_xfer()
|