Home
last modified time | relevance | path

Searched refs:slave (Results 1 – 200 of 449) sorted by relevance

123

/linux-4.4.14/sound/core/
Dvmaster.c58 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()
71 for (ch = 0; ch < slave->info.count; ch++) in slave_update()
72 slave->vals[ch] = uctl->value.integer.value[ch]; in slave_update()
78 static int slave_init(struct link_slave *slave) in slave_init() argument
83 if (slave->info.count) { in slave_init()
85 if (slave->flags & SND_CTL_SLAVE_NEED_UPDATE) in slave_init()
86 return slave_update(slave); in slave_init()
[all …]
Dtimer.c181 static void snd_timer_check_slave(struct snd_timer_instance *slave) in snd_timer_check_slave() argument
189 if (slave->slave_class == master->slave_class && in snd_timer_check_slave()
190 slave->slave_id == master->slave_id) { in snd_timer_check_slave()
191 list_move_tail(&slave->open_list, in snd_timer_check_slave()
194 slave->master = master; in snd_timer_check_slave()
195 slave->timer = master->timer; in snd_timer_check_slave()
211 struct snd_timer_instance *slave, *tmp; in snd_timer_check_master() local
214 list_for_each_entry_safe(slave, tmp, &snd_timer_slave_list, open_list) { in snd_timer_check_master()
215 if (slave->slave_class == master->slave_class && in snd_timer_check_master()
216 slave->slave_id == master->slave_id) { in snd_timer_check_master()
[all …]
/linux-4.4.14/include/net/
Dbonding.h155 struct slave { struct
187 struct slave *arr[0]; argument
201 struct slave __rcu *curr_active_slave;
202 struct slave __rcu *current_arp_slave;
203 struct slave __rcu *primary_slave;
208 struct slave *);
244 ((struct slave *) rcu_dereference(dev->rx_handler_data))
247 ((struct slave *) rtnl_dereference(dev->rx_handler_data))
249 void bond_queue_slave_event(struct slave *slave);
261 static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, in bond_get_slave_by_dev()
[all …]
Dbond_alb.h28 struct slave;
31 #define SLAVE_TLB_INFO(slave) ((slave)->tlb_info) argument
72 struct slave *tx_slave; /* A pointer to slave used for transmiting
127 struct slave *slave; /* the slave assigned to this client */ member
154 struct slave *rx_slave;/* last slave to xmit from */
171 int bond_alb_init_slave(struct bonding *bond, struct slave *slave);
172 void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave);
173 void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link);
174 void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave);
Dbond_3ad.h174 struct slave;
197 struct slave *slave; /* pointer to the bond slave that this aggregator belongs to */ member
245 struct slave *slave; /* pointer to the bond slave that this port belongs to */ member
264 #define SLAVE_AD_INFO(slave) ((slave)->ad_info) argument
296 void bond_3ad_bind_slave(struct slave *slave);
297 void bond_3ad_unbind_slave(struct slave *slave);
300 void bond_3ad_adapter_speed_duplex_changed(struct slave *slave);
301 void bond_3ad_handle_link_change(struct slave *slave, char link);
306 struct slave *slave);
/linux-4.4.14/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
58 return sprintf(buf, "%pM\n", slave->perm_hwaddr); in perm_hwaddr_show()
62 static ssize_t queue_id_show(struct slave *slave, char *buf) in queue_id_show() argument
[all …]
Dbond_main.c289 struct slave *slave, *rollback_slave; in bond_vlan_rx_add_vid() local
293 bond_for_each_slave(bond, slave, iter) { in bond_vlan_rx_add_vid()
294 res = vlan_vid_add(slave->dev, proto, vid); in bond_vlan_rx_add_vid()
304 if (rollback_slave == slave) in bond_vlan_rx_add_vid()
323 struct slave *slave; in bond_vlan_rx_kill_vid() local
325 bond_for_each_slave(bond, slave, iter) in bond_vlan_rx_kill_vid()
326 vlan_vid_del(slave->dev, proto, vid); in bond_vlan_rx_kill_vid()
345 struct slave *slave; in bond_set_carrier() local
353 bond_for_each_slave(bond, slave, iter) { in bond_set_carrier()
354 if (slave->link == BOND_LINK_UP) { in bond_set_carrier()
[all …]
Dbond_alb.c83 static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[],
116 static inline void tlb_init_slave(struct slave *slave) in tlb_init_slave() argument
118 SLAVE_TLB_INFO(slave).load = 0; in tlb_init_slave()
119 SLAVE_TLB_INFO(slave).head = TLB_NULL_INDEX; in tlb_init_slave()
122 static void __tlb_clear_slave(struct bonding *bond, struct slave *slave, in __tlb_clear_slave() argument
133 index = SLAVE_TLB_INFO(slave).head; in __tlb_clear_slave()
141 tlb_init_slave(slave); in __tlb_clear_slave()
144 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument
148 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave()
189 static long long compute_gap(struct slave *slave) in compute_gap() argument
[all …]
Dbond_3ad.c143 if (port->slave == NULL) in __get_bond_by_port()
146 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port()
160 struct slave *first_slave; in __get_first_agg()
193 bond_set_slave_inactive_flags(port->slave, BOND_SLAVE_NOTIFY_LATER); in __disable_port()
202 struct slave *slave = port->slave; in __enable_port() local
204 if ((slave->link == BOND_LINK_UP) && bond_slave_is_up(slave)) in __enable_port()
205 bond_set_slave_active_flags(slave, BOND_SLAVE_NOTIFY_LATER); in __enable_port()
214 return bond_is_active_slave(port->slave); in __port_is_enabled()
264 struct slave *slave = port->slave; in __get_link_speed() local
272 if (slave->link != BOND_LINK_UP) in __get_link_speed()
[all …]
Dbond_procfs.c14 struct slave *slave; in bond_info_seq_start() local
22 bond_for_each_slave_rcu(bond, slave, iter) in bond_info_seq_start()
24 return slave; in bond_info_seq_start()
33 struct slave *slave; in bond_info_seq_next() local
40 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next()
42 return slave; in bond_info_seq_next()
43 if (slave == v) in bond_info_seq_next()
60 struct slave *curr, *primary; in bond_info_show_master()
167 const struct slave *slave) in bond_info_show_slave() argument
171 seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); in bond_info_show_slave()
[all …]
Dbond_options.c777 struct slave *old_active = rtnl_dereference(bond->curr_active_slave); in bond_option_active_slave_set()
778 struct slave *new_active = bond_slave_get_rtnl(slave_dev); in bond_option_active_slave_set()
947 struct slave *slave; in _bond_options_arp_ip_target_set() local
950 bond_for_each_slave(bond, slave, iter) in _bond_options_arp_ip_target_set()
951 slave->target_last_arp_rx[slot] = last_rx; in _bond_options_arp_ip_target_set()
995 struct slave *slave; in bond_option_arp_ip_target_rem() local
1017 bond_for_each_slave(bond, slave, iter) { in bond_option_arp_ip_target_rem()
1018 targets_rx = slave->target_last_arp_rx; in bond_option_arp_ip_target_rem()
1096 struct slave *slave; in bond_option_primary_set() local
1112 bond_for_each_slave(bond, slave, iter) { in bond_option_primary_set()
[all …]
Dbond_netlink.c40 struct slave *slave = bond_slave_get_rtnl(slave_dev); in bond_fill_slave_info() local
42 if (nla_put_u8(skb, IFLA_BOND_SLAVE_STATE, bond_slave_state(slave))) in bond_fill_slave_info()
45 if (nla_put_u8(skb, IFLA_BOND_SLAVE_MII_STATUS, slave->link)) in bond_fill_slave_info()
49 slave->link_failure_count)) in bond_fill_slave_info()
53 slave_dev->addr_len, slave->perm_hwaddr)) in bond_fill_slave_info()
56 if (nla_put_u16(skb, IFLA_BOND_SLAVE_QUEUE_ID, slave->queue_id)) in bond_fill_slave_info()
59 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info()
63 ad_port = &SLAVE_AD_INFO(slave)->port; in bond_fill_slave_info()
64 agg = SLAVE_AD_INFO(slave)->port.aggregator; in bond_fill_slave_info()
493 const struct net_device *slave; in bond_option_active_slave_get_ifindex() local
[all …]
Dbond_sysfs.c182 struct slave *slave; in bonding_show_slaves() local
188 bond_for_each_slave(bond, slave, iter) { in bonding_show_slaves()
196 res += sprintf(buf + res, "%s ", slave->dev->name); in bonding_show_slaves()
414 struct slave *primary; in bonding_show_primary()
595 struct slave *slave; in bonding_show_queue_id() local
601 bond_for_each_slave(bond, slave, iter) { in bonding_show_queue_id()
610 slave->dev->name, slave->queue_id); in bonding_show_queue_id()
/linux-4.4.14/arch/blackfin/mach-bf609/
DKconfig38 The slave interface id of each slot should be set according following table.
55 int "Slot 0 slave interface id"
60 int "Slot 1 slave interface id"
65 int "Slot 2 slave interface id"
70 int "Slot 3 slave interface id"
75 int "Slot 4 slave interface id"
80 int "Slot 5 slave interface id"
85 int "Slot 6 slave interface id"
90 int "Slot 7 slave interface id"
95 int "Slot 8 slave interface id"
[all …]
/linux-4.4.14/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 …]
Domap_hwmod_43xx_data.c602 .slave = &am43xx_emif_hwmod,
609 .slave = &am43xx_l4_hs_hwmod,
616 .slave = &am33xx_l4_wkup_hwmod,
623 .slave = &am43xx_wkup_m3_hwmod,
630 .slave = &am33xx_pruss_hwmod,
637 .slave = &am33xx_smartreflex0_hwmod,
644 .slave = &am33xx_smartreflex1_hwmod,
651 .slave = &am43xx_control_hwmod,
658 .slave = &am33xx_i2c1_hwmod,
665 .slave = &am43xx_gpio0_hwmod,
[all …]
Domap_hwmod_44xx_data.c2112 .slave = &omap44xx_mmu_ipu_hwmod,
2159 .slave = &omap44xx_mmu_dsp_hwmod,
3149 .slave = &omap44xx_dmm_hwmod,
3157 .slave = &omap44xx_dmm_hwmod,
3165 .slave = &omap44xx_l3_instr_hwmod,
3173 .slave = &omap44xx_l3_instr_hwmod,
3181 .slave = &omap44xx_l3_instr_hwmod,
3189 .slave = &omap44xx_l3_main_1_hwmod,
3197 .slave = &omap44xx_l3_main_1_hwmod,
3205 .slave = &omap44xx_l3_main_1_hwmod,
[all …]
Domap_hwmod_7xx_data.c2388 .slave = &dra7xx_dmm_hwmod,
2396 .slave = &dra7xx_l3_instr_hwmod,
2404 .slave = &dra7xx_l3_main_1_hwmod,
2412 .slave = &dra7xx_l3_main_1_hwmod,
2420 .slave = &dra7xx_l3_main_2_hwmod,
2428 .slave = &dra7xx_l3_main_2_hwmod,
2436 .slave = &dra7xx_l4_cfg_hwmod,
2444 .slave = &dra7xx_l4_per1_hwmod,
2452 .slave = &dra7xx_l4_per2_hwmod,
2460 .slave = &dra7xx_l4_per3_hwmod,
[all …]
Domap_hwmod_2420_data.c284 .slave = &omap2420_i2c1_hwmod,
292 .slave = &omap2420_i2c2_hwmod,
300 .slave = &omap2420_iva_hwmod,
308 .slave = &omap2420_dsp_hwmod,
316 .slave = &omap2xxx_timer1_hwmod,
324 .slave = &omap2xxx_wd_timer2_hwmod,
332 .slave = &omap2xxx_gpio1_hwmod,
340 .slave = &omap2xxx_gpio2_hwmod,
348 .slave = &omap2xxx_gpio3_hwmod,
356 .slave = &omap2xxx_gpio4_hwmod,
[all …]
Domap_hwmod_2430_data.c445 .slave = &omap2xxx_l3_main_hwmod,
453 .slave = &omap2430_i2c1_hwmod,
461 .slave = &omap2430_i2c2_hwmod,
469 .slave = &omap2430_usbhsotg_hwmod,
477 .slave = &omap2430_mmc1_hwmod,
485 .slave = &omap2430_mmc2_hwmod,
493 .slave = &omap2430_mcspi3_hwmod,
501 .slave = &omap2430_iva_hwmod,
509 .slave = &omap2xxx_timer1_hwmod,
517 .slave = &omap2xxx_wd_timer2_hwmod,
[all …]
Domap_hwmod_54xx_data.c2038 .slave = &omap54xx_ocp2scp3_hwmod,
2095 .slave = &omap54xx_sata_hwmod,
2107 .slave = &omap54xx_dmm_hwmod,
2115 .slave = &omap54xx_l3_instr_hwmod,
2123 .slave = &omap54xx_l3_main_1_hwmod,
2131 .slave = &omap54xx_l3_main_1_hwmod,
2139 .slave = &omap54xx_mmu_dsp_hwmod,
2147 .slave = &omap54xx_l3_main_1_hwmod,
2155 .slave = &omap54xx_l3_main_2_hwmod,
2163 .slave = &omap54xx_l3_main_2_hwmod,
[all …]
Domap_hwmod_81xx_data.c165 .slave = &dm81xx_l4_ls_hwmod,
172 .slave = &dm81xx_l4_hs_hwmod,
193 .slave = &dm81xx_alwon_l3_slow_hwmod,
200 .slave = &dm81xx_alwon_l3_med_hwmod,
220 .slave = &dm81xx_alwon_l3_slow_hwmod,
227 .slave = &dm81xx_alwon_l3_med_hwmod,
265 .slave = &dm81xx_uart1_hwmod,
286 .slave = &dm81xx_uart2_hwmod,
307 .slave = &dm81xx_uart3_hwmod,
344 .slave = &dm81xx_wd_timer_hwmod,
[all …]
Domap_hwmod_33xx_data.c334 .slave = &am33xx_emif_hwmod,
343 .slave = &am33xx_l4_hs_hwmod,
351 .slave = &am33xx_l4_wkup_hwmod,
359 .slave = &am33xx_wkup_m3_hwmod,
367 .slave = &am33xx_pruss_hwmod,
384 .slave = &am33xx_debugss_hwmod,
393 .slave = &am33xx_smartreflex0_hwmod,
401 .slave = &am33xx_smartreflex1_hwmod,
409 .slave = &am33xx_control_hwmod,
417 .slave = &am33xx_i2c1_hwmod,
[all …]
Domap_hwmod_3xxx_data.c2164 .slave = &omap3xxx_l4_core_hwmod,
2171 .slave = &omap3xxx_l4_per_hwmod,
2187 .slave = &omap3xxx_l3_main_hwmod,
2204 .slave = &omap3xxx_debugss_hwmod,
2212 .slave = &omap3xxx_l3_main_hwmod,
2218 .slave = &omap3xxx_l3_main_hwmod,
2231 .slave = &omap3xxx_l3_main_hwmod,
2239 .slave = &omap3xxx_l3_main_hwmod,
2247 .slave = &omap3xxx_l3_main_hwmod,
2255 .slave = &omap3xxx_l4_wkup_hwmod,
[all …]
/linux-4.4.14/drivers/mtd/
Dmtdpart.c333 struct mtd_part *slave, *next; in del_mtd_partitions() local
337 list_for_each_entry_safe(slave, next, &mtd_partitions, list) in del_mtd_partitions()
338 if (slave->master == master) { in del_mtd_partitions()
339 ret = del_mtd_device(&slave->mtd); in del_mtd_partitions()
344 list_del(&slave->list); in del_mtd_partitions()
345 free_partition(slave); in del_mtd_partitions()
356 struct mtd_part *slave; in allocate_partition() local
360 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in allocate_partition()
362 if (!name || !slave) { in allocate_partition()
366 kfree(slave); in allocate_partition()
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c298 static void rem_slave_vlans(struct mlx4_dev *dev, int slave);
299 static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave, in mlx4_grant_resource() argument
310 if (slave > dev->persist->num_vfs) in mlx4_grant_resource()
316 (dev->persist->num_vfs + 1) + slave] : in mlx4_grant_resource()
317 res_alloc->allocated[slave]; in mlx4_grant_resource()
322 guaranteed = res_alloc->guaranteed[slave]; in mlx4_grant_resource()
324 if (allocated + count > res_alloc->quota[slave]) { in mlx4_grant_resource()
326 slave, port, resource_str(res_type), count, in mlx4_grant_resource()
327 allocated, res_alloc->quota[slave]); in mlx4_grant_resource()
347 slave, port, resource_str(res_type), free, in mlx4_grant_resource()
[all …]
Dcmd.c135 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave,
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()
953 if (!err && slave != mlx4_master_func_num(dev)) { in mlx4_MAD_IFC_wrapper()
[all …]
Dmlx4.h202 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
204 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
647 int slave; member
967 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
972 int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave,
977 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
982 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
987 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
992 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
997 int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave,
[all …]
Deq.c147 u8 slave; in mlx4_gen_slave_eqe() local
152 slave = eqe->slave_id; in mlx4_gen_slave_eqe()
155 if (slave == ALL_SLAVES) { in mlx4_gen_slave_eqe()
173 if (mlx4_GEN_EQE(dev, slave, eqe)) in mlx4_gen_slave_eqe()
175 slave); in mlx4_gen_slave_eqe()
182 static void slave_event(struct mlx4_dev *dev, u8 slave, struct mlx4_eqe *eqe) in slave_event() argument
194 slave); in slave_event()
200 s_eqe->slave_id = slave; in slave_event()
211 static void mlx4_slave_event(struct mlx4_dev *dev, int slave, in mlx4_slave_event() argument
216 if (slave < 0 || slave > dev->persist->num_vfs || in mlx4_slave_event()
[all …]
Dport.c534 int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave, int port) in mlx4_get_slave_num_gids() argument
537 int slave_gid = slave; in mlx4_get_slave_num_gids()
543 if (slave == 0) in mlx4_get_slave_num_gids()
548 actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_get_slave_num_gids()
570 int mlx4_get_base_gid_ix(struct mlx4_dev *dev, int slave, int port) in mlx4_get_base_gid_ix() argument
574 int slave_gid = slave; in mlx4_get_base_gid_ix()
581 if (slave == 0) in mlx4_get_base_gid_ix()
585 actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_get_base_gid_ix()
611 static int mlx4_reset_roce_port_gids(struct mlx4_dev *dev, int slave, in mlx4_reset_roce_port_gids() argument
619 num_gids = mlx4_get_slave_num_gids(dev, slave, port); in mlx4_reset_roce_port_gids()
[all …]
Dfw.c194 int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave) in mlx4_QUERY_FUNC() argument
216 in_modifier = slave; in mlx4_QUERY_FUNC()
249 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_FUNC_CAP_wrapper() argument
317 mlx4_get_active_ports(dev, slave); in mlx4_QUERY_FUNC_CAP_wrapper()
319 dev, slave, vhcr->in_modifier); in mlx4_QUERY_FUNC_CAP_wrapper()
331 proxy_qp = dev->phys_caps.base_proxy_sqpn + 8 * slave + port - 1; in mlx4_QUERY_FUNC_CAP_wrapper()
336 if (mlx4_vf_smi_enabled(dev, slave, port) && in mlx4_QUERY_FUNC_CAP_wrapper()
345 size = dev->phys_caps.base_tunnel_sqpn + 8 * slave + port - 1; in mlx4_QUERY_FUNC_CAP_wrapper()
366 mlx4_get_active_ports(dev, slave); in mlx4_QUERY_FUNC_CAP_wrapper()
386 size = priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
[all …]
Dfw.h236 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave,
241 int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave);
/linux-4.4.14/drivers/net/
Deql.c140 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave);
150 slave_t *slave = list_entry(this, slave_t, list); in eql_timer() local
152 if ((slave->dev->flags & IFF_UP) == IFF_UP) { in eql_timer()
153 slave->bytes_queued -= slave->priority_Bps; in eql_timer()
154 if (slave->bytes_queued < 0) in eql_timer()
155 slave->bytes_queued = 0; in eql_timer()
157 eql_kill_one_slave(&eql->queue, slave); in eql_timer()
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()
227 slave->dev->flags &= ~IFF_SLAVE; in eql_kill_one_slave()
[all …]
Dvrf.c49 struct slave { struct
627 static struct slave *__vrf_find_slave_dev(struct slave_queue *queue, in __vrf_find_slave_dev()
631 struct slave *slave; in __vrf_find_slave_dev() local
633 list_for_each_entry(slave, head, list) { in __vrf_find_slave_dev()
634 if (slave->dev == dev) in __vrf_find_slave_dev()
635 return slave; in __vrf_find_slave_dev()
642 static void __vrf_remove_slave(struct slave_queue *queue, struct slave *slave) in __vrf_remove_slave() argument
644 list_del(&slave->list); in __vrf_remove_slave()
647 static void __vrf_insert_slave(struct slave_queue *queue, struct slave *slave) in __vrf_insert_slave() argument
649 list_add(&slave->list, &queue->all_slaves); in __vrf_insert_slave()
[all …]
/linux-4.4.14/drivers/net/ethernet/ti/
Dcpsw-common.c26 int slave, u8 *mac_addr) in davinci_emac_3517_get_macid() argument
39 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb); in davinci_emac_3517_get_macid()
40 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb); in davinci_emac_3517_get_macid()
52 static int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave, in cpsw_am33xx_cm_get_macid() argument
66 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lo); in cpsw_am33xx_cm_get_macid()
67 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_hi); in cpsw_am33xx_cm_get_macid()
79 int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr) in ti_cm_get_macid() argument
82 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); in ti_cm_get_macid()
85 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); in ti_cm_get_macid()
88 return davinci_emac_3517_get_macid(dev, 0x110, slave, mac_addr); in ti_cm_get_macid()
[all …]
Dnetcp_ethss.c688 struct gbe_slave *slave; member
1652 #define for_each_sec_slave(slave, priv) \ argument
1653 list_for_each_entry((slave), &(priv)->secondary_slaves, slave_list)
1858 if (!gbe_intf->slave) in keystone_get_settings()
1863 cmd->port = gbe_intf->slave->phy_port_t; in keystone_get_settings()
1883 if (!gbe_intf->slave) in keystone_set_settings()
1886 if (cmd->port != gbe_intf->slave->phy_port_t) { in keystone_set_settings()
1903 gbe_intf->slave->phy_port_t = cmd->port; in keystone_set_settings()
1923 static void gbe_set_slave_mac(struct gbe_slave *slave, in gbe_set_slave_mac() argument
1928 writel(mac_hi(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_hi)); in gbe_set_slave_mac()
[all …]
Dcpsw-phy-sel.c41 phy_interface_t phy_mode, int slave);
46 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() argument
72 mask = GMII_SEL_MODE_MASK << (slave * 2) | BIT(slave + 6); in cpsw_gmii_sel_am3352()
73 mode <<= slave * 2; in cpsw_gmii_sel_am3352()
76 if (slave == 0) in cpsw_gmii_sel_am3352()
89 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_dra7xx() argument
115 switch (slave) { in cpsw_gmii_sel_dra7xx()
145 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) in cpsw_phy_sel() argument
159 priv->cpsw_phy_sel(priv, phy_mode, slave); in cpsw_phy_sel()
Dcpsw.c356 static inline u32 slave_read(struct cpsw_slave *slave, u32 offset) in slave_read() argument
358 return __raw_readl(slave->regs + offset); in slave_read()
361 static inline void slave_write(struct cpsw_slave *slave, u32 val, u32 offset) in slave_write() argument
363 __raw_writel(val, slave->regs + offset); in slave_write()
494 struct cpsw_slave *slave; \
500 slave = (priv)->slaves; \
502 (func)(slave++, ##arg); \
529 struct cpsw_slave *slave = priv->slaves + \
532 slave->slave_num); \
535 ALE_VLAN, slave->port_vlan, 0); \
[all …]
Dcpsw.h43 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave);
44 int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr);
/linux-4.4.14/drivers/net/wan/
Ddlci.c197 netdev_start_xmit(skb, dlp->slave, txq, false); in dlci_transmit()
211 flp = netdev_priv(dlp->slave); in dlci_config()
223 err = (*flp->dlci_conf)(dlp->slave, dev, get); in dlci_config()
251 strncpy(ifr->ifr_slave, dlp->slave->name, sizeof(ifr->ifr_slave)); in dlci_dev_ioctl()
271 return dev_set_mtu(dlp->slave, new_mtu); in dlci_change_mtu()
285 if (!netif_running(dlp->slave)) in dlci_open()
288 flp = netdev_priv(dlp->slave); in dlci_open()
289 err = (*flp->activate)(dlp->slave, dev); in dlci_open()
308 flp = netdev_priv(dlp->slave); in dlci_close()
309 err = (*flp->deactivate)(dlp->slave, dev); in dlci_close()
[all …]
Dsdla.c512 static int sdla_activate(struct net_device *slave, struct net_device *master) in sdla_activate() argument
517 flp = netdev_priv(slave); in sdla_activate()
528 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE)) in sdla_activate()
529 sdla_cmd(slave, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); in sdla_activate()
534 static int sdla_deactivate(struct net_device *slave, struct net_device *master) in sdla_deactivate() argument
539 flp = netdev_priv(slave); in sdla_deactivate()
550 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE)) in sdla_deactivate()
551 sdla_cmd(slave, SDLA_DEACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); in sdla_deactivate()
556 static int sdla_assoc(struct net_device *slave, struct net_device *master) in sdla_assoc() argument
564 flp = netdev_priv(slave); in sdla_assoc()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dbrcm,kona-ccu.txt32 compatible = "brcm,bcm11351-slave-ccu";
64 "brcm,bcm11351-slave-ccu"
91 slave uartb peri 0 BCM281XX_SLAVE_CCU_UARTB
92 slave uartb2 peri 1 BCM281XX_SLAVE_CCU_UARTB2
93 slave uartb3 peri 2 BCM281XX_SLAVE_CCU_UARTB3
94 slave uartb4 peri 3 BCM281XX_SLAVE_CCU_UARTB4
95 slave ssp0 peri 4 BCM281XX_SLAVE_CCU_SSP0
96 slave ssp2 peri 5 BCM281XX_SLAVE_CCU_SSP2
97 slave bsc1 peri 6 BCM281XX_SLAVE_CCU_BSC1
98 slave bsc2 peri 7 BCM281XX_SLAVE_CCU_BSC2
[all …]
/linux-4.4.14/arch/powerpc/platforms/powermac/
Dpic.c302 struct device_node *slave = NULL; in pmac_pic_probe_oldstyle() local
318 slave = of_find_node_by_name(NULL, "pci106b,7"); in pmac_pic_probe_oldstyle()
319 if (slave) in pmac_pic_probe_oldstyle()
328 slave = of_find_node_by_name(master, "mac-io"); in pmac_pic_probe_oldstyle()
333 BUG_ON(slave == NULL); in pmac_pic_probe_oldstyle()
335 master = slave; in pmac_pic_probe_oldstyle()
336 slave = tmp; in pmac_pic_probe_oldstyle()
340 if (slave) in pmac_pic_probe_oldstyle()
370 if (slave && !of_address_to_resource(slave, 0, &r)) { in pmac_pic_probe_oldstyle()
378 pmac_irq_cascade = irq_of_parse_and_map(slave, 0); in pmac_pic_probe_oldstyle()
[all …]
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dmad.c306 int i, ix, slave, err; in __propagate_pkey_ev() local
309 for (slave = 0; slave < dev->dev->caps.sqp_demux; slave++) { in __propagate_pkey_ev()
310 if (slave == mlx4_master_func_num(dev->dev)) in __propagate_pkey_ev()
312 if (!mlx4_is_slave_active(dev->dev, slave)) in __propagate_pkey_ev()
321 if (dev->pkeys.virt2phys_pkey[slave][port_num - 1] in __propagate_pkey_ev()
323 err = mlx4_gen_pkey_eqe(dev->dev, slave, port_num); in __propagate_pkey_ev()
326 slave, port_num, ix, err); in __propagate_pkey_ev()
385 static int mlx4_ib_demux_sa_handler(struct ib_device *ibdev, int port, int slave, in mlx4_ib_demux_sa_handler() argument
393 ret = mlx4_ib_mcg_demux_handler(ibdev, port, slave, sa_mad); in mlx4_ib_demux_sa_handler()
414 static int find_slave_port_pkey_ix(struct mlx4_ib_dev *dev, int slave, in find_slave_port_pkey_ix() argument
[all …]
Dsysfs.c374 int slave; member
449 if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >= in show_port_pkey()
454 p->dev->pkeys.virt2phys_pkey[p->slave] in show_port_pkey()
468 if (p->slave == mlx4_master_func_num(p->dev->dev)) in store_port_pkey()
478 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] in store_port_pkey()
480 mlx4_sync_pkey_table(p->dev->dev, p->slave, p->port_num, in store_port_pkey()
482 err = mlx4_gen_pkey_eqe(p->dev->dev, p->slave, p->port_num); in store_port_pkey()
485 " port %d, index %d\n", p->slave, p->port_num, idx); in store_port_pkey()
494 return sprintf(buf, "%d\n", p->slave); in show_port_gid_idx()
550 if (mlx4_vf_smi_enabled(p->dev->dev, p->slave, p->port_num)) in sysfs_show_smi_enabled()
[all …]
Dmcg.c228 static int send_mad_to_slave(int slave, struct mlx4_ib_demux_ctx *ctx, in send_mad_to_slave() argument
249 return mlx4_ib_send_to_slave(dev, slave, ctx->port, IB_QPT_GSI, &wc, NULL, mad); in send_mad_to_slave()
318 static int send_reply_to_slave(int slave, struct mcast_group *group, in send_reply_to_slave() argument
345 sa_data->scope_join_state |= (group->func[slave].join_state & 0x0f); in send_reply_to_slave()
348 ret = send_mad_to_slave(slave, group->demux, (struct ib_mad *)&mad); in send_reply_to_slave()
495 static int join_group(struct mcast_group *group, int slave, u8 join_mask) in join_group() argument
501 join_state = join_mask & (~group->func[slave].join_state); in join_group()
503 group->func[slave].join_state |= join_state; in join_group()
504 if (group->func[slave].state != MCAST_MEMBER && join_state) { in join_group()
505 group->func[slave].state = MCAST_MEMBER; in join_group()
[all …]
Dcm.c358 int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, in mlx4_ib_demux_cm_handler() argument
368 if (!slave) in mlx4_ib_demux_cm_handler()
372 *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id); in mlx4_ib_demux_cm_handler()
373 if (*slave < 0) { in mlx4_ib_demux_cm_handler()
389 if (slave) in mlx4_ib_demux_cm_handler()
390 *slave = id->slave_id; in mlx4_ib_demux_cm_handler()
413 void mlx4_ib_cm_paravirt_clean(struct mlx4_ib_dev *dev, int slave) in mlx4_ib_cm_paravirt_clean() argument
425 if (slave < 0 || slave == map->slave_id) { in mlx4_ib_cm_paravirt_clean()
438 if (slave < 0) { in mlx4_ib_cm_paravirt_clean()
455 if (ent->slave_id == slave) in mlx4_ib_cm_paravirt_clean()
[all …]
Dmlx4_ib.h397 int slave; member
427 int slave; member
590 int slave; member
793 void clean_vf_mcast(struct mlx4_ib_demux_ctx *ctx, int slave);
799 int mlx4_ib_mcg_multiplex_handler(struct ib_device *ibdev, int port, int slave,
801 int mlx4_ib_mcg_demux_handler(struct ib_device *ibdev, int port, int slave,
812 int mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port,
816 int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port,
823 int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave,
851 void mlx4_ib_slave_alias_guid_event(struct mlx4_ib_dev *dev, int slave,
/linux-4.4.14/drivers/dma/
Dzx296702_dma.c121 struct dma_device slave; member
134 #define to_zx_dma(dmadev) container_of(dmadev, struct zx_dma_dev, slave)
228 list_for_each_entry_safe(c, cn, &d->slave.channels, in zx_dma_task()
234 dev_dbg(d->slave.dev, "pchan %u: free\n", p->idx); in zx_dma_task()
256 dev_dbg(d->slave.dev, "pchan %u: busy!\n", c->id); in zx_dma_task()
307 dev_warn(d->slave.dev, "DMA ERR src 0x%x, dst 0x%x, cfg 0x%x\n", in zx_dma_int_handler()
396 dev_dbg(d->slave.dev, "vchan %p: issued\n", &c->vc); in zx_dma_issue_pending()
400 dev_dbg(d->slave.dev, "vchan %p: nothing to issue\n", &c->vc); in zx_dma_issue_pending()
670 dev_dbg(d->slave.dev, "vchan %p: terminate all\n", &c->vc); in zx_dma_terminate_all()
745 chan = dma_get_any_slave_channel(&d->slave); in zx_of_dma_simple_xlate()
[all …]
Dk3dma.c95 struct dma_device slave; member
107 #define to_k3_dma(dmadev) container_of(dmadev, struct k3_dma_dev, slave)
216 dev_warn(d->slave.dev, "DMA ERR\n"); in k3_dma_int_handler()
268 list_for_each_entry_safe(c, cn, &d->slave.channels, vc.chan.device_node) { in k3_dma_tasklet()
274 dev_dbg(d->slave.dev, "pchan %u: free\n", p->idx); in k3_dma_tasklet()
297 dev_dbg(d->slave.dev, "pchan %u: alloc vchan %p\n", pch, &c->vc); in k3_dma_tasklet()
392 dev_dbg(d->slave.dev, "vchan %p: issued\n", &c->vc); in k3_dma_issue_pending()
397 dev_dbg(d->slave.dev, "vchan %p: nothing to issue\n", &c->vc); in k3_dma_issue_pending()
575 dev_dbg(d->slave.dev, "vchan %p: terminate all\n", &c->vc); in k3_dma_terminate_all()
604 dev_dbg(d->slave.dev, "vchan %p: pause\n", &c->vc); in k3_dma_transfer_pause()
[all …]
Dsun6i-dma.c152 struct dma_device slave; member
174 return container_of(d, struct sun6i_dma_dev, slave); in to_sun6i_dma_dev()
190 dev_dbg(sdev->slave.dev, "Common register:\n" in sun6i_dma_dump_com_regs()
208 dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n" in sun6i_dma_dump_chan_regs()
406 list_for_each_entry(vchan, &sdev->slave.channels, vc.chan.device_node) { in sun6i_dma_tasklet()
416 dev_dbg(sdev->slave.dev, "pchan %u: free\n", in sun6i_dma_tasklet()
444 dev_dbg(sdev->slave.dev, "pchan %u: alloc vchan %p\n", in sun6i_dma_tasklet()
476 dev_dbg(sdev->slave.dev, "DMA irq status %s: 0x%x\n", in sun6i_dma_interrupt()
529 dev_err(sdev->slave.dev, "Failed to alloc lli memory\n"); in sun6i_dma_prep_dma_memcpy()
823 chan = dma_get_any_slave_channel(&sdev->slave); in sun6i_dma_of_xlate()
[all …]
Dsa11x0-dma.c122 struct dma_device slave; member
137 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma()
158 dev_vdbg(p->dev->slave.dev, "pchan %u: txd %p[%x]: starting: DDAR:%x\n", in sa11x0_dma_start_desc()
220 dev_dbg(p->dev->slave.dev, "pchan %u: load: DCSR:%02x DBS%c:%08x DBT%c:%08x\n", in sa11x0_dma_start_sg()
267 dev_dbg(d->slave.dev, "pchan %u: irq: DCSR:%02x\n", p->num, dcsr); in sa11x0_dma_irq()
270 …dev_err(d->slave.dev, "pchan %u: error. DCSR:%02x DDAR:%08x DBSA:%08x DBTA:%08x DBSB:%08x DBTB:%08… in sa11x0_dma_irq()
337 dev_dbg(d->slave.dev, "tasklet enter\n"); in sa11x0_dma_tasklet()
339 list_for_each_entry(c, &d->slave.channels, vc.chan.device_node) { in sa11x0_dma_tasklet()
346 dev_dbg(d->slave.dev, "pchan %u: free\n", p->num); in sa11x0_dma_tasklet()
370 dev_dbg(d->slave.dev, "pchan %u: alloc vchan %p\n", pch, &c->vc); in sa11x0_dma_tasklet()
[all …]
Ds3c24xx-dma.c226 bool slave; member
243 struct dma_device slave; member
270 if (!s3cchan->slave) in s3c24xx_dma_phy_valid()
299 if (s3cchan->slave) in s3c24xx_dma_get_phy()
401 if (!s3cchan->slave) { in s3c24xx_dma_set_runtime_config()
470 if (s3cchan->slave) { in s3c24xx_dma_start_next_sg()
502 if (!s3cchan->slave) in s3c24xx_dma_start_next_sg()
605 list_for_each_entry(p, &s3cdma->slave.channels, in s3c24xx_dma_phy_free()
648 if (!s3cchan->slave) in s3c24xx_dma_desc_free()
1094 struct dma_device *dmadev, unsigned int channels, bool slave) in s3c24xx_dma_init_virtual_channels() argument
[all …]
Dsun4i-dma.c167 struct dma_device slave; member
178 return container_of(dev, struct sun4i_dma_dev, slave); in to_sun4i_dma_dev()
929 chan = dma_get_any_slave_channel(&priv->slave); in sun4i_dma_of_xlate()
1153 dma_cap_zero(priv->slave.cap_mask); in sun4i_dma_probe()
1154 dma_cap_set(DMA_PRIVATE, priv->slave.cap_mask); in sun4i_dma_probe()
1155 dma_cap_set(DMA_MEMCPY, priv->slave.cap_mask); in sun4i_dma_probe()
1156 dma_cap_set(DMA_CYCLIC, priv->slave.cap_mask); in sun4i_dma_probe()
1157 dma_cap_set(DMA_SLAVE, priv->slave.cap_mask); in sun4i_dma_probe()
1159 INIT_LIST_HEAD(&priv->slave.channels); in sun4i_dma_probe()
1160 priv->slave.device_free_chan_resources = sun4i_dma_free_chan_resources; in sun4i_dma_probe()
[all …]
DTODO1 TODO for slave dma
3 1. Move remaining drivers to use new slave interface
4 2. Remove old slave pointer machansim
Dpxa_dma.c123 struct dma_device slave; member
141 container_of(dmadev, struct pxad_device, slave)
368 pdev->dbgfs_root = debugfs_create_dir(dev_name(pdev->slave.dev), NULL); in pxad_init_debugfs()
744 pdev->slave.dev, in pxad_alloc_chan_resources()
1275 pxad_free_channels(&pdev->slave); in pxad_remove()
1276 dma_async_device_unregister(&pdev->slave); in pxad_remove()
1314 dev_err(pdev->slave.dev, in pxad_init_phys()
1336 chan = dma_get_any_slave_channel(&d->slave); in pxad_dma_xlate()
1357 INIT_LIST_HEAD(&pdev->slave.channels); in pxad_init_dmadev()
1358 pdev->slave.device_alloc_chan_resources = pxad_alloc_chan_resources; in pxad_init_dmadev()
[all …]
Damba-pl08x.c243 bool slave; member
264 struct dma_device slave; member
703 list_for_each_entry(p, &pl08x->slave.channels, vc.chan.device_node) in pl08x_phy_free()
1675 if (!plchan->slave) in pl08x_config()
1875 chan->slave = true; in pl08x_dma_slave_init()
1886 struct dma_device *dmadev, unsigned int channels, bool slave) in pl08x_dma_init_virtual_channels() argument
1910 if (slave) { in pl08x_dma_init_virtual_channels()
1929 i, slave ? "slave" : "memcpy"); in pl08x_dma_init_virtual_channels()
2001 list_for_each_entry(chan, &pl08x->slave.channels, vc.chan.device_node) { in pl08x_debugfs_show()
2041 list_for_each_entry(chan, &pl08x->slave.channels, vc.chan.device_node) { in pl08x_find_chan_id()
[all …]
/linux-4.4.14/Documentation/i2c/
Dslave-interface1 Linux I2C slave interface description
6 Linux can also be an I2C slave if the I2C controller in use has slave
7 functionality. For that to work, one needs slave support in the bus driver plus
9 example for the latter is the slave-eeprom driver, which acts as a dual memory
11 EEPROM, the Linux I2C slave can access the content via sysfs and handle data as
18 e.g. sysfs I2C slave events I/O registers
33 I2C slave backends behave like standard I2C clients. So, you can instantiate
35 is that i2c slave backends have their own address space. So, you have to add
37 instantiating the slave-eeprom driver from userspace at the 7 bit address 0x64
40 # echo slave-24c02 0x1064 > /sys/bus/i2c/devices/i2c-1/new_device
[all …]
Dslave-eeprom-backend1 Linux I2C slave eeprom backend
10 /sys/bus/i2c/devices/<device-direcory>/slave-eeprom
Dfault-codes51 fault is only reported on read transactions; the SMBus slave
110 Returned when slave does not conform to the relevant I2C
113 (from the SMBus slave) is outside the range 1-32 bytes.
121 when a slave stretches clocks too far. I2C has no such
/linux-4.4.14/arch/um/os-Linux/
Dsigio.c398 int slave; member
407 if (openpty(&info->master, &info->slave, NULL, NULL, NULL)) in openpty_cb()
411 static int async_pty(int master, int slave) in async_pty() argument
423 if ((fcntl(slave, F_SETFL, flags | O_NONBLOCK) < 0)) in async_pty()
432 struct openpty_arg pty = { .master = -1, .slave = -1 }; in check_one_sigio()
433 int master, slave, err; in check_one_sigio() local
443 slave = pty.slave; in check_one_sigio()
445 if ((master == -1) || (slave == -1)) { in check_one_sigio()
459 err = async_pty(master, slave); in check_one_sigio()
481 (*proc)(master, slave); in check_one_sigio()
[all …]
/linux-4.4.14/drivers/dma/dw/
Dplatform.c35 struct dw_dma_slave slave = { in dw_dma_of_xlate() local
43 slave.src_id = dma_spec->args[0]; in dw_dma_of_xlate()
44 slave.dst_id = dma_spec->args[0]; in dw_dma_of_xlate()
45 slave.src_master = dma_spec->args[1]; in dw_dma_of_xlate()
46 slave.dst_master = dma_spec->args[2]; in dw_dma_of_xlate()
48 if (WARN_ON(slave.src_id >= DW_DMA_MAX_NR_REQUESTS || in dw_dma_of_xlate()
49 slave.dst_id >= DW_DMA_MAX_NR_REQUESTS || in dw_dma_of_xlate()
50 slave.src_master >= dw->nr_masters || in dw_dma_of_xlate()
51 slave.dst_master >= dw->nr_masters)) in dw_dma_of_xlate()
58 return dma_request_channel(cap, dw_dma_filter, &slave); in dw_dma_of_xlate()
[all …]
/linux-4.4.14/arch/cris/include/asm/
Detraxi2c.h16 #define I2C_WRITEARG(slave, reg, value) (((slave) << 16) | ((reg) << 8) | (value)) argument
17 #define I2C_READARG(slave, reg) (((slave) << 16) | ((reg) << 8)) argument
/linux-4.4.14/arch/arm/boot/dts/
Dhip04.dtsi282 slave-mode;
296 slave-mode;
310 slave-mode;
324 slave-mode;
338 slave-mode;
373 slave-mode;
409 slave-mode;
445 slave-mode;
481 slave-mode;
511 slave-mode;
[all …]
Dk2e-netcp.dtsi163 slave-port = <0>;
168 slave-port = <1>;
174 secondary-slave-ports {
176 slave-port = <2>;
180 slave-port = <3>;
184 slave-port = <4>;
188 slave-port = <5>;
192 slave-port = <6>;
196 slave-port = <7>;
Dk2l-netcp.dtsi162 slave-port = <0>;
167 slave-port = <1>;
173 secondary-slave-ports {
175 slave-port = <2>;
179 slave-port = <3>;
Dk2hk-netcp.dtsi182 slave-port = <0>;
187 slave-port = <1>;
193 secondary-slave-ports {
195 slave-port = <2>;
199 slave-port = <3>;
Dvexpress-v2p-ca15_a7.dts142 cci_control1: slave-if@4000 {
148 cci_control2: slave-if@5000 {
391 slave-mode;
405 slave-mode;
440 slave-mode;
470 slave-mode;
478 slave-mode;
486 slave-mode;
496 slave-mode;
504 slave-mode;
Dimx7d.dtsi132 slave-mode;
146 slave-mode;
182 slave-mode;
202 slave-mode;
230 slave-mode;
238 slave-mode; /* M4 input */
267 slave-mode;
275 slave-mode;
Dspear1310-evb.dts363 pl022,slave-tx-disable;
396 pl022,slave-tx-disable;
412 pl022,slave-tx-disable;
/linux-4.4.14/sound/firewire/fireworks/
Dfireworks_stream.c211 struct amdtp_stream *master, *slave; in snd_efw_stream_start_duplex() local
229 slave = &efw->rx_stream; in snd_efw_stream_start_duplex()
233 slave = &efw->tx_stream; in snd_efw_stream_start_duplex()
246 if (amdtp_streaming_error(slave)) in snd_efw_stream_start_duplex()
247 stop_stream(efw, slave); in snd_efw_stream_start_duplex()
258 stop_stream(efw, slave); in snd_efw_stream_start_duplex()
264 amdtp_stream_set_sync(sync_mode, master, slave); in snd_efw_stream_start_duplex()
280 if (atomic_read(slave_substreams) > 0 && !amdtp_stream_running(slave)) { in snd_efw_stream_start_duplex()
281 err = start_stream(efw, slave, rate); in snd_efw_stream_start_duplex()
295 struct amdtp_stream *master, *slave; in snd_efw_stream_stop_duplex() local
[all …]
/linux-4.4.14/Documentation/networking/caif/
Dspi_porting.txt7 between the master and the slave. The minimum requirement for running
8 CAIF over SPI is a SPI slave chip and two GPIOs (more details below).
9 Please note that running as a slave implies that you need to keep up
18 SPI slave device part, which is the module that you have to write if
24 - Functionality provided by the CAIF SPI slave device:
37 to map to different CAIF SPI slave devices.
45 SPI slave devices.
51 This function is called by the CAIF SPI slave device in order to
60 This function is called by the CAIF SPI slave device in order to
69 - Filling in the SPI slave device structure:
[all …]
/linux-4.4.14/drivers/clk/bcm/
Dclk-bcm281xx.c313 BCM281XX_CCU_COMMON(slave, SLAVE),
316 KONA_CLK(slave, uartb, peri),
318 KONA_CLK(slave, uartb2, peri),
320 KONA_CLK(slave, uartb3, peri),
322 KONA_CLK(slave, uartb4, peri),
324 KONA_CLK(slave, ssp0, peri),
326 KONA_CLK(slave, ssp2, peri),
328 KONA_CLK(slave, bsc1, peri),
330 KONA_CLK(slave, bsc2, peri),
332 KONA_CLK(slave, bsc3, peri),
[all …]
Dclk-bcm21664.c237 BCM21664_CCU_COMMON(slave, SLAVE),
244 KONA_CLK(slave, uartb, peri),
246 KONA_CLK(slave, uartb2, peri),
248 KONA_CLK(slave, uartb3, peri),
250 KONA_CLK(slave, bsc1, peri),
252 KONA_CLK(slave, bsc2, peri),
254 KONA_CLK(slave, bsc3, peri),
256 KONA_CLK(slave, bsc4, peri),
/linux-4.4.14/Documentation/w1/masters/
Domap-hdq17 communication between the master (HDQ/1-Wire controller) and the slave
24 difference between the HDQ and 1-wire mode is how the slave device responds to
26 create an initialization pulse to the slave.However, the slave can be reset by
27 using an initialization pulse (also referred to as a break pulse).The slave
35 be used to calculate the CRC and pass back an appropriate slave ID to the W1
38 By default the master driver and the BQ slave i/f
41 that the ID used should be same for both master and slave driver loading.
48 pass slave ID as parameter. The driver will auto-detect slaves connected
/linux-4.4.14/drivers/gpu/drm/sti/
Dsti_vtg.c94 struct sti_vtg *slave; member
117 if (vtg->slave) in vtg_reset()
118 vtg_reset(vtg->slave); in vtg_reset()
154 if (vtg->slave) in vtg_set_mode()
155 vtg_set_mode(vtg->slave, VTG_TYPE_SLAVE_BY_EXT0, mode); in vtg_set_mode()
239 if (vtg->slave) in sti_vtg_set_config()
240 vtg_enable_irq(vtg->slave); in sti_vtg_set_config()
285 if (vtg->slave) in sti_vtg_register_client()
286 return sti_vtg_register_client(vtg->slave, nb, crtc); in sti_vtg_register_client()
294 if (vtg->slave) in sti_vtg_unregister_client()
[all …]
/linux-4.4.14/drivers/i2c/busses/
Di2c-rcar.c121 struct i2c_client *slave; member
386 i2c_slave_event(priv->slave, I2C_SLAVE_READ_REQUESTED, &value); in rcar_i2c_slave_irq()
390 i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_REQUESTED, &value); in rcar_i2c_slave_irq()
400 i2c_slave_event(priv->slave, I2C_SLAVE_STOP, &value); in rcar_i2c_slave_irq()
410 ret = i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_RECEIVED, &value); in rcar_i2c_slave_irq()
418 i2c_slave_event(priv->slave, I2C_SLAVE_READ_PROCESSED, &value); in rcar_i2c_slave_irq()
569 static int rcar_reg_slave(struct i2c_client *slave) in rcar_reg_slave() argument
571 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter); in rcar_reg_slave()
573 if (priv->slave) in rcar_reg_slave()
576 if (slave->flags & I2C_CLIENT_TEN) in rcar_reg_slave()
[all …]
Di2c-pxa.c170 struct i2c_slave_client *slave; member
534 if (i2c->slave != NULL) in i2c_pxa_slave_txempty()
535 ret = i2c->slave->read(i2c->slave->data); in i2c_pxa_slave_txempty()
546 if (i2c->slave != NULL) in i2c_pxa_slave_rxfull()
547 i2c->slave->write(i2c->slave->data, byte); in i2c_pxa_slave_rxfull()
560 if (i2c->slave != NULL) in i2c_pxa_slave_start()
561 i2c->slave->event(i2c->slave->data, in i2c_pxa_slave_start()
594 if (i2c->slave != NULL) in i2c_pxa_slave_stop()
595 i2c->slave->event(i2c->slave->data, I2C_SLAVE_EVENT_STOP); in i2c_pxa_slave_stop()
1256 i2c->slave = plat->slave; in i2c_pxa_probe()
/linux-4.4.14/drivers/spi/
Dspi-pxa2xx-pci.c132 struct dw_dma_slave *slave = c->tx_param; in pxa2xx_spi_pci_probe() local
134 slave->dma_dev = &dma_dev->dev; in pxa2xx_spi_pci_probe()
135 slave->src_master = 1; in pxa2xx_spi_pci_probe()
136 slave->dst_master = 0; in pxa2xx_spi_pci_probe()
140 struct dw_dma_slave *slave = c->rx_param; in pxa2xx_spi_pci_probe() local
142 slave->dma_dev = &dma_dev->dev; in pxa2xx_spi_pci_probe()
143 slave->src_master = 1; in pxa2xx_spi_pci_probe()
144 slave->dst_master = 0; in pxa2xx_spi_pci_probe()
/linux-4.4.14/net/sched/
Dsch_teql.c298 struct net_device *slave = qdisc_dev(q); in teql_master_xmit() local
299 struct netdev_queue *slave_txq = netdev_get_tx_queue(slave, 0); in teql_master_xmit()
303 if (netif_xmit_stopped(netdev_get_tx_queue(slave, subq)) || in teql_master_xmit()
304 !netif_running(slave)) { in teql_master_xmit()
309 switch (teql_resolve(skb, skb_res, slave, slave_txq)) { in teql_master_xmit()
315 netdev_start_xmit(skb, slave, slave_txq, false) == in teql_master_xmit()
370 struct net_device *slave = qdisc_dev(q); in teql_master_open() local
372 if (slave == NULL) in teql_master_open()
375 if (slave->mtu < mtu) in teql_master_open()
376 mtu = slave->mtu; in teql_master_open()
[all …]
/linux-4.4.14/Documentation/filesystems/
Dsharedsubtree.txt34 b. slave mount
76 2b) A slave mount is like a shared mount except that mount and umount events
79 All slave mounts have a master mount which is a shared.
92 Now let's make the mount at /tmp; a slave of /mnt
93 # mount --make-slave /tmp
144 mount --make-slave mountpoint
180 of its namespace as slave
239 2) slave
240 3) shared and slave
267 A 'slave mount' is defined as a vfsmount that receives
[all …]
/linux-4.4.14/sound/firewire/dice/
Ddice-stream.c195 struct amdtp_stream *master, *slave; in snd_dice_stream_start_duplex() local
208 slave = &dice->rx_stream; in snd_dice_stream_start_duplex()
211 slave = &dice->tx_stream; in snd_dice_stream_start_duplex()
215 if (amdtp_streaming_error(master) || amdtp_streaming_error(slave)) in snd_dice_stream_start_duplex()
231 stop_stream(dice, slave); in snd_dice_stream_start_duplex()
234 amdtp_stream_set_sync(sync_mode, master, slave); in snd_dice_stream_start_duplex()
250 err = start_stream(dice, slave, rate); in snd_dice_stream_start_duplex()
262 stop_stream(dice, slave); in snd_dice_stream_start_duplex()
268 !amdtp_stream_wait_callback(slave, CALLBACK_TIMEOUT)) { in snd_dice_stream_start_duplex()
271 stop_stream(dice, slave); in snd_dice_stream_start_duplex()
/linux-4.4.14/Documentation/devicetree/bindings/arm/tegra/
Dnvidia,nvec.txt5 - reg : the iomem of the i2c slave controller
6 - interrupts : the interrupt line of the i2c slave controller
9 - slave-addr: the i2c address of the slave controller
/linux-4.4.14/arch/um/drivers/
Dslip_user.c151 pri->slave = sfd; in slip_open()
165 err = os_get_ifname(pri->slave, pri->name); in slip_open()
203 err = slip_tramp(argv, pri->slave); in slip_close()
208 close(pri->slave); in slip_close()
209 pri->slave = -1; in slip_close()
227 if (pri->slave < 0) in slip_add_addr()
237 if (pri->slave < 0) in slip_del_addr()
Dslirp_user.c65 pri->slave = fds[1]; in slirp_open()
83 close(pri->slave); in slirp_close()
85 pri->slave = -1; in slirp_close()
Dslip.h11 int slave; member
Dslirp.h23 int slave; member
/linux-4.4.14/sound/firewire/
Damdtp-stream.h228 struct amdtp_stream *slave) in amdtp_stream_set_sync() argument
232 slave->flags |= CIP_SYNC_TO_DEVICE; in amdtp_stream_set_sync()
233 master->sync_slave = slave; in amdtp_stream_set_sync()
236 slave->flags &= ~CIP_SYNC_TO_DEVICE; in amdtp_stream_set_sync()
240 slave->sync_slave = NULL; in amdtp_stream_set_sync()
/linux-4.4.14/drivers/mfd/
Dpalmas.c432 int ret, slave; in palmas_power_off() local
437 slave = PALMAS_BASE_TO_SLAVE(PALMAS_PMU_CONTROL_BASE); in palmas_power_off()
441 palmas_dev->regmap[slave], in palmas_power_off()
500 int slave; in palmas_i2c_probe() local
578 slave = PALMAS_BASE_TO_SLAVE(PALMAS_INTERRUPT_BASE); in palmas_i2c_probe()
582 regmap_write(palmas->regmap[slave], addr, reg); in palmas_i2c_probe()
584 ret = regmap_add_irq_chip(palmas->regmap[slave], palmas->irq, in palmas_i2c_probe()
591 slave = PALMAS_BASE_TO_SLAVE(PALMAS_PU_PD_OD_BASE); in palmas_i2c_probe()
597 ret = regmap_write(palmas->regmap[slave], addr, reg); in palmas_i2c_probe()
601 ret = regmap_read(palmas->regmap[slave], addr, &reg); in palmas_i2c_probe()
[all …]
/linux-4.4.14/drivers/gpu/drm/tilcdc/
Dtilcdc_slave_compat.c200 struct device_node *slave = NULL, *lcdc = NULL; in tilcdc_convert_slave_node() local
213 slave = of_find_matching_node(NULL, tilcdc_slave_of_match); in tilcdc_convert_slave_node()
215 if (!slave || !of_device_is_available(lcdc)) in tilcdc_convert_slave_node()
218 i2c = of_parse_phandle(slave, "i2c", 0); in tilcdc_convert_slave_node()
234 tilcdc_copy_props(slave, encoder, tilcdc_slave_props, &kft); in tilcdc_convert_slave_node()
248 tilcdc_node_disable(slave); in tilcdc_convert_slave_node()
259 of_node_put(slave); in tilcdc_convert_slave_node()
DKconfig24 with device tree blobs using the obsolete "ti,tilcdc,slave"
25 binding. If you find "ti,tilcdc,slave"-string from your DTB,
Dtilcdc_slave_compat.dts2 * DTS overlay for converting ti,tilcdc,slave binding to new binding.
15 * copied over from the ti,tilcdc,slave node.
/linux-4.4.14/Documentation/dmaengine/
Dclient.txt11 DMA Engine. This is applicable only for slave DMA usage only.
13 The slave DMA usage consists of following steps:
14 1. Allocate a DMA slave channel
15 2. Set slave and controller specific parameters
20 1. Allocate a DMA slave channel
22 Channel allocation is slightly different in the slave DMA context,
35 slave and cyclic channels as they typically need to obtain a specific
48 2. Set slave and controller specific parameters
51 driver. Most of the generic information which a slave DMA can use
72 For slave usage the various modes of slave transfers supported by the
[all …]
/linux-4.4.14/drivers/staging/vme/devices/
Dvme_user.c298 struct vme_slave slave; in vme_user_ioctl() local
371 memset(&slave, 0, sizeof(struct vme_slave)); in vme_user_ioctl()
377 &slave.enable, &slave.vme_addr, in vme_user_ioctl()
378 &slave.size, &pci_addr, in vme_user_ioctl()
379 &slave.aspace, &slave.cycle); in vme_user_ioctl()
381 copied = copy_to_user(argp, &slave, in vme_user_ioctl()
392 copied = copy_from_user(&slave, argp, sizeof(slave)); in vme_user_ioctl()
402 slave.enable, slave.vme_addr, slave.size, in vme_user_ioctl()
403 image[minor].pci_buf, slave.aspace, in vme_user_ioctl()
404 slave.cycle); in vme_user_ioctl()
/linux-4.4.14/Documentation/w1/
Dw1.netlink8 1. Events. They are generated each time a new master or slave device
24 slave add/remove events
31 userspace command for slave device
36 __u8 id[8]; - slave unique device id
43 [struct w1_netlink_cmd] - command for given master or slave device.
52 W1_CMD_SLAVE_ADD - add slave to kernel list
53 W1_CMD_SLAVE_REMOVE - remove slave from kernel list
67 either 8 bytes of slave unique id in host order,
128 Each command (either root, master or slave with or without w1_netlink_cmd
157 master or slave request, according to w1_netlink_msg.type field.
[all …]
Dw1.generic3 The 1-wire bus is a simple master-slave bus that communicates via a single
12 All w1 slave devices must be connected to a w1 bus master device.
26 - the w1 bus is periodically searched for new slave devices
29 and check if it is loaded. If so, the family driver is attached to the slave.
41 and slave device will be even removed, but in this case 0xff will
82 w1_master_add - (rw) manually register a slave device
88 w1_master_remove - (rw) manually remove a slave device
101 set to zero, then manually add the slave device serial numbers by
113 w1 slave sysfs interface
120 rw - (optional) created for slave devices which do not have
/linux-4.4.14/drivers/gpu/drm/rcar-du/
Drcar_du_encoder.h33 struct drm_encoder_slave slave; member
40 container_of(e, struct rcar_du_encoder, slave.base)
42 #define rcar_encoder_to_drm_encoder(e) (&(e)->slave.base)
Drcar_du_hdmienc.c33 #define to_slave_funcs(e) (to_rcar_encoder(e)->slave.slave_funcs)
149 ret = driver->encoder_init(i2c_slave, rcdu->ddev, &renc->slave); in rcar_du_hdmienc_init()
/linux-4.4.14/sound/firewire/bebob/
Dbebob_stream.c588 struct amdtp_stream *master, *slave; in snd_bebob_stream_start_duplex() local
621 slave = &bebob->rx_stream; in snd_bebob_stream_start_duplex()
624 slave = &bebob->tx_stream; in snd_bebob_stream_start_duplex()
643 if (amdtp_streaming_error(slave)) in snd_bebob_stream_start_duplex()
644 amdtp_stream_stop(slave); in snd_bebob_stream_start_duplex()
646 !amdtp_stream_running(master) && !amdtp_stream_running(slave)) in snd_bebob_stream_start_duplex()
660 amdtp_stream_stop(slave); in snd_bebob_stream_start_duplex()
666 amdtp_stream_set_sync(sync_mode, master, slave); in snd_bebob_stream_start_duplex()
725 if (!amdtp_stream_running(slave)) { in snd_bebob_stream_start_duplex()
726 err = start_stream(bebob, slave, rate); in snd_bebob_stream_start_duplex()
[all …]
/linux-4.4.14/net/ax25/
Dax25_timer.c139 if (ax25->ax25_dev->dama.slave) in ax25_heartbeat_expiry()
160 if (!ax25->ax25_dev->dama.slave) in ax25_t1timer_expiry()
179 if (!ax25->ax25_dev->dama.slave) in ax25_t2timer_expiry()
198 if (ax25->ax25_dev->dama.slave) in ax25_t3timer_expiry()
219 if (ax25->ax25_dev->dama.slave) in ax25_idletimer_expiry()
Dax25_ds_subr.c178 if (ax25_dev->dama.slave == 0) in ax25_dev_dama_on()
181 ax25_dev->dama.slave = 1; in ax25_dev_dama_on()
190 if (ax25_dev->dama.slave && !ax25_check_dama_slave(ax25_dev)) { in ax25_dev_dama_off()
192 ax25_dev->dama.slave = 0; in ax25_dev_dama_off()
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dcpsw.txt22 - active_slave : Specifies the slave to use for time stamping,
37 driven low so that cpsw slave 0 and phy data
48 - phy_id : Specifies slave phy id
80 cpsw_emac0: slave@0 {
86 cpsw_emac1: slave@1 {
109 cpsw_emac0: slave@0 {
115 cpsw_emac1: slave@1 {
Dkeystone-netcp.txt96 -- slave-port: Switch port number, 0 based numbering.
111 - secondary-slave-ports: specification for each of the switch port not be
173 slave-port = <0>;
177 slave-port = <1>;
182 secondary-slave-ports {
184 slave-port = <2>;
188 slave-port = <3>;
/linux-4.4.14/drivers/gpu/drm/tegra/
Ddsi.c83 struct tegra_dsi *slave; member
405 if (dsi->slave) in tegra_dsi_set_phy_timing()
406 tegra_dsi_set_phy_timing(dsi->slave, period, timing); in tegra_dsi_set_phy_timing()
483 if (dsi->slave) in tegra_dsi_enable()
484 tegra_dsi_enable(dsi->slave); in tegra_dsi_enable()
492 if (dsi->slave) in tegra_dsi_get_lanes()
493 return dsi->lanes + dsi->slave->lanes; in tegra_dsi_get_lanes()
590 if (dsi->master || dsi->slave) { in tegra_dsi_configure()
610 if (dsi->master || dsi->slave) { in tegra_dsi_configure()
631 if (dsi->slave) { in tegra_dsi_configure()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/arm/msm/
Dssbi.txt13 with the slave device. This should be one of "ssbi", "ssbi2", or
15 slave.
17 The slave device should be the single child node of the ssbi device
/linux-4.4.14/arch/arm64/boot/dts/sprd/
Dsc9836.dtsi55 slave-mode;
82 slave-mode;
90 slave-mode;
98 slave-mode;
106 slave-mode;
114 slave-mode;
/linux-4.4.14/include/sound/
Dcontrol.h192 int _snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave,
217 snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave) in snd_ctl_add_slave() argument
219 return _snd_ctl_add_slave(master, slave, 0); in snd_ctl_add_slave()
240 struct snd_kcontrol *slave) in snd_ctl_add_slave_uncached() argument
242 return _snd_ctl_add_slave(master, slave, SND_CTL_SLAVE_NEED_UPDATE); in snd_ctl_add_slave_uncached()
Ddesignware_i2s.h50 bool (*filter)(struct dma_chan *chan, void *slave);
59 bool (*filter)(struct dma_chan *chan, void *slave);
Dspear_spdif.h25 bool (*filter)(struct dma_chan *chan, void *slave);
/linux-4.4.14/drivers/ata/
Dpata_pcmcia.c59 struct ata_device *slave = &link->device[1]; in pcmcia_set_mode() local
61 if (!ata_dev_enabled(master) || !ata_dev_enabled(slave)) in pcmcia_set_mode()
64 if (memcmp(master->id + ATA_ID_FW_REV, slave->id + ATA_ID_FW_REV, in pcmcia_set_mode()
68 if (memcmp(master->id + ATA_ID_SERNO, slave->id + ATA_ID_SERNO, in pcmcia_set_mode()
70 ata_dev_warn(slave, "is a ghost device, ignoring\n"); in pcmcia_set_mode()
71 ata_dev_disable(slave); in pcmcia_set_mode()
Dpata_cs5520.c72 int slave = adev->devno; in cs5520_set_timings() local
82 pci_write_config_byte(pdev, 0x64 + 4*ap->port_no + slave, in cs5520_set_timings()
86 pci_write_config_byte(pdev, 0x66 + 4*ap->port_no + slave, in cs5520_set_timings()
Dlibata-eh.c2642 struct ata_link *slave = ap->slave_link; in ata_eh_reset() local
2644 struct ata_eh_context *sehc = slave ? &slave->eh_context : NULL; in ata_eh_reset()
2720 if (slave) { in ata_eh_reset()
2731 if (slave && (rc == 0 || rc == -ENOENT)) { in ata_eh_reset()
2734 tmp = prereset(slave, deadline); in ata_eh_reset()
2799 if (slave && reset == hardreset) { in ata_eh_reset()
2803 ata_link_info(slave, "hard resetting link\n"); in ata_eh_reset()
2805 ata_eh_about_to_do(slave, NULL, ATA_EH_RESET); in ata_eh_reset()
2806 tmp = ata_do_reset(slave, reset, classes, deadline, in ata_eh_reset()
2814 failed_link = slave; in ata_eh_reset()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/mfd/
Dmax77686.txt5 are addressed using same i2c slave address whereas RTC submodule uses
6 different i2c slave address,presently for which we are statically creating i2c
16 - reg : Specifies the i2c slave address of PMIC block.
D88pm860x.txt5 - reg : the I2C slave address for the 88pm860x chip
13 - marvell,88pm860x-slave-addr: 88pm860x are two chips solution. <reg> stores the I2C address
39 marvell,88pm860x-slave-addr = <0x11>;
Dqcom,spmi-pmic.txt13 16-bit SPMI slave address space into 256 smaller fixed-size regions, 256 bytes
33 - reg: Specifies the SPMI USID slave address for this device.
46 Each child node of SPMI slave id represents a function of the PMIC. In the
Ds2mpa01.txt7 Each sub-block is addressed by the host system using different I2C slave
12 - reg: Specifies the I2C slave address of the PMIC block. It should be 0x66.
Dsky81452.txt5 - reg : I2C slave address
Dlp3943.txt5 - reg: I2C slave address. From 0x60 to 0x67.
Datmel-matrix.txt4 behavior (master/slave priorities, undefined burst length type, ...)
/linux-4.4.14/Documentation/networking/
Dipvlan.txt10 the master device share the L2 with it's slave devices. I have developed this
25 ip link add link <master-dev> <slave-dev> type ipvlan mode { l2 | L3 }
40 slave device and packets are switched and queued to the master device to send
46 to the slave device and packets are switched to the stack instance of the
60 (c) If the slave device is to be put into the hostile / untrusted network
61 namespace where L2 on the slave could be changed / misused.
93 (d) Now switch to the namespace (ns0 or ns1) to configure the slave devices
Dbonding.txt167 Specifies the new active slave for modes that support it
170 string. If a name is given, the slave and its link must be up in order
171 to be selected as the new active slave. If an empty string is
172 specified, the current active slave is cleared, and a new active
173 slave is selected automatically.
179 active slave, or the empty string if there is no active slave or
180 the current mode does not use an active slave.
224 - A slave is added to or removed from the bond
226 - Any slave's link state changes
228 - Any slave's 802.3ad association state changes
[all …]
/linux-4.4.14/drivers/parport/
Dshare.c543 struct parport *slave = port->slaves[i-1]; in parport_announce_port() local
544 if (slave) in parport_announce_port()
545 list_add_tail(&slave->list, &portlist); in parport_announce_port()
552 struct parport *slave = port->slaves[i-1]; in parport_announce_port() local
553 if (slave) in parport_announce_port()
554 attach_driver_chain(slave); in parport_announce_port()
591 struct parport *slave = port->slaves[i-1]; in parport_remove_port() local
592 if (!slave) in parport_remove_port()
594 detach_driver_chain(slave); in parport_remove_port()
595 parport_daisy_fini(slave); in parport_remove_port()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/spmi/
Dqcom,spmi-pmic-arb.txt8 to slave devices.
23 "chnls" - tx-channel per virtual slave registers.
24 "obsrvr" - rx-channel (called observer) per virtual slave registers.
39 cell 1: slave ID for the requested interrupt (0-15)
Dspmi.txt5 each representing a unique slave on the bus.
13 An SPMI controller node can contain zero or more child nodes representing slave
/linux-4.4.14/arch/cris/include/arch-v32/arch/hwregs/
Dmarb_defs.h171 unsigned int slave : 1; member
192 unsigned int slave : 1; member
212 unsigned int slave : 1; member
386 unsigned int slave : 1; member
433 unsigned int slave : 1; member
453 unsigned int slave : 1; member
Dmarb_bp_defs.h116 unsigned int slave : 1; member
163 unsigned int slave : 1; member
183 unsigned int slave : 1; member
/linux-4.4.14/Documentation/devicetree/bindings/arm/
Dcoresight.txt73 slave-mode;
87 slave-mode;
123 slave-mode;
153 slave-mode;
161 slave-mode;
169 slave-mode;
Dcci.txt11 space and multiple sets of interface control registers, one per slave
61 Node name must be "slave-if".
196 cci_control0: slave-if@1000 {
202 cci_control1: slave-if@4000 {
208 cci_control2: slave-if@5000 {
227 CCI slave interface @0x000000002c091000 is connected to dma controller dma0.
228 CCI slave interface @0x000000002c094000 is connected to CPUs {CPU0, CPU1};
229 CCI slave interface @0x000000002c095000 is connected to CPUs {CPU2, CPU3};
/linux-4.4.14/arch/cris/include/arch-v32/mach-fs/mach/hwregs/
Dmarb_defs.h171 unsigned int slave : 1; member
192 unsigned int slave : 1; member
212 unsigned int slave : 1; member
386 unsigned int slave : 1; member
433 unsigned int slave : 1; member
453 unsigned int slave : 1; member
Dmarb_bp_defs.h116 unsigned int slave : 1; member
163 unsigned int slave : 1; member
183 unsigned int slave : 1; member
/linux-4.4.14/include/linux/mfd/
Ddbx500-prcmu.h267 int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
268 int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
269 int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask, u8 size);
436 static inline int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size) in prcmu_abb_read() argument
441 static inline int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size) in prcmu_abb_write() argument
446 static inline int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask, in prcmu_abb_write_masked() argument
Ddb8500-prcmu.h509 int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
510 int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
647 static inline int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size) in prcmu_abb_read() argument
652 static inline int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size) in prcmu_abb_write() argument
/linux-4.4.14/Documentation/spi/
Dpxa2xx10 - Per slave device (chip) configuration.
30 slave device (chips) attached to this SPI master.
80 Typically each SPI slave (chip) is defined in the arch/.../mach-*/board-*.c
84 Each slave device attached to the PXA must provide slave specific configuration
87 will uses the configuration whenever the driver communicates with the slave
119 slave device. Please note that the PXA2xx SSP 1 does not support trailing byte
128 function for asserting/deasserting a slave device chip select. If the field is
144 /* Chip Select control for the CS8415A SPI slave device */
153 /* Chip Select control for the CS8405A SPI slave device */
/linux-4.4.14/include/linux/mlx4/
Ddevice.h1020 static inline int mlx4_is_guest_proxy(struct mlx4_dev *dev, int slave, u32 qpn) in mlx4_is_guest_proxy() argument
1022 int guest_proxy_base = dev->phys_caps.base_proxy_sqpn + slave * 8; in mlx4_is_guest_proxy()
1403 void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port,
1408 int mlx4_is_slave_active(struct mlx4_dev *dev, int slave);
1409 int mlx4_gen_pkey_eqe(struct mlx4_dev *dev, int slave, u8 port);
1410 int mlx4_gen_guid_change_eqe(struct mlx4_dev *dev, int slave, u8 port);
1412 int mlx4_gen_port_state_change_eqe(struct mlx4_dev *dev, int slave, u8 port, u8 port_subtype_change…
1413 enum slave_port_state mlx4_get_slave_port_state(struct mlx4_dev *dev, int slave, u8 port);
1414 int set_and_calc_slave_port_state(struct mlx4_dev *dev, int slave, u8 port, int event, enum slave_p…
1416 void mlx4_put_slave_node_guid(struct mlx4_dev *dev, int slave, __be64 guid);
[all …]
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-coresight-devices-funnel5 Description: (RW) Enables the slave ports and defines the hold time of the
6 slave ports.
/linux-4.4.14/Documentation/devicetree/bindings/bus/
Dsunxi-rsb.txt5 for the controller itself, and child nodes representing the slave devices.
25 slave devices on the bus. Child 'reg' properties should contain the slave
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_encoder.h73 struct drm_encoder_slave *slave = to_encoder_slave(enc); in nouveau_encoder() local
75 return container_of(slave, struct nouveau_encoder, base); in nouveau_encoder()
/linux-4.4.14/sound/soc/samsung/
Ddmaengine.c53 playback_data->filter_data = playback->slave; in samsung_asoc_init_dma_data()
60 capture_data->filter_data = capture->slave; in samsung_asoc_init_dma_data()
Ds3c2412-i2s.c37 .slave = (void *)(uintptr_t)DMACH_I2S_OUT,
43 .slave = (void *)(uintptr_t)DMACH_I2S_IN,
Ddma.h18 void *slave; /* Channel ID */ member
Dac97.c349 s3c_ac97_pcm_out.slave = ac97_pdata->dma_playback; in s3c_ac97_probe()
351 s3c_ac97_pcm_in.slave = ac97_pdata->dma_capture; in s3c_ac97_probe()
353 s3c_ac97_mic_in.slave = ac97_pdata->dma_capture_mic; in s3c_ac97_probe()
/linux-4.4.14/Documentation/devicetree/bindings/i2c/
Di2c-sunxi-p2wi.txt18 A P2WI may contain one child node encoding a P2WI slave device.
22 - reg : the I2C slave address used during the initialization
/linux-4.4.14/Documentation/DocBook/
Dw1.xml.db2 API-struct-w1-slave
26 API-w1-reset-select-slave
Dlibata.xml.db50 API-ata-slave-link-init
109 API-ata-scsi-slave-config
110 API-ata-scsi-slave-destroy
121 API-ata-sas-slave-configure
/linux-4.4.14/net/hsr/
Dhsr_device.c430 int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2], in hsr_dev_finalize()
442 ether_addr_copy(hsr_dev->dev_addr, slave[0]->dev_addr); in hsr_dev_finalize()
446 slave[1]->dev_addr); in hsr_dev_finalize()
486 res = hsr_add_port(hsr, slave[0], HSR_PT_SLAVE_A); in hsr_dev_finalize()
489 res = hsr_add_port(hsr, slave[1], HSR_PT_SLAVE_B); in hsr_dev_finalize()
Dhsr_device.h19 int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2],
/linux-4.4.14/Documentation/devicetree/bindings/spi/
Dspi-davinci.txt34 Optional properties for slave devices:
35 SPI slave nodes can contain the following properties.
58 Example of a NOR flash slave device (n25q032) connected to DaVinci
Dspi-bus.txt4 and a set of child nodes for each SPI slave on the bus. For this
7 in slave mode.
44 SPI slave nodes must be children of the SPI master node and can
71 If a gpio chipselect is used for the SPI slave the gpio number will be passed
Dspi-fsl-dspi.txt12 - bus-num : the slave chip chipselect signal number.
19 Optional SPI slave node properties:
Dspi_pl022.txt26 SPI slave nodes must be children of the SPI master node and can
61 pl022,slave-tx-disable;
Dqcom,spi-qup.txt3 The QUP core is an AHB slave that provides a common data path (an output FIFO
42 SPI slave nodes must be children of the SPI master node and can contain
/linux-4.4.14/Documentation/devicetree/bindings/interrupt-controller/
Dmarvell,armada-370-xp-mpic.txt22 connected as a slave to another interrupt controller. This is
24 connected as a slave to the Cortex-A9 GIC. The provided interrupt
/linux-4.4.14/drivers/ide/
Dide-acpi.c42 struct ide_acpi_drive_link slave; member
480 struct ide_acpi_drive_link *slave = &hwif->acpidata->slave; in ide_acpi_push_timing() local
495 in_params[2].buffer.pointer = (u8 *)&slave->idbuff; in ide_acpi_push_timing()
579 hwif->devices[1]->acpidata = &hwif->acpidata->slave; in ide_acpi_port_init_devices()
/linux-4.4.14/Documentation/devicetree/bindings/media/
Dsamsung-s5c73m3.txt7 slave device nodes corresponding to these control bus interfaces are required
10 I2C slave device node
16 - reg : I2C slave address of the sensor;
/linux-4.4.14/drivers/isdn/i4l/
Disdn_net.h60 #define ISDN_SLAVE_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->slave))
62 (((isdn_net_local *) netdev_priv(master))->slave)
Disdn_net.c838 if (lp->slave != NULL) { in isdn_net_hangup()
843 lp->slave->name, d->name); in isdn_net_hangup()
844 isdn_net_hangup(lp->slave); in isdn_net_hangup()
1089 if (lp->slave) { in isdn_net_xmit()
2269 while (mlp->slave) { in isdn_net_find_icall()
2899 if (lp->slave) { in isdn_net_getcfg()
2900 if (strlen(lp->slave->name) >= 10) in isdn_net_getcfg()
2901 strcpy(cfg->slave, "too-long"); in isdn_net_getcfg()
2903 strcpy(cfg->slave, lp->slave->name); in isdn_net_getcfg()
2905 cfg->slave[0] = '\0'; in isdn_net_getcfg()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/display/
Dst,stih4xx.txt9 - st,slave: phandle on a slave vtg
122 vtg_main_slave: sti-vtg-main-slave@fe85A800 {
131 st,slave = <&vtg_main_slave>;
134 vtg_aux_slave: sti-vtg-aux-slave@fd348400 {
143 st,slave = <&vtg_aux_slave>;
/linux-4.4.14/sound/soc/spear/
Dspear_pcm.h22 bool (*filter)(struct dma_chan *chan, void *slave));
Dspear_pcm.c42 bool (*filter)(struct dma_chan *chan, void *slave)) in devm_spear_pcm_platform_register() argument
/linux-4.4.14/drivers/input/misc/
Dapanel.c292 unsigned char method, slave, chip; in apanel_init() local
296 slave = readb(p + 3) >> 1; in apanel_init()
298 if (slave != i2c_addr) { in apanel_init()
/linux-4.4.14/include/linux/hsi/
Dssi_protocol.h34 struct hsi_client *ssip_slave_get_master(struct hsi_client *slave);
/linux-4.4.14/Documentation/misc-devices/
Dad525x_dpot.txt32 the common i2c directory and locating the device by the i2c slave address.
37 So assuming the device in question is on the first i2c bus and has the slave
/linux-4.4.14/net/dsa/
DMakefile3 dsa_core-y += dsa.o slave.o
/linux-4.4.14/include/linux/
Dsudmac.h38 const struct sudmac_slave_config *slave; member
Dif_eql.h26 typedef struct slave { struct
Dsh_dma.h75 const struct sh_dmae_slave_config *slave; member
Dif_frad.h58 struct net_device *slave; member
/linux-4.4.14/Documentation/networking/dsa/
Ddsa.txt40 stack. These specialized network interfaces are referred to as "slave" network
134 -> invoke eth_type_trans() with the DSA slave network device
137 Past this point, the DSA slave network devices get delivered regular Ethernet
154 These slave network devices have custom net_device_ops and ethtool_ops function
158 Upon frame transmission from these slave network devices, DSA will look up which
194 slave MDIO bus which allows a specific switch driver to divert and intercept
202 slave MII bus can be utilized to mux/demux MDIO reads and writes towards either
229 dsa_switch_tree as a backpointer, slave network devices, master network device,
262 DSA does not currently create slave network devices for the CPU or DSA ports, as
286 you to administratively bring UP these slave network devices. A common
[all …]
/linux-4.4.14/sound/usb/usx2y/
Dus122l.h15 struct file *slave; member
/linux-4.4.14/sound/i2c/
Di2c.c50 struct snd_i2c_bus *slave; in snd_i2c_bus_free() local
63 slave = snd_i2c_slave_bus(bus->buses.next); in snd_i2c_bus_free()
64 snd_device_free(bus->card, slave); in snd_i2c_bus_free()
/linux-4.4.14/include/linux/i2c/
Dpxa-i2c.h66 struct i2c_slave_client *slave; member
/linux-4.4.14/sound/soc/intel/common/
Dsst-firmware.c214 struct dma_slave_config slave; in sst_dsp_dma_get_channel() local
228 memset(&slave, 0, sizeof(slave)); in sst_dsp_dma_get_channel()
229 slave.direction = DMA_MEM_TO_DEV; in sst_dsp_dma_get_channel()
230 slave.src_addr_width = in sst_dsp_dma_get_channel()
231 slave.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sst_dsp_dma_get_channel()
232 slave.src_maxburst = slave.dst_maxburst = SST_DSP_DMA_MAX_BURST; in sst_dsp_dma_get_channel()
234 ret = dmaengine_slave_config(dma->ch, &slave); in sst_dsp_dma_get_channel()
/linux-4.4.14/Documentation/devicetree/bindings/input/touchscreen/
Dsx8654.txt5 - reg: i2c slave address
Degalax-ts.txt5 - reg: i2c slave address
/linux-4.4.14/Documentation/devicetree/bindings/rtc/
Dnxp,rtc-2123.txt5 - reg: should be the SPI slave chipselect address
/linux-4.4.14/Documentation/devicetree/bindings/input/
Dti,drv2667.txt5 - reg - I2C slave address
Dti,drv2665.txt5 - reg - I2C slave address
/linux-4.4.14/drivers/i2c/
DMakefile12 obj-$(CONFIG_I2C_SLAVE_EEPROM) += i2c-slave-eeprom.o
DKconfig32 Operation Regions allow firmware (BIOS) code to access I2C slave devices,
114 bool "I2C slave support"
119 tristate "I2C eeprom slave driver"
/linux-4.4.14/drivers/tty/serial/8250/
Dserial_cs.c84 int slave; member
276 if (!info->slave) in serial_remove()
383 info->slave = 1; in pfc_config()
387 info->slave = 1; in pfc_config()
389 if (info->slave) in pfc_config()
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dpci-ioda.c383 struct pnv_ioda_pe *slave; in pnv_ioda_freeze_pe() local
409 list_for_each_entry(slave, &pe->slaves, list) { in pnv_ioda_freeze_pe()
411 slave->pe_number, in pnv_ioda_freeze_pe()
416 slave->pe_number); in pnv_ioda_freeze_pe()
422 struct pnv_ioda_pe *pe, *slave; in pnv_ioda_unfreeze_pe() local
445 list_for_each_entry(slave, &pe->slaves, list) { in pnv_ioda_unfreeze_pe()
447 slave->pe_number, in pnv_ioda_unfreeze_pe()
452 slave->pe_number); in pnv_ioda_unfreeze_pe()
462 struct pnv_ioda_pe *slave, *pe; in pnv_ioda_get_pe_state() local
497 list_for_each_entry(slave, &pe->slaves, list) { in pnv_ioda_get_pe_state()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/display/panel/
Dlg,lg4573.txt7 The panel must obey rules for SPI slave device specified in document [1].
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Dtpa6130a2.txt12 - reg - <int> - I2C slave address
Dda9055.txt14 - reg: Specifies the I2C slave address
/linux-4.4.14/Documentation/devicetree/bindings/regulator/
Dda9210.txt6 - reg: the i2c slave address of the regulator. It should be 0x68.
Dmax1586-regulator.txt5 - reg: I2C slave address, usually 0x14
D88pm860x.txt5 - reg: I2C slave address
Dmax8660.txt5 - reg: I2C slave address, usually 0x34
Dmt6311-regulator.txt5 - reg: I2C slave address, usually 0x6b.
Dtps51632-regulator.txt5 - reg: I2C slave address
/linux-4.4.14/Documentation/devicetree/bindings/iio/light/
Dgp2ap020a00f.txt9 - reg : the I2C slave address of the light sensor
/linux-4.4.14/drivers/staging/wilc1000/
DKconfig57 Interface (SPI) that operates as a SPI slave. This SPI interface can
59 full-duplex slave synchronous serial interface that is available
/linux-4.4.14/drivers/dma/sh/
Dshdma-r8a73a4.c64 .slave = dma_slaves,
/linux-4.4.14/Documentation/devicetree/bindings/leds/backlight/
Dtps65217-backlight.txt8 - reg: I2C slave address
/linux-4.4.14/Documentation/i2c/busses/
Di2c-diolan-u2c16 a computer to I2C slave devices using a USB interface. It also supports
/linux-4.4.14/Documentation/
Dsmsc_ece1099.txt32 - SMbus slave Interface
41 SMBus interface to the host. The device is a slave-only SMBus device.
/linux-4.4.14/Documentation/devicetree/bindings/leds/
Dleds-lp8860.txt11 - reg - I2C slave address
/linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/
Ddfp.c156 struct drm_encoder *slave; in get_tmds_slave() local
171 list_for_each_entry(slave, &dev->mode_config.encoder_list, head) { in get_tmds_slave()
172 struct dcb_output *slave_dcb = nouveau_encoder(slave)->dcb; in get_tmds_slave()
174 if (slave_dcb->type == DCB_OUTPUT_TMDS && get_slave_funcs(slave) && in get_tmds_slave()
176 return slave; in get_tmds_slave()
/linux-4.4.14/Documentation/devicetree/bindings/iio/proximity/
Das3935.txt7 slave node bindings.

123