Home
last modified time | relevance | path

Searched refs:desc_info (Results 1 – 19 of 19) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/rocker/
Drocker_tlv.h122 const struct rocker_desc_info *desc_info) in rocker_tlv_parse_desc() argument
124 rocker_tlv_parse(tb, maxtype, desc_info->data, in rocker_tlv_parse_desc()
125 desc_info->desc->tlv_size); in rocker_tlv_parse_desc()
129 rocker_tlv_start(struct rocker_desc_info *desc_info) in rocker_tlv_start() argument
131 return (struct rocker_tlv *) ((char *) desc_info->data + in rocker_tlv_start()
132 desc_info->tlv_size); in rocker_tlv_start()
135 int rocker_tlv_put(struct rocker_desc_info *desc_info,
139 rocker_tlv_put_u8(struct rocker_desc_info *desc_info, int attrtype, u8 value) in rocker_tlv_put_u8() argument
143 return rocker_tlv_put(desc_info, attrtype, sizeof(u8), &tmp); in rocker_tlv_put_u8()
147 rocker_tlv_put_u16(struct rocker_desc_info *desc_info, int attrtype, u16 value) in rocker_tlv_put_u16() argument
[all …]
Drocker_main.c315 static int rocker_desc_err(const struct rocker_desc_info *desc_info) in rocker_desc_err() argument
317 int err = desc_info->desc->comp_err & ~ROCKER_DMA_DESC_COMP_ERR_GEN; in rocker_desc_err()
343 static void rocker_desc_gen_clear(const struct rocker_desc_info *desc_info) in rocker_desc_gen_clear() argument
345 desc_info->desc->comp_err &= ~ROCKER_DMA_DESC_COMP_ERR_GEN; in rocker_desc_gen_clear()
348 static bool rocker_desc_gen(const struct rocker_desc_info *desc_info) in rocker_desc_gen() argument
350 u32 comp_err = desc_info->desc->comp_err; in rocker_desc_gen()
356 rocker_desc_cookie_ptr_get(const struct rocker_desc_info *desc_info) in rocker_desc_cookie_ptr_get() argument
358 return (void *)(uintptr_t)desc_info->desc->cookie; in rocker_desc_cookie_ptr_get()
361 static void rocker_desc_cookie_ptr_set(const struct rocker_desc_info *desc_info, in rocker_desc_cookie_ptr_set() argument
364 desc_info->desc->cookie = (uintptr_t) ptr; in rocker_desc_cookie_ptr_set()
[all …]
Drocker_ofdpa.c305 ofdpa_cmd_flow_tbl_add_ig_port(struct rocker_desc_info *desc_info, in ofdpa_cmd_flow_tbl_add_ig_port() argument
308 if (rocker_tlv_put_u32(desc_info, ROCKER_TLV_OF_DPA_IN_PPORT, in ofdpa_cmd_flow_tbl_add_ig_port()
311 if (rocker_tlv_put_u32(desc_info, ROCKER_TLV_OF_DPA_IN_PPORT_MASK, in ofdpa_cmd_flow_tbl_add_ig_port()
314 if (rocker_tlv_put_u16(desc_info, ROCKER_TLV_OF_DPA_GOTO_TABLE_ID, in ofdpa_cmd_flow_tbl_add_ig_port()
322 ofdpa_cmd_flow_tbl_add_vlan(struct rocker_desc_info *desc_info, in ofdpa_cmd_flow_tbl_add_vlan() argument
325 if (rocker_tlv_put_u32(desc_info, ROCKER_TLV_OF_DPA_IN_PPORT, in ofdpa_cmd_flow_tbl_add_vlan()
328 if (rocker_tlv_put_be16(desc_info, ROCKER_TLV_OF_DPA_VLAN_ID, in ofdpa_cmd_flow_tbl_add_vlan()
331 if (rocker_tlv_put_be16(desc_info, ROCKER_TLV_OF_DPA_VLAN_ID_MASK, in ofdpa_cmd_flow_tbl_add_vlan()
334 if (rocker_tlv_put_u16(desc_info, ROCKER_TLV_OF_DPA_GOTO_TABLE_ID, in ofdpa_cmd_flow_tbl_add_vlan()
338 rocker_tlv_put_be16(desc_info, ROCKER_TLV_OF_DPA_NEW_VLAN_ID, in ofdpa_cmd_flow_tbl_add_vlan()
[all …]
Drocker_tlv.c32 int rocker_tlv_put(struct rocker_desc_info *desc_info, in rocker_tlv_put() argument
35 int tail_room = desc_info->data_size - desc_info->tlv_size; in rocker_tlv_put()
42 tlv = rocker_tlv_start(desc_info); in rocker_tlv_put()
43 desc_info->tlv_size += total_size; in rocker_tlv_put()
Drocker.h34 struct rocker_desc_info *desc_info; member
76 struct rocker_desc_info *desc_info,
80 const struct rocker_desc_info *desc_info,
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dcore.c441 struct rtw89_tx_desc_info *desc_info = &tx_req->desc_info; in rtw89_core_tx_update_ampdu_info() local
448 desc_info->bk = true; in rtw89_core_tx_update_ampdu_info()
467 desc_info->agg_en = true; in rtw89_core_tx_update_ampdu_info()
468 desc_info->ampdu_density = sta->deflink.ht_cap.ampdu_density; in rtw89_core_tx_update_ampdu_info()
469 desc_info->ampdu_num = ampdu_num; in rtw89_core_tx_update_ampdu_info()
485 struct rtw89_tx_desc_info *desc_info = &tx_req->desc_info; in rtw89_core_tx_update_sec_key() local
533 desc_info->sec_en = true; in rtw89_core_tx_update_sec_key()
534 desc_info->sec_keyid = key->keyidx; in rtw89_core_tx_update_sec_key()
535 desc_info->sec_type = sec_type; in rtw89_core_tx_update_sec_key()
536 desc_info->sec_cam_idx = sec_cam->sec_cam_idx; in rtw89_core_tx_update_sec_key()
[all …]
Dpci.c205 const struct rtw89_rx_desc_info *desc_info) in rtw89_skb_put_rx_data() argument
212 rx_info->len, desc_info->pkt_size, offset, fs, ls); in rtw89_skb_put_rx_data()
217 copy_len = desc_info->pkt_size; in rtw89_skb_put_rx_data()
234 struct rtw89_rx_desc_info *desc_info = &rx_ring->diliver_desc; in rtw89_pci_rxbd_deliver_skbs() local
263 if (desc_info->ready) { in rtw89_pci_rxbd_deliver_skbs()
268 rtw89_chip_query_rxdesc(rtwdev, desc_info, skb->data, rxinfo_size); in rtw89_pci_rxbd_deliver_skbs()
270 new = rtw89_alloc_skb_for_rx(rtwdev, desc_info->pkt_size); in rtw89_pci_rxbd_deliver_skbs()
277 offset = desc_info->offset + desc_info->rxd_len; in rtw89_pci_rxbd_deliver_skbs()
285 if (!rtw89_skb_put_rx_data(rtwdev, fs, ls, new, skb, offset, rx_info, desc_info)) in rtw89_pci_rxbd_deliver_skbs()
290 if (!desc_info->ready) { in rtw89_pci_rxbd_deliver_skbs()
[all …]
Dcore.h1056 struct rtw89_tx_desc_info desc_info; member
3074 struct rtw89_rx_desc_info *desc_info,
3077 struct rtw89_tx_desc_info *desc_info,
3080 struct rtw89_tx_desc_info *desc_info,
5163 struct rtw89_rx_desc_info *desc_info, in rtw89_chip_query_rxdesc() argument
5168 chip->ops->query_rxdesc(rtwdev, desc_info, data, data_offset); in rtw89_chip_query_rxdesc()
5173 struct rtw89_tx_desc_info *desc_info, in rtw89_chip_fill_txdesc() argument
5178 chip->ops->fill_txdesc(rtwdev, desc_info, txdesc); in rtw89_chip_fill_txdesc()
5183 struct rtw89_tx_desc_info *desc_info, in rtw89_chip_fill_txdesc_fwcmd() argument
5188 chip->ops->fill_txdesc_fwcmd(rtwdev, desc_info, txdesc); in rtw89_chip_fill_txdesc_fwcmd()
[all …]
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c176 struct ionic_desc_info *desc_info, in ionic_rx_frags() argument
190 buf_info = &desc_info->bufs[0]; in ionic_rx_frags()
237 struct ionic_desc_info *desc_info, in ionic_rx_copybreak() argument
249 buf_info = &desc_info->bufs[0]; in ionic_rx_copybreak()
278 struct ionic_desc_info *desc_info, in ionic_rx_clean() argument
301 skb = ionic_rx_copybreak(q, desc_info, comp); in ionic_rx_clean()
303 skb = ionic_rx_frags(q, desc_info, comp); in ionic_rx_clean()
379 struct ionic_desc_info *desc_info; in ionic_rx_service() local
394 desc_info = &q->info[q->tail_idx]; in ionic_rx_service()
398 ionic_rx_clean(q, desc_info, cq_info, desc_info->cb_arg); in ionic_rx_service()
[all …]
Dionic_main.c215 struct ionic_desc_info *desc_info; in ionic_adminq_flush() local
228 desc_info = &q->info[q->tail_idx]; in ionic_adminq_flush()
229 memset(desc_info->desc, 0, sizeof(union ionic_adminq_cmd)); in ionic_adminq_flush()
230 desc_info->cb = NULL; in ionic_adminq_flush()
231 desc_info->cb_arg = NULL; in ionic_adminq_flush()
272 struct ionic_desc_info *desc_info, in ionic_adminq_cb() argument
323 struct ionic_desc_info *desc_info; in ionic_adminq_post() local
345 desc_info = &q->info[q->head_idx]; in ionic_adminq_post()
346 memcpy(desc_info->desc, &ctx->cmd, sizeof(ctx->cmd)); in ionic_adminq_post()
Dionic_dev.c765 struct ionic_desc_info *desc_info; in ionic_q_post() local
769 desc_info = &q->info[q->head_idx]; in ionic_q_post()
770 desc_info->cb = cb; in ionic_q_post()
771 desc_info->cb_arg = cb_arg; in ionic_q_post()
805 struct ionic_desc_info *desc_info; in ionic_q_service() local
821 desc_info = &q->info[q->tail_idx]; in ionic_q_service()
825 cb = desc_info->cb; in ionic_q_service()
826 cb_arg = desc_info->cb_arg; in ionic_q_service()
828 desc_info->cb = NULL; in ionic_q_service()
829 desc_info->cb_arg = NULL; in ionic_q_service()
[all …]
Dionic_dev.h188 struct ionic_desc_info *desc_info,
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Ddp_rx.c2602 struct ath12k_rx_desc_info *desc_info; in ath12k_dp_rx_process() local
2637 desc_info = (struct ath12k_rx_desc_info *)((unsigned long)desc_va); in ath12k_dp_rx_process()
2640 if (!desc_info) { in ath12k_dp_rx_process()
2641 desc_info = ath12k_dp_get_rx_desc(ab, cookie); in ath12k_dp_rx_process()
2642 if (!desc_info) { in ath12k_dp_rx_process()
2648 if (desc_info->magic != ATH12K_DP_RX_DESC_MAGIC) in ath12k_dp_rx_process()
2651 msdu = desc_info->skb; in ath12k_dp_rx_process()
2652 desc_info->skb = NULL; in ath12k_dp_rx_process()
2655 list_move_tail(&desc_info->list, &dp->rx_desc_free_list); in ath12k_dp_rx_process()
2990 struct ath12k_rx_desc_info *desc_info; in ath12k_dp_rx_h_defrag_reo_reinject() local
[all …]
Ddp.c1128 struct ath12k_rx_desc_info *desc_info, *tmp; in ath12k_dp_cc_cleanup() local
1141 list_for_each_entry_safe(desc_info, tmp, &dp->rx_desc_used_list, list) { in ath12k_dp_cc_cleanup()
1142 list_del(&desc_info->list); in ath12k_dp_cc_cleanup()
1143 skb = desc_info->skb; in ath12k_dp_cc_cleanup()
/linux-6.6.21/drivers/ata/
Dsata_fsl.c227 __le32 desc_info; member
409 unsigned int tag, u32 desc_info, in sata_fsl_setup_cmd_hdr_entry() argument
424 pp->cmdslot[tag].desc_info = cpu_to_le32(desc_info | (tag & 0x1F)); in sata_fsl_setup_cmd_hdr_entry()
430 le32_to_cpu(pp->cmdslot[tag].desc_info)); in sata_fsl_setup_cmd_hdr_entry()
506 u32 desc_info = CMD_DESC_RES | CMD_DESC_SNOOP_ENABLE; in sata_fsl_qc_prep() local
518 desc_info |= ATAPI_CMD; in sata_fsl_qc_prep()
529 desc_info |= FPDMA_QUEUED_CMD; in sata_fsl_qc_prep()
531 sata_fsl_setup_cmd_hdr_entry(ap, pp, tag, desc_info, ttl_dwords, in sata_fsl_qc_prep()
535 desc_info, ttl_dwords, num_prde); in sata_fsl_qc_prep()
/linux-6.6.21/include/linux/soc/ti/
Dknav_dma.h145 __le32 desc_info; member
/linux-6.6.21/drivers/net/ethernet/ti/
Dnetcp_core.c116 static void get_desc_info(u32 *desc_info, u32 *pkt_info, in get_desc_info() argument
119 *desc_info = le32_to_cpu(desc->desc_info); in get_desc_info()
158 static void set_desc_info(u32 desc_info, u32 pkt_info, in set_desc_info() argument
161 desc->desc_info = cpu_to_le32(desc_info); in set_desc_info()
855 u32 desc_info, pkt_info; in netcp_allocate_rx_buf() local
908 desc_info = KNAV_DMA_DESC_PS_INFO_IN_DESC; in netcp_allocate_rx_buf()
909 desc_info |= buf_len & KNAV_DMA_DESC_PKT_LEN_MASK; in netcp_allocate_rx_buf()
917 set_desc_info(desc_info, pkt_info, hwdesc); in netcp_allocate_rx_buf()
1161 set_words(&pkt_len, 1, &desc->desc_info); in netcp_tx_map_skb()
/linux-6.6.21/drivers/net/ethernet/micrel/
Dksz884x.c3455 static void hw_init_desc(struct ksz_desc_info *desc_info, int transmit) in hw_init_desc() argument
3458 u32 phys = desc_info->ring_phys; in hw_init_desc()
3459 struct ksz_hw_desc *desc = desc_info->ring_virt; in hw_init_desc()
3460 struct ksz_desc *cur = desc_info->ring; in hw_init_desc()
3463 for (i = 0; i < desc_info->alloc; i++) { in hw_init_desc()
3465 phys += desc_info->size; in hw_init_desc()
3469 previous->phw->next = cpu_to_le32(desc_info->ring_phys); in hw_init_desc()
3473 desc_info->avail = desc_info->alloc; in hw_init_desc()
3474 desc_info->last = desc_info->next = 0; in hw_init_desc()
3476 desc_info->cur = desc_info->ring; in hw_init_desc()
[all …]
/linux-6.6.21/drivers/mtd/nand/raw/
Dqcom_nandc.c292 struct desc_info { struct
864 struct desc_info *desc; in prepare_bam_async_desc()
1029 struct desc_info *desc; in prep_adm_dma_desc()
1309 struct desc_info *desc, *n; in submit_descs()