Lines Matching refs:r
159 int r; in nfc_hci_set_param() local
179 r = nfc_hci_send_cmd(hdev, gate, NFC_HCI_ANY_SET_PARAMETER, in nfc_hci_set_param()
184 return r; in nfc_hci_set_param()
201 int r; in nfc_hci_open_pipe() local
205 r = nfc_hci_execute_cmd(hdev, pipe, NFC_HCI_ANY_OPEN_PIPE, in nfc_hci_open_pipe()
207 if (r == 0) { in nfc_hci_open_pipe()
215 return r; in nfc_hci_open_pipe()
283 int r; in nfc_hci_disconnect_gate() local
291 r = nfc_hci_close_pipe(hdev, pipe); in nfc_hci_disconnect_gate()
292 if (r < 0) in nfc_hci_disconnect_gate()
293 return r; in nfc_hci_disconnect_gate()
296 r = nfc_hci_delete_pipe(hdev, pipe); in nfc_hci_disconnect_gate()
297 if (r < 0) in nfc_hci_disconnect_gate()
298 return r; in nfc_hci_disconnect_gate()
309 int r; in nfc_hci_disconnect_all_gates() local
313 r = nfc_hci_clear_all_pipes(hdev); in nfc_hci_disconnect_all_gates()
314 if (r < 0) in nfc_hci_disconnect_all_gates()
315 return r; in nfc_hci_disconnect_all_gates()
327 int r; in nfc_hci_connect_gate() local
348 pipe = nfc_hci_create_pipe(hdev, dest_host, dest_gate, &r); in nfc_hci_connect_gate()
350 return r; in nfc_hci_connect_gate()
356 r = nfc_hci_open_pipe(hdev, pipe); in nfc_hci_connect_gate()
357 if (r < 0) { in nfc_hci_connect_gate()
363 return r; in nfc_hci_connect_gate()