psm 64 drivers/input/serio/ps2mult.c static void ps2mult_select_port(struct ps2mult *psm, struct ps2mult_port *port) psm 66 drivers/input/serio/ps2mult.c struct serio *mx_serio = psm->mx_serio; psm 69 drivers/input/serio/ps2mult.c psm->out_port = port; psm 76 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(mx_port); psm 81 drivers/input/serio/ps2mult.c spin_lock_irqsave(&psm->lock, flags); psm 83 drivers/input/serio/ps2mult.c if (psm->out_port != port) psm 84 drivers/input/serio/ps2mult.c ps2mult_select_port(psm, port); psm 96 drivers/input/serio/ps2mult.c spin_unlock_irqrestore(&psm->lock, flags); psm 103 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio->parent); psm 107 drivers/input/serio/ps2mult.c spin_lock_irqsave(&psm->lock, flags); psm 109 drivers/input/serio/ps2mult.c spin_unlock_irqrestore(&psm->lock, flags); psm 116 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio->parent); psm 120 drivers/input/serio/ps2mult.c spin_lock_irqsave(&psm->lock, flags); psm 122 drivers/input/serio/ps2mult.c spin_unlock_irqrestore(&psm->lock, flags); psm 125 drivers/input/serio/ps2mult.c static int ps2mult_create_port(struct ps2mult *psm, int i) psm 127 drivers/input/serio/ps2mult.c struct serio *mx_serio = psm->mx_serio; psm 141 drivers/input/serio/ps2mult.c serio->parent = psm->mx_serio; psm 142 drivers/input/serio/ps2mult.c serio->port_data = &psm->ports[i]; psm 144 drivers/input/serio/ps2mult.c psm->ports[i].serio = serio; psm 149 drivers/input/serio/ps2mult.c static void ps2mult_reset(struct ps2mult *psm) psm 153 drivers/input/serio/ps2mult.c spin_lock_irqsave(&psm->lock, flags); psm 155 drivers/input/serio/ps2mult.c serio_write(psm->mx_serio, PS2MULT_SESSION_END); psm 156 drivers/input/serio/ps2mult.c serio_write(psm->mx_serio, PS2MULT_SESSION_START); psm 158 drivers/input/serio/ps2mult.c ps2mult_select_port(psm, &psm->ports[PS2MULT_KBD_PORT]); psm 160 drivers/input/serio/ps2mult.c spin_unlock_irqrestore(&psm->lock, flags); psm 165 drivers/input/serio/ps2mult.c struct ps2mult *psm; psm 172 drivers/input/serio/ps2mult.c psm = kzalloc(sizeof(*psm), GFP_KERNEL); psm 173 drivers/input/serio/ps2mult.c if (!psm) psm 176 drivers/input/serio/ps2mult.c spin_lock_init(&psm->lock); psm 177 drivers/input/serio/ps2mult.c psm->mx_serio = serio; psm 180 drivers/input/serio/ps2mult.c psm->ports[i].sel = ps2mult_controls[i]; psm 181 drivers/input/serio/ps2mult.c error = ps2mult_create_port(psm, i); psm 186 drivers/input/serio/ps2mult.c psm->in_port = psm->out_port = &psm->ports[PS2MULT_KBD_PORT]; psm 188 drivers/input/serio/ps2mult.c serio_set_drvdata(serio, psm); psm 193 drivers/input/serio/ps2mult.c ps2mult_reset(psm); psm 196 drivers/input/serio/ps2mult.c struct serio *s = psm->ports[i].serio; psm 206 drivers/input/serio/ps2mult.c kfree(psm->ports[i].serio); psm 207 drivers/input/serio/ps2mult.c kfree(psm); psm 213 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio); psm 218 drivers/input/serio/ps2mult.c kfree(psm); psm 225 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio); psm 227 drivers/input/serio/ps2mult.c ps2mult_reset(psm); psm 235 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio); psm 241 drivers/input/serio/ps2mult.c spin_lock_irqsave(&psm->lock, flags); psm 243 drivers/input/serio/ps2mult.c if (psm->escape) { psm 244 drivers/input/serio/ps2mult.c psm->escape = false; psm 245 drivers/input/serio/ps2mult.c in_port = psm->in_port; psm 254 drivers/input/serio/ps2mult.c psm->escape = true; psm 259 drivers/input/serio/ps2mult.c psm->in_port = psm->out_port; psm 272 drivers/input/serio/ps2mult.c psm->in_port = &psm->ports[PS2MULT_KBD_PORT]; psm 277 drivers/input/serio/ps2mult.c psm->in_port = &psm->ports[PS2MULT_MOUSE_PORT]; psm 281 drivers/input/serio/ps2mult.c in_port = psm->in_port; psm 288 drivers/input/serio/ps2mult.c spin_unlock_irqrestore(&psm->lock, flags); psm 220 drivers/net/wireless/ath/carl9170/cmd.c cmd->psm.state = cpu_to_le32(state); psm 238 drivers/net/wireless/ath/carl9170/fwcmd.h struct carl9170_psm psm; psm 328 drivers/net/wireless/ath/carl9170/fwcmd.h struct carl9170_psm psm; psm 81 drivers/net/wireless/ath/carl9170/rx.c ps = le32_to_cpu(rsp->psm.state); psm 598 drivers/net/wireless/intersil/p54/fwio.c struct p54_psm *psm; psm 609 drivers/net/wireless/intersil/p54/fwio.c skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*psm), psm 614 drivers/net/wireless/intersil/p54/fwio.c psm = skb_put(skb, sizeof(*psm)); psm 615 drivers/net/wireless/intersil/p54/fwio.c psm->mode = cpu_to_le16(mode); psm 616 drivers/net/wireless/intersil/p54/fwio.c psm->aid = cpu_to_le16(priv->aid); psm 617 drivers/net/wireless/intersil/p54/fwio.c for (i = 0; i < ARRAY_SIZE(psm->intervals); i++) { psm 618 drivers/net/wireless/intersil/p54/fwio.c psm->intervals[i].interval = psm 620 drivers/net/wireless/intersil/p54/fwio.c psm->intervals[i].periods = cpu_to_le16(1); psm 623 drivers/net/wireless/intersil/p54/fwio.c psm->beacon_rssi_skip_max = 200; psm 624 drivers/net/wireless/intersil/p54/fwio.c psm->rssi_delta_threshold = 0; psm 625 drivers/net/wireless/intersil/p54/fwio.c psm->nr = 1; psm 626 drivers/net/wireless/intersil/p54/fwio.c psm->exclude[0] = WLAN_EID_TIM; psm 908 drivers/net/wireless/marvell/libertas/cmd.c struct cmd_ds_802_11_ps_mode *psm = (void *)cmdnode->cmdbuf; psm 910 drivers/net/wireless/marvell/libertas/cmd.c if (psm->action == cpu_to_le16(PS_MODE_ACTION_EXIT_PS)) { psm 1306 drivers/net/wireless/marvell/libertas/cmd.c struct cmd_ds_802_11_ps_mode *psm = (void *)cmd; psm 1310 drivers/net/wireless/marvell/libertas/cmd.c psm->action); psm 1311 drivers/net/wireless/marvell/libertas/cmd.c if (psm->action != psm 127 drivers/net/wireless/ray_cs.c static int psm; psm 165 drivers/net/wireless/ray_cs.c module_param(psm, int, 0); psm 611 drivers/net/wireless/ray_cs.c if (psm) psm 542 drivers/net/wireless/rayctl.h UCHAR psm; psm 997 drivers/net/wireless/st/cw1200/wsm.c arg.psm = WSM_GET8(buf); psm 751 drivers/net/wireless/st/cw1200/wsm.h u8 psm; psm 981 drivers/net/wireless/st/cw1200/wsm.h u8 psm; /* WSM_PSM_... */ psm 866 drivers/scsi/cxlflash/vlun.c static inline u8 get_num_ports(u32 psm) psm 871 drivers/scsi/cxlflash/vlun.c return bits[psm & 0xf]; psm 295 include/net/bluetooth/bluetooth.h __le16 psm; psm 238 include/net/bluetooth/l2cap.h __le16 psm; psm 399 include/net/bluetooth/l2cap.h __le16 psm; psm 466 include/net/bluetooth/l2cap.h __le16 psm; psm 510 include/net/bluetooth/l2cap.h __le16 psm; psm 928 include/net/bluetooth/l2cap.h int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm); psm 933 include/net/bluetooth/l2cap.h int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, psm 171 net/bluetooth/l2cap_core.c static struct l2cap_chan *__l2cap_global_chan_by_addr(__le16 psm, bdaddr_t *src, psm 183 net/bluetooth/l2cap_core.c if (c->sport == psm && !bacmp(&c->src, src)) psm 189 net/bluetooth/l2cap_core.c int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm) psm 195 net/bluetooth/l2cap_core.c if (psm && __l2cap_global_chan_by_addr(psm, src, chan->src_type)) { psm 200 net/bluetooth/l2cap_core.c if (psm) { psm 201 net/bluetooth/l2cap_core.c chan->psm = psm; psm 202 net/bluetooth/l2cap_core.c chan->sport = psm; psm 221 net/bluetooth/l2cap_core.c chan->psm = cpu_to_le16(p); psm 538 net/bluetooth/l2cap_core.c __le16_to_cpu(chan->psm), chan->dcid); psm 786 net/bluetooth/l2cap_core.c if (chan->psm == cpu_to_le16(L2CAP_PSM_3DSP)) { psm 797 net/bluetooth/l2cap_core.c if (chan->psm == cpu_to_le16(L2CAP_PSM_SDP)) { psm 1184 net/bluetooth/l2cap_core.c req.psm = chan->psm; psm 1197 net/bluetooth/l2cap_core.c req.psm = chan->psm; psm 1294 net/bluetooth/l2cap_core.c req.psm = chan->psm; psm 1313 net/bluetooth/l2cap_core.c if (!chan->psm) { psm 1781 net/bluetooth/l2cap_core.c static struct l2cap_chan *l2cap_global_chan_by_psm(int state, __le16 psm, psm 1800 net/bluetooth/l2cap_core.c if (c->psm == psm) { psm 2207 net/bluetooth/l2cap_core.c __le16_to_cpu(chan->psm), len); psm 2220 net/bluetooth/l2cap_core.c put_unaligned(chan->psm, (__le16 *) skb_put(skb, L2CAP_PSMLEN_SIZE)); psm 3846 net/bluetooth/l2cap_core.c __le16 psm = req->psm; psm 3848 net/bluetooth/l2cap_core.c BT_DBG("psm 0x%2.2x scid 0x%4.4x", __le16_to_cpu(psm), scid); psm 3851 net/bluetooth/l2cap_core.c pchan = l2cap_global_chan_by_psm(BT_LISTEN, psm, &conn->hcon->src, psm 3862 net/bluetooth/l2cap_core.c if (psm != cpu_to_le16(L2CAP_PSM_SDP) && psm 3898 net/bluetooth/l2cap_core.c chan->psm = psm; psm 4546 net/bluetooth/l2cap_core.c u16 psm, scid; psm 4554 net/bluetooth/l2cap_core.c psm = le16_to_cpu(req->psm); psm 4557 net/bluetooth/l2cap_core.c BT_DBG("psm 0x%2.2x, scid 0x%4.4x, amp_id %d", psm, scid, req->amp_id); psm 5504 net/bluetooth/l2cap_core.c __le16 psm; psm 5513 net/bluetooth/l2cap_core.c psm = req->psm; psm 5520 net/bluetooth/l2cap_core.c BT_DBG("psm 0x%2.2x scid 0x%4.4x mtu %u mps %u", __le16_to_cpu(psm), psm 5524 net/bluetooth/l2cap_core.c pchan = l2cap_global_chan_by_psm(BT_LISTEN, psm, &conn->hcon->src, psm 5566 net/bluetooth/l2cap_core.c chan->psm = psm; psm 6978 net/bluetooth/l2cap_core.c static void l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, psm 6987 net/bluetooth/l2cap_core.c chan = l2cap_global_chan_by_psm(0, psm, &hcon->src, &hcon->dst, psm 7002 net/bluetooth/l2cap_core.c bt_cb(skb)->l2cap.psm = psm; psm 7020 net/bluetooth/l2cap_core.c __le16 psm; psm 7055 net/bluetooth/l2cap_core.c psm = get_unaligned((__le16 *) skb->data); psm 7057 net/bluetooth/l2cap_core.c l2cap_conless_channel(conn, psm, skb); psm 7149 net/bluetooth/l2cap_core.c static bool is_valid_psm(u16 psm, u8 dst_type) { psm 7150 net/bluetooth/l2cap_core.c if (!psm) psm 7154 net/bluetooth/l2cap_core.c return (psm <= 0x00ff); psm 7157 net/bluetooth/l2cap_core.c return ((psm & 0x0101) == 0x0001); psm 7160 net/bluetooth/l2cap_core.c int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, psm 7169 net/bluetooth/l2cap_core.c dst_type, __le16_to_cpu(psm)); psm 7177 net/bluetooth/l2cap_core.c if (!is_valid_psm(__le16_to_cpu(psm), dst_type) && !cid && psm 7183 net/bluetooth/l2cap_core.c if (chan->chan_type == L2CAP_CHAN_CONN_ORIENTED && !psm) { psm 7235 net/bluetooth/l2cap_core.c chan->psm = psm; psm 7699 net/bluetooth/l2cap_core.c c->state, __le16_to_cpu(c->psm), psm 55 net/bluetooth/l2cap_sock.c static int l2cap_validate_bredr_psm(u16 psm) psm 58 net/bluetooth/l2cap_sock.c if ((psm & 0x0101) != 0x0001) psm 62 net/bluetooth/l2cap_sock.c if (psm < L2CAP_PSM_DYN_START && !capable(CAP_NET_BIND_SERVICE)) psm 68 net/bluetooth/l2cap_sock.c static int l2cap_validate_le_psm(u16 psm) psm 71 net/bluetooth/l2cap_sock.c if (psm > L2CAP_PSM_LE_DYN_END) psm 75 net/bluetooth/l2cap_sock.c if (psm < L2CAP_PSM_LE_DYN_START && !capable(CAP_NET_BIND_SERVICE)) psm 119 net/bluetooth/l2cap_sock.c __u16 psm = __le16_to_cpu(la.l2_psm); psm 122 net/bluetooth/l2cap_sock.c err = l2cap_validate_bredr_psm(psm); psm 124 net/bluetooth/l2cap_sock.c err = l2cap_validate_le_psm(psm); psm 164 net/bluetooth/l2cap_sock.c if (chan->psm && bdaddr_type_is_le(chan->src_type)) psm 235 net/bluetooth/l2cap_sock.c if (chan->psm && bdaddr_type_is_le(chan->src_type)) psm 377 net/bluetooth/l2cap_sock.c la->l2_psm = chan->psm; psm 1509 net/bluetooth/l2cap_sock.c la->l2_psm = bt_cb(skb)->l2cap.psm;