Home
last modified time | relevance | path

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

12345678910>>...120

/kernel/linux/linux-5.10/drivers/soundwire/
Dbus.c114 * Create Slave devices based on Slaves described in in sdw_bus_master_add()
150 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_delete_slave() local
151 struct sdw_bus *bus = slave->bus; in sdw_delete_slave()
155 sdw_slave_debugfs_exit(slave); in sdw_delete_slave()
159 if (slave->dev_num) /* clear dev_num if assigned */ in sdw_delete_slave()
160 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave()
162 list_del_init(&slave->node); in sdw_delete_slave()
270 dev_err(bus->dev, "trf on Slave %d failed:%d\n", in sdw_transfer_unlocked()
280 * sdw_transfer() - Synchronous transfer message to a SDW Slave device
298 * sdw_transfer_defer() - Asynchronously transfer message to a SDW Slave device
[all …]
Dbus_type.c14 * @slave: SoundWire Slave Device
15 * @drv: SoundWire Slave Driver
21 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id() argument
26 if (slave->id.mfg_id == id->mfg_id && in sdw_get_device_id()
27 slave->id.part_id == id->part_id && in sdw_get_device_id()
29 slave->id.sdw_version == id->sdw_version) && in sdw_get_device_id()
31 slave->id.class_id == id->class_id)) in sdw_get_device_id()
39 struct sdw_slave *slave; in sdw_bus_match() local
44 slave = dev_to_sdw_dev(dev); in sdw_bus_match()
47 ret = !!sdw_get_device_id(slave, drv); in sdw_bus_match()
[all …]
Dslave.c13 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local
15 kfree(slave); in sdw_slave_release()
27 struct sdw_slave *slave; in sdw_slave_add() local
31 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add()
32 if (!slave) in sdw_slave_add()
36 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add()
37 slave->dev.parent = bus->dev; in sdw_slave_add()
38 slave->dev.fwnode = fwnode; in sdw_slave_add()
42 dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x", in sdw_slave_add()
47 dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x:%x", in sdw_slave_add()
[all …]
/kernel/linux/linux-4.19/sound/core/
Dvmaster.c2 * Virtual master and slave controls
28 * link master - this contains a list of slave controls that are
45 * link slave - this contains a slave control element
48 * master control. A slave may have either one or two channels.
58 struct snd_kcontrol slave; /* the copy of original control entry */ member
61 static int slave_update(struct link_slave *slave) in slave_update() argument
69 uctl->id = slave->slave.id; in slave_update()
70 err = slave->slave.get(&slave->slave, uctl); in slave_update()
73 for (ch = 0; ch < slave->info.count; ch++) in slave_update()
74 slave->vals[ch] = uctl->value.integer.value[ch]; in slave_update()
[all …]
/kernel/linux/linux-4.19/include/net/
Dbonding.h43 /* slave list primitives */
68 * @pos: current slave
142 struct slave { struct
152 u8 backup:1, /* indicates backup slave. Value corresponds with argument
154 inactive:1, /* indicates inactive slave */ argument
176 struct slave *arr[0]; argument
186 * Get rcu_read_lock when reading or RTNL when writing slave list.
190 struct slave __rcu *curr_active_slave;
191 struct slave __rcu *current_arp_slave;
192 struct slave __rcu *primary_slave;
[all …]
/kernel/linux/linux-5.10/include/net/
Dbonding.h42 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
44 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
46 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
48 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
52 /* slave list primitives */
77 * @pos: current slave
155 struct slave { struct
165 u8 backup:1, /* indicates backup slave. Value corresponds with argument
167 inactive:1, /* indicates inactive slave */ argument
186 static inline struct slave *to_slave(struct kobject *kobj) in to_slave() argument
[all …]
/kernel/linux/linux-4.19/drivers/soundwire/
Dbus.c69 * Create Slave devices based on Slaves described in in sdw_add_bus_master()
103 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_delete_slave() local
104 struct sdw_bus *bus = slave->bus; in sdw_delete_slave()
108 if (slave->dev_num) /* clear dev_num if assigned */ in sdw_delete_slave()
109 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave()
111 list_del_init(&slave->node); in sdw_delete_slave()
209 * sdw_transfer() - Synchronous transfer message to a SDW Slave device
221 dev_err(bus->dev, "trf on Slave %d failed:%d\n", in sdw_transfer()
233 * sdw_transfer_defer() - Asynchronously transfer message to a SDW Slave device
250 dev_err(bus->dev, "Defer trf on Slave %d failed:%d\n", in sdw_transfer_defer()
[all …]
Dbus_type.c12 * @slave: SoundWire Slave Device
13 * @drv: SoundWire Slave Driver
19 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id() argument
24 if (slave->id.mfg_id == id->mfg_id && in sdw_get_device_id()
25 slave->id.part_id == id->part_id) in sdw_get_device_id()
35 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_bus_match() local
38 return !!sdw_get_device_id(slave, drv); in sdw_bus_match()
41 int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size) in sdw_slave_modalias() argument
46 slave->id.mfg_id, slave->id.part_id); in sdw_slave_modalias()
51 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_uevent() local
[all …]
Dslave.c11 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local
13 kfree(slave); in sdw_slave_release()
19 struct sdw_slave *slave; in sdw_slave_add() local
22 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add()
23 if (!slave) in sdw_slave_add()
27 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add()
28 slave->dev.parent = bus->dev; in sdw_slave_add()
29 slave->dev.fwnode = fwnode; in sdw_slave_add()
32 dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x:%x", in sdw_slave_add()
36 slave->dev.release = sdw_slave_release; in sdw_slave_add()
[all …]
Dstream.c56 struct sdw_slave *slave, in _sdw_program_slave_port_params() argument
77 ret = sdw_write(slave, addr1, t_params->offset2); in _sdw_program_slave_port_params()
84 ret = sdw_write(slave, addr2, t_params->blk_pkg_mode); in _sdw_program_slave_port_params()
103 ret = sdw_write(slave, addr3, wbuf); in _sdw_program_slave_port_params()
114 ret = sdw_write(slave, addr4, wbuf); in _sdw_program_slave_port_params()
127 struct sdw_slave_prop *slave_prop = &s_rt->slave->prop; in sdw_program_slave_port_params()
133 dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave, in sdw_program_slave_port_params()
159 ret = sdw_update(s_rt->slave, addr1, 0xF, wbuf); in sdw_program_slave_port_params()
161 dev_err(&s_rt->slave->dev, in sdw_program_slave_port_params()
168 ret = sdw_write(s_rt->slave, addr2, (p_params->bps - 1)); in sdw_program_slave_port_params()
[all …]
Dbus.h26 * @addr: Register address accessed in the Slave
28 * @dev_num: Slave device number
29 * @addr_page1: SCP address page 1 Slave register
30 * @addr_page2: SCP address page 2 Slave register
54 * sdw_port_runtime: Runtime port parameters for Master or Slave
61 * @port_node: List node for Master or Slave port_list
75 * sdw_slave_runtime: Runtime Stream parameters for Slave
77 * @slave: Slave handle
78 * @direction: Data direction for Slave
79 * @ch_count: Number of channels handled by the Slave for
[all …]
/kernel/linux/linux-4.19/drivers/net/bonding/
Dbond_sysfs_slave.c19 ssize_t (*show)(struct slave *, char *);
31 static ssize_t state_show(struct slave *slave, char *buf) in state_show() argument
33 switch (bond_slave_state(slave)) { in state_show()
44 static ssize_t mii_status_show(struct slave *slave, char *buf) in mii_status_show() argument
46 return sprintf(buf, "%s\n", bond_slave_link_status(slave->link)); in mii_status_show()
50 static ssize_t link_failure_count_show(struct slave *slave, char *buf) in link_failure_count_show() argument
52 return sprintf(buf, "%d\n", slave->link_failure_count); in link_failure_count_show()
56 static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) in perm_hwaddr_show() argument
59 slave->dev->addr_len, in perm_hwaddr_show()
60 slave->perm_hwaddr); in perm_hwaddr_show()
[all …]
Dbond_alb.c70 static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[],
103 static inline void tlb_init_slave(struct slave *slave) in tlb_init_slave() argument
105 SLAVE_TLB_INFO(slave).load = 0; in tlb_init_slave()
106 SLAVE_TLB_INFO(slave).head = TLB_NULL_INDEX; in tlb_init_slave()
109 static void __tlb_clear_slave(struct bonding *bond, struct slave *slave, in __tlb_clear_slave() argument
115 /* clear slave from tx_hashtbl */ in __tlb_clear_slave()
120 index = SLAVE_TLB_INFO(slave).head; in __tlb_clear_slave()
128 tlb_init_slave(slave); in __tlb_clear_slave()
131 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument
135 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave()
[all …]
Dbond_main.c20 * the first slave bonded to the channel. All slaves will then use
27 * will attach eth0 to bond0 as a slave. eth0 hw mac address will either
144 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
149 "2 for only on active slave "
188 MODULE_PARM_DESC(packets_per_slave, "Packets to send per slave in balance-rr "
189 "mode; 0 for a random slave, 1 packet per "
190 "slave (default), >1 packets per slave.");
242 * @slave_dev: slave that is supposed to xmit this skbuff
260 * We don't protect the slave list iteration with a lock because:
284 struct slave *slave, *rollback_slave; in bond_vlan_rx_add_vid() local
[all …]
/kernel/linux/linux-5.10/drivers/net/bonding/
Dbond_sysfs_slave.c15 ssize_t (*show)(struct slave *, char *);
27 static ssize_t state_show(struct slave *slave, char *buf) in state_show() argument
29 switch (bond_slave_state(slave)) { in state_show()
40 static ssize_t mii_status_show(struct slave *slave, char *buf) in mii_status_show() argument
42 return sprintf(buf, "%s\n", bond_slave_link_status(slave->link)); in mii_status_show()
46 static ssize_t link_failure_count_show(struct slave *slave, char *buf) in link_failure_count_show() argument
48 return sprintf(buf, "%d\n", slave->link_failure_count); in link_failure_count_show()
52 static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) in perm_hwaddr_show() argument
55 slave->dev->addr_len, in perm_hwaddr_show()
56 slave->perm_hwaddr); in perm_hwaddr_show()
[all …]
Dbond_main.c20 * the first slave bonded to the channel. All slaves will then use
27 * will attach eth0 to bond0 as a slave. eth0 hw mac address will either
146 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
151 "2 for only on active slave "
190 MODULE_PARM_DESC(packets_per_slave, "Packets to send per slave in balance-rr "
191 "mode; 0 for a random slave, 1 packet per "
192 "slave (default), >1 packets per slave.");
287 * @slave_dev: slave that is supposed to xmit this skbuff
307 * We don't protect the slave list iteration with a lock because:
332 struct slave *slave, *rollback_slave; in bond_vlan_rx_add_vid() local
[all …]
Dbond_alb.c54 static void alb_send_learning_packets(struct slave *slave, 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()
112 tlb_init_slave(slave); in __tlb_clear_slave()
115 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument
119 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave()
[all …]
Dbond_3ad.c125 if (port->slave == NULL) in __get_bond_by_port()
128 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port()
135 * Return the aggregator of the first slave in @bond, or %NULL if it can't be
142 struct slave *first_slave; in __get_first_agg()
170 * __disable_port - disable the port's slave
175 bond_set_slave_inactive_flags(port->slave, BOND_SLAVE_NOTIFY_LATER); in __disable_port()
179 * __enable_port - enable the port's slave, if it's up
184 struct slave *slave = port->slave; in __enable_port() local
186 if ((slave->link == BOND_LINK_UP) && bond_slave_is_up(slave)) in __enable_port()
187 bond_set_slave_active_flags(slave, BOND_SLAVE_NOTIFY_LATER); in __enable_port()
[all …]
/kernel/linux/linux-5.10/drivers/fsi/
Dfsi-core.c48 * FSI slave engine control register offsets
52 #define FSI_SSTAT 0x14 /* R : Slave status */
93 uint32_t size; /* size of slave address space */
140 return fsi_slave_read(dev->slave, dev->addr + addr, val, size); in fsi_device_read()
150 return fsi_slave_write(dev->slave, dev->addr + addr, val, size); in fsi_device_write()
158 return fsi_slave_read(dev->slave, addr, val, sizeof(uint32_t)); in fsi_device_peek()
169 static struct fsi_device *fsi_create_device(struct fsi_slave *slave) in fsi_create_device() argument
177 dev->dev.parent = &slave->dev; in fsi_create_device()
184 /* FSI slave support */
185 static int fsi_slave_calc_addr(struct fsi_slave *slave, uint32_t *addrp, in fsi_slave_calc_addr() argument
[all …]
/kernel/linux/linux-4.19/drivers/fsi/
Dfsi-core.c56 * FSI slave engine control register offsets
60 #define FSI_SSTAT 0x14 /* R : Slave status */
95 uint32_t size; /* size of slave address space */
142 return fsi_slave_read(dev->slave, dev->addr + addr, val, size); in fsi_device_read()
152 return fsi_slave_write(dev->slave, dev->addr + addr, val, size); in fsi_device_write()
160 return fsi_slave_read(dev->slave, addr, val, sizeof(uint32_t)); in fsi_device_peek()
171 static struct fsi_device *fsi_create_device(struct fsi_slave *slave) in fsi_create_device() argument
179 dev->dev.parent = &slave->dev; in fsi_create_device()
186 /* FSI slave support */
187 static int fsi_slave_calc_addr(struct fsi_slave *slave, uint32_t *addrp, in fsi_slave_calc_addr() argument
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/mellanox/mlx4/
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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
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 …]
/kernel/linux/linux-4.19/arch/arm/mach-omap2/
Domap_hwmod_33xx_43xx_interconnect_data.c24 .slave = &am33xx_l3_main_hwmod,
32 .slave = &am33xx_l3_s_hwmod,
40 .slave = &am33xx_l4_ls_hwmod,
48 .slave = &am33xx_l4_wkup_hwmod,
56 .slave = &am33xx_l3_instr_hwmod,
64 .slave = &am33xx_prcm_hwmod,
72 .slave = &am33xx_l3_main_hwmod,
80 .slave = &am33xx_l3_main_hwmod,
88 .slave = &am33xx_l3_main_hwmod,
96 .slave = &am33xx_gfx_hwmod,
[all …]
Domap_hwmod_2xxx_interconnect_data.c30 .slave = &omap2xxx_l4_core_hwmod,
37 .slave = &omap2xxx_l3_main_hwmod,
44 .slave = &omap2xxx_l3_main_hwmod,
57 .slave = &omap2xxx_l4_wkup_hwmod,
64 .slave = &omap2xxx_uart1_hwmod,
72 .slave = &omap2xxx_uart2_hwmod,
80 .slave = &omap2xxx_uart3_hwmod,
88 .slave = &omap2xxx_mcspi1_hwmod,
96 .slave = &omap2xxx_mcspi2_hwmod,
104 .slave = &omap2xxx_timer2_hwmod,
[all …]
/kernel/linux/linux-4.19/drivers/mtd/
Dmtdpart.c331 struct mtd_part *slave; in allocate_partition() local
337 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in allocate_partition()
339 if (!name || !slave) { in allocate_partition()
343 kfree(slave); in allocate_partition()
348 slave->mtd.type = parent->type; in allocate_partition()
349 slave->mtd.flags = parent->flags & ~part->mask_flags; in allocate_partition()
350 slave->mtd.size = part->size; in allocate_partition()
351 slave->mtd.writesize = parent->writesize; in allocate_partition()
352 slave->mtd.writebufsize = parent->writebufsize; in allocate_partition()
353 slave->mtd.oobsize = parent->oobsize; in allocate_partition()
[all …]

12345678910>>...120