Home
last modified time | relevance | path

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

12

/drivers/mtd/
Dmtdpart.c304 struct mtd_part *slave, *next; in del_mtd_partitions() local
306 list_for_each_entry_safe(slave, next, &mtd_partitions, list) in del_mtd_partitions()
307 if (slave->master == master) { in del_mtd_partitions()
308 list_del(&slave->list); in del_mtd_partitions()
309 if (slave->registered) in del_mtd_partitions()
310 del_mtd_device(&slave->mtd); in del_mtd_partitions()
311 kfree(slave); in del_mtd_partitions()
322 struct mtd_part *slave; in add_one_partition() local
325 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in add_one_partition()
326 if (!slave) { in add_one_partition()
[all …]
/drivers/net/bonding/
Dbonding.h53 #define SLAVE_IS_OK(slave) \ argument
54 (((slave)->dev->flags & IFF_UP) && \
55 netif_running((slave)->dev) && \
56 ((slave)->link == BOND_LINK_UP) && \
57 ((slave)->state == BOND_STATE_ACTIVE))
153 struct slave { struct
155 struct slave *next; argument
156 struct slave *prev; argument
189 struct slave *first_slave;
190 struct slave *curr_active_slave;
[all …]
Dbond_alb.c113 static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[]);
153 static inline void tlb_init_slave(struct slave *slave) in tlb_init_slave() argument
155 SLAVE_TLB_INFO(slave).load = 0; in tlb_init_slave()
156 SLAVE_TLB_INFO(slave).head = TLB_NULL_INDEX; in tlb_init_slave()
160 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, int save_load) in tlb_clear_slave() argument
172 index = SLAVE_TLB_INFO(slave).head; in tlb_clear_slave()
180 tlb_init_slave(slave); in tlb_clear_slave()
229 static struct slave *tlb_get_least_loaded_slave(struct bonding *bond) in tlb_get_least_loaded_slave()
231 struct slave *slave, *least_loaded; in tlb_get_least_loaded_slave() local
236 bond_for_each_slave(bond, slave, i) { in tlb_get_least_loaded_slave()
[all …]
Dbond_main.c332 struct slave *slave; in bond_has_challenged_slaves() local
335 bond_for_each_slave(bond, slave, i) { in bond_has_challenged_slaves()
336 if (slave->dev->features & NETIF_F_VLAN_CHALLENGED) { in bond_has_challenged_slaves()
338 slave->dev->name); in bond_has_challenged_slaves()
449 struct slave *slave; in bond_vlan_rx_register() local
454 bond_for_each_slave(bond, slave, i) { in bond_vlan_rx_register()
455 struct net_device *slave_dev = slave->dev; in bond_vlan_rx_register()
473 struct slave *slave; in bond_vlan_rx_add_vid() local
476 bond_for_each_slave(bond, slave, i) { in bond_vlan_rx_add_vid()
477 struct net_device *slave_dev = slave->dev; in bond_vlan_rx_add_vid()
[all …]
Dbond_3ad.c130 if (port->slave == NULL) { in __get_bond_by_port()
134 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()
169 return &(SLAVE_AD_INFO(slave->next).port); in __get_next_port()
200 struct slave *slave = aggregator->slave; in __get_next_agg() local
201 struct bonding *bond = bond_get_bond_by_slave(slave); in __get_next_agg()
204 if ((bond == NULL) || (slave->next == bond->first_slave)) { in __get_next_agg()
208 return &(SLAVE_AD_INFO(slave->next).aggregator); in __get_next_agg()
229 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
35 struct slave *tx_slave; /* A pointer to slave used for transmiting
70 struct slave *slave; /* the slave assigned to this client */ member
102 struct slave *next_rx_slave;/* next slave to be assigned
123 int bond_alb_init_slave(struct bonding *bond, struct slave *slave);
124 void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave);
125 void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link);
126 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
273 int bond_3ad_bind_slave(struct slave *slave);
274 void bond_3ad_unbind_slave(struct slave *slave);
277 void bond_3ad_adapter_speed_changed(struct slave *slave);
278 void bond_3ad_adapter_duplex_changed(struct slave *slave);
279 void bond_3ad_handle_link_change(struct slave *slave, char link);
Dbond_sysfs.c173 int bond_create_slave_symlinks(struct net_device *master, struct net_device *slave) in bond_create_slave_symlinks() argument
179 ret = sysfs_create_link(&(slave->dev.kobj), &(master->dev.kobj), in bond_create_slave_symlinks()
184 sprintf(linkname,"slave_%s",slave->name); in bond_create_slave_symlinks()
185 ret = sysfs_create_link(&(master->dev.kobj), &(slave->dev.kobj), in bond_create_slave_symlinks()
191 void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave) in bond_destroy_slave_symlinks() argument
195 sysfs_remove_link(&(slave->dev.kobj), "master"); in bond_destroy_slave_symlinks()
196 sprintf(linkname,"slave_%s",slave->name); in bond_destroy_slave_symlinks()
207 struct slave *slave; in bonding_show_slaves() local
212 bond_for_each_slave(bond, slave, i) { in bonding_show_slaves()
220 res += sprintf(buf + res, "%s ", slave->dev->name); in bonding_show_slaves()
[all …]
Dbond_ipv6.c106 struct slave *slave = bond->curr_active_slave; in bond_send_unsolicited_na() local
112 slave ? slave->dev->name : "NULL"); in bond_send_unsolicited_na()
114 if (!slave || !bond->send_unsol_na || in bond_send_unsolicited_na()
115 test_bit(__LINK_STATE_LINKWATCH_PENDING, &slave->dev->state)) in bond_send_unsolicited_na()
129 bond_na_send(slave->dev, &bond->master_ipv6, is_router, 0); in bond_send_unsolicited_na()
133 bond_na_send(slave->dev, &vlan->vlan_ipv6, is_router, in bond_send_unsolicited_na()
/drivers/net/
Deql.c135 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave);
145 slave_t *slave = list_entry(this, slave_t, list); in eql_timer() local
147 if ((slave->dev->flags & IFF_UP) == IFF_UP) { in eql_timer()
148 slave->bytes_queued -= slave->priority_Bps; in eql_timer()
149 if (slave->bytes_queued < 0) in eql_timer()
150 slave->bytes_queued = 0; in eql_timer()
152 eql_kill_one_slave(&eql->queue, slave); in eql_timer()
217 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave) in eql_kill_one_slave() argument
219 list_del(&slave->list); in eql_kill_one_slave()
221 slave->dev->flags &= ~IFF_SLAVE; in eql_kill_one_slave()
[all …]
/drivers/net/wan/
Ddlci.c203 ret = dlp->slave->hard_start_xmit(skb, dlp->slave); in dlci_transmit()
239 flp = netdev_priv(dlp->slave); in dlci_config()
251 err = (*flp->dlci_conf)(dlp->slave, dev, get); in dlci_config()
279 strncpy(ifr->ifr_slave, dlp->slave->name, sizeof(ifr->ifr_slave)); in dlci_dev_ioctl()
302 return((*dlp->slave->change_mtu)(dlp->slave, new_mtu)); in dlci_change_mtu()
316 if (!netif_running(dlp->slave)) in dlci_open()
319 flp = netdev_priv(dlp->slave); in dlci_open()
320 err = (*flp->activate)(dlp->slave, dev); in dlci_open()
339 flp = netdev_priv(dlp->slave); in dlci_close()
340 err = (*flp->deactivate)(dlp->slave, dev); in dlci_close()
[all …]
Dsdla.c507 static int sdla_activate(struct net_device *slave, struct net_device *master) in sdla_activate() argument
512 flp = netdev_priv(slave); in sdla_activate()
523 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE)) in sdla_activate()
524 sdla_cmd(slave, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); in sdla_activate()
529 static int sdla_deactivate(struct net_device *slave, struct net_device *master) in sdla_deactivate() argument
534 flp = netdev_priv(slave); in sdla_deactivate()
545 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE)) in sdla_deactivate()
546 sdla_cmd(slave, SDLA_DEACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); in sdla_deactivate()
551 static int sdla_assoc(struct net_device *slave, struct net_device *master) in sdla_assoc() argument
559 flp = netdev_priv(slave); in sdla_assoc()
[all …]
/drivers/media/video/
Dv4l2-int-device.c48 if (s->u.slave->master) in v4l2_int_device_try_attach_all()
52 if (s->u.slave->attach_to[0] != 0 in v4l2_int_device_try_attach_all()
53 && strncmp(m->name, s->u.slave->attach_to, in v4l2_int_device_try_attach_all()
60 s->u.slave->master = m; in v4l2_int_device_try_attach_all()
62 s->u.slave->master = NULL; in v4l2_int_device_try_attach_all()
87 sort(d->u.slave->ioctls, d->u.slave->num_ioctls, in v4l2_int_device_register()
104 && d->u.slave->master != NULL) { in v4l2_int_device_unregister()
105 d->u.slave->master->u.master->detach(d); in v4l2_int_device_unregister()
106 module_put(d->u.slave->master->module); in v4l2_int_device_unregister()
107 d->u.slave->master = NULL; in v4l2_int_device_unregister()
[all …]
Dpms.c56 u8 slave; member
91 static int pms_i2c_stat(u8 slave) in pms_i2c_stat() argument
107 outb(slave, io_port); in pms_i2c_stat()
130 static int pms_i2c_write(u16 slave, u16 sub, u16 data) in pms_i2c_write() argument
138 if((i2cinfo[i].slave==slave) && in pms_i2c_write()
150 i2cinfo[i2c_count].slave=slave; in pms_i2c_write()
161 mvv_write(0x28, slave); in pms_i2c_write()
180 static int pms_i2c_read(int slave, int sub) in pms_i2c_read() argument
185 if(i2cinfo[i].slave==slave && i2cinfo[i].sub==sub) in pms_i2c_read()
192 static void pms_i2c_andor(int slave, int sub, int and, int or) in pms_i2c_andor() argument
[all …]
/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/i2c/busses/
Di2c-pxa.c92 struct i2c_slave_client *slave; member
434 if (i2c->slave != NULL) in i2c_pxa_slave_txempty()
435 ret = i2c->slave->read(i2c->slave->data); in i2c_pxa_slave_txempty()
446 if (i2c->slave != NULL) in i2c_pxa_slave_rxfull()
447 i2c->slave->write(i2c->slave->data, byte); in i2c_pxa_slave_rxfull()
460 if (i2c->slave != NULL) in i2c_pxa_slave_start()
461 i2c->slave->event(i2c->slave->data, in i2c_pxa_slave_start()
494 if (i2c->slave != NULL) in i2c_pxa_slave_stop()
495 i2c->slave->event(i2c->slave->data, I2C_SLAVE_EVENT_STOP); in i2c_pxa_slave_stop()
1042 i2c->slave = plat->slave; in i2c_pxa_probe()
/drivers/ata/
Dpata_pcmcia.c71 struct ata_device *slave = &link->device[1]; in pcmcia_set_mode() local
73 if (!ata_dev_enabled(master) || !ata_dev_enabled(slave)) in pcmcia_set_mode()
76 if (memcmp(master->id + ATA_ID_FW_REV, slave->id + ATA_ID_FW_REV, in pcmcia_set_mode()
80 if (memcmp(master->id + ATA_ID_SERNO, slave->id + ATA_ID_SERNO, in pcmcia_set_mode()
82 ata_dev_printk(slave, KERN_WARNING, "is a ghost device, ignoring.\n"); in pcmcia_set_mode()
83 ata_dev_disable(slave); in pcmcia_set_mode()
Dlibata-eh.c2313 struct ata_link *slave = ap->slave_link; in ata_eh_reset() local
2315 struct ata_eh_context *sehc = &slave->eh_context; in ata_eh_reset()
2388 if (slave) { in ata_eh_reset()
2399 if (slave && (rc == 0 || rc == -ENOENT)) { in ata_eh_reset()
2402 tmp = prereset(slave, deadline); in ata_eh_reset()
2467 if (slave && reset == hardreset) { in ata_eh_reset()
2471 ata_link_printk(slave, KERN_INFO, in ata_eh_reset()
2474 ata_eh_about_to_do(slave, NULL, ATA_EH_RESET); in ata_eh_reset()
2475 tmp = ata_do_reset(slave, reset, classes, deadline, in ata_eh_reset()
2483 failed_link = slave; in ata_eh_reset()
[all …]
Dpata_cs5520.c73 int slave = adev->devno; in cs5520_set_timings() local
83 pci_write_config_byte(pdev, 0x64 + 4*ap->port_no + slave, in cs5520_set_timings()
87 pci_write_config_byte(pdev, 0x66 + 4*ap->port_no + slave, in cs5520_set_timings()
/drivers/ide/
Dide-acpi.c45 struct ide_acpi_drive_link slave; member
591 struct ide_acpi_drive_link *slave = &hwif->acpidata->slave; in ide_acpi_push_timing() local
616 in_params[2].buffer.pointer = (u8 *)&slave->idbuff; in ide_acpi_push_timing()
709 hwif->devices[1]->acpidata = &hwif->acpidata->slave; in ide_acpi_port_init_devices()
/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()
/drivers/w1/slaves/
DKconfig54 tristate "BQ27000 slave support"
58 bq27000 slave support.
/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.c836 if (lp->slave != NULL) { in isdn_net_hangup()
841 lp->slave->name, d->name); in isdn_net_hangup()
842 isdn_net_hangup(lp->slave); in isdn_net_hangup()
1087 if (lp->slave) { in isdn_net_xmit()
2301 while (mlp->slave) { in isdn_net_find_icall()
2924 if (lp->slave) { in isdn_net_getcfg()
2925 if (strlen(lp->slave->name) > 8) in isdn_net_getcfg()
2926 strcpy(cfg->slave, "too-long"); in isdn_net_getcfg()
2928 strcpy(cfg->slave, lp->slave->name); in isdn_net_getcfg()
2930 cfg->slave[0] = '\0'; in isdn_net_getcfg()
[all …]
/drivers/serial/
Dserial_cs.c96 int slave; member
296 if (!info->slave) in serial_remove()
499 info->slave = 1; in simple_config()
503 info->slave = 1; in simple_config()
505 if (info->slave) { in simple_config()

12