Home
last modified time | relevance | path

Searched refs:slave_state (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/i2c/busses/
H A Di2c-aspeed.c167 enum aspeed_i2c_slave_state slave_state; member
267 bus->slave_state = ASPEED_I2C_SLAVE_STOP; in aspeed_i2c_slave_irq()
271 bus->slave_state == ASPEED_I2C_SLAVE_READ_PROCESSED) { in aspeed_i2c_slave_irq()
273 bus->slave_state = ASPEED_I2C_SLAVE_STOP; in aspeed_i2c_slave_irq()
277 if (bus->slave_state == ASPEED_I2C_SLAVE_STOP) { in aspeed_i2c_slave_irq()
279 bus->slave_state = ASPEED_I2C_SLAVE_INACTIVE; in aspeed_i2c_slave_irq()
288 bus->slave_state = ASPEED_I2C_SLAVE_START; in aspeed_i2c_slave_irq()
295 if (bus->slave_state == ASPEED_I2C_SLAVE_INACTIVE) in aspeed_i2c_slave_irq()
306 if (bus->slave_state == ASPEED_I2C_SLAVE_START) { in aspeed_i2c_slave_irq()
308 bus->slave_state = in aspeed_i2c_slave_irq()
[all …]
H A Di2c-cadence.c221 enum cdns_i2c_slave_state slave_state; member
326 id->slave_state = CDNS_I2C_SLAVE_STATE_IDLE; in cdns_i2c_set_mode()
365 if (id->slave_state == CDNS_I2C_SLAVE_STATE_IDLE) { in cdns_i2c_slave_rcv_data()
366 id->slave_state = CDNS_I2C_SLAVE_STATE_RECV; in cdns_i2c_slave_rcv_data()
385 if (id->slave_state == CDNS_I2C_SLAVE_STATE_IDLE) { in cdns_i2c_slave_send_data()
386 id->slave_state = CDNS_I2C_SLAVE_STATE_SEND; in cdns_i2c_slave_send_data()
427 id->slave_state = CDNS_I2C_SLAVE_STATE_IDLE; in cdns_i2c_slave_isr()
437 id->slave_state = CDNS_I2C_SLAVE_STATE_IDLE; in cdns_i2c_slave_isr()
445 id->slave_state = CDNS_I2C_SLAVE_STATE_IDLE; in cdns_i2c_slave_isr()
1108 if (id->slave_state != CDNS_I2C_SLAVE_STATE_IDLE) { in cdns_i2c_master_xfer()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Deq.c230 !priv->mfunc.master.slave_state[slave].active) in mlx4_slave_event()
258 struct mlx4_slave_state *s_slave = &priv->mfunc.master.slave_state[slave]; in mlx4_gen_pkey_eqe()
314 struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state; in mlx4_get_slave_port_state()
331 struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state; in mlx4_set_slave_port_state()
387 ctx = &priv->mfunc.master.slave_state[slave]; in set_and_calc_slave_port_state()
459 struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state; in mlx4_master_handle_slave_flr() local
468 if (MLX4_COMM_CMD_FLR == slave_state[i].last_cmd) { in mlx4_master_handle_slave_flr()
481 slave_state[i].last_cmd = MLX4_COMM_CMD_RESET; in mlx4_master_handle_slave_flr()
482 slave_state[i].is_slave_going_down = 0; in mlx4_master_handle_slave_flr()
756 priv->mfunc.master.slave_state[flr_slave].active = false; in mlx4_eq_int()
[all …]
H A Dfw.c293 struct mlx4_slave_state *slave_state; in mlx4_handle_vst_qinq() local
299 slave_state = &priv->mfunc.master.slave_state[slave]; in mlx4_handle_vst_qinq()
302 (!slave_state->active)) in mlx4_handle_vst_qinq()
310 if (!slave_state->vst_qinq_supported) { in mlx4_handle_vst_qinq()
453 struct mlx4_slave_state *slave_state = in mlx4_QUERY_FUNC_CAP_wrapper() local
454 &priv->mfunc.master.slave_state[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
531 slave_state->vst_qinq_supported = true; in mlx4_QUERY_FUNC_CAP_wrapper()
2266 if (priv->mfunc.master.slave_state[slave].init_port_mask & (1 << port)) in mlx4_INIT_PORT_wrapper()
2277 priv->mfunc.master.slave_state[slave].init_port_mask |= (1 << port); in mlx4_INIT_PORT_wrapper()
2287 priv->mfunc.master.slave_state[slave].init_port_mask |= (1 << port); in mlx4_INIT_PORT_wrapper()
[all …]
H A Dport.c1233 struct mlx4_slave_state *slave_st = &master->slave_state[slave]; in mlx4_en_set_port_mtu()
1254 master->slave_state[i].mtu[port]); in mlx4_en_set_port_mtu()
1265 struct mlx4_slave_state *slave_st = &master->slave_state[slave]; in mlx4_en_set_port_user_mtu()
1286 master->slave_state[i].user_mtu[port]); in mlx4_en_set_port_user_mtu()
1493 priv->mfunc.master.slave_state[slave].ib_cap_mask[port]; in mlx4_common_set_port()
1494 priv->mfunc.master.slave_state[slave].ib_cap_mask[port] = new_cap_mask; in mlx4_common_set_port()
1497 priv->mfunc.master.slave_state[i].ib_cap_mask[port]; in mlx4_common_set_port()
1515 priv->mfunc.master.slave_state[slave].ib_cap_mask[port] = in mlx4_common_set_port()
H A Dresource_tracker.c2201 struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state; in vlan_alloc_res() local
2219 slave_state[slave].old_vlan_api = true; in vlan_alloc_res()
2534 struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state; in vlan_free_res() local
2544 if (slave_state[slave].old_vlan_api) in vlan_free_res()
3342 if (!priv->mfunc.master.slave_state) in mlx4_GEN_EQE()
3348 !priv->mfunc.master.slave_state[slave].active) in mlx4_GEN_EQE()
3351 event_eq = &priv->mfunc.master.slave_state[slave].event_eq[eqe->type]; in mlx4_GEN_EQE()
H A Dmlx4.h587 struct mlx4_slave_state *slave_state; member
H A Dmain.c749 s_state = &priv->mfunc.master.slave_state[i]; in mlx4_how_many_lives_vf()
819 s_slave = &priv->mfunc.master.slave_state[slave]; in mlx4_is_slave_active()
2854 priv->mfunc.master.slave_state[i].ib_cap_mask[port] = in mlx4_setup_hca()
/linux/include/net/
H A Dbonding.h383 int slave_state, bool notify) in bond_set_slave_state() argument
385 if (slave->backup == slave_state) in bond_set_slave_state()
388 slave->backup = slave_state; in bond_set_slave_state()