| /linux/arch/arc/kernel/ |
| H A D | disasm.c | 56 state->words[0] = (word1 << 16) | word0; in disasm_instr() 59 state->words[0] = word1; in disasm_instr() 65 state->words[1] = (word1 << 16) | word0; in disasm_instr() 72 fieldA = (IS_BIT(state->words[0], 16)) ? in disasm_instr() 73 FIELD_s25(state->words[0]) : in disasm_instr() 74 FIELD_s21(state->words[0]); in disasm_instr() 76 state->delay_slot = IS_BIT(state->words[0], 5); in disasm_instr() 82 if (IS_BIT(state->words[0], 16)) { in disasm_instr() 85 fieldA = (IS_BIT(state->words[0], 17)) ? in disasm_instr() 86 (FIELD_s25(state->words[0]) & ~0x3) : in disasm_instr() [all …]
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A 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 …]
|
| /linux/scripts/ |
| H A D | decode_stacktrace.sh | 278 local words spaces 280 # Tokenize: words and spaces to preserve the alignment 281 read -ra words <<<"$1" 289 local last=$(( ${#words[@]} - 1 )) 291 for i in "${!words[@]}"; do 293 if [[ ${words[$i]} =~ \[\<([^]]+)\>\] ]]; then 294 unset words[$i] spaces[$i] 304 if [[ ${words[$last]} =~ \([A-Z]*\) ]]; then 305 info_str=${words[$last]} 306 unset words[ [all...] |
| /linux/include/linux/byteorder/ |
| H A D | generic.h | 160 static inline void le32_to_cpu_array(u32 *buf, unsigned int words) in le32_to_cpu_array() argument 162 while (words--) { in le32_to_cpu_array() 168 static inline void cpu_to_le32_array(u32 *buf, unsigned int words) in cpu_to_le32_array() argument 170 while (words--) { in cpu_to_le32_array() 176 static inline void le64_to_cpu_array(u64 *buf, unsigned int words) in le64_to_cpu_array() argument 178 while (words--) { in le64_to_cpu_array() 184 static inline void cpu_to_le64_array(u64 *buf, unsigned int words) in cpu_to_le64_array() argument 186 while (words--) { in cpu_to_le64_array() 192 static inline void memcpy_from_le32(u32 *dst, const __le32 *src, size_t words) in memcpy_from_le32() argument 196 for (i = 0; i < words; i++) in memcpy_from_le32() [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-sh-msiof.c | 298 const void *tx_buf, unsigned int words, in sh_msiof_spi_write_fifo_8() argument 304 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_8() 309 const void *tx_buf, unsigned int words, in sh_msiof_spi_write_fifo_16() argument 315 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_16() 320 const void *tx_buf, unsigned int words, in sh_msiof_spi_write_fifo_16u() argument 326 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_16u() 331 const void *tx_buf, unsigned int words, in sh_msiof_spi_write_fifo_32() argument 337 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_32() 342 const void *tx_buf, unsigned int words, in sh_msiof_spi_write_fifo_32u() argument 348 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_32u() [all …]
|
| H A D | spi-hisi-sfc-v3xx.c | 206 int words = len / 4; in hisi_sfc_v3xx_read_databuf() local 208 __ioread32_copy(to, from, words); in hisi_sfc_v3xx_read_databuf() 210 len -= words * 4; in hisi_sfc_v3xx_read_databuf() 214 to += words * 4; in hisi_sfc_v3xx_read_databuf() 215 from += words * 4; in hisi_sfc_v3xx_read_databuf() 243 int words = len / 4; in hisi_sfc_v3xx_write_databuf() local 245 __iowrite32_copy(to, from, words); in hisi_sfc_v3xx_write_databuf() 247 len -= words * 4; in hisi_sfc_v3xx_write_databuf() 251 to += words * 4; in hisi_sfc_v3xx_write_databuf() 252 from += words * 4; in hisi_sfc_v3xx_write_databuf()
|
| /linux/include/linux/ |
| H A D | swab.h | 24 static inline void swab16_array(u16 *buf, unsigned int words) in swab16_array() argument 26 while (words--) { in swab16_array() 32 static inline void swab32_array(u32 *buf, unsigned int words) in swab32_array() argument 34 while (words--) { in swab32_array() 40 static inline void swab64_array(u64 *buf, unsigned int words) in swab64_array() argument 42 while (words--) { in swab64_array()
|
| /linux/tools/perf/ |
| H A D | perf-completion.sh | 16 # re-assemble words to complete. 77 words) 78 words=("${words_[@]}") 134 if [[ ${words[i]} == "$1" ]]; then 138 if [[ ${words[i]} == "$cmd_" ]]; then 139 prev_skip_opts=${words[i]} 151 cmd=${words[0]} 283 cur=${words[CURRENT]} 284 prev=${words[CURRENT-1]} 310 local cur words cwor [all...] |
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_nvm.c | 222 u16 words, void *data, in i40e_read_nvm_aq() argument 236 if ((offset + words) > hw->nvm.sr_size) in i40e_read_nvm_aq() 239 (offset + words), hw->nvm.sr_size); in i40e_read_nvm_aq() 240 else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq() 244 words, I40E_SR_SECTOR_SIZE_IN_WORDS); in i40e_read_nvm_aq() 245 else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq() 250 offset, words); in i40e_read_nvm_aq() 254 2 * words, /*bytes*/ in i40e_read_nvm_aq() 411 u16 *words, u16 *data) in i40e_read_nvm_buffer_srctl() argument 417 for (word = 0; word < *words; word++) { in i40e_read_nvm_buffer_srctl() [all …]
|
| /linux/drivers/bcma/ |
| H A 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 …]
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | efx_devlink.c | 243 const __le16 *words; in efx_devlink_info_running_v2() member 315 ver.words = (__le16 *)MCDI_PTR(outbuf, GET_VERSION_V2_OUT_VERSION); in efx_devlink_info_running_v2() 317 le16_to_cpu(ver.words[0]), le16_to_cpu(ver.words[1]), in efx_devlink_info_running_v2() 318 le16_to_cpu(ver.words[2]), le16_to_cpu(ver.words[3])); in efx_devlink_info_running_v2() 360 const __le16 *words; in efx_devlink_info_running_v3() member 398 const __le16 *words; in efx_devlink_info_running_v4() member 481 const __le16 *words; in efx_devlink_info_running_v5() member 522 const __le16 *words; in efx_devlink_info_running_versions() member 539 ver.words = (__le16 *)MCDI_PTR(outbuf, in efx_devlink_info_running_versions() 542 le16_to_cpu(ver.words[0]), in efx_devlink_info_running_versions() [all …]
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A 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 …]
|
| /linux/tools/lib/ |
| H A D | string.c | 209 unsigned int words, prefix; in memchr_inv() local 231 words = bytes / 8; in memchr_inv() 233 while (words) { in memchr_inv() 237 words--; in memchr_inv()
|
| /linux/drivers/soundwire/ |
| H A D | mipi_disco.c | 177 dp0->words = devm_kcalloc(&slave->dev, in sdw_slave_read_dp0() 178 dp0->num_words, sizeof(*dp0->words), in sdw_slave_read_dp0() 180 if (!dp0->words) in sdw_slave_read_dp0() 185 dp0->words, dp0->num_words); in sdw_slave_read_dp0() 253 dpn[i].words = devm_kcalloc(&slave->dev, in sdw_slave_read_dpn() 255 sizeof(*dpn[i].words), in sdw_slave_read_dpn() 257 if (!dpn[i].words) { in sdw_slave_read_dpn() 264 dpn[i].words, dpn[i].num_words); in sdw_slave_read_dpn()
|
| /linux/drivers/iio/chemical/ |
| H A D | sgp30.c | 341 struct sgp_crc_word *words; in sgp_read_raw() local 351 words = data->iaq_buffer.raw_words; in sgp_read_raw() 356 *val2 = be16_to_cpu(words[1].value); in sgp_read_raw() 361 *val2 = be16_to_cpu(words[0].value); in sgp_read_raw() 377 words = data->iaq_buffer.raw_words; in sgp_read_raw() 382 words = data->buffer.raw_words; in sgp_read_raw() 391 *val = be16_to_cpu(words[1].value); in sgp_read_raw() 396 *val = be16_to_cpu(words[0].value); in sgp_read_raw()
|
| /linux/arch/m68k/include/asm/ |
| H A D | bitops.h | 358 unsigned long words; in find_first_zero_bit() local 364 words = (size + 31) >> 5; in find_first_zero_bit() 366 if (!--words) in find_first_zero_bit() 415 unsigned long words; in find_first_bit() local 421 words = (size + 31) >> 5; in find_first_bit() 423 if (!--words) in find_first_bit()
|
| /linux/drivers/i2c/ |
| H A 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() 227 chip->words[command + i] &= 0xff00; in stub_xfer() 228 chip->words[command + i] |= data->block[1 + i]; in stub_xfer() 236 chip->words[command + i] & 0xff; in stub_xfer() 272 chip->words[command] = (b->block[0] << 8) | b->len; in stub_xfer()
|
| /linux/drivers/ata/ |
| H A D | pata_ixp4xx_cf.c | 128 unsigned int words = buflen >> 1; in ixp4xx_mmio_data_xfer() local 148 for (i = 0; i < words; i++) in ixp4xx_mmio_data_xfer() 151 for (i = 0; i < words; i++) in ixp4xx_mmio_data_xfer() 166 words++; in ixp4xx_mmio_data_xfer() 174 return words << 1; in ixp4xx_mmio_data_xfer()
|
| /linux/drivers/net/ethernet/intel/e1000e/ |
| H A D | nvm.h | 13 s32 e1000e_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data); 16 s32 e1000e_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_sysfs.c | 44 } words[] = { in reboot_store() local 75 for (i = 0; i < ARRAY_SIZE(words); i++) { in reboot_store() 76 if (!strncasecmp(words[i].str, buf+offset, in reboot_store() 77 strlen(words[i].str))) { in reboot_store() 78 if (words[i].flags) { in reboot_store() 79 param->flags |= words[i].flags; in reboot_store() 81 param->cmd = words[i].cmd; in reboot_store()
|
| /linux/tools/testing/selftests/net/tcp_ao/lib/ |
| H A D | utils.c | 8 size_t words = buflen / sizeof(int); in randomize_buffer() local 14 while (words--) in randomize_buffer()
|
| /linux/drivers/vdpa/solidrun/ |
| H A D | snet_ctrl.c | 141 u16 words, i, tot_words = 0; in snet_ctrl_read_from_dpu() local 188 words = min_t(u16, val & SNET_CTRL_DATA_SIZE_MASK, buf_words - tot_words); in snet_ctrl_read_from_dpu() 190 for (i = 0; i < words; i++) { in snet_ctrl_read_from_dpu() 195 tot_words += words; in snet_ctrl_read_from_dpu()
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_hw.c | 450 mac_req = (struct qlcnic_mac_req *)&req.words[0]; in qlcnic_82xx_sre_macaddr_change() 454 vlan_req = (struct qlcnic_vlan_req *)&req.words[1]; in qlcnic_82xx_sre_macaddr_change() 609 req.words[0] = cpu_to_le64(mode); in qlcnic_82xx_nic_set_promisc() 711 req.words[0] = cpu_to_le64(flag); in qlcnic_set_fw_loopback() 780 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); in qlcnic_82xx_set_rx_coalesce() 781 req.words[2] = cpu_to_le64(adapter->ahw->coal.rx_packets | in qlcnic_82xx_set_rx_coalesce() 783 req.words[5] = cpu_to_le64(adapter->ahw->coal.timer_out | in qlcnic_82xx_set_rx_coalesce() 841 req.words[0] = cpu_to_le64(word); in qlcnic_82xx_config_hw_lro() 868 req.words[0] = cpu_to_le64(enable); in qlcnic_config_bridged_mode() 924 req.words[0] = cpu_to_le64(word); in qlcnic_82xx_config_rss() [all …]
|
| /linux/usr/ |
| H A D | Makefile | 30 ifeq ($(words $(ramfs-input)),1) 40 ifeq ($(words $(subst .cpio.,$(space),$(ramfs-input))),2)
|
| /linux/drivers/xen/events/ |
| H A D | events_2l.c | 198 xen_ulong_t words; in evtchn_2l_handle_events() local 200 words = MASK_LSBS(pending_words, word_idx); in evtchn_2l_handle_events() 205 if (words == 0) { in evtchn_2l_handle_events() 210 word_idx = EVTCHN_FIRST_BIT(words); in evtchn_2l_handle_events()
|