Lines Matching refs:cbd
50 struct enetc_cbd cbd = {.cmd = 0}; in enetc_setup_taprio() local
77 gcl_config = &cbd.gcl_conf; in enetc_setup_taprio()
81 tmp = enetc_cbd_alloc_data_mem(priv->si, &cbd, data_size, in enetc_setup_taprio()
107 cbd.status_flags = 0; in enetc_setup_taprio()
109 cbd.cls = BDCR_CMD_PORT_GCL; in enetc_setup_taprio()
110 cbd.status_flags = 0; in enetc_setup_taprio()
115 err = enetc_send_cmd(priv->si, &cbd); in enetc_setup_taprio()
515 struct enetc_cbd cbd = {.cmd = 0}; in enetc_streamid_hw_set() local
536 cbd.index = cpu_to_le16((u16)sid->index); in enetc_streamid_hw_set()
537 cbd.cls = BDCR_CMD_STREAM_IDENTIFY; in enetc_streamid_hw_set()
538 cbd.status_flags = 0; in enetc_streamid_hw_set()
541 tmp = enetc_cbd_alloc_data_mem(priv->si, &cbd, data_size, in enetc_streamid_hw_set()
550 si_conf = &cbd.sid_set; in enetc_streamid_hw_set()
558 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamid_hw_set()
566 cbd.status_flags = 0; in enetc_streamid_hw_set()
595 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamid_hw_set()
607 struct enetc_cbd cbd = {.cmd = 0}; in enetc_streamfilter_hw_set() local
615 cbd.index = cpu_to_le16(sfi->index); in enetc_streamfilter_hw_set()
616 cbd.cls = BDCR_CMD_STREAM_FILTER; in enetc_streamfilter_hw_set()
617 cbd.status_flags = 0x80; in enetc_streamfilter_hw_set()
618 cbd.length = cpu_to_le16(1); in enetc_streamfilter_hw_set()
620 sfi_config = &cbd.sfi_conf; in enetc_streamfilter_hw_set()
657 return enetc_send_cmd(priv->si, &cbd); in enetc_streamfilter_hw_set()
664 struct enetc_cbd cbd = { .cmd = 2 }; in enetc_streamcounter_hw_get() local
671 cbd.index = cpu_to_le16((u16)index); in enetc_streamcounter_hw_get()
672 cbd.cmd = 2; in enetc_streamcounter_hw_get()
673 cbd.cls = BDCR_CMD_STREAM_FILTER; in enetc_streamcounter_hw_get()
674 cbd.status_flags = 0; in enetc_streamcounter_hw_get()
678 tmp = enetc_cbd_alloc_data_mem(priv->si, &cbd, data_size, in enetc_streamcounter_hw_get()
683 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamcounter_hw_get()
743 struct enetc_cbd cbd = { .cmd = 0 }; in enetc_streamgate_hw_set() local
754 cbd.index = cpu_to_le16(sgi->index); in enetc_streamgate_hw_set()
755 cbd.cmd = 0; in enetc_streamgate_hw_set()
756 cbd.cls = BDCR_CMD_STREAM_GCL; in enetc_streamgate_hw_set()
757 cbd.status_flags = 0x80; in enetc_streamgate_hw_set()
761 return enetc_send_cmd(priv->si, &cbd); in enetc_streamgate_hw_set()
771 sgi_config = &cbd.sgi_table; in enetc_streamgate_hw_set()
782 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamgate_hw_set()
786 memset(&cbd, 0, sizeof(cbd)); in enetc_streamgate_hw_set()
788 cbd.index = cpu_to_le16(sgi->index); in enetc_streamgate_hw_set()
789 cbd.cmd = 1; in enetc_streamgate_hw_set()
790 cbd.cls = BDCR_CMD_STREAM_GCL; in enetc_streamgate_hw_set()
791 cbd.status_flags = 0; in enetc_streamgate_hw_set()
793 sgcl_config = &cbd.sgcl_conf; in enetc_streamgate_hw_set()
798 tmp = enetc_cbd_alloc_data_mem(priv->si, &cbd, data_size, in enetc_streamgate_hw_set()
853 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamgate_hw_set()
864 struct enetc_cbd cbd = { .cmd = 0 }; in enetc_flowmeter_hw_set() local
868 cbd.index = cpu_to_le16((u16)fmi->index); in enetc_flowmeter_hw_set()
869 cbd.cls = BDCR_CMD_FLOW_METER; in enetc_flowmeter_hw_set()
870 cbd.status_flags = 0x80; in enetc_flowmeter_hw_set()
873 return enetc_send_cmd(priv->si, &cbd); in enetc_flowmeter_hw_set()
875 fmi_config = &cbd.fmi_conf; in enetc_flowmeter_hw_set()
898 return enetc_send_cmd(priv->si, &cbd); in enetc_flowmeter_hw_set()