Home
last modified time | relevance | path

Searched refs:pdesc (Results 1 – 25 of 56) sorted by relevance

123

/linux/drivers/crypto/ccree/
H A Dcc_hw_queue_defs.h211 static inline void hw_desc_init(struct cc_hw_desc *pdesc) in hw_desc_init() argument
213 memset(pdesc, 0, sizeof(struct cc_hw_desc)); in hw_desc_init()
222 static inline void set_queue_last_ind_bit(struct cc_hw_desc *pdesc) in set_queue_last_ind_bit() argument
224 pdesc->word[3] |= FIELD_PREP(WORD3_QUEUE_LAST_IND, 1); in set_queue_last_ind_bit()
236 static inline void set_din_type(struct cc_hw_desc *pdesc, in set_din_type() argument
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()
257 static inline void set_din_no_dma(struct cc_hw_desc *pdesc, u32 addr, u32 size) in set_din_no_dma() argument
259 pdesc->word[0] = addr; in set_din_no_dma()
[all …]
H A Dcc_driver.h229 struct cc_hw_desc *pdesc) in set_queue_last_ind() argument
232 set_queue_last_ind_bit(pdesc); in set_queue_last_ind()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Dtrx.c56 __le32 *pdesc = (__le32 *)pdesc8; in rtl92de_tx_fill_desc() local
91 clear_pci_tx_desc_content(pdesc, sizeof(struct tx_desc_92d)); in rtl92de_tx_fill_desc()
98 set_tx_desc_pkt_offset(pdesc, 1); in rtl92de_tx_fill_desc()
99 set_tx_desc_offset(pdesc, USB_HWDESC_HEADER_LEN + in rtl92de_tx_fill_desc()
109 set_tx_desc_offset(pdesc, USB_HWDESC_HEADER_LEN); in rtl92de_tx_fill_desc()
115 set_tx_desc_tx_rate(pdesc, ptcb_desc->hw_rate); in rtl92de_tx_fill_desc()
117 set_tx_desc_data_shortgi(pdesc, 1); in rtl92de_tx_fill_desc()
121 set_tx_desc_data_shortgi(pdesc, 1); in rtl92de_tx_fill_desc()
124 set_tx_desc_agg_enable(pdesc, 1); in rtl92de_tx_fill_desc()
125 set_tx_desc_max_agg_num(pdesc, 0x14); in rtl92de_tx_fill_desc()
[all …]
H A Dfw.c118 struct rtl_tx_desc *pdesc; in _rtl92d_cmd_send_packet() local
127 pdesc = &ring->desc[idx]; in _rtl92d_cmd_send_packet()
129 rtlpriv->cfg->ops->get_desc(hw, (u8 *)pdesc, true, HW_DESC_OWN); in _rtl92d_cmd_send_packet()
130 rtlpriv->cfg->ops->fill_tx_cmddesc(hw, (u8 *)pdesc, skb); in _rtl92d_cmd_send_packet()
H A Dtrx.h125 struct ieee80211_hdr *hdr, u8 *pdesc,
133 void rtl92de_tx_fill_cmddesc(struct ieee80211_hw *hw, u8 *pdesc,
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A Dtrx.c27 struct rtl_stats *pstatus, u8 *pdesc, in _rtl8723e_query_rxphystatus() argument
219 struct rtl_stats *pstatus, u8 *pdesc, in translate_rx_signal_stuff() argument
253 _rtl8723e_query_rxphystatus(hw, pstatus, pdesc, p_drvinfo, in translate_rx_signal_stuff()
267 __le32 *pdesc = (__le32 *)pdesc8; in rtl8723e_rx_query_desc() local
268 u32 phystatus = get_rx_desc_physt(pdesc); in rtl8723e_rx_query_desc()
270 status->length = (u16)get_rx_desc_pkt_len(pdesc); in rtl8723e_rx_query_desc()
271 status->rx_drvinfo_size = (u8)get_rx_desc_drv_info_size(pdesc) * in rtl8723e_rx_query_desc()
273 status->rx_bufshift = (u8)(get_rx_desc_shift(pdesc) & 0x03); in rtl8723e_rx_query_desc()
274 status->icv = (u16)get_rx_desc_icv(pdesc); in rtl8723e_rx_query_desc()
275 status->crc = (u16)get_rx_desc_crc32(pdesc); in rtl8723e_rx_query_desc()
[all …]
H A Dtrx.h516 u8 *pdesc, u8 *txbd,
524 u8 *pdesc, struct sk_buff *skb);
526 u8 *pdesc, bool istx, u8 desc_name, u8 *val);
528 u8 *pdesc, bool istx, u8 desc_name);
532 void rtl8723e_tx_fill_cmddesc(struct ieee80211_hw *hw, u8 *pdesc,
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dtrx.c30 __le32 *pdesc, in _rtl8723be_query_rxphystatus() argument
191 __le32 *pdesc, in _rtl8723be_translate_rx_signal_stuff() argument
235 _rtl8723be_query_rxphystatus(hw, pstatus, pdesc, p_drvinfo, in _rtl8723be_translate_rx_signal_stuff()
303 __le32 *pdesc = (__le32 *)pdesc8; in rtl8723be_rx_query_desc() local
304 u32 phystatus = get_rx_desc_physt(pdesc); in rtl8723be_rx_query_desc()
306 status->length = (u16)get_rx_desc_pkt_len(pdesc); in rtl8723be_rx_query_desc()
307 status->rx_drvinfo_size = (u8)get_rx_desc_drv_info_size(pdesc) * in rtl8723be_rx_query_desc()
309 status->rx_bufshift = (u8)(get_rx_desc_shift(pdesc) & 0x03); in rtl8723be_rx_query_desc()
310 status->icv = (u16)get_rx_desc_icv(pdesc); in rtl8723be_rx_query_desc()
311 status->crc = (u16)get_rx_desc_crc32(pdesc); in rtl8723be_rx_query_desc()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Dtrx.c28 struct rtl_stats *pstatus, __le32 *pdesc, in _rtl88ee_query_rxphystatus() argument
274 __le32 *pdesc, in _rtl88ee_translate_rx_signal_stuff() argument
309 _rtl88ee_query_rxphystatus(hw, pstatus, pdesc, p_drvinfo, in _rtl88ee_translate_rx_signal_stuff()
376 __le32 *pdesc = (__le32 *)pdesc8; in rtl88ee_rx_query_desc() local
377 u32 phystatus = get_rx_desc_physt(pdesc); in rtl88ee_rx_query_desc()
379 status->packet_report_type = (u8)get_rx_status_desc_rpt_sel(pdesc); in rtl88ee_rx_query_desc()
381 status->length = (u16)get_rx_rpt2_desc_pkt_len(pdesc); in rtl88ee_rx_query_desc()
383 status->length = (u16)get_rx_desc_pkt_len(pdesc); in rtl88ee_rx_query_desc()
384 status->rx_drvinfo_size = (u8)get_rx_desc_drv_info_size(pdesc) * in rtl88ee_rx_query_desc()
386 status->rx_bufshift = (u8)(get_rx_desc_shift(pdesc) & 0x03); in rtl88ee_rx_query_desc()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dtrx.c28 struct rx_desc_92c *pdesc, in _rtl92ce_query_rxphystatus() argument
43 is_cck_rate = RX_HAL_IS_CCK_RATE(pdesc->rxmcs); in _rtl92ce_query_rxphystatus()
214 struct rx_desc_92c *pdesc, in _rtl92ce_translate_rx_signal_stuff() argument
249 _rtl92ce_query_rxphystatus(hw, pstats, pdesc, p_drvinfo, in _rtl92ce_translate_rx_signal_stuff()
262 struct rx_desc_92c *pdesc = (struct rx_desc_92c *)p_desc8; in rtl92ce_rx_query_desc() local
284 stats->is_cck = RX_HAL_IS_CCK_RATE(pdesc->rxmcs); in rtl92ce_rx_query_desc()
332 skb, stats, pdesc, in rtl92ce_rx_query_desc()
353 __le32 *pdesc = (__le32 *)pdesc8; in rtl92ce_tx_fill_desc() local
388 clear_pci_tx_desc_content(pdesc, sizeof(struct tx_desc_92c)); in rtl92ce_tx_fill_desc()
395 set_tx_desc_offset(pdesc, USB_HWDESC_HEADER_LEN); in rtl92ce_tx_fill_desc()
[all …]
H A Dtrx.h513 struct ieee80211_hdr *hdr, u8 *pdesc,
521 u8 *pdesc, struct sk_buff *skb);
522 void rtl92ce_set_desc(struct ieee80211_hw *hw, u8 *pdesc, bool istx,
529 void rtl92ce_tx_fill_cmddesc(struct ieee80211_hw *hw, u8 *pdesc,
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
H A Dtrx.c36 struct rtl_stats *pstats, __le32 *pdesc, in _rtl92se_query_rxphystatus() argument
196 __le32 *pdesc, struct rx_fwinfo *p_drvinfo) in _rtl92se_translate_rx_signal_stuff() argument
228 _rtl92se_query_rxphystatus(hw, pstats, pdesc, p_drvinfo, in _rtl92se_translate_rx_signal_stuff()
238 __le32 *pdesc = (__le32 *)pdesc8; in rtl92se_rx_query_desc() local
239 u32 phystatus = (u32)get_rx_status_desc_phy_status(pdesc); in rtl92se_rx_query_desc()
242 stats->length = (u16)get_rx_status_desc_pkt_len(pdesc); in rtl92se_rx_query_desc()
243 stats->rx_drvinfo_size = (u8)get_rx_status_desc_drvinfo_size(pdesc) * 8; in rtl92se_rx_query_desc()
244 stats->rx_bufshift = (u8)(get_rx_status_desc_shift(pdesc) & 0x03); in rtl92se_rx_query_desc()
245 stats->icv = (u16)get_rx_status_desc_icv(pdesc); in rtl92se_rx_query_desc()
246 stats->crc = (u16)get_rx_status_desc_crc32(pdesc); in rtl92se_rx_query_desc()
[all …]
H A Dtrx.h8 struct ieee80211_hdr *hdr, u8 *pdesc,
13 void rtl92se_tx_fill_cmddesc(struct ieee80211_hw *hw, u8 *pdesc,
16 struct ieee80211_rx_status *rx_status, u8 *pdesc,
18 void rtl92se_set_desc(struct ieee80211_hw *hw, u8 *pdesc, bool istx,
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dtrx.c59 struct rtl_stats *pstatus, __le32 *pdesc, in query_rxphystatus() argument
277 struct rtl_stats *pstatus, __le32 *pdesc, in translate_rx_signal_stuff() argument
328 query_rxphystatus(hw, pstatus, pdesc, p_drvinfo, in translate_rx_signal_stuff()
387 static bool rtl8821ae_get_rxdesc_is_ht(struct ieee80211_hw *hw, __le32 *pdesc) in rtl8821ae_get_rxdesc_is_ht() argument
392 rx_rate = get_rx_desc_rxmcs(pdesc); in rtl8821ae_get_rxdesc_is_ht()
401 static bool rtl8821ae_get_rxdesc_is_vht(struct ieee80211_hw *hw, __le32 *pdesc) in rtl8821ae_get_rxdesc_is_vht() argument
406 rx_rate = get_rx_desc_rxmcs(pdesc); in rtl8821ae_get_rxdesc_is_vht()
415 static u8 rtl8821ae_get_rx_vht_nss(struct ieee80211_hw *hw, __le32 *pdesc) in rtl8821ae_get_rx_vht_nss() argument
420 rx_rate = get_rx_desc_rxmcs(pdesc); in rtl8821ae_get_rx_vht_nss()
440 __le32 *pdesc = (__le32 *)pdesc8; in rtl8821ae_rx_query_desc() local
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Dtrx.c29 struct rtl_stats *pstatus, u8 *pdesc, in _rtl92ee_query_rxphystatus() argument
217 u8 *pdesc, in _rtl92ee_translate_rx_signal_stuff() argument
268 _rtl92ee_query_rxphystatus(hw, pstatus, pdesc, p_drvinfo, in _rtl92ee_translate_rx_signal_stuff()
335 __le32 *pdesc = (__le32 *)pdesc8; in rtl92ee_rx_query_desc() local
336 u32 phystatus = get_rx_desc_physt(pdesc); in rtl92ee_rx_query_desc()
339 if (get_rx_status_desc_rpt_sel(pdesc) == 0) in rtl92ee_rx_query_desc()
343 status->length = (u16)get_rx_desc_pkt_len(pdesc); in rtl92ee_rx_query_desc()
344 status->rx_drvinfo_size = (u8)get_rx_desc_drv_info_size(pdesc) * in rtl92ee_rx_query_desc()
346 status->rx_bufshift = (u8)(get_rx_desc_shift(pdesc) & 0x03); in rtl92ee_rx_query_desc()
347 status->icv = (u16)get_rx_desc_icv(pdesc); in rtl92ee_rx_query_desc()
[all …]
H A Dtrx.h310 static inline void set_tx_buff_desc_addr_high_0(__le32 *pdesc, u32 val, in set_tx_buff_desc_addr_high_0() argument
314 *(pdesc + 2) = cpu_to_le32(val); in set_tx_buff_desc_addr_high_0()
316 *(pdesc + 2) = 0; in set_tx_buff_desc_addr_high_0()
734 u8 *pdesc, struct sk_buff *skb);
735 void rtl92ee_set_desc(struct ieee80211_hw *hw, u8 *pdesc, bool istx,
739 u8 *pdesc, bool istx, u8 desc_name);
742 void rtl92ee_tx_fill_cmddesc(struct ieee80211_hw *hw, u8 *pdesc,
/linux/tools/testing/selftests/kvm/
H A Dkvm_binary_stats_test.c32 struct kvm_stats_desc *pdesc; in stats_test() local
76 pdesc = get_stats_descriptor(stats_desc, i, &header); in stats_test()
77 type = pdesc->flags & KVM_STATS_TYPE_MASK; in stats_test()
78 unit = pdesc->flags & KVM_STATS_UNIT_MASK; in stats_test()
79 base = pdesc->flags & KVM_STATS_BASE_MASK; in stats_test()
82 TEST_ASSERT(strlen(pdesc->name) < header.name_size, in stats_test()
87 "Unknown KVM stats (%s) type: %u", pdesc->name, type); in stats_test()
89 "Unknown KVM stats (%s) unit: %u", pdesc->name, unit); in stats_test()
91 "Unknown KVM stats (%s) base: %u", pdesc->name, base); in stats_test()
102 switch (pdesc->flags & KVM_STATS_UNIT_MASK) { in stats_test()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192d/
H A Dtrx_common.c22 __le32 *pdesc, in _rtl92d_query_rxphystatus() argument
39 rxmcs = get_rx_desc_rxmcs(pdesc); in _rtl92d_query_rxphystatus()
150 if (get_rx_desc_rxht(pdesc) && rxmcs >= DESC_RATEMCS8 && in _rtl92d_query_rxphystatus()
349 __le32 *pdesc, in _rtl92d_translate_rx_signal_stuff() argument
378 _rtl92d_query_rxphystatus(hw, pstats, pdesc, p_drvinfo, in _rtl92d_translate_rx_signal_stuff()
388 __le32 *pdesc = (__le32 *)pdesc8; in rtl92d_rx_query_desc() local
390 u32 phystatus = get_rx_desc_physt(pdesc); in rtl92d_rx_query_desc()
392 stats->length = (u16)get_rx_desc_pkt_len(pdesc); in rtl92d_rx_query_desc()
393 stats->rx_drvinfo_size = (u8)get_rx_desc_drv_info_size(pdesc) * in rtl92d_rx_query_desc()
395 stats->rx_bufshift = (u8)(get_rx_desc_shift(pdesc) & 0x03); in rtl92d_rx_query_desc()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Dtrx.c296 __le32 *pdesc = (__le32 *)pdesc8; in rtl92cu_rx_query_desc() local
297 u32 phystatus = get_rx_desc_phy_status(pdesc); in rtl92cu_rx_query_desc()
299 stats->length = (u16)get_rx_desc_pkt_len(pdesc); in rtl92cu_rx_query_desc()
300 stats->rx_drvinfo_size = (u8)get_rx_desc_drvinfo_size(pdesc) * in rtl92cu_rx_query_desc()
302 stats->rx_bufshift = (u8)(get_rx_desc_shift(pdesc) & 0x03); in rtl92cu_rx_query_desc()
303 stats->icv = (u16)get_rx_desc_icv(pdesc); in rtl92cu_rx_query_desc()
304 stats->crc = (u16)get_rx_desc_crc32(pdesc); in rtl92cu_rx_query_desc()
306 stats->decrypted = !get_rx_desc_swdec(pdesc); in rtl92cu_rx_query_desc()
307 stats->rate = (u8)get_rx_desc_rx_mcs(pdesc); in rtl92cu_rx_query_desc()
308 stats->shortpreamble = (u16)get_rx_desc_splcp(pdesc); in rtl92cu_rx_query_desc()
[all …]
H A Dmac.c587 __le32 *pdesc = (__le32 *)p_desc; in _rtl92c_query_rxphystatus() local
685 if (get_rx_desc_rx_mcs(pdesc) && in _rtl92c_query_rxphystatus()
686 get_rx_desc_rx_mcs(pdesc) >= DESC_RATEMCS8 && in _rtl92c_query_rxphystatus()
687 get_rx_desc_rx_mcs(pdesc) <= DESC_RATEMCS15) in _rtl92c_query_rxphystatus()
713 struct rx_desc_92c *pdesc, in rtl92c_translate_rx_signal_stuff() argument
743 _rtl92c_query_rxphystatus(hw, pstats, pdesc, p_drvinfo, in rtl92c_translate_rx_signal_stuff()
/linux/drivers/pinctrl/aspeed/
H A Dpinctrl-aspeed.c159 static char *get_defined_attribute(const struct aspeed_pin_desc *pdesc, in get_defined_attribute() argument
167 prios = pdesc->prios; in get_defined_attribute()
208 static char *get_defined_functions(const struct aspeed_pin_desc *pdesc) in get_defined_functions() argument
210 return get_defined_attribute(pdesc, aspeed_sig_expr_function); in get_defined_functions()
218 static char *get_defined_signals(const struct aspeed_pin_desc *pdesc) in get_defined_signals() argument
220 return get_defined_attribute(pdesc, aspeed_sig_expr_signal); in get_defined_signals()
235 const struct aspeed_pin_desc *pdesc = pdata->pins[pin].drv_data; in aspeed_pinmux_set_mux() local
240 if (!pdesc) in aspeed_pinmux_set_mux()
243 pr_debug("Muxing pin %s for %s\n", pdesc->name, pfunc->name); in aspeed_pinmux_set_mux()
245 prios = pdesc->prios; in aspeed_pinmux_set_mux()
[all …]
/linux/drivers/mtd/parsers/
H A Dscpart.c40 static uint32_t scpart_desc_is_valid(struct sc_part_desc *pdesc) in scpart_desc_is_valid() argument
42 return ((pdesc->part_id != 0xffffffffUL) && in scpart_desc_is_valid()
43 (pdesc->part_offs != 0xffffffffUL) && in scpart_desc_is_valid()
44 (pdesc->part_bytes != 0xffffffffUL)); in scpart_desc_is_valid()
55 struct sc_part_desc *pdesc = NULL; in scpart_scan_partmap() local
81 int bytes = cnt * sizeof(*pdesc); in scpart_scan_partmap()
83 pdesc = kcalloc(cnt, sizeof(*pdesc), GFP_KERNEL); in scpart_scan_partmap()
84 if (!pdesc) { in scpart_scan_partmap()
88 memcpy(pdesc, &(buf[MAP_OFFS_IN_BLK]), bytes); in scpart_scan_partmap()
90 *ppdesc = pdesc; in scpart_scan_partmap()
/linux/drivers/pinctrl/samsung/
H A Dpinctrl-samsung.c747 const struct pinctrl_pin_desc *pdesc; in samsung_pinctrl_create_groups() local
756 pdesc = ctrldesc->pins; in samsung_pinctrl_create_groups()
757 for (i = 0; i < ctrldesc->npins; ++i, ++pdesc, ++grp) { in samsung_pinctrl_create_groups()
758 grp->name = pdesc->name; in samsung_pinctrl_create_groups()
759 grp->pins = &pdesc->number; in samsung_pinctrl_create_groups()
923 struct pinctrl_pin_desc *pindesc, *pdesc; in samsung_pinctrl_register() local
943 for (pin = 0, pdesc = pindesc; pin < ctrldesc->npins; pin++, pdesc++) in samsung_pinctrl_register()
944 pdesc->number = pin; in samsung_pinctrl_register()
963 pdesc = pindesc + pin_bank->pin_base + pin; in samsung_pinctrl_register()
964 pdesc->name = pin_names; in samsung_pinctrl_register()
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dpci.c671 struct rtl_rx_desc *pdesc = NULL; in _rtl_pci_rx_interrupt() local
686 pdesc = (struct rtl_rx_desc *)skb->data; in _rtl_pci_rx_interrupt()
688 pdesc = &rtlpci->rx_ring[rxring_idx].desc[ in _rtl_pci_rx_interrupt()
691 own = (u8)rtlpriv->cfg->ops->get_desc(hw, (u8 *)pdesc, in _rtl_pci_rx_interrupt()
711 &rx_status, (u8 *)pdesc, skb); in _rtl_pci_rx_interrupt()
718 len = rtlpriv->cfg->ops->get_desc(hw, (u8 *)pdesc, false, in _rtl_pci_rx_interrupt()
815 if (!_rtl_pci_init_one_rxdesc(hw, skb, (u8 *)pdesc, in _rtl_pci_rx_interrupt()
823 rtlpriv->cfg->ops->set_desc(hw, (u8 *)pdesc, in _rtl_pci_rx_interrupt()
1014 struct rtl_tx_desc *pdesc = NULL; in _rtl_pci_prepare_bcn_tasklet() local
1042 pdesc = &ring->desc[0]; in _rtl_pci_prepare_bcn_tasklet()
[all …]
/linux/drivers/dma/
H A Dst_fdma.c87 ch_cmd = fchan->fdesc->node[0].pdesc | FDMA_CH_CMD_STA_START; in st_fdma_xfer_desc()
234 fdesc->node[i].pdesc); in st_fdma_free_desc()
252 GFP_NOWAIT, &fdesc->node[i].pdesc); in st_fdma_alloc_desc()
261 fdesc->node[i].pdesc); in st_fdma_alloc_desc()
487 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_dma_cyclic()
536 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_slave_sg()
571 if (cur_addr == fdesc->node[i].pdesc) { in st_fdma_desc_residue()

123