Home
last modified time | relevance | path

Searched refs:smi (Results 1 – 15 of 15) 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()
39 int rtl8366_set_vlan(struct realtek_smi *smi, int vid, u32 member, in rtl8366_set_vlan() argument
47 ret = smi->ops->get_vlan_4k(smi, vid, &vlan4k); in rtl8366_set_vlan()
54 ret = smi->ops->set_vlan_4k(smi, &vlan4k); in rtl8366_set_vlan()
59 for (i = 0; i < smi->num_vlan_mc; i++) { in rtl8366_set_vlan()
62 ret = smi->ops->get_vlan_mc(smi, i, &vlanmc); in rtl8366_set_vlan()
72 ret = smi->ops->set_vlan_mc(smi, i, &vlanmc); in rtl8366_set_vlan()
81 int rtl8366_get_pvid(struct realtek_smi *smi, int port, int *val) in rtl8366_get_pvid() argument
[all …]
Drtl8366rb.c350 static int rtl8366rb_get_mib_counter(struct realtek_smi *smi, in rtl8366rb_get_mib_counter() argument
366 ret = regmap_write(smi->map, addr, 0); /* Write whatever */ in rtl8366rb_get_mib_counter()
371 ret = regmap_read(smi->map, RTL8366RB_MIB_CTRL_REG, &val); in rtl8366rb_get_mib_counter()
384 ret = regmap_read(smi->map, addr + (i - 1), &val); in rtl8366rb_get_mib_counter()
409 struct realtek_smi *smi = irq_data_get_irq_chip_data(d); in rtl8366rb_mask_irq() local
412 ret = regmap_update_bits(smi->map, RTL8366RB_INTERRUPT_MASK_REG, in rtl8366rb_mask_irq()
415 dev_err(smi->dev, "could not mask IRQ\n"); in rtl8366rb_mask_irq()
420 struct realtek_smi *smi = irq_data_get_irq_chip_data(d); in rtl8366rb_unmask_irq() local
423 ret = regmap_update_bits(smi->map, RTL8366RB_INTERRUPT_MASK_REG, in rtl8366rb_unmask_irq()
427 dev_err(smi->dev, "could not unmask IRQ\n"); in rtl8366rb_unmask_irq()
[all …]
Drealtek-smi-core.h78 int (*detect)(struct realtek_smi *smi);
79 int (*reset_chip)(struct realtek_smi *smi);
80 int (*setup)(struct realtek_smi *smi);
81 void (*cleanup)(struct realtek_smi *smi);
82 int (*get_mib_counter)(struct realtek_smi *smi,
86 int (*get_vlan_mc)(struct realtek_smi *smi, u32 index,
88 int (*set_vlan_mc)(struct realtek_smi *smi, u32 index,
90 int (*get_vlan_4k)(struct realtek_smi *smi, u32 vid,
92 int (*set_vlan_4k)(struct realtek_smi *smi,
94 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.c247 #define smi_inc_stat(smi, stat) \ argument
248 atomic_inc(&(smi)->stats[SI_STAT_ ## stat])
249 #define smi_get_stat(smi, stat) \ argument
250 ((unsigned int) atomic_read(&(smi)->stats[SI_STAT_ ## stat]))
261 static int try_smi_init(struct smi_info *smi);
1199 struct smi_info *smi = send_info; in get_smi_info() local
1201 data->addr_src = smi->io.addr_source; in get_smi_info()
1202 data->dev = smi->io.dev; in get_smi_info()
1203 data->addr_info = smi->io.addr_info; in get_smi_info()
1204 get_device(smi->io.dev); in get_smi_info()
/drivers/memory/
Dmtk-smi.c81 struct mtk_smi smi; member
89 static int mtk_smi_clk_enable(const struct mtk_smi *smi) in mtk_smi_clk_enable() argument
93 ret = clk_prepare_enable(smi->clk_apb); in mtk_smi_clk_enable()
97 ret = clk_prepare_enable(smi->clk_smi); in mtk_smi_clk_enable()
101 ret = clk_prepare_enable(smi->clk_gals0); in mtk_smi_clk_enable()
105 ret = clk_prepare_enable(smi->clk_gals1); in mtk_smi_clk_enable()
112 clk_disable_unprepare(smi->clk_gals0); in mtk_smi_clk_enable()
114 clk_disable_unprepare(smi->clk_smi); in mtk_smi_clk_enable()
116 clk_disable_unprepare(smi->clk_apb); in mtk_smi_clk_enable()
120 static void mtk_smi_clk_disable(const struct mtk_smi *smi) in mtk_smi_clk_disable() argument
[all …]
DMakefile21 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()
711 sg_miter_start(&host->smi, mrq->data->sg, mrq->data->sg_len, in do_read_request()
718 struct sg_mapping_iter *smi = &host->smi; in do_write_request() local
[all …]
Dcavium.h68 struct sg_mapping_iter smi; member
/drivers/net/dsa/mv88e6xxx/
DMakefile16 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