Lines Matching refs:r
143 int r; in nfc_hci_set_param() local
163 r = nfc_hci_send_cmd(hdev, gate, NFC_HCI_ANY_SET_PARAMETER, in nfc_hci_set_param()
168 return r; in nfc_hci_set_param()
185 int r; in nfc_hci_open_pipe() local
189 r = nfc_hci_execute_cmd(hdev, pipe, NFC_HCI_ANY_OPEN_PIPE, in nfc_hci_open_pipe()
191 if (r == 0) { in nfc_hci_open_pipe()
199 return r; in nfc_hci_open_pipe()
261 int r; in nfc_hci_disconnect_gate() local
267 r = nfc_hci_close_pipe(hdev, pipe); in nfc_hci_disconnect_gate()
268 if (r < 0) in nfc_hci_disconnect_gate()
269 return r; in nfc_hci_disconnect_gate()
272 r = nfc_hci_delete_pipe(hdev, pipe); in nfc_hci_disconnect_gate()
273 if (r < 0) in nfc_hci_disconnect_gate()
274 return r; in nfc_hci_disconnect_gate()
285 int r; in nfc_hci_disconnect_all_gates() local
287 r = nfc_hci_clear_all_pipes(hdev); in nfc_hci_disconnect_all_gates()
288 if (r < 0) in nfc_hci_disconnect_all_gates()
289 return r; in nfc_hci_disconnect_all_gates()
301 int r; in nfc_hci_connect_gate() local
320 pipe = nfc_hci_create_pipe(hdev, dest_host, dest_gate, &r); in nfc_hci_connect_gate()
322 return r; in nfc_hci_connect_gate()
328 r = nfc_hci_open_pipe(hdev, pipe); in nfc_hci_connect_gate()
329 if (r < 0) { in nfc_hci_connect_gate()
335 return r; in nfc_hci_connect_gate()