Lines Matching full:pb
249 char *tb, *tb_end, *pb, *pb_limit, *pb_eop = NULL; in br_pkt_phy_tx_prepare() local
255 pb = br->phy_buf; in br_pkt_phy_tx_prepare()
256 pb_limit = pb + ARRAY_SIZE(br->phy_buf); in br_pkt_phy_tx_prepare()
258 *pb++ = PKT_SOP; in br_pkt_phy_tx_prepare()
264 *pb++ = PKT_CHANNEL; in br_pkt_phy_tx_prepare()
265 *pb++ = 0x0; in br_pkt_phy_tx_prepare()
267 for (; pb < pb_limit && tb < tb_end; pb++) { in br_pkt_phy_tx_prepare()
269 *pb = *tb++ ^ 0x20; in br_pkt_phy_tx_prepare()
276 *pb = PKT_EOP; in br_pkt_phy_tx_prepare()
277 pb_eop = pb; in br_pkt_phy_tx_prepare()
290 *pb = PKT_ESC; in br_pkt_phy_tx_prepare()
295 *pb = PHY_ESC; in br_pkt_phy_tx_prepare()
299 *pb = *tb++; in br_pkt_phy_tx_prepare()
309 br->phy_len = pb - br->phy_buf; in br_pkt_phy_tx_prepare()
323 move_size = pb - pb_eop; in br_pkt_phy_tx_prepare()
364 char *pb, *tb_limit, *tb = NULL; in br_do_rx_and_pkt_phy_parse() local
369 pb = br->phy_buf; in br_do_rx_and_pkt_phy_parse()
372 ret = spi_read(br->spi, pb, br->word_len); in br_do_rx_and_pkt_phy_parse()
378 br->swap_words(pb, br->word_len); in br_do_rx_and_pkt_phy_parse()
383 if (!tb && pb[i] != PKT_SOP) in br_do_rx_and_pkt_phy_parse()
387 if (pb[i] == PHY_IDLE) in br_do_rx_and_pkt_phy_parse()
397 if (pb[i] != 0) { in br_do_rx_and_pkt_phy_parse()
407 switch (pb[i]) { in br_do_rx_and_pkt_phy_parse()
446 *tb++ = pb[i] ^ 0x20; in br_do_rx_and_pkt_phy_parse()
449 *tb++ = pb[i]; in br_do_rx_and_pkt_phy_parse()