Home
last modified time | relevance | path

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

123

/linux-4.1.27/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.1.27/include/net/
Dbonding.h152 struct slave { struct
184 struct slave *arr[0]; argument
198 struct slave __rcu *curr_active_slave;
199 struct slave __rcu *current_arp_slave;
200 struct slave __rcu *primary_slave;
205 struct slave *);
240 ((struct slave *) rcu_dereference(dev->rx_handler_data))
243 ((struct slave *) rtnl_dereference(dev->rx_handler_data))
245 void bond_queue_slave_event(struct slave *slave);
257 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_changed(struct slave *slave);
301 void bond_3ad_adapter_duplex_changed(struct slave *slave);
302 void bond_3ad_handle_link_change(struct slave *slave, char link);
307 struct slave *slave);
/linux-4.1.27/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.1.27/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.c142 if (port->slave == NULL) in __get_bond_by_port()
145 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port()
159 struct slave *first_slave; in __get_first_agg()
192 bond_set_slave_inactive_flags(port->slave, BOND_SLAVE_NOTIFY_LATER); in __disable_port()
201 struct slave *slave = port->slave; in __enable_port() local
203 if ((slave->link == BOND_LINK_UP) && bond_slave_is_up(slave)) in __enable_port()
204 bond_set_slave_active_flags(slave, BOND_SLAVE_NOTIFY_LATER); in __enable_port()
213 return bond_is_active_slave(port->slave); in __port_is_enabled()
263 struct slave *slave = port->slave; in __get_link_speed() local
271 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()
160 const struct slave *slave) in bond_info_show_slave() argument
164 seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); in bond_info_show_slave()
[all …]
Dbond_options.c693 struct slave *slave) in __bond_option_active_slave_get() argument
695 return bond_uses_primary(bond) && slave ? slave->dev : NULL; in __bond_option_active_slave_get()
700 struct slave *slave = rcu_dereference(bond->curr_active_slave); in bond_option_active_slave_get_rcu() local
702 return __bond_option_active_slave_get(bond, slave); in bond_option_active_slave_get_rcu()
742 struct slave *old_active = rtnl_dereference(bond->curr_active_slave); in bond_option_active_slave_set()
743 struct slave *new_active = bond_slave_get_rtnl(slave_dev); in bond_option_active_slave_set()
912 struct slave *slave; in _bond_options_arp_ip_target_set() local
915 bond_for_each_slave(bond, slave, iter) in _bond_options_arp_ip_target_set()
916 slave->target_last_arp_rx[slot] = last_rx; in _bond_options_arp_ip_target_set()
960 struct slave *slave; in bond_option_arp_ip_target_rem() local
[all …]
Dbond_netlink.c38 struct slave *slave = bond_slave_get_rtnl(slave_dev); in bond_fill_slave_info() local
40 if (nla_put_u8(skb, IFLA_BOND_SLAVE_STATE, bond_slave_state(slave))) in bond_fill_slave_info()
43 if (nla_put_u8(skb, IFLA_BOND_SLAVE_MII_STATUS, slave->link)) in bond_fill_slave_info()
47 slave->link_failure_count)) in bond_fill_slave_info()
51 slave_dev->addr_len, slave->perm_hwaddr)) in bond_fill_slave_info()
54 if (nla_put_u16(skb, IFLA_BOND_SLAVE_QUEUE_ID, slave->queue_id)) in bond_fill_slave_info()
57 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info()
60 agg = SLAVE_AD_INFO(slave)->port.aggregator; in bond_fill_slave_info()
434 const struct net_device *slave; in bond_option_active_slave_get_ifindex() local
438 slave = bond_option_active_slave_get_rcu(bond); in bond_option_active_slave_get_ifindex()
[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()
428 struct slave *primary; in bonding_show_primary()
609 struct slave *slave; in bonding_show_queue_id() local
615 bond_for_each_slave(bond, slave, iter) { in bonding_show_queue_id()
624 slave->dev->name, slave->queue_id); in bonding_show_queue_id()
/linux-4.1.27/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.c588 .slave = &am43xx_l4_hs_hwmod,
595 .slave = &am33xx_l4_wkup_hwmod,
602 .slave = &am43xx_wkup_m3_hwmod,
609 .slave = &am33xx_pruss_hwmod,
616 .slave = &am33xx_smartreflex0_hwmod,
623 .slave = &am33xx_smartreflex1_hwmod,
630 .slave = &am43xx_control_hwmod,
637 .slave = &am33xx_i2c1_hwmod,
644 .slave = &am43xx_gpio0_hwmod,
651 .slave = &am43xx_adc_tsc_hwmod,
[all …]
Domap_hwmod_7xx_data.c2327 .slave = &dra7xx_l3_instr_hwmod,
2335 .slave = &dra7xx_l3_main_1_hwmod,
2343 .slave = &dra7xx_l3_main_1_hwmod,
2351 .slave = &dra7xx_l3_main_2_hwmod,
2359 .slave = &dra7xx_l3_main_2_hwmod,
2367 .slave = &dra7xx_l4_cfg_hwmod,
2375 .slave = &dra7xx_l4_per1_hwmod,
2383 .slave = &dra7xx_l4_per2_hwmod,
2391 .slave = &dra7xx_l4_per3_hwmod,
2399 .slave = &dra7xx_l4_wkup_hwmod,
[all …]
Domap_hwmod_44xx_data.c2119 .slave = &omap44xx_mmu_ipu_hwmod,
2166 .slave = &omap44xx_mmu_dsp_hwmod,
3156 .slave = &omap44xx_dmm_hwmod,
3164 .slave = &omap44xx_dmm_hwmod,
3172 .slave = &omap44xx_l3_instr_hwmod,
3180 .slave = &omap44xx_l3_instr_hwmod,
3188 .slave = &omap44xx_l3_instr_hwmod,
3196 .slave = &omap44xx_l3_main_1_hwmod,
3204 .slave = &omap44xx_l3_main_1_hwmod,
3212 .slave = &omap44xx_l3_main_1_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.c2039 .slave = &omap54xx_ocp2scp3_hwmod,
2096 .slave = &omap54xx_sata_hwmod,
2108 .slave = &omap54xx_dmm_hwmod,
2116 .slave = &omap54xx_l3_instr_hwmod,
2124 .slave = &omap54xx_l3_main_1_hwmod,
2132 .slave = &omap54xx_l3_main_1_hwmod,
2140 .slave = &omap54xx_mmu_dsp_hwmod,
2148 .slave = &omap54xx_l3_main_1_hwmod,
2156 .slave = &omap54xx_l3_main_2_hwmod,
2164 .slave = &omap54xx_l3_main_2_hwmod,
[all …]
Domap_hwmod_81xx_data.c143 .slave = &dm816x_l4_ls_hwmod,
150 .slave = &dm816x_l4_hs_hwmod,
171 .slave = &dm816x_alwon_l3_slow_hwmod,
178 .slave = &dm816x_alwon_l3_med_hwmod,
216 .slave = &dm816x_uart1_hwmod,
237 .slave = &dm816x_uart2_hwmod,
258 .slave = &dm816x_uart3_hwmod,
295 .slave = &dm816x_wd_timer_hwmod,
332 .slave = &dm81xx_i2c1_hwmod,
363 .slave = &dm816x_i2c2_hwmod,
[all …]
Domap_hwmod_33xx_data.c347 .slave = &am33xx_emif_hwmod,
356 .slave = &am33xx_l4_hs_hwmod,
364 .slave = &am33xx_l4_wkup_hwmod,
372 .slave = &am33xx_wkup_m3_hwmod,
380 .slave = &am33xx_pruss_hwmod,
397 .slave = &am33xx_debugss_hwmod,
406 .slave = &am33xx_smartreflex0_hwmod,
414 .slave = &am33xx_smartreflex1_hwmod,
422 .slave = &am33xx_control_hwmod,
430 .slave = &am33xx_i2c1_hwmod,
[all …]
Domap_hwmod_3xxx_data.c2191 .slave = &omap3xxx_l4_core_hwmod,
2198 .slave = &omap3xxx_l4_per_hwmod,
2214 .slave = &omap3xxx_l3_main_hwmod,
2231 .slave = &omap3xxx_debugss_hwmod,
2239 .slave = &omap3xxx_l3_main_hwmod,
2245 .slave = &omap3xxx_l3_main_hwmod,
2258 .slave = &omap3xxx_l3_main_hwmod,
2266 .slave = &omap3xxx_l3_main_hwmod,
2274 .slave = &omap3xxx_l3_main_hwmod,
2282 .slave = &omap3xxx_l4_wkup_hwmod,
[all …]
/linux-4.1.27/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.1.27/drivers/gpu/drm/armada/
Darmada_slave.c23 struct drm_encoder_slave *slave = to_encoder_slave(enc); in armada_drm_slave_get_modes() local
25 count = slave->slave_funcs->get_modes(enc, conn); in armada_drm_slave_get_modes()
33 struct drm_encoder_slave *slave = to_encoder_slave(enc); in armada_drm_slave_destroy() local
36 if (slave->slave_funcs) in armada_drm_slave_destroy()
37 slave->slave_funcs->destroy(enc); in armada_drm_slave_destroy()
41 drm_encoder_cleanup(&slave->base); in armada_drm_slave_destroy()
42 kfree(slave); in armada_drm_slave_destroy()
70 struct drm_encoder_slave *slave; in armada_drm_conn_slave_create() local
80 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in armada_drm_conn_slave_create()
81 if (!slave) in armada_drm_conn_slave_create()
[all …]
Darmada_output.c99 struct drm_encoder_slave *slave = to_encoder_slave(encoder); in armada_drm_slave_encoder_mode_valid() local
101 valid = slave->slave_funcs->mode_valid(encoder, mode); in armada_drm_slave_encoder_mode_valid()
113 struct drm_encoder_slave *slave = to_encoder_slave(encoder); in armada_drm_slave_encoder_set_property() local
115 rc = slave->slave_funcs->set_property(encoder, conn, property, in armada_drm_slave_encoder_set_property()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c295 static void rem_slave_vlans(struct mlx4_dev *dev, int slave);
296 static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave, in mlx4_grant_resource() argument
307 if (slave > dev->persist->num_vfs) in mlx4_grant_resource()
313 (dev->persist->num_vfs + 1) + slave] : in mlx4_grant_resource()
314 res_alloc->allocated[slave]; in mlx4_grant_resource()
319 guaranteed = res_alloc->guaranteed[slave]; in mlx4_grant_resource()
321 if (allocated + count > res_alloc->quota[slave]) { in mlx4_grant_resource()
323 slave, port, resource_str(res_type), count, in mlx4_grant_resource()
324 allocated, res_alloc->quota[slave]); in mlx4_grant_resource()
344 slave, port, resource_str(res_type), free, in mlx4_grant_resource()
[all …]
Dcmd.c134 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave,
799 int slave, u64 slave_addr, in mlx4_ACCESS_MEM() argument
806 (slave & ~0x7f) | (size & 0xff)) { in mlx4_ACCESS_MEM()
808 slave_addr, master_addr, slave, size); in mlx4_ACCESS_MEM()
813 in_param = (u64) slave | slave_addr; in mlx4_ACCESS_MEM()
817 out_param = (u64) slave | slave_addr; in mlx4_ACCESS_MEM()
877 static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave, in mlx4_MAD_IFC_wrapper() argument
923 pidx = priv->virt2phys_pkey[slave][port - 1][vidx]; in mlx4_MAD_IFC_wrapper()
937 if (!err && slave != mlx4_master_func_num(dev)) { in mlx4_MAD_IFC_wrapper()
940 *state = (*state & 0xf0) | vf_port_state(dev, port, slave); in mlx4_MAD_IFC_wrapper()
[all …]
Dmlx4.h200 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
202 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
636 int slave; member
951 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
956 int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave,
961 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
966 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
971 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
976 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
981 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()
162 if (mlx4_GEN_EQE(dev, slave, eqe)) in mlx4_gen_slave_eqe()
164 slave); in mlx4_gen_slave_eqe()
171 static void slave_event(struct mlx4_dev *dev, u8 slave, struct mlx4_eqe *eqe) in slave_event() argument
183 slave); in slave_event()
189 s_eqe->slave_id = slave; in slave_event()
200 static void mlx4_slave_event(struct mlx4_dev *dev, int slave, in mlx4_slave_event() argument
205 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.c191 int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave) in mlx4_QUERY_FUNC() argument
213 in_modifier = slave; in mlx4_QUERY_FUNC()
246 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_FUNC_CAP_wrapper() argument
313 mlx4_get_active_ports(dev, slave); in mlx4_QUERY_FUNC_CAP_wrapper()
315 dev, slave, vhcr->in_modifier); in mlx4_QUERY_FUNC_CAP_wrapper()
327 proxy_qp = dev->phys_caps.base_proxy_sqpn + 8 * slave + port - 1; in mlx4_QUERY_FUNC_CAP_wrapper()
332 if (mlx4_vf_smi_enabled(dev, slave, port) && in mlx4_QUERY_FUNC_CAP_wrapper()
341 size = dev->phys_caps.base_tunnel_sqpn + 8 * slave + port - 1; in mlx4_QUERY_FUNC_CAP_wrapper()
356 mlx4_get_active_ports(dev, slave); in mlx4_QUERY_FUNC_CAP_wrapper()
376 size = priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
[all …]
Dfw.h235 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave,
240 int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave);
/linux-4.1.27/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 …]
/linux-4.1.27/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.1.27/drivers/net/ethernet/ti/
Dnetcp_ethss.c689 struct gbe_slave *slave; member
1482 #define for_each_sec_slave(slave, priv) \ argument
1483 list_for_each_entry((slave), &(priv)->secondary_slaves, slave_list)
1661 if (!gbe_intf->slave) in keystone_get_settings()
1666 cmd->port = gbe_intf->slave->phy_port_t; in keystone_get_settings()
1686 if (!gbe_intf->slave) in keystone_set_settings()
1689 if (cmd->port != gbe_intf->slave->phy_port_t) { in keystone_set_settings()
1706 gbe_intf->slave->phy_port_t = cmd->port; in keystone_set_settings()
1726 static void gbe_set_slave_mac(struct gbe_slave *slave, in gbe_set_slave_mac() argument
1731 writel(mac_hi(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_hi)); in gbe_set_slave_mac()
[all …]
Dcpsw-phy-sel.c39 phy_interface_t phy_mode, int slave);
44 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() argument
70 mask = GMII_SEL_MODE_MASK << (slave * 2) | BIT(slave + 6); in cpsw_gmii_sel_am3352()
71 mode <<= slave * 2; in cpsw_gmii_sel_am3352()
74 if (slave == 0) in cpsw_gmii_sel_am3352()
87 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_dra7xx() argument
113 switch (slave) { in cpsw_gmii_sel_dra7xx()
143 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) in cpsw_phy_sel() argument
157 priv->cpsw_phy_sel(priv, phy_mode, slave); in cpsw_phy_sel()
Dcpsw.c367 static inline u32 slave_read(struct cpsw_slave *slave, u32 offset) in slave_read() argument
369 return __raw_readl(slave->regs + offset); in slave_read()
372 static inline void slave_write(struct cpsw_slave *slave, u32 val, u32 offset) in slave_write() argument
374 __raw_writel(val, slave->regs + offset); in slave_write()
501 struct cpsw_slave *slave; \
507 slave = (priv)->slaves; \
509 (func)(slave++, ##arg); \
534 struct cpsw_slave *slave = priv->slaves + \
537 slave->slave_num); \
540 ALE_VLAN, slave->port_vlan, 0); \
[all …]
Dcpsw-common.c25 int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave, in cpsw_am33xx_cm_get_macid() argument
39 regmap_read(syscon, AM33XX_CTRL_MAC_LO_REG(offset, slave), in cpsw_am33xx_cm_get_macid()
41 regmap_read(syscon, AM33XX_CTRL_MAC_HI_REG(offset, slave), in cpsw_am33xx_cm_get_macid()
Dcpsw.h43 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave);
44 int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave,
/linux-4.1.27/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.1.27/arch/powerpc/platforms/powermac/
Dpic.c301 struct device_node *slave = NULL; in pmac_pic_probe_oldstyle() local
317 slave = of_find_node_by_name(NULL, "pci106b,7"); in pmac_pic_probe_oldstyle()
318 if (slave) in pmac_pic_probe_oldstyle()
327 slave = of_find_node_by_name(master, "mac-io"); in pmac_pic_probe_oldstyle()
332 BUG_ON(slave == NULL); in pmac_pic_probe_oldstyle()
334 master = slave; in pmac_pic_probe_oldstyle()
335 slave = tmp; in pmac_pic_probe_oldstyle()
339 if (slave) in pmac_pic_probe_oldstyle()
369 if (slave && !of_address_to_resource(slave, 0, &r)) { in pmac_pic_probe_oldstyle()
377 pmac_irq_cascade = irq_of_parse_and_map(slave, 0); in pmac_pic_probe_oldstyle()
[all …]
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dmad.c313 int i, ix, slave, err; in __propagate_pkey_ev() local
316 for (slave = 0; slave < dev->dev->caps.sqp_demux; slave++) { in __propagate_pkey_ev()
317 if (slave == mlx4_master_func_num(dev->dev)) in __propagate_pkey_ev()
319 if (!mlx4_is_slave_active(dev->dev, slave)) in __propagate_pkey_ev()
328 if (dev->pkeys.virt2phys_pkey[slave][port_num - 1] in __propagate_pkey_ev()
330 err = mlx4_gen_pkey_eqe(dev->dev, slave, port_num); in __propagate_pkey_ev()
333 slave, port_num, ix, err); in __propagate_pkey_ev()
391 static int mlx4_ib_demux_sa_handler(struct ib_device *ibdev, int port, int slave, in mlx4_ib_demux_sa_handler() argument
399 ret = mlx4_ib_mcg_demux_handler(ibdev, port, slave, sa_mad); in mlx4_ib_demux_sa_handler()
420 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.c224 static int send_mad_to_slave(int slave, struct mlx4_ib_demux_ctx *ctx, in send_mad_to_slave() argument
245 return mlx4_ib_send_to_slave(dev, slave, ctx->port, IB_QPT_GSI, &wc, NULL, mad); in send_mad_to_slave()
314 static int send_reply_to_slave(int slave, struct mcast_group *group, in send_reply_to_slave() argument
341 sa_data->scope_join_state |= (group->func[slave].join_state & 0x0f); in send_reply_to_slave()
344 ret = send_mad_to_slave(slave, group->demux, (struct ib_mad *)&mad); in send_reply_to_slave()
491 static int join_group(struct mcast_group *group, int slave, u8 join_mask) in join_group() argument
497 join_state = join_mask & (~group->func[slave].join_state); in join_group()
499 group->func[slave].join_state |= join_state; in join_group()
500 if (group->func[slave].state != MCAST_MEMBER && join_state) { in join_group()
501 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.h381 int slave; member
411 int slave; member
553 int slave; member
743 void clean_vf_mcast(struct mlx4_ib_demux_ctx *ctx, int slave);
749 int mlx4_ib_mcg_multiplex_handler(struct ib_device *ibdev, int port, int slave,
751 int mlx4_ib_mcg_demux_handler(struct ib_device *ibdev, int port, int slave,
762 int mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port,
766 int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port,
773 int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave,
801 void mlx4_ib_slave_alias_guid_event(struct mlx4_ib_dev *dev, int slave,
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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 …]
Dvexpress-v2p-ca15_a7.dts142 cci_control1: slave-if@4000 {
148 cci_control2: slave-if@5000 {
370 slave-mode;
384 slave-mode;
419 slave-mode;
449 slave-mode;
457 slave-mode;
465 slave-mode;
475 slave-mode;
483 slave-mode;
Dspear1310-evb.dts363 pl022,slave-tx-disable;
396 pl022,slave-tx-disable;
412 pl022,slave-tx-disable;
Dexynos5250-arndale.dts162 samsung,i2c-slave-addr = <0x66>;
458 samsung,i2c-slave-addr = <0x50>;
492 samsung,i2c-slave-addr = <0x38>;
504 samsung,i2c-slave-addr = <0x38>;
/linux-4.1.27/sound/firewire/fireworks/
Dfireworks_stream.c209 struct amdtp_stream *master, *slave; in snd_efw_stream_start_duplex() local
227 slave = &efw->rx_stream; in snd_efw_stream_start_duplex()
231 slave = &efw->tx_stream; in snd_efw_stream_start_duplex()
244 if (amdtp_streaming_error(slave)) in snd_efw_stream_start_duplex()
245 stop_stream(efw, slave); in snd_efw_stream_start_duplex()
256 stop_stream(efw, slave); in snd_efw_stream_start_duplex()
262 amdtp_stream_set_sync(sync_mode, master, slave); in snd_efw_stream_start_duplex()
278 if (atomic_read(slave_substreams) > 0 && !amdtp_stream_running(slave)) { in snd_efw_stream_start_duplex()
279 err = start_stream(efw, slave, rate); in snd_efw_stream_start_duplex()
293 struct amdtp_stream *master, *slave; in snd_efw_stream_stop_duplex() local
[all …]
/linux-4.1.27/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.1.27/Documentation/i2c/
Dslave-interface1 Linux I2C slave interface description
6 Linux can also be an I2C slave in case I2C controllers have slave support.
8 actual functionality. An example for this is the slave-eeprom driver, which
10 like a regular EEPROM, the Linux I2C slave can access the content via sysfs and
18 e.g. sysfs I2C slave events I/O registers
33 I2C slave backends behave like standard I2C clients. So, you can instantiate
35 instantiating the slave-eeprom driver from userspace at address 0x64 on bus 1:
37 # echo slave-24c02 0x64 > /sys/bus/i2c/devices/i2c-1/new_device
46 I2C slave events
53 'client' describes the i2c slave device. 'event' is one of the special event
[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.1.27/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.1.27/drivers/dma/
Dk3dma.c96 struct dma_device slave; member
108 #define to_k3_dma(dmadev) container_of(dmadev, struct k3_dma_dev, slave)
217 dev_warn(d->slave.dev, "DMA ERR\n"); in k3_dma_int_handler()
269 list_for_each_entry_safe(c, cn, &d->slave.channels, vc.chan.device_node) { in k3_dma_tasklet()
275 dev_dbg(d->slave.dev, "pchan %u: free\n", p->idx); in k3_dma_tasklet()
298 dev_dbg(d->slave.dev, "pchan %u: alloc vchan %p\n", pch, &c->vc); in k3_dma_tasklet()
393 dev_dbg(d->slave.dev, "vchan %p: issued\n", &c->vc); in k3_dma_issue_pending()
398 dev_dbg(d->slave.dev, "vchan %p: nothing to issue\n", &c->vc); in k3_dma_issue_pending()
576 dev_dbg(d->slave.dev, "vchan %p: terminate all\n", &c->vc); in k3_dma_terminate_all()
605 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 …]
DTODO1 TODO for slave dma
3 1. Move remaining drivers to use new slave interface
4 2. Remove old slave pointer machansim
Damba-pl08x.c241 bool slave; member
262 struct dma_device slave; member
701 list_for_each_entry(p, &pl08x->slave.channels, vc.chan.device_node) in pl08x_phy_free()
1673 if (!plchan->slave) in pl08x_config()
1873 chan->slave = true; in pl08x_dma_slave_init()
1884 struct dma_device *dmadev, unsigned int channels, bool slave) in pl08x_dma_init_virtual_channels() argument
1908 if (slave) { in pl08x_dma_init_virtual_channels()
1927 i, slave ? "slave" : "memcpy"); in pl08x_dma_init_virtual_channels()
1999 list_for_each_entry(chan, &pl08x->slave.channels, vc.chan.device_node) { in pl08x_debugfs_show()
2075 dma_cap_set(DMA_SLAVE, pl08x->slave.cap_mask); in pl08x_probe()
[all …]
/linux-4.1.27/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.
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_vtg.c94 struct sti_vtg *slave; member
118 if (vtg->slave) in vtg_reset()
119 vtg_reset(vtg->slave); in vtg_reset()
129 if (vtg->slave) in vtg_set_mode()
130 vtg_set_mode(vtg->slave, VTG_TYPE_SLAVE_BY_EXT0, mode); in vtg_set_mode()
215 if (vtg->slave) in sti_vtg_set_config()
216 vtg_enable_irq(vtg->slave); in sti_vtg_set_config()
264 if (vtg->slave) in sti_vtg_register_client()
265 return sti_vtg_register_client(vtg->slave, nb, crtc_id); in sti_vtg_register_client()
274 if (vtg->slave) in sti_vtg_unregister_client()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/drm/tilcdc/
Dslave.txt1 Device-Tree bindings for tilcdc DRM encoder slave output driver
4 - compatible: value should be "ti,tilcdc,slave".
5 - i2c: the phandle for the i2c device the encoder slave is connected to
14 compatible = "ti,tilcdc,slave";
/linux-4.1.27/drivers/i2c/busses/
Di2c-rcar.c121 struct i2c_client *slave; member
385 i2c_slave_event(priv->slave, I2C_SLAVE_READ_REQUESTED, &value); in rcar_i2c_slave_irq()
389 i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_REQUESTED, &value); in rcar_i2c_slave_irq()
399 i2c_slave_event(priv->slave, I2C_SLAVE_STOP, &value); in rcar_i2c_slave_irq()
409 ret = i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_RECEIVED, &value); in rcar_i2c_slave_irq()
417 i2c_slave_event(priv->slave, I2C_SLAVE_READ_PROCESSED, &value); in rcar_i2c_slave_irq()
567 static int rcar_reg_slave(struct i2c_client *slave) in rcar_reg_slave() argument
569 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter); in rcar_reg_slave()
571 if (priv->slave) in rcar_reg_slave()
574 if (slave->flags & I2C_CLIENT_TEN) in rcar_reg_slave()
[all …]
Di2c-pxa.c139 struct i2c_slave_client *slave; member
494 if (i2c->slave != NULL) in i2c_pxa_slave_txempty()
495 ret = i2c->slave->read(i2c->slave->data); in i2c_pxa_slave_txempty()
506 if (i2c->slave != NULL) in i2c_pxa_slave_rxfull()
507 i2c->slave->write(i2c->slave->data, byte); in i2c_pxa_slave_rxfull()
520 if (i2c->slave != NULL) in i2c_pxa_slave_start()
521 i2c->slave->event(i2c->slave->data, in i2c_pxa_slave_start()
554 if (i2c->slave != NULL) in i2c_pxa_slave_stop()
555 i2c->slave->event(i2c->slave->data, I2C_SLAVE_EVENT_STOP); in i2c_pxa_slave_stop()
1214 i2c->slave = plat->slave; in i2c_pxa_probe()
/linux-4.1.27/drivers/spi/
Dspi-pxa2xx-pci.c133 struct dw_dma_slave *slave = c->tx_param; in pxa2xx_spi_pci_probe() local
135 slave->dma_dev = &dma_dev->dev; in pxa2xx_spi_pci_probe()
136 slave->src_master = 1; in pxa2xx_spi_pci_probe()
137 slave->dst_master = 0; in pxa2xx_spi_pci_probe()
141 struct dw_dma_slave *slave = c->rx_param; in pxa2xx_spi_pci_probe() local
143 slave->dma_dev = &dma_dev->dev; in pxa2xx_spi_pci_probe()
144 slave->src_master = 1; in pxa2xx_spi_pci_probe()
145 slave->dst_master = 0; in pxa2xx_spi_pci_probe()
/linux-4.1.27/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.1.27/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.1.27/sound/firewire/dice/
Ddice-stream.c191 struct amdtp_stream *master, *slave; in snd_dice_stream_start_duplex() local
204 slave = &dice->rx_stream; in snd_dice_stream_start_duplex()
207 slave = &dice->tx_stream; in snd_dice_stream_start_duplex()
211 if (amdtp_streaming_error(master) || amdtp_streaming_error(slave)) in snd_dice_stream_start_duplex()
227 stop_stream(dice, slave); in snd_dice_stream_start_duplex()
230 amdtp_stream_set_sync(sync_mode, master, slave); in snd_dice_stream_start_duplex()
246 err = start_stream(dice, slave, rate); in snd_dice_stream_start_duplex()
258 stop_stream(dice, slave); in snd_dice_stream_start_duplex()
264 !amdtp_stream_wait_callback(slave, CALLBACK_TIMEOUT)) { in snd_dice_stream_start_duplex()
267 stop_stream(dice, slave); in snd_dice_stream_start_duplex()
/linux-4.1.27/Documentation/devicetree/bindings/nvec/
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.1.27/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.1.27/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.1.27/sound/firewire/bebob/
Dbebob_stream.c496 struct amdtp_stream *master, *slave; in snd_bebob_stream_start_duplex() local
531 slave = &bebob->rx_stream; in snd_bebob_stream_start_duplex()
535 slave = &bebob->tx_stream; in snd_bebob_stream_start_duplex()
555 if (amdtp_streaming_error(slave)) in snd_bebob_stream_start_duplex()
556 amdtp_stream_stop(slave); in snd_bebob_stream_start_duplex()
558 !amdtp_stream_running(master) && !amdtp_stream_running(slave)) in snd_bebob_stream_start_duplex()
572 amdtp_stream_stop(slave); in snd_bebob_stream_start_duplex()
578 amdtp_stream_set_sync(sync_mode, master, slave); in snd_bebob_stream_start_duplex()
637 if (atomic_read(slave_substreams) > 0 && !amdtp_stream_running(slave)) { in snd_bebob_stream_start_duplex()
638 err = start_stream(bebob, slave, rate); in snd_bebob_stream_start_duplex()
[all …]
/linux-4.1.27/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 …]
Dprovider.txt28 That wouldn't work well in the real world, since slave devices might
74 The one last thing is that usually, slave devices won't issue DRQ by
75 default, and you have to enable this in your slave device driver first
124 - should contain a bitmask of the supported slave directions
192 - The devices only supports slave transfers, and as such isn't
313 - This call is mandatory for slave operations only. This should NOT be
315 If a driver support both, it should use this call for slave
338 ignored in the slave transfers case.
352 - Useless in the case of the slave API
/linux-4.1.27/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 - Manually register a slave device
88 w1_master_remove - Manually remove a slave device
98 set to zero, then manually add the slave device serial numbers by
105 w1 slave sysfs interface
112 rw - (optional) created for slave devices which do not have
/linux-4.1.27/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.1.27/drivers/parport/
Dshare.c377 struct parport *slave = port->slaves[i-1]; in parport_announce_port() local
378 if (slave) in parport_announce_port()
379 list_add_tail(&slave->list, &portlist); in parport_announce_port()
386 struct parport *slave = port->slaves[i-1]; in parport_announce_port() local
387 if (slave) in parport_announce_port()
388 attach_driver_chain(slave); in parport_announce_port()
425 struct parport *slave = port->slaves[i-1]; in parport_remove_port() local
426 if (!slave) in parport_remove_port()
428 detach_driver_chain(slave); in parport_remove_port()
429 parport_daisy_fini(slave); in parport_remove_port()
[all …]
/linux-4.1.27/sound/firewire/
Damdtp.h264 struct amdtp_stream *slave) in amdtp_stream_set_sync() argument
268 slave->flags |= CIP_SYNC_TO_DEVICE; in amdtp_stream_set_sync()
269 master->sync_slave = slave; in amdtp_stream_set_sync()
272 slave->flags &= ~CIP_SYNC_TO_DEVICE; in amdtp_stream_set_sync()
276 slave->sync_slave = NULL; in amdtp_stream_set_sync()
/linux-4.1.27/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.1.27/Documentation/devicetree/bindings/net/
Dcpsw.txt18 - active_slave : Specifies the slave to use for time stamping,
32 - phy_id : Specifies slave phy id
63 cpsw_emac0: slave@0 {
69 cpsw_emac1: slave@1 {
92 cpsw_emac0: slave@0 {
98 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
169 slave-port = <0>;
173 slave-port = <1>;
178 secondary-slave-ports {
180 slave-port = <2>;
184 slave-port = <3>;
/linux-4.1.27/drivers/staging/vme/devices/
Dvme_user.c458 struct vme_slave slave; in vme_user_ioctl() local
532 memset(&slave, 0, sizeof(struct vme_slave)); in vme_user_ioctl()
538 &slave.enable, &slave.vme_addr, in vme_user_ioctl()
539 &slave.size, &pci_addr, &slave.aspace, in vme_user_ioctl()
540 &slave.cycle); in vme_user_ioctl()
542 copied = copy_to_user(argp, &slave, in vme_user_ioctl()
553 copied = copy_from_user(&slave, argp, sizeof(slave)); in vme_user_ioctl()
563 slave.enable, slave.vme_addr, slave.size, in vme_user_ioctl()
564 image[minor].pci_buf, slave.aspace, in vme_user_ioctl()
565 slave.cycle); in vme_user_ioctl()
/linux-4.1.27/drivers/gpu/drm/tegra/
Ddsi.c83 struct tegra_dsi *slave; member
393 if (dsi->slave) in tegra_dsi_set_phy_timing()
394 tegra_dsi_set_phy_timing(dsi->slave, period, timing); in tegra_dsi_set_phy_timing()
471 if (dsi->slave) in tegra_dsi_enable()
472 tegra_dsi_enable(dsi->slave); in tegra_dsi_enable()
480 if (dsi->slave) in tegra_dsi_get_lanes()
481 return dsi->lanes + dsi->slave->lanes; in tegra_dsi_get_lanes()
573 if (dsi->master || dsi->slave) { in tegra_dsi_configure()
593 if (dsi->master || dsi->slave) { in tegra_dsi_configure()
614 if (dsi->slave) { in tegra_dsi_configure()
[all …]
/linux-4.1.27/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.1.27/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.h48 bool (*filter)(struct dma_chan *chan, void *slave);
57 bool (*filter)(struct dma_chan *chan, void *slave);
Dspear_spdif.h25 bool (*filter)(struct dma_chan *chan, void *slave);
/linux-4.1.27/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.c2634 struct ata_link *slave = ap->slave_link; in ata_eh_reset() local
2636 struct ata_eh_context *sehc = slave ? &slave->eh_context : NULL; in ata_eh_reset()
2712 if (slave) { in ata_eh_reset()
2723 if (slave && (rc == 0 || rc == -ENOENT)) { in ata_eh_reset()
2726 tmp = prereset(slave, deadline); in ata_eh_reset()
2791 if (slave && reset == hardreset) { in ata_eh_reset()
2795 ata_link_info(slave, "hard resetting link\n"); in ata_eh_reset()
2797 ata_eh_about_to_do(slave, NULL, ATA_EH_RESET); in ata_eh_reset()
2798 tmp = ata_do_reset(slave, reset, classes, deadline, in ata_eh_reset()
2806 failed_link = slave; in ata_eh_reset()
[all …]
/linux-4.1.27/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.txt166 Specifies the new active slave for modes that support it
169 string. If a name is given, the slave and its link must be up in order
170 to be selected as the new active slave. If an empty string is
171 specified, the current active slave is cleared, and a new active
172 slave is selected automatically.
178 active slave, or the empty string if there is no active slave or
179 the current mode does not use an active slave.
202 - A slave is added to or removed from the bond
204 - Any slave's link state changes
206 - Any slave's 802.3ad association state changes
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/arm/
Dcoresight.txt68 slave-mode;
82 slave-mode;
118 slave-mode;
148 slave-mode;
156 slave-mode;
164 slave-mode;
Dcci.txt11 space and multiple sets of interface control registers, one per slave
60 Node name must be "slave-if".
194 cci_control0: slave-if@1000 {
200 cci_control1: slave-if@4000 {
206 cci_control2: slave-if@5000 {
225 CCI slave interface @0x000000002c091000 is connected to dma controller dma0.
226 CCI slave interface @0x000000002c094000 is connected to CPUs {CPU0, CPU1};
227 CCI slave interface @0x000000002c095000 is connected to CPUs {CPU2, CPU3};
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/Documentation/spi/
Dpxa2xx10 - Per slave device (chip) configuration.
35 slave device (chips) attached to this SPI master.
86 Typically each SPI slave (chip) is defined in the arch/.../mach-*/board-*.c
90 Each slave device attached to the PXA must provide slave specific configuration
93 will uses the configuration whenever the driver communicates with the slave
125 slave device. Please note that the PXA2xx SSP 1 does not support trailing byte
134 function for asserting/deasserting a slave device chip select. If the field is
150 /* Chip Select control for the CS8415A SPI slave device */
159 /* Chip Select control for the CS8405A SPI slave device */
/linux-4.1.27/include/linux/mlx4/
Ddevice.h987 static inline int mlx4_is_guest_proxy(struct mlx4_dev *dev, int slave, u32 qpn) in mlx4_is_guest_proxy() argument
989 int guest_proxy_base = dev->phys_caps.base_proxy_sqpn + slave * 8; in mlx4_is_guest_proxy()
1364 void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port,
1369 int mlx4_is_slave_active(struct mlx4_dev *dev, int slave);
1370 int mlx4_gen_pkey_eqe(struct mlx4_dev *dev, int slave, u8 port);
1371 int mlx4_gen_guid_change_eqe(struct mlx4_dev *dev, int slave, u8 port);
1373 int mlx4_gen_port_state_change_eqe(struct mlx4_dev *dev, int slave, u8 port, u8 port_subtype_change…
1374 enum slave_port_state mlx4_get_slave_port_state(struct mlx4_dev *dev, int slave, u8 port);
1375 int set_and_calc_slave_port_state(struct mlx4_dev *dev, int slave, u8 port, int event, enum slave_p…
1377 void mlx4_put_slave_node_guid(struct mlx4_dev *dev, int slave, __be64 guid);
[all …]
/linux-4.1.27/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.1.27/drivers/gpu/drm/nouveau/
Dnouveau_encoder.h71 struct drm_encoder_slave *slave = to_encoder_slave(enc); in nouveau_encoder() local
73 return container_of(slave, struct nouveau_encoder, base); in nouveau_encoder()
/linux-4.1.27/Documentation/devicetree/bindings/mfd/
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
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
15 - reg : Specifies the i2c slave address of PMIC block.
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
Datmel-matrix.txt4 behavior (master/slave priorities, undefined burst length type, ...)
Dlp3943.txt5 - reg: I2C slave address. From 0x60 to 0x67.
Dbrcm,bcm59056.txt7 - reg: I2C slave address
Drn5t618.txt10 - reg: the I2C slave address of the device
/linux-4.1.27/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.1.27/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.1.27/Documentation/devicetree/bindings/spi/
Dspi-davinci.txt32 Optional properties for slave devices:
33 SPI slave nodes can contain the following properties.
56 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
Dspi-samsung.txt43 SPI Controller specific data in SPI slave nodes:
45 - The spi slave nodes should provide the following information which is required
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/Documentation/devicetree/bindings/gpu/
Dst,stih4xx.txt9 - st,slave: phandle on a slave vtg
123 vtg_main_slave: sti-vtg-main-slave@fe85A800 {
132 st,slave = <&vtg_main_slave>;
135 vtg_aux_slave: sti-vtg-aux-slave@fd348400 {
144 st,slave = <&vtg_aux_slave>;
/linux-4.1.27/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.1.27/include/linux/platform_data/
Ddma-rcar-audmapp.h30 struct audmapp_slave_config *slave; member
/linux-4.1.27/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.1.27/include/linux/hsi/
Dssi_protocol.h34 struct hsi_client *ssip_slave_get_master(struct hsi_client *slave);
/linux-4.1.27/net/dsa/
DMakefile3 dsa_core-y += dsa.o slave.o
/linux-4.1.27/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.1.27/arch/arm64/boot/dts/sprd/
Dsc9836.dtsi55 slave-mode;
82 slave-mode;
/linux-4.1.27/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.1.27/sound/usb/usx2y/
Dus122l.h15 struct file *slave; member
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dpci-ioda.c405 struct pnv_ioda_pe *slave; in pnv_ioda_freeze_pe() local
431 list_for_each_entry(slave, &pe->slaves, list) { in pnv_ioda_freeze_pe()
433 slave->pe_number, in pnv_ioda_freeze_pe()
438 slave->pe_number); in pnv_ioda_freeze_pe()
444 struct pnv_ioda_pe *pe, *slave; in pnv_ioda_unfreeze_pe() local
467 list_for_each_entry(slave, &pe->slaves, list) { in pnv_ioda_unfreeze_pe()
469 slave->pe_number, in pnv_ioda_unfreeze_pe()
474 slave->pe_number); in pnv_ioda_unfreeze_pe()
484 struct pnv_ioda_pe *slave, *pe; in pnv_ioda_get_pe_state() local
519 list_for_each_entry(slave, &pe->slaves, list) { in pnv_ioda_get_pe_state()
[all …]
/linux-4.1.27/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.1.27/include/linux/i2c/
Dpxa-i2c.h66 struct i2c_slave_client *slave; member
/linux-4.1.27/Documentation/devicetree/bindings/input/touchscreen/
Dsx8654.txt5 - reg: i2c slave address
Degalax-ts.txt5 - reg: i2c slave address
/linux-4.1.27/sound/soc/intel/common/
Dsst-firmware.c220 struct dma_slave_config slave; in sst_dsp_dma_get_channel() local
234 memset(&slave, 0, sizeof(slave)); in sst_dsp_dma_get_channel()
235 slave.direction = DMA_MEM_TO_DEV; in sst_dsp_dma_get_channel()
236 slave.src_addr_width = in sst_dsp_dma_get_channel()
237 slave.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sst_dsp_dma_get_channel()
238 slave.src_maxburst = slave.dst_maxburst = SST_DSP_DMA_MAX_BURST; in sst_dsp_dma_get_channel()
240 ret = dmaengine_slave_config(dma->ch, &slave); in sst_dsp_dma_get_channel()
/linux-4.1.27/Documentation/devicetree/bindings/arm/hisilicon/
Dhisilicon.txt24 - smp-offset : offset in sysctrl for notifying slave cpu booting
52 HIP01 SoC family, such as slave core boot, and also some same
/linux-4.1.27/Documentation/devicetree/bindings/rtc/
Dnxp,rtc-2123.txt5 - reg: should be the SPI slave chipselect address
/linux-4.1.27/Documentation/devicetree/bindings/input/
Dti,drv2667.txt5 - reg - I2C slave address
/linux-4.1.27/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.1.27/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.1.27/Documentation/devicetree/bindings/regulator/
Dda9210.txt6 - reg: the i2c slave address of the regulator. It should be 0x68.
Dmax8973-regulator.txt6 - reg: the i2c slave address of the regulator. It should be 0x1b.
Dmax1586-regulator.txt5 - reg: I2C slave address, usually 0x14
D88pm860x.txt5 - reg: I2C slave address
Dmax8660.txt5 - reg: I2C slave address, usually 0x34
Dtps51632-regulator.txt5 - reg: I2C slave address
D88pm800.txt5 - reg: I2C slave address
/linux-4.1.27/Documentation/devicetree/bindings/sound/
Dtpa6130a2.txt12 - reg - <int> - I2C slave address
Dda9055.txt14 - reg: Specifies the I2C slave address
Dtas2552.txt8 - reg - I2C slave address
Dtlv320aic32x4.txt7 - reg: I2C slave address
Dmxs-saif.txt14 the slave SAIF.
/linux-4.1.27/Documentation/devicetree/bindings/iio/light/
Dgp2ap020a00f.txt9 - reg : the I2C slave address of the light sensor
/linux-4.1.27/drivers/dma/sh/
Dshdma-r8a73a4.c64 .slave = dma_slaves,
/linux-4.1.27/Documentation/i2c/busses/
Di2c-diolan-u2c16 a computer to I2C slave devices using a USB interface. It also supports
/linux-4.1.27/Documentation/devicetree/bindings/video/backlight/
Dtps65217-backlight.txt8 - reg: I2C slave address
/linux-4.1.27/Documentation/
Dsmsc_ece1099.txt32 - SMbus slave Interface
41 SMBus interface to the host. The device is a slave-only SMBus device.
/linux-4.1.27/Documentation/devicetree/bindings/leds/
Dleds-lp8860.txt11 - reg - I2C slave address
/linux-4.1.27/Documentation/acpi/
Denumeration.txt4 SpiSerialBus, GpioIo and GpioInt) which can be used in enumerating slave
67 like to be accessible to slave devices via generic API call
143 This is extracted automatically by the SPI core and the slave devices are
146 Here is what the ACPI namespace for a SPI slave might look like:
226 any slave devices behind the controller device once the adapter is
/linux-4.1.27/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.1.27/Documentation/devicetree/bindings/iio/proximity/
Das3935.txt7 slave node bindings.
/linux-4.1.27/Documentation/devicetree/bindings/extcon/
Dextcon-sm5502.txt11 - reg: Specifies the I2C slave address of the MUIC block. It should be 0x25
/linux-4.1.27/Documentation/devicetree/bindings/iommu/
Drockchip,iommu.txt5 its master device. Each slave device is bound to a single master device, and
/linux-4.1.27/Documentation/devicetree/bindings/media/i2c/
Dov2659.txt10 - reg: I2C slave address
/linux-4.1.27/Documentation/devicetree/bindings/hwmon/
Dltc2978.txt11 - reg: I2C slave address
/linux-4.1.27/drivers/media/platform/davinci/
DKconfig42 video frame capture from slave decoders.
58 video frame capture from a slave decoders
/linux-4.1.27/Documentation/devicetree/bindings/gpio/
Dgpio-sx150x.txt10 - reg: The I2C slave address for this device.
/linux-4.1.27/Documentation/devicetree/bindings/power_supply/
Dlp8727_charger.txt5 - reg: I2C slave address 27h

123