Home
last modified time | relevance | path

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

/linux-6.1.9/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.1.9/drivers/net/wireless/realtek/rtw89/
Dcore.c382 struct rtw89_tx_desc_info *desc_info = &tx_req->desc_info; in rtw89_core_tx_update_ampdu_info() local
389 desc_info->bk = true; in rtw89_core_tx_update_ampdu_info()
408 desc_info->agg_en = true; in rtw89_core_tx_update_ampdu_info()
409 desc_info->ampdu_density = sta->deflink.ht_cap.ampdu_density; in rtw89_core_tx_update_ampdu_info()
410 desc_info->ampdu_num = ampdu_num; in rtw89_core_tx_update_ampdu_info()
426 struct rtw89_tx_desc_info *desc_info = &tx_req->desc_info; in rtw89_core_tx_update_sec_key() local
474 desc_info->sec_en = true; in rtw89_core_tx_update_sec_key()
475 desc_info->sec_keyid = key->keyidx; in rtw89_core_tx_update_sec_key()
476 desc_info->sec_type = sec_type; in rtw89_core_tx_update_sec_key()
477 desc_info->sec_cam_idx = sec_cam->sec_cam_idx; in rtw89_core_tx_update_sec_key()
[all …]
Dpci.c194 const struct rtw89_rx_desc_info *desc_info) in rtw89_skb_put_rx_data() argument
201 rx_info->len, desc_info->pkt_size, offset, fs, ls); in rtw89_skb_put_rx_data()
206 copy_len = desc_info->pkt_size; in rtw89_skb_put_rx_data()
223 struct rtw89_rx_desc_info *desc_info = &rx_ring->diliver_desc; in rtw89_pci_rxbd_deliver_skbs() local
252 if (desc_info->ready) { in rtw89_pci_rxbd_deliver_skbs()
257 rtw89_core_query_rxdesc(rtwdev, desc_info, skb->data, rxinfo_size); in rtw89_pci_rxbd_deliver_skbs()
259 new = dev_alloc_skb(desc_info->pkt_size); in rtw89_pci_rxbd_deliver_skbs()
266 offset = desc_info->offset; in rtw89_pci_rxbd_deliver_skbs()
267 offset += desc_info->long_rxdesc ? sizeof(struct rtw89_rxdesc_long) : in rtw89_pci_rxbd_deliver_skbs()
276 if (!rtw89_skb_put_rx_data(rtwdev, fs, ls, new, skb, offset, rx_info, desc_info)) in rtw89_pci_rxbd_deliver_skbs()
[all …]
Dcore.h798 struct rtw89_tx_desc_info desc_info; member
2340 struct rtw89_tx_desc_info *desc_info,
2343 struct rtw89_tx_desc_info *desc_info,
4127 struct rtw89_tx_desc_info *desc_info, in rtw89_chip_fill_txdesc() argument
4132 chip->ops->fill_txdesc(rtwdev, desc_info, txdesc); in rtw89_chip_fill_txdesc()
4137 struct rtw89_tx_desc_info *desc_info, in rtw89_chip_fill_txdesc_fwcmd() argument
4142 chip->ops->fill_txdesc_fwcmd(rtwdev, desc_info, txdesc); in rtw89_chip_fill_txdesc_fwcmd()
4230 struct rtw89_tx_desc_info *desc_info,
4233 struct rtw89_tx_desc_info *desc_info,
4236 struct rtw89_tx_desc_info *desc_info,
[all …]
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c115 struct ionic_desc_info *desc_info, in ionic_rx_frags() argument
129 buf_info = &desc_info->bufs[0]; in ionic_rx_frags()
175 struct ionic_desc_info *desc_info, in ionic_rx_copybreak() argument
187 buf_info = &desc_info->bufs[0]; in ionic_rx_copybreak()
216 struct ionic_desc_info *desc_info, in ionic_rx_clean() argument
239 skb = ionic_rx_copybreak(q, desc_info, comp); in ionic_rx_clean()
241 skb = ionic_rx_frags(q, desc_info, comp); in ionic_rx_clean()
317 struct ionic_desc_info *desc_info; in ionic_rx_service() local
332 desc_info = &q->info[q->tail_idx]; in ionic_rx_service()
336 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
294 struct ionic_desc_info *desc_info; in ionic_adminq_post() local
316 desc_info = &q->info[q->head_idx]; in ionic_adminq_post()
317 memcpy(desc_info->desc, &ctx->cmd, sizeof(ctx->cmd)); in ionic_adminq_post()
Dionic_dev.c683 struct ionic_desc_info *desc_info; in ionic_q_post() local
687 desc_info = &q->info[q->head_idx]; in ionic_q_post()
688 desc_info->cb = cb; in ionic_q_post()
689 desc_info->cb_arg = cb_arg; in ionic_q_post()
716 struct ionic_desc_info *desc_info; in ionic_q_service() local
732 desc_info = &q->info[q->tail_idx]; in ionic_q_service()
736 cb = desc_info->cb; in ionic_q_service()
737 cb_arg = desc_info->cb_arg; in ionic_q_service()
739 desc_info->cb = NULL; in ionic_q_service()
740 desc_info->cb_arg = NULL; in ionic_q_service()
[all …]
Dionic_dev.h174 struct ionic_desc_info *desc_info,
/linux-6.1.9/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.1.9/include/linux/soc/ti/
Dknav_dma.h145 __le32 desc_info; member
/linux-6.1.9/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.1.9/drivers/net/ethernet/micrel/
Dksz884x.c3753 static void hw_init_desc(struct ksz_desc_info *desc_info, int transmit) in hw_init_desc() argument
3756 u32 phys = desc_info->ring_phys; in hw_init_desc()
3757 struct ksz_hw_desc *desc = desc_info->ring_virt; in hw_init_desc()
3758 struct ksz_desc *cur = desc_info->ring; in hw_init_desc()
3761 for (i = 0; i < desc_info->alloc; i++) { in hw_init_desc()
3763 phys += desc_info->size; in hw_init_desc()
3767 previous->phw->next = cpu_to_le32(desc_info->ring_phys); in hw_init_desc()
3771 desc_info->avail = desc_info->alloc; in hw_init_desc()
3772 desc_info->last = desc_info->next = 0; in hw_init_desc()
3774 desc_info->cur = desc_info->ring; in hw_init_desc()
[all …]
/linux-6.1.9/drivers/mtd/nand/raw/
Dqcom_nandc.c289 struct desc_info { struct
834 struct desc_info *desc; in prepare_bam_async_desc()
999 struct desc_info *desc; in prep_adm_dma_desc()
1428 struct desc_info *desc; in submit_descs()
1484 struct desc_info *desc, *n; in free_descs()