Home
last modified time | relevance | path

Searched refs:slave (Results 1 – 25 of 95) sorted by relevance

1234

/drivers/net/bonding/
Dbonding.h46 #define SLAVE_IS_OK(slave) \ argument
47 (((slave)->dev->flags & IFF_UP) && \
48 netif_running((slave)->dev) && \
49 ((slave)->link == BOND_LINK_UP) && \
50 bond_is_active_slave(slave))
174 struct slave { struct
176 struct slave *next; argument
177 struct slave *prev; argument
216 struct slave *first_slave;
217 struct slave *curr_active_slave;
[all …]
Dbond_alb.c86 static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[]);
140 static inline void tlb_init_slave(struct slave *slave) in tlb_init_slave() argument
142 SLAVE_TLB_INFO(slave).load = 0; in tlb_init_slave()
143 SLAVE_TLB_INFO(slave).head = TLB_NULL_INDEX; in tlb_init_slave()
147 static void __tlb_clear_slave(struct bonding *bond, struct slave *slave, in __tlb_clear_slave() argument
158 index = SLAVE_TLB_INFO(slave).head; in __tlb_clear_slave()
166 tlb_init_slave(slave); in __tlb_clear_slave()
170 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument
174 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave()
216 static long long compute_gap(struct slave *slave) in compute_gap() argument
[all …]
Dbond_main.c435 struct slave *slave, *stop_at; in bond_vlan_rx_add_vid() local
438 bond_for_each_slave(bond, slave, i) { in bond_vlan_rx_add_vid()
439 res = vlan_vid_add(slave->dev, proto, vid); in bond_vlan_rx_add_vid()
455 stop_at = slave; in bond_vlan_rx_add_vid()
456 bond_for_each_slave_from_to(bond, slave, i, bond->first_slave, stop_at) in bond_vlan_rx_add_vid()
457 vlan_vid_del(slave->dev, proto, vid); in bond_vlan_rx_add_vid()
471 struct slave *slave; in bond_vlan_rx_kill_vid() local
474 bond_for_each_slave(bond, slave, i) in bond_vlan_rx_kill_vid()
475 vlan_vid_del(slave->dev, proto, vid); in bond_vlan_rx_kill_vid()
525 struct slave *slave; in bond_set_carrier() local
[all …]
Dbond_3ad.c132 if (port->slave == NULL) in __get_bond_by_port()
135 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port()
162 struct slave *slave = port->slave; in __get_next_port() local
165 if ((bond == NULL) || (slave->next == bond->first_slave)) in __get_next_port()
168 return &(SLAVE_AD_INFO(slave->next).port); in __get_next_port()
198 struct slave *slave = aggregator->slave; in __get_next_agg() local
199 struct bonding *bond = bond_get_bond_by_slave(slave); in __get_next_agg()
202 if ((bond == NULL) || (slave->next == bond->first_slave)) in __get_next_agg()
205 return &(SLAVE_AD_INFO(slave->next).aggregator); in __get_next_agg()
226 bond_set_slave_inactive_flags(port->slave); in __disable_port()
[all …]
Dbond_alb.h29 struct slave;
32 #define SLAVE_TLB_INFO(slave) ((slave)->tlb_info) argument
73 struct slave *tx_slave; /* A pointer to slave used for transmiting
128 struct slave *slave; /* the slave assigned to this client */ member
158 struct slave *next_rx_slave;/* next slave to be assigned
178 int bond_alb_init_slave(struct bonding *bond, struct slave *slave);
179 void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave);
180 void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link);
181 void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave);
Dbond_3ad.h167 struct slave;
190 struct slave *slave; // pointer to the bond slave that this aggregator belongs to member
232 struct slave *slave; // pointer to the bond slave that this port belongs to member
251 #define SLAVE_AD_INFO(slave) ((slave)->ad_info) argument
268 int bond_3ad_bind_slave(struct slave *slave);
269 void bond_3ad_unbind_slave(struct slave *slave);
272 void bond_3ad_adapter_speed_changed(struct slave *slave);
273 void bond_3ad_adapter_duplex_changed(struct slave *slave);
274 void bond_3ad_handle_link_change(struct slave *slave, char link);
280 struct slave *slave);
Dbond_procfs.c14 struct slave *slave; in bond_info_seq_start() local
24 bond_for_each_slave(bond, slave, i) { in bond_info_seq_start()
26 return slave; in bond_info_seq_start()
35 struct slave *slave = v; in bond_info_seq_next() local
41 slave = slave->next; in bond_info_seq_next()
43 return (slave == bond->first_slave) ? NULL : slave; in bond_info_seq_next()
59 struct slave *curr; in bond_info_show_master()
166 const struct slave *slave) in bond_info_show_slave() argument
170 seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); in bond_info_show_slave()
171 seq_printf(seq, "MII Status: %s\n", bond_slave_link_status(slave->link)); in bond_info_show_slave()
[all …]
Dbond_sysfs.c172 struct net_device *slave) in bond_create_slave_symlinks() argument
178 ret = sysfs_create_link(&(slave->dev.kobj), &(master->dev.kobj), in bond_create_slave_symlinks()
183 sprintf(linkname, "slave_%s", slave->name); in bond_create_slave_symlinks()
184 ret = sysfs_create_link(&(master->dev.kobj), &(slave->dev.kobj), in bond_create_slave_symlinks()
189 sysfs_remove_link(&(slave->dev.kobj), "master"); in bond_create_slave_symlinks()
196 struct net_device *slave) in bond_destroy_slave_symlinks() argument
200 sysfs_remove_link(&(slave->dev.kobj), "master"); in bond_destroy_slave_symlinks()
201 sprintf(linkname, "slave_%s", slave->name); in bond_destroy_slave_symlinks()
212 struct slave *slave; in bonding_show_slaves() local
217 bond_for_each_slave(bond, slave, i) { in bonding_show_slaves()
[all …]
/drivers/mtd/
Dmtdpart.c323 struct mtd_part *slave, *next; in del_mtd_partitions() local
327 list_for_each_entry_safe(slave, next, &mtd_partitions, list) in del_mtd_partitions()
328 if (slave->master == master) { in del_mtd_partitions()
329 ret = del_mtd_device(&slave->mtd); in del_mtd_partitions()
334 list_del(&slave->list); in del_mtd_partitions()
335 free_partition(slave); in del_mtd_partitions()
346 struct mtd_part *slave; in allocate_partition() local
350 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in allocate_partition()
352 if (!name || !slave) { in allocate_partition()
356 kfree(slave); in allocate_partition()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c323 static void update_pkey_index(struct mlx4_dev *dev, int slave, in update_pkey_index() argument
334 new_index = priv->virt2phys_pkey[slave][port - 1][orig_index]; in update_pkey_index()
339 u8 slave) in update_gid() argument
346 qp_ctx->pri_path.mgid_index = 0x80 | slave; in update_gid()
350 qp_ctx->pri_path.mgid_index = slave & 0x7F; in update_gid()
352 qp_ctx->alt_path.mgid_index = slave & 0x7F; in update_gid()
358 u8 slave) in update_vport_qp_param() argument
368 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; in update_vport_qp_param()
416 static int get_res(struct mlx4_dev *dev, int slave, u64 res_id, in get_res() argument
435 if (r->owner != slave) { in get_res()
[all …]
Dcmd.c123 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave,
605 int slave, u64 slave_addr, in mlx4_ACCESS_MEM() argument
612 (slave & ~0x7f) | (size & 0xff)) { in mlx4_ACCESS_MEM()
615 slave_addr, master_addr, slave, size); in mlx4_ACCESS_MEM()
620 in_param = (u64) slave | slave_addr; in mlx4_ACCESS_MEM()
624 out_param = (u64) slave | slave_addr; in mlx4_ACCESS_MEM()
684 static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave, in mlx4_MAD_IFC_wrapper() argument
720 pidx = priv->virt2phys_pkey[slave][port - 1][vidx]; in mlx4_MAD_IFC_wrapper()
734 if (!err && slave != mlx4_master_func_num(dev)) { in mlx4_MAD_IFC_wrapper()
737 *state = (*state & 0xf0) | vf_port_state(dev, port, slave); in mlx4_MAD_IFC_wrapper()
[all …]
Dmlx4.h205 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
207 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
842 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
847 int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave,
852 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
857 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
862 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
867 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
872 int mlx4_DMA_wrapper(struct mlx4_dev *dev, int slave,
909 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave,
[all …]
Deq.c142 u8 slave; in mlx4_gen_slave_eqe() local
147 slave = eqe->slave_id; in mlx4_gen_slave_eqe()
150 if (slave == ALL_SLAVES) { in mlx4_gen_slave_eqe()
160 if (mlx4_GEN_EQE(dev, slave, eqe)) in mlx4_gen_slave_eqe()
162 "for slave %d\n", slave); in mlx4_gen_slave_eqe()
169 static void slave_event(struct mlx4_dev *dev, u8 slave, struct mlx4_eqe *eqe) in slave_event() argument
181 "No free EQE on slave events queue\n", slave); in slave_event()
187 s_eqe->slave_id = slave; in slave_event()
198 static void mlx4_slave_event(struct mlx4_dev *dev, int slave, in mlx4_slave_event() argument
203 &priv->mfunc.master.slave_state[slave]; in mlx4_slave_event()
[all …]
/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 …]
/drivers/net/wan/
Ddlci.c201 dlp->slave->netdev_ops->ndo_start_xmit(skb, dlp->slave); in dlci_transmit()
214 flp = netdev_priv(dlp->slave); in dlci_config()
226 err = (*flp->dlci_conf)(dlp->slave, dev, get); in dlci_config()
254 strncpy(ifr->ifr_slave, dlp->slave->name, sizeof(ifr->ifr_slave)); in dlci_dev_ioctl()
275 return dev_set_mtu(dlp->slave, new_mtu); in dlci_change_mtu()
289 if (!netif_running(dlp->slave)) in dlci_open()
292 flp = netdev_priv(dlp->slave); in dlci_open()
293 err = (*flp->activate)(dlp->slave, dev); in dlci_open()
312 flp = netdev_priv(dlp->slave); in dlci_close()
313 err = (*flp->deactivate)(dlp->slave, dev); in dlci_close()
[all …]
/drivers/media/v4l2-core/
Dv4l2-int-device.c49 if (s->u.slave->master) in v4l2_int_device_try_attach_all()
53 if (s->u.slave->attach_to[0] != 0 in v4l2_int_device_try_attach_all()
54 && strncmp(m->name, s->u.slave->attach_to, in v4l2_int_device_try_attach_all()
61 s->u.slave->master = m; in v4l2_int_device_try_attach_all()
63 s->u.slave->master = NULL; in v4l2_int_device_try_attach_all()
88 sort(d->u.slave->ioctls, d->u.slave->num_ioctls, in v4l2_int_device_register()
105 && d->u.slave->master != NULL) { in v4l2_int_device_unregister()
106 d->u.slave->master->u.master->detach(d); in v4l2_int_device_unregister()
107 module_put(d->u.slave->master->module); in v4l2_int_device_unregister()
108 d->u.slave->master = NULL; in v4l2_int_device_unregister()
[all …]
/drivers/infiniband/hw/mlx4/
Dsysfs.c393 int slave; member
467 if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >= in show_port_pkey()
472 p->dev->pkeys.virt2phys_pkey[p->slave] in show_port_pkey()
486 if (p->slave == mlx4_master_func_num(p->dev->dev)) in store_port_pkey()
496 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] in store_port_pkey()
498 mlx4_sync_pkey_table(p->dev->dev, p->slave, p->port_num, in store_port_pkey()
500 err = mlx4_gen_pkey_eqe(p->dev->dev, p->slave, p->port_num); in store_port_pkey()
503 " port %d, index %d\n", p->slave, p->port_num, idx); in store_port_pkey()
512 return sprintf(buf, "%d\n", p->slave); in show_port_gid_idx()
561 static int add_port(struct mlx4_ib_dev *dev, int port_num, int slave) in add_port() argument
[all …]
Dmad.c305 int i, ix, slave, err; in __propagate_pkey_ev() local
308 for (slave = 0; slave < dev->dev->caps.sqp_demux; slave++) { in __propagate_pkey_ev()
309 if (slave == mlx4_master_func_num(dev->dev)) in __propagate_pkey_ev()
311 if (!mlx4_is_slave_active(dev->dev, slave)) in __propagate_pkey_ev()
320 if (dev->pkeys.virt2phys_pkey[slave][port_num - 1] in __propagate_pkey_ev()
322 err = mlx4_gen_pkey_eqe(dev->dev, slave, port_num); in __propagate_pkey_ev()
325 slave, port_num, ix, err); in __propagate_pkey_ev()
383 static int mlx4_ib_demux_sa_handler(struct ib_device *ibdev, int port, int slave, in mlx4_ib_demux_sa_handler() argument
391 ret = mlx4_ib_mcg_demux_handler(ibdev, port, slave, sa_mad); in mlx4_ib_demux_sa_handler()
412 static int find_slave_port_pkey_ix(struct mlx4_ib_dev *dev, int slave, in find_slave_port_pkey_ix() argument
[all …]
Dmcg.c222 static int send_mad_to_slave(int slave, struct mlx4_ib_demux_ctx *ctx, in send_mad_to_slave() argument
243 return mlx4_ib_send_to_slave(dev, slave, ctx->port, IB_QPT_GSI, &wc, NULL, mad); in send_mad_to_slave()
312 static int send_reply_to_slave(int slave, struct mcast_group *group, in send_reply_to_slave() argument
339 sa_data->scope_join_state |= (group->func[slave].join_state & 0x0f); in send_reply_to_slave()
342 ret = send_mad_to_slave(slave, group->demux, (struct ib_mad *)&mad); in send_reply_to_slave()
489 static int join_group(struct mcast_group *group, int slave, u8 join_mask) in join_group() argument
495 join_state = join_mask & (~group->func[slave].join_state); in join_group()
497 group->func[slave].join_state |= join_state; in join_group()
498 if (group->func[slave].state != MCAST_MEMBER && join_state) { in join_group()
499 group->func[slave].state = MCAST_MEMBER; in join_group()
[all …]
Dcm.c317 int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, in mlx4_ib_demux_cm_handler() argument
327 *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id); in mlx4_ib_demux_cm_handler()
328 if (*slave < 0) { in mlx4_ib_demux_cm_handler()
344 *slave = id->slave_id; in mlx4_ib_demux_cm_handler()
367 void mlx4_ib_cm_paravirt_clean(struct mlx4_ib_dev *dev, int slave) in mlx4_ib_cm_paravirt_clean() argument
379 if (slave < 0 || slave == map->slave_id) { in mlx4_ib_cm_paravirt_clean()
392 if (slave < 0) { in mlx4_ib_cm_paravirt_clean()
409 if (ent->slave_id == slave) in mlx4_ib_cm_paravirt_clean()
420 if (slave == map->slave_id) in mlx4_ib_cm_paravirt_clean()
/drivers/net/ethernet/ti/
Dcpsw.c313 static inline u32 slave_read(struct cpsw_slave *slave, u32 offset) in slave_read() argument
315 return __raw_readl(slave->regs + offset); in slave_read()
318 static inline void slave_write(struct cpsw_slave *slave, u32 val, u32 offset) in slave_write() argument
320 __raw_writel(val, slave->regs + offset); in slave_write()
359 struct cpsw_slave *slave; \
365 slave = (priv)->slaves; \
367 (func)(slave++, ##arg); \
392 struct cpsw_slave *slave = priv->slaves + \
395 slave->slave_num); \
398 ALE_VLAN, slave->port_vlan, 0); \
[all …]
/drivers/dma/
Dsa11x0-dma.c124 struct dma_device slave; member
139 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma()
160 dev_vdbg(p->dev->slave.dev, "pchan %u: txd %p[%x]: starting: DDAR:%x\n", in sa11x0_dma_start_desc()
222 dev_dbg(p->dev->slave.dev, "pchan %u: load: DCSR:%02x DBS%c:%08x DBT%c:%08x\n", in sa11x0_dma_start_sg()
269 dev_dbg(d->slave.dev, "pchan %u: irq: DCSR:%02x\n", p->num, dcsr); in sa11x0_dma_irq()
272 …dev_err(d->slave.dev, "pchan %u: error. DCSR:%02x DDAR:%08x DBSA:%08x DBTA:%08x DBSB:%08x DBTB:%08… in sa11x0_dma_irq()
339 dev_dbg(d->slave.dev, "tasklet enter\n"); in sa11x0_dma_tasklet()
341 list_for_each_entry(c, &d->slave.channels, vc.chan.device_node) { in sa11x0_dma_tasklet()
348 dev_dbg(d->slave.dev, "pchan %u: free\n", p->num); in sa11x0_dma_tasklet()
372 dev_dbg(d->slave.dev, "pchan %u: alloc vchan %p\n", pch, &c->vc); in sa11x0_dma_tasklet()
[all …]
/drivers/staging/vme/devices/
Dvme_user.c464 struct vme_slave slave; in vme_user_ioctl() local
536 memset(&slave, 0, sizeof(struct vme_slave)); in vme_user_ioctl()
542 &slave.enable, &slave.vme_addr, in vme_user_ioctl()
543 &slave.size, &pci_addr, &slave.aspace, in vme_user_ioctl()
544 &slave.cycle); in vme_user_ioctl()
546 copied = copy_to_user(argp, &slave, in vme_user_ioctl()
558 copied = copy_from_user(&slave, argp, sizeof(slave)); in vme_user_ioctl()
568 slave.enable, slave.vme_addr, slave.size, in vme_user_ioctl()
569 image[minor].pci_buf, slave.aspace, in vme_user_ioctl()
570 slave.cycle); in vme_user_ioctl()
/drivers/parport/
Dshare.c378 struct parport *slave = port->slaves[i-1]; in parport_announce_port() local
379 if (slave) in parport_announce_port()
380 list_add_tail(&slave->list, &portlist); in parport_announce_port()
387 struct parport *slave = port->slaves[i-1]; in parport_announce_port() local
388 if (slave) in parport_announce_port()
389 attach_driver_chain(slave); in parport_announce_port()
426 struct parport *slave = port->slaves[i-1]; in parport_remove_port() local
427 if (!slave) in parport_remove_port()
429 detach_driver_chain(slave); in parport_remove_port()
430 parport_daisy_fini(slave); in parport_remove_port()
[all …]
/drivers/mfd/
Dpalmas.c313 int slave; in palmas_i2c_probe() local
379 slave = PALMAS_BASE_TO_SLAVE(PALMAS_INTERRUPT_BASE); in palmas_i2c_probe()
383 regmap_write(palmas->regmap[slave], addr, reg); in palmas_i2c_probe()
385 ret = regmap_add_irq_chip(palmas->regmap[slave], palmas->irq, in palmas_i2c_probe()
391 slave = PALMAS_BASE_TO_SLAVE(PALMAS_PU_PD_OD_BASE); in palmas_i2c_probe()
397 ret = regmap_write(palmas->regmap[slave], addr, reg); in palmas_i2c_probe()
401 ret = regmap_read(palmas->regmap[slave], addr, &reg); in palmas_i2c_probe()
432 ret = regmap_write(palmas->regmap[slave], addr, reg); in palmas_i2c_probe()
436 ret = regmap_read(palmas->regmap[slave], addr, &reg); in palmas_i2c_probe()
456 slave = PALMAS_BASE_TO_SLAVE(PALMAS_PMU_CONTROL_BASE); in palmas_i2c_probe()
[all …]

1234