Home
last modified time | relevance | path

Searched full:slave (Results 1 – 25 of 1547) sorted by relevance

12345678910>>...62

/linux/include/net/
H A Dbonding.h43 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
45 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
47 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
49 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
53 /* slave list primitives */
78 * @pos: current slave
157 struct slave { struct
168 u8 backup:1, /* indicates backup slave. Value corresponds with argument
170 inactive:1, /* indicates inactive slave */ argument
171 rx_disabled:1, /* indicates whether slave's Rx is disabled */ argument
[all …]
H A Dbond_alb.h12 struct slave;
15 #define SLAVE_TLB_INFO(slave) ((slave)->tlb_info) argument
49 /* RLB_PROMISC_TIMEOUT = 10 sec equals the time that the current slave is
56 struct slave *tx_slave; /* A pointer to slave used for transmitting
111 struct slave *slave; /* the slave assigned to this client */ member
119 * slave for transmit.
121 u32 load; /* Each slave sums the loadHistory of all clients
138 struct slave *rx_slave;/* last slave to xmit from */
155 int bond_alb_init_slave(struct bonding *bond, struct slave *slave);
156 void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave);
[all …]
/linux/drivers/net/bonding/
H A Dbond_main.c21 * the first slave bonded to the channel. All slaves will then use
28 * will attach eth0 to bond0 as a slave. eth0 hw mac address will either
154 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
159 "2 for only on active slave "
198 MODULE_PARM_DESC(packets_per_slave, "Packets to send per slave in balance-rr "
199 "mode; 0 for a random slave, 1 packet per "
200 "slave (default), >1 packets per slave.");
295 * @slave_dev: slave that is supposed to xmit this skbuff
347 * We don't protect the slave list iteration with a lock because:
372 struct slave *slave, *rollback_slave; in bond_vlan_rx_add_vid() local
[all …]
H A Dbond_sysfs_slave.c15 ssize_t (*show)(struct slave *, char *);
21 static ssize_t state_show(struct slave *slave, char *buf) in state_show() argument
23 switch (bond_slave_state(slave)) { in state_show()
34 static ssize_t mii_status_show(struct slave *slave, char *buf) in mii_status_show() argument
36 return sysfs_emit(buf, "%s\n", bond_slave_link_status(slave->link)); in mii_status_show()
40 static ssize_t link_failure_count_show(struct slave *slave, char *buf) in link_failure_count_show() argument
42 return sysfs_emit(buf, "%d\n", slave->link_failure_count); in link_failure_count_show()
46 static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) in perm_hwaddr_show() argument
49 slave->dev->addr_len, in perm_hwaddr_show()
50 slave->perm_hwaddr); in perm_hwaddr_show()
[all …]
H A Dbond_alb.c54 static void alb_send_learning_packets(struct slave *slave, const u8 mac_addr[],
87 static inline void tlb_init_slave(struct slave *slave) in tlb_init_slave() argument
89 SLAVE_TLB_INFO(slave).load = 0; in tlb_init_slave()
90 SLAVE_TLB_INFO(slave).head = TLB_NULL_INDEX; in tlb_init_slave()
93 static void __tlb_clear_slave(struct bonding *bond, struct slave *slave, in __tlb_clear_slave() argument
99 /* clear slave from tx_hashtbl */ in __tlb_clear_slave()
104 index = SLAVE_TLB_INFO(slave).head; in __tlb_clear_slave()
113 tlb_init_slave(slave); in __tlb_clear_slave()
116 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument
120 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave()
[all …]
H A Dbond_3ad.c129 if (port->slave == NULL) in __get_bond_by_port()
132 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port()
139 * Return the aggregator of the first slave in @bond, or %NULL if it can't be
146 struct slave *first_slave; in __get_first_agg()
174 * __disable_distributing_port - disable the port's slave for distributing.
178 * This will disable only distributing on the port's slave.
182 bond_set_slave_tx_disabled_flags(port->slave, BOND_SLAVE_NOTIFY_LATER); in __disable_distributing_port()
186 * __enable_collecting_port - enable the port's slave for collecting,
190 * This will enable only collecting on the port's slave.
194 struct slave *slave = port->slave; in __enable_collecting_port() local
[all …]
/linux/drivers/fsi/
H A Dfsi-core.c28 #include "fsi-slave.h"
51 * FSI slave engine control register offsets
55 #define FSI_SSTAT 0x14 /* R : Slave status */
126 return fsi_slave_read(dev->slave, dev->addr + addr, val, size); in fsi_device_read()
136 return fsi_slave_write(dev->slave, dev->addr + addr, val, size); in fsi_device_write()
144 return fsi_slave_read(dev->slave, addr, val, sizeof(uint32_t)); in fsi_device_peek()
155 static struct fsi_device *fsi_create_device(struct fsi_slave *slave) in fsi_create_device() argument
163 dev->dev.parent = &slave->dev; in fsi_create_device()
170 /* FSI slave support */
171 static int fsi_slave_calc_addr(struct fsi_slave *slave, uint32_t *addrp, in fsi_slave_calc_addr() argument
[all …]
/linux/drivers/soundwire/
H A Dbus_type.c15 * @slave: SoundWire Slave Device
16 * @drv: SoundWire Slave Driver
22 sdw_get_device_id(struct sdw_slave *slave, const struct sdw_driver *drv) in sdw_get_device_id() argument
27 if (slave->id.mfg_id == id->mfg_id && in sdw_get_device_id()
28 slave->id.part_id == id->part_id && in sdw_get_device_id()
30 slave->id.sdw_version == id->sdw_version) && in sdw_get_device_id()
32 slave->id.class_id == id->class_id)) in sdw_get_device_id()
40 struct sdw_slave *slave; in sdw_bus_match() local
45 slave in sdw_bus_match()
53 sdw_slave_modalias(const struct sdw_slave * slave,char * buf,size_t size) sdw_slave_modalias() argument
64 const struct sdw_slave *slave = dev_to_sdw_dev(dev); sdw_slave_uevent() local
83 struct sdw_slave *slave = dev_to_sdw_dev(dev); sdw_drv_probe() local
162 struct sdw_slave *slave = dev_to_sdw_dev(dev); sdw_drv_remove() local
185 struct sdw_slave *slave = dev_to_sdw_dev(dev); sdw_drv_shutdown() local
[all...]
H A Ddebugfs.c36 static ssize_t sdw_sprintf(struct sdw_slave *slave, in sdw_sprintf() argument
41 value = sdw_read_no_pm(slave, reg); in sdw_sprintf()
52 struct sdw_slave *slave = s_file->private; in sdw_slave_reg_show() local
60 ret = pm_runtime_get_sync(&slave->dev); in sdw_slave_reg_show()
62 pm_runtime_put_noidle(&slave->dev); in sdw_slave_reg_show()
71 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
75 ret += sdw_sprintf(slave, buf, ret, SDW_DP0_CHANNELEN); in sdw_slave_reg_show()
77 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
81 ret += sdw_sprintf(slave, buf, ret, in sdw_slave_reg_show()
85 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
[all …]
H A Dslave.c14 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local
16 mutex_destroy(&slave->sdw_dev_lock); in sdw_slave_release()
17 kfree(slave); in sdw_slave_release()
29 struct sdw_slave *slave; in sdw_slave_add() local
33 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add()
34 if (!slave) in sdw_slave_add()
38 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add()
39 slave->dev.parent = bus->dev; in sdw_slave_add()
40 slave->dev.fwnode = fwnode; in sdw_slave_add()
44 dev_set_name(&slave->dev, "sdw:%01x:%01x:%04x:%04x:%02x", in sdw_slave_add()
[all …]
H A Dstream.c63 struct sdw_slave *slave, in _sdw_program_slave_port_params() argument
84 ret = sdw_write_no_pm(slave, addr1, t_params->offset2); in _sdw_program_slave_port_params()
91 ret = sdw_write_no_pm(slave, addr2, t_params->blk_pkg_mode); in _sdw_program_slave_port_params()
108 ret = sdw_write_no_pm(slave, addr3, wbuf); in _sdw_program_slave_port_params()
118 ret = sdw_write_no_pm(slave, addr4, wbuf); in _sdw_program_slave_port_params()
131 struct sdw_slave_prop *slave_prop = &s_rt->slave->prop; in sdw_program_slave_port_params()
137 if (s_rt->slave->is_mockup_device) in sdw_program_slave_port_params()
140 dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave, in sdw_program_slave_port_params()
166 ret = sdw_update_no_pm(s_rt->slave, addr1, 0xF, wbuf); in sdw_program_slave_port_params()
168 dev_err(&s_rt->slave in sdw_program_slave_port_params()
406 struct sdw_slave *slave = s_rt->slave; sdw_do_port_prep() local
587 struct sdw_slave *slave; sdw_notify_config() local
925 sdw_slave_port_free(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_slave_port_free() argument
945 sdw_slave_port_alloc(struct sdw_slave * slave,struct sdw_slave_runtime * s_rt,unsigned int num_config) sdw_slave_port_alloc() argument
972 sdw_slave_port_config(struct sdw_slave * slave,struct sdw_slave_runtime * s_rt,const struct sdw_port_config * port_config) sdw_slave_port_config() argument
1056 sdw_slave_rt_alloc(struct sdw_slave * slave,struct sdw_master_runtime * m_rt) sdw_slave_rt_alloc() argument
1090 sdw_slave_rt_find(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_slave_rt_find() argument
1115 sdw_slave_rt_free(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_slave_rt_free() argument
1289 sdw_get_slave_dpn_prop(struct sdw_slave * slave,enum sdw_data_direction direction,unsigned int port_num) sdw_get_slave_dpn_prop() argument
1988 sdw_stream_add_slave(struct sdw_slave * slave,struct sdw_stream_config * stream_config,const struct sdw_port_config * port_config,unsigned int num_ports,struct sdw_stream_runtime * stream) sdw_stream_add_slave() argument
2092 sdw_stream_remove_slave(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_stream_remove_slave() argument
[all...]
H A Dbus.h33 void sdw_slave_debugfs_init(struct sdw_slave *slave);
34 void sdw_slave_debugfs_exit(struct sdw_slave *slave);
40 static inline void sdw_slave_debugfs_init(struct sdw_slave *slave) {} in sdw_slave_debugfs_init() argument
41 static inline void sdw_slave_debugfs_exit(struct sdw_slave *slave) {} in sdw_slave_debugfs_exit() argument
53 * @addr: Register address accessed in the Slave
55 * @dev_num: Slave device number
56 * @addr_page1: SCP address page 1 Slave register
57 * @addr_page2: SCP address page 2 Slave register
85 * sdw_port_runtime: Runtime port parameters for Master or Slave
92 * @port_node: List node for Master or Slave port_lis
116 struct sdw_slave *slave; global() member
[all...]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dresource_tracker.c306 static void rem_slave_vlans(struct mlx4_dev *dev, int slave);
307 static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave, in mlx4_grant_resource() argument
318 if (slave > dev->persist->num_vfs) in mlx4_grant_resource()
324 (dev->persist->num_vfs + 1) + slave] : in mlx4_grant_resource()
325 res_alloc->allocated[slave]; in mlx4_grant_resource()
330 guaranteed = res_alloc->guaranteed[slave]; in mlx4_grant_resource()
332 if (allocated + count > res_alloc->quota[slave]) { in mlx4_grant_resource()
334 slave, port, resource_str(res_type), count, in mlx4_grant_resource()
335 allocated, res_alloc->quota[slave]); in mlx4_grant_resource()
355 slave, port, resource_str(res_type), free, in mlx4_grant_resource()
[all …]
H A Dcmd.c136 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave,
318 /* check if the slave is trying to boot in the middle of in mlx4_comm_cmd_poll()
813 int slave, u64 slave_addr, in mlx4_ACCESS_MEM() argument
820 (slave & ~0x7f) | (size & 0xff)) { in mlx4_ACCESS_MEM()
822 slave_addr, master_addr, slave, size); in mlx4_ACCESS_MEM()
827 in_param = (u64) slave | slave_addr; in mlx4_ACCESS_MEM()
831 out_param = (u64) slave | slave_addr; in mlx4_ACCESS_MEM()
891 static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave, in mlx4_MAD_IFC_wrapper() argument
912 port = mlx4_slave_convert_port(dev, slave, slave_port); in mlx4_MAD_IFC_wrapper()
938 pidx = priv->virt2phys_pkey[slave][port - 1][vidx]; in mlx4_MAD_IFC_wrapper()
[all …]
/linux/drivers/net/ethernet/ti/
H A Dnetcp_ethss.c451 /* Some hw stat regs are applicable to slave port only.
459 u32 rx_pause_frames; /* slave */
461 u32 rx_align_code_errors; /* slave */
463 u32 rx_jabber_frames; /* slave */
465 u32 rx_fragments; /* slave */
472 u32 tx_pause_frames; /* slave */
473 u32 tx_deferred_frames; /* slave */
474 u32 tx_collision_frames; /* slave */
475 u32 tx_single_coll_frames; /* slave */
476 u32 tx_mult_coll_frames; /* slave */
[all …]
/linux/sound/soc/codecs/
H A Drt711-sdca-sdw.c141 static int rt711_sdca_update_status(struct sdw_slave *slave, in rt711_sdca_update_status() argument
144 struct rt711_sdca_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_sdca_update_status()
157 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK1, in rt711_sdca_update_status()
159 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK2, in rt711_sdca_update_status()
165 * Perform initialization only if slave status is present and in rt711_sdca_update_status()
171 /* perform I/O transfers required for Slave initialization */ in rt711_sdca_update_status()
172 return rt711_sdca_io_init(&slave->dev, slave); in rt711_sdca_update_status()
175 static int rt711_sdca_read_prop(struct sdw_slave *slave) in rt711_sdca_read_prop() argument
177 struct sdw_slave_prop *prop = &slave->prop; in rt711_sdca_read_prop()
194 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_sdca_read_prop()
[all …]
H A Drt712-sdca-sdw.c156 static int rt712_sdca_update_status(struct sdw_slave *slave, in rt712_sdca_update_status() argument
159 struct rt712_sdca_priv *rt712 = dev_get_drvdata(&slave->dev); in rt712_sdca_update_status()
172 sdw_write_no_pm(rt712->slave, SDW_SCP_SDCA_INTMASK1, in rt712_sdca_update_status()
174 sdw_write_no_pm(rt712->slave, SDW_SCP_SDCA_INTMASK2, in rt712_sdca_update_status()
180 * Perform initialization only if slave status is present and in rt712_sdca_update_status()
186 /* perform I/O transfers required for Slave initialization */ in rt712_sdca_update_status()
187 return rt712_sdca_io_init(&slave->dev, slave); in rt712_sdca_update_status()
190 static int rt712_sdca_read_prop(struct sdw_slave *slave) in rt712_sdca_read_prop() argument
192 struct sdw_slave_prop *prop = &slave->prop; in rt712_sdca_read_prop()
199 sdw_slave_read_prop(slave); in rt712_sdca_read_prop()
[all …]
H A Drt5682-sdw.c121 if (!rt5682->slave) in rt5682_sdw_hw_params()
132 retval = sdw_stream_add_slave(rt5682->slave, &stream_config, in rt5682_sdw_hw_params()
230 if (!rt5682->slave) in rt5682_sdw_hw_free()
233 sdw_stream_remove_slave(rt5682->slave, sdw_stream); in rt5682_sdw_hw_free()
298 struct sdw_slave *slave) in rt5682_sdw_init() argument
308 rt5682->slave = slave; in rt5682_sdw_init()
368 static int rt5682_io_init(struct device *dev, struct sdw_slave *slave) in rt5682_io_init() argument
385 * PM runtime status is marked as 'active' only when a Slave reports as Attached in rt5682_io_init()
389 pm_runtime_set_active(&slave->dev); in rt5682_io_init()
391 pm_runtime_get_noresume(&slave->dev); in rt5682_io_init()
[all …]
H A Drt715-sdca-sdw.c119 static int rt715_sdca_update_status(struct sdw_slave *slave, in rt715_sdca_update_status() argument
122 struct rt715_sdca_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_sdca_update_status()
125 * Perform initialization only if slave status is present and in rt715_sdca_update_status()
131 /* perform I/O transfers required for Slave initialization */ in rt715_sdca_update_status()
132 return rt715_sdca_io_init(&slave->dev, slave); in rt715_sdca_update_status()
135 static int rt715_sdca_read_prop(struct sdw_slave *slave) in rt715_sdca_read_prop() argument
137 struct sdw_slave_prop *prop = &slave->prop; in rt715_sdca_read_prop()
150 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt715_sdca_read_prop()
177 static int rt715_sdca_sdw_probe(struct sdw_slave *slave, in rt715_sdca_sdw_probe() argument
183 mbq_regmap = devm_regmap_init_sdw_mbq(slave, &rt715_sdca_mbq_regmap); in rt715_sdca_sdw_probe()
[all …]
/linux/Documentation/driver-api/soundwire/
H A Dsummary.rst25 The SoundWire protocol supports up to eleven Slave interfaces. All the
36 two Slave devices. ::
40 | Master |-------+-------------------------------| Slave |
49 | Slave |
59 or Slave interface, which of course can be confusing. In this summary and
61 Linux device model by mapping each Slave interface connected on the bus as a
63 a framework to implement a SoundWire Slave driver with an API allowing
69 Programs all the MIPI-defined Slave registers. Represents a SoundWire
72 Slave:
73 Registers as SoundWire Slave device (Linux Device). Multiple Slave devices
[all …]
/linux/arch/arm/mach-omap2/
H A Domap_hwmod_2xxx_interconnect_data.c26 .slave = &omap2xxx_l4_core_hwmod,
33 .slave = &omap2xxx_l3_main_hwmod,
40 .slave = &omap2xxx_l3_main_hwmod,
53 .slave = &omap2xxx_l4_wkup_hwmod,
60 .slave = &omap2xxx_uart1_hwmod,
68 .slave = &omap2xxx_uart2_hwmod,
76 .slave = &omap2xxx_uart3_hwmod,
84 .slave = &omap2xxx_mcspi1_hwmod,
92 .slave = &omap2xxx_mcspi2_hwmod,
100 .slave = &omap2xxx_timer3_hwmod,
[all …]
/linux/drivers/net/
H A Deql.c142 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave);
152 slave_t *slave = list_entry(this, slave_t, list); in eql_timer() local
154 if ((slave->dev->flags & IFF_UP) == IFF_UP) { in eql_timer()
155 slave->bytes_queued -= slave->priority_Bps; in eql_timer()
156 if (slave->bytes_queued < 0) in eql_timer()
157 slave->bytes_queued = 0; in eql_timer()
159 eql_kill_one_slave(&eql->queue, slave); in eql_timer()
211 "remember to turn off Van-Jacobson compression on your slave devices\n"); in eql_open()
223 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave) in eql_kill_one_slave() argument
225 list_del(&slave->list); in eql_kill_one_slave()
[all …]
/linux/Documentation/devicetree/bindings/clock/
H A Damlogic,axg-audio-clkc.yaml46 - description: slave bit clock N0 provided by external components
47 - description: slave bit clock N1 provided by external components
48 - description: slave bit clock N2 provided by external components
49 - description: slave bit clock N3 provided by external components
50 - description: slave bit clock N4 provided by external components
51 - description: slave bit clock N5 provided by external components
52 - description: slave bit clock N6 provided by external components
53 - description: slave bit clock N7 provided by external components
54 - description: slave bit clock N8 provided by external components
55 - description: slave bit clock N9 provided by external components
[all …]
/linux/drivers/i2c/busses/
H A Di2c-designware-slave.c3 * Synopsys DesignWare I2C adapter driver (slave only).
30 /* Configure the I2C slave. */ in i2c_dw_configure_fifo_slave()
36 * i2c_dw_init_slave() - Initialize the DesignWare i2c slave hardware
39 * This function configures and enables the I2C in slave mode.
66 static int i2c_dw_reg_slave(struct i2c_client *slave) in i2c_dw_reg_slave() argument
68 struct dw_i2c_dev *dev = i2c_get_adapdata(slave->adapter); in i2c_dw_reg_slave()
70 if (dev->slave) in i2c_dw_reg_slave()
72 if (slave->flags & I2C_CLIENT_TEN) in i2c_dw_reg_slave()
77 * Set slave address in the IC_SAR register, in i2c_dw_reg_slave()
81 regmap_write(dev->map, DW_IC_SAR, slave->addr); in i2c_dw_reg_slave()
[all …]
/linux/drivers/infiniband/hw/mlx4/
H A Dcm.c58 int slave; member
320 mlx4_ib_warn(ibdev, "%s: id{slave: %d, sl_cm_id: 0x%x} Failed to id_map_alloc\n", in mlx4_ib_multiplex_cm_handler()
333 pr_debug("id{slave: %d, sl_cm_id: 0x%x} is NULL! attr_id: 0x%x\n", in mlx4_ib_multiplex_cm_handler()
360 static int alloc_rej_tmout(struct mlx4_ib_sriov *sriov, u32 rem_pv_cm_id, int slave) in alloc_rej_tmout() argument
384 item->slave = slave; in alloc_rej_tmout()
409 int slave; in lookup_rej_tmout_slave() local
415 pr_debug("Could not find slave. rem_pv_cm_id 0x%x error: %d\n", in lookup_rej_tmout_slave()
417 slave = !item ? -ENOENT : xa_err(item); in lookup_rej_tmout_slave()
419 slave = item->slave; in lookup_rej_tmout_slave()
423 return slave; in lookup_rej_tmout_slave()
[all …]

12345678910>>...62