Home
last modified time | relevance | path

Searched refs:smi (Results 1 – 16 of 16) sorted by relevance

/drivers/net/dsa/
Drealtek-smi-core.c49 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 …]
Drtl8366.c16 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 …]
Drtl8366rb.c358 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 …]
Drealtek-smi-core.h82 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 …]
DMakefile12 obj-$(CONFIG_NET_DSA_REALTEK_SMI) += realtek-smi.o
13 realtek-smi-objs := realtek-smi-core.o rtl8366.o rtl8366rb.o
/drivers/char/ipmi/
Dipmi_powernv.c38 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 …]
Dipmi_si_sm.h56 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);
Dipmi_si_intf.c248 #define smi_inc_stat(smi, stat) \ argument
249 atomic_inc(&(smi)->stats[SI_STAT_ ## stat])
250 #define smi_get_stat(smi, stat) \ argument
251 ((unsigned int) atomic_read(&(smi)->stats[SI_STAT_ ## stat]))
262 static int try_smi_init(struct smi_info *smi);
1185 struct smi_info *smi = send_info; in get_smi_info() local
1187 data->addr_src = smi->io.addr_source; in get_smi_info()
1188 data->dev = smi->io.dev; in get_smi_info()
1189 data->addr_info = smi->io.addr_info; in get_smi_info()
1190 get_device(smi->io.dev); in get_smi_info()
/drivers/memory/
Dmtk-smi.c89 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 …]
DMakefile22 obj-$(CONFIG_MTK_SMI) += mtk-smi.o
/drivers/mmc/host/
Dcavium.c301 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 …]
Dcavium.h68 struct sg_mapping_iter smi; member
/drivers/soc/mediatek/
Dmtk-pm-domains.c44 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()
/drivers/net/dsa/mv88e6xxx/
DMakefile17 mv88e6xxx-objs += smi.o
/drivers/infiniband/core/
DMakefile13 multicast.o mad.o smi.o agent.o mad_rmpp.o \
/drivers/cpufreq/
DMakefile45 obj-$(CONFIG_X86_SPEEDSTEP_SMI) += speedstep-smi.o