/drivers/net/ethernet/rocker/ |
D | rocker_tlv.h | 122 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 …]
|
D | rocker_main.c | 315 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 …]
|
D | rocker_ofdpa.c | 305 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 …]
|
D | rocker_tlv.c | 32 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()
|
D | rocker.h | 34 struct rocker_desc_info *desc_info; member 76 struct rocker_desc_info *desc_info, 80 const struct rocker_desc_info *desc_info,
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_txrx.c | 14 struct ionic_desc_info *desc_info, 70 struct ionic_desc_info *desc_info, in ionic_rx_frags() argument 81 page_info = &desc_info->pages[0]; in ionic_rx_frags() 116 struct ionic_desc_info *desc_info, in ionic_rx_copybreak() argument 125 page_info = &desc_info->pages[0]; in ionic_rx_copybreak() 150 struct ionic_desc_info *desc_info, in ionic_rx_clean() argument 172 skb = ionic_rx_copybreak(q, desc_info, cq_info); in ionic_rx_clean() 174 skb = ionic_rx_frags(q, desc_info, cq_info); in ionic_rx_clean() 231 struct ionic_desc_info *desc_info; in ionic_rx_service() local 243 desc_info = &q->info[q->tail_idx]; in ionic_rx_service() [all …]
|
D | ionic_main.c | 191 struct ionic_desc_info *desc_info; in ionic_adminq_flush() local 196 desc_info = &q->info[q->tail_idx]; in ionic_adminq_flush() 197 memset(desc_info->desc, 0, sizeof(union ionic_adminq_cmd)); in ionic_adminq_flush() 198 desc_info->cb = NULL; in ionic_adminq_flush() 199 desc_info->cb_arg = NULL; in ionic_adminq_flush() 232 struct ionic_desc_info *desc_info, in ionic_adminq_cb() argument 256 struct ionic_desc_info *desc_info; in ionic_adminq_post() local 275 desc_info = &q->info[q->head_idx]; in ionic_adminq_post() 276 memcpy(desc_info->desc, &ctx->cmd, sizeof(ctx->cmd)); in ionic_adminq_post()
|
D | ionic_dev.c | 590 struct ionic_desc_info *desc_info; in ionic_q_post() local 593 desc_info = &q->info[q->head_idx]; in ionic_q_post() 594 desc_info->cb = cb; in ionic_q_post() 595 desc_info->cb_arg = cb_arg; in ionic_q_post() 622 struct ionic_desc_info *desc_info; in ionic_q_service() local 638 desc_info = &q->info[q->tail_idx]; in ionic_q_service() 642 cb = desc_info->cb; in ionic_q_service() 643 cb_arg = desc_info->cb_arg; in ionic_q_service() 645 desc_info->cb = NULL; in ionic_q_service() 646 desc_info->cb_arg = NULL; in ionic_q_service() [all …]
|
D | ionic_dev.h | 169 struct ionic_desc_info *desc_info,
|
/drivers/ata/ |
D | sata_fsl.c | 227 u32 desc_info; member 407 unsigned int tag, u32 desc_info, in sata_fsl_setup_cmd_hdr_entry() argument 422 pp->cmdslot[tag].desc_info = cpu_to_le32(desc_info | (tag & 0x1F)); in sata_fsl_setup_cmd_hdr_entry() 427 pp->cmdslot[tag].ttl, pp->cmdslot[tag].desc_info); in sata_fsl_setup_cmd_hdr_entry() 513 u32 desc_info = CMD_DESC_RES | CMD_DESC_SNOOP_ENABLE; in sata_fsl_qc_prep() local 533 desc_info |= ATAPI_CMD; in sata_fsl_qc_prep() 544 desc_info |= FPDMA_QUEUED_CMD; in sata_fsl_qc_prep() 546 sata_fsl_setup_cmd_hdr_entry(pp, tag, desc_info, ttl_dwords, in sata_fsl_qc_prep() 550 desc_info, ttl_dwords, num_prde); in sata_fsl_qc_prep()
|
/drivers/net/ethernet/ti/ |
D | netcp_core.c | 117 static void get_desc_info(u32 *desc_info, u32 *pkt_info, in get_desc_info() argument 120 *desc_info = le32_to_cpu(desc->desc_info); in get_desc_info() 159 static void set_desc_info(u32 desc_info, u32 pkt_info, in set_desc_info() argument 162 desc->desc_info = cpu_to_le32(desc_info); in set_desc_info() 856 u32 desc_info, pkt_info; in netcp_allocate_rx_buf() local 909 desc_info = KNAV_DMA_DESC_PS_INFO_IN_DESC; in netcp_allocate_rx_buf() 910 desc_info |= buf_len & KNAV_DMA_DESC_PKT_LEN_MASK; in netcp_allocate_rx_buf() 918 set_desc_info(desc_info, pkt_info, hwdesc); in netcp_allocate_rx_buf() 1162 set_words(&pkt_len, 1, &desc->desc_info); in netcp_tx_map_skb()
|
/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 3828 static void hw_init_desc(struct ksz_desc_info *desc_info, int transmit) in hw_init_desc() argument 3831 u32 phys = desc_info->ring_phys; in hw_init_desc() 3832 struct ksz_hw_desc *desc = desc_info->ring_virt; in hw_init_desc() 3833 struct ksz_desc *cur = desc_info->ring; in hw_init_desc() 3836 for (i = 0; i < desc_info->alloc; i++) { in hw_init_desc() 3838 phys += desc_info->size; in hw_init_desc() 3842 previous->phw->next = cpu_to_le32(desc_info->ring_phys); in hw_init_desc() 3846 desc_info->avail = desc_info->alloc; in hw_init_desc() 3847 desc_info->last = desc_info->next = 0; in hw_init_desc() 3849 desc_info->cur = desc_info->ring; in hw_init_desc() [all …]
|
/drivers/mtd/nand/raw/ |
D | qcom_nandc.c | 274 struct desc_info { struct 732 struct desc_info *desc; in prepare_bam_async_desc() 897 struct desc_info *desc; in prep_adm_dma_desc() 1286 struct desc_info *desc; in submit_descs() 1342 struct desc_info *desc, *n; in free_descs()
|