Home
last modified time | relevance | path

Searched refs:se_idx (Results 1 – 23 of 23) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_tbf.c12 u32 se_idx; in lan966x_tbf_add() local
21 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_tbf_add()
23 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + queue; in lan966x_tbf_add()
46 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_tbf_add()
50 lan966x, QSYS_CIR_CFG(se_idx)); in lan966x_tbf_add()
61 u32 se_idx; in lan966x_tbf_del() local
70 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_tbf_del()
72 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + queue; in lan966x_tbf_del()
78 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_tbf_del()
82 lan966x, QSYS_CIR_CFG(se_idx)); in lan966x_tbf_del()
Dlan966x_cbs.c10 u8 se_idx; in lan966x_cbs_add() local
18 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + qopt->queue; in lan966x_cbs_add()
42 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_cbs_add()
46 lan966x, QSYS_CIR_CFG(se_idx)); in lan966x_cbs_add()
55 u8 se_idx; in lan966x_cbs_del() local
57 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + qopt->queue; in lan966x_cbs_del()
63 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_cbs_del()
67 lan966x, QSYS_CIR_CFG(se_idx)); in lan966x_cbs_del()
Dlan966x_ets.c25 u32 se_idx; in lan966x_ets_add() local
48 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_ets_add()
65 lan966x, QSYS_SE_DWRR_CFG(se_idx, 7 - i)); in lan966x_ets_add()
72 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_ets_add()
81 u32 se_idx; in lan966x_ets_del() local
84 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_ets_del()
87 lan_wr(0, lan966x, QSYS_SE_DWRR_CFG(se_idx, i)); in lan966x_ets_del()
93 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_ets_del()
/linux-6.1.9/drivers/nfc/st21nfca/
Dse.c86 static int st21nfca_hci_control_se(struct nfc_hci_dev *hdev, u32 se_idx, in st21nfca_hci_control_se() argument
94 switch (se_idx) { in st21nfca_hci_control_se()
139 sk_host_list->data[i] != se_idx; i++) in st21nfca_hci_control_se()
144 if (state == ST21NFCA_SE_MODE_ON && host_id == se_idx) in st21nfca_hci_control_se()
145 return se_idx; in st21nfca_hci_control_se()
146 else if (state == ST21NFCA_SE_MODE_OFF && host_id != se_idx) in st21nfca_hci_control_se()
147 return se_idx; in st21nfca_hci_control_se()
174 int st21nfca_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx) in st21nfca_hci_enable_se() argument
183 r = st21nfca_hci_control_se(hdev, se_idx, ST21NFCA_SE_MODE_ON); in st21nfca_hci_enable_se()
195 nfc_remove_se(hdev->ndev, se_idx); in st21nfca_hci_enable_se()
[all …]
Dst21nfca.h188 int st21nfca_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx);
189 int st21nfca_hci_disable_se(struct nfc_hci_dev *hdev, u32 se_idx);
190 int st21nfca_hci_se_io(struct nfc_hci_dev *hdev, u32 se_idx,
/linux-6.1.9/net/nfc/
Dcore.c534 struct nfc_se *nfc_find_se(struct nfc_dev *dev, u32 se_idx) in nfc_find_se() argument
539 if (se->idx == se_idx) in nfc_find_se()
546 int nfc_enable_se(struct nfc_dev *dev, u32 se_idx) in nfc_enable_se() argument
551 pr_debug("%s se index %d\n", dev_name(&dev->dev), se_idx); in nfc_enable_se()
575 se = nfc_find_se(dev, se_idx); in nfc_enable_se()
586 rc = dev->ops->enable_se(dev, se_idx); in nfc_enable_se()
595 int nfc_disable_se(struct nfc_dev *dev, u32 se_idx) in nfc_disable_se() argument
600 pr_debug("%s se index %d\n", dev_name(&dev->dev), se_idx); in nfc_disable_se()
619 se = nfc_find_se(dev, se_idx); in nfc_disable_se()
630 rc = dev->ops->disable_se(dev, se_idx); in nfc_disable_se()
[all …]
Dnfc.h92 int nfc_genl_se_added(struct nfc_dev *dev, u32 se_idx, u16 type);
93 int nfc_genl_se_removed(struct nfc_dev *dev, u32 se_idx);
94 int nfc_genl_se_transaction(struct nfc_dev *dev, u8 se_idx,
96 int nfc_genl_se_connectivity(struct nfc_dev *dev, u8 se_idx);
147 int nfc_enable_se(struct nfc_dev *dev, u32 se_idx);
148 int nfc_disable_se(struct nfc_dev *dev, u32 se_idx);
Dnetlink.c424 int nfc_genl_se_added(struct nfc_dev *dev, u32 se_idx, u16 type) in nfc_genl_se_added() argument
439 nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx) || in nfc_genl_se_added()
455 int nfc_genl_se_removed(struct nfc_dev *dev, u32 se_idx) in nfc_genl_se_removed() argument
470 nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx)) in nfc_genl_se_removed()
485 int nfc_genl_se_transaction(struct nfc_dev *dev, u8 se_idx, in nfc_genl_se_transaction() argument
501 se = nfc_find_se(dev, se_idx); in nfc_genl_se_transaction()
506 nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx) || in nfc_genl_se_transaction()
531 int nfc_genl_se_connectivity(struct nfc_dev *dev, u8 se_idx) in nfc_genl_se_connectivity() argument
546 se = nfc_find_se(dev, se_idx); in nfc_genl_se_connectivity()
551 nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx) || in nfc_genl_se_connectivity()
[all …]
/linux-6.1.9/drivers/nfc/st-nci/
Dse.c428 static int st_nci_control_se(struct nci_dev *ndev, u8 se_idx, in st_nci_control_se() argument
436 switch (se_idx) { in st_nci_control_se()
454 r = nci_nfcee_mode_set(ndev, se_idx, state); in st_nci_control_se()
480 sk_host_list->data[i] != se_idx; i++) in st_nci_control_se()
484 if (state == ST_NCI_SE_MODE_ON && host_id == se_idx) in st_nci_control_se()
485 return se_idx; in st_nci_control_se()
486 else if (state == ST_NCI_SE_MODE_OFF && host_id != se_idx) in st_nci_control_se()
487 return se_idx; in st_nci_control_se()
492 int st_nci_disable_se(struct nci_dev *ndev, u32 se_idx) in st_nci_disable_se() argument
501 r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_OFF); in st_nci_disable_se()
[all …]
Dst-nci.h129 int st_nci_enable_se(struct nci_dev *ndev, u32 se_idx);
130 int st_nci_disable_se(struct nci_dev *ndev, u32 se_idx);
131 int st_nci_se_io(struct nci_dev *ndev, u32 se_idx,
/linux-6.1.9/include/net/nfc/
Dnfc.h70 int (*enable_se)(struct nfc_dev *dev, u32 se_idx);
71 int (*disable_se)(struct nfc_dev *dev, u32 se_idx);
72 int (*se_io) (struct nfc_dev *dev, u32 se_idx,
289 int nfc_se_transaction(struct nfc_dev *dev, u8 se_idx,
291 int nfc_se_connectivity(struct nfc_dev *dev, u8 se_idx);
292 int nfc_add_se(struct nfc_dev *dev, u32 se_idx, u16 type);
293 int nfc_remove_se(struct nfc_dev *dev, u32 se_idx);
294 struct nfc_se *nfc_find_se(struct nfc_dev *dev, u32 se_idx);
Dhci.h48 int (*enable_se)(struct nfc_hci_dev *dev, u32 se_idx);
49 int (*disable_se)(struct nfc_hci_dev *dev, u32 se_idx);
50 int (*se_io)(struct nfc_hci_dev *dev, u32 se_idx,
Dnci_core.h75 int (*disable_se)(struct nci_dev *ndev, u32 se_idx);
76 int (*enable_se)(struct nci_dev *ndev, u32 se_idx);
77 int (*se_io)(struct nci_dev *ndev, u32 se_idx,
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/
Dsparx5_tc.c41 u32 layer, se_idx; in sparx5_tc_setup_qdisc_tbf() local
44 &se_idx); in sparx5_tc_setup_qdisc_tbf()
49 se_idx); in sparx5_tc_setup_qdisc_tbf()
51 return sparx5_tc_tbf_del(port, layer, se_idx); in sparx5_tc_setup_qdisc_tbf()
/linux-6.1.9/drivers/nfc/pn544/
Dpn544.c783 u32 se_idx = 0; in pn544_hci_discover_se() local
793 nfc_add_se(hdev->ndev, se_idx++, NFC_SE_UICC); in pn544_hci_discover_se()
802 nfc_add_se(hdev->ndev, se_idx++, NFC_SE_EMBEDDED); in pn544_hci_discover_se()
804 return !se_idx; in pn544_hci_discover_se()
809 static int pn544_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx) in pn544_hci_enable_se() argument
828 se = nfc_find_se(hdev->ndev, se_idx); in pn544_hci_enable_se()
864 static int pn544_hci_disable_se(struct nfc_hci_dev *hdev, u32 se_idx) in pn544_hci_disable_se() argument
869 se = nfc_find_se(hdev->ndev, se_idx); in pn544_hci_disable_se()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gfx_v9.c763 int se_idx; in kgd_gfx_v9_get_cu_occupancy() local
787 for (se_idx = 0; se_idx < se_cnt; se_idx++) { in kgd_gfx_v9_get_cu_occupancy()
790 gfx_v9_0_select_se_sh(adev, se_idx, sh_idx, 0xffffffff); in kgd_gfx_v9_get_cu_occupancy()
Dgfx_v9_4_2.c1879 uint32_t se_idx, sh_idx, cu_idx; in gfx_v9_4_2_query_sq_timeout_status() local
1883 for (se_idx = 0; se_idx < adev->gfx.config.max_shader_engines; in gfx_v9_4_2_query_sq_timeout_status()
1884 se_idx++) { in gfx_v9_4_2_query_sq_timeout_status()
1890 gfx_v9_4_2_select_se_sh(adev, se_idx, sh_idx, in gfx_v9_4_2_query_sq_timeout_status()
1898 se_idx, sh_idx, cu_idx); in gfx_v9_4_2_query_sq_timeout_status()
1913 uint32_t se_idx, sh_idx, cu_idx; in gfx_v9_4_2_reset_sq_timeout_status() local
1916 for (se_idx = 0; se_idx < adev->gfx.config.max_shader_engines; in gfx_v9_4_2_reset_sq_timeout_status()
1917 se_idx++) { in gfx_v9_4_2_reset_sq_timeout_status()
1923 gfx_v9_4_2_select_se_sh(adev, se_idx, sh_idx, in gfx_v9_4_2_reset_sq_timeout_status()
Dcik.c1128 unsigned se_idx = (se_num == 0xffffffff) ? 0 : se_num; in cik_get_register_value() local
1133 return adev->gfx.config.rb_config[se_idx][sh_idx].rb_backend_disable; in cik_get_register_value()
1135 return adev->gfx.config.rb_config[se_idx][sh_idx].user_rb_backend_disable; in cik_get_register_value()
1137 return adev->gfx.config.rb_config[se_idx][sh_idx].raster_config; in cik_get_register_value()
1139 return adev->gfx.config.rb_config[se_idx][sh_idx].raster_config_1; in cik_get_register_value()
Dvi.c753 unsigned se_idx = (se_num == 0xffffffff) ? 0 : se_num; in vi_get_register_value() local
758 return adev->gfx.config.rb_config[se_idx][sh_idx].rb_backend_disable; in vi_get_register_value()
760 return adev->gfx.config.rb_config[se_idx][sh_idx].user_rb_backend_disable; in vi_get_register_value()
762 return adev->gfx.config.rb_config[se_idx][sh_idx].raster_config; in vi_get_register_value()
764 return adev->gfx.config.rb_config[se_idx][sh_idx].raster_config_1; in vi_get_register_value()
Dsi.c1170 unsigned se_idx = (se_num == 0xffffffff) ? 0 : se_num; in si_get_register_value() local
1175 return adev->gfx.config.rb_config[se_idx][sh_idx].rb_backend_disable; in si_get_register_value()
1177 return adev->gfx.config.rb_config[se_idx][sh_idx].user_rb_backend_disable; in si_get_register_value()
1179 return adev->gfx.config.rb_config[se_idx][sh_idx].raster_config; in si_get_register_value()
/linux-6.1.9/net/nfc/hci/
Dcore.c801 static int hci_enable_se(struct nfc_dev *nfc_dev, u32 se_idx) in hci_enable_se() argument
806 return hdev->ops->enable_se(hdev, se_idx); in hci_enable_se()
811 static int hci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx) in hci_disable_se() argument
816 return hdev->ops->disable_se(hdev, se_idx); in hci_disable_se()
821 static int hci_se_io(struct nfc_dev *nfc_dev, u32 se_idx, in hci_se_io() argument
828 return hdev->ops->se_io(hdev, se_idx, apdu, in hci_se_io()
/linux-6.1.9/net/nfc/nci/
Dcore.c1057 static int nci_enable_se(struct nfc_dev *nfc_dev, u32 se_idx) in nci_enable_se() argument
1062 return ndev->ops->enable_se(ndev, se_idx); in nci_enable_se()
1067 static int nci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx) in nci_disable_se() argument
1072 return ndev->ops->disable_se(ndev, se_idx); in nci_disable_se()
1093 static int nci_se_io(struct nfc_dev *nfc_dev, u32 se_idx, in nci_se_io() argument
1100 return ndev->ops->se_io(ndev, se_idx, apdu, in nci_se_io()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/
Dmt76_connac_mcu.h446 u8 se_idx; member