Home
last modified time | relevance | path

Searched refs:sync_state (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-devices-state_synced6 devices whose bus types or driver provides the .sync_state()
9 .sync_state() callback hasn't been called yet. A value of 1
10 means the .sync_state() callback has been called.
12 Generally, if a device has sync_state() support and has some of
18 this only when the sync_state() callback has been called --
22 any way by sync_state() callbacks.
/Linux-v5.10/drivers/media/usb/pvrusb2/
Dpvrusb2-ioread.c25 unsigned int sync_state; member
139 if (cp->sync_state) { in pvr2_ioread_stop()
142 cp->sync_state = 0; in pvr2_ioread_stop()
173 cp->sync_state = 1; in pvr2_ioread_start()
297 if (cp->sync_state != 1) return; in pvr2_ioread_filter()
332 cp->sync_state = 2; in pvr2_ioread_filter()
360 if (cp->sync_state == 1) { in pvr2_ioread_avail()
362 if (cp->sync_state == 1) return -EAGAIN; in pvr2_ioread_avail()
423 if (cp->sync_state == 2) { in pvr2_ioread_read()
450 if (cp->sync_state == 2) { in pvr2_ioread_read()
[all …]
/Linux-v5.10/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_tnrdmd_dvbt2_mon.c86 u8 sync_state = 0; in cxd2880_tnrdmd_dvbt2_mon_carrier_offset() local
105 cxd2880_tnrdmd_dvbt2_mon_sync_stat(tnr_dmd, &sync_state, in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
113 if (sync_state != 6) { in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
178 u8 sync_state = 0; in cxd2880_tnrdmd_dvbt2_mon_l1_pre() local
202 cxd2880_tnrdmd_dvbt2_mon_sync_stat(tnr_dmd, &sync_state, in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
210 if (sync_state < 5) { in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
215 (tnr_dmd, &sync_state, &unlock_detected); in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
221 if (sync_state < 5) { in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
356 u8 sync_state = 0; in cxd2880_tnrdmd_dvbt2_mon_version() local
379 cxd2880_tnrdmd_dvbt2_mon_sync_stat(tnr_dmd, &sync_state, in cxd2880_tnrdmd_dvbt2_mon_version()
[all …]
/Linux-v5.10/Documentation/driver-api/driver-model/
Ddriver.rst188 void (*sync_state) (struct device *dev);
190 sync_state is called only once for a device. It's called when all the consumer
195 The first attempt to call sync_state() is made during late_initcall_sync() to
197 attempt at calling sync_state(), if all the consumers of the device at that
198 point in time have already probed successfully, sync_state() is called right
200 too is considered as "all consumers of the device have probed" and sync_state()
203 If during the first attempt at calling sync_state() for a device, there are
204 still consumers that haven't probed successfully, the sync_state() call is
208 sync_state() call is postponed again.
210 A typical use case for sync_state() is to have the kernel cleanly take over
[all …]
/Linux-v5.10/drivers/scsi/arm/
Dfas216.c217 info->device[i].sof, info->device[i].sync_state); in fas216_dumpinfo()
531 if (dev->sync_state == neg_inprogress) { in fas216_handlesync()
532 dev->sync_state = neg_invalid; in fas216_handlesync()
538 switch (dev->sync_state) { in fas216_handlesync()
569 dev->sync_state = neg_targcomplete; in fas216_handlesync()
583 dev->sync_state = neg_complete; in fas216_handlesync()
1595 neg_t sync_state; in fas216_bus_reset() local
1600 sync_state = neg_invalid; in fas216_bus_reset()
1604 sync_state = neg_wait; in fas216_bus_reset()
1613 info->device[i].sync_state = sync_state; in fas216_bus_reset()
[all …]
Dacornscsi.h322 syncxfer_t sync_state; /* sync xfer negotiation state */ member
Dfas216.h294 neg_t sync_state; /* synchronous transfer mode */ member
Dacornscsi.c388 host->device[i].sync_state = SYNC_NEGOCIATE; in acornscsi_resetcard()
1555 if (host->device[host->SCpnt->device->id].sync_state == SYNC_SENT_REQUEST) in acornscsi_message()
1556 host->device[host->SCpnt->device->id].sync_state = SYNC_NEGOCIATE; in acornscsi_message()
1590 host->device[host->SCpnt->device->id].sync_state = SYNC_ASYNCHRONOUS; in acornscsi_message()
1614 if (host->device[host->SCpnt->device->id].sync_state == SYNC_SENT_REQUEST) { in acornscsi_message()
1621 host->device[host->SCpnt->device->id].sync_state = SYNC_COMPLETED; in acornscsi_message()
1717 if (host->device[host->SCpnt->device->id].sync_state == SYNC_NEGOCIATE) { in acornscsi_buildmessages()
1718 host->device[host->SCpnt->device->id].sync_state = SYNC_SENT_REQUEST; in acornscsi_buildmessages()
/Linux-v5.10/net/netfilter/ipvs/
Dip_vs_sync.c368 if (ipvs->sync_state & IP_VS_STATE_MASTER && in sb_queue_tail()
560 if (!(ipvs->sync_state & IP_VS_STATE_MASTER)) { in ip_vs_sync_conn_v0()
663 if (!(ipvs->sync_state & IP_VS_STATE_MASTER)) { in ip_vs_sync_conn()
1782 if (!ipvs->sync_state) { in start_sync_thread()
1894 ipvs->sync_state |= state; in start_sync_thread()
1914 if (!(ipvs->sync_state & IP_VS_STATE_MASTER)) { in start_sync_thread()
1967 ipvs->sync_state &= ~IP_VS_STATE_MASTER; in stop_sync_thread()
1993 ipvs->sync_state &= ~IP_VS_STATE_BACKUP; in stop_sync_thread()
Dip_vs_ctl.c2804 if (ipvs->sync_state & IP_VS_STATE_MASTER) { in do_ip_vs_get_ctl()
2810 if (ipvs->sync_state & IP_VS_STATE_BACKUP) { in do_ip_vs_get_ctl()
3529 if ((ipvs->sync_state & IP_VS_STATE_MASTER) && !cb->args[0]) { in ip_vs_genl_dump_daemons()
3537 if ((ipvs->sync_state & IP_VS_STATE_BACKUP) && !cb->args[1]) { in ip_vs_genl_dump_daemons()
3744 if (ipvs->sync_state) { in ip_vs_genl_set_cmd()
/Linux-v5.10/include/linux/device/
Ddriver.h109 void (*sync_state)(struct device *dev); member
Dbus.h93 void (*sync_state)(struct device *dev); member
/Linux-v5.10/fs/gfs2/
Dfile.c752 int sync_state = inode->i_state & I_DIRTY_ALL; in gfs2_fsync() local
763 sync_state &= ~I_DIRTY_PAGES; in gfs2_fsync()
765 sync_state &= ~(I_DIRTY_SYNC | I_DIRTY_TIME); in gfs2_fsync()
767 if (sync_state) { in gfs2_fsync()
/Linux-v5.10/drivers/cpuidle/
Dcpuidle-psci-domain.c308 .sync_state = psci_cpuidle_domain_sync_state,
/Linux-v5.10/sound/soc/stm/
Dstm32_spdifrx.c672 unsigned int flags, sync_state; in stm32_spdifrx_isr() local
733 sync_state = FIELD_GET(SPDIFRX_CR_SPDIFEN_MASK, cr) && in stm32_spdifrx_isr()
742 if (sync_state) { in stm32_spdifrx_isr()
/Linux-v5.10/arch/x86/kernel/apic/
Dx2apic_uv_x.c198 int sync_state; in uv_tsc_check_sync() local
206 sync_state = (mmr >> mmr_shift) & UVH_TSC_SYNC_MASK; in uv_tsc_check_sync()
209 switch (sync_state) { in uv_tsc_check_sync()
226 pr_info("UV: TSC sync state from BIOS:0%d(%s)\n", sync_state, state); in uv_tsc_check_sync()
/Linux-v5.10/drivers/interconnect/qcom/
Dosm-l3.c325 .sync_state = icc_sync_state,
Dmsm8974.c772 .sync_state = icc_sync_state,
Dsc7180.c636 .sync_state = icc_sync_state,
Dsdm845.c562 .sync_state = icc_sync_state,
Dsm8150.c630 .sync_state = icc_sync_state,
/Linux-v5.10/include/linux/
Ddevice.h765 if (dev->driver && dev->driver->sync_state) in dev_has_sync_state()
767 if (dev->bus && dev->bus->sync_state) in dev_has_sync_state()
/Linux-v5.10/drivers/md/
Ddm-raid.c3326 enum sync_state { st_frozen, st_reshape, st_resync, st_check, st_repair, st_recover, st_idle }; enum
3327 static const char *sync_str(enum sync_state state) in sync_str()
3344 static enum sync_state decipher_sync_action(struct mddev *mddev, unsigned long recovery) in decipher_sync_action()
3402 enum sync_state state, sector_t resync_max_sectors) in rs_get_progress()
3500 enum sync_state state; in raid_status()
/Linux-v5.10/include/net/
Dip_vs.h954 volatile int sync_state; member
1045 return ipvs->sync_state & IP_VS_STATE_BACKUP && in sysctl_backup_only()
/Linux-v5.10/drivers/base/
Dcore.c991 if (dev->bus->sync_state) in device_links_flush_sync_list()
992 dev->bus->sync_state(dev); in device_links_flush_sync_list()
993 else if (dev->driver && dev->driver->sync_state) in device_links_flush_sync_list()
994 dev->driver->sync_state(dev); in device_links_flush_sync_list()

12