Lines Matching refs:r
147 int r; in nfc_hci_set_param() local
167 r = nfc_hci_send_cmd(hdev, gate, NFC_HCI_ANY_SET_PARAMETER, in nfc_hci_set_param()
172 return r; in nfc_hci_set_param()
189 int r; in nfc_hci_open_pipe() local
193 r = nfc_hci_execute_cmd(hdev, pipe, NFC_HCI_ANY_OPEN_PIPE, in nfc_hci_open_pipe()
195 if (r == 0) { in nfc_hci_open_pipe()
203 return r; in nfc_hci_open_pipe()
271 int r; in nfc_hci_disconnect_gate() local
279 r = nfc_hci_close_pipe(hdev, pipe); in nfc_hci_disconnect_gate()
280 if (r < 0) in nfc_hci_disconnect_gate()
281 return r; in nfc_hci_disconnect_gate()
284 r = nfc_hci_delete_pipe(hdev, pipe); in nfc_hci_disconnect_gate()
285 if (r < 0) in nfc_hci_disconnect_gate()
286 return r; in nfc_hci_disconnect_gate()
297 int r; in nfc_hci_disconnect_all_gates() local
301 r = nfc_hci_clear_all_pipes(hdev); in nfc_hci_disconnect_all_gates()
302 if (r < 0) in nfc_hci_disconnect_all_gates()
303 return r; in nfc_hci_disconnect_all_gates()
315 int r; in nfc_hci_connect_gate() local
336 pipe = nfc_hci_create_pipe(hdev, dest_host, dest_gate, &r); in nfc_hci_connect_gate()
338 return r; in nfc_hci_connect_gate()
344 r = nfc_hci_open_pipe(hdev, pipe); in nfc_hci_connect_gate()
345 if (r < 0) { in nfc_hci_connect_gate()
351 return r; in nfc_hci_connect_gate()