Lines Matching refs:cbd
52 struct enetc_cbd cbd = {.cmd = 0}; in enetc_setup_taprio() local
82 gcl_config = &cbd.gcl_conf; in enetc_setup_taprio()
110 cbd.length = cpu_to_le16(data_size); in enetc_setup_taprio()
111 cbd.status_flags = 0; in enetc_setup_taprio()
121 cbd.addr[0] = lower_32_bits(dma); in enetc_setup_taprio()
122 cbd.addr[1] = upper_32_bits(dma); in enetc_setup_taprio()
123 cbd.cls = BDCR_CMD_PORT_GCL; in enetc_setup_taprio()
124 cbd.status_flags = 0; in enetc_setup_taprio()
129 err = enetc_send_cmd(priv->si, &cbd); in enetc_setup_taprio()
468 struct enetc_cbd cbd = {.cmd = 0}; in enetc_streamid_hw_set() local
483 cbd.index = cpu_to_le16((u16)sid->index); in enetc_streamid_hw_set()
484 cbd.cls = BDCR_CMD_STREAM_IDENTIFY; in enetc_streamid_hw_set()
485 cbd.status_flags = 0; in enetc_streamid_hw_set()
489 cbd.length = cpu_to_le16(data_size); in enetc_streamid_hw_set()
499 cbd.addr[0] = lower_32_bits(dma); in enetc_streamid_hw_set()
500 cbd.addr[1] = upper_32_bits(dma); in enetc_streamid_hw_set()
506 si_conf = &cbd.sid_set; in enetc_streamid_hw_set()
514 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamid_hw_set()
524 memset(&cbd, 0, sizeof(cbd)); in enetc_streamid_hw_set()
526 cbd.index = cpu_to_le16((u16)sid->index); in enetc_streamid_hw_set()
527 cbd.cmd = 0; in enetc_streamid_hw_set()
528 cbd.cls = BDCR_CMD_STREAM_IDENTIFY; in enetc_streamid_hw_set()
529 cbd.status_flags = 0; in enetc_streamid_hw_set()
541 cbd.length = cpu_to_le16(data_size); in enetc_streamid_hw_set()
543 cbd.addr[0] = lower_32_bits(dma); in enetc_streamid_hw_set()
544 cbd.addr[1] = upper_32_bits(dma); in enetc_streamid_hw_set()
565 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamid_hw_set()
576 struct enetc_cbd cbd = {.cmd = 0}; in enetc_streamfilter_hw_set() local
579 cbd.index = cpu_to_le16(sfi->index); in enetc_streamfilter_hw_set()
580 cbd.cls = BDCR_CMD_STREAM_FILTER; in enetc_streamfilter_hw_set()
581 cbd.status_flags = 0x80; in enetc_streamfilter_hw_set()
582 cbd.length = cpu_to_le16(1); in enetc_streamfilter_hw_set()
584 sfi_config = &cbd.sfi_conf; in enetc_streamfilter_hw_set()
621 return enetc_send_cmd(priv->si, &cbd); in enetc_streamfilter_hw_set()
628 struct enetc_cbd cbd = { .cmd = 2 }; in enetc_streamcounter_hw_get() local
634 cbd.index = cpu_to_le16((u16)index); in enetc_streamcounter_hw_get()
635 cbd.cmd = 2; in enetc_streamcounter_hw_get()
636 cbd.cls = BDCR_CMD_STREAM_FILTER; in enetc_streamcounter_hw_get()
637 cbd.status_flags = 0; in enetc_streamcounter_hw_get()
651 cbd.addr[0] = lower_32_bits(dma); in enetc_streamcounter_hw_get()
652 cbd.addr[1] = upper_32_bits(dma); in enetc_streamcounter_hw_get()
654 cbd.length = cpu_to_le16(data_size); in enetc_streamcounter_hw_get()
656 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamcounter_hw_get()
718 struct enetc_cbd cbd = { .cmd = 0 }; in enetc_streamgate_hw_set() local
728 cbd.index = cpu_to_le16(sgi->index); in enetc_streamgate_hw_set()
729 cbd.cmd = 0; in enetc_streamgate_hw_set()
730 cbd.cls = BDCR_CMD_STREAM_GCL; in enetc_streamgate_hw_set()
731 cbd.status_flags = 0x80; in enetc_streamgate_hw_set()
735 return enetc_send_cmd(priv->si, &cbd); in enetc_streamgate_hw_set()
745 sgi_config = &cbd.sgi_table; in enetc_streamgate_hw_set()
756 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamgate_hw_set()
760 memset(&cbd, 0, sizeof(cbd)); in enetc_streamgate_hw_set()
762 cbd.index = cpu_to_le16(sgi->index); in enetc_streamgate_hw_set()
763 cbd.cmd = 1; in enetc_streamgate_hw_set()
764 cbd.cls = BDCR_CMD_STREAM_GCL; in enetc_streamgate_hw_set()
765 cbd.status_flags = 0; in enetc_streamgate_hw_set()
767 sgcl_config = &cbd.sgcl_conf; in enetc_streamgate_hw_set()
777 cbd.length = cpu_to_le16(data_size); in enetc_streamgate_hw_set()
788 cbd.addr[0] = lower_32_bits(dma); in enetc_streamgate_hw_set()
789 cbd.addr[1] = upper_32_bits(dma); in enetc_streamgate_hw_set()
841 err = enetc_send_cmd(priv->si, &cbd); in enetc_streamgate_hw_set()
853 struct enetc_cbd cbd = { .cmd = 0 }; in enetc_flowmeter_hw_set() local
857 cbd.index = cpu_to_le16((u16)fmi->index); in enetc_flowmeter_hw_set()
858 cbd.cls = BDCR_CMD_FLOW_METER; in enetc_flowmeter_hw_set()
859 cbd.status_flags = 0x80; in enetc_flowmeter_hw_set()
862 return enetc_send_cmd(priv->si, &cbd); in enetc_flowmeter_hw_set()
864 fmi_config = &cbd.fmi_conf; in enetc_flowmeter_hw_set()
887 return enetc_send_cmd(priv->si, &cbd); in enetc_flowmeter_hw_set()