/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
|
/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);
|
D | ipmi_si_intf.c | 248 #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/ |
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 …]
|
D | Makefile | 22 obj-$(CONFIG_MTK_SMI) += mtk-smi.o
|
/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 …]
|
D | cavium.h | 68 struct sg_mapping_iter smi; member
|
/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()
|
/drivers/net/dsa/mv88e6xxx/ |
D | Makefile | 17 mv88e6xxx-objs += smi.o
|
/drivers/infiniband/core/ |
D | Makefile | 13 multicast.o mad.o smi.o agent.o mad_rmpp.o \
|
/drivers/cpufreq/ |
D | Makefile | 45 obj-$(CONFIG_X86_SPEEDSTEP_SMI) += speedstep-smi.o
|