Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 19 of 19) sorted by relevance

/drivers/block/drbd/
Ddrbd_bitmap.c460 if (!expect(device->bitmap)) in drbd_bm_capacity()
469 if (!expect(device->bitmap)) in drbd_bm_cleanup()
650 if (!expect(b)) in drbd_bm_resize()
773 if (!expect(b)) in _drbd_bm_total_weight()
775 if (!expect(b->bm_pages)) in _drbd_bm_total_weight()
799 if (!expect(b)) in drbd_bm_words()
801 if (!expect(b->bm_pages)) in drbd_bm_words()
810 if (!expect(b)) in drbd_bm_bits()
832 if (!expect(b)) in drbd_bm_merge_lel()
834 if (!expect(b->bm_pages)) in drbd_bm_merge_lel()
[all …]
Ddrbd_receiver.c395 if (!expect(!(peer_req->flags & EE_CALL_AL_COMPLETE_IO))) { in __drbd_free_peer_req()
1619 if (!expect(IS_ALIGNED(data_size, 512))) in read_in_block()
1622 if (!trim && !expect(data_size <= DRBD_MAX_BIO_SIZE)) in read_in_block()
1711 int digest_size, err, expect; in recv_dless_read() local
1733 expect = min_t(int, data_size, bvec.bv_len); in recv_dless_read()
1734 err = drbd_recv_all_warn(peer_device->connection, mapped, expect); in recv_dless_read()
1738 data_size -= expect; in recv_dless_read()
4820 const int expect = sizeof(struct p_connection_features); in drbd_do_features() local
4838 if (pi.size != expect) { in drbd_do_features()
4840 expect, pi.size); in drbd_do_features()
[all …]
Ddrbd_actlog.c855 if (!expect(sector < nr_sectors)) in __drbd_change_sync()
857 if (!expect(esector < nr_sectors)) in __drbd_change_sync()
Ddrbd_main.c1246 if (!expect(device->bitmap)) in _drbd_send_bitmap()
2241 expect(atomic_read(&req->completion_ref) == 0) && in do_retry()
2242 expect(req->rq_state & RQ_POSTPONED) && in do_retry()
2243 expect((req->rq_state & RQ_LOCAL_PENDING) == 0 || in do_retry()
Ddrbd_int.h159 #define expect(exp) ({ \ macro
Ddrbd_nl.c1358 if (!expect(new_disk_conf->resync_rate >= 1)) in drbd_adm_disk_opts()
/drivers/bluetooth/
Dbtusb.c372 bt_cb(skb)->expect = HCI_EVENT_HDR_SIZE; in btusb_recv_intr()
375 len = min_t(uint, bt_cb(skb)->expect, count); in btusb_recv_intr()
380 bt_cb(skb)->expect -= len; in btusb_recv_intr()
384 bt_cb(skb)->expect = hci_event_hdr(skb)->plen; in btusb_recv_intr()
386 if (skb_tailroom(skb) < bt_cb(skb)->expect) { in btusb_recv_intr()
395 if (bt_cb(skb)->expect == 0) { in btusb_recv_intr()
427 bt_cb(skb)->expect = HCI_ACL_HDR_SIZE; in btusb_recv_bulk()
430 len = min_t(uint, bt_cb(skb)->expect, count); in btusb_recv_bulk()
435 bt_cb(skb)->expect -= len; in btusb_recv_bulk()
441 bt_cb(skb)->expect = __le16_to_cpu(dlen); in btusb_recv_bulk()
[all …]
Dbpa10x.c81 struct { __u8 type; int expect; } *scb; in bpa10x_recv() member
136 scb->expect = len; in bpa10x_recv()
141 len = scb->expect; in bpa10x_recv()
148 scb->expect -= len; in bpa10x_recv()
150 if (scb->expect == 0) { in bpa10x_recv()
/drivers/input/tablet/
Dwacom_serial4.c172 u8 expect; member
289 if (wacom->data[0] != '~' || wacom->data[1] != wacom->expect) { in wacom_handle_response()
473 wacom->expect = cmd[1]; in wacom_send_and_wait()
486 wacom->expect = 0; in wacom_send_and_wait()
/drivers/char/
Dnvram.c489 unsigned short expect; in pc_check_checksum() local
493 expect = __nvram_read_byte(PC_CKS_LOC)<<8 | in pc_check_checksum()
495 return (sum & 0xffff) == expect; in pc_check_checksum()
/drivers/block/
Dmg_disk.c213 static unsigned int mg_wait(struct mg_host *host, u32 expect, u32 msec) in mg_wait() argument
237 if (expect == ATA_BUSY) in mg_wait()
246 if (expect == MG_STAT_READY) in mg_wait()
250 if (expect == ATA_DRQ) in mg_wait()
/drivers/block/paride/
Dpg.c390 int expect[5] = { 1, 1, 1, 0x14, 0xeb }; in pg_reset() local
406 err = memcmp(expect, got, sizeof(got)) ? -1 : 0; in pg_reset()
Dpcd.c541 int expect[5] = { 1, 1, 1, 0x14, 0xeb }; in pcd_reset() local
555 flg &= (read_reg(cd, i + 1) == expect[i]); in pcd_reset()
Dpf.c538 int expect[5] = { 1, 1, 1, 0x14, 0xeb }; in pf_reset() local
552 flg &= (read_reg(pf, i + 1) == expect[i]); in pf_reset()
Dpt.c454 int expect[5] = { 1, 1, 1, 0x14, 0xeb }; in pt_reset() local
468 flg &= (read_reg(pi, i + 1) == expect[i]); in pt_reset()
/drivers/net/wireless/iwlwifi/
DKconfig86 expect incoming broadcasts for their normal operations.
/drivers/usb/gadget/udc/
Dnet2280.c994 int expect; in net2280_queue() local
995 expect = likely(req->req.zero || in net2280_queue()
998 if (expect != ep->in_fifo_validate) in net2280_queue()
1055 int expect; in net2280_queue() local
1060 expect = likely(req->req.zero || in net2280_queue()
1062 if (expect != ep->in_fifo_validate) in net2280_queue()
/drivers/xen/
DKconfig102 The old xenstore userspace tools expect to find "xenbus"
/drivers/usb/gadget/legacy/
DKconfig65 This driver doesn't expect any real Audio codec to be present