/Linux-v5.15/drivers/net/dsa/ |
D | realtek-smi-core.c | 49 static inline void realtek_smi_clk_delay(struct realtek_smi *smi) in realtek_smi_clk_delay() argument 51 ndelay(smi->clk_delay); in realtek_smi_clk_delay() 54 static void realtek_smi_start(struct realtek_smi *smi) in realtek_smi_start() argument 59 gpiod_direction_output(smi->mdc, 0); in realtek_smi_start() 60 gpiod_direction_output(smi->mdio, 1); in realtek_smi_start() 61 realtek_smi_clk_delay(smi); in realtek_smi_start() 64 gpiod_set_value(smi->mdc, 1); in realtek_smi_start() 65 realtek_smi_clk_delay(smi); in realtek_smi_start() 66 gpiod_set_value(smi->mdc, 0); in realtek_smi_start() 67 realtek_smi_clk_delay(smi); in realtek_smi_start() [all …]
|
D | rtl8366.c | 16 int rtl8366_mc_is_used(struct realtek_smi *smi, int mc_index, int *used) in rtl8366_mc_is_used() argument 22 for (i = 0; i < smi->num_ports; i++) { in rtl8366_mc_is_used() 25 ret = smi->ops->get_mc_index(smi, i, &index); in rtl8366_mc_is_used() 47 static int rtl8366_obtain_mc(struct realtek_smi *smi, int vid, in rtl8366_obtain_mc() argument 55 for (i = 0; i < smi->num_vlan_mc; i++) { in rtl8366_obtain_mc() 56 ret = smi->ops->get_vlan_mc(smi, i, vlanmc); in rtl8366_obtain_mc() 58 dev_err(smi->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 68 for (i = 0; i < smi->num_vlan_mc; i++) { in rtl8366_obtain_mc() 69 ret = smi->ops->get_vlan_mc(smi, i, vlanmc); in rtl8366_obtain_mc() 71 dev_err(smi->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() [all …]
|
D | rtl8366rb.c | 358 static int rtl8366rb_get_mib_counter(struct realtek_smi *smi, in rtl8366rb_get_mib_counter() argument 374 ret = regmap_write(smi->map, addr, 0); /* Write whatever */ in rtl8366rb_get_mib_counter() 379 ret = regmap_read(smi->map, RTL8366RB_MIB_CTRL_REG, &val); in rtl8366rb_get_mib_counter() 392 ret = regmap_read(smi->map, addr + (i - 1), &val); in rtl8366rb_get_mib_counter() 417 struct realtek_smi *smi = irq_data_get_irq_chip_data(d); in rtl8366rb_mask_irq() local 420 ret = regmap_update_bits(smi->map, RTL8366RB_INTERRUPT_MASK_REG, in rtl8366rb_mask_irq() 423 dev_err(smi->dev, "could not mask IRQ\n"); in rtl8366rb_mask_irq() 428 struct realtek_smi *smi = irq_data_get_irq_chip_data(d); in rtl8366rb_unmask_irq() local 431 ret = regmap_update_bits(smi->map, RTL8366RB_INTERRUPT_MASK_REG, in rtl8366rb_unmask_irq() 435 dev_err(smi->dev, "could not unmask IRQ\n"); in rtl8366rb_unmask_irq() [all …]
|
D | realtek-smi-core.h | 82 int (*detect)(struct realtek_smi *smi); 83 int (*reset_chip)(struct realtek_smi *smi); 84 int (*setup)(struct realtek_smi *smi); 85 void (*cleanup)(struct realtek_smi *smi); 86 int (*get_mib_counter)(struct realtek_smi *smi, 90 int (*get_vlan_mc)(struct realtek_smi *smi, u32 index, 92 int (*set_vlan_mc)(struct realtek_smi *smi, u32 index, 94 int (*get_vlan_4k)(struct realtek_smi *smi, u32 vid, 96 int (*set_vlan_4k)(struct realtek_smi *smi, 98 int (*get_mc_index)(struct realtek_smi *smi, int port, int *val); [all …]
|
D | Makefile | 12 obj-$(CONFIG_NET_DSA_REALTEK_SMI) += realtek-smi.o 13 realtek-smi-objs := realtek-smi-core.o rtl8366.o rtl8366rb.o
|
/Linux-v5.15/drivers/char/ipmi/ |
D | ipmi_powernv.c | 38 struct ipmi_smi_powernv *smi = send_info; in ipmi_powernv_start_processing() local 40 smi->intf = intf; in ipmi_powernv_start_processing() 44 static void send_error_reply(struct ipmi_smi_powernv *smi, in send_error_reply() argument 51 ipmi_smi_msg_received(smi->intf, msg); in send_error_reply() 56 struct ipmi_smi_powernv *smi = send_info; in ipmi_powernv_send() local 74 spin_lock_irqsave(&smi->msg_lock, flags); in ipmi_powernv_send() 76 if (smi->cur_msg) { in ipmi_powernv_send() 82 opal_msg = smi->opal_msg; in ipmi_powernv_send() 93 smi->interface_id, opal_msg, size); in ipmi_powernv_send() 94 rc = opal_ipmi_send(smi->interface_id, opal_msg, size); in ipmi_powernv_send() [all …]
|
D | ipmi_si_sm.h | 56 unsigned int (*init_data)(struct si_sm_data *smi, 65 int (*start_transaction)(struct si_sm_data *smi, 73 int (*get_result)(struct si_sm_data *smi, 84 enum si_sm_result (*event)(struct si_sm_data *smi, long time); 90 int (*detect)(struct si_sm_data *smi); 93 void (*cleanup)(struct si_sm_data *smi);
|
/Linux-v5.15/drivers/memory/ |
D | mtk-smi.c | 89 struct mtk_smi smi; member 98 static int mtk_smi_clk_enable(const struct mtk_smi *smi) in mtk_smi_clk_enable() argument 102 ret = clk_prepare_enable(smi->clk_apb); in mtk_smi_clk_enable() 106 ret = clk_prepare_enable(smi->clk_smi); in mtk_smi_clk_enable() 110 ret = clk_prepare_enable(smi->clk_gals0); in mtk_smi_clk_enable() 114 ret = clk_prepare_enable(smi->clk_gals1); in mtk_smi_clk_enable() 121 clk_disable_unprepare(smi->clk_gals0); in mtk_smi_clk_enable() 123 clk_disable_unprepare(smi->clk_smi); in mtk_smi_clk_enable() 125 clk_disable_unprepare(smi->clk_apb); in mtk_smi_clk_enable() 129 static void mtk_smi_clk_disable(const struct mtk_smi *smi) in mtk_smi_clk_disable() argument [all …]
|
/Linux-v5.15/arch/arm64/boot/dts/mediatek/ |
D | mt8167.dtsi | 135 smi_common: smi@14017000 { 136 compatible = "mediatek,mt8167-smi-common"; 140 clock-names = "apb", "smi"; 145 compatible = "mediatek,mt8167-smi-larb"; 147 mediatek,smi = <&smi_common>; 150 clock-names = "apb", "smi"; 155 compatible = "mediatek,mt8167-smi-larb"; 157 mediatek,smi = <&smi_common>; 160 clock-names = "apb", "smi"; 165 compatible = "mediatek,mt8167-smi-larb"; [all …]
|
D | mt2712e.dtsi | 992 compatible = "mediatek,mt2712-smi-larb"; 994 mediatek,smi = <&smi_common0>; 999 clock-names = "apb", "smi"; 1002 smi_common0: smi@14022000 { 1003 compatible = "mediatek,mt2712-smi-common"; 1008 clock-names = "apb", "smi"; 1012 compatible = "mediatek,mt2712-smi-larb"; 1014 mediatek,smi = <&smi_common1>; 1019 clock-names = "apb", "smi"; 1023 compatible = "mediatek,mt2712-smi-larb"; [all …]
|
D | mt8183.dtsi | 490 mediatek,smi = <&smi_common>; 509 mediatek,smi = <&smi_common>; 520 mediatek,smi = <&smi_common>; 526 mediatek,smi = <&smi_common>; 532 mediatek,smi = <&smi_common>; 549 mediatek,smi = <&smi_common>; 1363 compatible = "mediatek,mt8183-smi-larb"; 1365 mediatek,smi = <&smi_common>; 1369 clock-names = "apb", "smi"; 1372 smi_common: smi@14019000 { [all …]
|
D | mt8173.dtsi | 1295 compatible = "mediatek,mt8173-smi-larb"; 1297 mediatek,smi = <&smi_common>; 1301 clock-names = "apb", "smi"; 1304 smi_common: smi@14022000 { 1305 compatible = "mediatek,mt8173-smi-common"; 1310 clock-names = "apb", "smi"; 1352 compatible = "mediatek,mt8173-smi-larb"; 1354 mediatek,smi = <&smi_common>; 1358 clock-names = "apb", "smi"; 1368 compatible = "mediatek,mt8173-smi-larb"; [all …]
|
/Linux-v5.15/arch/arm/boot/dts/ |
D | mt7623n.dtsi | 60 compatible = "mediatek,mt7623-smi-larb", 61 "mediatek,mt2701-smi-larb"; 63 mediatek,smi = <&smi_common>; 67 clock-names = "apb", "smi"; 72 compatible = "mediatek,mt7623-smi-larb", 73 "mediatek,mt2701-smi-larb"; 75 mediatek,smi = <&smi_common>; 79 clock-names = "apb", "smi"; 84 compatible = "mediatek,mt7623-smi-larb", 85 "mediatek,mt2701-smi-larb"; [all …]
|
D | mt2701.dtsi | 190 smi_common: smi@1000c000 { 191 compatible = "mediatek,mt2701-smi-common"; 196 clock-names = "apb", "smi", "async"; 531 compatible = "mediatek,mt2701-smi-larb"; 533 mediatek,smi = <&smi_common>; 537 clock-names = "apb", "smi"; 548 compatible = "mediatek,mt2701-smi-larb"; 550 mediatek,smi = <&smi_common>; 554 clock-names = "apb", "smi"; 564 clock-names = "jpgdec-smi", [all …]
|
D | spear600-evb.dts | 50 &smi { 56 st,smi-fast-mode;
|
D | spear1310-evb.dts | 63 smi-pmx { 65 st,function = "smi"; 171 smi: flash@ea000000 { label 179 st,smi-fast-mode;
|
D | spear310-evb.dts | 95 smi: flash@fc000000 { label 103 st,smi-fast-mode;
|
D | spear320-evb.dts | 96 smi: flash@fc000000 { label 104 st,smi-fast-mode;
|
/Linux-v5.15/Documentation/devicetree/bindings/mtd/ |
D | spear_smi.txt | 4 - compatible : "st,spear600-smi" 12 - st,smi-fast-mode : Flash supports read in fast mode 16 smi: flash@fc000000 { 17 compatible = "st,spear600-smi"; 26 st,smi-fast-mode;
|
/Linux-v5.15/drivers/mmc/host/ |
D | cavium.c | 301 struct sg_mapping_iter *smi = &host->smi; in do_read() local 310 if (smi->consumed >= smi->length) { in do_read() 311 if (!sg_miter_next(smi)) in do_read() 313 smi->consumed = 0; in do_read() 321 while (smi->consumed < smi->length && shift >= 0) { in do_read() 322 ((u8 *)smi->addr)[smi->consumed] = (dat >> shift) & 0xff; in do_read() 324 smi->consumed++; in do_read() 329 sg_miter_stop(smi); in do_read() 709 sg_miter_start(&host->smi, mrq->data->sg, mrq->data->sg_len, in do_read_request() 716 struct sg_mapping_iter *smi = &host->smi; in do_write_request() local [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/media/ |
D | mediatek-jpeg-decoder.txt | 15 - clock-names: must contain "jpgdec-smi" and "jpgdec". 19 Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml 32 clock-names = "jpgdec-smi",
|
/Linux-v5.15/Documentation/devicetree/bindings/pinctrl/ |
D | marvell,armada-98dx3236-pinctrl.txt | 18 mpp4 4 gpio, spi0(cs1), smi(mdc), dev(cs0) 45 mpp31 31 gpio, slv_smi(mdc), smi(mdc), dev(we1) 46 mpp32 32 gpio, slv_smi(mdio), smi(mdio), dev(cs1)
|
D | marvell,armada-39x-pinctrl.txt | 22 mpp4 4 gpio, ua1(txd), ua0(rts), smi(mdc) 23 mpp5 5 gpio, ua1(rxd), ua0(cts), smi(mdio) 35 mpp17 17 gpio, ua1(rxd), spi0(sck), sata1(prsnt) [1], sata0(prsnt) [1], smi(mdio) 38 mpp20 20 gpio, sata0(prsnt) [1], ua0(rts), ua1(txd), smi(mdc)
|
/Linux-v5.15/Documentation/devicetree/bindings/display/ |
D | sm501fb.txt | 7 - compatible : should be "smi,sm501". 26 compatible = "smi,sm501";
|
/Linux-v5.15/drivers/soc/mediatek/ |
D | mtk-pm-domains.c | 44 struct regmap *smi; member 150 return _scpsys_bus_protect_enable(pd->data->bp_smi, pd->smi); in scpsys_bus_protect_enable() 186 ret = _scpsys_bus_protect_disable(pd->data->bp_smi, pd->smi); in scpsys_bus_protect_disable() 358 pd->smi = device_node_to_regmap(smi_node); in scpsys_add_one_domain() 360 if (IS_ERR(pd->smi)) in scpsys_add_one_domain() 361 return ERR_CAST(pd->smi); in scpsys_add_one_domain()
|