Home
last modified time | relevance | path

Searched refs:word (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/drivers/crypto/ccree/
Dcc_hw_queue_defs.h24 #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/
Dspi-bitbang-txrx.h49 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 …]
Dspi-bitbang.c43 u32 word, u8 bits, unsigned flags);
48 u32 word, u8 bits,
58 u32 word, u8 bits, in bitbang_txrx_8() argument
71 u8 word = 0; in bitbang_txrx_8() local
74 word = *tx++; in bitbang_txrx_8()
75 word = txrx_word(spi, ns, word, bits, flags); in bitbang_txrx_8()
77 *rx++ = word; in bitbang_txrx_8()
87 u32 word, u8 bits, in bitbang_txrx_16() argument
100 u16 word = 0; in bitbang_txrx_16() local
103 word = *tx++; in bitbang_txrx_16()
[all …]
Dspi-lp8841-rtc.c69 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 …]
Dspi-gpio.c136 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 …]
/drivers/net/ethernet/qualcomm/emac/
Demac-mac.h49 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/
Dirq-bcm7038-l1.c84 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()
158 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm7038_l1_unmask() local
161 intc->cpus[cpu_idx]->mask_cache[word] &= ~mask; in __bcm7038_l1_unmask()
[all …]
Dirq-bcm6345-l1.c92 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/
Dmips_ejtag_fdc.c191 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/
Devents_fifo.c196 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/gpu/drm/tegra/
Dfirewall.c17 static int fw_next(struct tegra_drm_firewall *fw, u32 *word) in fw_next() argument
22 *word = fw->data[fw->pos++]; in fw_next()
44 u32 word; in fw_check_reg() local
47 err = fw_next(fw, &word); in fw_check_reg()
60 if (!fw_check_addr_valid(fw, word)) in fw_check_reg()
161 u32 word, opcode, offset, count, mask, class; in tegra_drm_fw_validate() local
163 err = fw_next(&fw, &word); in tegra_drm_fw_validate()
167 opcode = (word & 0xf0000000) >> 28; in tegra_drm_fw_validate()
171 offset = word >> 16 & 0xfff; in tegra_drm_fw_validate()
172 mask = word & 0x3f; in tegra_drm_fw_validate()
[all …]
/drivers/net/wireless/ralink/rt2x00/
Drt2500usb.c123 const unsigned int word, const u8 value) in rt2500usb_bbp_write() argument
136 rt2x00_set_field16(&reg, PHY_CSR7_REG_ID, word); in rt2500usb_bbp_write()
146 const unsigned int word) in rt2500usb_bbp_read() argument
163 rt2x00_set_field16(&reg, 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 …]
Drt2800mmio.c73 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 …]
Drt61pci.c55 const unsigned int word, const u8 value) in rt61pci_bbp_write() argument
68 rt2x00_set_field32(&reg, PHY_CSR3_REGNUM, word); in rt61pci_bbp_write()
79 const unsigned int word) in rt61pci_bbp_read() argument
96 rt2x00_set_field32(&reg, 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 …]
Drt73usb.c53 const unsigned int word, const u8 value) in rt73usb_bbp_write() argument
66 rt2x00_set_field32(&reg, PHY_CSR3_REGNUM, word); in rt73usb_bbp_write()
77 const unsigned int word) in rt73usb_bbp_read() argument
94 rt2x00_set_field32(&reg, 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 …]
Drt2500pci.c46 const unsigned int word, const u8 value) in rt2500pci_bbp_write() argument
59 rt2x00_set_field32(&reg, BBPCSR_REGNUM, word); in rt2500pci_bbp_write()
70 const unsigned int word) in rt2500pci_bbp_read() argument
87 rt2x00_set_field32(&reg, 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 …]
Drt2400pci.c46 const unsigned int word, const u8 value) in rt2400pci_bbp_write() argument
59 rt2x00_set_field32(&reg, BBPCSR_REGNUM, word); in rt2400pci_bbp_write()
70 const unsigned int word) in rt2400pci_bbp_read() argument
87 rt2x00_set_field32(&reg, 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 …]
/drivers/hwmon/pmbus/
Dlm25066.c378 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()
399 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
402 word); in lm25066_write_word_data()
405 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
408 word); in lm25066_write_word_data()
412 word = DIV_ROUND_CLOSEST((int)word * 6140, 293); in lm25066_write_word_data()
413 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
415 LM25056_VAUX_UV_WARN_LIMIT, word); in lm25066_write_word_data()
[all …]
Dmp2888.c263 static int mp2888_write_word_data(struct i2c_client *client, int page, int reg, u16 word) in mp2888_write_word_data() argument
270 word = DIV_ROUND_CLOSEST(word, MP2888_TEMP_UNIT); in mp2888_write_word_data()
272 word = clamp_val(word, 0, GENMASK(7, 0)); in mp2888_write_word_data()
276 word = data->total_curr_resolution ? DIV_ROUND_CLOSEST(word, 8) : in mp2888_write_word_data()
277 DIV_ROUND_CLOSEST(word, 4); in mp2888_write_word_data()
279 word = clamp_val(word, 0, GENMASK(9, 0)); in mp2888_write_word_data()
283 word = data->total_curr_resolution ? DIV_ROUND_CLOSEST(word, 4) : in mp2888_write_word_data()
284 DIV_ROUND_CLOSEST(word, 2); in mp2888_write_word_data()
286 word = clamp_val(word, 0, GENMASK(9, 0)); in mp2888_write_word_data()
291 return pmbus_write_word_data(client, page, reg, word); in mp2888_write_word_data()
Dstpddc60.c64 static u16 stpddc60_adjust_linear(u16 word, s16 fixed) in stpddc60_adjust_linear() argument
68 e = ((s16)word) >> 11; in stpddc60_adjust_linear()
69 m = ((s16)((word & 0x7ff) << 5)) >> 5; in stpddc60_adjust_linear()
146 int reg, u16 word) in stpddc60_write_word_data() argument
160 offset = stpddc60_get_offset(ret, word, true); in stpddc60_write_word_data()
170 offset = stpddc60_get_offset(ret, word, false); in stpddc60_write_word_data()
185 word = stpddc60_adjust_linear(word, ret >> 11); in stpddc60_write_word_data()
186 ret = pmbus_write_word_data(client, page, reg, word); in stpddc60_write_word_data()
/drivers/staging/wlan-ng/
Dprism2mgmt.c134 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/
Dgpio-max7301.c23 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/
Dmtk_jpeg_dec_parse.c32 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/
Desb2rom.c156 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/
Dipu-cpmem.c19 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 …]

12345678910>>...12