Lines Matching defs:psm
127 uint16_t psm;
136 psm = L2CAP_PSM_RFCOMM;
182 case 'p': /* PSM */
183 psm = strtoul(optarg, &ep, 0);
184 if (*ep != '\0' || L2CAP_PSM_INVALID(psm))
185 errx(EXIT_FAILURE, "Invalid PSM: %s", optarg);
228 rfcomm = open_client(&laddr, &raddr, lm, psm, service);
230 rfcomm = open_server(&laddr, psm, channel, lm, service);
336 open_client(bdaddr_t *laddr, bdaddr_t *raddr, int lm, uintmax_t psm,
361 if (service_search(laddr, raddr, s->class, &psm,
372 if (L2CAP_PSM_INVALID(psm))
373 errx(EXIT_FAILURE, "Invalid PSM 0x%04"PRIxMAX, psm);
396 sa.bt_psm = psm;
402 bt_ntoa(raddr, NULL), psm, channel);
408 open_server(bdaddr_t *laddr, uint16_t psm, uint8_t channel, int lm,
436 sa.bt_psm = psm;
441 bt_ntoa(laddr, NULL), psm, channel);
466 len = (psm == L2CAP_PSM_RFCOMM ? 0 : 3);
473 sdp_put_uint16(&rec, psm);
568 uint16_t class, uintmax_t *psm, uintmax_t *channel)
638 * interested in the L2CAP psm if provided, and the RFCOMM channel
643 * uint16 psm
657 *psm = L2CAP_PSM_RFCOMM;
660 && (sdp_get_uint(&seq, psm) || true)
695 fprintf(stderr, "Usage: %s [-d device] [-m mode] [-p psm] [-s service]"
704 "\t-p psm protocol/service multiplexer\n"