/drivers/crypto/ccree/ |
D | cc_hw_queue_defs.h | 24 #define CC_HWQ_GENMASK(word, field) \ argument 25 CC_GENMASK(CC_DSCRPTR_QUEUE_WORD ## word ## _ ## field) 64 u32 word[HW_DESC_SIZE_WORDS]; member 224 pdesc->word[3] |= FIELD_PREP(WORD3_QUEUE_LAST_IND, 1); in set_queue_last_ind_bit() 240 pdesc->word[0] = lower_32_bits(addr); in set_din_type() 242 pdesc->word[5] |= FIELD_PREP(WORD5_DIN_ADDR_HIGH, upper_32_bits(addr)); in set_din_type() 244 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_DMA_MODE, dma_mode) | in set_din_type() 259 pdesc->word[0] = addr; in set_din_no_dma() 260 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_SIZE, size); in set_din_no_dma() 271 pdesc->word[0] |= CC_CPP_DIN_ADDR; in set_cpp_crypto_key() [all …]
|
/drivers/spi/ |
D | spi-bitbang-txrx.h | 49 u32 word, u8 bits) in bitbang_txrx_be_cpha0() argument 53 u32 oldbit = (!(word & (1<<(bits-1)))) << 31; in bitbang_txrx_be_cpha0() 55 for (word <<= (32 - bits); likely(bits); bits--) { in bitbang_txrx_be_cpha0() 59 if ((word & (1 << 31)) != oldbit) { in bitbang_txrx_be_cpha0() 60 setmosi(spi, word & (1 << 31)); in bitbang_txrx_be_cpha0() 61 oldbit = word & (1 << 31); in bitbang_txrx_be_cpha0() 70 word <<= 1; in bitbang_txrx_be_cpha0() 72 word |= getmiso(spi); in bitbang_txrx_be_cpha0() 75 return word; in bitbang_txrx_be_cpha0() 81 u32 word, u8 bits) in bitbang_txrx_be_cpha1() argument [all …]
|
D | spi-bitbang.c | 43 u32 word, u8 bits, unsigned flags); 48 u32 word, u8 bits, 58 u32 word, u8 bits, in bitbang_txrx_8() argument 70 u8 word = 0; in bitbang_txrx_8() local 73 word = *tx++; in bitbang_txrx_8() 74 word = txrx_word(spi, ns, word, bits, flags); in bitbang_txrx_8() 76 *rx++ = word; in bitbang_txrx_8() 86 u32 word, u8 bits, in bitbang_txrx_16() argument 98 u16 word = 0; in bitbang_txrx_16() local 101 word = *tx++; in bitbang_txrx_16() [all …]
|
D | spi-lp8841-rtc.c | 69 u32 word, u8 bits) in bitbang_txrx_be_cpha0_lsb() argument 79 setmosi(data, (word & 1)); in bitbang_txrx_be_cpha0_lsb() 84 word >>= 1; in bitbang_txrx_be_cpha0_lsb() 86 word |= (getmiso(data) << 31); in bitbang_txrx_be_cpha0_lsb() 94 word >>= shift; in bitbang_txrx_be_cpha0_lsb() 95 return word; in bitbang_txrx_be_cpha0_lsb() 107 u8 word = 0; in spi_lp8841_rtc_transfer_one() local 114 word = *tx++; in spi_lp8841_rtc_transfer_one() 116 SPI_MASTER_NO_RX, word, 8); in spi_lp8841_rtc_transfer_one() 123 word = bitbang_txrx_be_cpha0_lsb(data, 1, 0, in spi_lp8841_rtc_transfer_one() [all …]
|
D | spi-gpio.c | 136 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode0() argument 138 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); in spi_gpio_txrx_word_mode0() 142 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode1() argument 144 return bitbang_txrx_be_cpha1(spi, nsecs, 0, flags, word, bits); in spi_gpio_txrx_word_mode1() 148 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode2() argument 150 return bitbang_txrx_be_cpha0(spi, nsecs, 1, flags, word, bits); in spi_gpio_txrx_word_mode2() 154 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode3() argument 156 return bitbang_txrx_be_cpha1(spi, nsecs, 1, flags, word, bits); in spi_gpio_txrx_word_mode3() 170 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_spec_txrx_word_mode0() argument 173 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); in spi_gpio_spec_txrx_word_mode0() [all …]
|
D | spi-sh-sci.c | 79 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode0() argument 82 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); in sh_sci_spi_txrx_mode0() 86 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode1() argument 89 return bitbang_txrx_be_cpha1(spi, nsecs, 0, flags, word, bits); in sh_sci_spi_txrx_mode1() 93 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode2() argument 96 return bitbang_txrx_be_cpha0(spi, nsecs, 1, flags, word, bits); in sh_sci_spi_txrx_mode2() 100 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode3() argument 103 return bitbang_txrx_be_cpha1(spi, nsecs, 1, flags, word, bits); in sh_sci_spi_txrx_mode3()
|
/drivers/net/ethernet/qualcomm/emac/ |
D | emac-mac.h | 49 u32 word[6]; member 52 #define RRD_NOR(rrd) BITS_GET((rrd)->word[0], 16, 19) 54 #define RRD_SI(rrd) BITS_GET((rrd)->word[0], 20, 31) 56 #define RRD_CVALN_TAG(rrd) BITS_GET((rrd)->word[2], 0, 15) 58 #define RRD_PKT_SIZE(rrd) BITS_GET((rrd)->word[3], 0, 13) 60 #define RRD_L4F(rrd) BITS_GET((rrd)->word[3], 14, 14) 62 #define RRD_CVTAG(rrd) BITS_GET((rrd)->word[3], 16, 16) 66 #define RRD_UPDT(rrd) BITS_GET((rrd)->word[3], 31, 31) 67 #define RRD_UPDT_SET(rrd, val) BITS_SET((rrd)->word[3], 31, 31, val) 69 #define RRD_TS_LOW(rrd) BITS_GET((rrd)->word[4], 0, 29) [all …]
|
/drivers/irqchip/ |
D | irq-bcm7038-l1.c | 84 unsigned int word) in reg_status() argument 86 return (0 * intc->n_words + word) * sizeof(u32); in reg_status() 90 unsigned int word) in reg_mask_status() argument 92 return (1 * intc->n_words + word) * sizeof(u32); in reg_mask_status() 96 unsigned int word) in reg_mask_set() argument 98 return (2 * intc->n_words + word) * sizeof(u32); in reg_mask_set() 102 unsigned int word) in reg_mask_clr() argument 104 return (3 * intc->n_words + word) * sizeof(u32); in reg_mask_clr() 160 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm7038_l1_unmask() local 163 intc->cpus[cpu_idx]->mask_cache[word] &= ~mask; in __bcm7038_l1_unmask() [all …]
|
D | irq-bcm6345-l1.c | 92 unsigned int word) in reg_enable() argument 95 return (1 * intc->n_words - word - 1) * sizeof(u32); in reg_enable() 97 return (0 * intc->n_words + word) * sizeof(u32); in reg_enable() 102 unsigned int word) in reg_status() argument 105 return (2 * intc->n_words - word - 1) * sizeof(u32); in reg_status() 107 return (1 * intc->n_words + word) * sizeof(u32); in reg_status() 150 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm6345_l1_unmask() local 154 intc->cpus[cpu_idx]->enable_cache[word] |= mask; in __bcm6345_l1_unmask() 155 __raw_writel(intc->cpus[cpu_idx]->enable_cache[word], in __bcm6345_l1_unmask() 156 intc->cpus[cpu_idx]->map_base + reg_enable(intc, word)); in __bcm6345_l1_unmask() [all …]
|
/drivers/tty/ |
D | mips_ejtag_fdc.c | 191 u32 word; member 220 struct fdc_word word = { 0, 0 }; in mips_ejtag_fdc_encode() local 228 word.word |= (u8)*ptr << (8*word.bytes); in mips_ejtag_fdc_encode() 229 ++word.bytes; in mips_ejtag_fdc_encode() 230 if (word.bytes == 4) in mips_ejtag_fdc_encode() 236 switch (word.bytes) { in mips_ejtag_fdc_encode() 239 if ((word.word >> 8) != 0x808080 && in mips_ejtag_fdc_encode() 240 (word.word >> 16) != 0x8181 && in mips_ejtag_fdc_encode() 241 (word.word >> 24) != 0x82) in mips_ejtag_fdc_encode() 244 word.bytes = 3; in mips_ejtag_fdc_encode() [all …]
|
/drivers/xen/events/ |
D | events_fifo.c | 196 event_word_t *word = event_word_from_port(port); in evtchn_fifo_clear_pending() local 197 sync_clear_bit(EVTCHN_FIFO_BIT(PENDING, word), BM(word)); in evtchn_fifo_clear_pending() 202 event_word_t *word = event_word_from_port(port); in evtchn_fifo_set_pending() local 203 sync_set_bit(EVTCHN_FIFO_BIT(PENDING, word), BM(word)); in evtchn_fifo_set_pending() 208 event_word_t *word = event_word_from_port(port); in evtchn_fifo_is_pending() local 209 return sync_test_bit(EVTCHN_FIFO_BIT(PENDING, word), BM(word)); in evtchn_fifo_is_pending() 214 event_word_t *word = event_word_from_port(port); in evtchn_fifo_mask() local 215 sync_set_bit(EVTCHN_FIFO_BIT(MASKED, word), BM(word)); in evtchn_fifo_mask() 220 event_word_t *word = event_word_from_port(port); in evtchn_fifo_is_masked() local 221 return sync_test_bit(EVTCHN_FIFO_BIT(MASKED, word), BM(word)); in evtchn_fifo_is_masked() [all …]
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2500usb.c | 123 const unsigned int word, const u8 value) in rt2500usb_bbp_write() argument 136 rt2x00_set_field16(®, PHY_CSR7_REG_ID, word); in rt2500usb_bbp_write() 146 const unsigned int word) in rt2500usb_bbp_read() argument 163 rt2x00_set_field16(®, PHY_CSR7_REG_ID, word); in rt2500usb_bbp_read() 180 const unsigned int word, const u32 value) in rt2500usb_rf_write() argument 202 rt2x00_rf_write(rt2x00dev, word, value); in rt2500usb_rf_write() 1061 u32 word; in rt2500usb_write_tx_desc() local 1066 word = rt2x00_desc_read(txd, 0); in rt2500usb_write_tx_desc() 1067 rt2x00_set_field32(&word, TXD_W0_RETRY_LIMIT, txdesc->retry_limit); in rt2500usb_write_tx_desc() 1068 rt2x00_set_field32(&word, TXD_W0_MORE_FRAG, in rt2500usb_write_tx_desc() [all …]
|
D | rt2800mmio.c | 73 u32 word; in rt2800mmio_write_tx_desc() local 87 word = 0; in rt2800mmio_write_tx_desc() 88 rt2x00_set_field32(&word, TXD_W0_SD_PTR0, skbdesc->skb_dma); in rt2800mmio_write_tx_desc() 89 rt2x00_desc_write(txd, 0, word); in rt2800mmio_write_tx_desc() 91 word = 0; in rt2800mmio_write_tx_desc() 92 rt2x00_set_field32(&word, TXD_W1_SD_LEN1, entry->skb->len); in rt2800mmio_write_tx_desc() 93 rt2x00_set_field32(&word, TXD_W1_LAST_SEC1, in rt2800mmio_write_tx_desc() 95 rt2x00_set_field32(&word, TXD_W1_BURST, in rt2800mmio_write_tx_desc() 97 rt2x00_set_field32(&word, TXD_W1_SD_LEN0, txwi_size); in rt2800mmio_write_tx_desc() 98 rt2x00_set_field32(&word, TXD_W1_LAST_SEC0, 0); in rt2800mmio_write_tx_desc() [all …]
|
D | rt61pci.c | 55 const unsigned int word, const u8 value) in rt61pci_bbp_write() argument 68 rt2x00_set_field32(®, PHY_CSR3_REGNUM, word); in rt61pci_bbp_write() 79 const unsigned int word) in rt61pci_bbp_read() argument 96 rt2x00_set_field32(®, PHY_CSR3_REGNUM, word); in rt61pci_bbp_read() 113 const unsigned int word, const u32 value) in rt61pci_rf_write() argument 131 rt2x00_rf_write(rt2x00dev, word, value); in rt61pci_rf_write() 673 u8 word; member 727 rt61pci_bbp_write(rt2x00dev, sel[i].word, sel[i].value[lna]); in rt61pci_config_ant() 1290 u32 word; in rt61pci_get_entry_state() local 1293 word = rt2x00_desc_read(entry_priv->desc, 0); in rt61pci_get_entry_state() [all …]
|
D | rt73usb.c | 53 const unsigned int word, const u8 value) in rt73usb_bbp_write() argument 66 rt2x00_set_field32(®, PHY_CSR3_REGNUM, word); in rt73usb_bbp_write() 77 const unsigned int word) in rt73usb_bbp_read() argument 94 rt2x00_set_field32(®, PHY_CSR3_REGNUM, word); in rt73usb_bbp_read() 111 const unsigned int word, const u32 value) in rt73usb_rf_write() argument 135 rt2x00_rf_write(rt2x00dev, word, value); in rt73usb_rf_write() 654 u8 word; member 708 rt73usb_bbp_write(rt2x00dev, sel[i].word, sel[i].value[lna]); in rt73usb_config_ant() 1449 u32 word; in rt73usb_write_tx_desc() local 1454 word = rt2x00_desc_read(txd, 0); in rt73usb_write_tx_desc() [all …]
|
D | rt2500pci.c | 46 const unsigned int word, const u8 value) in rt2500pci_bbp_write() argument 59 rt2x00_set_field32(®, BBPCSR_REGNUM, word); in rt2500pci_bbp_write() 70 const unsigned int word) in rt2500pci_bbp_read() argument 87 rt2x00_set_field32(®, BBPCSR_REGNUM, word); in rt2500pci_bbp_read() 104 const unsigned int word, const u32 value) in rt2500pci_rf_write() argument 122 rt2x00_rf_write(rt2x00dev, word, value); in rt2500pci_rf_write() 806 u32 word; in rt2500pci_get_entry_state() local 809 word = rt2x00_desc_read(entry_priv->desc, 0); in rt2500pci_get_entry_state() 811 return rt2x00_get_field32(word, RXD_W0_OWNER_NIC); in rt2500pci_get_entry_state() 813 word = rt2x00_desc_read(entry_priv->desc, 0); in rt2500pci_get_entry_state() [all …]
|
D | rt2400pci.c | 46 const unsigned int word, const u8 value) in rt2400pci_bbp_write() argument 59 rt2x00_set_field32(®, BBPCSR_REGNUM, word); in rt2400pci_bbp_write() 70 const unsigned int word) in rt2400pci_bbp_read() argument 87 rt2x00_set_field32(®, BBPCSR_REGNUM, word); in rt2400pci_bbp_read() 104 const unsigned int word, const u32 value) in rt2400pci_rf_write() argument 122 rt2x00_rf_write(rt2x00dev, word, value); in rt2400pci_rf_write() 717 u32 word; in rt2400pci_get_entry_state() local 720 word = rt2x00_desc_read(entry_priv->desc, 0); in rt2400pci_get_entry_state() 722 return rt2x00_get_field32(word, RXD_W0_OWNER_NIC); in rt2400pci_get_entry_state() 724 word = rt2x00_desc_read(entry_priv->desc, 0); in rt2400pci_get_entry_state() [all …]
|
D | rt2x00queue.h | 638 static inline __le32 _rt2x00_desc_read(__le32 *desc, const u8 word) in _rt2x00_desc_read() argument 640 return desc[word]; in _rt2x00_desc_read() 649 static inline u32 rt2x00_desc_read(__le32 *desc, const u8 word) in rt2x00_desc_read() argument 651 return le32_to_cpu(_rt2x00_desc_read(desc, word)); in rt2x00_desc_read() 661 static inline void _rt2x00_desc_write(__le32 *desc, const u8 word, __le32 value) in _rt2x00_desc_write() argument 663 desc[word] = value; in _rt2x00_desc_write() 672 static inline void rt2x00_desc_write(__le32 *desc, const u8 word, u32 value) in rt2x00_desc_write() argument 674 _rt2x00_desc_write(desc, word, cpu_to_le32(value)); in rt2x00_desc_write()
|
/drivers/hwmon/pmbus/ |
D | lm25066.c | 378 u16 word) in lm25066_write_word_data() argument 395 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data() 396 ret = pmbus_write_word_data(client, 0, reg, word); in lm25066_write_word_data() 400 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data() 403 word); in lm25066_write_word_data() 407 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data() 410 word); in lm25066_write_word_data() 415 word = DIV_ROUND_CLOSEST((int)word * 6140, 293); in lm25066_write_word_data() 416 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data() 418 LM25056_VAUX_UV_WARN_LIMIT, word); in lm25066_write_word_data() [all …]
|
/drivers/staging/wlan-ng/ |
D | prism2mgmt.c | 134 u16 roamingmode, word; in prism2mgmt_scan() local 185 word = msg->maxchanneltime.data; in prism2mgmt_scan() 187 word = 0; in prism2mgmt_scan() 191 word); in prism2mgmt_scan() 199 word = HFA384x_RATEBIT_2; in prism2mgmt_scan() 200 scanreq.tx_rate = cpu_to_le16(word); in prism2mgmt_scan() 203 word = 0; in prism2mgmt_scan() 210 word |= (1 << (channel - 1)); in prism2mgmt_scan() 212 scanreq.channel_list = cpu_to_le16(word); in prism2mgmt_scan() 219 result = hfa384x_drvr_getconfig16(hw, HFA384x_RID_PORTSTATUS, &word); in prism2mgmt_scan() [all …]
|
/drivers/gpio/ |
D | gpio-max7301.c | 23 u16 word = ((reg & 0x7F) << 8) | (val & 0xFF); in max7301_spi_write() local 25 return spi_write_then_read(spi, &word, sizeof(word), NULL, 0); in max7301_spi_write() 33 u16 word; in max7301_spi_read() local 36 word = 0x8000 | (reg << 8); in max7301_spi_read() 37 ret = spi_write_then_read(spi, &word, sizeof(word), &word, in max7301_spi_read() 38 sizeof(word)); in max7301_spi_read() 41 return word & 0xff; in max7301_spi_read()
|
/drivers/media/platform/mtk-jpeg/ |
D | mtk_jpeg_dec_parse.c | 32 static int read_word_be(struct mtk_jpeg_stream *stream, u32 *word) in read_word_be() argument 44 *word = (u32)byte | temp; in read_word_be() 69 u32 word; in mtk_jpeg_do_parse() local 88 if (read_word_be(&stream, &word)) in mtk_jpeg_do_parse() 95 if (read_word_be(&stream, &word)) in mtk_jpeg_do_parse() 97 param->pic_h = word; in mtk_jpeg_do_parse() 99 if (read_word_be(&stream, &word)) in mtk_jpeg_do_parse() 101 param->pic_w = word; in mtk_jpeg_do_parse() 132 if (read_word_be(&stream, &word)) in mtk_jpeg_do_parse() 134 length = (long)word - 2; in mtk_jpeg_do_parse()
|
/drivers/mtd/maps/ |
D | esb2rom.c | 156 u16 word; in esb2rom_init_one() local 188 pci_read_config_word(pdev, FWH_DEC_EN1, &word); in esb2rom_init_one() 189 printk(KERN_DEBUG "pci_read_config_word : %x\n", word); in esb2rom_init_one() 191 if ((word & FWH_8MiB) == FWH_8MiB) in esb2rom_init_one() 193 else if ((word & FWH_7MiB) == FWH_7MiB) in esb2rom_init_one() 195 else if ((word & FWH_6MiB) == FWH_6MiB) in esb2rom_init_one() 197 else if ((word & FWH_5MiB) == FWH_5MiB) in esb2rom_init_one() 199 else if ((word & FWH_4MiB) == FWH_4MiB) in esb2rom_init_one() 201 else if ((word & FWH_3_5MiB) == FWH_3_5MiB) in esb2rom_init_one() 203 else if ((word & FWH_3MiB) == FWH_3MiB) in esb2rom_init_one() [all …]
|
/drivers/gpu/ipu-v3/ |
D | ipu-cpmem.c | 19 struct ipu_cpmem_word word[2]; member 30 #define IPU_CPMEM_WORD(word, ofs, size) ((((word) * 160 + (ofs)) << 8) | (size)) argument 105 u32 word = (wbs >> 8) / 160; in ipu_ch_param_write_field() local 111 pr_debug("%s %d %d %d\n", __func__, word, bit , size); in ipu_ch_param_write_field() 113 val = readl(&base->word[word].data[i]); in ipu_ch_param_write_field() 116 writel(val, &base->word[word].data[i]); in ipu_ch_param_write_field() 119 val = readl(&base->word[word].data[i + 1]); in ipu_ch_param_write_field() 122 writel(val, &base->word[word].data[i + 1]); in ipu_ch_param_write_field() 131 u32 word = (wbs >> 8) / 160; in ipu_ch_param_read_field() local 137 pr_debug("%s %d %d %d\n", __func__, word, bit , size); in ipu_ch_param_read_field() [all …]
|
/drivers/pci/ |
D | syscall.c | 20 u16 word; in SYSCALL_DEFINE5() local 40 cfg_ret = pci_user_read_config_word(dev, off, &word); in SYSCALL_DEFINE5() 59 err = put_user(word, (unsigned short __user *)buf); in SYSCALL_DEFINE5() 92 u16 word; in SYSCALL_DEFINE5() local 115 err = get_user(word, (u16 __user *)buf); in SYSCALL_DEFINE5() 118 err = pci_user_write_config_word(dev, off, word); in SYSCALL_DEFINE5()
|