[go: nahoru, domu]

Searched defs:new_state (Results 1 - 25 of 93) sorted by relevance

1234

/drivers/pcmcia/
H A Dsa1111_lubbock.c158 struct pcmcia_state new_state; local
172 sa1111_pcmcia_socket_state(skt, &new_state);
174 if (!new_state.vs_3v && !new_state.vs_Xv) {
/drivers/usb/common/
H A Dusb-otg-fsm.c124 static int otg_set_state(struct otg_fsm *fsm, enum usb_otg_state new_state) argument
127 if (fsm->otg->phy->state == new_state)
129 VDBG("Set state: %s\n", usb_otg_state_string(new_state));
131 switch (new_state) {
239 fsm->otg->phy->state = new_state;
/drivers/net/wireless/iwlwifi/mvm/
H A Dsf.c174 enum iwl_sf_state new_state)
177 .state = cpu_to_le32(new_state),
190 if (new_state != SF_FULL_ON && mvm->sf_state == new_state)
193 switch (new_state) {
217 new_state);
224 mvm->sf_state = new_state;
237 enum iwl_sf_state new_state; local
266 new_state = SF_INIT_OFF;
273 new_state
173 iwl_mvm_sf_config(struct iwl_mvm *mvm, u8 sta_id, enum iwl_sf_state new_state) argument
[all...]
/drivers/cpufreq/
H A Dspeedstep-smi.c150 unsigned int result = 0, command, new_state, dummy; local
178 : "=b" (new_state), "=D" (result),
184 } while ((new_state != state) && (retry <= SMI_TRIES));
189 if (new_state == state)
192 (speedstep_freqs[new_state].frequency / 1000),
196 "failed with new_state %u and result %u\n",
197 state, new_state, result);
/drivers/gpu/drm/nouveau/core/subdev/therm/
H A Dnv84.c101 enum nouveau_therm_thrs_state prev_state, new_state; local
110 new_state = NOUVEAU_THERM_THRS_HIGHER;
113 new_state = NOUVEAU_THERM_THRS_LOWER;
118 if (new_state == NOUVEAU_THERM_THRS_LOWER && cur > thrs->temp)
119 new_state = NOUVEAU_THERM_THRS_HIGHER;
120 else if (new_state == NOUVEAU_THERM_THRS_HIGHER &&
122 new_state = NOUVEAU_THERM_THRS_LOWER;
123 nouveau_therm_sensor_set_threshold_state(therm, thrs_name, new_state);
126 if (prev_state < new_state)
128 else if (prev_state > new_state)
[all...]
H A Dtemp.c152 enum nouveau_therm_thrs_state prev_state, new_state; local
159 new_state = NOUVEAU_THERM_THRS_HIGHER;
163 new_state = NOUVEAU_THERM_THRS_LOWER;
167 nouveau_therm_sensor_set_threshold_state(therm, thrs_name, new_state);
/drivers/net/ethernet/mellanox/mlx5/core/
H A Dqp.c187 enum mlx5_qp_state new_state,
232 if (cur_state >= MLX5_QP_NUM_STATE || new_state >= MLX5_QP_NUM_STATE ||
233 !optab[cur_state][new_state])
237 op = optab[cur_state][new_state];
186 mlx5_core_qp_modify(struct mlx5_core_dev *dev, enum mlx5_qp_state cur_state, enum mlx5_qp_state new_state, struct mlx5_modify_qp_mbox_in *in, int sqd_event, struct mlx5_core_qp *qp) argument
/drivers/scsi/aic7xxx/
H A Daic79xx_osm_pci.c394 ahd_power_state_change(struct ahd_softc *ahd, ahd_power_state new_state) argument
396 pci_set_power_state(ahd->dev_softc, new_state);
/drivers/xen/xen-pciback/
H A Dconf_space_capability.c118 pci_power_t new_state, old_state; local
125 new_state = (pci_power_t)(new_value & PCI_PM_CTRL_STATE_MASK);
136 dev_dbg(&dev->dev, "set power state to %x\n", new_state);
137 err = pci_set_power_state(dev, new_state);
/drivers/input/keyboard/
H A Dcros_ec_keyb.c112 int new_state; local
133 new_state = kb_state[col] & (1 << row);
135 if (new_state != old_state) {
138 row, col, new_state);
141 new_state);
308 uint8_t new_state[ckdev->cols]; local
319 ret = cros_ec_keyb_get_state(ckdev, new_state);
321 memcpy(old_state, new_state, sizeof(old_state));
322 ret = cros_ec_keyb_get_state(ckdev, new_state);
323 if (0 == memcmp(old_state, new_state, sizeo
[all...]
H A Dmatrix_keypad.c123 uint32_t new_state[MATRIX_MAX_COLS]; local
129 memset(new_state, 0, sizeof(new_state));
137 new_state[col] |=
146 bits_changed = keypad->last_key_state[col] ^ new_state[col];
158 new_state[col] & (1 << row));
163 memcpy(keypad->last_key_state, new_state, sizeof(new_state));
H A Domap-keypad.c134 unsigned char new_state[8], changed, key_down = 0; local
139 omap_kp_scan_keypad(omap_kp_data, new_state);
143 changed = new_state[col] ^ keypad_state[col];
144 key_down |= new_state[col];
154 row, (new_state[col] & (1 << row)) ?
173 new_state[col] & (1 << row));
178 memcpy(keypad_state, new_state, sizeof(keypad_state));
H A Domap4-keypad.c135 u32 *new_state = (u32 *) key_state; local
137 *new_state = kbd_readl(keypad_data, OMAP4_KBD_FULLCODE31_0);
138 *(new_state + 1) = kbd_readl(keypad_data, OMAP4_KBD_FULLCODE63_32);
/drivers/isdn/gigaset/
H A Dinterface.c408 unsigned int control_state, new_state; local
437 new_state = control_state | TIOCM_DTR;
440 new_state |= TIOCM_RTS;
443 (new_state & TIOCM_RTS) ? " only" : "/RTS");
444 cs->ops->set_modem_ctrl(cs, control_state, new_state);
445 control_state = new_state;
453 new_state = control_state & ~(TIOCM_DTR | TIOCM_RTS);
454 cs->ops->set_modem_ctrl(cs, control_state, new_state);
455 control_state = new_state;
H A Dser-gigaset.c430 unsigned new_state)
437 set = new_state & ~old_state;
438 clear = old_state & ~new_state;
429 gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, unsigned new_state) argument
/drivers/net/wireless/prism54/
H A Dislpci_dev.c922 islpci_set_state(islpci_private *priv, islpci_state_t new_state) argument
931 switch (new_state) {
935 priv->state = new_state;
948 priv->state = new_state;
953 priv->ndev->name, old_state, new_state, priv->state_off);
/drivers/scsi/lpfc/
H A Dlpfc_vport.c50 enum fc_vport_state new_state)
59 /* fc_vport_set_state(fc_vport, new_state); */
60 if (new_state != FC_VPORT_INITIALIZING)
62 fc_vport->vport_state = new_state;
66 switch (new_state) {
49 lpfc_vport_set_state(struct lpfc_vport *vport, enum fc_vport_state new_state) argument
/drivers/block/rsxx/
H A Dcore.c423 unsigned int new_state)
430 rsxx_card_state_to_str(new_state));
432 card->state = new_state;
438 switch (new_state) {
422 card_state_change(struct rsxx_cardinfo *card, unsigned int new_state) argument
/drivers/extcon/
H A Dextcon-class.c77 * check_mutually_exclusive - Check if new_state violates mutually_exclusive
80 * @new_state: new cable attach status for @edev
85 static int check_mutually_exclusive(struct extcon_dev *edev, u32 new_state) argument
94 u32 correspondants = new_state & edev->mutually_exclusive[i];
/drivers/infiniband/hw/amso1100/
H A Dc2_qp.c122 int new_state = to_ib_state(c2_state); local
128 to_ib_state_str(new_state));
129 qp->state = new_state;
/drivers/infiniband/hw/ipath/
H A Dipath_qp.c455 enum ib_qp_state cur_state, new_state; local
463 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
465 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type,
510 switch (new_state) {
532 qp->state = new_state;
538 qp->state = new_state;
546 qp->state = new_state;
/drivers/infiniband/hw/mlx4/
H A Dalias_GUID.c137 enum slave_port_state new_state; local
175 new_state = set_and_calc_slave_port_state(dev->dev, slave_id, port_num,
180 slave_id, port_num, prev_state, new_state, gen_event);
/drivers/infiniband/hw/usnic/
H A Dusnic_ib_qp_grp.c380 enum ib_qp_state new_state,
395 switch (new_state) {
508 qp_grp->state = new_state;
512 usnic_ib_qp_grp_state_to_string(new_state));
517 usnic_ib_qp_grp_state_to_string(new_state));
379 usnic_ib_qp_grp_modify(struct usnic_ib_qp_grp *qp_grp, enum ib_qp_state new_state, void *data) argument
/drivers/net/ethernet/mellanox/mlx4/
H A Dqp.c84 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state,
136 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE ||
137 !op[cur_state][new_state])
140 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) {
159 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) {
174 new_state == MLX4_QP_STATE_RST ? 2 : 0,
175 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native);
181 new_state == MLX4_QP_STATE_ERR) {
186 } else if (new_state == MLX4_QP_STATE_RTR) {
199 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state,
83 __mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, struct mlx4_qp_context *context, enum mlx4_qp_optpar optpar, int sqd_event, struct mlx4_qp *qp, int native) argument
198 mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, struct mlx4_qp_context *context, enum mlx4_qp_optpar optpar, int sqd_event, struct mlx4_qp *qp) argument
[all...]
/drivers/net/wireless/brcm80211/brcmfmac/
H A Ddhd_bus.h197 enum brcmf_bus_state new_state)
203 brcmf_dbg(TRACE, "%d -> %d\n", bus->state, new_state);
204 bus->state = new_state;
196 brcmf_bus_change_state(struct brcmf_bus *bus, enum brcmf_bus_state new_state) argument

Completed in 595 milliseconds

1234